@templatical/editor 0.52.1 → 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-9ySsXOTU.js → AiAltTextReview-Ci4zHwRc.js} +68 -66
- package/dist/AiChatPanel-DdhtfsmO.js +561 -0
- package/dist/{AiPanels-DqT4PgQ0.js → AiPanels-HBx7xoJR.js} +6 -6
- package/dist/{AiRewriteMenu-28agTycW.js → AiRewriteMenu-DPzSekZt.js} +76 -105
- package/dist/BlockIssueBadge-eIXZJ9M3.js +33 -0
- package/dist/BlockPreviewCanvas-DO-2TP_6.js +140 -0
- package/dist/{CloudHeaderExtras-QI82yF54.js → CloudHeaderExtras-XpjJjn3o.js} +4 -4
- package/dist/{CloudPanels-BKJaLkUN.js → CloudPanels-i2kZdrdP.js} +53 -53
- package/dist/CollaborationNotices-DANsjl7c.js +65 -0
- package/dist/{CollaboratorBar-CXQqN3VP.js → CollaboratorBar-CbbAA0m1.js} +24 -24
- package/dist/CommentsPanel-CYW3LWis.js +16 -0
- package/dist/CommentsSidebar-CcF4ISMi.js +526 -0
- package/dist/{CountdownBlock-CU2yTWtF.js → CountdownBlock-BMezkFbJ.js} +15 -15
- package/dist/CountdownToolbar-D3Lv74kU.js +258 -0
- package/dist/IssuesPanel-BMAG9042.js +371 -0
- package/dist/LanguageMenu-FlP_Jbup.js +403 -0
- package/dist/{LoadingTrack-DM4g6j7b.js → LoadingTrack-BG8cg9xi.js} +2 -2
- package/dist/LocaleNotices-DAnVszWu.js +46 -0
- package/dist/LogicTagInsertButton-BjYs-UQX.js +1096 -0
- package/dist/{MediaEditModal-Dy08GEwE.js → MediaEditModal-LnG-cF_S.js} +451 -451
- package/dist/{MediaPanels-BgEp7iCp.js → MediaPanels-C2r5fiFo.js} +4 -4
- package/dist/{MergeTagInput-B9dtUthD.js → MergeTagInput-BsnogCeY.js} +30 -30
- package/dist/{MergeTagModeToggle-DxujhYJ4.js → MergeTagModeToggle-DiufIQ-_.js} +49 -49
- package/dist/MergeTagTextarea-BweI-Xsi.js +126 -0
- package/dist/ParagraphEditor-qgBp5yIB.js +825 -0
- package/dist/{RestoreVersionDialog-C4s_JYCx.js → RestoreVersionDialog-DdYUrFiK.js} +23 -23
- package/dist/{RichTextEditorContent-o6HmE8GR.js → RichTextEditorContent-C5MAzx3E.js} +47 -47
- package/dist/{SaveBlockDialog-CWLrly6l.js → SaveBlockDialog-eK6fjtTy.js} +86 -86
- package/dist/{cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js → SavedBlocksBrowserModal-D2QHd2Yp.js} +135 -132
- package/dist/{SavedBlocksPanels-BE1N9rNZ.js → SavedBlocksPanels-Cl61f4Mf.js} +9 -9
- package/dist/{SavedBlocksPickBar-Dwl94xhP.js → SavedBlocksPickBar-CXP2dkeB.js} +15 -15
- package/dist/TemplateSettings-BKJrdZcH.js +294 -0
- package/dist/TestEmailModal-DQotJg6g.js +212 -0
- package/dist/{TestEmailPanel-DaFjP9QK.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-DLMssVlt.js → TplModal-ZoXu40T9.js} +17 -17
- package/dist/{VersionHistoryMenu-BkbYUs0Q.js → VersionHistoryMenu-BvhN-Ofk.js} +39 -39
- package/dist/{VersionHistoryPanels-DP7HaYWv.js → VersionHistoryPanels-DPWMnYbd.js} +5 -5
- package/dist/VersionPreviewBanner-CuJnasxH.js +37 -0
- package/dist/WrapperBlock-D4fPwO0t.js +44 -0
- package/dist/{blockTypeIcons-BHjlPnPf.js → blockTypeIcons-BXMxu86H.js} +7 -7
- 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-BGLLSKLm.js → AiAltTextReview-Dtm3A2cD.js} +70 -68
- 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-0wBarZSH.js → AiPanels-BV5D1itk.js} +11 -11
- package/dist/cdn/chunks/{AiPanels-0wBarZSH.js.map → AiPanels-BV5D1itk.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-qf-cfEpy.js → AiRewriteMenu-D3jkh6Xb.js} +79 -79
- 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-DGBh6mqe.js.map → BlockPreviewCanvas-RQFilqXC.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js → CloudHeaderExtras-BtqdN777.js} +4 -4
- package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js.map → CloudHeaderExtras-BtqdN777.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js → CloudPanels-BSJ-Z5Hw.js} +45 -45
- package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.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-CXByAoUz.js → CollaboratorBar-Bc9914Az.js} +17 -17
- package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js.map → CollaboratorBar-Bc9914Az.js.map} +1 -1
- package/dist/cdn/chunks/CommentsPanel-DbR9phAk.js +18 -0
- package/dist/cdn/chunks/{CommentsPanel-DoJnKLXI.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-BqRw147R.js → CountdownBlock-CjMhMhnv.js} +22 -22
- package/dist/cdn/chunks/{CountdownBlock-BqRw147R.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-C7LfxaAY.js → IssuesPanel-CUmI4HMm.js} +133 -121
- 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-CZuLTazv.js → LoadingTrack-DUYcDHOV.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.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/{LogicTagInsertButton-CfscnwCn.js → cdn/chunks/LogicTagInsertButton-5Z3fFzjc.js} +422 -449
- package/dist/cdn/chunks/LogicTagInsertButton-5Z3fFzjc.js.map +1 -0
- package/dist/cdn/chunks/{MediaEditModal-Cpcod6_U.js → MediaEditModal-DDCIwr9U.js} +421 -421
- package/dist/cdn/chunks/MediaEditModal-DDCIwr9U.js.map +1 -0
- package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js → MediaPanels-Dz79oy8P.js} +5 -5
- package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js.map → MediaPanels-Dz79oy8P.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js → MergeTagInput-CIWy-cXf.js} +28 -28
- package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js.map → MergeTagInput-CIWy-cXf.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BgKEVUtV.js → MergeTagModeToggle-BrP5GR-x.js} +52 -52
- 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-CjOdD2xj.js → RestoreVersionDialog-Crj1DBqC.js} +22 -22
- package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js.map → RestoreVersionDialog-Crj1DBqC.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js → RichTextEditorContent-rCCqFlwJ.js} +44 -44
- package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js.map → RichTextEditorContent-rCCqFlwJ.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js → SaveBlockDialog-C34RW1aM.js} +77 -77
- package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js.map → SaveBlockDialog-C34RW1aM.js.map} +1 -1
- package/dist/{SavedBlocksBrowserModal-CE8n4EBS.js → cdn/chunks/SavedBlocksBrowserModal-CJnwWPT-.js} +103 -106
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BPYcRoGa.js.map → SavedBlocksBrowserModal-CJnwWPT-.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js → SavedBlocksPanels-CA2PqXIH.js} +9 -9
- package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js.map → SavedBlocksPanels-CA2PqXIH.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js → SavedBlocksPickBar-Dj3ortee.js} +16 -16
- package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.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-BXeCtTjU.js +212 -0
- package/dist/cdn/chunks/TestEmailModal-BXeCtTjU.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js → TestEmailPanel-CpZcpB9D.js} +5 -5
- package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.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-CFPDgbwQ.js → TplModal-DDDUDMYC.js} +20 -20
- package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js.map → TplModal-DDDUDMYC.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js → VersionHistoryMenu-DSElv3Sv.js} +33 -33
- package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js.map → VersionHistoryMenu-DSElv3Sv.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js → VersionHistoryPanels-H2nuik1l.js} +6 -6
- package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.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-D7FW7Ypo.js → blockTypeIcons-DMgLcuI8.js} +5 -5
- package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js.map → blockTypeIcons-DMgLcuI8.js.map} +1 -1
- 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-Cth2JCEh.js → createCloudRuntime-BdsclY8_.js} +75 -73
- 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/cdn/chunks/{dist-8ym3y-pH.js → dist-BzXULHvI.js} +48 -48
- package/dist/cdn/chunks/{dist-8ym3y-pH.js.map → dist-BzXULHvI.js.map} +1 -1
- package/dist/cdn/chunks/{dist-BMzNabtD.js → dist-DqGgijFI.js} +114 -114
- package/dist/cdn/chunks/{dist-BMzNabtD.js.map → dist-DqGgijFI.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-Du8AUMFT.js → draggable-DepKdldn.js} +1491 -1486
- package/dist/cdn/chunks/draggable-DepKdldn.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-CyCe560f.js → editor-modal-CPbgthOv.js} +781 -781
- package/dist/cdn/chunks/{editor-modal-CyCe560f.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-CFF2KWy-.js → extensions-Uh9vuFfK.js} +59 -59
- package/dist/cdn/chunks/{extensions-CFF2KWy-.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-okSPsLOa.js → icons-CSSMtbGK.js} +150 -109
- 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/{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-BcXIz7oJ.js → preRenderCustomBlocks-C8k7tw98.js} +5 -5
- package/dist/cdn/chunks/{preRenderCustomBlocks-BcXIz7oJ.js.map → preRenderCustomBlocks-C8k7tw98.js.map} +1 -1
- package/dist/{pt-BR-dDlTwX18.js → cdn/chunks/pt-BR-CY5Ye7eP.js} +116 -0
- 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-C7bkofBL.js → src-Ddpm4HsS.js} +222 -256
- package/dist/cdn/chunks/src-Ddpm4HsS.js.map +1 -0
- package/dist/cdn/chunks/{src-DEd87i_U.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-CbiTlECY.js → tiptap-Dipw_zOQ.js} +40 -40
- package/dist/cdn/chunks/{tiptap-CbiTlECY.js.map → tiptap-Dipw_zOQ.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js → useCloudI18n-Cc5NZqiI.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js.map → useCloudI18n-Cc5NZqiI.js.map} +1 -1
- package/dist/cdn/chunks/useEditorRoot-D_LuZ_hE.js +9 -0
- package/dist/cdn/chunks/{useEditorRoot-vjZJwKrV.js.map → useEditorRoot-D_LuZ_hE.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-D8pY4LTq.js → useI18n-BnJYydPv.js} +3 -3
- package/dist/cdn/chunks/{useI18n-D8pY4LTq.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-DBJDtpKA.js → useLogicTag-B7RpqVFQ.js} +5 -5
- package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js.map → useLogicTag-B7RpqVFQ.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js → useMergeTag-C-32ETjj.js} +6 -6
- package/dist/cdn/chunks/{useMergeTag-B-aG--s1.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-vjQ0fe-L.js → useScrollToBlock-Ct1AwLD-.js} +5 -5
- package/dist/cdn/chunks/useScrollToBlock-Ct1AwLD-.js.map +1 -0
- package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js → withCurrentFont-D33ZXoWp.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js.map → withCurrentFont-D33ZXoWp.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +2190 -1496
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-BZ8o0eet.js → check-ChQ0l8EQ.js} +1 -1
- package/dist/{chevron-down-DfAAfILv.js → chevron-down-Bh6cp6PI.js} +1 -1
- package/dist/{chevron-right-Bk4mGdr7.js → chevron-right-LUgdqdoW.js} +1 -1
- package/dist/{chevron-up-MhUf_azW.js → chevron-up-XsDeJxQN.js} +1 -1
- package/dist/{circle-alert-CShJwVFv.js → circle-alert-lODfDsrj.js} +1 -1
- package/dist/{clock-CTfD6OCt.js → clock-DrqFEZkT.js} +1 -1
- package/dist/composables-BOP3ERRP.js +4517 -0
- package/dist/{createCloudRuntime-DCgO4A1r.js → createCloudRuntime-DGV5a5Af.js} +54 -52
- package/dist/{createLucideIcon-CvhTA2KG.js → createLucideIcon-Dw5e5gVE.js} +11 -11
- package/dist/{cdn/chunks/de-CeFJ6wbM.js → de-DaOUfYBX.js} +114 -2
- package/dist/{dist-ByCWA2Tv.js → dist-0alKVRc_.js} +101 -101
- 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/{dist-CVy-7PHQ.js → dist-CX7skkvG.js} +48 -48
- 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-D6cMdrfG.js → dist-fqSers8_.js} +55 -55
- package/dist/{editor-modal-zaZHcmlO.js → editor-modal-B_2EAOjN.js} +953 -952
- 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-fo_c-vqf.js → extensions-DOLZkLzV.js} +173 -173
- package/dist/{eye-7W4t5e0Q.js → eye-DChfk0gi.js} +1 -1
- package/dist/{cdn/chunks/fr-CSgYtjOd.js → fr-CYbamiI6.js} +114 -2
- package/dist/{image-BDiRFzSd.js → image--Hj2by1G.js} +1 -1
- package/dist/index.d.ts +182 -14
- package/dist/{info-Cxi3-Kh9.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-ju_2Cmir.js → link-C2_8yJno.js} +1 -1
- package/dist/{list-DYZJf0aZ.js → list-DLGs2n0V.js} +1 -1
- package/dist/{loader-circle-BZRD0a4I.js → loader-circle-BbDItE_O.js} +1 -1
- package/dist/{message-circle-DuEw4Zfx.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-CePMr2kK.js → package-BuzsfRyH.js} +1 -1
- package/dist/{pencil-D3aFCL7c.js → pencil-BTUUECH4.js} +1 -1
- package/dist/plural-CyxrJXL1.js +15 -0
- package/dist/plus-Dm7DN65T.js +13 -0
- package/dist/{preRenderCustomBlocks--_xc0XK3.js → preRenderCustomBlocks-Bs3N9no-.js} +4 -4
- package/dist/{cdn/chunks/pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +114 -2
- package/dist/{refresh-cw-xnro7_Sk.js → refresh-cw-xMURqGWi.js} +2 -12
- package/dist/rotate-ccw-DqVcEIn5.js +13 -0
- package/dist/{runtime-dom.esm-bundler-BURR-bj5.js → runtime-dom.esm-bundler-DlHp8xgy.js} +154 -154
- package/dist/sanitizeHtml-mKgNUdME.js +962 -0
- package/dist/{search-CDrstRBv.js → search-Cfr3W44N.js} +1 -1
- package/dist/{send-DROkPOaX.js → send-CH1SrvyB.js} +1 -1
- package/dist/{smartphone-Bx6u_tjn.js → smartphone-pAkvzjdI.js} +1 -1
- package/dist/socialIcons-Dqr4DJOz.js +2705 -0
- package/dist/{sparkles-CdaTtvoz.js → sparkles-CRO0cCnp.js} +1 -1
- package/dist/{square-BbCROH_f.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 +2438 -1752
- package/dist/{text-align-start-CGacJ9Vw.js → text-align-start-BQ39AaRK.js} +1 -1
- package/dist/{trash-DxCd7zIy.js → trash-BL5gEFHN.js} +1 -1
- package/dist/{triangle-alert-7_oaitpf.js → triangle-alert-BYbKu7zZ.js} +1 -1
- package/dist/{upload-DuFEOi_0.js → upload-BhmL4Vqx.js} +1 -1
- package/dist/{useCloudI18n-DEMmUKuO.js → useCloudI18n-Dh2iydo1.js} +4 -4
- package/dist/useEditorRoot-DY3mgcHm.js +7 -0
- package/dist/{useI18n-BBrHTdu8.js → useI18n-CgtvtF4C.js} +4 -4
- package/dist/useLocalizedDisplay-DNNwDRxL.js +31 -0
- package/dist/{useLogicTag-ZPC39rfH.js → useLogicTag-BXXXQQmi.js} +4 -4
- package/dist/{useMergeTag-BQ4qqWpQ.js → useMergeTag-C9Okr87y.js} +5 -5
- package/dist/usePopoverPosition-VDQjyX_A.js +76 -0
- package/dist/{useScrollToBlock-BSyAV4pk.js → useScrollToBlock-C0Kapxdh.js} +5 -5
- package/dist/{vue.runtime.esm-bundler-CnEeTfhs.js → vue.runtime.esm-bundler-BJXc_Mri.js} +1373 -1368
- package/dist/withCurrentFont-DJiQqZzL.js +18 -0
- package/dist/{x-BpfG7v9g.js → x-B7NZYzhx.js} +1 -1
- package/package.json +20 -20
- package/dist/AiAltTextPopover-DawbUywc.js +0 -105
- package/dist/AiChatPanel-CupPhmsN.js +0 -548
- package/dist/BlockIssueBadge-BxpDy3u-.js +0 -33
- package/dist/BlockPreviewCanvas-B-4bmJ3t.js +0 -140
- package/dist/CollaborationNotices-CTw4JThq.js +0 -75
- package/dist/CommentsPanel-DwwFuh1h.js +0 -16
- package/dist/CommentsSidebar-9ZfiC2DO.js +0 -500
- package/dist/CountdownToolbar-BqoYzf_6.js +0 -197
- package/dist/IssuesPanel-4ykrf1ax.js +0 -359
- package/dist/MergeTagTextarea-CPFEjJZd.js +0 -69
- package/dist/ParagraphEditor-CWXfurGh.js +0 -796
- package/dist/TemplateSettings-CS0f1Ues.js +0 -236
- package/dist/TestEmailModal-DBD0X5nV.js +0 -209
- package/dist/TitleEditor-DSqtle77.js +0 -198
- package/dist/ToggleSwitch-JykPyD_8.js +0 -36
- package/dist/Toolbar-BZPFfKrf.js +0 -3145
- package/dist/VersionPreviewBanner-DECaBwLq.js +0 -37
- package/dist/WrapperBlock-BsJv_Fiw.js +0 -44
- package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js +0 -106
- package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js.map +0 -1
- package/dist/cdn/chunks/AiAltTextReview-BGLLSKLm.js.map +0 -1
- package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js +0 -474
- package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js.map +0 -1
- package/dist/cdn/chunks/AiRewriteMenu-qf-cfEpy.js.map +0 -1
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +0 -34
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +0 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-DGBh6mqe.js +0 -142
- package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js +0 -77
- package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js.map +0 -1
- package/dist/cdn/chunks/CommentsPanel-DoJnKLXI.js +0 -18
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js +0 -470
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +0 -1
- package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js +0 -199
- package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-C7LfxaAY.js.map +0 -1
- package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js +0 -1051
- package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js.map +0 -1
- package/dist/cdn/chunks/MediaEditModal-Cpcod6_U.js.map +0 -1
- package/dist/cdn/chunks/MergeTagModeToggle-BgKEVUtV.js.map +0 -1
- package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js +0 -71
- package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js +0 -631
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +0 -1
- package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js +0 -208
- package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js +0 -209
- package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js +0 -198
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +0 -1
- package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js +0 -38
- package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-CdpsvNOR.js +0 -3061
- package/dist/cdn/chunks/Toolbar-CdpsvNOR.js.map +0 -1
- package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js +0 -39
- package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js +0 -46
- package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js.map +0 -1
- package/dist/cdn/chunks/ca-CD-Kt1qz.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-Cth2JCEh.js.map +0 -1
- package/dist/cdn/chunks/de-CeFJ6wbM.js.map +0 -1
- package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +0 -1
- package/dist/cdn/chunks/en-D14i5nFh.js.map +0 -1
- package/dist/cdn/chunks/en-TIqv4ag3.js +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-okSPsLOa.js.map +0 -1
- package/dist/cdn/chunks/ja-B7H3ID8O.js.map +0 -1
- package/dist/cdn/chunks/keys-CUj6UA38.js +0 -11
- package/dist/cdn/chunks/keys-CUj6UA38.js.map +0 -1
- package/dist/cdn/chunks/nl-176ySmc5.js.map +0 -1
- package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js +0 -198
- package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-dDlTwX18.js.map +0 -1
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js +0 -72
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-jsTDmkbb.js +0 -2008
- package/dist/cdn/chunks/socialIcons-jsTDmkbb.js.map +0 -1
- package/dist/cdn/chunks/src-C7bkofBL.js.map +0 -1
- package/dist/cdn/chunks/src-DEd87i_U.js.map +0 -1
- package/dist/cdn/chunks/src-DwWrYnUj.js +0 -1404
- package/dist/cdn/chunks/src-DwWrYnUj.js.map +0 -1
- package/dist/cdn/chunks/styleConstants-B8xVRiwX.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +0 -2582
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +0 -9
- package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js +0 -70
- package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js.map +0 -1
- package/dist/cdn/chunks/useScrollToBlock-vjQ0fe-L.js.map +0 -1
- package/dist/dist-CKi_npZM.js +0 -1344
- package/dist/dist-DyFArF_G.js +0 -4
- package/dist/dist-pA3ooG6N.js +0 -4
- package/dist/en-Db76vJbY.js +0 -1
- package/dist/keys-BgRERHzu.js +0 -9
- package/dist/normalizeMergeTagMarkup-CELnOlgK.js +0 -196
- package/dist/sanitizeHtml-BzfzpYJY.js +0 -942
- package/dist/socialIcons-D7MGsg0d.js +0 -2075
- package/dist/useEditorCore-BSo2sSID.js +0 -4059
- package/dist/useEditorRoot-BMcoCLBx.js +0 -7
- package/dist/usePopoverPosition-DV1PxL66.js +0 -68
- package/dist/withCurrentFont-B22FXAF5.js +0 -18
|
@@ -1,3061 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./rolldown-runtime-QGRDbDUS.js";
|
|
2
|
-
import { C as t, D as n, G as r, I as i, L as a, P as o, Q as s, S as c, V as l, W as u, Z as d, _ as f, b as p, dt as m, et as h, ft as g, g as _, h as v, m as y, o as b, p as x, s as S, st as C, u as w, ut as T, x as E, z as D } from "./draggable-Du8AUMFT.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-DwWrYnUj.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-jsTDmkbb.js";
|
|
5
|
-
import { _ as be } from "./dist-8ym3y-pH.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-CUj6UA38.js";
|
|
7
|
-
import { t as B } from "./useI18n-D8pY4LTq.js";
|
|
8
|
-
import { o as Ne } from "./usePopoverPosition-DSMtmu2W.js";
|
|
9
|
-
import { $ as Pe, Ft as Fe, H as V, O as Ie, R as Le, _ as Re, _t as ze, c as Be, et as Ve, f as He, gt as Ue, it as We, jt as Ge, kt as Ke, lt as qe, m as Je, rt as Ye, t as Xe, v as Ze, zt as Qe } from "./icons-okSPsLOa.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-D7FW7Ypo.js";
|
|
13
|
-
import { c as K } from "./LogicTagInsertButton-BIi05UQu.js";
|
|
14
|
-
import { t as ot } from "./MergeTagTextarea-tBz8McZf.js";
|
|
15
|
-
import { t as q } from "./ToggleSwitch-J7Vwhvha.js";
|
|
16
|
-
import { n as st, t as ct } from "./withCurrentFont-hZTvYBHO.js";
|
|
17
|
-
import { t as J } from "./MergeTagInput-BvWg8o5E.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__ */ t({
|
|
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 = x(() => n.options.findIndex((e) => e.value === n.modelValue)), s = x(() => `translateX(${Math.max(a.value, 0) * 100}%)`);
|
|
35
|
-
return (t, n) => (o(), f("div", {
|
|
36
|
-
role: "radiogroup",
|
|
37
|
-
class: "tpl:relative tpl:grid tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1",
|
|
38
|
-
style: m({
|
|
39
|
-
gridTemplateColumns: `repeat(${e.options.length}, 1fr)`,
|
|
40
|
-
backgroundColor: "var(--tpl-bg-hover)"
|
|
41
|
-
})
|
|
42
|
-
}, [a.value >= 0 ? (o(), f("div", {
|
|
43
|
-
key: 0,
|
|
44
|
-
class: "tpl:absolute tpl:inset-y-1 tpl:rounded-[var(--tpl-radius-sm)]",
|
|
45
|
-
style: m({
|
|
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)) : _("", !0), (o(!0), f(w, null, i(e.options, (t) => (o(), f("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: m({
|
|
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(), v(D(t.icon), {
|
|
68
|
-
key: 0,
|
|
69
|
-
size: 14,
|
|
70
|
-
"stroke-width": 2
|
|
71
|
-
})) : (o(), f("span", ut, g(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__ */ t({
|
|
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(), f("div", dt, [y("input", {
|
|
95
|
-
type: "number",
|
|
96
|
-
"data-testid": e.testid,
|
|
97
|
-
class: T(C(W)),
|
|
98
|
-
value: e.modelValue,
|
|
99
|
-
min: e.min,
|
|
100
|
-
max: e.max,
|
|
101
|
-
onInput: r
|
|
102
|
-
}, null, 42, ft), y("span", { class: T(C(U)) }, g(e.suffix), 3)]));
|
|
103
|
-
}
|
|
104
|
-
}), pt = [
|
|
105
|
-
"aria-pressed",
|
|
106
|
-
"aria-label",
|
|
107
|
-
"title",
|
|
108
|
-
"data-testid"
|
|
109
|
-
], mt = /* @__PURE__ */ t({
|
|
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(), f("button", {
|
|
121
|
-
type: "button",
|
|
122
|
-
class: T(["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(), v(C(qe), {
|
|
129
|
-
key: 0,
|
|
130
|
-
size: 14,
|
|
131
|
-
"stroke-width": 2
|
|
132
|
-
})) : (o(), v(C(Be), {
|
|
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__ */ t({
|
|
142
|
-
__name: "BorderControl",
|
|
143
|
-
props: {
|
|
144
|
-
modelValue: {},
|
|
145
|
-
testidPrefix: {}
|
|
146
|
-
},
|
|
147
|
-
emits: ["update:modelValue"],
|
|
148
|
-
setup(e, { emit: t }) {
|
|
149
|
-
let n = e, r = t, { t: i } = B(), a = {
|
|
150
|
-
width: 0,
|
|
151
|
-
style: "solid",
|
|
152
|
-
color: "#000000"
|
|
153
|
-
};
|
|
154
|
-
function s(e, t) {
|
|
155
|
-
return e.width === t.width && e.style === t.style && e.color === t.color;
|
|
156
|
-
}
|
|
157
|
-
let c = x(() => {
|
|
158
|
-
let e = n.modelValue;
|
|
159
|
-
return !e || A.every((t) => s(e[t], e.top));
|
|
160
|
-
}), u = h(c.value);
|
|
161
|
-
l(c, (e) => {
|
|
162
|
-
!e && u.value && (u.value = !1);
|
|
163
|
-
});
|
|
164
|
-
let d = h("top"), p = x(() => n.modelValue?.[u.value ? "top" : d.value] ?? a), m = (e) => !!e && e.width > 0;
|
|
165
|
-
function v(e) {
|
|
166
|
-
if (u.value) {
|
|
167
|
-
r("update:modelValue", m(e) ? ne(e) : void 0);
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
let t = {
|
|
171
|
-
...n.modelValue ?? ne(a),
|
|
172
|
-
[d.value]: e
|
|
173
|
-
}, i = A.some((e) => m(t[e]));
|
|
174
|
-
r("update:modelValue", i ? t : void 0);
|
|
175
|
-
}
|
|
176
|
-
function b(e) {
|
|
177
|
-
v({
|
|
178
|
-
...p.value,
|
|
179
|
-
width: e > 0 ? e : 0
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
function S(e) {
|
|
183
|
-
v({
|
|
184
|
-
...p.value,
|
|
185
|
-
...e
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
function D() {
|
|
189
|
-
if (u.value) {
|
|
190
|
-
u.value = !1;
|
|
191
|
-
return;
|
|
192
|
-
}
|
|
193
|
-
u.value = !0;
|
|
194
|
-
let e = n.modelValue;
|
|
195
|
-
if (!e) return;
|
|
196
|
-
let t = m(e[d.value]) ? e[d.value] : A.map((t) => e[t]).find(m);
|
|
197
|
-
r("update:modelValue", t ? ne(t) : void 0);
|
|
198
|
-
}
|
|
199
|
-
let O = x(() => A.map((e) => ({
|
|
200
|
-
value: e,
|
|
201
|
-
label: i.spacingControl[e]
|
|
202
|
-
})));
|
|
203
|
-
return (t, n) => (o(), f("div", ht, [
|
|
204
|
-
y("div", gt, [y("span", _t, g(C(i).blockSettings.border), 1), E(mt, {
|
|
205
|
-
linked: u.value,
|
|
206
|
-
"link-label": C(i).blockSettings.linkSides,
|
|
207
|
-
"unlink-label": C(i).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
|
-
u.value ? _("", !0) : (o(), f("div", vt, [y("label", { class: T(C(H)) }, g(C(i).blockSettings.borderSide), 3), E(Y, {
|
|
217
|
-
options: O.value,
|
|
218
|
-
"model-value": d.value,
|
|
219
|
-
"onUpdate:modelValue": n[0] ||= (e) => d.value = e
|
|
220
|
-
}, null, 8, ["options", "model-value"])])),
|
|
221
|
-
y("div", yt, [y("label", { class: T(C(H)) }, g(C(i).blockSettings.borderWidth), 3), E(X, {
|
|
222
|
-
"model-value": p.value.width,
|
|
223
|
-
min: 0,
|
|
224
|
-
suffix: "px",
|
|
225
|
-
testid: `${e.testidPrefix}-border-width-input`,
|
|
226
|
-
"onUpdate:modelValue": b
|
|
227
|
-
}, null, 8, ["model-value", "testid"])]),
|
|
228
|
-
p.value.width > 0 ? (o(), f(w, { key: 1 }, [y("div", bt, [y("label", { class: T(C(H)) }, g(C(i).blockSettings.borderStyle), 3), E(Y, {
|
|
229
|
-
options: [
|
|
230
|
-
{
|
|
231
|
-
value: "solid",
|
|
232
|
-
label: C(i).divider.solid
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
value: "dashed",
|
|
236
|
-
label: C(i).divider.dashed
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
value: "dotted",
|
|
240
|
-
label: C(i).divider.dotted
|
|
241
|
-
}
|
|
242
|
-
],
|
|
243
|
-
"model-value": p.value.style,
|
|
244
|
-
"onUpdate:modelValue": n[1] ||= (e) => S({ style: e })
|
|
245
|
-
}, null, 8, ["options", "model-value"])]), y("div", null, [y("label", { class: T(C(H)) }, g(C(i).blockSettings.borderColor), 3), E(K, {
|
|
246
|
-
"model-value": p.value.color,
|
|
247
|
-
"onUpdate:modelValue": n[2] ||= (e) => S({ color: e })
|
|
248
|
-
}, null, 8, ["model-value"])])], 64)) : _("", !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__ */ t({
|
|
255
|
-
__name: "RadiusControl",
|
|
256
|
-
props: {
|
|
257
|
-
modelValue: {},
|
|
258
|
-
label: {},
|
|
259
|
-
testidPrefix: {},
|
|
260
|
-
max: {}
|
|
261
|
-
},
|
|
262
|
-
emits: ["update:modelValue"],
|
|
263
|
-
setup(e, { emit: t }) {
|
|
264
|
-
let n = e, r = t, { t: a } = B(), s = {
|
|
265
|
-
topLeft: "cornerTopLeft",
|
|
266
|
-
topRight: "cornerTopRight",
|
|
267
|
-
bottomRight: "cornerBottomRight",
|
|
268
|
-
bottomLeft: "cornerBottomLeft"
|
|
269
|
-
}, c = [
|
|
270
|
-
"topLeft",
|
|
271
|
-
"topRight",
|
|
272
|
-
"bottomLeft",
|
|
273
|
-
"bottomRight"
|
|
274
|
-
], u = x(() => {
|
|
275
|
-
let e = n.modelValue ?? 0;
|
|
276
|
-
return typeof e == "number" ? {
|
|
277
|
-
topLeft: e,
|
|
278
|
-
topRight: e,
|
|
279
|
-
bottomRight: e,
|
|
280
|
-
bottomLeft: e
|
|
281
|
-
} : e;
|
|
282
|
-
}), d = x(() => F.every((e) => u.value[e] === u.value.topLeft)), p = h(d.value);
|
|
283
|
-
l(d, (e) => {
|
|
284
|
-
!e && p.value && (p.value = !1);
|
|
285
|
-
});
|
|
286
|
-
function m(e) {
|
|
287
|
-
return Number.isFinite(e) && e >= 0;
|
|
288
|
-
}
|
|
289
|
-
function _(e) {
|
|
290
|
-
m(e) && r("update:modelValue", e);
|
|
291
|
-
}
|
|
292
|
-
function b(e, t) {
|
|
293
|
-
m(t) && r("update:modelValue", {
|
|
294
|
-
...u.value,
|
|
295
|
-
[e]: t
|
|
296
|
-
});
|
|
297
|
-
}
|
|
298
|
-
function S() {
|
|
299
|
-
p.value = !p.value, p.value && r("update:modelValue", u.value.topLeft);
|
|
300
|
-
}
|
|
301
|
-
return (t, n) => (o(), f("div", St, [y("div", Ct, [y("span", wt, g(e.label), 1), E(mt, {
|
|
302
|
-
linked: p.value,
|
|
303
|
-
"link-label": C(a).blockSettings.linkCorners,
|
|
304
|
-
"unlink-label": C(a).blockSettings.unlinkCorners,
|
|
305
|
-
testid: `${e.testidPrefix}-border-radius-link`,
|
|
306
|
-
onToggle: S
|
|
307
|
-
}, null, 8, [
|
|
308
|
-
"linked",
|
|
309
|
-
"link-label",
|
|
310
|
-
"unlink-label",
|
|
311
|
-
"testid"
|
|
312
|
-
])]), p.value ? (o(), v(X, {
|
|
313
|
-
key: 0,
|
|
314
|
-
"model-value": u.value.topLeft,
|
|
315
|
-
min: 0,
|
|
316
|
-
max: e.max,
|
|
317
|
-
suffix: "px",
|
|
318
|
-
testid: `${e.testidPrefix}-border-radius-input`,
|
|
319
|
-
"onUpdate:modelValue": _
|
|
320
|
-
}, null, 8, [
|
|
321
|
-
"model-value",
|
|
322
|
-
"max",
|
|
323
|
-
"testid"
|
|
324
|
-
])) : (o(), f("div", Tt, [(o(), f(w, null, i(c, (t) => y("div", { key: t }, [y("label", Et, g(C(a).blockSettings[s[t]]), 1), E(X, {
|
|
325
|
-
"model-value": u.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__ */ t({
|
|
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 = x(() => 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(), f(w, null, [
|
|
361
|
-
y("div", Ot, [y("label", { class: T(C(H)) }, g(C(a).button.fontFamily), 3), y("select", {
|
|
362
|
-
class: T(C(G)),
|
|
363
|
-
value: C(ct)(e.block.fontFamily),
|
|
364
|
-
onChange: n[0] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
365
|
-
}, [y("option", At, g(C(a).button.inheritFont), 1), (o(!0), f(w, null, i(e.fontFamilies, (e) => (o(), f("option", {
|
|
366
|
-
key: e.value,
|
|
367
|
-
value: e.value
|
|
368
|
-
}, g(e.label), 9, jt))), 128))], 42, kt)]),
|
|
369
|
-
y("div", Mt, [y("label", { class: T(C(H)) }, g(C(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: T(C(H)) }, g(C(a).button.url), 3),
|
|
376
|
-
E(J, {
|
|
377
|
-
"model-value": e.block.url,
|
|
378
|
-
type: "url",
|
|
379
|
-
placeholder: C(a).button.urlPlaceholder,
|
|
380
|
-
"onUpdate:modelValue": n[2] ||= (e) => c("url", e)
|
|
381
|
-
}, null, 8, ["model-value", "placeholder"]),
|
|
382
|
-
e.block.url ? (o(), v(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: C(a).button.openInNewTab,
|
|
387
|
-
"onUpdate:modelValue": n[3] ||= (e) => c("openInNewTab", e)
|
|
388
|
-
}, null, 8, ["model-value", "label"])) : _("", !0)
|
|
389
|
-
]),
|
|
390
|
-
y("div", Pt, [y("label", { class: T(C(H)) }, g(C(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: T(C(H)) }, g(C(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: C(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: T(C(H)) }, g(C(a).button.fontSize), 3), y("div", Lt, [y("input", {
|
|
412
|
-
type: "number",
|
|
413
|
-
class: T(C(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: T(C(U)) }, "px", 2)])]),
|
|
419
|
-
y("div", zt, [
|
|
420
|
-
y("label", { class: T(C(H)) }, g(C(a).button.width), 3),
|
|
421
|
-
y("select", {
|
|
422
|
-
class: T(C(G)),
|
|
423
|
-
value: s.value,
|
|
424
|
-
onChange: n[9] ||= (e) => l(e.target.value)
|
|
425
|
-
}, [
|
|
426
|
-
y("option", Vt, g(C(a).button.widthAuto), 1),
|
|
427
|
-
y("option", Ht, g(C(a).button.fullWidth), 1),
|
|
428
|
-
y("option", Ut, g(C(a).button.widthCustom), 1)
|
|
429
|
-
], 42, Bt),
|
|
430
|
-
s.value === "custom" ? (o(), f("div", Wt, [y("input", {
|
|
431
|
-
type: "number",
|
|
432
|
-
class: T(C(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: T(C(U)) }, "px", 2)])) : _("", !0)
|
|
437
|
-
]),
|
|
438
|
-
y("div", Kt, [y("label", { class: T(C(H)) }, g(C(a).title.align), 3), E(Y, {
|
|
439
|
-
options: [
|
|
440
|
-
{
|
|
441
|
-
value: "left",
|
|
442
|
-
label: C(a).title.alignLeft
|
|
443
|
-
},
|
|
444
|
-
{
|
|
445
|
-
value: "center",
|
|
446
|
-
label: C(a).title.alignCenter
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
value: "right",
|
|
450
|
-
label: C(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__ */ t({
|
|
459
|
-
__name: "SpacingControl",
|
|
460
|
-
props: {
|
|
461
|
-
modelValue: {},
|
|
462
|
-
label: {}
|
|
463
|
-
},
|
|
464
|
-
emits: ["update:modelValue"],
|
|
465
|
-
setup(e, { emit: t }) {
|
|
466
|
-
let n = e, r = t, { t: i } = B(), a = x(() => n.modelValue.top === n.modelValue.right && n.modelValue.right === n.modelValue.bottom && n.modelValue.bottom === n.modelValue.left), s = h(a.value);
|
|
467
|
-
l(a, (e) => {
|
|
468
|
-
!e && s.value && (s.value = !1);
|
|
469
|
-
});
|
|
470
|
-
function c(e, t) {
|
|
471
|
-
let i = Math.max(0, n.modelValue[e] + t);
|
|
472
|
-
s.value ? r("update:modelValue", {
|
|
473
|
-
top: i,
|
|
474
|
-
right: i,
|
|
475
|
-
bottom: i,
|
|
476
|
-
left: i
|
|
477
|
-
}) : r("update:modelValue", {
|
|
478
|
-
...n.modelValue,
|
|
479
|
-
[e]: i
|
|
480
|
-
});
|
|
481
|
-
}
|
|
482
|
-
function u(e, t) {
|
|
483
|
-
let i = Math.max(0, t);
|
|
484
|
-
s.value ? r("update:modelValue", {
|
|
485
|
-
top: i,
|
|
486
|
-
right: i,
|
|
487
|
-
bottom: i,
|
|
488
|
-
left: i
|
|
489
|
-
}) : r("update:modelValue", {
|
|
490
|
-
...n.modelValue,
|
|
491
|
-
[e]: i
|
|
492
|
-
});
|
|
493
|
-
}
|
|
494
|
-
function d() {
|
|
495
|
-
if (s.value = !s.value, s.value) {
|
|
496
|
-
let e = n.modelValue.top;
|
|
497
|
-
r("update:modelValue", {
|
|
498
|
-
top: e,
|
|
499
|
-
right: e,
|
|
500
|
-
bottom: e,
|
|
501
|
-
left: e
|
|
502
|
-
});
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
return (t, n) => (o(), f("div", Yt, [y("label", Xt, g(e.label), 1), y("div", Zt, [
|
|
506
|
-
y("div", Qt, [
|
|
507
|
-
y("button", {
|
|
508
|
-
"aria-label": C(i).spacingControl.decreaseTop,
|
|
509
|
-
class: T([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
510
|
-
onClick: n[0] ||= (e) => c("top", -1)
|
|
511
|
-
}, [E(C(Ve), {
|
|
512
|
-
size: 12,
|
|
513
|
-
"stroke-width": 2
|
|
514
|
-
})], 10, $t),
|
|
515
|
-
y("input", {
|
|
516
|
-
type: "number",
|
|
517
|
-
class: T(_n),
|
|
518
|
-
value: e.modelValue.top,
|
|
519
|
-
"aria-label": C(i).spacingControl.top,
|
|
520
|
-
min: "0",
|
|
521
|
-
onInput: n[1] ||= (e) => u("top", Number(e.target.value))
|
|
522
|
-
}, null, 40, en),
|
|
523
|
-
y("button", {
|
|
524
|
-
"aria-label": C(i).spacingControl.increaseTop,
|
|
525
|
-
class: T([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
526
|
-
onClick: n[2] ||= (e) => c("top", 1)
|
|
527
|
-
}, [E(C(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": C(i).spacingControl.decreaseLeft,
|
|
536
|
-
class: T([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
537
|
-
onClick: n[3] ||= (e) => c("left", -1)
|
|
538
|
-
}, [E(C(Ve), {
|
|
539
|
-
size: 12,
|
|
540
|
-
"stroke-width": 2
|
|
541
|
-
})], 10, an),
|
|
542
|
-
y("input", {
|
|
543
|
-
type: "number",
|
|
544
|
-
class: T(_n),
|
|
545
|
-
value: e.modelValue.left,
|
|
546
|
-
"aria-label": C(i).spacingControl.left,
|
|
547
|
-
min: "0",
|
|
548
|
-
onInput: n[4] ||= (e) => u("left", Number(e.target.value))
|
|
549
|
-
}, null, 40, on),
|
|
550
|
-
y("button", {
|
|
551
|
-
"aria-label": C(i).spacingControl.increaseLeft,
|
|
552
|
-
class: T([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
553
|
-
onClick: n[5] ||= (e) => c("left", 1)
|
|
554
|
-
}, [E(C(V), {
|
|
555
|
-
size: 12,
|
|
556
|
-
"stroke-width": 2
|
|
557
|
-
})], 10, sn)
|
|
558
|
-
]),
|
|
559
|
-
y("button", {
|
|
560
|
-
class: T(["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)]", s.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": s.value ? C(i).spacingControl.unlock : C(i).spacingControl.lockAll,
|
|
562
|
-
title: s.value ? C(i).spacingControl.unlock : C(i).spacingControl.lockAll,
|
|
563
|
-
onClick: d
|
|
564
|
-
}, [s.value ? (o(), v(C(Ye), {
|
|
565
|
-
key: 0,
|
|
566
|
-
size: 14,
|
|
567
|
-
"stroke-width": 2
|
|
568
|
-
})) : (o(), v(C(We), {
|
|
569
|
-
key: 1,
|
|
570
|
-
size: 14,
|
|
571
|
-
"stroke-width": 2
|
|
572
|
-
}))], 10, cn),
|
|
573
|
-
y("div", ln, [
|
|
574
|
-
y("button", {
|
|
575
|
-
"aria-label": C(i).spacingControl.decreaseRight,
|
|
576
|
-
class: T([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
577
|
-
onClick: n[6] ||= (e) => c("right", -1)
|
|
578
|
-
}, [E(C(Ve), {
|
|
579
|
-
size: 12,
|
|
580
|
-
"stroke-width": 2
|
|
581
|
-
})], 10, un),
|
|
582
|
-
y("input", {
|
|
583
|
-
type: "number",
|
|
584
|
-
class: T(_n),
|
|
585
|
-
value: e.modelValue.right,
|
|
586
|
-
"aria-label": C(i).spacingControl.right,
|
|
587
|
-
min: "0",
|
|
588
|
-
onInput: n[7] ||= (e) => u("right", Number(e.target.value))
|
|
589
|
-
}, null, 40, dn),
|
|
590
|
-
y("button", {
|
|
591
|
-
"aria-label": C(i).spacingControl.increaseRight,
|
|
592
|
-
class: T([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
593
|
-
onClick: n[8] ||= (e) => c("right", 1)
|
|
594
|
-
}, [E(C(V), {
|
|
595
|
-
size: 12,
|
|
596
|
-
"stroke-width": 2
|
|
597
|
-
})], 10, fn)
|
|
598
|
-
])
|
|
599
|
-
]),
|
|
600
|
-
y("div", pn, [
|
|
601
|
-
y("button", {
|
|
602
|
-
"aria-label": C(i).spacingControl.decreaseBottom,
|
|
603
|
-
class: T([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
604
|
-
onClick: n[9] ||= (e) => c("bottom", -1)
|
|
605
|
-
}, [E(C(Ve), {
|
|
606
|
-
size: 12,
|
|
607
|
-
"stroke-width": 2
|
|
608
|
-
})], 10, mn),
|
|
609
|
-
y("input", {
|
|
610
|
-
type: "number",
|
|
611
|
-
class: T(_n),
|
|
612
|
-
value: e.modelValue.bottom,
|
|
613
|
-
"aria-label": C(i).spacingControl.bottom,
|
|
614
|
-
min: "0",
|
|
615
|
-
onInput: n[10] ||= (e) => u("bottom", Number(e.target.value))
|
|
616
|
-
}, null, 40, hn),
|
|
617
|
-
y("button", {
|
|
618
|
-
"aria-label": C(i).spacingControl.increaseBottom,
|
|
619
|
-
class: T([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
620
|
-
onClick: n[11] ||= (e) => c("bottom", 1)
|
|
621
|
-
}, [E(C(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 t = h(null), n = () => {};
|
|
632
|
-
return l(e, (e) => {
|
|
633
|
-
n(), t.value = null, e && (n = ue(e, (e) => {
|
|
634
|
-
t.value = e;
|
|
635
|
-
}));
|
|
636
|
-
}, { immediate: !0 }), t;
|
|
637
|
-
}
|
|
638
|
-
function bn() {
|
|
639
|
-
let e = n(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__ */ t({
|
|
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: t }) {
|
|
669
|
-
let r = e, a = t, { t: s } = B(), c = n(we, ie.liquid), l = x(() => typeof r.modelValue?.url == "string" ? r.modelValue.url : ""), u = x(() => l.value.trim() !== ""), m = bn(), b;
|
|
670
|
-
d(() => clearTimeout(b));
|
|
671
|
-
function S(e) {
|
|
672
|
-
r.measure && !L(e, c) && (b = setTimeout(async () => {
|
|
673
|
-
let t = await m(e), n = r.modelValue;
|
|
674
|
-
t && n?.url === e && a("update:modelValue", {
|
|
675
|
-
...n,
|
|
676
|
-
...he(t)
|
|
677
|
-
});
|
|
678
|
-
}, 300));
|
|
679
|
-
}
|
|
680
|
-
function D(e, t = null) {
|
|
681
|
-
if (clearTimeout(b), e.trim() === "") {
|
|
682
|
-
a("update:modelValue", void 0);
|
|
683
|
-
return;
|
|
684
|
-
}
|
|
685
|
-
let { naturalWidth: n, naturalHeight: i, ...o } = r.modelValue ?? ee(e), s = r.measure ? t : null;
|
|
686
|
-
a("update:modelValue", {
|
|
687
|
-
...o,
|
|
688
|
-
url: e,
|
|
689
|
-
...s ? he(s) : {}
|
|
690
|
-
}), s || S(e);
|
|
691
|
-
}
|
|
692
|
-
function O(e) {
|
|
693
|
-
r.modelValue && a("update:modelValue", {
|
|
694
|
-
...r.modelValue,
|
|
695
|
-
...e
|
|
696
|
-
});
|
|
697
|
-
}
|
|
698
|
-
let k = x(() => [
|
|
699
|
-
{
|
|
700
|
-
value: "cover",
|
|
701
|
-
label: s.blockSettings.backgroundSizeCover
|
|
702
|
-
},
|
|
703
|
-
{
|
|
704
|
-
value: "contain",
|
|
705
|
-
label: s.blockSettings.backgroundSizeContain
|
|
706
|
-
},
|
|
707
|
-
{
|
|
708
|
-
value: "auto",
|
|
709
|
-
label: s.blockSettings.backgroundSizeAuto
|
|
710
|
-
}
|
|
711
|
-
]), A = x(() => ({
|
|
712
|
-
"top-left": s.blockSettings.backgroundPositionTopLeft,
|
|
713
|
-
"top-center": s.blockSettings.backgroundPositionTopCenter,
|
|
714
|
-
"top-right": s.blockSettings.backgroundPositionTopRight,
|
|
715
|
-
"center-left": s.blockSettings.backgroundPositionCenterLeft,
|
|
716
|
-
"center-center": s.blockSettings.backgroundPositionCenter,
|
|
717
|
-
"center-right": s.blockSettings.backgroundPositionCenterRight,
|
|
718
|
-
"bottom-left": s.blockSettings.backgroundPositionBottomLeft,
|
|
719
|
-
"bottom-center": s.blockSettings.backgroundPositionBottomCenter,
|
|
720
|
-
"bottom-right": s.blockSettings.backgroundPositionBottomRight
|
|
721
|
-
})), M = x(() => 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 r.modelValue?.position?.x === e.x && r.modelValue?.position?.y === e.y;
|
|
728
|
-
}
|
|
729
|
-
let F = h(), { canBrowse: te, isUploading: ne, showOverlay: I, openMediaBrowser: re } = me({
|
|
730
|
-
target: F,
|
|
731
|
-
blocked: () => L(l.value, c),
|
|
732
|
-
apply: (e) => D(e.url, de(e.width, e.height))
|
|
733
|
-
});
|
|
734
|
-
return (t, n) => (o(), f("div", Sn, [y("div", null, [y("label", { class: T(C(H)) }, g(C(s).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
|
-
C(I) ? (o(), v(le, {
|
|
741
|
-
key: 0,
|
|
742
|
-
uploading: C(ne)
|
|
743
|
-
}, null, 8, ["uploading"])) : _("", !0),
|
|
744
|
-
E(J, {
|
|
745
|
-
"model-value": l.value,
|
|
746
|
-
type: "url",
|
|
747
|
-
placeholder: C(s).blockSettings.backgroundImagePlaceholder,
|
|
748
|
-
"onUpdate:modelValue": D
|
|
749
|
-
}, null, 8, ["model-value", "placeholder"]),
|
|
750
|
-
C(te) ? (o(), f("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) => C(re) && C(re)(...e)
|
|
761
|
-
}, [E(C(ze), {
|
|
762
|
-
size: 14,
|
|
763
|
-
"stroke-width": 1.5
|
|
764
|
-
}), p(" " + g(C(s).image.browseMedia), 1)], 8, wn)) : _("", !0)
|
|
765
|
-
], 8, Cn)]), u.value && e.modelValue ? (o(), f(w, { key: 0 }, [
|
|
766
|
-
e.heroMode ? _("", !0) : (o(), f("div", {
|
|
767
|
-
key: 0,
|
|
768
|
-
"data-testid": `${e.testidPrefix}-bg-size`
|
|
769
|
-
}, [y("label", { class: T(C(H)) }, g(C(s).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: T(C(H)) }, g(C(s).blockSettings.backgroundPosition), 3), y("div", {
|
|
775
|
-
role: "group",
|
|
776
|
-
"aria-label": C(s).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), f(w, null, i(M.value, (t) => (o(), f("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: T(["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: T(["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 ? _("", !0) : (o(), f("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: C(s).blockSettings.backgroundRepeat,
|
|
799
|
-
"onUpdate:modelValue": n[2] ||= (e) => O({ repeat: e })
|
|
800
|
-
}, null, 8, ["model-value", "label"])], 8, On))
|
|
801
|
-
], 64)) : _("", !0)]));
|
|
802
|
-
}
|
|
803
|
-
}), An = ["data-testid"], jn = { class: "tpl:mt-3" }, Mn = /* @__PURE__ */ t({
|
|
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(), f("div", { class: T(["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(C(Qe), {
|
|
819
|
-
class: T(["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, g(e.title), 1)], 8, An), r(y("div", jn, [a(t.$slots, "default")], 512), [[S, 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__ */ t({
|
|
842
|
-
__name: "HeroControl",
|
|
843
|
-
props: { section: {} },
|
|
844
|
-
emits: ["update"],
|
|
845
|
-
setup(e, { emit: t }) {
|
|
846
|
-
function r(e) {
|
|
847
|
-
return typeof e == "number" && Number.isFinite(e) && e >= 1;
|
|
848
|
-
}
|
|
849
|
-
let i = e, a = t, { t: s } = B(), c = n(we, ie.liquid), l = n(De, null), u = n(Se, void 0), d = bn(), p = x(() => typeof i.section.backgroundImage?.url == "string" ? i.section.backgroundImage.url : ""), m = x(() => p.value.trim() !== ""), h = x(() => L(p.value, c)), b = x(() => i.section.hero), S = x(() => i.section.columns === "1"), w = x(() => b.value ? r(b.value.height) ? "fixed" : "image" : "fit"), D = x(() => r(b.value?.height) ? b.value.height : zn), O = x(() => [
|
|
850
|
-
{
|
|
851
|
-
value: "fit",
|
|
852
|
-
label: s.blockSettings.heroHeightFit
|
|
853
|
-
},
|
|
854
|
-
{
|
|
855
|
-
value: "image",
|
|
856
|
-
label: s.blockSettings.heroHeightImage,
|
|
857
|
-
disabled: h.value
|
|
858
|
-
},
|
|
859
|
-
{
|
|
860
|
-
value: "fixed",
|
|
861
|
-
label: s.blockSettings.heroHeightFixed
|
|
862
|
-
}
|
|
863
|
-
]), k = x(() => [
|
|
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 = x(() => w.value === "image" && m.value && !h.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 = b.value?.verticalAlign ?? "middle";
|
|
882
|
-
if (e === "image") {
|
|
883
|
-
w.value !== "image" && a("update", { hero: {
|
|
884
|
-
height: "image",
|
|
885
|
-
verticalAlign: t
|
|
886
|
-
} }), N();
|
|
887
|
-
return;
|
|
888
|
-
}
|
|
889
|
-
if (e === w.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 || h.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
|
-
!b.value || !Number.isFinite(e) || e < 1 || a("update", { hero: {
|
|
911
|
-
...b.value,
|
|
912
|
-
height: Math.round(e)
|
|
913
|
-
} });
|
|
914
|
-
}
|
|
915
|
-
function F(e) {
|
|
916
|
-
b.value && a("update", { hero: {
|
|
917
|
-
...b.value,
|
|
918
|
-
verticalAlign: e
|
|
919
|
-
} });
|
|
920
|
-
}
|
|
921
|
-
return (e, t) => !S.value && b.value ? (o(), f("p", Nn, g(C(s).section.heroNeedsOneColumn), 1)) : S.value && (m.value || b.value) ? (o(), f("div", Pn, [
|
|
922
|
-
y("div", Fn, [
|
|
923
|
-
y("label", { class: T(C(H)) }, g(C(s).blockSettings.heroHeight), 3),
|
|
924
|
-
E(Y, {
|
|
925
|
-
options: O.value,
|
|
926
|
-
"model-value": w.value,
|
|
927
|
-
"onUpdate:modelValue": M
|
|
928
|
-
}, null, 8, ["options", "model-value"]),
|
|
929
|
-
h.value ? (o(), f("p", In, g(C(s).blockSettings.heroMatchImageMergeTag), 1)) : A.value ? (o(), f("p", Ln, g(C(s).blockSettings.heroSizeUnknown), 1)) : _("", !0)
|
|
930
|
-
]),
|
|
931
|
-
w.value === "fixed" ? (o(), v(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"])) : _("", !0),
|
|
939
|
-
b.value ? (o(), f("div", Rn, [y("label", { class: T(C(H)) }, g(C(s).blockSettings.heroAlign), 3), E(Y, {
|
|
940
|
-
options: k.value,
|
|
941
|
-
"model-value": b.value.verticalAlign,
|
|
942
|
-
"onUpdate:modelValue": F
|
|
943
|
-
}, null, 8, ["options", "model-value"])])) : _("", !0)
|
|
944
|
-
])) : _("", !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__ */ t({
|
|
959
|
-
__name: "CommonBlockSettings",
|
|
960
|
-
props: {
|
|
961
|
-
block: {},
|
|
962
|
-
isFirstSection: { type: Boolean }
|
|
963
|
-
},
|
|
964
|
-
emits: ["update"],
|
|
965
|
-
setup(e, { emit: t }) {
|
|
966
|
-
let a = e, c = t, { t: d } = B(), m = n(Oe, []), S = n(ke, !1), O = s(/* @__PURE__ */ new Set()), A = h(!1), j = h(""), M = h(""), N = [{
|
|
967
|
-
key: "desktop",
|
|
968
|
-
icon: Pe,
|
|
969
|
-
labelKey: "showOnDesktop"
|
|
970
|
-
}, {
|
|
971
|
-
key: "mobile",
|
|
972
|
-
icon: Ie,
|
|
973
|
-
labelKey: "showOnMobile"
|
|
974
|
-
}];
|
|
975
|
-
function P(e) {
|
|
976
|
-
O.has(e) ? O.delete(e) : O.add(e);
|
|
977
|
-
}
|
|
978
|
-
let ee = x(() => m.length > 0 || S), F = x(() => a.block.displayCondition ? !m.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() && (c("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 = x(() => {
|
|
993
|
-
let e = {};
|
|
994
|
-
for (let t of m) {
|
|
995
|
-
let n = t.group ?? "";
|
|
996
|
-
e[n] || (e[n] = []), e[n].push(t);
|
|
997
|
-
}
|
|
998
|
-
return e;
|
|
999
|
-
}), re = x(() => a.block.type === "section" && k(a.block)?.applied === !0);
|
|
1000
|
-
function ie(e, t) {
|
|
1001
|
-
c("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], c("update", { visibility: t });
|
|
1015
|
-
}
|
|
1016
|
-
return (t, n) => (o(), f("div", { class: T(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1017
|
-
E(Mn, {
|
|
1018
|
-
title: C(d).blockSettings.spacing,
|
|
1019
|
-
open: O.has("spacing"),
|
|
1020
|
-
"no-border": e.isFirstSection,
|
|
1021
|
-
onToggle: n[1] ||= (e) => P("spacing")
|
|
1022
|
-
}, {
|
|
1023
|
-
default: u(() => [E(vn, {
|
|
1024
|
-
label: C(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: C(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: u(() => [
|
|
1041
|
-
y("label", { class: T(C(H)) }, g(C(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(), v(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) => c("update", { backgroundImage: e })
|
|
1055
|
-
}, null, 8, ["model-value", "hero-mode"])) : _("", !0),
|
|
1056
|
-
e.block.type === "section" ? (o(), v(Bn, {
|
|
1057
|
-
key: 1,
|
|
1058
|
-
section: e.block,
|
|
1059
|
-
onUpdate: n[4] ||= (e) => c("update", e)
|
|
1060
|
-
}, null, 8, ["section"])) : _("", !0)
|
|
1061
|
-
]),
|
|
1062
|
-
_: 1
|
|
1063
|
-
}, 8, ["title", "open"]),
|
|
1064
|
-
E(Mn, {
|
|
1065
|
-
title: C(d).blockSettings.display,
|
|
1066
|
-
open: O.has("display"),
|
|
1067
|
-
onToggle: n[6] ||= (e) => P("display")
|
|
1068
|
-
}, {
|
|
1069
|
-
default: u(() => [y("div", Vn, [(o(), f(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: C(d).blockSettings[e.labelKey],
|
|
1074
|
-
"onUpdate:modelValue": (t) => L(e.key)
|
|
1075
|
-
}, {
|
|
1076
|
-
default: u(() => [y("span", Hn, [(o(), v(D(e.icon), {
|
|
1077
|
-
size: 14,
|
|
1078
|
-
"stroke-width": 1.5
|
|
1079
|
-
})), p(" " + g(C(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(), v(Mn, {
|
|
1089
|
-
key: 0,
|
|
1090
|
-
"header-test-id": "display-condition-section",
|
|
1091
|
-
title: C(d).blockSettings.displayCondition,
|
|
1092
|
-
open: O.has("condition"),
|
|
1093
|
-
onToggle: n[10] ||= (e) => P("condition")
|
|
1094
|
-
}, {
|
|
1095
|
-
default: u(() => [y("div", Un, [y("select", {
|
|
1096
|
-
"data-testid": "display-condition-select",
|
|
1097
|
-
class: T(["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
|
-
c("update", { displayCondition: void 0 });
|
|
1107
|
-
return;
|
|
1108
|
-
}
|
|
1109
|
-
let n = C(m).find((e) => e.label === t);
|
|
1110
|
-
n && c("update", { displayCondition: n });
|
|
1111
|
-
}
|
|
1112
|
-
}, [
|
|
1113
|
-
y("option", Gn, g(C(d).blockSettings.noCondition), 1),
|
|
1114
|
-
(o(!0), f(w, null, i(I.value, (e, t) => (o(), f(w, { key: t }, [t ? (o(), f("optgroup", {
|
|
1115
|
-
key: 0,
|
|
1116
|
-
label: String(t)
|
|
1117
|
-
}, [(o(!0), f(w, null, i(e, (e) => (o(), f("option", {
|
|
1118
|
-
key: e.label,
|
|
1119
|
-
value: e.label
|
|
1120
|
-
}, g(e.label), 9, qn))), 128))], 8, Kn)) : (o(!0), f(w, { key: 1 }, i(e, (e) => (o(), f("option", {
|
|
1121
|
-
key: e.label,
|
|
1122
|
-
value: e.label
|
|
1123
|
-
}, g(e.label), 9, Jn))), 128))], 64))), 128)),
|
|
1124
|
-
C(S) ? (o(), f("option", Yn, g(C(d).blockSettings.customCondition), 1)) : _("", !0)
|
|
1125
|
-
], 42, Wn), A.value || F.value ? (o(), f("div", Xn, [
|
|
1126
|
-
y("div", null, [y("label", Zn, g(C(d).blockSettings.customConditionBefore), 1), r(y("textarea", {
|
|
1127
|
-
"onUpdate:modelValue": n[8] ||= (e) => j.value = e,
|
|
1128
|
-
rows: "2",
|
|
1129
|
-
class: T(C(et))
|
|
1130
|
-
}, null, 2), [[b, j.value]])]),
|
|
1131
|
-
y("div", null, [y("label", Qn, g(C(d).blockSettings.customConditionAfter), 1), r(y("textarea", {
|
|
1132
|
-
"onUpdate:modelValue": n[9] ||= (e) => M.value = e,
|
|
1133
|
-
rows: "2",
|
|
1134
|
-
class: T(C(et))
|
|
1135
|
-
}, null, 2), [[b, M.value]])]),
|
|
1136
|
-
y("div", $n, [y("button", {
|
|
1137
|
-
type: "button",
|
|
1138
|
-
class: T(C(it)),
|
|
1139
|
-
disabled: !j.value.trim(),
|
|
1140
|
-
onClick: ne
|
|
1141
|
-
}, g(C(d).blockSettings.applyCondition), 11, er)])
|
|
1142
|
-
])) : e.block.displayCondition && !F.value ? (o(), f(w, { key: 1 }, [e.block.displayCondition.description ? (o(), f("p", tr, g(e.block.displayCondition.description), 1)) : _("", !0), y("div", nr, [y("pre", rr, g(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (o(), f("pre", ir, g(e.block.displayCondition.after), 1)) : _("", !0)])], 64)) : _("", !0)])]),
|
|
1143
|
-
_: 1
|
|
1144
|
-
}, 8, ["title", "open"])) : _("", !0)
|
|
1145
|
-
], 2));
|
|
1146
|
-
}
|
|
1147
|
-
}), or = ["title"], sr = /* @__PURE__ */ t({
|
|
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(), f("div", {
|
|
1158
|
-
class: "tpl:mb-3.5",
|
|
1159
|
-
title: e.readOnly ? C(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: u(() => [p(g(e.field.label) + " ", 1), e.readOnly ? (o(), v(C(Ye), {
|
|
1169
|
-
key: 0,
|
|
1170
|
-
size: 12,
|
|
1171
|
-
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
1172
|
-
})) : _("", !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__ */ t({
|
|
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(), f("div", cr, [y("label", { class: T(C(H)) }, [
|
|
1191
|
-
p(g(e.label) + " ", 1),
|
|
1192
|
-
e.readOnly ? (o(), f("span", {
|
|
1193
|
-
key: 0,
|
|
1194
|
-
title: C(t).customBlocks.dataSource.readOnlyTooltip
|
|
1195
|
-
}, [E(C(Ye), {
|
|
1196
|
-
size: 12,
|
|
1197
|
-
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
|
|
1198
|
-
"aria-hidden": "true"
|
|
1199
|
-
}), y("span", ur, g(C(t).customBlocks.dataSource.readOnlyTooltip), 1)], 8, lr)) : _("", !0),
|
|
1200
|
-
e.required ? (o(), f("span", {
|
|
1201
|
-
key: 1,
|
|
1202
|
-
class: "tpl:text-[var(--tpl-danger)]",
|
|
1203
|
-
title: C(t).customBlocks.fields.required
|
|
1204
|
-
}, [r[0] ||= y("span", { "aria-hidden": "true" }, "*", -1), y("span", fr, g(C(t).customBlocks.fields.required), 1)], 8, dr)) : _("", !0)
|
|
1205
|
-
], 2), a(n.$slots, "default")]));
|
|
1206
|
-
}
|
|
1207
|
-
}), pr = /* @__PURE__ */ t({
|
|
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 r = e, i = t, { t: a } = B(), s = n(Ee, Ne), c = x(() => se(r.field, s));
|
|
1217
|
-
return (t, n) => (o(), v(Q, {
|
|
1218
|
-
label: e.field.label,
|
|
1219
|
-
required: e.field.required,
|
|
1220
|
-
"read-only": e.readOnly
|
|
1221
|
-
}, {
|
|
1222
|
-
default: u(() => [E(K, {
|
|
1223
|
-
"model-value": e.modelValue,
|
|
1224
|
-
placeholder: e.field.placeholder,
|
|
1225
|
-
disabled: e.readOnly,
|
|
1226
|
-
presets: c.value.presets,
|
|
1227
|
-
"allow-custom": c.value.allowCustom,
|
|
1228
|
-
title: e.readOnly ? C(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__ */ t({
|
|
1250
|
-
__name: "ImageField",
|
|
1251
|
-
props: {
|
|
1252
|
-
field: {},
|
|
1253
|
-
modelValue: {},
|
|
1254
|
-
readOnly: { type: Boolean }
|
|
1255
|
-
},
|
|
1256
|
-
emits: ["update:modelValue"],
|
|
1257
|
-
setup(e, { emit: t }) {
|
|
1258
|
-
let n = e, r = t, { t: i } = B(), a = h(), { canBrowse: s, isUploading: c, showOverlay: l, openMediaBrowser: d } = me({
|
|
1259
|
-
target: a,
|
|
1260
|
-
blocked: () => !!n.readOnly,
|
|
1261
|
-
apply: (e) => r("update:modelValue", e.url)
|
|
1262
|
-
});
|
|
1263
|
-
return (t, n) => (o(), v(Q, {
|
|
1264
|
-
label: e.field.label,
|
|
1265
|
-
required: e.field.required,
|
|
1266
|
-
"read-only": e.readOnly
|
|
1267
|
-
}, {
|
|
1268
|
-
default: u(() => [y("div", {
|
|
1269
|
-
ref_key: "dropZoneRef",
|
|
1270
|
-
ref: a,
|
|
1271
|
-
class: "tpl:relative"
|
|
1272
|
-
}, [
|
|
1273
|
-
C(l) ? (o(), v(le, {
|
|
1274
|
-
key: 0,
|
|
1275
|
-
uploading: C(c)
|
|
1276
|
-
}, null, 8, ["uploading"])) : _("", !0),
|
|
1277
|
-
e.readOnly ? (o(), f("input", {
|
|
1278
|
-
key: 1,
|
|
1279
|
-
type: "url",
|
|
1280
|
-
class: T([C(G), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1281
|
-
value: e.modelValue,
|
|
1282
|
-
placeholder: e.field.placeholder || "https://...",
|
|
1283
|
-
disabled: "",
|
|
1284
|
-
title: C(i).customBlocks.dataSource.readOnlyTooltip
|
|
1285
|
-
}, null, 10, mr)) : (o(), f("input", {
|
|
1286
|
-
key: 2,
|
|
1287
|
-
type: "url",
|
|
1288
|
-
class: T(C(G)),
|
|
1289
|
-
value: e.modelValue,
|
|
1290
|
-
placeholder: e.field.placeholder || "https://...",
|
|
1291
|
-
onInput: n[0] ||= (e) => r("update:modelValue", e.target.value)
|
|
1292
|
-
}, null, 42, hr)),
|
|
1293
|
-
C(s) && !e.readOnly ? (o(), f("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) => C(d)()
|
|
1297
|
-
}, [E(C(ze), {
|
|
1298
|
-
size: 14,
|
|
1299
|
-
"stroke-width": 1.5
|
|
1300
|
-
}), p(" " + g(C(i).image.browseMedia), 1)])) : _("", !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__ */ t({
|
|
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(), v(Q, {
|
|
1328
|
-
label: e.field.label,
|
|
1329
|
-
required: e.field.required,
|
|
1330
|
-
"read-only": e.readOnly
|
|
1331
|
-
}, {
|
|
1332
|
-
default: u(() => [y("input", {
|
|
1333
|
-
type: "number",
|
|
1334
|
-
class: T([C(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 ? C(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__ */ t({
|
|
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(), c = x(() => n.modelValue || []), l = x(() => !n.field.maxItems || c.value.length < n.field.maxItems), d = x(() => !n.field.minItems || c.value.length > n.field.minItems);
|
|
1367
|
-
function m() {
|
|
1368
|
-
if (!l.value || n.readOnly) return;
|
|
1369
|
-
let e = {};
|
|
1370
|
-
for (let t of n.field.fields) e[t.key] = t.default ?? "";
|
|
1371
|
-
r("update:modelValue", [...c.value, e]);
|
|
1372
|
-
}
|
|
1373
|
-
function h(e) {
|
|
1374
|
-
if (!d.value || n.readOnly) return;
|
|
1375
|
-
let t = [...c.value];
|
|
1376
|
-
t.splice(e, 1), r("update:modelValue", t);
|
|
1377
|
-
}
|
|
1378
|
-
function b(e, t, n) {
|
|
1379
|
-
let i = c.value.map((r, i) => i === e ? {
|
|
1380
|
-
...r,
|
|
1381
|
-
[t]: n
|
|
1382
|
-
} : r);
|
|
1383
|
-
r("update:modelValue", i);
|
|
1384
|
-
}
|
|
1385
|
-
return (t, n) => (o(), v(Q, {
|
|
1386
|
-
label: e.field.label,
|
|
1387
|
-
required: e.field.required,
|
|
1388
|
-
"read-only": e.readOnly
|
|
1389
|
-
}, {
|
|
1390
|
-
default: u(() => [y("div", yr, [
|
|
1391
|
-
(o(!0), f(w, null, i(c.value, (t, n) => (o(), f("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, " #" + g(n + 1), 1), d.value && !e.readOnly ? (o(), f("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: C(a).customBlocks.fields.removeItem,
|
|
1399
|
-
onClick: (e) => h(n)
|
|
1400
|
-
}, [E(C(He), {
|
|
1401
|
-
size: 12,
|
|
1402
|
-
"stroke-width": 2
|
|
1403
|
-
})], 8, Sr)) : _("", !0)]), (o(!0), f(w, null, i(e.field.fields, (r) => (o(), v(D(C(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) => b(n, r.key, e)
|
|
1409
|
-
}, null, 8, [
|
|
1410
|
-
"field",
|
|
1411
|
-
"model-value",
|
|
1412
|
-
"read-only",
|
|
1413
|
-
"onUpdate:modelValue"
|
|
1414
|
-
]))), 128))]))), 128)),
|
|
1415
|
-
l.value && !e.readOnly ? (o(), f("button", {
|
|
1416
|
-
key: 0,
|
|
1417
|
-
type: "button",
|
|
1418
|
-
class: T(C(nt)),
|
|
1419
|
-
onClick: m
|
|
1420
|
-
}, [E(C(V), {
|
|
1421
|
-
size: 14,
|
|
1422
|
-
"stroke-width": 2
|
|
1423
|
-
}), p(" " + g(C(a).customBlocks.fields.addItem), 1)], 2)) : _("", !0),
|
|
1424
|
-
!l.value && !e.readOnly ? (o(), f("p", Cr, g(C(a).customBlocks.fields.maxItemsReached), 1)) : _("", !0),
|
|
1425
|
-
!d.value && !e.readOnly ? (o(), f("p", wr, g(C(s)(C(a).customBlocks.fields.minItemsRequired, { count: e.field.minItems ?? 0 })), 1)) : _("", !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__ */ t({
|
|
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(), v(Q, {
|
|
1449
|
-
label: e.field.label,
|
|
1450
|
-
required: e.field.required,
|
|
1451
|
-
"read-only": e.readOnly
|
|
1452
|
-
}, {
|
|
1453
|
-
default: u(() => [y("select", {
|
|
1454
|
-
class: T([C(G), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1455
|
-
value: e.modelValue,
|
|
1456
|
-
disabled: e.readOnly,
|
|
1457
|
-
title: e.readOnly ? C(r).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1458
|
-
onChange: a[0] ||= (t) => !e.readOnly && n("update:modelValue", t.target.value)
|
|
1459
|
-
}, [(o(!0), f(w, null, i(e.field.options, (e) => (o(), f("option", {
|
|
1460
|
-
key: e.value,
|
|
1461
|
-
value: e.value
|
|
1462
|
-
}, g(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__ */ t({
|
|
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(), v(Q, {
|
|
1485
|
-
label: e.field.label,
|
|
1486
|
-
required: e.field.required,
|
|
1487
|
-
"read-only": e.readOnly
|
|
1488
|
-
}, {
|
|
1489
|
-
default: u(() => [e.readOnly ? (o(), f("input", {
|
|
1490
|
-
key: 0,
|
|
1491
|
-
type: "text",
|
|
1492
|
-
class: T([C(G), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1493
|
-
value: e.modelValue,
|
|
1494
|
-
placeholder: e.field.placeholder,
|
|
1495
|
-
disabled: "",
|
|
1496
|
-
title: C(r).customBlocks.dataSource.readOnlyTooltip
|
|
1497
|
-
}, null, 10, kr)) : (o(), v(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__ */ t({
|
|
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(), v(Q, {
|
|
1527
|
-
label: e.field.label,
|
|
1528
|
-
required: e.field.required,
|
|
1529
|
-
"read-only": e.readOnly
|
|
1530
|
-
}, {
|
|
1531
|
-
default: u(() => [e.readOnly ? (o(), f("textarea", {
|
|
1532
|
-
key: 0,
|
|
1533
|
-
value: e.modelValue,
|
|
1534
|
-
placeholder: e.field.placeholder,
|
|
1535
|
-
rows: "3",
|
|
1536
|
-
disabled: "",
|
|
1537
|
-
title: C(r).customBlocks.dataSource.readOnlyTooltip,
|
|
1538
|
-
class: T(Mr)
|
|
1539
|
-
}, null, 8, jr)) : (o(), v(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__ */ t({
|
|
1583
|
-
__name: "CustomBlockToolbar",
|
|
1584
|
-
props: { block: {} },
|
|
1585
|
-
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
1586
|
-
setup(e, { emit: t }) {
|
|
1587
|
-
let r = e, a = t, { t: s } = B(), c = n(Ae, []), l = x(() => c.find((e) => e.type === r.block.customType)), u = x(() => r.block), { isFetching: d, fetchError: m, fetch: h, hasDataSource: b, needsFetch: S } = 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 && !!r.block.dataSourceFetched;
|
|
1596
|
-
}
|
|
1597
|
-
function O(e, t) {
|
|
1598
|
-
a("updateFieldValues", {
|
|
1599
|
-
...r.block.fieldValues,
|
|
1600
|
-
[e]: t
|
|
1601
|
-
});
|
|
1602
|
-
}
|
|
1603
|
-
return (t, n) => l.value ? (o(), f("div", Lr, [
|
|
1604
|
-
l.value.description ? (o(), f("p", Rr, g(l.value.description), 1)) : _("", !0),
|
|
1605
|
-
C(b) ? (o(), f("div", zr, [C(S) && !C(d) ? (o(), f("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) => C(h) && C(h)(...e)
|
|
1610
|
-
}, g(l.value?.dataSource?.label || C(s).customBlocks.dataSource.fetchButton), 1)) : (o(), f("div", Br, [C(d) ? (o(), f("div", Vr, g(C(s).customBlocks.dataSource.fetching), 1)) : (o(), f("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) => C(h) && C(h)(...e)
|
|
1615
|
-
}, [E(C(Le), { size: 12 }), p(" " + g(C(s).customBlocks.dataSource.changeButton), 1)]))])), C(m) ? (o(), f("p", Hr, [E(C(Fe), {
|
|
1616
|
-
size: 14,
|
|
1617
|
-
class: "tpl:shrink-0"
|
|
1618
|
-
}), p(" " + g(C(s).customBlocks.dataSource.fetchError), 1)])) : _("", !0)])) : _("", !0),
|
|
1619
|
-
(o(!0), f(w, null, i(l.value.fields, (t) => (o(), v(D(C(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(), f("div", Fr, [y("p", Ir, g(C(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__ */ t({
|
|
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(), f(w, null, [
|
|
1643
|
-
y("div", Wr, [y("label", { class: T(C(H)) }, g(C(r).divider.style), 3), E(Y, {
|
|
1644
|
-
options: [
|
|
1645
|
-
{
|
|
1646
|
-
value: "solid",
|
|
1647
|
-
label: C(r).divider.solid
|
|
1648
|
-
},
|
|
1649
|
-
{
|
|
1650
|
-
value: "dashed",
|
|
1651
|
-
label: C(r).divider.dashed
|
|
1652
|
-
},
|
|
1653
|
-
{
|
|
1654
|
-
value: "dotted",
|
|
1655
|
-
label: C(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: T(C(H)) }, g(C(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: T(C(H)) }, g(C(r).divider.thickness), 3), y("div", qr, [y("input", {
|
|
1666
|
-
type: "number",
|
|
1667
|
-
class: T(C(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: T(C(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__ */ t({
|
|
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(), f("div", Xr, [
|
|
1682
|
-
y("label", { class: T(C(H)) }, g(C(r).html.content), 3),
|
|
1683
|
-
y("textarea", {
|
|
1684
|
-
value: e.block.content,
|
|
1685
|
-
placeholder: "<div>...</div>",
|
|
1686
|
-
rows: "10",
|
|
1687
|
-
class: T(C(et)),
|
|
1688
|
-
onInput: i[0] ||= (e) => n("update", { content: e.target.value })
|
|
1689
|
-
}, null, 42, Zr),
|
|
1690
|
-
y("p", Qr, [E(C(Ue), {
|
|
1691
|
-
size: 12,
|
|
1692
|
-
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
1693
|
-
}), p(" " + g(C(r).html.sanitizationHint), 1)])
|
|
1694
|
-
]));
|
|
1695
|
-
}
|
|
1696
|
-
});
|
|
1697
|
-
// src/composables/useImageAspectLock.ts
|
|
1698
|
-
function ei(e) {
|
|
1699
|
-
let t = h(!1), n = h(null);
|
|
1700
|
-
l(() => e.block().id, () => {
|
|
1701
|
-
t.value = !1, n.value = null;
|
|
1702
|
-
});
|
|
1703
|
-
let r = x(() => fe(e.block()) ?? e.measured()), i = x(() => {
|
|
1704
|
-
let t = e.block().width;
|
|
1705
|
-
return t === "full" ? e.room() : t;
|
|
1706
|
-
}), a = x(() => {
|
|
1707
|
-
let e = r.value, t = i.value;
|
|
1708
|
-
return !e || t === null ? null : Math.round(t * e.height / e.width);
|
|
1709
|
-
}), o = x(() => r.value !== null), s = x(() => {
|
|
1710
|
-
let t = e.block().height;
|
|
1711
|
-
return t === void 0 || a.value !== null && Math.abs(a.value - t) <= 1;
|
|
1712
|
-
}), c = x(() => o.value && !t.value && s.value);
|
|
1713
|
-
function u() {
|
|
1714
|
-
if (fe(e.block())) return {};
|
|
1715
|
-
let t = e.measured();
|
|
1716
|
-
return t ? he(t) : {};
|
|
1717
|
-
}
|
|
1718
|
-
function d(r) {
|
|
1719
|
-
if (n.value = null, !r) return t.value = !0, null;
|
|
1720
|
-
if (t.value = !1, !o.value) return null;
|
|
1721
|
-
let i = { ...u() };
|
|
1722
|
-
return e.block().height !== void 0 && (i.height = void 0), Object.keys(i).length > 0 ? i : null;
|
|
1723
|
-
}
|
|
1724
|
-
function f(e) {
|
|
1725
|
-
return n.value = null, c.value ? {
|
|
1726
|
-
width: e,
|
|
1727
|
-
height: void 0,
|
|
1728
|
-
...u()
|
|
1729
|
-
} : { width: e };
|
|
1730
|
-
}
|
|
1731
|
-
function p(t) {
|
|
1732
|
-
let i = r.value;
|
|
1733
|
-
if (!c.value || !i || !Number.isFinite(t) || t <= 0) return null;
|
|
1734
|
-
let a = Math.round(t * i.width / i.height);
|
|
1735
|
-
if (a < 1) return null;
|
|
1736
|
-
let o = e.room();
|
|
1737
|
-
return o !== null && a >= o ? (n.value = Math.round(o * i.height / i.width), {
|
|
1738
|
-
width: "full",
|
|
1739
|
-
height: void 0,
|
|
1740
|
-
...u()
|
|
1741
|
-
}) : (n.value = null, {
|
|
1742
|
-
width: a,
|
|
1743
|
-
height: void 0,
|
|
1744
|
-
...u()
|
|
1745
|
-
});
|
|
1746
|
-
}
|
|
1747
|
-
return {
|
|
1748
|
-
available: o,
|
|
1749
|
-
locked: c,
|
|
1750
|
-
derivedHeight: a,
|
|
1751
|
-
cappedHeight: n,
|
|
1752
|
-
setLocked: d,
|
|
1753
|
-
widthUpdates: f,
|
|
1754
|
-
heightUpdates: p
|
|
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__ */ t({
|
|
1780
|
-
__name: "ImageToolbar",
|
|
1781
|
-
props: { block: {} },
|
|
1782
|
-
emits: ["update"],
|
|
1783
|
-
setup(e, { emit: t }) {
|
|
1784
|
-
let r = e, i = t, { t: a, format: s } = B(), c = n(we, ie.liquid), l = n(De, null), d = n(Se, void 0), m = h(!1), b = h(!1), { start: S } = be(() => {
|
|
1785
|
-
m.value = !1, b.value = !1;
|
|
1786
|
-
}, 1e3, { immediate: !1 }), D = [
|
|
1787
|
-
300,
|
|
1788
|
-
400,
|
|
1789
|
-
500
|
|
1790
|
-
], O = x(() => {
|
|
1791
|
-
let e = r.block.width;
|
|
1792
|
-
return e === "full" ? "full" : D.includes(e) ? String(e) : "custom";
|
|
1793
|
-
}), k = x(() => typeof r.block.height == "number" ? "custom" : "auto");
|
|
1794
|
-
function A(e, t) {
|
|
1795
|
-
i("update", { [e]: t });
|
|
1796
|
-
}
|
|
1797
|
-
function j(e) {
|
|
1798
|
-
if (e === "custom") {
|
|
1799
|
-
let e = r.block.width;
|
|
1800
|
-
(typeof e != "number" || D.includes(e)) && i("update", R.widthUpdates(Ei));
|
|
1801
|
-
} else i("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 || i("update", R.widthUpdates(t));
|
|
1816
|
-
}
|
|
1817
|
-
function te(e) {
|
|
1818
|
-
e !== r.block.src && i("update", {
|
|
1819
|
-
src: e,
|
|
1820
|
-
...he(null)
|
|
1821
|
-
});
|
|
1822
|
-
}
|
|
1823
|
-
function ne(e) {
|
|
1824
|
-
i("update", {
|
|
1825
|
-
src: e.url,
|
|
1826
|
-
...he(de(e.width, e.height))
|
|
1827
|
-
}), e.alt && (A("alt", e.alt), b.value = !0), m.value = !0, S();
|
|
1828
|
-
}
|
|
1829
|
-
let I = h(), re = x(() => L(r.block.src, c)), { canBrowse: ae, isUploading: oe, showOverlay: se, openMediaBrowser: ce } = me({
|
|
1830
|
-
target: I,
|
|
1831
|
-
blocked: re,
|
|
1832
|
-
apply: ne
|
|
1833
|
-
}), ue = ye(() => re.value || !r.block.src || fe(r.block) ? void 0 : r.block.src), ge = yn(() => ue.value), _e = x(() => l ? pe(l.content.value, r.block.id, d) : null), R = ei({
|
|
1834
|
-
block: () => r.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 && i("update", e);
|
|
1841
|
-
}
|
|
1842
|
-
let Ee = h(null);
|
|
1843
|
-
function Oe(e) {
|
|
1844
|
-
Ee.value = e;
|
|
1845
|
-
let t = R.heightUpdates(Number(e));
|
|
1846
|
-
t && i("update", t);
|
|
1847
|
-
}
|
|
1848
|
-
return (t, n) => (o(), f(w, null, [
|
|
1849
|
-
y("div", ti, [y("label", { class: T(C(H)) }, g(C(a).image.imageUrl), 3), y("div", {
|
|
1850
|
-
ref_key: "dropZoneRef",
|
|
1851
|
-
ref: I,
|
|
1852
|
-
class: "tpl:relative"
|
|
1853
|
-
}, [
|
|
1854
|
-
C(se) ? (o(), v(le, {
|
|
1855
|
-
key: 0,
|
|
1856
|
-
uploading: C(oe)
|
|
1857
|
-
}, null, 8, ["uploading"])) : _("", !0),
|
|
1858
|
-
E(J, {
|
|
1859
|
-
"model-value": e.block.src,
|
|
1860
|
-
type: "url",
|
|
1861
|
-
placeholder: C(a).image.imageUrlPlaceholder,
|
|
1862
|
-
pulse: m.value,
|
|
1863
|
-
"onUpdate:modelValue": n[0] ||= (e) => te(e)
|
|
1864
|
-
}, null, 8, [
|
|
1865
|
-
"model-value",
|
|
1866
|
-
"placeholder",
|
|
1867
|
-
"pulse"
|
|
1868
|
-
]),
|
|
1869
|
-
C(ae) ? (o(), f("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) => C(ce) && C(ce)(...e)
|
|
1878
|
-
}, [E(C(ze), {
|
|
1879
|
-
size: 14,
|
|
1880
|
-
"stroke-width": 1.5
|
|
1881
|
-
}), p(" " + g(C(a).image.browseMedia), 1)])) : _("", !0)
|
|
1882
|
-
], 512)]),
|
|
1883
|
-
C(L)(e.block.src, C(c)) ? (o(), f("div", ni, [y("label", { class: T(C(H)) }, [p(g(C(a).image.placeholderUrl) + " ", 1), y("span", ri, g(C(a).image.optional), 1)], 2), y("input", {
|
|
1884
|
-
type: "url",
|
|
1885
|
-
class: T(C(G)),
|
|
1886
|
-
value: e.block.placeholderUrl || "",
|
|
1887
|
-
placeholder: C(a).image.placeholderUrlPlaceholder,
|
|
1888
|
-
title: C(a).image.placeholderUrlTooltip,
|
|
1889
|
-
onInput: n[2] ||= (e) => A("placeholderUrl", e.target.value)
|
|
1890
|
-
}, null, 42, ii)])) : _("", !0),
|
|
1891
|
-
y("div", ai, [
|
|
1892
|
-
y("label", { class: T(C(H)) }, g(C(a).image.altText), 3),
|
|
1893
|
-
E(J, {
|
|
1894
|
-
"model-value": e.block.alt,
|
|
1895
|
-
type: "text",
|
|
1896
|
-
placeholder: C(a).image.altTextPlaceholder,
|
|
1897
|
-
pulse: b.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: C(a).image.decorative,
|
|
1910
|
-
"onUpdate:modelValue": n[4] ||= (e) => A("decorative", e)
|
|
1911
|
-
}, {
|
|
1912
|
-
default: u(() => [y("span", null, [p(g(C(a).image.decorative) + " ", 1), y("span", oi, g(C(a).image.decorativeHint), 1)])]),
|
|
1913
|
-
_: 1
|
|
1914
|
-
}, 8, ["model-value", "label"])
|
|
1915
|
-
]),
|
|
1916
|
-
y("div", si, [
|
|
1917
|
-
y("label", { class: T(C(H)) }, g(C(a).image.width), 3),
|
|
1918
|
-
y("select", {
|
|
1919
|
-
class: T(C(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, g(C(a).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, g(C(a).image.widthCustom), 1)
|
|
1929
|
-
], 42, ci),
|
|
1930
|
-
O.value === "custom" ? (o(), f("div", di, [y("input", {
|
|
1931
|
-
type: "number",
|
|
1932
|
-
"data-testid": "image-width-input",
|
|
1933
|
-
class: T(C(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: T(C(U)) }, "px", 2)])) : _("", !0)
|
|
1938
|
-
]),
|
|
1939
|
-
y("div", pi, [
|
|
1940
|
-
C(ve) ? (o(), f("div", mi, [y("span", hi, g(C(a).image.height), 1), E(mt, {
|
|
1941
|
-
linked: C(z),
|
|
1942
|
-
"link-label": C(a).image.lockAspectRatio,
|
|
1943
|
-
"unlink-label": C(a).image.unlockAspectRatio,
|
|
1944
|
-
testid: "image-aspect-lock",
|
|
1945
|
-
onToggle: Te
|
|
1946
|
-
}, null, 8, [
|
|
1947
|
-
"linked",
|
|
1948
|
-
"link-label",
|
|
1949
|
-
"unlink-label"
|
|
1950
|
-
])])) : (o(), f("label", {
|
|
1951
|
-
key: 1,
|
|
1952
|
-
class: T(C(H))
|
|
1953
|
-
}, g(C(a).image.height), 3)),
|
|
1954
|
-
C(z) ? (o(), f(w, { key: 2 }, [y("div", gi, [y("input", {
|
|
1955
|
-
type: "number",
|
|
1956
|
-
"data-testid": "image-locked-height-input",
|
|
1957
|
-
class: T(C(W)),
|
|
1958
|
-
value: Ee.value ?? C(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: T(C(U)) }, "px", 2)]), C(Ce) === null ? _("", !0) : (o(), f("p", vi, g(C(s)(C(a).image.heightCapped, { height: C(Ce) })), 1))], 64)) : _("", !0),
|
|
1963
|
-
C(z) ? _("", !0) : (o(), f("select", {
|
|
1964
|
-
key: 3,
|
|
1965
|
-
class: T(C(G)),
|
|
1966
|
-
"data-testid": "image-height-mode",
|
|
1967
|
-
value: k.value,
|
|
1968
|
-
onChange: n[9] ||= (e) => N(e.target.value)
|
|
1969
|
-
}, [y("option", bi, g(C(a).image.heightAuto), 1), y("option", xi, g(C(a).image.heightCustom), 1)], 42, yi)),
|
|
1970
|
-
!C(z) && k.value === "custom" ? (o(), f("div", Si, [y("input", {
|
|
1971
|
-
type: "number",
|
|
1972
|
-
"data-testid": "image-height-input",
|
|
1973
|
-
class: T(C(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: T(C(U)) }, "px", 2)])) : _("", !0)
|
|
1978
|
-
]),
|
|
1979
|
-
E(Dt, {
|
|
1980
|
-
"model-value": e.block.borderRadius,
|
|
1981
|
-
label: C(a).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: T(C(H)) }, g(C(a).title.align), 3), E(Y, {
|
|
1991
|
-
options: [
|
|
1992
|
-
{
|
|
1993
|
-
value: "left",
|
|
1994
|
-
label: C(a).title.alignLeft
|
|
1995
|
-
},
|
|
1996
|
-
{
|
|
1997
|
-
value: "center",
|
|
1998
|
-
label: C(a).title.alignCenter
|
|
1999
|
-
},
|
|
2000
|
-
{
|
|
2001
|
-
value: "right",
|
|
2002
|
-
label: C(a).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: T(C(H)) }, g(C(a).image.linkUrl), 3),
|
|
2010
|
-
E(J, {
|
|
2011
|
-
"model-value": e.block.linkUrl || "",
|
|
2012
|
-
type: "url",
|
|
2013
|
-
placeholder: C(a).image.imageUrlPlaceholder,
|
|
2014
|
-
"onUpdate:modelValue": n[13] ||= (e) => A("linkUrl", e)
|
|
2015
|
-
}, null, 8, ["model-value", "placeholder"]),
|
|
2016
|
-
e.block.linkUrl ? (o(), v(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: C(a).image.openInNewTab,
|
|
2021
|
-
"onUpdate:modelValue": n[14] ||= (e) => A("linkOpenInNewTab", e)
|
|
2022
|
-
}, null, 8, ["model-value", "label"])) : _("", !0)
|
|
2023
|
-
])
|
|
2024
|
-
], 64));
|
|
2025
|
-
}
|
|
2026
|
-
}), ki = { class: "tpl:mb-3.5" }, $ = /* @__PURE__ */ t({
|
|
2027
|
-
__name: "FieldRow",
|
|
2028
|
-
props: { label: {} },
|
|
2029
|
-
setup(e) {
|
|
2030
|
-
return (t, n) => (o(), f("div", ki, [e.label ? (o(), f("label", {
|
|
2031
|
-
key: 0,
|
|
2032
|
-
class: T(C(H))
|
|
2033
|
-
}, g(e.label), 3)) : _("", !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__ */ t({
|
|
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 = x(() => [
|
|
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
|
-
]), c = x(() => [
|
|
2061
|
-
{
|
|
2062
|
-
value: "left",
|
|
2063
|
-
label: a.title.alignLeft,
|
|
2064
|
-
icon: Je
|
|
2065
|
-
},
|
|
2066
|
-
{
|
|
2067
|
-
value: "center",
|
|
2068
|
-
label: a.title.alignCenter,
|
|
2069
|
-
icon: Ze
|
|
2070
|
-
},
|
|
2071
|
-
{
|
|
2072
|
-
value: "right",
|
|
2073
|
-
label: a.title.alignRight,
|
|
2074
|
-
icon: Re
|
|
2075
|
-
}
|
|
2076
|
-
]);
|
|
2077
|
-
function l(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 m(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 h(e) {
|
|
2099
|
-
r("update", { items: n.block.items.filter((t) => t.id !== e) });
|
|
2100
|
-
}
|
|
2101
|
-
return (t, n) => (o(), f(w, null, [
|
|
2102
|
-
E($, { label: C(a).menu.items }, {
|
|
2103
|
-
default: u(() => [y("div", Ai, [(o(!0), f(w, null, i(e.block.items, (t) => (o(), f("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: T([C(G), "tpl:flex-1"]),
|
|
2110
|
-
value: t.text,
|
|
2111
|
-
placeholder: C(a).menu.text,
|
|
2112
|
-
onInput: (e) => m(t.id, "text", e.target.value)
|
|
2113
|
-
}, null, 42, Mi), y("button", {
|
|
2114
|
-
class: T(C(tt)),
|
|
2115
|
-
title: C(a).menu.removeItem,
|
|
2116
|
-
onClick: (e) => h(t.id)
|
|
2117
|
-
}, [E(C(Xe), {
|
|
2118
|
-
size: 14,
|
|
2119
|
-
"stroke-width": 2
|
|
2120
|
-
})], 10, Ni)]),
|
|
2121
|
-
E(J, {
|
|
2122
|
-
"model-value": t.url,
|
|
2123
|
-
type: "url",
|
|
2124
|
-
placeholder: C(a).menu.urlPlaceholder,
|
|
2125
|
-
"onUpdate:modelValue": (e) => m(t.id, "url", e)
|
|
2126
|
-
}, null, 8, [
|
|
2127
|
-
"model-value",
|
|
2128
|
-
"placeholder",
|
|
2129
|
-
"onUpdate:modelValue"
|
|
2130
|
-
]),
|
|
2131
|
-
y("div", Pi, [(o(!0), f(w, null, i(s.value, (e) => (o(), v(q, {
|
|
2132
|
-
key: e.key,
|
|
2133
|
-
"model-value": t[e.key],
|
|
2134
|
-
label: e.label,
|
|
2135
|
-
"onUpdate:modelValue": (n) => m(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: T([C(H), "tpl:!mb-0"]) }, g(C(a).menu.color), 3), E(K, {
|
|
2142
|
-
"swatch-only": "",
|
|
2143
|
-
"model-value": t.color || e.block.linkColor || e.block.color || "",
|
|
2144
|
-
"onUpdate:modelValue": (e) => m(t.id, "color", e)
|
|
2145
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])])
|
|
2146
|
-
]))), 128)), y("button", {
|
|
2147
|
-
class: T(C(nt)),
|
|
2148
|
-
onClick: d
|
|
2149
|
-
}, [E(C(V), {
|
|
2150
|
-
size: 14,
|
|
2151
|
-
"stroke-width": 2
|
|
2152
|
-
}), p(" " + g(C(a).menu.addItem), 1)], 2)])]),
|
|
2153
|
-
_: 1
|
|
2154
|
-
}, 8, ["label"]),
|
|
2155
|
-
E($, { label: C(a).menu.fontFamily }, {
|
|
2156
|
-
default: u(() => [y("select", {
|
|
2157
|
-
class: T(C(G)),
|
|
2158
|
-
value: C(ct)(e.block.fontFamily),
|
|
2159
|
-
onChange: n[0] ||= (e) => l("fontFamily", e.target.value || void 0)
|
|
2160
|
-
}, [y("option", Li, g(C(a).title.inheritFont), 1), (o(!0), f(w, null, i(e.fontFamilies, (e) => (o(), f("option", {
|
|
2161
|
-
key: e.value,
|
|
2162
|
-
value: e.value
|
|
2163
|
-
}, g(e.label), 9, Ri))), 128))], 42, Ii)]),
|
|
2164
|
-
_: 1
|
|
2165
|
-
}, 8, ["label"]),
|
|
2166
|
-
E($, { label: C(a).menu.fontSize }, {
|
|
2167
|
-
default: u(() => [E(X, {
|
|
2168
|
-
"model-value": e.block.fontSize,
|
|
2169
|
-
min: 8,
|
|
2170
|
-
max: 48,
|
|
2171
|
-
suffix: "px",
|
|
2172
|
-
"onUpdate:modelValue": n[1] ||= (e) => l("fontSize", e)
|
|
2173
|
-
}, null, 8, ["model-value"])]),
|
|
2174
|
-
_: 1
|
|
2175
|
-
}, 8, ["label"]),
|
|
2176
|
-
E($, { label: C(a).menu.color }, {
|
|
2177
|
-
default: u(() => [E(K, {
|
|
2178
|
-
"model-value": e.block.color ?? "",
|
|
2179
|
-
"onUpdate:modelValue": n[2] ||= (e) => l("color", e || void 0)
|
|
2180
|
-
}, null, 8, ["model-value"])]),
|
|
2181
|
-
_: 1
|
|
2182
|
-
}, 8, ["label"]),
|
|
2183
|
-
E($, { label: C(a).menu.linkColor }, {
|
|
2184
|
-
default: u(() => [E(K, {
|
|
2185
|
-
"model-value": e.block.linkColor || e.block.color || "",
|
|
2186
|
-
"onUpdate:modelValue": n[3] ||= (e) => l("linkColor", e || void 0)
|
|
2187
|
-
}, null, 8, ["model-value"])]),
|
|
2188
|
-
_: 1
|
|
2189
|
-
}, 8, ["label"]),
|
|
2190
|
-
E($, { label: C(a).menu.textAlign }, {
|
|
2191
|
-
default: u(() => [E(Y, {
|
|
2192
|
-
options: c.value,
|
|
2193
|
-
"model-value": e.block.textAlign,
|
|
2194
|
-
"onUpdate:modelValue": n[4] ||= (e) => l("textAlign", e)
|
|
2195
|
-
}, null, 8, ["options", "model-value"])]),
|
|
2196
|
-
_: 1
|
|
2197
|
-
}, 8, ["label"]),
|
|
2198
|
-
E($, { label: C(a).menu.separator }, {
|
|
2199
|
-
default: u(() => [y("input", {
|
|
2200
|
-
type: "text",
|
|
2201
|
-
class: T(C(G)),
|
|
2202
|
-
value: e.block.separator,
|
|
2203
|
-
onInput: n[5] ||= (e) => l("separator", e.target.value)
|
|
2204
|
-
}, null, 42, zi)]),
|
|
2205
|
-
_: 1
|
|
2206
|
-
}, 8, ["label"]),
|
|
2207
|
-
E($, { label: C(a).menu.separatorColor }, {
|
|
2208
|
-
default: u(() => [E(K, {
|
|
2209
|
-
"model-value": e.block.separatorColor,
|
|
2210
|
-
"onUpdate:modelValue": n[6] ||= (e) => l("separatorColor", e)
|
|
2211
|
-
}, null, 8, ["model-value"])]),
|
|
2212
|
-
_: 1
|
|
2213
|
-
}, 8, ["label"]),
|
|
2214
|
-
E($, { label: C(a).menu.spacing }, {
|
|
2215
|
-
default: u(() => [E(X, {
|
|
2216
|
-
"model-value": e.block.spacing,
|
|
2217
|
-
min: 0,
|
|
2218
|
-
max: 50,
|
|
2219
|
-
suffix: "px",
|
|
2220
|
-
"onUpdate:modelValue": n[7] ||= (e) => l("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__ */ t({
|
|
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(), f("div", Vi, [y("label", { class: T(C(H)) }, g(C(r).paragraph.paragraphSpacing), 3), y("div", Hi, [y("input", {
|
|
2236
|
-
type: "number",
|
|
2237
|
-
class: T(C(W)),
|
|
2238
|
-
value: e.block.paragraphSpacing ?? C(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: T(C(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__ */ t({
|
|
2270
|
-
__name: "SectionToolbar",
|
|
2271
|
-
props: { block: {} },
|
|
2272
|
-
emits: ["update"],
|
|
2273
|
-
setup(e, { emit: t }) {
|
|
2274
|
-
let r = e, a = t, { t: s } = B(), c = n(Se, void 0), l = n(Te, void 0), u = c !== void 0 && re(c), d = x(() => l !== !1 || !!r.block.wrapper), p = x(() => u && !r.block.wrapper), m = x(() => u && d.value), h = x(() => k(r.block)?.applied === !0), b = x(() => [
|
|
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 S(e) {
|
|
2297
|
-
let t = e.target.value, n = Gi(r.block.children, t);
|
|
2298
|
-
a("update", {
|
|
2299
|
-
columns: t,
|
|
2300
|
-
children: n
|
|
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
|
-
...r.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(), f(w, null, [
|
|
2330
|
-
y("div", Ki, [y("label", { class: T(C(H)) }, g(C(s).section.columns), 3), y("select", {
|
|
2331
|
-
class: T(C(G)),
|
|
2332
|
-
value: e.block.columns,
|
|
2333
|
-
onChange: S
|
|
2334
|
-
}, [(o(!0), f(w, null, i(b.value, (e) => (o(), f("option", {
|
|
2335
|
-
key: e.value,
|
|
2336
|
-
value: e.value
|
|
2337
|
-
}, g(e.label), 9, Ji))), 128))], 42, qi)]),
|
|
2338
|
-
e.block.columns === "1" ? _("", !0) : (o(), f("div", Yi, [E(q, {
|
|
2339
|
-
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2340
|
-
"model-value": e.block.stackOnMobile !== !1,
|
|
2341
|
-
label: C(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: C(s).section.borderRadius,
|
|
2347
|
-
max: 50,
|
|
2348
|
-
"testid-prefix": "section",
|
|
2349
|
-
"onUpdate:modelValue": O
|
|
2350
|
-
}, null, 8, ["model-value", "label"]),
|
|
2351
|
-
h.value ? _("", !0) : (o(), v(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(), f("div", Xi, [
|
|
2358
|
-
E(q, {
|
|
2359
|
-
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2360
|
-
"model-value": !!e.block.wrapper,
|
|
2361
|
-
label: C(s).section.wrapperEnable,
|
|
2362
|
-
disabled: p.value,
|
|
2363
|
-
"onUpdate:modelValue": n[2] ||= (e) => A(e)
|
|
2364
|
-
}, null, 8, [
|
|
2365
|
-
"model-value",
|
|
2366
|
-
"label",
|
|
2367
|
-
"disabled"
|
|
2368
|
-
]),
|
|
2369
|
-
m.value ? (o(), f("p", Zi, g(C(s).section.wrapperLayoutConflict), 1)) : _("", !0),
|
|
2370
|
-
e.block.wrapper ? (o(), f("div", Qi, [
|
|
2371
|
-
y("div", null, [y("label", { class: T(C(H)) }, g(C(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: C(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: C(s).section.borderRadius,
|
|
2394
|
-
max: 50,
|
|
2395
|
-
"testid-prefix": "section-wrapper",
|
|
2396
|
-
"onUpdate:modelValue": N
|
|
2397
|
-
}, null, 8, ["model-value", "label"])
|
|
2398
|
-
])) : _("", !0)
|
|
2399
|
-
])) : _("", !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__ */ t({
|
|
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(), f(w, null, [
|
|
2430
|
-
y("div", ea, [y("label", { class: T(C(H)) }, g(C(a).social.icons), 3), y("div", ta, [(o(!0), f(w, null, i(e.block.icons, (e) => (o(), f("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: T([C(G), "tpl:flex-1"]),
|
|
2436
|
-
value: e.platform,
|
|
2437
|
-
onChange: (t) => l(e.id, "platform", t.target.value)
|
|
2438
|
-
}, [(o(!0), f(w, null, i(C(R), (e) => (o(), f("option", {
|
|
2439
|
-
key: e,
|
|
2440
|
-
value: e
|
|
2441
|
-
}, g(C(a).social.platforms[e]), 9, ia))), 128))], 42, ra), y("button", {
|
|
2442
|
-
class: T(C(tt)),
|
|
2443
|
-
title: C(a).social.removeIcon,
|
|
2444
|
-
onClick: (t) => u(e.id)
|
|
2445
|
-
}, [E(C(Xe), {
|
|
2446
|
-
size: 14,
|
|
2447
|
-
"stroke-width": 2
|
|
2448
|
-
})], 10, aa)]), E(J, {
|
|
2449
|
-
"model-value": e.url,
|
|
2450
|
-
type: "url",
|
|
2451
|
-
placeholder: C(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: T(C(nt)),
|
|
2459
|
-
onClick: c
|
|
2460
|
-
}, [E(C(V), {
|
|
2461
|
-
size: 14,
|
|
2462
|
-
"stroke-width": 2
|
|
2463
|
-
}), p(" " + g(C(a).social.addIcon), 1)], 2)])]),
|
|
2464
|
-
y("div", oa, [y("label", { class: T(C(H)) }, g(C(a).social.style), 3), y("select", {
|
|
2465
|
-
class: T(C(G)),
|
|
2466
|
-
value: e.block.iconStyle,
|
|
2467
|
-
onChange: n[0] ||= (e) => s("iconStyle", e.target.value)
|
|
2468
|
-
}, [
|
|
2469
|
-
y("option", ca, g(C(a).social.styleSolid), 1),
|
|
2470
|
-
y("option", la, g(C(a).social.styleOutlined), 1),
|
|
2471
|
-
y("option", ua, g(C(a).social.styleRounded), 1),
|
|
2472
|
-
y("option", da, g(C(a).social.styleSquare), 1),
|
|
2473
|
-
y("option", fa, g(C(a).social.styleCircle), 1),
|
|
2474
|
-
y("option", pa, g(C(a).social.stylePlain), 1)
|
|
2475
|
-
], 42, sa)]),
|
|
2476
|
-
y("div", ma, [y("label", { class: T(C(H)) }, g(C(a).social.color), 3), y("select", {
|
|
2477
|
-
"data-testid": "social-tone-select",
|
|
2478
|
-
class: T(C(G)),
|
|
2479
|
-
value: e.block.iconTone ?? "brand",
|
|
2480
|
-
onChange: n[1] ||= (e) => s("iconTone", e.target.value)
|
|
2481
|
-
}, [
|
|
2482
|
-
y("option", ga, g(C(a).social.colorBrand), 1),
|
|
2483
|
-
y("option", _a, g(C(a).social.colorDark), 1),
|
|
2484
|
-
y("option", va, g(C(a).social.colorLight), 1)
|
|
2485
|
-
], 42, ha)]),
|
|
2486
|
-
y("div", ya, [y("label", { class: T(C(H)) }, g(C(a).social.size), 3), E(Y, {
|
|
2487
|
-
options: [
|
|
2488
|
-
{
|
|
2489
|
-
value: "small",
|
|
2490
|
-
label: C(a).social.sizeSmall
|
|
2491
|
-
},
|
|
2492
|
-
{
|
|
2493
|
-
value: "medium",
|
|
2494
|
-
label: C(a).social.sizeMedium
|
|
2495
|
-
},
|
|
2496
|
-
{
|
|
2497
|
-
value: "large",
|
|
2498
|
-
label: C(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: T(C(H)) }, g(C(a).social.spacing), 3), y("div", xa, [y("input", {
|
|
2505
|
-
type: "number",
|
|
2506
|
-
class: T(C(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: T(C(U)) }, "px", 2)])]),
|
|
2512
|
-
y("div", Ca, [y("label", { class: T(C(H)) }, g(C(a).social.align), 3), E(Y, {
|
|
2513
|
-
options: [
|
|
2514
|
-
{
|
|
2515
|
-
value: "left",
|
|
2516
|
-
label: C(a).title.alignLeft,
|
|
2517
|
-
icon: C(Je)
|
|
2518
|
-
},
|
|
2519
|
-
{
|
|
2520
|
-
value: "center",
|
|
2521
|
-
label: C(a).title.alignCenter,
|
|
2522
|
-
icon: C(Ze)
|
|
2523
|
-
},
|
|
2524
|
-
{
|
|
2525
|
-
value: "right",
|
|
2526
|
-
label: C(a).title.alignRight,
|
|
2527
|
-
icon: C(Re)
|
|
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__ */ t({
|
|
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(), f("div", Ta, [
|
|
2542
|
-
y("label", { class: T(C(H)) }, g(C(r).spacer.height), 3),
|
|
2543
|
-
y("div", Ea, [y("input", {
|
|
2544
|
-
type: "number",
|
|
2545
|
-
class: T(C(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: T(C(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__ */ t({
|
|
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 = x(() => 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 p(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(), f(w, null, [
|
|
2607
|
-
y("div", Aa, [y("label", { class: T(C(H)) }, g(C(a).table.dimensions), 3), y("div", ja, [y("div", Ma, [y("span", Na, g(C(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(C(Ve), {
|
|
2613
|
-
size: 12,
|
|
2614
|
-
"stroke-width": 2
|
|
2615
|
-
})], 8, Fa),
|
|
2616
|
-
y("span", Ia, g(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(C(V), {
|
|
2621
|
-
size: 12,
|
|
2622
|
-
"stroke-width": 2
|
|
2623
|
-
})])
|
|
2624
|
-
])]), y("div", La, [y("span", Ra, g(C(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) => p(s.value - 1)
|
|
2629
|
-
}, [E(C(Ve), {
|
|
2630
|
-
size: 12,
|
|
2631
|
-
"stroke-width": 2
|
|
2632
|
-
})], 8, Ba),
|
|
2633
|
-
y("span", Va, g(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(C(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: C(a).table.hasHeaderRow,
|
|
2646
|
-
"onUpdate:modelValue": n[2] ||= (e) => c("hasHeaderRow", e)
|
|
2647
|
-
}, null, 8, ["model-value", "label"])]),
|
|
2648
|
-
e.block.hasHeaderRow ? (o(), f("div", Ua, [y("label", { class: T(C(H)) }, g(C(a).table.headerBackgroundColor), 3), E(K, {
|
|
2649
|
-
"model-value": e.block.headerBackgroundColor ?? "",
|
|
2650
|
-
"seed-color": C(rt),
|
|
2651
|
-
placeholder: C(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
|
-
])])) : _("", !0),
|
|
2658
|
-
y("div", Wa, [y("label", { class: T(C(H)) }, g(C(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: T(C(H)) }, g(C(a).table.borderWidth), 3), y("div", Ka, [y("input", {
|
|
2663
|
-
type: "number",
|
|
2664
|
-
class: T(C(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: T(C(U)) }, "px", 2)])]),
|
|
2670
|
-
y("div", Ja, [y("label", { class: T(C(H)) }, g(C(a).table.cellPadding), 3), y("div", Ya, [y("input", {
|
|
2671
|
-
type: "number",
|
|
2672
|
-
class: T(C(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: T(C(U)) }, "px", 2)])]),
|
|
2678
|
-
y("div", Za, [y("label", { class: T(C(H)) }, g(C(a).table.fontFamily), 3), y("select", {
|
|
2679
|
-
class: T(C(G)),
|
|
2680
|
-
value: C(ct)(e.block.fontFamily),
|
|
2681
|
-
onChange: n[7] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
2682
|
-
}, [y("option", $a, g(C(a).title.inheritFont), 1), (o(!0), f(w, null, i(e.fontFamilies, (e) => (o(), f("option", {
|
|
2683
|
-
key: e.value,
|
|
2684
|
-
value: e.value
|
|
2685
|
-
}, g(e.label), 9, eo))), 128))], 42, Qa)]),
|
|
2686
|
-
y("div", to, [y("label", { class: T(C(H)) }, g(C(a).table.fontSize), 3), y("div", no, [y("input", {
|
|
2687
|
-
type: "number",
|
|
2688
|
-
class: T(C(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: T(C(U)) }, "px", 2)])]),
|
|
2694
|
-
y("div", io, [y("label", { class: T(C(H)) }, g(C(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: T(C(H)) }, g(C(a).table.textAlign), 3), E(Y, {
|
|
2699
|
-
options: [
|
|
2700
|
-
{
|
|
2701
|
-
value: "left",
|
|
2702
|
-
label: C(a).title.alignLeft,
|
|
2703
|
-
icon: C(Je)
|
|
2704
|
-
},
|
|
2705
|
-
{
|
|
2706
|
-
value: "center",
|
|
2707
|
-
label: C(a).title.alignCenter,
|
|
2708
|
-
icon: C(Ze)
|
|
2709
|
-
},
|
|
2710
|
-
{
|
|
2711
|
-
value: "right",
|
|
2712
|
-
label: C(a).title.alignRight,
|
|
2713
|
-
icon: C(Re)
|
|
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__ */ t({
|
|
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(), f(w, null, [
|
|
2734
|
-
y("div", so, [y("label", { class: T(C(H)) }, g(C(r).title.level), 3), y("select", {
|
|
2735
|
-
class: T(C(G)),
|
|
2736
|
-
value: e.block.level,
|
|
2737
|
-
onChange: n[0] ||= (e) => a("level", Number(e.target.value))
|
|
2738
|
-
}, [
|
|
2739
|
-
y("option", lo, g(C(r).title.heading1), 1),
|
|
2740
|
-
y("option", uo, g(C(r).title.heading2), 1),
|
|
2741
|
-
y("option", fo, g(C(r).title.heading3), 1),
|
|
2742
|
-
y("option", po, g(C(r).title.heading4), 1)
|
|
2743
|
-
], 42, co)]),
|
|
2744
|
-
y("div", mo, [y("label", { class: T(C(H)) }, g(C(r).title.fontFamily), 3), y("select", {
|
|
2745
|
-
class: T(C(G)),
|
|
2746
|
-
value: C(ct)(e.block.fontFamily),
|
|
2747
|
-
onChange: n[1] ||= (e) => a("fontFamily", e.target.value || void 0)
|
|
2748
|
-
}, [y("option", go, g(C(r).title.inheritFont), 1), (o(!0), f(w, null, i(e.fontFamilies, (e) => (o(), f("option", {
|
|
2749
|
-
key: e.value,
|
|
2750
|
-
value: e.value
|
|
2751
|
-
}, g(e.label), 9, _o))), 128))], 42, ho)]),
|
|
2752
|
-
y("div", vo, [y("label", { class: T(C(H)) }, g(C(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: T(C(H)) }, g(C(r).title.align), 3), E(Y, {
|
|
2757
|
-
options: [
|
|
2758
|
-
{
|
|
2759
|
-
value: "left",
|
|
2760
|
-
label: C(r).title.alignLeft,
|
|
2761
|
-
icon: C(Je)
|
|
2762
|
-
},
|
|
2763
|
-
{
|
|
2764
|
-
value: "center",
|
|
2765
|
-
label: C(r).title.alignCenter,
|
|
2766
|
-
icon: C(Ze)
|
|
2767
|
-
},
|
|
2768
|
-
{
|
|
2769
|
-
value: "right",
|
|
2770
|
-
label: C(r).title.alignRight,
|
|
2771
|
-
icon: C(Re)
|
|
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__ */ t({
|
|
2793
|
-
__name: "VideoToolbar",
|
|
2794
|
-
props: { block: {} },
|
|
2795
|
-
emits: ["update"],
|
|
2796
|
-
setup(e, { emit: t }) {
|
|
2797
|
-
let r = e, i = t, { t: a } = B(), s = n(Ce, null), c = n(we, ie.liquid), l = ve(), u = [
|
|
2798
|
-
300,
|
|
2799
|
-
400,
|
|
2800
|
-
500
|
|
2801
|
-
], d = x(() => !!s), m = x(() => L(r.block.url, c)), b = x(() => {
|
|
2802
|
-
let e = r.block.width;
|
|
2803
|
-
return e === "full" ? "full" : u.includes(e) ? String(e) : "custom";
|
|
2804
|
-
}), S = x(() => typeof r.block.height == "number" ? "custom" : "auto"), D = h(!1), { start: O } = be(() => {
|
|
2805
|
-
D.value = !1;
|
|
2806
|
-
}, 1e3, { immediate: !1 });
|
|
2807
|
-
function k(e, t) {
|
|
2808
|
-
i("update", { [e]: t });
|
|
2809
|
-
}
|
|
2810
|
-
function A(e) {
|
|
2811
|
-
if (e === "custom") {
|
|
2812
|
-
let e = r.block.width;
|
|
2813
|
-
(typeof e != "number" || u.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 s?.({ accept: ["images"] });
|
|
2829
|
-
l.alive && e && (k("thumbnailUrl", e.url), D.value = !0, O());
|
|
2830
|
-
}
|
|
2831
|
-
return (t, n) => (o(), f(w, null, [
|
|
2832
|
-
y("div", xo, [
|
|
2833
|
-
y("label", { class: T(C(H)) }, g(C(a).video.videoUrl), 3),
|
|
2834
|
-
E(J, {
|
|
2835
|
-
"model-value": e.block.url,
|
|
2836
|
-
type: "url",
|
|
2837
|
-
placeholder: C(a).video.videoUrlPlaceholder,
|
|
2838
|
-
"onUpdate:modelValue": n[0] ||= (e) => k("url", e)
|
|
2839
|
-
}, null, 8, ["model-value", "placeholder"]),
|
|
2840
|
-
e.block.url ? (o(), v(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: C(a).video.openInNewTab,
|
|
2845
|
-
"onUpdate:modelValue": n[1] ||= (e) => k("openInNewTab", e)
|
|
2846
|
-
}, null, 8, ["model-value", "label"])) : _("", !0)
|
|
2847
|
-
]),
|
|
2848
|
-
m.value ? (o(), f("div", So, [y("label", { class: T(C(H)) }, [p(g(C(a).video.placeholderUrl) + " ", 1), y("span", Co, g(C(a).video.optional), 1)], 2), y("input", {
|
|
2849
|
-
type: "url",
|
|
2850
|
-
class: T(C(G)),
|
|
2851
|
-
value: e.block.placeholderUrl || "",
|
|
2852
|
-
placeholder: C(a).video.placeholderUrlPlaceholder,
|
|
2853
|
-
title: C(a).video.placeholderUrlTooltip,
|
|
2854
|
-
onInput: n[2] ||= (e) => k("placeholderUrl", e.target.value)
|
|
2855
|
-
}, null, 42, wo)])) : _("", !0),
|
|
2856
|
-
y("div", To, [
|
|
2857
|
-
y("label", { class: T(C(H)) }, [p(g(C(a).video.customThumbnail) + " ", 1), y("span", Eo, g(C(a).video.optional), 1)], 2),
|
|
2858
|
-
E(J, {
|
|
2859
|
-
"model-value": e.block.thumbnailUrl,
|
|
2860
|
-
type: "url",
|
|
2861
|
-
placeholder: C(a).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
|
-
d.value ? (o(), f("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(C(ze), {
|
|
2879
|
-
size: 14,
|
|
2880
|
-
"stroke-width": 1.5
|
|
2881
|
-
}), p(" " + g(C(a).image.browseMedia), 1)])) : _("", !0)
|
|
2882
|
-
]),
|
|
2883
|
-
y("div", Do, [y("label", { class: T(C(H)) }, g(C(a).video.altText), 3), E(J, {
|
|
2884
|
-
"model-value": e.block.alt,
|
|
2885
|
-
type: "text",
|
|
2886
|
-
placeholder: C(a).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: T(C(H)) }, g(C(a).video.width), 3),
|
|
2891
|
-
y("select", {
|
|
2892
|
-
class: T(C(G)),
|
|
2893
|
-
"data-testid": "video-width-mode",
|
|
2894
|
-
value: b.value,
|
|
2895
|
-
onChange: n[5] ||= (e) => A(e.target.value)
|
|
2896
|
-
}, [
|
|
2897
|
-
y("option", Ao, g(C(a).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, g(C(a).video.widthCustom), 1)
|
|
2902
|
-
], 42, ko),
|
|
2903
|
-
b.value === "custom" ? (o(), f("div", Mo, [y("input", {
|
|
2904
|
-
type: "number",
|
|
2905
|
-
"data-testid": "video-width-input",
|
|
2906
|
-
class: T(C(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: T(C(U)) }, "px", 2)])) : _("", !0)
|
|
2911
|
-
]),
|
|
2912
|
-
y("div", Po, [
|
|
2913
|
-
y("label", { class: T(C(H)) }, g(C(a).video.height), 3),
|
|
2914
|
-
y("select", {
|
|
2915
|
-
class: T(C(G)),
|
|
2916
|
-
"data-testid": "video-height-mode",
|
|
2917
|
-
value: S.value,
|
|
2918
|
-
onChange: n[7] ||= (e) => M(e.target.value)
|
|
2919
|
-
}, [y("option", Io, g(C(a).video.heightAuto), 1), y("option", Lo, g(C(a).video.heightCustom), 1)], 42, Fo),
|
|
2920
|
-
S.value === "custom" ? (o(), f("div", Ro, [y("input", {
|
|
2921
|
-
type: "number",
|
|
2922
|
-
"data-testid": "video-height-input",
|
|
2923
|
-
class: T(C(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: T(C(U)) }, "px", 2)])) : _("", !0)
|
|
2928
|
-
]),
|
|
2929
|
-
y("div", Bo, [y("label", { class: T(C(H)) }, g(C(a).title.align), 3), E(Y, {
|
|
2930
|
-
options: [
|
|
2931
|
-
{
|
|
2932
|
-
value: "left",
|
|
2933
|
-
label: C(a).title.alignLeft
|
|
2934
|
-
},
|
|
2935
|
-
{
|
|
2936
|
-
value: "center",
|
|
2937
|
-
label: C(a).title.alignCenter
|
|
2938
|
-
},
|
|
2939
|
-
{
|
|
2940
|
-
value: "right",
|
|
2941
|
-
label: C(a).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__*/ t({
|
|
2950
|
-
__name: "Toolbar",
|
|
2951
|
-
props: { block: {} },
|
|
2952
|
-
emits: [
|
|
2953
|
-
"update",
|
|
2954
|
-
"delete",
|
|
2955
|
-
"duplicate"
|
|
2956
|
-
],
|
|
2957
|
-
setup(e, { emit: t }) {
|
|
2958
|
-
let r = c(() => import("./CountdownToolbar-xobieKoU.js")), i = e, a = t, { t: s } = B(), l = xe(je, "Toolbar"), u = n(Ae, []), d = x(() => i.block.type), p = x(() => ae(i.block)), m = x(() => {
|
|
2959
|
-
if (p.value) return u.find((e) => e.type === i.block.customType);
|
|
2960
|
-
}), h = x(() => p.value ? m.value?.name ?? i.block.customType : z(d.value, s)), b = x(() => st(l.fonts.value, "fontFamily" in i.block ? i.block.fontFamily : void 0));
|
|
2961
|
-
function S(e) {
|
|
2962
|
-
a("update", e);
|
|
2963
|
-
}
|
|
2964
|
-
return (t, n) => (o(), f("aside", {
|
|
2965
|
-
"data-testid": "block-toolbar",
|
|
2966
|
-
"aria-label": C(s).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, [C(at)[d.value] ? (o(), v(D(C(at)[d.value]), {
|
|
2969
|
-
key: 0,
|
|
2970
|
-
size: 16,
|
|
2971
|
-
"stroke-width": 1.5
|
|
2972
|
-
})) : p.value ? (o(), v(C(Ge), {
|
|
2973
|
-
key: 1,
|
|
2974
|
-
size: 16,
|
|
2975
|
-
"stroke-width": 1.5
|
|
2976
|
-
})) : _("", !0), y("h3", qo, g(h.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: C(s).toolbar.duplicate,
|
|
2979
|
-
onClick: n[0] ||= (e) => a("duplicate")
|
|
2980
|
-
}, [E(C(Ke), {
|
|
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: C(s).toolbar.delete,
|
|
2986
|
-
onClick: n[1] ||= (e) => a("delete")
|
|
2987
|
-
}, [E(C(He), {
|
|
2988
|
-
size: 14,
|
|
2989
|
-
"stroke-width": 2
|
|
2990
|
-
})], 8, Xo)])]), y("div", Zo, [p.value ? (o(), v(Ur, {
|
|
2991
|
-
key: 0,
|
|
2992
|
-
block: e.block,
|
|
2993
|
-
onUpdateFieldValues: n[2] ||= (e) => a("update", { fieldValues: e }),
|
|
2994
|
-
onUpdateDataSourceFetched: n[3] ||= (e) => a("update", { dataSourceFetched: e })
|
|
2995
|
-
}, null, 8, ["block"])) : d.value === "section" ? (o(), v($i, {
|
|
2996
|
-
key: 1,
|
|
2997
|
-
block: e.block,
|
|
2998
|
-
onUpdate: S
|
|
2999
|
-
}, null, 8, ["block"])) : d.value === "title" ? (o(), v(bo, {
|
|
3000
|
-
key: 2,
|
|
3001
|
-
block: e.block,
|
|
3002
|
-
"font-families": b.value,
|
|
3003
|
-
onUpdate: S
|
|
3004
|
-
}, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (o(), v(Wi, {
|
|
3005
|
-
key: 3,
|
|
3006
|
-
block: e.block,
|
|
3007
|
-
onUpdate: S
|
|
3008
|
-
}, null, 8, ["block"])) : d.value === "image" ? (o(), v(Oi, {
|
|
3009
|
-
key: 4,
|
|
3010
|
-
block: e.block,
|
|
3011
|
-
onUpdate: S
|
|
3012
|
-
}, null, 8, ["block"])) : d.value === "video" ? (o(), v(Uo, {
|
|
3013
|
-
key: 5,
|
|
3014
|
-
block: e.block,
|
|
3015
|
-
onUpdate: S
|
|
3016
|
-
}, null, 8, ["block"])) : d.value === "button" ? (o(), v(Jt, {
|
|
3017
|
-
key: 6,
|
|
3018
|
-
block: e.block,
|
|
3019
|
-
"font-families": b.value,
|
|
3020
|
-
onUpdate: S
|
|
3021
|
-
}, null, 8, ["block", "font-families"])) : d.value === "divider" ? (o(), v(Yr, {
|
|
3022
|
-
key: 7,
|
|
3023
|
-
block: e.block,
|
|
3024
|
-
onUpdate: S
|
|
3025
|
-
}, null, 8, ["block"])) : d.value === "social" ? (o(), v(wa, {
|
|
3026
|
-
key: 8,
|
|
3027
|
-
block: e.block,
|
|
3028
|
-
onUpdate: S
|
|
3029
|
-
}, null, 8, ["block"])) : d.value === "menu" ? (o(), v(Bi, {
|
|
3030
|
-
key: 9,
|
|
3031
|
-
block: e.block,
|
|
3032
|
-
"font-families": b.value,
|
|
3033
|
-
onUpdate: S
|
|
3034
|
-
}, null, 8, ["block", "font-families"])) : d.value === "table" ? (o(), v(oo, {
|
|
3035
|
-
key: 10,
|
|
3036
|
-
block: e.block,
|
|
3037
|
-
"font-families": b.value,
|
|
3038
|
-
onUpdate: S
|
|
3039
|
-
}, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (o(), v(ka, {
|
|
3040
|
-
key: 11,
|
|
3041
|
-
block: e.block,
|
|
3042
|
-
onUpdate: S
|
|
3043
|
-
}, null, 8, ["block"])) : d.value === "html" ? (o(), v($r, {
|
|
3044
|
-
key: 12,
|
|
3045
|
-
block: e.block,
|
|
3046
|
-
onUpdate: S
|
|
3047
|
-
}, null, 8, ["block"])) : d.value === "countdown" ? (o(), v(C(r), {
|
|
3048
|
-
key: 13,
|
|
3049
|
-
block: e.block,
|
|
3050
|
-
"font-families": b.value,
|
|
3051
|
-
onUpdate: S
|
|
3052
|
-
}, null, 8, ["block", "font-families"])) : _("", !0), E(ar, {
|
|
3053
|
-
block: e.block,
|
|
3054
|
-
"is-first-section": d.value === "paragraph",
|
|
3055
|
-
onUpdate: S
|
|
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-CdpsvNOR.js.map
|