@templatical/editor 0.61.0 → 0.62.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/LICENSE +21 -109
- package/README.md +3 -3
- package/dist/{AiAltTextPopover-DSA1wiiW.js → AiAltTextPopover-C1Ike67q.js} +3 -4
- package/dist/{AiAltTextReview-B9-vfzCj.js → AiAltTextReview-BjT7_PoG.js} +2 -3
- package/dist/{AiChatPanel-DF5TvO9H.js → AiChatPanel-C82fJozf.js} +3 -4
- package/dist/{AiPanels-zRqC5DIP.js → AiPanels-sam_GMNs.js} +1 -1
- package/dist/{AiRewriteMenu-CmZKTO-O.js → AiRewriteMenu-CpBcT6QL.js} +3 -4
- package/dist/{BlockIssueBadge-Bug5iqcK.js → BlockIssueBadge-D3OmWkCh.js} +2 -3
- package/dist/{BlockPreviewCanvas-knSyWaCP.js → BlockPreviewCanvas-BHRmnq0w.js} +6 -6
- package/dist/{CollaborationNotices-BM35YG72.js → CollaborationNotices-Cmc7Ziuf.js} +1 -1
- package/dist/{CollaboratorBar-DMsEOndt.js → CollaboratorBar-DVtWefk1.js} +1 -1
- package/dist/{CommentsPanel-BMYvXRKK.js → CommentsPanel-BSt22Zw9.js} +1 -1
- package/dist/{cdn/chunks/CommentsSidebar-BEiOQ_zT.js → CommentsSidebar-C8qbxjyN.js} +228 -205
- package/dist/{CountdownBlock-AYPypmcX.js → CountdownBlock-bFAELCB6.js} +3 -4
- package/dist/{CountdownToolbar-BprSuPJk.js → CountdownToolbar-CJbPEVV5.js} +4 -4
- package/dist/{IssuesPanel-CeCvUfa7.js → IssuesPanel-CKYf6K84.js} +4 -5
- package/dist/{LanguageMenu-CkGqLYjf.js → LanguageMenu-BFOEQEPy.js} +5 -6
- package/dist/{LocaleNotices-D0be8ovO.js → LocaleNotices-24UYFxo2.js} +7 -8
- package/dist/{LogicTagInsertButton-BzEZUTRZ.js → LogicTagInsertButton-DdaafrjI.js} +95 -96
- package/dist/{MergeTagInput-By2FSStk.js → MergeTagInput-BXM6-eF-.js} +1 -1
- package/dist/{MergeTagModeToggle-DtjOZhoD.js → MergeTagModeToggle-ooA_Ytfq.js} +2 -3
- package/dist/{MergeTagTextarea-BjHlamJv.js → MergeTagTextarea-B86MPY89.js} +3 -4
- package/dist/{ParagraphEditor-Ctu4fSsl.js → ParagraphEditor-C15Glzy_.js} +78 -79
- package/dist/{RestoreVersionDialog-DvZoTJVa.js → RestoreVersionDialog-C13Bo4b0.js} +2 -2
- package/dist/{RichTextEditorContent-B1p7Ykq8.js → RichTextEditorContent-BNMBOkdy.js} +5 -6
- package/dist/{SaveBlockDialog-DHfT-Tpx.js → SaveBlockDialog-lm_1-2w2.js} +23 -24
- package/dist/{SavedBlocksBrowserModal-BjJuuXQv.js → SavedBlocksBrowserModal-BjUZG5_S.js} +8 -9
- package/dist/{SavedBlocksPanels-D6eiMQZ3.js → SavedBlocksPanels-Bj3LAXcL.js} +1 -1
- package/dist/{SavedBlocksPickBar-BkgCDSXe.js → SavedBlocksPickBar-DOTr0Imx.js} +2 -2
- package/dist/{TemplateSettings-DQAbNsiS.js → TemplateSettings-Z-i-_xF5.js} +19 -20
- package/dist/{TestEmailModal-m_AEa36T.js → TestEmailModal-ClEnoNEB.js} +17 -18
- package/dist/{TestEmailPanel-OApkuaVd.js → TestEmailPanel-CVmrt-d9.js} +1 -1
- package/dist/{TitleEditor-Cwdtfk15.js → TitleEditor-BHZF5C6q.js} +8 -9
- package/dist/{Toolbar-D_T55elL.js → Toolbar-bwAdFK4A.js} +308 -310
- package/dist/{TplModal-2MKm5y6r.js → TplModal-QWmSO1nR.js} +4 -4
- package/dist/{VersionHistoryMenu-B3-xJ7GO.js → VersionHistoryMenu-qoOkZKal.js} +6 -7
- package/dist/{VersionHistoryPanels-CCM0IQBg.js → VersionHistoryPanels-D82hgc2v.js} +1 -1
- package/dist/{VersionPreviewBanner-DLAB4ZbS.js → VersionPreviewBanner-DEN9rl6y.js} +1 -1
- package/dist/{WrapperBlock-BZl10HLy.js → WrapperBlock-32v93A9w.js} +4 -4
- package/dist/{blockTypeIcons-C691ZY1l.js → blockTypeIcons-C1S2wVx8.js} +4 -4
- package/dist/bundle-stats.json +8 -8
- package/dist/{ca-C8N05sCU.js → ca-BIseSbs-.js} +1 -2
- package/dist/cdn/chunks/{AiAltTextPopover-BLNN_Pnd.js → AiAltTextPopover-mDx_knAl.js} +4 -5
- package/dist/cdn/chunks/{AiAltTextPopover-BLNN_Pnd.js.map → AiAltTextPopover-mDx_knAl.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-Db8vSNpe.js → AiAltTextReview-Dmg8iVWD.js} +3 -4
- package/dist/cdn/chunks/{AiAltTextReview-Db8vSNpe.js.map → AiAltTextReview-Dmg8iVWD.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-BYAsgmoC.js → AiChatPanel-CEDr_x8G.js} +4 -5
- package/dist/cdn/chunks/{AiChatPanel-BYAsgmoC.js.map → AiChatPanel-CEDr_x8G.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-MY_YPls8.js → AiPanels-qJgLTYPs.js} +2 -2
- package/dist/cdn/chunks/{AiPanels-MY_YPls8.js.map → AiPanels-qJgLTYPs.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-BSePiXe_.js → AiRewriteMenu-2a9WjizC.js} +4 -5
- package/dist/cdn/chunks/{AiRewriteMenu-BSePiXe_.js.map → AiRewriteMenu-2a9WjizC.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-fYeNnepj.js → BlockIssueBadge-D87CYoPw.js} +3 -4
- package/dist/cdn/chunks/{BlockIssueBadge-fYeNnepj.js.map → BlockIssueBadge-D87CYoPw.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-B153A3hu.js → BlockPreviewCanvas-DDDKuWJz.js} +8 -8
- package/dist/cdn/chunks/{BlockPreviewCanvas-B153A3hu.js.map → BlockPreviewCanvas-DDDKuWJz.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-COkmBmps.js → CollaborationNotices-DyzhN_Ns.js} +2 -2
- package/dist/cdn/chunks/{CollaborationNotices-COkmBmps.js.map → CollaborationNotices-DyzhN_Ns.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-BSzI8YIU.js → CollaboratorBar-bNFuQxxP.js} +2 -2
- package/dist/cdn/chunks/{CollaboratorBar-BSzI8YIU.js.map → CollaboratorBar-bNFuQxxP.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-R27fqh9O.js → CommentsPanel-D-D2qsS6.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-R27fqh9O.js.map → CommentsPanel-D-D2qsS6.js.map} +1 -1
- package/dist/cdn/chunks/CommentsSidebar-CCVp8M2T.js +479 -0
- package/dist/cdn/chunks/CommentsSidebar-CCVp8M2T.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock--hlKE2aj.js → CountdownBlock-5hUzymeP.js} +4 -5
- package/dist/cdn/chunks/{CountdownBlock--hlKE2aj.js.map → CountdownBlock-5hUzymeP.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-DOhXnbsq.js → CountdownToolbar-DaGxwKfG.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-DOhXnbsq.js.map → CountdownToolbar-DaGxwKfG.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DgxiS3hF.js → IssuesPanel-DQQo1B1z.js} +10 -11
- package/dist/cdn/chunks/IssuesPanel-DQQo1B1z.js.map +1 -0
- package/dist/cdn/chunks/{LanguageMenu-B6kt8SgX.js → LanguageMenu-2Er64H2b.js} +6 -7
- package/dist/cdn/chunks/{LanguageMenu-B6kt8SgX.js.map → LanguageMenu-2Er64H2b.js.map} +1 -1
- package/dist/cdn/chunks/{LocaleNotices-Bleg4gTu.js → LocaleNotices-DSfOyyyf.js} +8 -9
- package/dist/cdn/chunks/{LocaleNotices-Bleg4gTu.js.map → LocaleNotices-DSfOyyyf.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-DGg1Wvhp.js → LogicTagInsertButton-CumMM1rP.js} +7 -8
- package/dist/cdn/chunks/{LogicTagInsertButton-DGg1Wvhp.js.map → LogicTagInsertButton-CumMM1rP.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-BVfTwujW.js → MergeTagInput-Dm_QiG96.js} +2 -2
- package/dist/cdn/chunks/{MergeTagInput-BVfTwujW.js.map → MergeTagInput-Dm_QiG96.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BoI0C1Y6.js → MergeTagModeToggle-Bir7lkLe.js} +3 -4
- package/dist/cdn/chunks/{MergeTagModeToggle-BoI0C1Y6.js.map → MergeTagModeToggle-Bir7lkLe.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-DGDv-pdn.js → MergeTagTextarea-B_IFeWfZ.js} +4 -5
- package/dist/cdn/chunks/{MergeTagTextarea-DGDv-pdn.js.map → MergeTagTextarea-B_IFeWfZ.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-D0q36Myd.js → ParagraphEditor-CWjMxuy0.js} +135 -136
- package/dist/cdn/chunks/{ParagraphEditor-D0q36Myd.js.map → ParagraphEditor-CWjMxuy0.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-CJggFdbi.js → RestoreVersionDialog-BsfulSK7.js} +3 -3
- package/dist/cdn/chunks/{RestoreVersionDialog-CJggFdbi.js.map → RestoreVersionDialog-BsfulSK7.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-D3ihUF8v.js → RichTextEditorContent-CuvFVxEq.js} +6 -7
- package/dist/cdn/chunks/{RichTextEditorContent-D3ihUF8v.js.map → RichTextEditorContent-CuvFVxEq.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-BzES5tqd.js → SaveBlockDialog-8zxJlHw2.js} +25 -26
- package/dist/cdn/chunks/{SaveBlockDialog-BzES5tqd.js.map → SaveBlockDialog-8zxJlHw2.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CLNcZcLd.js → SavedBlocksBrowserModal-DtaGW2H4.js} +9 -10
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CLNcZcLd.js.map → SavedBlocksBrowserModal-DtaGW2H4.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-R0W9LElD.js → SavedBlocksPanels-CtDhdbiD.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-R0W9LElD.js.map → SavedBlocksPanels-CtDhdbiD.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-JNi5Rx4V.js → SavedBlocksPickBar-DovcCaoW.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPickBar-JNi5Rx4V.js.map → SavedBlocksPickBar-DovcCaoW.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-C5wsNcgX.js → TemplateSettings-B8Ch5ps8.js} +20 -21
- package/dist/cdn/chunks/{TemplateSettings-C5wsNcgX.js.map → TemplateSettings-B8Ch5ps8.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-BxIAwjww.js → TestEmailModal-D1EuQSgA.js} +16 -17
- package/dist/cdn/chunks/{TestEmailModal-BxIAwjww.js.map → TestEmailModal-D1EuQSgA.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-B8BsWXjE.js → TestEmailPanel-0iG-utN7.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-B8BsWXjE.js.map → TestEmailPanel-0iG-utN7.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-DhcI1aRS.js → TitleEditor-k2vSwKxN.js} +17 -18
- package/dist/cdn/chunks/{TitleEditor-DhcI1aRS.js.map → TitleEditor-k2vSwKxN.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-Ch3h2BUs.js → Toolbar-BnTSuZQb.js} +310 -312
- package/dist/cdn/chunks/Toolbar-BnTSuZQb.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-CPOqOxVf.js → TplModal-iRdN04Sa.js} +5 -5
- package/dist/cdn/chunks/{TplModal-CPOqOxVf.js.map → TplModal-iRdN04Sa.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-DTDO48HI.js → VersionHistoryMenu-DlPr3twf.js} +7 -8
- package/dist/cdn/chunks/{VersionHistoryMenu-DTDO48HI.js.map → VersionHistoryMenu-DlPr3twf.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-CVrXHYxT.js → VersionHistoryPanels-Bw5UHEvo.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-CVrXHYxT.js.map → VersionHistoryPanels-Bw5UHEvo.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-C1H_fYAr.js → VersionPreviewBanner-anJgZOcw.js} +2 -2
- package/dist/cdn/chunks/VersionPreviewBanner-anJgZOcw.js.map +1 -0
- package/dist/cdn/chunks/{WrapperBlock-B8SJ7Q4w.js → WrapperBlock-CFjCtyvx.js} +5 -5
- package/dist/cdn/chunks/{WrapperBlock-B8SJ7Q4w.js.map → WrapperBlock-CFjCtyvx.js.map} +1 -1
- package/dist/cdn/chunks/{ca-C8N05sCU.js → ca-BIseSbs-.js} +2 -3
- package/dist/cdn/chunks/{ca-C8N05sCU.js.map → ca-BIseSbs-.js.map} +1 -1
- package/dist/cdn/chunks/{composables-CKXPwWo9.js → composables-Nir0umYc.js} +444 -464
- package/dist/cdn/chunks/composables-Nir0umYc.js.map +1 -0
- package/dist/{da-Dno_4nGy.js → cdn/chunks/da-DN46iRXS.js} +3 -2
- package/dist/cdn/chunks/{da-Dno_4nGy.js.map → da-DN46iRXS.js.map} +1 -1
- package/dist/{de-DRR5JSkh.js → cdn/chunks/de-Dyk8PPCm.js} +3 -2
- package/dist/cdn/chunks/{de-DRR5JSkh.js.map → de-Dyk8PPCm.js.map} +1 -1
- package/dist/{en-DAcLbbpg.js → cdn/chunks/en-BzMbMmgz.js} +3 -2
- package/dist/cdn/chunks/{en-DAcLbbpg.js.map → en-BzMbMmgz.js.map} +1 -1
- package/dist/{es-BcEQLQxe.js → cdn/chunks/es-KSHEXYyf.js} +3 -2
- package/dist/cdn/chunks/{es-BcEQLQxe.js.map → es-KSHEXYyf.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-Bq9nXmBP.js → extensions-Br2hHeiR.js} +5 -5
- package/dist/cdn/chunks/{extensions-Bq9nXmBP.js.map → extensions-Br2hHeiR.js.map} +1 -1
- package/dist/{fr-CNQG7ESr.js → cdn/chunks/fr-DtKHfZyk.js} +3 -2
- package/dist/cdn/chunks/{fr-CNQG7ESr.js.map → fr-DtKHfZyk.js.map} +1 -1
- package/dist/{ja-CMxWxqSH.js → cdn/chunks/ja-DUSaDVPA.js} +3 -2
- package/dist/cdn/chunks/{ja-CMxWxqSH.js.map → ja-DUSaDVPA.js.map} +1 -1
- package/dist/{nl-BjyYZDkC.js → cdn/chunks/nl-DQbuxzD6.js} +3 -2
- package/dist/cdn/chunks/{nl-BjyYZDkC.js.map → nl-DQbuxzD6.js.map} +1 -1
- package/dist/{pt-BR-DC2A3C0v.js → cdn/chunks/pt-BR-CxpxBtvc.js} +3 -2
- package/dist/cdn/chunks/{pt-BR-DC2A3C0v.js.map → pt-BR-CxpxBtvc.js.map} +1 -1
- package/dist/cdn/chunks/rolldown-runtime-CGnMp29N.js +10 -0
- package/dist/cdn/chunks/{socialIcons-CSe4YJ52.js → socialIcons-CXQfKLUV.js} +156 -136
- package/dist/cdn/chunks/socialIcons-CXQfKLUV.js.map +1 -0
- package/dist/cdn/chunks/{src-Bk1LF1np.js → src-9e0wFfHH.js} +4 -2
- package/dist/cdn/chunks/src-9e0wFfHH.js.map +1 -0
- package/dist/cdn/chunks/src-A0kzK-pR.js.map +1 -1
- package/dist/cdn/chunks/{src-edESkGqO.js → src-C9jjLNMg.js} +2 -2
- package/dist/cdn/chunks/{src-edESkGqO.js.map → src-C9jjLNMg.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-DDhueoan.js → tiptap-DLW5XdqI.js} +2 -2
- package/dist/cdn/chunks/{tiptap-DDhueoan.js.map → tiptap-DLW5XdqI.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorRoot-D0Lp2x4_.js → useEditorRoot-BPVxLYFD.js} +2 -2
- package/dist/cdn/chunks/{useEditorRoot-D0Lp2x4_.js.map → useEditorRoot-BPVxLYFD.js.map} +1 -1
- package/dist/cdn/chunks/useI18n-DwP1ksBW.js +24 -0
- package/dist/cdn/chunks/{keys-ywH4jHJ2.js.map → useI18n-DwP1ksBW.js.map} +1 -1
- package/dist/cdn/chunks/{useLanguageName-DDhdVpqh.js → useLanguageName-CeuoO9WZ.js} +2 -2
- package/dist/cdn/chunks/{useLanguageName-DDhdVpqh.js.map → useLanguageName-CeuoO9WZ.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-CKtQlJDa.js → useLogicTag-gphGbQfy.js} +3 -3
- package/dist/cdn/chunks/{useLogicTag-CKtQlJDa.js.map → useLogicTag-gphGbQfy.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-Dwy3U0PI.js → useMergeTag-QM-tkBc6.js} +3 -3
- package/dist/cdn/chunks/{useMergeTag-Dwy3U0PI.js.map → useMergeTag-QM-tkBc6.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-CBp9uwjV.js → usePopoverPosition-Cg8LR0W4.js} +2 -2
- package/dist/cdn/chunks/{usePopoverPosition-CBp9uwjV.js.map → usePopoverPosition-Cg8LR0W4.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-32EnuMwu.js → useScrollToBlock-CS7zo4oQ.js} +2 -2
- package/dist/cdn/chunks/{useScrollToBlock-32EnuMwu.js.map → useScrollToBlock-CS7zo4oQ.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +877 -975
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{composables-26aR45W3.js → composables-6SKZrQs-.js} +817 -837
- package/dist/{cdn/chunks/da-Dno_4nGy.js → da-DN46iRXS.js} +1 -4
- package/dist/{cdn/chunks/de-DRR5JSkh.js → de-Dyk8PPCm.js} +1 -4
- package/dist/{cdn/chunks/en-DAcLbbpg.js → en-BzMbMmgz.js} +1 -4
- package/dist/{cdn/chunks/es-BcEQLQxe.js → es-KSHEXYyf.js} +1 -4
- package/dist/{extensions-zHf8YFRw.js → extensions-D74nAP73.js} +3 -3
- package/dist/{cdn/chunks/fr-CNQG7ESr.js → fr-DtKHfZyk.js} +1 -4
- package/dist/index.d.ts +33 -405
- package/dist/{cdn/chunks/ja-CMxWxqSH.js → ja-DUSaDVPA.js} +1 -4
- package/dist/{cdn/chunks/nl-BjyYZDkC.js → nl-DQbuxzD6.js} +1 -4
- package/dist/{cdn/chunks/pt-BR-DC2A3C0v.js → pt-BR-CxpxBtvc.js} +1 -4
- package/dist/{socialIcons-mWE33bOn.js → socialIcons-K89pe-h2.js} +84 -64
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +1060 -1158
- package/dist/{useEditorRoot-DWfC2CVC.js → useEditorRoot-CQeutW_s.js} +1 -1
- package/dist/useI18n-B05qsAsl.js +22 -0
- package/dist/{useLanguageName-CEFzafHB.js → useLanguageName-CnpG7FD5.js} +1 -1
- package/dist/{useLogicTag-K5CPoMTk.js → useLogicTag-DSa1si4o.js} +2 -2
- package/dist/{useMergeTag-tsU_Sw2x.js → useMergeTag-DwxbvRZI.js} +2 -2
- package/dist/{usePopoverPosition-DF0ZYH7g.js → usePopoverPosition-B8CXTr8v.js} +1 -1
- package/dist/{useScrollToBlock-eZXiGa8o.js → useScrollToBlock-ZZBBGFan.js} +1 -1
- package/package.json +11 -13
- package/dist/CloudHeaderExtras-DC_oNrxz.js +0 -22
- package/dist/CloudPanels-BbHJHZri.js +0 -167
- package/dist/CommentsSidebar-_8at1Rug.js +0 -516
- package/dist/cdn/chunks/CloudHeaderExtras-Cd-ePldd.js +0 -24
- package/dist/cdn/chunks/CloudHeaderExtras-Cd-ePldd.js.map +0 -1
- package/dist/cdn/chunks/CloudPanels-Bv26_Sd8.js +0 -167
- package/dist/cdn/chunks/CloudPanels-Bv26_Sd8.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-BEiOQ_zT.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-DgxiS3hF.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-Ch3h2BUs.js.map +0 -1
- package/dist/cdn/chunks/VersionPreviewBanner-C1H_fYAr.js.map +0 -1
- package/dist/cdn/chunks/composables-CKXPwWo9.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-CUlw09ix.js +0 -1405
- package/dist/cdn/chunks/createCloudRuntime-CUlw09ix.js.map +0 -1
- package/dist/cdn/chunks/de-6M4JoHoD.js +0 -21
- package/dist/cdn/chunks/de-6M4JoHoD.js.map +0 -1
- package/dist/cdn/chunks/en-FzUuJ8HW.js +0 -21
- package/dist/cdn/chunks/en-FzUuJ8HW.js.map +0 -1
- package/dist/cdn/chunks/keys-ywH4jHJ2.js +0 -11
- package/dist/cdn/chunks/logger-CqQTfJGx.js +0 -26
- package/dist/cdn/chunks/logger-CqQTfJGx.js.map +0 -1
- package/dist/cdn/chunks/preRenderCustomBlocks-BLVFtvl8.js +0 -22
- package/dist/cdn/chunks/preRenderCustomBlocks-BLVFtvl8.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-Bp92Fc6J.js +0 -21
- package/dist/cdn/chunks/pt-BR-Bp92Fc6J.js.map +0 -1
- package/dist/cdn/chunks/pusher-x9rNqzon.js +0 -2473
- package/dist/cdn/chunks/pusher-x9rNqzon.js.map +0 -1
- package/dist/cdn/chunks/rolldown-runtime-QGRDbDUS.js +0 -19
- package/dist/cdn/chunks/socialIcons-CSe4YJ52.js.map +0 -1
- package/dist/cdn/chunks/src-Bk1LF1np.js.map +0 -1
- package/dist/cdn/chunks/useCloudI18n-BTV9uu3c.js +0 -24
- package/dist/cdn/chunks/useCloudI18n-BTV9uu3c.js.map +0 -1
- package/dist/cdn/chunks/useI18n-DPg6rPbu.js +0 -18
- package/dist/cdn/chunks/useI18n-DPg6rPbu.js.map +0 -1
- package/dist/createCloudRuntime-CiEo0wkr.js +0 -1389
- package/dist/de-6M4JoHoD.js +0 -19
- package/dist/en-FzUuJ8HW.js +0 -19
- package/dist/keys-B4DimcgX.js +0 -9
- package/dist/logger-BOu7oEtk.js +0 -24
- package/dist/preRenderCustomBlocks-6CLw2rP6.js +0 -20
- package/dist/pt-BR-Bp92Fc6J.js +0 -19
- package/dist/useCloudI18n-BnuOL1YS.js +0 -22
- package/dist/useI18n-Cx9W7OWb.js +0 -16
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
import { a as e, c as t, i as n, l as r } from "./dist-zu1jwYIS.js";
|
|
2
2
|
import { A as i, B as a, C as o, E as s, F as c, G as l, H as u, I as d, K as f, L as p, M as m, N as h, O as g, P as _, Q as v, R as y, S as b, W as x, X as S, Y as C, _ as w, b as T, c as E, ct as D, dt as O, f as ee, g as k, h as A, j, l as M, m as N, mt as P, ot as F, p as I, pt as L, rt as R, s as z, st as B, t as V, tt as H, u as U, x as W } from "./draggable-IRVFEZ-b.js";
|
|
3
|
-
import { t as te } from "./useEditorRoot-
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { t as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { $ as Ct, A as wt, B as Tt, C as Et, D as Dt, F as Ot, G as kt, H as At, I as jt, J as Mt, K as Nt, L as Pt, M as Ft, N as It, O as Lt, P as Rt, R as zt, S as Bt, T as Vt, U as Ht, V as Ut, W as Wt, X as Gt, Y as Kt, Z as qt, _ as Jt, a as Yt, at as Xt, b as Zt, c as Qt, ct as $t, d as en, et as tn, g as nn, h as rn, i as an, it as on, j as sn, k as cn, l as ln, lt as un, m as dn, nt as fn, ot as pn, p as mn, q as hn, r as gn, rt as _n, s as vn, st as yn, u as bn, ut as xn, v as Sn, w as Cn, x as wn, y as Tn, z as En } from "./keys-ywH4jHJ2.js";
|
|
13
|
-
import { t as Dn } from "./useLogicTag-CKtQlJDa.js";
|
|
14
|
-
import { B as On, C as kn, F as An, I as jn, P as Mn, R as Nn, T as Pn, _ as Fn, a as In, f as Ln, h as Rn, n as zn, o as Bn, t as Vn, u as Hn, v as Un, w as Wn, x as Gn, y as Kn, z as qn } from "./socialIcons-CSe4YJ52.js";
|
|
3
|
+
import { t as te } from "./useEditorRoot-BPVxLYFD.js";
|
|
4
|
+
import { $ as G, A as K, B as q, C as J, D as ne, E as re, F as ie, G as ae, H as oe, I as Y, J as X, K as Z, L as se, M as ce, N as le, O as ue, P as de, Q as fe, R as pe, S as me, U as he, V as ge, W as _e, X as ve, Y as ye, _ as be, a as xe, at as Se, b as Ce, c as we, ct as Te, d as Ee, f as De, g as Oe, h as ke, i as Ae, it as je, j as Me, k as Ne, l as Pe, lt as Fe, m as Ie, nt as Le, o as Re, ot as ze, p as Be, q as Ve, rt as He, s as Ue, st as We, t as Q, tt as Ge, u as Ke, v as qe, w as Je, x as Ye, y as Xe, z as Ze } from "./useI18n-DwP1ksBW.js";
|
|
5
|
+
import { t as Qe } from "./useMergeTag-QM-tkBc6.js";
|
|
6
|
+
import { _ as $e, h as et, v as tt, y as nt } from "./dist-BtWMy7UQ.js";
|
|
7
|
+
import { $ as rt, A as it, An as at, B as ot, C as st, D as ct, Dn as lt, E as ut, En as dt, G as ft, Gt as pt, H as mt, I as ht, K as gt, Kt as _t, L as vt, Lt as yt, M as bt, Mn as xt, Mt as St, N as Ct, O as wt, On as Tt, P as Et, Q as Dt, R as Ot, Rt as kt, S as At, T as jt, Vt as Mt, W as Nt, X as Pt, Y as Ft, Yt as It, Z as Lt, a as Rt, at as zt, b as Bt, bn as Vt, ct as Ht, d as Ut, et as Wt, ft as Gt, gt as Kt, hn as qt, ht as Jt, i as Yt, it as Xt, j as Zt, jn as Qt, kn as $t, ln as en, lt as tn, mn as nn, mt as rn, nt as an, ot as on, p as sn, q as cn, rt as ln, t as un, tt as dn, u as fn, ut as pn, w as mn, x as hn, xn as gn, y as _n, yt as vn, zt as yn } from "./src-A0kzK-pR.js";
|
|
8
|
+
import { B as bn, C as xn, E as $, F as Sn, I as Cn, L as wn, R as Tn, T as En, _ as Dn, a as On, f as kn, h as An, n as jn, o as Mn, t as Nn, u as Pn, v as Fn, w as In, x as Ln, y as Rn, z as zn } from "./socialIcons-CXQfKLUV.js";
|
|
9
|
+
import { a as Bn, c as Vn, i as Hn, n as Un, o as Wn, t as Gn } from "./usePopoverPosition-Cg8LR0W4.js";
|
|
10
|
+
import { n as Kn } from "./useLocalizedDisplay-Brdkp3KH.js";
|
|
11
|
+
import { t as qn } from "./useLogicTag-gphGbQfy.js";
|
|
15
12
|
import { r as Jn, t as Yn } from "./templateSettingsFields-cjlP-jdw.js";
|
|
16
13
|
import { r as Xn, t as Zn } from "./sanitizeHtml-Plkmw1Qt.js";
|
|
17
14
|
import { At as Qn, G as $n, Mt as er, Nt as tr, Ot as nr, St as rr, Ut as ir, V as ar, Wt as or, X as sr, _t as cr, d as lr, f as ur, k as dr, mt as fr, nt as pr, o as mr, y as hr, yt as gr } from "./icons-DdVB-5WO.js";
|
|
18
15
|
import { t as _r } from "./LoadingTrack-o-89hApJ.js";
|
|
19
|
-
import { t as vr } from "./useLanguageName-
|
|
16
|
+
import { t as vr } from "./useLanguageName-CeuoO9WZ.js";
|
|
20
17
|
import { t as yr } from "./plural-CyxrJXL1.js";
|
|
21
18
|
import { m as br, w as xr, x as Sr } from "./styleConstants-Br6CIRoS.js";
|
|
22
19
|
import { t as Cr } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
@@ -56,7 +53,7 @@ function Er(t, n) {
|
|
|
56
53
|
}
|
|
57
54
|
// src/composables/useEmoji.ts
|
|
58
55
|
function Dr() {
|
|
59
|
-
let [e, t] =
|
|
56
|
+
let [e, t] = tt(!1), n = R([]), r = !1;
|
|
60
57
|
v(() => {
|
|
61
58
|
r = !0;
|
|
62
59
|
}), u(e, async (e) => {
|
|
@@ -89,7 +86,7 @@ function Or() {
|
|
|
89
86
|
let r = `custom:${t.type}`;
|
|
90
87
|
e.value.set(r, {
|
|
91
88
|
component: n,
|
|
92
|
-
createBlock: () =>
|
|
89
|
+
createBlock: () => At(t),
|
|
93
90
|
definition: t
|
|
94
91
|
}), B(e);
|
|
95
92
|
}
|
|
@@ -114,7 +111,7 @@ function Or() {
|
|
|
114
111
|
let t = a(e.customType);
|
|
115
112
|
if (!t) return o("Block definition not found");
|
|
116
113
|
try {
|
|
117
|
-
return await
|
|
114
|
+
return await vt(await import("./liquid.browser-rubac0VA.js")).parseAndRender(t.template, e.fieldValues);
|
|
118
115
|
} catch (t) {
|
|
119
116
|
return $.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
|
|
120
117
|
}
|
|
@@ -196,7 +193,7 @@ function Mr(e) {
|
|
|
196
193
|
}
|
|
197
194
|
let l = I(() => c());
|
|
198
195
|
function u(e) {
|
|
199
|
-
return
|
|
196
|
+
return Yt(e, {
|
|
200
197
|
customFonts: t.value,
|
|
201
198
|
defaultFallback: i.value
|
|
202
199
|
});
|
|
@@ -275,11 +272,11 @@ function Pr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
|
|
|
275
272
|
}
|
|
276
273
|
// src/utils/mergeTagNodeSpec.ts
|
|
277
274
|
function Fr(e, t, n) {
|
|
278
|
-
return
|
|
275
|
+
return Lt(e, n) ? {
|
|
279
276
|
type: "logicMergeTagNode",
|
|
280
277
|
attrs: {
|
|
281
278
|
value: e,
|
|
282
|
-
keyword:
|
|
279
|
+
keyword: ft(e, n)
|
|
283
280
|
}
|
|
284
281
|
} : {
|
|
285
282
|
type: "mergeTagNode",
|
|
@@ -313,7 +310,7 @@ function zr(e) {
|
|
|
313
310
|
...this.parent?.(),
|
|
314
311
|
color: {
|
|
315
312
|
default: null,
|
|
316
|
-
parseHTML: (e) => Rr(
|
|
313
|
+
parseHTML: (e) => Rr(Wn(e.style.color)),
|
|
317
314
|
renderHTML: (e) => {
|
|
318
315
|
let t = Rr(e.color);
|
|
319
316
|
return t ? { style: `color: ${t}` } : {};
|
|
@@ -323,7 +320,7 @@ function zr(e) {
|
|
|
323
320
|
} });
|
|
324
321
|
}
|
|
325
322
|
// src/composables/useRichTextLinkDialog.ts
|
|
326
|
-
function Br(e, t =
|
|
323
|
+
function Br(e, t = mt.liquid, n = () => !0) {
|
|
327
324
|
let r = H(!1), i = H(""), a = H(""), o = H(null);
|
|
328
325
|
Er(o, r);
|
|
329
326
|
function s() {
|
|
@@ -353,8 +350,8 @@ function Br(e, t = de.liquid, n = () => !0) {
|
|
|
353
350
|
if (t.startsWith("#")) return t;
|
|
354
351
|
if (t.startsWith("//")) return `https:${t}`;
|
|
355
352
|
if (l.test(t)) return t;
|
|
356
|
-
let n =
|
|
357
|
-
return n ?
|
|
353
|
+
let n = Ut(t);
|
|
354
|
+
return n ? fn.some((e) => e === n) ? t : null : u(t) ? t : `https://${t}`;
|
|
358
355
|
}
|
|
359
356
|
function f() {
|
|
360
357
|
n() && (e.value?.chain().focus().extendMarkRange("link").unsetLink().run(), p());
|
|
@@ -379,7 +376,7 @@ function Br(e, t = de.liquid, n = () => !0) {
|
|
|
379
376
|
}
|
|
380
377
|
// src/composables/useRichTextEditor.ts
|
|
381
378
|
function Vr(t) {
|
|
382
|
-
let n = g(
|
|
379
|
+
let n = g(be, null), r = Vn(), i = g(X, null), a = I(() => r.value && !i?.value), { mergeTags: o, canRequestMergeTag: s, isRequesting: c, requestMergeTag: l, syntax: d, autocomplete: f } = Qe(), { canInsertLogicTag: p, isRequesting: h, requestLogicTag: _ } = qn(), v = g(je, null), y = (S(v) ? v.value : v)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", b = Ft(d), x = R(null), C = n?.content ? Kn(n) : null, w = () => Gt(C?.settings.value ?? { locale: "en" });
|
|
383
380
|
u(w, (e) => {
|
|
384
381
|
let t = x.value?.view.dom;
|
|
385
382
|
t && t.setAttribute("dir", e);
|
|
@@ -392,7 +389,7 @@ function Vr(t) {
|
|
|
392
389
|
e && e.view.dispatch(e.state.tr);
|
|
393
390
|
}
|
|
394
391
|
});
|
|
395
|
-
let { start: N, stop: P } =
|
|
392
|
+
let { start: N, stop: P } = $e(() => x.value?.commands.focus("end"), 0, { immediate: !1 }), F = R(null), L = H(!0), z = H(null), B = !1, V = null;
|
|
396
393
|
async function U() {
|
|
397
394
|
z.value = null, L.value = !0;
|
|
398
395
|
try {
|
|
@@ -444,7 +441,7 @@ function Vr(t) {
|
|
|
444
441
|
e(document, "mousedown", G), m(() => {
|
|
445
442
|
B = !0, te(), P(), x.value?.destroy();
|
|
446
443
|
});
|
|
447
|
-
async function
|
|
444
|
+
async function K() {
|
|
448
445
|
if (!a.value) return;
|
|
449
446
|
let e = await l();
|
|
450
447
|
!B && a.value && (e && x.value ? x.value.chain().focus().insertMergeTag({
|
|
@@ -452,7 +449,7 @@ function Vr(t) {
|
|
|
452
449
|
value: e.value
|
|
453
450
|
}).run() : x.value?.commands.focus());
|
|
454
451
|
}
|
|
455
|
-
async function
|
|
452
|
+
async function q() {
|
|
456
453
|
if (!a.value) return;
|
|
457
454
|
let e = await _();
|
|
458
455
|
!B && a.value && (e && x.value ? Lr(x.value, e, d) : x.value?.commands.focus());
|
|
@@ -479,8 +476,8 @@ function Vr(t) {
|
|
|
479
476
|
removeLink: A,
|
|
480
477
|
closeLinkDialog: j,
|
|
481
478
|
handleLinkKeydown: M,
|
|
482
|
-
handleAddMergeTag:
|
|
483
|
-
handleAddLogicTag:
|
|
479
|
+
handleAddMergeTag: K,
|
|
480
|
+
handleAddLogicTag: q
|
|
484
481
|
};
|
|
485
482
|
}
|
|
486
483
|
// src/utils/activeEditorTracker.ts
|
|
@@ -523,7 +520,7 @@ function Jr(e) {
|
|
|
523
520
|
let c = ++o;
|
|
524
521
|
r.value = !0;
|
|
525
522
|
let l = {
|
|
526
|
-
content:
|
|
523
|
+
content: Vt(e.getContent()),
|
|
527
524
|
surface: e.surface,
|
|
528
525
|
trigger: t,
|
|
529
526
|
...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
|
|
@@ -531,7 +528,7 @@ function Jr(e) {
|
|
|
531
528
|
try {
|
|
532
529
|
let e = await s(l);
|
|
533
530
|
if (c !== o) return;
|
|
534
|
-
if (!
|
|
531
|
+
if (!un(e)) {
|
|
535
532
|
i.value = !0, n.value = null;
|
|
536
533
|
return;
|
|
537
534
|
}
|
|
@@ -650,9 +647,9 @@ function $r(e) {
|
|
|
650
647
|
c || f();
|
|
651
648
|
async function f() {
|
|
652
649
|
try {
|
|
653
|
-
let t = await import("./src-
|
|
650
|
+
let t = await import("./src-C9jjLNMg.js");
|
|
654
651
|
if (d) return;
|
|
655
|
-
s.value = { lintTemplate: t.lintTemplate }, a.value = !0, p(), l =
|
|
652
|
+
s.value = { lintTemplate: t.lintTemplate }, a.value = !0, p(), l = nt(n, p, { debounce: e.debounce ?? 500 });
|
|
656
653
|
} catch {
|
|
657
654
|
if (d) return;
|
|
658
655
|
o.value = !0, Qr || (Qr = !0, $.info("@templatical/quality isn't installed, so the Issues panel and its lint badges are off. Add @templatical/quality to your dependencies to turn them on."));
|
|
@@ -721,7 +718,7 @@ function ei(e, t, n = []) {
|
|
|
721
718
|
let i = o(r);
|
|
722
719
|
if (!i) return "";
|
|
723
720
|
let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
|
|
724
|
-
return a ?
|
|
721
|
+
return a ? Rn(a, t.t, n) : "";
|
|
725
722
|
}
|
|
726
723
|
function c(t, n) {
|
|
727
724
|
return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
|
|
@@ -813,66 +810,66 @@ function ri(e) {
|
|
|
813
810
|
return ii(e, t), t;
|
|
814
811
|
}
|
|
815
812
|
function ii(e, t) {
|
|
816
|
-
for (let n of e) if (
|
|
813
|
+
for (let n of e) if (vn(n)) t.add(n.customType);
|
|
817
814
|
else if (n.type === "section") {
|
|
818
815
|
let e = n.children;
|
|
819
816
|
if (!e) continue;
|
|
820
817
|
for (let n of e) ii(n, t);
|
|
821
|
-
} else
|
|
818
|
+
} else St(n) && ii(n.children, t);
|
|
822
819
|
}
|
|
823
820
|
// src/utils/registerBuiltInBlocks.ts
|
|
824
821
|
var ai = [
|
|
825
822
|
{
|
|
826
823
|
type: "section",
|
|
827
|
-
createBlock:
|
|
824
|
+
createBlock: wt
|
|
828
825
|
},
|
|
829
826
|
{
|
|
830
827
|
type: "title",
|
|
831
|
-
createBlock:
|
|
828
|
+
createBlock: Ct
|
|
832
829
|
},
|
|
833
830
|
{
|
|
834
831
|
type: "paragraph",
|
|
835
|
-
createBlock:
|
|
832
|
+
createBlock: ct
|
|
836
833
|
},
|
|
837
834
|
{
|
|
838
835
|
type: "image",
|
|
839
|
-
createBlock:
|
|
836
|
+
createBlock: jt
|
|
840
837
|
},
|
|
841
838
|
{
|
|
842
839
|
type: "button",
|
|
843
|
-
createBlock:
|
|
840
|
+
createBlock: Bt
|
|
844
841
|
},
|
|
845
842
|
{
|
|
846
843
|
type: "divider",
|
|
847
|
-
createBlock:
|
|
844
|
+
createBlock: st
|
|
848
845
|
},
|
|
849
846
|
{
|
|
850
847
|
type: "video",
|
|
851
|
-
createBlock:
|
|
848
|
+
createBlock: Et
|
|
852
849
|
},
|
|
853
850
|
{
|
|
854
851
|
type: "social",
|
|
855
|
-
createBlock:
|
|
852
|
+
createBlock: it
|
|
856
853
|
},
|
|
857
854
|
{
|
|
858
855
|
type: "menu",
|
|
859
|
-
createBlock:
|
|
856
|
+
createBlock: ut
|
|
860
857
|
},
|
|
861
858
|
{
|
|
862
859
|
type: "table",
|
|
863
|
-
createBlock:
|
|
860
|
+
createBlock: bt
|
|
864
861
|
},
|
|
865
862
|
{
|
|
866
863
|
type: "spacer",
|
|
867
|
-
createBlock:
|
|
864
|
+
createBlock: Zt
|
|
868
865
|
},
|
|
869
866
|
{
|
|
870
867
|
type: "html",
|
|
871
|
-
createBlock:
|
|
868
|
+
createBlock: mn
|
|
872
869
|
},
|
|
873
870
|
{
|
|
874
871
|
type: "countdown",
|
|
875
|
-
createBlock:
|
|
872
|
+
createBlock: hn
|
|
876
873
|
}
|
|
877
874
|
];
|
|
878
875
|
function oi(e, t) {
|
|
@@ -893,10 +890,10 @@ function ci(e) {
|
|
|
893
890
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
894
891
|
}
|
|
895
892
|
function li(e, t, n) {
|
|
896
|
-
let r = new Set(e.map((e) =>
|
|
897
|
-
for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(
|
|
893
|
+
let r = new Set(e.map((e) => Bn(e))), i = [], a = (e, t) => {
|
|
894
|
+
for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(Bn(o)) && i.push(`${t}.${n}: ${o}`) : ci(o) && a(o, `${t}.${n}`);
|
|
898
895
|
}, o = t;
|
|
899
|
-
for (let [e, t] of Object.entries(
|
|
896
|
+
for (let [e, t] of Object.entries(rn)) {
|
|
900
897
|
let n = o?.[e];
|
|
901
898
|
a({
|
|
902
899
|
...t,
|
|
@@ -904,7 +901,7 @@ function li(e, t, n) {
|
|
|
904
901
|
}, e);
|
|
905
902
|
}
|
|
906
903
|
return a({
|
|
907
|
-
...
|
|
904
|
+
...Jt,
|
|
908
905
|
...n ?? {}
|
|
909
906
|
}, "template"), i;
|
|
910
907
|
}
|
|
@@ -918,62 +915,48 @@ function ui(e) {
|
|
|
918
915
|
}
|
|
919
916
|
// src/i18n/index.ts
|
|
920
917
|
var di = /* #__PURE__ */ Object.assign({
|
|
921
|
-
"./locales/ca.ts": () => import("./ca-
|
|
922
|
-
"./locales/da.ts": () => import("./da-
|
|
923
|
-
"./locales/de.ts": () => import("./de-
|
|
924
|
-
"./locales/en.ts": () => import("./en-
|
|
925
|
-
"./locales/es.ts": () => import("./es-
|
|
926
|
-
"./locales/fr.ts": () => import("./fr-
|
|
927
|
-
"./locales/ja.ts": () => import("./ja-
|
|
928
|
-
"./locales/nl.ts": () => import("./nl-
|
|
929
|
-
"./locales/pt-BR.ts": () => import("./pt-BR-
|
|
930
|
-
}), fi = /* #__PURE__ */ Object.assign({
|
|
931
|
-
"./locales/cloud/de.ts": () => import("./de-6M4JoHoD.js"),
|
|
932
|
-
"./locales/cloud/en.ts": () => import("./en-FzUuJ8HW.js"),
|
|
933
|
-
"./locales/cloud/pt-BR.ts": () => import("./pt-BR-Bp92Fc6J.js")
|
|
918
|
+
"./locales/ca.ts": () => import("./ca-BIseSbs-.js"),
|
|
919
|
+
"./locales/da.ts": () => import("./da-DN46iRXS.js"),
|
|
920
|
+
"./locales/de.ts": () => import("./de-Dyk8PPCm.js"),
|
|
921
|
+
"./locales/en.ts": () => import("./en-BzMbMmgz.js"),
|
|
922
|
+
"./locales/es.ts": () => import("./es-KSHEXYyf.js"),
|
|
923
|
+
"./locales/fr.ts": () => import("./fr-DtKHfZyk.js"),
|
|
924
|
+
"./locales/ja.ts": () => import("./ja-DUSaDVPA.js"),
|
|
925
|
+
"./locales/nl.ts": () => import("./nl-DQbuxzD6.js"),
|
|
926
|
+
"./locales/pt-BR.ts": () => import("./pt-BR-CxpxBtvc.js")
|
|
934
927
|
});
|
|
935
|
-
function
|
|
928
|
+
function fi(e) {
|
|
936
929
|
return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
|
|
937
930
|
}
|
|
938
|
-
var
|
|
939
|
-
function
|
|
931
|
+
var pi = fi(di);
|
|
932
|
+
function mi(e) {
|
|
940
933
|
return e.trim().replace(/_/g, "-").toLowerCase();
|
|
941
934
|
}
|
|
942
|
-
function
|
|
943
|
-
let n =
|
|
944
|
-
return t.find((e) =>
|
|
945
|
-
}
|
|
946
|
-
function vi(e) {
|
|
947
|
-
return gi(e).split("-")[0];
|
|
935
|
+
function hi(e, t) {
|
|
936
|
+
let n = mi(e);
|
|
937
|
+
return t.find((e) => mi(e) === n);
|
|
948
938
|
}
|
|
949
|
-
function
|
|
950
|
-
return
|
|
939
|
+
function gi(e) {
|
|
940
|
+
return mi(e).split("-")[0];
|
|
951
941
|
}
|
|
952
|
-
function
|
|
953
|
-
return
|
|
942
|
+
function _i(e, t) {
|
|
943
|
+
return hi(e, t) ?? hi(gi(e), t);
|
|
954
944
|
}
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
return (await t()).default;
|
|
945
|
+
function vi(e, t) {
|
|
946
|
+
return _i(e, t) ?? "en";
|
|
958
947
|
}
|
|
959
|
-
async function
|
|
960
|
-
let t =
|
|
948
|
+
async function yi(e) {
|
|
949
|
+
let t = di[`./locales/${vi(e, pi)}.ts`];
|
|
961
950
|
return (await t()).default;
|
|
962
951
|
}
|
|
963
|
-
function
|
|
964
|
-
return
|
|
952
|
+
function bi(e) {
|
|
953
|
+
return _i(e, pi) !== void 0;
|
|
965
954
|
}
|
|
966
|
-
function
|
|
967
|
-
return
|
|
968
|
-
}
|
|
969
|
-
function Ti() {
|
|
970
|
-
return [...mi];
|
|
971
|
-
}
|
|
972
|
-
function Ei() {
|
|
973
|
-
return [...hi];
|
|
955
|
+
function xi() {
|
|
956
|
+
return [...pi];
|
|
974
957
|
}
|
|
975
958
|
// src/i18n/contentDefaults.ts
|
|
976
|
-
var
|
|
959
|
+
var Si = {
|
|
977
960
|
en: {
|
|
978
961
|
video: "Video",
|
|
979
962
|
days: "Days",
|
|
@@ -1046,16 +1029,16 @@ var Di = {
|
|
|
1046
1029
|
seconds: "Sekunder",
|
|
1047
1030
|
expired: "Dette tilbud er udløbet"
|
|
1048
1031
|
}
|
|
1049
|
-
},
|
|
1050
|
-
function
|
|
1051
|
-
if (!e) return
|
|
1052
|
-
let t = e.trim().replace(/_/g, "-").toLowerCase(), n =
|
|
1053
|
-
if (n) return
|
|
1054
|
-
let r =
|
|
1055
|
-
return r ?
|
|
1056
|
-
}
|
|
1057
|
-
function
|
|
1058
|
-
let t =
|
|
1032
|
+
}, Ci = new Map(Object.keys(Si).map((e) => [e.toLowerCase(), e]));
|
|
1033
|
+
function wi(e) {
|
|
1034
|
+
if (!e) return Si.en;
|
|
1035
|
+
let t = e.trim().replace(/_/g, "-").toLowerCase(), n = Ci.get(t);
|
|
1036
|
+
if (n) return Si[n];
|
|
1037
|
+
let r = Ci.get(gi(t));
|
|
1038
|
+
return r ? Si[r] : Si.en;
|
|
1039
|
+
}
|
|
1040
|
+
function Ti(e) {
|
|
1041
|
+
let t = wi(e);
|
|
1059
1042
|
return {
|
|
1060
1043
|
video: { alt: t.video },
|
|
1061
1044
|
countdown: {
|
|
@@ -1068,9 +1051,9 @@ function Ai(e) {
|
|
|
1068
1051
|
};
|
|
1069
1052
|
}
|
|
1070
1053
|
// src/utils/collectColorFieldIssues.ts
|
|
1071
|
-
function
|
|
1054
|
+
function Ei(e, t) {
|
|
1072
1055
|
let n = [], r = (r, i) => {
|
|
1073
|
-
let a =
|
|
1056
|
+
let a = Fn(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
|
|
1074
1057
|
if (a.invalidPresets.length > 0 && n.push({
|
|
1075
1058
|
id: s("invalid-presets"),
|
|
1076
1059
|
message: `${o}: presets skipped invalid entries: ${a.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).` + (a.presetsInherited ? " No valid entries are left, so the field inherits colors.presets." : "")
|
|
@@ -1081,8 +1064,8 @@ function ji(e, t) {
|
|
|
1081
1064
|
id: s("allow-custom-ignored"),
|
|
1082
1065
|
message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
|
|
1083
1066
|
}), !a.allowCustom && a.presets.length > 0) {
|
|
1084
|
-
let e = r.default ?? "", t = new Set(a.presets.map((e) =>
|
|
1085
|
-
e !== "" && !t.has(
|
|
1067
|
+
let e = r.default ?? "", t = new Set(a.presets.map((e) => Bn(e)));
|
|
1068
|
+
e !== "" && !t.has(Bn(e)) && n.push({
|
|
1086
1069
|
id: s("off-palette-default"),
|
|
1087
1070
|
message: `${o} locks custom colours, but its default ${e} falls outside the field's presets: ${a.presets.join(", ")}. New blocks start on a colour the picker can't reselect — set the default from the same palette.`
|
|
1088
1071
|
});
|
|
@@ -1093,7 +1076,7 @@ function ji(e, t) {
|
|
|
1093
1076
|
return n;
|
|
1094
1077
|
}
|
|
1095
1078
|
// src/utils/keyboardShortcuts.ts
|
|
1096
|
-
function
|
|
1079
|
+
function Di(e) {
|
|
1097
1080
|
for (let t of e.composedPath()) {
|
|
1098
1081
|
if (!(t instanceof HTMLElement)) continue;
|
|
1099
1082
|
if (t.isContentEditable) return !0;
|
|
@@ -1102,14 +1085,14 @@ function Mi(e) {
|
|
|
1102
1085
|
}
|
|
1103
1086
|
return !1;
|
|
1104
1087
|
}
|
|
1105
|
-
function
|
|
1088
|
+
function Oi(e, t) {
|
|
1106
1089
|
let n = e.metaKey || e.ctrlKey;
|
|
1107
1090
|
if (n && e.key.toLowerCase() === "s") e.preventDefault(), t.onSave?.();
|
|
1108
1091
|
else if (n && e.key.toLowerCase() === "z") {
|
|
1109
|
-
if (
|
|
1092
|
+
if (Di(e)) return;
|
|
1110
1093
|
e.preventDefault(), e.shiftKey ? t.history.redo() : t.history.undo();
|
|
1111
1094
|
} else {
|
|
1112
|
-
if (t.isPicking?.() && !
|
|
1095
|
+
if (t.isPicking?.() && !Di(e)) {
|
|
1113
1096
|
if (e.key === "Escape") {
|
|
1114
1097
|
e.preventDefault(), t.onCancelPick?.();
|
|
1115
1098
|
return;
|
|
@@ -1123,139 +1106,139 @@ function Ni(e, t) {
|
|
|
1123
1106
|
return;
|
|
1124
1107
|
}
|
|
1125
1108
|
}
|
|
1126
|
-
e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !
|
|
1109
|
+
e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Di(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
|
|
1127
1110
|
}
|
|
1128
1111
|
}
|
|
1129
1112
|
// src/utils/blockComponentResolver.ts
|
|
1130
|
-
function
|
|
1113
|
+
function ki(e, t) {
|
|
1131
1114
|
let n = { fontFamily: t(e.fontFamily) };
|
|
1132
1115
|
return e.textColor && (n.color = e.textColor), e.linkColor && (n["--tpl-doc-link-color"] = e.linkColor), e.linkUnderline && (n["--tpl-doc-link-underline"] = "underline"), n;
|
|
1133
1116
|
}
|
|
1134
|
-
function
|
|
1117
|
+
function Ai(e, t, n) {
|
|
1135
1118
|
if (t) {
|
|
1136
1119
|
let n = t.getComponent(e);
|
|
1137
1120
|
if (n) return n;
|
|
1138
1121
|
}
|
|
1139
1122
|
return n[e.type] ?? null;
|
|
1140
1123
|
}
|
|
1141
|
-
var
|
|
1142
|
-
function
|
|
1124
|
+
var ji = "--tpl-block-bg-layer", Mi = "--tpl-email-frame-width", Ni = "tpl-has-bg-image";
|
|
1125
|
+
function Pi(e, t) {
|
|
1143
1126
|
if (t === null) return {};
|
|
1144
|
-
let n =
|
|
1127
|
+
let n = _t(e);
|
|
1145
1128
|
if (n === null) return {};
|
|
1146
|
-
let r = t?.trim(), i = r ?
|
|
1129
|
+
let r = t?.trim(), i = r ? pt(r) : n.url;
|
|
1147
1130
|
return {
|
|
1148
1131
|
backgroundImage: `url("${i}")`,
|
|
1149
1132
|
backgroundSize: n.size,
|
|
1150
1133
|
backgroundPosition: n.position,
|
|
1151
1134
|
backgroundRepeat: n.repeat,
|
|
1152
|
-
[
|
|
1135
|
+
[ji]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
|
|
1153
1136
|
};
|
|
1154
1137
|
}
|
|
1155
|
-
function
|
|
1156
|
-
return e &&
|
|
1138
|
+
function Fi(e) {
|
|
1139
|
+
return e && ji in e ? Ni : void 0;
|
|
1157
1140
|
}
|
|
1158
|
-
var
|
|
1141
|
+
var Ii = {
|
|
1159
1142
|
top: "flex-start",
|
|
1160
1143
|
middle: "center",
|
|
1161
1144
|
bottom: "flex-end"
|
|
1162
1145
|
};
|
|
1163
|
-
function
|
|
1164
|
-
let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${
|
|
1146
|
+
function Li(e, t) {
|
|
1147
|
+
let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${Ri(t, e.aspectRatio)}px` } : { aspectRatio: `1 / ${e.aspectRatio ?? 1}` };
|
|
1165
1148
|
return {
|
|
1166
1149
|
display: "flex",
|
|
1167
1150
|
flexDirection: "column",
|
|
1168
|
-
justifyContent:
|
|
1151
|
+
justifyContent: Ii[e.verticalAlign],
|
|
1169
1152
|
boxSizing: "border-box",
|
|
1170
1153
|
...n
|
|
1171
1154
|
};
|
|
1172
1155
|
}
|
|
1173
|
-
function
|
|
1156
|
+
function Ri(e, t) {
|
|
1174
1157
|
return Math.max(1, Math.round(Math.max(1, Math.round(e)) * t));
|
|
1175
1158
|
}
|
|
1176
|
-
function
|
|
1159
|
+
function zi(e, t = {}) {
|
|
1177
1160
|
if (e.type === "wrapper") return {};
|
|
1178
1161
|
let { padding: n, backgroundColor: r } = e.styles, i = {
|
|
1179
1162
|
padding: `${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`,
|
|
1180
1163
|
backgroundColor: r || "transparent"
|
|
1181
1164
|
};
|
|
1182
|
-
if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ??
|
|
1183
|
-
let n =
|
|
1165
|
+
if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? lt.paragraphGap : lt.paragraphGap}px`), e.type === "section") {
|
|
1166
|
+
let n = xt(e.borderRadius);
|
|
1184
1167
|
n !== null && (i.borderRadius = n);
|
|
1185
|
-
let r =
|
|
1186
|
-
r?.applied && e.backgroundImage ? (Object.assign(i,
|
|
1168
|
+
let r = Mt(e);
|
|
1169
|
+
r?.applied && e.backgroundImage ? (Object.assign(i, Li(r, t.heroBoxWidth)), Object.assign(i, Pi({
|
|
1187
1170
|
...e.backgroundImage,
|
|
1188
1171
|
size: "cover",
|
|
1189
1172
|
repeat: !1
|
|
1190
|
-
}, t.backgroundImageUrl))) : (Object.assign(i,
|
|
1173
|
+
}, t.backgroundImageUrl))) : (Object.assign(i, Vi(e.border)), Object.assign(i, Pi(e.backgroundImage, t.backgroundImageUrl)));
|
|
1191
1174
|
}
|
|
1192
1175
|
return i;
|
|
1193
1176
|
}
|
|
1194
|
-
function
|
|
1195
|
-
return e.type === "section" ?
|
|
1196
|
-
backgroundImageUrl:
|
|
1177
|
+
function Bi(e, t, n, r) {
|
|
1178
|
+
return e.type === "section" ? zi(e, {
|
|
1179
|
+
backgroundImageUrl: xn(t, e.backgroundImage, n),
|
|
1197
1180
|
heroBoxWidth: r
|
|
1198
|
-
}) :
|
|
1181
|
+
}) : zi(e);
|
|
1199
1182
|
}
|
|
1200
|
-
function
|
|
1183
|
+
function Vi(e) {
|
|
1201
1184
|
let t = {};
|
|
1202
|
-
for (let [n, r] of Object.entries(
|
|
1185
|
+
for (let [n, r] of Object.entries(Qt(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
|
|
1203
1186
|
return t;
|
|
1204
1187
|
}
|
|
1205
|
-
var
|
|
1188
|
+
var Hi = {
|
|
1206
1189
|
width: "100cqw",
|
|
1207
1190
|
maxWidth: "none",
|
|
1208
1191
|
marginInline: "calc(50% - 50cqw)",
|
|
1209
1192
|
boxSizing: "border-box"
|
|
1210
1193
|
};
|
|
1211
|
-
function
|
|
1194
|
+
function Ui(e) {
|
|
1212
1195
|
return `${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`;
|
|
1213
1196
|
}
|
|
1214
|
-
function
|
|
1197
|
+
function Wi(e) {
|
|
1215
1198
|
let t = {
|
|
1216
1199
|
width: "var(--tpl-email-frame-width)",
|
|
1217
1200
|
maxWidth: "100%",
|
|
1218
1201
|
marginInline: "auto",
|
|
1219
1202
|
boxSizing: "border-box"
|
|
1220
1203
|
};
|
|
1221
|
-
return e && (t.padding =
|
|
1204
|
+
return e && (t.padding = Ui(e)), t;
|
|
1222
1205
|
}
|
|
1223
|
-
function
|
|
1206
|
+
function Gi(e, t = {}) {
|
|
1224
1207
|
if (e.type !== "section" || !e.wrapper) return null;
|
|
1225
1208
|
let n = e.wrapper, r = {};
|
|
1226
|
-
if (n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && !n.fullWidth && (r.padding =
|
|
1227
|
-
let e =
|
|
1209
|
+
if (n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && !n.fullWidth && (r.padding = Ui(n.padding)), !n.fullWidth) {
|
|
1210
|
+
let e = xt(n.borderRadius);
|
|
1228
1211
|
e !== null && (r.borderRadius = e);
|
|
1229
1212
|
}
|
|
1230
|
-
return Object.assign(r,
|
|
1213
|
+
return Object.assign(r, Pi(n.backgroundImage, t.backgroundImageUrl)), n.fullWidth && Object.assign(r, Hi), r;
|
|
1231
1214
|
}
|
|
1232
|
-
function
|
|
1215
|
+
function Ki(e, t = {}) {
|
|
1233
1216
|
if (e.type !== "wrapper") return null;
|
|
1234
1217
|
let n = {};
|
|
1235
|
-
return e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding && !e.fullWidth && (n.padding =
|
|
1218
|
+
return e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding && !e.fullWidth && (n.padding = Ui(e.styles.padding)), !e.fullWidth && e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, Pi(e.backgroundImage, t.backgroundImageUrl)), e.fullWidth && Object.assign(n, Hi), n;
|
|
1236
1219
|
}
|
|
1237
1220
|
// src/utils/mergeTagLabelSegments.ts
|
|
1238
|
-
function
|
|
1221
|
+
function qi(e, t, n, r = !1) {
|
|
1239
1222
|
if (!e) return [];
|
|
1240
1223
|
let i = [], a = 0;
|
|
1241
|
-
for (let o of
|
|
1224
|
+
for (let o of an(e, n)) {
|
|
1242
1225
|
o.index > a && i.push({
|
|
1243
1226
|
type: "text",
|
|
1244
1227
|
value: e.slice(a, o.index)
|
|
1245
1228
|
});
|
|
1246
1229
|
let s = o.value;
|
|
1247
|
-
if (
|
|
1248
|
-
let e = r ?
|
|
1230
|
+
if (Dt(s, n)) {
|
|
1231
|
+
let e = r ? cn(s, t) : void 0;
|
|
1249
1232
|
i.push(e === void 0 ? {
|
|
1250
1233
|
type: "tag",
|
|
1251
|
-
value:
|
|
1234
|
+
value: gt(s, t)
|
|
1252
1235
|
} : {
|
|
1253
1236
|
type: "text",
|
|
1254
1237
|
value: e
|
|
1255
1238
|
});
|
|
1256
|
-
} else
|
|
1239
|
+
} else Lt(s, n) ? i.push({
|
|
1257
1240
|
type: "tag",
|
|
1258
|
-
value:
|
|
1241
|
+
value: ft(s, n)
|
|
1259
1242
|
}) : i.push({
|
|
1260
1243
|
type: "text",
|
|
1261
1244
|
value: s
|
|
@@ -1268,27 +1251,27 @@ function Qi(e, t, n, r = !1) {
|
|
|
1268
1251
|
}), i;
|
|
1269
1252
|
}
|
|
1270
1253
|
// src/components/MergeTagPreviewText.vue
|
|
1271
|
-
var
|
|
1254
|
+
var Ji = o({
|
|
1272
1255
|
name: "MergeTagPreviewText",
|
|
1273
1256
|
props: { text: {
|
|
1274
1257
|
type: String,
|
|
1275
1258
|
required: !0
|
|
1276
1259
|
} },
|
|
1277
1260
|
setup(e) {
|
|
1278
|
-
let t = g(
|
|
1261
|
+
let t = g(le, q), n = g(Ze, mt.liquid), r = g(Te, null), i = I(() => qi(e.text, t.value, n, r?.value ?? !1));
|
|
1279
1262
|
return () => i.value.map((e, t) => e.type === "tag" ? s("span", {
|
|
1280
1263
|
key: t,
|
|
1281
1264
|
class: "tpl-merge-tag-label"
|
|
1282
1265
|
}, e.value) : e.value);
|
|
1283
1266
|
}
|
|
1284
|
-
}),
|
|
1267
|
+
}), Yi = ["href"], Xi = /* @__PURE__ */ o({
|
|
1285
1268
|
__name: "ButtonBlock",
|
|
1286
1269
|
props: {
|
|
1287
1270
|
block: {},
|
|
1288
1271
|
viewport: {}
|
|
1289
1272
|
},
|
|
1290
1273
|
setup(e) {
|
|
1291
|
-
let t = e, n =
|
|
1274
|
+
let t = e, n = Fe(Xe, "ButtonBlock");
|
|
1292
1275
|
function r(e) {
|
|
1293
1276
|
return e === "regular" ? "400" : e === "medium" ? "500" : e === "bold" ? "700" : "bold";
|
|
1294
1277
|
}
|
|
@@ -1299,26 +1282,26 @@ var $i = o({
|
|
|
1299
1282
|
backgroundColor: t.block.backgroundColor,
|
|
1300
1283
|
color: t.block.textColor,
|
|
1301
1284
|
fontSize: `${t.block.fontSize}px`,
|
|
1302
|
-
lineHeight: String(
|
|
1285
|
+
lineHeight: String($t(t.block)),
|
|
1303
1286
|
fontWeight: r(t.block.fontWeight),
|
|
1304
1287
|
textDecoration: "none",
|
|
1305
|
-
borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` :
|
|
1288
|
+
borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : xt(t.block.borderRadius) ?? "0px",
|
|
1306
1289
|
textAlign: "center"
|
|
1307
1290
|
};
|
|
1308
|
-
return Object.assign(e,
|
|
1291
|
+
return Object.assign(e, Vi(t.block.border)), t.block.fontFamily && (e.fontFamily = n.resolveFontFamily(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") : typeof t.block.width == "string" && gn(t.block.width) !== null && (e.width = t.block.width, e.boxSizing = "border-box"), e;
|
|
1309
1292
|
}), a = I(() => ({ textAlign: t.block.align ?? "center" }));
|
|
1310
1293
|
return (t, n) => (c(), w("div", { style: L(a.value) }, [N("a", {
|
|
1311
1294
|
href: e.block.url || "#",
|
|
1312
1295
|
style: L(i.value),
|
|
1313
1296
|
class: "tpl:cursor-default",
|
|
1314
1297
|
onClick: n[0] ||= M(() => {}, ["prevent"])
|
|
1315
|
-
}, [W(
|
|
1298
|
+
}, [W(Ji, { text: e.block.text }, null, 8, ["text"])], 12, Yi)], 4));
|
|
1316
1299
|
}
|
|
1317
|
-
}),
|
|
1300
|
+
}), Zi = ["innerHTML"], Qi = [
|
|
1318
1301
|
"src",
|
|
1319
1302
|
"width",
|
|
1320
1303
|
"height"
|
|
1321
|
-
],
|
|
1304
|
+
], $i = /* @__PURE__ */ o({
|
|
1322
1305
|
__name: "CustomBlockIcon",
|
|
1323
1306
|
props: {
|
|
1324
1307
|
icon: {},
|
|
@@ -1334,33 +1317,33 @@ var $i = o({
|
|
|
1334
1317
|
height: `${n.value}px`
|
|
1335
1318
|
}),
|
|
1336
1319
|
innerHTML: a.value
|
|
1337
|
-
}, null, 12,
|
|
1320
|
+
}, null, 12, Zi)) : i.value ? (c(), w("img", {
|
|
1338
1321
|
key: 1,
|
|
1339
1322
|
src: e.icon,
|
|
1340
1323
|
width: n.value,
|
|
1341
1324
|
height: n.value,
|
|
1342
1325
|
class: "tpl:inline-block",
|
|
1343
1326
|
alt: ""
|
|
1344
|
-
}, null, 8,
|
|
1327
|
+
}, null, 8, Qi)) : (c(), A(D(ir), {
|
|
1345
1328
|
key: 2,
|
|
1346
1329
|
size: n.value,
|
|
1347
1330
|
"stroke-width": 1.5
|
|
1348
1331
|
}, null, 8, ["size"]));
|
|
1349
1332
|
}
|
|
1350
|
-
}),
|
|
1333
|
+
}), ea = { class: "tpl:w-full" }, ta = {
|
|
1351
1334
|
key: 0,
|
|
1352
1335
|
class: "tpl:flex tpl:box-border 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)]"
|
|
1353
|
-
},
|
|
1336
|
+
}, na = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ra = {
|
|
1354
1337
|
key: 1,
|
|
1355
1338
|
class: "tpl:flex tpl:box-border 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)]"
|
|
1356
|
-
},
|
|
1339
|
+
}, ia = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, aa = {
|
|
1357
1340
|
key: 2,
|
|
1358
1341
|
class: "tpl:relative"
|
|
1359
|
-
},
|
|
1342
|
+
}, oa = ["innerHTML"], sa = {
|
|
1360
1343
|
key: 0,
|
|
1361
1344
|
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]",
|
|
1362
1345
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
|
|
1363
|
-
},
|
|
1346
|
+
}, ca = /* @__PURE__ */ o({
|
|
1364
1347
|
__name: "CustomBlock",
|
|
1365
1348
|
props: {
|
|
1366
1349
|
block: {},
|
|
@@ -1368,7 +1351,7 @@ var $i = o({
|
|
|
1368
1351
|
},
|
|
1369
1352
|
emits: ["fetchData"],
|
|
1370
1353
|
setup(e, { emit: t }) {
|
|
1371
|
-
let n = e, r = t, { t: i } =
|
|
1354
|
+
let n = e, r = t, { t: i } = Q(), a = g(Pe, null), o = H(""), s = I(() => Zn(o.value)), l = H(!1), d = I(() => a?.getDefinition(n.block.customType)), f = I(() => !!d.value), p = I(() => n.block), { isFetching: m, fetch: _, needsFetch: v, hasDataSource: y } = Cn({
|
|
1372
1355
|
definition: d,
|
|
1373
1356
|
block: p,
|
|
1374
1357
|
onUpdate: (e, t) => {
|
|
@@ -1377,10 +1360,10 @@ var $i = o({
|
|
|
1377
1360
|
dataSourceFetched: t
|
|
1378
1361
|
});
|
|
1379
1362
|
}
|
|
1380
|
-
}), b = g(
|
|
1363
|
+
}), b = g(le, q), x = g(Te, null), S = I(() => {
|
|
1381
1364
|
if (!x?.value) return n.block;
|
|
1382
1365
|
let e = {};
|
|
1383
|
-
for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ?
|
|
1366
|
+
for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ? zt(r, b.value) : r;
|
|
1384
1367
|
return {
|
|
1385
1368
|
...n.block,
|
|
1386
1369
|
fieldValues: e
|
|
@@ -1397,17 +1380,17 @@ var $i = o({
|
|
|
1397
1380
|
}
|
|
1398
1381
|
}
|
|
1399
1382
|
}
|
|
1400
|
-
let E =
|
|
1383
|
+
let E = et(C, 150);
|
|
1401
1384
|
return h(() => {
|
|
1402
1385
|
C();
|
|
1403
1386
|
}), u(() => n.block.fieldValues, () => {
|
|
1404
1387
|
E();
|
|
1405
1388
|
}, { deep: !0 }), u(() => x?.value, () => {
|
|
1406
1389
|
E();
|
|
1407
|
-
}), (e, t) => (c(), w("div",
|
|
1390
|
+
}), (e, t) => (c(), w("div", ea, [f.value ? l.value ? (c(), w("div", ra, [W(D(lr), {
|
|
1408
1391
|
size: 24,
|
|
1409
1392
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
1410
|
-
}), N("span",
|
|
1393
|
+
}), N("span", ia, P(D(i).customBlocks.renderError), 1)])) : (c(), w("div", aa, [N("div", { innerHTML: s.value }, null, 8, oa), D(y) && D(v) ? (c(), w("div", sa, [D(m) ? (c(), A(_r, {
|
|
1411
1394
|
key: 1,
|
|
1412
1395
|
class: "tpl:w-48"
|
|
1413
1396
|
})) : (c(), w("button", {
|
|
@@ -1415,16 +1398,16 @@ var $i = o({
|
|
|
1415
1398
|
type: "button",
|
|
1416
1399
|
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-[var(--tpl-shadow)] tpl:transition-all tpl:hover:border-[var(--tpl-primary)] tpl:hover:shadow-[var(--tpl-shadow-md)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
|
|
1417
1400
|
onClick: t[0] ||= M((...e) => D(_) && D(_)(...e), ["stop"])
|
|
1418
|
-
}, [d.value?.icon ? (c(), A(
|
|
1401
|
+
}, [d.value?.icon ? (c(), A($i, {
|
|
1419
1402
|
key: 0,
|
|
1420
1403
|
icon: d.value.icon,
|
|
1421
1404
|
size: 16
|
|
1422
|
-
}, null, 8, ["icon"])) : k("", !0), T(" " + P(d.value?.dataSource?.label || D(i).customBlocks.dataSource.fetchButton), 1)]))])) : k("", !0)])) : (c(), w("div",
|
|
1405
|
+
}, null, 8, ["icon"])) : k("", !0), T(" " + P(d.value?.dataSource?.label || D(i).customBlocks.dataSource.fetchButton), 1)]))])) : k("", !0)])) : (c(), w("div", ta, [W(D(ar), {
|
|
1423
1406
|
size: 24,
|
|
1424
1407
|
class: "tpl:text-[var(--tpl-warning)]"
|
|
1425
|
-
}), N("span",
|
|
1408
|
+
}), N("span", na, P(D(i).customBlocks.definitionNotFound), 1)]))]));
|
|
1426
1409
|
}
|
|
1427
|
-
}),
|
|
1410
|
+
}), la = { class: "tpl:w-full" }, ua = /* @__PURE__ */ o({
|
|
1428
1411
|
__name: "DividerBlock",
|
|
1429
1412
|
props: {
|
|
1430
1413
|
block: {},
|
|
@@ -1436,28 +1419,28 @@ var $i = o({
|
|
|
1436
1419
|
width: t.block.width === "full" ? "100%" : typeof t.block.width == "number" ? `${t.block.width}px` : t.block.width,
|
|
1437
1420
|
margin: t.block.width === "full" ? "0" : "0 auto"
|
|
1438
1421
|
}));
|
|
1439
|
-
return (e, t) => (c(), w("div",
|
|
1422
|
+
return (e, t) => (c(), w("div", la, [N("hr", {
|
|
1440
1423
|
class: "tpl:m-0 tpl:border-none",
|
|
1441
1424
|
style: L(n.value)
|
|
1442
1425
|
}, null, 4)]));
|
|
1443
1426
|
}
|
|
1444
|
-
}),
|
|
1427
|
+
}), da = { class: "tpl:w-full" }, fa = ["srcdoc", "title"], pa = {
|
|
1445
1428
|
key: 1,
|
|
1446
1429
|
class: "tpl:flex tpl:box-border 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)]"
|
|
1447
|
-
},
|
|
1430
|
+
}, ma = {
|
|
1448
1431
|
key: 0,
|
|
1449
1432
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
|
|
1450
|
-
},
|
|
1433
|
+
}, ha = {
|
|
1451
1434
|
key: 1,
|
|
1452
1435
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
1453
|
-
},
|
|
1436
|
+
}, ga = /* @__PURE__ */ o({
|
|
1454
1437
|
__name: "HtmlBlock",
|
|
1455
1438
|
props: {
|
|
1456
1439
|
block: {},
|
|
1457
1440
|
viewport: {}
|
|
1458
1441
|
},
|
|
1459
1442
|
setup(e) {
|
|
1460
|
-
let t = e, { t: n } =
|
|
1443
|
+
let t = e, { t: n } = Q(), r = g(Ye, !1), i = I(() => t.block.content.trim().length > 0), a = I(() => r && i.value), o = g(le, q), s = g(Te, null), l = I(() => s?.value ? zt(t.block.content, o.value) : t.block.content), d = H(null), f = H(60), p = null;
|
|
1461
1444
|
function h() {
|
|
1462
1445
|
let e = d.value?.contentDocument;
|
|
1463
1446
|
e && (f.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
|
|
@@ -1471,7 +1454,7 @@ var $i = o({
|
|
|
1471
1454
|
e || (p?.disconnect(), p = null);
|
|
1472
1455
|
}), m(() => {
|
|
1473
1456
|
p?.disconnect(), p = null;
|
|
1474
|
-
}), (e, t) => (c(), w("div",
|
|
1457
|
+
}), (e, t) => (c(), w("div", da, [a.value ? (c(), w("iframe", {
|
|
1475
1458
|
key: 0,
|
|
1476
1459
|
ref_key: "iframeRef",
|
|
1477
1460
|
ref: d,
|
|
@@ -1481,18 +1464,18 @@ var $i = o({
|
|
|
1481
1464
|
class: "tpl:block tpl:w-full tpl:border-0",
|
|
1482
1465
|
style: L({ height: `${f.value}px` }),
|
|
1483
1466
|
onLoad: _
|
|
1484
|
-
}, null, 44,
|
|
1467
|
+
}, null, 44, fa)) : (c(), w("div", pa, [W(D(er), {
|
|
1485
1468
|
size: 24,
|
|
1486
1469
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
1487
|
-
}), i.value ? (c(), w("span",
|
|
1470
|
+
}), i.value ? (c(), w("span", ma, P(D(n).html.preview), 1)) : (c(), w("span", ha, P(D(n).html.empty), 1))]))]));
|
|
1488
1471
|
}
|
|
1489
|
-
}),
|
|
1472
|
+
}), _a = ["data-drop-enabled"], va = ["href"], ya = ["src", "alt"], ba = ["src", "alt"], xa = {
|
|
1490
1473
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
1491
1474
|
style: { opacity: "0.7" }
|
|
1492
|
-
},
|
|
1475
|
+
}, Sa = ["href"], Ca = ["src", "alt"], wa = ["src", "alt"], Ta = {
|
|
1493
1476
|
key: 4,
|
|
1494
1477
|
class: "tpl:flex tpl:box-border 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)]"
|
|
1495
|
-
},
|
|
1478
|
+
}, Ea = ["aria-label"], Da = { key: 1 }, Oa = /* @__PURE__ */ o({
|
|
1496
1479
|
__name: "ImageBlock",
|
|
1497
1480
|
props: {
|
|
1498
1481
|
block: {},
|
|
@@ -1500,21 +1483,21 @@ var $i = o({
|
|
|
1500
1483
|
},
|
|
1501
1484
|
emits: ["update"],
|
|
1502
1485
|
setup(e, { emit: t }) {
|
|
1503
|
-
let n = e, r = t, { t: i } =
|
|
1486
|
+
let n = e, r = t, { t: i } = Q(), { syntax: a } = Qe(), o = I(() => Nt(n.block.src, a));
|
|
1504
1487
|
function s(e) {
|
|
1505
1488
|
let t = {
|
|
1506
1489
|
src: e.url,
|
|
1507
|
-
...
|
|
1490
|
+
...An(Dn(e.width, e.height))
|
|
1508
1491
|
};
|
|
1509
1492
|
e.alt && (t.alt = e.alt), r("update", t);
|
|
1510
1493
|
}
|
|
1511
|
-
let l = H(), { canBrowse: u, dropEnabled: d, isUploading: f, showOverlay: p, openMediaBrowser: m } =
|
|
1494
|
+
let l = H(), { canBrowse: u, dropEnabled: d, isUploading: f, showOverlay: p, openMediaBrowser: m } = Pn({
|
|
1512
1495
|
target: l,
|
|
1513
1496
|
value: () => n.block.src,
|
|
1514
1497
|
blocked: o,
|
|
1515
1498
|
apply: s
|
|
1516
1499
|
}), h = I(() => ({ textAlign: n.block.align })), g = I(() => {
|
|
1517
|
-
let e = n.block.border, t = ["left", "right"].map((t) =>
|
|
1500
|
+
let e = n.block.border, t = ["left", "right"].map((t) => at(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
|
|
1518
1501
|
return t > 0 ? `calc(100% - ${t}px)` : "100%";
|
|
1519
1502
|
}), _ = I(() => {
|
|
1520
1503
|
let e = n.block.align;
|
|
@@ -1522,13 +1505,13 @@ var $i = o({
|
|
|
1522
1505
|
maxWidth: "100%",
|
|
1523
1506
|
width: n.block.width === "full" ? g.value : `${n.block.width}px`,
|
|
1524
1507
|
height: n.block.height ? `${n.block.height}px` : void 0,
|
|
1525
|
-
borderRadius:
|
|
1526
|
-
...
|
|
1508
|
+
borderRadius: xt(n.block.borderRadius) ?? void 0,
|
|
1509
|
+
...Vi(n.block.border),
|
|
1527
1510
|
display: "block",
|
|
1528
1511
|
marginLeft: e === "center" || e === "right" ? "auto" : void 0,
|
|
1529
1512
|
marginRight: e === "center" ? "auto" : void 0
|
|
1530
1513
|
};
|
|
1531
|
-
}), v =
|
|
1514
|
+
}), v = En(() => o.value ? void 0 : n.block.src), y = En(() => o.value ? n.block.placeholderUrl : void 0);
|
|
1532
1515
|
return (t, n) => (c(), w("div", {
|
|
1533
1516
|
ref_key: "dropZoneRef",
|
|
1534
1517
|
ref: l,
|
|
@@ -1536,7 +1519,7 @@ var $i = o({
|
|
|
1536
1519
|
"data-drop-enabled": D(d),
|
|
1537
1520
|
class: "tpl:relative tpl:w-full",
|
|
1538
1521
|
style: L(h.value)
|
|
1539
|
-
}, [D(p) ? (c(), A(
|
|
1522
|
+
}, [D(p) ? (c(), A(kn, {
|
|
1540
1523
|
key: 0,
|
|
1541
1524
|
uploading: D(f),
|
|
1542
1525
|
size: "canvas"
|
|
@@ -1552,13 +1535,13 @@ var $i = o({
|
|
|
1552
1535
|
src: D(y),
|
|
1553
1536
|
alt: e.block.alt || D(i).image.altTextPlaceholder,
|
|
1554
1537
|
style: L(_.value)
|
|
1555
|
-
}, null, 12,
|
|
1538
|
+
}, null, 12, ya)], 8, va)) : (c(), w("img", {
|
|
1556
1539
|
key: 1,
|
|
1557
1540
|
class: "tpl:border-0",
|
|
1558
1541
|
src: D(y),
|
|
1559
1542
|
alt: e.block.alt,
|
|
1560
1543
|
style: L(_.value)
|
|
1561
|
-
}, null, 12,
|
|
1544
|
+
}, null, 12, ba))], 64)) : e.block.src && o.value ? (c(), w("div", {
|
|
1562
1545
|
key: 2,
|
|
1563
1546
|
class: "tpl:!flex tpl:box-border 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)]",
|
|
1564
1547
|
style: L([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, _.value])
|
|
@@ -1567,7 +1550,7 @@ var $i = o({
|
|
|
1567
1550
|
"stroke-width": 1.5,
|
|
1568
1551
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
1569
1552
|
style: { opacity: "0.5" }
|
|
1570
|
-
}), N("span",
|
|
1553
|
+
}), N("span", xa, [W(Ji, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (c(), w(U, { key: 3 }, [e.block.linkUrl ? (c(), w("a", {
|
|
1571
1554
|
key: 0,
|
|
1572
1555
|
href: e.block.linkUrl,
|
|
1573
1556
|
target: "_blank",
|
|
@@ -1579,13 +1562,13 @@ var $i = o({
|
|
|
1579
1562
|
src: D(v),
|
|
1580
1563
|
alt: e.block.alt || D(i).image.altTextPlaceholder,
|
|
1581
1564
|
style: L(_.value)
|
|
1582
|
-
}, null, 12,
|
|
1565
|
+
}, null, 12, Ca)], 8, Sa)) : (c(), w("img", {
|
|
1583
1566
|
key: 1,
|
|
1584
1567
|
class: "tpl:border-0",
|
|
1585
1568
|
src: D(v),
|
|
1586
1569
|
alt: e.block.alt,
|
|
1587
1570
|
style: L(_.value)
|
|
1588
|
-
}, null, 12,
|
|
1571
|
+
}, null, 12, wa))], 64)) : (c(), w("div", Ta, [D(u) ? (c(), w("button", {
|
|
1589
1572
|
key: 0,
|
|
1590
1573
|
"aria-label": D(i).image.browseMedia,
|
|
1591
1574
|
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:cursor-pointer tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
|
|
@@ -1593,19 +1576,19 @@ var $i = o({
|
|
|
1593
1576
|
}, [W(D(cr), {
|
|
1594
1577
|
size: 14,
|
|
1595
1578
|
"stroke-width": 1.5
|
|
1596
|
-
}), T(" " + P(D(i).image.browseMedia), 1)], 8,
|
|
1579
|
+
}), T(" " + P(D(i).image.browseMedia), 1)], 8, Ea)) : (c(), w("span", Da, P(D(i).image.clickToAdd), 1))]))], 12, _a));
|
|
1597
1580
|
}
|
|
1598
|
-
}),
|
|
1581
|
+
}), ka = { class: "tpl:w-full" }, Aa = ["href"], ja = {
|
|
1599
1582
|
key: 1,
|
|
1600
1583
|
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)]"
|
|
1601
|
-
},
|
|
1584
|
+
}, Ma = /* @__PURE__ */ o({
|
|
1602
1585
|
__name: "MenuBlock",
|
|
1603
1586
|
props: {
|
|
1604
1587
|
block: {},
|
|
1605
1588
|
viewport: {}
|
|
1606
1589
|
},
|
|
1607
1590
|
setup(e) {
|
|
1608
|
-
let t = e, { t: n } =
|
|
1591
|
+
let t = e, { t: n } = Q(), r = Fe(Xe, "MenuBlock"), i = I(() => ({
|
|
1609
1592
|
display: "flex",
|
|
1610
1593
|
flexWrap: "wrap",
|
|
1611
1594
|
gap: `0 ${t.block.spacing}px`,
|
|
@@ -1617,7 +1600,7 @@ var $i = o({
|
|
|
1617
1600
|
function o(e) {
|
|
1618
1601
|
return e || t.block.linkColor || t.block.color;
|
|
1619
1602
|
}
|
|
1620
|
-
return (t, r) => (c(), w("div",
|
|
1603
|
+
return (t, r) => (c(), w("div", ka, [a.value ? (c(), w("div", {
|
|
1621
1604
|
key: 0,
|
|
1622
1605
|
style: L(i.value)
|
|
1623
1606
|
}, [(c(!0), w(U, null, p(e.block.items, (t, n) => (c(), w(U, { key: t.id }, [N("a", {
|
|
@@ -1629,22 +1612,22 @@ var $i = o({
|
|
|
1629
1612
|
textDecoration: t.underline ? "underline" : "none"
|
|
1630
1613
|
}),
|
|
1631
1614
|
onClick: r[0] ||= M(() => {}, ["prevent"])
|
|
1632
|
-
}, [W(
|
|
1615
|
+
}, [W(Ji, { text: t.text || "..." }, null, 8, ["text"])], 12, Aa), n < e.block.items.length - 1 ? (c(), w("span", {
|
|
1633
1616
|
key: 0,
|
|
1634
1617
|
style: L({
|
|
1635
1618
|
color: e.block.separatorColor,
|
|
1636
1619
|
padding: `0 ${e.block.spacing}px`
|
|
1637
1620
|
})
|
|
1638
|
-
}, P(e.block.separator), 5)) : k("", !0)], 64))), 128))], 4)) : (c(), w("div",
|
|
1621
|
+
}, P(e.block.separator), 5)) : k("", !0)], 64))), 128))], 4)) : (c(), w("div", ja, [W(D(sr), { size: 16 }), N("span", null, P(D(n).menu.addLinks), 1)]))]));
|
|
1639
1622
|
}
|
|
1640
1623
|
});
|
|
1641
1624
|
// src/composables/useEditableTextBlock.ts
|
|
1642
|
-
function
|
|
1643
|
-
let t = g(
|
|
1625
|
+
function Na(e) {
|
|
1626
|
+
let t = g(le, q), r = g(Te, null), i = g(G, null), a = g(X, null), { syntax: o } = Qe(), s = I(() => r?.value ? Xt(e(), t.value) : Wt(e(), t.value)), c = I(() => i?.value ? on(e(), t.value, o) : rt(s.value, o)), l = I(() => Rt(Zn(c.value))), d = H(!1);
|
|
1644
1627
|
u(() => a?.value, (e) => {
|
|
1645
1628
|
e && (d.value = !1);
|
|
1646
1629
|
});
|
|
1647
|
-
let f = H(null), { top: p, left: m } = n(f), { toLocal: h } =
|
|
1630
|
+
let f = H(null), { top: p, left: m } = n(f), { toLocal: h } = Gn(), _ = I(() => h({
|
|
1648
1631
|
top: p.value - 8,
|
|
1649
1632
|
left: m.value
|
|
1650
1633
|
}));
|
|
@@ -1664,14 +1647,14 @@ function Ra(e) {
|
|
|
1664
1647
|
};
|
|
1665
1648
|
}
|
|
1666
1649
|
// src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
|
|
1667
|
-
var
|
|
1650
|
+
var Pa = ["innerHTML"], Fa = /* @__PURE__ */ o({
|
|
1668
1651
|
__name: "ParagraphBlock",
|
|
1669
1652
|
props: {
|
|
1670
1653
|
block: {},
|
|
1671
1654
|
viewport: {}
|
|
1672
1655
|
},
|
|
1673
1656
|
setup(e) {
|
|
1674
|
-
let t = e, n = b(() => import("./ParagraphEditor-
|
|
1657
|
+
let t = e, n = b(() => import("./ParagraphEditor-CWjMxuy0.js").then((e) => e.t)), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: l } = Na(() => t.block.content);
|
|
1675
1658
|
return (t, u) => (c(), w("div", {
|
|
1676
1659
|
ref_key: "blockRef",
|
|
1677
1660
|
ref: i,
|
|
@@ -1690,11 +1673,11 @@ var za = ["innerHTML"], Ba = /* @__PURE__ */ o({
|
|
|
1690
1673
|
key: 1,
|
|
1691
1674
|
class: "tpl-text-content tpl:outline-none",
|
|
1692
1675
|
innerHTML: D(o)
|
|
1693
|
-
}, null, 8,
|
|
1676
|
+
}, null, 8, Pa))], 544));
|
|
1694
1677
|
}
|
|
1695
1678
|
});
|
|
1696
1679
|
// src/utils/updateBlockList.ts
|
|
1697
|
-
function
|
|
1680
|
+
function Ia(e, t, n, r = 0, i) {
|
|
1698
1681
|
let a = n ? e.content.value.blocks.find((e) => e.id === n) : void 0, o = n ? a?.type === "section" ? a.children[r] ?? [] : [] : e.content.value.blocks, s = t.map((e) => e.id);
|
|
1699
1682
|
if (o.some((e) => !s.includes(e.id))) return;
|
|
1700
1683
|
let c = t.filter((e) => !o.some((t) => t.id === e.id)), l, u = -1;
|
|
@@ -1707,19 +1690,19 @@ function Va(e, t, n, r = 0, i) {
|
|
|
1707
1690
|
l && (e.findBlockLocation(l.id) ? e.moveBlock(l.id, u, n, r) : e.addBlock(JSON.parse(JSON.stringify(l)), n, r, u));
|
|
1708
1691
|
}
|
|
1709
1692
|
// src/utils/mergeTagTokens.ts
|
|
1710
|
-
function
|
|
1693
|
+
function La(e, t, n) {
|
|
1711
1694
|
let r = [], i = "\0MT";
|
|
1712
1695
|
for (; e.includes(i);) i += "_";
|
|
1713
|
-
let a = n === "html" ?
|
|
1696
|
+
let a = n === "html" ? Ht(e, (e) => {
|
|
1714
1697
|
let t = r.push(e) - 1;
|
|
1715
1698
|
return `${i}${t}\u0000`;
|
|
1716
1699
|
}) : e, o = Array.from(a.matchAll(RegExp(`${i}\\d+\u0000`, "g")), (e) => ({
|
|
1717
1700
|
start: e.index,
|
|
1718
1701
|
end: e.index + e[0].length
|
|
1719
|
-
})), s = [], c =
|
|
1702
|
+
})), s = [], c = ln(a, t, "logic"), l = [], u = 0;
|
|
1720
1703
|
for (let e of ["logic", "value"]) {
|
|
1721
1704
|
let r = 0;
|
|
1722
|
-
for (let i of e === "logic" ? c :
|
|
1705
|
+
for (let i of e === "logic" ? c : ln(a, t, "value")) {
|
|
1723
1706
|
let t = i.index, a = t + i.value.length;
|
|
1724
1707
|
for (; o[r]?.end <= t;) r++;
|
|
1725
1708
|
let c = o[r];
|
|
@@ -1735,51 +1718,51 @@ function Ha(e, t, n) {
|
|
|
1735
1718
|
}), s.push({
|
|
1736
1719
|
start: t,
|
|
1737
1720
|
end: a,
|
|
1738
|
-
value: n === "html" ?
|
|
1721
|
+
value: n === "html" ? tn(i.value) : i.value
|
|
1739
1722
|
});
|
|
1740
1723
|
}
|
|
1741
1724
|
}
|
|
1742
1725
|
}
|
|
1743
1726
|
return [...r, ...s.map((e) => e.value)].sort();
|
|
1744
1727
|
}
|
|
1745
|
-
function
|
|
1746
|
-
return JSON.stringify(
|
|
1728
|
+
function Ra(e, t, n, r) {
|
|
1729
|
+
return JSON.stringify(La(e, n, r)) !== JSON.stringify(La(t, n, r));
|
|
1747
1730
|
}
|
|
1748
1731
|
// src/components/localization/LocaleStatusChip.vue?vue&type=script&setup=true&lang.ts
|
|
1749
|
-
var
|
|
1732
|
+
var za = [
|
|
1750
1733
|
"data-state",
|
|
1751
1734
|
"aria-label",
|
|
1752
1735
|
"title",
|
|
1753
1736
|
"aria-expanded",
|
|
1754
1737
|
"aria-controls",
|
|
1755
1738
|
"onKeydown"
|
|
1756
|
-
],
|
|
1739
|
+
], Ba = [
|
|
1757
1740
|
"aria-label",
|
|
1758
1741
|
"aria-labelledby",
|
|
1759
1742
|
"aria-describedby",
|
|
1760
1743
|
"onKeydown"
|
|
1761
|
-
],
|
|
1744
|
+
], Va = ["id"], Ha = ["id"], Ua = { class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, Wa = ["disabled"], Ga = {
|
|
1762
1745
|
key: 0,
|
|
1763
1746
|
class: "tpl:m-0 tpl:mb-2 tpl:text-xs tpl:font-medium"
|
|
1764
|
-
},
|
|
1747
|
+
}, Ka = {
|
|
1765
1748
|
key: 1,
|
|
1766
1749
|
class: "tpl:m-0"
|
|
1767
|
-
},
|
|
1750
|
+
}, qa = { class: "tpl:m-0" }, Ja = { class: "tpl:mt-2 tpl:mb-0 tpl:break-words tpl:text-[var(--tpl-chrome-text-muted)]" }, Ya = {
|
|
1768
1751
|
key: 3,
|
|
1769
1752
|
class: "tpl:m-0"
|
|
1770
|
-
},
|
|
1753
|
+
}, Xa = {
|
|
1771
1754
|
key: 4,
|
|
1772
1755
|
class: "tpl:m-0"
|
|
1773
|
-
},
|
|
1756
|
+
}, Za = {
|
|
1774
1757
|
key: 5,
|
|
1775
1758
|
class: "tpl:m-0"
|
|
1776
|
-
},
|
|
1759
|
+
}, Qa = {
|
|
1777
1760
|
key: 6,
|
|
1778
1761
|
class: "tpl:m-0 tpl:list-none tpl:p-0"
|
|
1779
|
-
},
|
|
1762
|
+
}, $a = ["onClick"], eo = {
|
|
1780
1763
|
key: 7,
|
|
1781
1764
|
class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:gap-1"
|
|
1782
|
-
},
|
|
1765
|
+
}, to = ["data-testid", "disabled"], no = /*#__PURE__*/ Cr(/* @__PURE__ */ o({
|
|
1783
1766
|
__name: "LocaleStatusChip",
|
|
1784
1767
|
props: {
|
|
1785
1768
|
blockId: {},
|
|
@@ -1799,14 +1782,14 @@ var Wa = [
|
|
|
1799
1782
|
},
|
|
1800
1783
|
emits: ["target"],
|
|
1801
1784
|
setup(e, { emit: t }) {
|
|
1802
|
-
let n = e, r = t, i = g(
|
|
1785
|
+
let n = e, r = t, i = g(be, null), o = vr(i), s = g(Se, null), l = g(re, null), d = g(ze, "en") ?? "en", { t: f, format: m } = Q(), h = te(), v = Un(), { toLocal: y } = Gn(), b = H(null), x = H(null), S = H(!1), C = H(!1), T = H(null), F = H(null), R = null, z = H({
|
|
1803
1786
|
top: 0,
|
|
1804
1787
|
left: 0
|
|
1805
1788
|
}), B = H({
|
|
1806
1789
|
maxHeight: 0,
|
|
1807
1790
|
maxWidth: 0
|
|
1808
|
-
}), V = `tpl-locale-popover-${
|
|
1809
|
-
function
|
|
1791
|
+
}), V = `tpl-locale-popover-${ht()}`, W = I(() => o(i?.activeLocale?.value ?? "")), G = I(() => o(i?.content.value.settings.locale ?? "en"));
|
|
1792
|
+
function K(e, t) {
|
|
1810
1793
|
switch (e) {
|
|
1811
1794
|
case "tags-differ": return f.localization.tagsDiffer;
|
|
1812
1795
|
case "hidden": return m(f.localization.hidden, { language: W.value });
|
|
@@ -1816,7 +1799,7 @@ var Wa = [
|
|
|
1816
1799
|
default: return t === 1 ? f.localization.outOfDate : yr(f.localization.staleCount, t, d);
|
|
1817
1800
|
}
|
|
1818
1801
|
}
|
|
1819
|
-
let q = I(() =>
|
|
1802
|
+
let q = I(() => K(n.state, n.count)), J = I(() => n.popoverState ?? n.state), ne = I(() => n.popoverCount ?? n.count), ie = I(() => K(J.value, ne.value)), ae = I(() => n.state === "hidden" ? nr : n.state === "changed" ? $n : n.state === "default-stale" ? fr : n.state === "stale" ? tr : lr), oe = I(() => J.value === "default-stale" || (J.value === "missing" || J.value === "stale") && ne.value > 1), Y = I(() => n.editable && n.eligibleGaps && s?.isAvailable.value);
|
|
1820
1803
|
function X(e = !1) {
|
|
1821
1804
|
S.value = !1, C.value = !1, R = null, e && b.value?.focus({ preventScroll: !0 });
|
|
1822
1805
|
}
|
|
@@ -1869,15 +1852,15 @@ var Wa = [
|
|
|
1869
1852
|
() => i?.state.template?.id,
|
|
1870
1853
|
() => i?.loadVersion?.value
|
|
1871
1854
|
], () => X()), _(ue);
|
|
1872
|
-
let
|
|
1855
|
+
let de = (e) => {
|
|
1873
1856
|
(S.value || v.value) && (r("target", e ?? null), S.value || Z());
|
|
1874
1857
|
};
|
|
1875
1858
|
u(() => n.blockId, (e, t) => {
|
|
1876
|
-
t && l?.get(t) ===
|
|
1859
|
+
t && l?.get(t) === de && l.delete(t), l?.set(e, de);
|
|
1877
1860
|
}, { immediate: !0 }), _(() => {
|
|
1878
|
-
l?.get(n.blockId) ===
|
|
1861
|
+
l?.get(n.blockId) === de && l.delete(n.blockId);
|
|
1879
1862
|
});
|
|
1880
|
-
function
|
|
1863
|
+
function fe() {
|
|
1881
1864
|
i?.keepTranslations?.(n.blockId, n.stale), X(!0);
|
|
1882
1865
|
}
|
|
1883
1866
|
function pe(e) {
|
|
@@ -1925,7 +1908,7 @@ var Wa = [
|
|
|
1925
1908
|
size: 12,
|
|
1926
1909
|
"stroke-width": 2,
|
|
1927
1910
|
"aria-hidden": "true"
|
|
1928
|
-
}))], 40,
|
|
1911
|
+
}))], 40, za), D(v) && S.value ? (c(), A(ee, {
|
|
1929
1912
|
key: 0,
|
|
1930
1913
|
to: D(v)
|
|
1931
1914
|
}, [N("div", {
|
|
@@ -1951,12 +1934,12 @@ var Wa = [
|
|
|
1951
1934
|
N("h3", {
|
|
1952
1935
|
id: `${V}-question`,
|
|
1953
1936
|
class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
1954
|
-
}, P(D(yr)(D(f).localization.translationConfirmation, e.translationCount ?? 0, D(d))), 9,
|
|
1937
|
+
}, P(D(yr)(D(f).localization.translationConfirmation, e.translationCount ?? 0, D(d))), 9, Va),
|
|
1955
1938
|
N("p", {
|
|
1956
1939
|
id: `${V}-warning`,
|
|
1957
1940
|
class: "tpl:m-0 tpl:text-[var(--tpl-text-muted)]"
|
|
1958
|
-
}, P(D(m)(D(f).localization.translationDescription, { language: W.value })), 9,
|
|
1959
|
-
N("div",
|
|
1941
|
+
}, P(D(m)(D(f).localization.translationDescription, { language: W.value })), 9, Ha),
|
|
1942
|
+
N("div", Ua, [N("button", {
|
|
1960
1943
|
ref_key: "confirmationCancel",
|
|
1961
1944
|
ref: F,
|
|
1962
1945
|
type: "button",
|
|
@@ -1969,18 +1952,18 @@ var Wa = [
|
|
|
1969
1952
|
class: O(D(Sr)),
|
|
1970
1953
|
disabled: !Y.value || !!D(s)?.running.value || !e.translationCount,
|
|
1971
1954
|
onClick: ye
|
|
1972
|
-
}, P(D(yr)(D(f).localization.translateAllFields, e.translationCount ?? 0, D(d))), 11,
|
|
1955
|
+
}, P(D(yr)(D(f).localization.translateAllFields, e.translationCount ?? 0, D(d))), 11, Wa)])
|
|
1973
1956
|
], 64)) : (c(), w(U, { key: 1 }, [
|
|
1974
|
-
oe.value ? (c(), w("p",
|
|
1975
|
-
J.value === "missing" ? (c(), w("p",
|
|
1957
|
+
oe.value ? (c(), w("p", Ga, P(ie.value), 1)) : k("", !0),
|
|
1958
|
+
J.value === "missing" ? (c(), w("p", Ka, P(D(m)(D(f).localization.missingExplanation, { default: G.value })), 1)) : J.value === "stale" ? (c(), w(U, { key: 2 }, [N("p", qa, P(D(m)(D(f).localization.staleExplanation, { default: G.value })), 1), N("p", Ja, P(D(m)(D(f).localization.currentExcerpt, { excerpt: e.excerpt })), 1)], 64)) : J.value === "tags-differ" ? (c(), w("p", Ya, P(D(m)(D(f).localization.tagsDifferExplanation, { default: G.value })), 1)) : J.value === "changed" ? (c(), w("p", Xa, P(D(yr)(D(f).localization.changedProperties, ne.value, D(d), { default: G.value })), 1)) : J.value === "hidden" ? (c(), w("p", Za, P(D(m)(D(f).localization.hiddenExplanation, { language: W.value })), 1)) : (c(), w("ul", Qa, [(c(!0), w(U, null, p(e.staleLocales, (e) => (c(), w("li", {
|
|
1976
1959
|
key: e,
|
|
1977
1960
|
class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3"
|
|
1978
1961
|
}, [N("span", null, P(D(o)(e)), 1), N("button", {
|
|
1979
1962
|
type: "button",
|
|
1980
1963
|
class: O(D(br)),
|
|
1981
1964
|
onClick: (t) => he(e)
|
|
1982
|
-
}, P(D(f).localization.open), 11,
|
|
1983
|
-
e.editable && J.value !== "default-stale" ? (c(), w("div",
|
|
1965
|
+
}, P(D(f).localization.open), 11, $a)]))), 128))])),
|
|
1966
|
+
e.editable && J.value !== "default-stale" ? (c(), w("div", eo, [
|
|
1984
1967
|
Y.value && (J.value === "missing" || J.value === "stale" || J.value === "tags-differ") ? (c(), w("button", {
|
|
1985
1968
|
key: 0,
|
|
1986
1969
|
type: "button",
|
|
@@ -1990,19 +1973,19 @@ var Wa = [
|
|
|
1990
1973
|
class: O(D(xr)),
|
|
1991
1974
|
disabled: !!D(s)?.running.value,
|
|
1992
1975
|
onClick: ge
|
|
1993
|
-
}, P(J.value === "missing" ? D(f).localization.translate : D(f).localization.retranslate), 11,
|
|
1976
|
+
}, P(J.value === "missing" ? D(f).localization.translate : D(f).localization.retranslate), 11, to)) : k("", !0),
|
|
1994
1977
|
J.value === "stale" || J.value === "tags-differ" ? (c(), w(U, { key: 1 }, [J.value === "stale" ? (c(), w("button", {
|
|
1995
1978
|
key: 0,
|
|
1996
1979
|
type: "button",
|
|
1997
1980
|
"data-testid": "locale-keep",
|
|
1998
1981
|
class: O(D(Y.value ? br : xr)),
|
|
1999
|
-
onClick:
|
|
1982
|
+
onClick: fe
|
|
2000
1983
|
}, P(D(f).localization.keep), 3)) : k("", !0), N("button", {
|
|
2001
1984
|
type: "button",
|
|
2002
1985
|
"data-testid": "locale-use-default",
|
|
2003
1986
|
class: O(D(J.value === "tags-differ" && !Y.value ? xr : br)),
|
|
2004
1987
|
onClick: n[0] ||= (t) => pe(J.value === "tags-differ" ? e.tagsDiffer ?? [] : e.stale)
|
|
2005
|
-
}, P(D(m)(D(f).localization.useDefaultLanguage, { default:
|
|
1988
|
+
}, P(D(m)(D(f).localization.useDefaultLanguage, { default: G.value })), 3)], 64)) : k("", !0),
|
|
2006
1989
|
J.value === "changed" ? (c(), w("button", {
|
|
2007
1990
|
key: 2,
|
|
2008
1991
|
type: "button",
|
|
@@ -2018,13 +2001,13 @@ var Wa = [
|
|
|
2018
2001
|
onClick: me
|
|
2019
2002
|
}, P(D(f).localization.show), 3)) : k("", !0)
|
|
2020
2003
|
])) : k("", !0)
|
|
2021
|
-
], 64))], 44,
|
|
2004
|
+
], 64))], 44, Ba)], 8, ["to"])) : k("", !0)], 64));
|
|
2022
2005
|
}
|
|
2023
|
-
}), [["__scopeId", "data-v-1ea4fa72"]]),
|
|
2006
|
+
}), [["__scopeId", "data-v-1ea4fa72"]]), ro = /* @__PURE__ */ o({
|
|
2024
2007
|
__name: "LocaleMarkers",
|
|
2025
2008
|
props: { block: {} },
|
|
2026
2009
|
setup(e) {
|
|
2027
|
-
let t = e, n = g(
|
|
2010
|
+
let t = e, n = g(be, null), r = g(ne, void 0), i = g(Ie, []), a = g(Ze, mt.liquid), o = g(xe, I(() => /* @__PURE__ */ new Set())), s = I(() => n?.activeLocale?.value), l = I(() => s.value ? t.block.l10n?.[s.value] : void 0), d = I(() => ({
|
|
2028
2011
|
blocks: [t.block.type === "section" || t.block.type === "wrapper" ? {
|
|
2029
2012
|
...t.block,
|
|
2030
2013
|
children: []
|
|
@@ -2033,14 +2016,14 @@ var Wa = [
|
|
|
2033
2016
|
locale: n.content.value.settings.locale,
|
|
2034
2017
|
locales: n.content.value.settings.locales
|
|
2035
2018
|
}
|
|
2036
|
-
})), f = I(() => n && s.value && !o.value.has(s.value) ?
|
|
2019
|
+
})), f = I(() => n && s.value && !o.value.has(s.value) ? en(d.value, s.value, i) : {
|
|
2037
2020
|
missing: [],
|
|
2038
2021
|
stale: [],
|
|
2039
2022
|
translated: []
|
|
2040
2023
|
}), p = I(() => f.value.stale.map((e) => e.slice(t.block.id.length + 1))), m = I(() => f.value.translated.flatMap((e) => {
|
|
2041
|
-
let n = e.slice(t.block.id.length + 1), r =
|
|
2042
|
-
return typeof r == "string" && i !== void 0 &&
|
|
2043
|
-
})), h = H(null), _ = I(() => n && s.value && !o.value.has(s.value) ?
|
|
2024
|
+
let n = e.slice(t.block.id.length + 1), r = nn(t.block, n), i = l.value?.text?.[n]?.value, o = t.block.type === "html" || Ot[t.block.type]?.includes(n) ? "html" : "text";
|
|
2025
|
+
return typeof r == "string" && i !== void 0 && Ra(r, i, a, o) ? [n] : [];
|
|
2026
|
+
})), h = H(null), _ = I(() => n && s.value && !o.value.has(s.value) ? ot(d.value, s.value, {
|
|
2044
2027
|
syntax: a,
|
|
2045
2028
|
definitions: i,
|
|
2046
2029
|
doNotTranslate: r?.doNotTranslate,
|
|
@@ -2050,9 +2033,9 @@ var Wa = [
|
|
|
2050
2033
|
let n = e.slice(t.block.id.length + 1);
|
|
2051
2034
|
return f.value.translated.includes(e) && !m.value.includes(n);
|
|
2052
2035
|
})), y = I(() => Object.keys(l.value?.set ?? {}).filter((e) => {
|
|
2053
|
-
let n = e.split("."), r = n.pop(), i = n.length ?
|
|
2054
|
-
return Array.isArray(i) ?
|
|
2055
|
-
})), b = I(() => !s.value && n ? (n.content.value.settings.locales ?? []).filter((e) => !o.value.has(e) &&
|
|
2036
|
+
let n = e.split("."), r = n.pop(), i = n.length ? nn(t.block, n.join(".")) : t.block;
|
|
2037
|
+
return Array.isArray(i) ? nn(i, r) !== void 0 : i !== void 0;
|
|
2038
|
+
})), b = I(() => !s.value && n ? (n.content.value.settings.locales ?? []).filter((e) => !o.value.has(e) && en(d.value, e, i).stale.length > 0) : []), x = I(() => s.value ? o.value.has(s.value) ? null : l.value?.hidden ? "hidden" : f.value.missing.length ? "missing" : p.value.length ? "stale" : m.value.length ? "tags-differ" : y.value.length ? "changed" : null : b.value.length ? "default-stale" : null);
|
|
2056
2039
|
function S(e) {
|
|
2057
2040
|
return e === "missing" ? f.value.missing.length : e === "stale" ? p.value.length : e === "tags-differ" ? m.value.length : e === "default-stale" ? b.value.length : y.value.length;
|
|
2058
2041
|
}
|
|
@@ -2061,12 +2044,12 @@ var Wa = [
|
|
|
2061
2044
|
h.value = null;
|
|
2062
2045
|
});
|
|
2063
2046
|
let E = I(() => {
|
|
2064
|
-
let e =
|
|
2047
|
+
let e = nn(t.block, p.value[0] ?? "");
|
|
2065
2048
|
if (typeof e != "string") return "";
|
|
2066
2049
|
let n = e.split(/<[^>]*>/).join("");
|
|
2067
2050
|
return Array.from(n).slice(0, 60).join("");
|
|
2068
2051
|
});
|
|
2069
|
-
return (t, n) => D(r) && x.value ? (c(), A(
|
|
2052
|
+
return (t, n) => D(r) && x.value ? (c(), A(no, {
|
|
2070
2053
|
key: 0,
|
|
2071
2054
|
"block-id": e.block.id,
|
|
2072
2055
|
state: x.value,
|
|
@@ -2100,21 +2083,21 @@ var Wa = [
|
|
|
2100
2083
|
"editable"
|
|
2101
2084
|
])) : k("", !0);
|
|
2102
2085
|
}
|
|
2103
|
-
}),
|
|
2086
|
+
}), io = [
|
|
2104
2087
|
"data-block-id",
|
|
2105
2088
|
"data-block-type",
|
|
2106
2089
|
"data-tpl-picked"
|
|
2107
|
-
],
|
|
2090
|
+
], ao = ["aria-label"], oo = ["data-lock-holder"], so = ["aria-label"], co = [
|
|
2108
2091
|
"aria-label",
|
|
2109
2092
|
"aria-pressed",
|
|
2110
2093
|
"title"
|
|
2111
|
-
],
|
|
2094
|
+
], lo = ["aria-label", "title"], uo = ["aria-label", "title"], fo = ["aria-label", "title"], po = {
|
|
2112
2095
|
key: 3,
|
|
2113
2096
|
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"
|
|
2114
|
-
},
|
|
2097
|
+
}, mo = { 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)]" }, ho = {
|
|
2115
2098
|
key: 4,
|
|
2116
2099
|
class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
|
|
2117
|
-
},
|
|
2100
|
+
}, go = ["aria-label", "title"], _o = /*#__PURE__*/ Cr(/* @__PURE__ */ o({
|
|
2118
2101
|
__name: "BlockWrapper",
|
|
2119
2102
|
props: {
|
|
2120
2103
|
block: {},
|
|
@@ -2127,22 +2110,22 @@ var Wa = [
|
|
|
2127
2110
|
},
|
|
2128
2111
|
emits: ["select"],
|
|
2129
2112
|
setup(t, { emit: n }) {
|
|
2130
|
-
let i = b(() => import("./BlockIssueBadge-
|
|
2113
|
+
let i = b(() => import("./BlockIssueBadge-D87CYoPw.js")), a = t, o = I(() => a.displayBlock ?? a.block), s = n, { t: l, format: d } = Q(), f = g(J, null), p = H(null), m = I(() => f?.liftedBlockId.value === a.block.id), h = I(() => m.value ? d(l.blockActions.dragLifted, { block: a.block.type }) : l.blockActions.drag);
|
|
2131
2114
|
async function _() {
|
|
2132
2115
|
await j(), p.value?.focus();
|
|
2133
2116
|
}
|
|
2134
2117
|
function v(e) {
|
|
2135
2118
|
f && (e.key === " " || e.key === "Enter" ? (e.preventDefault(), e.stopPropagation(), m.value ? f.drop(a.block.id) : f.lift(a.block.id)) : m.value && (e.key === "Escape" ? (e.preventDefault(), e.stopPropagation(), f.cancel(), _()) : e.key === "ArrowUp" ? (e.preventDefault(), e.stopPropagation(), f.moveUp(a.block.id), _()) : e.key === "ArrowDown" && (e.preventDefault(), e.stopPropagation(), f.moveDown(a.block.id), _())));
|
|
2136
2119
|
}
|
|
2137
|
-
let S = I(() => !a.viewport || !o.value.visibility ? !1 : o.value.visibility[a.viewport] === !1), C = I(() => !!(
|
|
2120
|
+
let S = I(() => !a.viewport || !o.value.visibility ? !1 : o.value.visibility[a.viewport] === !1), C = I(() => !!(fe?.activeLocale?.value && a.block.l10n?.[fe.activeLocale.value]?.hidden)), E = I(() => a.previewMode === !0 && (S.value || C.value)), ee = I(() => a.viewport ? {
|
|
2138
2121
|
desktop: l.viewport.desktop,
|
|
2139
2122
|
mobile: l.viewport.mobile
|
|
2140
|
-
}[a.viewport] ?? a.viewport : ""), F = I(() => !!o.value.displayCondition), R = g(
|
|
2123
|
+
}[a.viewport] ?? a.viewport : ""), F = I(() => !!o.value.displayCondition), R = g(Ue, null), z = g(Be, null), B = g(Ee, {}), V = I(() => B.savedBlocks?.isPicking.value === !0), U = I(() => !a.nested && B.savedBlocks?.isAvailable.value === !0 && B.savedBlocks?.canCreate.value === !0), te = I(() => a.isSelected && !V.value), G = I(() => B.comments?.getBlockCount(a.block.id) ?? 0), K = H(null), q = H(null), ne = H(null), re = H(null), ie = H({
|
|
2141
2124
|
left: "calc(100% + 8px)",
|
|
2142
2125
|
top: "50%"
|
|
2143
2126
|
}), ae = H(!1), oe = I(() => q.value ?? re.value), Y = I(() => oe.value?.closest(".tpl-body"));
|
|
2144
2127
|
function X() {
|
|
2145
|
-
let e = ae.value, t = q.value, n = re.value, r =
|
|
2128
|
+
let e = ae.value, t = q.value, n = re.value, r = K.value;
|
|
2146
2129
|
if (!t && !n || !r?.offsetWidth) return;
|
|
2147
2130
|
let i = r.getBoundingClientRect(), a = i.width / r.offsetWidth || 1, o = Y.value, s = o ? (o.getBoundingClientRect().left - i.left) / a + o.clientLeft : -Infinity, c = o ? s + o.clientWidth : Infinity, l = getComputedStyle(r).direction === "rtl";
|
|
2148
2131
|
if (n?.offsetWidth) {
|
|
@@ -2153,7 +2136,7 @@ var Wa = [
|
|
|
2153
2136
|
}
|
|
2154
2137
|
}
|
|
2155
2138
|
if (!t?.offsetWidth) return;
|
|
2156
|
-
let u = Math.max(s + 4, Math.min(r.offsetWidth + 8, c - t.offsetWidth - 4)), d =
|
|
2139
|
+
let u = Math.max(s + 4, Math.min(r.offsetWidth + 8, c - t.offsetWidth - 4)), d = ne.value, f = Math.max(28, d?.offsetHeight ? d.offsetTop + d.offsetHeight + 4 : 0), p = Math.max(f + t.offsetHeight / 2, r.offsetHeight / 2), m = u < r.offsetWidth && p + t.offsetHeight / 2 <= r.offsetHeight + 8 ? `${p}px` : "50%";
|
|
2157
2140
|
if (u >= r.offsetWidth && n?.offsetWidth && !e && !l) {
|
|
2158
2141
|
let e = (n.getBoundingClientRect().bottom - i.top) / a + 4 + t.offsetHeight / 2;
|
|
2159
2142
|
e > r.offsetHeight / 2 && (m = `${e}px`);
|
|
@@ -2171,40 +2154,40 @@ var Wa = [
|
|
|
2171
2154
|
});
|
|
2172
2155
|
}
|
|
2173
2156
|
x(X), r(I(() => oe.value ? [
|
|
2174
|
-
|
|
2157
|
+
K.value,
|
|
2175
2158
|
q.value,
|
|
2176
|
-
|
|
2159
|
+
ne.value,
|
|
2177
2160
|
re.value,
|
|
2178
2161
|
Y.value
|
|
2179
2162
|
].filter((e) => !!e) : []), X), e(Y, "scroll", X, { passive: !0 });
|
|
2180
|
-
let Z = I(() => B.collaboration?.lockOf(a.block.id) ?? null), se = I(() => Z.value?.holder.type === "guest" ? l.collaboration.guest : Z.value?.holder.name ?? ""), ce = I(() => B.collaboration?.agentHighlightOf(a.block.id) ?? B.ai?.highlightOf(a.block.id) ?? null), le =
|
|
2181
|
-
u([() =>
|
|
2182
|
-
let
|
|
2163
|
+
let Z = I(() => B.collaboration?.lockOf(a.block.id) ?? null), se = I(() => Z.value?.holder.type === "guest" ? l.collaboration.guest : Z.value?.holder.name ?? ""), ce = I(() => B.collaboration?.agentHighlightOf(a.block.id) ?? B.ai?.highlightOf(a.block.id) ?? null), le = In(() => o.value.type === "section" ? o.value.backgroundImage : void 0), de = In(() => o.value.type === "section" ? o.value.wrapper?.backgroundImage : void 0), fe = g(be, null), pe = fe ? Kn(fe) : null, me = g(ue, null) ?? pe?.content ?? null;
|
|
2164
|
+
u([() => fe?.activeLocale?.value, () => pe && Gt(pe.settings.value)], X, { flush: "post" });
|
|
2165
|
+
let he = g(Je, void 0), ge = I(() => zi(o.value, {
|
|
2183
2166
|
backgroundImageUrl: le.value,
|
|
2184
|
-
heroBoxWidth:
|
|
2185
|
-
})),
|
|
2167
|
+
heroBoxWidth: On(o.value) ? Mn(o.value, me?.value, he) : void 0
|
|
2168
|
+
})), _e = I(() => Gi(o.value, { backgroundImageUrl: de.value })), ve = I(() => {
|
|
2186
2169
|
let e = o.value;
|
|
2187
2170
|
return e.type === "section" && e.wrapper?.fullWidth === !0 ? e : void 0;
|
|
2188
|
-
}),
|
|
2189
|
-
function
|
|
2171
|
+
}), ye = I(() => Wi(ve.value?.wrapper?.padding));
|
|
2172
|
+
function xe(e) {
|
|
2190
2173
|
a.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), s("select"));
|
|
2191
2174
|
}
|
|
2192
|
-
function
|
|
2175
|
+
function Se() {
|
|
2193
2176
|
R?.deleteBlock(a.block.id);
|
|
2194
2177
|
}
|
|
2195
|
-
function
|
|
2178
|
+
function Ce() {
|
|
2196
2179
|
R?.duplicateBlock(a.block);
|
|
2197
2180
|
}
|
|
2198
|
-
function
|
|
2181
|
+
function we() {
|
|
2199
2182
|
B.savedBlocks?.startPicking(a.block.id);
|
|
2200
2183
|
}
|
|
2201
|
-
function
|
|
2184
|
+
function Te() {
|
|
2202
2185
|
z?.toggleBlock(a.block.id);
|
|
2203
2186
|
}
|
|
2204
2187
|
return (e, n) => E.value ? k("", !0) : (c(), w("div", {
|
|
2205
2188
|
key: 0,
|
|
2206
2189
|
ref_key: "blockElement",
|
|
2207
|
-
ref:
|
|
2190
|
+
ref: K,
|
|
2208
2191
|
class: O(["tpl-block tpl:group tpl:relative tpl:cursor-pointer tpl:rounded-sm tpl:transition-shadow", {
|
|
2209
2192
|
"tpl-block--selected": t.isSelected,
|
|
2210
2193
|
"tpl-block--locale-hidden": C.value,
|
|
@@ -2215,26 +2198,26 @@ var Wa = [
|
|
|
2215
2198
|
"data-block-id": t.block.id,
|
|
2216
2199
|
"data-block-type": t.block.type,
|
|
2217
2200
|
"data-tpl-picked": t.picked || void 0,
|
|
2218
|
-
onClick:
|
|
2201
|
+
onClick: xe
|
|
2219
2202
|
}, [
|
|
2220
2203
|
N("div", {
|
|
2221
2204
|
ref_key: "badgesElement",
|
|
2222
|
-
ref:
|
|
2205
|
+
ref: ne,
|
|
2223
2206
|
class: "tpl-block-badges tpl:absolute tpl:top-1 tpl:inset-e-1 tpl:z-10 tpl:flex tpl:gap-1"
|
|
2224
2207
|
}, [
|
|
2225
|
-
|
|
2208
|
+
G.value > 0 && !S.value ? (c(), w("button", {
|
|
2226
2209
|
key: 0,
|
|
2227
2210
|
ref_key: "commentElement",
|
|
2228
2211
|
ref: re,
|
|
2229
2212
|
class: O(["tpl-comment-indicator tpl:flex tpl:min-h-6 tpl:min-w-6 tpl:shrink-0 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:bg-[var(--tpl-chrome-primary-light)] tpl:text-[var(--tpl-primary)]", ae.value ? void 0 : "tpl:absolute tpl:-top-2 tpl:inset-s-full tpl:ms-2"]),
|
|
2230
|
-
"aria-label": D(d)(D(l).blockActions.comments, { count: String(
|
|
2213
|
+
"aria-label": D(d)(D(l).blockActions.comments, { count: String(G.value) }),
|
|
2231
2214
|
onClick: n[0] ||= M((e) => D(B).comments?.openForBlock(t.block.id), ["stop"])
|
|
2232
2215
|
}, [W(D(pr), {
|
|
2233
2216
|
size: 12,
|
|
2234
2217
|
"stroke-width": 2.5
|
|
2235
|
-
}), T(" " + P(
|
|
2218
|
+
}), T(" " + P(G.value), 1)], 10, ao)) : k("", !0),
|
|
2236
2219
|
W(D(i), { "block-id": t.block.id }, null, 8, ["block-id"]),
|
|
2237
|
-
t.previewMode ? k("", !0) : (c(), A(
|
|
2220
|
+
t.previewMode ? k("", !0) : (c(), A(ro, {
|
|
2238
2221
|
key: 1,
|
|
2239
2222
|
block: t.block
|
|
2240
2223
|
}, null, 8, ["block"]))
|
|
@@ -2254,7 +2237,7 @@ var Wa = [
|
|
|
2254
2237
|
backgroundColor: Z.value.holder.color,
|
|
2255
2238
|
color: D(wr)(Z.value.holder.color)
|
|
2256
2239
|
})
|
|
2257
|
-
}, P(D(d)(D(l).collaboration.editing, { name: se.value })), 5)], 12,
|
|
2240
|
+
}, P(D(d)(D(l).collaboration.editing, { name: se.value })), 5)], 12, oo)) : k("", !0),
|
|
2258
2241
|
ce.value === null ? k("", !0) : (c(), w("div", {
|
|
2259
2242
|
key: ce.value,
|
|
2260
2243
|
"data-testid": "block-agent-highlight",
|
|
@@ -2282,78 +2265,78 @@ var Wa = [
|
|
|
2282
2265
|
}, [W(D(gr), {
|
|
2283
2266
|
size: 14,
|
|
2284
2267
|
"stroke-width": 1.5
|
|
2285
|
-
})], 40,
|
|
2268
|
+
})], 40, co),
|
|
2286
2269
|
N("button", {
|
|
2287
2270
|
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",
|
|
2288
2271
|
"aria-label": D(l).blockActions.duplicate,
|
|
2289
2272
|
title: D(l).blockActions.duplicate,
|
|
2290
|
-
onClick: M(
|
|
2273
|
+
onClick: M(Ce, ["stop"])
|
|
2291
2274
|
}, [W(D(Qn), {
|
|
2292
2275
|
size: 14,
|
|
2293
2276
|
"stroke-width": 1.5
|
|
2294
|
-
})], 8,
|
|
2277
|
+
})], 8, lo),
|
|
2295
2278
|
U.value ? (c(), w("button", {
|
|
2296
2279
|
key: 0,
|
|
2297
2280
|
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",
|
|
2298
2281
|
"aria-label": D(l).blockActions.saveAsBlock,
|
|
2299
2282
|
title: D(l).blockActions.saveAsBlock,
|
|
2300
|
-
onClick: M(
|
|
2283
|
+
onClick: M(we, ["stop"])
|
|
2301
2284
|
}, [W(D(or), {
|
|
2302
2285
|
size: 14,
|
|
2303
2286
|
"stroke-width": 1.5
|
|
2304
|
-
})], 8,
|
|
2287
|
+
})], 8, uo)) : k("", !0),
|
|
2305
2288
|
N("button", {
|
|
2306
2289
|
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",
|
|
2307
2290
|
"aria-label": D(l).blockActions.delete,
|
|
2308
2291
|
title: D(l).blockActions.delete,
|
|
2309
|
-
onClick: M(
|
|
2292
|
+
onClick: M(Se, ["stop"])
|
|
2310
2293
|
}, [W(D(ur), {
|
|
2311
2294
|
size: 14,
|
|
2312
2295
|
"stroke-width": 1.5
|
|
2313
|
-
})], 8,
|
|
2314
|
-
], 12,
|
|
2315
|
-
S.value ? (c(), w("div",
|
|
2296
|
+
})], 8, fo)
|
|
2297
|
+
], 12, so)) : k("", !0),
|
|
2298
|
+
S.value ? (c(), w("div", po, [N("span", mo, [W(D(nr), {
|
|
2316
2299
|
size: 12,
|
|
2317
2300
|
"stroke-width": 1.5
|
|
2318
2301
|
}), T(" " + P(D(d)(D(l).blockActions.hiddenOnViewport, { viewport: ee.value })), 1)])])) : k("", !0),
|
|
2319
|
-
F.value && !S.value ? (c(), w("div",
|
|
2302
|
+
F.value && !S.value ? (c(), w("div", ho, [N("button", {
|
|
2320
2303
|
"data-testid": "condition-toggle",
|
|
2321
2304
|
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:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-primary)] tpl:border tpl:border-[var(--tpl-border)]",
|
|
2322
2305
|
"aria-label": D(l).blockActions.conditionToggle,
|
|
2323
2306
|
title: t.block.displayCondition?.label,
|
|
2324
|
-
onClick: M(
|
|
2307
|
+
onClick: M(Te, ["stop"])
|
|
2325
2308
|
}, [W(D(rr), {
|
|
2326
2309
|
size: 12,
|
|
2327
2310
|
"stroke-width": 2
|
|
2328
|
-
})], 8,
|
|
2329
|
-
|
|
2311
|
+
})], 8, go)])) : k("", !0),
|
|
2312
|
+
_e.value ? (c(), w("div", {
|
|
2330
2313
|
key: 5,
|
|
2331
|
-
class: O(["tpl-section-wrapper tpl-email-surface", D(
|
|
2332
|
-
style: L(
|
|
2333
|
-
}, [
|
|
2314
|
+
class: O(["tpl-section-wrapper tpl-email-surface", D(Fi)(_e.value)]),
|
|
2315
|
+
style: L(_e.value)
|
|
2316
|
+
}, [ve.value ? (c(), w("div", {
|
|
2334
2317
|
key: 0,
|
|
2335
2318
|
class: "tpl-band-frame",
|
|
2336
|
-
style: L(
|
|
2319
|
+
style: L(ye.value)
|
|
2337
2320
|
}, [N("div", {
|
|
2338
|
-
class: O(["tpl-block-content tpl-email-surface", D(
|
|
2339
|
-
style: L(
|
|
2321
|
+
class: O(["tpl-block-content tpl-email-surface", D(Fi)(ge.value)]),
|
|
2322
|
+
style: L(ge.value)
|
|
2340
2323
|
}, [y(e.$slots, "default", {}, void 0, !0)], 6)], 4)) : (c(), w("div", {
|
|
2341
2324
|
key: 1,
|
|
2342
|
-
class: O(["tpl-block-content tpl-email-surface", D(
|
|
2343
|
-
style: L(
|
|
2325
|
+
class: O(["tpl-block-content tpl-email-surface", D(Fi)(ge.value)]),
|
|
2326
|
+
style: L(ge.value)
|
|
2344
2327
|
}, [y(e.$slots, "default", {}, void 0, !0)], 6))], 6)) : (c(), w("div", {
|
|
2345
2328
|
key: 6,
|
|
2346
|
-
class: O(["tpl-block-content tpl-email-surface", D(
|
|
2347
|
-
style: L(
|
|
2329
|
+
class: O(["tpl-block-content tpl-email-surface", D(Fi)(ge.value)]),
|
|
2330
|
+
style: L(ge.value)
|
|
2348
2331
|
}, [y(e.$slots, "default", {}, void 0, !0)], 6))
|
|
2349
|
-
], 10,
|
|
2332
|
+
], 10, io));
|
|
2350
2333
|
}
|
|
2351
2334
|
}), [["__scopeId", "data-v-872194d3"]]);
|
|
2352
2335
|
// src/utils/unwrapParagraph.ts
|
|
2353
|
-
function
|
|
2336
|
+
function vo(e) {
|
|
2354
2337
|
let t = /^\s*<p\b/.exec(e);
|
|
2355
2338
|
if (!t) return e;
|
|
2356
|
-
let n =
|
|
2339
|
+
let n = pn(e, t[0].length);
|
|
2357
2340
|
if (n === -1) return e;
|
|
2358
2341
|
let r = /<\/p>\s*$/.exec(e);
|
|
2359
2342
|
if (!r || r.index <= n) return e;
|
|
@@ -2361,22 +2344,22 @@ function Co(e) {
|
|
|
2361
2344
|
return /<\/p>\s*<p\b/i.test(i) ? e : i;
|
|
2362
2345
|
}
|
|
2363
2346
|
// src/components/blocks/TitleBlock.vue
|
|
2364
|
-
var
|
|
2347
|
+
var yo = /* @__PURE__ */ o({
|
|
2365
2348
|
__name: "TitleBlock",
|
|
2366
2349
|
props: {
|
|
2367
2350
|
block: {},
|
|
2368
2351
|
viewport: {}
|
|
2369
2352
|
},
|
|
2370
2353
|
setup(e) {
|
|
2371
|
-
let t = e, n = b(() => import("./TitleEditor-
|
|
2354
|
+
let t = e, n = b(() => import("./TitleEditor-k2vSwKxN.js")), r = Fe(Xe, "TitleBlock"), { isEditing: i, blockRef: o, toolbarPosition: s, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = Na(() => t.block.content), f = I(() => {
|
|
2372
2355
|
let e = {
|
|
2373
|
-
fontSize: `${
|
|
2374
|
-
lineHeight: String(
|
|
2356
|
+
fontSize: `${dt[t.block.level]}px`,
|
|
2357
|
+
lineHeight: String(Tt),
|
|
2375
2358
|
fontWeight: "700",
|
|
2376
2359
|
textAlign: t.block.textAlign
|
|
2377
2360
|
};
|
|
2378
2361
|
return t.block.color && (e.color = t.block.color), t.block.fontFamily && (e.fontFamily = r.resolveFontFamily(t.block.fontFamily)), e;
|
|
2379
|
-
}), p = I(() => `h${t.block.level}`), m = I(() => Zn(
|
|
2362
|
+
}), p = I(() => `h${t.block.level}`), m = I(() => Zn(vo(l.value)));
|
|
2380
2363
|
return (t, r) => (c(), w("div", {
|
|
2381
2364
|
ref_key: "blockRef",
|
|
2382
2365
|
ref: o,
|
|
@@ -2402,14 +2385,14 @@ var wo = /* @__PURE__ */ o({
|
|
|
2402
2385
|
innerHTML: m.value
|
|
2403
2386
|
}, null, 8, ["innerHTML"]))], 36));
|
|
2404
2387
|
}
|
|
2405
|
-
}),
|
|
2406
|
-
function
|
|
2407
|
-
let n =
|
|
2408
|
-
n.color =
|
|
2409
|
-
let r =
|
|
2410
|
-
r.content = `<p style="text-align: center"><span style="color: ${
|
|
2411
|
-
let i =
|
|
2412
|
-
return i.align = "center",
|
|
2388
|
+
}), bo = "hero", xo = "#1f2937", So = "#ffffff";
|
|
2389
|
+
function Co(e, t) {
|
|
2390
|
+
let n = _n("title", e);
|
|
2391
|
+
n.color = So, n.textAlign = "center";
|
|
2392
|
+
let r = _n("paragraph", e);
|
|
2393
|
+
r.content = `<p style="text-align: center"><span style="color: ${So}">${wo(t)}</span></p>`;
|
|
2394
|
+
let i = _n("button", e);
|
|
2395
|
+
return i.align = "center", wt({
|
|
2413
2396
|
columns: "1",
|
|
2414
2397
|
children: [[
|
|
2415
2398
|
n,
|
|
@@ -2427,28 +2410,28 @@ function Oo(e, t) {
|
|
|
2427
2410
|
bottom: 48,
|
|
2428
2411
|
left: 24
|
|
2429
2412
|
},
|
|
2430
|
-
backgroundColor:
|
|
2413
|
+
backgroundColor: xo
|
|
2431
2414
|
}
|
|
2432
2415
|
});
|
|
2433
2416
|
}
|
|
2434
|
-
function
|
|
2417
|
+
function wo(e) {
|
|
2435
2418
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
2436
2419
|
}
|
|
2437
2420
|
// src/utils/sectionColumnDrop.ts
|
|
2438
|
-
var
|
|
2439
|
-
function
|
|
2440
|
-
return e.dataset.blockType !== "section" && !
|
|
2421
|
+
var To = /* @__PURE__ */ new Set(["section", bo]);
|
|
2422
|
+
function Eo(e) {
|
|
2423
|
+
return e.dataset.blockType !== "section" && !To.has(e.dataset.paletteType ?? "");
|
|
2441
2424
|
}
|
|
2442
2425
|
// src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
|
|
2443
|
-
var
|
|
2426
|
+
var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
|
|
2444
2427
|
key: 0,
|
|
2445
2428
|
"data-testid": "hero-image-hint",
|
|
2446
2429
|
class: "tpl:pointer-events-none tpl:absolute tpl:inset-x-0 tpl:bottom-full tpl:mb-2 tpl:flex tpl:justify-center tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]"
|
|
2447
|
-
},
|
|
2430
|
+
}, ko = {
|
|
2448
2431
|
key: 0,
|
|
2449
2432
|
"data-testid": "section-drop-hint",
|
|
2450
2433
|
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)]"
|
|
2451
|
-
},
|
|
2434
|
+
}, Ao = /* @__PURE__ */ o({
|
|
2452
2435
|
__name: "SectionBlock",
|
|
2453
2436
|
props: {
|
|
2454
2437
|
block: {},
|
|
@@ -2457,21 +2440,21 @@ var Mo = { class: "tpl:relative tpl:w-full" }, No = {
|
|
|
2457
2440
|
},
|
|
2458
2441
|
setup(e) {
|
|
2459
2442
|
let t = {
|
|
2460
|
-
title:
|
|
2461
|
-
paragraph:
|
|
2462
|
-
image:
|
|
2463
|
-
button:
|
|
2464
|
-
divider:
|
|
2465
|
-
custom:
|
|
2466
|
-
}, n = e, { t: r } =
|
|
2467
|
-
d(
|
|
2468
|
-
let h = g(
|
|
2443
|
+
title: yo,
|
|
2444
|
+
paragraph: Fa,
|
|
2445
|
+
image: Oa,
|
|
2446
|
+
button: Xi,
|
|
2447
|
+
divider: ua,
|
|
2448
|
+
custom: ca
|
|
2449
|
+
}, n = e, { t: r } = Q(), o = Fe(be, "SectionBlock"), { displayBlock: s } = Kn(o), u = I(() => n.sourceBlock ?? n.block), m = g(xe, I(() => /* @__PURE__ */ new Set()));
|
|
2450
|
+
d(xe, I(() => /* @__PURE__ */ new Set([...m.value, ...Object.entries(u.value.l10n ?? {}).filter(([, e]) => e.hidden).map(([e]) => e)])));
|
|
2451
|
+
let h = g(Be, null), _ = g(Pe, null), v = g(Ee, {}), y = g(X, null), b = g(Re, null);
|
|
2469
2452
|
function x(e) {
|
|
2470
2453
|
if (y?.value) return;
|
|
2471
2454
|
let t = v.savedBlocks;
|
|
2472
2455
|
t?.isPicking.value ? t.togglePick(n.block.id) : o.selectBlock(e);
|
|
2473
2456
|
}
|
|
2474
|
-
let S = I(() =>
|
|
2457
|
+
let S = I(() => It(n.block).map((e) => `${e}%`)), C = I(() => {
|
|
2475
2458
|
let e = S.value.length, t = [...(o.state.previewMode ? n.block : u.value).children];
|
|
2476
2459
|
for (; t.length < e;) t.push([]);
|
|
2477
2460
|
return t.slice(0, e);
|
|
@@ -2491,7 +2474,7 @@ var Mo = { class: "tpl:relative tpl:w-full" }, No = {
|
|
|
2491
2474
|
}
|
|
2492
2475
|
let R = I(() => {
|
|
2493
2476
|
if (o.state.previewMode) return !1;
|
|
2494
|
-
let e =
|
|
2477
|
+
let e = Mt(n.block);
|
|
2495
2478
|
return e !== null && !e.applied && e.reason === "image";
|
|
2496
2479
|
});
|
|
2497
2480
|
function B(e) {
|
|
@@ -2500,11 +2483,11 @@ var Mo = { class: "tpl:relative tpl:w-full" }, No = {
|
|
|
2500
2483
|
function te(e) {
|
|
2501
2484
|
return E(e).length === 0 && o.state.previewMode;
|
|
2502
2485
|
}
|
|
2503
|
-
function
|
|
2504
|
-
y?.value ||
|
|
2486
|
+
function G(e, t) {
|
|
2487
|
+
y?.value || Ia(o, t, n.block.id, e);
|
|
2505
2488
|
}
|
|
2506
|
-
function
|
|
2507
|
-
return
|
|
2489
|
+
function K(e) {
|
|
2490
|
+
return Ai(e, _, t);
|
|
2508
2491
|
}
|
|
2509
2492
|
function q(e, t) {
|
|
2510
2493
|
y?.value || e.type !== "custom" || o.updateBlock(e.id, {
|
|
@@ -2512,7 +2495,7 @@ var Mo = { class: "tpl:relative tpl:w-full" }, No = {
|
|
|
2512
2495
|
dataSourceFetched: t.dataSourceFetched
|
|
2513
2496
|
});
|
|
2514
2497
|
}
|
|
2515
|
-
return (t, u) => (c(), w("div",
|
|
2498
|
+
return (t, u) => (c(), w("div", Do, [R.value ? (c(), w("div", Oo, [N("span", null, P(D(r).section.heroAddImage), 1)])) : k("", !0), N("div", { class: O(["tpl:flex tpl:gap-0", { "tpl:flex-col": T.value }]) }, [(c(!0), w(U, null, p(C.value, (t, d) => (c(), w("div", {
|
|
2516
2499
|
key: d,
|
|
2517
2500
|
class: O(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", B(d) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
|
|
2518
2501
|
style: L({ width: T.value ? "100%" : S.value[d] })
|
|
@@ -2522,7 +2505,7 @@ var Mo = { class: "tpl:relative tpl:w-full" }, No = {
|
|
|
2522
2505
|
group: {
|
|
2523
2506
|
name: "blocks",
|
|
2524
2507
|
pull: !0,
|
|
2525
|
-
put: (e, t, n) => D(
|
|
2508
|
+
put: (e, t, n) => D(Eo)(n)
|
|
2526
2509
|
},
|
|
2527
2510
|
animation: 150,
|
|
2528
2511
|
"ghost-class": "tpl-ghost",
|
|
@@ -2536,12 +2519,12 @@ var Mo = { class: "tpl:relative tpl:w-full" }, No = {
|
|
|
2536
2519
|
"tpl:min-h-[60px]": F(d),
|
|
2537
2520
|
"tpl:min-h-[34px]": te(d)
|
|
2538
2521
|
}]),
|
|
2539
|
-
onUpdate: (e) => !D(y) && D(
|
|
2522
|
+
onUpdate: (e) => !D(y) && D(Ia)(D(o), E(d), n.block.id, d, e),
|
|
2540
2523
|
onStart: (e) => M.value = d,
|
|
2541
2524
|
onEnd: u[0] ||= (e) => M.value = null,
|
|
2542
|
-
"onUpdate:modelValue": (e) =>
|
|
2525
|
+
"onUpdate:modelValue": (e) => G(d, e)
|
|
2543
2526
|
}, {
|
|
2544
|
-
default: l(() => [(c(!0), w(U, null, p(E(d), (t) => f((c(), w("div", { key: t.id }, [W(
|
|
2527
|
+
default: l(() => [(c(!0), w(U, null, p(E(d), (t) => f((c(), w("div", { key: t.id }, [W(_o, {
|
|
2545
2528
|
block: t,
|
|
2546
2529
|
"display-block": D(s)(t),
|
|
2547
2530
|
"is-selected": D(o).state.selectedBlockId === t.id,
|
|
@@ -2550,7 +2533,7 @@ var Mo = { class: "tpl:relative tpl:w-full" }, No = {
|
|
|
2550
2533
|
nested: "",
|
|
2551
2534
|
onSelect: (e) => x(t.id)
|
|
2552
2535
|
}, {
|
|
2553
|
-
default: l(() => [(c(), A(a(
|
|
2536
|
+
default: l(() => [(c(), A(a(K(t)), i({ block: D(s)(t) }, { ref_for: !0 }, t.type === "section" ? { sourceBlock: t } : {}, {
|
|
2554
2537
|
viewport: e.viewport,
|
|
2555
2538
|
onFetchData: (e) => q(t, e),
|
|
2556
2539
|
onUpdate: (e) => !D(y) && D(o).updateBlock(t.id, e)
|
|
@@ -2578,20 +2561,20 @@ var Mo = { class: "tpl:relative tpl:w-full" }, No = {
|
|
|
2578
2561
|
"onUpdate",
|
|
2579
2562
|
"onStart",
|
|
2580
2563
|
"onUpdate:modelValue"
|
|
2581
|
-
]), B(d) ? (c(), w("div",
|
|
2564
|
+
]), B(d) ? (c(), w("div", ko, [N("span", null, P(D(r).section.dropHere), 1)])) : k("", !0)], 6))), 128))], 2)]));
|
|
2582
2565
|
}
|
|
2583
|
-
}),
|
|
2566
|
+
}), jo = [
|
|
2584
2567
|
"src",
|
|
2585
2568
|
"alt",
|
|
2586
2569
|
"width"
|
|
2587
|
-
],
|
|
2570
|
+
], Mo = ["aria-label"], No = /* @__PURE__ */ o({
|
|
2588
2571
|
__name: "SocialCustomIconImage",
|
|
2589
2572
|
props: {
|
|
2590
2573
|
icon: {},
|
|
2591
2574
|
iconSize: {}
|
|
2592
2575
|
},
|
|
2593
2576
|
setup(e) {
|
|
2594
|
-
let t = e, { t: n } =
|
|
2577
|
+
let t = e, { t: n } = Q(), { syntax: r } = Qe(), i = I(() => Nn[t.iconSize]), a = I(() => Math.round(i.value / 2)), o = I(() => typeof t.icon.imageUrl == "string" ? t.icon.imageUrl : ""), s = I(() => Nt(o.value, r)), l = En(() => s.value || o.value.trim() === "" ? void 0 : o.value);
|
|
2595
2578
|
return (t, r) => D(l) ? (c(), w("img", {
|
|
2596
2579
|
key: 0,
|
|
2597
2580
|
src: D(l),
|
|
@@ -2601,7 +2584,7 @@ var Mo = { class: "tpl:relative tpl:w-full" }, No = {
|
|
|
2601
2584
|
display: "block",
|
|
2602
2585
|
height: "auto"
|
|
2603
2586
|
}
|
|
2604
|
-
}, null, 8,
|
|
2587
|
+
}, null, 8, jo)) : (c(), w("div", {
|
|
2605
2588
|
key: 1,
|
|
2606
2589
|
role: "img",
|
|
2607
2590
|
"aria-label": D(n).social.customIconMissing,
|
|
@@ -2614,14 +2597,14 @@ var Mo = { class: "tpl:relative tpl:w-full" }, No = {
|
|
|
2614
2597
|
size: a.value,
|
|
2615
2598
|
"stroke-width": 1.5,
|
|
2616
2599
|
"aria-hidden": "true"
|
|
2617
|
-
}, null, 8, ["size"])], 12,
|
|
2600
|
+
}, null, 8, ["size"])], 12, Mo));
|
|
2618
2601
|
}
|
|
2619
|
-
}),
|
|
2602
|
+
}), Po = ["width", "height"], Fo = [
|
|
2620
2603
|
"d",
|
|
2621
2604
|
"stroke",
|
|
2622
2605
|
"stroke-opacity",
|
|
2623
2606
|
"stroke-width"
|
|
2624
|
-
],
|
|
2607
|
+
], Io = ["d", "fill"], Lo = /* @__PURE__ */ o({
|
|
2625
2608
|
__name: "SocialIconSvg",
|
|
2626
2609
|
props: {
|
|
2627
2610
|
platform: {},
|
|
@@ -2630,7 +2613,7 @@ var Mo = { class: "tpl:relative tpl:w-full" }, No = {
|
|
|
2630
2613
|
iconSize: {}
|
|
2631
2614
|
},
|
|
2632
2615
|
setup(e) {
|
|
2633
|
-
let t = e, n = I(() =>
|
|
2616
|
+
let t = e, n = I(() => jn[t.platform]), r = I(() => Nn[t.iconSize]), i = I(() => yt(t.platform, t.iconTone)), a = I(() => yn(t.iconStyle, t.iconTone)), o = I(() => {
|
|
2634
2617
|
let e = {
|
|
2635
2618
|
display: "inline-flex",
|
|
2636
2619
|
alignItems: "center",
|
|
@@ -2668,7 +2651,7 @@ var Mo = { class: "tpl:relative tpl:w-full" }, No = {
|
|
|
2668
2651
|
};
|
|
2669
2652
|
default: return e;
|
|
2670
2653
|
}
|
|
2671
|
-
}), s = I(() =>
|
|
2654
|
+
}), s = I(() => kt(t.iconStyle)), l = I(() => Math.floor(r.value * s.value));
|
|
2672
2655
|
function u(e) {
|
|
2673
2656
|
let t = `${e.width / 2 * r.value / 24}px`, n = Math.round(e.opacity * 255).toString(16).padStart(2, "0"), i = `${e.color}${n}`;
|
|
2674
2657
|
return `0 0 0 ${t} ${i}, inset 0 0 0 ${t} ${i}`;
|
|
@@ -2689,22 +2672,22 @@ var Mo = { class: "tpl:relative tpl:w-full" }, No = {
|
|
|
2689
2672
|
"stroke-opacity": a.value.opacity,
|
|
2690
2673
|
"stroke-width": a.value.width / s.value,
|
|
2691
2674
|
"stroke-linejoin": "round"
|
|
2692
|
-
}, null, 8,
|
|
2675
|
+
}, null, 8, Fo)) : k("", !0), N("path", {
|
|
2693
2676
|
d: n.value.path,
|
|
2694
2677
|
fill: d.value
|
|
2695
|
-
}, null, 8,
|
|
2678
|
+
}, null, 8, Io)], 8, Po))], 4));
|
|
2696
2679
|
}
|
|
2697
|
-
}),
|
|
2680
|
+
}), Ro = { class: "tpl:w-full" }, zo = ["href"], Bo = {
|
|
2698
2681
|
key: 1,
|
|
2699
2682
|
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)]"
|
|
2700
|
-
},
|
|
2683
|
+
}, Vo = /* @__PURE__ */ o({
|
|
2701
2684
|
__name: "SocialIconsBlock",
|
|
2702
2685
|
props: {
|
|
2703
2686
|
block: {},
|
|
2704
2687
|
viewport: {}
|
|
2705
2688
|
},
|
|
2706
2689
|
setup(e) {
|
|
2707
|
-
let t = e, { t: n } =
|
|
2690
|
+
let t = e, { t: n } = Q(), r = I(() => ({
|
|
2708
2691
|
display: "flex",
|
|
2709
2692
|
flexWrap: "wrap",
|
|
2710
2693
|
gap: `${t.block.spacing}px`,
|
|
@@ -2713,7 +2696,7 @@ var Mo = { class: "tpl:relative tpl:w-full" }, No = {
|
|
|
2713
2696
|
function a(e) {
|
|
2714
2697
|
return e.platform === "custom";
|
|
2715
2698
|
}
|
|
2716
|
-
return (t, o) => (c(), w("div",
|
|
2699
|
+
return (t, o) => (c(), w("div", Ro, [i.value ? (c(), w("div", {
|
|
2717
2700
|
key: 0,
|
|
2718
2701
|
style: L(r.value)
|
|
2719
2702
|
}, [(c(!0), w(U, null, p(e.block.icons, (t) => (c(), w("a", {
|
|
@@ -2721,11 +2704,11 @@ var Mo = { class: "tpl:relative tpl:w-full" }, No = {
|
|
|
2721
2704
|
href: t.url || "#",
|
|
2722
2705
|
class: "tpl:cursor-default",
|
|
2723
2706
|
onClick: o[0] ||= M(() => {}, ["prevent"])
|
|
2724
|
-
}, [a(t) ? (c(), A(
|
|
2707
|
+
}, [a(t) ? (c(), A(No, {
|
|
2725
2708
|
key: 0,
|
|
2726
2709
|
icon: t,
|
|
2727
2710
|
"icon-size": e.block.iconSize
|
|
2728
|
-
}, null, 8, ["icon", "icon-size"])) : (c(), A(
|
|
2711
|
+
}, null, 8, ["icon", "icon-size"])) : (c(), A(Lo, {
|
|
2729
2712
|
key: 1,
|
|
2730
2713
|
platform: t.platform,
|
|
2731
2714
|
"icon-style": e.block.iconStyle,
|
|
@@ -2736,46 +2719,46 @@ var Mo = { class: "tpl:relative tpl:w-full" }, No = {
|
|
|
2736
2719
|
"icon-style",
|
|
2737
2720
|
"icon-tone",
|
|
2738
2721
|
"icon-size"
|
|
2739
|
-
]))], 8,
|
|
2722
|
+
]))], 8, zo))), 128))], 4)) : (c(), w("div", Bo, [W(D(dr), { size: 16 }), N("span", null, P(D(n).social.addIcons), 1)]))]));
|
|
2740
2723
|
}
|
|
2741
|
-
}),
|
|
2724
|
+
}), Ho = { class: "tpl:w-full" }, Uo = {
|
|
2742
2725
|
key: 0,
|
|
2743
2726
|
class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
|
|
2744
2727
|
style: {
|
|
2745
2728
|
"background-color": "var(--tpl-bg-hover)",
|
|
2746
2729
|
color: "var(--tpl-text-dim)"
|
|
2747
2730
|
}
|
|
2748
|
-
},
|
|
2731
|
+
}, Wo = /* @__PURE__ */ o({
|
|
2749
2732
|
__name: "SpacerBlock",
|
|
2750
2733
|
props: {
|
|
2751
2734
|
block: {},
|
|
2752
2735
|
viewport: {}
|
|
2753
2736
|
},
|
|
2754
2737
|
setup(e) {
|
|
2755
|
-
let t = e, n =
|
|
2738
|
+
let t = e, n = Fe(be, "SpacerBlock"), r = I(() => ({
|
|
2756
2739
|
height: `${t.block.height}px`,
|
|
2757
2740
|
minHeight: `${t.block.height}px`,
|
|
2758
2741
|
...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
|
|
2759
2742
|
}));
|
|
2760
|
-
return (t, i) => (c(), w("div",
|
|
2743
|
+
return (t, i) => (c(), w("div", Ho, [N("div", {
|
|
2761
2744
|
style: L(r.value),
|
|
2762
2745
|
class: O(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:box-border tpl:border-y tpl:border-x-0 tpl:border-dashed": !D(n).state.previewMode }])
|
|
2763
|
-
}, [D(n).state.previewMode ? k("", !0) : (c(), w("span",
|
|
2746
|
+
}, [D(n).state.previewMode ? k("", !0) : (c(), w("span", Uo, P(e.block.height) + "px ", 1))], 6)]));
|
|
2764
2747
|
}
|
|
2765
|
-
}),
|
|
2748
|
+
}), Go = { class: "tpl:w-full" }, Ko = { key: 0 }, qo = [
|
|
2766
2749
|
"aria-label",
|
|
2767
2750
|
"contenteditable",
|
|
2768
2751
|
"data-placeholder",
|
|
2769
2752
|
"onBlur"
|
|
2770
|
-
],
|
|
2753
|
+
], Jo = [
|
|
2771
2754
|
"aria-label",
|
|
2772
2755
|
"contenteditable",
|
|
2773
2756
|
"data-placeholder",
|
|
2774
2757
|
"onBlur"
|
|
2775
|
-
],
|
|
2758
|
+
], Yo = {
|
|
2776
2759
|
key: 1,
|
|
2777
2760
|
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)]"
|
|
2778
|
-
},
|
|
2761
|
+
}, Xo = /*#__PURE__*/ Cr(/* @__PURE__ */ o({
|
|
2779
2762
|
__name: "TableBlock",
|
|
2780
2763
|
props: {
|
|
2781
2764
|
block: {},
|
|
@@ -2789,7 +2772,7 @@ var Mo = { class: "tpl:relative tpl:w-full" }, No = {
|
|
|
2789
2772
|
updated(e, t) {
|
|
2790
2773
|
t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
|
|
2791
2774
|
}
|
|
2792
|
-
}, n = e, { t: r } =
|
|
2775
|
+
}, n = e, { t: r } = Q(), i = Fe(be, "TableBlock"), a = Fe(Xe, "TableBlock"), o = g(X, null), s = I(() => n.block.rows.length > 0), l = I(() => {
|
|
2793
2776
|
let e = {
|
|
2794
2777
|
width: "100%",
|
|
2795
2778
|
borderCollapse: "collapse",
|
|
@@ -2821,11 +2804,11 @@ var Mo = { class: "tpl:relative tpl:w-full" }, No = {
|
|
|
2821
2804
|
} : n);
|
|
2822
2805
|
i.updateBlock(n.block.id, { rows: s });
|
|
2823
2806
|
}
|
|
2824
|
-
return (e, n) => (c(), w("div",
|
|
2807
|
+
return (e, n) => (c(), w("div", Go, [s.value ? (c(), w("table", {
|
|
2825
2808
|
key: 0,
|
|
2826
2809
|
style: L(l.value),
|
|
2827
2810
|
class: "tpl-table-editable"
|
|
2828
|
-
}, [m.value ? (c(), w("thead",
|
|
2811
|
+
}, [m.value ? (c(), w("thead", Ko, [N("tr", null, [(c(!0), w(U, null, p(m.value.cells, (e) => f((c(), w("th", {
|
|
2829
2812
|
key: e.id,
|
|
2830
2813
|
style: L(d.value),
|
|
2831
2814
|
"aria-label": D(r).table.cellPlaceholder,
|
|
@@ -2834,7 +2817,7 @@ var Mo = { class: "tpl:relative tpl:w-full" }, No = {
|
|
|
2834
2817
|
onBlur: (t) => v(m.value.id, e.id, t),
|
|
2835
2818
|
onKeydown: n[0] ||= E(M((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
2836
2819
|
onClick: M(_, ["stop"])
|
|
2837
|
-
}, null, 44,
|
|
2820
|
+
}, null, 44, qo)), [[t, e.content]])), 128))])])) : k("", !0), N("tbody", null, [(c(!0), w(U, null, p(h.value, (e) => (c(), w("tr", { key: e.id }, [(c(!0), w(U, null, p(e.cells, (i) => f((c(), w("td", {
|
|
2838
2821
|
key: i.id,
|
|
2839
2822
|
style: L(u.value),
|
|
2840
2823
|
"aria-label": D(r).table.cellPlaceholder,
|
|
@@ -2843,9 +2826,9 @@ var Mo = { class: "tpl:relative tpl:w-full" }, No = {
|
|
|
2843
2826
|
onBlur: (t) => v(e.id, i.id, t),
|
|
2844
2827
|
onKeydown: n[1] ||= E(M((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
2845
2828
|
onClick: M(_, ["stop"])
|
|
2846
|
-
}, null, 44,
|
|
2829
|
+
}, null, 44, Jo)), [[t, i.content]])), 128))]))), 128))])], 4)) : (c(), w("div", Yo, [W(D(hr), { size: 16 }), N("span", null, P(D(r).table.empty), 1)]))]));
|
|
2847
2830
|
}
|
|
2848
|
-
}), [["__scopeId", "data-v-73b9f5e5"]]),
|
|
2831
|
+
}), [["__scopeId", "data-v-73b9f5e5"]]), Zo = /* @__PURE__ */ o({
|
|
2849
2832
|
__name: "VideoPlayButton",
|
|
2850
2833
|
props: { hoverEffect: {
|
|
2851
2834
|
type: Boolean,
|
|
@@ -2862,7 +2845,7 @@ var Mo = { class: "tpl:relative tpl:w-full" }, No = {
|
|
|
2862
2845
|
}
|
|
2863
2846
|
});
|
|
2864
2847
|
// src/utils/videoThumbnail.ts
|
|
2865
|
-
function
|
|
2848
|
+
function Qo(e) {
|
|
2866
2849
|
if (!e) return {
|
|
2867
2850
|
platform: "unknown",
|
|
2868
2851
|
videoId: null,
|
|
@@ -2894,24 +2877,24 @@ function rs(e) {
|
|
|
2894
2877
|
thumbnailUrl: null
|
|
2895
2878
|
};
|
|
2896
2879
|
}
|
|
2897
|
-
function
|
|
2898
|
-
return t ||
|
|
2880
|
+
function $o(e, t) {
|
|
2881
|
+
return t || Qo(e).thumbnailUrl;
|
|
2899
2882
|
}
|
|
2900
2883
|
// src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
|
|
2901
|
-
var
|
|
2884
|
+
var es = ["src", "alt"], ts = {
|
|
2902
2885
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
2903
2886
|
style: { opacity: "0.7" }
|
|
2904
|
-
},
|
|
2887
|
+
}, ns = ["href"], rs = ["src", "alt"], is = ["src", "alt"], as = {
|
|
2905
2888
|
key: 3,
|
|
2906
2889
|
class: "tpl:flex tpl:box-border 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)]"
|
|
2907
|
-
},
|
|
2890
|
+
}, os = /* @__PURE__ */ o({
|
|
2908
2891
|
__name: "VideoBlock",
|
|
2909
2892
|
props: {
|
|
2910
2893
|
block: {},
|
|
2911
2894
|
viewport: {}
|
|
2912
2895
|
},
|
|
2913
2896
|
setup(e) {
|
|
2914
|
-
let t = e, { t: n } =
|
|
2897
|
+
let t = e, { t: n } = Q(), { syntax: r } = Qe(), i = I(() => Nt(t.block.url, r) || Nt(t.block.thumbnailUrl, r)), a = En(() => i.value ? void 0 : t.block.thumbnailUrl || void 0), o = En(() => i.value ? t.block.placeholderUrl : void 0), s = I(() => i.value ? null : t.block.thumbnailUrl ? a.value ?? null : $o(t.block.url)), l = I(() => ({ textAlign: t.block.align })), u = I(() => {
|
|
2915
2898
|
let e = t.block.align;
|
|
2916
2899
|
return {
|
|
2917
2900
|
maxWidth: "100%",
|
|
@@ -2921,7 +2904,7 @@ var as = ["src", "alt"], os = {
|
|
|
2921
2904
|
marginLeft: e === "center" || e === "right" ? "auto" : void 0,
|
|
2922
2905
|
marginRight: e === "center" ? "auto" : void 0
|
|
2923
2906
|
};
|
|
2924
|
-
}), d = I(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = I(() =>
|
|
2907
|
+
}), d = I(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = I(() => Nt(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
|
|
2925
2908
|
return (t, r) => (c(), w("div", {
|
|
2926
2909
|
class: "tpl:w-full",
|
|
2927
2910
|
style: L(l.value)
|
|
@@ -2934,7 +2917,7 @@ var as = ["src", "alt"], os = {
|
|
|
2934
2917
|
src: D(o),
|
|
2935
2918
|
alt: e.block.alt,
|
|
2936
2919
|
style: L(d.value)
|
|
2937
|
-
}, null, 12,
|
|
2920
|
+
}, null, 12, es), W(Zo)], 4)) : i.value ? (c(), w("div", {
|
|
2938
2921
|
key: 1,
|
|
2939
2922
|
class: "tpl:relative tpl:!flex tpl:box-border 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)]",
|
|
2940
2923
|
style: L([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
|
|
@@ -2943,7 +2926,7 @@ var as = ["src", "alt"], os = {
|
|
|
2943
2926
|
"stroke-width": 1.5,
|
|
2944
2927
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
2945
2928
|
style: { opacity: "0.5" }
|
|
2946
|
-
}), N("span",
|
|
2929
|
+
}), N("span", ts, [W(Ji, { text: f.value }, null, 8, ["text"])])], 4)) : s.value ? (c(), w(U, { key: 2 }, [e.block.url ? (c(), w("a", {
|
|
2947
2930
|
key: 0,
|
|
2948
2931
|
href: e.block.url,
|
|
2949
2932
|
target: "_blank",
|
|
@@ -2956,7 +2939,7 @@ var as = ["src", "alt"], os = {
|
|
|
2956
2939
|
src: s.value,
|
|
2957
2940
|
alt: e.block.alt,
|
|
2958
2941
|
style: L(d.value)
|
|
2959
|
-
}, null, 12,
|
|
2942
|
+
}, null, 12, rs), W(Zo, { "hover-effect": "" })], 12, ns)) : (c(), w("div", {
|
|
2960
2943
|
key: 1,
|
|
2961
2944
|
class: "tpl:relative tpl:inline-block",
|
|
2962
2945
|
style: L(u.value)
|
|
@@ -2965,29 +2948,29 @@ var as = ["src", "alt"], os = {
|
|
|
2965
2948
|
src: s.value,
|
|
2966
2949
|
alt: e.block.alt,
|
|
2967
2950
|
style: L(d.value)
|
|
2968
|
-
}, null, 12,
|
|
2951
|
+
}, null, 12, is), W(Zo)], 4))], 64)) : (c(), w("div", as, [W(D(mr), {
|
|
2969
2952
|
size: 40,
|
|
2970
2953
|
"stroke-width": 1.5,
|
|
2971
2954
|
class: "tpl:text-[var(--tpl-border-light)]"
|
|
2972
2955
|
}), N("span", null, P(D(n).video.addVideo), 1)]))], 4));
|
|
2973
2956
|
}
|
|
2974
|
-
}),
|
|
2975
|
-
section:
|
|
2976
|
-
title:
|
|
2977
|
-
paragraph:
|
|
2978
|
-
image:
|
|
2979
|
-
button:
|
|
2980
|
-
divider:
|
|
2981
|
-
video:
|
|
2982
|
-
social:
|
|
2983
|
-
menu:
|
|
2984
|
-
table:
|
|
2985
|
-
spacer:
|
|
2986
|
-
html:
|
|
2987
|
-
countdown: b(() => import("./CountdownBlock
|
|
2957
|
+
}), ss = {
|
|
2958
|
+
section: Ao,
|
|
2959
|
+
title: yo,
|
|
2960
|
+
paragraph: Fa,
|
|
2961
|
+
image: Oa,
|
|
2962
|
+
button: Xi,
|
|
2963
|
+
divider: ua,
|
|
2964
|
+
video: os,
|
|
2965
|
+
social: Vo,
|
|
2966
|
+
menu: Ma,
|
|
2967
|
+
table: Xo,
|
|
2968
|
+
spacer: Wo,
|
|
2969
|
+
html: ga,
|
|
2970
|
+
countdown: b(() => import("./CountdownBlock-5hUzymeP.js"))
|
|
2988
2971
|
};
|
|
2989
|
-
function
|
|
2990
|
-
let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: s } =
|
|
2972
|
+
function cs(t) {
|
|
2973
|
+
let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: s } = Q(i), c = I(() => Kt(Kt(Kt(ui(i), Ti(n.content.value.settings?.locale)), Gt(n.content.value.settings) === "rtl" ? {
|
|
2991
2974
|
title: { textAlign: "right" },
|
|
2992
2975
|
table: { textAlign: "right" }
|
|
2993
2976
|
} : {}), r.blockDefaults ?? {}));
|
|
@@ -2995,23 +2978,20 @@ function ps(t) {
|
|
|
2995
2978
|
let { resolvedTheme: l } = ti(I(() => n.state.uiTheme)), f = H(r.theme ?? {}), { themeStyles: p } = Pr({
|
|
2996
2979
|
themeOverrides: f,
|
|
2997
2980
|
resolvedTheme: l,
|
|
2998
|
-
extraStyles: () => ({
|
|
2999
|
-
|
|
3000
|
-
...t.themeExtraStyles?.()
|
|
3001
|
-
})
|
|
3002
|
-
}), m = t.history ?? On({
|
|
2981
|
+
extraStyles: () => ({ "--tpl-drop-text": `"${i.canvas.dropHere}"` })
|
|
2982
|
+
}), m = t.history ?? bn({
|
|
3003
2983
|
content: n.content,
|
|
3004
2984
|
setContent: (e, t) => n.setContent(e, t)
|
|
3005
2985
|
});
|
|
3006
|
-
t.history ? n.contentReplaced && u(n.contentReplaced, () => m.clear(), { flush: "sync" }) :
|
|
3007
|
-
let h =
|
|
2986
|
+
t.history ? n.contentReplaced && u(n.contentReplaced, () => m.clear(), { flush: "sync" }) : Sn(n, m);
|
|
2987
|
+
let h = zn({
|
|
3008
2988
|
addBlock: n.addBlock,
|
|
3009
2989
|
removeBlock: n.removeBlock,
|
|
3010
2990
|
updateBlock: n.updateBlock,
|
|
3011
2991
|
selectBlock: n.selectBlock,
|
|
3012
2992
|
findBlockLocation: n.findBlockLocation,
|
|
3013
2993
|
blockDefaults: () => c.value
|
|
3014
|
-
}), g =
|
|
2994
|
+
}), g = wn(n), _ = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? Tn({
|
|
3015
2995
|
content: n.content,
|
|
3016
2996
|
isDirty: () => n.state.isDirty,
|
|
3017
2997
|
...t.autoSaveOptions
|
|
@@ -3022,7 +3002,7 @@ function ps(t) {
|
|
|
3022
3002
|
let b = ei(n, {
|
|
3023
3003
|
t: o,
|
|
3024
3004
|
format: s
|
|
3025
|
-
}, r.customBlocks ?? []), x =
|
|
3005
|
+
}, r.customBlocks ?? []), x = Hn(r.colors);
|
|
3026
3006
|
if (x.allowCustomIgnored && $.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), x.invalidPresets.length > 0 && $.warn(`config.colors.presets skipped invalid entries: ${x.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), x.allowCustom === !1) {
|
|
3027
3007
|
let e = li(x.presets, r.blockDefaults, r.templateDefaults);
|
|
3028
3008
|
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.`);
|
|
@@ -3030,12 +3010,12 @@ function ps(t) {
|
|
|
3030
3010
|
let S = Jn(r.templateSettings);
|
|
3031
3011
|
for (let e of S.unknown) $.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${Yn.join(", ")}) — skipping it.`);
|
|
3032
3012
|
let w = Or();
|
|
3033
|
-
oi(w,
|
|
3013
|
+
oi(w, ss);
|
|
3034
3014
|
let T = /* @__PURE__ */ new Set();
|
|
3035
3015
|
function E(e) {
|
|
3036
3016
|
for (let t of e) {
|
|
3037
|
-
w.registerCustom(t,
|
|
3038
|
-
for (let e of
|
|
3017
|
+
w.registerCustom(t, ca);
|
|
3018
|
+
for (let e of Ei(t, x)) T.has(e.id) || (T.add(e.id), $.warn(e.message));
|
|
3039
3019
|
}
|
|
3040
3020
|
}
|
|
3041
3021
|
r.customBlocks?.length && E(r.customBlocks);
|
|
@@ -3052,7 +3032,7 @@ function ps(t) {
|
|
|
3052
3032
|
e ? e.save() : _?.flush();
|
|
3053
3033
|
}
|
|
3054
3034
|
function ee(e) {
|
|
3055
|
-
D.isActive() &&
|
|
3035
|
+
D.isActive() && Oi(e, {
|
|
3056
3036
|
history: m,
|
|
3057
3037
|
selectBlock: (e) => n.selectBlock(e),
|
|
3058
3038
|
getSelectedBlockId: () => n.state.selectedBlockId,
|
|
@@ -3065,41 +3045,41 @@ function ps(t) {
|
|
|
3065
3045
|
}
|
|
3066
3046
|
e(document, "keydown", ee);
|
|
3067
3047
|
let k = H(null), A = t.editorRoot ?? document;
|
|
3068
|
-
d(
|
|
3069
|
-
let j =
|
|
3048
|
+
d(qe, A), d(Z, k), d(re, /* @__PURE__ */ new Map()), d(je, i), d(be, n), d(Ce, m), d(Ue, h), d(Be, g), d(Xe, a), d(He, p), d(We, l), d(we, c), d(ze, r.locale), d(Pe, w), d(Ie, r.customBlocks ?? []), d(ae, r.paletteBlocks), d(Ye, si(r.htmlBlockPreview)), d(Je, r.layout), d(fe, r.sectionWrapper), d(De, x), d(Le, S.fields), d(ke, ni(n.content, w));
|
|
3049
|
+
let j = dn(r.mergeTags?.syntax);
|
|
3070
3050
|
for (let e of ["opener", "closer"]) {
|
|
3071
3051
|
let t = j[e];
|
|
3072
3052
|
typeof t == "string" && t.trim() === "" && $.warn(`config.mergeTags.syntax.${e} is blank — ignoring it.`);
|
|
3073
3053
|
}
|
|
3074
|
-
typeof j.opener != "string" && typeof j.closer == "string" && j.closer.trim() !== "" &&
|
|
3054
|
+
typeof j.opener != "string" && typeof j.closer == "string" && j.closer.trim() !== "" && Ft(j) === null && $.warn("config.mergeTags.syntax.closer has no effect without an opener — set opener to turn on autocomplete for this syntax.");
|
|
3075
3055
|
let M = R(r.mergeTags?.tags ?? []);
|
|
3076
3056
|
function N(e) {
|
|
3077
3057
|
Array.isArray(e) ? M.value = e : $.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
|
|
3078
3058
|
}
|
|
3079
|
-
d(
|
|
3080
|
-
let P = H(
|
|
3081
|
-
d(
|
|
3059
|
+
d(le, M), d(Ze, j), d(_e, r.mergeTags?.onRequest ?? null), d(de, r.mergeTags?.autocomplete !== !1), d(pe, r.mergeTags?.showRawValue !== !1);
|
|
3060
|
+
let P = H(Pt(r.mergeTags?.tags ?? []));
|
|
3061
|
+
d(se, P);
|
|
3082
3062
|
let F = Jr({
|
|
3083
3063
|
resolvePreview: r.resolvePreview,
|
|
3084
3064
|
surface: "preview",
|
|
3085
3065
|
getContent: () => {
|
|
3086
3066
|
let e = n.content.value;
|
|
3087
3067
|
if (!n.state.previewMode) return e;
|
|
3088
|
-
let t = n.activeLocale?.value ?? e.settings.locale ?? "en", i =
|
|
3089
|
-
return r.layout ?
|
|
3068
|
+
let t = n.activeLocale?.value ?? e.settings.locale ?? "en", i = qt(e, t);
|
|
3069
|
+
return r.layout ? sn(qt(r.layout, t, { missing: "default" }), i) : i;
|
|
3090
3070
|
},
|
|
3091
3071
|
isActive: () => n.state.previewMode,
|
|
3092
3072
|
getLocale: () => n.activeLocale?.value ?? n.content.value.settings.locale
|
|
3093
3073
|
});
|
|
3094
|
-
d(
|
|
3074
|
+
d(Ve, F), d(ve, r.resolvePreview);
|
|
3095
3075
|
let L = null;
|
|
3096
|
-
d(
|
|
3076
|
+
d(ye, (e) => (L = e, () => {
|
|
3097
3077
|
L === e && (L = null);
|
|
3098
3078
|
}));
|
|
3099
3079
|
let z = () => (L ?? F.refresh)(), B = I(() => !(n.state.previewMode && F.isConfigured));
|
|
3100
|
-
d(
|
|
3080
|
+
d(Re, B);
|
|
3101
3081
|
let V = Yr();
|
|
3102
|
-
d(
|
|
3082
|
+
d(ie, V), d(Y, H(!1)), d(ce, H(!1)), d(K, r.logicTags?.tags ?? []), d(Ne, r.logicTags?.pairs ?? []), d(oe, r.logicTags?.onRequest ?? null), d(Me, Xr()), d(he, r.onRequestMedia ?? null), d(Ke, r.canDropMedia ?? null), d(me, r.resolveImageUrl ? Ln(r.resolveImageUrl) : null), r.displayConditions?.onRequest && (r.displayConditions.conditions !== void 0 || r.displayConditions.allowCustom !== void 0) && $.warn("config.displayConditions.onRequest replaces the built-in condition list — conditions and allowCustom are ignored."), d(Oe, r.displayConditions?.conditions ?? []), d(Ae, r.displayConditions?.allowCustom ?? !1), d(ge, r.displayConditions?.onRequest ?? null), d(Ee, t.capabilities ?? {}), d(J, b);
|
|
3103
3083
|
let U = Zr(r.lint) ? null : $r({
|
|
3104
3084
|
content: n.content,
|
|
3105
3085
|
get options() {
|
|
@@ -3115,7 +3095,7 @@ function ps(t) {
|
|
|
3115
3095
|
updateSettings: n.updateSettings,
|
|
3116
3096
|
removeBlock: n.removeBlock
|
|
3117
3097
|
});
|
|
3118
|
-
d(
|
|
3098
|
+
d(Ge, U);
|
|
3119
3099
|
function W() {
|
|
3120
3100
|
y?.(), U?.destroy(), _?.destroy(), m.destroy();
|
|
3121
3101
|
}
|
|
@@ -3146,14 +3126,14 @@ function ps(t) {
|
|
|
3146
3126
|
};
|
|
3147
3127
|
}
|
|
3148
3128
|
// src/composables/useSmallScreenNotice.ts
|
|
3149
|
-
var
|
|
3150
|
-
function
|
|
3151
|
-
let n = t(
|
|
3129
|
+
var ls = "(max-width: 767px)";
|
|
3130
|
+
function us(e) {
|
|
3131
|
+
let n = t(ls);
|
|
3152
3132
|
return {
|
|
3153
3133
|
isSmallScreen: n,
|
|
3154
3134
|
showNotice: I(() => (F(e) ?? !0) && n.value)
|
|
3155
3135
|
};
|
|
3156
3136
|
}
|
|
3157
|
-
export {
|
|
3137
|
+
export { xi as A, Wi as C, Ki as D, ki as E, Vr as F, zr as I, Mr as L, yi as M, Jr as N, Ai as O, Kr as P, Dr as R, Fi as S, Bi as T, ua as _, Wo as a, Xi as b, bo as c, _o as d, Ia as f, ga as g, Oa as h, Xo as i, bi as j, gi as k, Co as l, Ma as m, cs as n, Vo as o, Fa as p, os as r, Ao as s, us as t, yo as u, ca as v, zi as w, Mi as x, $i as y, Er as z };
|
|
3158
3138
|
|
|
3159
|
-
//# sourceMappingURL=composables-
|
|
3139
|
+
//# sourceMappingURL=composables-Nir0umYc.js.map
|