@templatical/editor 0.60.4 → 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-CjUnhJGB.js → AiChatPanel-C82fJozf.js} +165 -166
- package/dist/{AiPanels-DwI9KjjI.js → AiPanels-sam_GMNs.js} +1 -1
- package/dist/{AiRewriteMenu-Bh1cIX8F.js → AiRewriteMenu-CpBcT6QL.js} +3 -4
- package/dist/{BlockIssueBadge-Bug5iqcK.js → BlockIssueBadge-D3OmWkCh.js} +2 -3
- package/dist/{BlockPreviewCanvas-C_N6f_FS.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-BSLk23YP.js → CommentsPanel-BSt22Zw9.js} +1 -1
- package/dist/{CommentsSidebar-L-DgP_kM.js → CommentsSidebar-C8qbxjyN.js} +177 -184
- package/dist/{CountdownBlock-AYPypmcX.js → CountdownBlock-bFAELCB6.js} +3 -4
- package/dist/{CountdownToolbar-B6erqTbz.js → CountdownToolbar-CJbPEVV5.js} +4 -4
- package/dist/{IssuesPanel-CeCvUfa7.js → IssuesPanel-CKYf6K84.js} +4 -5
- package/dist/{LanguageMenu-DsfCHdVi.js → LanguageMenu-BFOEQEPy.js} +124 -125
- package/dist/{LocaleNotices-BxR3xcLl.js → LocaleNotices-24UYFxo2.js} +12 -13
- 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-q6eeDD2l.js → MergeTagTextarea-B86MPY89.js} +14 -15
- package/dist/{ParagraphEditor-25SNi_8O.js → ParagraphEditor-C15Glzy_.js} +78 -79
- package/dist/{RestoreVersionDialog-BXtCxJF1.js → RestoreVersionDialog-C13Bo4b0.js} +2 -2
- package/dist/{RichTextEditorContent-B1p7Ykq8.js → RichTextEditorContent-BNMBOkdy.js} +5 -6
- package/dist/{SaveBlockDialog-k1lxEBVW.js → SaveBlockDialog-lm_1-2w2.js} +23 -24
- package/dist/{SavedBlocksBrowserModal-CV-8mDPj.js → SavedBlocksBrowserModal-BjUZG5_S.js} +8 -9
- package/dist/{SavedBlocksPanels-9nZj1jG_.js → SavedBlocksPanels-Bj3LAXcL.js} +1 -1
- package/dist/{SavedBlocksPickBar-Dy6NN9tm.js → SavedBlocksPickBar-DOTr0Imx.js} +2 -2
- package/dist/{TemplateSettings-DWxdUdM5.js → TemplateSettings-Z-i-_xF5.js} +19 -20
- package/dist/{TestEmailModal-BAkkZTaZ.js → TestEmailModal-ClEnoNEB.js} +17 -18
- package/dist/{TestEmailPanel-ccT2E3em.js → TestEmailPanel-CVmrt-d9.js} +1 -1
- package/dist/{TitleEditor-B19dYnER.js → TitleEditor-BHZF5C6q.js} +8 -9
- package/dist/{Toolbar-DxlZq_36.js → Toolbar-bwAdFK4A.js} +217 -219
- package/dist/{TplModal-Bp2qPmQw.js → TplModal-QWmSO1nR.js} +4 -4
- package/dist/{VersionHistoryMenu-B3-xJ7GO.js → VersionHistoryMenu-qoOkZKal.js} +6 -7
- package/dist/{VersionHistoryPanels-wAVDmhnP.js → VersionHistoryPanels-D82hgc2v.js} +1 -1
- package/dist/{VersionPreviewBanner-DLAB4ZbS.js → VersionPreviewBanner-DEN9rl6y.js} +1 -1
- package/dist/{WrapperBlock-DHnD6Exl.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-DTYmFRwb.js → AiChatPanel-CEDr_x8G.js} +147 -148
- package/dist/cdn/chunks/AiChatPanel-CEDr_x8G.js.map +1 -0
- package/dist/cdn/chunks/{AiPanels-BW9ze-6O.js → AiPanels-qJgLTYPs.js} +2 -2
- package/dist/cdn/chunks/{AiPanels-BW9ze-6O.js.map → AiPanels-qJgLTYPs.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-B9b92d0R.js → AiRewriteMenu-2a9WjizC.js} +4 -5
- package/dist/cdn/chunks/{AiRewriteMenu-B9b92d0R.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-CLid1x0c.js → BlockPreviewCanvas-DDDKuWJz.js} +8 -8
- package/dist/cdn/chunks/{BlockPreviewCanvas-CLid1x0c.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-BynxXJ-F.js → CommentsPanel-D-D2qsS6.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-BynxXJ-F.js.map → CommentsPanel-D-D2qsS6.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-C81N5Hwr.js → CommentsSidebar-CCVp8M2T.js} +163 -170
- 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-f1aqEba0.js → CountdownToolbar-DaGxwKfG.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-f1aqEba0.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-CJp7XdfG.js → LanguageMenu-2Er64H2b.js} +106 -107
- package/dist/cdn/chunks/LanguageMenu-2Er64H2b.js.map +1 -0
- package/dist/cdn/chunks/{LocaleNotices-D5vZzcUj.js → LocaleNotices-DSfOyyyf.js} +13 -14
- package/dist/cdn/chunks/LocaleNotices-DSfOyyyf.js.map +1 -0
- 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-DMXZgGUF.js → MergeTagTextarea-B_IFeWfZ.js} +15 -16
- package/dist/cdn/chunks/MergeTagTextarea-B_IFeWfZ.js.map +1 -0
- package/dist/cdn/chunks/{ParagraphEditor-Ce7_Ix0K.js → ParagraphEditor-CWjMxuy0.js} +135 -136
- package/dist/cdn/chunks/{ParagraphEditor-Ce7_Ix0K.js.map → ParagraphEditor-CWjMxuy0.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-JmMLhN6G.js → RestoreVersionDialog-BsfulSK7.js} +3 -3
- package/dist/cdn/chunks/{RestoreVersionDialog-JmMLhN6G.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-B-2amBN5.js → SaveBlockDialog-8zxJlHw2.js} +25 -26
- package/dist/cdn/chunks/{SaveBlockDialog-B-2amBN5.js.map → SaveBlockDialog-8zxJlHw2.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BR6fQ222.js → SavedBlocksBrowserModal-DtaGW2H4.js} +9 -10
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BR6fQ222.js.map → SavedBlocksBrowserModal-DtaGW2H4.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-DVNNshfr.js → SavedBlocksPanels-CtDhdbiD.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-DVNNshfr.js.map → SavedBlocksPanels-CtDhdbiD.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-BfxLHLQV.js → SavedBlocksPickBar-DovcCaoW.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPickBar-BfxLHLQV.js.map → SavedBlocksPickBar-DovcCaoW.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-TMFrRV2c.js → TemplateSettings-B8Ch5ps8.js} +20 -21
- package/dist/cdn/chunks/{TemplateSettings-TMFrRV2c.js.map → TemplateSettings-B8Ch5ps8.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-tTU35BKZ.js → TestEmailModal-D1EuQSgA.js} +16 -17
- package/dist/cdn/chunks/{TestEmailModal-tTU35BKZ.js.map → TestEmailModal-D1EuQSgA.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BNJBVwx0.js → TestEmailPanel-0iG-utN7.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-BNJBVwx0.js.map → TestEmailPanel-0iG-utN7.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-BbscL_C1.js → TitleEditor-k2vSwKxN.js} +17 -18
- package/dist/cdn/chunks/{TitleEditor-BbscL_C1.js.map → TitleEditor-k2vSwKxN.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-BxzyS69X.js → Toolbar-BnTSuZQb.js} +307 -309
- package/dist/cdn/chunks/Toolbar-BnTSuZQb.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-Bzhc_l8y.js → TplModal-iRdN04Sa.js} +5 -5
- package/dist/cdn/chunks/{TplModal-Bzhc_l8y.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-Bbb1xUJs.js → VersionHistoryPanels-Bw5UHEvo.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-Bbb1xUJs.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-BboijK5T.js → WrapperBlock-CFjCtyvx.js} +5 -5
- package/dist/cdn/chunks/{WrapperBlock-BboijK5T.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-C77dGo-I.js → composables-Nir0umYc.js} +551 -571
- 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-1MSPRtI8.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/useI18n-DwP1ksBW.js.map +1 -0
- package/dist/cdn/chunks/useLanguageName-CeuoO9WZ.js +41 -0
- package/dist/cdn/chunks/useLanguageName-CeuoO9WZ.js.map +1 -0
- 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 +910 -1006
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{composables-Bu_OmyjT.js → composables-6SKZrQs-.js} +1335 -1355
- 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 +38 -406
- 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 +1087 -1183
- package/dist/{useEditorRoot-DWfC2CVC.js → useEditorRoot-CQeutW_s.js} +1 -1
- package/dist/useI18n-B05qsAsl.js +22 -0
- package/dist/useLanguageName-CnpG7FD5.js +39 -0
- 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 +12 -14
- package/dist/CloudHeaderExtras-DC_oNrxz.js +0 -22
- package/dist/CloudPanels-BS49EsuN.js +0 -167
- package/dist/cdn/chunks/AiChatPanel-DTYmFRwb.js.map +0 -1
- 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-D4dslsyk.js +0 -167
- package/dist/cdn/chunks/CloudPanels-D4dslsyk.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-C81N5Hwr.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-DgxiS3hF.js.map +0 -1
- package/dist/cdn/chunks/LanguageMenu-CJp7XdfG.js.map +0 -1
- package/dist/cdn/chunks/LocaleNotices-D5vZzcUj.js.map +0 -1
- package/dist/cdn/chunks/MergeTagTextarea-DMXZgGUF.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-BxzyS69X.js.map +0 -1
- package/dist/cdn/chunks/VersionPreviewBanner-C1H_fYAr.js.map +0 -1
- package/dist/cdn/chunks/composables-C77dGo-I.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/keys-ywH4jHJ2.js.map +0 -1
- package/dist/cdn/chunks/languageName-DEEOhDWI.js +0 -12
- package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +0 -1
- 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-1MSPRtI8.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/languageName-DEEOhDWI.js +0 -10
- 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,38 +1,36 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
2
2
|
import { B as t, F as n, Ft as r, L as i, M as a, Mt as o, P as s, Pt as c, Q as l, U as u, W as d, Z as f, _ as p, c as m, ct as h, d as g, et as _, f as v, g as y, l as b, m as x, r as S, rt as C, u as w, v as T, w as E, y as D } from "./vue.runtime.esm-bundler-BE5V8ADU.js";
|
|
3
3
|
import { a as O, o as k } from "./runtime-dom.esm-bundler-nN-jsqr1.js";
|
|
4
|
-
import { n as A, t as j } from "./MergeTagTextarea-
|
|
5
|
-
import { c as M } from "./LogicTagInsertButton-
|
|
6
|
-
import { t as N } from "./MergeTagInput-
|
|
4
|
+
import { n as A, t as j } from "./MergeTagTextarea-B86MPY89.js";
|
|
5
|
+
import { c as M } from "./LogicTagInsertButton-DdaafrjI.js";
|
|
6
|
+
import { t as N } from "./MergeTagInput-BXM6-eF-.js";
|
|
7
7
|
import { t as P } from "./ToggleSwitch-BIPdFWUr.js";
|
|
8
8
|
import { C as F, S as I, _ as L, b as ee, c as R, g as z, h as B, r as te, s as ne, v as V, y as H } from "./styleConstants-Br6CIRoS.js";
|
|
9
9
|
import { t as re } from "./link-BFJF0mWz.js";
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as W } from "./useI18n-
|
|
12
|
-
import { $t as
|
|
13
|
-
import { n as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { t as
|
|
18
|
-
import { n as tt, t as nt } from "./blockTypeIcons-C691ZY1l.js";
|
|
10
|
+
import { t as ie } from "./createLucideIcon-BKeRiObH.js";
|
|
11
|
+
import { D as ae, Q as oe, S as se, U as ce, V as le, _ as ue, f as de, g as fe, i as pe, lt as me, m as U, t as W, w as he, y as ge, z as _e } from "./useI18n-B05qsAsl.js";
|
|
12
|
+
import { $t as G, Bt as ve, F as ye, Jt as be, N as K, P as q, Pt as J, St as Y, bt as X, en as xe, fn as Se, ft as Z, i as Ce, j as we, m as Te, mn as Ee, n as De, o as Oe, pt as ke, r as Ae, rn as je, t as Me, v as Ne } from "./dist-DX_IQgcU.js";
|
|
13
|
+
import { n as Pe } from "./useLocalizedDisplay-DfiE-KjV.js";
|
|
14
|
+
import { A as Fe, B as Ie, E as Le, T as Re, _ as ze, b as Be, d as Ve, f as He, g as Ue, h as We, i as Ge, l as Ke, m as qe, p as Je, r as Ye, s as Xe, u as Ze, v as Qe } from "./socialIcons-K89pe-h2.js";
|
|
15
|
+
import { n as $e, t as et } from "./withCurrentFont-C-_IYTqP.js";
|
|
16
|
+
import { t as tt } from "./useLanguageName-CnpG7FD5.js";
|
|
17
|
+
import { n as nt, t as rt } from "./blockTypeIcons-C1S2wVx8.js";
|
|
19
18
|
import { t as Q } from "./plus-PzFvtj-Z.js";
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import { n as
|
|
24
|
-
import { t as ct } from "./logger-BOu7oEtk.js";
|
|
19
|
+
import { t as it } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
20
|
+
import { t as at } from "./image-g47lDP0J.js";
|
|
21
|
+
import { t as ot } from "./chevron-down-D_CUJHwi.js";
|
|
22
|
+
import { n as st, t as ct } from "./smartphone-DZ5xyNU4.js";
|
|
25
23
|
import { t as lt } from "./circle-exclamation-point-BCx1tR91.js";
|
|
26
24
|
import { t as ut } from "./refresh-cw-BPDv-S-4.js";
|
|
27
|
-
import { c as dt, r as ft } from "./usePopoverPosition-
|
|
25
|
+
import { c as dt, r as ft } from "./usePopoverPosition-B8CXTr8v.js";
|
|
28
26
|
import { t as pt } from "./trash-CJsobpw0.js";
|
|
29
27
|
import { t as mt } from "./info-DXij4QjB.js";
|
|
30
28
|
import { _ as ht } from "./dist-A328tG0Z.js";
|
|
31
29
|
import { n as gt, r as _t, t as vt } from "./text-align-start-B5Dx2Ylg.js";
|
|
32
30
|
import { t as yt } from "./x-CuyPLm0U.js";
|
|
33
|
-
import { t as bt } from "./useMergeTag-
|
|
31
|
+
import { t as bt } from "./useMergeTag-DwxbvRZI.js";
|
|
34
32
|
import { n as xt } from "./upload-DZ_-FNJ4.js";
|
|
35
|
-
var St =
|
|
33
|
+
var St = ie({
|
|
36
34
|
name: "lock-open",
|
|
37
35
|
size: 24,
|
|
38
36
|
node: [["rect", {
|
|
@@ -48,7 +46,7 @@ var St = U({
|
|
|
48
46
|
key: "1mm8w8"
|
|
49
47
|
}]],
|
|
50
48
|
aliases: ["unlock"]
|
|
51
|
-
}), Ct =
|
|
49
|
+
}), Ct = ie({
|
|
52
50
|
name: "lock",
|
|
53
51
|
size: 24,
|
|
54
52
|
node: [["rect", {
|
|
@@ -63,7 +61,7 @@ var St = U({
|
|
|
63
61
|
d: "M7 11V7a5 5 0 0 1 10 0v4",
|
|
64
62
|
key: "fwvmzm"
|
|
65
63
|
}]]
|
|
66
|
-
}), wt =
|
|
64
|
+
}), wt = ie({
|
|
67
65
|
name: "unlink",
|
|
68
66
|
size: 24,
|
|
69
67
|
node: [
|
|
@@ -245,7 +243,7 @@ var St = U({
|
|
|
245
243
|
}
|
|
246
244
|
let f = m(() => {
|
|
247
245
|
let e = i.modelValue;
|
|
248
|
-
return !e ||
|
|
246
|
+
return !e || Ce.every((t) => d(e[t], e.top));
|
|
249
247
|
}), y = _(f.value);
|
|
250
248
|
t(f, (e) => {
|
|
251
249
|
!e && y.value && (y.value = !1);
|
|
@@ -256,13 +254,13 @@ var St = U({
|
|
|
256
254
|
}), T = (e) => !!e && e.width > 0;
|
|
257
255
|
function E(e) {
|
|
258
256
|
if (y.value) {
|
|
259
|
-
s("update:modelValue", T(e) ?
|
|
257
|
+
s("update:modelValue", T(e) ? Ee(e) : void 0);
|
|
260
258
|
return;
|
|
261
259
|
}
|
|
262
260
|
let t = {
|
|
263
|
-
...i.modelValue ??
|
|
261
|
+
...i.modelValue ?? Ee(l),
|
|
264
262
|
[x.value]: e
|
|
265
|
-
}, n =
|
|
263
|
+
}, n = Ce.some((e) => T(t[e]));
|
|
266
264
|
s("update:modelValue", n ? t : void 0);
|
|
267
265
|
}
|
|
268
266
|
function D(e) {
|
|
@@ -285,10 +283,10 @@ var St = U({
|
|
|
285
283
|
y.value = !0;
|
|
286
284
|
let e = i.modelValue;
|
|
287
285
|
if (!e) return;
|
|
288
|
-
let t = T(e[x.value]) ? e[x.value] :
|
|
289
|
-
s("update:modelValue", t ?
|
|
286
|
+
let t = T(e[x.value]) ? e[x.value] : Ce.map((t) => e[t]).find(T);
|
|
287
|
+
s("update:modelValue", t ? Ee(t) : void 0);
|
|
290
288
|
}
|
|
291
|
-
let j = m(() =>
|
|
289
|
+
let j = m(() => Ce.map((e) => ({
|
|
292
290
|
value: e,
|
|
293
291
|
label: c.spacingControl[e]
|
|
294
292
|
})));
|
|
@@ -378,7 +376,7 @@ var St = U({
|
|
|
378
376
|
bottomRight: e,
|
|
379
377
|
bottomLeft: e
|
|
380
378
|
} : e;
|
|
381
|
-
}), g = m(() =>
|
|
379
|
+
}), g = m(() => Ae.every((e) => f.value[e] === f.value.topLeft)), y = _(g.value);
|
|
382
380
|
t(g, (e) => {
|
|
383
381
|
!e && y.value && (y.value = !1);
|
|
384
382
|
});
|
|
@@ -456,14 +454,14 @@ var St = U({
|
|
|
456
454
|
},
|
|
457
455
|
emits: ["update"],
|
|
458
456
|
setup(e, { emit: t }) {
|
|
459
|
-
let n = e, i = t, { t: c } = W(), l = E(
|
|
457
|
+
let n = e, i = t, { t: c } = W(), l = E(ue, null), d = l ? Pe(l) : null, f = E(he, null), _ = m(() => n.block.width === "full" ? "full" : typeof n.block.width == "number" || ve(n.block.width) !== null ? "custom" : "auto"), y = m(() => ve(n.block.width) === null ? "px" : "%"), x = m(() => typeof n.block.width == "number" ? n.block.width : String(n.block.width).slice(0, -1)), C = m(() => d ? Ge(d.content.value, n.block.id, f ?? void 0) : null);
|
|
460
458
|
function T(e, t) {
|
|
461
459
|
i("update", { [e]: t });
|
|
462
460
|
}
|
|
463
461
|
function D(e) {
|
|
464
462
|
e === "full" ? T("width", "full") : e === "custom" ? T("width", typeof n.block.width == "number" ? n.block.width : Qt) : T("width", void 0);
|
|
465
463
|
}
|
|
466
|
-
let O = m(() => String(
|
|
464
|
+
let O = m(() => String(we(n.block))), k = m(() => {
|
|
467
465
|
let e = O.value;
|
|
468
466
|
return ne.includes(e) ? ne : [...ne, e];
|
|
469
467
|
});
|
|
@@ -493,7 +491,7 @@ var St = U({
|
|
|
493
491
|
T("width", `${Math.min(100, Math.max(1, Math.round(e / r * 100)))}%`);
|
|
494
492
|
return;
|
|
495
493
|
}
|
|
496
|
-
let i =
|
|
494
|
+
let i = ve(t);
|
|
497
495
|
r === null ? T("width", Qt) : T("width", Math.max(1, Math.round(r * i / 100)));
|
|
498
496
|
}
|
|
499
497
|
return (t, n) => (a(), v(S, null, [
|
|
@@ -504,7 +502,7 @@ var St = U({
|
|
|
504
502
|
}, {
|
|
505
503
|
default: u(() => [b("select", {
|
|
506
504
|
class: o(h(B)),
|
|
507
|
-
value: h(
|
|
505
|
+
value: h(et)(e.block.fontFamily),
|
|
508
506
|
onChange: n[0] ||= (e) => T("fontFamily", e.target.value || void 0)
|
|
509
507
|
}, [b("option", Bt, r(h(c).button.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
|
|
510
508
|
key: e.value,
|
|
@@ -709,7 +707,7 @@ var St = U({
|
|
|
709
707
|
}, 8, ["label"])
|
|
710
708
|
], 64));
|
|
711
709
|
}
|
|
712
|
-
}), en = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, tn = { class: "tpl:flex tpl:items-center" }, nn = ["aria-label"], rn = ["value", "aria-label"], an = ["aria-label"], on = { class: "tpl:flex tpl:items-center tpl:gap-2" }, sn = { class: "tpl:flex tpl:items-center" }, cn = ["aria-label"], ln = ["value", "aria-label"], un = ["aria-label"], dn = ["aria-label", "title"], fn = { class: "tpl:flex tpl:items-center" }, pn = ["aria-label"], mn = ["value", "aria-label"], hn = ["aria-label"], gn = { class: "tpl:flex tpl:items-center" }, _n = ["aria-label"], vn = ["value", "aria-label"], yn = ["aria-label"], bn = "tpl:flex tpl:items-center tpl:justify-center tpl:w-8 tpl:h-8 tpl:text-[var(--tpl-text-muted)] tpl:bg-[var(--tpl-bg)] tpl:border tpl:border-[var(--tpl-border)] tpl:cursor-pointer tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)] tpl:active:bg-[var(--tpl-bg-active)]", xn = "tpl:w-10 tpl:h-8 tpl:text-center tpl:text-xs tpl:font-medium tpl:border-y tpl:border-x-0 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", Sn = /*#__PURE__*/
|
|
710
|
+
}), en = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, tn = { class: "tpl:flex tpl:items-center" }, nn = ["aria-label"], rn = ["value", "aria-label"], an = ["aria-label"], on = { class: "tpl:flex tpl:items-center tpl:gap-2" }, sn = { class: "tpl:flex tpl:items-center" }, cn = ["aria-label"], ln = ["value", "aria-label"], un = ["aria-label"], dn = ["aria-label", "title"], fn = { class: "tpl:flex tpl:items-center" }, pn = ["aria-label"], mn = ["value", "aria-label"], hn = ["aria-label"], gn = { class: "tpl:flex tpl:items-center" }, _n = ["aria-label"], vn = ["value", "aria-label"], yn = ["aria-label"], bn = "tpl:flex tpl:items-center tpl:justify-center tpl:w-8 tpl:h-8 tpl:text-[var(--tpl-text-muted)] tpl:bg-[var(--tpl-bg)] tpl:border tpl:border-[var(--tpl-border)] tpl:cursor-pointer tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)] tpl:active:bg-[var(--tpl-bg-active)]", xn = "tpl:w-10 tpl:h-8 tpl:text-center tpl:text-xs tpl:font-medium tpl:border-y tpl:border-x-0 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", Sn = /*#__PURE__*/ it(/* @__PURE__ */ D({
|
|
713
711
|
__name: "SpacingControl",
|
|
714
712
|
props: {
|
|
715
713
|
path: {},
|
|
@@ -768,7 +766,7 @@ var St = U({
|
|
|
768
766
|
"aria-label": h(s).spacingControl.decreaseTop,
|
|
769
767
|
class: o([bn, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
770
768
|
onClick: n[0] ||= (e) => d("top", -1)
|
|
771
|
-
}, [p(h(
|
|
769
|
+
}, [p(h(nt), {
|
|
772
770
|
size: 12,
|
|
773
771
|
"stroke-width": 2
|
|
774
772
|
})], 10, nn),
|
|
@@ -795,7 +793,7 @@ var St = U({
|
|
|
795
793
|
"aria-label": h(s).spacingControl.decreaseLeft,
|
|
796
794
|
class: o([bn, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
797
795
|
onClick: n[3] ||= (e) => d("left", -1)
|
|
798
|
-
}, [p(h(
|
|
796
|
+
}, [p(h(nt), {
|
|
799
797
|
size: 12,
|
|
800
798
|
"stroke-width": 2
|
|
801
799
|
})], 10, cn),
|
|
@@ -835,7 +833,7 @@ var St = U({
|
|
|
835
833
|
"aria-label": h(s).spacingControl.decreaseRight,
|
|
836
834
|
class: o([bn, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
837
835
|
onClick: n[6] ||= (e) => d("right", -1)
|
|
838
|
-
}, [p(h(
|
|
836
|
+
}, [p(h(nt), {
|
|
839
837
|
size: 12,
|
|
840
838
|
"stroke-width": 2
|
|
841
839
|
})], 10, pn),
|
|
@@ -862,7 +860,7 @@ var St = U({
|
|
|
862
860
|
"aria-label": h(s).spacingControl.decreaseBottom,
|
|
863
861
|
class: o([bn, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
864
862
|
onClick: n[9] ||= (e) => d("bottom", -1)
|
|
865
|
-
}, [p(h(
|
|
863
|
+
}, [p(h(nt), {
|
|
866
864
|
size: 12,
|
|
867
865
|
"stroke-width": 2
|
|
868
866
|
})], 10, _n),
|
|
@@ -892,14 +890,14 @@ var St = U({
|
|
|
892
890
|
function Cn(e) {
|
|
893
891
|
let n = _(null), r = () => {};
|
|
894
892
|
return t(e, (e) => {
|
|
895
|
-
r(), n.value = null, e && (r =
|
|
893
|
+
r(), n.value = null, e && (r = Je(e, (e) => {
|
|
896
894
|
n.value = e;
|
|
897
895
|
}));
|
|
898
896
|
}, { immediate: !0 }), n;
|
|
899
897
|
}
|
|
900
898
|
function wn() {
|
|
901
|
-
let e = E(
|
|
902
|
-
return async (t) =>
|
|
899
|
+
let e = E(se, null);
|
|
900
|
+
return async (t) => qe(e ? await Tn(e, t) : t);
|
|
903
901
|
}
|
|
904
902
|
function Tn(e, n) {
|
|
905
903
|
let r = (e) => typeof e == "string" && e.length > 0 ? e : n;
|
|
@@ -929,14 +927,14 @@ var En = { class: "tpl:space-y-3.5" }, Dn = ["data-testid"], On = ["data-testid"
|
|
|
929
927
|
},
|
|
930
928
|
emits: ["update:modelValue"],
|
|
931
929
|
setup(e, { emit: t }) {
|
|
932
|
-
let n = e, i = t, { t: c } = W(), l = E(
|
|
930
|
+
let n = e, i = t, { t: c } = W(), l = E(_e, Ne.liquid), u = m(() => typeof n.modelValue?.url == "string" ? n.modelValue.url : ""), d = m(() => u.value.trim() !== ""), x = wn(), C;
|
|
933
931
|
f(() => clearTimeout(C));
|
|
934
932
|
function T(e) {
|
|
935
|
-
n.measure && !
|
|
933
|
+
n.measure && !q(e, l) && (C = setTimeout(async () => {
|
|
936
934
|
let t = await x(e), r = n.modelValue;
|
|
937
935
|
t && r?.url === e && i("update:modelValue", {
|
|
938
936
|
...r,
|
|
939
|
-
...
|
|
937
|
+
...We(t)
|
|
940
938
|
});
|
|
941
939
|
}, 300));
|
|
942
940
|
}
|
|
@@ -945,11 +943,11 @@ var En = { class: "tpl:space-y-3.5" }, Dn = ["data-testid"], On = ["data-testid"
|
|
|
945
943
|
i("update:modelValue", void 0);
|
|
946
944
|
return;
|
|
947
945
|
}
|
|
948
|
-
let { naturalWidth: r, naturalHeight: a, ...o } = n.modelValue ??
|
|
946
|
+
let { naturalWidth: r, naturalHeight: a, ...o } = n.modelValue ?? ye(e), s = n.measure ? t : null;
|
|
949
947
|
i("update:modelValue", {
|
|
950
948
|
...o,
|
|
951
949
|
url: e,
|
|
952
|
-
...s ?
|
|
950
|
+
...s ? We(s) : {}
|
|
953
951
|
}), s || T(e);
|
|
954
952
|
}
|
|
955
953
|
function O(e) {
|
|
@@ -981,7 +979,7 @@ var En = { class: "tpl:space-y-3.5" }, Dn = ["data-testid"], On = ["data-testid"
|
|
|
981
979
|
"bottom-left": c.blockSettings.backgroundPositionBottomLeft,
|
|
982
980
|
"bottom-center": c.blockSettings.backgroundPositionBottomCenter,
|
|
983
981
|
"bottom-right": c.blockSettings.backgroundPositionBottomRight
|
|
984
|
-
})), j = m(() =>
|
|
982
|
+
})), j = m(() => De.flatMap((e) => Me.map((t) => ({
|
|
985
983
|
x: t,
|
|
986
984
|
y: e,
|
|
987
985
|
label: A.value[`${e}-${t}`]
|
|
@@ -989,11 +987,11 @@ var En = { class: "tpl:space-y-3.5" }, Dn = ["data-testid"], On = ["data-testid"
|
|
|
989
987
|
function M(e) {
|
|
990
988
|
return n.modelValue?.position?.x === e.x && n.modelValue?.position?.y === e.y;
|
|
991
989
|
}
|
|
992
|
-
let F = _(), { canBrowse: I, isUploading: L, showOverlay: ee, openMediaBrowser: R } =
|
|
990
|
+
let F = _(), { canBrowse: I, isUploading: L, showOverlay: ee, openMediaBrowser: R } = Ze({
|
|
993
991
|
target: F,
|
|
994
992
|
value: u,
|
|
995
|
-
blocked: () =>
|
|
996
|
-
apply: (e) => D(e.url,
|
|
993
|
+
blocked: () => q(u.value, l),
|
|
994
|
+
apply: (e) => D(e.url, ze(e.width, e.height))
|
|
997
995
|
});
|
|
998
996
|
return (t, n) => (a(), v("div", En, [b("div", null, [e.hideLabel ? g("", !0) : (a(), v("label", {
|
|
999
997
|
key: 0,
|
|
@@ -1004,7 +1002,7 @@ var En = { class: "tpl:space-y-3.5" }, Dn = ["data-testid"], On = ["data-testid"
|
|
|
1004
1002
|
class: "tpl:relative",
|
|
1005
1003
|
"data-testid": `${e.testidPrefix}-bg-url`
|
|
1006
1004
|
}, [
|
|
1007
|
-
h(ee) ? (a(), w(
|
|
1005
|
+
h(ee) ? (a(), w(He, {
|
|
1008
1006
|
key: 0,
|
|
1009
1007
|
uploading: h(L)
|
|
1010
1008
|
}, null, 8, ["uploading"])) : g("", !0),
|
|
@@ -1025,7 +1023,7 @@ var En = { class: "tpl:space-y-3.5" }, Dn = ["data-testid"], On = ["data-testid"
|
|
|
1025
1023
|
"background-color": "var(--tpl-bg)"
|
|
1026
1024
|
},
|
|
1027
1025
|
onClick: n[0] ||= (...e) => h(R) && h(R)(...e)
|
|
1028
|
-
}, [p(h(
|
|
1026
|
+
}, [p(h(at), {
|
|
1029
1027
|
size: 14,
|
|
1030
1028
|
"stroke-width": 1.5
|
|
1031
1029
|
}), y(" " + r(h(c).image.browseMedia), 1)], 8, On)) : g("", !0)
|
|
@@ -1082,7 +1080,7 @@ var En = { class: "tpl:space-y-3.5" }, Dn = ["data-testid"], On = ["data-testid"
|
|
|
1082
1080
|
"data-testid": e.headerTestId,
|
|
1083
1081
|
class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-1.5 tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
1084
1082
|
onClick: i[0] ||= (e) => t.$emit("toggle")
|
|
1085
|
-
}, [p(h(
|
|
1083
|
+
}, [p(h(ot), {
|
|
1086
1084
|
class: o(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
1087
1085
|
size: 12,
|
|
1088
1086
|
"stroke-width": 2
|
|
@@ -1116,7 +1114,7 @@ var En = { class: "tpl:space-y-3.5" }, Dn = ["data-testid"], On = ["data-testid"
|
|
|
1116
1114
|
function n(e) {
|
|
1117
1115
|
return typeof e == "number" && Number.isFinite(e) && e >= 1;
|
|
1118
1116
|
}
|
|
1119
|
-
let i = e, s = t, { t: c } = W(), l = E(
|
|
1117
|
+
let i = e, s = t, { t: c } = W(), l = E(_e, Ne.liquid), u = E(ue, null), d = E(he, void 0), f = wn(), _ = m(() => typeof i.section.backgroundImage?.url == "string" ? i.section.backgroundImage.url : ""), y = m(() => _.value.trim() !== ""), x = m(() => q(_.value, l)), S = m(() => i.section.hero), C = m(() => i.section.columns === "1"), T = m(() => S.value ? n(S.value.height) ? "fixed" : "image" : "fit"), D = m(() => n(S.value?.height) ? S.value.height : Un), O = m(() => [
|
|
1120
1118
|
{
|
|
1121
1119
|
value: "fit",
|
|
1122
1120
|
label: c.blockSettings.heroHeightFit
|
|
@@ -1143,9 +1141,9 @@ var En = { class: "tpl:space-y-3.5" }, Dn = ["data-testid"], On = ["data-testid"
|
|
|
1143
1141
|
value: "bottom",
|
|
1144
1142
|
label: c.blockSettings.heroAlignBottom
|
|
1145
1143
|
}
|
|
1146
|
-
]), A = m(() => T.value === "image" && y.value && !x.value &&
|
|
1144
|
+
]), A = m(() => T.value === "image" && y.value && !x.value && X(i.section.backgroundImage) === null);
|
|
1147
1145
|
function j() {
|
|
1148
|
-
return (u ?
|
|
1146
|
+
return (u ? Xe(u.content.value, i.section.id, d, u.activeLocale?.value ?? void 0) : null) ?? Ke(u?.state.content.settings);
|
|
1149
1147
|
}
|
|
1150
1148
|
function M(e) {
|
|
1151
1149
|
let t = S.value?.verticalAlign ?? "middle";
|
|
@@ -1161,7 +1159,7 @@ var En = { class: "tpl:space-y-3.5" }, Dn = ["data-testid"], On = ["data-testid"
|
|
|
1161
1159
|
s("update", { hero: void 0 });
|
|
1162
1160
|
return;
|
|
1163
1161
|
}
|
|
1164
|
-
let n =
|
|
1162
|
+
let n = X(i.section.backgroundImage), r = n === null ? Un : Math.round(j() * n);
|
|
1165
1163
|
s("update", { hero: {
|
|
1166
1164
|
height: r,
|
|
1167
1165
|
verticalAlign: t
|
|
@@ -1169,11 +1167,11 @@ var En = { class: "tpl:space-y-3.5" }, Dn = ["data-testid"], On = ["data-testid"
|
|
|
1169
1167
|
}
|
|
1170
1168
|
async function N() {
|
|
1171
1169
|
let e = i.section.backgroundImage;
|
|
1172
|
-
if (!e || !y.value || x.value ||
|
|
1170
|
+
if (!e || !y.value || x.value || X(e) !== null) return;
|
|
1173
1171
|
let t = e.url, n = await f(t), r = i.section.backgroundImage;
|
|
1174
1172
|
n && r && r.url === t && s("update", { backgroundImage: {
|
|
1175
1173
|
...r,
|
|
1176
|
-
...
|
|
1174
|
+
...We(n)
|
|
1177
1175
|
} });
|
|
1178
1176
|
}
|
|
1179
1177
|
function P(e) {
|
|
@@ -1235,10 +1233,10 @@ function Jn(e) {
|
|
|
1235
1233
|
return Kn(e.styles.backgroundColor) || !!e.backgroundImage;
|
|
1236
1234
|
}
|
|
1237
1235
|
function Yn(e) {
|
|
1238
|
-
return e.fullWidth !== !0 || qn(e.padding) ||
|
|
1236
|
+
return e.fullWidth !== !0 || qn(e.padding) || Se(e.borderRadius) !== null ? !1 : Object.keys(e).every((e) => Gn.has(e));
|
|
1239
1237
|
}
|
|
1240
1238
|
function Xn(e, t = {}) {
|
|
1241
|
-
return e.wrapper ? !1 : t.sectionWrapper === !1 || t.layout !== void 0 &&
|
|
1239
|
+
return e.wrapper ? !1 : t.sectionWrapper === !1 || t.layout !== void 0 && J(t.layout);
|
|
1242
1240
|
}
|
|
1243
1241
|
function Zn(e) {
|
|
1244
1242
|
let t = {};
|
|
@@ -1309,80 +1307,80 @@ var tr = { class: "tpl:space-y-2" }, nr = { class: "tpl:flex tpl:items-center tp
|
|
|
1309
1307
|
},
|
|
1310
1308
|
emits: ["update"],
|
|
1311
1309
|
setup(e, { emit: n }) {
|
|
1312
|
-
let c = e, f = n, { t: x, format: T } = W(), D = E(
|
|
1313
|
-
sectionWrapper:
|
|
1314
|
-
layout:
|
|
1315
|
-
})),
|
|
1316
|
-
function
|
|
1310
|
+
let c = e, f = n, { t: x, format: T } = W(), D = E(ue, null), k = tt(D), j = E(ae, void 0), N = m(() => D?.activeLocale?.value), I = m(() => !!(N.value && D?.selectedBlock?.value?.l10n?.[N.value]?.hidden)), L = E(fe, []), R = E(pe, !1), z = E(he, void 0), B = E(oe, void 0), te = m(() => c.block.type === "section" || c.block.type === "wrapper"), ne = m(() => c.block.type === "wrapper" ? c.block.fullWidth === !0 : c.block.type === "section" && c.block.wrapper?.fullWidth === !0), V = m(() => c.block.type === "section" && Xn(c.block, {
|
|
1311
|
+
sectionWrapper: B,
|
|
1312
|
+
layout: z
|
|
1313
|
+
})), re = m(() => c.block.type === "wrapper" ? "layout-wrapper-full-width" : "section-background-full-width");
|
|
1314
|
+
function ie(e) {
|
|
1317
1315
|
c.block.type === "wrapper" ? f("update", { fullWidth: e }) : c.block.type === "section" && f("update", $n(c.block, e));
|
|
1318
1316
|
}
|
|
1319
|
-
let
|
|
1317
|
+
let se = m(() => c.block.type === "section" && c.block.wrapper?.fullWidth === !0), ce = m(() => se.value ? "wrapper.backgroundColor" : "styles.backgroundColor"), de = m(() => se.value ? "wrapper.backgroundImage" : "backgroundImage"), me = m(() => {
|
|
1320
1318
|
let e = c.block;
|
|
1321
1319
|
return e.type === "section" && e.wrapper?.fullWidth === !0 ? e.wrapper.backgroundColor ?? "" : e.styles.backgroundColor ?? "";
|
|
1322
|
-
}),
|
|
1320
|
+
}), U = m(() => {
|
|
1323
1321
|
let e = c.block;
|
|
1324
1322
|
return e.type === "section" && e.wrapper?.fullWidth === !0 ? e.wrapper.backgroundImage : e.type === "section" ? e.backgroundImage : void 0;
|
|
1325
1323
|
});
|
|
1326
|
-
function
|
|
1324
|
+
function ge(e, t) {
|
|
1327
1325
|
f("update", { wrapper: {
|
|
1328
1326
|
...e,
|
|
1329
1327
|
...t
|
|
1330
1328
|
} });
|
|
1331
1329
|
}
|
|
1332
|
-
function
|
|
1330
|
+
function _e(e) {
|
|
1333
1331
|
let t = c.block;
|
|
1334
|
-
t.type === "section" && t.wrapper?.fullWidth === !0 ?
|
|
1332
|
+
t.type === "section" && t.wrapper?.fullWidth === !0 ? ge(t.wrapper, { backgroundColor: e }) : Me("backgroundColor", e);
|
|
1335
1333
|
}
|
|
1336
|
-
function
|
|
1334
|
+
function G(e) {
|
|
1337
1335
|
let t = c.block;
|
|
1338
|
-
t.type === "section" && t.wrapper?.fullWidth === !0 ?
|
|
1336
|
+
t.type === "section" && t.wrapper?.fullWidth === !0 ? ge(t.wrapper, { backgroundImage: e }) : f("update", { backgroundImage: e });
|
|
1339
1337
|
}
|
|
1340
|
-
let
|
|
1338
|
+
let ve = E(le, null), ye = Ve(), K = _(!1), q = l(/* @__PURE__ */ new Set()), J = _(!1), Y = _(""), X = _(""), Se = [{
|
|
1341
1339
|
key: "desktop",
|
|
1342
|
-
icon:
|
|
1340
|
+
icon: st,
|
|
1343
1341
|
labelKey: "showOnDesktop"
|
|
1344
1342
|
}, {
|
|
1345
1343
|
key: "mobile",
|
|
1346
|
-
icon:
|
|
1344
|
+
icon: ct,
|
|
1347
1345
|
labelKey: "showOnMobile"
|
|
1348
1346
|
}];
|
|
1349
|
-
function
|
|
1347
|
+
function Z(e) {
|
|
1350
1348
|
q.has(e) ? q.delete(e) : q.add(e);
|
|
1351
1349
|
}
|
|
1352
|
-
let
|
|
1353
|
-
function
|
|
1350
|
+
let Ce = m(() => !!ve || L.length > 0 || R);
|
|
1351
|
+
function we(e) {
|
|
1354
1352
|
if (typeof e != "object" || !e || Array.isArray(e)) return !1;
|
|
1355
1353
|
let t = e;
|
|
1356
1354
|
return typeof t.label == "string" && typeof t.before == "string" && typeof t.after == "string";
|
|
1357
1355
|
}
|
|
1358
|
-
function
|
|
1356
|
+
function Te(e, t) {
|
|
1359
1357
|
let n = D?.state?.selectedBlockId;
|
|
1360
1358
|
c.block.id === e && (n === void 0 || n === e) ? f("update", { displayCondition: t }) : D && D.findBlockLocation(e) && D.updateBlock(e, { displayCondition: t });
|
|
1361
1359
|
}
|
|
1362
|
-
async function
|
|
1363
|
-
if (!
|
|
1364
|
-
let e = c.block.id, t = D?.activeLocale?.value ?? null, n =
|
|
1360
|
+
async function Ee() {
|
|
1361
|
+
if (!ve || K.value) return;
|
|
1362
|
+
let e = c.block.id, t = D?.activeLocale?.value ?? null, n = xe(C(c.block)), r = c.block.displayCondition ? xe(C(c.block.displayCondition)) : void 0;
|
|
1365
1363
|
K.value = !0;
|
|
1366
1364
|
try {
|
|
1367
|
-
let i = await
|
|
1365
|
+
let i = await ve(r ? {
|
|
1368
1366
|
current: r,
|
|
1369
1367
|
block: n
|
|
1370
1368
|
} : { block: n });
|
|
1371
|
-
if (!
|
|
1372
|
-
if (!
|
|
1373
|
-
|
|
1369
|
+
if (!ye.alive || (D?.activeLocale?.value ?? null) !== t || i === null) return;
|
|
1370
|
+
if (!we(i)) {
|
|
1371
|
+
Le.warn("displayConditions.onRequest resolved a value without string label, before and after — ignoring it.");
|
|
1374
1372
|
return;
|
|
1375
1373
|
}
|
|
1376
|
-
|
|
1374
|
+
Te(e, xe(i));
|
|
1377
1375
|
} finally {
|
|
1378
|
-
|
|
1376
|
+
ye.alive && (K.value = !1);
|
|
1379
1377
|
}
|
|
1380
1378
|
}
|
|
1381
|
-
let
|
|
1382
|
-
function
|
|
1383
|
-
J.value = !0,
|
|
1379
|
+
let De = m(() => c.block.displayCondition ? !L.some((e) => e.label === c.block.displayCondition?.label) : !1);
|
|
1380
|
+
function Oe() {
|
|
1381
|
+
J.value = !0, De.value && c.block.displayCondition ? (Y.value = c.block.displayCondition.before, X.value = c.block.displayCondition.after ?? "") : (Y.value = "", X.value = "");
|
|
1384
1382
|
}
|
|
1385
|
-
function
|
|
1383
|
+
function ke() {
|
|
1386
1384
|
let e = Y.value.trim(), t = X.value.trim();
|
|
1387
1385
|
e && (f("update", { displayCondition: {
|
|
1388
1386
|
label: x.blockSettings.customCondition,
|
|
@@ -1398,29 +1396,29 @@ var tr = { class: "tpl:space-y-2" }, nr = { class: "tpl:flex tpl:items-center tp
|
|
|
1398
1396
|
() => c.block.displayCondition?.after
|
|
1399
1397
|
], () => {
|
|
1400
1398
|
let e = c.block.displayCondition;
|
|
1401
|
-
!e || !
|
|
1399
|
+
!e || !De.value ? (J.value = !1, Y.value = "", X.value = "") : (Y.value = e.before, X.value = e.after ?? "");
|
|
1402
1400
|
}, { immediate: !0 });
|
|
1403
|
-
let
|
|
1401
|
+
let Ae = m(() => {
|
|
1404
1402
|
let e = {};
|
|
1405
|
-
for (let t of
|
|
1403
|
+
for (let t of L) {
|
|
1406
1404
|
let n = t.group ?? "";
|
|
1407
1405
|
e[n] || (e[n] = []), e[n].push(t);
|
|
1408
1406
|
}
|
|
1409
1407
|
return e;
|
|
1410
|
-
}),
|
|
1411
|
-
function
|
|
1408
|
+
}), je = m(() => c.block.type === "section" && be(c.block)?.applied === !0);
|
|
1409
|
+
function Me(e, t) {
|
|
1412
1410
|
f("update", { styles: {
|
|
1413
1411
|
...c.block.styles,
|
|
1414
1412
|
[e]: t
|
|
1415
1413
|
} });
|
|
1416
1414
|
}
|
|
1417
|
-
function
|
|
1415
|
+
function Ne(e) {
|
|
1418
1416
|
return c.block.visibility?.[e] !== !1;
|
|
1419
1417
|
}
|
|
1420
|
-
function
|
|
1418
|
+
function Pe(e) {
|
|
1421
1419
|
let t = {
|
|
1422
|
-
desktop:
|
|
1423
|
-
mobile:
|
|
1420
|
+
desktop: Ne("desktop"),
|
|
1421
|
+
mobile: Ne("mobile")
|
|
1424
1422
|
};
|
|
1425
1423
|
t[e] = !t[e], f("update", { visibility: t });
|
|
1426
1424
|
}
|
|
@@ -1429,13 +1427,13 @@ var tr = { class: "tpl:space-y-2" }, nr = { class: "tpl:flex tpl:items-center tp
|
|
|
1429
1427
|
title: h(x).blockSettings.spacing,
|
|
1430
1428
|
open: q.has("spacing"),
|
|
1431
1429
|
"no-border": e.isFirstSection,
|
|
1432
|
-
onToggle: n[1] ||= (e) =>
|
|
1430
|
+
onToggle: n[1] ||= (e) => Z("spacing")
|
|
1433
1431
|
}, {
|
|
1434
1432
|
default: u(() => [p(Sn, {
|
|
1435
1433
|
path: "styles.padding",
|
|
1436
1434
|
label: h(x).blockSettings.padding,
|
|
1437
1435
|
"model-value": e.block.styles.padding,
|
|
1438
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
1436
|
+
"onUpdate:modelValue": n[0] ||= (e) => Me("padding", e)
|
|
1439
1437
|
}, null, 8, ["label", "model-value"])]),
|
|
1440
1438
|
_: 1
|
|
1441
1439
|
}, 8, [
|
|
@@ -1447,34 +1445,34 @@ var tr = { class: "tpl:space-y-2" }, nr = { class: "tpl:flex tpl:items-center tp
|
|
|
1447
1445
|
title: h(x).blockSettings.background,
|
|
1448
1446
|
open: q.has("bg"),
|
|
1449
1447
|
"header-test-id": "block-settings-background",
|
|
1450
|
-
onToggle: n[4] ||= (e) =>
|
|
1448
|
+
onToggle: n[4] ||= (e) => Z("bg")
|
|
1451
1449
|
}, {
|
|
1452
1450
|
default: u(() => [
|
|
1453
1451
|
p(A, {
|
|
1454
|
-
path:
|
|
1452
|
+
path: ce.value,
|
|
1455
1453
|
label: h(x).blockSettings.color
|
|
1456
1454
|
}, {
|
|
1457
1455
|
default: u(() => [p(M, {
|
|
1458
|
-
"model-value":
|
|
1456
|
+
"model-value": me.value,
|
|
1459
1457
|
"allow-transparent": "",
|
|
1460
|
-
"onUpdate:modelValue":
|
|
1458
|
+
"onUpdate:modelValue": _e
|
|
1461
1459
|
}, null, 8, ["model-value"])]),
|
|
1462
1460
|
_: 1
|
|
1463
1461
|
}, 8, ["path", "label"]),
|
|
1464
|
-
|
|
1462
|
+
te.value ? (a(), w(A, {
|
|
1465
1463
|
key: 0,
|
|
1466
1464
|
path: e.block.type === "section" ? "wrapper.fullWidth" : "fullWidth",
|
|
1467
1465
|
label: h(x).blockSettings.fullWidthBackground
|
|
1468
1466
|
}, {
|
|
1469
1467
|
"label-actions": u(({ controlId: e }) => [p(P, {
|
|
1470
|
-
"data-testid":
|
|
1468
|
+
"data-testid": re.value,
|
|
1471
1469
|
"control-id": e,
|
|
1472
1470
|
"hide-label": "",
|
|
1473
1471
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1474
|
-
"model-value":
|
|
1475
|
-
disabled:
|
|
1472
|
+
"model-value": ne.value,
|
|
1473
|
+
disabled: V.value,
|
|
1476
1474
|
label: h(x).blockSettings.fullWidthBackground,
|
|
1477
|
-
"onUpdate:modelValue":
|
|
1475
|
+
"onUpdate:modelValue": ie
|
|
1478
1476
|
}, null, 8, [
|
|
1479
1477
|
"data-testid",
|
|
1480
1478
|
"control-id",
|
|
@@ -1486,21 +1484,21 @@ var tr = { class: "tpl:space-y-2" }, nr = { class: "tpl:flex tpl:items-center tp
|
|
|
1486
1484
|
}, 8, ["path", "label"])) : g("", !0),
|
|
1487
1485
|
e.block.type === "section" ? (a(), w(A, {
|
|
1488
1486
|
key: 1,
|
|
1489
|
-
path:
|
|
1487
|
+
path: de.value,
|
|
1490
1488
|
label: h(x).blockSettings.backgroundImage
|
|
1491
1489
|
}, {
|
|
1492
1490
|
default: u(() => [p(Nn, {
|
|
1493
1491
|
"hide-label": "",
|
|
1494
1492
|
class: "tpl:mt-3.5",
|
|
1495
|
-
"model-value":
|
|
1493
|
+
"model-value": U.value,
|
|
1496
1494
|
"testid-prefix": "section",
|
|
1497
1495
|
measure: "",
|
|
1498
|
-
"hero-mode":
|
|
1499
|
-
"onUpdate:modelValue":
|
|
1496
|
+
"hero-mode": je.value,
|
|
1497
|
+
"onUpdate:modelValue": G
|
|
1500
1498
|
}, null, 8, ["model-value", "hero-mode"])]),
|
|
1501
1499
|
_: 1
|
|
1502
1500
|
}, 8, ["path", "label"])) : g("", !0),
|
|
1503
|
-
|
|
1501
|
+
se.value ? (a(), w(A, {
|
|
1504
1502
|
key: 2,
|
|
1505
1503
|
path: "styles.backgroundColor",
|
|
1506
1504
|
label: h(x).blockSettings.contentBackground
|
|
@@ -1509,7 +1507,7 @@ var tr = { class: "tpl:space-y-2" }, nr = { class: "tpl:flex tpl:items-center tp
|
|
|
1509
1507
|
"data-testid": "section-content-background",
|
|
1510
1508
|
"model-value": e.block.styles.backgroundColor ?? "",
|
|
1511
1509
|
"allow-transparent": "",
|
|
1512
|
-
"onUpdate:modelValue": n[2] ||= (e) =>
|
|
1510
|
+
"onUpdate:modelValue": n[2] ||= (e) => Me("backgroundColor", e)
|
|
1513
1511
|
}, null, 8, ["model-value"])]),
|
|
1514
1512
|
_: 1
|
|
1515
1513
|
}, 8, ["label"])) : g("", !0),
|
|
@@ -1530,20 +1528,20 @@ var tr = { class: "tpl:space-y-2" }, nr = { class: "tpl:flex tpl:items-center tp
|
|
|
1530
1528
|
p(In, {
|
|
1531
1529
|
title: h(x).blockSettings.display,
|
|
1532
1530
|
open: q.has("display"),
|
|
1533
|
-
onToggle: n[6] ||= (e) =>
|
|
1531
|
+
onToggle: n[6] ||= (e) => Z("display")
|
|
1534
1532
|
}, {
|
|
1535
|
-
default: u(() => [b("div", tr, [
|
|
1533
|
+
default: u(() => [b("div", tr, [N.value && h(j) ? (a(), w(P, {
|
|
1536
1534
|
key: 0,
|
|
1537
1535
|
"data-testid": "locale-hide",
|
|
1538
|
-
disabled: !h(
|
|
1539
|
-
"model-value":
|
|
1540
|
-
label: h(T)(h(x).localization.hide, { language: h(
|
|
1536
|
+
disabled: !h(j).locales.includes(N.value),
|
|
1537
|
+
"model-value": I.value,
|
|
1538
|
+
label: h(T)(h(x).localization.hide, { language: h(k)(N.value) }),
|
|
1541
1539
|
"onUpdate:modelValue": n[5] ||= (t) => h(D)?.setBlockHidden?.(e.block.id, t)
|
|
1542
1540
|
}, null, 8, [
|
|
1543
1541
|
"disabled",
|
|
1544
1542
|
"model-value",
|
|
1545
1543
|
"label"
|
|
1546
|
-
])) : g("", !0), (a(), v(S, null, s(
|
|
1544
|
+
])) : g("", !0), (a(), v(S, null, s(Se, (e) => p(A, {
|
|
1547
1545
|
key: e.key,
|
|
1548
1546
|
path: `visibility.${e.key}`,
|
|
1549
1547
|
label: h(x).blockSettings[e.labelKey]
|
|
@@ -1556,9 +1554,9 @@ var tr = { class: "tpl:space-y-2" }, nr = { class: "tpl:flex tpl:items-center tp
|
|
|
1556
1554
|
"control-id": t,
|
|
1557
1555
|
"hide-label": "",
|
|
1558
1556
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1559
|
-
"model-value":
|
|
1557
|
+
"model-value": Ne(e.key),
|
|
1560
1558
|
label: h(x).blockSettings[e.labelKey],
|
|
1561
|
-
"onUpdate:modelValue": (t) =>
|
|
1559
|
+
"onUpdate:modelValue": (t) => Pe(e.key)
|
|
1562
1560
|
}, null, 8, [
|
|
1563
1561
|
"control-id",
|
|
1564
1562
|
"model-value",
|
|
@@ -1569,14 +1567,14 @@ var tr = { class: "tpl:space-y-2" }, nr = { class: "tpl:flex tpl:items-center tp
|
|
|
1569
1567
|
}, 1032, ["path", "label"])), 64))])]),
|
|
1570
1568
|
_: 1
|
|
1571
1569
|
}, 8, ["title", "open"]),
|
|
1572
|
-
|
|
1570
|
+
Ce.value ? (a(), w(In, {
|
|
1573
1571
|
key: 0,
|
|
1574
1572
|
"header-test-id": "display-condition-section",
|
|
1575
1573
|
title: h(x).blockSettings.displayCondition,
|
|
1576
1574
|
open: q.has("condition"),
|
|
1577
|
-
onToggle: n[11] ||= (e) =>
|
|
1575
|
+
onToggle: n[11] ||= (e) => Z("condition")
|
|
1578
1576
|
}, {
|
|
1579
|
-
default: u(() => [h(
|
|
1577
|
+
default: u(() => [h(ve) ? (a(), v("div", rr, [e.block.displayCondition ? (a(), v(S, { key: 0 }, [
|
|
1580
1578
|
b("p", ir, r(e.block.displayCondition.label), 1),
|
|
1581
1579
|
e.block.displayCondition.description ? (a(), v("p", ar, r(e.block.displayCondition.description), 1)) : g("", !0),
|
|
1582
1580
|
b("div", or, [b("button", {
|
|
@@ -1584,7 +1582,7 @@ var tr = { class: "tpl:space-y-2" }, nr = { class: "tpl:flex tpl:items-center tp
|
|
|
1584
1582
|
"data-testid": "display-condition-edit",
|
|
1585
1583
|
class: o(h(F)),
|
|
1586
1584
|
disabled: K.value,
|
|
1587
|
-
onClick:
|
|
1585
|
+
onClick: Ee
|
|
1588
1586
|
}, r(h(x).blockSettings.editCondition), 11, sr), b("button", {
|
|
1589
1587
|
type: "button",
|
|
1590
1588
|
"data-testid": "display-condition-remove",
|
|
@@ -1598,7 +1596,7 @@ var tr = { class: "tpl:space-y-2" }, nr = { class: "tpl:flex tpl:items-center tp
|
|
|
1598
1596
|
"data-testid": "display-condition-request",
|
|
1599
1597
|
class: o(h(F)),
|
|
1600
1598
|
disabled: K.value,
|
|
1601
|
-
onClick:
|
|
1599
|
+
onClick: Ee
|
|
1602
1600
|
}, r(h(x).blockSettings.addCondition), 11, lr))])) : (a(), v("div", ur, [p(A, {
|
|
1603
1601
|
path: "displayCondition",
|
|
1604
1602
|
label: h(x).blockSettings.displayCondition
|
|
@@ -1606,23 +1604,23 @@ var tr = { class: "tpl:space-y-2" }, nr = { class: "tpl:flex tpl:items-center tp
|
|
|
1606
1604
|
default: u(() => [b("select", {
|
|
1607
1605
|
"data-testid": "display-condition-select",
|
|
1608
1606
|
class: o(["tpl:w-full tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:outline-none tpl:transition-all tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]", e.block.displayCondition ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-text)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"]),
|
|
1609
|
-
value: J.value ||
|
|
1607
|
+
value: J.value || De.value ? "__custom__" : e.block.displayCondition?.label ?? "",
|
|
1610
1608
|
onChange: n[8] ||= (e) => {
|
|
1611
1609
|
let t = e.target.value;
|
|
1612
1610
|
if (t === "__custom__") {
|
|
1613
|
-
|
|
1611
|
+
Oe();
|
|
1614
1612
|
return;
|
|
1615
1613
|
}
|
|
1616
1614
|
if (J.value = !1, !t) {
|
|
1617
1615
|
f("update", { displayCondition: void 0 });
|
|
1618
1616
|
return;
|
|
1619
1617
|
}
|
|
1620
|
-
let n = h(
|
|
1618
|
+
let n = h(L).find((e) => e.label === t);
|
|
1621
1619
|
n && f("update", { displayCondition: n });
|
|
1622
1620
|
}
|
|
1623
1621
|
}, [
|
|
1624
1622
|
b("option", fr, r(h(x).blockSettings.noCondition), 1),
|
|
1625
|
-
(a(!0), v(S, null, s(
|
|
1623
|
+
(a(!0), v(S, null, s(Ae.value, (e, t) => (a(), v(S, { key: t }, [t ? (a(), v("optgroup", {
|
|
1626
1624
|
key: 0,
|
|
1627
1625
|
label: String(t)
|
|
1628
1626
|
}, [(a(!0), v(S, null, s(e, (e) => (a(), v("option", {
|
|
@@ -1632,10 +1630,10 @@ var tr = { class: "tpl:space-y-2" }, nr = { class: "tpl:flex tpl:items-center tp
|
|
|
1632
1630
|
key: e.label,
|
|
1633
1631
|
value: e.label
|
|
1634
1632
|
}, r(e.label), 9, hr))), 128))], 64))), 128)),
|
|
1635
|
-
h(
|
|
1633
|
+
h(R) ? (a(), v("option", gr, r(h(x).blockSettings.customCondition), 1)) : g("", !0)
|
|
1636
1634
|
], 42, dr)]),
|
|
1637
1635
|
_: 1
|
|
1638
|
-
}, 8, ["label"]), J.value ||
|
|
1636
|
+
}, 8, ["label"]), J.value || De.value ? (a(), v("div", _r, [
|
|
1639
1637
|
b("div", null, [b("label", vr, r(h(x).blockSettings.customConditionBefore), 1), d(b("textarea", {
|
|
1640
1638
|
"onUpdate:modelValue": n[9] ||= (e) => Y.value = e,
|
|
1641
1639
|
rows: "2",
|
|
@@ -1650,9 +1648,9 @@ var tr = { class: "tpl:space-y-2" }, nr = { class: "tpl:flex tpl:items-center tp
|
|
|
1650
1648
|
type: "button",
|
|
1651
1649
|
class: o(h(ee)),
|
|
1652
1650
|
disabled: !Y.value.trim(),
|
|
1653
|
-
onClick:
|
|
1651
|
+
onClick: ke
|
|
1654
1652
|
}, r(h(x).blockSettings.applyCondition), 11, xr)])
|
|
1655
|
-
])) : e.block.displayCondition && !
|
|
1653
|
+
])) : e.block.displayCondition && !De.value ? (a(), v(S, { key: 1 }, [e.block.displayCondition.description ? (a(), v("p", Sr, r(e.block.displayCondition.description), 1)) : g("", !0), b("div", Cr, [b("pre", wr, r(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (a(), v("pre", Tr, r(e.block.displayCondition.after), 1)) : g("", !0)])], 64)) : g("", !0)]))]),
|
|
1656
1654
|
_: 1
|
|
1657
1655
|
}, 8, ["title", "open"])) : g("", !0)
|
|
1658
1656
|
], 2));
|
|
@@ -1755,7 +1753,7 @@ var tr = { class: "tpl:space-y-2" }, nr = { class: "tpl:flex tpl:items-center tp
|
|
|
1755
1753
|
},
|
|
1756
1754
|
emits: ["update:modelValue"],
|
|
1757
1755
|
setup(e, { emit: t }) {
|
|
1758
|
-
let n = e, r = t, { t: i } = W(), o = E(
|
|
1756
|
+
let n = e, r = t, { t: i } = W(), o = E(de, ft), s = m(() => Qe(n.field, o));
|
|
1759
1757
|
return (t, n) => (a(), w(Fr, {
|
|
1760
1758
|
"hide-label": e.hideLabel,
|
|
1761
1759
|
label: e.field.label,
|
|
@@ -1800,7 +1798,7 @@ var tr = { class: "tpl:space-y-2" }, nr = { class: "tpl:flex tpl:items-center tp
|
|
|
1800
1798
|
},
|
|
1801
1799
|
emits: ["update:modelValue"],
|
|
1802
1800
|
setup(e, { emit: t }) {
|
|
1803
|
-
let n = e, i = t, { t: s } = W(), c = _(), { canBrowse: l, isUploading: d, showOverlay: f, openMediaBrowser: m } =
|
|
1801
|
+
let n = e, i = t, { t: s } = W(), c = _(), { canBrowse: l, isUploading: d, showOverlay: f, openMediaBrowser: m } = Ze({
|
|
1804
1802
|
target: c,
|
|
1805
1803
|
value: () => n.modelValue,
|
|
1806
1804
|
blocked: () => !!n.readOnly,
|
|
@@ -1817,7 +1815,7 @@ var tr = { class: "tpl:space-y-2" }, nr = { class: "tpl:flex tpl:items-center tp
|
|
|
1817
1815
|
ref: c,
|
|
1818
1816
|
class: "tpl:relative"
|
|
1819
1817
|
}, [
|
|
1820
|
-
h(f) ? (a(), w(
|
|
1818
|
+
h(f) ? (a(), w(He, {
|
|
1821
1819
|
key: 0,
|
|
1822
1820
|
uploading: h(d)
|
|
1823
1821
|
}, null, 8, ["uploading"])) : g("", !0),
|
|
@@ -1841,7 +1839,7 @@ var tr = { class: "tpl:space-y-2" }, nr = { class: "tpl:flex tpl:items-center tp
|
|
|
1841
1839
|
key: 3,
|
|
1842
1840
|
class: "tpl:mt-2 tpl:flex tpl:w-full tpl:items-center tpl:justify-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:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
|
|
1843
1841
|
onClick: n[1] ||= (e) => h(m)()
|
|
1844
|
-
}, [p(h(
|
|
1842
|
+
}, [p(h(at), {
|
|
1845
1843
|
size: 14,
|
|
1846
1844
|
"stroke-width": 1.5
|
|
1847
1845
|
}), y(" " + r(h(s).image.browseMedia), 1)])) : g("", !0)
|
|
@@ -2147,7 +2145,7 @@ var ii = {
|
|
|
2147
2145
|
props: { block: {} },
|
|
2148
2146
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
2149
2147
|
setup(e, { emit: t }) {
|
|
2150
|
-
let n = e, o = t, { t: c } = W(), l = E(
|
|
2148
|
+
let n = e, o = t, { t: c } = W(), l = E(U, []), d = m(() => l.find((e) => e.type === n.block.customType)), f = m(() => n.block), { isFetching: _, fetchError: x, fetch: C, hasDataSource: T, needsFetch: D } = Ie({
|
|
2151
2149
|
definition: d,
|
|
2152
2150
|
block: f,
|
|
2153
2151
|
onUpdate: (e, t) => {
|
|
@@ -2305,7 +2303,7 @@ function yi(e) {
|
|
|
2305
2303
|
t(() => e.block().id, () => {
|
|
2306
2304
|
n.value = !1, r.value = null;
|
|
2307
2305
|
});
|
|
2308
|
-
let i = m(() =>
|
|
2306
|
+
let i = m(() => Ue(e.block()) ?? e.measured()), a = m(() => {
|
|
2309
2307
|
let t = e.block().width;
|
|
2310
2308
|
return t === "full" ? e.room() : t;
|
|
2311
2309
|
}), o = m(() => {
|
|
@@ -2316,9 +2314,9 @@ function yi(e) {
|
|
|
2316
2314
|
return t === void 0 || o.value !== null && Math.abs(o.value - t) <= 1;
|
|
2317
2315
|
}), l = m(() => s.value && !n.value && c.value);
|
|
2318
2316
|
function u() {
|
|
2319
|
-
if (
|
|
2317
|
+
if (Ue(e.block())) return {};
|
|
2320
2318
|
let t = e.measured();
|
|
2321
|
-
return t ?
|
|
2319
|
+
return t ? We(t) : {};
|
|
2322
2320
|
}
|
|
2323
2321
|
function d(t) {
|
|
2324
2322
|
if (r.value = null, !t) return n.value = !0, null;
|
|
@@ -2380,7 +2378,7 @@ var bi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, xi = [
|
|
|
2380
2378
|
props: { block: {} },
|
|
2381
2379
|
emits: ["update"],
|
|
2382
2380
|
setup(e, { emit: t }) {
|
|
2383
|
-
let n = e, i = t, { t: s, format: c } = W(), l = E(
|
|
2381
|
+
let n = e, i = t, { t: s, format: c } = W(), l = E(_e, Ne.liquid), d = E(ue, null), f = d ? Pe(d) : null, C = E(he, void 0), T = _(!1), D = _(!1), { start: O } = ht(() => {
|
|
2384
2382
|
T.value = !1, D.value = !1;
|
|
2385
2383
|
}, 1e3, { immediate: !1 }), k = [
|
|
2386
2384
|
300,
|
|
@@ -2396,8 +2394,8 @@ var bi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, xi = [
|
|
|
2396
2394
|
function ee(e) {
|
|
2397
2395
|
if (e === "custom") {
|
|
2398
2396
|
let e = n.block.width;
|
|
2399
|
-
(typeof e != "number" || k.includes(e)) && i("update",
|
|
2400
|
-
} else i("update",
|
|
2397
|
+
(typeof e != "number" || k.includes(e)) && i("update", U.widthUpdates(Bi));
|
|
2398
|
+
} else i("update", U.widthUpdates(e === "full" ? "full" : Number(e)));
|
|
2401
2399
|
}
|
|
2402
2400
|
function R(e) {
|
|
2403
2401
|
I("height", e === "custom" ? Vi : void 0);
|
|
@@ -2410,42 +2408,42 @@ var bi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, xi = [
|
|
|
2410
2408
|
!Number.isFinite(t) || t <= 0 || I("height", t);
|
|
2411
2409
|
}
|
|
2412
2410
|
function V(e) {
|
|
2413
|
-
I("borderRadius",
|
|
2411
|
+
I("borderRadius", Se(e) === null ? void 0 : e);
|
|
2414
2412
|
}
|
|
2415
2413
|
function H(e) {
|
|
2416
2414
|
let t = Number(e);
|
|
2417
|
-
!Number.isFinite(t) || t <= 0 || i("update",
|
|
2415
|
+
!Number.isFinite(t) || t <= 0 || i("update", U.widthUpdates(t));
|
|
2418
2416
|
}
|
|
2419
2417
|
function re(e) {
|
|
2420
2418
|
e !== n.block.src && i("update", {
|
|
2421
2419
|
src: e,
|
|
2422
|
-
...
|
|
2420
|
+
...We(null)
|
|
2423
2421
|
});
|
|
2424
2422
|
}
|
|
2425
|
-
function
|
|
2423
|
+
function ie(e) {
|
|
2426
2424
|
i("update", {
|
|
2427
2425
|
src: e.url,
|
|
2428
|
-
...
|
|
2426
|
+
...We(ze(e.width, e.height))
|
|
2429
2427
|
}), e.alt && (I("alt", e.alt), D.value = !0), T.value = !0, O();
|
|
2430
2428
|
}
|
|
2431
|
-
let
|
|
2432
|
-
target:
|
|
2429
|
+
let ae = _(), oe = m(() => q(n.block.src, l)), { canBrowse: se, isUploading: ce, showOverlay: le, openMediaBrowser: de } = Ze({
|
|
2430
|
+
target: ae,
|
|
2433
2431
|
value: () => n.block.src,
|
|
2434
|
-
blocked:
|
|
2435
|
-
apply:
|
|
2436
|
-
}),
|
|
2432
|
+
blocked: oe,
|
|
2433
|
+
apply: ie
|
|
2434
|
+
}), fe = Re(() => oe.value || !n.block.src || Ue(n.block) ? void 0 : n.block.src), pe = Cn(() => fe.value), me = m(() => f ? Ge(f.content.value, n.block.id, C) : null), U = yi({
|
|
2437
2435
|
block: () => n.block,
|
|
2438
|
-
room: () =>
|
|
2439
|
-
measured: () =>
|
|
2440
|
-
}), { available:
|
|
2441
|
-
function
|
|
2442
|
-
let e =
|
|
2436
|
+
room: () => me.value,
|
|
2437
|
+
measured: () => pe.value
|
|
2438
|
+
}), { available: ge, locked: G, derivedHeight: ve, cappedHeight: ye } = U;
|
|
2439
|
+
function be() {
|
|
2440
|
+
let e = U.setLocked(!G.value);
|
|
2443
2441
|
e && i("update", e);
|
|
2444
2442
|
}
|
|
2445
|
-
let
|
|
2446
|
-
function
|
|
2447
|
-
|
|
2448
|
-
let t =
|
|
2443
|
+
let K = _(null);
|
|
2444
|
+
function J(e) {
|
|
2445
|
+
K.value = e;
|
|
2446
|
+
let t = U.heightUpdates(Number(e));
|
|
2449
2447
|
t && i("update", t);
|
|
2450
2448
|
}
|
|
2451
2449
|
return (t, n) => (a(), v(S, null, [
|
|
@@ -2456,12 +2454,12 @@ var bi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, xi = [
|
|
|
2456
2454
|
}, {
|
|
2457
2455
|
default: u(() => [b("div", {
|
|
2458
2456
|
ref_key: "dropZoneRef",
|
|
2459
|
-
ref:
|
|
2457
|
+
ref: ae,
|
|
2460
2458
|
class: "tpl:relative"
|
|
2461
2459
|
}, [
|
|
2462
|
-
h(
|
|
2460
|
+
h(le) ? (a(), w(He, {
|
|
2463
2461
|
key: 0,
|
|
2464
|
-
uploading: h(
|
|
2462
|
+
uploading: h(ce)
|
|
2465
2463
|
}, null, 8, ["uploading"])) : g("", !0),
|
|
2466
2464
|
p(N, {
|
|
2467
2465
|
"model-value": e.block.src,
|
|
@@ -2474,7 +2472,7 @@ var bi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, xi = [
|
|
|
2474
2472
|
"placeholder",
|
|
2475
2473
|
"pulse"
|
|
2476
2474
|
]),
|
|
2477
|
-
h(
|
|
2475
|
+
h(se) ? (a(), v("button", {
|
|
2478
2476
|
key: 1,
|
|
2479
2477
|
class: "tpl:mt-2 tpl:flex tpl:w-full tpl:items-center tpl:justify-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",
|
|
2480
2478
|
style: {
|
|
@@ -2482,15 +2480,15 @@ var bi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, xi = [
|
|
|
2482
2480
|
color: "var(--tpl-primary)",
|
|
2483
2481
|
"background-color": "var(--tpl-bg)"
|
|
2484
2482
|
},
|
|
2485
|
-
onClick: n[1] ||= (...e) => h(
|
|
2486
|
-
}, [p(h(
|
|
2483
|
+
onClick: n[1] ||= (...e) => h(de) && h(de)(...e)
|
|
2484
|
+
}, [p(h(at), {
|
|
2487
2485
|
size: 14,
|
|
2488
2486
|
"stroke-width": 1.5
|
|
2489
2487
|
}), y(" " + r(h(s).image.browseMedia), 1)])) : g("", !0)
|
|
2490
2488
|
], 512)]),
|
|
2491
2489
|
_: 1
|
|
2492
2490
|
}, 8, ["label"]),
|
|
2493
|
-
h(
|
|
2491
|
+
h(q)(e.block.src, h(l)) ? (a(), w(A, {
|
|
2494
2492
|
key: 0,
|
|
2495
2493
|
class: "tpl:mb-3.5",
|
|
2496
2494
|
path: "placeholderUrl"
|
|
@@ -2593,23 +2591,23 @@ var bi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, xi = [
|
|
|
2593
2591
|
label: h(s).image.height
|
|
2594
2592
|
}, x({
|
|
2595
2593
|
default: u(() => [
|
|
2596
|
-
h(
|
|
2594
|
+
h(G) ? (a(), v(S, { key: 0 }, [b("div", Mi, [b("input", {
|
|
2597
2595
|
type: "number",
|
|
2598
2596
|
"data-testid": "image-locked-height-input",
|
|
2599
2597
|
class: o(h(z)),
|
|
2600
|
-
value:
|
|
2598
|
+
value: K.value ?? h(ve) ?? "",
|
|
2601
2599
|
min: "1",
|
|
2602
|
-
onInput: n[8] ||= (e) =>
|
|
2603
|
-
onBlur: n[9] ||= (e) =>
|
|
2604
|
-
}, null, 42, Ni), b("span", { class: o(h(L)) }, "px", 2)]), h(
|
|
2605
|
-
h(
|
|
2600
|
+
onInput: n[8] ||= (e) => J(e.target.value),
|
|
2601
|
+
onBlur: n[9] ||= (e) => K.value = null
|
|
2602
|
+
}, null, 42, Ni), b("span", { class: o(h(L)) }, "px", 2)]), h(ye) === null ? g("", !0) : (a(), v("p", Pi, r(h(c)(h(s).image.heightCapped, { height: h(ye) })), 1))], 64)) : g("", !0),
|
|
2603
|
+
h(G) ? g("", !0) : (a(), v("select", {
|
|
2606
2604
|
key: 1,
|
|
2607
2605
|
class: o(h(B)),
|
|
2608
2606
|
"data-testid": "image-height-mode",
|
|
2609
2607
|
value: M.value,
|
|
2610
2608
|
onChange: n[10] ||= (e) => R(e.target.value)
|
|
2611
2609
|
}, [b("option", Ii, r(h(s).image.heightAuto), 1), b("option", Li, r(h(s).image.heightCustom), 1)], 42, Fi)),
|
|
2612
|
-
!h(
|
|
2610
|
+
!h(G) && M.value === "custom" ? (a(), v("div", Ri, [b("input", {
|
|
2613
2611
|
type: "number",
|
|
2614
2612
|
"data-testid": "image-height-input",
|
|
2615
2613
|
class: o(h(z)),
|
|
@@ -2619,14 +2617,14 @@ var bi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, xi = [
|
|
|
2619
2617
|
}, null, 42, zi), b("span", { class: o(h(L)) }, "px", 2)])) : g("", !0)
|
|
2620
2618
|
]),
|
|
2621
2619
|
_: 2
|
|
2622
|
-
}, [h(
|
|
2620
|
+
}, [h(ge) ? {
|
|
2623
2621
|
name: "label-actions",
|
|
2624
2622
|
fn: u(() => [p(jt, {
|
|
2625
|
-
linked: h(
|
|
2623
|
+
linked: h(G),
|
|
2626
2624
|
"link-label": h(s).image.lockAspectRatio,
|
|
2627
2625
|
"unlink-label": h(s).image.unlockAspectRatio,
|
|
2628
2626
|
testid: "image-aspect-lock",
|
|
2629
|
-
onToggle:
|
|
2627
|
+
onToggle: be
|
|
2630
2628
|
}, null, 8, [
|
|
2631
2629
|
"linked",
|
|
2632
2630
|
"link-label",
|
|
@@ -2752,7 +2750,7 @@ var bi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, xi = [
|
|
|
2752
2750
|
}
|
|
2753
2751
|
function g() {
|
|
2754
2752
|
let e = {
|
|
2755
|
-
id:
|
|
2753
|
+
id: Z(),
|
|
2756
2754
|
text: "",
|
|
2757
2755
|
url: "",
|
|
2758
2756
|
openInNewTab: !1,
|
|
@@ -2858,7 +2856,7 @@ var bi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, xi = [
|
|
|
2858
2856
|
}, {
|
|
2859
2857
|
default: u(() => [b("select", {
|
|
2860
2858
|
class: o(h(B)),
|
|
2861
|
-
value: h(
|
|
2859
|
+
value: h(et)(e.block.fontFamily),
|
|
2862
2860
|
onChange: n[0] ||= (e) => f("fontFamily", e.target.value || void 0)
|
|
2863
2861
|
}, [b("option", Xi, r(h(c).title.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
|
|
2864
2862
|
key: e.value,
|
|
@@ -2962,7 +2960,7 @@ var bi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, xi = [
|
|
|
2962
2960
|
default: u(() => [b("div", ea, [b("input", {
|
|
2963
2961
|
type: "number",
|
|
2964
2962
|
class: o(h(z)),
|
|
2965
|
-
value: e.block.paragraphSpacing ?? h(
|
|
2963
|
+
value: e.block.paragraphSpacing ?? h(Te).paragraphGap,
|
|
2966
2964
|
min: "0",
|
|
2967
2965
|
max: "64",
|
|
2968
2966
|
onInput: i[0] ||= (e) => n("update", { paragraphSpacing: Number(e.target.value) })
|
|
@@ -2973,7 +2971,7 @@ var bi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, xi = [
|
|
|
2973
2971
|
});
|
|
2974
2972
|
// src/utils/rebalanceColumnChildren.ts
|
|
2975
2973
|
function ra(e, t) {
|
|
2976
|
-
let n =
|
|
2974
|
+
let n = ke(t);
|
|
2977
2975
|
if (e.length === n) return e;
|
|
2978
2976
|
if (e.length < n) {
|
|
2979
2977
|
let t = Array.from({ length: n - e.length }, () => []);
|
|
@@ -3004,7 +3002,7 @@ var ia = { class: "tpl:mb-3.5" }, aa = ["value"], oa = ["value"], sa = {
|
|
|
3004
3002
|
props: { block: {} },
|
|
3005
3003
|
emits: ["update"],
|
|
3006
3004
|
setup(e, { emit: t }) {
|
|
3007
|
-
let n = e, i = t, { t: c, format: l } = W(), d = E(
|
|
3005
|
+
let n = e, i = t, { t: c, format: l } = W(), d = E(he, void 0), f = E(oe, void 0), _ = d !== void 0 && J(d), y = m(() => f !== !1 || !!n.block.wrapper), x = m(() => _ && !n.block.wrapper), C = m(() => _ && y.value), T = m(() => be(n.block)?.applied === !0), D = m(() => [
|
|
3008
3006
|
{
|
|
3009
3007
|
value: "1",
|
|
3010
3008
|
label: c.section.column1
|
|
@@ -3041,7 +3039,7 @@ var ia = { class: "tpl:mb-3.5" }, aa = ["value"], oa = ["value"], sa = {
|
|
|
3041
3039
|
value: "1-2-1",
|
|
3042
3040
|
label: c.section.ratio121
|
|
3043
3041
|
}
|
|
3044
|
-
]), O = m(() =>
|
|
3042
|
+
]), O = m(() => je(n.block)), k = m(() => n.block.columnWidths !== void 0 && K(n.block) === null), j = m(() => k.value ? "custom" : n.block.columns);
|
|
3045
3043
|
function N(e) {
|
|
3046
3044
|
let t = e.target.value;
|
|
3047
3045
|
if (t === "custom") return;
|
|
@@ -3063,8 +3061,8 @@ var ia = { class: "tpl:mb-3.5" }, aa = ["value"], oa = ["value"], sa = {
|
|
|
3063
3061
|
return;
|
|
3064
3062
|
}
|
|
3065
3063
|
let c = s.slice(), l = e === c.length - 1 ? e - 1 : e + 1, u = c[e] + c[l], d = Math.max(.01, F(Math.min(5, u / 2))), f = Math.min(Math.max(o, d), u - d);
|
|
3066
|
-
c[e] =
|
|
3067
|
-
let p =
|
|
3064
|
+
c[e] = G(f), c[l] = G(u - c[e]);
|
|
3065
|
+
let p = Oe[n.block.columns], m = p !== void 0 && p.every((e, t) => e === c[t]);
|
|
3068
3066
|
i("update", { columnWidths: m ? void 0 : c });
|
|
3069
3067
|
}
|
|
3070
3068
|
function ee(e) {
|
|
@@ -3093,7 +3091,7 @@ var ia = { class: "tpl:mb-3.5" }, aa = ["value"], oa = ["value"], sa = {
|
|
|
3093
3091
|
function re(e) {
|
|
3094
3092
|
H({ padding: e });
|
|
3095
3093
|
}
|
|
3096
|
-
function
|
|
3094
|
+
function ie(e) {
|
|
3097
3095
|
H({ borderRadius: e });
|
|
3098
3096
|
}
|
|
3099
3097
|
return (t, n) => (a(), v(S, null, [
|
|
@@ -3240,7 +3238,7 @@ var ia = { class: "tpl:mb-3.5" }, aa = ["value"], oa = ["value"], sa = {
|
|
|
3240
3238
|
label: h(c).section.borderRadius,
|
|
3241
3239
|
max: 50,
|
|
3242
3240
|
"testid-prefix": "section-wrapper",
|
|
3243
|
-
"onUpdate:modelValue":
|
|
3241
|
+
"onUpdate:modelValue": ie
|
|
3244
3242
|
}, null, 8, ["model-value", "label"])
|
|
3245
3243
|
])) : g("", !0)
|
|
3246
3244
|
])) : g("", !0)
|
|
@@ -3251,7 +3249,7 @@ var ia = { class: "tpl:mb-3.5" }, aa = ["value"], oa = ["value"], sa = {
|
|
|
3251
3249
|
props: { icon: {} },
|
|
3252
3250
|
emits: ["update"],
|
|
3253
3251
|
setup(e, { emit: t }) {
|
|
3254
|
-
let n = e, i = t, { t: o } = W(), { syntax: s } = bt(), c = _(), l = m(() => typeof n.icon.imageUrl == "string" ? n.icon.imageUrl : ""), d = m(() =>
|
|
3252
|
+
let n = e, i = t, { t: o } = W(), { syntax: s } = bt(), c = _(), l = m(() => typeof n.icon.imageUrl == "string" ? n.icon.imageUrl : ""), d = m(() => q(l.value, s));
|
|
3255
3253
|
function f(e) {
|
|
3256
3254
|
return n.icon.id.includes(".") ? void 0 : `icons.${n.icon.id}.${e}`;
|
|
3257
3255
|
}
|
|
@@ -3274,7 +3272,7 @@ var ia = { class: "tpl:mb-3.5" }, aa = ["value"], oa = ["value"], sa = {
|
|
|
3274
3272
|
};
|
|
3275
3273
|
e.alt && (t.alt = e.alt), i("update", t);
|
|
3276
3274
|
}
|
|
3277
|
-
let { canBrowse: E, isUploading: D, showOverlay: O, openMediaBrowser: k } =
|
|
3275
|
+
let { canBrowse: E, isUploading: D, showOverlay: O, openMediaBrowser: k } = Ze({
|
|
3278
3276
|
target: c,
|
|
3279
3277
|
value: l,
|
|
3280
3278
|
blocked: d,
|
|
@@ -3289,7 +3287,7 @@ var ia = { class: "tpl:mb-3.5" }, aa = ["value"], oa = ["value"], sa = {
|
|
|
3289
3287
|
ref: c,
|
|
3290
3288
|
class: "tpl:relative"
|
|
3291
3289
|
}, [
|
|
3292
|
-
h(O) ? (a(), w(
|
|
3290
|
+
h(O) ? (a(), w(He, {
|
|
3293
3291
|
key: 0,
|
|
3294
3292
|
uploading: h(D)
|
|
3295
3293
|
}, null, 8, ["uploading"])) : g("", !0),
|
|
@@ -3308,7 +3306,7 @@ var ia = { class: "tpl:mb-3.5" }, aa = ["value"], oa = ["value"], sa = {
|
|
|
3308
3306
|
"background-color": "var(--tpl-bg)"
|
|
3309
3307
|
},
|
|
3310
3308
|
onClick: n[0] ||= (...e) => h(k) && h(k)(...e)
|
|
3311
|
-
}, [p(h(
|
|
3309
|
+
}, [p(h(at), {
|
|
3312
3310
|
size: 14,
|
|
3313
3311
|
"stroke-width": 1.5
|
|
3314
3312
|
}), y(" " + r(h(o).image.browseMedia), 1)])) : g("", !0)
|
|
@@ -3341,7 +3339,7 @@ var ia = { class: "tpl:mb-3.5" }, aa = ["value"], oa = ["value"], sa = {
|
|
|
3341
3339
|
}
|
|
3342
3340
|
function d() {
|
|
3343
3341
|
let e = {
|
|
3344
|
-
id:
|
|
3342
|
+
id: Z(),
|
|
3345
3343
|
platform: "facebook",
|
|
3346
3344
|
url: ""
|
|
3347
3345
|
};
|
|
@@ -3388,7 +3386,7 @@ var ia = { class: "tpl:mb-3.5" }, aa = ["value"], oa = ["value"], sa = {
|
|
|
3388
3386
|
class: o([h(B), "tpl:flex-1"]),
|
|
3389
3387
|
value: e.platform,
|
|
3390
3388
|
onChange: (t) => x(e, t.target.value)
|
|
3391
|
-
}, [(a(!0), v(S, null, s(h(
|
|
3389
|
+
}, [(a(!0), v(S, null, s(h(Ye), (e) => (a(), v("option", {
|
|
3392
3390
|
key: e,
|
|
3393
3391
|
value: e
|
|
3394
3392
|
}, r(h(c).social.platforms[e]), 9, ya))), 128)), b("option", ba, r(h(c).social.platforms.custom), 1)], 42, va)]),
|
|
@@ -3579,9 +3577,9 @@ var ia = { class: "tpl:mb-3.5" }, aa = ["value"], oa = ["value"], sa = {
|
|
|
3579
3577
|
}
|
|
3580
3578
|
function f() {
|
|
3581
3579
|
let e = n.block.rows.length > 0 ? n.block.rows[0].cells.length : 3, t = {
|
|
3582
|
-
id:
|
|
3580
|
+
id: Z(),
|
|
3583
3581
|
cells: Array.from({ length: e }, () => ({
|
|
3584
|
-
id:
|
|
3582
|
+
id: Z(),
|
|
3585
3583
|
content: ""
|
|
3586
3584
|
}))
|
|
3587
3585
|
};
|
|
@@ -3594,7 +3592,7 @@ var ia = { class: "tpl:mb-3.5" }, aa = ["value"], oa = ["value"], sa = {
|
|
|
3594
3592
|
let e = n.block.rows.map((e) => ({
|
|
3595
3593
|
...e,
|
|
3596
3594
|
cells: [...e.cells, {
|
|
3597
|
-
id:
|
|
3595
|
+
id: Z(),
|
|
3598
3596
|
content: ""
|
|
3599
3597
|
}]
|
|
3600
3598
|
}));
|
|
@@ -3613,7 +3611,7 @@ var ia = { class: "tpl:mb-3.5" }, aa = ["value"], oa = ["value"], sa = {
|
|
|
3613
3611
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:hover:text-[var(--tpl-primary)] tpl:disabled:opacity-30",
|
|
3614
3612
|
disabled: e.block.rows.length <= 1,
|
|
3615
3613
|
onClick: n[0] ||= (t) => _(e.block.rows[e.block.rows.length - 1].id)
|
|
3616
|
-
}, [p(h(
|
|
3614
|
+
}, [p(h(nt), {
|
|
3617
3615
|
size: 12,
|
|
3618
3616
|
"stroke-width": 2
|
|
3619
3617
|
})], 8, Ka),
|
|
@@ -3630,7 +3628,7 @@ var ia = { class: "tpl:mb-3.5" }, aa = ["value"], oa = ["value"], sa = {
|
|
|
3630
3628
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:px-1.5 tpl:py-1 tpl:text-[var(--tpl-text-muted)] tpl:transition-colors tpl:hover:text-[var(--tpl-primary)] tpl:disabled:opacity-30",
|
|
3631
3629
|
disabled: l.value <= 1,
|
|
3632
3630
|
onClick: n[1] ||= (e) => x(l.value - 1)
|
|
3633
|
-
}, [p(h(
|
|
3631
|
+
}, [p(h(nt), {
|
|
3634
3632
|
size: 12,
|
|
3635
3633
|
"stroke-width": 2
|
|
3636
3634
|
})], 8, Za),
|
|
@@ -3728,7 +3726,7 @@ var ia = { class: "tpl:mb-3.5" }, aa = ["value"], oa = ["value"], sa = {
|
|
|
3728
3726
|
}, {
|
|
3729
3727
|
default: u(() => [b("select", {
|
|
3730
3728
|
class: o(h(B)),
|
|
3731
|
-
value: h(
|
|
3729
|
+
value: h(et)(e.block.fontFamily),
|
|
3732
3730
|
onChange: n[7] ||= (e) => d("fontFamily", e.target.value || void 0)
|
|
3733
3731
|
}, [b("option", io, r(h(c).title.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
|
|
3734
3732
|
key: e.value,
|
|
@@ -3829,7 +3827,7 @@ var ia = { class: "tpl:mb-3.5" }, aa = ["value"], oa = ["value"], sa = {
|
|
|
3829
3827
|
}, {
|
|
3830
3828
|
default: u(() => [b("select", {
|
|
3831
3829
|
class: o(h(B)),
|
|
3832
|
-
value: h(
|
|
3830
|
+
value: h(et)(e.block.fontFamily),
|
|
3833
3831
|
onChange: n[1] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
3834
3832
|
}, [b("option", go, r(h(i).title.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
|
|
3835
3833
|
key: e.value,
|
|
@@ -3893,11 +3891,11 @@ var ia = { class: "tpl:mb-3.5" }, aa = ["value"], oa = ["value"], sa = {
|
|
|
3893
3891
|
props: { block: {} },
|
|
3894
3892
|
emits: ["update"],
|
|
3895
3893
|
setup(e, { emit: t }) {
|
|
3896
|
-
let n = e, i = t, { t: s } = W(), c = E(
|
|
3894
|
+
let n = e, i = t, { t: s } = W(), c = E(ce, null), l = E(_e, Ne.liquid), d = Ve(), f = [
|
|
3897
3895
|
300,
|
|
3898
3896
|
400,
|
|
3899
3897
|
500
|
|
3900
|
-
], x = m(() => !!c), C = m(() =>
|
|
3898
|
+
], x = m(() => !!c), C = m(() => q(n.block.url, l)), T = m(() => {
|
|
3901
3899
|
let e = n.block.width;
|
|
3902
3900
|
return e === "full" ? "full" : f.includes(e) ? String(e) : "custom";
|
|
3903
3901
|
}), D = m(() => typeof n.block.height == "number" ? "custom" : "auto"), O = _(!1), { start: k } = ht(() => {
|
|
@@ -3999,7 +3997,7 @@ var ia = { class: "tpl:mb-3.5" }, aa = ["value"], oa = ["value"], sa = {
|
|
|
3999
3997
|
"background-color": "var(--tpl-bg)"
|
|
4000
3998
|
},
|
|
4001
3999
|
onClick: R
|
|
4002
|
-
}, [p(h(
|
|
4000
|
+
}, [p(h(at), {
|
|
4003
4001
|
size: 14,
|
|
4004
4002
|
"stroke-width": 1.5
|
|
4005
4003
|
}), y(" " + r(h(s).image.browseMedia), 1)])) : g("", !0)]),
|
|
@@ -4100,9 +4098,9 @@ var ia = { class: "tpl:mb-3.5" }, aa = ["value"], oa = ["value"], sa = {
|
|
|
4100
4098
|
"duplicate"
|
|
4101
4099
|
],
|
|
4102
4100
|
setup(e, { emit: t }) {
|
|
4103
|
-
let n = T(() => import("./CountdownToolbar-
|
|
4101
|
+
let n = T(() => import("./CountdownToolbar-CJbPEVV5.js")), o = e, s = t, { t: c } = W(), l = dt(), u = me(ge, "Toolbar"), d = E(U, []), f = m(() => o.block.type), _ = m(() => Y(o.block)), y = m(() => {
|
|
4104
4102
|
if (_.value) return d.find((e) => e.type === o.block.customType);
|
|
4105
|
-
}), x = m(() => _.value ? y.value?.name ?? o.block.customType :
|
|
4103
|
+
}), x = m(() => _.value ? y.value?.name ?? o.block.customType : Be(f.value, c)), S = m(() => $e(u.fonts.value, "fontFamily" in o.block ? o.block.fontFamily : void 0));
|
|
4106
4104
|
function C(e) {
|
|
4107
4105
|
l.value && s("update", e);
|
|
4108
4106
|
}
|
|
@@ -4114,11 +4112,11 @@ var ia = { class: "tpl:mb-3.5" }, aa = ["value"], oa = ["value"], sa = {
|
|
|
4114
4112
|
disabled: !h(l),
|
|
4115
4113
|
inert: !h(l),
|
|
4116
4114
|
class: "tpl:contents"
|
|
4117
|
-
}, [b("div", Lo, [b("div", Ro, [h(
|
|
4115
|
+
}, [b("div", Lo, [b("div", Ro, [h(rt)[f.value] ? (a(), w(i(h(rt)[f.value]), {
|
|
4118
4116
|
key: 0,
|
|
4119
4117
|
size: 16,
|
|
4120
4118
|
"stroke-width": 1.5
|
|
4121
|
-
})) : _.value ? (a(), w(h(
|
|
4119
|
+
})) : _.value ? (a(), w(h(Fe), {
|
|
4122
4120
|
key: 1,
|
|
4123
4121
|
size: 16,
|
|
4124
4122
|
"stroke-width": 1.5
|
|
@@ -4204,5 +4202,5 @@ var ia = { class: "tpl:mb-3.5" }, aa = ["value"], oa = ["value"], sa = {
|
|
|
4204
4202
|
onUpdate: C
|
|
4205
4203
|
}, null, 8, ["block", "is-first-section"])])], 8, Io)], 8, Fo));
|
|
4206
4204
|
}
|
|
4207
|
-
}), Go = /* @__PURE__ */ e({ default: () => Ko }), Ko = /*#__PURE__*/
|
|
4205
|
+
}), Go = /* @__PURE__ */ e({ default: () => Ko }), Ko = /*#__PURE__*/ it(Wo, [["__scopeId", "data-v-206f038f"]]);
|
|
4208
4206
|
export { Ko as default, kt as n, $ as r, Go as t };
|