Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@codernote/record-list

Package Overview
Dependencies
Maintainers
2
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codernote/record-list - npm Package Compare versions

Comparing version
3.0.3
to
3.0.4
+411
-415
dist/index.js

@@ -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-b41687f4]{width:100%;height:100%;position:relative;border-right:1px solid rgba(0,0,0,.08)}.explorer-list-main[data-v-b41687f4]{position:relative;height:100%}.explorer-list-wrap[data-v-b41687f4]{padding:8px;overflow-y:auto;height:100%}.explorer-list-item[data-v-b41687f4]{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-b41687f4]:hover{background:#0000000a}.explorer-list-item-active[data-v-b41687f4]{background-color:#fff;box-shadow:0 1px 3px #0000001a}.explorer-list-item-active[data-v-b41687f4]:hover{background:#fff}.explorer-list-item-icon[data-v-b41687f4]{position:absolute;left:8px;top:12px;width:14px;height:14px}.explorer-list-item-tag[data-v-b41687f4]{display:block;border-radius:9999px;width:12px;height:12px}.explorer-list-item-title[data-v-b41687f4]{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-b41687f4]{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-b41687f4]:focus{border-color:#52a770;box-shadow:0 0 0 2px #52a77033}.explorer-list-item-title p[data-v-b41687f4]{display:inline;word-break:break-all}.explorer-list-context-menu[data-v-b41687f4]{padding:8px;background:#fff;z-index:19;box-shadow:0 2px 4px #00000080;border-radius:4px}.explorer-list-context-menu li[data-v-b41687f4]{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-b41687f4]:hover{background:#d8d8d8}.explorer-drop-before[data-v-b41687f4]:after{content:" ";position:absolute;top:-4px;left:0;right:0;border-top:2px solid #52a770}.explorer-drop-after[data-v-b41687f4]:after{content:" ";position:absolute;bottom:-4px;left:0;right:0;border-top:2px solid #52a770}.explorer-drop-inner[data-v-b41687f4]{outline:2px solid #52a770}[data-v-b41687f4] .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 _e, createVNode as k, reactive as t2, ref as D, computed as B, getCurrentInstance as Ne, watch as q, onMounted as qe, onUnmounted as Ye, withDirectives as E, withKeys as ye, vModelText as ze, vShow as G, createBlock as J, withCtx as O, createCommentVNode as L, createTextVNode as Me, withModifiers as m, TransitionGroup as l2, mergeProps as o2, toHandlers as a2, toDisplayString as Ge, nextTick as de, pushScopeId as r2, popScopeId as n2 } from "vue";
import s2 from "dayjs";
import V from "vue-inline-svg";
import Oe from "dompurify";
import { createPopper as Ae } from "@popperjs/core";
import { getTagStyle as i2, detectDeviceType as c2, isTodoTag as ce, getExt as A, getTagStyleById as He, getTag as Pe } from "@codernote/utils";
const K = (n, S) => {
const C = n.__vccOpts || n;
for (const [d, c] of S)
C[d] = c;
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.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-25213309]{width:100%;height:100vh;position:relative}.record-list img[data-v-25213309]{border:0}.record-list-sort[data-v-25213309]{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-25213309]{margin:0}.record-list-sort-box[data-v-25213309],.record-list-sort-arrow[data-v-25213309]{align-items:center;display:flex}.record-list-sort-item[data-v-25213309]{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-25213309]{color:#52a770}.record-list-context-menu[data-v-25213309]{padding:8px;background:#fff;z-index:19;box-shadow:0 2px 4px #00000080;border-radius:4px}.record-list-context-menu li[data-v-25213309]{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-25213309]:hover{background:#d8d8d8}.record-list-icon[data-v-25213309]{display:block;width:14px;height:14px;margin:0;padding:0!important;line-height:100%;font-size:0;cursor:pointer}.record-list-opener[data-v-25213309]{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-25213309]{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-25213309]:hover,.record-list-opener[data-v-25213309]:hover{background:#e8e8e8}.record-list-bar[data-v-25213309]{position:absolute;z-index:100;top:0;left:0;right:0}.record-list-bar-search[data-v-25213309]{left:186px;right:16px;position:absolute;top:8px;z-index:100;color:#b7b7b7;display:flex}.record-list-bar-search-icon[data-v-25213309]{position:absolute;top:4px;left:16px}.record-list-bar-search-input[data-v-25213309]{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-25213309]::-moz-placeholder{color:#9e9e9e}.record-list-bar-search-input[data-v-25213309]::placeholder{color:#9e9e9e}.record-list-bar-search-input[data-v-25213309]: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-25213309]{cursor:pointer;color:#9e9e9e;position:absolute;top:4px;right:4px}.record-list-bar-search-clear[data-v-25213309]:hover{cursor:pointer;color:#52a770}.record-list-bar-filter[data-v-25213309]{position:absolute;top:8px;z-index:100;color:#b7b7b7}.record-list-bar-filter button[data-v-25213309]{margin-right:8px;border:0}.record-list-main[data-v-25213309]{position:relative;border-left-width:1px;border-color:#e4e4e7}.record-list-empty[data-v-25213309]{display:flex;justify-content:center;color:#b7b7b7;align-items:center;height:100vh;position:relative!important;transform:none!important}.record-list-wrap[data-v-25213309]{padding-bottom:16px;padding-left:16px;padding-right:16px;overflow-y:auto;height:100vh}.record-list-item[data-v-25213309]{padding:16px 32px;min-height:60px;border-radius:8px;margin-bottom:6px;position:relative;cursor:default;background:#fff}[data-v-25213309] .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-25213309]{background-color:#d8d8d8}.record-list-item-tag-wrap[data-v-25213309]{cursor:pointer;width:24px;top:22px;left:0;bottom:0;position:absolute}.record-list-item-tag[data-v-25213309]{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-25213309]{font-weight:700;font-size:18px;line-height:28px;overflow-wrap:break-word;margin:0}.record-list-item-title p[data-v-25213309]{display:inline;word-break:break-all}.record-list-item-title-trash[data-v-25213309]{color:#777!important}.record-list-item-title-finished[data-v-25213309]{text-decoration:line-through;color:#999}.record-list-item-content[data-v-25213309]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;margin:0}.record-list-item-des[data-v-25213309]{color:#9a9a9a;font-size:12px;margin-top:2px;line-height:16px}[data-v-25213309] .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-25213309]{transition:all .5s ease}.list-leave-to[data-v-25213309]{opacity:0;transform:translate(30px)}.record-drop-before[data-v-25213309]:after{content:" ";position:absolute;top:-4px;left:0;right:0;border-top:2px solid #52a770}.record-drop-after[data-v-25213309]:after{content:" ";position:absolute;bottom:-4px;left:0;right:0;border-top:2px solid #52a770}.record-drop-inner[data-v-25213309]{outline:2px solid #52a770}.record-list-rel[data-v-25213309],.record-list-uploading[data-v-25213309]{position:absolute;right:20px;top:20px}@keyframes rotate-25213309{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}.record-list-item-title a{pointer-events:none}.explorer-list[data-v-a2937ab8]{width:100%;height:100%;position:relative;border-right:1px solid rgba(0,0,0,.08)}.explorer-list-main[data-v-a2937ab8]{position:relative;height:100%}.explorer-list-wrap[data-v-a2937ab8]{padding:8px;overflow-y:auto;height:100%}.explorer-list-item[data-v-a2937ab8]{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-a2937ab8]:hover{background:#0000000a}.explorer-list-item-active[data-v-a2937ab8]{background-color:#fff;box-shadow:0 1px 3px #0000001a}.explorer-list-item-active[data-v-a2937ab8]:hover{background:#fff}.explorer-list-item-icon[data-v-a2937ab8]{position:absolute;left:8px;top:12px;width:14px;height:14px}.explorer-list-item-tag[data-v-a2937ab8]{display:block;border-radius:9999px;width:12px;height:12px}.explorer-list-item-title[data-v-a2937ab8]{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-a2937ab8]{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-a2937ab8]:focus{border-color:#52a770;box-shadow:0 0 0 2px #52a77033}.explorer-list-item-title p[data-v-a2937ab8]{display:inline;word-break:break-all}.explorer-list-context-menu[data-v-a2937ab8]{padding:8px;background:#fff;z-index:19;box-shadow:0 2px 4px #00000080;border-radius:4px}.explorer-list-context-menu li[data-v-a2937ab8]{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-a2937ab8]:hover{background:#d8d8d8}.explorer-drop-before[data-v-a2937ab8]:after{content:" ";position:absolute;top:-4px;left:0;right:0;border-top:2px solid #52a770}.explorer-drop-after[data-v-a2937ab8]:after{content:" ";position:absolute;bottom:-4px;left:0;right:0;border-top:2px solid #52a770}.explorer-drop-inner[data-v-a2937ab8]{outline:2px solid #52a770}[data-v-a2937ab8] .explorer-list-item mark{background-color:transparent;text-decoration:underline;text-decoration-color:#9acd32;text-decoration-thickness:2px;text-underline-offset:2px}.explorer-list-item-title a{pointer-events:none}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
import { openBlock as i, createElementBlock as g, normalizeClass as Y, renderSlot as Ke, createElementVNode as v, normalizeStyle as k, unref as n, Fragment as j, renderList as _e, createVNode as T, reactive as Qe, ref as y, computed as I, getCurrentInstance as Ie, watch as q, onMounted as Pe, onUnmounted as qe, withDirectives as E, withKeys as ye, vModelText as Ye, vShow as G, createBlock as J, withCtx as O, createCommentVNode as L, createTextVNode as Ne, withModifiers as m, TransitionGroup as e2, mergeProps as t2, toHandlers as l2, toDisplayString as Me, nextTick as de } from "vue";
import r2 from "dayjs";
import B from "vue-inline-svg";
import ze from "dompurify";
import { createPopper as Oe } from "@popperjs/core";
import { getTagStyle as o2, detectDeviceType as a2, isTodoTag as ce, getExt as A, getTagStyleById as Ae, getTag as Ge } from "@codernote/utils";
const K = (s, S) => {
const C = s.__vccOpts || s;
for (const [u, c] of S)
C[u] = c;
return C;
}, d2 = {
}, n2 = {
__name: "icon-button",

@@ -21,13 +21,13 @@ props: {

},
setup(n) {
setup(s) {
return (S, C) => (i(), g("button", {
class: Y([
"record-list-icon-button",
n.active ? "record-list-icon-button-active" : ""
s.active ? "record-list-icon-button-active" : ""
])
}, [
e2(S.$slots, "default", {}, void 0, !0)
Ke(S.$slots, "default", {}, void 0, !0)
], 2));
}
}, Z = /* @__PURE__ */ K(d2, [["__scopeId", "data-v-8d9b1230"]]), u2 = {
}, Z = /* @__PURE__ */ K(n2, [["__scopeId", "data-v-8d9b1230"]]), s2 = {
__name: "tag",

@@ -44,12 +44,12 @@ props: {

},
setup(n) {
setup(s) {
return (S, C) => (i(), g("div", {
class: Y(["record-list-tag", { "record-list-tag-active": n.active }])
class: Y(["record-list-tag", { "record-list-tag-active": s.active }])
}, [
v("button", {
style: _(s(i2)(n.tag))
style: k(n(o2)(s.tag))
}, null, 4)
], 2));
}
}, g2 = /* @__PURE__ */ K(u2, [["__scopeId", "data-v-5dc25025"]]), v2 = { class: "record-list-select-multiple-tag" }, p2 = {
}, i2 = /* @__PURE__ */ K(s2, [["__scopeId", "data-v-5dc25025"]]), c2 = { class: "record-list-select-multiple-tag" }, d2 = {
__name: "select-multiple-tag",

@@ -71,15 +71,15 @@ props: {

emits: ["change"],
setup(n, { emit: S }) {
const C = S, d = n, c = (y) => y.filter((t) => t.name != ""), N = (y) => {
const t = [...d.value], w = d.value.indexOf(y.created_at);
w === -1 ? t.push(y.created_at) : t.splice(w, 1), C("change", t);
setup(s, { emit: S }) {
const C = S, u = s, 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 (y, t) => (i(), g("div", v2, [
(i(!0), g(j, null, _e(c(n.tags), (w) => (i(), g("div", {
return (D, t) => (i(), g("div", c2, [
(i(!0), g(j, null, _e(c(s.tags), (w) => (i(), g("div", {
key: w.id
}, [
k(s(g2), {
T(n(i2), {
tag: w,
onClick: (H) => N(w),
active: n.value.includes(w.created_at)
active: s.value.includes(w.created_at)
}, null, 8, ["tag", "onClick", "active"])

@@ -89,76 +89,84 @@ ]))), 128))

}
}, 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", I = {
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
}, u2 = /* @__PURE__ */ K(d2, [["__scopeId", "data-v-f588325c"]]), g2 = "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", v2 = "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", p2 = "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", h2 = "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", 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%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", 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%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", 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%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", C2 = "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", 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%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", 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%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", 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%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", _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%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", 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='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", 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='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: g2,
desc: v2,
search: p2,
delect: h2,
filter: f2,
trash: m2,
visible: w2,
delete: C2,
todo: x2,
relate: D2,
folder: y2,
folderOpen: _2,
uploading: T2,
file: k2
};
function De(n) {
return window.location.protocol === "https:" && /^http:/.test(n) ? n.replace(/^http:/, "https:") : n;
function De(s) {
return window.location.protocol === "https:" && /^http:/.test(s) ? s.replace(/^http:/, "https:") : s;
}
function ue(n) {
if (typeof n == "string" || typeof n == "number")
return n;
switch (n.type) {
function ue(s) {
if (typeof s == "string" || typeof s == "number")
return s;
switch (s.type) {
case "image":
return `<img style="width:80px;height: auto;" src="${De(
n.content
s.content
)}" />`;
case "video":
return `<video style="width:200px;height: auto;object-fit: cover;background-color: #000;" src="${De(
n.content
s.content
)}" />`;
case "audio":
return `<audio width="300" controls src="${De(n.content)}" />`;
return `<audio width="300" controls src="${De(s.content)}" />`;
case "file":
return `文件: ${n.name}`;
return `文件: ${s.name}`;
default:
return n.text || " ";
return s.text || " ";
}
}
function $e(n, S = !1) {
const d = n.target.getBoundingClientRect(), c = n.clientY;
function He(s, S = !1) {
const u = s.target.getBoundingClientRect(), c = s.clientY;
if (S) {
const N = d.height / 3, y = 2 * N;
return c < d.top + N ? "before" : c > d.top + y ? "after" : "inner";
const N = u.height / 3, D = 2 * N;
return c < u.top + N ? "before" : c > u.top + D ? "after" : "inner";
} else
return c < d.top + d.height / 2 ? "before" : "after";
return c < u.top + u.height / 2 ? "before" : "after";
}
const h = t2({
const h = Qe({
dragging: !1,
dropId: null,
dropPosition: ""
}), Ue = (n) => (r2("data-v-ce9a6620"), n = n(), n2(), n), I2 = {
}), L2 = {
key: 0,
class: "record-list-bar"
}, V2 = { class: "record-list-bar-search" }, B2 = {
}, S2 = { class: "record-list-bar-search" }, b2 = {
key: 1,
class: "record-list-sort"
}, 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)), Y2 = [
q2
], z2 = {
}, E2 = { class: "record-list-sort-tags" }, V2 = { class: "record-list-sort-box" }, B2 = { class: "record-list-sort-arrow" }, I2 = { class: "record-list-sort-arrow" }, N2 = {
xmlns: "http://www.w3.org/2000/svg",
width: "14",
height: "14",
fill: "currentColor",
style: {
transform: "rotate(-90deg)"
},
viewBox: "0 0 16 16"
}, M2 = {
key: 1,
class: "record-list-empty"
}, O2 = ["draggable", "onDragstart", "onDragover"], A2 = {
}, G2 = ["draggable", "onDragstart", "onDragover"], P2 = {
key: 0,
class: "record-list-item-tag-wrap"
}, 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)), R2 = [
F2
], W2 = {
}, q2 = ["onClick"], Y2 = ["innerHTML"], z2 = ["innerHTML"], O2 = {
xmlns: "http://www.w3.org/2000/svg",
width: "14",
height: "14",
fill: "currentColor",
style: {
transform: "rotate(90deg)"
},
viewBox: "0 0 16 16"
}, A2 = {
__name: "record-list",

@@ -252,5 +260,5 @@ props: {

],
setup(n, { emit: S }) {
setup(s, { emit: S }) {
let C = null;
const d = S, c = n, N = D(0), y = D(null), t = D({
const u = S, c = s, N = y(0), D = y(null), t = y({
trash: !1,

@@ -262,13 +270,13 @@ sort: 1,

noteName: ""
}), w = D(!1), H = D(null), M = D(null), b = D(null), T = D(!0), ge = D(null), f = D({
}), w = y(!1), H = y(null), M = y(null), b = y(null), _ = y(!0), f = y({
datetime: !1,
tagsShow: !1,
tag: !1
}), $ = c2() === "mobile", U = B(() => !t.value.trash && c.draggable && !w.value), ve = B(() => T.value && c.mode !== "simple"), Q = B(() => T.value && c.mode !== "simple"), F = B(() => {
const e = Ne();
}), $ = a2() === "mobile", U = I(() => !t.value.trash && c.draggable && !w.value), ge = I(() => _.value && c.mode !== "simple"), ve = I(() => _.value && c.mode !== "simple"), F = I(() => {
const e = Ie();
if (!e || e.vnode.props && e.vnode.props.onGetList)
return [...c.noteList];
const { tagIds: l, trash: r, sortType: p, sort: we, noteName: Ce } = t.value, xe = c.noteList.filter((P) => {
const { tagIds: l, trash: a, sortType: p, sort: we, noteName: Ce } = t.value, xe = c.noteList.filter((P) => {
const se = P.tag_id;
return l != null && l.length && !l.includes(se) || Ce && P.title.indexOf(Ce) < 0 && P.content.indexOf(Ce) < 0 ? !1 : r ? !!P.deleted_at : !P.deleted_at;
return l != null && l.length && !l.includes(se) || Ce && P.title.indexOf(Ce) < 0 && P.content.indexOf(Ce) < 0 ? !1 : a ? !!P.deleted_at : !P.deleted_at;
});

@@ -279,6 +287,6 @@ return t.value.sort === 0 || xe.sort((P, se) => {

}), xe;
}), ee = B(() => c.tags.filter(ce).map((e) => e.created_at)), R = B(() => t.value.trash ? F.value : F.value.filter((e) => {
const l = ee.value.includes(e.tag_id), r = l && A(e).finished;
return w.value ? r : !l || !r;
})), z = D(!1), pe = B(() => z.value ? "list" : "disabled"), te = B(() => {
}), Q = I(() => c.tags.filter(ce).map((e) => e.created_at)), R = I(() => t.value.trash ? F.value : F.value.filter((e) => {
const l = Q.value.includes(e.tag_id), a = l && A(e).finished;
return w.value ? a : !l || !a;
})), z = y(!1), ee = I(() => z.value ? "list" : "disabled"), pe = I(() => {
const e = {

@@ -311,3 +319,3 @@ "padding-top": "5rem"

(e) => {
T.value = e;
_.value = e;
},

@@ -324,3 +332,3 @@ { immediate: !0 }

(e) => {
f.value.tagsShow = e, e && be();
f.value.tagsShow = e, e && Se();
},

@@ -337,14 +345,14 @@ { immediate: !0 }

() => {
t.value.sort = +c.sort, t.value.sortType = c.sortType || "DESC", t.value.page = 1, d("getList", t.value);
t.value.sort = +c.sort, t.value.sortType = c.sortType || "DESC", t.value.page = 1, u("getList", t.value);
},
{ immediate: !0 }
), qe(() => {
document.addEventListener("click", Te);
}), Ye(() => {
document.removeEventListener("click", Te);
), Pe(() => {
document.addEventListener("click", x);
}), qe(() => {
document.removeEventListener("click", x);
});
function le(e) {
return s2(e).format("YYYY年MM月DD日 HH:mm:ss");
function W(e) {
return r2(e).format("YYYY年MM月DD日 HH:mm:ss");
}
function W(e) {
function te(e) {
let l = (e || "").replace("closeIcon", "").replace("contenteditable", "temp");

@@ -356,23 +364,22 @@ try {

if (Array.isArray(l)) {
let r = l.find((p) => p.text || p.type && !p.pending);
return r ? ue(r) : "";
} else
return typeof l != "string" ? ue(l) : Oe.sanitize(e);
let a = l.find((p) => p.text || p.type && !p.pending);
return a ? ue(a) : "";
} else return typeof l != "string" ? ue(l) : ze.sanitize(e);
}
function he(e) {
const l = Pe(e.tag_id, c.tags), r = A(e);
return ce(l) && r.finished ? {
function le(e) {
const l = Ge(e.tag_id, c.tags), a = A(e);
return ce(l) && a.finished ? {
"record-list-item-title-finished": !0
} : {};
}
function oe() {
const e = !T.value;
T.value = e, d("toggle", e);
function re() {
const e = !_.value;
_.value = e, u("toggle", e);
}
function ae(e) {
function he(e) {
clearTimeout(C), C = null;
const l = e.currentTarget;
l.scrollHeight - l.scrollTop - l.clientHeight <= 50 && (t.value.page += 1, d("changePage", t.value));
l.scrollHeight - l.scrollTop - l.clientHeight <= 50 && (t.value.page += 1, u("changePage", t.value));
}
function re(e) {
function oe(e) {
const l = {

@@ -383,39 +390,39 @@ touchStartX: 0,

touchEndY: 0
}, r = () => {
}, a = () => {
C !== null && (clearTimeout(C), C = null);
};
return $ ? {
click: () => ne(e),
click: () => X(e),
touchstart: (p) => {
l.touchStartX = p.touches[0].clientX, l.touchStartY = p.touches[0].clientY, C === null && (C = setTimeout(() => {
x(p, e);
d(p, e);
}, 500));
},
touchmove: (p) => {
r(), l.touchEndX = p.touches[0].clientX, l.touchEndY = p.touches[0].clientY;
a(), l.touchEndX = p.touches[0].clientX, l.touchEndY = p.touches[0].clientY;
},
touchend: () => {
r();
a();
const p = l.touchEndX - l.touchStartX, we = l.touchEndY - l.touchStartY;
Math.abs(p) > Math.abs(we) && Math.abs(p) > 50 && X(e, p > 0);
Math.abs(p) > Math.abs(we) && Math.abs(p) > 50 && ne(e, p > 0);
}
} : {
click: () => ne(e),
contextmenu: (p) => x(p, e)
click: () => X(e),
contextmenu: (p) => d(p, e)
};
}
function fe(e) {
function ae(e) {
if (!$) {
const l = A(e);
X(e, !l.finished);
ne(e, !l.finished);
}
}
function X(e, l) {
function ne(e, l) {
if (me(e))
return;
const r = Pe(e.tag_id, c.tags);
if (ce(r)) {
Ee();
const a = Ge(e.tag_id, c.tags);
if (ce(a)) {
be();
const p = A(e);
d("changeNote", {
u("changeNote", {
...e,

@@ -430,20 +437,20 @@ ext: JSON.stringify({

}
function ne(e) {
y.value || (b.value = e.created_at, e.deleted_at || d("selectNote", e));
function X(e) {
D.value || (b.value = e.created_at, e.deleted_at || u("selectNote", e));
}
function o() {
function fe() {
const e = !f.value.tagsShow;
f.value.tagsShow = e, d("changeTagsShowVisible", e), e && be();
f.value.tagsShow = e, u("changeTagsShowVisible", e), e && Se();
}
function a() {
function r() {
const e = !f.value.datetime;
f.value.datetime = e, d("changeDatetimeVisible", e);
f.value.datetime = e, u("changeDatetimeVisible", e);
}
function u() {
function o() {
const e = !f.value.tag;
f.value.tag = e, d("changeTagVisible", e);
f.value.tag = e, u("changeTagVisible", e);
}
function x(e, l) {
e.preventDefault(), y.value = l, de(() => {
Ae(
function d(e, l) {
e.preventDefault(), D.value = l, de(() => {
Oe(
{

@@ -483,27 +490,27 @@ getBoundingClientRect() {

}
function Te(e) {
function x(e) {
var l;
(l = M.value) != null && l.contains(e.target) || (y.value = null);
(l = M.value) != null && l.contains(e.target) || (D.value = null);
}
function ke() {
function Te() {
const e = !t.value.trash;
t.value.trash = e, t.value.page = 1, e && (w.value = !1), d("getList", t.value);
t.value.trash = e, t.value.page = 1, e && (w.value = !1), u("getList", t.value);
}
function Fe() {
w.value = !w.value, t.value.trash && ke();
function $e() {
w.value = !w.value, t.value.trash && Te();
}
function Re(e) {
t.value.noteName = e.target.value, t.value.page = 1, d("getList", t.value);
function Ue(e) {
t.value.noteName = e.target.value, t.value.page = 1, u("getList", t.value);
}
function We() {
function Fe() {
var l;
t.value.noteName = "";
const e = Ne();
(l = e == null ? void 0 : e.proxy) == null || l.$forceUpdate(), d("getList", t.value);
const e = Ie();
(l = e == null ? void 0 : e.proxy) == null || l.$forceUpdate(), u("getList", t.value);
}
function Xe(e) {
t.value.tagIds = e, t.value.page = 1, d("getList", t.value);
function Re(e) {
t.value.tagIds = e, t.value.page = 1, u("getList", t.value);
}
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, d("getList", t.value), d("changeSort", {
function ke(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,

@@ -513,6 +520,6 @@ sortType: t.value.sortType

}
function Se(e = !1) {
Ee(), d("removeNote", y.value, e), y.value = null;
function Le(e = !1) {
be(), u("removeNote", D.value, e), D.value = null;
}
function be() {
function Se() {
var l;

@@ -524,3 +531,3 @@ const e = (l = H.value) == null ? void 0 : l.$el;

}
function Ee() {
function be() {
z.value = !0, setTimeout(() => {

@@ -530,3 +537,3 @@ z.value = !1;

}
function Ie(e, l = {}) {
function Ee(e, l = {}) {
if (!U.value || window.__DRAG_ID__ === l.created_at) {

@@ -536,14 +543,14 @@ e.dataTransfer.dropEffect = "none";

}
h.dropId = l.created_at, h.dropPosition = $e(e, l.type === "folder");
h.dropId = l.created_at, h.dropPosition = He(e, l.type === "folder");
}
function Ze(e) {
function We(e) {
const l = e.cloneNode(!0);
return l.classList.add("dragging-image"), l.style.width = `${e.offsetWidth}px`, document.body.appendChild(l), l;
}
function je(e, l) {
const r = l.type || "note";
window.__DRAG_TYPE__ = r, window.__DRAG_ID__ = l.created_at, e.dataTransfer.setData(
function Xe(e, l) {
const a = l.type || "note";
window.__DRAG_TYPE__ = a, window.__DRAG_ID__ = l.created_at, e.dataTransfer.setData(
"dragData",
JSON.stringify({
type: r,
type: a,
data: l,

@@ -553,10 +560,10 @@ action: e.altKey ? "rel" : "move"

);
const p = Ze(e.target);
const p = We(e.target);
e.dataTransfer.setDragImage(p, 25, 25);
}
function Je() {
function Ze() {
delete window.__DRAG_TYPE__, delete window.__DRAG_ID__, document.querySelectorAll(".dragging-image").forEach((l) => l.remove());
}
function Ve(e) {
U.value && (d("drop", e, {
U.value && (u("drop", e, {
id: h.dropId,

@@ -572,6 +579,6 @@ position: h.dropPosition

}
function Ke(e) {
function je(e) {
return !!A(e).uploading;
}
function Qe(e) {
function Je(e) {
return U.value && !me(e);

@@ -585,7 +592,7 @@ }

}, [
ve.value ? (i(), g("div", I2, [
v("div", V2, [
k(s(V), {
ge.value ? (i(), g("div", L2, [
v("div", S2, [
T(n(B), {
class: "record-list-bar-search-icon",
src: s(I).search,
src: n(V).search,
width: "14",

@@ -597,14 +604,14 @@ height: "14",

class: "record-list-bar-search-input",
"onUpdate:modelValue": l[0] || (l[0] = (r) => t.value.noteName = r),
"onUpdate:modelValue": l[0] || (l[0] = (a) => t.value.noteName = a),
placeholder: "搜索",
onKeyup: ye(Re, ["enter"])
onKeyup: ye(Ue, ["enter"])
}, null, 544), [
[ze, t.value.noteName]
[Ye, t.value.noteName]
]),
E(v("div", {
class: "record-list-bar-search-clear",
onClick: We
onClick: Fe
}, [
k(s(V), {
src: s(I).delect,
T(n(B), {
src: n(V).delect,
width: "18",

@@ -619,16 +626,16 @@ height: "18"

class: "record-list-bar-filter",
style: _({
left: n.showToggle ? "36px" : "10px"
style: k({
left: s.showToggle ? "36px" : "10px"
})
}, [
n.tags.length ? (i(), J(s(Z), {
s.tags.length ? (i(), J(n(Z), {
key: 0,
slot: "reference",
active: f.value.tagsShow,
onClick: o
onClick: fe
}, {
default: O(() => [
k(s(V), {
T(n(B), {
class: "record-list-icon",
src: s(I).filter
src: n(V).filter
}, null, 8, ["src"])

@@ -638,10 +645,10 @@ ]),

}, 8, ["active"])) : L("", !0),
k(s(Z), {
onClick: ke,
T(n(Z), {
onClick: Te,
active: t.value.trash
}, {
default: O(() => [
k(s(V), {
T(n(B), {
class: "record-list-icon",
src: s(I).trash
src: n(V).trash
}, null, 8, ["src"])

@@ -651,10 +658,10 @@ ]),

}, 8, ["active"]),
k(s(Z), {
onClick: u,
T(n(Z), {
onClick: o,
active: f.value.tag
}, {
default: O(() => [
k(s(V), {
T(n(B), {
class: "record-list-icon",
src: s(I).visible
src: n(V).visible
}, null, 8, ["src"])

@@ -664,10 +671,10 @@ ]),

}, 8, ["active"]),
k(s(Z), {
onClick: a,
T(n(Z), {
onClick: r,
active: f.value.datetime
}, {
default: O(() => [
k(s(V), {
T(n(B), {
class: "record-list-icon",
src: s(I).delete
src: n(V).delete
}, null, 8, ["src"])

@@ -677,10 +684,10 @@ ]),

}, 8, ["active"]),
k(s(Z), {
onClick: Fe,
T(n(Z), {
onClick: $e,
active: w.value
}, {
default: O(() => [
k(s(V), {
T(n(B), {
class: "record-list-icon",
src: s(I).todo
src: n(V).todo
}, null, 8, ["src"])

@@ -692,10 +699,10 @@ ]),

])) : L("", !0),
Q.value ? (i(), g("div", B2, [
E(v("div", N2, [
k(s(h2), {
ve.value ? (i(), g("div", b2, [
E(v("div", E2, [
T(n(u2), {
ref_key: "multipleTag",
ref: H,
tags: n.tags,
tags: s.tags,
value: t.value.tagIds,
onChange: Xe
onChange: Re
}, null, 8, ["tags", "value"])

@@ -705,3 +712,3 @@ ], 512), [

]),
v("div", M2, [
v("div", V2, [
v("div", {

@@ -711,11 +718,11 @@ class: Y(["record-list-sort-item", {

}]),
onClick: l[1] || (l[1] = (r) => Le(1)),
style: _({
onClick: l[1] || (l[1] = (a) => ke(1)),
style: k({
"margin-right": t.value.sort == 2 ? "24px" : "10px"
})
}, [
Me(" 创建时间 "),
E(v("span", G2, [
l[8] || (l[8] = Ne(" 创建时间 ", -1)),
E(v("span", B2, [
E(v("span", {
style: _({
style: k({
color: t.value.sort == 1 && t.value.sortType == "DESC" ? "rgba(82, 167, 112, 1)" : "#cecece"

@@ -727,3 +734,3 @@ })

E(v("span", {
style: _({
style: k({
color: t.value.sort == 1 && t.value.sortType == "ASC" ? "rgba(82, 167, 112, 1)" : "#cecece"

@@ -742,8 +749,8 @@ })

}]),
onClick: l[2] || (l[2] = (r) => Le(2))
onClick: l[2] || (l[2] = (a) => ke(2))
}, [
Me(" 更新时间 "),
E(v("span", P2, [
l[9] || (l[9] = Ne(" 更新时间 ", -1)),
E(v("span", I2, [
E(v("span", {
style: _({
style: k({
color: t.value.sort == 2 && t.value.sortType == "DESC" ? "rgba(82, 167, 112, 1)" : "#cecece"

@@ -755,3 +762,3 @@ })

E(v("span", {
style: _({
style: k({
color: t.value.sort == 2 && t.value.sortType == "ASC" ? "rgba(82, 167, 112, 1)" : "#cecece"

@@ -768,60 +775,55 @@ })

])) : L("", !0),
T.value ? (i(), g("div", {
_.value ? (i(), g("div", {
key: 2,
class: "record-list-main",
style: _({ background: n.bgColor })
style: k({ background: s.bgColor })
}, [
n.showToggle ? (i(), g("button", {
s.showToggle ? (i(), g("button", {
key: 0,
class: "record-list-closer",
onClick: oe
onClick: re
}, [
(i(), g("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "14",
height: "14",
fill: "currentColor",
style: _({
transform: "rotate(-90deg)"
}),
viewBox: "0 0 16 16"
}, Y2, 4))
(i(), g("svg", N2, [...l[10] || (l[10] = [
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)
])]))
])) : L("", !0),
R.value.length ? (i(), g("div", {
key: 2,
ref_key: "noteList",
ref: ge,
style: _(te.value),
ref: "noteList",
style: k(pe.value),
class: "record-list-wrap",
onScroll: ae,
onDragover: l[4] || (l[4] = m((r) => Ie(r), ["stop", "prevent"])),
onScroll: he,
onDragover: l[4] || (l[4] = m((a) => Ee(a), ["stop", "prevent"])),
onDragleave: m(Be, ["stop", "prevent"]),
onDrop: l[5] || (l[5] = m((r) => Ve(r), ["stop", "prevent"]))
onDrop: l[5] || (l[5] = m((a) => Ve(a), ["stop", "prevent"]))
}, [
k(l2, {
name: pe.value,
T(e2, {
name: ee.value,
tag: "div"
}, {
default: O(() => [
(i(!0), g(j, null, _e(R.value, (r) => (i(), g("div", o2({
key: r.created_at,
(i(!0), g(j, null, _e(R.value, (a) => (i(), g("div", t2({
key: a.created_at,
class: ["record-list-item", {
"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"
"record-list-item-active": a.created_at === b.value,
"record-drop-before": n(h).dropId === a.created_at && n(h).dropPosition === "before",
"record-drop-after": n(h).dropId === a.created_at && n(h).dropPosition === "after",
"record-drop-inner": n(h).dropId === a.created_at && n(h).dropPosition === "inner"
}]
}, a2(re(r), !0), {
draggable: Qe(r),
onDragstart: m((p) => je(p, r), ["stop"]),
onDragend: m(Je, ["stop"]),
onDragover: m((p) => Ie(p, r), ["stop", "prevent"]),
}, l2(oe(a), !0), {
draggable: Je(a),
onDragstart: m((p) => Xe(p, a), ["stop"]),
onDragend: m(Ze, ["stop"]),
onDragover: m((p) => Ee(p, a), ["stop", "prevent"]),
onDrop: l[3] || (l[3] = m((p) => Ve(p), ["stop", "prevent"]))
}), [
f.value.tag ? (i(), g("div", A2, [
f.value.tag ? (i(), g("div", P2, [
v("span", {
class: "record-list-item-tag",
style: _(s(He)(r.tag_id, n.tags, r)),
onClick: m((p) => fe(r), ["stop"])
}, null, 12, H2)
style: k(n(Ae)(a.tag_id, s.tags, a)),
onClick: m((p) => ae(a), ["stop"])
}, null, 12, q2)
])) : L("", !0),

@@ -831,7 +833,7 @@ v("h3", {

"record-list-item-title-trash": t.value.trash,
...he(r)
...le(a)
}]),
innerHTML: W(r.title)
}, null, 10, $2),
r.type ? L("", !0) : (i(), g("p", {
innerHTML: te(a.title)
}, null, 10, Y2),
a.type ? L("", !0) : (i(), g("p", {
key: 1,

@@ -841,9 +843,9 @@ class: Y(["record-list-item-content", {

}]),
innerHTML: W(r.content)
}, null, 10, U2)),
innerHTML: te(a.content)
}, null, 10, z2)),
f.value.datetime ? E((i(), g("p", {
key: 2,
style: _({ color: t.value.trash ? "#777777" : "" }),
style: k({ color: t.value.trash ? "#777777" : "" }),
class: "record-list-item-des"
}, Ge(le(r.created_at)) + "创建 ", 5)), [
}, Me(W(a.created_at)) + "创建 ", 5)), [
[G, t.value.sort == 1]

@@ -853,18 +855,18 @@ ]) : L("", !0),

key: 3,
style: _({ color: t.value.trash ? "#777777" : "" }),
style: k({ color: t.value.trash ? "#777777" : "" }),
class: "record-list-item-des"
}, Ge(le(r.updated_at)) + "更新 ", 5)), [
}, Me(W(a.updated_at)) + "更新 ", 5)), [
[G, t.value.sort == 2]
]) : L("", !0),
Ke(r) ? (i(), J(s(V), {
je(a) ? (i(), J(n(B), {
key: 4,
class: "record-list-uploading",
src: s(I).uploading,
src: n(V).uploading,
width: "14",
height: "14",
fill: "#52A770"
}, null, 8, ["src"])) : me(r) ? (i(), J(s(V), {
}, null, 8, ["src"])) : me(a) ? (i(), J(n(B), {
key: 5,
class: "record-list-rel",
src: s(I).relate,
src: n(V).relate,
width: "14",

@@ -874,25 +876,21 @@ height: "14",

}, null, 8, ["src"])) : L("", !0)
], 16, O2))), 128))
], 16, G2))), 128))
]),
_: 1
}, 8, ["name"])
], 36)) : (i(), g("div", z2, " 0条符合条件的记录 "))
], 36)) : (i(), g("div", M2, " 0条符合条件的记录 "))
], 4)) : L("", !0),
!T.value && n.showToggle ? (i(), g("button", {
!_.value && s.showToggle ? (i(), g("button", {
key: 3,
class: "record-list-opener",
onClick: oe
onClick: re
}, [
(i(), g("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "14",
height: "14",
fill: "currentColor",
style: _({
transform: "rotate(90deg)"
}),
viewBox: "0 0 16 16"
}, R2, 4))
(i(), g("svg", O2, [...l[11] || (l[11] = [
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)
])]))
])) : L("", !0),
y.value ? (i(), g("div", {
D.value ? (i(), g("div", {
key: 4,

@@ -906,6 +904,6 @@ ref_key: "contentMenu",

key: 0,
onClick: l[6] || (l[6] = (r) => Se(!0))
onClick: l[6] || (l[6] = (a) => Le(!0))
}, "彻底删除")) : (i(), g("li", {
key: 1,
onClick: l[7] || (l[7] = (r) => Se(!1))
onClick: l[7] || (l[7] = (a) => Le(!1))
}, "删除"))

@@ -916,3 +914,3 @@ ])

}
}, 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 = {
}, e0 = /* @__PURE__ */ K(A2, [["__scopeId", "data-v-25213309"]]), H2 = { class: "explorer-list" }, $2 = ["onClick", "onContextmenu", "draggable", "onDragstart", "onDragover"], U2 = { class: "explorer-list-item-icon" }, F2 = ["data-note-id"], R2 = ["innerHTML"], W2 = {
__name: "explorer-list",

@@ -978,48 +976,47 @@ props: {

],
setup(n, { expose: S, emit: C }) {
const d = C, c = n, N = B(() => {
const o = c.levelColors;
return o[c.level % o.length];
}), y = B(() => {
const o = c.levelColors;
return o[(c.level + 1) % o.length];
}), t = D(null), w = D(null), H = D(null), M = D(null), b = D(null), T = D(""), ge = B(() => N.value);
setup(s, { expose: S, emit: C }) {
const u = C, c = s, N = I(() => {
const r = c.levelColors;
return r[c.level % r.length];
}), D = I(() => {
const r = c.levelColors;
return r[(c.level + 1) % r.length];
}), t = y(null), w = y(null), H = y(null), M = y(null), b = y(null), _ = y(""), f = I(() => N.value);
q(
() => c.activeNote,
(o) => {
M.value = o == null ? void 0 : o.created_at;
(r) => {
M.value = r == null ? void 0 : r.created_at;
},
{ immediate: !0 }
), qe(() => {
document.addEventListener("click", F);
}), Ye(() => {
document.removeEventListener("click", F);
), Pe(() => {
document.addEventListener("click", Q);
}), qe(() => {
document.removeEventListener("click", Q);
});
function f(o) {
let a = (o || "").replace("closeIcon", "").replace("contenteditable", "temp");
function $(r) {
let o = (r || "").replace("closeIcon", "").replace("contenteditable", "temp");
try {
a = JSON.parse(a);
o = JSON.parse(o);
} catch {
}
if (Array.isArray(a)) {
let u = a.find((x) => x.text || x.type && !x.pending);
return u ? ue(u) : "";
} else
return typeof a != "string" ? ue(a) : Oe.sanitize(o);
if (Array.isArray(o)) {
let d = o.find((x) => x.text || x.type && !x.pending);
return d ? ue(d) : "";
} else return typeof o != "string" ? ue(o) : ze.sanitize(r);
}
function $(o) {
b.value || !t.value && !o.deleted_at && (M.value = o.created_at, d("selectNote", o));
function U(r) {
b.value || !t.value && !r.deleted_at && (M.value = r.created_at, u("selectNote", r));
}
function U(o, a) {
o.preventDefault(), a.deleted_at || (M.value = a.created_at, d("selectNote", a)), t.value = a, de(() => {
Q(o.clientX, o.clientY);
function ge(r, o) {
r.preventDefault(), o.deleted_at || (M.value = o.created_at, u("selectNote", o)), t.value = o, de(() => {
F(r.clientX, r.clientY);
});
}
function ve(o) {
o.preventDefault(), t.value = { _isBlank: !0 }, de(() => {
Q(o.clientX, o.clientY);
function ve(r) {
r.preventDefault(), t.value = { _isBlank: !0 }, de(() => {
F(r.clientX, r.clientY);
});
}
function Q(o, a) {
Ae(
function F(r, o) {
Oe(
{

@@ -1030,6 +1027,6 @@ getBoundingClientRect() {

height: 0,
top: a,
right: o,
bottom: a,
left: o
top: o,
right: r,
bottom: o,
left: r
};

@@ -1052,87 +1049,86 @@ }

}
function F(o) {
var a;
(a = w.value) != null && a.contains(o.target) || (t.value = null);
function Q(r) {
var o;
(o = w.value) != null && o.contains(r.target) || (t.value = null);
}
function ee() {
var a;
const o = (a = t.value) != null && a._isBlank ? null : t.value;
d("addFolder", o), t.value = null;
}
function R() {
var a;
const o = (a = t.value) != null && a._isBlank ? null : t.value;
d("addNote", o), t.value = null;
var o;
const r = (o = t.value) != null && o._isBlank ? null : t.value;
u("addFolder", r), t.value = null;
}
function z() {
d("import", t.value), t.value = null;
var o;
const r = (o = t.value) != null && o._isBlank ? null : t.value;
u("addNote", r), t.value = null;
}
function ee() {
u("import", t.value), t.value = null;
}
function pe() {
d("rename", t.value), t.value = null;
u("rename", t.value), t.value = null;
}
function te() {
d("removeNote", t.value), t.value = null;
function W() {
u("removeNote", t.value), t.value = null;
}
function le(o) {
return o.type === "folder" && o.created_at === M.value ? !1 : c.draggable;
function te(r) {
return r.type === "folder" && r.created_at === M.value ? !1 : c.draggable;
}
function W(o, a = {}) {
if (!c.draggable || window.__DRAG_ID__ === a.created_at) {
o.dataTransfer.dropEffect = "none";
function le(r, o = {}) {
if (!c.draggable || window.__DRAG_ID__ === o.created_at) {
r.dataTransfer.dropEffect = "none";
return;
}
h.dropId = a.created_at, h.dropPosition = $e(o, a.type === "folder");
h.dropId = o.created_at, h.dropPosition = He(r, o.type === "folder");
}
function he(o, a) {
const u = a.type || "note";
window.__DRAG_TYPE__ = u, window.__DRAG_ID__ = a.created_at, o.dataTransfer.setData(
function re(r, o) {
const d = o.type || "note";
window.__DRAG_TYPE__ = d, window.__DRAG_ID__ = o.created_at, r.dataTransfer.setData(
"dragData",
JSON.stringify({
type: u,
data: a,
action: o.altKey ? "rel" : "move"
type: d,
data: o,
action: r.altKey ? "rel" : "move"
})
);
}
function oe() {
function he() {
delete window.__DRAG_TYPE__, delete window.__DRAG_ID__;
}
function ae(o) {
c.draggable && (d("drop", o, {
function oe(r) {
c.draggable && (u("drop", r, {
id: h.dropId,
position: h.dropPosition
}), re());
}), ae());
}
function re() {
function ae() {
h.dropId = null, h.dropPosition = "";
}
function fe(o, a) {
b.value = o, T.value = a || "", de(() => {
const u = document.querySelector(
`.explorer-list-item-title-input[data-note-id="${o}"]`
function ne(r, o) {
b.value = r, _.value = o || "", de(() => {
const d = document.querySelector(
`.explorer-list-item-title-input[data-note-id="${r}"]`
);
u && (u.focus(), u.select());
d && (d.focus(), d.select());
});
}
function X() {
if (b.value === null)
return;
const o = T.value.trim(), a = c.noteList.find((u) => u.created_at === b.value);
a && o !== a.title && d("editComplete", {
if (b.value === null) return;
const r = _.value.trim(), o = c.noteList.find((d) => d.created_at === b.value);
o && r !== o.title && u("editComplete", {
noteId: b.value,
title: o || (a.type === "folder" ? "New Folder" : "New Note")
}), b.value = null, T.value = "";
title: r || (o.type === "folder" ? "New Folder" : "New Note")
}), b.value = null, _.value = "";
}
function ne() {
b.value = null, T.value = "";
function fe() {
b.value = null, _.value = "";
}
return S({
startEdit: fe
}), (o, a) => (i(), g("div", X2, [
startEdit: ne
}), (r, o) => (i(), g("div", H2, [
v("div", {
class: "explorer-list-main",
style: _({
style: k({
background: N.value,
"--item-bg-color": ge.value,
"--active-bg-color": y.value
"--item-bg-color": f.value,
"--active-bg-color": D.value
})

@@ -1144,37 +1140,37 @@ }, [

class: "explorer-list-wrap",
onDragover: a[4] || (a[4] = m((u) => W(u), ["stop", "prevent"])),
onDragleave: m(re, ["stop", "prevent"]),
onDrop: a[5] || (a[5] = m((u) => ae(u), ["stop", "prevent"])),
onDragover: o[4] || (o[4] = m((d) => le(d), ["stop", "prevent"])),
onDragleave: m(ae, ["stop", "prevent"]),
onDrop: o[5] || (o[5] = m((d) => oe(d), ["stop", "prevent"])),
onContextmenu: m(ve, ["self"])
}, [
(i(!0), g(j, null, _e(n.noteList, (u) => (i(), g("div", {
key: u.created_at,
(i(!0), g(j, null, _e(s.noteList, (d) => (i(), g("div", {
key: d.created_at,
class: Y(["explorer-list-item", {
"explorer-list-item-active": u.created_at === M.value,
"explorer-drop-before": s(h).dropId === u.created_at && s(h).dropPosition === "before",
"explorer-drop-after": s(h).dropId === u.created_at && s(h).dropPosition === "after",
"explorer-drop-inner": s(h).dropId === u.created_at && s(h).dropPosition === "inner"
"explorer-list-item-active": d.created_at === M.value,
"explorer-drop-before": n(h).dropId === d.created_at && n(h).dropPosition === "before",
"explorer-drop-after": n(h).dropId === d.created_at && n(h).dropPosition === "after",
"explorer-drop-inner": n(h).dropId === d.created_at && n(h).dropPosition === "inner"
}]),
onClick: (x) => $(u),
onContextmenu: m((x) => U(x, u), ["stop"]),
draggable: le(u),
onDragstart: m((x) => he(x, u), ["stop"]),
onDragend: m(oe, ["stop"]),
onDragover: m((x) => W(x, u), ["stop", "prevent"]),
onDrop: a[3] || (a[3] = m((x) => ae(x), ["stop", "prevent"]))
onClick: (x) => U(d),
onContextmenu: m((x) => ge(x, d), ["stop"]),
draggable: te(d),
onDragstart: m((x) => re(x, d), ["stop"]),
onDragend: m(he, ["stop"]),
onDragover: m((x) => le(x, d), ["stop", "prevent"]),
onDrop: o[3] || (o[3] = m((x) => oe(x), ["stop", "prevent"]))
}, [
v("div", j2, [
u.type === "folder" ? (i(), J(s(V), {
v("div", U2, [
d.type === "folder" ? (i(), J(n(B), {
key: 0,
src: u.created_at === M.value ? s(I).folderOpen : s(I).folder,
src: d.created_at === M.value ? n(V).folderOpen : n(V).folder,
width: "14",
height: "14",
fill: "#9E9E9E"
}, null, 8, ["src"])) : u.tag_id ? (i(), g("div", {
}, null, 8, ["src"])) : d.tag_id ? (i(), g("div", {
key: 1,
class: "explorer-list-item-tag",
style: _(s(He)(u.tag_id, n.tags, u))
}, null, 4)) : (i(), J(s(V), {
style: k(n(Ae)(d.tag_id, s.tags, d))
}, null, 4)) : (i(), J(n(B), {
key: 2,
src: s(I).file,
src: n(V).file,
width: "14",

@@ -1185,24 +1181,24 @@ height: "14",

]),
u.created_at === b.value ? E((i(), g("input", {
d.created_at === b.value ? E((i(), g("input", {
key: 0,
"onUpdate:modelValue": a[0] || (a[0] = (x) => T.value = x),
"onUpdate:modelValue": o[0] || (o[0] = (x) => _.value = x),
class: "explorer-list-item-title-input",
onKeyup: [
ye(X, ["enter"]),
ye(ne, ["esc"])
ye(fe, ["esc"])
],
onBlur: X,
onClick: a[1] || (a[1] = m(() => {
onClick: o[1] || (o[1] = m(() => {
}, ["stop"])),
onDblclick: a[2] || (a[2] = m(() => {
onDblclick: o[2] || (o[2] = m(() => {
}, ["stop"])),
"data-note-id": u.created_at
}, null, 40, J2)), [
[ze, T.value]
"data-note-id": d.created_at
}, null, 40, F2)), [
[Ye, _.value]
]) : (i(), g("h3", {
key: 1,
class: "explorer-list-item-title",
innerHTML: f(u.title)
}, null, 8, K2))
], 42, Z2))), 128))
innerHTML: $(d.title)
}, null, 8, R2))
], 42, $2))), 128))
], 544)

@@ -1218,14 +1214,14 @@ ], 4),

t.value._isBlank ? (i(), g(j, { key: 0 }, [
v("li", { onClick: R }, "新建笔记"),
v("li", { onClick: ee }, "新建文件夹"),
v("li", { onClick: z }, "导入")
v("li", { onClick: z }, "新建笔记"),
v("li", { onClick: R }, "新建文件夹"),
v("li", { onClick: ee }, "导入")
], 64)) : t.value.type === "folder" ? (i(), g(j, { key: 1 }, [
v("li", { onClick: R }, "新建笔记"),
v("li", { onClick: ee }, "新建文件夹"),
v("li", { onClick: z }, "导入"),
v("li", { onClick: z }, "新建笔记"),
v("li", { onClick: R }, "新建文件夹"),
v("li", { onClick: ee }, "导入"),
v("li", { onClick: pe }, "重命名"),
v("li", { onClick: te }, "删除")
v("li", { onClick: W }, "删除")
], 64)) : (i(), g("li", {
key: 2,
onClick: te
onClick: W
}, "删除"))

@@ -1236,6 +1232,6 @@ ])

}
}, st = /* @__PURE__ */ K(Q2, [["__scopeId", "data-v-b41687f4"]]);
}, t0 = /* @__PURE__ */ K(W2, [["__scopeId", "data-v-a2937ab8"]]);
export {
st as ExplorerList,
nt as RecordList
t0 as ExplorerList,
e0 as RecordList
};
{
"name": "@codernote/record-list",
"version": "3.0.3",
"version": "3.0.4",
"type": "module",

@@ -5,0 +5,0 @@ "main": "dist/index.js",