@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,17 +1,17 @@
|
|
|
1
|
-
import { $ as e, A as t, C as n, F as r, G as i, H as a, J as o, K as s, L as c, M as l, N as u, O as d, P as f, T as p, U as m, V as h, X as g, Y as _, Z as v, at as y, b, c as x, ct as S, f as C, g as w, h as T, it as E, k as D, l as O,
|
|
1
|
+
import { $ as e, A as t, C as n, F as r, G as i, H as a, J as o, K as s, L as c, M as l, N as u, O as d, P as f, T as p, U as m, V as h, X as g, Y as _, Z as v, at as y, b, c as x, ct as S, f as C, g as w, h as T, it as E, k as D, l as O, lt as k, m as A, nt as j, p as M, rt as N, s as P, st as F, t as ee, u as I, v as L, x as R, y as z, z as B } from "./draggable-DCs9qL-b.js";
|
|
2
2
|
import "./timeouts-SsLMC4a3.js";
|
|
3
|
-
import { $ as te, A as ne, B as re, C as ie, D as ae, E as oe, F as V, I as se, L as ce, M as le, N as ue, O as de, P as fe, Q as pe, R as me, S as he, T as ge, _ as _e, a as ve, b as ye, d as be, f as xe, g as Se, h as Ce, i as H, j as we, k as Te, l as Ee, m as De, n as Oe, o as ke, p as Ae, r as je, s as Me, t as Ne, u as Pe, v as Fe, w as Ie, x as Le } from "./src-
|
|
4
|
-
import { _ as Re, h as ze, v as Be, y as Ve } from "./dist-
|
|
5
|
-
import { a as U, c as He, i as Ue, r as We } from "./dist-
|
|
6
|
-
import { A as Ge, B as Ke, C as qe, D as Je, E as W, F as Ye, G as Xe, H as Ze, I as Qe, L as $e, M as et, N as tt, O as nt, P as rt, S as it, T as at, U as ot, V as st, W as G, _ as ct, a as lt, b as ut, c as dt, f as ft, g as K, h as pt, j as mt, k as ht, m as gt, n as _t, o as vt, p as yt, r as bt, s as xt, u as St, v as Ct, w as wt, x as Tt, y as Et } from "./keys-
|
|
7
|
-
import { t as q } from "./useI18n-
|
|
8
|
-
import { a as Dt, i as Ot, o as kt, r as J, t as At } from "./usePopoverPosition-
|
|
9
|
-
import {
|
|
10
|
-
import { t as Yt } from "./LoadingTrack-
|
|
3
|
+
import { $ as te, A as ne, B as re, C as ie, D as ae, E as oe, F as V, I as se, L as ce, M as le, N as ue, O as de, P as fe, Q as pe, R as me, S as he, T as ge, _ as _e, a as ve, b as ye, d as be, f as xe, g as Se, h as Ce, i as H, j as we, k as Te, l as Ee, m as De, n as Oe, o as ke, p as Ae, r as je, s as Me, t as Ne, u as Pe, v as Fe, w as Ie, x as Le } from "./src-EKTTBQ0y.js";
|
|
4
|
+
import { _ as Re, h as ze, v as Be, y as Ve } from "./dist-C6z8AjBC.js";
|
|
5
|
+
import { a as U, c as He, i as Ue, r as We } from "./dist-B2HKGHnc.js";
|
|
6
|
+
import { A as Ge, B as Ke, C as qe, D as Je, E as W, F as Ye, G as Xe, H as Ze, I as Qe, L as $e, M as et, N as tt, O as nt, P as rt, S as it, T as at, U as ot, V as st, W as G, _ as ct, a as lt, b as ut, c as dt, f as ft, g as K, h as pt, j as mt, k as ht, m as gt, n as _t, o as vt, p as yt, r as bt, s as xt, u as St, v as Ct, w as wt, x as Tt, y as Et } from "./keys-Cmc2Yl3D.js";
|
|
7
|
+
import { t as q } from "./useI18n-UMs0F71x.js";
|
|
8
|
+
import { a as Dt, i as Ot, o as kt, r as J, t as At } from "./usePopoverPosition-cf8Y-ynK.js";
|
|
9
|
+
import { A as jt, Bt as Mt, Et as Nt, H as Pt, Ot as Ft, Tt as It, X as Lt, d as Rt, ft as zt, ht as Bt, it as Vt, o as Ht, s as Ut, tt as Wt, u as Gt, v as Kt, vt as qt, zt as Jt } from "./icons-CvYN6zrM.js";
|
|
10
|
+
import { t as Yt } from "./LoadingTrack-C52ZGL5q.js";
|
|
11
11
|
import { t as Xt } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
-
import "./useCloudI18n-
|
|
13
|
-
import { t as Y } from "./useMergeTag-
|
|
14
|
-
import { t as Zt } from "./useAliveFlag-
|
|
12
|
+
import "./useCloudI18n-8wkJtuJD.js";
|
|
13
|
+
import { t as Y } from "./useMergeTag-CPa_9VOq.js";
|
|
14
|
+
import { t as Zt } from "./useAliveFlag-Dxwgo6P4.js";
|
|
15
15
|
//#region ../core/src/editor.ts
|
|
16
16
|
function Qt(e) {
|
|
17
17
|
return e === "1" ? 1 : e === "3" ? 3 : 2;
|
|
@@ -311,7 +311,7 @@ function sn(e) {
|
|
|
311
311
|
}, i));
|
|
312
312
|
}
|
|
313
313
|
let m = y(t, () => {
|
|
314
|
-
|
|
314
|
+
p();
|
|
315
315
|
}, { deep: !0 });
|
|
316
316
|
function h() {
|
|
317
317
|
m(), d();
|
|
@@ -745,7 +745,7 @@ function Sn(t) {
|
|
|
745
745
|
o || l();
|
|
746
746
|
async function l() {
|
|
747
747
|
try {
|
|
748
|
-
let e = await import("./src-
|
|
748
|
+
let e = await import("./src-Bi-Qhtfs.js");
|
|
749
749
|
if (c) return;
|
|
750
750
|
a.value = { lintTemplate: e.lintTemplate }, r.value = !0, u(), s = Ve(t.content, u, {
|
|
751
751
|
debounce: t.debounce ?? 500,
|
|
@@ -984,7 +984,7 @@ function jn() {
|
|
|
984
984
|
let t = o(e.customType);
|
|
985
985
|
if (!t) return s("Block definition not found");
|
|
986
986
|
try {
|
|
987
|
-
let { Liquid: n } = await import("./liquid.browser-
|
|
987
|
+
let { Liquid: n } = await import("./liquid.browser-UlAOKBjI.js");
|
|
988
988
|
return await new n({
|
|
989
989
|
strictVariables: !1,
|
|
990
990
|
strictFilters: !1
|
|
@@ -1260,7 +1260,7 @@ var Gn = R({
|
|
|
1260
1260
|
class: "tpl-merge-tag-label"
|
|
1261
1261
|
}, e.value) : e.value);
|
|
1262
1262
|
}
|
|
1263
|
-
}), Kn =
|
|
1263
|
+
}), Kn = ["href"], qn = /* @__PURE__ */ R({
|
|
1264
1264
|
__name: "ButtonBlock",
|
|
1265
1265
|
props: {
|
|
1266
1266
|
block: {},
|
|
@@ -1280,19 +1280,19 @@ var Gn = R({
|
|
|
1280
1280
|
textAlign: "center"
|
|
1281
1281
|
};
|
|
1282
1282
|
return t.block.fontFamily && (e.fontFamily = t.block.fontFamily), t.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof t.block.width == "number" && (e.width = `${t.block.width}px`, e.boxSizing = "border-box"), e;
|
|
1283
|
-
});
|
|
1284
|
-
return (t,
|
|
1283
|
+
}), r = C(() => ({ textAlign: t.block.align ?? "center" }));
|
|
1284
|
+
return (t, i) => (l(), w("div", { style: S(r.value) }, [M("a", {
|
|
1285
1285
|
href: e.block.url || "#",
|
|
1286
|
-
style:
|
|
1286
|
+
style: S(n.value),
|
|
1287
1287
|
class: "tpl:cursor-default",
|
|
1288
|
-
onClick:
|
|
1289
|
-
}, [z(Gn, { text: e.block.text }, null, 8, ["text"])], 12,
|
|
1288
|
+
onClick: i[0] ||= O(() => {}, ["prevent"])
|
|
1289
|
+
}, [z(Gn, { text: e.block.text }, null, 8, ["text"])], 12, Kn)], 4));
|
|
1290
1290
|
}
|
|
1291
|
-
}),
|
|
1291
|
+
}), Jn = ["innerHTML"], Yn = [
|
|
1292
1292
|
"src",
|
|
1293
1293
|
"width",
|
|
1294
1294
|
"height"
|
|
1295
|
-
],
|
|
1295
|
+
], Xn = /* @__PURE__ */ R({
|
|
1296
1296
|
__name: "CustomBlockIcon",
|
|
1297
1297
|
props: {
|
|
1298
1298
|
icon: {},
|
|
@@ -1303,19 +1303,19 @@ var Gn = R({
|
|
|
1303
1303
|
return (t, a) => r.value ? (l(), w("span", {
|
|
1304
1304
|
key: 0,
|
|
1305
1305
|
class: "tpl:inline-flex tpl:items-center tpl:justify-center",
|
|
1306
|
-
style:
|
|
1306
|
+
style: S({
|
|
1307
1307
|
width: `${n.value}px`,
|
|
1308
1308
|
height: `${n.value}px`
|
|
1309
1309
|
}),
|
|
1310
1310
|
innerHTML: e.icon
|
|
1311
|
-
}, null, 12,
|
|
1311
|
+
}, null, 12, Jn)) : i.value ? (l(), w("img", {
|
|
1312
1312
|
key: 1,
|
|
1313
1313
|
src: e.icon,
|
|
1314
1314
|
width: n.value,
|
|
1315
1315
|
height: n.value,
|
|
1316
1316
|
class: "tpl:inline-block",
|
|
1317
1317
|
alt: ""
|
|
1318
|
-
}, null, 8,
|
|
1318
|
+
}, null, 8, Yn)) : (l(), A(E(Jt), {
|
|
1319
1319
|
key: 2,
|
|
1320
1320
|
size: n.value,
|
|
1321
1321
|
"stroke-width": 1.5
|
|
@@ -1324,16 +1324,16 @@ var Gn = R({
|
|
|
1324
1324
|
});
|
|
1325
1325
|
//#endregion
|
|
1326
1326
|
//#region src/composables/useEditorRoot.ts
|
|
1327
|
-
function
|
|
1327
|
+
function Zn() {
|
|
1328
1328
|
return p(ct, document) ?? document;
|
|
1329
1329
|
}
|
|
1330
1330
|
//#endregion
|
|
1331
1331
|
//#region src/composables/useFocusTrap.ts
|
|
1332
|
-
var
|
|
1333
|
-
function
|
|
1334
|
-
let n =
|
|
1332
|
+
var Qn = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
1333
|
+
function $n(e, t) {
|
|
1334
|
+
let n = Zn(), r = null, i = null, a = null;
|
|
1335
1335
|
function s() {
|
|
1336
|
-
return e.value ? Array.from(e.value.querySelectorAll(
|
|
1336
|
+
return e.value ? Array.from(e.value.querySelectorAll(Qn)).filter((e) => e.offsetParent !== null) : [];
|
|
1337
1337
|
}
|
|
1338
1338
|
function c(e) {
|
|
1339
1339
|
if (e.key !== "Tab") return;
|
|
@@ -1363,7 +1363,7 @@ function er(e, t) {
|
|
|
1363
1363
|
}
|
|
1364
1364
|
//#endregion
|
|
1365
1365
|
//#region src/composables/useEmoji.ts
|
|
1366
|
-
function
|
|
1366
|
+
function er() {
|
|
1367
1367
|
let [t, n] = Be(!1), r = e([]), i = !1;
|
|
1368
1368
|
o(() => {
|
|
1369
1369
|
i = !0;
|
|
@@ -1389,7 +1389,7 @@ function tr() {
|
|
|
1389
1389
|
}
|
|
1390
1390
|
//#endregion
|
|
1391
1391
|
//#region src/composables/useDragDrop.ts
|
|
1392
|
-
function
|
|
1392
|
+
function tr(e) {
|
|
1393
1393
|
let { onBlockMove: t, onBlockAdd: n } = e, r = v(!1), i = v(null), a = v(null);
|
|
1394
1394
|
function o(e) {
|
|
1395
1395
|
r.value = !0, i.value = e;
|
|
@@ -1439,7 +1439,7 @@ function nr(e) {
|
|
|
1439
1439
|
}
|
|
1440
1440
|
//#endregion
|
|
1441
1441
|
//#region src/composables/useFonts.ts
|
|
1442
|
-
var
|
|
1442
|
+
var nr = [
|
|
1443
1443
|
{
|
|
1444
1444
|
value: "Arial",
|
|
1445
1445
|
label: "Arial"
|
|
@@ -1468,7 +1468,7 @@ var rr = [
|
|
|
1468
1468
|
value: "Courier New",
|
|
1469
1469
|
label: "Courier New"
|
|
1470
1470
|
}
|
|
1471
|
-
],
|
|
1471
|
+
], rr = {
|
|
1472
1472
|
arial: "Arial, sans-serif",
|
|
1473
1473
|
helvetica: "Helvetica, sans-serif",
|
|
1474
1474
|
georgia: "Georgia, serif",
|
|
@@ -1476,23 +1476,23 @@ var rr = [
|
|
|
1476
1476
|
verdana: "Verdana, sans-serif",
|
|
1477
1477
|
"trebuchet ms": "'Trebuchet MS', sans-serif",
|
|
1478
1478
|
"courier new": "'Courier New', monospace"
|
|
1479
|
-
},
|
|
1480
|
-
function
|
|
1481
|
-
if (e === void 0 || e === !0) return [...
|
|
1479
|
+
}, ir = "Arial, sans-serif";
|
|
1480
|
+
function ar(e) {
|
|
1481
|
+
if (e === void 0 || e === !0) return [...nr];
|
|
1482
1482
|
if (e === !1) return [];
|
|
1483
1483
|
let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
|
|
1484
1484
|
for (let i of e) {
|
|
1485
|
-
let e = i.toLowerCase(), a =
|
|
1485
|
+
let e = i.toLowerCase(), a = nr.find((t) => t.value.toLowerCase() === e);
|
|
1486
1486
|
if (!a) {
|
|
1487
|
-
r.has(e) || (r.add(e), $.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${
|
|
1487
|
+
r.has(e) || (r.add(e), $.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${nr.map((e) => e.value).join(", ")}.`));
|
|
1488
1488
|
continue;
|
|
1489
1489
|
}
|
|
1490
1490
|
n.has(a.value) || (n.add(a.value), t.push(a));
|
|
1491
1491
|
}
|
|
1492
1492
|
return t;
|
|
1493
1493
|
}
|
|
1494
|
-
function
|
|
1495
|
-
let t = v(e?.customFonts ?? []), n = v(!0), r = v(!1), a =
|
|
1494
|
+
function or(e) {
|
|
1495
|
+
let t = v(e?.customFonts ?? []), n = v(!0), r = v(!1), a = ar(e?.builtIns), s = C(() => e?.defaultFallback ?? ir);
|
|
1496
1496
|
function c(e) {
|
|
1497
1497
|
n.value = e;
|
|
1498
1498
|
}
|
|
@@ -1509,26 +1509,26 @@ function sr(e) {
|
|
|
1509
1509
|
function u(e) {
|
|
1510
1510
|
return l.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
|
|
1511
1511
|
}
|
|
1512
|
-
let d = e?.defaultFont ??
|
|
1512
|
+
let d = e?.defaultFont ?? ir.split(",")[0].trim();
|
|
1513
1513
|
u(d) || $.warn(`config.fonts: new templates seed "${d}", which the font picker doesn't offer — authors can't reselect it. Either add it to fonts.builtIns, or set fonts.defaultFont to an offered font.`);
|
|
1514
1514
|
function f(e) {
|
|
1515
|
-
return
|
|
1515
|
+
return nr.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
|
|
1516
1516
|
}
|
|
1517
1517
|
function p() {
|
|
1518
1518
|
if (e?.defaultFont) {
|
|
1519
|
-
if (!n.value && !f(e.defaultFont)) return
|
|
1519
|
+
if (!n.value && !f(e.defaultFont)) return ir;
|
|
1520
1520
|
if (u(e.defaultFont)) {
|
|
1521
1521
|
let t = l.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
|
|
1522
1522
|
if (t) return t.value;
|
|
1523
1523
|
}
|
|
1524
1524
|
}
|
|
1525
|
-
return
|
|
1525
|
+
return ir;
|
|
1526
1526
|
}
|
|
1527
1527
|
let m = C(() => p());
|
|
1528
1528
|
function h(e) {
|
|
1529
1529
|
if (!e) return s.value;
|
|
1530
1530
|
let n = t.value.find((t) => t.name.toLowerCase() === e.toLowerCase());
|
|
1531
|
-
return n ? `'${n.name}', ${n.fallback ?? s.value}` :
|
|
1531
|
+
return n ? `'${n.name}', ${n.fallback ?? s.value}` : rr[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${s.value}`);
|
|
1532
1532
|
}
|
|
1533
1533
|
let g = [], _ = !1;
|
|
1534
1534
|
async function y() {
|
|
@@ -1571,7 +1571,7 @@ function sr(e) {
|
|
|
1571
1571
|
}
|
|
1572
1572
|
//#endregion
|
|
1573
1573
|
//#region src/composables/useLogicTag.ts
|
|
1574
|
-
function
|
|
1574
|
+
function sr() {
|
|
1575
1575
|
let e = p(wt, []), t = p(qe, []), n = p(Ge, je.liquid), r = p(mt, null), i = p(at, null), a = v(!1), o = !!r || e.length > 0 || t.length > 0, s = e.length > 0 || t.length > 0;
|
|
1576
1576
|
async function c() {
|
|
1577
1577
|
if (r) {
|
|
@@ -1603,7 +1603,7 @@ function cr() {
|
|
|
1603
1603
|
}
|
|
1604
1604
|
//#endregion
|
|
1605
1605
|
//#region src/utils/mergeTagNodeSpec.ts
|
|
1606
|
-
function
|
|
1606
|
+
function cr(e, t, n) {
|
|
1607
1607
|
return be(e, n) ? {
|
|
1608
1608
|
type: "logicMergeTagNode",
|
|
1609
1609
|
attrs: {
|
|
@@ -1620,15 +1620,15 @@ function lr(e, t, n) {
|
|
|
1620
1620
|
}
|
|
1621
1621
|
//#endregion
|
|
1622
1622
|
//#region src/utils/insertLogicTag.ts
|
|
1623
|
-
function
|
|
1623
|
+
function lr(e) {
|
|
1624
1624
|
return "before" in e && "after" in e;
|
|
1625
1625
|
}
|
|
1626
|
-
function
|
|
1627
|
-
if (!
|
|
1628
|
-
e.chain().focus().insertContent(
|
|
1626
|
+
function ur(e, t, n) {
|
|
1627
|
+
if (!lr(t)) {
|
|
1628
|
+
e.chain().focus().insertContent(cr(t.value, t.label, n)).run();
|
|
1629
1629
|
return;
|
|
1630
1630
|
}
|
|
1631
|
-
let r =
|
|
1631
|
+
let r = cr(t.before, t.label, n), i = cr(t.after, t.label, n), { from: a, to: o } = e.state.selection;
|
|
1632
1632
|
if (a !== o) {
|
|
1633
1633
|
e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
|
|
1634
1634
|
return;
|
|
@@ -1637,20 +1637,20 @@ function dr(e, t, n) {
|
|
|
1637
1637
|
}
|
|
1638
1638
|
//#endregion
|
|
1639
1639
|
//#region src/utils/linkColorExtension.ts
|
|
1640
|
-
function
|
|
1640
|
+
function dr(e) {
|
|
1641
1641
|
if (!e) return null;
|
|
1642
1642
|
let t = e.trim();
|
|
1643
1643
|
return /^#[0-9a-f]{3,8}$/i.test(t) || /^(rgb|rgba|hsl|hsla)\(\s*[0-9.,%/\s]+\)$/i.test(t) || /^[a-z]+$/i.test(t) ? t : null;
|
|
1644
1644
|
}
|
|
1645
|
-
function
|
|
1645
|
+
function fr(e) {
|
|
1646
1646
|
return e.extend({ addAttributes() {
|
|
1647
1647
|
return {
|
|
1648
1648
|
...this.parent?.(),
|
|
1649
1649
|
color: {
|
|
1650
1650
|
default: null,
|
|
1651
|
-
parseHTML: (e) =>
|
|
1651
|
+
parseHTML: (e) => dr(Ot(e.style.color)),
|
|
1652
1652
|
renderHTML: (e) => {
|
|
1653
|
-
let t =
|
|
1653
|
+
let t = dr(e.color);
|
|
1654
1654
|
return t ? { style: `color: ${t}` } : {};
|
|
1655
1655
|
}
|
|
1656
1656
|
}
|
|
@@ -1659,9 +1659,9 @@ function pr(e) {
|
|
|
1659
1659
|
}
|
|
1660
1660
|
//#endregion
|
|
1661
1661
|
//#region src/composables/useRichTextLinkDialog.ts
|
|
1662
|
-
function
|
|
1662
|
+
function pr(e) {
|
|
1663
1663
|
let t = v(!1), n = v(""), r = v(""), i = v(null);
|
|
1664
|
-
|
|
1664
|
+
$n(i, t);
|
|
1665
1665
|
function a() {
|
|
1666
1666
|
let i = e.value?.getAttributes("link") ?? {};
|
|
1667
1667
|
n.value = i.href || "", r.value = i.color || "", t.value = !0;
|
|
@@ -1670,7 +1670,7 @@ function mr(e) {
|
|
|
1670
1670
|
if (n.value) {
|
|
1671
1671
|
let t = c(n.value);
|
|
1672
1672
|
if (t !== null) {
|
|
1673
|
-
let n =
|
|
1673
|
+
let n = dr(r.value), i = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
|
|
1674
1674
|
n && typeof e.value?.commands.unsetColor == "function" && i?.unsetColor(), i?.run();
|
|
1675
1675
|
}
|
|
1676
1676
|
}
|
|
@@ -1717,8 +1717,8 @@ function mr(e) {
|
|
|
1717
1717
|
}
|
|
1718
1718
|
//#endregion
|
|
1719
1719
|
//#region src/composables/useRichTextEditor.ts
|
|
1720
|
-
function
|
|
1721
|
-
let n = p(K, null), { mergeTags: r, canRequestMergeTag: i, isRequesting: a, requestMergeTag: o, syntax: c, autocomplete: l } = Y(), { canInsertLogicTag: u, isRequesting: d, requestLogicTag: f } =
|
|
1720
|
+
function mr(t) {
|
|
1721
|
+
let n = p(K, null), { mergeTags: r, canRequestMergeTag: i, isRequesting: a, requestMergeTag: o, syntax: c, autocomplete: l } = Y(), { canInsertLogicTag: u, isRequesting: d, requestLogicTag: f } = sr(), m = p(Ze, null), h = (s(m) ? m.value : m)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", g = Ee(c), _ = e(null), { showLinkDialog: y, linkUrl: b, linkColor: x, linkDialogRef: S, openLinkDialog: C, insertLink: w, removeLink: T, closeLinkDialog: E, handleLinkKeydown: O } = pr(_), { start: k, stop: A } = Re(() => _.value?.commands.focus("end"), 0, { immediate: !1 }), j = e(null), M = v(!0), N = v(null), P = !1;
|
|
1722
1722
|
async function F() {
|
|
1723
1723
|
N.value = null, M.value = !0;
|
|
1724
1724
|
try {
|
|
@@ -1778,7 +1778,7 @@ function hr(t) {
|
|
|
1778
1778
|
}
|
|
1779
1779
|
async function z() {
|
|
1780
1780
|
let e = await f();
|
|
1781
|
-
P || (e && _.value ?
|
|
1781
|
+
P || (e && _.value ? ur(_.value, e, c) : _.value?.commands.focus());
|
|
1782
1782
|
}
|
|
1783
1783
|
return {
|
|
1784
1784
|
editor: _,
|
|
@@ -1807,30 +1807,30 @@ function hr(t) {
|
|
|
1807
1807
|
}
|
|
1808
1808
|
//#endregion
|
|
1809
1809
|
//#region src/composables/useSmallScreenNotice.ts
|
|
1810
|
-
var
|
|
1811
|
-
function
|
|
1812
|
-
let t = He(
|
|
1810
|
+
var hr = "(max-width: 767px)";
|
|
1811
|
+
function gr(e) {
|
|
1812
|
+
let t = He(hr);
|
|
1813
1813
|
return {
|
|
1814
1814
|
isSmallScreen: t,
|
|
1815
|
-
showNotice: C(() => (
|
|
1815
|
+
showNotice: C(() => (j(e) ?? !0) && t.value)
|
|
1816
1816
|
};
|
|
1817
1817
|
}
|
|
1818
1818
|
//#endregion
|
|
1819
1819
|
//#region src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
|
|
1820
|
-
var
|
|
1820
|
+
var _r = { class: "tpl:w-full" }, vr = {
|
|
1821
1821
|
key: 0,
|
|
1822
1822
|
class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-warning)] tpl:bg-[var(--tpl-warning-light)]"
|
|
1823
|
-
},
|
|
1823
|
+
}, yr = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, br = {
|
|
1824
1824
|
key: 1,
|
|
1825
1825
|
class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-danger)] tpl:bg-[var(--tpl-danger-light)]"
|
|
1826
|
-
},
|
|
1826
|
+
}, xr = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Sr = {
|
|
1827
1827
|
key: 2,
|
|
1828
1828
|
class: "tpl:relative"
|
|
1829
|
-
},
|
|
1829
|
+
}, Cr = ["innerHTML"], wr = {
|
|
1830
1830
|
key: 0,
|
|
1831
1831
|
class: "tpl:absolute tpl:inset-0 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:rounded tpl:backdrop-blur-[2px]",
|
|
1832
1832
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
|
|
1833
|
-
},
|
|
1833
|
+
}, Tr = /* @__PURE__ */ R({
|
|
1834
1834
|
__name: "CustomBlock",
|
|
1835
1835
|
props: {
|
|
1836
1836
|
block: {},
|
|
@@ -1867,17 +1867,17 @@ var vr = { class: "tpl:w-full" }, yr = {
|
|
|
1867
1867
|
}
|
|
1868
1868
|
}
|
|
1869
1869
|
}
|
|
1870
|
-
let
|
|
1870
|
+
let S = ze(x, 150);
|
|
1871
1871
|
return t(() => {
|
|
1872
1872
|
x();
|
|
1873
1873
|
}), B(() => r.block.fieldValues, () => {
|
|
1874
|
-
|
|
1874
|
+
S();
|
|
1875
1875
|
}, { deep: !0 }), B(() => y?.value, () => {
|
|
1876
|
-
|
|
1877
|
-
}), (e, t) => (l(), w("div",
|
|
1876
|
+
S();
|
|
1877
|
+
}), (e, t) => (l(), w("div", _r, [d.value ? c.value ? (l(), w("div", br, [z(E(Gt), {
|
|
1878
1878
|
size: 24,
|
|
1879
1879
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
1880
|
-
}), M("span",
|
|
1880
|
+
}), M("span", xr, k(E(a).customBlocks.renderError), 1)])) : (l(), w("div", Sr, [M("div", { innerHTML: s.value }, null, 8, Cr), E(g) && E(h) ? (l(), w("div", wr, [E(f) ? (l(), A(Yt, {
|
|
1881
1881
|
key: 1,
|
|
1882
1882
|
class: "tpl:w-48"
|
|
1883
1883
|
})) : (l(), w("button", {
|
|
@@ -1885,16 +1885,16 @@ var vr = { class: "tpl:w-full" }, yr = {
|
|
|
1885
1885
|
type: "button",
|
|
1886
1886
|
class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2 tpl:text-sm tpl:font-semibold tpl:shadow-sm tpl:transition-all tpl:duration-150 hover:tpl:border-[var(--tpl-primary)] hover:tpl:shadow-md tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
|
|
1887
1887
|
onClick: t[0] ||= O((...e) => E(m) && E(m)(...e), ["stop"])
|
|
1888
|
-
}, [u.value?.icon ? (l(),
|
|
1888
|
+
}, [u.value?.icon ? (l(), A(Xn, {
|
|
1889
1889
|
key: 0,
|
|
1890
1890
|
icon: u.value.icon,
|
|
1891
1891
|
size: 16
|
|
1892
|
-
}, null, 8, ["icon"])) : T("", !0), L(" " +
|
|
1892
|
+
}, null, 8, ["icon"])) : T("", !0), L(" " + k(u.value?.dataSource?.label || E(a).customBlocks.dataSource.fetchButton), 1)]))])) : T("", !0)])) : (l(), w("div", vr, [z(E(Pt), {
|
|
1893
1893
|
size: 24,
|
|
1894
1894
|
class: "tpl:text-[var(--tpl-warning)]"
|
|
1895
|
-
}), M("span",
|
|
1895
|
+
}), M("span", yr, k(E(a).customBlocks.definitionNotFound), 1)]))]));
|
|
1896
1896
|
}
|
|
1897
|
-
}),
|
|
1897
|
+
}), Er = { class: "tpl:w-full" }, Dr = /* @__PURE__ */ R({
|
|
1898
1898
|
__name: "DividerBlock",
|
|
1899
1899
|
props: {
|
|
1900
1900
|
block: {},
|
|
@@ -1906,21 +1906,21 @@ var vr = { class: "tpl:w-full" }, yr = {
|
|
|
1906
1906
|
width: t.block.width === "full" ? "100%" : `${t.block.width}px`,
|
|
1907
1907
|
margin: t.block.width === "full" ? "0" : "0 auto"
|
|
1908
1908
|
}));
|
|
1909
|
-
return (e, t) => (l(), w("div",
|
|
1909
|
+
return (e, t) => (l(), w("div", Er, [M("hr", {
|
|
1910
1910
|
class: "tpl:m-0 tpl:border-none",
|
|
1911
|
-
style:
|
|
1911
|
+
style: S(n.value)
|
|
1912
1912
|
}, null, 4)]));
|
|
1913
1913
|
}
|
|
1914
|
-
}),
|
|
1914
|
+
}), Or = { class: "tpl:w-full" }, kr = ["srcdoc", "title"], Ar = {
|
|
1915
1915
|
key: 1,
|
|
1916
1916
|
class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)]"
|
|
1917
|
-
},
|
|
1917
|
+
}, jr = {
|
|
1918
1918
|
key: 0,
|
|
1919
1919
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
|
|
1920
|
-
},
|
|
1920
|
+
}, Mr = {
|
|
1921
1921
|
key: 1,
|
|
1922
1922
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
1923
|
-
},
|
|
1923
|
+
}, Nr = /* @__PURE__ */ R({
|
|
1924
1924
|
__name: "HtmlBlock",
|
|
1925
1925
|
props: {
|
|
1926
1926
|
block: {},
|
|
@@ -1941,7 +1941,7 @@ var vr = { class: "tpl:w-full" }, yr = {
|
|
|
1941
1941
|
e || (f?.disconnect(), f = null);
|
|
1942
1942
|
}), D(() => {
|
|
1943
1943
|
f?.disconnect(), f = null;
|
|
1944
|
-
}), (e, t) => (l(), w("div",
|
|
1944
|
+
}), (e, t) => (l(), w("div", Or, [a.value ? (l(), w("iframe", {
|
|
1945
1945
|
key: 0,
|
|
1946
1946
|
ref_key: "iframeRef",
|
|
1947
1947
|
ref: u,
|
|
@@ -1949,20 +1949,20 @@ var vr = { class: "tpl:w-full" }, yr = {
|
|
|
1949
1949
|
sandbox: "allow-same-origin",
|
|
1950
1950
|
title: E(n).html.preview,
|
|
1951
1951
|
class: "tpl:block tpl:w-full tpl:border-0",
|
|
1952
|
-
style:
|
|
1952
|
+
style: S({ height: `${d.value}px` }),
|
|
1953
1953
|
onLoad: h
|
|
1954
|
-
}, null, 44,
|
|
1954
|
+
}, null, 44, kr)) : (l(), w("div", Ar, [z(E(Ft), {
|
|
1955
1955
|
size: 24,
|
|
1956
1956
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
1957
|
-
}), i.value ? (l(), w("span",
|
|
1957
|
+
}), i.value ? (l(), w("span", jr, k(E(n).html.preview), 1)) : (l(), w("span", Mr, k(E(n).html.empty), 1))]))]));
|
|
1958
1958
|
}
|
|
1959
|
-
}),
|
|
1960
|
-
function
|
|
1961
|
-
let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 ||
|
|
1959
|
+
}), Pr = "image/";
|
|
1960
|
+
function Fr(e) {
|
|
1961
|
+
let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || j(r), { isOverDropZone: a } = We(t, {
|
|
1962
1962
|
preventDefaultForUnhandled: !0,
|
|
1963
1963
|
onDrop: (e) => {
|
|
1964
1964
|
if (!i()) return;
|
|
1965
|
-
let t = (e ?? []).filter((e) => e.type.startsWith(
|
|
1965
|
+
let t = (e ?? []).filter((e) => e.type.startsWith(Pr));
|
|
1966
1966
|
t.length > 0 && n([t[0]]);
|
|
1967
1967
|
}
|
|
1968
1968
|
});
|
|
@@ -1970,17 +1970,17 @@ function Ir(e) {
|
|
|
1970
1970
|
}
|
|
1971
1971
|
//#endregion
|
|
1972
1972
|
//#region src/components/blocks/ImageBlock.vue?vue&type=script&setup=true&lang.ts
|
|
1973
|
-
var
|
|
1973
|
+
var Ir = {
|
|
1974
1974
|
key: 0,
|
|
1975
1975
|
class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-xs tpl:font-medium tpl:border-[var(--tpl-primary)] tpl:text-[var(--tpl-primary)]",
|
|
1976
1976
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 85%, transparent)" }
|
|
1977
|
-
},
|
|
1977
|
+
}, Lr = ["href"], Rr = ["src", "alt"], zr = ["src", "alt"], Br = {
|
|
1978
1978
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
1979
1979
|
style: { opacity: "0.7" }
|
|
1980
|
-
},
|
|
1980
|
+
}, Vr = ["href"], Hr = ["src", "alt"], Ur = ["src", "alt"], Wr = {
|
|
1981
1981
|
key: 4,
|
|
1982
1982
|
class: "tpl:flex tpl:min-h-[100px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
|
|
1983
|
-
},
|
|
1983
|
+
}, Gr = ["aria-label"], Kr = { key: 1 }, qr = /* @__PURE__ */ R({
|
|
1984
1984
|
__name: "ImageBlock",
|
|
1985
1985
|
props: {
|
|
1986
1986
|
block: {},
|
|
@@ -2015,7 +2015,7 @@ var Lr = {
|
|
|
2015
2015
|
}
|
|
2016
2016
|
}
|
|
2017
2017
|
}
|
|
2018
|
-
let { isOver: g } =
|
|
2018
|
+
let { isOver: g } = Fr({
|
|
2019
2019
|
target: d,
|
|
2020
2020
|
enabled: m,
|
|
2021
2021
|
onFiles: h
|
|
@@ -2034,15 +2034,15 @@ var Lr = {
|
|
|
2034
2034
|
ref: d,
|
|
2035
2035
|
"data-testid": "image-drop-zone",
|
|
2036
2036
|
class: "tpl:relative tpl:w-full",
|
|
2037
|
-
style:
|
|
2038
|
-
}, [m.value && (E(g) || f.value) ? (l(), w("div",
|
|
2037
|
+
style: S(_.value)
|
|
2038
|
+
}, [m.value && (E(g) || f.value) ? (l(), w("div", Ir, [f.value ? (l(), w(I, { key: 0 }, [z(E(Vt), {
|
|
2039
2039
|
class: "tpl-spinner",
|
|
2040
2040
|
size: 20,
|
|
2041
2041
|
"stroke-width": 2
|
|
2042
|
-
}), L(" " +
|
|
2042
|
+
}), L(" " + k(E(i).image.uploading), 1)], 64)) : (l(), w(I, { key: 1 }, [z(E(Ut), {
|
|
2043
2043
|
size: 20,
|
|
2044
2044
|
"stroke-width": 1.5
|
|
2045
|
-
}), L(" " +
|
|
2045
|
+
}), L(" " + k(E(i).image.dropToUpload), 1)], 64))])) : T("", !0), e.block.src && b.value && e.block.placeholderUrl ? (l(), w(I, { key: 1 }, [e.block.linkUrl ? (l(), w("a", {
|
|
2046
2046
|
key: 0,
|
|
2047
2047
|
href: e.block.linkUrl,
|
|
2048
2048
|
target: "_blank",
|
|
@@ -2053,23 +2053,23 @@ var Lr = {
|
|
|
2053
2053
|
loading: "lazy",
|
|
2054
2054
|
src: E(D),
|
|
2055
2055
|
alt: e.block.alt || E(i).image.altTextPlaceholder,
|
|
2056
|
-
style:
|
|
2057
|
-
}, null, 12,
|
|
2056
|
+
style: S(y.value)
|
|
2057
|
+
}, null, 12, Rr)], 8, Lr)) : (l(), w("img", {
|
|
2058
2058
|
key: 1,
|
|
2059
2059
|
class: "tpl:border-0",
|
|
2060
2060
|
src: E(D),
|
|
2061
2061
|
alt: e.block.alt,
|
|
2062
|
-
style:
|
|
2063
|
-
}, null, 12,
|
|
2062
|
+
style: S(y.value)
|
|
2063
|
+
}, null, 12, zr))], 64)) : e.block.src && b.value ? (l(), w("div", {
|
|
2064
2064
|
key: 2,
|
|
2065
2065
|
class: "tpl:!flex tpl:min-h-[120px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
|
|
2066
|
-
style:
|
|
2067
|
-
}, [z(E(
|
|
2066
|
+
style: S([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, y.value])
|
|
2067
|
+
}, [z(E(zt), {
|
|
2068
2068
|
size: 32,
|
|
2069
2069
|
"stroke-width": 1.5,
|
|
2070
2070
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
2071
2071
|
style: { opacity: "0.5" }
|
|
2072
|
-
}), M("span",
|
|
2072
|
+
}), M("span", Br, [z(Gn, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (l(), w(I, { key: 3 }, [e.block.linkUrl ? (l(), w("a", {
|
|
2073
2073
|
key: 0,
|
|
2074
2074
|
href: e.block.linkUrl,
|
|
2075
2075
|
target: "_blank",
|
|
@@ -2080,27 +2080,27 @@ var Lr = {
|
|
|
2080
2080
|
loading: "lazy",
|
|
2081
2081
|
src: E(x),
|
|
2082
2082
|
alt: e.block.alt || E(i).image.altTextPlaceholder,
|
|
2083
|
-
style:
|
|
2084
|
-
}, null, 12,
|
|
2083
|
+
style: S(y.value)
|
|
2084
|
+
}, null, 12, Hr)], 8, Vr)) : (l(), w("img", {
|
|
2085
2085
|
key: 1,
|
|
2086
2086
|
class: "tpl:border-0",
|
|
2087
2087
|
src: E(x),
|
|
2088
2088
|
alt: e.block.alt,
|
|
2089
|
-
style:
|
|
2090
|
-
}, null, 12,
|
|
2089
|
+
style: S(y.value)
|
|
2090
|
+
}, null, 12, Ur))], 64)) : (l(), w("div", Wr, [s.value ? (l(), w("button", {
|
|
2091
2091
|
key: 0,
|
|
2092
2092
|
"aria-label": E(i).image.browseMedia,
|
|
2093
2093
|
class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:cursor-pointer tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
|
|
2094
2094
|
onClick: O(u, ["stop"])
|
|
2095
|
-
}, [z(E(
|
|
2095
|
+
}, [z(E(zt), {
|
|
2096
2096
|
size: 14,
|
|
2097
2097
|
"stroke-width": 1.5
|
|
2098
|
-
}), L(" " +
|
|
2098
|
+
}), L(" " + k(E(i).image.browseMedia), 1)], 8, Gr)) : (l(), w("span", Kr, k(E(i).image.clickToAdd), 1))]))], 4));
|
|
2099
2099
|
}
|
|
2100
|
-
}),
|
|
2100
|
+
}), Jr = { class: "tpl:w-full" }, Yr = ["href"], Xr = {
|
|
2101
2101
|
key: 1,
|
|
2102
2102
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
|
|
2103
|
-
},
|
|
2103
|
+
}, Zr = /* @__PURE__ */ R({
|
|
2104
2104
|
__name: "MenuBlock",
|
|
2105
2105
|
props: {
|
|
2106
2106
|
block: {},
|
|
@@ -2119,27 +2119,27 @@ var Lr = {
|
|
|
2119
2119
|
function a(e) {
|
|
2120
2120
|
return e || t.block.linkColor || t.block.color;
|
|
2121
2121
|
}
|
|
2122
|
-
return (t, o) => (l(), w("div",
|
|
2122
|
+
return (t, o) => (l(), w("div", Jr, [i.value ? (l(), w("div", {
|
|
2123
2123
|
key: 0,
|
|
2124
|
-
style:
|
|
2124
|
+
style: S(r.value)
|
|
2125
2125
|
}, [(l(!0), w(I, null, f(e.block.items, (t, n) => (l(), w(I, { key: t.id }, [M("a", {
|
|
2126
2126
|
href: t.url || "#",
|
|
2127
2127
|
class: "tpl:cursor-default tpl:no-underline",
|
|
2128
|
-
style:
|
|
2128
|
+
style: S({
|
|
2129
2129
|
color: a(t.color),
|
|
2130
2130
|
fontWeight: t.bold ? "bold" : "normal",
|
|
2131
2131
|
textDecoration: t.underline ? "underline" : "none"
|
|
2132
2132
|
}),
|
|
2133
2133
|
onClick: o[0] ||= O(() => {}, ["prevent"])
|
|
2134
|
-
}, [z(Gn, { text: t.text || "..." }, null, 8, ["text"])], 12,
|
|
2134
|
+
}, [z(Gn, { text: t.text || "..." }, null, 8, ["text"])], 12, Yr), n < e.block.items.length - 1 ? (l(), w("span", {
|
|
2135
2135
|
key: 0,
|
|
2136
|
-
style:
|
|
2136
|
+
style: S({
|
|
2137
2137
|
color: e.block.separatorColor,
|
|
2138
2138
|
padding: `0 ${e.block.spacing}px`
|
|
2139
2139
|
})
|
|
2140
|
-
},
|
|
2140
|
+
}, k(e.block.separator), 5)) : T("", !0)], 64))), 128))], 4)) : (l(), w("div", Xr, [z(E(Lt), { size: 16 }), M("span", null, k(E(n).menu.addLinks), 1)]))]));
|
|
2141
2141
|
}
|
|
2142
|
-
}),
|
|
2142
|
+
}), Qr = /* @__PURE__ */ new Set([
|
|
2143
2143
|
"http",
|
|
2144
2144
|
"https",
|
|
2145
2145
|
"mailto",
|
|
@@ -2149,7 +2149,7 @@ var Lr = {
|
|
|
2149
2149
|
"sms",
|
|
2150
2150
|
"xmpp",
|
|
2151
2151
|
"cid"
|
|
2152
|
-
]),
|
|
2152
|
+
]), $r = /* @__PURE__ */ new Set([
|
|
2153
2153
|
"SCRIPT",
|
|
2154
2154
|
"STYLE",
|
|
2155
2155
|
"IFRAME",
|
|
@@ -2159,7 +2159,7 @@ var Lr = {
|
|
|
2159
2159
|
"META",
|
|
2160
2160
|
"BASE",
|
|
2161
2161
|
"FORM"
|
|
2162
|
-
]),
|
|
2162
|
+
]), ei = /* @__PURE__ */ new Set([
|
|
2163
2163
|
"href",
|
|
2164
2164
|
"xlink:href",
|
|
2165
2165
|
"formaction",
|
|
@@ -2168,16 +2168,16 @@ var Lr = {
|
|
|
2168
2168
|
"background",
|
|
2169
2169
|
"poster"
|
|
2170
2170
|
]);
|
|
2171
|
-
function
|
|
2171
|
+
function ti(e, t) {
|
|
2172
2172
|
let n = e.replace(/[\t\n\r]/g, "").replace(/^[\u0000-\u0020]+/, "").trimEnd();
|
|
2173
2173
|
if (!n || n.startsWith("#")) return !0;
|
|
2174
2174
|
let r = /^([a-z][a-z0-9+.-]*):/i.exec(n);
|
|
2175
2175
|
if (!r) return !0;
|
|
2176
2176
|
let i = r[1].toLowerCase();
|
|
2177
|
-
return
|
|
2177
|
+
return Qr.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
|
|
2178
2178
|
}
|
|
2179
|
-
function
|
|
2180
|
-
if (
|
|
2179
|
+
function ni(e) {
|
|
2180
|
+
if ($r.has(e.tagName)) {
|
|
2181
2181
|
e.remove();
|
|
2182
2182
|
return;
|
|
2183
2183
|
}
|
|
@@ -2189,29 +2189,29 @@ function ri(e) {
|
|
|
2189
2189
|
e.removeAttribute(n);
|
|
2190
2190
|
continue;
|
|
2191
2191
|
}
|
|
2192
|
-
if (
|
|
2193
|
-
|
|
2192
|
+
if (ei.has(t)) {
|
|
2193
|
+
ti(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n);
|
|
2194
2194
|
continue;
|
|
2195
2195
|
}
|
|
2196
2196
|
if (t === "src") {
|
|
2197
|
-
|
|
2197
|
+
ti(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n);
|
|
2198
2198
|
continue;
|
|
2199
2199
|
}
|
|
2200
2200
|
t === "srcdoc" && e.removeAttribute(n);
|
|
2201
2201
|
}
|
|
2202
2202
|
let n = Array.from(e.children);
|
|
2203
|
-
for (let e of n)
|
|
2203
|
+
for (let e of n) ni(e);
|
|
2204
2204
|
}
|
|
2205
|
-
function
|
|
2205
|
+
function ri(e) {
|
|
2206
2206
|
if (typeof DOMParser > "u") return e;
|
|
2207
2207
|
let t = new DOMParser().parseFromString(`<!doctype html><body>${e}</body>`, "text/html").body, n = Array.from(t.children);
|
|
2208
|
-
for (let e of n)
|
|
2208
|
+
for (let e of n) ni(e);
|
|
2209
2209
|
return t.innerHTML;
|
|
2210
2210
|
}
|
|
2211
2211
|
//#endregion
|
|
2212
2212
|
//#region src/composables/useEditableTextBlock.ts
|
|
2213
|
-
function
|
|
2214
|
-
let t = p(W, []), n = p(G, null), { syntax: r } = Y(), i = C(() => n?.value ? Se(e(), t) : De(e(), t)), a = C(() =>
|
|
2213
|
+
function ii(e) {
|
|
2214
|
+
let t = p(W, []), n = p(G, null), { syntax: r } = Y(), i = C(() => n?.value ? Se(e(), t) : De(e(), t)), a = C(() => ri(Ae(i.value, r))), o = v(!1), s = v(null), { top: c, left: l } = Ue(s), { toLocal: u } = At(), d = C(() => u({
|
|
2215
2215
|
top: c.value - 8,
|
|
2216
2216
|
left: l.value
|
|
2217
2217
|
}));
|
|
@@ -2232,20 +2232,20 @@ function ai(e) {
|
|
|
2232
2232
|
}
|
|
2233
2233
|
//#endregion
|
|
2234
2234
|
//#region src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
|
|
2235
|
-
var
|
|
2235
|
+
var ai = ["innerHTML"], oi = /* @__PURE__ */ R({
|
|
2236
2236
|
__name: "ParagraphBlock",
|
|
2237
2237
|
props: {
|
|
2238
2238
|
block: {},
|
|
2239
2239
|
viewport: {}
|
|
2240
2240
|
},
|
|
2241
2241
|
setup(e) {
|
|
2242
|
-
let t = e, n = b(() => import("./ParagraphEditor-
|
|
2242
|
+
let t = e, n = b(() => import("./ParagraphEditor-Cuc83Blj.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = ii(() => t.block.content);
|
|
2243
2243
|
return (t, u) => (l(), w("div", {
|
|
2244
2244
|
ref_key: "blockRef",
|
|
2245
2245
|
ref: i,
|
|
2246
2246
|
class: "tpl:min-h-[1em] tpl:w-full",
|
|
2247
2247
|
onDblclick: u[0] ||= (...e) => E(s) && E(s)(...e)
|
|
2248
|
-
}, [E(r) ? (l(),
|
|
2248
|
+
}, [E(r) ? (l(), A(E(n), {
|
|
2249
2249
|
key: 0,
|
|
2250
2250
|
block: e.block,
|
|
2251
2251
|
"toolbar-position": E(a),
|
|
@@ -2258,54 +2258,54 @@ var oi = ["innerHTML"], si = /* @__PURE__ */ R({
|
|
|
2258
2258
|
key: 1,
|
|
2259
2259
|
class: "tpl-text-content tpl:outline-none [&_a]:tpl:underline [&_li]:tpl:my-1 [&_ol]:tpl:my-2 [&_ol]:tpl:pl-6 [&_p]:tpl:m-0 [&_p]:tpl:mb-2 [&_p:last-child]:tpl:mb-0 [&_s]:tpl:line-through [&_sub]:tpl:align-sub [&_sub]:tpl:text-[0.75em] [&_sup]:tpl:align-super [&_sup]:tpl:text-[0.75em] [&_ul]:tpl:my-2 [&_ul]:tpl:pl-6",
|
|
2260
2260
|
innerHTML: E(o)
|
|
2261
|
-
}, null, 8,
|
|
2261
|
+
}, null, 8, ai))], 544));
|
|
2262
2262
|
}
|
|
2263
2263
|
});
|
|
2264
2264
|
//#endregion
|
|
2265
2265
|
//#region src/utils/blockComponentResolver.ts
|
|
2266
|
-
function
|
|
2266
|
+
function si(e) {
|
|
2267
2267
|
let t = { fontFamily: e.fontFamily };
|
|
2268
2268
|
return e.textColor && (t.color = e.textColor), e.linkColor && (t["--tpl-doc-link-color"] = e.linkColor), e.linkUnderline && (t["--tpl-doc-link-underline"] = "underline"), t;
|
|
2269
2269
|
}
|
|
2270
|
-
function
|
|
2270
|
+
function ci(e, t, n) {
|
|
2271
2271
|
if (t) {
|
|
2272
2272
|
let n = t.getComponent(e);
|
|
2273
2273
|
if (n) return n;
|
|
2274
2274
|
}
|
|
2275
2275
|
return n[e.type] ?? null;
|
|
2276
2276
|
}
|
|
2277
|
-
function
|
|
2277
|
+
function li(e) {
|
|
2278
2278
|
let { padding: t, backgroundColor: n } = e.styles, r = {
|
|
2279
2279
|
padding: `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`,
|
|
2280
2280
|
backgroundColor: n || "transparent"
|
|
2281
2281
|
};
|
|
2282
2282
|
return e.type === "section" && e.borderRadius && e.borderRadius > 0 && (r.borderRadius = `${e.borderRadius}px`), r;
|
|
2283
2283
|
}
|
|
2284
|
-
function
|
|
2284
|
+
function ui(e) {
|
|
2285
2285
|
if (e.type !== "section" || !e.wrapper) return null;
|
|
2286
2286
|
let t = e.wrapper, n = {};
|
|
2287
2287
|
return t.backgroundColor && (n.backgroundColor = t.backgroundColor), t.padding && (n.padding = `${t.padding.top}px ${t.padding.right}px ${t.padding.bottom}px ${t.padding.left}px`), t.borderRadius && t.borderRadius > 0 && (n.borderRadius = `${t.borderRadius}px`), n;
|
|
2288
2288
|
}
|
|
2289
2289
|
//#endregion
|
|
2290
2290
|
//#region src/components/blocks/BlockWrapper.vue?vue&type=script&setup=true&lang.ts
|
|
2291
|
-
var
|
|
2291
|
+
var di = [
|
|
2292
2292
|
"data-block-id",
|
|
2293
2293
|
"data-block-type",
|
|
2294
2294
|
"data-tpl-picked"
|
|
2295
|
-
],
|
|
2295
|
+
], fi = ["aria-label"], pi = [
|
|
2296
2296
|
"aria-label",
|
|
2297
2297
|
"aria-pressed",
|
|
2298
2298
|
"title"
|
|
2299
|
-
],
|
|
2299
|
+
], mi = ["aria-label", "title"], hi = ["aria-label", "title"], gi = ["aria-label", "title"], _i = {
|
|
2300
2300
|
key: 1,
|
|
2301
2301
|
class: "tpl-block-hidden-overlay tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[5] tpl:flex tpl:items-center tpl:justify-center tpl:rounded-sm"
|
|
2302
|
-
},
|
|
2302
|
+
}, vi = { class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-2 tpl:py-1 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-chrome-text-muted)] tpl:shadow-[var(--tpl-shadow-sm)]" }, yi = {
|
|
2303
2303
|
key: 2,
|
|
2304
2304
|
class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
|
|
2305
|
-
},
|
|
2305
|
+
}, bi = ["aria-label", "title"], xi = {
|
|
2306
2306
|
key: 3,
|
|
2307
2307
|
class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
|
|
2308
|
-
},
|
|
2308
|
+
}, Si = ["aria-label"], Ci = /*#__PURE__*/ Xt(/* @__PURE__ */ R({
|
|
2309
2309
|
__name: "BlockWrapper",
|
|
2310
2310
|
props: {
|
|
2311
2311
|
block: {},
|
|
@@ -2317,7 +2317,7 @@ var fi = [
|
|
|
2317
2317
|
},
|
|
2318
2318
|
emits: ["select"],
|
|
2319
2319
|
setup(e, { emit: t }) {
|
|
2320
|
-
let n = b(() => import("./BlockIssueBadge-
|
|
2320
|
+
let n = b(() => import("./BlockIssueBadge-BEEY9o2o.js")), i = e, a = t, { t: o, format: s } = q(), c = p(it, null), u = v(null), f = C(() => c?.liftedBlockId.value === i.block.id), m = C(() => f.value ? s(o.blockActions.dragLifted, { block: i.block.type }) : o.blockActions.drag);
|
|
2321
2321
|
async function h() {
|
|
2322
2322
|
await d(), u.value?.focus();
|
|
2323
2323
|
}
|
|
@@ -2343,31 +2343,31 @@ var fi = [
|
|
|
2343
2343
|
let _ = C(() => !i.viewport || !i.block.visibility ? !1 : i.block.visibility[i.viewport] === !1), y = C(() => i.previewMode === !0 && _.value), x = C(() => i.viewport ? {
|
|
2344
2344
|
desktop: o.viewport.desktop,
|
|
2345
2345
|
mobile: o.viewport.mobile
|
|
2346
|
-
}[i.viewport] ?? i.viewport : ""), D = C(() => !!i.block.displayCondition),
|
|
2347
|
-
let e =
|
|
2346
|
+
}[i.viewport] ?? i.viewport : ""), D = C(() => !!i.block.displayCondition), A = p(lt, null), j = p(ft, null), N = p(dt, {}), P = C(() => N.savedBlocks?.isPicking.value === !0), ee = C(() => !i.nested && N.savedBlocks?.isAvailable.value === !0 && N.savedBlocks?.canCreate.value === !0), I = C(() => i.isSelected && !P.value), R = C(() => N.comments?.getBlockCount(i.block.id) ?? 0), B = C(() => {
|
|
2347
|
+
let e = li(i.block), t = {
|
|
2348
2348
|
padding: e.padding,
|
|
2349
2349
|
backgroundColor: e.backgroundColor
|
|
2350
2350
|
};
|
|
2351
2351
|
return e.borderRadius && (t.borderRadius = e.borderRadius), t;
|
|
2352
|
-
}), te = C(() =>
|
|
2352
|
+
}), te = C(() => ui(i.block));
|
|
2353
2353
|
function ne(e) {
|
|
2354
2354
|
i.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), a("select"));
|
|
2355
2355
|
}
|
|
2356
2356
|
function re() {
|
|
2357
|
-
|
|
2357
|
+
A?.deleteBlock(i.block.id);
|
|
2358
2358
|
}
|
|
2359
2359
|
function ie() {
|
|
2360
|
-
|
|
2360
|
+
A?.duplicateBlock(i.block);
|
|
2361
2361
|
}
|
|
2362
2362
|
function ae() {
|
|
2363
2363
|
N.savedBlocks?.startPicking(i.block.id);
|
|
2364
2364
|
}
|
|
2365
2365
|
function oe() {
|
|
2366
|
-
|
|
2366
|
+
j?.toggleBlock(i.block.id);
|
|
2367
2367
|
}
|
|
2368
2368
|
return (t, i) => y.value ? T("", !0) : (l(), w("div", {
|
|
2369
2369
|
key: 0,
|
|
2370
|
-
class:
|
|
2370
|
+
class: F(["tpl-block tpl:group tpl:relative tpl:cursor-pointer tpl:rounded-sm tpl:transition-shadow tpl:duration-150", {
|
|
2371
2371
|
"tpl-block--selected": e.isSelected,
|
|
2372
2372
|
"tpl-block--picked": e.picked,
|
|
2373
2373
|
"tpl-block--idle": !e.isSelected && !e.picked,
|
|
@@ -2394,29 +2394,29 @@ var fi = [
|
|
|
2394
2394
|
"aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
|
|
2395
2395
|
title: E(o).blockActions.drag,
|
|
2396
2396
|
onKeydown: g
|
|
2397
|
-
}, [z(E(
|
|
2397
|
+
}, [z(E(Bt), {
|
|
2398
2398
|
size: 14,
|
|
2399
2399
|
"stroke-width": 1.5
|
|
2400
|
-
})], 40,
|
|
2400
|
+
})], 40, pi),
|
|
2401
2401
|
M("button", {
|
|
2402
2402
|
class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors tpl:duration-150",
|
|
2403
2403
|
"aria-label": E(o).blockActions.duplicate,
|
|
2404
2404
|
title: E(o).blockActions.duplicate,
|
|
2405
2405
|
onClick: O(ie, ["stop"])
|
|
2406
|
-
}, [z(E(
|
|
2406
|
+
}, [z(E(Nt), {
|
|
2407
2407
|
size: 14,
|
|
2408
2408
|
"stroke-width": 1.5
|
|
2409
|
-
})], 8,
|
|
2409
|
+
})], 8, mi),
|
|
2410
2410
|
ee.value ? (l(), w("button", {
|
|
2411
2411
|
key: 0,
|
|
2412
2412
|
class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors tpl:duration-150",
|
|
2413
2413
|
"aria-label": E(o).blockActions.saveAsBlock,
|
|
2414
2414
|
title: E(o).blockActions.saveAsBlock,
|
|
2415
2415
|
onClick: O(ae, ["stop"])
|
|
2416
|
-
}, [z(E(
|
|
2416
|
+
}, [z(E(Mt), {
|
|
2417
2417
|
size: 14,
|
|
2418
2418
|
"stroke-width": 1.5
|
|
2419
|
-
})], 8,
|
|
2419
|
+
})], 8, hi)) : T("", !0),
|
|
2420
2420
|
M("button", {
|
|
2421
2421
|
class: "tpl-block-action-btn tpl-block-delete-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors tpl:duration-150",
|
|
2422
2422
|
"aria-label": E(o).blockActions.delete,
|
|
@@ -2425,13 +2425,13 @@ var fi = [
|
|
|
2425
2425
|
}, [z(E(Rt), {
|
|
2426
2426
|
size: 14,
|
|
2427
2427
|
"stroke-width": 1.5
|
|
2428
|
-
})], 8,
|
|
2429
|
-
], 8,
|
|
2430
|
-
_.value ? (l(), w("div",
|
|
2428
|
+
})], 8, gi)
|
|
2429
|
+
], 8, fi)) : T("", !0),
|
|
2430
|
+
_.value ? (l(), w("div", _i, [M("span", vi, [z(E(It), {
|
|
2431
2431
|
size: 12,
|
|
2432
2432
|
"stroke-width": 1.5
|
|
2433
|
-
}), L(" " +
|
|
2434
|
-
D.value && !_.value ? (l(), w("div",
|
|
2433
|
+
}), L(" " + k(E(s)(E(o).blockActions.hiddenOnViewport, { viewport: x.value })), 1)])])) : T("", !0),
|
|
2434
|
+
D.value && !_.value ? (l(), w("div", yi, [M("button", {
|
|
2435
2435
|
"data-testid": "condition-toggle",
|
|
2436
2436
|
class: "tpl-condition-toggle tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1 tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-primary)] tpl:border tpl:border-[var(--tpl-border)]",
|
|
2437
2437
|
"aria-label": E(o).blockActions.conditionToggle,
|
|
@@ -2440,59 +2440,59 @@ var fi = [
|
|
|
2440
2440
|
}, [z(E(qt), {
|
|
2441
2441
|
size: 12,
|
|
2442
2442
|
"stroke-width": 2
|
|
2443
|
-
})], 8,
|
|
2444
|
-
R.value > 0 && !_.value ? (l(), w("div",
|
|
2443
|
+
})], 8, bi)])) : T("", !0),
|
|
2444
|
+
R.value > 0 && !_.value ? (l(), w("div", xi, [M("button", {
|
|
2445
2445
|
class: "tpl-comment-indicator tpl:flex tpl:min-h-6 tpl:min-w-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-0.5 tpl:rounded-full tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-semibold tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-chrome-primary-light)] tpl:text-[var(--tpl-primary)]",
|
|
2446
2446
|
"aria-label": E(s)(E(o).blockActions.comments, { count: String(R.value) }),
|
|
2447
2447
|
onClick: i[0] ||= O((t) => E(N).comments?.openForBlock(e.block.id), ["stop"])
|
|
2448
|
-
}, [z(E(
|
|
2448
|
+
}, [z(E(Wt), {
|
|
2449
2449
|
size: 12,
|
|
2450
2450
|
"stroke-width": 2.5
|
|
2451
|
-
}), L(" " +
|
|
2451
|
+
}), L(" " + k(R.value), 1)], 8, Si)])) : T("", !0),
|
|
2452
2452
|
te.value ? (l(), w("div", {
|
|
2453
2453
|
key: 4,
|
|
2454
2454
|
class: "tpl-section-wrapper",
|
|
2455
|
-
style:
|
|
2455
|
+
style: S(te.value)
|
|
2456
2456
|
}, [M("div", {
|
|
2457
2457
|
class: "tpl-block-content",
|
|
2458
|
-
style:
|
|
2458
|
+
style: S(B.value)
|
|
2459
2459
|
}, [r(t.$slots, "default", {}, void 0, !0)], 4)], 4)) : (l(), w("div", {
|
|
2460
2460
|
key: 5,
|
|
2461
2461
|
class: "tpl-block-content",
|
|
2462
|
-
style:
|
|
2462
|
+
style: S(B.value)
|
|
2463
2463
|
}, [r(t.$slots, "default", {}, void 0, !0)], 4))
|
|
2464
|
-
], 10,
|
|
2464
|
+
], 10, di));
|
|
2465
2465
|
}
|
|
2466
2466
|
}), [["__scopeId", "data-v-8e4583ee"]]);
|
|
2467
2467
|
//#endregion
|
|
2468
2468
|
//#region src/utils/unwrapParagraph.ts
|
|
2469
|
-
function
|
|
2469
|
+
function wi(e) {
|
|
2470
2470
|
let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
|
|
2471
2471
|
return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
|
|
2472
2472
|
}
|
|
2473
2473
|
//#endregion
|
|
2474
2474
|
//#region src/components/blocks/TitleBlock.vue
|
|
2475
|
-
var
|
|
2475
|
+
var Ti = /* @__PURE__ */ R({
|
|
2476
2476
|
__name: "TitleBlock",
|
|
2477
2477
|
props: {
|
|
2478
2478
|
block: {},
|
|
2479
2479
|
viewport: {}
|
|
2480
2480
|
},
|
|
2481
2481
|
setup(e) {
|
|
2482
|
-
let t = e, n = b(() => import("./TitleEditor-
|
|
2482
|
+
let t = e, n = b(() => import("./TitleEditor-DzYRr18C.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: u } = ii(() => t.block.content), d = C(() => {
|
|
2483
2483
|
let e = {
|
|
2484
2484
|
fontSize: `${te[t.block.level]}px`,
|
|
2485
2485
|
textAlign: t.block.textAlign
|
|
2486
2486
|
};
|
|
2487
2487
|
return t.block.color && (e.color = t.block.color), t.block.fontFamily && (e.fontFamily = t.block.fontFamily), e;
|
|
2488
|
-
}), f = C(() => `h${t.block.level}`), p = C(() =>
|
|
2488
|
+
}), f = C(() => `h${t.block.level}`), p = C(() => wi(o.value));
|
|
2489
2489
|
return (t, o) => (l(), w("div", {
|
|
2490
2490
|
ref_key: "blockRef",
|
|
2491
2491
|
ref: i,
|
|
2492
2492
|
class: "tpl:min-h-[1em] tpl:w-full",
|
|
2493
|
-
style:
|
|
2493
|
+
style: S(d.value),
|
|
2494
2494
|
onDblclick: o[0] ||= (...e) => E(s) && E(s)(...e)
|
|
2495
|
-
}, [E(r) ? (l(),
|
|
2495
|
+
}, [E(r) ? (l(), A(E(n), {
|
|
2496
2496
|
key: 0,
|
|
2497
2497
|
block: e.block,
|
|
2498
2498
|
"toolbar-position": E(a),
|
|
@@ -2501,7 +2501,7 @@ var Ei = /* @__PURE__ */ R({
|
|
|
2501
2501
|
"block",
|
|
2502
2502
|
"toolbar-position",
|
|
2503
2503
|
"onDone"
|
|
2504
|
-
])) : (l(),
|
|
2504
|
+
])) : (l(), A(c(f.value), {
|
|
2505
2505
|
key: 1,
|
|
2506
2506
|
class: "tpl-text-content tpl:m-0 tpl:font-[inherit] tpl:text-[length:inherit] tpl:leading-tight tpl:outline-none [&_a]:tpl:underline [&_p]:tpl:m-0 [&_p]:tpl:mb-2 [&_p:last-child]:tpl:mb-0",
|
|
2507
2507
|
style: { color: "inherit" },
|
|
@@ -2511,16 +2511,16 @@ var Ei = /* @__PURE__ */ R({
|
|
|
2511
2511
|
});
|
|
2512
2512
|
//#endregion
|
|
2513
2513
|
//#region src/utils/sectionColumnDrop.ts
|
|
2514
|
-
function
|
|
2514
|
+
function Ei(e) {
|
|
2515
2515
|
return e.dataset.blockType !== "section" && e.dataset.paletteType !== "section";
|
|
2516
2516
|
}
|
|
2517
2517
|
//#endregion
|
|
2518
2518
|
//#region src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
|
|
2519
|
-
var
|
|
2519
|
+
var Di = { class: "tpl:w-full" }, Oi = {
|
|
2520
2520
|
key: 0,
|
|
2521
2521
|
"data-testid": "section-drop-hint",
|
|
2522
2522
|
class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:flex tpl:items-center tpl:justify-center tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]"
|
|
2523
|
-
},
|
|
2523
|
+
}, ki = /* @__PURE__ */ R({
|
|
2524
2524
|
__name: "SectionBlock",
|
|
2525
2525
|
props: {
|
|
2526
2526
|
block: {},
|
|
@@ -2528,12 +2528,12 @@ var Oi = { class: "tpl:w-full" }, ki = {
|
|
|
2528
2528
|
},
|
|
2529
2529
|
setup(e) {
|
|
2530
2530
|
let t = {
|
|
2531
|
-
title:
|
|
2532
|
-
paragraph:
|
|
2533
|
-
image:
|
|
2534
|
-
button:
|
|
2535
|
-
divider:
|
|
2536
|
-
custom:
|
|
2531
|
+
title: Ti,
|
|
2532
|
+
paragraph: oi,
|
|
2533
|
+
image: qr,
|
|
2534
|
+
button: qn,
|
|
2535
|
+
divider: Dr,
|
|
2536
|
+
custom: Tr
|
|
2537
2537
|
}, n = e, { t: r } = q(), i = Xe(K, "SectionBlock"), o = p(ft, null), s = p(xt, null), u = p(dt, {}), d = p(bt, null);
|
|
2538
2538
|
function m(e) {
|
|
2539
2539
|
let t = u.savedBlocks;
|
|
@@ -2569,7 +2569,7 @@ var Oi = { class: "tpl:w-full" }, ki = {
|
|
|
2569
2569
|
a[e] = r, i.updateBlock(n.block.id, { children: a });
|
|
2570
2570
|
}
|
|
2571
2571
|
function x(e) {
|
|
2572
|
-
return
|
|
2572
|
+
return ci(e, s, t);
|
|
2573
2573
|
}
|
|
2574
2574
|
function D(e, t) {
|
|
2575
2575
|
e.type === "custom" && i.updateBlock(e.id, {
|
|
@@ -2577,16 +2577,16 @@ var Oi = { class: "tpl:w-full" }, ki = {
|
|
|
2577
2577
|
dataSourceFetched: t.dataSourceFetched
|
|
2578
2578
|
});
|
|
2579
2579
|
}
|
|
2580
|
-
return (t, n) => (l(), w("div",
|
|
2580
|
+
return (t, n) => (l(), w("div", Di, [M("div", { class: F(["tpl:flex tpl:gap-0", { "tpl:flex-col": v.value }]) }, [(l(!0), w(I, null, f(_.value, (t, n) => (l(), w("div", {
|
|
2581
2581
|
key: n,
|
|
2582
|
-
class:
|
|
2583
|
-
style:
|
|
2582
|
+
class: F(["tpl:relative tpl:min-h-[60px] tpl:rounded", y(n).length === 0 ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
|
|
2583
|
+
style: S({ width: v.value ? "100%" : g.value[n] })
|
|
2584
2584
|
}, [z(E(ee), {
|
|
2585
2585
|
"model-value": y(n),
|
|
2586
2586
|
group: {
|
|
2587
2587
|
name: "blocks",
|
|
2588
2588
|
pull: !0,
|
|
2589
|
-
put: (e, t, n) => E(
|
|
2589
|
+
put: (e, t, n) => E(Ei)(n)
|
|
2590
2590
|
},
|
|
2591
2591
|
animation: 150,
|
|
2592
2592
|
"ghost-class": "tpl-ghost",
|
|
@@ -2599,7 +2599,7 @@ var Oi = { class: "tpl:w-full" }, ki = {
|
|
|
2599
2599
|
class: "tpl:min-h-[60px]",
|
|
2600
2600
|
"onUpdate:modelValue": (e) => b(n, e)
|
|
2601
2601
|
}, {
|
|
2602
|
-
default: h(() => [(l(!0), w(I, null, f(y(n), (t) => a((l(), w("div", { key: t.id }, [z(
|
|
2602
|
+
default: h(() => [(l(!0), w(I, null, f(y(n), (t) => a((l(), w("div", { key: t.id }, [z(Ci, {
|
|
2603
2603
|
block: t,
|
|
2604
2604
|
"is-selected": E(i).state.selectedBlockId === t.id,
|
|
2605
2605
|
viewport: e.viewport,
|
|
@@ -2607,7 +2607,7 @@ var Oi = { class: "tpl:w-full" }, ki = {
|
|
|
2607
2607
|
nested: "",
|
|
2608
2608
|
onSelect: (e) => m(t.id)
|
|
2609
2609
|
}, {
|
|
2610
|
-
default: h(() => [(l(),
|
|
2610
|
+
default: h(() => [(l(), A(c(x(t)), {
|
|
2611
2611
|
block: t,
|
|
2612
2612
|
viewport: e.viewport,
|
|
2613
2613
|
onFetchData: (e) => D(t, e),
|
|
@@ -2631,13 +2631,13 @@ var Oi = { class: "tpl:w-full" }, ki = {
|
|
|
2631
2631
|
"model-value",
|
|
2632
2632
|
"group",
|
|
2633
2633
|
"onUpdate:modelValue"
|
|
2634
|
-
]), y(n).length === 0 ? (l(), w("div",
|
|
2634
|
+
]), y(n).length === 0 ? (l(), w("div", Oi, [M("span", null, k(E(r).section.dropHere), 1)])) : T("", !0)], 6))), 128))], 2)]));
|
|
2635
2635
|
}
|
|
2636
|
-
}),
|
|
2636
|
+
}), Ai = pe, ji = {
|
|
2637
2637
|
small: 24,
|
|
2638
2638
|
medium: 32,
|
|
2639
2639
|
large: 48
|
|
2640
|
-
},
|
|
2640
|
+
}, Mi = [
|
|
2641
2641
|
"facebook",
|
|
2642
2642
|
"twitter",
|
|
2643
2643
|
"instagram",
|
|
@@ -2655,11 +2655,11 @@ var Oi = { class: "tpl:w-full" }, ki = {
|
|
|
2655
2655
|
"github",
|
|
2656
2656
|
"dribbble",
|
|
2657
2657
|
"behance"
|
|
2658
|
-
],
|
|
2658
|
+
], Ni = [
|
|
2659
2659
|
"width",
|
|
2660
2660
|
"height",
|
|
2661
2661
|
"fill"
|
|
2662
|
-
],
|
|
2662
|
+
], Pi = ["d"], Fi = /* @__PURE__ */ R({
|
|
2663
2663
|
__name: "SocialIconSvg",
|
|
2664
2664
|
props: {
|
|
2665
2665
|
platform: {},
|
|
@@ -2667,7 +2667,7 @@ var Oi = { class: "tpl:w-full" }, ki = {
|
|
|
2667
2667
|
iconSize: {}
|
|
2668
2668
|
},
|
|
2669
2669
|
setup(e) {
|
|
2670
|
-
let t = e, n = C(() =>
|
|
2670
|
+
let t = e, n = C(() => Ai[t.platform]), r = C(() => ji[t.iconSize]), i = C(() => {
|
|
2671
2671
|
let e = {
|
|
2672
2672
|
display: "inline-flex",
|
|
2673
2673
|
alignItems: "center",
|
|
@@ -2705,18 +2705,18 @@ var Oi = { class: "tpl:w-full" }, ki = {
|
|
|
2705
2705
|
default: return e;
|
|
2706
2706
|
}
|
|
2707
2707
|
}), a = C(() => Math.floor(r.value * .6)), o = C(() => t.iconStyle === "outlined" ? n.value.color : "#ffffff");
|
|
2708
|
-
return (e, t) => (l(), w("span", { style:
|
|
2708
|
+
return (e, t) => (l(), w("span", { style: S(i.value) }, [(l(), w("svg", {
|
|
2709
2709
|
width: a.value,
|
|
2710
2710
|
height: a.value,
|
|
2711
2711
|
viewBox: "0 0 24 24",
|
|
2712
2712
|
fill: o.value,
|
|
2713
2713
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2714
|
-
}, [M("path", { d: n.value.path }, null, 8,
|
|
2714
|
+
}, [M("path", { d: n.value.path }, null, 8, Pi)], 8, Ni))], 4));
|
|
2715
2715
|
}
|
|
2716
|
-
}),
|
|
2716
|
+
}), Ii = { class: "tpl:w-full" }, Li = ["href"], Ri = {
|
|
2717
2717
|
key: 1,
|
|
2718
2718
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
|
|
2719
|
-
},
|
|
2719
|
+
}, zi = /* @__PURE__ */ R({
|
|
2720
2720
|
__name: "SocialIconsBlock",
|
|
2721
2721
|
props: {
|
|
2722
2722
|
block: {},
|
|
@@ -2729,15 +2729,15 @@ var Oi = { class: "tpl:w-full" }, ki = {
|
|
|
2729
2729
|
gap: `${t.block.spacing}px`,
|
|
2730
2730
|
justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
|
|
2731
2731
|
})), i = C(() => t.block.icons.length > 0);
|
|
2732
|
-
return (t, a) => (l(), w("div",
|
|
2732
|
+
return (t, a) => (l(), w("div", Ii, [i.value ? (l(), w("div", {
|
|
2733
2733
|
key: 0,
|
|
2734
|
-
style:
|
|
2734
|
+
style: S(r.value)
|
|
2735
2735
|
}, [(l(!0), w(I, null, f(e.block.icons, (t) => (l(), w("a", {
|
|
2736
2736
|
key: t.id,
|
|
2737
2737
|
href: t.url || "#",
|
|
2738
2738
|
class: "tpl:cursor-default",
|
|
2739
2739
|
onClick: a[0] ||= O(() => {}, ["prevent"])
|
|
2740
|
-
}, [z(
|
|
2740
|
+
}, [z(Fi, {
|
|
2741
2741
|
platform: t.platform,
|
|
2742
2742
|
"icon-style": e.block.iconStyle,
|
|
2743
2743
|
"icon-size": e.block.iconSize
|
|
@@ -2745,16 +2745,16 @@ var Oi = { class: "tpl:w-full" }, ki = {
|
|
|
2745
2745
|
"platform",
|
|
2746
2746
|
"icon-style",
|
|
2747
2747
|
"icon-size"
|
|
2748
|
-
])], 8,
|
|
2748
|
+
])], 8, Li))), 128))], 4)) : (l(), w("div", Ri, [z(E(jt), { size: 16 }), M("span", null, k(E(n).social.addIcons), 1)]))]));
|
|
2749
2749
|
}
|
|
2750
|
-
}),
|
|
2750
|
+
}), Bi = { class: "tpl:w-full" }, Vi = {
|
|
2751
2751
|
key: 0,
|
|
2752
2752
|
class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
|
|
2753
2753
|
style: {
|
|
2754
2754
|
"background-color": "var(--tpl-bg-hover)",
|
|
2755
2755
|
color: "var(--tpl-text-dim)"
|
|
2756
2756
|
}
|
|
2757
|
-
},
|
|
2757
|
+
}, Hi = /* @__PURE__ */ R({
|
|
2758
2758
|
__name: "SpacerBlock",
|
|
2759
2759
|
props: {
|
|
2760
2760
|
block: {},
|
|
@@ -2766,23 +2766,23 @@ var Oi = { class: "tpl:w-full" }, ki = {
|
|
|
2766
2766
|
minHeight: `${t.block.height}px`,
|
|
2767
2767
|
...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
|
|
2768
2768
|
}));
|
|
2769
|
-
return (t, i) => (l(), w("div",
|
|
2770
|
-
style:
|
|
2771
|
-
class:
|
|
2772
|
-
}, [E(n).state.previewMode ? T("", !0) : (l(), w("span",
|
|
2769
|
+
return (t, i) => (l(), w("div", Bi, [M("div", {
|
|
2770
|
+
style: S(r.value),
|
|
2771
|
+
class: F(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:border-y tpl:border-dashed": !E(n).state.previewMode }])
|
|
2772
|
+
}, [E(n).state.previewMode ? T("", !0) : (l(), w("span", Vi, k(e.block.height) + "px ", 1))], 6)]));
|
|
2773
2773
|
}
|
|
2774
|
-
}),
|
|
2774
|
+
}), Ui = { class: "tpl:w-full" }, Wi = { key: 0 }, Gi = [
|
|
2775
2775
|
"aria-label",
|
|
2776
2776
|
"data-placeholder",
|
|
2777
2777
|
"onBlur"
|
|
2778
|
-
],
|
|
2778
|
+
], Ki = [
|
|
2779
2779
|
"aria-label",
|
|
2780
2780
|
"data-placeholder",
|
|
2781
2781
|
"onBlur"
|
|
2782
|
-
],
|
|
2782
|
+
], qi = {
|
|
2783
2783
|
key: 1,
|
|
2784
2784
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
|
|
2785
|
-
},
|
|
2785
|
+
}, Ji = /*#__PURE__*/ Xt(/* @__PURE__ */ R({
|
|
2786
2786
|
__name: "TableBlock",
|
|
2787
2787
|
props: {
|
|
2788
2788
|
block: {},
|
|
@@ -2827,38 +2827,38 @@ var Oi = { class: "tpl:w-full" }, ki = {
|
|
|
2827
2827
|
} : n);
|
|
2828
2828
|
i.updateBlock(n.block.id, { rows: o });
|
|
2829
2829
|
}
|
|
2830
|
-
return (e, n) => (l(), w("div",
|
|
2830
|
+
return (e, n) => (l(), w("div", Ui, [o.value ? (l(), w("table", {
|
|
2831
2831
|
key: 0,
|
|
2832
|
-
style:
|
|
2832
|
+
style: S(s.value),
|
|
2833
2833
|
class: "tpl-table-editable"
|
|
2834
|
-
}, [d.value ? (l(), w("thead",
|
|
2834
|
+
}, [d.value ? (l(), w("thead", Wi, [M("tr", null, [(l(!0), w(I, null, f(d.value.cells, (e) => a((l(), w("th", {
|
|
2835
2835
|
key: e.id,
|
|
2836
|
-
style:
|
|
2836
|
+
style: S(u.value),
|
|
2837
2837
|
"aria-label": E(r).table.cellPlaceholder,
|
|
2838
2838
|
contenteditable: "true",
|
|
2839
2839
|
"data-placeholder": E(r).table.cellPlaceholder,
|
|
2840
2840
|
onBlur: (t) => h(d.value.id, e.id, t),
|
|
2841
2841
|
onKeydown: n[0] ||= x(O((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
2842
2842
|
onClick: O(m, ["stop"])
|
|
2843
|
-
}, null, 44,
|
|
2843
|
+
}, null, 44, Gi)), [[t, e.content]])), 128))])])) : T("", !0), M("tbody", null, [(l(!0), w(I, null, f(p.value, (e) => (l(), w("tr", { key: e.id }, [(l(!0), w(I, null, f(e.cells, (i) => a((l(), w("td", {
|
|
2844
2844
|
key: i.id,
|
|
2845
|
-
style:
|
|
2845
|
+
style: S(c.value),
|
|
2846
2846
|
"aria-label": E(r).table.cellPlaceholder,
|
|
2847
2847
|
contenteditable: "true",
|
|
2848
2848
|
"data-placeholder": E(r).table.cellPlaceholder,
|
|
2849
2849
|
onBlur: (t) => h(e.id, i.id, t),
|
|
2850
2850
|
onKeydown: n[1] ||= x(O((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
2851
2851
|
onClick: O(m, ["stop"])
|
|
2852
|
-
}, null, 44,
|
|
2852
|
+
}, null, 44, Ki)), [[t, i.content]])), 128))]))), 128))])], 4)) : (l(), w("div", qi, [z(E(Kt), { size: 16 }), M("span", null, k(E(r).table.empty), 1)]))]));
|
|
2853
2853
|
}
|
|
2854
|
-
}), [["__scopeId", "data-v-963ac422"]]),
|
|
2854
|
+
}), [["__scopeId", "data-v-963ac422"]]), Yi = /* @__PURE__ */ R({
|
|
2855
2855
|
__name: "VideoPlayButton",
|
|
2856
2856
|
props: { hoverEffect: {
|
|
2857
2857
|
type: Boolean,
|
|
2858
2858
|
default: !1
|
|
2859
2859
|
} },
|
|
2860
2860
|
setup(e) {
|
|
2861
|
-
return (t, n) => (l(), w("div", { class:
|
|
2861
|
+
return (t, n) => (l(), w("div", { class: F(["tpl:absolute tpl:inset-0 tpl:flex tpl:items-center tpl:justify-center tpl:bg-black/30", e.hoverEffect && "tpl:transition-opacity tpl:group-hover:bg-black/40"]) }, [...n[0] ||= [M("div", { class: "tpl:flex tpl:size-16 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-white/90 tpl:shadow-lg" }, [M("svg", {
|
|
2862
2862
|
class: "tpl:ml-1 tpl:text-[var(--tpl-danger)]",
|
|
2863
2863
|
width: "28",
|
|
2864
2864
|
height: "28",
|
|
@@ -2869,7 +2869,7 @@ var Oi = { class: "tpl:w-full" }, ki = {
|
|
|
2869
2869
|
});
|
|
2870
2870
|
//#endregion
|
|
2871
2871
|
//#region src/utils/videoThumbnail.ts
|
|
2872
|
-
function
|
|
2872
|
+
function Xi(e) {
|
|
2873
2873
|
if (!e) return {
|
|
2874
2874
|
platform: "unknown",
|
|
2875
2875
|
videoId: null,
|
|
@@ -2901,25 +2901,25 @@ function Zi(e) {
|
|
|
2901
2901
|
thumbnailUrl: null
|
|
2902
2902
|
};
|
|
2903
2903
|
}
|
|
2904
|
-
function
|
|
2905
|
-
return t ||
|
|
2904
|
+
function Zi(e, t) {
|
|
2905
|
+
return t || Xi(e).thumbnailUrl;
|
|
2906
2906
|
}
|
|
2907
2907
|
//#endregion
|
|
2908
2908
|
//#region src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
|
|
2909
|
-
var
|
|
2909
|
+
var Qi = ["src", "alt"], $i = {
|
|
2910
2910
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
2911
2911
|
style: { opacity: "0.7" }
|
|
2912
|
-
},
|
|
2912
|
+
}, ea = ["href"], ta = ["src", "alt"], na = ["src", "alt"], ra = {
|
|
2913
2913
|
key: 3,
|
|
2914
2914
|
class: "tpl:flex tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
|
|
2915
|
-
},
|
|
2915
|
+
}, ia = /* @__PURE__ */ R({
|
|
2916
2916
|
__name: "VideoBlock",
|
|
2917
2917
|
props: {
|
|
2918
2918
|
block: {},
|
|
2919
2919
|
viewport: {}
|
|
2920
2920
|
},
|
|
2921
2921
|
setup(e) {
|
|
2922
|
-
let t = e, { t: n } = q(), { syntax: r } = Y(), i = C(() => H(t.block.url, r) || H(t.block.thumbnailUrl, r)), a = Q(() => i.value ? void 0 : t.block.thumbnailUrl || void 0), o = Q(() => i.value ? t.block.placeholderUrl : void 0), s = C(() => i.value ? null : t.block.thumbnailUrl ? a.value ?? null :
|
|
2922
|
+
let t = e, { t: n } = q(), { syntax: r } = Y(), i = C(() => H(t.block.url, r) || H(t.block.thumbnailUrl, r)), a = Q(() => i.value ? void 0 : t.block.thumbnailUrl || void 0), o = Q(() => i.value ? t.block.placeholderUrl : void 0), s = C(() => i.value ? null : t.block.thumbnailUrl ? a.value ?? null : Zi(t.block.url)), c = C(() => ({ textAlign: t.block.align })), u = C(() => {
|
|
2923
2923
|
let e = t.block.align;
|
|
2924
2924
|
return {
|
|
2925
2925
|
maxWidth: "100%",
|
|
@@ -2931,66 +2931,66 @@ var $i = ["src", "alt"], ea = {
|
|
|
2931
2931
|
}), d = C(() => H(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
|
|
2932
2932
|
return (t, r) => (l(), w("div", {
|
|
2933
2933
|
class: "tpl:w-full",
|
|
2934
|
-
style:
|
|
2934
|
+
style: S(c.value)
|
|
2935
2935
|
}, [i.value && e.block.placeholderUrl ? (l(), w("div", {
|
|
2936
2936
|
key: 0,
|
|
2937
2937
|
class: "tpl:relative tpl:inline-block",
|
|
2938
|
-
style:
|
|
2938
|
+
style: S(u.value)
|
|
2939
2939
|
}, [M("img", {
|
|
2940
2940
|
class: "tpl:w-full tpl:border-0",
|
|
2941
2941
|
src: E(o),
|
|
2942
2942
|
alt: e.block.alt
|
|
2943
|
-
}, null, 8,
|
|
2943
|
+
}, null, 8, Qi), z(Yi)], 4)) : i.value ? (l(), w("div", {
|
|
2944
2944
|
key: 1,
|
|
2945
2945
|
class: "tpl:relative tpl:!flex tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
|
|
2946
|
-
style:
|
|
2946
|
+
style: S([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
|
|
2947
2947
|
}, [z(E(Ht), {
|
|
2948
2948
|
size: 36,
|
|
2949
2949
|
"stroke-width": 1.5,
|
|
2950
2950
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
2951
2951
|
style: { opacity: "0.5" }
|
|
2952
|
-
}), M("span",
|
|
2952
|
+
}), M("span", $i, [z(Gn, { text: d.value }, null, 8, ["text"])])], 4)) : s.value ? (l(), w(I, { key: 2 }, [e.block.url ? (l(), w("a", {
|
|
2953
2953
|
key: 0,
|
|
2954
2954
|
href: e.block.url,
|
|
2955
2955
|
target: "_blank",
|
|
2956
2956
|
rel: "noopener noreferrer",
|
|
2957
2957
|
class: "tpl:group tpl:relative tpl:inline-block",
|
|
2958
|
-
style:
|
|
2958
|
+
style: S(u.value),
|
|
2959
2959
|
onClick: r[0] ||= O(() => {}, ["prevent"])
|
|
2960
2960
|
}, [M("img", {
|
|
2961
2961
|
class: "tpl:w-full tpl:border-0",
|
|
2962
2962
|
src: s.value,
|
|
2963
2963
|
alt: e.block.alt
|
|
2964
|
-
}, null, 8,
|
|
2964
|
+
}, null, 8, ta), z(Yi, { "hover-effect": "" })], 12, ea)) : (l(), w("div", {
|
|
2965
2965
|
key: 1,
|
|
2966
2966
|
class: "tpl:relative tpl:inline-block",
|
|
2967
|
-
style:
|
|
2967
|
+
style: S(u.value)
|
|
2968
2968
|
}, [M("img", {
|
|
2969
2969
|
class: "tpl:w-full tpl:border-0",
|
|
2970
2970
|
src: s.value,
|
|
2971
2971
|
alt: e.block.alt
|
|
2972
|
-
}, null, 8,
|
|
2972
|
+
}, null, 8, na), z(Yi)], 4))], 64)) : (l(), w("div", ra, [z(E(Ht), {
|
|
2973
2973
|
size: 40,
|
|
2974
2974
|
"stroke-width": 1.5,
|
|
2975
2975
|
class: "tpl:text-[var(--tpl-border-light)]"
|
|
2976
|
-
}), M("span", null,
|
|
2977
|
-
}
|
|
2978
|
-
}),
|
|
2979
|
-
section:
|
|
2980
|
-
title:
|
|
2981
|
-
paragraph:
|
|
2982
|
-
image:
|
|
2983
|
-
button:
|
|
2984
|
-
divider:
|
|
2985
|
-
video:
|
|
2986
|
-
social:
|
|
2987
|
-
menu:
|
|
2988
|
-
table:
|
|
2989
|
-
spacer:
|
|
2990
|
-
html:
|
|
2991
|
-
countdown: b(() => import("./CountdownBlock-
|
|
2976
|
+
}), M("span", null, k(E(n).video.addVideo), 1)]))], 4));
|
|
2977
|
+
}
|
|
2978
|
+
}), aa = {
|
|
2979
|
+
section: ki,
|
|
2980
|
+
title: Ti,
|
|
2981
|
+
paragraph: oi,
|
|
2982
|
+
image: qr,
|
|
2983
|
+
button: qn,
|
|
2984
|
+
divider: Dr,
|
|
2985
|
+
video: ia,
|
|
2986
|
+
social: zi,
|
|
2987
|
+
menu: Zr,
|
|
2988
|
+
table: Ji,
|
|
2989
|
+
spacer: Hi,
|
|
2990
|
+
html: Nr,
|
|
2991
|
+
countdown: b(() => import("./CountdownBlock-vLTkTI9e.js"))
|
|
2992
2992
|
};
|
|
2993
|
-
function
|
|
2993
|
+
function oa(e) {
|
|
2994
2994
|
let { editor: t, config: n, translations: r, fontsManager: a } = e, { t: s, format: c } = q(r);
|
|
2995
2995
|
t.setUiTheme(n.uiTheme ?? "auto");
|
|
2996
2996
|
let { resolvedTheme: l } = En(C(() => t.state.uiTheme)), d = v(n.theme ?? {}), { themeStyles: f } = On({
|
|
@@ -3027,11 +3027,11 @@ function sa(e) {
|
|
|
3027
3027
|
e.length > 0 && $.warn(`config.colors locks custom colours, but these block/template default colours fall outside colors.presets: ${e.join(", ")}. New blocks start on a colour the palette can't reselect — set blockDefaults / templateDefaults from the same palette.`);
|
|
3028
3028
|
}
|
|
3029
3029
|
let x = jn();
|
|
3030
|
-
In(x,
|
|
3030
|
+
In(x, aa);
|
|
3031
3031
|
let S = /* @__PURE__ */ new Set();
|
|
3032
3032
|
function w(e) {
|
|
3033
3033
|
for (let t of e) {
|
|
3034
|
-
x.registerCustom(t,
|
|
3034
|
+
x.registerCustom(t, Tr);
|
|
3035
3035
|
for (let e of Vn(t, b)) S.has(e.id) || (S.add(e.id), $.warn(e.message));
|
|
3036
3036
|
}
|
|
3037
3037
|
}
|
|
@@ -3107,6 +3107,6 @@ function sa(e) {
|
|
|
3107
3107
|
};
|
|
3108
3108
|
}
|
|
3109
3109
|
//#endregion
|
|
3110
|
-
export { Bn as A,
|
|
3110
|
+
export { Bn as A, sr as C, $n as D, er as E, pn as F, dn as I, ln as L, wn as M, Cn as N, Xn as O, _n as P, $t as R, fr as S, tr as T, Nr as _, zi as a, gr as b, Ti as c, si as d, ci as f, Fr as g, qr as h, Hi as i, $ as j, qn as k, Ci as l, Zr as m, ia as n, Mi as o, oi as p, Ji as r, ki as s, oa as t, li as u, Dr as v, or as w, mr as x, Tr as y };
|
|
3111
3111
|
|
|
3112
|
-
//# sourceMappingURL=useEditorCore-
|
|
3112
|
+
//# sourceMappingURL=useEditorCore-C_nUXiph.js.map
|