@templatical/editor 0.53.0 → 0.54.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiChatPanel-DdhtfsmO.js → AiChatPanel-C8SeEJRP.js} +8 -8
- package/dist/{AiPanels-HBx7xoJR.js → AiPanels-CR6zphjP.js} +1 -1
- package/dist/{AiRewriteMenu-DPzSekZt.js → AiRewriteMenu-arKoTjsQ.js} +6 -6
- package/dist/{BlockIssueBadge-eIXZJ9M3.js → BlockIssueBadge-DaPTq1RE.js} +2 -2
- package/dist/{BlockPreviewCanvas-DO-2TP_6.js → BlockPreviewCanvas-BTieuBmH.js} +3 -3
- package/dist/{CloudPanels-i2kZdrdP.js → CloudPanels-Hxdp0doU.js} +3 -3
- package/dist/{CollaborationNotices-DANsjl7c.js → CollaborationNotices-Cnx0XHzZ.js} +1 -1
- package/dist/{CollaboratorBar-CbbAA0m1.js → CollaboratorBar-BaBoNhwB.js} +1 -1
- package/dist/{CommentsPanel-CYW3LWis.js → CommentsPanel-Ck3QmqiC.js} +1 -1
- package/dist/{CommentsSidebar-CcF4ISMi.js → CommentsSidebar-CHknhOar.js} +10 -10
- package/dist/{CountdownToolbar-D3Lv74kU.js → CountdownToolbar-CM4XNEuO.js} +3 -3
- package/dist/{IssuesPanel-BMAG9042.js → IssuesPanel-1wGV0wiy.js} +8 -8
- package/dist/{LanguageMenu-FlP_Jbup.js → LanguageMenu-BpxbIJEx.js} +8 -8
- package/dist/{LocaleNotices-DAnVszWu.js → LocaleNotices-WzsYtBRs.js} +2 -2
- package/dist/{LogicTagInsertButton-BjYs-UQX.js → LogicTagInsertButton-DgTJ6Lvx.js} +3 -3
- package/dist/{MediaEditModal-LnG-cF_S.js → MediaEditModal-C3U9Mi31.js} +1 -1
- package/dist/{MediaPanels-C2r5fiFo.js → MediaPanels-CGmk9ufe.js} +1 -1
- package/dist/{MergeTagInput-BsnogCeY.js → MergeTagInput-B_51YcQO.js} +1 -1
- package/dist/{MergeTagModeToggle-DiufIQ-_.js → MergeTagModeToggle-D3Q2z317.js} +3 -3
- package/dist/{MergeTagTextarea-BweI-Xsi.js → MergeTagTextarea-DZz1L9DE.js} +2 -2
- package/dist/{ParagraphEditor-qgBp5yIB.js → ParagraphEditor-B38t4E2p.js} +16 -15
- package/dist/{RestoreVersionDialog-DdYUrFiK.js → RestoreVersionDialog-n7FSmWXB.js} +3 -3
- package/dist/{RichTextEditorContent-C5MAzx3E.js → RichTextEditorContent-Dstovi0m.js} +4 -4
- package/dist/{SaveBlockDialog-eK6fjtTy.js → SaveBlockDialog-B94NpmDV.js} +7 -7
- package/dist/{SavedBlocksBrowserModal-D2QHd2Yp.js → SavedBlocksBrowserModal-C1vSc8iM.js} +9 -9
- package/dist/{SavedBlocksPanels-Cl61f4Mf.js → SavedBlocksPanels-DLDmIYeL.js} +1 -1
- package/dist/{SavedBlocksPickBar-CXP2dkeB.js → SavedBlocksPickBar-ngf2sFEs.js} +2 -2
- package/dist/{TemplateSettings-BKJrdZcH.js → TemplateSettings-Baar78_s.js} +6 -6
- package/dist/{TestEmailModal-DQotJg6g.js → TestEmailModal-CB_9I1bl.js} +6 -6
- package/dist/{TestEmailPanel-CwiTzJsh.js → TestEmailPanel-BUq-dbXQ.js} +1 -1
- package/dist/{TitleEditor-CzSvsPAn.js → TitleEditor-BLP41rwy.js} +10 -9
- package/dist/{Toolbar-Cd75ci5W.js → Toolbar-bOZ_eq7X.js} +27 -27
- package/dist/{TplModal-ZoXu40T9.js → TplModal-DFKqmJQz.js} +1 -1
- package/dist/{VersionHistoryMenu-BvhN-Ofk.js → VersionHistoryMenu-BnP0EyLl.js} +5 -5
- package/dist/{VersionHistoryPanels-DPWMnYbd.js → VersionHistoryPanels-DPxj3mec.js} +1 -1
- package/dist/{VersionPreviewBanner-CuJnasxH.js → VersionPreviewBanner-BPP939cD.js} +1 -1
- package/dist/{WrapperBlock-D4fPwO0t.js → WrapperBlock-BdVIuGMR.js} +2 -2
- package/dist/{blockTypeIcons-BXMxu86H.js → blockTypeIcons-BUyPZ7Su.js} +3 -3
- package/dist/bundle-stats.json +5 -5
- package/dist/cdn/chunks/{AiAltTextPopover-ByZ0FEqI.js → AiAltTextPopover-Cnc_kUmb.js} +2 -2
- package/dist/cdn/chunks/{AiAltTextPopover-ByZ0FEqI.js.map → AiAltTextPopover-Cnc_kUmb.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-Dtm3A2cD.js → AiAltTextReview-DPeSY-7r.js} +2 -2
- package/dist/cdn/chunks/{AiAltTextReview-Dtm3A2cD.js.map → AiAltTextReview-DPeSY-7r.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-DciEt27y.js → AiChatPanel-By8Uo1nH.js} +2 -2
- package/dist/cdn/chunks/{AiChatPanel-DciEt27y.js.map → AiChatPanel-By8Uo1nH.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-BV5D1itk.js → AiPanels-BblCSkQy.js} +2 -2
- package/dist/cdn/chunks/{AiPanels-BV5D1itk.js.map → AiPanels-BblCSkQy.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-D3jkh6Xb.js → AiRewriteMenu-YcVFv6RS.js} +6 -6
- package/dist/cdn/chunks/{AiRewriteMenu-D3jkh6Xb.js.map → AiRewriteMenu-YcVFv6RS.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-DyEgBZtR.js → BlockIssueBadge-D3Plo_wt.js} +2 -2
- package/dist/cdn/chunks/{BlockIssueBadge-DyEgBZtR.js.map → BlockIssueBadge-D3Plo_wt.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-RQFilqXC.js → BlockPreviewCanvas-6ck15xz9.js} +7 -7
- package/dist/cdn/chunks/{BlockPreviewCanvas-RQFilqXC.js.map → BlockPreviewCanvas-6ck15xz9.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-BSJ-Z5Hw.js → CloudPanels-BHHpNckC.js} +3 -3
- package/dist/cdn/chunks/{CloudPanels-BSJ-Z5Hw.js.map → CloudPanels-BHHpNckC.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-BS7xrlPE.js → CollaborationNotices-DraFUhyo.js} +2 -2
- package/dist/cdn/chunks/{CollaborationNotices-BS7xrlPE.js.map → CollaborationNotices-DraFUhyo.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-Bc9914Az.js → CollaboratorBar-0OEH3hrj.js} +2 -2
- package/dist/cdn/chunks/{CollaboratorBar-Bc9914Az.js.map → CollaboratorBar-0OEH3hrj.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-DbR9phAk.js → CommentsPanel-tZZswofV.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-DbR9phAk.js.map → CommentsPanel-tZZswofV.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-BD4--XP2.js → CommentsSidebar-7Hfl3Hdj.js} +2 -2
- package/dist/cdn/chunks/{CommentsSidebar-BD4--XP2.js.map → CommentsSidebar-7Hfl3Hdj.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-DxwYBw-d.js → CountdownToolbar-CNgsNL5-.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-DxwYBw-d.js.map → CountdownToolbar-CNgsNL5-.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-CUmI4HMm.js → IssuesPanel-Duic0mIs.js} +4 -4
- package/dist/cdn/chunks/{IssuesPanel-CUmI4HMm.js.map → IssuesPanel-Duic0mIs.js.map} +1 -1
- package/dist/cdn/chunks/{LanguageMenu-3ydCozQJ.js → LanguageMenu-C6utRx_4.js} +11 -11
- package/dist/cdn/chunks/{LanguageMenu-3ydCozQJ.js.map → LanguageMenu-C6utRx_4.js.map} +1 -1
- package/dist/cdn/chunks/{LocaleNotices-BfoH6gST.js → LocaleNotices-8J2DRWeg.js} +2 -2
- package/dist/cdn/chunks/{LocaleNotices-BfoH6gST.js.map → LocaleNotices-8J2DRWeg.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-5Z3fFzjc.js → LogicTagInsertButton-Bhvi0nWz.js} +5 -5
- package/dist/cdn/chunks/{LogicTagInsertButton-5Z3fFzjc.js.map → LogicTagInsertButton-Bhvi0nWz.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-DDCIwr9U.js → MediaEditModal-Dz972UFx.js} +2 -2
- package/dist/cdn/chunks/{MediaEditModal-DDCIwr9U.js.map → MediaEditModal-Dz972UFx.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-Dz79oy8P.js → MediaPanels-C6Hqtp1H.js} +2 -2
- package/dist/cdn/chunks/{MediaPanels-Dz79oy8P.js.map → MediaPanels-C6Hqtp1H.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-CIWy-cXf.js → MergeTagInput-CrhZm-AW.js} +2 -2
- package/dist/cdn/chunks/{MergeTagInput-CIWy-cXf.js.map → MergeTagInput-CrhZm-AW.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BrP5GR-x.js → MergeTagModeToggle-CWVtXLYa.js} +3 -3
- package/dist/cdn/chunks/{MergeTagModeToggle-BrP5GR-x.js.map → MergeTagModeToggle-CWVtXLYa.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-D3nNDlhV.js → MergeTagTextarea-hTIBwX0F.js} +7 -7
- package/dist/cdn/chunks/{MergeTagTextarea-D3nNDlhV.js.map → MergeTagTextarea-hTIBwX0F.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DDolH_Pf.js → ParagraphEditor-B3EQ0Ai6.js} +113 -112
- package/dist/cdn/chunks/ParagraphEditor-B3EQ0Ai6.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-Crj1DBqC.js → RestoreVersionDialog-DfNrVi0R.js} +3 -3
- package/dist/cdn/chunks/{RestoreVersionDialog-Crj1DBqC.js.map → RestoreVersionDialog-DfNrVi0R.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-rCCqFlwJ.js → RichTextEditorContent-up4AqL7D.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-rCCqFlwJ.js.map → RichTextEditorContent-up4AqL7D.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-C34RW1aM.js → SaveBlockDialog-BqglcKcN.js} +6 -6
- package/dist/cdn/chunks/{SaveBlockDialog-C34RW1aM.js.map → SaveBlockDialog-BqglcKcN.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CJnwWPT-.js → SavedBlocksBrowserModal-BewXGlrK.js} +6 -6
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CJnwWPT-.js.map → SavedBlocksBrowserModal-BewXGlrK.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-CA2PqXIH.js → SavedBlocksPanels-0ZpX-jXI.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-CA2PqXIH.js.map → SavedBlocksPanels-0ZpX-jXI.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-Dj3ortee.js → SavedBlocksPickBar-DHah-Uf7.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPickBar-Dj3ortee.js.map → SavedBlocksPickBar-DHah-Uf7.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-sW0ZlDl1.js → TemplateSettings-CWUpUKJb.js} +6 -6
- package/dist/cdn/chunks/{TemplateSettings-sW0ZlDl1.js.map → TemplateSettings-CWUpUKJb.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-BXeCtTjU.js → TestEmailModal-7pUDYLrk.js} +7 -7
- package/dist/cdn/chunks/{TestEmailModal-BXeCtTjU.js.map → TestEmailModal-7pUDYLrk.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-CpZcpB9D.js → TestEmailPanel-DBWwMsH1.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-CpZcpB9D.js.map → TestEmailPanel-DBWwMsH1.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-Bv3SmSO6.js → TitleEditor-VAanUjPQ.js} +9 -8
- package/dist/cdn/chunks/TitleEditor-VAanUjPQ.js.map +1 -0
- package/dist/cdn/chunks/{Toolbar-BJKpJ2Mg.js → Toolbar-BlWVQRcA.js} +571 -571
- package/dist/cdn/chunks/{Toolbar-BJKpJ2Mg.js.map → Toolbar-BlWVQRcA.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-DDDUDMYC.js → TplModal-DDlR7mk3.js} +2 -2
- package/dist/cdn/chunks/{TplModal-DDDUDMYC.js.map → TplModal-DDlR7mk3.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-DSElv3Sv.js → VersionHistoryMenu-CZury5gU.js} +4 -4
- package/dist/cdn/chunks/{VersionHistoryMenu-DSElv3Sv.js.map → VersionHistoryMenu-CZury5gU.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-H2nuik1l.js → VersionHistoryPanels-DJDeaf1B.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-H2nuik1l.js.map → VersionHistoryPanels-DJDeaf1B.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-Whwxh55w.js → VersionPreviewBanner-C4Ji8nu4.js} +2 -2
- package/dist/cdn/chunks/{VersionPreviewBanner-Whwxh55w.js.map → VersionPreviewBanner-C4Ji8nu4.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-jTqsuLnS.js → WrapperBlock-DRJnrgy-.js} +4 -4
- package/dist/cdn/chunks/{WrapperBlock-jTqsuLnS.js.map → WrapperBlock-DRJnrgy-.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-DMgLcuI8.js → blockTypeIcons-Cc6RJ27V.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-DMgLcuI8.js.map → blockTypeIcons-Cc6RJ27V.js.map} +1 -1
- package/dist/cdn/chunks/{composables-D0UYam2P.js → composables-Jc3uZuLs.js} +117 -117
- package/dist/cdn/chunks/{composables-D0UYam2P.js.map → composables-Jc3uZuLs.js.map} +1 -1
- package/dist/cdn/chunks/{createCloudRuntime-BdsclY8_.js → createCloudRuntime-C2Zs5F1O.js} +3 -3
- package/dist/cdn/chunks/{createCloudRuntime-BdsclY8_.js.map → createCloudRuntime-C2Zs5F1O.js.map} +1 -1
- package/dist/cdn/chunks/{editor-modal-CPbgthOv.js → editor-modal-erQEOHZN.js} +90 -90
- package/dist/cdn/chunks/{editor-modal-CPbgthOv.js.map → editor-modal-erQEOHZN.js.map} +1 -1
- package/dist/cdn/chunks/en-B6tLGRHq.js +1 -0
- package/dist/cdn/chunks/{extensions-Uh9vuFfK.js → extensions-DcMKZpzh.js} +4 -4
- package/dist/cdn/chunks/{extensions-Uh9vuFfK.js.map → extensions-DcMKZpzh.js.map} +1 -1
- package/dist/cdn/chunks/{icons-CSSMtbGK.js → icons-Da9GKjPx.js} +42 -42
- package/dist/cdn/chunks/{icons-CSSMtbGK.js.map → icons-Da9GKjPx.js.map} +1 -1
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-oGhwVscw.js → normalizeMergeTagMarkup-cC32Ox6A.js} +23 -23
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-oGhwVscw.js.map → normalizeMergeTagMarkup-cC32Ox6A.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-C8k7tw98.js → preRenderCustomBlocks-f7GEKdvw.js} +4 -4
- package/dist/cdn/chunks/{preRenderCustomBlocks-C8k7tw98.js.map → preRenderCustomBlocks-f7GEKdvw.js.map} +1 -1
- package/dist/cdn/chunks/{sanitizeHtml-DYklmvgX.js → sanitizeHtml-WTfz9lZd.js} +2 -2
- package/dist/cdn/chunks/{sanitizeHtml-DYklmvgX.js.map → sanitizeHtml-WTfz9lZd.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-BAiuHyJs.js → socialIcons-DeCYorUT.js} +493 -493
- package/dist/cdn/chunks/{socialIcons-BAiuHyJs.js.map → socialIcons-DeCYorUT.js.map} +1 -1
- package/dist/cdn/chunks/{src-Ddpm4HsS.js → src-8bYYJPCt.js} +237 -179
- package/dist/cdn/chunks/src-8bYYJPCt.js.map +1 -0
- package/dist/cdn/chunks/{src-DheBmnvF.js → src-A_cKeTM_.js} +263 -263
- package/dist/cdn/chunks/{src-DheBmnvF.js.map → src-A_cKeTM_.js.map} +1 -1
- package/dist/cdn/chunks/{src-CACM3o--.js → src-BQUv2CYU.js} +152 -152
- package/dist/cdn/chunks/{src-CACM3o--.js.map → src-BQUv2CYU.js.map} +1 -1
- package/dist/cdn/chunks/useLocalizedDisplay-aGfnO90D.js +33 -0
- package/dist/cdn/chunks/{useLocalizedDisplay-yXbRKNrs.js.map → useLocalizedDisplay-aGfnO90D.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-B7RpqVFQ.js → useLogicTag-DtYe8HIq.js} +2 -2
- package/dist/cdn/chunks/{useLogicTag-B7RpqVFQ.js.map → useLogicTag-DtYe8HIq.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-C-32ETjj.js → useMergeTag-B8ULmsnp.js} +2 -2
- package/dist/cdn/chunks/{useMergeTag-C-32ETjj.js.map → useMergeTag-B8ULmsnp.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-D33ZXoWp.js → withCurrentFont-MK8ga9q9.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-D33ZXoWp.js.map → withCurrentFont-MK8ga9q9.js.map} +1 -1
- package/dist/cdn/editor.js +262 -262
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-ChQ0l8EQ.js → check-XMnOOIEC.js} +1 -1
- package/dist/{chevron-down-Bh6cp6PI.js → chevron-down-DmamTEWQ.js} +1 -1
- package/dist/{chevron-right-LUgdqdoW.js → chevron-right-BEFXOH27.js} +1 -1
- package/dist/{chevron-up-XsDeJxQN.js → chevron-up-Dw7woXj8.js} +1 -1
- package/dist/{circle-alert-lODfDsrj.js → circle-alert-BTKC9vkq.js} +1 -1
- package/dist/{clock-DrqFEZkT.js → clock-BVT5u2uG.js} +1 -1
- package/dist/{composables-BOP3ERRP.js → composables-XjYKaKhY.js} +13 -13
- package/dist/{createLucideIcon-Dw5e5gVE.js → createLucideIcon-CgDE3xAR.js} +5 -5
- package/dist/{editor-modal-B_2EAOjN.js → editor-modal-BeX6otLk.js} +15 -15
- package/dist/en-Do0SU6tR.js +1 -0
- package/dist/{extensions-DOLZkLzV.js → extensions-BJ184osp.js} +1 -1
- package/dist/{eye-DChfk0gi.js → eye-ByMgHeA_.js} +1 -1
- package/dist/{image--Hj2by1G.js → image-Ch8tR35K.js} +1 -1
- package/dist/{info-BbXgy82f.js → info-DzSD-Wpk.js} +1 -1
- package/dist/{link-C2_8yJno.js → link-oDn9AR2w.js} +1 -1
- package/dist/{list-DLGs2n0V.js → list-C5t07dp8.js} +1 -1
- package/dist/{loader-circle-BbDItE_O.js → loader-circle-k6xvKgUB.js} +1 -1
- package/dist/{message-circle-NAModq0p.js → message-circle-C23R6OJR.js} +1 -1
- package/dist/{package-BuzsfRyH.js → package-C90eQ7NU.js} +1 -1
- package/dist/{pencil-BTUUECH4.js → pencil-BK7GrQuA.js} +1 -1
- package/dist/{plus-Dm7DN65T.js → plus-Cr0Mis63.js} +1 -1
- package/dist/{refresh-cw-xMURqGWi.js → refresh-cw-_ZLOIEvA.js} +1 -1
- package/dist/{rotate-ccw-DqVcEIn5.js → rotate-ccw-CB5wsHwv.js} +1 -1
- package/dist/{sanitizeHtml-mKgNUdME.js → sanitizeHtml-2rjV0r-6.js} +1 -1
- package/dist/{search-Cfr3W44N.js → search-BmrQNox8.js} +1 -1
- package/dist/{send-CH1SrvyB.js → send-blAsIBBg.js} +1 -1
- package/dist/{smartphone-pAkvzjdI.js → smartphone-BPpWYrwV.js} +1 -1
- package/dist/{socialIcons-Dqr4DJOz.js → socialIcons-TFiOkpoU.js} +3 -3
- package/dist/{sparkles-CRO0cCnp.js → sparkles-OqIxrNp-.js} +1 -1
- package/dist/{square-CaQWMntx.js → square-BP-V7iT-.js} +1 -1
- package/dist/templatical-editor.js +29 -29
- package/dist/{text-align-start-BQ39AaRK.js → text-align-start-4mwX2o-F.js} +13 -13
- package/dist/{trash-BL5gEFHN.js → trash-B99WixTA.js} +1 -1
- package/dist/{triangle-alert-BYbKu7zZ.js → triangle-alert-CHMiDkHa.js} +1 -1
- package/dist/{upload-BhmL4Vqx.js → upload-Cp8o-hrN.js} +1 -1
- package/dist/{useScrollToBlock-C0Kapxdh.js → useScrollToBlock-B35ObCGK.js} +1 -1
- package/dist/{x-B7NZYzhx.js → x-BIBStNMS.js} +1 -1
- package/package.json +8 -8
- package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.js.map +0 -1
- package/dist/cdn/chunks/en-IYVryJRl.js +0 -1
- package/dist/cdn/chunks/src-Ddpm4HsS.js.map +0 -1
- package/dist/cdn/chunks/useLocalizedDisplay-yXbRKNrs.js +0 -33
- package/dist/en-DTtwco2Q.js +0 -1
|
@@ -1,31 +1,31 @@
|
|
|
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, m as y, mt as b, o as x, p as S, pt as C, s as w, tt as T, u as E, v as D, x as O } from "./draggable-DepKdldn.js";
|
|
3
|
-
import {
|
|
4
|
-
import { F as
|
|
5
|
-
import { t as
|
|
6
|
-
import { $ as
|
|
7
|
-
import { B as
|
|
8
|
-
import { t as
|
|
9
|
-
import { n as
|
|
10
|
-
import { t as
|
|
11
|
-
import { S as
|
|
12
|
-
import { _ as
|
|
13
|
-
import { c as
|
|
14
|
-
import { t as
|
|
15
|
-
import { n as
|
|
16
|
-
import { c as
|
|
17
|
-
import { t as
|
|
18
|
-
import { n as
|
|
19
|
-
import { t as
|
|
3
|
+
import { Ft as k, Z as A, bn as j, cn as M, gn as N, ht as P, j as F, ln as I, mn as L, n as R, on as ee, pn as z, r as te, sn as ne, un as re, xn as ie } from "./src-BQUv2CYU.js";
|
|
4
|
+
import { F as ae, T as oe, _ as se, b as ce, d as le, f as ue, g as de, h as fe, i as pe, l as me, m as he, p as ge, r as _e, s as B, u as ve, v as ye } from "./socialIcons-DeCYorUT.js";
|
|
5
|
+
import { t as V } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
6
|
+
import { $ as be, At as xe, Bt as Se, H, It as Ce, Mt as we, O as Te, R as Ee, _ as De, _t as Oe, c as ke, et as Ae, f as je, gt as Me, h as Ne, it as Pe, lt as Fe, rt as Ie, t as Le, v as Re } from "./icons-Da9GKjPx.js";
|
|
7
|
+
import { B as ze, C as Be, O as Ve, T as He, U as Ue, X as We, _ as Ge, b as Ke, h as qe, ot as Je, p as Ye, r as Xe, v as Ze } from "./keys-CoQtCqNv.js";
|
|
8
|
+
import { t as U } from "./useI18n-BnJYydPv.js";
|
|
9
|
+
import { n as Qe } from "./useLocalizedDisplay-aGfnO90D.js";
|
|
10
|
+
import { t as $e } from "./languageName-DEEOhDWI.js";
|
|
11
|
+
import { S as et, _ as W, b as tt, c as nt, g as G, h as K, r as rt, v as q, y as it } from "./styleConstants-CgiNKdnc.js";
|
|
12
|
+
import { _ as at } from "./dist-BzXULHvI.js";
|
|
13
|
+
import { c as ot, r as st } from "./usePopoverPosition-BWAXWeBv.js";
|
|
14
|
+
import { t as ct } from "./blockTypeIcons-Cc6RJ27V.js";
|
|
15
|
+
import { n as J, t as lt } from "./MergeTagTextarea-hTIBwX0F.js";
|
|
16
|
+
import { c as Y } from "./LogicTagInsertButton-Bhvi0nWz.js";
|
|
17
|
+
import { t as X } from "./ToggleSwitch-BSkySwA1.js";
|
|
18
|
+
import { n as ut, t as dt } from "./withCurrentFont-MK8ga9q9.js";
|
|
19
|
+
import { t as Z } from "./MergeTagInput-CrhZm-AW.js";
|
|
20
20
|
// src/components/SlidingPillSelect.vue?vue&type=script&setup=true&lang.ts
|
|
21
|
-
var
|
|
21
|
+
var ft = [
|
|
22
22
|
"aria-checked",
|
|
23
23
|
"aria-label",
|
|
24
24
|
"disabled",
|
|
25
25
|
"aria-disabled",
|
|
26
26
|
"title",
|
|
27
27
|
"onClick"
|
|
28
|
-
],
|
|
28
|
+
], pt = { key: 1 }, Q = /* @__PURE__ */ r({
|
|
29
29
|
__name: "SlidingPillSelect",
|
|
30
30
|
props: {
|
|
31
31
|
options: {},
|
|
@@ -70,14 +70,14 @@ var pt = [
|
|
|
70
70
|
key: 0,
|
|
71
71
|
size: 14,
|
|
72
72
|
"stroke-width": 2
|
|
73
|
-
})) : (i(), p("span",
|
|
73
|
+
})) : (i(), p("span", pt, b(t.label), 1))], 12, ft))), 128))], 4));
|
|
74
74
|
}
|
|
75
|
-
}),
|
|
75
|
+
}), mt = { class: "tpl:flex tpl:items-stretch" }, ht = [
|
|
76
76
|
"data-testid",
|
|
77
77
|
"value",
|
|
78
78
|
"min",
|
|
79
79
|
"max"
|
|
80
|
-
],
|
|
80
|
+
], gt = /* @__PURE__ */ r({
|
|
81
81
|
__name: "NumberWithSuffix",
|
|
82
82
|
props: {
|
|
83
83
|
modelValue: {},
|
|
@@ -93,22 +93,22 @@ var pt = [
|
|
|
93
93
|
let t = e.target;
|
|
94
94
|
t.validity?.badInput || n("update:modelValue", Number(t.value));
|
|
95
95
|
}
|
|
96
|
-
return (t, n) => (i(), p("div",
|
|
96
|
+
return (t, n) => (i(), p("div", mt, [y("input", {
|
|
97
97
|
type: "number",
|
|
98
98
|
"data-testid": e.testid,
|
|
99
|
-
class: g(h(
|
|
99
|
+
class: g(h(G)),
|
|
100
100
|
value: e.modelValue,
|
|
101
101
|
min: e.min,
|
|
102
102
|
max: e.max,
|
|
103
103
|
onInput: r
|
|
104
|
-
}, null, 42,
|
|
104
|
+
}, null, 42, ht), y("span", { class: g(h(W)) }, b(e.suffix), 3)]));
|
|
105
105
|
}
|
|
106
|
-
}),
|
|
106
|
+
}), _t = [
|
|
107
107
|
"aria-pressed",
|
|
108
108
|
"aria-label",
|
|
109
109
|
"title",
|
|
110
110
|
"data-testid"
|
|
111
|
-
],
|
|
111
|
+
], vt = /* @__PURE__ */ r({
|
|
112
112
|
__name: "LinkToggle",
|
|
113
113
|
props: {
|
|
114
114
|
linked: { type: Boolean },
|
|
@@ -131,16 +131,16 @@ var pt = [
|
|
|
131
131
|
key: 0,
|
|
132
132
|
size: 14,
|
|
133
133
|
"stroke-width": 2
|
|
134
|
-
})) : (i(), v(h(
|
|
134
|
+
})) : (i(), v(h(ke), {
|
|
135
135
|
key: 1,
|
|
136
136
|
size: 14,
|
|
137
137
|
"stroke-width": 2
|
|
138
|
-
}))], 10,
|
|
138
|
+
}))], 10, _t));
|
|
139
139
|
}
|
|
140
|
-
}),
|
|
140
|
+
}), yt = {
|
|
141
141
|
key: 0,
|
|
142
142
|
class: "tpl:mb-3.5"
|
|
143
|
-
},
|
|
143
|
+
}, bt = { class: "tpl:mb-3.5" }, xt = { class: "tpl:mb-3.5" }, St = /* @__PURE__ */ r({
|
|
144
144
|
__name: "BorderControl",
|
|
145
145
|
props: {
|
|
146
146
|
path: {},
|
|
@@ -149,7 +149,7 @@ var pt = [
|
|
|
149
149
|
},
|
|
150
150
|
emits: ["update:modelValue"],
|
|
151
151
|
setup(e, { emit: t }) {
|
|
152
|
-
let n = e, r = t, { t: s } =
|
|
152
|
+
let n = e, r = t, { t: s } = U(), c = {
|
|
153
153
|
width: 0,
|
|
154
154
|
style: "solid",
|
|
155
155
|
color: "#000000"
|
|
@@ -159,7 +159,7 @@ var pt = [
|
|
|
159
159
|
}
|
|
160
160
|
let u = S(() => {
|
|
161
161
|
let e = n.modelValue;
|
|
162
|
-
return !e ||
|
|
162
|
+
return !e || L.every((t) => l(e[t], e.top));
|
|
163
163
|
}), d = T(u.value);
|
|
164
164
|
o(u, (e) => {
|
|
165
165
|
!e && d.value && (d.value = !1);
|
|
@@ -167,13 +167,13 @@ var pt = [
|
|
|
167
167
|
let f = T("top"), m = S(() => n.modelValue?.[d.value ? "top" : f.value] ?? c), x = (e) => !!e && e.width > 0;
|
|
168
168
|
function C(e) {
|
|
169
169
|
if (d.value) {
|
|
170
|
-
r("update:modelValue", x(e) ?
|
|
170
|
+
r("update:modelValue", x(e) ? ie(e) : void 0);
|
|
171
171
|
return;
|
|
172
172
|
}
|
|
173
173
|
let t = {
|
|
174
|
-
...n.modelValue ??
|
|
174
|
+
...n.modelValue ?? ie(c),
|
|
175
175
|
[f.value]: e
|
|
176
|
-
}, i =
|
|
176
|
+
}, i = L.some((e) => x(t[e]));
|
|
177
177
|
r("update:modelValue", i ? t : void 0);
|
|
178
178
|
}
|
|
179
179
|
function w(e) {
|
|
@@ -196,18 +196,18 @@ var pt = [
|
|
|
196
196
|
d.value = !0;
|
|
197
197
|
let e = n.modelValue;
|
|
198
198
|
if (!e) return;
|
|
199
|
-
let t = x(e[f.value]) ? e[f.value] :
|
|
200
|
-
r("update:modelValue", t ?
|
|
199
|
+
let t = x(e[f.value]) ? e[f.value] : L.map((t) => e[t]).find(x);
|
|
200
|
+
r("update:modelValue", t ? ie(t) : void 0);
|
|
201
201
|
}
|
|
202
|
-
let A = S(() =>
|
|
202
|
+
let A = S(() => L.map((e) => ({
|
|
203
203
|
value: e,
|
|
204
204
|
label: s.spacingControl[e]
|
|
205
205
|
})));
|
|
206
|
-
return (t, n) => (i(), v(
|
|
206
|
+
return (t, n) => (i(), v(J, {
|
|
207
207
|
path: e.path,
|
|
208
208
|
label: h(s).blockSettings.border
|
|
209
209
|
}, {
|
|
210
|
-
"label-actions": a(() => [O(
|
|
210
|
+
"label-actions": a(() => [O(vt, {
|
|
211
211
|
linked: d.value,
|
|
212
212
|
"link-label": h(s).blockSettings.linkSides,
|
|
213
213
|
"unlink-label": h(s).blockSettings.unlinkSides,
|
|
@@ -220,19 +220,19 @@ var pt = [
|
|
|
220
220
|
"testid"
|
|
221
221
|
])]),
|
|
222
222
|
default: a(() => [
|
|
223
|
-
d.value ? _("", !0) : (i(), p("div",
|
|
223
|
+
d.value ? _("", !0) : (i(), p("div", yt, [y("label", { class: g(h(q)) }, b(h(s).blockSettings.borderSide), 3), O(Q, {
|
|
224
224
|
options: A.value,
|
|
225
225
|
"model-value": f.value,
|
|
226
226
|
"onUpdate:modelValue": n[0] ||= (e) => f.value = e
|
|
227
227
|
}, null, 8, ["options", "model-value"])])),
|
|
228
|
-
y("div",
|
|
228
|
+
y("div", bt, [y("label", { class: g(h(q)) }, b(h(s).blockSettings.borderWidth), 3), O(gt, {
|
|
229
229
|
"model-value": m.value.width,
|
|
230
230
|
min: 0,
|
|
231
231
|
suffix: "px",
|
|
232
232
|
testid: `${e.testidPrefix}-border-width-input`,
|
|
233
233
|
"onUpdate:modelValue": w
|
|
234
234
|
}, null, 8, ["model-value", "testid"])]),
|
|
235
|
-
m.value.width > 0 ? (i(), p(E, { key: 1 }, [y("div",
|
|
235
|
+
m.value.width > 0 ? (i(), p(E, { key: 1 }, [y("div", xt, [y("label", { class: g(h(q)) }, b(h(s).blockSettings.borderStyle), 3), O(Q, {
|
|
236
236
|
options: [
|
|
237
237
|
{
|
|
238
238
|
value: "solid",
|
|
@@ -249,7 +249,7 @@ var pt = [
|
|
|
249
249
|
],
|
|
250
250
|
"model-value": m.value.style,
|
|
251
251
|
"onUpdate:modelValue": n[1] ||= (e) => D({ style: e })
|
|
252
|
-
}, null, 8, ["options", "model-value"])]), y("div", null, [y("label", { class: g(h(
|
|
252
|
+
}, null, 8, ["options", "model-value"])]), y("div", null, [y("label", { class: g(h(q)) }, b(h(s).blockSettings.borderColor), 3), O(Y, {
|
|
253
253
|
"model-value": m.value.color,
|
|
254
254
|
"onUpdate:modelValue": n[2] ||= (e) => D({ color: e })
|
|
255
255
|
}, null, 8, ["model-value"])])], 64)) : _("", !0)
|
|
@@ -257,10 +257,10 @@ var pt = [
|
|
|
257
257
|
_: 1
|
|
258
258
|
}, 8, ["path", "label"]));
|
|
259
259
|
}
|
|
260
|
-
}),
|
|
260
|
+
}), Ct = {
|
|
261
261
|
key: 1,
|
|
262
262
|
class: "tpl:grid tpl:grid-cols-2 tpl:gap-2"
|
|
263
|
-
},
|
|
263
|
+
}, wt = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Tt = /* @__PURE__ */ r({
|
|
264
264
|
__name: "RadiusControl",
|
|
265
265
|
props: {
|
|
266
266
|
path: {},
|
|
@@ -271,7 +271,7 @@ var pt = [
|
|
|
271
271
|
},
|
|
272
272
|
emits: ["update:modelValue"],
|
|
273
273
|
setup(e, { emit: t }) {
|
|
274
|
-
let n = e, r = t, { t: s } =
|
|
274
|
+
let n = e, r = t, { t: s } = U(), l = {
|
|
275
275
|
topLeft: "cornerTopLeft",
|
|
276
276
|
topRight: "cornerTopRight",
|
|
277
277
|
bottomRight: "cornerBottomRight",
|
|
@@ -289,7 +289,7 @@ var pt = [
|
|
|
289
289
|
bottomRight: e,
|
|
290
290
|
bottomLeft: e
|
|
291
291
|
} : e;
|
|
292
|
-
}), f = S(() =>
|
|
292
|
+
}), f = S(() => z.every((e) => d.value[e] === d.value.topLeft)), m = T(f.value);
|
|
293
293
|
o(f, (e) => {
|
|
294
294
|
!e && m.value && (m.value = !1);
|
|
295
295
|
});
|
|
@@ -308,11 +308,11 @@ var pt = [
|
|
|
308
308
|
function C() {
|
|
309
309
|
m.value = !m.value, m.value && r("update:modelValue", d.value.topLeft);
|
|
310
310
|
}
|
|
311
|
-
return (t, n) => (i(), v(
|
|
311
|
+
return (t, n) => (i(), v(J, {
|
|
312
312
|
path: e.path,
|
|
313
313
|
label: e.label
|
|
314
314
|
}, {
|
|
315
|
-
"label-actions": a(() => [O(
|
|
315
|
+
"label-actions": a(() => [O(vt, {
|
|
316
316
|
linked: m.value,
|
|
317
317
|
"link-label": h(s).blockSettings.linkCorners,
|
|
318
318
|
"unlink-label": h(s).blockSettings.unlinkCorners,
|
|
@@ -324,7 +324,7 @@ var pt = [
|
|
|
324
324
|
"unlink-label",
|
|
325
325
|
"testid"
|
|
326
326
|
])]),
|
|
327
|
-
default: a(() => [m.value ? (i(), v(
|
|
327
|
+
default: a(() => [m.value ? (i(), v(gt, {
|
|
328
328
|
key: 0,
|
|
329
329
|
"model-value": d.value.topLeft,
|
|
330
330
|
min: 0,
|
|
@@ -336,7 +336,7 @@ var pt = [
|
|
|
336
336
|
"model-value",
|
|
337
337
|
"max",
|
|
338
338
|
"testid"
|
|
339
|
-
])) : (i(), p("div",
|
|
339
|
+
])) : (i(), p("div", Ct, [(i(), p(E, null, c(u, (t) => y("div", { key: t }, [y("label", wt, b(h(s).blockSettings[l[t]]), 1), O(gt, {
|
|
340
340
|
"model-value": d.value[t],
|
|
341
341
|
min: 0,
|
|
342
342
|
max: e.max,
|
|
@@ -352,10 +352,10 @@ var pt = [
|
|
|
352
352
|
_: 1
|
|
353
353
|
}, 8, ["path", "label"]));
|
|
354
354
|
}
|
|
355
|
-
}),
|
|
355
|
+
}), Et = ["value"], Dt = { value: "" }, Ot = ["value"], kt = { class: "tpl:flex tpl:items-stretch" }, At = ["value"], jt = ["value"], Mt = { value: "auto" }, Nt = { value: "full" }, Pt = { value: "custom" }, Ft = {
|
|
356
356
|
key: 0,
|
|
357
357
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
358
|
-
},
|
|
358
|
+
}, It = ["value"], Lt = 200, Rt = /* @__PURE__ */ r({
|
|
359
359
|
__name: "ButtonToolbar",
|
|
360
360
|
props: {
|
|
361
361
|
block: {},
|
|
@@ -363,61 +363,61 @@ var pt = [
|
|
|
363
363
|
},
|
|
364
364
|
emits: ["update"],
|
|
365
365
|
setup(e, { emit: t }) {
|
|
366
|
-
let n = e, r = t, { t: o } =
|
|
366
|
+
let n = e, r = t, { t: o } = U(), s = S(() => n.block.width === "full" ? "full" : typeof n.block.width == "number" ? "custom" : "auto");
|
|
367
367
|
function l(e, t) {
|
|
368
368
|
r("update", { [e]: t });
|
|
369
369
|
}
|
|
370
370
|
function u(e) {
|
|
371
|
-
e === "full" ? l("width", "full") : e === "custom" ? l("width", typeof n.block.width == "number" ? n.block.width :
|
|
371
|
+
e === "full" ? l("width", "full") : e === "custom" ? l("width", typeof n.block.width == "number" ? n.block.width : Lt) : l("width", void 0);
|
|
372
372
|
}
|
|
373
373
|
function d(e) {
|
|
374
374
|
let t = Number(e);
|
|
375
375
|
!Number.isFinite(t) || t <= 0 || l("width", t);
|
|
376
376
|
}
|
|
377
377
|
return (t, n) => (i(), p(E, null, [
|
|
378
|
-
O(
|
|
378
|
+
O(J, {
|
|
379
379
|
label: h(o).button.fontFamily,
|
|
380
380
|
class: "tpl:mb-3.5",
|
|
381
381
|
path: "fontFamily"
|
|
382
382
|
}, {
|
|
383
383
|
default: a(() => [y("select", {
|
|
384
|
-
class: g(h(
|
|
385
|
-
value: h(
|
|
384
|
+
class: g(h(K)),
|
|
385
|
+
value: h(dt)(e.block.fontFamily),
|
|
386
386
|
onChange: n[0] ||= (e) => l("fontFamily", e.target.value || void 0)
|
|
387
|
-
}, [y("option",
|
|
387
|
+
}, [y("option", Dt, b(h(o).button.inheritFont), 1), (i(!0), p(E, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
388
388
|
key: e.value,
|
|
389
389
|
value: e.value
|
|
390
|
-
}, b(e.label), 9,
|
|
390
|
+
}, b(e.label), 9, Ot))), 128))], 42, Et)]),
|
|
391
391
|
_: 1
|
|
392
392
|
}, 8, ["label"]),
|
|
393
|
-
O(
|
|
393
|
+
O(J, {
|
|
394
394
|
label: h(o).button.text,
|
|
395
395
|
class: "tpl:mb-3.5",
|
|
396
396
|
path: "text"
|
|
397
397
|
}, {
|
|
398
|
-
default: a(() => [O(
|
|
398
|
+
default: a(() => [O(Z, {
|
|
399
399
|
"model-value": e.block.text,
|
|
400
400
|
type: "text",
|
|
401
401
|
"onUpdate:modelValue": n[1] ||= (e) => l("text", e)
|
|
402
402
|
}, null, 8, ["model-value"])]),
|
|
403
403
|
_: 1
|
|
404
404
|
}, 8, ["label"]),
|
|
405
|
-
O(
|
|
405
|
+
O(J, {
|
|
406
406
|
label: h(o).button.url,
|
|
407
407
|
class: "tpl:mb-3.5",
|
|
408
408
|
path: "url"
|
|
409
409
|
}, {
|
|
410
|
-
default: a(() => [O(
|
|
410
|
+
default: a(() => [O(Z, {
|
|
411
411
|
"model-value": e.block.url,
|
|
412
412
|
type: "url",
|
|
413
413
|
placeholder: h(o).button.urlPlaceholder,
|
|
414
414
|
"onUpdate:modelValue": n[2] ||= (e) => l("url", e)
|
|
415
|
-
}, null, 8, ["model-value", "placeholder"]), e.block.url ? (i(), v(
|
|
415
|
+
}, null, 8, ["model-value", "placeholder"]), e.block.url ? (i(), v(J, {
|
|
416
416
|
key: 0,
|
|
417
417
|
path: "openInNewTab",
|
|
418
418
|
label: h(o).button.openInNewTab
|
|
419
419
|
}, {
|
|
420
|
-
"label-actions": a(({ controlId: t }) => [O(
|
|
420
|
+
"label-actions": a(({ controlId: t }) => [O(X, {
|
|
421
421
|
"control-id": t,
|
|
422
422
|
"hide-label": "",
|
|
423
423
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
@@ -433,36 +433,36 @@ var pt = [
|
|
|
433
433
|
}, 8, ["label"])) : _("", !0)]),
|
|
434
434
|
_: 1
|
|
435
435
|
}, 8, ["label"]),
|
|
436
|
-
O(
|
|
436
|
+
O(J, {
|
|
437
437
|
label: h(o).button.background,
|
|
438
438
|
class: "tpl:mb-3.5",
|
|
439
439
|
path: "backgroundColor"
|
|
440
440
|
}, {
|
|
441
|
-
default: a(() => [O(
|
|
441
|
+
default: a(() => [O(Y, {
|
|
442
442
|
"model-value": e.block.backgroundColor,
|
|
443
443
|
"allow-transparent": "",
|
|
444
444
|
"onUpdate:modelValue": n[4] ||= (e) => l("backgroundColor", e)
|
|
445
445
|
}, null, 8, ["model-value"])]),
|
|
446
446
|
_: 1
|
|
447
447
|
}, 8, ["label"]),
|
|
448
|
-
O(
|
|
448
|
+
O(J, {
|
|
449
449
|
label: h(o).button.textColor,
|
|
450
450
|
class: "tpl:mb-3.5",
|
|
451
451
|
path: "textColor"
|
|
452
452
|
}, {
|
|
453
|
-
default: a(() => [O(
|
|
453
|
+
default: a(() => [O(Y, {
|
|
454
454
|
"model-value": e.block.textColor,
|
|
455
455
|
"onUpdate:modelValue": n[5] ||= (e) => l("textColor", e)
|
|
456
456
|
}, null, 8, ["model-value"])]),
|
|
457
457
|
_: 1
|
|
458
458
|
}, 8, ["label"]),
|
|
459
|
-
O(
|
|
459
|
+
O(St, {
|
|
460
460
|
path: "border",
|
|
461
461
|
"model-value": e.block.border,
|
|
462
462
|
"testid-prefix": "button",
|
|
463
463
|
"onUpdate:modelValue": n[6] ||= (e) => l("border", e)
|
|
464
464
|
}, null, 8, ["model-value"]),
|
|
465
|
-
O(
|
|
465
|
+
O(Tt, {
|
|
466
466
|
path: "borderRadius",
|
|
467
467
|
"model-value": e.block.borderRadius,
|
|
468
468
|
label: h(o).button.borderRadius,
|
|
@@ -470,49 +470,49 @@ var pt = [
|
|
|
470
470
|
"testid-prefix": "button",
|
|
471
471
|
"onUpdate:modelValue": n[7] ||= (e) => l("borderRadius", e)
|
|
472
472
|
}, null, 8, ["model-value", "label"]),
|
|
473
|
-
O(
|
|
473
|
+
O(J, {
|
|
474
474
|
label: h(o).button.fontSize,
|
|
475
475
|
class: "tpl:mb-3.5",
|
|
476
476
|
path: "fontSize"
|
|
477
477
|
}, {
|
|
478
|
-
default: a(() => [y("div",
|
|
478
|
+
default: a(() => [y("div", kt, [y("input", {
|
|
479
479
|
type: "number",
|
|
480
|
-
class: g(h(
|
|
480
|
+
class: g(h(G)),
|
|
481
481
|
value: e.block.fontSize,
|
|
482
482
|
min: "10",
|
|
483
483
|
max: "36",
|
|
484
484
|
onInput: n[8] ||= (e) => l("fontSize", Number(e.target.value))
|
|
485
|
-
}, null, 42,
|
|
485
|
+
}, null, 42, At), y("span", { class: g(h(W)) }, "px", 2)])]),
|
|
486
486
|
_: 1
|
|
487
487
|
}, 8, ["label"]),
|
|
488
|
-
O(
|
|
488
|
+
O(J, {
|
|
489
489
|
label: h(o).button.width,
|
|
490
490
|
class: "tpl:mb-3.5",
|
|
491
491
|
path: "width"
|
|
492
492
|
}, {
|
|
493
493
|
default: a(() => [y("select", {
|
|
494
|
-
class: g(h(
|
|
494
|
+
class: g(h(K)),
|
|
495
495
|
value: s.value,
|
|
496
496
|
onChange: n[9] ||= (e) => u(e.target.value)
|
|
497
497
|
}, [
|
|
498
|
-
y("option",
|
|
499
|
-
y("option",
|
|
500
|
-
y("option",
|
|
501
|
-
], 42,
|
|
498
|
+
y("option", Mt, b(h(o).button.widthAuto), 1),
|
|
499
|
+
y("option", Nt, b(h(o).button.fullWidth), 1),
|
|
500
|
+
y("option", Pt, b(h(o).button.widthCustom), 1)
|
|
501
|
+
], 42, jt), s.value === "custom" ? (i(), p("div", Ft, [y("input", {
|
|
502
502
|
type: "number",
|
|
503
|
-
class: g(h(
|
|
504
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
503
|
+
class: g(h(G)),
|
|
504
|
+
value: typeof e.block.width == "number" ? e.block.width : Lt,
|
|
505
505
|
min: "20",
|
|
506
506
|
onInput: n[10] ||= (e) => d(e.target.value)
|
|
507
|
-
}, null, 42,
|
|
507
|
+
}, null, 42, It), y("span", { class: g(h(W)) }, "px", 2)])) : _("", !0)]),
|
|
508
508
|
_: 1
|
|
509
509
|
}, 8, ["label"]),
|
|
510
|
-
O(
|
|
510
|
+
O(J, {
|
|
511
511
|
label: h(o).title.align,
|
|
512
512
|
class: "tpl:mb-3.5",
|
|
513
513
|
path: "align"
|
|
514
514
|
}, {
|
|
515
|
-
default: a(() => [O(
|
|
515
|
+
default: a(() => [O(Q, {
|
|
516
516
|
options: [
|
|
517
517
|
{
|
|
518
518
|
value: "left",
|
|
@@ -534,7 +534,7 @@ var pt = [
|
|
|
534
534
|
}, 8, ["label"])
|
|
535
535
|
], 64));
|
|
536
536
|
}
|
|
537
|
-
}),
|
|
537
|
+
}), zt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, Bt = { class: "tpl:flex tpl:items-center" }, Vt = ["aria-label"], Ht = ["value", "aria-label"], Ut = ["aria-label"], Wt = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Gt = { class: "tpl:flex tpl:items-center" }, Kt = ["aria-label"], qt = ["value", "aria-label"], Jt = ["aria-label"], Yt = ["aria-label", "title"], Xt = { class: "tpl:flex tpl:items-center" }, Zt = ["aria-label"], Qt = ["value", "aria-label"], $t = ["aria-label"], en = { class: "tpl:flex tpl:items-center" }, tn = ["aria-label"], nn = ["value", "aria-label"], rn = ["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)]", an = "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)]", on = /*#__PURE__*/ V(/* @__PURE__ */ r({
|
|
538
538
|
__name: "SpacingControl",
|
|
539
539
|
props: {
|
|
540
540
|
path: {},
|
|
@@ -543,7 +543,7 @@ var pt = [
|
|
|
543
543
|
},
|
|
544
544
|
emits: ["update:modelValue"],
|
|
545
545
|
setup(e, { emit: t }) {
|
|
546
|
-
let n = e, r = t, { t: s } =
|
|
546
|
+
let n = e, r = t, { t: s } = U(), c = S(() => n.modelValue.top === n.modelValue.right && n.modelValue.right === n.modelValue.bottom && n.modelValue.bottom === n.modelValue.left), l = T(c.value);
|
|
547
547
|
o(c, (e) => {
|
|
548
548
|
!e && l.value && (l.value = !1);
|
|
549
549
|
});
|
|
@@ -582,71 +582,71 @@ var pt = [
|
|
|
582
582
|
});
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
|
-
return (t, n) => (i(), v(
|
|
585
|
+
return (t, n) => (i(), v(J, {
|
|
586
586
|
class: "spacing-control",
|
|
587
587
|
path: e.path,
|
|
588
588
|
label: e.label
|
|
589
589
|
}, {
|
|
590
|
-
default: a(() => [y("div",
|
|
591
|
-
y("div",
|
|
590
|
+
default: a(() => [y("div", zt, [
|
|
591
|
+
y("div", Bt, [
|
|
592
592
|
y("button", {
|
|
593
593
|
"aria-label": h(s).spacingControl.decreaseTop,
|
|
594
|
-
class: g([
|
|
594
|
+
class: g([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
595
595
|
onClick: n[0] ||= (e) => u("top", -1)
|
|
596
|
-
}, [O(h(
|
|
596
|
+
}, [O(h(Ae), {
|
|
597
597
|
size: 12,
|
|
598
598
|
"stroke-width": 2
|
|
599
|
-
})], 10,
|
|
599
|
+
})], 10, Vt),
|
|
600
600
|
y("input", {
|
|
601
601
|
type: "number",
|
|
602
|
-
class: g(
|
|
602
|
+
class: g(an),
|
|
603
603
|
value: e.modelValue.top,
|
|
604
604
|
"aria-label": h(s).spacingControl.top,
|
|
605
605
|
min: "0",
|
|
606
606
|
onInput: n[1] ||= (e) => d("top", Number(e.target.value))
|
|
607
|
-
}, null, 40,
|
|
607
|
+
}, null, 40, Ht),
|
|
608
608
|
y("button", {
|
|
609
609
|
"aria-label": h(s).spacingControl.increaseTop,
|
|
610
|
-
class: g([
|
|
610
|
+
class: g([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
611
611
|
onClick: n[2] ||= (e) => u("top", 1)
|
|
612
|
-
}, [O(h(
|
|
612
|
+
}, [O(h(H), {
|
|
613
613
|
size: 12,
|
|
614
614
|
"stroke-width": 2
|
|
615
|
-
})], 10,
|
|
615
|
+
})], 10, Ut)
|
|
616
616
|
]),
|
|
617
|
-
y("div",
|
|
618
|
-
y("div",
|
|
617
|
+
y("div", Wt, [
|
|
618
|
+
y("div", Gt, [
|
|
619
619
|
y("button", {
|
|
620
620
|
"aria-label": h(s).spacingControl.decreaseLeft,
|
|
621
|
-
class: g([
|
|
621
|
+
class: g([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
622
622
|
onClick: n[3] ||= (e) => u("left", -1)
|
|
623
|
-
}, [O(h(
|
|
623
|
+
}, [O(h(Ae), {
|
|
624
624
|
size: 12,
|
|
625
625
|
"stroke-width": 2
|
|
626
|
-
})], 10,
|
|
626
|
+
})], 10, Kt),
|
|
627
627
|
y("input", {
|
|
628
628
|
type: "number",
|
|
629
|
-
class: g(
|
|
629
|
+
class: g(an),
|
|
630
630
|
value: e.modelValue.left,
|
|
631
631
|
"aria-label": h(s).spacingControl.left,
|
|
632
632
|
min: "0",
|
|
633
633
|
onInput: n[4] ||= (e) => d("left", Number(e.target.value))
|
|
634
|
-
}, null, 40,
|
|
634
|
+
}, null, 40, qt),
|
|
635
635
|
y("button", {
|
|
636
636
|
"aria-label": h(s).spacingControl.increaseLeft,
|
|
637
|
-
class: g([
|
|
637
|
+
class: g([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
638
638
|
onClick: n[5] ||= (e) => u("left", 1)
|
|
639
|
-
}, [O(h(
|
|
639
|
+
}, [O(h(H), {
|
|
640
640
|
size: 12,
|
|
641
641
|
"stroke-width": 2
|
|
642
|
-
})], 10,
|
|
642
|
+
})], 10, Jt)
|
|
643
643
|
]),
|
|
644
644
|
y("button", {
|
|
645
645
|
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)]"]),
|
|
646
646
|
"aria-label": l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
|
|
647
647
|
title: l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
|
|
648
648
|
onClick: f
|
|
649
|
-
}, [l.value ? (i(), v(h(
|
|
649
|
+
}, [l.value ? (i(), v(h(Ie), {
|
|
650
650
|
key: 0,
|
|
651
651
|
size: 14,
|
|
652
652
|
"stroke-width": 2
|
|
@@ -654,59 +654,59 @@ var pt = [
|
|
|
654
654
|
key: 1,
|
|
655
655
|
size: 14,
|
|
656
656
|
"stroke-width": 2
|
|
657
|
-
}))], 10,
|
|
658
|
-
y("div",
|
|
657
|
+
}))], 10, Yt),
|
|
658
|
+
y("div", Xt, [
|
|
659
659
|
y("button", {
|
|
660
660
|
"aria-label": h(s).spacingControl.decreaseRight,
|
|
661
|
-
class: g([
|
|
661
|
+
class: g([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
662
662
|
onClick: n[6] ||= (e) => u("right", -1)
|
|
663
|
-
}, [O(h(
|
|
663
|
+
}, [O(h(Ae), {
|
|
664
664
|
size: 12,
|
|
665
665
|
"stroke-width": 2
|
|
666
|
-
})], 10,
|
|
666
|
+
})], 10, Zt),
|
|
667
667
|
y("input", {
|
|
668
668
|
type: "number",
|
|
669
|
-
class: g(
|
|
669
|
+
class: g(an),
|
|
670
670
|
value: e.modelValue.right,
|
|
671
671
|
"aria-label": h(s).spacingControl.right,
|
|
672
672
|
min: "0",
|
|
673
673
|
onInput: n[7] ||= (e) => d("right", Number(e.target.value))
|
|
674
|
-
}, null, 40,
|
|
674
|
+
}, null, 40, Qt),
|
|
675
675
|
y("button", {
|
|
676
676
|
"aria-label": h(s).spacingControl.increaseRight,
|
|
677
|
-
class: g([
|
|
677
|
+
class: g([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
678
678
|
onClick: n[8] ||= (e) => u("right", 1)
|
|
679
|
-
}, [O(h(
|
|
679
|
+
}, [O(h(H), {
|
|
680
680
|
size: 12,
|
|
681
681
|
"stroke-width": 2
|
|
682
|
-
})], 10,
|
|
682
|
+
})], 10, $t)
|
|
683
683
|
])
|
|
684
684
|
]),
|
|
685
|
-
y("div",
|
|
685
|
+
y("div", en, [
|
|
686
686
|
y("button", {
|
|
687
687
|
"aria-label": h(s).spacingControl.decreaseBottom,
|
|
688
|
-
class: g([
|
|
688
|
+
class: g([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
689
689
|
onClick: n[9] ||= (e) => u("bottom", -1)
|
|
690
|
-
}, [O(h(
|
|
690
|
+
}, [O(h(Ae), {
|
|
691
691
|
size: 12,
|
|
692
692
|
"stroke-width": 2
|
|
693
|
-
})], 10,
|
|
693
|
+
})], 10, tn),
|
|
694
694
|
y("input", {
|
|
695
695
|
type: "number",
|
|
696
|
-
class: g(
|
|
696
|
+
class: g(an),
|
|
697
697
|
value: e.modelValue.bottom,
|
|
698
698
|
"aria-label": h(s).spacingControl.bottom,
|
|
699
699
|
min: "0",
|
|
700
700
|
onInput: n[10] ||= (e) => d("bottom", Number(e.target.value))
|
|
701
|
-
}, null, 40,
|
|
701
|
+
}, null, 40, nn),
|
|
702
702
|
y("button", {
|
|
703
703
|
"aria-label": h(s).spacingControl.increaseBottom,
|
|
704
|
-
class: g([
|
|
704
|
+
class: g([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
705
705
|
onClick: n[11] ||= (e) => u("bottom", 1)
|
|
706
|
-
}, [O(h(
|
|
706
|
+
}, [O(h(H), {
|
|
707
707
|
size: 12,
|
|
708
708
|
"stroke-width": 2
|
|
709
|
-
})], 10,
|
|
709
|
+
})], 10, rn)
|
|
710
710
|
])
|
|
711
711
|
])]),
|
|
712
712
|
_: 1
|
|
@@ -714,19 +714,19 @@ var pt = [
|
|
|
714
714
|
}
|
|
715
715
|
}), [["__scopeId", "data-v-94c2e6ff"]]);
|
|
716
716
|
// src/composables/useNaturalImageSize.ts
|
|
717
|
-
function
|
|
717
|
+
function sn(e) {
|
|
718
718
|
let t = T(null), n = () => {};
|
|
719
719
|
return o(e, (e) => {
|
|
720
|
-
n(), t.value = null, e && (n =
|
|
720
|
+
n(), t.value = null, e && (n = ge(e, (e) => {
|
|
721
721
|
t.value = e;
|
|
722
722
|
}));
|
|
723
723
|
}, { immediate: !0 }), t;
|
|
724
724
|
}
|
|
725
|
-
function
|
|
726
|
-
let e = l(
|
|
727
|
-
return async (t) =>
|
|
725
|
+
function cn() {
|
|
726
|
+
let e = l(Be, null);
|
|
727
|
+
return async (t) => he(e ? await ln(e, t) : t);
|
|
728
728
|
}
|
|
729
|
-
function
|
|
729
|
+
function ln(e, t) {
|
|
730
730
|
let n = (e) => typeof e == "string" && e.length > 0 ? e : t;
|
|
731
731
|
e.lookup(t);
|
|
732
732
|
let r = e.get(t);
|
|
@@ -737,13 +737,13 @@ function un(e, t) {
|
|
|
737
737
|
}) : Promise.resolve(n(r));
|
|
738
738
|
}
|
|
739
739
|
// src/components/toolbar/BackgroundImageControl.vue?vue&type=script&setup=true&lang.ts
|
|
740
|
-
var
|
|
740
|
+
var un = { class: "tpl:space-y-3.5" }, dn = ["data-testid"], fn = ["data-testid"], pn = ["data-testid"], mn = ["aria-label", "data-testid"], hn = [
|
|
741
741
|
"aria-label",
|
|
742
742
|
"title",
|
|
743
743
|
"aria-pressed",
|
|
744
744
|
"data-testid",
|
|
745
745
|
"onClick"
|
|
746
|
-
],
|
|
746
|
+
], gn = ["data-testid"], _n = /* @__PURE__ */ r({
|
|
747
747
|
__name: "BackgroundImageControl",
|
|
748
748
|
props: {
|
|
749
749
|
hideLabel: { type: Boolean },
|
|
@@ -754,14 +754,14 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
754
754
|
},
|
|
755
755
|
emits: ["update:modelValue"],
|
|
756
756
|
setup(e, { emit: t }) {
|
|
757
|
-
let n = e, r = t, { t: a } =
|
|
757
|
+
let n = e, r = t, { t: a } = U(), o = l(ze, R.liquid), s = S(() => typeof n.modelValue?.url == "string" ? n.modelValue.url : ""), d = S(() => s.value.trim() !== ""), f = cn(), x;
|
|
758
758
|
u(() => clearTimeout(x));
|
|
759
759
|
function C(e) {
|
|
760
|
-
n.measure && !
|
|
760
|
+
n.measure && !te(e, o) && (x = setTimeout(async () => {
|
|
761
761
|
let t = await f(e), i = n.modelValue;
|
|
762
762
|
t && i?.url === e && r("update:modelValue", {
|
|
763
763
|
...i,
|
|
764
|
-
...
|
|
764
|
+
...fe(t)
|
|
765
765
|
});
|
|
766
766
|
}, 300));
|
|
767
767
|
}
|
|
@@ -770,11 +770,11 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
770
770
|
r("update:modelValue", void 0);
|
|
771
771
|
return;
|
|
772
772
|
}
|
|
773
|
-
let { naturalWidth: i, naturalHeight: a, ...o } = n.modelValue ??
|
|
773
|
+
let { naturalWidth: i, naturalHeight: a, ...o } = n.modelValue ?? re(e), s = n.measure ? t : null;
|
|
774
774
|
r("update:modelValue", {
|
|
775
775
|
...o,
|
|
776
776
|
url: e,
|
|
777
|
-
...s ?
|
|
777
|
+
...s ? fe(s) : {}
|
|
778
778
|
}), s || C(e);
|
|
779
779
|
}
|
|
780
780
|
function D(e) {
|
|
@@ -806,33 +806,33 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
806
806
|
"bottom-left": a.blockSettings.backgroundPositionBottomLeft,
|
|
807
807
|
"bottom-center": a.blockSettings.backgroundPositionBottomCenter,
|
|
808
808
|
"bottom-right": a.blockSettings.backgroundPositionBottomRight
|
|
809
|
-
})), j = S(() =>
|
|
809
|
+
})), j = S(() => I.flatMap((e) => M.map((t) => ({
|
|
810
810
|
x: t,
|
|
811
811
|
y: e,
|
|
812
812
|
label: A.value[`${e}-${t}`]
|
|
813
813
|
}))));
|
|
814
|
-
function
|
|
814
|
+
function N(e) {
|
|
815
815
|
return n.modelValue?.position?.x === e.x && n.modelValue?.position?.y === e.y;
|
|
816
816
|
}
|
|
817
|
-
let P = T(), { canBrowse: F, isUploading:
|
|
817
|
+
let P = T(), { canBrowse: F, isUploading: L, showOverlay: ee, openMediaBrowser: z } = ve({
|
|
818
818
|
target: P,
|
|
819
|
-
blocked: () =>
|
|
820
|
-
apply: (e) => w(e.url,
|
|
819
|
+
blocked: () => te(s.value, o),
|
|
820
|
+
apply: (e) => w(e.url, se(e.width, e.height))
|
|
821
821
|
});
|
|
822
|
-
return (t, n) => (i(), p("div",
|
|
822
|
+
return (t, n) => (i(), p("div", un, [y("div", null, [e.hideLabel ? _("", !0) : (i(), p("label", {
|
|
823
823
|
key: 0,
|
|
824
|
-
class: g(h(
|
|
824
|
+
class: g(h(q))
|
|
825
825
|
}, b(h(a).blockSettings.backgroundImage), 3)), y("div", {
|
|
826
826
|
ref_key: "dropZoneRef",
|
|
827
827
|
ref: P,
|
|
828
828
|
class: "tpl:relative",
|
|
829
829
|
"data-testid": `${e.testidPrefix}-bg-url`
|
|
830
830
|
}, [
|
|
831
|
-
h(
|
|
831
|
+
h(ee) ? (i(), v(ue, {
|
|
832
832
|
key: 0,
|
|
833
|
-
uploading: h(
|
|
833
|
+
uploading: h(L)
|
|
834
834
|
}, null, 8, ["uploading"])) : _("", !0),
|
|
835
|
-
O(
|
|
835
|
+
O(Z, {
|
|
836
836
|
"model-value": s.value,
|
|
837
837
|
type: "url",
|
|
838
838
|
placeholder: h(a).blockSettings.backgroundImagePlaceholder,
|
|
@@ -848,21 +848,21 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
848
848
|
color: "var(--tpl-primary)",
|
|
849
849
|
"background-color": "var(--tpl-bg)"
|
|
850
850
|
},
|
|
851
|
-
onClick: n[0] ||= (...e) => h(
|
|
852
|
-
}, [O(h(
|
|
851
|
+
onClick: n[0] ||= (...e) => h(z) && h(z)(...e)
|
|
852
|
+
}, [O(h(Oe), {
|
|
853
853
|
size: 14,
|
|
854
854
|
"stroke-width": 1.5
|
|
855
|
-
}), m(" " + b(h(a).image.browseMedia), 1)], 8,
|
|
856
|
-
], 8,
|
|
855
|
+
}), m(" " + b(h(a).image.browseMedia), 1)], 8, fn)) : _("", !0)
|
|
856
|
+
], 8, dn)]), d.value && e.modelValue ? (i(), p(E, { key: 0 }, [
|
|
857
857
|
e.heroMode ? _("", !0) : (i(), p("div", {
|
|
858
858
|
key: 0,
|
|
859
859
|
"data-testid": `${e.testidPrefix}-bg-size`
|
|
860
|
-
}, [y("label", { class: g(h(
|
|
860
|
+
}, [y("label", { class: g(h(q)) }, b(h(a).blockSettings.backgroundSize), 3), O(Q, {
|
|
861
861
|
options: k.value,
|
|
862
862
|
"model-value": e.modelValue.size,
|
|
863
863
|
"onUpdate:modelValue": n[1] ||= (e) => D({ size: e })
|
|
864
|
-
}, null, 8, ["options", "model-value"])], 8,
|
|
865
|
-
y("div", null, [y("label", { class: g(h(
|
|
864
|
+
}, null, 8, ["options", "model-value"])], 8, pn)),
|
|
865
|
+
y("div", null, [y("label", { class: g(h(q)) }, b(h(a).blockSettings.backgroundPosition), 3), y("div", {
|
|
866
866
|
role: "group",
|
|
867
867
|
"aria-label": h(a).blockSettings.backgroundPosition,
|
|
868
868
|
"data-testid": `${e.testidPrefix}-bg-position`,
|
|
@@ -872,26 +872,26 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
872
872
|
type: "button",
|
|
873
873
|
"aria-label": t.label,
|
|
874
874
|
title: t.label,
|
|
875
|
-
"aria-pressed":
|
|
875
|
+
"aria-pressed": N(t),
|
|
876
876
|
"data-testid": `${e.testidPrefix}-bg-position-${t.y}-${t.x}`,
|
|
877
|
-
class: g(["tpl:flex tpl:h-6 tpl:items-center tpl:justify-center tpl:rounded tpl:border tpl:transition-colors",
|
|
877
|
+
class: g(["tpl:flex tpl:h-6 tpl:items-center tpl:justify-center tpl:rounded tpl:border tpl:transition-colors", N(t) ? "tpl:border-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:hover:border-[var(--tpl-text-dim)]"]),
|
|
878
878
|
onClick: (e) => D({ position: {
|
|
879
879
|
x: t.x,
|
|
880
880
|
y: t.y
|
|
881
881
|
} })
|
|
882
|
-
}, [y("span", { class: g(["tpl:block tpl:h-1.5 tpl:w-1.5 tpl:rounded-full",
|
|
882
|
+
}, [y("span", { class: g(["tpl:block tpl:h-1.5 tpl:w-1.5 tpl:rounded-full", N(t) ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-text-dim)]"]) }, null, 2)], 10, hn))), 128))], 8, mn)]),
|
|
883
883
|
e.heroMode ? _("", !0) : (i(), p("div", {
|
|
884
884
|
key: 1,
|
|
885
885
|
"data-testid": `${e.testidPrefix}-bg-repeat`
|
|
886
|
-
}, [O(
|
|
886
|
+
}, [O(X, {
|
|
887
887
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
888
888
|
"model-value": e.modelValue.repeat,
|
|
889
889
|
label: h(a).blockSettings.backgroundRepeat,
|
|
890
890
|
"onUpdate:modelValue": n[2] ||= (e) => D({ repeat: e })
|
|
891
|
-
}, null, 8, ["model-value", "label"])], 8,
|
|
891
|
+
}, null, 8, ["model-value", "label"])], 8, gn))
|
|
892
892
|
], 64)) : _("", !0)]));
|
|
893
893
|
}
|
|
894
|
-
}),
|
|
894
|
+
}), vn = ["data-testid"], yn = { class: "tpl:mt-3" }, bn = /* @__PURE__ */ r({
|
|
895
895
|
__name: "CollapsibleSection",
|
|
896
896
|
props: {
|
|
897
897
|
title: {},
|
|
@@ -906,30 +906,30 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
906
906
|
"data-testid": e.headerTestId,
|
|
907
907
|
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)]",
|
|
908
908
|
onClick: n[0] ||= (e) => t.$emit("toggle")
|
|
909
|
-
}, [O(h(
|
|
909
|
+
}, [O(h(Se), {
|
|
910
910
|
class: g(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
911
911
|
size: 12,
|
|
912
912
|
"stroke-width": 2
|
|
913
|
-
}, null, 8, ["class"]), y("span", null, b(e.title), 1)], 8,
|
|
913
|
+
}, null, 8, ["class"]), y("span", null, b(e.title), 1)], 8, vn), s(y("div", yn, [d(t.$slots, "default")], 512), [[w, e.open]])], 2));
|
|
914
914
|
}
|
|
915
|
-
}),
|
|
915
|
+
}), xn = {
|
|
916
916
|
key: 0,
|
|
917
917
|
"data-testid": "section-hero-columns-note",
|
|
918
918
|
class: "tpl:mt-3.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
919
|
-
},
|
|
919
|
+
}, Sn = {
|
|
920
920
|
key: 1,
|
|
921
921
|
"data-testid": "section-hero",
|
|
922
922
|
class: "tpl:mt-3.5 tpl:space-y-3.5"
|
|
923
|
-
},
|
|
923
|
+
}, Cn = { "data-testid": "section-hero-height" }, wn = {
|
|
924
924
|
key: 0,
|
|
925
925
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
926
|
-
},
|
|
926
|
+
}, Tn = {
|
|
927
927
|
key: 1,
|
|
928
928
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
929
|
-
},
|
|
929
|
+
}, En = {
|
|
930
930
|
key: 1,
|
|
931
931
|
"data-testid": "section-hero-align"
|
|
932
|
-
},
|
|
932
|
+
}, Dn = 300, On = /* @__PURE__ */ r({
|
|
933
933
|
__name: "HeroControl",
|
|
934
934
|
props: { section: {} },
|
|
935
935
|
emits: ["update"],
|
|
@@ -937,7 +937,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
937
937
|
function n(e) {
|
|
938
938
|
return typeof e == "number" && Number.isFinite(e) && e >= 1;
|
|
939
939
|
}
|
|
940
|
-
let r = e, a = t, { t: o } =
|
|
940
|
+
let r = e, a = t, { t: o } = U(), s = l(ze, R.liquid), c = l(Ze, null), u = l(He, void 0), d = cn(), f = S(() => typeof r.section.backgroundImage?.url == "string" ? r.section.backgroundImage.url : ""), m = S(() => f.value.trim() !== ""), x = S(() => te(f.value, s)), C = S(() => r.section.hero), w = S(() => r.section.columns === "1"), T = S(() => C.value ? n(C.value.height) ? "fixed" : "image" : "fit"), E = S(() => n(C.value?.height) ? C.value.height : Dn), D = S(() => [
|
|
941
941
|
{
|
|
942
942
|
value: "fit",
|
|
943
943
|
label: o.blockSettings.heroHeightFit
|
|
@@ -964,17 +964,17 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
964
964
|
value: "bottom",
|
|
965
965
|
label: o.blockSettings.heroAlignBottom
|
|
966
966
|
}
|
|
967
|
-
]), A = S(() => T.value === "image" && m.value && !x.value &&
|
|
968
|
-
function
|
|
969
|
-
return (c ?
|
|
967
|
+
]), A = S(() => T.value === "image" && m.value && !x.value && ee(r.section.backgroundImage) === null);
|
|
968
|
+
function j() {
|
|
969
|
+
return (c ? B(c.content.value, r.section.id, u, c.activeLocale?.value ?? void 0) : null) ?? me(c?.state.content.settings);
|
|
970
970
|
}
|
|
971
|
-
function
|
|
971
|
+
function M(e) {
|
|
972
972
|
let t = C.value?.verticalAlign ?? "middle";
|
|
973
973
|
if (e === "image") {
|
|
974
974
|
T.value !== "image" && a("update", { hero: {
|
|
975
975
|
height: "image",
|
|
976
976
|
verticalAlign: t
|
|
977
|
-
} }),
|
|
977
|
+
} }), N();
|
|
978
978
|
return;
|
|
979
979
|
}
|
|
980
980
|
if (e === T.value) return;
|
|
@@ -982,71 +982,71 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
982
982
|
a("update", { hero: void 0 });
|
|
983
983
|
return;
|
|
984
984
|
}
|
|
985
|
-
let n =
|
|
985
|
+
let n = ee(r.section.backgroundImage), i = n === null ? Dn : Math.round(j() * n);
|
|
986
986
|
a("update", { hero: {
|
|
987
987
|
height: i,
|
|
988
988
|
verticalAlign: t
|
|
989
989
|
} });
|
|
990
990
|
}
|
|
991
|
-
async function
|
|
991
|
+
async function N() {
|
|
992
992
|
let e = r.section.backgroundImage;
|
|
993
|
-
if (!e || !m.value || x.value ||
|
|
993
|
+
if (!e || !m.value || x.value || ee(e) !== null) return;
|
|
994
994
|
let t = e.url, n = await d(t), i = r.section.backgroundImage;
|
|
995
995
|
n && i && i.url === t && a("update", { backgroundImage: {
|
|
996
996
|
...i,
|
|
997
|
-
...
|
|
997
|
+
...fe(n)
|
|
998
998
|
} });
|
|
999
999
|
}
|
|
1000
|
-
function
|
|
1000
|
+
function P(e) {
|
|
1001
1001
|
!C.value || !Number.isFinite(e) || e < 1 || a("update", { hero: {
|
|
1002
1002
|
...C.value,
|
|
1003
1003
|
height: Math.round(e)
|
|
1004
1004
|
} });
|
|
1005
1005
|
}
|
|
1006
|
-
function
|
|
1006
|
+
function F(e) {
|
|
1007
1007
|
C.value && a("update", { hero: {
|
|
1008
1008
|
...C.value,
|
|
1009
1009
|
verticalAlign: e
|
|
1010
1010
|
} });
|
|
1011
1011
|
}
|
|
1012
|
-
return (e, t) => !w.value && C.value ? (i(), p("p",
|
|
1013
|
-
y("div",
|
|
1014
|
-
y("label", { class: g(h(
|
|
1015
|
-
O(
|
|
1012
|
+
return (e, t) => !w.value && C.value ? (i(), p("p", xn, b(h(o).section.heroNeedsOneColumn), 1)) : w.value && (m.value || C.value) ? (i(), p("div", Sn, [
|
|
1013
|
+
y("div", Cn, [
|
|
1014
|
+
y("label", { class: g(h(q)) }, b(h(o).blockSettings.heroHeight), 3),
|
|
1015
|
+
O(Q, {
|
|
1016
1016
|
options: D.value,
|
|
1017
1017
|
"model-value": T.value,
|
|
1018
|
-
"onUpdate:modelValue":
|
|
1018
|
+
"onUpdate:modelValue": M
|
|
1019
1019
|
}, null, 8, ["options", "model-value"]),
|
|
1020
|
-
x.value ? (i(), p("p",
|
|
1020
|
+
x.value ? (i(), p("p", wn, b(h(o).blockSettings.heroMatchImageMergeTag), 1)) : A.value ? (i(), p("p", Tn, b(h(o).blockSettings.heroSizeUnknown), 1)) : _("", !0)
|
|
1021
1021
|
]),
|
|
1022
|
-
T.value === "fixed" ? (i(), v(
|
|
1022
|
+
T.value === "fixed" ? (i(), v(gt, {
|
|
1023
1023
|
key: 0,
|
|
1024
1024
|
"model-value": E.value,
|
|
1025
1025
|
min: 1,
|
|
1026
1026
|
suffix: "px",
|
|
1027
1027
|
testid: "section-hero-height-px",
|
|
1028
|
-
"onUpdate:modelValue":
|
|
1028
|
+
"onUpdate:modelValue": P
|
|
1029
1029
|
}, null, 8, ["model-value"])) : _("", !0),
|
|
1030
|
-
C.value ? (i(), p("div",
|
|
1030
|
+
C.value ? (i(), p("div", En, [y("label", { class: g(h(q)) }, b(h(o).blockSettings.heroAlign), 3), O(Q, {
|
|
1031
1031
|
options: k.value,
|
|
1032
1032
|
"model-value": C.value.verticalAlign,
|
|
1033
|
-
"onUpdate:modelValue":
|
|
1033
|
+
"onUpdate:modelValue": F
|
|
1034
1034
|
}, null, 8, ["options", "model-value"])])) : _("", !0)
|
|
1035
1035
|
])) : _("", !0);
|
|
1036
1036
|
}
|
|
1037
|
-
}),
|
|
1037
|
+
}), kn = { class: "tpl:space-y-2" }, An = { class: "tpl:flex tpl:items-center tpl:gap-2" }, jn = { class: "tpl:space-y-2" }, Mn = ["value"], Nn = { value: "" }, Pn = ["label"], Fn = ["value"], In = ["value"], Ln = {
|
|
1038
1038
|
key: 0,
|
|
1039
1039
|
value: "__custom__"
|
|
1040
|
-
},
|
|
1040
|
+
}, Rn = {
|
|
1041
1041
|
key: 0,
|
|
1042
1042
|
class: "tpl:space-y-2"
|
|
1043
|
-
},
|
|
1043
|
+
}, zn = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Bn = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Vn = { class: "tpl:flex tpl:justify-end" }, Hn = ["disabled"], Un = {
|
|
1044
1044
|
key: 0,
|
|
1045
1045
|
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
1046
|
-
},
|
|
1046
|
+
}, Wn = { class: "tpl:space-y-1" }, Gn = { class: "tpl:m-0 tpl:overflow-x-auto tpl:rounded tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]" }, Kn = {
|
|
1047
1047
|
key: 0,
|
|
1048
1048
|
class: "tpl:m-0 tpl:overflow-x-auto tpl:rounded tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
1049
|
-
},
|
|
1049
|
+
}, qn = /* @__PURE__ */ r({
|
|
1050
1050
|
__name: "CommonBlockSettings",
|
|
1051
1051
|
props: {
|
|
1052
1052
|
block: {},
|
|
@@ -1054,23 +1054,23 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1054
1054
|
},
|
|
1055
1055
|
emits: ["update"],
|
|
1056
1056
|
setup(e, { emit: r }) {
|
|
1057
|
-
let u = e, d = r, { t: f, format: C } =
|
|
1057
|
+
let u = e, d = r, { t: f, format: C } = U(), w = l(Ze, null), D = l(Ve, void 0), k = S(() => w?.activeLocale?.value), A = S(() => !!(k.value && w?.selectedBlock?.value?.l10n?.[k.value]?.hidden)), j = l(Ge, []), M = l(Xe, !1), N = t(/* @__PURE__ */ new Set()), P = T(!1), F = T(""), I = T(""), L = [{
|
|
1058
1058
|
key: "desktop",
|
|
1059
|
-
icon:
|
|
1059
|
+
icon: be,
|
|
1060
1060
|
labelKey: "showOnDesktop"
|
|
1061
1061
|
}, {
|
|
1062
1062
|
key: "mobile",
|
|
1063
|
-
icon:
|
|
1063
|
+
icon: Te,
|
|
1064
1064
|
labelKey: "showOnMobile"
|
|
1065
1065
|
}];
|
|
1066
|
-
function
|
|
1066
|
+
function R(e) {
|
|
1067
1067
|
N.has(e) ? N.delete(e) : N.add(e);
|
|
1068
1068
|
}
|
|
1069
|
-
let
|
|
1070
|
-
function
|
|
1071
|
-
P.value = !0,
|
|
1069
|
+
let ee = S(() => j.length > 0 || M), z = S(() => u.block.displayCondition ? !j.some((e) => e.label === u.block.displayCondition?.label) : !1);
|
|
1070
|
+
function te() {
|
|
1071
|
+
P.value = !0, z.value && u.block.displayCondition ? (F.value = u.block.displayCondition.before, I.value = u.block.displayCondition.after ?? "") : (F.value = "", I.value = "");
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1073
|
+
function re() {
|
|
1074
1074
|
let e = F.value.trim(), t = I.value.trim();
|
|
1075
1075
|
e && (d("update", { displayCondition: {
|
|
1076
1076
|
label: f.blockSettings.customCondition,
|
|
@@ -1086,44 +1086,44 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1086
1086
|
() => u.block.displayCondition?.after
|
|
1087
1087
|
], () => {
|
|
1088
1088
|
let e = u.block.displayCondition;
|
|
1089
|
-
!e || !
|
|
1089
|
+
!e || !z.value ? (P.value = !1, F.value = "", I.value = "") : (F.value = e.before, I.value = e.after ?? "");
|
|
1090
1090
|
}, { immediate: !0 });
|
|
1091
|
-
let
|
|
1091
|
+
let ie = S(() => {
|
|
1092
1092
|
let e = {};
|
|
1093
1093
|
for (let t of j) {
|
|
1094
1094
|
let n = t.group ?? "";
|
|
1095
1095
|
e[n] || (e[n] = []), e[n].push(t);
|
|
1096
1096
|
}
|
|
1097
1097
|
return e;
|
|
1098
|
-
}),
|
|
1099
|
-
function
|
|
1098
|
+
}), ae = S(() => u.block.type === "section" && ne(u.block)?.applied === !0);
|
|
1099
|
+
function oe(e, t) {
|
|
1100
1100
|
d("update", { styles: {
|
|
1101
1101
|
...u.block.styles,
|
|
1102
1102
|
[e]: t
|
|
1103
1103
|
} });
|
|
1104
1104
|
}
|
|
1105
|
-
function
|
|
1105
|
+
function se(e) {
|
|
1106
1106
|
return u.block.visibility?.[e] !== !1;
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1108
|
+
function ce(e) {
|
|
1109
1109
|
let t = {
|
|
1110
|
-
desktop:
|
|
1111
|
-
mobile:
|
|
1110
|
+
desktop: se("desktop"),
|
|
1111
|
+
mobile: se("mobile")
|
|
1112
1112
|
};
|
|
1113
1113
|
t[e] = !t[e], d("update", { visibility: t });
|
|
1114
1114
|
}
|
|
1115
1115
|
return (t, r) => (i(), p("div", { class: g(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1116
|
-
O(
|
|
1116
|
+
O(bn, {
|
|
1117
1117
|
title: h(f).blockSettings.spacing,
|
|
1118
1118
|
open: N.has("spacing"),
|
|
1119
1119
|
"no-border": e.isFirstSection,
|
|
1120
|
-
onToggle: r[1] ||= (e) =>
|
|
1120
|
+
onToggle: r[1] ||= (e) => R("spacing")
|
|
1121
1121
|
}, {
|
|
1122
|
-
default: a(() => [O(
|
|
1122
|
+
default: a(() => [O(on, {
|
|
1123
1123
|
path: "styles.padding",
|
|
1124
1124
|
label: h(f).blockSettings.padding,
|
|
1125
1125
|
"model-value": e.block.styles.padding,
|
|
1126
|
-
"onUpdate:modelValue": r[0] ||= (e) =>
|
|
1126
|
+
"onUpdate:modelValue": r[0] ||= (e) => oe("padding", e)
|
|
1127
1127
|
}, null, 8, ["label", "model-value"])]),
|
|
1128
1128
|
_: 1
|
|
1129
1129
|
}, 8, [
|
|
@@ -1131,46 +1131,46 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1131
1131
|
"open",
|
|
1132
1132
|
"no-border"
|
|
1133
1133
|
]),
|
|
1134
|
-
O(
|
|
1134
|
+
O(bn, {
|
|
1135
1135
|
title: h(f).blockSettings.background,
|
|
1136
1136
|
open: N.has("bg"),
|
|
1137
1137
|
"header-test-id": "block-settings-background",
|
|
1138
|
-
onToggle: r[5] ||= (e) =>
|
|
1138
|
+
onToggle: r[5] ||= (e) => R("bg")
|
|
1139
1139
|
}, {
|
|
1140
1140
|
default: a(() => [
|
|
1141
|
-
O(
|
|
1141
|
+
O(J, {
|
|
1142
1142
|
path: "styles.backgroundColor",
|
|
1143
1143
|
label: h(f).blockSettings.color
|
|
1144
1144
|
}, {
|
|
1145
|
-
default: a(() => [O(
|
|
1145
|
+
default: a(() => [O(Y, {
|
|
1146
1146
|
"model-value": e.block.styles.backgroundColor ?? "",
|
|
1147
1147
|
"allow-transparent": "",
|
|
1148
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
1148
|
+
"onUpdate:modelValue": r[2] ||= (e) => oe("backgroundColor", e)
|
|
1149
1149
|
}, null, 8, ["model-value"])]),
|
|
1150
1150
|
_: 1
|
|
1151
1151
|
}, 8, ["label"]),
|
|
1152
|
-
e.block.type === "section" ? (i(), v(
|
|
1152
|
+
e.block.type === "section" ? (i(), v(J, {
|
|
1153
1153
|
key: 0,
|
|
1154
1154
|
path: "backgroundImage",
|
|
1155
1155
|
label: h(f).blockSettings.backgroundImage
|
|
1156
1156
|
}, {
|
|
1157
|
-
default: a(() => [O(
|
|
1157
|
+
default: a(() => [O(_n, {
|
|
1158
1158
|
"hide-label": "",
|
|
1159
1159
|
class: "tpl:mt-3.5",
|
|
1160
1160
|
"model-value": e.block.backgroundImage,
|
|
1161
1161
|
"testid-prefix": "section",
|
|
1162
1162
|
measure: "",
|
|
1163
|
-
"hero-mode":
|
|
1163
|
+
"hero-mode": ae.value,
|
|
1164
1164
|
"onUpdate:modelValue": r[3] ||= (e) => d("update", { backgroundImage: e })
|
|
1165
1165
|
}, null, 8, ["model-value", "hero-mode"])]),
|
|
1166
1166
|
_: 1
|
|
1167
1167
|
}, 8, ["label"])) : _("", !0),
|
|
1168
|
-
e.block.type === "section" ? (i(), v(
|
|
1168
|
+
e.block.type === "section" ? (i(), v(J, {
|
|
1169
1169
|
key: 1,
|
|
1170
1170
|
path: "hero",
|
|
1171
1171
|
label: h(f).blocks.hero
|
|
1172
1172
|
}, {
|
|
1173
|
-
default: a(() => [O(
|
|
1173
|
+
default: a(() => [O(On, {
|
|
1174
1174
|
section: e.block,
|
|
1175
1175
|
onUpdate: r[4] ||= (e) => d("update", e)
|
|
1176
1176
|
}, null, 8, ["section"])]),
|
|
@@ -1179,38 +1179,38 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1179
1179
|
]),
|
|
1180
1180
|
_: 1
|
|
1181
1181
|
}, 8, ["title", "open"]),
|
|
1182
|
-
O(
|
|
1182
|
+
O(bn, {
|
|
1183
1183
|
title: h(f).blockSettings.display,
|
|
1184
1184
|
open: N.has("display"),
|
|
1185
|
-
onToggle: r[7] ||= (e) =>
|
|
1185
|
+
onToggle: r[7] ||= (e) => R("display")
|
|
1186
1186
|
}, {
|
|
1187
|
-
default: a(() => [y("div",
|
|
1187
|
+
default: a(() => [y("div", kn, [k.value && h(D) ? (i(), v(X, {
|
|
1188
1188
|
key: 0,
|
|
1189
1189
|
"data-testid": "locale-hide",
|
|
1190
1190
|
disabled: !h(D).locales.includes(k.value),
|
|
1191
1191
|
"model-value": A.value,
|
|
1192
|
-
label: h(C)(h(f).localization.hide, { language: h(
|
|
1192
|
+
label: h(C)(h(f).localization.hide, { language: h($e)(k.value) }),
|
|
1193
1193
|
"onUpdate:modelValue": r[6] ||= (t) => h(w)?.setBlockHidden?.(e.block.id, t)
|
|
1194
1194
|
}, null, 8, [
|
|
1195
1195
|
"disabled",
|
|
1196
1196
|
"model-value",
|
|
1197
1197
|
"label"
|
|
1198
|
-
])) : _("", !0), (i(), p(E, null, c(
|
|
1198
|
+
])) : _("", !0), (i(), p(E, null, c(L, (e) => O(J, {
|
|
1199
1199
|
key: e.key,
|
|
1200
1200
|
path: `visibility.${e.key}`,
|
|
1201
1201
|
label: h(f).blockSettings[e.labelKey]
|
|
1202
1202
|
}, {
|
|
1203
|
-
label: a(() => [y("span",
|
|
1203
|
+
label: a(() => [y("span", An, [(i(), v(n(e.icon), {
|
|
1204
1204
|
size: 14,
|
|
1205
1205
|
"stroke-width": 1.5
|
|
1206
1206
|
})), m(" " + b(h(f).blockSettings[e.labelKey]), 1)])]),
|
|
1207
|
-
"label-actions": a(({ controlId: t }) => [O(
|
|
1207
|
+
"label-actions": a(({ controlId: t }) => [O(X, {
|
|
1208
1208
|
"control-id": t,
|
|
1209
1209
|
"hide-label": "",
|
|
1210
1210
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1211
|
-
"model-value":
|
|
1211
|
+
"model-value": se(e.key),
|
|
1212
1212
|
label: h(f).blockSettings[e.labelKey],
|
|
1213
|
-
"onUpdate:modelValue": (t) =>
|
|
1213
|
+
"onUpdate:modelValue": (t) => ce(e.key)
|
|
1214
1214
|
}, null, 8, [
|
|
1215
1215
|
"control-id",
|
|
1216
1216
|
"model-value",
|
|
@@ -1221,25 +1221,25 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1221
1221
|
}, 1032, ["path", "label"])), 64))])]),
|
|
1222
1222
|
_: 1
|
|
1223
1223
|
}, 8, ["title", "open"]),
|
|
1224
|
-
|
|
1224
|
+
ee.value ? (i(), v(bn, {
|
|
1225
1225
|
key: 0,
|
|
1226
1226
|
"header-test-id": "display-condition-section",
|
|
1227
1227
|
title: h(f).blockSettings.displayCondition,
|
|
1228
1228
|
open: N.has("condition"),
|
|
1229
|
-
onToggle: r[11] ||= (e) =>
|
|
1229
|
+
onToggle: r[11] ||= (e) => R("condition")
|
|
1230
1230
|
}, {
|
|
1231
|
-
default: a(() => [y("div",
|
|
1231
|
+
default: a(() => [y("div", jn, [O(J, {
|
|
1232
1232
|
path: "displayCondition",
|
|
1233
1233
|
label: h(f).blockSettings.displayCondition
|
|
1234
1234
|
}, {
|
|
1235
1235
|
default: a(() => [y("select", {
|
|
1236
1236
|
"data-testid": "display-condition-select",
|
|
1237
1237
|
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)]"]),
|
|
1238
|
-
value: P.value ||
|
|
1238
|
+
value: P.value || z.value ? "__custom__" : e.block.displayCondition?.label ?? "",
|
|
1239
1239
|
onChange: r[8] ||= (e) => {
|
|
1240
1240
|
let t = e.target.value;
|
|
1241
1241
|
if (t === "__custom__") {
|
|
1242
|
-
|
|
1242
|
+
te();
|
|
1243
1243
|
return;
|
|
1244
1244
|
}
|
|
1245
1245
|
if (P.value = !1, !t) {
|
|
@@ -1250,43 +1250,43 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1250
1250
|
n && d("update", { displayCondition: n });
|
|
1251
1251
|
}
|
|
1252
1252
|
}, [
|
|
1253
|
-
y("option",
|
|
1254
|
-
(i(!0), p(E, null, c(
|
|
1253
|
+
y("option", Nn, b(h(f).blockSettings.noCondition), 1),
|
|
1254
|
+
(i(!0), p(E, null, c(ie.value, (e, t) => (i(), p(E, { key: t }, [t ? (i(), p("optgroup", {
|
|
1255
1255
|
key: 0,
|
|
1256
1256
|
label: String(t)
|
|
1257
1257
|
}, [(i(!0), p(E, null, c(e, (e) => (i(), p("option", {
|
|
1258
1258
|
key: e.label,
|
|
1259
1259
|
value: e.label
|
|
1260
|
-
}, b(e.label), 9,
|
|
1260
|
+
}, b(e.label), 9, Fn))), 128))], 8, Pn)) : (i(!0), p(E, { key: 1 }, c(e, (e) => (i(), p("option", {
|
|
1261
1261
|
key: e.label,
|
|
1262
1262
|
value: e.label
|
|
1263
|
-
}, b(e.label), 9,
|
|
1264
|
-
h(M) ? (i(), p("option",
|
|
1265
|
-
], 42,
|
|
1263
|
+
}, b(e.label), 9, In))), 128))], 64))), 128)),
|
|
1264
|
+
h(M) ? (i(), p("option", Ln, b(h(f).blockSettings.customCondition), 1)) : _("", !0)
|
|
1265
|
+
], 42, Mn)]),
|
|
1266
1266
|
_: 1
|
|
1267
|
-
}, 8, ["label"]), P.value ||
|
|
1268
|
-
y("div", null, [y("label",
|
|
1267
|
+
}, 8, ["label"]), P.value || z.value ? (i(), p("div", Rn, [
|
|
1268
|
+
y("div", null, [y("label", zn, b(h(f).blockSettings.customConditionBefore), 1), s(y("textarea", {
|
|
1269
1269
|
"onUpdate:modelValue": r[9] ||= (e) => F.value = e,
|
|
1270
1270
|
rows: "2",
|
|
1271
|
-
class: g(h(
|
|
1271
|
+
class: g(h(it))
|
|
1272
1272
|
}, null, 2), [[x, F.value]])]),
|
|
1273
|
-
y("div", null, [y("label",
|
|
1273
|
+
y("div", null, [y("label", Bn, b(h(f).blockSettings.customConditionAfter), 1), s(y("textarea", {
|
|
1274
1274
|
"onUpdate:modelValue": r[10] ||= (e) => I.value = e,
|
|
1275
1275
|
rows: "2",
|
|
1276
|
-
class: g(h(
|
|
1276
|
+
class: g(h(it))
|
|
1277
1277
|
}, null, 2), [[x, I.value]])]),
|
|
1278
|
-
y("div",
|
|
1278
|
+
y("div", Vn, [y("button", {
|
|
1279
1279
|
type: "button",
|
|
1280
|
-
class: g(h(
|
|
1280
|
+
class: g(h(tt)),
|
|
1281
1281
|
disabled: !F.value.trim(),
|
|
1282
|
-
onClick:
|
|
1283
|
-
}, b(h(f).blockSettings.applyCondition), 11,
|
|
1284
|
-
])) : e.block.displayCondition && !
|
|
1282
|
+
onClick: re
|
|
1283
|
+
}, b(h(f).blockSettings.applyCondition), 11, Hn)])
|
|
1284
|
+
])) : e.block.displayCondition && !z.value ? (i(), p(E, { key: 1 }, [e.block.displayCondition.description ? (i(), p("p", Un, b(e.block.displayCondition.description), 1)) : _("", !0), y("div", Wn, [y("pre", Gn, b(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (i(), p("pre", Kn, b(e.block.displayCondition.after), 1)) : _("", !0)])], 64)) : _("", !0)])]),
|
|
1285
1285
|
_: 1
|
|
1286
1286
|
}, 8, ["title", "open"])) : _("", !0)
|
|
1287
1287
|
], 2));
|
|
1288
1288
|
}
|
|
1289
|
-
}),
|
|
1289
|
+
}), Jn = ["title"], Yn = { class: "tpl-sr-only" }, Xn = ["title"], Zn = { class: "tpl-sr-only" }, Qn = /* @__PURE__ */ r({
|
|
1290
1290
|
__name: "FieldLabel",
|
|
1291
1291
|
props: {
|
|
1292
1292
|
label: {},
|
|
@@ -1294,25 +1294,25 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1294
1294
|
readOnly: { type: Boolean }
|
|
1295
1295
|
},
|
|
1296
1296
|
setup(e) {
|
|
1297
|
-
let { t } =
|
|
1297
|
+
let { t } = U();
|
|
1298
1298
|
return (n, r) => (i(), p("span", null, [
|
|
1299
1299
|
m(b(e.label) + " ", 1),
|
|
1300
1300
|
e.readOnly ? (i(), p("span", {
|
|
1301
1301
|
key: 0,
|
|
1302
1302
|
title: h(t).customBlocks.dataSource.readOnlyTooltip
|
|
1303
|
-
}, [O(h(
|
|
1303
|
+
}, [O(h(Ie), {
|
|
1304
1304
|
size: 12,
|
|
1305
1305
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
|
|
1306
1306
|
"aria-hidden": "true"
|
|
1307
|
-
}), y("span",
|
|
1307
|
+
}), y("span", Yn, b(h(t).customBlocks.dataSource.readOnlyTooltip), 1)], 8, Jn)) : _("", !0),
|
|
1308
1308
|
e.required ? (i(), p("span", {
|
|
1309
1309
|
key: 1,
|
|
1310
1310
|
class: "tpl:text-[var(--tpl-danger)]",
|
|
1311
1311
|
title: h(t).customBlocks.fields.required
|
|
1312
|
-
}, [r[0] ||= y("span", { "aria-hidden": "true" }, "*", -1), y("span",
|
|
1312
|
+
}, [r[0] ||= y("span", { "aria-hidden": "true" }, "*", -1), y("span", Zn, b(h(t).customBlocks.fields.required), 1)], 8, Xn)) : _("", !0)
|
|
1313
1313
|
]));
|
|
1314
1314
|
}
|
|
1315
|
-
}),
|
|
1315
|
+
}), $n = ["title"], er = /* @__PURE__ */ r({
|
|
1316
1316
|
__name: "BooleanField",
|
|
1317
1317
|
props: {
|
|
1318
1318
|
field: {},
|
|
@@ -1323,11 +1323,11 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1323
1323
|
},
|
|
1324
1324
|
emits: ["update:modelValue"],
|
|
1325
1325
|
setup(e, { emit: t }) {
|
|
1326
|
-
let n = t, { t: r } =
|
|
1326
|
+
let n = t, { t: r } = U();
|
|
1327
1327
|
return (t, o) => (i(), p("div", {
|
|
1328
1328
|
class: "tpl:mb-3.5",
|
|
1329
1329
|
title: e.readOnly ? h(r).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
1330
|
-
}, [O(
|
|
1330
|
+
}, [O(X, {
|
|
1331
1331
|
"hide-label": e.hideLabel,
|
|
1332
1332
|
"control-id": e.controlId,
|
|
1333
1333
|
class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
@@ -1337,7 +1337,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1337
1337
|
disabled: e.readOnly,
|
|
1338
1338
|
"onUpdate:modelValue": o[0] ||= (e) => n("update:modelValue", e)
|
|
1339
1339
|
}, {
|
|
1340
|
-
default: a(() => [m(b(e.field.label) + " ", 1), e.readOnly ? (i(), v(h(
|
|
1340
|
+
default: a(() => [m(b(e.field.label) + " ", 1), e.readOnly ? (i(), v(h(Ie), {
|
|
1341
1341
|
key: 0,
|
|
1342
1342
|
size: 12,
|
|
1343
1343
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
@@ -1350,9 +1350,9 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1350
1350
|
"label",
|
|
1351
1351
|
"required",
|
|
1352
1352
|
"disabled"
|
|
1353
|
-
])], 8,
|
|
1353
|
+
])], 8, $n));
|
|
1354
1354
|
}
|
|
1355
|
-
}),
|
|
1355
|
+
}), tr = { class: "tpl:mb-3.5" }, nr = /* @__PURE__ */ r({
|
|
1356
1356
|
__name: "FieldWrapper",
|
|
1357
1357
|
props: {
|
|
1358
1358
|
label: {},
|
|
@@ -1361,10 +1361,10 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1361
1361
|
readOnly: { type: Boolean }
|
|
1362
1362
|
},
|
|
1363
1363
|
setup(e) {
|
|
1364
|
-
return (t, n) => (i(), p("div",
|
|
1364
|
+
return (t, n) => (i(), p("div", tr, [e.hideLabel ? _("", !0) : (i(), p("label", {
|
|
1365
1365
|
key: 0,
|
|
1366
|
-
class: g(h(
|
|
1367
|
-
}, [O(
|
|
1366
|
+
class: g(h(q))
|
|
1367
|
+
}, [O(Qn, {
|
|
1368
1368
|
label: e.label,
|
|
1369
1369
|
required: e.required,
|
|
1370
1370
|
"read-only": e.readOnly
|
|
@@ -1384,14 +1384,14 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1384
1384
|
},
|
|
1385
1385
|
emits: ["update:modelValue"],
|
|
1386
1386
|
setup(e, { emit: t }) {
|
|
1387
|
-
let n = e, r = t, { t: o } =
|
|
1388
|
-
return (t, n) => (i(), v(
|
|
1387
|
+
let n = e, r = t, { t: o } = U(), s = l(Ye, st), c = S(() => ye(n.field, s));
|
|
1388
|
+
return (t, n) => (i(), v(nr, {
|
|
1389
1389
|
"hide-label": e.hideLabel,
|
|
1390
1390
|
label: e.field.label,
|
|
1391
1391
|
required: e.field.required,
|
|
1392
1392
|
"read-only": e.readOnly
|
|
1393
1393
|
}, {
|
|
1394
|
-
default: a(() => [O(
|
|
1394
|
+
default: a(() => [O(Y, {
|
|
1395
1395
|
"model-value": e.modelValue,
|
|
1396
1396
|
placeholder: e.field.placeholder,
|
|
1397
1397
|
disabled: e.readOnly,
|
|
@@ -1429,12 +1429,12 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1429
1429
|
},
|
|
1430
1430
|
emits: ["update:modelValue"],
|
|
1431
1431
|
setup(e, { emit: t }) {
|
|
1432
|
-
let n = e, r = t, { t: o } =
|
|
1432
|
+
let n = e, r = t, { t: o } = U(), s = T(), { canBrowse: c, isUploading: l, showOverlay: u, openMediaBrowser: d } = ve({
|
|
1433
1433
|
target: s,
|
|
1434
1434
|
blocked: () => !!n.readOnly,
|
|
1435
1435
|
apply: (e) => r("update:modelValue", e.url)
|
|
1436
1436
|
});
|
|
1437
|
-
return (t, n) => (i(), v(
|
|
1437
|
+
return (t, n) => (i(), v(nr, {
|
|
1438
1438
|
"hide-label": e.hideLabel,
|
|
1439
1439
|
label: e.field.label,
|
|
1440
1440
|
required: e.field.required,
|
|
@@ -1445,14 +1445,14 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1445
1445
|
ref: s,
|
|
1446
1446
|
class: "tpl:relative"
|
|
1447
1447
|
}, [
|
|
1448
|
-
h(u) ? (i(), v(
|
|
1448
|
+
h(u) ? (i(), v(ue, {
|
|
1449
1449
|
key: 0,
|
|
1450
1450
|
uploading: h(l)
|
|
1451
1451
|
}, null, 8, ["uploading"])) : _("", !0),
|
|
1452
1452
|
e.readOnly ? (i(), p("input", {
|
|
1453
1453
|
key: 1,
|
|
1454
1454
|
type: "url",
|
|
1455
|
-
class: g([h(
|
|
1455
|
+
class: g([h(K), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1456
1456
|
value: e.modelValue,
|
|
1457
1457
|
placeholder: e.field.placeholder || "https://...",
|
|
1458
1458
|
disabled: "",
|
|
@@ -1460,7 +1460,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1460
1460
|
}, null, 10, ir)) : (i(), p("input", {
|
|
1461
1461
|
key: 2,
|
|
1462
1462
|
type: "url",
|
|
1463
|
-
class: g(h(
|
|
1463
|
+
class: g(h(K)),
|
|
1464
1464
|
value: e.modelValue,
|
|
1465
1465
|
placeholder: e.field.placeholder || "https://...",
|
|
1466
1466
|
onInput: n[0] ||= (e) => r("update:modelValue", e.target.value)
|
|
@@ -1469,7 +1469,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1469
1469
|
key: 3,
|
|
1470
1470
|
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)]",
|
|
1471
1471
|
onClick: n[1] ||= (e) => h(d)()
|
|
1472
|
-
}, [O(h(
|
|
1472
|
+
}, [O(h(Oe), {
|
|
1473
1473
|
size: 14,
|
|
1474
1474
|
"stroke-width": 1.5
|
|
1475
1475
|
}), m(" " + b(h(o).image.browseMedia), 1)])) : _("", !0)
|
|
@@ -1500,8 +1500,8 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1500
1500
|
},
|
|
1501
1501
|
emits: ["update:modelValue"],
|
|
1502
1502
|
setup(e, { emit: t }) {
|
|
1503
|
-
let n = t, { t: r } =
|
|
1504
|
-
return (t, o) => (i(), v(
|
|
1503
|
+
let n = t, { t: r } = U();
|
|
1504
|
+
return (t, o) => (i(), v(nr, {
|
|
1505
1505
|
"hide-label": e.hideLabel,
|
|
1506
1506
|
label: e.field.label,
|
|
1507
1507
|
required: e.field.required,
|
|
@@ -1509,7 +1509,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1509
1509
|
}, {
|
|
1510
1510
|
default: a(() => [y("input", {
|
|
1511
1511
|
type: "number",
|
|
1512
|
-
class: g([h(
|
|
1512
|
+
class: g([h(K), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1513
1513
|
value: e.modelValue,
|
|
1514
1514
|
placeholder: e.field.placeholder,
|
|
1515
1515
|
min: e.field.min,
|
|
@@ -1543,7 +1543,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1543
1543
|
},
|
|
1544
1544
|
emits: ["update:modelValue"],
|
|
1545
1545
|
setup(e, { emit: t }) {
|
|
1546
|
-
let r = e, o = t, { t: s, format: l } =
|
|
1546
|
+
let r = e, o = t, { t: s, format: l } = U(), u = S(() => r.modelValue || []), d = S(() => !r.field.maxItems || u.value.length < r.field.maxItems), f = S(() => !r.field.minItems || u.value.length > r.field.minItems);
|
|
1547
1547
|
function x() {
|
|
1548
1548
|
if (!d.value || r.readOnly) return;
|
|
1549
1549
|
let e = {};
|
|
@@ -1562,7 +1562,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1562
1562
|
} : r);
|
|
1563
1563
|
o("update:modelValue", r);
|
|
1564
1564
|
}
|
|
1565
|
-
return (t, r) => (i(), v(
|
|
1565
|
+
return (t, r) => (i(), v(nr, {
|
|
1566
1566
|
"hide-label": e.hideLabel,
|
|
1567
1567
|
label: e.field.label,
|
|
1568
1568
|
required: e.field.required,
|
|
@@ -1578,7 +1578,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1578
1578
|
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)]",
|
|
1579
1579
|
title: h(s).customBlocks.fields.removeItem,
|
|
1580
1580
|
onClick: (e) => C(r)
|
|
1581
|
-
}, [O(h(
|
|
1581
|
+
}, [O(h(je), {
|
|
1582
1582
|
size: 12,
|
|
1583
1583
|
"stroke-width": 2
|
|
1584
1584
|
})], 8, fr)) : _("", !0)]), (i(!0), p(E, null, c(e.field.fields, (a) => (i(), v(n(h(wr)(a.type)), {
|
|
@@ -1596,9 +1596,9 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1596
1596
|
d.value && !e.readOnly ? (i(), p("button", {
|
|
1597
1597
|
key: 0,
|
|
1598
1598
|
type: "button",
|
|
1599
|
-
class: g(h(
|
|
1599
|
+
class: g(h(nt)),
|
|
1600
1600
|
onClick: x
|
|
1601
|
-
}, [O(h(
|
|
1601
|
+
}, [O(h(H), {
|
|
1602
1602
|
size: 14,
|
|
1603
1603
|
"stroke-width": 2
|
|
1604
1604
|
}), m(" " + b(h(s).customBlocks.fields.addItem), 1)], 2)) : _("", !0),
|
|
@@ -1627,15 +1627,15 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1627
1627
|
},
|
|
1628
1628
|
emits: ["update:modelValue"],
|
|
1629
1629
|
setup(e, { emit: t }) {
|
|
1630
|
-
let n = t, { t: r } =
|
|
1631
|
-
return (t, o) => (i(), v(
|
|
1630
|
+
let n = t, { t: r } = U();
|
|
1631
|
+
return (t, o) => (i(), v(nr, {
|
|
1632
1632
|
"hide-label": e.hideLabel,
|
|
1633
1633
|
label: e.field.label,
|
|
1634
1634
|
required: e.field.required,
|
|
1635
1635
|
"read-only": e.readOnly
|
|
1636
1636
|
}, {
|
|
1637
1637
|
default: a(() => [y("select", {
|
|
1638
|
-
class: g([h(
|
|
1638
|
+
class: g([h(K), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1639
1639
|
value: e.modelValue,
|
|
1640
1640
|
disabled: e.readOnly,
|
|
1641
1641
|
title: e.readOnly ? h(r).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
@@ -1666,8 +1666,8 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1666
1666
|
},
|
|
1667
1667
|
emits: ["update:modelValue"],
|
|
1668
1668
|
setup(e, { emit: t }) {
|
|
1669
|
-
let n = t, { t: r } =
|
|
1670
|
-
return (t, o) => (i(), v(
|
|
1669
|
+
let n = t, { t: r } = U();
|
|
1670
|
+
return (t, o) => (i(), v(nr, {
|
|
1671
1671
|
"hide-label": e.hideLabel,
|
|
1672
1672
|
label: e.field.label,
|
|
1673
1673
|
required: e.field.required,
|
|
@@ -1676,12 +1676,12 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1676
1676
|
default: a(() => [e.readOnly ? (i(), p("input", {
|
|
1677
1677
|
key: 0,
|
|
1678
1678
|
type: "text",
|
|
1679
|
-
class: g([h(
|
|
1679
|
+
class: g([h(K), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1680
1680
|
value: e.modelValue,
|
|
1681
1681
|
placeholder: e.field.placeholder,
|
|
1682
1682
|
disabled: "",
|
|
1683
1683
|
title: h(r).customBlocks.dataSource.readOnlyTooltip
|
|
1684
|
-
}, null, 10, yr)) : (i(), v(
|
|
1684
|
+
}, null, 10, yr)) : (i(), v(Z, {
|
|
1685
1685
|
key: 1,
|
|
1686
1686
|
"model-value": e.modelValue,
|
|
1687
1687
|
placeholder: e.field.placeholder,
|
|
@@ -1711,8 +1711,8 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1711
1711
|
},
|
|
1712
1712
|
emits: ["update:modelValue"],
|
|
1713
1713
|
setup(e, { emit: t }) {
|
|
1714
|
-
let n = t, { t: r } =
|
|
1715
|
-
return (t, o) => (i(), v(
|
|
1714
|
+
let n = t, { t: r } = U();
|
|
1715
|
+
return (t, o) => (i(), v(nr, {
|
|
1716
1716
|
"hide-label": e.hideLabel,
|
|
1717
1717
|
label: e.field.label,
|
|
1718
1718
|
required: e.field.required,
|
|
@@ -1726,7 +1726,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1726
1726
|
disabled: "",
|
|
1727
1727
|
title: h(r).customBlocks.dataSource.readOnlyTooltip,
|
|
1728
1728
|
class: g(Sr)
|
|
1729
|
-
}, null, 8, xr)) : (i(), v(
|
|
1729
|
+
}, null, 8, xr)) : (i(), v(lt, {
|
|
1730
1730
|
key: 1,
|
|
1731
1731
|
"model-value": e.modelValue,
|
|
1732
1732
|
placeholder: e.field.placeholder,
|
|
@@ -1745,7 +1745,7 @@ var dn = { class: "tpl:space-y-3.5" }, fn = ["data-testid"], pn = ["data-testid"
|
|
|
1745
1745
|
color: rr,
|
|
1746
1746
|
number: cr,
|
|
1747
1747
|
select: vr,
|
|
1748
|
-
boolean:
|
|
1748
|
+
boolean: er,
|
|
1749
1749
|
repeatable: hr
|
|
1750
1750
|
};
|
|
1751
1751
|
function wr(e) {
|
|
@@ -1775,7 +1775,7 @@ var Tr = {
|
|
|
1775
1775
|
props: { block: {} },
|
|
1776
1776
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
1777
1777
|
setup(e, { emit: t }) {
|
|
1778
|
-
let r = e, o = t, { t: s } =
|
|
1778
|
+
let r = e, o = t, { t: s } = U(), u = l(qe, []), d = S(() => u.find((e) => e.type === r.block.customType)), f = S(() => r.block), { isFetching: g, fetchError: x, fetch: C, hasDataSource: w, needsFetch: T } = ae({
|
|
1779
1779
|
definition: d,
|
|
1780
1780
|
block: f,
|
|
1781
1781
|
onUpdate: (e, t) => {
|
|
@@ -1803,16 +1803,16 @@ var Tr = {
|
|
|
1803
1803
|
type: "button",
|
|
1804
1804
|
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)]",
|
|
1805
1805
|
onClick: r[1] ||= (...e) => h(C) && h(C)(...e)
|
|
1806
|
-
}, [O(h(
|
|
1806
|
+
}, [O(h(Ee), { size: 12 }), m(" " + b(h(s).customBlocks.dataSource.changeButton), 1)]))])), h(x) ? (i(), p("p", Mr, [O(h(Ce), {
|
|
1807
1807
|
size: 14,
|
|
1808
1808
|
class: "tpl:shrink-0"
|
|
1809
1809
|
}), m(" " + b(h(s).customBlocks.dataSource.fetchError), 1)])) : _("", !0)])) : _("", !0),
|
|
1810
|
-
(i(!0), p(E, null, c(d.value.fields, (t) => (i(), v(
|
|
1810
|
+
(i(!0), p(E, null, c(d.value.fields, (t) => (i(), v(J, {
|
|
1811
1811
|
key: t.key,
|
|
1812
1812
|
path: `fieldValues.${t.key}`,
|
|
1813
1813
|
label: t.label
|
|
1814
1814
|
}, {
|
|
1815
|
-
label: a(() => [O(
|
|
1815
|
+
label: a(() => [O(Qn, {
|
|
1816
1816
|
label: t.label,
|
|
1817
1817
|
required: t.required,
|
|
1818
1818
|
"read-only": D(t)
|
|
@@ -1844,17 +1844,17 @@ var Tr = {
|
|
|
1844
1844
|
props: { block: {} },
|
|
1845
1845
|
emits: ["update"],
|
|
1846
1846
|
setup(e, { emit: t }) {
|
|
1847
|
-
let n = t, { t: r } =
|
|
1847
|
+
let n = t, { t: r } = U();
|
|
1848
1848
|
function o(e, t) {
|
|
1849
1849
|
n("update", { [e]: t });
|
|
1850
1850
|
}
|
|
1851
1851
|
return (t, n) => (i(), p(E, null, [
|
|
1852
|
-
O(
|
|
1852
|
+
O(J, {
|
|
1853
1853
|
label: h(r).divider.style,
|
|
1854
1854
|
class: "tpl:mb-3.5",
|
|
1855
1855
|
path: "lineStyle"
|
|
1856
1856
|
}, {
|
|
1857
|
-
default: a(() => [O(
|
|
1857
|
+
default: a(() => [O(Q, {
|
|
1858
1858
|
options: [
|
|
1859
1859
|
{
|
|
1860
1860
|
value: "solid",
|
|
@@ -1874,30 +1874,30 @@ var Tr = {
|
|
|
1874
1874
|
}, null, 8, ["options", "model-value"])]),
|
|
1875
1875
|
_: 1
|
|
1876
1876
|
}, 8, ["label"]),
|
|
1877
|
-
O(
|
|
1877
|
+
O(J, {
|
|
1878
1878
|
label: h(r).divider.color,
|
|
1879
1879
|
class: "tpl:mb-3.5",
|
|
1880
1880
|
path: "color"
|
|
1881
1881
|
}, {
|
|
1882
|
-
default: a(() => [O(
|
|
1882
|
+
default: a(() => [O(Y, {
|
|
1883
1883
|
"model-value": e.block.color,
|
|
1884
1884
|
"onUpdate:modelValue": n[1] ||= (e) => o("color", e)
|
|
1885
1885
|
}, null, 8, ["model-value"])]),
|
|
1886
1886
|
_: 1
|
|
1887
1887
|
}, 8, ["label"]),
|
|
1888
|
-
O(
|
|
1888
|
+
O(J, {
|
|
1889
1889
|
label: h(r).divider.thickness,
|
|
1890
1890
|
class: "tpl:mb-3.5",
|
|
1891
1891
|
path: "thickness"
|
|
1892
1892
|
}, {
|
|
1893
1893
|
default: a(() => [y("div", Pr, [y("input", {
|
|
1894
1894
|
type: "number",
|
|
1895
|
-
class: g(h(
|
|
1895
|
+
class: g(h(G)),
|
|
1896
1896
|
value: e.block.thickness,
|
|
1897
1897
|
min: "1",
|
|
1898
1898
|
max: "10",
|
|
1899
1899
|
onInput: n[2] ||= (e) => o("thickness", Number(e.target.value))
|
|
1900
|
-
}, null, 42, Fr), y("span", { class: g(h(
|
|
1900
|
+
}, null, 42, Fr), y("span", { class: g(h(W)) }, "px", 2)])]),
|
|
1901
1901
|
_: 1
|
|
1902
1902
|
}, 8, ["label"])
|
|
1903
1903
|
], 64));
|
|
@@ -1907,8 +1907,8 @@ var Tr = {
|
|
|
1907
1907
|
props: { block: {} },
|
|
1908
1908
|
emits: ["update"],
|
|
1909
1909
|
setup(e, { emit: t }) {
|
|
1910
|
-
let n = t, { t: r } =
|
|
1911
|
-
return (t, o) => (i(), v(
|
|
1910
|
+
let n = t, { t: r } = U();
|
|
1911
|
+
return (t, o) => (i(), v(J, {
|
|
1912
1912
|
label: h(r).html.content,
|
|
1913
1913
|
class: "tpl:mb-3.5",
|
|
1914
1914
|
path: "content"
|
|
@@ -1917,9 +1917,9 @@ var Tr = {
|
|
|
1917
1917
|
value: e.block.content,
|
|
1918
1918
|
placeholder: "<div>...</div>",
|
|
1919
1919
|
rows: "10",
|
|
1920
|
-
class: g(h(
|
|
1920
|
+
class: g(h(it)),
|
|
1921
1921
|
onInput: o[0] ||= (e) => n("update", { content: e.target.value })
|
|
1922
|
-
}, null, 42, Lr), y("p", Rr, [O(h(
|
|
1922
|
+
}, null, 42, Lr), y("p", Rr, [O(h(Me), {
|
|
1923
1923
|
size: 12,
|
|
1924
1924
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
1925
1925
|
}), m(" " + b(h(r).html.sanitizationHint), 1)])]),
|
|
@@ -1933,7 +1933,7 @@ function Br(e) {
|
|
|
1933
1933
|
o(() => e.block().id, () => {
|
|
1934
1934
|
t.value = !1, n.value = null;
|
|
1935
1935
|
});
|
|
1936
|
-
let r = S(() =>
|
|
1936
|
+
let r = S(() => de(e.block()) ?? e.measured()), i = S(() => {
|
|
1937
1937
|
let t = e.block().width;
|
|
1938
1938
|
return t === "full" ? e.room() : t;
|
|
1939
1939
|
}), a = S(() => {
|
|
@@ -1944,9 +1944,9 @@ function Br(e) {
|
|
|
1944
1944
|
return t === void 0 || a.value !== null && Math.abs(a.value - t) <= 1;
|
|
1945
1945
|
}), l = S(() => s.value && !t.value && c.value);
|
|
1946
1946
|
function u() {
|
|
1947
|
-
if (
|
|
1947
|
+
if (de(e.block())) return {};
|
|
1948
1948
|
let t = e.measured();
|
|
1949
|
-
return t ?
|
|
1949
|
+
return t ? fe(t) : {};
|
|
1950
1950
|
}
|
|
1951
1951
|
function d(r) {
|
|
1952
1952
|
if (n.value = null, !r) return t.value = !0, null;
|
|
@@ -2008,7 +2008,7 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2008
2008
|
props: { block: {} },
|
|
2009
2009
|
emits: ["update"],
|
|
2010
2010
|
setup(e, { emit: t }) {
|
|
2011
|
-
let n = e, r = t, { t: o, format: s } =
|
|
2011
|
+
let n = e, r = t, { t: o, format: s } = U(), c = l(ze, R.liquid), u = l(Ze, null), d = u ? Qe(u) : null, f = l(He, void 0), x = T(!1), C = T(!1), { start: w } = at(() => {
|
|
2012
2012
|
x.value = !1, C.value = !1;
|
|
2013
2013
|
}, 1e3, { immediate: !1 }), k = [
|
|
2014
2014
|
300,
|
|
@@ -2017,88 +2017,88 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2017
2017
|
], A = S(() => {
|
|
2018
2018
|
let e = n.block.width;
|
|
2019
2019
|
return e === "full" ? "full" : k.includes(e) ? String(e) : "custom";
|
|
2020
|
-
}),
|
|
2021
|
-
function
|
|
2020
|
+
}), M = S(() => typeof n.block.height == "number" ? "custom" : "auto");
|
|
2021
|
+
function N(e, t) {
|
|
2022
2022
|
r("update", { [e]: t });
|
|
2023
2023
|
}
|
|
2024
|
-
function
|
|
2024
|
+
function P(e) {
|
|
2025
2025
|
if (e === "custom") {
|
|
2026
2026
|
let e = n.block.width;
|
|
2027
|
-
(typeof e != "number" || k.includes(e)) && r("update",
|
|
2028
|
-
} else r("update",
|
|
2029
|
-
}
|
|
2030
|
-
function P(e) {
|
|
2031
|
-
M("height", e === "custom" ? ii : void 0);
|
|
2027
|
+
(typeof e != "number" || k.includes(e)) && r("update", B.widthUpdates(ri));
|
|
2028
|
+
} else r("update", B.widthUpdates(e === "full" ? "full" : Number(e)));
|
|
2032
2029
|
}
|
|
2033
2030
|
function F(e) {
|
|
2034
|
-
|
|
2035
|
-
!Number.isFinite(t) || t <= 0 || M("height", t);
|
|
2031
|
+
N("height", e === "custom" ? ii : void 0);
|
|
2036
2032
|
}
|
|
2037
2033
|
function I(e) {
|
|
2038
|
-
|
|
2034
|
+
let t = Number(e);
|
|
2035
|
+
!Number.isFinite(t) || t <= 0 || N("height", t);
|
|
2036
|
+
}
|
|
2037
|
+
function L(e) {
|
|
2038
|
+
N("borderRadius", j(e) === null ? void 0 : e);
|
|
2039
2039
|
}
|
|
2040
2040
|
function ee(e) {
|
|
2041
2041
|
let t = Number(e);
|
|
2042
|
-
!Number.isFinite(t) || t <= 0 || r("update",
|
|
2042
|
+
!Number.isFinite(t) || t <= 0 || r("update", B.widthUpdates(t));
|
|
2043
2043
|
}
|
|
2044
|
-
function
|
|
2044
|
+
function z(e) {
|
|
2045
2045
|
e !== n.block.src && r("update", {
|
|
2046
2046
|
src: e,
|
|
2047
|
-
...
|
|
2047
|
+
...fe(null)
|
|
2048
2048
|
});
|
|
2049
2049
|
}
|
|
2050
2050
|
function ne(e) {
|
|
2051
2051
|
r("update", {
|
|
2052
2052
|
src: e.url,
|
|
2053
|
-
...
|
|
2054
|
-
}), e.alt && (
|
|
2053
|
+
...fe(se(e.width, e.height))
|
|
2054
|
+
}), e.alt && (N("alt", e.alt), C.value = !0), x.value = !0, w();
|
|
2055
2055
|
}
|
|
2056
|
-
let
|
|
2057
|
-
target:
|
|
2056
|
+
let re = T(), ie = S(() => te(n.block.src, c)), { canBrowse: ae, isUploading: ce, showOverlay: le, openMediaBrowser: me } = ve({
|
|
2057
|
+
target: re,
|
|
2058
2058
|
blocked: ie,
|
|
2059
2059
|
apply: ne
|
|
2060
|
-
}),
|
|
2060
|
+
}), he = oe(() => ie.value || !n.block.src || de(n.block) ? void 0 : n.block.src), ge = sn(() => he.value), _e = S(() => d ? pe(d.content.value, n.block.id, f) : null), B = Br({
|
|
2061
2061
|
block: () => n.block,
|
|
2062
|
-
room: () =>
|
|
2063
|
-
measured: () =>
|
|
2064
|
-
}), { available:
|
|
2065
|
-
function
|
|
2066
|
-
let e =
|
|
2062
|
+
room: () => _e.value,
|
|
2063
|
+
measured: () => ge.value
|
|
2064
|
+
}), { available: ye, locked: V, derivedHeight: be, cappedHeight: xe } = B;
|
|
2065
|
+
function Se() {
|
|
2066
|
+
let e = B.setLocked(!V.value);
|
|
2067
2067
|
e && r("update", e);
|
|
2068
2068
|
}
|
|
2069
|
-
let
|
|
2070
|
-
function
|
|
2071
|
-
|
|
2072
|
-
let t =
|
|
2069
|
+
let H = T(null);
|
|
2070
|
+
function Ce(e) {
|
|
2071
|
+
H.value = e;
|
|
2072
|
+
let t = B.heightUpdates(Number(e));
|
|
2073
2073
|
t && r("update", t);
|
|
2074
2074
|
}
|
|
2075
2075
|
return (t, n) => (i(), p(E, null, [
|
|
2076
|
-
O(
|
|
2076
|
+
O(J, {
|
|
2077
2077
|
label: h(o).image.imageUrl,
|
|
2078
2078
|
class: "tpl:mb-3.5",
|
|
2079
2079
|
path: "src"
|
|
2080
2080
|
}, {
|
|
2081
2081
|
default: a(() => [y("div", {
|
|
2082
2082
|
ref_key: "dropZoneRef",
|
|
2083
|
-
ref:
|
|
2083
|
+
ref: re,
|
|
2084
2084
|
class: "tpl:relative"
|
|
2085
2085
|
}, [
|
|
2086
|
-
h(
|
|
2086
|
+
h(le) ? (i(), v(ue, {
|
|
2087
2087
|
key: 0,
|
|
2088
|
-
uploading: h(
|
|
2088
|
+
uploading: h(ce)
|
|
2089
2089
|
}, null, 8, ["uploading"])) : _("", !0),
|
|
2090
|
-
O(
|
|
2090
|
+
O(Z, {
|
|
2091
2091
|
"model-value": e.block.src,
|
|
2092
2092
|
type: "url",
|
|
2093
2093
|
placeholder: h(o).image.imageUrlPlaceholder,
|
|
2094
2094
|
pulse: x.value,
|
|
2095
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
2095
|
+
"onUpdate:modelValue": n[0] ||= (e) => z(e)
|
|
2096
2096
|
}, null, 8, [
|
|
2097
2097
|
"model-value",
|
|
2098
2098
|
"placeholder",
|
|
2099
2099
|
"pulse"
|
|
2100
2100
|
]),
|
|
2101
|
-
h(
|
|
2101
|
+
h(ae) ? (i(), p("button", {
|
|
2102
2102
|
key: 1,
|
|
2103
2103
|
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",
|
|
2104
2104
|
style: {
|
|
@@ -2106,15 +2106,15 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2106
2106
|
color: "var(--tpl-primary)",
|
|
2107
2107
|
"background-color": "var(--tpl-bg)"
|
|
2108
2108
|
},
|
|
2109
|
-
onClick: n[1] ||= (...e) => h(
|
|
2110
|
-
}, [O(h(
|
|
2109
|
+
onClick: n[1] ||= (...e) => h(me) && h(me)(...e)
|
|
2110
|
+
}, [O(h(Oe), {
|
|
2111
2111
|
size: 14,
|
|
2112
2112
|
"stroke-width": 1.5
|
|
2113
2113
|
}), m(" " + b(h(o).image.browseMedia), 1)])) : _("", !0)
|
|
2114
2114
|
], 512)]),
|
|
2115
2115
|
_: 1
|
|
2116
2116
|
}, 8, ["label"]),
|
|
2117
|
-
h(
|
|
2117
|
+
h(te)(e.block.src, h(c)) ? (i(), v(J, {
|
|
2118
2118
|
key: 0,
|
|
2119
2119
|
class: "tpl:mb-3.5",
|
|
2120
2120
|
path: "placeholderUrl"
|
|
@@ -2122,43 +2122,43 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2122
2122
|
label: a(() => [m(b(h(o).image.placeholderUrl) + " ", 1), y("span", Vr, b(h(o).image.optional), 1)]),
|
|
2123
2123
|
default: a(() => [y("input", {
|
|
2124
2124
|
type: "url",
|
|
2125
|
-
class: g(h(
|
|
2125
|
+
class: g(h(K)),
|
|
2126
2126
|
value: e.block.placeholderUrl || "",
|
|
2127
2127
|
placeholder: h(o).image.placeholderUrlPlaceholder,
|
|
2128
2128
|
title: h(o).image.placeholderUrlTooltip,
|
|
2129
|
-
onInput: n[2] ||= (e) =>
|
|
2129
|
+
onInput: n[2] ||= (e) => N("placeholderUrl", e.target.value)
|
|
2130
2130
|
}, null, 42, Hr)]),
|
|
2131
2131
|
_: 1
|
|
2132
2132
|
})) : _("", !0),
|
|
2133
|
-
O(
|
|
2133
|
+
O(J, {
|
|
2134
2134
|
label: h(o).image.altText,
|
|
2135
2135
|
class: "tpl:mb-3.5",
|
|
2136
2136
|
path: "alt"
|
|
2137
2137
|
}, {
|
|
2138
|
-
default: a(() => [O(
|
|
2138
|
+
default: a(() => [O(Z, {
|
|
2139
2139
|
"model-value": e.block.alt,
|
|
2140
2140
|
type: "text",
|
|
2141
2141
|
placeholder: h(o).image.altTextPlaceholder,
|
|
2142
2142
|
pulse: C.value,
|
|
2143
2143
|
disabled: e.block.decorative === !0,
|
|
2144
|
-
"onUpdate:modelValue": n[3] ||= (e) =>
|
|
2144
|
+
"onUpdate:modelValue": n[3] ||= (e) => N("alt", e)
|
|
2145
2145
|
}, null, 8, [
|
|
2146
2146
|
"model-value",
|
|
2147
2147
|
"placeholder",
|
|
2148
2148
|
"pulse",
|
|
2149
2149
|
"disabled"
|
|
2150
|
-
]), O(
|
|
2150
|
+
]), O(J, {
|
|
2151
2151
|
path: "decorative",
|
|
2152
2152
|
label: h(o).image.decorative
|
|
2153
2153
|
}, {
|
|
2154
2154
|
label: a(() => [y("span", null, [m(b(h(o).image.decorative) + " ", 1), y("span", Ur, b(h(o).image.decorativeHint), 1)])]),
|
|
2155
|
-
"label-actions": a(({ controlId: t }) => [O(
|
|
2155
|
+
"label-actions": a(({ controlId: t }) => [O(X, {
|
|
2156
2156
|
"control-id": t,
|
|
2157
2157
|
"hide-label": "",
|
|
2158
2158
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2159
2159
|
"model-value": e.block.decorative === !0,
|
|
2160
2160
|
label: h(o).image.decorative,
|
|
2161
|
-
"onUpdate:modelValue": n[4] ||= (e) =>
|
|
2161
|
+
"onUpdate:modelValue": n[4] ||= (e) => N("decorative", e)
|
|
2162
2162
|
}, null, 8, [
|
|
2163
2163
|
"control-id",
|
|
2164
2164
|
"model-value",
|
|
@@ -2168,16 +2168,16 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2168
2168
|
}, 8, ["label"])]),
|
|
2169
2169
|
_: 1
|
|
2170
2170
|
}, 8, ["label"]),
|
|
2171
|
-
O(
|
|
2171
|
+
O(J, {
|
|
2172
2172
|
label: h(o).image.width,
|
|
2173
2173
|
class: "tpl:mb-3.5",
|
|
2174
2174
|
path: "width"
|
|
2175
2175
|
}, {
|
|
2176
2176
|
default: a(() => [y("select", {
|
|
2177
|
-
class: g(h(
|
|
2177
|
+
class: g(h(K)),
|
|
2178
2178
|
"data-testid": "image-width-mode",
|
|
2179
2179
|
value: A.value,
|
|
2180
|
-
onChange: n[5] ||= (e) =>
|
|
2180
|
+
onChange: n[5] ||= (e) => P(e.target.value)
|
|
2181
2181
|
}, [
|
|
2182
2182
|
y("option", Gr, b(h(o).image.fullWidth), 1),
|
|
2183
2183
|
n[15] ||= y("option", { value: "300" }, "300px", -1),
|
|
@@ -2187,53 +2187,53 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2187
2187
|
], 42, Wr), A.value === "custom" ? (i(), p("div", qr, [y("input", {
|
|
2188
2188
|
type: "number",
|
|
2189
2189
|
"data-testid": "image-width-input",
|
|
2190
|
-
class: g(h(
|
|
2190
|
+
class: g(h(G)),
|
|
2191
2191
|
value: typeof e.block.width == "number" ? e.block.width : ri,
|
|
2192
2192
|
min: "20",
|
|
2193
2193
|
onInput: n[6] ||= (e) => ee(e.target.value)
|
|
2194
|
-
}, null, 42, Jr), y("span", { class: g(h(
|
|
2194
|
+
}, null, 42, Jr), y("span", { class: g(h(W)) }, "px", 2)])) : _("", !0)]),
|
|
2195
2195
|
_: 1
|
|
2196
2196
|
}, 8, ["label"]),
|
|
2197
|
-
O(
|
|
2197
|
+
O(J, {
|
|
2198
2198
|
class: "tpl:mb-3.5",
|
|
2199
2199
|
path: "height",
|
|
2200
2200
|
label: h(o).image.height
|
|
2201
2201
|
}, D({
|
|
2202
2202
|
default: a(() => [
|
|
2203
|
-
h(
|
|
2203
|
+
h(V) ? (i(), p(E, { key: 0 }, [y("div", Yr, [y("input", {
|
|
2204
2204
|
type: "number",
|
|
2205
2205
|
"data-testid": "image-locked-height-input",
|
|
2206
|
-
class: g(h(
|
|
2207
|
-
value:
|
|
2206
|
+
class: g(h(G)),
|
|
2207
|
+
value: H.value ?? h(be) ?? "",
|
|
2208
2208
|
min: "1",
|
|
2209
|
-
onInput: n[7] ||= (e) =>
|
|
2210
|
-
onBlur: n[8] ||= (e) =>
|
|
2211
|
-
}, null, 42, Xr), y("span", { class: g(h(
|
|
2212
|
-
h(
|
|
2209
|
+
onInput: n[7] ||= (e) => Ce(e.target.value),
|
|
2210
|
+
onBlur: n[8] ||= (e) => H.value = null
|
|
2211
|
+
}, null, 42, Xr), y("span", { class: g(h(W)) }, "px", 2)]), h(xe) === null ? _("", !0) : (i(), p("p", Zr, b(h(s)(h(o).image.heightCapped, { height: h(xe) })), 1))], 64)) : _("", !0),
|
|
2212
|
+
h(V) ? _("", !0) : (i(), p("select", {
|
|
2213
2213
|
key: 1,
|
|
2214
|
-
class: g(h(
|
|
2214
|
+
class: g(h(K)),
|
|
2215
2215
|
"data-testid": "image-height-mode",
|
|
2216
|
-
value:
|
|
2217
|
-
onChange: n[9] ||= (e) =>
|
|
2216
|
+
value: M.value,
|
|
2217
|
+
onChange: n[9] ||= (e) => F(e.target.value)
|
|
2218
2218
|
}, [y("option", $r, b(h(o).image.heightAuto), 1), y("option", ei, b(h(o).image.heightCustom), 1)], 42, Qr)),
|
|
2219
|
-
!h(
|
|
2219
|
+
!h(V) && M.value === "custom" ? (i(), p("div", ti, [y("input", {
|
|
2220
2220
|
type: "number",
|
|
2221
2221
|
"data-testid": "image-height-input",
|
|
2222
|
-
class: g(h(
|
|
2222
|
+
class: g(h(G)),
|
|
2223
2223
|
value: e.block.height,
|
|
2224
2224
|
min: "20",
|
|
2225
|
-
onInput: n[10] ||= (e) =>
|
|
2226
|
-
}, null, 42, ni), y("span", { class: g(h(
|
|
2225
|
+
onInput: n[10] ||= (e) => I(e.target.value)
|
|
2226
|
+
}, null, 42, ni), y("span", { class: g(h(W)) }, "px", 2)])) : _("", !0)
|
|
2227
2227
|
]),
|
|
2228
2228
|
_: 2
|
|
2229
|
-
}, [h(
|
|
2229
|
+
}, [h(ye) ? {
|
|
2230
2230
|
name: "label-actions",
|
|
2231
|
-
fn: a(() => [O(
|
|
2232
|
-
linked: h(
|
|
2231
|
+
fn: a(() => [O(vt, {
|
|
2232
|
+
linked: h(V),
|
|
2233
2233
|
"link-label": h(o).image.lockAspectRatio,
|
|
2234
2234
|
"unlink-label": h(o).image.unlockAspectRatio,
|
|
2235
2235
|
testid: "image-aspect-lock",
|
|
2236
|
-
onToggle:
|
|
2236
|
+
onToggle: Se
|
|
2237
2237
|
}, null, 8, [
|
|
2238
2238
|
"linked",
|
|
2239
2239
|
"link-label",
|
|
@@ -2241,25 +2241,25 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2241
2241
|
])]),
|
|
2242
2242
|
key: "0"
|
|
2243
2243
|
} : void 0]), 1032, ["label"]),
|
|
2244
|
-
O(
|
|
2244
|
+
O(Tt, {
|
|
2245
2245
|
path: "borderRadius",
|
|
2246
2246
|
"model-value": e.block.borderRadius,
|
|
2247
2247
|
label: h(o).image.borderRadius,
|
|
2248
2248
|
"testid-prefix": "image",
|
|
2249
|
-
"onUpdate:modelValue":
|
|
2249
|
+
"onUpdate:modelValue": L
|
|
2250
2250
|
}, null, 8, ["model-value", "label"]),
|
|
2251
|
-
O(
|
|
2251
|
+
O(St, {
|
|
2252
2252
|
path: "border",
|
|
2253
2253
|
"model-value": e.block.border,
|
|
2254
2254
|
"testid-prefix": "image",
|
|
2255
|
-
"onUpdate:modelValue": n[11] ||= (e) =>
|
|
2255
|
+
"onUpdate:modelValue": n[11] ||= (e) => N("border", e)
|
|
2256
2256
|
}, null, 8, ["model-value"]),
|
|
2257
|
-
O(
|
|
2257
|
+
O(J, {
|
|
2258
2258
|
label: h(o).title.align,
|
|
2259
2259
|
class: "tpl:mb-3.5",
|
|
2260
2260
|
path: "align"
|
|
2261
2261
|
}, {
|
|
2262
|
-
default: a(() => [O(
|
|
2262
|
+
default: a(() => [O(Q, {
|
|
2263
2263
|
options: [
|
|
2264
2264
|
{
|
|
2265
2265
|
value: "left",
|
|
@@ -2275,32 +2275,32 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2275
2275
|
}
|
|
2276
2276
|
],
|
|
2277
2277
|
"model-value": e.block.align,
|
|
2278
|
-
"onUpdate:modelValue": n[12] ||= (e) =>
|
|
2278
|
+
"onUpdate:modelValue": n[12] ||= (e) => N("align", e)
|
|
2279
2279
|
}, null, 8, ["options", "model-value"])]),
|
|
2280
2280
|
_: 1
|
|
2281
2281
|
}, 8, ["label"]),
|
|
2282
|
-
O(
|
|
2282
|
+
O(J, {
|
|
2283
2283
|
label: h(o).image.linkUrl,
|
|
2284
2284
|
class: "tpl:mb-3.5",
|
|
2285
2285
|
path: "linkUrl"
|
|
2286
2286
|
}, {
|
|
2287
|
-
default: a(() => [O(
|
|
2287
|
+
default: a(() => [O(Z, {
|
|
2288
2288
|
"model-value": e.block.linkUrl || "",
|
|
2289
2289
|
type: "url",
|
|
2290
2290
|
placeholder: h(o).image.imageUrlPlaceholder,
|
|
2291
|
-
"onUpdate:modelValue": n[13] ||= (e) =>
|
|
2292
|
-
}, null, 8, ["model-value", "placeholder"]), e.block.linkUrl ? (i(), v(
|
|
2291
|
+
"onUpdate:modelValue": n[13] ||= (e) => N("linkUrl", e)
|
|
2292
|
+
}, null, 8, ["model-value", "placeholder"]), e.block.linkUrl ? (i(), v(J, {
|
|
2293
2293
|
key: 0,
|
|
2294
2294
|
path: "linkOpenInNewTab",
|
|
2295
2295
|
label: h(o).image.openInNewTab
|
|
2296
2296
|
}, {
|
|
2297
|
-
"label-actions": a(({ controlId: t }) => [O(
|
|
2297
|
+
"label-actions": a(({ controlId: t }) => [O(X, {
|
|
2298
2298
|
"control-id": t,
|
|
2299
2299
|
"hide-label": "",
|
|
2300
2300
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2301
2301
|
"model-value": e.block.linkOpenInNewTab ?? !1,
|
|
2302
2302
|
label: h(o).image.openInNewTab,
|
|
2303
|
-
"onUpdate:modelValue": n[14] ||= (e) =>
|
|
2303
|
+
"onUpdate:modelValue": n[14] ||= (e) => N("linkOpenInNewTab", e)
|
|
2304
2304
|
}, null, 8, [
|
|
2305
2305
|
"control-id",
|
|
2306
2306
|
"model-value",
|
|
@@ -2324,7 +2324,7 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2324
2324
|
},
|
|
2325
2325
|
emits: ["update"],
|
|
2326
2326
|
setup(e, { emit: t }) {
|
|
2327
|
-
let n = e, r = t, { t: o } =
|
|
2327
|
+
let n = e, r = t, { t: o } = U(), s = S(() => [
|
|
2328
2328
|
{
|
|
2329
2329
|
key: "openInNewTab",
|
|
2330
2330
|
label: o.menu.openInNewTab
|
|
@@ -2341,17 +2341,17 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2341
2341
|
{
|
|
2342
2342
|
value: "left",
|
|
2343
2343
|
label: o.title.alignLeft,
|
|
2344
|
-
icon:
|
|
2344
|
+
icon: Ne
|
|
2345
2345
|
},
|
|
2346
2346
|
{
|
|
2347
2347
|
value: "center",
|
|
2348
2348
|
label: o.title.alignCenter,
|
|
2349
|
-
icon:
|
|
2349
|
+
icon: De
|
|
2350
2350
|
},
|
|
2351
2351
|
{
|
|
2352
2352
|
value: "right",
|
|
2353
2353
|
label: o.title.alignRight,
|
|
2354
|
-
icon:
|
|
2354
|
+
icon: Re
|
|
2355
2355
|
}
|
|
2356
2356
|
]);
|
|
2357
2357
|
function u(e, t) {
|
|
@@ -2379,36 +2379,36 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2379
2379
|
r("update", { items: n.block.items.filter((t) => t.id !== e) });
|
|
2380
2380
|
}
|
|
2381
2381
|
return (t, n) => (i(), p(E, null, [
|
|
2382
|
-
O(
|
|
2382
|
+
O(J, { label: h(o).menu.items }, {
|
|
2383
2383
|
default: a(() => [y("div", oi, [(i(!0), p(E, null, c(e.block.items, (t) => (i(), p("div", {
|
|
2384
2384
|
key: t.id,
|
|
2385
2385
|
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"
|
|
2386
2386
|
}, [
|
|
2387
|
-
y("div", si, [O(
|
|
2387
|
+
y("div", si, [O(J, {
|
|
2388
2388
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.text`,
|
|
2389
2389
|
label: h(o).menu.text
|
|
2390
2390
|
}, {
|
|
2391
2391
|
default: a(() => [y("input", {
|
|
2392
2392
|
type: "text",
|
|
2393
|
-
class: g([h(
|
|
2393
|
+
class: g([h(K), "tpl:flex-1"]),
|
|
2394
2394
|
value: t.text,
|
|
2395
2395
|
placeholder: h(o).menu.text,
|
|
2396
2396
|
onInput: (e) => f(t.id, "text", e.target.value)
|
|
2397
2397
|
}, null, 42, ci)]),
|
|
2398
2398
|
_: 2
|
|
2399
2399
|
}, 1032, ["path", "label"]), y("button", {
|
|
2400
|
-
class: g(h(
|
|
2400
|
+
class: g(h(et)),
|
|
2401
2401
|
title: h(o).menu.removeItem,
|
|
2402
2402
|
onClick: (e) => _(t.id)
|
|
2403
|
-
}, [O(h(
|
|
2403
|
+
}, [O(h(Le), {
|
|
2404
2404
|
size: 14,
|
|
2405
2405
|
"stroke-width": 2
|
|
2406
2406
|
})], 10, li)]),
|
|
2407
|
-
O(
|
|
2407
|
+
O(J, {
|
|
2408
2408
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.url`,
|
|
2409
2409
|
label: h(o).button.url
|
|
2410
2410
|
}, {
|
|
2411
|
-
default: a(() => [O(
|
|
2411
|
+
default: a(() => [O(Z, {
|
|
2412
2412
|
"model-value": t.url,
|
|
2413
2413
|
type: "url",
|
|
2414
2414
|
placeholder: h(o).menu.urlPlaceholder,
|
|
@@ -2420,12 +2420,12 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2420
2420
|
])]),
|
|
2421
2421
|
_: 2
|
|
2422
2422
|
}, 1032, ["path", "label"]),
|
|
2423
|
-
y("div", ui, [(i(!0), p(E, null, c(s.value, (e) => (i(), v(
|
|
2423
|
+
y("div", ui, [(i(!0), p(E, null, c(s.value, (e) => (i(), v(J, {
|
|
2424
2424
|
key: e.key,
|
|
2425
2425
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.${e.key}`,
|
|
2426
2426
|
label: e.label
|
|
2427
2427
|
}, {
|
|
2428
|
-
"label-actions": a(({ controlId: n }) => [O(
|
|
2428
|
+
"label-actions": a(({ controlId: n }) => [O(X, {
|
|
2429
2429
|
"control-id": n,
|
|
2430
2430
|
"hide-label": "",
|
|
2431
2431
|
"model-value": t[e.key],
|
|
@@ -2439,11 +2439,11 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2439
2439
|
])]),
|
|
2440
2440
|
_: 2
|
|
2441
2441
|
}, 1032, ["path", "label"]))), 128))]),
|
|
2442
|
-
y("div", di, [O(
|
|
2442
|
+
y("div", di, [O(J, {
|
|
2443
2443
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.color`,
|
|
2444
2444
|
label: h(o).menu.color
|
|
2445
2445
|
}, {
|
|
2446
|
-
default: a(() => [O(
|
|
2446
|
+
default: a(() => [O(Y, {
|
|
2447
2447
|
"swatch-only": "",
|
|
2448
2448
|
"model-value": t.color || e.block.linkColor || e.block.color || "",
|
|
2449
2449
|
"onUpdate:modelValue": (e) => f(t.id, "color", e)
|
|
@@ -2451,21 +2451,21 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2451
2451
|
_: 2
|
|
2452
2452
|
}, 1032, ["path", "label"])])
|
|
2453
2453
|
]))), 128)), y("button", {
|
|
2454
|
-
class: g(h(
|
|
2454
|
+
class: g(h(nt)),
|
|
2455
2455
|
onClick: d
|
|
2456
|
-
}, [O(h(
|
|
2456
|
+
}, [O(h(H), {
|
|
2457
2457
|
size: 14,
|
|
2458
2458
|
"stroke-width": 2
|
|
2459
2459
|
}), m(" " + b(h(o).menu.addItem), 1)], 2)])]),
|
|
2460
2460
|
_: 1
|
|
2461
2461
|
}, 8, ["label"]),
|
|
2462
|
-
O(
|
|
2462
|
+
O(J, {
|
|
2463
2463
|
path: "fontFamily",
|
|
2464
2464
|
label: h(o).menu.fontFamily
|
|
2465
2465
|
}, {
|
|
2466
2466
|
default: a(() => [y("select", {
|
|
2467
|
-
class: g(h(
|
|
2468
|
-
value: h(
|
|
2467
|
+
class: g(h(K)),
|
|
2468
|
+
value: h(dt)(e.block.fontFamily),
|
|
2469
2469
|
onChange: n[0] ||= (e) => u("fontFamily", e.target.value || void 0)
|
|
2470
2470
|
}, [y("option", pi, b(h(o).title.inheritFont), 1), (i(!0), p(E, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
2471
2471
|
key: e.value,
|
|
@@ -2473,11 +2473,11 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2473
2473
|
}, b(e.label), 9, mi))), 128))], 42, fi)]),
|
|
2474
2474
|
_: 1
|
|
2475
2475
|
}, 8, ["label"]),
|
|
2476
|
-
O(
|
|
2476
|
+
O(J, {
|
|
2477
2477
|
path: "fontSize",
|
|
2478
2478
|
label: h(o).menu.fontSize
|
|
2479
2479
|
}, {
|
|
2480
|
-
default: a(() => [O(
|
|
2480
|
+
default: a(() => [O(gt, {
|
|
2481
2481
|
"model-value": e.block.fontSize,
|
|
2482
2482
|
min: 8,
|
|
2483
2483
|
max: 48,
|
|
@@ -2486,64 +2486,64 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2486
2486
|
}, null, 8, ["model-value"])]),
|
|
2487
2487
|
_: 1
|
|
2488
2488
|
}, 8, ["label"]),
|
|
2489
|
-
O(
|
|
2489
|
+
O(J, {
|
|
2490
2490
|
path: "color",
|
|
2491
2491
|
label: h(o).menu.color
|
|
2492
2492
|
}, {
|
|
2493
|
-
default: a(() => [O(
|
|
2493
|
+
default: a(() => [O(Y, {
|
|
2494
2494
|
"model-value": e.block.color ?? "",
|
|
2495
2495
|
"onUpdate:modelValue": n[2] ||= (e) => u("color", e || void 0)
|
|
2496
2496
|
}, null, 8, ["model-value"])]),
|
|
2497
2497
|
_: 1
|
|
2498
2498
|
}, 8, ["label"]),
|
|
2499
|
-
O(
|
|
2499
|
+
O(J, {
|
|
2500
2500
|
path: "linkColor",
|
|
2501
2501
|
label: h(o).menu.linkColor
|
|
2502
2502
|
}, {
|
|
2503
|
-
default: a(() => [O(
|
|
2503
|
+
default: a(() => [O(Y, {
|
|
2504
2504
|
"model-value": e.block.linkColor || e.block.color || "",
|
|
2505
2505
|
"onUpdate:modelValue": n[3] ||= (e) => u("linkColor", e || void 0)
|
|
2506
2506
|
}, null, 8, ["model-value"])]),
|
|
2507
2507
|
_: 1
|
|
2508
2508
|
}, 8, ["label"]),
|
|
2509
|
-
O(
|
|
2509
|
+
O(J, {
|
|
2510
2510
|
path: "textAlign",
|
|
2511
2511
|
label: h(o).menu.textAlign
|
|
2512
2512
|
}, {
|
|
2513
|
-
default: a(() => [O(
|
|
2513
|
+
default: a(() => [O(Q, {
|
|
2514
2514
|
options: l.value,
|
|
2515
2515
|
"model-value": e.block.textAlign,
|
|
2516
2516
|
"onUpdate:modelValue": n[4] ||= (e) => u("textAlign", e)
|
|
2517
2517
|
}, null, 8, ["options", "model-value"])]),
|
|
2518
2518
|
_: 1
|
|
2519
2519
|
}, 8, ["label"]),
|
|
2520
|
-
O(
|
|
2520
|
+
O(J, {
|
|
2521
2521
|
path: "separator",
|
|
2522
2522
|
label: h(o).menu.separator
|
|
2523
2523
|
}, {
|
|
2524
2524
|
default: a(() => [y("input", {
|
|
2525
2525
|
type: "text",
|
|
2526
|
-
class: g(h(
|
|
2526
|
+
class: g(h(K)),
|
|
2527
2527
|
value: e.block.separator,
|
|
2528
2528
|
onInput: n[5] ||= (e) => u("separator", e.target.value)
|
|
2529
2529
|
}, null, 42, hi)]),
|
|
2530
2530
|
_: 1
|
|
2531
2531
|
}, 8, ["label"]),
|
|
2532
|
-
O(
|
|
2532
|
+
O(J, {
|
|
2533
2533
|
path: "separatorColor",
|
|
2534
2534
|
label: h(o).menu.separatorColor
|
|
2535
2535
|
}, {
|
|
2536
|
-
default: a(() => [O(
|
|
2536
|
+
default: a(() => [O(Y, {
|
|
2537
2537
|
"model-value": e.block.separatorColor,
|
|
2538
2538
|
"onUpdate:modelValue": n[6] ||= (e) => u("separatorColor", e)
|
|
2539
2539
|
}, null, 8, ["model-value"])]),
|
|
2540
2540
|
_: 1
|
|
2541
2541
|
}, 8, ["label"]),
|
|
2542
|
-
O(
|
|
2542
|
+
O(J, {
|
|
2543
2543
|
path: "spacing",
|
|
2544
2544
|
label: h(o).menu.spacing
|
|
2545
2545
|
}, {
|
|
2546
|
-
default: a(() => [O(
|
|
2546
|
+
default: a(() => [O(gt, {
|
|
2547
2547
|
"model-value": e.block.spacing,
|
|
2548
2548
|
min: 0,
|
|
2549
2549
|
max: 50,
|
|
@@ -2559,8 +2559,8 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2559
2559
|
props: { block: {} },
|
|
2560
2560
|
emits: ["update"],
|
|
2561
2561
|
setup(e, { emit: t }) {
|
|
2562
|
-
let n = t, { t: r } =
|
|
2563
|
-
return (t, o) => (i(), v(
|
|
2562
|
+
let n = t, { t: r } = U();
|
|
2563
|
+
return (t, o) => (i(), v(J, {
|
|
2564
2564
|
label: h(r).paragraph.paragraphSpacing,
|
|
2565
2565
|
class: "tpl:mb-3.5",
|
|
2566
2566
|
"data-testid": "paragraph-spacing",
|
|
@@ -2568,12 +2568,12 @@ var Vr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Hr = [
|
|
|
2568
2568
|
}, {
|
|
2569
2569
|
default: a(() => [y("div", _i, [y("input", {
|
|
2570
2570
|
type: "number",
|
|
2571
|
-
class: g(h(
|
|
2572
|
-
value: e.block.paragraphSpacing ?? h(
|
|
2571
|
+
class: g(h(G)),
|
|
2572
|
+
value: e.block.paragraphSpacing ?? h(N).paragraphGap,
|
|
2573
2573
|
min: "0",
|
|
2574
2574
|
max: "64",
|
|
2575
2575
|
onInput: o[0] ||= (e) => n("update", { paragraphSpacing: Number(e.target.value) })
|
|
2576
|
-
}, null, 42, vi), y("span", { class: g(h(
|
|
2576
|
+
}, null, 42, vi), y("span", { class: g(h(W)) }, "px", 2)])]),
|
|
2577
2577
|
_: 1
|
|
2578
2578
|
}, 8, ["label"]));
|
|
2579
2579
|
}
|
|
@@ -2604,7 +2604,7 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
2604
2604
|
props: { block: {} },
|
|
2605
2605
|
emits: ["update"],
|
|
2606
2606
|
setup(e, { emit: t }) {
|
|
2607
|
-
let n = e, r = t, { t: o } =
|
|
2607
|
+
let n = e, r = t, { t: o } = U(), s = l(He, void 0), u = l(We, void 0), d = s !== void 0 && F(s), f = S(() => u !== !1 || !!n.block.wrapper), m = S(() => d && !n.block.wrapper), x = S(() => d && f.value), C = S(() => ne(n.block)?.applied === !0), w = S(() => [
|
|
2608
2608
|
{
|
|
2609
2609
|
value: "1",
|
|
2610
2610
|
label: o.section.column1
|
|
@@ -2660,21 +2660,21 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
2660
2660
|
j({ borderRadius: e });
|
|
2661
2661
|
}
|
|
2662
2662
|
return (t, n) => (i(), p(E, null, [
|
|
2663
|
-
y("div", xi, [y("label", { class: g(h(
|
|
2664
|
-
class: g(h(
|
|
2663
|
+
y("div", xi, [y("label", { class: g(h(q)) }, b(h(o).section.columns), 3), y("select", {
|
|
2664
|
+
class: g(h(K)),
|
|
2665
2665
|
value: e.block.columns,
|
|
2666
2666
|
onChange: T
|
|
2667
2667
|
}, [(i(!0), p(E, null, c(w.value, (e) => (i(), p("option", {
|
|
2668
2668
|
key: e.value,
|
|
2669
2669
|
value: e.value
|
|
2670
2670
|
}, b(e.label), 9, Ci))), 128))], 42, Si)]),
|
|
2671
|
-
e.block.columns === "1" ? _("", !0) : (i(), v(
|
|
2671
|
+
e.block.columns === "1" ? _("", !0) : (i(), v(J, {
|
|
2672
2672
|
key: 0,
|
|
2673
2673
|
class: "tpl:mb-3.5",
|
|
2674
2674
|
path: "stackOnMobile",
|
|
2675
2675
|
label: h(o).section.stackOnMobile
|
|
2676
2676
|
}, {
|
|
2677
|
-
"label-actions": a(({ controlId: t }) => [O(
|
|
2677
|
+
"label-actions": a(({ controlId: t }) => [O(X, {
|
|
2678
2678
|
"control-id": t,
|
|
2679
2679
|
"hide-label": "",
|
|
2680
2680
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
@@ -2688,7 +2688,7 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
2688
2688
|
])]),
|
|
2689
2689
|
_: 1
|
|
2690
2690
|
}, 8, ["label"])),
|
|
2691
|
-
O(
|
|
2691
|
+
O(Tt, {
|
|
2692
2692
|
path: "borderRadius",
|
|
2693
2693
|
"model-value": e.block.borderRadius,
|
|
2694
2694
|
label: h(o).section.borderRadius,
|
|
@@ -2696,7 +2696,7 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
2696
2696
|
"testid-prefix": "section",
|
|
2697
2697
|
"onUpdate:modelValue": k
|
|
2698
2698
|
}, null, 8, ["model-value", "label"]),
|
|
2699
|
-
C.value ? _("", !0) : (i(), v(
|
|
2699
|
+
C.value ? _("", !0) : (i(), v(St, {
|
|
2700
2700
|
key: 1,
|
|
2701
2701
|
path: "border",
|
|
2702
2702
|
"model-value": e.block.border,
|
|
@@ -2704,11 +2704,11 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
2704
2704
|
"onUpdate:modelValue": n[1] ||= (e) => r("update", { border: e })
|
|
2705
2705
|
}, null, 8, ["model-value"])),
|
|
2706
2706
|
f.value ? (i(), p("div", wi, [
|
|
2707
|
-
O(
|
|
2707
|
+
O(J, {
|
|
2708
2708
|
path: "wrapper",
|
|
2709
2709
|
label: h(o).section.wrapperEnable
|
|
2710
2710
|
}, {
|
|
2711
|
-
"label-actions": a(({ controlId: t }) => [O(
|
|
2711
|
+
"label-actions": a(({ controlId: t }) => [O(X, {
|
|
2712
2712
|
"control-id": t,
|
|
2713
2713
|
"hide-label": "",
|
|
2714
2714
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
@@ -2726,22 +2726,22 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
2726
2726
|
}, 8, ["label"]),
|
|
2727
2727
|
x.value ? (i(), p("p", Ti, b(h(o).section.wrapperLayoutConflict), 1)) : _("", !0),
|
|
2728
2728
|
e.block.wrapper ? (i(), p("div", Ei, [
|
|
2729
|
-
y("div", null, [O(
|
|
2729
|
+
y("div", null, [O(J, {
|
|
2730
2730
|
path: "wrapper.backgroundColor",
|
|
2731
2731
|
label: h(o).blockSettings.color
|
|
2732
2732
|
}, {
|
|
2733
|
-
default: a(() => [O(
|
|
2733
|
+
default: a(() => [O(Y, {
|
|
2734
2734
|
"model-value": e.block.wrapper.backgroundColor ?? "",
|
|
2735
2735
|
"allow-transparent": "",
|
|
2736
2736
|
"onUpdate:modelValue": n[3] ||= (e) => j({ backgroundColor: e })
|
|
2737
2737
|
}, null, 8, ["model-value"])]),
|
|
2738
2738
|
_: 1
|
|
2739
2739
|
}, 8, ["label"])]),
|
|
2740
|
-
O(
|
|
2740
|
+
O(J, {
|
|
2741
2741
|
path: "wrapper.backgroundImage",
|
|
2742
2742
|
label: h(o).blockSettings.backgroundImage
|
|
2743
2743
|
}, {
|
|
2744
|
-
default: a(() => [O(
|
|
2744
|
+
default: a(() => [O(_n, {
|
|
2745
2745
|
"hide-label": "",
|
|
2746
2746
|
"model-value": e.block.wrapper.backgroundImage,
|
|
2747
2747
|
"testid-prefix": "section-wrapper",
|
|
@@ -2749,7 +2749,7 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
2749
2749
|
}, null, 8, ["model-value"])]),
|
|
2750
2750
|
_: 1
|
|
2751
2751
|
}, 8, ["label"]),
|
|
2752
|
-
O(
|
|
2752
|
+
O(on, {
|
|
2753
2753
|
path: "wrapper.padding",
|
|
2754
2754
|
label: h(o).blockSettings.padding,
|
|
2755
2755
|
"model-value": e.block.wrapper.padding ?? {
|
|
@@ -2760,7 +2760,7 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
2760
2760
|
},
|
|
2761
2761
|
"onUpdate:modelValue": M
|
|
2762
2762
|
}, null, 8, ["label", "model-value"]),
|
|
2763
|
-
O(
|
|
2763
|
+
O(Tt, {
|
|
2764
2764
|
path: "wrapper.borderRadius",
|
|
2765
2765
|
"model-value": e.block.wrapper.borderRadius,
|
|
2766
2766
|
label: h(o).section.borderRadius,
|
|
@@ -2777,7 +2777,7 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
2777
2777
|
props: { block: {} },
|
|
2778
2778
|
emits: ["update"],
|
|
2779
2779
|
setup(e, { emit: t }) {
|
|
2780
|
-
let n = e, r = t, { t: o } =
|
|
2780
|
+
let n = e, r = t, { t: o } = U();
|
|
2781
2781
|
function s(e, t) {
|
|
2782
2782
|
r("update", { [e]: t });
|
|
2783
2783
|
}
|
|
@@ -2800,35 +2800,35 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
2800
2800
|
r("update", { icons: n.block.icons.filter((t) => t.id !== e) });
|
|
2801
2801
|
}
|
|
2802
2802
|
return (t, n) => (i(), p(E, null, [
|
|
2803
|
-
y("div", Oi, [y("label", { class: g(h(
|
|
2803
|
+
y("div", Oi, [y("label", { class: g(h(q)) }, b(h(o).social.icons), 3), y("div", ki, [(i(!0), p(E, null, c(e.block.icons, (e) => (i(), p("div", {
|
|
2804
2804
|
key: e.id,
|
|
2805
2805
|
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"
|
|
2806
|
-
}, [y("div", Ai, [O(
|
|
2806
|
+
}, [y("div", Ai, [O(J, {
|
|
2807
2807
|
path: e.id.includes(".") ? void 0 : `icons.${e.id}.platform`,
|
|
2808
2808
|
label: h(o).social.icons
|
|
2809
2809
|
}, {
|
|
2810
2810
|
default: a(() => [y("select", {
|
|
2811
2811
|
"data-testid": "social-platform-select",
|
|
2812
|
-
class: g([h(
|
|
2812
|
+
class: g([h(K), "tpl:flex-1"]),
|
|
2813
2813
|
value: e.platform,
|
|
2814
2814
|
onChange: (t) => u(e.id, "platform", t.target.value)
|
|
2815
|
-
}, [(i(!0), p(E, null, c(h(
|
|
2815
|
+
}, [(i(!0), p(E, null, c(h(_e), (e) => (i(), p("option", {
|
|
2816
2816
|
key: e,
|
|
2817
2817
|
value: e
|
|
2818
2818
|
}, b(h(o).social.platforms[e]), 9, Mi))), 128))], 42, ji)]),
|
|
2819
2819
|
_: 2
|
|
2820
2820
|
}, 1032, ["path", "label"]), y("button", {
|
|
2821
|
-
class: g(h(
|
|
2821
|
+
class: g(h(et)),
|
|
2822
2822
|
title: h(o).social.removeIcon,
|
|
2823
2823
|
onClick: (t) => d(e.id)
|
|
2824
|
-
}, [O(h(
|
|
2824
|
+
}, [O(h(Le), {
|
|
2825
2825
|
size: 14,
|
|
2826
2826
|
"stroke-width": 2
|
|
2827
|
-
})], 10, Ni)]), O(
|
|
2827
|
+
})], 10, Ni)]), O(J, {
|
|
2828
2828
|
path: e.id.includes(".") ? void 0 : `icons.${e.id}.url`,
|
|
2829
2829
|
label: h(o).button.url
|
|
2830
2830
|
}, {
|
|
2831
|
-
default: a(() => [O(
|
|
2831
|
+
default: a(() => [O(Z, {
|
|
2832
2832
|
"model-value": e.url,
|
|
2833
2833
|
type: "url",
|
|
2834
2834
|
placeholder: h(o).social.urlPlaceholder,
|
|
@@ -2840,19 +2840,19 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
2840
2840
|
])]),
|
|
2841
2841
|
_: 2
|
|
2842
2842
|
}, 1032, ["path", "label"])]))), 128)), y("button", {
|
|
2843
|
-
class: g(h(
|
|
2843
|
+
class: g(h(nt)),
|
|
2844
2844
|
onClick: l
|
|
2845
|
-
}, [O(h(
|
|
2845
|
+
}, [O(h(H), {
|
|
2846
2846
|
size: 14,
|
|
2847
2847
|
"stroke-width": 2
|
|
2848
2848
|
}), m(" " + b(h(o).social.addIcon), 1)], 2)])]),
|
|
2849
|
-
O(
|
|
2849
|
+
O(J, {
|
|
2850
2850
|
label: h(o).social.style,
|
|
2851
2851
|
class: "tpl:mb-3.5",
|
|
2852
2852
|
path: "iconStyle"
|
|
2853
2853
|
}, {
|
|
2854
2854
|
default: a(() => [y("select", {
|
|
2855
|
-
class: g(h(
|
|
2855
|
+
class: g(h(K)),
|
|
2856
2856
|
value: e.block.iconStyle,
|
|
2857
2857
|
onChange: n[0] ||= (e) => s("iconStyle", e.target.value)
|
|
2858
2858
|
}, [
|
|
@@ -2865,14 +2865,14 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
2865
2865
|
], 42, Pi)]),
|
|
2866
2866
|
_: 1
|
|
2867
2867
|
}, 8, ["label"]),
|
|
2868
|
-
O(
|
|
2868
|
+
O(J, {
|
|
2869
2869
|
label: h(o).social.color,
|
|
2870
2870
|
class: "tpl:mb-3.5",
|
|
2871
2871
|
path: "iconTone"
|
|
2872
2872
|
}, {
|
|
2873
2873
|
default: a(() => [y("select", {
|
|
2874
2874
|
"data-testid": "social-tone-select",
|
|
2875
|
-
class: g(h(
|
|
2875
|
+
class: g(h(K)),
|
|
2876
2876
|
value: e.block.iconTone ?? "brand",
|
|
2877
2877
|
onChange: n[1] ||= (e) => s("iconTone", e.target.value)
|
|
2878
2878
|
}, [
|
|
@@ -2882,12 +2882,12 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
2882
2882
|
], 42, Vi)]),
|
|
2883
2883
|
_: 1
|
|
2884
2884
|
}, 8, ["label"]),
|
|
2885
|
-
O(
|
|
2885
|
+
O(J, {
|
|
2886
2886
|
label: h(o).social.size,
|
|
2887
2887
|
class: "tpl:mb-3.5",
|
|
2888
2888
|
path: "iconSize"
|
|
2889
2889
|
}, {
|
|
2890
|
-
default: a(() => [O(
|
|
2890
|
+
default: a(() => [O(Q, {
|
|
2891
2891
|
options: [
|
|
2892
2892
|
{
|
|
2893
2893
|
value: "small",
|
|
@@ -2907,42 +2907,42 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
2907
2907
|
}, null, 8, ["options", "model-value"])]),
|
|
2908
2908
|
_: 1
|
|
2909
2909
|
}, 8, ["label"]),
|
|
2910
|
-
O(
|
|
2910
|
+
O(J, {
|
|
2911
2911
|
label: h(o).social.spacing,
|
|
2912
2912
|
class: "tpl:mb-3.5",
|
|
2913
2913
|
path: "spacing"
|
|
2914
2914
|
}, {
|
|
2915
2915
|
default: a(() => [y("div", Gi, [y("input", {
|
|
2916
2916
|
type: "number",
|
|
2917
|
-
class: g(h(
|
|
2917
|
+
class: g(h(G)),
|
|
2918
2918
|
value: e.block.spacing,
|
|
2919
2919
|
min: "0",
|
|
2920
2920
|
max: "50",
|
|
2921
2921
|
onInput: n[3] ||= (e) => s("spacing", Number(e.target.value))
|
|
2922
|
-
}, null, 42, Ki), y("span", { class: g(h(
|
|
2922
|
+
}, null, 42, Ki), y("span", { class: g(h(W)) }, "px", 2)])]),
|
|
2923
2923
|
_: 1
|
|
2924
2924
|
}, 8, ["label"]),
|
|
2925
|
-
O(
|
|
2925
|
+
O(J, {
|
|
2926
2926
|
label: h(o).social.align,
|
|
2927
2927
|
class: "tpl:mb-3.5",
|
|
2928
2928
|
path: "align"
|
|
2929
2929
|
}, {
|
|
2930
|
-
default: a(() => [O(
|
|
2930
|
+
default: a(() => [O(Q, {
|
|
2931
2931
|
options: [
|
|
2932
2932
|
{
|
|
2933
2933
|
value: "left",
|
|
2934
2934
|
label: h(o).title.alignLeft,
|
|
2935
|
-
icon: h(
|
|
2935
|
+
icon: h(Ne)
|
|
2936
2936
|
},
|
|
2937
2937
|
{
|
|
2938
2938
|
value: "center",
|
|
2939
2939
|
label: h(o).title.alignCenter,
|
|
2940
|
-
icon: h(
|
|
2940
|
+
icon: h(De)
|
|
2941
2941
|
},
|
|
2942
2942
|
{
|
|
2943
2943
|
value: "right",
|
|
2944
2944
|
label: h(o).title.alignRight,
|
|
2945
|
-
icon: h(
|
|
2945
|
+
icon: h(Re)
|
|
2946
2946
|
}
|
|
2947
2947
|
],
|
|
2948
2948
|
"model-value": e.block.align,
|
|
@@ -2957,20 +2957,20 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
2957
2957
|
props: { block: {} },
|
|
2958
2958
|
emits: ["update"],
|
|
2959
2959
|
setup(e, { emit: t }) {
|
|
2960
|
-
let n = t, { t: r } =
|
|
2961
|
-
return (t, o) => (i(), v(
|
|
2960
|
+
let n = t, { t: r } = U();
|
|
2961
|
+
return (t, o) => (i(), v(J, {
|
|
2962
2962
|
label: h(r).spacer.height,
|
|
2963
2963
|
class: "tpl:mb-3.5",
|
|
2964
2964
|
path: "height"
|
|
2965
2965
|
}, {
|
|
2966
2966
|
default: a(() => [y("div", Ji, [y("input", {
|
|
2967
2967
|
type: "number",
|
|
2968
|
-
class: g(h(
|
|
2968
|
+
class: g(h(G)),
|
|
2969
2969
|
value: e.block.height,
|
|
2970
2970
|
min: "10",
|
|
2971
2971
|
max: "100",
|
|
2972
2972
|
onInput: o[0] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
2973
|
-
}, null, 42, Yi), y("span", { class: g(h(
|
|
2973
|
+
}, null, 42, Yi), y("span", { class: g(h(W)) }, "px", 2)]), y("input", {
|
|
2974
2974
|
type: "range",
|
|
2975
2975
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
2976
2976
|
value: e.block.height,
|
|
@@ -2989,7 +2989,7 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
2989
2989
|
},
|
|
2990
2990
|
emits: ["update"],
|
|
2991
2991
|
setup(e, { emit: t }) {
|
|
2992
|
-
let n = e, r = t, { t: o } =
|
|
2992
|
+
let n = e, r = t, { t: o } = U(), s = S(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
|
|
2993
2993
|
function l(e, t) {
|
|
2994
2994
|
r("update", { [e]: t });
|
|
2995
2995
|
}
|
|
@@ -3024,12 +3024,12 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
3024
3024
|
r("update", { rows: t });
|
|
3025
3025
|
}
|
|
3026
3026
|
return (t, n) => (i(), p(E, null, [
|
|
3027
|
-
y("div", Qi, [y("label", { class: g(h(
|
|
3027
|
+
y("div", Qi, [y("label", { class: g(h(q)) }, b(h(o).table.dimensions), 3), y("div", $i, [y("div", ea, [y("span", ta, b(h(o).table.rows), 1), y("div", na, [
|
|
3028
3028
|
y("button", {
|
|
3029
3029
|
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",
|
|
3030
3030
|
disabled: e.block.rows.length <= 1,
|
|
3031
3031
|
onClick: n[0] ||= (t) => d(e.block.rows[e.block.rows.length - 1].id)
|
|
3032
|
-
}, [O(h(
|
|
3032
|
+
}, [O(h(Ae), {
|
|
3033
3033
|
size: 12,
|
|
3034
3034
|
"stroke-width": 2
|
|
3035
3035
|
})], 8, ra),
|
|
@@ -3037,7 +3037,7 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
3037
3037
|
y("button", {
|
|
3038
3038
|
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)]",
|
|
3039
3039
|
onClick: u
|
|
3040
|
-
}, [O(h(
|
|
3040
|
+
}, [O(h(H), {
|
|
3041
3041
|
size: 12,
|
|
3042
3042
|
"stroke-width": 2
|
|
3043
3043
|
})])
|
|
@@ -3046,7 +3046,7 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
3046
3046
|
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",
|
|
3047
3047
|
disabled: s.value <= 1,
|
|
3048
3048
|
onClick: n[1] ||= (e) => m(s.value - 1)
|
|
3049
|
-
}, [O(h(
|
|
3049
|
+
}, [O(h(Ae), {
|
|
3050
3050
|
size: 12,
|
|
3051
3051
|
"stroke-width": 2
|
|
3052
3052
|
})], 8, ca),
|
|
@@ -3054,17 +3054,17 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
3054
3054
|
y("button", {
|
|
3055
3055
|
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)]",
|
|
3056
3056
|
onClick: f
|
|
3057
|
-
}, [O(h(
|
|
3057
|
+
}, [O(h(H), {
|
|
3058
3058
|
size: 12,
|
|
3059
3059
|
"stroke-width": 2
|
|
3060
3060
|
})])
|
|
3061
3061
|
])])])]),
|
|
3062
|
-
O(
|
|
3062
|
+
O(J, {
|
|
3063
3063
|
class: "tpl:mb-3.5",
|
|
3064
3064
|
path: "hasHeaderRow",
|
|
3065
3065
|
label: h(o).table.hasHeaderRow
|
|
3066
3066
|
}, {
|
|
3067
|
-
"label-actions": a(({ controlId: t }) => [O(
|
|
3067
|
+
"label-actions": a(({ controlId: t }) => [O(X, {
|
|
3068
3068
|
"control-id": t,
|
|
3069
3069
|
"hide-label": "",
|
|
3070
3070
|
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
@@ -3078,15 +3078,15 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
3078
3078
|
])]),
|
|
3079
3079
|
_: 1
|
|
3080
3080
|
}, 8, ["label"]),
|
|
3081
|
-
e.block.hasHeaderRow ? (i(), v(
|
|
3081
|
+
e.block.hasHeaderRow ? (i(), v(J, {
|
|
3082
3082
|
key: 0,
|
|
3083
3083
|
label: h(o).table.headerBackgroundColor,
|
|
3084
3084
|
class: "tpl:mb-3.5",
|
|
3085
3085
|
path: "headerBackgroundColor"
|
|
3086
3086
|
}, {
|
|
3087
|
-
default: a(() => [O(
|
|
3087
|
+
default: a(() => [O(Y, {
|
|
3088
3088
|
"model-value": e.block.headerBackgroundColor ?? "",
|
|
3089
|
-
"seed-color": h(
|
|
3089
|
+
"seed-color": h(rt),
|
|
3090
3090
|
placeholder: h(o).table.noHeaderBg,
|
|
3091
3091
|
"onUpdate:modelValue": n[3] ||= (e) => l("headerBackgroundColor", e || null)
|
|
3092
3092
|
}, null, 8, [
|
|
@@ -3096,55 +3096,55 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
3096
3096
|
])]),
|
|
3097
3097
|
_: 1
|
|
3098
3098
|
}, 8, ["label"])) : _("", !0),
|
|
3099
|
-
O(
|
|
3099
|
+
O(J, {
|
|
3100
3100
|
label: h(o).table.borderColor,
|
|
3101
3101
|
class: "tpl:mb-3.5",
|
|
3102
3102
|
path: "borderColor"
|
|
3103
3103
|
}, {
|
|
3104
|
-
default: a(() => [O(
|
|
3104
|
+
default: a(() => [O(Y, {
|
|
3105
3105
|
"model-value": e.block.borderColor,
|
|
3106
3106
|
"onUpdate:modelValue": n[4] ||= (e) => l("borderColor", e)
|
|
3107
3107
|
}, null, 8, ["model-value"])]),
|
|
3108
3108
|
_: 1
|
|
3109
3109
|
}, 8, ["label"]),
|
|
3110
|
-
O(
|
|
3110
|
+
O(J, {
|
|
3111
3111
|
label: h(o).table.borderWidth,
|
|
3112
3112
|
class: "tpl:mb-3.5",
|
|
3113
3113
|
path: "borderWidth"
|
|
3114
3114
|
}, {
|
|
3115
3115
|
default: a(() => [y("div", ua, [y("input", {
|
|
3116
3116
|
type: "number",
|
|
3117
|
-
class: g(h(
|
|
3117
|
+
class: g(h(G)),
|
|
3118
3118
|
value: e.block.borderWidth,
|
|
3119
3119
|
min: "0",
|
|
3120
3120
|
max: "10",
|
|
3121
3121
|
onInput: n[5] ||= (e) => l("borderWidth", Number(e.target.value))
|
|
3122
|
-
}, null, 42, da), y("span", { class: g(h(
|
|
3122
|
+
}, null, 42, da), y("span", { class: g(h(W)) }, "px", 2)])]),
|
|
3123
3123
|
_: 1
|
|
3124
3124
|
}, 8, ["label"]),
|
|
3125
|
-
O(
|
|
3125
|
+
O(J, {
|
|
3126
3126
|
label: h(o).table.cellPadding,
|
|
3127
3127
|
class: "tpl:mb-3.5",
|
|
3128
3128
|
path: "cellPadding"
|
|
3129
3129
|
}, {
|
|
3130
3130
|
default: a(() => [y("div", fa, [y("input", {
|
|
3131
3131
|
type: "number",
|
|
3132
|
-
class: g(h(
|
|
3132
|
+
class: g(h(G)),
|
|
3133
3133
|
value: e.block.cellPadding,
|
|
3134
3134
|
min: "0",
|
|
3135
3135
|
max: "30",
|
|
3136
3136
|
onInput: n[6] ||= (e) => l("cellPadding", Number(e.target.value))
|
|
3137
|
-
}, null, 42, pa), y("span", { class: g(h(
|
|
3137
|
+
}, null, 42, pa), y("span", { class: g(h(W)) }, "px", 2)])]),
|
|
3138
3138
|
_: 1
|
|
3139
3139
|
}, 8, ["label"]),
|
|
3140
|
-
O(
|
|
3140
|
+
O(J, {
|
|
3141
3141
|
label: h(o).table.fontFamily,
|
|
3142
3142
|
class: "tpl:mb-3.5",
|
|
3143
3143
|
path: "fontFamily"
|
|
3144
3144
|
}, {
|
|
3145
3145
|
default: a(() => [y("select", {
|
|
3146
|
-
class: g(h(
|
|
3147
|
-
value: h(
|
|
3146
|
+
class: g(h(K)),
|
|
3147
|
+
value: h(dt)(e.block.fontFamily),
|
|
3148
3148
|
onChange: n[7] ||= (e) => l("fontFamily", e.target.value || void 0)
|
|
3149
3149
|
}, [y("option", ha, b(h(o).title.inheritFont), 1), (i(!0), p(E, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
3150
3150
|
key: e.value,
|
|
@@ -3152,53 +3152,53 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
3152
3152
|
}, b(e.label), 9, ga))), 128))], 42, ma)]),
|
|
3153
3153
|
_: 1
|
|
3154
3154
|
}, 8, ["label"]),
|
|
3155
|
-
O(
|
|
3155
|
+
O(J, {
|
|
3156
3156
|
label: h(o).table.fontSize,
|
|
3157
3157
|
class: "tpl:mb-3.5",
|
|
3158
3158
|
path: "fontSize"
|
|
3159
3159
|
}, {
|
|
3160
3160
|
default: a(() => [y("div", _a, [y("input", {
|
|
3161
3161
|
type: "number",
|
|
3162
|
-
class: g(h(
|
|
3162
|
+
class: g(h(G)),
|
|
3163
3163
|
value: e.block.fontSize,
|
|
3164
3164
|
min: "10",
|
|
3165
3165
|
max: "32",
|
|
3166
3166
|
onInput: n[8] ||= (e) => l("fontSize", Number(e.target.value))
|
|
3167
|
-
}, null, 42, va), y("span", { class: g(h(
|
|
3167
|
+
}, null, 42, va), y("span", { class: g(h(W)) }, "px", 2)])]),
|
|
3168
3168
|
_: 1
|
|
3169
3169
|
}, 8, ["label"]),
|
|
3170
|
-
O(
|
|
3170
|
+
O(J, {
|
|
3171
3171
|
label: h(o).table.color,
|
|
3172
3172
|
class: "tpl:mb-3.5",
|
|
3173
3173
|
path: "color"
|
|
3174
3174
|
}, {
|
|
3175
|
-
default: a(() => [O(
|
|
3175
|
+
default: a(() => [O(Y, {
|
|
3176
3176
|
"model-value": e.block.color ?? "",
|
|
3177
3177
|
"onUpdate:modelValue": n[9] ||= (e) => l("color", e || void 0)
|
|
3178
3178
|
}, null, 8, ["model-value"])]),
|
|
3179
3179
|
_: 1
|
|
3180
3180
|
}, 8, ["label"]),
|
|
3181
|
-
O(
|
|
3181
|
+
O(J, {
|
|
3182
3182
|
label: h(o).table.textAlign,
|
|
3183
3183
|
class: "tpl:mb-3.5",
|
|
3184
3184
|
path: "textAlign"
|
|
3185
3185
|
}, {
|
|
3186
|
-
default: a(() => [O(
|
|
3186
|
+
default: a(() => [O(Q, {
|
|
3187
3187
|
options: [
|
|
3188
3188
|
{
|
|
3189
3189
|
value: "left",
|
|
3190
3190
|
label: h(o).title.alignLeft,
|
|
3191
|
-
icon: h(
|
|
3191
|
+
icon: h(Ne)
|
|
3192
3192
|
},
|
|
3193
3193
|
{
|
|
3194
3194
|
value: "center",
|
|
3195
3195
|
label: h(o).title.alignCenter,
|
|
3196
|
-
icon: h(
|
|
3196
|
+
icon: h(De)
|
|
3197
3197
|
},
|
|
3198
3198
|
{
|
|
3199
3199
|
value: "right",
|
|
3200
3200
|
label: h(o).title.alignRight,
|
|
3201
|
-
icon: h(
|
|
3201
|
+
icon: h(Re)
|
|
3202
3202
|
}
|
|
3203
3203
|
],
|
|
3204
3204
|
"model-value": e.block.textAlign,
|
|
@@ -3216,18 +3216,18 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
3216
3216
|
},
|
|
3217
3217
|
emits: ["update"],
|
|
3218
3218
|
setup(e, { emit: t }) {
|
|
3219
|
-
let n = t, { t: r } =
|
|
3219
|
+
let n = t, { t: r } = U();
|
|
3220
3220
|
function o(e, t) {
|
|
3221
3221
|
n("update", { [e]: t });
|
|
3222
3222
|
}
|
|
3223
3223
|
return (t, n) => (i(), p(E, null, [
|
|
3224
|
-
O(
|
|
3224
|
+
O(J, {
|
|
3225
3225
|
label: h(r).title.level,
|
|
3226
3226
|
class: "tpl:mb-3.5",
|
|
3227
3227
|
path: "level"
|
|
3228
3228
|
}, {
|
|
3229
3229
|
default: a(() => [y("select", {
|
|
3230
|
-
class: g(h(
|
|
3230
|
+
class: g(h(K)),
|
|
3231
3231
|
value: e.block.level,
|
|
3232
3232
|
onChange: n[0] ||= (e) => o("level", Number(e.target.value))
|
|
3233
3233
|
}, [
|
|
@@ -3238,14 +3238,14 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
3238
3238
|
], 42, ba)]),
|
|
3239
3239
|
_: 1
|
|
3240
3240
|
}, 8, ["label"]),
|
|
3241
|
-
O(
|
|
3241
|
+
O(J, {
|
|
3242
3242
|
label: h(r).title.fontFamily,
|
|
3243
3243
|
class: "tpl:mb-3.5",
|
|
3244
3244
|
path: "fontFamily"
|
|
3245
3245
|
}, {
|
|
3246
3246
|
default: a(() => [y("select", {
|
|
3247
|
-
class: g(h(
|
|
3248
|
-
value: h(
|
|
3247
|
+
class: g(h(K)),
|
|
3248
|
+
value: h(dt)(e.block.fontFamily),
|
|
3249
3249
|
onChange: n[1] ||= (e) => o("fontFamily", e.target.value || void 0)
|
|
3250
3250
|
}, [y("option", Ea, b(h(r).title.inheritFont), 1), (i(!0), p(E, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
3251
3251
|
key: e.value,
|
|
@@ -3253,38 +3253,38 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
3253
3253
|
}, b(e.label), 9, Da))), 128))], 42, Ta)]),
|
|
3254
3254
|
_: 1
|
|
3255
3255
|
}, 8, ["label"]),
|
|
3256
|
-
O(
|
|
3256
|
+
O(J, {
|
|
3257
3257
|
label: h(r).title.color,
|
|
3258
3258
|
class: "tpl:mb-3.5",
|
|
3259
3259
|
path: "color"
|
|
3260
3260
|
}, {
|
|
3261
|
-
default: a(() => [O(
|
|
3261
|
+
default: a(() => [O(Y, {
|
|
3262
3262
|
"model-value": e.block.color ?? "",
|
|
3263
3263
|
"onUpdate:modelValue": n[2] ||= (e) => o("color", e || void 0)
|
|
3264
3264
|
}, null, 8, ["model-value"])]),
|
|
3265
3265
|
_: 1
|
|
3266
3266
|
}, 8, ["label"]),
|
|
3267
|
-
O(
|
|
3267
|
+
O(J, {
|
|
3268
3268
|
label: h(r).title.align,
|
|
3269
3269
|
class: "tpl:mb-3.5",
|
|
3270
3270
|
path: "textAlign"
|
|
3271
3271
|
}, {
|
|
3272
|
-
default: a(() => [O(
|
|
3272
|
+
default: a(() => [O(Q, {
|
|
3273
3273
|
options: [
|
|
3274
3274
|
{
|
|
3275
3275
|
value: "left",
|
|
3276
3276
|
label: h(r).title.alignLeft,
|
|
3277
|
-
icon: h(
|
|
3277
|
+
icon: h(Ne)
|
|
3278
3278
|
},
|
|
3279
3279
|
{
|
|
3280
3280
|
value: "center",
|
|
3281
3281
|
label: h(r).title.alignCenter,
|
|
3282
|
-
icon: h(
|
|
3282
|
+
icon: h(De)
|
|
3283
3283
|
},
|
|
3284
3284
|
{
|
|
3285
3285
|
value: "right",
|
|
3286
3286
|
label: h(r).title.alignRight,
|
|
3287
|
-
icon: h(
|
|
3287
|
+
icon: h(Re)
|
|
3288
3288
|
}
|
|
3289
3289
|
],
|
|
3290
3290
|
"model-value": e.block.textAlign,
|
|
@@ -3309,14 +3309,14 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
3309
3309
|
props: { block: {} },
|
|
3310
3310
|
emits: ["update"],
|
|
3311
3311
|
setup(e, { emit: t }) {
|
|
3312
|
-
let n = e, r = t, { t: o } =
|
|
3312
|
+
let n = e, r = t, { t: o } = U(), s = l(Ue, null), c = l(ze, R.liquid), u = le(), d = [
|
|
3313
3313
|
300,
|
|
3314
3314
|
400,
|
|
3315
3315
|
500
|
|
3316
|
-
], f = S(() => !!s), x = S(() =>
|
|
3316
|
+
], f = S(() => !!s), x = S(() => te(n.block.url, c)), C = S(() => {
|
|
3317
3317
|
let e = n.block.width;
|
|
3318
3318
|
return e === "full" ? "full" : d.includes(e) ? String(e) : "custom";
|
|
3319
|
-
}), w = S(() => typeof n.block.height == "number" ? "custom" : "auto"), D = T(!1), { start: k } =
|
|
3319
|
+
}), w = S(() => typeof n.block.height == "number" ? "custom" : "auto"), D = T(!1), { start: k } = at(() => {
|
|
3320
3320
|
D.value = !1;
|
|
3321
3321
|
}, 1e3, { immediate: !1 });
|
|
3322
3322
|
function A(e, t) {
|
|
@@ -3344,22 +3344,22 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
3344
3344
|
u.alive && e && (A("thumbnailUrl", e.url), D.value = !0, k());
|
|
3345
3345
|
}
|
|
3346
3346
|
return (t, n) => (i(), p(E, null, [
|
|
3347
|
-
O(
|
|
3347
|
+
O(J, {
|
|
3348
3348
|
label: h(o).video.videoUrl,
|
|
3349
3349
|
class: "tpl:mb-3.5",
|
|
3350
3350
|
path: "url"
|
|
3351
3351
|
}, {
|
|
3352
|
-
default: a(() => [O(
|
|
3352
|
+
default: a(() => [O(Z, {
|
|
3353
3353
|
"model-value": e.block.url,
|
|
3354
3354
|
type: "url",
|
|
3355
3355
|
placeholder: h(o).video.videoUrlPlaceholder,
|
|
3356
3356
|
"onUpdate:modelValue": n[0] ||= (e) => A("url", e)
|
|
3357
|
-
}, null, 8, ["model-value", "placeholder"]), e.block.url ? (i(), v(
|
|
3357
|
+
}, null, 8, ["model-value", "placeholder"]), e.block.url ? (i(), v(J, {
|
|
3358
3358
|
key: 0,
|
|
3359
3359
|
path: "openInNewTab",
|
|
3360
3360
|
label: h(o).video.openInNewTab
|
|
3361
3361
|
}, {
|
|
3362
|
-
"label-actions": a(({ controlId: t }) => [O(
|
|
3362
|
+
"label-actions": a(({ controlId: t }) => [O(X, {
|
|
3363
3363
|
"control-id": t,
|
|
3364
3364
|
"hide-label": "",
|
|
3365
3365
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
@@ -3375,7 +3375,7 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
3375
3375
|
}, 8, ["label"])) : _("", !0)]),
|
|
3376
3376
|
_: 1
|
|
3377
3377
|
}, 8, ["label"]),
|
|
3378
|
-
x.value ? (i(), v(
|
|
3378
|
+
x.value ? (i(), v(J, {
|
|
3379
3379
|
key: 0,
|
|
3380
3380
|
class: "tpl:mb-3.5",
|
|
3381
3381
|
path: "placeholderUrl"
|
|
@@ -3383,7 +3383,7 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
3383
3383
|
label: a(() => [m(b(h(o).video.placeholderUrl) + " ", 1), y("span", ka, b(h(o).video.optional), 1)]),
|
|
3384
3384
|
default: a(() => [y("input", {
|
|
3385
3385
|
type: "url",
|
|
3386
|
-
class: g(h(
|
|
3386
|
+
class: g(h(K)),
|
|
3387
3387
|
value: e.block.placeholderUrl || "",
|
|
3388
3388
|
placeholder: h(o).video.placeholderUrlPlaceholder,
|
|
3389
3389
|
title: h(o).video.placeholderUrlTooltip,
|
|
@@ -3391,12 +3391,12 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
3391
3391
|
}, null, 42, Aa)]),
|
|
3392
3392
|
_: 1
|
|
3393
3393
|
})) : _("", !0),
|
|
3394
|
-
O(
|
|
3394
|
+
O(J, {
|
|
3395
3395
|
class: "tpl:mb-3.5",
|
|
3396
3396
|
path: "thumbnailUrl"
|
|
3397
3397
|
}, {
|
|
3398
3398
|
label: a(() => [m(b(h(o).video.customThumbnail) + " ", 1), y("span", ja, b(h(o).video.optional), 1)]),
|
|
3399
|
-
default: a(() => [O(
|
|
3399
|
+
default: a(() => [O(Z, {
|
|
3400
3400
|
"model-value": e.block.thumbnailUrl,
|
|
3401
3401
|
type: "url",
|
|
3402
3402
|
placeholder: h(o).video.thumbnailPlaceholder,
|
|
@@ -3415,18 +3415,18 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
3415
3415
|
"background-color": "var(--tpl-bg)"
|
|
3416
3416
|
},
|
|
3417
3417
|
onClick: F
|
|
3418
|
-
}, [O(h(
|
|
3418
|
+
}, [O(h(Oe), {
|
|
3419
3419
|
size: 14,
|
|
3420
3420
|
"stroke-width": 1.5
|
|
3421
3421
|
}), m(" " + b(h(o).image.browseMedia), 1)])) : _("", !0)]),
|
|
3422
3422
|
_: 1
|
|
3423
3423
|
}),
|
|
3424
|
-
O(
|
|
3424
|
+
O(J, {
|
|
3425
3425
|
label: h(o).video.altText,
|
|
3426
3426
|
class: "tpl:mb-3.5",
|
|
3427
3427
|
path: "alt"
|
|
3428
3428
|
}, {
|
|
3429
|
-
default: a(() => [O(
|
|
3429
|
+
default: a(() => [O(Z, {
|
|
3430
3430
|
"model-value": e.block.alt,
|
|
3431
3431
|
type: "text",
|
|
3432
3432
|
placeholder: h(o).video.altTextPlaceholder,
|
|
@@ -3434,13 +3434,13 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
3434
3434
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
3435
3435
|
_: 1
|
|
3436
3436
|
}, 8, ["label"]),
|
|
3437
|
-
O(
|
|
3437
|
+
O(J, {
|
|
3438
3438
|
label: h(o).video.width,
|
|
3439
3439
|
class: "tpl:mb-3.5",
|
|
3440
3440
|
path: "width"
|
|
3441
3441
|
}, {
|
|
3442
3442
|
default: a(() => [y("select", {
|
|
3443
|
-
class: g(h(
|
|
3443
|
+
class: g(h(K)),
|
|
3444
3444
|
"data-testid": "video-width-mode",
|
|
3445
3445
|
value: C.value,
|
|
3446
3446
|
onChange: n[5] ||= (e) => j(e.target.value)
|
|
@@ -3453,39 +3453,39 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
3453
3453
|
], 42, Ma), C.value === "custom" ? (i(), p("div", Fa, [y("input", {
|
|
3454
3454
|
type: "number",
|
|
3455
3455
|
"data-testid": "video-width-input",
|
|
3456
|
-
class: g(h(
|
|
3456
|
+
class: g(h(G)),
|
|
3457
3457
|
value: e.block.width,
|
|
3458
3458
|
min: "20",
|
|
3459
3459
|
onInput: n[6] ||= (e) => M(e.target.value)
|
|
3460
|
-
}, null, 42, Ia), y("span", { class: g(h(
|
|
3460
|
+
}, null, 42, Ia), y("span", { class: g(h(W)) }, "px", 2)])) : _("", !0)]),
|
|
3461
3461
|
_: 1
|
|
3462
3462
|
}, 8, ["label"]),
|
|
3463
|
-
O(
|
|
3463
|
+
O(J, {
|
|
3464
3464
|
label: h(o).video.height,
|
|
3465
3465
|
class: "tpl:mb-3.5",
|
|
3466
3466
|
path: "height"
|
|
3467
3467
|
}, {
|
|
3468
3468
|
default: a(() => [y("select", {
|
|
3469
|
-
class: g(h(
|
|
3469
|
+
class: g(h(K)),
|
|
3470
3470
|
"data-testid": "video-height-mode",
|
|
3471
3471
|
value: w.value,
|
|
3472
3472
|
onChange: n[7] ||= (e) => N(e.target.value)
|
|
3473
3473
|
}, [y("option", Ra, b(h(o).video.heightAuto), 1), y("option", za, b(h(o).video.heightCustom), 1)], 42, La), w.value === "custom" ? (i(), p("div", Ba, [y("input", {
|
|
3474
3474
|
type: "number",
|
|
3475
3475
|
"data-testid": "video-height-input",
|
|
3476
|
-
class: g(h(
|
|
3476
|
+
class: g(h(G)),
|
|
3477
3477
|
value: e.block.height,
|
|
3478
3478
|
min: "20",
|
|
3479
3479
|
onInput: n[8] ||= (e) => P(e.target.value)
|
|
3480
|
-
}, null, 42, Va), y("span", { class: g(h(
|
|
3480
|
+
}, null, 42, Va), y("span", { class: g(h(W)) }, "px", 2)])) : _("", !0)]),
|
|
3481
3481
|
_: 1
|
|
3482
3482
|
}, 8, ["label"]),
|
|
3483
|
-
O(
|
|
3483
|
+
O(J, {
|
|
3484
3484
|
label: h(o).title.align,
|
|
3485
3485
|
class: "tpl:mb-3.5",
|
|
3486
3486
|
path: "align"
|
|
3487
3487
|
}, {
|
|
3488
|
-
default: a(() => [O(
|
|
3488
|
+
default: a(() => [O(Q, {
|
|
3489
3489
|
options: [
|
|
3490
3490
|
{
|
|
3491
3491
|
value: "left",
|
|
@@ -3516,9 +3516,9 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
3516
3516
|
"duplicate"
|
|
3517
3517
|
],
|
|
3518
3518
|
setup(e, { emit: t }) {
|
|
3519
|
-
let r = f(() => import("./CountdownToolbar-
|
|
3519
|
+
let r = f(() => import("./CountdownToolbar-CNgsNL5-.js")), a = e, o = t, { t: s } = U(), c = ot(), u = Je(Ke, "Toolbar"), d = l(qe, []), m = S(() => a.block.type), g = S(() => P(a.block)), x = S(() => {
|
|
3520
3520
|
if (g.value) return d.find((e) => e.type === a.block.customType);
|
|
3521
|
-
}), C = S(() => g.value ? x.value?.name ?? a.block.customType :
|
|
3521
|
+
}), C = S(() => g.value ? x.value?.name ?? a.block.customType : ce(m.value, s)), w = S(() => ut(u.fonts.value, "fontFamily" in a.block ? a.block.fontFamily : void 0));
|
|
3522
3522
|
function T(e) {
|
|
3523
3523
|
c.value && o("update", e);
|
|
3524
3524
|
}
|
|
@@ -3530,11 +3530,11 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
3530
3530
|
disabled: !h(c),
|
|
3531
3531
|
inert: !h(c),
|
|
3532
3532
|
class: "tpl:contents"
|
|
3533
|
-
}, [y("div", qa, [y("div", Ja, [h(
|
|
3533
|
+
}, [y("div", qa, [y("div", Ja, [h(ct)[m.value] ? (i(), v(n(h(ct)[m.value]), {
|
|
3534
3534
|
key: 0,
|
|
3535
3535
|
size: 16,
|
|
3536
3536
|
"stroke-width": 1.5
|
|
3537
|
-
})) : g.value ? (i(), v(h(
|
|
3537
|
+
})) : g.value ? (i(), v(h(we), {
|
|
3538
3538
|
key: 1,
|
|
3539
3539
|
size: 16,
|
|
3540
3540
|
"stroke-width": 1.5
|
|
@@ -3542,14 +3542,14 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
3542
3542
|
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)]",
|
|
3543
3543
|
title: h(s).toolbar.duplicate,
|
|
3544
3544
|
onClick: a[0] ||= (e) => o("duplicate")
|
|
3545
|
-
}, [O(h(
|
|
3545
|
+
}, [O(h(xe), {
|
|
3546
3546
|
size: 14,
|
|
3547
3547
|
"stroke-width": 2
|
|
3548
3548
|
})], 8, Za), y("button", {
|
|
3549
3549
|
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)]",
|
|
3550
3550
|
title: h(s).toolbar.delete,
|
|
3551
3551
|
onClick: a[1] ||= (e) => o("delete")
|
|
3552
|
-
}, [O(h(
|
|
3552
|
+
}, [O(h(je), {
|
|
3553
3553
|
size: 14,
|
|
3554
3554
|
"stroke-width": 2
|
|
3555
3555
|
})], 8, Qa)])]), y("div", $a, [g.value ? (i(), v(Nr, {
|
|
@@ -3578,7 +3578,7 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
3578
3578
|
key: 5,
|
|
3579
3579
|
block: e.block,
|
|
3580
3580
|
onUpdate: T
|
|
3581
|
-
}, null, 8, ["block"])) : m.value === "button" ? (i(), v(
|
|
3581
|
+
}, null, 8, ["block"])) : m.value === "button" ? (i(), v(Rt, {
|
|
3582
3582
|
key: 6,
|
|
3583
3583
|
block: e.block,
|
|
3584
3584
|
"font-families": w.value,
|
|
@@ -3614,13 +3614,13 @@ var xi = { class: "tpl:mb-3.5" }, Si = ["value"], Ci = ["value"], wi = {
|
|
|
3614
3614
|
block: e.block,
|
|
3615
3615
|
"font-families": w.value,
|
|
3616
3616
|
onUpdate: T
|
|
3617
|
-
}, null, 8, ["block", "font-families"])) : _("", !0), O(
|
|
3617
|
+
}, null, 8, ["block", "font-families"])) : _("", !0), O(qn, {
|
|
3618
3618
|
block: e.block,
|
|
3619
3619
|
"is-first-section": m.value === "paragraph",
|
|
3620
3620
|
onUpdate: T
|
|
3621
3621
|
}, null, 8, ["block", "is-first-section"])])], 8, Ka)], 8, Ga));
|
|
3622
3622
|
}
|
|
3623
|
-
}), to = /* @__PURE__ */ e({ default: () => no }), no = /*#__PURE__*/
|
|
3624
|
-
export { no as default,
|
|
3623
|
+
}), to = /* @__PURE__ */ e({ default: () => no }), no = /*#__PURE__*/ V(eo, [["__scopeId", "data-v-206f038f"]]);
|
|
3624
|
+
export { no as default, gt as n, Q as r, to as t };
|
|
3625
3625
|
|
|
3626
|
-
//# sourceMappingURL=Toolbar-
|
|
3626
|
+
//# sourceMappingURL=Toolbar-BlWVQRcA.js.map
|