@templatical/editor 0.52.0 → 0.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/AiAltTextPopover-NMJqQKvD.js +106 -0
- package/dist/{AiAltTextReview-DE8t8Rud.js → AiAltTextReview-Ci4zHwRc.js} +68 -66
- package/dist/{AiChatPanel-7ftS7d40.js → AiChatPanel-DdhtfsmO.js} +223 -210
- package/dist/{AiPanels-CxGp6klr.js → AiPanels-HBx7xoJR.js} +6 -6
- package/dist/{AiRewriteMenu-DNI-5CUj.js → AiRewriteMenu-DPzSekZt.js} +78 -107
- package/dist/BlockIssueBadge-eIXZJ9M3.js +33 -0
- package/dist/BlockPreviewCanvas-DO-2TP_6.js +140 -0
- package/dist/{CloudHeaderExtras-CsgyNNV1.js → CloudHeaderExtras-XpjJjn3o.js} +4 -4
- package/dist/{CloudPanels-BDV4XQ_l.js → CloudPanels-i2kZdrdP.js} +44 -44
- package/dist/CollaborationNotices-DANsjl7c.js +65 -0
- package/dist/{CollaboratorBar-EeqqWcX6.js → CollaboratorBar-CbbAA0m1.js} +24 -24
- package/dist/CommentsPanel-CYW3LWis.js +16 -0
- package/dist/CommentsSidebar-CcF4ISMi.js +526 -0
- package/dist/{CountdownBlock-BT3ZTH1F.js → CountdownBlock-BMezkFbJ.js} +21 -21
- package/dist/CountdownToolbar-D3Lv74kU.js +258 -0
- package/dist/{IssuesPanel-BHFQ3wrP.js → IssuesPanel-BMAG9042.js} +141 -129
- package/dist/LanguageMenu-FlP_Jbup.js +403 -0
- package/dist/{LoadingTrack-DZA5AoP9.js → LoadingTrack-BG8cg9xi.js} +2 -2
- package/dist/LocaleNotices-DAnVszWu.js +46 -0
- package/dist/{LogicTagInsertButton-CSD9cfJB.js → LogicTagInsertButton-BjYs-UQX.js} +439 -430
- package/dist/{MediaEditModal-DQl5w44r.js → MediaEditModal-LnG-cF_S.js} +160 -160
- package/dist/{MediaPanels-BFWYuJot.js → MediaPanels-C2r5fiFo.js} +4 -4
- package/dist/{cdn/chunks/MergeTagInput-CFu9VXPS.js → MergeTagInput-BsnogCeY.js} +32 -34
- package/dist/{MergeTagModeToggle-DvD0ne7N.js → MergeTagModeToggle-DiufIQ-_.js} +49 -49
- package/dist/MergeTagTextarea-BweI-Xsi.js +126 -0
- package/dist/{ParagraphEditor-D-nqs82g.js → ParagraphEditor-qgBp5yIB.js} +286 -257
- package/dist/{RestoreVersionDialog-DqUPsLB9.js → RestoreVersionDialog-DdYUrFiK.js} +23 -23
- package/dist/{RichTextEditorContent-Xq9D0Zs3.js → RichTextEditorContent-C5MAzx3E.js} +54 -53
- package/dist/{SaveBlockDialog-DAPv70p4.js → SaveBlockDialog-eK6fjtTy.js} +86 -86
- package/dist/SavedBlocksBrowserModal-D2QHd2Yp.js +359 -0
- package/dist/{SavedBlocksPanels-ChbL9v9x.js → SavedBlocksPanels-Cl61f4Mf.js} +9 -9
- package/dist/{SavedBlocksPickBar-hRaiLNdu.js → SavedBlocksPickBar-CXP2dkeB.js} +15 -15
- package/dist/TemplateSettings-BKJrdZcH.js +294 -0
- package/dist/TestEmailModal-DQotJg6g.js +212 -0
- package/dist/{TestEmailPanel-COJQa2A9.js → TestEmailPanel-CwiTzJsh.js} +4 -4
- package/dist/TitleEditor-CzSvsPAn.js +202 -0
- package/dist/ToggleSwitch-R3wCCYE6.js +43 -0
- package/dist/Toolbar-Cd75ci5W.js +3711 -0
- package/dist/{TplModal-9IndEYk5.js → TplModal-ZoXu40T9.js} +17 -17
- package/dist/{VersionHistoryMenu-BG5qayvg.js → VersionHistoryMenu-BvhN-Ofk.js} +39 -39
- package/dist/{VersionHistoryPanels-hPg7Q5-f.js → VersionHistoryPanels-DPWMnYbd.js} +5 -5
- package/dist/VersionPreviewBanner-CuJnasxH.js +37 -0
- package/dist/WrapperBlock-D4fPwO0t.js +44 -0
- package/dist/{blockTypeIcons-yt7SLzub.js → blockTypeIcons-BXMxu86H.js} +27 -26
- package/dist/bundle-stats.json +8 -8
- package/dist/{cdn/chunks/ca-CD-Kt1qz.js → ca-DOuIxWRv.js} +114 -2
- package/dist/cdn/chunks/AiAltTextPopover-ByZ0FEqI.js +107 -0
- package/dist/cdn/chunks/AiAltTextPopover-ByZ0FEqI.js.map +1 -0
- package/dist/cdn/chunks/{AiAltTextReview-BafAtBoA.js → AiAltTextReview-Dtm3A2cD.js} +71 -69
- package/dist/cdn/chunks/AiAltTextReview-Dtm3A2cD.js.map +1 -0
- package/dist/cdn/chunks/AiChatPanel-DciEt27y.js +487 -0
- package/dist/cdn/chunks/AiChatPanel-DciEt27y.js.map +1 -0
- package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js → AiPanels-BV5D1itk.js} +11 -11
- package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js.map → AiPanels-BV5D1itk.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-4F6vwhJ5.js → AiRewriteMenu-D3jkh6Xb.js} +80 -80
- package/dist/cdn/chunks/AiRewriteMenu-D3jkh6Xb.js.map +1 -0
- package/dist/cdn/chunks/BlockIssueBadge-DyEgBZtR.js +34 -0
- package/dist/cdn/chunks/BlockIssueBadge-DyEgBZtR.js.map +1 -0
- package/dist/cdn/chunks/BlockPreviewCanvas-RQFilqXC.js +142 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-Ny1X_mee.js.map → BlockPreviewCanvas-RQFilqXC.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js → CloudHeaderExtras-BtqdN777.js} +4 -4
- package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js.map → CloudHeaderExtras-BtqdN777.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js → CloudPanels-BSJ-Z5Hw.js} +43 -43
- package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js.map → CloudPanels-BSJ-Z5Hw.js.map} +1 -1
- package/dist/cdn/chunks/CollaborationNotices-BS7xrlPE.js +67 -0
- package/dist/cdn/chunks/CollaborationNotices-BS7xrlPE.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js → CollaboratorBar-Bc9914Az.js} +16 -16
- package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js.map → CollaboratorBar-Bc9914Az.js.map} +1 -1
- package/dist/cdn/chunks/CommentsPanel-DbR9phAk.js +18 -0
- package/dist/cdn/chunks/{CommentsPanel-CAiwilM2.js.map → CommentsPanel-DbR9phAk.js.map} +1 -1
- package/dist/cdn/chunks/CommentsSidebar-BD4--XP2.js +496 -0
- package/dist/cdn/chunks/CommentsSidebar-BD4--XP2.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js → CountdownBlock-CjMhMhnv.js} +26 -26
- package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js.map → CountdownBlock-CjMhMhnv.js.map} +1 -1
- package/dist/cdn/chunks/CountdownToolbar-DxwYBw-d.js +260 -0
- package/dist/cdn/chunks/CountdownToolbar-DxwYBw-d.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-pr7_nuLI.js → IssuesPanel-CUmI4HMm.js} +132 -120
- package/dist/cdn/chunks/IssuesPanel-CUmI4HMm.js.map +1 -0
- package/dist/cdn/chunks/LanguageMenu-3ydCozQJ.js +359 -0
- package/dist/cdn/chunks/LanguageMenu-3ydCozQJ.js.map +1 -0
- package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js → LoadingTrack-DUYcDHOV.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js.map → LoadingTrack-DUYcDHOV.js.map} +1 -1
- package/dist/cdn/chunks/LocaleNotices-BfoH6gST.js +47 -0
- package/dist/cdn/chunks/LocaleNotices-BfoH6gST.js.map +1 -0
- package/dist/cdn/chunks/{LogicTagInsertButton-B_ldj3TO.js → LogicTagInsertButton-5Z3fFzjc.js} +465 -456
- package/dist/cdn/chunks/LogicTagInsertButton-5Z3fFzjc.js.map +1 -0
- package/dist/cdn/chunks/{MediaEditModal-CGfzcHwP.js → MediaEditModal-DDCIwr9U.js} +439 -439
- package/dist/cdn/chunks/MediaEditModal-DDCIwr9U.js.map +1 -0
- package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js → MediaPanels-Dz79oy8P.js} +5 -5
- package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js.map → MediaPanels-Dz79oy8P.js.map} +1 -1
- package/dist/cdn/chunks/MergeTagInput-CIWy-cXf.js +82 -0
- package/dist/cdn/chunks/{MergeTagInput-CFu9VXPS.js.map → MergeTagInput-CIWy-cXf.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BFpK5dxg.js → MergeTagModeToggle-BrP5GR-x.js} +50 -50
- package/dist/cdn/chunks/MergeTagModeToggle-BrP5GR-x.js.map +1 -0
- package/dist/cdn/chunks/MergeTagTextarea-D3nNDlhV.js +128 -0
- package/dist/cdn/chunks/MergeTagTextarea-D3nNDlhV.js.map +1 -0
- package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js +660 -0
- package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js → RestoreVersionDialog-Crj1DBqC.js} +18 -18
- package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js.map → RestoreVersionDialog-Crj1DBqC.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js → RichTextEditorContent-rCCqFlwJ.js} +43 -43
- package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js.map → RichTextEditorContent-rCCqFlwJ.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js → SaveBlockDialog-C34RW1aM.js} +71 -71
- package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js.map → SaveBlockDialog-C34RW1aM.js.map} +1 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-CJnwWPT-.js +356 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-B9XCjDfm.js.map → SavedBlocksBrowserModal-CJnwWPT-.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js → SavedBlocksPanels-CA2PqXIH.js} +9 -9
- package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js.map → SavedBlocksPanels-CA2PqXIH.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js → SavedBlocksPickBar-Dj3ortee.js} +16 -16
- package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js.map → SavedBlocksPickBar-Dj3ortee.js.map} +1 -1
- package/dist/cdn/chunks/TemplateSettings-sW0ZlDl1.js +266 -0
- package/dist/cdn/chunks/TemplateSettings-sW0ZlDl1.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailModal-DcwKhFnI.js → TestEmailModal-BXeCtTjU.js} +81 -78
- package/dist/cdn/chunks/TestEmailModal-BXeCtTjU.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js → TestEmailPanel-CpZcpB9D.js} +5 -5
- package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js.map → TestEmailPanel-CpZcpB9D.js.map} +1 -1
- package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.js +202 -0
- package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.js.map +1 -0
- package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js +45 -0
- package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js.map +1 -0
- package/dist/cdn/chunks/Toolbar-BJKpJ2Mg.js +3626 -0
- package/dist/cdn/chunks/Toolbar-BJKpJ2Mg.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-BDyeS69p.js → TplModal-DDDUDMYC.js} +19 -19
- package/dist/cdn/chunks/{TplModal-BDyeS69p.js.map → TplModal-DDDUDMYC.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js → VersionHistoryMenu-DSElv3Sv.js} +36 -36
- package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js.map → VersionHistoryMenu-DSElv3Sv.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js → VersionHistoryPanels-H2nuik1l.js} +6 -6
- package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js.map → VersionHistoryPanels-H2nuik1l.js.map} +1 -1
- package/dist/cdn/chunks/VersionPreviewBanner-Whwxh55w.js +39 -0
- package/dist/cdn/chunks/VersionPreviewBanner-Whwxh55w.js.map +1 -0
- package/dist/cdn/chunks/WrapperBlock-jTqsuLnS.js +46 -0
- package/dist/cdn/chunks/WrapperBlock-jTqsuLnS.js.map +1 -0
- package/dist/cdn/chunks/blockTypeIcons-DMgLcuI8.js +21 -0
- package/dist/cdn/chunks/blockTypeIcons-DMgLcuI8.js.map +1 -0
- package/dist/{ca-CD-Kt1qz.js → cdn/chunks/ca-DOuIxWRv.js} +116 -0
- package/dist/cdn/chunks/ca-DOuIxWRv.js.map +1 -0
- package/dist/cdn/chunks/composables-D0UYam2P.js +3039 -0
- package/dist/cdn/chunks/composables-D0UYam2P.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-D6niZ2Rc.js → createCloudRuntime-BdsclY8_.js} +85 -83
- package/dist/cdn/chunks/createCloudRuntime-BdsclY8_.js.map +1 -0
- package/dist/{de-CeFJ6wbM.js → cdn/chunks/de-DaOUfYBX.js} +116 -0
- package/dist/cdn/chunks/de-DaOUfYBX.js.map +1 -0
- package/dist/{dist-CEdyyDn7.js → cdn/chunks/dist-BzXULHvI.js} +63 -61
- package/dist/cdn/chunks/{dist-C2epoAwW.js.map → dist-BzXULHvI.js.map} +1 -1
- package/dist/{dist-BA-jTQgw.js → cdn/chunks/dist-DqGgijFI.js} +108 -109
- package/dist/cdn/chunks/{dist-CONcGNwy.js.map → dist-DqGgijFI.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-B8hTTYFO.js → draggable-DepKdldn.js} +1384 -1376
- package/dist/cdn/chunks/draggable-DepKdldn.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js → editor-modal-CPbgthOv.js} +986 -986
- package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js.map → editor-modal-CPbgthOv.js.map} +1 -1
- package/dist/{en-D14i5nFh.js → cdn/chunks/en-C0pHHMiR.js} +116 -0
- package/dist/cdn/chunks/en-C0pHHMiR.js.map +1 -0
- package/dist/cdn/chunks/en-IYVryJRl.js +1 -0
- package/dist/{es-zDacbMhs.js → cdn/chunks/es-CxyEKr6n.js} +116 -0
- package/dist/cdn/chunks/es-CxyEKr6n.js.map +1 -0
- package/dist/cdn/chunks/{extensions-ClDhn88e.js → extensions-Uh9vuFfK.js} +57 -57
- package/dist/cdn/chunks/{extensions-ClDhn88e.js.map → extensions-Uh9vuFfK.js.map} +1 -1
- package/dist/{fr-CSgYtjOd.js → cdn/chunks/fr-CYbamiI6.js} +116 -0
- package/dist/cdn/chunks/fr-CYbamiI6.js.map +1 -0
- package/dist/cdn/chunks/{icons-HCBP93Ch.js → icons-CSSMtbGK.js} +187 -144
- package/dist/cdn/chunks/icons-CSSMtbGK.js.map +1 -0
- package/dist/{ja-B7H3ID8O.js → cdn/chunks/ja-DfaIAoGI.js} +116 -0
- package/dist/cdn/chunks/ja-DfaIAoGI.js.map +1 -0
- package/dist/cdn/chunks/keys-CoQtCqNv.js +11 -0
- package/dist/cdn/chunks/keys-CoQtCqNv.js.map +1 -0
- package/dist/cdn/chunks/languageName-DEEOhDWI.js +12 -0
- package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +1 -0
- package/dist/cdn/chunks/{liquid.browser-DkLBNrft.js → liquid.browser-rubac0VA.js} +782 -746
- package/dist/cdn/chunks/liquid.browser-rubac0VA.js.map +1 -0
- package/dist/{nl-176ySmc5.js → cdn/chunks/nl-DkrB-VKZ.js} +116 -0
- package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +1 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-oGhwVscw.js +290 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-oGhwVscw.js.map +1 -0
- package/dist/cdn/chunks/noticeTones-D7BPu-Le.js +16 -0
- package/dist/cdn/chunks/noticeTones-D7BPu-Le.js.map +1 -0
- package/dist/cdn/chunks/plural-CyxrJXL1.js +17 -0
- package/dist/cdn/chunks/plural-CyxrJXL1.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js → preRenderCustomBlocks-C8k7tw98.js} +5 -5
- package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js.map → preRenderCustomBlocks-C8k7tw98.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +115 -1
- package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +1 -0
- package/dist/cdn/chunks/sanitizeHtml-DYklmvgX.js +61 -0
- package/dist/cdn/chunks/sanitizeHtml-DYklmvgX.js.map +1 -0
- package/dist/cdn/chunks/socialIcons-BAiuHyJs.js +2638 -0
- package/dist/cdn/chunks/socialIcons-BAiuHyJs.js.map +1 -0
- package/dist/cdn/chunks/src-CACM3o--.js +2606 -0
- package/dist/cdn/chunks/src-CACM3o--.js.map +1 -0
- package/dist/cdn/chunks/{src-CUH_EI7k.js → src-Ddpm4HsS.js} +225 -259
- package/dist/cdn/chunks/src-Ddpm4HsS.js.map +1 -0
- package/dist/cdn/chunks/{src-BKpAis_q.js → src-DheBmnvF.js} +635 -478
- package/dist/cdn/chunks/src-DheBmnvF.js.map +1 -0
- package/dist/{styleConstants-B8xVRiwX.js → cdn/chunks/styleConstants-CgiNKdnc.js} +7 -5
- package/dist/cdn/chunks/styleConstants-CgiNKdnc.js.map +1 -0
- package/dist/cdn/chunks/templateSettingsFields-cjlP-jdw.js.map +1 -1
- package/dist/cdn/chunks/{tiptap-ChSZybTi.js → tiptap-Dipw_zOQ.js} +48 -48
- package/dist/cdn/chunks/{tiptap-ChSZybTi.js.map → tiptap-Dipw_zOQ.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js → useCloudI18n-Cc5NZqiI.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js.map → useCloudI18n-Cc5NZqiI.js.map} +1 -1
- package/dist/cdn/chunks/useEditorRoot-D_LuZ_hE.js +9 -0
- package/dist/cdn/chunks/{useEditorRoot-BT3c9CXj.js.map → useEditorRoot-D_LuZ_hE.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-11iqzC6m.js → useI18n-BnJYydPv.js} +3 -3
- package/dist/cdn/chunks/{useI18n-11iqzC6m.js.map → useI18n-BnJYydPv.js.map} +1 -1
- package/dist/cdn/chunks/useLocalizedDisplay-yXbRKNrs.js +33 -0
- package/dist/cdn/chunks/useLocalizedDisplay-yXbRKNrs.js.map +1 -0
- package/dist/cdn/chunks/{useLogicTag-vy5KGg5D.js → useLogicTag-B7RpqVFQ.js} +5 -5
- package/dist/cdn/chunks/{useLogicTag-vy5KGg5D.js.map → useLogicTag-B7RpqVFQ.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-BFBBjnwh.js → useMergeTag-C-32ETjj.js} +6 -6
- package/dist/cdn/chunks/{useMergeTag-BFBBjnwh.js.map → useMergeTag-C-32ETjj.js.map} +1 -1
- package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js +78 -0
- package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js.map +1 -0
- package/dist/cdn/chunks/{useScrollToBlock-C0dawxGr.js → useScrollToBlock-Ct1AwLD-.js} +5 -5
- package/dist/cdn/chunks/useScrollToBlock-Ct1AwLD-.js.map +1 -0
- package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js → withCurrentFont-D33ZXoWp.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js.map → withCurrentFont-D33ZXoWp.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +2503 -1809
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-N3x4z_rH.js → check-ChQ0l8EQ.js} +1 -1
- package/dist/{chevron-down-gXu9qNwO.js → chevron-down-Bh6cp6PI.js} +1 -1
- package/dist/{chevron-right-rL0ayGk5.js → chevron-right-LUgdqdoW.js} +1 -1
- package/dist/{chevron-up-0ugh8HnW.js → chevron-up-XsDeJxQN.js} +1 -1
- package/dist/{circle-alert-B9Ls75B5.js → circle-alert-lODfDsrj.js} +1 -1
- package/dist/{clock-BqHBaCLm.js → clock-DrqFEZkT.js} +1 -1
- package/dist/composables-BOP3ERRP.js +4517 -0
- package/dist/{createCloudRuntime-B5VIdnwz.js → createCloudRuntime-DGV5a5Af.js} +47 -45
- package/dist/{createLucideIcon-BV7Gwz_Z.js → createLucideIcon-Dw5e5gVE.js} +16 -16
- package/dist/{cdn/chunks/de-CeFJ6wbM.js → de-DaOUfYBX.js} +114 -2
- package/dist/{cdn/chunks/dist-CONcGNwy.js → dist-0alKVRc_.js} +100 -99
- package/dist/{dist-Cy8I5scI.js → dist-54VCNoC0.js} +2 -2
- package/dist/dist-6DU0me3E.js +4 -0
- package/dist/{dist-p3wymUDt.js → dist-B8dY8drK.js} +2 -2
- package/dist/{dist-Dd5MU2Ev.js → dist-B9a7iVye.js} +2 -2
- package/dist/{dist-V7W1UhVr.js → dist-BWflWcpW.js} +2 -2
- package/dist/{dist-D6fZec6r.js → dist-C3hu_C3w.js} +2 -2
- package/dist/{cdn/chunks/dist-C2epoAwW.js → dist-CX7skkvG.js} +29 -31
- package/dist/dist-CcOn7WCo.js +4 -0
- package/dist/dist-Cdkm20M6.js +2542 -0
- package/dist/{dist-BS5uKktL.js → dist-ChOb5XHW.js} +2 -2
- package/dist/{dist-BF5zEHop.js → dist-DZ3X-uB8.js} +2 -2
- package/dist/{dist-CWSG7Kj0.js → dist-D_XrUEET.js} +5 -5
- package/dist/{dist-txQLT2sF.js → dist-TAv500j6.js} +2 -2
- package/dist/{dist-DDN7yR-w.js → dist-fqSers8_.js} +131 -131
- package/dist/{editor-modal-Du9VI9q4.js → editor-modal-B_2EAOjN.js} +907 -906
- package/dist/{cdn/chunks/en-D14i5nFh.js → en-C0pHHMiR.js} +114 -2
- package/dist/en-DTtwco2Q.js +1 -0
- package/dist/{cdn/chunks/es-zDacbMhs.js → es-CxyEKr6n.js} +114 -2
- package/dist/{extensions-FRYhx7qa.js → extensions-DOLZkLzV.js} +173 -173
- package/dist/{eye-BKj9Tfnc.js → eye-DChfk0gi.js} +1 -1
- package/dist/{cdn/chunks/fr-CSgYtjOd.js → fr-CYbamiI6.js} +114 -2
- package/dist/{image-DNdvdTla.js → image--Hj2by1G.js} +1 -1
- package/dist/index.d.ts +182 -14
- package/dist/{info-Bx-kBkbH.js → info-BbXgy82f.js} +1 -1
- package/dist/{cdn/chunks/ja-B7H3ID8O.js → ja-DfaIAoGI.js} +114 -2
- package/dist/keys-BCqskl51.js +9 -0
- package/dist/languageName-DEEOhDWI.js +10 -0
- package/dist/{link-D8-rYdIQ.js → link-C2_8yJno.js} +1 -1
- package/dist/{liquid.browser-D1RxawkY.js → liquid.browser-DUXEekoN.js} +781 -745
- package/dist/{list-BneisA27.js → list-DLGs2n0V.js} +1 -1
- package/dist/{loader-circle-DBEXphyx.js → loader-circle-BbDItE_O.js} +1 -1
- package/dist/{message-circle-Bg4xInCM.js → message-circle-NAModq0p.js} +1 -1
- package/dist/{cdn/chunks/nl-176ySmc5.js → nl-DkrB-VKZ.js} +114 -2
- package/dist/normalizeMergeTagMarkup-CUCo7B5X.js +288 -0
- package/dist/noticeTones-D7BPu-Le.js +14 -0
- package/dist/{package-B40Vkfsp.js → package-BuzsfRyH.js} +1 -1
- package/dist/{pencil-CYdAHTds.js → pencil-BTUUECH4.js} +1 -1
- package/dist/plural-CyxrJXL1.js +15 -0
- package/dist/plus-Dm7DN65T.js +13 -0
- package/dist/{preRenderCustomBlocks-AbZArwkR.js → preRenderCustomBlocks-Bs3N9no-.js} +4 -4
- package/dist/{pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +114 -0
- package/dist/{refresh-cw-Bb1FWrU0.js → refresh-cw-xMURqGWi.js} +2 -12
- package/dist/rotate-ccw-DqVcEIn5.js +13 -0
- package/dist/{runtime-dom.esm-bundler-CLGymEyk.js → runtime-dom.esm-bundler-DlHp8xgy.js} +167 -167
- package/dist/sanitizeHtml-mKgNUdME.js +962 -0
- package/dist/{search-BZEo08gi.js → search-Cfr3W44N.js} +1 -1
- package/dist/{send-DHtrnXQs.js → send-CH1SrvyB.js} +1 -1
- package/dist/{smartphone-dlN3vpA3.js → smartphone-pAkvzjdI.js} +1 -1
- package/dist/socialIcons-Dqr4DJOz.js +2705 -0
- package/dist/{sparkles-NOttoDnJ.js → sparkles-CRO0cCnp.js} +1 -1
- package/dist/{square-B1CJgdt2.js → square-CaQWMntx.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{cdn/chunks/styleConstants-B8xVRiwX.js → styleConstants-CgiNKdnc.js} +5 -7
- package/dist/templatical-editor.js +2294 -1608
- package/dist/{text-align-start-zpoXmb-Z.js → text-align-start-BQ39AaRK.js} +1 -1
- package/dist/{trash-CGbk4Sgt.js → trash-BL5gEFHN.js} +1 -1
- package/dist/{triangle-alert-CKLMyGVp.js → triangle-alert-BYbKu7zZ.js} +1 -1
- package/dist/{upload-DQoackAn.js → upload-BhmL4Vqx.js} +1 -1
- package/dist/{useCloudI18n-DcLtxOQZ.js → useCloudI18n-Dh2iydo1.js} +4 -4
- package/dist/useEditorRoot-DY3mgcHm.js +7 -0
- package/dist/{useI18n-CeTm777E.js → useI18n-CgtvtF4C.js} +4 -4
- package/dist/useLocalizedDisplay-DNNwDRxL.js +31 -0
- package/dist/{useLogicTag-DFDYJeMN.js → useLogicTag-BXXXQQmi.js} +4 -4
- package/dist/{useMergeTag-B46vACAG.js → useMergeTag-C9Okr87y.js} +5 -5
- package/dist/usePopoverPosition-VDQjyX_A.js +76 -0
- package/dist/{useScrollToBlock-C-NzvjeO.js → useScrollToBlock-C0Kapxdh.js} +5 -5
- package/dist/{vue.runtime.esm-bundler-CrlI8j5R.js → vue.runtime.esm-bundler-BJXc_Mri.js} +1247 -1239
- package/dist/withCurrentFont-DJiQqZzL.js +18 -0
- package/dist/{x-zcrnmcmU.js → x-B7NZYzhx.js} +1 -1
- package/package.json +23 -23
- package/dist/AiAltTextPopover-Cm11CsKH.js +0 -105
- package/dist/BlockIssueBadge-6Ri2FfX-.js +0 -33
- package/dist/BlockPreviewCanvas-Df9iz7sK.js +0 -140
- package/dist/CollaborationNotices-JQ3vQoqO.js +0 -75
- package/dist/CommentsPanel-BuftXc0U.js +0 -16
- package/dist/CommentsSidebar-Co3x4uH0.js +0 -499
- package/dist/CountdownToolbar-CrL4WKy9.js +0 -197
- package/dist/MergeTagInput-DE7kWwXx.js +0 -80
- package/dist/MergeTagTextarea-DVPQkiYY.js +0 -69
- package/dist/SavedBlocksBrowserModal-SRtN5h9q.js +0 -359
- package/dist/TemplateSettings-D0XcH32O.js +0 -236
- package/dist/TestEmailModal-Cb5t0yB2.js +0 -209
- package/dist/TitleEditor-BYk_9SpQ.js +0 -198
- package/dist/ToggleSwitch-poGWbduy.js +0 -36
- package/dist/Toolbar-Dku_pZni.js +0 -3145
- package/dist/VersionPreviewBanner-CSs7zum_.js +0 -37
- package/dist/WrapperBlock-DwjK_IdJ.js +0 -44
- package/dist/cdn/chunks/AiAltTextPopover-DjMoJCgU.js +0 -106
- package/dist/cdn/chunks/AiAltTextPopover-DjMoJCgU.js.map +0 -1
- package/dist/cdn/chunks/AiAltTextReview-BafAtBoA.js.map +0 -1
- package/dist/cdn/chunks/AiChatPanel-DXeZgc7D.js +0 -474
- package/dist/cdn/chunks/AiChatPanel-DXeZgc7D.js.map +0 -1
- package/dist/cdn/chunks/AiRewriteMenu-4F6vwhJ5.js.map +0 -1
- package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js +0 -34
- package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js.map +0 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-Ny1X_mee.js +0 -142
- package/dist/cdn/chunks/CollaborationNotices-Hf8r08Sw.js +0 -77
- package/dist/cdn/chunks/CollaborationNotices-Hf8r08Sw.js.map +0 -1
- package/dist/cdn/chunks/CommentsPanel-CAiwilM2.js +0 -18
- package/dist/cdn/chunks/CommentsSidebar-Dj8sDiLN.js +0 -469
- package/dist/cdn/chunks/CommentsSidebar-Dj8sDiLN.js.map +0 -1
- package/dist/cdn/chunks/CountdownToolbar-CguFJdqn.js +0 -199
- package/dist/cdn/chunks/CountdownToolbar-CguFJdqn.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-pr7_nuLI.js.map +0 -1
- package/dist/cdn/chunks/LogicTagInsertButton-B_ldj3TO.js.map +0 -1
- package/dist/cdn/chunks/MediaEditModal-CGfzcHwP.js.map +0 -1
- package/dist/cdn/chunks/MergeTagModeToggle-BFpK5dxg.js.map +0 -1
- package/dist/cdn/chunks/MergeTagTextarea-Zo0mYWbf.js +0 -71
- package/dist/cdn/chunks/MergeTagTextarea-Zo0mYWbf.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-DsPLVAgm.js +0 -631
- package/dist/cdn/chunks/ParagraphEditor-DsPLVAgm.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-B9XCjDfm.js +0 -356
- package/dist/cdn/chunks/TemplateSettings-jWpmuWDR.js +0 -208
- package/dist/cdn/chunks/TemplateSettings-jWpmuWDR.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-DcwKhFnI.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-R2lQw6WA.js +0 -198
- package/dist/cdn/chunks/TitleEditor-R2lQw6WA.js.map +0 -1
- package/dist/cdn/chunks/ToggleSwitch-BDMugNES.js +0 -38
- package/dist/cdn/chunks/ToggleSwitch-BDMugNES.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-CnvfW72e.js +0 -3061
- package/dist/cdn/chunks/Toolbar-CnvfW72e.js.map +0 -1
- package/dist/cdn/chunks/VersionPreviewBanner-CZ--HOoa.js +0 -39
- package/dist/cdn/chunks/VersionPreviewBanner-CZ--HOoa.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-D3obNGab.js +0 -46
- package/dist/cdn/chunks/WrapperBlock-D3obNGab.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js +0 -21
- package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js.map +0 -1
- package/dist/cdn/chunks/ca-CD-Kt1qz.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-D6niZ2Rc.js.map +0 -1
- package/dist/cdn/chunks/de-CeFJ6wbM.js.map +0 -1
- package/dist/cdn/chunks/draggable-B8hTTYFO.js.map +0 -1
- package/dist/cdn/chunks/en-CKAXAo3Z.js +0 -1
- package/dist/cdn/chunks/en-D14i5nFh.js.map +0 -1
- package/dist/cdn/chunks/es-zDacbMhs.js.map +0 -1
- package/dist/cdn/chunks/fr-CSgYtjOd.js.map +0 -1
- package/dist/cdn/chunks/icons-HCBP93Ch.js.map +0 -1
- package/dist/cdn/chunks/ja-B7H3ID8O.js.map +0 -1
- package/dist/cdn/chunks/keys-BF9gazbd.js +0 -11
- package/dist/cdn/chunks/keys-BF9gazbd.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-DkLBNrft.js.map +0 -1
- package/dist/cdn/chunks/nl-176ySmc5.js.map +0 -1
- package/dist/cdn/chunks/normalizeMergeTagMarkup-DpHCSESZ.js +0 -198
- package/dist/cdn/chunks/normalizeMergeTagMarkup-DpHCSESZ.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-dDlTwX18.js.map +0 -1
- package/dist/cdn/chunks/sanitizeHtml-B2h15u0_.js +0 -72
- package/dist/cdn/chunks/sanitizeHtml-B2h15u0_.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-rJoqO1TJ.js +0 -2008
- package/dist/cdn/chunks/socialIcons-rJoqO1TJ.js.map +0 -1
- package/dist/cdn/chunks/src-BKpAis_q.js.map +0 -1
- package/dist/cdn/chunks/src-C9DTvn1H.js +0 -1423
- package/dist/cdn/chunks/src-C9DTvn1H.js.map +0 -1
- package/dist/cdn/chunks/src-CUH_EI7k.js.map +0 -1
- package/dist/cdn/chunks/styleConstants-B8xVRiwX.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-CjaEV_01.js +0 -2534
- package/dist/cdn/chunks/useEditorCore-CjaEV_01.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-BT3c9CXj.js +0 -9
- package/dist/cdn/chunks/usePopoverPosition-AnVIwiVv.js +0 -70
- package/dist/cdn/chunks/usePopoverPosition-AnVIwiVv.js.map +0 -1
- package/dist/cdn/chunks/useScrollToBlock-C0dawxGr.js.map +0 -1
- package/dist/dist-CzrLYq2s.js +0 -1363
- package/dist/dist-DyFArF_G.js +0 -4
- package/dist/dist-pA3ooG6N.js +0 -4
- package/dist/en-CyEE7FPY.js +0 -1
- package/dist/keys-DBjrQkYH.js +0 -9
- package/dist/normalizeMergeTagMarkup-IH8COHzd.js +0 -196
- package/dist/sanitizeHtml-CnOA1efV.js +0 -942
- package/dist/socialIcons-B_d52_eS.js +0 -2075
- package/dist/useEditorCore-DG9UvWUm.js +0 -4011
- package/dist/useEditorRoot-BKr6nNkC.js +0 -7
- package/dist/usePopoverPosition-C42kD7zt.js +0 -68
- package/dist/withCurrentFont-v_a4Oso8.js +0 -18
|
@@ -1,3061 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./rolldown-runtime-QGRDbDUS.js";
|
|
2
|
-
import { $ as t, C as n, D as r, I as i, L as a, P as o, S as s, U as c, V as l, W as u, X as d, Z as f, _ as p, b as m, dt as h, g, h as _, lt as v, m as y, o as b, ot as x, p as S, s as C, u as w, ut as T, x as E, z as D } from "./draggable-B8hTTYFO.js";
|
|
3
|
-
import { Et as O, Ft as k, Ht as A, It as j, Jt as M, Lt as N, Pt as P, Rt as ee, Vt as F, Wt as te, Yt as ne, Z as I, j as re, n as ie, ot as ae, r as L } from "./src-C9DTvn1H.js";
|
|
4
|
-
import { N as oe, _ as se, c as ce, d as le, f as ue, g as de, h as fe, i as pe, l as me, m as he, o as ge, p as _e, r as R, u as ve, w as ye, y as z } from "./socialIcons-rJoqO1TJ.js";
|
|
5
|
-
import { _ as be } from "./dist-C2epoAwW.js";
|
|
6
|
-
import { $ as xe, C as Se, L as Ce, P as we, W as Te, d as Ee, g as De, h as Oe, n as ke, p as Ae, v as je, x as Me } from "./keys-BF9gazbd.js";
|
|
7
|
-
import { t as B } from "./useI18n-11iqzC6m.js";
|
|
8
|
-
import { o as Ne } from "./usePopoverPosition-AnVIwiVv.js";
|
|
9
|
-
import { $ as Pe, At as Fe, H as V, Lt as Ie, O as Le, Ot as Re, Pt as ze, R as Be, _ as Ve, c as He, et as Ue, f as We, h as Ge, ht as Ke, it as qe, lt as Je, mt as Ye, rt as Xe, t as Ze, v as Qe } from "./icons-HCBP93Ch.js";
|
|
10
|
-
import { t as $e } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
11
|
-
import { _ as et, b as tt, c as nt, g as H, h as U, m as W, p as G, r as rt, v as it } from "./styleConstants-B8xVRiwX.js";
|
|
12
|
-
import { t as at } from "./blockTypeIcons-DFf7AyqI.js";
|
|
13
|
-
import { c as K } from "./LogicTagInsertButton-B_ldj3TO.js";
|
|
14
|
-
import { t as ot } from "./MergeTagTextarea-Zo0mYWbf.js";
|
|
15
|
-
import { t as q } from "./ToggleSwitch-BDMugNES.js";
|
|
16
|
-
import { n as st, t as ct } from "./withCurrentFont-C3CquBQN.js";
|
|
17
|
-
import { t as J } from "./MergeTagInput-CFu9VXPS.js";
|
|
18
|
-
// src/components/SlidingPillSelect.vue?vue&type=script&setup=true&lang.ts
|
|
19
|
-
var lt = [
|
|
20
|
-
"aria-checked",
|
|
21
|
-
"aria-label",
|
|
22
|
-
"disabled",
|
|
23
|
-
"aria-disabled",
|
|
24
|
-
"title",
|
|
25
|
-
"onClick"
|
|
26
|
-
], ut = { key: 1 }, Y = /* @__PURE__ */ n({
|
|
27
|
-
__name: "SlidingPillSelect",
|
|
28
|
-
props: {
|
|
29
|
-
options: {},
|
|
30
|
-
modelValue: {}
|
|
31
|
-
},
|
|
32
|
-
emits: ["update:modelValue"],
|
|
33
|
-
setup(e, { emit: t }) {
|
|
34
|
-
let n = e, r = t, a = S(() => n.options.findIndex((e) => e.value === n.modelValue)), s = S(() => `translateX(${Math.max(a.value, 0) * 100}%)`);
|
|
35
|
-
return (t, n) => (o(), p("div", {
|
|
36
|
-
role: "radiogroup",
|
|
37
|
-
class: "tpl:relative tpl:grid tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1",
|
|
38
|
-
style: T({
|
|
39
|
-
gridTemplateColumns: `repeat(${e.options.length}, 1fr)`,
|
|
40
|
-
backgroundColor: "var(--tpl-bg-hover)"
|
|
41
|
-
})
|
|
42
|
-
}, [a.value >= 0 ? (o(), p("div", {
|
|
43
|
-
key: 0,
|
|
44
|
-
class: "tpl:absolute tpl:inset-y-1 tpl:rounded-[var(--tpl-radius-sm)]",
|
|
45
|
-
style: T({
|
|
46
|
-
left: "4px",
|
|
47
|
-
width: `calc((100% - 8px) / ${e.options.length})`,
|
|
48
|
-
transform: s.value,
|
|
49
|
-
backgroundColor: "var(--tpl-bg)",
|
|
50
|
-
boxShadow: "var(--tpl-shadow)",
|
|
51
|
-
transition: "transform 120ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
52
|
-
})
|
|
53
|
-
}, null, 4)) : g("", !0), (o(!0), p(w, null, i(e.options, (t) => (o(), p("button", {
|
|
54
|
-
key: t.value,
|
|
55
|
-
role: "radio",
|
|
56
|
-
"aria-checked": e.modelValue === t.value,
|
|
57
|
-
"aria-label": t.label,
|
|
58
|
-
disabled: t.disabled,
|
|
59
|
-
"aria-disabled": t.disabled ? "true" : void 0,
|
|
60
|
-
class: "tpl:relative tpl:z-10 tpl:flex tpl:cursor-pointer tpl:disabled:cursor-not-allowed tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:py-[5px] tpl:text-xs tpl:font-medium",
|
|
61
|
-
style: T({
|
|
62
|
-
color: t.disabled ? "var(--tpl-text-dim)" : e.modelValue === t.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
63
|
-
transition: "color 120ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
64
|
-
}),
|
|
65
|
-
title: t.label,
|
|
66
|
-
onClick: (e) => t.disabled || r("update:modelValue", t.value)
|
|
67
|
-
}, [t.icon ? (o(), _(D(t.icon), {
|
|
68
|
-
key: 0,
|
|
69
|
-
size: 14,
|
|
70
|
-
"stroke-width": 2
|
|
71
|
-
})) : (o(), p("span", ut, h(t.label), 1))], 12, lt))), 128))], 4));
|
|
72
|
-
}
|
|
73
|
-
}), dt = { class: "tpl:flex tpl:items-stretch" }, ft = [
|
|
74
|
-
"data-testid",
|
|
75
|
-
"value",
|
|
76
|
-
"min",
|
|
77
|
-
"max"
|
|
78
|
-
], X = /* @__PURE__ */ n({
|
|
79
|
-
__name: "NumberWithSuffix",
|
|
80
|
-
props: {
|
|
81
|
-
modelValue: {},
|
|
82
|
-
min: {},
|
|
83
|
-
max: {},
|
|
84
|
-
suffix: {},
|
|
85
|
-
testid: {}
|
|
86
|
-
},
|
|
87
|
-
emits: ["update:modelValue"],
|
|
88
|
-
setup(e, { emit: t }) {
|
|
89
|
-
let n = t;
|
|
90
|
-
function r(e) {
|
|
91
|
-
let t = e.target;
|
|
92
|
-
t.validity?.badInput || n("update:modelValue", Number(t.value));
|
|
93
|
-
}
|
|
94
|
-
return (t, n) => (o(), p("div", dt, [y("input", {
|
|
95
|
-
type: "number",
|
|
96
|
-
"data-testid": e.testid,
|
|
97
|
-
class: v(x(W)),
|
|
98
|
-
value: e.modelValue,
|
|
99
|
-
min: e.min,
|
|
100
|
-
max: e.max,
|
|
101
|
-
onInput: r
|
|
102
|
-
}, null, 42, ft), y("span", { class: v(x(U)) }, h(e.suffix), 3)]));
|
|
103
|
-
}
|
|
104
|
-
}), pt = [
|
|
105
|
-
"aria-pressed",
|
|
106
|
-
"aria-label",
|
|
107
|
-
"title",
|
|
108
|
-
"data-testid"
|
|
109
|
-
], mt = /* @__PURE__ */ n({
|
|
110
|
-
__name: "LinkToggle",
|
|
111
|
-
props: {
|
|
112
|
-
linked: { type: Boolean },
|
|
113
|
-
linkLabel: {},
|
|
114
|
-
unlinkLabel: {},
|
|
115
|
-
testid: {}
|
|
116
|
-
},
|
|
117
|
-
emits: ["toggle"],
|
|
118
|
-
setup(e, { emit: t }) {
|
|
119
|
-
let n = t;
|
|
120
|
-
return (t, r) => (o(), p("button", {
|
|
121
|
-
type: "button",
|
|
122
|
-
class: v(["tpl:flex tpl:h-7 tpl:w-7 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)]", e.linked ? "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)]"]),
|
|
123
|
-
"aria-pressed": e.linked ? "true" : "false",
|
|
124
|
-
"aria-label": e.linked ? e.unlinkLabel : e.linkLabel,
|
|
125
|
-
title: e.linked ? e.unlinkLabel : e.linkLabel,
|
|
126
|
-
"data-testid": e.testid,
|
|
127
|
-
onClick: r[0] ||= (e) => n("toggle")
|
|
128
|
-
}, [e.linked ? (o(), _(x(Je), {
|
|
129
|
-
key: 0,
|
|
130
|
-
size: 14,
|
|
131
|
-
"stroke-width": 2
|
|
132
|
-
})) : (o(), _(x(He), {
|
|
133
|
-
key: 1,
|
|
134
|
-
size: 14,
|
|
135
|
-
"stroke-width": 2
|
|
136
|
-
}))], 10, pt));
|
|
137
|
-
}
|
|
138
|
-
}), ht = { class: "tpl:mb-3.5" }, gt = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, _t = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, vt = {
|
|
139
|
-
key: 0,
|
|
140
|
-
class: "tpl:mb-3.5"
|
|
141
|
-
}, yt = { class: "tpl:mb-3.5" }, bt = { class: "tpl:mb-3.5" }, xt = /* @__PURE__ */ n({
|
|
142
|
-
__name: "BorderControl",
|
|
143
|
-
props: {
|
|
144
|
-
modelValue: {},
|
|
145
|
-
testidPrefix: {}
|
|
146
|
-
},
|
|
147
|
-
emits: ["update:modelValue"],
|
|
148
|
-
setup(e, { emit: n }) {
|
|
149
|
-
let r = e, i = n, { t: a } = B(), s = {
|
|
150
|
-
width: 0,
|
|
151
|
-
style: "solid",
|
|
152
|
-
color: "#000000"
|
|
153
|
-
};
|
|
154
|
-
function c(e, t) {
|
|
155
|
-
return e.width === t.width && e.style === t.style && e.color === t.color;
|
|
156
|
-
}
|
|
157
|
-
let u = S(() => {
|
|
158
|
-
let e = r.modelValue;
|
|
159
|
-
return !e || A.every((t) => c(e[t], e.top));
|
|
160
|
-
}), d = t(u.value);
|
|
161
|
-
l(u, (e) => {
|
|
162
|
-
!e && d.value && (d.value = !1);
|
|
163
|
-
});
|
|
164
|
-
let f = t("top"), m = S(() => r.modelValue?.[d.value ? "top" : f.value] ?? s), _ = (e) => !!e && e.width > 0;
|
|
165
|
-
function b(e) {
|
|
166
|
-
if (d.value) {
|
|
167
|
-
i("update:modelValue", _(e) ? ne(e) : void 0);
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
let t = {
|
|
171
|
-
...r.modelValue ?? ne(s),
|
|
172
|
-
[f.value]: e
|
|
173
|
-
}, n = A.some((e) => _(t[e]));
|
|
174
|
-
i("update:modelValue", n ? t : void 0);
|
|
175
|
-
}
|
|
176
|
-
function C(e) {
|
|
177
|
-
b({
|
|
178
|
-
...m.value,
|
|
179
|
-
width: e > 0 ? e : 0
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
function T(e) {
|
|
183
|
-
b({
|
|
184
|
-
...m.value,
|
|
185
|
-
...e
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
function D() {
|
|
189
|
-
if (d.value) {
|
|
190
|
-
d.value = !1;
|
|
191
|
-
return;
|
|
192
|
-
}
|
|
193
|
-
d.value = !0;
|
|
194
|
-
let e = r.modelValue;
|
|
195
|
-
if (!e) return;
|
|
196
|
-
let t = _(e[f.value]) ? e[f.value] : A.map((t) => e[t]).find(_);
|
|
197
|
-
i("update:modelValue", t ? ne(t) : void 0);
|
|
198
|
-
}
|
|
199
|
-
let O = S(() => A.map((e) => ({
|
|
200
|
-
value: e,
|
|
201
|
-
label: a.spacingControl[e]
|
|
202
|
-
})));
|
|
203
|
-
return (t, n) => (o(), p("div", ht, [
|
|
204
|
-
y("div", gt, [y("span", _t, h(x(a).blockSettings.border), 1), E(mt, {
|
|
205
|
-
linked: d.value,
|
|
206
|
-
"link-label": x(a).blockSettings.linkSides,
|
|
207
|
-
"unlink-label": x(a).blockSettings.unlinkSides,
|
|
208
|
-
testid: `${e.testidPrefix}-border-link`,
|
|
209
|
-
onToggle: D
|
|
210
|
-
}, null, 8, [
|
|
211
|
-
"linked",
|
|
212
|
-
"link-label",
|
|
213
|
-
"unlink-label",
|
|
214
|
-
"testid"
|
|
215
|
-
])]),
|
|
216
|
-
d.value ? g("", !0) : (o(), p("div", vt, [y("label", { class: v(x(H)) }, h(x(a).blockSettings.borderSide), 3), E(Y, {
|
|
217
|
-
options: O.value,
|
|
218
|
-
"model-value": f.value,
|
|
219
|
-
"onUpdate:modelValue": n[0] ||= (e) => f.value = e
|
|
220
|
-
}, null, 8, ["options", "model-value"])])),
|
|
221
|
-
y("div", yt, [y("label", { class: v(x(H)) }, h(x(a).blockSettings.borderWidth), 3), E(X, {
|
|
222
|
-
"model-value": m.value.width,
|
|
223
|
-
min: 0,
|
|
224
|
-
suffix: "px",
|
|
225
|
-
testid: `${e.testidPrefix}-border-width-input`,
|
|
226
|
-
"onUpdate:modelValue": C
|
|
227
|
-
}, null, 8, ["model-value", "testid"])]),
|
|
228
|
-
m.value.width > 0 ? (o(), p(w, { key: 1 }, [y("div", bt, [y("label", { class: v(x(H)) }, h(x(a).blockSettings.borderStyle), 3), E(Y, {
|
|
229
|
-
options: [
|
|
230
|
-
{
|
|
231
|
-
value: "solid",
|
|
232
|
-
label: x(a).divider.solid
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
value: "dashed",
|
|
236
|
-
label: x(a).divider.dashed
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
value: "dotted",
|
|
240
|
-
label: x(a).divider.dotted
|
|
241
|
-
}
|
|
242
|
-
],
|
|
243
|
-
"model-value": m.value.style,
|
|
244
|
-
"onUpdate:modelValue": n[1] ||= (e) => T({ style: e })
|
|
245
|
-
}, null, 8, ["options", "model-value"])]), y("div", null, [y("label", { class: v(x(H)) }, h(x(a).blockSettings.borderColor), 3), E(K, {
|
|
246
|
-
"model-value": m.value.color,
|
|
247
|
-
"onUpdate:modelValue": n[2] ||= (e) => T({ color: e })
|
|
248
|
-
}, null, 8, ["model-value"])])], 64)) : g("", !0)
|
|
249
|
-
]));
|
|
250
|
-
}
|
|
251
|
-
}), St = { class: "tpl:mb-3.5" }, Ct = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, wt = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Tt = {
|
|
252
|
-
key: 1,
|
|
253
|
-
class: "tpl:grid tpl:grid-cols-2 tpl:gap-2"
|
|
254
|
-
}, Et = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Dt = /* @__PURE__ */ n({
|
|
255
|
-
__name: "RadiusControl",
|
|
256
|
-
props: {
|
|
257
|
-
modelValue: {},
|
|
258
|
-
label: {},
|
|
259
|
-
testidPrefix: {},
|
|
260
|
-
max: {}
|
|
261
|
-
},
|
|
262
|
-
emits: ["update:modelValue"],
|
|
263
|
-
setup(e, { emit: n }) {
|
|
264
|
-
let r = e, a = n, { t: s } = B(), c = {
|
|
265
|
-
topLeft: "cornerTopLeft",
|
|
266
|
-
topRight: "cornerTopRight",
|
|
267
|
-
bottomRight: "cornerBottomRight",
|
|
268
|
-
bottomLeft: "cornerBottomLeft"
|
|
269
|
-
}, u = [
|
|
270
|
-
"topLeft",
|
|
271
|
-
"topRight",
|
|
272
|
-
"bottomLeft",
|
|
273
|
-
"bottomRight"
|
|
274
|
-
], d = S(() => {
|
|
275
|
-
let e = r.modelValue ?? 0;
|
|
276
|
-
return typeof e == "number" ? {
|
|
277
|
-
topLeft: e,
|
|
278
|
-
topRight: e,
|
|
279
|
-
bottomRight: e,
|
|
280
|
-
bottomLeft: e
|
|
281
|
-
} : e;
|
|
282
|
-
}), f = S(() => F.every((e) => d.value[e] === d.value.topLeft)), m = t(f.value);
|
|
283
|
-
l(f, (e) => {
|
|
284
|
-
!e && m.value && (m.value = !1);
|
|
285
|
-
});
|
|
286
|
-
function g(e) {
|
|
287
|
-
return Number.isFinite(e) && e >= 0;
|
|
288
|
-
}
|
|
289
|
-
function v(e) {
|
|
290
|
-
g(e) && a("update:modelValue", e);
|
|
291
|
-
}
|
|
292
|
-
function b(e, t) {
|
|
293
|
-
g(t) && a("update:modelValue", {
|
|
294
|
-
...d.value,
|
|
295
|
-
[e]: t
|
|
296
|
-
});
|
|
297
|
-
}
|
|
298
|
-
function C() {
|
|
299
|
-
m.value = !m.value, m.value && a("update:modelValue", d.value.topLeft);
|
|
300
|
-
}
|
|
301
|
-
return (t, n) => (o(), p("div", St, [y("div", Ct, [y("span", wt, h(e.label), 1), E(mt, {
|
|
302
|
-
linked: m.value,
|
|
303
|
-
"link-label": x(s).blockSettings.linkCorners,
|
|
304
|
-
"unlink-label": x(s).blockSettings.unlinkCorners,
|
|
305
|
-
testid: `${e.testidPrefix}-border-radius-link`,
|
|
306
|
-
onToggle: C
|
|
307
|
-
}, null, 8, [
|
|
308
|
-
"linked",
|
|
309
|
-
"link-label",
|
|
310
|
-
"unlink-label",
|
|
311
|
-
"testid"
|
|
312
|
-
])]), m.value ? (o(), _(X, {
|
|
313
|
-
key: 0,
|
|
314
|
-
"model-value": d.value.topLeft,
|
|
315
|
-
min: 0,
|
|
316
|
-
max: e.max,
|
|
317
|
-
suffix: "px",
|
|
318
|
-
testid: `${e.testidPrefix}-border-radius-input`,
|
|
319
|
-
"onUpdate:modelValue": v
|
|
320
|
-
}, null, 8, [
|
|
321
|
-
"model-value",
|
|
322
|
-
"max",
|
|
323
|
-
"testid"
|
|
324
|
-
])) : (o(), p("div", Tt, [(o(), p(w, null, i(u, (t) => y("div", { key: t }, [y("label", Et, h(x(s).blockSettings[c[t]]), 1), E(X, {
|
|
325
|
-
"model-value": d.value[t],
|
|
326
|
-
min: 0,
|
|
327
|
-
max: e.max,
|
|
328
|
-
suffix: "px",
|
|
329
|
-
testid: `${e.testidPrefix}-border-radius-${t}-input`,
|
|
330
|
-
"onUpdate:modelValue": (e) => b(t, e)
|
|
331
|
-
}, null, 8, [
|
|
332
|
-
"model-value",
|
|
333
|
-
"max",
|
|
334
|
-
"testid",
|
|
335
|
-
"onUpdate:modelValue"
|
|
336
|
-
])])), 64))]))]));
|
|
337
|
-
}
|
|
338
|
-
}), Ot = { class: "tpl:mb-3.5" }, kt = ["value"], At = { value: "" }, jt = ["value"], Mt = { class: "tpl:mb-3.5" }, Nt = { class: "tpl:mb-3.5" }, Pt = { class: "tpl:mb-3.5" }, Ft = { class: "tpl:mb-3.5" }, It = { class: "tpl:mb-3.5" }, Lt = { class: "tpl:flex tpl:items-stretch" }, Rt = ["value"], zt = { class: "tpl:mb-3.5" }, Bt = ["value"], Vt = { value: "auto" }, Ht = { value: "full" }, Ut = { value: "custom" }, Wt = {
|
|
339
|
-
key: 0,
|
|
340
|
-
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
341
|
-
}, Gt = ["value"], Kt = { class: "tpl:mb-3.5" }, qt = 200, Jt = /* @__PURE__ */ n({
|
|
342
|
-
__name: "ButtonToolbar",
|
|
343
|
-
props: {
|
|
344
|
-
block: {},
|
|
345
|
-
fontFamilies: {}
|
|
346
|
-
},
|
|
347
|
-
emits: ["update"],
|
|
348
|
-
setup(e, { emit: t }) {
|
|
349
|
-
let n = e, r = t, { t: a } = B(), s = S(() => n.block.width === "full" ? "full" : typeof n.block.width == "number" ? "custom" : "auto");
|
|
350
|
-
function c(e, t) {
|
|
351
|
-
r("update", { [e]: t });
|
|
352
|
-
}
|
|
353
|
-
function l(e) {
|
|
354
|
-
e === "full" ? c("width", "full") : e === "custom" ? c("width", typeof n.block.width == "number" ? n.block.width : qt) : c("width", void 0);
|
|
355
|
-
}
|
|
356
|
-
function u(e) {
|
|
357
|
-
let t = Number(e);
|
|
358
|
-
!Number.isFinite(t) || t <= 0 || c("width", t);
|
|
359
|
-
}
|
|
360
|
-
return (t, n) => (o(), p(w, null, [
|
|
361
|
-
y("div", Ot, [y("label", { class: v(x(H)) }, h(x(a).button.fontFamily), 3), y("select", {
|
|
362
|
-
class: v(x(G)),
|
|
363
|
-
value: x(ct)(e.block.fontFamily),
|
|
364
|
-
onChange: n[0] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
365
|
-
}, [y("option", At, h(x(a).button.inheritFont), 1), (o(!0), p(w, null, i(e.fontFamilies, (e) => (o(), p("option", {
|
|
366
|
-
key: e.value,
|
|
367
|
-
value: e.value
|
|
368
|
-
}, h(e.label), 9, jt))), 128))], 42, kt)]),
|
|
369
|
-
y("div", Mt, [y("label", { class: v(x(H)) }, h(x(a).button.text), 3), E(J, {
|
|
370
|
-
"model-value": e.block.text,
|
|
371
|
-
type: "text",
|
|
372
|
-
"onUpdate:modelValue": n[1] ||= (e) => c("text", e)
|
|
373
|
-
}, null, 8, ["model-value"])]),
|
|
374
|
-
y("div", Nt, [
|
|
375
|
-
y("label", { class: v(x(H)) }, h(x(a).button.url), 3),
|
|
376
|
-
E(J, {
|
|
377
|
-
"model-value": e.block.url,
|
|
378
|
-
type: "url",
|
|
379
|
-
placeholder: x(a).button.urlPlaceholder,
|
|
380
|
-
"onUpdate:modelValue": n[2] ||= (e) => c("url", e)
|
|
381
|
-
}, null, 8, ["model-value", "placeholder"]),
|
|
382
|
-
e.block.url ? (o(), _(q, {
|
|
383
|
-
key: 0,
|
|
384
|
-
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
385
|
-
"model-value": e.block.openInNewTab ?? !1,
|
|
386
|
-
label: x(a).button.openInNewTab,
|
|
387
|
-
"onUpdate:modelValue": n[3] ||= (e) => c("openInNewTab", e)
|
|
388
|
-
}, null, 8, ["model-value", "label"])) : g("", !0)
|
|
389
|
-
]),
|
|
390
|
-
y("div", Pt, [y("label", { class: v(x(H)) }, h(x(a).button.background), 3), E(K, {
|
|
391
|
-
"model-value": e.block.backgroundColor,
|
|
392
|
-
"allow-transparent": "",
|
|
393
|
-
"onUpdate:modelValue": n[4] ||= (e) => c("backgroundColor", e)
|
|
394
|
-
}, null, 8, ["model-value"])]),
|
|
395
|
-
y("div", Ft, [y("label", { class: v(x(H)) }, h(x(a).button.textColor), 3), E(K, {
|
|
396
|
-
"model-value": e.block.textColor,
|
|
397
|
-
"onUpdate:modelValue": n[5] ||= (e) => c("textColor", e)
|
|
398
|
-
}, null, 8, ["model-value"])]),
|
|
399
|
-
E(xt, {
|
|
400
|
-
"model-value": e.block.border,
|
|
401
|
-
"testid-prefix": "button",
|
|
402
|
-
"onUpdate:modelValue": n[6] ||= (e) => c("border", e)
|
|
403
|
-
}, null, 8, ["model-value"]),
|
|
404
|
-
E(Dt, {
|
|
405
|
-
"model-value": e.block.borderRadius,
|
|
406
|
-
label: x(a).button.borderRadius,
|
|
407
|
-
max: 50,
|
|
408
|
-
"testid-prefix": "button",
|
|
409
|
-
"onUpdate:modelValue": n[7] ||= (e) => c("borderRadius", e)
|
|
410
|
-
}, null, 8, ["model-value", "label"]),
|
|
411
|
-
y("div", It, [y("label", { class: v(x(H)) }, h(x(a).button.fontSize), 3), y("div", Lt, [y("input", {
|
|
412
|
-
type: "number",
|
|
413
|
-
class: v(x(W)),
|
|
414
|
-
value: e.block.fontSize,
|
|
415
|
-
min: "10",
|
|
416
|
-
max: "36",
|
|
417
|
-
onInput: n[8] ||= (e) => c("fontSize", Number(e.target.value))
|
|
418
|
-
}, null, 42, Rt), y("span", { class: v(x(U)) }, "px", 2)])]),
|
|
419
|
-
y("div", zt, [
|
|
420
|
-
y("label", { class: v(x(H)) }, h(x(a).button.width), 3),
|
|
421
|
-
y("select", {
|
|
422
|
-
class: v(x(G)),
|
|
423
|
-
value: s.value,
|
|
424
|
-
onChange: n[9] ||= (e) => l(e.target.value)
|
|
425
|
-
}, [
|
|
426
|
-
y("option", Vt, h(x(a).button.widthAuto), 1),
|
|
427
|
-
y("option", Ht, h(x(a).button.fullWidth), 1),
|
|
428
|
-
y("option", Ut, h(x(a).button.widthCustom), 1)
|
|
429
|
-
], 42, Bt),
|
|
430
|
-
s.value === "custom" ? (o(), p("div", Wt, [y("input", {
|
|
431
|
-
type: "number",
|
|
432
|
-
class: v(x(W)),
|
|
433
|
-
value: typeof e.block.width == "number" ? e.block.width : qt,
|
|
434
|
-
min: "20",
|
|
435
|
-
onInput: n[10] ||= (e) => u(e.target.value)
|
|
436
|
-
}, null, 42, Gt), y("span", { class: v(x(U)) }, "px", 2)])) : g("", !0)
|
|
437
|
-
]),
|
|
438
|
-
y("div", Kt, [y("label", { class: v(x(H)) }, h(x(a).title.align), 3), E(Y, {
|
|
439
|
-
options: [
|
|
440
|
-
{
|
|
441
|
-
value: "left",
|
|
442
|
-
label: x(a).title.alignLeft
|
|
443
|
-
},
|
|
444
|
-
{
|
|
445
|
-
value: "center",
|
|
446
|
-
label: x(a).title.alignCenter
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
value: "right",
|
|
450
|
-
label: x(a).title.alignRight
|
|
451
|
-
}
|
|
452
|
-
],
|
|
453
|
-
"model-value": e.block.align ?? "center",
|
|
454
|
-
"onUpdate:modelValue": n[11] ||= (e) => c("align", e)
|
|
455
|
-
}, null, 8, ["options", "model-value"])])
|
|
456
|
-
], 64));
|
|
457
|
-
}
|
|
458
|
-
}), Yt = { class: "spacing-control" }, Xt = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Zt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, Qt = { class: "tpl:flex tpl:items-center" }, $t = ["aria-label"], en = ["value", "aria-label"], tn = ["aria-label"], nn = { class: "tpl:flex tpl:items-center tpl:gap-2" }, rn = { class: "tpl:flex tpl:items-center" }, an = ["aria-label"], on = ["value", "aria-label"], sn = ["aria-label"], cn = ["aria-label", "title"], ln = { class: "tpl:flex tpl:items-center" }, un = ["aria-label"], dn = ["value", "aria-label"], fn = ["aria-label"], pn = { class: "tpl:flex tpl:items-center" }, mn = ["aria-label"], hn = ["value", "aria-label"], gn = ["aria-label"], Z = "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)]", _n = "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)]", vn = /*#__PURE__*/ $e(/* @__PURE__ */ n({
|
|
459
|
-
__name: "SpacingControl",
|
|
460
|
-
props: {
|
|
461
|
-
modelValue: {},
|
|
462
|
-
label: {}
|
|
463
|
-
},
|
|
464
|
-
emits: ["update:modelValue"],
|
|
465
|
-
setup(e, { emit: n }) {
|
|
466
|
-
let r = e, i = n, { t: a } = B(), s = S(() => r.modelValue.top === r.modelValue.right && r.modelValue.right === r.modelValue.bottom && r.modelValue.bottom === r.modelValue.left), c = t(s.value);
|
|
467
|
-
l(s, (e) => {
|
|
468
|
-
!e && c.value && (c.value = !1);
|
|
469
|
-
});
|
|
470
|
-
function u(e, t) {
|
|
471
|
-
let n = Math.max(0, r.modelValue[e] + t);
|
|
472
|
-
c.value ? i("update:modelValue", {
|
|
473
|
-
top: n,
|
|
474
|
-
right: n,
|
|
475
|
-
bottom: n,
|
|
476
|
-
left: n
|
|
477
|
-
}) : i("update:modelValue", {
|
|
478
|
-
...r.modelValue,
|
|
479
|
-
[e]: n
|
|
480
|
-
});
|
|
481
|
-
}
|
|
482
|
-
function d(e, t) {
|
|
483
|
-
let n = Math.max(0, t);
|
|
484
|
-
c.value ? i("update:modelValue", {
|
|
485
|
-
top: n,
|
|
486
|
-
right: n,
|
|
487
|
-
bottom: n,
|
|
488
|
-
left: n
|
|
489
|
-
}) : i("update:modelValue", {
|
|
490
|
-
...r.modelValue,
|
|
491
|
-
[e]: n
|
|
492
|
-
});
|
|
493
|
-
}
|
|
494
|
-
function f() {
|
|
495
|
-
if (c.value = !c.value, c.value) {
|
|
496
|
-
let e = r.modelValue.top;
|
|
497
|
-
i("update:modelValue", {
|
|
498
|
-
top: e,
|
|
499
|
-
right: e,
|
|
500
|
-
bottom: e,
|
|
501
|
-
left: e
|
|
502
|
-
});
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
return (t, n) => (o(), p("div", Yt, [y("label", Xt, h(e.label), 1), y("div", Zt, [
|
|
506
|
-
y("div", Qt, [
|
|
507
|
-
y("button", {
|
|
508
|
-
"aria-label": x(a).spacingControl.decreaseTop,
|
|
509
|
-
class: v([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
510
|
-
onClick: n[0] ||= (e) => u("top", -1)
|
|
511
|
-
}, [E(x(Ue), {
|
|
512
|
-
size: 12,
|
|
513
|
-
"stroke-width": 2
|
|
514
|
-
})], 10, $t),
|
|
515
|
-
y("input", {
|
|
516
|
-
type: "number",
|
|
517
|
-
class: v(_n),
|
|
518
|
-
value: e.modelValue.top,
|
|
519
|
-
"aria-label": x(a).spacingControl.top,
|
|
520
|
-
min: "0",
|
|
521
|
-
onInput: n[1] ||= (e) => d("top", Number(e.target.value))
|
|
522
|
-
}, null, 40, en),
|
|
523
|
-
y("button", {
|
|
524
|
-
"aria-label": x(a).spacingControl.increaseTop,
|
|
525
|
-
class: v([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
526
|
-
onClick: n[2] ||= (e) => u("top", 1)
|
|
527
|
-
}, [E(x(V), {
|
|
528
|
-
size: 12,
|
|
529
|
-
"stroke-width": 2
|
|
530
|
-
})], 10, tn)
|
|
531
|
-
]),
|
|
532
|
-
y("div", nn, [
|
|
533
|
-
y("div", rn, [
|
|
534
|
-
y("button", {
|
|
535
|
-
"aria-label": x(a).spacingControl.decreaseLeft,
|
|
536
|
-
class: v([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
537
|
-
onClick: n[3] ||= (e) => u("left", -1)
|
|
538
|
-
}, [E(x(Ue), {
|
|
539
|
-
size: 12,
|
|
540
|
-
"stroke-width": 2
|
|
541
|
-
})], 10, an),
|
|
542
|
-
y("input", {
|
|
543
|
-
type: "number",
|
|
544
|
-
class: v(_n),
|
|
545
|
-
value: e.modelValue.left,
|
|
546
|
-
"aria-label": x(a).spacingControl.left,
|
|
547
|
-
min: "0",
|
|
548
|
-
onInput: n[4] ||= (e) => d("left", Number(e.target.value))
|
|
549
|
-
}, null, 40, on),
|
|
550
|
-
y("button", {
|
|
551
|
-
"aria-label": x(a).spacingControl.increaseLeft,
|
|
552
|
-
class: v([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
553
|
-
onClick: n[5] ||= (e) => u("left", 1)
|
|
554
|
-
}, [E(x(V), {
|
|
555
|
-
size: 12,
|
|
556
|
-
"stroke-width": 2
|
|
557
|
-
})], 10, sn)
|
|
558
|
-
]),
|
|
559
|
-
y("button", {
|
|
560
|
-
class: v(["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)]", c.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)]"]),
|
|
561
|
-
"aria-label": c.value ? x(a).spacingControl.unlock : x(a).spacingControl.lockAll,
|
|
562
|
-
title: c.value ? x(a).spacingControl.unlock : x(a).spacingControl.lockAll,
|
|
563
|
-
onClick: f
|
|
564
|
-
}, [c.value ? (o(), _(x(Xe), {
|
|
565
|
-
key: 0,
|
|
566
|
-
size: 14,
|
|
567
|
-
"stroke-width": 2
|
|
568
|
-
})) : (o(), _(x(qe), {
|
|
569
|
-
key: 1,
|
|
570
|
-
size: 14,
|
|
571
|
-
"stroke-width": 2
|
|
572
|
-
}))], 10, cn),
|
|
573
|
-
y("div", ln, [
|
|
574
|
-
y("button", {
|
|
575
|
-
"aria-label": x(a).spacingControl.decreaseRight,
|
|
576
|
-
class: v([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
577
|
-
onClick: n[6] ||= (e) => u("right", -1)
|
|
578
|
-
}, [E(x(Ue), {
|
|
579
|
-
size: 12,
|
|
580
|
-
"stroke-width": 2
|
|
581
|
-
})], 10, un),
|
|
582
|
-
y("input", {
|
|
583
|
-
type: "number",
|
|
584
|
-
class: v(_n),
|
|
585
|
-
value: e.modelValue.right,
|
|
586
|
-
"aria-label": x(a).spacingControl.right,
|
|
587
|
-
min: "0",
|
|
588
|
-
onInput: n[7] ||= (e) => d("right", Number(e.target.value))
|
|
589
|
-
}, null, 40, dn),
|
|
590
|
-
y("button", {
|
|
591
|
-
"aria-label": x(a).spacingControl.increaseRight,
|
|
592
|
-
class: v([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
593
|
-
onClick: n[8] ||= (e) => u("right", 1)
|
|
594
|
-
}, [E(x(V), {
|
|
595
|
-
size: 12,
|
|
596
|
-
"stroke-width": 2
|
|
597
|
-
})], 10, fn)
|
|
598
|
-
])
|
|
599
|
-
]),
|
|
600
|
-
y("div", pn, [
|
|
601
|
-
y("button", {
|
|
602
|
-
"aria-label": x(a).spacingControl.decreaseBottom,
|
|
603
|
-
class: v([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
604
|
-
onClick: n[9] ||= (e) => u("bottom", -1)
|
|
605
|
-
}, [E(x(Ue), {
|
|
606
|
-
size: 12,
|
|
607
|
-
"stroke-width": 2
|
|
608
|
-
})], 10, mn),
|
|
609
|
-
y("input", {
|
|
610
|
-
type: "number",
|
|
611
|
-
class: v(_n),
|
|
612
|
-
value: e.modelValue.bottom,
|
|
613
|
-
"aria-label": x(a).spacingControl.bottom,
|
|
614
|
-
min: "0",
|
|
615
|
-
onInput: n[10] ||= (e) => d("bottom", Number(e.target.value))
|
|
616
|
-
}, null, 40, hn),
|
|
617
|
-
y("button", {
|
|
618
|
-
"aria-label": x(a).spacingControl.increaseBottom,
|
|
619
|
-
class: v([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
620
|
-
onClick: n[11] ||= (e) => u("bottom", 1)
|
|
621
|
-
}, [E(x(V), {
|
|
622
|
-
size: 12,
|
|
623
|
-
"stroke-width": 2
|
|
624
|
-
})], 10, gn)
|
|
625
|
-
])
|
|
626
|
-
])]));
|
|
627
|
-
}
|
|
628
|
-
}), [["__scopeId", "data-v-69591c1e"]]);
|
|
629
|
-
// src/composables/useNaturalImageSize.ts
|
|
630
|
-
function yn(e) {
|
|
631
|
-
let n = t(null), r = () => {};
|
|
632
|
-
return l(e, (e) => {
|
|
633
|
-
r(), n.value = null, e && (r = ue(e, (e) => {
|
|
634
|
-
n.value = e;
|
|
635
|
-
}));
|
|
636
|
-
}, { immediate: !0 }), n;
|
|
637
|
-
}
|
|
638
|
-
function bn() {
|
|
639
|
-
let e = r(Me, null);
|
|
640
|
-
return async (t) => _e(e ? await xn(e, t) : t);
|
|
641
|
-
}
|
|
642
|
-
function xn(e, t) {
|
|
643
|
-
let n = (e) => typeof e == "string" && e.length > 0 ? e : t;
|
|
644
|
-
e.lookup(t);
|
|
645
|
-
let r = e.get(t);
|
|
646
|
-
return r === void 0 ? new Promise((r) => {
|
|
647
|
-
let i = l(() => e.get(t), (e) => {
|
|
648
|
-
e !== void 0 && (i(), r(n(e)));
|
|
649
|
-
});
|
|
650
|
-
}) : Promise.resolve(n(r));
|
|
651
|
-
}
|
|
652
|
-
// src/components/toolbar/BackgroundImageControl.vue?vue&type=script&setup=true&lang.ts
|
|
653
|
-
var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"], Tn = ["data-testid"], En = ["aria-label", "data-testid"], Dn = [
|
|
654
|
-
"aria-label",
|
|
655
|
-
"title",
|
|
656
|
-
"aria-pressed",
|
|
657
|
-
"data-testid",
|
|
658
|
-
"onClick"
|
|
659
|
-
], On = ["data-testid"], kn = /* @__PURE__ */ n({
|
|
660
|
-
__name: "BackgroundImageControl",
|
|
661
|
-
props: {
|
|
662
|
-
modelValue: {},
|
|
663
|
-
testidPrefix: {},
|
|
664
|
-
measure: { type: Boolean },
|
|
665
|
-
heroMode: { type: Boolean }
|
|
666
|
-
},
|
|
667
|
-
emits: ["update:modelValue"],
|
|
668
|
-
setup(e, { emit: n }) {
|
|
669
|
-
let a = e, s = n, { t: c } = B(), l = r(we, ie.liquid), u = S(() => typeof a.modelValue?.url == "string" ? a.modelValue.url : ""), f = S(() => u.value.trim() !== ""), b = bn(), C;
|
|
670
|
-
d(() => clearTimeout(C));
|
|
671
|
-
function T(e) {
|
|
672
|
-
a.measure && !L(e, l) && (C = setTimeout(async () => {
|
|
673
|
-
let t = await b(e), n = a.modelValue;
|
|
674
|
-
t && n?.url === e && s("update:modelValue", {
|
|
675
|
-
...n,
|
|
676
|
-
...he(t)
|
|
677
|
-
});
|
|
678
|
-
}, 300));
|
|
679
|
-
}
|
|
680
|
-
function D(e, t = null) {
|
|
681
|
-
if (clearTimeout(C), e.trim() === "") {
|
|
682
|
-
s("update:modelValue", void 0);
|
|
683
|
-
return;
|
|
684
|
-
}
|
|
685
|
-
let { naturalWidth: n, naturalHeight: r, ...i } = a.modelValue ?? ee(e), o = a.measure ? t : null;
|
|
686
|
-
s("update:modelValue", {
|
|
687
|
-
...i,
|
|
688
|
-
url: e,
|
|
689
|
-
...o ? he(o) : {}
|
|
690
|
-
}), o || T(e);
|
|
691
|
-
}
|
|
692
|
-
function O(e) {
|
|
693
|
-
a.modelValue && s("update:modelValue", {
|
|
694
|
-
...a.modelValue,
|
|
695
|
-
...e
|
|
696
|
-
});
|
|
697
|
-
}
|
|
698
|
-
let k = S(() => [
|
|
699
|
-
{
|
|
700
|
-
value: "cover",
|
|
701
|
-
label: c.blockSettings.backgroundSizeCover
|
|
702
|
-
},
|
|
703
|
-
{
|
|
704
|
-
value: "contain",
|
|
705
|
-
label: c.blockSettings.backgroundSizeContain
|
|
706
|
-
},
|
|
707
|
-
{
|
|
708
|
-
value: "auto",
|
|
709
|
-
label: c.blockSettings.backgroundSizeAuto
|
|
710
|
-
}
|
|
711
|
-
]), A = S(() => ({
|
|
712
|
-
"top-left": c.blockSettings.backgroundPositionTopLeft,
|
|
713
|
-
"top-center": c.blockSettings.backgroundPositionTopCenter,
|
|
714
|
-
"top-right": c.blockSettings.backgroundPositionTopRight,
|
|
715
|
-
"center-left": c.blockSettings.backgroundPositionCenterLeft,
|
|
716
|
-
"center-center": c.blockSettings.backgroundPositionCenter,
|
|
717
|
-
"center-right": c.blockSettings.backgroundPositionCenterRight,
|
|
718
|
-
"bottom-left": c.blockSettings.backgroundPositionBottomLeft,
|
|
719
|
-
"bottom-center": c.blockSettings.backgroundPositionBottomCenter,
|
|
720
|
-
"bottom-right": c.blockSettings.backgroundPositionBottomRight
|
|
721
|
-
})), M = S(() => N.flatMap((e) => j.map((t) => ({
|
|
722
|
-
x: t,
|
|
723
|
-
y: e,
|
|
724
|
-
label: A.value[`${e}-${t}`]
|
|
725
|
-
}))));
|
|
726
|
-
function P(e) {
|
|
727
|
-
return a.modelValue?.position?.x === e.x && a.modelValue?.position?.y === e.y;
|
|
728
|
-
}
|
|
729
|
-
let F = t(), { canBrowse: te, isUploading: ne, showOverlay: I, openMediaBrowser: re } = me({
|
|
730
|
-
target: F,
|
|
731
|
-
blocked: () => L(u.value, l),
|
|
732
|
-
apply: (e) => D(e.url, de(e.width, e.height))
|
|
733
|
-
});
|
|
734
|
-
return (t, n) => (o(), p("div", Sn, [y("div", null, [y("label", { class: v(x(H)) }, h(x(c).blockSettings.backgroundImage), 3), y("div", {
|
|
735
|
-
ref_key: "dropZoneRef",
|
|
736
|
-
ref: F,
|
|
737
|
-
class: "tpl:relative",
|
|
738
|
-
"data-testid": `${e.testidPrefix}-bg-url`
|
|
739
|
-
}, [
|
|
740
|
-
x(I) ? (o(), _(le, {
|
|
741
|
-
key: 0,
|
|
742
|
-
uploading: x(ne)
|
|
743
|
-
}, null, 8, ["uploading"])) : g("", !0),
|
|
744
|
-
E(J, {
|
|
745
|
-
"model-value": u.value,
|
|
746
|
-
type: "url",
|
|
747
|
-
placeholder: x(c).blockSettings.backgroundImagePlaceholder,
|
|
748
|
-
"onUpdate:modelValue": D
|
|
749
|
-
}, null, 8, ["model-value", "placeholder"]),
|
|
750
|
-
x(te) ? (o(), p("button", {
|
|
751
|
-
key: 1,
|
|
752
|
-
type: "button",
|
|
753
|
-
"data-testid": `${e.testidPrefix}-bg-browse`,
|
|
754
|
-
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",
|
|
755
|
-
style: {
|
|
756
|
-
"border-color": "var(--tpl-border)",
|
|
757
|
-
color: "var(--tpl-primary)",
|
|
758
|
-
"background-color": "var(--tpl-bg)"
|
|
759
|
-
},
|
|
760
|
-
onClick: n[0] ||= (...e) => x(re) && x(re)(...e)
|
|
761
|
-
}, [E(x(Ke), {
|
|
762
|
-
size: 14,
|
|
763
|
-
"stroke-width": 1.5
|
|
764
|
-
}), m(" " + h(x(c).image.browseMedia), 1)], 8, wn)) : g("", !0)
|
|
765
|
-
], 8, Cn)]), f.value && e.modelValue ? (o(), p(w, { key: 0 }, [
|
|
766
|
-
e.heroMode ? g("", !0) : (o(), p("div", {
|
|
767
|
-
key: 0,
|
|
768
|
-
"data-testid": `${e.testidPrefix}-bg-size`
|
|
769
|
-
}, [y("label", { class: v(x(H)) }, h(x(c).blockSettings.backgroundSize), 3), E(Y, {
|
|
770
|
-
options: k.value,
|
|
771
|
-
"model-value": e.modelValue.size,
|
|
772
|
-
"onUpdate:modelValue": n[1] ||= (e) => O({ size: e })
|
|
773
|
-
}, null, 8, ["options", "model-value"])], 8, Tn)),
|
|
774
|
-
y("div", null, [y("label", { class: v(x(H)) }, h(x(c).blockSettings.backgroundPosition), 3), y("div", {
|
|
775
|
-
role: "group",
|
|
776
|
-
"aria-label": x(c).blockSettings.backgroundPosition,
|
|
777
|
-
"data-testid": `${e.testidPrefix}-bg-position`,
|
|
778
|
-
class: "tpl:grid tpl:w-24 tpl:grid-cols-3 tpl:gap-1"
|
|
779
|
-
}, [(o(!0), p(w, null, i(M.value, (t) => (o(), p("button", {
|
|
780
|
-
key: `${t.y}-${t.x}`,
|
|
781
|
-
type: "button",
|
|
782
|
-
"aria-label": t.label,
|
|
783
|
-
title: t.label,
|
|
784
|
-
"aria-pressed": P(t),
|
|
785
|
-
"data-testid": `${e.testidPrefix}-bg-position-${t.y}-${t.x}`,
|
|
786
|
-
class: v(["tpl:flex tpl:h-6 tpl:items-center tpl:justify-center tpl:rounded tpl:border tpl:transition-colors", P(t) ? "tpl:border-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:hover:border-[var(--tpl-text-dim)]"]),
|
|
787
|
-
onClick: (e) => O({ position: {
|
|
788
|
-
x: t.x,
|
|
789
|
-
y: t.y
|
|
790
|
-
} })
|
|
791
|
-
}, [y("span", { class: v(["tpl:block tpl:h-1.5 tpl:w-1.5 tpl:rounded-full", P(t) ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-text-dim)]"]) }, null, 2)], 10, Dn))), 128))], 8, En)]),
|
|
792
|
-
e.heroMode ? g("", !0) : (o(), p("div", {
|
|
793
|
-
key: 1,
|
|
794
|
-
"data-testid": `${e.testidPrefix}-bg-repeat`
|
|
795
|
-
}, [E(q, {
|
|
796
|
-
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
797
|
-
"model-value": e.modelValue.repeat,
|
|
798
|
-
label: x(c).blockSettings.backgroundRepeat,
|
|
799
|
-
"onUpdate:modelValue": n[2] ||= (e) => O({ repeat: e })
|
|
800
|
-
}, null, 8, ["model-value", "label"])], 8, On))
|
|
801
|
-
], 64)) : g("", !0)]));
|
|
802
|
-
}
|
|
803
|
-
}), An = ["data-testid"], jn = { class: "tpl:mt-3" }, Mn = /* @__PURE__ */ n({
|
|
804
|
-
__name: "CollapsibleSection",
|
|
805
|
-
props: {
|
|
806
|
-
title: {},
|
|
807
|
-
open: { type: Boolean },
|
|
808
|
-
noBorder: { type: Boolean },
|
|
809
|
-
headerTestId: {}
|
|
810
|
-
},
|
|
811
|
-
emits: ["toggle"],
|
|
812
|
-
setup(e) {
|
|
813
|
-
return (t, n) => (o(), p("div", { class: v(["tpl:py-3", e.noBorder ? "" : "tpl:border-t tpl:border-[var(--tpl-border)]"]) }, [y("button", {
|
|
814
|
-
type: "button",
|
|
815
|
-
"data-testid": e.headerTestId,
|
|
816
|
-
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)]",
|
|
817
|
-
onClick: n[0] ||= (e) => t.$emit("toggle")
|
|
818
|
-
}, [E(x(Ie), {
|
|
819
|
-
class: v(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
820
|
-
size: 12,
|
|
821
|
-
"stroke-width": 2
|
|
822
|
-
}, null, 8, ["class"]), y("span", null, h(e.title), 1)], 8, An), u(y("div", jn, [a(t.$slots, "default")], 512), [[C, e.open]])], 2));
|
|
823
|
-
}
|
|
824
|
-
}), Nn = {
|
|
825
|
-
key: 0,
|
|
826
|
-
"data-testid": "section-hero-columns-note",
|
|
827
|
-
class: "tpl:mt-3.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
828
|
-
}, Pn = {
|
|
829
|
-
key: 1,
|
|
830
|
-
"data-testid": "section-hero",
|
|
831
|
-
class: "tpl:mt-3.5 tpl:space-y-3.5"
|
|
832
|
-
}, Fn = { "data-testid": "section-hero-height" }, In = {
|
|
833
|
-
key: 0,
|
|
834
|
-
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
835
|
-
}, Ln = {
|
|
836
|
-
key: 1,
|
|
837
|
-
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
838
|
-
}, Rn = {
|
|
839
|
-
key: 1,
|
|
840
|
-
"data-testid": "section-hero-align"
|
|
841
|
-
}, zn = 300, Bn = /* @__PURE__ */ n({
|
|
842
|
-
__name: "HeroControl",
|
|
843
|
-
props: { section: {} },
|
|
844
|
-
emits: ["update"],
|
|
845
|
-
setup(e, { emit: t }) {
|
|
846
|
-
function n(e) {
|
|
847
|
-
return typeof e == "number" && Number.isFinite(e) && e >= 1;
|
|
848
|
-
}
|
|
849
|
-
let i = e, a = t, { t: s } = B(), c = r(we, ie.liquid), l = r(De, null), u = r(Se, void 0), d = bn(), f = S(() => typeof i.section.backgroundImage?.url == "string" ? i.section.backgroundImage.url : ""), m = S(() => f.value.trim() !== ""), b = S(() => L(f.value, c)), C = S(() => i.section.hero), w = S(() => i.section.columns === "1"), T = S(() => C.value ? n(C.value.height) ? "fixed" : "image" : "fit"), D = S(() => n(C.value?.height) ? C.value.height : zn), O = S(() => [
|
|
850
|
-
{
|
|
851
|
-
value: "fit",
|
|
852
|
-
label: s.blockSettings.heroHeightFit
|
|
853
|
-
},
|
|
854
|
-
{
|
|
855
|
-
value: "image",
|
|
856
|
-
label: s.blockSettings.heroHeightImage,
|
|
857
|
-
disabled: b.value
|
|
858
|
-
},
|
|
859
|
-
{
|
|
860
|
-
value: "fixed",
|
|
861
|
-
label: s.blockSettings.heroHeightFixed
|
|
862
|
-
}
|
|
863
|
-
]), k = S(() => [
|
|
864
|
-
{
|
|
865
|
-
value: "top",
|
|
866
|
-
label: s.blockSettings.heroAlignTop
|
|
867
|
-
},
|
|
868
|
-
{
|
|
869
|
-
value: "middle",
|
|
870
|
-
label: s.blockSettings.heroAlignMiddle
|
|
871
|
-
},
|
|
872
|
-
{
|
|
873
|
-
value: "bottom",
|
|
874
|
-
label: s.blockSettings.heroAlignBottom
|
|
875
|
-
}
|
|
876
|
-
]), A = S(() => T.value === "image" && m.value && !b.value && P(i.section.backgroundImage) === null);
|
|
877
|
-
function j() {
|
|
878
|
-
return (l ? ge(l.content.value, i.section.id, u) : null) ?? ce(l?.state.content.settings);
|
|
879
|
-
}
|
|
880
|
-
function M(e) {
|
|
881
|
-
let t = C.value?.verticalAlign ?? "middle";
|
|
882
|
-
if (e === "image") {
|
|
883
|
-
T.value !== "image" && a("update", { hero: {
|
|
884
|
-
height: "image",
|
|
885
|
-
verticalAlign: t
|
|
886
|
-
} }), N();
|
|
887
|
-
return;
|
|
888
|
-
}
|
|
889
|
-
if (e === T.value) return;
|
|
890
|
-
if (e === "fit") {
|
|
891
|
-
a("update", { hero: void 0 });
|
|
892
|
-
return;
|
|
893
|
-
}
|
|
894
|
-
let n = P(i.section.backgroundImage), r = n === null ? zn : Math.round(j() * n);
|
|
895
|
-
a("update", { hero: {
|
|
896
|
-
height: r,
|
|
897
|
-
verticalAlign: t
|
|
898
|
-
} });
|
|
899
|
-
}
|
|
900
|
-
async function N() {
|
|
901
|
-
let e = i.section.backgroundImage;
|
|
902
|
-
if (!e || !m.value || b.value || P(e) !== null) return;
|
|
903
|
-
let t = e.url, n = await d(t), r = i.section.backgroundImage;
|
|
904
|
-
n && r && r.url === t && a("update", { backgroundImage: {
|
|
905
|
-
...r,
|
|
906
|
-
...he(n)
|
|
907
|
-
} });
|
|
908
|
-
}
|
|
909
|
-
function ee(e) {
|
|
910
|
-
!C.value || !Number.isFinite(e) || e < 1 || a("update", { hero: {
|
|
911
|
-
...C.value,
|
|
912
|
-
height: Math.round(e)
|
|
913
|
-
} });
|
|
914
|
-
}
|
|
915
|
-
function F(e) {
|
|
916
|
-
C.value && a("update", { hero: {
|
|
917
|
-
...C.value,
|
|
918
|
-
verticalAlign: e
|
|
919
|
-
} });
|
|
920
|
-
}
|
|
921
|
-
return (e, t) => !w.value && C.value ? (o(), p("p", Nn, h(x(s).section.heroNeedsOneColumn), 1)) : w.value && (m.value || C.value) ? (o(), p("div", Pn, [
|
|
922
|
-
y("div", Fn, [
|
|
923
|
-
y("label", { class: v(x(H)) }, h(x(s).blockSettings.heroHeight), 3),
|
|
924
|
-
E(Y, {
|
|
925
|
-
options: O.value,
|
|
926
|
-
"model-value": T.value,
|
|
927
|
-
"onUpdate:modelValue": M
|
|
928
|
-
}, null, 8, ["options", "model-value"]),
|
|
929
|
-
b.value ? (o(), p("p", In, h(x(s).blockSettings.heroMatchImageMergeTag), 1)) : A.value ? (o(), p("p", Ln, h(x(s).blockSettings.heroSizeUnknown), 1)) : g("", !0)
|
|
930
|
-
]),
|
|
931
|
-
T.value === "fixed" ? (o(), _(X, {
|
|
932
|
-
key: 0,
|
|
933
|
-
"model-value": D.value,
|
|
934
|
-
min: 1,
|
|
935
|
-
suffix: "px",
|
|
936
|
-
testid: "section-hero-height-px",
|
|
937
|
-
"onUpdate:modelValue": ee
|
|
938
|
-
}, null, 8, ["model-value"])) : g("", !0),
|
|
939
|
-
C.value ? (o(), p("div", Rn, [y("label", { class: v(x(H)) }, h(x(s).blockSettings.heroAlign), 3), E(Y, {
|
|
940
|
-
options: k.value,
|
|
941
|
-
"model-value": C.value.verticalAlign,
|
|
942
|
-
"onUpdate:modelValue": F
|
|
943
|
-
}, null, 8, ["options", "model-value"])])) : g("", !0)
|
|
944
|
-
])) : g("", !0);
|
|
945
|
-
}
|
|
946
|
-
}), Vn = { class: "tpl:space-y-2" }, Hn = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Un = { class: "tpl:space-y-2" }, Wn = ["value"], Gn = { value: "" }, Kn = ["label"], qn = ["value"], Jn = ["value"], Yn = {
|
|
947
|
-
key: 0,
|
|
948
|
-
value: "__custom__"
|
|
949
|
-
}, Xn = {
|
|
950
|
-
key: 0,
|
|
951
|
-
class: "tpl:space-y-2"
|
|
952
|
-
}, Zn = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Qn = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, $n = { class: "tpl:flex tpl:justify-end" }, er = ["disabled"], tr = {
|
|
953
|
-
key: 0,
|
|
954
|
-
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
955
|
-
}, nr = { class: "tpl:space-y-1" }, rr = { 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)]" }, ir = {
|
|
956
|
-
key: 0,
|
|
957
|
-
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)]"
|
|
958
|
-
}, ar = /* @__PURE__ */ n({
|
|
959
|
-
__name: "CommonBlockSettings",
|
|
960
|
-
props: {
|
|
961
|
-
block: {},
|
|
962
|
-
isFirstSection: { type: Boolean }
|
|
963
|
-
},
|
|
964
|
-
emits: ["update"],
|
|
965
|
-
setup(e, { emit: n }) {
|
|
966
|
-
let a = e, s = n, { t: d } = B(), C = r(Oe, []), T = r(ke, !1), O = f(/* @__PURE__ */ new Set()), A = t(!1), j = t(""), M = t(""), N = [{
|
|
967
|
-
key: "desktop",
|
|
968
|
-
icon: Pe,
|
|
969
|
-
labelKey: "showOnDesktop"
|
|
970
|
-
}, {
|
|
971
|
-
key: "mobile",
|
|
972
|
-
icon: Le,
|
|
973
|
-
labelKey: "showOnMobile"
|
|
974
|
-
}];
|
|
975
|
-
function P(e) {
|
|
976
|
-
O.has(e) ? O.delete(e) : O.add(e);
|
|
977
|
-
}
|
|
978
|
-
let ee = S(() => C.length > 0 || T), F = S(() => a.block.displayCondition ? !C.some((e) => e.label === a.block.displayCondition?.label) : !1);
|
|
979
|
-
function te() {
|
|
980
|
-
A.value = !0, F.value && a.block.displayCondition ? (j.value = a.block.displayCondition.before, M.value = a.block.displayCondition.after ?? "") : (j.value = "", M.value = "");
|
|
981
|
-
}
|
|
982
|
-
function ne() {
|
|
983
|
-
j.value.trim() && (s("update", { displayCondition: {
|
|
984
|
-
label: d.blockSettings.customCondition,
|
|
985
|
-
before: j.value.trim(),
|
|
986
|
-
after: M.value.trim()
|
|
987
|
-
} }), A.value = !1, j.value = "", M.value = "");
|
|
988
|
-
}
|
|
989
|
-
l(() => a.block.displayCondition, (e) => {
|
|
990
|
-
e ? F.value && (j.value = e.before, M.value = e.after ?? "") : (A.value = !1, j.value = "", M.value = "");
|
|
991
|
-
}, { immediate: !0 });
|
|
992
|
-
let I = S(() => {
|
|
993
|
-
let e = {};
|
|
994
|
-
for (let t of C) {
|
|
995
|
-
let n = t.group ?? "";
|
|
996
|
-
e[n] || (e[n] = []), e[n].push(t);
|
|
997
|
-
}
|
|
998
|
-
return e;
|
|
999
|
-
}), re = S(() => a.block.type === "section" && k(a.block)?.applied === !0);
|
|
1000
|
-
function ie(e, t) {
|
|
1001
|
-
s("update", { styles: {
|
|
1002
|
-
...a.block.styles,
|
|
1003
|
-
[e]: t
|
|
1004
|
-
} });
|
|
1005
|
-
}
|
|
1006
|
-
function ae(e) {
|
|
1007
|
-
return a.block.visibility?.[e] !== !1;
|
|
1008
|
-
}
|
|
1009
|
-
function L(e) {
|
|
1010
|
-
let t = {
|
|
1011
|
-
desktop: ae("desktop"),
|
|
1012
|
-
mobile: ae("mobile")
|
|
1013
|
-
};
|
|
1014
|
-
t[e] = !t[e], s("update", { visibility: t });
|
|
1015
|
-
}
|
|
1016
|
-
return (t, n) => (o(), p("div", { class: v(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1017
|
-
E(Mn, {
|
|
1018
|
-
title: x(d).blockSettings.spacing,
|
|
1019
|
-
open: O.has("spacing"),
|
|
1020
|
-
"no-border": e.isFirstSection,
|
|
1021
|
-
onToggle: n[1] ||= (e) => P("spacing")
|
|
1022
|
-
}, {
|
|
1023
|
-
default: c(() => [E(vn, {
|
|
1024
|
-
label: x(d).blockSettings.padding,
|
|
1025
|
-
"model-value": e.block.styles.padding,
|
|
1026
|
-
"onUpdate:modelValue": n[0] ||= (e) => ie("padding", e)
|
|
1027
|
-
}, null, 8, ["label", "model-value"])]),
|
|
1028
|
-
_: 1
|
|
1029
|
-
}, 8, [
|
|
1030
|
-
"title",
|
|
1031
|
-
"open",
|
|
1032
|
-
"no-border"
|
|
1033
|
-
]),
|
|
1034
|
-
E(Mn, {
|
|
1035
|
-
title: x(d).blockSettings.background,
|
|
1036
|
-
open: O.has("bg"),
|
|
1037
|
-
"header-test-id": "block-settings-background",
|
|
1038
|
-
onToggle: n[5] ||= (e) => P("bg")
|
|
1039
|
-
}, {
|
|
1040
|
-
default: c(() => [
|
|
1041
|
-
y("label", { class: v(x(H)) }, h(x(d).blockSettings.color), 3),
|
|
1042
|
-
E(K, {
|
|
1043
|
-
"model-value": e.block.styles.backgroundColor ?? "",
|
|
1044
|
-
"allow-transparent": "",
|
|
1045
|
-
"onUpdate:modelValue": n[2] ||= (e) => ie("backgroundColor", e)
|
|
1046
|
-
}, null, 8, ["model-value"]),
|
|
1047
|
-
e.block.type === "section" ? (o(), _(kn, {
|
|
1048
|
-
key: 0,
|
|
1049
|
-
class: "tpl:mt-3.5",
|
|
1050
|
-
"model-value": e.block.backgroundImage,
|
|
1051
|
-
"testid-prefix": "section",
|
|
1052
|
-
measure: "",
|
|
1053
|
-
"hero-mode": re.value,
|
|
1054
|
-
"onUpdate:modelValue": n[3] ||= (e) => s("update", { backgroundImage: e })
|
|
1055
|
-
}, null, 8, ["model-value", "hero-mode"])) : g("", !0),
|
|
1056
|
-
e.block.type === "section" ? (o(), _(Bn, {
|
|
1057
|
-
key: 1,
|
|
1058
|
-
section: e.block,
|
|
1059
|
-
onUpdate: n[4] ||= (e) => s("update", e)
|
|
1060
|
-
}, null, 8, ["section"])) : g("", !0)
|
|
1061
|
-
]),
|
|
1062
|
-
_: 1
|
|
1063
|
-
}, 8, ["title", "open"]),
|
|
1064
|
-
E(Mn, {
|
|
1065
|
-
title: x(d).blockSettings.display,
|
|
1066
|
-
open: O.has("display"),
|
|
1067
|
-
onToggle: n[6] ||= (e) => P("display")
|
|
1068
|
-
}, {
|
|
1069
|
-
default: c(() => [y("div", Vn, [(o(), p(w, null, i(N, (e) => E(q, {
|
|
1070
|
-
key: e.key,
|
|
1071
|
-
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1072
|
-
"model-value": ae(e.key),
|
|
1073
|
-
label: x(d).blockSettings[e.labelKey],
|
|
1074
|
-
"onUpdate:modelValue": (t) => L(e.key)
|
|
1075
|
-
}, {
|
|
1076
|
-
default: c(() => [y("span", Hn, [(o(), _(D(e.icon), {
|
|
1077
|
-
size: 14,
|
|
1078
|
-
"stroke-width": 1.5
|
|
1079
|
-
})), m(" " + h(x(d).blockSettings[e.labelKey]), 1)])]),
|
|
1080
|
-
_: 2
|
|
1081
|
-
}, 1032, [
|
|
1082
|
-
"model-value",
|
|
1083
|
-
"label",
|
|
1084
|
-
"onUpdate:modelValue"
|
|
1085
|
-
])), 64))])]),
|
|
1086
|
-
_: 1
|
|
1087
|
-
}, 8, ["title", "open"]),
|
|
1088
|
-
ee.value ? (o(), _(Mn, {
|
|
1089
|
-
key: 0,
|
|
1090
|
-
"header-test-id": "display-condition-section",
|
|
1091
|
-
title: x(d).blockSettings.displayCondition,
|
|
1092
|
-
open: O.has("condition"),
|
|
1093
|
-
onToggle: n[10] ||= (e) => P("condition")
|
|
1094
|
-
}, {
|
|
1095
|
-
default: c(() => [y("div", Un, [y("select", {
|
|
1096
|
-
"data-testid": "display-condition-select",
|
|
1097
|
-
class: v(["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)]"]),
|
|
1098
|
-
value: A.value || F.value ? "__custom__" : e.block.displayCondition?.label ?? "",
|
|
1099
|
-
onChange: n[7] ||= (e) => {
|
|
1100
|
-
let t = e.target.value;
|
|
1101
|
-
if (t === "__custom__") {
|
|
1102
|
-
te();
|
|
1103
|
-
return;
|
|
1104
|
-
}
|
|
1105
|
-
if (A.value = !1, !t) {
|
|
1106
|
-
s("update", { displayCondition: void 0 });
|
|
1107
|
-
return;
|
|
1108
|
-
}
|
|
1109
|
-
let n = x(C).find((e) => e.label === t);
|
|
1110
|
-
n && s("update", { displayCondition: n });
|
|
1111
|
-
}
|
|
1112
|
-
}, [
|
|
1113
|
-
y("option", Gn, h(x(d).blockSettings.noCondition), 1),
|
|
1114
|
-
(o(!0), p(w, null, i(I.value, (e, t) => (o(), p(w, { key: t }, [t ? (o(), p("optgroup", {
|
|
1115
|
-
key: 0,
|
|
1116
|
-
label: String(t)
|
|
1117
|
-
}, [(o(!0), p(w, null, i(e, (e) => (o(), p("option", {
|
|
1118
|
-
key: e.label,
|
|
1119
|
-
value: e.label
|
|
1120
|
-
}, h(e.label), 9, qn))), 128))], 8, Kn)) : (o(!0), p(w, { key: 1 }, i(e, (e) => (o(), p("option", {
|
|
1121
|
-
key: e.label,
|
|
1122
|
-
value: e.label
|
|
1123
|
-
}, h(e.label), 9, Jn))), 128))], 64))), 128)),
|
|
1124
|
-
x(T) ? (o(), p("option", Yn, h(x(d).blockSettings.customCondition), 1)) : g("", !0)
|
|
1125
|
-
], 42, Wn), A.value || F.value ? (o(), p("div", Xn, [
|
|
1126
|
-
y("div", null, [y("label", Zn, h(x(d).blockSettings.customConditionBefore), 1), u(y("textarea", {
|
|
1127
|
-
"onUpdate:modelValue": n[8] ||= (e) => j.value = e,
|
|
1128
|
-
rows: "2",
|
|
1129
|
-
class: v(x(et))
|
|
1130
|
-
}, null, 2), [[b, j.value]])]),
|
|
1131
|
-
y("div", null, [y("label", Qn, h(x(d).blockSettings.customConditionAfter), 1), u(y("textarea", {
|
|
1132
|
-
"onUpdate:modelValue": n[9] ||= (e) => M.value = e,
|
|
1133
|
-
rows: "2",
|
|
1134
|
-
class: v(x(et))
|
|
1135
|
-
}, null, 2), [[b, M.value]])]),
|
|
1136
|
-
y("div", $n, [y("button", {
|
|
1137
|
-
type: "button",
|
|
1138
|
-
class: v(x(it)),
|
|
1139
|
-
disabled: !j.value.trim(),
|
|
1140
|
-
onClick: ne
|
|
1141
|
-
}, h(x(d).blockSettings.applyCondition), 11, er)])
|
|
1142
|
-
])) : e.block.displayCondition && !F.value ? (o(), p(w, { key: 1 }, [e.block.displayCondition.description ? (o(), p("p", tr, h(e.block.displayCondition.description), 1)) : g("", !0), y("div", nr, [y("pre", rr, h(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (o(), p("pre", ir, h(e.block.displayCondition.after), 1)) : g("", !0)])], 64)) : g("", !0)])]),
|
|
1143
|
-
_: 1
|
|
1144
|
-
}, 8, ["title", "open"])) : g("", !0)
|
|
1145
|
-
], 2));
|
|
1146
|
-
}
|
|
1147
|
-
}), or = ["title"], sr = /* @__PURE__ */ n({
|
|
1148
|
-
__name: "BooleanField",
|
|
1149
|
-
props: {
|
|
1150
|
-
field: {},
|
|
1151
|
-
modelValue: { type: Boolean },
|
|
1152
|
-
readOnly: { type: Boolean }
|
|
1153
|
-
},
|
|
1154
|
-
emits: ["update:modelValue"],
|
|
1155
|
-
setup(e, { emit: t }) {
|
|
1156
|
-
let n = t, { t: r } = B();
|
|
1157
|
-
return (t, i) => (o(), p("div", {
|
|
1158
|
-
class: "tpl:mb-3.5",
|
|
1159
|
-
title: e.readOnly ? x(r).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
1160
|
-
}, [E(q, {
|
|
1161
|
-
class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
1162
|
-
"model-value": e.modelValue,
|
|
1163
|
-
label: e.field.label,
|
|
1164
|
-
required: e.field.required,
|
|
1165
|
-
disabled: e.readOnly,
|
|
1166
|
-
"onUpdate:modelValue": i[0] ||= (e) => n("update:modelValue", e)
|
|
1167
|
-
}, {
|
|
1168
|
-
default: c(() => [m(h(e.field.label) + " ", 1), e.readOnly ? (o(), _(x(Xe), {
|
|
1169
|
-
key: 0,
|
|
1170
|
-
size: 12,
|
|
1171
|
-
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
1172
|
-
})) : g("", !0)]),
|
|
1173
|
-
_: 1
|
|
1174
|
-
}, 8, [
|
|
1175
|
-
"model-value",
|
|
1176
|
-
"label",
|
|
1177
|
-
"required",
|
|
1178
|
-
"disabled"
|
|
1179
|
-
])], 8, or));
|
|
1180
|
-
}
|
|
1181
|
-
}), cr = { class: "tpl:mb-3.5" }, lr = ["title"], ur = { class: "tpl-sr-only" }, dr = ["title"], fr = { class: "tpl-sr-only" }, Q = /* @__PURE__ */ n({
|
|
1182
|
-
__name: "FieldWrapper",
|
|
1183
|
-
props: {
|
|
1184
|
-
label: {},
|
|
1185
|
-
required: { type: Boolean },
|
|
1186
|
-
readOnly: { type: Boolean }
|
|
1187
|
-
},
|
|
1188
|
-
setup(e) {
|
|
1189
|
-
let { t } = B();
|
|
1190
|
-
return (n, r) => (o(), p("div", cr, [y("label", { class: v(x(H)) }, [
|
|
1191
|
-
m(h(e.label) + " ", 1),
|
|
1192
|
-
e.readOnly ? (o(), p("span", {
|
|
1193
|
-
key: 0,
|
|
1194
|
-
title: x(t).customBlocks.dataSource.readOnlyTooltip
|
|
1195
|
-
}, [E(x(Xe), {
|
|
1196
|
-
size: 12,
|
|
1197
|
-
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
|
|
1198
|
-
"aria-hidden": "true"
|
|
1199
|
-
}), y("span", ur, h(x(t).customBlocks.dataSource.readOnlyTooltip), 1)], 8, lr)) : g("", !0),
|
|
1200
|
-
e.required ? (o(), p("span", {
|
|
1201
|
-
key: 1,
|
|
1202
|
-
class: "tpl:text-[var(--tpl-danger)]",
|
|
1203
|
-
title: x(t).customBlocks.fields.required
|
|
1204
|
-
}, [r[0] ||= y("span", { "aria-hidden": "true" }, "*", -1), y("span", fr, h(x(t).customBlocks.fields.required), 1)], 8, dr)) : g("", !0)
|
|
1205
|
-
], 2), a(n.$slots, "default")]));
|
|
1206
|
-
}
|
|
1207
|
-
}), pr = /* @__PURE__ */ n({
|
|
1208
|
-
__name: "ColorField",
|
|
1209
|
-
props: {
|
|
1210
|
-
field: {},
|
|
1211
|
-
modelValue: {},
|
|
1212
|
-
readOnly: { type: Boolean }
|
|
1213
|
-
},
|
|
1214
|
-
emits: ["update:modelValue"],
|
|
1215
|
-
setup(e, { emit: t }) {
|
|
1216
|
-
let n = e, i = t, { t: a } = B(), s = r(Ee, Ne), l = S(() => se(n.field, s));
|
|
1217
|
-
return (t, n) => (o(), _(Q, {
|
|
1218
|
-
label: e.field.label,
|
|
1219
|
-
required: e.field.required,
|
|
1220
|
-
"read-only": e.readOnly
|
|
1221
|
-
}, {
|
|
1222
|
-
default: c(() => [E(K, {
|
|
1223
|
-
"model-value": e.modelValue,
|
|
1224
|
-
placeholder: e.field.placeholder,
|
|
1225
|
-
disabled: e.readOnly,
|
|
1226
|
-
presets: l.value.presets,
|
|
1227
|
-
"allow-custom": l.value.allowCustom,
|
|
1228
|
-
title: e.readOnly ? x(a).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1229
|
-
"onUpdate:modelValue": n[0] ||= (e) => i("update:modelValue", e)
|
|
1230
|
-
}, null, 8, [
|
|
1231
|
-
"model-value",
|
|
1232
|
-
"placeholder",
|
|
1233
|
-
"disabled",
|
|
1234
|
-
"presets",
|
|
1235
|
-
"allow-custom",
|
|
1236
|
-
"title"
|
|
1237
|
-
])]),
|
|
1238
|
-
_: 1
|
|
1239
|
-
}, 8, [
|
|
1240
|
-
"label",
|
|
1241
|
-
"required",
|
|
1242
|
-
"read-only"
|
|
1243
|
-
]));
|
|
1244
|
-
}
|
|
1245
|
-
}), mr = [
|
|
1246
|
-
"value",
|
|
1247
|
-
"placeholder",
|
|
1248
|
-
"title"
|
|
1249
|
-
], hr = ["value", "placeholder"], gr = /* @__PURE__ */ n({
|
|
1250
|
-
__name: "ImageField",
|
|
1251
|
-
props: {
|
|
1252
|
-
field: {},
|
|
1253
|
-
modelValue: {},
|
|
1254
|
-
readOnly: { type: Boolean }
|
|
1255
|
-
},
|
|
1256
|
-
emits: ["update:modelValue"],
|
|
1257
|
-
setup(e, { emit: n }) {
|
|
1258
|
-
let r = e, i = n, { t: a } = B(), s = t(), { canBrowse: l, isUploading: u, showOverlay: d, openMediaBrowser: f } = me({
|
|
1259
|
-
target: s,
|
|
1260
|
-
blocked: () => !!r.readOnly,
|
|
1261
|
-
apply: (e) => i("update:modelValue", e.url)
|
|
1262
|
-
});
|
|
1263
|
-
return (t, n) => (o(), _(Q, {
|
|
1264
|
-
label: e.field.label,
|
|
1265
|
-
required: e.field.required,
|
|
1266
|
-
"read-only": e.readOnly
|
|
1267
|
-
}, {
|
|
1268
|
-
default: c(() => [y("div", {
|
|
1269
|
-
ref_key: "dropZoneRef",
|
|
1270
|
-
ref: s,
|
|
1271
|
-
class: "tpl:relative"
|
|
1272
|
-
}, [
|
|
1273
|
-
x(d) ? (o(), _(le, {
|
|
1274
|
-
key: 0,
|
|
1275
|
-
uploading: x(u)
|
|
1276
|
-
}, null, 8, ["uploading"])) : g("", !0),
|
|
1277
|
-
e.readOnly ? (o(), p("input", {
|
|
1278
|
-
key: 1,
|
|
1279
|
-
type: "url",
|
|
1280
|
-
class: v([x(G), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1281
|
-
value: e.modelValue,
|
|
1282
|
-
placeholder: e.field.placeholder || "https://...",
|
|
1283
|
-
disabled: "",
|
|
1284
|
-
title: x(a).customBlocks.dataSource.readOnlyTooltip
|
|
1285
|
-
}, null, 10, mr)) : (o(), p("input", {
|
|
1286
|
-
key: 2,
|
|
1287
|
-
type: "url",
|
|
1288
|
-
class: v(x(G)),
|
|
1289
|
-
value: e.modelValue,
|
|
1290
|
-
placeholder: e.field.placeholder || "https://...",
|
|
1291
|
-
onInput: n[0] ||= (e) => i("update:modelValue", e.target.value)
|
|
1292
|
-
}, null, 42, hr)),
|
|
1293
|
-
x(l) && !e.readOnly ? (o(), p("button", {
|
|
1294
|
-
key: 3,
|
|
1295
|
-
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)]",
|
|
1296
|
-
onClick: n[1] ||= (e) => x(f)()
|
|
1297
|
-
}, [E(x(Ke), {
|
|
1298
|
-
size: 14,
|
|
1299
|
-
"stroke-width": 1.5
|
|
1300
|
-
}), m(" " + h(x(a).image.browseMedia), 1)])) : g("", !0)
|
|
1301
|
-
], 512)]),
|
|
1302
|
-
_: 1
|
|
1303
|
-
}, 8, [
|
|
1304
|
-
"label",
|
|
1305
|
-
"required",
|
|
1306
|
-
"read-only"
|
|
1307
|
-
]));
|
|
1308
|
-
}
|
|
1309
|
-
}), _r = [
|
|
1310
|
-
"value",
|
|
1311
|
-
"placeholder",
|
|
1312
|
-
"min",
|
|
1313
|
-
"max",
|
|
1314
|
-
"step",
|
|
1315
|
-
"disabled",
|
|
1316
|
-
"title"
|
|
1317
|
-
], vr = /* @__PURE__ */ n({
|
|
1318
|
-
__name: "NumberField",
|
|
1319
|
-
props: {
|
|
1320
|
-
field: {},
|
|
1321
|
-
modelValue: {},
|
|
1322
|
-
readOnly: { type: Boolean }
|
|
1323
|
-
},
|
|
1324
|
-
emits: ["update:modelValue"],
|
|
1325
|
-
setup(e, { emit: t }) {
|
|
1326
|
-
let n = t, { t: r } = B();
|
|
1327
|
-
return (t, i) => (o(), _(Q, {
|
|
1328
|
-
label: e.field.label,
|
|
1329
|
-
required: e.field.required,
|
|
1330
|
-
"read-only": e.readOnly
|
|
1331
|
-
}, {
|
|
1332
|
-
default: c(() => [y("input", {
|
|
1333
|
-
type: "number",
|
|
1334
|
-
class: v([x(G), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1335
|
-
value: e.modelValue,
|
|
1336
|
-
placeholder: e.field.placeholder,
|
|
1337
|
-
min: e.field.min,
|
|
1338
|
-
max: e.field.max,
|
|
1339
|
-
step: e.field.step,
|
|
1340
|
-
disabled: e.readOnly,
|
|
1341
|
-
title: e.readOnly ? x(r).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1342
|
-
onInput: i[0] ||= (t) => !e.readOnly && n("update:modelValue", Number(t.target.value))
|
|
1343
|
-
}, null, 42, _r)]),
|
|
1344
|
-
_: 1
|
|
1345
|
-
}, 8, [
|
|
1346
|
-
"label",
|
|
1347
|
-
"required",
|
|
1348
|
-
"read-only"
|
|
1349
|
-
]));
|
|
1350
|
-
}
|
|
1351
|
-
}), yr = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, br = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, xr = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, Sr = ["title", "onClick"], Cr = {
|
|
1352
|
-
key: 1,
|
|
1353
|
-
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1354
|
-
}, wr = {
|
|
1355
|
-
key: 2,
|
|
1356
|
-
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1357
|
-
}, Tr = /* @__PURE__ */ n({
|
|
1358
|
-
__name: "RepeatableField",
|
|
1359
|
-
props: {
|
|
1360
|
-
field: {},
|
|
1361
|
-
modelValue: {},
|
|
1362
|
-
readOnly: { type: Boolean }
|
|
1363
|
-
},
|
|
1364
|
-
emits: ["update:modelValue"],
|
|
1365
|
-
setup(e, { emit: t }) {
|
|
1366
|
-
let n = e, r = t, { t: a, format: s } = B(), l = S(() => n.modelValue || []), u = S(() => !n.field.maxItems || l.value.length < n.field.maxItems), d = S(() => !n.field.minItems || l.value.length > n.field.minItems);
|
|
1367
|
-
function f() {
|
|
1368
|
-
if (!u.value || n.readOnly) return;
|
|
1369
|
-
let e = {};
|
|
1370
|
-
for (let t of n.field.fields) e[t.key] = t.default ?? "";
|
|
1371
|
-
r("update:modelValue", [...l.value, e]);
|
|
1372
|
-
}
|
|
1373
|
-
function b(e) {
|
|
1374
|
-
if (!d.value || n.readOnly) return;
|
|
1375
|
-
let t = [...l.value];
|
|
1376
|
-
t.splice(e, 1), r("update:modelValue", t);
|
|
1377
|
-
}
|
|
1378
|
-
function C(e, t, n) {
|
|
1379
|
-
let i = l.value.map((r, i) => i === e ? {
|
|
1380
|
-
...r,
|
|
1381
|
-
[t]: n
|
|
1382
|
-
} : r);
|
|
1383
|
-
r("update:modelValue", i);
|
|
1384
|
-
}
|
|
1385
|
-
return (t, n) => (o(), _(Q, {
|
|
1386
|
-
label: e.field.label,
|
|
1387
|
-
required: e.field.required,
|
|
1388
|
-
"read-only": e.readOnly
|
|
1389
|
-
}, {
|
|
1390
|
-
default: c(() => [y("div", yr, [
|
|
1391
|
-
(o(!0), p(w, null, i(l.value, (t, n) => (o(), p("div", {
|
|
1392
|
-
key: `${e.field.key}-${n}`,
|
|
1393
|
-
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
|
|
1394
|
-
}, [y("div", br, [y("span", xr, " #" + h(n + 1), 1), d.value && !e.readOnly ? (o(), p("button", {
|
|
1395
|
-
key: 0,
|
|
1396
|
-
type: "button",
|
|
1397
|
-
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)]",
|
|
1398
|
-
title: x(a).customBlocks.fields.removeItem,
|
|
1399
|
-
onClick: (e) => b(n)
|
|
1400
|
-
}, [E(x(We), {
|
|
1401
|
-
size: 12,
|
|
1402
|
-
"stroke-width": 2
|
|
1403
|
-
})], 8, Sr)) : g("", !0)]), (o(!0), p(w, null, i(e.field.fields, (r) => (o(), _(D(x(Pr)(r.type)), {
|
|
1404
|
-
key: r.key,
|
|
1405
|
-
field: r,
|
|
1406
|
-
"model-value": t[r.key],
|
|
1407
|
-
"read-only": e.readOnly,
|
|
1408
|
-
"onUpdate:modelValue": (e) => C(n, r.key, e)
|
|
1409
|
-
}, null, 8, [
|
|
1410
|
-
"field",
|
|
1411
|
-
"model-value",
|
|
1412
|
-
"read-only",
|
|
1413
|
-
"onUpdate:modelValue"
|
|
1414
|
-
]))), 128))]))), 128)),
|
|
1415
|
-
u.value && !e.readOnly ? (o(), p("button", {
|
|
1416
|
-
key: 0,
|
|
1417
|
-
type: "button",
|
|
1418
|
-
class: v(x(nt)),
|
|
1419
|
-
onClick: f
|
|
1420
|
-
}, [E(x(V), {
|
|
1421
|
-
size: 14,
|
|
1422
|
-
"stroke-width": 2
|
|
1423
|
-
}), m(" " + h(x(a).customBlocks.fields.addItem), 1)], 2)) : g("", !0),
|
|
1424
|
-
!u.value && !e.readOnly ? (o(), p("p", Cr, h(x(a).customBlocks.fields.maxItemsReached), 1)) : g("", !0),
|
|
1425
|
-
!d.value && !e.readOnly ? (o(), p("p", wr, h(x(s)(x(a).customBlocks.fields.minItemsRequired, { count: e.field.minItems ?? 0 })), 1)) : g("", !0)
|
|
1426
|
-
])]),
|
|
1427
|
-
_: 1
|
|
1428
|
-
}, 8, [
|
|
1429
|
-
"label",
|
|
1430
|
-
"required",
|
|
1431
|
-
"read-only"
|
|
1432
|
-
]));
|
|
1433
|
-
}
|
|
1434
|
-
}), Er = [
|
|
1435
|
-
"value",
|
|
1436
|
-
"disabled",
|
|
1437
|
-
"title"
|
|
1438
|
-
], Dr = ["value"], Or = /* @__PURE__ */ n({
|
|
1439
|
-
__name: "SelectField",
|
|
1440
|
-
props: {
|
|
1441
|
-
field: {},
|
|
1442
|
-
modelValue: {},
|
|
1443
|
-
readOnly: { type: Boolean }
|
|
1444
|
-
},
|
|
1445
|
-
emits: ["update:modelValue"],
|
|
1446
|
-
setup(e, { emit: t }) {
|
|
1447
|
-
let n = t, { t: r } = B();
|
|
1448
|
-
return (t, a) => (o(), _(Q, {
|
|
1449
|
-
label: e.field.label,
|
|
1450
|
-
required: e.field.required,
|
|
1451
|
-
"read-only": e.readOnly
|
|
1452
|
-
}, {
|
|
1453
|
-
default: c(() => [y("select", {
|
|
1454
|
-
class: v([x(G), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1455
|
-
value: e.modelValue,
|
|
1456
|
-
disabled: e.readOnly,
|
|
1457
|
-
title: e.readOnly ? x(r).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1458
|
-
onChange: a[0] ||= (t) => !e.readOnly && n("update:modelValue", t.target.value)
|
|
1459
|
-
}, [(o(!0), p(w, null, i(e.field.options, (e) => (o(), p("option", {
|
|
1460
|
-
key: e.value,
|
|
1461
|
-
value: e.value
|
|
1462
|
-
}, h(e.label), 9, Dr))), 128))], 42, Er)]),
|
|
1463
|
-
_: 1
|
|
1464
|
-
}, 8, [
|
|
1465
|
-
"label",
|
|
1466
|
-
"required",
|
|
1467
|
-
"read-only"
|
|
1468
|
-
]));
|
|
1469
|
-
}
|
|
1470
|
-
}), kr = [
|
|
1471
|
-
"value",
|
|
1472
|
-
"placeholder",
|
|
1473
|
-
"title"
|
|
1474
|
-
], Ar = /* @__PURE__ */ n({
|
|
1475
|
-
__name: "TextField",
|
|
1476
|
-
props: {
|
|
1477
|
-
field: {},
|
|
1478
|
-
modelValue: {},
|
|
1479
|
-
readOnly: { type: Boolean }
|
|
1480
|
-
},
|
|
1481
|
-
emits: ["update:modelValue"],
|
|
1482
|
-
setup(e, { emit: t }) {
|
|
1483
|
-
let n = t, { t: r } = B();
|
|
1484
|
-
return (t, i) => (o(), _(Q, {
|
|
1485
|
-
label: e.field.label,
|
|
1486
|
-
required: e.field.required,
|
|
1487
|
-
"read-only": e.readOnly
|
|
1488
|
-
}, {
|
|
1489
|
-
default: c(() => [e.readOnly ? (o(), p("input", {
|
|
1490
|
-
key: 0,
|
|
1491
|
-
type: "text",
|
|
1492
|
-
class: v([x(G), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1493
|
-
value: e.modelValue,
|
|
1494
|
-
placeholder: e.field.placeholder,
|
|
1495
|
-
disabled: "",
|
|
1496
|
-
title: x(r).customBlocks.dataSource.readOnlyTooltip
|
|
1497
|
-
}, null, 10, kr)) : (o(), _(J, {
|
|
1498
|
-
key: 1,
|
|
1499
|
-
"model-value": e.modelValue,
|
|
1500
|
-
placeholder: e.field.placeholder,
|
|
1501
|
-
"onUpdate:modelValue": i[0] ||= (e) => n("update:modelValue", e)
|
|
1502
|
-
}, null, 8, ["model-value", "placeholder"]))]),
|
|
1503
|
-
_: 1
|
|
1504
|
-
}, 8, [
|
|
1505
|
-
"label",
|
|
1506
|
-
"required",
|
|
1507
|
-
"read-only"
|
|
1508
|
-
]));
|
|
1509
|
-
}
|
|
1510
|
-
}), jr = [
|
|
1511
|
-
"value",
|
|
1512
|
-
"placeholder",
|
|
1513
|
-
"title"
|
|
1514
|
-
], Mr = "tpl:w-full tpl:resize-y tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:opacity-60 tpl:cursor-not-allowed", Nr = {
|
|
1515
|
-
text: Ar,
|
|
1516
|
-
textarea: /* @__PURE__ */ n({
|
|
1517
|
-
__name: "TextareaField",
|
|
1518
|
-
props: {
|
|
1519
|
-
field: {},
|
|
1520
|
-
modelValue: {},
|
|
1521
|
-
readOnly: { type: Boolean }
|
|
1522
|
-
},
|
|
1523
|
-
emits: ["update:modelValue"],
|
|
1524
|
-
setup(e, { emit: t }) {
|
|
1525
|
-
let n = t, { t: r } = B();
|
|
1526
|
-
return (t, i) => (o(), _(Q, {
|
|
1527
|
-
label: e.field.label,
|
|
1528
|
-
required: e.field.required,
|
|
1529
|
-
"read-only": e.readOnly
|
|
1530
|
-
}, {
|
|
1531
|
-
default: c(() => [e.readOnly ? (o(), p("textarea", {
|
|
1532
|
-
key: 0,
|
|
1533
|
-
value: e.modelValue,
|
|
1534
|
-
placeholder: e.field.placeholder,
|
|
1535
|
-
rows: "3",
|
|
1536
|
-
disabled: "",
|
|
1537
|
-
title: x(r).customBlocks.dataSource.readOnlyTooltip,
|
|
1538
|
-
class: v(Mr)
|
|
1539
|
-
}, null, 8, jr)) : (o(), _(ot, {
|
|
1540
|
-
key: 1,
|
|
1541
|
-
"model-value": e.modelValue,
|
|
1542
|
-
placeholder: e.field.placeholder,
|
|
1543
|
-
"onUpdate:modelValue": i[0] ||= (e) => n("update:modelValue", e)
|
|
1544
|
-
}, null, 8, ["model-value", "placeholder"]))]),
|
|
1545
|
-
_: 1
|
|
1546
|
-
}, 8, [
|
|
1547
|
-
"label",
|
|
1548
|
-
"required",
|
|
1549
|
-
"read-only"
|
|
1550
|
-
]));
|
|
1551
|
-
}
|
|
1552
|
-
}),
|
|
1553
|
-
image: gr,
|
|
1554
|
-
color: pr,
|
|
1555
|
-
number: vr,
|
|
1556
|
-
select: Or,
|
|
1557
|
-
boolean: sr,
|
|
1558
|
-
repeatable: Tr
|
|
1559
|
-
};
|
|
1560
|
-
function Pr(e) {
|
|
1561
|
-
return Nr[e] ?? Ar;
|
|
1562
|
-
}
|
|
1563
|
-
// src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
1564
|
-
var Fr = {
|
|
1565
|
-
key: 0,
|
|
1566
|
-
class: "tpl:p-4"
|
|
1567
|
-
}, Ir = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Lr = { key: 1 }, Rr = {
|
|
1568
|
-
key: 0,
|
|
1569
|
-
class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1570
|
-
}, zr = {
|
|
1571
|
-
key: 1,
|
|
1572
|
-
class: "tpl:mb-4"
|
|
1573
|
-
}, Br = {
|
|
1574
|
-
key: 1,
|
|
1575
|
-
class: "tpl:flex tpl:h-[32px] tpl:items-center"
|
|
1576
|
-
}, Vr = {
|
|
1577
|
-
key: 0,
|
|
1578
|
-
class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1579
|
-
}, Hr = {
|
|
1580
|
-
key: 2,
|
|
1581
|
-
class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
1582
|
-
}, Ur = /* @__PURE__ */ n({
|
|
1583
|
-
__name: "CustomBlockToolbar",
|
|
1584
|
-
props: { block: {} },
|
|
1585
|
-
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
1586
|
-
setup(e, { emit: t }) {
|
|
1587
|
-
let n = e, a = t, { t: s } = B(), c = r(Ae, []), l = S(() => c.find((e) => e.type === n.block.customType)), u = S(() => n.block), { isFetching: d, fetchError: f, fetch: v, hasDataSource: b, needsFetch: C } = oe({
|
|
1588
|
-
definition: l,
|
|
1589
|
-
block: u,
|
|
1590
|
-
onUpdate: (e, t) => {
|
|
1591
|
-
a("updateFieldValues", e), a("updateDataSourceFetched", t);
|
|
1592
|
-
}
|
|
1593
|
-
});
|
|
1594
|
-
function T(e) {
|
|
1595
|
-
return e.readOnly === !0 && b.value && !!n.block.dataSourceFetched;
|
|
1596
|
-
}
|
|
1597
|
-
function O(e, t) {
|
|
1598
|
-
a("updateFieldValues", {
|
|
1599
|
-
...n.block.fieldValues,
|
|
1600
|
-
[e]: t
|
|
1601
|
-
});
|
|
1602
|
-
}
|
|
1603
|
-
return (t, n) => l.value ? (o(), p("div", Lr, [
|
|
1604
|
-
l.value.description ? (o(), p("p", Rr, h(l.value.description), 1)) : g("", !0),
|
|
1605
|
-
x(b) ? (o(), p("div", zr, [x(C) && !x(d) ? (o(), p("button", {
|
|
1606
|
-
key: 0,
|
|
1607
|
-
type: "button",
|
|
1608
|
-
class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded-md tpl:px-3 tpl:py-2.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-on-primary)] tpl:transition-all tpl:bg-[var(--tpl-primary)]",
|
|
1609
|
-
onClick: n[0] ||= (...e) => x(v) && x(v)(...e)
|
|
1610
|
-
}, h(l.value?.dataSource?.label || x(s).customBlocks.dataSource.fetchButton), 1)) : (o(), p("div", Br, [x(d) ? (o(), p("div", Vr, h(x(s).customBlocks.dataSource.fetching), 1)) : (o(), p("button", {
|
|
1611
|
-
key: 1,
|
|
1612
|
-
type: "button",
|
|
1613
|
-
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)]",
|
|
1614
|
-
onClick: n[1] ||= (...e) => x(v) && x(v)(...e)
|
|
1615
|
-
}, [E(x(Be), { size: 12 }), m(" " + h(x(s).customBlocks.dataSource.changeButton), 1)]))])), x(f) ? (o(), p("p", Hr, [E(x(ze), {
|
|
1616
|
-
size: 14,
|
|
1617
|
-
class: "tpl:shrink-0"
|
|
1618
|
-
}), m(" " + h(x(s).customBlocks.dataSource.fetchError), 1)])) : g("", !0)])) : g("", !0),
|
|
1619
|
-
(o(!0), p(w, null, i(l.value.fields, (t) => (o(), _(D(x(Pr)(t.type)), {
|
|
1620
|
-
key: t.key,
|
|
1621
|
-
field: t,
|
|
1622
|
-
"model-value": e.block.fieldValues[t.key],
|
|
1623
|
-
"read-only": T(t),
|
|
1624
|
-
"onUpdate:modelValue": (e) => O(t.key, e)
|
|
1625
|
-
}, null, 8, [
|
|
1626
|
-
"field",
|
|
1627
|
-
"model-value",
|
|
1628
|
-
"read-only",
|
|
1629
|
-
"onUpdate:modelValue"
|
|
1630
|
-
]))), 128))
|
|
1631
|
-
])) : (o(), p("div", Fr, [y("p", Ir, h(x(s).customBlocks.toolbar.noDefinition), 1)]));
|
|
1632
|
-
}
|
|
1633
|
-
}), Wr = { class: "tpl:mb-3.5" }, Gr = { class: "tpl:mb-3.5" }, Kr = { class: "tpl:mb-3.5" }, qr = { class: "tpl:flex tpl:items-stretch" }, Jr = ["value"], Yr = /* @__PURE__ */ n({
|
|
1634
|
-
__name: "DividerToolbar",
|
|
1635
|
-
props: { block: {} },
|
|
1636
|
-
emits: ["update"],
|
|
1637
|
-
setup(e, { emit: t }) {
|
|
1638
|
-
let n = t, { t: r } = B();
|
|
1639
|
-
function i(e, t) {
|
|
1640
|
-
n("update", { [e]: t });
|
|
1641
|
-
}
|
|
1642
|
-
return (t, n) => (o(), p(w, null, [
|
|
1643
|
-
y("div", Wr, [y("label", { class: v(x(H)) }, h(x(r).divider.style), 3), E(Y, {
|
|
1644
|
-
options: [
|
|
1645
|
-
{
|
|
1646
|
-
value: "solid",
|
|
1647
|
-
label: x(r).divider.solid
|
|
1648
|
-
},
|
|
1649
|
-
{
|
|
1650
|
-
value: "dashed",
|
|
1651
|
-
label: x(r).divider.dashed
|
|
1652
|
-
},
|
|
1653
|
-
{
|
|
1654
|
-
value: "dotted",
|
|
1655
|
-
label: x(r).divider.dotted
|
|
1656
|
-
}
|
|
1657
|
-
],
|
|
1658
|
-
"model-value": e.block.lineStyle,
|
|
1659
|
-
"onUpdate:modelValue": n[0] ||= (e) => i("lineStyle", e)
|
|
1660
|
-
}, null, 8, ["options", "model-value"])]),
|
|
1661
|
-
y("div", Gr, [y("label", { class: v(x(H)) }, h(x(r).divider.color), 3), E(K, {
|
|
1662
|
-
"model-value": e.block.color,
|
|
1663
|
-
"onUpdate:modelValue": n[1] ||= (e) => i("color", e)
|
|
1664
|
-
}, null, 8, ["model-value"])]),
|
|
1665
|
-
y("div", Kr, [y("label", { class: v(x(H)) }, h(x(r).divider.thickness), 3), y("div", qr, [y("input", {
|
|
1666
|
-
type: "number",
|
|
1667
|
-
class: v(x(W)),
|
|
1668
|
-
value: e.block.thickness,
|
|
1669
|
-
min: "1",
|
|
1670
|
-
max: "10",
|
|
1671
|
-
onInput: n[2] ||= (e) => i("thickness", Number(e.target.value))
|
|
1672
|
-
}, null, 42, Jr), y("span", { class: v(x(U)) }, "px", 2)])])
|
|
1673
|
-
], 64));
|
|
1674
|
-
}
|
|
1675
|
-
}), Xr = { class: "tpl:mb-3.5" }, Zr = ["value"], Qr = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, $r = /* @__PURE__ */ n({
|
|
1676
|
-
__name: "HtmlToolbar",
|
|
1677
|
-
props: { block: {} },
|
|
1678
|
-
emits: ["update"],
|
|
1679
|
-
setup(e, { emit: t }) {
|
|
1680
|
-
let n = t, { t: r } = B();
|
|
1681
|
-
return (t, i) => (o(), p("div", Xr, [
|
|
1682
|
-
y("label", { class: v(x(H)) }, h(x(r).html.content), 3),
|
|
1683
|
-
y("textarea", {
|
|
1684
|
-
value: e.block.content,
|
|
1685
|
-
placeholder: "<div>...</div>",
|
|
1686
|
-
rows: "10",
|
|
1687
|
-
class: v(x(et)),
|
|
1688
|
-
onInput: i[0] ||= (e) => n("update", { content: e.target.value })
|
|
1689
|
-
}, null, 42, Zr),
|
|
1690
|
-
y("p", Qr, [E(x(Ye), {
|
|
1691
|
-
size: 12,
|
|
1692
|
-
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
1693
|
-
}), m(" " + h(x(r).html.sanitizationHint), 1)])
|
|
1694
|
-
]));
|
|
1695
|
-
}
|
|
1696
|
-
});
|
|
1697
|
-
// src/composables/useImageAspectLock.ts
|
|
1698
|
-
function ei(e) {
|
|
1699
|
-
let n = t(!1), r = t(null);
|
|
1700
|
-
l(() => e.block().id, () => {
|
|
1701
|
-
n.value = !1, r.value = null;
|
|
1702
|
-
});
|
|
1703
|
-
let i = S(() => fe(e.block()) ?? e.measured()), a = S(() => {
|
|
1704
|
-
let t = e.block().width;
|
|
1705
|
-
return t === "full" ? e.room() : t;
|
|
1706
|
-
}), o = S(() => {
|
|
1707
|
-
let e = i.value, t = a.value;
|
|
1708
|
-
return !e || t === null ? null : Math.round(t * e.height / e.width);
|
|
1709
|
-
}), s = S(() => i.value !== null), c = S(() => {
|
|
1710
|
-
let t = e.block().height;
|
|
1711
|
-
return t === void 0 || o.value !== null && Math.abs(o.value - t) <= 1;
|
|
1712
|
-
}), u = S(() => s.value && !n.value && c.value);
|
|
1713
|
-
function d() {
|
|
1714
|
-
if (fe(e.block())) return {};
|
|
1715
|
-
let t = e.measured();
|
|
1716
|
-
return t ? he(t) : {};
|
|
1717
|
-
}
|
|
1718
|
-
function f(t) {
|
|
1719
|
-
if (r.value = null, !t) return n.value = !0, null;
|
|
1720
|
-
if (n.value = !1, !s.value) return null;
|
|
1721
|
-
let i = { ...d() };
|
|
1722
|
-
return e.block().height !== void 0 && (i.height = void 0), Object.keys(i).length > 0 ? i : null;
|
|
1723
|
-
}
|
|
1724
|
-
function p(e) {
|
|
1725
|
-
return r.value = null, u.value ? {
|
|
1726
|
-
width: e,
|
|
1727
|
-
height: void 0,
|
|
1728
|
-
...d()
|
|
1729
|
-
} : { width: e };
|
|
1730
|
-
}
|
|
1731
|
-
function m(t) {
|
|
1732
|
-
let n = i.value;
|
|
1733
|
-
if (!u.value || !n || !Number.isFinite(t) || t <= 0) return null;
|
|
1734
|
-
let a = Math.round(t * n.width / n.height);
|
|
1735
|
-
if (a < 1) return null;
|
|
1736
|
-
let o = e.room();
|
|
1737
|
-
return o !== null && a >= o ? (r.value = Math.round(o * n.height / n.width), {
|
|
1738
|
-
width: "full",
|
|
1739
|
-
height: void 0,
|
|
1740
|
-
...d()
|
|
1741
|
-
}) : (r.value = null, {
|
|
1742
|
-
width: a,
|
|
1743
|
-
height: void 0,
|
|
1744
|
-
...d()
|
|
1745
|
-
});
|
|
1746
|
-
}
|
|
1747
|
-
return {
|
|
1748
|
-
available: s,
|
|
1749
|
-
locked: u,
|
|
1750
|
-
derivedHeight: o,
|
|
1751
|
-
cappedHeight: r,
|
|
1752
|
-
setLocked: f,
|
|
1753
|
-
widthUpdates: p,
|
|
1754
|
-
heightUpdates: m
|
|
1755
|
-
};
|
|
1756
|
-
}
|
|
1757
|
-
// src/components/toolbar/ImageToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
1758
|
-
var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
1759
|
-
key: 0,
|
|
1760
|
-
class: "tpl:mb-3.5"
|
|
1761
|
-
}, ri = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ii = [
|
|
1762
|
-
"value",
|
|
1763
|
-
"placeholder",
|
|
1764
|
-
"title"
|
|
1765
|
-
], ai = { class: "tpl:mb-3.5" }, oi = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, si = { class: "tpl:mb-3.5" }, ci = ["value"], li = { value: "full" }, ui = { value: "custom" }, di = {
|
|
1766
|
-
key: 0,
|
|
1767
|
-
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
1768
|
-
}, fi = ["value"], pi = { class: "tpl:mb-3.5" }, mi = {
|
|
1769
|
-
key: 0,
|
|
1770
|
-
class: "tpl:mb-1.5 tpl:flex tpl:items-center tpl:justify-between"
|
|
1771
|
-
}, hi = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, gi = { class: "tpl:flex tpl:items-stretch" }, _i = ["value"], vi = {
|
|
1772
|
-
key: 0,
|
|
1773
|
-
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
1774
|
-
role: "status",
|
|
1775
|
-
"data-testid": "image-height-capped"
|
|
1776
|
-
}, yi = ["value"], bi = { value: "auto" }, xi = { value: "custom" }, Si = {
|
|
1777
|
-
key: 4,
|
|
1778
|
-
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
1779
|
-
}, Ci = ["value"], wi = { class: "tpl:mb-3.5" }, Ti = { class: "tpl:mb-3.5" }, Ei = 350, Di = 200, Oi = /* @__PURE__ */ n({
|
|
1780
|
-
__name: "ImageToolbar",
|
|
1781
|
-
props: { block: {} },
|
|
1782
|
-
emits: ["update"],
|
|
1783
|
-
setup(e, { emit: n }) {
|
|
1784
|
-
let i = e, a = n, { t: s, format: l } = B(), u = r(we, ie.liquid), d = r(De, null), f = r(Se, void 0), b = t(!1), C = t(!1), { start: T } = be(() => {
|
|
1785
|
-
b.value = !1, C.value = !1;
|
|
1786
|
-
}, 1e3, { immediate: !1 }), D = [
|
|
1787
|
-
300,
|
|
1788
|
-
400,
|
|
1789
|
-
500
|
|
1790
|
-
], O = S(() => {
|
|
1791
|
-
let e = i.block.width;
|
|
1792
|
-
return e === "full" ? "full" : D.includes(e) ? String(e) : "custom";
|
|
1793
|
-
}), k = S(() => typeof i.block.height == "number" ? "custom" : "auto");
|
|
1794
|
-
function A(e, t) {
|
|
1795
|
-
a("update", { [e]: t });
|
|
1796
|
-
}
|
|
1797
|
-
function j(e) {
|
|
1798
|
-
if (e === "custom") {
|
|
1799
|
-
let e = i.block.width;
|
|
1800
|
-
(typeof e != "number" || D.includes(e)) && a("update", R.widthUpdates(Ei));
|
|
1801
|
-
} else a("update", R.widthUpdates(e === "full" ? "full" : Number(e)));
|
|
1802
|
-
}
|
|
1803
|
-
function N(e) {
|
|
1804
|
-
A("height", e === "custom" ? Di : void 0);
|
|
1805
|
-
}
|
|
1806
|
-
function P(e) {
|
|
1807
|
-
let t = Number(e);
|
|
1808
|
-
!Number.isFinite(t) || t <= 0 || A("height", t);
|
|
1809
|
-
}
|
|
1810
|
-
function ee(e) {
|
|
1811
|
-
A("borderRadius", M(e) === null ? void 0 : e);
|
|
1812
|
-
}
|
|
1813
|
-
function F(e) {
|
|
1814
|
-
let t = Number(e);
|
|
1815
|
-
!Number.isFinite(t) || t <= 0 || a("update", R.widthUpdates(t));
|
|
1816
|
-
}
|
|
1817
|
-
function te(e) {
|
|
1818
|
-
e !== i.block.src && a("update", {
|
|
1819
|
-
src: e,
|
|
1820
|
-
...he(null)
|
|
1821
|
-
});
|
|
1822
|
-
}
|
|
1823
|
-
function ne(e) {
|
|
1824
|
-
a("update", {
|
|
1825
|
-
src: e.url,
|
|
1826
|
-
...he(de(e.width, e.height))
|
|
1827
|
-
}), e.alt && (A("alt", e.alt), C.value = !0), b.value = !0, T();
|
|
1828
|
-
}
|
|
1829
|
-
let I = t(), re = S(() => L(i.block.src, u)), { canBrowse: ae, isUploading: oe, showOverlay: se, openMediaBrowser: ce } = me({
|
|
1830
|
-
target: I,
|
|
1831
|
-
blocked: re,
|
|
1832
|
-
apply: ne
|
|
1833
|
-
}), ue = ye(() => re.value || !i.block.src || fe(i.block) ? void 0 : i.block.src), ge = yn(() => ue.value), _e = S(() => d ? pe(d.content.value, i.block.id, f) : null), R = ei({
|
|
1834
|
-
block: () => i.block,
|
|
1835
|
-
room: () => _e.value,
|
|
1836
|
-
measured: () => ge.value
|
|
1837
|
-
}), { available: ve, locked: z, derivedHeight: xe, cappedHeight: Ce } = R;
|
|
1838
|
-
function Te() {
|
|
1839
|
-
let e = R.setLocked(!z.value);
|
|
1840
|
-
e && a("update", e);
|
|
1841
|
-
}
|
|
1842
|
-
let Ee = t(null);
|
|
1843
|
-
function Oe(e) {
|
|
1844
|
-
Ee.value = e;
|
|
1845
|
-
let t = R.heightUpdates(Number(e));
|
|
1846
|
-
t && a("update", t);
|
|
1847
|
-
}
|
|
1848
|
-
return (t, n) => (o(), p(w, null, [
|
|
1849
|
-
y("div", ti, [y("label", { class: v(x(H)) }, h(x(s).image.imageUrl), 3), y("div", {
|
|
1850
|
-
ref_key: "dropZoneRef",
|
|
1851
|
-
ref: I,
|
|
1852
|
-
class: "tpl:relative"
|
|
1853
|
-
}, [
|
|
1854
|
-
x(se) ? (o(), _(le, {
|
|
1855
|
-
key: 0,
|
|
1856
|
-
uploading: x(oe)
|
|
1857
|
-
}, null, 8, ["uploading"])) : g("", !0),
|
|
1858
|
-
E(J, {
|
|
1859
|
-
"model-value": e.block.src,
|
|
1860
|
-
type: "url",
|
|
1861
|
-
placeholder: x(s).image.imageUrlPlaceholder,
|
|
1862
|
-
pulse: b.value,
|
|
1863
|
-
"onUpdate:modelValue": n[0] ||= (e) => te(e)
|
|
1864
|
-
}, null, 8, [
|
|
1865
|
-
"model-value",
|
|
1866
|
-
"placeholder",
|
|
1867
|
-
"pulse"
|
|
1868
|
-
]),
|
|
1869
|
-
x(ae) ? (o(), p("button", {
|
|
1870
|
-
key: 1,
|
|
1871
|
-
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",
|
|
1872
|
-
style: {
|
|
1873
|
-
"border-color": "var(--tpl-border)",
|
|
1874
|
-
color: "var(--tpl-primary)",
|
|
1875
|
-
"background-color": "var(--tpl-bg)"
|
|
1876
|
-
},
|
|
1877
|
-
onClick: n[1] ||= (...e) => x(ce) && x(ce)(...e)
|
|
1878
|
-
}, [E(x(Ke), {
|
|
1879
|
-
size: 14,
|
|
1880
|
-
"stroke-width": 1.5
|
|
1881
|
-
}), m(" " + h(x(s).image.browseMedia), 1)])) : g("", !0)
|
|
1882
|
-
], 512)]),
|
|
1883
|
-
x(L)(e.block.src, x(u)) ? (o(), p("div", ni, [y("label", { class: v(x(H)) }, [m(h(x(s).image.placeholderUrl) + " ", 1), y("span", ri, h(x(s).image.optional), 1)], 2), y("input", {
|
|
1884
|
-
type: "url",
|
|
1885
|
-
class: v(x(G)),
|
|
1886
|
-
value: e.block.placeholderUrl || "",
|
|
1887
|
-
placeholder: x(s).image.placeholderUrlPlaceholder,
|
|
1888
|
-
title: x(s).image.placeholderUrlTooltip,
|
|
1889
|
-
onInput: n[2] ||= (e) => A("placeholderUrl", e.target.value)
|
|
1890
|
-
}, null, 42, ii)])) : g("", !0),
|
|
1891
|
-
y("div", ai, [
|
|
1892
|
-
y("label", { class: v(x(H)) }, h(x(s).image.altText), 3),
|
|
1893
|
-
E(J, {
|
|
1894
|
-
"model-value": e.block.alt,
|
|
1895
|
-
type: "text",
|
|
1896
|
-
placeholder: x(s).image.altTextPlaceholder,
|
|
1897
|
-
pulse: C.value,
|
|
1898
|
-
disabled: e.block.decorative === !0,
|
|
1899
|
-
"onUpdate:modelValue": n[3] ||= (e) => A("alt", e)
|
|
1900
|
-
}, null, 8, [
|
|
1901
|
-
"model-value",
|
|
1902
|
-
"placeholder",
|
|
1903
|
-
"pulse",
|
|
1904
|
-
"disabled"
|
|
1905
|
-
]),
|
|
1906
|
-
E(q, {
|
|
1907
|
-
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
1908
|
-
"model-value": e.block.decorative === !0,
|
|
1909
|
-
label: x(s).image.decorative,
|
|
1910
|
-
"onUpdate:modelValue": n[4] ||= (e) => A("decorative", e)
|
|
1911
|
-
}, {
|
|
1912
|
-
default: c(() => [y("span", null, [m(h(x(s).image.decorative) + " ", 1), y("span", oi, h(x(s).image.decorativeHint), 1)])]),
|
|
1913
|
-
_: 1
|
|
1914
|
-
}, 8, ["model-value", "label"])
|
|
1915
|
-
]),
|
|
1916
|
-
y("div", si, [
|
|
1917
|
-
y("label", { class: v(x(H)) }, h(x(s).image.width), 3),
|
|
1918
|
-
y("select", {
|
|
1919
|
-
class: v(x(G)),
|
|
1920
|
-
"data-testid": "image-width-mode",
|
|
1921
|
-
value: O.value,
|
|
1922
|
-
onChange: n[5] ||= (e) => j(e.target.value)
|
|
1923
|
-
}, [
|
|
1924
|
-
y("option", li, h(x(s).image.fullWidth), 1),
|
|
1925
|
-
n[15] ||= y("option", { value: "300" }, "300px", -1),
|
|
1926
|
-
n[16] ||= y("option", { value: "400" }, "400px", -1),
|
|
1927
|
-
n[17] ||= y("option", { value: "500" }, "500px", -1),
|
|
1928
|
-
y("option", ui, h(x(s).image.widthCustom), 1)
|
|
1929
|
-
], 42, ci),
|
|
1930
|
-
O.value === "custom" ? (o(), p("div", di, [y("input", {
|
|
1931
|
-
type: "number",
|
|
1932
|
-
"data-testid": "image-width-input",
|
|
1933
|
-
class: v(x(W)),
|
|
1934
|
-
value: typeof e.block.width == "number" ? e.block.width : Ei,
|
|
1935
|
-
min: "20",
|
|
1936
|
-
onInput: n[6] ||= (e) => F(e.target.value)
|
|
1937
|
-
}, null, 42, fi), y("span", { class: v(x(U)) }, "px", 2)])) : g("", !0)
|
|
1938
|
-
]),
|
|
1939
|
-
y("div", pi, [
|
|
1940
|
-
x(ve) ? (o(), p("div", mi, [y("span", hi, h(x(s).image.height), 1), E(mt, {
|
|
1941
|
-
linked: x(z),
|
|
1942
|
-
"link-label": x(s).image.lockAspectRatio,
|
|
1943
|
-
"unlink-label": x(s).image.unlockAspectRatio,
|
|
1944
|
-
testid: "image-aspect-lock",
|
|
1945
|
-
onToggle: Te
|
|
1946
|
-
}, null, 8, [
|
|
1947
|
-
"linked",
|
|
1948
|
-
"link-label",
|
|
1949
|
-
"unlink-label"
|
|
1950
|
-
])])) : (o(), p("label", {
|
|
1951
|
-
key: 1,
|
|
1952
|
-
class: v(x(H))
|
|
1953
|
-
}, h(x(s).image.height), 3)),
|
|
1954
|
-
x(z) ? (o(), p(w, { key: 2 }, [y("div", gi, [y("input", {
|
|
1955
|
-
type: "number",
|
|
1956
|
-
"data-testid": "image-locked-height-input",
|
|
1957
|
-
class: v(x(W)),
|
|
1958
|
-
value: Ee.value ?? x(xe) ?? "",
|
|
1959
|
-
min: "1",
|
|
1960
|
-
onInput: n[7] ||= (e) => Oe(e.target.value),
|
|
1961
|
-
onBlur: n[8] ||= (e) => Ee.value = null
|
|
1962
|
-
}, null, 42, _i), y("span", { class: v(x(U)) }, "px", 2)]), x(Ce) === null ? g("", !0) : (o(), p("p", vi, h(x(l)(x(s).image.heightCapped, { height: x(Ce) })), 1))], 64)) : g("", !0),
|
|
1963
|
-
x(z) ? g("", !0) : (o(), p("select", {
|
|
1964
|
-
key: 3,
|
|
1965
|
-
class: v(x(G)),
|
|
1966
|
-
"data-testid": "image-height-mode",
|
|
1967
|
-
value: k.value,
|
|
1968
|
-
onChange: n[9] ||= (e) => N(e.target.value)
|
|
1969
|
-
}, [y("option", bi, h(x(s).image.heightAuto), 1), y("option", xi, h(x(s).image.heightCustom), 1)], 42, yi)),
|
|
1970
|
-
!x(z) && k.value === "custom" ? (o(), p("div", Si, [y("input", {
|
|
1971
|
-
type: "number",
|
|
1972
|
-
"data-testid": "image-height-input",
|
|
1973
|
-
class: v(x(W)),
|
|
1974
|
-
value: e.block.height,
|
|
1975
|
-
min: "20",
|
|
1976
|
-
onInput: n[10] ||= (e) => P(e.target.value)
|
|
1977
|
-
}, null, 42, Ci), y("span", { class: v(x(U)) }, "px", 2)])) : g("", !0)
|
|
1978
|
-
]),
|
|
1979
|
-
E(Dt, {
|
|
1980
|
-
"model-value": e.block.borderRadius,
|
|
1981
|
-
label: x(s).image.borderRadius,
|
|
1982
|
-
"testid-prefix": "image",
|
|
1983
|
-
"onUpdate:modelValue": ee
|
|
1984
|
-
}, null, 8, ["model-value", "label"]),
|
|
1985
|
-
E(xt, {
|
|
1986
|
-
"model-value": e.block.border,
|
|
1987
|
-
"testid-prefix": "image",
|
|
1988
|
-
"onUpdate:modelValue": n[11] ||= (e) => A("border", e)
|
|
1989
|
-
}, null, 8, ["model-value"]),
|
|
1990
|
-
y("div", wi, [y("label", { class: v(x(H)) }, h(x(s).title.align), 3), E(Y, {
|
|
1991
|
-
options: [
|
|
1992
|
-
{
|
|
1993
|
-
value: "left",
|
|
1994
|
-
label: x(s).title.alignLeft
|
|
1995
|
-
},
|
|
1996
|
-
{
|
|
1997
|
-
value: "center",
|
|
1998
|
-
label: x(s).title.alignCenter
|
|
1999
|
-
},
|
|
2000
|
-
{
|
|
2001
|
-
value: "right",
|
|
2002
|
-
label: x(s).title.alignRight
|
|
2003
|
-
}
|
|
2004
|
-
],
|
|
2005
|
-
"model-value": e.block.align,
|
|
2006
|
-
"onUpdate:modelValue": n[12] ||= (e) => A("align", e)
|
|
2007
|
-
}, null, 8, ["options", "model-value"])]),
|
|
2008
|
-
y("div", Ti, [
|
|
2009
|
-
y("label", { class: v(x(H)) }, h(x(s).image.linkUrl), 3),
|
|
2010
|
-
E(J, {
|
|
2011
|
-
"model-value": e.block.linkUrl || "",
|
|
2012
|
-
type: "url",
|
|
2013
|
-
placeholder: x(s).image.imageUrlPlaceholder,
|
|
2014
|
-
"onUpdate:modelValue": n[13] ||= (e) => A("linkUrl", e)
|
|
2015
|
-
}, null, 8, ["model-value", "placeholder"]),
|
|
2016
|
-
e.block.linkUrl ? (o(), _(q, {
|
|
2017
|
-
key: 0,
|
|
2018
|
-
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2019
|
-
"model-value": e.block.linkOpenInNewTab ?? !1,
|
|
2020
|
-
label: x(s).image.openInNewTab,
|
|
2021
|
-
"onUpdate:modelValue": n[14] ||= (e) => A("linkOpenInNewTab", e)
|
|
2022
|
-
}, null, 8, ["model-value", "label"])) : g("", !0)
|
|
2023
|
-
])
|
|
2024
|
-
], 64));
|
|
2025
|
-
}
|
|
2026
|
-
}), ki = { class: "tpl:mb-3.5" }, $ = /* @__PURE__ */ n({
|
|
2027
|
-
__name: "FieldRow",
|
|
2028
|
-
props: { label: {} },
|
|
2029
|
-
setup(e) {
|
|
2030
|
-
return (t, n) => (o(), p("div", ki, [e.label ? (o(), p("label", {
|
|
2031
|
-
key: 0,
|
|
2032
|
-
class: v(x(H))
|
|
2033
|
-
}, h(e.label), 3)) : g("", !0), a(t.$slots, "default")]));
|
|
2034
|
-
}
|
|
2035
|
-
}), Ai = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, ji = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Mi = [
|
|
2036
|
-
"value",
|
|
2037
|
-
"placeholder",
|
|
2038
|
-
"onInput"
|
|
2039
|
-
], Ni = ["title", "onClick"], Pi = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-x-3 tpl:gap-y-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Fi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ii = ["value"], Li = { value: "" }, Ri = ["value"], zi = ["value"], Bi = /* @__PURE__ */ n({
|
|
2040
|
-
__name: "MenuToolbar",
|
|
2041
|
-
props: {
|
|
2042
|
-
block: {},
|
|
2043
|
-
fontFamilies: {}
|
|
2044
|
-
},
|
|
2045
|
-
emits: ["update"],
|
|
2046
|
-
setup(e, { emit: t }) {
|
|
2047
|
-
let n = e, r = t, { t: a } = B(), s = S(() => [
|
|
2048
|
-
{
|
|
2049
|
-
key: "openInNewTab",
|
|
2050
|
-
label: a.menu.openInNewTab
|
|
2051
|
-
},
|
|
2052
|
-
{
|
|
2053
|
-
key: "bold",
|
|
2054
|
-
label: a.menu.bold
|
|
2055
|
-
},
|
|
2056
|
-
{
|
|
2057
|
-
key: "underline",
|
|
2058
|
-
label: a.menu.underline
|
|
2059
|
-
}
|
|
2060
|
-
]), l = S(() => [
|
|
2061
|
-
{
|
|
2062
|
-
value: "left",
|
|
2063
|
-
label: a.title.alignLeft,
|
|
2064
|
-
icon: Ge
|
|
2065
|
-
},
|
|
2066
|
-
{
|
|
2067
|
-
value: "center",
|
|
2068
|
-
label: a.title.alignCenter,
|
|
2069
|
-
icon: Qe
|
|
2070
|
-
},
|
|
2071
|
-
{
|
|
2072
|
-
value: "right",
|
|
2073
|
-
label: a.title.alignRight,
|
|
2074
|
-
icon: Ve
|
|
2075
|
-
}
|
|
2076
|
-
]);
|
|
2077
|
-
function u(e, t) {
|
|
2078
|
-
r("update", { [e]: t });
|
|
2079
|
-
}
|
|
2080
|
-
function d() {
|
|
2081
|
-
let e = {
|
|
2082
|
-
id: I(),
|
|
2083
|
-
text: "",
|
|
2084
|
-
url: "",
|
|
2085
|
-
openInNewTab: !1,
|
|
2086
|
-
bold: !1,
|
|
2087
|
-
underline: !1
|
|
2088
|
-
};
|
|
2089
|
-
r("update", { items: [...n.block.items, e] });
|
|
2090
|
-
}
|
|
2091
|
-
function f(e, t, i) {
|
|
2092
|
-
let a = n.block.items.map((n) => n.id === e ? {
|
|
2093
|
-
...n,
|
|
2094
|
-
[t]: i
|
|
2095
|
-
} : n);
|
|
2096
|
-
r("update", { items: a });
|
|
2097
|
-
}
|
|
2098
|
-
function g(e) {
|
|
2099
|
-
r("update", { items: n.block.items.filter((t) => t.id !== e) });
|
|
2100
|
-
}
|
|
2101
|
-
return (t, n) => (o(), p(w, null, [
|
|
2102
|
-
E($, { label: x(a).menu.items }, {
|
|
2103
|
-
default: c(() => [y("div", Ai, [(o(!0), p(w, null, i(e.block.items, (t) => (o(), p("div", {
|
|
2104
|
-
key: t.id,
|
|
2105
|
-
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"
|
|
2106
|
-
}, [
|
|
2107
|
-
y("div", ji, [y("input", {
|
|
2108
|
-
type: "text",
|
|
2109
|
-
class: v([x(G), "tpl:flex-1"]),
|
|
2110
|
-
value: t.text,
|
|
2111
|
-
placeholder: x(a).menu.text,
|
|
2112
|
-
onInput: (e) => f(t.id, "text", e.target.value)
|
|
2113
|
-
}, null, 42, Mi), y("button", {
|
|
2114
|
-
class: v(x(tt)),
|
|
2115
|
-
title: x(a).menu.removeItem,
|
|
2116
|
-
onClick: (e) => g(t.id)
|
|
2117
|
-
}, [E(x(Ze), {
|
|
2118
|
-
size: 14,
|
|
2119
|
-
"stroke-width": 2
|
|
2120
|
-
})], 10, Ni)]),
|
|
2121
|
-
E(J, {
|
|
2122
|
-
"model-value": t.url,
|
|
2123
|
-
type: "url",
|
|
2124
|
-
placeholder: x(a).menu.urlPlaceholder,
|
|
2125
|
-
"onUpdate:modelValue": (e) => f(t.id, "url", e)
|
|
2126
|
-
}, null, 8, [
|
|
2127
|
-
"model-value",
|
|
2128
|
-
"placeholder",
|
|
2129
|
-
"onUpdate:modelValue"
|
|
2130
|
-
]),
|
|
2131
|
-
y("div", Pi, [(o(!0), p(w, null, i(s.value, (e) => (o(), _(q, {
|
|
2132
|
-
key: e.key,
|
|
2133
|
-
"model-value": t[e.key],
|
|
2134
|
-
label: e.label,
|
|
2135
|
-
"onUpdate:modelValue": (n) => f(t.id, e.key, n)
|
|
2136
|
-
}, null, 8, [
|
|
2137
|
-
"model-value",
|
|
2138
|
-
"label",
|
|
2139
|
-
"onUpdate:modelValue"
|
|
2140
|
-
]))), 128))]),
|
|
2141
|
-
y("div", Fi, [y("label", { class: v([x(H), "tpl:!mb-0"]) }, h(x(a).menu.color), 3), E(K, {
|
|
2142
|
-
"swatch-only": "",
|
|
2143
|
-
"model-value": t.color || e.block.linkColor || e.block.color || "",
|
|
2144
|
-
"onUpdate:modelValue": (e) => f(t.id, "color", e)
|
|
2145
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])])
|
|
2146
|
-
]))), 128)), y("button", {
|
|
2147
|
-
class: v(x(nt)),
|
|
2148
|
-
onClick: d
|
|
2149
|
-
}, [E(x(V), {
|
|
2150
|
-
size: 14,
|
|
2151
|
-
"stroke-width": 2
|
|
2152
|
-
}), m(" " + h(x(a).menu.addItem), 1)], 2)])]),
|
|
2153
|
-
_: 1
|
|
2154
|
-
}, 8, ["label"]),
|
|
2155
|
-
E($, { label: x(a).menu.fontFamily }, {
|
|
2156
|
-
default: c(() => [y("select", {
|
|
2157
|
-
class: v(x(G)),
|
|
2158
|
-
value: x(ct)(e.block.fontFamily),
|
|
2159
|
-
onChange: n[0] ||= (e) => u("fontFamily", e.target.value || void 0)
|
|
2160
|
-
}, [y("option", Li, h(x(a).title.inheritFont), 1), (o(!0), p(w, null, i(e.fontFamilies, (e) => (o(), p("option", {
|
|
2161
|
-
key: e.value,
|
|
2162
|
-
value: e.value
|
|
2163
|
-
}, h(e.label), 9, Ri))), 128))], 42, Ii)]),
|
|
2164
|
-
_: 1
|
|
2165
|
-
}, 8, ["label"]),
|
|
2166
|
-
E($, { label: x(a).menu.fontSize }, {
|
|
2167
|
-
default: c(() => [E(X, {
|
|
2168
|
-
"model-value": e.block.fontSize,
|
|
2169
|
-
min: 8,
|
|
2170
|
-
max: 48,
|
|
2171
|
-
suffix: "px",
|
|
2172
|
-
"onUpdate:modelValue": n[1] ||= (e) => u("fontSize", e)
|
|
2173
|
-
}, null, 8, ["model-value"])]),
|
|
2174
|
-
_: 1
|
|
2175
|
-
}, 8, ["label"]),
|
|
2176
|
-
E($, { label: x(a).menu.color }, {
|
|
2177
|
-
default: c(() => [E(K, {
|
|
2178
|
-
"model-value": e.block.color ?? "",
|
|
2179
|
-
"onUpdate:modelValue": n[2] ||= (e) => u("color", e || void 0)
|
|
2180
|
-
}, null, 8, ["model-value"])]),
|
|
2181
|
-
_: 1
|
|
2182
|
-
}, 8, ["label"]),
|
|
2183
|
-
E($, { label: x(a).menu.linkColor }, {
|
|
2184
|
-
default: c(() => [E(K, {
|
|
2185
|
-
"model-value": e.block.linkColor || e.block.color || "",
|
|
2186
|
-
"onUpdate:modelValue": n[3] ||= (e) => u("linkColor", e || void 0)
|
|
2187
|
-
}, null, 8, ["model-value"])]),
|
|
2188
|
-
_: 1
|
|
2189
|
-
}, 8, ["label"]),
|
|
2190
|
-
E($, { label: x(a).menu.textAlign }, {
|
|
2191
|
-
default: c(() => [E(Y, {
|
|
2192
|
-
options: l.value,
|
|
2193
|
-
"model-value": e.block.textAlign,
|
|
2194
|
-
"onUpdate:modelValue": n[4] ||= (e) => u("textAlign", e)
|
|
2195
|
-
}, null, 8, ["options", "model-value"])]),
|
|
2196
|
-
_: 1
|
|
2197
|
-
}, 8, ["label"]),
|
|
2198
|
-
E($, { label: x(a).menu.separator }, {
|
|
2199
|
-
default: c(() => [y("input", {
|
|
2200
|
-
type: "text",
|
|
2201
|
-
class: v(x(G)),
|
|
2202
|
-
value: e.block.separator,
|
|
2203
|
-
onInput: n[5] ||= (e) => u("separator", e.target.value)
|
|
2204
|
-
}, null, 42, zi)]),
|
|
2205
|
-
_: 1
|
|
2206
|
-
}, 8, ["label"]),
|
|
2207
|
-
E($, { label: x(a).menu.separatorColor }, {
|
|
2208
|
-
default: c(() => [E(K, {
|
|
2209
|
-
"model-value": e.block.separatorColor,
|
|
2210
|
-
"onUpdate:modelValue": n[6] ||= (e) => u("separatorColor", e)
|
|
2211
|
-
}, null, 8, ["model-value"])]),
|
|
2212
|
-
_: 1
|
|
2213
|
-
}, 8, ["label"]),
|
|
2214
|
-
E($, { label: x(a).menu.spacing }, {
|
|
2215
|
-
default: c(() => [E(X, {
|
|
2216
|
-
"model-value": e.block.spacing,
|
|
2217
|
-
min: 0,
|
|
2218
|
-
max: 50,
|
|
2219
|
-
suffix: "px",
|
|
2220
|
-
"onUpdate:modelValue": n[7] ||= (e) => u("spacing", e)
|
|
2221
|
-
}, null, 8, ["model-value"])]),
|
|
2222
|
-
_: 1
|
|
2223
|
-
}, 8, ["label"])
|
|
2224
|
-
], 64));
|
|
2225
|
-
}
|
|
2226
|
-
}), Vi = {
|
|
2227
|
-
class: "tpl:mb-3.5",
|
|
2228
|
-
"data-testid": "paragraph-spacing"
|
|
2229
|
-
}, Hi = { class: "tpl:flex tpl:items-stretch" }, Ui = ["value"], Wi = /* @__PURE__ */ n({
|
|
2230
|
-
__name: "ParagraphToolbar",
|
|
2231
|
-
props: { block: {} },
|
|
2232
|
-
emits: ["update"],
|
|
2233
|
-
setup(e, { emit: t }) {
|
|
2234
|
-
let n = t, { t: r } = B();
|
|
2235
|
-
return (t, i) => (o(), p("div", Vi, [y("label", { class: v(x(H)) }, h(x(r).paragraph.paragraphSpacing), 3), y("div", Hi, [y("input", {
|
|
2236
|
-
type: "number",
|
|
2237
|
-
class: v(x(W)),
|
|
2238
|
-
value: e.block.paragraphSpacing ?? x(te).paragraphGap,
|
|
2239
|
-
min: "0",
|
|
2240
|
-
max: "64",
|
|
2241
|
-
onInput: i[0] ||= (e) => n("update", { paragraphSpacing: Number(e.target.value) })
|
|
2242
|
-
}, null, 42, Ui), y("span", { class: v(x(U)) }, "px", 2)])]));
|
|
2243
|
-
}
|
|
2244
|
-
});
|
|
2245
|
-
// src/utils/rebalanceColumnChildren.ts
|
|
2246
|
-
function Gi(e, t) {
|
|
2247
|
-
let n = O(t);
|
|
2248
|
-
if (e.length === n) return e;
|
|
2249
|
-
if (e.length < n) {
|
|
2250
|
-
let t = Array.from({ length: n - e.length }, () => []);
|
|
2251
|
-
return [...e, ...t];
|
|
2252
|
-
}
|
|
2253
|
-
let r = e.slice(0, n), i = e.slice(n).flat(), a = [...r[n - 1], ...i];
|
|
2254
|
-
return [...r.slice(0, n - 1), a];
|
|
2255
|
-
}
|
|
2256
|
-
// src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2257
|
-
var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
2258
|
-
key: 0,
|
|
2259
|
-
class: "tpl:mb-3.5"
|
|
2260
|
-
}, Xi = {
|
|
2261
|
-
key: 2,
|
|
2262
|
-
class: "tpl:mb-3.5"
|
|
2263
|
-
}, Zi = {
|
|
2264
|
-
key: 0,
|
|
2265
|
-
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
2266
|
-
}, Qi = {
|
|
2267
|
-
key: 1,
|
|
2268
|
-
class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
|
|
2269
|
-
}, $i = /* @__PURE__ */ n({
|
|
2270
|
-
__name: "SectionToolbar",
|
|
2271
|
-
props: { block: {} },
|
|
2272
|
-
emits: ["update"],
|
|
2273
|
-
setup(e, { emit: t }) {
|
|
2274
|
-
let n = e, a = t, { t: s } = B(), c = r(Se, void 0), l = r(Te, void 0), u = c !== void 0 && re(c), d = S(() => l !== !1 || !!n.block.wrapper), f = S(() => u && !n.block.wrapper), m = S(() => u && d.value), b = S(() => k(n.block)?.applied === !0), C = S(() => [
|
|
2275
|
-
{
|
|
2276
|
-
value: "1",
|
|
2277
|
-
label: s.section.column1
|
|
2278
|
-
},
|
|
2279
|
-
{
|
|
2280
|
-
value: "2",
|
|
2281
|
-
label: s.section.column2
|
|
2282
|
-
},
|
|
2283
|
-
{
|
|
2284
|
-
value: "3",
|
|
2285
|
-
label: s.section.column3
|
|
2286
|
-
},
|
|
2287
|
-
{
|
|
2288
|
-
value: "1-2",
|
|
2289
|
-
label: s.section.ratio12
|
|
2290
|
-
},
|
|
2291
|
-
{
|
|
2292
|
-
value: "2-1",
|
|
2293
|
-
label: s.section.ratio21
|
|
2294
|
-
}
|
|
2295
|
-
]);
|
|
2296
|
-
function T(e) {
|
|
2297
|
-
let t = e.target.value, r = Gi(n.block.children, t);
|
|
2298
|
-
a("update", {
|
|
2299
|
-
columns: t,
|
|
2300
|
-
children: r
|
|
2301
|
-
});
|
|
2302
|
-
}
|
|
2303
|
-
function D(e) {
|
|
2304
|
-
a("update", { stackOnMobile: e });
|
|
2305
|
-
}
|
|
2306
|
-
function O(e) {
|
|
2307
|
-
a("update", { borderRadius: e });
|
|
2308
|
-
}
|
|
2309
|
-
function A(e) {
|
|
2310
|
-
a("update", { wrapper: e ? { padding: {
|
|
2311
|
-
top: 20,
|
|
2312
|
-
right: 20,
|
|
2313
|
-
bottom: 20,
|
|
2314
|
-
left: 20
|
|
2315
|
-
} } : void 0 });
|
|
2316
|
-
}
|
|
2317
|
-
function j(e) {
|
|
2318
|
-
a("update", { wrapper: {
|
|
2319
|
-
...n.block.wrapper,
|
|
2320
|
-
...e
|
|
2321
|
-
} });
|
|
2322
|
-
}
|
|
2323
|
-
function M(e) {
|
|
2324
|
-
j({ padding: e });
|
|
2325
|
-
}
|
|
2326
|
-
function N(e) {
|
|
2327
|
-
j({ borderRadius: e });
|
|
2328
|
-
}
|
|
2329
|
-
return (t, n) => (o(), p(w, null, [
|
|
2330
|
-
y("div", Ki, [y("label", { class: v(x(H)) }, h(x(s).section.columns), 3), y("select", {
|
|
2331
|
-
class: v(x(G)),
|
|
2332
|
-
value: e.block.columns,
|
|
2333
|
-
onChange: T
|
|
2334
|
-
}, [(o(!0), p(w, null, i(C.value, (e) => (o(), p("option", {
|
|
2335
|
-
key: e.value,
|
|
2336
|
-
value: e.value
|
|
2337
|
-
}, h(e.label), 9, Ji))), 128))], 42, qi)]),
|
|
2338
|
-
e.block.columns === "1" ? g("", !0) : (o(), p("div", Yi, [E(q, {
|
|
2339
|
-
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2340
|
-
"model-value": e.block.stackOnMobile !== !1,
|
|
2341
|
-
label: x(s).section.stackOnMobile,
|
|
2342
|
-
"onUpdate:modelValue": n[0] ||= (e) => D(e)
|
|
2343
|
-
}, null, 8, ["model-value", "label"])])),
|
|
2344
|
-
E(Dt, {
|
|
2345
|
-
"model-value": e.block.borderRadius,
|
|
2346
|
-
label: x(s).section.borderRadius,
|
|
2347
|
-
max: 50,
|
|
2348
|
-
"testid-prefix": "section",
|
|
2349
|
-
"onUpdate:modelValue": O
|
|
2350
|
-
}, null, 8, ["model-value", "label"]),
|
|
2351
|
-
b.value ? g("", !0) : (o(), _(xt, {
|
|
2352
|
-
key: 1,
|
|
2353
|
-
"model-value": e.block.border,
|
|
2354
|
-
"testid-prefix": "section",
|
|
2355
|
-
"onUpdate:modelValue": n[1] ||= (e) => a("update", { border: e })
|
|
2356
|
-
}, null, 8, ["model-value"])),
|
|
2357
|
-
d.value ? (o(), p("div", Xi, [
|
|
2358
|
-
E(q, {
|
|
2359
|
-
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2360
|
-
"model-value": !!e.block.wrapper,
|
|
2361
|
-
label: x(s).section.wrapperEnable,
|
|
2362
|
-
disabled: f.value,
|
|
2363
|
-
"onUpdate:modelValue": n[2] ||= (e) => A(e)
|
|
2364
|
-
}, null, 8, [
|
|
2365
|
-
"model-value",
|
|
2366
|
-
"label",
|
|
2367
|
-
"disabled"
|
|
2368
|
-
]),
|
|
2369
|
-
m.value ? (o(), p("p", Zi, h(x(s).section.wrapperLayoutConflict), 1)) : g("", !0),
|
|
2370
|
-
e.block.wrapper ? (o(), p("div", Qi, [
|
|
2371
|
-
y("div", null, [y("label", { class: v(x(H)) }, h(x(s).blockSettings.color), 3), E(K, {
|
|
2372
|
-
"model-value": e.block.wrapper.backgroundColor ?? "",
|
|
2373
|
-
"allow-transparent": "",
|
|
2374
|
-
"onUpdate:modelValue": n[3] ||= (e) => j({ backgroundColor: e })
|
|
2375
|
-
}, null, 8, ["model-value"])]),
|
|
2376
|
-
E(kn, {
|
|
2377
|
-
"model-value": e.block.wrapper.backgroundImage,
|
|
2378
|
-
"testid-prefix": "section-wrapper",
|
|
2379
|
-
"onUpdate:modelValue": n[4] ||= (e) => j({ backgroundImage: e })
|
|
2380
|
-
}, null, 8, ["model-value"]),
|
|
2381
|
-
E(vn, {
|
|
2382
|
-
label: x(s).blockSettings.padding,
|
|
2383
|
-
"model-value": e.block.wrapper.padding ?? {
|
|
2384
|
-
top: 0,
|
|
2385
|
-
right: 0,
|
|
2386
|
-
bottom: 0,
|
|
2387
|
-
left: 0
|
|
2388
|
-
},
|
|
2389
|
-
"onUpdate:modelValue": M
|
|
2390
|
-
}, null, 8, ["label", "model-value"]),
|
|
2391
|
-
E(Dt, {
|
|
2392
|
-
"model-value": e.block.wrapper.borderRadius,
|
|
2393
|
-
label: x(s).section.borderRadius,
|
|
2394
|
-
max: 50,
|
|
2395
|
-
"testid-prefix": "section-wrapper",
|
|
2396
|
-
"onUpdate:modelValue": N
|
|
2397
|
-
}, null, 8, ["model-value", "label"])
|
|
2398
|
-
])) : g("", !0)
|
|
2399
|
-
])) : g("", !0)
|
|
2400
|
-
], 64));
|
|
2401
|
-
}
|
|
2402
|
-
}), ea = { class: "tpl:mb-3.5" }, ta = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, na = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ra = ["value", "onChange"], ia = ["value"], aa = ["title", "onClick"], oa = { class: "tpl:mb-3.5" }, sa = ["value"], ca = { value: "solid" }, la = { value: "outlined" }, ua = { value: "rounded" }, da = { value: "square" }, fa = { value: "circle" }, pa = { value: "plain" }, ma = { class: "tpl:mb-3.5" }, ha = ["value"], ga = { value: "brand" }, _a = { value: "dark" }, va = { value: "light" }, ya = { class: "tpl:mb-3.5" }, ba = { class: "tpl:mb-3.5" }, xa = { class: "tpl:flex tpl:items-stretch" }, Sa = ["value"], Ca = { class: "tpl:mb-3.5" }, wa = /* @__PURE__ */ n({
|
|
2403
|
-
__name: "SocialToolbar",
|
|
2404
|
-
props: { block: {} },
|
|
2405
|
-
emits: ["update"],
|
|
2406
|
-
setup(e, { emit: t }) {
|
|
2407
|
-
let n = e, r = t, { t: a } = B();
|
|
2408
|
-
function s(e, t) {
|
|
2409
|
-
r("update", { [e]: t });
|
|
2410
|
-
}
|
|
2411
|
-
function c() {
|
|
2412
|
-
let e = {
|
|
2413
|
-
id: I(),
|
|
2414
|
-
platform: "facebook",
|
|
2415
|
-
url: ""
|
|
2416
|
-
};
|
|
2417
|
-
r("update", { icons: [...n.block.icons, e] });
|
|
2418
|
-
}
|
|
2419
|
-
function l(e, t, i) {
|
|
2420
|
-
let a = n.block.icons.map((n) => n.id === e ? {
|
|
2421
|
-
...n,
|
|
2422
|
-
[t]: i
|
|
2423
|
-
} : n);
|
|
2424
|
-
r("update", { icons: a });
|
|
2425
|
-
}
|
|
2426
|
-
function u(e) {
|
|
2427
|
-
r("update", { icons: n.block.icons.filter((t) => t.id !== e) });
|
|
2428
|
-
}
|
|
2429
|
-
return (t, n) => (o(), p(w, null, [
|
|
2430
|
-
y("div", ea, [y("label", { class: v(x(H)) }, h(x(a).social.icons), 3), y("div", ta, [(o(!0), p(w, null, i(e.block.icons, (e) => (o(), p("div", {
|
|
2431
|
-
key: e.id,
|
|
2432
|
-
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"
|
|
2433
|
-
}, [y("div", na, [y("select", {
|
|
2434
|
-
"data-testid": "social-platform-select",
|
|
2435
|
-
class: v([x(G), "tpl:flex-1"]),
|
|
2436
|
-
value: e.platform,
|
|
2437
|
-
onChange: (t) => l(e.id, "platform", t.target.value)
|
|
2438
|
-
}, [(o(!0), p(w, null, i(x(R), (e) => (o(), p("option", {
|
|
2439
|
-
key: e,
|
|
2440
|
-
value: e
|
|
2441
|
-
}, h(x(a).social.platforms[e]), 9, ia))), 128))], 42, ra), y("button", {
|
|
2442
|
-
class: v(x(tt)),
|
|
2443
|
-
title: x(a).social.removeIcon,
|
|
2444
|
-
onClick: (t) => u(e.id)
|
|
2445
|
-
}, [E(x(Ze), {
|
|
2446
|
-
size: 14,
|
|
2447
|
-
"stroke-width": 2
|
|
2448
|
-
})], 10, aa)]), E(J, {
|
|
2449
|
-
"model-value": e.url,
|
|
2450
|
-
type: "url",
|
|
2451
|
-
placeholder: x(a).social.urlPlaceholder,
|
|
2452
|
-
"onUpdate:modelValue": (t) => l(e.id, "url", t)
|
|
2453
|
-
}, null, 8, [
|
|
2454
|
-
"model-value",
|
|
2455
|
-
"placeholder",
|
|
2456
|
-
"onUpdate:modelValue"
|
|
2457
|
-
])]))), 128)), y("button", {
|
|
2458
|
-
class: v(x(nt)),
|
|
2459
|
-
onClick: c
|
|
2460
|
-
}, [E(x(V), {
|
|
2461
|
-
size: 14,
|
|
2462
|
-
"stroke-width": 2
|
|
2463
|
-
}), m(" " + h(x(a).social.addIcon), 1)], 2)])]),
|
|
2464
|
-
y("div", oa, [y("label", { class: v(x(H)) }, h(x(a).social.style), 3), y("select", {
|
|
2465
|
-
class: v(x(G)),
|
|
2466
|
-
value: e.block.iconStyle,
|
|
2467
|
-
onChange: n[0] ||= (e) => s("iconStyle", e.target.value)
|
|
2468
|
-
}, [
|
|
2469
|
-
y("option", ca, h(x(a).social.styleSolid), 1),
|
|
2470
|
-
y("option", la, h(x(a).social.styleOutlined), 1),
|
|
2471
|
-
y("option", ua, h(x(a).social.styleRounded), 1),
|
|
2472
|
-
y("option", da, h(x(a).social.styleSquare), 1),
|
|
2473
|
-
y("option", fa, h(x(a).social.styleCircle), 1),
|
|
2474
|
-
y("option", pa, h(x(a).social.stylePlain), 1)
|
|
2475
|
-
], 42, sa)]),
|
|
2476
|
-
y("div", ma, [y("label", { class: v(x(H)) }, h(x(a).social.color), 3), y("select", {
|
|
2477
|
-
"data-testid": "social-tone-select",
|
|
2478
|
-
class: v(x(G)),
|
|
2479
|
-
value: e.block.iconTone ?? "brand",
|
|
2480
|
-
onChange: n[1] ||= (e) => s("iconTone", e.target.value)
|
|
2481
|
-
}, [
|
|
2482
|
-
y("option", ga, h(x(a).social.colorBrand), 1),
|
|
2483
|
-
y("option", _a, h(x(a).social.colorDark), 1),
|
|
2484
|
-
y("option", va, h(x(a).social.colorLight), 1)
|
|
2485
|
-
], 42, ha)]),
|
|
2486
|
-
y("div", ya, [y("label", { class: v(x(H)) }, h(x(a).social.size), 3), E(Y, {
|
|
2487
|
-
options: [
|
|
2488
|
-
{
|
|
2489
|
-
value: "small",
|
|
2490
|
-
label: x(a).social.sizeSmall
|
|
2491
|
-
},
|
|
2492
|
-
{
|
|
2493
|
-
value: "medium",
|
|
2494
|
-
label: x(a).social.sizeMedium
|
|
2495
|
-
},
|
|
2496
|
-
{
|
|
2497
|
-
value: "large",
|
|
2498
|
-
label: x(a).social.sizeLarge
|
|
2499
|
-
}
|
|
2500
|
-
],
|
|
2501
|
-
"model-value": e.block.iconSize,
|
|
2502
|
-
"onUpdate:modelValue": n[2] ||= (e) => s("iconSize", e)
|
|
2503
|
-
}, null, 8, ["options", "model-value"])]),
|
|
2504
|
-
y("div", ba, [y("label", { class: v(x(H)) }, h(x(a).social.spacing), 3), y("div", xa, [y("input", {
|
|
2505
|
-
type: "number",
|
|
2506
|
-
class: v(x(W)),
|
|
2507
|
-
value: e.block.spacing,
|
|
2508
|
-
min: "0",
|
|
2509
|
-
max: "50",
|
|
2510
|
-
onInput: n[3] ||= (e) => s("spacing", Number(e.target.value))
|
|
2511
|
-
}, null, 42, Sa), y("span", { class: v(x(U)) }, "px", 2)])]),
|
|
2512
|
-
y("div", Ca, [y("label", { class: v(x(H)) }, h(x(a).social.align), 3), E(Y, {
|
|
2513
|
-
options: [
|
|
2514
|
-
{
|
|
2515
|
-
value: "left",
|
|
2516
|
-
label: x(a).title.alignLeft,
|
|
2517
|
-
icon: x(Ge)
|
|
2518
|
-
},
|
|
2519
|
-
{
|
|
2520
|
-
value: "center",
|
|
2521
|
-
label: x(a).title.alignCenter,
|
|
2522
|
-
icon: x(Qe)
|
|
2523
|
-
},
|
|
2524
|
-
{
|
|
2525
|
-
value: "right",
|
|
2526
|
-
label: x(a).title.alignRight,
|
|
2527
|
-
icon: x(Ve)
|
|
2528
|
-
}
|
|
2529
|
-
],
|
|
2530
|
-
"model-value": e.block.align,
|
|
2531
|
-
"onUpdate:modelValue": n[4] ||= (e) => s("align", e)
|
|
2532
|
-
}, null, 8, ["options", "model-value"])])
|
|
2533
|
-
], 64));
|
|
2534
|
-
}
|
|
2535
|
-
}), Ta = { class: "tpl:mb-3.5" }, Ea = { class: "tpl:flex tpl:items-stretch" }, Da = ["value"], Oa = ["value"], ka = /* @__PURE__ */ n({
|
|
2536
|
-
__name: "SpacerToolbar",
|
|
2537
|
-
props: { block: {} },
|
|
2538
|
-
emits: ["update"],
|
|
2539
|
-
setup(e, { emit: t }) {
|
|
2540
|
-
let n = t, { t: r } = B();
|
|
2541
|
-
return (t, i) => (o(), p("div", Ta, [
|
|
2542
|
-
y("label", { class: v(x(H)) }, h(x(r).spacer.height), 3),
|
|
2543
|
-
y("div", Ea, [y("input", {
|
|
2544
|
-
type: "number",
|
|
2545
|
-
class: v(x(W)),
|
|
2546
|
-
value: e.block.height,
|
|
2547
|
-
min: "10",
|
|
2548
|
-
max: "100",
|
|
2549
|
-
onInput: i[0] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
2550
|
-
}, null, 42, Da), y("span", { class: v(x(U)) }, "px", 2)]),
|
|
2551
|
-
y("input", {
|
|
2552
|
-
type: "range",
|
|
2553
|
-
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
2554
|
-
value: e.block.height,
|
|
2555
|
-
min: "10",
|
|
2556
|
-
max: "100",
|
|
2557
|
-
onInput: i[1] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
2558
|
-
}, null, 40, Oa)
|
|
2559
|
-
]));
|
|
2560
|
-
}
|
|
2561
|
-
}), Aa = { class: "tpl:mb-3.5" }, ja = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Ma = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Na = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Pa = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Fa = ["disabled"], Ia = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, La = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Ra = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, za = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Ba = ["disabled"], Va = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Ha = { class: "tpl:mb-3.5" }, Ua = {
|
|
2562
|
-
key: 0,
|
|
2563
|
-
class: "tpl:mb-3.5"
|
|
2564
|
-
}, Wa = { class: "tpl:mb-3.5" }, Ga = { class: "tpl:mb-3.5" }, Ka = { class: "tpl:flex tpl:items-stretch" }, qa = ["value"], Ja = { class: "tpl:mb-3.5" }, Ya = { class: "tpl:flex tpl:items-stretch" }, Xa = ["value"], Za = { class: "tpl:mb-3.5" }, Qa = ["value"], $a = { value: "" }, eo = ["value"], to = { class: "tpl:mb-3.5" }, no = { class: "tpl:flex tpl:items-stretch" }, ro = ["value"], io = { class: "tpl:mb-3.5" }, ao = { class: "tpl:mb-3.5" }, oo = /* @__PURE__ */ n({
|
|
2565
|
-
__name: "TableToolbar",
|
|
2566
|
-
props: {
|
|
2567
|
-
block: {},
|
|
2568
|
-
fontFamilies: {}
|
|
2569
|
-
},
|
|
2570
|
-
emits: ["update"],
|
|
2571
|
-
setup(e, { emit: t }) {
|
|
2572
|
-
let n = e, r = t, { t: a } = B(), s = S(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
|
|
2573
|
-
function c(e, t) {
|
|
2574
|
-
r("update", { [e]: t });
|
|
2575
|
-
}
|
|
2576
|
-
function l() {
|
|
2577
|
-
let e = n.block.rows.length > 0 ? n.block.rows[0].cells.length : 3, t = {
|
|
2578
|
-
id: I(),
|
|
2579
|
-
cells: Array.from({ length: e }, () => ({
|
|
2580
|
-
id: I(),
|
|
2581
|
-
content: ""
|
|
2582
|
-
}))
|
|
2583
|
-
};
|
|
2584
|
-
r("update", { rows: [...n.block.rows, t] });
|
|
2585
|
-
}
|
|
2586
|
-
function u(e) {
|
|
2587
|
-
r("update", { rows: n.block.rows.filter((t) => t.id !== e) });
|
|
2588
|
-
}
|
|
2589
|
-
function d() {
|
|
2590
|
-
let e = n.block.rows.map((e) => ({
|
|
2591
|
-
...e,
|
|
2592
|
-
cells: [...e.cells, {
|
|
2593
|
-
id: I(),
|
|
2594
|
-
content: ""
|
|
2595
|
-
}]
|
|
2596
|
-
}));
|
|
2597
|
-
r("update", { rows: e });
|
|
2598
|
-
}
|
|
2599
|
-
function f(e) {
|
|
2600
|
-
let t = n.block.rows.map((t) => ({
|
|
2601
|
-
...t,
|
|
2602
|
-
cells: t.cells.filter((t, n) => n !== e)
|
|
2603
|
-
}));
|
|
2604
|
-
r("update", { rows: t });
|
|
2605
|
-
}
|
|
2606
|
-
return (t, n) => (o(), p(w, null, [
|
|
2607
|
-
y("div", Aa, [y("label", { class: v(x(H)) }, h(x(a).table.dimensions), 3), y("div", ja, [y("div", Ma, [y("span", Na, h(x(a).table.rows), 1), y("div", Pa, [
|
|
2608
|
-
y("button", {
|
|
2609
|
-
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",
|
|
2610
|
-
disabled: e.block.rows.length <= 1,
|
|
2611
|
-
onClick: n[0] ||= (t) => u(e.block.rows[e.block.rows.length - 1].id)
|
|
2612
|
-
}, [E(x(Ue), {
|
|
2613
|
-
size: 12,
|
|
2614
|
-
"stroke-width": 2
|
|
2615
|
-
})], 8, Fa),
|
|
2616
|
-
y("span", Ia, h(e.block.rows.length), 1),
|
|
2617
|
-
y("button", {
|
|
2618
|
-
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)]",
|
|
2619
|
-
onClick: l
|
|
2620
|
-
}, [E(x(V), {
|
|
2621
|
-
size: 12,
|
|
2622
|
-
"stroke-width": 2
|
|
2623
|
-
})])
|
|
2624
|
-
])]), y("div", La, [y("span", Ra, h(x(a).table.columns), 1), y("div", za, [
|
|
2625
|
-
y("button", {
|
|
2626
|
-
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",
|
|
2627
|
-
disabled: s.value <= 1,
|
|
2628
|
-
onClick: n[1] ||= (e) => f(s.value - 1)
|
|
2629
|
-
}, [E(x(Ue), {
|
|
2630
|
-
size: 12,
|
|
2631
|
-
"stroke-width": 2
|
|
2632
|
-
})], 8, Ba),
|
|
2633
|
-
y("span", Va, h(s.value), 1),
|
|
2634
|
-
y("button", {
|
|
2635
|
-
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)]",
|
|
2636
|
-
onClick: d
|
|
2637
|
-
}, [E(x(V), {
|
|
2638
|
-
size: 12,
|
|
2639
|
-
"stroke-width": 2
|
|
2640
|
-
})])
|
|
2641
|
-
])])])]),
|
|
2642
|
-
y("div", Ha, [E(q, {
|
|
2643
|
-
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
2644
|
-
"model-value": e.block.hasHeaderRow,
|
|
2645
|
-
label: x(a).table.hasHeaderRow,
|
|
2646
|
-
"onUpdate:modelValue": n[2] ||= (e) => c("hasHeaderRow", e)
|
|
2647
|
-
}, null, 8, ["model-value", "label"])]),
|
|
2648
|
-
e.block.hasHeaderRow ? (o(), p("div", Ua, [y("label", { class: v(x(H)) }, h(x(a).table.headerBackgroundColor), 3), E(K, {
|
|
2649
|
-
"model-value": e.block.headerBackgroundColor ?? "",
|
|
2650
|
-
"seed-color": x(rt),
|
|
2651
|
-
placeholder: x(a).table.noHeaderBg,
|
|
2652
|
-
"onUpdate:modelValue": n[3] ||= (e) => c("headerBackgroundColor", e || null)
|
|
2653
|
-
}, null, 8, [
|
|
2654
|
-
"model-value",
|
|
2655
|
-
"seed-color",
|
|
2656
|
-
"placeholder"
|
|
2657
|
-
])])) : g("", !0),
|
|
2658
|
-
y("div", Wa, [y("label", { class: v(x(H)) }, h(x(a).table.borderColor), 3), E(K, {
|
|
2659
|
-
"model-value": e.block.borderColor,
|
|
2660
|
-
"onUpdate:modelValue": n[4] ||= (e) => c("borderColor", e)
|
|
2661
|
-
}, null, 8, ["model-value"])]),
|
|
2662
|
-
y("div", Ga, [y("label", { class: v(x(H)) }, h(x(a).table.borderWidth), 3), y("div", Ka, [y("input", {
|
|
2663
|
-
type: "number",
|
|
2664
|
-
class: v(x(W)),
|
|
2665
|
-
value: e.block.borderWidth,
|
|
2666
|
-
min: "0",
|
|
2667
|
-
max: "10",
|
|
2668
|
-
onInput: n[5] ||= (e) => c("borderWidth", Number(e.target.value))
|
|
2669
|
-
}, null, 42, qa), y("span", { class: v(x(U)) }, "px", 2)])]),
|
|
2670
|
-
y("div", Ja, [y("label", { class: v(x(H)) }, h(x(a).table.cellPadding), 3), y("div", Ya, [y("input", {
|
|
2671
|
-
type: "number",
|
|
2672
|
-
class: v(x(W)),
|
|
2673
|
-
value: e.block.cellPadding,
|
|
2674
|
-
min: "0",
|
|
2675
|
-
max: "30",
|
|
2676
|
-
onInput: n[6] ||= (e) => c("cellPadding", Number(e.target.value))
|
|
2677
|
-
}, null, 42, Xa), y("span", { class: v(x(U)) }, "px", 2)])]),
|
|
2678
|
-
y("div", Za, [y("label", { class: v(x(H)) }, h(x(a).table.fontFamily), 3), y("select", {
|
|
2679
|
-
class: v(x(G)),
|
|
2680
|
-
value: x(ct)(e.block.fontFamily),
|
|
2681
|
-
onChange: n[7] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
2682
|
-
}, [y("option", $a, h(x(a).title.inheritFont), 1), (o(!0), p(w, null, i(e.fontFamilies, (e) => (o(), p("option", {
|
|
2683
|
-
key: e.value,
|
|
2684
|
-
value: e.value
|
|
2685
|
-
}, h(e.label), 9, eo))), 128))], 42, Qa)]),
|
|
2686
|
-
y("div", to, [y("label", { class: v(x(H)) }, h(x(a).table.fontSize), 3), y("div", no, [y("input", {
|
|
2687
|
-
type: "number",
|
|
2688
|
-
class: v(x(W)),
|
|
2689
|
-
value: e.block.fontSize,
|
|
2690
|
-
min: "10",
|
|
2691
|
-
max: "32",
|
|
2692
|
-
onInput: n[8] ||= (e) => c("fontSize", Number(e.target.value))
|
|
2693
|
-
}, null, 42, ro), y("span", { class: v(x(U)) }, "px", 2)])]),
|
|
2694
|
-
y("div", io, [y("label", { class: v(x(H)) }, h(x(a).table.color), 3), E(K, {
|
|
2695
|
-
"model-value": e.block.color ?? "",
|
|
2696
|
-
"onUpdate:modelValue": n[9] ||= (e) => c("color", e || void 0)
|
|
2697
|
-
}, null, 8, ["model-value"])]),
|
|
2698
|
-
y("div", ao, [y("label", { class: v(x(H)) }, h(x(a).table.textAlign), 3), E(Y, {
|
|
2699
|
-
options: [
|
|
2700
|
-
{
|
|
2701
|
-
value: "left",
|
|
2702
|
-
label: x(a).title.alignLeft,
|
|
2703
|
-
icon: x(Ge)
|
|
2704
|
-
},
|
|
2705
|
-
{
|
|
2706
|
-
value: "center",
|
|
2707
|
-
label: x(a).title.alignCenter,
|
|
2708
|
-
icon: x(Qe)
|
|
2709
|
-
},
|
|
2710
|
-
{
|
|
2711
|
-
value: "right",
|
|
2712
|
-
label: x(a).title.alignRight,
|
|
2713
|
-
icon: x(Ve)
|
|
2714
|
-
}
|
|
2715
|
-
],
|
|
2716
|
-
"model-value": e.block.textAlign,
|
|
2717
|
-
"onUpdate:modelValue": n[10] ||= (e) => c("textAlign", e)
|
|
2718
|
-
}, null, 8, ["options", "model-value"])])
|
|
2719
|
-
], 64));
|
|
2720
|
-
}
|
|
2721
|
-
}), so = { class: "tpl:mb-3.5" }, co = ["value"], lo = { value: 1 }, uo = { value: 2 }, fo = { value: 3 }, po = { value: 4 }, mo = { class: "tpl:mb-3.5" }, ho = ["value"], go = { value: "" }, _o = ["value"], vo = { class: "tpl:mb-3.5" }, yo = { class: "tpl:mb-3.5" }, bo = /* @__PURE__ */ n({
|
|
2722
|
-
__name: "TitleToolbar",
|
|
2723
|
-
props: {
|
|
2724
|
-
block: {},
|
|
2725
|
-
fontFamilies: {}
|
|
2726
|
-
},
|
|
2727
|
-
emits: ["update"],
|
|
2728
|
-
setup(e, { emit: t }) {
|
|
2729
|
-
let n = t, { t: r } = B();
|
|
2730
|
-
function a(e, t) {
|
|
2731
|
-
n("update", { [e]: t });
|
|
2732
|
-
}
|
|
2733
|
-
return (t, n) => (o(), p(w, null, [
|
|
2734
|
-
y("div", so, [y("label", { class: v(x(H)) }, h(x(r).title.level), 3), y("select", {
|
|
2735
|
-
class: v(x(G)),
|
|
2736
|
-
value: e.block.level,
|
|
2737
|
-
onChange: n[0] ||= (e) => a("level", Number(e.target.value))
|
|
2738
|
-
}, [
|
|
2739
|
-
y("option", lo, h(x(r).title.heading1), 1),
|
|
2740
|
-
y("option", uo, h(x(r).title.heading2), 1),
|
|
2741
|
-
y("option", fo, h(x(r).title.heading3), 1),
|
|
2742
|
-
y("option", po, h(x(r).title.heading4), 1)
|
|
2743
|
-
], 42, co)]),
|
|
2744
|
-
y("div", mo, [y("label", { class: v(x(H)) }, h(x(r).title.fontFamily), 3), y("select", {
|
|
2745
|
-
class: v(x(G)),
|
|
2746
|
-
value: x(ct)(e.block.fontFamily),
|
|
2747
|
-
onChange: n[1] ||= (e) => a("fontFamily", e.target.value || void 0)
|
|
2748
|
-
}, [y("option", go, h(x(r).title.inheritFont), 1), (o(!0), p(w, null, i(e.fontFamilies, (e) => (o(), p("option", {
|
|
2749
|
-
key: e.value,
|
|
2750
|
-
value: e.value
|
|
2751
|
-
}, h(e.label), 9, _o))), 128))], 42, ho)]),
|
|
2752
|
-
y("div", vo, [y("label", { class: v(x(H)) }, h(x(r).title.color), 3), E(K, {
|
|
2753
|
-
"model-value": e.block.color ?? "",
|
|
2754
|
-
"onUpdate:modelValue": n[2] ||= (e) => a("color", e || void 0)
|
|
2755
|
-
}, null, 8, ["model-value"])]),
|
|
2756
|
-
y("div", yo, [y("label", { class: v(x(H)) }, h(x(r).title.align), 3), E(Y, {
|
|
2757
|
-
options: [
|
|
2758
|
-
{
|
|
2759
|
-
value: "left",
|
|
2760
|
-
label: x(r).title.alignLeft,
|
|
2761
|
-
icon: x(Ge)
|
|
2762
|
-
},
|
|
2763
|
-
{
|
|
2764
|
-
value: "center",
|
|
2765
|
-
label: x(r).title.alignCenter,
|
|
2766
|
-
icon: x(Qe)
|
|
2767
|
-
},
|
|
2768
|
-
{
|
|
2769
|
-
value: "right",
|
|
2770
|
-
label: x(r).title.alignRight,
|
|
2771
|
-
icon: x(Ve)
|
|
2772
|
-
}
|
|
2773
|
-
],
|
|
2774
|
-
"model-value": e.block.textAlign,
|
|
2775
|
-
"onUpdate:modelValue": n[3] ||= (e) => a("textAlign", e)
|
|
2776
|
-
}, null, 8, ["options", "model-value"])])
|
|
2777
|
-
], 64));
|
|
2778
|
-
}
|
|
2779
|
-
}), xo = { class: "tpl:mb-3.5" }, So = {
|
|
2780
|
-
key: 0,
|
|
2781
|
-
class: "tpl:mb-3.5"
|
|
2782
|
-
}, Co = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, wo = [
|
|
2783
|
-
"value",
|
|
2784
|
-
"placeholder",
|
|
2785
|
-
"title"
|
|
2786
|
-
], To = { class: "tpl:mb-3.5" }, Eo = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Do = { class: "tpl:mb-3.5" }, Oo = { class: "tpl:mb-3.5" }, ko = ["value"], Ao = { value: "full" }, jo = { value: "custom" }, Mo = {
|
|
2787
|
-
key: 0,
|
|
2788
|
-
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2789
|
-
}, No = ["value"], Po = { class: "tpl:mb-3.5" }, Fo = ["value"], Io = { value: "auto" }, Lo = { value: "custom" }, Ro = {
|
|
2790
|
-
key: 0,
|
|
2791
|
-
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2792
|
-
}, zo = ["value"], Bo = { class: "tpl:mb-3.5" }, Vo = 350, Ho = 200, Uo = /* @__PURE__ */ n({
|
|
2793
|
-
__name: "VideoToolbar",
|
|
2794
|
-
props: { block: {} },
|
|
2795
|
-
emits: ["update"],
|
|
2796
|
-
setup(e, { emit: n }) {
|
|
2797
|
-
let i = e, a = n, { t: s } = B(), c = r(Ce, null), l = r(we, ie.liquid), u = ve(), d = [
|
|
2798
|
-
300,
|
|
2799
|
-
400,
|
|
2800
|
-
500
|
|
2801
|
-
], f = S(() => !!c), b = S(() => L(i.block.url, l)), C = S(() => {
|
|
2802
|
-
let e = i.block.width;
|
|
2803
|
-
return e === "full" ? "full" : d.includes(e) ? String(e) : "custom";
|
|
2804
|
-
}), T = S(() => typeof i.block.height == "number" ? "custom" : "auto"), D = t(!1), { start: O } = be(() => {
|
|
2805
|
-
D.value = !1;
|
|
2806
|
-
}, 1e3, { immediate: !1 });
|
|
2807
|
-
function k(e, t) {
|
|
2808
|
-
a("update", { [e]: t });
|
|
2809
|
-
}
|
|
2810
|
-
function A(e) {
|
|
2811
|
-
if (e === "custom") {
|
|
2812
|
-
let e = i.block.width;
|
|
2813
|
-
(typeof e != "number" || d.includes(e)) && k("width", Vo);
|
|
2814
|
-
} else k("width", e === "full" ? "full" : Number(e));
|
|
2815
|
-
}
|
|
2816
|
-
function j(e) {
|
|
2817
|
-
let t = Number(e);
|
|
2818
|
-
!Number.isFinite(t) || t <= 0 || k("width", t);
|
|
2819
|
-
}
|
|
2820
|
-
function M(e) {
|
|
2821
|
-
k("height", e === "custom" ? Ho : void 0);
|
|
2822
|
-
}
|
|
2823
|
-
function N(e) {
|
|
2824
|
-
let t = Number(e);
|
|
2825
|
-
!Number.isFinite(t) || t <= 0 || k("height", t);
|
|
2826
|
-
}
|
|
2827
|
-
async function P() {
|
|
2828
|
-
let e = await c?.({ accept: ["images"] });
|
|
2829
|
-
u.alive && e && (k("thumbnailUrl", e.url), D.value = !0, O());
|
|
2830
|
-
}
|
|
2831
|
-
return (t, n) => (o(), p(w, null, [
|
|
2832
|
-
y("div", xo, [
|
|
2833
|
-
y("label", { class: v(x(H)) }, h(x(s).video.videoUrl), 3),
|
|
2834
|
-
E(J, {
|
|
2835
|
-
"model-value": e.block.url,
|
|
2836
|
-
type: "url",
|
|
2837
|
-
placeholder: x(s).video.videoUrlPlaceholder,
|
|
2838
|
-
"onUpdate:modelValue": n[0] ||= (e) => k("url", e)
|
|
2839
|
-
}, null, 8, ["model-value", "placeholder"]),
|
|
2840
|
-
e.block.url ? (o(), _(q, {
|
|
2841
|
-
key: 0,
|
|
2842
|
-
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2843
|
-
"model-value": e.block.openInNewTab ?? !1,
|
|
2844
|
-
label: x(s).video.openInNewTab,
|
|
2845
|
-
"onUpdate:modelValue": n[1] ||= (e) => k("openInNewTab", e)
|
|
2846
|
-
}, null, 8, ["model-value", "label"])) : g("", !0)
|
|
2847
|
-
]),
|
|
2848
|
-
b.value ? (o(), p("div", So, [y("label", { class: v(x(H)) }, [m(h(x(s).video.placeholderUrl) + " ", 1), y("span", Co, h(x(s).video.optional), 1)], 2), y("input", {
|
|
2849
|
-
type: "url",
|
|
2850
|
-
class: v(x(G)),
|
|
2851
|
-
value: e.block.placeholderUrl || "",
|
|
2852
|
-
placeholder: x(s).video.placeholderUrlPlaceholder,
|
|
2853
|
-
title: x(s).video.placeholderUrlTooltip,
|
|
2854
|
-
onInput: n[2] ||= (e) => k("placeholderUrl", e.target.value)
|
|
2855
|
-
}, null, 42, wo)])) : g("", !0),
|
|
2856
|
-
y("div", To, [
|
|
2857
|
-
y("label", { class: v(x(H)) }, [m(h(x(s).video.customThumbnail) + " ", 1), y("span", Eo, h(x(s).video.optional), 1)], 2),
|
|
2858
|
-
E(J, {
|
|
2859
|
-
"model-value": e.block.thumbnailUrl,
|
|
2860
|
-
type: "url",
|
|
2861
|
-
placeholder: x(s).video.thumbnailPlaceholder,
|
|
2862
|
-
pulse: D.value,
|
|
2863
|
-
"onUpdate:modelValue": n[3] ||= (e) => k("thumbnailUrl", e)
|
|
2864
|
-
}, null, 8, [
|
|
2865
|
-
"model-value",
|
|
2866
|
-
"placeholder",
|
|
2867
|
-
"pulse"
|
|
2868
|
-
]),
|
|
2869
|
-
f.value ? (o(), p("button", {
|
|
2870
|
-
key: 0,
|
|
2871
|
-
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",
|
|
2872
|
-
style: {
|
|
2873
|
-
"border-color": "var(--tpl-border)",
|
|
2874
|
-
color: "var(--tpl-primary)",
|
|
2875
|
-
"background-color": "var(--tpl-bg)"
|
|
2876
|
-
},
|
|
2877
|
-
onClick: P
|
|
2878
|
-
}, [E(x(Ke), {
|
|
2879
|
-
size: 14,
|
|
2880
|
-
"stroke-width": 1.5
|
|
2881
|
-
}), m(" " + h(x(s).image.browseMedia), 1)])) : g("", !0)
|
|
2882
|
-
]),
|
|
2883
|
-
y("div", Do, [y("label", { class: v(x(H)) }, h(x(s).video.altText), 3), E(J, {
|
|
2884
|
-
"model-value": e.block.alt,
|
|
2885
|
-
type: "text",
|
|
2886
|
-
placeholder: x(s).video.altTextPlaceholder,
|
|
2887
|
-
"onUpdate:modelValue": n[4] ||= (e) => k("alt", e)
|
|
2888
|
-
}, null, 8, ["model-value", "placeholder"])]),
|
|
2889
|
-
y("div", Oo, [
|
|
2890
|
-
y("label", { class: v(x(H)) }, h(x(s).video.width), 3),
|
|
2891
|
-
y("select", {
|
|
2892
|
-
class: v(x(G)),
|
|
2893
|
-
"data-testid": "video-width-mode",
|
|
2894
|
-
value: C.value,
|
|
2895
|
-
onChange: n[5] ||= (e) => A(e.target.value)
|
|
2896
|
-
}, [
|
|
2897
|
-
y("option", Ao, h(x(s).video.fullWidth), 1),
|
|
2898
|
-
n[10] ||= y("option", { value: "300" }, "300px", -1),
|
|
2899
|
-
n[11] ||= y("option", { value: "400" }, "400px", -1),
|
|
2900
|
-
n[12] ||= y("option", { value: "500" }, "500px", -1),
|
|
2901
|
-
y("option", jo, h(x(s).video.widthCustom), 1)
|
|
2902
|
-
], 42, ko),
|
|
2903
|
-
C.value === "custom" ? (o(), p("div", Mo, [y("input", {
|
|
2904
|
-
type: "number",
|
|
2905
|
-
"data-testid": "video-width-input",
|
|
2906
|
-
class: v(x(W)),
|
|
2907
|
-
value: e.block.width,
|
|
2908
|
-
min: "20",
|
|
2909
|
-
onInput: n[6] ||= (e) => j(e.target.value)
|
|
2910
|
-
}, null, 42, No), y("span", { class: v(x(U)) }, "px", 2)])) : g("", !0)
|
|
2911
|
-
]),
|
|
2912
|
-
y("div", Po, [
|
|
2913
|
-
y("label", { class: v(x(H)) }, h(x(s).video.height), 3),
|
|
2914
|
-
y("select", {
|
|
2915
|
-
class: v(x(G)),
|
|
2916
|
-
"data-testid": "video-height-mode",
|
|
2917
|
-
value: T.value,
|
|
2918
|
-
onChange: n[7] ||= (e) => M(e.target.value)
|
|
2919
|
-
}, [y("option", Io, h(x(s).video.heightAuto), 1), y("option", Lo, h(x(s).video.heightCustom), 1)], 42, Fo),
|
|
2920
|
-
T.value === "custom" ? (o(), p("div", Ro, [y("input", {
|
|
2921
|
-
type: "number",
|
|
2922
|
-
"data-testid": "video-height-input",
|
|
2923
|
-
class: v(x(W)),
|
|
2924
|
-
value: e.block.height,
|
|
2925
|
-
min: "20",
|
|
2926
|
-
onInput: n[8] ||= (e) => N(e.target.value)
|
|
2927
|
-
}, null, 42, zo), y("span", { class: v(x(U)) }, "px", 2)])) : g("", !0)
|
|
2928
|
-
]),
|
|
2929
|
-
y("div", Bo, [y("label", { class: v(x(H)) }, h(x(s).title.align), 3), E(Y, {
|
|
2930
|
-
options: [
|
|
2931
|
-
{
|
|
2932
|
-
value: "left",
|
|
2933
|
-
label: x(s).title.alignLeft
|
|
2934
|
-
},
|
|
2935
|
-
{
|
|
2936
|
-
value: "center",
|
|
2937
|
-
label: x(s).title.alignCenter
|
|
2938
|
-
},
|
|
2939
|
-
{
|
|
2940
|
-
value: "right",
|
|
2941
|
-
label: x(s).title.alignRight
|
|
2942
|
-
}
|
|
2943
|
-
],
|
|
2944
|
-
"model-value": e.block.align,
|
|
2945
|
-
"onUpdate:modelValue": n[9] ||= (e) => k("align", e)
|
|
2946
|
-
}, null, 8, ["options", "model-value"])])
|
|
2947
|
-
], 64));
|
|
2948
|
-
}
|
|
2949
|
-
}), Wo = ["aria-label"], Go = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, Ko = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, qo = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Jo = { class: "tpl:flex tpl:gap-1" }, Yo = ["title"], Xo = ["title"], Zo = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Qo = /*@__PURE__*/ n({
|
|
2950
|
-
__name: "Toolbar",
|
|
2951
|
-
props: { block: {} },
|
|
2952
|
-
emits: [
|
|
2953
|
-
"update",
|
|
2954
|
-
"delete",
|
|
2955
|
-
"duplicate"
|
|
2956
|
-
],
|
|
2957
|
-
setup(e, { emit: t }) {
|
|
2958
|
-
let n = s(() => import("./CountdownToolbar-CguFJdqn.js")), i = e, a = t, { t: c } = B(), l = xe(je, "Toolbar"), u = r(Ae, []), d = S(() => i.block.type), f = S(() => ae(i.block)), m = S(() => {
|
|
2959
|
-
if (f.value) return u.find((e) => e.type === i.block.customType);
|
|
2960
|
-
}), v = S(() => f.value ? m.value?.name ?? i.block.customType : z(d.value, c)), b = S(() => st(l.fonts.value, "fontFamily" in i.block ? i.block.fontFamily : void 0));
|
|
2961
|
-
function C(e) {
|
|
2962
|
-
a("update", e);
|
|
2963
|
-
}
|
|
2964
|
-
return (t, r) => (o(), p("aside", {
|
|
2965
|
-
"data-testid": "block-toolbar",
|
|
2966
|
-
"aria-label": x(c).landmarks.blockToolbar,
|
|
2967
|
-
class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
|
|
2968
|
-
}, [y("div", Go, [y("div", Ko, [x(at)[d.value] ? (o(), _(D(x(at)[d.value]), {
|
|
2969
|
-
key: 0,
|
|
2970
|
-
size: 16,
|
|
2971
|
-
"stroke-width": 1.5
|
|
2972
|
-
})) : f.value ? (o(), _(x(Fe), {
|
|
2973
|
-
key: 1,
|
|
2974
|
-
size: 16,
|
|
2975
|
-
"stroke-width": 1.5
|
|
2976
|
-
})) : g("", !0), y("h3", qo, h(v.value), 1)]), y("div", Jo, [y("button", {
|
|
2977
|
-
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)]",
|
|
2978
|
-
title: x(c).toolbar.duplicate,
|
|
2979
|
-
onClick: r[0] ||= (e) => a("duplicate")
|
|
2980
|
-
}, [E(x(Re), {
|
|
2981
|
-
size: 14,
|
|
2982
|
-
"stroke-width": 2
|
|
2983
|
-
})], 8, Yo), y("button", {
|
|
2984
|
-
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)]",
|
|
2985
|
-
title: x(c).toolbar.delete,
|
|
2986
|
-
onClick: r[1] ||= (e) => a("delete")
|
|
2987
|
-
}, [E(x(We), {
|
|
2988
|
-
size: 14,
|
|
2989
|
-
"stroke-width": 2
|
|
2990
|
-
})], 8, Xo)])]), y("div", Zo, [f.value ? (o(), _(Ur, {
|
|
2991
|
-
key: 0,
|
|
2992
|
-
block: e.block,
|
|
2993
|
-
onUpdateFieldValues: r[2] ||= (e) => a("update", { fieldValues: e }),
|
|
2994
|
-
onUpdateDataSourceFetched: r[3] ||= (e) => a("update", { dataSourceFetched: e })
|
|
2995
|
-
}, null, 8, ["block"])) : d.value === "section" ? (o(), _($i, {
|
|
2996
|
-
key: 1,
|
|
2997
|
-
block: e.block,
|
|
2998
|
-
onUpdate: C
|
|
2999
|
-
}, null, 8, ["block"])) : d.value === "title" ? (o(), _(bo, {
|
|
3000
|
-
key: 2,
|
|
3001
|
-
block: e.block,
|
|
3002
|
-
"font-families": b.value,
|
|
3003
|
-
onUpdate: C
|
|
3004
|
-
}, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (o(), _(Wi, {
|
|
3005
|
-
key: 3,
|
|
3006
|
-
block: e.block,
|
|
3007
|
-
onUpdate: C
|
|
3008
|
-
}, null, 8, ["block"])) : d.value === "image" ? (o(), _(Oi, {
|
|
3009
|
-
key: 4,
|
|
3010
|
-
block: e.block,
|
|
3011
|
-
onUpdate: C
|
|
3012
|
-
}, null, 8, ["block"])) : d.value === "video" ? (o(), _(Uo, {
|
|
3013
|
-
key: 5,
|
|
3014
|
-
block: e.block,
|
|
3015
|
-
onUpdate: C
|
|
3016
|
-
}, null, 8, ["block"])) : d.value === "button" ? (o(), _(Jt, {
|
|
3017
|
-
key: 6,
|
|
3018
|
-
block: e.block,
|
|
3019
|
-
"font-families": b.value,
|
|
3020
|
-
onUpdate: C
|
|
3021
|
-
}, null, 8, ["block", "font-families"])) : d.value === "divider" ? (o(), _(Yr, {
|
|
3022
|
-
key: 7,
|
|
3023
|
-
block: e.block,
|
|
3024
|
-
onUpdate: C
|
|
3025
|
-
}, null, 8, ["block"])) : d.value === "social" ? (o(), _(wa, {
|
|
3026
|
-
key: 8,
|
|
3027
|
-
block: e.block,
|
|
3028
|
-
onUpdate: C
|
|
3029
|
-
}, null, 8, ["block"])) : d.value === "menu" ? (o(), _(Bi, {
|
|
3030
|
-
key: 9,
|
|
3031
|
-
block: e.block,
|
|
3032
|
-
"font-families": b.value,
|
|
3033
|
-
onUpdate: C
|
|
3034
|
-
}, null, 8, ["block", "font-families"])) : d.value === "table" ? (o(), _(oo, {
|
|
3035
|
-
key: 10,
|
|
3036
|
-
block: e.block,
|
|
3037
|
-
"font-families": b.value,
|
|
3038
|
-
onUpdate: C
|
|
3039
|
-
}, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (o(), _(ka, {
|
|
3040
|
-
key: 11,
|
|
3041
|
-
block: e.block,
|
|
3042
|
-
onUpdate: C
|
|
3043
|
-
}, null, 8, ["block"])) : d.value === "html" ? (o(), _($r, {
|
|
3044
|
-
key: 12,
|
|
3045
|
-
block: e.block,
|
|
3046
|
-
onUpdate: C
|
|
3047
|
-
}, null, 8, ["block"])) : d.value === "countdown" ? (o(), _(x(n), {
|
|
3048
|
-
key: 13,
|
|
3049
|
-
block: e.block,
|
|
3050
|
-
"font-families": b.value,
|
|
3051
|
-
onUpdate: C
|
|
3052
|
-
}, null, 8, ["block", "font-families"])) : g("", !0), E(ar, {
|
|
3053
|
-
block: e.block,
|
|
3054
|
-
"is-first-section": d.value === "paragraph",
|
|
3055
|
-
onUpdate: C
|
|
3056
|
-
}, null, 8, ["block", "is-first-section"])])], 8, Wo));
|
|
3057
|
-
}
|
|
3058
|
-
}), $o = /* @__PURE__ */ e({ default: () => es }), es = /*#__PURE__*/ $e(Qo, [["__scopeId", "data-v-e2d2c22f"]]);
|
|
3059
|
-
export { es as default, Y as i, $ as n, X as r, $o as t };
|
|
3060
|
-
|
|
3061
|
-
//# sourceMappingURL=Toolbar-CnvfW72e.js.map
|