@templatical/editor 0.25.1 → 0.26.0
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/{AiChatSidebar-BYMdVldY.js → AiChatSidebar-c-3yyjN1.js} +14 -14
- package/dist/{AiFeatureMenu-BhHhnu9G.js → AiFeatureMenu-B-COyG7k.js} +7 -7
- package/dist/{BlockIssueBadge-De36PJC4.js → BlockIssueBadge-Buk3_6QF.js} +5 -5
- package/dist/{BlockPreviewCanvas-BxSoA1QV.js → BlockPreviewCanvas-CJPHGI93.js} +3 -3
- package/dist/{CloudEditor-BXfuytQj.js → CloudEditor-BdSQ8hfv.js} +26 -26
- package/dist/{CollaboratorBar-D9AfWRTH.js → CollaboratorBar-mGoi6yye.js} +4 -4
- package/dist/{ColorPicker-VPq4ASC8.js → ColorPicker-ClETsjA3.js} +6 -6
- package/dist/{CommentsSidebar-C8BLy3Pr.js → CommentsSidebar-CdRCCSDD.js} +15 -15
- package/dist/{CountdownBlock-Bs2Q_bFX.js → CountdownBlock-DuyvGcr8.js} +3 -3
- package/dist/{CountdownToolbar-Cic6cdOw.js → CountdownToolbar-CBE9wRaV.js} +4 -4
- package/dist/{DesignReferenceSidebar-k-26nkJI.js → DesignReferenceSidebar-CgYkySre.js} +11 -11
- package/dist/{IssuesPanel-NPzwTPYW.js → IssuesPanel-Do7RLXsP.js} +8 -8
- package/dist/{LoadingTrack-DH3OEM3z.js → LoadingTrack-BexpNuTV.js} +1 -1
- package/dist/{MergeTagModeToggle-DEGyx8tw.js → MergeTagModeToggle-hAJgIKhw.js} +6 -6
- package/dist/{MergeTagSuggestion-DvisJ9im.js → MergeTagSuggestion-BJ43ihWR.js} +34 -32
- package/dist/{NumberWithSuffix-CuHCIwSn.js → NumberWithSuffix-D37ZWiZh.js} +2 -2
- package/dist/{ParagraphEditor-DK_IPi9H.js → ParagraphEditor-DBG63S70.js} +74 -80
- package/dist/{RichTextEditorContent-DznIQcdY.js → RichTextEditorContent-fbYJXAio.js} +8 -8
- package/dist/{SaveBlockDialog-R9PbMsy-.js → SaveBlockDialog-Dq9UVihi.js} +10 -10
- package/dist/{SavedBlocksBrowserModal-ttPAklPE.js → SavedBlocksBrowserModal-CtFG4zeV.js} +11 -11
- package/dist/{SavedBlocksPanels-BCwQgKLF.js → SavedBlocksPanels-DNVdso_W.js} +2 -2
- package/dist/{SavedBlocksPickBar-DD5Ddv9t.js → SavedBlocksPickBar-Cv4dIpP-.js} +4 -4
- package/dist/{SnapshotHistory-BXSTGgBh.js → SnapshotHistory-DsOtMHOV.js} +10 -10
- package/dist/{TemplateScoringPanel-Ue6Dfnjb.js → TemplateScoringPanel-BZUsb3FD.js} +15 -15
- package/dist/{TestEmailModal-KPFc5oSv.js → TestEmailModal-CIwqtGfr.js} +11 -11
- package/dist/{TestEmailPanel-b8GHTrnE.js → TestEmailPanel-l6LDmBGM.js} +2 -2
- package/dist/{TitleEditor-8ln7UBr_.js → TitleEditor-imoBUynh.js} +12 -12
- package/dist/{TplModal-D_FA3Wm3.js → TplModal-DDDHcoir.js} +5 -5
- package/dist/{blockTypeIcons-BoZeK6l7.js → blockTypeIcons-CfLN4A6t.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiChatSidebar-D6jGwb4y.js → AiChatSidebar-BHqNxNcX.js} +35 -35
- package/dist/cdn/chunks/{AiChatSidebar-D6jGwb4y.js.map → AiChatSidebar-BHqNxNcX.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-BtEcjxLL.js → AiFeatureMenu-D2AIDwEG.js} +13 -13
- package/dist/cdn/chunks/{AiFeatureMenu-BtEcjxLL.js.map → AiFeatureMenu-D2AIDwEG.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-dnqZk6pl.js → BlockIssueBadge-BEEY9o2o.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-dnqZk6pl.js.map → BlockIssueBadge-BEEY9o2o.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-D8pfTFWi.js → BlockPreviewCanvas-DH5ULGkw.js} +22 -22
- package/dist/cdn/chunks/{BlockPreviewCanvas-D8pfTFWi.js.map → BlockPreviewCanvas-DH5ULGkw.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-BJ4-pPAl.js → CloudEditor-C0nB1JfD.js} +67 -67
- package/dist/cdn/chunks/{CloudEditor-BJ4-pPAl.js.map → CloudEditor-C0nB1JfD.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-SeUOuLeJ.js → CollaboratorBar-f6Ni7KNH.js} +12 -12
- package/dist/cdn/chunks/{CollaboratorBar-SeUOuLeJ.js.map → CollaboratorBar-f6Ni7KNH.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-yxvrro60.js → ColorPicker-W_UyiVGc.js} +131 -131
- package/dist/cdn/chunks/{ColorPicker-yxvrro60.js.map → ColorPicker-W_UyiVGc.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-FPbg-FuU.js → CommentsSidebar-BLRZRSSC.js} +112 -112
- package/dist/cdn/chunks/{CommentsSidebar-FPbg-FuU.js.map → CommentsSidebar-BLRZRSSC.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-D2Oth7YY.js → CountdownBlock-vLTkTI9e.js} +11 -11
- package/dist/cdn/chunks/{CountdownBlock-D2Oth7YY.js.map → CountdownBlock-vLTkTI9e.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BNgTBQGB.js → CountdownToolbar-DPjcgcVR.js} +41 -41
- package/dist/cdn/chunks/{CountdownToolbar-BNgTBQGB.js.map → CountdownToolbar-DPjcgcVR.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-ChB_HBK1.js → DesignReferenceSidebar-DBoEBKxQ.js} +34 -34
- package/dist/cdn/chunks/{DesignReferenceSidebar-ChB_HBK1.js.map → DesignReferenceSidebar-DBoEBKxQ.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-CjiZ8cLW.js → IssuesPanel-DKTS4QVb.js} +32 -32
- package/dist/cdn/chunks/{IssuesPanel-CjiZ8cLW.js.map → IssuesPanel-DKTS4QVb.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-CiNg9s16.js → LoadingTrack-C52ZGL5q.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-CiNg9s16.js.map → LoadingTrack-C52ZGL5q.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-CiYbOKzd.js → MergeTagModeToggle-D8iKvz7v.js} +28 -28
- package/dist/cdn/chunks/{MergeTagModeToggle-CiYbOKzd.js.map → MergeTagModeToggle-D8iKvz7v.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-CvZLI6Np.js → MergeTagSuggestion-Dn8dExNa.js} +18 -18
- package/dist/cdn/chunks/{MergeTagSuggestion-CvZLI6Np.js.map → MergeTagSuggestion-Dn8dExNa.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-vVwCWrd_.js → NumberWithSuffix-BXrRdfq1.js} +22 -22
- package/dist/cdn/chunks/{NumberWithSuffix-vVwCWrd_.js.map → NumberWithSuffix-BXrRdfq1.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-o4hs9mgy.js → ParagraphEditor-Cuc83Blj.js} +58 -58
- package/dist/cdn/chunks/{ParagraphEditor-o4hs9mgy.js.map → ParagraphEditor-Cuc83Blj.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-BAriGldd.js → RichTextEditorContent-DtL49Jpo.js} +20 -20
- package/dist/cdn/chunks/{RichTextEditorContent-BAriGldd.js.map → RichTextEditorContent-DtL49Jpo.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-D3-oILb5.js → SaveBlockDialog-B8KHhVkI.js} +50 -50
- package/dist/cdn/chunks/{SaveBlockDialog-D3-oILb5.js.map → SaveBlockDialog-B8KHhVkI.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-jMnNd4wn.js → SavedBlocksBrowserModal-B-sjsIJv.js} +62 -62
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-jMnNd4wn.js.map → SavedBlocksBrowserModal-B-sjsIJv.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-BDd8FH6l.js → SavedBlocksPanels-Bb-eDMAh.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-BDd8FH6l.js.map → SavedBlocksPanels-Bb-eDMAh.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-BNkLe8In.js → SavedBlocksPickBar-GudFfXa4.js} +12 -12
- package/dist/cdn/chunks/{SavedBlocksPickBar-BNkLe8In.js.map → SavedBlocksPickBar-GudFfXa4.js.map} +1 -1
- package/dist/cdn/chunks/{SnapshotHistory-CYVi7fvQ.js → SnapshotHistory-Srpzt2na.js} +26 -26
- package/dist/cdn/chunks/{SnapshotHistory-CYVi7fvQ.js.map → SnapshotHistory-Srpzt2na.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-D0KrxVnr.js → TemplateScoringPanel-NucRtAP0.js} +42 -42
- package/dist/cdn/chunks/{TemplateScoringPanel-D0KrxVnr.js.map → TemplateScoringPanel-NucRtAP0.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-_RbTD787.js → TestEmailModal-DLeoJqaJ.js} +31 -31
- package/dist/cdn/chunks/{TestEmailModal-_RbTD787.js.map → TestEmailModal-DLeoJqaJ.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BAnKtbSu.js → TestEmailPanel-Dr7Dkq2P.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-BAnKtbSu.js.map → TestEmailPanel-Dr7Dkq2P.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-LiUvXGPw.js → TitleEditor-DzYRr18C.js} +35 -35
- package/dist/cdn/chunks/{TitleEditor-LiUvXGPw.js.map → TitleEditor-DzYRr18C.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-C1iguuZz.js → TplModal-byw7-3wg.js} +17 -17
- package/dist/cdn/chunks/{TplModal-C1iguuZz.js.map → TplModal-byw7-3wg.js.map} +1 -1
- package/dist/cdn/chunks/blockTypeIcons-FXlMM3PL.js +21 -0
- package/dist/cdn/chunks/{blockTypeIcons-CrPzyP_k.js.map → blockTypeIcons-FXlMM3PL.js.map} +1 -1
- package/dist/cdn/chunks/{cloud-CxNsW3hp.js → cloud-CuItCnN_.js} +4 -4
- package/dist/cdn/chunks/{cloud-CxNsW3hp.js.map → cloud-CuItCnN_.js.map} +1 -1
- package/dist/cdn/chunks/{dist-BLF-S9_A.js → dist-B2HKGHnc.js} +9 -7
- package/dist/cdn/chunks/{dist-BLF-S9_A.js.map → dist-B2HKGHnc.js.map} +1 -1
- package/dist/cdn/chunks/{dist-Dp46rwVY.js → dist-C6z8AjBC.js} +2 -2
- package/dist/cdn/chunks/{dist-Dp46rwVY.js.map → dist-C6z8AjBC.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-BRF_Q_jB.js → draggable-DCs9qL-b.js} +114 -92
- package/dist/cdn/chunks/{draggable-BRF_Q_jB.js.map → draggable-DCs9qL-b.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-yNQlgLNE.js → extensions-B7laxHjs.js} +22 -22
- package/dist/cdn/chunks/{extensions-yNQlgLNE.js.map → extensions-B7laxHjs.js.map} +1 -1
- package/dist/cdn/chunks/{htmlparser-CPhs2cYE.js → htmlparser-DTML8Gvz.js} +8 -7
- package/dist/cdn/chunks/{htmlparser-CPhs2cYE.js.map → htmlparser-DTML8Gvz.js.map} +1 -1
- package/dist/cdn/chunks/{icons-DN008liP.js → icons-CvYN6zrM.js} +74 -80
- package/dist/cdn/chunks/icons-CvYN6zrM.js.map +1 -0
- package/dist/cdn/chunks/{keys-CZOBuCQd.js → keys-Cmc2Yl3D.js} +2 -2
- package/dist/cdn/chunks/{keys-CZOBuCQd.js.map → keys-Cmc2Yl3D.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-CZaQe87t.js → liquid.browser-UlAOKBjI.js} +120 -110
- package/dist/cdn/chunks/liquid.browser-UlAOKBjI.js.map +1 -0
- package/dist/cdn/chunks/{pusher-kUlkqMvR.js → pusher-BbIHJKf3.js} +29 -25
- package/dist/cdn/chunks/{pusher-kUlkqMvR.js.map → pusher-BbIHJKf3.js.map} +1 -1
- package/dist/cdn/chunks/{src-uc_Mb_yH.js → src-BYKYmEOD.js} +7 -6
- package/dist/cdn/chunks/src-BYKYmEOD.js.map +1 -0
- package/dist/cdn/chunks/{src-D_3bXt7-.js → src-Bi-Qhtfs.js} +3 -3
- package/dist/cdn/chunks/{src-D_3bXt7-.js.map → src-Bi-Qhtfs.js.map} +1 -1
- package/dist/cdn/chunks/{src-B2LpXMIw.js → src-C0N74uvF.js} +280 -277
- package/dist/cdn/chunks/{src-B2LpXMIw.js.map → src-C0N74uvF.js.map} +1 -1
- package/dist/cdn/chunks/{src-CZjSXPYq.js → src-EKTTBQ0y.js} +3 -2
- package/dist/cdn/chunks/src-EKTTBQ0y.js.map +1 -0
- package/dist/cdn/chunks/{styles-BzP13r-I.js → styles-C7s-VtJi.js} +1112 -1094
- package/dist/cdn/chunks/styles-C7s-VtJi.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-CgwK_fKJ.js → tiptap-C44S1Cmh.js} +3681 -2965
- package/dist/cdn/chunks/tiptap-C44S1Cmh.js.map +1 -0
- package/dist/cdn/chunks/{useAliveFlag-Ctyt3GgH.js → useAliveFlag-Dxwgo6P4.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-Ctyt3GgH.js.map → useAliveFlag-Dxwgo6P4.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-CML0BxqX.js → useCloudI18n-8wkJtuJD.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-CML0BxqX.js.map → useCloudI18n-8wkJtuJD.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-CTYH6u4r.js → useEditorCore-C_nUXiph.js} +275 -275
- package/dist/cdn/chunks/useEditorCore-C_nUXiph.js.map +1 -0
- package/dist/cdn/chunks/{useI18n-aRMtgYRj.js → useI18n-UMs0F71x.js} +3 -3
- package/dist/cdn/chunks/{useI18n-aRMtgYRj.js.map → useI18n-UMs0F71x.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-8a8BnIZp.js → useMergeTag-CPa_9VOq.js} +4 -4
- package/dist/cdn/chunks/{useMergeTag-8a8BnIZp.js.map → useMergeTag-CPa_9VOq.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-Dm1jv3y5.js → usePopoverPosition-cf8Y-ynK.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-Dm1jv3y5.js.map → usePopoverPosition-cf8Y-ynK.js.map} +1 -1
- package/dist/cdn/editor.js +47 -47
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-Bqimqf7l.js → check-On4TSac-.js} +1 -1
- package/dist/{chevron-down-CYOoeGBd.js → chevron-down-69EiBGoB.js} +1 -1
- package/dist/{chevron-up-DYknsfm0.js → chevron-up-Dh3MG1Dw.js} +1 -1
- package/dist/{circle-alert-6q_jgtv_.js → circle-alert-cilwzafX.js} +1 -1
- package/dist/{clock-CnadSSTD.js → clock-Dt0APH92.js} +1 -1
- package/dist/{cloud-BJLg_SlM.js → cloud-C7-FhzMc.js} +2 -2
- package/dist/{createLucideIcon-D7GKhya2.js → createLucideIcon-C8WzBYCv.js} +3 -3
- package/dist/dist-6YJAWMuf.js +5 -0
- package/dist/dist-8vlm9kfO.js +5 -0
- package/dist/{dist-DSIgxp0v.js → dist-BImfm-46.js} +2 -2
- package/dist/{dist-DDfXShPv.js → dist-BpKxrUi2.js} +1 -1
- package/dist/{dist-B6Px6GPj.js → dist-C08jiemd.js} +7 -7
- package/dist/{dist-BxbTVeY0.js → dist-C27SeFL5.js} +15 -15
- package/dist/{dist-nR6mxyqI.js → dist-CYx-E82k.js} +2 -2
- package/dist/{dist-CcQFPJMF.js → dist-ChYLhoJ4.js} +2300 -1704
- package/dist/{dist-C31bMR4x.js → dist-Cl8J0IES.js} +270 -182
- package/dist/{dist-CQ0fVBQ3.js → dist-D5zCZFdU.js} +2 -1
- package/dist/{dist-Dx71pluS.js → dist-DMJRSouD.js} +470 -440
- package/dist/{dist-DyCHUyRR.js → dist-DfpeSdmE.js} +2 -2
- package/dist/{dist-DX4x6mQ1.js → dist-M7m1lYRe.js} +47 -47
- package/dist/{dist-CRH880TV.js → dist-g6cbzhZW.js} +2 -2
- package/dist/{extensions-CbiWtzS6.js → extensions-CxwhoG8v.js} +19 -19
- package/dist/{image-up-BfukboIn.js → image-up-Ceggh_R3.js} +1 -1
- package/dist/{info-DSYRzSZo.js → info-DO5odBcZ.js} +1 -1
- package/dist/{keys-BI6VSUh4.js → keys-fwF3qZax.js} +1 -1
- package/dist/{liquid.browser-BECWFL5Z.js → liquid.browser-B-rGrnrQ.js} +119 -109
- package/dist/{list-checks-URZOyLhr.js → list-checks-BSkPKbuI.js} +1 -1
- package/dist/{loader-circle-GADaYcyQ.js → loader-circle-bO7o7_HD.js} +1 -1
- package/dist/{message-circle-B62fdo0b.js → message-circle-BEkAk65X.js} +1 -1
- package/dist/{pencil-BGwkOpD_.js → pencil-t6m0EtKL.js} +1 -1
- package/dist/{refresh-cw-Z4wXfduO.js → refresh-cw-CkOYVzK5.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-BkOsapVg.js → runtime-dom.esm-bundler-CepEmvwF.js} +13 -10
- package/dist/{scan-line-D8Oh5xos.js → scan-line-DwSVj25O.js} +1 -1
- package/dist/{send-BYp4k38T.js → send-CWsWN8PQ.js} +1 -1
- package/dist/{shield-check-Cm0RePnW.js → shield-check-qje8Kufw.js} +1 -1
- package/dist/{sparkles-BHEE-vRD.js → sparkles-DumaWRW-.js} +1 -1
- package/dist/{styles-B0MEBpOK.js → styles-C_slTGwp.js} +454 -436
- package/dist/templatical-editor.js +11 -11
- package/dist/{text-align-start-CHrg3vK8.js → text-align-start-Ir8Ah4mT.js} +1 -1
- package/dist/{trash-2-BoNT8wbq.js → trash-2-CklAFCmO.js} +1 -1
- package/dist/{triangle-alert-CiN0ssB3.js → triangle-alert-BBi4n93g.js} +1 -1
- package/dist/{upload-WvZGBySw.js → upload-sVqqppuv.js} +1 -1
- package/dist/{useAliveFlag-eT67QCMf.js → useAliveFlag-cvyBxHp7.js} +1 -1
- package/dist/{useCloudI18n-KgIWl-IE.js → useCloudI18n-DKVm6PCa.js} +2 -2
- package/dist/{useEditorCore-BMbxdUbY.js → useEditorCore-r4gWzCBA.js} +893 -893
- package/dist/{useI18n-BkHfCWC6.js → useI18n-DoVKdCTH.js} +2 -2
- package/dist/{useMergeTag-CZ4XYAxu.js → useMergeTag-C-_WxrgL.js} +3 -3
- package/dist/{usePopoverPosition-D93u-EZm.js → usePopoverPosition-C0dPEF4X.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-0R1UhmZB.js → vue.runtime.esm-bundler-D1diBMsm.js} +119 -95
- package/dist/{x-B4WnJVRx.js → x-Mby7KlhS.js} +1 -1
- package/package.json +23 -23
- package/dist/cdn/chunks/blockTypeIcons-CrPzyP_k.js +0 -21
- package/dist/cdn/chunks/icons-DN008liP.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-CZaQe87t.js.map +0 -1
- package/dist/cdn/chunks/src-CZjSXPYq.js.map +0 -1
- package/dist/cdn/chunks/src-uc_Mb_yH.js.map +0 -1
- package/dist/cdn/chunks/styles-BzP13r-I.js.map +0 -1
- package/dist/cdn/chunks/tiptap-CgwK_fKJ.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-CTYH6u4r.js.map +0 -1
- package/dist/dist-CkPvZCld.js +0 -5
- package/dist/dist-iCEDH3cC.js +0 -5
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as e, C as t, D as n, F as r, H as i, I as a, K as o, L as s, M as c, N as l, P as u, T as d, V as f, Z as p, c as m, ct as h, d as g, f as _, g as v, h as y, it as b, l as x,
|
|
2
|
-
import { h as ne } from "./dist-
|
|
3
|
-
import { a as re, n as ie, o as ae, r as P, s as F, t as oe } from "./dist-
|
|
4
|
-
import {
|
|
1
|
+
import { A as e, C as t, D as n, F as r, H as i, I as a, K as o, L as s, M as c, N as l, P as u, T as d, V as f, Z as p, c as m, ct as h, d as g, f as _, g as v, h as y, it as b, l as x, lt as S, m as C, n as w, o as T, p as E, r as D, s as O, st as k, tt as ee, u as A, v as j, x as M, y as N, z as te } from "./draggable-DCs9qL-b.js";
|
|
2
|
+
import { h as ne } from "./dist-C6z8AjBC.js";
|
|
3
|
+
import { a as re, n as ie, o as ae, r as P, s as F, t as oe } from "./dist-B2HKGHnc.js";
|
|
4
|
+
import { C as I, Et as se, J as ce, K as le, Lt as ue, N as de, Pt as fe, U as pe, at as me, bt as he, ct as ge, d as _e, gt as ve, it as ye, n as be, s as xe, yt as Se, z as Ce } from "./icons-CvYN6zrM.js";
|
|
5
5
|
import { t as we } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
6
|
-
import { S as L, b as Te, w as Ee, x as R } from "./cloud-
|
|
6
|
+
import { S as L, b as Te, w as Ee, x as R } from "./cloud-CuItCnN_.js";
|
|
7
7
|
//#region ../media-library/src/api-client.ts
|
|
8
8
|
var De = class {
|
|
9
9
|
authManager;
|
|
@@ -502,7 +502,7 @@ var ke = {
|
|
|
502
502
|
class: "tpl:transition-colors tpl:duration-150 tpl:hover:underline",
|
|
503
503
|
style: { color: "var(--tpl-primary)" },
|
|
504
504
|
onClick: t[0] ||= (e) => r("navigate", null)
|
|
505
|
-
},
|
|
505
|
+
}, S(b(i).mediaLibrary.allFiles), 1), (c(!0), v(A, null, u(a.value, (e, t) => (c(), v(A, { key: e.id }, [N(b(fe), {
|
|
506
506
|
size: 12,
|
|
507
507
|
"stroke-width": 2
|
|
508
508
|
}), t < a.value.length - 1 ? (c(), v("button", {
|
|
@@ -510,7 +510,7 @@ var ke = {
|
|
|
510
510
|
class: "tpl:transition-colors tpl:duration-150 tpl:hover:underline",
|
|
511
511
|
style: { color: "var(--tpl-primary)" },
|
|
512
512
|
onClick: (t) => r("navigate", e.id)
|
|
513
|
-
},
|
|
513
|
+
}, S(e.name), 9, Ae)) : (c(), v("span", je, S(e.name), 1))], 64))), 128))])) : y("", !0);
|
|
514
514
|
}
|
|
515
515
|
});
|
|
516
516
|
//#endregion
|
|
@@ -684,8 +684,10 @@ var We, Ge, Ke, H = (We = function(e) {
|
|
|
684
684
|
var o = n.apply(null, i);
|
|
685
685
|
o && e.push(o);
|
|
686
686
|
}
|
|
687
|
-
} else if (a === "object")
|
|
688
|
-
|
|
687
|
+
} else if (a === "object") {
|
|
688
|
+
if (i.toString === Object.prototype.toString) for (var s in i) t.call(i, s) && i[s] && e.push(s);
|
|
689
|
+
else e.push(i.toString());
|
|
690
|
+
}
|
|
689
691
|
}
|
|
690
692
|
}
|
|
691
693
|
return e.join(" ");
|
|
@@ -900,7 +902,7 @@ var at = function(e, t) {
|
|
|
900
902
|
]
|
|
901
903
|
};
|
|
902
904
|
lt.render = function(e, t, n, i, a, o) {
|
|
903
|
-
return c(),
|
|
905
|
+
return c(), C("div", {
|
|
904
906
|
ref: "draggable",
|
|
905
907
|
class: n.classname,
|
|
906
908
|
onTouchstart: t[1] ||= function() {
|
|
@@ -948,7 +950,7 @@ var ut = U("vue-handler-wrapper"), dt = {
|
|
|
948
950
|
};
|
|
949
951
|
dt.render = function(e, t, n, i, o, s) {
|
|
950
952
|
var l = a("DraggableElement");
|
|
951
|
-
return c(),
|
|
953
|
+
return c(), C("div", { class: s.classes.root }, [N(l, {
|
|
952
954
|
class: s.classes.draggable,
|
|
953
955
|
onDrag: t[1] ||= function(t) {
|
|
954
956
|
return e.$emit("drag", t);
|
|
@@ -995,7 +997,7 @@ var ft = U("vue-line-wrapper"), pt = {
|
|
|
995
997
|
};
|
|
996
998
|
pt.render = function(e, t, n, i, o, s) {
|
|
997
999
|
var l = a("DraggableElement");
|
|
998
|
-
return c(),
|
|
1000
|
+
return c(), C(l, {
|
|
999
1001
|
class: s.classname,
|
|
1000
1002
|
onDrag: t[1] ||= function(t) {
|
|
1001
1003
|
return e.$emit("drag", t);
|
|
@@ -1118,7 +1120,7 @@ function Q(e) {
|
|
|
1118
1120
|
return e.width / e.height;
|
|
1119
1121
|
}
|
|
1120
1122
|
function Ct(e, t) {
|
|
1121
|
-
return Math.min(t.right !== void 0 && t.left !== void 0 ? (t.right - t.left) / e.width :
|
|
1123
|
+
return Math.min(t.right !== void 0 && t.left !== void 0 ? (t.right - t.left) / e.width : 1 / 0, t.bottom !== void 0 && t.top !== void 0 ? (t.bottom - t.top) / e.height : 1 / 0);
|
|
1122
1124
|
}
|
|
1123
1125
|
function wt(e, t) {
|
|
1124
1126
|
var n = {
|
|
@@ -1133,16 +1135,16 @@ function Tt(e, t) {
|
|
|
1133
1135
|
}
|
|
1134
1136
|
function Et(e, t) {
|
|
1135
1137
|
var n = Q(e), r = Q(t);
|
|
1136
|
-
return t.width <
|
|
1138
|
+
return t.width < 1 / 0 && t.height < 1 / 0 ? n > r ? {
|
|
1137
1139
|
width: t.width,
|
|
1138
1140
|
height: t.width / n
|
|
1139
1141
|
} : {
|
|
1140
1142
|
width: t.height * n,
|
|
1141
1143
|
height: t.height
|
|
1142
|
-
} : t.width <
|
|
1144
|
+
} : t.width < 1 / 0 ? {
|
|
1143
1145
|
width: t.width,
|
|
1144
1146
|
height: t.width / n
|
|
1145
|
-
} : t.height <
|
|
1147
|
+
} : t.height < 1 / 0 ? {
|
|
1146
1148
|
width: t.height * n,
|
|
1147
1149
|
height: t.height
|
|
1148
1150
|
} : e;
|
|
@@ -1172,8 +1174,8 @@ function $(e, t, n) {
|
|
|
1172
1174
|
}
|
|
1173
1175
|
function At(e) {
|
|
1174
1176
|
return {
|
|
1175
|
-
width: e.right !== void 0 && e.left !== void 0 ? e.right - e.left :
|
|
1176
|
-
height: e.bottom !== void 0 && e.top !== void 0 ? e.bottom - e.top :
|
|
1177
|
+
width: e.right !== void 0 && e.left !== void 0 ? e.right - e.left : 1 / 0,
|
|
1178
|
+
height: e.bottom !== void 0 && e.top !== void 0 ? e.bottom - e.top : 1 / 0
|
|
1177
1179
|
};
|
|
1178
1180
|
}
|
|
1179
1181
|
function jt(e, t) {
|
|
@@ -1205,7 +1207,7 @@ function Ft(e, t) {
|
|
|
1205
1207
|
function It(e) {
|
|
1206
1208
|
var t = e.width, n = e.height, r = e.sizeRestrictions, i = {
|
|
1207
1209
|
minimum: e.aspectRatio && e.aspectRatio.minimum || 0,
|
|
1208
|
-
maximum: e.aspectRatio && e.aspectRatio.maximum ||
|
|
1210
|
+
maximum: e.aspectRatio && e.aspectRatio.maximum || 1 / 0
|
|
1209
1211
|
}, a = {
|
|
1210
1212
|
width: Math.max(r.minWidth, Math.min(r.maxWidth, t)),
|
|
1211
1213
|
height: Math.max(r.minHeight, Math.min(r.maxHeight, n))
|
|
@@ -1358,7 +1360,7 @@ function Ht(e) {
|
|
|
1358
1360
|
};
|
|
1359
1361
|
}
|
|
1360
1362
|
function Ut(e) {
|
|
1361
|
-
var t = e.imageSize, n = e.visibleArea, r = e.aspectRatio, i = e.sizeRestrictions, a = n || t, o = Math.min(r.maximum ||
|
|
1363
|
+
var t = e.imageSize, n = e.visibleArea, r = e.aspectRatio, i = e.sizeRestrictions, a = n || t, o = Math.min(r.maximum || 1 / 0, Math.max(r.minimum || 0, Q(a))), s = a.width < a.height ? {
|
|
1362
1364
|
width: .8 * a.width,
|
|
1363
1365
|
height: .8 * a.width / o
|
|
1364
1366
|
} : {
|
|
@@ -1422,7 +1424,7 @@ function qt(e) {
|
|
|
1422
1424
|
var h = {
|
|
1423
1425
|
stencil: {
|
|
1424
1426
|
minimum: Math.max(i.minWidth ? i.minWidth / d.width : 0, i.minHeight ? i.minHeight / d.height : 0),
|
|
1425
|
-
maximum: Math.min(i.maxWidth ? i.maxWidth / d.width :
|
|
1427
|
+
maximum: Math.min(i.maxWidth ? i.maxWidth / d.width : 1 / 0, i.maxHeight ? i.maxHeight / d.height : 1 / 0, Ct(d, o))
|
|
1426
1428
|
},
|
|
1427
1429
|
area: { maximum: Ct(u, a({
|
|
1428
1430
|
visibleArea: u,
|
|
@@ -1497,12 +1499,12 @@ function Xt(e) {
|
|
|
1497
1499
|
var d = xt(Y(n, c), i);
|
|
1498
1500
|
s && (d.left && d.left > 0 && d.right === 0 ? (c.right += d.left, c.left -= d.left) : d.right && d.right > 0 && d.left === 0 && (c.left += d.right, c.right -= d.right), d.top && d.top > 0 && d.bottom === 0 ? (c.bottom += d.top, c.top -= d.top) : d.bottom && d.bottom > 0 && d.top === 0 && (c.top += d.bottom, c.bottom -= d.bottom), d = xt(Y(n, c), i));
|
|
1499
1501
|
var f = {
|
|
1500
|
-
width:
|
|
1501
|
-
height:
|
|
1502
|
-
left:
|
|
1503
|
-
right:
|
|
1504
|
-
top:
|
|
1505
|
-
bottom:
|
|
1502
|
+
width: 1 / 0,
|
|
1503
|
+
height: 1 / 0,
|
|
1504
|
+
left: 1 / 0,
|
|
1505
|
+
right: 1 / 0,
|
|
1506
|
+
top: 1 / 0,
|
|
1507
|
+
bottom: 1 / 0
|
|
1506
1508
|
};
|
|
1507
1509
|
if (K.forEach((function(e) {
|
|
1508
1510
|
var t = d[e];
|
|
@@ -1511,20 +1513,20 @@ function Xt(e) {
|
|
|
1511
1513
|
var p = Math.min.apply(null, K.map((function(e) {
|
|
1512
1514
|
return f[e];
|
|
1513
1515
|
})));
|
|
1514
|
-
p !==
|
|
1516
|
+
p !== 1 / 0 && K.forEach((function(e) {
|
|
1515
1517
|
c[e] *= p;
|
|
1516
1518
|
}));
|
|
1517
1519
|
} else K.forEach((function(e) {
|
|
1518
|
-
f[e] !==
|
|
1520
|
+
f[e] !== 1 / 0 && (c[e] *= f[e]);
|
|
1519
1521
|
}));
|
|
1520
1522
|
if (l = Y(n, c).width, u = Y(n, c).height, c.right + c.left && (l > a.maxWidth ? f.width = (a.maxWidth - n.width) / (c.right + c.left) : l < a.minWidth && (f.width = (a.minWidth - n.width) / (c.right + c.left))), c.bottom + c.top && (u > a.maxHeight ? f.height = (a.maxHeight - n.height) / (c.bottom + c.top) : u < a.minHeight && (f.height = (a.minHeight - n.height) / (c.bottom + c.top))), o) {
|
|
1521
1523
|
var m = Math.min(f.width, f.height);
|
|
1522
|
-
m !==
|
|
1524
|
+
m !== 1 / 0 && K.forEach((function(e) {
|
|
1523
1525
|
c[e] *= m;
|
|
1524
1526
|
}));
|
|
1525
|
-
} else f.width !==
|
|
1527
|
+
} else f.width !== 1 / 0 && mt.forEach((function(e) {
|
|
1526
1528
|
c[e] *= f.width;
|
|
1527
|
-
})), f.height !==
|
|
1529
|
+
})), f.height !== 1 / 0 && ht.forEach((function(e) {
|
|
1528
1530
|
c[e] *= f.height;
|
|
1529
1531
|
}));
|
|
1530
1532
|
return c;
|
|
@@ -1574,7 +1576,7 @@ var Qt = U("vue-simple-handler"), $t = U("vue-simple-handler-wrapper"), en = {
|
|
|
1574
1576
|
};
|
|
1575
1577
|
en.render = function(e, t, n, r, i, o) {
|
|
1576
1578
|
var s = a("HandlerWrapper");
|
|
1577
|
-
return c(),
|
|
1579
|
+
return c(), C(s, {
|
|
1578
1580
|
class: o.classes.wrapper,
|
|
1579
1581
|
"vertical-position": n.verticalPosition,
|
|
1580
1582
|
"horizontal-position": n.horizontalPosition,
|
|
@@ -1639,7 +1641,7 @@ var tn = U("vue-simple-line"), nn = U("vue-simple-line-wrapper"), rn = {
|
|
|
1639
1641
|
};
|
|
1640
1642
|
rn.render = function(e, t, n, r, i, o) {
|
|
1641
1643
|
var s = a("LineWrapper");
|
|
1642
|
-
return c(),
|
|
1644
|
+
return c(), C(s, {
|
|
1643
1645
|
class: o.classes.wrapper,
|
|
1644
1646
|
position: n.position,
|
|
1645
1647
|
disabled: n.disabled,
|
|
@@ -1847,14 +1849,14 @@ var an = U("vue-bounding-box"), on = [
|
|
|
1847
1849
|
emits: ["resize", "resize-end"]
|
|
1848
1850
|
};
|
|
1849
1851
|
cn.render = function(e, t, n, i, a, o) {
|
|
1850
|
-
return c(),
|
|
1852
|
+
return c(), C("div", {
|
|
1851
1853
|
ref: "box",
|
|
1852
1854
|
class: o.classes.root,
|
|
1853
1855
|
style: o.style
|
|
1854
1856
|
}, [
|
|
1855
1857
|
r(e.$slots, "default"),
|
|
1856
|
-
N("div", null, [(c(!0),
|
|
1857
|
-
return c(),
|
|
1858
|
+
N("div", null, [(c(!0), C(A, null, u(o.lineNodes, (function(e) {
|
|
1859
|
+
return c(), C(s(e.component), {
|
|
1858
1860
|
key: e.name,
|
|
1859
1861
|
"default-class": e.class,
|
|
1860
1862
|
"hover-class": e.hoverClass,
|
|
@@ -1876,12 +1878,12 @@ cn.render = function(e, t, n, i, a, o) {
|
|
|
1876
1878
|
"onDrag"
|
|
1877
1879
|
]);
|
|
1878
1880
|
})), 128))]),
|
|
1879
|
-
(c(!0),
|
|
1880
|
-
return c(),
|
|
1881
|
+
(c(!0), C(A, null, u(o.handlerNodes, (function(e) {
|
|
1882
|
+
return c(), C("div", {
|
|
1881
1883
|
key: e.name,
|
|
1882
1884
|
style: e.wrapperStyle,
|
|
1883
1885
|
class: e.wrapperClass
|
|
1884
|
-
}, [(c(),
|
|
1886
|
+
}, [(c(), C(s(e.component), {
|
|
1885
1887
|
"default-class": e.class,
|
|
1886
1888
|
"hover-class": e.hoverClass,
|
|
1887
1889
|
"wrapper-class": e.wrapperClass,
|
|
@@ -1996,7 +1998,7 @@ var ln = U("vue-draggable-area"), un = {
|
|
|
1996
1998
|
emits: ["move", "move-end"]
|
|
1997
1999
|
};
|
|
1998
2000
|
un.render = function(e, t, n, i, a, o) {
|
|
1999
|
-
return c(),
|
|
2001
|
+
return c(), C("div", {
|
|
2000
2002
|
ref: "container",
|
|
2001
2003
|
onTouchstart: t[1] ||= function() {
|
|
2002
2004
|
return o.onTouchStart && o.onTouchStart.apply(o, arguments);
|
|
@@ -2018,29 +2020,30 @@ function dn(e) {
|
|
|
2018
2020
|
function fn(e) {
|
|
2019
2021
|
return new Promise((function(t, n) {
|
|
2020
2022
|
try {
|
|
2021
|
-
if (e)
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
i.
|
|
2039
|
-
|
|
2040
|
-
i.
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2023
|
+
if (e) {
|
|
2024
|
+
if (/^data:/i.test(e)) t(function(e) {
|
|
2025
|
+
e = e.replace(/^data:([^;]+);base64,/gim, "");
|
|
2026
|
+
for (var t = atob(e), n = t.length, r = new ArrayBuffer(n), i = new Uint8Array(r), a = 0; a < n; a++) i[a] = t.charCodeAt(a);
|
|
2027
|
+
return r;
|
|
2028
|
+
}(e));
|
|
2029
|
+
else if (/^blob:/i.test(e)) {
|
|
2030
|
+
var r = new FileReader();
|
|
2031
|
+
r.onload = function(e) {
|
|
2032
|
+
t(e.target.result);
|
|
2033
|
+
}, a = e, o = function(e) {
|
|
2034
|
+
r.readAsArrayBuffer(e);
|
|
2035
|
+
}, (s = new XMLHttpRequest()).open("GET", a, !0), s.responseType = "blob", s.onload = function() {
|
|
2036
|
+
this.status != 200 && this.status !== 0 || o(this.response);
|
|
2037
|
+
}, s.send();
|
|
2038
|
+
} else {
|
|
2039
|
+
var i = new XMLHttpRequest();
|
|
2040
|
+
i.onreadystatechange = function() {
|
|
2041
|
+
i.readyState === 4 && (i.status === 200 || i.status === 0 ? t(i.response) : n("Warning: could not load an image to parse its orientation"), i = null);
|
|
2042
|
+
}, i.onprogress = function() {
|
|
2043
|
+
i.getResponseHeader("content-type") !== "image/jpeg" && i.abort();
|
|
2044
|
+
}, i.withCredentials = !1, i.open("GET", e, !0), i.responseType = "arraybuffer", i.send(null);
|
|
2045
|
+
}
|
|
2046
|
+
} else n("Error: the image is empty");
|
|
2044
2047
|
} catch (e) {
|
|
2045
2048
|
n(e);
|
|
2046
2049
|
}
|
|
@@ -2227,7 +2230,7 @@ var gn = {
|
|
|
2227
2230
|
]
|
|
2228
2231
|
};
|
|
2229
2232
|
gn.render = function(e, t, n, i, a, o) {
|
|
2230
|
-
return c(),
|
|
2233
|
+
return c(), C("div", {
|
|
2231
2234
|
ref: "container",
|
|
2232
2235
|
onTouchstart: t[1] ||= function() {
|
|
2233
2236
|
return o.onTouchStart && o.onTouchStart.apply(o, arguments);
|
|
@@ -2264,7 +2267,7 @@ var _n = {
|
|
|
2264
2267
|
};
|
|
2265
2268
|
_n.render = function(e, t, n, i, o, s) {
|
|
2266
2269
|
var l = a("transformable-image");
|
|
2267
|
-
return c(),
|
|
2270
|
+
return c(), C(l, {
|
|
2268
2271
|
"touch-move": n.touchMove,
|
|
2269
2272
|
"touch-resize": n.touchResize,
|
|
2270
2273
|
"mouse-move": n.mouseMove,
|
|
@@ -2412,7 +2415,7 @@ var vn = U("vue-preview"), yn = {
|
|
|
2412
2415
|
}
|
|
2413
2416
|
};
|
|
2414
2417
|
yn.render = function(e, t, n, r, a, o) {
|
|
2415
|
-
return c(),
|
|
2418
|
+
return c(), C("div", {
|
|
2416
2419
|
ref: "root",
|
|
2417
2420
|
class: o.classes.root,
|
|
2418
2421
|
style: o.style
|
|
@@ -2433,7 +2436,7 @@ var bn = {
|
|
|
2433
2436
|
};
|
|
2434
2437
|
bn.render = function(e, t, r, i, o, s) {
|
|
2435
2438
|
var l = a("preview");
|
|
2436
|
-
return c(),
|
|
2439
|
+
return c(), C(l, n(e.$attrs, { fill: !0 }), null, 16);
|
|
2437
2440
|
};
|
|
2438
2441
|
var xn = U("vue-rectangle-stencil"), Sn = {
|
|
2439
2442
|
name: "RectangleStencil",
|
|
@@ -2557,7 +2560,7 @@ var xn = U("vue-rectangle-stencil"), Sn = {
|
|
|
2557
2560
|
};
|
|
2558
2561
|
Sn.render = function(e, t, n, r, i, o) {
|
|
2559
2562
|
var s = a("stencil-preview"), l = a("draggable-area"), u = a("bounding-box");
|
|
2560
|
-
return c(),
|
|
2563
|
+
return c(), C("div", {
|
|
2561
2564
|
class: o.classes.stencil,
|
|
2562
2565
|
style: o.style
|
|
2563
2566
|
}, [N(u, {
|
|
@@ -2980,19 +2983,19 @@ var Cn = ["transitions"], wn = U("vue-advanced-cropper"), Tn = {
|
|
|
2980
2983
|
imageSize: this.imageSize,
|
|
2981
2984
|
minWidth: G(this.minWidth) ? 0 : tt(this.minWidth),
|
|
2982
2985
|
minHeight: G(this.minHeight) ? 0 : tt(this.minHeight),
|
|
2983
|
-
maxWidth: G(this.maxWidth) ?
|
|
2984
|
-
maxHeight: G(this.maxHeight) ?
|
|
2986
|
+
maxWidth: G(this.maxWidth) ? 1 / 0 : tt(this.maxWidth),
|
|
2987
|
+
maxHeight: G(this.maxHeight) ? 1 / 0 : tt(this.maxHeight)
|
|
2985
2988
|
});
|
|
2986
2989
|
if (e = function(e) {
|
|
2987
2990
|
var t = e.areaRestrictions, n = e.sizeRestrictions, r = e.boundaries, i = e.positionRestrictions, a = W(W({}, n), {
|
|
2988
2991
|
minWidth: n.minWidth === void 0 ? 0 : n.minWidth,
|
|
2989
2992
|
minHeight: n.minHeight === void 0 ? 0 : n.minHeight,
|
|
2990
|
-
maxWidth: n.maxWidth === void 0 ?
|
|
2991
|
-
maxHeight: n.maxHeight === void 0 ?
|
|
2993
|
+
maxWidth: n.maxWidth === void 0 ? 1 / 0 : n.maxWidth,
|
|
2994
|
+
maxHeight: n.maxHeight === void 0 ? 1 / 0 : n.maxHeight
|
|
2992
2995
|
});
|
|
2993
2996
|
i.left !== void 0 && i.right !== void 0 && (a.maxWidth = Math.min(a.maxWidth, i.right - i.left)), i.bottom !== void 0 && i.top !== void 0 && (a.maxHeight = Math.min(a.maxHeight, i.bottom - i.top));
|
|
2994
2997
|
var o = At(t), s = Et(r, o);
|
|
2995
|
-
return o.width <
|
|
2998
|
+
return o.width < 1 / 0 && (!a.maxWidth || a.maxWidth > s.width) && (a.maxWidth = Math.min(a.maxWidth, s.width)), o.height < 1 / 0 && (!a.maxHeight || a.maxHeight > s.height) && (a.maxHeight = Math.min(a.maxHeight, s.height)), a.minWidth > a.maxWidth && (a.minWidth = a.maxWidth, a.widthFrozen = !0), a.minHeight > a.maxHeight && (a.minHeight = a.maxHeight, a.heightFrozen = !0), a;
|
|
2996
2999
|
}({
|
|
2997
3000
|
sizeRestrictions: e,
|
|
2998
3001
|
areaRestrictions: this.getAreaRestrictions({
|
|
@@ -3287,8 +3290,8 @@ var Cn = ["transitions"], wn = U("vue-advanced-cropper"), Tn = {
|
|
|
3287
3290
|
}(this.$refs.sourceCanvas, t, this.imageTransforms) : t, r = B({
|
|
3288
3291
|
minWidth: 0,
|
|
3289
3292
|
minHeight: 0,
|
|
3290
|
-
maxWidth:
|
|
3291
|
-
maxHeight:
|
|
3293
|
+
maxWidth: 1 / 0,
|
|
3294
|
+
maxHeight: 1 / 0,
|
|
3292
3295
|
maxArea: this.maxCanvasSize,
|
|
3293
3296
|
imageSmoothingEnabled: !0,
|
|
3294
3297
|
imageSmoothingQuality: "high",
|
|
@@ -3302,8 +3305,8 @@ var Cn = ["transitions"], wn = U("vue-advanced-cropper"), Tn = {
|
|
|
3302
3305
|
sizeRestrictions: {
|
|
3303
3306
|
minWidth: i([r.width, r.minWidth]) || 0,
|
|
3304
3307
|
minHeight: i([r.height, r.minHeight]) || 0,
|
|
3305
|
-
maxWidth: i([r.width, r.maxWidth]) ||
|
|
3306
|
-
maxHeight: i([r.height, r.maxHeight]) ||
|
|
3308
|
+
maxWidth: i([r.width, r.maxWidth]) || 1 / 0,
|
|
3309
|
+
maxHeight: i([r.height, r.maxHeight]) || 1 / 0
|
|
3307
3310
|
},
|
|
3308
3311
|
width: this.coordinates.width,
|
|
3309
3312
|
height: this.coordinates.height,
|
|
@@ -3745,7 +3748,7 @@ var Cn = ["transitions"], wn = U("vue-advanced-cropper"), Tn = {
|
|
|
3745
3748
|
style: { display: "none" }
|
|
3746
3749
|
};
|
|
3747
3750
|
Tn.render = function(e, t, r, a, o, l) {
|
|
3748
|
-
return c(),
|
|
3751
|
+
return c(), C("div", {
|
|
3749
3752
|
ref: "cropper",
|
|
3750
3753
|
class: l.classes.cropper
|
|
3751
3754
|
}, [N("div", {
|
|
@@ -3754,7 +3757,7 @@ Tn.render = function(e, t, r, a, o, l) {
|
|
|
3754
3757
|
}, null, 2), N("div", {
|
|
3755
3758
|
class: l.classes.boundaries,
|
|
3756
3759
|
style: l.boundariesStyle
|
|
3757
|
-
}, [(c(),
|
|
3760
|
+
}, [(c(), C(s(r.backgroundWrapperComponent), {
|
|
3758
3761
|
class: l.classes.cropperWrapper,
|
|
3759
3762
|
"wheel-resize": l.settings.resizeImage.wheel,
|
|
3760
3763
|
"touch-resize": l.settings.resizeImage.touch,
|
|
@@ -3781,7 +3784,7 @@ Tn.render = function(e, t, r, a, o, l) {
|
|
|
3781
3784
|
class: l.classes.foreground,
|
|
3782
3785
|
style: l.boundariesStyle
|
|
3783
3786
|
}, null, 6),
|
|
3784
|
-
i((c(),
|
|
3787
|
+
i((c(), C(s(r.stencilComponent), n({
|
|
3785
3788
|
ref: "stencil",
|
|
3786
3789
|
image: l.image,
|
|
3787
3790
|
coordinates: o.coordinates,
|
|
@@ -3802,8 +3805,8 @@ Tn.render = function(e, t, r, a, o, l) {
|
|
|
3802
3805
|
"onMove",
|
|
3803
3806
|
"onMoveEnd"
|
|
3804
3807
|
])), [[O, o.imageLoaded]]),
|
|
3805
|
-
r.canvas ? (c(),
|
|
3806
|
-
r.canvas ? (c(),
|
|
3808
|
+
r.canvas ? (c(), C("canvas", En, null, 512)) : y("", !0),
|
|
3809
|
+
r.canvas ? (c(), C("canvas", Dn, null, 512)) : y("", !0)
|
|
3807
3810
|
];
|
|
3808
3811
|
})),
|
|
3809
3812
|
_: 1
|
|
@@ -3926,7 +3929,7 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
3926
3929
|
function ge(e) {
|
|
3927
3930
|
e.key === "Enter" && !I.value && (e.preventDefault(), he()), e.key === "Escape" && r("close");
|
|
3928
3931
|
}
|
|
3929
|
-
return (t, n) => (c(),
|
|
3932
|
+
return (t, n) => (c(), C(g, { to: b(s) || "body" }, [N(w, {
|
|
3930
3933
|
"enter-active-class": "tpl:transition tpl:ease-out tpl:duration-150",
|
|
3931
3934
|
"enter-from-class": "tpl:opacity-0",
|
|
3932
3935
|
"enter-to-class": "tpl:opacity-100",
|
|
@@ -3942,10 +3945,10 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
3942
3945
|
onClick: n[3] ||= x((e) => r("close"), ["self"]),
|
|
3943
3946
|
onKeydown: ge
|
|
3944
3947
|
}, [E("div", {
|
|
3945
|
-
class:
|
|
3948
|
+
class: k(["tpl:mx-4 tpl:flex tpl:max-h-[90vh] tpl:w-full tpl:flex-col tpl:overflow-hidden tpl:rounded-lg tpl:shadow-xl", ce.value ? "tpl:max-w-2xl" : "tpl:max-w-sm"]),
|
|
3946
3949
|
style: { "background-color": "var(--tpl-bg-elevated)" }
|
|
3947
3950
|
}, [
|
|
3948
|
-
E("div", kn, [E("h3", An,
|
|
3951
|
+
E("div", kn, [E("h3", An, S(b(a).mediaLibrary.editFile), 1)]),
|
|
3949
3952
|
E("div", jn, [
|
|
3950
3953
|
ce.value ? (c(), v("div", Mn, [E("div", Nn, [N(b(Tn), {
|
|
3951
3954
|
ref_key: "cropperRef",
|
|
@@ -3957,7 +3960,7 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
3957
3960
|
onChange: de,
|
|
3958
3961
|
onReady: fe
|
|
3959
3962
|
}, null, 8, ["src", "stencil-props"])]), E("div", Pn, [
|
|
3960
|
-
E("div", null, [E("label", Fn,
|
|
3963
|
+
E("div", null, [E("label", Fn, S(b(a).mediaLibrary.cropAspectRatio), 1), E("div", In, [(c(), v(A, null, u([
|
|
3961
3964
|
"free",
|
|
3962
3965
|
"square",
|
|
3963
3966
|
"landscape43",
|
|
@@ -3967,14 +3970,14 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
3967
3970
|
key: e,
|
|
3968
3971
|
type: "button",
|
|
3969
3972
|
class: "tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
|
|
3970
|
-
style:
|
|
3973
|
+
style: h({
|
|
3971
3974
|
borderColor: M.value === e ? "var(--tpl-primary)" : "var(--tpl-border)",
|
|
3972
3975
|
backgroundColor: M.value === e ? "var(--tpl-primary-light)" : "var(--tpl-bg)",
|
|
3973
3976
|
color: M.value === e ? "var(--tpl-primary)" : "var(--tpl-text)"
|
|
3974
3977
|
}),
|
|
3975
3978
|
onClick: (t) => M.value = e
|
|
3976
|
-
},
|
|
3977
|
-
E("div", Rn, [E("div", zn, [E("label", Bn, [j(
|
|
3979
|
+
}, S(b(l)[`crop${e.charAt(0).toUpperCase()}${e.slice(1)}`]), 13, Ln)), 64))])]),
|
|
3980
|
+
E("div", Rn, [E("div", zn, [E("label", Bn, [j(S(b(a).mediaLibrary.cropMaxWidth) + " ", 1), E("span", Vn, S(b(a).mediaLibrary.cropOptional), 1)]), E("div", Hn, [E("input", {
|
|
3978
3981
|
value: ie.value,
|
|
3979
3982
|
type: "number",
|
|
3980
3983
|
min: "1",
|
|
@@ -3986,7 +3989,7 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
3986
3989
|
},
|
|
3987
3990
|
placeholder: F.value?.width?.toString() || "",
|
|
3988
3991
|
onInput: pe
|
|
3989
|
-
}, null, 40, Un), E("span", Wn,
|
|
3992
|
+
}, null, 40, Un), E("span", Wn, S(b(a).mediaLibrary.cropPixels), 1)])]), E("div", Gn, [E("label", Kn, [j(S(b(a).mediaLibrary.cropMaxHeight) + " ", 1), E("span", qn, S(b(a).mediaLibrary.cropOptional), 1)]), E("div", Jn, [E("input", {
|
|
3990
3993
|
value: ae.value,
|
|
3991
3994
|
type: "number",
|
|
3992
3995
|
min: "1",
|
|
@@ -3998,10 +4001,10 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
3998
4001
|
},
|
|
3999
4002
|
placeholder: F.value?.height?.toString() || "",
|
|
4000
4003
|
onInput: me
|
|
4001
|
-
}, null, 40, Yn), E("span", Xn,
|
|
4002
|
-
ue.value ? (c(), v("div", Zn, [E("span", null,
|
|
4004
|
+
}, null, 40, Yn), E("span", Xn, S(b(a).mediaLibrary.cropPixels), 1)])])]),
|
|
4005
|
+
ue.value ? (c(), v("div", Zn, [E("span", null, S(b(a).mediaLibrary.cropOutputSize) + ": ", 1), E("span", Qn, S(ue.value.width) + " x " + S(ue.value.height) + " " + S(b(a).mediaLibrary.cropPixels), 1)])) : y("", !0)
|
|
4003
4006
|
])])) : y("", !0),
|
|
4004
|
-
E("div", $n, [E("label", er,
|
|
4007
|
+
E("div", $n, [E("label", er, S(b(a).mediaLibrary.fileName), 1), i(E("input", {
|
|
4005
4008
|
"onUpdate:modelValue": n[0] ||= (e) => D.value = e,
|
|
4006
4009
|
type: "text",
|
|
4007
4010
|
class: "tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:outline-none",
|
|
@@ -4011,8 +4014,8 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4011
4014
|
color: "var(--tpl-text)"
|
|
4012
4015
|
},
|
|
4013
4016
|
autofocus: !ce.value
|
|
4014
|
-
}, null, 8, tr), [[
|
|
4015
|
-
b(m)(e.item.mime_type) ? (c(), v("div", nr, [E("label", rr,
|
|
4017
|
+
}, null, 8, tr), [[T, D.value]])]),
|
|
4018
|
+
b(m)(e.item.mime_type) ? (c(), v("div", nr, [E("label", rr, S(b(a).mediaLibrary.altText), 1), i(E("input", {
|
|
4016
4019
|
"onUpdate:modelValue": n[1] ||= (e) => O.value = e,
|
|
4017
4020
|
type: "text",
|
|
4018
4021
|
class: "tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:outline-none",
|
|
@@ -4022,7 +4025,7 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4022
4025
|
color: "var(--tpl-text)"
|
|
4023
4026
|
},
|
|
4024
4027
|
placeholder: b(a).mediaLibrary.altTextPlaceholder
|
|
4025
|
-
}, null, 8, ir), [[
|
|
4028
|
+
}, null, 8, ir), [[T, O.value]])])) : y("", !0)
|
|
4026
4029
|
]),
|
|
4027
4030
|
E("div", ar, [E("button", {
|
|
4028
4031
|
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",
|
|
@@ -4032,12 +4035,12 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4032
4035
|
"background-color": "var(--tpl-bg)"
|
|
4033
4036
|
},
|
|
4034
4037
|
onClick: n[2] ||= (e) => r("close")
|
|
4035
|
-
},
|
|
4038
|
+
}, S(b(a).mediaLibrary.cancel), 1), E("button", {
|
|
4036
4039
|
class: "tpl:cursor-pointer tpl:rounded-md tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-white tpl:transition-all tpl:duration-150 tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50",
|
|
4037
4040
|
style: { background: "linear-gradient(\n 135deg,\n var(--tpl-primary),\n var(--tpl-primary-hover)\n )" },
|
|
4038
4041
|
disabled: I.value,
|
|
4039
4042
|
onClick: he
|
|
4040
|
-
},
|
|
4043
|
+
}, S(I.value ? b(a).mediaLibrary.saving : b(a).mediaLibrary.saveChanges), 9, or)])
|
|
4041
4044
|
], 2)], 40, On)) : y("", !0)]),
|
|
4042
4045
|
_: 1
|
|
4043
4046
|
})], 8, ["to"]));
|
|
@@ -4065,7 +4068,7 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4065
4068
|
"deleteFolder"
|
|
4066
4069
|
],
|
|
4067
4070
|
setup(e, { emit: t }) {
|
|
4068
|
-
let n = e, r = t, { t: o } = z(), s = p(!1), l = p(!1), d = p(""), f = p(!1), g = p(""),
|
|
4071
|
+
let n = e, r = t, { t: o } = z(), s = p(!1), l = p(!1), d = p(""), f = p(!1), g = p(""), w = _(() => (n.folder.children?.length ?? 0) > 0), D = _(() => n.depth < 4), O = _(() => n.currentFolderId === n.folder.id), ee = _(() => !n.currentFolderId || !n.folder.children ? !1 : M(n.folder.children, n.currentFolderId)), j = _(() => s.value || ee.value);
|
|
4069
4072
|
function M(e, t) {
|
|
4070
4073
|
for (let n of e) if (n.id === t || n.children && M(n.children, t)) return !0;
|
|
4071
4074
|
return !1;
|
|
@@ -4096,29 +4099,29 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4096
4099
|
let s = a("MediaFolderTreeNode", !0);
|
|
4097
4100
|
return c(), v("div", null, [E("div", {
|
|
4098
4101
|
class: "tpl:group tpl:flex tpl:w-full tpl:items-center tpl:gap-1 tpl:py-1.5 tpl:pr-2 tpl:text-left tpl:text-xs tpl:transition-all tpl:duration-150",
|
|
4099
|
-
style:
|
|
4102
|
+
style: h({
|
|
4100
4103
|
paddingLeft: `${e.depth * 16 + 8}px`,
|
|
4101
4104
|
backgroundColor: O.value ? "var(--tpl-bg-active)" : "transparent",
|
|
4102
4105
|
color: O.value ? "var(--tpl-primary)" : "var(--tpl-text)"
|
|
4103
4106
|
})
|
|
4104
4107
|
}, [
|
|
4105
|
-
|
|
4108
|
+
w.value || f.value ? (c(), v("button", {
|
|
4106
4109
|
key: 0,
|
|
4107
4110
|
class: "tpl:flex tpl:size-4 tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded tpl:transition-colors",
|
|
4108
4111
|
onClick: x(te, ["stop"])
|
|
4109
|
-
}, [N(b(
|
|
4110
|
-
class:
|
|
4112
|
+
}, [N(b(fe), {
|
|
4113
|
+
class: k(["tpl:transition-transform tpl:duration-150", { "tpl:rotate-90": j.value }]),
|
|
4111
4114
|
size: 10,
|
|
4112
4115
|
"stroke-width": 2
|
|
4113
4116
|
}, null, 8, ["class"])])) : (c(), v("span", cr)),
|
|
4114
4117
|
E("button", {
|
|
4115
4118
|
class: "tpl:flex tpl:min-w-0 tpl:flex-1 tpl:items-center tpl:gap-1.5",
|
|
4116
4119
|
onClick: n[0] ||= (t) => r("navigate", e.folder.id)
|
|
4117
|
-
}, [N(b(
|
|
4120
|
+
}, [N(b(Se), {
|
|
4118
4121
|
class: "tpl:shrink-0",
|
|
4119
4122
|
size: 14,
|
|
4120
4123
|
"stroke-width": 1.5
|
|
4121
|
-
}), l.value ? y("", !0) : (c(), v("span", lr,
|
|
4124
|
+
}), l.value ? y("", !0) : (c(), v("span", lr, S(e.folder.name), 1))]),
|
|
4122
4125
|
l.value ? i((c(), v("input", {
|
|
4123
4126
|
key: 2,
|
|
4124
4127
|
"onUpdate:modelValue": n[1] ||= (e) => d.value = e,
|
|
@@ -4133,14 +4136,14 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4133
4136
|
onKeydown: [m(re, ["enter"]), m(ie, ["escape"])],
|
|
4134
4137
|
onBlur: re,
|
|
4135
4138
|
onClick: n[2] ||= x(() => {}, ["stop"])
|
|
4136
|
-
}, null, 544)), [[
|
|
4139
|
+
}, null, 544)), [[T, d.value]]) : y("", !0),
|
|
4137
4140
|
l.value ? y("", !0) : (c(), v("span", ur, [
|
|
4138
4141
|
D.value ? (c(), v("button", {
|
|
4139
4142
|
key: 0,
|
|
4140
4143
|
class: "tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded tpl:transition-colors",
|
|
4141
4144
|
title: b(o).mediaLibrary.addSubfolder,
|
|
4142
4145
|
onClick: x(ae, ["stop"])
|
|
4143
|
-
}, [N(b(
|
|
4146
|
+
}, [N(b(pe), {
|
|
4144
4147
|
size: 12,
|
|
4145
4148
|
"stroke-width": 2
|
|
4146
4149
|
})], 8, dr)) : y("", !0),
|
|
@@ -4148,7 +4151,7 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4148
4151
|
class: "tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded tpl:transition-colors",
|
|
4149
4152
|
title: b(o).mediaLibrary.renameFolder,
|
|
4150
4153
|
onClick: x(ne, ["stop"])
|
|
4151
|
-
}, [N(b(
|
|
4154
|
+
}, [N(b(le), {
|
|
4152
4155
|
size: 12,
|
|
4153
4156
|
"stroke-width": 2
|
|
4154
4157
|
})], 8, fr),
|
|
@@ -4161,7 +4164,7 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4161
4164
|
style: { color: "var(--tpl-danger)" }
|
|
4162
4165
|
})])
|
|
4163
4166
|
]))
|
|
4164
|
-
], 4), j.value ? (c(), v("div", pr, [(c(!0), v(A, null, u(e.folder.children, (t) => (c(),
|
|
4167
|
+
], 4), j.value ? (c(), v("div", pr, [(c(!0), v(A, null, u(e.folder.children, (t) => (c(), C(s, {
|
|
4165
4168
|
key: t.id,
|
|
4166
4169
|
folder: t,
|
|
4167
4170
|
"current-folder-id": e.currentFolderId,
|
|
@@ -4176,7 +4179,7 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4176
4179
|
"depth"
|
|
4177
4180
|
]))), 128)), f.value ? (c(), v("div", {
|
|
4178
4181
|
key: 0,
|
|
4179
|
-
style:
|
|
4182
|
+
style: h({ paddingLeft: `${(e.depth + 1) * 16 + 8}px` }),
|
|
4180
4183
|
class: "tpl:py-1.5 tpl:pr-2"
|
|
4181
4184
|
}, [i(E("input", {
|
|
4182
4185
|
"onUpdate:modelValue": n[8] ||= (e) => g.value = e,
|
|
@@ -4191,7 +4194,7 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4191
4194
|
autofocus: "",
|
|
4192
4195
|
onKeydown: [m(P, ["enter"]), m(F, ["escape"])],
|
|
4193
4196
|
onBlur: P
|
|
4194
|
-
}, null, 40, mr), [[
|
|
4197
|
+
}, null, 40, mr), [[T, g.value]])], 4)) : y("", !0)])) : y("", !0)]);
|
|
4195
4198
|
};
|
|
4196
4199
|
}
|
|
4197
4200
|
}), gr = { class: "tpl:flex tpl:h-full tpl:flex-col tpl:overflow-y-auto" }, _r = {
|
|
@@ -4226,16 +4229,16 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4226
4229
|
return (t, f) => (c(), v("div", gr, [
|
|
4227
4230
|
E("button", {
|
|
4228
4231
|
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:font-medium tpl:transition-all tpl:duration-150",
|
|
4229
|
-
style:
|
|
4232
|
+
style: h({
|
|
4230
4233
|
backgroundColor: e.viewMode === "files" && e.currentFolderId === null ? "var(--tpl-bg-active)" : "transparent",
|
|
4231
4234
|
color: e.viewMode === "files" && e.currentFolderId === null ? "var(--tpl-primary)" : "var(--tpl-text)"
|
|
4232
4235
|
}),
|
|
4233
4236
|
onClick: f[0] ||= (e) => n("navigate", null)
|
|
4234
|
-
}, [N(b(
|
|
4237
|
+
}, [N(b(he), {
|
|
4235
4238
|
size: 14,
|
|
4236
4239
|
"stroke-width": 1.5
|
|
4237
|
-
}), j(" " +
|
|
4238
|
-
(c(!0), v(A, null, u(e.folders, (t) => (c(),
|
|
4240
|
+
}), j(" " + S(b(r).mediaLibrary.allFiles), 1)], 4),
|
|
4241
|
+
(c(!0), v(A, null, u(e.folders, (t) => (c(), C(hr, {
|
|
4239
4242
|
key: t.id,
|
|
4240
4243
|
folder: t,
|
|
4241
4244
|
"current-folder-id": e.currentFolderId,
|
|
@@ -4258,30 +4261,30 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4258
4261
|
autofocus: "",
|
|
4259
4262
|
onKeydown: [m(l, ["enter"]), m(d, ["escape"])],
|
|
4260
4263
|
onBlur: l
|
|
4261
|
-
}, null, 40, vr), [[
|
|
4264
|
+
}, null, 40, vr), [[T, o.value]])])) : y("", !0),
|
|
4262
4265
|
a.value ? y("", !0) : (c(), v("button", {
|
|
4263
4266
|
key: 1,
|
|
4264
4267
|
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",
|
|
4265
4268
|
style: { color: "var(--tpl-text-muted)" },
|
|
4266
4269
|
onClick: s
|
|
4267
|
-
}, [N(b(
|
|
4270
|
+
}, [N(b(pe), {
|
|
4268
4271
|
size: 14,
|
|
4269
4272
|
"stroke-width": 1.5
|
|
4270
|
-
}), j(" " +
|
|
4273
|
+
}), j(" " + S(b(r).mediaLibrary.newFolder), 1)])),
|
|
4271
4274
|
f[7] ||= E("div", { class: "tpl:flex-1" }, null, -1),
|
|
4272
4275
|
e.hasFrequentlyUsed ? (c(), v("button", {
|
|
4273
4276
|
key: 2,
|
|
4274
4277
|
class: "tpl:flex tpl:w-full tpl:items-center tpl:gap-2 tpl:border-t tpl:px-3 tpl:py-2 tpl:text-left tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
|
|
4275
|
-
style:
|
|
4278
|
+
style: h({
|
|
4276
4279
|
borderColor: "var(--tpl-border)",
|
|
4277
4280
|
backgroundColor: e.viewMode === "frequently-used" ? "var(--tpl-bg-active)" : "transparent",
|
|
4278
4281
|
color: e.viewMode === "frequently-used" ? "var(--tpl-primary)" : "var(--tpl-text)"
|
|
4279
4282
|
}),
|
|
4280
4283
|
onClick: f[6] ||= (e) => n("showFrequentlyUsed")
|
|
4281
|
-
}, [N(b(
|
|
4284
|
+
}, [N(b(I), {
|
|
4282
4285
|
size: 14,
|
|
4283
4286
|
"stroke-width": 1.5
|
|
4284
|
-
}), j(" " +
|
|
4287
|
+
}), j(" " + S(b(r).mediaLibrary.frequentlyUsed), 1)], 4)) : y("", !0)
|
|
4285
4288
|
]));
|
|
4286
4289
|
}
|
|
4287
4290
|
}), br = { class: "tpl:flex tpl:aspect-square tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2" }, xr = /* @__PURE__ */ M({
|
|
@@ -4393,7 +4396,7 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4393
4396
|
fill: "none",
|
|
4394
4397
|
stroke: "currentColor",
|
|
4395
4398
|
"stroke-width": "1.5",
|
|
4396
|
-
style:
|
|
4399
|
+
style: h({ color: i.value.color })
|
|
4397
4400
|
}, [...t[0] ||= [
|
|
4398
4401
|
E("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }, null, -1),
|
|
4399
4402
|
E("polyline", { points: "14 2 14 8 20 8" }, null, -1),
|
|
@@ -4417,7 +4420,7 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4417
4420
|
fill: "none",
|
|
4418
4421
|
stroke: "currentColor",
|
|
4419
4422
|
"stroke-width": "1.5",
|
|
4420
|
-
style:
|
|
4423
|
+
style: h({ color: i.value.color })
|
|
4421
4424
|
}, [...t[1] ||= [E("rect", {
|
|
4422
4425
|
x: "2",
|
|
4423
4426
|
y: "4",
|
|
@@ -4436,7 +4439,7 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4436
4439
|
fill: "none",
|
|
4437
4440
|
stroke: "currentColor",
|
|
4438
4441
|
"stroke-width": "1.5",
|
|
4439
|
-
style:
|
|
4442
|
+
style: h({ color: i.value.color })
|
|
4440
4443
|
}, [...t[2] ||= [
|
|
4441
4444
|
E("path", { d: "M9 18V5l12-2v13" }, null, -1),
|
|
4442
4445
|
E("circle", {
|
|
@@ -4451,8 +4454,8 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4451
4454
|
}, null, -1)
|
|
4452
4455
|
]], 4)), E("span", {
|
|
4453
4456
|
class: "tpl:text-xs tpl:font-bold tpl:tracking-wider",
|
|
4454
|
-
style:
|
|
4455
|
-
},
|
|
4457
|
+
style: h({ color: i.value.color })
|
|
4458
|
+
}, S(i.value.label), 5)]));
|
|
4456
4459
|
}
|
|
4457
4460
|
}), Sr = { class: "tpl:p-4" }, Cr = {
|
|
4458
4461
|
key: 1,
|
|
@@ -4537,20 +4540,20 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4537
4540
|
return (t, n) => (c(), v("div", Sr, [
|
|
4538
4541
|
e.isLoading && e.items.length === 0 ? (c(), v("div", {
|
|
4539
4542
|
key: 0,
|
|
4540
|
-
class:
|
|
4543
|
+
class: k(e.layout === "list" ? "tpl:flex tpl:flex-col tpl:gap-1" : "tpl:grid tpl:grid-cols-4 tpl:gap-3")
|
|
4541
4544
|
}, [(c(), v(A, null, u(8, (t) => E("div", {
|
|
4542
4545
|
key: t,
|
|
4543
|
-
class:
|
|
4546
|
+
class: k(["tpl-pulse tpl:rounded-lg", e.layout === "list" ? "tpl:h-12" : "tpl:aspect-square"]),
|
|
4544
4547
|
style: { "background-color": "var(--tpl-bg-hover)" }
|
|
4545
|
-
}, null, 2)), 64))], 2)) : e.items.length === 0 ? (c(), v("div", Cr, [N(b(
|
|
4548
|
+
}, null, 2)), 64))], 2)) : e.items.length === 0 ? (c(), v("div", Cr, [N(b(he), {
|
|
4546
4549
|
class: "tpl:mb-3",
|
|
4547
4550
|
size: 40,
|
|
4548
4551
|
"stroke-width": 1,
|
|
4549
4552
|
style: { color: "var(--tpl-text-dim)" }
|
|
4550
|
-
}), E("p", wr,
|
|
4553
|
+
}), E("p", wr, S(b(l).mediaLibrary.noFiles), 1)])) : e.layout === "list" ? (c(), v("div", Lr, [(c(!0), v(A, null, u(e.items, (t) => (c(), v("div", {
|
|
4551
4554
|
key: t.id,
|
|
4552
|
-
class:
|
|
4553
|
-
style:
|
|
4555
|
+
class: k(["tpl-media-list-item tpl:group tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-3 tpl:rounded-lg tpl:px-3 tpl:py-2 tpl:transition-all tpl:duration-150", [!o(t) && !e.selectedIds.has(t.id) ? "tpl:opacity-60" : ""]]),
|
|
4556
|
+
style: h({ backgroundColor: e.selectedIds.has(t.id) ? "var(--tpl-bg-hover)" : "transparent" }),
|
|
4554
4557
|
onClick: (e) => s(t)
|
|
4555
4558
|
}, [
|
|
4556
4559
|
E("div", zr, [b(a)(t.mime_type) ? (c(), v("img", {
|
|
@@ -4560,13 +4563,13 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4560
4563
|
class: "tpl:size-full tpl:object-cover",
|
|
4561
4564
|
loading: "lazy"
|
|
4562
4565
|
}, null, 8, Br)) : (c(), v("div", Vr, [N(xr, { "mime-type": t.mime_type }, null, 8, ["mime-type"])]))]),
|
|
4563
|
-
E("div", Hr, [E("p", Ur,
|
|
4566
|
+
E("div", Hr, [E("p", Ur, S(t.filename), 1), E("p", Wr, [j(S(f(t.size)) + " · " + S(m(t.created_at)) + " ", 1), b(a)(t.mime_type) && t.width && t.height ? (c(), v(A, { key: 0 }, [j(" · " + S(t.width) + "×" + S(t.height), 1)], 64)) : y("", !0)])]),
|
|
4564
4567
|
E("div", Gr, [E("button", {
|
|
4565
4568
|
class: "tpl:flex tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded",
|
|
4566
4569
|
style: { color: "var(--tpl-text-muted)" },
|
|
4567
4570
|
title: b(l).mediaLibrary.editFile,
|
|
4568
4571
|
onClick: x((e) => r("edit", t), ["stop"])
|
|
4569
|
-
}, [N(b(
|
|
4572
|
+
}, [N(b(le), {
|
|
4570
4573
|
size: 12,
|
|
4571
4574
|
"stroke-width": 2
|
|
4572
4575
|
})], 8, Kr), E("button", {
|
|
@@ -4574,22 +4577,22 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4574
4577
|
style: { color: "var(--tpl-text-muted)" },
|
|
4575
4578
|
title: b(l).mediaLibrary.replaceFile,
|
|
4576
4579
|
onClick: x((e) => r("replace", t), ["stop"])
|
|
4577
|
-
}, [N(b(
|
|
4580
|
+
}, [N(b(Ce), {
|
|
4578
4581
|
size: 12,
|
|
4579
4582
|
"stroke-width": 2
|
|
4580
4583
|
})], 8, qr)]),
|
|
4581
|
-
e.selectedIds.has(t.id) ? (c(), v("div", Jr, [N(b(
|
|
4584
|
+
e.selectedIds.has(t.id) ? (c(), v("div", Jr, [N(b(ue), {
|
|
4582
4585
|
size: 12,
|
|
4583
4586
|
"stroke-width": 3
|
|
4584
4587
|
})])) : y("", !0)
|
|
4585
4588
|
], 14, Rr))), 128))])) : (c(), v("div", Tr, [(c(!0), v(A, null, u(e.items, (t) => (c(), v("div", {
|
|
4586
4589
|
key: t.id,
|
|
4587
|
-
class:
|
|
4590
|
+
class: k(["tpl-media-item tpl:group tpl:relative tpl:overflow-hidden tpl:rounded-lg tpl:border-2 tpl:transition-all tpl:duration-150", [
|
|
4588
4591
|
"tpl:cursor-pointer",
|
|
4589
4592
|
!o(t) && !e.selectedIds.has(t.id) ? "tpl:opacity-60" : "",
|
|
4590
4593
|
e.selectedIds.has(t.id) ? "tpl-media-item--selected" : ""
|
|
4591
4594
|
]]),
|
|
4592
|
-
style:
|
|
4595
|
+
style: h({
|
|
4593
4596
|
borderColor: e.selectedIds.has(t.id) ? "var(--tpl-primary)" : "transparent",
|
|
4594
4597
|
backgroundColor: !o(t) && !e.selectedIds.has(t.id) ? "var(--tpl-bg)" : "var(--tpl-bg-hover)"
|
|
4595
4598
|
}),
|
|
@@ -4601,17 +4604,17 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4601
4604
|
alt: t.filename,
|
|
4602
4605
|
class: "tpl:size-full tpl:object-cover",
|
|
4603
4606
|
loading: "lazy"
|
|
4604
|
-
}, null, 8, Or)) : (c(),
|
|
4607
|
+
}, null, 8, Or)) : (c(), C(xr, {
|
|
4605
4608
|
key: 1,
|
|
4606
4609
|
"mime-type": t.mime_type
|
|
4607
4610
|
}, null, 8, ["mime-type"]))]),
|
|
4608
|
-
E("div", kr, [E("p", Ar,
|
|
4611
|
+
E("div", kr, [E("p", Ar, S(t.filename), 1), E("p", jr, [E("span", null, S(f(t.size)), 1), b(a)(t.mime_type) && t.width && t.height ? (c(), v("span", Mr, S(t.width) + "×" + S(t.height), 1)) : y("", !0)])]),
|
|
4609
4612
|
E("div", Nr, [E("button", {
|
|
4610
4613
|
class: "tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-white",
|
|
4611
4614
|
style: { "background-color": "rgba(0, 0, 0, 0.6)" },
|
|
4612
4615
|
title: b(l).mediaLibrary.editFile,
|
|
4613
4616
|
onClick: x((e) => r("edit", t), ["stop"])
|
|
4614
|
-
}, [N(b(
|
|
4617
|
+
}, [N(b(le), {
|
|
4615
4618
|
size: 11,
|
|
4616
4619
|
"stroke-width": 2
|
|
4617
4620
|
})], 8, Pr), E("button", {
|
|
@@ -4619,11 +4622,11 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4619
4622
|
style: { "background-color": "rgba(0, 0, 0, 0.6)" },
|
|
4620
4623
|
title: b(l).mediaLibrary.replaceFile,
|
|
4621
4624
|
onClick: x((e) => r("replace", t), ["stop"])
|
|
4622
|
-
}, [N(b(
|
|
4625
|
+
}, [N(b(Ce), {
|
|
4623
4626
|
size: 11,
|
|
4624
4627
|
"stroke-width": 2
|
|
4625
4628
|
})], 8, Fr)]),
|
|
4626
|
-
e.selectedIds.has(t.id) ? (c(), v("div", Ir, [N(b(
|
|
4629
|
+
e.selectedIds.has(t.id) ? (c(), v("div", Ir, [N(b(ue), {
|
|
4627
4630
|
size: 12,
|
|
4628
4631
|
"stroke-width": 3
|
|
4629
4632
|
})])) : y("", !0)
|
|
@@ -4633,7 +4636,7 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4633
4636
|
ref: d,
|
|
4634
4637
|
class: "tpl:h-4"
|
|
4635
4638
|
}, null, 512),
|
|
4636
|
-
e.isLoading && e.items.length > 0 ? (c(), v("div", Yr, [N(b(
|
|
4639
|
+
e.isLoading && e.items.length > 0 ? (c(), v("div", Yr, [N(b(ye), {
|
|
4637
4640
|
class: "tpl-spinner",
|
|
4638
4641
|
size: 20,
|
|
4639
4642
|
"stroke-width": 2,
|
|
@@ -4674,10 +4677,10 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4674
4677
|
function m() {
|
|
4675
4678
|
n.isImporting || r("close");
|
|
4676
4679
|
}
|
|
4677
|
-
function
|
|
4680
|
+
function h(e) {
|
|
4678
4681
|
e.key === "Enter" && (e.preventDefault(), u()), e.key === "Escape" && m();
|
|
4679
4682
|
}
|
|
4680
|
-
return (t, n) => (c(),
|
|
4683
|
+
return (t, n) => (c(), C(g, { to: b(s) || "body" }, [N(w, {
|
|
4681
4684
|
"enter-active-class": "tpl:transition tpl:ease-out tpl:duration-150",
|
|
4682
4685
|
"enter-from-class": "tpl:opacity-0",
|
|
4683
4686
|
"enter-to-class": "tpl:opacity-100",
|
|
@@ -4691,9 +4694,9 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4691
4694
|
class: "tpl tpl:fixed tpl:inset-0 tpl:z-[10000] tpl:flex tpl:items-center tpl:justify-center",
|
|
4692
4695
|
style: { "background-color": "var(--tpl-overlay)" },
|
|
4693
4696
|
onClick: x(m, ["self"]),
|
|
4694
|
-
onKeydown:
|
|
4697
|
+
onKeydown: h
|
|
4695
4698
|
}, [E("div", Qr, [
|
|
4696
|
-
E("h3", $r,
|
|
4699
|
+
E("h3", $r, S(b(a).mediaLibrary.importFromUrl), 1),
|
|
4697
4700
|
E("div", ei, [i(E("input", {
|
|
4698
4701
|
"onUpdate:modelValue": n[0] ||= (e) => l.value = e,
|
|
4699
4702
|
type: "url",
|
|
@@ -4706,10 +4709,10 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4706
4709
|
placeholder: b(a).mediaLibrary.importUrlPlaceholder,
|
|
4707
4710
|
disabled: e.isImporting,
|
|
4708
4711
|
autofocus: ""
|
|
4709
|
-
}, null, 8, ti), [[
|
|
4710
|
-
e.error ? (c(), v("p", ni,
|
|
4712
|
+
}, null, 8, ti), [[T, l.value]])]),
|
|
4713
|
+
e.error ? (c(), v("p", ni, S(e.error), 1)) : y("", !0),
|
|
4711
4714
|
E("div", ri, [E("button", {
|
|
4712
|
-
class:
|
|
4715
|
+
class: k(["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", { "tpl:cursor-not-allowed tpl:opacity-50": e.isImporting }]),
|
|
4713
4716
|
style: {
|
|
4714
4717
|
"border-color": "var(--tpl-border)",
|
|
4715
4718
|
color: "var(--tpl-text)",
|
|
@@ -4717,16 +4720,16 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4717
4720
|
},
|
|
4718
4721
|
disabled: e.isImporting,
|
|
4719
4722
|
onClick: m
|
|
4720
|
-
},
|
|
4723
|
+
}, S(b(a).mediaLibrary.cancel), 11, ii), E("button", {
|
|
4721
4724
|
class: "tpl:cursor-pointer tpl:rounded-md tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-white tpl:transition-all tpl:duration-150 tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50",
|
|
4722
4725
|
style: { background: "linear-gradient(\n 135deg,\n var(--tpl-primary),\n var(--tpl-primary-hover)\n )" },
|
|
4723
4726
|
disabled: !l.value.trim() || e.isImporting,
|
|
4724
4727
|
onClick: u
|
|
4725
|
-
}, [e.isImporting ? (c(), v("span", oi, [N(b(
|
|
4728
|
+
}, [e.isImporting ? (c(), v("span", oi, [N(b(ye), {
|
|
4726
4729
|
class: "tpl:animate-spin",
|
|
4727
4730
|
size: 12,
|
|
4728
4731
|
"stroke-width": 2
|
|
4729
|
-
}), j(" " +
|
|
4732
|
+
}), j(" " + S(b(a).mediaLibrary.importing), 1)])) : (c(), v("span", si, S(b(a).mediaLibrary.import), 1))], 8, ai)])
|
|
4730
4733
|
])], 40, Zr)) : y("", !0)]),
|
|
4731
4734
|
_: 1
|
|
4732
4735
|
})], 8, ["to"]));
|
|
@@ -4768,14 +4771,14 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4768
4771
|
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",
|
|
4769
4772
|
style: { color: "var(--tpl-text)" },
|
|
4770
4773
|
onClick: o[0] ||= (e) => n("select", null)
|
|
4771
|
-
}, [N(b(
|
|
4774
|
+
}, [N(b(he), {
|
|
4772
4775
|
class: "tpl:shrink-0",
|
|
4773
4776
|
size: 14,
|
|
4774
4777
|
"stroke-width": 1.5
|
|
4775
|
-
}), j(" " +
|
|
4778
|
+
}), j(" " + S(b(r).mediaLibrary.moveToRoot), 1)])), (c(!0), v(A, null, u(a(e.folders), (t) => (c(), v("button", {
|
|
4776
4779
|
key: t.id,
|
|
4777
4780
|
class: "tpl:flex tpl:w-full tpl:items-center tpl:gap-1.5 tpl:py-1.5 tpl:pr-3 tpl:text-left tpl:text-xs tpl:transition-colors tpl:duration-100",
|
|
4778
|
-
style:
|
|
4781
|
+
style: h({
|
|
4779
4782
|
paddingLeft: `${t.depth * 16 + 12}px`,
|
|
4780
4783
|
color: t.id === e.currentFolderId ? "var(--tpl-text-dim)" : "var(--tpl-text)",
|
|
4781
4784
|
opacity: t.id === e.currentFolderId ? .5 : 1
|
|
@@ -4783,13 +4786,13 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4783
4786
|
disabled: t.id === e.currentFolderId,
|
|
4784
4787
|
onClick: (e) => n("select", t.id)
|
|
4785
4788
|
}, [
|
|
4786
|
-
N(b(
|
|
4789
|
+
N(b(Se), {
|
|
4787
4790
|
class: "tpl:shrink-0",
|
|
4788
4791
|
size: 14,
|
|
4789
4792
|
"stroke-width": 1.5
|
|
4790
4793
|
}),
|
|
4791
|
-
E("span", di,
|
|
4792
|
-
t.id === e.currentFolderId ? (c(), v("span", fi,
|
|
4794
|
+
E("span", di, S(t.name), 1),
|
|
4795
|
+
t.id === e.currentFolderId ? (c(), v("span", fi, S(b(r).mediaLibrary.currentFolder), 1)) : y("", !0)
|
|
4793
4796
|
], 12, ui))), 128))])], 512));
|
|
4794
4797
|
}
|
|
4795
4798
|
}), mi = { class: "tpl:flex tpl:items-center tpl:gap-3" }, hi = ["src", "alt"], gi = {
|
|
@@ -4866,10 +4869,10 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4866
4869
|
let e = f(n.folders, n.item.folder_id);
|
|
4867
4870
|
return e ? e.join("/") : null;
|
|
4868
4871
|
}), m = _(() => a(n.item.mime_type));
|
|
4869
|
-
function
|
|
4872
|
+
function h(e) {
|
|
4870
4873
|
return e < 1024 ? `${e} B` : e < 1048576 ? `${(e / 1024).toFixed(1)} KB` : `${(e / 1048576).toFixed(1)} MB`;
|
|
4871
4874
|
}
|
|
4872
|
-
function
|
|
4875
|
+
function g(e) {
|
|
4873
4876
|
return new Date(e).toLocaleDateString(void 0, {
|
|
4874
4877
|
year: "numeric",
|
|
4875
4878
|
month: "short",
|
|
@@ -4888,27 +4891,27 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4888
4891
|
class: "tpl-preview-icon"
|
|
4889
4892
|
}, null, 8, ["mime-type"])])),
|
|
4890
4893
|
E("div", _i, [
|
|
4891
|
-
E("p", vi,
|
|
4894
|
+
E("p", vi, S(e.item.filename), 1),
|
|
4892
4895
|
E("p", yi, [
|
|
4893
|
-
j(h(
|
|
4894
|
-
m.value && e.item.width && e.item.height ? (c(), v(A, { key: 0 }, [j(" · " +
|
|
4896
|
+
j(S(h(e.item.size)) + " · " + S(g(e.item.created_at)) + " ", 1),
|
|
4897
|
+
m.value && e.item.width && e.item.height ? (c(), v(A, { key: 0 }, [j(" · " + S(e.item.width) + "×" + S(e.item.height) + "px ", 1)], 64)) : y("", !0),
|
|
4895
4898
|
p.value ? (c(), v(A, { key: 1 }, [
|
|
4896
4899
|
n[0] ||= j(" · ", -1),
|
|
4897
|
-
N(b(
|
|
4900
|
+
N(b(Se), {
|
|
4898
4901
|
class: "tpl:mb-px tpl:inline",
|
|
4899
4902
|
size: 9,
|
|
4900
4903
|
"stroke-width": 2
|
|
4901
4904
|
}),
|
|
4902
|
-
j(" " +
|
|
4905
|
+
j(" " + S(p.value), 1)
|
|
4903
4906
|
], 64)) : y("", !0)
|
|
4904
4907
|
]),
|
|
4905
4908
|
m.value ? (c(), v("p", {
|
|
4906
4909
|
key: 0,
|
|
4907
|
-
class:
|
|
4910
|
+
class: k(["tpl:mt-0.5 tpl:truncate tpl:text-[10px] tpl:italic", { "tpl:invisible": !e.item.alt_text }]),
|
|
4908
4911
|
style: { color: "var(--tpl-text-dim)" }
|
|
4909
|
-
},
|
|
4912
|
+
}, S(e.item.alt_text || "\xA0"), 3)) : y("", !0)
|
|
4910
4913
|
]),
|
|
4911
|
-
s.value ? (c(), v("div", bi, [E("label", xi,
|
|
4914
|
+
s.value ? (c(), v("div", bi, [E("label", xi, S(b(i).mediaLibrary.conversionLabel), 1), E("select", {
|
|
4912
4915
|
class: "tpl:mt-0.5 tpl:rounded-md tpl:border tpl:py-1 tpl:pr-6 tpl:pl-2 tpl:text-xs tpl:outline-none",
|
|
4913
4916
|
style: {
|
|
4914
4917
|
"border-color": "var(--tpl-border)",
|
|
@@ -4920,7 +4923,7 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4920
4923
|
}, [(c(!0), v(A, null, u(o.value, (e) => (c(), v("option", {
|
|
4921
4924
|
key: e.value,
|
|
4922
4925
|
value: e.value
|
|
4923
|
-
},
|
|
4926
|
+
}, S(e.label), 9, Ci))), 128))], 40, Si)])) : y("", !0)
|
|
4924
4927
|
]));
|
|
4925
4928
|
}
|
|
4926
4929
|
}), [["__scopeId", "data-v-56be5670"]]), Ti = ["data-tpl-theme"], Ei = {
|
|
@@ -4964,7 +4967,7 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4964
4967
|
if (!n.item) return "";
|
|
4965
4968
|
let e = n.item.filename.split(".");
|
|
4966
4969
|
return e.length > 1 ? e[e.length - 1].toLowerCase() : "";
|
|
4967
|
-
}), m = _(() => u.value ? `.${u.value}` : "*"),
|
|
4970
|
+
}), m = _(() => u.value ? `.${u.value}` : "*"), h = _(() => (n.usageInfo?.template_count ?? 0) > 0);
|
|
4968
4971
|
te(() => n.visible, (e) => {
|
|
4969
4972
|
e || (l.value = null, s.value && (s.value.value = ""));
|
|
4970
4973
|
});
|
|
@@ -4978,7 +4981,7 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4978
4981
|
function O(e) {
|
|
4979
4982
|
e.key === "Escape" && r("close");
|
|
4980
4983
|
}
|
|
4981
|
-
return (t, n) => (c(),
|
|
4984
|
+
return (t, n) => (c(), C(g, { to: b(o) || "body" }, [N(w, {
|
|
4982
4985
|
"enter-active-class": "tpl:transition tpl:ease-out tpl:duration-150",
|
|
4983
4986
|
"enter-from-class": "tpl:opacity-0",
|
|
4984
4987
|
"enter-to-class": "tpl:opacity-100",
|
|
@@ -4994,11 +4997,11 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
4994
4997
|
onClick: n[1] ||= x((e) => r("close"), ["self"]),
|
|
4995
4998
|
onKeydown: O
|
|
4996
4999
|
}, [E("div", Ei, [
|
|
4997
|
-
E("h3", Di,
|
|
4998
|
-
E("p", Oi,
|
|
4999
|
-
|
|
5000
|
-
E("div", Ai, [E("p", ji,
|
|
5001
|
-
E("div", Mi, [E("label", Ni,
|
|
5000
|
+
E("h3", Di, S(b(i).mediaLibrary.replaceWarningTitle), 1),
|
|
5001
|
+
E("p", Oi, S(b(i).mediaLibrary.replaceWarningMessage.replace("{extension}", `.${u.value}`)), 1),
|
|
5002
|
+
h.value ? (c(), v("p", ki, S(b(i).mediaLibrary.replaceWarningUsageNote.replace("{count}", e.usageInfo.template_count.toString())), 1)) : y("", !0),
|
|
5003
|
+
E("div", Ai, [E("p", ji, S(e.item.filename), 1)]),
|
|
5004
|
+
E("div", Mi, [E("label", Ni, S(b(i).mediaLibrary.replaceSelectFile), 1), E("input", {
|
|
5002
5005
|
ref_key: "fileInputRef",
|
|
5003
5006
|
ref: s,
|
|
5004
5007
|
type: "file",
|
|
@@ -5011,7 +5014,7 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
5011
5014
|
},
|
|
5012
5015
|
onChange: T
|
|
5013
5016
|
}, null, 40, Pi)]),
|
|
5014
|
-
e.error ? (c(), v("p", Fi,
|
|
5017
|
+
e.error ? (c(), v("p", Fi, S(e.error), 1)) : y("", !0),
|
|
5015
5018
|
E("div", Ii, [E("button", {
|
|
5016
5019
|
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",
|
|
5017
5020
|
style: {
|
|
@@ -5021,12 +5024,12 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
5021
5024
|
},
|
|
5022
5025
|
disabled: e.isReplacing,
|
|
5023
5026
|
onClick: n[0] ||= (e) => r("close")
|
|
5024
|
-
},
|
|
5027
|
+
}, S(b(i).mediaLibrary.cancel), 9, Li), E("button", {
|
|
5025
5028
|
class: "tpl:cursor-pointer tpl:rounded-md tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-white tpl:transition-all tpl:duration-150 tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50",
|
|
5026
5029
|
style: { background: "linear-gradient(\n 135deg,\n var(--tpl-primary),\n var(--tpl-primary-hover)\n )" },
|
|
5027
5030
|
disabled: !l.value || e.isReplacing,
|
|
5028
5031
|
onClick: D
|
|
5029
|
-
},
|
|
5032
|
+
}, S(e.isReplacing ? b(i).mediaLibrary.replacing : b(i).mediaLibrary.replace), 9, Ri)])
|
|
5030
5033
|
])], 40, Ti)) : y("", !0)]),
|
|
5031
5034
|
_: 1
|
|
5032
5035
|
})], 8, ["to"]));
|
|
@@ -5063,38 +5066,38 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
5063
5066
|
}
|
|
5064
5067
|
let { isOverDropZone: f } = P(l, { onDrop: (e) => {
|
|
5065
5068
|
e?.length && d(e);
|
|
5066
|
-
} }), { open: m, onChange:
|
|
5069
|
+
} }), { open: m, onChange: h } = ae({
|
|
5067
5070
|
accept: o.value,
|
|
5068
5071
|
multiple: !0
|
|
5069
5072
|
});
|
|
5070
|
-
return
|
|
5073
|
+
return h((e) => {
|
|
5071
5074
|
e?.length && d(e);
|
|
5072
5075
|
}), (t, n) => (c(), v("div", {
|
|
5073
5076
|
ref_key: "dropZoneRef",
|
|
5074
5077
|
ref: l,
|
|
5075
|
-
class:
|
|
5078
|
+
class: k(["tpl-upload-zone tpl:flex tpl:cursor-pointer tpl:flex-col tpl:items-center tpl:justify-center tpl:rounded-lg tpl:border-2 tpl:border-dashed tpl:p-5 tpl:text-center tpl:transition-all tpl:duration-150", b(f) ? "tpl-upload-zone-active" : ""]),
|
|
5076
5079
|
style: {
|
|
5077
5080
|
"border-color": "var(--tpl-border-light)",
|
|
5078
5081
|
"background-color": "var(--tpl-bg)"
|
|
5079
5082
|
},
|
|
5080
5083
|
onClick: n[0] ||= (e) => b(m)()
|
|
5081
|
-
}, [e.isUploading ? (c(), v("div", Bi, [N(b(
|
|
5084
|
+
}, [e.isUploading ? (c(), v("div", Bi, [N(b(ye), {
|
|
5082
5085
|
class: "tpl-spinner",
|
|
5083
5086
|
size: 20,
|
|
5084
5087
|
"stroke-width": 2,
|
|
5085
5088
|
style: { color: "var(--tpl-primary)" }
|
|
5086
|
-
}), E("span", Vi,
|
|
5089
|
+
}), E("span", Vi, S(e.uploadProgress && e.uploadProgress.total > 1 ? b(i)(b(r).mediaLibrary.uploadingProgress, {
|
|
5087
5090
|
current: e.uploadProgress.current,
|
|
5088
5091
|
total: e.uploadProgress.total
|
|
5089
5092
|
}) : b(r).mediaLibrary.uploading), 1)])) : (c(), v(A, { key: 1 }, [
|
|
5090
|
-
N(b(
|
|
5093
|
+
N(b(xe), {
|
|
5091
5094
|
class: "tpl:mb-2",
|
|
5092
5095
|
size: 24,
|
|
5093
5096
|
"stroke-width": 1.5,
|
|
5094
5097
|
style: { color: "var(--tpl-text-dim)" }
|
|
5095
5098
|
}),
|
|
5096
|
-
E("p", Hi,
|
|
5097
|
-
E("p", Ui,
|
|
5099
|
+
E("p", Hi, S(b(r).mediaLibrary.dropOrClick), 1),
|
|
5100
|
+
E("p", Ui, S(b(r).mediaLibrary.acceptedFormats), 1)
|
|
5098
5101
|
], 64))], 2));
|
|
5099
5102
|
}
|
|
5100
5103
|
}), Gi = [
|
|
@@ -5130,7 +5133,7 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
5130
5133
|
},
|
|
5131
5134
|
setup(e) {
|
|
5132
5135
|
let t = e, { t: n, format: r } = z(), i = p(!1), a = _(() => t.size ?? 24), o = _(() => Math.max(2, a.value / 8)), s = _(() => (a.value - o.value) / 2), l = _(() => 2 * Math.PI * s.value), u = _(() => t.limitBytes <= 0 ? 0 : Math.min(100, t.usedBytes / t.limitBytes * 100)), d = _(() => l.value - u.value / 100 * l.value), m = _(() => u.value >= 95 ? "var(--tpl-danger)" : u.value >= 75 ? "var(--tpl-warning, #f59e0b)" : "var(--tpl-primary)");
|
|
5133
|
-
function
|
|
5136
|
+
function h(e) {
|
|
5134
5137
|
if (e === 0) return "0 B";
|
|
5135
5138
|
let t = 1024, n = [
|
|
5136
5139
|
"B",
|
|
@@ -5140,10 +5143,10 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
5140
5143
|
], r = Math.floor(Math.log(e) / Math.log(t));
|
|
5141
5144
|
return `${(e / t ** r).toFixed(+(r >= 2))} ${n[r]}`;
|
|
5142
5145
|
}
|
|
5143
|
-
let
|
|
5144
|
-
used:
|
|
5145
|
-
total:
|
|
5146
|
-
remaining:
|
|
5146
|
+
let g = _(() => h(t.usedBytes)), b = _(() => h(t.limitBytes)), x = _(() => Math.max(0, t.limitBytes - t.usedBytes)), C = _(() => h(x.value)), T = _(() => r(n.mediaLibrary.storageTooltip, {
|
|
5147
|
+
used: g.value,
|
|
5148
|
+
total: b.value,
|
|
5149
|
+
remaining: C.value
|
|
5147
5150
|
}));
|
|
5148
5151
|
return (e, t) => (c(), v("div", {
|
|
5149
5152
|
class: "tpl:relative tpl:inline-flex tpl:cursor-help tpl:items-center tpl:justify-center",
|
|
@@ -5172,7 +5175,7 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
5172
5175
|
"stroke-dasharray": l.value,
|
|
5173
5176
|
"stroke-dashoffset": d.value,
|
|
5174
5177
|
class: "tpl:transition-all tpl:duration-300 tpl:ease-out"
|
|
5175
|
-
}, null, 8, qi)], 8, Gi)), N(
|
|
5178
|
+
}, null, 8, qi)], 8, Gi)), N(w, {
|
|
5176
5179
|
"enter-active-class": "tpl:transition tpl:ease-out tpl:duration-150",
|
|
5177
5180
|
"enter-from-class": "tpl:opacity-0 tpl:translate-y-1",
|
|
5178
5181
|
"enter-to-class": "tpl:opacity-100 tpl:translate-y-0",
|
|
@@ -5180,7 +5183,7 @@ var On = ["data-tpl-theme"], kn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, An
|
|
|
5180
5183
|
"leave-from-class": "tpl:opacity-100 tpl:translate-y-0",
|
|
5181
5184
|
"leave-to-class": "tpl:opacity-0 tpl:translate-y-1"
|
|
5182
5185
|
}, {
|
|
5183
|
-
default: f(() => [i.value ? (c(), v("div", Ji, [j(
|
|
5186
|
+
default: f(() => [i.value ? (c(), v("div", Ji, [j(S(T.value) + " ", 1), t[2] ||= E("div", {
|
|
5184
5187
|
class: "tpl:absolute tpl:-top-1 tpl:left-1/2 tpl:size-2 tpl:-translate-x-1/2 tpl:rotate-45",
|
|
5185
5188
|
style: { "background-color": "var(--tpl-text)" }
|
|
5186
5189
|
}, null, -1)])) : y("", !0)]),
|
|
@@ -5377,7 +5380,7 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
5377
5380
|
setup(e, { emit: t }) {
|
|
5378
5381
|
let n = e, r = t, { t: i } = z(), a = d("tplUiTheme"), o = ee(() => n.popoverTarget ?? null);
|
|
5379
5382
|
l(ze, o);
|
|
5380
|
-
let s = d("authManager"), p = d("projectId"), m = _(() => p.value),
|
|
5383
|
+
let s = d("authManager"), p = d("projectId"), m = _(() => p.value), T = d("planConfig"), D = _(() => T.hasFeature("media_folders")), O = _(() => T.hasFeature("import_from_url")), M = _(() => T.config.value?.storage.used_bytes ?? 0), ne = _(() => T.config.value?.storage.limit_bytes ?? 0), { isAcceptedMimeType: ie, availableCategories: ae } = Ne(), P = Oe({
|
|
5381
5384
|
projectId: m.value,
|
|
5382
5385
|
authManager: s
|
|
5383
5386
|
}), F = Xi({
|
|
@@ -5395,7 +5398,7 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
5395
5398
|
function I() {
|
|
5396
5399
|
return P.previewItem.value ? !n.accept?.length || ie(P.previewItem.value.mime_type, n.accept) : !1;
|
|
5397
5400
|
}
|
|
5398
|
-
function
|
|
5401
|
+
function le() {
|
|
5399
5402
|
if (I()) {
|
|
5400
5403
|
let e = P.previewItem.value;
|
|
5401
5404
|
r("select", {
|
|
@@ -5404,7 +5407,7 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
5404
5407
|
}), r("close");
|
|
5405
5408
|
}
|
|
5406
5409
|
}
|
|
5407
|
-
return (t, n) => (c(),
|
|
5410
|
+
return (t, n) => (c(), C(g, { to: e.popoverTarget || "body" }, [N(w, {
|
|
5408
5411
|
"enter-active-class": "tpl:transition tpl:duration-200",
|
|
5409
5412
|
"enter-from-class": "tpl:opacity-0",
|
|
5410
5413
|
"enter-to-class": "tpl:opacity-100",
|
|
@@ -5418,7 +5421,7 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
5418
5421
|
class: "tpl tpl-media-overlay tpl:fixed tpl:inset-0 tpl:z-[9999]",
|
|
5419
5422
|
onClick: n[18] ||= x((e) => r("close"), ["self"])
|
|
5420
5423
|
}, [E("div", Qi, [
|
|
5421
|
-
E("div", $i, [E("h2", ea,
|
|
5424
|
+
E("div", $i, [E("h2", ea, S(b(i).mediaLibrary.title), 1), E("div", ta, [
|
|
5422
5425
|
N(Yi, {
|
|
5423
5426
|
"used-bytes": M.value,
|
|
5424
5427
|
"limit-bytes": ne.value,
|
|
@@ -5435,7 +5438,7 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
5435
5438
|
},
|
|
5436
5439
|
placeholder: b(i).mediaLibrary.searchPlaceholder,
|
|
5437
5440
|
onInput: n[0] ||= (e) => b(F).handleSearchInput(e.target.value)
|
|
5438
|
-
}, null, 40, ra), N(b(
|
|
5441
|
+
}, null, 40, ra), N(b(de), {
|
|
5439
5442
|
class: "tpl:absolute tpl:top-1/2 tpl:left-2.5 tpl:-translate-y-1/2",
|
|
5440
5443
|
size: 13,
|
|
5441
5444
|
"stroke-width": 2,
|
|
@@ -5445,12 +5448,12 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
5445
5448
|
class: "tpl:flex tpl:size-7 tpl:items-center tpl:justify-center tpl:rounded-md tpl:transition-all tpl:duration-150",
|
|
5446
5449
|
style: { color: "var(--tpl-text-muted)" },
|
|
5447
5450
|
onClick: n[1] ||= (e) => r("close")
|
|
5448
|
-
}, [N(b(
|
|
5451
|
+
}, [N(b(be), {
|
|
5449
5452
|
size: 18,
|
|
5450
5453
|
"stroke-width": 2
|
|
5451
5454
|
})])
|
|
5452
5455
|
])]),
|
|
5453
|
-
E("div", ia, [N(
|
|
5456
|
+
E("div", ia, [N(w, {
|
|
5454
5457
|
"enter-active-class": "tpl:transition-all tpl:duration-200 tpl:ease-out",
|
|
5455
5458
|
"enter-from-class": "tpl:-ml-48 tpl:opacity-0",
|
|
5456
5459
|
"enter-to-class": "tpl:ml-0 tpl:opacity-100",
|
|
@@ -5484,18 +5487,18 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
5484
5487
|
D.value ? (c(), v("button", {
|
|
5485
5488
|
key: 0,
|
|
5486
5489
|
class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:transition-all tpl:duration-150",
|
|
5487
|
-
style:
|
|
5490
|
+
style: h({
|
|
5488
5491
|
color: b(F).showSidebar.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
5489
5492
|
backgroundColor: b(F).showSidebar.value ? "var(--tpl-bg)" : "transparent",
|
|
5490
5493
|
border: b(F).showSidebar.value ? "1px solid var(--tpl-border)" : "1px solid transparent"
|
|
5491
5494
|
}),
|
|
5492
5495
|
title: b(F).showSidebar.value ? b(i).mediaLibrary.hideFolders : b(i).mediaLibrary.showFolders,
|
|
5493
5496
|
onClick: n[2] ||= (e) => b(F).showSidebar.value = !b(F).showSidebar.value
|
|
5494
|
-
}, [N(b(
|
|
5497
|
+
}, [N(b(ce), {
|
|
5495
5498
|
size: 16,
|
|
5496
5499
|
"stroke-width": 2
|
|
5497
5500
|
})], 12, la)) : y("", !0),
|
|
5498
|
-
b(P).viewMode.value === "frequently-used" ? (c(), v("span", ua,
|
|
5501
|
+
b(P).viewMode.value === "frequently-used" ? (c(), v("span", ua, S(b(i).mediaLibrary.frequentlyUsed), 1)) : (c(), C(Me, {
|
|
5499
5502
|
key: 2,
|
|
5500
5503
|
folders: b(P).folders.value,
|
|
5501
5504
|
"current-folder-id": b(P).currentFolderId.value,
|
|
@@ -5507,24 +5510,24 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
5507
5510
|
])),
|
|
5508
5511
|
E("div", da, [E("button", {
|
|
5509
5512
|
class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:transition-all tpl:duration-150",
|
|
5510
|
-
style:
|
|
5513
|
+
style: h({
|
|
5511
5514
|
color: b(F).layoutMode.value === "grid" ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
5512
5515
|
backgroundColor: b(F).layoutMode.value === "grid" ? "var(--tpl-bg-elevated)" : "transparent"
|
|
5513
5516
|
}),
|
|
5514
5517
|
title: b(i).mediaLibrary.viewGrid,
|
|
5515
5518
|
onClick: n[3] ||= (e) => b(F).layoutMode.value = "grid"
|
|
5516
|
-
}, [N(b(
|
|
5519
|
+
}, [N(b(ve), {
|
|
5517
5520
|
size: 14,
|
|
5518
5521
|
"stroke-width": 2
|
|
5519
5522
|
})], 12, fa), E("button", {
|
|
5520
5523
|
class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:transition-all tpl:duration-150",
|
|
5521
|
-
style:
|
|
5524
|
+
style: h({
|
|
5522
5525
|
color: b(F).layoutMode.value === "list" ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
5523
5526
|
backgroundColor: b(F).layoutMode.value === "list" ? "var(--tpl-bg-elevated)" : "transparent"
|
|
5524
5527
|
}),
|
|
5525
5528
|
title: b(i).mediaLibrary.viewList,
|
|
5526
5529
|
onClick: n[4] ||= (e) => b(F).layoutMode.value = "list"
|
|
5527
|
-
}, [N(b(
|
|
5530
|
+
}, [N(b(me), {
|
|
5528
5531
|
size: 14,
|
|
5529
5532
|
"stroke-width": 2
|
|
5530
5533
|
})], 12, pa)])
|
|
@@ -5538,10 +5541,10 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
5538
5541
|
},
|
|
5539
5542
|
value: b(P).categoryFilter.value ?? "",
|
|
5540
5543
|
onChange: n[5] ||= (e) => b(P).filterByCategory(e.target.value || null)
|
|
5541
|
-
}, [E("option", ga,
|
|
5544
|
+
}, [E("option", ga, S(b(i).mediaLibrary.filterAll), 1), (c(!0), v(A, null, u(b(ae), (e) => (c(), v("option", {
|
|
5542
5545
|
key: e,
|
|
5543
5546
|
value: e
|
|
5544
|
-
},
|
|
5547
|
+
}, S(b(F).getCategoryLabel(e)), 9, _a))), 128))], 40, ha)) : y("", !0), E("select", {
|
|
5545
5548
|
class: "tpl:rounded-md tpl:border tpl:py-1.5 tpl:pr-7 tpl:pl-2.5 tpl:text-xs tpl:transition-all tpl:duration-150 tpl:outline-none",
|
|
5546
5549
|
style: {
|
|
5547
5550
|
"border-color": "var(--tpl-border)",
|
|
@@ -5551,12 +5554,12 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
5551
5554
|
value: b(P).sortOption.value,
|
|
5552
5555
|
onChange: n[6] ||= (e) => b(P).sortBy(e.target.value)
|
|
5553
5556
|
}, [
|
|
5554
|
-
E("option", ya,
|
|
5555
|
-
E("option", ba,
|
|
5556
|
-
E("option", xa,
|
|
5557
|
-
E("option", Sa,
|
|
5558
|
-
E("option", Ca,
|
|
5559
|
-
E("option", wa,
|
|
5557
|
+
E("option", ya, S(b(i).mediaLibrary.sortNewest), 1),
|
|
5558
|
+
E("option", ba, S(b(i).mediaLibrary.sortOldest), 1),
|
|
5559
|
+
E("option", xa, S(b(i).mediaLibrary.sortNameAsc), 1),
|
|
5560
|
+
E("option", Sa, S(b(i).mediaLibrary.sortNameDesc), 1),
|
|
5561
|
+
E("option", Ca, S(b(i).mediaLibrary.sortSizeAsc), 1),
|
|
5562
|
+
E("option", wa, S(b(i).mediaLibrary.sortSizeDesc), 1)
|
|
5560
5563
|
], 40, va)])]), E("div", Ta, [b(P).viewMode.value === "files" ? (c(), v("div", Ea, [N(Wi, {
|
|
5561
5564
|
"is-uploading": b(P).isUploading.value,
|
|
5562
5565
|
"upload-progress": b(P).uploadProgress.value,
|
|
@@ -5574,10 +5577,10 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
5574
5577
|
"background-color": "var(--tpl-bg)"
|
|
5575
5578
|
},
|
|
5576
5579
|
onClick: n[7] ||= (e) => b(F).showImportUrlModal.value = !0
|
|
5577
|
-
}, [N(b(
|
|
5580
|
+
}, [N(b(ge), {
|
|
5578
5581
|
size: 14,
|
|
5579
5582
|
"stroke-width": 2
|
|
5580
|
-
}), j(" " +
|
|
5583
|
+
}), j(" " + S(b(i).mediaLibrary.importFromUrl), 1)])) : y("", !0)])) : y("", !0), N(Xr, {
|
|
5581
5584
|
items: b(F).displayItems.value,
|
|
5582
5585
|
"selected-ids": b(P).selectedItems.value,
|
|
5583
5586
|
"is-loading": b(P).isLoading.value,
|
|
@@ -5641,7 +5644,7 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
5641
5644
|
"onReplace",
|
|
5642
5645
|
"onClose"
|
|
5643
5646
|
]),
|
|
5644
|
-
N(
|
|
5647
|
+
N(w, {
|
|
5645
5648
|
"enter-active-class": "tpl:transition tpl:ease-out tpl:duration-150",
|
|
5646
5649
|
"enter-from-class": "tpl:opacity-0",
|
|
5647
5650
|
"enter-to-class": "tpl:opacity-100",
|
|
@@ -5659,17 +5662,17 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
5659
5662
|
},
|
|
5660
5663
|
onClick: n[12] ||= x((...e) => b(P).cancelDelete && b(P).cancelDelete(...e), ["self"])
|
|
5661
5664
|
}, [E("div", Da, [
|
|
5662
|
-
E("h3", Oa,
|
|
5665
|
+
E("h3", Oa, S(b(i).mediaLibrary.deleteWarningTitle), 1),
|
|
5663
5666
|
E("p", {
|
|
5664
|
-
class:
|
|
5667
|
+
class: k(["tpl:text-xs", b(F).hasUsedFiles.value ? "tpl:mb-2" : "tpl:mb-4"]),
|
|
5665
5668
|
style: { color: "var(--tpl-text-muted)" }
|
|
5666
|
-
},
|
|
5667
|
-
b(F).hasUsedFiles.value ? (c(), v("p", ka,
|
|
5669
|
+
}, S(b(i).mediaLibrary.deleteWarningMessage), 3),
|
|
5670
|
+
b(F).hasUsedFiles.value ? (c(), v("p", ka, S(b(i).mediaLibrary.deleteWarningUsageNote), 1)) : y("", !0),
|
|
5668
5671
|
b(F).hasUsedFiles.value ? (c(), v("div", Aa, [(c(!0), v(A, null, u(b(P).deleteUsageInfo.value, (e, t) => (c(), v("div", {
|
|
5669
5672
|
key: t,
|
|
5670
5673
|
class: "tpl:text-xs",
|
|
5671
5674
|
style: { color: "var(--tpl-text)" }
|
|
5672
|
-
}, [e.template_count > 0 ? (c(), v(A, { key: 0 }, [E("span", ja,
|
|
5675
|
+
}, [e.template_count > 0 ? (c(), v(A, { key: 0 }, [E("span", ja, S(b(F).displayItems.value.find((e) => e.id === t)?.filename || t), 1), E("span", Ma, " - " + S(b(i).mediaLibrary.usedInTemplates.replace("{count}", e.template_count.toString())), 1)], 64)) : y("", !0)]))), 128))])) : y("", !0),
|
|
5673
5676
|
E("div", Na, [E("button", {
|
|
5674
5677
|
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",
|
|
5675
5678
|
style: {
|
|
@@ -5678,7 +5681,7 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
5678
5681
|
"background-color": "var(--tpl-bg)"
|
|
5679
5682
|
},
|
|
5680
5683
|
onClick: n[10] ||= (...e) => b(P).cancelDelete && b(P).cancelDelete(...e)
|
|
5681
|
-
},
|
|
5684
|
+
}, S(b(i).mediaLibrary.cancel), 1), E("button", {
|
|
5682
5685
|
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",
|
|
5683
5686
|
style: {
|
|
5684
5687
|
"border-color": "var(--tpl-danger)",
|
|
@@ -5686,11 +5689,11 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
5686
5689
|
"background-color": "var(--tpl-danger-light)"
|
|
5687
5690
|
},
|
|
5688
5691
|
onClick: n[11] ||= (...e) => b(P).confirmDelete && b(P).confirmDelete(...e)
|
|
5689
|
-
},
|
|
5692
|
+
}, S(b(F).hasUsedFiles.value ? b(i).mediaLibrary.deleteAnyway : b(i).mediaLibrary.confirmDelete), 1)])
|
|
5690
5693
|
])])) : y("", !0)]),
|
|
5691
5694
|
_: 1
|
|
5692
5695
|
}),
|
|
5693
|
-
E("div", Pa, [E("div", Fa, [b(P).previewItem.value ? (c(),
|
|
5696
|
+
E("div", Pa, [E("div", Fa, [b(P).previewItem.value ? (c(), C(wi, {
|
|
5694
5697
|
key: 0,
|
|
5695
5698
|
"selected-conversion": b(F).selectedConversion.value,
|
|
5696
5699
|
"onUpdate:selectedConversion": n[13] ||= (e) => b(F).selectedConversion.value = e,
|
|
@@ -5703,21 +5706,21 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
5703
5706
|
])) : y("", !0)]), E("div", Ia, [b(P).selectedItems.value.size > 0 ? (c(), v("div", La, [b(P).previewItem.value ? (c(), v("button", {
|
|
5704
5707
|
key: 0,
|
|
5705
5708
|
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",
|
|
5706
|
-
style:
|
|
5709
|
+
style: h({
|
|
5707
5710
|
borderColor: b(F).copied.value ? "var(--tpl-success)" : "var(--tpl-border)",
|
|
5708
5711
|
color: b(F).copied.value ? "var(--tpl-success)" : "var(--tpl-text)",
|
|
5709
5712
|
backgroundColor: "var(--tpl-bg)"
|
|
5710
5713
|
}),
|
|
5711
5714
|
onClick: n[14] ||= (e) => b(F).copy(b(F).selectedUrl.value)
|
|
5712
|
-
}, [b(F).copied.value ? (c(),
|
|
5715
|
+
}, [b(F).copied.value ? (c(), C(b(ue), {
|
|
5713
5716
|
key: 1,
|
|
5714
5717
|
size: 12,
|
|
5715
5718
|
"stroke-width": 2
|
|
5716
|
-
})) : (c(),
|
|
5719
|
+
})) : (c(), C(b(se), {
|
|
5717
5720
|
key: 0,
|
|
5718
5721
|
size: 12,
|
|
5719
5722
|
"stroke-width": 2
|
|
5720
|
-
})), j(" " +
|
|
5723
|
+
})), j(" " + S(b(F).copied.value ? b(i).mediaLibrary.copied : b(i).mediaLibrary.copyUrl), 1)], 4)) : y("", !0), D.value ? (c(), v("div", Ra, [E("button", {
|
|
5721
5724
|
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",
|
|
5722
5725
|
style: {
|
|
5723
5726
|
"border-color": "var(--tpl-border)",
|
|
@@ -5725,7 +5728,7 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
5725
5728
|
"background-color": "var(--tpl-bg)"
|
|
5726
5729
|
},
|
|
5727
5730
|
onClick: n[15] ||= (e) => b(F).showMovePicker.value = !b(F).showMovePicker.value
|
|
5728
|
-
},
|
|
5731
|
+
}, S(b(i).mediaLibrary.moveSelected), 1), b(F).showMovePicker.value ? (c(), C(pi, {
|
|
5729
5732
|
key: 0,
|
|
5730
5733
|
folders: b(P).folders.value,
|
|
5731
5734
|
"current-folder-id": b(P).currentFolderId.value,
|
|
@@ -5744,15 +5747,15 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
5744
5747
|
"background-color": "var(--tpl-danger-light)"
|
|
5745
5748
|
},
|
|
5746
5749
|
onClick: n[17] ||= (...e) => b(F).handleDeleteClick && b(F).handleDeleteClick(...e)
|
|
5747
|
-
},
|
|
5750
|
+
}, S(b(i).mediaLibrary.deleteSelected), 1)) : y("", !0), E("button", {
|
|
5748
5751
|
class: "tpl:cursor-pointer tpl:rounded-md tpl:px-4 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50",
|
|
5749
5752
|
style: {
|
|
5750
5753
|
"background-color": "var(--tpl-primary)",
|
|
5751
5754
|
color: "var(--tpl-bg)"
|
|
5752
5755
|
},
|
|
5753
5756
|
disabled: !I(),
|
|
5754
|
-
onClick:
|
|
5755
|
-
},
|
|
5757
|
+
onClick: le
|
|
5758
|
+
}, S(e.accept?.length ? b(i).mediaLibrary.selectImage : b(i).mediaLibrary.selectFile), 9, Ba)])])])
|
|
5756
5759
|
])], 8, Zi)) : y("", !0)]),
|
|
5757
5760
|
_: 1
|
|
5758
5761
|
})], 8, ["to"]));
|
|
@@ -5842,7 +5845,7 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
5842
5845
|
features: _(() => r.planConfig.features),
|
|
5843
5846
|
fetchConfig: async () => {}
|
|
5844
5847
|
});
|
|
5845
|
-
let s = _(() => r.planConfig.features.media_folders ?? !1), d = _(() => r.planConfig.features.import_from_url ?? !1), m = _(() => r.planConfig.storage.used_bytes ?? 0), g = _(() => r.planConfig.storage.limit_bytes ?? 0), { availableCategories:
|
|
5848
|
+
let s = _(() => r.planConfig.features.media_folders ?? !1), d = _(() => r.planConfig.features.import_from_url ?? !1), m = _(() => r.planConfig.storage.used_bytes ?? 0), g = _(() => r.planConfig.storage.limit_bytes ?? 0), { availableCategories: T } = Ne(), D = Oe({
|
|
5846
5849
|
projectId: r.projectId,
|
|
5847
5850
|
authManager: r.authManager,
|
|
5848
5851
|
onError: r.onError
|
|
@@ -5862,7 +5865,7 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
5862
5865
|
return e(() => {
|
|
5863
5866
|
D.loadItems(), D.loadFrequentlyUsed(), i("ready");
|
|
5864
5867
|
}), (e, n) => (c(), v("div", Ha, [
|
|
5865
|
-
E("div", Ua, [E("h2", Wa,
|
|
5868
|
+
E("div", Ua, [E("h2", Wa, S(a.value.mediaLibrary.title), 1), E("div", Ga, [N(Yi, {
|
|
5866
5869
|
"used-bytes": m.value,
|
|
5867
5870
|
"limit-bytes": g.value,
|
|
5868
5871
|
size: 22
|
|
@@ -5877,13 +5880,13 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
5877
5880
|
},
|
|
5878
5881
|
placeholder: a.value.mediaLibrary.searchPlaceholder,
|
|
5879
5882
|
onInput: n[0] ||= (e) => b(O).handleSearchInput(e.target.value)
|
|
5880
|
-
}, null, 40, qa), N(b(
|
|
5883
|
+
}, null, 40, qa), N(b(de), {
|
|
5881
5884
|
class: "tpl:absolute tpl:top-1/2 tpl:left-2.5 tpl:-translate-y-1/2",
|
|
5882
5885
|
size: 13,
|
|
5883
5886
|
"stroke-width": 2,
|
|
5884
5887
|
style: { color: "var(--tpl-text-dim)" }
|
|
5885
5888
|
})])])]),
|
|
5886
|
-
E("div", Ja, [N(
|
|
5889
|
+
E("div", Ja, [N(w, {
|
|
5887
5890
|
"enter-active-class": "tpl:transition-all tpl:duration-200 tpl:ease-out",
|
|
5888
5891
|
"enter-from-class": "tpl:-ml-48 tpl:opacity-0",
|
|
5889
5892
|
"enter-to-class": "tpl:ml-0 tpl:opacity-100",
|
|
@@ -5917,18 +5920,18 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
5917
5920
|
s.value ? (c(), v("button", {
|
|
5918
5921
|
key: 0,
|
|
5919
5922
|
class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:transition-all tpl:duration-150",
|
|
5920
|
-
style:
|
|
5923
|
+
style: h({
|
|
5921
5924
|
color: b(O).showSidebar.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
5922
5925
|
backgroundColor: b(O).showSidebar.value ? "var(--tpl-bg)" : "transparent",
|
|
5923
5926
|
border: b(O).showSidebar.value ? "1px solid var(--tpl-border)" : "1px solid transparent"
|
|
5924
5927
|
}),
|
|
5925
5928
|
title: b(O).showSidebar.value ? a.value.mediaLibrary.hideFolders : a.value.mediaLibrary.showFolders,
|
|
5926
5929
|
onClick: n[1] ||= (e) => b(O).showSidebar.value = !b(O).showSidebar.value
|
|
5927
|
-
}, [N(b(
|
|
5930
|
+
}, [N(b(ce), {
|
|
5928
5931
|
size: 16,
|
|
5929
5932
|
"stroke-width": 2
|
|
5930
5933
|
})], 12, $a)) : y("", !0),
|
|
5931
|
-
b(D).viewMode.value === "frequently-used" ? (c(), v("span", eo,
|
|
5934
|
+
b(D).viewMode.value === "frequently-used" ? (c(), v("span", eo, S(a.value.mediaLibrary.frequentlyUsed), 1)) : (c(), C(Me, {
|
|
5932
5935
|
key: 2,
|
|
5933
5936
|
folders: b(D).folders.value,
|
|
5934
5937
|
"current-folder-id": b(D).currentFolderId.value,
|
|
@@ -5940,28 +5943,28 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
5940
5943
|
])),
|
|
5941
5944
|
E("div", to, [E("button", {
|
|
5942
5945
|
class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:transition-all tpl:duration-150",
|
|
5943
|
-
style:
|
|
5946
|
+
style: h({
|
|
5944
5947
|
color: b(O).layoutMode.value === "grid" ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
5945
5948
|
backgroundColor: b(O).layoutMode.value === "grid" ? "var(--tpl-bg-elevated)" : "transparent"
|
|
5946
5949
|
}),
|
|
5947
5950
|
title: a.value.mediaLibrary.viewGrid,
|
|
5948
5951
|
onClick: n[2] ||= (e) => b(O).layoutMode.value = "grid"
|
|
5949
|
-
}, [N(b(
|
|
5952
|
+
}, [N(b(ve), {
|
|
5950
5953
|
size: 14,
|
|
5951
5954
|
"stroke-width": 2
|
|
5952
5955
|
})], 12, no), E("button", {
|
|
5953
5956
|
class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:transition-all tpl:duration-150",
|
|
5954
|
-
style:
|
|
5957
|
+
style: h({
|
|
5955
5958
|
color: b(O).layoutMode.value === "list" ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
5956
5959
|
backgroundColor: b(O).layoutMode.value === "list" ? "var(--tpl-bg-elevated)" : "transparent"
|
|
5957
5960
|
}),
|
|
5958
5961
|
title: a.value.mediaLibrary.viewList,
|
|
5959
5962
|
onClick: n[3] ||= (e) => b(O).layoutMode.value = "list"
|
|
5960
|
-
}, [N(b(
|
|
5963
|
+
}, [N(b(me), {
|
|
5961
5964
|
size: 14,
|
|
5962
5965
|
"stroke-width": 2
|
|
5963
5966
|
})], 12, ro)])
|
|
5964
|
-
]), E("div", io, [b(
|
|
5967
|
+
]), E("div", io, [b(T).length > 1 ? (c(), v("select", {
|
|
5965
5968
|
key: 0,
|
|
5966
5969
|
class: "tpl:rounded-md tpl:border tpl:py-1.5 tpl:pr-7 tpl:pl-2.5 tpl:text-xs tpl:transition-all tpl:duration-150 tpl:outline-none",
|
|
5967
5970
|
style: {
|
|
@@ -5971,10 +5974,10 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
5971
5974
|
},
|
|
5972
5975
|
value: b(D).categoryFilter.value ?? "",
|
|
5973
5976
|
onChange: n[4] ||= (e) => b(D).filterByCategory(e.target.value || null)
|
|
5974
|
-
}, [E("option", oo,
|
|
5977
|
+
}, [E("option", oo, S(a.value.mediaLibrary.filterAll), 1), (c(!0), v(A, null, u(b(T), (e) => (c(), v("option", {
|
|
5975
5978
|
key: e,
|
|
5976
5979
|
value: e
|
|
5977
|
-
},
|
|
5980
|
+
}, S(b(O).getCategoryLabel(e)), 9, so))), 128))], 40, ao)) : y("", !0), E("select", {
|
|
5978
5981
|
class: "tpl:rounded-md tpl:border tpl:py-1.5 tpl:pr-7 tpl:pl-2.5 tpl:text-xs tpl:transition-all tpl:duration-150 tpl:outline-none",
|
|
5979
5982
|
style: {
|
|
5980
5983
|
"border-color": "var(--tpl-border)",
|
|
@@ -5984,12 +5987,12 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
5984
5987
|
value: b(D).sortOption.value,
|
|
5985
5988
|
onChange: n[5] ||= (e) => b(D).sortBy(e.target.value)
|
|
5986
5989
|
}, [
|
|
5987
|
-
E("option", lo,
|
|
5988
|
-
E("option", uo,
|
|
5989
|
-
E("option", fo,
|
|
5990
|
-
E("option", po,
|
|
5991
|
-
E("option", mo,
|
|
5992
|
-
E("option", ho,
|
|
5990
|
+
E("option", lo, S(a.value.mediaLibrary.sortNewest), 1),
|
|
5991
|
+
E("option", uo, S(a.value.mediaLibrary.sortOldest), 1),
|
|
5992
|
+
E("option", fo, S(a.value.mediaLibrary.sortNameAsc), 1),
|
|
5993
|
+
E("option", po, S(a.value.mediaLibrary.sortNameDesc), 1),
|
|
5994
|
+
E("option", mo, S(a.value.mediaLibrary.sortSizeAsc), 1),
|
|
5995
|
+
E("option", ho, S(a.value.mediaLibrary.sortSizeDesc), 1)
|
|
5993
5996
|
], 40, co)])]), E("div", go, [b(D).viewMode.value === "files" ? (c(), v("div", _o, [N(Wi, {
|
|
5994
5997
|
"is-uploading": b(D).isUploading.value,
|
|
5995
5998
|
"upload-progress": b(D).uploadProgress.value,
|
|
@@ -6007,10 +6010,10 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
6007
6010
|
"background-color": "var(--tpl-bg)"
|
|
6008
6011
|
},
|
|
6009
6012
|
onClick: n[6] ||= (e) => b(O).showImportUrlModal.value = !0
|
|
6010
|
-
}, [N(b(
|
|
6013
|
+
}, [N(b(ge), {
|
|
6011
6014
|
size: 14,
|
|
6012
6015
|
"stroke-width": 2
|
|
6013
|
-
}), j(" " +
|
|
6016
|
+
}), j(" " + S(a.value.mediaLibrary.importFromUrl), 1)])) : y("", !0)])) : y("", !0), N(Xr, {
|
|
6014
6017
|
items: b(O).displayItems.value,
|
|
6015
6018
|
"selected-ids": b(D).selectedItems.value,
|
|
6016
6019
|
"is-loading": b(D).isLoading.value,
|
|
@@ -6072,7 +6075,7 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
6072
6075
|
"onReplace",
|
|
6073
6076
|
"onClose"
|
|
6074
6077
|
]),
|
|
6075
|
-
N(
|
|
6078
|
+
N(w, {
|
|
6076
6079
|
"enter-active-class": "tpl:transition tpl:ease-out tpl:duration-150",
|
|
6077
6080
|
"enter-from-class": "tpl:opacity-0",
|
|
6078
6081
|
"enter-to-class": "tpl:opacity-100",
|
|
@@ -6090,17 +6093,17 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
6090
6093
|
},
|
|
6091
6094
|
onClick: n[11] ||= x((...e) => b(D).cancelDelete && b(D).cancelDelete(...e), ["self"])
|
|
6092
6095
|
}, [E("div", vo, [
|
|
6093
|
-
E("h3", yo,
|
|
6096
|
+
E("h3", yo, S(a.value.mediaLibrary.deleteWarningTitle), 1),
|
|
6094
6097
|
E("p", {
|
|
6095
|
-
class:
|
|
6098
|
+
class: k(["tpl:text-xs", b(O).hasUsedFiles.value ? "tpl:mb-2" : "tpl:mb-4"]),
|
|
6096
6099
|
style: { color: "var(--tpl-text-muted)" }
|
|
6097
|
-
},
|
|
6098
|
-
b(O).hasUsedFiles.value ? (c(), v("p", bo,
|
|
6100
|
+
}, S(a.value.mediaLibrary.deleteWarningMessage), 3),
|
|
6101
|
+
b(O).hasUsedFiles.value ? (c(), v("p", bo, S(a.value.mediaLibrary.deleteWarningUsageNote), 1)) : y("", !0),
|
|
6099
6102
|
b(O).hasUsedFiles.value ? (c(), v("div", xo, [(c(!0), v(A, null, u(b(D).deleteUsageInfo.value, (e, t) => (c(), v("div", {
|
|
6100
6103
|
key: t,
|
|
6101
6104
|
class: "tpl:text-xs",
|
|
6102
6105
|
style: { color: "var(--tpl-text)" }
|
|
6103
|
-
}, [e.template_count > 0 ? (c(), v(A, { key: 0 }, [E("span", So,
|
|
6106
|
+
}, [e.template_count > 0 ? (c(), v(A, { key: 0 }, [E("span", So, S(b(O).displayItems.value.find((e) => e.id === t)?.filename || t), 1), E("span", Co, " - " + S(a.value.mediaLibrary.usedInTemplates.replace("{count}", e.template_count.toString())), 1)], 64)) : y("", !0)]))), 128))])) : y("", !0),
|
|
6104
6107
|
E("div", wo, [E("button", {
|
|
6105
6108
|
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",
|
|
6106
6109
|
style: {
|
|
@@ -6109,7 +6112,7 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
6109
6112
|
"background-color": "var(--tpl-bg)"
|
|
6110
6113
|
},
|
|
6111
6114
|
onClick: n[9] ||= (...e) => b(D).cancelDelete && b(D).cancelDelete(...e)
|
|
6112
|
-
},
|
|
6115
|
+
}, S(a.value.mediaLibrary.cancel), 1), E("button", {
|
|
6113
6116
|
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",
|
|
6114
6117
|
style: {
|
|
6115
6118
|
"border-color": "var(--tpl-danger)",
|
|
@@ -6117,11 +6120,11 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
6117
6120
|
"background-color": "var(--tpl-danger-light)"
|
|
6118
6121
|
},
|
|
6119
6122
|
onClick: n[10] ||= (...e) => b(D).confirmDelete && b(D).confirmDelete(...e)
|
|
6120
|
-
},
|
|
6123
|
+
}, S(b(O).hasUsedFiles.value ? a.value.mediaLibrary.deleteAnyway : a.value.mediaLibrary.confirmDelete), 1)])
|
|
6121
6124
|
])])) : y("", !0)]),
|
|
6122
6125
|
_: 1
|
|
6123
6126
|
}),
|
|
6124
|
-
E("div", To, [E("div", Eo, [b(D).previewItem.value ? (c(),
|
|
6127
|
+
E("div", To, [E("div", Eo, [b(D).previewItem.value ? (c(), C(wi, {
|
|
6125
6128
|
key: 0,
|
|
6126
6129
|
"selected-conversion": b(O).selectedConversion.value,
|
|
6127
6130
|
"onUpdate:selectedConversion": n[12] ||= (e) => b(O).selectedConversion.value = e,
|
|
@@ -6134,21 +6137,21 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
6134
6137
|
])) : y("", !0)]), E("div", Do, [b(D).selectedItems.value.size > 0 ? (c(), v("div", Oo, [b(D).previewItem.value ? (c(), v("button", {
|
|
6135
6138
|
key: 0,
|
|
6136
6139
|
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",
|
|
6137
|
-
style:
|
|
6140
|
+
style: h({
|
|
6138
6141
|
borderColor: b(O).copied.value ? "var(--tpl-success)" : "var(--tpl-border)",
|
|
6139
6142
|
color: b(O).copied.value ? "var(--tpl-success)" : "var(--tpl-text)",
|
|
6140
6143
|
backgroundColor: "var(--tpl-bg)"
|
|
6141
6144
|
}),
|
|
6142
6145
|
onClick: n[13] ||= (e) => b(O).copy(b(O).selectedUrl.value)
|
|
6143
|
-
}, [b(O).copied.value ? (c(),
|
|
6146
|
+
}, [b(O).copied.value ? (c(), C(b(ue), {
|
|
6144
6147
|
key: 1,
|
|
6145
6148
|
size: 12,
|
|
6146
6149
|
"stroke-width": 2
|
|
6147
|
-
})) : (c(),
|
|
6150
|
+
})) : (c(), C(b(se), {
|
|
6148
6151
|
key: 0,
|
|
6149
6152
|
size: 12,
|
|
6150
6153
|
"stroke-width": 2
|
|
6151
|
-
})), j(" " +
|
|
6154
|
+
})), j(" " + S(b(O).copied.value ? a.value.mediaLibrary.copied : a.value.mediaLibrary.copyUrl), 1)], 4)) : y("", !0), s.value ? (c(), v("div", ko, [E("button", {
|
|
6152
6155
|
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",
|
|
6153
6156
|
style: {
|
|
6154
6157
|
"border-color": "var(--tpl-border)",
|
|
@@ -6156,7 +6159,7 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
6156
6159
|
"background-color": "var(--tpl-bg)"
|
|
6157
6160
|
},
|
|
6158
6161
|
onClick: n[14] ||= (e) => b(O).showMovePicker.value = !b(O).showMovePicker.value
|
|
6159
|
-
},
|
|
6162
|
+
}, S(a.value.mediaLibrary.moveSelected), 1), b(O).showMovePicker.value ? (c(), C(pi, {
|
|
6160
6163
|
key: 0,
|
|
6161
6164
|
folders: b(D).folders.value,
|
|
6162
6165
|
"current-folder-id": b(D).currentFolderId.value,
|
|
@@ -6175,7 +6178,7 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
6175
6178
|
"background-color": "var(--tpl-danger-light)"
|
|
6176
6179
|
},
|
|
6177
6180
|
onClick: n[16] ||= (...e) => b(O).handleDeleteClick && b(O).handleDeleteClick(...e)
|
|
6178
|
-
},
|
|
6181
|
+
}, S(a.value.mediaLibrary.deleteSelected), 1)) : y("", !0), t.onSelect ? (c(), v("button", {
|
|
6179
6182
|
key: 1,
|
|
6180
6183
|
class: "tpl:cursor-pointer tpl:rounded-md tpl:px-4 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50",
|
|
6181
6184
|
style: {
|
|
@@ -6184,7 +6187,7 @@ var Zi = ["data-tpl-theme"], Qi = {
|
|
|
6184
6187
|
},
|
|
6185
6188
|
disabled: !b(D).previewItem.value,
|
|
6186
6189
|
onClick: ee
|
|
6187
|
-
},
|
|
6190
|
+
}, S(a.value.mediaLibrary.selectFile), 9, jo)) : y("", !0)])])])
|
|
6188
6191
|
]));
|
|
6189
6192
|
}
|
|
6190
6193
|
}), No = /* #__PURE__ */ Object.assign({
|
|
@@ -6264,4 +6267,4 @@ typeof window < "u" && (window.TemplaticalMedia = {
|
|
|
6264
6267
|
//#endregion
|
|
6265
6268
|
export { De as MediaApiClient, Va as MediaLibraryModal };
|
|
6266
6269
|
|
|
6267
|
-
//# sourceMappingURL=src-
|
|
6270
|
+
//# sourceMappingURL=src-C0N74uvF.js.map
|