@templatical/editor 0.56.0 → 0.56.1
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/{AiAltTextPopover-DdsvhE78.js → AiAltTextPopover-CpZ7UeAZ.js} +3 -3
- package/dist/{AiAltTextReview-P6to1_0t.js → AiAltTextReview-LYxvn7Qe.js} +4 -4
- package/dist/{AiChatPanel-BSlmzMRC.js → AiChatPanel-Cy05P-iO.js} +53 -53
- package/dist/{AiPanels-DAsnX-a3.js → AiPanels-CwKmXzyr.js} +1 -1
- package/dist/{AiRewriteMenu-DIISOR6U.js → AiRewriteMenu-DgqJHnza.js} +8 -8
- package/dist/{BlockIssueBadge-Bmtc50BQ.js → BlockIssueBadge-CxHJmuOh.js} +3 -3
- package/dist/{BlockPreviewCanvas-BYIzNn-9.js → BlockPreviewCanvas-DEmNZkEG.js} +44 -44
- package/dist/{CloudPanels-w34W8_BP.js → CloudPanels-Bmlf05Il.js} +11 -11
- package/dist/{CollaborationNotices-HTbCebjV.js → CollaborationNotices-C27GCMvK.js} +7 -7
- package/dist/{CommentsPanel-C5qG17Ki.js → CommentsPanel-B5NqPMmY.js} +1 -1
- package/dist/{CommentsSidebar-C7CWcUYZ.js → CommentsSidebar-BDrcrDxS.js} +42 -42
- package/dist/{CountdownBlock-BTXcCvjZ.js → CountdownBlock-D8dqjm3F.js} +6 -6
- package/dist/{CountdownToolbar-CP-pkntQ.js → CountdownToolbar-IjpCOjCd.js} +30 -30
- package/dist/{IssuesPanel-CiiNBzH0.js → IssuesPanel-uwuzeMSW.js} +87 -87
- package/dist/LanguageMenu-C-eQ0lFy.js +403 -0
- package/dist/{LocaleNotices-CTCZ7BYv.js → LocaleNotices-CDK_9D7P.js} +8 -8
- package/dist/{LogicTagInsertButton-DEOPc4RC.js → LogicTagInsertButton-BSolF7Fd.js} +3 -3
- package/dist/{MediaEditModal-DJsPLTwP.js → MediaEditModal-C8yc9dxt.js} +7 -7
- package/dist/{MediaPanels-D2WD2aE2.js → MediaPanels-FI4I8asn.js} +1 -1
- package/dist/{MergeTagInput-C9icdxw7.js → MergeTagInput-B1nl2ZMT.js} +12 -12
- package/dist/{MergeTagTextarea-CrAcmT3A.js → MergeTagTextarea-DJlf3VbS.js} +1 -1
- package/dist/{ParagraphEditor-BWBQ3jKz.js → ParagraphEditor-Dqco128s.js} +156 -156
- package/dist/{RestoreVersionDialog-CqAp16yQ.js → RestoreVersionDialog-hqLCuGV5.js} +12 -12
- package/dist/{RichTextEditorContent-xbBjVPVQ.js → RichTextEditorContent-xIEF0Y3Z.js} +2 -2
- package/dist/{SaveBlockDialog-pebNJBTc.js → SaveBlockDialog-CQlCP_XC.js} +46 -46
- package/dist/{SavedBlocksBrowserModal-CvagMcv7.js → SavedBlocksBrowserModal-BXA32Fx6.js} +23 -23
- package/dist/{SavedBlocksPanels-B9AAVBDm.js → SavedBlocksPanels-BKUzbamj.js} +1 -1
- package/dist/{SavedBlocksPickBar-BIANWe3i.js → SavedBlocksPickBar-BlvF-4UF.js} +9 -9
- package/dist/{TemplateSettings-ORq4PbCN.js → TemplateSettings-CYFtR8zv.js} +41 -41
- package/dist/{TestEmailModal-DRjCpcPl.js → TestEmailModal-BbaL17HO.js} +20 -20
- package/dist/{TestEmailPanel-H0v8El__.js → TestEmailPanel-DhB1CSpg.js} +1 -1
- package/dist/{TitleEditor-CEGbJXeU.js → TitleEditor-3BRl8u5l.js} +21 -21
- package/dist/{Toolbar-XT-uGA9J.js → Toolbar-pzNIakGM.js} +656 -656
- package/dist/{TplModal-7NQq5-VW.js → TplModal-WNuWhHZm.js} +4 -4
- package/dist/{VersionHistoryMenu-C8BE3Pr-.js → VersionHistoryMenu--T-Qp_mH.js} +15 -15
- package/dist/{VersionHistoryPanels-CuKuOSJG.js → VersionHistoryPanels-BPubvYIE.js} +1 -1
- package/dist/{VersionPreviewBanner-BVFBkveR.js → VersionPreviewBanner-ClL3Wkln.js} +7 -7
- package/dist/{WrapperBlock-Bdw-072t.js → WrapperBlock-CjfCPceb.js} +11 -11
- package/dist/{blockTypeIcons-CGplGmmr.js → blockTypeIcons-12OMwVyN.js} +1 -1
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiAltTextPopover-x999Gimz.js → AiAltTextPopover-PFjTrl0y.js} +4 -4
- package/dist/cdn/chunks/{AiAltTextPopover-x999Gimz.js.map → AiAltTextPopover-PFjTrl0y.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-DjnFz1wO.js → AiAltTextReview-BMjzvApH.js} +5 -5
- package/dist/cdn/chunks/{AiAltTextReview-DjnFz1wO.js.map → AiAltTextReview-BMjzvApH.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-DKDu9cs7.js → AiChatPanel-C2gpq4kP.js} +107 -107
- package/dist/cdn/chunks/{AiChatPanel-DKDu9cs7.js.map → AiChatPanel-C2gpq4kP.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-jMLVaiKx.js → AiPanels-Cx3PE2mE.js} +2 -2
- package/dist/cdn/chunks/{AiPanels-jMLVaiKx.js.map → AiPanels-Cx3PE2mE.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-s79rmHFy.js → AiRewriteMenu-CnkyjPEu.js} +11 -11
- package/dist/cdn/chunks/{AiRewriteMenu-s79rmHFy.js.map → AiRewriteMenu-CnkyjPEu.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-Bnmq_M4G.js → BlockIssueBadge-DncZ-HDf.js} +4 -4
- package/dist/cdn/chunks/{BlockIssueBadge-Bnmq_M4G.js.map → BlockIssueBadge-DncZ-HDf.js.map} +1 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-CCSEzL46.js +156 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-B3HkuENF.js.map → BlockPreviewCanvas-CCSEzL46.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-DQnlH_YJ.js → CloudPanels-CRztnw4M.js} +2 -2
- package/dist/cdn/chunks/{CloudPanels-DQnlH_YJ.js.map → CloudPanels-CRztnw4M.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-CHqUGhOZ.js → CollaborationNotices-IuLYT2x7.js} +8 -8
- package/dist/cdn/chunks/{CollaborationNotices-CHqUGhOZ.js.map → CollaborationNotices-IuLYT2x7.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-EtdTzTmq.js → CommentsPanel-lgjJNrrY.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-EtdTzTmq.js.map → CommentsPanel-lgjJNrrY.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-Qmj049QX.js → CommentsSidebar-DTold7iy.js} +214 -214
- package/dist/cdn/chunks/{CommentsSidebar-Qmj049QX.js.map → CommentsSidebar-DTold7iy.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-DyGsh92b.js → CountdownBlock-8aPSExrv.js} +7 -7
- package/dist/cdn/chunks/{CountdownBlock-DyGsh92b.js.map → CountdownBlock-8aPSExrv.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-Ddj2erNm.js → CountdownToolbar-CnWQEW5g.js} +50 -50
- package/dist/cdn/chunks/{CountdownToolbar-Ddj2erNm.js.map → CountdownToolbar-CnWQEW5g.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DnSnEh1X.js → IssuesPanel-CrplCzo8.js} +11 -11
- package/dist/cdn/chunks/{IssuesPanel-DnSnEh1X.js.map → IssuesPanel-CrplCzo8.js.map} +1 -1
- package/dist/cdn/chunks/{LanguageMenu-C2I_yTL5.js → LanguageMenu-B6MNInCL.js} +110 -110
- package/dist/cdn/chunks/{LanguageMenu-C2I_yTL5.js.map → LanguageMenu-B6MNInCL.js.map} +1 -1
- package/dist/cdn/chunks/{LocaleNotices-Dr9LRCAg.js → LocaleNotices-TxeAl8Iq.js} +9 -9
- package/dist/cdn/chunks/{LocaleNotices-Dr9LRCAg.js.map → LocaleNotices-TxeAl8Iq.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-BdzE9-l7.js → LogicTagInsertButton-DvSVx2DB.js} +4 -4
- package/dist/cdn/chunks/{LogicTagInsertButton-BdzE9-l7.js.map → LogicTagInsertButton-DvSVx2DB.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-CMJFXu_o.js → MediaEditModal-tGK6htBl.js} +8 -8
- package/dist/cdn/chunks/{MediaEditModal-CMJFXu_o.js.map → MediaEditModal-tGK6htBl.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-C790ZXuY.js → MediaPanels-BVrQYz2C.js} +2 -2
- package/dist/cdn/chunks/{MediaPanels-C790ZXuY.js.map → MediaPanels-BVrQYz2C.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-CmrX8Md6.js → MergeTagInput-DeuNH3re.js} +13 -13
- package/dist/cdn/chunks/{MergeTagInput-CmrX8Md6.js.map → MergeTagInput-DeuNH3re.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-KOnd2teB.js → MergeTagTextarea-B2xxIU3e.js} +2 -2
- package/dist/cdn/chunks/{MergeTagTextarea-KOnd2teB.js.map → MergeTagTextarea-B2xxIU3e.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-I9lbKaPk.js → ParagraphEditor-Bx_Hlw8d.js} +106 -106
- package/dist/cdn/chunks/{ParagraphEditor-I9lbKaPk.js.map → ParagraphEditor-Bx_Hlw8d.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-DqbULAbc.js → RestoreVersionDialog-CPrrWTsT.js} +12 -12
- package/dist/cdn/chunks/{RestoreVersionDialog-DqbULAbc.js.map → RestoreVersionDialog-CPrrWTsT.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-_O22z0pn.js → RichTextEditorContent-Dze4C9VI.js} +3 -3
- package/dist/cdn/chunks/{RichTextEditorContent-_O22z0pn.js.map → RichTextEditorContent-Dze4C9VI.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CClRLXgF.js → SaveBlockDialog-CXVwnfsy.js} +51 -51
- package/dist/cdn/chunks/{SaveBlockDialog-CClRLXgF.js.map → SaveBlockDialog-CXVwnfsy.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BIaxaxw9.js → SavedBlocksBrowserModal-BDTmenOE.js} +23 -23
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BIaxaxw9.js.map → SavedBlocksBrowserModal-BDTmenOE.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-Dfu9N6YW.js → SavedBlocksPanels-B41Rk_v1.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-Dfu9N6YW.js.map → SavedBlocksPanels-B41Rk_v1.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DiMW_dbJ.js → SavedBlocksPickBar-B97z_rFH.js} +11 -11
- package/dist/cdn/chunks/{SavedBlocksPickBar-DiMW_dbJ.js.map → SavedBlocksPickBar-B97z_rFH.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-JMUo0LIV.js → TemplateSettings-YwwRbxPc.js} +102 -102
- package/dist/cdn/chunks/{TemplateSettings-JMUo0LIV.js.map → TemplateSettings-YwwRbxPc.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-D52VtwBZ.js → TestEmailModal-BiFP2Cbx.js} +20 -20
- package/dist/cdn/chunks/{TestEmailModal-D52VtwBZ.js.map → TestEmailModal-BiFP2Cbx.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-D9ezVDHd.js → TestEmailPanel-BrivPMk2.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-D9ezVDHd.js.map → TestEmailPanel-BrivPMk2.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-D04vvbUc.js → TitleEditor-CzPkkL2s.js} +19 -19
- package/dist/cdn/chunks/{TitleEditor-D04vvbUc.js.map → TitleEditor-CzPkkL2s.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-C_Hfsher.js → Toolbar-VH07SzX7.js} +550 -550
- package/dist/cdn/chunks/{Toolbar-C_Hfsher.js.map → Toolbar-VH07SzX7.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-d6fEZGJ5.js → TplModal-DMe6J811.js} +6 -6
- package/dist/cdn/chunks/{TplModal-d6fEZGJ5.js.map → TplModal-DMe6J811.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-C8ucm43v.js → VersionHistoryMenu-DkwbKhBl.js} +15 -15
- package/dist/cdn/chunks/{VersionHistoryMenu-C8ucm43v.js.map → VersionHistoryMenu-DkwbKhBl.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-BAdzmhvH.js → VersionHistoryPanels-CgxhMRAl.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-BAdzmhvH.js.map → VersionHistoryPanels-CgxhMRAl.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-BWuovbFc.js → VersionPreviewBanner-WVBDBrwQ.js} +8 -8
- package/dist/cdn/chunks/{VersionPreviewBanner-BWuovbFc.js.map → VersionPreviewBanner-WVBDBrwQ.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-TXDSDXUP.js → WrapperBlock-CCCIcqe2.js} +12 -12
- package/dist/cdn/chunks/{WrapperBlock-TXDSDXUP.js.map → WrapperBlock-CCCIcqe2.js.map} +1 -1
- package/dist/cdn/chunks/{composables-CsfQlmcf.js → composables-D3lsO7Io.js} +925 -925
- package/dist/cdn/chunks/composables-D3lsO7Io.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-PpIFCDfj.js → createCloudRuntime-CE79GB1H.js} +15 -15
- package/dist/cdn/chunks/{createCloudRuntime-PpIFCDfj.js.map → createCloudRuntime-CE79GB1H.js.map} +1 -1
- package/dist/cdn/chunks/dist-Cf1pSluo.js +405 -0
- package/dist/cdn/chunks/{dist-DqGgijFI.js.map → dist-Cf1pSluo.js.map} +1 -1
- package/dist/cdn/chunks/{editor-modal-B8UE9V8B.js → editor-modal-CN69NlOK.js} +170 -170
- package/dist/cdn/chunks/{editor-modal-B8UE9V8B.js.map → editor-modal-CN69NlOK.js.map} +1 -1
- package/dist/cdn/chunks/en-Bcz4gS9U.js +1 -0
- package/dist/cdn/chunks/{extensions-BM6ZSnsQ.js → extensions-8dlM-fU4.js} +96 -96
- package/dist/cdn/chunks/{extensions-BM6ZSnsQ.js.map → extensions-8dlM-fU4.js.map} +1 -1
- package/dist/cdn/chunks/{sanitizeHtml-DJI7vvET.js → sanitizeHtml-B3njfkSy.js} +11 -11
- package/dist/cdn/chunks/{sanitizeHtml-DJI7vvET.js.map → sanitizeHtml-B3njfkSy.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-Qw9rHc8C.js → socialIcons-BFgc3qqJ.js} +2 -2
- package/dist/cdn/chunks/{socialIcons-Qw9rHc8C.js.map → socialIcons-BFgc3qqJ.js.map} +1 -1
- package/dist/cdn/chunks/{src-Bfj1jHnn.js → src-GgKlXNxy.js} +2 -2
- package/dist/cdn/chunks/{src-Bfj1jHnn.js.map → src-GgKlXNxy.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-Dipw_zOQ.js → tiptap-C940SvId.js} +3 -3
- package/dist/cdn/chunks/{tiptap-Dipw_zOQ.js.map → tiptap-C940SvId.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-DLvWzWsp.js → useLogicTag-B0PDeDxl.js} +4 -4
- package/dist/cdn/chunks/{useLogicTag-DLvWzWsp.js.map → useLogicTag-B0PDeDxl.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-B4FHCGGm.js → useMergeTag-BSU75bKk.js} +7 -7
- package/dist/cdn/chunks/{useMergeTag-B4FHCGGm.js.map → useMergeTag-BSU75bKk.js.map} +1 -1
- package/dist/cdn/editor.js +325 -325
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{composables-CRX6rncm.js → composables-DreAt_0A.js} +1031 -1031
- package/dist/{createCloudRuntime-DplyIlsy.js → createCloudRuntime-CL4tUlDC.js} +14 -14
- package/dist/{dist-ChOb5XHW.js → dist-0GWMyHtM.js} +1 -1
- package/dist/{dist-6DU0me3E.js → dist-B_0FPmoy.js} +1 -1
- package/dist/{dist-B8dY8drK.js → dist-BjzK1g4Z.js} +1 -1
- package/dist/{dist-54VCNoC0.js → dist-BsumKKh9.js} +1 -1
- package/dist/{dist-BWflWcpW.js → dist-C3avsUq9.js} +2 -2
- package/dist/{dist-fqSers8_.js → dist-CCLRTtJP.js} +197 -197
- package/dist/dist-CiYotUR8.js +406 -0
- package/dist/{dist-C3hu_C3w.js → dist-Cr1CLCmx.js} +1 -1
- package/dist/{dist-D_XrUEET.js → dist-CsknfjrZ.js} +3 -3
- package/dist/{dist-TAv500j6.js → dist-DDytHU_6.js} +1 -1
- package/dist/{dist-CcOn7WCo.js → dist-DKV9m4Uu.js} +1 -1
- package/dist/{dist-B9a7iVye.js → dist-Dq9VnANT.js} +1 -1
- package/dist/{dist-DZ3X-uB8.js → dist-ZrT0vAB6.js} +1 -1
- package/dist/{editor-modal-D9HT9bD6.js → editor-modal-BD32TXws.js} +106 -106
- package/dist/en-Dgs_-NBw.js +1 -0
- package/dist/{extensions-Cm6K4SRX.js → extensions-DKxHlSd7.js} +179 -179
- package/dist/{socialIcons-CJD6OsI7.js → socialIcons-oo4uL16Y.js} +1 -1
- package/dist/templatical-editor.js +526 -526
- package/dist/{useLogicTag-DLkYos2Q.js → useLogicTag-B4Zpk3eo.js} +3 -3
- package/dist/{useMergeTag-IoWOO679.js → useMergeTag-B5qlq8px.js} +7 -7
- package/package.json +7 -7
- package/dist/LanguageMenu-B981Av-6.js +0 -403
- package/dist/cdn/chunks/BlockPreviewCanvas-B3HkuENF.js +0 -156
- package/dist/cdn/chunks/composables-CsfQlmcf.js.map +0 -1
- package/dist/cdn/chunks/dist-DqGgijFI.js +0 -405
- package/dist/cdn/chunks/en-CVxNoHww.js +0 -1
- package/dist/dist-0alKVRc_.js +0 -406
- package/dist/en-De3uAutQ.js +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { B as e, Ft as t, I as n, M as r, Mt as i, N as a, P as o, Pt as s, U as c, W as l, Y as u, Z as d, _ as f, a as p, c as m, ct as h, d as g, et as _, f as v, g as y, it as b, k as x, l as S, ot as C, r as w, u as T, v as E, w as D, y as O } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
|
|
2
2
|
import { a as k, c as A, s as j, t as M } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
|
|
3
|
-
import { t as N } from "./
|
|
3
|
+
import { t as N } from "./chevron-right-DyjFqY35.js";
|
|
4
4
|
import { t as P } from "./createLucideIcon-CfBdtoUw.js";
|
|
5
|
-
import { t as F } from "./
|
|
6
|
-
import { t as I } from "./
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { h as
|
|
18
|
-
import {
|
|
5
|
+
import { t as F } from "./pencil-M9vkOB7C.js";
|
|
6
|
+
import { t as I } from "./plus-DxZiv9YC.js";
|
|
7
|
+
import { t as ee } from "./trash-Cr7rD5Hh.js";
|
|
8
|
+
import { a as L, n as R, o as te, r as ne, s as z, t as re } from "./dist-CiYotUR8.js";
|
|
9
|
+
import { t as B } from "./check-CcuCoJDh.js";
|
|
10
|
+
import { t as V } from "./loader-circle-DqKWsMHO.js";
|
|
11
|
+
import { t as H } from "./refresh-cw-UY8_sdFG.js";
|
|
12
|
+
import { t as U } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
13
|
+
import { n as ie, t as W } from "./upload-DR9pqVON.js";
|
|
14
|
+
import { t as ae } from "./link-DhzPI4Hn.js";
|
|
15
|
+
import { t as oe } from "./list-DVGn7Ik2.js";
|
|
16
|
+
import { t as se } from "./search-RuGJnMEn.js";
|
|
17
|
+
import { h as ce } from "./dist-CX7skkvG.js";
|
|
18
|
+
import { t as le } from "./x-DZSFHafL.js";
|
|
19
19
|
var G = P({
|
|
20
20
|
name: "file",
|
|
21
21
|
size: 24,
|
|
@@ -255,7 +255,7 @@ function _e(t, n) {
|
|
|
255
255
|
a = null;
|
|
256
256
|
let e = s();
|
|
257
257
|
e.length > 0 && (t.value?.querySelector("[autofocus], input:not([disabled])") ?? e[0]).focus();
|
|
258
|
-
}), i =
|
|
258
|
+
}), i = L(t, "keydown", c);
|
|
259
259
|
}
|
|
260
260
|
function u(e = {}) {
|
|
261
261
|
let t = e.restoreFocus !== !1;
|
|
@@ -300,7 +300,7 @@ var ve = {
|
|
|
300
300
|
class: "tpl:transition-colors tpl:duration-150 tpl:hover:underline",
|
|
301
301
|
style: { color: "var(--tpl-primary)" },
|
|
302
302
|
onClick: n[0] ||= (e) => a("navigate", null)
|
|
303
|
-
}, t(h(s).mediaLibrary.allFiles), 1), (r(!0), v(w, null, o(c.value, (e, n) => (r(), v(w, { key: e.id }, [f(h(
|
|
303
|
+
}, t(h(s).mediaLibrary.allFiles), 1), (r(!0), v(w, null, o(c.value, (e, n) => (r(), v(w, { key: e.id }, [f(h(N), {
|
|
304
304
|
size: 12,
|
|
305
305
|
"stroke-width": 2
|
|
306
306
|
}), n < c.value.length - 1 ? (r(), v("button", {
|
|
@@ -333,31 +333,31 @@ var ve = {
|
|
|
333
333
|
"deleteFolder"
|
|
334
334
|
],
|
|
335
335
|
setup(e, { emit: a }) {
|
|
336
|
-
let c = e, u = a, { t: d } = Z(), p = _(!1), y = _(!1), b = _(""), x = _(!1), C = _(""), E = _(!1), D = m(() => c.folder.children.length > 0), O = m(() => c.depth < 4), M = m(() => c.currentFolderId === c.folder.id),
|
|
337
|
-
function
|
|
338
|
-
for (let n of e) if (n.id === t ||
|
|
336
|
+
let c = e, u = a, { t: d } = Z(), p = _(!1), y = _(!1), b = _(""), x = _(!1), C = _(""), E = _(!1), D = m(() => c.folder.children.length > 0), O = m(() => c.depth < 4), M = m(() => c.currentFolderId === c.folder.id), P = m(() => c.currentFolderId ? R(c.folder.children, c.currentFolderId) : !1), L = m(() => p.value || P.value);
|
|
337
|
+
function R(e, t) {
|
|
338
|
+
for (let n of e) if (n.id === t || R(n.children, t)) return !0;
|
|
339
339
|
return !1;
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function te() {
|
|
342
342
|
p.value = !p.value;
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function ne() {
|
|
345
345
|
y.value = !0, b.value = c.folder.name;
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function z() {
|
|
348
348
|
let e = b.value.trim();
|
|
349
349
|
e && e !== c.folder.name && u("renameFolder", c.folder.id, e), y.value = !1, b.value = "";
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function re() {
|
|
352
352
|
y.value = !1, b.value = "";
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function B() {
|
|
355
355
|
x.value = !0, C.value = "", p.value = !0;
|
|
356
356
|
}
|
|
357
357
|
function V() {
|
|
358
358
|
C.value.trim() && u("createFolder", C.value.trim(), c.folder.id), x.value = !1, C.value = "";
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function H() {
|
|
361
361
|
x.value = !1, C.value = "";
|
|
362
362
|
}
|
|
363
363
|
function U() {
|
|
@@ -382,11 +382,11 @@ var ve = {
|
|
|
382
382
|
key: 0,
|
|
383
383
|
type: "button",
|
|
384
384
|
class: "tpl:flex tpl:size-4 tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded tpl:transition-colors",
|
|
385
|
-
"aria-expanded":
|
|
386
|
-
"aria-label":
|
|
387
|
-
onClick: A(
|
|
388
|
-
}, [f(h(
|
|
389
|
-
class: i(["tpl:transition-transform tpl:duration-150", { "tpl:rotate-90":
|
|
385
|
+
"aria-expanded": L.value,
|
|
386
|
+
"aria-label": L.value ? h(d).mediaLibrary.collapseFolder : h(d).mediaLibrary.expandFolder,
|
|
387
|
+
onClick: A(te, ["stop"])
|
|
388
|
+
}, [f(h(N), {
|
|
389
|
+
class: i(["tpl:transition-transform tpl:duration-150", { "tpl:rotate-90": L.value }]),
|
|
390
390
|
size: 10,
|
|
391
391
|
"stroke-width": 2
|
|
392
392
|
}, null, 8, ["class"])], 8, Se)) : (r(), v("span", Ce)),
|
|
@@ -410,8 +410,8 @@ var ve = {
|
|
|
410
410
|
color: "var(--tpl-text)"
|
|
411
411
|
},
|
|
412
412
|
autofocus: "",
|
|
413
|
-
onKeydown: [j(
|
|
414
|
-
onBlur:
|
|
413
|
+
onKeydown: [j(z, ["enter"]), j(A(re, ["stop"]), ["escape"])],
|
|
414
|
+
onBlur: z,
|
|
415
415
|
onClick: c[2] ||= A(() => {}, ["stop"])
|
|
416
416
|
}, null, 40, Te)), [[k, b.value]]) : g("", !0),
|
|
417
417
|
y.value ? g("", !0) : (r(), v("span", {
|
|
@@ -424,8 +424,8 @@ var ve = {
|
|
|
424
424
|
class: "tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded tpl:transition-colors",
|
|
425
425
|
title: h(d).mediaLibrary.addSubfolder,
|
|
426
426
|
"aria-label": h(d).mediaLibrary.addSubfolder,
|
|
427
|
-
onClick: A(
|
|
428
|
-
}, [f(h(
|
|
427
|
+
onClick: A(B, ["stop"])
|
|
428
|
+
}, [f(h(I), {
|
|
429
429
|
size: 12,
|
|
430
430
|
"stroke-width": 2
|
|
431
431
|
})], 8, Ee)) : g("", !0),
|
|
@@ -435,8 +435,8 @@ var ve = {
|
|
|
435
435
|
class: "tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded tpl:transition-colors",
|
|
436
436
|
title: h(d).mediaLibrary.renameFolder,
|
|
437
437
|
"aria-label": h(d).mediaLibrary.renameFolder,
|
|
438
|
-
onClick: A(
|
|
439
|
-
}, [f(h(
|
|
438
|
+
onClick: A(ne, ["stop"])
|
|
439
|
+
}, [f(h(F), {
|
|
440
440
|
size: 12,
|
|
441
441
|
"stroke-width": 2
|
|
442
442
|
})], 8, De)) : g("", !0),
|
|
@@ -448,13 +448,13 @@ var ve = {
|
|
|
448
448
|
title: E.value ? h(d).mediaLibrary.deleteFolderConfirm : h(d).mediaLibrary.deleteFolder,
|
|
449
449
|
"aria-label": E.value ? h(d).mediaLibrary.deleteFolderConfirm : h(d).mediaLibrary.deleteFolder,
|
|
450
450
|
onClick: A(U, ["stop"])
|
|
451
|
-
}, [f(h(
|
|
451
|
+
}, [f(h(ee), {
|
|
452
452
|
size: 12,
|
|
453
453
|
"stroke-width": 2,
|
|
454
454
|
style: { color: "var(--tpl-danger)" }
|
|
455
455
|
})], 8, Oe)) : g("", !0)
|
|
456
456
|
], 2))
|
|
457
|
-
], 36),
|
|
457
|
+
], 36), L.value ? (r(), v("div", ke, [(r(!0), v(w, null, o(e.folder.children, (t) => (r(), T(p, {
|
|
458
458
|
key: t.id,
|
|
459
459
|
folder: t,
|
|
460
460
|
"current-folder-id": e.currentFolderId,
|
|
@@ -488,7 +488,7 @@ var ve = {
|
|
|
488
488
|
},
|
|
489
489
|
placeholder: h(d).mediaLibrary.subfolderName,
|
|
490
490
|
autofocus: "",
|
|
491
|
-
onKeydown: [j(V, ["enter"]), j(A(
|
|
491
|
+
onKeydown: [j(V, ["enter"]), j(A(H, ["stop"]), ["escape"])],
|
|
492
492
|
onBlur: V
|
|
493
493
|
}, null, 40, Ae), [[k, C.value]])], 4)) : g("", !0)])) : g("", !0)]);
|
|
494
494
|
};
|
|
@@ -578,7 +578,7 @@ var ve = {
|
|
|
578
578
|
class: "tpl:flex tpl:w-full tpl:items-center tpl:gap-2 tpl:px-3 tpl:py-2 tpl:text-left tpl:text-xs tpl:transition-all tpl:duration-150",
|
|
579
579
|
style: { color: "var(--tpl-text-muted)" },
|
|
580
580
|
onClick: d
|
|
581
|
-
}, [f(h(
|
|
581
|
+
}, [f(h(I), {
|
|
582
582
|
size: 14,
|
|
583
583
|
"stroke-width": 1.5
|
|
584
584
|
}), y(" " + t(h(a).mediaLibrary.newFolder), 1)])) : g("", !0),
|
|
@@ -870,7 +870,7 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
|
|
|
870
870
|
}, ft = {
|
|
871
871
|
key: 4,
|
|
872
872
|
class: "tpl:flex tpl:justify-center tpl:py-4"
|
|
873
|
-
}, pt = /*#__PURE__*/
|
|
873
|
+
}, pt = /*#__PURE__*/ U(/* @__PURE__ */ O({
|
|
874
874
|
__name: "MediaGrid",
|
|
875
875
|
props: {
|
|
876
876
|
items: {},
|
|
@@ -924,7 +924,7 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
|
|
|
924
924
|
return k(e) ? "tpl:opacity-100" : "tpl:opacity-0 tpl:group-hover:opacity-100 tpl:group-focus-within:opacity-100";
|
|
925
925
|
}
|
|
926
926
|
let { t: M } = Z(), N = D(X, null), P = _(null);
|
|
927
|
-
|
|
927
|
+
z(P, ([{ isIntersecting: e }]) => {
|
|
928
928
|
e && a.hasMore && !a.isLoading && c("loadMore");
|
|
929
929
|
}, { threshold: .1 });
|
|
930
930
|
function I(e) {
|
|
@@ -992,7 +992,7 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
|
|
|
992
992
|
title: h(M).mediaLibrary.editFile,
|
|
993
993
|
"aria-label": h(M).mediaLibrary.editFile,
|
|
994
994
|
onClick: A((t) => c("edit", e), ["stop"])
|
|
995
|
-
}, [f(h(
|
|
995
|
+
}, [f(h(F), {
|
|
996
996
|
size: 12,
|
|
997
997
|
"stroke-width": 2
|
|
998
998
|
})], 8, lt)) : g("", !0), x(e) ? (r(), v("button", {
|
|
@@ -1004,11 +1004,11 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
|
|
|
1004
1004
|
title: h(M).mediaLibrary.replaceFile,
|
|
1005
1005
|
"aria-label": h(M).mediaLibrary.replaceFile,
|
|
1006
1006
|
onClick: A((t) => c("replace", e), ["stop"])
|
|
1007
|
-
}, [f(h(
|
|
1007
|
+
}, [f(h(H), {
|
|
1008
1008
|
size: 12,
|
|
1009
1009
|
"stroke-width": 2
|
|
1010
1010
|
})], 8, ut)) : g("", !0)], 2),
|
|
1011
|
-
k(e) ? (r(), v("div", dt, [f(h(
|
|
1011
|
+
k(e) ? (r(), v("div", dt, [f(h(B), {
|
|
1012
1012
|
size: 12,
|
|
1013
1013
|
"stroke-width": 3
|
|
1014
1014
|
})])) : g("", !0)
|
|
@@ -1062,7 +1062,7 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
|
|
|
1062
1062
|
title: h(M).mediaLibrary.editFile,
|
|
1063
1063
|
"aria-label": h(M).mediaLibrary.editFile,
|
|
1064
1064
|
onClick: A((t) => c("edit", e), ["stop"])
|
|
1065
|
-
}, [f(h(
|
|
1065
|
+
}, [f(h(F), {
|
|
1066
1066
|
size: 11,
|
|
1067
1067
|
"stroke-width": 2
|
|
1068
1068
|
})], 8, Qe)) : g("", !0), x(e) ? (r(), v("button", {
|
|
@@ -1077,11 +1077,11 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
|
|
|
1077
1077
|
title: h(M).mediaLibrary.replaceFile,
|
|
1078
1078
|
"aria-label": h(M).mediaLibrary.replaceFile,
|
|
1079
1079
|
onClick: A((t) => c("replace", e), ["stop"])
|
|
1080
|
-
}, [f(h(
|
|
1080
|
+
}, [f(h(H), {
|
|
1081
1081
|
size: 11,
|
|
1082
1082
|
"stroke-width": 2
|
|
1083
1083
|
})], 8, $e)) : g("", !0)], 2),
|
|
1084
|
-
k(e) ? (r(), v("div", et, [f(h(
|
|
1084
|
+
k(e) ? (r(), v("div", et, [f(h(B), {
|
|
1085
1085
|
size: 12,
|
|
1086
1086
|
"stroke-width": 3
|
|
1087
1087
|
})])) : g("", !0)
|
|
@@ -1091,7 +1091,7 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
|
|
|
1091
1091
|
ref: P,
|
|
1092
1092
|
class: "tpl:h-4"
|
|
1093
1093
|
}, null, 512),
|
|
1094
|
-
e.isLoading && e.items.length > 0 ? (r(), v("div", ft, [f(h(
|
|
1094
|
+
e.isLoading && e.items.length > 0 ? (r(), v("div", ft, [f(h(V), {
|
|
1095
1095
|
class: "tpl-spinner",
|
|
1096
1096
|
size: 20,
|
|
1097
1097
|
"stroke-width": 2,
|
|
@@ -1202,7 +1202,7 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
|
|
|
1202
1202
|
},
|
|
1203
1203
|
disabled: !x.value.trim() || n.isImporting,
|
|
1204
1204
|
onClick: C
|
|
1205
|
-
}, [n.isImporting ? (r(), v("span", St, [f(h(
|
|
1205
|
+
}, [n.isImporting ? (r(), v("span", St, [f(h(V), {
|
|
1206
1206
|
class: "tpl:animate-spin",
|
|
1207
1207
|
size: 12,
|
|
1208
1208
|
"stroke-width": 2
|
|
@@ -1233,7 +1233,7 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
|
|
|
1233
1233
|
}), r.children.length && n.push(...l(r.children, t + 1));
|
|
1234
1234
|
return n;
|
|
1235
1235
|
}
|
|
1236
|
-
return
|
|
1236
|
+
return re(c, () => {
|
|
1237
1237
|
i("close");
|
|
1238
1238
|
}), (n, u) => (r(), v("div", {
|
|
1239
1239
|
ref_key: "pickerRef",
|
|
@@ -1283,7 +1283,7 @@ var ze = { class: "tpl:p-4" }, Be = ["aria-label"], Ve = {
|
|
|
1283
1283
|
}, Ft = {
|
|
1284
1284
|
class: "tpl:mt-0.5 tpl:text-[10px]",
|
|
1285
1285
|
style: { color: "var(--tpl-text-muted)" }
|
|
1286
|
-
}, It = /*#__PURE__*/
|
|
1286
|
+
}, It = /*#__PURE__*/ U(/* @__PURE__ */ O({
|
|
1287
1287
|
__name: "MediaPreviewPanel",
|
|
1288
1288
|
props: {
|
|
1289
1289
|
item: {},
|
|
@@ -1538,9 +1538,9 @@ var Qt = [
|
|
|
1538
1538
|
for (let r of Array.from(e)) y(r) ? t.push(r) : n.push(r.name);
|
|
1539
1539
|
C.value = n, t.length && a("upload", t);
|
|
1540
1540
|
}
|
|
1541
|
-
let { isOverDropZone: O } =
|
|
1541
|
+
let { isOverDropZone: O } = ne(T, { onDrop: (e) => {
|
|
1542
1542
|
e?.length && E(e);
|
|
1543
|
-
} }), { open: k, onChange: A } =
|
|
1543
|
+
} }), { open: k, onChange: A } = te({
|
|
1544
1544
|
accept: l.value,
|
|
1545
1545
|
multiple: !0
|
|
1546
1546
|
});
|
|
@@ -1560,7 +1560,7 @@ var Qt = [
|
|
|
1560
1560
|
"background-color": "var(--tpl-bg)"
|
|
1561
1561
|
},
|
|
1562
1562
|
onClick: a[0] ||= (e) => h(k)()
|
|
1563
|
-
}, [e.isUploading ? (r(), v("div", $t, [f(h(
|
|
1563
|
+
}, [e.isUploading ? (r(), v("div", $t, [f(h(V), {
|
|
1564
1564
|
class: "tpl-spinner",
|
|
1565
1565
|
size: 20,
|
|
1566
1566
|
"stroke-width": 2,
|
|
@@ -1569,7 +1569,7 @@ var Qt = [
|
|
|
1569
1569
|
current: e.uploadProgress.current,
|
|
1570
1570
|
total: e.uploadProgress.total
|
|
1571
1571
|
}) : h(o).mediaLibrary.uploading), 1)])) : (r(), v(w, { key: 1 }, [
|
|
1572
|
-
f(h(
|
|
1572
|
+
f(h(W), {
|
|
1573
1573
|
class: "tpl:mb-2",
|
|
1574
1574
|
size: 24,
|
|
1575
1575
|
"stroke-width": 1.5,
|
|
@@ -1696,13 +1696,13 @@ function pn(t) {
|
|
|
1696
1696
|
e(o, (e) => {
|
|
1697
1697
|
e && n.loadFolders();
|
|
1698
1698
|
});
|
|
1699
|
-
let b =
|
|
1699
|
+
let b = ce((e) => {
|
|
1700
1700
|
n.search(e);
|
|
1701
1701
|
}, 300);
|
|
1702
1702
|
function x(e) {
|
|
1703
1703
|
s.value = e, b(e);
|
|
1704
1704
|
}
|
|
1705
|
-
let { copy: S, copied: C } =
|
|
1705
|
+
let { copy: S, copied: C } = R({
|
|
1706
1706
|
copiedDuring: 2e3,
|
|
1707
1707
|
legacy: !0
|
|
1708
1708
|
});
|
|
@@ -1835,13 +1835,13 @@ function mn(e) {
|
|
|
1835
1835
|
async function L(e) {
|
|
1836
1836
|
s.value = e, await F();
|
|
1837
1837
|
}
|
|
1838
|
-
async function
|
|
1838
|
+
async function R(e) {
|
|
1839
1839
|
c.value = e, await F();
|
|
1840
1840
|
}
|
|
1841
|
-
async function
|
|
1841
|
+
async function te(e) {
|
|
1842
1842
|
a.value = "files", i.value = e, o.value = "", m.value = /* @__PURE__ */ new Set(), h.value = null, await F();
|
|
1843
1843
|
}
|
|
1844
|
-
async function
|
|
1844
|
+
async function ne() {
|
|
1845
1845
|
a.value = "frequently-used", i.value = null, o.value = "", m.value = /* @__PURE__ */ new Set(), h.value = null, await W();
|
|
1846
1846
|
}
|
|
1847
1847
|
async function z(r) {
|
|
@@ -1861,7 +1861,7 @@ function mn(e) {
|
|
|
1861
1861
|
u.value = !1;
|
|
1862
1862
|
}
|
|
1863
1863
|
}
|
|
1864
|
-
async function
|
|
1864
|
+
async function re(r) {
|
|
1865
1865
|
let { create: a } = t;
|
|
1866
1866
|
if (typeof a == "function") {
|
|
1867
1867
|
u.value = !0, p.value = {
|
|
@@ -1890,7 +1890,7 @@ function mn(e) {
|
|
|
1890
1890
|
}
|
|
1891
1891
|
}
|
|
1892
1892
|
}
|
|
1893
|
-
async function
|
|
1893
|
+
async function B(t) {
|
|
1894
1894
|
if (m.value.size === 0) return;
|
|
1895
1895
|
let { move: r } = M() ?? { move: !1 };
|
|
1896
1896
|
if (typeof r == "function") try {
|
|
@@ -1904,7 +1904,7 @@ function mn(e) {
|
|
|
1904
1904
|
e.onError?.(t);
|
|
1905
1905
|
}
|
|
1906
1906
|
}
|
|
1907
|
-
async function
|
|
1907
|
+
async function V(r, i, a) {
|
|
1908
1908
|
let { update: o } = t;
|
|
1909
1909
|
if (typeof o != "function") return !1;
|
|
1910
1910
|
try {
|
|
@@ -2107,13 +2107,13 @@ function mn(e) {
|
|
|
2107
2107
|
loadMore: I,
|
|
2108
2108
|
search: ee,
|
|
2109
2109
|
filterByCategory: L,
|
|
2110
|
-
sortBy:
|
|
2111
|
-
navigateToFolder:
|
|
2112
|
-
showFrequentlyUsed:
|
|
2110
|
+
sortBy: R,
|
|
2111
|
+
navigateToFolder: te,
|
|
2112
|
+
showFrequentlyUsed: ne,
|
|
2113
2113
|
uploadFile: z,
|
|
2114
|
-
uploadFiles:
|
|
2115
|
-
moveSelected:
|
|
2116
|
-
updateFile:
|
|
2114
|
+
uploadFiles: re,
|
|
2115
|
+
moveSelected: B,
|
|
2116
|
+
updateFile: V,
|
|
2117
2117
|
deleteSelected: ie,
|
|
2118
2118
|
isImportingFromUrl: x,
|
|
2119
2119
|
importFromUrlError: S,
|
|
@@ -2237,7 +2237,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2237
2237
|
"ready"
|
|
2238
2238
|
],
|
|
2239
2239
|
setup(n, { expose: l, emit: u }) {
|
|
2240
|
-
let d = n, p = u, _ = E(() => import("./MediaEditModal-
|
|
2240
|
+
let d = n, p = u, _ = E(() => import("./MediaEditModal-C8yc9dxt.js")), b = m(() => d.translations), C = m(() => d.confirmTestId ?? "media-confirm"), D = {
|
|
2241
2241
|
get maxFileSize() {
|
|
2242
2242
|
return d.provider.maxFileSize;
|
|
2243
2243
|
},
|
|
@@ -2256,32 +2256,32 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2256
2256
|
}), N = pn({
|
|
2257
2257
|
library: j,
|
|
2258
2258
|
translations: b
|
|
2259
|
-
}), P = m(() => typeof d.provider.create == "function"),
|
|
2259
|
+
}), P = m(() => typeof d.provider.create == "function"), F = m(() => d.provider.folders !== !1), I = m(() => typeof d.provider.importFromUrl == "function"), ee = m(() => typeof d.provider.delete == "function"), L = m(() => typeof d.provider.update == "function"), R = m(() => typeof d.provider.replace == "function"), te = m(() => typeof d.provider.frequentlyUsed == "function"), ne = m(() => {
|
|
2260
2260
|
let e = d.provider.folders;
|
|
2261
2261
|
return e !== !1 && typeof e.move == "function";
|
|
2262
|
-
}),
|
|
2262
|
+
}), z = m(() => {
|
|
2263
2263
|
let e = d.provider.folders;
|
|
2264
2264
|
return e !== !1 && typeof e.create == "function";
|
|
2265
|
-
}),
|
|
2265
|
+
}), re = m(() => {
|
|
2266
2266
|
let e = d.provider.folders;
|
|
2267
2267
|
return e !== !1 && typeof e.update == "function";
|
|
2268
|
-
}),
|
|
2268
|
+
}), V = m(() => {
|
|
2269
2269
|
let e = d.provider.folders;
|
|
2270
2270
|
return e !== !1 && typeof e.delete == "function";
|
|
2271
|
-
}),
|
|
2271
|
+
}), H = m(() => j.isLoading.value && N.displayItems.value.length === 0), U = m(() => {
|
|
2272
2272
|
let e = j.previewItem.value;
|
|
2273
2273
|
return e ? !d.accept?.length || O(e.mimeType ?? "", d.accept) : !1;
|
|
2274
|
-
}),
|
|
2275
|
-
if (!
|
|
2274
|
+
}), W = m(() => {
|
|
2275
|
+
if (!ee.value) return 0;
|
|
2276
2276
|
let e = 0;
|
|
2277
2277
|
for (let t of j.selectedItems.value) N.displayItems.value.find((e) => e.id === t)?.canDelete !== !1 && (e += 1);
|
|
2278
2278
|
return e;
|
|
2279
|
-
}),
|
|
2279
|
+
}), ce = m(() => N.showImportUrlModal.value || N.editingItem.value !== null || j.showReplaceWarning.value);
|
|
2280
2280
|
function G() {
|
|
2281
|
-
return
|
|
2281
|
+
return ce.value ? !0 : N.showMovePicker.value ? (N.showMovePicker.value = !1, !0) : j.showDeleteWarning.value ? (j.cancelDelete(), !0) : !1;
|
|
2282
2282
|
}
|
|
2283
2283
|
function K() {
|
|
2284
|
-
|
|
2284
|
+
U.value && j.previewItem.value && p("confirm", j.previewItem.value);
|
|
2285
2285
|
}
|
|
2286
2286
|
function de(e) {
|
|
2287
2287
|
let t = e.target.value;
|
|
@@ -2297,7 +2297,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2297
2297
|
}, { immediate: !0 }), j.loadItems(), j.loadFrequentlyUsed(), j.loadStorage(), p("ready"), x(() => {
|
|
2298
2298
|
N.resetUI();
|
|
2299
2299
|
}), l({
|
|
2300
|
-
nestedDialogOpen:
|
|
2300
|
+
nestedDialogOpen: ce,
|
|
2301
2301
|
handleEscape: G,
|
|
2302
2302
|
library: j,
|
|
2303
2303
|
ui: N
|
|
@@ -2312,7 +2312,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2312
2312
|
S("div", yn, [S("input", {
|
|
2313
2313
|
value: h(N).searchInput.value,
|
|
2314
2314
|
type: "search",
|
|
2315
|
-
disabled:
|
|
2315
|
+
disabled: H.value,
|
|
2316
2316
|
"aria-label": b.value.mediaLibrary.searchAriaLabel,
|
|
2317
2317
|
class: "tpl:w-52 tpl:rounded-md tpl:border tpl:py-1.5 tpl:pr-3 tpl:pl-8 tpl:text-xs tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:outline-none tpl:focus:shadow-[var(--tpl-ring)] tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50",
|
|
2318
2318
|
style: {
|
|
@@ -2322,7 +2322,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2322
2322
|
},
|
|
2323
2323
|
placeholder: b.value.mediaLibrary.searchPlaceholder,
|
|
2324
2324
|
onInput: a[0] ||= (e) => h(N).handleSearchInput(e.target.value)
|
|
2325
|
-
}, null, 40, bn), f(h(
|
|
2325
|
+
}, null, 40, bn), f(h(se), {
|
|
2326
2326
|
class: "tpl:absolute tpl:top-1/2 tpl:left-2.5 tpl:-translate-y-1/2",
|
|
2327
2327
|
size: 13,
|
|
2328
2328
|
"stroke-width": 2,
|
|
@@ -2335,7 +2335,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2335
2335
|
class: "tpl:flex tpl:size-7 tpl:items-center tpl:justify-center tpl:rounded-md tpl:transition-all tpl:duration-150",
|
|
2336
2336
|
style: { color: "var(--tpl-text-muted)" },
|
|
2337
2337
|
onClick: a[1] ||= (e) => p("close")
|
|
2338
|
-
}, [f(h(
|
|
2338
|
+
}, [f(h(le), {
|
|
2339
2339
|
size: 18,
|
|
2340
2340
|
"stroke-width": 2
|
|
2341
2341
|
})], 8, xn)) : g("", !0)
|
|
@@ -2348,14 +2348,14 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2348
2348
|
"leave-from-class": "tpl:ml-0 tpl:opacity-100",
|
|
2349
2349
|
"leave-to-class": "tpl:-ml-48 tpl:opacity-0"
|
|
2350
2350
|
}, {
|
|
2351
|
-
default: c(() => [
|
|
2351
|
+
default: c(() => [F.value && h(N).showSidebar.value ? (r(), v("div", Cn, [f(Fe, {
|
|
2352
2352
|
folders: h(N).folderTree.value,
|
|
2353
2353
|
"current-folder-id": h(j).currentFolderId.value,
|
|
2354
2354
|
"view-mode": h(j).viewMode.value,
|
|
2355
|
-
"has-frequently-used":
|
|
2356
|
-
"can-create-folder":
|
|
2357
|
-
"can-rename-folder":
|
|
2358
|
-
"can-delete-folder":
|
|
2355
|
+
"has-frequently-used": te.value && h(N).hasFrequentlyUsed.value,
|
|
2356
|
+
"can-create-folder": z.value,
|
|
2357
|
+
"can-rename-folder": re.value,
|
|
2358
|
+
"can-delete-folder": V.value,
|
|
2359
2359
|
onNavigate: h(j).navigateToFolder,
|
|
2360
2360
|
onCreateFolder: h(N).handleCreateFolder,
|
|
2361
2361
|
onRenameFolder: h(N).handleRenameFolder,
|
|
@@ -2377,7 +2377,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2377
2377
|
])])) : g("", !0)]),
|
|
2378
2378
|
_: 1
|
|
2379
2379
|
}), S("div", wn, [S("div", Tn, [S("div", En, [
|
|
2380
|
-
|
|
2380
|
+
F.value ? (r(), v("button", {
|
|
2381
2381
|
key: 0,
|
|
2382
2382
|
type: "button",
|
|
2383
2383
|
"data-testid": "media-folder-toggle",
|
|
@@ -2430,7 +2430,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2430
2430
|
"aria-label": b.value.mediaLibrary.viewList,
|
|
2431
2431
|
"aria-pressed": h(N).layoutMode.value === "list",
|
|
2432
2432
|
onClick: a[4] ||= (e) => h(N).layoutMode.value = "list"
|
|
2433
|
-
}, [f(h(
|
|
2433
|
+
}, [f(h(oe), {
|
|
2434
2434
|
size: 14,
|
|
2435
2435
|
"stroke-width": 2
|
|
2436
2436
|
})], 12, jn)])
|
|
@@ -2448,7 +2448,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2448
2448
|
}, [S("option", Pn, t(b.value.mediaLibrary.filterAll), 1), (r(!0), v(w, null, o(h(k), (e) => (r(), v("option", {
|
|
2449
2449
|
key: e,
|
|
2450
2450
|
value: e
|
|
2451
|
-
}, t(h(N).getCategoryLabel(e)), 9, Fn))), 128))], 40, Nn)) : g("", !0)])]), S("div", In, [h(j).viewMode.value === "files" && (P.value ||
|
|
2451
|
+
}, t(h(N).getCategoryLabel(e)), 9, Fn))), 128))], 40, Nn)) : g("", !0)])]), S("div", In, [h(j).viewMode.value === "files" && (P.value || I.value) ? (r(), v("div", Ln, [P.value ? (r(), T(an, {
|
|
2452
2452
|
key: 0,
|
|
2453
2453
|
"is-uploading": h(j).isUploading.value,
|
|
2454
2454
|
"upload-progress": h(j).uploadProgress.value,
|
|
@@ -2457,7 +2457,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2457
2457
|
"is-uploading",
|
|
2458
2458
|
"upload-progress",
|
|
2459
2459
|
"onUpload"
|
|
2460
|
-
])) : g("", !0),
|
|
2460
|
+
])) : g("", !0), I.value ? (r(), v("button", {
|
|
2461
2461
|
key: 1,
|
|
2462
2462
|
"data-testid": "media-import-url",
|
|
2463
2463
|
class: "tpl:mt-2 tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-dashed tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
|
|
@@ -2467,7 +2467,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2467
2467
|
"background-color": "var(--tpl-bg)"
|
|
2468
2468
|
},
|
|
2469
2469
|
onClick: a[5] ||= (e) => h(N).showImportUrlModal.value = !0
|
|
2470
|
-
}, [f(h(
|
|
2470
|
+
}, [f(h(ae), {
|
|
2471
2471
|
size: 14,
|
|
2472
2472
|
"stroke-width": 2
|
|
2473
2473
|
}), y(" " + t(b.value.mediaLibrary.importFromUrl), 1)])) : g("", !0)])) : g("", !0), f(pt, {
|
|
@@ -2478,8 +2478,8 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2478
2478
|
accept: n.accept,
|
|
2479
2479
|
layout: h(N).layoutMode.value,
|
|
2480
2480
|
"search-query": h(j).searchQuery.value,
|
|
2481
|
-
"can-update":
|
|
2482
|
-
"can-replace":
|
|
2481
|
+
"can-update": L.value,
|
|
2482
|
+
"can-replace": R.value,
|
|
2483
2483
|
onSelect: h(N).handleSelect,
|
|
2484
2484
|
onToggle: h(j).toggleSelection,
|
|
2485
2485
|
onLoadMore: h(j).loadMore,
|
|
@@ -2519,7 +2519,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2519
2519
|
visible: !0,
|
|
2520
2520
|
item: h(N).editingItem.value,
|
|
2521
2521
|
save: h(N).handleEditSave,
|
|
2522
|
-
"can-crop":
|
|
2522
|
+
"can-crop": R.value && h(N).editingItem.value.canUpdate !== !1,
|
|
2523
2523
|
onClose: a[7] ||= (e) => h(N).editingItem.value = null
|
|
2524
2524
|
}, null, 8, [
|
|
2525
2525
|
"item",
|
|
@@ -2608,15 +2608,15 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2608
2608
|
backgroundColor: "var(--tpl-bg)"
|
|
2609
2609
|
}),
|
|
2610
2610
|
onClick: a[11] ||= (e) => h(N).copy(h(N).selectedUrl.value)
|
|
2611
|
-
}, [h(N).copied.value ? (r(), T(h(
|
|
2611
|
+
}, [h(N).copied.value ? (r(), T(h(B), {
|
|
2612
2612
|
key: 1,
|
|
2613
2613
|
size: 12,
|
|
2614
2614
|
"stroke-width": 2
|
|
2615
|
-
})) : (r(), T(h(
|
|
2615
|
+
})) : (r(), T(h(ie), {
|
|
2616
2616
|
key: 0,
|
|
2617
2617
|
size: 12,
|
|
2618
2618
|
"stroke-width": 2
|
|
2619
|
-
})), y(" " + t(h(N).copied.value ? b.value.mediaLibrary.copied : b.value.mediaLibrary.copyUrl), 1)], 4)) : g("", !0),
|
|
2619
|
+
})), y(" " + t(h(N).copied.value ? b.value.mediaLibrary.copied : b.value.mediaLibrary.copyUrl), 1)], 4)) : g("", !0), ne.value ? (r(), v("div", Yn, [S("button", {
|
|
2620
2620
|
class: "tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
|
|
2621
2621
|
style: {
|
|
2622
2622
|
"border-color": "var(--tpl-border)",
|
|
@@ -2634,7 +2634,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2634
2634
|
"folders",
|
|
2635
2635
|
"current-folder-id",
|
|
2636
2636
|
"onSelect"
|
|
2637
|
-
])) : g("", !0)])) : g("", !0)])) : g("", !0), S("div", Xn, [
|
|
2637
|
+
])) : g("", !0)])) : g("", !0)])) : g("", !0), S("div", Xn, [W.value > 0 ? (r(), v("button", {
|
|
2638
2638
|
key: 0,
|
|
2639
2639
|
"data-testid": "media-delete",
|
|
2640
2640
|
class: "tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
|
|
@@ -2652,7 +2652,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2652
2652
|
"background-color": "var(--tpl-primary)",
|
|
2653
2653
|
color: "var(--tpl-on-primary)"
|
|
2654
2654
|
},
|
|
2655
|
-
disabled: !
|
|
2655
|
+
disabled: !U.value,
|
|
2656
2656
|
onClick: K
|
|
2657
2657
|
}, t(n.accept?.length ? b.value.mediaLibrary.selectImage : b.value.mediaLibrary.selectFile), 9, Zn)) : g("", !0)])])])
|
|
2658
2658
|
]));
|
|
@@ -2660,7 +2660,7 @@ var hn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2660
2660
|
}), $n = /* #__PURE__ */ Object.assign({
|
|
2661
2661
|
"./locales/ca.ts": () => import("./ca-Cc6eL0ZS.js"),
|
|
2662
2662
|
"./locales/de.ts": () => import("./de-DtrXVcuY.js"),
|
|
2663
|
-
"./locales/en.ts": () => import("./en-
|
|
2663
|
+
"./locales/en.ts": () => import("./en-Dgs_-NBw.js"),
|
|
2664
2664
|
"./locales/es.ts": () => import("./es-Dw_h7Oll.js"),
|
|
2665
2665
|
"./locales/fr.ts": () => import("./fr-BJaeKu_8.js"),
|
|
2666
2666
|
"./locales/ja.ts": () => import("./ja-Cu2HdYaK.js"),
|
|
@@ -2716,7 +2716,7 @@ var sr = ["data-tpl-theme"], cr = /* @__PURE__ */ O({
|
|
|
2716
2716
|
function x(e) {
|
|
2717
2717
|
e.key === "Escape" && (y.value?.handleEscape() ? e.preventDefault() : s("close"));
|
|
2718
2718
|
}
|
|
2719
|
-
|
|
2719
|
+
L(document, "keydown", x);
|
|
2720
2720
|
function C(e) {
|
|
2721
2721
|
s("select", e), s("close");
|
|
2722
2722
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { i as default } from "./editor-modal-BD32TXws.js";
|