@templatical/editor 0.55.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-D5QosKvB.js → AiAltTextPopover-CpZ7UeAZ.js} +4 -4
- package/dist/{AiAltTextReview-D1W_lrI_.js → AiAltTextReview-LYxvn7Qe.js} +4 -4
- package/dist/{AiChatPanel-C8SeEJRP.js → AiChatPanel-Cy05P-iO.js} +56 -56
- package/dist/{AiPanels-CR6zphjP.js → AiPanels-CwKmXzyr.js} +1 -1
- package/dist/{AiRewriteMenu-BwztoMov.js → AiRewriteMenu-DgqJHnza.js} +13 -13
- package/dist/{BlockIssueBadge-DaPTq1RE.js → BlockIssueBadge-CxHJmuOh.js} +5 -5
- package/dist/BlockPreviewCanvas-DEmNZkEG.js +154 -0
- package/dist/{CloudHeaderExtras-XpjJjn3o.js → CloudHeaderExtras-Cqhw-jMz.js} +1 -1
- package/dist/{CloudPanels-Baoaj6Xf.js → CloudPanels-Bmlf05Il.js} +12 -12
- package/dist/{CollaborationNotices-Cnx0XHzZ.js → CollaborationNotices-C27GCMvK.js} +8 -8
- package/dist/{CollaboratorBar-BaBoNhwB.js → CollaboratorBar-CLQjksX-.js} +2 -2
- package/dist/{CommentsPanel-Ck3QmqiC.js → CommentsPanel-B5NqPMmY.js} +1 -1
- package/dist/{CommentsSidebar-CHknhOar.js → CommentsSidebar-BDrcrDxS.js} +42 -42
- package/dist/{CountdownBlock-BMezkFbJ.js → CountdownBlock-D8dqjm3F.js} +6 -6
- package/dist/{CountdownToolbar-CA_gDIdZ.js → CountdownToolbar-IjpCOjCd.js} +30 -30
- package/dist/{IssuesPanel-nmFhWG1p.js → IssuesPanel-uwuzeMSW.js} +89 -89
- package/dist/LanguageMenu-C-eQ0lFy.js +403 -0
- package/dist/{LocaleNotices-WzsYtBRs.js → LocaleNotices-CDK_9D7P.js} +10 -10
- package/dist/{LogicTagInsertButton-qZ82VMFx.js → LogicTagInsertButton-BSolF7Fd.js} +24 -24
- package/dist/{MediaEditModal-C3U9Mi31.js → MediaEditModal-C8yc9dxt.js} +7 -7
- package/dist/{MediaPanels-CGmk9ufe.js → MediaPanels-FI4I8asn.js} +1 -1
- package/dist/{MergeTagInput-JJeZbFkD.js → MergeTagInput-B1nl2ZMT.js} +12 -12
- package/dist/{MergeTagModeToggle-DDucd1eC.js → MergeTagModeToggle-DXvb80OE.js} +6 -6
- package/dist/{MergeTagTextarea-dQ2LRrNB.js → MergeTagTextarea-DJlf3VbS.js} +5 -5
- package/dist/{ParagraphEditor-VXYwGoz_.js → ParagraphEditor-Dqco128s.js} +173 -173
- package/dist/{RestoreVersionDialog-BibNvAaJ.js → RestoreVersionDialog-hqLCuGV5.js} +12 -12
- package/dist/{RichTextEditorContent-CU5EOlM_.js → RichTextEditorContent-xIEF0Y3Z.js} +8 -8
- package/dist/{SaveBlockDialog-S9aFi0cy.js → SaveBlockDialog-CQlCP_XC.js} +47 -47
- package/dist/{SavedBlocksBrowserModal-DIdn6B0J.js → SavedBlocksBrowserModal-BXA32Fx6.js} +24 -24
- package/dist/{SavedBlocksPanels-Cme2M6u8.js → SavedBlocksPanels-BKUzbamj.js} +1 -1
- package/dist/{SavedBlocksPickBar-BDmA7r3m.js → SavedBlocksPickBar-BlvF-4UF.js} +9 -9
- package/dist/{TemplateSettings-C_LHLm5M.js → TemplateSettings-CYFtR8zv.js} +41 -41
- package/dist/{TestEmailModal-CLIRn7eL.js → TestEmailModal-BbaL17HO.js} +20 -20
- package/dist/{TestEmailPanel-frdtjC8h.js → TestEmailPanel-DhB1CSpg.js} +1 -1
- package/dist/{TitleEditor-D5kC56Jl.js → TitleEditor-3BRl8u5l.js} +22 -22
- package/dist/{Toolbar-D904Yw_R.js → Toolbar-pzNIakGM.js} +1090 -856
- package/dist/{TplModal-BBdotDf1.js → TplModal-WNuWhHZm.js} +4 -4
- package/dist/{VersionHistoryMenu-BnP0EyLl.js → VersionHistoryMenu--T-Qp_mH.js} +17 -17
- package/dist/{VersionHistoryPanels-DhagEgOk.js → VersionHistoryPanels-BPubvYIE.js} +1 -1
- package/dist/{VersionPreviewBanner-BPP939cD.js → VersionPreviewBanner-ClL3Wkln.js} +7 -7
- package/dist/WrapperBlock-CjfCPceb.js +56 -0
- package/dist/{blockTypeIcons-CoRQV_hP.js → blockTypeIcons-12OMwVyN.js} +3 -3
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-DIkMxYCN.js → ca-BJn8lcJx.js} +8 -0
- package/dist/cdn/chunks/{AiAltTextPopover-CUGOPuRo.js → AiAltTextPopover-PFjTrl0y.js} +5 -5
- package/dist/cdn/chunks/{AiAltTextPopover-CUGOPuRo.js.map → AiAltTextPopover-PFjTrl0y.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-B9vm_L-8.js → AiAltTextReview-BMjzvApH.js} +5 -5
- package/dist/cdn/chunks/{AiAltTextReview-B9vm_L-8.js.map → AiAltTextReview-BMjzvApH.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-By8Uo1nH.js → AiChatPanel-C2gpq4kP.js} +107 -107
- package/dist/cdn/chunks/{AiChatPanel-By8Uo1nH.js.map → AiChatPanel-C2gpq4kP.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-BblCSkQy.js → AiPanels-Cx3PE2mE.js} +2 -2
- package/dist/cdn/chunks/{AiPanels-BblCSkQy.js.map → AiPanels-Cx3PE2mE.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-BvV_7tNZ.js → AiRewriteMenu-CnkyjPEu.js} +13 -13
- package/dist/cdn/chunks/{AiRewriteMenu-BvV_7tNZ.js.map → AiRewriteMenu-CnkyjPEu.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-D3Plo_wt.js → BlockIssueBadge-DncZ-HDf.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-D3Plo_wt.js.map → BlockIssueBadge-DncZ-HDf.js.map} +1 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-CCSEzL46.js +156 -0
- package/dist/cdn/chunks/BlockPreviewCanvas-CCSEzL46.js.map +1 -0
- package/dist/cdn/chunks/{CloudHeaderExtras-BtqdN777.js → CloudHeaderExtras-uUJYJFJ6.js} +2 -2
- package/dist/cdn/chunks/{CloudHeaderExtras-BtqdN777.js.map → CloudHeaderExtras-uUJYJFJ6.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-CQ0vNgsH.js → CloudPanels-CRztnw4M.js} +4 -4
- package/dist/cdn/chunks/{CloudPanels-CQ0vNgsH.js.map → CloudPanels-CRztnw4M.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-DraFUhyo.js → CollaborationNotices-IuLYT2x7.js} +9 -9
- package/dist/cdn/chunks/{CollaborationNotices-DraFUhyo.js.map → CollaborationNotices-IuLYT2x7.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-0OEH3hrj.js → CollaboratorBar-C1ZI2xwa.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-0OEH3hrj.js.map → CollaboratorBar-C1ZI2xwa.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-tZZswofV.js → CommentsPanel-lgjJNrrY.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-tZZswofV.js.map → CommentsPanel-lgjJNrrY.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-7Hfl3Hdj.js → CommentsSidebar-DTold7iy.js} +214 -214
- package/dist/cdn/chunks/{CommentsSidebar-7Hfl3Hdj.js.map → CommentsSidebar-DTold7iy.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-CjMhMhnv.js → CountdownBlock-8aPSExrv.js} +7 -7
- package/dist/cdn/chunks/{CountdownBlock-CjMhMhnv.js.map → CountdownBlock-8aPSExrv.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BxW-J7DX.js → CountdownToolbar-CnWQEW5g.js} +50 -50
- package/dist/cdn/chunks/{CountdownToolbar-BxW-J7DX.js.map → CountdownToolbar-CnWQEW5g.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BoHeIjvw.js → IssuesPanel-CrplCzo8.js} +13 -13
- package/dist/cdn/chunks/{IssuesPanel-BoHeIjvw.js.map → IssuesPanel-CrplCzo8.js.map} +1 -1
- package/dist/cdn/chunks/{LanguageMenu-BnYN5N1h.js → LanguageMenu-B6MNInCL.js} +57 -57
- package/dist/cdn/chunks/{LanguageMenu-BnYN5N1h.js.map → LanguageMenu-B6MNInCL.js.map} +1 -1
- package/dist/cdn/chunks/{LocaleNotices-8J2DRWeg.js → LocaleNotices-TxeAl8Iq.js} +10 -10
- package/dist/cdn/chunks/{LocaleNotices-8J2DRWeg.js.map → LocaleNotices-TxeAl8Iq.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-Bt2PXbQ0.js → LogicTagInsertButton-DvSVx2DB.js} +30 -30
- package/dist/cdn/chunks/LogicTagInsertButton-DvSVx2DB.js.map +1 -0
- package/dist/cdn/chunks/{MediaEditModal-Dz972UFx.js → MediaEditModal-tGK6htBl.js} +8 -8
- package/dist/cdn/chunks/{MediaEditModal-Dz972UFx.js.map → MediaEditModal-tGK6htBl.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-C6Hqtp1H.js → MediaPanels-BVrQYz2C.js} +2 -2
- package/dist/cdn/chunks/{MediaPanels-C6Hqtp1H.js.map → MediaPanels-BVrQYz2C.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-BELdMRni.js → MergeTagInput-DeuNH3re.js} +13 -13
- package/dist/cdn/chunks/{MergeTagInput-BELdMRni.js.map → MergeTagInput-DeuNH3re.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-DKfMDIEF.js → MergeTagModeToggle-D7maMGIM.js} +5 -5
- package/dist/cdn/chunks/{MergeTagModeToggle-DKfMDIEF.js.map → MergeTagModeToggle-D7maMGIM.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-w6xen3Xh.js → MergeTagTextarea-B2xxIU3e.js} +6 -6
- package/dist/cdn/chunks/{MergeTagTextarea-w6xen3Xh.js.map → MergeTagTextarea-B2xxIU3e.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-Cal9hY3U.js → ParagraphEditor-Bx_Hlw8d.js} +106 -106
- package/dist/cdn/chunks/{ParagraphEditor-Cal9hY3U.js.map → ParagraphEditor-Bx_Hlw8d.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-f_ulmASY.js → RestoreVersionDialog-CPrrWTsT.js} +12 -12
- package/dist/cdn/chunks/{RestoreVersionDialog-f_ulmASY.js.map → RestoreVersionDialog-CPrrWTsT.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-C_v0kS4A.js → RichTextEditorContent-Dze4C9VI.js} +8 -8
- package/dist/cdn/chunks/{RichTextEditorContent-C_v0kS4A.js.map → RichTextEditorContent-Dze4C9VI.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-C6N9RFls.js → SaveBlockDialog-CXVwnfsy.js} +51 -51
- package/dist/cdn/chunks/{SaveBlockDialog-C6N9RFls.js.map → SaveBlockDialog-CXVwnfsy.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-Bl2sl09D.js → SavedBlocksBrowserModal-BDTmenOE.js} +23 -23
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-Bl2sl09D.js.map → SavedBlocksBrowserModal-BDTmenOE.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-DqVcmEUK.js → SavedBlocksPanels-B41Rk_v1.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-DqVcmEUK.js.map → SavedBlocksPanels-B41Rk_v1.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DE-J1JVL.js → SavedBlocksPickBar-B97z_rFH.js} +11 -11
- package/dist/cdn/chunks/{SavedBlocksPickBar-DE-J1JVL.js.map → SavedBlocksPickBar-B97z_rFH.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-CpoKZ8oV.js → TemplateSettings-YwwRbxPc.js} +102 -102
- package/dist/cdn/chunks/{TemplateSettings-CpoKZ8oV.js.map → TemplateSettings-YwwRbxPc.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-DI3z__Bd.js → TestEmailModal-BiFP2Cbx.js} +20 -20
- package/dist/cdn/chunks/{TestEmailModal-DI3z__Bd.js.map → TestEmailModal-BiFP2Cbx.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-Cp5d2YGn.js → TestEmailPanel-BrivPMk2.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-Cp5d2YGn.js.map → TestEmailPanel-BrivPMk2.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-C2syRLdZ.js → TitleEditor-CzPkkL2s.js} +19 -19
- package/dist/cdn/chunks/{TitleEditor-C2syRLdZ.js.map → TitleEditor-CzPkkL2s.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-NEE8qxYh.js → Toolbar-VH07SzX7.js} +1153 -919
- package/dist/cdn/chunks/Toolbar-VH07SzX7.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-B1MgvtX8.js → TplModal-DMe6J811.js} +6 -6
- package/dist/cdn/chunks/{TplModal-B1MgvtX8.js.map → TplModal-DMe6J811.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-CZury5gU.js → VersionHistoryMenu-DkwbKhBl.js} +16 -16
- package/dist/cdn/chunks/{VersionHistoryMenu-CZury5gU.js.map → VersionHistoryMenu-DkwbKhBl.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-Cefd8i_e.js → VersionHistoryPanels-CgxhMRAl.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-Cefd8i_e.js.map → VersionHistoryPanels-CgxhMRAl.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-C4Ji8nu4.js → VersionPreviewBanner-WVBDBrwQ.js} +8 -8
- package/dist/cdn/chunks/{VersionPreviewBanner-C4Ji8nu4.js.map → VersionPreviewBanner-WVBDBrwQ.js.map} +1 -1
- package/dist/cdn/chunks/WrapperBlock-CCCIcqe2.js +58 -0
- package/dist/cdn/chunks/WrapperBlock-CCCIcqe2.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-Cc6RJ27V.js → blockTypeIcons-CzYA5DF9.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-Cc6RJ27V.js.map → blockTypeIcons-CzYA5DF9.js.map} +1 -1
- package/dist/cdn/chunks/{ca-DIkMxYCN.js → ca-BJn8lcJx.js} +9 -1
- package/dist/cdn/chunks/ca-BJn8lcJx.js.map +1 -0
- package/dist/cdn/chunks/composables-D3lsO7Io.js +3101 -0
- package/dist/cdn/chunks/composables-D3lsO7Io.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-DJkDGKQ_.js → createCloudRuntime-CE79GB1H.js} +16 -16
- package/dist/cdn/chunks/{createCloudRuntime-DJkDGKQ_.js.map → createCloudRuntime-CE79GB1H.js.map} +1 -1
- package/dist/{de-Cc6Ue0UD.js → cdn/chunks/de-BLFp3nWx.js} +10 -0
- package/dist/cdn/chunks/de-BLFp3nWx.js.map +1 -0
- 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-erQEOHZN.js → editor-modal-CN69NlOK.js} +187 -187
- package/dist/cdn/chunks/{editor-modal-erQEOHZN.js.map → editor-modal-CN69NlOK.js.map} +1 -1
- package/dist/cdn/chunks/en-Bcz4gS9U.js +1 -0
- package/dist/cdn/chunks/{en-BX4FujAQ.js → en-DGGQJGbm.js} +9 -1
- package/dist/cdn/chunks/en-DGGQJGbm.js.map +1 -0
- package/dist/cdn/chunks/{es-Do5b-MKU.js → es-DTY9qgLv.js} +9 -1
- package/dist/cdn/chunks/es-DTY9qgLv.js.map +1 -0
- package/dist/cdn/chunks/{extensions-BcwkOjVq.js → extensions-8dlM-fU4.js} +112 -112
- package/dist/cdn/chunks/extensions-8dlM-fU4.js.map +1 -0
- package/dist/{fr-S1n2Ebzp.js → cdn/chunks/fr-L4FqO9Gp.js} +10 -0
- package/dist/cdn/chunks/{fr-S1n2Ebzp.js.map → fr-L4FqO9Gp.js.map} +1 -1
- package/dist/cdn/chunks/{icons-Da9GKjPx.js → icons-DHExFLlT.js} +43 -43
- package/dist/cdn/chunks/{icons-Da9GKjPx.js.map → icons-DHExFLlT.js.map} +1 -1
- package/dist/cdn/chunks/{ja-DLwcq4bA.js → ja-6uOXkh4v.js} +9 -1
- package/dist/cdn/chunks/ja-6uOXkh4v.js.map +1 -0
- package/dist/cdn/chunks/{keys-CoQtCqNv.js → keys-BUmIvYy3.js} +4 -4
- package/dist/cdn/chunks/keys-BUmIvYy3.js.map +1 -0
- package/dist/{nl-0JSWaZpT.js → cdn/chunks/nl-DCxuxwNq.js} +10 -0
- package/dist/cdn/chunks/nl-DCxuxwNq.js.map +1 -0
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-BrGw5jxk.js → normalizeMergeTagMarkup-aWjkotui.js} +67 -67
- package/dist/cdn/chunks/normalizeMergeTagMarkup-aWjkotui.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-Cj0XYwuh.js → preRenderCustomBlocks-Dn6dFUwx.js} +4 -4
- package/dist/cdn/chunks/{preRenderCustomBlocks-Cj0XYwuh.js.map → preRenderCustomBlocks-Dn6dFUwx.js.map} +1 -1
- package/dist/{pt-BR-D3VlIMDZ.js → cdn/chunks/pt-BR-CBkcrebr.js} +10 -0
- package/dist/cdn/chunks/pt-BR-CBkcrebr.js.map +1 -0
- package/dist/cdn/chunks/{sanitizeHtml-GxJCxKcP.js → sanitizeHtml-B3njfkSy.js} +11 -11
- package/dist/cdn/chunks/{sanitizeHtml-GxJCxKcP.js.map → sanitizeHtml-B3njfkSy.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-B5zrrV8-.js → socialIcons-BFgc3qqJ.js} +354 -341
- package/dist/cdn/chunks/{socialIcons-B5zrrV8-.js.map → socialIcons-BFgc3qqJ.js.map} +1 -1
- package/dist/cdn/chunks/{src-Diw9SLIe.js → src-C9JWWxAk.js} +419 -423
- package/dist/cdn/chunks/src-C9JWWxAk.js.map +1 -0
- package/dist/cdn/chunks/src-GgKlXNxy.js +710 -0
- package/dist/cdn/chunks/src-GgKlXNxy.js.map +1 -0
- package/dist/cdn/chunks/{src-v47QHNmB.js → src-mXG-Of9A.js} +669 -662
- package/dist/cdn/chunks/src-mXG-Of9A.js.map +1 -0
- 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/{useCloudI18n-Cc5NZqiI.js → useCloudI18n-Xsih9yRH.js} +2 -2
- package/dist/cdn/chunks/{useCloudI18n-Cc5NZqiI.js.map → useCloudI18n-Xsih9yRH.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorRoot-D_LuZ_hE.js → useEditorRoot-Beau2Z_T.js} +2 -2
- package/dist/cdn/chunks/{useEditorRoot-D_LuZ_hE.js.map → useEditorRoot-Beau2Z_T.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-BnJYydPv.js → useI18n-D8s7HtTn.js} +2 -2
- package/dist/cdn/chunks/{useI18n-BnJYydPv.js.map → useI18n-D8s7HtTn.js.map} +1 -1
- package/dist/cdn/chunks/{useLocalizedDisplay-DekV8qar.js → useLocalizedDisplay-Bgg4qpev.js} +6 -6
- package/dist/cdn/chunks/{useLocalizedDisplay-DekV8qar.js.map → useLocalizedDisplay-Bgg4qpev.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-Cbp3I7UN.js → useLogicTag-B0PDeDxl.js} +5 -5
- package/dist/cdn/chunks/{useLogicTag-Cbp3I7UN.js.map → useLogicTag-B0PDeDxl.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-1lrpNyR5.js → useMergeTag-BSU75bKk.js} +8 -8
- package/dist/cdn/chunks/{useMergeTag-1lrpNyR5.js.map → useMergeTag-BSU75bKk.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-BWAXWeBv.js → usePopoverPosition-esO6wjvU.js} +5 -5
- package/dist/cdn/chunks/{usePopoverPosition-BWAXWeBv.js.map → usePopoverPosition-esO6wjvU.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-Ct1AwLD-.js → useScrollToBlock-CJuUu7Xj.js} +2 -2
- package/dist/cdn/chunks/{useScrollToBlock-Ct1AwLD-.js.map → useScrollToBlock-CJuUu7Xj.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-DZfmiv8V.js → withCurrentFont-QqBilClC.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-DZfmiv8V.js.map → withCurrentFont-QqBilClC.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +814 -817
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-XMnOOIEC.js → check-CcuCoJDh.js} +1 -1
- package/dist/{chevron-down-DmamTEWQ.js → chevron-down-BfYIbFbC.js} +1 -1
- package/dist/{chevron-right-BEFXOH27.js → chevron-right-DyjFqY35.js} +1 -1
- package/dist/{chevron-up-Dw7woXj8.js → chevron-up-BHEIxuS-.js} +1 -1
- package/dist/{circle-alert-BTKC9vkq.js → circle-alert-Tq7kAh9S.js} +1 -1
- package/dist/{clock-BVT5u2uG.js → clock-Df0ZiXwQ.js} +1 -1
- package/dist/{composables-DPgNn9GZ.js → composables-DreAt_0A.js} +1660 -1620
- package/dist/{createCloudRuntime-Bw8TLmQ8.js → createCloudRuntime-CL4tUlDC.js} +15 -15
- package/dist/{createLucideIcon-CgDE3xAR.js → createLucideIcon-CfBdtoUw.js} +5 -5
- package/dist/{cdn/chunks/de-Cc6Ue0UD.js → de-BLFp3nWx.js} +8 -2
- package/dist/{dist-ChOb5XHW.js → dist-0GWMyHtM.js} +1 -1
- package/dist/{dist-CBdk1Vcb.js → dist-BMUUt3zJ.js} +284 -277
- 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-BeX6otLk.js → editor-modal-BD32TXws.js} +107 -107
- package/dist/{en-BX4FujAQ.js → en-DGGQJGbm.js} +8 -0
- package/dist/en-Dgs_-NBw.js +1 -0
- package/dist/{es-Do5b-MKU.js → es-DTY9qgLv.js} +8 -0
- package/dist/{extensions-QFAARrjF.js → extensions-DKxHlSd7.js} +385 -385
- package/dist/{eye-ByMgHeA_.js → eye-B3psrAqd.js} +1 -1
- package/dist/{cdn/chunks/fr-S1n2Ebzp.js → fr-L4FqO9Gp.js} +8 -2
- package/dist/{image-Ch8tR35K.js → image-C3yuPDxx.js} +1 -1
- package/dist/index.d.ts +60 -12
- package/dist/{info-DzSD-Wpk.js → info-DKja7A68.js} +1 -1
- package/dist/{ja-DLwcq4bA.js → ja-6uOXkh4v.js} +8 -0
- package/dist/{keys-BCqskl51.js → keys-w_VRjoMu.js} +3 -3
- package/dist/{link-oDn9AR2w.js → link-DhzPI4Hn.js} +1 -1
- package/dist/{list-C5t07dp8.js → list-DVGn7Ik2.js} +1 -1
- package/dist/{loader-circle-k6xvKgUB.js → loader-circle-DqKWsMHO.js} +1 -1
- package/dist/{message-circle-C23R6OJR.js → message-circle-C4TonoBs.js} +1 -1
- package/dist/{cdn/chunks/nl-0JSWaZpT.js → nl-DCxuxwNq.js} +8 -2
- package/dist/{normalizeMergeTagMarkup-BS0nRvhq.js → normalizeMergeTagMarkup-Da9JAgx7.js} +75 -75
- package/dist/{package-C90eQ7NU.js → package-9OkiEO4S.js} +1 -1
- package/dist/{pencil-BK7GrQuA.js → pencil-M9vkOB7C.js} +1 -1
- package/dist/{plus-Cr0Mis63.js → plus-DxZiv9YC.js} +1 -1
- package/dist/{preRenderCustomBlocks-CiKvKd8V.js → preRenderCustomBlocks-CdqSp2P7.js} +4 -4
- package/dist/{cdn/chunks/pt-BR-D3VlIMDZ.js → pt-BR-CBkcrebr.js} +8 -2
- package/dist/{refresh-cw-_ZLOIEvA.js → refresh-cw-UY8_sdFG.js} +1 -1
- package/dist/{rotate-ccw-CB5wsHwv.js → rotate-ccw-BFTGCpHn.js} +1 -1
- package/dist/{sanitizeHtml-USjTyALR.js → sanitizeHtml-wBibnBF4.js} +6 -6
- package/dist/{search-BmrQNox8.js → search-RuGJnMEn.js} +1 -1
- package/dist/{send-blAsIBBg.js → send-DGB1ar02.js} +1 -1
- package/dist/{smartphone-BPpWYrwV.js → smartphone-CVA29CU_.js} +1 -1
- package/dist/{socialIcons-NvIg5ahU.js → socialIcons-oo4uL16Y.js} +427 -414
- package/dist/{sparkles-OqIxrNp-.js → sparkles-IHfEwEcd.js} +1 -1
- package/dist/{square-BP-V7iT-.js → square-_Cl44UU6.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +922 -925
- package/dist/{text-align-start-4mwX2o-F.js → text-align-start-Dqk2Xt_Q.js} +13 -13
- package/dist/{trash-B99WixTA.js → trash-Cr7rD5Hh.js} +1 -1
- package/dist/{triangle-alert-CHMiDkHa.js → triangle-alert-CKcpwtUj.js} +1 -1
- package/dist/{upload-Cp8o-hrN.js → upload-DR9pqVON.js} +1 -1
- package/dist/{useCloudI18n-Dh2iydo1.js → useCloudI18n-BczJoFf4.js} +1 -1
- package/dist/{useEditorRoot-DY3mgcHm.js → useEditorRoot-BcXKhM_8.js} +1 -1
- package/dist/{useI18n-CgtvtF4C.js → useI18n-zeWYtWSv.js} +1 -1
- package/dist/useLocalizedDisplay-Cbhx208c.js +31 -0
- package/dist/{useLogicTag-D8zgkXfb.js → useLogicTag-B4Zpk3eo.js} +4 -4
- package/dist/{useMergeTag-k7Kr0nMd.js → useMergeTag-B5qlq8px.js} +8 -8
- package/dist/{usePopoverPosition-VDQjyX_A.js → usePopoverPosition-Br3zt_MQ.js} +4 -4
- package/dist/{useScrollToBlock-B35ObCGK.js → useScrollToBlock-BfOzc1Z6.js} +2 -2
- package/dist/{withCurrentFont-Bzeg_gfH.js → withCurrentFont-m_PHcOD0.js} +1 -1
- package/dist/{x-BIBStNMS.js → x-DZSFHafL.js} +1 -1
- package/package.json +10 -10
- package/dist/BlockPreviewCanvas-C23A6FRm.js +0 -140
- package/dist/LanguageMenu-DcABUYop.js +0 -403
- package/dist/WrapperBlock-BAT3T0Cz.js +0 -44
- package/dist/cdn/chunks/BlockPreviewCanvas-Dr-xGq6v.js +0 -142
- package/dist/cdn/chunks/BlockPreviewCanvas-Dr-xGq6v.js.map +0 -1
- package/dist/cdn/chunks/LogicTagInsertButton-Bt2PXbQ0.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-NEE8qxYh.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-DFY-7YSs.js +0 -46
- package/dist/cdn/chunks/WrapperBlock-DFY-7YSs.js.map +0 -1
- package/dist/cdn/chunks/ca-DIkMxYCN.js.map +0 -1
- package/dist/cdn/chunks/composables-nyxwrM27.js +0 -3061
- package/dist/cdn/chunks/composables-nyxwrM27.js.map +0 -1
- package/dist/cdn/chunks/de-Cc6Ue0UD.js.map +0 -1
- package/dist/cdn/chunks/dist-DqGgijFI.js +0 -405
- package/dist/cdn/chunks/en-B6tLGRHq.js +0 -1
- package/dist/cdn/chunks/en-BX4FujAQ.js.map +0 -1
- package/dist/cdn/chunks/es-Do5b-MKU.js.map +0 -1
- package/dist/cdn/chunks/extensions-BcwkOjVq.js.map +0 -1
- package/dist/cdn/chunks/ja-DLwcq4bA.js.map +0 -1
- package/dist/cdn/chunks/keys-CoQtCqNv.js.map +0 -1
- package/dist/cdn/chunks/nl-0JSWaZpT.js.map +0 -1
- package/dist/cdn/chunks/normalizeMergeTagMarkup-BrGw5jxk.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-D3VlIMDZ.js.map +0 -1
- package/dist/cdn/chunks/src-Diw9SLIe.js.map +0 -1
- package/dist/cdn/chunks/src-UR3AQocX.js +0 -683
- package/dist/cdn/chunks/src-UR3AQocX.js.map +0 -1
- package/dist/cdn/chunks/src-v47QHNmB.js.map +0 -1
- package/dist/dist-0alKVRc_.js +0 -406
- package/dist/en-Do0SU6tR.js +0 -1
- package/dist/useLocalizedDisplay-LdjosX4w.js +0 -31
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { C as e, F as t, G as n, H as r, I as i, K as a, L as o, M as s, O as c, Q as l, S as u, X as d, _ as f, at as p, b as m, c as h, ct as g, dt as _, f as v, g as y, h as b, l as x, m as S, mt as C, n as w, o as T, ot as E, p as D, pt as O, tt as k, u as A, x as j, z as M } from "./draggable-DepKdldn.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { h as
|
|
5
|
-
import {
|
|
2
|
+
import { At as N, Ct as P, G as F, H as I, J as L, M as ee, R, Vt as z, at as B, bt as te, f as ne, lt as re, ot as V, s as H, t as U, w as W, wt as G, zt as K } from "./icons-DHExFLlT.js";
|
|
3
|
+
import { a as ie, n as ae, o as oe, r as se, s as ce, t as le } from "./dist-Cf1pSluo.js";
|
|
4
|
+
import { h as ue } from "./dist-BzXULHvI.js";
|
|
5
|
+
import { t as q } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
6
6
|
// ../media-library/src/keys.ts
|
|
7
7
|
var de = Symbol("templaticalMediaLimits"), J = Symbol("templaticalMediaPopoverTarget"), fe = Symbol("templaticalMediaTranslations"), Y = Symbol("templaticalMediaUiTheme"), X = Symbol("templaticalMediaUiLocale"), pe = { mediaLibrary: {
|
|
8
8
|
title: "Media Library",
|
|
@@ -182,7 +182,7 @@ function ge(e, t) {
|
|
|
182
182
|
a = null;
|
|
183
183
|
let t = s();
|
|
184
184
|
t.length > 0 && (e.value?.querySelector("[autofocus], input:not([disabled])") ?? t[0]).focus();
|
|
185
|
-
}), i =
|
|
185
|
+
}), i = ie(e, "keydown", c);
|
|
186
186
|
}
|
|
187
187
|
function d(e = {}) {
|
|
188
188
|
let t = e.restoreFocus !== !1;
|
|
@@ -227,7 +227,7 @@ var _e = {
|
|
|
227
227
|
class: "tpl:transition-colors tpl:duration-150 tpl:hover:underline",
|
|
228
228
|
style: { color: "var(--tpl-primary)" },
|
|
229
229
|
onClick: n[0] ||= (e) => i("navigate", null)
|
|
230
|
-
}, C(g(a).mediaLibrary.allFiles), 1), (t(!0), f(A, null, o(s.value, (e, n) => (t(), f(A, { key: e.id }, [j(g(
|
|
230
|
+
}, C(g(a).mediaLibrary.allFiles), 1), (t(!0), f(A, null, o(s.value, (e, n) => (t(), f(A, { key: e.id }, [j(g(K), {
|
|
231
231
|
size: 12,
|
|
232
232
|
"stroke-width": 2
|
|
233
233
|
}), n < s.value.length - 1 ? (t(), f("button", {
|
|
@@ -260,37 +260,37 @@ var _e = {
|
|
|
260
260
|
"deleteFolder"
|
|
261
261
|
],
|
|
262
262
|
setup(e, { emit: n }) {
|
|
263
|
-
let r = e, i = n, { t: s } = Z(), c = k(!1), l = k(!1), u = k(""), d = k(!1), p = k(""), m = k(!1), v = D(() => r.folder.children.length > 0), w = D(() => r.depth < 4), E = D(() => r.currentFolderId === r.folder.id), N = D(() => r.currentFolderId ? ee(r.folder.children, r.currentFolderId) : !1),
|
|
263
|
+
let r = e, i = n, { t: s } = Z(), c = k(!1), l = k(!1), u = k(""), d = k(!1), p = k(""), m = k(!1), v = D(() => r.folder.children.length > 0), w = D(() => r.depth < 4), E = D(() => r.currentFolderId === r.folder.id), N = D(() => r.currentFolderId ? ee(r.folder.children, r.currentFolderId) : !1), L = D(() => c.value || N.value);
|
|
264
264
|
function ee(e, t) {
|
|
265
265
|
for (let n of e) if (n.id === t || ee(n.children, t)) return !0;
|
|
266
266
|
return !1;
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function R() {
|
|
269
269
|
c.value = !c.value;
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function z() {
|
|
272
272
|
l.value = !0, u.value = r.folder.name;
|
|
273
273
|
}
|
|
274
274
|
function B() {
|
|
275
275
|
let e = u.value.trim();
|
|
276
276
|
e && e !== r.folder.name && i("renameFolder", r.folder.id, e), l.value = !1, u.value = "";
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function te() {
|
|
279
279
|
l.value = !1, u.value = "";
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function re() {
|
|
282
282
|
d.value = !0, p.value = "", c.value = !0;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function V() {
|
|
285
285
|
p.value.trim() && i("createFolder", p.value.trim(), r.folder.id), d.value = !1, p.value = "";
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function H() {
|
|
288
288
|
d.value = !1, p.value = "";
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function U() {
|
|
291
291
|
m.value ? (i("deleteFolder", r.folder.id), m.value = !1) : m.value = !0;
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function W(e) {
|
|
294
294
|
let t = e.relatedTarget;
|
|
295
295
|
t && e.currentTarget.contains(t) || (m.value = !1);
|
|
296
296
|
}
|
|
@@ -303,17 +303,17 @@ var _e = {
|
|
|
303
303
|
backgroundColor: E.value ? "var(--tpl-bg-active)" : "transparent",
|
|
304
304
|
color: E.value ? "var(--tpl-primary)" : "var(--tpl-text)"
|
|
305
305
|
}),
|
|
306
|
-
onFocusout:
|
|
306
|
+
onFocusout: W
|
|
307
307
|
}, [
|
|
308
308
|
v.value || d.value ? (t(), f("button", {
|
|
309
309
|
key: 0,
|
|
310
310
|
type: "button",
|
|
311
311
|
class: "tpl:flex tpl:size-4 tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded tpl:transition-colors",
|
|
312
|
-
"aria-expanded":
|
|
313
|
-
"aria-label":
|
|
314
|
-
onClick: x(
|
|
315
|
-
}, [j(g(
|
|
316
|
-
class: _(["tpl:transition-transform tpl:duration-150", { "tpl:rotate-90":
|
|
312
|
+
"aria-expanded": L.value,
|
|
313
|
+
"aria-label": L.value ? g(s).mediaLibrary.collapseFolder : g(s).mediaLibrary.expandFolder,
|
|
314
|
+
onClick: x(R, ["stop"])
|
|
315
|
+
}, [j(g(K), {
|
|
316
|
+
class: _(["tpl:transition-transform tpl:duration-150", { "tpl:rotate-90": L.value }]),
|
|
317
317
|
size: 10,
|
|
318
318
|
"stroke-width": 2
|
|
319
319
|
}, null, 8, ["class"])], 8, xe)) : (t(), f("span", Se)),
|
|
@@ -321,7 +321,7 @@ var _e = {
|
|
|
321
321
|
type: "button",
|
|
322
322
|
class: "tpl:flex tpl:min-w-0 tpl:flex-1 tpl:items-center tpl:gap-1.5",
|
|
323
323
|
onClick: r[0] ||= (t) => i("navigate", e.folder.id)
|
|
324
|
-
}, [j(g(
|
|
324
|
+
}, [j(g(P), {
|
|
325
325
|
class: "tpl:shrink-0",
|
|
326
326
|
size: 14,
|
|
327
327
|
"stroke-width": 1.5
|
|
@@ -337,7 +337,7 @@ var _e = {
|
|
|
337
337
|
color: "var(--tpl-text)"
|
|
338
338
|
},
|
|
339
339
|
autofocus: "",
|
|
340
|
-
onKeydown: [h(B, ["enter"]), h(x(
|
|
340
|
+
onKeydown: [h(B, ["enter"]), h(x(te, ["stop"]), ["escape"])],
|
|
341
341
|
onBlur: B,
|
|
342
342
|
onClick: r[2] ||= x(() => {}, ["stop"])
|
|
343
343
|
}, null, 40, we)), [[T, u.value]]) : y("", !0),
|
|
@@ -351,8 +351,8 @@ var _e = {
|
|
|
351
351
|
class: "tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded tpl:transition-colors",
|
|
352
352
|
title: g(s).mediaLibrary.addSubfolder,
|
|
353
353
|
"aria-label": g(s).mediaLibrary.addSubfolder,
|
|
354
|
-
onClick: x(
|
|
355
|
-
}, [j(g(
|
|
354
|
+
onClick: x(re, ["stop"])
|
|
355
|
+
}, [j(g(I), {
|
|
356
356
|
size: 12,
|
|
357
357
|
"stroke-width": 2
|
|
358
358
|
})], 8, Te)) : y("", !0),
|
|
@@ -362,8 +362,8 @@ var _e = {
|
|
|
362
362
|
class: "tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded tpl:transition-colors",
|
|
363
363
|
title: g(s).mediaLibrary.renameFolder,
|
|
364
364
|
"aria-label": g(s).mediaLibrary.renameFolder,
|
|
365
|
-
onClick: x(
|
|
366
|
-
}, [j(g(
|
|
365
|
+
onClick: x(z, ["stop"])
|
|
366
|
+
}, [j(g(F), {
|
|
367
367
|
size: 12,
|
|
368
368
|
"stroke-width": 2
|
|
369
369
|
})], 8, Ee)) : y("", !0),
|
|
@@ -374,14 +374,14 @@ var _e = {
|
|
|
374
374
|
class: "tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded tpl:transition-colors",
|
|
375
375
|
title: m.value ? g(s).mediaLibrary.deleteFolderConfirm : g(s).mediaLibrary.deleteFolder,
|
|
376
376
|
"aria-label": m.value ? g(s).mediaLibrary.deleteFolderConfirm : g(s).mediaLibrary.deleteFolder,
|
|
377
|
-
onClick: x(
|
|
378
|
-
}, [j(g(
|
|
377
|
+
onClick: x(U, ["stop"])
|
|
378
|
+
}, [j(g(ne), {
|
|
379
379
|
size: 12,
|
|
380
380
|
"stroke-width": 2,
|
|
381
381
|
style: { color: "var(--tpl-danger)" }
|
|
382
382
|
})], 8, De)) : y("", !0)
|
|
383
383
|
], 2))
|
|
384
|
-
], 36),
|
|
384
|
+
], 36), L.value ? (t(), f("div", Oe, [(t(!0), f(A, null, o(e.folder.children, (n) => (t(), b(c, {
|
|
385
385
|
key: n.id,
|
|
386
386
|
folder: n,
|
|
387
387
|
"current-folder-id": e.currentFolderId,
|
|
@@ -415,8 +415,8 @@ var _e = {
|
|
|
415
415
|
},
|
|
416
416
|
placeholder: g(s).mediaLibrary.subfolderName,
|
|
417
417
|
autofocus: "",
|
|
418
|
-
onKeydown: [h(
|
|
419
|
-
onBlur:
|
|
418
|
+
onKeydown: [h(V, ["enter"]), h(x(H, ["stop"]), ["escape"])],
|
|
419
|
+
onBlur: V
|
|
420
420
|
}, null, 40, ke), [[T, p.value]])], 4)) : y("", !0)])) : y("", !0)]);
|
|
421
421
|
};
|
|
422
422
|
}
|
|
@@ -463,7 +463,7 @@ var _e = {
|
|
|
463
463
|
color: e.viewMode === "files" && e.currentFolderId === null ? "var(--tpl-primary)" : "var(--tpl-text)"
|
|
464
464
|
}),
|
|
465
465
|
onClick: p[0] ||= (e) => r("navigate", null)
|
|
466
|
-
}, [j(g(
|
|
466
|
+
}, [j(g(G), {
|
|
467
467
|
size: 14,
|
|
468
468
|
"stroke-width": 1.5
|
|
469
469
|
}), m(" " + C(g(i).mediaLibrary.allFiles), 1)], 4),
|
|
@@ -505,7 +505,7 @@ var _e = {
|
|
|
505
505
|
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",
|
|
506
506
|
style: { color: "var(--tpl-text-muted)" },
|
|
507
507
|
onClick: l
|
|
508
|
-
}, [j(g(
|
|
508
|
+
}, [j(g(I), {
|
|
509
509
|
size: 14,
|
|
510
510
|
"stroke-width": 1.5
|
|
511
511
|
}), m(" " + C(g(i).mediaLibrary.newFolder), 1)])) : y("", !0),
|
|
@@ -520,7 +520,7 @@ var _e = {
|
|
|
520
520
|
color: e.viewMode === "frequently-used" ? "var(--tpl-primary)" : "var(--tpl-text)"
|
|
521
521
|
}),
|
|
522
522
|
onClick: p[6] ||= (e) => r("showFrequentlyUsed")
|
|
523
|
-
}, [j(g(
|
|
523
|
+
}, [j(g(W), {
|
|
524
524
|
size: 14,
|
|
525
525
|
"stroke-width": 1.5
|
|
526
526
|
}), m(" " + C(g(i).mediaLibrary.frequentlyUsed), 1)], 4)) : y("", !0)
|
|
@@ -797,7 +797,7 @@ var Re = { class: "tpl:p-4" }, ze = ["aria-label"], Be = {
|
|
|
797
797
|
}, dt = {
|
|
798
798
|
key: 4,
|
|
799
799
|
class: "tpl:flex tpl:justify-center tpl:py-4"
|
|
800
|
-
}, ft = /*#__PURE__*/
|
|
800
|
+
}, ft = /*#__PURE__*/ q(/* @__PURE__ */ e({
|
|
801
801
|
__name: "MediaGrid",
|
|
802
802
|
props: {
|
|
803
803
|
items: {},
|
|
@@ -851,10 +851,10 @@ var Re = { class: "tpl:p-4" }, ze = ["aria-label"], Be = {
|
|
|
851
851
|
return E(e) ? "tpl:opacity-100" : "tpl:opacity-0 tpl:group-hover:opacity-100 tpl:group-focus-within:opacity-100";
|
|
852
852
|
}
|
|
853
853
|
let { t: M } = Z(), N = c(X, null), P = k(null);
|
|
854
|
-
|
|
854
|
+
ce(P, ([{ isIntersecting: e }]) => {
|
|
855
855
|
e && r.hasMore && !r.isLoading && i("loadMore");
|
|
856
856
|
}, { threshold: .1 });
|
|
857
|
-
function
|
|
857
|
+
function I(e) {
|
|
858
858
|
return Ie(e, N?.value, {
|
|
859
859
|
year: "numeric",
|
|
860
860
|
month: "short",
|
|
@@ -873,7 +873,7 @@ var Re = { class: "tpl:p-4" }, ze = ["aria-label"], Be = {
|
|
|
873
873
|
class: _(["tpl-pulse tpl:rounded-lg", e.layout === "list" ? "tpl:h-12" : "tpl:aspect-square"]),
|
|
874
874
|
style: { "background-color": "var(--tpl-bg-hover)" },
|
|
875
875
|
"aria-hidden": "true"
|
|
876
|
-
}, null, 2)), 64))], 10, ze)) : e.items.length === 0 ? (t(), f("div", Be, [j(g(
|
|
876
|
+
}, null, 2)), 64))], 10, ze)) : e.items.length === 0 ? (t(), f("div", Be, [j(g(G), {
|
|
877
877
|
class: "tpl:mb-3",
|
|
878
878
|
size: 40,
|
|
879
879
|
"stroke-width": 1,
|
|
@@ -907,7 +907,7 @@ var Re = { class: "tpl:p-4" }, ze = ["aria-label"], Be = {
|
|
|
907
907
|
}, null, 8, rt)) : (t(), f("div", it, [j(Fe, { "mime-type": l(e) }, null, 8, ["mime-type"])]))]),
|
|
908
908
|
S("div", at, [S("p", ot, C(e.filename || e.url), 1), S("p", st, [
|
|
909
909
|
e.size == null ? y("", !0) : (t(), f(A, { key: 0 }, [m(C(g($)(e.size)), 1)], 64)),
|
|
910
|
-
e.createdAt ? (t(), f(A, { key: 1 }, [e.size == null ? y("", !0) : (t(), f(A, { key: 0 }, [m(" · ")], 64)), m(" " + C(
|
|
910
|
+
e.createdAt ? (t(), f(A, { key: 1 }, [e.size == null ? y("", !0) : (t(), f(A, { key: 0 }, [m(" · ")], 64)), m(" " + C(I(e.createdAt)), 1)], 64)) : y("", !0),
|
|
911
911
|
g(s)(l(e)) && e.width && e.height ? (t(), f(A, { key: 2 }, [m(" · " + C(e.width) + "×" + C(e.height), 1)], 64)) : y("", !0)
|
|
912
912
|
])]),
|
|
913
913
|
S("div", { class: _(["tpl:flex tpl:gap-1 tpl:transition-opacity tpl:duration-150", D(e)]) }, [p(e) ? (t(), f("button", {
|
|
@@ -919,7 +919,7 @@ var Re = { class: "tpl:p-4" }, ze = ["aria-label"], Be = {
|
|
|
919
919
|
title: g(M).mediaLibrary.editFile,
|
|
920
920
|
"aria-label": g(M).mediaLibrary.editFile,
|
|
921
921
|
onClick: x((t) => i("edit", e), ["stop"])
|
|
922
|
-
}, [j(g(
|
|
922
|
+
}, [j(g(F), {
|
|
923
923
|
size: 12,
|
|
924
924
|
"stroke-width": 2
|
|
925
925
|
})], 8, ct)) : y("", !0), h(e) ? (t(), f("button", {
|
|
@@ -935,7 +935,7 @@ var Re = { class: "tpl:p-4" }, ze = ["aria-label"], Be = {
|
|
|
935
935
|
size: 12,
|
|
936
936
|
"stroke-width": 2
|
|
937
937
|
})], 8, lt)) : y("", !0)], 2),
|
|
938
|
-
E(e) ? (t(), f("div", ut, [j(g(
|
|
938
|
+
E(e) ? (t(), f("div", ut, [j(g(z), {
|
|
939
939
|
size: 12,
|
|
940
940
|
"stroke-width": 3
|
|
941
941
|
})])) : y("", !0)
|
|
@@ -989,7 +989,7 @@ var Re = { class: "tpl:p-4" }, ze = ["aria-label"], Be = {
|
|
|
989
989
|
title: g(M).mediaLibrary.editFile,
|
|
990
990
|
"aria-label": g(M).mediaLibrary.editFile,
|
|
991
991
|
onClick: x((t) => i("edit", e), ["stop"])
|
|
992
|
-
}, [j(g(
|
|
992
|
+
}, [j(g(F), {
|
|
993
993
|
size: 11,
|
|
994
994
|
"stroke-width": 2
|
|
995
995
|
})], 8, Ze)) : y("", !0), h(e) ? (t(), f("button", {
|
|
@@ -1008,7 +1008,7 @@ var Re = { class: "tpl:p-4" }, ze = ["aria-label"], Be = {
|
|
|
1008
1008
|
size: 11,
|
|
1009
1009
|
"stroke-width": 2
|
|
1010
1010
|
})], 8, Qe)) : y("", !0)], 2),
|
|
1011
|
-
E(e) ? (t(), f("div", $e, [j(g(
|
|
1011
|
+
E(e) ? (t(), f("div", $e, [j(g(z), {
|
|
1012
1012
|
size: 12,
|
|
1013
1013
|
"stroke-width": 3
|
|
1014
1014
|
})])) : y("", !0)
|
|
@@ -1018,7 +1018,7 @@ var Re = { class: "tpl:p-4" }, ze = ["aria-label"], Be = {
|
|
|
1018
1018
|
ref: P,
|
|
1019
1019
|
class: "tpl:h-4"
|
|
1020
1020
|
}, null, 512),
|
|
1021
|
-
e.isLoading && e.items.length > 0 ? (t(), f("div", dt, [j(g(
|
|
1021
|
+
e.isLoading && e.items.length > 0 ? (t(), f("div", dt, [j(g(B), {
|
|
1022
1022
|
class: "tpl-spinner",
|
|
1023
1023
|
size: 20,
|
|
1024
1024
|
"stroke-width": 2,
|
|
@@ -1129,7 +1129,7 @@ var Re = { class: "tpl:p-4" }, ze = ["aria-label"], Be = {
|
|
|
1129
1129
|
},
|
|
1130
1130
|
disabled: !p.value.trim() || e.isImporting,
|
|
1131
1131
|
onClick: h
|
|
1132
|
-
}, [e.isImporting ? (t(), f("span", xt, [j(g(
|
|
1132
|
+
}, [e.isImporting ? (t(), f("span", xt, [j(g(B), {
|
|
1133
1133
|
class: "tpl:animate-spin",
|
|
1134
1134
|
size: 12,
|
|
1135
1135
|
"stroke-width": 2
|
|
@@ -1160,7 +1160,7 @@ var Re = { class: "tpl:p-4" }, ze = ["aria-label"], Be = {
|
|
|
1160
1160
|
}), r.children.length && n.push(...s(r.children, t + 1));
|
|
1161
1161
|
return n;
|
|
1162
1162
|
}
|
|
1163
|
-
return
|
|
1163
|
+
return le(a, () => {
|
|
1164
1164
|
r("close");
|
|
1165
1165
|
}), (n, c) => (t(), f("div", {
|
|
1166
1166
|
ref_key: "pickerRef",
|
|
@@ -1176,7 +1176,7 @@ var Re = { class: "tpl:p-4" }, ze = ["aria-label"], Be = {
|
|
|
1176
1176
|
class: "tpl:flex tpl:w-full tpl:items-center tpl:gap-1.5 tpl:px-3 tpl:py-1.5 tpl:text-left tpl:text-xs tpl:transition-colors tpl:duration-100",
|
|
1177
1177
|
style: { color: "var(--tpl-text)" },
|
|
1178
1178
|
onClick: c[0] ||= (e) => r("select", null)
|
|
1179
|
-
}, [j(g(
|
|
1179
|
+
}, [j(g(G), {
|
|
1180
1180
|
class: "tpl:shrink-0",
|
|
1181
1181
|
size: 14,
|
|
1182
1182
|
"stroke-width": 1.5
|
|
@@ -1191,7 +1191,7 @@ var Re = { class: "tpl:p-4" }, ze = ["aria-label"], Be = {
|
|
|
1191
1191
|
disabled: n.id === e.currentFolderId,
|
|
1192
1192
|
onClick: (e) => r("select", n.id)
|
|
1193
1193
|
}, [
|
|
1194
|
-
j(g(
|
|
1194
|
+
j(g(P), {
|
|
1195
1195
|
class: "tpl:shrink-0",
|
|
1196
1196
|
size: 14,
|
|
1197
1197
|
"stroke-width": 1.5
|
|
@@ -1210,7 +1210,7 @@ var Re = { class: "tpl:p-4" }, ze = ["aria-label"], Be = {
|
|
|
1210
1210
|
}, Pt = {
|
|
1211
1211
|
class: "tpl:mt-0.5 tpl:text-[10px]",
|
|
1212
1212
|
style: { color: "var(--tpl-text-muted)" }
|
|
1213
|
-
}, Ft = /*#__PURE__*/
|
|
1213
|
+
}, Ft = /*#__PURE__*/ q(/* @__PURE__ */ e({
|
|
1214
1214
|
__name: "MediaPreviewPanel",
|
|
1215
1215
|
props: {
|
|
1216
1216
|
item: {},
|
|
@@ -1259,7 +1259,7 @@ var Re = { class: "tpl:p-4" }, ze = ["aria-label"], Be = {
|
|
|
1259
1259
|
l.value && e.item.width && e.item.height ? (t(), f(A, { key: 2 }, [m(" · " + C(e.item.width) + "×" + C(e.item.height) + "px ", 1)], 64)) : y("", !0),
|
|
1260
1260
|
o.value ? (t(), f(A, { key: 3 }, [
|
|
1261
1261
|
r[0] ||= m(" · ", -1),
|
|
1262
|
-
j(g(
|
|
1262
|
+
j(g(P), {
|
|
1263
1263
|
class: "tpl:mb-px tpl:inline",
|
|
1264
1264
|
size: 9,
|
|
1265
1265
|
"stroke-width": 2
|
|
@@ -1465,9 +1465,9 @@ var Zt = [
|
|
|
1465
1465
|
for (let r of Array.from(e)) p(r) ? t.push(r) : n.push(r.name);
|
|
1466
1466
|
v.value = n, t.length && r("upload", t);
|
|
1467
1467
|
}
|
|
1468
|
-
let { isOverDropZone: w } =
|
|
1468
|
+
let { isOverDropZone: w } = se(b, { onDrop: (e) => {
|
|
1469
1469
|
e?.length && x(e);
|
|
1470
|
-
} }), { open: T, onChange: E } =
|
|
1470
|
+
} }), { open: T, onChange: E } = oe({
|
|
1471
1471
|
accept: s.value,
|
|
1472
1472
|
multiple: !0
|
|
1473
1473
|
});
|
|
@@ -1487,7 +1487,7 @@ var Zt = [
|
|
|
1487
1487
|
"background-color": "var(--tpl-bg)"
|
|
1488
1488
|
},
|
|
1489
1489
|
onClick: r[0] ||= (e) => g(T)()
|
|
1490
|
-
}, [e.isUploading ? (t(), f("div", Qt, [j(g(
|
|
1490
|
+
}, [e.isUploading ? (t(), f("div", Qt, [j(g(B), {
|
|
1491
1491
|
class: "tpl-spinner",
|
|
1492
1492
|
size: 20,
|
|
1493
1493
|
"stroke-width": 2,
|
|
@@ -1496,7 +1496,7 @@ var Zt = [
|
|
|
1496
1496
|
current: e.uploadProgress.current,
|
|
1497
1497
|
total: e.uploadProgress.total
|
|
1498
1498
|
}) : g(i).mediaLibrary.uploading), 1)])) : (t(), f(A, { key: 1 }, [
|
|
1499
|
-
j(g(
|
|
1499
|
+
j(g(H), {
|
|
1500
1500
|
class: "tpl:mb-2",
|
|
1501
1501
|
size: 24,
|
|
1502
1502
|
"stroke-width": 1.5,
|
|
@@ -1623,13 +1623,13 @@ function fn(e) {
|
|
|
1623
1623
|
r(o, (e) => {
|
|
1624
1624
|
e && t.loadFolders();
|
|
1625
1625
|
});
|
|
1626
|
-
let v =
|
|
1626
|
+
let v = ue((e) => {
|
|
1627
1627
|
t.search(e);
|
|
1628
1628
|
}, 300);
|
|
1629
1629
|
function y(e) {
|
|
1630
1630
|
s.value = e, v(e);
|
|
1631
1631
|
}
|
|
1632
|
-
let { copy: b, copied: x } =
|
|
1632
|
+
let { copy: b, copied: x } = ae({
|
|
1633
1633
|
copiedDuring: 2e3,
|
|
1634
1634
|
legacy: !0
|
|
1635
1635
|
});
|
|
@@ -1762,16 +1762,16 @@ function pn(e) {
|
|
|
1762
1762
|
async function ee(e) {
|
|
1763
1763
|
s.value = e, await F();
|
|
1764
1764
|
}
|
|
1765
|
-
async function
|
|
1765
|
+
async function R(e) {
|
|
1766
1766
|
c.value = e, await F();
|
|
1767
1767
|
}
|
|
1768
|
-
async function
|
|
1768
|
+
async function z(e) {
|
|
1769
1769
|
a.value = "files", i.value = e, o.value = "", m.value = /* @__PURE__ */ new Set(), h.value = null, await F();
|
|
1770
1770
|
}
|
|
1771
|
-
async function
|
|
1772
|
-
a.value = "frequently-used", i.value = null, o.value = "", m.value = /* @__PURE__ */ new Set(), h.value = null, await
|
|
1771
|
+
async function B() {
|
|
1772
|
+
a.value = "frequently-used", i.value = null, o.value = "", m.value = /* @__PURE__ */ new Set(), h.value = null, await G();
|
|
1773
1773
|
}
|
|
1774
|
-
async function
|
|
1774
|
+
async function te(r) {
|
|
1775
1775
|
let { create: a } = t;
|
|
1776
1776
|
if (typeof a != "function") return null;
|
|
1777
1777
|
u.value = !0;
|
|
@@ -1788,7 +1788,7 @@ function pn(e) {
|
|
|
1788
1788
|
u.value = !1;
|
|
1789
1789
|
}
|
|
1790
1790
|
}
|
|
1791
|
-
async function
|
|
1791
|
+
async function ne(r) {
|
|
1792
1792
|
let { create: a } = t;
|
|
1793
1793
|
if (typeof a == "function") {
|
|
1794
1794
|
u.value = !0, p.value = {
|
|
@@ -1817,7 +1817,7 @@ function pn(e) {
|
|
|
1817
1817
|
}
|
|
1818
1818
|
}
|
|
1819
1819
|
}
|
|
1820
|
-
async function
|
|
1820
|
+
async function re(t) {
|
|
1821
1821
|
if (m.value.size === 0) return;
|
|
1822
1822
|
let { move: r } = M() ?? { move: !1 };
|
|
1823
1823
|
if (typeof r == "function") try {
|
|
@@ -1831,7 +1831,7 @@ function pn(e) {
|
|
|
1831
1831
|
e.onError?.(t);
|
|
1832
1832
|
}
|
|
1833
1833
|
}
|
|
1834
|
-
async function
|
|
1834
|
+
async function V(r, i, a) {
|
|
1835
1835
|
let { update: o } = t;
|
|
1836
1836
|
if (typeof o != "function") return !1;
|
|
1837
1837
|
try {
|
|
@@ -1849,22 +1849,22 @@ function pn(e) {
|
|
|
1849
1849
|
for (let n of g.value) e.includes(n.id) && !t.has(n.id) && t.set(n.id, n);
|
|
1850
1850
|
return [...t.values()];
|
|
1851
1851
|
}
|
|
1852
|
-
function
|
|
1852
|
+
function U(e) {
|
|
1853
1853
|
n.value = n.value.filter((t) => !e.includes(t.id)), g.value = g.value.filter((t) => !e.includes(t.id)), m.value = /* @__PURE__ */ new Set(), h.value = null;
|
|
1854
1854
|
}
|
|
1855
|
-
async function
|
|
1855
|
+
async function W() {
|
|
1856
1856
|
if (m.value.size === 0) return;
|
|
1857
1857
|
let { delete: n } = t;
|
|
1858
1858
|
if (typeof n != "function") return;
|
|
1859
1859
|
let r = [...m.value], i = H(r);
|
|
1860
1860
|
try {
|
|
1861
|
-
await n(r),
|
|
1861
|
+
await n(r), U(r);
|
|
1862
1862
|
for (let e of i) j(() => t.onDeleted?.(e));
|
|
1863
1863
|
} catch (t) {
|
|
1864
1864
|
e.onError?.(t);
|
|
1865
1865
|
}
|
|
1866
1866
|
}
|
|
1867
|
-
async function
|
|
1867
|
+
async function G() {
|
|
1868
1868
|
let { frequentlyUsed: n } = t;
|
|
1869
1869
|
if (typeof n == "function") try {
|
|
1870
1870
|
g.value = await n();
|
|
@@ -1872,7 +1872,7 @@ function pn(e) {
|
|
|
1872
1872
|
e.onError?.(t);
|
|
1873
1873
|
}
|
|
1874
1874
|
}
|
|
1875
|
-
async function
|
|
1875
|
+
async function K() {
|
|
1876
1876
|
if (m.value.size === 0) return !1;
|
|
1877
1877
|
y.value = [...m.value];
|
|
1878
1878
|
let { checkUsage: n } = t;
|
|
@@ -1886,21 +1886,21 @@ function pn(e) {
|
|
|
1886
1886
|
return e.onError?.(t), !1;
|
|
1887
1887
|
}
|
|
1888
1888
|
}
|
|
1889
|
-
async function
|
|
1889
|
+
async function ie() {
|
|
1890
1890
|
let { delete: n } = t;
|
|
1891
1891
|
if (typeof n != "function" || (v.value = !1, y.value.length === 0)) return;
|
|
1892
1892
|
let r = y.value, i = H(r);
|
|
1893
1893
|
try {
|
|
1894
|
-
await n(r),
|
|
1894
|
+
await n(r), U(r), y.value = [], _.value = {};
|
|
1895
1895
|
for (let e of i) j(() => t.onDeleted?.(e));
|
|
1896
1896
|
} catch (t) {
|
|
1897
1897
|
e.onError?.(t);
|
|
1898
1898
|
}
|
|
1899
1899
|
}
|
|
1900
|
-
function
|
|
1900
|
+
function ae() {
|
|
1901
1901
|
v.value = !1, y.value = [], _.value = {};
|
|
1902
1902
|
}
|
|
1903
|
-
async function
|
|
1903
|
+
async function oe(r) {
|
|
1904
1904
|
let a = t.importFromUrl;
|
|
1905
1905
|
if (typeof a != "function") return null;
|
|
1906
1906
|
b.value = !0, x.value = null;
|
|
@@ -1913,14 +1913,14 @@ function pn(e) {
|
|
|
1913
1913
|
b.value = !1;
|
|
1914
1914
|
}
|
|
1915
1915
|
}
|
|
1916
|
-
function
|
|
1916
|
+
function se(e) {
|
|
1917
1917
|
let t = new Set(m.value);
|
|
1918
1918
|
t.has(e) ? t.delete(e) : t.add(e), m.value = t;
|
|
1919
1919
|
}
|
|
1920
|
-
function
|
|
1920
|
+
function ce() {
|
|
1921
1921
|
m.value = /* @__PURE__ */ new Set(), h.value = null;
|
|
1922
1922
|
}
|
|
1923
|
-
function
|
|
1923
|
+
function le(e) {
|
|
1924
1924
|
h.value = e, m.value = /* @__PURE__ */ new Set([e.id]);
|
|
1925
1925
|
}
|
|
1926
1926
|
async function ue() {
|
|
@@ -2034,29 +2034,29 @@ function pn(e) {
|
|
|
2034
2034
|
loadMore: I,
|
|
2035
2035
|
search: L,
|
|
2036
2036
|
filterByCategory: ee,
|
|
2037
|
-
sortBy:
|
|
2038
|
-
navigateToFolder:
|
|
2039
|
-
showFrequentlyUsed:
|
|
2040
|
-
uploadFile:
|
|
2041
|
-
uploadFiles:
|
|
2042
|
-
moveSelected:
|
|
2043
|
-
updateFile:
|
|
2044
|
-
deleteSelected:
|
|
2037
|
+
sortBy: R,
|
|
2038
|
+
navigateToFolder: z,
|
|
2039
|
+
showFrequentlyUsed: B,
|
|
2040
|
+
uploadFile: te,
|
|
2041
|
+
uploadFiles: ne,
|
|
2042
|
+
moveSelected: re,
|
|
2043
|
+
updateFile: V,
|
|
2044
|
+
deleteSelected: W,
|
|
2045
2045
|
isImportingFromUrl: b,
|
|
2046
2046
|
importFromUrlError: x,
|
|
2047
|
-
importFromUrl:
|
|
2048
|
-
toggleSelection:
|
|
2049
|
-
clearSelection:
|
|
2050
|
-
selectItem:
|
|
2047
|
+
importFromUrl: oe,
|
|
2048
|
+
toggleSelection: se,
|
|
2049
|
+
clearSelection: ce,
|
|
2050
|
+
selectItem: le,
|
|
2051
2051
|
loadFolders: q,
|
|
2052
2052
|
createFolder: de,
|
|
2053
2053
|
renameFolder: fe,
|
|
2054
2054
|
deleteFolder: Y,
|
|
2055
2055
|
findFolderInTree: J,
|
|
2056
|
-
loadFrequentlyUsed:
|
|
2057
|
-
checkUsageBeforeDelete:
|
|
2058
|
-
confirmDelete:
|
|
2059
|
-
cancelDelete:
|
|
2056
|
+
loadFrequentlyUsed: G,
|
|
2057
|
+
checkUsageBeforeDelete: K,
|
|
2058
|
+
confirmDelete: ie,
|
|
2059
|
+
cancelDelete: ae,
|
|
2060
2060
|
isReplacing: S,
|
|
2061
2061
|
replaceError: C,
|
|
2062
2062
|
showReplaceWarning: w,
|
|
@@ -2164,7 +2164,7 @@ var mn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2164
2164
|
"ready"
|
|
2165
2165
|
],
|
|
2166
2166
|
setup(e, { expose: a, emit: c }) {
|
|
2167
|
-
let l = e, d = c, p = u(() => import("./MediaEditModal-
|
|
2167
|
+
let l = e, d = c, p = u(() => import("./MediaEditModal-tGK6htBl.js")), h = D(() => l.translations), v = D(() => l.confirmTestId ?? "media-confirm"), T = {
|
|
2168
2168
|
get maxFileSize() {
|
|
2169
2169
|
return l.provider.maxFileSize;
|
|
2170
2170
|
},
|
|
@@ -2180,53 +2180,53 @@ var mn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2180
2180
|
provider: l.provider,
|
|
2181
2181
|
templateId: () => l.templateId,
|
|
2182
2182
|
onError: (e) => l.onError?.(e)
|
|
2183
|
-
}),
|
|
2183
|
+
}), P = fn({
|
|
2184
2184
|
library: M,
|
|
2185
2185
|
translations: h
|
|
2186
|
-
}), F = D(() => typeof l.provider.create == "function"), I = D(() => l.provider.folders !== !1),
|
|
2186
|
+
}), F = D(() => typeof l.provider.create == "function"), I = D(() => l.provider.folders !== !1), R = D(() => typeof l.provider.importFromUrl == "function"), B = D(() => typeof l.provider.delete == "function"), ne = D(() => typeof l.provider.update == "function"), H = D(() => typeof l.provider.replace == "function"), W = D(() => typeof l.provider.frequentlyUsed == "function"), G = D(() => {
|
|
2187
2187
|
let e = l.provider.folders;
|
|
2188
2188
|
return e !== !1 && typeof e.move == "function";
|
|
2189
|
-
}),
|
|
2189
|
+
}), K = D(() => {
|
|
2190
2190
|
let e = l.provider.folders;
|
|
2191
2191
|
return e !== !1 && typeof e.create == "function";
|
|
2192
|
-
}),
|
|
2192
|
+
}), ie = D(() => {
|
|
2193
2193
|
let e = l.provider.folders;
|
|
2194
2194
|
return e !== !1 && typeof e.update == "function";
|
|
2195
|
-
}),
|
|
2195
|
+
}), ae = D(() => {
|
|
2196
2196
|
let e = l.provider.folders;
|
|
2197
2197
|
return e !== !1 && typeof e.delete == "function";
|
|
2198
|
-
}),
|
|
2198
|
+
}), oe = D(() => M.isLoading.value && P.displayItems.value.length === 0), se = D(() => {
|
|
2199
2199
|
let e = M.previewItem.value;
|
|
2200
2200
|
return e ? !l.accept?.length || E(e.mimeType ?? "", l.accept) : !1;
|
|
2201
|
-
}),
|
|
2202
|
-
if (!
|
|
2201
|
+
}), ce = D(() => {
|
|
2202
|
+
if (!B.value) return 0;
|
|
2203
2203
|
let e = 0;
|
|
2204
|
-
for (let t of M.selectedItems.value)
|
|
2204
|
+
for (let t of M.selectedItems.value) P.displayItems.value.find((e) => e.id === t)?.canDelete !== !1 && (e += 1);
|
|
2205
2205
|
return e;
|
|
2206
|
-
}),
|
|
2206
|
+
}), le = D(() => P.showImportUrlModal.value || P.editingItem.value !== null || M.showReplaceWarning.value);
|
|
2207
2207
|
function ue() {
|
|
2208
|
-
return
|
|
2208
|
+
return le.value ? !0 : P.showMovePicker.value ? (P.showMovePicker.value = !1, !0) : M.showDeleteWarning.value ? (M.cancelDelete(), !0) : !1;
|
|
2209
2209
|
}
|
|
2210
2210
|
function q() {
|
|
2211
|
-
|
|
2211
|
+
se.value && M.previewItem.value && d("confirm", M.previewItem.value);
|
|
2212
2212
|
}
|
|
2213
2213
|
function J(e) {
|
|
2214
2214
|
M.filterByCategory(e.target.value || null);
|
|
2215
2215
|
}
|
|
2216
2216
|
async function fe() {
|
|
2217
2217
|
let e = /* @__PURE__ */ new Set();
|
|
2218
|
-
for (let t of M.selectedItems.value)
|
|
2219
|
-
M.selectedItems.value = e, await
|
|
2218
|
+
for (let t of M.selectedItems.value) P.displayItems.value.find((e) => e.id === t)?.canDelete !== !1 && e.add(t);
|
|
2219
|
+
M.selectedItems.value = e, await P.handleDeleteClick();
|
|
2220
2220
|
}
|
|
2221
2221
|
return r(() => l.accept, (e) => {
|
|
2222
2222
|
e?.length === 1 && (M.categoryFilter.value = e[0]);
|
|
2223
2223
|
}, { immediate: !0 }), M.loadItems(), M.loadFrequentlyUsed(), M.loadStorage(), d("ready"), s(() => {
|
|
2224
|
-
|
|
2224
|
+
P.resetUI();
|
|
2225
2225
|
}), a({
|
|
2226
|
-
nestedDialogOpen:
|
|
2226
|
+
nestedDialogOpen: le,
|
|
2227
2227
|
handleEscape: ue,
|
|
2228
2228
|
library: M,
|
|
2229
|
-
ui:
|
|
2229
|
+
ui: P
|
|
2230
2230
|
}), (r, i) => (t(), f("div", mn, [
|
|
2231
2231
|
S("div", hn, [S("h2", gn, C(h.value.mediaLibrary.title), 1), S("div", _n, [
|
|
2232
2232
|
g(M).storageInfo.value ? (t(), b(un, {
|
|
@@ -2236,9 +2236,9 @@ var mn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2236
2236
|
size: 22
|
|
2237
2237
|
}, null, 8, ["used-bytes", "limit-bytes"])) : y("", !0),
|
|
2238
2238
|
S("div", vn, [S("input", {
|
|
2239
|
-
value: g(
|
|
2239
|
+
value: g(P).searchInput.value,
|
|
2240
2240
|
type: "search",
|
|
2241
|
-
disabled:
|
|
2241
|
+
disabled: oe.value,
|
|
2242
2242
|
"aria-label": h.value.mediaLibrary.searchAriaLabel,
|
|
2243
2243
|
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",
|
|
2244
2244
|
style: {
|
|
@@ -2247,8 +2247,8 @@ var mn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2247
2247
|
color: "var(--tpl-text)"
|
|
2248
2248
|
},
|
|
2249
2249
|
placeholder: h.value.mediaLibrary.searchPlaceholder,
|
|
2250
|
-
onInput: i[0] ||= (e) => g(
|
|
2251
|
-
}, null, 40, yn), j(g(
|
|
2250
|
+
onInput: i[0] ||= (e) => g(P).handleSearchInput(e.target.value)
|
|
2251
|
+
}, null, 40, yn), j(g(ee), {
|
|
2252
2252
|
class: "tpl:absolute tpl:top-1/2 tpl:left-2.5 tpl:-translate-y-1/2",
|
|
2253
2253
|
size: 13,
|
|
2254
2254
|
"stroke-width": 2,
|
|
@@ -2261,7 +2261,7 @@ var mn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2261
2261
|
class: "tpl:flex tpl:size-7 tpl:items-center tpl:justify-center tpl:rounded-md tpl:transition-all tpl:duration-150",
|
|
2262
2262
|
style: { color: "var(--tpl-text-muted)" },
|
|
2263
2263
|
onClick: i[1] ||= (e) => d("close")
|
|
2264
|
-
}, [j(g(
|
|
2264
|
+
}, [j(g(U), {
|
|
2265
2265
|
size: 18,
|
|
2266
2266
|
"stroke-width": 2
|
|
2267
2267
|
})], 8, bn)) : y("", !0)
|
|
@@ -2274,18 +2274,18 @@ var mn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2274
2274
|
"leave-from-class": "tpl:ml-0 tpl:opacity-100",
|
|
2275
2275
|
"leave-to-class": "tpl:-ml-48 tpl:opacity-0"
|
|
2276
2276
|
}, {
|
|
2277
|
-
default: n(() => [I.value && g(
|
|
2278
|
-
folders: g(
|
|
2277
|
+
default: n(() => [I.value && g(P).showSidebar.value ? (t(), f("div", Sn, [j(Pe, {
|
|
2278
|
+
folders: g(P).folderTree.value,
|
|
2279
2279
|
"current-folder-id": g(M).currentFolderId.value,
|
|
2280
2280
|
"view-mode": g(M).viewMode.value,
|
|
2281
|
-
"has-frequently-used":
|
|
2282
|
-
"can-create-folder":
|
|
2283
|
-
"can-rename-folder":
|
|
2284
|
-
"can-delete-folder":
|
|
2281
|
+
"has-frequently-used": W.value && g(P).hasFrequentlyUsed.value,
|
|
2282
|
+
"can-create-folder": K.value,
|
|
2283
|
+
"can-rename-folder": ie.value,
|
|
2284
|
+
"can-delete-folder": ae.value,
|
|
2285
2285
|
onNavigate: g(M).navigateToFolder,
|
|
2286
|
-
onCreateFolder: g(
|
|
2287
|
-
onRenameFolder: g(
|
|
2288
|
-
onDeleteFolder: g(
|
|
2286
|
+
onCreateFolder: g(P).handleCreateFolder,
|
|
2287
|
+
onRenameFolder: g(P).handleRenameFolder,
|
|
2288
|
+
onDeleteFolder: g(P).handleDeleteFolder,
|
|
2289
2289
|
onShowFrequentlyUsed: g(M).showFrequentlyUsed
|
|
2290
2290
|
}, null, 8, [
|
|
2291
2291
|
"folders",
|
|
@@ -2309,21 +2309,21 @@ var mn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2309
2309
|
"data-testid": "media-folder-toggle",
|
|
2310
2310
|
class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:transition-all tpl:duration-150",
|
|
2311
2311
|
style: O({
|
|
2312
|
-
color: g(
|
|
2313
|
-
backgroundColor: g(
|
|
2314
|
-
border: g(
|
|
2312
|
+
color: g(P).showSidebar.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
2313
|
+
backgroundColor: g(P).showSidebar.value ? "var(--tpl-bg)" : "transparent",
|
|
2314
|
+
border: g(P).showSidebar.value ? "1px solid var(--tpl-border)" : "1px solid transparent"
|
|
2315
2315
|
}),
|
|
2316
|
-
title: g(
|
|
2317
|
-
"aria-label": g(
|
|
2318
|
-
"aria-pressed": g(
|
|
2319
|
-
onClick: i[2] ||= (e) => g(
|
|
2320
|
-
}, [j(g(
|
|
2316
|
+
title: g(P).showSidebar.value ? h.value.mediaLibrary.hideFolders : h.value.mediaLibrary.showFolders,
|
|
2317
|
+
"aria-label": g(P).showSidebar.value ? h.value.mediaLibrary.hideFolders : h.value.mediaLibrary.showFolders,
|
|
2318
|
+
"aria-pressed": g(P).showSidebar.value,
|
|
2319
|
+
onClick: i[2] ||= (e) => g(P).showSidebar.value = !g(P).showSidebar.value
|
|
2320
|
+
}, [j(g(L), {
|
|
2321
2321
|
size: 16,
|
|
2322
2322
|
"stroke-width": 2
|
|
2323
2323
|
})], 12, En)) : y("", !0),
|
|
2324
2324
|
g(M).viewMode.value === "frequently-used" ? (t(), f("span", Dn, C(h.value.mediaLibrary.frequentlyUsed), 1)) : (t(), b(be, {
|
|
2325
2325
|
key: 2,
|
|
2326
|
-
folders: g(
|
|
2326
|
+
folders: g(P).folderTree.value,
|
|
2327
2327
|
"current-folder-id": g(M).currentFolderId.value,
|
|
2328
2328
|
onNavigate: g(M).navigateToFolder
|
|
2329
2329
|
}, null, 8, [
|
|
@@ -2335,28 +2335,28 @@ var mn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2335
2335
|
type: "button",
|
|
2336
2336
|
class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:transition-all tpl:duration-150",
|
|
2337
2337
|
style: O({
|
|
2338
|
-
color: g(
|
|
2339
|
-
backgroundColor: g(
|
|
2338
|
+
color: g(P).layoutMode.value === "grid" ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
2339
|
+
backgroundColor: g(P).layoutMode.value === "grid" ? "var(--tpl-bg-elevated)" : "transparent"
|
|
2340
2340
|
}),
|
|
2341
2341
|
title: h.value.mediaLibrary.viewGrid,
|
|
2342
2342
|
"aria-label": h.value.mediaLibrary.viewGrid,
|
|
2343
|
-
"aria-pressed": g(
|
|
2344
|
-
onClick: i[3] ||= (e) => g(
|
|
2345
|
-
}, [j(g(
|
|
2343
|
+
"aria-pressed": g(P).layoutMode.value === "grid",
|
|
2344
|
+
onClick: i[3] ||= (e) => g(P).layoutMode.value = "grid"
|
|
2345
|
+
}, [j(g(te), {
|
|
2346
2346
|
size: 14,
|
|
2347
2347
|
"stroke-width": 2
|
|
2348
2348
|
})], 12, kn), S("button", {
|
|
2349
2349
|
type: "button",
|
|
2350
2350
|
class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:transition-all tpl:duration-150",
|
|
2351
2351
|
style: O({
|
|
2352
|
-
color: g(
|
|
2353
|
-
backgroundColor: g(
|
|
2352
|
+
color: g(P).layoutMode.value === "list" ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
2353
|
+
backgroundColor: g(P).layoutMode.value === "list" ? "var(--tpl-bg-elevated)" : "transparent"
|
|
2354
2354
|
}),
|
|
2355
2355
|
title: h.value.mediaLibrary.viewList,
|
|
2356
2356
|
"aria-label": h.value.mediaLibrary.viewList,
|
|
2357
|
-
"aria-pressed": g(
|
|
2358
|
-
onClick: i[4] ||= (e) => g(
|
|
2359
|
-
}, [j(g(
|
|
2357
|
+
"aria-pressed": g(P).layoutMode.value === "list",
|
|
2358
|
+
onClick: i[4] ||= (e) => g(P).layoutMode.value = "list"
|
|
2359
|
+
}, [j(g(V), {
|
|
2360
2360
|
size: 14,
|
|
2361
2361
|
"stroke-width": 2
|
|
2362
2362
|
})], 12, An)])
|
|
@@ -2374,16 +2374,16 @@ var mn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2374
2374
|
}, [S("option", Nn, C(h.value.mediaLibrary.filterAll), 1), (t(!0), f(A, null, o(g(k), (e) => (t(), f("option", {
|
|
2375
2375
|
key: e,
|
|
2376
2376
|
value: e
|
|
2377
|
-
}, C(g(
|
|
2377
|
+
}, C(g(P).getCategoryLabel(e)), 9, Pn))), 128))], 40, Mn)) : y("", !0)])]), S("div", Fn, [g(M).viewMode.value === "files" && (F.value || R.value) ? (t(), f("div", In, [F.value ? (t(), b(rn, {
|
|
2378
2378
|
key: 0,
|
|
2379
2379
|
"is-uploading": g(M).isUploading.value,
|
|
2380
2380
|
"upload-progress": g(M).uploadProgress.value,
|
|
2381
|
-
onUpload: g(
|
|
2381
|
+
onUpload: g(P).handleUpload
|
|
2382
2382
|
}, null, 8, [
|
|
2383
2383
|
"is-uploading",
|
|
2384
2384
|
"upload-progress",
|
|
2385
2385
|
"onUpload"
|
|
2386
|
-
])) : y("", !0),
|
|
2386
|
+
])) : y("", !0), R.value ? (t(), f("button", {
|
|
2387
2387
|
key: 1,
|
|
2388
2388
|
"data-testid": "media-import-url",
|
|
2389
2389
|
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",
|
|
@@ -2392,25 +2392,25 @@ var mn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2392
2392
|
color: "var(--tpl-text-muted)",
|
|
2393
2393
|
"background-color": "var(--tpl-bg)"
|
|
2394
2394
|
},
|
|
2395
|
-
onClick: i[5] ||= (e) => g(
|
|
2396
|
-
}, [j(g(
|
|
2395
|
+
onClick: i[5] ||= (e) => g(P).showImportUrlModal.value = !0
|
|
2396
|
+
}, [j(g(re), {
|
|
2397
2397
|
size: 14,
|
|
2398
2398
|
"stroke-width": 2
|
|
2399
2399
|
}), m(" " + C(h.value.mediaLibrary.importFromUrl), 1)])) : y("", !0)])) : y("", !0), j(ft, {
|
|
2400
|
-
items: g(
|
|
2400
|
+
items: g(P).displayItems.value,
|
|
2401
2401
|
"selected-ids": g(M).selectedItems.value,
|
|
2402
2402
|
"is-loading": g(M).isLoading.value,
|
|
2403
2403
|
"has-more": g(M).viewMode.value === "files" && g(M).hasMore.value,
|
|
2404
2404
|
accept: e.accept,
|
|
2405
|
-
layout: g(
|
|
2405
|
+
layout: g(P).layoutMode.value,
|
|
2406
2406
|
"search-query": g(M).searchQuery.value,
|
|
2407
|
-
"can-update":
|
|
2408
|
-
"can-replace":
|
|
2409
|
-
onSelect: g(
|
|
2407
|
+
"can-update": ne.value,
|
|
2408
|
+
"can-replace": H.value,
|
|
2409
|
+
onSelect: g(P).handleSelect,
|
|
2410
2410
|
onToggle: g(M).toggleSelection,
|
|
2411
2411
|
onLoadMore: g(M).loadMore,
|
|
2412
|
-
onEdit: g(
|
|
2413
|
-
onReplace: g(
|
|
2412
|
+
onEdit: g(P).handleEditItem,
|
|
2413
|
+
onReplace: g(P).handleReplaceItem,
|
|
2414
2414
|
onConfirm: q
|
|
2415
2415
|
}, null, 8, [
|
|
2416
2416
|
"items",
|
|
@@ -2429,24 +2429,24 @@ var mn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2429
2429
|
"onReplace"
|
|
2430
2430
|
])])])]),
|
|
2431
2431
|
j(Ct, {
|
|
2432
|
-
visible: g(
|
|
2432
|
+
visible: g(P).showImportUrlModal.value,
|
|
2433
2433
|
"is-importing": g(M).isImportingFromUrl.value,
|
|
2434
2434
|
error: g(M).importFromUrlError.value,
|
|
2435
|
-
onImport: g(
|
|
2436
|
-
onClose: i[6] ||= (e) => g(
|
|
2435
|
+
onImport: g(P).handleImportFromUrl,
|
|
2436
|
+
onClose: i[6] ||= (e) => g(P).showImportUrlModal.value = !1
|
|
2437
2437
|
}, null, 8, [
|
|
2438
2438
|
"visible",
|
|
2439
2439
|
"is-importing",
|
|
2440
2440
|
"error",
|
|
2441
2441
|
"onImport"
|
|
2442
2442
|
]),
|
|
2443
|
-
g(
|
|
2443
|
+
g(P).editingItem.value ? (t(), b(g(p), {
|
|
2444
2444
|
key: 0,
|
|
2445
2445
|
visible: !0,
|
|
2446
|
-
item: g(
|
|
2447
|
-
save: g(
|
|
2448
|
-
"can-crop":
|
|
2449
|
-
onClose: i[7] ||= (e) => g(
|
|
2446
|
+
item: g(P).editingItem.value,
|
|
2447
|
+
save: g(P).handleEditSave,
|
|
2448
|
+
"can-crop": H.value && g(P).editingItem.value.canUpdate !== !1,
|
|
2449
|
+
onClose: i[7] ||= (e) => g(P).editingItem.value = null
|
|
2450
2450
|
}, null, 8, [
|
|
2451
2451
|
"item",
|
|
2452
2452
|
"save",
|
|
@@ -2458,7 +2458,7 @@ var mn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2458
2458
|
"usage-info": g(M).replaceUsageInfo.value,
|
|
2459
2459
|
"is-replacing": g(M).isReplacing.value,
|
|
2460
2460
|
error: g(M).replaceError.value,
|
|
2461
|
-
onReplace: g(
|
|
2461
|
+
onReplace: g(P).handleReplaceFile,
|
|
2462
2462
|
onClose: g(M).cancelReplace
|
|
2463
2463
|
}, null, 8, [
|
|
2464
2464
|
"visible",
|
|
@@ -2492,15 +2492,15 @@ var mn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2492
2492
|
}, [S("div", Ln, [
|
|
2493
2493
|
S("h3", Rn, C(h.value.mediaLibrary.deleteWarningTitle), 1),
|
|
2494
2494
|
S("p", {
|
|
2495
|
-
class: _(["tpl:text-xs", g(
|
|
2495
|
+
class: _(["tpl:text-xs", g(P).hasUsedFiles.value ? "tpl:mb-2" : "tpl:mb-4"]),
|
|
2496
2496
|
style: { color: "var(--tpl-text-muted)" }
|
|
2497
2497
|
}, C(h.value.mediaLibrary.deleteWarningMessage), 3),
|
|
2498
|
-
g(
|
|
2499
|
-
g(
|
|
2498
|
+
g(P).hasUsedFiles.value ? (t(), f("p", zn, C(h.value.mediaLibrary.deleteWarningUsageNote), 1)) : y("", !0),
|
|
2499
|
+
g(P).hasUsedFiles.value ? (t(), f("div", Bn, [(t(!0), f(A, null, o(g(M).deleteUsageInfo.value, (e, n) => (t(), f("div", {
|
|
2500
2500
|
key: n,
|
|
2501
2501
|
class: "tpl:text-xs",
|
|
2502
2502
|
style: { color: "var(--tpl-text)" }
|
|
2503
|
-
}, [e.templateCount > 0 ? (t(), f(A, { key: 0 }, [S("span", Vn, C(g(
|
|
2503
|
+
}, [e.templateCount > 0 ? (t(), f(A, { key: 0 }, [S("span", Vn, C(g(P).displayItems.value.find((e) => e.id === n)?.filename || n), 1), S("span", Hn, " - " + C(h.value.mediaLibrary.usedInTemplates.replace("{count}", e.templateCount.toString())), 1)], 64)) : y("", !0)]))), 128))])) : y("", !0),
|
|
2504
2504
|
S("div", Un, [S("button", {
|
|
2505
2505
|
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",
|
|
2506
2506
|
style: {
|
|
@@ -2517,50 +2517,50 @@ var mn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2517
2517
|
"background-color": "var(--tpl-bg)"
|
|
2518
2518
|
},
|
|
2519
2519
|
onClick: i[9] ||= (...e) => g(M).confirmDelete && g(M).confirmDelete(...e)
|
|
2520
|
-
}, C(g(
|
|
2520
|
+
}, C(g(P).hasUsedFiles.value ? h.value.mediaLibrary.deleteAnyway : h.value.mediaLibrary.confirmDelete), 1)])
|
|
2521
2521
|
])])) : y("", !0)]),
|
|
2522
2522
|
_: 1
|
|
2523
2523
|
}),
|
|
2524
2524
|
S("div", Wn, [S("div", Gn, [g(M).previewItem.value ? (t(), b(Ft, {
|
|
2525
2525
|
key: 0,
|
|
2526
2526
|
item: g(M).previewItem.value,
|
|
2527
|
-
folders: g(
|
|
2527
|
+
folders: g(P).folderTree.value
|
|
2528
2528
|
}, null, 8, ["item", "folders"])) : y("", !0)]), S("div", Kn, [g(M).selectedItems.value.size > 0 ? (t(), f("div", qn, [g(M).previewItem.value ? (t(), f("button", {
|
|
2529
2529
|
key: 0,
|
|
2530
2530
|
class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
|
|
2531
2531
|
style: O({
|
|
2532
|
-
borderColor: g(
|
|
2533
|
-
color: g(
|
|
2532
|
+
borderColor: g(P).copied.value ? "var(--tpl-success)" : "var(--tpl-border)",
|
|
2533
|
+
color: g(P).copied.value ? "var(--tpl-success)" : "var(--tpl-text)",
|
|
2534
2534
|
backgroundColor: "var(--tpl-bg)"
|
|
2535
2535
|
}),
|
|
2536
|
-
onClick: i[11] ||= (e) => g(
|
|
2537
|
-
}, [g(
|
|
2536
|
+
onClick: i[11] ||= (e) => g(P).copy(g(P).selectedUrl.value)
|
|
2537
|
+
}, [g(P).copied.value ? (t(), b(g(z), {
|
|
2538
2538
|
key: 1,
|
|
2539
2539
|
size: 12,
|
|
2540
2540
|
"stroke-width": 2
|
|
2541
|
-
})) : (t(), b(g(
|
|
2541
|
+
})) : (t(), b(g(N), {
|
|
2542
2542
|
key: 0,
|
|
2543
2543
|
size: 12,
|
|
2544
2544
|
"stroke-width": 2
|
|
2545
|
-
})), m(" " + C(g(
|
|
2545
|
+
})), m(" " + C(g(P).copied.value ? h.value.mediaLibrary.copied : h.value.mediaLibrary.copyUrl), 1)], 4)) : y("", !0), G.value ? (t(), f("div", Jn, [S("button", {
|
|
2546
2546
|
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",
|
|
2547
2547
|
style: {
|
|
2548
2548
|
"border-color": "var(--tpl-border)",
|
|
2549
2549
|
color: "var(--tpl-text)",
|
|
2550
2550
|
"background-color": "var(--tpl-bg)"
|
|
2551
2551
|
},
|
|
2552
|
-
onClick: i[12] ||= (e) => g(
|
|
2553
|
-
}, C(h.value.mediaLibrary.moveSelected), 1), g(
|
|
2552
|
+
onClick: i[12] ||= (e) => g(P).showMovePicker.value = !g(P).showMovePicker.value
|
|
2553
|
+
}, C(h.value.mediaLibrary.moveSelected), 1), g(P).showMovePicker.value ? (t(), b(Ot, {
|
|
2554
2554
|
key: 0,
|
|
2555
|
-
folders: g(
|
|
2555
|
+
folders: g(P).folderTree.value,
|
|
2556
2556
|
"current-folder-id": g(M).currentFolderId.value,
|
|
2557
|
-
onSelect: g(
|
|
2558
|
-
onClose: i[13] ||= (e) => g(
|
|
2557
|
+
onSelect: g(P).handleMoveToFolder,
|
|
2558
|
+
onClose: i[13] ||= (e) => g(P).showMovePicker.value = !1
|
|
2559
2559
|
}, null, 8, [
|
|
2560
2560
|
"folders",
|
|
2561
2561
|
"current-folder-id",
|
|
2562
2562
|
"onSelect"
|
|
2563
|
-
])) : y("", !0)])) : y("", !0)])) : y("", !0), S("div", Yn, [
|
|
2563
|
+
])) : y("", !0)])) : y("", !0)])) : y("", !0), S("div", Yn, [ce.value > 0 ? (t(), f("button", {
|
|
2564
2564
|
key: 0,
|
|
2565
2565
|
"data-testid": "media-delete",
|
|
2566
2566
|
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",
|
|
@@ -2578,7 +2578,7 @@ var mn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2578
2578
|
"background-color": "var(--tpl-primary)",
|
|
2579
2579
|
color: "var(--tpl-on-primary)"
|
|
2580
2580
|
},
|
|
2581
|
-
disabled: !
|
|
2581
|
+
disabled: !se.value,
|
|
2582
2582
|
onClick: q
|
|
2583
2583
|
}, C(e.accept?.length ? h.value.mediaLibrary.selectImage : h.value.mediaLibrary.selectFile), 9, Xn)) : y("", !0)])])])
|
|
2584
2584
|
]));
|
|
@@ -2586,7 +2586,7 @@ var mn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
2586
2586
|
}), Qn = /* #__PURE__ */ Object.assign({
|
|
2587
2587
|
"./locales/ca.ts": () => import("./ca-Cc6eL0ZS.js"),
|
|
2588
2588
|
"./locales/de.ts": () => import("./de-DtrXVcuY.js"),
|
|
2589
|
-
"./locales/en.ts": () => import("./en-
|
|
2589
|
+
"./locales/en.ts": () => import("./en-Bcz4gS9U.js"),
|
|
2590
2590
|
"./locales/es.ts": () => import("./es-Dw_h7Oll.js"),
|
|
2591
2591
|
"./locales/fr.ts": () => import("./fr-BJaeKu_8.js"),
|
|
2592
2592
|
"./locales/ja.ts": () => import("./ja-Cu2HdYaK.js"),
|
|
@@ -2642,7 +2642,7 @@ var or = ["data-tpl-theme"], sr = /* @__PURE__ */ e({
|
|
|
2642
2642
|
function h(e) {
|
|
2643
2643
|
e.key === "Escape" && (m.value?.handleEscape() ? e.preventDefault() : s("close"));
|
|
2644
2644
|
}
|
|
2645
|
-
|
|
2645
|
+
ie(document, "keydown", h);
|
|
2646
2646
|
function g(e) {
|
|
2647
2647
|
s("select", e), s("close");
|
|
2648
2648
|
}
|
|
@@ -2708,4 +2708,4 @@ var or = ["data-tpl-theme"], sr = /* @__PURE__ */ e({
|
|
|
2708
2708
|
});
|
|
2709
2709
|
export { sr as MediaLibraryModal, J as a, pe as i, Q as n, Y as o, Z as r, ge as t };
|
|
2710
2710
|
|
|
2711
|
-
//# sourceMappingURL=editor-modal-
|
|
2711
|
+
//# sourceMappingURL=editor-modal-CN69NlOK.js.map
|