@templatical/editor 0.59.0 → 0.59.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiAltTextPopover-CwyKz_9U.js → AiAltTextPopover-BhWHOOKX.js} +3 -3
- package/dist/{AiAltTextReview-DNFnR1PN.js → AiAltTextReview-CmW7pLmo.js} +3 -3
- package/dist/{AiChatPanel-DWWVvJIP.js → AiChatPanel-CV0mCtad.js} +2 -2
- package/dist/{AiPanels-CESbBB63.js → AiPanels-C8M7q_vM.js} +1 -1
- package/dist/{AiRewriteMenu-CjXiI-n4.js → AiRewriteMenu-DC2ZLH5L.js} +7 -7
- package/dist/{BlockIssueBadge-3k568_Od.js → BlockIssueBadge-B8sl9BM1.js} +2 -2
- package/dist/{BlockPreviewCanvas-3FzYSsPm.js → BlockPreviewCanvas-yhOQAQhJ.js} +22 -18
- package/dist/{CloudHeaderExtras-xrHubAHL.js → CloudHeaderExtras-DC_oNrxz.js} +1 -1
- package/dist/{CloudPanels-CSFN-eLV.js → CloudPanels-CD0lsL0R.js} +2 -2
- package/dist/{CollaborationNotices-D9GQ477K.js → CollaborationNotices-DrMrP73M.js} +1 -1
- package/dist/{CollaboratorBar-DsRjAaqd.js → CollaboratorBar-TsK872uC.js} +1 -1
- package/dist/{CommentsPanel-lb-IFzjl.js → CommentsPanel-BX8JVrXU.js} +1 -1
- package/dist/{CommentsSidebar-CVVTCWBH.js → CommentsSidebar-BUlseNwL.js} +2 -2
- package/dist/{CountdownBlock-CSEq79Nc.js → CountdownBlock-AYPypmcX.js} +2 -2
- package/dist/{CountdownToolbar-BV9yQi9k.js → CountdownToolbar-dx3FVRjh.js} +5 -5
- package/dist/{IssuesPanel-pxcWAQJM.js → IssuesPanel-BwnvXxBC.js} +5 -5
- package/dist/{LanguageMenu-CEKRbNhA.js → LanguageMenu-Cf5bKocE.js} +5 -5
- package/dist/{LocaleNotices-j4aMFfmc.js → LocaleNotices-CGEp0pQ8.js} +2 -2
- package/dist/{LogicTagInsertButton-BDIsyl3C.js → LogicTagInsertButton-BdDe-vrZ.js} +8 -8
- package/dist/{MergeTagInput-De1yWoc2.js → MergeTagInput-CTTi-eB0.js} +1 -1
- package/dist/{MergeTagModeToggle-CL96pI1E.js → MergeTagModeToggle-Bd0svGQm.js} +3 -3
- package/dist/{MergeTagTextarea-DDyV8U44.js → MergeTagTextarea-DiahMV-3.js} +4 -4
- package/dist/{ParagraphEditor-Vz90-hhN.js → ParagraphEditor-Db1cmj8Y.js} +11 -11
- package/dist/{RestoreVersionDialog-BgrtpVl1.js → RestoreVersionDialog-DA1Z0q9Z.js} +2 -2
- package/dist/{RichTextEditorContent-C2Yj1-ZA.js → RichTextEditorContent-CyO6e4ZG.js} +6 -6
- package/dist/{SaveBlockDialog-DRvLFKWJ.js → SaveBlockDialog-D7SaFxa_.js} +6 -6
- package/dist/{SavedBlocksBrowserModal-Dw0uF-NT.js → SavedBlocksBrowserModal-B5r3LWWG.js} +6 -6
- package/dist/{SavedBlocksPanels-BReNi8sg.js → SavedBlocksPanels-BH2f7jm-.js} +1 -1
- package/dist/{SavedBlocksPickBar-BQX4g7OE.js → SavedBlocksPickBar-B24TScw0.js} +2 -2
- package/dist/{TemplateSettings-CBCaybvd.js → TemplateSettings-CuN9Vkl_.js} +8 -8
- package/dist/{TestEmailModal-BiCUiRFo.js → TestEmailModal-C4DAaohi.js} +12 -9
- package/dist/{TestEmailPanel-Bfr-sGrI.js → TestEmailPanel-DoMcVJSE.js} +1 -1
- package/dist/{TitleEditor-B8thQPgg.js → TitleEditor-b5Pr_m9j.js} +8 -8
- package/dist/{Toolbar-FIYSw3Us.js → Toolbar-BOf7Y862.js} +14 -14
- package/dist/{TplModal-BIqO0owX.js → TplModal-DAcXzBJh.js} +4 -4
- package/dist/{VersionHistoryMenu-6jMve6By.js → VersionHistoryMenu-TbIGteNi.js} +2 -2
- package/dist/{VersionHistoryPanels-C91mfsMA.js → VersionHistoryPanels-Ia6ipOqG.js} +1 -1
- package/dist/{VersionPreviewBanner-Bq8z1SUc.js → VersionPreviewBanner-CRfu6quf.js} +1 -1
- package/dist/{WrapperBlock-BAqgP8hm.js → WrapperBlock-BZenrXM6.js} +4 -4
- package/dist/{blockTypeIcons-VX_8UQ21.js → blockTypeIcons-DdYZy8yG.js} +1 -1
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiAltTextPopover-Dj-VLU88.js → AiAltTextPopover-CcX_OMUU.js} +4 -4
- package/dist/cdn/chunks/{AiAltTextPopover-Dj-VLU88.js.map → AiAltTextPopover-CcX_OMUU.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-tVkJPOk6.js → AiAltTextReview-Dmm3h0jd.js} +4 -4
- package/dist/cdn/chunks/{AiAltTextReview-tVkJPOk6.js.map → AiAltTextReview-Dmm3h0jd.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-CYPvHQGQ.js → AiChatPanel-DV23DJ-2.js} +3 -3
- package/dist/cdn/chunks/{AiChatPanel-CYPvHQGQ.js.map → AiChatPanel-DV23DJ-2.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-ChTLCmMS.js → AiPanels-CxhOpMAp.js} +2 -2
- package/dist/cdn/chunks/{AiPanels-ChTLCmMS.js.map → AiPanels-CxhOpMAp.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-99qbfCZI.js → AiRewriteMenu-87-O514r.js} +8 -8
- package/dist/cdn/chunks/{AiRewriteMenu-99qbfCZI.js.map → AiRewriteMenu-87-O514r.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-BKO4Mr8f.js → BlockIssueBadge-Dp06vQd3.js} +3 -3
- package/dist/cdn/chunks/{BlockIssueBadge-BKO4Mr8f.js.map → BlockIssueBadge-Dp06vQd3.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-BF0yCTKP.js → BlockPreviewCanvas-DQGzUvZ5.js} +23 -19
- package/dist/cdn/chunks/BlockPreviewCanvas-DQGzUvZ5.js.map +1 -0
- package/dist/cdn/chunks/{CloudHeaderExtras-O_K3jmgO.js → CloudHeaderExtras-Cd-ePldd.js} +2 -2
- package/dist/cdn/chunks/{CloudHeaderExtras-O_K3jmgO.js.map → CloudHeaderExtras-Cd-ePldd.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-gV2WFHQk.js → CloudPanels-D8fchoYt.js} +3 -3
- package/dist/cdn/chunks/{CloudPanels-gV2WFHQk.js.map → CloudPanels-D8fchoYt.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-CwAoa-73.js → CollaborationNotices-DNEs3g9B.js} +2 -2
- package/dist/cdn/chunks/{CollaborationNotices-CwAoa-73.js.map → CollaborationNotices-DNEs3g9B.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-DdQQwtwd.js → CollaboratorBar-CN6XAlbn.js} +2 -2
- package/dist/cdn/chunks/{CollaboratorBar-DdQQwtwd.js.map → CollaboratorBar-CN6XAlbn.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-C8AKtxiG.js → CommentsPanel-CxZ1kFcK.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-C8AKtxiG.js.map → CommentsPanel-CxZ1kFcK.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-FxY0RHSq.js → CommentsSidebar-DCr2mV8b.js} +3 -3
- package/dist/cdn/chunks/{CommentsSidebar-FxY0RHSq.js.map → CommentsSidebar-DCr2mV8b.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-DGgnPUlu.js → CountdownBlock--hlKE2aj.js} +3 -3
- package/dist/cdn/chunks/{CountdownBlock-DGgnPUlu.js.map → CountdownBlock--hlKE2aj.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-9PtYUgCW.js → CountdownToolbar-CUTbVPPV.js} +6 -6
- package/dist/cdn/chunks/{CountdownToolbar-9PtYUgCW.js.map → CountdownToolbar-CUTbVPPV.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-Co-ffgWa.js → IssuesPanel-BhcSzwuL.js} +7 -7
- package/dist/cdn/chunks/{IssuesPanel-Co-ffgWa.js.map → IssuesPanel-BhcSzwuL.js.map} +1 -1
- package/dist/cdn/chunks/{LanguageMenu-fL4DRGGQ.js → LanguageMenu-6wGhkyFT.js} +99 -99
- package/dist/cdn/chunks/{LanguageMenu-fL4DRGGQ.js.map → LanguageMenu-6wGhkyFT.js.map} +1 -1
- package/dist/cdn/chunks/{LocaleNotices-BVDJ7kyj.js → LocaleNotices-Br92Xueo.js} +3 -3
- package/dist/cdn/chunks/{LocaleNotices-BVDJ7kyj.js.map → LocaleNotices-Br92Xueo.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-DPYA8LJW.js → LogicTagInsertButton-r2EVUtDU.js} +9 -9
- package/dist/cdn/chunks/{LogicTagInsertButton-DPYA8LJW.js.map → LogicTagInsertButton-r2EVUtDU.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-Cxfjq3tx.js → MergeTagInput-Dh3N6CEV.js} +2 -2
- package/dist/cdn/chunks/{MergeTagInput-Cxfjq3tx.js.map → MergeTagInput-Dh3N6CEV.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BmNGV3yc.js → MergeTagModeToggle-D6u3hMrI.js} +4 -4
- package/dist/cdn/chunks/{MergeTagModeToggle-BmNGV3yc.js.map → MergeTagModeToggle-D6u3hMrI.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-DmwrPAss.js → MergeTagTextarea-BpVtpiNL.js} +8 -8
- package/dist/cdn/chunks/{MergeTagTextarea-DmwrPAss.js.map → MergeTagTextarea-BpVtpiNL.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-A_OEuQ1Q.js → ParagraphEditor-DGJmPAC1.js} +12 -12
- package/dist/cdn/chunks/{ParagraphEditor-A_OEuQ1Q.js.map → ParagraphEditor-DGJmPAC1.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-Ca_lUsk4.js → RestoreVersionDialog-D5qeCa0F.js} +3 -3
- package/dist/cdn/chunks/{RestoreVersionDialog-Ca_lUsk4.js.map → RestoreVersionDialog-D5qeCa0F.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-Dq4TROOg.js → RichTextEditorContent-DyGiXKKI.js} +7 -7
- package/dist/cdn/chunks/{RichTextEditorContent-Dq4TROOg.js.map → RichTextEditorContent-DyGiXKKI.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-BXRCqrZX.js → SaveBlockDialog-B0TJYxd8.js} +7 -7
- package/dist/cdn/chunks/{SaveBlockDialog-BXRCqrZX.js.map → SaveBlockDialog-B0TJYxd8.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DdaBcSOI.js → SavedBlocksBrowserModal-D8Ly7LrA.js} +6 -6
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DdaBcSOI.js.map → SavedBlocksBrowserModal-D8Ly7LrA.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-BcVFZDKI.js → SavedBlocksPanels-Co1cbWR8.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-BcVFZDKI.js.map → SavedBlocksPanels-Co1cbWR8.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-o66PhlTo.js → SavedBlocksPickBar-DNtVbpm-.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPickBar-o66PhlTo.js.map → SavedBlocksPickBar-DNtVbpm-.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-uoiUkd2l.js → TemplateSettings-BRc878ZF.js} +9 -9
- package/dist/cdn/chunks/{TemplateSettings-uoiUkd2l.js.map → TemplateSettings-BRc878ZF.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-WOC7bmF_.js → TestEmailModal-CIui7VfS.js} +13 -10
- package/dist/cdn/chunks/TestEmailModal-CIui7VfS.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel-DUWH9xsZ.js → TestEmailPanel-vKvruW_r.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-DUWH9xsZ.js.map → TestEmailPanel-vKvruW_r.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-EHW0lgG4.js → TitleEditor-BI-9Nnj3.js} +8 -8
- package/dist/cdn/chunks/{TitleEditor-EHW0lgG4.js.map → TitleEditor-BI-9Nnj3.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-BzAuH2G4.js → Toolbar-CYnnArxv.js} +418 -418
- package/dist/cdn/chunks/{Toolbar-BzAuH2G4.js.map → Toolbar-CYnnArxv.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-B9DVglkN.js → TplModal-B3nZeGWK.js} +5 -5
- package/dist/cdn/chunks/{TplModal-B9DVglkN.js.map → TplModal-B3nZeGWK.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-DDqYMqC2.js → VersionHistoryMenu-CMGfAKuV.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryMenu-DDqYMqC2.js.map → VersionHistoryMenu-CMGfAKuV.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-DO-kcL28.js → VersionHistoryPanels-Bb2ouQg7.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-DO-kcL28.js.map → VersionHistoryPanels-Bb2ouQg7.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-CYT5QUoc.js → VersionPreviewBanner-573UP-g4.js} +2 -2
- package/dist/cdn/chunks/{VersionPreviewBanner-CYT5QUoc.js.map → VersionPreviewBanner-573UP-g4.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-CyD_pW18.js → WrapperBlock-DVu632LD.js} +5 -5
- package/dist/cdn/chunks/{WrapperBlock-CyD_pW18.js.map → WrapperBlock-DVu632LD.js.map} +1 -1
- package/dist/cdn/chunks/{composables-CN9j_FH4.js → composables-DY3anqHO.js} +574 -571
- package/dist/cdn/chunks/composables-DY3anqHO.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-D8zeR9D2.js → createCloudRuntime-B5numxlW.js} +4 -4
- package/dist/cdn/chunks/{createCloudRuntime-D8zeR9D2.js.map → createCloudRuntime-B5numxlW.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-BYJPv1sA.js → extensions-BWVlr8Ga.js} +5 -5
- package/dist/cdn/chunks/{extensions-BYJPv1sA.js.map → extensions-BWVlr8Ga.js.map} +1 -1
- package/dist/cdn/chunks/keys-ywH4jHJ2.js +11 -0
- package/dist/cdn/chunks/keys-ywH4jHJ2.js.map +1 -0
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-nDyYIXvL.js → normalizeMergeTagMarkup-Dw3rFvyd.js} +40 -40
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-nDyYIXvL.js.map → normalizeMergeTagMarkup-Dw3rFvyd.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-CxwYcAQe.js → preRenderCustomBlocks-BGtb8Xbp.js} +4 -4
- package/dist/cdn/chunks/{preRenderCustomBlocks-CxwYcAQe.js.map → preRenderCustomBlocks-BGtb8Xbp.js.map} +1 -1
- package/dist/cdn/chunks/{sanitizeHtml-5T_KaDcp.js → sanitizeHtml-CLRY8s2s.js} +2 -2
- package/dist/cdn/chunks/{sanitizeHtml-5T_KaDcp.js.map → sanitizeHtml-CLRY8s2s.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-bvQ57o1m.js → socialIcons-kYhdXJ9P.js} +255 -255
- package/dist/cdn/chunks/{socialIcons-bvQ57o1m.js.map → socialIcons-kYhdXJ9P.js.map} +1 -1
- package/dist/cdn/chunks/{src-BXrhjqCv.js → src-B7X7x_ST.js} +154 -154
- package/dist/cdn/chunks/{src-BXrhjqCv.js.map → src-B7X7x_ST.js.map} +1 -1
- package/dist/cdn/chunks/{src-BRyzUujm.js → src-BmzzkUf7.js} +539 -539
- package/dist/cdn/chunks/{src-BRyzUujm.js.map → src-BmzzkUf7.js.map} +1 -1
- package/dist/cdn/chunks/{src-CVHGPKSW.js → src-DY2kMjoD.js} +593 -589
- package/dist/cdn/chunks/src-DY2kMjoD.js.map +1 -0
- package/dist/cdn/chunks/{useCloudI18n-CWgySYuJ.js → useCloudI18n-BTV9uu3c.js} +2 -2
- package/dist/cdn/chunks/{useCloudI18n-CWgySYuJ.js.map → useCloudI18n-BTV9uu3c.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorRoot-BA4vV7sK.js → useEditorRoot-D0Lp2x4_.js} +2 -2
- package/dist/cdn/chunks/{useEditorRoot-BA4vV7sK.js.map → useEditorRoot-D0Lp2x4_.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-JsIdvX-i.js → useI18n-DPg6rPbu.js} +2 -2
- package/dist/cdn/chunks/{useI18n-JsIdvX-i.js.map → useI18n-DPg6rPbu.js.map} +1 -1
- package/dist/cdn/chunks/useLocalizedDisplay-B5wMJLru.js +33 -0
- package/dist/cdn/chunks/{useLocalizedDisplay-7iwZ1UhB.js.map → useLocalizedDisplay-B5wMJLru.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-C10Wef7d.js → useLogicTag-0wkSxy3z.js} +3 -3
- package/dist/cdn/chunks/{useLogicTag-C10Wef7d.js.map → useLogicTag-0wkSxy3z.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-Dd26TcvH.js → useMergeTag-y3bX8M_6.js} +3 -3
- package/dist/cdn/chunks/{useMergeTag-Dd26TcvH.js.map → useMergeTag-y3bX8M_6.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-DWRQRT2P.js → usePopoverPosition-CBp9uwjV.js} +2 -2
- package/dist/cdn/chunks/{usePopoverPosition-DWRQRT2P.js.map → usePopoverPosition-CBp9uwjV.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-CArjwH-u.js → useScrollToBlock-32EnuMwu.js} +2 -2
- package/dist/cdn/chunks/{useScrollToBlock-CArjwH-u.js.map → useScrollToBlock-32EnuMwu.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-BaeBoPQZ.js → withCurrentFont-B42BKo9N.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-BaeBoPQZ.js.map → withCurrentFont-B42BKo9N.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +600 -600
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{composables-DbqKYIRE.js → composables-CFTH0Nqb.js} +867 -864
- package/dist/{createCloudRuntime-DiUnYjKr.js → createCloudRuntime-BvWlm_38.js} +3 -3
- package/dist/{dist-BTjObRcv.js → dist-CMo4K5So.js} +277 -273
- package/dist/{extensions-CAuXwpbI.js → extensions-BPVackEE.js} +4 -4
- package/dist/index.d.ts +29 -7
- package/dist/keys-B4DimcgX.js +9 -0
- package/dist/{normalizeMergeTagMarkup-fgoVMKAc.js → normalizeMergeTagMarkup-PQqrbfmt.js} +1 -1
- package/dist/{preRenderCustomBlocks-CgPtlLGL.js → preRenderCustomBlocks-Dg5GBNi2.js} +1 -1
- package/dist/{sanitizeHtml-D2wueiEe.js → sanitizeHtml-DVdfdxOz.js} +1 -1
- package/dist/{socialIcons-RKdTgJip.js → socialIcons-DBHv_ntg.js} +4 -4
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +563 -563
- package/dist/{useCloudI18n-nMZ9f_4b.js → useCloudI18n-BnuOL1YS.js} +1 -1
- package/dist/{useEditorRoot-DpssP9rX.js → useEditorRoot-DWfC2CVC.js} +1 -1
- package/dist/{useI18n-C2p-qHeb.js → useI18n-Cx9W7OWb.js} +1 -1
- package/dist/{useLocalizedDisplay-9RqT2y_Y.js → useLocalizedDisplay-CbFM0cCV.js} +1 -1
- package/dist/{useLogicTag-59fmujI7.js → useLogicTag-CVOj0VUv.js} +2 -2
- package/dist/{useMergeTag-M1vauWet.js → useMergeTag-Bams_kam.js} +2 -2
- package/dist/{usePopoverPosition-L9MOHBM-.js → usePopoverPosition-DF0ZYH7g.js} +1 -1
- package/dist/{useScrollToBlock-BMF0Dt5l.js → useScrollToBlock-CwUQ_nKz.js} +1 -1
- package/dist/{withCurrentFont-BXZ7g-K6.js → withCurrentFont-y0O5kOLW.js} +1 -1
- package/package.json +7 -7
- package/dist/cdn/chunks/BlockPreviewCanvas-BF0yCTKP.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-WOC7bmF_.js.map +0 -1
- package/dist/cdn/chunks/composables-CN9j_FH4.js.map +0 -1
- package/dist/cdn/chunks/keys-DNv3xXxI.js +0 -11
- package/dist/cdn/chunks/keys-DNv3xXxI.js.map +0 -1
- package/dist/cdn/chunks/src-CVHGPKSW.js.map +0 -1
- package/dist/cdn/chunks/useLocalizedDisplay-7iwZ1UhB.js +0 -33
- package/dist/keys-BeQy64On.js +0 -9
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-QGRDbDUS.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-BpVtpiNL.js";
|
|
4
|
+
import { c as M } from "./LogicTagInsertButton-r2EVUtDU.js";
|
|
5
|
+
import { t as N } from "./MergeTagInput-Dh3N6CEV.js";
|
|
6
6
|
import { t as P } from "./ToggleSwitch-C0w0srN_.js";
|
|
7
|
-
import { C as F, S as I, _ as L, b as ee, c as
|
|
8
|
-
import { $ as
|
|
9
|
-
import { t as
|
|
10
|
-
import {
|
|
11
|
-
import { n as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { F as
|
|
15
|
-
import { $ as
|
|
16
|
-
import { t as
|
|
17
|
-
import { c as
|
|
18
|
-
import { n as
|
|
19
|
-
import { _ as
|
|
20
|
-
import { t as
|
|
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, v as V, y as ne } from "./styleConstants-Br6CIRoS.js";
|
|
8
|
+
import { $ as re, At as ie, Bt as ae, Ft as oe, H, Mt as se, O as ce, R as le, _ as ue, _t as de, c as fe, et as U, f as pe, gt as W, h as G, it as K, lt as q, rt as J, t as Y, v as X } from "./icons-C7vjUBLn.js";
|
|
9
|
+
import { t as Z } from "./useI18n-DPg6rPbu.js";
|
|
10
|
+
import { Bt as me, Dn as he, En as ge, H as _e, I as ve, Sn as ye, W as be, an as xe, dn as Se, fn as Ce, g as we, hn as Te, mn as Ee, pn as De, vn as Oe, yn as ke, yt as Ae } from "./src-DY2kMjoD.js";
|
|
11
|
+
import { n as je, t as Me } from "./withCurrentFont-B42BKo9N.js";
|
|
12
|
+
import { t as Ne } from "./languageName-DEEOhDWI.js";
|
|
13
|
+
import { t as Pe } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
14
|
+
import { F as Fe, T as Ie, _ as Le, b as Re, d as ze, f as Be, g as Ve, h as He, i as Ue, l as We, m as Ge, p as Ke, r as qe, s as Je, u as Ye, v as Xe } from "./socialIcons-kYhdXJ9P.js";
|
|
15
|
+
import { $ as Ze, B as Qe, C as $e, H as et, O as tt, T as nt, W as rt, _ as it, b as at, h as ot, p as st, r as ct, ut as lt, v as ut } from "./keys-ywH4jHJ2.js";
|
|
16
|
+
import { t as dt } from "./logger-CqQTfJGx.js";
|
|
17
|
+
import { c as ft, r as pt } from "./usePopoverPosition-CBp9uwjV.js";
|
|
18
|
+
import { n as mt } from "./useLocalizedDisplay-B5wMJLru.js";
|
|
19
|
+
import { _ as ht } from "./dist-BtWMy7UQ.js";
|
|
20
|
+
import { t as gt } from "./blockTypeIcons-CGxNYHVA.js";
|
|
21
21
|
// src/components/SlidingPillSelect.vue?vue&type=script&setup=true&lang.ts
|
|
22
|
-
var
|
|
22
|
+
var _t = [
|
|
23
23
|
"aria-checked",
|
|
24
24
|
"aria-label",
|
|
25
25
|
"disabled",
|
|
26
26
|
"aria-disabled",
|
|
27
27
|
"title",
|
|
28
28
|
"onClick"
|
|
29
|
-
],
|
|
29
|
+
], vt = { key: 1 }, Q = /* @__PURE__ */ r({
|
|
30
30
|
__name: "SlidingPillSelect",
|
|
31
31
|
props: {
|
|
32
32
|
options: {},
|
|
@@ -71,14 +71,14 @@ var gt = [
|
|
|
71
71
|
key: 0,
|
|
72
72
|
size: 14,
|
|
73
73
|
"stroke-width": 2
|
|
74
|
-
})) : (i(), p("span",
|
|
74
|
+
})) : (i(), p("span", vt, x(t.label), 1))], 12, _t))), 128))], 4));
|
|
75
75
|
}
|
|
76
|
-
}),
|
|
76
|
+
}), yt = { class: "tpl:flex tpl:items-stretch" }, bt = [
|
|
77
77
|
"data-testid",
|
|
78
78
|
"value",
|
|
79
79
|
"min",
|
|
80
80
|
"max"
|
|
81
|
-
],
|
|
81
|
+
], xt = /* @__PURE__ */ r({
|
|
82
82
|
__name: "NumberWithSuffix",
|
|
83
83
|
props: {
|
|
84
84
|
modelValue: {},
|
|
@@ -94,22 +94,22 @@ var gt = [
|
|
|
94
94
|
let t = e.target;
|
|
95
95
|
t.validity?.badInput || n("update:modelValue", Number(t.value));
|
|
96
96
|
}
|
|
97
|
-
return (t, n) => (i(), p("div",
|
|
97
|
+
return (t, n) => (i(), p("div", yt, [b("input", {
|
|
98
98
|
type: "number",
|
|
99
99
|
"data-testid": e.testid,
|
|
100
|
-
class: g(h(
|
|
100
|
+
class: g(h(z)),
|
|
101
101
|
value: e.modelValue,
|
|
102
102
|
min: e.min,
|
|
103
103
|
max: e.max,
|
|
104
104
|
onInput: r
|
|
105
|
-
}, null, 42,
|
|
105
|
+
}, null, 42, bt), b("span", { class: g(h(L)) }, x(e.suffix), 3)]));
|
|
106
106
|
}
|
|
107
|
-
}),
|
|
107
|
+
}), St = [
|
|
108
108
|
"aria-pressed",
|
|
109
109
|
"aria-label",
|
|
110
110
|
"title",
|
|
111
111
|
"data-testid"
|
|
112
|
-
],
|
|
112
|
+
], Ct = /* @__PURE__ */ r({
|
|
113
113
|
__name: "LinkToggle",
|
|
114
114
|
props: {
|
|
115
115
|
linked: { type: Boolean },
|
|
@@ -128,20 +128,20 @@ var gt = [
|
|
|
128
128
|
title: e.linked ? e.unlinkLabel : e.linkLabel,
|
|
129
129
|
"data-testid": e.testid,
|
|
130
130
|
onClick: r[0] ||= (e) => n("toggle")
|
|
131
|
-
}, [e.linked ? (i(), v(h(
|
|
131
|
+
}, [e.linked ? (i(), v(h(q), {
|
|
132
132
|
key: 0,
|
|
133
133
|
size: 14,
|
|
134
134
|
"stroke-width": 2
|
|
135
|
-
})) : (i(), v(h(
|
|
135
|
+
})) : (i(), v(h(fe), {
|
|
136
136
|
key: 1,
|
|
137
137
|
size: 14,
|
|
138
138
|
"stroke-width": 2
|
|
139
|
-
}))], 10,
|
|
139
|
+
}))], 10, St));
|
|
140
140
|
}
|
|
141
|
-
}),
|
|
141
|
+
}), wt = {
|
|
142
142
|
key: 0,
|
|
143
143
|
class: "tpl:mb-3.5"
|
|
144
|
-
},
|
|
144
|
+
}, Tt = { class: "tpl:mb-3.5" }, Et = { class: "tpl:mb-3.5" }, Dt = /* @__PURE__ */ r({
|
|
145
145
|
__name: "BorderControl",
|
|
146
146
|
props: {
|
|
147
147
|
path: {},
|
|
@@ -150,7 +150,7 @@ var gt = [
|
|
|
150
150
|
},
|
|
151
151
|
emits: ["update:modelValue"],
|
|
152
152
|
setup(e, { emit: t }) {
|
|
153
|
-
let n = e, r = t, { t: s } =
|
|
153
|
+
let n = e, r = t, { t: s } = Z(), c = {
|
|
154
154
|
width: 0,
|
|
155
155
|
style: "solid",
|
|
156
156
|
color: "#000000"
|
|
@@ -160,7 +160,7 @@ var gt = [
|
|
|
160
160
|
}
|
|
161
161
|
let u = C(() => {
|
|
162
162
|
let e = n.modelValue;
|
|
163
|
-
return !e ||
|
|
163
|
+
return !e || ke.every((t) => l(e[t], e.top));
|
|
164
164
|
}), d = E(u.value);
|
|
165
165
|
o(u, (e) => {
|
|
166
166
|
!e && d.value && (d.value = !1);
|
|
@@ -168,13 +168,13 @@ var gt = [
|
|
|
168
168
|
let f = E("top"), m = C(() => n.modelValue?.[d.value ? "top" : f.value] ?? c), y = (e) => !!e && e.width > 0;
|
|
169
169
|
function S(e) {
|
|
170
170
|
if (d.value) {
|
|
171
|
-
r("update:modelValue", y(e) ?
|
|
171
|
+
r("update:modelValue", y(e) ? he(e) : void 0);
|
|
172
172
|
return;
|
|
173
173
|
}
|
|
174
174
|
let t = {
|
|
175
|
-
...n.modelValue ??
|
|
175
|
+
...n.modelValue ?? he(c),
|
|
176
176
|
[f.value]: e
|
|
177
|
-
}, i =
|
|
177
|
+
}, i = ke.some((e) => y(t[e]));
|
|
178
178
|
r("update:modelValue", i ? t : void 0);
|
|
179
179
|
}
|
|
180
180
|
function w(e) {
|
|
@@ -197,10 +197,10 @@ var gt = [
|
|
|
197
197
|
d.value = !0;
|
|
198
198
|
let e = n.modelValue;
|
|
199
199
|
if (!e) return;
|
|
200
|
-
let t = y(e[f.value]) ? e[f.value] :
|
|
201
|
-
r("update:modelValue", t ?
|
|
200
|
+
let t = y(e[f.value]) ? e[f.value] : ke.map((t) => e[t]).find(y);
|
|
201
|
+
r("update:modelValue", t ? he(t) : void 0);
|
|
202
202
|
}
|
|
203
|
-
let j = C(() =>
|
|
203
|
+
let j = C(() => ke.map((e) => ({
|
|
204
204
|
value: e,
|
|
205
205
|
label: s.spacingControl[e]
|
|
206
206
|
})));
|
|
@@ -208,7 +208,7 @@ var gt = [
|
|
|
208
208
|
path: e.path,
|
|
209
209
|
label: h(s).blockSettings.border
|
|
210
210
|
}, {
|
|
211
|
-
"label-actions": a(() => [k(
|
|
211
|
+
"label-actions": a(() => [k(Ct, {
|
|
212
212
|
linked: d.value,
|
|
213
213
|
"link-label": h(s).blockSettings.linkSides,
|
|
214
214
|
"unlink-label": h(s).blockSettings.unlinkSides,
|
|
@@ -221,19 +221,19 @@ var gt = [
|
|
|
221
221
|
"testid"
|
|
222
222
|
])]),
|
|
223
223
|
default: a(() => [
|
|
224
|
-
d.value ? _("", !0) : (i(), p("div",
|
|
224
|
+
d.value ? _("", !0) : (i(), p("div", wt, [b("label", { class: g(h(V)) }, x(h(s).blockSettings.borderSide), 3), k(Q, {
|
|
225
225
|
options: j.value,
|
|
226
226
|
"model-value": f.value,
|
|
227
227
|
"onUpdate:modelValue": n[0] ||= (e) => f.value = e
|
|
228
228
|
}, null, 8, ["options", "model-value"])])),
|
|
229
|
-
b("div",
|
|
229
|
+
b("div", Tt, [b("label", { class: g(h(V)) }, x(h(s).blockSettings.borderWidth), 3), k(xt, {
|
|
230
230
|
"model-value": m.value.width,
|
|
231
231
|
min: 0,
|
|
232
232
|
suffix: "px",
|
|
233
233
|
testid: `${e.testidPrefix}-border-width-input`,
|
|
234
234
|
"onUpdate:modelValue": w
|
|
235
235
|
}, null, 8, ["model-value", "testid"])]),
|
|
236
|
-
m.value.width > 0 ? (i(), p(D, { key: 1 }, [b("div",
|
|
236
|
+
m.value.width > 0 ? (i(), p(D, { key: 1 }, [b("div", Et, [b("label", { class: g(h(V)) }, x(h(s).blockSettings.borderStyle), 3), k(Q, {
|
|
237
237
|
options: [
|
|
238
238
|
{
|
|
239
239
|
value: "solid",
|
|
@@ -250,7 +250,7 @@ var gt = [
|
|
|
250
250
|
],
|
|
251
251
|
"model-value": m.value.style,
|
|
252
252
|
"onUpdate:modelValue": n[1] ||= (e) => T({ style: e })
|
|
253
|
-
}, null, 8, ["options", "model-value"])]), b("div", null, [b("label", { class: g(h(
|
|
253
|
+
}, null, 8, ["options", "model-value"])]), b("div", null, [b("label", { class: g(h(V)) }, x(h(s).blockSettings.borderColor), 3), k(M, {
|
|
254
254
|
"model-value": m.value.color,
|
|
255
255
|
"onUpdate:modelValue": n[2] ||= (e) => T({ color: e })
|
|
256
256
|
}, null, 8, ["model-value"])])], 64)) : _("", !0)
|
|
@@ -258,10 +258,10 @@ var gt = [
|
|
|
258
258
|
_: 1
|
|
259
259
|
}, 8, ["path", "label"]));
|
|
260
260
|
}
|
|
261
|
-
}),
|
|
261
|
+
}), Ot = {
|
|
262
262
|
key: 1,
|
|
263
263
|
class: "tpl:grid tpl:grid-cols-2 tpl:gap-2"
|
|
264
|
-
},
|
|
264
|
+
}, kt = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, At = /* @__PURE__ */ r({
|
|
265
265
|
__name: "RadiusControl",
|
|
266
266
|
props: {
|
|
267
267
|
path: {},
|
|
@@ -272,7 +272,7 @@ var gt = [
|
|
|
272
272
|
},
|
|
273
273
|
emits: ["update:modelValue"],
|
|
274
274
|
setup(e, { emit: t }) {
|
|
275
|
-
let n = e, r = t, { t: s } =
|
|
275
|
+
let n = e, r = t, { t: s } = Z(), l = {
|
|
276
276
|
topLeft: "cornerTopLeft",
|
|
277
277
|
topRight: "cornerTopRight",
|
|
278
278
|
bottomRight: "cornerBottomRight",
|
|
@@ -290,7 +290,7 @@ var gt = [
|
|
|
290
290
|
bottomRight: e,
|
|
291
291
|
bottomLeft: e
|
|
292
292
|
} : e;
|
|
293
|
-
}), f = C(() =>
|
|
293
|
+
}), f = C(() => Oe.every((e) => d.value[e] === d.value.topLeft)), m = E(f.value);
|
|
294
294
|
o(f, (e) => {
|
|
295
295
|
!e && m.value && (m.value = !1);
|
|
296
296
|
});
|
|
@@ -313,7 +313,7 @@ var gt = [
|
|
|
313
313
|
path: e.path,
|
|
314
314
|
label: e.label
|
|
315
315
|
}, {
|
|
316
|
-
"label-actions": a(() => [k(
|
|
316
|
+
"label-actions": a(() => [k(Ct, {
|
|
317
317
|
linked: m.value,
|
|
318
318
|
"link-label": h(s).blockSettings.linkCorners,
|
|
319
319
|
"unlink-label": h(s).blockSettings.unlinkCorners,
|
|
@@ -325,7 +325,7 @@ var gt = [
|
|
|
325
325
|
"unlink-label",
|
|
326
326
|
"testid"
|
|
327
327
|
])]),
|
|
328
|
-
default: a(() => [m.value ? (i(), v(
|
|
328
|
+
default: a(() => [m.value ? (i(), v(xt, {
|
|
329
329
|
key: 0,
|
|
330
330
|
"model-value": d.value.topLeft,
|
|
331
331
|
min: 0,
|
|
@@ -337,7 +337,7 @@ var gt = [
|
|
|
337
337
|
"model-value",
|
|
338
338
|
"max",
|
|
339
339
|
"testid"
|
|
340
|
-
])) : (i(), p("div",
|
|
340
|
+
])) : (i(), p("div", Ot, [(i(), p(D, null, c(u, (t) => b("div", { key: t }, [b("label", kt, x(h(s).blockSettings[l[t]]), 1), k(xt, {
|
|
341
341
|
"model-value": d.value[t],
|
|
342
342
|
min: 0,
|
|
343
343
|
max: e.max,
|
|
@@ -353,10 +353,10 @@ var gt = [
|
|
|
353
353
|
_: 1
|
|
354
354
|
}, 8, ["path", "label"]));
|
|
355
355
|
}
|
|
356
|
-
}),
|
|
356
|
+
}), jt = ["value"], Mt = { value: "" }, Nt = ["value"], Pt = { class: "tpl:flex tpl:items-stretch" }, Ft = ["value"], It = ["value"], Lt = { value: "auto" }, Rt = { value: "full" }, zt = { value: "custom" }, Bt = {
|
|
357
357
|
key: 0,
|
|
358
358
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
359
|
-
},
|
|
359
|
+
}, Vt = ["value"], Ht = 200, Ut = /* @__PURE__ */ r({
|
|
360
360
|
__name: "ButtonToolbar",
|
|
361
361
|
props: {
|
|
362
362
|
block: {},
|
|
@@ -364,12 +364,12 @@ var gt = [
|
|
|
364
364
|
},
|
|
365
365
|
emits: ["update"],
|
|
366
366
|
setup(e, { emit: t }) {
|
|
367
|
-
let n = e, r = t, { t: o } =
|
|
367
|
+
let n = e, r = t, { t: o } = Z(), s = C(() => n.block.width === "full" ? "full" : typeof n.block.width == "number" ? "custom" : "auto");
|
|
368
368
|
function l(e, t) {
|
|
369
369
|
r("update", { [e]: t });
|
|
370
370
|
}
|
|
371
371
|
function u(e) {
|
|
372
|
-
e === "full" ? l("width", "full") : e === "custom" ? l("width", typeof n.block.width == "number" ? n.block.width :
|
|
372
|
+
e === "full" ? l("width", "full") : e === "custom" ? l("width", typeof n.block.width == "number" ? n.block.width : Ht) : l("width", void 0);
|
|
373
373
|
}
|
|
374
374
|
function d(e) {
|
|
375
375
|
l("fontWeight", e === "bold" ? void 0 : e);
|
|
@@ -385,13 +385,13 @@ var gt = [
|
|
|
385
385
|
path: "fontFamily"
|
|
386
386
|
}, {
|
|
387
387
|
default: a(() => [b("select", {
|
|
388
|
-
class: g(h(
|
|
389
|
-
value: h(
|
|
388
|
+
class: g(h(B)),
|
|
389
|
+
value: h(Me)(e.block.fontFamily),
|
|
390
390
|
onChange: n[0] ||= (e) => l("fontFamily", e.target.value || void 0)
|
|
391
|
-
}, [b("option",
|
|
391
|
+
}, [b("option", Mt, x(h(o).button.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
392
392
|
key: e.value,
|
|
393
393
|
value: e.value
|
|
394
|
-
}, x(e.label), 9,
|
|
394
|
+
}, x(e.label), 9, Nt))), 128))], 42, jt)]),
|
|
395
395
|
_: 1
|
|
396
396
|
}, 8, ["label"]),
|
|
397
397
|
k(A, {
|
|
@@ -460,13 +460,13 @@ var gt = [
|
|
|
460
460
|
}, null, 8, ["model-value"])]),
|
|
461
461
|
_: 1
|
|
462
462
|
}, 8, ["label"]),
|
|
463
|
-
k(
|
|
463
|
+
k(Dt, {
|
|
464
464
|
path: "border",
|
|
465
465
|
"model-value": e.block.border,
|
|
466
466
|
"testid-prefix": "button",
|
|
467
467
|
"onUpdate:modelValue": n[6] ||= (e) => l("border", e)
|
|
468
468
|
}, null, 8, ["model-value"]),
|
|
469
|
-
k(
|
|
469
|
+
k(At, {
|
|
470
470
|
path: "borderRadius",
|
|
471
471
|
"model-value": e.block.borderRadius,
|
|
472
472
|
label: h(o).button.borderRadius,
|
|
@@ -479,14 +479,14 @@ var gt = [
|
|
|
479
479
|
class: "tpl:mb-3.5",
|
|
480
480
|
path: "fontSize"
|
|
481
481
|
}, {
|
|
482
|
-
default: a(() => [b("div",
|
|
482
|
+
default: a(() => [b("div", Pt, [b("input", {
|
|
483
483
|
type: "number",
|
|
484
|
-
class: g(h(
|
|
484
|
+
class: g(h(z)),
|
|
485
485
|
value: e.block.fontSize,
|
|
486
486
|
min: "10",
|
|
487
487
|
max: "36",
|
|
488
488
|
onInput: n[8] ||= (e) => l("fontSize", Number(e.target.value))
|
|
489
|
-
}, null, 42,
|
|
489
|
+
}, null, 42, Ft), b("span", { class: g(h(L)) }, "px", 2)])]),
|
|
490
490
|
_: 1
|
|
491
491
|
}, 8, ["label"]),
|
|
492
492
|
k(A, {
|
|
@@ -494,7 +494,7 @@ var gt = [
|
|
|
494
494
|
class: "tpl:mb-3.5",
|
|
495
495
|
path: "fontWeight"
|
|
496
496
|
}, {
|
|
497
|
-
default: a(() => [k(
|
|
497
|
+
default: a(() => [k(Q, {
|
|
498
498
|
options: [
|
|
499
499
|
{
|
|
500
500
|
value: "regular",
|
|
@@ -520,20 +520,20 @@ var gt = [
|
|
|
520
520
|
path: "width"
|
|
521
521
|
}, {
|
|
522
522
|
default: a(() => [b("select", {
|
|
523
|
-
class: g(h(
|
|
523
|
+
class: g(h(B)),
|
|
524
524
|
value: s.value,
|
|
525
525
|
onChange: n[9] ||= (e) => u(e.target.value)
|
|
526
526
|
}, [
|
|
527
|
-
b("option",
|
|
528
|
-
b("option",
|
|
529
|
-
b("option",
|
|
530
|
-
], 42,
|
|
527
|
+
b("option", Lt, x(h(o).button.widthAuto), 1),
|
|
528
|
+
b("option", Rt, x(h(o).button.fullWidth), 1),
|
|
529
|
+
b("option", zt, x(h(o).button.widthCustom), 1)
|
|
530
|
+
], 42, It), s.value === "custom" ? (i(), p("div", Bt, [b("input", {
|
|
531
531
|
type: "number",
|
|
532
|
-
class: g(h(
|
|
533
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
532
|
+
class: g(h(z)),
|
|
533
|
+
value: typeof e.block.width == "number" ? e.block.width : Ht,
|
|
534
534
|
min: "20",
|
|
535
535
|
onInput: n[10] ||= (e) => f(e.target.value)
|
|
536
|
-
}, null, 42,
|
|
536
|
+
}, null, 42, Vt), b("span", { class: g(h(L)) }, "px", 2)])) : _("", !0)]),
|
|
537
537
|
_: 1
|
|
538
538
|
}, 8, ["label"]),
|
|
539
539
|
k(A, {
|
|
@@ -541,7 +541,7 @@ var gt = [
|
|
|
541
541
|
class: "tpl:mb-3.5",
|
|
542
542
|
path: "align"
|
|
543
543
|
}, {
|
|
544
|
-
default: a(() => [k(
|
|
544
|
+
default: a(() => [k(Q, {
|
|
545
545
|
options: [
|
|
546
546
|
{
|
|
547
547
|
value: "left",
|
|
@@ -563,7 +563,7 @@ var gt = [
|
|
|
563
563
|
}, 8, ["label"])
|
|
564
564
|
], 64));
|
|
565
565
|
}
|
|
566
|
-
}),
|
|
566
|
+
}), Wt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, Gt = { class: "tpl:flex tpl:items-center" }, Kt = ["aria-label"], qt = ["value", "aria-label"], Jt = ["aria-label"], Yt = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Xt = { class: "tpl:flex tpl:items-center" }, Zt = ["aria-label"], Qt = ["value", "aria-label"], $t = ["aria-label"], en = ["aria-label", "title"], tn = { class: "tpl:flex tpl:items-center" }, nn = ["aria-label"], rn = ["value", "aria-label"], an = ["aria-label"], on = { class: "tpl:flex tpl:items-center" }, sn = ["aria-label"], cn = ["value", "aria-label"], ln = ["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)]", un = "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)]", dn = /*#__PURE__*/ Pe(/* @__PURE__ */ r({
|
|
567
567
|
__name: "SpacingControl",
|
|
568
568
|
props: {
|
|
569
569
|
path: {},
|
|
@@ -572,7 +572,7 @@ var gt = [
|
|
|
572
572
|
},
|
|
573
573
|
emits: ["update:modelValue"],
|
|
574
574
|
setup(e, { emit: t }) {
|
|
575
|
-
let n = e, r = t, { t: s } =
|
|
575
|
+
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);
|
|
576
576
|
o(c, (e) => {
|
|
577
577
|
!e && l.value && (l.value = !1);
|
|
578
578
|
});
|
|
@@ -616,16 +616,16 @@ var gt = [
|
|
|
616
616
|
path: e.path,
|
|
617
617
|
label: e.label
|
|
618
618
|
}, {
|
|
619
|
-
default: a(() => [b("div",
|
|
620
|
-
b("div",
|
|
619
|
+
default: a(() => [b("div", Wt, [
|
|
620
|
+
b("div", Gt, [
|
|
621
621
|
b("button", {
|
|
622
622
|
"aria-label": h(s).spacingControl.decreaseTop,
|
|
623
|
-
class: g([
|
|
623
|
+
class: g([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
624
624
|
onClick: n[0] ||= (e) => u("top", -1)
|
|
625
|
-
}, [k(h(
|
|
625
|
+
}, [k(h(U), {
|
|
626
626
|
size: 12,
|
|
627
627
|
"stroke-width": 2
|
|
628
|
-
})], 10,
|
|
628
|
+
})], 10, Kt),
|
|
629
629
|
b("input", {
|
|
630
630
|
type: "number",
|
|
631
631
|
class: g(un),
|
|
@@ -633,26 +633,26 @@ var gt = [
|
|
|
633
633
|
"aria-label": h(s).spacingControl.top,
|
|
634
634
|
min: "0",
|
|
635
635
|
onInput: n[1] ||= (e) => d("top", Number(e.target.value))
|
|
636
|
-
}, null, 40,
|
|
636
|
+
}, null, 40, qt),
|
|
637
637
|
b("button", {
|
|
638
638
|
"aria-label": h(s).spacingControl.increaseTop,
|
|
639
|
-
class: g([
|
|
639
|
+
class: g([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
640
640
|
onClick: n[2] ||= (e) => u("top", 1)
|
|
641
|
-
}, [k(h(
|
|
641
|
+
}, [k(h(H), {
|
|
642
642
|
size: 12,
|
|
643
643
|
"stroke-width": 2
|
|
644
|
-
})], 10,
|
|
644
|
+
})], 10, Jt)
|
|
645
645
|
]),
|
|
646
|
-
b("div",
|
|
647
|
-
b("div",
|
|
646
|
+
b("div", Yt, [
|
|
647
|
+
b("div", Xt, [
|
|
648
648
|
b("button", {
|
|
649
649
|
"aria-label": h(s).spacingControl.decreaseLeft,
|
|
650
|
-
class: g([
|
|
650
|
+
class: g([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
651
651
|
onClick: n[3] ||= (e) => u("left", -1)
|
|
652
|
-
}, [k(h(
|
|
652
|
+
}, [k(h(U), {
|
|
653
653
|
size: 12,
|
|
654
654
|
"stroke-width": 2
|
|
655
|
-
})], 10,
|
|
655
|
+
})], 10, Zt),
|
|
656
656
|
b("input", {
|
|
657
657
|
type: "number",
|
|
658
658
|
class: g(un),
|
|
@@ -660,39 +660,39 @@ var gt = [
|
|
|
660
660
|
"aria-label": h(s).spacingControl.left,
|
|
661
661
|
min: "0",
|
|
662
662
|
onInput: n[4] ||= (e) => d("left", Number(e.target.value))
|
|
663
|
-
}, null, 40,
|
|
663
|
+
}, null, 40, Qt),
|
|
664
664
|
b("button", {
|
|
665
665
|
"aria-label": h(s).spacingControl.increaseLeft,
|
|
666
|
-
class: g([
|
|
666
|
+
class: g([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
667
667
|
onClick: n[5] ||= (e) => u("left", 1)
|
|
668
|
-
}, [k(h(
|
|
668
|
+
}, [k(h(H), {
|
|
669
669
|
size: 12,
|
|
670
670
|
"stroke-width": 2
|
|
671
|
-
})], 10,
|
|
671
|
+
})], 10, $t)
|
|
672
672
|
]),
|
|
673
673
|
b("button", {
|
|
674
674
|
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)]"]),
|
|
675
675
|
"aria-label": l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
|
|
676
676
|
title: l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
|
|
677
677
|
onClick: f
|
|
678
|
-
}, [l.value ? (i(), v(h(
|
|
678
|
+
}, [l.value ? (i(), v(h(J), {
|
|
679
679
|
key: 0,
|
|
680
680
|
size: 14,
|
|
681
681
|
"stroke-width": 2
|
|
682
|
-
})) : (i(), v(h(
|
|
682
|
+
})) : (i(), v(h(K), {
|
|
683
683
|
key: 1,
|
|
684
684
|
size: 14,
|
|
685
685
|
"stroke-width": 2
|
|
686
|
-
}))], 10,
|
|
687
|
-
b("div",
|
|
686
|
+
}))], 10, en),
|
|
687
|
+
b("div", tn, [
|
|
688
688
|
b("button", {
|
|
689
689
|
"aria-label": h(s).spacingControl.decreaseRight,
|
|
690
|
-
class: g([
|
|
690
|
+
class: g([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
691
691
|
onClick: n[6] ||= (e) => u("right", -1)
|
|
692
|
-
}, [k(h(
|
|
692
|
+
}, [k(h(U), {
|
|
693
693
|
size: 12,
|
|
694
694
|
"stroke-width": 2
|
|
695
|
-
})], 10,
|
|
695
|
+
})], 10, nn),
|
|
696
696
|
b("input", {
|
|
697
697
|
type: "number",
|
|
698
698
|
class: g(un),
|
|
@@ -700,26 +700,26 @@ var gt = [
|
|
|
700
700
|
"aria-label": h(s).spacingControl.right,
|
|
701
701
|
min: "0",
|
|
702
702
|
onInput: n[7] ||= (e) => d("right", Number(e.target.value))
|
|
703
|
-
}, null, 40,
|
|
703
|
+
}, null, 40, rn),
|
|
704
704
|
b("button", {
|
|
705
705
|
"aria-label": h(s).spacingControl.increaseRight,
|
|
706
|
-
class: g([
|
|
706
|
+
class: g([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
707
707
|
onClick: n[8] ||= (e) => u("right", 1)
|
|
708
|
-
}, [k(h(
|
|
708
|
+
}, [k(h(H), {
|
|
709
709
|
size: 12,
|
|
710
710
|
"stroke-width": 2
|
|
711
|
-
})], 10,
|
|
711
|
+
})], 10, an)
|
|
712
712
|
])
|
|
713
713
|
]),
|
|
714
|
-
b("div",
|
|
714
|
+
b("div", on, [
|
|
715
715
|
b("button", {
|
|
716
716
|
"aria-label": h(s).spacingControl.decreaseBottom,
|
|
717
|
-
class: g([
|
|
717
|
+
class: g([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
718
718
|
onClick: n[9] ||= (e) => u("bottom", -1)
|
|
719
|
-
}, [k(h(
|
|
719
|
+
}, [k(h(U), {
|
|
720
720
|
size: 12,
|
|
721
721
|
"stroke-width": 2
|
|
722
|
-
})], 10,
|
|
722
|
+
})], 10, sn),
|
|
723
723
|
b("input", {
|
|
724
724
|
type: "number",
|
|
725
725
|
class: g(un),
|
|
@@ -727,15 +727,15 @@ var gt = [
|
|
|
727
727
|
"aria-label": h(s).spacingControl.bottom,
|
|
728
728
|
min: "0",
|
|
729
729
|
onInput: n[10] ||= (e) => d("bottom", Number(e.target.value))
|
|
730
|
-
}, null, 40,
|
|
730
|
+
}, null, 40, cn),
|
|
731
731
|
b("button", {
|
|
732
732
|
"aria-label": h(s).spacingControl.increaseBottom,
|
|
733
|
-
class: g([
|
|
733
|
+
class: g([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
734
734
|
onClick: n[11] ||= (e) => u("bottom", 1)
|
|
735
|
-
}, [k(h(
|
|
735
|
+
}, [k(h(H), {
|
|
736
736
|
size: 12,
|
|
737
737
|
"stroke-width": 2
|
|
738
|
-
})], 10,
|
|
738
|
+
})], 10, ln)
|
|
739
739
|
])
|
|
740
740
|
])]),
|
|
741
741
|
_: 1
|
|
@@ -746,14 +746,14 @@ var gt = [
|
|
|
746
746
|
function fn(e) {
|
|
747
747
|
let t = E(null), n = () => {};
|
|
748
748
|
return o(e, (e) => {
|
|
749
|
-
n(), t.value = null, e && (n =
|
|
749
|
+
n(), t.value = null, e && (n = Ke(e, (e) => {
|
|
750
750
|
t.value = e;
|
|
751
751
|
}));
|
|
752
752
|
}, { immediate: !0 }), t;
|
|
753
753
|
}
|
|
754
754
|
function pn() {
|
|
755
|
-
let e = l(
|
|
756
|
-
return async (t) =>
|
|
755
|
+
let e = l($e, null);
|
|
756
|
+
return async (t) => Ge(e ? await mn(e, t) : t);
|
|
757
757
|
}
|
|
758
758
|
function mn(e, t) {
|
|
759
759
|
let n = (e) => typeof e == "string" && e.length > 0 ? e : t;
|
|
@@ -783,14 +783,14 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
783
783
|
},
|
|
784
784
|
emits: ["update:modelValue"],
|
|
785
785
|
setup(e, { emit: t }) {
|
|
786
|
-
let n = e, r = t, { t: a } =
|
|
786
|
+
let n = e, r = t, { t: a } = Z(), o = l(Qe, _e.liquid), s = C(() => typeof n.modelValue?.url == "string" ? n.modelValue.url : ""), d = C(() => s.value.trim() !== ""), f = pn(), y;
|
|
787
787
|
u(() => clearTimeout(y));
|
|
788
788
|
function S(e) {
|
|
789
|
-
n.measure && !
|
|
789
|
+
n.measure && !be(e, o) && (y = setTimeout(async () => {
|
|
790
790
|
let t = await f(e), i = n.modelValue;
|
|
791
791
|
t && i?.url === e && r("update:modelValue", {
|
|
792
792
|
...i,
|
|
793
|
-
...
|
|
793
|
+
...He(t)
|
|
794
794
|
});
|
|
795
795
|
}, 300));
|
|
796
796
|
}
|
|
@@ -799,11 +799,11 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
799
799
|
r("update:modelValue", void 0);
|
|
800
800
|
return;
|
|
801
801
|
}
|
|
802
|
-
let { naturalWidth: i, naturalHeight: a, ...o } = n.modelValue ??
|
|
802
|
+
let { naturalWidth: i, naturalHeight: a, ...o } = n.modelValue ?? Te(e), s = n.measure ? t : null;
|
|
803
803
|
r("update:modelValue", {
|
|
804
804
|
...o,
|
|
805
805
|
url: e,
|
|
806
|
-
...s ?
|
|
806
|
+
...s ? He(s) : {}
|
|
807
807
|
}), s || S(e);
|
|
808
808
|
}
|
|
809
809
|
function T(e) {
|
|
@@ -835,7 +835,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
835
835
|
"bottom-left": a.blockSettings.backgroundPositionBottomLeft,
|
|
836
836
|
"bottom-center": a.blockSettings.backgroundPositionBottomCenter,
|
|
837
837
|
"bottom-right": a.blockSettings.backgroundPositionBottomRight
|
|
838
|
-
})), j = C(() =>
|
|
838
|
+
})), j = C(() => Ee.flatMap((e) => De.map((t) => ({
|
|
839
839
|
x: t,
|
|
840
840
|
y: e,
|
|
841
841
|
label: A.value[`${e}-${t}`]
|
|
@@ -843,21 +843,21 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
843
843
|
function M(e) {
|
|
844
844
|
return n.modelValue?.position?.x === e.x && n.modelValue?.position?.y === e.y;
|
|
845
845
|
}
|
|
846
|
-
let F = E(), { canBrowse: I, isUploading: L, showOverlay: ee, openMediaBrowser:
|
|
846
|
+
let F = E(), { canBrowse: I, isUploading: L, showOverlay: ee, openMediaBrowser: R } = Ye({
|
|
847
847
|
target: F,
|
|
848
|
-
blocked: () =>
|
|
849
|
-
apply: (e) => w(e.url,
|
|
848
|
+
blocked: () => be(s.value, o),
|
|
849
|
+
apply: (e) => w(e.url, Le(e.width, e.height))
|
|
850
850
|
});
|
|
851
851
|
return (t, n) => (i(), p("div", hn, [b("div", null, [e.hideLabel ? _("", !0) : (i(), p("label", {
|
|
852
852
|
key: 0,
|
|
853
|
-
class: g(h(
|
|
853
|
+
class: g(h(V))
|
|
854
854
|
}, x(h(a).blockSettings.backgroundImage), 3)), b("div", {
|
|
855
855
|
ref_key: "dropZoneRef",
|
|
856
856
|
ref: F,
|
|
857
857
|
class: "tpl:relative",
|
|
858
858
|
"data-testid": `${e.testidPrefix}-bg-url`
|
|
859
859
|
}, [
|
|
860
|
-
h(ee) ? (i(), v(
|
|
860
|
+
h(ee) ? (i(), v(Be, {
|
|
861
861
|
key: 0,
|
|
862
862
|
uploading: h(L)
|
|
863
863
|
}, null, 8, ["uploading"])) : _("", !0),
|
|
@@ -877,8 +877,8 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
877
877
|
color: "var(--tpl-primary)",
|
|
878
878
|
"background-color": "var(--tpl-bg)"
|
|
879
879
|
},
|
|
880
|
-
onClick: n[0] ||= (...e) => h(
|
|
881
|
-
}, [k(h(
|
|
880
|
+
onClick: n[0] ||= (...e) => h(R) && h(R)(...e)
|
|
881
|
+
}, [k(h(de), {
|
|
882
882
|
size: 14,
|
|
883
883
|
"stroke-width": 1.5
|
|
884
884
|
}), m(" " + x(h(a).image.browseMedia), 1)], 8, _n)) : _("", !0)
|
|
@@ -886,12 +886,12 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
886
886
|
e.heroMode ? _("", !0) : (i(), p("div", {
|
|
887
887
|
key: 0,
|
|
888
888
|
"data-testid": `${e.testidPrefix}-bg-size`
|
|
889
|
-
}, [b("label", { class: g(h(
|
|
889
|
+
}, [b("label", { class: g(h(V)) }, x(h(a).blockSettings.backgroundSize), 3), k(Q, {
|
|
890
890
|
options: O.value,
|
|
891
891
|
"model-value": e.modelValue.size,
|
|
892
892
|
"onUpdate:modelValue": n[1] ||= (e) => T({ size: e })
|
|
893
893
|
}, null, 8, ["options", "model-value"])], 8, vn)),
|
|
894
|
-
b("div", null, [b("label", { class: g(h(
|
|
894
|
+
b("div", null, [b("label", { class: g(h(V)) }, x(h(a).blockSettings.backgroundPosition), 3), b("div", {
|
|
895
895
|
role: "group",
|
|
896
896
|
"aria-label": h(a).blockSettings.backgroundPosition,
|
|
897
897
|
"data-testid": `${e.testidPrefix}-bg-position`,
|
|
@@ -935,7 +935,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
935
935
|
"data-testid": e.headerTestId,
|
|
936
936
|
class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-1.5 tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
937
937
|
onClick: n[0] ||= (e) => t.$emit("toggle")
|
|
938
|
-
}, [k(h(
|
|
938
|
+
}, [k(h(ae), {
|
|
939
939
|
class: g(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
940
940
|
size: 12,
|
|
941
941
|
"stroke-width": 2
|
|
@@ -969,7 +969,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
969
969
|
function n(e) {
|
|
970
970
|
return typeof e == "number" && Number.isFinite(e) && e >= 1;
|
|
971
971
|
}
|
|
972
|
-
let r = e, a = t, { t: o } =
|
|
972
|
+
let r = e, a = t, { t: o } = Z(), s = l(Qe, _e.liquid), c = l(ut, null), u = l(nt, void 0), d = pn(), f = C(() => typeof r.section.backgroundImage?.url == "string" ? r.section.backgroundImage.url : ""), m = C(() => f.value.trim() !== ""), y = C(() => be(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 : Mn), D = C(() => [
|
|
973
973
|
{
|
|
974
974
|
value: "fit",
|
|
975
975
|
label: o.blockSettings.heroHeightFit
|
|
@@ -996,9 +996,9 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
996
996
|
value: "bottom",
|
|
997
997
|
label: o.blockSettings.heroAlignBottom
|
|
998
998
|
}
|
|
999
|
-
]), A = C(() => T.value === "image" && m.value && !y.value &&
|
|
999
|
+
]), A = C(() => T.value === "image" && m.value && !y.value && Se(r.section.backgroundImage) === null);
|
|
1000
1000
|
function j() {
|
|
1001
|
-
return (c ?
|
|
1001
|
+
return (c ? Je(c.content.value, r.section.id, u, c.activeLocale?.value ?? void 0) : null) ?? We(c?.state.content.settings);
|
|
1002
1002
|
}
|
|
1003
1003
|
function M(e) {
|
|
1004
1004
|
let t = S.value?.verticalAlign ?? "middle";
|
|
@@ -1014,7 +1014,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
1014
1014
|
a("update", { hero: void 0 });
|
|
1015
1015
|
return;
|
|
1016
1016
|
}
|
|
1017
|
-
let n =
|
|
1017
|
+
let n = Se(r.section.backgroundImage), i = n === null ? Mn : Math.round(j() * n);
|
|
1018
1018
|
a("update", { hero: {
|
|
1019
1019
|
height: i,
|
|
1020
1020
|
verticalAlign: t
|
|
@@ -1022,11 +1022,11 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
1022
1022
|
}
|
|
1023
1023
|
async function N() {
|
|
1024
1024
|
let e = r.section.backgroundImage;
|
|
1025
|
-
if (!e || !m.value || y.value ||
|
|
1025
|
+
if (!e || !m.value || y.value || Se(e) !== null) return;
|
|
1026
1026
|
let t = e.url, n = await d(t), i = r.section.backgroundImage;
|
|
1027
1027
|
n && i && i.url === t && a("update", { backgroundImage: {
|
|
1028
1028
|
...i,
|
|
1029
|
-
...
|
|
1029
|
+
...He(n)
|
|
1030
1030
|
} });
|
|
1031
1031
|
}
|
|
1032
1032
|
function P(e) {
|
|
@@ -1043,15 +1043,15 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
1043
1043
|
}
|
|
1044
1044
|
return (e, t) => !w.value && S.value ? (i(), p("p", En, x(h(o).section.heroNeedsOneColumn), 1)) : w.value && (m.value || S.value) ? (i(), p("div", Dn, [
|
|
1045
1045
|
b("div", On, [
|
|
1046
|
-
b("label", { class: g(h(
|
|
1047
|
-
k(
|
|
1046
|
+
b("label", { class: g(h(V)) }, x(h(o).blockSettings.heroHeight), 3),
|
|
1047
|
+
k(Q, {
|
|
1048
1048
|
options: D.value,
|
|
1049
1049
|
"model-value": T.value,
|
|
1050
1050
|
"onUpdate:modelValue": M
|
|
1051
1051
|
}, null, 8, ["options", "model-value"]),
|
|
1052
1052
|
y.value ? (i(), p("p", kn, x(h(o).blockSettings.heroMatchImageMergeTag), 1)) : A.value ? (i(), p("p", An, x(h(o).blockSettings.heroSizeUnknown), 1)) : _("", !0)
|
|
1053
1053
|
]),
|
|
1054
|
-
T.value === "fixed" ? (i(), v(
|
|
1054
|
+
T.value === "fixed" ? (i(), v(xt, {
|
|
1055
1055
|
key: 0,
|
|
1056
1056
|
"model-value": E.value,
|
|
1057
1057
|
min: 1,
|
|
@@ -1059,7 +1059,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
1059
1059
|
testid: "section-hero-height-px",
|
|
1060
1060
|
"onUpdate:modelValue": P
|
|
1061
1061
|
}, null, 8, ["model-value"])) : _("", !0),
|
|
1062
|
-
S.value ? (i(), p("div", jn, [b("label", { class: g(h(
|
|
1062
|
+
S.value ? (i(), p("div", jn, [b("label", { class: g(h(V)) }, x(h(o).blockSettings.heroAlign), 3), k(Q, {
|
|
1063
1063
|
options: O.value,
|
|
1064
1064
|
"model-value": S.value.verticalAlign,
|
|
1065
1065
|
"onUpdate:modelValue": F
|
|
@@ -1088,10 +1088,10 @@ function Ln(e) {
|
|
|
1088
1088
|
return Fn(e.styles.backgroundColor) || !!e.backgroundImage;
|
|
1089
1089
|
}
|
|
1090
1090
|
function Rn(e) {
|
|
1091
|
-
return e.fullWidth !== !0 || In(e.padding) ||
|
|
1091
|
+
return e.fullWidth !== !0 || In(e.padding) || ge(e.borderRadius) !== null ? !1 : Object.keys(e).every((e) => Pn.has(e));
|
|
1092
1092
|
}
|
|
1093
1093
|
function zn(e, t = {}) {
|
|
1094
|
-
return e.wrapper ? !1 : t.sectionWrapper === !1 || t.layout !== void 0 &&
|
|
1094
|
+
return e.wrapper ? !1 : t.sectionWrapper === !1 || t.layout !== void 0 && we(t.layout);
|
|
1095
1095
|
}
|
|
1096
1096
|
function Bn(e) {
|
|
1097
1097
|
let t = {};
|
|
@@ -1162,47 +1162,47 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1162
1162
|
},
|
|
1163
1163
|
emits: ["update"],
|
|
1164
1164
|
setup(e, { emit: r }) {
|
|
1165
|
-
let u = e, d = r, { t: f, format: w } =
|
|
1166
|
-
sectionWrapper:
|
|
1167
|
-
layout:
|
|
1168
|
-
})),
|
|
1169
|
-
function
|
|
1165
|
+
let u = e, d = r, { t: f, format: w } = Z(), T = l(ut, null), O = l(tt, void 0), j = C(() => T?.activeLocale?.value), N = C(() => !!(j.value && T?.selectedBlock?.value?.l10n?.[j.value]?.hidden)), I = l(it, []), L = l(ct, !1), R = l(nt, void 0), z = l(Ze, void 0), B = C(() => u.block.type === "section" || u.block.type === "wrapper"), te = C(() => u.block.type === "wrapper" ? u.block.fullWidth === !0 : u.block.type === "section" && u.block.wrapper?.fullWidth === !0), V = C(() => u.block.type === "section" && zn(u.block, {
|
|
1166
|
+
sectionWrapper: z,
|
|
1167
|
+
layout: R
|
|
1168
|
+
})), ie = C(() => u.block.type === "wrapper" ? "layout-wrapper-full-width" : "section-background-full-width");
|
|
1169
|
+
function ae(e) {
|
|
1170
1170
|
u.block.type === "wrapper" ? d("update", { fullWidth: e }) : u.block.type === "section" && d("update", Hn(u.block, e));
|
|
1171
1171
|
}
|
|
1172
|
-
let
|
|
1172
|
+
let oe = C(() => u.block.type === "section" && u.block.wrapper?.fullWidth === !0), H = C(() => oe.value ? "wrapper.backgroundColor" : "styles.backgroundColor"), se = C(() => oe.value ? "wrapper.backgroundImage" : "backgroundImage"), le = C(() => {
|
|
1173
1173
|
let e = u.block;
|
|
1174
1174
|
return e.type === "section" && e.wrapper?.fullWidth === !0 ? e.wrapper.backgroundColor ?? "" : e.styles.backgroundColor ?? "";
|
|
1175
|
-
}),
|
|
1175
|
+
}), ue = C(() => {
|
|
1176
1176
|
let e = u.block;
|
|
1177
1177
|
return e.type === "section" && e.wrapper?.fullWidth === !0 ? e.wrapper.backgroundImage : e.type === "section" ? e.backgroundImage : void 0;
|
|
1178
1178
|
});
|
|
1179
|
-
function
|
|
1179
|
+
function de(e, t) {
|
|
1180
1180
|
d("update", { wrapper: {
|
|
1181
1181
|
...e,
|
|
1182
1182
|
...t
|
|
1183
1183
|
} });
|
|
1184
1184
|
}
|
|
1185
|
-
function
|
|
1185
|
+
function fe(e) {
|
|
1186
1186
|
let t = u.block;
|
|
1187
|
-
t.type === "section" && t.wrapper?.fullWidth === !0 ?
|
|
1187
|
+
t.type === "section" && t.wrapper?.fullWidth === !0 ? de(t.wrapper, { backgroundColor: e }) : Ee("backgroundColor", e);
|
|
1188
1188
|
}
|
|
1189
|
-
function
|
|
1189
|
+
function U(e) {
|
|
1190
1190
|
let t = u.block;
|
|
1191
|
-
t.type === "section" && t.wrapper?.fullWidth === !0 ?
|
|
1191
|
+
t.type === "section" && t.wrapper?.fullWidth === !0 ? de(t.wrapper, { backgroundImage: e }) : d("update", { backgroundImage: e });
|
|
1192
1192
|
}
|
|
1193
|
-
let
|
|
1193
|
+
let pe = l(et, null), W = ze(), G = E(!1), K = t(/* @__PURE__ */ new Set()), q = E(!1), J = E(""), Y = E(""), X = [{
|
|
1194
1194
|
key: "desktop",
|
|
1195
|
-
icon:
|
|
1195
|
+
icon: re,
|
|
1196
1196
|
labelKey: "showOnDesktop"
|
|
1197
1197
|
}, {
|
|
1198
1198
|
key: "mobile",
|
|
1199
|
-
icon:
|
|
1199
|
+
icon: ce,
|
|
1200
1200
|
labelKey: "showOnMobile"
|
|
1201
1201
|
}];
|
|
1202
|
-
function
|
|
1203
|
-
|
|
1202
|
+
function me(e) {
|
|
1203
|
+
K.has(e) ? K.delete(e) : K.add(e);
|
|
1204
1204
|
}
|
|
1205
|
-
let he = C(() => !!
|
|
1205
|
+
let he = C(() => !!pe || I.length > 0 || L);
|
|
1206
1206
|
function ge(e) {
|
|
1207
1207
|
if (typeof e != "object" || !e || Array.isArray(e)) return !1;
|
|
1208
1208
|
let t = e;
|
|
@@ -1212,36 +1212,36 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1212
1212
|
let n = T?.state?.selectedBlockId;
|
|
1213
1213
|
u.block.id === e && (n === void 0 || n === e) ? d("update", { displayCondition: t }) : T && T.findBlockLocation(e) && T.updateBlock(e, { displayCondition: t });
|
|
1214
1214
|
}
|
|
1215
|
-
async function
|
|
1216
|
-
if (!
|
|
1217
|
-
let e = u.block.id, t = T?.activeLocale?.value ?? null, n =
|
|
1218
|
-
|
|
1215
|
+
async function ve() {
|
|
1216
|
+
if (!pe || G.value) return;
|
|
1217
|
+
let e = u.block.id, t = T?.activeLocale?.value ?? null, n = xe(y(u.block)), r = u.block.displayCondition ? xe(y(u.block.displayCondition)) : void 0;
|
|
1218
|
+
G.value = !0;
|
|
1219
1219
|
try {
|
|
1220
|
-
let i = await
|
|
1220
|
+
let i = await pe(r ? {
|
|
1221
1221
|
current: r,
|
|
1222
1222
|
block: n
|
|
1223
1223
|
} : { block: n });
|
|
1224
|
-
if (!
|
|
1224
|
+
if (!W.alive || (T?.activeLocale?.value ?? null) !== t || i === null) return;
|
|
1225
1225
|
if (!ge(i)) {
|
|
1226
|
-
|
|
1226
|
+
dt.warn("displayConditions.onRequest resolved a value without string label, before and after — ignoring it.");
|
|
1227
1227
|
return;
|
|
1228
1228
|
}
|
|
1229
|
-
_e(e,
|
|
1229
|
+
_e(e, xe(i));
|
|
1230
1230
|
} finally {
|
|
1231
|
-
|
|
1231
|
+
W.alive && (G.value = !1);
|
|
1232
1232
|
}
|
|
1233
1233
|
}
|
|
1234
|
-
let
|
|
1234
|
+
let ye = C(() => u.block.displayCondition ? !I.some((e) => e.label === u.block.displayCondition?.label) : !1);
|
|
1235
1235
|
function be() {
|
|
1236
|
-
|
|
1236
|
+
q.value = !0, ye.value && u.block.displayCondition ? (J.value = u.block.displayCondition.before, Y.value = u.block.displayCondition.after ?? "") : (J.value = "", Y.value = "");
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1239
|
-
let e =
|
|
1238
|
+
function Se() {
|
|
1239
|
+
let e = J.value.trim(), t = Y.value.trim();
|
|
1240
1240
|
e && (d("update", { displayCondition: {
|
|
1241
1241
|
label: f.blockSettings.customCondition,
|
|
1242
1242
|
before: e,
|
|
1243
1243
|
after: t
|
|
1244
|
-
} }),
|
|
1244
|
+
} }), q.value = !1, J.value = e, Y.value = t);
|
|
1245
1245
|
}
|
|
1246
1246
|
o([
|
|
1247
1247
|
() => T?.state?.template?.id,
|
|
@@ -1251,44 +1251,44 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1251
1251
|
() => u.block.displayCondition?.after
|
|
1252
1252
|
], () => {
|
|
1253
1253
|
let e = u.block.displayCondition;
|
|
1254
|
-
!e || !
|
|
1254
|
+
!e || !ye.value ? (q.value = !1, J.value = "", Y.value = "") : (J.value = e.before, Y.value = e.after ?? "");
|
|
1255
1255
|
}, { immediate: !0 });
|
|
1256
|
-
let
|
|
1256
|
+
let we = C(() => {
|
|
1257
1257
|
let e = {};
|
|
1258
1258
|
for (let t of I) {
|
|
1259
1259
|
let n = t.group ?? "";
|
|
1260
1260
|
e[n] || (e[n] = []), e[n].push(t);
|
|
1261
1261
|
}
|
|
1262
1262
|
return e;
|
|
1263
|
-
}),
|
|
1264
|
-
function
|
|
1263
|
+
}), Te = C(() => u.block.type === "section" && Ce(u.block)?.applied === !0);
|
|
1264
|
+
function Ee(e, t) {
|
|
1265
1265
|
d("update", { styles: {
|
|
1266
1266
|
...u.block.styles,
|
|
1267
1267
|
[e]: t
|
|
1268
1268
|
} });
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1270
|
+
function De(e) {
|
|
1271
1271
|
return u.block.visibility?.[e] !== !1;
|
|
1272
1272
|
}
|
|
1273
|
-
function
|
|
1273
|
+
function Oe(e) {
|
|
1274
1274
|
let t = {
|
|
1275
|
-
desktop:
|
|
1276
|
-
mobile:
|
|
1275
|
+
desktop: De("desktop"),
|
|
1276
|
+
mobile: De("mobile")
|
|
1277
1277
|
};
|
|
1278
1278
|
t[e] = !t[e], d("update", { visibility: t });
|
|
1279
1279
|
}
|
|
1280
1280
|
return (t, r) => (i(), p("div", { class: g(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1281
1281
|
k(Tn, {
|
|
1282
1282
|
title: h(f).blockSettings.spacing,
|
|
1283
|
-
open:
|
|
1283
|
+
open: K.has("spacing"),
|
|
1284
1284
|
"no-border": e.isFirstSection,
|
|
1285
|
-
onToggle: r[1] ||= (e) =>
|
|
1285
|
+
onToggle: r[1] ||= (e) => me("spacing")
|
|
1286
1286
|
}, {
|
|
1287
1287
|
default: a(() => [k(dn, {
|
|
1288
1288
|
path: "styles.padding",
|
|
1289
1289
|
label: h(f).blockSettings.padding,
|
|
1290
1290
|
"model-value": e.block.styles.padding,
|
|
1291
|
-
"onUpdate:modelValue": r[0] ||= (e) =>
|
|
1291
|
+
"onUpdate:modelValue": r[0] ||= (e) => Ee("padding", e)
|
|
1292
1292
|
}, null, 8, ["label", "model-value"])]),
|
|
1293
1293
|
_: 1
|
|
1294
1294
|
}, 8, [
|
|
@@ -1298,36 +1298,36 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1298
1298
|
]),
|
|
1299
1299
|
k(Tn, {
|
|
1300
1300
|
title: h(f).blockSettings.background,
|
|
1301
|
-
open:
|
|
1301
|
+
open: K.has("bg"),
|
|
1302
1302
|
"header-test-id": "block-settings-background",
|
|
1303
|
-
onToggle: r[4] ||= (e) =>
|
|
1303
|
+
onToggle: r[4] ||= (e) => me("bg")
|
|
1304
1304
|
}, {
|
|
1305
1305
|
default: a(() => [
|
|
1306
1306
|
k(A, {
|
|
1307
|
-
path:
|
|
1307
|
+
path: H.value,
|
|
1308
1308
|
label: h(f).blockSettings.color
|
|
1309
1309
|
}, {
|
|
1310
1310
|
default: a(() => [k(M, {
|
|
1311
|
-
"model-value":
|
|
1311
|
+
"model-value": le.value,
|
|
1312
1312
|
"allow-transparent": "",
|
|
1313
|
-
"onUpdate:modelValue":
|
|
1313
|
+
"onUpdate:modelValue": fe
|
|
1314
1314
|
}, null, 8, ["model-value"])]),
|
|
1315
1315
|
_: 1
|
|
1316
1316
|
}, 8, ["path", "label"]),
|
|
1317
|
-
|
|
1317
|
+
B.value ? (i(), v(A, {
|
|
1318
1318
|
key: 0,
|
|
1319
1319
|
path: e.block.type === "section" ? "wrapper.fullWidth" : "fullWidth",
|
|
1320
1320
|
label: h(f).blockSettings.fullWidthBackground
|
|
1321
1321
|
}, {
|
|
1322
1322
|
"label-actions": a(({ controlId: e }) => [k(P, {
|
|
1323
|
-
"data-testid":
|
|
1323
|
+
"data-testid": ie.value,
|
|
1324
1324
|
"control-id": e,
|
|
1325
1325
|
"hide-label": "",
|
|
1326
1326
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1327
|
-
"model-value":
|
|
1328
|
-
disabled:
|
|
1327
|
+
"model-value": te.value,
|
|
1328
|
+
disabled: V.value,
|
|
1329
1329
|
label: h(f).blockSettings.fullWidthBackground,
|
|
1330
|
-
"onUpdate:modelValue":
|
|
1330
|
+
"onUpdate:modelValue": ae
|
|
1331
1331
|
}, null, 8, [
|
|
1332
1332
|
"data-testid",
|
|
1333
1333
|
"control-id",
|
|
@@ -1339,21 +1339,21 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1339
1339
|
}, 8, ["path", "label"])) : _("", !0),
|
|
1340
1340
|
e.block.type === "section" ? (i(), v(A, {
|
|
1341
1341
|
key: 1,
|
|
1342
|
-
path:
|
|
1342
|
+
path: se.value,
|
|
1343
1343
|
label: h(f).blockSettings.backgroundImage
|
|
1344
1344
|
}, {
|
|
1345
1345
|
default: a(() => [k(Sn, {
|
|
1346
1346
|
"hide-label": "",
|
|
1347
1347
|
class: "tpl:mt-3.5",
|
|
1348
|
-
"model-value":
|
|
1348
|
+
"model-value": ue.value,
|
|
1349
1349
|
"testid-prefix": "section",
|
|
1350
1350
|
measure: "",
|
|
1351
|
-
"hero-mode":
|
|
1352
|
-
"onUpdate:modelValue":
|
|
1351
|
+
"hero-mode": Te.value,
|
|
1352
|
+
"onUpdate:modelValue": U
|
|
1353
1353
|
}, null, 8, ["model-value", "hero-mode"])]),
|
|
1354
1354
|
_: 1
|
|
1355
1355
|
}, 8, ["path", "label"])) : _("", !0),
|
|
1356
|
-
|
|
1356
|
+
oe.value ? (i(), v(A, {
|
|
1357
1357
|
key: 2,
|
|
1358
1358
|
path: "styles.backgroundColor",
|
|
1359
1359
|
label: h(f).blockSettings.contentBackground
|
|
@@ -1362,7 +1362,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1362
1362
|
"data-testid": "section-content-background",
|
|
1363
1363
|
"model-value": e.block.styles.backgroundColor ?? "",
|
|
1364
1364
|
"allow-transparent": "",
|
|
1365
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
1365
|
+
"onUpdate:modelValue": r[2] ||= (e) => Ee("backgroundColor", e)
|
|
1366
1366
|
}, null, 8, ["model-value"])]),
|
|
1367
1367
|
_: 1
|
|
1368
1368
|
}, 8, ["label"])) : _("", !0),
|
|
@@ -1382,21 +1382,21 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1382
1382
|
}, 8, ["title", "open"]),
|
|
1383
1383
|
k(Tn, {
|
|
1384
1384
|
title: h(f).blockSettings.display,
|
|
1385
|
-
open:
|
|
1386
|
-
onToggle: r[6] ||= (e) =>
|
|
1385
|
+
open: K.has("display"),
|
|
1386
|
+
onToggle: r[6] ||= (e) => me("display")
|
|
1387
1387
|
}, {
|
|
1388
1388
|
default: a(() => [b("div", Wn, [j.value && h(O) ? (i(), v(P, {
|
|
1389
1389
|
key: 0,
|
|
1390
1390
|
"data-testid": "locale-hide",
|
|
1391
1391
|
disabled: !h(O).locales.includes(j.value),
|
|
1392
1392
|
"model-value": N.value,
|
|
1393
|
-
label: h(w)(h(f).localization.hide, { language: h(
|
|
1393
|
+
label: h(w)(h(f).localization.hide, { language: h(Ne)(j.value) }),
|
|
1394
1394
|
"onUpdate:modelValue": r[5] ||= (t) => h(T)?.setBlockHidden?.(e.block.id, t)
|
|
1395
1395
|
}, null, 8, [
|
|
1396
1396
|
"disabled",
|
|
1397
1397
|
"model-value",
|
|
1398
1398
|
"label"
|
|
1399
|
-
])) : _("", !0), (i(), p(D, null, c(
|
|
1399
|
+
])) : _("", !0), (i(), p(D, null, c(X, (e) => k(A, {
|
|
1400
1400
|
key: e.key,
|
|
1401
1401
|
path: `visibility.${e.key}`,
|
|
1402
1402
|
label: h(f).blockSettings[e.labelKey]
|
|
@@ -1409,9 +1409,9 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1409
1409
|
"control-id": t,
|
|
1410
1410
|
"hide-label": "",
|
|
1411
1411
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1412
|
-
"model-value":
|
|
1412
|
+
"model-value": De(e.key),
|
|
1413
1413
|
label: h(f).blockSettings[e.labelKey],
|
|
1414
|
-
"onUpdate:modelValue": (t) =>
|
|
1414
|
+
"onUpdate:modelValue": (t) => Oe(e.key)
|
|
1415
1415
|
}, null, 8, [
|
|
1416
1416
|
"control-id",
|
|
1417
1417
|
"model-value",
|
|
@@ -1426,23 +1426,23 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1426
1426
|
key: 0,
|
|
1427
1427
|
"header-test-id": "display-condition-section",
|
|
1428
1428
|
title: h(f).blockSettings.displayCondition,
|
|
1429
|
-
open:
|
|
1430
|
-
onToggle: r[11] ||= (e) =>
|
|
1429
|
+
open: K.has("condition"),
|
|
1430
|
+
onToggle: r[11] ||= (e) => me("condition")
|
|
1431
1431
|
}, {
|
|
1432
|
-
default: a(() => [h(
|
|
1432
|
+
default: a(() => [h(pe) ? (i(), p("div", Kn, [e.block.displayCondition ? (i(), p(D, { key: 0 }, [
|
|
1433
1433
|
b("p", qn, x(e.block.displayCondition.label), 1),
|
|
1434
1434
|
e.block.displayCondition.description ? (i(), p("p", Jn, x(e.block.displayCondition.description), 1)) : _("", !0),
|
|
1435
1435
|
b("div", Yn, [b("button", {
|
|
1436
1436
|
type: "button",
|
|
1437
1437
|
"data-testid": "display-condition-edit",
|
|
1438
1438
|
class: g(h(F)),
|
|
1439
|
-
disabled:
|
|
1440
|
-
onClick:
|
|
1439
|
+
disabled: G.value,
|
|
1440
|
+
onClick: ve
|
|
1441
1441
|
}, x(h(f).blockSettings.editCondition), 11, Xn), b("button", {
|
|
1442
1442
|
type: "button",
|
|
1443
1443
|
"data-testid": "display-condition-remove",
|
|
1444
1444
|
class: g(h(F)),
|
|
1445
|
-
disabled:
|
|
1445
|
+
disabled: G.value,
|
|
1446
1446
|
onClick: r[7] ||= (e) => d("update", { displayCondition: void 0 })
|
|
1447
1447
|
}, x(h(f).blockSettings.removeCondition), 11, Zn)])
|
|
1448
1448
|
], 64)) : (i(), p("button", {
|
|
@@ -1450,8 +1450,8 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1450
1450
|
type: "button",
|
|
1451
1451
|
"data-testid": "display-condition-request",
|
|
1452
1452
|
class: g(h(F)),
|
|
1453
|
-
disabled:
|
|
1454
|
-
onClick:
|
|
1453
|
+
disabled: G.value,
|
|
1454
|
+
onClick: ve
|
|
1455
1455
|
}, x(h(f).blockSettings.addCondition), 11, Qn))])) : (i(), p("div", $n, [k(A, {
|
|
1456
1456
|
path: "displayCondition",
|
|
1457
1457
|
label: h(f).blockSettings.displayCondition
|
|
@@ -1459,14 +1459,14 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1459
1459
|
default: a(() => [b("select", {
|
|
1460
1460
|
"data-testid": "display-condition-select",
|
|
1461
1461
|
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)]"]),
|
|
1462
|
-
value:
|
|
1462
|
+
value: q.value || ye.value ? "__custom__" : e.block.displayCondition?.label ?? "",
|
|
1463
1463
|
onChange: r[8] ||= (e) => {
|
|
1464
1464
|
let t = e.target.value;
|
|
1465
1465
|
if (t === "__custom__") {
|
|
1466
1466
|
be();
|
|
1467
1467
|
return;
|
|
1468
1468
|
}
|
|
1469
|
-
if (
|
|
1469
|
+
if (q.value = !1, !t) {
|
|
1470
1470
|
d("update", { displayCondition: void 0 });
|
|
1471
1471
|
return;
|
|
1472
1472
|
}
|
|
@@ -1475,7 +1475,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1475
1475
|
}
|
|
1476
1476
|
}, [
|
|
1477
1477
|
b("option", tr, x(h(f).blockSettings.noCondition), 1),
|
|
1478
|
-
(i(!0), p(D, null, c(
|
|
1478
|
+
(i(!0), p(D, null, c(we.value, (e, t) => (i(), p(D, { key: t }, [t ? (i(), p("optgroup", {
|
|
1479
1479
|
key: 0,
|
|
1480
1480
|
label: String(t)
|
|
1481
1481
|
}, [(i(!0), p(D, null, c(e, (e) => (i(), p("option", {
|
|
@@ -1488,24 +1488,24 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1488
1488
|
h(L) ? (i(), p("option", ar, x(h(f).blockSettings.customCondition), 1)) : _("", !0)
|
|
1489
1489
|
], 42, er)]),
|
|
1490
1490
|
_: 1
|
|
1491
|
-
}, 8, ["label"]),
|
|
1491
|
+
}, 8, ["label"]), q.value || ye.value ? (i(), p("div", or, [
|
|
1492
1492
|
b("div", null, [b("label", sr, x(h(f).blockSettings.customConditionBefore), 1), s(b("textarea", {
|
|
1493
|
-
"onUpdate:modelValue": r[9] ||= (e) =>
|
|
1493
|
+
"onUpdate:modelValue": r[9] ||= (e) => J.value = e,
|
|
1494
1494
|
rows: "2",
|
|
1495
|
-
class: g(h(
|
|
1496
|
-
}, null, 2), [[S,
|
|
1495
|
+
class: g(h(ne))
|
|
1496
|
+
}, null, 2), [[S, J.value]])]),
|
|
1497
1497
|
b("div", null, [b("label", cr, x(h(f).blockSettings.customConditionAfter), 1), s(b("textarea", {
|
|
1498
|
-
"onUpdate:modelValue": r[10] ||= (e) =>
|
|
1498
|
+
"onUpdate:modelValue": r[10] ||= (e) => Y.value = e,
|
|
1499
1499
|
rows: "2",
|
|
1500
|
-
class: g(h(
|
|
1501
|
-
}, null, 2), [[S,
|
|
1500
|
+
class: g(h(ne))
|
|
1501
|
+
}, null, 2), [[S, Y.value]])]),
|
|
1502
1502
|
b("div", lr, [b("button", {
|
|
1503
1503
|
type: "button",
|
|
1504
1504
|
class: g(h(ee)),
|
|
1505
|
-
disabled: !
|
|
1506
|
-
onClick:
|
|
1505
|
+
disabled: !J.value.trim(),
|
|
1506
|
+
onClick: Se
|
|
1507
1507
|
}, x(h(f).blockSettings.applyCondition), 11, ur)])
|
|
1508
|
-
])) : e.block.displayCondition && !
|
|
1508
|
+
])) : e.block.displayCondition && !ye.value ? (i(), p(D, { key: 1 }, [e.block.displayCondition.description ? (i(), p("p", dr, x(e.block.displayCondition.description), 1)) : _("", !0), b("div", fr, [b("pre", pr, x(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (i(), p("pre", mr, x(e.block.displayCondition.after), 1)) : _("", !0)])], 64)) : _("", !0)]))]),
|
|
1509
1509
|
_: 1
|
|
1510
1510
|
}, 8, ["title", "open"])) : _("", !0)
|
|
1511
1511
|
], 2));
|
|
@@ -1518,13 +1518,13 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1518
1518
|
readOnly: { type: Boolean }
|
|
1519
1519
|
},
|
|
1520
1520
|
setup(e) {
|
|
1521
|
-
let { t } =
|
|
1521
|
+
let { t } = Z();
|
|
1522
1522
|
return (n, r) => (i(), p("span", null, [
|
|
1523
1523
|
m(x(e.label) + " ", 1),
|
|
1524
1524
|
e.readOnly ? (i(), p("span", {
|
|
1525
1525
|
key: 0,
|
|
1526
1526
|
title: h(t).customBlocks.dataSource.readOnlyTooltip
|
|
1527
|
-
}, [k(h(
|
|
1527
|
+
}, [k(h(J), {
|
|
1528
1528
|
size: 12,
|
|
1529
1529
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
|
|
1530
1530
|
"aria-hidden": "true"
|
|
@@ -1547,7 +1547,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1547
1547
|
},
|
|
1548
1548
|
emits: ["update:modelValue"],
|
|
1549
1549
|
setup(e, { emit: t }) {
|
|
1550
|
-
let n = t, { t: r } =
|
|
1550
|
+
let n = t, { t: r } = Z();
|
|
1551
1551
|
return (t, o) => (i(), p("div", {
|
|
1552
1552
|
class: "tpl:mb-3.5",
|
|
1553
1553
|
title: e.readOnly ? h(r).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
@@ -1561,7 +1561,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1561
1561
|
disabled: e.readOnly,
|
|
1562
1562
|
"onUpdate:modelValue": o[0] ||= (e) => n("update:modelValue", e)
|
|
1563
1563
|
}, {
|
|
1564
|
-
default: a(() => [m(x(e.field.label) + " ", 1), e.readOnly ? (i(), v(h(
|
|
1564
|
+
default: a(() => [m(x(e.field.label) + " ", 1), e.readOnly ? (i(), v(h(J), {
|
|
1565
1565
|
key: 0,
|
|
1566
1566
|
size: 12,
|
|
1567
1567
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
@@ -1587,7 +1587,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1587
1587
|
setup(e) {
|
|
1588
1588
|
return (t, n) => (i(), p("div", Cr, [e.hideLabel ? _("", !0) : (i(), p("label", {
|
|
1589
1589
|
key: 0,
|
|
1590
|
-
class: g(h(
|
|
1590
|
+
class: g(h(V))
|
|
1591
1591
|
}, [k(br, {
|
|
1592
1592
|
label: e.label,
|
|
1593
1593
|
required: e.required,
|
|
@@ -1608,7 +1608,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1608
1608
|
},
|
|
1609
1609
|
emits: ["update:modelValue"],
|
|
1610
1610
|
setup(e, { emit: t }) {
|
|
1611
|
-
let n = e, r = t, { t: o } =
|
|
1611
|
+
let n = e, r = t, { t: o } = Z(), s = l(st, pt), c = C(() => Xe(n.field, s));
|
|
1612
1612
|
return (t, n) => (i(), v(wr, {
|
|
1613
1613
|
"hide-label": e.hideLabel,
|
|
1614
1614
|
label: e.field.label,
|
|
@@ -1653,7 +1653,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1653
1653
|
},
|
|
1654
1654
|
emits: ["update:modelValue"],
|
|
1655
1655
|
setup(e, { emit: t }) {
|
|
1656
|
-
let n = e, r = t, { t: o } =
|
|
1656
|
+
let n = e, r = t, { t: o } = Z(), s = E(), { canBrowse: c, isUploading: l, showOverlay: u, openMediaBrowser: d } = Ye({
|
|
1657
1657
|
target: s,
|
|
1658
1658
|
blocked: () => !!n.readOnly,
|
|
1659
1659
|
apply: (e) => r("update:modelValue", e.url)
|
|
@@ -1669,14 +1669,14 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1669
1669
|
ref: s,
|
|
1670
1670
|
class: "tpl:relative"
|
|
1671
1671
|
}, [
|
|
1672
|
-
h(u) ? (i(), v(
|
|
1672
|
+
h(u) ? (i(), v(Be, {
|
|
1673
1673
|
key: 0,
|
|
1674
1674
|
uploading: h(l)
|
|
1675
1675
|
}, null, 8, ["uploading"])) : _("", !0),
|
|
1676
1676
|
e.readOnly ? (i(), p("input", {
|
|
1677
1677
|
key: 1,
|
|
1678
1678
|
type: "url",
|
|
1679
|
-
class: g([h(
|
|
1679
|
+
class: g([h(B), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1680
1680
|
value: e.modelValue,
|
|
1681
1681
|
placeholder: e.field.placeholder || "https://...",
|
|
1682
1682
|
disabled: "",
|
|
@@ -1684,7 +1684,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1684
1684
|
}, null, 10, Er)) : (i(), p("input", {
|
|
1685
1685
|
key: 2,
|
|
1686
1686
|
type: "url",
|
|
1687
|
-
class: g(h(
|
|
1687
|
+
class: g(h(B)),
|
|
1688
1688
|
value: e.modelValue,
|
|
1689
1689
|
placeholder: e.field.placeholder || "https://...",
|
|
1690
1690
|
onInput: n[0] ||= (e) => r("update:modelValue", e.target.value)
|
|
@@ -1693,7 +1693,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1693
1693
|
key: 3,
|
|
1694
1694
|
class: "tpl:mt-2 tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
|
|
1695
1695
|
onClick: n[1] ||= (e) => h(d)()
|
|
1696
|
-
}, [k(h(
|
|
1696
|
+
}, [k(h(de), {
|
|
1697
1697
|
size: 14,
|
|
1698
1698
|
"stroke-width": 1.5
|
|
1699
1699
|
}), m(" " + x(h(o).image.browseMedia), 1)])) : _("", !0)
|
|
@@ -1724,7 +1724,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1724
1724
|
},
|
|
1725
1725
|
emits: ["update:modelValue"],
|
|
1726
1726
|
setup(e, { emit: t }) {
|
|
1727
|
-
let n = t, { t: r } =
|
|
1727
|
+
let n = t, { t: r } = Z();
|
|
1728
1728
|
return (t, o) => (i(), v(wr, {
|
|
1729
1729
|
"hide-label": e.hideLabel,
|
|
1730
1730
|
label: e.field.label,
|
|
@@ -1733,7 +1733,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1733
1733
|
}, {
|
|
1734
1734
|
default: a(() => [b("input", {
|
|
1735
1735
|
type: "number",
|
|
1736
|
-
class: g([h(
|
|
1736
|
+
class: g([h(B), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1737
1737
|
value: e.modelValue,
|
|
1738
1738
|
placeholder: e.field.placeholder,
|
|
1739
1739
|
min: e.field.min,
|
|
@@ -1767,7 +1767,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1767
1767
|
},
|
|
1768
1768
|
emits: ["update:modelValue"],
|
|
1769
1769
|
setup(e, { emit: t }) {
|
|
1770
|
-
let r = e, o = t, { t: s, format: l } =
|
|
1770
|
+
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);
|
|
1771
1771
|
function y() {
|
|
1772
1772
|
if (!d.value || r.readOnly) return;
|
|
1773
1773
|
let e = {};
|
|
@@ -1802,7 +1802,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1802
1802
|
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)]",
|
|
1803
1803
|
title: h(s).customBlocks.fields.removeItem,
|
|
1804
1804
|
onClick: (e) => S(r)
|
|
1805
|
-
}, [k(h(
|
|
1805
|
+
}, [k(h(pe), {
|
|
1806
1806
|
size: 12,
|
|
1807
1807
|
"stroke-width": 2
|
|
1808
1808
|
})], 8, Pr)) : _("", !0)]), (i(!0), p(D, null, c(e.field.fields, (a) => (i(), v(n(h(Kr)(a.type)), {
|
|
@@ -1820,9 +1820,9 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1820
1820
|
d.value && !e.readOnly ? (i(), p("button", {
|
|
1821
1821
|
key: 0,
|
|
1822
1822
|
type: "button",
|
|
1823
|
-
class: g(h(
|
|
1823
|
+
class: g(h(R)),
|
|
1824
1824
|
onClick: y
|
|
1825
|
-
}, [k(h(
|
|
1825
|
+
}, [k(h(H), {
|
|
1826
1826
|
size: 14,
|
|
1827
1827
|
"stroke-width": 2
|
|
1828
1828
|
}), m(" " + x(h(s).customBlocks.fields.addItem), 1)], 2)) : _("", !0),
|
|
@@ -1851,7 +1851,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1851
1851
|
},
|
|
1852
1852
|
emits: ["update:modelValue"],
|
|
1853
1853
|
setup(e, { emit: t }) {
|
|
1854
|
-
let n = t, { t: r } =
|
|
1854
|
+
let n = t, { t: r } = Z();
|
|
1855
1855
|
return (t, o) => (i(), v(wr, {
|
|
1856
1856
|
"hide-label": e.hideLabel,
|
|
1857
1857
|
label: e.field.label,
|
|
@@ -1859,7 +1859,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1859
1859
|
"read-only": e.readOnly
|
|
1860
1860
|
}, {
|
|
1861
1861
|
default: a(() => [b("select", {
|
|
1862
|
-
class: g([h(
|
|
1862
|
+
class: g([h(B), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1863
1863
|
value: e.modelValue,
|
|
1864
1864
|
disabled: e.readOnly,
|
|
1865
1865
|
title: e.readOnly ? h(r).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
@@ -1890,7 +1890,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1890
1890
|
},
|
|
1891
1891
|
emits: ["update:modelValue"],
|
|
1892
1892
|
setup(e, { emit: t }) {
|
|
1893
|
-
let n = t, { t: r } =
|
|
1893
|
+
let n = t, { t: r } = Z();
|
|
1894
1894
|
return (t, o) => (i(), v(wr, {
|
|
1895
1895
|
"hide-label": e.hideLabel,
|
|
1896
1896
|
label: e.field.label,
|
|
@@ -1900,7 +1900,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1900
1900
|
default: a(() => [e.readOnly ? (i(), p("input", {
|
|
1901
1901
|
key: 0,
|
|
1902
1902
|
type: "text",
|
|
1903
|
-
class: g([h(
|
|
1903
|
+
class: g([h(B), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1904
1904
|
value: e.modelValue,
|
|
1905
1905
|
placeholder: e.field.placeholder,
|
|
1906
1906
|
disabled: "",
|
|
@@ -1935,7 +1935,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1935
1935
|
},
|
|
1936
1936
|
emits: ["update:modelValue"],
|
|
1937
1937
|
setup(e, { emit: t }) {
|
|
1938
|
-
let n = t, { t: r } =
|
|
1938
|
+
let n = t, { t: r } = Z();
|
|
1939
1939
|
return (t, o) => (i(), v(wr, {
|
|
1940
1940
|
"hide-label": e.hideLabel,
|
|
1941
1941
|
label: e.field.label,
|
|
@@ -1999,7 +1999,7 @@ var qr = {
|
|
|
1999
1999
|
props: { block: {} },
|
|
2000
2000
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
2001
2001
|
setup(e, { emit: t }) {
|
|
2002
|
-
let r = e, o = t, { t: s } =
|
|
2002
|
+
let r = e, o = t, { t: s } = Z(), u = l(ot, []), d = C(() => u.find((e) => e.type === r.block.customType)), f = C(() => r.block), { isFetching: g, fetchError: y, fetch: S, hasDataSource: w, needsFetch: T } = Fe({
|
|
2003
2003
|
definition: d,
|
|
2004
2004
|
block: f,
|
|
2005
2005
|
onUpdate: (e, t) => {
|
|
@@ -2027,7 +2027,7 @@ var qr = {
|
|
|
2027
2027
|
type: "button",
|
|
2028
2028
|
class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:border-[var(--tpl-primary)] tpl:hover:text-[var(--tpl-primary)]",
|
|
2029
2029
|
onClick: r[1] ||= (...e) => h(S) && h(S)(...e)
|
|
2030
|
-
}, [k(h(
|
|
2030
|
+
}, [k(h(le), { size: 12 }), m(" " + x(h(s).customBlocks.dataSource.changeButton), 1)]))])), h(y) ? (i(), p("p", ei, [k(h(oe), {
|
|
2031
2031
|
size: 14,
|
|
2032
2032
|
class: "tpl:shrink-0"
|
|
2033
2033
|
}), m(" " + x(h(s).customBlocks.dataSource.fetchError), 1)])) : _("", !0)])) : _("", !0),
|
|
@@ -2068,7 +2068,7 @@ var qr = {
|
|
|
2068
2068
|
props: { block: {} },
|
|
2069
2069
|
emits: ["update"],
|
|
2070
2070
|
setup(e, { emit: t }) {
|
|
2071
|
-
let n = t, { t: r } =
|
|
2071
|
+
let n = t, { t: r } = Z();
|
|
2072
2072
|
function o(e, t) {
|
|
2073
2073
|
n("update", { [e]: t });
|
|
2074
2074
|
}
|
|
@@ -2078,7 +2078,7 @@ var qr = {
|
|
|
2078
2078
|
class: "tpl:mb-3.5",
|
|
2079
2079
|
path: "lineStyle"
|
|
2080
2080
|
}, {
|
|
2081
|
-
default: a(() => [k(
|
|
2081
|
+
default: a(() => [k(Q, {
|
|
2082
2082
|
options: [
|
|
2083
2083
|
{
|
|
2084
2084
|
value: "solid",
|
|
@@ -2116,7 +2116,7 @@ var qr = {
|
|
|
2116
2116
|
}, {
|
|
2117
2117
|
default: a(() => [b("div", ni, [b("input", {
|
|
2118
2118
|
type: "number",
|
|
2119
|
-
class: g(h(
|
|
2119
|
+
class: g(h(z)),
|
|
2120
2120
|
value: e.block.thickness,
|
|
2121
2121
|
min: "1",
|
|
2122
2122
|
max: "10",
|
|
@@ -2131,7 +2131,7 @@ var qr = {
|
|
|
2131
2131
|
props: { block: {} },
|
|
2132
2132
|
emits: ["update"],
|
|
2133
2133
|
setup(e, { emit: t }) {
|
|
2134
|
-
let n = t, { t: r } =
|
|
2134
|
+
let n = t, { t: r } = Z();
|
|
2135
2135
|
return (t, o) => (i(), v(A, {
|
|
2136
2136
|
label: h(r).html.content,
|
|
2137
2137
|
class: "tpl:mb-3.5",
|
|
@@ -2141,9 +2141,9 @@ var qr = {
|
|
|
2141
2141
|
value: e.block.content,
|
|
2142
2142
|
placeholder: "<div>...</div>",
|
|
2143
2143
|
rows: "10",
|
|
2144
|
-
class: g(h(
|
|
2144
|
+
class: g(h(ne)),
|
|
2145
2145
|
onInput: o[0] ||= (e) => n("update", { content: e.target.value })
|
|
2146
|
-
}, null, 42, ai), b("p", oi, [k(h(
|
|
2146
|
+
}, null, 42, ai), b("p", oi, [k(h(W), {
|
|
2147
2147
|
size: 12,
|
|
2148
2148
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
2149
2149
|
}), m(" " + x(h(r).html.sanitizationHint), 1)])]),
|
|
@@ -2157,7 +2157,7 @@ function ci(e) {
|
|
|
2157
2157
|
o(() => e.block().id, () => {
|
|
2158
2158
|
t.value = !1, n.value = null;
|
|
2159
2159
|
});
|
|
2160
|
-
let r = C(() =>
|
|
2160
|
+
let r = C(() => Ve(e.block()) ?? e.measured()), i = C(() => {
|
|
2161
2161
|
let t = e.block().width;
|
|
2162
2162
|
return t === "full" ? e.room() : t;
|
|
2163
2163
|
}), a = C(() => {
|
|
@@ -2168,9 +2168,9 @@ function ci(e) {
|
|
|
2168
2168
|
return t === void 0 || a.value !== null && Math.abs(a.value - t) <= 1;
|
|
2169
2169
|
}), l = C(() => s.value && !t.value && c.value);
|
|
2170
2170
|
function u() {
|
|
2171
|
-
if (
|
|
2171
|
+
if (Ve(e.block())) return {};
|
|
2172
2172
|
let t = e.measured();
|
|
2173
|
-
return t ?
|
|
2173
|
+
return t ? He(t) : {};
|
|
2174
2174
|
}
|
|
2175
2175
|
function d(r) {
|
|
2176
2176
|
if (n.value = null, !r) return t.value = !0, null;
|
|
@@ -2232,7 +2232,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2232
2232
|
props: { block: {} },
|
|
2233
2233
|
emits: ["update"],
|
|
2234
2234
|
setup(e, { emit: t }) {
|
|
2235
|
-
let n = e, r = t, { t: o, format: s } =
|
|
2235
|
+
let n = e, r = t, { t: o, format: s } = Z(), c = l(Qe, _e.liquid), u = l(ut, null), d = u ? mt(u) : null, f = l(nt, void 0), y = E(!1), S = E(!1), { start: w } = ht(() => {
|
|
2236
2236
|
y.value = !1, S.value = !1;
|
|
2237
2237
|
}, 1e3, { immediate: !1 }), T = [
|
|
2238
2238
|
300,
|
|
@@ -2248,55 +2248,55 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2248
2248
|
function ee(e) {
|
|
2249
2249
|
if (e === "custom") {
|
|
2250
2250
|
let e = n.block.width;
|
|
2251
|
-
(typeof e != "number" || T.includes(e)) && r("update",
|
|
2252
|
-
} else r("update",
|
|
2251
|
+
(typeof e != "number" || T.includes(e)) && r("update", W.widthUpdates(ki));
|
|
2252
|
+
} else r("update", W.widthUpdates(e === "full" ? "full" : Number(e)));
|
|
2253
2253
|
}
|
|
2254
|
-
function
|
|
2254
|
+
function R(e) {
|
|
2255
2255
|
I("height", e === "custom" ? Ai : void 0);
|
|
2256
2256
|
}
|
|
2257
|
-
function
|
|
2257
|
+
function te(e) {
|
|
2258
2258
|
I("fluidOnMobile", e === "always" || e !== "never" && void 0);
|
|
2259
2259
|
}
|
|
2260
|
-
function
|
|
2260
|
+
function V(e) {
|
|
2261
2261
|
let t = Number(e);
|
|
2262
2262
|
!Number.isFinite(t) || t <= 0 || I("height", t);
|
|
2263
2263
|
}
|
|
2264
|
-
function
|
|
2265
|
-
I("borderRadius",
|
|
2264
|
+
function ne(e) {
|
|
2265
|
+
I("borderRadius", ge(e) === null ? void 0 : e);
|
|
2266
2266
|
}
|
|
2267
|
-
function
|
|
2267
|
+
function re(e) {
|
|
2268
2268
|
let t = Number(e);
|
|
2269
|
-
!Number.isFinite(t) || t <= 0 || r("update",
|
|
2269
|
+
!Number.isFinite(t) || t <= 0 || r("update", W.widthUpdates(t));
|
|
2270
2270
|
}
|
|
2271
|
-
function
|
|
2271
|
+
function ie(e) {
|
|
2272
2272
|
e !== n.block.src && r("update", {
|
|
2273
2273
|
src: e,
|
|
2274
|
-
...
|
|
2274
|
+
...He(null)
|
|
2275
2275
|
});
|
|
2276
2276
|
}
|
|
2277
|
-
function
|
|
2277
|
+
function ae(e) {
|
|
2278
2278
|
r("update", {
|
|
2279
2279
|
src: e.url,
|
|
2280
|
-
...
|
|
2280
|
+
...He(Le(e.width, e.height))
|
|
2281
2281
|
}), e.alt && (I("alt", e.alt), S.value = !0), y.value = !0, w();
|
|
2282
2282
|
}
|
|
2283
|
-
let
|
|
2284
|
-
target:
|
|
2285
|
-
blocked:
|
|
2286
|
-
apply:
|
|
2287
|
-
}),
|
|
2283
|
+
let oe = E(), H = C(() => be(n.block.src, c)), { canBrowse: se, isUploading: ce, showOverlay: le, openMediaBrowser: ue } = Ye({
|
|
2284
|
+
target: oe,
|
|
2285
|
+
blocked: H,
|
|
2286
|
+
apply: ae
|
|
2287
|
+
}), fe = Ie(() => H.value || !n.block.src || Ve(n.block) ? void 0 : n.block.src), U = fn(() => fe.value), pe = C(() => d ? Ue(d.content.value, n.block.id, f) : null), W = ci({
|
|
2288
2288
|
block: () => n.block,
|
|
2289
|
-
room: () =>
|
|
2290
|
-
measured: () =>
|
|
2291
|
-
}), { available:
|
|
2292
|
-
function
|
|
2293
|
-
let e =
|
|
2289
|
+
room: () => pe.value,
|
|
2290
|
+
measured: () => U.value
|
|
2291
|
+
}), { available: G, locked: K, derivedHeight: q, cappedHeight: J } = W;
|
|
2292
|
+
function Y() {
|
|
2293
|
+
let e = W.setLocked(!K.value);
|
|
2294
2294
|
e && r("update", e);
|
|
2295
2295
|
}
|
|
2296
|
-
let
|
|
2297
|
-
function
|
|
2298
|
-
|
|
2299
|
-
let t =
|
|
2296
|
+
let X = E(null);
|
|
2297
|
+
function me(e) {
|
|
2298
|
+
X.value = e;
|
|
2299
|
+
let t = W.heightUpdates(Number(e));
|
|
2300
2300
|
t && r("update", t);
|
|
2301
2301
|
}
|
|
2302
2302
|
return (t, n) => (i(), p(D, null, [
|
|
@@ -2307,25 +2307,25 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2307
2307
|
}, {
|
|
2308
2308
|
default: a(() => [b("div", {
|
|
2309
2309
|
ref_key: "dropZoneRef",
|
|
2310
|
-
ref:
|
|
2310
|
+
ref: oe,
|
|
2311
2311
|
class: "tpl:relative"
|
|
2312
2312
|
}, [
|
|
2313
|
-
h(
|
|
2313
|
+
h(le) ? (i(), v(Be, {
|
|
2314
2314
|
key: 0,
|
|
2315
|
-
uploading: h(
|
|
2315
|
+
uploading: h(ce)
|
|
2316
2316
|
}, null, 8, ["uploading"])) : _("", !0),
|
|
2317
2317
|
k(N, {
|
|
2318
2318
|
"model-value": e.block.src,
|
|
2319
2319
|
type: "url",
|
|
2320
2320
|
placeholder: h(o).image.imageUrlPlaceholder,
|
|
2321
2321
|
pulse: y.value,
|
|
2322
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
2322
|
+
"onUpdate:modelValue": n[0] ||= (e) => ie(e)
|
|
2323
2323
|
}, null, 8, [
|
|
2324
2324
|
"model-value",
|
|
2325
2325
|
"placeholder",
|
|
2326
2326
|
"pulse"
|
|
2327
2327
|
]),
|
|
2328
|
-
h(
|
|
2328
|
+
h(se) ? (i(), p("button", {
|
|
2329
2329
|
key: 1,
|
|
2330
2330
|
class: "tpl:mt-2 tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all",
|
|
2331
2331
|
style: {
|
|
@@ -2333,15 +2333,15 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2333
2333
|
color: "var(--tpl-primary)",
|
|
2334
2334
|
"background-color": "var(--tpl-bg)"
|
|
2335
2335
|
},
|
|
2336
|
-
onClick: n[1] ||= (...e) => h(
|
|
2337
|
-
}, [k(h(
|
|
2336
|
+
onClick: n[1] ||= (...e) => h(ue) && h(ue)(...e)
|
|
2337
|
+
}, [k(h(de), {
|
|
2338
2338
|
size: 14,
|
|
2339
2339
|
"stroke-width": 1.5
|
|
2340
2340
|
}), m(" " + x(h(o).image.browseMedia), 1)])) : _("", !0)
|
|
2341
2341
|
], 512)]),
|
|
2342
2342
|
_: 1
|
|
2343
2343
|
}, 8, ["label"]),
|
|
2344
|
-
h(
|
|
2344
|
+
h(be)(e.block.src, h(c)) ? (i(), v(A, {
|
|
2345
2345
|
key: 0,
|
|
2346
2346
|
class: "tpl:mb-3.5",
|
|
2347
2347
|
path: "placeholderUrl"
|
|
@@ -2349,7 +2349,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2349
2349
|
label: a(() => [m(x(h(o).image.placeholderUrl) + " ", 1), b("span", li, x(h(o).image.optional), 1)]),
|
|
2350
2350
|
default: a(() => [b("input", {
|
|
2351
2351
|
type: "url",
|
|
2352
|
-
class: g(h(
|
|
2352
|
+
class: g(h(B)),
|
|
2353
2353
|
value: e.block.placeholderUrl || "",
|
|
2354
2354
|
placeholder: h(o).image.placeholderUrlPlaceholder,
|
|
2355
2355
|
title: h(o).image.placeholderUrlTooltip,
|
|
@@ -2401,7 +2401,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2401
2401
|
path: "width"
|
|
2402
2402
|
}, {
|
|
2403
2403
|
default: a(() => [b("select", {
|
|
2404
|
-
class: g(h(
|
|
2404
|
+
class: g(h(B)),
|
|
2405
2405
|
"data-testid": "image-width-mode",
|
|
2406
2406
|
value: j.value,
|
|
2407
2407
|
onChange: n[5] ||= (e) => ee(e.target.value)
|
|
@@ -2414,10 +2414,10 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2414
2414
|
], 42, fi), j.value === "custom" ? (i(), p("div", hi, [b("input", {
|
|
2415
2415
|
type: "number",
|
|
2416
2416
|
"data-testid": "image-width-input",
|
|
2417
|
-
class: g(h(
|
|
2417
|
+
class: g(h(z)),
|
|
2418
2418
|
value: typeof e.block.width == "number" ? e.block.width : ki,
|
|
2419
2419
|
min: "20",
|
|
2420
|
-
onInput: n[6] ||= (e) =>
|
|
2420
|
+
onInput: n[6] ||= (e) => re(e.target.value)
|
|
2421
2421
|
}, null, 42, gi), b("span", { class: g(h(L)) }, "px", 2)])) : _("", !0)]),
|
|
2422
2422
|
_: 1
|
|
2423
2423
|
}, 8, ["label"]),
|
|
@@ -2427,10 +2427,10 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2427
2427
|
path: "fluidOnMobile"
|
|
2428
2428
|
}, {
|
|
2429
2429
|
default: a(() => [b("select", {
|
|
2430
|
-
class: g(h(
|
|
2430
|
+
class: g(h(B)),
|
|
2431
2431
|
"data-testid": "image-fluid-on-mobile",
|
|
2432
2432
|
value: F.value,
|
|
2433
|
-
onChange: n[7] ||= (e) =>
|
|
2433
|
+
onChange: n[7] ||= (e) => te(e.target.value)
|
|
2434
2434
|
}, [
|
|
2435
2435
|
b("option", vi, x(h(o).image.fluidOnMobileAuto), 1),
|
|
2436
2436
|
b("option", yi, x(h(o).image.fluidOnMobileAlways), 1),
|
|
@@ -2444,40 +2444,40 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2444
2444
|
label: h(o).image.height
|
|
2445
2445
|
}, O({
|
|
2446
2446
|
default: a(() => [
|
|
2447
|
-
h(
|
|
2447
|
+
h(K) ? (i(), p(D, { key: 0 }, [b("div", xi, [b("input", {
|
|
2448
2448
|
type: "number",
|
|
2449
2449
|
"data-testid": "image-locked-height-input",
|
|
2450
|
-
class: g(h(
|
|
2451
|
-
value:
|
|
2450
|
+
class: g(h(z)),
|
|
2451
|
+
value: X.value ?? h(q) ?? "",
|
|
2452
2452
|
min: "1",
|
|
2453
|
-
onInput: n[8] ||= (e) =>
|
|
2454
|
-
onBlur: n[9] ||= (e) =>
|
|
2455
|
-
}, null, 42, Si), b("span", { class: g(h(L)) }, "px", 2)]), h(
|
|
2456
|
-
h(
|
|
2453
|
+
onInput: n[8] ||= (e) => me(e.target.value),
|
|
2454
|
+
onBlur: n[9] ||= (e) => X.value = null
|
|
2455
|
+
}, null, 42, Si), b("span", { class: g(h(L)) }, "px", 2)]), h(J) === null ? _("", !0) : (i(), p("p", Ci, x(h(s)(h(o).image.heightCapped, { height: h(J) })), 1))], 64)) : _("", !0),
|
|
2456
|
+
h(K) ? _("", !0) : (i(), p("select", {
|
|
2457
2457
|
key: 1,
|
|
2458
|
-
class: g(h(
|
|
2458
|
+
class: g(h(B)),
|
|
2459
2459
|
"data-testid": "image-height-mode",
|
|
2460
2460
|
value: M.value,
|
|
2461
|
-
onChange: n[10] ||= (e) =>
|
|
2461
|
+
onChange: n[10] ||= (e) => R(e.target.value)
|
|
2462
2462
|
}, [b("option", Ti, x(h(o).image.heightAuto), 1), b("option", Ei, x(h(o).image.heightCustom), 1)], 42, wi)),
|
|
2463
|
-
!h(
|
|
2463
|
+
!h(K) && M.value === "custom" ? (i(), p("div", Di, [b("input", {
|
|
2464
2464
|
type: "number",
|
|
2465
2465
|
"data-testid": "image-height-input",
|
|
2466
|
-
class: g(h(
|
|
2466
|
+
class: g(h(z)),
|
|
2467
2467
|
value: e.block.height,
|
|
2468
2468
|
min: "20",
|
|
2469
|
-
onInput: n[11] ||= (e) =>
|
|
2469
|
+
onInput: n[11] ||= (e) => V(e.target.value)
|
|
2470
2470
|
}, null, 42, Oi), b("span", { class: g(h(L)) }, "px", 2)])) : _("", !0)
|
|
2471
2471
|
]),
|
|
2472
2472
|
_: 2
|
|
2473
|
-
}, [h(
|
|
2473
|
+
}, [h(G) ? {
|
|
2474
2474
|
name: "label-actions",
|
|
2475
|
-
fn: a(() => [k(
|
|
2476
|
-
linked: h(
|
|
2475
|
+
fn: a(() => [k(Ct, {
|
|
2476
|
+
linked: h(K),
|
|
2477
2477
|
"link-label": h(o).image.lockAspectRatio,
|
|
2478
2478
|
"unlink-label": h(o).image.unlockAspectRatio,
|
|
2479
2479
|
testid: "image-aspect-lock",
|
|
2480
|
-
onToggle:
|
|
2480
|
+
onToggle: Y
|
|
2481
2481
|
}, null, 8, [
|
|
2482
2482
|
"linked",
|
|
2483
2483
|
"link-label",
|
|
@@ -2485,14 +2485,14 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2485
2485
|
])]),
|
|
2486
2486
|
key: "0"
|
|
2487
2487
|
} : void 0]), 1032, ["label"]),
|
|
2488
|
-
k(
|
|
2488
|
+
k(At, {
|
|
2489
2489
|
path: "borderRadius",
|
|
2490
2490
|
"model-value": e.block.borderRadius,
|
|
2491
2491
|
label: h(o).image.borderRadius,
|
|
2492
2492
|
"testid-prefix": "image",
|
|
2493
|
-
"onUpdate:modelValue":
|
|
2493
|
+
"onUpdate:modelValue": ne
|
|
2494
2494
|
}, null, 8, ["model-value", "label"]),
|
|
2495
|
-
k(
|
|
2495
|
+
k(Dt, {
|
|
2496
2496
|
path: "border",
|
|
2497
2497
|
"model-value": e.block.border,
|
|
2498
2498
|
"testid-prefix": "image",
|
|
@@ -2503,7 +2503,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2503
2503
|
class: "tpl:mb-3.5",
|
|
2504
2504
|
path: "align"
|
|
2505
2505
|
}, {
|
|
2506
|
-
default: a(() => [k(
|
|
2506
|
+
default: a(() => [k(Q, {
|
|
2507
2507
|
options: [
|
|
2508
2508
|
{
|
|
2509
2509
|
value: "left",
|
|
@@ -2568,7 +2568,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2568
2568
|
},
|
|
2569
2569
|
emits: ["update"],
|
|
2570
2570
|
setup(e, { emit: t }) {
|
|
2571
|
-
let n = e, r = t, { t: o } =
|
|
2571
|
+
let n = e, r = t, { t: o } = Z(), s = C(() => [
|
|
2572
2572
|
{
|
|
2573
2573
|
key: "openInNewTab",
|
|
2574
2574
|
label: o.menu.openInNewTab
|
|
@@ -2585,17 +2585,17 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2585
2585
|
{
|
|
2586
2586
|
value: "left",
|
|
2587
2587
|
label: o.title.alignLeft,
|
|
2588
|
-
icon:
|
|
2588
|
+
icon: G
|
|
2589
2589
|
},
|
|
2590
2590
|
{
|
|
2591
2591
|
value: "center",
|
|
2592
2592
|
label: o.title.alignCenter,
|
|
2593
|
-
icon:
|
|
2593
|
+
icon: X
|
|
2594
2594
|
},
|
|
2595
2595
|
{
|
|
2596
2596
|
value: "right",
|
|
2597
2597
|
label: o.title.alignRight,
|
|
2598
|
-
icon:
|
|
2598
|
+
icon: ue
|
|
2599
2599
|
}
|
|
2600
2600
|
]);
|
|
2601
2601
|
function u(e, t) {
|
|
@@ -2603,7 +2603,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2603
2603
|
}
|
|
2604
2604
|
function d() {
|
|
2605
2605
|
let e = {
|
|
2606
|
-
id:
|
|
2606
|
+
id: ve(),
|
|
2607
2607
|
text: "",
|
|
2608
2608
|
url: "",
|
|
2609
2609
|
openInNewTab: !1,
|
|
@@ -2634,7 +2634,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2634
2634
|
}, {
|
|
2635
2635
|
default: a(() => [b("input", {
|
|
2636
2636
|
type: "text",
|
|
2637
|
-
class: g([h(
|
|
2637
|
+
class: g([h(B), "tpl:flex-1"]),
|
|
2638
2638
|
value: t.text,
|
|
2639
2639
|
placeholder: h(o).menu.text,
|
|
2640
2640
|
onInput: (e) => f(t.id, "text", e.target.value)
|
|
@@ -2644,7 +2644,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2644
2644
|
class: g(h(I)),
|
|
2645
2645
|
title: h(o).menu.removeItem,
|
|
2646
2646
|
onClick: (e) => _(t.id)
|
|
2647
|
-
}, [k(h(
|
|
2647
|
+
}, [k(h(Y), {
|
|
2648
2648
|
size: 14,
|
|
2649
2649
|
"stroke-width": 2
|
|
2650
2650
|
})], 10, Fi)]),
|
|
@@ -2695,9 +2695,9 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2695
2695
|
_: 2
|
|
2696
2696
|
}, 1032, ["path", "label"])])
|
|
2697
2697
|
]))), 128)), b("button", {
|
|
2698
|
-
class: g(h(
|
|
2698
|
+
class: g(h(R)),
|
|
2699
2699
|
onClick: d
|
|
2700
|
-
}, [k(h(
|
|
2700
|
+
}, [k(h(H), {
|
|
2701
2701
|
size: 14,
|
|
2702
2702
|
"stroke-width": 2
|
|
2703
2703
|
}), m(" " + x(h(o).menu.addItem), 1)], 2)])]),
|
|
@@ -2708,8 +2708,8 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2708
2708
|
label: h(o).menu.fontFamily
|
|
2709
2709
|
}, {
|
|
2710
2710
|
default: a(() => [b("select", {
|
|
2711
|
-
class: g(h(
|
|
2712
|
-
value: h(
|
|
2711
|
+
class: g(h(B)),
|
|
2712
|
+
value: h(Me)(e.block.fontFamily),
|
|
2713
2713
|
onChange: n[0] ||= (e) => u("fontFamily", e.target.value || void 0)
|
|
2714
2714
|
}, [b("option", zi, x(h(o).title.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
2715
2715
|
key: e.value,
|
|
@@ -2721,7 +2721,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2721
2721
|
path: "fontSize",
|
|
2722
2722
|
label: h(o).menu.fontSize
|
|
2723
2723
|
}, {
|
|
2724
|
-
default: a(() => [k(
|
|
2724
|
+
default: a(() => [k(xt, {
|
|
2725
2725
|
"model-value": e.block.fontSize,
|
|
2726
2726
|
min: 8,
|
|
2727
2727
|
max: 48,
|
|
@@ -2754,7 +2754,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2754
2754
|
path: "textAlign",
|
|
2755
2755
|
label: h(o).menu.textAlign
|
|
2756
2756
|
}, {
|
|
2757
|
-
default: a(() => [k(
|
|
2757
|
+
default: a(() => [k(Q, {
|
|
2758
2758
|
options: l.value,
|
|
2759
2759
|
"model-value": e.block.textAlign,
|
|
2760
2760
|
"onUpdate:modelValue": n[4] ||= (e) => u("textAlign", e)
|
|
@@ -2767,7 +2767,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2767
2767
|
}, {
|
|
2768
2768
|
default: a(() => [b("input", {
|
|
2769
2769
|
type: "text",
|
|
2770
|
-
class: g(h(
|
|
2770
|
+
class: g(h(B)),
|
|
2771
2771
|
value: e.block.separator,
|
|
2772
2772
|
onInput: n[5] ||= (e) => u("separator", e.target.value)
|
|
2773
2773
|
}, null, 42, Vi)]),
|
|
@@ -2787,7 +2787,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2787
2787
|
path: "spacing",
|
|
2788
2788
|
label: h(o).menu.spacing
|
|
2789
2789
|
}, {
|
|
2790
|
-
default: a(() => [k(
|
|
2790
|
+
default: a(() => [k(xt, {
|
|
2791
2791
|
"model-value": e.block.spacing,
|
|
2792
2792
|
min: 0,
|
|
2793
2793
|
max: 50,
|
|
@@ -2803,7 +2803,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2803
2803
|
props: { block: {} },
|
|
2804
2804
|
emits: ["update"],
|
|
2805
2805
|
setup(e, { emit: t }) {
|
|
2806
|
-
let n = t, { t: r } =
|
|
2806
|
+
let n = t, { t: r } = Z();
|
|
2807
2807
|
return (t, o) => (i(), v(A, {
|
|
2808
2808
|
label: h(r).paragraph.paragraphSpacing,
|
|
2809
2809
|
class: "tpl:mb-3.5",
|
|
@@ -2812,8 +2812,8 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2812
2812
|
}, {
|
|
2813
2813
|
default: a(() => [b("div", Ui, [b("input", {
|
|
2814
2814
|
type: "number",
|
|
2815
|
-
class: g(h(
|
|
2816
|
-
value: e.block.paragraphSpacing ?? h(
|
|
2815
|
+
class: g(h(z)),
|
|
2816
|
+
value: e.block.paragraphSpacing ?? h(ye).paragraphGap,
|
|
2817
2817
|
min: "0",
|
|
2818
2818
|
max: "64",
|
|
2819
2819
|
onInput: o[0] ||= (e) => n("update", { paragraphSpacing: Number(e.target.value) })
|
|
@@ -2824,7 +2824,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2824
2824
|
});
|
|
2825
2825
|
// src/utils/rebalanceColumnChildren.ts
|
|
2826
2826
|
function Ki(e, t) {
|
|
2827
|
-
let n =
|
|
2827
|
+
let n = me(t);
|
|
2828
2828
|
if (e.length === n) return e;
|
|
2829
2829
|
if (e.length < n) {
|
|
2830
2830
|
let t = Array.from({ length: n - e.length }, () => []);
|
|
@@ -2848,7 +2848,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2848
2848
|
props: { block: {} },
|
|
2849
2849
|
emits: ["update"],
|
|
2850
2850
|
setup(e, { emit: t }) {
|
|
2851
|
-
let n = e, r = t, { t: o } =
|
|
2851
|
+
let n = e, r = t, { t: o } = Z(), s = l(nt, void 0), u = l(Ze, void 0), d = s !== void 0 && we(s), f = C(() => u !== !1 || !!n.block.wrapper), m = C(() => d && !n.block.wrapper), y = C(() => d && f.value), S = C(() => Ce(n.block)?.applied === !0), w = C(() => [
|
|
2852
2852
|
{
|
|
2853
2853
|
value: "1",
|
|
2854
2854
|
label: o.section.column1
|
|
@@ -2923,8 +2923,8 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2923
2923
|
F({ borderRadius: e });
|
|
2924
2924
|
}
|
|
2925
2925
|
return (t, n) => (i(), p(D, null, [
|
|
2926
|
-
b("div", qi, [b("label", { class: g(h(
|
|
2927
|
-
class: g(h(
|
|
2926
|
+
b("div", qi, [b("label", { class: g(h(V)) }, x(h(o).section.columns), 3), b("select", {
|
|
2927
|
+
class: g(h(B)),
|
|
2928
2928
|
value: e.block.columns,
|
|
2929
2929
|
onChange: T
|
|
2930
2930
|
}, [(i(!0), p(D, null, c(w.value, (e) => (i(), p("option", {
|
|
@@ -2951,7 +2951,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2951
2951
|
])]),
|
|
2952
2952
|
_: 1
|
|
2953
2953
|
}, 8, ["label"])),
|
|
2954
|
-
k(
|
|
2954
|
+
k(At, {
|
|
2955
2955
|
path: "borderRadius",
|
|
2956
2956
|
"model-value": e.block.borderRadius,
|
|
2957
2957
|
label: h(o).section.borderRadius,
|
|
@@ -2959,7 +2959,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2959
2959
|
"testid-prefix": "section",
|
|
2960
2960
|
"onUpdate:modelValue": O
|
|
2961
2961
|
}, null, 8, ["model-value", "label"]),
|
|
2962
|
-
S.value ? _("", !0) : (i(), v(
|
|
2962
|
+
S.value ? _("", !0) : (i(), v(Dt, {
|
|
2963
2963
|
key: 1,
|
|
2964
2964
|
path: "border",
|
|
2965
2965
|
"model-value": e.block.border,
|
|
@@ -3042,7 +3042,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3042
3042
|
},
|
|
3043
3043
|
"onUpdate:modelValue": I
|
|
3044
3044
|
}, null, 8, ["label", "model-value"]),
|
|
3045
|
-
k(
|
|
3045
|
+
k(At, {
|
|
3046
3046
|
path: "wrapper.borderRadius",
|
|
3047
3047
|
"model-value": e.block.wrapper.borderRadius,
|
|
3048
3048
|
label: h(o).section.borderRadius,
|
|
@@ -3059,13 +3059,13 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3059
3059
|
props: { block: {} },
|
|
3060
3060
|
emits: ["update"],
|
|
3061
3061
|
setup(e, { emit: t }) {
|
|
3062
|
-
let n = e, r = t, { t: o } =
|
|
3062
|
+
let n = e, r = t, { t: o } = Z();
|
|
3063
3063
|
function s(e, t) {
|
|
3064
3064
|
r("update", { [e]: t });
|
|
3065
3065
|
}
|
|
3066
3066
|
function l() {
|
|
3067
3067
|
let e = {
|
|
3068
|
-
id:
|
|
3068
|
+
id: ve(),
|
|
3069
3069
|
platform: "facebook",
|
|
3070
3070
|
url: ""
|
|
3071
3071
|
};
|
|
@@ -3082,7 +3082,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3082
3082
|
r("update", { icons: n.block.icons.filter((t) => t.id !== e) });
|
|
3083
3083
|
}
|
|
3084
3084
|
return (t, n) => (i(), p(D, null, [
|
|
3085
|
-
b("div", ea, [b("label", { class: g(h(
|
|
3085
|
+
b("div", ea, [b("label", { class: g(h(V)) }, x(h(o).social.icons), 3), b("div", ta, [(i(!0), p(D, null, c(e.block.icons, (e) => (i(), p("div", {
|
|
3086
3086
|
key: e.id,
|
|
3087
3087
|
class: "tpl:flex tpl:flex-col tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-2"
|
|
3088
3088
|
}, [b("div", na, [k(A, {
|
|
@@ -3091,10 +3091,10 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3091
3091
|
}, {
|
|
3092
3092
|
default: a(() => [b("select", {
|
|
3093
3093
|
"data-testid": "social-platform-select",
|
|
3094
|
-
class: g([h(
|
|
3094
|
+
class: g([h(B), "tpl:flex-1"]),
|
|
3095
3095
|
value: e.platform,
|
|
3096
3096
|
onChange: (t) => u(e.id, "platform", t.target.value)
|
|
3097
|
-
}, [(i(!0), p(D, null, c(h(
|
|
3097
|
+
}, [(i(!0), p(D, null, c(h(qe), (e) => (i(), p("option", {
|
|
3098
3098
|
key: e,
|
|
3099
3099
|
value: e
|
|
3100
3100
|
}, x(h(o).social.platforms[e]), 9, ia))), 128))], 42, ra)]),
|
|
@@ -3103,7 +3103,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3103
3103
|
class: g(h(I)),
|
|
3104
3104
|
title: h(o).social.removeIcon,
|
|
3105
3105
|
onClick: (t) => d(e.id)
|
|
3106
|
-
}, [k(h(
|
|
3106
|
+
}, [k(h(Y), {
|
|
3107
3107
|
size: 14,
|
|
3108
3108
|
"stroke-width": 2
|
|
3109
3109
|
})], 10, aa)]), k(A, {
|
|
@@ -3122,9 +3122,9 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3122
3122
|
])]),
|
|
3123
3123
|
_: 2
|
|
3124
3124
|
}, 1032, ["path", "label"])]))), 128)), b("button", {
|
|
3125
|
-
class: g(h(
|
|
3125
|
+
class: g(h(R)),
|
|
3126
3126
|
onClick: l
|
|
3127
|
-
}, [k(h(
|
|
3127
|
+
}, [k(h(H), {
|
|
3128
3128
|
size: 14,
|
|
3129
3129
|
"stroke-width": 2
|
|
3130
3130
|
}), m(" " + x(h(o).social.addIcon), 1)], 2)])]),
|
|
@@ -3134,7 +3134,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3134
3134
|
path: "iconStyle"
|
|
3135
3135
|
}, {
|
|
3136
3136
|
default: a(() => [b("select", {
|
|
3137
|
-
class: g(h(
|
|
3137
|
+
class: g(h(B)),
|
|
3138
3138
|
value: e.block.iconStyle,
|
|
3139
3139
|
onChange: n[0] ||= (e) => s("iconStyle", e.target.value)
|
|
3140
3140
|
}, [
|
|
@@ -3154,7 +3154,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3154
3154
|
}, {
|
|
3155
3155
|
default: a(() => [b("select", {
|
|
3156
3156
|
"data-testid": "social-tone-select",
|
|
3157
|
-
class: g(h(
|
|
3157
|
+
class: g(h(B)),
|
|
3158
3158
|
value: e.block.iconTone ?? "brand",
|
|
3159
3159
|
onChange: n[1] ||= (e) => s("iconTone", e.target.value)
|
|
3160
3160
|
}, [
|
|
@@ -3169,7 +3169,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3169
3169
|
class: "tpl:mb-3.5",
|
|
3170
3170
|
path: "iconSize"
|
|
3171
3171
|
}, {
|
|
3172
|
-
default: a(() => [k(
|
|
3172
|
+
default: a(() => [k(Q, {
|
|
3173
3173
|
options: [
|
|
3174
3174
|
{
|
|
3175
3175
|
value: "small",
|
|
@@ -3196,7 +3196,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3196
3196
|
}, {
|
|
3197
3197
|
default: a(() => [b("div", _a, [b("input", {
|
|
3198
3198
|
type: "number",
|
|
3199
|
-
class: g(h(
|
|
3199
|
+
class: g(h(z)),
|
|
3200
3200
|
value: e.block.spacing,
|
|
3201
3201
|
min: "0",
|
|
3202
3202
|
max: "50",
|
|
@@ -3209,22 +3209,22 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3209
3209
|
class: "tpl:mb-3.5",
|
|
3210
3210
|
path: "align"
|
|
3211
3211
|
}, {
|
|
3212
|
-
default: a(() => [k(
|
|
3212
|
+
default: a(() => [k(Q, {
|
|
3213
3213
|
options: [
|
|
3214
3214
|
{
|
|
3215
3215
|
value: "left",
|
|
3216
3216
|
label: h(o).title.alignLeft,
|
|
3217
|
-
icon: h(
|
|
3217
|
+
icon: h(G)
|
|
3218
3218
|
},
|
|
3219
3219
|
{
|
|
3220
3220
|
value: "center",
|
|
3221
3221
|
label: h(o).title.alignCenter,
|
|
3222
|
-
icon: h(
|
|
3222
|
+
icon: h(X)
|
|
3223
3223
|
},
|
|
3224
3224
|
{
|
|
3225
3225
|
value: "right",
|
|
3226
3226
|
label: h(o).title.alignRight,
|
|
3227
|
-
icon: h(
|
|
3227
|
+
icon: h(ue)
|
|
3228
3228
|
}
|
|
3229
3229
|
],
|
|
3230
3230
|
"model-value": e.block.align,
|
|
@@ -3239,7 +3239,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3239
3239
|
props: { block: {} },
|
|
3240
3240
|
emits: ["update"],
|
|
3241
3241
|
setup(e, { emit: t }) {
|
|
3242
|
-
let n = t, { t: r } =
|
|
3242
|
+
let n = t, { t: r } = Z();
|
|
3243
3243
|
return (t, o) => (i(), v(A, {
|
|
3244
3244
|
label: h(r).spacer.height,
|
|
3245
3245
|
class: "tpl:mb-3.5",
|
|
@@ -3247,7 +3247,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3247
3247
|
}, {
|
|
3248
3248
|
default: a(() => [b("div", ba, [b("input", {
|
|
3249
3249
|
type: "number",
|
|
3250
|
-
class: g(h(
|
|
3250
|
+
class: g(h(z)),
|
|
3251
3251
|
value: e.block.height,
|
|
3252
3252
|
min: "10",
|
|
3253
3253
|
max: "100",
|
|
@@ -3271,15 +3271,15 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3271
3271
|
},
|
|
3272
3272
|
emits: ["update"],
|
|
3273
3273
|
setup(e, { emit: t }) {
|
|
3274
|
-
let n = e, r = t, { t: o } =
|
|
3274
|
+
let n = e, r = t, { t: o } = Z(), s = C(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
|
|
3275
3275
|
function l(e, t) {
|
|
3276
3276
|
r("update", { [e]: t });
|
|
3277
3277
|
}
|
|
3278
3278
|
function u() {
|
|
3279
3279
|
let e = n.block.rows.length > 0 ? n.block.rows[0].cells.length : 3, t = {
|
|
3280
|
-
id:
|
|
3280
|
+
id: ve(),
|
|
3281
3281
|
cells: Array.from({ length: e }, () => ({
|
|
3282
|
-
id:
|
|
3282
|
+
id: ve(),
|
|
3283
3283
|
content: ""
|
|
3284
3284
|
}))
|
|
3285
3285
|
};
|
|
@@ -3292,7 +3292,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3292
3292
|
let e = n.block.rows.map((e) => ({
|
|
3293
3293
|
...e,
|
|
3294
3294
|
cells: [...e.cells, {
|
|
3295
|
-
id:
|
|
3295
|
+
id: ve(),
|
|
3296
3296
|
content: ""
|
|
3297
3297
|
}]
|
|
3298
3298
|
}));
|
|
@@ -3306,12 +3306,12 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3306
3306
|
r("update", { rows: t });
|
|
3307
3307
|
}
|
|
3308
3308
|
return (t, n) => (i(), p(D, null, [
|
|
3309
|
-
b("div", wa, [b("label", { class: g(h(
|
|
3309
|
+
b("div", wa, [b("label", { class: g(h(V)) }, x(h(o).table.dimensions), 3), b("div", Ta, [b("div", Ea, [b("span", Da, x(h(o).table.rows), 1), b("div", Oa, [
|
|
3310
3310
|
b("button", {
|
|
3311
3311
|
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",
|
|
3312
3312
|
disabled: e.block.rows.length <= 1,
|
|
3313
3313
|
onClick: n[0] ||= (t) => d(e.block.rows[e.block.rows.length - 1].id)
|
|
3314
|
-
}, [k(h(
|
|
3314
|
+
}, [k(h(U), {
|
|
3315
3315
|
size: 12,
|
|
3316
3316
|
"stroke-width": 2
|
|
3317
3317
|
})], 8, ka),
|
|
@@ -3319,7 +3319,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3319
3319
|
b("button", {
|
|
3320
3320
|
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)]",
|
|
3321
3321
|
onClick: u
|
|
3322
|
-
}, [k(h(
|
|
3322
|
+
}, [k(h(H), {
|
|
3323
3323
|
size: 12,
|
|
3324
3324
|
"stroke-width": 2
|
|
3325
3325
|
})])
|
|
@@ -3328,7 +3328,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3328
3328
|
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",
|
|
3329
3329
|
disabled: s.value <= 1,
|
|
3330
3330
|
onClick: n[1] ||= (e) => m(s.value - 1)
|
|
3331
|
-
}, [k(h(
|
|
3331
|
+
}, [k(h(U), {
|
|
3332
3332
|
size: 12,
|
|
3333
3333
|
"stroke-width": 2
|
|
3334
3334
|
})], 8, Pa),
|
|
@@ -3336,7 +3336,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3336
3336
|
b("button", {
|
|
3337
3337
|
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)]",
|
|
3338
3338
|
onClick: f
|
|
3339
|
-
}, [k(h(
|
|
3339
|
+
}, [k(h(H), {
|
|
3340
3340
|
size: 12,
|
|
3341
3341
|
"stroke-width": 2
|
|
3342
3342
|
})])
|
|
@@ -3368,7 +3368,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3368
3368
|
}, {
|
|
3369
3369
|
default: a(() => [k(M, {
|
|
3370
3370
|
"model-value": e.block.headerBackgroundColor ?? "",
|
|
3371
|
-
"seed-color": h(
|
|
3371
|
+
"seed-color": h(te),
|
|
3372
3372
|
placeholder: h(o).table.noHeaderBg,
|
|
3373
3373
|
"onUpdate:modelValue": n[3] ||= (e) => l("headerBackgroundColor", e || null)
|
|
3374
3374
|
}, null, 8, [
|
|
@@ -3396,7 +3396,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3396
3396
|
}, {
|
|
3397
3397
|
default: a(() => [b("div", Ia, [b("input", {
|
|
3398
3398
|
type: "number",
|
|
3399
|
-
class: g(h(
|
|
3399
|
+
class: g(h(z)),
|
|
3400
3400
|
value: e.block.borderWidth,
|
|
3401
3401
|
min: "0",
|
|
3402
3402
|
max: "10",
|
|
@@ -3411,7 +3411,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3411
3411
|
}, {
|
|
3412
3412
|
default: a(() => [b("div", Ra, [b("input", {
|
|
3413
3413
|
type: "number",
|
|
3414
|
-
class: g(h(
|
|
3414
|
+
class: g(h(z)),
|
|
3415
3415
|
value: e.block.cellPadding,
|
|
3416
3416
|
min: "0",
|
|
3417
3417
|
max: "30",
|
|
@@ -3425,8 +3425,8 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3425
3425
|
path: "fontFamily"
|
|
3426
3426
|
}, {
|
|
3427
3427
|
default: a(() => [b("select", {
|
|
3428
|
-
class: g(h(
|
|
3429
|
-
value: h(
|
|
3428
|
+
class: g(h(B)),
|
|
3429
|
+
value: h(Me)(e.block.fontFamily),
|
|
3430
3430
|
onChange: n[7] ||= (e) => l("fontFamily", e.target.value || void 0)
|
|
3431
3431
|
}, [b("option", Va, x(h(o).title.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
3432
3432
|
key: e.value,
|
|
@@ -3441,7 +3441,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3441
3441
|
}, {
|
|
3442
3442
|
default: a(() => [b("div", Ua, [b("input", {
|
|
3443
3443
|
type: "number",
|
|
3444
|
-
class: g(h(
|
|
3444
|
+
class: g(h(z)),
|
|
3445
3445
|
value: e.block.fontSize,
|
|
3446
3446
|
min: "10",
|
|
3447
3447
|
max: "32",
|
|
@@ -3465,22 +3465,22 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3465
3465
|
class: "tpl:mb-3.5",
|
|
3466
3466
|
path: "textAlign"
|
|
3467
3467
|
}, {
|
|
3468
|
-
default: a(() => [k(
|
|
3468
|
+
default: a(() => [k(Q, {
|
|
3469
3469
|
options: [
|
|
3470
3470
|
{
|
|
3471
3471
|
value: "left",
|
|
3472
3472
|
label: h(o).title.alignLeft,
|
|
3473
|
-
icon: h(
|
|
3473
|
+
icon: h(G)
|
|
3474
3474
|
},
|
|
3475
3475
|
{
|
|
3476
3476
|
value: "center",
|
|
3477
3477
|
label: h(o).title.alignCenter,
|
|
3478
|
-
icon: h(
|
|
3478
|
+
icon: h(X)
|
|
3479
3479
|
},
|
|
3480
3480
|
{
|
|
3481
3481
|
value: "right",
|
|
3482
3482
|
label: h(o).title.alignRight,
|
|
3483
|
-
icon: h(
|
|
3483
|
+
icon: h(ue)
|
|
3484
3484
|
}
|
|
3485
3485
|
],
|
|
3486
3486
|
"model-value": e.block.textAlign,
|
|
@@ -3498,7 +3498,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3498
3498
|
},
|
|
3499
3499
|
emits: ["update"],
|
|
3500
3500
|
setup(e, { emit: t }) {
|
|
3501
|
-
let n = t, { t: r } =
|
|
3501
|
+
let n = t, { t: r } = Z();
|
|
3502
3502
|
function o(e, t) {
|
|
3503
3503
|
n("update", { [e]: t });
|
|
3504
3504
|
}
|
|
@@ -3509,7 +3509,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3509
3509
|
path: "level"
|
|
3510
3510
|
}, {
|
|
3511
3511
|
default: a(() => [b("select", {
|
|
3512
|
-
class: g(h(
|
|
3512
|
+
class: g(h(B)),
|
|
3513
3513
|
value: e.block.level,
|
|
3514
3514
|
onChange: n[0] ||= (e) => o("level", Number(e.target.value))
|
|
3515
3515
|
}, [
|
|
@@ -3526,8 +3526,8 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3526
3526
|
path: "fontFamily"
|
|
3527
3527
|
}, {
|
|
3528
3528
|
default: a(() => [b("select", {
|
|
3529
|
-
class: g(h(
|
|
3530
|
-
value: h(
|
|
3529
|
+
class: g(h(B)),
|
|
3530
|
+
value: h(Me)(e.block.fontFamily),
|
|
3531
3531
|
onChange: n[1] ||= (e) => o("fontFamily", e.target.value || void 0)
|
|
3532
3532
|
}, [b("option", Qa, x(h(r).title.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
3533
3533
|
key: e.value,
|
|
@@ -3551,22 +3551,22 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3551
3551
|
class: "tpl:mb-3.5",
|
|
3552
3552
|
path: "textAlign"
|
|
3553
3553
|
}, {
|
|
3554
|
-
default: a(() => [k(
|
|
3554
|
+
default: a(() => [k(Q, {
|
|
3555
3555
|
options: [
|
|
3556
3556
|
{
|
|
3557
3557
|
value: "left",
|
|
3558
3558
|
label: h(r).title.alignLeft,
|
|
3559
|
-
icon: h(
|
|
3559
|
+
icon: h(G)
|
|
3560
3560
|
},
|
|
3561
3561
|
{
|
|
3562
3562
|
value: "center",
|
|
3563
3563
|
label: h(r).title.alignCenter,
|
|
3564
|
-
icon: h(
|
|
3564
|
+
icon: h(X)
|
|
3565
3565
|
},
|
|
3566
3566
|
{
|
|
3567
3567
|
value: "right",
|
|
3568
3568
|
label: h(r).title.alignRight,
|
|
3569
|
-
icon: h(
|
|
3569
|
+
icon: h(ue)
|
|
3570
3570
|
}
|
|
3571
3571
|
],
|
|
3572
3572
|
"model-value": e.block.textAlign,
|
|
@@ -3591,14 +3591,14 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3591
3591
|
props: { block: {} },
|
|
3592
3592
|
emits: ["update"],
|
|
3593
3593
|
setup(e, { emit: t }) {
|
|
3594
|
-
let n = e, r = t, { t: o } =
|
|
3594
|
+
let n = e, r = t, { t: o } = Z(), s = l(rt, null), c = l(Qe, _e.liquid), u = ze(), d = [
|
|
3595
3595
|
300,
|
|
3596
3596
|
400,
|
|
3597
3597
|
500
|
|
3598
|
-
], f = C(() => !!s), y = C(() =>
|
|
3598
|
+
], f = C(() => !!s), y = C(() => be(n.block.url, c)), S = C(() => {
|
|
3599
3599
|
let e = n.block.width;
|
|
3600
3600
|
return e === "full" ? "full" : d.includes(e) ? String(e) : "custom";
|
|
3601
|
-
}), w = C(() => typeof n.block.height == "number" ? "custom" : "auto"), T = E(!1), { start: O } =
|
|
3601
|
+
}), w = C(() => typeof n.block.height == "number" ? "custom" : "auto"), T = E(!1), { start: O } = ht(() => {
|
|
3602
3602
|
T.value = !1;
|
|
3603
3603
|
}, 1e3, { immediate: !1 });
|
|
3604
3604
|
function j(e, t) {
|
|
@@ -3621,7 +3621,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3621
3621
|
let t = Number(e);
|
|
3622
3622
|
!Number.isFinite(t) || t <= 0 || j("height", t);
|
|
3623
3623
|
}
|
|
3624
|
-
async function
|
|
3624
|
+
async function R() {
|
|
3625
3625
|
let e = await s?.({ accept: ["images"] });
|
|
3626
3626
|
u.alive && e && (j("thumbnailUrl", e.url), T.value = !0, O());
|
|
3627
3627
|
}
|
|
@@ -3665,7 +3665,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3665
3665
|
label: a(() => [m(x(h(o).video.placeholderUrl) + " ", 1), b("span", to, x(h(o).video.optional), 1)]),
|
|
3666
3666
|
default: a(() => [b("input", {
|
|
3667
3667
|
type: "url",
|
|
3668
|
-
class: g(h(
|
|
3668
|
+
class: g(h(B)),
|
|
3669
3669
|
value: e.block.placeholderUrl || "",
|
|
3670
3670
|
placeholder: h(o).video.placeholderUrlPlaceholder,
|
|
3671
3671
|
title: h(o).video.placeholderUrlTooltip,
|
|
@@ -3696,8 +3696,8 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3696
3696
|
color: "var(--tpl-primary)",
|
|
3697
3697
|
"background-color": "var(--tpl-bg)"
|
|
3698
3698
|
},
|
|
3699
|
-
onClick:
|
|
3700
|
-
}, [k(h(
|
|
3699
|
+
onClick: R
|
|
3700
|
+
}, [k(h(de), {
|
|
3701
3701
|
size: 14,
|
|
3702
3702
|
"stroke-width": 1.5
|
|
3703
3703
|
}), m(" " + x(h(o).image.browseMedia), 1)])) : _("", !0)]),
|
|
@@ -3722,7 +3722,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3722
3722
|
path: "width"
|
|
3723
3723
|
}, {
|
|
3724
3724
|
default: a(() => [b("select", {
|
|
3725
|
-
class: g(h(
|
|
3725
|
+
class: g(h(B)),
|
|
3726
3726
|
"data-testid": "video-width-mode",
|
|
3727
3727
|
value: S.value,
|
|
3728
3728
|
onChange: n[5] ||= (e) => M(e.target.value)
|
|
@@ -3735,7 +3735,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3735
3735
|
], 42, io), S.value === "custom" ? (i(), p("div", so, [b("input", {
|
|
3736
3736
|
type: "number",
|
|
3737
3737
|
"data-testid": "video-width-input",
|
|
3738
|
-
class: g(h(
|
|
3738
|
+
class: g(h(z)),
|
|
3739
3739
|
value: e.block.width,
|
|
3740
3740
|
min: "20",
|
|
3741
3741
|
onInput: n[6] ||= (e) => F(e.target.value)
|
|
@@ -3748,14 +3748,14 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3748
3748
|
path: "height"
|
|
3749
3749
|
}, {
|
|
3750
3750
|
default: a(() => [b("select", {
|
|
3751
|
-
class: g(h(
|
|
3751
|
+
class: g(h(B)),
|
|
3752
3752
|
"data-testid": "video-height-mode",
|
|
3753
3753
|
value: w.value,
|
|
3754
3754
|
onChange: n[7] ||= (e) => I(e.target.value)
|
|
3755
3755
|
}, [b("option", uo, x(h(o).video.heightAuto), 1), b("option", fo, x(h(o).video.heightCustom), 1)], 42, lo), w.value === "custom" ? (i(), p("div", po, [b("input", {
|
|
3756
3756
|
type: "number",
|
|
3757
3757
|
"data-testid": "video-height-input",
|
|
3758
|
-
class: g(h(
|
|
3758
|
+
class: g(h(z)),
|
|
3759
3759
|
value: e.block.height,
|
|
3760
3760
|
min: "20",
|
|
3761
3761
|
onInput: n[8] ||= (e) => ee(e.target.value)
|
|
@@ -3767,7 +3767,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3767
3767
|
class: "tpl:mb-3.5",
|
|
3768
3768
|
path: "align"
|
|
3769
3769
|
}, {
|
|
3770
|
-
default: a(() => [k(
|
|
3770
|
+
default: a(() => [k(Q, {
|
|
3771
3771
|
options: [
|
|
3772
3772
|
{
|
|
3773
3773
|
value: "left",
|
|
@@ -3798,9 +3798,9 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3798
3798
|
"duplicate"
|
|
3799
3799
|
],
|
|
3800
3800
|
setup(e, { emit: t }) {
|
|
3801
|
-
let r = f(() => import("./CountdownToolbar-
|
|
3801
|
+
let r = f(() => import("./CountdownToolbar-CUTbVPPV.js")), a = e, o = t, { t: s } = Z(), c = ft(), u = lt(at, "Toolbar"), d = l(ot, []), m = C(() => a.block.type), g = C(() => Ae(a.block)), y = C(() => {
|
|
3802
3802
|
if (g.value) return d.find((e) => e.type === a.block.customType);
|
|
3803
|
-
}), S = C(() => g.value ? y.value?.name ?? a.block.customType :
|
|
3803
|
+
}), S = C(() => g.value ? y.value?.name ?? a.block.customType : Re(m.value, s)), w = C(() => je(u.fonts.value, "fontFamily" in a.block ? a.block.fontFamily : void 0));
|
|
3804
3804
|
function T(e) {
|
|
3805
3805
|
c.value && o("update", e);
|
|
3806
3806
|
}
|
|
@@ -3812,11 +3812,11 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3812
3812
|
disabled: !h(c),
|
|
3813
3813
|
inert: !h(c),
|
|
3814
3814
|
class: "tpl:contents"
|
|
3815
|
-
}, [b("div", bo, [b("div", xo, [h(
|
|
3815
|
+
}, [b("div", bo, [b("div", xo, [h(gt)[m.value] ? (i(), v(n(h(gt)[m.value]), {
|
|
3816
3816
|
key: 0,
|
|
3817
3817
|
size: 16,
|
|
3818
3818
|
"stroke-width": 1.5
|
|
3819
|
-
})) : g.value ? (i(), v(h(
|
|
3819
|
+
})) : g.value ? (i(), v(h(se), {
|
|
3820
3820
|
key: 1,
|
|
3821
3821
|
size: 16,
|
|
3822
3822
|
"stroke-width": 1.5
|
|
@@ -3824,14 +3824,14 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3824
3824
|
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:bg-[var(--tpl-bg-active)] tpl:hover:text-[var(--tpl-text)]",
|
|
3825
3825
|
title: h(s).toolbar.duplicate,
|
|
3826
3826
|
onClick: a[0] ||= (e) => o("duplicate")
|
|
3827
|
-
}, [k(h(
|
|
3827
|
+
}, [k(h(ie), {
|
|
3828
3828
|
size: 14,
|
|
3829
3829
|
"stroke-width": 2
|
|
3830
3830
|
})], 8, wo), b("button", {
|
|
3831
3831
|
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)]",
|
|
3832
3832
|
title: h(s).toolbar.delete,
|
|
3833
3833
|
onClick: a[1] ||= (e) => o("delete")
|
|
3834
|
-
}, [k(h(
|
|
3834
|
+
}, [k(h(pe), {
|
|
3835
3835
|
size: 14,
|
|
3836
3836
|
"stroke-width": 2
|
|
3837
3837
|
})], 8, To)])]), b("div", Eo, [g.value ? (i(), v(ti, {
|
|
@@ -3860,7 +3860,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3860
3860
|
key: 5,
|
|
3861
3861
|
block: e.block,
|
|
3862
3862
|
onUpdate: T
|
|
3863
|
-
}, null, 8, ["block"])) : m.value === "button" ? (i(), v(
|
|
3863
|
+
}, null, 8, ["block"])) : m.value === "button" ? (i(), v(Ut, {
|
|
3864
3864
|
key: 6,
|
|
3865
3865
|
block: e.block,
|
|
3866
3866
|
"font-families": w.value,
|
|
@@ -3902,7 +3902,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3902
3902
|
onUpdate: T
|
|
3903
3903
|
}, null, 8, ["block", "is-first-section"])])], 8, yo)], 8, vo));
|
|
3904
3904
|
}
|
|
3905
|
-
}), Oo = /* @__PURE__ */ e({ default: () => ko }), ko = /*#__PURE__*/
|
|
3906
|
-
export { ko as default,
|
|
3905
|
+
}), Oo = /* @__PURE__ */ e({ default: () => ko }), ko = /*#__PURE__*/ Pe(Do, [["__scopeId", "data-v-206f038f"]]);
|
|
3906
|
+
export { ko as default, xt as n, Q as r, Oo as t };
|
|
3907
3907
|
|
|
3908
|
-
//# sourceMappingURL=Toolbar-
|
|
3908
|
+
//# sourceMappingURL=Toolbar-CYnnArxv.js.map
|