@templatical/editor 0.52.0 → 0.52.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiAltTextPopover-Cm11CsKH.js → AiAltTextPopover-DawbUywc.js} +13 -13
- package/dist/{AiAltTextReview-DE8t8Rud.js → AiAltTextReview-9ySsXOTU.js} +22 -22
- package/dist/{AiChatPanel-7ftS7d40.js → AiChatPanel-CupPhmsN.js} +137 -137
- package/dist/{AiPanels-CxGp6klr.js → AiPanels-DqT4PgQ0.js} +4 -4
- package/dist/{AiRewriteMenu-DNI-5CUj.js → AiRewriteMenu-28agTycW.js} +62 -62
- package/dist/BlockIssueBadge-BxpDy3u-.js +33 -0
- package/dist/{BlockPreviewCanvas-Df9iz7sK.js → BlockPreviewCanvas-B-4bmJ3t.js} +23 -23
- package/dist/{CloudHeaderExtras-CsgyNNV1.js → CloudHeaderExtras-QI82yF54.js} +3 -3
- package/dist/{CloudPanels-BDV4XQ_l.js → CloudPanels-BKJaLkUN.js} +50 -50
- package/dist/{CollaborationNotices-JQ3vQoqO.js → CollaborationNotices-CTw4JThq.js} +11 -11
- package/dist/{CollaboratorBar-EeqqWcX6.js → CollaboratorBar-CXQqN3VP.js} +15 -15
- package/dist/{CommentsPanel-BuftXc0U.js → CommentsPanel-DwwFuh1h.js} +2 -2
- package/dist/CommentsSidebar-9ZfiC2DO.js +500 -0
- package/dist/{CountdownBlock-BT3ZTH1F.js → CountdownBlock-CU2yTWtF.js} +20 -20
- package/dist/{CountdownToolbar-CrL4WKy9.js → CountdownToolbar-BqoYzf_6.js} +53 -53
- package/dist/IssuesPanel-4ykrf1ax.js +359 -0
- package/dist/{LoadingTrack-DZA5AoP9.js → LoadingTrack-DM4g6j7b.js} +1 -1
- package/dist/{LogicTagInsertButton-CSD9cfJB.js → LogicTagInsertButton-CfscnwCn.js} +234 -234
- package/dist/{MediaEditModal-DQl5w44r.js → MediaEditModal-Dy08GEwE.js} +446 -446
- package/dist/{MediaPanels-BFWYuJot.js → MediaPanels-BgEp7iCp.js} +2 -2
- package/dist/{MergeTagInput-DE7kWwXx.js → MergeTagInput-B9dtUthD.js} +11 -11
- package/dist/{MergeTagModeToggle-DvD0ne7N.js → MergeTagModeToggle-DxujhYJ4.js} +30 -30
- package/dist/{MergeTagTextarea-DVPQkiYY.js → MergeTagTextarea-CPFEjJZd.js} +11 -11
- package/dist/{ParagraphEditor-D-nqs82g.js → ParagraphEditor-CWXfurGh.js} +201 -201
- package/dist/{RestoreVersionDialog-DqUPsLB9.js → RestoreVersionDialog-C4s_JYCx.js} +14 -14
- package/dist/{RichTextEditorContent-Xq9D0Zs3.js → RichTextEditorContent-o6HmE8GR.js} +40 -39
- package/dist/{SaveBlockDialog-DAPv70p4.js → SaveBlockDialog-CWLrly6l.js} +56 -56
- package/dist/SavedBlocksBrowserModal-CE8n4EBS.js +359 -0
- package/dist/{SavedBlocksPanels-ChbL9v9x.js → SavedBlocksPanels-BE1N9rNZ.js} +6 -6
- package/dist/{SavedBlocksPickBar-hRaiLNdu.js → SavedBlocksPickBar-Dwl94xhP.js} +12 -12
- package/dist/{TemplateSettings-D0XcH32O.js → TemplateSettings-CS0f1Ues.js} +74 -74
- package/dist/{TestEmailModal-Cb5t0yB2.js → TestEmailModal-DBD0X5nV.js} +52 -52
- package/dist/{TestEmailPanel-COJQa2A9.js → TestEmailPanel-DaFjP9QK.js} +2 -2
- package/dist/{TitleEditor-BYk_9SpQ.js → TitleEditor-DSqtle77.js} +75 -75
- package/dist/{ToggleSwitch-poGWbduy.js → ToggleSwitch-JykPyD_8.js} +4 -4
- package/dist/{Toolbar-Dku_pZni.js → Toolbar-BZPFfKrf.js} +913 -913
- package/dist/{TplModal-9IndEYk5.js → TplModal-DLMssVlt.js} +15 -15
- package/dist/{VersionHistoryMenu-BG5qayvg.js → VersionHistoryMenu-BkbYUs0Q.js} +35 -35
- package/dist/{VersionHistoryPanels-hPg7Q5-f.js → VersionHistoryPanels-DP7HaYWv.js} +4 -4
- package/dist/{VersionPreviewBanner-CSs7zum_.js → VersionPreviewBanner-DECaBwLq.js} +9 -9
- package/dist/{WrapperBlock-DwjK_IdJ.js → WrapperBlock-BsJv_Fiw.js} +16 -16
- package/dist/{blockTypeIcons-yt7SLzub.js → blockTypeIcons-BHjlPnPf.js} +23 -22
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiAltTextPopover-DjMoJCgU.js → AiAltTextPopover-SEEjkd-I.js} +21 -21
- package/dist/cdn/chunks/{AiAltTextPopover-DjMoJCgU.js.map → AiAltTextPopover-SEEjkd-I.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-BafAtBoA.js → AiAltTextReview-BGLLSKLm.js} +41 -41
- package/dist/cdn/chunks/{AiAltTextReview-BafAtBoA.js.map → AiAltTextReview-BGLLSKLm.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-DXeZgc7D.js → AiChatPanel-DKDAaBNi.js} +127 -127
- package/dist/cdn/chunks/{AiChatPanel-DXeZgc7D.js.map → AiChatPanel-DKDAaBNi.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js → AiPanels-0wBarZSH.js} +3 -3
- package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js.map → AiPanels-0wBarZSH.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-4F6vwhJ5.js → AiRewriteMenu-qf-cfEpy.js} +43 -43
- package/dist/cdn/chunks/{AiRewriteMenu-4F6vwhJ5.js.map → AiRewriteMenu-qf-cfEpy.js.map} +1 -1
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +34 -0
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +1 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-Ny1X_mee.js → BlockPreviewCanvas-DGBh6mqe.js} +20 -20
- package/dist/cdn/chunks/{BlockPreviewCanvas-Ny1X_mee.js.map → BlockPreviewCanvas-DGBh6mqe.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js → CloudHeaderExtras-BMNK_F9p.js} +3 -3
- package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js.map → CloudHeaderExtras-BMNK_F9p.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js → CloudPanels-JMWIoVWh.js} +32 -32
- package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js.map → CloudPanels-JMWIoVWh.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-Hf8r08Sw.js → CollaborationNotices-Bsf1rGW9.js} +12 -12
- package/dist/cdn/chunks/{CollaborationNotices-Hf8r08Sw.js.map → CollaborationNotices-Bsf1rGW9.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js → CollaboratorBar-CXByAoUz.js} +14 -14
- package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js.map → CollaboratorBar-CXByAoUz.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-CAiwilM2.js → CommentsPanel-DoJnKLXI.js} +3 -3
- package/dist/cdn/chunks/{CommentsPanel-CAiwilM2.js.map → CommentsPanel-DoJnKLXI.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-Dj8sDiLN.js → CommentsSidebar-CUtgvdBC.js} +100 -99
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js → CountdownBlock-BqRw147R.js} +18 -18
- package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js.map → CountdownBlock-BqRw147R.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CguFJdqn.js → CountdownToolbar-xobieKoU.js} +26 -26
- package/dist/cdn/chunks/{CountdownToolbar-CguFJdqn.js.map → CountdownToolbar-xobieKoU.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-pr7_nuLI.js → IssuesPanel-C7LfxaAY.js} +75 -75
- package/dist/cdn/chunks/{IssuesPanel-pr7_nuLI.js.map → IssuesPanel-C7LfxaAY.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js → LoadingTrack-CZuLTazv.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js.map → LoadingTrack-CZuLTazv.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-B_ldj3TO.js → LogicTagInsertButton-BIi05UQu.js} +250 -250
- package/dist/cdn/chunks/{LogicTagInsertButton-B_ldj3TO.js.map → LogicTagInsertButton-BIi05UQu.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-CGfzcHwP.js → MediaEditModal-Cpcod6_U.js} +148 -148
- package/dist/cdn/chunks/{MediaEditModal-CGfzcHwP.js.map → MediaEditModal-Cpcod6_U.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js → MediaPanels-BIdcW_1f.js} +3 -3
- package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js.map → MediaPanels-BIdcW_1f.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-CFu9VXPS.js → MergeTagInput-BvWg8o5E.js} +32 -32
- package/dist/cdn/chunks/{MergeTagInput-CFu9VXPS.js.map → MergeTagInput-BvWg8o5E.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BFpK5dxg.js → MergeTagModeToggle-BgKEVUtV.js} +27 -27
- package/dist/cdn/chunks/{MergeTagModeToggle-BFpK5dxg.js.map → MergeTagModeToggle-BgKEVUtV.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-Zo0mYWbf.js → MergeTagTextarea-tBz8McZf.js} +32 -32
- package/dist/cdn/chunks/{MergeTagTextarea-Zo0mYWbf.js.map → MergeTagTextarea-tBz8McZf.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DsPLVAgm.js → ParagraphEditor-B3Rj_cWF.js} +191 -191
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js → RestoreVersionDialog-CjOdD2xj.js} +19 -19
- package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js.map → RestoreVersionDialog-CjOdD2xj.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js → RichTextEditorContent-DNjR_sNN.js} +29 -29
- package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js.map → RichTextEditorContent-DNjR_sNN.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js → SaveBlockDialog-CUhpawq0.js} +75 -75
- package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js.map → SaveBlockDialog-CUhpawq0.js.map} +1 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js +356 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-B9XCjDfm.js.map → SavedBlocksBrowserModal-BPYcRoGa.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js → SavedBlocksPanels-C6--Bc81.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js.map → SavedBlocksPanels-C6--Bc81.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js → SavedBlocksPickBar-DUavxpbU.js} +14 -14
- package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js.map → SavedBlocksPickBar-DUavxpbU.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-jWpmuWDR.js → TemplateSettings-CKtI-dof.js} +69 -69
- package/dist/cdn/chunks/{TemplateSettings-jWpmuWDR.js.map → TemplateSettings-CKtI-dof.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-DcwKhFnI.js → TestEmailModal-CDQTgESD.js} +65 -65
- package/dist/cdn/chunks/{TestEmailModal-DcwKhFnI.js.map → TestEmailModal-CDQTgESD.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js → TestEmailPanel-CcUpEpAn.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js.map → TestEmailPanel-CcUpEpAn.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-R2lQw6WA.js → TitleEditor-Cob7RLyK.js} +70 -70
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +1 -0
- package/dist/cdn/chunks/{ToggleSwitch-BDMugNES.js → ToggleSwitch-J7Vwhvha.js} +5 -5
- package/dist/cdn/chunks/{ToggleSwitch-BDMugNES.js.map → ToggleSwitch-J7Vwhvha.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-CnvfW72e.js → Toolbar-CdpsvNOR.js} +893 -893
- package/dist/cdn/chunks/{Toolbar-CnvfW72e.js.map → Toolbar-CdpsvNOR.js.map} +1 -1
- package/dist/cdn/chunks/TplModal-CFPDgbwQ.js +51 -0
- package/dist/cdn/chunks/{TplModal-BDyeS69p.js.map → TplModal-CFPDgbwQ.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js → VersionHistoryMenu-BYlLRvRJ.js} +32 -32
- package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js.map → VersionHistoryMenu-BYlLRvRJ.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js → VersionHistoryPanels-C6SOVoiT.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js.map → VersionHistoryPanels-C6SOVoiT.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-CZ--HOoa.js → VersionPreviewBanner-Dvg0ZfAW.js} +10 -10
- package/dist/cdn/chunks/{VersionPreviewBanner-CZ--HOoa.js.map → VersionPreviewBanner-Dvg0ZfAW.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-D3obNGab.js → WrapperBlock-C7Md56IT.js} +13 -13
- package/dist/cdn/chunks/{WrapperBlock-D3obNGab.js.map → WrapperBlock-C7Md56IT.js.map} +1 -1
- package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js +21 -0
- package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-D6niZ2Rc.js → createCloudRuntime-Cth2JCEh.js} +36 -36
- package/dist/cdn/chunks/{createCloudRuntime-D6niZ2Rc.js.map → createCloudRuntime-Cth2JCEh.js.map} +1 -1
- package/dist/cdn/chunks/{dist-C2epoAwW.js → dist-8ym3y-pH.js} +43 -43
- package/dist/cdn/chunks/{dist-C2epoAwW.js.map → dist-8ym3y-pH.js.map} +1 -1
- package/dist/{dist-BA-jTQgw.js → cdn/chunks/dist-BMzNabtD.js} +106 -107
- package/dist/cdn/chunks/{dist-CONcGNwy.js.map → dist-BMzNabtD.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-B8hTTYFO.js → draggable-Du8AUMFT.js} +639 -636
- package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js → editor-modal-CyCe560f.js} +891 -891
- package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js.map → editor-modal-CyCe560f.js.map} +1 -1
- package/dist/cdn/chunks/en-TIqv4ag3.js +1 -0
- package/dist/cdn/chunks/{extensions-ClDhn88e.js → extensions-CFF2KWy-.js} +55 -55
- package/dist/cdn/chunks/{extensions-ClDhn88e.js.map → extensions-CFF2KWy-.js.map} +1 -1
- package/dist/cdn/chunks/{icons-HCBP93Ch.js → icons-okSPsLOa.js} +99 -97
- package/dist/cdn/chunks/icons-okSPsLOa.js.map +1 -0
- package/dist/cdn/chunks/{keys-BF9gazbd.js → keys-CUj6UA38.js} +2 -2
- package/dist/cdn/chunks/{keys-BF9gazbd.js.map → keys-CUj6UA38.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-DkLBNrft.js → liquid.browser-rubac0VA.js} +782 -746
- package/dist/cdn/chunks/liquid.browser-rubac0VA.js.map +1 -0
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-DpHCSESZ.js → normalizeMergeTagMarkup-C_KlfSW4.js} +2 -2
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-DpHCSESZ.js.map → normalizeMergeTagMarkup-C_KlfSW4.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js → preRenderCustomBlocks-BcXIz7oJ.js} +2 -2
- package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js.map → preRenderCustomBlocks-BcXIz7oJ.js.map} +1 -1
- package/dist/cdn/chunks/{sanitizeHtml-B2h15u0_.js → sanitizeHtml-CN85EDrO.js} +2 -2
- package/dist/cdn/chunks/{sanitizeHtml-B2h15u0_.js.map → sanitizeHtml-CN85EDrO.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-rJoqO1TJ.js → socialIcons-jsTDmkbb.js} +480 -480
- package/dist/cdn/chunks/{socialIcons-rJoqO1TJ.js.map → socialIcons-jsTDmkbb.js.map} +1 -1
- package/dist/cdn/chunks/{src-CUH_EI7k.js → src-C7bkofBL.js} +6 -6
- package/dist/cdn/chunks/{src-CUH_EI7k.js.map → src-C7bkofBL.js.map} +1 -1
- package/dist/cdn/chunks/{src-BKpAis_q.js → src-DEd87i_U.js} +2 -2
- package/dist/cdn/chunks/{src-BKpAis_q.js.map → src-DEd87i_U.js.map} +1 -1
- package/dist/cdn/chunks/{src-C9DTvn1H.js → src-DwWrYnUj.js} +3 -22
- package/dist/cdn/chunks/src-DwWrYnUj.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-ChSZybTi.js → tiptap-CbiTlECY.js} +45 -45
- package/dist/cdn/chunks/{tiptap-ChSZybTi.js.map → tiptap-CbiTlECY.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js → useCloudI18n-DY8_-ETE.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js.map → useCloudI18n-DY8_-ETE.js.map} +1 -1
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +2582 -0
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +9 -0
- package/dist/cdn/chunks/{useEditorRoot-BT3c9CXj.js.map → useEditorRoot-vjZJwKrV.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-11iqzC6m.js → useI18n-D8pY4LTq.js} +3 -3
- package/dist/cdn/chunks/{useI18n-11iqzC6m.js.map → useI18n-D8pY4LTq.js.map} +1 -1
- package/dist/{useLogicTag-DFDYJeMN.js → cdn/chunks/useLogicTag-DBJDtpKA.js} +5 -3
- package/dist/cdn/chunks/{useLogicTag-vy5KGg5D.js.map → useLogicTag-DBJDtpKA.js.map} +1 -1
- package/dist/{useMergeTag-B46vACAG.js → cdn/chunks/useMergeTag-B-aG--s1.js} +7 -5
- package/dist/cdn/chunks/{useMergeTag-BFBBjnwh.js.map → useMergeTag-B-aG--s1.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-AnVIwiVv.js → usePopoverPosition-DSMtmu2W.js} +4 -4
- package/dist/cdn/chunks/{usePopoverPosition-AnVIwiVv.js.map → usePopoverPosition-DSMtmu2W.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-C0dawxGr.js → useScrollToBlock-vjQ0fe-L.js} +3 -3
- package/dist/cdn/chunks/{useScrollToBlock-C0dawxGr.js.map → useScrollToBlock-vjQ0fe-L.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js → withCurrentFont-hZTvYBHO.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js.map → withCurrentFont-hZTvYBHO.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +1422 -1422
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-N3x4z_rH.js → check-BZ8o0eet.js} +1 -1
- package/dist/{chevron-down-gXu9qNwO.js → chevron-down-DfAAfILv.js} +1 -1
- package/dist/{chevron-right-rL0ayGk5.js → chevron-right-Bk4mGdr7.js} +1 -1
- package/dist/{chevron-up-0ugh8HnW.js → chevron-up-MhUf_azW.js} +1 -1
- package/dist/{circle-alert-B9Ls75B5.js → circle-alert-CShJwVFv.js} +1 -1
- package/dist/{clock-BqHBaCLm.js → clock-CTfD6OCt.js} +1 -1
- package/dist/{createCloudRuntime-B5VIdnwz.js → createCloudRuntime-DCgO4A1r.js} +24 -24
- package/dist/{createLucideIcon-BV7Gwz_Z.js → createLucideIcon-CvhTA2KG.js} +6 -6
- package/dist/{cdn/chunks/dist-CONcGNwy.js → dist-ByCWA2Tv.js} +100 -99
- package/dist/{dist-CzrLYq2s.js → dist-CKi_npZM.js} +2 -21
- package/dist/{dist-CEdyyDn7.js → dist-CVy-7PHQ.js} +54 -54
- package/dist/{dist-DDN7yR-w.js → dist-D6cMdrfG.js} +129 -129
- package/dist/{editor-modal-Du9VI9q4.js → editor-modal-zaZHcmlO.js} +812 -812
- package/dist/en-Db76vJbY.js +1 -0
- package/dist/{extensions-FRYhx7qa.js → extensions-fo_c-vqf.js} +32 -32
- package/dist/{eye-BKj9Tfnc.js → eye-7W4t5e0Q.js} +1 -1
- package/dist/{image-DNdvdTla.js → image-BDiRFzSd.js} +1 -1
- package/dist/{info-Bx-kBkbH.js → info-Cxi3-Kh9.js} +1 -1
- package/dist/{keys-DBjrQkYH.js → keys-BgRERHzu.js} +1 -1
- package/dist/{link-D8-rYdIQ.js → link-ju_2Cmir.js} +1 -1
- package/dist/{liquid.browser-D1RxawkY.js → liquid.browser-DUXEekoN.js} +781 -745
- package/dist/{list-BneisA27.js → list-DYZJf0aZ.js} +1 -1
- package/dist/{loader-circle-DBEXphyx.js → loader-circle-BZRD0a4I.js} +1 -1
- package/dist/{message-circle-Bg4xInCM.js → message-circle-DuEw4Zfx.js} +1 -1
- package/dist/{normalizeMergeTagMarkup-IH8COHzd.js → normalizeMergeTagMarkup-CELnOlgK.js} +1 -1
- package/dist/{package-B40Vkfsp.js → package-CePMr2kK.js} +1 -1
- package/dist/{pencil-CYdAHTds.js → pencil-D3aFCL7c.js} +1 -1
- package/dist/{preRenderCustomBlocks-AbZArwkR.js → preRenderCustomBlocks--_xc0XK3.js} +1 -1
- package/dist/{refresh-cw-Bb1FWrU0.js → refresh-cw-xnro7_Sk.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-CLGymEyk.js → runtime-dom.esm-bundler-BURR-bj5.js} +118 -118
- package/dist/{sanitizeHtml-CnOA1efV.js → sanitizeHtml-BzfzpYJY.js} +1 -1
- package/dist/{search-BZEo08gi.js → search-CDrstRBv.js} +1 -1
- package/dist/{send-DHtrnXQs.js → send-DROkPOaX.js} +1 -1
- package/dist/{smartphone-dlN3vpA3.js → smartphone-Bx6u_tjn.js} +1 -1
- package/dist/{socialIcons-B_d52_eS.js → socialIcons-D7MGsg0d.js} +366 -366
- package/dist/{sparkles-NOttoDnJ.js → sparkles-CdaTtvoz.js} +1 -1
- package/dist/{square-B1CJgdt2.js → square-BbCROH_f.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +1096 -1096
- package/dist/{text-align-start-zpoXmb-Z.js → text-align-start-CGacJ9Vw.js} +1 -1
- package/dist/{trash-CGbk4Sgt.js → trash-DxCd7zIy.js} +1 -1
- package/dist/{triangle-alert-CKLMyGVp.js → triangle-alert-7_oaitpf.js} +1 -1
- package/dist/{upload-DQoackAn.js → upload-DuFEOi_0.js} +1 -1
- package/dist/{useCloudI18n-DcLtxOQZ.js → useCloudI18n-DEMmUKuO.js} +2 -2
- package/dist/{useEditorCore-DG9UvWUm.js → useEditorCore-BSo2sSID.js} +1518 -1470
- package/dist/useEditorRoot-BMcoCLBx.js +7 -0
- package/dist/{useI18n-CeTm777E.js → useI18n-BBrHTdu8.js} +2 -2
- package/dist/{cdn/chunks/useLogicTag-vy5KGg5D.js → useLogicTag-ZPC39rfH.js} +3 -5
- package/dist/{cdn/chunks/useMergeTag-BFBBjnwh.js → useMergeTag-BQ4qqWpQ.js} +5 -7
- package/dist/{usePopoverPosition-C42kD7zt.js → usePopoverPosition-DV1PxL66.js} +3 -3
- package/dist/{useScrollToBlock-C-NzvjeO.js → useScrollToBlock-BSyAV4pk.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-CrlI8j5R.js → vue.runtime.esm-bundler-CnEeTfhs.js} +993 -990
- package/dist/{withCurrentFont-v_a4Oso8.js → withCurrentFont-B22FXAF5.js} +1 -1
- package/dist/{x-zcrnmcmU.js → x-BpfG7v9g.js} +1 -1
- package/package.json +10 -10
- package/dist/BlockIssueBadge-6Ri2FfX-.js +0 -33
- package/dist/CommentsSidebar-Co3x4uH0.js +0 -499
- package/dist/IssuesPanel-BHFQ3wrP.js +0 -359
- package/dist/SavedBlocksBrowserModal-SRtN5h9q.js +0 -359
- package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js +0 -34
- package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-Dj8sDiLN.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-DsPLVAgm.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-B9XCjDfm.js +0 -356
- package/dist/cdn/chunks/TitleEditor-R2lQw6WA.js.map +0 -1
- package/dist/cdn/chunks/TplModal-BDyeS69p.js +0 -51
- package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js +0 -21
- package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js.map +0 -1
- package/dist/cdn/chunks/draggable-B8hTTYFO.js.map +0 -1
- package/dist/cdn/chunks/en-CKAXAo3Z.js +0 -1
- package/dist/cdn/chunks/icons-HCBP93Ch.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-DkLBNrft.js.map +0 -1
- package/dist/cdn/chunks/src-C9DTvn1H.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-CjaEV_01.js +0 -2534
- package/dist/cdn/chunks/useEditorCore-CjaEV_01.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-BT3c9CXj.js +0 -9
- package/dist/en-CyEE7FPY.js +0 -1
- package/dist/useEditorRoot-BKr6nNkC.js +0 -7
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-QGRDbDUS.js";
|
|
2
|
-
import {
|
|
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-
|
|
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-
|
|
5
|
-
import { _ as be } from "./dist-
|
|
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-
|
|
7
|
-
import { t as B } from "./useI18n-
|
|
8
|
-
import { o as Ne } from "./usePopoverPosition-
|
|
9
|
-
import { $ as Pe,
|
|
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
10
|
import { t as $e } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
11
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-
|
|
13
|
-
import { c as K } from "./LogicTagInsertButton-
|
|
14
|
-
import { t as ot } from "./MergeTagTextarea-
|
|
15
|
-
import { t as q } from "./ToggleSwitch-
|
|
16
|
-
import { n as st, t as ct } from "./withCurrentFont-
|
|
17
|
-
import { t as J } from "./MergeTagInput-
|
|
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
18
|
// src/components/SlidingPillSelect.vue?vue&type=script&setup=true&lang.ts
|
|
19
19
|
var lt = [
|
|
20
20
|
"aria-checked",
|
|
@@ -23,7 +23,7 @@ var lt = [
|
|
|
23
23
|
"aria-disabled",
|
|
24
24
|
"title",
|
|
25
25
|
"onClick"
|
|
26
|
-
], ut = { key: 1 }, Y = /* @__PURE__ */
|
|
26
|
+
], ut = { key: 1 }, Y = /* @__PURE__ */ t({
|
|
27
27
|
__name: "SlidingPillSelect",
|
|
28
28
|
props: {
|
|
29
29
|
options: {},
|
|
@@ -31,18 +31,18 @@ var lt = [
|
|
|
31
31
|
},
|
|
32
32
|
emits: ["update:modelValue"],
|
|
33
33
|
setup(e, { emit: t }) {
|
|
34
|
-
let n = e, r = t, a =
|
|
35
|
-
return (t, n) => (o(),
|
|
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
36
|
role: "radiogroup",
|
|
37
37
|
class: "tpl:relative tpl:grid tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1",
|
|
38
|
-
style:
|
|
38
|
+
style: m({
|
|
39
39
|
gridTemplateColumns: `repeat(${e.options.length}, 1fr)`,
|
|
40
40
|
backgroundColor: "var(--tpl-bg-hover)"
|
|
41
41
|
})
|
|
42
|
-
}, [a.value >= 0 ? (o(),
|
|
42
|
+
}, [a.value >= 0 ? (o(), f("div", {
|
|
43
43
|
key: 0,
|
|
44
44
|
class: "tpl:absolute tpl:inset-y-1 tpl:rounded-[var(--tpl-radius-sm)]",
|
|
45
|
-
style:
|
|
45
|
+
style: m({
|
|
46
46
|
left: "4px",
|
|
47
47
|
width: `calc((100% - 8px) / ${e.options.length})`,
|
|
48
48
|
transform: s.value,
|
|
@@ -50,7 +50,7 @@ var lt = [
|
|
|
50
50
|
boxShadow: "var(--tpl-shadow)",
|
|
51
51
|
transition: "transform 120ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
52
52
|
})
|
|
53
|
-
}, null, 4)) :
|
|
53
|
+
}, null, 4)) : _("", !0), (o(!0), f(w, null, i(e.options, (t) => (o(), f("button", {
|
|
54
54
|
key: t.value,
|
|
55
55
|
role: "radio",
|
|
56
56
|
"aria-checked": e.modelValue === t.value,
|
|
@@ -58,24 +58,24 @@ var lt = [
|
|
|
58
58
|
disabled: t.disabled,
|
|
59
59
|
"aria-disabled": t.disabled ? "true" : void 0,
|
|
60
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:
|
|
61
|
+
style: m({
|
|
62
62
|
color: t.disabled ? "var(--tpl-text-dim)" : e.modelValue === t.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
63
63
|
transition: "color 120ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
64
64
|
}),
|
|
65
65
|
title: t.label,
|
|
66
66
|
onClick: (e) => t.disabled || r("update:modelValue", t.value)
|
|
67
|
-
}, [t.icon ? (o(),
|
|
67
|
+
}, [t.icon ? (o(), v(D(t.icon), {
|
|
68
68
|
key: 0,
|
|
69
69
|
size: 14,
|
|
70
70
|
"stroke-width": 2
|
|
71
|
-
})) : (o(),
|
|
71
|
+
})) : (o(), f("span", ut, g(t.label), 1))], 12, lt))), 128))], 4));
|
|
72
72
|
}
|
|
73
73
|
}), dt = { class: "tpl:flex tpl:items-stretch" }, ft = [
|
|
74
74
|
"data-testid",
|
|
75
75
|
"value",
|
|
76
76
|
"min",
|
|
77
77
|
"max"
|
|
78
|
-
], X = /* @__PURE__ */
|
|
78
|
+
], X = /* @__PURE__ */ t({
|
|
79
79
|
__name: "NumberWithSuffix",
|
|
80
80
|
props: {
|
|
81
81
|
modelValue: {},
|
|
@@ -91,22 +91,22 @@ var lt = [
|
|
|
91
91
|
let t = e.target;
|
|
92
92
|
t.validity?.badInput || n("update:modelValue", Number(t.value));
|
|
93
93
|
}
|
|
94
|
-
return (t, n) => (o(),
|
|
94
|
+
return (t, n) => (o(), f("div", dt, [y("input", {
|
|
95
95
|
type: "number",
|
|
96
96
|
"data-testid": e.testid,
|
|
97
|
-
class:
|
|
97
|
+
class: T(C(W)),
|
|
98
98
|
value: e.modelValue,
|
|
99
99
|
min: e.min,
|
|
100
100
|
max: e.max,
|
|
101
101
|
onInput: r
|
|
102
|
-
}, null, 42, ft), y("span", { class:
|
|
102
|
+
}, null, 42, ft), y("span", { class: T(C(U)) }, g(e.suffix), 3)]));
|
|
103
103
|
}
|
|
104
104
|
}), pt = [
|
|
105
105
|
"aria-pressed",
|
|
106
106
|
"aria-label",
|
|
107
107
|
"title",
|
|
108
108
|
"data-testid"
|
|
109
|
-
], mt = /* @__PURE__ */
|
|
109
|
+
], mt = /* @__PURE__ */ t({
|
|
110
110
|
__name: "LinkToggle",
|
|
111
111
|
props: {
|
|
112
112
|
linked: { type: Boolean },
|
|
@@ -117,19 +117,19 @@ var lt = [
|
|
|
117
117
|
emits: ["toggle"],
|
|
118
118
|
setup(e, { emit: t }) {
|
|
119
119
|
let n = t;
|
|
120
|
-
return (t, r) => (o(),
|
|
120
|
+
return (t, r) => (o(), f("button", {
|
|
121
121
|
type: "button",
|
|
122
|
-
class:
|
|
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
123
|
"aria-pressed": e.linked ? "true" : "false",
|
|
124
124
|
"aria-label": e.linked ? e.unlinkLabel : e.linkLabel,
|
|
125
125
|
title: e.linked ? e.unlinkLabel : e.linkLabel,
|
|
126
126
|
"data-testid": e.testid,
|
|
127
127
|
onClick: r[0] ||= (e) => n("toggle")
|
|
128
|
-
}, [e.linked ? (o(),
|
|
128
|
+
}, [e.linked ? (o(), v(C(qe), {
|
|
129
129
|
key: 0,
|
|
130
130
|
size: 14,
|
|
131
131
|
"stroke-width": 2
|
|
132
|
-
})) : (o(),
|
|
132
|
+
})) : (o(), v(C(Be), {
|
|
133
133
|
key: 1,
|
|
134
134
|
size: 14,
|
|
135
135
|
"stroke-width": 2
|
|
@@ -138,73 +138,73 @@ var lt = [
|
|
|
138
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
139
|
key: 0,
|
|
140
140
|
class: "tpl:mb-3.5"
|
|
141
|
-
}, yt = { class: "tpl:mb-3.5" }, bt = { class: "tpl:mb-3.5" }, xt = /* @__PURE__ */
|
|
141
|
+
}, yt = { class: "tpl:mb-3.5" }, bt = { class: "tpl:mb-3.5" }, xt = /* @__PURE__ */ t({
|
|
142
142
|
__name: "BorderControl",
|
|
143
143
|
props: {
|
|
144
144
|
modelValue: {},
|
|
145
145
|
testidPrefix: {}
|
|
146
146
|
},
|
|
147
147
|
emits: ["update:modelValue"],
|
|
148
|
-
setup(e, { emit:
|
|
149
|
-
let
|
|
148
|
+
setup(e, { emit: t }) {
|
|
149
|
+
let n = e, r = t, { t: i } = B(), a = {
|
|
150
150
|
width: 0,
|
|
151
151
|
style: "solid",
|
|
152
152
|
color: "#000000"
|
|
153
153
|
};
|
|
154
|
-
function
|
|
154
|
+
function s(e, t) {
|
|
155
155
|
return e.width === t.width && e.style === t.style && e.color === t.color;
|
|
156
156
|
}
|
|
157
|
-
let
|
|
158
|
-
let e =
|
|
159
|
-
return !e || A.every((t) =>
|
|
160
|
-
}),
|
|
161
|
-
l(
|
|
162
|
-
!e &&
|
|
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
163
|
});
|
|
164
|
-
let
|
|
165
|
-
function
|
|
166
|
-
if (
|
|
167
|
-
|
|
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
168
|
return;
|
|
169
169
|
}
|
|
170
170
|
let t = {
|
|
171
|
-
...
|
|
172
|
-
[
|
|
173
|
-
},
|
|
174
|
-
|
|
175
|
-
}
|
|
176
|
-
function
|
|
177
|
-
|
|
178
|
-
...
|
|
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
179
|
width: e > 0 ? e : 0
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
|
|
184
|
-
...
|
|
182
|
+
function S(e) {
|
|
183
|
+
v({
|
|
184
|
+
...p.value,
|
|
185
185
|
...e
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
function D() {
|
|
189
|
-
if (
|
|
190
|
-
|
|
189
|
+
if (u.value) {
|
|
190
|
+
u.value = !1;
|
|
191
191
|
return;
|
|
192
192
|
}
|
|
193
|
-
|
|
194
|
-
let e =
|
|
193
|
+
u.value = !0;
|
|
194
|
+
let e = n.modelValue;
|
|
195
195
|
if (!e) return;
|
|
196
|
-
let t =
|
|
197
|
-
|
|
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
198
|
}
|
|
199
|
-
let O =
|
|
199
|
+
let O = x(() => A.map((e) => ({
|
|
200
200
|
value: e,
|
|
201
|
-
label:
|
|
201
|
+
label: i.spacingControl[e]
|
|
202
202
|
})));
|
|
203
|
-
return (t, n) => (o(),
|
|
204
|
-
y("div", gt, [y("span", _t,
|
|
205
|
-
linked:
|
|
206
|
-
"link-label":
|
|
207
|
-
"unlink-label":
|
|
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
208
|
testid: `${e.testidPrefix}-border-link`,
|
|
209
209
|
onToggle: D
|
|
210
210
|
}, null, 8, [
|
|
@@ -213,45 +213,45 @@ var lt = [
|
|
|
213
213
|
"unlink-label",
|
|
214
214
|
"testid"
|
|
215
215
|
])]),
|
|
216
|
-
|
|
216
|
+
u.value ? _("", !0) : (o(), f("div", vt, [y("label", { class: T(C(H)) }, g(C(i).blockSettings.borderSide), 3), E(Y, {
|
|
217
217
|
options: O.value,
|
|
218
|
-
"model-value":
|
|
219
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
218
|
+
"model-value": d.value,
|
|
219
|
+
"onUpdate:modelValue": n[0] ||= (e) => d.value = e
|
|
220
220
|
}, null, 8, ["options", "model-value"])])),
|
|
221
|
-
y("div", yt, [y("label", { class:
|
|
222
|
-
"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
223
|
min: 0,
|
|
224
224
|
suffix: "px",
|
|
225
225
|
testid: `${e.testidPrefix}-border-width-input`,
|
|
226
|
-
"onUpdate:modelValue":
|
|
226
|
+
"onUpdate:modelValue": b
|
|
227
227
|
}, null, 8, ["model-value", "testid"])]),
|
|
228
|
-
|
|
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
229
|
options: [
|
|
230
230
|
{
|
|
231
231
|
value: "solid",
|
|
232
|
-
label:
|
|
232
|
+
label: C(i).divider.solid
|
|
233
233
|
},
|
|
234
234
|
{
|
|
235
235
|
value: "dashed",
|
|
236
|
-
label:
|
|
236
|
+
label: C(i).divider.dashed
|
|
237
237
|
},
|
|
238
238
|
{
|
|
239
239
|
value: "dotted",
|
|
240
|
-
label:
|
|
240
|
+
label: C(i).divider.dotted
|
|
241
241
|
}
|
|
242
242
|
],
|
|
243
|
-
"model-value":
|
|
244
|
-
"onUpdate:modelValue": n[1] ||= (e) =>
|
|
245
|
-
}, null, 8, ["options", "model-value"])]), y("div", null, [y("label", { class:
|
|
246
|
-
"model-value":
|
|
247
|
-
"onUpdate:modelValue": n[2] ||= (e) =>
|
|
248
|
-
}, null, 8, ["model-value"])])], 64)) :
|
|
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
249
|
]));
|
|
250
250
|
}
|
|
251
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
252
|
key: 1,
|
|
253
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__ */
|
|
254
|
+
}, Et = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Dt = /* @__PURE__ */ t({
|
|
255
255
|
__name: "RadiusControl",
|
|
256
256
|
props: {
|
|
257
257
|
modelValue: {},
|
|
@@ -260,69 +260,69 @@ var lt = [
|
|
|
260
260
|
max: {}
|
|
261
261
|
},
|
|
262
262
|
emits: ["update:modelValue"],
|
|
263
|
-
setup(e, { emit:
|
|
264
|
-
let
|
|
263
|
+
setup(e, { emit: t }) {
|
|
264
|
+
let n = e, r = t, { t: a } = B(), s = {
|
|
265
265
|
topLeft: "cornerTopLeft",
|
|
266
266
|
topRight: "cornerTopRight",
|
|
267
267
|
bottomRight: "cornerBottomRight",
|
|
268
268
|
bottomLeft: "cornerBottomLeft"
|
|
269
|
-
},
|
|
269
|
+
}, c = [
|
|
270
270
|
"topLeft",
|
|
271
271
|
"topRight",
|
|
272
272
|
"bottomLeft",
|
|
273
273
|
"bottomRight"
|
|
274
|
-
],
|
|
275
|
-
let e =
|
|
274
|
+
], u = x(() => {
|
|
275
|
+
let e = n.modelValue ?? 0;
|
|
276
276
|
return typeof e == "number" ? {
|
|
277
277
|
topLeft: e,
|
|
278
278
|
topRight: e,
|
|
279
279
|
bottomRight: e,
|
|
280
280
|
bottomLeft: e
|
|
281
281
|
} : e;
|
|
282
|
-
}),
|
|
283
|
-
l(
|
|
284
|
-
!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
285
|
});
|
|
286
|
-
function
|
|
286
|
+
function m(e) {
|
|
287
287
|
return Number.isFinite(e) && e >= 0;
|
|
288
288
|
}
|
|
289
|
-
function
|
|
290
|
-
|
|
289
|
+
function _(e) {
|
|
290
|
+
m(e) && r("update:modelValue", e);
|
|
291
291
|
}
|
|
292
292
|
function b(e, t) {
|
|
293
|
-
|
|
294
|
-
...
|
|
293
|
+
m(t) && r("update:modelValue", {
|
|
294
|
+
...u.value,
|
|
295
295
|
[e]: t
|
|
296
296
|
});
|
|
297
297
|
}
|
|
298
|
-
function
|
|
299
|
-
|
|
298
|
+
function S() {
|
|
299
|
+
p.value = !p.value, p.value && r("update:modelValue", u.value.topLeft);
|
|
300
300
|
}
|
|
301
|
-
return (t, n) => (o(),
|
|
302
|
-
linked:
|
|
303
|
-
"link-label":
|
|
304
|
-
"unlink-label":
|
|
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
305
|
testid: `${e.testidPrefix}-border-radius-link`,
|
|
306
|
-
onToggle:
|
|
306
|
+
onToggle: S
|
|
307
307
|
}, null, 8, [
|
|
308
308
|
"linked",
|
|
309
309
|
"link-label",
|
|
310
310
|
"unlink-label",
|
|
311
311
|
"testid"
|
|
312
|
-
])]),
|
|
312
|
+
])]), p.value ? (o(), v(X, {
|
|
313
313
|
key: 0,
|
|
314
|
-
"model-value":
|
|
314
|
+
"model-value": u.value.topLeft,
|
|
315
315
|
min: 0,
|
|
316
316
|
max: e.max,
|
|
317
317
|
suffix: "px",
|
|
318
318
|
testid: `${e.testidPrefix}-border-radius-input`,
|
|
319
|
-
"onUpdate:modelValue":
|
|
319
|
+
"onUpdate:modelValue": _
|
|
320
320
|
}, null, 8, [
|
|
321
321
|
"model-value",
|
|
322
322
|
"max",
|
|
323
323
|
"testid"
|
|
324
|
-
])) : (o(),
|
|
325
|
-
"model-value":
|
|
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
326
|
min: 0,
|
|
327
327
|
max: e.max,
|
|
328
328
|
suffix: "px",
|
|
@@ -338,7 +338,7 @@ var lt = [
|
|
|
338
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
339
|
key: 0,
|
|
340
340
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
341
|
-
}, Gt = ["value"], Kt = { class: "tpl:mb-3.5" }, qt = 200, Jt = /* @__PURE__ */
|
|
341
|
+
}, Gt = ["value"], Kt = { class: "tpl:mb-3.5" }, qt = 200, Jt = /* @__PURE__ */ t({
|
|
342
342
|
__name: "ButtonToolbar",
|
|
343
343
|
props: {
|
|
344
344
|
block: {},
|
|
@@ -346,7 +346,7 @@ var lt = [
|
|
|
346
346
|
},
|
|
347
347
|
emits: ["update"],
|
|
348
348
|
setup(e, { emit: t }) {
|
|
349
|
-
let n = e, r = t, { t: a } = B(), s =
|
|
349
|
+
let n = e, r = t, { t: a } = B(), s = x(() => n.block.width === "full" ? "full" : typeof n.block.width == "number" ? "custom" : "auto");
|
|
350
350
|
function c(e, t) {
|
|
351
351
|
r("update", { [e]: t });
|
|
352
352
|
}
|
|
@@ -357,42 +357,42 @@ var lt = [
|
|
|
357
357
|
let t = Number(e);
|
|
358
358
|
!Number.isFinite(t) || t <= 0 || c("width", t);
|
|
359
359
|
}
|
|
360
|
-
return (t, n) => (o(),
|
|
361
|
-
y("div", Ot, [y("label", { class:
|
|
362
|
-
class:
|
|
363
|
-
value:
|
|
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
364
|
onChange: n[0] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
365
|
-
}, [y("option", At,
|
|
365
|
+
}, [y("option", At, g(C(a).button.inheritFont), 1), (o(!0), f(w, null, i(e.fontFamilies, (e) => (o(), f("option", {
|
|
366
366
|
key: e.value,
|
|
367
367
|
value: e.value
|
|
368
|
-
},
|
|
369
|
-
y("div", Mt, [y("label", { class:
|
|
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
370
|
"model-value": e.block.text,
|
|
371
371
|
type: "text",
|
|
372
372
|
"onUpdate:modelValue": n[1] ||= (e) => c("text", e)
|
|
373
373
|
}, null, 8, ["model-value"])]),
|
|
374
374
|
y("div", Nt, [
|
|
375
|
-
y("label", { class:
|
|
375
|
+
y("label", { class: T(C(H)) }, g(C(a).button.url), 3),
|
|
376
376
|
E(J, {
|
|
377
377
|
"model-value": e.block.url,
|
|
378
378
|
type: "url",
|
|
379
|
-
placeholder:
|
|
379
|
+
placeholder: C(a).button.urlPlaceholder,
|
|
380
380
|
"onUpdate:modelValue": n[2] ||= (e) => c("url", e)
|
|
381
381
|
}, null, 8, ["model-value", "placeholder"]),
|
|
382
|
-
e.block.url ? (o(),
|
|
382
|
+
e.block.url ? (o(), v(q, {
|
|
383
383
|
key: 0,
|
|
384
384
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
385
385
|
"model-value": e.block.openInNewTab ?? !1,
|
|
386
|
-
label:
|
|
386
|
+
label: C(a).button.openInNewTab,
|
|
387
387
|
"onUpdate:modelValue": n[3] ||= (e) => c("openInNewTab", e)
|
|
388
|
-
}, null, 8, ["model-value", "label"])) :
|
|
388
|
+
}, null, 8, ["model-value", "label"])) : _("", !0)
|
|
389
389
|
]),
|
|
390
|
-
y("div", Pt, [y("label", { class:
|
|
390
|
+
y("div", Pt, [y("label", { class: T(C(H)) }, g(C(a).button.background), 3), E(K, {
|
|
391
391
|
"model-value": e.block.backgroundColor,
|
|
392
392
|
"allow-transparent": "",
|
|
393
393
|
"onUpdate:modelValue": n[4] ||= (e) => c("backgroundColor", e)
|
|
394
394
|
}, null, 8, ["model-value"])]),
|
|
395
|
-
y("div", Ft, [y("label", { class:
|
|
395
|
+
y("div", Ft, [y("label", { class: T(C(H)) }, g(C(a).button.textColor), 3), E(K, {
|
|
396
396
|
"model-value": e.block.textColor,
|
|
397
397
|
"onUpdate:modelValue": n[5] ||= (e) => c("textColor", e)
|
|
398
398
|
}, null, 8, ["model-value"])]),
|
|
@@ -403,51 +403,51 @@ var lt = [
|
|
|
403
403
|
}, null, 8, ["model-value"]),
|
|
404
404
|
E(Dt, {
|
|
405
405
|
"model-value": e.block.borderRadius,
|
|
406
|
-
label:
|
|
406
|
+
label: C(a).button.borderRadius,
|
|
407
407
|
max: 50,
|
|
408
408
|
"testid-prefix": "button",
|
|
409
409
|
"onUpdate:modelValue": n[7] ||= (e) => c("borderRadius", e)
|
|
410
410
|
}, null, 8, ["model-value", "label"]),
|
|
411
|
-
y("div", It, [y("label", { class:
|
|
411
|
+
y("div", It, [y("label", { class: T(C(H)) }, g(C(a).button.fontSize), 3), y("div", Lt, [y("input", {
|
|
412
412
|
type: "number",
|
|
413
|
-
class:
|
|
413
|
+
class: T(C(W)),
|
|
414
414
|
value: e.block.fontSize,
|
|
415
415
|
min: "10",
|
|
416
416
|
max: "36",
|
|
417
417
|
onInput: n[8] ||= (e) => c("fontSize", Number(e.target.value))
|
|
418
|
-
}, null, 42, Rt), y("span", { class:
|
|
418
|
+
}, null, 42, Rt), y("span", { class: T(C(U)) }, "px", 2)])]),
|
|
419
419
|
y("div", zt, [
|
|
420
|
-
y("label", { class:
|
|
420
|
+
y("label", { class: T(C(H)) }, g(C(a).button.width), 3),
|
|
421
421
|
y("select", {
|
|
422
|
-
class:
|
|
422
|
+
class: T(C(G)),
|
|
423
423
|
value: s.value,
|
|
424
424
|
onChange: n[9] ||= (e) => l(e.target.value)
|
|
425
425
|
}, [
|
|
426
|
-
y("option", Vt,
|
|
427
|
-
y("option", Ht,
|
|
428
|
-
y("option", Ut,
|
|
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
429
|
], 42, Bt),
|
|
430
|
-
s.value === "custom" ? (o(),
|
|
430
|
+
s.value === "custom" ? (o(), f("div", Wt, [y("input", {
|
|
431
431
|
type: "number",
|
|
432
|
-
class:
|
|
432
|
+
class: T(C(W)),
|
|
433
433
|
value: typeof e.block.width == "number" ? e.block.width : qt,
|
|
434
434
|
min: "20",
|
|
435
435
|
onInput: n[10] ||= (e) => u(e.target.value)
|
|
436
|
-
}, null, 42, Gt), y("span", { class:
|
|
436
|
+
}, null, 42, Gt), y("span", { class: T(C(U)) }, "px", 2)])) : _("", !0)
|
|
437
437
|
]),
|
|
438
|
-
y("div", Kt, [y("label", { class:
|
|
438
|
+
y("div", Kt, [y("label", { class: T(C(H)) }, g(C(a).title.align), 3), E(Y, {
|
|
439
439
|
options: [
|
|
440
440
|
{
|
|
441
441
|
value: "left",
|
|
442
|
-
label:
|
|
442
|
+
label: C(a).title.alignLeft
|
|
443
443
|
},
|
|
444
444
|
{
|
|
445
445
|
value: "center",
|
|
446
|
-
label:
|
|
446
|
+
label: C(a).title.alignCenter
|
|
447
447
|
},
|
|
448
448
|
{
|
|
449
449
|
value: "right",
|
|
450
|
-
label:
|
|
450
|
+
label: C(a).title.alignRight
|
|
451
451
|
}
|
|
452
452
|
],
|
|
453
453
|
"model-value": e.block.align ?? "center",
|
|
@@ -455,46 +455,46 @@ var lt = [
|
|
|
455
455
|
}, null, 8, ["options", "model-value"])])
|
|
456
456
|
], 64));
|
|
457
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__ */
|
|
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
459
|
__name: "SpacingControl",
|
|
460
460
|
props: {
|
|
461
461
|
modelValue: {},
|
|
462
462
|
label: {}
|
|
463
463
|
},
|
|
464
464
|
emits: ["update:modelValue"],
|
|
465
|
-
setup(e, { emit:
|
|
466
|
-
let
|
|
467
|
-
l(
|
|
468
|
-
!e &&
|
|
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
469
|
});
|
|
470
|
-
function
|
|
471
|
-
let
|
|
472
|
-
|
|
473
|
-
top:
|
|
474
|
-
right:
|
|
475
|
-
bottom:
|
|
476
|
-
left:
|
|
477
|
-
}) :
|
|
478
|
-
...
|
|
479
|
-
[e]:
|
|
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
480
|
});
|
|
481
481
|
}
|
|
482
|
-
function
|
|
483
|
-
let
|
|
484
|
-
|
|
485
|
-
top:
|
|
486
|
-
right:
|
|
487
|
-
bottom:
|
|
488
|
-
left:
|
|
489
|
-
}) :
|
|
490
|
-
...
|
|
491
|
-
[e]:
|
|
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
492
|
});
|
|
493
493
|
}
|
|
494
|
-
function
|
|
495
|
-
if (
|
|
496
|
-
let e =
|
|
497
|
-
|
|
494
|
+
function d() {
|
|
495
|
+
if (s.value = !s.value, s.value) {
|
|
496
|
+
let e = n.modelValue.top;
|
|
497
|
+
r("update:modelValue", {
|
|
498
498
|
top: e,
|
|
499
499
|
right: e,
|
|
500
500
|
bottom: e,
|
|
@@ -502,29 +502,29 @@ var lt = [
|
|
|
502
502
|
});
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
return (t, n) => (o(),
|
|
505
|
+
return (t, n) => (o(), f("div", Yt, [y("label", Xt, g(e.label), 1), y("div", Zt, [
|
|
506
506
|
y("div", Qt, [
|
|
507
507
|
y("button", {
|
|
508
|
-
"aria-label":
|
|
509
|
-
class:
|
|
510
|
-
onClick: n[0] ||= (e) =>
|
|
511
|
-
}, [E(
|
|
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
512
|
size: 12,
|
|
513
513
|
"stroke-width": 2
|
|
514
514
|
})], 10, $t),
|
|
515
515
|
y("input", {
|
|
516
516
|
type: "number",
|
|
517
|
-
class:
|
|
517
|
+
class: T(_n),
|
|
518
518
|
value: e.modelValue.top,
|
|
519
|
-
"aria-label":
|
|
519
|
+
"aria-label": C(i).spacingControl.top,
|
|
520
520
|
min: "0",
|
|
521
|
-
onInput: n[1] ||= (e) =>
|
|
521
|
+
onInput: n[1] ||= (e) => u("top", Number(e.target.value))
|
|
522
522
|
}, null, 40, en),
|
|
523
523
|
y("button", {
|
|
524
|
-
"aria-label":
|
|
525
|
-
class:
|
|
526
|
-
onClick: n[2] ||= (e) =>
|
|
527
|
-
}, [E(
|
|
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
528
|
size: 12,
|
|
529
529
|
"stroke-width": 2
|
|
530
530
|
})], 10, tn)
|
|
@@ -532,66 +532,66 @@ var lt = [
|
|
|
532
532
|
y("div", nn, [
|
|
533
533
|
y("div", rn, [
|
|
534
534
|
y("button", {
|
|
535
|
-
"aria-label":
|
|
536
|
-
class:
|
|
537
|
-
onClick: n[3] ||= (e) =>
|
|
538
|
-
}, [E(
|
|
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
539
|
size: 12,
|
|
540
540
|
"stroke-width": 2
|
|
541
541
|
})], 10, an),
|
|
542
542
|
y("input", {
|
|
543
543
|
type: "number",
|
|
544
|
-
class:
|
|
544
|
+
class: T(_n),
|
|
545
545
|
value: e.modelValue.left,
|
|
546
|
-
"aria-label":
|
|
546
|
+
"aria-label": C(i).spacingControl.left,
|
|
547
547
|
min: "0",
|
|
548
|
-
onInput: n[4] ||= (e) =>
|
|
548
|
+
onInput: n[4] ||= (e) => u("left", Number(e.target.value))
|
|
549
549
|
}, null, 40, on),
|
|
550
550
|
y("button", {
|
|
551
|
-
"aria-label":
|
|
552
|
-
class:
|
|
553
|
-
onClick: n[5] ||= (e) =>
|
|
554
|
-
}, [E(
|
|
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
555
|
size: 12,
|
|
556
556
|
"stroke-width": 2
|
|
557
557
|
})], 10, sn)
|
|
558
558
|
]),
|
|
559
559
|
y("button", {
|
|
560
|
-
class:
|
|
561
|
-
"aria-label":
|
|
562
|
-
title:
|
|
563
|
-
onClick:
|
|
564
|
-
}, [
|
|
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
565
|
key: 0,
|
|
566
566
|
size: 14,
|
|
567
567
|
"stroke-width": 2
|
|
568
|
-
})) : (o(),
|
|
568
|
+
})) : (o(), v(C(We), {
|
|
569
569
|
key: 1,
|
|
570
570
|
size: 14,
|
|
571
571
|
"stroke-width": 2
|
|
572
572
|
}))], 10, cn),
|
|
573
573
|
y("div", ln, [
|
|
574
574
|
y("button", {
|
|
575
|
-
"aria-label":
|
|
576
|
-
class:
|
|
577
|
-
onClick: n[6] ||= (e) =>
|
|
578
|
-
}, [E(
|
|
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
579
|
size: 12,
|
|
580
580
|
"stroke-width": 2
|
|
581
581
|
})], 10, un),
|
|
582
582
|
y("input", {
|
|
583
583
|
type: "number",
|
|
584
|
-
class:
|
|
584
|
+
class: T(_n),
|
|
585
585
|
value: e.modelValue.right,
|
|
586
|
-
"aria-label":
|
|
586
|
+
"aria-label": C(i).spacingControl.right,
|
|
587
587
|
min: "0",
|
|
588
|
-
onInput: n[7] ||= (e) =>
|
|
588
|
+
onInput: n[7] ||= (e) => u("right", Number(e.target.value))
|
|
589
589
|
}, null, 40, dn),
|
|
590
590
|
y("button", {
|
|
591
|
-
"aria-label":
|
|
592
|
-
class:
|
|
593
|
-
onClick: n[8] ||= (e) =>
|
|
594
|
-
}, [E(
|
|
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
595
|
size: 12,
|
|
596
596
|
"stroke-width": 2
|
|
597
597
|
})], 10, fn)
|
|
@@ -599,26 +599,26 @@ var lt = [
|
|
|
599
599
|
]),
|
|
600
600
|
y("div", pn, [
|
|
601
601
|
y("button", {
|
|
602
|
-
"aria-label":
|
|
603
|
-
class:
|
|
604
|
-
onClick: n[9] ||= (e) =>
|
|
605
|
-
}, [E(
|
|
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
606
|
size: 12,
|
|
607
607
|
"stroke-width": 2
|
|
608
608
|
})], 10, mn),
|
|
609
609
|
y("input", {
|
|
610
610
|
type: "number",
|
|
611
|
-
class:
|
|
611
|
+
class: T(_n),
|
|
612
612
|
value: e.modelValue.bottom,
|
|
613
|
-
"aria-label":
|
|
613
|
+
"aria-label": C(i).spacingControl.bottom,
|
|
614
614
|
min: "0",
|
|
615
|
-
onInput: n[10] ||= (e) =>
|
|
615
|
+
onInput: n[10] ||= (e) => u("bottom", Number(e.target.value))
|
|
616
616
|
}, null, 40, hn),
|
|
617
617
|
y("button", {
|
|
618
|
-
"aria-label":
|
|
619
|
-
class:
|
|
620
|
-
onClick: n[11] ||= (e) =>
|
|
621
|
-
}, [E(
|
|
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
622
|
size: 12,
|
|
623
623
|
"stroke-width": 2
|
|
624
624
|
})], 10, gn)
|
|
@@ -628,15 +628,15 @@ var lt = [
|
|
|
628
628
|
}), [["__scopeId", "data-v-69591c1e"]]);
|
|
629
629
|
// src/composables/useNaturalImageSize.ts
|
|
630
630
|
function yn(e) {
|
|
631
|
-
let
|
|
631
|
+
let t = h(null), n = () => {};
|
|
632
632
|
return l(e, (e) => {
|
|
633
|
-
|
|
634
|
-
|
|
633
|
+
n(), t.value = null, e && (n = ue(e, (e) => {
|
|
634
|
+
t.value = e;
|
|
635
635
|
}));
|
|
636
|
-
}, { immediate: !0 }),
|
|
636
|
+
}, { immediate: !0 }), t;
|
|
637
637
|
}
|
|
638
638
|
function bn() {
|
|
639
|
-
let e =
|
|
639
|
+
let e = n(Me, null);
|
|
640
640
|
return async (t) => _e(e ? await xn(e, t) : t);
|
|
641
641
|
}
|
|
642
642
|
function xn(e, t) {
|
|
@@ -656,7 +656,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
656
656
|
"aria-pressed",
|
|
657
657
|
"data-testid",
|
|
658
658
|
"onClick"
|
|
659
|
-
], On = ["data-testid"], kn = /* @__PURE__ */
|
|
659
|
+
], On = ["data-testid"], kn = /* @__PURE__ */ t({
|
|
660
660
|
__name: "BackgroundImageControl",
|
|
661
661
|
props: {
|
|
662
662
|
modelValue: {},
|
|
@@ -665,89 +665,89 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
665
665
|
heroMode: { type: Boolean }
|
|
666
666
|
},
|
|
667
667
|
emits: ["update:modelValue"],
|
|
668
|
-
setup(e, { emit:
|
|
669
|
-
let
|
|
670
|
-
d(() => clearTimeout(
|
|
671
|
-
function
|
|
672
|
-
|
|
673
|
-
let t = await
|
|
674
|
-
t && n?.url === e &&
|
|
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
675
|
...n,
|
|
676
676
|
...he(t)
|
|
677
677
|
});
|
|
678
678
|
}, 300));
|
|
679
679
|
}
|
|
680
680
|
function D(e, t = null) {
|
|
681
|
-
if (clearTimeout(
|
|
682
|
-
|
|
681
|
+
if (clearTimeout(b), e.trim() === "") {
|
|
682
|
+
a("update:modelValue", void 0);
|
|
683
683
|
return;
|
|
684
684
|
}
|
|
685
|
-
let { naturalWidth: n, naturalHeight:
|
|
686
|
-
|
|
687
|
-
...
|
|
685
|
+
let { naturalWidth: n, naturalHeight: i, ...o } = r.modelValue ?? ee(e), s = r.measure ? t : null;
|
|
686
|
+
a("update:modelValue", {
|
|
687
|
+
...o,
|
|
688
688
|
url: e,
|
|
689
|
-
...
|
|
690
|
-
}),
|
|
689
|
+
...s ? he(s) : {}
|
|
690
|
+
}), s || S(e);
|
|
691
691
|
}
|
|
692
692
|
function O(e) {
|
|
693
|
-
|
|
694
|
-
...
|
|
693
|
+
r.modelValue && a("update:modelValue", {
|
|
694
|
+
...r.modelValue,
|
|
695
695
|
...e
|
|
696
696
|
});
|
|
697
697
|
}
|
|
698
|
-
let k =
|
|
698
|
+
let k = x(() => [
|
|
699
699
|
{
|
|
700
700
|
value: "cover",
|
|
701
|
-
label:
|
|
701
|
+
label: s.blockSettings.backgroundSizeCover
|
|
702
702
|
},
|
|
703
703
|
{
|
|
704
704
|
value: "contain",
|
|
705
|
-
label:
|
|
705
|
+
label: s.blockSettings.backgroundSizeContain
|
|
706
706
|
},
|
|
707
707
|
{
|
|
708
708
|
value: "auto",
|
|
709
|
-
label:
|
|
709
|
+
label: s.blockSettings.backgroundSizeAuto
|
|
710
710
|
}
|
|
711
|
-
]), A =
|
|
712
|
-
"top-left":
|
|
713
|
-
"top-center":
|
|
714
|
-
"top-right":
|
|
715
|
-
"center-left":
|
|
716
|
-
"center-center":
|
|
717
|
-
"center-right":
|
|
718
|
-
"bottom-left":
|
|
719
|
-
"bottom-center":
|
|
720
|
-
"bottom-right":
|
|
721
|
-
})), M =
|
|
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
722
|
x: t,
|
|
723
723
|
y: e,
|
|
724
724
|
label: A.value[`${e}-${t}`]
|
|
725
725
|
}))));
|
|
726
726
|
function P(e) {
|
|
727
|
-
return
|
|
727
|
+
return r.modelValue?.position?.x === e.x && r.modelValue?.position?.y === e.y;
|
|
728
728
|
}
|
|
729
|
-
let F =
|
|
729
|
+
let F = h(), { canBrowse: te, isUploading: ne, showOverlay: I, openMediaBrowser: re } = me({
|
|
730
730
|
target: F,
|
|
731
|
-
blocked: () => L(
|
|
731
|
+
blocked: () => L(l.value, c),
|
|
732
732
|
apply: (e) => D(e.url, de(e.width, e.height))
|
|
733
733
|
});
|
|
734
|
-
return (t, n) => (o(),
|
|
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
735
|
ref_key: "dropZoneRef",
|
|
736
736
|
ref: F,
|
|
737
737
|
class: "tpl:relative",
|
|
738
738
|
"data-testid": `${e.testidPrefix}-bg-url`
|
|
739
739
|
}, [
|
|
740
|
-
|
|
740
|
+
C(I) ? (o(), v(le, {
|
|
741
741
|
key: 0,
|
|
742
|
-
uploading:
|
|
743
|
-
}, null, 8, ["uploading"])) :
|
|
742
|
+
uploading: C(ne)
|
|
743
|
+
}, null, 8, ["uploading"])) : _("", !0),
|
|
744
744
|
E(J, {
|
|
745
|
-
"model-value":
|
|
745
|
+
"model-value": l.value,
|
|
746
746
|
type: "url",
|
|
747
|
-
placeholder:
|
|
747
|
+
placeholder: C(s).blockSettings.backgroundImagePlaceholder,
|
|
748
748
|
"onUpdate:modelValue": D
|
|
749
749
|
}, null, 8, ["model-value", "placeholder"]),
|
|
750
|
-
|
|
750
|
+
C(te) ? (o(), f("button", {
|
|
751
751
|
key: 1,
|
|
752
752
|
type: "button",
|
|
753
753
|
"data-testid": `${e.testidPrefix}-bg-browse`,
|
|
@@ -757,50 +757,50 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
757
757
|
color: "var(--tpl-primary)",
|
|
758
758
|
"background-color": "var(--tpl-bg)"
|
|
759
759
|
},
|
|
760
|
-
onClick: n[0] ||= (...e) =>
|
|
761
|
-
}, [E(
|
|
760
|
+
onClick: n[0] ||= (...e) => C(re) && C(re)(...e)
|
|
761
|
+
}, [E(C(ze), {
|
|
762
762
|
size: 14,
|
|
763
763
|
"stroke-width": 1.5
|
|
764
|
-
}),
|
|
765
|
-
], 8, Cn)]),
|
|
766
|
-
e.heroMode ?
|
|
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
767
|
key: 0,
|
|
768
768
|
"data-testid": `${e.testidPrefix}-bg-size`
|
|
769
|
-
}, [y("label", { class:
|
|
769
|
+
}, [y("label", { class: T(C(H)) }, g(C(s).blockSettings.backgroundSize), 3), E(Y, {
|
|
770
770
|
options: k.value,
|
|
771
771
|
"model-value": e.modelValue.size,
|
|
772
772
|
"onUpdate:modelValue": n[1] ||= (e) => O({ size: e })
|
|
773
773
|
}, null, 8, ["options", "model-value"])], 8, Tn)),
|
|
774
|
-
y("div", null, [y("label", { class:
|
|
774
|
+
y("div", null, [y("label", { class: T(C(H)) }, g(C(s).blockSettings.backgroundPosition), 3), y("div", {
|
|
775
775
|
role: "group",
|
|
776
|
-
"aria-label":
|
|
776
|
+
"aria-label": C(s).blockSettings.backgroundPosition,
|
|
777
777
|
"data-testid": `${e.testidPrefix}-bg-position`,
|
|
778
778
|
class: "tpl:grid tpl:w-24 tpl:grid-cols-3 tpl:gap-1"
|
|
779
|
-
}, [(o(!0),
|
|
779
|
+
}, [(o(!0), f(w, null, i(M.value, (t) => (o(), f("button", {
|
|
780
780
|
key: `${t.y}-${t.x}`,
|
|
781
781
|
type: "button",
|
|
782
782
|
"aria-label": t.label,
|
|
783
783
|
title: t.label,
|
|
784
784
|
"aria-pressed": P(t),
|
|
785
785
|
"data-testid": `${e.testidPrefix}-bg-position-${t.y}-${t.x}`,
|
|
786
|
-
class:
|
|
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
787
|
onClick: (e) => O({ position: {
|
|
788
788
|
x: t.x,
|
|
789
789
|
y: t.y
|
|
790
790
|
} })
|
|
791
|
-
}, [y("span", { class:
|
|
792
|
-
e.heroMode ?
|
|
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
793
|
key: 1,
|
|
794
794
|
"data-testid": `${e.testidPrefix}-bg-repeat`
|
|
795
795
|
}, [E(q, {
|
|
796
796
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
797
797
|
"model-value": e.modelValue.repeat,
|
|
798
|
-
label:
|
|
798
|
+
label: C(s).blockSettings.backgroundRepeat,
|
|
799
799
|
"onUpdate:modelValue": n[2] ||= (e) => O({ repeat: e })
|
|
800
800
|
}, null, 8, ["model-value", "label"])], 8, On))
|
|
801
|
-
], 64)) :
|
|
801
|
+
], 64)) : _("", !0)]));
|
|
802
802
|
}
|
|
803
|
-
}), An = ["data-testid"], jn = { class: "tpl:mt-3" }, Mn = /* @__PURE__ */
|
|
803
|
+
}), An = ["data-testid"], jn = { class: "tpl:mt-3" }, Mn = /* @__PURE__ */ t({
|
|
804
804
|
__name: "CollapsibleSection",
|
|
805
805
|
props: {
|
|
806
806
|
title: {},
|
|
@@ -810,16 +810,16 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
810
810
|
},
|
|
811
811
|
emits: ["toggle"],
|
|
812
812
|
setup(e) {
|
|
813
|
-
return (t, n) => (o(),
|
|
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
814
|
type: "button",
|
|
815
815
|
"data-testid": e.headerTestId,
|
|
816
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
817
|
onClick: n[0] ||= (e) => t.$emit("toggle")
|
|
818
|
-
}, [E(
|
|
819
|
-
class:
|
|
818
|
+
}, [E(C(Qe), {
|
|
819
|
+
class: T(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
820
820
|
size: 12,
|
|
821
821
|
"stroke-width": 2
|
|
822
|
-
}, null, 8, ["class"]), y("span", null,
|
|
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
823
|
}
|
|
824
824
|
}), Nn = {
|
|
825
825
|
key: 0,
|
|
@@ -838,15 +838,15 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
838
838
|
}, Rn = {
|
|
839
839
|
key: 1,
|
|
840
840
|
"data-testid": "section-hero-align"
|
|
841
|
-
}, zn = 300, Bn = /* @__PURE__ */
|
|
841
|
+
}, zn = 300, Bn = /* @__PURE__ */ t({
|
|
842
842
|
__name: "HeroControl",
|
|
843
843
|
props: { section: {} },
|
|
844
844
|
emits: ["update"],
|
|
845
845
|
setup(e, { emit: t }) {
|
|
846
|
-
function
|
|
846
|
+
function r(e) {
|
|
847
847
|
return typeof e == "number" && Number.isFinite(e) && e >= 1;
|
|
848
848
|
}
|
|
849
|
-
let i = e, a = t, { t: s } = B(), c =
|
|
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
850
|
{
|
|
851
851
|
value: "fit",
|
|
852
852
|
label: s.blockSettings.heroHeightFit
|
|
@@ -854,13 +854,13 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
854
854
|
{
|
|
855
855
|
value: "image",
|
|
856
856
|
label: s.blockSettings.heroHeightImage,
|
|
857
|
-
disabled:
|
|
857
|
+
disabled: h.value
|
|
858
858
|
},
|
|
859
859
|
{
|
|
860
860
|
value: "fixed",
|
|
861
861
|
label: s.blockSettings.heroHeightFixed
|
|
862
862
|
}
|
|
863
|
-
]), k =
|
|
863
|
+
]), k = x(() => [
|
|
864
864
|
{
|
|
865
865
|
value: "top",
|
|
866
866
|
label: s.blockSettings.heroAlignTop
|
|
@@ -873,20 +873,20 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
873
873
|
value: "bottom",
|
|
874
874
|
label: s.blockSettings.heroAlignBottom
|
|
875
875
|
}
|
|
876
|
-
]), A =
|
|
876
|
+
]), A = x(() => w.value === "image" && m.value && !h.value && P(i.section.backgroundImage) === null);
|
|
877
877
|
function j() {
|
|
878
878
|
return (l ? ge(l.content.value, i.section.id, u) : null) ?? ce(l?.state.content.settings);
|
|
879
879
|
}
|
|
880
880
|
function M(e) {
|
|
881
|
-
let t =
|
|
881
|
+
let t = b.value?.verticalAlign ?? "middle";
|
|
882
882
|
if (e === "image") {
|
|
883
|
-
|
|
883
|
+
w.value !== "image" && a("update", { hero: {
|
|
884
884
|
height: "image",
|
|
885
885
|
verticalAlign: t
|
|
886
886
|
} }), N();
|
|
887
887
|
return;
|
|
888
888
|
}
|
|
889
|
-
if (e ===
|
|
889
|
+
if (e === w.value) return;
|
|
890
890
|
if (e === "fit") {
|
|
891
891
|
a("update", { hero: void 0 });
|
|
892
892
|
return;
|
|
@@ -899,7 +899,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
899
899
|
}
|
|
900
900
|
async function N() {
|
|
901
901
|
let e = i.section.backgroundImage;
|
|
902
|
-
if (!e || !m.value ||
|
|
902
|
+
if (!e || !m.value || h.value || P(e) !== null) return;
|
|
903
903
|
let t = e.url, n = await d(t), r = i.section.backgroundImage;
|
|
904
904
|
n && r && r.url === t && a("update", { backgroundImage: {
|
|
905
905
|
...r,
|
|
@@ -907,41 +907,41 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
907
907
|
} });
|
|
908
908
|
}
|
|
909
909
|
function ee(e) {
|
|
910
|
-
!
|
|
911
|
-
...
|
|
910
|
+
!b.value || !Number.isFinite(e) || e < 1 || a("update", { hero: {
|
|
911
|
+
...b.value,
|
|
912
912
|
height: Math.round(e)
|
|
913
913
|
} });
|
|
914
914
|
}
|
|
915
915
|
function F(e) {
|
|
916
|
-
|
|
917
|
-
...
|
|
916
|
+
b.value && a("update", { hero: {
|
|
917
|
+
...b.value,
|
|
918
918
|
verticalAlign: e
|
|
919
919
|
} });
|
|
920
920
|
}
|
|
921
|
-
return (e, t) => !
|
|
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
922
|
y("div", Fn, [
|
|
923
|
-
y("label", { class:
|
|
923
|
+
y("label", { class: T(C(H)) }, g(C(s).blockSettings.heroHeight), 3),
|
|
924
924
|
E(Y, {
|
|
925
925
|
options: O.value,
|
|
926
|
-
"model-value":
|
|
926
|
+
"model-value": w.value,
|
|
927
927
|
"onUpdate:modelValue": M
|
|
928
928
|
}, null, 8, ["options", "model-value"]),
|
|
929
|
-
|
|
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
930
|
]),
|
|
931
|
-
|
|
931
|
+
w.value === "fixed" ? (o(), v(X, {
|
|
932
932
|
key: 0,
|
|
933
933
|
"model-value": D.value,
|
|
934
934
|
min: 1,
|
|
935
935
|
suffix: "px",
|
|
936
936
|
testid: "section-hero-height-px",
|
|
937
937
|
"onUpdate:modelValue": ee
|
|
938
|
-
}, null, 8, ["model-value"])) :
|
|
939
|
-
|
|
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
940
|
options: k.value,
|
|
941
|
-
"model-value":
|
|
941
|
+
"model-value": b.value.verticalAlign,
|
|
942
942
|
"onUpdate:modelValue": F
|
|
943
|
-
}, null, 8, ["options", "model-value"])])) :
|
|
944
|
-
])) :
|
|
943
|
+
}, null, 8, ["options", "model-value"])])) : _("", !0)
|
|
944
|
+
])) : _("", !0);
|
|
945
945
|
}
|
|
946
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
947
|
key: 0,
|
|
@@ -955,32 +955,32 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
955
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
956
|
key: 0,
|
|
957
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__ */
|
|
958
|
+
}, ar = /* @__PURE__ */ t({
|
|
959
959
|
__name: "CommonBlockSettings",
|
|
960
960
|
props: {
|
|
961
961
|
block: {},
|
|
962
962
|
isFirstSection: { type: Boolean }
|
|
963
963
|
},
|
|
964
964
|
emits: ["update"],
|
|
965
|
-
setup(e, { emit:
|
|
966
|
-
let a = e,
|
|
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
967
|
key: "desktop",
|
|
968
968
|
icon: Pe,
|
|
969
969
|
labelKey: "showOnDesktop"
|
|
970
970
|
}, {
|
|
971
971
|
key: "mobile",
|
|
972
|
-
icon:
|
|
972
|
+
icon: Ie,
|
|
973
973
|
labelKey: "showOnMobile"
|
|
974
974
|
}];
|
|
975
975
|
function P(e) {
|
|
976
976
|
O.has(e) ? O.delete(e) : O.add(e);
|
|
977
977
|
}
|
|
978
|
-
let ee =
|
|
978
|
+
let ee = x(() => m.length > 0 || S), F = x(() => a.block.displayCondition ? !m.some((e) => e.label === a.block.displayCondition?.label) : !1);
|
|
979
979
|
function te() {
|
|
980
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
981
|
}
|
|
982
982
|
function ne() {
|
|
983
|
-
j.value.trim() && (
|
|
983
|
+
j.value.trim() && (c("update", { displayCondition: {
|
|
984
984
|
label: d.blockSettings.customCondition,
|
|
985
985
|
before: j.value.trim(),
|
|
986
986
|
after: M.value.trim()
|
|
@@ -989,16 +989,16 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
989
989
|
l(() => a.block.displayCondition, (e) => {
|
|
990
990
|
e ? F.value && (j.value = e.before, M.value = e.after ?? "") : (A.value = !1, j.value = "", M.value = "");
|
|
991
991
|
}, { immediate: !0 });
|
|
992
|
-
let I =
|
|
992
|
+
let I = x(() => {
|
|
993
993
|
let e = {};
|
|
994
|
-
for (let t of
|
|
994
|
+
for (let t of m) {
|
|
995
995
|
let n = t.group ?? "";
|
|
996
996
|
e[n] || (e[n] = []), e[n].push(t);
|
|
997
997
|
}
|
|
998
998
|
return e;
|
|
999
|
-
}), re =
|
|
999
|
+
}), re = x(() => a.block.type === "section" && k(a.block)?.applied === !0);
|
|
1000
1000
|
function ie(e, t) {
|
|
1001
|
-
|
|
1001
|
+
c("update", { styles: {
|
|
1002
1002
|
...a.block.styles,
|
|
1003
1003
|
[e]: t
|
|
1004
1004
|
} });
|
|
@@ -1011,17 +1011,17 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1011
1011
|
desktop: ae("desktop"),
|
|
1012
1012
|
mobile: ae("mobile")
|
|
1013
1013
|
};
|
|
1014
|
-
t[e] = !t[e],
|
|
1014
|
+
t[e] = !t[e], c("update", { visibility: t });
|
|
1015
1015
|
}
|
|
1016
|
-
return (t, n) => (o(),
|
|
1016
|
+
return (t, n) => (o(), f("div", { class: T(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1017
1017
|
E(Mn, {
|
|
1018
|
-
title:
|
|
1018
|
+
title: C(d).blockSettings.spacing,
|
|
1019
1019
|
open: O.has("spacing"),
|
|
1020
1020
|
"no-border": e.isFirstSection,
|
|
1021
1021
|
onToggle: n[1] ||= (e) => P("spacing")
|
|
1022
1022
|
}, {
|
|
1023
|
-
default:
|
|
1024
|
-
label:
|
|
1023
|
+
default: u(() => [E(vn, {
|
|
1024
|
+
label: C(d).blockSettings.padding,
|
|
1025
1025
|
"model-value": e.block.styles.padding,
|
|
1026
1026
|
"onUpdate:modelValue": n[0] ||= (e) => ie("padding", e)
|
|
1027
1027
|
}, null, 8, ["label", "model-value"])]),
|
|
@@ -1032,51 +1032,51 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1032
1032
|
"no-border"
|
|
1033
1033
|
]),
|
|
1034
1034
|
E(Mn, {
|
|
1035
|
-
title:
|
|
1035
|
+
title: C(d).blockSettings.background,
|
|
1036
1036
|
open: O.has("bg"),
|
|
1037
1037
|
"header-test-id": "block-settings-background",
|
|
1038
1038
|
onToggle: n[5] ||= (e) => P("bg")
|
|
1039
1039
|
}, {
|
|
1040
|
-
default:
|
|
1041
|
-
y("label", { class:
|
|
1040
|
+
default: u(() => [
|
|
1041
|
+
y("label", { class: T(C(H)) }, g(C(d).blockSettings.color), 3),
|
|
1042
1042
|
E(K, {
|
|
1043
1043
|
"model-value": e.block.styles.backgroundColor ?? "",
|
|
1044
1044
|
"allow-transparent": "",
|
|
1045
1045
|
"onUpdate:modelValue": n[2] ||= (e) => ie("backgroundColor", e)
|
|
1046
1046
|
}, null, 8, ["model-value"]),
|
|
1047
|
-
e.block.type === "section" ? (o(),
|
|
1047
|
+
e.block.type === "section" ? (o(), v(kn, {
|
|
1048
1048
|
key: 0,
|
|
1049
1049
|
class: "tpl:mt-3.5",
|
|
1050
1050
|
"model-value": e.block.backgroundImage,
|
|
1051
1051
|
"testid-prefix": "section",
|
|
1052
1052
|
measure: "",
|
|
1053
1053
|
"hero-mode": re.value,
|
|
1054
|
-
"onUpdate:modelValue": n[3] ||= (e) =>
|
|
1055
|
-
}, null, 8, ["model-value", "hero-mode"])) :
|
|
1056
|
-
e.block.type === "section" ? (o(),
|
|
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
1057
|
key: 1,
|
|
1058
1058
|
section: e.block,
|
|
1059
|
-
onUpdate: n[4] ||= (e) =>
|
|
1060
|
-
}, null, 8, ["section"])) :
|
|
1059
|
+
onUpdate: n[4] ||= (e) => c("update", e)
|
|
1060
|
+
}, null, 8, ["section"])) : _("", !0)
|
|
1061
1061
|
]),
|
|
1062
1062
|
_: 1
|
|
1063
1063
|
}, 8, ["title", "open"]),
|
|
1064
1064
|
E(Mn, {
|
|
1065
|
-
title:
|
|
1065
|
+
title: C(d).blockSettings.display,
|
|
1066
1066
|
open: O.has("display"),
|
|
1067
1067
|
onToggle: n[6] ||= (e) => P("display")
|
|
1068
1068
|
}, {
|
|
1069
|
-
default:
|
|
1069
|
+
default: u(() => [y("div", Vn, [(o(), f(w, null, i(N, (e) => E(q, {
|
|
1070
1070
|
key: e.key,
|
|
1071
1071
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1072
1072
|
"model-value": ae(e.key),
|
|
1073
|
-
label:
|
|
1073
|
+
label: C(d).blockSettings[e.labelKey],
|
|
1074
1074
|
"onUpdate:modelValue": (t) => L(e.key)
|
|
1075
1075
|
}, {
|
|
1076
|
-
default:
|
|
1076
|
+
default: u(() => [y("span", Hn, [(o(), v(D(e.icon), {
|
|
1077
1077
|
size: 14,
|
|
1078
1078
|
"stroke-width": 1.5
|
|
1079
|
-
})),
|
|
1079
|
+
})), p(" " + g(C(d).blockSettings[e.labelKey]), 1)])]),
|
|
1080
1080
|
_: 2
|
|
1081
1081
|
}, 1032, [
|
|
1082
1082
|
"model-value",
|
|
@@ -1085,16 +1085,16 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1085
1085
|
])), 64))])]),
|
|
1086
1086
|
_: 1
|
|
1087
1087
|
}, 8, ["title", "open"]),
|
|
1088
|
-
ee.value ? (o(),
|
|
1088
|
+
ee.value ? (o(), v(Mn, {
|
|
1089
1089
|
key: 0,
|
|
1090
1090
|
"header-test-id": "display-condition-section",
|
|
1091
|
-
title:
|
|
1091
|
+
title: C(d).blockSettings.displayCondition,
|
|
1092
1092
|
open: O.has("condition"),
|
|
1093
1093
|
onToggle: n[10] ||= (e) => P("condition")
|
|
1094
1094
|
}, {
|
|
1095
|
-
default:
|
|
1095
|
+
default: u(() => [y("div", Un, [y("select", {
|
|
1096
1096
|
"data-testid": "display-condition-select",
|
|
1097
|
-
class:
|
|
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
1098
|
value: A.value || F.value ? "__custom__" : e.block.displayCondition?.label ?? "",
|
|
1099
1099
|
onChange: n[7] ||= (e) => {
|
|
1100
1100
|
let t = e.target.value;
|
|
@@ -1103,48 +1103,48 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1103
1103
|
return;
|
|
1104
1104
|
}
|
|
1105
1105
|
if (A.value = !1, !t) {
|
|
1106
|
-
|
|
1106
|
+
c("update", { displayCondition: void 0 });
|
|
1107
1107
|
return;
|
|
1108
1108
|
}
|
|
1109
|
-
let n =
|
|
1110
|
-
n &&
|
|
1109
|
+
let n = C(m).find((e) => e.label === t);
|
|
1110
|
+
n && c("update", { displayCondition: n });
|
|
1111
1111
|
}
|
|
1112
1112
|
}, [
|
|
1113
|
-
y("option", Gn,
|
|
1114
|
-
(o(!0),
|
|
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
1115
|
key: 0,
|
|
1116
1116
|
label: String(t)
|
|
1117
|
-
}, [(o(!0),
|
|
1117
|
+
}, [(o(!0), f(w, null, i(e, (e) => (o(), f("option", {
|
|
1118
1118
|
key: e.label,
|
|
1119
1119
|
value: e.label
|
|
1120
|
-
},
|
|
1120
|
+
}, g(e.label), 9, qn))), 128))], 8, Kn)) : (o(!0), f(w, { key: 1 }, i(e, (e) => (o(), f("option", {
|
|
1121
1121
|
key: e.label,
|
|
1122
1122
|
value: e.label
|
|
1123
|
-
},
|
|
1124
|
-
|
|
1125
|
-
], 42, Wn), A.value || F.value ? (o(),
|
|
1126
|
-
y("div", null, [y("label", Zn,
|
|
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
1127
|
"onUpdate:modelValue": n[8] ||= (e) => j.value = e,
|
|
1128
1128
|
rows: "2",
|
|
1129
|
-
class:
|
|
1129
|
+
class: T(C(et))
|
|
1130
1130
|
}, null, 2), [[b, j.value]])]),
|
|
1131
|
-
y("div", null, [y("label", Qn,
|
|
1131
|
+
y("div", null, [y("label", Qn, g(C(d).blockSettings.customConditionAfter), 1), r(y("textarea", {
|
|
1132
1132
|
"onUpdate:modelValue": n[9] ||= (e) => M.value = e,
|
|
1133
1133
|
rows: "2",
|
|
1134
|
-
class:
|
|
1134
|
+
class: T(C(et))
|
|
1135
1135
|
}, null, 2), [[b, M.value]])]),
|
|
1136
1136
|
y("div", $n, [y("button", {
|
|
1137
1137
|
type: "button",
|
|
1138
|
-
class:
|
|
1138
|
+
class: T(C(it)),
|
|
1139
1139
|
disabled: !j.value.trim(),
|
|
1140
1140
|
onClick: ne
|
|
1141
|
-
},
|
|
1142
|
-
])) : e.block.displayCondition && !F.value ? (o(),
|
|
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
1143
|
_: 1
|
|
1144
|
-
}, 8, ["title", "open"])) :
|
|
1144
|
+
}, 8, ["title", "open"])) : _("", !0)
|
|
1145
1145
|
], 2));
|
|
1146
1146
|
}
|
|
1147
|
-
}), or = ["title"], sr = /* @__PURE__ */
|
|
1147
|
+
}), or = ["title"], sr = /* @__PURE__ */ t({
|
|
1148
1148
|
__name: "BooleanField",
|
|
1149
1149
|
props: {
|
|
1150
1150
|
field: {},
|
|
@@ -1154,9 +1154,9 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1154
1154
|
emits: ["update:modelValue"],
|
|
1155
1155
|
setup(e, { emit: t }) {
|
|
1156
1156
|
let n = t, { t: r } = B();
|
|
1157
|
-
return (t, i) => (o(),
|
|
1157
|
+
return (t, i) => (o(), f("div", {
|
|
1158
1158
|
class: "tpl:mb-3.5",
|
|
1159
|
-
title: e.readOnly ?
|
|
1159
|
+
title: e.readOnly ? C(r).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
1160
1160
|
}, [E(q, {
|
|
1161
1161
|
class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
1162
1162
|
"model-value": e.modelValue,
|
|
@@ -1165,11 +1165,11 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1165
1165
|
disabled: e.readOnly,
|
|
1166
1166
|
"onUpdate:modelValue": i[0] ||= (e) => n("update:modelValue", e)
|
|
1167
1167
|
}, {
|
|
1168
|
-
default:
|
|
1168
|
+
default: u(() => [p(g(e.field.label) + " ", 1), e.readOnly ? (o(), v(C(Ye), {
|
|
1169
1169
|
key: 0,
|
|
1170
1170
|
size: 12,
|
|
1171
1171
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
1172
|
-
})) :
|
|
1172
|
+
})) : _("", !0)]),
|
|
1173
1173
|
_: 1
|
|
1174
1174
|
}, 8, [
|
|
1175
1175
|
"model-value",
|
|
@@ -1178,7 +1178,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1178
1178
|
"disabled"
|
|
1179
1179
|
])], 8, or));
|
|
1180
1180
|
}
|
|
1181
|
-
}), cr = { class: "tpl:mb-3.5" }, lr = ["title"], ur = { class: "tpl-sr-only" }, dr = ["title"], fr = { class: "tpl-sr-only" }, Q = /* @__PURE__ */
|
|
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
1182
|
__name: "FieldWrapper",
|
|
1183
1183
|
props: {
|
|
1184
1184
|
label: {},
|
|
@@ -1187,24 +1187,24 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1187
1187
|
},
|
|
1188
1188
|
setup(e) {
|
|
1189
1189
|
let { t } = B();
|
|
1190
|
-
return (n, r) => (o(),
|
|
1191
|
-
|
|
1192
|
-
e.readOnly ? (o(),
|
|
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
1193
|
key: 0,
|
|
1194
|
-
title:
|
|
1195
|
-
}, [E(
|
|
1194
|
+
title: C(t).customBlocks.dataSource.readOnlyTooltip
|
|
1195
|
+
}, [E(C(Ye), {
|
|
1196
1196
|
size: 12,
|
|
1197
1197
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
|
|
1198
1198
|
"aria-hidden": "true"
|
|
1199
|
-
}), y("span", ur,
|
|
1200
|
-
e.required ? (o(),
|
|
1199
|
+
}), y("span", ur, g(C(t).customBlocks.dataSource.readOnlyTooltip), 1)], 8, lr)) : _("", !0),
|
|
1200
|
+
e.required ? (o(), f("span", {
|
|
1201
1201
|
key: 1,
|
|
1202
1202
|
class: "tpl:text-[var(--tpl-danger)]",
|
|
1203
|
-
title:
|
|
1204
|
-
}, [r[0] ||= y("span", { "aria-hidden": "true" }, "*", -1), y("span", fr,
|
|
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
1205
|
], 2), a(n.$slots, "default")]));
|
|
1206
1206
|
}
|
|
1207
|
-
}), pr = /* @__PURE__ */
|
|
1207
|
+
}), pr = /* @__PURE__ */ t({
|
|
1208
1208
|
__name: "ColorField",
|
|
1209
1209
|
props: {
|
|
1210
1210
|
field: {},
|
|
@@ -1213,19 +1213,19 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1213
1213
|
},
|
|
1214
1214
|
emits: ["update:modelValue"],
|
|
1215
1215
|
setup(e, { emit: t }) {
|
|
1216
|
-
let
|
|
1217
|
-
return (t, n) => (o(),
|
|
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
1218
|
label: e.field.label,
|
|
1219
1219
|
required: e.field.required,
|
|
1220
1220
|
"read-only": e.readOnly
|
|
1221
1221
|
}, {
|
|
1222
|
-
default:
|
|
1222
|
+
default: u(() => [E(K, {
|
|
1223
1223
|
"model-value": e.modelValue,
|
|
1224
1224
|
placeholder: e.field.placeholder,
|
|
1225
1225
|
disabled: e.readOnly,
|
|
1226
|
-
presets:
|
|
1227
|
-
"allow-custom":
|
|
1228
|
-
title: 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
1229
|
"onUpdate:modelValue": n[0] ||= (e) => i("update:modelValue", e)
|
|
1230
1230
|
}, null, 8, [
|
|
1231
1231
|
"model-value",
|
|
@@ -1246,7 +1246,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1246
1246
|
"value",
|
|
1247
1247
|
"placeholder",
|
|
1248
1248
|
"title"
|
|
1249
|
-
], hr = ["value", "placeholder"], gr = /* @__PURE__ */
|
|
1249
|
+
], hr = ["value", "placeholder"], gr = /* @__PURE__ */ t({
|
|
1250
1250
|
__name: "ImageField",
|
|
1251
1251
|
props: {
|
|
1252
1252
|
field: {},
|
|
@@ -1254,50 +1254,50 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1254
1254
|
readOnly: { type: Boolean }
|
|
1255
1255
|
},
|
|
1256
1256
|
emits: ["update:modelValue"],
|
|
1257
|
-
setup(e, { emit:
|
|
1258
|
-
let
|
|
1259
|
-
target:
|
|
1260
|
-
blocked: () => !!
|
|
1261
|
-
apply: (e) =>
|
|
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
1262
|
});
|
|
1263
|
-
return (t, n) => (o(),
|
|
1263
|
+
return (t, n) => (o(), v(Q, {
|
|
1264
1264
|
label: e.field.label,
|
|
1265
1265
|
required: e.field.required,
|
|
1266
1266
|
"read-only": e.readOnly
|
|
1267
1267
|
}, {
|
|
1268
|
-
default:
|
|
1268
|
+
default: u(() => [y("div", {
|
|
1269
1269
|
ref_key: "dropZoneRef",
|
|
1270
|
-
ref:
|
|
1270
|
+
ref: a,
|
|
1271
1271
|
class: "tpl:relative"
|
|
1272
1272
|
}, [
|
|
1273
|
-
|
|
1273
|
+
C(l) ? (o(), v(le, {
|
|
1274
1274
|
key: 0,
|
|
1275
|
-
uploading:
|
|
1276
|
-
}, null, 8, ["uploading"])) :
|
|
1277
|
-
e.readOnly ? (o(),
|
|
1275
|
+
uploading: C(c)
|
|
1276
|
+
}, null, 8, ["uploading"])) : _("", !0),
|
|
1277
|
+
e.readOnly ? (o(), f("input", {
|
|
1278
1278
|
key: 1,
|
|
1279
1279
|
type: "url",
|
|
1280
|
-
class:
|
|
1280
|
+
class: T([C(G), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1281
1281
|
value: e.modelValue,
|
|
1282
1282
|
placeholder: e.field.placeholder || "https://...",
|
|
1283
1283
|
disabled: "",
|
|
1284
|
-
title:
|
|
1285
|
-
}, null, 10, mr)) : (o(),
|
|
1284
|
+
title: C(i).customBlocks.dataSource.readOnlyTooltip
|
|
1285
|
+
}, null, 10, mr)) : (o(), f("input", {
|
|
1286
1286
|
key: 2,
|
|
1287
1287
|
type: "url",
|
|
1288
|
-
class:
|
|
1288
|
+
class: T(C(G)),
|
|
1289
1289
|
value: e.modelValue,
|
|
1290
1290
|
placeholder: e.field.placeholder || "https://...",
|
|
1291
|
-
onInput: n[0] ||= (e) =>
|
|
1291
|
+
onInput: n[0] ||= (e) => r("update:modelValue", e.target.value)
|
|
1292
1292
|
}, null, 42, hr)),
|
|
1293
|
-
|
|
1293
|
+
C(s) && !e.readOnly ? (o(), f("button", {
|
|
1294
1294
|
key: 3,
|
|
1295
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) =>
|
|
1297
|
-
}, [E(
|
|
1296
|
+
onClick: n[1] ||= (e) => C(d)()
|
|
1297
|
+
}, [E(C(ze), {
|
|
1298
1298
|
size: 14,
|
|
1299
1299
|
"stroke-width": 1.5
|
|
1300
|
-
}),
|
|
1300
|
+
}), p(" " + g(C(i).image.browseMedia), 1)])) : _("", !0)
|
|
1301
1301
|
], 512)]),
|
|
1302
1302
|
_: 1
|
|
1303
1303
|
}, 8, [
|
|
@@ -1314,7 +1314,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1314
1314
|
"step",
|
|
1315
1315
|
"disabled",
|
|
1316
1316
|
"title"
|
|
1317
|
-
], vr = /* @__PURE__ */
|
|
1317
|
+
], vr = /* @__PURE__ */ t({
|
|
1318
1318
|
__name: "NumberField",
|
|
1319
1319
|
props: {
|
|
1320
1320
|
field: {},
|
|
@@ -1324,21 +1324,21 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1324
1324
|
emits: ["update:modelValue"],
|
|
1325
1325
|
setup(e, { emit: t }) {
|
|
1326
1326
|
let n = t, { t: r } = B();
|
|
1327
|
-
return (t, i) => (o(),
|
|
1327
|
+
return (t, i) => (o(), v(Q, {
|
|
1328
1328
|
label: e.field.label,
|
|
1329
1329
|
required: e.field.required,
|
|
1330
1330
|
"read-only": e.readOnly
|
|
1331
1331
|
}, {
|
|
1332
|
-
default:
|
|
1332
|
+
default: u(() => [y("input", {
|
|
1333
1333
|
type: "number",
|
|
1334
|
-
class:
|
|
1334
|
+
class: T([C(G), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1335
1335
|
value: e.modelValue,
|
|
1336
1336
|
placeholder: e.field.placeholder,
|
|
1337
1337
|
min: e.field.min,
|
|
1338
1338
|
max: e.field.max,
|
|
1339
1339
|
step: e.field.step,
|
|
1340
1340
|
disabled: e.readOnly,
|
|
1341
|
-
title: e.readOnly ?
|
|
1341
|
+
title: e.readOnly ? C(r).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1342
1342
|
onInput: i[0] ||= (t) => !e.readOnly && n("update:modelValue", Number(t.target.value))
|
|
1343
1343
|
}, null, 42, _r)]),
|
|
1344
1344
|
_: 1
|
|
@@ -1354,7 +1354,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1354
1354
|
}, wr = {
|
|
1355
1355
|
key: 2,
|
|
1356
1356
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1357
|
-
}, Tr = /* @__PURE__ */
|
|
1357
|
+
}, Tr = /* @__PURE__ */ t({
|
|
1358
1358
|
__name: "RepeatableField",
|
|
1359
1359
|
props: {
|
|
1360
1360
|
field: {},
|
|
@@ -1363,66 +1363,66 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1363
1363
|
},
|
|
1364
1364
|
emits: ["update:modelValue"],
|
|
1365
1365
|
setup(e, { emit: t }) {
|
|
1366
|
-
let n = e, r = t, { t: a, format: s } = B(),
|
|
1367
|
-
function
|
|
1368
|
-
if (!
|
|
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
1369
|
let e = {};
|
|
1370
1370
|
for (let t of n.field.fields) e[t.key] = t.default ?? "";
|
|
1371
|
-
r("update:modelValue", [...
|
|
1371
|
+
r("update:modelValue", [...c.value, e]);
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function h(e) {
|
|
1374
1374
|
if (!d.value || n.readOnly) return;
|
|
1375
|
-
let t = [...
|
|
1375
|
+
let t = [...c.value];
|
|
1376
1376
|
t.splice(e, 1), r("update:modelValue", t);
|
|
1377
1377
|
}
|
|
1378
|
-
function
|
|
1379
|
-
let i =
|
|
1378
|
+
function b(e, t, n) {
|
|
1379
|
+
let i = c.value.map((r, i) => i === e ? {
|
|
1380
1380
|
...r,
|
|
1381
1381
|
[t]: n
|
|
1382
1382
|
} : r);
|
|
1383
1383
|
r("update:modelValue", i);
|
|
1384
1384
|
}
|
|
1385
|
-
return (t, n) => (o(),
|
|
1385
|
+
return (t, n) => (o(), v(Q, {
|
|
1386
1386
|
label: e.field.label,
|
|
1387
1387
|
required: e.field.required,
|
|
1388
1388
|
"read-only": e.readOnly
|
|
1389
1389
|
}, {
|
|
1390
|
-
default:
|
|
1391
|
-
(o(!0),
|
|
1390
|
+
default: u(() => [y("div", yr, [
|
|
1391
|
+
(o(!0), f(w, null, i(c.value, (t, n) => (o(), f("div", {
|
|
1392
1392
|
key: `${e.field.key}-${n}`,
|
|
1393
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, " #" +
|
|
1394
|
+
}, [y("div", br, [y("span", xr, " #" + g(n + 1), 1), d.value && !e.readOnly ? (o(), f("button", {
|
|
1395
1395
|
key: 0,
|
|
1396
1396
|
type: "button",
|
|
1397
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:
|
|
1399
|
-
onClick: (e) =>
|
|
1400
|
-
}, [E(
|
|
1398
|
+
title: C(a).customBlocks.fields.removeItem,
|
|
1399
|
+
onClick: (e) => h(n)
|
|
1400
|
+
}, [E(C(He), {
|
|
1401
1401
|
size: 12,
|
|
1402
1402
|
"stroke-width": 2
|
|
1403
|
-
})], 8, Sr)) :
|
|
1403
|
+
})], 8, Sr)) : _("", !0)]), (o(!0), f(w, null, i(e.field.fields, (r) => (o(), v(D(C(Pr)(r.type)), {
|
|
1404
1404
|
key: r.key,
|
|
1405
1405
|
field: r,
|
|
1406
1406
|
"model-value": t[r.key],
|
|
1407
1407
|
"read-only": e.readOnly,
|
|
1408
|
-
"onUpdate:modelValue": (e) =>
|
|
1408
|
+
"onUpdate:modelValue": (e) => b(n, r.key, e)
|
|
1409
1409
|
}, null, 8, [
|
|
1410
1410
|
"field",
|
|
1411
1411
|
"model-value",
|
|
1412
1412
|
"read-only",
|
|
1413
1413
|
"onUpdate:modelValue"
|
|
1414
1414
|
]))), 128))]))), 128)),
|
|
1415
|
-
|
|
1415
|
+
l.value && !e.readOnly ? (o(), f("button", {
|
|
1416
1416
|
key: 0,
|
|
1417
1417
|
type: "button",
|
|
1418
|
-
class:
|
|
1419
|
-
onClick:
|
|
1420
|
-
}, [E(
|
|
1418
|
+
class: T(C(nt)),
|
|
1419
|
+
onClick: m
|
|
1420
|
+
}, [E(C(V), {
|
|
1421
1421
|
size: 14,
|
|
1422
1422
|
"stroke-width": 2
|
|
1423
|
-
}),
|
|
1424
|
-
!
|
|
1425
|
-
!d.value && !e.readOnly ? (o(),
|
|
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
1426
|
])]),
|
|
1427
1427
|
_: 1
|
|
1428
1428
|
}, 8, [
|
|
@@ -1435,7 +1435,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1435
1435
|
"value",
|
|
1436
1436
|
"disabled",
|
|
1437
1437
|
"title"
|
|
1438
|
-
], Dr = ["value"], Or = /* @__PURE__ */
|
|
1438
|
+
], Dr = ["value"], Or = /* @__PURE__ */ t({
|
|
1439
1439
|
__name: "SelectField",
|
|
1440
1440
|
props: {
|
|
1441
1441
|
field: {},
|
|
@@ -1445,21 +1445,21 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1445
1445
|
emits: ["update:modelValue"],
|
|
1446
1446
|
setup(e, { emit: t }) {
|
|
1447
1447
|
let n = t, { t: r } = B();
|
|
1448
|
-
return (t, a) => (o(),
|
|
1448
|
+
return (t, a) => (o(), v(Q, {
|
|
1449
1449
|
label: e.field.label,
|
|
1450
1450
|
required: e.field.required,
|
|
1451
1451
|
"read-only": e.readOnly
|
|
1452
1452
|
}, {
|
|
1453
|
-
default:
|
|
1454
|
-
class:
|
|
1453
|
+
default: u(() => [y("select", {
|
|
1454
|
+
class: T([C(G), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1455
1455
|
value: e.modelValue,
|
|
1456
1456
|
disabled: e.readOnly,
|
|
1457
|
-
title: e.readOnly ?
|
|
1457
|
+
title: e.readOnly ? C(r).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1458
1458
|
onChange: a[0] ||= (t) => !e.readOnly && n("update:modelValue", t.target.value)
|
|
1459
|
-
}, [(o(!0),
|
|
1459
|
+
}, [(o(!0), f(w, null, i(e.field.options, (e) => (o(), f("option", {
|
|
1460
1460
|
key: e.value,
|
|
1461
1461
|
value: e.value
|
|
1462
|
-
},
|
|
1462
|
+
}, g(e.label), 9, Dr))), 128))], 42, Er)]),
|
|
1463
1463
|
_: 1
|
|
1464
1464
|
}, 8, [
|
|
1465
1465
|
"label",
|
|
@@ -1471,7 +1471,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1471
1471
|
"value",
|
|
1472
1472
|
"placeholder",
|
|
1473
1473
|
"title"
|
|
1474
|
-
], Ar = /* @__PURE__ */
|
|
1474
|
+
], Ar = /* @__PURE__ */ t({
|
|
1475
1475
|
__name: "TextField",
|
|
1476
1476
|
props: {
|
|
1477
1477
|
field: {},
|
|
@@ -1481,20 +1481,20 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1481
1481
|
emits: ["update:modelValue"],
|
|
1482
1482
|
setup(e, { emit: t }) {
|
|
1483
1483
|
let n = t, { t: r } = B();
|
|
1484
|
-
return (t, i) => (o(),
|
|
1484
|
+
return (t, i) => (o(), v(Q, {
|
|
1485
1485
|
label: e.field.label,
|
|
1486
1486
|
required: e.field.required,
|
|
1487
1487
|
"read-only": e.readOnly
|
|
1488
1488
|
}, {
|
|
1489
|
-
default:
|
|
1489
|
+
default: u(() => [e.readOnly ? (o(), f("input", {
|
|
1490
1490
|
key: 0,
|
|
1491
1491
|
type: "text",
|
|
1492
|
-
class:
|
|
1492
|
+
class: T([C(G), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1493
1493
|
value: e.modelValue,
|
|
1494
1494
|
placeholder: e.field.placeholder,
|
|
1495
1495
|
disabled: "",
|
|
1496
|
-
title:
|
|
1497
|
-
}, null, 10, kr)) : (o(),
|
|
1496
|
+
title: C(r).customBlocks.dataSource.readOnlyTooltip
|
|
1497
|
+
}, null, 10, kr)) : (o(), v(J, {
|
|
1498
1498
|
key: 1,
|
|
1499
1499
|
"model-value": e.modelValue,
|
|
1500
1500
|
placeholder: e.field.placeholder,
|
|
@@ -1513,7 +1513,7 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1513
1513
|
"title"
|
|
1514
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
1515
|
text: Ar,
|
|
1516
|
-
textarea: /* @__PURE__ */
|
|
1516
|
+
textarea: /* @__PURE__ */ t({
|
|
1517
1517
|
__name: "TextareaField",
|
|
1518
1518
|
props: {
|
|
1519
1519
|
field: {},
|
|
@@ -1523,20 +1523,20 @@ var Sn = { class: "tpl:space-y-3.5" }, Cn = ["data-testid"], wn = ["data-testid"
|
|
|
1523
1523
|
emits: ["update:modelValue"],
|
|
1524
1524
|
setup(e, { emit: t }) {
|
|
1525
1525
|
let n = t, { t: r } = B();
|
|
1526
|
-
return (t, i) => (o(),
|
|
1526
|
+
return (t, i) => (o(), v(Q, {
|
|
1527
1527
|
label: e.field.label,
|
|
1528
1528
|
required: e.field.required,
|
|
1529
1529
|
"read-only": e.readOnly
|
|
1530
1530
|
}, {
|
|
1531
|
-
default:
|
|
1531
|
+
default: u(() => [e.readOnly ? (o(), f("textarea", {
|
|
1532
1532
|
key: 0,
|
|
1533
1533
|
value: e.modelValue,
|
|
1534
1534
|
placeholder: e.field.placeholder,
|
|
1535
1535
|
rows: "3",
|
|
1536
1536
|
disabled: "",
|
|
1537
|
-
title:
|
|
1538
|
-
class:
|
|
1539
|
-
}, null, 8, jr)) : (o(),
|
|
1537
|
+
title: C(r).customBlocks.dataSource.readOnlyTooltip,
|
|
1538
|
+
class: T(Mr)
|
|
1539
|
+
}, null, 8, jr)) : (o(), v(ot, {
|
|
1540
1540
|
key: 1,
|
|
1541
1541
|
"model-value": e.modelValue,
|
|
1542
1542
|
placeholder: e.field.placeholder,
|
|
@@ -1579,12 +1579,12 @@ var Fr = {
|
|
|
1579
1579
|
}, Hr = {
|
|
1580
1580
|
key: 2,
|
|
1581
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__ */
|
|
1582
|
+
}, Ur = /* @__PURE__ */ t({
|
|
1583
1583
|
__name: "CustomBlockToolbar",
|
|
1584
1584
|
props: { block: {} },
|
|
1585
1585
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
1586
1586
|
setup(e, { emit: t }) {
|
|
1587
|
-
let
|
|
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
1588
|
definition: l,
|
|
1589
1589
|
block: u,
|
|
1590
1590
|
onUpdate: (e, t) => {
|
|
@@ -1592,31 +1592,31 @@ var Fr = {
|
|
|
1592
1592
|
}
|
|
1593
1593
|
});
|
|
1594
1594
|
function T(e) {
|
|
1595
|
-
return e.readOnly === !0 && b.value && !!
|
|
1595
|
+
return e.readOnly === !0 && b.value && !!r.block.dataSourceFetched;
|
|
1596
1596
|
}
|
|
1597
1597
|
function O(e, t) {
|
|
1598
1598
|
a("updateFieldValues", {
|
|
1599
|
-
...
|
|
1599
|
+
...r.block.fieldValues,
|
|
1600
1600
|
[e]: t
|
|
1601
1601
|
});
|
|
1602
1602
|
}
|
|
1603
|
-
return (t, n) => l.value ? (o(),
|
|
1604
|
-
l.value.description ? (o(),
|
|
1605
|
-
|
|
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
1606
|
key: 0,
|
|
1607
1607
|
type: "button",
|
|
1608
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) =>
|
|
1610
|
-
},
|
|
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
1611
|
key: 1,
|
|
1612
1612
|
type: "button",
|
|
1613
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) =>
|
|
1615
|
-
}, [E(
|
|
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
1616
|
size: 14,
|
|
1617
1617
|
class: "tpl:shrink-0"
|
|
1618
|
-
}),
|
|
1619
|
-
(o(!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
1620
|
key: t.key,
|
|
1621
1621
|
field: t,
|
|
1622
1622
|
"model-value": e.block.fieldValues[t.key],
|
|
@@ -1628,9 +1628,9 @@ var Fr = {
|
|
|
1628
1628
|
"read-only",
|
|
1629
1629
|
"onUpdate:modelValue"
|
|
1630
1630
|
]))), 128))
|
|
1631
|
-
])) : (o(),
|
|
1631
|
+
])) : (o(), f("div", Fr, [y("p", Ir, g(C(s).customBlocks.toolbar.noDefinition), 1)]));
|
|
1632
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__ */
|
|
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
1634
|
__name: "DividerToolbar",
|
|
1635
1635
|
props: { block: {} },
|
|
1636
1636
|
emits: ["update"],
|
|
@@ -1639,119 +1639,119 @@ var Fr = {
|
|
|
1639
1639
|
function i(e, t) {
|
|
1640
1640
|
n("update", { [e]: t });
|
|
1641
1641
|
}
|
|
1642
|
-
return (t, n) => (o(),
|
|
1643
|
-
y("div", Wr, [y("label", { class:
|
|
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
1644
|
options: [
|
|
1645
1645
|
{
|
|
1646
1646
|
value: "solid",
|
|
1647
|
-
label:
|
|
1647
|
+
label: C(r).divider.solid
|
|
1648
1648
|
},
|
|
1649
1649
|
{
|
|
1650
1650
|
value: "dashed",
|
|
1651
|
-
label:
|
|
1651
|
+
label: C(r).divider.dashed
|
|
1652
1652
|
},
|
|
1653
1653
|
{
|
|
1654
1654
|
value: "dotted",
|
|
1655
|
-
label:
|
|
1655
|
+
label: C(r).divider.dotted
|
|
1656
1656
|
}
|
|
1657
1657
|
],
|
|
1658
1658
|
"model-value": e.block.lineStyle,
|
|
1659
1659
|
"onUpdate:modelValue": n[0] ||= (e) => i("lineStyle", e)
|
|
1660
1660
|
}, null, 8, ["options", "model-value"])]),
|
|
1661
|
-
y("div", Gr, [y("label", { class:
|
|
1661
|
+
y("div", Gr, [y("label", { class: T(C(H)) }, g(C(r).divider.color), 3), E(K, {
|
|
1662
1662
|
"model-value": e.block.color,
|
|
1663
1663
|
"onUpdate:modelValue": n[1] ||= (e) => i("color", e)
|
|
1664
1664
|
}, null, 8, ["model-value"])]),
|
|
1665
|
-
y("div", Kr, [y("label", { class:
|
|
1665
|
+
y("div", Kr, [y("label", { class: T(C(H)) }, g(C(r).divider.thickness), 3), y("div", qr, [y("input", {
|
|
1666
1666
|
type: "number",
|
|
1667
|
-
class:
|
|
1667
|
+
class: T(C(W)),
|
|
1668
1668
|
value: e.block.thickness,
|
|
1669
1669
|
min: "1",
|
|
1670
1670
|
max: "10",
|
|
1671
1671
|
onInput: n[2] ||= (e) => i("thickness", Number(e.target.value))
|
|
1672
|
-
}, null, 42, Jr), y("span", { class:
|
|
1672
|
+
}, null, 42, Jr), y("span", { class: T(C(U)) }, "px", 2)])])
|
|
1673
1673
|
], 64));
|
|
1674
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__ */
|
|
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
1676
|
__name: "HtmlToolbar",
|
|
1677
1677
|
props: { block: {} },
|
|
1678
1678
|
emits: ["update"],
|
|
1679
1679
|
setup(e, { emit: t }) {
|
|
1680
1680
|
let n = t, { t: r } = B();
|
|
1681
|
-
return (t, i) => (o(),
|
|
1682
|
-
y("label", { class:
|
|
1681
|
+
return (t, i) => (o(), f("div", Xr, [
|
|
1682
|
+
y("label", { class: T(C(H)) }, g(C(r).html.content), 3),
|
|
1683
1683
|
y("textarea", {
|
|
1684
1684
|
value: e.block.content,
|
|
1685
1685
|
placeholder: "<div>...</div>",
|
|
1686
1686
|
rows: "10",
|
|
1687
|
-
class:
|
|
1687
|
+
class: T(C(et)),
|
|
1688
1688
|
onInput: i[0] ||= (e) => n("update", { content: e.target.value })
|
|
1689
1689
|
}, null, 42, Zr),
|
|
1690
|
-
y("p", Qr, [E(
|
|
1690
|
+
y("p", Qr, [E(C(Ue), {
|
|
1691
1691
|
size: 12,
|
|
1692
1692
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
1693
|
-
}),
|
|
1693
|
+
}), p(" " + g(C(r).html.sanitizationHint), 1)])
|
|
1694
1694
|
]));
|
|
1695
1695
|
}
|
|
1696
1696
|
});
|
|
1697
1697
|
// src/composables/useImageAspectLock.ts
|
|
1698
1698
|
function ei(e) {
|
|
1699
|
-
let
|
|
1699
|
+
let t = h(!1), n = h(null);
|
|
1700
1700
|
l(() => e.block().id, () => {
|
|
1701
|
-
|
|
1701
|
+
t.value = !1, n.value = null;
|
|
1702
1702
|
});
|
|
1703
|
-
let
|
|
1703
|
+
let r = x(() => fe(e.block()) ?? e.measured()), i = x(() => {
|
|
1704
1704
|
let t = e.block().width;
|
|
1705
1705
|
return t === "full" ? e.room() : t;
|
|
1706
|
-
}),
|
|
1707
|
-
let e =
|
|
1706
|
+
}), a = x(() => {
|
|
1707
|
+
let e = r.value, t = i.value;
|
|
1708
1708
|
return !e || t === null ? null : Math.round(t * e.height / e.width);
|
|
1709
|
-
}),
|
|
1709
|
+
}), o = x(() => r.value !== null), s = x(() => {
|
|
1710
1710
|
let t = e.block().height;
|
|
1711
|
-
return t === void 0 ||
|
|
1712
|
-
}),
|
|
1713
|
-
function
|
|
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
1714
|
if (fe(e.block())) return {};
|
|
1715
1715
|
let t = e.measured();
|
|
1716
1716
|
return t ? he(t) : {};
|
|
1717
1717
|
}
|
|
1718
|
-
function
|
|
1719
|
-
if (
|
|
1720
|
-
if (
|
|
1721
|
-
let i = { ...
|
|
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
1722
|
return e.block().height !== void 0 && (i.height = void 0), Object.keys(i).length > 0 ? i : null;
|
|
1723
1723
|
}
|
|
1724
|
-
function
|
|
1725
|
-
return
|
|
1724
|
+
function f(e) {
|
|
1725
|
+
return n.value = null, c.value ? {
|
|
1726
1726
|
width: e,
|
|
1727
1727
|
height: void 0,
|
|
1728
|
-
...
|
|
1728
|
+
...u()
|
|
1729
1729
|
} : { width: e };
|
|
1730
1730
|
}
|
|
1731
|
-
function
|
|
1732
|
-
let
|
|
1733
|
-
if (!
|
|
1734
|
-
let a = Math.round(t *
|
|
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
1735
|
if (a < 1) return null;
|
|
1736
1736
|
let o = e.room();
|
|
1737
|
-
return o !== null && a >= o ? (
|
|
1737
|
+
return o !== null && a >= o ? (n.value = Math.round(o * i.height / i.width), {
|
|
1738
1738
|
width: "full",
|
|
1739
1739
|
height: void 0,
|
|
1740
|
-
...
|
|
1741
|
-
}) : (
|
|
1740
|
+
...u()
|
|
1741
|
+
}) : (n.value = null, {
|
|
1742
1742
|
width: a,
|
|
1743
1743
|
height: void 0,
|
|
1744
|
-
...
|
|
1744
|
+
...u()
|
|
1745
1745
|
});
|
|
1746
1746
|
}
|
|
1747
1747
|
return {
|
|
1748
|
-
available:
|
|
1749
|
-
locked:
|
|
1750
|
-
derivedHeight:
|
|
1751
|
-
cappedHeight:
|
|
1752
|
-
setLocked:
|
|
1753
|
-
widthUpdates:
|
|
1754
|
-
heightUpdates:
|
|
1748
|
+
available: o,
|
|
1749
|
+
locked: c,
|
|
1750
|
+
derivedHeight: a,
|
|
1751
|
+
cappedHeight: n,
|
|
1752
|
+
setLocked: d,
|
|
1753
|
+
widthUpdates: f,
|
|
1754
|
+
heightUpdates: p
|
|
1755
1755
|
};
|
|
1756
1756
|
}
|
|
1757
1757
|
// src/components/toolbar/ImageToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1776,29 +1776,29 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
1776
1776
|
}, yi = ["value"], bi = { value: "auto" }, xi = { value: "custom" }, Si = {
|
|
1777
1777
|
key: 4,
|
|
1778
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__ */
|
|
1779
|
+
}, Ci = ["value"], wi = { class: "tpl:mb-3.5" }, Ti = { class: "tpl:mb-3.5" }, Ei = 350, Di = 200, Oi = /* @__PURE__ */ t({
|
|
1780
1780
|
__name: "ImageToolbar",
|
|
1781
1781
|
props: { block: {} },
|
|
1782
1782
|
emits: ["update"],
|
|
1783
|
-
setup(e, { emit:
|
|
1784
|
-
let
|
|
1785
|
-
|
|
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
1786
|
}, 1e3, { immediate: !1 }), D = [
|
|
1787
1787
|
300,
|
|
1788
1788
|
400,
|
|
1789
1789
|
500
|
|
1790
|
-
], O =
|
|
1791
|
-
let e =
|
|
1790
|
+
], O = x(() => {
|
|
1791
|
+
let e = r.block.width;
|
|
1792
1792
|
return e === "full" ? "full" : D.includes(e) ? String(e) : "custom";
|
|
1793
|
-
}), k =
|
|
1793
|
+
}), k = x(() => typeof r.block.height == "number" ? "custom" : "auto");
|
|
1794
1794
|
function A(e, t) {
|
|
1795
|
-
|
|
1795
|
+
i("update", { [e]: t });
|
|
1796
1796
|
}
|
|
1797
1797
|
function j(e) {
|
|
1798
1798
|
if (e === "custom") {
|
|
1799
|
-
let e =
|
|
1800
|
-
(typeof e != "number" || D.includes(e)) &&
|
|
1801
|
-
} else
|
|
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
1802
|
}
|
|
1803
1803
|
function N(e) {
|
|
1804
1804
|
A("height", e === "custom" ? Di : void 0);
|
|
@@ -1812,61 +1812,61 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
1812
1812
|
}
|
|
1813
1813
|
function F(e) {
|
|
1814
1814
|
let t = Number(e);
|
|
1815
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
1815
|
+
!Number.isFinite(t) || t <= 0 || i("update", R.widthUpdates(t));
|
|
1816
1816
|
}
|
|
1817
1817
|
function te(e) {
|
|
1818
|
-
e !==
|
|
1818
|
+
e !== r.block.src && i("update", {
|
|
1819
1819
|
src: e,
|
|
1820
1820
|
...he(null)
|
|
1821
1821
|
});
|
|
1822
1822
|
}
|
|
1823
1823
|
function ne(e) {
|
|
1824
|
-
|
|
1824
|
+
i("update", {
|
|
1825
1825
|
src: e.url,
|
|
1826
1826
|
...he(de(e.width, e.height))
|
|
1827
|
-
}), e.alt && (A("alt", e.alt),
|
|
1827
|
+
}), e.alt && (A("alt", e.alt), b.value = !0), m.value = !0, S();
|
|
1828
1828
|
}
|
|
1829
|
-
let I =
|
|
1829
|
+
let I = h(), re = x(() => L(r.block.src, c)), { canBrowse: ae, isUploading: oe, showOverlay: se, openMediaBrowser: ce } = me({
|
|
1830
1830
|
target: I,
|
|
1831
1831
|
blocked: re,
|
|
1832
1832
|
apply: ne
|
|
1833
|
-
}), ue = ye(() => re.value || !
|
|
1834
|
-
block: () =>
|
|
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
1835
|
room: () => _e.value,
|
|
1836
1836
|
measured: () => ge.value
|
|
1837
1837
|
}), { available: ve, locked: z, derivedHeight: xe, cappedHeight: Ce } = R;
|
|
1838
1838
|
function Te() {
|
|
1839
1839
|
let e = R.setLocked(!z.value);
|
|
1840
|
-
e &&
|
|
1840
|
+
e && i("update", e);
|
|
1841
1841
|
}
|
|
1842
|
-
let Ee =
|
|
1842
|
+
let Ee = h(null);
|
|
1843
1843
|
function Oe(e) {
|
|
1844
1844
|
Ee.value = e;
|
|
1845
1845
|
let t = R.heightUpdates(Number(e));
|
|
1846
|
-
t &&
|
|
1846
|
+
t && i("update", t);
|
|
1847
1847
|
}
|
|
1848
|
-
return (t, n) => (o(),
|
|
1849
|
-
y("div", ti, [y("label", { class:
|
|
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
1850
|
ref_key: "dropZoneRef",
|
|
1851
1851
|
ref: I,
|
|
1852
1852
|
class: "tpl:relative"
|
|
1853
1853
|
}, [
|
|
1854
|
-
|
|
1854
|
+
C(se) ? (o(), v(le, {
|
|
1855
1855
|
key: 0,
|
|
1856
|
-
uploading:
|
|
1857
|
-
}, null, 8, ["uploading"])) :
|
|
1856
|
+
uploading: C(oe)
|
|
1857
|
+
}, null, 8, ["uploading"])) : _("", !0),
|
|
1858
1858
|
E(J, {
|
|
1859
1859
|
"model-value": e.block.src,
|
|
1860
1860
|
type: "url",
|
|
1861
|
-
placeholder:
|
|
1862
|
-
pulse:
|
|
1861
|
+
placeholder: C(a).image.imageUrlPlaceholder,
|
|
1862
|
+
pulse: m.value,
|
|
1863
1863
|
"onUpdate:modelValue": n[0] ||= (e) => te(e)
|
|
1864
1864
|
}, null, 8, [
|
|
1865
1865
|
"model-value",
|
|
1866
1866
|
"placeholder",
|
|
1867
1867
|
"pulse"
|
|
1868
1868
|
]),
|
|
1869
|
-
|
|
1869
|
+
C(ae) ? (o(), f("button", {
|
|
1870
1870
|
key: 1,
|
|
1871
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
1872
|
style: {
|
|
@@ -1874,27 +1874,27 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
1874
1874
|
color: "var(--tpl-primary)",
|
|
1875
1875
|
"background-color": "var(--tpl-bg)"
|
|
1876
1876
|
},
|
|
1877
|
-
onClick: n[1] ||= (...e) =>
|
|
1878
|
-
}, [E(
|
|
1877
|
+
onClick: n[1] ||= (...e) => C(ce) && C(ce)(...e)
|
|
1878
|
+
}, [E(C(ze), {
|
|
1879
1879
|
size: 14,
|
|
1880
1880
|
"stroke-width": 1.5
|
|
1881
|
-
}),
|
|
1881
|
+
}), p(" " + g(C(a).image.browseMedia), 1)])) : _("", !0)
|
|
1882
1882
|
], 512)]),
|
|
1883
|
-
|
|
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
1884
|
type: "url",
|
|
1885
|
-
class:
|
|
1885
|
+
class: T(C(G)),
|
|
1886
1886
|
value: e.block.placeholderUrl || "",
|
|
1887
|
-
placeholder:
|
|
1888
|
-
title:
|
|
1887
|
+
placeholder: C(a).image.placeholderUrlPlaceholder,
|
|
1888
|
+
title: C(a).image.placeholderUrlTooltip,
|
|
1889
1889
|
onInput: n[2] ||= (e) => A("placeholderUrl", e.target.value)
|
|
1890
|
-
}, null, 42, ii)])) :
|
|
1890
|
+
}, null, 42, ii)])) : _("", !0),
|
|
1891
1891
|
y("div", ai, [
|
|
1892
|
-
y("label", { class:
|
|
1892
|
+
y("label", { class: T(C(H)) }, g(C(a).image.altText), 3),
|
|
1893
1893
|
E(J, {
|
|
1894
1894
|
"model-value": e.block.alt,
|
|
1895
1895
|
type: "text",
|
|
1896
|
-
placeholder:
|
|
1897
|
-
pulse:
|
|
1896
|
+
placeholder: C(a).image.altTextPlaceholder,
|
|
1897
|
+
pulse: b.value,
|
|
1898
1898
|
disabled: e.block.decorative === !0,
|
|
1899
1899
|
"onUpdate:modelValue": n[3] ||= (e) => A("alt", e)
|
|
1900
1900
|
}, null, 8, [
|
|
@@ -1906,79 +1906,79 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
1906
1906
|
E(q, {
|
|
1907
1907
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
1908
1908
|
"model-value": e.block.decorative === !0,
|
|
1909
|
-
label:
|
|
1909
|
+
label: C(a).image.decorative,
|
|
1910
1910
|
"onUpdate:modelValue": n[4] ||= (e) => A("decorative", e)
|
|
1911
1911
|
}, {
|
|
1912
|
-
default:
|
|
1912
|
+
default: u(() => [y("span", null, [p(g(C(a).image.decorative) + " ", 1), y("span", oi, g(C(a).image.decorativeHint), 1)])]),
|
|
1913
1913
|
_: 1
|
|
1914
1914
|
}, 8, ["model-value", "label"])
|
|
1915
1915
|
]),
|
|
1916
1916
|
y("div", si, [
|
|
1917
|
-
y("label", { class:
|
|
1917
|
+
y("label", { class: T(C(H)) }, g(C(a).image.width), 3),
|
|
1918
1918
|
y("select", {
|
|
1919
|
-
class:
|
|
1919
|
+
class: T(C(G)),
|
|
1920
1920
|
"data-testid": "image-width-mode",
|
|
1921
1921
|
value: O.value,
|
|
1922
1922
|
onChange: n[5] ||= (e) => j(e.target.value)
|
|
1923
1923
|
}, [
|
|
1924
|
-
y("option", li,
|
|
1924
|
+
y("option", li, g(C(a).image.fullWidth), 1),
|
|
1925
1925
|
n[15] ||= y("option", { value: "300" }, "300px", -1),
|
|
1926
1926
|
n[16] ||= y("option", { value: "400" }, "400px", -1),
|
|
1927
1927
|
n[17] ||= y("option", { value: "500" }, "500px", -1),
|
|
1928
|
-
y("option", ui,
|
|
1928
|
+
y("option", ui, g(C(a).image.widthCustom), 1)
|
|
1929
1929
|
], 42, ci),
|
|
1930
|
-
O.value === "custom" ? (o(),
|
|
1930
|
+
O.value === "custom" ? (o(), f("div", di, [y("input", {
|
|
1931
1931
|
type: "number",
|
|
1932
1932
|
"data-testid": "image-width-input",
|
|
1933
|
-
class:
|
|
1933
|
+
class: T(C(W)),
|
|
1934
1934
|
value: typeof e.block.width == "number" ? e.block.width : Ei,
|
|
1935
1935
|
min: "20",
|
|
1936
1936
|
onInput: n[6] ||= (e) => F(e.target.value)
|
|
1937
|
-
}, null, 42, fi), y("span", { class:
|
|
1937
|
+
}, null, 42, fi), y("span", { class: T(C(U)) }, "px", 2)])) : _("", !0)
|
|
1938
1938
|
]),
|
|
1939
1939
|
y("div", pi, [
|
|
1940
|
-
|
|
1941
|
-
linked:
|
|
1942
|
-
"link-label":
|
|
1943
|
-
"unlink-label":
|
|
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
1944
|
testid: "image-aspect-lock",
|
|
1945
1945
|
onToggle: Te
|
|
1946
1946
|
}, null, 8, [
|
|
1947
1947
|
"linked",
|
|
1948
1948
|
"link-label",
|
|
1949
1949
|
"unlink-label"
|
|
1950
|
-
])])) : (o(),
|
|
1950
|
+
])])) : (o(), f("label", {
|
|
1951
1951
|
key: 1,
|
|
1952
|
-
class:
|
|
1953
|
-
},
|
|
1954
|
-
|
|
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
1955
|
type: "number",
|
|
1956
1956
|
"data-testid": "image-locked-height-input",
|
|
1957
|
-
class:
|
|
1958
|
-
value: Ee.value ??
|
|
1957
|
+
class: T(C(W)),
|
|
1958
|
+
value: Ee.value ?? C(xe) ?? "",
|
|
1959
1959
|
min: "1",
|
|
1960
1960
|
onInput: n[7] ||= (e) => Oe(e.target.value),
|
|
1961
1961
|
onBlur: n[8] ||= (e) => Ee.value = null
|
|
1962
|
-
}, null, 42, _i), y("span", { class:
|
|
1963
|
-
|
|
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
1964
|
key: 3,
|
|
1965
|
-
class:
|
|
1965
|
+
class: T(C(G)),
|
|
1966
1966
|
"data-testid": "image-height-mode",
|
|
1967
1967
|
value: k.value,
|
|
1968
1968
|
onChange: n[9] ||= (e) => N(e.target.value)
|
|
1969
|
-
}, [y("option", bi,
|
|
1970
|
-
!
|
|
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
1971
|
type: "number",
|
|
1972
1972
|
"data-testid": "image-height-input",
|
|
1973
|
-
class:
|
|
1973
|
+
class: T(C(W)),
|
|
1974
1974
|
value: e.block.height,
|
|
1975
1975
|
min: "20",
|
|
1976
1976
|
onInput: n[10] ||= (e) => P(e.target.value)
|
|
1977
|
-
}, null, 42, Ci), y("span", { class:
|
|
1977
|
+
}, null, 42, Ci), y("span", { class: T(C(U)) }, "px", 2)])) : _("", !0)
|
|
1978
1978
|
]),
|
|
1979
1979
|
E(Dt, {
|
|
1980
1980
|
"model-value": e.block.borderRadius,
|
|
1981
|
-
label:
|
|
1981
|
+
label: C(a).image.borderRadius,
|
|
1982
1982
|
"testid-prefix": "image",
|
|
1983
1983
|
"onUpdate:modelValue": ee
|
|
1984
1984
|
}, null, 8, ["model-value", "label"]),
|
|
@@ -1987,56 +1987,56 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
1987
1987
|
"testid-prefix": "image",
|
|
1988
1988
|
"onUpdate:modelValue": n[11] ||= (e) => A("border", e)
|
|
1989
1989
|
}, null, 8, ["model-value"]),
|
|
1990
|
-
y("div", wi, [y("label", { class:
|
|
1990
|
+
y("div", wi, [y("label", { class: T(C(H)) }, g(C(a).title.align), 3), E(Y, {
|
|
1991
1991
|
options: [
|
|
1992
1992
|
{
|
|
1993
1993
|
value: "left",
|
|
1994
|
-
label:
|
|
1994
|
+
label: C(a).title.alignLeft
|
|
1995
1995
|
},
|
|
1996
1996
|
{
|
|
1997
1997
|
value: "center",
|
|
1998
|
-
label:
|
|
1998
|
+
label: C(a).title.alignCenter
|
|
1999
1999
|
},
|
|
2000
2000
|
{
|
|
2001
2001
|
value: "right",
|
|
2002
|
-
label:
|
|
2002
|
+
label: C(a).title.alignRight
|
|
2003
2003
|
}
|
|
2004
2004
|
],
|
|
2005
2005
|
"model-value": e.block.align,
|
|
2006
2006
|
"onUpdate:modelValue": n[12] ||= (e) => A("align", e)
|
|
2007
2007
|
}, null, 8, ["options", "model-value"])]),
|
|
2008
2008
|
y("div", Ti, [
|
|
2009
|
-
y("label", { class:
|
|
2009
|
+
y("label", { class: T(C(H)) }, g(C(a).image.linkUrl), 3),
|
|
2010
2010
|
E(J, {
|
|
2011
2011
|
"model-value": e.block.linkUrl || "",
|
|
2012
2012
|
type: "url",
|
|
2013
|
-
placeholder:
|
|
2013
|
+
placeholder: C(a).image.imageUrlPlaceholder,
|
|
2014
2014
|
"onUpdate:modelValue": n[13] ||= (e) => A("linkUrl", e)
|
|
2015
2015
|
}, null, 8, ["model-value", "placeholder"]),
|
|
2016
|
-
e.block.linkUrl ? (o(),
|
|
2016
|
+
e.block.linkUrl ? (o(), v(q, {
|
|
2017
2017
|
key: 0,
|
|
2018
2018
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2019
2019
|
"model-value": e.block.linkOpenInNewTab ?? !1,
|
|
2020
|
-
label:
|
|
2020
|
+
label: C(a).image.openInNewTab,
|
|
2021
2021
|
"onUpdate:modelValue": n[14] ||= (e) => A("linkOpenInNewTab", e)
|
|
2022
|
-
}, null, 8, ["model-value", "label"])) :
|
|
2022
|
+
}, null, 8, ["model-value", "label"])) : _("", !0)
|
|
2023
2023
|
])
|
|
2024
2024
|
], 64));
|
|
2025
2025
|
}
|
|
2026
|
-
}), ki = { class: "tpl:mb-3.5" }, $ = /* @__PURE__ */
|
|
2026
|
+
}), ki = { class: "tpl:mb-3.5" }, $ = /* @__PURE__ */ t({
|
|
2027
2027
|
__name: "FieldRow",
|
|
2028
2028
|
props: { label: {} },
|
|
2029
2029
|
setup(e) {
|
|
2030
|
-
return (t, n) => (o(),
|
|
2030
|
+
return (t, n) => (o(), f("div", ki, [e.label ? (o(), f("label", {
|
|
2031
2031
|
key: 0,
|
|
2032
|
-
class:
|
|
2033
|
-
},
|
|
2032
|
+
class: T(C(H))
|
|
2033
|
+
}, g(e.label), 3)) : _("", !0), a(t.$slots, "default")]));
|
|
2034
2034
|
}
|
|
2035
2035
|
}), Ai = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, ji = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Mi = [
|
|
2036
2036
|
"value",
|
|
2037
2037
|
"placeholder",
|
|
2038
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__ */
|
|
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
2040
|
__name: "MenuToolbar",
|
|
2041
2041
|
props: {
|
|
2042
2042
|
block: {},
|
|
@@ -2044,7 +2044,7 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
2044
2044
|
},
|
|
2045
2045
|
emits: ["update"],
|
|
2046
2046
|
setup(e, { emit: t }) {
|
|
2047
|
-
let n = e, r = t, { t: a } = B(), s =
|
|
2047
|
+
let n = e, r = t, { t: a } = B(), s = x(() => [
|
|
2048
2048
|
{
|
|
2049
2049
|
key: "openInNewTab",
|
|
2050
2050
|
label: a.menu.openInNewTab
|
|
@@ -2057,24 +2057,24 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
2057
2057
|
key: "underline",
|
|
2058
2058
|
label: a.menu.underline
|
|
2059
2059
|
}
|
|
2060
|
-
]),
|
|
2060
|
+
]), c = x(() => [
|
|
2061
2061
|
{
|
|
2062
2062
|
value: "left",
|
|
2063
2063
|
label: a.title.alignLeft,
|
|
2064
|
-
icon:
|
|
2064
|
+
icon: Je
|
|
2065
2065
|
},
|
|
2066
2066
|
{
|
|
2067
2067
|
value: "center",
|
|
2068
2068
|
label: a.title.alignCenter,
|
|
2069
|
-
icon:
|
|
2069
|
+
icon: Ze
|
|
2070
2070
|
},
|
|
2071
2071
|
{
|
|
2072
2072
|
value: "right",
|
|
2073
2073
|
label: a.title.alignRight,
|
|
2074
|
-
icon:
|
|
2074
|
+
icon: Re
|
|
2075
2075
|
}
|
|
2076
2076
|
]);
|
|
2077
|
-
function
|
|
2077
|
+
function l(e, t) {
|
|
2078
2078
|
r("update", { [e]: t });
|
|
2079
2079
|
}
|
|
2080
2080
|
function d() {
|
|
@@ -2088,136 +2088,136 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
2088
2088
|
};
|
|
2089
2089
|
r("update", { items: [...n.block.items, e] });
|
|
2090
2090
|
}
|
|
2091
|
-
function
|
|
2091
|
+
function m(e, t, i) {
|
|
2092
2092
|
let a = n.block.items.map((n) => n.id === e ? {
|
|
2093
2093
|
...n,
|
|
2094
2094
|
[t]: i
|
|
2095
2095
|
} : n);
|
|
2096
2096
|
r("update", { items: a });
|
|
2097
2097
|
}
|
|
2098
|
-
function
|
|
2098
|
+
function h(e) {
|
|
2099
2099
|
r("update", { items: n.block.items.filter((t) => t.id !== e) });
|
|
2100
2100
|
}
|
|
2101
|
-
return (t, n) => (o(),
|
|
2102
|
-
E($, { label:
|
|
2103
|
-
default:
|
|
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
2104
|
key: t.id,
|
|
2105
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
2106
|
}, [
|
|
2107
2107
|
y("div", ji, [y("input", {
|
|
2108
2108
|
type: "text",
|
|
2109
|
-
class:
|
|
2109
|
+
class: T([C(G), "tpl:flex-1"]),
|
|
2110
2110
|
value: t.text,
|
|
2111
|
-
placeholder:
|
|
2112
|
-
onInput: (e) =>
|
|
2111
|
+
placeholder: C(a).menu.text,
|
|
2112
|
+
onInput: (e) => m(t.id, "text", e.target.value)
|
|
2113
2113
|
}, null, 42, Mi), y("button", {
|
|
2114
|
-
class:
|
|
2115
|
-
title:
|
|
2116
|
-
onClick: (e) =>
|
|
2117
|
-
}, [E(
|
|
2114
|
+
class: T(C(tt)),
|
|
2115
|
+
title: C(a).menu.removeItem,
|
|
2116
|
+
onClick: (e) => h(t.id)
|
|
2117
|
+
}, [E(C(Xe), {
|
|
2118
2118
|
size: 14,
|
|
2119
2119
|
"stroke-width": 2
|
|
2120
2120
|
})], 10, Ni)]),
|
|
2121
2121
|
E(J, {
|
|
2122
2122
|
"model-value": t.url,
|
|
2123
2123
|
type: "url",
|
|
2124
|
-
placeholder:
|
|
2125
|
-
"onUpdate:modelValue": (e) =>
|
|
2124
|
+
placeholder: C(a).menu.urlPlaceholder,
|
|
2125
|
+
"onUpdate:modelValue": (e) => m(t.id, "url", e)
|
|
2126
2126
|
}, null, 8, [
|
|
2127
2127
|
"model-value",
|
|
2128
2128
|
"placeholder",
|
|
2129
2129
|
"onUpdate:modelValue"
|
|
2130
2130
|
]),
|
|
2131
|
-
y("div", Pi, [(o(!0),
|
|
2131
|
+
y("div", Pi, [(o(!0), f(w, null, i(s.value, (e) => (o(), v(q, {
|
|
2132
2132
|
key: e.key,
|
|
2133
2133
|
"model-value": t[e.key],
|
|
2134
2134
|
label: e.label,
|
|
2135
|
-
"onUpdate:modelValue": (n) =>
|
|
2135
|
+
"onUpdate:modelValue": (n) => m(t.id, e.key, n)
|
|
2136
2136
|
}, null, 8, [
|
|
2137
2137
|
"model-value",
|
|
2138
2138
|
"label",
|
|
2139
2139
|
"onUpdate:modelValue"
|
|
2140
2140
|
]))), 128))]),
|
|
2141
|
-
y("div", Fi, [y("label", { class:
|
|
2141
|
+
y("div", Fi, [y("label", { class: T([C(H), "tpl:!mb-0"]) }, g(C(a).menu.color), 3), E(K, {
|
|
2142
2142
|
"swatch-only": "",
|
|
2143
2143
|
"model-value": t.color || e.block.linkColor || e.block.color || "",
|
|
2144
|
-
"onUpdate:modelValue": (e) =>
|
|
2144
|
+
"onUpdate:modelValue": (e) => m(t.id, "color", e)
|
|
2145
2145
|
}, null, 8, ["model-value", "onUpdate:modelValue"])])
|
|
2146
2146
|
]))), 128)), y("button", {
|
|
2147
|
-
class:
|
|
2147
|
+
class: T(C(nt)),
|
|
2148
2148
|
onClick: d
|
|
2149
|
-
}, [E(
|
|
2149
|
+
}, [E(C(V), {
|
|
2150
2150
|
size: 14,
|
|
2151
2151
|
"stroke-width": 2
|
|
2152
|
-
}),
|
|
2152
|
+
}), p(" " + g(C(a).menu.addItem), 1)], 2)])]),
|
|
2153
2153
|
_: 1
|
|
2154
2154
|
}, 8, ["label"]),
|
|
2155
|
-
E($, { label:
|
|
2156
|
-
default:
|
|
2157
|
-
class:
|
|
2158
|
-
value:
|
|
2159
|
-
onChange: n[0] ||= (e) =>
|
|
2160
|
-
}, [y("option", Li,
|
|
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
2161
|
key: e.value,
|
|
2162
2162
|
value: e.value
|
|
2163
|
-
},
|
|
2163
|
+
}, g(e.label), 9, Ri))), 128))], 42, Ii)]),
|
|
2164
2164
|
_: 1
|
|
2165
2165
|
}, 8, ["label"]),
|
|
2166
|
-
E($, { label:
|
|
2167
|
-
default:
|
|
2166
|
+
E($, { label: C(a).menu.fontSize }, {
|
|
2167
|
+
default: u(() => [E(X, {
|
|
2168
2168
|
"model-value": e.block.fontSize,
|
|
2169
2169
|
min: 8,
|
|
2170
2170
|
max: 48,
|
|
2171
2171
|
suffix: "px",
|
|
2172
|
-
"onUpdate:modelValue": n[1] ||= (e) =>
|
|
2172
|
+
"onUpdate:modelValue": n[1] ||= (e) => l("fontSize", e)
|
|
2173
2173
|
}, null, 8, ["model-value"])]),
|
|
2174
2174
|
_: 1
|
|
2175
2175
|
}, 8, ["label"]),
|
|
2176
|
-
E($, { label:
|
|
2177
|
-
default:
|
|
2176
|
+
E($, { label: C(a).menu.color }, {
|
|
2177
|
+
default: u(() => [E(K, {
|
|
2178
2178
|
"model-value": e.block.color ?? "",
|
|
2179
|
-
"onUpdate:modelValue": n[2] ||= (e) =>
|
|
2179
|
+
"onUpdate:modelValue": n[2] ||= (e) => l("color", e || void 0)
|
|
2180
2180
|
}, null, 8, ["model-value"])]),
|
|
2181
2181
|
_: 1
|
|
2182
2182
|
}, 8, ["label"]),
|
|
2183
|
-
E($, { label:
|
|
2184
|
-
default:
|
|
2183
|
+
E($, { label: C(a).menu.linkColor }, {
|
|
2184
|
+
default: u(() => [E(K, {
|
|
2185
2185
|
"model-value": e.block.linkColor || e.block.color || "",
|
|
2186
|
-
"onUpdate:modelValue": n[3] ||= (e) =>
|
|
2186
|
+
"onUpdate:modelValue": n[3] ||= (e) => l("linkColor", e || void 0)
|
|
2187
2187
|
}, null, 8, ["model-value"])]),
|
|
2188
2188
|
_: 1
|
|
2189
2189
|
}, 8, ["label"]),
|
|
2190
|
-
E($, { label:
|
|
2191
|
-
default:
|
|
2192
|
-
options:
|
|
2190
|
+
E($, { label: C(a).menu.textAlign }, {
|
|
2191
|
+
default: u(() => [E(Y, {
|
|
2192
|
+
options: c.value,
|
|
2193
2193
|
"model-value": e.block.textAlign,
|
|
2194
|
-
"onUpdate:modelValue": n[4] ||= (e) =>
|
|
2194
|
+
"onUpdate:modelValue": n[4] ||= (e) => l("textAlign", e)
|
|
2195
2195
|
}, null, 8, ["options", "model-value"])]),
|
|
2196
2196
|
_: 1
|
|
2197
2197
|
}, 8, ["label"]),
|
|
2198
|
-
E($, { label:
|
|
2199
|
-
default:
|
|
2198
|
+
E($, { label: C(a).menu.separator }, {
|
|
2199
|
+
default: u(() => [y("input", {
|
|
2200
2200
|
type: "text",
|
|
2201
|
-
class:
|
|
2201
|
+
class: T(C(G)),
|
|
2202
2202
|
value: e.block.separator,
|
|
2203
|
-
onInput: n[5] ||= (e) =>
|
|
2203
|
+
onInput: n[5] ||= (e) => l("separator", e.target.value)
|
|
2204
2204
|
}, null, 42, zi)]),
|
|
2205
2205
|
_: 1
|
|
2206
2206
|
}, 8, ["label"]),
|
|
2207
|
-
E($, { label:
|
|
2208
|
-
default:
|
|
2207
|
+
E($, { label: C(a).menu.separatorColor }, {
|
|
2208
|
+
default: u(() => [E(K, {
|
|
2209
2209
|
"model-value": e.block.separatorColor,
|
|
2210
|
-
"onUpdate:modelValue": n[6] ||= (e) =>
|
|
2210
|
+
"onUpdate:modelValue": n[6] ||= (e) => l("separatorColor", e)
|
|
2211
2211
|
}, null, 8, ["model-value"])]),
|
|
2212
2212
|
_: 1
|
|
2213
2213
|
}, 8, ["label"]),
|
|
2214
|
-
E($, { label:
|
|
2215
|
-
default:
|
|
2214
|
+
E($, { label: C(a).menu.spacing }, {
|
|
2215
|
+
default: u(() => [E(X, {
|
|
2216
2216
|
"model-value": e.block.spacing,
|
|
2217
2217
|
min: 0,
|
|
2218
2218
|
max: 50,
|
|
2219
2219
|
suffix: "px",
|
|
2220
|
-
"onUpdate:modelValue": n[7] ||= (e) =>
|
|
2220
|
+
"onUpdate:modelValue": n[7] ||= (e) => l("spacing", e)
|
|
2221
2221
|
}, null, 8, ["model-value"])]),
|
|
2222
2222
|
_: 1
|
|
2223
2223
|
}, 8, ["label"])
|
|
@@ -2226,20 +2226,20 @@ var ti = { class: "tpl:mb-3.5" }, ni = {
|
|
|
2226
2226
|
}), Vi = {
|
|
2227
2227
|
class: "tpl:mb-3.5",
|
|
2228
2228
|
"data-testid": "paragraph-spacing"
|
|
2229
|
-
}, Hi = { class: "tpl:flex tpl:items-stretch" }, Ui = ["value"], Wi = /* @__PURE__ */
|
|
2229
|
+
}, Hi = { class: "tpl:flex tpl:items-stretch" }, Ui = ["value"], Wi = /* @__PURE__ */ t({
|
|
2230
2230
|
__name: "ParagraphToolbar",
|
|
2231
2231
|
props: { block: {} },
|
|
2232
2232
|
emits: ["update"],
|
|
2233
2233
|
setup(e, { emit: t }) {
|
|
2234
2234
|
let n = t, { t: r } = B();
|
|
2235
|
-
return (t, i) => (o(),
|
|
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
2236
|
type: "number",
|
|
2237
|
-
class:
|
|
2238
|
-
value: e.block.paragraphSpacing ??
|
|
2237
|
+
class: T(C(W)),
|
|
2238
|
+
value: e.block.paragraphSpacing ?? C(te).paragraphGap,
|
|
2239
2239
|
min: "0",
|
|
2240
2240
|
max: "64",
|
|
2241
2241
|
onInput: i[0] ||= (e) => n("update", { paragraphSpacing: Number(e.target.value) })
|
|
2242
|
-
}, null, 42, Ui), y("span", { class:
|
|
2242
|
+
}, null, 42, Ui), y("span", { class: T(C(U)) }, "px", 2)])]));
|
|
2243
2243
|
}
|
|
2244
2244
|
});
|
|
2245
2245
|
// src/utils/rebalanceColumnChildren.ts
|
|
@@ -2266,12 +2266,12 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2266
2266
|
}, Qi = {
|
|
2267
2267
|
key: 1,
|
|
2268
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__ */
|
|
2269
|
+
}, $i = /* @__PURE__ */ t({
|
|
2270
2270
|
__name: "SectionToolbar",
|
|
2271
2271
|
props: { block: {} },
|
|
2272
2272
|
emits: ["update"],
|
|
2273
2273
|
setup(e, { emit: t }) {
|
|
2274
|
-
let
|
|
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
2275
|
{
|
|
2276
2276
|
value: "1",
|
|
2277
2277
|
label: s.section.column1
|
|
@@ -2293,11 +2293,11 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2293
2293
|
label: s.section.ratio21
|
|
2294
2294
|
}
|
|
2295
2295
|
]);
|
|
2296
|
-
function
|
|
2297
|
-
let t = e.target.value,
|
|
2296
|
+
function S(e) {
|
|
2297
|
+
let t = e.target.value, n = Gi(r.block.children, t);
|
|
2298
2298
|
a("update", {
|
|
2299
2299
|
columns: t,
|
|
2300
|
-
children:
|
|
2300
|
+
children: n
|
|
2301
2301
|
});
|
|
2302
2302
|
}
|
|
2303
2303
|
function D(e) {
|
|
@@ -2316,7 +2316,7 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2316
2316
|
}
|
|
2317
2317
|
function j(e) {
|
|
2318
2318
|
a("update", { wrapper: {
|
|
2319
|
-
...
|
|
2319
|
+
...r.block.wrapper,
|
|
2320
2320
|
...e
|
|
2321
2321
|
} });
|
|
2322
2322
|
}
|
|
@@ -2326,49 +2326,49 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2326
2326
|
function N(e) {
|
|
2327
2327
|
j({ borderRadius: e });
|
|
2328
2328
|
}
|
|
2329
|
-
return (t, n) => (o(),
|
|
2330
|
-
y("div", Ki, [y("label", { class:
|
|
2331
|
-
class:
|
|
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
2332
|
value: e.block.columns,
|
|
2333
|
-
onChange:
|
|
2334
|
-
}, [(o(!0),
|
|
2333
|
+
onChange: S
|
|
2334
|
+
}, [(o(!0), f(w, null, i(b.value, (e) => (o(), f("option", {
|
|
2335
2335
|
key: e.value,
|
|
2336
2336
|
value: e.value
|
|
2337
|
-
},
|
|
2338
|
-
e.block.columns === "1" ?
|
|
2337
|
+
}, g(e.label), 9, Ji))), 128))], 42, qi)]),
|
|
2338
|
+
e.block.columns === "1" ? _("", !0) : (o(), f("div", Yi, [E(q, {
|
|
2339
2339
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2340
2340
|
"model-value": e.block.stackOnMobile !== !1,
|
|
2341
|
-
label:
|
|
2341
|
+
label: C(s).section.stackOnMobile,
|
|
2342
2342
|
"onUpdate:modelValue": n[0] ||= (e) => D(e)
|
|
2343
2343
|
}, null, 8, ["model-value", "label"])])),
|
|
2344
2344
|
E(Dt, {
|
|
2345
2345
|
"model-value": e.block.borderRadius,
|
|
2346
|
-
label:
|
|
2346
|
+
label: C(s).section.borderRadius,
|
|
2347
2347
|
max: 50,
|
|
2348
2348
|
"testid-prefix": "section",
|
|
2349
2349
|
"onUpdate:modelValue": O
|
|
2350
2350
|
}, null, 8, ["model-value", "label"]),
|
|
2351
|
-
|
|
2351
|
+
h.value ? _("", !0) : (o(), v(xt, {
|
|
2352
2352
|
key: 1,
|
|
2353
2353
|
"model-value": e.block.border,
|
|
2354
2354
|
"testid-prefix": "section",
|
|
2355
2355
|
"onUpdate:modelValue": n[1] ||= (e) => a("update", { border: e })
|
|
2356
2356
|
}, null, 8, ["model-value"])),
|
|
2357
|
-
d.value ? (o(),
|
|
2357
|
+
d.value ? (o(), f("div", Xi, [
|
|
2358
2358
|
E(q, {
|
|
2359
2359
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2360
2360
|
"model-value": !!e.block.wrapper,
|
|
2361
|
-
label:
|
|
2362
|
-
disabled:
|
|
2361
|
+
label: C(s).section.wrapperEnable,
|
|
2362
|
+
disabled: p.value,
|
|
2363
2363
|
"onUpdate:modelValue": n[2] ||= (e) => A(e)
|
|
2364
2364
|
}, null, 8, [
|
|
2365
2365
|
"model-value",
|
|
2366
2366
|
"label",
|
|
2367
2367
|
"disabled"
|
|
2368
2368
|
]),
|
|
2369
|
-
m.value ? (o(),
|
|
2370
|
-
e.block.wrapper ? (o(),
|
|
2371
|
-
y("div", null, [y("label", { class:
|
|
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
2372
|
"model-value": e.block.wrapper.backgroundColor ?? "",
|
|
2373
2373
|
"allow-transparent": "",
|
|
2374
2374
|
"onUpdate:modelValue": n[3] ||= (e) => j({ backgroundColor: e })
|
|
@@ -2379,7 +2379,7 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2379
2379
|
"onUpdate:modelValue": n[4] ||= (e) => j({ backgroundImage: e })
|
|
2380
2380
|
}, null, 8, ["model-value"]),
|
|
2381
2381
|
E(vn, {
|
|
2382
|
-
label:
|
|
2382
|
+
label: C(s).blockSettings.padding,
|
|
2383
2383
|
"model-value": e.block.wrapper.padding ?? {
|
|
2384
2384
|
top: 0,
|
|
2385
2385
|
right: 0,
|
|
@@ -2390,16 +2390,16 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2390
2390
|
}, null, 8, ["label", "model-value"]),
|
|
2391
2391
|
E(Dt, {
|
|
2392
2392
|
"model-value": e.block.wrapper.borderRadius,
|
|
2393
|
-
label:
|
|
2393
|
+
label: C(s).section.borderRadius,
|
|
2394
2394
|
max: 50,
|
|
2395
2395
|
"testid-prefix": "section-wrapper",
|
|
2396
2396
|
"onUpdate:modelValue": N
|
|
2397
2397
|
}, null, 8, ["model-value", "label"])
|
|
2398
|
-
])) :
|
|
2399
|
-
])) :
|
|
2398
|
+
])) : _("", !0)
|
|
2399
|
+
])) : _("", !0)
|
|
2400
2400
|
], 64));
|
|
2401
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__ */
|
|
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
2403
|
__name: "SocialToolbar",
|
|
2404
2404
|
props: { block: {} },
|
|
2405
2405
|
emits: ["update"],
|
|
@@ -2426,105 +2426,105 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2426
2426
|
function u(e) {
|
|
2427
2427
|
r("update", { icons: n.block.icons.filter((t) => t.id !== e) });
|
|
2428
2428
|
}
|
|
2429
|
-
return (t, n) => (o(),
|
|
2430
|
-
y("div", ea, [y("label", { class:
|
|
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
2431
|
key: e.id,
|
|
2432
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
2433
|
}, [y("div", na, [y("select", {
|
|
2434
2434
|
"data-testid": "social-platform-select",
|
|
2435
|
-
class:
|
|
2435
|
+
class: T([C(G), "tpl:flex-1"]),
|
|
2436
2436
|
value: e.platform,
|
|
2437
2437
|
onChange: (t) => l(e.id, "platform", t.target.value)
|
|
2438
|
-
}, [(o(!0),
|
|
2438
|
+
}, [(o(!0), f(w, null, i(C(R), (e) => (o(), f("option", {
|
|
2439
2439
|
key: e,
|
|
2440
2440
|
value: e
|
|
2441
|
-
},
|
|
2442
|
-
class:
|
|
2443
|
-
title:
|
|
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
2444
|
onClick: (t) => u(e.id)
|
|
2445
|
-
}, [E(
|
|
2445
|
+
}, [E(C(Xe), {
|
|
2446
2446
|
size: 14,
|
|
2447
2447
|
"stroke-width": 2
|
|
2448
2448
|
})], 10, aa)]), E(J, {
|
|
2449
2449
|
"model-value": e.url,
|
|
2450
2450
|
type: "url",
|
|
2451
|
-
placeholder:
|
|
2451
|
+
placeholder: C(a).social.urlPlaceholder,
|
|
2452
2452
|
"onUpdate:modelValue": (t) => l(e.id, "url", t)
|
|
2453
2453
|
}, null, 8, [
|
|
2454
2454
|
"model-value",
|
|
2455
2455
|
"placeholder",
|
|
2456
2456
|
"onUpdate:modelValue"
|
|
2457
2457
|
])]))), 128)), y("button", {
|
|
2458
|
-
class:
|
|
2458
|
+
class: T(C(nt)),
|
|
2459
2459
|
onClick: c
|
|
2460
|
-
}, [E(
|
|
2460
|
+
}, [E(C(V), {
|
|
2461
2461
|
size: 14,
|
|
2462
2462
|
"stroke-width": 2
|
|
2463
|
-
}),
|
|
2464
|
-
y("div", oa, [y("label", { class:
|
|
2465
|
-
class:
|
|
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
2466
|
value: e.block.iconStyle,
|
|
2467
2467
|
onChange: n[0] ||= (e) => s("iconStyle", e.target.value)
|
|
2468
2468
|
}, [
|
|
2469
|
-
y("option", ca,
|
|
2470
|
-
y("option", la,
|
|
2471
|
-
y("option", ua,
|
|
2472
|
-
y("option", da,
|
|
2473
|
-
y("option", fa,
|
|
2474
|
-
y("option", pa,
|
|
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
2475
|
], 42, sa)]),
|
|
2476
|
-
y("div", ma, [y("label", { class:
|
|
2476
|
+
y("div", ma, [y("label", { class: T(C(H)) }, g(C(a).social.color), 3), y("select", {
|
|
2477
2477
|
"data-testid": "social-tone-select",
|
|
2478
|
-
class:
|
|
2478
|
+
class: T(C(G)),
|
|
2479
2479
|
value: e.block.iconTone ?? "brand",
|
|
2480
2480
|
onChange: n[1] ||= (e) => s("iconTone", e.target.value)
|
|
2481
2481
|
}, [
|
|
2482
|
-
y("option", ga,
|
|
2483
|
-
y("option", _a,
|
|
2484
|
-
y("option", va,
|
|
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
2485
|
], 42, ha)]),
|
|
2486
|
-
y("div", ya, [y("label", { class:
|
|
2486
|
+
y("div", ya, [y("label", { class: T(C(H)) }, g(C(a).social.size), 3), E(Y, {
|
|
2487
2487
|
options: [
|
|
2488
2488
|
{
|
|
2489
2489
|
value: "small",
|
|
2490
|
-
label:
|
|
2490
|
+
label: C(a).social.sizeSmall
|
|
2491
2491
|
},
|
|
2492
2492
|
{
|
|
2493
2493
|
value: "medium",
|
|
2494
|
-
label:
|
|
2494
|
+
label: C(a).social.sizeMedium
|
|
2495
2495
|
},
|
|
2496
2496
|
{
|
|
2497
2497
|
value: "large",
|
|
2498
|
-
label:
|
|
2498
|
+
label: C(a).social.sizeLarge
|
|
2499
2499
|
}
|
|
2500
2500
|
],
|
|
2501
2501
|
"model-value": e.block.iconSize,
|
|
2502
2502
|
"onUpdate:modelValue": n[2] ||= (e) => s("iconSize", e)
|
|
2503
2503
|
}, null, 8, ["options", "model-value"])]),
|
|
2504
|
-
y("div", ba, [y("label", { class:
|
|
2504
|
+
y("div", ba, [y("label", { class: T(C(H)) }, g(C(a).social.spacing), 3), y("div", xa, [y("input", {
|
|
2505
2505
|
type: "number",
|
|
2506
|
-
class:
|
|
2506
|
+
class: T(C(W)),
|
|
2507
2507
|
value: e.block.spacing,
|
|
2508
2508
|
min: "0",
|
|
2509
2509
|
max: "50",
|
|
2510
2510
|
onInput: n[3] ||= (e) => s("spacing", Number(e.target.value))
|
|
2511
|
-
}, null, 42, Sa), y("span", { class:
|
|
2512
|
-
y("div", Ca, [y("label", { class:
|
|
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
2513
|
options: [
|
|
2514
2514
|
{
|
|
2515
2515
|
value: "left",
|
|
2516
|
-
label:
|
|
2517
|
-
icon:
|
|
2516
|
+
label: C(a).title.alignLeft,
|
|
2517
|
+
icon: C(Je)
|
|
2518
2518
|
},
|
|
2519
2519
|
{
|
|
2520
2520
|
value: "center",
|
|
2521
|
-
label:
|
|
2522
|
-
icon:
|
|
2521
|
+
label: C(a).title.alignCenter,
|
|
2522
|
+
icon: C(Ze)
|
|
2523
2523
|
},
|
|
2524
2524
|
{
|
|
2525
2525
|
value: "right",
|
|
2526
|
-
label:
|
|
2527
|
-
icon:
|
|
2526
|
+
label: C(a).title.alignRight,
|
|
2527
|
+
icon: C(Re)
|
|
2528
2528
|
}
|
|
2529
2529
|
],
|
|
2530
2530
|
"model-value": e.block.align,
|
|
@@ -2532,22 +2532,22 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2532
2532
|
}, null, 8, ["options", "model-value"])])
|
|
2533
2533
|
], 64));
|
|
2534
2534
|
}
|
|
2535
|
-
}), Ta = { class: "tpl:mb-3.5" }, Ea = { class: "tpl:flex tpl:items-stretch" }, Da = ["value"], Oa = ["value"], ka = /* @__PURE__ */
|
|
2535
|
+
}), Ta = { class: "tpl:mb-3.5" }, Ea = { class: "tpl:flex tpl:items-stretch" }, Da = ["value"], Oa = ["value"], ka = /* @__PURE__ */ t({
|
|
2536
2536
|
__name: "SpacerToolbar",
|
|
2537
2537
|
props: { block: {} },
|
|
2538
2538
|
emits: ["update"],
|
|
2539
2539
|
setup(e, { emit: t }) {
|
|
2540
2540
|
let n = t, { t: r } = B();
|
|
2541
|
-
return (t, i) => (o(),
|
|
2542
|
-
y("label", { class:
|
|
2541
|
+
return (t, i) => (o(), f("div", Ta, [
|
|
2542
|
+
y("label", { class: T(C(H)) }, g(C(r).spacer.height), 3),
|
|
2543
2543
|
y("div", Ea, [y("input", {
|
|
2544
2544
|
type: "number",
|
|
2545
|
-
class:
|
|
2545
|
+
class: T(C(W)),
|
|
2546
2546
|
value: e.block.height,
|
|
2547
2547
|
min: "10",
|
|
2548
2548
|
max: "100",
|
|
2549
2549
|
onInput: i[0] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
2550
|
-
}, null, 42, Da), y("span", { class:
|
|
2550
|
+
}, null, 42, Da), y("span", { class: T(C(U)) }, "px", 2)]),
|
|
2551
2551
|
y("input", {
|
|
2552
2552
|
type: "range",
|
|
2553
2553
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
@@ -2561,7 +2561,7 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2561
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
2562
|
key: 0,
|
|
2563
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__ */
|
|
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
2565
|
__name: "TableToolbar",
|
|
2566
2566
|
props: {
|
|
2567
2567
|
block: {},
|
|
@@ -2569,7 +2569,7 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2569
2569
|
},
|
|
2570
2570
|
emits: ["update"],
|
|
2571
2571
|
setup(e, { emit: t }) {
|
|
2572
|
-
let n = e, r = t, { t: a } = B(), s =
|
|
2572
|
+
let n = e, r = t, { t: a } = B(), s = x(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
|
|
2573
2573
|
function c(e, t) {
|
|
2574
2574
|
r("update", { [e]: t });
|
|
2575
2575
|
}
|
|
@@ -2596,45 +2596,45 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2596
2596
|
}));
|
|
2597
2597
|
r("update", { rows: e });
|
|
2598
2598
|
}
|
|
2599
|
-
function
|
|
2599
|
+
function p(e) {
|
|
2600
2600
|
let t = n.block.rows.map((t) => ({
|
|
2601
2601
|
...t,
|
|
2602
2602
|
cells: t.cells.filter((t, n) => n !== e)
|
|
2603
2603
|
}));
|
|
2604
2604
|
r("update", { rows: t });
|
|
2605
2605
|
}
|
|
2606
|
-
return (t, n) => (o(),
|
|
2607
|
-
y("div", Aa, [y("label", { class:
|
|
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
2608
|
y("button", {
|
|
2609
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
2610
|
disabled: e.block.rows.length <= 1,
|
|
2611
2611
|
onClick: n[0] ||= (t) => u(e.block.rows[e.block.rows.length - 1].id)
|
|
2612
|
-
}, [E(
|
|
2612
|
+
}, [E(C(Ve), {
|
|
2613
2613
|
size: 12,
|
|
2614
2614
|
"stroke-width": 2
|
|
2615
2615
|
})], 8, Fa),
|
|
2616
|
-
y("span", Ia,
|
|
2616
|
+
y("span", Ia, g(e.block.rows.length), 1),
|
|
2617
2617
|
y("button", {
|
|
2618
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
2619
|
onClick: l
|
|
2620
|
-
}, [E(
|
|
2620
|
+
}, [E(C(V), {
|
|
2621
2621
|
size: 12,
|
|
2622
2622
|
"stroke-width": 2
|
|
2623
2623
|
})])
|
|
2624
|
-
])]), y("div", La, [y("span", Ra,
|
|
2624
|
+
])]), y("div", La, [y("span", Ra, g(C(a).table.columns), 1), y("div", za, [
|
|
2625
2625
|
y("button", {
|
|
2626
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
2627
|
disabled: s.value <= 1,
|
|
2628
|
-
onClick: n[1] ||= (e) =>
|
|
2629
|
-
}, [E(
|
|
2628
|
+
onClick: n[1] ||= (e) => p(s.value - 1)
|
|
2629
|
+
}, [E(C(Ve), {
|
|
2630
2630
|
size: 12,
|
|
2631
2631
|
"stroke-width": 2
|
|
2632
2632
|
})], 8, Ba),
|
|
2633
|
-
y("span", Va,
|
|
2633
|
+
y("span", Va, g(s.value), 1),
|
|
2634
2634
|
y("button", {
|
|
2635
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
2636
|
onClick: d
|
|
2637
|
-
}, [E(
|
|
2637
|
+
}, [E(C(V), {
|
|
2638
2638
|
size: 12,
|
|
2639
2639
|
"stroke-width": 2
|
|
2640
2640
|
})])
|
|
@@ -2642,75 +2642,75 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2642
2642
|
y("div", Ha, [E(q, {
|
|
2643
2643
|
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
2644
2644
|
"model-value": e.block.hasHeaderRow,
|
|
2645
|
-
label:
|
|
2645
|
+
label: C(a).table.hasHeaderRow,
|
|
2646
2646
|
"onUpdate:modelValue": n[2] ||= (e) => c("hasHeaderRow", e)
|
|
2647
2647
|
}, null, 8, ["model-value", "label"])]),
|
|
2648
|
-
e.block.hasHeaderRow ? (o(),
|
|
2648
|
+
e.block.hasHeaderRow ? (o(), f("div", Ua, [y("label", { class: T(C(H)) }, g(C(a).table.headerBackgroundColor), 3), E(K, {
|
|
2649
2649
|
"model-value": e.block.headerBackgroundColor ?? "",
|
|
2650
|
-
"seed-color":
|
|
2651
|
-
placeholder:
|
|
2650
|
+
"seed-color": C(rt),
|
|
2651
|
+
placeholder: C(a).table.noHeaderBg,
|
|
2652
2652
|
"onUpdate:modelValue": n[3] ||= (e) => c("headerBackgroundColor", e || null)
|
|
2653
2653
|
}, null, 8, [
|
|
2654
2654
|
"model-value",
|
|
2655
2655
|
"seed-color",
|
|
2656
2656
|
"placeholder"
|
|
2657
|
-
])])) :
|
|
2658
|
-
y("div", Wa, [y("label", { class:
|
|
2657
|
+
])])) : _("", !0),
|
|
2658
|
+
y("div", Wa, [y("label", { class: T(C(H)) }, g(C(a).table.borderColor), 3), E(K, {
|
|
2659
2659
|
"model-value": e.block.borderColor,
|
|
2660
2660
|
"onUpdate:modelValue": n[4] ||= (e) => c("borderColor", e)
|
|
2661
2661
|
}, null, 8, ["model-value"])]),
|
|
2662
|
-
y("div", Ga, [y("label", { class:
|
|
2662
|
+
y("div", Ga, [y("label", { class: T(C(H)) }, g(C(a).table.borderWidth), 3), y("div", Ka, [y("input", {
|
|
2663
2663
|
type: "number",
|
|
2664
|
-
class:
|
|
2664
|
+
class: T(C(W)),
|
|
2665
2665
|
value: e.block.borderWidth,
|
|
2666
2666
|
min: "0",
|
|
2667
2667
|
max: "10",
|
|
2668
2668
|
onInput: n[5] ||= (e) => c("borderWidth", Number(e.target.value))
|
|
2669
|
-
}, null, 42, qa), y("span", { class:
|
|
2670
|
-
y("div", Ja, [y("label", { class:
|
|
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
2671
|
type: "number",
|
|
2672
|
-
class:
|
|
2672
|
+
class: T(C(W)),
|
|
2673
2673
|
value: e.block.cellPadding,
|
|
2674
2674
|
min: "0",
|
|
2675
2675
|
max: "30",
|
|
2676
2676
|
onInput: n[6] ||= (e) => c("cellPadding", Number(e.target.value))
|
|
2677
|
-
}, null, 42, Xa), y("span", { class:
|
|
2678
|
-
y("div", Za, [y("label", { class:
|
|
2679
|
-
class:
|
|
2680
|
-
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
2681
|
onChange: n[7] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
2682
|
-
}, [y("option", $a,
|
|
2682
|
+
}, [y("option", $a, g(C(a).title.inheritFont), 1), (o(!0), f(w, null, i(e.fontFamilies, (e) => (o(), f("option", {
|
|
2683
2683
|
key: e.value,
|
|
2684
2684
|
value: e.value
|
|
2685
|
-
},
|
|
2686
|
-
y("div", to, [y("label", { class:
|
|
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
2687
|
type: "number",
|
|
2688
|
-
class:
|
|
2688
|
+
class: T(C(W)),
|
|
2689
2689
|
value: e.block.fontSize,
|
|
2690
2690
|
min: "10",
|
|
2691
2691
|
max: "32",
|
|
2692
2692
|
onInput: n[8] ||= (e) => c("fontSize", Number(e.target.value))
|
|
2693
|
-
}, null, 42, ro), y("span", { class:
|
|
2694
|
-
y("div", io, [y("label", { class:
|
|
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
2695
|
"model-value": e.block.color ?? "",
|
|
2696
2696
|
"onUpdate:modelValue": n[9] ||= (e) => c("color", e || void 0)
|
|
2697
2697
|
}, null, 8, ["model-value"])]),
|
|
2698
|
-
y("div", ao, [y("label", { class:
|
|
2698
|
+
y("div", ao, [y("label", { class: T(C(H)) }, g(C(a).table.textAlign), 3), E(Y, {
|
|
2699
2699
|
options: [
|
|
2700
2700
|
{
|
|
2701
2701
|
value: "left",
|
|
2702
|
-
label:
|
|
2703
|
-
icon:
|
|
2702
|
+
label: C(a).title.alignLeft,
|
|
2703
|
+
icon: C(Je)
|
|
2704
2704
|
},
|
|
2705
2705
|
{
|
|
2706
2706
|
value: "center",
|
|
2707
|
-
label:
|
|
2708
|
-
icon:
|
|
2707
|
+
label: C(a).title.alignCenter,
|
|
2708
|
+
icon: C(Ze)
|
|
2709
2709
|
},
|
|
2710
2710
|
{
|
|
2711
2711
|
value: "right",
|
|
2712
|
-
label:
|
|
2713
|
-
icon:
|
|
2712
|
+
label: C(a).title.alignRight,
|
|
2713
|
+
icon: C(Re)
|
|
2714
2714
|
}
|
|
2715
2715
|
],
|
|
2716
2716
|
"model-value": e.block.textAlign,
|
|
@@ -2718,7 +2718,7 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2718
2718
|
}, null, 8, ["options", "model-value"])])
|
|
2719
2719
|
], 64));
|
|
2720
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__ */
|
|
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
2722
|
__name: "TitleToolbar",
|
|
2723
2723
|
props: {
|
|
2724
2724
|
block: {},
|
|
@@ -2730,45 +2730,45 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2730
2730
|
function a(e, t) {
|
|
2731
2731
|
n("update", { [e]: t });
|
|
2732
2732
|
}
|
|
2733
|
-
return (t, n) => (o(),
|
|
2734
|
-
y("div", so, [y("label", { class:
|
|
2735
|
-
class:
|
|
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
2736
|
value: e.block.level,
|
|
2737
2737
|
onChange: n[0] ||= (e) => a("level", Number(e.target.value))
|
|
2738
2738
|
}, [
|
|
2739
|
-
y("option", lo,
|
|
2740
|
-
y("option", uo,
|
|
2741
|
-
y("option", fo,
|
|
2742
|
-
y("option", po,
|
|
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
2743
|
], 42, co)]),
|
|
2744
|
-
y("div", mo, [y("label", { class:
|
|
2745
|
-
class:
|
|
2746
|
-
value:
|
|
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
2747
|
onChange: n[1] ||= (e) => a("fontFamily", e.target.value || void 0)
|
|
2748
|
-
}, [y("option", go,
|
|
2748
|
+
}, [y("option", go, g(C(r).title.inheritFont), 1), (o(!0), f(w, null, i(e.fontFamilies, (e) => (o(), f("option", {
|
|
2749
2749
|
key: e.value,
|
|
2750
2750
|
value: e.value
|
|
2751
|
-
},
|
|
2752
|
-
y("div", vo, [y("label", { class:
|
|
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
2753
|
"model-value": e.block.color ?? "",
|
|
2754
2754
|
"onUpdate:modelValue": n[2] ||= (e) => a("color", e || void 0)
|
|
2755
2755
|
}, null, 8, ["model-value"])]),
|
|
2756
|
-
y("div", yo, [y("label", { class:
|
|
2756
|
+
y("div", yo, [y("label", { class: T(C(H)) }, g(C(r).title.align), 3), E(Y, {
|
|
2757
2757
|
options: [
|
|
2758
2758
|
{
|
|
2759
2759
|
value: "left",
|
|
2760
|
-
label:
|
|
2761
|
-
icon:
|
|
2760
|
+
label: C(r).title.alignLeft,
|
|
2761
|
+
icon: C(Je)
|
|
2762
2762
|
},
|
|
2763
2763
|
{
|
|
2764
2764
|
value: "center",
|
|
2765
|
-
label:
|
|
2766
|
-
icon:
|
|
2765
|
+
label: C(r).title.alignCenter,
|
|
2766
|
+
icon: C(Ze)
|
|
2767
2767
|
},
|
|
2768
2768
|
{
|
|
2769
2769
|
value: "right",
|
|
2770
|
-
label:
|
|
2771
|
-
icon:
|
|
2770
|
+
label: C(r).title.alignRight,
|
|
2771
|
+
icon: C(Re)
|
|
2772
2772
|
}
|
|
2773
2773
|
],
|
|
2774
2774
|
"model-value": e.block.textAlign,
|
|
@@ -2789,28 +2789,28 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2789
2789
|
}, No = ["value"], Po = { class: "tpl:mb-3.5" }, Fo = ["value"], Io = { value: "auto" }, Lo = { value: "custom" }, Ro = {
|
|
2790
2790
|
key: 0,
|
|
2791
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__ */
|
|
2792
|
+
}, zo = ["value"], Bo = { class: "tpl:mb-3.5" }, Vo = 350, Ho = 200, Uo = /* @__PURE__ */ t({
|
|
2793
2793
|
__name: "VideoToolbar",
|
|
2794
2794
|
props: { block: {} },
|
|
2795
2795
|
emits: ["update"],
|
|
2796
|
-
setup(e, { emit:
|
|
2797
|
-
let
|
|
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
2798
|
300,
|
|
2799
2799
|
400,
|
|
2800
2800
|
500
|
|
2801
|
-
],
|
|
2802
|
-
let e =
|
|
2803
|
-
return e === "full" ? "full" :
|
|
2804
|
-
}),
|
|
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
2805
|
D.value = !1;
|
|
2806
2806
|
}, 1e3, { immediate: !1 });
|
|
2807
2807
|
function k(e, t) {
|
|
2808
|
-
|
|
2808
|
+
i("update", { [e]: t });
|
|
2809
2809
|
}
|
|
2810
2810
|
function A(e) {
|
|
2811
2811
|
if (e === "custom") {
|
|
2812
|
-
let e =
|
|
2813
|
-
(typeof e != "number" ||
|
|
2812
|
+
let e = r.block.width;
|
|
2813
|
+
(typeof e != "number" || u.includes(e)) && k("width", Vo);
|
|
2814
2814
|
} else k("width", e === "full" ? "full" : Number(e));
|
|
2815
2815
|
}
|
|
2816
2816
|
function j(e) {
|
|
@@ -2825,40 +2825,40 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2825
2825
|
!Number.isFinite(t) || t <= 0 || k("height", t);
|
|
2826
2826
|
}
|
|
2827
2827
|
async function P() {
|
|
2828
|
-
let e = await
|
|
2829
|
-
|
|
2828
|
+
let e = await s?.({ accept: ["images"] });
|
|
2829
|
+
l.alive && e && (k("thumbnailUrl", e.url), D.value = !0, O());
|
|
2830
2830
|
}
|
|
2831
|
-
return (t, n) => (o(),
|
|
2831
|
+
return (t, n) => (o(), f(w, null, [
|
|
2832
2832
|
y("div", xo, [
|
|
2833
|
-
y("label", { class:
|
|
2833
|
+
y("label", { class: T(C(H)) }, g(C(a).video.videoUrl), 3),
|
|
2834
2834
|
E(J, {
|
|
2835
2835
|
"model-value": e.block.url,
|
|
2836
2836
|
type: "url",
|
|
2837
|
-
placeholder:
|
|
2837
|
+
placeholder: C(a).video.videoUrlPlaceholder,
|
|
2838
2838
|
"onUpdate:modelValue": n[0] ||= (e) => k("url", e)
|
|
2839
2839
|
}, null, 8, ["model-value", "placeholder"]),
|
|
2840
|
-
e.block.url ? (o(),
|
|
2840
|
+
e.block.url ? (o(), v(q, {
|
|
2841
2841
|
key: 0,
|
|
2842
2842
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2843
2843
|
"model-value": e.block.openInNewTab ?? !1,
|
|
2844
|
-
label:
|
|
2844
|
+
label: C(a).video.openInNewTab,
|
|
2845
2845
|
"onUpdate:modelValue": n[1] ||= (e) => k("openInNewTab", e)
|
|
2846
|
-
}, null, 8, ["model-value", "label"])) :
|
|
2846
|
+
}, null, 8, ["model-value", "label"])) : _("", !0)
|
|
2847
2847
|
]),
|
|
2848
|
-
|
|
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
2849
|
type: "url",
|
|
2850
|
-
class:
|
|
2850
|
+
class: T(C(G)),
|
|
2851
2851
|
value: e.block.placeholderUrl || "",
|
|
2852
|
-
placeholder:
|
|
2853
|
-
title:
|
|
2852
|
+
placeholder: C(a).video.placeholderUrlPlaceholder,
|
|
2853
|
+
title: C(a).video.placeholderUrlTooltip,
|
|
2854
2854
|
onInput: n[2] ||= (e) => k("placeholderUrl", e.target.value)
|
|
2855
|
-
}, null, 42, wo)])) :
|
|
2855
|
+
}, null, 42, wo)])) : _("", !0),
|
|
2856
2856
|
y("div", To, [
|
|
2857
|
-
y("label", { class:
|
|
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
2858
|
E(J, {
|
|
2859
2859
|
"model-value": e.block.thumbnailUrl,
|
|
2860
2860
|
type: "url",
|
|
2861
|
-
placeholder:
|
|
2861
|
+
placeholder: C(a).video.thumbnailPlaceholder,
|
|
2862
2862
|
pulse: D.value,
|
|
2863
2863
|
"onUpdate:modelValue": n[3] ||= (e) => k("thumbnailUrl", e)
|
|
2864
2864
|
}, null, 8, [
|
|
@@ -2866,7 +2866,7 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2866
2866
|
"placeholder",
|
|
2867
2867
|
"pulse"
|
|
2868
2868
|
]),
|
|
2869
|
-
|
|
2869
|
+
d.value ? (o(), f("button", {
|
|
2870
2870
|
key: 0,
|
|
2871
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
2872
|
style: {
|
|
@@ -2875,70 +2875,70 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2875
2875
|
"background-color": "var(--tpl-bg)"
|
|
2876
2876
|
},
|
|
2877
2877
|
onClick: P
|
|
2878
|
-
}, [E(
|
|
2878
|
+
}, [E(C(ze), {
|
|
2879
2879
|
size: 14,
|
|
2880
2880
|
"stroke-width": 1.5
|
|
2881
|
-
}),
|
|
2881
|
+
}), p(" " + g(C(a).image.browseMedia), 1)])) : _("", !0)
|
|
2882
2882
|
]),
|
|
2883
|
-
y("div", Do, [y("label", { class:
|
|
2883
|
+
y("div", Do, [y("label", { class: T(C(H)) }, g(C(a).video.altText), 3), E(J, {
|
|
2884
2884
|
"model-value": e.block.alt,
|
|
2885
2885
|
type: "text",
|
|
2886
|
-
placeholder:
|
|
2886
|
+
placeholder: C(a).video.altTextPlaceholder,
|
|
2887
2887
|
"onUpdate:modelValue": n[4] ||= (e) => k("alt", e)
|
|
2888
2888
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
2889
2889
|
y("div", Oo, [
|
|
2890
|
-
y("label", { class:
|
|
2890
|
+
y("label", { class: T(C(H)) }, g(C(a).video.width), 3),
|
|
2891
2891
|
y("select", {
|
|
2892
|
-
class:
|
|
2892
|
+
class: T(C(G)),
|
|
2893
2893
|
"data-testid": "video-width-mode",
|
|
2894
|
-
value:
|
|
2894
|
+
value: b.value,
|
|
2895
2895
|
onChange: n[5] ||= (e) => A(e.target.value)
|
|
2896
2896
|
}, [
|
|
2897
|
-
y("option", Ao,
|
|
2897
|
+
y("option", Ao, g(C(a).video.fullWidth), 1),
|
|
2898
2898
|
n[10] ||= y("option", { value: "300" }, "300px", -1),
|
|
2899
2899
|
n[11] ||= y("option", { value: "400" }, "400px", -1),
|
|
2900
2900
|
n[12] ||= y("option", { value: "500" }, "500px", -1),
|
|
2901
|
-
y("option", jo,
|
|
2901
|
+
y("option", jo, g(C(a).video.widthCustom), 1)
|
|
2902
2902
|
], 42, ko),
|
|
2903
|
-
|
|
2903
|
+
b.value === "custom" ? (o(), f("div", Mo, [y("input", {
|
|
2904
2904
|
type: "number",
|
|
2905
2905
|
"data-testid": "video-width-input",
|
|
2906
|
-
class:
|
|
2906
|
+
class: T(C(W)),
|
|
2907
2907
|
value: e.block.width,
|
|
2908
2908
|
min: "20",
|
|
2909
2909
|
onInput: n[6] ||= (e) => j(e.target.value)
|
|
2910
|
-
}, null, 42, No), y("span", { class:
|
|
2910
|
+
}, null, 42, No), y("span", { class: T(C(U)) }, "px", 2)])) : _("", !0)
|
|
2911
2911
|
]),
|
|
2912
2912
|
y("div", Po, [
|
|
2913
|
-
y("label", { class:
|
|
2913
|
+
y("label", { class: T(C(H)) }, g(C(a).video.height), 3),
|
|
2914
2914
|
y("select", {
|
|
2915
|
-
class:
|
|
2915
|
+
class: T(C(G)),
|
|
2916
2916
|
"data-testid": "video-height-mode",
|
|
2917
|
-
value:
|
|
2917
|
+
value: S.value,
|
|
2918
2918
|
onChange: n[7] ||= (e) => M(e.target.value)
|
|
2919
|
-
}, [y("option", Io,
|
|
2920
|
-
|
|
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
2921
|
type: "number",
|
|
2922
2922
|
"data-testid": "video-height-input",
|
|
2923
|
-
class:
|
|
2923
|
+
class: T(C(W)),
|
|
2924
2924
|
value: e.block.height,
|
|
2925
2925
|
min: "20",
|
|
2926
2926
|
onInput: n[8] ||= (e) => N(e.target.value)
|
|
2927
|
-
}, null, 42, zo), y("span", { class:
|
|
2927
|
+
}, null, 42, zo), y("span", { class: T(C(U)) }, "px", 2)])) : _("", !0)
|
|
2928
2928
|
]),
|
|
2929
|
-
y("div", Bo, [y("label", { class:
|
|
2929
|
+
y("div", Bo, [y("label", { class: T(C(H)) }, g(C(a).title.align), 3), E(Y, {
|
|
2930
2930
|
options: [
|
|
2931
2931
|
{
|
|
2932
2932
|
value: "left",
|
|
2933
|
-
label:
|
|
2933
|
+
label: C(a).title.alignLeft
|
|
2934
2934
|
},
|
|
2935
2935
|
{
|
|
2936
2936
|
value: "center",
|
|
2937
|
-
label:
|
|
2937
|
+
label: C(a).title.alignCenter
|
|
2938
2938
|
},
|
|
2939
2939
|
{
|
|
2940
2940
|
value: "right",
|
|
2941
|
-
label:
|
|
2941
|
+
label: C(a).title.alignRight
|
|
2942
2942
|
}
|
|
2943
2943
|
],
|
|
2944
2944
|
"model-value": e.block.align,
|
|
@@ -2946,7 +2946,7 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2946
2946
|
}, null, 8, ["options", "model-value"])])
|
|
2947
2947
|
], 64));
|
|
2948
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__*/
|
|
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
2950
|
__name: "Toolbar",
|
|
2951
2951
|
props: { block: {} },
|
|
2952
2952
|
emits: [
|
|
@@ -2955,107 +2955,107 @@ var Ki = { class: "tpl:mb-3.5" }, qi = ["value"], Ji = ["value"], Yi = {
|
|
|
2955
2955
|
"duplicate"
|
|
2956
2956
|
],
|
|
2957
2957
|
setup(e, { emit: t }) {
|
|
2958
|
-
let
|
|
2959
|
-
if (
|
|
2960
|
-
}),
|
|
2961
|
-
function
|
|
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
2962
|
a("update", e);
|
|
2963
2963
|
}
|
|
2964
|
-
return (t,
|
|
2964
|
+
return (t, n) => (o(), f("aside", {
|
|
2965
2965
|
"data-testid": "block-toolbar",
|
|
2966
|
-
"aria-label":
|
|
2966
|
+
"aria-label": C(s).landmarks.blockToolbar,
|
|
2967
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, [
|
|
2968
|
+
}, [y("div", Go, [y("div", Ko, [C(at)[d.value] ? (o(), v(D(C(at)[d.value]), {
|
|
2969
2969
|
key: 0,
|
|
2970
2970
|
size: 16,
|
|
2971
2971
|
"stroke-width": 1.5
|
|
2972
|
-
})) :
|
|
2972
|
+
})) : p.value ? (o(), v(C(Ge), {
|
|
2973
2973
|
key: 1,
|
|
2974
2974
|
size: 16,
|
|
2975
2975
|
"stroke-width": 1.5
|
|
2976
|
-
})) :
|
|
2976
|
+
})) : _("", !0), y("h3", qo, g(h.value), 1)]), y("div", Jo, [y("button", {
|
|
2977
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:
|
|
2979
|
-
onClick:
|
|
2980
|
-
}, [E(
|
|
2978
|
+
title: C(s).toolbar.duplicate,
|
|
2979
|
+
onClick: n[0] ||= (e) => a("duplicate")
|
|
2980
|
+
}, [E(C(Ke), {
|
|
2981
2981
|
size: 14,
|
|
2982
2982
|
"stroke-width": 2
|
|
2983
2983
|
})], 8, Yo), y("button", {
|
|
2984
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:
|
|
2986
|
-
onClick:
|
|
2987
|
-
}, [E(
|
|
2985
|
+
title: C(s).toolbar.delete,
|
|
2986
|
+
onClick: n[1] ||= (e) => a("delete")
|
|
2987
|
+
}, [E(C(He), {
|
|
2988
2988
|
size: 14,
|
|
2989
2989
|
"stroke-width": 2
|
|
2990
|
-
})], 8, Xo)])]), y("div", Zo, [
|
|
2990
|
+
})], 8, Xo)])]), y("div", Zo, [p.value ? (o(), v(Ur, {
|
|
2991
2991
|
key: 0,
|
|
2992
2992
|
block: e.block,
|
|
2993
|
-
onUpdateFieldValues:
|
|
2994
|
-
onUpdateDataSourceFetched:
|
|
2995
|
-
}, null, 8, ["block"])) : d.value === "section" ? (o(),
|
|
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
2996
|
key: 1,
|
|
2997
2997
|
block: e.block,
|
|
2998
|
-
onUpdate:
|
|
2999
|
-
}, null, 8, ["block"])) : d.value === "title" ? (o(),
|
|
2998
|
+
onUpdate: S
|
|
2999
|
+
}, null, 8, ["block"])) : d.value === "title" ? (o(), v(bo, {
|
|
3000
3000
|
key: 2,
|
|
3001
3001
|
block: e.block,
|
|
3002
3002
|
"font-families": b.value,
|
|
3003
|
-
onUpdate:
|
|
3004
|
-
}, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (o(),
|
|
3003
|
+
onUpdate: S
|
|
3004
|
+
}, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (o(), v(Wi, {
|
|
3005
3005
|
key: 3,
|
|
3006
3006
|
block: e.block,
|
|
3007
|
-
onUpdate:
|
|
3008
|
-
}, null, 8, ["block"])) : d.value === "image" ? (o(),
|
|
3007
|
+
onUpdate: S
|
|
3008
|
+
}, null, 8, ["block"])) : d.value === "image" ? (o(), v(Oi, {
|
|
3009
3009
|
key: 4,
|
|
3010
3010
|
block: e.block,
|
|
3011
|
-
onUpdate:
|
|
3012
|
-
}, null, 8, ["block"])) : d.value === "video" ? (o(),
|
|
3011
|
+
onUpdate: S
|
|
3012
|
+
}, null, 8, ["block"])) : d.value === "video" ? (o(), v(Uo, {
|
|
3013
3013
|
key: 5,
|
|
3014
3014
|
block: e.block,
|
|
3015
|
-
onUpdate:
|
|
3016
|
-
}, null, 8, ["block"])) : d.value === "button" ? (o(),
|
|
3015
|
+
onUpdate: S
|
|
3016
|
+
}, null, 8, ["block"])) : d.value === "button" ? (o(), v(Jt, {
|
|
3017
3017
|
key: 6,
|
|
3018
3018
|
block: e.block,
|
|
3019
3019
|
"font-families": b.value,
|
|
3020
|
-
onUpdate:
|
|
3021
|
-
}, null, 8, ["block", "font-families"])) : d.value === "divider" ? (o(),
|
|
3020
|
+
onUpdate: S
|
|
3021
|
+
}, null, 8, ["block", "font-families"])) : d.value === "divider" ? (o(), v(Yr, {
|
|
3022
3022
|
key: 7,
|
|
3023
3023
|
block: e.block,
|
|
3024
|
-
onUpdate:
|
|
3025
|
-
}, null, 8, ["block"])) : d.value === "social" ? (o(),
|
|
3024
|
+
onUpdate: S
|
|
3025
|
+
}, null, 8, ["block"])) : d.value === "social" ? (o(), v(wa, {
|
|
3026
3026
|
key: 8,
|
|
3027
3027
|
block: e.block,
|
|
3028
|
-
onUpdate:
|
|
3029
|
-
}, null, 8, ["block"])) : d.value === "menu" ? (o(),
|
|
3028
|
+
onUpdate: S
|
|
3029
|
+
}, null, 8, ["block"])) : d.value === "menu" ? (o(), v(Bi, {
|
|
3030
3030
|
key: 9,
|
|
3031
3031
|
block: e.block,
|
|
3032
3032
|
"font-families": b.value,
|
|
3033
|
-
onUpdate:
|
|
3034
|
-
}, null, 8, ["block", "font-families"])) : d.value === "table" ? (o(),
|
|
3033
|
+
onUpdate: S
|
|
3034
|
+
}, null, 8, ["block", "font-families"])) : d.value === "table" ? (o(), v(oo, {
|
|
3035
3035
|
key: 10,
|
|
3036
3036
|
block: e.block,
|
|
3037
3037
|
"font-families": b.value,
|
|
3038
|
-
onUpdate:
|
|
3039
|
-
}, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (o(),
|
|
3038
|
+
onUpdate: S
|
|
3039
|
+
}, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (o(), v(ka, {
|
|
3040
3040
|
key: 11,
|
|
3041
3041
|
block: e.block,
|
|
3042
|
-
onUpdate:
|
|
3043
|
-
}, null, 8, ["block"])) : d.value === "html" ? (o(),
|
|
3042
|
+
onUpdate: S
|
|
3043
|
+
}, null, 8, ["block"])) : d.value === "html" ? (o(), v($r, {
|
|
3044
3044
|
key: 12,
|
|
3045
3045
|
block: e.block,
|
|
3046
|
-
onUpdate:
|
|
3047
|
-
}, null, 8, ["block"])) : d.value === "countdown" ? (o(),
|
|
3046
|
+
onUpdate: S
|
|
3047
|
+
}, null, 8, ["block"])) : d.value === "countdown" ? (o(), v(C(r), {
|
|
3048
3048
|
key: 13,
|
|
3049
3049
|
block: e.block,
|
|
3050
3050
|
"font-families": b.value,
|
|
3051
|
-
onUpdate:
|
|
3052
|
-
}, null, 8, ["block", "font-families"])) :
|
|
3051
|
+
onUpdate: S
|
|
3052
|
+
}, null, 8, ["block", "font-families"])) : _("", !0), E(ar, {
|
|
3053
3053
|
block: e.block,
|
|
3054
3054
|
"is-first-section": d.value === "paragraph",
|
|
3055
|
-
onUpdate:
|
|
3055
|
+
onUpdate: S
|
|
3056
3056
|
}, null, 8, ["block", "is-first-section"])])], 8, Wo));
|
|
3057
3057
|
}
|
|
3058
3058
|
}), $o = /* @__PURE__ */ e({ default: () => es }), es = /*#__PURE__*/ $e(Qo, [["__scopeId", "data-v-e2d2c22f"]]);
|
|
3059
3059
|
export { es as default, Y as i, $ as n, X as r, $o as t };
|
|
3060
3060
|
|
|
3061
|
-
//# sourceMappingURL=Toolbar-
|
|
3061
|
+
//# sourceMappingURL=Toolbar-CdpsvNOR.js.map
|