@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,32 +1,32 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
2
|
-
import {
|
|
3
|
-
import { a as E, o as D } from "./runtime-dom.esm-bundler-
|
|
4
|
-
import { At as O, C as k, S as A, X as j, Y as M, at as N, i as P, jt as F, n as ee, p as te, pt as ne, r as re, rt as I, t as ie, u as ae, vt as oe } from "./dist-
|
|
5
|
-
import { C as se, O as ce, R as le, b as ue, c as de, d as fe, f as pe, g as me, h as he, i as ge, l as _e, m as L, o as ve, p as R, r as ye, u as z, x as be } from "./socialIcons-
|
|
6
|
-
import { _ as xe } from "./dist-
|
|
7
|
-
import { $ as Se, C as Ce, L as we, P as Te, W as Ee, d as De, g as Oe, h as ke, n as Ae, p as je, v as Me, x as Ne } from "./keys-
|
|
8
|
-
import { t as B } from "./useI18n-
|
|
9
|
-
import { o as Pe } from "./usePopoverPosition-
|
|
10
|
-
import { t as Fe } from "./createLucideIcon-
|
|
11
|
-
import { c as V } from "./LogicTagInsertButton-
|
|
12
|
-
import { t as Ie } from "./chevron-down-
|
|
13
|
-
import { t as Le } from "./circle-alert-
|
|
14
|
-
import { n as Re, t as ze } from "./blockTypeIcons-
|
|
15
|
-
import { n as Be } from "./upload-
|
|
16
|
-
import { t as Ve } from "./image-
|
|
17
|
-
import { t as He } from "./info-
|
|
18
|
-
import { t as Ue } from "./link-
|
|
19
|
-
import { n as We, t as Ge } from "./smartphone-
|
|
20
|
-
import { n as H, t as Ke } from "./refresh-cw-
|
|
21
|
-
import { n as qe, r as Je, t as Ye } from "./text-align-start-
|
|
22
|
-
import { t as Xe } from "./trash-
|
|
23
|
-
import { t as Ze } from "./x-
|
|
2
|
+
import { $ as t, C as n, H as r, I as i, Mt as a, N as o, Nt as s, P as c, U as l, X as u, Z as d, _ as f, c as p, d as m, f as h, g, j as _, jt as v, l as y, r as b, st as x, u as S, v as C, y as w, z as T } from "./vue.runtime.esm-bundler-CnEeTfhs.js";
|
|
3
|
+
import { a as E, o as D } from "./runtime-dom.esm-bundler-BURR-bj5.js";
|
|
4
|
+
import { At as O, C as k, S as A, X as j, Y as M, at as N, i as P, jt as F, n as ee, p as te, pt as ne, r as re, rt as I, t as ie, u as ae, vt as oe } from "./dist-CKi_npZM.js";
|
|
5
|
+
import { C as se, O as ce, R as le, b as ue, c as de, d as fe, f as pe, g as me, h as he, i as ge, l as _e, m as L, o as ve, p as R, r as ye, u as z, x as be } from "./socialIcons-D7MGsg0d.js";
|
|
6
|
+
import { _ as xe } from "./dist-CVy-7PHQ.js";
|
|
7
|
+
import { $ as Se, C as Ce, L as we, P as Te, W as Ee, d as De, g as Oe, h as ke, n as Ae, p as je, v as Me, x as Ne } from "./keys-BgRERHzu.js";
|
|
8
|
+
import { t as B } from "./useI18n-BBrHTdu8.js";
|
|
9
|
+
import { o as Pe } from "./usePopoverPosition-DV1PxL66.js";
|
|
10
|
+
import { t as Fe } from "./createLucideIcon-CvhTA2KG.js";
|
|
11
|
+
import { c as V } from "./LogicTagInsertButton-CfscnwCn.js";
|
|
12
|
+
import { t as Ie } from "./chevron-down-DfAAfILv.js";
|
|
13
|
+
import { t as Le } from "./circle-alert-CShJwVFv.js";
|
|
14
|
+
import { n as Re, t as ze } from "./blockTypeIcons-BHjlPnPf.js";
|
|
15
|
+
import { n as Be } from "./upload-DuFEOi_0.js";
|
|
16
|
+
import { t as Ve } from "./image-BDiRFzSd.js";
|
|
17
|
+
import { t as He } from "./info-Cxi3-Kh9.js";
|
|
18
|
+
import { t as Ue } from "./link-ju_2Cmir.js";
|
|
19
|
+
import { n as We, t as Ge } from "./smartphone-Bx6u_tjn.js";
|
|
20
|
+
import { n as H, t as Ke } from "./refresh-cw-xnro7_Sk.js";
|
|
21
|
+
import { n as qe, r as Je, t as Ye } from "./text-align-start-CGacJ9Vw.js";
|
|
22
|
+
import { t as Xe } from "./trash-DxCd7zIy.js";
|
|
23
|
+
import { t as Ze } from "./x-BpfG7v9g.js";
|
|
24
24
|
import { t as Qe } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
25
25
|
import { _ as $e, b as et, c as tt, g as U, h as W, m as G, p as K, r as nt, v as rt } from "./styleConstants-B8xVRiwX.js";
|
|
26
|
-
import { t as it } from "./MergeTagTextarea-
|
|
27
|
-
import { t as q } from "./ToggleSwitch-
|
|
28
|
-
import { n as at, t as ot } from "./withCurrentFont-
|
|
29
|
-
import { t as J } from "./MergeTagInput-
|
|
26
|
+
import { t as it } from "./MergeTagTextarea-CPFEjJZd.js";
|
|
27
|
+
import { t as q } from "./ToggleSwitch-JykPyD_8.js";
|
|
28
|
+
import { n as at, t as ot } from "./withCurrentFont-B22FXAF5.js";
|
|
29
|
+
import { t as J } from "./MergeTagInput-B9dtUthD.js";
|
|
30
30
|
var st = Fe({
|
|
31
31
|
name: "lock-open",
|
|
32
32
|
size: 24,
|
|
@@ -114,26 +114,26 @@ var st = Fe({
|
|
|
114
114
|
},
|
|
115
115
|
emits: ["update:modelValue"],
|
|
116
116
|
setup(e, { emit: t }) {
|
|
117
|
-
let n = e, r = t,
|
|
117
|
+
let n = e, r = t, c = p(() => n.options.findIndex((e) => e.value === n.modelValue)), l = p(() => `translateX(${Math.max(c.value, 0) * 100}%)`);
|
|
118
118
|
return (t, n) => (_(), h("div", {
|
|
119
119
|
role: "radiogroup",
|
|
120
120
|
class: "tpl:relative tpl:grid tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1",
|
|
121
|
-
style:
|
|
121
|
+
style: a({
|
|
122
122
|
gridTemplateColumns: `repeat(${e.options.length}, 1fr)`,
|
|
123
123
|
backgroundColor: "var(--tpl-bg-hover)"
|
|
124
124
|
})
|
|
125
|
-
}, [
|
|
125
|
+
}, [c.value >= 0 ? (_(), h("div", {
|
|
126
126
|
key: 0,
|
|
127
127
|
class: "tpl:absolute tpl:inset-y-1 tpl:rounded-[var(--tpl-radius-sm)]",
|
|
128
|
-
style:
|
|
128
|
+
style: a({
|
|
129
129
|
left: "4px",
|
|
130
130
|
width: `calc((100% - 8px) / ${e.options.length})`,
|
|
131
|
-
transform:
|
|
131
|
+
transform: l.value,
|
|
132
132
|
backgroundColor: "var(--tpl-bg)",
|
|
133
133
|
boxShadow: "var(--tpl-shadow)",
|
|
134
134
|
transition: "transform 120ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
135
135
|
})
|
|
136
|
-
}, null, 4)) : m("", !0), (_(!0), h(
|
|
136
|
+
}, null, 4)) : m("", !0), (_(!0), h(b, null, o(e.options, (t) => (_(), h("button", {
|
|
137
137
|
key: t.value,
|
|
138
138
|
role: "radio",
|
|
139
139
|
"aria-checked": e.modelValue === t.value,
|
|
@@ -141,7 +141,7 @@ var st = Fe({
|
|
|
141
141
|
disabled: t.disabled,
|
|
142
142
|
"aria-disabled": t.disabled ? "true" : void 0,
|
|
143
143
|
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",
|
|
144
|
-
style:
|
|
144
|
+
style: a({
|
|
145
145
|
color: t.disabled ? "var(--tpl-text-dim)" : e.modelValue === t.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
146
146
|
transition: "color 120ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
147
147
|
}),
|
|
@@ -151,7 +151,7 @@ var st = Fe({
|
|
|
151
151
|
key: 0,
|
|
152
152
|
size: 14,
|
|
153
153
|
"stroke-width": 2
|
|
154
|
-
})) : (_(), h("span", dt,
|
|
154
|
+
})) : (_(), h("span", dt, s(t.label), 1))], 12, ut))), 128))], 4));
|
|
155
155
|
}
|
|
156
156
|
}), ft = { class: "tpl:flex tpl:items-stretch" }, pt = [
|
|
157
157
|
"data-testid",
|
|
@@ -168,21 +168,21 @@ var st = Fe({
|
|
|
168
168
|
testid: {}
|
|
169
169
|
},
|
|
170
170
|
emits: ["update:modelValue"],
|
|
171
|
-
setup(e, { emit:
|
|
172
|
-
let
|
|
173
|
-
function
|
|
171
|
+
setup(e, { emit: t }) {
|
|
172
|
+
let n = t;
|
|
173
|
+
function r(e) {
|
|
174
174
|
let t = e.target;
|
|
175
|
-
t.validity?.badInput ||
|
|
175
|
+
t.validity?.badInput || n("update:modelValue", Number(t.value));
|
|
176
176
|
}
|
|
177
|
-
return (
|
|
177
|
+
return (t, n) => (_(), h("div", ft, [y("input", {
|
|
178
178
|
type: "number",
|
|
179
179
|
"data-testid": e.testid,
|
|
180
|
-
class:
|
|
180
|
+
class: v(x(G)),
|
|
181
181
|
value: e.modelValue,
|
|
182
182
|
min: e.min,
|
|
183
183
|
max: e.max,
|
|
184
|
-
onInput:
|
|
185
|
-
}, null, 42, pt), y("span", { class:
|
|
184
|
+
onInput: r
|
|
185
|
+
}, null, 42, pt), y("span", { class: v(x(W)) }, s(e.suffix), 3)]));
|
|
186
186
|
}
|
|
187
187
|
}), mt = [
|
|
188
188
|
"aria-pressed",
|
|
@@ -198,21 +198,21 @@ var st = Fe({
|
|
|
198
198
|
testid: {}
|
|
199
199
|
},
|
|
200
200
|
emits: ["toggle"],
|
|
201
|
-
setup(e, { emit:
|
|
202
|
-
let
|
|
203
|
-
return (
|
|
201
|
+
setup(e, { emit: t }) {
|
|
202
|
+
let n = t;
|
|
203
|
+
return (t, r) => (_(), h("button", {
|
|
204
204
|
type: "button",
|
|
205
|
-
class:
|
|
205
|
+
class: v(["tpl:flex tpl:h-7 tpl:w-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", e.linked ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
|
|
206
206
|
"aria-pressed": e.linked ? "true" : "false",
|
|
207
207
|
"aria-label": e.linked ? e.unlinkLabel : e.linkLabel,
|
|
208
208
|
title: e.linked ? e.unlinkLabel : e.linkLabel,
|
|
209
209
|
"data-testid": e.testid,
|
|
210
|
-
onClick:
|
|
211
|
-
}, [e.linked ? (_(), S(
|
|
210
|
+
onClick: r[0] ||= (e) => n("toggle")
|
|
211
|
+
}, [e.linked ? (_(), S(x(Ue), {
|
|
212
212
|
key: 0,
|
|
213
213
|
size: 14,
|
|
214
214
|
"stroke-width": 2
|
|
215
|
-
})) : (_(), S(
|
|
215
|
+
})) : (_(), S(x(lt), {
|
|
216
216
|
key: 1,
|
|
217
217
|
size: 14,
|
|
218
218
|
"stroke-width": 2
|
|
@@ -229,68 +229,68 @@ var st = Fe({
|
|
|
229
229
|
},
|
|
230
230
|
emits: ["update:modelValue"],
|
|
231
231
|
setup(e, { emit: n }) {
|
|
232
|
-
let r = e, i = n, { t:
|
|
232
|
+
let r = e, i = n, { t: a } = B(), o = {
|
|
233
233
|
width: 0,
|
|
234
234
|
style: "solid",
|
|
235
235
|
color: "#000000"
|
|
236
236
|
};
|
|
237
|
-
function
|
|
237
|
+
function c(e, t) {
|
|
238
238
|
return e.width === t.width && e.style === t.style && e.color === t.color;
|
|
239
239
|
}
|
|
240
|
-
let
|
|
240
|
+
let l = p(() => {
|
|
241
241
|
let e = r.modelValue;
|
|
242
|
-
return !e || P.every((t) =>
|
|
243
|
-
}),
|
|
244
|
-
T(
|
|
245
|
-
!e &&
|
|
242
|
+
return !e || P.every((t) => c(e[t], e.top));
|
|
243
|
+
}), u = t(l.value);
|
|
244
|
+
T(l, (e) => {
|
|
245
|
+
!e && u.value && (u.value = !1);
|
|
246
246
|
});
|
|
247
|
-
let
|
|
248
|
-
let e =
|
|
249
|
-
return r.modelValue?.[e] ??
|
|
247
|
+
let d = t("top"), g = p(() => {
|
|
248
|
+
let e = u.value ? "top" : d.value;
|
|
249
|
+
return r.modelValue?.[e] ?? o;
|
|
250
250
|
}), S = (e) => !!e && e.width > 0;
|
|
251
251
|
function C(e) {
|
|
252
|
-
if (
|
|
252
|
+
if (u.value) {
|
|
253
253
|
i("update:modelValue", S(e) ? F(e) : void 0);
|
|
254
254
|
return;
|
|
255
255
|
}
|
|
256
256
|
let t = {
|
|
257
|
-
...r.modelValue ?? F(
|
|
258
|
-
[
|
|
257
|
+
...r.modelValue ?? F(o),
|
|
258
|
+
[d.value]: e
|
|
259
259
|
}, n = P.some((e) => S(t[e]));
|
|
260
260
|
i("update:modelValue", n ? t : void 0);
|
|
261
261
|
}
|
|
262
262
|
function w(e) {
|
|
263
263
|
C({
|
|
264
|
-
...
|
|
264
|
+
...g.value,
|
|
265
265
|
width: e > 0 ? e : 0
|
|
266
266
|
});
|
|
267
267
|
}
|
|
268
268
|
function E(e) {
|
|
269
269
|
C({
|
|
270
|
-
...
|
|
270
|
+
...g.value,
|
|
271
271
|
...e
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
274
|
function D() {
|
|
275
|
-
if (
|
|
276
|
-
|
|
275
|
+
if (u.value) {
|
|
276
|
+
u.value = !1;
|
|
277
277
|
return;
|
|
278
278
|
}
|
|
279
|
-
|
|
279
|
+
u.value = !0;
|
|
280
280
|
let e = r.modelValue;
|
|
281
281
|
if (!e) return;
|
|
282
|
-
let t = S(e[
|
|
282
|
+
let t = S(e[d.value]) ? e[d.value] : P.map((t) => e[t]).find(S);
|
|
283
283
|
i("update:modelValue", t ? F(t) : void 0);
|
|
284
284
|
}
|
|
285
285
|
let O = p(() => P.map((e) => ({
|
|
286
286
|
value: e,
|
|
287
|
-
label:
|
|
287
|
+
label: a.spacingControl[e]
|
|
288
288
|
})));
|
|
289
|
-
return (
|
|
290
|
-
y("div", _t, [y("span", vt,
|
|
291
|
-
linked:
|
|
292
|
-
"link-label":
|
|
293
|
-
"unlink-label":
|
|
289
|
+
return (t, n) => (_(), h("div", gt, [
|
|
290
|
+
y("div", _t, [y("span", vt, s(x(a).blockSettings.border), 1), f(ht, {
|
|
291
|
+
linked: u.value,
|
|
292
|
+
"link-label": x(a).blockSettings.linkSides,
|
|
293
|
+
"unlink-label": x(a).blockSettings.unlinkSides,
|
|
294
294
|
testid: `${e.testidPrefix}-border-link`,
|
|
295
295
|
onToggle: D
|
|
296
296
|
}, null, 8, [
|
|
@@ -299,38 +299,38 @@ var st = Fe({
|
|
|
299
299
|
"unlink-label",
|
|
300
300
|
"testid"
|
|
301
301
|
])]),
|
|
302
|
-
|
|
302
|
+
u.value ? m("", !0) : (_(), h("div", yt, [y("label", { class: v(x(U)) }, s(x(a).blockSettings.borderSide), 3), f(Y, {
|
|
303
303
|
options: O.value,
|
|
304
|
-
"model-value":
|
|
305
|
-
"onUpdate:modelValue":
|
|
304
|
+
"model-value": d.value,
|
|
305
|
+
"onUpdate:modelValue": n[0] ||= (e) => d.value = e
|
|
306
306
|
}, null, 8, ["options", "model-value"])])),
|
|
307
|
-
y("div", bt, [y("label", { class:
|
|
308
|
-
"model-value":
|
|
307
|
+
y("div", bt, [y("label", { class: v(x(U)) }, s(x(a).blockSettings.borderWidth), 3), f(X, {
|
|
308
|
+
"model-value": g.value.width,
|
|
309
309
|
min: 0,
|
|
310
310
|
suffix: "px",
|
|
311
311
|
testid: `${e.testidPrefix}-border-width-input`,
|
|
312
312
|
"onUpdate:modelValue": w
|
|
313
313
|
}, null, 8, ["model-value", "testid"])]),
|
|
314
|
-
|
|
314
|
+
g.value.width > 0 ? (_(), h(b, { key: 1 }, [y("div", xt, [y("label", { class: v(x(U)) }, s(x(a).blockSettings.borderStyle), 3), f(Y, {
|
|
315
315
|
options: [
|
|
316
316
|
{
|
|
317
317
|
value: "solid",
|
|
318
|
-
label:
|
|
318
|
+
label: x(a).divider.solid
|
|
319
319
|
},
|
|
320
320
|
{
|
|
321
321
|
value: "dashed",
|
|
322
|
-
label:
|
|
322
|
+
label: x(a).divider.dashed
|
|
323
323
|
},
|
|
324
324
|
{
|
|
325
325
|
value: "dotted",
|
|
326
|
-
label:
|
|
326
|
+
label: x(a).divider.dotted
|
|
327
327
|
}
|
|
328
328
|
],
|
|
329
|
-
"model-value":
|
|
330
|
-
"onUpdate:modelValue":
|
|
331
|
-
}, null, 8, ["options", "model-value"])]), y("div", null, [y("label", { class:
|
|
332
|
-
"model-value":
|
|
333
|
-
"onUpdate:modelValue":
|
|
329
|
+
"model-value": g.value.style,
|
|
330
|
+
"onUpdate:modelValue": n[1] ||= (e) => E({ style: e })
|
|
331
|
+
}, null, 8, ["options", "model-value"])]), y("div", null, [y("label", { class: v(x(U)) }, s(x(a).blockSettings.borderColor), 3), f(V, {
|
|
332
|
+
"model-value": g.value.color,
|
|
333
|
+
"onUpdate:modelValue": n[2] ||= (e) => E({ color: e })
|
|
334
334
|
}, null, 8, ["model-value"])])], 64)) : m("", !0)
|
|
335
335
|
]));
|
|
336
336
|
}
|
|
@@ -346,8 +346,8 @@ var st = Fe({
|
|
|
346
346
|
max: {}
|
|
347
347
|
},
|
|
348
348
|
emits: ["update:modelValue"],
|
|
349
|
-
setup(e, { emit:
|
|
350
|
-
let
|
|
349
|
+
setup(e, { emit: n }) {
|
|
350
|
+
let r = e, i = n, { t: a } = B(), c = {
|
|
351
351
|
topLeft: "cornerTopLeft",
|
|
352
352
|
topRight: "cornerTopRight",
|
|
353
353
|
bottomRight: "cornerBottomRight",
|
|
@@ -358,14 +358,14 @@ var st = Fe({
|
|
|
358
358
|
"bottomLeft",
|
|
359
359
|
"bottomRight"
|
|
360
360
|
], u = p(() => {
|
|
361
|
-
let e =
|
|
361
|
+
let e = r.modelValue ?? 0;
|
|
362
362
|
return typeof e == "number" ? {
|
|
363
363
|
topLeft: e,
|
|
364
364
|
topRight: e,
|
|
365
365
|
bottomRight: e,
|
|
366
366
|
bottomLeft: e
|
|
367
367
|
} : e;
|
|
368
|
-
}), d = p(() => re.every((e) => u.value[e] === u.value.topLeft)), m =
|
|
368
|
+
}), d = p(() => re.every((e) => u.value[e] === u.value.topLeft)), m = t(d.value);
|
|
369
369
|
T(d, (e) => {
|
|
370
370
|
!e && m.value && (m.value = !1);
|
|
371
371
|
});
|
|
@@ -373,21 +373,21 @@ var st = Fe({
|
|
|
373
373
|
return Number.isFinite(e) && e >= 0;
|
|
374
374
|
}
|
|
375
375
|
function v(e) {
|
|
376
|
-
g(e) &&
|
|
376
|
+
g(e) && i("update:modelValue", e);
|
|
377
377
|
}
|
|
378
378
|
function C(e, t) {
|
|
379
|
-
g(t) &&
|
|
379
|
+
g(t) && i("update:modelValue", {
|
|
380
380
|
...u.value,
|
|
381
381
|
[e]: t
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
384
|
function w() {
|
|
385
|
-
m.value = !m.value, m.value &&
|
|
385
|
+
m.value = !m.value, m.value && i("update:modelValue", u.value.topLeft);
|
|
386
386
|
}
|
|
387
|
-
return (t, n) => (_(), h("div", Ct, [y("div", wt, [y("span", Tt,
|
|
387
|
+
return (t, n) => (_(), h("div", Ct, [y("div", wt, [y("span", Tt, s(e.label), 1), f(ht, {
|
|
388
388
|
linked: m.value,
|
|
389
|
-
"link-label":
|
|
390
|
-
"unlink-label":
|
|
389
|
+
"link-label": x(a).blockSettings.linkCorners,
|
|
390
|
+
"unlink-label": x(a).blockSettings.unlinkCorners,
|
|
391
391
|
testid: `${e.testidPrefix}-border-radius-link`,
|
|
392
392
|
onToggle: w
|
|
393
393
|
}, null, 8, [
|
|
@@ -407,7 +407,7 @@ var st = Fe({
|
|
|
407
407
|
"model-value",
|
|
408
408
|
"max",
|
|
409
409
|
"testid"
|
|
410
|
-
])) : (_(), h("div", Et, [(_(), h(
|
|
410
|
+
])) : (_(), h("div", Et, [(_(), h(b, null, o(l, (t) => y("div", { key: t }, [y("label", Dt, s(x(a).blockSettings[c[t]]), 1), f(X, {
|
|
411
411
|
"model-value": u.value[t],
|
|
412
412
|
min: 0,
|
|
413
413
|
max: e.max,
|
|
@@ -431,113 +431,113 @@ var st = Fe({
|
|
|
431
431
|
fontFamilies: {}
|
|
432
432
|
},
|
|
433
433
|
emits: ["update"],
|
|
434
|
-
setup(e, { emit:
|
|
435
|
-
let
|
|
436
|
-
function
|
|
437
|
-
|
|
434
|
+
setup(e, { emit: t }) {
|
|
435
|
+
let n = e, r = t, { t: i } = B(), a = p(() => n.block.width === "full" ? "full" : typeof n.block.width == "number" ? "custom" : "auto");
|
|
436
|
+
function c(e, t) {
|
|
437
|
+
r("update", { [e]: t });
|
|
438
438
|
}
|
|
439
|
-
function
|
|
440
|
-
e === "full" ?
|
|
439
|
+
function l(e) {
|
|
440
|
+
e === "full" ? c("width", "full") : e === "custom" ? c("width", typeof n.block.width == "number" ? n.block.width : Jt) : c("width", void 0);
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function u(e) {
|
|
443
443
|
let t = Number(e);
|
|
444
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
445
|
-
}
|
|
446
|
-
return (
|
|
447
|
-
y("div", kt, [y("label", { class:
|
|
448
|
-
class:
|
|
449
|
-
value:
|
|
450
|
-
onChange:
|
|
451
|
-
}, [y("option", jt,
|
|
444
|
+
!Number.isFinite(t) || t <= 0 || c("width", t);
|
|
445
|
+
}
|
|
446
|
+
return (t, n) => (_(), h(b, null, [
|
|
447
|
+
y("div", kt, [y("label", { class: v(x(U)) }, s(x(i).button.fontFamily), 3), y("select", {
|
|
448
|
+
class: v(x(K)),
|
|
449
|
+
value: x(ot)(e.block.fontFamily),
|
|
450
|
+
onChange: n[0] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
451
|
+
}, [y("option", jt, s(x(i).button.inheritFont), 1), (_(!0), h(b, null, o(e.fontFamilies, (e) => (_(), h("option", {
|
|
452
452
|
key: e.value,
|
|
453
453
|
value: e.value
|
|
454
|
-
},
|
|
455
|
-
y("div", Nt, [y("label", { class:
|
|
454
|
+
}, s(e.label), 9, Mt))), 128))], 42, At)]),
|
|
455
|
+
y("div", Nt, [y("label", { class: v(x(U)) }, s(x(i).button.text), 3), f(J, {
|
|
456
456
|
"model-value": e.block.text,
|
|
457
457
|
type: "text",
|
|
458
|
-
"onUpdate:modelValue":
|
|
458
|
+
"onUpdate:modelValue": n[1] ||= (e) => c("text", e)
|
|
459
459
|
}, null, 8, ["model-value"])]),
|
|
460
460
|
y("div", Pt, [
|
|
461
|
-
y("label", { class:
|
|
461
|
+
y("label", { class: v(x(U)) }, s(x(i).button.url), 3),
|
|
462
462
|
f(J, {
|
|
463
463
|
"model-value": e.block.url,
|
|
464
464
|
type: "url",
|
|
465
|
-
placeholder:
|
|
466
|
-
"onUpdate:modelValue":
|
|
465
|
+
placeholder: x(i).button.urlPlaceholder,
|
|
466
|
+
"onUpdate:modelValue": n[2] ||= (e) => c("url", e)
|
|
467
467
|
}, null, 8, ["model-value", "placeholder"]),
|
|
468
468
|
e.block.url ? (_(), S(q, {
|
|
469
469
|
key: 0,
|
|
470
470
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
471
471
|
"model-value": e.block.openInNewTab ?? !1,
|
|
472
|
-
label:
|
|
473
|
-
"onUpdate:modelValue":
|
|
472
|
+
label: x(i).button.openInNewTab,
|
|
473
|
+
"onUpdate:modelValue": n[3] ||= (e) => c("openInNewTab", e)
|
|
474
474
|
}, null, 8, ["model-value", "label"])) : m("", !0)
|
|
475
475
|
]),
|
|
476
|
-
y("div", Ft, [y("label", { class:
|
|
476
|
+
y("div", Ft, [y("label", { class: v(x(U)) }, s(x(i).button.background), 3), f(V, {
|
|
477
477
|
"model-value": e.block.backgroundColor,
|
|
478
478
|
"allow-transparent": "",
|
|
479
|
-
"onUpdate:modelValue":
|
|
479
|
+
"onUpdate:modelValue": n[4] ||= (e) => c("backgroundColor", e)
|
|
480
480
|
}, null, 8, ["model-value"])]),
|
|
481
|
-
y("div", It, [y("label", { class:
|
|
481
|
+
y("div", It, [y("label", { class: v(x(U)) }, s(x(i).button.textColor), 3), f(V, {
|
|
482
482
|
"model-value": e.block.textColor,
|
|
483
|
-
"onUpdate:modelValue":
|
|
483
|
+
"onUpdate:modelValue": n[5] ||= (e) => c("textColor", e)
|
|
484
484
|
}, null, 8, ["model-value"])]),
|
|
485
485
|
f(St, {
|
|
486
486
|
"model-value": e.block.border,
|
|
487
487
|
"testid-prefix": "button",
|
|
488
|
-
"onUpdate:modelValue":
|
|
488
|
+
"onUpdate:modelValue": n[6] ||= (e) => c("border", e)
|
|
489
489
|
}, null, 8, ["model-value"]),
|
|
490
490
|
f(Ot, {
|
|
491
491
|
"model-value": e.block.borderRadius,
|
|
492
|
-
label:
|
|
492
|
+
label: x(i).button.borderRadius,
|
|
493
493
|
max: 50,
|
|
494
494
|
"testid-prefix": "button",
|
|
495
|
-
"onUpdate:modelValue":
|
|
495
|
+
"onUpdate:modelValue": n[7] ||= (e) => c("borderRadius", e)
|
|
496
496
|
}, null, 8, ["model-value", "label"]),
|
|
497
|
-
y("div", Lt, [y("label", { class:
|
|
497
|
+
y("div", Lt, [y("label", { class: v(x(U)) }, s(x(i).button.fontSize), 3), y("div", Rt, [y("input", {
|
|
498
498
|
type: "number",
|
|
499
|
-
class:
|
|
499
|
+
class: v(x(G)),
|
|
500
500
|
value: e.block.fontSize,
|
|
501
501
|
min: "10",
|
|
502
502
|
max: "36",
|
|
503
|
-
onInput:
|
|
504
|
-
}, null, 42, zt), y("span", { class:
|
|
503
|
+
onInput: n[8] ||= (e) => c("fontSize", Number(e.target.value))
|
|
504
|
+
}, null, 42, zt), y("span", { class: v(x(W)) }, "px", 2)])]),
|
|
505
505
|
y("div", Bt, [
|
|
506
|
-
y("label", { class:
|
|
506
|
+
y("label", { class: v(x(U)) }, s(x(i).button.width), 3),
|
|
507
507
|
y("select", {
|
|
508
|
-
class:
|
|
509
|
-
value:
|
|
510
|
-
onChange:
|
|
508
|
+
class: v(x(K)),
|
|
509
|
+
value: a.value,
|
|
510
|
+
onChange: n[9] ||= (e) => l(e.target.value)
|
|
511
511
|
}, [
|
|
512
|
-
y("option", Ht,
|
|
513
|
-
y("option", Ut,
|
|
514
|
-
y("option", Wt,
|
|
512
|
+
y("option", Ht, s(x(i).button.widthAuto), 1),
|
|
513
|
+
y("option", Ut, s(x(i).button.fullWidth), 1),
|
|
514
|
+
y("option", Wt, s(x(i).button.widthCustom), 1)
|
|
515
515
|
], 42, Vt),
|
|
516
|
-
|
|
516
|
+
a.value === "custom" ? (_(), h("div", Gt, [y("input", {
|
|
517
517
|
type: "number",
|
|
518
|
-
class:
|
|
518
|
+
class: v(x(G)),
|
|
519
519
|
value: typeof e.block.width == "number" ? e.block.width : Jt,
|
|
520
520
|
min: "20",
|
|
521
|
-
onInput:
|
|
522
|
-
}, null, 42, Kt), y("span", { class:
|
|
521
|
+
onInput: n[10] ||= (e) => u(e.target.value)
|
|
522
|
+
}, null, 42, Kt), y("span", { class: v(x(W)) }, "px", 2)])) : m("", !0)
|
|
523
523
|
]),
|
|
524
|
-
y("div", qt, [y("label", { class:
|
|
524
|
+
y("div", qt, [y("label", { class: v(x(U)) }, s(x(i).title.align), 3), f(Y, {
|
|
525
525
|
options: [
|
|
526
526
|
{
|
|
527
527
|
value: "left",
|
|
528
|
-
label:
|
|
528
|
+
label: x(i).title.alignLeft
|
|
529
529
|
},
|
|
530
530
|
{
|
|
531
531
|
value: "center",
|
|
532
|
-
label:
|
|
532
|
+
label: x(i).title.alignCenter
|
|
533
533
|
},
|
|
534
534
|
{
|
|
535
535
|
value: "right",
|
|
536
|
-
label:
|
|
536
|
+
label: x(i).title.alignRight
|
|
537
537
|
}
|
|
538
538
|
],
|
|
539
539
|
"model-value": e.block.align ?? "center",
|
|
540
|
-
"onUpdate:modelValue":
|
|
540
|
+
"onUpdate:modelValue": n[11] ||= (e) => c("align", e)
|
|
541
541
|
}, null, 8, ["options", "model-value"])])
|
|
542
542
|
], 64));
|
|
543
543
|
}
|
|
@@ -549,13 +549,13 @@ var st = Fe({
|
|
|
549
549
|
},
|
|
550
550
|
emits: ["update:modelValue"],
|
|
551
551
|
setup(e, { emit: n }) {
|
|
552
|
-
let r = e, i = n, { t:
|
|
553
|
-
T(
|
|
554
|
-
!e &&
|
|
552
|
+
let r = e, i = n, { t: a } = B(), o = p(() => r.modelValue.top === r.modelValue.right && r.modelValue.right === r.modelValue.bottom && r.modelValue.bottom === r.modelValue.left), c = t(o.value);
|
|
553
|
+
T(o, (e) => {
|
|
554
|
+
!e && c.value && (c.value = !1);
|
|
555
555
|
});
|
|
556
|
-
function
|
|
556
|
+
function l(e, t) {
|
|
557
557
|
let n = r.modelValue[e], a = Math.max(0, n + t);
|
|
558
|
-
|
|
558
|
+
c.value ? i("update:modelValue", {
|
|
559
559
|
top: a,
|
|
560
560
|
right: a,
|
|
561
561
|
bottom: a,
|
|
@@ -565,9 +565,9 @@ var st = Fe({
|
|
|
565
565
|
[e]: a
|
|
566
566
|
});
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function u(e, t) {
|
|
569
569
|
let n = Math.max(0, t);
|
|
570
|
-
|
|
570
|
+
c.value ? i("update:modelValue", {
|
|
571
571
|
top: n,
|
|
572
572
|
right: n,
|
|
573
573
|
bottom: n,
|
|
@@ -577,8 +577,8 @@ var st = Fe({
|
|
|
577
577
|
[e]: n
|
|
578
578
|
});
|
|
579
579
|
}
|
|
580
|
-
function
|
|
581
|
-
if (
|
|
580
|
+
function d() {
|
|
581
|
+
if (c.value = !c.value, c.value) {
|
|
582
582
|
let e = r.modelValue.top;
|
|
583
583
|
i("update:modelValue", {
|
|
584
584
|
top: e,
|
|
@@ -588,29 +588,29 @@ var st = Fe({
|
|
|
588
588
|
});
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
-
return (
|
|
591
|
+
return (t, n) => (_(), h("div", Xt, [y("label", Zt, s(e.label), 1), y("div", Qt, [
|
|
592
592
|
y("div", $t, [
|
|
593
593
|
y("button", {
|
|
594
|
-
"aria-label":
|
|
595
|
-
class:
|
|
596
|
-
onClick:
|
|
597
|
-
}, [f(
|
|
594
|
+
"aria-label": x(a).spacingControl.decreaseTop,
|
|
595
|
+
class: v([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
596
|
+
onClick: n[0] ||= (e) => l("top", -1)
|
|
597
|
+
}, [f(x(Re), {
|
|
598
598
|
size: 12,
|
|
599
599
|
"stroke-width": 2
|
|
600
600
|
})], 10, en),
|
|
601
601
|
y("input", {
|
|
602
602
|
type: "number",
|
|
603
|
-
class:
|
|
603
|
+
class: v(vn),
|
|
604
604
|
value: e.modelValue.top,
|
|
605
|
-
"aria-label":
|
|
605
|
+
"aria-label": x(a).spacingControl.top,
|
|
606
606
|
min: "0",
|
|
607
|
-
onInput:
|
|
607
|
+
onInput: n[1] ||= (e) => u("top", Number(e.target.value))
|
|
608
608
|
}, null, 40, tn),
|
|
609
609
|
y("button", {
|
|
610
|
-
"aria-label":
|
|
611
|
-
class:
|
|
612
|
-
onClick:
|
|
613
|
-
}, [f(
|
|
610
|
+
"aria-label": x(a).spacingControl.increaseTop,
|
|
611
|
+
class: v([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
612
|
+
onClick: n[2] ||= (e) => l("top", 1)
|
|
613
|
+
}, [f(x(H), {
|
|
614
614
|
size: 12,
|
|
615
615
|
"stroke-width": 2
|
|
616
616
|
})], 10, nn)
|
|
@@ -618,66 +618,66 @@ var st = Fe({
|
|
|
618
618
|
y("div", rn, [
|
|
619
619
|
y("div", an, [
|
|
620
620
|
y("button", {
|
|
621
|
-
"aria-label":
|
|
622
|
-
class:
|
|
623
|
-
onClick:
|
|
624
|
-
}, [f(
|
|
621
|
+
"aria-label": x(a).spacingControl.decreaseLeft,
|
|
622
|
+
class: v([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
623
|
+
onClick: n[3] ||= (e) => l("left", -1)
|
|
624
|
+
}, [f(x(Re), {
|
|
625
625
|
size: 12,
|
|
626
626
|
"stroke-width": 2
|
|
627
627
|
})], 10, on),
|
|
628
628
|
y("input", {
|
|
629
629
|
type: "number",
|
|
630
|
-
class:
|
|
630
|
+
class: v(vn),
|
|
631
631
|
value: e.modelValue.left,
|
|
632
|
-
"aria-label":
|
|
632
|
+
"aria-label": x(a).spacingControl.left,
|
|
633
633
|
min: "0",
|
|
634
|
-
onInput:
|
|
634
|
+
onInput: n[4] ||= (e) => u("left", Number(e.target.value))
|
|
635
635
|
}, null, 40, sn),
|
|
636
636
|
y("button", {
|
|
637
|
-
"aria-label":
|
|
638
|
-
class:
|
|
639
|
-
onClick:
|
|
640
|
-
}, [f(
|
|
637
|
+
"aria-label": x(a).spacingControl.increaseLeft,
|
|
638
|
+
class: v([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
639
|
+
onClick: n[5] ||= (e) => l("left", 1)
|
|
640
|
+
}, [f(x(H), {
|
|
641
641
|
size: 12,
|
|
642
642
|
"stroke-width": 2
|
|
643
643
|
})], 10, cn)
|
|
644
644
|
]),
|
|
645
645
|
y("button", {
|
|
646
|
-
class:
|
|
647
|
-
"aria-label":
|
|
648
|
-
title:
|
|
649
|
-
onClick:
|
|
650
|
-
}, [
|
|
646
|
+
class: v(["tpl:flex tpl:h-8 tpl:w-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", c.value ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
|
|
647
|
+
"aria-label": c.value ? x(a).spacingControl.unlock : x(a).spacingControl.lockAll,
|
|
648
|
+
title: c.value ? x(a).spacingControl.unlock : x(a).spacingControl.lockAll,
|
|
649
|
+
onClick: d
|
|
650
|
+
}, [c.value ? (_(), S(x(ct), {
|
|
651
651
|
key: 0,
|
|
652
652
|
size: 14,
|
|
653
653
|
"stroke-width": 2
|
|
654
|
-
})) : (_(), S(
|
|
654
|
+
})) : (_(), S(x(st), {
|
|
655
655
|
key: 1,
|
|
656
656
|
size: 14,
|
|
657
657
|
"stroke-width": 2
|
|
658
658
|
}))], 10, ln),
|
|
659
659
|
y("div", un, [
|
|
660
660
|
y("button", {
|
|
661
|
-
"aria-label":
|
|
662
|
-
class:
|
|
663
|
-
onClick:
|
|
664
|
-
}, [f(
|
|
661
|
+
"aria-label": x(a).spacingControl.decreaseRight,
|
|
662
|
+
class: v([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
663
|
+
onClick: n[6] ||= (e) => l("right", -1)
|
|
664
|
+
}, [f(x(Re), {
|
|
665
665
|
size: 12,
|
|
666
666
|
"stroke-width": 2
|
|
667
667
|
})], 10, dn),
|
|
668
668
|
y("input", {
|
|
669
669
|
type: "number",
|
|
670
|
-
class:
|
|
670
|
+
class: v(vn),
|
|
671
671
|
value: e.modelValue.right,
|
|
672
|
-
"aria-label":
|
|
672
|
+
"aria-label": x(a).spacingControl.right,
|
|
673
673
|
min: "0",
|
|
674
|
-
onInput:
|
|
674
|
+
onInput: n[7] ||= (e) => u("right", Number(e.target.value))
|
|
675
675
|
}, null, 40, fn),
|
|
676
676
|
y("button", {
|
|
677
|
-
"aria-label":
|
|
678
|
-
class:
|
|
679
|
-
onClick:
|
|
680
|
-
}, [f(
|
|
677
|
+
"aria-label": x(a).spacingControl.increaseRight,
|
|
678
|
+
class: v([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
679
|
+
onClick: n[8] ||= (e) => l("right", 1)
|
|
680
|
+
}, [f(x(H), {
|
|
681
681
|
size: 12,
|
|
682
682
|
"stroke-width": 2
|
|
683
683
|
})], 10, pn)
|
|
@@ -685,26 +685,26 @@ var st = Fe({
|
|
|
685
685
|
]),
|
|
686
686
|
y("div", mn, [
|
|
687
687
|
y("button", {
|
|
688
|
-
"aria-label":
|
|
689
|
-
class:
|
|
690
|
-
onClick:
|
|
691
|
-
}, [f(
|
|
688
|
+
"aria-label": x(a).spacingControl.decreaseBottom,
|
|
689
|
+
class: v([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
690
|
+
onClick: n[9] ||= (e) => l("bottom", -1)
|
|
691
|
+
}, [f(x(Re), {
|
|
692
692
|
size: 12,
|
|
693
693
|
"stroke-width": 2
|
|
694
694
|
})], 10, hn),
|
|
695
695
|
y("input", {
|
|
696
696
|
type: "number",
|
|
697
|
-
class:
|
|
697
|
+
class: v(vn),
|
|
698
698
|
value: e.modelValue.bottom,
|
|
699
|
-
"aria-label":
|
|
699
|
+
"aria-label": x(a).spacingControl.bottom,
|
|
700
700
|
min: "0",
|
|
701
|
-
onInput:
|
|
701
|
+
onInput: n[10] ||= (e) => u("bottom", Number(e.target.value))
|
|
702
702
|
}, null, 40, gn),
|
|
703
703
|
y("button", {
|
|
704
|
-
"aria-label":
|
|
705
|
-
class:
|
|
706
|
-
onClick:
|
|
707
|
-
}, [f(
|
|
704
|
+
"aria-label": x(a).spacingControl.increaseBottom,
|
|
705
|
+
class: v([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
706
|
+
onClick: n[11] ||= (e) => l("bottom", 1)
|
|
707
|
+
}, [f(x(H), {
|
|
708
708
|
size: 12,
|
|
709
709
|
"stroke-width": 2
|
|
710
710
|
})], 10, _n)
|
|
@@ -714,12 +714,12 @@ var st = Fe({
|
|
|
714
714
|
}), [["__scopeId", "data-v-69591c1e"]]);
|
|
715
715
|
// src/composables/useNaturalImageSize.ts
|
|
716
716
|
function bn(e) {
|
|
717
|
-
let
|
|
717
|
+
let n = t(null), r = () => {};
|
|
718
718
|
return T(e, (e) => {
|
|
719
|
-
|
|
720
|
-
|
|
719
|
+
r(), n.value = null, e && (r = pe(e, (e) => {
|
|
720
|
+
n.value = e;
|
|
721
721
|
}));
|
|
722
|
-
}, { immediate: !0 }),
|
|
722
|
+
}, { immediate: !0 }), n;
|
|
723
723
|
}
|
|
724
724
|
function xn() {
|
|
725
725
|
let e = n(Ne, null);
|
|
@@ -752,12 +752,12 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
752
752
|
},
|
|
753
753
|
emits: ["update:modelValue"],
|
|
754
754
|
setup(e, { emit: r }) {
|
|
755
|
-
let i = e,
|
|
756
|
-
|
|
755
|
+
let i = e, a = r, { t: c } = B(), l = n(Te, te.liquid), d = p(() => typeof i.modelValue?.url == "string" ? i.modelValue.url : ""), C = p(() => d.value.trim() !== ""), w = xn(), T;
|
|
756
|
+
u(() => clearTimeout(T));
|
|
757
757
|
function E(e) {
|
|
758
|
-
i.measure && !A(e,
|
|
758
|
+
i.measure && !A(e, l) && (T = setTimeout(async () => {
|
|
759
759
|
let t = await w(e), n = i.modelValue;
|
|
760
|
-
t && n?.url === e &&
|
|
760
|
+
t && n?.url === e && a("update:modelValue", {
|
|
761
761
|
...n,
|
|
762
762
|
...L(t)
|
|
763
763
|
});
|
|
@@ -765,18 +765,18 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
765
765
|
}
|
|
766
766
|
function D(e, t = null) {
|
|
767
767
|
if (clearTimeout(T), e.trim() === "") {
|
|
768
|
-
|
|
768
|
+
a("update:modelValue", void 0);
|
|
769
769
|
return;
|
|
770
770
|
}
|
|
771
|
-
let { naturalWidth: n, naturalHeight: r, ...
|
|
772
|
-
|
|
773
|
-
...
|
|
771
|
+
let { naturalWidth: n, naturalHeight: r, ...o } = i.modelValue ?? k(e), s = i.measure ? t : null;
|
|
772
|
+
a("update:modelValue", {
|
|
773
|
+
...o,
|
|
774
774
|
url: e,
|
|
775
|
-
...
|
|
776
|
-
}),
|
|
775
|
+
...s ? L(s) : {}
|
|
776
|
+
}), s || E(e);
|
|
777
777
|
}
|
|
778
778
|
function O(e) {
|
|
779
|
-
i.modelValue &&
|
|
779
|
+
i.modelValue && a("update:modelValue", {
|
|
780
780
|
...i.modelValue,
|
|
781
781
|
...e
|
|
782
782
|
});
|
|
@@ -784,26 +784,26 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
784
784
|
let j = p(() => [
|
|
785
785
|
{
|
|
786
786
|
value: "cover",
|
|
787
|
-
label:
|
|
787
|
+
label: c.blockSettings.backgroundSizeCover
|
|
788
788
|
},
|
|
789
789
|
{
|
|
790
790
|
value: "contain",
|
|
791
|
-
label:
|
|
791
|
+
label: c.blockSettings.backgroundSizeContain
|
|
792
792
|
},
|
|
793
793
|
{
|
|
794
794
|
value: "auto",
|
|
795
|
-
label:
|
|
795
|
+
label: c.blockSettings.backgroundSizeAuto
|
|
796
796
|
}
|
|
797
797
|
]), M = p(() => ({
|
|
798
|
-
"top-left":
|
|
799
|
-
"top-center":
|
|
800
|
-
"top-right":
|
|
801
|
-
"center-left":
|
|
802
|
-
"center-center":
|
|
803
|
-
"center-right":
|
|
804
|
-
"bottom-left":
|
|
805
|
-
"bottom-center":
|
|
806
|
-
"bottom-right":
|
|
798
|
+
"top-left": c.blockSettings.backgroundPositionTopLeft,
|
|
799
|
+
"top-center": c.blockSettings.backgroundPositionTopCenter,
|
|
800
|
+
"top-right": c.blockSettings.backgroundPositionTopRight,
|
|
801
|
+
"center-left": c.blockSettings.backgroundPositionCenterLeft,
|
|
802
|
+
"center-center": c.blockSettings.backgroundPositionCenter,
|
|
803
|
+
"center-right": c.blockSettings.backgroundPositionCenterRight,
|
|
804
|
+
"bottom-left": c.blockSettings.backgroundPositionBottomLeft,
|
|
805
|
+
"bottom-center": c.blockSettings.backgroundPositionBottomCenter,
|
|
806
|
+
"bottom-right": c.blockSettings.backgroundPositionBottomRight
|
|
807
807
|
})), N = p(() => ee.flatMap((e) => ie.map((t) => ({
|
|
808
808
|
x: t,
|
|
809
809
|
y: e,
|
|
@@ -812,28 +812,28 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
812
812
|
function P(e) {
|
|
813
813
|
return i.modelValue?.position?.x === e.x && i.modelValue?.position?.y === e.y;
|
|
814
814
|
}
|
|
815
|
-
let F =
|
|
815
|
+
let F = t(), { canBrowse: ne, isUploading: re, showOverlay: I, openMediaBrowser: ae } = _e({
|
|
816
816
|
target: F,
|
|
817
|
-
blocked: () => A(
|
|
817
|
+
blocked: () => A(d.value, l),
|
|
818
818
|
apply: (e) => D(e.url, me(e.width, e.height))
|
|
819
819
|
});
|
|
820
|
-
return (
|
|
820
|
+
return (t, n) => (_(), h("div", Cn, [y("div", null, [y("label", { class: v(x(U)) }, s(x(c).blockSettings.backgroundImage), 3), y("div", {
|
|
821
821
|
ref_key: "dropZoneRef",
|
|
822
822
|
ref: F,
|
|
823
823
|
class: "tpl:relative",
|
|
824
824
|
"data-testid": `${e.testidPrefix}-bg-url`
|
|
825
825
|
}, [
|
|
826
|
-
|
|
826
|
+
x(I) ? (_(), S(fe, {
|
|
827
827
|
key: 0,
|
|
828
|
-
uploading:
|
|
828
|
+
uploading: x(re)
|
|
829
829
|
}, null, 8, ["uploading"])) : m("", !0),
|
|
830
830
|
f(J, {
|
|
831
|
-
"model-value":
|
|
831
|
+
"model-value": d.value,
|
|
832
832
|
type: "url",
|
|
833
|
-
placeholder:
|
|
833
|
+
placeholder: x(c).blockSettings.backgroundImagePlaceholder,
|
|
834
834
|
"onUpdate:modelValue": D
|
|
835
835
|
}, null, 8, ["model-value", "placeholder"]),
|
|
836
|
-
|
|
836
|
+
x(ne) ? (_(), h("button", {
|
|
837
837
|
key: 1,
|
|
838
838
|
type: "button",
|
|
839
839
|
"data-testid": `${e.testidPrefix}-bg-browse`,
|
|
@@ -843,46 +843,46 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
843
843
|
color: "var(--tpl-primary)",
|
|
844
844
|
"background-color": "var(--tpl-bg)"
|
|
845
845
|
},
|
|
846
|
-
onClick:
|
|
847
|
-
}, [f(
|
|
846
|
+
onClick: n[0] ||= (...e) => x(ae) && x(ae)(...e)
|
|
847
|
+
}, [f(x(Ve), {
|
|
848
848
|
size: 14,
|
|
849
849
|
"stroke-width": 1.5
|
|
850
|
-
}), g(" " +
|
|
851
|
-
], 8, wn)]), C.value && e.modelValue ? (_(), h(
|
|
850
|
+
}), g(" " + s(x(c).image.browseMedia), 1)], 8, Tn)) : m("", !0)
|
|
851
|
+
], 8, wn)]), C.value && e.modelValue ? (_(), h(b, { key: 0 }, [
|
|
852
852
|
e.heroMode ? m("", !0) : (_(), h("div", {
|
|
853
853
|
key: 0,
|
|
854
854
|
"data-testid": `${e.testidPrefix}-bg-size`
|
|
855
|
-
}, [y("label", { class:
|
|
855
|
+
}, [y("label", { class: v(x(U)) }, s(x(c).blockSettings.backgroundSize), 3), f(Y, {
|
|
856
856
|
options: j.value,
|
|
857
857
|
"model-value": e.modelValue.size,
|
|
858
|
-
"onUpdate:modelValue":
|
|
858
|
+
"onUpdate:modelValue": n[1] ||= (e) => O({ size: e })
|
|
859
859
|
}, null, 8, ["options", "model-value"])], 8, En)),
|
|
860
|
-
y("div", null, [y("label", { class:
|
|
860
|
+
y("div", null, [y("label", { class: v(x(U)) }, s(x(c).blockSettings.backgroundPosition), 3), y("div", {
|
|
861
861
|
role: "group",
|
|
862
|
-
"aria-label":
|
|
862
|
+
"aria-label": x(c).blockSettings.backgroundPosition,
|
|
863
863
|
"data-testid": `${e.testidPrefix}-bg-position`,
|
|
864
864
|
class: "tpl:grid tpl:w-24 tpl:grid-cols-3 tpl:gap-1"
|
|
865
|
-
}, [(_(!0), h(
|
|
866
|
-
key: `${
|
|
865
|
+
}, [(_(!0), h(b, null, o(N.value, (t) => (_(), h("button", {
|
|
866
|
+
key: `${t.y}-${t.x}`,
|
|
867
867
|
type: "button",
|
|
868
|
-
"aria-label":
|
|
869
|
-
title:
|
|
870
|
-
"aria-pressed": P(
|
|
871
|
-
"data-testid": `${e.testidPrefix}-bg-position-${
|
|
872
|
-
class:
|
|
868
|
+
"aria-label": t.label,
|
|
869
|
+
title: t.label,
|
|
870
|
+
"aria-pressed": P(t),
|
|
871
|
+
"data-testid": `${e.testidPrefix}-bg-position-${t.y}-${t.x}`,
|
|
872
|
+
class: v(["tpl:flex tpl:h-6 tpl:items-center tpl:justify-center tpl:rounded tpl:border tpl:transition-colors", P(t) ? "tpl:border-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:hover:border-[var(--tpl-text-dim)]"]),
|
|
873
873
|
onClick: (e) => O({ position: {
|
|
874
|
-
x:
|
|
875
|
-
y:
|
|
874
|
+
x: t.x,
|
|
875
|
+
y: t.y
|
|
876
876
|
} })
|
|
877
|
-
}, [y("span", { class:
|
|
877
|
+
}, [y("span", { class: v(["tpl:block tpl:h-1.5 tpl:w-1.5 tpl:rounded-full", P(t) ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-text-dim)]"]) }, null, 2)], 10, On))), 128))], 8, Dn)]),
|
|
878
878
|
e.heroMode ? m("", !0) : (_(), h("div", {
|
|
879
879
|
key: 1,
|
|
880
880
|
"data-testid": `${e.testidPrefix}-bg-repeat`
|
|
881
881
|
}, [f(q, {
|
|
882
882
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
883
883
|
"model-value": e.modelValue.repeat,
|
|
884
|
-
label:
|
|
885
|
-
"onUpdate:modelValue":
|
|
884
|
+
label: x(c).blockSettings.backgroundRepeat,
|
|
885
|
+
"onUpdate:modelValue": n[2] ||= (e) => O({ repeat: e })
|
|
886
886
|
}, null, 8, ["model-value", "label"])], 8, kn))
|
|
887
887
|
], 64)) : m("", !0)]));
|
|
888
888
|
}
|
|
@@ -896,16 +896,16 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
896
896
|
},
|
|
897
897
|
emits: ["toggle"],
|
|
898
898
|
setup(e) {
|
|
899
|
-
return (
|
|
899
|
+
return (t, n) => (_(), h("div", { class: v(["tpl:py-3", e.noBorder ? "" : "tpl:border-t tpl:border-[var(--tpl-border)]"]) }, [y("button", {
|
|
900
900
|
type: "button",
|
|
901
901
|
"data-testid": e.headerTestId,
|
|
902
902
|
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)]",
|
|
903
|
-
onClick:
|
|
904
|
-
}, [f(
|
|
905
|
-
class:
|
|
903
|
+
onClick: n[0] ||= (e) => t.$emit("toggle")
|
|
904
|
+
}, [f(x(Ie), {
|
|
905
|
+
class: v(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
906
906
|
size: 12,
|
|
907
907
|
"stroke-width": 2
|
|
908
|
-
}, null, 8, ["class"]), y("span", null,
|
|
908
|
+
}, null, 8, ["class"]), y("span", null, s(e.title), 1)], 8, jn), l(y("div", Mn, [c(t.$slots, "default")], 512), [[D, e.open]])], 2));
|
|
909
909
|
}
|
|
910
910
|
}), Pn = {
|
|
911
911
|
key: 0,
|
|
@@ -928,45 +928,45 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
928
928
|
__name: "HeroControl",
|
|
929
929
|
props: { section: {} },
|
|
930
930
|
emits: ["update"],
|
|
931
|
-
setup(e, { emit:
|
|
932
|
-
function
|
|
931
|
+
setup(e, { emit: t }) {
|
|
932
|
+
function r(e) {
|
|
933
933
|
return typeof e == "number" && Number.isFinite(e) && e >= 1;
|
|
934
934
|
}
|
|
935
|
-
let
|
|
935
|
+
let i = e, a = t, { t: o } = B(), c = n(Te, te.liquid), l = n(Oe, null), u = n(Ce, void 0), d = xn(), g = p(() => typeof i.section.backgroundImage?.url == "string" ? i.section.backgroundImage.url : ""), b = p(() => g.value.trim() !== ""), C = p(() => A(g.value, c)), w = p(() => i.section.hero), T = p(() => i.section.columns === "1"), E = p(() => w.value ? r(w.value.height) ? "fixed" : "image" : "fit"), D = p(() => r(w.value?.height) ? w.value.height : Bn), O = p(() => [
|
|
936
936
|
{
|
|
937
937
|
value: "fit",
|
|
938
|
-
label:
|
|
938
|
+
label: o.blockSettings.heroHeightFit
|
|
939
939
|
},
|
|
940
940
|
{
|
|
941
941
|
value: "image",
|
|
942
|
-
label:
|
|
942
|
+
label: o.blockSettings.heroHeightImage,
|
|
943
943
|
disabled: C.value
|
|
944
944
|
},
|
|
945
945
|
{
|
|
946
946
|
value: "fixed",
|
|
947
|
-
label:
|
|
947
|
+
label: o.blockSettings.heroHeightFixed
|
|
948
948
|
}
|
|
949
949
|
]), k = p(() => [
|
|
950
950
|
{
|
|
951
951
|
value: "top",
|
|
952
|
-
label:
|
|
952
|
+
label: o.blockSettings.heroAlignTop
|
|
953
953
|
},
|
|
954
954
|
{
|
|
955
955
|
value: "middle",
|
|
956
|
-
label:
|
|
956
|
+
label: o.blockSettings.heroAlignMiddle
|
|
957
957
|
},
|
|
958
958
|
{
|
|
959
959
|
value: "bottom",
|
|
960
|
-
label:
|
|
960
|
+
label: o.blockSettings.heroAlignBottom
|
|
961
961
|
}
|
|
962
|
-
]), j = p(() => E.value === "image" &&
|
|
962
|
+
]), j = p(() => E.value === "image" && b.value && !C.value && I(i.section.backgroundImage) === null);
|
|
963
963
|
function M() {
|
|
964
|
-
return (
|
|
964
|
+
return (l ? ve(l.content.value, i.section.id, u) : null) ?? de(l?.state.content.settings);
|
|
965
965
|
}
|
|
966
966
|
function N(e) {
|
|
967
967
|
let t = w.value?.verticalAlign ?? "middle";
|
|
968
968
|
if (e === "image") {
|
|
969
|
-
E.value !== "image" &&
|
|
969
|
+
E.value !== "image" && a("update", { hero: {
|
|
970
970
|
height: "image",
|
|
971
971
|
verticalAlign: t
|
|
972
972
|
} }), P();
|
|
@@ -974,45 +974,45 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
974
974
|
}
|
|
975
975
|
if (e === E.value) return;
|
|
976
976
|
if (e === "fit") {
|
|
977
|
-
|
|
977
|
+
a("update", { hero: void 0 });
|
|
978
978
|
return;
|
|
979
979
|
}
|
|
980
|
-
let n = I(
|
|
981
|
-
|
|
980
|
+
let n = I(i.section.backgroundImage), r = n === null ? Bn : Math.round(M() * n);
|
|
981
|
+
a("update", { hero: {
|
|
982
982
|
height: r,
|
|
983
983
|
verticalAlign: t
|
|
984
984
|
} });
|
|
985
985
|
}
|
|
986
986
|
async function P() {
|
|
987
|
-
let e =
|
|
988
|
-
if (!e || !
|
|
989
|
-
let t = e.url, n = await
|
|
990
|
-
n && r && r.url === t &&
|
|
987
|
+
let e = i.section.backgroundImage;
|
|
988
|
+
if (!e || !b.value || C.value || I(e) !== null) return;
|
|
989
|
+
let t = e.url, n = await d(t), r = i.section.backgroundImage;
|
|
990
|
+
n && r && r.url === t && a("update", { backgroundImage: {
|
|
991
991
|
...r,
|
|
992
992
|
...L(n)
|
|
993
993
|
} });
|
|
994
994
|
}
|
|
995
995
|
function F(e) {
|
|
996
|
-
!w.value || !Number.isFinite(e) || e < 1 ||
|
|
996
|
+
!w.value || !Number.isFinite(e) || e < 1 || a("update", { hero: {
|
|
997
997
|
...w.value,
|
|
998
998
|
height: Math.round(e)
|
|
999
999
|
} });
|
|
1000
1000
|
}
|
|
1001
1001
|
function ee(e) {
|
|
1002
|
-
w.value &&
|
|
1002
|
+
w.value && a("update", { hero: {
|
|
1003
1003
|
...w.value,
|
|
1004
1004
|
verticalAlign: e
|
|
1005
1005
|
} });
|
|
1006
1006
|
}
|
|
1007
|
-
return (e,
|
|
1007
|
+
return (e, t) => !T.value && w.value ? (_(), h("p", Pn, s(x(o).section.heroNeedsOneColumn), 1)) : T.value && (b.value || w.value) ? (_(), h("div", Fn, [
|
|
1008
1008
|
y("div", In, [
|
|
1009
|
-
y("label", { class:
|
|
1009
|
+
y("label", { class: v(x(U)) }, s(x(o).blockSettings.heroHeight), 3),
|
|
1010
1010
|
f(Y, {
|
|
1011
1011
|
options: O.value,
|
|
1012
1012
|
"model-value": E.value,
|
|
1013
1013
|
"onUpdate:modelValue": N
|
|
1014
1014
|
}, null, 8, ["options", "model-value"]),
|
|
1015
|
-
C.value ? (_(), h("p", Ln,
|
|
1015
|
+
C.value ? (_(), h("p", Ln, s(x(o).blockSettings.heroMatchImageMergeTag), 1)) : j.value ? (_(), h("p", Rn, s(x(o).blockSettings.heroSizeUnknown), 1)) : m("", !0)
|
|
1016
1016
|
]),
|
|
1017
1017
|
E.value === "fixed" ? (_(), S(X, {
|
|
1018
1018
|
key: 0,
|
|
@@ -1022,7 +1022,7 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1022
1022
|
testid: "section-hero-height-px",
|
|
1023
1023
|
"onUpdate:modelValue": F
|
|
1024
1024
|
}, null, 8, ["model-value"])) : m("", !0),
|
|
1025
|
-
w.value ? (_(), h("div", zn, [y("label", { class:
|
|
1025
|
+
w.value ? (_(), h("div", zn, [y("label", { class: v(x(U)) }, s(x(o).blockSettings.heroAlign), 3), f(Y, {
|
|
1026
1026
|
options: k.value,
|
|
1027
1027
|
"model-value": w.value.verticalAlign,
|
|
1028
1028
|
"onUpdate:modelValue": ee
|
|
@@ -1048,8 +1048,8 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1048
1048
|
isFirstSection: { type: Boolean }
|
|
1049
1049
|
},
|
|
1050
1050
|
emits: ["update"],
|
|
1051
|
-
setup(e, { emit:
|
|
1052
|
-
let
|
|
1051
|
+
setup(e, { emit: a }) {
|
|
1052
|
+
let c = e, u = a, { t: C } = B(), w = n(ke, []), D = n(Ae, !1), O = d(/* @__PURE__ */ new Set()), k = t(!1), A = t(""), j = t(""), M = [{
|
|
1053
1053
|
key: "desktop",
|
|
1054
1054
|
icon: We,
|
|
1055
1055
|
labelKey: "showOnDesktop"
|
|
@@ -1061,18 +1061,18 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1061
1061
|
function N(e) {
|
|
1062
1062
|
O.has(e) ? O.delete(e) : O.add(e);
|
|
1063
1063
|
}
|
|
1064
|
-
let P = p(() => w.length > 0 || D), F = p(() =>
|
|
1064
|
+
let P = p(() => w.length > 0 || D), F = p(() => c.block.displayCondition ? !w.some((e) => e.label === c.block.displayCondition?.label) : !1);
|
|
1065
1065
|
function ee() {
|
|
1066
|
-
k.value = !0, F.value &&
|
|
1066
|
+
k.value = !0, F.value && c.block.displayCondition ? (A.value = c.block.displayCondition.before, j.value = c.block.displayCondition.after ?? "") : (A.value = "", j.value = "");
|
|
1067
1067
|
}
|
|
1068
1068
|
function te() {
|
|
1069
|
-
A.value.trim() && (
|
|
1069
|
+
A.value.trim() && (u("update", { displayCondition: {
|
|
1070
1070
|
label: C.blockSettings.customCondition,
|
|
1071
1071
|
before: A.value.trim(),
|
|
1072
1072
|
after: j.value.trim()
|
|
1073
1073
|
} }), k.value = !1, A.value = "", j.value = "");
|
|
1074
1074
|
}
|
|
1075
|
-
T(() =>
|
|
1075
|
+
T(() => c.block.displayCondition, (e) => {
|
|
1076
1076
|
e ? F.value && (A.value = e.before, j.value = e.after ?? "") : (k.value = !1, A.value = "", j.value = "");
|
|
1077
1077
|
}, { immediate: !0 });
|
|
1078
1078
|
let ne = p(() => {
|
|
@@ -1082,34 +1082,34 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1082
1082
|
e[n] || (e[n] = []), e[n].push(t);
|
|
1083
1083
|
}
|
|
1084
1084
|
return e;
|
|
1085
|
-
}), re = p(() =>
|
|
1085
|
+
}), re = p(() => c.block.type === "section" && oe(c.block)?.applied === !0);
|
|
1086
1086
|
function I(e, t) {
|
|
1087
|
-
|
|
1088
|
-
...
|
|
1087
|
+
u("update", { styles: {
|
|
1088
|
+
...c.block.styles,
|
|
1089
1089
|
[e]: t
|
|
1090
1090
|
} });
|
|
1091
1091
|
}
|
|
1092
1092
|
function ie(e) {
|
|
1093
|
-
return
|
|
1093
|
+
return c.block.visibility?.[e] !== !1;
|
|
1094
1094
|
}
|
|
1095
1095
|
function ae(e) {
|
|
1096
1096
|
let t = {
|
|
1097
1097
|
desktop: ie("desktop"),
|
|
1098
1098
|
mobile: ie("mobile")
|
|
1099
1099
|
};
|
|
1100
|
-
t[e] = !t[e],
|
|
1100
|
+
t[e] = !t[e], u("update", { visibility: t });
|
|
1101
1101
|
}
|
|
1102
|
-
return (
|
|
1102
|
+
return (t, n) => (_(), h("div", { class: v(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1103
1103
|
f(Nn, {
|
|
1104
|
-
title:
|
|
1104
|
+
title: x(C).blockSettings.spacing,
|
|
1105
1105
|
open: O.has("spacing"),
|
|
1106
1106
|
"no-border": e.isFirstSection,
|
|
1107
|
-
onToggle:
|
|
1107
|
+
onToggle: n[1] ||= (e) => N("spacing")
|
|
1108
1108
|
}, {
|
|
1109
|
-
default:
|
|
1110
|
-
label:
|
|
1109
|
+
default: r(() => [f(yn, {
|
|
1110
|
+
label: x(C).blockSettings.padding,
|
|
1111
1111
|
"model-value": e.block.styles.padding,
|
|
1112
|
-
"onUpdate:modelValue":
|
|
1112
|
+
"onUpdate:modelValue": n[0] ||= (e) => I("padding", e)
|
|
1113
1113
|
}, null, 8, ["label", "model-value"])]),
|
|
1114
1114
|
_: 1
|
|
1115
1115
|
}, 8, [
|
|
@@ -1118,17 +1118,17 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1118
1118
|
"no-border"
|
|
1119
1119
|
]),
|
|
1120
1120
|
f(Nn, {
|
|
1121
|
-
title:
|
|
1121
|
+
title: x(C).blockSettings.background,
|
|
1122
1122
|
open: O.has("bg"),
|
|
1123
1123
|
"header-test-id": "block-settings-background",
|
|
1124
|
-
onToggle:
|
|
1124
|
+
onToggle: n[5] ||= (e) => N("bg")
|
|
1125
1125
|
}, {
|
|
1126
|
-
default:
|
|
1127
|
-
y("label", { class:
|
|
1126
|
+
default: r(() => [
|
|
1127
|
+
y("label", { class: v(x(U)) }, s(x(C).blockSettings.color), 3),
|
|
1128
1128
|
f(V, {
|
|
1129
1129
|
"model-value": e.block.styles.backgroundColor ?? "",
|
|
1130
1130
|
"allow-transparent": "",
|
|
1131
|
-
"onUpdate:modelValue":
|
|
1131
|
+
"onUpdate:modelValue": n[2] ||= (e) => I("backgroundColor", e)
|
|
1132
1132
|
}, null, 8, ["model-value"]),
|
|
1133
1133
|
e.block.type === "section" ? (_(), S(An, {
|
|
1134
1134
|
key: 0,
|
|
@@ -1137,32 +1137,32 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1137
1137
|
"testid-prefix": "section",
|
|
1138
1138
|
measure: "",
|
|
1139
1139
|
"hero-mode": re.value,
|
|
1140
|
-
"onUpdate:modelValue":
|
|
1140
|
+
"onUpdate:modelValue": n[3] ||= (e) => u("update", { backgroundImage: e })
|
|
1141
1141
|
}, null, 8, ["model-value", "hero-mode"])) : m("", !0),
|
|
1142
1142
|
e.block.type === "section" ? (_(), S(Vn, {
|
|
1143
1143
|
key: 1,
|
|
1144
1144
|
section: e.block,
|
|
1145
|
-
onUpdate:
|
|
1145
|
+
onUpdate: n[4] ||= (e) => u("update", e)
|
|
1146
1146
|
}, null, 8, ["section"])) : m("", !0)
|
|
1147
1147
|
]),
|
|
1148
1148
|
_: 1
|
|
1149
1149
|
}, 8, ["title", "open"]),
|
|
1150
1150
|
f(Nn, {
|
|
1151
|
-
title:
|
|
1151
|
+
title: x(C).blockSettings.display,
|
|
1152
1152
|
open: O.has("display"),
|
|
1153
|
-
onToggle:
|
|
1153
|
+
onToggle: n[6] ||= (e) => N("display")
|
|
1154
1154
|
}, {
|
|
1155
|
-
default:
|
|
1155
|
+
default: r(() => [y("div", Hn, [(_(), h(b, null, o(M, (e) => f(q, {
|
|
1156
1156
|
key: e.key,
|
|
1157
1157
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1158
1158
|
"model-value": ie(e.key),
|
|
1159
|
-
label:
|
|
1159
|
+
label: x(C).blockSettings[e.labelKey],
|
|
1160
1160
|
"onUpdate:modelValue": (t) => ae(e.key)
|
|
1161
1161
|
}, {
|
|
1162
|
-
default:
|
|
1162
|
+
default: r(() => [y("span", Un, [(_(), S(i(e.icon), {
|
|
1163
1163
|
size: 14,
|
|
1164
1164
|
"stroke-width": 1.5
|
|
1165
|
-
})), g(" " +
|
|
1165
|
+
})), g(" " + s(x(C).blockSettings[e.labelKey]), 1)])]),
|
|
1166
1166
|
_: 2
|
|
1167
1167
|
}, 1032, [
|
|
1168
1168
|
"model-value",
|
|
@@ -1174,58 +1174,58 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1174
1174
|
P.value ? (_(), S(Nn, {
|
|
1175
1175
|
key: 0,
|
|
1176
1176
|
"header-test-id": "display-condition-section",
|
|
1177
|
-
title:
|
|
1177
|
+
title: x(C).blockSettings.displayCondition,
|
|
1178
1178
|
open: O.has("condition"),
|
|
1179
|
-
onToggle:
|
|
1179
|
+
onToggle: n[10] ||= (e) => N("condition")
|
|
1180
1180
|
}, {
|
|
1181
|
-
default:
|
|
1181
|
+
default: r(() => [y("div", Wn, [y("select", {
|
|
1182
1182
|
"data-testid": "display-condition-select",
|
|
1183
|
-
class:
|
|
1183
|
+
class: v(["tpl:w-full tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:outline-none tpl:transition-all tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]", e.block.displayCondition ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-text)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"]),
|
|
1184
1184
|
value: k.value || F.value ? "__custom__" : e.block.displayCondition?.label ?? "",
|
|
1185
|
-
onChange:
|
|
1185
|
+
onChange: n[7] ||= (e) => {
|
|
1186
1186
|
let t = e.target.value;
|
|
1187
1187
|
if (t === "__custom__") {
|
|
1188
1188
|
ee();
|
|
1189
1189
|
return;
|
|
1190
1190
|
}
|
|
1191
1191
|
if (k.value = !1, !t) {
|
|
1192
|
-
|
|
1192
|
+
u("update", { displayCondition: void 0 });
|
|
1193
1193
|
return;
|
|
1194
1194
|
}
|
|
1195
|
-
let n =
|
|
1196
|
-
n &&
|
|
1195
|
+
let n = x(w).find((e) => e.label === t);
|
|
1196
|
+
n && u("update", { displayCondition: n });
|
|
1197
1197
|
}
|
|
1198
1198
|
}, [
|
|
1199
|
-
y("option", Kn,
|
|
1200
|
-
(_(!0), h(
|
|
1199
|
+
y("option", Kn, s(x(C).blockSettings.noCondition), 1),
|
|
1200
|
+
(_(!0), h(b, null, o(ne.value, (e, t) => (_(), h(b, { key: t }, [t ? (_(), h("optgroup", {
|
|
1201
1201
|
key: 0,
|
|
1202
1202
|
label: String(t)
|
|
1203
|
-
}, [(_(!0), h(
|
|
1203
|
+
}, [(_(!0), h(b, null, o(e, (e) => (_(), h("option", {
|
|
1204
1204
|
key: e.label,
|
|
1205
1205
|
value: e.label
|
|
1206
|
-
},
|
|
1206
|
+
}, s(e.label), 9, Jn))), 128))], 8, qn)) : (_(!0), h(b, { key: 1 }, o(e, (e) => (_(), h("option", {
|
|
1207
1207
|
key: e.label,
|
|
1208
1208
|
value: e.label
|
|
1209
|
-
},
|
|
1210
|
-
|
|
1209
|
+
}, s(e.label), 9, Yn))), 128))], 64))), 128)),
|
|
1210
|
+
x(D) ? (_(), h("option", Xn, s(x(C).blockSettings.customCondition), 1)) : m("", !0)
|
|
1211
1211
|
], 42, Gn), k.value || F.value ? (_(), h("div", Zn, [
|
|
1212
|
-
y("div", null, [y("label", Qn,
|
|
1213
|
-
"onUpdate:modelValue":
|
|
1212
|
+
y("div", null, [y("label", Qn, s(x(C).blockSettings.customConditionBefore), 1), l(y("textarea", {
|
|
1213
|
+
"onUpdate:modelValue": n[8] ||= (e) => A.value = e,
|
|
1214
1214
|
rows: "2",
|
|
1215
|
-
class:
|
|
1215
|
+
class: v(x($e))
|
|
1216
1216
|
}, null, 2), [[E, A.value]])]),
|
|
1217
|
-
y("div", null, [y("label", $n,
|
|
1218
|
-
"onUpdate:modelValue":
|
|
1217
|
+
y("div", null, [y("label", $n, s(x(C).blockSettings.customConditionAfter), 1), l(y("textarea", {
|
|
1218
|
+
"onUpdate:modelValue": n[9] ||= (e) => j.value = e,
|
|
1219
1219
|
rows: "2",
|
|
1220
|
-
class:
|
|
1220
|
+
class: v(x($e))
|
|
1221
1221
|
}, null, 2), [[E, j.value]])]),
|
|
1222
1222
|
y("div", er, [y("button", {
|
|
1223
1223
|
type: "button",
|
|
1224
|
-
class:
|
|
1224
|
+
class: v(x(rt)),
|
|
1225
1225
|
disabled: !A.value.trim(),
|
|
1226
1226
|
onClick: te
|
|
1227
|
-
},
|
|
1228
|
-
])) : e.block.displayCondition && !F.value ? (_(), h(
|
|
1227
|
+
}, s(x(C).blockSettings.applyCondition), 11, tr)])
|
|
1228
|
+
])) : e.block.displayCondition && !F.value ? (_(), h(b, { key: 1 }, [e.block.displayCondition.description ? (_(), h("p", nr, s(e.block.displayCondition.description), 1)) : m("", !0), y("div", rr, [y("pre", ir, s(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (_(), h("pre", ar, s(e.block.displayCondition.after), 1)) : m("", !0)])], 64)) : m("", !0)])]),
|
|
1229
1229
|
_: 1
|
|
1230
1230
|
}, 8, ["title", "open"])) : m("", !0)
|
|
1231
1231
|
], 2));
|
|
@@ -1239,19 +1239,19 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1239
1239
|
},
|
|
1240
1240
|
emits: ["update:modelValue"],
|
|
1241
1241
|
setup(e, { emit: t }) {
|
|
1242
|
-
let n = t, { t:
|
|
1243
|
-
return (t,
|
|
1242
|
+
let n = t, { t: i } = B();
|
|
1243
|
+
return (t, a) => (_(), h("div", {
|
|
1244
1244
|
class: "tpl:mb-3.5",
|
|
1245
|
-
title: e.readOnly ?
|
|
1245
|
+
title: e.readOnly ? x(i).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
1246
1246
|
}, [f(q, {
|
|
1247
1247
|
class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
1248
1248
|
"model-value": e.modelValue,
|
|
1249
1249
|
label: e.field.label,
|
|
1250
1250
|
required: e.field.required,
|
|
1251
1251
|
disabled: e.readOnly,
|
|
1252
|
-
"onUpdate:modelValue":
|
|
1252
|
+
"onUpdate:modelValue": a[0] ||= (e) => n("update:modelValue", e)
|
|
1253
1253
|
}, {
|
|
1254
|
-
default:
|
|
1254
|
+
default: r(() => [g(s(e.field.label) + " ", 1), e.readOnly ? (_(), S(x(ct), {
|
|
1255
1255
|
key: 0,
|
|
1256
1256
|
size: 12,
|
|
1257
1257
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
@@ -1272,23 +1272,23 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1272
1272
|
readOnly: { type: Boolean }
|
|
1273
1273
|
},
|
|
1274
1274
|
setup(e) {
|
|
1275
|
-
let { t
|
|
1276
|
-
return (
|
|
1277
|
-
g(
|
|
1275
|
+
let { t } = B();
|
|
1276
|
+
return (n, r) => (_(), h("div", lr, [y("label", { class: v(x(U)) }, [
|
|
1277
|
+
g(s(e.label) + " ", 1),
|
|
1278
1278
|
e.readOnly ? (_(), h("span", {
|
|
1279
1279
|
key: 0,
|
|
1280
|
-
title:
|
|
1281
|
-
}, [f(
|
|
1280
|
+
title: x(t).customBlocks.dataSource.readOnlyTooltip
|
|
1281
|
+
}, [f(x(ct), {
|
|
1282
1282
|
size: 12,
|
|
1283
1283
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
|
|
1284
1284
|
"aria-hidden": "true"
|
|
1285
|
-
}), y("span", dr,
|
|
1285
|
+
}), y("span", dr, s(x(t).customBlocks.dataSource.readOnlyTooltip), 1)], 8, ur)) : m("", !0),
|
|
1286
1286
|
e.required ? (_(), h("span", {
|
|
1287
1287
|
key: 1,
|
|
1288
1288
|
class: "tpl:text-[var(--tpl-danger)]",
|
|
1289
|
-
title:
|
|
1290
|
-
}, [
|
|
1291
|
-
], 2),
|
|
1289
|
+
title: x(t).customBlocks.fields.required
|
|
1290
|
+
}, [r[0] ||= y("span", { "aria-hidden": "true" }, "*", -1), y("span", pr, s(x(t).customBlocks.fields.required), 1)], 8, fr)) : m("", !0)
|
|
1291
|
+
], 2), c(n.$slots, "default")]));
|
|
1292
1292
|
}
|
|
1293
1293
|
}), mr = /* @__PURE__ */ w({
|
|
1294
1294
|
__name: "ColorField",
|
|
@@ -1299,20 +1299,20 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1299
1299
|
},
|
|
1300
1300
|
emits: ["update:modelValue"],
|
|
1301
1301
|
setup(e, { emit: t }) {
|
|
1302
|
-
let
|
|
1302
|
+
let i = e, a = t, { t: o } = B(), s = n(De, Pe), c = p(() => be(i.field, s));
|
|
1303
1303
|
return (t, n) => (_(), S(Q, {
|
|
1304
1304
|
label: e.field.label,
|
|
1305
1305
|
required: e.field.required,
|
|
1306
1306
|
"read-only": e.readOnly
|
|
1307
1307
|
}, {
|
|
1308
|
-
default:
|
|
1308
|
+
default: r(() => [f(V, {
|
|
1309
1309
|
"model-value": e.modelValue,
|
|
1310
1310
|
placeholder: e.field.placeholder,
|
|
1311
1311
|
disabled: e.readOnly,
|
|
1312
|
-
presets:
|
|
1313
|
-
"allow-custom":
|
|
1314
|
-
title: e.readOnly ?
|
|
1315
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
1312
|
+
presets: c.value.presets,
|
|
1313
|
+
"allow-custom": c.value.allowCustom,
|
|
1314
|
+
title: e.readOnly ? x(o).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1315
|
+
"onUpdate:modelValue": n[0] ||= (e) => a("update:modelValue", e)
|
|
1316
1316
|
}, null, 8, [
|
|
1317
1317
|
"model-value",
|
|
1318
1318
|
"placeholder",
|
|
@@ -1341,49 +1341,49 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1341
1341
|
},
|
|
1342
1342
|
emits: ["update:modelValue"],
|
|
1343
1343
|
setup(e, { emit: n }) {
|
|
1344
|
-
let
|
|
1345
|
-
target:
|
|
1346
|
-
blocked: () => !!
|
|
1347
|
-
apply: (e) =>
|
|
1344
|
+
let i = e, a = n, { t: o } = B(), c = t(), { canBrowse: l, isUploading: u, showOverlay: d, openMediaBrowser: p } = _e({
|
|
1345
|
+
target: c,
|
|
1346
|
+
blocked: () => !!i.readOnly,
|
|
1347
|
+
apply: (e) => a("update:modelValue", e.url)
|
|
1348
1348
|
});
|
|
1349
|
-
return (
|
|
1349
|
+
return (t, n) => (_(), S(Q, {
|
|
1350
1350
|
label: e.field.label,
|
|
1351
1351
|
required: e.field.required,
|
|
1352
1352
|
"read-only": e.readOnly
|
|
1353
1353
|
}, {
|
|
1354
|
-
default:
|
|
1354
|
+
default: r(() => [y("div", {
|
|
1355
1355
|
ref_key: "dropZoneRef",
|
|
1356
|
-
ref:
|
|
1356
|
+
ref: c,
|
|
1357
1357
|
class: "tpl:relative"
|
|
1358
1358
|
}, [
|
|
1359
|
-
|
|
1359
|
+
x(d) ? (_(), S(fe, {
|
|
1360
1360
|
key: 0,
|
|
1361
|
-
uploading:
|
|
1361
|
+
uploading: x(u)
|
|
1362
1362
|
}, null, 8, ["uploading"])) : m("", !0),
|
|
1363
1363
|
e.readOnly ? (_(), h("input", {
|
|
1364
1364
|
key: 1,
|
|
1365
1365
|
type: "url",
|
|
1366
|
-
class:
|
|
1366
|
+
class: v([x(K), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1367
1367
|
value: e.modelValue,
|
|
1368
1368
|
placeholder: e.field.placeholder || "https://...",
|
|
1369
1369
|
disabled: "",
|
|
1370
|
-
title:
|
|
1370
|
+
title: x(o).customBlocks.dataSource.readOnlyTooltip
|
|
1371
1371
|
}, null, 10, hr)) : (_(), h("input", {
|
|
1372
1372
|
key: 2,
|
|
1373
1373
|
type: "url",
|
|
1374
|
-
class:
|
|
1374
|
+
class: v(x(K)),
|
|
1375
1375
|
value: e.modelValue,
|
|
1376
1376
|
placeholder: e.field.placeholder || "https://...",
|
|
1377
|
-
onInput:
|
|
1377
|
+
onInput: n[0] ||= (e) => a("update:modelValue", e.target.value)
|
|
1378
1378
|
}, null, 42, gr)),
|
|
1379
|
-
|
|
1379
|
+
x(l) && !e.readOnly ? (_(), h("button", {
|
|
1380
1380
|
key: 3,
|
|
1381
1381
|
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)]",
|
|
1382
|
-
onClick:
|
|
1383
|
-
}, [f(
|
|
1382
|
+
onClick: n[1] ||= (e) => x(p)()
|
|
1383
|
+
}, [f(x(Ve), {
|
|
1384
1384
|
size: 14,
|
|
1385
1385
|
"stroke-width": 1.5
|
|
1386
|
-
}), g(" " +
|
|
1386
|
+
}), g(" " + s(x(o).image.browseMedia), 1)])) : m("", !0)
|
|
1387
1387
|
], 512)]),
|
|
1388
1388
|
_: 1
|
|
1389
1389
|
}, 8, [
|
|
@@ -1408,24 +1408,24 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1408
1408
|
readOnly: { type: Boolean }
|
|
1409
1409
|
},
|
|
1410
1410
|
emits: ["update:modelValue"],
|
|
1411
|
-
setup(e, { emit:
|
|
1412
|
-
let
|
|
1413
|
-
return (
|
|
1411
|
+
setup(e, { emit: t }) {
|
|
1412
|
+
let n = t, { t: i } = B();
|
|
1413
|
+
return (t, a) => (_(), S(Q, {
|
|
1414
1414
|
label: e.field.label,
|
|
1415
1415
|
required: e.field.required,
|
|
1416
1416
|
"read-only": e.readOnly
|
|
1417
1417
|
}, {
|
|
1418
|
-
default:
|
|
1418
|
+
default: r(() => [y("input", {
|
|
1419
1419
|
type: "number",
|
|
1420
|
-
class:
|
|
1420
|
+
class: v([x(K), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1421
1421
|
value: e.modelValue,
|
|
1422
1422
|
placeholder: e.field.placeholder,
|
|
1423
1423
|
min: e.field.min,
|
|
1424
1424
|
max: e.field.max,
|
|
1425
1425
|
step: e.field.step,
|
|
1426
1426
|
disabled: e.readOnly,
|
|
1427
|
-
title: e.readOnly ?
|
|
1428
|
-
onInput: a[0] ||= (t) => !e.readOnly &&
|
|
1427
|
+
title: e.readOnly ? x(i).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1428
|
+
onInput: a[0] ||= (t) => !e.readOnly && n("update:modelValue", Number(t.target.value))
|
|
1429
1429
|
}, null, 42, vr)]),
|
|
1430
1430
|
_: 1
|
|
1431
1431
|
}, 8, [
|
|
@@ -1448,45 +1448,45 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1448
1448
|
readOnly: { type: Boolean }
|
|
1449
1449
|
},
|
|
1450
1450
|
emits: ["update:modelValue"],
|
|
1451
|
-
setup(e, { emit:
|
|
1452
|
-
let
|
|
1451
|
+
setup(e, { emit: t }) {
|
|
1452
|
+
let n = e, a = t, { t: c, format: l } = B(), u = p(() => n.modelValue || []), d = p(() => !n.field.maxItems || u.value.length < n.field.maxItems), C = p(() => !n.field.minItems || u.value.length > n.field.minItems);
|
|
1453
1453
|
function w() {
|
|
1454
|
-
if (!
|
|
1454
|
+
if (!d.value || n.readOnly) return;
|
|
1455
1455
|
let e = {};
|
|
1456
|
-
for (let t of
|
|
1457
|
-
|
|
1456
|
+
for (let t of n.field.fields) e[t.key] = t.default ?? "";
|
|
1457
|
+
a("update:modelValue", [...u.value, e]);
|
|
1458
1458
|
}
|
|
1459
1459
|
function T(e) {
|
|
1460
|
-
if (!C.value ||
|
|
1461
|
-
let t = [...
|
|
1462
|
-
t.splice(e, 1),
|
|
1460
|
+
if (!C.value || n.readOnly) return;
|
|
1461
|
+
let t = [...u.value];
|
|
1462
|
+
t.splice(e, 1), a("update:modelValue", t);
|
|
1463
1463
|
}
|
|
1464
1464
|
function E(e, t, n) {
|
|
1465
|
-
let r =
|
|
1465
|
+
let r = u.value.map((r, i) => i === e ? {
|
|
1466
1466
|
...r,
|
|
1467
1467
|
[t]: n
|
|
1468
1468
|
} : r);
|
|
1469
|
-
|
|
1469
|
+
a("update:modelValue", r);
|
|
1470
1470
|
}
|
|
1471
|
-
return (
|
|
1471
|
+
return (t, n) => (_(), S(Q, {
|
|
1472
1472
|
label: e.field.label,
|
|
1473
1473
|
required: e.field.required,
|
|
1474
1474
|
"read-only": e.readOnly
|
|
1475
1475
|
}, {
|
|
1476
|
-
default:
|
|
1477
|
-
(_(!0), h(
|
|
1476
|
+
default: r(() => [y("div", br, [
|
|
1477
|
+
(_(!0), h(b, null, o(u.value, (t, n) => (_(), h("div", {
|
|
1478
1478
|
key: `${e.field.key}-${n}`,
|
|
1479
1479
|
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
|
|
1480
|
-
}, [y("div", xr, [y("span", Sr, " #" +
|
|
1480
|
+
}, [y("div", xr, [y("span", Sr, " #" + s(n + 1), 1), C.value && !e.readOnly ? (_(), h("button", {
|
|
1481
1481
|
key: 0,
|
|
1482
1482
|
type: "button",
|
|
1483
1483
|
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)]",
|
|
1484
|
-
title:
|
|
1484
|
+
title: x(c).customBlocks.fields.removeItem,
|
|
1485
1485
|
onClick: (e) => T(n)
|
|
1486
|
-
}, [f(
|
|
1486
|
+
}, [f(x(Xe), {
|
|
1487
1487
|
size: 12,
|
|
1488
1488
|
"stroke-width": 2
|
|
1489
|
-
})], 8, Cr)) : m("", !0)]), (_(!0), h(
|
|
1489
|
+
})], 8, Cr)) : m("", !0)]), (_(!0), h(b, null, o(e.field.fields, (r) => (_(), S(i(x(Fr)(r.type)), {
|
|
1490
1490
|
key: r.key,
|
|
1491
1491
|
field: r,
|
|
1492
1492
|
"model-value": t[r.key],
|
|
@@ -1498,17 +1498,17 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1498
1498
|
"read-only",
|
|
1499
1499
|
"onUpdate:modelValue"
|
|
1500
1500
|
]))), 128))]))), 128)),
|
|
1501
|
-
|
|
1501
|
+
d.value && !e.readOnly ? (_(), h("button", {
|
|
1502
1502
|
key: 0,
|
|
1503
1503
|
type: "button",
|
|
1504
|
-
class:
|
|
1504
|
+
class: v(x(tt)),
|
|
1505
1505
|
onClick: w
|
|
1506
|
-
}, [f(
|
|
1506
|
+
}, [f(x(H), {
|
|
1507
1507
|
size: 14,
|
|
1508
1508
|
"stroke-width": 2
|
|
1509
|
-
}), g(" " +
|
|
1510
|
-
!
|
|
1511
|
-
!C.value && !e.readOnly ? (_(), h("p", Tr,
|
|
1509
|
+
}), g(" " + s(x(c).customBlocks.fields.addItem), 1)], 2)) : m("", !0),
|
|
1510
|
+
!d.value && !e.readOnly ? (_(), h("p", wr, s(x(c).customBlocks.fields.maxItemsReached), 1)) : m("", !0),
|
|
1511
|
+
!C.value && !e.readOnly ? (_(), h("p", Tr, s(x(l)(x(c).customBlocks.fields.minItemsRequired, { count: e.field.minItems ?? 0 })), 1)) : m("", !0)
|
|
1512
1512
|
])]),
|
|
1513
1513
|
_: 1
|
|
1514
1514
|
}, 8, [
|
|
@@ -1529,23 +1529,23 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1529
1529
|
readOnly: { type: Boolean }
|
|
1530
1530
|
},
|
|
1531
1531
|
emits: ["update:modelValue"],
|
|
1532
|
-
setup(e, { emit:
|
|
1533
|
-
let
|
|
1534
|
-
return (
|
|
1532
|
+
setup(e, { emit: t }) {
|
|
1533
|
+
let n = t, { t: i } = B();
|
|
1534
|
+
return (t, a) => (_(), S(Q, {
|
|
1535
1535
|
label: e.field.label,
|
|
1536
1536
|
required: e.field.required,
|
|
1537
1537
|
"read-only": e.readOnly
|
|
1538
1538
|
}, {
|
|
1539
|
-
default:
|
|
1540
|
-
class:
|
|
1539
|
+
default: r(() => [y("select", {
|
|
1540
|
+
class: v([x(K), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1541
1541
|
value: e.modelValue,
|
|
1542
1542
|
disabled: e.readOnly,
|
|
1543
|
-
title: e.readOnly ?
|
|
1544
|
-
onChange:
|
|
1545
|
-
}, [(_(!0), h(
|
|
1543
|
+
title: e.readOnly ? x(i).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1544
|
+
onChange: a[0] ||= (t) => !e.readOnly && n("update:modelValue", t.target.value)
|
|
1545
|
+
}, [(_(!0), h(b, null, o(e.field.options, (e) => (_(), h("option", {
|
|
1546
1546
|
key: e.value,
|
|
1547
1547
|
value: e.value
|
|
1548
|
-
},
|
|
1548
|
+
}, s(e.label), 9, Or))), 128))], 42, Dr)]),
|
|
1549
1549
|
_: 1
|
|
1550
1550
|
}, 8, [
|
|
1551
1551
|
"label",
|
|
@@ -1565,26 +1565,26 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1565
1565
|
readOnly: { type: Boolean }
|
|
1566
1566
|
},
|
|
1567
1567
|
emits: ["update:modelValue"],
|
|
1568
|
-
setup(e, { emit:
|
|
1569
|
-
let
|
|
1570
|
-
return (
|
|
1568
|
+
setup(e, { emit: t }) {
|
|
1569
|
+
let n = t, { t: i } = B();
|
|
1570
|
+
return (t, a) => (_(), S(Q, {
|
|
1571
1571
|
label: e.field.label,
|
|
1572
1572
|
required: e.field.required,
|
|
1573
1573
|
"read-only": e.readOnly
|
|
1574
1574
|
}, {
|
|
1575
|
-
default:
|
|
1575
|
+
default: r(() => [e.readOnly ? (_(), h("input", {
|
|
1576
1576
|
key: 0,
|
|
1577
1577
|
type: "text",
|
|
1578
|
-
class:
|
|
1578
|
+
class: v([x(K), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1579
1579
|
value: e.modelValue,
|
|
1580
1580
|
placeholder: e.field.placeholder,
|
|
1581
1581
|
disabled: "",
|
|
1582
|
-
title:
|
|
1582
|
+
title: x(i).customBlocks.dataSource.readOnlyTooltip
|
|
1583
1583
|
}, null, 10, Ar)) : (_(), S(J, {
|
|
1584
1584
|
key: 1,
|
|
1585
1585
|
"model-value": e.modelValue,
|
|
1586
1586
|
placeholder: e.field.placeholder,
|
|
1587
|
-
"onUpdate:modelValue": a[0] ||= (e) =>
|
|
1587
|
+
"onUpdate:modelValue": a[0] ||= (e) => n("update:modelValue", e)
|
|
1588
1588
|
}, null, 8, ["model-value", "placeholder"]))]),
|
|
1589
1589
|
_: 1
|
|
1590
1590
|
}, 8, [
|
|
@@ -1607,26 +1607,26 @@ var Cn = { class: "tpl:space-y-3.5" }, wn = ["data-testid"], Tn = ["data-testid"
|
|
|
1607
1607
|
readOnly: { type: Boolean }
|
|
1608
1608
|
},
|
|
1609
1609
|
emits: ["update:modelValue"],
|
|
1610
|
-
setup(e, { emit:
|
|
1611
|
-
let
|
|
1612
|
-
return (
|
|
1610
|
+
setup(e, { emit: t }) {
|
|
1611
|
+
let n = t, { t: i } = B();
|
|
1612
|
+
return (t, a) => (_(), S(Q, {
|
|
1613
1613
|
label: e.field.label,
|
|
1614
1614
|
required: e.field.required,
|
|
1615
1615
|
"read-only": e.readOnly
|
|
1616
1616
|
}, {
|
|
1617
|
-
default:
|
|
1617
|
+
default: r(() => [e.readOnly ? (_(), h("textarea", {
|
|
1618
1618
|
key: 0,
|
|
1619
1619
|
value: e.modelValue,
|
|
1620
1620
|
placeholder: e.field.placeholder,
|
|
1621
1621
|
rows: "3",
|
|
1622
1622
|
disabled: "",
|
|
1623
|
-
title:
|
|
1624
|
-
class:
|
|
1623
|
+
title: x(i).customBlocks.dataSource.readOnlyTooltip,
|
|
1624
|
+
class: v(Nr)
|
|
1625
1625
|
}, null, 8, Mr)) : (_(), S(it, {
|
|
1626
1626
|
key: 1,
|
|
1627
1627
|
"model-value": e.modelValue,
|
|
1628
1628
|
placeholder: e.field.placeholder,
|
|
1629
|
-
"onUpdate:modelValue": a[0] ||= (e) =>
|
|
1629
|
+
"onUpdate:modelValue": a[0] ||= (e) => n("update:modelValue", e)
|
|
1630
1630
|
}, null, 8, ["model-value", "placeholder"]))]),
|
|
1631
1631
|
_: 1
|
|
1632
1632
|
}, 8, [
|
|
@@ -1670,39 +1670,39 @@ var Ir = {
|
|
|
1670
1670
|
props: { block: {} },
|
|
1671
1671
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
1672
1672
|
setup(e, { emit: t }) {
|
|
1673
|
-
let r = e,
|
|
1673
|
+
let r = e, a = t, { t: c } = B(), l = n(je, []), u = p(() => l.find((e) => e.type === r.block.customType)), d = p(() => r.block), { isFetching: v, fetchError: C, fetch: w, hasDataSource: T, needsFetch: E } = le({
|
|
1674
1674
|
definition: u,
|
|
1675
1675
|
block: d,
|
|
1676
1676
|
onUpdate: (e, t) => {
|
|
1677
|
-
|
|
1677
|
+
a("updateFieldValues", e), a("updateDataSourceFetched", t);
|
|
1678
1678
|
}
|
|
1679
1679
|
});
|
|
1680
1680
|
function D(e) {
|
|
1681
1681
|
return e.readOnly === !0 && T.value && !!r.block.dataSourceFetched;
|
|
1682
1682
|
}
|
|
1683
1683
|
function O(e, t) {
|
|
1684
|
-
|
|
1684
|
+
a("updateFieldValues", {
|
|
1685
1685
|
...r.block.fieldValues,
|
|
1686
1686
|
[e]: t
|
|
1687
1687
|
});
|
|
1688
1688
|
}
|
|
1689
1689
|
return (t, n) => u.value ? (_(), h("div", Rr, [
|
|
1690
|
-
u.value.description ? (_(), h("p", zr,
|
|
1691
|
-
|
|
1690
|
+
u.value.description ? (_(), h("p", zr, s(u.value.description), 1)) : m("", !0),
|
|
1691
|
+
x(T) ? (_(), h("div", Br, [x(E) && !x(v) ? (_(), h("button", {
|
|
1692
1692
|
key: 0,
|
|
1693
1693
|
type: "button",
|
|
1694
1694
|
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)]",
|
|
1695
|
-
onClick: n[0] ||= (...e) =>
|
|
1696
|
-
},
|
|
1695
|
+
onClick: n[0] ||= (...e) => x(w) && x(w)(...e)
|
|
1696
|
+
}, s(u.value?.dataSource?.label || x(c).customBlocks.dataSource.fetchButton), 1)) : (_(), h("div", Vr, [x(v) ? (_(), h("div", Hr, s(x(c).customBlocks.dataSource.fetching), 1)) : (_(), h("button", {
|
|
1697
1697
|
key: 1,
|
|
1698
1698
|
type: "button",
|
|
1699
1699
|
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)]",
|
|
1700
|
-
onClick: n[1] ||= (...e) =>
|
|
1701
|
-
}, [f(
|
|
1700
|
+
onClick: n[1] ||= (...e) => x(w) && x(w)(...e)
|
|
1701
|
+
}, [f(x(Ke), { size: 12 }), g(" " + s(x(c).customBlocks.dataSource.changeButton), 1)]))])), x(C) ? (_(), h("p", Ur, [f(x(Le), {
|
|
1702
1702
|
size: 14,
|
|
1703
1703
|
class: "tpl:shrink-0"
|
|
1704
|
-
}), g(" " +
|
|
1705
|
-
(_(!0), h(
|
|
1704
|
+
}), g(" " + s(x(c).customBlocks.dataSource.fetchError), 1)])) : m("", !0)])) : m("", !0),
|
|
1705
|
+
(_(!0), h(b, null, o(u.value.fields, (t) => (_(), S(i(x(Fr)(t.type)), {
|
|
1706
1706
|
key: t.key,
|
|
1707
1707
|
field: t,
|
|
1708
1708
|
"model-value": e.block.fieldValues[t.key],
|
|
@@ -1714,127 +1714,127 @@ var Ir = {
|
|
|
1714
1714
|
"read-only",
|
|
1715
1715
|
"onUpdate:modelValue"
|
|
1716
1716
|
]))), 128))
|
|
1717
|
-
])) : (_(), h("div", Ir, [y("p", Lr,
|
|
1717
|
+
])) : (_(), h("div", Ir, [y("p", Lr, s(x(c).customBlocks.toolbar.noDefinition), 1)]));
|
|
1718
1718
|
}
|
|
1719
1719
|
}), Gr = { class: "tpl:mb-3.5" }, Kr = { class: "tpl:mb-3.5" }, qr = { class: "tpl:mb-3.5" }, Jr = { class: "tpl:flex tpl:items-stretch" }, Yr = ["value"], Xr = /* @__PURE__ */ w({
|
|
1720
1720
|
__name: "DividerToolbar",
|
|
1721
1721
|
props: { block: {} },
|
|
1722
1722
|
emits: ["update"],
|
|
1723
|
-
setup(e, { emit:
|
|
1724
|
-
let
|
|
1725
|
-
function
|
|
1726
|
-
|
|
1723
|
+
setup(e, { emit: t }) {
|
|
1724
|
+
let n = t, { t: r } = B();
|
|
1725
|
+
function i(e, t) {
|
|
1726
|
+
n("update", { [e]: t });
|
|
1727
1727
|
}
|
|
1728
|
-
return (
|
|
1729
|
-
y("div", Gr, [y("label", { class:
|
|
1728
|
+
return (t, n) => (_(), h(b, null, [
|
|
1729
|
+
y("div", Gr, [y("label", { class: v(x(U)) }, s(x(r).divider.style), 3), f(Y, {
|
|
1730
1730
|
options: [
|
|
1731
1731
|
{
|
|
1732
1732
|
value: "solid",
|
|
1733
|
-
label:
|
|
1733
|
+
label: x(r).divider.solid
|
|
1734
1734
|
},
|
|
1735
1735
|
{
|
|
1736
1736
|
value: "dashed",
|
|
1737
|
-
label:
|
|
1737
|
+
label: x(r).divider.dashed
|
|
1738
1738
|
},
|
|
1739
1739
|
{
|
|
1740
1740
|
value: "dotted",
|
|
1741
|
-
label:
|
|
1741
|
+
label: x(r).divider.dotted
|
|
1742
1742
|
}
|
|
1743
1743
|
],
|
|
1744
1744
|
"model-value": e.block.lineStyle,
|
|
1745
|
-
"onUpdate:modelValue":
|
|
1745
|
+
"onUpdate:modelValue": n[0] ||= (e) => i("lineStyle", e)
|
|
1746
1746
|
}, null, 8, ["options", "model-value"])]),
|
|
1747
|
-
y("div", Kr, [y("label", { class:
|
|
1747
|
+
y("div", Kr, [y("label", { class: v(x(U)) }, s(x(r).divider.color), 3), f(V, {
|
|
1748
1748
|
"model-value": e.block.color,
|
|
1749
|
-
"onUpdate:modelValue":
|
|
1749
|
+
"onUpdate:modelValue": n[1] ||= (e) => i("color", e)
|
|
1750
1750
|
}, null, 8, ["model-value"])]),
|
|
1751
|
-
y("div", qr, [y("label", { class:
|
|
1751
|
+
y("div", qr, [y("label", { class: v(x(U)) }, s(x(r).divider.thickness), 3), y("div", Jr, [y("input", {
|
|
1752
1752
|
type: "number",
|
|
1753
|
-
class:
|
|
1753
|
+
class: v(x(G)),
|
|
1754
1754
|
value: e.block.thickness,
|
|
1755
1755
|
min: "1",
|
|
1756
1756
|
max: "10",
|
|
1757
|
-
onInput:
|
|
1758
|
-
}, null, 42, Yr), y("span", { class:
|
|
1757
|
+
onInput: n[2] ||= (e) => i("thickness", Number(e.target.value))
|
|
1758
|
+
}, null, 42, Yr), y("span", { class: v(x(W)) }, "px", 2)])])
|
|
1759
1759
|
], 64));
|
|
1760
1760
|
}
|
|
1761
1761
|
}), Zr = { class: "tpl:mb-3.5" }, Qr = ["value"], $r = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, ei = /* @__PURE__ */ w({
|
|
1762
1762
|
__name: "HtmlToolbar",
|
|
1763
1763
|
props: { block: {} },
|
|
1764
1764
|
emits: ["update"],
|
|
1765
|
-
setup(e, { emit:
|
|
1766
|
-
let
|
|
1767
|
-
return (
|
|
1768
|
-
y("label", { class:
|
|
1765
|
+
setup(e, { emit: t }) {
|
|
1766
|
+
let n = t, { t: r } = B();
|
|
1767
|
+
return (t, i) => (_(), h("div", Zr, [
|
|
1768
|
+
y("label", { class: v(x(U)) }, s(x(r).html.content), 3),
|
|
1769
1769
|
y("textarea", {
|
|
1770
1770
|
value: e.block.content,
|
|
1771
1771
|
placeholder: "<div>...</div>",
|
|
1772
1772
|
rows: "10",
|
|
1773
|
-
class:
|
|
1774
|
-
onInput:
|
|
1773
|
+
class: v(x($e)),
|
|
1774
|
+
onInput: i[0] ||= (e) => n("update", { content: e.target.value })
|
|
1775
1775
|
}, null, 42, Qr),
|
|
1776
|
-
y("p", $r, [f(
|
|
1776
|
+
y("p", $r, [f(x(He), {
|
|
1777
1777
|
size: 12,
|
|
1778
1778
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
1779
|
-
}), g(" " +
|
|
1779
|
+
}), g(" " + s(x(r).html.sanitizationHint), 1)])
|
|
1780
1780
|
]));
|
|
1781
1781
|
}
|
|
1782
1782
|
});
|
|
1783
1783
|
// src/composables/useImageAspectLock.ts
|
|
1784
1784
|
function ti(e) {
|
|
1785
|
-
let
|
|
1785
|
+
let n = t(!1), r = t(null);
|
|
1786
1786
|
T(() => e.block().id, () => {
|
|
1787
|
-
|
|
1787
|
+
n.value = !1, r.value = null;
|
|
1788
1788
|
});
|
|
1789
|
-
let
|
|
1789
|
+
let i = p(() => he(e.block()) ?? e.measured()), a = p(() => {
|
|
1790
1790
|
let t = e.block().width;
|
|
1791
1791
|
return t === "full" ? e.room() : t;
|
|
1792
|
-
}),
|
|
1793
|
-
let e =
|
|
1792
|
+
}), o = p(() => {
|
|
1793
|
+
let e = i.value, t = a.value;
|
|
1794
1794
|
return !e || t === null ? null : Math.round(t * e.height / e.width);
|
|
1795
|
-
}),
|
|
1795
|
+
}), s = p(() => i.value !== null), c = p(() => {
|
|
1796
1796
|
let t = e.block().height;
|
|
1797
|
-
return t === void 0 ||
|
|
1798
|
-
}), l = p(() =>
|
|
1797
|
+
return t === void 0 || o.value !== null && Math.abs(o.value - t) <= 1;
|
|
1798
|
+
}), l = p(() => s.value && !n.value && c.value);
|
|
1799
1799
|
function u() {
|
|
1800
1800
|
if (he(e.block())) return {};
|
|
1801
1801
|
let t = e.measured();
|
|
1802
1802
|
return t ? L(t) : {};
|
|
1803
1803
|
}
|
|
1804
|
-
function d(
|
|
1805
|
-
if (
|
|
1806
|
-
if (
|
|
1804
|
+
function d(t) {
|
|
1805
|
+
if (r.value = null, !t) return n.value = !0, null;
|
|
1806
|
+
if (n.value = !1, !s.value) return null;
|
|
1807
1807
|
let i = { ...u() };
|
|
1808
1808
|
return e.block().height !== void 0 && (i.height = void 0), Object.keys(i).length > 0 ? i : null;
|
|
1809
1809
|
}
|
|
1810
1810
|
function f(e) {
|
|
1811
|
-
return
|
|
1811
|
+
return r.value = null, l.value ? {
|
|
1812
1812
|
width: e,
|
|
1813
1813
|
height: void 0,
|
|
1814
1814
|
...u()
|
|
1815
1815
|
} : { width: e };
|
|
1816
1816
|
}
|
|
1817
1817
|
function m(t) {
|
|
1818
|
-
let
|
|
1819
|
-
if (!l.value || !
|
|
1820
|
-
let a = Math.round(t *
|
|
1818
|
+
let n = i.value;
|
|
1819
|
+
if (!l.value || !n || !Number.isFinite(t) || t <= 0) return null;
|
|
1820
|
+
let a = Math.round(t * n.width / n.height);
|
|
1821
1821
|
if (a < 1) return null;
|
|
1822
1822
|
let o = e.room();
|
|
1823
|
-
return o !== null && a >= o ? (
|
|
1823
|
+
return o !== null && a >= o ? (r.value = Math.round(o * n.height / n.width), {
|
|
1824
1824
|
width: "full",
|
|
1825
1825
|
height: void 0,
|
|
1826
1826
|
...u()
|
|
1827
|
-
}) : (
|
|
1827
|
+
}) : (r.value = null, {
|
|
1828
1828
|
width: a,
|
|
1829
1829
|
height: void 0,
|
|
1830
1830
|
...u()
|
|
1831
1831
|
});
|
|
1832
1832
|
}
|
|
1833
1833
|
return {
|
|
1834
|
-
available:
|
|
1834
|
+
available: s,
|
|
1835
1835
|
locked: l,
|
|
1836
|
-
derivedHeight:
|
|
1837
|
-
cappedHeight:
|
|
1836
|
+
derivedHeight: o,
|
|
1837
|
+
cappedHeight: r,
|
|
1838
1838
|
setLocked: d,
|
|
1839
1839
|
widthUpdates: f,
|
|
1840
1840
|
heightUpdates: m
|
|
@@ -1866,23 +1866,23 @@ var ni = { class: "tpl:mb-3.5" }, ri = {
|
|
|
1866
1866
|
__name: "ImageToolbar",
|
|
1867
1867
|
props: { block: {} },
|
|
1868
1868
|
emits: ["update"],
|
|
1869
|
-
setup(e, { emit:
|
|
1870
|
-
let
|
|
1869
|
+
setup(e, { emit: i }) {
|
|
1870
|
+
let a = e, o = i, { t: c, format: l } = B(), u = n(Te, te.liquid), d = n(Oe, null), C = n(Ce, void 0), w = t(!1), T = t(!1), { start: E } = xe(() => {
|
|
1871
1871
|
w.value = !1, T.value = !1;
|
|
1872
1872
|
}, 1e3, { immediate: !1 }), D = [
|
|
1873
1873
|
300,
|
|
1874
1874
|
400,
|
|
1875
1875
|
500
|
|
1876
1876
|
], k = p(() => {
|
|
1877
|
-
let e =
|
|
1877
|
+
let e = a.block.width;
|
|
1878
1878
|
return e === "full" ? "full" : D.includes(e) ? String(e) : "custom";
|
|
1879
|
-
}), j = p(() => typeof
|
|
1879
|
+
}), j = p(() => typeof a.block.height == "number" ? "custom" : "auto");
|
|
1880
1880
|
function M(e, t) {
|
|
1881
1881
|
o("update", { [e]: t });
|
|
1882
1882
|
}
|
|
1883
1883
|
function N(e) {
|
|
1884
1884
|
if (e === "custom") {
|
|
1885
|
-
let e =
|
|
1885
|
+
let e = a.block.width;
|
|
1886
1886
|
(typeof e != "number" || D.includes(e)) && o("update", R.widthUpdates(Di));
|
|
1887
1887
|
} else o("update", R.widthUpdates(e === "full" ? "full" : Number(e)));
|
|
1888
1888
|
}
|
|
@@ -1901,7 +1901,7 @@ var ni = { class: "tpl:mb-3.5" }, ri = {
|
|
|
1901
1901
|
!Number.isFinite(t) || t <= 0 || o("update", R.widthUpdates(t));
|
|
1902
1902
|
}
|
|
1903
1903
|
function re(e) {
|
|
1904
|
-
e !==
|
|
1904
|
+
e !== a.block.src && o("update", {
|
|
1905
1905
|
src: e,
|
|
1906
1906
|
...L(null)
|
|
1907
1907
|
});
|
|
@@ -1912,12 +1912,12 @@ var ni = { class: "tpl:mb-3.5" }, ri = {
|
|
|
1912
1912
|
...L(me(e.width, e.height))
|
|
1913
1913
|
}), e.alt && (M("alt", e.alt), T.value = !0), w.value = !0, E();
|
|
1914
1914
|
}
|
|
1915
|
-
let ie =
|
|
1915
|
+
let ie = t(), ae = p(() => A(a.block.src, u)), { canBrowse: oe, isUploading: se, showOverlay: le, openMediaBrowser: ue } = _e({
|
|
1916
1916
|
target: ie,
|
|
1917
1917
|
blocked: ae,
|
|
1918
1918
|
apply: I
|
|
1919
|
-
}), de = ce(() => ae.value || !
|
|
1920
|
-
block: () =>
|
|
1919
|
+
}), de = ce(() => ae.value || !a.block.src || he(a.block) ? void 0 : a.block.src), pe = bn(() => de.value), ve = p(() => d ? ge(d.content.value, a.block.id, C) : null), R = ti({
|
|
1920
|
+
block: () => a.block,
|
|
1921
1921
|
room: () => ve.value,
|
|
1922
1922
|
measured: () => pe.value
|
|
1923
1923
|
}), { available: ye, locked: z, derivedHeight: be, cappedHeight: Se } = R;
|
|
@@ -1925,34 +1925,34 @@ var ni = { class: "tpl:mb-3.5" }, ri = {
|
|
|
1925
1925
|
let e = R.setLocked(!z.value);
|
|
1926
1926
|
e && o("update", e);
|
|
1927
1927
|
}
|
|
1928
|
-
let Ee =
|
|
1928
|
+
let Ee = t(null);
|
|
1929
1929
|
function De(e) {
|
|
1930
1930
|
Ee.value = e;
|
|
1931
1931
|
let t = R.heightUpdates(Number(e));
|
|
1932
1932
|
t && o("update", t);
|
|
1933
1933
|
}
|
|
1934
|
-
return (
|
|
1935
|
-
y("div", ni, [y("label", { class:
|
|
1934
|
+
return (t, n) => (_(), h(b, null, [
|
|
1935
|
+
y("div", ni, [y("label", { class: v(x(U)) }, s(x(c).image.imageUrl), 3), y("div", {
|
|
1936
1936
|
ref_key: "dropZoneRef",
|
|
1937
1937
|
ref: ie,
|
|
1938
1938
|
class: "tpl:relative"
|
|
1939
1939
|
}, [
|
|
1940
|
-
|
|
1940
|
+
x(le) ? (_(), S(fe, {
|
|
1941
1941
|
key: 0,
|
|
1942
|
-
uploading:
|
|
1942
|
+
uploading: x(se)
|
|
1943
1943
|
}, null, 8, ["uploading"])) : m("", !0),
|
|
1944
1944
|
f(J, {
|
|
1945
1945
|
"model-value": e.block.src,
|
|
1946
1946
|
type: "url",
|
|
1947
|
-
placeholder:
|
|
1947
|
+
placeholder: x(c).image.imageUrlPlaceholder,
|
|
1948
1948
|
pulse: w.value,
|
|
1949
|
-
"onUpdate:modelValue":
|
|
1949
|
+
"onUpdate:modelValue": n[0] ||= (e) => re(e)
|
|
1950
1950
|
}, null, 8, [
|
|
1951
1951
|
"model-value",
|
|
1952
1952
|
"placeholder",
|
|
1953
1953
|
"pulse"
|
|
1954
1954
|
]),
|
|
1955
|
-
|
|
1955
|
+
x(oe) ? (_(), h("button", {
|
|
1956
1956
|
key: 1,
|
|
1957
1957
|
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",
|
|
1958
1958
|
style: {
|
|
@@ -1960,29 +1960,29 @@ var ni = { class: "tpl:mb-3.5" }, ri = {
|
|
|
1960
1960
|
color: "var(--tpl-primary)",
|
|
1961
1961
|
"background-color": "var(--tpl-bg)"
|
|
1962
1962
|
},
|
|
1963
|
-
onClick:
|
|
1964
|
-
}, [f(
|
|
1963
|
+
onClick: n[1] ||= (...e) => x(ue) && x(ue)(...e)
|
|
1964
|
+
}, [f(x(Ve), {
|
|
1965
1965
|
size: 14,
|
|
1966
1966
|
"stroke-width": 1.5
|
|
1967
|
-
}), g(" " +
|
|
1967
|
+
}), g(" " + s(x(c).image.browseMedia), 1)])) : m("", !0)
|
|
1968
1968
|
], 512)]),
|
|
1969
|
-
|
|
1969
|
+
x(A)(e.block.src, x(u)) ? (_(), h("div", ri, [y("label", { class: v(x(U)) }, [g(s(x(c).image.placeholderUrl) + " ", 1), y("span", ii, s(x(c).image.optional), 1)], 2), y("input", {
|
|
1970
1970
|
type: "url",
|
|
1971
|
-
class:
|
|
1971
|
+
class: v(x(K)),
|
|
1972
1972
|
value: e.block.placeholderUrl || "",
|
|
1973
|
-
placeholder:
|
|
1974
|
-
title:
|
|
1975
|
-
onInput:
|
|
1973
|
+
placeholder: x(c).image.placeholderUrlPlaceholder,
|
|
1974
|
+
title: x(c).image.placeholderUrlTooltip,
|
|
1975
|
+
onInput: n[2] ||= (e) => M("placeholderUrl", e.target.value)
|
|
1976
1976
|
}, null, 42, ai)])) : m("", !0),
|
|
1977
1977
|
y("div", oi, [
|
|
1978
|
-
y("label", { class:
|
|
1978
|
+
y("label", { class: v(x(U)) }, s(x(c).image.altText), 3),
|
|
1979
1979
|
f(J, {
|
|
1980
1980
|
"model-value": e.block.alt,
|
|
1981
1981
|
type: "text",
|
|
1982
|
-
placeholder:
|
|
1982
|
+
placeholder: x(c).image.altTextPlaceholder,
|
|
1983
1983
|
pulse: T.value,
|
|
1984
1984
|
disabled: e.block.decorative === !0,
|
|
1985
|
-
"onUpdate:modelValue":
|
|
1985
|
+
"onUpdate:modelValue": n[3] ||= (e) => M("alt", e)
|
|
1986
1986
|
}, null, 8, [
|
|
1987
1987
|
"model-value",
|
|
1988
1988
|
"placeholder",
|
|
@@ -1992,41 +1992,41 @@ var ni = { class: "tpl:mb-3.5" }, ri = {
|
|
|
1992
1992
|
f(q, {
|
|
1993
1993
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
1994
1994
|
"model-value": e.block.decorative === !0,
|
|
1995
|
-
label:
|
|
1996
|
-
"onUpdate:modelValue":
|
|
1995
|
+
label: x(c).image.decorative,
|
|
1996
|
+
"onUpdate:modelValue": n[4] ||= (e) => M("decorative", e)
|
|
1997
1997
|
}, {
|
|
1998
|
-
default:
|
|
1998
|
+
default: r(() => [y("span", null, [g(s(x(c).image.decorative) + " ", 1), y("span", si, s(x(c).image.decorativeHint), 1)])]),
|
|
1999
1999
|
_: 1
|
|
2000
2000
|
}, 8, ["model-value", "label"])
|
|
2001
2001
|
]),
|
|
2002
2002
|
y("div", ci, [
|
|
2003
|
-
y("label", { class:
|
|
2003
|
+
y("label", { class: v(x(U)) }, s(x(c).image.width), 3),
|
|
2004
2004
|
y("select", {
|
|
2005
|
-
class:
|
|
2005
|
+
class: v(x(K)),
|
|
2006
2006
|
"data-testid": "image-width-mode",
|
|
2007
2007
|
value: k.value,
|
|
2008
|
-
onChange:
|
|
2008
|
+
onChange: n[5] ||= (e) => N(e.target.value)
|
|
2009
2009
|
}, [
|
|
2010
|
-
y("option", ui,
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
y("option", di,
|
|
2010
|
+
y("option", ui, s(x(c).image.fullWidth), 1),
|
|
2011
|
+
n[15] ||= y("option", { value: "300" }, "300px", -1),
|
|
2012
|
+
n[16] ||= y("option", { value: "400" }, "400px", -1),
|
|
2013
|
+
n[17] ||= y("option", { value: "500" }, "500px", -1),
|
|
2014
|
+
y("option", di, s(x(c).image.widthCustom), 1)
|
|
2015
2015
|
], 42, li),
|
|
2016
2016
|
k.value === "custom" ? (_(), h("div", fi, [y("input", {
|
|
2017
2017
|
type: "number",
|
|
2018
2018
|
"data-testid": "image-width-input",
|
|
2019
|
-
class:
|
|
2019
|
+
class: v(x(G)),
|
|
2020
2020
|
value: typeof e.block.width == "number" ? e.block.width : Di,
|
|
2021
2021
|
min: "20",
|
|
2022
|
-
onInput:
|
|
2023
|
-
}, null, 42, pi), y("span", { class:
|
|
2022
|
+
onInput: n[6] ||= (e) => ne(e.target.value)
|
|
2023
|
+
}, null, 42, pi), y("span", { class: v(x(W)) }, "px", 2)])) : m("", !0)
|
|
2024
2024
|
]),
|
|
2025
2025
|
y("div", mi, [
|
|
2026
|
-
|
|
2027
|
-
linked:
|
|
2028
|
-
"link-label":
|
|
2029
|
-
"unlink-label":
|
|
2026
|
+
x(ye) ? (_(), h("div", hi, [y("span", gi, s(x(c).image.height), 1), f(ht, {
|
|
2027
|
+
linked: x(z),
|
|
2028
|
+
"link-label": x(c).image.lockAspectRatio,
|
|
2029
|
+
"unlink-label": x(c).image.unlockAspectRatio,
|
|
2030
2030
|
testid: "image-aspect-lock",
|
|
2031
2031
|
onToggle: we
|
|
2032
2032
|
}, null, 8, [
|
|
@@ -2035,76 +2035,76 @@ var ni = { class: "tpl:mb-3.5" }, ri = {
|
|
|
2035
2035
|
"unlink-label"
|
|
2036
2036
|
])])) : (_(), h("label", {
|
|
2037
2037
|
key: 1,
|
|
2038
|
-
class:
|
|
2039
|
-
},
|
|
2040
|
-
|
|
2038
|
+
class: v(x(U))
|
|
2039
|
+
}, s(x(c).image.height), 3)),
|
|
2040
|
+
x(z) ? (_(), h(b, { key: 2 }, [y("div", _i, [y("input", {
|
|
2041
2041
|
type: "number",
|
|
2042
2042
|
"data-testid": "image-locked-height-input",
|
|
2043
|
-
class:
|
|
2044
|
-
value: Ee.value ??
|
|
2043
|
+
class: v(x(G)),
|
|
2044
|
+
value: Ee.value ?? x(be) ?? "",
|
|
2045
2045
|
min: "1",
|
|
2046
|
-
onInput:
|
|
2047
|
-
onBlur:
|
|
2048
|
-
}, null, 42, vi), y("span", { class:
|
|
2049
|
-
|
|
2046
|
+
onInput: n[7] ||= (e) => De(e.target.value),
|
|
2047
|
+
onBlur: n[8] ||= (e) => Ee.value = null
|
|
2048
|
+
}, null, 42, vi), y("span", { class: v(x(W)) }, "px", 2)]), x(Se) === null ? m("", !0) : (_(), h("p", yi, s(x(l)(x(c).image.heightCapped, { height: x(Se) })), 1))], 64)) : m("", !0),
|
|
2049
|
+
x(z) ? m("", !0) : (_(), h("select", {
|
|
2050
2050
|
key: 3,
|
|
2051
|
-
class:
|
|
2051
|
+
class: v(x(K)),
|
|
2052
2052
|
"data-testid": "image-height-mode",
|
|
2053
2053
|
value: j.value,
|
|
2054
|
-
onChange:
|
|
2055
|
-
}, [y("option", xi,
|
|
2056
|
-
!
|
|
2054
|
+
onChange: n[9] ||= (e) => P(e.target.value)
|
|
2055
|
+
}, [y("option", xi, s(x(c).image.heightAuto), 1), y("option", Si, s(x(c).image.heightCustom), 1)], 42, bi)),
|
|
2056
|
+
!x(z) && j.value === "custom" ? (_(), h("div", Ci, [y("input", {
|
|
2057
2057
|
type: "number",
|
|
2058
2058
|
"data-testid": "image-height-input",
|
|
2059
|
-
class:
|
|
2059
|
+
class: v(x(G)),
|
|
2060
2060
|
value: e.block.height,
|
|
2061
2061
|
min: "20",
|
|
2062
|
-
onInput:
|
|
2063
|
-
}, null, 42, wi), y("span", { class:
|
|
2062
|
+
onInput: n[10] ||= (e) => F(e.target.value)
|
|
2063
|
+
}, null, 42, wi), y("span", { class: v(x(W)) }, "px", 2)])) : m("", !0)
|
|
2064
2064
|
]),
|
|
2065
2065
|
f(Ot, {
|
|
2066
2066
|
"model-value": e.block.borderRadius,
|
|
2067
|
-
label:
|
|
2067
|
+
label: x(c).image.borderRadius,
|
|
2068
2068
|
"testid-prefix": "image",
|
|
2069
2069
|
"onUpdate:modelValue": ee
|
|
2070
2070
|
}, null, 8, ["model-value", "label"]),
|
|
2071
2071
|
f(St, {
|
|
2072
2072
|
"model-value": e.block.border,
|
|
2073
2073
|
"testid-prefix": "image",
|
|
2074
|
-
"onUpdate:modelValue":
|
|
2074
|
+
"onUpdate:modelValue": n[11] ||= (e) => M("border", e)
|
|
2075
2075
|
}, null, 8, ["model-value"]),
|
|
2076
|
-
y("div", Ti, [y("label", { class:
|
|
2076
|
+
y("div", Ti, [y("label", { class: v(x(U)) }, s(x(c).title.align), 3), f(Y, {
|
|
2077
2077
|
options: [
|
|
2078
2078
|
{
|
|
2079
2079
|
value: "left",
|
|
2080
|
-
label:
|
|
2080
|
+
label: x(c).title.alignLeft
|
|
2081
2081
|
},
|
|
2082
2082
|
{
|
|
2083
2083
|
value: "center",
|
|
2084
|
-
label:
|
|
2084
|
+
label: x(c).title.alignCenter
|
|
2085
2085
|
},
|
|
2086
2086
|
{
|
|
2087
2087
|
value: "right",
|
|
2088
|
-
label:
|
|
2088
|
+
label: x(c).title.alignRight
|
|
2089
2089
|
}
|
|
2090
2090
|
],
|
|
2091
2091
|
"model-value": e.block.align,
|
|
2092
|
-
"onUpdate:modelValue":
|
|
2092
|
+
"onUpdate:modelValue": n[12] ||= (e) => M("align", e)
|
|
2093
2093
|
}, null, 8, ["options", "model-value"])]),
|
|
2094
2094
|
y("div", Ei, [
|
|
2095
|
-
y("label", { class:
|
|
2095
|
+
y("label", { class: v(x(U)) }, s(x(c).image.linkUrl), 3),
|
|
2096
2096
|
f(J, {
|
|
2097
2097
|
"model-value": e.block.linkUrl || "",
|
|
2098
2098
|
type: "url",
|
|
2099
|
-
placeholder:
|
|
2100
|
-
"onUpdate:modelValue":
|
|
2099
|
+
placeholder: x(c).image.imageUrlPlaceholder,
|
|
2100
|
+
"onUpdate:modelValue": n[13] ||= (e) => M("linkUrl", e)
|
|
2101
2101
|
}, null, 8, ["model-value", "placeholder"]),
|
|
2102
2102
|
e.block.linkUrl ? (_(), S(q, {
|
|
2103
2103
|
key: 0,
|
|
2104
2104
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2105
2105
|
"model-value": e.block.linkOpenInNewTab ?? !1,
|
|
2106
|
-
label:
|
|
2107
|
-
"onUpdate:modelValue":
|
|
2106
|
+
label: x(c).image.openInNewTab,
|
|
2107
|
+
"onUpdate:modelValue": n[14] ||= (e) => M("linkOpenInNewTab", e)
|
|
2108
2108
|
}, null, 8, ["model-value", "label"])) : m("", !0)
|
|
2109
2109
|
])
|
|
2110
2110
|
], 64));
|
|
@@ -2113,10 +2113,10 @@ var ni = { class: "tpl:mb-3.5" }, ri = {
|
|
|
2113
2113
|
__name: "FieldRow",
|
|
2114
2114
|
props: { label: {} },
|
|
2115
2115
|
setup(e) {
|
|
2116
|
-
return (
|
|
2116
|
+
return (t, n) => (_(), h("div", Ai, [e.label ? (_(), h("label", {
|
|
2117
2117
|
key: 0,
|
|
2118
|
-
class:
|
|
2119
|
-
},
|
|
2118
|
+
class: v(x(U))
|
|
2119
|
+
}, s(e.label), 3)) : m("", !0), c(t.$slots, "default")]));
|
|
2120
2120
|
}
|
|
2121
2121
|
}), ji = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Mi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ni = [
|
|
2122
2122
|
"value",
|
|
@@ -2129,41 +2129,41 @@ var ni = { class: "tpl:mb-3.5" }, ri = {
|
|
|
2129
2129
|
fontFamilies: {}
|
|
2130
2130
|
},
|
|
2131
2131
|
emits: ["update"],
|
|
2132
|
-
setup(e, { emit:
|
|
2133
|
-
let
|
|
2132
|
+
setup(e, { emit: t }) {
|
|
2133
|
+
let n = e, i = t, { t: a } = B(), c = p(() => [
|
|
2134
2134
|
{
|
|
2135
2135
|
key: "openInNewTab",
|
|
2136
|
-
label:
|
|
2136
|
+
label: a.menu.openInNewTab
|
|
2137
2137
|
},
|
|
2138
2138
|
{
|
|
2139
2139
|
key: "bold",
|
|
2140
|
-
label:
|
|
2140
|
+
label: a.menu.bold
|
|
2141
2141
|
},
|
|
2142
2142
|
{
|
|
2143
2143
|
key: "underline",
|
|
2144
|
-
label:
|
|
2144
|
+
label: a.menu.underline
|
|
2145
2145
|
}
|
|
2146
|
-
]),
|
|
2146
|
+
]), l = p(() => [
|
|
2147
2147
|
{
|
|
2148
2148
|
value: "left",
|
|
2149
|
-
label:
|
|
2149
|
+
label: a.title.alignLeft,
|
|
2150
2150
|
icon: Ye
|
|
2151
2151
|
},
|
|
2152
2152
|
{
|
|
2153
2153
|
value: "center",
|
|
2154
|
-
label:
|
|
2154
|
+
label: a.title.alignCenter,
|
|
2155
2155
|
icon: Je
|
|
2156
2156
|
},
|
|
2157
2157
|
{
|
|
2158
2158
|
value: "right",
|
|
2159
|
-
label:
|
|
2159
|
+
label: a.title.alignRight,
|
|
2160
2160
|
icon: qe
|
|
2161
2161
|
}
|
|
2162
2162
|
]);
|
|
2163
|
-
function
|
|
2163
|
+
function u(e, t) {
|
|
2164
2164
|
i("update", { [e]: t });
|
|
2165
2165
|
}
|
|
2166
|
-
function
|
|
2166
|
+
function d() {
|
|
2167
2167
|
let e = {
|
|
2168
2168
|
id: M(),
|
|
2169
2169
|
text: "",
|
|
@@ -2172,138 +2172,138 @@ var ni = { class: "tpl:mb-3.5" }, ri = {
|
|
|
2172
2172
|
bold: !1,
|
|
2173
2173
|
underline: !1
|
|
2174
2174
|
};
|
|
2175
|
-
i("update", { items: [...
|
|
2175
|
+
i("update", { items: [...n.block.items, e] });
|
|
2176
2176
|
}
|
|
2177
|
-
function
|
|
2178
|
-
let a =
|
|
2179
|
-
...
|
|
2180
|
-
[t]:
|
|
2181
|
-
} :
|
|
2177
|
+
function m(e, t, r) {
|
|
2178
|
+
let a = n.block.items.map((n) => n.id === e ? {
|
|
2179
|
+
...n,
|
|
2180
|
+
[t]: r
|
|
2181
|
+
} : n);
|
|
2182
2182
|
i("update", { items: a });
|
|
2183
2183
|
}
|
|
2184
2184
|
function C(e) {
|
|
2185
|
-
i("update", { items:
|
|
2185
|
+
i("update", { items: n.block.items.filter((t) => t.id !== e) });
|
|
2186
2186
|
}
|
|
2187
|
-
return (
|
|
2188
|
-
f($, { label:
|
|
2189
|
-
default:
|
|
2190
|
-
key:
|
|
2187
|
+
return (t, n) => (_(), h(b, null, [
|
|
2188
|
+
f($, { label: x(a).menu.items }, {
|
|
2189
|
+
default: r(() => [y("div", ji, [(_(!0), h(b, null, o(e.block.items, (t) => (_(), h("div", {
|
|
2190
|
+
key: t.id,
|
|
2191
2191
|
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"
|
|
2192
2192
|
}, [
|
|
2193
2193
|
y("div", Mi, [y("input", {
|
|
2194
2194
|
type: "text",
|
|
2195
|
-
class:
|
|
2196
|
-
value:
|
|
2197
|
-
placeholder:
|
|
2198
|
-
onInput: (e) =>
|
|
2195
|
+
class: v([x(K), "tpl:flex-1"]),
|
|
2196
|
+
value: t.text,
|
|
2197
|
+
placeholder: x(a).menu.text,
|
|
2198
|
+
onInput: (e) => m(t.id, "text", e.target.value)
|
|
2199
2199
|
}, null, 42, Ni), y("button", {
|
|
2200
|
-
class:
|
|
2201
|
-
title:
|
|
2202
|
-
onClick: (e) => C(
|
|
2203
|
-
}, [f(
|
|
2200
|
+
class: v(x(et)),
|
|
2201
|
+
title: x(a).menu.removeItem,
|
|
2202
|
+
onClick: (e) => C(t.id)
|
|
2203
|
+
}, [f(x(Ze), {
|
|
2204
2204
|
size: 14,
|
|
2205
2205
|
"stroke-width": 2
|
|
2206
2206
|
})], 10, Pi)]),
|
|
2207
2207
|
f(J, {
|
|
2208
|
-
"model-value":
|
|
2208
|
+
"model-value": t.url,
|
|
2209
2209
|
type: "url",
|
|
2210
|
-
placeholder:
|
|
2211
|
-
"onUpdate:modelValue": (e) =>
|
|
2210
|
+
placeholder: x(a).menu.urlPlaceholder,
|
|
2211
|
+
"onUpdate:modelValue": (e) => m(t.id, "url", e)
|
|
2212
2212
|
}, null, 8, [
|
|
2213
2213
|
"model-value",
|
|
2214
2214
|
"placeholder",
|
|
2215
2215
|
"onUpdate:modelValue"
|
|
2216
2216
|
]),
|
|
2217
|
-
y("div", Fi, [(_(!0), h(
|
|
2217
|
+
y("div", Fi, [(_(!0), h(b, null, o(c.value, (e) => (_(), S(q, {
|
|
2218
2218
|
key: e.key,
|
|
2219
|
-
"model-value":
|
|
2219
|
+
"model-value": t[e.key],
|
|
2220
2220
|
label: e.label,
|
|
2221
|
-
"onUpdate:modelValue": (
|
|
2221
|
+
"onUpdate:modelValue": (n) => m(t.id, e.key, n)
|
|
2222
2222
|
}, null, 8, [
|
|
2223
2223
|
"model-value",
|
|
2224
2224
|
"label",
|
|
2225
2225
|
"onUpdate:modelValue"
|
|
2226
2226
|
]))), 128))]),
|
|
2227
|
-
y("div", Ii, [y("label", { class:
|
|
2227
|
+
y("div", Ii, [y("label", { class: v([x(U), "tpl:!mb-0"]) }, s(x(a).menu.color), 3), f(V, {
|
|
2228
2228
|
"swatch-only": "",
|
|
2229
|
-
"model-value":
|
|
2230
|
-
"onUpdate:modelValue": (e) =>
|
|
2229
|
+
"model-value": t.color || e.block.linkColor || e.block.color || "",
|
|
2230
|
+
"onUpdate:modelValue": (e) => m(t.id, "color", e)
|
|
2231
2231
|
}, null, 8, ["model-value", "onUpdate:modelValue"])])
|
|
2232
2232
|
]))), 128)), y("button", {
|
|
2233
|
-
class:
|
|
2234
|
-
onClick:
|
|
2235
|
-
}, [f(
|
|
2233
|
+
class: v(x(tt)),
|
|
2234
|
+
onClick: d
|
|
2235
|
+
}, [f(x(H), {
|
|
2236
2236
|
size: 14,
|
|
2237
2237
|
"stroke-width": 2
|
|
2238
|
-
}), g(" " +
|
|
2238
|
+
}), g(" " + s(x(a).menu.addItem), 1)], 2)])]),
|
|
2239
2239
|
_: 1
|
|
2240
2240
|
}, 8, ["label"]),
|
|
2241
|
-
f($, { label:
|
|
2242
|
-
default:
|
|
2243
|
-
class:
|
|
2244
|
-
value:
|
|
2245
|
-
onChange:
|
|
2246
|
-
}, [y("option", Ri,
|
|
2241
|
+
f($, { label: x(a).menu.fontFamily }, {
|
|
2242
|
+
default: r(() => [y("select", {
|
|
2243
|
+
class: v(x(K)),
|
|
2244
|
+
value: x(ot)(e.block.fontFamily),
|
|
2245
|
+
onChange: n[0] ||= (e) => u("fontFamily", e.target.value || void 0)
|
|
2246
|
+
}, [y("option", Ri, s(x(a).title.inheritFont), 1), (_(!0), h(b, null, o(e.fontFamilies, (e) => (_(), h("option", {
|
|
2247
2247
|
key: e.value,
|
|
2248
2248
|
value: e.value
|
|
2249
|
-
},
|
|
2249
|
+
}, s(e.label), 9, zi))), 128))], 42, Li)]),
|
|
2250
2250
|
_: 1
|
|
2251
2251
|
}, 8, ["label"]),
|
|
2252
|
-
f($, { label:
|
|
2253
|
-
default:
|
|
2252
|
+
f($, { label: x(a).menu.fontSize }, {
|
|
2253
|
+
default: r(() => [f(X, {
|
|
2254
2254
|
"model-value": e.block.fontSize,
|
|
2255
2255
|
min: 8,
|
|
2256
2256
|
max: 48,
|
|
2257
2257
|
suffix: "px",
|
|
2258
|
-
"onUpdate:modelValue":
|
|
2258
|
+
"onUpdate:modelValue": n[1] ||= (e) => u("fontSize", e)
|
|
2259
2259
|
}, null, 8, ["model-value"])]),
|
|
2260
2260
|
_: 1
|
|
2261
2261
|
}, 8, ["label"]),
|
|
2262
|
-
f($, { label:
|
|
2263
|
-
default:
|
|
2262
|
+
f($, { label: x(a).menu.color }, {
|
|
2263
|
+
default: r(() => [f(V, {
|
|
2264
2264
|
"model-value": e.block.color ?? "",
|
|
2265
|
-
"onUpdate:modelValue":
|
|
2265
|
+
"onUpdate:modelValue": n[2] ||= (e) => u("color", e || void 0)
|
|
2266
2266
|
}, null, 8, ["model-value"])]),
|
|
2267
2267
|
_: 1
|
|
2268
2268
|
}, 8, ["label"]),
|
|
2269
|
-
f($, { label:
|
|
2270
|
-
default:
|
|
2269
|
+
f($, { label: x(a).menu.linkColor }, {
|
|
2270
|
+
default: r(() => [f(V, {
|
|
2271
2271
|
"model-value": e.block.linkColor || e.block.color || "",
|
|
2272
|
-
"onUpdate:modelValue":
|
|
2272
|
+
"onUpdate:modelValue": n[3] ||= (e) => u("linkColor", e || void 0)
|
|
2273
2273
|
}, null, 8, ["model-value"])]),
|
|
2274
2274
|
_: 1
|
|
2275
2275
|
}, 8, ["label"]),
|
|
2276
|
-
f($, { label:
|
|
2277
|
-
default:
|
|
2278
|
-
options:
|
|
2276
|
+
f($, { label: x(a).menu.textAlign }, {
|
|
2277
|
+
default: r(() => [f(Y, {
|
|
2278
|
+
options: l.value,
|
|
2279
2279
|
"model-value": e.block.textAlign,
|
|
2280
|
-
"onUpdate:modelValue":
|
|
2280
|
+
"onUpdate:modelValue": n[4] ||= (e) => u("textAlign", e)
|
|
2281
2281
|
}, null, 8, ["options", "model-value"])]),
|
|
2282
2282
|
_: 1
|
|
2283
2283
|
}, 8, ["label"]),
|
|
2284
|
-
f($, { label:
|
|
2285
|
-
default:
|
|
2284
|
+
f($, { label: x(a).menu.separator }, {
|
|
2285
|
+
default: r(() => [y("input", {
|
|
2286
2286
|
type: "text",
|
|
2287
|
-
class:
|
|
2287
|
+
class: v(x(K)),
|
|
2288
2288
|
value: e.block.separator,
|
|
2289
|
-
onInput:
|
|
2289
|
+
onInput: n[5] ||= (e) => u("separator", e.target.value)
|
|
2290
2290
|
}, null, 42, Bi)]),
|
|
2291
2291
|
_: 1
|
|
2292
2292
|
}, 8, ["label"]),
|
|
2293
|
-
f($, { label:
|
|
2294
|
-
default:
|
|
2293
|
+
f($, { label: x(a).menu.separatorColor }, {
|
|
2294
|
+
default: r(() => [f(V, {
|
|
2295
2295
|
"model-value": e.block.separatorColor,
|
|
2296
|
-
"onUpdate:modelValue":
|
|
2296
|
+
"onUpdate:modelValue": n[6] ||= (e) => u("separatorColor", e)
|
|
2297
2297
|
}, null, 8, ["model-value"])]),
|
|
2298
2298
|
_: 1
|
|
2299
2299
|
}, 8, ["label"]),
|
|
2300
|
-
f($, { label:
|
|
2301
|
-
default:
|
|
2300
|
+
f($, { label: x(a).menu.spacing }, {
|
|
2301
|
+
default: r(() => [f(X, {
|
|
2302
2302
|
"model-value": e.block.spacing,
|
|
2303
2303
|
min: 0,
|
|
2304
2304
|
max: 50,
|
|
2305
2305
|
suffix: "px",
|
|
2306
|
-
"onUpdate:modelValue":
|
|
2306
|
+
"onUpdate:modelValue": n[7] ||= (e) => u("spacing", e)
|
|
2307
2307
|
}, null, 8, ["model-value"])]),
|
|
2308
2308
|
_: 1
|
|
2309
2309
|
}, 8, ["label"])
|
|
@@ -2316,16 +2316,16 @@ var ni = { class: "tpl:mb-3.5" }, ri = {
|
|
|
2316
2316
|
__name: "ParagraphToolbar",
|
|
2317
2317
|
props: { block: {} },
|
|
2318
2318
|
emits: ["update"],
|
|
2319
|
-
setup(e, { emit:
|
|
2320
|
-
let
|
|
2321
|
-
return (
|
|
2319
|
+
setup(e, { emit: t }) {
|
|
2320
|
+
let n = t, { t: r } = B();
|
|
2321
|
+
return (t, i) => (_(), h("div", Hi, [y("label", { class: v(x(U)) }, s(x(r).paragraph.paragraphSpacing), 3), y("div", Ui, [y("input", {
|
|
2322
2322
|
type: "number",
|
|
2323
|
-
class:
|
|
2324
|
-
value: e.block.paragraphSpacing ??
|
|
2323
|
+
class: v(x(G)),
|
|
2324
|
+
value: e.block.paragraphSpacing ?? x(ae).paragraphGap,
|
|
2325
2325
|
min: "0",
|
|
2326
2326
|
max: "64",
|
|
2327
|
-
onInput:
|
|
2328
|
-
}, null, 42, Wi), y("span", { class:
|
|
2327
|
+
onInput: i[0] ||= (e) => n("update", { paragraphSpacing: Number(e.target.value) })
|
|
2328
|
+
}, null, 42, Wi), y("span", { class: v(x(W)) }, "px", 2)])]));
|
|
2329
2329
|
}
|
|
2330
2330
|
});
|
|
2331
2331
|
// src/utils/rebalanceColumnChildren.ts
|
|
@@ -2356,44 +2356,44 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2356
2356
|
__name: "SectionToolbar",
|
|
2357
2357
|
props: { block: {} },
|
|
2358
2358
|
emits: ["update"],
|
|
2359
|
-
setup(e, { emit:
|
|
2360
|
-
let
|
|
2359
|
+
setup(e, { emit: t }) {
|
|
2360
|
+
let r = e, i = t, { t: a } = B(), c = n(Ce, void 0), l = n(Ee, void 0), u = c !== void 0 && ne(c), d = p(() => l !== !1 || !!r.block.wrapper), g = p(() => u && !r.block.wrapper), C = p(() => u && d.value), w = p(() => oe(r.block)?.applied === !0), T = p(() => [
|
|
2361
2361
|
{
|
|
2362
2362
|
value: "1",
|
|
2363
|
-
label:
|
|
2363
|
+
label: a.section.column1
|
|
2364
2364
|
},
|
|
2365
2365
|
{
|
|
2366
2366
|
value: "2",
|
|
2367
|
-
label:
|
|
2367
|
+
label: a.section.column2
|
|
2368
2368
|
},
|
|
2369
2369
|
{
|
|
2370
2370
|
value: "3",
|
|
2371
|
-
label:
|
|
2371
|
+
label: a.section.column3
|
|
2372
2372
|
},
|
|
2373
2373
|
{
|
|
2374
2374
|
value: "1-2",
|
|
2375
|
-
label:
|
|
2375
|
+
label: a.section.ratio12
|
|
2376
2376
|
},
|
|
2377
2377
|
{
|
|
2378
2378
|
value: "2-1",
|
|
2379
|
-
label:
|
|
2379
|
+
label: a.section.ratio21
|
|
2380
2380
|
}
|
|
2381
2381
|
]);
|
|
2382
2382
|
function E(e) {
|
|
2383
|
-
let t = e.target.value, n = Ki(
|
|
2384
|
-
|
|
2383
|
+
let t = e.target.value, n = Ki(r.block.children, t);
|
|
2384
|
+
i("update", {
|
|
2385
2385
|
columns: t,
|
|
2386
2386
|
children: n
|
|
2387
2387
|
});
|
|
2388
2388
|
}
|
|
2389
2389
|
function D(e) {
|
|
2390
|
-
|
|
2390
|
+
i("update", { stackOnMobile: e });
|
|
2391
2391
|
}
|
|
2392
2392
|
function O(e) {
|
|
2393
|
-
|
|
2393
|
+
i("update", { borderRadius: e });
|
|
2394
2394
|
}
|
|
2395
2395
|
function k(e) {
|
|
2396
|
-
|
|
2396
|
+
i("update", { wrapper: e ? { padding: {
|
|
2397
2397
|
top: 20,
|
|
2398
2398
|
right: 20,
|
|
2399
2399
|
bottom: 20,
|
|
@@ -2401,8 +2401,8 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2401
2401
|
} } : void 0 });
|
|
2402
2402
|
}
|
|
2403
2403
|
function A(e) {
|
|
2404
|
-
|
|
2405
|
-
...
|
|
2404
|
+
i("update", { wrapper: {
|
|
2405
|
+
...r.block.wrapper,
|
|
2406
2406
|
...e
|
|
2407
2407
|
} });
|
|
2408
2408
|
}
|
|
@@ -2412,24 +2412,24 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2412
2412
|
function M(e) {
|
|
2413
2413
|
A({ borderRadius: e });
|
|
2414
2414
|
}
|
|
2415
|
-
return (
|
|
2416
|
-
y("div", qi, [y("label", { class:
|
|
2417
|
-
class:
|
|
2415
|
+
return (t, n) => (_(), h(b, null, [
|
|
2416
|
+
y("div", qi, [y("label", { class: v(x(U)) }, s(x(a).section.columns), 3), y("select", {
|
|
2417
|
+
class: v(x(K)),
|
|
2418
2418
|
value: e.block.columns,
|
|
2419
2419
|
onChange: E
|
|
2420
|
-
}, [(_(!0), h(
|
|
2420
|
+
}, [(_(!0), h(b, null, o(T.value, (e) => (_(), h("option", {
|
|
2421
2421
|
key: e.value,
|
|
2422
2422
|
value: e.value
|
|
2423
|
-
},
|
|
2423
|
+
}, s(e.label), 9, Yi))), 128))], 42, Ji)]),
|
|
2424
2424
|
e.block.columns === "1" ? m("", !0) : (_(), h("div", Xi, [f(q, {
|
|
2425
2425
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2426
2426
|
"model-value": e.block.stackOnMobile !== !1,
|
|
2427
|
-
label:
|
|
2428
|
-
"onUpdate:modelValue":
|
|
2427
|
+
label: x(a).section.stackOnMobile,
|
|
2428
|
+
"onUpdate:modelValue": n[0] ||= (e) => D(e)
|
|
2429
2429
|
}, null, 8, ["model-value", "label"])])),
|
|
2430
2430
|
f(Ot, {
|
|
2431
2431
|
"model-value": e.block.borderRadius,
|
|
2432
|
-
label:
|
|
2432
|
+
label: x(a).section.borderRadius,
|
|
2433
2433
|
max: 50,
|
|
2434
2434
|
"testid-prefix": "section",
|
|
2435
2435
|
"onUpdate:modelValue": O
|
|
@@ -2438,34 +2438,34 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2438
2438
|
key: 1,
|
|
2439
2439
|
"model-value": e.block.border,
|
|
2440
2440
|
"testid-prefix": "section",
|
|
2441
|
-
"onUpdate:modelValue":
|
|
2441
|
+
"onUpdate:modelValue": n[1] ||= (e) => i("update", { border: e })
|
|
2442
2442
|
}, null, 8, ["model-value"])),
|
|
2443
|
-
|
|
2443
|
+
d.value ? (_(), h("div", Zi, [
|
|
2444
2444
|
f(q, {
|
|
2445
2445
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2446
2446
|
"model-value": !!e.block.wrapper,
|
|
2447
|
-
label:
|
|
2448
|
-
disabled:
|
|
2449
|
-
"onUpdate:modelValue":
|
|
2447
|
+
label: x(a).section.wrapperEnable,
|
|
2448
|
+
disabled: g.value,
|
|
2449
|
+
"onUpdate:modelValue": n[2] ||= (e) => k(e)
|
|
2450
2450
|
}, null, 8, [
|
|
2451
2451
|
"model-value",
|
|
2452
2452
|
"label",
|
|
2453
2453
|
"disabled"
|
|
2454
2454
|
]),
|
|
2455
|
-
C.value ? (_(), h("p", Qi,
|
|
2455
|
+
C.value ? (_(), h("p", Qi, s(x(a).section.wrapperLayoutConflict), 1)) : m("", !0),
|
|
2456
2456
|
e.block.wrapper ? (_(), h("div", $i, [
|
|
2457
|
-
y("div", null, [y("label", { class:
|
|
2457
|
+
y("div", null, [y("label", { class: v(x(U)) }, s(x(a).blockSettings.color), 3), f(V, {
|
|
2458
2458
|
"model-value": e.block.wrapper.backgroundColor ?? "",
|
|
2459
2459
|
"allow-transparent": "",
|
|
2460
|
-
"onUpdate:modelValue":
|
|
2460
|
+
"onUpdate:modelValue": n[3] ||= (e) => A({ backgroundColor: e })
|
|
2461
2461
|
}, null, 8, ["model-value"])]),
|
|
2462
2462
|
f(An, {
|
|
2463
2463
|
"model-value": e.block.wrapper.backgroundImage,
|
|
2464
2464
|
"testid-prefix": "section-wrapper",
|
|
2465
|
-
"onUpdate:modelValue":
|
|
2465
|
+
"onUpdate:modelValue": n[4] ||= (e) => A({ backgroundImage: e })
|
|
2466
2466
|
}, null, 8, ["model-value"]),
|
|
2467
2467
|
f(yn, {
|
|
2468
|
-
label:
|
|
2468
|
+
label: x(a).blockSettings.padding,
|
|
2469
2469
|
"model-value": e.block.wrapper.padding ?? {
|
|
2470
2470
|
top: 0,
|
|
2471
2471
|
right: 0,
|
|
@@ -2476,7 +2476,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2476
2476
|
}, null, 8, ["label", "model-value"]),
|
|
2477
2477
|
f(Ot, {
|
|
2478
2478
|
"model-value": e.block.wrapper.borderRadius,
|
|
2479
|
-
label:
|
|
2479
|
+
label: x(a).section.borderRadius,
|
|
2480
2480
|
max: 50,
|
|
2481
2481
|
"testid-prefix": "section-wrapper",
|
|
2482
2482
|
"onUpdate:modelValue": M
|
|
@@ -2489,132 +2489,132 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2489
2489
|
__name: "SocialToolbar",
|
|
2490
2490
|
props: { block: {} },
|
|
2491
2491
|
emits: ["update"],
|
|
2492
|
-
setup(e, { emit:
|
|
2493
|
-
let
|
|
2494
|
-
function
|
|
2495
|
-
|
|
2492
|
+
setup(e, { emit: t }) {
|
|
2493
|
+
let n = e, r = t, { t: i } = B();
|
|
2494
|
+
function a(e, t) {
|
|
2495
|
+
r("update", { [e]: t });
|
|
2496
2496
|
}
|
|
2497
|
-
function
|
|
2497
|
+
function c() {
|
|
2498
2498
|
let e = {
|
|
2499
2499
|
id: M(),
|
|
2500
2500
|
platform: "facebook",
|
|
2501
2501
|
url: ""
|
|
2502
2502
|
};
|
|
2503
|
-
|
|
2503
|
+
r("update", { icons: [...n.block.icons, e] });
|
|
2504
2504
|
}
|
|
2505
|
-
function
|
|
2506
|
-
let a =
|
|
2507
|
-
...
|
|
2508
|
-
[t]:
|
|
2509
|
-
} :
|
|
2510
|
-
|
|
2505
|
+
function l(e, t, i) {
|
|
2506
|
+
let a = n.block.icons.map((n) => n.id === e ? {
|
|
2507
|
+
...n,
|
|
2508
|
+
[t]: i
|
|
2509
|
+
} : n);
|
|
2510
|
+
r("update", { icons: a });
|
|
2511
2511
|
}
|
|
2512
|
-
function
|
|
2513
|
-
|
|
2512
|
+
function u(e) {
|
|
2513
|
+
r("update", { icons: n.block.icons.filter((t) => t.id !== e) });
|
|
2514
2514
|
}
|
|
2515
|
-
return (
|
|
2516
|
-
y("div", ta, [y("label", { class:
|
|
2515
|
+
return (t, n) => (_(), h(b, null, [
|
|
2516
|
+
y("div", ta, [y("label", { class: v(x(U)) }, s(x(i).social.icons), 3), y("div", na, [(_(!0), h(b, null, o(e.block.icons, (e) => (_(), h("div", {
|
|
2517
2517
|
key: e.id,
|
|
2518
2518
|
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"
|
|
2519
2519
|
}, [y("div", ra, [y("select", {
|
|
2520
2520
|
"data-testid": "social-platform-select",
|
|
2521
|
-
class:
|
|
2521
|
+
class: v([x(K), "tpl:flex-1"]),
|
|
2522
2522
|
value: e.platform,
|
|
2523
|
-
onChange: (t) =>
|
|
2524
|
-
}, [(_(!0), h(
|
|
2523
|
+
onChange: (t) => l(e.id, "platform", t.target.value)
|
|
2524
|
+
}, [(_(!0), h(b, null, o(x(ye), (e) => (_(), h("option", {
|
|
2525
2525
|
key: e,
|
|
2526
2526
|
value: e
|
|
2527
|
-
},
|
|
2528
|
-
class:
|
|
2529
|
-
title:
|
|
2530
|
-
onClick: (t) =>
|
|
2531
|
-
}, [f(
|
|
2527
|
+
}, s(x(i).social.platforms[e]), 9, aa))), 128))], 42, ia), y("button", {
|
|
2528
|
+
class: v(x(et)),
|
|
2529
|
+
title: x(i).social.removeIcon,
|
|
2530
|
+
onClick: (t) => u(e.id)
|
|
2531
|
+
}, [f(x(Ze), {
|
|
2532
2532
|
size: 14,
|
|
2533
2533
|
"stroke-width": 2
|
|
2534
2534
|
})], 10, oa)]), f(J, {
|
|
2535
2535
|
"model-value": e.url,
|
|
2536
2536
|
type: "url",
|
|
2537
|
-
placeholder:
|
|
2538
|
-
"onUpdate:modelValue": (t) =>
|
|
2537
|
+
placeholder: x(i).social.urlPlaceholder,
|
|
2538
|
+
"onUpdate:modelValue": (t) => l(e.id, "url", t)
|
|
2539
2539
|
}, null, 8, [
|
|
2540
2540
|
"model-value",
|
|
2541
2541
|
"placeholder",
|
|
2542
2542
|
"onUpdate:modelValue"
|
|
2543
2543
|
])]))), 128)), y("button", {
|
|
2544
|
-
class:
|
|
2545
|
-
onClick:
|
|
2546
|
-
}, [f(
|
|
2544
|
+
class: v(x(tt)),
|
|
2545
|
+
onClick: c
|
|
2546
|
+
}, [f(x(H), {
|
|
2547
2547
|
size: 14,
|
|
2548
2548
|
"stroke-width": 2
|
|
2549
|
-
}), g(" " +
|
|
2550
|
-
y("div", sa, [y("label", { class:
|
|
2551
|
-
class:
|
|
2549
|
+
}), g(" " + s(x(i).social.addIcon), 1)], 2)])]),
|
|
2550
|
+
y("div", sa, [y("label", { class: v(x(U)) }, s(x(i).social.style), 3), y("select", {
|
|
2551
|
+
class: v(x(K)),
|
|
2552
2552
|
value: e.block.iconStyle,
|
|
2553
|
-
onChange:
|
|
2553
|
+
onChange: n[0] ||= (e) => a("iconStyle", e.target.value)
|
|
2554
2554
|
}, [
|
|
2555
|
-
y("option", la,
|
|
2556
|
-
y("option", ua,
|
|
2557
|
-
y("option", da,
|
|
2558
|
-
y("option", fa,
|
|
2559
|
-
y("option", pa,
|
|
2560
|
-
y("option", ma,
|
|
2555
|
+
y("option", la, s(x(i).social.styleSolid), 1),
|
|
2556
|
+
y("option", ua, s(x(i).social.styleOutlined), 1),
|
|
2557
|
+
y("option", da, s(x(i).social.styleRounded), 1),
|
|
2558
|
+
y("option", fa, s(x(i).social.styleSquare), 1),
|
|
2559
|
+
y("option", pa, s(x(i).social.styleCircle), 1),
|
|
2560
|
+
y("option", ma, s(x(i).social.stylePlain), 1)
|
|
2561
2561
|
], 42, ca)]),
|
|
2562
|
-
y("div", ha, [y("label", { class:
|
|
2562
|
+
y("div", ha, [y("label", { class: v(x(U)) }, s(x(i).social.color), 3), y("select", {
|
|
2563
2563
|
"data-testid": "social-tone-select",
|
|
2564
|
-
class:
|
|
2564
|
+
class: v(x(K)),
|
|
2565
2565
|
value: e.block.iconTone ?? "brand",
|
|
2566
|
-
onChange:
|
|
2566
|
+
onChange: n[1] ||= (e) => a("iconTone", e.target.value)
|
|
2567
2567
|
}, [
|
|
2568
|
-
y("option", _a,
|
|
2569
|
-
y("option", va,
|
|
2570
|
-
y("option", ya,
|
|
2568
|
+
y("option", _a, s(x(i).social.colorBrand), 1),
|
|
2569
|
+
y("option", va, s(x(i).social.colorDark), 1),
|
|
2570
|
+
y("option", ya, s(x(i).social.colorLight), 1)
|
|
2571
2571
|
], 42, ga)]),
|
|
2572
|
-
y("div", ba, [y("label", { class:
|
|
2572
|
+
y("div", ba, [y("label", { class: v(x(U)) }, s(x(i).social.size), 3), f(Y, {
|
|
2573
2573
|
options: [
|
|
2574
2574
|
{
|
|
2575
2575
|
value: "small",
|
|
2576
|
-
label:
|
|
2576
|
+
label: x(i).social.sizeSmall
|
|
2577
2577
|
},
|
|
2578
2578
|
{
|
|
2579
2579
|
value: "medium",
|
|
2580
|
-
label:
|
|
2580
|
+
label: x(i).social.sizeMedium
|
|
2581
2581
|
},
|
|
2582
2582
|
{
|
|
2583
2583
|
value: "large",
|
|
2584
|
-
label:
|
|
2584
|
+
label: x(i).social.sizeLarge
|
|
2585
2585
|
}
|
|
2586
2586
|
],
|
|
2587
2587
|
"model-value": e.block.iconSize,
|
|
2588
|
-
"onUpdate:modelValue":
|
|
2588
|
+
"onUpdate:modelValue": n[2] ||= (e) => a("iconSize", e)
|
|
2589
2589
|
}, null, 8, ["options", "model-value"])]),
|
|
2590
|
-
y("div", xa, [y("label", { class:
|
|
2590
|
+
y("div", xa, [y("label", { class: v(x(U)) }, s(x(i).social.spacing), 3), y("div", Sa, [y("input", {
|
|
2591
2591
|
type: "number",
|
|
2592
|
-
class:
|
|
2592
|
+
class: v(x(G)),
|
|
2593
2593
|
value: e.block.spacing,
|
|
2594
2594
|
min: "0",
|
|
2595
2595
|
max: "50",
|
|
2596
|
-
onInput:
|
|
2597
|
-
}, null, 42, Ca), y("span", { class:
|
|
2598
|
-
y("div", wa, [y("label", { class:
|
|
2596
|
+
onInput: n[3] ||= (e) => a("spacing", Number(e.target.value))
|
|
2597
|
+
}, null, 42, Ca), y("span", { class: v(x(W)) }, "px", 2)])]),
|
|
2598
|
+
y("div", wa, [y("label", { class: v(x(U)) }, s(x(i).social.align), 3), f(Y, {
|
|
2599
2599
|
options: [
|
|
2600
2600
|
{
|
|
2601
2601
|
value: "left",
|
|
2602
|
-
label:
|
|
2603
|
-
icon:
|
|
2602
|
+
label: x(i).title.alignLeft,
|
|
2603
|
+
icon: x(Ye)
|
|
2604
2604
|
},
|
|
2605
2605
|
{
|
|
2606
2606
|
value: "center",
|
|
2607
|
-
label:
|
|
2608
|
-
icon:
|
|
2607
|
+
label: x(i).title.alignCenter,
|
|
2608
|
+
icon: x(Je)
|
|
2609
2609
|
},
|
|
2610
2610
|
{
|
|
2611
2611
|
value: "right",
|
|
2612
|
-
label:
|
|
2613
|
-
icon:
|
|
2612
|
+
label: x(i).title.alignRight,
|
|
2613
|
+
icon: x(qe)
|
|
2614
2614
|
}
|
|
2615
2615
|
],
|
|
2616
2616
|
"model-value": e.block.align,
|
|
2617
|
-
"onUpdate:modelValue":
|
|
2617
|
+
"onUpdate:modelValue": n[4] ||= (e) => a("align", e)
|
|
2618
2618
|
}, null, 8, ["options", "model-value"])])
|
|
2619
2619
|
], 64));
|
|
2620
2620
|
}
|
|
@@ -2622,25 +2622,25 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2622
2622
|
__name: "SpacerToolbar",
|
|
2623
2623
|
props: { block: {} },
|
|
2624
2624
|
emits: ["update"],
|
|
2625
|
-
setup(e, { emit:
|
|
2626
|
-
let
|
|
2627
|
-
return (
|
|
2628
|
-
y("label", { class:
|
|
2625
|
+
setup(e, { emit: t }) {
|
|
2626
|
+
let n = t, { t: r } = B();
|
|
2627
|
+
return (t, i) => (_(), h("div", Ea, [
|
|
2628
|
+
y("label", { class: v(x(U)) }, s(x(r).spacer.height), 3),
|
|
2629
2629
|
y("div", Da, [y("input", {
|
|
2630
2630
|
type: "number",
|
|
2631
|
-
class:
|
|
2631
|
+
class: v(x(G)),
|
|
2632
2632
|
value: e.block.height,
|
|
2633
2633
|
min: "10",
|
|
2634
2634
|
max: "100",
|
|
2635
|
-
onInput:
|
|
2636
|
-
}, null, 42, Oa), y("span", { class:
|
|
2635
|
+
onInput: i[0] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
2636
|
+
}, null, 42, Oa), y("span", { class: v(x(W)) }, "px", 2)]),
|
|
2637
2637
|
y("input", {
|
|
2638
2638
|
type: "range",
|
|
2639
2639
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
2640
2640
|
value: e.block.height,
|
|
2641
2641
|
min: "10",
|
|
2642
2642
|
max: "100",
|
|
2643
|
-
onInput:
|
|
2643
|
+
onInput: i[1] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
2644
2644
|
}, null, 40, ka)
|
|
2645
2645
|
]));
|
|
2646
2646
|
}
|
|
@@ -2654,73 +2654,73 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2654
2654
|
fontFamilies: {}
|
|
2655
2655
|
},
|
|
2656
2656
|
emits: ["update"],
|
|
2657
|
-
setup(e, { emit:
|
|
2658
|
-
let
|
|
2659
|
-
function
|
|
2660
|
-
|
|
2657
|
+
setup(e, { emit: t }) {
|
|
2658
|
+
let n = e, r = t, { t: i } = B(), a = p(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
|
|
2659
|
+
function c(e, t) {
|
|
2660
|
+
r("update", { [e]: t });
|
|
2661
2661
|
}
|
|
2662
|
-
function
|
|
2663
|
-
let e =
|
|
2662
|
+
function l() {
|
|
2663
|
+
let e = n.block.rows.length > 0 ? n.block.rows[0].cells.length : 3, t = {
|
|
2664
2664
|
id: M(),
|
|
2665
2665
|
cells: Array.from({ length: e }, () => ({
|
|
2666
2666
|
id: M(),
|
|
2667
2667
|
content: ""
|
|
2668
2668
|
}))
|
|
2669
2669
|
};
|
|
2670
|
-
|
|
2670
|
+
r("update", { rows: [...n.block.rows, t] });
|
|
2671
2671
|
}
|
|
2672
|
-
function
|
|
2673
|
-
|
|
2672
|
+
function u(e) {
|
|
2673
|
+
r("update", { rows: n.block.rows.filter((t) => t.id !== e) });
|
|
2674
2674
|
}
|
|
2675
|
-
function
|
|
2676
|
-
let e =
|
|
2675
|
+
function d() {
|
|
2676
|
+
let e = n.block.rows.map((e) => ({
|
|
2677
2677
|
...e,
|
|
2678
2678
|
cells: [...e.cells, {
|
|
2679
2679
|
id: M(),
|
|
2680
2680
|
content: ""
|
|
2681
2681
|
}]
|
|
2682
2682
|
}));
|
|
2683
|
-
|
|
2683
|
+
r("update", { rows: e });
|
|
2684
2684
|
}
|
|
2685
|
-
function
|
|
2686
|
-
let t =
|
|
2685
|
+
function g(e) {
|
|
2686
|
+
let t = n.block.rows.map((t) => ({
|
|
2687
2687
|
...t,
|
|
2688
2688
|
cells: t.cells.filter((t, n) => n !== e)
|
|
2689
2689
|
}));
|
|
2690
|
-
|
|
2690
|
+
r("update", { rows: t });
|
|
2691
2691
|
}
|
|
2692
|
-
return (
|
|
2693
|
-
y("div", ja, [y("label", { class:
|
|
2692
|
+
return (t, n) => (_(), h(b, null, [
|
|
2693
|
+
y("div", ja, [y("label", { class: v(x(U)) }, s(x(i).table.dimensions), 3), y("div", Ma, [y("div", Na, [y("span", Pa, s(x(i).table.rows), 1), y("div", Fa, [
|
|
2694
2694
|
y("button", {
|
|
2695
2695
|
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",
|
|
2696
2696
|
disabled: e.block.rows.length <= 1,
|
|
2697
|
-
onClick:
|
|
2698
|
-
}, [f(
|
|
2697
|
+
onClick: n[0] ||= (t) => u(e.block.rows[e.block.rows.length - 1].id)
|
|
2698
|
+
}, [f(x(Re), {
|
|
2699
2699
|
size: 12,
|
|
2700
2700
|
"stroke-width": 2
|
|
2701
2701
|
})], 8, Ia),
|
|
2702
|
-
y("span", La,
|
|
2702
|
+
y("span", La, s(e.block.rows.length), 1),
|
|
2703
2703
|
y("button", {
|
|
2704
2704
|
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)]",
|
|
2705
|
-
onClick:
|
|
2706
|
-
}, [f(
|
|
2705
|
+
onClick: l
|
|
2706
|
+
}, [f(x(H), {
|
|
2707
2707
|
size: 12,
|
|
2708
2708
|
"stroke-width": 2
|
|
2709
2709
|
})])
|
|
2710
|
-
])]), y("div", Ra, [y("span", za,
|
|
2710
|
+
])]), y("div", Ra, [y("span", za, s(x(i).table.columns), 1), y("div", Ba, [
|
|
2711
2711
|
y("button", {
|
|
2712
2712
|
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",
|
|
2713
|
-
disabled:
|
|
2714
|
-
onClick:
|
|
2715
|
-
}, [f(
|
|
2713
|
+
disabled: a.value <= 1,
|
|
2714
|
+
onClick: n[1] ||= (e) => g(a.value - 1)
|
|
2715
|
+
}, [f(x(Re), {
|
|
2716
2716
|
size: 12,
|
|
2717
2717
|
"stroke-width": 2
|
|
2718
2718
|
})], 8, Va),
|
|
2719
|
-
y("span", Ha, a
|
|
2719
|
+
y("span", Ha, s(a.value), 1),
|
|
2720
2720
|
y("button", {
|
|
2721
2721
|
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)]",
|
|
2722
|
-
onClick:
|
|
2723
|
-
}, [f(
|
|
2722
|
+
onClick: d
|
|
2723
|
+
}, [f(x(H), {
|
|
2724
2724
|
size: 12,
|
|
2725
2725
|
"stroke-width": 2
|
|
2726
2726
|
})])
|
|
@@ -2728,79 +2728,79 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2728
2728
|
y("div", Ua, [f(q, {
|
|
2729
2729
|
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
2730
2730
|
"model-value": e.block.hasHeaderRow,
|
|
2731
|
-
label:
|
|
2732
|
-
"onUpdate:modelValue":
|
|
2731
|
+
label: x(i).table.hasHeaderRow,
|
|
2732
|
+
"onUpdate:modelValue": n[2] ||= (e) => c("hasHeaderRow", e)
|
|
2733
2733
|
}, null, 8, ["model-value", "label"])]),
|
|
2734
|
-
e.block.hasHeaderRow ? (_(), h("div", Wa, [y("label", { class:
|
|
2734
|
+
e.block.hasHeaderRow ? (_(), h("div", Wa, [y("label", { class: v(x(U)) }, s(x(i).table.headerBackgroundColor), 3), f(V, {
|
|
2735
2735
|
"model-value": e.block.headerBackgroundColor ?? "",
|
|
2736
|
-
"seed-color":
|
|
2737
|
-
placeholder:
|
|
2738
|
-
"onUpdate:modelValue":
|
|
2736
|
+
"seed-color": x(nt),
|
|
2737
|
+
placeholder: x(i).table.noHeaderBg,
|
|
2738
|
+
"onUpdate:modelValue": n[3] ||= (e) => c("headerBackgroundColor", e || null)
|
|
2739
2739
|
}, null, 8, [
|
|
2740
2740
|
"model-value",
|
|
2741
2741
|
"seed-color",
|
|
2742
2742
|
"placeholder"
|
|
2743
2743
|
])])) : m("", !0),
|
|
2744
|
-
y("div", Ga, [y("label", { class:
|
|
2744
|
+
y("div", Ga, [y("label", { class: v(x(U)) }, s(x(i).table.borderColor), 3), f(V, {
|
|
2745
2745
|
"model-value": e.block.borderColor,
|
|
2746
|
-
"onUpdate:modelValue":
|
|
2746
|
+
"onUpdate:modelValue": n[4] ||= (e) => c("borderColor", e)
|
|
2747
2747
|
}, null, 8, ["model-value"])]),
|
|
2748
|
-
y("div", Ka, [y("label", { class:
|
|
2748
|
+
y("div", Ka, [y("label", { class: v(x(U)) }, s(x(i).table.borderWidth), 3), y("div", qa, [y("input", {
|
|
2749
2749
|
type: "number",
|
|
2750
|
-
class:
|
|
2750
|
+
class: v(x(G)),
|
|
2751
2751
|
value: e.block.borderWidth,
|
|
2752
2752
|
min: "0",
|
|
2753
2753
|
max: "10",
|
|
2754
|
-
onInput:
|
|
2755
|
-
}, null, 42, Ja), y("span", { class:
|
|
2756
|
-
y("div", Ya, [y("label", { class:
|
|
2754
|
+
onInput: n[5] ||= (e) => c("borderWidth", Number(e.target.value))
|
|
2755
|
+
}, null, 42, Ja), y("span", { class: v(x(W)) }, "px", 2)])]),
|
|
2756
|
+
y("div", Ya, [y("label", { class: v(x(U)) }, s(x(i).table.cellPadding), 3), y("div", Xa, [y("input", {
|
|
2757
2757
|
type: "number",
|
|
2758
|
-
class:
|
|
2758
|
+
class: v(x(G)),
|
|
2759
2759
|
value: e.block.cellPadding,
|
|
2760
2760
|
min: "0",
|
|
2761
2761
|
max: "30",
|
|
2762
|
-
onInput:
|
|
2763
|
-
}, null, 42, Za), y("span", { class:
|
|
2764
|
-
y("div", Qa, [y("label", { class:
|
|
2765
|
-
class:
|
|
2766
|
-
value:
|
|
2767
|
-
onChange:
|
|
2768
|
-
}, [y("option", eo,
|
|
2762
|
+
onInput: n[6] ||= (e) => c("cellPadding", Number(e.target.value))
|
|
2763
|
+
}, null, 42, Za), y("span", { class: v(x(W)) }, "px", 2)])]),
|
|
2764
|
+
y("div", Qa, [y("label", { class: v(x(U)) }, s(x(i).table.fontFamily), 3), y("select", {
|
|
2765
|
+
class: v(x(K)),
|
|
2766
|
+
value: x(ot)(e.block.fontFamily),
|
|
2767
|
+
onChange: n[7] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
2768
|
+
}, [y("option", eo, s(x(i).title.inheritFont), 1), (_(!0), h(b, null, o(e.fontFamilies, (e) => (_(), h("option", {
|
|
2769
2769
|
key: e.value,
|
|
2770
2770
|
value: e.value
|
|
2771
|
-
},
|
|
2772
|
-
y("div", no, [y("label", { class:
|
|
2771
|
+
}, s(e.label), 9, to))), 128))], 42, $a)]),
|
|
2772
|
+
y("div", no, [y("label", { class: v(x(U)) }, s(x(i).table.fontSize), 3), y("div", ro, [y("input", {
|
|
2773
2773
|
type: "number",
|
|
2774
|
-
class:
|
|
2774
|
+
class: v(x(G)),
|
|
2775
2775
|
value: e.block.fontSize,
|
|
2776
2776
|
min: "10",
|
|
2777
2777
|
max: "32",
|
|
2778
|
-
onInput:
|
|
2779
|
-
}, null, 42, io), y("span", { class:
|
|
2780
|
-
y("div", ao, [y("label", { class:
|
|
2778
|
+
onInput: n[8] ||= (e) => c("fontSize", Number(e.target.value))
|
|
2779
|
+
}, null, 42, io), y("span", { class: v(x(W)) }, "px", 2)])]),
|
|
2780
|
+
y("div", ao, [y("label", { class: v(x(U)) }, s(x(i).table.color), 3), f(V, {
|
|
2781
2781
|
"model-value": e.block.color ?? "",
|
|
2782
|
-
"onUpdate:modelValue":
|
|
2782
|
+
"onUpdate:modelValue": n[9] ||= (e) => c("color", e || void 0)
|
|
2783
2783
|
}, null, 8, ["model-value"])]),
|
|
2784
|
-
y("div", oo, [y("label", { class:
|
|
2784
|
+
y("div", oo, [y("label", { class: v(x(U)) }, s(x(i).table.textAlign), 3), f(Y, {
|
|
2785
2785
|
options: [
|
|
2786
2786
|
{
|
|
2787
2787
|
value: "left",
|
|
2788
|
-
label:
|
|
2789
|
-
icon:
|
|
2788
|
+
label: x(i).title.alignLeft,
|
|
2789
|
+
icon: x(Ye)
|
|
2790
2790
|
},
|
|
2791
2791
|
{
|
|
2792
2792
|
value: "center",
|
|
2793
|
-
label:
|
|
2794
|
-
icon:
|
|
2793
|
+
label: x(i).title.alignCenter,
|
|
2794
|
+
icon: x(Je)
|
|
2795
2795
|
},
|
|
2796
2796
|
{
|
|
2797
2797
|
value: "right",
|
|
2798
|
-
label:
|
|
2799
|
-
icon:
|
|
2798
|
+
label: x(i).title.alignRight,
|
|
2799
|
+
icon: x(qe)
|
|
2800
2800
|
}
|
|
2801
2801
|
],
|
|
2802
2802
|
"model-value": e.block.textAlign,
|
|
2803
|
-
"onUpdate:modelValue":
|
|
2803
|
+
"onUpdate:modelValue": n[10] ||= (e) => c("textAlign", e)
|
|
2804
2804
|
}, null, 8, ["options", "model-value"])])
|
|
2805
2805
|
], 64));
|
|
2806
2806
|
}
|
|
@@ -2811,54 +2811,54 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2811
2811
|
fontFamilies: {}
|
|
2812
2812
|
},
|
|
2813
2813
|
emits: ["update"],
|
|
2814
|
-
setup(e, { emit:
|
|
2815
|
-
let
|
|
2816
|
-
function
|
|
2817
|
-
|
|
2814
|
+
setup(e, { emit: t }) {
|
|
2815
|
+
let n = t, { t: r } = B();
|
|
2816
|
+
function i(e, t) {
|
|
2817
|
+
n("update", { [e]: t });
|
|
2818
2818
|
}
|
|
2819
|
-
return (
|
|
2820
|
-
y("div", co, [y("label", { class:
|
|
2821
|
-
class:
|
|
2819
|
+
return (t, n) => (_(), h(b, null, [
|
|
2820
|
+
y("div", co, [y("label", { class: v(x(U)) }, s(x(r).title.level), 3), y("select", {
|
|
2821
|
+
class: v(x(K)),
|
|
2822
2822
|
value: e.block.level,
|
|
2823
|
-
onChange:
|
|
2823
|
+
onChange: n[0] ||= (e) => i("level", Number(e.target.value))
|
|
2824
2824
|
}, [
|
|
2825
|
-
y("option", uo,
|
|
2826
|
-
y("option", fo,
|
|
2827
|
-
y("option", po,
|
|
2828
|
-
y("option", mo,
|
|
2825
|
+
y("option", uo, s(x(r).title.heading1), 1),
|
|
2826
|
+
y("option", fo, s(x(r).title.heading2), 1),
|
|
2827
|
+
y("option", po, s(x(r).title.heading3), 1),
|
|
2828
|
+
y("option", mo, s(x(r).title.heading4), 1)
|
|
2829
2829
|
], 42, lo)]),
|
|
2830
|
-
y("div", ho, [y("label", { class:
|
|
2831
|
-
class:
|
|
2832
|
-
value:
|
|
2833
|
-
onChange:
|
|
2834
|
-
}, [y("option", _o,
|
|
2830
|
+
y("div", ho, [y("label", { class: v(x(U)) }, s(x(r).title.fontFamily), 3), y("select", {
|
|
2831
|
+
class: v(x(K)),
|
|
2832
|
+
value: x(ot)(e.block.fontFamily),
|
|
2833
|
+
onChange: n[1] ||= (e) => i("fontFamily", e.target.value || void 0)
|
|
2834
|
+
}, [y("option", _o, s(x(r).title.inheritFont), 1), (_(!0), h(b, null, o(e.fontFamilies, (e) => (_(), h("option", {
|
|
2835
2835
|
key: e.value,
|
|
2836
2836
|
value: e.value
|
|
2837
|
-
},
|
|
2838
|
-
y("div", yo, [y("label", { class:
|
|
2837
|
+
}, s(e.label), 9, vo))), 128))], 42, go)]),
|
|
2838
|
+
y("div", yo, [y("label", { class: v(x(U)) }, s(x(r).title.color), 3), f(V, {
|
|
2839
2839
|
"model-value": e.block.color ?? "",
|
|
2840
|
-
"onUpdate:modelValue":
|
|
2840
|
+
"onUpdate:modelValue": n[2] ||= (e) => i("color", e || void 0)
|
|
2841
2841
|
}, null, 8, ["model-value"])]),
|
|
2842
|
-
y("div", bo, [y("label", { class:
|
|
2842
|
+
y("div", bo, [y("label", { class: v(x(U)) }, s(x(r).title.align), 3), f(Y, {
|
|
2843
2843
|
options: [
|
|
2844
2844
|
{
|
|
2845
2845
|
value: "left",
|
|
2846
|
-
label:
|
|
2847
|
-
icon:
|
|
2846
|
+
label: x(r).title.alignLeft,
|
|
2847
|
+
icon: x(Ye)
|
|
2848
2848
|
},
|
|
2849
2849
|
{
|
|
2850
2850
|
value: "center",
|
|
2851
|
-
label:
|
|
2852
|
-
icon:
|
|
2851
|
+
label: x(r).title.alignCenter,
|
|
2852
|
+
icon: x(Je)
|
|
2853
2853
|
},
|
|
2854
2854
|
{
|
|
2855
2855
|
value: "right",
|
|
2856
|
-
label:
|
|
2857
|
-
icon:
|
|
2856
|
+
label: x(r).title.alignRight,
|
|
2857
|
+
icon: x(qe)
|
|
2858
2858
|
}
|
|
2859
2859
|
],
|
|
2860
2860
|
"model-value": e.block.textAlign,
|
|
2861
|
-
"onUpdate:modelValue":
|
|
2861
|
+
"onUpdate:modelValue": n[3] ||= (e) => i("textAlign", e)
|
|
2862
2862
|
}, null, 8, ["options", "model-value"])])
|
|
2863
2863
|
], 64));
|
|
2864
2864
|
}
|
|
@@ -2880,23 +2880,23 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2880
2880
|
props: { block: {} },
|
|
2881
2881
|
emits: ["update"],
|
|
2882
2882
|
setup(e, { emit: r }) {
|
|
2883
|
-
let i = e,
|
|
2883
|
+
let i = e, a = r, { t: o } = B(), c = n(we, null), l = n(Te, te.liquid), u = z(), d = [
|
|
2884
2884
|
300,
|
|
2885
2885
|
400,
|
|
2886
2886
|
500
|
|
2887
|
-
], C = p(() => !!
|
|
2887
|
+
], C = p(() => !!c), w = p(() => A(i.block.url, l)), T = p(() => {
|
|
2888
2888
|
let e = i.block.width;
|
|
2889
|
-
return e === "full" ? "full" :
|
|
2890
|
-
}), E = p(() => typeof i.block.height == "number" ? "custom" : "auto"), D =
|
|
2889
|
+
return e === "full" ? "full" : d.includes(e) ? String(e) : "custom";
|
|
2890
|
+
}), E = p(() => typeof i.block.height == "number" ? "custom" : "auto"), D = t(!1), { start: O } = xe(() => {
|
|
2891
2891
|
D.value = !1;
|
|
2892
2892
|
}, 1e3, { immediate: !1 });
|
|
2893
2893
|
function k(e, t) {
|
|
2894
|
-
|
|
2894
|
+
a("update", { [e]: t });
|
|
2895
2895
|
}
|
|
2896
2896
|
function j(e) {
|
|
2897
2897
|
if (e === "custom") {
|
|
2898
2898
|
let e = i.block.width;
|
|
2899
|
-
(typeof e != "number" ||
|
|
2899
|
+
(typeof e != "number" || d.includes(e)) && k("width", Ho);
|
|
2900
2900
|
} else k("width", e === "full" ? "full" : Number(e));
|
|
2901
2901
|
}
|
|
2902
2902
|
function M(e) {
|
|
@@ -2911,42 +2911,42 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2911
2911
|
!Number.isFinite(t) || t <= 0 || k("height", t);
|
|
2912
2912
|
}
|
|
2913
2913
|
async function F() {
|
|
2914
|
-
let e = await
|
|
2915
|
-
|
|
2914
|
+
let e = await c?.({ accept: ["images"] });
|
|
2915
|
+
u.alive && e && (k("thumbnailUrl", e.url), D.value = !0, O());
|
|
2916
2916
|
}
|
|
2917
|
-
return (
|
|
2917
|
+
return (t, n) => (_(), h(b, null, [
|
|
2918
2918
|
y("div", So, [
|
|
2919
|
-
y("label", { class:
|
|
2919
|
+
y("label", { class: v(x(U)) }, s(x(o).video.videoUrl), 3),
|
|
2920
2920
|
f(J, {
|
|
2921
2921
|
"model-value": e.block.url,
|
|
2922
2922
|
type: "url",
|
|
2923
|
-
placeholder:
|
|
2924
|
-
"onUpdate:modelValue":
|
|
2923
|
+
placeholder: x(o).video.videoUrlPlaceholder,
|
|
2924
|
+
"onUpdate:modelValue": n[0] ||= (e) => k("url", e)
|
|
2925
2925
|
}, null, 8, ["model-value", "placeholder"]),
|
|
2926
2926
|
e.block.url ? (_(), S(q, {
|
|
2927
2927
|
key: 0,
|
|
2928
2928
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2929
2929
|
"model-value": e.block.openInNewTab ?? !1,
|
|
2930
|
-
label:
|
|
2931
|
-
"onUpdate:modelValue":
|
|
2930
|
+
label: x(o).video.openInNewTab,
|
|
2931
|
+
"onUpdate:modelValue": n[1] ||= (e) => k("openInNewTab", e)
|
|
2932
2932
|
}, null, 8, ["model-value", "label"])) : m("", !0)
|
|
2933
2933
|
]),
|
|
2934
|
-
w.value ? (_(), h("div", Co, [y("label", { class:
|
|
2934
|
+
w.value ? (_(), h("div", Co, [y("label", { class: v(x(U)) }, [g(s(x(o).video.placeholderUrl) + " ", 1), y("span", wo, s(x(o).video.optional), 1)], 2), y("input", {
|
|
2935
2935
|
type: "url",
|
|
2936
|
-
class:
|
|
2936
|
+
class: v(x(K)),
|
|
2937
2937
|
value: e.block.placeholderUrl || "",
|
|
2938
|
-
placeholder:
|
|
2939
|
-
title:
|
|
2940
|
-
onInput:
|
|
2938
|
+
placeholder: x(o).video.placeholderUrlPlaceholder,
|
|
2939
|
+
title: x(o).video.placeholderUrlTooltip,
|
|
2940
|
+
onInput: n[2] ||= (e) => k("placeholderUrl", e.target.value)
|
|
2941
2941
|
}, null, 42, To)])) : m("", !0),
|
|
2942
2942
|
y("div", Eo, [
|
|
2943
|
-
y("label", { class:
|
|
2943
|
+
y("label", { class: v(x(U)) }, [g(s(x(o).video.customThumbnail) + " ", 1), y("span", Do, s(x(o).video.optional), 1)], 2),
|
|
2944
2944
|
f(J, {
|
|
2945
2945
|
"model-value": e.block.thumbnailUrl,
|
|
2946
2946
|
type: "url",
|
|
2947
|
-
placeholder:
|
|
2947
|
+
placeholder: x(o).video.thumbnailPlaceholder,
|
|
2948
2948
|
pulse: D.value,
|
|
2949
|
-
"onUpdate:modelValue":
|
|
2949
|
+
"onUpdate:modelValue": n[3] ||= (e) => k("thumbnailUrl", e)
|
|
2950
2950
|
}, null, 8, [
|
|
2951
2951
|
"model-value",
|
|
2952
2952
|
"placeholder",
|
|
@@ -2961,74 +2961,74 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2961
2961
|
"background-color": "var(--tpl-bg)"
|
|
2962
2962
|
},
|
|
2963
2963
|
onClick: F
|
|
2964
|
-
}, [f(
|
|
2964
|
+
}, [f(x(Ve), {
|
|
2965
2965
|
size: 14,
|
|
2966
2966
|
"stroke-width": 1.5
|
|
2967
|
-
}), g(" " +
|
|
2967
|
+
}), g(" " + s(x(o).image.browseMedia), 1)])) : m("", !0)
|
|
2968
2968
|
]),
|
|
2969
|
-
y("div", Oo, [y("label", { class:
|
|
2969
|
+
y("div", Oo, [y("label", { class: v(x(U)) }, s(x(o).video.altText), 3), f(J, {
|
|
2970
2970
|
"model-value": e.block.alt,
|
|
2971
2971
|
type: "text",
|
|
2972
|
-
placeholder:
|
|
2973
|
-
"onUpdate:modelValue":
|
|
2972
|
+
placeholder: x(o).video.altTextPlaceholder,
|
|
2973
|
+
"onUpdate:modelValue": n[4] ||= (e) => k("alt", e)
|
|
2974
2974
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
2975
2975
|
y("div", ko, [
|
|
2976
|
-
y("label", { class:
|
|
2976
|
+
y("label", { class: v(x(U)) }, s(x(o).video.width), 3),
|
|
2977
2977
|
y("select", {
|
|
2978
|
-
class:
|
|
2978
|
+
class: v(x(K)),
|
|
2979
2979
|
"data-testid": "video-width-mode",
|
|
2980
2980
|
value: T.value,
|
|
2981
|
-
onChange:
|
|
2981
|
+
onChange: n[5] ||= (e) => j(e.target.value)
|
|
2982
2982
|
}, [
|
|
2983
|
-
y("option", jo,
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
y("option", Mo,
|
|
2983
|
+
y("option", jo, s(x(o).video.fullWidth), 1),
|
|
2984
|
+
n[10] ||= y("option", { value: "300" }, "300px", -1),
|
|
2985
|
+
n[11] ||= y("option", { value: "400" }, "400px", -1),
|
|
2986
|
+
n[12] ||= y("option", { value: "500" }, "500px", -1),
|
|
2987
|
+
y("option", Mo, s(x(o).video.widthCustom), 1)
|
|
2988
2988
|
], 42, Ao),
|
|
2989
2989
|
T.value === "custom" ? (_(), h("div", No, [y("input", {
|
|
2990
2990
|
type: "number",
|
|
2991
2991
|
"data-testid": "video-width-input",
|
|
2992
|
-
class:
|
|
2992
|
+
class: v(x(G)),
|
|
2993
2993
|
value: e.block.width,
|
|
2994
2994
|
min: "20",
|
|
2995
|
-
onInput:
|
|
2996
|
-
}, null, 42, Po), y("span", { class:
|
|
2995
|
+
onInput: n[6] ||= (e) => M(e.target.value)
|
|
2996
|
+
}, null, 42, Po), y("span", { class: v(x(W)) }, "px", 2)])) : m("", !0)
|
|
2997
2997
|
]),
|
|
2998
2998
|
y("div", Fo, [
|
|
2999
|
-
y("label", { class:
|
|
2999
|
+
y("label", { class: v(x(U)) }, s(x(o).video.height), 3),
|
|
3000
3000
|
y("select", {
|
|
3001
|
-
class:
|
|
3001
|
+
class: v(x(K)),
|
|
3002
3002
|
"data-testid": "video-height-mode",
|
|
3003
3003
|
value: E.value,
|
|
3004
|
-
onChange:
|
|
3005
|
-
}, [y("option", Lo,
|
|
3004
|
+
onChange: n[7] ||= (e) => N(e.target.value)
|
|
3005
|
+
}, [y("option", Lo, s(x(o).video.heightAuto), 1), y("option", Ro, s(x(o).video.heightCustom), 1)], 42, Io),
|
|
3006
3006
|
E.value === "custom" ? (_(), h("div", zo, [y("input", {
|
|
3007
3007
|
type: "number",
|
|
3008
3008
|
"data-testid": "video-height-input",
|
|
3009
|
-
class:
|
|
3009
|
+
class: v(x(G)),
|
|
3010
3010
|
value: e.block.height,
|
|
3011
3011
|
min: "20",
|
|
3012
|
-
onInput:
|
|
3013
|
-
}, null, 42, Bo), y("span", { class:
|
|
3012
|
+
onInput: n[8] ||= (e) => P(e.target.value)
|
|
3013
|
+
}, null, 42, Bo), y("span", { class: v(x(W)) }, "px", 2)])) : m("", !0)
|
|
3014
3014
|
]),
|
|
3015
|
-
y("div", Vo, [y("label", { class:
|
|
3015
|
+
y("div", Vo, [y("label", { class: v(x(U)) }, s(x(o).title.align), 3), f(Y, {
|
|
3016
3016
|
options: [
|
|
3017
3017
|
{
|
|
3018
3018
|
value: "left",
|
|
3019
|
-
label:
|
|
3019
|
+
label: x(o).title.alignLeft
|
|
3020
3020
|
},
|
|
3021
3021
|
{
|
|
3022
3022
|
value: "center",
|
|
3023
|
-
label:
|
|
3023
|
+
label: x(o).title.alignCenter
|
|
3024
3024
|
},
|
|
3025
3025
|
{
|
|
3026
3026
|
value: "right",
|
|
3027
|
-
label:
|
|
3027
|
+
label: x(o).title.alignRight
|
|
3028
3028
|
}
|
|
3029
3029
|
],
|
|
3030
3030
|
"model-value": e.block.align,
|
|
3031
|
-
"onUpdate:modelValue":
|
|
3031
|
+
"onUpdate:modelValue": n[9] ||= (e) => k("align", e)
|
|
3032
3032
|
}, null, 8, ["options", "model-value"])])
|
|
3033
3033
|
], 64));
|
|
3034
3034
|
}
|
|
@@ -3041,43 +3041,43 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3041
3041
|
"duplicate"
|
|
3042
3042
|
],
|
|
3043
3043
|
setup(e, { emit: t }) {
|
|
3044
|
-
let r = C(() => import("./CountdownToolbar-
|
|
3045
|
-
if (g.value) return u.find((e) => e.type ===
|
|
3046
|
-
}),
|
|
3044
|
+
let r = C(() => import("./CountdownToolbar-BqoYzf_6.js")), a = e, o = t, { t: c } = B(), l = Se(Me, "Toolbar"), u = n(je, []), d = p(() => a.block.type), g = p(() => N(a.block)), v = p(() => {
|
|
3045
|
+
if (g.value) return u.find((e) => e.type === a.block.customType);
|
|
3046
|
+
}), b = p(() => g.value ? v.value?.name ?? a.block.customType : se(d.value, c)), w = p(() => at(l.fonts.value, "fontFamily" in a.block ? a.block.fontFamily : void 0));
|
|
3047
3047
|
function T(e) {
|
|
3048
|
-
|
|
3048
|
+
o("update", e);
|
|
3049
3049
|
}
|
|
3050
3050
|
return (t, n) => (_(), h("aside", {
|
|
3051
3051
|
"data-testid": "block-toolbar",
|
|
3052
|
-
"aria-label":
|
|
3052
|
+
"aria-label": x(c).landmarks.blockToolbar,
|
|
3053
3053
|
class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
|
|
3054
|
-
}, [y("div", Ko, [y("div", qo, [
|
|
3054
|
+
}, [y("div", Ko, [y("div", qo, [x(ze)[d.value] ? (_(), S(i(x(ze)[d.value]), {
|
|
3055
3055
|
key: 0,
|
|
3056
3056
|
size: 16,
|
|
3057
3057
|
"stroke-width": 1.5
|
|
3058
|
-
})) : g.value ? (_(), S(
|
|
3058
|
+
})) : g.value ? (_(), S(x(ue), {
|
|
3059
3059
|
key: 1,
|
|
3060
3060
|
size: 16,
|
|
3061
3061
|
"stroke-width": 1.5
|
|
3062
|
-
})) : m("", !0), y("h3", Jo,
|
|
3062
|
+
})) : m("", !0), y("h3", Jo, s(b.value), 1)]), y("div", Yo, [y("button", {
|
|
3063
3063
|
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)]",
|
|
3064
|
-
title:
|
|
3065
|
-
onClick: n[0] ||= (e) =>
|
|
3066
|
-
}, [f(
|
|
3064
|
+
title: x(c).toolbar.duplicate,
|
|
3065
|
+
onClick: n[0] ||= (e) => o("duplicate")
|
|
3066
|
+
}, [f(x(Be), {
|
|
3067
3067
|
size: 14,
|
|
3068
3068
|
"stroke-width": 2
|
|
3069
3069
|
})], 8, Xo), y("button", {
|
|
3070
3070
|
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)]",
|
|
3071
|
-
title:
|
|
3072
|
-
onClick: n[1] ||= (e) =>
|
|
3073
|
-
}, [f(
|
|
3071
|
+
title: x(c).toolbar.delete,
|
|
3072
|
+
onClick: n[1] ||= (e) => o("delete")
|
|
3073
|
+
}, [f(x(Xe), {
|
|
3074
3074
|
size: 14,
|
|
3075
3075
|
"stroke-width": 2
|
|
3076
3076
|
})], 8, Zo)])]), y("div", Qo, [g.value ? (_(), S(Wr, {
|
|
3077
3077
|
key: 0,
|
|
3078
3078
|
block: e.block,
|
|
3079
|
-
onUpdateFieldValues: n[2] ||= (e) =>
|
|
3080
|
-
onUpdateDataSourceFetched: n[3] ||= (e) =>
|
|
3079
|
+
onUpdateFieldValues: n[2] ||= (e) => o("update", { fieldValues: e }),
|
|
3080
|
+
onUpdateDataSourceFetched: n[3] ||= (e) => o("update", { dataSourceFetched: e })
|
|
3081
3081
|
}, null, 8, ["block"])) : d.value === "section" ? (_(), S(ea, {
|
|
3082
3082
|
key: 1,
|
|
3083
3083
|
block: e.block,
|
|
@@ -3130,7 +3130,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3130
3130
|
key: 12,
|
|
3131
3131
|
block: e.block,
|
|
3132
3132
|
onUpdate: T
|
|
3133
|
-
}, null, 8, ["block"])) : d.value === "countdown" ? (_(), S(
|
|
3133
|
+
}, null, 8, ["block"])) : d.value === "countdown" ? (_(), S(x(r), {
|
|
3134
3134
|
key: 13,
|
|
3135
3135
|
block: e.block,
|
|
3136
3136
|
"font-families": w.value,
|