@templatical/editor 0.61.0 → 0.62.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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-BG3-appN.js} +3 -4
- package/dist/{BlockIssueBadge-Bug5iqcK.js → BlockIssueBadge-D3OmWkCh.js} +2 -3
- package/dist/{BlockPreviewCanvas-knSyWaCP.js → BlockPreviewCanvas-oxkPHm78.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-8yH1Ypum.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-B2BpfcoY.js} +78 -79
- package/dist/{RestoreVersionDialog-DvZoTJVa.js → RestoreVersionDialog-BF9Wyma8.js} +2 -2
- package/dist/{RichTextEditorContent-B1p7Ykq8.js → RichTextEditorContent-BNMBOkdy.js} +5 -6
- package/dist/{SaveBlockDialog-DHfT-Tpx.js → SaveBlockDialog-BZQkihki.js} +23 -24
- package/dist/{SavedBlocksBrowserModal-BjJuuXQv.js → SavedBlocksBrowserModal-CQNnmeGv.js} +8 -9
- package/dist/{SavedBlocksPanels-D6eiMQZ3.js → SavedBlocksPanels-n-IdFD6E.js} +1 -1
- package/dist/{SavedBlocksPickBar-BkgCDSXe.js → SavedBlocksPickBar-BtQgXlKF.js} +2 -2
- package/dist/{TemplateSettings-DQAbNsiS.js → TemplateSettings-Z-i-_xF5.js} +19 -20
- package/dist/{TestEmailModal-m_AEa36T.js → TestEmailModal-IeP1EsJ5.js} +17 -18
- package/dist/{TestEmailPanel-OApkuaVd.js → TestEmailPanel-DVxTZJ4H.js} +1 -1
- package/dist/{TitleEditor-Cwdtfk15.js → TitleEditor-D1UDQaHM.js} +8 -9
- package/dist/{Toolbar-D_T55elL.js → Toolbar-bwAdFK4A.js} +308 -310
- package/dist/{TplModal-2MKm5y6r.js → TplModal-BvUeHkqB.js} +4 -4
- package/dist/{VersionHistoryMenu-B3-xJ7GO.js → VersionHistoryMenu-qoOkZKal.js} +6 -7
- package/dist/{VersionHistoryPanels-CCM0IQBg.js → VersionHistoryPanels-rkOqdUem.js} +1 -1
- package/dist/{VersionPreviewBanner-DLAB4ZbS.js → VersionPreviewBanner-DEN9rl6y.js} +1 -1
- package/dist/{WrapperBlock-BZl10HLy.js → WrapperBlock-CvEmjNKs.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-DoZh5Q74.js} +4 -5
- package/dist/cdn/chunks/{AiRewriteMenu-BSePiXe_.js.map → AiRewriteMenu-DoZh5Q74.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-BrxWnLLK.js} +8 -8
- package/dist/cdn/chunks/{BlockPreviewCanvas-B153A3hu.js.map → BlockPreviewCanvas-BrxWnLLK.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-CyWfHmkP.js} +6 -7
- package/dist/cdn/chunks/{LanguageMenu-B6kt8SgX.js.map → LanguageMenu-CyWfHmkP.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-DUbU-eqS.js} +135 -136
- package/dist/cdn/chunks/{ParagraphEditor-D0q36Myd.js.map → ParagraphEditor-DUbU-eqS.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-CJggFdbi.js → RestoreVersionDialog-hDWvu1Fk.js} +3 -3
- package/dist/cdn/chunks/{RestoreVersionDialog-CJggFdbi.js.map → RestoreVersionDialog-hDWvu1Fk.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-DVVG78vs.js} +25 -26
- package/dist/cdn/chunks/{SaveBlockDialog-BzES5tqd.js.map → SaveBlockDialog-DVVG78vs.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CLNcZcLd.js → SavedBlocksBrowserModal-CJjVM9pN.js} +9 -10
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CLNcZcLd.js.map → SavedBlocksBrowserModal-CJjVM9pN.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-R0W9LElD.js → SavedBlocksPanels-CUu9BLen.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-R0W9LElD.js.map → SavedBlocksPanels-CUu9BLen.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-JNi5Rx4V.js → SavedBlocksPickBar-ClGm41Wt.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPickBar-JNi5Rx4V.js.map → SavedBlocksPickBar-ClGm41Wt.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-BtrjByCC.js} +16 -17
- package/dist/cdn/chunks/{TestEmailModal-BxIAwjww.js.map → TestEmailModal-BtrjByCC.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-B8BsWXjE.js → TestEmailPanel-EjyQvj_M.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-B8BsWXjE.js.map → TestEmailPanel-EjyQvj_M.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-DhcI1aRS.js → TitleEditor-B0SHe63R.js} +17 -18
- package/dist/cdn/chunks/{TitleEditor-DhcI1aRS.js.map → TitleEditor-B0SHe63R.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-uqelrGih.js} +5 -5
- package/dist/cdn/chunks/{TplModal-CPOqOxVf.js.map → TplModal-uqelrGih.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-B1DN6c4B.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-CVrXHYxT.js.map → VersionHistoryPanels-B1DN6c4B.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-CUuF8Ese.js} +5 -5
- package/dist/cdn/chunks/{WrapperBlock-B8SJ7Q4w.js.map → WrapperBlock-CUuF8Ese.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-CuAVj7Ex.js} +444 -464
- package/dist/cdn/chunks/composables-CuAVj7Ex.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-CqhrbdGN.js} +35 -18
- package/dist/cdn/chunks/extensions-CqhrbdGN.js.map +1 -0
- 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-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/{src-Bk1LF1np.js → src-DxIDI6ZB.js} +4 -2
- package/dist/cdn/chunks/src-DxIDI6ZB.js.map +1 -0
- 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-DZWtVCMq.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-DfhOxy6Z.js} +341 -324
- 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/extensions-Bq9nXmBP.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,33 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
2
2
|
import { $ as t, B as n, C as r, F as i, G as a, H as o, K as s, L as c, O as l, Q as u, R as d, S as f, _ as p, b as m, ct as h, dt as g, g as _, h as v, it as y, m as b, mt as x, o as S, p as C, pt as w, s as T, tt as E, u as D, v as O, x as k } from "./draggable-IRVFEZ-b.js";
|
|
3
|
-
import { n as A, t as j } from "./MergeTagTextarea-
|
|
4
|
-
import { c as M } from "./LogicTagInsertButton-
|
|
5
|
-
import { t as N } from "./MergeTagInput-
|
|
3
|
+
import { n as A, t as j } from "./MergeTagTextarea-B_IFeWfZ.js";
|
|
4
|
+
import { c as M } from "./LogicTagInsertButton-CumMM1rP.js";
|
|
5
|
+
import { t as N } from "./MergeTagInput-Dm_QiG96.js";
|
|
6
6
|
import { t as P } from "./ToggleSwitch-C0w0srN_.js";
|
|
7
7
|
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";
|
|
8
|
-
import { $ as re, At as ie, Bt as ae, Ft as oe, H as U, Mt as se, O as ce, R as le, _ as ue, _t as de, c as fe, et as
|
|
9
|
-
import { t as
|
|
10
|
-
import { Bt as
|
|
11
|
-
import { n as
|
|
12
|
-
import { $ as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { t as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { t as St } from "./useMergeTag-Dwy3U0PI.js";
|
|
21
|
-
import { t as Ct } from "./blockTypeIcons-ZKw-Eiu0.js";
|
|
8
|
+
import { $ as re, At as ie, Bt as ae, Ft as oe, H as U, Mt as se, O as ce, R as le, _ as ue, _t as de, c as fe, et as W, f as G, gt as pe, h as K, it as q, lt as J, rt as Y, t as X, v as me } from "./icons-DdVB-5WO.js";
|
|
9
|
+
import { D as he, Q as ge, S as _e, U as ve, V as ye, _ as be, f as xe, g as Se, i as Ce, lt as we, m as Te, t as Z, w as Ee, y as De, z as Oe } from "./useI18n-DwP1ksBW.js";
|
|
10
|
+
import { Bt as ke, Cn as Ae, Dn as je, H as Me, Ht as Ne, I as Pe, Jt as Fe, Mn as Ie, Nn as Le, Sn as Re, Ut as ze, Vt as Be, W as Ve, Wt as He, Yt as Ue, bn as We, g as Ge, kn as Ke, qt as qe, tn as Je, wn as Ye, xn as Xe, yt as Ze } from "./src-A0kzK-pR.js";
|
|
11
|
+
import { n as Qe } from "./useLocalizedDisplay-Brdkp3KH.js";
|
|
12
|
+
import { E as $e, I as et, T as tt, _ as nt, b as rt, d as it, f as at, g as ot, h as st, i as ct, l as lt, m as ut, p as dt, r as ft, s as pt, u as mt, v as ht } from "./socialIcons-CXQfKLUV.js";
|
|
13
|
+
import { n as gt, t as _t } from "./withCurrentFont-C4pIesdB.js";
|
|
14
|
+
import { t as vt } from "./useLanguageName-CeuoO9WZ.js";
|
|
15
|
+
import { t as yt } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
16
|
+
import { c as bt, r as xt } from "./usePopoverPosition-Cg8LR0W4.js";
|
|
17
|
+
import { _ as St } from "./dist-BtWMy7UQ.js";
|
|
18
|
+
import { t as Ct } from "./useMergeTag-QM-tkBc6.js";
|
|
19
|
+
import { t as wt } from "./blockTypeIcons-ZKw-Eiu0.js";
|
|
22
20
|
// src/components/SlidingPillSelect.vue?vue&type=script&setup=true&lang.ts
|
|
23
|
-
var
|
|
21
|
+
var Tt = [
|
|
24
22
|
"aria-checked",
|
|
25
23
|
"aria-label",
|
|
26
24
|
"disabled",
|
|
27
25
|
"aria-disabled",
|
|
28
26
|
"title",
|
|
29
27
|
"onClick"
|
|
30
|
-
],
|
|
28
|
+
], Et = { key: 1 }, Q = /* @__PURE__ */ r({
|
|
31
29
|
__name: "SlidingPillSelect",
|
|
32
30
|
props: {
|
|
33
31
|
options: {},
|
|
@@ -72,14 +70,14 @@ var wt = [
|
|
|
72
70
|
key: 0,
|
|
73
71
|
size: 14,
|
|
74
72
|
"stroke-width": 2
|
|
75
|
-
})) : (i(), p("span",
|
|
73
|
+
})) : (i(), p("span", Et, x(t.label), 1))], 12, Tt))), 128))], 4));
|
|
76
74
|
}
|
|
77
|
-
}),
|
|
75
|
+
}), Dt = { class: "tpl:flex tpl:items-stretch" }, Ot = [
|
|
78
76
|
"data-testid",
|
|
79
77
|
"value",
|
|
80
78
|
"min",
|
|
81
79
|
"max"
|
|
82
|
-
],
|
|
80
|
+
], kt = /* @__PURE__ */ r({
|
|
83
81
|
__name: "NumberWithSuffix",
|
|
84
82
|
props: {
|
|
85
83
|
modelValue: {},
|
|
@@ -95,7 +93,7 @@ var wt = [
|
|
|
95
93
|
let t = e.target;
|
|
96
94
|
t.validity?.badInput || n("update:modelValue", Number(t.value));
|
|
97
95
|
}
|
|
98
|
-
return (t, n) => (i(), p("div",
|
|
96
|
+
return (t, n) => (i(), p("div", Dt, [b("input", {
|
|
99
97
|
type: "number",
|
|
100
98
|
"data-testid": e.testid,
|
|
101
99
|
class: g(h(z)),
|
|
@@ -103,14 +101,14 @@ var wt = [
|
|
|
103
101
|
min: e.min,
|
|
104
102
|
max: e.max,
|
|
105
103
|
onInput: r
|
|
106
|
-
}, null, 42,
|
|
104
|
+
}, null, 42, Ot), b("span", { class: g(h(L)) }, x(e.suffix), 3)]));
|
|
107
105
|
}
|
|
108
|
-
}),
|
|
106
|
+
}), At = [
|
|
109
107
|
"aria-pressed",
|
|
110
108
|
"aria-label",
|
|
111
109
|
"title",
|
|
112
110
|
"data-testid"
|
|
113
|
-
],
|
|
111
|
+
], jt = /* @__PURE__ */ r({
|
|
114
112
|
__name: "LinkToggle",
|
|
115
113
|
props: {
|
|
116
114
|
linked: { type: Boolean },
|
|
@@ -129,7 +127,7 @@ var wt = [
|
|
|
129
127
|
title: e.linked ? e.unlinkLabel : e.linkLabel,
|
|
130
128
|
"data-testid": e.testid,
|
|
131
129
|
onClick: r[0] ||= (e) => n("toggle")
|
|
132
|
-
}, [e.linked ? (i(), v(h(
|
|
130
|
+
}, [e.linked ? (i(), v(h(J), {
|
|
133
131
|
key: 0,
|
|
134
132
|
size: 14,
|
|
135
133
|
"stroke-width": 2
|
|
@@ -137,12 +135,12 @@ var wt = [
|
|
|
137
135
|
key: 1,
|
|
138
136
|
size: 14,
|
|
139
137
|
"stroke-width": 2
|
|
140
|
-
}))], 10,
|
|
138
|
+
}))], 10, At));
|
|
141
139
|
}
|
|
142
|
-
}),
|
|
140
|
+
}), Mt = {
|
|
143
141
|
key: 0,
|
|
144
142
|
class: "tpl:mb-3.5"
|
|
145
|
-
},
|
|
143
|
+
}, Nt = { class: "tpl:mb-3.5" }, Pt = { class: "tpl:mb-3.5" }, Ft = /* @__PURE__ */ r({
|
|
146
144
|
__name: "BorderControl",
|
|
147
145
|
props: {
|
|
148
146
|
path: {},
|
|
@@ -151,7 +149,7 @@ var wt = [
|
|
|
151
149
|
},
|
|
152
150
|
emits: ["update:modelValue"],
|
|
153
151
|
setup(e, { emit: t }) {
|
|
154
|
-
let n = e, r = t, { t: s } =
|
|
152
|
+
let n = e, r = t, { t: s } = Z(), c = {
|
|
155
153
|
width: 0,
|
|
156
154
|
style: "solid",
|
|
157
155
|
color: "#000000"
|
|
@@ -161,7 +159,7 @@ var wt = [
|
|
|
161
159
|
}
|
|
162
160
|
let u = C(() => {
|
|
163
161
|
let e = n.modelValue;
|
|
164
|
-
return !e ||
|
|
162
|
+
return !e || Ye.every((t) => l(e[t], e.top));
|
|
165
163
|
}), d = E(u.value);
|
|
166
164
|
o(u, (e) => {
|
|
167
165
|
!e && d.value && (d.value = !1);
|
|
@@ -169,13 +167,13 @@ var wt = [
|
|
|
169
167
|
let f = E("top"), m = C(() => n.modelValue?.[d.value ? "top" : f.value] ?? c), y = (e) => !!e && e.width > 0;
|
|
170
168
|
function S(e) {
|
|
171
169
|
if (d.value) {
|
|
172
|
-
r("update:modelValue", y(e) ?
|
|
170
|
+
r("update:modelValue", y(e) ? Le(e) : void 0);
|
|
173
171
|
return;
|
|
174
172
|
}
|
|
175
173
|
let t = {
|
|
176
|
-
...n.modelValue ??
|
|
174
|
+
...n.modelValue ?? Le(c),
|
|
177
175
|
[f.value]: e
|
|
178
|
-
}, i =
|
|
176
|
+
}, i = Ye.some((e) => y(t[e]));
|
|
179
177
|
r("update:modelValue", i ? t : void 0);
|
|
180
178
|
}
|
|
181
179
|
function w(e) {
|
|
@@ -198,10 +196,10 @@ var wt = [
|
|
|
198
196
|
d.value = !0;
|
|
199
197
|
let e = n.modelValue;
|
|
200
198
|
if (!e) return;
|
|
201
|
-
let t = y(e[f.value]) ? e[f.value] :
|
|
202
|
-
r("update:modelValue", t ?
|
|
199
|
+
let t = y(e[f.value]) ? e[f.value] : Ye.map((t) => e[t]).find(y);
|
|
200
|
+
r("update:modelValue", t ? Le(t) : void 0);
|
|
203
201
|
}
|
|
204
|
-
let j = C(() =>
|
|
202
|
+
let j = C(() => Ye.map((e) => ({
|
|
205
203
|
value: e,
|
|
206
204
|
label: s.spacingControl[e]
|
|
207
205
|
})));
|
|
@@ -209,7 +207,7 @@ var wt = [
|
|
|
209
207
|
path: e.path,
|
|
210
208
|
label: h(s).blockSettings.border
|
|
211
209
|
}, {
|
|
212
|
-
"label-actions": a(() => [k(
|
|
210
|
+
"label-actions": a(() => [k(jt, {
|
|
213
211
|
linked: d.value,
|
|
214
212
|
"link-label": h(s).blockSettings.linkSides,
|
|
215
213
|
"unlink-label": h(s).blockSettings.unlinkSides,
|
|
@@ -222,19 +220,19 @@ var wt = [
|
|
|
222
220
|
"testid"
|
|
223
221
|
])]),
|
|
224
222
|
default: a(() => [
|
|
225
|
-
d.value ? _("", !0) : (i(), p("div",
|
|
223
|
+
d.value ? _("", !0) : (i(), p("div", Mt, [b("label", { class: g(h(V)) }, x(h(s).blockSettings.borderSide), 3), k(Q, {
|
|
226
224
|
options: j.value,
|
|
227
225
|
"model-value": f.value,
|
|
228
226
|
"onUpdate:modelValue": n[0] ||= (e) => f.value = e
|
|
229
227
|
}, null, 8, ["options", "model-value"])])),
|
|
230
|
-
b("div",
|
|
228
|
+
b("div", Nt, [b("label", { class: g(h(V)) }, x(h(s).blockSettings.borderWidth), 3), k(kt, {
|
|
231
229
|
"model-value": m.value.width,
|
|
232
230
|
min: 0,
|
|
233
231
|
suffix: "px",
|
|
234
232
|
testid: `${e.testidPrefix}-border-width-input`,
|
|
235
233
|
"onUpdate:modelValue": w
|
|
236
234
|
}, null, 8, ["model-value", "testid"])]),
|
|
237
|
-
m.value.width > 0 ? (i(), p(D, { key: 1 }, [b("div",
|
|
235
|
+
m.value.width > 0 ? (i(), p(D, { key: 1 }, [b("div", Pt, [b("label", { class: g(h(V)) }, x(h(s).blockSettings.borderStyle), 3), k(Q, {
|
|
238
236
|
options: [
|
|
239
237
|
{
|
|
240
238
|
value: "solid",
|
|
@@ -259,10 +257,10 @@ var wt = [
|
|
|
259
257
|
_: 1
|
|
260
258
|
}, 8, ["path", "label"]));
|
|
261
259
|
}
|
|
262
|
-
}),
|
|
260
|
+
}), It = {
|
|
263
261
|
key: 1,
|
|
264
262
|
class: "tpl:grid tpl:grid-cols-2 tpl:gap-2"
|
|
265
|
-
},
|
|
263
|
+
}, Lt = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Rt = /* @__PURE__ */ r({
|
|
266
264
|
__name: "RadiusControl",
|
|
267
265
|
props: {
|
|
268
266
|
path: {},
|
|
@@ -273,7 +271,7 @@ var wt = [
|
|
|
273
271
|
},
|
|
274
272
|
emits: ["update:modelValue"],
|
|
275
273
|
setup(e, { emit: t }) {
|
|
276
|
-
let n = e, r = t, { t: s } =
|
|
274
|
+
let n = e, r = t, { t: s } = Z(), l = {
|
|
277
275
|
topLeft: "cornerTopLeft",
|
|
278
276
|
topRight: "cornerTopRight",
|
|
279
277
|
bottomRight: "cornerBottomRight",
|
|
@@ -291,7 +289,7 @@ var wt = [
|
|
|
291
289
|
bottomRight: e,
|
|
292
290
|
bottomLeft: e
|
|
293
291
|
} : e;
|
|
294
|
-
}), f = C(() =>
|
|
292
|
+
}), f = C(() => Ae.every((e) => d.value[e] === d.value.topLeft)), m = E(f.value);
|
|
295
293
|
o(f, (e) => {
|
|
296
294
|
!e && m.value && (m.value = !1);
|
|
297
295
|
});
|
|
@@ -314,7 +312,7 @@ var wt = [
|
|
|
314
312
|
path: e.path,
|
|
315
313
|
label: e.label
|
|
316
314
|
}, {
|
|
317
|
-
"label-actions": a(() => [k(
|
|
315
|
+
"label-actions": a(() => [k(jt, {
|
|
318
316
|
linked: m.value,
|
|
319
317
|
"link-label": h(s).blockSettings.linkCorners,
|
|
320
318
|
"unlink-label": h(s).blockSettings.unlinkCorners,
|
|
@@ -326,7 +324,7 @@ var wt = [
|
|
|
326
324
|
"unlink-label",
|
|
327
325
|
"testid"
|
|
328
326
|
])]),
|
|
329
|
-
default: a(() => [m.value ? (i(), v(
|
|
327
|
+
default: a(() => [m.value ? (i(), v(kt, {
|
|
330
328
|
key: 0,
|
|
331
329
|
"model-value": d.value.topLeft,
|
|
332
330
|
min: 0,
|
|
@@ -338,7 +336,7 @@ var wt = [
|
|
|
338
336
|
"model-value",
|
|
339
337
|
"max",
|
|
340
338
|
"testid"
|
|
341
|
-
])) : (i(), p("div",
|
|
339
|
+
])) : (i(), p("div", It, [(i(), p(D, null, c(u, (t) => b("div", { key: t }, [b("label", Lt, x(h(s).blockSettings[l[t]]), 1), k(kt, {
|
|
342
340
|
"model-value": d.value[t],
|
|
343
341
|
min: 0,
|
|
344
342
|
max: e.max,
|
|
@@ -354,14 +352,14 @@ var wt = [
|
|
|
354
352
|
_: 1
|
|
355
353
|
}, 8, ["path", "label"]));
|
|
356
354
|
}
|
|
357
|
-
}),
|
|
355
|
+
}), zt = ["value"], Bt = { value: "" }, Vt = ["value"], Ht = { class: "tpl:flex tpl:items-stretch" }, Ut = ["value"], Wt = ["value"], Gt = ["value"], Kt = ["value"], qt = { value: "auto" }, Jt = { value: "full" }, Yt = { value: "custom" }, Xt = {
|
|
358
356
|
key: 0,
|
|
359
357
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch tpl:gap-2"
|
|
360
|
-
},
|
|
358
|
+
}, Zt = [
|
|
361
359
|
"value",
|
|
362
360
|
"min",
|
|
363
361
|
"max"
|
|
364
|
-
],
|
|
362
|
+
], Qt = 200, $t = /* @__PURE__ */ r({
|
|
365
363
|
__name: "ButtonToolbar",
|
|
366
364
|
props: {
|
|
367
365
|
block: {},
|
|
@@ -369,14 +367,14 @@ var wt = [
|
|
|
369
367
|
},
|
|
370
368
|
emits: ["update"],
|
|
371
369
|
setup(e, { emit: t }) {
|
|
372
|
-
let n = e, r = t, { t: o } =
|
|
370
|
+
let n = e, r = t, { t: o } = Z(), s = l(be, null), u = s ? Qe(s) : null, d = l(Ee, null), f = C(() => n.block.width === "full" ? "full" : typeof n.block.width == "number" || Xe(n.block.width) !== null ? "custom" : "auto"), m = C(() => Xe(n.block.width) === null ? "px" : "%"), y = C(() => typeof n.block.width == "number" ? n.block.width : String(n.block.width).slice(0, -1)), S = C(() => u ? ct(u.content.value, n.block.id, d ?? void 0) : null);
|
|
373
371
|
function w(e, t) {
|
|
374
372
|
r("update", { [e]: t });
|
|
375
373
|
}
|
|
376
374
|
function T(e) {
|
|
377
|
-
e === "full" ? w("width", "full") : e === "custom" ? w("width", typeof n.block.width == "number" ? n.block.width :
|
|
375
|
+
e === "full" ? w("width", "full") : e === "custom" ? w("width", typeof n.block.width == "number" ? n.block.width : Qt) : w("width", void 0);
|
|
378
376
|
}
|
|
379
|
-
let E = C(() => String(
|
|
377
|
+
let E = C(() => String(Ke(n.block))), O = C(() => {
|
|
380
378
|
let e = E.value;
|
|
381
379
|
return ne.includes(e) ? ne : [...ne, e];
|
|
382
380
|
});
|
|
@@ -406,8 +404,8 @@ var wt = [
|
|
|
406
404
|
w("width", `${Math.min(100, Math.max(1, Math.round(e / r * 100)))}%`);
|
|
407
405
|
return;
|
|
408
406
|
}
|
|
409
|
-
let i =
|
|
410
|
-
r === null ? w("width",
|
|
407
|
+
let i = Xe(t);
|
|
408
|
+
r === null ? w("width", Qt) : w("width", Math.max(1, Math.round(r * i / 100)));
|
|
411
409
|
}
|
|
412
410
|
return (t, n) => (i(), p(D, null, [
|
|
413
411
|
k(A, {
|
|
@@ -417,12 +415,12 @@ var wt = [
|
|
|
417
415
|
}, {
|
|
418
416
|
default: a(() => [b("select", {
|
|
419
417
|
class: g(h(B)),
|
|
420
|
-
value: h(
|
|
418
|
+
value: h(_t)(e.block.fontFamily),
|
|
421
419
|
onChange: n[0] ||= (e) => w("fontFamily", e.target.value || void 0)
|
|
422
|
-
}, [b("option",
|
|
420
|
+
}, [b("option", Bt, x(h(o).button.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
423
421
|
key: e.value,
|
|
424
422
|
value: e.value
|
|
425
|
-
}, x(e.label), 9,
|
|
423
|
+
}, x(e.label), 9, Vt))), 128))], 42, zt)]),
|
|
426
424
|
_: 1
|
|
427
425
|
}, 8, ["label"]),
|
|
428
426
|
k(A, {
|
|
@@ -491,13 +489,13 @@ var wt = [
|
|
|
491
489
|
}, null, 8, ["model-value"])]),
|
|
492
490
|
_: 1
|
|
493
491
|
}, 8, ["label"]),
|
|
494
|
-
k(
|
|
492
|
+
k(Ft, {
|
|
495
493
|
path: "border",
|
|
496
494
|
"model-value": e.block.border,
|
|
497
495
|
"testid-prefix": "button",
|
|
498
496
|
"onUpdate:modelValue": n[6] ||= (e) => w("border", e)
|
|
499
497
|
}, null, 8, ["model-value"]),
|
|
500
|
-
k(
|
|
498
|
+
k(Rt, {
|
|
501
499
|
path: "borderRadius",
|
|
502
500
|
"model-value": e.block.borderRadius,
|
|
503
501
|
label: h(o).button.borderRadius,
|
|
@@ -510,14 +508,14 @@ var wt = [
|
|
|
510
508
|
class: "tpl:mb-3.5",
|
|
511
509
|
path: "fontSize"
|
|
512
510
|
}, {
|
|
513
|
-
default: a(() => [b("div",
|
|
511
|
+
default: a(() => [b("div", Ht, [b("input", {
|
|
514
512
|
type: "number",
|
|
515
513
|
class: g(h(z)),
|
|
516
514
|
value: e.block.fontSize,
|
|
517
515
|
min: "10",
|
|
518
516
|
max: "36",
|
|
519
517
|
onInput: n[8] ||= (e) => w("fontSize", Number(e.target.value))
|
|
520
|
-
}, null, 42,
|
|
518
|
+
}, null, 42, Ut), b("span", { class: g(h(L)) }, "px", 2)])]),
|
|
521
519
|
_: 1
|
|
522
520
|
}, 8, ["label"]),
|
|
523
521
|
k(A, {
|
|
@@ -532,7 +530,7 @@ var wt = [
|
|
|
532
530
|
}, [(i(!0), p(D, null, c(O.value, (e) => (i(), p("option", {
|
|
533
531
|
key: e,
|
|
534
532
|
value: e
|
|
535
|
-
}, x(e), 9,
|
|
533
|
+
}, x(e), 9, Gt))), 128))], 42, Wt)]),
|
|
536
534
|
_: 1
|
|
537
535
|
}, 8, ["label"]),
|
|
538
536
|
k(A, {
|
|
@@ -540,7 +538,7 @@ var wt = [
|
|
|
540
538
|
class: "tpl:mb-3.5",
|
|
541
539
|
path: "fontWeight"
|
|
542
540
|
}, {
|
|
543
|
-
default: a(() => [k(
|
|
541
|
+
default: a(() => [k(Q, {
|
|
544
542
|
options: [
|
|
545
543
|
{
|
|
546
544
|
value: "regular",
|
|
@@ -570,17 +568,17 @@ var wt = [
|
|
|
570
568
|
value: f.value,
|
|
571
569
|
onChange: n[10] ||= (e) => T(e.target.value)
|
|
572
570
|
}, [
|
|
573
|
-
b("option",
|
|
574
|
-
b("option",
|
|
575
|
-
b("option",
|
|
576
|
-
], 42,
|
|
571
|
+
b("option", qt, x(h(o).button.widthAuto), 1),
|
|
572
|
+
b("option", Jt, x(h(o).button.fullWidth), 1),
|
|
573
|
+
b("option", Yt, x(h(o).button.widthCustom), 1)
|
|
574
|
+
], 42, Kt), f.value === "custom" ? (i(), p("div", Xt, [b("input", {
|
|
577
575
|
type: "number",
|
|
578
576
|
class: g([h(B), "tpl:min-w-0 tpl:flex-1"]),
|
|
579
577
|
value: y.value,
|
|
580
578
|
min: m.value === "%" ? 1 : 20,
|
|
581
579
|
max: m.value === "%" ? 100 : void 0,
|
|
582
580
|
onInput: n[11] ||= (e) => I(e.target.value)
|
|
583
|
-
}, null, 42,
|
|
581
|
+
}, null, 42, Zt), k(Q, {
|
|
584
582
|
class: "tpl:w-24 tpl:shrink-0",
|
|
585
583
|
"aria-label": h(o).button.widthUnit,
|
|
586
584
|
options: [{
|
|
@@ -600,7 +598,7 @@ var wt = [
|
|
|
600
598
|
class: "tpl:mb-3.5",
|
|
601
599
|
path: "align"
|
|
602
600
|
}, {
|
|
603
|
-
default: a(() => [k(
|
|
601
|
+
default: a(() => [k(Q, {
|
|
604
602
|
options: [
|
|
605
603
|
{
|
|
606
604
|
value: "left",
|
|
@@ -622,7 +620,7 @@ var wt = [
|
|
|
622
620
|
}, 8, ["label"])
|
|
623
621
|
], 64));
|
|
624
622
|
}
|
|
625
|
-
}),
|
|
623
|
+
}), 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"], $ = "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)]", bn = "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)]", xn = /*#__PURE__*/ yt(/* @__PURE__ */ r({
|
|
626
624
|
__name: "SpacingControl",
|
|
627
625
|
props: {
|
|
628
626
|
path: {},
|
|
@@ -631,7 +629,7 @@ var wt = [
|
|
|
631
629
|
},
|
|
632
630
|
emits: ["update:modelValue"],
|
|
633
631
|
setup(e, { emit: t }) {
|
|
634
|
-
let n = e, r = t, { t: s } =
|
|
632
|
+
let n = e, r = t, { t: s } = Z(), c = C(() => n.modelValue.top === n.modelValue.right && n.modelValue.right === n.modelValue.bottom && n.modelValue.bottom === n.modelValue.left), l = E(c.value);
|
|
635
633
|
o(c, (e) => {
|
|
636
634
|
!e && l.value && (l.value = !1);
|
|
637
635
|
});
|
|
@@ -675,16 +673,16 @@ var wt = [
|
|
|
675
673
|
path: e.path,
|
|
676
674
|
label: e.label
|
|
677
675
|
}, {
|
|
678
|
-
default: a(() => [b("div",
|
|
679
|
-
b("div",
|
|
676
|
+
default: a(() => [b("div", en, [
|
|
677
|
+
b("div", tn, [
|
|
680
678
|
b("button", {
|
|
681
679
|
"aria-label": h(s).spacingControl.decreaseTop,
|
|
682
|
-
class: g([
|
|
680
|
+
class: g([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
683
681
|
onClick: n[0] ||= (e) => u("top", -1)
|
|
684
|
-
}, [k(h(
|
|
682
|
+
}, [k(h(W), {
|
|
685
683
|
size: 12,
|
|
686
684
|
"stroke-width": 2
|
|
687
|
-
})], 10,
|
|
685
|
+
})], 10, nn),
|
|
688
686
|
b("input", {
|
|
689
687
|
type: "number",
|
|
690
688
|
class: g(bn),
|
|
@@ -692,26 +690,26 @@ var wt = [
|
|
|
692
690
|
"aria-label": h(s).spacingControl.top,
|
|
693
691
|
min: "0",
|
|
694
692
|
onInput: n[1] ||= (e) => d("top", Number(e.target.value))
|
|
695
|
-
}, null, 40,
|
|
693
|
+
}, null, 40, rn),
|
|
696
694
|
b("button", {
|
|
697
695
|
"aria-label": h(s).spacingControl.increaseTop,
|
|
698
|
-
class: g([
|
|
696
|
+
class: g([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
699
697
|
onClick: n[2] ||= (e) => u("top", 1)
|
|
700
698
|
}, [k(h(U), {
|
|
701
699
|
size: 12,
|
|
702
700
|
"stroke-width": 2
|
|
703
|
-
})], 10,
|
|
701
|
+
})], 10, an)
|
|
704
702
|
]),
|
|
705
|
-
b("div",
|
|
706
|
-
b("div",
|
|
703
|
+
b("div", on, [
|
|
704
|
+
b("div", sn, [
|
|
707
705
|
b("button", {
|
|
708
706
|
"aria-label": h(s).spacingControl.decreaseLeft,
|
|
709
|
-
class: g([
|
|
707
|
+
class: g([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
710
708
|
onClick: n[3] ||= (e) => u("left", -1)
|
|
711
|
-
}, [k(h(
|
|
709
|
+
}, [k(h(W), {
|
|
712
710
|
size: 12,
|
|
713
711
|
"stroke-width": 2
|
|
714
|
-
})], 10,
|
|
712
|
+
})], 10, cn),
|
|
715
713
|
b("input", {
|
|
716
714
|
type: "number",
|
|
717
715
|
class: g(bn),
|
|
@@ -719,39 +717,39 @@ var wt = [
|
|
|
719
717
|
"aria-label": h(s).spacingControl.left,
|
|
720
718
|
min: "0",
|
|
721
719
|
onInput: n[4] ||= (e) => d("left", Number(e.target.value))
|
|
722
|
-
}, null, 40,
|
|
720
|
+
}, null, 40, ln),
|
|
723
721
|
b("button", {
|
|
724
722
|
"aria-label": h(s).spacingControl.increaseLeft,
|
|
725
|
-
class: g([
|
|
723
|
+
class: g([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
726
724
|
onClick: n[5] ||= (e) => u("left", 1)
|
|
727
725
|
}, [k(h(U), {
|
|
728
726
|
size: 12,
|
|
729
727
|
"stroke-width": 2
|
|
730
|
-
})], 10,
|
|
728
|
+
})], 10, un)
|
|
731
729
|
]),
|
|
732
730
|
b("button", {
|
|
733
731
|
class: g(["tpl:flex tpl:h-8 tpl:w-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", l.value ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
|
|
734
732
|
"aria-label": l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
|
|
735
733
|
title: l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
|
|
736
734
|
onClick: f
|
|
737
|
-
}, [l.value ? (i(), v(h(
|
|
735
|
+
}, [l.value ? (i(), v(h(Y), {
|
|
738
736
|
key: 0,
|
|
739
737
|
size: 14,
|
|
740
738
|
"stroke-width": 2
|
|
741
|
-
})) : (i(), v(h(
|
|
739
|
+
})) : (i(), v(h(q), {
|
|
742
740
|
key: 1,
|
|
743
741
|
size: 14,
|
|
744
742
|
"stroke-width": 2
|
|
745
|
-
}))], 10,
|
|
746
|
-
b("div",
|
|
743
|
+
}))], 10, dn),
|
|
744
|
+
b("div", fn, [
|
|
747
745
|
b("button", {
|
|
748
746
|
"aria-label": h(s).spacingControl.decreaseRight,
|
|
749
|
-
class: g([
|
|
747
|
+
class: g([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
750
748
|
onClick: n[6] ||= (e) => u("right", -1)
|
|
751
|
-
}, [k(h(
|
|
749
|
+
}, [k(h(W), {
|
|
752
750
|
size: 12,
|
|
753
751
|
"stroke-width": 2
|
|
754
|
-
})], 10,
|
|
752
|
+
})], 10, pn),
|
|
755
753
|
b("input", {
|
|
756
754
|
type: "number",
|
|
757
755
|
class: g(bn),
|
|
@@ -759,26 +757,26 @@ var wt = [
|
|
|
759
757
|
"aria-label": h(s).spacingControl.right,
|
|
760
758
|
min: "0",
|
|
761
759
|
onInput: n[7] ||= (e) => d("right", Number(e.target.value))
|
|
762
|
-
}, null, 40,
|
|
760
|
+
}, null, 40, mn),
|
|
763
761
|
b("button", {
|
|
764
762
|
"aria-label": h(s).spacingControl.increaseRight,
|
|
765
|
-
class: g([
|
|
763
|
+
class: g([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
766
764
|
onClick: n[8] ||= (e) => u("right", 1)
|
|
767
765
|
}, [k(h(U), {
|
|
768
766
|
size: 12,
|
|
769
767
|
"stroke-width": 2
|
|
770
|
-
})], 10,
|
|
768
|
+
})], 10, hn)
|
|
771
769
|
])
|
|
772
770
|
]),
|
|
773
|
-
b("div",
|
|
771
|
+
b("div", gn, [
|
|
774
772
|
b("button", {
|
|
775
773
|
"aria-label": h(s).spacingControl.decreaseBottom,
|
|
776
|
-
class: g([
|
|
774
|
+
class: g([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
777
775
|
onClick: n[9] ||= (e) => u("bottom", -1)
|
|
778
|
-
}, [k(h(
|
|
776
|
+
}, [k(h(W), {
|
|
779
777
|
size: 12,
|
|
780
778
|
"stroke-width": 2
|
|
781
|
-
})], 10,
|
|
779
|
+
})], 10, _n),
|
|
782
780
|
b("input", {
|
|
783
781
|
type: "number",
|
|
784
782
|
class: g(bn),
|
|
@@ -786,15 +784,15 @@ var wt = [
|
|
|
786
784
|
"aria-label": h(s).spacingControl.bottom,
|
|
787
785
|
min: "0",
|
|
788
786
|
onInput: n[10] ||= (e) => d("bottom", Number(e.target.value))
|
|
789
|
-
}, null, 40,
|
|
787
|
+
}, null, 40, vn),
|
|
790
788
|
b("button", {
|
|
791
789
|
"aria-label": h(s).spacingControl.increaseBottom,
|
|
792
|
-
class: g([
|
|
790
|
+
class: g([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
793
791
|
onClick: n[11] ||= (e) => u("bottom", 1)
|
|
794
792
|
}, [k(h(U), {
|
|
795
793
|
size: 12,
|
|
796
794
|
"stroke-width": 2
|
|
797
|
-
})], 10,
|
|
795
|
+
})], 10, yn)
|
|
798
796
|
])
|
|
799
797
|
])]),
|
|
800
798
|
_: 1
|
|
@@ -805,14 +803,14 @@ var wt = [
|
|
|
805
803
|
function Sn(e) {
|
|
806
804
|
let t = E(null), n = () => {};
|
|
807
805
|
return o(e, (e) => {
|
|
808
|
-
n(), t.value = null, e && (n =
|
|
806
|
+
n(), t.value = null, e && (n = dt(e, (e) => {
|
|
809
807
|
t.value = e;
|
|
810
808
|
}));
|
|
811
809
|
}, { immediate: !0 }), t;
|
|
812
810
|
}
|
|
813
811
|
function Cn() {
|
|
814
|
-
let e = l(
|
|
815
|
-
return async (t) =>
|
|
812
|
+
let e = l(_e, null);
|
|
813
|
+
return async (t) => ut(e ? await wn(e, t) : t);
|
|
816
814
|
}
|
|
817
815
|
function wn(e, t) {
|
|
818
816
|
let n = (e) => typeof e == "string" && e.length > 0 ? e : t;
|
|
@@ -842,14 +840,14 @@ var Tn = { class: "tpl:space-y-3.5" }, En = ["data-testid"], Dn = ["data-testid"
|
|
|
842
840
|
},
|
|
843
841
|
emits: ["update:modelValue"],
|
|
844
842
|
setup(e, { emit: t }) {
|
|
845
|
-
let n = e, r = t, { t: a } =
|
|
843
|
+
let n = e, r = t, { t: a } = Z(), o = l(Oe, Me.liquid), s = C(() => typeof n.modelValue?.url == "string" ? n.modelValue.url : ""), d = C(() => s.value.trim() !== ""), f = Cn(), y;
|
|
846
844
|
u(() => clearTimeout(y));
|
|
847
845
|
function S(e) {
|
|
848
|
-
n.measure && !
|
|
846
|
+
n.measure && !Ve(e, o) && (y = setTimeout(async () => {
|
|
849
847
|
let t = await f(e), i = n.modelValue;
|
|
850
848
|
t && i?.url === e && r("update:modelValue", {
|
|
851
849
|
...i,
|
|
852
|
-
...
|
|
850
|
+
...st(t)
|
|
853
851
|
});
|
|
854
852
|
}, 300));
|
|
855
853
|
}
|
|
@@ -858,11 +856,11 @@ var Tn = { class: "tpl:space-y-3.5" }, En = ["data-testid"], Dn = ["data-testid"
|
|
|
858
856
|
r("update:modelValue", void 0);
|
|
859
857
|
return;
|
|
860
858
|
}
|
|
861
|
-
let { naturalWidth: i, naturalHeight: a, ...o } = n.modelValue ??
|
|
859
|
+
let { naturalWidth: i, naturalHeight: a, ...o } = n.modelValue ?? He(e), s = n.measure ? t : null;
|
|
862
860
|
r("update:modelValue", {
|
|
863
861
|
...o,
|
|
864
862
|
url: e,
|
|
865
|
-
...s ?
|
|
863
|
+
...s ? st(s) : {}
|
|
866
864
|
}), s || S(e);
|
|
867
865
|
}
|
|
868
866
|
function T(e) {
|
|
@@ -894,7 +892,7 @@ var Tn = { class: "tpl:space-y-3.5" }, En = ["data-testid"], Dn = ["data-testid"
|
|
|
894
892
|
"bottom-left": a.blockSettings.backgroundPositionBottomLeft,
|
|
895
893
|
"bottom-center": a.blockSettings.backgroundPositionBottomCenter,
|
|
896
894
|
"bottom-right": a.blockSettings.backgroundPositionBottomRight
|
|
897
|
-
})), j = C(() =>
|
|
895
|
+
})), j = C(() => ze.flatMap((e) => Ne.map((t) => ({
|
|
898
896
|
x: t,
|
|
899
897
|
y: e,
|
|
900
898
|
label: A.value[`${e}-${t}`]
|
|
@@ -902,11 +900,11 @@ var Tn = { class: "tpl:space-y-3.5" }, En = ["data-testid"], Dn = ["data-testid"
|
|
|
902
900
|
function M(e) {
|
|
903
901
|
return n.modelValue?.position?.x === e.x && n.modelValue?.position?.y === e.y;
|
|
904
902
|
}
|
|
905
|
-
let F = E(), { canBrowse: I, isUploading: L, showOverlay: ee, openMediaBrowser: R } =
|
|
903
|
+
let F = E(), { canBrowse: I, isUploading: L, showOverlay: ee, openMediaBrowser: R } = mt({
|
|
906
904
|
target: F,
|
|
907
905
|
value: s,
|
|
908
|
-
blocked: () =>
|
|
909
|
-
apply: (e) => w(e.url,
|
|
906
|
+
blocked: () => Ve(s.value, o),
|
|
907
|
+
apply: (e) => w(e.url, nt(e.width, e.height))
|
|
910
908
|
});
|
|
911
909
|
return (t, n) => (i(), p("div", Tn, [b("div", null, [e.hideLabel ? _("", !0) : (i(), p("label", {
|
|
912
910
|
key: 0,
|
|
@@ -917,7 +915,7 @@ var Tn = { class: "tpl:space-y-3.5" }, En = ["data-testid"], Dn = ["data-testid"
|
|
|
917
915
|
class: "tpl:relative",
|
|
918
916
|
"data-testid": `${e.testidPrefix}-bg-url`
|
|
919
917
|
}, [
|
|
920
|
-
h(ee) ? (i(), v(
|
|
918
|
+
h(ee) ? (i(), v(at, {
|
|
921
919
|
key: 0,
|
|
922
920
|
uploading: h(L)
|
|
923
921
|
}, null, 8, ["uploading"])) : _("", !0),
|
|
@@ -946,7 +944,7 @@ var Tn = { class: "tpl:space-y-3.5" }, En = ["data-testid"], Dn = ["data-testid"
|
|
|
946
944
|
e.heroMode ? _("", !0) : (i(), p("div", {
|
|
947
945
|
key: 0,
|
|
948
946
|
"data-testid": `${e.testidPrefix}-bg-size`
|
|
949
|
-
}, [b("label", { class: g(h(V)) }, x(h(a).blockSettings.backgroundSize), 3), k(
|
|
947
|
+
}, [b("label", { class: g(h(V)) }, x(h(a).blockSettings.backgroundSize), 3), k(Q, {
|
|
950
948
|
options: O.value,
|
|
951
949
|
"model-value": e.modelValue.size,
|
|
952
950
|
"onUpdate:modelValue": n[1] ||= (e) => T({ size: e })
|
|
@@ -1029,7 +1027,7 @@ var Tn = { class: "tpl:space-y-3.5" }, En = ["data-testid"], Dn = ["data-testid"
|
|
|
1029
1027
|
function n(e) {
|
|
1030
1028
|
return typeof e == "number" && Number.isFinite(e) && e >= 1;
|
|
1031
1029
|
}
|
|
1032
|
-
let r = e, a = t, { t: o } =
|
|
1030
|
+
let r = e, a = t, { t: o } = Z(), s = l(Oe, Me.liquid), c = l(be, null), u = l(Ee, void 0), d = Cn(), f = C(() => typeof r.section.backgroundImage?.url == "string" ? r.section.backgroundImage.url : ""), m = C(() => f.value.trim() !== ""), y = C(() => Ve(f.value, s)), S = C(() => r.section.hero), w = C(() => r.section.columns === "1"), T = C(() => S.value ? n(S.value.height) ? "fixed" : "image" : "fit"), E = C(() => n(S.value?.height) ? S.value.height : Hn), D = C(() => [
|
|
1033
1031
|
{
|
|
1034
1032
|
value: "fit",
|
|
1035
1033
|
label: o.blockSettings.heroHeightFit
|
|
@@ -1056,9 +1054,9 @@ var Tn = { class: "tpl:space-y-3.5" }, En = ["data-testid"], Dn = ["data-testid"
|
|
|
1056
1054
|
value: "bottom",
|
|
1057
1055
|
label: o.blockSettings.heroAlignBottom
|
|
1058
1056
|
}
|
|
1059
|
-
]), A = C(() => T.value === "image" && m.value && !y.value &&
|
|
1057
|
+
]), A = C(() => T.value === "image" && m.value && !y.value && ke(r.section.backgroundImage) === null);
|
|
1060
1058
|
function j() {
|
|
1061
|
-
return (c ?
|
|
1059
|
+
return (c ? pt(c.content.value, r.section.id, u, c.activeLocale?.value ?? void 0) : null) ?? lt(c?.state.content.settings);
|
|
1062
1060
|
}
|
|
1063
1061
|
function M(e) {
|
|
1064
1062
|
let t = S.value?.verticalAlign ?? "middle";
|
|
@@ -1074,7 +1072,7 @@ var Tn = { class: "tpl:space-y-3.5" }, En = ["data-testid"], Dn = ["data-testid"
|
|
|
1074
1072
|
a("update", { hero: void 0 });
|
|
1075
1073
|
return;
|
|
1076
1074
|
}
|
|
1077
|
-
let n =
|
|
1075
|
+
let n = ke(r.section.backgroundImage), i = n === null ? Hn : Math.round(j() * n);
|
|
1078
1076
|
a("update", { hero: {
|
|
1079
1077
|
height: i,
|
|
1080
1078
|
verticalAlign: t
|
|
@@ -1082,11 +1080,11 @@ var Tn = { class: "tpl:space-y-3.5" }, En = ["data-testid"], Dn = ["data-testid"
|
|
|
1082
1080
|
}
|
|
1083
1081
|
async function N() {
|
|
1084
1082
|
let e = r.section.backgroundImage;
|
|
1085
|
-
if (!e || !m.value || y.value ||
|
|
1083
|
+
if (!e || !m.value || y.value || ke(e) !== null) return;
|
|
1086
1084
|
let t = e.url, n = await d(t), i = r.section.backgroundImage;
|
|
1087
1085
|
n && i && i.url === t && a("update", { backgroundImage: {
|
|
1088
1086
|
...i,
|
|
1089
|
-
...
|
|
1087
|
+
...st(n)
|
|
1090
1088
|
} });
|
|
1091
1089
|
}
|
|
1092
1090
|
function P(e) {
|
|
@@ -1104,14 +1102,14 @@ var Tn = { class: "tpl:space-y-3.5" }, En = ["data-testid"], Dn = ["data-testid"
|
|
|
1104
1102
|
return (e, t) => !w.value && S.value ? (i(), p("p", In, x(h(o).section.heroNeedsOneColumn), 1)) : w.value && (m.value || S.value) ? (i(), p("div", Ln, [
|
|
1105
1103
|
b("div", Rn, [
|
|
1106
1104
|
b("label", { class: g(h(V)) }, x(h(o).blockSettings.heroHeight), 3),
|
|
1107
|
-
k(
|
|
1105
|
+
k(Q, {
|
|
1108
1106
|
options: D.value,
|
|
1109
1107
|
"model-value": T.value,
|
|
1110
1108
|
"onUpdate:modelValue": M
|
|
1111
1109
|
}, null, 8, ["options", "model-value"]),
|
|
1112
1110
|
y.value ? (i(), p("p", zn, x(h(o).blockSettings.heroMatchImageMergeTag), 1)) : A.value ? (i(), p("p", Bn, x(h(o).blockSettings.heroSizeUnknown), 1)) : _("", !0)
|
|
1113
1111
|
]),
|
|
1114
|
-
T.value === "fixed" ? (i(), v(
|
|
1112
|
+
T.value === "fixed" ? (i(), v(kt, {
|
|
1115
1113
|
key: 0,
|
|
1116
1114
|
"model-value": E.value,
|
|
1117
1115
|
min: 1,
|
|
@@ -1119,7 +1117,7 @@ var Tn = { class: "tpl:space-y-3.5" }, En = ["data-testid"], Dn = ["data-testid"
|
|
|
1119
1117
|
testid: "section-hero-height-px",
|
|
1120
1118
|
"onUpdate:modelValue": P
|
|
1121
1119
|
}, null, 8, ["model-value"])) : _("", !0),
|
|
1122
|
-
S.value ? (i(), p("div", Vn, [b("label", { class: g(h(V)) }, x(h(o).blockSettings.heroAlign), 3), k(
|
|
1120
|
+
S.value ? (i(), p("div", Vn, [b("label", { class: g(h(V)) }, x(h(o).blockSettings.heroAlign), 3), k(Q, {
|
|
1123
1121
|
options: O.value,
|
|
1124
1122
|
"model-value": S.value.verticalAlign,
|
|
1125
1123
|
"onUpdate:modelValue": F
|
|
@@ -1148,10 +1146,10 @@ function qn(e) {
|
|
|
1148
1146
|
return Gn(e.styles.backgroundColor) || !!e.backgroundImage;
|
|
1149
1147
|
}
|
|
1150
1148
|
function Jn(e) {
|
|
1151
|
-
return e.fullWidth !== !0 || Kn(e.padding) ||
|
|
1149
|
+
return e.fullWidth !== !0 || Kn(e.padding) || Ie(e.borderRadius) !== null ? !1 : Object.keys(e).every((e) => Wn.has(e));
|
|
1152
1150
|
}
|
|
1153
1151
|
function Yn(e, t = {}) {
|
|
1154
|
-
return e.wrapper ? !1 : t.sectionWrapper === !1 || t.layout !== void 0 &&
|
|
1152
|
+
return e.wrapper ? !1 : t.sectionWrapper === !1 || t.layout !== void 0 && Ge(t.layout);
|
|
1155
1153
|
}
|
|
1156
1154
|
function Xn(e) {
|
|
1157
1155
|
let t = {};
|
|
@@ -1222,7 +1220,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1222
1220
|
},
|
|
1223
1221
|
emits: ["update"],
|
|
1224
1222
|
setup(e, { emit: r }) {
|
|
1225
|
-
let u = e, d = r, { t: f, format: w } =
|
|
1223
|
+
let u = e, d = r, { t: f, format: w } = Z(), T = l(be, null), O = vt(T), j = l(he, void 0), N = C(() => T?.activeLocale?.value), I = C(() => !!(N.value && T?.selectedBlock?.value?.l10n?.[N.value]?.hidden)), L = l(Se, []), R = l(Ce, !1), z = l(Ee, void 0), B = l(ge, void 0), te = C(() => u.block.type === "section" || u.block.type === "wrapper"), ne = C(() => u.block.type === "wrapper" ? u.block.fullWidth === !0 : u.block.type === "section" && u.block.wrapper?.fullWidth === !0), V = C(() => u.block.type === "section" && Yn(u.block, {
|
|
1226
1224
|
sectionWrapper: B,
|
|
1227
1225
|
layout: z
|
|
1228
1226
|
})), ie = C(() => u.block.type === "wrapper" ? "layout-wrapper-full-width" : "section-background-full-width");
|
|
@@ -1244,13 +1242,13 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1244
1242
|
}
|
|
1245
1243
|
function fe(e) {
|
|
1246
1244
|
let t = u.block;
|
|
1247
|
-
t.type === "section" && t.wrapper?.fullWidth === !0 ? de(t.wrapper, { backgroundColor: e }) :
|
|
1245
|
+
t.type === "section" && t.wrapper?.fullWidth === !0 ? de(t.wrapper, { backgroundColor: e }) : Me("backgroundColor", e);
|
|
1248
1246
|
}
|
|
1249
|
-
function
|
|
1247
|
+
function W(e) {
|
|
1250
1248
|
let t = u.block;
|
|
1251
1249
|
t.type === "section" && t.wrapper?.fullWidth === !0 ? de(t.wrapper, { backgroundImage: e }) : d("update", { backgroundImage: e });
|
|
1252
1250
|
}
|
|
1253
|
-
let
|
|
1251
|
+
let G = l(ye, null), pe = it(), K = E(!1), q = t(/* @__PURE__ */ new Set()), J = E(!1), Y = E(""), X = E(""), me = [{
|
|
1254
1252
|
key: "desktop",
|
|
1255
1253
|
icon: re,
|
|
1256
1254
|
labelKey: "showOnDesktop"
|
|
@@ -1259,49 +1257,49 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1259
1257
|
icon: ce,
|
|
1260
1258
|
labelKey: "showOnMobile"
|
|
1261
1259
|
}];
|
|
1262
|
-
function
|
|
1263
|
-
|
|
1260
|
+
function _e(e) {
|
|
1261
|
+
q.has(e) ? q.delete(e) : q.add(e);
|
|
1264
1262
|
}
|
|
1265
|
-
let
|
|
1266
|
-
function
|
|
1263
|
+
let ve = C(() => !!G || L.length > 0 || R);
|
|
1264
|
+
function xe(e) {
|
|
1267
1265
|
if (typeof e != "object" || !e || Array.isArray(e)) return !1;
|
|
1268
1266
|
let t = e;
|
|
1269
1267
|
return typeof t.label == "string" && typeof t.before == "string" && typeof t.after == "string";
|
|
1270
1268
|
}
|
|
1271
|
-
function
|
|
1269
|
+
function we(e, t) {
|
|
1272
1270
|
let n = T?.state?.selectedBlockId;
|
|
1273
1271
|
u.block.id === e && (n === void 0 || n === e) ? d("update", { displayCondition: t }) : T && T.findBlockLocation(e) && T.updateBlock(e, { displayCondition: t });
|
|
1274
1272
|
}
|
|
1275
|
-
async function
|
|
1276
|
-
if (!
|
|
1277
|
-
let e = u.block.id, t = T?.activeLocale?.value ?? null, n =
|
|
1278
|
-
|
|
1273
|
+
async function Te() {
|
|
1274
|
+
if (!G || K.value) return;
|
|
1275
|
+
let e = u.block.id, t = T?.activeLocale?.value ?? null, n = We(y(u.block)), r = u.block.displayCondition ? We(y(u.block.displayCondition)) : void 0;
|
|
1276
|
+
K.value = !0;
|
|
1279
1277
|
try {
|
|
1280
|
-
let i = await
|
|
1278
|
+
let i = await G(r ? {
|
|
1281
1279
|
current: r,
|
|
1282
1280
|
block: n
|
|
1283
1281
|
} : { block: n });
|
|
1284
|
-
if (!
|
|
1285
|
-
if (!
|
|
1286
|
-
|
|
1282
|
+
if (!pe.alive || (T?.activeLocale?.value ?? null) !== t || i === null) return;
|
|
1283
|
+
if (!xe(i)) {
|
|
1284
|
+
$e.warn("displayConditions.onRequest resolved a value without string label, before and after — ignoring it.");
|
|
1287
1285
|
return;
|
|
1288
1286
|
}
|
|
1289
|
-
|
|
1287
|
+
we(e, We(i));
|
|
1290
1288
|
} finally {
|
|
1291
|
-
|
|
1289
|
+
pe.alive && (K.value = !1);
|
|
1292
1290
|
}
|
|
1293
1291
|
}
|
|
1294
|
-
let
|
|
1295
|
-
function
|
|
1296
|
-
|
|
1292
|
+
let De = C(() => u.block.displayCondition ? !L.some((e) => e.label === u.block.displayCondition?.label) : !1);
|
|
1293
|
+
function Oe() {
|
|
1294
|
+
J.value = !0, De.value && u.block.displayCondition ? (Y.value = u.block.displayCondition.before, X.value = u.block.displayCondition.after ?? "") : (Y.value = "", X.value = "");
|
|
1297
1295
|
}
|
|
1298
|
-
function
|
|
1299
|
-
let e =
|
|
1296
|
+
function ke() {
|
|
1297
|
+
let e = Y.value.trim(), t = X.value.trim();
|
|
1300
1298
|
e && (d("update", { displayCondition: {
|
|
1301
1299
|
label: f.blockSettings.customCondition,
|
|
1302
1300
|
before: e,
|
|
1303
1301
|
after: t
|
|
1304
|
-
} }),
|
|
1302
|
+
} }), J.value = !1, Y.value = e, X.value = t);
|
|
1305
1303
|
}
|
|
1306
1304
|
o([
|
|
1307
1305
|
() => T?.state?.template?.id,
|
|
@@ -1311,44 +1309,44 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1311
1309
|
() => u.block.displayCondition?.after
|
|
1312
1310
|
], () => {
|
|
1313
1311
|
let e = u.block.displayCondition;
|
|
1314
|
-
!e || !
|
|
1312
|
+
!e || !De.value ? (J.value = !1, Y.value = "", X.value = "") : (Y.value = e.before, X.value = e.after ?? "");
|
|
1315
1313
|
}, { immediate: !0 });
|
|
1316
|
-
let
|
|
1314
|
+
let Ae = C(() => {
|
|
1317
1315
|
let e = {};
|
|
1318
1316
|
for (let t of L) {
|
|
1319
1317
|
let n = t.group ?? "";
|
|
1320
1318
|
e[n] || (e[n] = []), e[n].push(t);
|
|
1321
1319
|
}
|
|
1322
1320
|
return e;
|
|
1323
|
-
}),
|
|
1324
|
-
function
|
|
1321
|
+
}), je = C(() => u.block.type === "section" && Be(u.block)?.applied === !0);
|
|
1322
|
+
function Me(e, t) {
|
|
1325
1323
|
d("update", { styles: {
|
|
1326
1324
|
...u.block.styles,
|
|
1327
1325
|
[e]: t
|
|
1328
1326
|
} });
|
|
1329
1327
|
}
|
|
1330
|
-
function
|
|
1328
|
+
function Ne(e) {
|
|
1331
1329
|
return u.block.visibility?.[e] !== !1;
|
|
1332
1330
|
}
|
|
1333
|
-
function
|
|
1331
|
+
function Pe(e) {
|
|
1334
1332
|
let t = {
|
|
1335
|
-
desktop:
|
|
1336
|
-
mobile:
|
|
1333
|
+
desktop: Ne("desktop"),
|
|
1334
|
+
mobile: Ne("mobile")
|
|
1337
1335
|
};
|
|
1338
1336
|
t[e] = !t[e], d("update", { visibility: t });
|
|
1339
1337
|
}
|
|
1340
1338
|
return (t, r) => (i(), p("div", { class: g(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1341
1339
|
k(Fn, {
|
|
1342
1340
|
title: h(f).blockSettings.spacing,
|
|
1343
|
-
open:
|
|
1341
|
+
open: q.has("spacing"),
|
|
1344
1342
|
"no-border": e.isFirstSection,
|
|
1345
|
-
onToggle: r[1] ||= (e) =>
|
|
1343
|
+
onToggle: r[1] ||= (e) => _e("spacing")
|
|
1346
1344
|
}, {
|
|
1347
1345
|
default: a(() => [k(xn, {
|
|
1348
1346
|
path: "styles.padding",
|
|
1349
1347
|
label: h(f).blockSettings.padding,
|
|
1350
1348
|
"model-value": e.block.styles.padding,
|
|
1351
|
-
"onUpdate:modelValue": r[0] ||= (e) =>
|
|
1349
|
+
"onUpdate:modelValue": r[0] ||= (e) => Me("padding", e)
|
|
1352
1350
|
}, null, 8, ["label", "model-value"])]),
|
|
1353
1351
|
_: 1
|
|
1354
1352
|
}, 8, [
|
|
@@ -1358,9 +1356,9 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1358
1356
|
]),
|
|
1359
1357
|
k(Fn, {
|
|
1360
1358
|
title: h(f).blockSettings.background,
|
|
1361
|
-
open:
|
|
1359
|
+
open: q.has("bg"),
|
|
1362
1360
|
"header-test-id": "block-settings-background",
|
|
1363
|
-
onToggle: r[4] ||= (e) =>
|
|
1361
|
+
onToggle: r[4] ||= (e) => _e("bg")
|
|
1364
1362
|
}, {
|
|
1365
1363
|
default: a(() => [
|
|
1366
1364
|
k(A, {
|
|
@@ -1408,8 +1406,8 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1408
1406
|
"model-value": ue.value,
|
|
1409
1407
|
"testid-prefix": "section",
|
|
1410
1408
|
measure: "",
|
|
1411
|
-
"hero-mode":
|
|
1412
|
-
"onUpdate:modelValue":
|
|
1409
|
+
"hero-mode": je.value,
|
|
1410
|
+
"onUpdate:modelValue": W
|
|
1413
1411
|
}, null, 8, ["model-value", "hero-mode"])]),
|
|
1414
1412
|
_: 1
|
|
1415
1413
|
}, 8, ["path", "label"])) : _("", !0),
|
|
@@ -1422,7 +1420,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1422
1420
|
"data-testid": "section-content-background",
|
|
1423
1421
|
"model-value": e.block.styles.backgroundColor ?? "",
|
|
1424
1422
|
"allow-transparent": "",
|
|
1425
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
1423
|
+
"onUpdate:modelValue": r[2] ||= (e) => Me("backgroundColor", e)
|
|
1426
1424
|
}, null, 8, ["model-value"])]),
|
|
1427
1425
|
_: 1
|
|
1428
1426
|
}, 8, ["label"])) : _("", !0),
|
|
@@ -1442,8 +1440,8 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1442
1440
|
}, 8, ["title", "open"]),
|
|
1443
1441
|
k(Fn, {
|
|
1444
1442
|
title: h(f).blockSettings.display,
|
|
1445
|
-
open:
|
|
1446
|
-
onToggle: r[6] ||= (e) =>
|
|
1443
|
+
open: q.has("display"),
|
|
1444
|
+
onToggle: r[6] ||= (e) => _e("display")
|
|
1447
1445
|
}, {
|
|
1448
1446
|
default: a(() => [b("div", er, [N.value && h(j) ? (i(), v(P, {
|
|
1449
1447
|
key: 0,
|
|
@@ -1456,7 +1454,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1456
1454
|
"disabled",
|
|
1457
1455
|
"model-value",
|
|
1458
1456
|
"label"
|
|
1459
|
-
])) : _("", !0), (i(), p(D, null, c(
|
|
1457
|
+
])) : _("", !0), (i(), p(D, null, c(me, (e) => k(A, {
|
|
1460
1458
|
key: e.key,
|
|
1461
1459
|
path: `visibility.${e.key}`,
|
|
1462
1460
|
label: h(f).blockSettings[e.labelKey]
|
|
@@ -1469,9 +1467,9 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1469
1467
|
"control-id": t,
|
|
1470
1468
|
"hide-label": "",
|
|
1471
1469
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1472
|
-
"model-value":
|
|
1470
|
+
"model-value": Ne(e.key),
|
|
1473
1471
|
label: h(f).blockSettings[e.labelKey],
|
|
1474
|
-
"onUpdate:modelValue": (t) =>
|
|
1472
|
+
"onUpdate:modelValue": (t) => Pe(e.key)
|
|
1475
1473
|
}, null, 8, [
|
|
1476
1474
|
"control-id",
|
|
1477
1475
|
"model-value",
|
|
@@ -1482,27 +1480,27 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1482
1480
|
}, 1032, ["path", "label"])), 64))])]),
|
|
1483
1481
|
_: 1
|
|
1484
1482
|
}, 8, ["title", "open"]),
|
|
1485
|
-
|
|
1483
|
+
ve.value ? (i(), v(Fn, {
|
|
1486
1484
|
key: 0,
|
|
1487
1485
|
"header-test-id": "display-condition-section",
|
|
1488
1486
|
title: h(f).blockSettings.displayCondition,
|
|
1489
|
-
open:
|
|
1490
|
-
onToggle: r[11] ||= (e) =>
|
|
1487
|
+
open: q.has("condition"),
|
|
1488
|
+
onToggle: r[11] ||= (e) => _e("condition")
|
|
1491
1489
|
}, {
|
|
1492
|
-
default: a(() => [h(
|
|
1490
|
+
default: a(() => [h(G) ? (i(), p("div", nr, [e.block.displayCondition ? (i(), p(D, { key: 0 }, [
|
|
1493
1491
|
b("p", rr, x(e.block.displayCondition.label), 1),
|
|
1494
1492
|
e.block.displayCondition.description ? (i(), p("p", ir, x(e.block.displayCondition.description), 1)) : _("", !0),
|
|
1495
1493
|
b("div", ar, [b("button", {
|
|
1496
1494
|
type: "button",
|
|
1497
1495
|
"data-testid": "display-condition-edit",
|
|
1498
1496
|
class: g(h(F)),
|
|
1499
|
-
disabled:
|
|
1500
|
-
onClick:
|
|
1497
|
+
disabled: K.value,
|
|
1498
|
+
onClick: Te
|
|
1501
1499
|
}, x(h(f).blockSettings.editCondition), 11, or), b("button", {
|
|
1502
1500
|
type: "button",
|
|
1503
1501
|
"data-testid": "display-condition-remove",
|
|
1504
1502
|
class: g(h(F)),
|
|
1505
|
-
disabled:
|
|
1503
|
+
disabled: K.value,
|
|
1506
1504
|
onClick: r[7] ||= (e) => d("update", { displayCondition: void 0 })
|
|
1507
1505
|
}, x(h(f).blockSettings.removeCondition), 11, sr)])
|
|
1508
1506
|
], 64)) : (i(), p("button", {
|
|
@@ -1510,8 +1508,8 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1510
1508
|
type: "button",
|
|
1511
1509
|
"data-testid": "display-condition-request",
|
|
1512
1510
|
class: g(h(F)),
|
|
1513
|
-
disabled:
|
|
1514
|
-
onClick:
|
|
1511
|
+
disabled: K.value,
|
|
1512
|
+
onClick: Te
|
|
1515
1513
|
}, x(h(f).blockSettings.addCondition), 11, cr))])) : (i(), p("div", lr, [k(A, {
|
|
1516
1514
|
path: "displayCondition",
|
|
1517
1515
|
label: h(f).blockSettings.displayCondition
|
|
@@ -1519,14 +1517,14 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1519
1517
|
default: a(() => [b("select", {
|
|
1520
1518
|
"data-testid": "display-condition-select",
|
|
1521
1519
|
class: g(["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)]"]),
|
|
1522
|
-
value:
|
|
1520
|
+
value: J.value || De.value ? "__custom__" : e.block.displayCondition?.label ?? "",
|
|
1523
1521
|
onChange: r[8] ||= (e) => {
|
|
1524
1522
|
let t = e.target.value;
|
|
1525
1523
|
if (t === "__custom__") {
|
|
1526
|
-
|
|
1524
|
+
Oe();
|
|
1527
1525
|
return;
|
|
1528
1526
|
}
|
|
1529
|
-
if (
|
|
1527
|
+
if (J.value = !1, !t) {
|
|
1530
1528
|
d("update", { displayCondition: void 0 });
|
|
1531
1529
|
return;
|
|
1532
1530
|
}
|
|
@@ -1535,7 +1533,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1535
1533
|
}
|
|
1536
1534
|
}, [
|
|
1537
1535
|
b("option", dr, x(h(f).blockSettings.noCondition), 1),
|
|
1538
|
-
(i(!0), p(D, null, c(
|
|
1536
|
+
(i(!0), p(D, null, c(Ae.value, (e, t) => (i(), p(D, { key: t }, [t ? (i(), p("optgroup", {
|
|
1539
1537
|
key: 0,
|
|
1540
1538
|
label: String(t)
|
|
1541
1539
|
}, [(i(!0), p(D, null, c(e, (e) => (i(), p("option", {
|
|
@@ -1548,24 +1546,24 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1548
1546
|
h(R) ? (i(), p("option", hr, x(h(f).blockSettings.customCondition), 1)) : _("", !0)
|
|
1549
1547
|
], 42, ur)]),
|
|
1550
1548
|
_: 1
|
|
1551
|
-
}, 8, ["label"]),
|
|
1549
|
+
}, 8, ["label"]), J.value || De.value ? (i(), p("div", gr, [
|
|
1552
1550
|
b("div", null, [b("label", _r, x(h(f).blockSettings.customConditionBefore), 1), s(b("textarea", {
|
|
1553
|
-
"onUpdate:modelValue": r[9] ||= (e) =>
|
|
1551
|
+
"onUpdate:modelValue": r[9] ||= (e) => Y.value = e,
|
|
1554
1552
|
rows: "2",
|
|
1555
1553
|
class: g(h(H))
|
|
1556
|
-
}, null, 2), [[S,
|
|
1554
|
+
}, null, 2), [[S, Y.value]])]),
|
|
1557
1555
|
b("div", null, [b("label", vr, x(h(f).blockSettings.customConditionAfter), 1), s(b("textarea", {
|
|
1558
|
-
"onUpdate:modelValue": r[10] ||= (e) =>
|
|
1556
|
+
"onUpdate:modelValue": r[10] ||= (e) => X.value = e,
|
|
1559
1557
|
rows: "2",
|
|
1560
1558
|
class: g(h(H))
|
|
1561
|
-
}, null, 2), [[S,
|
|
1559
|
+
}, null, 2), [[S, X.value]])]),
|
|
1562
1560
|
b("div", yr, [b("button", {
|
|
1563
1561
|
type: "button",
|
|
1564
1562
|
class: g(h(ee)),
|
|
1565
|
-
disabled: !
|
|
1566
|
-
onClick:
|
|
1563
|
+
disabled: !Y.value.trim(),
|
|
1564
|
+
onClick: ke
|
|
1567
1565
|
}, x(h(f).blockSettings.applyCondition), 11, br)])
|
|
1568
|
-
])) : e.block.displayCondition && !
|
|
1566
|
+
])) : e.block.displayCondition && !De.value ? (i(), p(D, { key: 1 }, [e.block.displayCondition.description ? (i(), p("p", xr, x(e.block.displayCondition.description), 1)) : _("", !0), b("div", Sr, [b("pre", Cr, x(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (i(), p("pre", wr, x(e.block.displayCondition.after), 1)) : _("", !0)])], 64)) : _("", !0)]))]),
|
|
1569
1567
|
_: 1
|
|
1570
1568
|
}, 8, ["title", "open"])) : _("", !0)
|
|
1571
1569
|
], 2));
|
|
@@ -1578,13 +1576,13 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1578
1576
|
readOnly: { type: Boolean }
|
|
1579
1577
|
},
|
|
1580
1578
|
setup(e) {
|
|
1581
|
-
let { t } =
|
|
1579
|
+
let { t } = Z();
|
|
1582
1580
|
return (n, r) => (i(), p("span", null, [
|
|
1583
1581
|
m(x(e.label) + " ", 1),
|
|
1584
1582
|
e.readOnly ? (i(), p("span", {
|
|
1585
1583
|
key: 0,
|
|
1586
1584
|
title: h(t).customBlocks.dataSource.readOnlyTooltip
|
|
1587
|
-
}, [k(h(
|
|
1585
|
+
}, [k(h(Y), {
|
|
1588
1586
|
size: 12,
|
|
1589
1587
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
|
|
1590
1588
|
"aria-hidden": "true"
|
|
@@ -1607,7 +1605,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1607
1605
|
},
|
|
1608
1606
|
emits: ["update:modelValue"],
|
|
1609
1607
|
setup(e, { emit: t }) {
|
|
1610
|
-
let n = t, { t: r } =
|
|
1608
|
+
let n = t, { t: r } = Z();
|
|
1611
1609
|
return (t, o) => (i(), p("div", {
|
|
1612
1610
|
class: "tpl:mb-3.5",
|
|
1613
1611
|
title: e.readOnly ? h(r).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
@@ -1621,7 +1619,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1621
1619
|
disabled: e.readOnly,
|
|
1622
1620
|
"onUpdate:modelValue": o[0] ||= (e) => n("update:modelValue", e)
|
|
1623
1621
|
}, {
|
|
1624
|
-
default: a(() => [m(x(e.field.label) + " ", 1), e.readOnly ? (i(), v(h(
|
|
1622
|
+
default: a(() => [m(x(e.field.label) + " ", 1), e.readOnly ? (i(), v(h(Y), {
|
|
1625
1623
|
key: 0,
|
|
1626
1624
|
size: 12,
|
|
1627
1625
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
@@ -1668,7 +1666,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1668
1666
|
},
|
|
1669
1667
|
emits: ["update:modelValue"],
|
|
1670
1668
|
setup(e, { emit: t }) {
|
|
1671
|
-
let n = e, r = t, { t: o } =
|
|
1669
|
+
let n = e, r = t, { t: o } = Z(), s = l(xe, xt), c = C(() => ht(n.field, s));
|
|
1672
1670
|
return (t, n) => (i(), v(Pr, {
|
|
1673
1671
|
"hide-label": e.hideLabel,
|
|
1674
1672
|
label: e.field.label,
|
|
@@ -1713,7 +1711,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1713
1711
|
},
|
|
1714
1712
|
emits: ["update:modelValue"],
|
|
1715
1713
|
setup(e, { emit: t }) {
|
|
1716
|
-
let n = e, r = t, { t: o } =
|
|
1714
|
+
let n = e, r = t, { t: o } = Z(), s = E(), { canBrowse: c, isUploading: l, showOverlay: u, openMediaBrowser: d } = mt({
|
|
1717
1715
|
target: s,
|
|
1718
1716
|
value: () => n.modelValue,
|
|
1719
1717
|
blocked: () => !!n.readOnly,
|
|
@@ -1730,7 +1728,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1730
1728
|
ref: s,
|
|
1731
1729
|
class: "tpl:relative"
|
|
1732
1730
|
}, [
|
|
1733
|
-
h(u) ? (i(), v(
|
|
1731
|
+
h(u) ? (i(), v(at, {
|
|
1734
1732
|
key: 0,
|
|
1735
1733
|
uploading: h(l)
|
|
1736
1734
|
}, null, 8, ["uploading"])) : _("", !0),
|
|
@@ -1785,7 +1783,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1785
1783
|
},
|
|
1786
1784
|
emits: ["update:modelValue"],
|
|
1787
1785
|
setup(e, { emit: t }) {
|
|
1788
|
-
let n = t, { t: r } =
|
|
1786
|
+
let n = t, { t: r } = Z();
|
|
1789
1787
|
return (t, o) => (i(), v(Pr, {
|
|
1790
1788
|
"hide-label": e.hideLabel,
|
|
1791
1789
|
label: e.field.label,
|
|
@@ -1828,7 +1826,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1828
1826
|
},
|
|
1829
1827
|
emits: ["update:modelValue"],
|
|
1830
1828
|
setup(e, { emit: t }) {
|
|
1831
|
-
let r = e, o = t, { t: s, format: l } =
|
|
1829
|
+
let r = e, o = t, { t: s, format: l } = Z(), u = C(() => r.modelValue || []), d = C(() => !r.field.maxItems || u.value.length < r.field.maxItems), f = C(() => !r.field.minItems || u.value.length > r.field.minItems);
|
|
1832
1830
|
function y() {
|
|
1833
1831
|
if (!d.value || r.readOnly) return;
|
|
1834
1832
|
let e = {};
|
|
@@ -1863,7 +1861,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1863
1861
|
class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
|
|
1864
1862
|
title: h(s).customBlocks.fields.removeItem,
|
|
1865
1863
|
onClick: (e) => S(r)
|
|
1866
|
-
}, [k(h(
|
|
1864
|
+
}, [k(h(G), {
|
|
1867
1865
|
size: 12,
|
|
1868
1866
|
"stroke-width": 2
|
|
1869
1867
|
})], 8, Wr)) : _("", !0)]), (i(!0), p(D, null, c(e.field.fields, (a) => (i(), v(n(h(ni)(a.type)), {
|
|
@@ -1912,7 +1910,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1912
1910
|
},
|
|
1913
1911
|
emits: ["update:modelValue"],
|
|
1914
1912
|
setup(e, { emit: t }) {
|
|
1915
|
-
let n = t, { t: r } =
|
|
1913
|
+
let n = t, { t: r } = Z();
|
|
1916
1914
|
return (t, o) => (i(), v(Pr, {
|
|
1917
1915
|
"hide-label": e.hideLabel,
|
|
1918
1916
|
label: e.field.label,
|
|
@@ -1951,7 +1949,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1951
1949
|
},
|
|
1952
1950
|
emits: ["update:modelValue"],
|
|
1953
1951
|
setup(e, { emit: t }) {
|
|
1954
|
-
let n = t, { t: r } =
|
|
1952
|
+
let n = t, { t: r } = Z();
|
|
1955
1953
|
return (t, o) => (i(), v(Pr, {
|
|
1956
1954
|
"hide-label": e.hideLabel,
|
|
1957
1955
|
label: e.field.label,
|
|
@@ -1996,7 +1994,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1996
1994
|
},
|
|
1997
1995
|
emits: ["update:modelValue"],
|
|
1998
1996
|
setup(e, { emit: t }) {
|
|
1999
|
-
let n = t, { t: r } =
|
|
1997
|
+
let n = t, { t: r } = Z();
|
|
2000
1998
|
return (t, o) => (i(), v(Pr, {
|
|
2001
1999
|
"hide-label": e.hideLabel,
|
|
2002
2000
|
label: e.field.label,
|
|
@@ -2060,7 +2058,7 @@ var ri = {
|
|
|
2060
2058
|
props: { block: {} },
|
|
2061
2059
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
2062
2060
|
setup(e, { emit: t }) {
|
|
2063
|
-
let r = e, o = t, { t: s } =
|
|
2061
|
+
let r = e, o = t, { t: s } = Z(), u = l(Te, []), d = C(() => u.find((e) => e.type === r.block.customType)), f = C(() => r.block), { isFetching: g, fetchError: y, fetch: S, hasDataSource: w, needsFetch: T } = et({
|
|
2064
2062
|
definition: d,
|
|
2065
2063
|
block: f,
|
|
2066
2064
|
onUpdate: (e, t) => {
|
|
@@ -2129,7 +2127,7 @@ var ri = {
|
|
|
2129
2127
|
props: { block: {} },
|
|
2130
2128
|
emits: ["update"],
|
|
2131
2129
|
setup(e, { emit: t }) {
|
|
2132
|
-
let n = t, { t: r } =
|
|
2130
|
+
let n = t, { t: r } = Z();
|
|
2133
2131
|
function o(e, t) {
|
|
2134
2132
|
n("update", { [e]: t });
|
|
2135
2133
|
}
|
|
@@ -2139,7 +2137,7 @@ var ri = {
|
|
|
2139
2137
|
class: "tpl:mb-3.5",
|
|
2140
2138
|
path: "lineStyle"
|
|
2141
2139
|
}, {
|
|
2142
|
-
default: a(() => [k(
|
|
2140
|
+
default: a(() => [k(Q, {
|
|
2143
2141
|
options: [
|
|
2144
2142
|
{
|
|
2145
2143
|
value: "solid",
|
|
@@ -2192,7 +2190,7 @@ var ri = {
|
|
|
2192
2190
|
props: { block: {} },
|
|
2193
2191
|
emits: ["update"],
|
|
2194
2192
|
setup(e, { emit: t }) {
|
|
2195
|
-
let n = t, { t: r } =
|
|
2193
|
+
let n = t, { t: r } = Z();
|
|
2196
2194
|
return (t, o) => (i(), v(A, {
|
|
2197
2195
|
label: h(r).html.content,
|
|
2198
2196
|
class: "tpl:mb-3.5",
|
|
@@ -2204,7 +2202,7 @@ var ri = {
|
|
|
2204
2202
|
rows: "10",
|
|
2205
2203
|
class: g(h(H)),
|
|
2206
2204
|
onInput: o[0] ||= (e) => n("update", { content: e.target.value })
|
|
2207
|
-
}, null, 42, hi), b("p", gi, [k(h(
|
|
2205
|
+
}, null, 42, hi), b("p", gi, [k(h(pe), {
|
|
2208
2206
|
size: 12,
|
|
2209
2207
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
2210
2208
|
}), m(" " + x(h(r).html.sanitizationHint), 1)])]),
|
|
@@ -2218,7 +2216,7 @@ function vi(e) {
|
|
|
2218
2216
|
o(() => e.block().id, () => {
|
|
2219
2217
|
t.value = !1, n.value = null;
|
|
2220
2218
|
});
|
|
2221
|
-
let r = C(() =>
|
|
2219
|
+
let r = C(() => ot(e.block()) ?? e.measured()), i = C(() => {
|
|
2222
2220
|
let t = e.block().width;
|
|
2223
2221
|
return t === "full" ? e.room() : t;
|
|
2224
2222
|
}), a = C(() => {
|
|
@@ -2229,9 +2227,9 @@ function vi(e) {
|
|
|
2229
2227
|
return t === void 0 || a.value !== null && Math.abs(a.value - t) <= 1;
|
|
2230
2228
|
}), l = C(() => s.value && !t.value && c.value);
|
|
2231
2229
|
function u() {
|
|
2232
|
-
if (
|
|
2230
|
+
if (ot(e.block())) return {};
|
|
2233
2231
|
let t = e.measured();
|
|
2234
|
-
return t ?
|
|
2232
|
+
return t ? st(t) : {};
|
|
2235
2233
|
}
|
|
2236
2234
|
function d(r) {
|
|
2237
2235
|
if (n.value = null, !r) return t.value = !0, null;
|
|
@@ -2293,7 +2291,7 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2293
2291
|
props: { block: {} },
|
|
2294
2292
|
emits: ["update"],
|
|
2295
2293
|
setup(e, { emit: t }) {
|
|
2296
|
-
let n = e, r = t, { t: o, format: s } =
|
|
2294
|
+
let n = e, r = t, { t: o, format: s } = Z(), c = l(Oe, Me.liquid), u = l(be, null), d = u ? Qe(u) : null, f = l(Ee, void 0), y = E(!1), S = E(!1), { start: w } = St(() => {
|
|
2297
2295
|
y.value = !1, S.value = !1;
|
|
2298
2296
|
}, 1e3, { immediate: !1 }), T = [
|
|
2299
2297
|
300,
|
|
@@ -2309,8 +2307,8 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2309
2307
|
function ee(e) {
|
|
2310
2308
|
if (e === "custom") {
|
|
2311
2309
|
let e = n.block.width;
|
|
2312
|
-
(typeof e != "number" || T.includes(e)) && r("update",
|
|
2313
|
-
} else r("update",
|
|
2310
|
+
(typeof e != "number" || T.includes(e)) && r("update", G.widthUpdates(zi));
|
|
2311
|
+
} else r("update", G.widthUpdates(e === "full" ? "full" : Number(e)));
|
|
2314
2312
|
}
|
|
2315
2313
|
function R(e) {
|
|
2316
2314
|
I("height", e === "custom" ? Bi : void 0);
|
|
@@ -2323,42 +2321,42 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2323
2321
|
!Number.isFinite(t) || t <= 0 || I("height", t);
|
|
2324
2322
|
}
|
|
2325
2323
|
function V(e) {
|
|
2326
|
-
I("borderRadius",
|
|
2324
|
+
I("borderRadius", Ie(e) === null ? void 0 : e);
|
|
2327
2325
|
}
|
|
2328
2326
|
function H(e) {
|
|
2329
2327
|
let t = Number(e);
|
|
2330
|
-
!Number.isFinite(t) || t <= 0 || r("update",
|
|
2328
|
+
!Number.isFinite(t) || t <= 0 || r("update", G.widthUpdates(t));
|
|
2331
2329
|
}
|
|
2332
2330
|
function re(e) {
|
|
2333
2331
|
e !== n.block.src && r("update", {
|
|
2334
2332
|
src: e,
|
|
2335
|
-
...
|
|
2333
|
+
...st(null)
|
|
2336
2334
|
});
|
|
2337
2335
|
}
|
|
2338
2336
|
function ie(e) {
|
|
2339
2337
|
r("update", {
|
|
2340
2338
|
src: e.url,
|
|
2341
|
-
...
|
|
2339
|
+
...st(nt(e.width, e.height))
|
|
2342
2340
|
}), e.alt && (I("alt", e.alt), S.value = !0), y.value = !0, w();
|
|
2343
2341
|
}
|
|
2344
|
-
let ae = E(), oe = C(() =>
|
|
2342
|
+
let ae = E(), oe = C(() => Ve(n.block.src, c)), { canBrowse: U, isUploading: se, showOverlay: ce, openMediaBrowser: le } = mt({
|
|
2345
2343
|
target: ae,
|
|
2346
2344
|
value: () => n.block.src,
|
|
2347
2345
|
blocked: oe,
|
|
2348
2346
|
apply: ie
|
|
2349
|
-
}), ue =
|
|
2347
|
+
}), ue = tt(() => oe.value || !n.block.src || ot(n.block) ? void 0 : n.block.src), fe = Sn(() => ue.value), W = C(() => d ? ct(d.content.value, n.block.id, f) : null), G = vi({
|
|
2350
2348
|
block: () => n.block,
|
|
2351
|
-
room: () =>
|
|
2349
|
+
room: () => W.value,
|
|
2352
2350
|
measured: () => fe.value
|
|
2353
|
-
}), { available:
|
|
2354
|
-
function
|
|
2355
|
-
let e =
|
|
2351
|
+
}), { available: pe, locked: K, derivedHeight: q, cappedHeight: J } = G;
|
|
2352
|
+
function Y() {
|
|
2353
|
+
let e = G.setLocked(!K.value);
|
|
2356
2354
|
e && r("update", e);
|
|
2357
2355
|
}
|
|
2358
|
-
let
|
|
2359
|
-
function
|
|
2360
|
-
|
|
2361
|
-
let t =
|
|
2356
|
+
let X = E(null);
|
|
2357
|
+
function me(e) {
|
|
2358
|
+
X.value = e;
|
|
2359
|
+
let t = G.heightUpdates(Number(e));
|
|
2362
2360
|
t && r("update", t);
|
|
2363
2361
|
}
|
|
2364
2362
|
return (t, n) => (i(), p(D, null, [
|
|
@@ -2372,7 +2370,7 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2372
2370
|
ref: ae,
|
|
2373
2371
|
class: "tpl:relative"
|
|
2374
2372
|
}, [
|
|
2375
|
-
h(ce) ? (i(), v(
|
|
2373
|
+
h(ce) ? (i(), v(at, {
|
|
2376
2374
|
key: 0,
|
|
2377
2375
|
uploading: h(se)
|
|
2378
2376
|
}, null, 8, ["uploading"])) : _("", !0),
|
|
@@ -2403,7 +2401,7 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2403
2401
|
], 512)]),
|
|
2404
2402
|
_: 1
|
|
2405
2403
|
}, 8, ["label"]),
|
|
2406
|
-
h(
|
|
2404
|
+
h(Ve)(e.block.src, h(c)) ? (i(), v(A, {
|
|
2407
2405
|
key: 0,
|
|
2408
2406
|
class: "tpl:mb-3.5",
|
|
2409
2407
|
path: "placeholderUrl"
|
|
@@ -2506,23 +2504,23 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2506
2504
|
label: h(o).image.height
|
|
2507
2505
|
}, O({
|
|
2508
2506
|
default: a(() => [
|
|
2509
|
-
h(
|
|
2507
|
+
h(K) ? (i(), p(D, { key: 0 }, [b("div", ji, [b("input", {
|
|
2510
2508
|
type: "number",
|
|
2511
2509
|
"data-testid": "image-locked-height-input",
|
|
2512
2510
|
class: g(h(z)),
|
|
2513
|
-
value:
|
|
2511
|
+
value: X.value ?? h(q) ?? "",
|
|
2514
2512
|
min: "1",
|
|
2515
|
-
onInput: n[8] ||= (e) =>
|
|
2516
|
-
onBlur: n[9] ||= (e) =>
|
|
2517
|
-
}, null, 42, Mi), b("span", { class: g(h(L)) }, "px", 2)]), h(
|
|
2518
|
-
h(
|
|
2513
|
+
onInput: n[8] ||= (e) => me(e.target.value),
|
|
2514
|
+
onBlur: n[9] ||= (e) => X.value = null
|
|
2515
|
+
}, null, 42, Mi), b("span", { class: g(h(L)) }, "px", 2)]), h(J) === null ? _("", !0) : (i(), p("p", Ni, x(h(s)(h(o).image.heightCapped, { height: h(J) })), 1))], 64)) : _("", !0),
|
|
2516
|
+
h(K) ? _("", !0) : (i(), p("select", {
|
|
2519
2517
|
key: 1,
|
|
2520
2518
|
class: g(h(B)),
|
|
2521
2519
|
"data-testid": "image-height-mode",
|
|
2522
2520
|
value: M.value,
|
|
2523
2521
|
onChange: n[10] ||= (e) => R(e.target.value)
|
|
2524
2522
|
}, [b("option", Fi, x(h(o).image.heightAuto), 1), b("option", Ii, x(h(o).image.heightCustom), 1)], 42, Pi)),
|
|
2525
|
-
!h(
|
|
2523
|
+
!h(K) && M.value === "custom" ? (i(), p("div", Li, [b("input", {
|
|
2526
2524
|
type: "number",
|
|
2527
2525
|
"data-testid": "image-height-input",
|
|
2528
2526
|
class: g(h(z)),
|
|
@@ -2532,14 +2530,14 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2532
2530
|
}, null, 42, Ri), b("span", { class: g(h(L)) }, "px", 2)])) : _("", !0)
|
|
2533
2531
|
]),
|
|
2534
2532
|
_: 2
|
|
2535
|
-
}, [h(
|
|
2533
|
+
}, [h(pe) ? {
|
|
2536
2534
|
name: "label-actions",
|
|
2537
|
-
fn: a(() => [k(
|
|
2538
|
-
linked: h(
|
|
2535
|
+
fn: a(() => [k(jt, {
|
|
2536
|
+
linked: h(K),
|
|
2539
2537
|
"link-label": h(o).image.lockAspectRatio,
|
|
2540
2538
|
"unlink-label": h(o).image.unlockAspectRatio,
|
|
2541
2539
|
testid: "image-aspect-lock",
|
|
2542
|
-
onToggle:
|
|
2540
|
+
onToggle: Y
|
|
2543
2541
|
}, null, 8, [
|
|
2544
2542
|
"linked",
|
|
2545
2543
|
"link-label",
|
|
@@ -2547,14 +2545,14 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2547
2545
|
])]),
|
|
2548
2546
|
key: "0"
|
|
2549
2547
|
} : void 0]), 1032, ["label"]),
|
|
2550
|
-
k(
|
|
2548
|
+
k(Rt, {
|
|
2551
2549
|
path: "borderRadius",
|
|
2552
2550
|
"model-value": e.block.borderRadius,
|
|
2553
2551
|
label: h(o).image.borderRadius,
|
|
2554
2552
|
"testid-prefix": "image",
|
|
2555
2553
|
"onUpdate:modelValue": V
|
|
2556
2554
|
}, null, 8, ["model-value", "label"]),
|
|
2557
|
-
k(
|
|
2555
|
+
k(Ft, {
|
|
2558
2556
|
path: "border",
|
|
2559
2557
|
"model-value": e.block.border,
|
|
2560
2558
|
"testid-prefix": "image",
|
|
@@ -2565,7 +2563,7 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2565
2563
|
class: "tpl:mb-3.5",
|
|
2566
2564
|
path: "align"
|
|
2567
2565
|
}, {
|
|
2568
|
-
default: a(() => [k(
|
|
2566
|
+
default: a(() => [k(Q, {
|
|
2569
2567
|
options: [
|
|
2570
2568
|
{
|
|
2571
2569
|
value: "left",
|
|
@@ -2630,7 +2628,7 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2630
2628
|
},
|
|
2631
2629
|
emits: ["update"],
|
|
2632
2630
|
setup(e, { emit: t }) {
|
|
2633
|
-
let n = e, r = t, { t: o } =
|
|
2631
|
+
let n = e, r = t, { t: o } = Z(), s = C(() => [
|
|
2634
2632
|
{
|
|
2635
2633
|
key: "openInNewTab",
|
|
2636
2634
|
label: o.menu.openInNewTab
|
|
@@ -2647,7 +2645,7 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2647
2645
|
{
|
|
2648
2646
|
value: "left",
|
|
2649
2647
|
label: o.title.alignLeft,
|
|
2650
|
-
icon:
|
|
2648
|
+
icon: K
|
|
2651
2649
|
},
|
|
2652
2650
|
{
|
|
2653
2651
|
value: "center",
|
|
@@ -2657,7 +2655,7 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2657
2655
|
{
|
|
2658
2656
|
value: "right",
|
|
2659
2657
|
label: o.title.alignRight,
|
|
2660
|
-
icon:
|
|
2658
|
+
icon: me
|
|
2661
2659
|
}
|
|
2662
2660
|
]);
|
|
2663
2661
|
function u(e, t) {
|
|
@@ -2665,7 +2663,7 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2665
2663
|
}
|
|
2666
2664
|
function d() {
|
|
2667
2665
|
let e = {
|
|
2668
|
-
id:
|
|
2666
|
+
id: Pe(),
|
|
2669
2667
|
text: "",
|
|
2670
2668
|
url: "",
|
|
2671
2669
|
openInNewTab: !1,
|
|
@@ -2706,7 +2704,7 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2706
2704
|
class: g(h(I)),
|
|
2707
2705
|
title: h(o).menu.removeItem,
|
|
2708
2706
|
onClick: (e) => _(t.id)
|
|
2709
|
-
}, [k(h(
|
|
2707
|
+
}, [k(h(X), {
|
|
2710
2708
|
size: 14,
|
|
2711
2709
|
"stroke-width": 2
|
|
2712
2710
|
})], 10, Gi)]),
|
|
@@ -2771,7 +2769,7 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2771
2769
|
}, {
|
|
2772
2770
|
default: a(() => [b("select", {
|
|
2773
2771
|
class: g(h(B)),
|
|
2774
|
-
value: h(
|
|
2772
|
+
value: h(_t)(e.block.fontFamily),
|
|
2775
2773
|
onChange: n[0] ||= (e) => u("fontFamily", e.target.value || void 0)
|
|
2776
2774
|
}, [b("option", Yi, x(h(o).title.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
2777
2775
|
key: e.value,
|
|
@@ -2783,7 +2781,7 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2783
2781
|
path: "fontSize",
|
|
2784
2782
|
label: h(o).menu.fontSize
|
|
2785
2783
|
}, {
|
|
2786
|
-
default: a(() => [k(
|
|
2784
|
+
default: a(() => [k(kt, {
|
|
2787
2785
|
"model-value": e.block.fontSize,
|
|
2788
2786
|
min: 8,
|
|
2789
2787
|
max: 48,
|
|
@@ -2816,7 +2814,7 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2816
2814
|
path: "textAlign",
|
|
2817
2815
|
label: h(o).menu.textAlign
|
|
2818
2816
|
}, {
|
|
2819
|
-
default: a(() => [k(
|
|
2817
|
+
default: a(() => [k(Q, {
|
|
2820
2818
|
options: l.value,
|
|
2821
2819
|
"model-value": e.block.textAlign,
|
|
2822
2820
|
"onUpdate:modelValue": n[4] ||= (e) => u("textAlign", e)
|
|
@@ -2849,7 +2847,7 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2849
2847
|
path: "spacing",
|
|
2850
2848
|
label: h(o).menu.spacing
|
|
2851
2849
|
}, {
|
|
2852
|
-
default: a(() => [k(
|
|
2850
|
+
default: a(() => [k(kt, {
|
|
2853
2851
|
"model-value": e.block.spacing,
|
|
2854
2852
|
min: 0,
|
|
2855
2853
|
max: 50,
|
|
@@ -2865,7 +2863,7 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2865
2863
|
props: { block: {} },
|
|
2866
2864
|
emits: ["update"],
|
|
2867
2865
|
setup(e, { emit: t }) {
|
|
2868
|
-
let n = t, { t: r } =
|
|
2866
|
+
let n = t, { t: r } = Z();
|
|
2869
2867
|
return (t, o) => (i(), v(A, {
|
|
2870
2868
|
label: h(r).paragraph.paragraphSpacing,
|
|
2871
2869
|
class: "tpl:mb-3.5",
|
|
@@ -2875,7 +2873,7 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2875
2873
|
default: a(() => [b("div", $i, [b("input", {
|
|
2876
2874
|
type: "number",
|
|
2877
2875
|
class: g(h(z)),
|
|
2878
|
-
value: e.block.paragraphSpacing ?? h(
|
|
2876
|
+
value: e.block.paragraphSpacing ?? h(je).paragraphGap,
|
|
2879
2877
|
min: "0",
|
|
2880
2878
|
max: "64",
|
|
2881
2879
|
onInput: o[0] ||= (e) => n("update", { paragraphSpacing: Number(e.target.value) })
|
|
@@ -2886,7 +2884,7 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2886
2884
|
});
|
|
2887
2885
|
// src/utils/rebalanceColumnChildren.ts
|
|
2888
2886
|
function na(e, t) {
|
|
2889
|
-
let n =
|
|
2887
|
+
let n = Je(t);
|
|
2890
2888
|
if (e.length === n) return e;
|
|
2891
2889
|
if (e.length < n) {
|
|
2892
2890
|
let t = Array.from({ length: n - e.length }, () => []);
|
|
@@ -2917,7 +2915,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
2917
2915
|
props: { block: {} },
|
|
2918
2916
|
emits: ["update"],
|
|
2919
2917
|
setup(e, { emit: t }) {
|
|
2920
|
-
let n = e, r = t, { t: o, format: s } =
|
|
2918
|
+
let n = e, r = t, { t: o, format: s } = Z(), u = l(Ee, void 0), d = l(ge, void 0), f = u !== void 0 && Ge(u), m = C(() => d !== !1 || !!n.block.wrapper), y = C(() => f && !n.block.wrapper), S = C(() => f && m.value), w = C(() => Be(n.block)?.applied === !0), T = C(() => [
|
|
2921
2919
|
{
|
|
2922
2920
|
value: "1",
|
|
2923
2921
|
label: o.section.column1
|
|
@@ -2954,7 +2952,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
2954
2952
|
value: "1-2-1",
|
|
2955
2953
|
label: o.section.ratio121
|
|
2956
2954
|
}
|
|
2957
|
-
]), E = C(() =>
|
|
2955
|
+
]), E = C(() => Ue(n.block)), O = C(() => n.block.columnWidths !== void 0 && Fe(n.block) === null), j = C(() => O.value ? "custom" : n.block.columns);
|
|
2958
2956
|
function N(e) {
|
|
2959
2957
|
let t = e.target.value;
|
|
2960
2958
|
if (t === "custom") return;
|
|
@@ -2976,8 +2974,8 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
2976
2974
|
return;
|
|
2977
2975
|
}
|
|
2978
2976
|
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);
|
|
2979
|
-
c[e] =
|
|
2980
|
-
let p =
|
|
2977
|
+
c[e] = Re(f), c[l] = Re(u - c[e]);
|
|
2978
|
+
let p = qe[n.block.columns], m = p !== void 0 && p.every((e, t) => e === c[t]);
|
|
2981
2979
|
r("update", { columnWidths: m ? void 0 : c });
|
|
2982
2980
|
}
|
|
2983
2981
|
function ee(e) {
|
|
@@ -3056,7 +3054,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3056
3054
|
])]),
|
|
3057
3055
|
_: 1
|
|
3058
3056
|
}, 8, ["label"])),
|
|
3059
|
-
k(
|
|
3057
|
+
k(Rt, {
|
|
3060
3058
|
path: "borderRadius",
|
|
3061
3059
|
"model-value": e.block.borderRadius,
|
|
3062
3060
|
label: h(o).section.borderRadius,
|
|
@@ -3064,7 +3062,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3064
3062
|
"testid-prefix": "section",
|
|
3065
3063
|
"onUpdate:modelValue": R
|
|
3066
3064
|
}, null, 8, ["model-value", "label"]),
|
|
3067
|
-
w.value ? _("", !0) : (i(), v(
|
|
3065
|
+
w.value ? _("", !0) : (i(), v(Ft, {
|
|
3068
3066
|
key: 2,
|
|
3069
3067
|
path: "border",
|
|
3070
3068
|
"model-value": e.block.border,
|
|
@@ -3147,7 +3145,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3147
3145
|
},
|
|
3148
3146
|
"onUpdate:modelValue": re
|
|
3149
3147
|
}, null, 8, ["label", "model-value"]),
|
|
3150
|
-
k(
|
|
3148
|
+
k(Rt, {
|
|
3151
3149
|
path: "wrapper.borderRadius",
|
|
3152
3150
|
"model-value": e.block.wrapper.borderRadius,
|
|
3153
3151
|
label: h(o).section.borderRadius,
|
|
@@ -3164,7 +3162,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3164
3162
|
props: { icon: {} },
|
|
3165
3163
|
emits: ["update"],
|
|
3166
3164
|
setup(e, { emit: t }) {
|
|
3167
|
-
let n = e, r = t, { t: o } =
|
|
3165
|
+
let n = e, r = t, { t: o } = Z(), { syntax: s } = Ct(), c = E(), l = C(() => typeof n.icon.imageUrl == "string" ? n.icon.imageUrl : ""), u = C(() => Ve(l.value, s));
|
|
3168
3166
|
function d(e) {
|
|
3169
3167
|
return n.icon.id.includes(".") ? void 0 : `icons.${n.icon.id}.${e}`;
|
|
3170
3168
|
}
|
|
@@ -3187,7 +3185,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3187
3185
|
};
|
|
3188
3186
|
e.alt && (t.alt = e.alt), r("update", t);
|
|
3189
3187
|
}
|
|
3190
|
-
let { canBrowse: S, isUploading: w, showOverlay: T, openMediaBrowser: O } =
|
|
3188
|
+
let { canBrowse: S, isUploading: w, showOverlay: T, openMediaBrowser: O } = mt({
|
|
3191
3189
|
target: c,
|
|
3192
3190
|
value: l,
|
|
3193
3191
|
blocked: u,
|
|
@@ -3202,7 +3200,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3202
3200
|
ref: c,
|
|
3203
3201
|
class: "tpl:relative"
|
|
3204
3202
|
}, [
|
|
3205
|
-
h(T) ? (i(), v(
|
|
3203
|
+
h(T) ? (i(), v(at, {
|
|
3206
3204
|
key: 0,
|
|
3207
3205
|
uploading: h(w)
|
|
3208
3206
|
}, null, 8, ["uploading"])) : _("", !0),
|
|
@@ -3248,13 +3246,13 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3248
3246
|
props: { block: {} },
|
|
3249
3247
|
emits: ["update"],
|
|
3250
3248
|
setup(e, { emit: t }) {
|
|
3251
|
-
let n = e, r = t, { t: o } =
|
|
3249
|
+
let n = e, r = t, { t: o } = Z();
|
|
3252
3250
|
function s(e, t) {
|
|
3253
3251
|
r("update", { [e]: t });
|
|
3254
3252
|
}
|
|
3255
3253
|
function l() {
|
|
3256
3254
|
let e = {
|
|
3257
|
-
id:
|
|
3255
|
+
id: Pe(),
|
|
3258
3256
|
platform: "facebook",
|
|
3259
3257
|
url: ""
|
|
3260
3258
|
};
|
|
@@ -3301,7 +3299,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3301
3299
|
class: g([h(B), "tpl:flex-1"]),
|
|
3302
3300
|
value: e.platform,
|
|
3303
3301
|
onChange: (t) => y(e, t.target.value)
|
|
3304
|
-
}, [(i(!0), p(D, null, c(h(
|
|
3302
|
+
}, [(i(!0), p(D, null, c(h(ft), (e) => (i(), p("option", {
|
|
3305
3303
|
key: e,
|
|
3306
3304
|
value: e
|
|
3307
3305
|
}, x(h(o).social.platforms[e]), 9, va))), 128)), b("option", ya, x(h(o).social.platforms.custom), 1)], 42, _a)]),
|
|
@@ -3310,7 +3308,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3310
3308
|
class: g(h(I)),
|
|
3311
3309
|
title: h(o).social.removeIcon,
|
|
3312
3310
|
onClick: (t) => S(e.id)
|
|
3313
|
-
}, [k(h(
|
|
3311
|
+
}, [k(h(X), {
|
|
3314
3312
|
size: 14,
|
|
3315
3313
|
"stroke-width": 2
|
|
3316
3314
|
})], 10, ba)]),
|
|
@@ -3384,7 +3382,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3384
3382
|
class: "tpl:mb-3.5",
|
|
3385
3383
|
path: "iconSize"
|
|
3386
3384
|
}, {
|
|
3387
|
-
default: a(() => [k(
|
|
3385
|
+
default: a(() => [k(Q, {
|
|
3388
3386
|
options: [
|
|
3389
3387
|
{
|
|
3390
3388
|
value: "small",
|
|
@@ -3424,12 +3422,12 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3424
3422
|
class: "tpl:mb-3.5",
|
|
3425
3423
|
path: "align"
|
|
3426
3424
|
}, {
|
|
3427
|
-
default: a(() => [k(
|
|
3425
|
+
default: a(() => [k(Q, {
|
|
3428
3426
|
options: [
|
|
3429
3427
|
{
|
|
3430
3428
|
value: "left",
|
|
3431
3429
|
label: h(o).title.alignLeft,
|
|
3432
|
-
icon: h(
|
|
3430
|
+
icon: h(K)
|
|
3433
3431
|
},
|
|
3434
3432
|
{
|
|
3435
3433
|
value: "center",
|
|
@@ -3439,7 +3437,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3439
3437
|
{
|
|
3440
3438
|
value: "right",
|
|
3441
3439
|
label: h(o).title.alignRight,
|
|
3442
|
-
icon: h(
|
|
3440
|
+
icon: h(me)
|
|
3443
3441
|
}
|
|
3444
3442
|
],
|
|
3445
3443
|
"model-value": e.block.align,
|
|
@@ -3454,7 +3452,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3454
3452
|
props: { block: {} },
|
|
3455
3453
|
emits: ["update"],
|
|
3456
3454
|
setup(e, { emit: t }) {
|
|
3457
|
-
let n = t, { t: r } =
|
|
3455
|
+
let n = t, { t: r } = Z();
|
|
3458
3456
|
return (t, o) => (i(), v(A, {
|
|
3459
3457
|
label: h(r).spacer.height,
|
|
3460
3458
|
class: "tpl:mb-3.5",
|
|
@@ -3486,15 +3484,15 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3486
3484
|
},
|
|
3487
3485
|
emits: ["update"],
|
|
3488
3486
|
setup(e, { emit: t }) {
|
|
3489
|
-
let n = e, r = t, { t: o } =
|
|
3487
|
+
let n = e, r = t, { t: o } = Z(), s = C(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
|
|
3490
3488
|
function l(e, t) {
|
|
3491
3489
|
r("update", { [e]: t });
|
|
3492
3490
|
}
|
|
3493
3491
|
function u() {
|
|
3494
3492
|
let e = n.block.rows.length > 0 ? n.block.rows[0].cells.length : 3, t = {
|
|
3495
|
-
id:
|
|
3493
|
+
id: Pe(),
|
|
3496
3494
|
cells: Array.from({ length: e }, () => ({
|
|
3497
|
-
id:
|
|
3495
|
+
id: Pe(),
|
|
3498
3496
|
content: ""
|
|
3499
3497
|
}))
|
|
3500
3498
|
};
|
|
@@ -3507,7 +3505,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3507
3505
|
let e = n.block.rows.map((e) => ({
|
|
3508
3506
|
...e,
|
|
3509
3507
|
cells: [...e.cells, {
|
|
3510
|
-
id:
|
|
3508
|
+
id: Pe(),
|
|
3511
3509
|
content: ""
|
|
3512
3510
|
}]
|
|
3513
3511
|
}));
|
|
@@ -3526,7 +3524,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3526
3524
|
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",
|
|
3527
3525
|
disabled: e.block.rows.length <= 1,
|
|
3528
3526
|
onClick: n[0] ||= (t) => d(e.block.rows[e.block.rows.length - 1].id)
|
|
3529
|
-
}, [k(h(
|
|
3527
|
+
}, [k(h(W), {
|
|
3530
3528
|
size: 12,
|
|
3531
3529
|
"stroke-width": 2
|
|
3532
3530
|
})], 8, Ga),
|
|
@@ -3543,7 +3541,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3543
3541
|
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",
|
|
3544
3542
|
disabled: s.value <= 1,
|
|
3545
3543
|
onClick: n[1] ||= (e) => m(s.value - 1)
|
|
3546
|
-
}, [k(h(
|
|
3544
|
+
}, [k(h(W), {
|
|
3547
3545
|
size: 12,
|
|
3548
3546
|
"stroke-width": 2
|
|
3549
3547
|
})], 8, Xa),
|
|
@@ -3641,7 +3639,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3641
3639
|
}, {
|
|
3642
3640
|
default: a(() => [b("select", {
|
|
3643
3641
|
class: g(h(B)),
|
|
3644
|
-
value: h(
|
|
3642
|
+
value: h(_t)(e.block.fontFamily),
|
|
3645
3643
|
onChange: n[7] ||= (e) => l("fontFamily", e.target.value || void 0)
|
|
3646
3644
|
}, [b("option", ro, x(h(o).title.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
3647
3645
|
key: e.value,
|
|
@@ -3680,12 +3678,12 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3680
3678
|
class: "tpl:mb-3.5",
|
|
3681
3679
|
path: "textAlign"
|
|
3682
3680
|
}, {
|
|
3683
|
-
default: a(() => [k(
|
|
3681
|
+
default: a(() => [k(Q, {
|
|
3684
3682
|
options: [
|
|
3685
3683
|
{
|
|
3686
3684
|
value: "left",
|
|
3687
3685
|
label: h(o).title.alignLeft,
|
|
3688
|
-
icon: h(
|
|
3686
|
+
icon: h(K)
|
|
3689
3687
|
},
|
|
3690
3688
|
{
|
|
3691
3689
|
value: "center",
|
|
@@ -3695,7 +3693,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3695
3693
|
{
|
|
3696
3694
|
value: "right",
|
|
3697
3695
|
label: h(o).title.alignRight,
|
|
3698
|
-
icon: h(
|
|
3696
|
+
icon: h(me)
|
|
3699
3697
|
}
|
|
3700
3698
|
],
|
|
3701
3699
|
"model-value": e.block.textAlign,
|
|
@@ -3713,7 +3711,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3713
3711
|
},
|
|
3714
3712
|
emits: ["update"],
|
|
3715
3713
|
setup(e, { emit: t }) {
|
|
3716
|
-
let n = t, { t: r } =
|
|
3714
|
+
let n = t, { t: r } = Z();
|
|
3717
3715
|
function o(e, t) {
|
|
3718
3716
|
n("update", { [e]: t });
|
|
3719
3717
|
}
|
|
@@ -3742,7 +3740,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3742
3740
|
}, {
|
|
3743
3741
|
default: a(() => [b("select", {
|
|
3744
3742
|
class: g(h(B)),
|
|
3745
|
-
value: h(
|
|
3743
|
+
value: h(_t)(e.block.fontFamily),
|
|
3746
3744
|
onChange: n[1] ||= (e) => o("fontFamily", e.target.value || void 0)
|
|
3747
3745
|
}, [b("option", ho, x(h(r).title.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
3748
3746
|
key: e.value,
|
|
@@ -3766,12 +3764,12 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3766
3764
|
class: "tpl:mb-3.5",
|
|
3767
3765
|
path: "textAlign"
|
|
3768
3766
|
}, {
|
|
3769
|
-
default: a(() => [k(
|
|
3767
|
+
default: a(() => [k(Q, {
|
|
3770
3768
|
options: [
|
|
3771
3769
|
{
|
|
3772
3770
|
value: "left",
|
|
3773
3771
|
label: h(r).title.alignLeft,
|
|
3774
|
-
icon: h(
|
|
3772
|
+
icon: h(K)
|
|
3775
3773
|
},
|
|
3776
3774
|
{
|
|
3777
3775
|
value: "center",
|
|
@@ -3781,7 +3779,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3781
3779
|
{
|
|
3782
3780
|
value: "right",
|
|
3783
3781
|
label: h(r).title.alignRight,
|
|
3784
|
-
icon: h(
|
|
3782
|
+
icon: h(me)
|
|
3785
3783
|
}
|
|
3786
3784
|
],
|
|
3787
3785
|
"model-value": e.block.textAlign,
|
|
@@ -3806,14 +3804,14 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3806
3804
|
props: { block: {} },
|
|
3807
3805
|
emits: ["update"],
|
|
3808
3806
|
setup(e, { emit: t }) {
|
|
3809
|
-
let n = e, r = t, { t: o } =
|
|
3807
|
+
let n = e, r = t, { t: o } = Z(), s = l(ve, null), c = l(Oe, Me.liquid), u = it(), d = [
|
|
3810
3808
|
300,
|
|
3811
3809
|
400,
|
|
3812
3810
|
500
|
|
3813
|
-
], f = C(() => !!s), y = C(() =>
|
|
3811
|
+
], f = C(() => !!s), y = C(() => Ve(n.block.url, c)), S = C(() => {
|
|
3814
3812
|
let e = n.block.width;
|
|
3815
3813
|
return e === "full" ? "full" : d.includes(e) ? String(e) : "custom";
|
|
3816
|
-
}), w = C(() => typeof n.block.height == "number" ? "custom" : "auto"), T = E(!1), { start: O } =
|
|
3814
|
+
}), w = C(() => typeof n.block.height == "number" ? "custom" : "auto"), T = E(!1), { start: O } = St(() => {
|
|
3817
3815
|
T.value = !1;
|
|
3818
3816
|
}, 1e3, { immediate: !1 });
|
|
3819
3817
|
function j(e, t) {
|
|
@@ -3982,7 +3980,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3982
3980
|
class: "tpl:mb-3.5",
|
|
3983
3981
|
path: "align"
|
|
3984
3982
|
}, {
|
|
3985
|
-
default: a(() => [k(
|
|
3983
|
+
default: a(() => [k(Q, {
|
|
3986
3984
|
options: [
|
|
3987
3985
|
{
|
|
3988
3986
|
value: "left",
|
|
@@ -4013,9 +4011,9 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
4013
4011
|
"duplicate"
|
|
4014
4012
|
],
|
|
4015
4013
|
setup(e, { emit: t }) {
|
|
4016
|
-
let r = f(() => import("./CountdownToolbar-
|
|
4014
|
+
let r = f(() => import("./CountdownToolbar-DaGxwKfG.js")), a = e, o = t, { t: s } = Z(), c = bt(), u = we(De, "Toolbar"), d = l(Te, []), m = C(() => a.block.type), g = C(() => Ze(a.block)), y = C(() => {
|
|
4017
4015
|
if (g.value) return d.find((e) => e.type === a.block.customType);
|
|
4018
|
-
}), S = C(() => g.value ? y.value?.name ?? a.block.customType :
|
|
4016
|
+
}), S = C(() => g.value ? y.value?.name ?? a.block.customType : rt(m.value, s)), w = C(() => gt(u.fonts.value, "fontFamily" in a.block ? a.block.fontFamily : void 0));
|
|
4019
4017
|
function T(e) {
|
|
4020
4018
|
c.value && o("update", e);
|
|
4021
4019
|
}
|
|
@@ -4027,7 +4025,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
4027
4025
|
disabled: !h(c),
|
|
4028
4026
|
inert: !h(c),
|
|
4029
4027
|
class: "tpl:contents"
|
|
4030
|
-
}, [b("div", Io, [b("div", Lo, [h(
|
|
4028
|
+
}, [b("div", Io, [b("div", Lo, [h(wt)[m.value] ? (i(), v(n(h(wt)[m.value]), {
|
|
4031
4029
|
key: 0,
|
|
4032
4030
|
size: 16,
|
|
4033
4031
|
"stroke-width": 1.5
|
|
@@ -4046,7 +4044,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
4046
4044
|
class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
|
|
4047
4045
|
title: h(s).toolbar.delete,
|
|
4048
4046
|
onClick: a[1] ||= (e) => o("delete")
|
|
4049
|
-
}, [k(h(
|
|
4047
|
+
}, [k(h(G), {
|
|
4050
4048
|
size: 14,
|
|
4051
4049
|
"stroke-width": 2
|
|
4052
4050
|
})], 8, Vo)])]), b("div", Ho, [g.value ? (i(), v(di, {
|
|
@@ -4075,7 +4073,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
4075
4073
|
key: 5,
|
|
4076
4074
|
block: e.block,
|
|
4077
4075
|
onUpdate: T
|
|
4078
|
-
}, null, 8, ["block"])) : m.value === "button" ? (i(), v(
|
|
4076
|
+
}, null, 8, ["block"])) : m.value === "button" ? (i(), v($t, {
|
|
4079
4077
|
key: 6,
|
|
4080
4078
|
block: e.block,
|
|
4081
4079
|
"font-families": w.value,
|
|
@@ -4117,7 +4115,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
4117
4115
|
onUpdate: T
|
|
4118
4116
|
}, null, 8, ["block", "is-first-section"])])], 8, Fo)], 8, Po));
|
|
4119
4117
|
}
|
|
4120
|
-
}), Wo = /* @__PURE__ */ e({ default: () => Go }), Go = /*#__PURE__*/
|
|
4121
|
-
export { Go as default,
|
|
4118
|
+
}), Wo = /* @__PURE__ */ e({ default: () => Go }), Go = /*#__PURE__*/ yt(Uo, [["__scopeId", "data-v-206f038f"]]);
|
|
4119
|
+
export { Go as default, kt as n, Q as r, Wo as t };
|
|
4122
4120
|
|
|
4123
|
-
//# sourceMappingURL=Toolbar-
|
|
4121
|
+
//# sourceMappingURL=Toolbar-BnTSuZQb.js.map
|