@codernote/record-list
Advanced tools
+576
-536
@@ -1,14 +0,14 @@ | ||
| (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.record-list-icon-button[data-v-8d9b1230]{color:#b7b7b7;padding:4px;border-radius:4px;height:24px;cursor:pointer}.record-list-icon-button[data-v-8d9b1230]:hover{color:#4b5563}.record-list-icon-button-active[data-v-8d9b1230]{background:#d8d8d8;color:#4b5563;opacity:1}.record-list-tag[data-v-5dc25025]{width:32px;height:32px;display:flex;color:#fff;border-radius:10px;align-items:center;justify-content:center}.record-list-tag button[data-v-5dc25025]{display:flex;color:#fff;border-radius:9999px;align-items:center;justify-content:center;width:20px;height:20px;border:0;padding:0;cursor:pointer}.record-list-tag-active[data-v-5dc25025]{background-color:#d3d3d3}.record-list-select-multiple-tag[data-v-f588325c]{display:flex;padding:4px;border-radius:4px;flex-wrap:wrap}.record-list-select-multiple-tag>div[data-v-f588325c]{padding:4px}.record-list-mobile.record-list-mobile .record-list-wrap{padding-bottom:80px}.record-list-mobile.record-list-mobile .record-list-wrap::-webkit-scrollbar{background-color:transparent!important;width:0!important}.record-list-mobile.record-list-mobile .record-list-sort,.record-list-mobile.record-list-mobile .record-list-bar-search{right:16px}.record-list-mobile.record-list-mobile .record-list-bar-search-input{min-width:100px}.record-list-mobile.record-list-mobile .record-list-item-active{background-color:#fff}.record-list[data-v-ce9a6620]{width:100%;height:100vh;position:relative}.record-list img[data-v-ce9a6620]{border:0}.record-list-sort[data-v-ce9a6620]{position:absolute;left:16px;right:32px;padding-top:40px;padding-bottom:10px;top:0;z-index:12;background-color:#f6f6f6}.record-list-sort-tags[data-v-ce9a6620]{margin:0}.record-list-sort-box[data-v-ce9a6620],.record-list-sort-arrow[data-v-ce9a6620]{align-items:center;display:flex}.record-list-sort-item[data-v-ce9a6620]{margin-right:10px;font-size:14px;color:#333;cursor:pointer;-moz-user-select:none;user-select:none;-webkit-user-select:none;align-items:center;display:flex}.record-list-sort-item-active[data-v-ce9a6620]{color:#52a770}.record-list-context-menu[data-v-ce9a6620]{padding:8px;background:#fff;z-index:19;box-shadow:0 2px 4px #00000080;border-radius:4px}.record-list-context-menu li[data-v-ce9a6620]{font-size:14px;line-height:20px;padding:8px 16px;border-radius:4px;cursor:pointer;margin-inline-start:0px}.record-list-context-menu li[data-v-ce9a6620]:hover{background:#d8d8d8}.record-list-icon[data-v-ce9a6620]{display:block;width:14px;height:14px;margin:0;padding:0!important;line-height:100%;font-size:0;cursor:pointer}.record-list-opener[data-v-ce9a6620]{position:absolute;border-radius:4px;width:16px;height:16px;z-index:100;right:16px;top:8px;color:#b7b7b7;border:0;padding:0;background:transparent;cursor:pointer}.record-list-closer[data-v-ce9a6620]{position:absolute;width:16px;height:16px;z-index:100;top:12px;left:16px;border-radius:4px;border:0;padding:1px 0;background:transparent;cursor:pointer}.record-list-closer[data-v-ce9a6620]:hover,.record-list-opener[data-v-ce9a6620]:hover{background:#e8e8e8}.record-list-bar[data-v-ce9a6620]{position:absolute;z-index:100;top:0;left:0;right:0}.record-list-bar-search[data-v-ce9a6620]{left:186px;right:16px;position:absolute;top:8px;z-index:100;color:#b7b7b7;display:flex}.record-list-bar-search-icon[data-v-ce9a6620]{position:absolute;top:4px;left:16px}.record-list-bar-search-input[data-v-ce9a6620]{color:#333;border-radius:2px;height:24px;background:#fff;border:0;padding:0 32px;width:100%;box-sizing:border-box}.record-list-bar-search-input[data-v-ce9a6620]::-moz-placeholder{color:#9e9e9e}.record-list-bar-search-input[data-v-ce9a6620]::placeholder{color:#9e9e9e}.record-list-bar-search-input[data-v-ce9a6620]:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:#fff 0 0,#52a770 0 0 0 1px,#0000 0 0}.record-list-bar-search-clear[data-v-ce9a6620]{cursor:pointer;color:#9e9e9e;position:absolute;top:4px;right:4px}.record-list-bar-search-clear[data-v-ce9a6620]:hover{cursor:pointer;color:#52a770}.record-list-bar-filter[data-v-ce9a6620]{position:absolute;top:8px;z-index:100;color:#b7b7b7}.record-list-bar-filter button[data-v-ce9a6620]{margin-right:8px;border:0}.record-list-main[data-v-ce9a6620]{position:relative;border-left-width:1px;border-color:#e4e4e7}.record-list-empty[data-v-ce9a6620]{display:flex;justify-content:center;color:#b7b7b7;align-items:center;height:100vh;position:relative!important;transform:none!important}.record-list-wrap[data-v-ce9a6620]{padding-bottom:16px;padding-left:16px;padding-right:16px;overflow-y:auto;height:100vh}.record-list-item[data-v-ce9a6620]{padding:16px 32px;min-height:60px;border-radius:8px;margin-bottom:6px;position:relative;cursor:default;background:#fff}[data-v-ce9a6620] .record-list-item mark{background-color:transparent;text-decoration:underline;text-decoration-color:#9acd32;text-decoration-thickness:2px;text-underline-offset:2px}.record-list-item-active[data-v-ce9a6620]{background-color:#d8d8d8}.record-list-item-tag-wrap[data-v-ce9a6620]{cursor:pointer;width:24px;top:22px;left:0;bottom:0;position:absolute}.record-list-item-tag[data-v-ce9a6620]{display:flex;color:#fff;border-radius:9999px;justify-content:center;align-items:center;width:16px;height:16px;z-index:2;left:8px;position:relative}.record-list-item-title[data-v-ce9a6620]{font-weight:700;font-size:18px;line-height:28px;overflow-wrap:break-word;margin:0}.record-list-item-title p[data-v-ce9a6620]{display:inline;word-break:break-all}.record-list-item-title-trash[data-v-ce9a6620]{color:#777!important}.record-list-item-title-finished[data-v-ce9a6620]{text-decoration:line-through;color:#999}.record-list-item-content[data-v-ce9a6620]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;margin:0}.record-list-item-des[data-v-ce9a6620]{color:#9a9a9a;font-size:12px;margin-top:2px;line-height:16px}[data-v-ce9a6620] .popper{width:auto;background-color:#fafafa;color:#212121;text-align:center;display:inline-block;border-radius:3px;position:absolute;font-size:14px;font-weight:400;border:1px solid rgba(29,28,28,.12);z-index:200000;box-shadow:0 2px 12px #1d1c1c1f;padding:0}.list-leave-active[data-v-ce9a6620]{transition:all .5s ease}.list-leave-to[data-v-ce9a6620]{opacity:0;transform:translate(30px)}.record-drop-before[data-v-ce9a6620]:after{content:" ";position:absolute;top:-4px;left:0;right:0;border-top:2px solid #52a770}.record-drop-after[data-v-ce9a6620]:after{content:" ";position:absolute;bottom:-4px;left:0;right:0;border-top:2px solid #52a770}.record-drop-inner[data-v-ce9a6620]{outline:2px solid #52a770}.record-list-rel[data-v-ce9a6620],.record-list-uploading[data-v-ce9a6620]{position:absolute;right:20px;top:20px}@keyframes rotate-ce9a6620{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.dragging-image{max-width:300px;opacity:.5}.dragging-image .record-list-item-content,.dragging-image .record-list-item-des{display:none!important}.explorer-list[data-v-2ea05a2f]{width:100%;height:100%;position:relative;border-right:1px solid rgba(0,0,0,.08)}.explorer-list-main[data-v-2ea05a2f]{position:relative;height:100%}.explorer-list-wrap[data-v-2ea05a2f]{padding:8px;overflow-y:auto;height:100%}.explorer-list-item[data-v-2ea05a2f]{padding:6px 8px 6px 32px;border-radius:6px;margin-bottom:2px;position:relative;cursor:default;background:transparent;transition:background-color .15s ease}.explorer-list-item[data-v-2ea05a2f]:hover{background:#0000000a}.explorer-list-item-active[data-v-2ea05a2f]{background-color:#fff;box-shadow:0 1px 3px #0000001a}.explorer-list-item-active[data-v-2ea05a2f]:hover{background:#fff}.explorer-list-item-icon[data-v-2ea05a2f]{position:absolute;left:8px;top:12px;width:14px;height:14px}.explorer-list-item-tag[data-v-2ea05a2f]{display:block;border-radius:9999px;width:12px;height:12px}.explorer-list-item-title[data-v-2ea05a2f]{font-weight:700;font-size:18px;line-height:28px;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;-webkit-user-select:none;-moz-user-select:none;user-select:none}.explorer-list-item-title p[data-v-2ea05a2f]{display:inline;word-break:break-all}.explorer-list-context-menu[data-v-2ea05a2f]{padding:8px;background:#fff;z-index:19;box-shadow:0 2px 4px #00000080;border-radius:4px}.explorer-list-context-menu li[data-v-2ea05a2f]{font-size:14px;line-height:20px;padding:8px 16px;border-radius:4px;cursor:pointer;margin-inline-start:0px}.explorer-list-context-menu li[data-v-2ea05a2f]:hover{background:#d8d8d8}.explorer-drop-before[data-v-2ea05a2f]:after{content:" ";position:absolute;top:-4px;left:0;right:0;border-top:2px solid #52a770}.explorer-drop-after[data-v-2ea05a2f]:after{content:" ";position:absolute;bottom:-4px;left:0;right:0;border-top:2px solid #52a770}.explorer-drop-inner[data-v-2ea05a2f]{outline:2px solid #52a770}[data-v-2ea05a2f] .explorer-list-item mark{background-color:transparent;text-decoration:underline;text-decoration-color:#9acd32;text-decoration-thickness:2px;text-underline-offset:2px}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); | ||
| import { openBlock as i, createElementBlock as u, normalizeClass as q, renderSlot as K2, createElementVNode as v, normalizeStyle as D, unref as s, Fragment as X, renderList as h2, createVNode as T, reactive as Q2, ref as _, computed as V, getCurrentInstance as b2, watch as P, onMounted as B2, onUnmounted as N2, withDirectives as b, withKeys as ee, vModelText as te, vShow as B, createBlock as Z, withCtx as A, createCommentVNode as k, createTextVNode as E2, withModifiers as C, TransitionGroup as le, mergeProps as ae, toHandlers as re, toDisplayString as V2, nextTick as p2, pushScopeId as oe, popScopeId as se } from "vue"; | ||
| import ne from "dayjs"; | ||
| import E from "vue-inline-svg"; | ||
| import M2 from "dompurify"; | ||
| import { createPopper as G2 } from "@popperjs/core"; | ||
| import { getTagStyle as ie, detectDeviceType as ce, isTodoTag as r2, getExt as H, getTagStyleById as P2, getTag as I2 } from "@codernote/utils"; | ||
| const j = (o, L) => { | ||
| const m = o.__vccOpts || o; | ||
| for (const [c, g] of L) | ||
| m[c] = g; | ||
| return m; | ||
| }, de = { | ||
| (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.record-list-icon-button[data-v-8d9b1230]{color:#b7b7b7;padding:4px;border-radius:4px;height:24px;cursor:pointer}.record-list-icon-button[data-v-8d9b1230]:hover{color:#4b5563}.record-list-icon-button-active[data-v-8d9b1230]{background:#d8d8d8;color:#4b5563;opacity:1}.record-list-tag[data-v-5dc25025]{width:32px;height:32px;display:flex;color:#fff;border-radius:10px;align-items:center;justify-content:center}.record-list-tag button[data-v-5dc25025]{display:flex;color:#fff;border-radius:9999px;align-items:center;justify-content:center;width:20px;height:20px;border:0;padding:0;cursor:pointer}.record-list-tag-active[data-v-5dc25025]{background-color:#d3d3d3}.record-list-select-multiple-tag[data-v-f588325c]{display:flex;padding:4px;border-radius:4px;flex-wrap:wrap}.record-list-select-multiple-tag>div[data-v-f588325c]{padding:4px}.record-list-mobile.record-list-mobile .record-list-wrap{padding-bottom:80px}.record-list-mobile.record-list-mobile .record-list-wrap::-webkit-scrollbar{background-color:transparent!important;width:0!important}.record-list-mobile.record-list-mobile .record-list-sort,.record-list-mobile.record-list-mobile .record-list-bar-search{right:16px}.record-list-mobile.record-list-mobile .record-list-bar-search-input{min-width:100px}.record-list-mobile.record-list-mobile .record-list-item-active{background-color:#fff}.record-list[data-v-ce9a6620]{width:100%;height:100vh;position:relative}.record-list img[data-v-ce9a6620]{border:0}.record-list-sort[data-v-ce9a6620]{position:absolute;left:16px;right:32px;padding-top:40px;padding-bottom:10px;top:0;z-index:12;background-color:#f6f6f6}.record-list-sort-tags[data-v-ce9a6620]{margin:0}.record-list-sort-box[data-v-ce9a6620],.record-list-sort-arrow[data-v-ce9a6620]{align-items:center;display:flex}.record-list-sort-item[data-v-ce9a6620]{margin-right:10px;font-size:14px;color:#333;cursor:pointer;-moz-user-select:none;user-select:none;-webkit-user-select:none;align-items:center;display:flex}.record-list-sort-item-active[data-v-ce9a6620]{color:#52a770}.record-list-context-menu[data-v-ce9a6620]{padding:8px;background:#fff;z-index:19;box-shadow:0 2px 4px #00000080;border-radius:4px}.record-list-context-menu li[data-v-ce9a6620]{font-size:14px;line-height:20px;padding:8px 16px;border-radius:4px;cursor:pointer;margin-inline-start:0px}.record-list-context-menu li[data-v-ce9a6620]:hover{background:#d8d8d8}.record-list-icon[data-v-ce9a6620]{display:block;width:14px;height:14px;margin:0;padding:0!important;line-height:100%;font-size:0;cursor:pointer}.record-list-opener[data-v-ce9a6620]{position:absolute;border-radius:4px;width:16px;height:16px;z-index:100;right:16px;top:8px;color:#b7b7b7;border:0;padding:0;background:transparent;cursor:pointer}.record-list-closer[data-v-ce9a6620]{position:absolute;width:16px;height:16px;z-index:100;top:12px;left:16px;border-radius:4px;border:0;padding:1px 0;background:transparent;cursor:pointer}.record-list-closer[data-v-ce9a6620]:hover,.record-list-opener[data-v-ce9a6620]:hover{background:#e8e8e8}.record-list-bar[data-v-ce9a6620]{position:absolute;z-index:100;top:0;left:0;right:0}.record-list-bar-search[data-v-ce9a6620]{left:186px;right:16px;position:absolute;top:8px;z-index:100;color:#b7b7b7;display:flex}.record-list-bar-search-icon[data-v-ce9a6620]{position:absolute;top:4px;left:16px}.record-list-bar-search-input[data-v-ce9a6620]{color:#333;border-radius:2px;height:24px;background:#fff;border:0;padding:0 32px;width:100%;box-sizing:border-box}.record-list-bar-search-input[data-v-ce9a6620]::-moz-placeholder{color:#9e9e9e}.record-list-bar-search-input[data-v-ce9a6620]::placeholder{color:#9e9e9e}.record-list-bar-search-input[data-v-ce9a6620]:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:#fff 0 0,#52a770 0 0 0 1px,#0000 0 0}.record-list-bar-search-clear[data-v-ce9a6620]{cursor:pointer;color:#9e9e9e;position:absolute;top:4px;right:4px}.record-list-bar-search-clear[data-v-ce9a6620]:hover{cursor:pointer;color:#52a770}.record-list-bar-filter[data-v-ce9a6620]{position:absolute;top:8px;z-index:100;color:#b7b7b7}.record-list-bar-filter button[data-v-ce9a6620]{margin-right:8px;border:0}.record-list-main[data-v-ce9a6620]{position:relative;border-left-width:1px;border-color:#e4e4e7}.record-list-empty[data-v-ce9a6620]{display:flex;justify-content:center;color:#b7b7b7;align-items:center;height:100vh;position:relative!important;transform:none!important}.record-list-wrap[data-v-ce9a6620]{padding-bottom:16px;padding-left:16px;padding-right:16px;overflow-y:auto;height:100vh}.record-list-item[data-v-ce9a6620]{padding:16px 32px;min-height:60px;border-radius:8px;margin-bottom:6px;position:relative;cursor:default;background:#fff}[data-v-ce9a6620] .record-list-item mark{background-color:transparent;text-decoration:underline;text-decoration-color:#9acd32;text-decoration-thickness:2px;text-underline-offset:2px}.record-list-item-active[data-v-ce9a6620]{background-color:#d8d8d8}.record-list-item-tag-wrap[data-v-ce9a6620]{cursor:pointer;width:24px;top:22px;left:0;bottom:0;position:absolute}.record-list-item-tag[data-v-ce9a6620]{display:flex;color:#fff;border-radius:9999px;justify-content:center;align-items:center;width:16px;height:16px;z-index:2;left:8px;position:relative}.record-list-item-title[data-v-ce9a6620]{font-weight:700;font-size:18px;line-height:28px;overflow-wrap:break-word;margin:0}.record-list-item-title p[data-v-ce9a6620]{display:inline;word-break:break-all}.record-list-item-title-trash[data-v-ce9a6620]{color:#777!important}.record-list-item-title-finished[data-v-ce9a6620]{text-decoration:line-through;color:#999}.record-list-item-content[data-v-ce9a6620]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;margin:0}.record-list-item-des[data-v-ce9a6620]{color:#9a9a9a;font-size:12px;margin-top:2px;line-height:16px}[data-v-ce9a6620] .popper{width:auto;background-color:#fafafa;color:#212121;text-align:center;display:inline-block;border-radius:3px;position:absolute;font-size:14px;font-weight:400;border:1px solid rgba(29,28,28,.12);z-index:200000;box-shadow:0 2px 12px #1d1c1c1f;padding:0}.list-leave-active[data-v-ce9a6620]{transition:all .5s ease}.list-leave-to[data-v-ce9a6620]{opacity:0;transform:translate(30px)}.record-drop-before[data-v-ce9a6620]:after{content:" ";position:absolute;top:-4px;left:0;right:0;border-top:2px solid #52a770}.record-drop-after[data-v-ce9a6620]:after{content:" ";position:absolute;bottom:-4px;left:0;right:0;border-top:2px solid #52a770}.record-drop-inner[data-v-ce9a6620]{outline:2px solid #52a770}.record-list-rel[data-v-ce9a6620],.record-list-uploading[data-v-ce9a6620]{position:absolute;right:20px;top:20px}@keyframes rotate-ce9a6620{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.dragging-image{max-width:300px;opacity:.5}.dragging-image .record-list-item-content,.dragging-image .record-list-item-des{display:none!important}.explorer-list[data-v-b56eceae]{width:100%;height:100%;position:relative;border-right:1px solid rgba(0,0,0,.08)}.explorer-list-main[data-v-b56eceae]{position:relative;height:100%}.explorer-list-wrap[data-v-b56eceae]{padding:8px;overflow-y:auto;height:100%}.explorer-list-item[data-v-b56eceae]{padding:6px 8px 6px 32px;border-radius:6px;margin-bottom:2px;position:relative;cursor:default;background:transparent;transition:background-color .15s ease}.explorer-list-item[data-v-b56eceae]:hover{background:#0000000a}.explorer-list-item-active[data-v-b56eceae]{background-color:#fff;box-shadow:0 1px 3px #0000001a}.explorer-list-item-active[data-v-b56eceae]:hover{background:#fff}.explorer-list-item-icon[data-v-b56eceae]{position:absolute;left:8px;top:12px;width:14px;height:14px}.explorer-list-item-tag[data-v-b56eceae]{display:block;border-radius:9999px;width:12px;height:12px}.explorer-list-item-title[data-v-b56eceae]{font-weight:700;font-size:18px;line-height:28px;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;-webkit-user-select:none;-moz-user-select:none;user-select:none}.explorer-list-item-title-input[data-v-b56eceae]{font-weight:700;font-size:18px;line-height:28px;margin:0;padding:0 4px;border:1px solid #52a770;border-radius:4px;outline:none;background:#fff;color:#333;width:calc(100% - 8px);box-sizing:border-box;box-shadow:0 0 0 2px #52a7701a}.explorer-list-item-title-input[data-v-b56eceae]:focus{border-color:#52a770;box-shadow:0 0 0 2px #52a77033}.explorer-list-item-title p[data-v-b56eceae]{display:inline;word-break:break-all}.explorer-list-context-menu[data-v-b56eceae]{padding:8px;background:#fff;z-index:19;box-shadow:0 2px 4px #00000080;border-radius:4px}.explorer-list-context-menu li[data-v-b56eceae]{font-size:14px;line-height:20px;padding:8px 16px;border-radius:4px;cursor:pointer;margin-inline-start:0px}.explorer-list-context-menu li[data-v-b56eceae]:hover{background:#d8d8d8}.explorer-drop-before[data-v-b56eceae]:after{content:" ";position:absolute;top:-4px;left:0;right:0;border-top:2px solid #52a770}.explorer-drop-after[data-v-b56eceae]:after{content:" ";position:absolute;bottom:-4px;left:0;right:0;border-top:2px solid #52a770}.explorer-drop-inner[data-v-b56eceae]{outline:2px solid #52a770}[data-v-b56eceae] .explorer-list-item mark{background-color:transparent;text-decoration:underline;text-decoration-color:#9acd32;text-decoration-thickness:2px;text-underline-offset:2px}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); | ||
| import { openBlock as i, createElementBlock as g, normalizeClass as Y, renderSlot as e2, createElementVNode as v, normalizeStyle as _, unref as s, Fragment as j, renderList as ye, createVNode as k, reactive as t2, ref as x, computed as B, getCurrentInstance as Ne, watch as q, onMounted as qe, onUnmounted as Ye, withDirectives as E, withKeys as De, vModelText as ze, vShow as G, createBlock as J, withCtx as z, createCommentVNode as L, createTextVNode as Me, withModifiers as m, TransitionGroup as l2, mergeProps as a2, toHandlers as o2, toDisplayString as Ge, nextTick as ce, pushScopeId as r2, popScopeId as n2 } from "vue"; | ||
| import s2 from "dayjs"; | ||
| import I from "vue-inline-svg"; | ||
| import Oe from "dompurify"; | ||
| import { createPopper as Ae } from "@popperjs/core"; | ||
| import { getTagStyle as i2, detectDeviceType as c2, isTodoTag as ie, getExt as O, getTagStyleById as He, getTag as Pe } from "@codernote/utils"; | ||
| const K = (n, S) => { | ||
| const C = n.__vccOpts || n; | ||
| for (const [u, c] of S) | ||
| C[u] = c; | ||
| return C; | ||
| }, d2 = { | ||
| __name: "icon-button", | ||
@@ -21,13 +21,13 @@ props: { | ||
| }, | ||
| setup(o) { | ||
| return (L, m) => (i(), u("button", { | ||
| class: q([ | ||
| setup(n) { | ||
| return (S, C) => (i(), g("button", { | ||
| class: Y([ | ||
| "record-list-icon-button", | ||
| o.active ? "record-list-icon-button-active" : "" | ||
| n.active ? "record-list-icon-button-active" : "" | ||
| ]) | ||
| }, [ | ||
| K2(L.$slots, "default", {}, void 0, !0) | ||
| e2(S.$slots, "default", {}, void 0, !0) | ||
| ], 2)); | ||
| } | ||
| }, W = /* @__PURE__ */ j(de, [["__scopeId", "data-v-8d9b1230"]]), ue = { | ||
| }, Z = /* @__PURE__ */ K(d2, [["__scopeId", "data-v-8d9b1230"]]), u2 = { | ||
| __name: "tag", | ||
@@ -44,12 +44,12 @@ props: { | ||
| }, | ||
| setup(o) { | ||
| return (L, m) => (i(), u("div", { | ||
| class: q(["record-list-tag", { "record-list-tag-active": o.active }]) | ||
| setup(n) { | ||
| return (S, C) => (i(), g("div", { | ||
| class: Y(["record-list-tag", { "record-list-tag-active": n.active }]) | ||
| }, [ | ||
| v("button", { | ||
| style: D(s(ie)(o.tag)) | ||
| style: _(s(i2)(n.tag)) | ||
| }, null, 4) | ||
| ], 2)); | ||
| } | ||
| }, ge = /* @__PURE__ */ j(ue, [["__scopeId", "data-v-5dc25025"]]), ve = { class: "record-list-select-multiple-tag" }, pe = { | ||
| }, g2 = /* @__PURE__ */ K(u2, [["__scopeId", "data-v-5dc25025"]]), v2 = { class: "record-list-select-multiple-tag" }, p2 = { | ||
| __name: "select-multiple-tag", | ||
@@ -71,15 +71,15 @@ props: { | ||
| emits: ["change"], | ||
| setup(o, { emit: L }) { | ||
| const m = L, c = o, g = (d) => d.filter((l) => l.name != ""), N = (d) => { | ||
| const l = [...c.value], x = c.value.indexOf(d.created_at); | ||
| x === -1 ? l.push(d.created_at) : l.splice(x, 1), m("change", l); | ||
| setup(n, { emit: S }) { | ||
| const C = S, u = n, c = (D) => D.filter((t) => t.name != ""), N = (D) => { | ||
| const t = [...u.value], w = u.value.indexOf(D.created_at); | ||
| w === -1 ? t.push(D.created_at) : t.splice(w, 1), C("change", t); | ||
| }; | ||
| return (d, l) => (i(), u("div", ve, [ | ||
| (i(!0), u(X, null, h2(g(o.tags), (x) => (i(), u("div", { | ||
| key: x.id | ||
| return (D, t) => (i(), g("div", v2, [ | ||
| (i(!0), g(j, null, ye(c(n.tags), (w) => (i(), g("div", { | ||
| key: w.id | ||
| }, [ | ||
| T(s(ge), { | ||
| tag: x, | ||
| onClick: (I) => N(x), | ||
| active: o.value.includes(x.created_at) | ||
| k(s(g2), { | ||
| tag: w, | ||
| onClick: (A) => N(w), | ||
| active: n.value.includes(w.created_at) | ||
| }, null, 8, ["tag", "onClick", "active"]) | ||
@@ -89,76 +89,76 @@ ]))), 128)) | ||
| } | ||
| }, he = /* @__PURE__ */ j(pe, [["__scopeId", "data-v-f588325c"]]), fe = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1685356134227'%20class='icon'%20viewBox='0%200%201085%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4178'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='211.9140625'%20height='200'%3e%3cpath%20d='M542.797672%20783.398836L0%20240.601164h1085.595343z'%20p-id='4179'%3e%3c/path%3e%3c/svg%3e", me = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1685356123004'%20class='icon'%20viewBox='0%200%201085%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4038'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='211.9140625'%20height='200'%3e%3cpath%20d='M545.20232799%20240.601164L1087.99999999%20783.398836l-1085.595343%200z'%20p-id='4039'%3e%3c/path%3e%3c/svg%3e", we = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1685162926601'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2463'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M460.8%2025.6c240.3584%200%20435.2%20194.8416%20435.2%20435.2%200%20108.288-39.5264%20207.3088-104.96%20283.4688l167.936%20167.9104a51.2%2051.2%200%201%201-72.3968%2072.3968l-170.9568-170.9312A433.2288%20433.2288%200%200%201%20460.8%20896C220.4416%20896%2025.6%20701.1584%2025.6%20460.8S220.4416%2025.6%20460.8%2025.6z%20m0%20102.4C276.992%20128%20128%20276.992%20128%20460.8s148.992%20332.8%20332.8%20332.8%20332.8-148.992%20332.8-332.8S644.608%20128%20460.8%20128z'%20p-id='2464'%3e%3c/path%3e%3c/svg%3e", Ce = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eico%20/%2024%20/%20actions%20/%20clear@2x%3c/title%3e%3cg%20id='ico-/-24-/-actions-/-clear'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M17.85,16.44%20C17.9446563,16.5338833%2017.9978992,16.6616812%2017.9978992,16.795%20C17.9978992,16.9283188%2017.9446563,17.0561167%2017.85,17.15%20L17.15,17.85%20C17.0561167,17.9446563%2016.9283188,17.9978992%2016.795,17.9978992%20C16.6616812,17.9978992%2016.5338833,17.9446563%2016.44,17.85%20L12,13.41%20L7.56,17.85%20C7.4661167,17.9446563%207.33831877,17.9978992%207.205,17.9978992%20C7.07168123,17.9978992%206.9438833,17.9446563%206.85,17.85%20L6.15,17.15%20C6.05534367,17.0561167%206.00210084,16.9283188%206.00210084,16.795%20C6.00210084,16.6616812%206.05534367,16.5338833%206.15,16.44%20L10.59,12%20L6.15,7.56%20C6.05534367,7.4661167%206.00210084,7.33831877%206.00210084,7.205%20C6.00210084,7.07168123%206.05534367,6.9438833%206.15,6.85%20L6.85,6.15%20C6.9438833,6.05534367%207.07168123,6.00210084%207.205,6.00210084%20C7.33831877,6.00210084%207.4661167,6.05534367%207.56,6.15%20L12,10.59%20L16.44,6.15%20C16.5338833,6.05534367%2016.6616812,6.00210084%2016.795,6.00210084%20C16.9283188,6.00210084%2017.0561167,6.05534367%2017.15,6.15%20L17.85,6.85%20C17.9446563,6.9438833%2017.9978992,7.07168123%2017.9978992,7.205%20C17.9978992,7.33831877%2017.9446563,7.4661167%2017.85,7.56%20L13.41,12%20L17.85,16.44%20Z'%20id='Icon-color'%20fill='currentColor'%20fill-rule='nonzero'%3e%3c/path%3e%3c/g%3e%3c/svg%3e", xe = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M1%200.25H13C13.4142%200.25%2013.75%200.585786%2013.75%201V1.8775C13.7503%202.27728%2013.591%202.66065%2013.3075%202.9425L8.9425%207.3075C8.65897%207.58935%208.49968%207.97272%208.5%208.3725V11.125C8.5%2011.5971%208.27771%2012.0417%207.9%2012.325L6.1%2013.675C5.98637%2013.7602%205.83434%2013.7739%205.7073%2013.7104C5.58025%2013.6469%205.5%2013.517%205.5%2013.375V8.3725C5.50032%207.97272%205.34103%207.58935%205.0575%207.3075L0.692501%202.9425C0.408971%202.66065%200.249684%202.27728%200.25%201.8775V1C0.25%200.585786%200.585787%200.25%201%200.25ZM10.1275%204L12.25%201.8775V1.75H1.75V1.8775L3.8725%204H10.1275Z'%20fill='currentColor'%20/%3e%3c/svg%3e", De = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='14'%20height='14'%20viewBox='0%200%2016%2020'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20stroke='none'%20stroke-width='1'%20fill='currentColor'%20fill-rule='evenodd'%3e%3cg%20transform='translate(-4.000000,%20-2.000000)'%20fill-rule='nonzero'%3e%3cpath%20d='M20,4.5%20L20,5.5%20C20,5.77614237%2019.7761424,6%2019.5,6%20L4.5,6%20C4.22385763,6%204,5.77614237%204,5.5%20L4,4.5%20C4,4.22385763%204.22385763,4%204.5,4%20L9,4%20L9,3%20C9,2.44771525%209.44771525,2%2010,2%20L14,2%20C14.5522847,2%2015,2.44771525%2015,3%20L15,4%20L19.5,4%20C19.7761424,4%2020,4.22385763%2020,4.5%20Z%20M5.87,20.14%20C5.94364604,21.1895509%206.81787161,22.0025807%207.87,22%20L16.15,22%20C17.2021284,22.0025807%2018.076354,21.1895509%2018.15,20.14%20L19,8%20L5,8%20L5.87,20.14%20Z'%20id='Icon-color'%20%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", _e = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='14'%20height='14'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M28.6006%201.20917L28.7906%201.39917C29.08%201.70259%2029.244%202.10412%2029.2498%202.52334V15.1108C29.2505%2015.9548%2028.9142%2016.7642%2028.3156%2017.3592L16.884%2028.7908C16.2664%2029.4047%2015.269%2029.4047%2014.6515%2028.7908L1.20896%2015.3483C0.595061%2014.7308%200.595061%2013.7334%201.20896%2013.1158L12.6406%201.68417C13.2356%201.08561%2014.045%200.749333%2014.889%200.750001H27.4765C27.8957%200.755834%2028.2972%200.91984%2028.6006%201.20917ZM18.1665%208.66667C18.1665%2010.4156%2019.5842%2011.8333%2021.3331%2011.8333C22.173%2011.8333%2022.9784%2011.4997%2023.5723%2010.9058C24.1662%2010.312%2024.4998%209.50652%2024.4998%208.66667C24.4998%206.91777%2023.082%205.5%2021.3331%205.5C19.5842%205.5%2018.1665%206.91777%2018.1665%208.66667Z'%20fill='currentColor'%20/%3e%3c/svg%3e", ye = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='14'%20height='14'%20viewBox='0%200%2018%2019'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20transform='translate(-3.000000,%20-2.000000)'%20fill='currentColor'%20fill-rule='nonzero'%3e%3cpath%20d='M21,6%20C21,4.8954305%2020.1045695,4%2019,4%20L18,4%20L18,2.5%20C18,2.22385763%2017.7761424,2%2017.5,2%20L16.5,2%20C16.2238576,2%2016,2.22385763%2016,2.5%20L16,4%20L8,4%20L8,2.5%20C8,2.22385763%207.77614237,2%207.5,2%20L6.5,2%20C6.22385763,2%206,2.22385763%206,2.5%20L6,4%20L5,4%20C3.8954305,4%203,4.8954305%203,6%20L3,19%20C3,20.1045695%203.8954305,21%205,21%20L19,21%20C20.1045695,21%2021,20.1045695%2021,19%20L21,6%20Z%20M19,19%20L5,19%20L5,8%20L19,8%20L19,19%20Z%20M8,14%20L10,14%20C10.5522847,14%2011,13.5522847%2011,13%20L11,11%20C11,10.4477153%2010.5522847,10%2010,10%20L8,10%20C7.44771525,10%207,10.4477153%207,11%20L7,13%20C7,13.5522847%207.44771525,14%208,14%20Z'%20%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Te = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1720592926051'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='6945'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M358.4%2076.8v76.8h307.2V76.8h76.8v76.8h204.8v793.6H76.8V153.6h204.8V76.8h76.8z%20m-76.8%20153.6H153.6v640h716.8V230.4h-128v76.8h-76.8V230.4H358.4v76.8h-76.8V230.4z%20m418.9184%20152.6784l54.2976%2054.3232-307.712%20307.712-181.0432-180.992%2054.3232-54.3232%20126.72%20126.72%20253.4144-253.44z'%20p-id='6946'%3e%3c/path%3e%3c/svg%3e", ke = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1724214601601'%20class='icon'%20viewBox='0%200%201035%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7572'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='202.1484375'%20height='200'%3e%3cpath%20d='M388.361%20382.546h194.18v64.727h-194.18v-64.727zM0%20576.726h258.907v64.728H0v-64.727z%20m1035.63-129.453H776.723v-64.727h258.907v64.727zM388.361%20900.361H323.635V382.546h64.727v517.815z%20m614.906%200H388.361v-64.726h582.542V447.273h64.727v453.088h-32.363zM32.363%20123.64h614.906v64.726H64.727v388.362H0V123.639h32.363z%20m647.27%20517.815H453.087v-64.727h194.18V123.639h64.728v517.815h-32.364z'%20fill='%23333333'%20p-id='7573'%3e%3c/path%3e%3c/svg%3e", Le = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1726194601824'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='10486'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M914.285714%20749.714286l0-402.285714q0-22.820571-16.018286-38.838857t-38.838857-16.018286l-402.285714%200q-22.820571%200-38.838857-16.018286t-16.018286-38.838857l0-36.571429q0-22.820571-16.018286-38.838857t-38.838857-16.018286l-182.857143%200q-22.820571%200-38.838857%2016.018286t-16.018286%2038.838857l0%20548.571429q0%2022.820571%2016.018286%2038.838857t38.838857%2016.018286l694.857143%200q22.820571%200%2038.838857-16.018286t16.018286-38.838857zM987.428571%20347.428571l0%20402.285714q0%2052.589714-37.741714%2090.258286t-90.258286%2037.741714l-694.857143%200q-52.589714%200-90.258286-37.741714t-37.741714-90.258286l0-548.571429q0-52.589714%2037.741714-90.258286t90.258286-37.741714l182.857143%200q52.589714%200%2090.258286%2037.741714t37.741714%2090.258286l0%2018.285714%20384%200q52.589714%200%2090.258286%2037.741714t37.741714%2090.258286z'%20fill='%23444444'%20p-id='10487'%3e%3c/path%3e%3c/svg%3e", Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1726194606057'%20class='icon'%20viewBox='0%200%201098%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='10644'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='214.453125'%20height='200'%3e%3cpath%20d='M1017.709714%20531.968q0-19.968-30.281143-19.968l-621.714286%200q-22.820571%200-48.859429%2012.288t-40.886857%2029.988571l-168.009143%20207.433143q-10.313143%2013.677714-10.313143%2022.820571%200%2019.968%2030.281143%2019.968l621.714286%200q22.820571%200%2049.152-12.580571t40.594286-30.281143l168.009143-207.433143q10.313143-12.580571%2010.313143-22.308571zM365.714286%20438.857143l438.857143%200%200-91.428571q0-22.820571-16.018286-38.838857t-38.838857-16.018286l-329.142857%200q-22.820571%200-38.838857-16.018286t-16.018286-38.838857l0-36.571429q0-22.820571-16.018286-38.838857t-38.838857-16.018286l-182.857143%200q-22.820571%200-38.838857%2016.018286t-16.018286%2038.838857l0%20487.424%20146.285714-180.004571q25.161143-30.281143%2066.267429-50.029714t80.018286-19.748571zM1090.852571%20531.968q0%2035.401143-26.258286%2068.534857l-168.594286%20207.433143q-24.576%2030.281143-66.267429%2050.029714t-80.018286%2019.748571l-621.714286%200q-52.589714%200-90.258286-37.741714t-37.741714-90.258286l0-548.571429q0-52.589714%2037.741714-90.258286t90.258286-37.741714l182.857143%200q52.589714%200%2090.258286%2037.741714t37.741714%2090.258286l0%2018.285714%20310.857143%200q52.589714%200%2090.258286%2037.741714t37.741714%2090.258286l0%2091.428571%20109.714286%200q30.866286%200%2056.539429%2013.970286t38.253714%2040.301714q8.557714%2018.285714%208.557714%2038.838857z'%20fill='%23444444'%20p-id='10645'%3e%3c/path%3e%3c/svg%3e", be = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1760004998012'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4876'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M672%20640c-8%200-16-3.2-22.4-9.6L512%20492.8l-137.6%20137.6c-12.8%2012.8-32%2012.8-44.8%200-12.8-12.8-12.8-32%200-44.8l160-160c12.8-12.8%2032-12.8%2044.8%200l160%20160c12.8%2012.8%2012.8%2032%200%2044.8-6.4%206.4-14.4%209.6-22.4%209.6z'%20fill='%23FEC10D'%20p-id='4877'%3e%3c/path%3e%3cpath%20d='M512%20960c-17.6%200-32-14.4-32-32V464c0-17.6%2014.4-32%2032-32s32%2014.4%2032%2032v464c0%2017.6-14.4%2032-32%2032z'%20fill='%23FEC10D'%20p-id='4878'%3e%3c/path%3e%3cpath%20d='M768%20768h-64c-17.6%200-32-14.4-32-32s14.4-32%2032-32h64c88%200%20160-72%20160-160%200-76.8-57.6-145.6-134.4-158.4-14.4-1.6-25.6-14.4-27.2-28.8C753.6%20227.2%20643.2%20128%20512%20128s-241.6%2099.2-254.4%20230.4c-1.6%2014.4-12.8%2025.6-27.2%2028.8-76.8%2011.2-134.4%2080-134.4%20156.8%200%2088%2072%20160%20160%20160h64c17.6%200%2032%2014.4%2032%2032s-14.4%2032-32%2032h-64C132.8%20768%2032%20667.2%2032%20544c0-100.8%2068.8-188.8%20164.8-216C224%20176%20355.2%2064%20512%2064c156.8%200%20288%20112%20315.2%20264C923.2%20355.2%20992%20443.2%20992%20544c0%20123.2-100.8%20224-224%20224z'%20fill='%23FEC10D'%20p-id='4879'%3e%3c/path%3e%3c/svg%3e", Ee = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1726194592848'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='10328'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M911.989715%20217.145632q16.017142%2016.017142%2027.426612%2043.443754t11.409471%2050.318692l0%20658.238697q0%2022.818942-16.017142%2038.836083t-38.836083%2016.017142l-767.945147%200q-22.818942%200-38.836083-16.017142t-16.017142-38.836083l0-914.220413q0-22.818942%2016.017142-38.836083t38.836083-16.017142l511.963431%200q22.818942%200%2050.318692%2011.409471t43.443754%2027.426612zM658.275266%2077.672166l0%20214.805228%20214.805228%200q-5.704735-16.602243-12.579673-23.404043l-178.821513-178.821513q-6.874938-6.874938-23.404043-12.579673zM877.688165%20950.789229l0-585.101064-237.697307%200q-22.818942%200-38.836083-16.017142t-16.017142-38.836083l0-237.697307-438.825798%200%200%20877.651596%20731.37633%200z'%20fill='%23444444'%20p-id='10329'%3e%3c/path%3e%3c/svg%3e", S = { | ||
| asc: fe, | ||
| desc: me, | ||
| search: we, | ||
| delect: Ce, | ||
| filter: xe, | ||
| trash: De, | ||
| visible: _e, | ||
| delete: ye, | ||
| todo: Te, | ||
| relate: ke, | ||
| folder: Le, | ||
| folderOpen: Se, | ||
| uploading: be, | ||
| file: Ee | ||
| }, h2 = /* @__PURE__ */ K(p2, [["__scopeId", "data-v-f588325c"]]), f2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1685356134227'%20class='icon'%20viewBox='0%200%201085%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4178'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='211.9140625'%20height='200'%3e%3cpath%20d='M542.797672%20783.398836L0%20240.601164h1085.595343z'%20p-id='4179'%3e%3c/path%3e%3c/svg%3e", m2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1685356123004'%20class='icon'%20viewBox='0%200%201085%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4038'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='211.9140625'%20height='200'%3e%3cpath%20d='M545.20232799%20240.601164L1087.99999999%20783.398836l-1085.595343%200z'%20p-id='4039'%3e%3c/path%3e%3c/svg%3e", w2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1685162926601'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2463'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M460.8%2025.6c240.3584%200%20435.2%20194.8416%20435.2%20435.2%200%20108.288-39.5264%20207.3088-104.96%20283.4688l167.936%20167.9104a51.2%2051.2%200%201%201-72.3968%2072.3968l-170.9568-170.9312A433.2288%20433.2288%200%200%201%20460.8%20896C220.4416%20896%2025.6%20701.1584%2025.6%20460.8S220.4416%2025.6%20460.8%2025.6z%20m0%20102.4C276.992%20128%20128%20276.992%20128%20460.8s148.992%20332.8%20332.8%20332.8%20332.8-148.992%20332.8-332.8S644.608%20128%20460.8%20128z'%20p-id='2464'%3e%3c/path%3e%3c/svg%3e", C2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eico%20/%2024%20/%20actions%20/%20clear@2x%3c/title%3e%3cg%20id='ico-/-24-/-actions-/-clear'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M17.85,16.44%20C17.9446563,16.5338833%2017.9978992,16.6616812%2017.9978992,16.795%20C17.9978992,16.9283188%2017.9446563,17.0561167%2017.85,17.15%20L17.15,17.85%20C17.0561167,17.9446563%2016.9283188,17.9978992%2016.795,17.9978992%20C16.6616812,17.9978992%2016.5338833,17.9446563%2016.44,17.85%20L12,13.41%20L7.56,17.85%20C7.4661167,17.9446563%207.33831877,17.9978992%207.205,17.9978992%20C7.07168123,17.9978992%206.9438833,17.9446563%206.85,17.85%20L6.15,17.15%20C6.05534367,17.0561167%206.00210084,16.9283188%206.00210084,16.795%20C6.00210084,16.6616812%206.05534367,16.5338833%206.15,16.44%20L10.59,12%20L6.15,7.56%20C6.05534367,7.4661167%206.00210084,7.33831877%206.00210084,7.205%20C6.00210084,7.07168123%206.05534367,6.9438833%206.15,6.85%20L6.85,6.15%20C6.9438833,6.05534367%207.07168123,6.00210084%207.205,6.00210084%20C7.33831877,6.00210084%207.4661167,6.05534367%207.56,6.15%20L12,10.59%20L16.44,6.15%20C16.5338833,6.05534367%2016.6616812,6.00210084%2016.795,6.00210084%20C16.9283188,6.00210084%2017.0561167,6.05534367%2017.15,6.15%20L17.85,6.85%20C17.9446563,6.9438833%2017.9978992,7.07168123%2017.9978992,7.205%20C17.9978992,7.33831877%2017.9446563,7.4661167%2017.85,7.56%20L13.41,12%20L17.85,16.44%20Z'%20id='Icon-color'%20fill='currentColor'%20fill-rule='nonzero'%3e%3c/path%3e%3c/g%3e%3c/svg%3e", x2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M1%200.25H13C13.4142%200.25%2013.75%200.585786%2013.75%201V1.8775C13.7503%202.27728%2013.591%202.66065%2013.3075%202.9425L8.9425%207.3075C8.65897%207.58935%208.49968%207.97272%208.5%208.3725V11.125C8.5%2011.5971%208.27771%2012.0417%207.9%2012.325L6.1%2013.675C5.98637%2013.7602%205.83434%2013.7739%205.7073%2013.7104C5.58025%2013.6469%205.5%2013.517%205.5%2013.375V8.3725C5.50032%207.97272%205.34103%207.58935%205.0575%207.3075L0.692501%202.9425C0.408971%202.66065%200.249684%202.27728%200.25%201.8775V1C0.25%200.585786%200.585787%200.25%201%200.25ZM10.1275%204L12.25%201.8775V1.75H1.75V1.8775L3.8725%204H10.1275Z'%20fill='currentColor'%20/%3e%3c/svg%3e", D2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='14'%20height='14'%20viewBox='0%200%2016%2020'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20stroke='none'%20stroke-width='1'%20fill='currentColor'%20fill-rule='evenodd'%3e%3cg%20transform='translate(-4.000000,%20-2.000000)'%20fill-rule='nonzero'%3e%3cpath%20d='M20,4.5%20L20,5.5%20C20,5.77614237%2019.7761424,6%2019.5,6%20L4.5,6%20C4.22385763,6%204,5.77614237%204,5.5%20L4,4.5%20C4,4.22385763%204.22385763,4%204.5,4%20L9,4%20L9,3%20C9,2.44771525%209.44771525,2%2010,2%20L14,2%20C14.5522847,2%2015,2.44771525%2015,3%20L15,4%20L19.5,4%20C19.7761424,4%2020,4.22385763%2020,4.5%20Z%20M5.87,20.14%20C5.94364604,21.1895509%206.81787161,22.0025807%207.87,22%20L16.15,22%20C17.2021284,22.0025807%2018.076354,21.1895509%2018.15,20.14%20L19,8%20L5,8%20L5.87,20.14%20Z'%20id='Icon-color'%20%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", y2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='14'%20height='14'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M28.6006%201.20917L28.7906%201.39917C29.08%201.70259%2029.244%202.10412%2029.2498%202.52334V15.1108C29.2505%2015.9548%2028.9142%2016.7642%2028.3156%2017.3592L16.884%2028.7908C16.2664%2029.4047%2015.269%2029.4047%2014.6515%2028.7908L1.20896%2015.3483C0.595061%2014.7308%200.595061%2013.7334%201.20896%2013.1158L12.6406%201.68417C13.2356%201.08561%2014.045%200.749333%2014.889%200.750001H27.4765C27.8957%200.755834%2028.2972%200.91984%2028.6006%201.20917ZM18.1665%208.66667C18.1665%2010.4156%2019.5842%2011.8333%2021.3331%2011.8333C22.173%2011.8333%2022.9784%2011.4997%2023.5723%2010.9058C24.1662%2010.312%2024.4998%209.50652%2024.4998%208.66667C24.4998%206.91777%2023.082%205.5%2021.3331%205.5C19.5842%205.5%2018.1665%206.91777%2018.1665%208.66667Z'%20fill='currentColor'%20/%3e%3c/svg%3e", _2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20width='14'%20height='14'%20viewBox='0%200%2018%2019'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20transform='translate(-3.000000,%20-2.000000)'%20fill='currentColor'%20fill-rule='nonzero'%3e%3cpath%20d='M21,6%20C21,4.8954305%2020.1045695,4%2019,4%20L18,4%20L18,2.5%20C18,2.22385763%2017.7761424,2%2017.5,2%20L16.5,2%20C16.2238576,2%2016,2.22385763%2016,2.5%20L16,4%20L8,4%20L8,2.5%20C8,2.22385763%207.77614237,2%207.5,2%20L6.5,2%20C6.22385763,2%206,2.22385763%206,2.5%20L6,4%20L5,4%20C3.8954305,4%203,4.8954305%203,6%20L3,19%20C3,20.1045695%203.8954305,21%205,21%20L19,21%20C20.1045695,21%2021,20.1045695%2021,19%20L21,6%20Z%20M19,19%20L5,19%20L5,8%20L19,8%20L19,19%20Z%20M8,14%20L10,14%20C10.5522847,14%2011,13.5522847%2011,13%20L11,11%20C11,10.4477153%2010.5522847,10%2010,10%20L8,10%20C7.44771525,10%207,10.4477153%207,11%20L7,13%20C7,13.5522847%207.44771525,14%208,14%20Z'%20%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", T2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1720592926051'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='6945'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M358.4%2076.8v76.8h307.2V76.8h76.8v76.8h204.8v793.6H76.8V153.6h204.8V76.8h76.8z%20m-76.8%20153.6H153.6v640h716.8V230.4h-128v76.8h-76.8V230.4H358.4v76.8h-76.8V230.4z%20m418.9184%20152.6784l54.2976%2054.3232-307.712%20307.712-181.0432-180.992%2054.3232-54.3232%20126.72%20126.72%20253.4144-253.44z'%20p-id='6946'%3e%3c/path%3e%3c/svg%3e", k2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1724214601601'%20class='icon'%20viewBox='0%200%201035%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7572'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='202.1484375'%20height='200'%3e%3cpath%20d='M388.361%20382.546h194.18v64.727h-194.18v-64.727zM0%20576.726h258.907v64.728H0v-64.727z%20m1035.63-129.453H776.723v-64.727h258.907v64.727zM388.361%20900.361H323.635V382.546h64.727v517.815z%20m614.906%200H388.361v-64.726h582.542V447.273h64.727v453.088h-32.363zM32.363%20123.64h614.906v64.726H64.727v388.362H0V123.639h32.363z%20m647.27%20517.815H453.087v-64.727h194.18V123.639h64.728v517.815h-32.364z'%20fill='%23333333'%20p-id='7573'%3e%3c/path%3e%3c/svg%3e", L2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1726194601824'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='10486'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M914.285714%20749.714286l0-402.285714q0-22.820571-16.018286-38.838857t-38.838857-16.018286l-402.285714%200q-22.820571%200-38.838857-16.018286t-16.018286-38.838857l0-36.571429q0-22.820571-16.018286-38.838857t-38.838857-16.018286l-182.857143%200q-22.820571%200-38.838857%2016.018286t-16.018286%2038.838857l0%20548.571429q0%2022.820571%2016.018286%2038.838857t38.838857%2016.018286l694.857143%200q22.820571%200%2038.838857-16.018286t16.018286-38.838857zM987.428571%20347.428571l0%20402.285714q0%2052.589714-37.741714%2090.258286t-90.258286%2037.741714l-694.857143%200q-52.589714%200-90.258286-37.741714t-37.741714-90.258286l0-548.571429q0-52.589714%2037.741714-90.258286t90.258286-37.741714l182.857143%200q52.589714%200%2090.258286%2037.741714t37.741714%2090.258286l0%2018.285714%20384%200q52.589714%200%2090.258286%2037.741714t37.741714%2090.258286z'%20fill='%23444444'%20p-id='10487'%3e%3c/path%3e%3c/svg%3e", S2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1726194606057'%20class='icon'%20viewBox='0%200%201098%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='10644'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='214.453125'%20height='200'%3e%3cpath%20d='M1017.709714%20531.968q0-19.968-30.281143-19.968l-621.714286%200q-22.820571%200-48.859429%2012.288t-40.886857%2029.988571l-168.009143%20207.433143q-10.313143%2013.677714-10.313143%2022.820571%200%2019.968%2030.281143%2019.968l621.714286%200q22.820571%200%2049.152-12.580571t40.594286-30.281143l168.009143-207.433143q10.313143-12.580571%2010.313143-22.308571zM365.714286%20438.857143l438.857143%200%200-91.428571q0-22.820571-16.018286-38.838857t-38.838857-16.018286l-329.142857%200q-22.820571%200-38.838857-16.018286t-16.018286-38.838857l0-36.571429q0-22.820571-16.018286-38.838857t-38.838857-16.018286l-182.857143%200q-22.820571%200-38.838857%2016.018286t-16.018286%2038.838857l0%20487.424%20146.285714-180.004571q25.161143-30.281143%2066.267429-50.029714t80.018286-19.748571zM1090.852571%20531.968q0%2035.401143-26.258286%2068.534857l-168.594286%20207.433143q-24.576%2030.281143-66.267429%2050.029714t-80.018286%2019.748571l-621.714286%200q-52.589714%200-90.258286-37.741714t-37.741714-90.258286l0-548.571429q0-52.589714%2037.741714-90.258286t90.258286-37.741714l182.857143%200q52.589714%200%2090.258286%2037.741714t37.741714%2090.258286l0%2018.285714%20310.857143%200q52.589714%200%2090.258286%2037.741714t37.741714%2090.258286l0%2091.428571%20109.714286%200q30.866286%200%2056.539429%2013.970286t38.253714%2040.301714q8.557714%2018.285714%208.557714%2038.838857z'%20fill='%23444444'%20p-id='10645'%3e%3c/path%3e%3c/svg%3e", b2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1760004998012'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4876'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M672%20640c-8%200-16-3.2-22.4-9.6L512%20492.8l-137.6%20137.6c-12.8%2012.8-32%2012.8-44.8%200-12.8-12.8-12.8-32%200-44.8l160-160c12.8-12.8%2032-12.8%2044.8%200l160%20160c12.8%2012.8%2012.8%2032%200%2044.8-6.4%206.4-14.4%209.6-22.4%209.6z'%20fill='%23FEC10D'%20p-id='4877'%3e%3c/path%3e%3cpath%20d='M512%20960c-17.6%200-32-14.4-32-32V464c0-17.6%2014.4-32%2032-32s32%2014.4%2032%2032v464c0%2017.6-14.4%2032-32%2032z'%20fill='%23FEC10D'%20p-id='4878'%3e%3c/path%3e%3cpath%20d='M768%20768h-64c-17.6%200-32-14.4-32-32s14.4-32%2032-32h64c88%200%20160-72%20160-160%200-76.8-57.6-145.6-134.4-158.4-14.4-1.6-25.6-14.4-27.2-28.8C753.6%20227.2%20643.2%20128%20512%20128s-241.6%2099.2-254.4%20230.4c-1.6%2014.4-12.8%2025.6-27.2%2028.8-76.8%2011.2-134.4%2080-134.4%20156.8%200%2088%2072%20160%20160%20160h64c17.6%200%2032%2014.4%2032%2032s-14.4%2032-32%2032h-64C132.8%20768%2032%20667.2%2032%20544c0-100.8%2068.8-188.8%20164.8-216C224%20176%20355.2%2064%20512%2064c156.8%200%20288%20112%20315.2%20264C923.2%20355.2%20992%20443.2%20992%20544c0%20123.2-100.8%20224-224%20224z'%20fill='%23FEC10D'%20p-id='4879'%3e%3c/path%3e%3c/svg%3e", E2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1726194592848'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='10328'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M911.989715%20217.145632q16.017142%2016.017142%2027.426612%2043.443754t11.409471%2050.318692l0%20658.238697q0%2022.818942-16.017142%2038.836083t-38.836083%2016.017142l-767.945147%200q-22.818942%200-38.836083-16.017142t-16.017142-38.836083l0-914.220413q0-22.818942%2016.017142-38.836083t38.836083-16.017142l511.963431%200q22.818942%200%2050.318692%2011.409471t43.443754%2027.426612zM658.275266%2077.672166l0%20214.805228%20214.805228%200q-5.704735-16.602243-12.579673-23.404043l-178.821513-178.821513q-6.874938-6.874938-23.404043-12.579673zM877.688165%20950.789229l0-585.101064-237.697307%200q-22.818942%200-38.836083-16.017142t-16.017142-38.836083l0-237.697307-438.825798%200%200%20877.651596%20731.37633%200z'%20fill='%23444444'%20p-id='10329'%3e%3c/path%3e%3c/svg%3e", V = { | ||
| asc: f2, | ||
| desc: m2, | ||
| search: w2, | ||
| delect: C2, | ||
| filter: x2, | ||
| trash: D2, | ||
| visible: y2, | ||
| delete: _2, | ||
| todo: T2, | ||
| relate: k2, | ||
| folder: L2, | ||
| folderOpen: S2, | ||
| uploading: b2, | ||
| file: E2 | ||
| }; | ||
| function v2(o) { | ||
| return window.location.protocol === "https:" && /^http:/.test(o) ? o.replace(/^http:/, "https:") : o; | ||
| function xe(n) { | ||
| return window.location.protocol === "https:" && /^http:/.test(n) ? n.replace(/^http:/, "https:") : n; | ||
| } | ||
| function o2(o) { | ||
| if (typeof o == "string" || typeof o == "number") | ||
| return o; | ||
| switch (o.type) { | ||
| function de(n) { | ||
| if (typeof n == "string" || typeof n == "number") | ||
| return n; | ||
| switch (n.type) { | ||
| case "image": | ||
| return `<img style="width:80px;height: auto;" src="${v2( | ||
| o.content | ||
| return `<img style="width:80px;height: auto;" src="${xe( | ||
| n.content | ||
| )}" />`; | ||
| case "video": | ||
| return `<video style="width:200px;height: auto;object-fit: cover;background-color: #000;" src="${v2( | ||
| o.content | ||
| return `<video style="width:200px;height: auto;object-fit: cover;background-color: #000;" src="${xe( | ||
| n.content | ||
| )}" />`; | ||
| case "audio": | ||
| return `<audio width="300" controls src="${v2(o.content)}" />`; | ||
| return `<audio width="300" controls src="${xe(n.content)}" />`; | ||
| case "file": | ||
| return `文件: ${o.name}`; | ||
| return `文件: ${n.name}`; | ||
| default: | ||
| return o.text || " "; | ||
| return n.text || " "; | ||
| } | ||
| } | ||
| function q2(o, L = !1) { | ||
| const c = o.target.getBoundingClientRect(), g = o.clientY; | ||
| if (L) { | ||
| const N = c.height / 3, d = 2 * N; | ||
| return g < c.top + N ? "before" : g > c.top + d ? "after" : "inner"; | ||
| function $e(n, S = !1) { | ||
| const u = n.target.getBoundingClientRect(), c = n.clientY; | ||
| if (S) { | ||
| const N = u.height / 3, D = 2 * N; | ||
| return c < u.top + N ? "before" : c > u.top + D ? "after" : "inner"; | ||
| } else | ||
| return g < c.top + c.height / 2 ? "before" : "after"; | ||
| return c < u.top + u.height / 2 ? "before" : "after"; | ||
| } | ||
| const f = Q2({ | ||
| const h = t2({ | ||
| dragging: !1, | ||
| dropId: null, | ||
| dropPosition: "" | ||
| }), Y2 = (o) => (oe("data-v-ce9a6620"), o = o(), se(), o), Ve = { | ||
| }), Ue = (n) => (r2("data-v-ce9a6620"), n = n(), n2(), n), V2 = { | ||
| key: 0, | ||
| class: "record-list-bar" | ||
| }, Ie = { class: "record-list-bar-search" }, Be = { | ||
| }, I2 = { class: "record-list-bar-search" }, B2 = { | ||
| key: 1, | ||
| class: "record-list-sort" | ||
| }, Ne = { class: "record-list-sort-tags" }, Me = { class: "record-list-sort-box" }, Ge = { class: "record-list-sort-arrow" }, Pe = { class: "record-list-sort-arrow" }, qe = /* @__PURE__ */ Y2(() => /* @__PURE__ */ v("path", { | ||
| }, N2 = { class: "record-list-sort-tags" }, M2 = { class: "record-list-sort-box" }, G2 = { class: "record-list-sort-arrow" }, P2 = { class: "record-list-sort-arrow" }, q2 = /* @__PURE__ */ Ue(() => /* @__PURE__ */ v("path", { | ||
| "fill-rule": "evenodd", | ||
| d: "M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z" | ||
| }, null, -1)), Ye = [ | ||
| qe | ||
| ], ze = { | ||
| }, null, -1)), Y2 = [ | ||
| q2 | ||
| ], z2 = { | ||
| key: 1, | ||
| class: "record-list-empty" | ||
| }, Oe = ["draggable", "onDragstart", "onDragover"], Ae = { | ||
| }, O2 = ["draggable", "onDragstart", "onDragover"], A2 = { | ||
| key: 0, | ||
| class: "record-list-item-tag-wrap" | ||
| }, He = ["onClick"], $e = ["innerHTML"], Ue = ["innerHTML"], Fe = /* @__PURE__ */ Y2(() => /* @__PURE__ */ v("path", { | ||
| }, H2 = ["onClick"], $2 = ["innerHTML"], U2 = ["innerHTML"], F2 = /* @__PURE__ */ Ue(() => /* @__PURE__ */ v("path", { | ||
| "fill-rule": "evenodd", | ||
| d: "M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z" | ||
| }, null, -1)), Re = [ | ||
| Fe | ||
| ], We = { | ||
| }, null, -1)), R2 = [ | ||
| F2 | ||
| ], W2 = { | ||
| __name: "record-list", | ||
@@ -252,5 +252,5 @@ props: { | ||
| ], | ||
| setup(o, { emit: L }) { | ||
| let m = null; | ||
| const c = L, g = o, N = _(0), d = _(null), l = _({ | ||
| setup(n, { emit: S }) { | ||
| let C = null; | ||
| const u = S, c = n, N = x(0), D = x(null), t = x({ | ||
| trash: !1, | ||
@@ -262,35 +262,35 @@ sort: 1, | ||
| noteName: "" | ||
| }), x = _(!1), I = _(null), $ = _(null), U = _(null), M = _(!0), s2 = _(null), w = _({ | ||
| }), w = x(!1), A = x(null), M = x(null), b = x(null), T = x(!0), ue = x(null), f = x({ | ||
| datetime: !1, | ||
| tagsShow: !1, | ||
| tag: !1 | ||
| }), Y = ce() === "mobile", z = V(() => !l.value.trash && g.draggable && !x.value), J = V(() => M.value && g.mode !== "simple"), K = V(() => M.value && g.mode !== "simple"), Q = V(() => { | ||
| const e = b2(); | ||
| }), H = c2() === "mobile", $ = B(() => !t.value.trash && c.draggable && !w.value), ge = B(() => T.value && c.mode !== "simple"), Q = B(() => T.value && c.mode !== "simple"), U = B(() => { | ||
| const e = Ne(); | ||
| if (!e || e.vnode.props && e.vnode.props.onGetList) | ||
| return [...g.noteList]; | ||
| const { tagIds: t, trash: a, sortType: h, sort: d2, noteName: u2 } = l.value, g2 = g.noteList.filter((G) => { | ||
| const l2 = G.tag_id; | ||
| return t != null && t.length && !t.includes(l2) || u2 && G.title.indexOf(u2) < 0 && G.content.indexOf(u2) < 0 ? !1 : a ? !!G.deleted_at : !G.deleted_at; | ||
| return [...c.noteList]; | ||
| const { tagIds: l, trash: r, sortType: p, sort: me, noteName: we } = t.value, Ce = c.noteList.filter((P) => { | ||
| const ne = P.tag_id; | ||
| return l != null && l.length && !l.includes(ne) || we && P.title.indexOf(we) < 0 && P.content.indexOf(we) < 0 ? !1 : r ? !!P.deleted_at : !P.deleted_at; | ||
| }); | ||
| return l.value.sort === 0 || g2.sort((G, l2) => { | ||
| const a2 = d2 === 1 ? "created_at" : "updated_at"; | ||
| return h === "ASC" ? G[a2] > l2[a2] ? 1 : -1 : G[a2] > l2[a2] ? -1 : 1; | ||
| }), g2; | ||
| }), e2 = V(() => g.tags.filter(r2).map((e) => e.created_at)), t2 = V(() => l.value.trash ? Q.value : Q.value.filter((e) => { | ||
| const t = e2.value.includes(e.tag_id), a = t && H(e).finished; | ||
| return x.value ? a : !t || !a; | ||
| })), O = _(!1), n2 = V(() => O.value ? "list" : "disabled"), i2 = V(() => { | ||
| return t.value.sort === 0 || Ce.sort((P, ne) => { | ||
| const se = me === 1 ? "created_at" : "updated_at"; | ||
| return p === "ASC" ? P[se] > ne[se] ? 1 : -1 : P[se] > ne[se] ? -1 : 1; | ||
| }), Ce; | ||
| }), ee = B(() => c.tags.filter(ie).map((e) => e.created_at)), F = B(() => t.value.trash ? U.value : U.value.filter((e) => { | ||
| const l = ee.value.includes(e.tag_id), r = l && O(e).finished; | ||
| return w.value ? r : !l || !r; | ||
| })), R = x(!1), te = B(() => R.value ? "list" : "disabled"), ve = B(() => { | ||
| const e = { | ||
| "padding-top": "5rem" | ||
| }; | ||
| return g.mode === "simple" ? (e["padding-top"] = "6px", e) : (w.value.tagsShow && (e["padding-top"] = `calc(4rem + ${N.value + 20}px)`), e); | ||
| return c.mode === "simple" ? (e["padding-top"] = "6px", e) : (f.value.tagsShow && (e["padding-top"] = `calc(4rem + ${N.value + 20}px)`), e); | ||
| }); | ||
| P( | ||
| () => g.filters, | ||
| q( | ||
| () => c.filters, | ||
| () => { | ||
| var e; | ||
| (e = g.filters) != null && e.todo && (l.value.tagIds = [ | ||
| (e = c.filters) != null && e.todo && (t.value.tagIds = [ | ||
| // 防止空数组查询全部 | ||
| "__TODO__", | ||
| ...(g.tags || []).filter(r2).map((t) => t.created_at) | ||
| ...(c.tags || []).filter(ie).map((l) => l.created_at) | ||
| ]); | ||
@@ -301,75 +301,75 @@ }, | ||
| } | ||
| ), P( | ||
| () => g.activeNote, | ||
| ), q( | ||
| () => c.activeNote, | ||
| (e) => { | ||
| U.value = e == null ? void 0 : e.created_at; | ||
| b.value = e == null ? void 0 : e.created_at; | ||
| }, | ||
| { immediate: !0 } | ||
| ), P( | ||
| () => g.expand, | ||
| ), q( | ||
| () => c.expand, | ||
| (e) => { | ||
| M.value = e; | ||
| T.value = e; | ||
| }, | ||
| { immediate: !0 } | ||
| ), P( | ||
| () => g.datetimeVisible, | ||
| ), q( | ||
| () => c.datetimeVisible, | ||
| (e) => { | ||
| w.value.datetime = e; | ||
| f.value.datetime = e; | ||
| }, | ||
| { immediate: !0 } | ||
| ), P( | ||
| () => g.tagsShowVisible, | ||
| ), q( | ||
| () => c.tagsShowVisible, | ||
| (e) => { | ||
| w.value.tagsShow = e, e && y2(); | ||
| f.value.tagsShow = e, e && be(); | ||
| }, | ||
| { immediate: !0 } | ||
| ), P( | ||
| () => g.tagVisible, | ||
| ), q( | ||
| () => c.tagVisible, | ||
| (e) => { | ||
| w.value.tag = e; | ||
| f.value.tag = e; | ||
| }, | ||
| { immediate: !0 } | ||
| ), P( | ||
| () => g.sortType, | ||
| ), q( | ||
| () => c.sortType, | ||
| () => { | ||
| l.value.sort = +g.sort, l.value.sortType = g.sortType || "DESC", l.value.page = 1, c("getList", l.value); | ||
| t.value.sort = +c.sort, t.value.sortType = c.sortType || "DESC", t.value.page = 1, u("getList", t.value); | ||
| }, | ||
| { immediate: !0 } | ||
| ), B2(() => { | ||
| document.addEventListener("click", C2); | ||
| }), N2(() => { | ||
| document.removeEventListener("click", C2); | ||
| ), qe(() => { | ||
| document.addEventListener("click", Te); | ||
| }), Ye(() => { | ||
| document.removeEventListener("click", Te); | ||
| }); | ||
| function F(e) { | ||
| return ne(e).format("YYYY年MM月DD日 HH:mm:ss"); | ||
| function W(e) { | ||
| return s2(e).format("YYYY年MM月DD日 HH:mm:ss"); | ||
| } | ||
| function R(e) { | ||
| let t = (e || "").replace("closeIcon", "").replace("contenteditable", "temp"); | ||
| function le(e) { | ||
| let l = (e || "").replace("closeIcon", "").replace("contenteditable", "temp"); | ||
| try { | ||
| t = JSON.parse(t); | ||
| l = JSON.parse(l); | ||
| } catch { | ||
| } | ||
| if (Array.isArray(t)) { | ||
| let a = t.find((h) => h.text || h.type && !h.pending); | ||
| return a ? o2(a) : ""; | ||
| if (Array.isArray(l)) { | ||
| let r = l.find((p) => p.text || p.type && !p.pending); | ||
| return r ? de(r) : ""; | ||
| } else | ||
| return typeof t != "string" ? o2(t) : M2.sanitize(e); | ||
| return typeof l != "string" ? de(l) : Oe.sanitize(e); | ||
| } | ||
| function r(e) { | ||
| const t = I2(e.tag_id, g.tags), a = H(e); | ||
| return r2(t) && a.finished ? { | ||
| function pe(e) { | ||
| const l = Pe(e.tag_id, c.tags), r = O(e); | ||
| return ie(l) && r.finished ? { | ||
| "record-list-item-title-finished": !0 | ||
| } : {}; | ||
| } | ||
| function n() { | ||
| const e = !M.value; | ||
| M.value = e, c("toggle", e); | ||
| function X() { | ||
| const e = !T.value; | ||
| T.value = e, u("toggle", e); | ||
| } | ||
| function p(e) { | ||
| clearTimeout(m), m = null; | ||
| const t = e.currentTarget; | ||
| t.scrollHeight - t.scrollTop - t.clientHeight <= 50 && (l.value.page += 1, c("changePage", l.value)); | ||
| function ae(e) { | ||
| clearTimeout(C), C = null; | ||
| const l = e.currentTarget; | ||
| l.scrollHeight - l.scrollTop - l.clientHeight <= 50 && (t.value.page += 1, u("changePage", t.value)); | ||
| } | ||
| function y(e) { | ||
| const t = { | ||
| function he(e) { | ||
| const l = { | ||
| touchStartX: 0, | ||
@@ -379,43 +379,43 @@ touchStartY: 0, | ||
| touchEndY: 0 | ||
| }, a = () => { | ||
| m !== null && (clearTimeout(m), m = null); | ||
| }, r = () => { | ||
| C !== null && (clearTimeout(C), C = null); | ||
| }; | ||
| return Y ? { | ||
| click: () => m2(e), | ||
| touchstart: (h) => { | ||
| t.touchStartX = h.touches[0].clientX, t.touchStartY = h.touches[0].clientY, m === null && (m = setTimeout(() => { | ||
| w2(h, e); | ||
| return H ? { | ||
| click: () => a(e), | ||
| touchstart: (p) => { | ||
| l.touchStartX = p.touches[0].clientX, l.touchStartY = p.touches[0].clientY, C === null && (C = setTimeout(() => { | ||
| _e(p, e); | ||
| }, 500)); | ||
| }, | ||
| touchmove: (h) => { | ||
| a(), t.touchEndX = h.touches[0].clientX, t.touchEndY = h.touches[0].clientY; | ||
| touchmove: (p) => { | ||
| r(), l.touchEndX = p.touches[0].clientX, l.touchEndY = p.touches[0].clientY; | ||
| }, | ||
| touchend: () => { | ||
| a(); | ||
| const h = t.touchEndX - t.touchStartX, d2 = t.touchEndY - t.touchStartY; | ||
| Math.abs(h) > Math.abs(d2) && Math.abs(h) > 50 && f2(e, h > 0); | ||
| r(); | ||
| const p = l.touchEndX - l.touchStartX, me = l.touchEndY - l.touchStartY; | ||
| Math.abs(p) > Math.abs(me) && Math.abs(p) > 50 && re(e, p > 0); | ||
| } | ||
| } : { | ||
| click: () => m2(e), | ||
| contextmenu: (h) => w2(h, e) | ||
| click: () => a(e), | ||
| contextmenu: (p) => _e(p, e) | ||
| }; | ||
| } | ||
| function z2(e) { | ||
| if (!Y) { | ||
| const t = H(e); | ||
| f2(e, !t.finished); | ||
| function oe(e) { | ||
| if (!H) { | ||
| const l = O(e); | ||
| re(e, !l.finished); | ||
| } | ||
| } | ||
| function f2(e, t) { | ||
| if (c2(e)) | ||
| function re(e, l) { | ||
| if (fe(e)) | ||
| return; | ||
| const a = I2(e.tag_id, g.tags); | ||
| if (r2(a)) { | ||
| T2(); | ||
| const h = H(e); | ||
| c("changeNote", { | ||
| const r = Pe(e.tag_id, c.tags); | ||
| if (ie(r)) { | ||
| Ee(); | ||
| const p = O(e); | ||
| u("changeNote", { | ||
| ...e, | ||
| ext: JSON.stringify({ | ||
| ...h, | ||
| finished: t | ||
| ...p, | ||
| finished: l | ||
| }), | ||
@@ -426,20 +426,20 @@ updated_at: Date.now() | ||
| } | ||
| function m2(e) { | ||
| d.value || (U.value = e.created_at, e.deleted_at || c("selectNote", e)); | ||
| function a(e) { | ||
| D.value || (b.value = e.created_at, e.deleted_at || u("selectNote", e)); | ||
| } | ||
| function O2() { | ||
| const e = !w.value.tagsShow; | ||
| w.value.tagsShow = e, c("changeTagsShowVisible", e), e && y2(); | ||
| function o() { | ||
| const e = !f.value.tagsShow; | ||
| f.value.tagsShow = e, u("changeTagsShowVisible", e), e && be(); | ||
| } | ||
| function A2() { | ||
| const e = !w.value.datetime; | ||
| w.value.datetime = e, c("changeDatetimeVisible", e); | ||
| function d() { | ||
| const e = !f.value.datetime; | ||
| f.value.datetime = e, u("changeDatetimeVisible", e); | ||
| } | ||
| function H2() { | ||
| const e = !w.value.tag; | ||
| w.value.tag = e, c("changeTagVisible", e); | ||
| function y() { | ||
| const e = !f.value.tag; | ||
| f.value.tag = e, u("changeTagVisible", e); | ||
| } | ||
| function w2(e, t) { | ||
| e.preventDefault(), d.value = t, p2(() => { | ||
| G2( | ||
| function _e(e, l) { | ||
| e.preventDefault(), D.value = l, ce(() => { | ||
| Ae( | ||
| { | ||
@@ -464,3 +464,3 @@ getBoundingClientRect() { | ||
| }, | ||
| $.value, | ||
| M.value, | ||
| { | ||
@@ -480,37 +480,37 @@ placement: "right-start", | ||
| } | ||
| function C2(e) { | ||
| var t; | ||
| (t = $.value) != null && t.contains(e.target) || (d.value = null); | ||
| function Te(e) { | ||
| var l; | ||
| (l = M.value) != null && l.contains(e.target) || (D.value = null); | ||
| } | ||
| function x2() { | ||
| const e = !l.value.trash; | ||
| l.value.trash = e, l.value.page = 1, e && (x.value = !1), c("getList", l.value); | ||
| function ke() { | ||
| const e = !t.value.trash; | ||
| t.value.trash = e, t.value.page = 1, e && (w.value = !1), u("getList", t.value); | ||
| } | ||
| function $2() { | ||
| x.value = !x.value, l.value.trash && x2(); | ||
| function Fe() { | ||
| w.value = !w.value, t.value.trash && ke(); | ||
| } | ||
| function U2(e) { | ||
| l.value.noteName = e.target.value, l.value.page = 1, c("getList", l.value); | ||
| function Re(e) { | ||
| t.value.noteName = e.target.value, t.value.page = 1, u("getList", t.value); | ||
| } | ||
| function F2() { | ||
| var t; | ||
| l.value.noteName = ""; | ||
| const e = b2(); | ||
| (t = e == null ? void 0 : e.proxy) == null || t.$forceUpdate(), c("getList", l.value); | ||
| function We() { | ||
| var l; | ||
| t.value.noteName = ""; | ||
| const e = Ne(); | ||
| (l = e == null ? void 0 : e.proxy) == null || l.$forceUpdate(), u("getList", t.value); | ||
| } | ||
| function R2(e) { | ||
| l.value.tagIds = e, l.value.page = 1, c("getList", l.value); | ||
| function Xe(e) { | ||
| t.value.tagIds = e, t.value.page = 1, u("getList", t.value); | ||
| } | ||
| function D2(e) { | ||
| e == l.value.sort ? l.value.sortType = l.value.sortType == "DESC" ? "ASC" : "DESC" : (l.value.sort = e, l.value.sortType = "DESC"), l.value.page = 1, c("getList", l.value), c("changeSort", { | ||
| function Le(e) { | ||
| e == t.value.sort ? t.value.sortType = t.value.sortType == "DESC" ? "ASC" : "DESC" : (t.value.sort = e, t.value.sortType = "DESC"), t.value.page = 1, u("getList", t.value), u("changeSort", { | ||
| sort: e, | ||
| sortType: l.value.sortType | ||
| sortType: t.value.sortType | ||
| }); | ||
| } | ||
| function _2(e = !1) { | ||
| T2(), c("removeNote", d.value, e), d.value = null; | ||
| function Se(e = !1) { | ||
| Ee(), u("removeNote", D.value, e), D.value = null; | ||
| } | ||
| function y2() { | ||
| var t; | ||
| const e = (t = I.value) == null ? void 0 : t.$el; | ||
| function be() { | ||
| var l; | ||
| const e = (l = A.value) == null ? void 0 : l.$el; | ||
| e && setTimeout(() => { | ||
@@ -520,63 +520,63 @@ N.value = e.clientHeight; | ||
| } | ||
| function T2() { | ||
| O.value = !0, setTimeout(() => { | ||
| O.value = !1; | ||
| function Ee() { | ||
| R.value = !0, setTimeout(() => { | ||
| R.value = !1; | ||
| }, 500); | ||
| } | ||
| function k2(e, t = {}) { | ||
| if (!z.value || window.__DRAG_ID__ === t.created_at) { | ||
| function Ve(e, l = {}) { | ||
| if (!$.value || window.__DRAG_ID__ === l.created_at) { | ||
| e.dataTransfer.dropEffect = "none"; | ||
| return; | ||
| } | ||
| f.dropId = t.created_at, f.dropPosition = q2(e, t.type === "folder"); | ||
| h.dropId = l.created_at, h.dropPosition = $e(e, l.type === "folder"); | ||
| } | ||
| function W2(e) { | ||
| const t = e.cloneNode(!0); | ||
| return t.classList.add("dragging-image"), t.style.width = `${e.offsetWidth}px`, document.body.appendChild(t), t; | ||
| function Ze(e) { | ||
| const l = e.cloneNode(!0); | ||
| return l.classList.add("dragging-image"), l.style.width = `${e.offsetWidth}px`, document.body.appendChild(l), l; | ||
| } | ||
| function X2(e, t) { | ||
| const a = t.type || "note"; | ||
| window.__DRAG_TYPE__ = a, window.__DRAG_ID__ = t.created_at, e.dataTransfer.setData( | ||
| function je(e, l) { | ||
| const r = l.type || "note"; | ||
| window.__DRAG_TYPE__ = r, window.__DRAG_ID__ = l.created_at, e.dataTransfer.setData( | ||
| "dragData", | ||
| JSON.stringify({ | ||
| type: a, | ||
| data: t, | ||
| type: r, | ||
| data: l, | ||
| action: e.altKey ? "rel" : "move" | ||
| }) | ||
| ); | ||
| const h = W2(e.target); | ||
| e.dataTransfer.setDragImage(h, 25, 25); | ||
| const p = Ze(e.target); | ||
| e.dataTransfer.setDragImage(p, 25, 25); | ||
| } | ||
| function Z2() { | ||
| delete window.__DRAG_TYPE__, delete window.__DRAG_ID__, document.querySelectorAll(".dragging-image").forEach((t) => t.remove()); | ||
| function Je() { | ||
| delete window.__DRAG_TYPE__, delete window.__DRAG_ID__, document.querySelectorAll(".dragging-image").forEach((l) => l.remove()); | ||
| } | ||
| function L2(e) { | ||
| z.value && (c("drop", e, { | ||
| id: f.dropId, | ||
| position: f.dropPosition | ||
| }), S2()); | ||
| function Ie(e) { | ||
| $.value && (u("drop", e, { | ||
| id: h.dropId, | ||
| position: h.dropPosition | ||
| }), Be()); | ||
| } | ||
| function S2() { | ||
| f.dropId = null, f.dropPosition = ""; | ||
| function Be() { | ||
| h.dropId = null, h.dropPosition = ""; | ||
| } | ||
| function c2(e) { | ||
| return !!H(e).rel; | ||
| function fe(e) { | ||
| return !!O(e).rel; | ||
| } | ||
| function j2(e) { | ||
| return !!H(e).uploading; | ||
| function Ke(e) { | ||
| return !!O(e).uploading; | ||
| } | ||
| function J2(e) { | ||
| return z.value && !c2(e); | ||
| function Qe(e) { | ||
| return $.value && !fe(e); | ||
| } | ||
| return (e, t) => (i(), u("div", { | ||
| class: q({ | ||
| return (e, l) => (i(), g("div", { | ||
| class: Y({ | ||
| "record-list": !0, | ||
| "record-list-mobile": Y | ||
| "record-list-mobile": H | ||
| }) | ||
| }, [ | ||
| J.value ? (i(), u("div", Ve, [ | ||
| v("div", Ie, [ | ||
| T(s(E), { | ||
| ge.value ? (i(), g("div", V2, [ | ||
| v("div", I2, [ | ||
| k(s(I), { | ||
| class: "record-list-bar-search-icon", | ||
| src: s(S).search, | ||
| src: s(V).search, | ||
| width: "14", | ||
@@ -586,16 +586,16 @@ height: "14", | ||
| }, null, 8, ["src"]), | ||
| b(v("input", { | ||
| E(v("input", { | ||
| class: "record-list-bar-search-input", | ||
| "onUpdate:modelValue": t[0] || (t[0] = (a) => l.value.noteName = a), | ||
| "onUpdate:modelValue": l[0] || (l[0] = (r) => t.value.noteName = r), | ||
| placeholder: "搜索", | ||
| onKeyup: ee(U2, ["enter"]) | ||
| onKeyup: De(Re, ["enter"]) | ||
| }, null, 544), [ | ||
| [te, l.value.noteName] | ||
| [ze, t.value.noteName] | ||
| ]), | ||
| b(v("div", { | ||
| E(v("div", { | ||
| class: "record-list-bar-search-clear", | ||
| onClick: F2 | ||
| onClick: We | ||
| }, [ | ||
| T(s(E), { | ||
| src: s(S).delect, | ||
| k(s(I), { | ||
| src: s(V).delect, | ||
| width: "18", | ||
@@ -605,3 +605,3 @@ height: "18" | ||
| ], 512), [ | ||
| [B, l.value.noteName] | ||
| [G, t.value.noteName] | ||
| ]) | ||
@@ -611,28 +611,28 @@ ]), | ||
| class: "record-list-bar-filter", | ||
| style: D({ | ||
| left: o.showToggle ? "36px" : "10px" | ||
| style: _({ | ||
| left: n.showToggle ? "36px" : "10px" | ||
| }) | ||
| }, [ | ||
| o.tags.length ? (i(), Z(s(W), { | ||
| n.tags.length ? (i(), J(s(Z), { | ||
| key: 0, | ||
| slot: "reference", | ||
| active: w.value.tagsShow, | ||
| onClick: O2 | ||
| active: f.value.tagsShow, | ||
| onClick: o | ||
| }, { | ||
| default: A(() => [ | ||
| T(s(E), { | ||
| default: z(() => [ | ||
| k(s(I), { | ||
| class: "record-list-icon", | ||
| src: s(S).filter | ||
| src: s(V).filter | ||
| }, null, 8, ["src"]) | ||
| ]), | ||
| _: 1 | ||
| }, 8, ["active"])) : k("", !0), | ||
| T(s(W), { | ||
| onClick: x2, | ||
| active: l.value.trash | ||
| }, 8, ["active"])) : L("", !0), | ||
| k(s(Z), { | ||
| onClick: ke, | ||
| active: t.value.trash | ||
| }, { | ||
| default: A(() => [ | ||
| T(s(E), { | ||
| default: z(() => [ | ||
| k(s(I), { | ||
| class: "record-list-icon", | ||
| src: s(S).trash | ||
| src: s(V).trash | ||
| }, null, 8, ["src"]) | ||
@@ -642,10 +642,10 @@ ]), | ||
| }, 8, ["active"]), | ||
| T(s(W), { | ||
| onClick: H2, | ||
| active: w.value.tag | ||
| k(s(Z), { | ||
| onClick: y, | ||
| active: f.value.tag | ||
| }, { | ||
| default: A(() => [ | ||
| T(s(E), { | ||
| default: z(() => [ | ||
| k(s(I), { | ||
| class: "record-list-icon", | ||
| src: s(S).visible | ||
| src: s(V).visible | ||
| }, null, 8, ["src"]) | ||
@@ -655,10 +655,10 @@ ]), | ||
| }, 8, ["active"]), | ||
| T(s(W), { | ||
| onClick: A2, | ||
| active: w.value.datetime | ||
| k(s(Z), { | ||
| onClick: d, | ||
| active: f.value.datetime | ||
| }, { | ||
| default: A(() => [ | ||
| T(s(E), { | ||
| default: z(() => [ | ||
| k(s(I), { | ||
| class: "record-list-icon", | ||
| src: s(S).delete | ||
| src: s(V).delete | ||
| }, null, 8, ["src"]) | ||
@@ -668,10 +668,10 @@ ]), | ||
| }, 8, ["active"]), | ||
| T(s(W), { | ||
| onClick: $2, | ||
| active: x.value | ||
| k(s(Z), { | ||
| onClick: Fe, | ||
| active: w.value | ||
| }, { | ||
| default: A(() => [ | ||
| T(s(E), { | ||
| default: z(() => [ | ||
| k(s(I), { | ||
| class: "record-list-icon", | ||
| src: s(S).todo | ||
| src: s(V).todo | ||
| }, null, 8, ["src"]) | ||
@@ -682,84 +682,84 @@ ]), | ||
| ], 4) | ||
| ])) : k("", !0), | ||
| K.value ? (i(), u("div", Be, [ | ||
| b(v("div", Ne, [ | ||
| T(s(he), { | ||
| ])) : L("", !0), | ||
| Q.value ? (i(), g("div", B2, [ | ||
| E(v("div", N2, [ | ||
| k(s(h2), { | ||
| ref_key: "multipleTag", | ||
| ref: I, | ||
| tags: o.tags, | ||
| value: l.value.tagIds, | ||
| onChange: R2 | ||
| ref: A, | ||
| tags: n.tags, | ||
| value: t.value.tagIds, | ||
| onChange: Xe | ||
| }, null, 8, ["tags", "value"]) | ||
| ], 512), [ | ||
| [B, w.value.tagsShow] | ||
| [G, f.value.tagsShow] | ||
| ]), | ||
| v("div", Me, [ | ||
| v("div", M2, [ | ||
| v("div", { | ||
| class: q(["record-list-sort-item", { | ||
| "record-list-sort-item-active": l.value.sort == 1 | ||
| class: Y(["record-list-sort-item", { | ||
| "record-list-sort-item-active": t.value.sort == 1 | ||
| }]), | ||
| onClick: t[1] || (t[1] = (a) => D2(1)), | ||
| style: D({ | ||
| "margin-right": l.value.sort == 2 ? "24px" : "10px" | ||
| onClick: l[1] || (l[1] = (r) => Le(1)), | ||
| style: _({ | ||
| "margin-right": t.value.sort == 2 ? "24px" : "10px" | ||
| }) | ||
| }, [ | ||
| E2(" 创建时间 "), | ||
| b(v("span", Ge, [ | ||
| b(v("span", { | ||
| style: D({ | ||
| color: l.value.sort == 1 && l.value.sortType == "DESC" ? "rgba(82, 167, 112, 1)" : "#cecece" | ||
| Me(" 创建时间 "), | ||
| E(v("span", G2, [ | ||
| E(v("span", { | ||
| style: _({ | ||
| color: t.value.sort == 1 && t.value.sortType == "DESC" ? "rgba(82, 167, 112, 1)" : "#cecece" | ||
| }) | ||
| }, "▼", 4), [ | ||
| [B, l.value.sortType === "DESC"] | ||
| [G, t.value.sortType === "DESC"] | ||
| ]), | ||
| b(v("span", { | ||
| style: D({ | ||
| color: l.value.sort == 1 && l.value.sortType == "ASC" ? "rgba(82, 167, 112, 1)" : "#cecece" | ||
| E(v("span", { | ||
| style: _({ | ||
| color: t.value.sort == 1 && t.value.sortType == "ASC" ? "rgba(82, 167, 112, 1)" : "#cecece" | ||
| }) | ||
| }, "▲", 4), [ | ||
| [B, l.value.sortType === "ASC"] | ||
| [G, t.value.sortType === "ASC"] | ||
| ]) | ||
| ], 512), [ | ||
| [B, l.value.sort == 1] | ||
| [G, t.value.sort == 1] | ||
| ]) | ||
| ], 6), | ||
| v("div", { | ||
| class: q(["record-list-sort-item", { | ||
| "record-list-sort-item-active": l.value.sort == 2 | ||
| class: Y(["record-list-sort-item", { | ||
| "record-list-sort-item-active": t.value.sort == 2 | ||
| }]), | ||
| onClick: t[2] || (t[2] = (a) => D2(2)) | ||
| onClick: l[2] || (l[2] = (r) => Le(2)) | ||
| }, [ | ||
| E2(" 更新时间 "), | ||
| b(v("span", Pe, [ | ||
| b(v("span", { | ||
| style: D({ | ||
| color: l.value.sort == 2 && l.value.sortType == "DESC" ? "rgba(82, 167, 112, 1)" : "#cecece" | ||
| Me(" 更新时间 "), | ||
| E(v("span", P2, [ | ||
| E(v("span", { | ||
| style: _({ | ||
| color: t.value.sort == 2 && t.value.sortType == "DESC" ? "rgba(82, 167, 112, 1)" : "#cecece" | ||
| }) | ||
| }, "▼", 4), [ | ||
| [B, l.value.sortType == "DESC"] | ||
| [G, t.value.sortType == "DESC"] | ||
| ]), | ||
| b(v("span", { | ||
| style: D({ | ||
| color: l.value.sort == 2 && l.value.sortType == "ASC" ? "rgba(82, 167, 112, 1)" : "#cecece" | ||
| E(v("span", { | ||
| style: _({ | ||
| color: t.value.sort == 2 && t.value.sortType == "ASC" ? "rgba(82, 167, 112, 1)" : "#cecece" | ||
| }) | ||
| }, "▲", 4), [ | ||
| [B, l.value.sortType == "ASC"] | ||
| [G, t.value.sortType == "ASC"] | ||
| ]) | ||
| ], 512), [ | ||
| [B, l.value.sort == 2] | ||
| [G, t.value.sort == 2] | ||
| ]) | ||
| ], 2) | ||
| ]) | ||
| ])) : k("", !0), | ||
| M.value ? (i(), u("div", { | ||
| ])) : L("", !0), | ||
| T.value ? (i(), g("div", { | ||
| key: 2, | ||
| class: "record-list-main", | ||
| style: D({ background: o.bgColor }) | ||
| style: _({ background: n.bgColor }) | ||
| }, [ | ||
| o.showToggle ? (i(), u("button", { | ||
| n.showToggle ? (i(), g("button", { | ||
| key: 0, | ||
| class: "record-list-closer", | ||
| onClick: n | ||
| onClick: X | ||
| }, [ | ||
| (i(), u("svg", { | ||
| (i(), g("svg", { | ||
| xmlns: "http://www.w3.org/2000/svg", | ||
@@ -769,101 +769,101 @@ width: "14", | ||
| fill: "currentColor", | ||
| style: D({ | ||
| style: _({ | ||
| transform: "rotate(-90deg)" | ||
| }), | ||
| viewBox: "0 0 16 16" | ||
| }, Ye, 4)) | ||
| ])) : k("", !0), | ||
| t2.value.length ? (i(), u("div", { | ||
| }, Y2, 4)) | ||
| ])) : L("", !0), | ||
| F.value.length ? (i(), g("div", { | ||
| key: 2, | ||
| ref_key: "noteList", | ||
| ref: s2, | ||
| style: D(i2.value), | ||
| ref: ue, | ||
| style: _(ve.value), | ||
| class: "record-list-wrap", | ||
| onScroll: p, | ||
| onDragover: t[4] || (t[4] = C((a) => k2(a), ["stop", "prevent"])), | ||
| onDragleave: C(S2, ["stop", "prevent"]), | ||
| onDrop: t[5] || (t[5] = C((a) => L2(a), ["stop", "prevent"])) | ||
| onScroll: ae, | ||
| onDragover: l[4] || (l[4] = m((r) => Ve(r), ["stop", "prevent"])), | ||
| onDragleave: m(Be, ["stop", "prevent"]), | ||
| onDrop: l[5] || (l[5] = m((r) => Ie(r), ["stop", "prevent"])) | ||
| }, [ | ||
| T(le, { | ||
| name: n2.value, | ||
| k(l2, { | ||
| name: te.value, | ||
| tag: "div" | ||
| }, { | ||
| default: A(() => [ | ||
| (i(!0), u(X, null, h2(t2.value, (a) => (i(), u("div", ae({ | ||
| key: a.created_at, | ||
| default: z(() => [ | ||
| (i(!0), g(j, null, ye(F.value, (r) => (i(), g("div", a2({ | ||
| key: r.created_at, | ||
| class: ["record-list-item", { | ||
| "record-list-item-active": a.created_at === U.value, | ||
| "record-drop-before": s(f).dropId === a.created_at && s(f).dropPosition === "before", | ||
| "record-drop-after": s(f).dropId === a.created_at && s(f).dropPosition === "after", | ||
| "record-drop-inner": s(f).dropId === a.created_at && s(f).dropPosition === "inner" | ||
| "record-list-item-active": r.created_at === b.value, | ||
| "record-drop-before": s(h).dropId === r.created_at && s(h).dropPosition === "before", | ||
| "record-drop-after": s(h).dropId === r.created_at && s(h).dropPosition === "after", | ||
| "record-drop-inner": s(h).dropId === r.created_at && s(h).dropPosition === "inner" | ||
| }] | ||
| }, re(y(a), !0), { | ||
| draggable: J2(a), | ||
| onDragstart: C((h) => X2(h, a), ["stop"]), | ||
| onDragend: C(Z2, ["stop"]), | ||
| onDragover: C((h) => k2(h, a), ["stop", "prevent"]), | ||
| onDrop: t[3] || (t[3] = C((h) => L2(h), ["stop", "prevent"])) | ||
| }, o2(he(r), !0), { | ||
| draggable: Qe(r), | ||
| onDragstart: m((p) => je(p, r), ["stop"]), | ||
| onDragend: m(Je, ["stop"]), | ||
| onDragover: m((p) => Ve(p, r), ["stop", "prevent"]), | ||
| onDrop: l[3] || (l[3] = m((p) => Ie(p), ["stop", "prevent"])) | ||
| }), [ | ||
| w.value.tag ? (i(), u("div", Ae, [ | ||
| f.value.tag ? (i(), g("div", A2, [ | ||
| v("span", { | ||
| class: "record-list-item-tag", | ||
| style: D(s(P2)(a.tag_id, o.tags, a)), | ||
| onClick: C((h) => z2(a), ["stop"]) | ||
| }, null, 12, He) | ||
| ])) : k("", !0), | ||
| style: _(s(He)(r.tag_id, n.tags, r)), | ||
| onClick: m((p) => oe(r), ["stop"]) | ||
| }, null, 12, H2) | ||
| ])) : L("", !0), | ||
| v("h3", { | ||
| class: q(["record-list-item-title", { | ||
| "record-list-item-title-trash": l.value.trash, | ||
| ...r(a) | ||
| class: Y(["record-list-item-title", { | ||
| "record-list-item-title-trash": t.value.trash, | ||
| ...pe(r) | ||
| }]), | ||
| innerHTML: R(a.title) | ||
| }, null, 10, $e), | ||
| a.type ? k("", !0) : (i(), u("p", { | ||
| innerHTML: le(r.title) | ||
| }, null, 10, $2), | ||
| r.type ? L("", !0) : (i(), g("p", { | ||
| key: 1, | ||
| class: q(["record-list-item-content", { | ||
| "record-list-item-title-trash": l.value.trash | ||
| class: Y(["record-list-item-content", { | ||
| "record-list-item-title-trash": t.value.trash | ||
| }]), | ||
| innerHTML: R(a.content) | ||
| }, null, 10, Ue)), | ||
| w.value.datetime ? b((i(), u("p", { | ||
| innerHTML: le(r.content) | ||
| }, null, 10, U2)), | ||
| f.value.datetime ? E((i(), g("p", { | ||
| key: 2, | ||
| style: D({ color: l.value.trash ? "#777777" : "" }), | ||
| style: _({ color: t.value.trash ? "#777777" : "" }), | ||
| class: "record-list-item-des" | ||
| }, V2(F(a.created_at)) + "创建 ", 5)), [ | ||
| [B, l.value.sort == 1] | ||
| ]) : k("", !0), | ||
| w.value.datetime ? b((i(), u("p", { | ||
| }, Ge(W(r.created_at)) + "创建 ", 5)), [ | ||
| [G, t.value.sort == 1] | ||
| ]) : L("", !0), | ||
| f.value.datetime ? E((i(), g("p", { | ||
| key: 3, | ||
| style: D({ color: l.value.trash ? "#777777" : "" }), | ||
| style: _({ color: t.value.trash ? "#777777" : "" }), | ||
| class: "record-list-item-des" | ||
| }, V2(F(a.updated_at)) + "更新 ", 5)), [ | ||
| [B, l.value.sort == 2] | ||
| ]) : k("", !0), | ||
| j2(a) ? (i(), Z(s(E), { | ||
| }, Ge(W(r.updated_at)) + "更新 ", 5)), [ | ||
| [G, t.value.sort == 2] | ||
| ]) : L("", !0), | ||
| Ke(r) ? (i(), J(s(I), { | ||
| key: 4, | ||
| class: "record-list-uploading", | ||
| src: s(S).uploading, | ||
| src: s(V).uploading, | ||
| width: "14", | ||
| height: "14", | ||
| fill: "#52A770" | ||
| }, null, 8, ["src"])) : c2(a) ? (i(), Z(s(E), { | ||
| }, null, 8, ["src"])) : fe(r) ? (i(), J(s(I), { | ||
| key: 5, | ||
| class: "record-list-rel", | ||
| src: s(S).relate, | ||
| src: s(V).relate, | ||
| width: "14", | ||
| height: "14", | ||
| fill: "#9E9E9E" | ||
| }, null, 8, ["src"])) : k("", !0) | ||
| ], 16, Oe))), 128)) | ||
| }, null, 8, ["src"])) : L("", !0) | ||
| ], 16, O2))), 128)) | ||
| ]), | ||
| _: 1 | ||
| }, 8, ["name"]) | ||
| ], 36)) : (i(), u("div", ze, " 0条符合条件的记录 ")) | ||
| ], 4)) : k("", !0), | ||
| !M.value && o.showToggle ? (i(), u("button", { | ||
| ], 36)) : (i(), g("div", z2, " 0条符合条件的记录 ")) | ||
| ], 4)) : L("", !0), | ||
| !T.value && n.showToggle ? (i(), g("button", { | ||
| key: 3, | ||
| class: "record-list-opener", | ||
| onClick: n | ||
| onClick: X | ||
| }, [ | ||
| (i(), u("svg", { | ||
| (i(), g("svg", { | ||
| xmlns: "http://www.w3.org/2000/svg", | ||
@@ -873,27 +873,27 @@ width: "14", | ||
| fill: "currentColor", | ||
| style: D({ | ||
| style: _({ | ||
| transform: "rotate(90deg)" | ||
| }), | ||
| viewBox: "0 0 16 16" | ||
| }, Re, 4)) | ||
| ])) : k("", !0), | ||
| d.value ? (i(), u("div", { | ||
| }, R2, 4)) | ||
| ])) : L("", !0), | ||
| D.value ? (i(), g("div", { | ||
| key: 4, | ||
| ref_key: "contentMenu", | ||
| ref: $, | ||
| ref: M, | ||
| class: "record-list-context-menu" | ||
| }, [ | ||
| v("ul", null, [ | ||
| l.value.trash ? (i(), u("li", { | ||
| t.value.trash ? (i(), g("li", { | ||
| key: 0, | ||
| onClick: t[6] || (t[6] = (a) => _2(!0)) | ||
| }, "彻底删除")) : (i(), u("li", { | ||
| onClick: l[6] || (l[6] = (r) => Se(!0)) | ||
| }, "彻底删除")) : (i(), g("li", { | ||
| key: 1, | ||
| onClick: t[7] || (t[7] = (a) => _2(!1)) | ||
| onClick: l[7] || (l[7] = (r) => Se(!1)) | ||
| }, "删除")) | ||
| ]) | ||
| ], 512)) : k("", !0) | ||
| ], 512)) : L("", !0) | ||
| ], 2)); | ||
| } | ||
| }, o0 = /* @__PURE__ */ j(We, [["__scopeId", "data-v-ce9a6620"]]), Xe = { class: "explorer-list" }, Ze = ["onClick", "onContextmenu", "draggable", "onDragstart", "onDragover"], je = { class: "explorer-list-item-icon" }, Je = ["innerHTML"], Ke = { | ||
| }, nt = /* @__PURE__ */ K(W2, [["__scopeId", "data-v-ce9a6620"]]), X2 = { class: "explorer-list" }, Z2 = ["onClick", "onContextmenu", "draggable", "onDragstart", "onDragover"], j2 = { class: "explorer-list-item-icon" }, J2 = ["data-note-id"], K2 = ["innerHTML"], Q2 = { | ||
| __name: "explorer-list", | ||
@@ -955,50 +955,51 @@ props: { | ||
| "addNote", | ||
| "rename" | ||
| "rename", | ||
| "editComplete" | ||
| ], | ||
| setup(o, { emit: L }) { | ||
| const m = L, c = o, g = V(() => { | ||
| const r = c.levelColors; | ||
| return r[c.level % r.length]; | ||
| }), N = V(() => { | ||
| const r = c.levelColors; | ||
| return r[(c.level + 1) % r.length]; | ||
| }), d = _(null), l = _(null), x = _(null), I = _(null), $ = V(() => g.value); | ||
| P( | ||
| setup(n, { expose: S, emit: C }) { | ||
| const u = C, c = n, N = B(() => { | ||
| const a = c.levelColors; | ||
| return a[c.level % a.length]; | ||
| }), D = B(() => { | ||
| const a = c.levelColors; | ||
| return a[(c.level + 1) % a.length]; | ||
| }), t = x(null), w = x(null), A = x(null), M = x(null), b = x(null), T = x(""), ue = B(() => N.value); | ||
| q( | ||
| () => c.activeNote, | ||
| (r) => { | ||
| I.value = r == null ? void 0 : r.created_at; | ||
| (a) => { | ||
| M.value = a == null ? void 0 : a.created_at; | ||
| }, | ||
| { immediate: !0 } | ||
| ), B2(() => { | ||
| document.addEventListener("click", z); | ||
| }), N2(() => { | ||
| document.removeEventListener("click", z); | ||
| ), qe(() => { | ||
| document.addEventListener("click", U); | ||
| }), Ye(() => { | ||
| document.removeEventListener("click", U); | ||
| }); | ||
| function U(r) { | ||
| let n = (r || "").replace("closeIcon", "").replace("contenteditable", "temp"); | ||
| function f(a) { | ||
| let o = (a || "").replace("closeIcon", "").replace("contenteditable", "temp"); | ||
| try { | ||
| n = JSON.parse(n); | ||
| o = JSON.parse(o); | ||
| } catch { | ||
| } | ||
| if (Array.isArray(n)) { | ||
| let p = n.find((y) => y.text || y.type && !y.pending); | ||
| return p ? o2(p) : ""; | ||
| if (Array.isArray(o)) { | ||
| let d = o.find((y) => y.text || y.type && !y.pending); | ||
| return d ? de(d) : ""; | ||
| } else | ||
| return typeof n != "string" ? o2(n) : M2.sanitize(r); | ||
| return typeof o != "string" ? de(o) : Oe.sanitize(a); | ||
| } | ||
| function M(r) { | ||
| !d.value && !r.deleted_at && (I.value = r.created_at, m("selectNote", r)); | ||
| function H(a) { | ||
| b.value || !t.value && !a.deleted_at && (M.value = a.created_at, u("selectNote", a)); | ||
| } | ||
| function s2(r, n) { | ||
| r.preventDefault(), n.deleted_at || (I.value = n.created_at, m("selectNote", n)), d.value = n, p2(() => { | ||
| Y(r.clientX, r.clientY); | ||
| function $(a, o) { | ||
| a.preventDefault(), o.deleted_at || (M.value = o.created_at, u("selectNote", o)), t.value = o, ce(() => { | ||
| Q(a.clientX, a.clientY); | ||
| }); | ||
| } | ||
| function w(r) { | ||
| r.preventDefault(), d.value = { _isBlank: !0 }, p2(() => { | ||
| Y(r.clientX, r.clientY); | ||
| function ge(a) { | ||
| a.preventDefault(), t.value = { _isBlank: !0 }, ce(() => { | ||
| Q(a.clientX, a.clientY); | ||
| }); | ||
| } | ||
| function Y(r, n) { | ||
| G2( | ||
| function Q(a, o) { | ||
| Ae( | ||
| { | ||
@@ -1009,10 +1010,10 @@ getBoundingClientRect() { | ||
| height: 0, | ||
| top: n, | ||
| right: r, | ||
| bottom: n, | ||
| left: r | ||
| top: o, | ||
| right: a, | ||
| bottom: o, | ||
| left: a | ||
| }; | ||
| } | ||
| }, | ||
| l.value, | ||
| w.value, | ||
| { | ||
@@ -1031,62 +1032,84 @@ placement: "right-start", | ||
| } | ||
| function z(r) { | ||
| var n; | ||
| (n = l.value) != null && n.contains(r.target) || (d.value = null); | ||
| function U(a) { | ||
| var o; | ||
| (o = w.value) != null && o.contains(a.target) || (t.value = null); | ||
| } | ||
| function J() { | ||
| var n; | ||
| const r = (n = d.value) != null && n._isBlank ? null : d.value; | ||
| m("addFolder", r), d.value = null; | ||
| function ee() { | ||
| var o; | ||
| const a = (o = t.value) != null && o._isBlank ? null : t.value; | ||
| u("addFolder", a), t.value = null; | ||
| } | ||
| function K() { | ||
| var n; | ||
| const r = (n = d.value) != null && n._isBlank ? null : d.value; | ||
| m("addNote", r), d.value = null; | ||
| function F() { | ||
| var o; | ||
| const a = (o = t.value) != null && o._isBlank ? null : t.value; | ||
| u("addNote", a), t.value = null; | ||
| } | ||
| function Q() { | ||
| m("rename", d.value), d.value = null; | ||
| function R() { | ||
| u("rename", t.value), t.value = null; | ||
| } | ||
| function e2() { | ||
| m("removeNote", d.value), d.value = null; | ||
| function te() { | ||
| u("removeNote", t.value), t.value = null; | ||
| } | ||
| function t2(r) { | ||
| return r.type === "folder" && r.created_at === I.value ? !1 : c.draggable; | ||
| function ve(a) { | ||
| return a.type === "folder" && a.created_at === M.value ? !1 : c.draggable; | ||
| } | ||
| function O(r, n = {}) { | ||
| if (!c.draggable || window.__DRAG_ID__ === n.created_at) { | ||
| r.dataTransfer.dropEffect = "none"; | ||
| function W(a, o = {}) { | ||
| if (!c.draggable || window.__DRAG_ID__ === o.created_at) { | ||
| a.dataTransfer.dropEffect = "none"; | ||
| return; | ||
| } | ||
| f.dropId = n.created_at, f.dropPosition = q2(r, n.type === "folder"); | ||
| h.dropId = o.created_at, h.dropPosition = $e(a, o.type === "folder"); | ||
| } | ||
| function n2(r, n) { | ||
| const p = n.type || "note"; | ||
| window.__DRAG_TYPE__ = p, window.__DRAG_ID__ = n.created_at, r.dataTransfer.setData( | ||
| function le(a, o) { | ||
| const d = o.type || "note"; | ||
| window.__DRAG_TYPE__ = d, window.__DRAG_ID__ = o.created_at, a.dataTransfer.setData( | ||
| "dragData", | ||
| JSON.stringify({ | ||
| type: p, | ||
| data: n, | ||
| action: r.altKey ? "rel" : "move" | ||
| type: d, | ||
| data: o, | ||
| action: a.altKey ? "rel" : "move" | ||
| }) | ||
| ); | ||
| } | ||
| function i2() { | ||
| function pe() { | ||
| delete window.__DRAG_TYPE__, delete window.__DRAG_ID__; | ||
| } | ||
| function F(r) { | ||
| c.draggable && (m("drop", r, { | ||
| id: f.dropId, | ||
| position: f.dropPosition | ||
| }), R()); | ||
| function X(a) { | ||
| c.draggable && (u("drop", a, { | ||
| id: h.dropId, | ||
| position: h.dropPosition | ||
| }), ae()); | ||
| } | ||
| function R() { | ||
| f.dropId = null, f.dropPosition = ""; | ||
| function ae() { | ||
| h.dropId = null, h.dropPosition = ""; | ||
| } | ||
| return (r, n) => (i(), u("div", Xe, [ | ||
| function he(a, o) { | ||
| b.value = a, T.value = o || "", ce(() => { | ||
| const d = document.querySelector( | ||
| `.explorer-list-item-title-input[data-note-id="${a}"]` | ||
| ); | ||
| d && (d.focus(), d.select()); | ||
| }); | ||
| } | ||
| function oe() { | ||
| if (b.value === null) | ||
| return; | ||
| const a = T.value.trim(), o = c.noteList.find((d) => d.created_at === b.value); | ||
| o && a !== o.title && u("editComplete", { | ||
| noteId: b.value, | ||
| title: a || (o.type === "folder" ? "New Folder" : "New Note") | ||
| }), b.value = null, T.value = ""; | ||
| } | ||
| function re() { | ||
| b.value = null, T.value = ""; | ||
| } | ||
| return S({ | ||
| startEdit: he | ||
| }), (a, o) => (i(), g("div", X2, [ | ||
| v("div", { | ||
| class: "explorer-list-main", | ||
| style: D({ | ||
| background: g.value, | ||
| "--item-bg-color": $.value, | ||
| "--active-bg-color": N.value | ||
| style: _({ | ||
| background: N.value, | ||
| "--item-bg-color": ue.value, | ||
| "--active-bg-color": D.value | ||
| }) | ||
@@ -1096,39 +1119,39 @@ }, [ | ||
| ref_key: "listWrap", | ||
| ref: x, | ||
| ref: A, | ||
| class: "explorer-list-wrap", | ||
| onDragover: n[1] || (n[1] = C((p) => O(p), ["stop", "prevent"])), | ||
| onDragleave: C(R, ["stop", "prevent"]), | ||
| onDrop: n[2] || (n[2] = C((p) => F(p), ["stop", "prevent"])), | ||
| onContextmenu: C(w, ["self"]) | ||
| onDragover: o[4] || (o[4] = m((d) => W(d), ["stop", "prevent"])), | ||
| onDragleave: m(ae, ["stop", "prevent"]), | ||
| onDrop: o[5] || (o[5] = m((d) => X(d), ["stop", "prevent"])), | ||
| onContextmenu: m(ge, ["self"]) | ||
| }, [ | ||
| (i(!0), u(X, null, h2(o.noteList, (p) => (i(), u("div", { | ||
| key: p.created_at, | ||
| class: q(["explorer-list-item", { | ||
| "explorer-list-item-active": p.created_at === I.value, | ||
| "explorer-drop-before": s(f).dropId === p.created_at && s(f).dropPosition === "before", | ||
| "explorer-drop-after": s(f).dropId === p.created_at && s(f).dropPosition === "after", | ||
| "explorer-drop-inner": s(f).dropId === p.created_at && s(f).dropPosition === "inner" | ||
| (i(!0), g(j, null, ye(n.noteList, (d) => (i(), g("div", { | ||
| key: d.created_at, | ||
| class: Y(["explorer-list-item", { | ||
| "explorer-list-item-active": d.created_at === M.value, | ||
| "explorer-drop-before": s(h).dropId === d.created_at && s(h).dropPosition === "before", | ||
| "explorer-drop-after": s(h).dropId === d.created_at && s(h).dropPosition === "after", | ||
| "explorer-drop-inner": s(h).dropId === d.created_at && s(h).dropPosition === "inner" | ||
| }]), | ||
| onClick: (y) => M(p), | ||
| onContextmenu: C((y) => s2(y, p), ["stop"]), | ||
| draggable: t2(p), | ||
| onDragstart: C((y) => n2(y, p), ["stop"]), | ||
| onDragend: C(i2, ["stop"]), | ||
| onDragover: C((y) => O(y, p), ["stop", "prevent"]), | ||
| onDrop: n[0] || (n[0] = C((y) => F(y), ["stop", "prevent"])) | ||
| onClick: (y) => H(d), | ||
| onContextmenu: m((y) => $(y, d), ["stop"]), | ||
| draggable: ve(d), | ||
| onDragstart: m((y) => le(y, d), ["stop"]), | ||
| onDragend: m(pe, ["stop"]), | ||
| onDragover: m((y) => W(y, d), ["stop", "prevent"]), | ||
| onDrop: o[3] || (o[3] = m((y) => X(y), ["stop", "prevent"])) | ||
| }, [ | ||
| v("div", je, [ | ||
| p.type === "folder" ? (i(), Z(s(E), { | ||
| v("div", j2, [ | ||
| d.type === "folder" ? (i(), J(s(I), { | ||
| key: 0, | ||
| src: p.created_at === I.value ? s(S).folderOpen : s(S).folder, | ||
| src: d.created_at === M.value ? s(V).folderOpen : s(V).folder, | ||
| width: "14", | ||
| height: "14", | ||
| fill: "#9E9E9E" | ||
| }, null, 8, ["src"])) : p.tag_id ? (i(), u("div", { | ||
| }, null, 8, ["src"])) : d.tag_id ? (i(), g("div", { | ||
| key: 1, | ||
| class: "explorer-list-item-tag", | ||
| style: D(s(P2)(p.tag_id, o.tags, p)) | ||
| }, null, 4)) : (i(), Z(s(E), { | ||
| style: _(s(He)(d.tag_id, n.tags, d)) | ||
| }, null, 4)) : (i(), J(s(I), { | ||
| key: 2, | ||
| src: s(S).file, | ||
| src: s(V).file, | ||
| width: "14", | ||
@@ -1139,36 +1162,53 @@ height: "14", | ||
| ]), | ||
| v("h3", { | ||
| d.created_at === b.value ? E((i(), g("input", { | ||
| key: 0, | ||
| "onUpdate:modelValue": o[0] || (o[0] = (y) => T.value = y), | ||
| class: "explorer-list-item-title-input", | ||
| onKeyup: [ | ||
| De(oe, ["enter"]), | ||
| De(re, ["esc"]) | ||
| ], | ||
| onBlur: oe, | ||
| onClick: o[1] || (o[1] = m(() => { | ||
| }, ["stop"])), | ||
| onDblclick: o[2] || (o[2] = m(() => { | ||
| }, ["stop"])), | ||
| "data-note-id": d.created_at | ||
| }, null, 40, J2)), [ | ||
| [ze, T.value] | ||
| ]) : (i(), g("h3", { | ||
| key: 1, | ||
| class: "explorer-list-item-title", | ||
| innerHTML: U(p.title) | ||
| }, null, 8, Je) | ||
| ], 42, Ze))), 128)) | ||
| innerHTML: f(d.title) | ||
| }, null, 8, K2)) | ||
| ], 42, Z2))), 128)) | ||
| ], 544) | ||
| ], 4), | ||
| d.value ? (i(), u("div", { | ||
| t.value ? (i(), g("div", { | ||
| key: 0, | ||
| ref_key: "contentMenu", | ||
| ref: l, | ||
| ref: w, | ||
| class: "explorer-list-context-menu" | ||
| }, [ | ||
| v("ul", null, [ | ||
| d.value._isBlank ? (i(), u(X, { key: 0 }, [ | ||
| v("li", { onClick: K }, "新建笔记"), | ||
| v("li", { onClick: J }, "新建文件夹") | ||
| ], 64)) : d.value.type === "folder" ? (i(), u(X, { key: 1 }, [ | ||
| v("li", { onClick: K }, "新建笔记"), | ||
| v("li", { onClick: J }, "新建文件夹"), | ||
| v("li", { onClick: Q }, "重命名"), | ||
| v("li", { onClick: e2 }, "删除") | ||
| ], 64)) : (i(), u("li", { | ||
| t.value._isBlank ? (i(), g(j, { key: 0 }, [ | ||
| v("li", { onClick: F }, "新建笔记"), | ||
| v("li", { onClick: ee }, "新建文件夹") | ||
| ], 64)) : t.value.type === "folder" ? (i(), g(j, { key: 1 }, [ | ||
| v("li", { onClick: F }, "新建笔记"), | ||
| v("li", { onClick: ee }, "新建文件夹"), | ||
| v("li", { onClick: R }, "重命名"), | ||
| v("li", { onClick: te }, "删除") | ||
| ], 64)) : (i(), g("li", { | ||
| key: 2, | ||
| onClick: e2 | ||
| onClick: te | ||
| }, "删除")) | ||
| ]) | ||
| ], 512)) : k("", !0) | ||
| ], 512)) : L("", !0) | ||
| ])); | ||
| } | ||
| }, s0 = /* @__PURE__ */ j(Ke, [["__scopeId", "data-v-2ea05a2f"]]); | ||
| }, st = /* @__PURE__ */ K(Q2, [["__scopeId", "data-v-b56eceae"]]); | ||
| export { | ||
| s0 as ExplorerList, | ||
| o0 as RecordList | ||
| st as ExplorerList, | ||
| nt as RecordList | ||
| }; |
+1
-1
| { | ||
| "name": "@codernote/record-list", | ||
| "version": "3.0.1", | ||
| "version": "3.0.2", | ||
| "type": "module", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
64276
2.89%1287
3.29%1
Infinity%