bto-md-editor 0.1.14 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/md-editor.es.js +488 -489
- package/dist/md-editor.umd.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/md-editor.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(`.tooltip-wrapper[data-v-2e4633d5]{position:relative;display:inline-flex;align-items:center;line-height:0}.tooltip[data-v-2e4633d5]{position:fixed;transform:translate(-50%);background:#3c3c3cf2;color:#fff;border-radius:8px;padding:6px 8px;font-size:12px;line-height:1.2;box-shadow:0 6px 20px #0003;white-space:nowrap;opacity:0;visibility:hidden;transition:opacity .12s ease,visibility .12s ease;pointer-events:none;z-index:1000}.tooltip.visible[data-v-2e4633d5]{opacity:1;visibility:visible}.shortcut[data-v-2e4633d5]{display:inline-block;margin-top:4px;opacity:.9;z-index:1000}.font-size-wrapper[data-v-87f86dca]{position:relative;-webkit-user-select:none;user-select:none}.font-size-wrapper .icon[data-v-87f86dca]{cursor:pointer;width:27px;height:27px;border-radius:4px;display:flex;align-items:center;font-size:12px;transition:all .2s ease-in-out;position:relative;padding:0 6px;min-width:50px;justify-content:space-between;background:var(--bg-base)}.font-size-wrapper .icon[data-v-87f86dca]:hover{background:var(--hover-bg-color)}.font-size-wrapper .label[data-v-87f86dca]{font-size:15px}.dropdown[data-v-87f86dca]{position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%);min-width:160px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #00000014;z-index:10;-webkit-user-select:none;user-select:none;will-change:opacity,transform}.dropdown-slide-enter-from[data-v-87f86dca],.dropdown-slide-leave-to[data-v-87f86dca]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.dropdown-slide-enter-active[data-v-87f86dca],.dropdown-slide-leave-active[data-v-87f86dca]{transition:opacity .18s ease,transform .18s ease}.dropdown-item[data-v-87f86dca]{display:flex;align-items:center;gap:8px;padding:6px 12px;cursor:pointer;font-size:14px}.dropdown-item[data-v-87f86dca]:hover{background:var(--hover-bg-color)}.text[data-v-87f86dca]{flex:1}.color-select-wrapper[data-v-1656be6b]{position:relative;margin:0 4px;-webkit-user-select:none;user-select:none}.icon[data-v-1656be6b]{cursor:default;width:27px;height:27px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:16px;transition:all .2s ease-in-out;position:relative}.icon-dropdown[data-v-1656be6b]{width:auto;justify-content:space-between;background:var(--bg-base)}.icon-stack[data-v-1656be6b]{display:flex;flex-direction:column;align-items:center;line-height:1;border-radius:6px;padding:2px;cursor:pointer}.arrow[data-v-1656be6b]{display:flex;align-items:center;justify-content:center;width:16px;height:27px;border-radius:2px;cursor:pointer}.hoverable[data-v-1656be6b]:hover{background:var(--hover-bg-color)}.underline[data-v-1656be6b]{width:16px;height:2px;border-radius:2px;margin-top:2px;background:var(--bg-base)}.dropdown[data-v-1656be6b]{position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%);min-width:280px;max-width:320px;background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #00000014;padding:8px;z-index:20;will-change:opacity,transform;border:1px solid var(--border-color)}.dropdown-slide-enter-from[data-v-1656be6b],.dropdown-slide-leave-to[data-v-1656be6b]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.dropdown-slide-enter-active[data-v-1656be6b],.dropdown-slide-leave-active[data-v-1656be6b]{transition:opacity .18s ease,transform .18s ease}.section[data-v-1656be6b]{margin-bottom:8px}.section-title[data-v-1656be6b]{font-size:12px;margin-bottom:6px}.swatches[data-v-1656be6b]{display:flex;flex-wrap:wrap;gap:6px}.swatches.grid[data-v-1656be6b]{grid-template-columns:repeat(10,1fr)}.swatch[data-v-1656be6b]{width:18px;height:18px;border-radius:4px;cursor:pointer;position:relative;border:1px solid var(--border-color);display:flex;align-items:center;font-size:12px;justify-content:center}.swatch .check[data-v-1656be6b]{position:absolute;top:0;right:2px;font-size:12px;color:var(--text-base);text-shadow:0 1px 2px rgba(255,255,255,.8)}.inline-actions[data-v-1656be6b]{display:flex;justify-content:space-between;gap:8px}.btn[data-v-1656be6b]{padding:4px 8px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;cursor:pointer;font-size:12px;color:var(--text-base)}.advanced[data-v-1656be6b]{display:grid;grid-template-columns:auto 1fr auto;gap:4px;align-items:center;margin-top:8px}.hex[data-v-1656be6b]{border:1px solid var(--border-color);border-radius:2px;padding:4px 6px;font-size:12px}.apply[data-v-1656be6b]{justify-self:end;flex-shrink:1}.svg-icon[data-v-ee8563cd]{display:inline-block;line-height:0;vertical-align:middle}.svg-icon svg[data-v-ee8563cd]{width:1em;height:1em;display:block}.bg-color-select-wrapper[data-v-f414a9de]{position:relative;-webkit-user-select:none;user-select:none}.icon[data-v-f414a9de]{cursor:default;width:19px;height:19px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:16px;transition:all .2s ease-in-out;position:relative}.icon-dropdown[data-v-f414a9de]{width:auto;padding:0 2px;min-width:20px;justify-content:space-between;background:var(--bg-base)}.icon-stack[data-v-f414a9de]{display:flex;flex-direction:column;align-items:center;line-height:1;border-radius:6px;padding:2px;cursor:pointer}.arrow[data-v-f414a9de]{display:flex;align-items:center;justify-content:center;width:16px;height:27px;border-radius:4px;cursor:pointer}.hoverable[data-v-f414a9de]:hover{background:var(--hover-bg-color)}.underline[data-v-f414a9de]{width:16px;height:2px;border-radius:2px;margin-top:2px;background:var(--bg-base)}.dropdown[data-v-f414a9de]{position:absolute;top:calc(100% + 8px);left:50%;transform:translate(-50%);min-width:280px;max-width:320px;background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #00000014;padding:8px;z-index:20;will-change:opacity,transform}.section[data-v-f414a9de]{margin-bottom:8px}.section-title[data-v-f414a9de]{font-size:12px;color:#666;margin-bottom:6px}.swatches[data-v-f414a9de]{display:flex;flex-wrap:wrap;gap:6px}.swatches.grid[data-v-f414a9de]{grid-template-columns:repeat(10,1fr)}.swatch[data-v-f414a9de]{width:18px;height:18px;border-radius:4px;cursor:pointer;position:relative;border:1px solid rgba(0,0,0,.08);display:flex;align-items:center;font-size:12px;justify-content:center}.swatch .check[data-v-f414a9de]{position:absolute;top:0;right:2px;font-size:12px;color:#000;text-shadow:0 1px 2px rgba(255,255,255,.8)}.inline-actions[data-v-f414a9de]{display:flex;justify-content:space-between;gap:8px}.btn[data-v-f414a9de]{padding:4px 8px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;cursor:pointer;font-size:12px}.advanced[data-v-f414a9de]{display:grid;grid-template-columns:auto 1fr auto;gap:4px;align-items:center;margin-top:8px}.hex[data-v-f414a9de]{border:1px solid var(--border-color);border-radius:2px;padding:4px 6px;font-size:12px}.apply[data-v-f414a9de]{justify-self:end;flex-shrink:1}.dropdown-slide-enter-from[data-v-f414a9de],.dropdown-slide-leave-to[data-v-f414a9de]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.dropdown-slide-enter-active[data-v-f414a9de],.dropdown-slide-leave-active[data-v-f414a9de]{transition:opacity .18s ease,transform .18s ease}.image-icon[data-v-ea99876b]{position:relative}.image-input-panel[data-v-ea99876b]{position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%);min-width:320px;padding:10px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #0000001f;z-index:20;will-change:opacity,transform}.image-input[data-v-ea99876b]{width:100%;padding:8px 10px;box-sizing:border-box;max-width:100%;border:1px solid var(--border-color);border-radius:4px;outline:none;font-size:14px;background-color:var(--bg-input);color:var(--text-base)}.image-actions[data-v-ea99876b]{margin-top:8px;display:flex;gap:8px;justify-content:flex-end}.btn[data-v-ea99876b]{padding:6px 10px;border-radius:2px;border:1px solid var(--border-color);background:var(--bg-base);cursor:pointer;font-size:13px;color:var(--text-base)}.btn[data-v-ea99876b]:hover{background:var(--hover-bg-color)}.btn-primary[data-v-ea99876b]{border:none;background:#1677ff;color:var(--text-base)}.btn-primary[data-v-ea99876b]:hover{background:#1677ff;opacity:.92}.img-panel-enter-active[data-v-ea99876b],.img-panel-leave-active[data-v-ea99876b]{transition:opacity .18s ease,transform .18s ease}.img-panel-enter-from[data-v-ea99876b],.img-panel-leave-to[data-v-ea99876b]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.img-panel-enter-to[data-v-ea99876b],.img-panel-leave-from[data-v-ea99876b]{opacity:1;transform:translate(-50%) translateY(0) scale(1)}.video-icon[data-v-77dd3e96]{position:relative}.video-input-panel[data-v-77dd3e96]{position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%);min-width:320px;padding:10px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #0000001f;z-index:20;will-change:opacity,transform}.video-input[data-v-77dd3e96]{width:100%;padding:8px 10px;box-sizing:border-box;max-width:100%;border:1px solid var(--border-color);border-radius:2px;outline:none;font-size:14px;background-color:var(--bg-input);color:var(--text-base)}.video-actions[data-v-77dd3e96]{margin-top:8px;display:flex;gap:8px;justify-content:flex-end}.btn[data-v-77dd3e96]{padding:6px 10px;border-radius:2px;border:1px solid var(--border-color);background:var(--bg-base);cursor:pointer;font-size:13px;color:var(--text-base)}.btn[data-v-77dd3e96]:hover{background:var(--hover-bg-color)}.btn-primary[data-v-77dd3e96]{border:none;background:#1677ff;color:var(--text-base)}.btn-primary[data-v-77dd3e96]:hover{background:#1677ff;opacity:.92}.video-panel-enter-active[data-v-77dd3e96],.video-panel-leave-active[data-v-77dd3e96]{transition:opacity .18s ease,transform .18s ease}.video-panel-enter-from[data-v-77dd3e96],.video-panel-leave-to[data-v-77dd3e96]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.video-panel-enter-to[data-v-77dd3e96],.video-panel-leave-from[data-v-77dd3e96]{opacity:1;transform:translate(-50%) translateY(0) scale(1)}.find-icon[data-v-5433b285]{position:relative}.find-input-panel[data-v-5433b285]{position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%);min-width:320px;padding:10px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #0000001f;z-index:20;will-change:opacity,transform}.fr-header[data-v-5433b285]{display:flex;align-items:center;gap:6px;margin-bottom:6px}.fr-tab[data-v-5433b285]{border:none;background:transparent;padding:6px 8px;cursor:pointer;border-bottom:2px solid transparent;color:var(--text-base)}.fr-tab.active[data-v-5433b285]{border-color:#1a69f8;font-weight:600}.fr-label[data-v-5433b285]{display:block;font-size:12px;margin:6px 0 4px}.fr-input-row[data-v-5433b285]{display:flex;align-items:center;gap:6px;width:100%}.fr-input[data-v-5433b285]{flex:1;padding:8px;border:1px solid var(--border-color);border-radius:2px;background-color:var(--bg-input);color:var(--text-base);outline:none}.fr-count[data-v-5433b285]{font-size:12px}.fr-actions[data-v-5433b285]{display:flex;gap:8px;margin-top:10px;justify-content:flex-end}.fr-btn[data-v-5433b285]{padding:6px 10px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;cursor:pointer;color:var(--text-base)}.fr-btn.primary[data-v-5433b285]{color:var(--text-base);background:#1a69f8;border-color:#1a69f8}.find-panel-enter-active[data-v-5433b285],.find-panel-leave-active[data-v-5433b285]{transition:opacity .18s ease,transform .18s ease}.find-panel-enter-from[data-v-5433b285],.find-panel-leave-to[data-v-5433b285]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.find-panel-enter-to[data-v-5433b285],.find-panel-leave-from[data-v-5433b285]{opacity:1;transform:translate(-50%) translateY(0) scale(1)}.link-icon[data-v-db61d34c]{position:relative}.link-input-panel[data-v-db61d34c]{position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%);min-width:320px;padding:10px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #0000001f;z-index:20;will-change:opacity,transform}.field[data-v-db61d34c]{margin-bottom:8px}.label[data-v-db61d34c]{font-size:12px;color:#666;margin-bottom:6px}.input[data-v-db61d34c]{width:100%;padding:8px 10px;box-sizing:border-box;max-width:100%;border:1px solid var(--border-color);border-radius:2px;outline:none;font-size:14px;background-color:var(--bg-input);color:var(--text-base)}.actions[data-v-db61d34c]{display:flex;justify-content:flex-end;gap:8px}.btn[data-v-db61d34c]{padding:6px 10px;border-radius:2px;border:1px solid var(--border-color);background:#fff;cursor:pointer;font-size:13px}.btn-primary[data-v-db61d34c]{border:none;background:#1677ff;color:#fff}.btn-primary[data-v-db61d34c]:hover{background:#1677ff;opacity:.92}.link-panel-enter-active[data-v-db61d34c],.link-panel-leave-active[data-v-db61d34c]{transition:opacity .18s ease,transform .18s ease}.link-panel-enter-from[data-v-db61d34c],.link-panel-leave-to[data-v-db61d34c]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.link-panel-enter-to[data-v-db61d34c],.link-panel-leave-from[data-v-db61d34c]{opacity:1;transform:translate(-50%) translateY(0) scale(1)}.table-icon[data-v-d0d98332]{position:relative}.table-panel[data-v-d0d98332]{position:absolute;top:32px;right:0;min-width:220px;padding:10px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #0000001f;z-index:20}.panel-title[data-v-d0d98332]{font-size:12px;margin-bottom:6px}.grid[data-v-d0d98332]{display:flex;flex-direction:column;gap:4px;background:var(--bg-base);border-radius:2px}.row[data-v-d0d98332]{display:flex;gap:4px}.cell[data-v-d0d98332]{width:18px;height:18px;background:var(--bg-base);border:1px solid var(--border-color);border-radius:3px;cursor:pointer}.cell.active[data-v-d0d98332]{background:#e8f1ff;border-color:#1677ff}.size[data-v-d0d98332]{margin-top:6px;font-size:12px}.table-tools[data-v-1aa3a259]{position:relative}.tools-panel[data-v-1aa3a259]{position:absolute;top:32px;right:0;min-width:280px;padding:10px;background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #0000001f;z-index:20;border:1px solid var(--border-color)}.tools-grid[data-v-1aa3a259]{display:grid;grid-template-columns:1fr 1fr;gap:8px}.btn[data-v-1aa3a259]{padding:6px 10px;border-radius:2px;border:1px solid var(--border-color);background:var(--bg-base);cursor:pointer;font-size:13px;color:var(--text-base)}.icon[data-v-0a1c80da]{cursor:default;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:all .2s ease-in-out;position:relative}.icon[data-v-0a1c80da]:hover{background:#0000000d}.icon[data-v-dcd9c3cd]{cursor:pointer;width:27px;height:27px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:16px;transition:all .2s ease-in-out;position:relative}.icon[data-v-dcd9c3cd]:hover{background:#0000000d}.heading-select[data-v-b93823aa]{position:relative;margin:0 4px;-webkit-user-select:none;user-select:none;word-break:keep-all}.icon[data-v-b93823aa]{cursor:pointer;height:27px;border-radius:4px;display:flex;align-items:center;font-size:12px;transition:all .2s ease-in-out;position:relative;padding:0 6px;min-width:52px;justify-content:space-between;background:var(--bg-base)}.icon[data-v-b93823aa]:hover{background:var(--hover-bg-color)}.label[data-v-b93823aa]{font-size:15px;color:var(--text-base)}.dropdown[data-v-b93823aa]{position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%);min-width:220px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #00000014;z-index:10;-webkit-user-select:none;user-select:none;will-change:opacity,transform}.dropdown-slide-enter-from[data-v-b93823aa],.dropdown-slide-leave-to[data-v-b93823aa]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.dropdown-slide-enter-active[data-v-b93823aa],.dropdown-slide-leave-active[data-v-b93823aa]{transition:opacity .18s ease,transform .18s ease}.dropdown-item[data-v-b93823aa]{display:flex;align-items:center;gap:8px;padding:10px 12px;cursor:pointer;font-size:14px}.dropdown-item[data-v-b93823aa]:hover{background:#0000000d}.item-label[data-v-b93823aa]{flex:1}.item-label.paragraph[data-v-b93823aa]{font-size:15px}.item-label.level-1[data-v-b93823aa]{font-size:22px;font-weight:600}.item-label.level-2[data-v-b93823aa]{font-size:20px;font-weight:600}.item-label.level-3[data-v-b93823aa]{font-size:18px;font-weight:600}.item-label.level-4[data-v-b93823aa]{font-size:16px}.item-label.level-5[data-v-b93823aa]{font-size:15px}.item-label.level-6[data-v-b93823aa]{font-size:14px}.shortcut[data-v-b93823aa]{font-size:12px}.align-select[data-v-b321e2b4]{position:relative;margin:0 2px;-webkit-user-select:none;user-select:none;word-break:keep-all}.icon_box[data-v-b321e2b4]{cursor:pointer;height:27px;border-radius:4px;display:flex;align-items:center;justify-content:space-between;transition:all .2s ease-in-out;padding:0 6px;background:var(--bg-base);gap:3px}.icon_box[data-v-b321e2b4]:hover{background:var(--hover-bg-color)}.dropdown[data-v-b321e2b4]{position:absolute;top:calc(100% + 8px);left:50%;transform:translate(-50%);min-width:160px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #00000014;z-index:10;-webkit-user-select:none;user-select:none;will-change:opacity,transform;padding:6px}.dropdown-slide-enter-from[data-v-b321e2b4],.dropdown-slide-leave-to[data-v-b321e2b4]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.dropdown-slide-enter-active[data-v-b321e2b4],.dropdown-slide-leave-active[data-v-b321e2b4]{transition:opacity .18s ease,transform .18s ease}.options[data-v-b321e2b4]{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.option[data-v-b321e2b4]{cursor:pointer;width:27px;height:27px;border-radius:6px;display:flex;align-items:center;justify-content:center}.option[data-v-b321e2b4]:hover,.option.active[data-v-b321e2b4]{background:var(--hover-bg-color)}.theme-wrapper[data-v-1d487e3d]{margin-right:4px;display:flex;align-items:center;justify-content:center;border-radius:50%;width:28px;height:28px;cursor:pointer}.theme-wrapper[data-v-1d487e3d]:hover{background-color:var(--hover-bg-color)}.theme-wrapper .icon-box[data-v-1d487e3d]{display:flex;align-items:center;justify-content:center;cursor:pointer}.theme-wrapper .icon-box:hover svg[data-v-1d487e3d]{opacity:.8}.theme-wrapper .icon-box svg[data-v-1d487e3d]{width:18px;height:18px}.theme-icon-enter-active[data-v-1d487e3d],.theme-icon-leave-active[data-v-1d487e3d]{transition:opacity .16s ease,transform .16s ease}.theme-icon-enter-from[data-v-1d487e3d],.theme-icon-leave-to[data-v-1d487e3d]{opacity:.4;transform:scale(.85) rotate(-8deg)}.theme-icon-enter-to[data-v-1d487e3d],.theme-icon-leave-from[data-v-1d487e3d]{opacity:1;transform:scale(1) rotate(0)}.header_box[data-v-821ee107]{display:flex;align-items:center;gap:3px;padding:8px;border-bottom:1px solid var(--border-color)}.header_box.disabled[data-v-821ee107]{pointer-events:none;opacity:.5}.header_box .icon[data-v-821ee107]{position:relative;cursor:pointer;width:27px;height:27px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:16px;transition:all .2s ease-in-out}.header_box .icon[data-v-821ee107]:hover,.header_box .icon.active[data-v-821ee107]{background:var(--hover-bg-color)}.header_box .icon[aria-disabled=true][data-v-821ee107]{cursor:not-allowed;opacity:.5}.outline-wrapper[data-v-e971cae3]{position:relative;-webkit-user-select:none;user-select:none}.outline[data-v-e971cae3]{border-left:1px solid var(--border-color);padding:8px;box-sizing:border-box;font-size:14px;position:sticky;top:0;align-self:start;height:100%;background:var(--bg-base);display:flex;flex-direction:column;width:0;opacity:0;overflow:hidden;transform:scaleX(0);transform-origin:right center;transition:width .2s ease,transform .2s ease,opacity .2s ease;border-left:none}.outline.isOpen[data-v-e971cae3]{width:240px;opacity:1;transform:scaleX(1);border-left:1px solid var(--border-color)}.outline__listWrap[data-v-e971cae3]{overflow-y:auto;overflow-x:hidden;flex:1 1 auto;min-height:0}.outline__listWrap[data-v-e971cae3]::-webkit-scrollbar{width:6px;height:1px}.outline__listWrap[data-v-e971cae3]::-webkit-scrollbar-thumb{border-radius:10px;box-shadow:inset 0 0 5px #1118181a;background:#787878}.outline__listWrap[data-v-e971cae3]::-webkit-scrollbar-track{border-radius:10px;background:transparent}.outline__header[data-v-e971cae3]{display:flex;align-items:center;font-weight:600;margin-bottom:8px}.outline__header[data-v-e971cae3]>*{display:inline-flex;gap:6px}.outline__list[data-v-e971cae3]{list-style:none;padding:0;margin:0}.outline__item[data-v-e971cae3]{cursor:pointer;padding:4px 0;color:var(--text-base)}.outline__caret[data-v-e971cae3]{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-right:4px;color:#666;transition:transform .12s ease}.outline.dark .outline__caret[data-v-e971cae3]{color:#94a3b8}.outline__caret.collapsed[data-v-e971cae3]{transform:rotate(0)}.outline__caret.expanded[data-v-e971cae3]{transform:rotate(90deg)}.outline__item[data-v-e971cae3]:hover{color:#1a69f8}.outline.dark .outline__item[data-v-e971cae3]:hover{color:#22c55e}.outline__item.lv-1[data-v-e971cae3]{padding-left:0}.outline__item.lv-2[data-v-e971cae3]{padding-left:8px}.outline__item.lv-3[data-v-e971cae3]{padding-left:16px}.outline__item.lv-4[data-v-e971cae3]{padding-left:24px}.outline__item.lv-5[data-v-e971cae3]{padding-left:32px}.outline__item.lv-6[data-v-e971cae3]{padding-left:40px}.outline__text[data-v-e971cae3]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.outline__close[data-v-e971cae3]{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border-color);background:#fff;border-radius:50%;box-shadow:0 2px 10px #00000014;color:#666;cursor:pointer}.outline.dark .outline__close[data-v-e971cae3]{background:#1f1f21;border-color:#334155;color:#94a3b8;box-shadow:none}.outline__close[data-v-e971cae3]:hover{color:var(--hover-text-color)}.outline__title[data-v-e971cae3]{display:inline-flex;align-items:center;gap:6px}.outline__pinIcon[data-v-e971cae3]{display:inline-flex;width:16px;height:16px;color:#666;cursor:pointer}.outline-drawer-mask[data-v-e971cae3]{display:none}@media (max-width: 900px){.outline[data-v-e971cae3]{position:absolute;right:0;top:0;bottom:0;width:0;max-width:85vw;box-shadow:-6px 0 24px #00000014;z-index:10}.outline.isOpen[data-v-e971cae3]{width:min(85vw,280px)}.outline-drawer-mask[data-v-e971cae3]{display:block;position:absolute;left:0;right:0;top:0;bottom:0;background:#00000029;z-index:10}}.outline-slide-enter-active[data-v-e971cae3],.outline-slide-leave-active[data-v-e971cae3]{transition:transform .18s ease,opacity .18s ease}.outline-slide-enter-from[data-v-e971cae3],.outline-slide-leave-to[data-v-e971cae3]{opacity:0;transform:translate(16px)}@media (max-width: 900px){.outline-slide-enter-from[data-v-e971cae3],.outline-slide-leave-to[data-v-e971cae3]{transform:translate(100%)}}.outline-mask-enter-active[data-v-e971cae3],.outline-mask-leave-active[data-v-e971cae3]{transition:opacity .18s ease}.outline-mask-enter-from[data-v-e971cae3],.outline-mask-leave-to[data-v-e971cae3]{opacity:0}.simple-editor[data-v-94c86284]{height:var(--editor-height, auto);min-height:var(--editor-min-height, 100px);display:flex;flex-direction:column;border-radius:2px;background:var(--bg-base);box-sizing:border-box;border:1px solid var(--border-color)}.simple-editor .fullscreen[data-v-94c86284]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;border-radius:0}.simple-editor.readonly[data-v-94c86284] .tiptap-resize-handle{pointer-events:none;display:none}.simple-editor.readonly[data-v-94c86284] img,.simple-editor.readonly[data-v-94c86284] video{-webkit-user-drag:none}.simple-editor.readonly[data-v-94c86284] .tiptap-resize-wrapper,.simple-editor.readonly[data-v-94c86284] .tiptap-resize-container{outline:none!important;border:none!important;width:100%!important;max-width:100%!important}.simple-editor.readonly[data-v-94c86284] .tiptap-video{width:100%!important;max-width:100%!important}.editor_wrapper[data-v-94c86284]{position:relative;overflow-y:auto;overflow-x:hidden;align-items:stretch;flex:1 1 auto;min-height:0}.editor_wrapper[data-v-94c86284]::-webkit-scrollbar{width:6px;height:1px}.editor_wrapper[data-v-94c86284]::-webkit-scrollbar-thumb{border-radius:10px;box-shadow:inset 0 0 5px #1118181a;background:#787878}.editor_wrapper[data-v-94c86284]::-webkit-scrollbar-track{border-radius:10px;background:transparent}.editor_main[data-v-94c86284]{display:grid;grid-template-columns:1fr auto;align-items:stretch;flex:1 1 auto;min-height:0;position:relative}.outline-toggle-row[data-v-94c86284]{position:sticky;top:12px;z-index:3;display:flex;justify-content:flex-end;padding-right:12px}.outline-markers[data-v-94c86284]{position:absolute;right:0;top:0;bottom:0;width:18px;z-index:4}.outline-pin[data-v-94c86284]{position:absolute;right:3px;top:8px;width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border-color);background:#fff;border-radius:50%;box-shadow:0 2px 10px #00000014;color:#666;cursor:pointer}.outline-marker[data-v-94c86284]{position:absolute;right:3px;width:12px;height:2px;background:#d0d5dd;border-radius:2px}.outline-marker.active[data-v-94c86284]{background:#22c55e}.content[data-v-94c86284]{padding:12px 24px;color:var(--text-base)}.content[data-v-94c86284] img{max-width:100%;height:auto;display:inline-block}.content[data-v-94c86284] .ProseMirror{outline:none;caret-color:var(--editor-caret-color)}.content[data-v-94c86284] .tiptap-resize-container,.content[data-v-94c86284] .tiptap-resize-wrapper{max-width:100%!important;box-sizing:border-box}.content[data-v-94c86284] .tiptap-video{max-width:100%!important;height:auto!important;display:block}.content[data-v-94c86284] .drag-hover-target{background:#eef5ff;border-radius:8px}.content[data-v-94c86284] ul[data-type=taskList]{list-style:none;padding-left:0;margin:12px 0}.content[data-v-94c86284] ul[data-type=taskList] li[data-type=taskItem]{display:flex;align-items:flex-start;gap:8px;margin:6px 0}.content[data-v-94c86284] ul[data-type=taskList] li[data-type=taskItem] .todo-box{width:16px;height:16px;border-radius:4px;border:1px solid var(--border-color);background:#fff;box-shadow:inset 0 1px 2px #0000000f;margin-top:2px;flex-shrink:0;cursor:pointer;position:relative;display:inline-flex;align-items:center;justify-content:center;transition:background-color .16s ease,border-color .16s ease}.content[data-v-94c86284] ul[data-type=taskList] li[data-type=taskItem] .todo-box:after{content:"✓";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(.3);opacity:0;color:#fff;font-size:12px;font-weight:700;transition:transform .18s ease,opacity .18s ease;animation:todo-check-out-94c86284 .18s ease both}.content[data-v-94c86284] ul[data-type=taskList] li[data-type=taskItem][data-checked=true] .todo-box{background:#22c55e;border-color:#22c55e}.content[data-v-94c86284] ul[data-type=taskList] li[data-type=taskItem][data-checked=true] .todo-box:after{transform:translate(-50%,-50%) scale(1);opacity:1;animation:todo-check-in-94c86284 .22s cubic-bezier(.2,.7,.3,1.2) both}.content[data-v-94c86284] ul[data-type=taskList] li[data-type=taskItem] .todo-box:focus{outline:2px solid #1677ff44}@keyframes todo-check-in-94c86284{0%{transform:translate(-50%,-50%) scale(.3);opacity:0}60%{transform:translate(-50%,-50%) scale(1.15);opacity:1}to{transform:translate(-50%,-50%) scale(1);opacity:1}}@keyframes todo-check-out-94c86284{0%{transform:translate(-50%,-50%) scale(1);opacity:1}to{transform:translate(-50%,-50%) scale(.3);opacity:0}}.content[data-v-94c86284] ul[data-type=taskList] li[data-type=taskItem]>label,.content[data-v-94c86284] ul[data-type=taskList] li[data-type=taskItem] .task-item__label{display:inline-flex;align-items:center;margin-right:6px}.content[data-v-94c86284] ul[data-type=taskList] li[data-type=taskItem] input[type=checkbox]{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto;position:static;opacity:1;pointer-events:auto;width:16px;height:16px;border-radius:4px;border:1px solid var(--border-color);margin-top:2px}.content[data-v-94c86284] ul[data-type=taskList] li[data-type=taskItem][data-checked=true] input[type=checkbox]{accent-color:#22c55e}.content[data-v-94c86284] ul[data-type=taskList] li[data-type=taskItem] .task-content,.content[data-v-94c86284] ul[data-type=taskList] li[data-type=taskItem] .task-item__content{flex:1;min-width:1px}.content[data-v-94c86284] ul[data-type=taskList] li[data-type=taskItem] .task-content p,.content[data-v-94c86284] ul[data-type=taskList] li[data-type=taskItem] .task-item__content p{margin:0}.content[data-v-94c86284] img.ProseMirror-selectednode{outline:2px solid var(--border-color);border-radius:4px}.content[data-v-94c86284] [data-resize-wrapper]{display:inline-block}.content[data-v-94c86284] .tiptap-resize-handle{width:10px;height:10px;background:#1677ffd9;border-radius:2px;box-shadow:0 0 0 1px #fff;cursor:nwse-resize;z-index:4;opacity:0;pointer-events:none;transition:opacity .12s ease}.content[data-v-94c86284] .tiptap-resize-handle[data-resize-handle=top-left],.content[data-v-94c86284] .tiptap-resize-handle[data-resize-handle=bottom-right]{cursor:nwse-resize}.content[data-v-94c86284] .tiptap-resize-handle[data-resize-handle=top-right],.content[data-v-94c86284] .tiptap-resize-handle[data-resize-handle=bottom-left]{cursor:nesw-resize}.content[data-v-94c86284] .tiptap-resize-wrapper:hover .tiptap-resize-handle,.content[data-v-94c86284] .tiptap-resize-container[data-resize-state=true] .tiptap-resize-handle{opacity:1;pointer-events:auto}.content[data-v-94c86284] .tiptap-resize-wrapper:hover>img,.content[data-v-94c86284] .tiptap-resize-wrapper:hover>video{outline:2px solid var(--border-color);border-radius:4px}.content[data-v-94c86284] .tiptap-resize-wrapper{position:relative}.content[data-v-94c86284] .tiptap-resize-wrapper[data-uploading=true] .tiptap-upload-mask{pointer-events:auto}.content[data-v-94c86284] .tiptap-upload-mask{position:absolute;top:0;right:0;bottom:0;left:0;background:transparent;display:flex;align-items:center;justify-content:center;color:#1677ff;font-size:12px;border-radius:4px;opacity:0;pointer-events:none;transition:opacity .2s ease;z-index:2}.content[data-v-94c86284] .tiptap-resize-wrapper[data-uploading=true] .tiptap-upload-mask{opacity:1}.content[data-v-94c86284] .tiptap-upload-progress{width:66%;max-width:360px;height:6px;background:#0003;border-radius:4px;overflow:hidden;position:relative}.content[data-v-94c86284] .tiptap-upload-progress:before{content:"";position:absolute;left:-40%;width:40%;height:100%;background:#1677ff;border-radius:4px;animation:tiptap-upload-indeterminate-94c86284 1.1s ease-in-out infinite}@keyframes tiptap-upload-indeterminate-94c86284{0%{left:-40%}50%{left:60%}to{left:100%}}.content[data-v-94c86284] .tiptap-resize-container.is-resizing .tiptap-resize-handle{background:#1677ff}.content[data-v-94c86284] .ProseMirror table{border-collapse:collapse;margin:12px 0;width:100%}.content[data-v-94c86284] .ProseMirror table th,.content[data-v-94c86284] .ProseMirror table td{border:1px solid var(--border-color);padding:8px;text-align:left;position:relative}.content[data-v-94c86284] .ProseMirror table thead th{background:#f7f9fc;font-weight:600}.content .simple-editor.dark[data-v-94c86284] .ProseMirror table thead th{background:#111827}.content[data-v-94c86284] .ProseMirror table .selectedCell{background:#1677ff0f;outline:2px solid #1677ff;outline-offset:-2px}.content[data-v-94c86284] .ProseMirror table .column-resize-handle{position:absolute;right:-3px;top:0;bottom:0;width:8px;background:transparent;cursor:col-resize;z-index:3;-webkit-user-select:none;user-select:none;pointer-events:auto}.content[data-v-94c86284] .ProseMirror table .column-resize-handle:hover{background:#1677ff40}.content[data-v-94c86284] .ProseMirror p.is-editor-empty:first-child:before{content:attr(data-placeholder);color:#999;pointer-events:none;float:left;height:0;white-space:pre-line}.content[data-v-94c86284] code{background:var(--code-bg);padding:2px 4px;border-radius:4px}.content[data-v-94c86284] blockquote{border-left:3px solid #e5e7eb;margin:12px 0;padding:4px 12px;color:#6b7280}.content[data-v-94c86284] pre{background:var(--code-bg);padding:12px;border-radius:6px;border:1px solid var(--border-color);overflow:auto}.content[data-v-94c86284] p{margin:12px 0}[data-v-94c86284] .md-drag-handle{width:22px;height:22px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 2px 10px #00000014;background:#fff;border:1px solid var(--border-color);cursor:grab;z-index:5}[data-v-94c86284] .md-drag-handle:before{content:"···";letter-spacing:2px;color:#888;font-weight:700}@media (max-width: 900px){.editor_main[data-v-94c86284]{grid-template-columns:1fr}.outline-markers[data-v-94c86284]{display:none}}.link-modal-backdrop[data-v-94c86284]{position:fixed;top:0;right:0;bottom:0;left:0;background:#0003}.link-modal[data-v-94c86284]{position:fixed;left:50%;top:20%;transform:translate(-50%);z-index:1000}.link-modal__content[data-v-94c86284]{background:#fff;border:1px solid var(--border-color);border-radius:2px;min-width:360px;padding:12px;box-shadow:0 6px 24px #00000014}.simple-editor.dark .link-modal__content[data-v-94c86284]{background:#1f1f21;border-color:#334155;box-shadow:none;color:#e5e7eb}.link-modal__title[data-v-94c86284]{font-weight:600;margin-bottom:8px}.link-modal__input[data-v-94c86284]{width:100%;padding:8px;border:1px solid var(--border-color);border-radius:2px;margin-bottom:10px}.simple-editor.dark .link-modal__input[data-v-94c86284]{background:#0b1220;border-color:#334155;color:#e5e7eb}.link-modal__actions[data-v-94c86284]{display:flex;gap:8px;justify-content:flex-end}.link-modal__actions button[data-v-94c86284]{padding:6px 10px;border:1px solid var(--border-color);background:#fff;border-radius:2px;cursor:pointer}.simple-editor.dark .link-modal__actions button[data-v-94c86284]{background:#1f1f21;border-color:#334155;color:#e5e7eb}.tiptap-video[data-v-94c86284]{display:block;max-width:100%;height:auto}[data-format-brush=true] .ProseMirror{cursor:url("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='1763569611105'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='87406'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='18'%20height='18'%3e%3cpath%20d='M840%20192h-56v-72c0-13.3-10.7-24-24-24H168c-13.3%200-24%2010.7-24%2024v272c0%2013.3%2010.7%2024%2024%2024h592c13.3%200%2024-10.7%2024-24V256h32v200H465c-22.1%200-40%2017.9-40%2040v136h-44c-4.4%200-8%203.6-8%208v228c0%200.6%200.1%201.3%200.2%201.9-0.1%202-0.2%204.1-0.2%206.1%200%2046.4%2037.6%2084%2084%2084s84-37.6%2084-84c0-2.1-0.1-4.1-0.2-6.1%200.1-0.6%200.2-1.2%200.2-1.9V640c0-4.4-3.6-8-8-8h-44V520h351c22.1%200%2040-17.9%2040-40V232c0-22.1-17.9-40-40-40zM720%20352H208V160h512v192zM477%20876c0%2011-9%2020-20%2020s-20-9-20-20V696h40v180z'%20p-id='87407'%3e%3c/path%3e%3c/svg%3e") 0 16,crosshair}[data-format-brush=true] .ProseMirror *{cursor:inherit}`)),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
3
|
-
import { inject as xt, createVNode as r, defineComponent as st, ref as V, onMounted as
|
|
2
|
+
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(`.tooltip-wrapper[data-v-2e4633d5]{position:relative;display:inline-flex;align-items:center;line-height:0}.tooltip[data-v-2e4633d5]{position:fixed;transform:translate(-50%);background:#3c3c3cf2;color:#fff;border-radius:8px;padding:6px 8px;font-size:12px;line-height:1.2;box-shadow:0 6px 20px #0003;white-space:nowrap;opacity:0;visibility:hidden;transition:opacity .12s ease,visibility .12s ease;pointer-events:none;z-index:1000}.tooltip.visible[data-v-2e4633d5]{opacity:1;visibility:visible}.shortcut[data-v-2e4633d5]{display:inline-block;margin-top:4px;opacity:.9;z-index:1000}.font-size-wrapper[data-v-87f86dca]{position:relative;-webkit-user-select:none;user-select:none}.font-size-wrapper .icon[data-v-87f86dca]{cursor:pointer;width:27px;height:27px;border-radius:4px;display:flex;align-items:center;font-size:12px;transition:all .2s ease-in-out;position:relative;padding:0 6px;min-width:50px;justify-content:space-between;background:var(--bg-base)}.font-size-wrapper .icon[data-v-87f86dca]:hover{background:var(--hover-bg-color)}.font-size-wrapper .label[data-v-87f86dca]{font-size:15px}.dropdown[data-v-87f86dca]{position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%);min-width:160px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #00000014;z-index:10;-webkit-user-select:none;user-select:none;will-change:opacity,transform}.dropdown-slide-enter-from[data-v-87f86dca],.dropdown-slide-leave-to[data-v-87f86dca]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.dropdown-slide-enter-active[data-v-87f86dca],.dropdown-slide-leave-active[data-v-87f86dca]{transition:opacity .18s ease,transform .18s ease}.dropdown-item[data-v-87f86dca]{display:flex;align-items:center;gap:8px;padding:6px 12px;cursor:pointer;font-size:14px}.dropdown-item[data-v-87f86dca]:hover{background:var(--hover-bg-color)}.text[data-v-87f86dca]{flex:1}.color-select-wrapper[data-v-1656be6b]{position:relative;margin:0 4px;-webkit-user-select:none;user-select:none}.icon[data-v-1656be6b]{cursor:default;width:27px;height:27px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:16px;transition:all .2s ease-in-out;position:relative}.icon-dropdown[data-v-1656be6b]{width:auto;justify-content:space-between;background:var(--bg-base)}.icon-stack[data-v-1656be6b]{display:flex;flex-direction:column;align-items:center;line-height:1;border-radius:6px;padding:2px;cursor:pointer}.arrow[data-v-1656be6b]{display:flex;align-items:center;justify-content:center;width:16px;height:27px;border-radius:2px;cursor:pointer}.hoverable[data-v-1656be6b]:hover{background:var(--hover-bg-color)}.underline[data-v-1656be6b]{width:16px;height:2px;border-radius:2px;margin-top:2px;background:var(--bg-base)}.dropdown[data-v-1656be6b]{position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%);min-width:280px;max-width:320px;background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #00000014;padding:8px;z-index:20;will-change:opacity,transform;border:1px solid var(--border-color)}.dropdown-slide-enter-from[data-v-1656be6b],.dropdown-slide-leave-to[data-v-1656be6b]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.dropdown-slide-enter-active[data-v-1656be6b],.dropdown-slide-leave-active[data-v-1656be6b]{transition:opacity .18s ease,transform .18s ease}.section[data-v-1656be6b]{margin-bottom:8px}.section-title[data-v-1656be6b]{font-size:12px;margin-bottom:6px}.swatches[data-v-1656be6b]{display:flex;flex-wrap:wrap;gap:6px}.swatches.grid[data-v-1656be6b]{grid-template-columns:repeat(10,1fr)}.swatch[data-v-1656be6b]{width:18px;height:18px;border-radius:4px;cursor:pointer;position:relative;border:1px solid var(--border-color);display:flex;align-items:center;font-size:12px;justify-content:center}.swatch .check[data-v-1656be6b]{position:absolute;top:0;right:2px;font-size:12px;color:var(--text-base);text-shadow:0 1px 2px rgba(255,255,255,.8)}.inline-actions[data-v-1656be6b]{display:flex;justify-content:space-between;gap:8px}.btn[data-v-1656be6b]{padding:4px 8px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;cursor:pointer;font-size:12px;color:var(--text-base)}.advanced[data-v-1656be6b]{display:grid;grid-template-columns:auto 1fr auto;gap:4px;align-items:center;margin-top:8px}.hex[data-v-1656be6b]{border:1px solid var(--border-color);border-radius:2px;padding:4px 6px;font-size:12px}.apply[data-v-1656be6b]{justify-self:end;flex-shrink:1}.svg-icon[data-v-ee8563cd]{display:inline-block;line-height:0;vertical-align:middle}.svg-icon svg[data-v-ee8563cd]{width:1em;height:1em;display:block}.bg-color-select-wrapper[data-v-cb31218d]{position:relative;-webkit-user-select:none;user-select:none}.icon[data-v-cb31218d]{cursor:default;width:19px;height:19px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:16px;transition:all .2s ease-in-out;position:relative}.icon-dropdown[data-v-cb31218d]{width:auto;padding:0 2px;min-width:20px;justify-content:space-between;background:var(--bg-base)}.icon-stack[data-v-cb31218d]{display:flex;flex-direction:column;align-items:center;line-height:1;border-radius:6px;padding:2px;cursor:pointer}.arrow[data-v-cb31218d]{display:flex;align-items:center;justify-content:center;width:16px;height:27px;border-radius:4px;cursor:pointer}.hoverable[data-v-cb31218d]:hover{background:var(--hover-bg-color)}.underline[data-v-cb31218d]{width:16px;height:2px;border-radius:2px;margin-top:2px;background:var(--bg-base)}.dropdown[data-v-cb31218d]{position:absolute;top:calc(100% + 12px);left:50%;transform:translate(-50%);min-width:280px;max-width:320px;background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #00000014;padding:8px;z-index:20;will-change:opacity,transform;border:1px solid var(--border-color)}.section[data-v-cb31218d]{margin-bottom:8px}.section-title[data-v-cb31218d]{font-size:12px;margin-bottom:6px}.swatches[data-v-cb31218d]{display:flex;flex-wrap:wrap;gap:6px}.swatches.grid[data-v-cb31218d]{grid-template-columns:repeat(10,1fr)}.swatch[data-v-cb31218d]{width:18px;height:18px;border-radius:4px;cursor:pointer;position:relative;border:1px solid rgba(0,0,0,.08);display:flex;align-items:center;font-size:12px;justify-content:center}.swatch .check[data-v-cb31218d]{position:absolute;top:0;right:2px;font-size:12px;color:#000;text-shadow:0 1px 2px rgba(255,255,255,.8)}.inline-actions[data-v-cb31218d]{display:flex;justify-content:space-between;gap:8px}.btn[data-v-cb31218d]{padding:4px 8px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;cursor:pointer;font-size:12px;color:var(--text-base)}.advanced[data-v-cb31218d]{display:grid;grid-template-columns:auto 1fr auto;gap:4px;align-items:center;margin-top:8px}.hex[data-v-cb31218d]{border:1px solid var(--border-color);border-radius:2px;padding:4px 6px;font-size:12px}.apply[data-v-cb31218d]{justify-self:end;flex-shrink:1}.dropdown-slide-enter-from[data-v-cb31218d],.dropdown-slide-leave-to[data-v-cb31218d]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.dropdown-slide-enter-active[data-v-cb31218d],.dropdown-slide-leave-active[data-v-cb31218d]{transition:opacity .18s ease,transform .18s ease}.image-icon[data-v-ea99876b]{position:relative}.image-input-panel[data-v-ea99876b]{position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%);min-width:320px;padding:10px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #0000001f;z-index:20;will-change:opacity,transform}.image-input[data-v-ea99876b]{width:100%;padding:8px 10px;box-sizing:border-box;max-width:100%;border:1px solid var(--border-color);border-radius:4px;outline:none;font-size:14px;background-color:var(--bg-input);color:var(--text-base)}.image-actions[data-v-ea99876b]{margin-top:8px;display:flex;gap:8px;justify-content:flex-end}.btn[data-v-ea99876b]{padding:6px 10px;border-radius:2px;border:1px solid var(--border-color);background:var(--bg-base);cursor:pointer;font-size:13px;color:var(--text-base)}.btn[data-v-ea99876b]:hover{background:var(--hover-bg-color)}.btn-primary[data-v-ea99876b]{border:none;background:#1677ff;color:var(--text-base)}.btn-primary[data-v-ea99876b]:hover{background:#1677ff;opacity:.92}.img-panel-enter-active[data-v-ea99876b],.img-panel-leave-active[data-v-ea99876b]{transition:opacity .18s ease,transform .18s ease}.img-panel-enter-from[data-v-ea99876b],.img-panel-leave-to[data-v-ea99876b]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.img-panel-enter-to[data-v-ea99876b],.img-panel-leave-from[data-v-ea99876b]{opacity:1;transform:translate(-50%) translateY(0) scale(1)}.video-icon[data-v-77dd3e96]{position:relative}.video-input-panel[data-v-77dd3e96]{position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%);min-width:320px;padding:10px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #0000001f;z-index:20;will-change:opacity,transform}.video-input[data-v-77dd3e96]{width:100%;padding:8px 10px;box-sizing:border-box;max-width:100%;border:1px solid var(--border-color);border-radius:2px;outline:none;font-size:14px;background-color:var(--bg-input);color:var(--text-base)}.video-actions[data-v-77dd3e96]{margin-top:8px;display:flex;gap:8px;justify-content:flex-end}.btn[data-v-77dd3e96]{padding:6px 10px;border-radius:2px;border:1px solid var(--border-color);background:var(--bg-base);cursor:pointer;font-size:13px;color:var(--text-base)}.btn[data-v-77dd3e96]:hover{background:var(--hover-bg-color)}.btn-primary[data-v-77dd3e96]{border:none;background:#1677ff;color:var(--text-base)}.btn-primary[data-v-77dd3e96]:hover{background:#1677ff;opacity:.92}.video-panel-enter-active[data-v-77dd3e96],.video-panel-leave-active[data-v-77dd3e96]{transition:opacity .18s ease,transform .18s ease}.video-panel-enter-from[data-v-77dd3e96],.video-panel-leave-to[data-v-77dd3e96]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.video-panel-enter-to[data-v-77dd3e96],.video-panel-leave-from[data-v-77dd3e96]{opacity:1;transform:translate(-50%) translateY(0) scale(1)}.find-icon[data-v-5433b285]{position:relative}.find-input-panel[data-v-5433b285]{position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%);min-width:320px;padding:10px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #0000001f;z-index:20;will-change:opacity,transform}.fr-header[data-v-5433b285]{display:flex;align-items:center;gap:6px;margin-bottom:6px}.fr-tab[data-v-5433b285]{border:none;background:transparent;padding:6px 8px;cursor:pointer;border-bottom:2px solid transparent;color:var(--text-base)}.fr-tab.active[data-v-5433b285]{border-color:#1a69f8;font-weight:600}.fr-label[data-v-5433b285]{display:block;font-size:12px;margin:6px 0 4px}.fr-input-row[data-v-5433b285]{display:flex;align-items:center;gap:6px;width:100%}.fr-input[data-v-5433b285]{flex:1;padding:8px;border:1px solid var(--border-color);border-radius:2px;background-color:var(--bg-input);color:var(--text-base);outline:none}.fr-count[data-v-5433b285]{font-size:12px}.fr-actions[data-v-5433b285]{display:flex;gap:8px;margin-top:10px;justify-content:flex-end}.fr-btn[data-v-5433b285]{padding:6px 10px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;cursor:pointer;color:var(--text-base)}.fr-btn.primary[data-v-5433b285]{color:var(--text-base);background:#1a69f8;border-color:#1a69f8}.find-panel-enter-active[data-v-5433b285],.find-panel-leave-active[data-v-5433b285]{transition:opacity .18s ease,transform .18s ease}.find-panel-enter-from[data-v-5433b285],.find-panel-leave-to[data-v-5433b285]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.find-panel-enter-to[data-v-5433b285],.find-panel-leave-from[data-v-5433b285]{opacity:1;transform:translate(-50%) translateY(0) scale(1)}.link-icon[data-v-db61d34c]{position:relative}.link-input-panel[data-v-db61d34c]{position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%);min-width:320px;padding:10px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #0000001f;z-index:20;will-change:opacity,transform}.field[data-v-db61d34c]{margin-bottom:8px}.label[data-v-db61d34c]{font-size:12px;color:#666;margin-bottom:6px}.input[data-v-db61d34c]{width:100%;padding:8px 10px;box-sizing:border-box;max-width:100%;border:1px solid var(--border-color);border-radius:2px;outline:none;font-size:14px;background-color:var(--bg-input);color:var(--text-base)}.actions[data-v-db61d34c]{display:flex;justify-content:flex-end;gap:8px}.btn[data-v-db61d34c]{padding:6px 10px;border-radius:2px;border:1px solid var(--border-color);background:#fff;cursor:pointer;font-size:13px}.btn-primary[data-v-db61d34c]{border:none;background:#1677ff;color:#fff}.btn-primary[data-v-db61d34c]:hover{background:#1677ff;opacity:.92}.link-panel-enter-active[data-v-db61d34c],.link-panel-leave-active[data-v-db61d34c]{transition:opacity .18s ease,transform .18s ease}.link-panel-enter-from[data-v-db61d34c],.link-panel-leave-to[data-v-db61d34c]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.link-panel-enter-to[data-v-db61d34c],.link-panel-leave-from[data-v-db61d34c]{opacity:1;transform:translate(-50%) translateY(0) scale(1)}.table-icon[data-v-d0d98332]{position:relative}.table-panel[data-v-d0d98332]{position:absolute;top:32px;right:0;min-width:220px;padding:10px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #0000001f;z-index:20}.panel-title[data-v-d0d98332]{font-size:12px;margin-bottom:6px}.grid[data-v-d0d98332]{display:flex;flex-direction:column;gap:4px;background:var(--bg-base);border-radius:2px}.row[data-v-d0d98332]{display:flex;gap:4px}.cell[data-v-d0d98332]{width:18px;height:18px;background:var(--bg-base);border:1px solid var(--border-color);border-radius:3px;cursor:pointer}.cell.active[data-v-d0d98332]{background:#e8f1ff;border-color:#1677ff}.size[data-v-d0d98332]{margin-top:6px;font-size:12px}.table-tools[data-v-1aa3a259]{position:relative}.tools-panel[data-v-1aa3a259]{position:absolute;top:32px;right:0;min-width:280px;padding:10px;background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #0000001f;z-index:20;border:1px solid var(--border-color)}.tools-grid[data-v-1aa3a259]{display:grid;grid-template-columns:1fr 1fr;gap:8px}.btn[data-v-1aa3a259]{padding:6px 10px;border-radius:2px;border:1px solid var(--border-color);background:var(--bg-base);cursor:pointer;font-size:13px;color:var(--text-base)}.icon[data-v-0a1c80da]{cursor:default;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:all .2s ease-in-out;position:relative}.icon[data-v-0a1c80da]:hover{background:#0000000d}.icon[data-v-dcd9c3cd]{cursor:pointer;width:27px;height:27px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:16px;transition:all .2s ease-in-out;position:relative}.icon[data-v-dcd9c3cd]:hover{background:#0000000d}.heading-select[data-v-b93823aa]{position:relative;margin:0 4px;-webkit-user-select:none;user-select:none;word-break:keep-all}.icon[data-v-b93823aa]{cursor:pointer;height:27px;border-radius:4px;display:flex;align-items:center;font-size:12px;transition:all .2s ease-in-out;position:relative;padding:0 6px;min-width:52px;justify-content:space-between;background:var(--bg-base)}.icon[data-v-b93823aa]:hover{background:var(--hover-bg-color)}.label[data-v-b93823aa]{font-size:15px;color:var(--text-base)}.dropdown[data-v-b93823aa]{position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%);min-width:220px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #00000014;z-index:10;-webkit-user-select:none;user-select:none;will-change:opacity,transform}.dropdown-slide-enter-from[data-v-b93823aa],.dropdown-slide-leave-to[data-v-b93823aa]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.dropdown-slide-enter-active[data-v-b93823aa],.dropdown-slide-leave-active[data-v-b93823aa]{transition:opacity .18s ease,transform .18s ease}.dropdown-item[data-v-b93823aa]{display:flex;align-items:center;gap:8px;padding:10px 12px;cursor:pointer;font-size:14px}.dropdown-item[data-v-b93823aa]:hover{background:#0000000d}.item-label[data-v-b93823aa]{flex:1}.item-label.paragraph[data-v-b93823aa]{font-size:15px}.item-label.level-1[data-v-b93823aa]{font-size:22px;font-weight:600}.item-label.level-2[data-v-b93823aa]{font-size:20px;font-weight:600}.item-label.level-3[data-v-b93823aa]{font-size:18px;font-weight:600}.item-label.level-4[data-v-b93823aa]{font-size:16px}.item-label.level-5[data-v-b93823aa]{font-size:15px}.item-label.level-6[data-v-b93823aa]{font-size:14px}.shortcut[data-v-b93823aa]{font-size:12px}.align-select[data-v-b321e2b4]{position:relative;margin:0 2px;-webkit-user-select:none;user-select:none;word-break:keep-all}.icon_box[data-v-b321e2b4]{cursor:pointer;height:27px;border-radius:4px;display:flex;align-items:center;justify-content:space-between;transition:all .2s ease-in-out;padding:0 6px;background:var(--bg-base);gap:3px}.icon_box[data-v-b321e2b4]:hover{background:var(--hover-bg-color)}.dropdown[data-v-b321e2b4]{position:absolute;top:calc(100% + 8px);left:50%;transform:translate(-50%);min-width:160px;border:1px solid var(--border-color);background:var(--bg-base);border-radius:2px;box-shadow:0 6px 24px #00000014;z-index:10;-webkit-user-select:none;user-select:none;will-change:opacity,transform;padding:6px}.dropdown-slide-enter-from[data-v-b321e2b4],.dropdown-slide-leave-to[data-v-b321e2b4]{opacity:0;transform:translate(-50%) translateY(-6px) scale(.98)}.dropdown-slide-enter-active[data-v-b321e2b4],.dropdown-slide-leave-active[data-v-b321e2b4]{transition:opacity .18s ease,transform .18s ease}.options[data-v-b321e2b4]{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.option[data-v-b321e2b4]{cursor:pointer;width:27px;height:27px;border-radius:6px;display:flex;align-items:center;justify-content:center}.option[data-v-b321e2b4]:hover,.option.active[data-v-b321e2b4]{background:var(--hover-bg-color)}.theme-wrapper[data-v-e09fa6a6]{margin-right:4px;display:flex;align-items:center;justify-content:center;border-radius:50%;width:28px;height:28px;cursor:pointer}.theme-wrapper[data-v-e09fa6a6]:hover{background-color:var(--hover-bg-color)}.theme-wrapper .icon-box[data-v-e09fa6a6]{display:flex;align-items:center;justify-content:center;cursor:pointer}.theme-wrapper .icon-box:hover svg[data-v-e09fa6a6]{opacity:.8}.theme-wrapper .icon-box svg[data-v-e09fa6a6]{width:18px;height:18px}.theme-icon-enter-active[data-v-e09fa6a6],.theme-icon-leave-active[data-v-e09fa6a6]{transition:opacity .16s ease,transform .16s ease}.theme-icon-enter-from[data-v-e09fa6a6],.theme-icon-leave-to[data-v-e09fa6a6]{opacity:.4;transform:scale(.85) rotate(-8deg)}.theme-icon-enter-to[data-v-e09fa6a6],.theme-icon-leave-from[data-v-e09fa6a6]{opacity:1;transform:scale(1) rotate(0)}.header_box[data-v-1d764638]{display:flex;align-items:center;gap:3px;padding:8px;border-bottom:1px solid var(--border-color);color:var(--text-base)}.header_box.disabled[data-v-1d764638]{pointer-events:none;opacity:.5}.header_box .icon[data-v-1d764638]{position:relative;cursor:pointer;width:27px;height:27px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:16px;color:var(--text-base);transition:all .2s ease-in-out}.header_box .icon[data-v-1d764638]:hover,.header_box .icon.active[data-v-1d764638]{background:var(--hover-bg-color)}.header_box .icon[aria-disabled=true][data-v-1d764638]{cursor:not-allowed;opacity:.5}.outline-wrapper[data-v-06818a86]{position:relative;-webkit-user-select:none;user-select:none}.outline[data-v-06818a86]{border-left:1px solid var(--border-color);padding:8px;box-sizing:border-box;font-size:14px;position:sticky;top:0;align-self:start;height:100%;background:var(--bg-base);display:flex;flex-direction:column;width:0;opacity:0;overflow:hidden;transform:scaleX(0);transform-origin:right center;transition:width .2s ease,transform .2s ease,opacity .2s ease;border-left:none}.outline.isOpen[data-v-06818a86]{width:240px;opacity:1;transform:scaleX(1);border-left:1px solid var(--border-color)}.outline__listWrap[data-v-06818a86]{overflow-y:auto;overflow-x:hidden;flex:1 1 auto;min-height:0}.outline__listWrap[data-v-06818a86]::-webkit-scrollbar{width:6px;height:1px}.outline__listWrap[data-v-06818a86]::-webkit-scrollbar-thumb{border-radius:10px;box-shadow:inset 0 0 5px #1118181a;background:#787878}.outline__listWrap[data-v-06818a86]::-webkit-scrollbar-track{border-radius:10px;background:transparent}.outline__header[data-v-06818a86]{display:flex;align-items:center;font-weight:600;margin-bottom:8px;color:var(--text-base)}.outline__header[data-v-06818a86]>*{display:inline-flex;gap:6px}.outline__list[data-v-06818a86]{list-style:none;padding:0;margin:0}.outline__item[data-v-06818a86]{cursor:pointer;padding:4px 0;color:var(--text-base)}.outline__caret[data-v-06818a86]{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-right:4px;color:#666;transition:transform .12s ease}.outline.dark .outline__caret[data-v-06818a86]{color:#94a3b8}.outline__caret.collapsed[data-v-06818a86]{transform:rotate(0)}.outline__caret.expanded[data-v-06818a86]{transform:rotate(90deg)}.outline__item[data-v-06818a86]:hover{color:#1a69f8}.outline.dark .outline__item[data-v-06818a86]:hover{color:#22c55e}.outline__item.lv-1[data-v-06818a86]{padding-left:0}.outline__item.lv-2[data-v-06818a86]{padding-left:8px}.outline__item.lv-3[data-v-06818a86]{padding-left:16px}.outline__item.lv-4[data-v-06818a86]{padding-left:24px}.outline__item.lv-5[data-v-06818a86]{padding-left:32px}.outline__item.lv-6[data-v-06818a86]{padding-left:40px}.outline__text[data-v-06818a86]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.outline__close[data-v-06818a86]{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border-color);background:#fff;border-radius:50%;box-shadow:0 2px 10px #00000014;color:#666;cursor:pointer}.outline.dark .outline__close[data-v-06818a86]{background:#1f1f21;border-color:#334155;color:#94a3b8;box-shadow:none}.outline__close[data-v-06818a86]:hover{color:var(--hover-text-color)}.outline__title[data-v-06818a86]{display:inline-flex;align-items:center;gap:6px}.outline__pinIcon[data-v-06818a86]{display:inline-flex;width:16px;height:16px;color:#666;cursor:pointer}.outline-drawer-mask[data-v-06818a86]{display:none}@media (max-width: 900px){.outline[data-v-06818a86]{position:absolute;right:0;top:0;bottom:0;width:0;max-width:85vw;box-shadow:-6px 0 24px #00000014;z-index:10}.outline.isOpen[data-v-06818a86]{width:min(85vw,280px)}.outline-drawer-mask[data-v-06818a86]{display:block;position:absolute;left:0;right:0;top:0;bottom:0;background:#00000029;z-index:10}}.outline-slide-enter-active[data-v-06818a86],.outline-slide-leave-active[data-v-06818a86]{transition:transform .18s ease,opacity .18s ease}.outline-slide-enter-from[data-v-06818a86],.outline-slide-leave-to[data-v-06818a86]{opacity:0;transform:translate(16px)}@media (max-width: 900px){.outline-slide-enter-from[data-v-06818a86],.outline-slide-leave-to[data-v-06818a86]{transform:translate(100%)}}.outline-mask-enter-active[data-v-06818a86],.outline-mask-leave-active[data-v-06818a86]{transition:opacity .18s ease}.outline-mask-enter-from[data-v-06818a86],.outline-mask-leave-to[data-v-06818a86]{opacity:0}.v-md-editor-wrapper[data-v-39599b71]{height:var(--editor-height, auto);min-height:var(--editor-min-height, 100px);display:flex;flex-direction:column;border-radius:2px;background:var(--bg-base);box-sizing:border-box;border:1px solid var(--border-color)}.v-md-editor-wrapper .fullscreen[data-v-39599b71]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;border-radius:0}.v-md-editor-wrapper.readonly[data-v-39599b71] .tiptap-resize-handle{pointer-events:none;display:none}.v-md-editor-wrapper.readonly[data-v-39599b71] img,.v-md-editor-wrapper.readonly[data-v-39599b71] video{-webkit-user-drag:none}.v-md-editor-wrapper.readonly[data-v-39599b71] .tiptap-resize-wrapper,.v-md-editor-wrapper.readonly[data-v-39599b71] .tiptap-resize-container{outline:none!important;border:none!important;width:100%!important;max-width:100%!important}.v-md-editor-wrapper.readonly[data-v-39599b71] .tiptap-video{width:100%!important;max-width:100%!important}.editor_wrapper[data-v-39599b71]{position:relative;overflow-y:auto;overflow-x:hidden;align-items:stretch;flex:1 1 auto;min-height:0}.editor_wrapper[data-v-39599b71]::-webkit-scrollbar{width:6px;height:1px}.editor_wrapper[data-v-39599b71]::-webkit-scrollbar-thumb{border-radius:10px;box-shadow:inset 0 0 5px #1118181a;background:#787878}.editor_wrapper[data-v-39599b71]::-webkit-scrollbar-track{border-radius:10px;background:transparent}.editor_main[data-v-39599b71]{display:grid;grid-template-columns:1fr auto;align-items:stretch;flex:1 1 auto;min-height:0;position:relative}.outline-toggle-row[data-v-39599b71]{position:sticky;top:12px;z-index:3;display:flex;justify-content:flex-end;padding-right:12px}.outline-markers[data-v-39599b71]{position:absolute;right:0;top:0;bottom:0;width:18px;z-index:4}.outline-pin[data-v-39599b71]{position:absolute;right:3px;top:8px;width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border-color);background:#fff;border-radius:50%;box-shadow:0 2px 10px #00000014;color:#666;cursor:pointer}.outline-marker[data-v-39599b71]{position:absolute;right:3px;width:12px;height:2px;background:#d0d5dd;border-radius:2px}.outline-marker.active[data-v-39599b71]{background:#22c55e}.content[data-v-39599b71]{padding:12px 24px;color:var(--text-base)}.content[data-v-39599b71] img{max-width:100%;height:auto;display:inline-block}.content[data-v-39599b71] .ProseMirror{outline:none;caret-color:var(--editor-caret-color)}.content[data-v-39599b71] .tiptap-resize-container,.content[data-v-39599b71] .tiptap-resize-wrapper{max-width:100%!important;box-sizing:border-box}.content[data-v-39599b71] .tiptap-video{max-width:100%!important;height:auto!important;display:block}.content[data-v-39599b71] .drag-hover-target{background:#eef5ff;border-radius:8px}.content[data-v-39599b71] ul[data-type=taskList]{list-style:none;padding-left:0;margin:12px 0}.content[data-v-39599b71] ul[data-type=taskList] li[data-type=taskItem]{display:flex;align-items:flex-start;gap:8px;margin:6px 0}.content[data-v-39599b71] ul[data-type=taskList] li[data-type=taskItem] .todo-box{width:16px;height:16px;border-radius:4px;border:1px solid var(--border-color);background:#fff;box-shadow:inset 0 1px 2px #0000000f;margin-top:2px;flex-shrink:0;cursor:pointer;position:relative;display:inline-flex;align-items:center;justify-content:center;transition:background-color .16s ease,border-color .16s ease}.content[data-v-39599b71] ul[data-type=taskList] li[data-type=taskItem] .todo-box:after{content:"✓";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(.3);opacity:0;color:#fff;font-size:12px;font-weight:700;transition:transform .18s ease,opacity .18s ease;animation:todo-check-out-39599b71 .18s ease both}.content[data-v-39599b71] ul[data-type=taskList] li[data-type=taskItem][data-checked=true] .todo-box{background:#22c55e;border-color:#22c55e}.content[data-v-39599b71] ul[data-type=taskList] li[data-type=taskItem][data-checked=true] .todo-box:after{transform:translate(-50%,-50%) scale(1);opacity:1;animation:todo-check-in-39599b71 .22s cubic-bezier(.2,.7,.3,1.2) both}.content[data-v-39599b71] ul[data-type=taskList] li[data-type=taskItem] .todo-box:focus{outline:2px solid #1677ff44}@keyframes todo-check-in-39599b71{0%{transform:translate(-50%,-50%) scale(.3);opacity:0}60%{transform:translate(-50%,-50%) scale(1.15);opacity:1}to{transform:translate(-50%,-50%) scale(1);opacity:1}}@keyframes todo-check-out-39599b71{0%{transform:translate(-50%,-50%) scale(1);opacity:1}to{transform:translate(-50%,-50%) scale(.3);opacity:0}}.content[data-v-39599b71] ul[data-type=taskList] li[data-type=taskItem]>label,.content[data-v-39599b71] ul[data-type=taskList] li[data-type=taskItem] .task-item__label{display:inline-flex;align-items:center;margin-right:6px}.content[data-v-39599b71] ul[data-type=taskList] li[data-type=taskItem] input[type=checkbox]{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto;position:static;opacity:1;pointer-events:auto;width:16px;height:16px;border-radius:4px;border:1px solid var(--border-color);margin-top:2px}.content[data-v-39599b71] ul[data-type=taskList] li[data-type=taskItem][data-checked=true] input[type=checkbox]{accent-color:#22c55e}.content[data-v-39599b71] ul[data-type=taskList] li[data-type=taskItem] .task-content,.content[data-v-39599b71] ul[data-type=taskList] li[data-type=taskItem] .task-item__content{flex:1;min-width:1px}.content[data-v-39599b71] ul[data-type=taskList] li[data-type=taskItem] .task-content p,.content[data-v-39599b71] ul[data-type=taskList] li[data-type=taskItem] .task-item__content p{margin:0}.content[data-v-39599b71] img.ProseMirror-selectednode{outline:2px solid var(--border-color);border-radius:4px}.content[data-v-39599b71] [data-resize-wrapper]{display:inline-block}.content[data-v-39599b71] .tiptap-resize-handle{width:10px;height:10px;background:#1677ffd9;border-radius:2px;box-shadow:0 0 0 1px #fff;cursor:nwse-resize;z-index:4;opacity:0;pointer-events:none;transition:opacity .12s ease}.content[data-v-39599b71] .tiptap-resize-handle[data-resize-handle=top-left],.content[data-v-39599b71] .tiptap-resize-handle[data-resize-handle=bottom-right]{cursor:nwse-resize}.content[data-v-39599b71] .tiptap-resize-handle[data-resize-handle=top-right],.content[data-v-39599b71] .tiptap-resize-handle[data-resize-handle=bottom-left]{cursor:nesw-resize}.content[data-v-39599b71] .tiptap-resize-wrapper:hover .tiptap-resize-handle,.content[data-v-39599b71] .tiptap-resize-container[data-resize-state=true] .tiptap-resize-handle{opacity:1;pointer-events:auto}.content[data-v-39599b71] .tiptap-resize-wrapper:hover>img,.content[data-v-39599b71] .tiptap-resize-wrapper:hover>video{outline:2px solid var(--border-color);border-radius:4px}.content[data-v-39599b71] .tiptap-resize-wrapper{position:relative}.content[data-v-39599b71] .tiptap-resize-wrapper[data-uploading=true] .tiptap-upload-mask{pointer-events:auto}.content[data-v-39599b71] .tiptap-upload-mask{position:absolute;top:0;right:0;bottom:0;left:0;background:transparent;display:flex;align-items:center;justify-content:center;color:#1677ff;font-size:12px;border-radius:4px;opacity:0;pointer-events:none;transition:opacity .2s ease;z-index:2}.content[data-v-39599b71] .tiptap-resize-wrapper[data-uploading=true] .tiptap-upload-mask{opacity:1}.content[data-v-39599b71] .tiptap-upload-progress{width:66%;max-width:360px;height:6px;background:#0003;border-radius:4px;overflow:hidden;position:relative}.content[data-v-39599b71] .tiptap-upload-progress:before{content:"";position:absolute;left:-40%;width:40%;height:100%;background:#1677ff;border-radius:4px;animation:tiptap-upload-indeterminate-39599b71 1.1s ease-in-out infinite}@keyframes tiptap-upload-indeterminate-39599b71{0%{left:-40%}50%{left:60%}to{left:100%}}.content[data-v-39599b71] .tiptap-resize-container.is-resizing .tiptap-resize-handle{background:#1677ff}.content[data-v-39599b71] .ProseMirror table{border-collapse:collapse;margin:12px 0;width:100%}.content[data-v-39599b71] .ProseMirror table th,.content[data-v-39599b71] .ProseMirror table td{border:1px solid var(--border-color);padding:8px;text-align:left;position:relative}.content[data-v-39599b71] .ProseMirror table thead th{background:#f7f9fc;font-weight:600}.content .v-md-editor-wrapper.dark[data-v-39599b71] .ProseMirror table thead th{background:#111827}.content[data-v-39599b71] .ProseMirror table .selectedCell{background:#1677ff0f;outline:2px solid #1677ff;outline-offset:-2px}.content[data-v-39599b71] .ProseMirror table .column-resize-handle{position:absolute;right:-3px;top:0;bottom:0;width:8px;background:transparent;cursor:col-resize;z-index:3;-webkit-user-select:none;user-select:none;pointer-events:auto}.content[data-v-39599b71] .ProseMirror table .column-resize-handle:hover{background:#1677ff40}.content[data-v-39599b71] .ProseMirror p.is-editor-empty:first-child:before{content:attr(data-placeholder);color:#999;pointer-events:none;float:left;height:0;white-space:pre-line}.content[data-v-39599b71] code{background:var(--code-bg);padding:2px 4px;border-radius:4px}.content[data-v-39599b71] blockquote{border-left:3px solid #e5e7eb;margin:12px 0;padding:4px 12px;color:#6b7280}.content[data-v-39599b71] pre{background:var(--code-bg);padding:12px;border-radius:6px;border:1px solid var(--border-color);overflow:auto}.content[data-v-39599b71] p{margin:12px 0}[data-v-39599b71] .md-drag-handle{width:22px;height:22px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 2px 10px #00000014;background:#fff;border:1px solid var(--border-color);cursor:grab;z-index:5}[data-v-39599b71] .md-drag-handle:before{content:"···";letter-spacing:2px;color:#888;font-weight:700}@media (max-width: 900px){.editor_main[data-v-39599b71]{grid-template-columns:1fr}.outline-markers[data-v-39599b71]{display:none}}.link-modal-backdrop[data-v-39599b71]{position:fixed;top:0;right:0;bottom:0;left:0;background:#0003}.link-modal[data-v-39599b71]{position:fixed;left:50%;top:20%;transform:translate(-50%);z-index:1000}.link-modal__content[data-v-39599b71]{background:#fff;border:1px solid var(--border-color);border-radius:2px;min-width:360px;padding:12px;box-shadow:0 6px 24px #00000014}.v-md-editor-wrapper.dark .link-modal__content[data-v-39599b71]{background:#1f1f21;border-color:#334155;box-shadow:none;color:#e5e7eb}.link-modal__title[data-v-39599b71]{font-weight:600;margin-bottom:8px}.link-modal__input[data-v-39599b71]{width:100%;padding:8px;border:1px solid var(--border-color);border-radius:2px;margin-bottom:10px}.v-md-editor-wrapper.dark .link-modal__input[data-v-39599b71]{background:#0b1220;border-color:#334155;color:#e5e7eb}.link-modal__actions[data-v-39599b71]{display:flex;gap:8px;justify-content:flex-end}.link-modal__actions button[data-v-39599b71]{padding:6px 10px;border:1px solid var(--border-color);background:#fff;border-radius:2px;cursor:pointer}.v-md-editor-wrapper.dark .link-modal__actions button[data-v-39599b71]{background:#1f1f21;border-color:#334155;color:#e5e7eb}.tiptap-video[data-v-39599b71]{display:block;max-width:100%;height:auto}[data-format-brush=true] .ProseMirror{cursor:url("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='1763569611105'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='87406'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='18'%20height='18'%3e%3cpath%20d='M840%20192h-56v-72c0-13.3-10.7-24-24-24H168c-13.3%200-24%2010.7-24%2024v272c0%2013.3%2010.7%2024%2024%2024h592c13.3%200%2024-10.7%2024-24V256h32v200H465c-22.1%200-40%2017.9-40%2040v136h-44c-4.4%200-8%203.6-8%208v228c0%200.6%200.1%201.3%200.2%201.9-0.1%202-0.2%204.1-0.2%206.1%200%2046.4%2037.6%2084%2084%2084s84-37.6%2084-84c0-2.1-0.1-4.1-0.2-6.1%200.1-0.6%200.2-1.2%200.2-1.9V640c0-4.4-3.6-8-8-8h-44V520h351c22.1%200%2040-17.9%2040-40V232c0-22.1-17.9-40-40-40zM720%20352H208V160h512v192zM477%20876c0%2011-9%2020-20%2020s-20-9-20-20V696h40v180z'%20p-id='87407'%3e%3c/path%3e%3c/svg%3e") 0 16,crosshair}[data-format-brush=true] .ProseMirror *{cursor:inherit}`)),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
3
|
+
import { inject as xt, createVNode as r, defineComponent as st, ref as V, onMounted as ht, onUnmounted as ie, watch as gt, nextTick as Mt, createElementBlock as j, openBlock as B, renderSlot as re, createBlock as zt, Teleport as ae, createElementVNode as l, normalizeStyle as pt, normalizeClass as J, createCommentVNode as Z, toDisplayString as kt, computed as ct, onBeforeUnmount as wt, unref as p, withCtx as N, withModifiers as I, Transition as _t, Fragment as yt, renderList as bt, withDirectives as $t, vModelText as St, useAttrs as ce, resolveDynamicComponent as de } from "vue";
|
|
4
4
|
import { Editor as ue, EditorContent as ve } from "@tiptap/vue-3";
|
|
5
5
|
import { StarterKit as fe } from "@tiptap/starter-kit";
|
|
6
6
|
import { Markdown as pe } from "@tiptap/markdown";
|
|
@@ -58,11 +58,11 @@ const Me = he.extend({
|
|
|
58
58
|
},
|
|
59
59
|
onCommit: (v, M) => {
|
|
60
60
|
try {
|
|
61
|
-
const _ = o,
|
|
62
|
-
if (
|
|
63
|
-
const { state: x } = _, $ = x.schema.nodes.image, C = x.doc.nodeAt(
|
|
61
|
+
const _ = o, h = c();
|
|
62
|
+
if (h !== void 0) {
|
|
63
|
+
const { state: x } = _, $ = x.schema.nodes.image, C = x.doc.nodeAt(h);
|
|
64
64
|
if ($ && C) {
|
|
65
|
-
const d = { ...C.attrs || {}, width: v, height: M }, a = x.tr.setNodeMarkup(
|
|
65
|
+
const d = { ...C.attrs || {}, width: v, height: M }, a = x.tr.setNodeMarkup(h, $, d, C.marks);
|
|
66
66
|
_.view.dispatch(a);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -194,7 +194,7 @@ const $e = ((ne = Rt == null ? void 0 : Rt.Node) == null ? void 0 : ne.create) ?
|
|
|
194
194
|
},
|
|
195
195
|
addNodeView() {
|
|
196
196
|
return ({ node: t, getPos: c, editor: o }) => {
|
|
197
|
-
var v, M, _,
|
|
197
|
+
var v, M, _, h, x;
|
|
198
198
|
const e = document.createElement("video"), i = t.attrs;
|
|
199
199
|
e.src = i.src || "", e.controls = i.controls !== !1, e.autoplay = !1, e.loop = !!i.loop, e.muted = !!i.muted, i.poster && (e.poster = i.poster), e.setAttribute("playsinline", "true"), i.class && (e.className = String(i.class)), typeof i.width == "number" && (e.style.width = `${i.width}px`), typeof i.height == "number" && (e.style.height = `${i.height}px`), e.style.display = "inline-block";
|
|
200
200
|
const n = new se({
|
|
@@ -208,9 +208,9 @@ const $e = ((ne = Rt == null ? void 0 : Rt.Node) == null ? void 0 : ne.create) ?
|
|
|
208
208
|
try {
|
|
209
209
|
const d = o, a = c();
|
|
210
210
|
if (a !== void 0) {
|
|
211
|
-
const { state: w } = d, k = w.schema.nodes.video,
|
|
212
|
-
if (k &&
|
|
213
|
-
const D = { ...
|
|
211
|
+
const { state: w } = d, k = w.schema.nodes.video, m = w.doc.nodeAt(a);
|
|
212
|
+
if (k && m) {
|
|
213
|
+
const D = { ...m.attrs || {}, width: $, height: C }, A = w.tr.setNodeMarkup(a, k, D, m.marks);
|
|
214
214
|
d.view.dispatch(A);
|
|
215
215
|
}
|
|
216
216
|
}
|
|
@@ -251,7 +251,7 @@ const $e = ((ne = Rt == null ? void 0 : Rt.Node) == null ? void 0 : ne.create) ?
|
|
|
251
251
|
}
|
|
252
252
|
});
|
|
253
253
|
try {
|
|
254
|
-
e.setAttribute("draggable", "false"), (M = (v = n == null ? void 0 : n.wrapper) == null ? void 0 : v.setAttribute) == null || M.call(v, "draggable", "false"), (
|
|
254
|
+
e.setAttribute("draggable", "false"), (M = (v = n == null ? void 0 : n.wrapper) == null ? void 0 : v.setAttribute) == null || M.call(v, "draggable", "false"), (h = (_ = n == null ? void 0 : n.container) == null ? void 0 : _.setAttribute) == null || h.call(_, "draggable", "false");
|
|
255
255
|
} catch {
|
|
256
256
|
}
|
|
257
257
|
try {
|
|
@@ -280,7 +280,7 @@ const $e = ((ne = Rt == null ? void 0 : Rt.Node) == null ? void 0 : ne.create) ?
|
|
|
280
280
|
}
|
|
281
281
|
};
|
|
282
282
|
}
|
|
283
|
-
}),
|
|
283
|
+
}), Te = _e.extend({
|
|
284
284
|
addOptions() {
|
|
285
285
|
var t;
|
|
286
286
|
return { ...(t = this.parent) == null ? void 0 : t.call(this), nested: !0 };
|
|
@@ -301,7 +301,7 @@ const $e = ((ne = Rt == null ? void 0 : Rt.Node) == null ? void 0 : ne.create) ?
|
|
|
301
301
|
var $;
|
|
302
302
|
const { pos: f, n: v } = n();
|
|
303
303
|
if (f == null || !v) return;
|
|
304
|
-
const M = c.view.state, _ = M.schema.nodes.taskItem,
|
|
304
|
+
const M = c.view.state, _ = M.schema.nodes.taskItem, h = !!(($ = v.attrs) != null && $.checked), x = M.tr.setNodeMarkup(f, _, { ...v.attrs || {}, checked: !h });
|
|
305
305
|
c.view.dispatch(x);
|
|
306
306
|
}), i.addEventListener("keydown", (f) => {
|
|
307
307
|
var v;
|
|
@@ -309,7 +309,7 @@ const $e = ((ne = Rt == null ? void 0 : Rt.Node) == null ? void 0 : ne.create) ?
|
|
|
309
309
|
f.preventDefault();
|
|
310
310
|
const { pos: M, n: _ } = n();
|
|
311
311
|
if (M == null || !_) return;
|
|
312
|
-
const
|
|
312
|
+
const h = c.view.state, x = h.schema.nodes.taskItem, $ = !!((v = _.attrs) != null && v.checked), C = h.tr.setNodeMarkup(M, x, { ..._.attrs || {}, checked: !$ });
|
|
313
313
|
c.view.dispatch(C);
|
|
314
314
|
}
|
|
315
315
|
});
|
|
@@ -324,7 +324,7 @@ const $e = ((ne = Rt == null ? void 0 : Rt.Node) == null ? void 0 : ne.create) ?
|
|
|
324
324
|
};
|
|
325
325
|
}
|
|
326
326
|
});
|
|
327
|
-
var
|
|
327
|
+
var Ee = {
|
|
328
328
|
size: "1em",
|
|
329
329
|
strokeWidth: 4,
|
|
330
330
|
strokeLinecap: "round",
|
|
@@ -387,13 +387,13 @@ function Ct(t, c, o) {
|
|
|
387
387
|
name: "icon-" + t,
|
|
388
388
|
props: ["size", "strokeWidth", "strokeLinecap", "strokeLinejoin", "theme", "fill", "spin"],
|
|
389
389
|
setup: function(n) {
|
|
390
|
-
var b = De(), f = xt(Ae,
|
|
390
|
+
var b = De(), f = xt(Ae, Ee);
|
|
391
391
|
return function() {
|
|
392
|
-
var v = n.size, M = n.strokeWidth, _ = n.strokeLinecap,
|
|
392
|
+
var v = n.size, M = n.strokeWidth, _ = n.strokeLinecap, h = n.strokeLinejoin, x = n.theme, $ = n.fill, C = n.spin, d = Fe(b, {
|
|
393
393
|
size: v,
|
|
394
394
|
strokeWidth: M,
|
|
395
395
|
strokeLinecap: _,
|
|
396
|
-
strokeLinejoin:
|
|
396
|
+
strokeLinejoin: h,
|
|
397
397
|
theme: x,
|
|
398
398
|
fill: $
|
|
399
399
|
}, f), a = [f.prefix + "-icon"];
|
|
@@ -711,10 +711,10 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
711
711
|
setup(t) {
|
|
712
712
|
const c = t, o = V(null), e = V(null), i = V(!1), n = V(c.placement), b = V({ top: 0, left: 0 });
|
|
713
713
|
function f() {
|
|
714
|
-
const _ = o.value,
|
|
715
|
-
if (!_ || !
|
|
714
|
+
const _ = o.value, h = e.value;
|
|
715
|
+
if (!_ || !h) return;
|
|
716
716
|
let x = c.placement;
|
|
717
|
-
const $ =
|
|
717
|
+
const $ = h.getBoundingClientRect(), C = $.top, d = window.innerHeight - $.bottom, a = _.offsetHeight + c.offset;
|
|
718
718
|
x === "bottom" ? d < a && C >= a && (x = "top") : C < a && d >= a && (x = "bottom"), n.value = x;
|
|
719
719
|
const w = $.left + $.width / 2, k = x === "bottom" ? $.bottom + c.offset : $.top - c.offset - _.offsetHeight;
|
|
720
720
|
b.value = { top: k, left: w };
|
|
@@ -725,14 +725,14 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
725
725
|
function M() {
|
|
726
726
|
i.value = !1;
|
|
727
727
|
}
|
|
728
|
-
return
|
|
728
|
+
return ht(() => {
|
|
729
729
|
window.addEventListener("resize", f), window.addEventListener("scroll", f, !0);
|
|
730
730
|
}), ie(() => {
|
|
731
731
|
window.removeEventListener("resize", f), window.removeEventListener("scroll", f, !0);
|
|
732
|
-
}),
|
|
732
|
+
}), gt(
|
|
733
733
|
() => c.text,
|
|
734
734
|
() => Mt(f)
|
|
735
|
-
), (_,
|
|
735
|
+
), (_, h) => (B(), j("div", {
|
|
736
736
|
ref_key: "wrapperRef",
|
|
737
737
|
ref: e,
|
|
738
738
|
class: "tooltip-wrapper",
|
|
@@ -747,7 +747,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
747
747
|
ref_key: "tipRef",
|
|
748
748
|
ref: o,
|
|
749
749
|
class: J(["tooltip", [n.value, { visible: i.value }]]),
|
|
750
|
-
style:
|
|
750
|
+
style: pt({ top: b.value.top + "px", left: b.value.left + "px" })
|
|
751
751
|
}, [
|
|
752
752
|
l("div", Ge, kt(t.text), 1),
|
|
753
753
|
t.shortcut ? (B(), j("div", Ye, kt(t.shortcut), 1)) : Z("", !0)
|
|
@@ -785,8 +785,8 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
785
785
|
"48px"
|
|
786
786
|
], e = ct(() => {
|
|
787
787
|
var x, $;
|
|
788
|
-
const
|
|
789
|
-
return typeof
|
|
788
|
+
const h = ($ = (x = c.editor) == null ? void 0 : x.getAttributes("textStyle")) == null ? void 0 : $.fontSize;
|
|
789
|
+
return typeof h == "string" && h ? h : "15px";
|
|
790
790
|
}), i = V(!1), n = V(null);
|
|
791
791
|
function b() {
|
|
792
792
|
i.value || window.dispatchEvent(new CustomEvent(Nt, { detail: { id: Xt } })), i.value = !i.value;
|
|
@@ -794,29 +794,29 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
794
794
|
function f() {
|
|
795
795
|
i.value = !1;
|
|
796
796
|
}
|
|
797
|
-
function v(
|
|
797
|
+
function v(h) {
|
|
798
798
|
var x;
|
|
799
|
-
(x = c.editor) == null || x.chain().focus().setMark("textStyle", { fontSize:
|
|
799
|
+
(x = c.editor) == null || x.chain().focus().setMark("textStyle", { fontSize: h }).run(), f();
|
|
800
800
|
}
|
|
801
|
-
function M(
|
|
802
|
-
const x =
|
|
801
|
+
function M(h) {
|
|
802
|
+
const x = h.target, $ = n.value;
|
|
803
803
|
$ && !$.contains(x) && f();
|
|
804
804
|
}
|
|
805
|
-
|
|
805
|
+
ht(() => {
|
|
806
806
|
document.addEventListener("click", M), window.addEventListener(Nt, _);
|
|
807
807
|
}), wt(() => {
|
|
808
808
|
document.removeEventListener("click", M), window.removeEventListener(Nt, _);
|
|
809
809
|
});
|
|
810
|
-
function _(
|
|
810
|
+
function _(h) {
|
|
811
811
|
var $;
|
|
812
|
-
(($ =
|
|
812
|
+
(($ = h.detail) == null ? void 0 : $.id) !== Xt && (i.value = !1);
|
|
813
813
|
}
|
|
814
|
-
return (
|
|
814
|
+
return (h, x) => (B(), j("div", {
|
|
815
815
|
class: "font-size-wrapper",
|
|
816
816
|
ref_key: "rootRef",
|
|
817
817
|
ref: n
|
|
818
818
|
}, [
|
|
819
|
-
r(
|
|
819
|
+
r(p(G), {
|
|
820
820
|
text: "字体大小",
|
|
821
821
|
placement: "bottom"
|
|
822
822
|
}, {
|
|
@@ -827,7 +827,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
827
827
|
"aria-expanded": i.value
|
|
828
828
|
}, [
|
|
829
829
|
l("div", qe, kt(e.value), 1),
|
|
830
|
-
r(
|
|
830
|
+
r(p(Ot), {
|
|
831
831
|
theme: "filled",
|
|
832
832
|
strokeWidth: 3
|
|
833
833
|
})
|
|
@@ -844,7 +844,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
844
844
|
"aria-selected": $ === e.value,
|
|
845
845
|
onClick: I((C) => v($), ["stop"])
|
|
846
846
|
}, [
|
|
847
|
-
$ === e.value ? (B(), zt(
|
|
847
|
+
$ === e.value ? (B(), zt(p(Ut), {
|
|
848
848
|
key: 0,
|
|
849
849
|
theme: "filled",
|
|
850
850
|
strokeWidth: 3
|
|
@@ -910,20 +910,20 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
910
910
|
function _() {
|
|
911
911
|
e.value = !1;
|
|
912
912
|
}
|
|
913
|
-
function
|
|
913
|
+
function h() {
|
|
914
914
|
i.value = !i.value;
|
|
915
915
|
}
|
|
916
916
|
function x(A) {
|
|
917
|
-
var
|
|
918
|
-
(
|
|
917
|
+
var E;
|
|
918
|
+
(E = c.editor) == null || E.chain().focus().setColor(A).run(), v.value = A, w(A), _();
|
|
919
919
|
}
|
|
920
920
|
function $() {
|
|
921
921
|
var A;
|
|
922
922
|
(A = c.editor) == null || A.chain().focus().unsetColor().run(), _();
|
|
923
923
|
}
|
|
924
924
|
function C(A) {
|
|
925
|
-
const
|
|
926
|
-
y && !y.contains(
|
|
925
|
+
const E = A.target, y = n.value;
|
|
926
|
+
y && !y.contains(E) && _();
|
|
927
927
|
}
|
|
928
928
|
function d() {
|
|
929
929
|
}
|
|
@@ -931,52 +931,52 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
931
931
|
try {
|
|
932
932
|
const A = localStorage.getItem("md_color_recent");
|
|
933
933
|
if (!A) return [];
|
|
934
|
-
const
|
|
935
|
-
return Array.isArray(
|
|
934
|
+
const E = JSON.parse(A);
|
|
935
|
+
return Array.isArray(E) ? E.slice(0, 12) : [];
|
|
936
936
|
} catch {
|
|
937
937
|
return [];
|
|
938
938
|
}
|
|
939
939
|
}
|
|
940
940
|
function w(A) {
|
|
941
|
-
const
|
|
942
|
-
f.value =
|
|
941
|
+
const E = [A, ...f.value.filter((y) => y !== A)];
|
|
942
|
+
f.value = E.slice(0, 12);
|
|
943
943
|
try {
|
|
944
944
|
localStorage.setItem("md_color_recent", JSON.stringify(f.value));
|
|
945
945
|
} catch {
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
948
|
let k = [];
|
|
949
|
-
function
|
|
949
|
+
function m() {
|
|
950
950
|
const A = c.editor;
|
|
951
951
|
A && (k = [
|
|
952
952
|
{ event: "selectionUpdate", handler: d },
|
|
953
953
|
{ event: "transaction", handler: d },
|
|
954
954
|
{ event: "update", handler: d }
|
|
955
|
-
], k.forEach(({ event:
|
|
956
|
-
A.on(
|
|
955
|
+
], k.forEach(({ event: E, handler: y }) => {
|
|
956
|
+
A.on(E, y);
|
|
957
957
|
}));
|
|
958
958
|
}
|
|
959
|
-
|
|
960
|
-
document.addEventListener("click", C), window.addEventListener(Gt, D),
|
|
959
|
+
ht(() => {
|
|
960
|
+
document.addEventListener("click", C), window.addEventListener(Gt, D), m();
|
|
961
961
|
}), wt(() => {
|
|
962
962
|
document.removeEventListener("click", C), window.removeEventListener(Gt, D);
|
|
963
963
|
const A = c.editor;
|
|
964
|
-
A && k.forEach(({ event:
|
|
965
|
-
A.off(
|
|
964
|
+
A && k.forEach(({ event: E, handler: y }) => {
|
|
965
|
+
A.off(E, y);
|
|
966
966
|
}), k = [];
|
|
967
|
-
}),
|
|
967
|
+
}), gt(
|
|
968
968
|
() => c.editor,
|
|
969
|
-
(A,
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
}), k = [],
|
|
969
|
+
(A, E) => {
|
|
970
|
+
E && k.forEach(({ event: y, handler: T }) => {
|
|
971
|
+
E.off(y, T);
|
|
972
|
+
}), k = [], m();
|
|
973
973
|
}
|
|
974
974
|
);
|
|
975
975
|
function D(A) {
|
|
976
976
|
var y;
|
|
977
977
|
((y = A.detail) == null ? void 0 : y.id) !== Qt && (e.value = !1);
|
|
978
978
|
}
|
|
979
|
-
return (A,
|
|
979
|
+
return (A, E) => (B(), j("div", {
|
|
980
980
|
class: "color-select-wrapper",
|
|
981
981
|
ref_key: "rootRef",
|
|
982
982
|
ref: n
|
|
@@ -985,16 +985,16 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
985
985
|
class: "icon icon-dropdown",
|
|
986
986
|
"aria-expanded": e.value
|
|
987
987
|
}, [
|
|
988
|
-
r(
|
|
988
|
+
r(p(G), {
|
|
989
989
|
text: "文字颜色",
|
|
990
990
|
placement: "bottom"
|
|
991
991
|
}, {
|
|
992
992
|
default: N(() => [
|
|
993
993
|
l("div", {
|
|
994
994
|
class: "icon-stack hoverable",
|
|
995
|
-
onClick:
|
|
995
|
+
onClick: E[0] || (E[0] = I((y) => x(v.value), ["stop"]))
|
|
996
996
|
}, [
|
|
997
|
-
r(
|
|
997
|
+
r(p(Be), {
|
|
998
998
|
theme: "filled",
|
|
999
999
|
size: "14",
|
|
1000
1000
|
fill: v.value,
|
|
@@ -1002,13 +1002,13 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1002
1002
|
}, null, 8, ["fill"]),
|
|
1003
1003
|
l("div", {
|
|
1004
1004
|
class: "underline",
|
|
1005
|
-
style:
|
|
1005
|
+
style: pt({ background: v.value })
|
|
1006
1006
|
}, null, 4)
|
|
1007
1007
|
])
|
|
1008
1008
|
]),
|
|
1009
1009
|
_: 1
|
|
1010
1010
|
}),
|
|
1011
|
-
r(
|
|
1011
|
+
r(p(G), {
|
|
1012
1012
|
text: "更多颜色",
|
|
1013
1013
|
placement: "bottom"
|
|
1014
1014
|
}, {
|
|
@@ -1017,7 +1017,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1017
1017
|
class: "arrow hoverable",
|
|
1018
1018
|
onClick: I(M, ["stop"])
|
|
1019
1019
|
}, [
|
|
1020
|
-
r(
|
|
1020
|
+
r(p(Ot), {
|
|
1021
1021
|
theme: "filled",
|
|
1022
1022
|
strokeWidth: 3,
|
|
1023
1023
|
size: "12"
|
|
@@ -1031,15 +1031,15 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1031
1031
|
default: N(() => [
|
|
1032
1032
|
e.value ? (B(), j("div", no, [
|
|
1033
1033
|
l("div", so, [
|
|
1034
|
-
|
|
1034
|
+
E[4] || (E[4] = l("div", { class: "section-title" }, "默认", -1)),
|
|
1035
1035
|
l("div", lo, [
|
|
1036
1036
|
(B(!0), j(yt, null, bt(o.slice(0, 9), (y) => (B(), j("div", {
|
|
1037
1037
|
key: y,
|
|
1038
1038
|
class: "swatch",
|
|
1039
|
-
style:
|
|
1040
|
-
onClick: I((
|
|
1039
|
+
style: pt({ background: y }),
|
|
1040
|
+
onClick: I((T) => x(y), ["stop"])
|
|
1041
1041
|
}, [
|
|
1042
|
-
y === v.value ? (B(), zt(
|
|
1042
|
+
y === v.value ? (B(), zt(p(Ut), {
|
|
1043
1043
|
key: 0,
|
|
1044
1044
|
theme: "filled",
|
|
1045
1045
|
strokeWidth: 3
|
|
@@ -1048,15 +1048,15 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1048
1048
|
])
|
|
1049
1049
|
]),
|
|
1050
1050
|
l("div", ro, [
|
|
1051
|
-
|
|
1051
|
+
E[5] || (E[5] = l("div", { class: "section-title" }, "常用颜色", -1)),
|
|
1052
1052
|
l("div", ao, [
|
|
1053
1053
|
(B(!0), j(yt, null, bt(o.slice(9), (y) => (B(), j("div", {
|
|
1054
1054
|
key: y,
|
|
1055
1055
|
class: "swatch",
|
|
1056
|
-
style:
|
|
1057
|
-
onClick: I((
|
|
1056
|
+
style: pt({ background: y }),
|
|
1057
|
+
onClick: I((T) => x(y), ["stop"])
|
|
1058
1058
|
}, [
|
|
1059
|
-
y === v.value ? (B(), zt(
|
|
1059
|
+
y === v.value ? (B(), zt(p(Ut), {
|
|
1060
1060
|
key: 0,
|
|
1061
1061
|
theme: "filled",
|
|
1062
1062
|
strokeWidth: 3
|
|
@@ -1065,13 +1065,13 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1065
1065
|
])
|
|
1066
1066
|
]),
|
|
1067
1067
|
f.value.length ? (B(), j("div", uo, [
|
|
1068
|
-
|
|
1068
|
+
E[6] || (E[6] = l("div", { class: "section-title" }, "最近使用自定义颜色", -1)),
|
|
1069
1069
|
l("div", vo, [
|
|
1070
1070
|
(B(!0), j(yt, null, bt(f.value, (y) => (B(), j("div", {
|
|
1071
1071
|
key: y,
|
|
1072
1072
|
class: "swatch",
|
|
1073
|
-
style:
|
|
1074
|
-
onClick: I((
|
|
1073
|
+
style: pt({ background: y }),
|
|
1074
|
+
onClick: I((T) => x(y), ["stop"])
|
|
1075
1075
|
}, null, 12, fo))), 128))
|
|
1076
1076
|
])
|
|
1077
1077
|
])) : Z("", !0),
|
|
@@ -1082,25 +1082,25 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1082
1082
|
}, "暂无"),
|
|
1083
1083
|
l("button", {
|
|
1084
1084
|
class: "btn",
|
|
1085
|
-
onClick: I(
|
|
1085
|
+
onClick: I(h, ["stop"])
|
|
1086
1086
|
}, "更多颜色")
|
|
1087
1087
|
]),
|
|
1088
1088
|
i.value ? (B(), j("div", ho, [
|
|
1089
1089
|
$t(l("input", {
|
|
1090
1090
|
type: "color",
|
|
1091
|
-
"onUpdate:modelValue":
|
|
1091
|
+
"onUpdate:modelValue": E[1] || (E[1] = (y) => b.value = y)
|
|
1092
1092
|
}, null, 512), [
|
|
1093
1093
|
[St, b.value]
|
|
1094
1094
|
]),
|
|
1095
1095
|
$t(l("input", {
|
|
1096
1096
|
class: "hex",
|
|
1097
|
-
"onUpdate:modelValue":
|
|
1097
|
+
"onUpdate:modelValue": E[2] || (E[2] = (y) => b.value = y)
|
|
1098
1098
|
}, null, 512), [
|
|
1099
1099
|
[St, b.value]
|
|
1100
1100
|
]),
|
|
1101
1101
|
l("button", {
|
|
1102
1102
|
class: "btn apply",
|
|
1103
|
-
onClick:
|
|
1103
|
+
onClick: E[3] || (E[3] = I((y) => x(b.value), ["stop"]))
|
|
1104
1104
|
}, "应用")
|
|
1105
1105
|
])) : Z("", !0)
|
|
1106
1106
|
])) : Z("", !0)
|
|
@@ -1109,7 +1109,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1109
1109
|
})
|
|
1110
1110
|
], 512));
|
|
1111
1111
|
}
|
|
1112
|
-
}), go = /* @__PURE__ */ lt(mo, [["__scopeId", "data-v-1656be6b"]]), ko = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763565315763" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="81778" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M96 128h832v96H96zM96 576h832v96H96zM224 352h576v96H224zM224 800h576v96H224z" p-id="81779"></path></svg>', wo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763565310640" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="81615" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M96 128h832v96H96zM96 576h832v96H96zM96 352h832v96H96zM96 800h832v96H96z" p-id="81616"></path></svg>', Co = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763565296828" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="81289" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M96 128h832v96H96zM96 576h832v96H96zM96 352h576v96H96zM96 800h576v96H96z" p-id="81290"></path></svg>', yo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763565306218" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="81452" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M96 128h832v96H96zM96 576h832v96H96zM352 352h576v96H352zM352 800h576v96H352z" p-id="81453"></path></svg>', bo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763562183158" class="icon" viewBox="0 0 1102 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="79129" xmlns:xlink="http://www.w3.org/1999/xlink" width="19.37109375" height="18"><path d="M93.105231 187.943385a78.769231 78.769231 0 1 1 0-157.538462 78.769231 78.769231 0 0 1 0 157.538462z m0 393.846153a78.769231 78.769231 0 1 1 0-157.538461 78.769231 78.769231 0 0 1 0 157.538461z m0 393.846154a78.769231 78.769231 0 1 1 0-157.538461 78.769231 78.769231 0 0 1 0 157.538461zM276.243692 161.792v-118.153846h787.692308v118.153846h-787.692308z m0.472616 397.233231v-118.153846h788.007384v118.153846H276.716308z m-3.308308 397.154461v-118.153846h789.267692v118.153846H273.329231z" fill="#333333" p-id="79130"></path></svg>', xo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763566846467" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="83576" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M477.098667 709.717333a46.805333 46.805333 0 0 0 69.802666 0l296.021334-340.736c24.32-28.032 3.328-70.314667-34.944-70.314666H216.021333c-38.272 0-59.306667 42.282667-34.944 70.314666l296.021334 340.736z" fill="#000000" p-id="83577"></path></svg>', _o = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763568214776" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="84748" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M682.666667 772.266667l332.8-247.466667-324.266667-435.2-409.6 307.2-256 192L260.266667 896h691.2v-85.333333h-324.266667l55.466667-38.4zM674.133333 213.333333l221.866667 294.4-260.266667 196.266667-38.4 25.6-230.4-285.866667L674.133333 213.333333zM145.066667 605.866667l149.333333-110.933334 230.4 285.866667-34.133333 29.866667H298.666667l-153.6-204.8z" fill="#333333" p-id="84749"></path></svg>', Lo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763479929532" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="52528" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M621.568 208.299a38.101 38.101 0 0 0-73.941-18.518L386.773 833.28a38.101 38.101 0 0 0 73.899 18.475l160.853-643.456zM325.632 294.4a38.101 38.101 0 0 1 0 53.888L162.347 511.573 325.632 674.86a38.101 38.101 0 0 1-53.845 53.888L81.493 538.539a38.101 38.101 0 0 1 0-53.931L271.787 294.4a38.101 38.101 0 0 1 53.888 0z m372.736 0a38.101 38.101 0 0 0 0 53.888l163.285 163.285L698.368 674.86a38.101 38.101 0 0 0 53.888 53.888l190.25-190.208a38.101 38.101 0 0 0 0-53.931L752.257 294.4a38.101 38.101 0 0 0-53.888 0z" fill="#333333" p-id="52529"></path></svg>', Mo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763480012496" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="54461" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M338.986667 59.413333h52.586666a21.333333 21.333333 0 0 1 21.333334 21.333334V115.84a21.333333 21.333333 0 0 1-21.333334 21.333333H356.266667c-36.48 0-53.76 20.16-53.76 62.4v188.16c0 59.52-27.84 99.84-82.56 120 54.72 23.04 82.56 62.4 82.56 120v189.12c0 40.32 17.28 61.44 53.76 61.44h35.306666a21.333333 21.333333 0 0 1 21.333334 21.333334v35.093333a21.333333 21.333333 0 0 1-21.333334 21.333333H338.986667c-42.24 0-74.88-14.4-97.92-41.28-21.12-24.96-31.68-59.52-31.68-101.76v-180.48c0-27.84-5.76-48-17.28-60.48-11.178667-12.778667-29.653333-20.245333-55.466667-23.488a18.901333 18.901333 0 0 1-16.533333-18.773333v-43.221333c0-10.005333 7.381333-18.474667 17.28-19.84 25.408-3.498667 43.648-11.456 54.72-23.317334 11.52-13.44 17.28-33.6 17.28-60.48V203.413333c0-43.2 10.56-77.76 31.68-102.72 23.04-27.84 55.68-41.28 97.92-41.28z m292.48 0h52.586666c42.24 0 74.88 13.44 97.92 41.28 21.12 24.96 31.68 59.52 31.68 102.72v179.52c0 26.88 5.76 48 18.24 61.44 10.24 11.029333 28.224 18.816 53.418667 22.314667 10.112 1.408 17.621333 10.026667 17.621333 20.245333v40.746667a21.333333 21.333333 0 0 1-18.88 21.184c-24.576 3.413333-42.282667 10.794667-53.12 23.189333-11.52 12.48-17.28 32.64-17.28 60.48v180.48c0 42.24-10.56 76.8-31.68 101.76-23.04 26.88-55.68 41.28-97.92 41.28H631.466667a21.333333 21.333333 0 0 1-21.333334-21.333333V899.626667a21.333333 21.333333 0 0 1 21.333334-21.333334h35.306666c35.52 0 53.76-21.12 53.76-61.44v-189.12c0-57.6 26.88-96.96 82.56-120-55.68-20.16-82.56-60.48-82.56-120v-188.16c0-42.24-18.24-62.4-53.76-62.4H631.466667a21.333333 21.333333 0 0 1-21.333334-21.333333V80.746667a21.333333 21.333333 0 0 1 21.333334-21.333334z" fill="#000000" p-id="54462"></path></svg>', zo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1768469045840" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6989" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M393.846154 64.174932l117.454119 0.399843H512.499805l117.454119-0.399843-10.395939 10.395939c-18.89262 18.89262-28.488872 44.982429-26.28973 71.472081l20.292073 250.502148c2.998829 36.68567 18.092932 72.171808 42.483405 99.661069l34.186646 38.684889-122.252245-0.899648-55.478329-0.399844h-0.99961l-55.478329 0.399844-122.452167 0.799687 34.186646-38.684888c24.390472-27.589223 39.484576-62.9754 42.483405-99.66107l20.292074-250.402187c2.199141-26.589613-7.397111-52.679422-26.289731-71.472081l-10.395939-10.395939m281.889887-64.174932h-0.199922L512.399844 0.599766h-0.799688L348.36392 0h-0.199922c-20.891839 0-39.684498 13.494729-45.582194 33.58688-4.098399 13.994533-1.899258 30.887934 17.79305 47.581414l38.584927 38.584927c5.597813 5.597813 8.39672 13.294807 7.796955 21.091761L346.464662 391.247169c-1.899258 23.190941-11.195627 45.08239-26.589613 62.475596l-61.87583 69.872706c-8.696603 9.796173-13.894572 22.291292-14.394377 35.386177-0.299883 8.996486 1.599375 18.89262 8.596642 27.28934 6.897306 8.296759 17.293245 12.894963 27.989067 12.894963h0.299882l175.931277-1.199532 55.178446 422.834831 0.399844 3.098789 0.399844-3.098789 55.178446-422.834831 175.931277 1.199532h0.299882c10.795783 0 21.191722-4.598204 27.989067-12.894963 6.897306-8.39672 8.796564-18.292854 8.596642-27.28934-0.399844-13.094885-5.697774-25.590004-14.394377-35.386177l-61.87583-69.872706c-15.393987-17.393206-24.690355-39.284654-26.589613-62.475596l-20.292074-250.402187c-0.599766-7.796954 2.199141-15.593909 7.796955-21.091761l38.584927-38.584927c19.692308-16.693479 21.891449-33.58688 17.79305-47.581414-5.997657-19.992191-24.790316-33.58688-45.682155-33.58688z" p-id="6990"></path></svg>', $o = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763569611105" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="87406" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M840 192h-56v-72c0-13.3-10.7-24-24-24H168c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h592c13.3 0 24-10.7 24-24V256h32v200H465c-22.1 0-40 17.9-40 40v136h-44c-4.4 0-8 3.6-8 8v228c0 0.6 0.1 1.3 0.2 1.9-0.1 2-0.2 4.1-0.2 6.1 0 46.4 37.6 84 84 84s84-37.6 84-84c0-2.1-0.1-4.1-0.2-6.1 0.1-0.6 0.2-1.2 0.2-1.9V640c0-4.4-3.6-8-8-8h-44V520h351c22.1 0 40-17.9 40-40V232c0-22.1-17.9-40-40-40zM720 352H208V160h512v192zM477 876c0 11-9 20-20 20s-20-9-20-20V696h40v180z" p-id="87407"></path></svg>', So = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763473363174" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="28322" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M957.610667 507.434667L603.221333 158.293333a7.893333 7.893333 0 0 0-11.221333 0L353.28 393.386667a8.021333 8.021333 0 0 0-0.085333 11.306666l0.085333 0.128 40.021333 39.381334-117.205333 115.285333a8.021333 8.021333 0 0 0-0.085333 11.306667l0.085333 0.128 39.509333 38.869333-189.098666 187.008H72.106667a8.106667 8.106667 0 0 0-8.106667 8.021333v55.168c0 4.394667 3.584 8.021333 8.021333 8.021334H416.853333c2.133333 0 4.096-0.810667 5.589334-2.304l76.117333-75.605334 40.405333 39.808a7.936 7.936 0 0 0 11.178667 0l117.12-115.626666 40.106667 39.509333a7.893333 7.893333 0 0 0 11.178666 0l238.72-235.178667a7.68 7.68 0 0 0 0.298667-11.221333z m-567.808 288.853333H229.546667l134.4-133.034667 80.128 78.933334-54.314667 54.058666z m154.794666-62.122667l-171.392-168.917333 68.608-67.584 171.392 168.874667-68.608 67.626666z m168.533334-76.117333l-262.826667-258.901333 147.285333-145.066667 262.826667 258.986667-147.328 144.981333z" fill="#999999" p-id="28323"></path></svg>', Eo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763480451042" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="58395" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M938.666667 553.92V768c0 64.8-52.533333 117.333333-117.333334 117.333333H202.666667c-64.8 0-117.333333-52.533333-117.333334-117.333333V256c0-64.8 52.533333-117.333333 117.333334-117.333333h618.666666c64.8 0 117.333333 52.533333 117.333334 117.333333v297.92z m-64-74.624V256a53.333333 53.333333 0 0 0-53.333334-53.333333H202.666667a53.333333 53.333333 0 0 0-53.333334 53.333333v344.48A290.090667 290.090667 0 0 1 192 597.333333a286.88 286.88 0 0 1 183.296 65.845334C427.029333 528.384 556.906667 437.333333 704 437.333333c65.706667 0 126.997333 16.778667 170.666667 41.962667z m0 82.24c-5.333333-8.32-21.130667-21.653333-43.648-32.917333C796.768 511.488 753.045333 501.333333 704 501.333333c-121.770667 0-229.130667 76.266667-270.432 188.693334-2.730667 7.445333-7.402667 20.32-13.994667 38.581333-7.68 21.301333-34.453333 28.106667-51.370666 13.056-16.437333-14.634667-28.554667-25.066667-36.138667-31.146667A222.890667 222.890667 0 0 0 192 661.333333c-14.464 0-28.725333 1.365333-42.666667 4.053334V768a53.333333 53.333333 0 0 0 53.333334 53.333333h618.666666a53.333333 53.333333 0 0 0 53.333334-53.333333V561.525333zM320 480a96 96 0 1 1 0-192 96 96 0 0 1 0 192z m0-64a32 32 0 1 0 0-64 32 32 0 0 0 0 64z" fill="#000000" p-id="58396"></path></svg>', To = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763480387136" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="57289" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M213.972 214.906l0.934-0.934c27.606-27.606 68.674-30.581 92.168-7.087l225.23 225.23c29.72-40.254 30.733-93.311-0.599-124.643L345.639 121.406c-35.132-35.132-97.076-30.148-138.356 11.132l-74.744 74.744c-41.28 41.28-46.264 103.224-11.132 138.356l186.065 186.065c31.332 31.332 84.389 30.319 124.643 0.599l-225.23-225.23c-23.494-23.492-20.519-64.56 7.087-92.166zM808.745 809.679l0.934-0.934c27.606-27.606 31.18-68.074 7.686-91.568l-225.23-225.23c40.254-29.72 93.311-30.733 124.643 0.599l186.065 186.065c35.132 35.132 29.548 96.477-11.732 137.757l-74.744 74.744c-41.28 41.28-102.625 46.863-137.757 11.732L492.546 716.779c-31.332-31.332-31.909-82.799-0.599-124.643l225.23 225.23c23.494 23.494 63.962 19.92 91.568-7.687z" fill="#666666" p-id="57290"></path><path d="M627.123 628.713c-12.296 12.296-32.232 12.296-44.528 0L394.938 441.057c-12.296-12.296-12.296-32.232 0-44.528s32.232-12.296 44.528 0l187.656 187.656c12.297 12.296 12.297 32.232 0.001 44.528z" fill="#666666" p-id="57291"></path></svg>', Do = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763562537529" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="80294" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M107.5 736c28.6 0 52.2 7.1 70.2 21.4 18.5 15.1 27.9 36 27.9 61.7 0 22.9-8.4 41.3-24.7 54.1 16 12 29.6 32.8 29.6 57.3 0 27-9.7 49.7-28.8 67.2-19.6 17.5-45 26.3-75.6 26.3-29.2 0-53.4-7.8-71.7-23.3C14 983.6 2.4 958.4 0 926.1v-14.5h69.7V925c0.6 12.9 4.2 21.8 10.9 27.8 6.2 5.7 14.4 8.6 25.2 8.6 12.1 0 21.3-3.2 27.6-9.2 5.6-5.6 8.2-11.9 8.2-19.9 0-10-2.7-16.6-7.9-20.8-5.4-4.5-14.5-6.9-27.8-6.9H74.3v-58.9h31.5c11.6 0 19.8-2.2 24.5-6.1 4.1-3.5 6.3-9.2 6.3-17.4 0-8.3-2-13.9-5.3-17-4.6-3.9-12.3-6.1-23.5-6.1-11.5 0-19.3 2.5-24.8 7.4-5.5 4.8-8.9 12.8-10 23.7v13.4H5.1l-0.2-7v-8.2c2.4-29.1 13.4-52.1 32.7-68.2C55.8 744 79.3 736 107.5 736z m916.5 96v128H384V832h640zM106.9 368c28 0 51.7 8.4 70.5 25.1 18.8 17.1 28.2 39.1 28.2 65.8 0 25.4-9.7 48.8-28.8 70-10.4 11.1-27.9 24.8-55.3 43.2-10.1 6.6-18.5 12.9-25.2 18.7h109.3V656l-7.1 0.1-185.2-0.1c-4.5-0.6-7.5-1.6-9.8-3.8-2.4-2.4-3.2-5.6-3.5-10.4 0-29.7 9.6-55.5 28.8-77.1 10.3-11.8 30.6-28.1 61.1-49.1 14.4-10 25.7-19.2 32.4-26.3 8.9-10 13.2-20.3 13.2-30.8 0-9.8-2.3-16.6-6.4-20.4-4.5-4.1-12.2-6.3-23.6-6.3-11.3 0-18.8 3.4-24.1 10.6-5.7 7.3-9.2 19.8-9.9 37.7-0.5 3.9-1.6 6.8-3.8 9-2.1 2-4.8 3-10.4 4l-43-0.1c-4.2-0.8-7.1-1.9-9.2-4-2.2-2.3-3.2-5.3-3.7-10.3 0.4-32.1 9.9-58.3 28.6-78.2 19.6-21.6 45.5-32.5 76.9-32.5z m917.1 80v128H384V448h640zM146.6 0v288H75.1V94.2c-16.7 10.2-35.9 18.3-50.9 20.3l-8.2 1.6V46l4.8-2C39.3 37.3 52.5 31.7 60 27.6 71 20.9 82.1 11.7 96.3 0.1h50.3zM1024 64v128H384V64h640z" fill="#333333" p-id="80295"></path></svg>', Fo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763480239307" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="56277" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M849.6 231v109.5c-46.4 14.9-84.6 41.5-114.4 81.3-29.9 36.5-44.8 76.3-43.1 116.1 8.3-5 21.6-6.6 41.5-6.6 34.8 0 64.7 11.6 91.2 36.5 23.2 24.9 36.5 56.4 36.5 94.5S848 732 821.5 756.8C795 780 761.8 793.3 722 793.3c-46.4 0-82.9-19.9-112.8-56.4s-43.1-84.6-43.1-141c0-89.6 24.9-165.8 76.3-230.5C692 299 761.7 254.2 849.6 231z m-403 0v109.5c-46.4 14.9-82.9 41.5-112.8 81.3-31.5 36.5-46.4 76.3-44.8 116.1 8.3-5 21.6-6.6 41.5-6.6 34.8 0 64.7 11.6 89.6 36.5 24.9 24.9 38.1 56.4 38.1 94.5s-13.3 69.7-38.1 94.5c-26.5 23.2-61.4 36.5-101.2 36.5-46.4 0-82.9-19.9-111.1-56.4-29.9-36.5-44.8-84.6-44.8-141 0-89.6 24.9-165.8 76.3-230.5C289 299 358.7 254.2 446.6 231z" p-id="56278"></path></svg>', Ao = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763480808376" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="61532" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M959.825 384.002V191.94c0-70.692-57.308-128-128-128H191.94c-70.692 0-128 57.308-128 128v639.885c0 70.692 57.308 128 128 128h639.885c70.692 0 128-57.308 128-128V384.002z m-813.16-237.337a63.738 63.738 0 0 1 45.336-18.785H832a63.962 63.962 0 0 1 63.886 64.121v128.061H127.88v-128.06a63.738 63.738 0 0 1 18.785-45.337z m269.127 461.308v-223.97h192.181v223.97H415.792z m192.181 63.94v223.972H415.792V671.914h192.181z m-256.121-63.94H127.88v-223.97h223.972v223.97zM146.665 877.21a63.467 63.467 0 0 1-18.785-45.21V671.914h223.972v223.97h-159.85a63.626 63.626 0 0 1-45.337-18.675z m749.22-45.21a63.763 63.763 0 0 1-63.886 63.886H671.914V671.914h223.97v160.085z m0-224.026H671.914v-223.97h223.97v223.97z" p-id="61533"></path></svg>', Bo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763480994147" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="73821" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M933.529779 1022.701142H87.673207c-48.357498 0-87.523075-39.165577-87.523075-87.523076V1.798419h729.259049c48.357498 0 87.523075 39.165577 87.523076 87.523076v320.818031h204.220509V935.178066c-0.099912 48.357498-39.265489 87.523075-87.622987 87.523076z m-175.046151-904.205289c0-32.171724-26.077081-58.348717-58.348717-58.348717H58.498849v845.856572c0 32.171724 26.077081 58.348717 58.348717 58.348717h583.387257c32.171724 0 58.348717-26.077081 58.348717-58.348717V118.495853zM962.704137 468.588155h-145.871792v495.864182h87.523075c32.171724 0 58.348717-26.077081 58.348717-58.348717V468.588155z m-729.25905 0h379.166748v58.348717H233.445087V468.588155z m0-233.394868h379.166748v58.348717H233.445087v-58.348717z m262.569227 525.03854H233.445087v-58.348716h262.469314v58.348716z m0 0" p-id="73822"></path></svg>', Ho = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763477549677" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="31202" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M828.6 75C889.572 75 939 124.428 939 185.4v676.2c0 60.972-49.428 110.4-110.4 110.4H152.4C91.428 972 42 922.572 42 861.6V185.4C42 124.428 91.428 75 152.4 75z m0 59.8H152.4c-27.946 0-50.6 22.654-50.6 50.6v676.2c0 27.946 22.654 50.6 50.6 50.6h676.2c27.946 0 50.6-22.654 50.6-50.6V185.4c0-27.946-22.654-50.6-50.6-50.6z m-20.56 167.48c11.48 11.504 11.641 30.022 0.502 41.725l-0.548 0.56L477.473 674.37c-11.251 11.227-29.274 11.663-41.05 1.123l-0.574-0.527L260.695 509.93c-12.018-11.325-12.581-30.248-1.257-42.266 11.145-11.828 29.65-12.56 41.69-1.788l0.577 0.53L455.756 611.56l310-309.325c11.689-11.664 30.62-11.644 42.284 0.045z" fill="#333333" p-id="31203"></path></svg>', Vo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763480631673" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="60480" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M960 192h-28.384c-16.8 0-32.928 6.624-44.928 18.432L800 295.936V256a96 96 0 0 0-96-96H96C43.072 160 0 203.04 0 256v512a96 96 0 0 0 96 96h608c52.992 0 96-43.008 96-96v-39.072l86.688 85.504c12 11.808 28.128 18.432 44.928 18.432H960a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64zM96 800c-17.664 0-32-14.368-32-32V256a32 32 0 0 1 32-32h608c17.632 0 32 14.336 32 32v512c0 17.632-14.368 32-32 32H96z m864-31.136h-32l-128-128V640l-32-32v-192l160-160h32v512.864z" fill="#333333" p-id="60481"></path></svg>', Uo = ["innerHTML"], Io = /* @__PURE__ */ st({
|
|
1112
|
+
}), go = /* @__PURE__ */ lt(mo, [["__scopeId", "data-v-1656be6b"]]), ko = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763565315763" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="81778" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M96 128h832v96H96zM96 576h832v96H96zM224 352h576v96H224zM224 800h576v96H224z" p-id="81779"></path></svg>', wo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763565310640" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="81615" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M96 128h832v96H96zM96 576h832v96H96zM96 352h832v96H96zM96 800h832v96H96z" p-id="81616"></path></svg>', Co = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763565296828" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="81289" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M96 128h832v96H96zM96 576h832v96H96zM96 352h576v96H96zM96 800h576v96H96z" p-id="81290"></path></svg>', yo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763565306218" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="81452" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M96 128h832v96H96zM96 576h832v96H96zM352 352h576v96H352zM352 800h576v96H352z" p-id="81453"></path></svg>', bo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763562183158" class="icon" viewBox="0 0 1102 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="79129" xmlns:xlink="http://www.w3.org/1999/xlink" width="19.37109375" height="18"><path d="M93.105231 187.943385a78.769231 78.769231 0 1 1 0-157.538462 78.769231 78.769231 0 0 1 0 157.538462z m0 393.846153a78.769231 78.769231 0 1 1 0-157.538461 78.769231 78.769231 0 0 1 0 157.538461z m0 393.846154a78.769231 78.769231 0 1 1 0-157.538461 78.769231 78.769231 0 0 1 0 157.538461zM276.243692 161.792v-118.153846h787.692308v118.153846h-787.692308z m0.472616 397.233231v-118.153846h788.007384v118.153846H276.716308z m-3.308308 397.154461v-118.153846h789.267692v118.153846H273.329231z" fill="#333333" p-id="79130"></path></svg>', xo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763566846467" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="83576" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M477.098667 709.717333a46.805333 46.805333 0 0 0 69.802666 0l296.021334-340.736c24.32-28.032 3.328-70.314667-34.944-70.314666H216.021333c-38.272 0-59.306667 42.282667-34.944 70.314666l296.021334 340.736z" fill="#000000" p-id="83577"></path></svg>', _o = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763568214776" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="84748" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M682.666667 772.266667l332.8-247.466667-324.266667-435.2-409.6 307.2-256 192L260.266667 896h691.2v-85.333333h-324.266667l55.466667-38.4zM674.133333 213.333333l221.866667 294.4-260.266667 196.266667-38.4 25.6-230.4-285.866667L674.133333 213.333333zM145.066667 605.866667l149.333333-110.933334 230.4 285.866667-34.133333 29.866667H298.666667l-153.6-204.8z" fill="#333333" p-id="84749"></path></svg>', Lo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763479929532" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="52528" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M621.568 208.299a38.101 38.101 0 0 0-73.941-18.518L386.773 833.28a38.101 38.101 0 0 0 73.899 18.475l160.853-643.456zM325.632 294.4a38.101 38.101 0 0 1 0 53.888L162.347 511.573 325.632 674.86a38.101 38.101 0 0 1-53.845 53.888L81.493 538.539a38.101 38.101 0 0 1 0-53.931L271.787 294.4a38.101 38.101 0 0 1 53.888 0z m372.736 0a38.101 38.101 0 0 0 0 53.888l163.285 163.285L698.368 674.86a38.101 38.101 0 0 0 53.888 53.888l190.25-190.208a38.101 38.101 0 0 0 0-53.931L752.257 294.4a38.101 38.101 0 0 0-53.888 0z" fill="#333333" p-id="52529"></path></svg>', Mo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763480012496" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="54461" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M338.986667 59.413333h52.586666a21.333333 21.333333 0 0 1 21.333334 21.333334V115.84a21.333333 21.333333 0 0 1-21.333334 21.333333H356.266667c-36.48 0-53.76 20.16-53.76 62.4v188.16c0 59.52-27.84 99.84-82.56 120 54.72 23.04 82.56 62.4 82.56 120v189.12c0 40.32 17.28 61.44 53.76 61.44h35.306666a21.333333 21.333333 0 0 1 21.333334 21.333334v35.093333a21.333333 21.333333 0 0 1-21.333334 21.333333H338.986667c-42.24 0-74.88-14.4-97.92-41.28-21.12-24.96-31.68-59.52-31.68-101.76v-180.48c0-27.84-5.76-48-17.28-60.48-11.178667-12.778667-29.653333-20.245333-55.466667-23.488a18.901333 18.901333 0 0 1-16.533333-18.773333v-43.221333c0-10.005333 7.381333-18.474667 17.28-19.84 25.408-3.498667 43.648-11.456 54.72-23.317334 11.52-13.44 17.28-33.6 17.28-60.48V203.413333c0-43.2 10.56-77.76 31.68-102.72 23.04-27.84 55.68-41.28 97.92-41.28z m292.48 0h52.586666c42.24 0 74.88 13.44 97.92 41.28 21.12 24.96 31.68 59.52 31.68 102.72v179.52c0 26.88 5.76 48 18.24 61.44 10.24 11.029333 28.224 18.816 53.418667 22.314667 10.112 1.408 17.621333 10.026667 17.621333 20.245333v40.746667a21.333333 21.333333 0 0 1-18.88 21.184c-24.576 3.413333-42.282667 10.794667-53.12 23.189333-11.52 12.48-17.28 32.64-17.28 60.48v180.48c0 42.24-10.56 76.8-31.68 101.76-23.04 26.88-55.68 41.28-97.92 41.28H631.466667a21.333333 21.333333 0 0 1-21.333334-21.333333V899.626667a21.333333 21.333333 0 0 1 21.333334-21.333334h35.306666c35.52 0 53.76-21.12 53.76-61.44v-189.12c0-57.6 26.88-96.96 82.56-120-55.68-20.16-82.56-60.48-82.56-120v-188.16c0-42.24-18.24-62.4-53.76-62.4H631.466667a21.333333 21.333333 0 0 1-21.333334-21.333333V80.746667a21.333333 21.333333 0 0 1 21.333334-21.333334z" fill="#000000" p-id="54462"></path></svg>', zo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1768469045840" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6989" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M393.846154 64.174932l117.454119 0.399843H512.499805l117.454119-0.399843-10.395939 10.395939c-18.89262 18.89262-28.488872 44.982429-26.28973 71.472081l20.292073 250.502148c2.998829 36.68567 18.092932 72.171808 42.483405 99.661069l34.186646 38.684889-122.252245-0.899648-55.478329-0.399844h-0.99961l-55.478329 0.399844-122.452167 0.799687 34.186646-38.684888c24.390472-27.589223 39.484576-62.9754 42.483405-99.66107l20.292074-250.402187c2.199141-26.589613-7.397111-52.679422-26.289731-71.472081l-10.395939-10.395939m281.889887-64.174932h-0.199922L512.399844 0.599766h-0.799688L348.36392 0h-0.199922c-20.891839 0-39.684498 13.494729-45.582194 33.58688-4.098399 13.994533-1.899258 30.887934 17.79305 47.581414l38.584927 38.584927c5.597813 5.597813 8.39672 13.294807 7.796955 21.091761L346.464662 391.247169c-1.899258 23.190941-11.195627 45.08239-26.589613 62.475596l-61.87583 69.872706c-8.696603 9.796173-13.894572 22.291292-14.394377 35.386177-0.299883 8.996486 1.599375 18.89262 8.596642 27.28934 6.897306 8.296759 17.293245 12.894963 27.989067 12.894963h0.299882l175.931277-1.199532 55.178446 422.834831 0.399844 3.098789 0.399844-3.098789 55.178446-422.834831 175.931277 1.199532h0.299882c10.795783 0 21.191722-4.598204 27.989067-12.894963 6.897306-8.39672 8.796564-18.292854 8.596642-27.28934-0.399844-13.094885-5.697774-25.590004-14.394377-35.386177l-61.87583-69.872706c-15.393987-17.393206-24.690355-39.284654-26.589613-62.475596l-20.292074-250.402187c-0.599766-7.796954 2.199141-15.593909 7.796955-21.091761l38.584927-38.584927c19.692308-16.693479 21.891449-33.58688 17.79305-47.581414-5.997657-19.992191-24.790316-33.58688-45.682155-33.58688z" p-id="6990"></path></svg>', $o = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763569611105" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="87406" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M840 192h-56v-72c0-13.3-10.7-24-24-24H168c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h592c13.3 0 24-10.7 24-24V256h32v200H465c-22.1 0-40 17.9-40 40v136h-44c-4.4 0-8 3.6-8 8v228c0 0.6 0.1 1.3 0.2 1.9-0.1 2-0.2 4.1-0.2 6.1 0 46.4 37.6 84 84 84s84-37.6 84-84c0-2.1-0.1-4.1-0.2-6.1 0.1-0.6 0.2-1.2 0.2-1.9V640c0-4.4-3.6-8-8-8h-44V520h351c22.1 0 40-17.9 40-40V232c0-22.1-17.9-40-40-40zM720 352H208V160h512v192zM477 876c0 11-9 20-20 20s-20-9-20-20V696h40v180z" p-id="87407"></path></svg>', So = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763473363174" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="28322" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M957.610667 507.434667L603.221333 158.293333a7.893333 7.893333 0 0 0-11.221333 0L353.28 393.386667a8.021333 8.021333 0 0 0-0.085333 11.306666l0.085333 0.128 40.021333 39.381334-117.205333 115.285333a8.021333 8.021333 0 0 0-0.085333 11.306667l0.085333 0.128 39.509333 38.869333-189.098666 187.008H72.106667a8.106667 8.106667 0 0 0-8.106667 8.021333v55.168c0 4.394667 3.584 8.021333 8.021333 8.021334H416.853333c2.133333 0 4.096-0.810667 5.589334-2.304l76.117333-75.605334 40.405333 39.808a7.936 7.936 0 0 0 11.178667 0l117.12-115.626666 40.106667 39.509333a7.893333 7.893333 0 0 0 11.178666 0l238.72-235.178667a7.68 7.68 0 0 0 0.298667-11.221333z m-567.808 288.853333H229.546667l134.4-133.034667 80.128 78.933334-54.314667 54.058666z m154.794666-62.122667l-171.392-168.917333 68.608-67.584 171.392 168.874667-68.608 67.626666z m168.533334-76.117333l-262.826667-258.901333 147.285333-145.066667 262.826667 258.986667-147.328 144.981333z" fill="#999999" p-id="28323"></path></svg>', To = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763480451042" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="58395" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M938.666667 553.92V768c0 64.8-52.533333 117.333333-117.333334 117.333333H202.666667c-64.8 0-117.333333-52.533333-117.333334-117.333333V256c0-64.8 52.533333-117.333333 117.333334-117.333333h618.666666c64.8 0 117.333333 52.533333 117.333334 117.333333v297.92z m-64-74.624V256a53.333333 53.333333 0 0 0-53.333334-53.333333H202.666667a53.333333 53.333333 0 0 0-53.333334 53.333333v344.48A290.090667 290.090667 0 0 1 192 597.333333a286.88 286.88 0 0 1 183.296 65.845334C427.029333 528.384 556.906667 437.333333 704 437.333333c65.706667 0 126.997333 16.778667 170.666667 41.962667z m0 82.24c-5.333333-8.32-21.130667-21.653333-43.648-32.917333C796.768 511.488 753.045333 501.333333 704 501.333333c-121.770667 0-229.130667 76.266667-270.432 188.693334-2.730667 7.445333-7.402667 20.32-13.994667 38.581333-7.68 21.301333-34.453333 28.106667-51.370666 13.056-16.437333-14.634667-28.554667-25.066667-36.138667-31.146667A222.890667 222.890667 0 0 0 192 661.333333c-14.464 0-28.725333 1.365333-42.666667 4.053334V768a53.333333 53.333333 0 0 0 53.333334 53.333333h618.666666a53.333333 53.333333 0 0 0 53.333334-53.333333V561.525333zM320 480a96 96 0 1 1 0-192 96 96 0 0 1 0 192z m0-64a32 32 0 1 0 0-64 32 32 0 0 0 0 64z" fill="#000000" p-id="58396"></path></svg>', Eo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763480387136" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="57289" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M213.972 214.906l0.934-0.934c27.606-27.606 68.674-30.581 92.168-7.087l225.23 225.23c29.72-40.254 30.733-93.311-0.599-124.643L345.639 121.406c-35.132-35.132-97.076-30.148-138.356 11.132l-74.744 74.744c-41.28 41.28-46.264 103.224-11.132 138.356l186.065 186.065c31.332 31.332 84.389 30.319 124.643 0.599l-225.23-225.23c-23.494-23.492-20.519-64.56 7.087-92.166zM808.745 809.679l0.934-0.934c27.606-27.606 31.18-68.074 7.686-91.568l-225.23-225.23c40.254-29.72 93.311-30.733 124.643 0.599l186.065 186.065c35.132 35.132 29.548 96.477-11.732 137.757l-74.744 74.744c-41.28 41.28-102.625 46.863-137.757 11.732L492.546 716.779c-31.332-31.332-31.909-82.799-0.599-124.643l225.23 225.23c23.494 23.494 63.962 19.92 91.568-7.687z" fill="#666666" p-id="57290"></path><path d="M627.123 628.713c-12.296 12.296-32.232 12.296-44.528 0L394.938 441.057c-12.296-12.296-12.296-32.232 0-44.528s32.232-12.296 44.528 0l187.656 187.656c12.297 12.296 12.297 32.232 0.001 44.528z" fill="#666666" p-id="57291"></path></svg>', Do = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763562537529" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="80294" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M107.5 736c28.6 0 52.2 7.1 70.2 21.4 18.5 15.1 27.9 36 27.9 61.7 0 22.9-8.4 41.3-24.7 54.1 16 12 29.6 32.8 29.6 57.3 0 27-9.7 49.7-28.8 67.2-19.6 17.5-45 26.3-75.6 26.3-29.2 0-53.4-7.8-71.7-23.3C14 983.6 2.4 958.4 0 926.1v-14.5h69.7V925c0.6 12.9 4.2 21.8 10.9 27.8 6.2 5.7 14.4 8.6 25.2 8.6 12.1 0 21.3-3.2 27.6-9.2 5.6-5.6 8.2-11.9 8.2-19.9 0-10-2.7-16.6-7.9-20.8-5.4-4.5-14.5-6.9-27.8-6.9H74.3v-58.9h31.5c11.6 0 19.8-2.2 24.5-6.1 4.1-3.5 6.3-9.2 6.3-17.4 0-8.3-2-13.9-5.3-17-4.6-3.9-12.3-6.1-23.5-6.1-11.5 0-19.3 2.5-24.8 7.4-5.5 4.8-8.9 12.8-10 23.7v13.4H5.1l-0.2-7v-8.2c2.4-29.1 13.4-52.1 32.7-68.2C55.8 744 79.3 736 107.5 736z m916.5 96v128H384V832h640zM106.9 368c28 0 51.7 8.4 70.5 25.1 18.8 17.1 28.2 39.1 28.2 65.8 0 25.4-9.7 48.8-28.8 70-10.4 11.1-27.9 24.8-55.3 43.2-10.1 6.6-18.5 12.9-25.2 18.7h109.3V656l-7.1 0.1-185.2-0.1c-4.5-0.6-7.5-1.6-9.8-3.8-2.4-2.4-3.2-5.6-3.5-10.4 0-29.7 9.6-55.5 28.8-77.1 10.3-11.8 30.6-28.1 61.1-49.1 14.4-10 25.7-19.2 32.4-26.3 8.9-10 13.2-20.3 13.2-30.8 0-9.8-2.3-16.6-6.4-20.4-4.5-4.1-12.2-6.3-23.6-6.3-11.3 0-18.8 3.4-24.1 10.6-5.7 7.3-9.2 19.8-9.9 37.7-0.5 3.9-1.6 6.8-3.8 9-2.1 2-4.8 3-10.4 4l-43-0.1c-4.2-0.8-7.1-1.9-9.2-4-2.2-2.3-3.2-5.3-3.7-10.3 0.4-32.1 9.9-58.3 28.6-78.2 19.6-21.6 45.5-32.5 76.9-32.5z m917.1 80v128H384V448h640zM146.6 0v288H75.1V94.2c-16.7 10.2-35.9 18.3-50.9 20.3l-8.2 1.6V46l4.8-2C39.3 37.3 52.5 31.7 60 27.6 71 20.9 82.1 11.7 96.3 0.1h50.3zM1024 64v128H384V64h640z" fill="#333333" p-id="80295"></path></svg>', Fo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763480239307" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="56277" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M849.6 231v109.5c-46.4 14.9-84.6 41.5-114.4 81.3-29.9 36.5-44.8 76.3-43.1 116.1 8.3-5 21.6-6.6 41.5-6.6 34.8 0 64.7 11.6 91.2 36.5 23.2 24.9 36.5 56.4 36.5 94.5S848 732 821.5 756.8C795 780 761.8 793.3 722 793.3c-46.4 0-82.9-19.9-112.8-56.4s-43.1-84.6-43.1-141c0-89.6 24.9-165.8 76.3-230.5C692 299 761.7 254.2 849.6 231z m-403 0v109.5c-46.4 14.9-82.9 41.5-112.8 81.3-31.5 36.5-46.4 76.3-44.8 116.1 8.3-5 21.6-6.6 41.5-6.6 34.8 0 64.7 11.6 89.6 36.5 24.9 24.9 38.1 56.4 38.1 94.5s-13.3 69.7-38.1 94.5c-26.5 23.2-61.4 36.5-101.2 36.5-46.4 0-82.9-19.9-111.1-56.4-29.9-36.5-44.8-84.6-44.8-141 0-89.6 24.9-165.8 76.3-230.5C289 299 358.7 254.2 446.6 231z" p-id="56278"></path></svg>', Ao = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763480808376" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="61532" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M959.825 384.002V191.94c0-70.692-57.308-128-128-128H191.94c-70.692 0-128 57.308-128 128v639.885c0 70.692 57.308 128 128 128h639.885c70.692 0 128-57.308 128-128V384.002z m-813.16-237.337a63.738 63.738 0 0 1 45.336-18.785H832a63.962 63.962 0 0 1 63.886 64.121v128.061H127.88v-128.06a63.738 63.738 0 0 1 18.785-45.337z m269.127 461.308v-223.97h192.181v223.97H415.792z m192.181 63.94v223.972H415.792V671.914h192.181z m-256.121-63.94H127.88v-223.97h223.972v223.97zM146.665 877.21a63.467 63.467 0 0 1-18.785-45.21V671.914h223.972v223.97h-159.85a63.626 63.626 0 0 1-45.337-18.675z m749.22-45.21a63.763 63.763 0 0 1-63.886 63.886H671.914V671.914h223.97v160.085z m0-224.026H671.914v-223.97h223.97v223.97z" p-id="61533"></path></svg>', Bo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763480994147" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="73821" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M933.529779 1022.701142H87.673207c-48.357498 0-87.523075-39.165577-87.523075-87.523076V1.798419h729.259049c48.357498 0 87.523075 39.165577 87.523076 87.523076v320.818031h204.220509V935.178066c-0.099912 48.357498-39.265489 87.523075-87.622987 87.523076z m-175.046151-904.205289c0-32.171724-26.077081-58.348717-58.348717-58.348717H58.498849v845.856572c0 32.171724 26.077081 58.348717 58.348717 58.348717h583.387257c32.171724 0 58.348717-26.077081 58.348717-58.348717V118.495853zM962.704137 468.588155h-145.871792v495.864182h87.523075c32.171724 0 58.348717-26.077081 58.348717-58.348717V468.588155z m-729.25905 0h379.166748v58.348717H233.445087V468.588155z m0-233.394868h379.166748v58.348717H233.445087v-58.348717z m262.569227 525.03854H233.445087v-58.348716h262.469314v58.348716z m0 0" p-id="73822"></path></svg>', Ho = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763477549677" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="31202" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M828.6 75C889.572 75 939 124.428 939 185.4v676.2c0 60.972-49.428 110.4-110.4 110.4H152.4C91.428 972 42 922.572 42 861.6V185.4C42 124.428 91.428 75 152.4 75z m0 59.8H152.4c-27.946 0-50.6 22.654-50.6 50.6v676.2c0 27.946 22.654 50.6 50.6 50.6h676.2c27.946 0 50.6-22.654 50.6-50.6V185.4c0-27.946-22.654-50.6-50.6-50.6z m-20.56 167.48c11.48 11.504 11.641 30.022 0.502 41.725l-0.548 0.56L477.473 674.37c-11.251 11.227-29.274 11.663-41.05 1.123l-0.574-0.527L260.695 509.93c-12.018-11.325-12.581-30.248-1.257-42.266 11.145-11.828 29.65-12.56 41.69-1.788l0.577 0.53L455.756 611.56l310-309.325c11.689-11.664 30.62-11.644 42.284 0.045z" fill="#333333" p-id="31203"></path></svg>', Vo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763480631673" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="60480" xmlns:xlink="http://www.w3.org/1999/xlink" width="18" height="18"><path d="M960 192h-28.384c-16.8 0-32.928 6.624-44.928 18.432L800 295.936V256a96 96 0 0 0-96-96H96C43.072 160 0 203.04 0 256v512a96 96 0 0 0 96 96h608c52.992 0 96-43.008 96-96v-39.072l86.688 85.504c12 11.808 28.128 18.432 44.928 18.432H960a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64zM96 800c-17.664 0-32-14.368-32-32V256a32 32 0 0 1 32-32h608c17.632 0 32 14.336 32 32v512c0 17.632-14.368 32-32 32H96z m864-31.136h-32l-128-128V640l-32-32v-192l160-160h32v512.864z" fill="#333333" p-id="60481"></path></svg>', Uo = ["innerHTML"], Io = /* @__PURE__ */ st({
|
|
1113
1113
|
__name: "SvgIcon",
|
|
1114
1114
|
props: {
|
|
1115
1115
|
name: {},
|
|
@@ -1130,8 +1130,8 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1130
1130
|
"/src/svg/fixed.svg": zo,
|
|
1131
1131
|
"/src/svg/formatBrush.svg": $o,
|
|
1132
1132
|
"/src/svg/highBg.svg": So,
|
|
1133
|
-
"/src/svg/img.svg":
|
|
1134
|
-
"/src/svg/link.svg":
|
|
1133
|
+
"/src/svg/img.svg": To,
|
|
1134
|
+
"/src/svg/link.svg": Eo,
|
|
1135
1135
|
"/src/svg/orderedList.svg": Do,
|
|
1136
1136
|
"/src/svg/quote.svg": Fo,
|
|
1137
1137
|
"/src/svg/table.svg": Ao,
|
|
@@ -1140,8 +1140,8 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1140
1140
|
"/src/svg/video.svg": Vo
|
|
1141
1141
|
}), i = (() => {
|
|
1142
1142
|
const _ = {};
|
|
1143
|
-
return Object.entries(e).forEach(([
|
|
1144
|
-
const C = (
|
|
1143
|
+
return Object.entries(e).forEach(([h, x]) => {
|
|
1144
|
+
const C = (h.split("/src/svg/")[1] || h).replace(/\.svg$/i, "");
|
|
1145
1145
|
_[C] = x;
|
|
1146
1146
|
const d = C.split("/").pop();
|
|
1147
1147
|
d && (_[d] = x);
|
|
@@ -1152,8 +1152,8 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1152
1152
|
});
|
|
1153
1153
|
function b(_) {
|
|
1154
1154
|
if (!_) return "";
|
|
1155
|
-
let
|
|
1156
|
-
return
|
|
1155
|
+
let h = _.replace(/<\?xml[\s\S]*?\?>/gi, "").replace(/<!DOCTYPE[\s\S]*?>/gi, "");
|
|
1156
|
+
return h = h.replace(/<svg([^>]*)>/i, (x, $) => `<svg${$.replace(/\s(width|height)="[^"]*"/gi, "").replace(/\s(fill|stroke)="[^"]*"/gi, "")} width="1em" height="1em" preserveAspectRatio="xMidYMid meet" fill="currentColor" stroke="currentColor">`), h = h.replace(/fill="(?!none)[^"]*"/gi, 'fill="currentColor"'), h = h.replace(/stroke="(?!none)[^"]*"/gi, 'stroke="currentColor"'), h = h.replace(/fill='(?!none)[^']*'/gi, 'fill="currentColor"'), h = h.replace(/stroke='(?!none)[^']*'/gi, 'stroke="currentColor"'), h;
|
|
1157
1157
|
}
|
|
1158
1158
|
const f = ct(() => b(n.value));
|
|
1159
1159
|
function v(_) {
|
|
@@ -1161,14 +1161,14 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1161
1161
|
return typeof _ == "number" ? `${_}px` : _;
|
|
1162
1162
|
}
|
|
1163
1163
|
const M = ct(() => {
|
|
1164
|
-
const _ = {},
|
|
1165
|
-
|
|
1164
|
+
const _ = {}, h = v(c.size);
|
|
1165
|
+
h && (_.fontSize = h), c.color && (_.color = c.color);
|
|
1166
1166
|
const x = o.style ?? void 0;
|
|
1167
1167
|
return [_, x].filter(Boolean);
|
|
1168
1168
|
});
|
|
1169
|
-
return (_,
|
|
1170
|
-
class: J(["svg-icon",
|
|
1171
|
-
style:
|
|
1169
|
+
return (_, h) => (B(), j("span", {
|
|
1170
|
+
class: J(["svg-icon", p(o).class]),
|
|
1171
|
+
style: pt(M.value),
|
|
1172
1172
|
innerHTML: f.value
|
|
1173
1173
|
}, null, 14, Uo));
|
|
1174
1174
|
}
|
|
@@ -1225,23 +1225,23 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1225
1225
|
function _() {
|
|
1226
1226
|
e.value || window.dispatchEvent(new CustomEvent(Yt, { detail: { id: te } })), e.value = !e.value;
|
|
1227
1227
|
}
|
|
1228
|
-
function
|
|
1228
|
+
function h() {
|
|
1229
1229
|
e.value = !1;
|
|
1230
1230
|
}
|
|
1231
1231
|
function x() {
|
|
1232
1232
|
i.value = !i.value;
|
|
1233
1233
|
}
|
|
1234
1234
|
function $(y) {
|
|
1235
|
-
var
|
|
1236
|
-
(
|
|
1235
|
+
var T;
|
|
1236
|
+
(T = c.editor) == null || T.chain().focus().setMark("textStyle", { backgroundColor: y }).run(), v.value = y, k(y), h();
|
|
1237
1237
|
}
|
|
1238
1238
|
function C() {
|
|
1239
1239
|
var y;
|
|
1240
|
-
(y = c.editor) == null || y.chain().focus().setMark("textStyle", { backgroundColor: null }).removeEmptyTextStyle().run(),
|
|
1240
|
+
(y = c.editor) == null || y.chain().focus().setMark("textStyle", { backgroundColor: null }).removeEmptyTextStyle().run(), h();
|
|
1241
1241
|
}
|
|
1242
1242
|
function d(y) {
|
|
1243
|
-
const
|
|
1244
|
-
H && !H.contains(
|
|
1243
|
+
const T = y.target, H = n.value;
|
|
1244
|
+
H && !H.contains(T) && h();
|
|
1245
1245
|
}
|
|
1246
1246
|
function a() {
|
|
1247
1247
|
}
|
|
@@ -1249,53 +1249,53 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1249
1249
|
try {
|
|
1250
1250
|
const y = localStorage.getItem("md_bg_recent");
|
|
1251
1251
|
if (!y) return [];
|
|
1252
|
-
const
|
|
1253
|
-
return Array.isArray(
|
|
1252
|
+
const T = JSON.parse(y);
|
|
1253
|
+
return Array.isArray(T) ? T.slice(0, 12) : [];
|
|
1254
1254
|
} catch {
|
|
1255
1255
|
return [];
|
|
1256
1256
|
}
|
|
1257
1257
|
}
|
|
1258
1258
|
function k(y) {
|
|
1259
|
-
const
|
|
1260
|
-
f.value =
|
|
1259
|
+
const T = [y, ...f.value.filter((H) => H !== y)];
|
|
1260
|
+
f.value = T.slice(0, 12);
|
|
1261
1261
|
try {
|
|
1262
1262
|
localStorage.setItem("md_bg_recent", JSON.stringify(f.value));
|
|
1263
1263
|
} catch {
|
|
1264
1264
|
}
|
|
1265
1265
|
}
|
|
1266
|
-
let
|
|
1266
|
+
let m = [];
|
|
1267
1267
|
function D() {
|
|
1268
1268
|
const y = c.editor;
|
|
1269
|
-
y && (
|
|
1269
|
+
y && (m = [
|
|
1270
1270
|
{ event: "selectionUpdate", handler: a },
|
|
1271
1271
|
{ event: "transaction", handler: a },
|
|
1272
1272
|
{ event: "update", handler: a }
|
|
1273
|
-
],
|
|
1274
|
-
y.on(
|
|
1273
|
+
], m.forEach(({ event: T, handler: H }) => {
|
|
1274
|
+
y.on(T, H);
|
|
1275
1275
|
}));
|
|
1276
1276
|
}
|
|
1277
|
-
|
|
1277
|
+
ht(() => {
|
|
1278
1278
|
document.addEventListener("click", d), window.addEventListener(Yt, A), D();
|
|
1279
1279
|
}), wt(() => {
|
|
1280
1280
|
document.removeEventListener("click", d), window.removeEventListener(Yt, A);
|
|
1281
1281
|
const y = c.editor;
|
|
1282
|
-
y &&
|
|
1283
|
-
y.off(
|
|
1284
|
-
}),
|
|
1285
|
-
}),
|
|
1282
|
+
y && m.forEach(({ event: T, handler: H }) => {
|
|
1283
|
+
y.off(T, H);
|
|
1284
|
+
}), m = [];
|
|
1285
|
+
}), gt(
|
|
1286
1286
|
() => c.editor,
|
|
1287
|
-
(y,
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
}),
|
|
1287
|
+
(y, T) => {
|
|
1288
|
+
T && m.forEach(({ event: H, handler: O }) => {
|
|
1289
|
+
T.off(H, O);
|
|
1290
|
+
}), m = [], D();
|
|
1291
1291
|
}
|
|
1292
1292
|
);
|
|
1293
1293
|
function A(y) {
|
|
1294
1294
|
var H;
|
|
1295
1295
|
((H = y.detail) == null ? void 0 : H.id) !== te && (e.value = !1);
|
|
1296
1296
|
}
|
|
1297
|
-
const
|
|
1298
|
-
return (y,
|
|
1297
|
+
const E = ct(() => v.value ? v.value : M === "dark" ? "#fff" : "#000");
|
|
1298
|
+
return (y, T) => (B(), j("div", {
|
|
1299
1299
|
class: "bg-color-select-wrapper",
|
|
1300
1300
|
ref_key: "rootRef",
|
|
1301
1301
|
ref: n
|
|
@@ -1304,29 +1304,29 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1304
1304
|
class: "icon icon-dropdown",
|
|
1305
1305
|
"aria-expanded": e.value
|
|
1306
1306
|
}, [
|
|
1307
|
-
r(
|
|
1307
|
+
r(p(G), {
|
|
1308
1308
|
text: "背景色",
|
|
1309
1309
|
placement: "bottom"
|
|
1310
1310
|
}, {
|
|
1311
1311
|
default: N(() => [
|
|
1312
1312
|
l("div", {
|
|
1313
1313
|
class: "icon-stack hoverable",
|
|
1314
|
-
onClick:
|
|
1314
|
+
onClick: T[0] || (T[0] = I((H) => $(v.value), ["stop"]))
|
|
1315
1315
|
}, [
|
|
1316
1316
|
r(ot, {
|
|
1317
1317
|
name: "highBg",
|
|
1318
1318
|
size: 17,
|
|
1319
|
-
color:
|
|
1319
|
+
color: E.value
|
|
1320
1320
|
}, null, 8, ["color"]),
|
|
1321
1321
|
l("div", {
|
|
1322
1322
|
class: "underline",
|
|
1323
|
-
style:
|
|
1323
|
+
style: pt({ background: v.value })
|
|
1324
1324
|
}, null, 4)
|
|
1325
1325
|
])
|
|
1326
1326
|
]),
|
|
1327
1327
|
_: 1
|
|
1328
1328
|
}),
|
|
1329
|
-
r(
|
|
1329
|
+
r(p(G), {
|
|
1330
1330
|
text: "更多背景色",
|
|
1331
1331
|
placement: "bottom"
|
|
1332
1332
|
}, {
|
|
@@ -1335,7 +1335,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1335
1335
|
class: "arrow hoverable",
|
|
1336
1336
|
onClick: I(_, ["stop"])
|
|
1337
1337
|
}, [
|
|
1338
|
-
r(
|
|
1338
|
+
r(p(Ot), {
|
|
1339
1339
|
theme: "filled",
|
|
1340
1340
|
strokeWidth: 3,
|
|
1341
1341
|
size: "12"
|
|
@@ -1349,7 +1349,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1349
1349
|
default: N(() => [
|
|
1350
1350
|
e.value ? (B(), j("div", jo, [
|
|
1351
1351
|
l("div", Wo, [
|
|
1352
|
-
|
|
1352
|
+
T[4] || (T[4] = l("div", { class: "section-title" }, "无填充色", -1)),
|
|
1353
1353
|
l("div", Ro, [
|
|
1354
1354
|
l("div", {
|
|
1355
1355
|
class: "swatch",
|
|
@@ -1365,12 +1365,12 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1365
1365
|
])
|
|
1366
1366
|
]),
|
|
1367
1367
|
l("div", Po, [
|
|
1368
|
-
|
|
1368
|
+
T[5] || (T[5] = l("div", { class: "section-title" }, "默认", -1)),
|
|
1369
1369
|
l("div", No, [
|
|
1370
1370
|
(B(!0), j(yt, null, bt(o.slice(0, 9), (H) => (B(), j("div", {
|
|
1371
1371
|
key: H,
|
|
1372
1372
|
class: "swatch",
|
|
1373
|
-
style:
|
|
1373
|
+
style: pt({ background: H }),
|
|
1374
1374
|
onClick: I((O) => $(H), ["stop"])
|
|
1375
1375
|
}, [
|
|
1376
1376
|
H === v.value ? (B(), j("span", Yo, "✓")) : Z("", !0)
|
|
@@ -1378,15 +1378,15 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1378
1378
|
])
|
|
1379
1379
|
]),
|
|
1380
1380
|
l("div", Ko, [
|
|
1381
|
-
|
|
1381
|
+
T[6] || (T[6] = l("div", { class: "section-title" }, "常用颜色", -1)),
|
|
1382
1382
|
l("div", Zo, [
|
|
1383
1383
|
(B(!0), j(yt, null, bt(o.slice(9), (H) => (B(), j("div", {
|
|
1384
1384
|
key: H,
|
|
1385
1385
|
class: "swatch",
|
|
1386
|
-
style:
|
|
1386
|
+
style: pt({ background: H }),
|
|
1387
1387
|
onClick: I((O) => $(H), ["stop"])
|
|
1388
1388
|
}, [
|
|
1389
|
-
H === v.value ? (B(), zt(
|
|
1389
|
+
H === v.value ? (B(), zt(p(Ut), {
|
|
1390
1390
|
key: 0,
|
|
1391
1391
|
theme: "filled",
|
|
1392
1392
|
strokeWidth: 3
|
|
@@ -1395,12 +1395,12 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1395
1395
|
])
|
|
1396
1396
|
]),
|
|
1397
1397
|
f.value.length ? (B(), j("div", Jo, [
|
|
1398
|
-
|
|
1398
|
+
T[7] || (T[7] = l("div", { class: "section-title" }, "最近使用自定义颜色", -1)),
|
|
1399
1399
|
l("div", Xo, [
|
|
1400
1400
|
(B(!0), j(yt, null, bt(f.value, (H) => (B(), j("div", {
|
|
1401
1401
|
key: H,
|
|
1402
1402
|
class: "swatch",
|
|
1403
|
-
style:
|
|
1403
|
+
style: pt({ background: H }),
|
|
1404
1404
|
onClick: I((O) => $(H), ["stop"])
|
|
1405
1405
|
}, null, 12, Qo))), 128))
|
|
1406
1406
|
])
|
|
@@ -1418,19 +1418,19 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1418
1418
|
i.value ? (B(), j("div", en, [
|
|
1419
1419
|
$t(l("input", {
|
|
1420
1420
|
type: "color",
|
|
1421
|
-
"onUpdate:modelValue":
|
|
1421
|
+
"onUpdate:modelValue": T[1] || (T[1] = (H) => b.value = H)
|
|
1422
1422
|
}, null, 512), [
|
|
1423
1423
|
[St, b.value]
|
|
1424
1424
|
]),
|
|
1425
1425
|
$t(l("input", {
|
|
1426
1426
|
class: "hex",
|
|
1427
|
-
"onUpdate:modelValue":
|
|
1427
|
+
"onUpdate:modelValue": T[2] || (T[2] = (H) => b.value = H)
|
|
1428
1428
|
}, null, 512), [
|
|
1429
1429
|
[St, b.value]
|
|
1430
1430
|
]),
|
|
1431
1431
|
l("button", {
|
|
1432
1432
|
class: "btn apply",
|
|
1433
|
-
onClick:
|
|
1433
|
+
onClick: T[3] || (T[3] = I((H) => $(b.value), ["stop"]))
|
|
1434
1434
|
}, "应用")
|
|
1435
1435
|
])) : Z("", !0)
|
|
1436
1436
|
])) : Z("", !0)
|
|
@@ -1439,7 +1439,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1439
1439
|
})
|
|
1440
1440
|
], 512));
|
|
1441
1441
|
}
|
|
1442
|
-
}), nn = /* @__PURE__ */ lt(on, [["__scopeId", "data-v-
|
|
1442
|
+
}), nn = /* @__PURE__ */ lt(on, [["__scopeId", "data-v-cb31218d"]]), sn = { class: "image-actions" }, ln = ["aria-disabled", "disabled"], rn = /* @__PURE__ */ st({
|
|
1443
1443
|
__name: "index",
|
|
1444
1444
|
props: {
|
|
1445
1445
|
editor: {},
|
|
@@ -1450,19 +1450,19 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1450
1450
|
const c = xt("theme"), o = t, e = V(!1), i = V(""), n = V(!1), b = V(null), f = () => {
|
|
1451
1451
|
e.value = !e.value;
|
|
1452
1452
|
}, v = () => {
|
|
1453
|
-
var d, a, w, k,
|
|
1453
|
+
var d, a, w, k, m, D;
|
|
1454
1454
|
const C = i.value.trim();
|
|
1455
|
-
C && ((D = (
|
|
1455
|
+
C && ((D = (m = ((k = (a = (d = o.editor) == null ? void 0 : d.chain) == null ? void 0 : (w = a.call(d)).focus) == null ? void 0 : k.call(w)).setImage({ src: C })).run) == null || D.call(m), e.value = !1, i.value = "");
|
|
1456
1456
|
}, M = (C) => {
|
|
1457
1457
|
C.key === "Enter" && v(), C.key === "Escape" && (e.value = !1, i.value = "");
|
|
1458
1458
|
}, _ = () => {
|
|
1459
1459
|
var C;
|
|
1460
1460
|
o.imageUploader && ((C = b.value) == null || C.click());
|
|
1461
|
-
},
|
|
1462
|
-
var k,
|
|
1461
|
+
}, h = async (C) => {
|
|
1462
|
+
var k, m, D, A, E, y, T, H;
|
|
1463
1463
|
const d = C.target, a = (k = d.files) == null ? void 0 : k[0];
|
|
1464
1464
|
if (d.value = "", !a || !o.imageUploader) return;
|
|
1465
|
-
const w = (
|
|
1465
|
+
const w = (m = o.uploadSizeLimit) == null ? void 0 : m.image;
|
|
1466
1466
|
if (typeof w == "number" && w > 0) {
|
|
1467
1467
|
const O = Math.max(1, w) * 1024 * 1024;
|
|
1468
1468
|
if (a.size > O) {
|
|
@@ -1476,7 +1476,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1476
1476
|
try {
|
|
1477
1477
|
n.value = !0;
|
|
1478
1478
|
let O = null;
|
|
1479
|
-
O = URL.createObjectURL(a), (H = (
|
|
1479
|
+
O = URL.createObjectURL(a), (H = (T = ((y = (A = (D = o.editor) == null ? void 0 : D.chain) == null ? void 0 : (E = A.call(D)).focus) == null ? void 0 : y.call(E)).setImage({ src: O, uploading: !0 })).run) == null || H.call(T);
|
|
1480
1480
|
const P = await o.imageUploader(a);
|
|
1481
1481
|
if (typeof P == "string" && P) {
|
|
1482
1482
|
const Y = o.editor, { state: et } = Y, { doc: q } = et;
|
|
@@ -1502,7 +1502,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1502
1502
|
}
|
|
1503
1503
|
}, x = V(null);
|
|
1504
1504
|
let $ = null;
|
|
1505
|
-
return
|
|
1505
|
+
return ht(() => {
|
|
1506
1506
|
$ = (C) => {
|
|
1507
1507
|
if (!e.value) return;
|
|
1508
1508
|
const d = x.value, a = C.target;
|
|
@@ -1516,7 +1516,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1516
1516
|
ref_key: "rootRef",
|
|
1517
1517
|
ref: x
|
|
1518
1518
|
}, [
|
|
1519
|
-
r(
|
|
1519
|
+
r(p(G), {
|
|
1520
1520
|
text: "图片",
|
|
1521
1521
|
placement: "bottom"
|
|
1522
1522
|
}, {
|
|
@@ -1524,7 +1524,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1524
1524
|
r(ot, {
|
|
1525
1525
|
name: "img",
|
|
1526
1526
|
size: 18,
|
|
1527
|
-
color:
|
|
1527
|
+
color: p(c) === "dark" && "#fff"
|
|
1528
1528
|
}, null, 8, ["color"])
|
|
1529
1529
|
]),
|
|
1530
1530
|
_: 1
|
|
@@ -1555,7 +1555,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1555
1555
|
type: "file",
|
|
1556
1556
|
accept: "image/*",
|
|
1557
1557
|
style: { display: "none" },
|
|
1558
|
-
onChange:
|
|
1558
|
+
onChange: h
|
|
1559
1559
|
}, null, 544),
|
|
1560
1560
|
l("div", sn, [
|
|
1561
1561
|
l("button", {
|
|
@@ -1590,24 +1590,24 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1590
1590
|
if (!d) return;
|
|
1591
1591
|
const a = o.editor, w = a == null ? void 0 : a.commands;
|
|
1592
1592
|
if (/youtube\.com|youtu\.be|youtube-nocookie\.com/i.test(d)) {
|
|
1593
|
-
const
|
|
1593
|
+
const m = String(d).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
1594
1594
|
try {
|
|
1595
1595
|
a.chain().focus().insertContent(
|
|
1596
|
-
`<p><a href="${
|
|
1596
|
+
`<p><a href="${m}" target="_blank" rel="noopener noreferrer">${m}</a></p>`
|
|
1597
1597
|
).run();
|
|
1598
1598
|
} catch {
|
|
1599
|
-
a.chain().focus().insertContent(
|
|
1599
|
+
a.chain().focus().insertContent(m).run();
|
|
1600
1600
|
}
|
|
1601
1601
|
} else if (typeof (w == null ? void 0 : w.setVideo) == "function")
|
|
1602
1602
|
a.chain().focus().setVideo({ src: d, HTMLAttributes: { controls: !0, width: 640 } }).run();
|
|
1603
1603
|
else {
|
|
1604
|
-
const
|
|
1604
|
+
const m = String(d).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
1605
1605
|
try {
|
|
1606
1606
|
a.chain().focus().insertContent(
|
|
1607
|
-
`<p><a href="${
|
|
1607
|
+
`<p><a href="${m}" target="_blank" rel="noopener noreferrer">${m}</a></p>`
|
|
1608
1608
|
).run();
|
|
1609
1609
|
} catch {
|
|
1610
|
-
a.chain().focus().insertContent(
|
|
1610
|
+
a.chain().focus().insertContent(m).run();
|
|
1611
1611
|
}
|
|
1612
1612
|
}
|
|
1613
1613
|
e.value = !1, i.value = "";
|
|
@@ -1616,14 +1616,14 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1616
1616
|
}, _ = () => {
|
|
1617
1617
|
var d;
|
|
1618
1618
|
o.videoUploader && ((d = b.value) == null || d.click());
|
|
1619
|
-
},
|
|
1619
|
+
}, h = async (d) => {
|
|
1620
1620
|
var D, A;
|
|
1621
1621
|
const a = d.target, w = (D = a.files) == null ? void 0 : D[0];
|
|
1622
1622
|
if (a.value = "", !w || !o.videoUploader) return;
|
|
1623
1623
|
const k = (A = o.uploadSizeLimit) == null ? void 0 : A.video;
|
|
1624
1624
|
if (typeof k == "number" && k > 0) {
|
|
1625
|
-
const
|
|
1626
|
-
if (w.size >
|
|
1625
|
+
const E = Math.max(1, k) * 1024 * 1024;
|
|
1626
|
+
if (w.size > E) {
|
|
1627
1627
|
try {
|
|
1628
1628
|
window.alert(`视频文件大小超限(${(w.size / 1024 / 1024).toFixed(2)}MB > ${k}MB)`);
|
|
1629
1629
|
} catch {
|
|
@@ -1631,35 +1631,35 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1631
1631
|
return;
|
|
1632
1632
|
}
|
|
1633
1633
|
}
|
|
1634
|
-
let
|
|
1634
|
+
let m = null;
|
|
1635
1635
|
try {
|
|
1636
1636
|
n.value = !0;
|
|
1637
|
-
const
|
|
1638
|
-
|
|
1637
|
+
const E = o.editor, y = E == null ? void 0 : E.commands;
|
|
1638
|
+
m = URL.createObjectURL(w);
|
|
1639
1639
|
try {
|
|
1640
1640
|
if (typeof (y == null ? void 0 : y.setVideo) == "function")
|
|
1641
|
-
|
|
1642
|
-
src:
|
|
1641
|
+
E.chain().focus().setVideo({
|
|
1642
|
+
src: m,
|
|
1643
1643
|
HTMLAttributes: { controls: !0, width: 640, uploading: !0 }
|
|
1644
1644
|
}).run();
|
|
1645
1645
|
else {
|
|
1646
|
-
const H = String(
|
|
1646
|
+
const H = String(m).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
1647
1647
|
try {
|
|
1648
|
-
|
|
1648
|
+
E.chain().focus().insertContent(
|
|
1649
1649
|
`<p><a href="${H}" target="_blank" rel="noopener noreferrer">${H}</a></p>`
|
|
1650
1650
|
).run();
|
|
1651
1651
|
} catch {
|
|
1652
|
-
|
|
1652
|
+
E.chain().focus().insertContent(H).run();
|
|
1653
1653
|
}
|
|
1654
1654
|
}
|
|
1655
1655
|
} catch {
|
|
1656
1656
|
}
|
|
1657
|
-
const
|
|
1658
|
-
|
|
1657
|
+
const T = await o.videoUploader(w);
|
|
1658
|
+
m && x(m, T), e.value = !1, i.value = "";
|
|
1659
1659
|
} finally {
|
|
1660
1660
|
n.value = !1;
|
|
1661
1661
|
try {
|
|
1662
|
-
|
|
1662
|
+
m && URL.revokeObjectURL(m);
|
|
1663
1663
|
} catch {
|
|
1664
1664
|
}
|
|
1665
1665
|
}
|
|
@@ -1667,21 +1667,21 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1667
1667
|
function x(d, a) {
|
|
1668
1668
|
const w = o.editor;
|
|
1669
1669
|
if (!w) return;
|
|
1670
|
-
const { state: k } = w, { doc:
|
|
1670
|
+
const { state: k } = w, { doc: m } = k;
|
|
1671
1671
|
let D = null;
|
|
1672
|
-
if (
|
|
1673
|
-
var y,
|
|
1674
|
-
return ((y = A.type) == null ? void 0 : y.name) === "video" && ((
|
|
1672
|
+
if (m.descendants((A, E) => {
|
|
1673
|
+
var y, T;
|
|
1674
|
+
return ((y = A.type) == null ? void 0 : y.name) === "video" && ((T = A.attrs) == null ? void 0 : T.src) === d ? (D = E, !1) : !0;
|
|
1675
1675
|
}), D != null) {
|
|
1676
|
-
const A =
|
|
1677
|
-
if (!A || !
|
|
1678
|
-
const y = { ...A.attrs || {}, src: a, uploading: null },
|
|
1679
|
-
w.view.dispatch(
|
|
1676
|
+
const A = m.nodeAt(D), E = k.schema.nodes.video;
|
|
1677
|
+
if (!A || !E) return;
|
|
1678
|
+
const y = { ...A.attrs || {}, src: a, uploading: null }, T = k.tr.setNodeMarkup(D, E, y, A.marks);
|
|
1679
|
+
w.view.dispatch(T);
|
|
1680
1680
|
}
|
|
1681
1681
|
}
|
|
1682
1682
|
const $ = V(null);
|
|
1683
1683
|
let C = null;
|
|
1684
|
-
return
|
|
1684
|
+
return ht(() => {
|
|
1685
1685
|
C = (d) => {
|
|
1686
1686
|
if (!e.value) return;
|
|
1687
1687
|
const a = $.value, w = d.target;
|
|
@@ -1695,7 +1695,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1695
1695
|
ref_key: "rootRef",
|
|
1696
1696
|
ref: $
|
|
1697
1697
|
}, [
|
|
1698
|
-
r(
|
|
1698
|
+
r(p(G), {
|
|
1699
1699
|
text: "视频",
|
|
1700
1700
|
placement: "bottom"
|
|
1701
1701
|
}, {
|
|
@@ -1703,7 +1703,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1703
1703
|
r(ot, {
|
|
1704
1704
|
name: "video",
|
|
1705
1705
|
size: 16,
|
|
1706
|
-
color:
|
|
1706
|
+
color: p(c) === "dark" && "#fff"
|
|
1707
1707
|
}, null, 8, ["color"])
|
|
1708
1708
|
]),
|
|
1709
1709
|
_: 1
|
|
@@ -1734,7 +1734,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1734
1734
|
type: "file",
|
|
1735
1735
|
accept: "video/*,application/x-mpegURL",
|
|
1736
1736
|
style: { display: "none" },
|
|
1737
|
-
onChange:
|
|
1737
|
+
onChange: h
|
|
1738
1738
|
}, null, 544),
|
|
1739
1739
|
l("div", cn, [
|
|
1740
1740
|
l("button", {
|
|
@@ -1775,7 +1775,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1775
1775
|
const o = t, e = V(!1), i = V("find"), n = V(""), b = V(""), f = V([]), v = V(0), M = ct(() => {
|
|
1776
1776
|
const O = f.value.length;
|
|
1777
1777
|
return !n.value || !O ? "0/0" : `${Math.min(Math.max(v.value + 1, 1), O)}/${O}`;
|
|
1778
|
-
}), _ = typeof navigator < "u" && navigator.platform.includes("Mac"),
|
|
1778
|
+
}), _ = typeof navigator < "u" && navigator.platform.includes("Mac"), h = ct(() => _ ? "⌘ F / ⌥ ⌘ F" : "Ctrl F / Ctrl H"), x = () => e.value = !e.value, $ = () => e.value = !1;
|
|
1779
1779
|
function C() {
|
|
1780
1780
|
var O;
|
|
1781
1781
|
return ((O = o.editor) == null ? void 0 : O.view) || null;
|
|
@@ -1791,8 +1791,8 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1791
1791
|
for (; ; ) {
|
|
1792
1792
|
const nt = Q.indexOf(P, rt);
|
|
1793
1793
|
if (nt === -1) break;
|
|
1794
|
-
const ut = O.posAtDOM(dt, nt),
|
|
1795
|
-
typeof ut == "number" && typeof
|
|
1794
|
+
const ut = O.posAtDOM(dt, nt), Tt = O.posAtDOM(dt, nt + P.length);
|
|
1795
|
+
typeof ut == "number" && typeof Tt == "number" && f.value.push({ from: ut, to: Tt }), rt = nt + P.length;
|
|
1796
1796
|
}
|
|
1797
1797
|
}
|
|
1798
1798
|
Mt(() => {
|
|
@@ -1808,7 +1808,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1808
1808
|
P.chain().focus().setTextSelection({ from: q.from, to: q.to }).run();
|
|
1809
1809
|
}
|
|
1810
1810
|
const w = () => f.value.length && a(v.value + 1), k = () => f.value.length && a(v.value - 1);
|
|
1811
|
-
function
|
|
1811
|
+
function m() {
|
|
1812
1812
|
const O = o.editor;
|
|
1813
1813
|
if (!O || !f.value.length) return;
|
|
1814
1814
|
const P = f.value[v.value], Y = O.state.tr.insertText(b.value, P.from, P.to);
|
|
@@ -1827,19 +1827,19 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1827
1827
|
function A(O) {
|
|
1828
1828
|
n.value = O.target.value, d();
|
|
1829
1829
|
}
|
|
1830
|
-
function
|
|
1830
|
+
function E(O) {
|
|
1831
1831
|
O.key === "Enter" && w(), O.key === "Escape" && $();
|
|
1832
1832
|
}
|
|
1833
1833
|
const y = V(null);
|
|
1834
|
-
let
|
|
1835
|
-
|
|
1836
|
-
|
|
1834
|
+
let T = null;
|
|
1835
|
+
ht(() => {
|
|
1836
|
+
T = (O) => {
|
|
1837
1837
|
if (!e.value) return;
|
|
1838
1838
|
const P = y.value, Y = O.target;
|
|
1839
1839
|
P && Y && !P.contains(Y) && $();
|
|
1840
|
-
}, document.addEventListener("mousedown",
|
|
1840
|
+
}, document.addEventListener("mousedown", T, !0);
|
|
1841
1841
|
}), wt(() => {
|
|
1842
|
-
|
|
1842
|
+
T && (document.removeEventListener("mousedown", T, !0), T = null);
|
|
1843
1843
|
});
|
|
1844
1844
|
function H(O) {
|
|
1845
1845
|
O && (i.value = O), e.value = !0, Mt(d);
|
|
@@ -1850,13 +1850,13 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1850
1850
|
ref: y,
|
|
1851
1851
|
onClick: x
|
|
1852
1852
|
}, [
|
|
1853
|
-
r(
|
|
1853
|
+
r(p(G), {
|
|
1854
1854
|
text: "查找替换",
|
|
1855
|
-
shortcut:
|
|
1855
|
+
shortcut: h.value,
|
|
1856
1856
|
placement: "bottom"
|
|
1857
1857
|
}, {
|
|
1858
1858
|
default: N(() => [
|
|
1859
|
-
r(
|
|
1859
|
+
r(p(je), {
|
|
1860
1860
|
theme: "outline",
|
|
1861
1861
|
strokeWidth: 3
|
|
1862
1862
|
})
|
|
@@ -1892,7 +1892,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1892
1892
|
value: n.value,
|
|
1893
1893
|
placeholder: "输入关键字",
|
|
1894
1894
|
onInput: A,
|
|
1895
|
-
onKeydown:
|
|
1895
|
+
onKeydown: E
|
|
1896
1896
|
}, null, 40, mn),
|
|
1897
1897
|
n.value ? (B(), j("span", gn, kt(M.value), 1)) : Z("", !0)
|
|
1898
1898
|
]),
|
|
@@ -1933,7 +1933,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1933
1933
|
}, "全部替换"),
|
|
1934
1934
|
l("button", {
|
|
1935
1935
|
class: "fr-btn",
|
|
1936
|
-
onClick: I(
|
|
1936
|
+
onClick: I(m, ["stop"])
|
|
1937
1937
|
}, "替换"),
|
|
1938
1938
|
l("button", {
|
|
1939
1939
|
class: "fr-btn",
|
|
@@ -1994,31 +1994,31 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
1994
1994
|
const a = e.value.trim(), w = i.value.trim();
|
|
1995
1995
|
if (w)
|
|
1996
1996
|
try {
|
|
1997
|
-
const k = d.state.selection,
|
|
1998
|
-
if (D >
|
|
1999
|
-
const
|
|
1997
|
+
const k = d.state.selection, m = k.from, D = k.to;
|
|
1998
|
+
if (D > m) {
|
|
1999
|
+
const E = h(a || d.state.doc.textBetween(m, D)), y = h(w);
|
|
2000
2000
|
d.chain().focus().insertContent(
|
|
2001
|
-
`<a href="${y}" target="_blank" rel="noopener noreferrer">${
|
|
2002
|
-
{ from:
|
|
2001
|
+
`<a href="${y}" target="_blank" rel="noopener noreferrer">${E}</a>`,
|
|
2002
|
+
{ from: m, to: D }
|
|
2003
2003
|
).run();
|
|
2004
2004
|
} else {
|
|
2005
|
-
const
|
|
2005
|
+
const E = h(w), y = h(a || w);
|
|
2006
2006
|
d.chain().focus().insertContent(
|
|
2007
|
-
`<a href="${
|
|
2007
|
+
`<a href="${E}" target="_blank" rel="noopener noreferrer">${y}</a>`
|
|
2008
2008
|
).run();
|
|
2009
2009
|
}
|
|
2010
2010
|
} finally {
|
|
2011
2011
|
o.value = !1, e.value = "", i.value = "";
|
|
2012
2012
|
}
|
|
2013
2013
|
}
|
|
2014
|
-
function
|
|
2014
|
+
function h(d) {
|
|
2015
2015
|
return String(d).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
2016
2016
|
}
|
|
2017
2017
|
function x(d) {
|
|
2018
2018
|
d.key === "Enter" && _(), d.key === "Escape" && (o.value = !1);
|
|
2019
2019
|
}
|
|
2020
2020
|
let $ = null;
|
|
2021
|
-
|
|
2021
|
+
ht(() => {
|
|
2022
2022
|
$ = (d) => {
|
|
2023
2023
|
if (!o.value) return;
|
|
2024
2024
|
const a = n.value, w = d.target;
|
|
@@ -2028,22 +2028,22 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2028
2028
|
$ && (document.removeEventListener("mousedown", $, !0), $ = null);
|
|
2029
2029
|
});
|
|
2030
2030
|
const C = V({});
|
|
2031
|
-
return
|
|
2031
|
+
return gt(o, async (d) => {
|
|
2032
2032
|
var w;
|
|
2033
2033
|
if (!d) return;
|
|
2034
2034
|
const a = c.editor;
|
|
2035
2035
|
if (a) {
|
|
2036
2036
|
await Mt();
|
|
2037
2037
|
try {
|
|
2038
|
-
const k = a.state.selection,
|
|
2039
|
-
if (!(D >
|
|
2038
|
+
const k = a.state.selection, m = k.from, D = k.to;
|
|
2039
|
+
if (!(D > m)) {
|
|
2040
2040
|
C.value = {};
|
|
2041
2041
|
return;
|
|
2042
2042
|
}
|
|
2043
|
-
const
|
|
2043
|
+
const E = a.view.coordsAtPos(m), y = a.view.coordsAtPos(D), T = (E.left + y.right) / 2, H = Math.max(E.bottom, y.bottom) + 8, O = (w = n.value) == null ? void 0 : w.querySelector(".link-input-panel"), P = O ? O.getBoundingClientRect() : { width: 320, height: 120 }, Y = window.innerWidth, et = window.innerHeight, q = 12, dt = Math.max(
|
|
2044
2044
|
q + P.width / 2,
|
|
2045
|
-
Math.min(Y - q - P.width / 2,
|
|
2046
|
-
), Q = H, rt = Math.min(
|
|
2045
|
+
Math.min(Y - q - P.width / 2, T)
|
|
2046
|
+
), Q = H, rt = Math.min(E.top, y.top) - P.height - 8;
|
|
2047
2047
|
let nt = Q;
|
|
2048
2048
|
Q + P.height + q > et && rt - q >= 0 && (nt = rt), nt = Math.max(q, Math.min(et - q - P.height, nt)), C.value = {
|
|
2049
2049
|
position: "fixed",
|
|
@@ -2059,7 +2059,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2059
2059
|
ref_key: "rootRef",
|
|
2060
2060
|
ref: n
|
|
2061
2061
|
}, [
|
|
2062
|
-
r(
|
|
2062
|
+
r(p(G), {
|
|
2063
2063
|
text: "链接",
|
|
2064
2064
|
placement: "bottom"
|
|
2065
2065
|
}, {
|
|
@@ -2067,7 +2067,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2067
2067
|
r(ot, {
|
|
2068
2068
|
name: "link",
|
|
2069
2069
|
size: 16,
|
|
2070
|
-
color:
|
|
2070
|
+
color: p(b) === "dark" && "#fff"
|
|
2071
2071
|
}, null, 8, ["color"])
|
|
2072
2072
|
]),
|
|
2073
2073
|
_: 1
|
|
@@ -2080,7 +2080,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2080
2080
|
o.value ? (B(), j("div", {
|
|
2081
2081
|
key: 0,
|
|
2082
2082
|
class: "link-input-panel",
|
|
2083
|
-
style:
|
|
2083
|
+
style: pt(C.value),
|
|
2084
2084
|
onClick: a[2] || (a[2] = I(() => {
|
|
2085
2085
|
}, ["stop"]))
|
|
2086
2086
|
}, [
|
|
@@ -2121,29 +2121,29 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2121
2121
|
})
|
|
2122
2122
|
], 512));
|
|
2123
2123
|
}
|
|
2124
|
-
}),
|
|
2124
|
+
}), Tn = /* @__PURE__ */ lt(Sn, [["__scopeId", "data-v-db61d34c"]]), En = { class: "grid" }, Dn = ["onMouseenter"], Fn = { class: "size" }, An = 10, Bn = 10, Hn = /* @__PURE__ */ st({
|
|
2125
2125
|
__name: "index",
|
|
2126
2126
|
props: {
|
|
2127
2127
|
editor: {}
|
|
2128
2128
|
},
|
|
2129
2129
|
setup(t) {
|
|
2130
2130
|
const c = t, o = xt("theme"), e = V(!1), i = V(0), n = V(0), b = ct(() => {
|
|
2131
|
-
const _ = Math.max(i.value, 1),
|
|
2132
|
-
return `${_} x ${
|
|
2131
|
+
const _ = Math.max(i.value, 1), h = Math.max(n.value, 1);
|
|
2132
|
+
return `${_} x ${h}`;
|
|
2133
2133
|
}), f = () => {
|
|
2134
2134
|
e.value = !e.value, e.value || (i.value = 0, n.value = 0);
|
|
2135
|
-
}, v = (_,
|
|
2136
|
-
i.value = _, n.value =
|
|
2135
|
+
}, v = (_, h) => {
|
|
2136
|
+
i.value = _, n.value = h;
|
|
2137
2137
|
}, M = () => {
|
|
2138
|
-
var x, $, C, d, a, w, k,
|
|
2139
|
-
const _ = Math.max(i.value, 1),
|
|
2140
|
-
(
|
|
2138
|
+
var x, $, C, d, a, w, k, m;
|
|
2139
|
+
const _ = Math.max(i.value, 1), h = Math.max(n.value, 1);
|
|
2140
|
+
(m = (w = (d = ($ = (x = c.editor) == null ? void 0 : x.chain) == null ? void 0 : (C = $.call(x)).focus) == null ? void 0 : (a = d.call(C)).insertTable) == null ? void 0 : (k = w.call(a, { rows: _, cols: h, withHeaderRow: !0 })).run) == null || m.call(k), e.value = !1, i.value = 0, n.value = 0;
|
|
2141
2141
|
};
|
|
2142
|
-
return (_,
|
|
2142
|
+
return (_, h) => (B(), j("div", {
|
|
2143
2143
|
class: "icon table-icon",
|
|
2144
2144
|
onClick: f
|
|
2145
2145
|
}, [
|
|
2146
|
-
r(
|
|
2146
|
+
r(p(G), {
|
|
2147
2147
|
text: "表格",
|
|
2148
2148
|
placement: "bottom"
|
|
2149
2149
|
}, {
|
|
@@ -2151,7 +2151,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2151
2151
|
r(ot, {
|
|
2152
2152
|
name: "table",
|
|
2153
2153
|
size: 16,
|
|
2154
|
-
color:
|
|
2154
|
+
color: p(o) === "dark" && "#fff"
|
|
2155
2155
|
}, null, 8, ["color"])
|
|
2156
2156
|
]),
|
|
2157
2157
|
_: 1
|
|
@@ -2159,11 +2159,11 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2159
2159
|
e.value ? (B(), j("div", {
|
|
2160
2160
|
key: 0,
|
|
2161
2161
|
class: "table-panel",
|
|
2162
|
-
onClick:
|
|
2162
|
+
onClick: h[0] || (h[0] = I(() => {
|
|
2163
2163
|
}, ["stop"]))
|
|
2164
2164
|
}, [
|
|
2165
|
-
|
|
2166
|
-
l("div",
|
|
2165
|
+
h[1] || (h[1] = l("div", { class: "panel-title" }, "表格", -1)),
|
|
2166
|
+
l("div", En, [
|
|
2167
2167
|
(B(), j(yt, null, bt(An, (x) => l("div", {
|
|
2168
2168
|
key: "r-" + x,
|
|
2169
2169
|
class: "row"
|
|
@@ -2187,13 +2187,13 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2187
2187
|
},
|
|
2188
2188
|
setup(t) {
|
|
2189
2189
|
const c = t, o = V(!1), e = xt("theme"), i = () => o.value = !o.value, n = (f, ...v) => {
|
|
2190
|
-
var _,
|
|
2190
|
+
var _, h, x;
|
|
2191
2191
|
const M = c.editor;
|
|
2192
|
-
return !!((x = (_ = M == null ? void 0 : M.can) == null ? void 0 : (
|
|
2192
|
+
return !!((x = (_ = M == null ? void 0 : M.can) == null ? void 0 : (h = _.call(M))[f]) != null && x.call(h, ...v));
|
|
2193
2193
|
}, b = (f, ...v) => {
|
|
2194
|
-
var _,
|
|
2194
|
+
var _, h, x, $, C, d, a;
|
|
2195
2195
|
const M = c.editor;
|
|
2196
|
-
(a = (d = (C = ($ = (x = (_ = M == null ? void 0 : M.chain) == null ? void 0 : (
|
|
2196
|
+
(a = (d = (C = ($ = (x = (_ = M == null ? void 0 : M.chain) == null ? void 0 : (h = _.call(M)).focus) == null ? void 0 : x.call(h))[f]) == null ? void 0 : C.call($, ...v)) == null ? void 0 : d.run) == null || a.call(d), o.value = !1;
|
|
2197
2197
|
};
|
|
2198
2198
|
return (f, v) => {
|
|
2199
2199
|
var M, _;
|
|
@@ -2202,7 +2202,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2202
2202
|
onClick: i,
|
|
2203
2203
|
"aria-disabled": !((_ = (M = c.editor) == null ? void 0 : M.isActive) != null && _.call(M, "table"))
|
|
2204
2204
|
}, [
|
|
2205
|
-
r(
|
|
2205
|
+
r(p(G), {
|
|
2206
2206
|
text: "表格工具",
|
|
2207
2207
|
placement: "bottom"
|
|
2208
2208
|
}, {
|
|
@@ -2210,7 +2210,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2210
2210
|
r(ot, {
|
|
2211
2211
|
name: "tableTools",
|
|
2212
2212
|
size: 15,
|
|
2213
|
-
color:
|
|
2213
|
+
color: p(e) === "dark" && "#fff"
|
|
2214
2214
|
}, null, 8, ["color"])
|
|
2215
2215
|
]),
|
|
2216
2216
|
_: 1
|
|
@@ -2224,87 +2224,87 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2224
2224
|
l("div", In, [
|
|
2225
2225
|
l("button", {
|
|
2226
2226
|
class: "btn",
|
|
2227
|
-
onClick: v[0] || (v[0] = I((
|
|
2227
|
+
onClick: v[0] || (v[0] = I((h) => b("addColumnBefore"), ["stop"])),
|
|
2228
2228
|
disabled: !n("addColumnBefore")
|
|
2229
2229
|
}, " 前插列 ", 8, On),
|
|
2230
2230
|
l("button", {
|
|
2231
2231
|
class: "btn",
|
|
2232
|
-
onClick: v[1] || (v[1] = I((
|
|
2232
|
+
onClick: v[1] || (v[1] = I((h) => b("addColumnAfter"), ["stop"])),
|
|
2233
2233
|
disabled: !n("addColumnAfter")
|
|
2234
2234
|
}, " 后插列 ", 8, jn),
|
|
2235
2235
|
l("button", {
|
|
2236
2236
|
class: "btn",
|
|
2237
|
-
onClick: v[2] || (v[2] = I((
|
|
2237
|
+
onClick: v[2] || (v[2] = I((h) => b("deleteColumn"), ["stop"])),
|
|
2238
2238
|
disabled: !n("deleteColumn")
|
|
2239
2239
|
}, " 删除列 ", 8, Wn),
|
|
2240
2240
|
l("button", {
|
|
2241
2241
|
class: "btn",
|
|
2242
|
-
onClick: v[3] || (v[3] = I((
|
|
2242
|
+
onClick: v[3] || (v[3] = I((h) => b("addRowBefore"), ["stop"])),
|
|
2243
2243
|
disabled: !n("addRowBefore")
|
|
2244
2244
|
}, " 前插行 ", 8, Rn),
|
|
2245
2245
|
l("button", {
|
|
2246
2246
|
class: "btn",
|
|
2247
|
-
onClick: v[4] || (v[4] = I((
|
|
2247
|
+
onClick: v[4] || (v[4] = I((h) => b("addRowAfter"), ["stop"])),
|
|
2248
2248
|
disabled: !n("addRowAfter")
|
|
2249
2249
|
}, " 后插行 ", 8, Pn),
|
|
2250
2250
|
l("button", {
|
|
2251
2251
|
class: "btn",
|
|
2252
|
-
onClick: v[5] || (v[5] = I((
|
|
2252
|
+
onClick: v[5] || (v[5] = I((h) => b("deleteRow"), ["stop"])),
|
|
2253
2253
|
disabled: !n("deleteRow")
|
|
2254
2254
|
}, " 删除行 ", 8, Nn),
|
|
2255
2255
|
l("button", {
|
|
2256
2256
|
class: "btn",
|
|
2257
|
-
onClick: v[6] || (v[6] = I((
|
|
2257
|
+
onClick: v[6] || (v[6] = I((h) => b("deleteTable"), ["stop"])),
|
|
2258
2258
|
disabled: !n("deleteTable")
|
|
2259
2259
|
}, " 删除表 ", 8, Gn),
|
|
2260
2260
|
l("button", {
|
|
2261
2261
|
class: "btn",
|
|
2262
|
-
onClick: v[7] || (v[7] = I((
|
|
2262
|
+
onClick: v[7] || (v[7] = I((h) => b("mergeCells"), ["stop"])),
|
|
2263
2263
|
disabled: !n("mergeCells")
|
|
2264
2264
|
}, " 合并单元格 ", 8, Yn),
|
|
2265
2265
|
l("button", {
|
|
2266
2266
|
class: "btn",
|
|
2267
|
-
onClick: v[8] || (v[8] = I((
|
|
2267
|
+
onClick: v[8] || (v[8] = I((h) => b("splitCell"), ["stop"])),
|
|
2268
2268
|
disabled: !n("splitCell")
|
|
2269
2269
|
}, " 拆分单元格 ", 8, Kn),
|
|
2270
2270
|
l("button", {
|
|
2271
2271
|
class: "btn",
|
|
2272
|
-
onClick: v[9] || (v[9] = I((
|
|
2272
|
+
onClick: v[9] || (v[9] = I((h) => b("mergeOrSplit"), ["stop"])),
|
|
2273
2273
|
disabled: !n("mergeOrSplit")
|
|
2274
2274
|
}, " 合并/拆分 ", 8, Zn),
|
|
2275
2275
|
l("button", {
|
|
2276
2276
|
class: "btn",
|
|
2277
|
-
onClick: v[10] || (v[10] = I((
|
|
2277
|
+
onClick: v[10] || (v[10] = I((h) => b("toggleHeaderRow"), ["stop"])),
|
|
2278
2278
|
disabled: !n("toggleHeaderRow")
|
|
2279
2279
|
}, " 切换表头行 ", 8, qn),
|
|
2280
2280
|
l("button", {
|
|
2281
2281
|
class: "btn",
|
|
2282
|
-
onClick: v[11] || (v[11] = I((
|
|
2282
|
+
onClick: v[11] || (v[11] = I((h) => b("toggleHeaderColumn"), ["stop"])),
|
|
2283
2283
|
disabled: !n("toggleHeaderColumn")
|
|
2284
2284
|
}, " 切换表头列 ", 8, Jn),
|
|
2285
2285
|
l("button", {
|
|
2286
2286
|
class: "btn",
|
|
2287
|
-
onClick: v[12] || (v[12] = I((
|
|
2287
|
+
onClick: v[12] || (v[12] = I((h) => b("toggleHeaderCell"), ["stop"])),
|
|
2288
2288
|
disabled: !n("toggleHeaderCell")
|
|
2289
2289
|
}, " 切换表头单元 ", 8, Xn),
|
|
2290
2290
|
l("button", {
|
|
2291
2291
|
class: "btn",
|
|
2292
|
-
onClick: v[13] || (v[13] = I((
|
|
2292
|
+
onClick: v[13] || (v[13] = I((h) => b("fixTables"), ["stop"])),
|
|
2293
2293
|
disabled: !n("fixTables")
|
|
2294
2294
|
}, " 修复表格 ", 8, Qn),
|
|
2295
2295
|
l("button", {
|
|
2296
2296
|
class: "btn",
|
|
2297
|
-
onClick: v[14] || (v[14] = I((
|
|
2297
|
+
onClick: v[14] || (v[14] = I((h) => b("goToNextCell"), ["stop"])),
|
|
2298
2298
|
disabled: !n("goToNextCell")
|
|
2299
2299
|
}, " 下个单元格 ", 8, ts),
|
|
2300
2300
|
l("button", {
|
|
2301
2301
|
class: "btn",
|
|
2302
|
-
onClick: v[15] || (v[15] = I((
|
|
2302
|
+
onClick: v[15] || (v[15] = I((h) => b("goToPreviousCell"), ["stop"])),
|
|
2303
2303
|
disabled: !n("goToPreviousCell")
|
|
2304
2304
|
}, " 上个单元格 ", 8, es),
|
|
2305
2305
|
l("button", {
|
|
2306
2306
|
class: "btn",
|
|
2307
|
-
onClick: v[16] || (v[16] = I((
|
|
2307
|
+
onClick: v[16] || (v[16] = I((h) => b("setCellAttribute", "backgroundColor", "#FAF594"), ["stop"])),
|
|
2308
2308
|
disabled: !n("setCellAttribute", "backgroundColor", "#FAF594")
|
|
2309
2309
|
}, " 单元格着色 ", 8, os)
|
|
2310
2310
|
])
|
|
@@ -2329,9 +2329,9 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2329
2329
|
f.doc.nodesBetween(
|
|
2330
2330
|
Math.max(0, v.from - 5),
|
|
2331
2331
|
Math.min(f.doc.content.size, v.to + 5),
|
|
2332
|
-
(_,
|
|
2332
|
+
(_, h) => {
|
|
2333
2333
|
var x;
|
|
2334
|
-
return ((x = _ == null ? void 0 : _.type) == null ? void 0 : x.name) === "taskItem" && M == null ? (M =
|
|
2334
|
+
return ((x = _ == null ? void 0 : _.type) == null ? void 0 : x.name) === "taskItem" && M == null ? (M = h, !1) : !0;
|
|
2335
2335
|
}
|
|
2336
2336
|
), M != null && b.commands.setTextSelection(M + 1);
|
|
2337
2337
|
} catch {
|
|
@@ -2342,16 +2342,16 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2342
2342
|
class: "icon",
|
|
2343
2343
|
onClick: n
|
|
2344
2344
|
}, [
|
|
2345
|
-
r(
|
|
2345
|
+
r(p(G), {
|
|
2346
2346
|
text: "任务列表",
|
|
2347
|
-
shortcut:
|
|
2347
|
+
shortcut: p(i),
|
|
2348
2348
|
placement: "bottom"
|
|
2349
2349
|
}, {
|
|
2350
2350
|
default: N(() => [
|
|
2351
2351
|
r(ot, {
|
|
2352
2352
|
name: "task",
|
|
2353
2353
|
size: 17,
|
|
2354
|
-
color:
|
|
2354
|
+
color: p(o) === "dark" && "#fff"
|
|
2355
2355
|
}, null, 8, ["color"])
|
|
2356
2356
|
]),
|
|
2357
2357
|
_: 1
|
|
@@ -2373,7 +2373,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2373
2373
|
class: "icon",
|
|
2374
2374
|
onClick: e
|
|
2375
2375
|
}, [
|
|
2376
|
-
r(
|
|
2376
|
+
r(p(G), {
|
|
2377
2377
|
text: "引用",
|
|
2378
2378
|
placement: "bottom"
|
|
2379
2379
|
}, {
|
|
@@ -2381,7 +2381,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2381
2381
|
r(ot, {
|
|
2382
2382
|
name: "quote",
|
|
2383
2383
|
size: 18,
|
|
2384
|
-
color:
|
|
2384
|
+
color: p(o) === "dark" && "#fff"
|
|
2385
2385
|
}, null, 8, ["color"])
|
|
2386
2386
|
]),
|
|
2387
2387
|
_: 1
|
|
@@ -2431,10 +2431,10 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2431
2431
|
function _() {
|
|
2432
2432
|
f.value = !1;
|
|
2433
2433
|
}
|
|
2434
|
-
function
|
|
2435
|
-
var a, w, k,
|
|
2436
|
-
const d = (
|
|
2437
|
-
d && (C.level === null ? (
|
|
2434
|
+
function h(C) {
|
|
2435
|
+
var a, w, k, m, D, A, E, y, T, H;
|
|
2436
|
+
const d = (m = (w = (a = c.editor) == null ? void 0 : a.chain) == null ? void 0 : (k = w.call(a)).focus) == null ? void 0 : m.call(k);
|
|
2437
|
+
d && (C.level === null ? (E = (D = d.setParagraph) == null ? void 0 : (A = D.call(d)).run) == null || E.call(A) : (H = (T = (y = d.toggleHeading) == null ? void 0 : y.call(d, { level: C.level })) == null ? void 0 : T.run) == null || H.call(T), _());
|
|
2438
2438
|
}
|
|
2439
2439
|
function x(C) {
|
|
2440
2440
|
const d = C.target, a = v.value;
|
|
@@ -2444,7 +2444,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2444
2444
|
var a;
|
|
2445
2445
|
((a = C.detail) == null ? void 0 : a.id) !== ee && (f.value = !1);
|
|
2446
2446
|
}
|
|
2447
|
-
return
|
|
2447
|
+
return ht(() => {
|
|
2448
2448
|
document.addEventListener("click", x), window.addEventListener(Kt, $);
|
|
2449
2449
|
}), wt(() => {
|
|
2450
2450
|
document.removeEventListener("click", x), window.removeEventListener(Kt, $);
|
|
@@ -2453,7 +2453,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2453
2453
|
ref_key: "rootRef",
|
|
2454
2454
|
ref: v
|
|
2455
2455
|
}, [
|
|
2456
|
-
r(
|
|
2456
|
+
r(p(G), {
|
|
2457
2457
|
text: "标题级别",
|
|
2458
2458
|
placement: "bottom"
|
|
2459
2459
|
}, {
|
|
@@ -2464,7 +2464,7 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2464
2464
|
"aria-expanded": f.value
|
|
2465
2465
|
}, [
|
|
2466
2466
|
l("div", ds, kt(b.value), 1),
|
|
2467
|
-
r(
|
|
2467
|
+
r(p(Ot), {
|
|
2468
2468
|
theme: "filled",
|
|
2469
2469
|
strokeWidth: 3
|
|
2470
2470
|
})
|
|
@@ -2479,9 +2479,9 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2479
2479
|
key: a.label,
|
|
2480
2480
|
class: "dropdown-item",
|
|
2481
2481
|
"aria-selected": a.level === n.value,
|
|
2482
|
-
onClick: I((w) =>
|
|
2482
|
+
onClick: I((w) => h(a), ["stop"])
|
|
2483
2483
|
}, [
|
|
2484
|
-
a.level === n.value ? (B(), zt(
|
|
2484
|
+
a.level === n.value ? (B(), zt(p(Ut), {
|
|
2485
2485
|
key: 0,
|
|
2486
2486
|
theme: "filled",
|
|
2487
2487
|
strokeWidth: 3
|
|
@@ -2516,9 +2516,9 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2516
2516
|
},
|
|
2517
2517
|
setup(t) {
|
|
2518
2518
|
const c = t, o = xt("theme"), e = ct(() => {
|
|
2519
|
-
var
|
|
2519
|
+
var m, D, A, E;
|
|
2520
2520
|
const k = c.editor;
|
|
2521
|
-
return !k || (
|
|
2521
|
+
return !k || (m = k.isActive) != null && m.call(k, { textAlign: "left" }) ? "left" : (D = k.isActive) != null && D.call(k, { textAlign: "center" }) ? "center" : (A = k.isActive) != null && A.call(k, { textAlign: "right" }) ? "right" : (E = k.isActive) != null && E.call(k, { textAlign: "justify" }) ? "justify" : "left";
|
|
2522
2522
|
}), i = ct(() => ({
|
|
2523
2523
|
left: "alignLeft",
|
|
2524
2524
|
center: "alignCenter",
|
|
@@ -2526,10 +2526,10 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2526
2526
|
justify: "alignJustify"
|
|
2527
2527
|
})[e.value]);
|
|
2528
2528
|
function n(k) {
|
|
2529
|
-
var
|
|
2530
|
-
(O = (
|
|
2529
|
+
var m, D, A, E, y, T, H, O;
|
|
2530
|
+
(O = (T = (E = (D = (m = c.editor) == null ? void 0 : m.chain) == null ? void 0 : (A = D.call(m)).focus) == null ? void 0 : (y = E.call(A)).setTextAlign) == null ? void 0 : (H = T.call(y, k)).run) == null || O.call(H);
|
|
2531
2531
|
}
|
|
2532
|
-
const b = V(!1), f = V(null), v = typeof navigator < "u" && navigator.platform.includes("Mac"), M = v ? "⇧ ⌘ L" : "Ctrl Shift L", _ = v ? "⇧ ⌘ E" : "Ctrl Shift E",
|
|
2532
|
+
const b = V(!1), f = V(null), v = typeof navigator < "u" && navigator.platform.includes("Mac"), M = v ? "⇧ ⌘ L" : "Ctrl Shift L", _ = v ? "⇧ ⌘ E" : "Ctrl Shift E", h = v ? "⇧ ⌘ R" : "Ctrl Shift R", x = v ? "⇧ ⌘ J" : "Ctrl Shift J";
|
|
2533
2533
|
function $() {
|
|
2534
2534
|
b.value || window.dispatchEvent(new CustomEvent(Zt, { detail: { id: oe } })), b.value = !b.value;
|
|
2535
2535
|
}
|
|
@@ -2540,23 +2540,23 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2540
2540
|
n(k), C();
|
|
2541
2541
|
}
|
|
2542
2542
|
function a(k) {
|
|
2543
|
-
const
|
|
2544
|
-
|
|
2543
|
+
const m = f.value, D = k.target;
|
|
2544
|
+
m && !m.contains(D) && C();
|
|
2545
2545
|
}
|
|
2546
2546
|
function w(k) {
|
|
2547
2547
|
var D;
|
|
2548
2548
|
((D = k.detail) == null ? void 0 : D.id) !== oe && (b.value = !1);
|
|
2549
2549
|
}
|
|
2550
|
-
return
|
|
2550
|
+
return ht(() => {
|
|
2551
2551
|
document.addEventListener("click", a), window.addEventListener(Zt, w);
|
|
2552
2552
|
}), wt(() => {
|
|
2553
2553
|
document.removeEventListener("click", a), window.removeEventListener(Zt, w);
|
|
2554
|
-
}), (k,
|
|
2554
|
+
}), (k, m) => (B(), j("div", {
|
|
2555
2555
|
class: "align-select",
|
|
2556
2556
|
ref_key: "rootRef",
|
|
2557
2557
|
ref: f
|
|
2558
2558
|
}, [
|
|
2559
|
-
r(
|
|
2559
|
+
r(p(G), {
|
|
2560
2560
|
text: "对齐方式",
|
|
2561
2561
|
placement: "bottom"
|
|
2562
2562
|
}, {
|
|
@@ -2569,12 +2569,12 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2569
2569
|
r(ot, {
|
|
2570
2570
|
name: i.value,
|
|
2571
2571
|
size: 18,
|
|
2572
|
-
color:
|
|
2572
|
+
color: p(o) === "dark" && "#fff"
|
|
2573
2573
|
}, null, 8, ["name", "color"]),
|
|
2574
2574
|
r(ot, {
|
|
2575
2575
|
name: "caretDown",
|
|
2576
2576
|
size: 12,
|
|
2577
|
-
color:
|
|
2577
|
+
color: p(o) === "dark" && "#fff"
|
|
2578
2578
|
}, null, 8, ["color"])
|
|
2579
2579
|
], 8, ms)
|
|
2580
2580
|
]),
|
|
@@ -2587,18 +2587,18 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2587
2587
|
l("div", {
|
|
2588
2588
|
class: J(["option", { active: e.value === "left" }]),
|
|
2589
2589
|
role: "menuitem",
|
|
2590
|
-
onClick:
|
|
2590
|
+
onClick: m[0] || (m[0] = I((D) => d("left"), ["stop"]))
|
|
2591
2591
|
}, [
|
|
2592
|
-
r(
|
|
2592
|
+
r(p(G), {
|
|
2593
2593
|
text: "左对齐",
|
|
2594
|
-
shortcut:
|
|
2594
|
+
shortcut: p(M),
|
|
2595
2595
|
placement: "bottom"
|
|
2596
2596
|
}, {
|
|
2597
2597
|
default: N(() => [
|
|
2598
2598
|
r(ot, {
|
|
2599
2599
|
name: "alignLeft",
|
|
2600
2600
|
size: 16,
|
|
2601
|
-
color:
|
|
2601
|
+
color: p(o) === "dark" && "#fff"
|
|
2602
2602
|
}, null, 8, ["color"])
|
|
2603
2603
|
]),
|
|
2604
2604
|
_: 1
|
|
@@ -2607,18 +2607,18 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2607
2607
|
l("div", {
|
|
2608
2608
|
class: J(["option", { active: e.value === "center" }]),
|
|
2609
2609
|
role: "menuitem",
|
|
2610
|
-
onClick:
|
|
2610
|
+
onClick: m[1] || (m[1] = I((D) => d("center"), ["stop"]))
|
|
2611
2611
|
}, [
|
|
2612
|
-
r(
|
|
2612
|
+
r(p(G), {
|
|
2613
2613
|
text: "居中对齐",
|
|
2614
|
-
shortcut:
|
|
2614
|
+
shortcut: p(_),
|
|
2615
2615
|
placement: "bottom"
|
|
2616
2616
|
}, {
|
|
2617
2617
|
default: N(() => [
|
|
2618
2618
|
r(ot, {
|
|
2619
2619
|
name: "alignCenter",
|
|
2620
2620
|
size: 16,
|
|
2621
|
-
color:
|
|
2621
|
+
color: p(o) === "dark" && "#fff"
|
|
2622
2622
|
}, null, 8, ["color"])
|
|
2623
2623
|
]),
|
|
2624
2624
|
_: 1
|
|
@@ -2627,18 +2627,18 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2627
2627
|
l("div", {
|
|
2628
2628
|
class: J(["option", { active: e.value === "right" }]),
|
|
2629
2629
|
role: "menuitem",
|
|
2630
|
-
onClick:
|
|
2630
|
+
onClick: m[2] || (m[2] = I((D) => d("right"), ["stop"]))
|
|
2631
2631
|
}, [
|
|
2632
|
-
r(
|
|
2632
|
+
r(p(G), {
|
|
2633
2633
|
text: "右对齐",
|
|
2634
|
-
shortcut:
|
|
2634
|
+
shortcut: p(h),
|
|
2635
2635
|
placement: "bottom"
|
|
2636
2636
|
}, {
|
|
2637
2637
|
default: N(() => [
|
|
2638
2638
|
r(ot, {
|
|
2639
2639
|
name: "alignRight",
|
|
2640
2640
|
size: 16,
|
|
2641
|
-
color:
|
|
2641
|
+
color: p(o) === "dark" && "#fff"
|
|
2642
2642
|
}, null, 8, ["color"])
|
|
2643
2643
|
]),
|
|
2644
2644
|
_: 1
|
|
@@ -2647,18 +2647,18 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2647
2647
|
l("div", {
|
|
2648
2648
|
class: J(["option", { active: e.value === "justify" }]),
|
|
2649
2649
|
role: "menuitem",
|
|
2650
|
-
onClick:
|
|
2650
|
+
onClick: m[3] || (m[3] = I((D) => d("justify"), ["stop"]))
|
|
2651
2651
|
}, [
|
|
2652
|
-
r(
|
|
2652
|
+
r(p(G), {
|
|
2653
2653
|
text: "两端对齐",
|
|
2654
|
-
shortcut:
|
|
2654
|
+
shortcut: p(x),
|
|
2655
2655
|
placement: "bottom"
|
|
2656
2656
|
}, {
|
|
2657
2657
|
default: N(() => [
|
|
2658
2658
|
r(ot, {
|
|
2659
2659
|
name: "alignJustify",
|
|
2660
2660
|
size: 16,
|
|
2661
|
-
color:
|
|
2661
|
+
color: p(o) === "dark" && "#fff"
|
|
2662
2662
|
}, null, 8, ["color"])
|
|
2663
2663
|
]),
|
|
2664
2664
|
_: 1
|
|
@@ -2673,28 +2673,27 @@ const Ut = Ct("check", !0, function(t) {
|
|
|
2673
2673
|
}
|
|
2674
2674
|
}), Cs = /* @__PURE__ */ lt(ws, [["__scopeId", "data-v-b321e2b4"]]), ys = () => {
|
|
2675
2675
|
try {
|
|
2676
|
-
return (localStorage.getItem("md-theme") || null) === "dark" ? "dark" : "light";
|
|
2676
|
+
return (localStorage.getItem("v-md-theme") || null) === "dark" ? "dark" : "light";
|
|
2677
2677
|
} catch {
|
|
2678
2678
|
return "light";
|
|
2679
2679
|
}
|
|
2680
|
-
},
|
|
2681
|
-
|
|
2682
|
-
|
|
2680
|
+
}, ft = V(ys());
|
|
2681
|
+
gt(
|
|
2682
|
+
ft,
|
|
2683
2683
|
(t) => {
|
|
2684
|
-
document.documentElement.classList.toggle("dark", t === "dark");
|
|
2685
2684
|
try {
|
|
2686
|
-
localStorage.setItem("md-theme", t);
|
|
2685
|
+
localStorage.setItem("v-md-theme", t);
|
|
2687
2686
|
} catch {
|
|
2688
2687
|
}
|
|
2689
2688
|
},
|
|
2690
2689
|
{ immediate: !0 }
|
|
2691
2690
|
);
|
|
2692
2691
|
const qt = (t) => {
|
|
2693
|
-
|
|
2692
|
+
ft.value = t;
|
|
2694
2693
|
}, bs = { class: "theme-wrapper" }, xs = /* @__PURE__ */ st({
|
|
2695
2694
|
__name: "index",
|
|
2696
2695
|
setup(t) {
|
|
2697
|
-
const c =
|
|
2696
|
+
const c = ft, o = (i) => {
|
|
2698
2697
|
const n = document.startViewTransition;
|
|
2699
2698
|
if (typeof n != "function") {
|
|
2700
2699
|
qt(i ? "dark" : "light");
|
|
@@ -2716,7 +2715,7 @@ const qt = (t) => {
|
|
|
2716
2715
|
mode: "out-in"
|
|
2717
2716
|
}, {
|
|
2718
2717
|
default: N(() => [
|
|
2719
|
-
|
|
2718
|
+
p(c) === "dark" ? (B(), j("div", {
|
|
2720
2719
|
class: "icon-box",
|
|
2721
2720
|
key: "dark",
|
|
2722
2721
|
onClick: e
|
|
@@ -2798,7 +2797,7 @@ const qt = (t) => {
|
|
|
2798
2797
|
})
|
|
2799
2798
|
]));
|
|
2800
2799
|
}
|
|
2801
|
-
}), _s = /* @__PURE__ */ lt(xs, [["__scopeId", "data-v-
|
|
2800
|
+
}), _s = /* @__PURE__ */ lt(xs, [["__scopeId", "data-v-e09fa6a6"]]), Ls = ["aria-disabled"], Ms = ["aria-disabled"], zs = /* @__PURE__ */ st({
|
|
2802
2801
|
__name: "index",
|
|
2803
2802
|
props: {
|
|
2804
2803
|
editor: {},
|
|
@@ -2812,43 +2811,43 @@ const qt = (t) => {
|
|
|
2812
2811
|
emits: ["openLinkModal", "toggleFullscreen"],
|
|
2813
2812
|
setup(t, { emit: c }) {
|
|
2814
2813
|
const o = t, e = c, i = (z, L) => {
|
|
2815
|
-
var
|
|
2816
|
-
return (s = (
|
|
2814
|
+
var g, s;
|
|
2815
|
+
return (s = (g = o.editor) == null ? void 0 : g.isActive) == null ? void 0 : s.call(g, z, L);
|
|
2817
2816
|
}, n = (z, L) => {
|
|
2818
2817
|
var u, S, W, U, R, F;
|
|
2819
|
-
const
|
|
2820
|
-
if (!
|
|
2821
|
-
const s = (W = (u =
|
|
2818
|
+
const g = o.editor;
|
|
2819
|
+
if (!g) return;
|
|
2820
|
+
const s = (W = (u = g.chain) == null ? void 0 : (S = u.call(g)).focus) == null ? void 0 : W.call(S);
|
|
2822
2821
|
return (F = (R = (U = s == null ? void 0 : s[z]) == null ? void 0 : U.call(s)) == null ? void 0 : R.run) == null ? void 0 : F.call(R);
|
|
2823
2822
|
}, b = () => {
|
|
2824
|
-
var z, L,
|
|
2823
|
+
var z, L, g, s;
|
|
2825
2824
|
try {
|
|
2826
|
-
return !!((s = (L = (z = o.editor) == null ? void 0 : z.can) == null ? void 0 : (
|
|
2825
|
+
return !!((s = (L = (z = o.editor) == null ? void 0 : z.can) == null ? void 0 : (g = L.call(z)).undo) != null && s.call(g));
|
|
2827
2826
|
} catch {
|
|
2828
2827
|
return !1;
|
|
2829
2828
|
}
|
|
2830
2829
|
}, f = () => {
|
|
2831
|
-
var z, L,
|
|
2830
|
+
var z, L, g, s;
|
|
2832
2831
|
try {
|
|
2833
|
-
return !!((s = (L = (z = o.editor) == null ? void 0 : z.can) == null ? void 0 : (
|
|
2832
|
+
return !!((s = (L = (z = o.editor) == null ? void 0 : z.can) == null ? void 0 : (g = L.call(z)).redo) != null && s.call(g));
|
|
2834
2833
|
} catch {
|
|
2835
2834
|
return !1;
|
|
2836
2835
|
}
|
|
2837
2836
|
}, v = () => {
|
|
2838
|
-
var z, L,
|
|
2839
|
-
b() && ((
|
|
2837
|
+
var z, L, g;
|
|
2838
|
+
b() && ((g = (L = (z = o.editor) == null ? void 0 : z.commands) == null ? void 0 : L.undo) == null || g.call(L));
|
|
2840
2839
|
}, M = () => {
|
|
2841
|
-
var z, L,
|
|
2842
|
-
return (
|
|
2843
|
-
}, _ = typeof navigator < "u" && navigator.platform.includes("Mac") ? "⌘ Z" : "Ctrl Z",
|
|
2844
|
-
var L,
|
|
2840
|
+
var z, L, g;
|
|
2841
|
+
return (g = (L = (z = o.editor) == null ? void 0 : z.commands) == null ? void 0 : L.redo) == null ? void 0 : g.call(L);
|
|
2842
|
+
}, _ = typeof navigator < "u" && navigator.platform.includes("Mac") ? "⌘ Z" : "Ctrl Z", h = typeof navigator < "u" && navigator.platform.includes("Mac") ? "⇧ ⌘ Z" : "Ctrl Y", x = typeof navigator < "u" && navigator.platform.includes("Mac"), $ = x ? "⌘ B" : "Ctrl B", C = x ? "⌘ I" : "Ctrl I", d = x ? "⌘ U" : "Ctrl U", a = x ? "⇧ ⌘ X" : "Ctrl Shift X", w = x ? "⌘ \\" : "Ctrl \\", k = x ? "⇧ ⌘ S" : "Ctrl Shift S", m = x ? "⇧ ⌘ 8" : "Ctrl Shift 8", D = x ? "⇧ ⌘ 7" : "Ctrl Shift 7", A = x ? "⇧ ⌘ C" : "Ctrl Shift C", E = V(null), y = () => {
|
|
2843
|
+
var L, g, s, u, S, W, U;
|
|
2845
2844
|
const z = o.editor;
|
|
2846
|
-
z && ((U = (W = (S = (u = (s = (
|
|
2847
|
-
},
|
|
2848
|
-
var
|
|
2845
|
+
z && ((U = (W = (S = (u = (s = (g = (L = z.chain()) == null ? void 0 : L.focus()) == null ? void 0 : g.unsetAllMarks) == null ? void 0 : s.call(g)) == null ? void 0 : u.removeEmptyTextStyle) == null ? void 0 : S.call(u)) == null ? void 0 : W.run) == null || U.call(W));
|
|
2846
|
+
}, T = V(!1), H = V(!1), O = V({}), P = V(null), Y = () => {
|
|
2847
|
+
var g, s, u, S, W, U;
|
|
2849
2848
|
const z = o.editor;
|
|
2850
2849
|
if (!z) return;
|
|
2851
|
-
const L = ((
|
|
2850
|
+
const L = ((g = z.getAttributes) == null ? void 0 : g.call(z, "textStyle")) || {};
|
|
2852
2851
|
O.value = {
|
|
2853
2852
|
bold: !!((s = z.isActive) != null && s.call(z, "bold")),
|
|
2854
2853
|
italic: !!((u = z.isActive) != null && u.call(z, "italic")),
|
|
@@ -2862,22 +2861,22 @@ const qt = (t) => {
|
|
|
2862
2861
|
}
|
|
2863
2862
|
};
|
|
2864
2863
|
}, et = () => {
|
|
2865
|
-
var S, W, U, R, F, K, tt, X, at,
|
|
2864
|
+
var S, W, U, R, F, K, tt, X, at, mt, Et, Bt;
|
|
2866
2865
|
const z = o.editor;
|
|
2867
2866
|
if (!z) return;
|
|
2868
2867
|
const L = O.value;
|
|
2869
|
-
let
|
|
2868
|
+
let g = (U = (S = z.chain) == null ? void 0 : (W = S.call(z)).focus) == null ? void 0 : U.call(W);
|
|
2870
2869
|
const s = L.textStyle || {}, u = (R = z.state) == null ? void 0 : R.selection;
|
|
2871
|
-
u && u.from === u.to || (
|
|
2870
|
+
u && u.from === u.to || (g = ((F = g == null ? void 0 : g.unsetAllMarks) == null ? void 0 : F.call(g)) || g, Object.keys(s).length && (g = ((K = g == null ? void 0 : g.setMark) == null ? void 0 : K.call(g, "textStyle", s)) || g), L.bold && (g = ((tt = g == null ? void 0 : g.toggleBold) == null ? void 0 : tt.call(g)) || g), L.italic && (g = ((X = g == null ? void 0 : g.toggleItalic) == null ? void 0 : X.call(g)) || g), L.strike && (g = ((at = g == null ? void 0 : g.toggleStrike) == null ? void 0 : at.call(g)) || g), L.underline && (g = ((mt = g == null ? void 0 : g.toggleUnderline) == null ? void 0 : mt.call(g)) || g), L.code && (g = ((Et = g == null ? void 0 : g.toggleCode) == null ? void 0 : Et.call(g)) || g), (Bt = g == null ? void 0 : g.run) == null || Bt.call(g));
|
|
2872
2871
|
}, q = (z) => {
|
|
2873
2872
|
var s;
|
|
2874
2873
|
const L = o.editor;
|
|
2875
2874
|
if (!L) return;
|
|
2876
|
-
Y(),
|
|
2877
|
-
const
|
|
2878
|
-
P.value =
|
|
2875
|
+
Y(), T.value = !0, H.value = !!z;
|
|
2876
|
+
const g = (s = L.state) == null ? void 0 : s.selection;
|
|
2877
|
+
P.value = g ? { from: g.from, to: g.to } : null;
|
|
2879
2878
|
}, dt = () => {
|
|
2880
|
-
|
|
2879
|
+
T.value = !1, H.value = !1;
|
|
2881
2880
|
}, Q = () => {
|
|
2882
2881
|
At();
|
|
2883
2882
|
}, rt = (z) => {
|
|
@@ -2885,8 +2884,8 @@ const qt = (t) => {
|
|
|
2885
2884
|
}, nt = (z) => {
|
|
2886
2885
|
var U, R, F, K;
|
|
2887
2886
|
if (o.disabled) return;
|
|
2888
|
-
const L = z.metaKey || z.ctrlKey,
|
|
2889
|
-
if (L && z.shiftKey &&
|
|
2887
|
+
const L = z.metaKey || z.ctrlKey, g = z.key === "c" || z.key === "C";
|
|
2888
|
+
if (L && z.shiftKey && g) {
|
|
2890
2889
|
z.preventDefault(), n("toggleCodeBlock");
|
|
2891
2890
|
return;
|
|
2892
2891
|
}
|
|
@@ -2894,7 +2893,7 @@ const qt = (t) => {
|
|
|
2894
2893
|
if (L && s) {
|
|
2895
2894
|
z.preventDefault();
|
|
2896
2895
|
try {
|
|
2897
|
-
(R = (U =
|
|
2896
|
+
(R = (U = E.value) == null ? void 0 : U.openPanel) == null || R.call(U, "find");
|
|
2898
2897
|
} catch {
|
|
2899
2898
|
}
|
|
2900
2899
|
return;
|
|
@@ -2903,14 +2902,14 @@ const qt = (t) => {
|
|
|
2903
2902
|
if (S || W) {
|
|
2904
2903
|
z.preventDefault();
|
|
2905
2904
|
try {
|
|
2906
|
-
(K = (F =
|
|
2905
|
+
(K = (F = E.value) == null ? void 0 : F.openPanel) == null || K.call(F, "replace");
|
|
2907
2906
|
} catch {
|
|
2908
2907
|
}
|
|
2909
2908
|
return;
|
|
2910
2909
|
}
|
|
2911
2910
|
};
|
|
2912
2911
|
let ut = !1;
|
|
2913
|
-
const
|
|
2912
|
+
const Tt = () => {
|
|
2914
2913
|
var L;
|
|
2915
2914
|
const z = o.editor;
|
|
2916
2915
|
!z || ut || (ut = !0, (L = z.on) == null || L.call(z, "selectionUpdate", Q), window.addEventListener("keydown", rt), window.addEventListener("keydown", nt), window.addEventListener("mouseup", Ft, !0));
|
|
@@ -2919,24 +2918,24 @@ const qt = (t) => {
|
|
|
2919
2918
|
const z = o.editor;
|
|
2920
2919
|
z && ((L = z.off) == null || L.call(z, "selectionUpdate", Q), window.removeEventListener("keydown", rt), window.removeEventListener("keydown", nt), window.removeEventListener("mouseup", Ft, !0), ut = !1);
|
|
2921
2920
|
};
|
|
2922
|
-
|
|
2923
|
-
|
|
2921
|
+
ht(() => {
|
|
2922
|
+
Tt();
|
|
2924
2923
|
}), wt(() => {
|
|
2925
2924
|
jt();
|
|
2926
|
-
}),
|
|
2925
|
+
}), gt(
|
|
2927
2926
|
() => o.editor,
|
|
2928
2927
|
(z, L) => {
|
|
2929
|
-
var
|
|
2930
|
-
L && ((
|
|
2928
|
+
var g;
|
|
2929
|
+
L && ((g = L.off) == null || g.call(L, "selectionUpdate", Q)), ut = !1, Tt();
|
|
2931
2930
|
}
|
|
2932
2931
|
);
|
|
2933
2932
|
const At = () => {
|
|
2934
2933
|
try {
|
|
2935
|
-
|
|
2934
|
+
T.value ? document.body.setAttribute("data-format-brush", "true") : document.body.removeAttribute("data-format-brush");
|
|
2936
2935
|
} catch {
|
|
2937
2936
|
}
|
|
2938
2937
|
};
|
|
2939
|
-
|
|
2938
|
+
gt(T, At), ht(At), wt(() => {
|
|
2940
2939
|
try {
|
|
2941
2940
|
document.body.removeAttribute("data-format-brush");
|
|
2942
2941
|
} catch {
|
|
@@ -2944,29 +2943,29 @@ const qt = (t) => {
|
|
|
2944
2943
|
});
|
|
2945
2944
|
const Ft = () => {
|
|
2946
2945
|
var s;
|
|
2947
|
-
if (o.disabled || !
|
|
2946
|
+
if (o.disabled || !T.value) return;
|
|
2948
2947
|
const z = o.editor;
|
|
2949
2948
|
if (!z) return;
|
|
2950
2949
|
const L = (s = z.state) == null ? void 0 : s.selection;
|
|
2951
2950
|
if (!L || L.from === L.to) return;
|
|
2952
|
-
const
|
|
2953
|
-
|
|
2951
|
+
const g = P.value;
|
|
2952
|
+
g && g.from === L.from && g.to === L.to || (et(), P.value = { from: L.from, to: L.to }, H.value || dt());
|
|
2954
2953
|
};
|
|
2955
2954
|
return (z, L) => (B(), j("div", {
|
|
2956
|
-
class: J(["header_box", { disabled:
|
|
2955
|
+
class: J(["header_box", { disabled: o.disabled, dark: p(ft) === "dark" }])
|
|
2957
2956
|
}, [
|
|
2958
2957
|
l("div", {
|
|
2959
2958
|
class: "icon",
|
|
2960
2959
|
"aria-disabled": !b(),
|
|
2961
2960
|
onClick: v
|
|
2962
2961
|
}, [
|
|
2963
|
-
r(
|
|
2962
|
+
r(p(G), {
|
|
2964
2963
|
text: "撤销",
|
|
2965
|
-
shortcut:
|
|
2964
|
+
shortcut: p(_),
|
|
2966
2965
|
placement: "bottom"
|
|
2967
2966
|
}, {
|
|
2968
2967
|
default: N(() => [
|
|
2969
|
-
r(
|
|
2968
|
+
r(p(Oe), {
|
|
2970
2969
|
theme: "outline",
|
|
2971
2970
|
strokeWidth: 3
|
|
2972
2971
|
})
|
|
@@ -2979,13 +2978,13 @@ const qt = (t) => {
|
|
|
2979
2978
|
"aria-disabled": !f(),
|
|
2980
2979
|
onClick: M
|
|
2981
2980
|
}, [
|
|
2982
|
-
r(
|
|
2981
|
+
r(p(G), {
|
|
2983
2982
|
text: "重做",
|
|
2984
|
-
shortcut:
|
|
2983
|
+
shortcut: p(h),
|
|
2985
2984
|
placement: "bottom"
|
|
2986
2985
|
}, {
|
|
2987
2986
|
default: N(() => [
|
|
2988
|
-
r(
|
|
2987
|
+
r(p(Ve), {
|
|
2989
2988
|
theme: "outline",
|
|
2990
2989
|
strokeWidth: 3
|
|
2991
2990
|
})
|
|
@@ -2994,20 +2993,20 @@ const qt = (t) => {
|
|
|
2994
2993
|
}, 8, ["shortcut"])
|
|
2995
2994
|
], 8, Ms),
|
|
2996
2995
|
l("div", {
|
|
2997
|
-
class: J(["icon", { active:
|
|
2998
|
-
onClick: L[0] || (L[0] = (
|
|
2999
|
-
onDblclick: L[1] || (L[1] = (
|
|
2996
|
+
class: J(["icon", { active: T.value }]),
|
|
2997
|
+
onClick: L[0] || (L[0] = (g) => q(!1)),
|
|
2998
|
+
onDblclick: L[1] || (L[1] = (g) => q(!0))
|
|
3000
2999
|
}, [
|
|
3001
|
-
r(
|
|
3000
|
+
r(p(G), {
|
|
3002
3001
|
text: "格式刷",
|
|
3003
|
-
shortcut:
|
|
3002
|
+
shortcut: p(k),
|
|
3004
3003
|
placement: "bottom"
|
|
3005
3004
|
}, {
|
|
3006
3005
|
default: N(() => [
|
|
3007
3006
|
r(ot, {
|
|
3008
3007
|
name: "formatBrush",
|
|
3009
3008
|
size: 18,
|
|
3010
|
-
color:
|
|
3009
|
+
color: p(ft) === "dark" && "#fff"
|
|
3011
3010
|
}, null, 8, ["color"])
|
|
3012
3011
|
]),
|
|
3013
3012
|
_: 1
|
|
@@ -3017,38 +3016,38 @@ const qt = (t) => {
|
|
|
3017
3016
|
class: "icon",
|
|
3018
3017
|
onClick: y
|
|
3019
3018
|
}, [
|
|
3020
|
-
r(
|
|
3019
|
+
r(p(G), {
|
|
3021
3020
|
text: "清除格式",
|
|
3022
|
-
shortcut:
|
|
3021
|
+
shortcut: p(w),
|
|
3023
3022
|
placement: "bottom"
|
|
3024
3023
|
}, {
|
|
3025
3024
|
default: N(() => [
|
|
3026
3025
|
r(ot, {
|
|
3027
3026
|
name: "clearFormat",
|
|
3028
3027
|
size: 18,
|
|
3029
|
-
color:
|
|
3028
|
+
color: p(ft) === "dark" && "#fff"
|
|
3030
3029
|
}, null, 8, ["color"])
|
|
3031
3030
|
]),
|
|
3032
3031
|
_: 1
|
|
3033
3032
|
}, 8, ["shortcut"])
|
|
3034
3033
|
]),
|
|
3035
|
-
r(
|
|
3034
|
+
r(p(hs), {
|
|
3036
3035
|
editor: o.editor
|
|
3037
3036
|
}, null, 8, ["editor"]),
|
|
3038
|
-
r(
|
|
3037
|
+
r(p(eo), {
|
|
3039
3038
|
editor: o.editor
|
|
3040
3039
|
}, null, 8, ["editor"]),
|
|
3041
3040
|
l("div", {
|
|
3042
3041
|
class: J(["icon", { active: i("bold") }]),
|
|
3043
|
-
onClick: L[2] || (L[2] = (
|
|
3042
|
+
onClick: L[2] || (L[2] = (g) => n("toggleBold"))
|
|
3044
3043
|
}, [
|
|
3045
|
-
r(
|
|
3044
|
+
r(p(G), {
|
|
3046
3045
|
text: "加粗",
|
|
3047
|
-
shortcut:
|
|
3046
|
+
shortcut: p($),
|
|
3048
3047
|
placement: "bottom"
|
|
3049
3048
|
}, {
|
|
3050
3049
|
default: N(() => [
|
|
3051
|
-
r(
|
|
3050
|
+
r(p(Re), {
|
|
3052
3051
|
theme: "outline",
|
|
3053
3052
|
strokeWidth: 3
|
|
3054
3053
|
})
|
|
@@ -3058,15 +3057,15 @@ const qt = (t) => {
|
|
|
3058
3057
|
], 2),
|
|
3059
3058
|
l("div", {
|
|
3060
3059
|
class: J(["icon", { active: i("italic") }]),
|
|
3061
|
-
onClick: L[3] || (L[3] = (
|
|
3060
|
+
onClick: L[3] || (L[3] = (g) => n("toggleItalic"))
|
|
3062
3061
|
}, [
|
|
3063
|
-
r(
|
|
3062
|
+
r(p(G), {
|
|
3064
3063
|
text: "斜体",
|
|
3065
|
-
shortcut:
|
|
3064
|
+
shortcut: p(C),
|
|
3066
3065
|
placement: "bottom"
|
|
3067
3066
|
}, {
|
|
3068
3067
|
default: N(() => [
|
|
3069
|
-
r(
|
|
3068
|
+
r(p(Pe), {
|
|
3070
3069
|
theme: "outline",
|
|
3071
3070
|
strokeWidth: 3
|
|
3072
3071
|
})
|
|
@@ -3076,15 +3075,15 @@ const qt = (t) => {
|
|
|
3076
3075
|
], 2),
|
|
3077
3076
|
l("div", {
|
|
3078
3077
|
class: J(["icon", { active: i("strike") }]),
|
|
3079
|
-
onClick: L[4] || (L[4] = (
|
|
3078
|
+
onClick: L[4] || (L[4] = (g) => n("toggleStrike"))
|
|
3080
3079
|
}, [
|
|
3081
|
-
r(
|
|
3080
|
+
r(p(G), {
|
|
3082
3081
|
text: "删除线",
|
|
3083
|
-
shortcut:
|
|
3082
|
+
shortcut: p(a),
|
|
3084
3083
|
placement: "bottom"
|
|
3085
3084
|
}, {
|
|
3086
3085
|
default: N(() => [
|
|
3087
|
-
r(
|
|
3086
|
+
r(p(We), {
|
|
3088
3087
|
theme: "outline",
|
|
3089
3088
|
strokeWidth: 3
|
|
3090
3089
|
})
|
|
@@ -3094,15 +3093,15 @@ const qt = (t) => {
|
|
|
3094
3093
|
], 2),
|
|
3095
3094
|
l("div", {
|
|
3096
3095
|
class: J(["icon", { active: i("underline") }]),
|
|
3097
|
-
onClick: L[5] || (L[5] = (
|
|
3096
|
+
onClick: L[5] || (L[5] = (g) => n("toggleUnderline"))
|
|
3098
3097
|
}, [
|
|
3099
|
-
r(
|
|
3098
|
+
r(p(G), {
|
|
3100
3099
|
text: "下划线",
|
|
3101
|
-
shortcut:
|
|
3100
|
+
shortcut: p(d),
|
|
3102
3101
|
placement: "bottom"
|
|
3103
3102
|
}, {
|
|
3104
3103
|
default: N(() => [
|
|
3105
|
-
r(
|
|
3104
|
+
r(p(Ne), {
|
|
3106
3105
|
theme: "outline",
|
|
3107
3106
|
strokeWidth: 3
|
|
3108
3107
|
})
|
|
@@ -3110,30 +3109,30 @@ const qt = (t) => {
|
|
|
3110
3109
|
_: 1
|
|
3111
3110
|
}, 8, ["shortcut"])
|
|
3112
3111
|
], 2),
|
|
3113
|
-
r(
|
|
3112
|
+
r(p(go), {
|
|
3114
3113
|
editor: o.editor,
|
|
3115
3114
|
currentColor: o.currentColor
|
|
3116
3115
|
}, null, 8, ["editor", "currentColor"]),
|
|
3117
|
-
r(
|
|
3116
|
+
r(p(nn), {
|
|
3118
3117
|
editor: o.editor
|
|
3119
3118
|
}, null, 8, ["editor"]),
|
|
3120
|
-
r(
|
|
3119
|
+
r(p(Cs), {
|
|
3121
3120
|
editor: o.editor
|
|
3122
3121
|
}, null, 8, ["editor"]),
|
|
3123
3122
|
l("div", {
|
|
3124
3123
|
class: J(["icon", { active: i("bulletList") }]),
|
|
3125
|
-
onClick: L[6] || (L[6] = (
|
|
3124
|
+
onClick: L[6] || (L[6] = (g) => n("toggleBulletList"))
|
|
3126
3125
|
}, [
|
|
3127
|
-
r(
|
|
3126
|
+
r(p(G), {
|
|
3128
3127
|
text: "无序列表",
|
|
3129
|
-
shortcut:
|
|
3128
|
+
shortcut: p(m),
|
|
3130
3129
|
placement: "bottom"
|
|
3131
3130
|
}, {
|
|
3132
3131
|
default: N(() => [
|
|
3133
3132
|
r(ot, {
|
|
3134
3133
|
name: "bulletList",
|
|
3135
3134
|
size: 16,
|
|
3136
|
-
color:
|
|
3135
|
+
color: p(ft) === "dark" && "#fff"
|
|
3137
3136
|
}, null, 8, ["color"])
|
|
3138
3137
|
]),
|
|
3139
3138
|
_: 1
|
|
@@ -3141,31 +3140,31 @@ const qt = (t) => {
|
|
|
3141
3140
|
], 2),
|
|
3142
3141
|
l("div", {
|
|
3143
3142
|
class: J(["icon", { active: i("orderedList") }]),
|
|
3144
|
-
onClick: L[7] || (L[7] = (
|
|
3143
|
+
onClick: L[7] || (L[7] = (g) => n("toggleOrderedList"))
|
|
3145
3144
|
}, [
|
|
3146
|
-
r(
|
|
3145
|
+
r(p(G), {
|
|
3147
3146
|
text: "有序列表",
|
|
3148
|
-
shortcut:
|
|
3147
|
+
shortcut: p(D),
|
|
3149
3148
|
placement: "bottom"
|
|
3150
3149
|
}, {
|
|
3151
3150
|
default: N(() => [
|
|
3152
3151
|
r(ot, {
|
|
3153
3152
|
name: "orderedList",
|
|
3154
3153
|
size: 16,
|
|
3155
|
-
color:
|
|
3154
|
+
color: p(ft) === "dark" && "#fff"
|
|
3156
3155
|
}, null, 8, ["color"])
|
|
3157
3156
|
]),
|
|
3158
3157
|
_: 1
|
|
3159
3158
|
}, 8, ["shortcut"])
|
|
3160
3159
|
], 2),
|
|
3161
|
-
r(
|
|
3160
|
+
r(p(is), {
|
|
3162
3161
|
editor: o.editor
|
|
3163
3162
|
}, null, 8, ["editor"]),
|
|
3164
3163
|
l("div", {
|
|
3165
3164
|
class: J(["icon", { active: i("code") }]),
|
|
3166
|
-
onClick: L[8] || (L[8] = (
|
|
3165
|
+
onClick: L[8] || (L[8] = (g) => n("toggleCode"))
|
|
3167
3166
|
}, [
|
|
3168
|
-
r(
|
|
3167
|
+
r(p(G), {
|
|
3169
3168
|
text: "行内代码",
|
|
3170
3169
|
placement: "bottom"
|
|
3171
3170
|
}, {
|
|
@@ -3173,7 +3172,7 @@ const qt = (t) => {
|
|
|
3173
3172
|
r(ot, {
|
|
3174
3173
|
name: "code",
|
|
3175
3174
|
size: 18,
|
|
3176
|
-
color:
|
|
3175
|
+
color: p(ft) === "dark" && "#fff"
|
|
3177
3176
|
}, null, 8, ["color"])
|
|
3178
3177
|
]),
|
|
3179
3178
|
_: 1
|
|
@@ -3181,60 +3180,60 @@ const qt = (t) => {
|
|
|
3181
3180
|
], 2),
|
|
3182
3181
|
l("div", {
|
|
3183
3182
|
class: J(["icon", { active: i("codeBlock") }]),
|
|
3184
|
-
onClick: L[9] || (L[9] = (
|
|
3183
|
+
onClick: L[9] || (L[9] = (g) => n("toggleCodeBlock"))
|
|
3185
3184
|
}, [
|
|
3186
|
-
r(
|
|
3185
|
+
r(p(G), {
|
|
3187
3186
|
text: "代码块",
|
|
3188
|
-
shortcut:
|
|
3187
|
+
shortcut: p(A),
|
|
3189
3188
|
placement: "bottom"
|
|
3190
3189
|
}, {
|
|
3191
3190
|
default: N(() => [
|
|
3192
3191
|
r(ot, {
|
|
3193
3192
|
name: "codeBlock",
|
|
3194
3193
|
size: 16,
|
|
3195
|
-
color:
|
|
3194
|
+
color: p(ft) === "dark" && "#fff"
|
|
3196
3195
|
}, null, 8, ["color"])
|
|
3197
3196
|
]),
|
|
3198
3197
|
_: 1
|
|
3199
3198
|
}, 8, ["shortcut"])
|
|
3200
3199
|
], 2),
|
|
3201
|
-
r(
|
|
3200
|
+
r(p(as), {
|
|
3202
3201
|
editor: o.editor
|
|
3203
3202
|
}, null, 8, ["editor"]),
|
|
3204
|
-
r(
|
|
3203
|
+
r(p(Tn), {
|
|
3205
3204
|
editor: o.editor
|
|
3206
3205
|
}, null, 8, ["editor"]),
|
|
3207
|
-
r(
|
|
3206
|
+
r(p(an), {
|
|
3208
3207
|
editor: o.editor,
|
|
3209
3208
|
imageUploader: o.imageUploader,
|
|
3210
3209
|
uploadSizeLimit: o.uploadSizeLimit
|
|
3211
3210
|
}, null, 8, ["editor", "imageUploader", "uploadSizeLimit"]),
|
|
3212
|
-
r(
|
|
3211
|
+
r(p(vn), {
|
|
3213
3212
|
editor: o.editor,
|
|
3214
3213
|
videoUploader: o.videoUploader,
|
|
3215
3214
|
uploadSizeLimit: o.uploadSizeLimit
|
|
3216
3215
|
}, null, 8, ["editor", "videoUploader", "uploadSizeLimit"]),
|
|
3217
|
-
r(
|
|
3216
|
+
r(p(Ln), {
|
|
3218
3217
|
ref_key: "findRef",
|
|
3219
|
-
ref:
|
|
3218
|
+
ref: E,
|
|
3220
3219
|
editor: o.editor
|
|
3221
3220
|
}, null, 8, ["editor"]),
|
|
3222
|
-
r(
|
|
3221
|
+
r(p(Vn), {
|
|
3223
3222
|
editor: o.editor
|
|
3224
3223
|
}, null, 8, ["editor"]),
|
|
3225
|
-
r(
|
|
3224
|
+
r(p(ss), {
|
|
3226
3225
|
editor: o.editor
|
|
3227
3226
|
}, null, 8, ["editor"]),
|
|
3228
3227
|
l("div", {
|
|
3229
3228
|
class: "icon",
|
|
3230
|
-
onClick: L[10] || (L[10] = (
|
|
3229
|
+
onClick: L[10] || (L[10] = (g) => e("toggleFullscreen"))
|
|
3231
3230
|
}, [
|
|
3232
|
-
r(
|
|
3231
|
+
r(p(G), {
|
|
3233
3232
|
text: o.fullscreen ? "退出全屏" : "全屏编辑",
|
|
3234
3233
|
placement: "bottom"
|
|
3235
3234
|
}, {
|
|
3236
3235
|
default: N(() => [
|
|
3237
|
-
(B(), zt(de(o.fullscreen ?
|
|
3236
|
+
(B(), zt(de(o.fullscreen ? p(Ue) : p(He)), {
|
|
3238
3237
|
theme: "outline",
|
|
3239
3238
|
strokeWidth: 3
|
|
3240
3239
|
}))
|
|
@@ -3243,10 +3242,10 @@ const qt = (t) => {
|
|
|
3243
3242
|
}, 8, ["text"])
|
|
3244
3243
|
]),
|
|
3245
3244
|
L[11] || (L[11] = l("div", { style: { flex: "1" } }, null, -1)),
|
|
3246
|
-
r(
|
|
3245
|
+
r(p(_s))
|
|
3247
3246
|
], 2));
|
|
3248
3247
|
}
|
|
3249
|
-
}), $s = /* @__PURE__ */ lt(zs, [["__scopeId", "data-v-
|
|
3248
|
+
}), $s = /* @__PURE__ */ lt(zs, [["__scopeId", "data-v-1d764638"]]), Ss = { class: "outline__header" }, Ts = { class: "outline__listWrap" }, Es = { class: "outline__list" }, Ds = ["onClick"], Fs = ["onClick"], As = /* @__PURE__ */ st({
|
|
3250
3249
|
__name: "index",
|
|
3251
3250
|
props: {
|
|
3252
3251
|
items: {},
|
|
@@ -3271,11 +3270,11 @@ const qt = (t) => {
|
|
|
3271
3270
|
o.pinned || b();
|
|
3272
3271
|
}
|
|
3273
3272
|
function v(w) {
|
|
3274
|
-
const k = [],
|
|
3273
|
+
const k = [], m = [];
|
|
3275
3274
|
for (const D of w) {
|
|
3276
3275
|
const A = { ...D, children: [] };
|
|
3277
|
-
for (;
|
|
3278
|
-
|
|
3276
|
+
for (; m.length && m[m.length - 1].level >= A.level; ) m.pop();
|
|
3277
|
+
m.length ? m[m.length - 1].children.push(A) : k.push(A), m.push(A);
|
|
3279
3278
|
}
|
|
3280
3279
|
return k;
|
|
3281
3280
|
}
|
|
@@ -3283,44 +3282,44 @@ const qt = (t) => {
|
|
|
3283
3282
|
function _(w) {
|
|
3284
3283
|
return M.value.has(w.pos);
|
|
3285
3284
|
}
|
|
3286
|
-
function
|
|
3285
|
+
function h(w) {
|
|
3287
3286
|
const k = M.value;
|
|
3288
3287
|
k.has(w.pos) ? k.delete(w.pos) : k.add(w.pos), M.value = new Set(k);
|
|
3289
3288
|
}
|
|
3290
3289
|
const x = ct(() => v(o.items || [])), $ = ct(() => {
|
|
3291
|
-
const w = [], k = (
|
|
3292
|
-
for (const D of
|
|
3290
|
+
const w = [], k = (m) => {
|
|
3291
|
+
for (const D of m)
|
|
3293
3292
|
w.push({ node: D, level: D.level, hasChildren: D.children.length > 0 }), M.value.has(D.pos) || k(D.children);
|
|
3294
3293
|
};
|
|
3295
3294
|
return k(x.value), w;
|
|
3296
3295
|
});
|
|
3297
3296
|
function C(w) {
|
|
3298
|
-
const k =
|
|
3297
|
+
const k = p(o.editor);
|
|
3299
3298
|
if (!k) return;
|
|
3300
|
-
const { doc:
|
|
3301
|
-
let
|
|
3302
|
-
D && D.type.name === "heading" && (
|
|
3303
|
-
const y =
|
|
3299
|
+
const { doc: m } = k.state, D = m.nodeAt(w.pos), A = Math.max(1, m.content.size - 1);
|
|
3300
|
+
let E = w.pos + 1;
|
|
3301
|
+
D && D.type.name === "heading" && (E = w.pos + D.nodeSize - 1), E = Math.min(Math.max(1, E), A), k.chain().focus().setTextSelection(E).run();
|
|
3302
|
+
const y = p(o.container) ?? null, T = k.view.coordsAtPos(E), H = o.offset ?? 8, O = o.duration ?? 700;
|
|
3304
3303
|
if (y) {
|
|
3305
|
-
const P = y.getBoundingClientRect(), Y = y.scrollTop +
|
|
3304
|
+
const P = y.getBoundingClientRect(), Y = y.scrollTop + T.top - P.top - H;
|
|
3306
3305
|
d(y, Y, O);
|
|
3307
3306
|
} else {
|
|
3308
|
-
const P = (window.scrollY || window.pageYOffset) +
|
|
3307
|
+
const P = (window.scrollY || window.pageYOffset) + T.top - H;
|
|
3309
3308
|
a(P, O);
|
|
3310
3309
|
}
|
|
3311
3310
|
}
|
|
3312
|
-
function d(w, k,
|
|
3313
|
-
const D = w.scrollTop, A = k - D,
|
|
3314
|
-
function
|
|
3315
|
-
const O = H -
|
|
3316
|
-
w.scrollTop = D + A * y(P), P < 1 && requestAnimationFrame(
|
|
3311
|
+
function d(w, k, m = 600) {
|
|
3312
|
+
const D = w.scrollTop, A = k - D, E = performance.now(), y = (H) => H < 0.5 ? 4 * H * H * H : 1 - Math.pow(-2 * H + 2, 3) / 2;
|
|
3313
|
+
function T(H) {
|
|
3314
|
+
const O = H - E, P = Math.min(1, O / m);
|
|
3315
|
+
w.scrollTop = D + A * y(P), P < 1 && requestAnimationFrame(T);
|
|
3317
3316
|
}
|
|
3318
|
-
requestAnimationFrame(
|
|
3317
|
+
requestAnimationFrame(T);
|
|
3319
3318
|
}
|
|
3320
3319
|
function a(w, k = 600) {
|
|
3321
|
-
const
|
|
3322
|
-
function y(
|
|
3323
|
-
const H =
|
|
3320
|
+
const m = window.scrollY || window.pageYOffset, D = w - m, A = performance.now(), E = (T) => T < 0.5 ? 4 * T * T * T : 1 - Math.pow(-2 * T + 2, 3) / 2;
|
|
3321
|
+
function y(T) {
|
|
3322
|
+
const H = T - A, O = Math.min(1, H / k), P = m + D * E(O);
|
|
3324
3323
|
window.scrollTo(0, P), O < 1 && requestAnimationFrame(y);
|
|
3325
3324
|
}
|
|
3326
3325
|
requestAnimationFrame(y);
|
|
@@ -3332,7 +3331,7 @@ const qt = (t) => {
|
|
|
3332
3331
|
}, [
|
|
3333
3332
|
l("aside", {
|
|
3334
3333
|
class: J(["outline", { isOpen: o.open }]),
|
|
3335
|
-
style:
|
|
3334
|
+
style: pt({
|
|
3336
3335
|
maxHeight: typeof o.maxHeight == "number" ? o.maxHeight + "px" : o.maxHeight
|
|
3337
3336
|
}),
|
|
3338
3337
|
onMouseleave: f
|
|
@@ -3344,10 +3343,10 @@ const qt = (t) => {
|
|
|
3344
3343
|
style: { "margin-top": "2px" },
|
|
3345
3344
|
name: "fixed",
|
|
3346
3345
|
size: 16,
|
|
3347
|
-
color:
|
|
3348
|
-
onClick: k[0] || (k[0] = (
|
|
3346
|
+
color: p(i) === "dark" && "#fff",
|
|
3347
|
+
onClick: k[0] || (k[0] = (m) => w.$emit("update:pinned", !0))
|
|
3349
3348
|
}, null, 8, ["color"])) : Z("", !0),
|
|
3350
|
-
o.pinned ? (B(), zt(
|
|
3349
|
+
o.pinned ? (B(), zt(p(Ie), {
|
|
3351
3350
|
key: 1,
|
|
3352
3351
|
onClick: b,
|
|
3353
3352
|
theme: "outline",
|
|
@@ -3355,16 +3354,16 @@ const qt = (t) => {
|
|
|
3355
3354
|
strokeWidth: 3
|
|
3356
3355
|
})) : Z("", !0)
|
|
3357
3356
|
]),
|
|
3358
|
-
l("div",
|
|
3359
|
-
l("ul",
|
|
3360
|
-
(B(!0), j(yt, null, bt($.value, (
|
|
3361
|
-
key:
|
|
3362
|
-
class: J(["outline__item", "lv-" +
|
|
3357
|
+
l("div", Ts, [
|
|
3358
|
+
l("ul", Es, [
|
|
3359
|
+
(B(!0), j(yt, null, bt($.value, (m, D) => (B(), j("li", {
|
|
3360
|
+
key: m.node.pos + "-" + D,
|
|
3361
|
+
class: J(["outline__item", "lv-" + m.level])
|
|
3363
3362
|
}, [
|
|
3364
|
-
|
|
3363
|
+
m.hasChildren ? (B(), j("span", {
|
|
3365
3364
|
key: 0,
|
|
3366
|
-
class: J(["outline__caret", { collapsed: _(
|
|
3367
|
-
onClick: I((A) =>
|
|
3365
|
+
class: J(["outline__caret", { collapsed: _(m.node), expanded: !_(m.node) }]),
|
|
3366
|
+
onClick: I((A) => h(m.node), ["stop"]),
|
|
3368
3367
|
title: "展开/收起"
|
|
3369
3368
|
}, [...k[3] || (k[3] = [
|
|
3370
3369
|
l("svg", {
|
|
@@ -3381,8 +3380,8 @@ const qt = (t) => {
|
|
|
3381
3380
|
])], 10, Ds)) : Z("", !0),
|
|
3382
3381
|
l("span", {
|
|
3383
3382
|
class: "outline__text",
|
|
3384
|
-
onClick: (A) => n(
|
|
3385
|
-
}, kt(
|
|
3383
|
+
onClick: (A) => n(m.node)
|
|
3384
|
+
}, kt(m.node.text || "(无标题)"), 9, Fs)
|
|
3386
3385
|
], 2))), 128))
|
|
3387
3386
|
])
|
|
3388
3387
|
])
|
|
@@ -3399,7 +3398,7 @@ const qt = (t) => {
|
|
|
3399
3398
|
})
|
|
3400
3399
|
]));
|
|
3401
3400
|
}
|
|
3402
|
-
}), Bs = /* @__PURE__ */ lt(As, [["__scopeId", "data-v-
|
|
3401
|
+
}), Bs = /* @__PURE__ */ lt(As, [["__scopeId", "data-v-06818a86"]]), Hs = ["onClick"], Vs = /* @__PURE__ */ st({
|
|
3403
3402
|
__name: "index",
|
|
3404
3403
|
props: {
|
|
3405
3404
|
modelValue: {},
|
|
@@ -3416,7 +3415,7 @@ const qt = (t) => {
|
|
|
3416
3415
|
emits: ["update:modelValue", "update:markdown"],
|
|
3417
3416
|
setup(t, { expose: c, emit: o }) {
|
|
3418
3417
|
const e = t, i = o;
|
|
3419
|
-
|
|
3418
|
+
gt(
|
|
3420
3419
|
() => e.theme,
|
|
3421
3420
|
(s) => {
|
|
3422
3421
|
s && qt(s);
|
|
@@ -3427,20 +3426,20 @@ const qt = (t) => {
|
|
|
3427
3426
|
);
|
|
3428
3427
|
const n = V(null);
|
|
3429
3428
|
let b = !1;
|
|
3430
|
-
const f = V(!1), v = V(!1), M = V(""), _ = V([]),
|
|
3429
|
+
const f = V(!1), v = V(!1), M = V(""), _ = V([]), h = V("#000000"), x = V(!0), $ = V(!0), C = V(null), d = V(void 0), a = V([]), w = V(null), k = (s) => {
|
|
3431
3430
|
var u;
|
|
3432
3431
|
if (e.readonly)
|
|
3433
3432
|
try {
|
|
3434
3433
|
s.preventDefault(), (u = s.stopPropagation) == null || u.call(s);
|
|
3435
3434
|
} catch {
|
|
3436
3435
|
}
|
|
3437
|
-
},
|
|
3436
|
+
}, m = () => {
|
|
3438
3437
|
const s = C.value;
|
|
3439
3438
|
d.value = s ? s.clientHeight : void 0;
|
|
3440
3439
|
};
|
|
3441
3440
|
let D = null;
|
|
3442
|
-
|
|
3443
|
-
|
|
3441
|
+
ht(() => {
|
|
3442
|
+
m(), D = () => m(), window.addEventListener("resize", D), Mt(() => {
|
|
3444
3443
|
const s = C.value;
|
|
3445
3444
|
s && s.addEventListener("scroll", z, { passive: !0 });
|
|
3446
3445
|
});
|
|
@@ -3448,9 +3447,9 @@ const qt = (t) => {
|
|
|
3448
3447
|
D && (window.removeEventListener("resize", D), D = null);
|
|
3449
3448
|
const s = C.value;
|
|
3450
3449
|
s && s.removeEventListener("scroll", z);
|
|
3451
|
-
}),
|
|
3452
|
-
await Mt(),
|
|
3453
|
-
}),
|
|
3450
|
+
}), gt([() => e.height, x, f], async () => {
|
|
3451
|
+
await Mt(), m(), z();
|
|
3452
|
+
}), gt(f, (s) => {
|
|
3454
3453
|
try {
|
|
3455
3454
|
document.body.style.overflow = s ? "hidden" : "";
|
|
3456
3455
|
} catch {
|
|
@@ -3463,14 +3462,14 @@ const qt = (t) => {
|
|
|
3463
3462
|
function A(s) {
|
|
3464
3463
|
s.key === "Escape" && f.value && (s.preventDefault(), f.value = !1);
|
|
3465
3464
|
}
|
|
3466
|
-
const
|
|
3465
|
+
const E = () => ft.value === "dark" ? "#fff" : e.caretColor || "#000", y = ct(() => {
|
|
3467
3466
|
const s = (S) => S == null ? void 0 : typeof S == "number" ? `${S}px` : S, u = f.value ? "100vh" : s(e.height);
|
|
3468
3467
|
return {
|
|
3469
3468
|
height: u,
|
|
3470
3469
|
"--editor-height": u,
|
|
3471
|
-
"--editor-caret-color":
|
|
3470
|
+
"--editor-caret-color": E()
|
|
3472
3471
|
};
|
|
3473
|
-
}),
|
|
3472
|
+
}), T = Pt.extend({
|
|
3474
3473
|
addAttributes() {
|
|
3475
3474
|
return {
|
|
3476
3475
|
fontSize: {
|
|
@@ -3503,13 +3502,13 @@ const qt = (t) => {
|
|
|
3503
3502
|
};
|
|
3504
3503
|
}
|
|
3505
3504
|
});
|
|
3506
|
-
|
|
3505
|
+
ht(() => {
|
|
3507
3506
|
n.value = new ue({
|
|
3508
3507
|
extensions: [
|
|
3509
3508
|
fe.configure({ dropcursor: !1 }),
|
|
3510
3509
|
xe.configure({ color: "#22c55e", width: 2 }),
|
|
3511
3510
|
Le,
|
|
3512
|
-
|
|
3511
|
+
Te,
|
|
3513
3512
|
Me.configure({
|
|
3514
3513
|
inline: !0,
|
|
3515
3514
|
allowBase64: !0
|
|
@@ -3528,7 +3527,7 @@ const qt = (t) => {
|
|
|
3528
3527
|
}),
|
|
3529
3528
|
ze,
|
|
3530
3529
|
Pt,
|
|
3531
|
-
|
|
3530
|
+
T,
|
|
3532
3531
|
H,
|
|
3533
3532
|
we,
|
|
3534
3533
|
Ce,
|
|
@@ -3554,7 +3553,7 @@ const qt = (t) => {
|
|
|
3554
3553
|
editorProps: {
|
|
3555
3554
|
// 任务列表等交互由扩展自身处理,无需额外事件
|
|
3556
3555
|
handlePaste(s, u) {
|
|
3557
|
-
var
|
|
3556
|
+
var mt, Et, Bt;
|
|
3558
3557
|
if (e.readonly) {
|
|
3559
3558
|
try {
|
|
3560
3559
|
u.preventDefault();
|
|
@@ -3583,7 +3582,7 @@ const qt = (t) => {
|
|
|
3583
3582
|
return (vt = it.type) == null ? void 0 : vt.startsWith("video/");
|
|
3584
3583
|
});
|
|
3585
3584
|
if (R)
|
|
3586
|
-
return u.preventDefault(),
|
|
3585
|
+
return u.preventDefault(), Tt(R), !0;
|
|
3587
3586
|
const K = (S.items ? Array.from(S.items) : []).find((it) => it.kind === "file"), tt = K ? K.getAsFile() : null;
|
|
3588
3587
|
if (tt && tt.type.startsWith("image/")) {
|
|
3589
3588
|
if (u.preventDefault(), !e.imageUploader) {
|
|
@@ -3596,7 +3595,7 @@ const qt = (t) => {
|
|
|
3596
3595
|
return et(tt), !0;
|
|
3597
3596
|
}
|
|
3598
3597
|
if (tt && tt.type.startsWith("video/"))
|
|
3599
|
-
return u.preventDefault(),
|
|
3598
|
+
return u.preventDefault(), Tt(tt), !0;
|
|
3600
3599
|
const X = S.getData("text/html");
|
|
3601
3600
|
if (X) {
|
|
3602
3601
|
const it = X.match(/<img[^>]+src=["']([^"']+)["']/i), vt = X.replace(/\s+/g, "").match(/^<img[^>]+src=["']([^"']+)["'][^>]*>$/i);
|
|
@@ -3608,7 +3607,7 @@ const qt = (t) => {
|
|
|
3608
3607
|
et(It);
|
|
3609
3608
|
} else {
|
|
3610
3609
|
if (/^data:image\//i.test(Vt)) {
|
|
3611
|
-
const It = Q(Vt, "clipboard.png"), Wt = (
|
|
3610
|
+
const It = Q(Vt, "clipboard.png"), Wt = (mt = e.uploadSizeLimit) == null ? void 0 : mt.image;
|
|
3612
3611
|
if (Wt) {
|
|
3613
3612
|
const le = Math.max(1, Wt) * 1024 * 1024;
|
|
3614
3613
|
if (It.size > le) {
|
|
@@ -3635,7 +3634,7 @@ const qt = (t) => {
|
|
|
3635
3634
|
const it = at.trim(), vt = ut(it);
|
|
3636
3635
|
if (rt(it) && it === at.trim()) {
|
|
3637
3636
|
if (u.preventDefault(), /^data:image\//i.test(it)) {
|
|
3638
|
-
const Dt = Q(it, "clipboard.png"), Lt = (
|
|
3637
|
+
const Dt = Q(it, "clipboard.png"), Lt = (Et = e.uploadSizeLimit) == null ? void 0 : Et.image;
|
|
3639
3638
|
if (Lt) {
|
|
3640
3639
|
const Ht = Math.max(1, Lt) * 1024 * 1024;
|
|
3641
3640
|
if (Dt.size > Ht) {
|
|
@@ -3752,7 +3751,7 @@ const qt = (t) => {
|
|
|
3752
3751
|
onSelectionUpdate: (s) => {
|
|
3753
3752
|
var W;
|
|
3754
3753
|
const S = ((W = s.editor.getAttributes("textStyle")) == null ? void 0 : W.color) || "#000000";
|
|
3755
|
-
|
|
3754
|
+
h.value = typeof S == "string" ? S : "#000000";
|
|
3756
3755
|
},
|
|
3757
3756
|
onUpdate: () => {
|
|
3758
3757
|
const s = n.value;
|
|
@@ -3761,7 +3760,7 @@ const qt = (t) => {
|
|
|
3761
3760
|
onTransaction: () => {
|
|
3762
3761
|
Ft();
|
|
3763
3762
|
},
|
|
3764
|
-
theme: ct(() =>
|
|
3763
|
+
theme: ct(() => ft.value)
|
|
3765
3764
|
}), Mt(() => {
|
|
3766
3765
|
var s, u, S, W, U, R;
|
|
3767
3766
|
Ft();
|
|
@@ -3783,7 +3782,7 @@ const qt = (t) => {
|
|
|
3783
3782
|
} catch {
|
|
3784
3783
|
}
|
|
3785
3784
|
(R = n.value) == null || R.destroy();
|
|
3786
|
-
}),
|
|
3785
|
+
}), gt(
|
|
3787
3786
|
() => e.modelValue,
|
|
3788
3787
|
(s) => {
|
|
3789
3788
|
if (b) {
|
|
@@ -3808,7 +3807,7 @@ const qt = (t) => {
|
|
|
3808
3807
|
}
|
|
3809
3808
|
});
|
|
3810
3809
|
}
|
|
3811
|
-
),
|
|
3810
|
+
), gt(
|
|
3812
3811
|
() => e.readonly,
|
|
3813
3812
|
(s) => {
|
|
3814
3813
|
var u, S;
|
|
@@ -3817,7 +3816,7 @@ const qt = (t) => {
|
|
|
3817
3816
|
} catch {
|
|
3818
3817
|
}
|
|
3819
3818
|
}
|
|
3820
|
-
),
|
|
3819
|
+
), gt(
|
|
3821
3820
|
() => e.markdown,
|
|
3822
3821
|
(s) => {
|
|
3823
3822
|
if (b) {
|
|
@@ -3901,13 +3900,13 @@ const qt = (t) => {
|
|
|
3901
3900
|
const { state: W } = S, { doc: U } = W;
|
|
3902
3901
|
let R = null;
|
|
3903
3902
|
if (U.descendants((tt, X) => {
|
|
3904
|
-
var at,
|
|
3905
|
-
return ((at = tt.type) == null ? void 0 : at.name) === "image" && ((
|
|
3903
|
+
var at, mt;
|
|
3904
|
+
return ((at = tt.type) == null ? void 0 : at.name) === "image" && ((mt = tt.attrs) == null ? void 0 : mt.src) === s ? (R = X, !1) : !0;
|
|
3906
3905
|
}), R != null) {
|
|
3907
3906
|
const tt = U.nodeAt(R), X = W.schema.nodes.image;
|
|
3908
3907
|
if (!tt || !X) return;
|
|
3909
|
-
const at = { ...tt.attrs || {}, src: u, uploading: null },
|
|
3910
|
-
S.view.dispatch(
|
|
3908
|
+
const at = { ...tt.attrs || {}, src: u, uploading: null }, mt = W.tr.setNodeMarkup(R, X, at, tt.marks);
|
|
3909
|
+
S.view.dispatch(mt);
|
|
3911
3910
|
try {
|
|
3912
3911
|
(K = (F = S.options) == null ? void 0 : F.onUpdate) == null || K.call(F, { editor: S });
|
|
3913
3912
|
} catch {
|
|
@@ -3940,7 +3939,7 @@ const qt = (t) => {
|
|
|
3940
3939
|
const S = u[1].trim().replace(/^<|>$/g, "");
|
|
3941
3940
|
return rt(S) ? S : null;
|
|
3942
3941
|
}
|
|
3943
|
-
async function
|
|
3942
|
+
async function Tt(s) {
|
|
3944
3943
|
var W;
|
|
3945
3944
|
const u = (W = e.uploadSizeLimit) == null ? void 0 : W.video;
|
|
3946
3945
|
if (u) {
|
|
@@ -4016,8 +4015,8 @@ const qt = (t) => {
|
|
|
4016
4015
|
return;
|
|
4017
4016
|
}
|
|
4018
4017
|
const W = u.getBoundingClientRect(), U = u.scrollHeight || u.clientHeight, R = u.clientHeight || 1, F = S.map((X) => {
|
|
4019
|
-
const
|
|
4020
|
-
return Math.round(
|
|
4018
|
+
const mt = s.view.coordsAtPos(Math.min(X.pos + 1, s.state.doc.content.size)).top - W.top + u.scrollTop, Et = U ? Math.max(0, Math.min(1, mt / U)) : 0;
|
|
4019
|
+
return Math.round(Et * R);
|
|
4021
4020
|
});
|
|
4022
4021
|
a.value = F;
|
|
4023
4022
|
const K = u.scrollTop + 8;
|
|
@@ -4033,22 +4032,22 @@ const qt = (t) => {
|
|
|
4033
4032
|
const u = s.target;
|
|
4034
4033
|
u.closest(".outline") || u.closest(".outline-toggle") || n.value && n.value.chain().focus().run();
|
|
4035
4034
|
}
|
|
4036
|
-
function
|
|
4035
|
+
function g() {
|
|
4037
4036
|
const s = n.value;
|
|
4038
4037
|
return s ? s.getMarkdown() : "";
|
|
4039
4038
|
}
|
|
4040
|
-
return c({ getMarkdown:
|
|
4041
|
-
class: J(["
|
|
4042
|
-
style:
|
|
4039
|
+
return c({ getMarkdown: g }), (s, u) => (B(), j("div", {
|
|
4040
|
+
class: J(["v-md-editor-wrapper", { fullscreen: f.value, readonly: e.readonly, dark: p(ft) === "dark" }]),
|
|
4041
|
+
style: pt(y.value)
|
|
4043
4042
|
}, [
|
|
4044
|
-
r(
|
|
4043
|
+
r(p($s), {
|
|
4045
4044
|
editor: n.value,
|
|
4046
|
-
currentColor:
|
|
4045
|
+
currentColor: h.value,
|
|
4047
4046
|
imageUploader: t.imageUploader,
|
|
4048
4047
|
videoUploader: t.videoUploader,
|
|
4049
4048
|
"upload-size-limit": e.uploadSizeLimit,
|
|
4050
4049
|
fullscreen: f.value,
|
|
4051
|
-
disabled:
|
|
4050
|
+
disabled: e.readonly,
|
|
4052
4051
|
onToggleFullscreen: u[0] || (u[0] = (S) => f.value = !f.value),
|
|
4053
4052
|
onOpenLinkModal: At
|
|
4054
4053
|
}, null, 8, ["editor", "currentColor", "imageUploader", "videoUploader", "upload-size-limit", "fullscreen", "disabled"]),
|
|
@@ -4061,12 +4060,12 @@ const qt = (t) => {
|
|
|
4061
4060
|
class: "editor_wrapper",
|
|
4062
4061
|
onClick: L
|
|
4063
4062
|
}, [
|
|
4064
|
-
r(
|
|
4063
|
+
r(p(ve), {
|
|
4065
4064
|
editor: n.value,
|
|
4066
4065
|
class: "content"
|
|
4067
4066
|
}, null, 8, ["editor"])
|
|
4068
4067
|
], 512),
|
|
4069
|
-
r(
|
|
4068
|
+
r(p(Bs), {
|
|
4070
4069
|
open: x.value,
|
|
4071
4070
|
"onUpdate:open": u[1] || (u[1] = (S) => x.value = S),
|
|
4072
4071
|
items: _.value,
|
|
@@ -4074,7 +4073,7 @@ const qt = (t) => {
|
|
|
4074
4073
|
container: C.value,
|
|
4075
4074
|
maxHeight: d.value,
|
|
4076
4075
|
pinned: $.value,
|
|
4077
|
-
theme:
|
|
4076
|
+
theme: p(ft),
|
|
4078
4077
|
"onUpdate:pinned": u[2] || (u[2] = (S) => $.value = S)
|
|
4079
4078
|
}, null, 8, ["open", "items", "editor", "container", "maxHeight", "pinned", "theme"]),
|
|
4080
4079
|
x.value ? Z("", !0) : (B(), j("div", {
|
|
@@ -4087,7 +4086,7 @@ const qt = (t) => {
|
|
|
4087
4086
|
return B(), j("span", {
|
|
4088
4087
|
key: W,
|
|
4089
4088
|
class: J(["outline-marker", { active: ((U = _.value[W]) == null ? void 0 : U.pos) === w.value }]),
|
|
4090
|
-
style:
|
|
4089
|
+
style: pt({ top: (S || 0) + "px" }),
|
|
4091
4090
|
onClick: I((R) => {
|
|
4092
4091
|
var F, K;
|
|
4093
4092
|
return (K = n.value) == null ? void 0 : K.chain().focus().setTextSelection((((F = _.value[W]) == null ? void 0 : F.pos) || 1) + 1).run();
|
|
@@ -4098,7 +4097,7 @@ const qt = (t) => {
|
|
|
4098
4097
|
], 2)
|
|
4099
4098
|
], 6));
|
|
4100
4099
|
}
|
|
4101
|
-
}), Us = /* @__PURE__ */ lt(Vs, [["__scopeId", "data-v-
|
|
4100
|
+
}), Us = /* @__PURE__ */ lt(Vs, [["__scopeId", "data-v-39599b71"]]), tl = {
|
|
4102
4101
|
install(t) {
|
|
4103
4102
|
t.component("Editor", Us);
|
|
4104
4103
|
}
|