@templatical/editor 0.60.0 → 0.60.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-DiIaqDtB.js → AiAltTextPopover-DSA1wiiW.js} +1 -1
- package/dist/{AiAltTextReview-DIe0WBbj.js → AiAltTextReview-B9-vfzCj.js} +1 -1
- package/dist/{AiChatPanel-aj2TPO9F.js → AiChatPanel-DPoq2Til.js} +8 -8
- package/dist/{AiPanels-CRM3jf82.js → AiPanels-UdfhAzzu.js} +1 -1
- package/dist/{AiRewriteMenu-F3GyXBsk.js → AiRewriteMenu-BaeMlSEx.js} +8 -8
- package/dist/{BlockIssueBadge-DlhA_I6J.js → BlockIssueBadge-DQ_6NI4p.js} +2 -2
- package/dist/{BlockPreviewCanvas-DYspUXMO.js → BlockPreviewCanvas-DWDfih6j.js} +4 -4
- package/dist/{CloudPanels-CAMn545-.js → CloudPanels-ClHDM3ge.js} +3 -3
- package/dist/{CollaborationNotices-CnfS8BQy.js → CollaborationNotices-PqWv0q8W.js} +1 -1
- package/dist/{CollaboratorBar-DufLdLQP.js → CollaboratorBar-p-_PWqXW.js} +1 -1
- package/dist/{CommentsPanel-C2hFFs0o.js → CommentsPanel-BUo-YhSX.js} +1 -1
- package/dist/{CommentsSidebar-CgEwxt2T.js → CommentsSidebar-D_Pz7FPz.js} +10 -10
- package/dist/{CountdownToolbar-CNqYDevp.js → CountdownToolbar-DYFSFwkD.js} +4 -4
- package/dist/{IssuesPanel-cPKhimE9.js → IssuesPanel-C7mBrK6a.js} +9 -9
- package/dist/{LanguageMenu-zxlpmw2x.js → LanguageMenu-f7js1FF8.js} +10 -10
- package/dist/{LocaleNotices-PIfpvCCI.js → LocaleNotices-CAvDAawJ.js} +2 -2
- package/dist/{LogicTagInsertButton-DqTkGJSR.js → LogicTagInsertButton-Clc3JTg_.js} +6 -6
- package/dist/{MediaEditModal-C2Bn8WGb.js → MediaEditModal-YXOL0d_y.js} +1 -1
- package/dist/{MediaPanels-BAZByHRA.js → MediaPanels-VCv5epgs.js} +1 -1
- package/dist/{MergeTagInput-Jly1Pw0v.js → MergeTagInput-B5a9noTB.js} +1 -1
- package/dist/{MergeTagModeToggle-5kaFLRAm.js → MergeTagModeToggle-D1r2aH5x.js} +4 -4
- package/dist/{MergeTagTextarea-CCfirhcR.js → MergeTagTextarea-CA9dPfMH.js} +3 -3
- package/dist/{ParagraphEditor-DTdnxgDZ.js → ParagraphEditor-ByzfpepN.js} +13 -13
- package/dist/{RestoreVersionDialog-cUYu3Xqs.js → RestoreVersionDialog-Da5sTCFI.js} +3 -3
- package/dist/{RichTextEditorContent-Aub9tOHF.js → RichTextEditorContent-gnRxu4-L.js} +4 -4
- package/dist/{SaveBlockDialog-D_ie3uIF.js → SaveBlockDialog-BM1Fki_2.js} +7 -7
- package/dist/{SavedBlocksBrowserModal-fhSnYT1l.js → SavedBlocksBrowserModal-DHOTdJKB.js} +9 -9
- package/dist/{SavedBlocksPanels-Lklqy4XI.js → SavedBlocksPanels-BJ2OM0cG.js} +1 -1
- package/dist/{SavedBlocksPickBar-CpWkCa8G.js → SavedBlocksPickBar-C4Bv1K_9.js} +2 -2
- package/dist/{TemplateSettings-BJ4a8RBr.js → TemplateSettings-DsaSsCC8.js} +8 -8
- package/dist/{TestEmailModal-BEoapoDc.js → TestEmailModal-CMo0cJik.js} +8 -8
- package/dist/{TestEmailPanel-DgyzokCf.js → TestEmailPanel-B2OoOy9K.js} +1 -1
- package/dist/{TitleEditor-BQoSPgOi.js → TitleEditor--gFbrR7V.js} +6 -6
- package/dist/{Toolbar-KhPpWyX1.js → Toolbar-UXT03-Dc.js} +552 -442
- package/dist/{TplModal-F_kA7luG.js → TplModal-DkoyIwy1.js} +1 -1
- package/dist/{VersionHistoryMenu-Bz4G8cNm.js → VersionHistoryMenu-D-RCk3oB.js} +5 -5
- package/dist/{VersionHistoryPanels-DmVRyWv9.js → VersionHistoryPanels-TzzRlmqK.js} +1 -1
- package/dist/{VersionPreviewBanner-BeppXZyn.js → VersionPreviewBanner-DMg2sw3V.js} +1 -1
- package/dist/{WrapperBlock-Ds7yfbhg.js → WrapperBlock-B4mdW2CP.js} +3 -3
- package/dist/{blockTypeIcons-Do1QqDjg.js → blockTypeIcons-MX-xQH_Z.js} +3 -3
- package/dist/bundle-stats.json +6 -6
- package/dist/{cdn/chunks/ca-Ce3NmK9v.js → ca-C8N05sCU.js} +4 -3
- package/dist/cdn/chunks/{AiAltTextPopover-CUzIaLRK.js → AiAltTextPopover-BLNN_Pnd.js} +2 -2
- package/dist/cdn/chunks/{AiAltTextPopover-CUzIaLRK.js.map → AiAltTextPopover-BLNN_Pnd.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-BXBlE71X.js → AiAltTextReview-Db8vSNpe.js} +2 -2
- package/dist/cdn/chunks/{AiAltTextReview-BXBlE71X.js.map → AiAltTextReview-Db8vSNpe.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-BKydciDQ.js → AiChatPanel-cIT2haLo.js} +2 -2
- package/dist/cdn/chunks/{AiChatPanel-BKydciDQ.js.map → AiChatPanel-cIT2haLo.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-De-cIZ4p.js → AiPanels-B4GG8w3J.js} +2 -2
- package/dist/cdn/chunks/{AiPanels-De-cIZ4p.js.map → AiPanels-B4GG8w3J.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-C9vBUTIB.js → AiRewriteMenu-C34wZVcW.js} +6 -6
- package/dist/cdn/chunks/{AiRewriteMenu-C9vBUTIB.js.map → AiRewriteMenu-C34wZVcW.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-B3CTTvgw.js → BlockIssueBadge-C50pmOMZ.js} +2 -2
- package/dist/cdn/chunks/{BlockIssueBadge-B3CTTvgw.js.map → BlockIssueBadge-C50pmOMZ.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-B4Bj--kc.js → BlockPreviewCanvas-CUOrwkWR.js} +5 -5
- package/dist/cdn/chunks/{BlockPreviewCanvas-B4Bj--kc.js.map → BlockPreviewCanvas-CUOrwkWR.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-CQ75I3hQ.js → CloudPanels-BAGDHObm.js} +3 -3
- package/dist/cdn/chunks/{CloudPanels-CQ75I3hQ.js.map → CloudPanels-BAGDHObm.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-CgLea-hu.js → CollaborationNotices-CTmjjbHv.js} +2 -2
- package/dist/cdn/chunks/{CollaborationNotices-CgLea-hu.js.map → CollaborationNotices-CTmjjbHv.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-CjRcbebT.js → CollaboratorBar-CzHjawjF.js} +2 -2
- package/dist/cdn/chunks/{CollaboratorBar-CjRcbebT.js.map → CollaboratorBar-CzHjawjF.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-D_ud9GMN.js → CommentsPanel-Dh0_eRBe.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-D_ud9GMN.js.map → CommentsPanel-Dh0_eRBe.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-CXn1EGAI.js → CommentsSidebar-JxZ-O2mY.js} +2 -2
- package/dist/cdn/chunks/{CommentsSidebar-CXn1EGAI.js.map → CommentsSidebar-JxZ-O2mY.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BOyk_4k7.js → CountdownToolbar-BBiK9EaU.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-BOyk_4k7.js.map → CountdownToolbar-BBiK9EaU.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DOC94ZsH.js → IssuesPanel-BtAn12hl.js} +4 -4
- package/dist/cdn/chunks/{IssuesPanel-DOC94ZsH.js.map → IssuesPanel-BtAn12hl.js.map} +1 -1
- package/dist/cdn/chunks/{LanguageMenu-DktneIpL.js → LanguageMenu-BDldm-Hp.js} +5 -5
- package/dist/cdn/chunks/{LanguageMenu-DktneIpL.js.map → LanguageMenu-BDldm-Hp.js.map} +1 -1
- package/dist/cdn/chunks/{LocaleNotices-B2NgnHoP.js → LocaleNotices-CzrNKR-N.js} +2 -2
- package/dist/cdn/chunks/{LocaleNotices-B2NgnHoP.js.map → LocaleNotices-CzrNKR-N.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-CQ8RiOou.js → LogicTagInsertButton-B4wuPoMa.js} +5 -5
- package/dist/cdn/chunks/{LogicTagInsertButton-CQ8RiOou.js.map → LogicTagInsertButton-B4wuPoMa.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-Cs7_Om7e.js → MediaEditModal-DJ2wxInt.js} +2 -2
- package/dist/cdn/chunks/{MediaEditModal-Cs7_Om7e.js.map → MediaEditModal-DJ2wxInt.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-BeekGmql.js → MediaPanels-BJawNjr9.js} +2 -2
- package/dist/cdn/chunks/{MediaPanels-BeekGmql.js.map → MediaPanels-BJawNjr9.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-D7FZ0ca0.js → MergeTagInput-DZD-p4nR.js} +2 -2
- package/dist/cdn/chunks/{MergeTagInput-D7FZ0ca0.js.map → MergeTagInput-DZD-p4nR.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-CySCCEDs.js → MergeTagModeToggle-DGuJCgqO.js} +3 -3
- package/dist/cdn/chunks/{MergeTagModeToggle-CySCCEDs.js.map → MergeTagModeToggle-DGuJCgqO.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-DJbWTYVH.js → MergeTagTextarea-BRiaRBr_.js} +4 -4
- package/dist/cdn/chunks/{MergeTagTextarea-DJbWTYVH.js.map → MergeTagTextarea-BRiaRBr_.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DAQUWqQJ.js → ParagraphEditor-CPYQXRIc.js} +10 -10
- package/dist/cdn/chunks/{ParagraphEditor-DAQUWqQJ.js.map → ParagraphEditor-CPYQXRIc.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-COTRe_rM.js → RestoreVersionDialog-NjbHial9.js} +3 -3
- package/dist/cdn/chunks/{RestoreVersionDialog-COTRe_rM.js.map → RestoreVersionDialog-NjbHial9.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DeWPMd9V.js → RichTextEditorContent-CtV0Q0SO.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-DeWPMd9V.js.map → RichTextEditorContent-CtV0Q0SO.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-adQMbKR1.js → SaveBlockDialog-BZqPkGrE.js} +6 -6
- package/dist/cdn/chunks/{SaveBlockDialog-adQMbKR1.js.map → SaveBlockDialog-BZqPkGrE.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CGIFCRAx.js → SavedBlocksBrowserModal-CqfyRtlX.js} +6 -6
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CGIFCRAx.js.map → SavedBlocksBrowserModal-CqfyRtlX.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-Du0RYlEf.js → SavedBlocksPanels-BILHEdkP.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-Du0RYlEf.js.map → SavedBlocksPanels-BILHEdkP.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DmleyUrn.js → SavedBlocksPickBar-C9NKqOEU.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPickBar-DmleyUrn.js.map → SavedBlocksPickBar-C9NKqOEU.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-Csjef99q.js → TemplateSettings--_ZfbhnU.js} +6 -6
- package/dist/cdn/chunks/{TemplateSettings-Csjef99q.js.map → TemplateSettings--_ZfbhnU.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-ClkexOtF.js → TestEmailModal-CtfoV82K.js} +7 -7
- package/dist/cdn/chunks/{TestEmailModal-ClkexOtF.js.map → TestEmailModal-CtfoV82K.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-DYEYzhU2.js → TestEmailPanel-NK26SU2u.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-DYEYzhU2.js.map → TestEmailPanel-NK26SU2u.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-opvaIgVr.js → TitleEditor-DXN_aOn0.js} +5 -5
- package/dist/cdn/chunks/{TitleEditor-opvaIgVr.js.map → TitleEditor-DXN_aOn0.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-DbqkKRXy.js → Toolbar-HCxD4Ifc.js} +532 -422
- package/dist/cdn/chunks/Toolbar-HCxD4Ifc.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-DLV5OeMD.js → TplModal-DzHoLmGo.js} +2 -2
- package/dist/cdn/chunks/{TplModal-DLV5OeMD.js.map → TplModal-DzHoLmGo.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-DBd0zwjE.js → VersionHistoryMenu-CVGlUPwS.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryMenu-DBd0zwjE.js.map → VersionHistoryMenu-CVGlUPwS.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-hy_Ybxie.js → VersionHistoryPanels-Du8sQry2.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-hy_Ybxie.js.map → VersionHistoryPanels-Du8sQry2.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-D-yHxWWY.js → VersionPreviewBanner-5RFz4AQx.js} +2 -2
- package/dist/cdn/chunks/{VersionPreviewBanner-D-yHxWWY.js.map → VersionPreviewBanner-5RFz4AQx.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-Ce_k8m_x.js → WrapperBlock-DTayPD6Q.js} +4 -4
- package/dist/cdn/chunks/{WrapperBlock-Ce_k8m_x.js.map → WrapperBlock-DTayPD6Q.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-DBoP1HkR.js → blockTypeIcons-BOonB9gK.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-DBoP1HkR.js.map → blockTypeIcons-BOonB9gK.js.map} +1 -1
- package/dist/{ca-Ce3NmK9v.js → cdn/chunks/ca-C8N05sCU.js} +6 -1
- package/dist/cdn/chunks/ca-C8N05sCU.js.map +1 -0
- package/dist/cdn/chunks/{composables-Brr4m0Sg.js → composables-BJBr8B4t.js} +110 -66
- package/dist/cdn/chunks/composables-BJBr8B4t.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-QPeg45XL.js → createCloudRuntime-CUlw09ix.js} +3 -3
- package/dist/cdn/chunks/{createCloudRuntime-QPeg45XL.js.map → createCloudRuntime-CUlw09ix.js.map} +1 -1
- package/dist/{da-4YwDAuEr.js → cdn/chunks/da-Dno_4nGy.js} +6 -1
- package/dist/cdn/chunks/da-Dno_4nGy.js.map +1 -0
- package/dist/{de-BlQ0vdZJ.js → cdn/chunks/de-DRR5JSkh.js} +6 -1
- package/dist/cdn/chunks/de-DRR5JSkh.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-BCcbvIxc.js → editor-modal-BVM_0uoL.js} +4 -4
- package/dist/cdn/chunks/{editor-modal-BCcbvIxc.js.map → editor-modal-BVM_0uoL.js.map} +1 -1
- package/dist/cdn/chunks/{en-MlNeQVSG.js → en-DAcLbbpg.js} +5 -2
- package/dist/cdn/chunks/en-DAcLbbpg.js.map +1 -0
- package/dist/cdn/chunks/en-DlDEofnd.js +1 -0
- package/dist/cdn/chunks/{es-2s8x4OM2.js → es-BcEQLQxe.js} +5 -2
- package/dist/cdn/chunks/es-BcEQLQxe.js.map +1 -0
- package/dist/cdn/chunks/{extensions-BpuyqKVY.js → extensions-BPZirXpF.js} +4 -4
- package/dist/cdn/chunks/{extensions-BpuyqKVY.js.map → extensions-BPZirXpF.js.map} +1 -1
- package/dist/{fr-D3MjrsgQ.js → cdn/chunks/fr-CNQG7ESr.js} +6 -1
- package/dist/cdn/chunks/fr-CNQG7ESr.js.map +1 -0
- package/dist/cdn/chunks/{icons-BJ6AtVgu.js → icons-CWEBTtbR.js} +6 -6
- package/dist/cdn/chunks/{icons-BJ6AtVgu.js.map → icons-CWEBTtbR.js.map} +1 -1
- package/dist/{ja-B4Kx7uBX.js → cdn/chunks/ja-CMxWxqSH.js} +6 -1
- package/dist/cdn/chunks/ja-CMxWxqSH.js.map +1 -0
- package/dist/{nl-U65iX7wN.js → cdn/chunks/nl-BjyYZDkC.js} +6 -1
- package/dist/cdn/chunks/nl-BjyYZDkC.js.map +1 -0
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-B81BAWKT.js → normalizeMergeTagMarkup-CExCfSYI.js} +2 -2
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-B81BAWKT.js.map → normalizeMergeTagMarkup-CExCfSYI.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-CQuaMxuv.js → preRenderCustomBlocks-BLVFtvl8.js} +2 -2
- package/dist/cdn/chunks/{preRenderCustomBlocks-CQuaMxuv.js.map → preRenderCustomBlocks-BLVFtvl8.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-_jsX1xLv.js → pt-BR-DC2A3C0v.js} +5 -2
- package/dist/cdn/chunks/pt-BR-DC2A3C0v.js.map +1 -0
- package/dist/cdn/chunks/{sanitizeHtml-BdAjvU9I.js → sanitizeHtml-Db0S2JVP.js} +2 -2
- package/dist/cdn/chunks/{sanitizeHtml-BdAjvU9I.js.map → sanitizeHtml-Db0S2JVP.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-Df9dNe7I.js → socialIcons-WD1cjZDr.js} +3 -3
- package/dist/cdn/chunks/{socialIcons-Df9dNe7I.js.map → socialIcons-WD1cjZDr.js.map} +1 -1
- package/dist/cdn/chunks/{src-BHgVGOTi.js → src-A0kzK-pR.js} +5 -1
- package/dist/cdn/chunks/src-A0kzK-pR.js.map +1 -0
- package/dist/cdn/chunks/{src-C5V_yzAU.js → src-C9opbQj_.js} +207 -196
- package/dist/cdn/chunks/src-C9opbQj_.js.map +1 -0
- package/dist/cdn/chunks/{src-B3v_3j9b.js → src-edESkGqO.js} +366 -293
- package/dist/cdn/chunks/src-edESkGqO.js.map +1 -0
- package/dist/cdn/chunks/{useLocalizedDisplay-C3lIetmX.js → useLocalizedDisplay-Brdkp3KH.js} +2 -2
- package/dist/cdn/chunks/{useLocalizedDisplay-C3lIetmX.js.map → useLocalizedDisplay-Brdkp3KH.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-DOIlsGk8.js → useLogicTag-CKtQlJDa.js} +2 -2
- package/dist/cdn/chunks/{useLogicTag-DOIlsGk8.js.map → useLogicTag-CKtQlJDa.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-DUNl364g.js → useMergeTag-Dwy3U0PI.js} +2 -2
- package/dist/cdn/chunks/{useMergeTag-DUNl364g.js.map → useMergeTag-Dwy3U0PI.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-ufGLu2Vt.js → withCurrentFont-C4pIesdB.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-ufGLu2Vt.js.map → withCurrentFont-C4pIesdB.js.map} +1 -1
- package/dist/cdn/editor.js +21 -21
- package/dist/{check-CWq6Nfjj.js → check-C82yyyf1.js} +1 -1
- package/dist/{chevron-down-B9t0SK_-.js → chevron-down-BaBVjNbM.js} +1 -1
- package/dist/{chevron-right-B_qslOCS.js → chevron-right-DkS-bw8X.js} +1 -1
- package/dist/{chevron-up-CxZ2teV2.js → chevron-up-C1KzUIK4.js} +1 -1
- package/dist/{circle-exclamation-point-B1tbhkNb.js → circle-exclamation-point-DsmqtTUQ.js} +1 -1
- package/dist/{clock-Rw4btQn-.js → clock-dpIs7vo0.js} +1 -1
- package/dist/{composables-5KJV0O9T.js → composables-DjCuq6RV.js} +1307 -1263
- package/dist/{createCloudRuntime-BdoKeYJi.js → createCloudRuntime-CiEo0wkr.js} +2 -2
- package/dist/{createLucideIcon-B6Zkn9r0.js → createLucideIcon-BSam2AUu.js} +5 -5
- package/dist/{cdn/chunks/da-4YwDAuEr.js → da-Dno_4nGy.js} +4 -3
- package/dist/{cdn/chunks/de-BlQ0vdZJ.js → de-DRR5JSkh.js} +4 -3
- package/dist/{dist-DsA7NeIy.js → dist-DX_IQgcU.js} +4 -0
- package/dist/{editor-modal-_ylhrf4g.js → editor-modal-odubnc9x.js} +15 -15
- package/dist/en-CAImT1hl.js +1 -0
- package/dist/{en-MlNeQVSG.js → en-DAcLbbpg.js} +4 -1
- package/dist/{es-2s8x4OM2.js → es-BcEQLQxe.js} +4 -1
- package/dist/{extensions-DCJGAZ9z.js → extensions-C7OLgMEj.js} +3 -3
- package/dist/{eye-BE-DeEqG.js → eye-CxCHEszj.js} +1 -1
- package/dist/{cdn/chunks/fr-D3MjrsgQ.js → fr-CNQG7ESr.js} +4 -3
- package/dist/{image-DfRxUmUh.js → image-DvXPzqNd.js} +1 -1
- package/dist/index.d.ts +35 -6
- package/dist/{info-D1PS-81D.js → info-2KHWaZ2L.js} +1 -1
- package/dist/{cdn/chunks/ja-B4Kx7uBX.js → ja-CMxWxqSH.js} +4 -3
- package/dist/{link-DLaACaIz.js → link-_OmrcJMv.js} +1 -1
- package/dist/{list-CvtzVlvM.js → list-Dekd7JE8.js} +1 -1
- package/dist/{loader-circle-DCkSXApP.js → loader-circle-D_hT5mFS.js} +1 -1
- package/dist/{message-circle-Bj4F9bBO.js → message-circle-DDbiG-jz.js} +1 -1
- package/dist/{cdn/chunks/nl-U65iX7wN.js → nl-BjyYZDkC.js} +4 -3
- package/dist/{normalizeMergeTagMarkup-B7n_-4Dz.js → normalizeMergeTagMarkup-Cv5Wvs5f.js} +1 -1
- package/dist/{package-By1au8Wi.js → package-cORUe57D.js} +1 -1
- package/dist/{pencil-T4qqyRLl.js → pencil-D67H4fxq.js} +1 -1
- package/dist/{plus-3Zry-1gs.js → plus-BpTZAx28.js} +1 -1
- package/dist/{preRenderCustomBlocks-D3GzENVB.js → preRenderCustomBlocks-6CLw2rP6.js} +1 -1
- package/dist/{pt-BR-_jsX1xLv.js → pt-BR-DC2A3C0v.js} +4 -1
- package/dist/{refresh-cw-BwaO0ioc.js → refresh-cw-B4T0IFwI.js} +1 -1
- package/dist/{rotate-ccw-C3E0W5q-.js → rotate-ccw-BDQgjpuo.js} +1 -1
- package/dist/{sanitizeHtml-BcbjlypU.js → sanitizeHtml-Ru5_-IbM.js} +2 -2
- package/dist/{search-DfExisVv.js → search-Dp9pkaVt.js} +1 -1
- package/dist/{send-FRC7Giap.js → send-DO9GhgCH.js} +1 -1
- package/dist/{smartphone-BlYU_z_x.js → smartphone-CPW3I3hV.js} +1 -1
- package/dist/{socialIcons-By2LPWOQ.js → socialIcons-CPBiLTjY.js} +4 -4
- package/dist/{sparkles-DSi61skE.js → sparkles-CIBjNfij.js} +1 -1
- package/dist/{square-DEE8tT2w.js → square-3W65qrrH.js} +1 -1
- package/dist/templatical-editor.js +35 -35
- package/dist/{text-align-start-DGdrmKcG.js → text-align-start-Bs70tpRU.js} +1 -1
- package/dist/{trash-YZPJMZc7.js → trash-CTzhAm1o.js} +1 -1
- package/dist/{triangle-exclamation-point-BR-W6pQm.js → triangle-exclamation-point-D_13CuJY.js} +1 -1
- package/dist/{upload-B_Eoqj-4.js → upload-DFxkP9MI.js} +1 -1
- package/dist/{useLocalizedDisplay-_P6-hXaO.js → useLocalizedDisplay-DfiE-KjV.js} +1 -1
- package/dist/{useLogicTag-f0SJ1Cd2.js → useLogicTag-K5CPoMTk.js} +1 -1
- package/dist/{useMergeTag-0-EudwkV.js → useMergeTag-tsU_Sw2x.js} +1 -1
- package/dist/{useScrollToBlock-CtM_ydOS.js → useScrollToBlock-194ePl4q.js} +1 -1
- package/dist/{withCurrentFont-BOg3jmCT.js → withCurrentFont-C-_IYTqP.js} +1 -1
- package/dist/{x-C0X5MoK3.js → x-D7L8mLHJ.js} +1 -1
- package/package.json +9 -9
- package/dist/cdn/chunks/Toolbar-DbqkKRXy.js.map +0 -1
- package/dist/cdn/chunks/ca-Ce3NmK9v.js.map +0 -1
- package/dist/cdn/chunks/composables-Brr4m0Sg.js.map +0 -1
- package/dist/cdn/chunks/da-4YwDAuEr.js.map +0 -1
- package/dist/cdn/chunks/de-BlQ0vdZJ.js.map +0 -1
- package/dist/cdn/chunks/en-DkulseE1.js +0 -1
- package/dist/cdn/chunks/en-MlNeQVSG.js.map +0 -1
- package/dist/cdn/chunks/es-2s8x4OM2.js.map +0 -1
- package/dist/cdn/chunks/fr-D3MjrsgQ.js.map +0 -1
- package/dist/cdn/chunks/ja-B4Kx7uBX.js.map +0 -1
- package/dist/cdn/chunks/nl-U65iX7wN.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-_jsX1xLv.js.map +0 -1
- package/dist/cdn/chunks/src-B3v_3j9b.js.map +0 -1
- package/dist/cdn/chunks/src-BHgVGOTi.js.map +0 -1
- package/dist/cdn/chunks/src-C5V_yzAU.js.map +0 -1
- package/dist/en-DwxgN_-Y.js +0 -1
|
@@ -1,37 +1,38 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
2
2
|
import { B as t, F as n, Ft as r, L as i, M as a, Mt as o, P as s, Pt as c, Q as l, U as u, W as d, Z as f, _ as p, c as m, ct as h, d as g, et as _, f as v, g as y, l as b, m as x, r as S, rt as C, u as w, v as T, w as E, y as D } from "./vue.runtime.esm-bundler-BE5V8ADU.js";
|
|
3
3
|
import { a as O, o as k } from "./runtime-dom.esm-bundler-nN-jsqr1.js";
|
|
4
|
-
import { n as A, t as j } from "./MergeTagTextarea-
|
|
5
|
-
import { c as M } from "./LogicTagInsertButton-
|
|
6
|
-
import { t as N } from "./MergeTagInput-
|
|
4
|
+
import { n as A, t as j } from "./MergeTagTextarea-CA9dPfMH.js";
|
|
5
|
+
import { c as M } from "./LogicTagInsertButton-Clc3JTg_.js";
|
|
6
|
+
import { t as N } from "./MergeTagInput-B5a9noTB.js";
|
|
7
7
|
import { t as P } from "./ToggleSwitch-BIPdFWUr.js";
|
|
8
8
|
import { C as F, S as I, _ as L, b as ee, c as R, g as z, h as B, r as te, s as ne, v as V, y as H } from "./styleConstants-Br6CIRoS.js";
|
|
9
|
-
import { t as re } from "./link-
|
|
10
|
-
import { t as U } from "./createLucideIcon-
|
|
9
|
+
import { t as re } from "./link-_OmrcJMv.js";
|
|
10
|
+
import { t as U } from "./createLucideIcon-BSam2AUu.js";
|
|
11
11
|
import { t as W } from "./useI18n-Cx9W7OWb.js";
|
|
12
|
-
import { $t as ie, Bt as ae, F as oe, Jt as se, N as ce, P as G, Pt as le, St as ue, bt as de, en as fe, fn as pe, ft as K, i as q, j as J, m as Y, mn as X, n as me, o as he, pt as ge, r as _e, rn as ve, t as ye, v as Z } from "./dist-
|
|
13
|
-
import { n as be } from "./useLocalizedDisplay-
|
|
12
|
+
import { $t as ie, Bt as ae, F as oe, Jt as se, N as ce, P as G, Pt as le, St as ue, bt as de, en as fe, fn as pe, ft as K, i as q, j as J, m as Y, mn as X, n as me, o as he, pt as ge, r as _e, rn as ve, t as ye, v as Z } from "./dist-DX_IQgcU.js";
|
|
13
|
+
import { n as be } from "./useLocalizedDisplay-DfiE-KjV.js";
|
|
14
14
|
import { $ as xe, B as Se, C as Ce, H as we, O as Te, T as Ee, W as De, _ as Oe, b as ke, h as Ae, p as je, r as Me, ut as Ne, v as Pe } from "./keys-B4DimcgX.js";
|
|
15
|
-
import { B as Fe, T as Ie, _ as Le, b as Re, d as ze, f as Be, g as Ve, h as He, i as Ue, k as We, l as Ge, m as Ke, p as qe, r as Je, s as Ye, u as Xe, v as Ze } from "./socialIcons-
|
|
16
|
-
import { n as Qe, t as $e } from "./withCurrentFont-
|
|
15
|
+
import { B as Fe, T as Ie, _ as Le, b as Re, d as ze, f as Be, g as Ve, h as He, i as Ue, k as We, l as Ge, m as Ke, p as qe, r as Je, s as Ye, u as Xe, v as Ze } from "./socialIcons-CPBiLTjY.js";
|
|
16
|
+
import { n as Qe, t as $e } from "./withCurrentFont-C-_IYTqP.js";
|
|
17
17
|
import { t as et } from "./languageName-DEEOhDWI.js";
|
|
18
|
-
import { n as tt, t as nt } from "./blockTypeIcons-
|
|
19
|
-
import { t as Q } from "./plus-
|
|
18
|
+
import { n as tt, t as nt } from "./blockTypeIcons-MX-xQH_Z.js";
|
|
19
|
+
import { t as Q } from "./plus-BpTZAx28.js";
|
|
20
20
|
import { t as rt } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
21
|
-
import { t as it } from "./image-
|
|
22
|
-
import { t as at } from "./chevron-down-
|
|
23
|
-
import { n as ot, t as st } from "./smartphone-
|
|
21
|
+
import { t as it } from "./image-DvXPzqNd.js";
|
|
22
|
+
import { t as at } from "./chevron-down-BaBVjNbM.js";
|
|
23
|
+
import { n as ot, t as st } from "./smartphone-CPW3I3hV.js";
|
|
24
24
|
import { t as ct } from "./logger-BOu7oEtk.js";
|
|
25
|
-
import { t as lt } from "./circle-exclamation-point-
|
|
26
|
-
import { t as ut } from "./refresh-cw-
|
|
25
|
+
import { t as lt } from "./circle-exclamation-point-DsmqtTUQ.js";
|
|
26
|
+
import { t as ut } from "./refresh-cw-B4T0IFwI.js";
|
|
27
27
|
import { c as dt, r as ft } from "./usePopoverPosition-DF0ZYH7g.js";
|
|
28
|
-
import { t as pt } from "./trash-
|
|
29
|
-
import { t as mt } from "./info-
|
|
28
|
+
import { t as pt } from "./trash-CTzhAm1o.js";
|
|
29
|
+
import { t as mt } from "./info-2KHWaZ2L.js";
|
|
30
30
|
import { _ as ht } from "./dist-A328tG0Z.js";
|
|
31
|
-
import { n as gt, r as _t, t as vt } from "./text-align-start-
|
|
32
|
-
import { t as yt } from "./x-
|
|
33
|
-
import {
|
|
34
|
-
|
|
31
|
+
import { n as gt, r as _t, t as vt } from "./text-align-start-Bs70tpRU.js";
|
|
32
|
+
import { t as yt } from "./x-D7L8mLHJ.js";
|
|
33
|
+
import { t as bt } from "./useMergeTag-tsU_Sw2x.js";
|
|
34
|
+
import { n as xt } from "./upload-DFxkP9MI.js";
|
|
35
|
+
var St = U({
|
|
35
36
|
name: "lock-open",
|
|
36
37
|
size: 24,
|
|
37
38
|
node: [["rect", {
|
|
@@ -47,7 +48,7 @@ var xt = U({
|
|
|
47
48
|
key: "1mm8w8"
|
|
48
49
|
}]],
|
|
49
50
|
aliases: ["unlock"]
|
|
50
|
-
}),
|
|
51
|
+
}), Ct = U({
|
|
51
52
|
name: "lock",
|
|
52
53
|
size: 24,
|
|
53
54
|
node: [["rect", {
|
|
@@ -62,7 +63,7 @@ var xt = U({
|
|
|
62
63
|
d: "M7 11V7a5 5 0 0 1 10 0v4",
|
|
63
64
|
key: "fwvmzm"
|
|
64
65
|
}]]
|
|
65
|
-
}),
|
|
66
|
+
}), wt = U({
|
|
66
67
|
name: "unlink",
|
|
67
68
|
size: 24,
|
|
68
69
|
node: [
|
|
@@ -103,14 +104,14 @@ var xt = U({
|
|
|
103
104
|
key: "ox905f"
|
|
104
105
|
}]
|
|
105
106
|
]
|
|
106
|
-
}),
|
|
107
|
+
}), Tt = [
|
|
107
108
|
"aria-checked",
|
|
108
109
|
"aria-label",
|
|
109
110
|
"disabled",
|
|
110
111
|
"aria-disabled",
|
|
111
112
|
"title",
|
|
112
113
|
"onClick"
|
|
113
|
-
],
|
|
114
|
+
], Et = { key: 1 }, $ = /* @__PURE__ */ D({
|
|
114
115
|
__name: "SlidingPillSelect",
|
|
115
116
|
props: {
|
|
116
117
|
options: {},
|
|
@@ -155,14 +156,14 @@ var xt = U({
|
|
|
155
156
|
key: 0,
|
|
156
157
|
size: 14,
|
|
157
158
|
"stroke-width": 2
|
|
158
|
-
})) : (a(), v("span",
|
|
159
|
+
})) : (a(), v("span", Et, r(t.label), 1))], 12, Tt))), 128))], 4));
|
|
159
160
|
}
|
|
160
|
-
}),
|
|
161
|
+
}), Dt = { class: "tpl:flex tpl:items-stretch" }, Ot = [
|
|
161
162
|
"data-testid",
|
|
162
163
|
"value",
|
|
163
164
|
"min",
|
|
164
165
|
"max"
|
|
165
|
-
],
|
|
166
|
+
], kt = /* @__PURE__ */ D({
|
|
166
167
|
__name: "NumberWithSuffix",
|
|
167
168
|
props: {
|
|
168
169
|
modelValue: {},
|
|
@@ -178,7 +179,7 @@ var xt = U({
|
|
|
178
179
|
let t = e.target;
|
|
179
180
|
t.validity?.badInput || n("update:modelValue", Number(t.value));
|
|
180
181
|
}
|
|
181
|
-
return (t, n) => (a(), v("div",
|
|
182
|
+
return (t, n) => (a(), v("div", Dt, [b("input", {
|
|
182
183
|
type: "number",
|
|
183
184
|
"data-testid": e.testid,
|
|
184
185
|
class: o(h(z)),
|
|
@@ -186,14 +187,14 @@ var xt = U({
|
|
|
186
187
|
min: e.min,
|
|
187
188
|
max: e.max,
|
|
188
189
|
onInput: i
|
|
189
|
-
}, null, 42,
|
|
190
|
+
}, null, 42, Ot), b("span", { class: o(h(L)) }, r(e.suffix), 3)]));
|
|
190
191
|
}
|
|
191
|
-
}),
|
|
192
|
+
}), At = [
|
|
192
193
|
"aria-pressed",
|
|
193
194
|
"aria-label",
|
|
194
195
|
"title",
|
|
195
196
|
"data-testid"
|
|
196
|
-
],
|
|
197
|
+
], jt = /* @__PURE__ */ D({
|
|
197
198
|
__name: "LinkToggle",
|
|
198
199
|
props: {
|
|
199
200
|
linked: { type: Boolean },
|
|
@@ -216,16 +217,16 @@ var xt = U({
|
|
|
216
217
|
key: 0,
|
|
217
218
|
size: 14,
|
|
218
219
|
"stroke-width": 2
|
|
219
|
-
})) : (a(), w(h(
|
|
220
|
+
})) : (a(), w(h(wt), {
|
|
220
221
|
key: 1,
|
|
221
222
|
size: 14,
|
|
222
223
|
"stroke-width": 2
|
|
223
|
-
}))], 10,
|
|
224
|
+
}))], 10, At));
|
|
224
225
|
}
|
|
225
|
-
}),
|
|
226
|
+
}), Mt = {
|
|
226
227
|
key: 0,
|
|
227
228
|
class: "tpl:mb-3.5"
|
|
228
|
-
},
|
|
229
|
+
}, Nt = { class: "tpl:mb-3.5" }, Pt = { class: "tpl:mb-3.5" }, Ft = /* @__PURE__ */ D({
|
|
229
230
|
__name: "BorderControl",
|
|
230
231
|
props: {
|
|
231
232
|
path: {},
|
|
@@ -295,7 +296,7 @@ var xt = U({
|
|
|
295
296
|
path: e.path,
|
|
296
297
|
label: h(c).blockSettings.border
|
|
297
298
|
}, {
|
|
298
|
-
"label-actions": u(() => [p(
|
|
299
|
+
"label-actions": u(() => [p(jt, {
|
|
299
300
|
linked: y.value,
|
|
300
301
|
"link-label": h(c).blockSettings.linkSides,
|
|
301
302
|
"unlink-label": h(c).blockSettings.unlinkSides,
|
|
@@ -308,19 +309,19 @@ var xt = U({
|
|
|
308
309
|
"testid"
|
|
309
310
|
])]),
|
|
310
311
|
default: u(() => [
|
|
311
|
-
y.value ? g("", !0) : (a(), v("div",
|
|
312
|
+
y.value ? g("", !0) : (a(), v("div", Mt, [b("label", { class: o(h(V)) }, r(h(c).blockSettings.borderSide), 3), p($, {
|
|
312
313
|
options: j.value,
|
|
313
314
|
"model-value": x.value,
|
|
314
315
|
"onUpdate:modelValue": n[0] ||= (e) => x.value = e
|
|
315
316
|
}, null, 8, ["options", "model-value"])])),
|
|
316
|
-
b("div",
|
|
317
|
+
b("div", Nt, [b("label", { class: o(h(V)) }, r(h(c).blockSettings.borderWidth), 3), p(kt, {
|
|
317
318
|
"model-value": C.value.width,
|
|
318
319
|
min: 0,
|
|
319
320
|
suffix: "px",
|
|
320
321
|
testid: `${e.testidPrefix}-border-width-input`,
|
|
321
322
|
"onUpdate:modelValue": D
|
|
322
323
|
}, null, 8, ["model-value", "testid"])]),
|
|
323
|
-
C.value.width > 0 ? (a(), v(S, { key: 1 }, [b("div",
|
|
324
|
+
C.value.width > 0 ? (a(), v(S, { key: 1 }, [b("div", Pt, [b("label", { class: o(h(V)) }, r(h(c).blockSettings.borderStyle), 3), p($, {
|
|
324
325
|
options: [
|
|
325
326
|
{
|
|
326
327
|
value: "solid",
|
|
@@ -345,10 +346,10 @@ var xt = U({
|
|
|
345
346
|
_: 1
|
|
346
347
|
}, 8, ["path", "label"]));
|
|
347
348
|
}
|
|
348
|
-
}),
|
|
349
|
+
}), It = {
|
|
349
350
|
key: 1,
|
|
350
351
|
class: "tpl:grid tpl:grid-cols-2 tpl:gap-2"
|
|
351
|
-
},
|
|
352
|
+
}, Lt = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Rt = /* @__PURE__ */ D({
|
|
352
353
|
__name: "RadiusControl",
|
|
353
354
|
props: {
|
|
354
355
|
path: {},
|
|
@@ -400,7 +401,7 @@ var xt = U({
|
|
|
400
401
|
path: e.path,
|
|
401
402
|
label: e.label
|
|
402
403
|
}, {
|
|
403
|
-
"label-actions": u(() => [p(
|
|
404
|
+
"label-actions": u(() => [p(jt, {
|
|
404
405
|
linked: y.value,
|
|
405
406
|
"link-label": h(c).blockSettings.linkCorners,
|
|
406
407
|
"unlink-label": h(c).blockSettings.unlinkCorners,
|
|
@@ -412,7 +413,7 @@ var xt = U({
|
|
|
412
413
|
"unlink-label",
|
|
413
414
|
"testid"
|
|
414
415
|
])]),
|
|
415
|
-
default: u(() => [y.value ? (a(), w(
|
|
416
|
+
default: u(() => [y.value ? (a(), w(kt, {
|
|
416
417
|
key: 0,
|
|
417
418
|
"model-value": f.value.topLeft,
|
|
418
419
|
min: 0,
|
|
@@ -424,7 +425,7 @@ var xt = U({
|
|
|
424
425
|
"model-value",
|
|
425
426
|
"max",
|
|
426
427
|
"testid"
|
|
427
|
-
])) : (a(), v("div",
|
|
428
|
+
])) : (a(), v("div", It, [(a(), v(S, null, s(d, (t) => b("div", { key: t }, [b("label", Lt, r(h(c).blockSettings[l[t]]), 1), p(kt, {
|
|
428
429
|
"model-value": f.value[t],
|
|
429
430
|
min: 0,
|
|
430
431
|
max: e.max,
|
|
@@ -440,14 +441,14 @@ var xt = U({
|
|
|
440
441
|
_: 1
|
|
441
442
|
}, 8, ["path", "label"]));
|
|
442
443
|
}
|
|
443
|
-
}),
|
|
444
|
+
}), zt = ["value"], Bt = { value: "" }, Vt = ["value"], Ht = { class: "tpl:flex tpl:items-stretch" }, Ut = ["value"], Wt = ["value"], Gt = ["value"], Kt = ["value"], qt = { value: "auto" }, Jt = { value: "full" }, Yt = { value: "custom" }, Xt = {
|
|
444
445
|
key: 0,
|
|
445
446
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch tpl:gap-2"
|
|
446
|
-
},
|
|
447
|
+
}, Zt = [
|
|
447
448
|
"value",
|
|
448
449
|
"min",
|
|
449
450
|
"max"
|
|
450
|
-
],
|
|
451
|
+
], Qt = 200, $t = /* @__PURE__ */ D({
|
|
451
452
|
__name: "ButtonToolbar",
|
|
452
453
|
props: {
|
|
453
454
|
block: {},
|
|
@@ -460,7 +461,7 @@ var xt = U({
|
|
|
460
461
|
i("update", { [e]: t });
|
|
461
462
|
}
|
|
462
463
|
function D(e) {
|
|
463
|
-
e === "full" ? T("width", "full") : e === "custom" ? T("width", typeof n.block.width == "number" ? n.block.width :
|
|
464
|
+
e === "full" ? T("width", "full") : e === "custom" ? T("width", typeof n.block.width == "number" ? n.block.width : Qt) : T("width", void 0);
|
|
464
465
|
}
|
|
465
466
|
let O = m(() => String(J(n.block))), k = m(() => {
|
|
466
467
|
let e = O.value;
|
|
@@ -493,7 +494,7 @@ var xt = U({
|
|
|
493
494
|
return;
|
|
494
495
|
}
|
|
495
496
|
let i = ae(t);
|
|
496
|
-
r === null ? T("width",
|
|
497
|
+
r === null ? T("width", Qt) : T("width", Math.max(1, Math.round(r * i / 100)));
|
|
497
498
|
}
|
|
498
499
|
return (t, n) => (a(), v(S, null, [
|
|
499
500
|
p(A, {
|
|
@@ -505,10 +506,10 @@ var xt = U({
|
|
|
505
506
|
class: o(h(B)),
|
|
506
507
|
value: h($e)(e.block.fontFamily),
|
|
507
508
|
onChange: n[0] ||= (e) => T("fontFamily", e.target.value || void 0)
|
|
508
|
-
}, [b("option",
|
|
509
|
+
}, [b("option", Bt, r(h(c).button.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
|
|
509
510
|
key: e.value,
|
|
510
511
|
value: e.value
|
|
511
|
-
}, r(e.label), 9,
|
|
512
|
+
}, r(e.label), 9, Vt))), 128))], 42, zt)]),
|
|
512
513
|
_: 1
|
|
513
514
|
}, 8, ["label"]),
|
|
514
515
|
p(A, {
|
|
@@ -577,13 +578,13 @@ var xt = U({
|
|
|
577
578
|
}, null, 8, ["model-value"])]),
|
|
578
579
|
_: 1
|
|
579
580
|
}, 8, ["label"]),
|
|
580
|
-
p(
|
|
581
|
+
p(Ft, {
|
|
581
582
|
path: "border",
|
|
582
583
|
"model-value": e.block.border,
|
|
583
584
|
"testid-prefix": "button",
|
|
584
585
|
"onUpdate:modelValue": n[6] ||= (e) => T("border", e)
|
|
585
586
|
}, null, 8, ["model-value"]),
|
|
586
|
-
p(
|
|
587
|
+
p(Rt, {
|
|
587
588
|
path: "borderRadius",
|
|
588
589
|
"model-value": e.block.borderRadius,
|
|
589
590
|
label: h(c).button.borderRadius,
|
|
@@ -596,14 +597,14 @@ var xt = U({
|
|
|
596
597
|
class: "tpl:mb-3.5",
|
|
597
598
|
path: "fontSize"
|
|
598
599
|
}, {
|
|
599
|
-
default: u(() => [b("div",
|
|
600
|
+
default: u(() => [b("div", Ht, [b("input", {
|
|
600
601
|
type: "number",
|
|
601
602
|
class: o(h(z)),
|
|
602
603
|
value: e.block.fontSize,
|
|
603
604
|
min: "10",
|
|
604
605
|
max: "36",
|
|
605
606
|
onInput: n[8] ||= (e) => T("fontSize", Number(e.target.value))
|
|
606
|
-
}, null, 42,
|
|
607
|
+
}, null, 42, Ut), b("span", { class: o(h(L)) }, "px", 2)])]),
|
|
607
608
|
_: 1
|
|
608
609
|
}, 8, ["label"]),
|
|
609
610
|
p(A, {
|
|
@@ -618,7 +619,7 @@ var xt = U({
|
|
|
618
619
|
}, [(a(!0), v(S, null, s(k.value, (e) => (a(), v("option", {
|
|
619
620
|
key: e,
|
|
620
621
|
value: e
|
|
621
|
-
}, r(e), 9,
|
|
622
|
+
}, r(e), 9, Gt))), 128))], 42, Wt)]),
|
|
622
623
|
_: 1
|
|
623
624
|
}, 8, ["label"]),
|
|
624
625
|
p(A, {
|
|
@@ -656,17 +657,17 @@ var xt = U({
|
|
|
656
657
|
value: _.value,
|
|
657
658
|
onChange: n[10] ||= (e) => D(e.target.value)
|
|
658
659
|
}, [
|
|
659
|
-
b("option",
|
|
660
|
-
b("option",
|
|
661
|
-
b("option",
|
|
662
|
-
], 42,
|
|
660
|
+
b("option", qt, r(h(c).button.widthAuto), 1),
|
|
661
|
+
b("option", Jt, r(h(c).button.fullWidth), 1),
|
|
662
|
+
b("option", Yt, r(h(c).button.widthCustom), 1)
|
|
663
|
+
], 42, Kt), _.value === "custom" ? (a(), v("div", Xt, [b("input", {
|
|
663
664
|
type: "number",
|
|
664
665
|
class: o([h(B), "tpl:min-w-0 tpl:flex-1"]),
|
|
665
666
|
value: x.value,
|
|
666
667
|
min: y.value === "%" ? 1 : 20,
|
|
667
668
|
max: y.value === "%" ? 100 : void 0,
|
|
668
669
|
onInput: n[11] ||= (e) => I(e.target.value)
|
|
669
|
-
}, null, 42,
|
|
670
|
+
}, null, 42, Zt), p($, {
|
|
670
671
|
class: "tpl:w-24 tpl:shrink-0",
|
|
671
672
|
"aria-label": h(c).button.widthUnit,
|
|
672
673
|
options: [{
|
|
@@ -708,7 +709,7 @@ var xt = U({
|
|
|
708
709
|
}, 8, ["label"])
|
|
709
710
|
], 64));
|
|
710
711
|
}
|
|
711
|
-
}),
|
|
712
|
+
}), en = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, tn = { class: "tpl:flex tpl:items-center" }, nn = ["aria-label"], rn = ["value", "aria-label"], an = ["aria-label"], on = { class: "tpl:flex tpl:items-center tpl:gap-2" }, sn = { class: "tpl:flex tpl:items-center" }, cn = ["aria-label"], ln = ["value", "aria-label"], un = ["aria-label"], dn = ["aria-label", "title"], fn = { class: "tpl:flex tpl:items-center" }, pn = ["aria-label"], mn = ["value", "aria-label"], hn = ["aria-label"], gn = { class: "tpl:flex tpl:items-center" }, _n = ["aria-label"], vn = ["value", "aria-label"], yn = ["aria-label"], bn = "tpl:flex tpl:items-center tpl:justify-center tpl:w-8 tpl:h-8 tpl:text-[var(--tpl-text-muted)] tpl:bg-[var(--tpl-bg)] tpl:border tpl:border-[var(--tpl-border)] tpl:cursor-pointer tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)] tpl:active:bg-[var(--tpl-bg-active)]", xn = "tpl:w-10 tpl:h-8 tpl:text-center tpl:text-xs tpl:font-medium tpl:border-y tpl:border-x-0 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", Sn = /*#__PURE__*/ rt(/* @__PURE__ */ D({
|
|
712
713
|
__name: "SpacingControl",
|
|
713
714
|
props: {
|
|
714
715
|
path: {},
|
|
@@ -761,126 +762,126 @@ var xt = U({
|
|
|
761
762
|
path: e.path,
|
|
762
763
|
label: e.label
|
|
763
764
|
}, {
|
|
764
|
-
default: u(() => [b("div",
|
|
765
|
-
b("div",
|
|
765
|
+
default: u(() => [b("div", en, [
|
|
766
|
+
b("div", tn, [
|
|
766
767
|
b("button", {
|
|
767
768
|
"aria-label": h(s).spacingControl.decreaseTop,
|
|
768
|
-
class: o([
|
|
769
|
+
class: o([bn, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
769
770
|
onClick: n[0] ||= (e) => d("top", -1)
|
|
770
771
|
}, [p(h(tt), {
|
|
771
772
|
size: 12,
|
|
772
773
|
"stroke-width": 2
|
|
773
|
-
})], 10,
|
|
774
|
+
})], 10, nn),
|
|
774
775
|
b("input", {
|
|
775
776
|
type: "number",
|
|
776
|
-
class: o(
|
|
777
|
+
class: o(xn),
|
|
777
778
|
value: e.modelValue.top,
|
|
778
779
|
"aria-label": h(s).spacingControl.top,
|
|
779
780
|
min: "0",
|
|
780
781
|
onInput: n[1] ||= (e) => f("top", Number(e.target.value))
|
|
781
|
-
}, null, 40,
|
|
782
|
+
}, null, 40, rn),
|
|
782
783
|
b("button", {
|
|
783
784
|
"aria-label": h(s).spacingControl.increaseTop,
|
|
784
|
-
class: o([
|
|
785
|
+
class: o([bn, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
785
786
|
onClick: n[2] ||= (e) => d("top", 1)
|
|
786
787
|
}, [p(h(Q), {
|
|
787
788
|
size: 12,
|
|
788
789
|
"stroke-width": 2
|
|
789
|
-
})], 10,
|
|
790
|
+
})], 10, an)
|
|
790
791
|
]),
|
|
791
|
-
b("div",
|
|
792
|
-
b("div",
|
|
792
|
+
b("div", on, [
|
|
793
|
+
b("div", sn, [
|
|
793
794
|
b("button", {
|
|
794
795
|
"aria-label": h(s).spacingControl.decreaseLeft,
|
|
795
|
-
class: o([
|
|
796
|
+
class: o([bn, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
796
797
|
onClick: n[3] ||= (e) => d("left", -1)
|
|
797
798
|
}, [p(h(tt), {
|
|
798
799
|
size: 12,
|
|
799
800
|
"stroke-width": 2
|
|
800
|
-
})], 10,
|
|
801
|
+
})], 10, cn),
|
|
801
802
|
b("input", {
|
|
802
803
|
type: "number",
|
|
803
|
-
class: o(
|
|
804
|
+
class: o(xn),
|
|
804
805
|
value: e.modelValue.left,
|
|
805
806
|
"aria-label": h(s).spacingControl.left,
|
|
806
807
|
min: "0",
|
|
807
808
|
onInput: n[4] ||= (e) => f("left", Number(e.target.value))
|
|
808
|
-
}, null, 40,
|
|
809
|
+
}, null, 40, ln),
|
|
809
810
|
b("button", {
|
|
810
811
|
"aria-label": h(s).spacingControl.increaseLeft,
|
|
811
|
-
class: o([
|
|
812
|
+
class: o([bn, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
812
813
|
onClick: n[5] ||= (e) => d("left", 1)
|
|
813
814
|
}, [p(h(Q), {
|
|
814
815
|
size: 12,
|
|
815
816
|
"stroke-width": 2
|
|
816
|
-
})], 10,
|
|
817
|
+
})], 10, un)
|
|
817
818
|
]),
|
|
818
819
|
b("button", {
|
|
819
820
|
class: o(["tpl:flex tpl:h-8 tpl:w-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", l.value ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
|
|
820
821
|
"aria-label": l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
|
|
821
822
|
title: l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
|
|
822
823
|
onClick: g
|
|
823
|
-
}, [l.value ? (a(), w(h(
|
|
824
|
+
}, [l.value ? (a(), w(h(Ct), {
|
|
824
825
|
key: 0,
|
|
825
826
|
size: 14,
|
|
826
827
|
"stroke-width": 2
|
|
827
|
-
})) : (a(), w(h(
|
|
828
|
+
})) : (a(), w(h(St), {
|
|
828
829
|
key: 1,
|
|
829
830
|
size: 14,
|
|
830
831
|
"stroke-width": 2
|
|
831
|
-
}))], 10,
|
|
832
|
-
b("div",
|
|
832
|
+
}))], 10, dn),
|
|
833
|
+
b("div", fn, [
|
|
833
834
|
b("button", {
|
|
834
835
|
"aria-label": h(s).spacingControl.decreaseRight,
|
|
835
|
-
class: o([
|
|
836
|
+
class: o([bn, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
836
837
|
onClick: n[6] ||= (e) => d("right", -1)
|
|
837
838
|
}, [p(h(tt), {
|
|
838
839
|
size: 12,
|
|
839
840
|
"stroke-width": 2
|
|
840
|
-
})], 10,
|
|
841
|
+
})], 10, pn),
|
|
841
842
|
b("input", {
|
|
842
843
|
type: "number",
|
|
843
|
-
class: o(
|
|
844
|
+
class: o(xn),
|
|
844
845
|
value: e.modelValue.right,
|
|
845
846
|
"aria-label": h(s).spacingControl.right,
|
|
846
847
|
min: "0",
|
|
847
848
|
onInput: n[7] ||= (e) => f("right", Number(e.target.value))
|
|
848
|
-
}, null, 40,
|
|
849
|
+
}, null, 40, mn),
|
|
849
850
|
b("button", {
|
|
850
851
|
"aria-label": h(s).spacingControl.increaseRight,
|
|
851
|
-
class: o([
|
|
852
|
+
class: o([bn, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
852
853
|
onClick: n[8] ||= (e) => d("right", 1)
|
|
853
854
|
}, [p(h(Q), {
|
|
854
855
|
size: 12,
|
|
855
856
|
"stroke-width": 2
|
|
856
|
-
})], 10,
|
|
857
|
+
})], 10, hn)
|
|
857
858
|
])
|
|
858
859
|
]),
|
|
859
|
-
b("div",
|
|
860
|
+
b("div", gn, [
|
|
860
861
|
b("button", {
|
|
861
862
|
"aria-label": h(s).spacingControl.decreaseBottom,
|
|
862
|
-
class: o([
|
|
863
|
+
class: o([bn, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
863
864
|
onClick: n[9] ||= (e) => d("bottom", -1)
|
|
864
865
|
}, [p(h(tt), {
|
|
865
866
|
size: 12,
|
|
866
867
|
"stroke-width": 2
|
|
867
|
-
})], 10,
|
|
868
|
+
})], 10, _n),
|
|
868
869
|
b("input", {
|
|
869
870
|
type: "number",
|
|
870
|
-
class: o(
|
|
871
|
+
class: o(xn),
|
|
871
872
|
value: e.modelValue.bottom,
|
|
872
873
|
"aria-label": h(s).spacingControl.bottom,
|
|
873
874
|
min: "0",
|
|
874
875
|
onInput: n[10] ||= (e) => f("bottom", Number(e.target.value))
|
|
875
|
-
}, null, 40,
|
|
876
|
+
}, null, 40, vn),
|
|
876
877
|
b("button", {
|
|
877
878
|
"aria-label": h(s).spacingControl.increaseBottom,
|
|
878
|
-
class: o([
|
|
879
|
+
class: o([bn, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
879
880
|
onClick: n[11] ||= (e) => d("bottom", 1)
|
|
880
881
|
}, [p(h(Q), {
|
|
881
882
|
size: 12,
|
|
882
883
|
"stroke-width": 2
|
|
883
|
-
})], 10,
|
|
884
|
+
})], 10, yn)
|
|
884
885
|
])
|
|
885
886
|
])]),
|
|
886
887
|
_: 1
|
|
@@ -888,7 +889,7 @@ var xt = U({
|
|
|
888
889
|
}
|
|
889
890
|
}), [["__scopeId", "data-v-94c2e6ff"]]);
|
|
890
891
|
// src/composables/useNaturalImageSize.ts
|
|
891
|
-
function
|
|
892
|
+
function Cn(e) {
|
|
892
893
|
let n = _(null), r = () => {};
|
|
893
894
|
return t(e, (e) => {
|
|
894
895
|
r(), n.value = null, e && (r = qe(e, (e) => {
|
|
@@ -896,11 +897,11 @@ function Sn(e) {
|
|
|
896
897
|
}));
|
|
897
898
|
}, { immediate: !0 }), n;
|
|
898
899
|
}
|
|
899
|
-
function
|
|
900
|
+
function wn() {
|
|
900
901
|
let e = E(Ce, null);
|
|
901
|
-
return async (t) => Ke(e ? await
|
|
902
|
+
return async (t) => Ke(e ? await Tn(e, t) : t);
|
|
902
903
|
}
|
|
903
|
-
function
|
|
904
|
+
function Tn(e, n) {
|
|
904
905
|
let r = (e) => typeof e == "string" && e.length > 0 ? e : n;
|
|
905
906
|
e.lookup(n);
|
|
906
907
|
let i = e.get(n);
|
|
@@ -911,13 +912,13 @@ function wn(e, n) {
|
|
|
911
912
|
}) : Promise.resolve(r(i));
|
|
912
913
|
}
|
|
913
914
|
// src/components/toolbar/BackgroundImageControl.vue?vue&type=script&setup=true&lang.ts
|
|
914
|
-
var
|
|
915
|
+
var En = { class: "tpl:space-y-3.5" }, Dn = ["data-testid"], On = ["data-testid"], kn = ["data-testid"], An = ["aria-label", "data-testid"], jn = [
|
|
915
916
|
"aria-label",
|
|
916
917
|
"title",
|
|
917
918
|
"aria-pressed",
|
|
918
919
|
"data-testid",
|
|
919
920
|
"onClick"
|
|
920
|
-
],
|
|
921
|
+
], Mn = ["data-testid"], Nn = /* @__PURE__ */ D({
|
|
921
922
|
__name: "BackgroundImageControl",
|
|
922
923
|
props: {
|
|
923
924
|
hideLabel: { type: Boolean },
|
|
@@ -928,7 +929,7 @@ var Tn = { class: "tpl:space-y-3.5" }, En = ["data-testid"], Dn = ["data-testid"
|
|
|
928
929
|
},
|
|
929
930
|
emits: ["update:modelValue"],
|
|
930
931
|
setup(e, { emit: t }) {
|
|
931
|
-
let n = e, i = t, { t: c } = W(), l = E(Se, Z.liquid), u = m(() => typeof n.modelValue?.url == "string" ? n.modelValue.url : ""), d = m(() => u.value.trim() !== ""), x =
|
|
932
|
+
let n = e, i = t, { t: c } = W(), l = E(Se, Z.liquid), u = m(() => typeof n.modelValue?.url == "string" ? n.modelValue.url : ""), d = m(() => u.value.trim() !== ""), x = wn(), C;
|
|
932
933
|
f(() => clearTimeout(C));
|
|
933
934
|
function T(e) {
|
|
934
935
|
n.measure && !G(e, l) && (C = setTimeout(async () => {
|
|
@@ -993,7 +994,7 @@ var Tn = { class: "tpl:space-y-3.5" }, En = ["data-testid"], Dn = ["data-testid"
|
|
|
993
994
|
blocked: () => G(u.value, l),
|
|
994
995
|
apply: (e) => D(e.url, Le(e.width, e.height))
|
|
995
996
|
});
|
|
996
|
-
return (t, n) => (a(), v("div",
|
|
997
|
+
return (t, n) => (a(), v("div", En, [b("div", null, [e.hideLabel ? g("", !0) : (a(), v("label", {
|
|
997
998
|
key: 0,
|
|
998
999
|
class: o(h(V))
|
|
999
1000
|
}, r(h(c).blockSettings.backgroundImage), 3)), b("div", {
|
|
@@ -1026,8 +1027,8 @@ var Tn = { class: "tpl:space-y-3.5" }, En = ["data-testid"], Dn = ["data-testid"
|
|
|
1026
1027
|
}, [p(h(it), {
|
|
1027
1028
|
size: 14,
|
|
1028
1029
|
"stroke-width": 1.5
|
|
1029
|
-
}), y(" " + r(h(c).image.browseMedia), 1)], 8,
|
|
1030
|
-
], 8,
|
|
1030
|
+
}), y(" " + r(h(c).image.browseMedia), 1)], 8, On)) : g("", !0)
|
|
1031
|
+
], 8, Dn)]), d.value && e.modelValue ? (a(), v(S, { key: 0 }, [
|
|
1031
1032
|
e.heroMode ? g("", !0) : (a(), v("div", {
|
|
1032
1033
|
key: 0,
|
|
1033
1034
|
"data-testid": `${e.testidPrefix}-bg-size`
|
|
@@ -1035,7 +1036,7 @@ var Tn = { class: "tpl:space-y-3.5" }, En = ["data-testid"], Dn = ["data-testid"
|
|
|
1035
1036
|
options: k.value,
|
|
1036
1037
|
"model-value": e.modelValue.size,
|
|
1037
1038
|
"onUpdate:modelValue": n[1] ||= (e) => O({ size: e })
|
|
1038
|
-
}, null, 8, ["options", "model-value"])], 8,
|
|
1039
|
+
}, null, 8, ["options", "model-value"])], 8, kn)),
|
|
1039
1040
|
b("div", null, [b("label", { class: o(h(V)) }, r(h(c).blockSettings.backgroundPosition), 3), b("div", {
|
|
1040
1041
|
role: "group",
|
|
1041
1042
|
"aria-label": h(c).blockSettings.backgroundPosition,
|
|
@@ -1053,7 +1054,7 @@ var Tn = { class: "tpl:space-y-3.5" }, En = ["data-testid"], Dn = ["data-testid"
|
|
|
1053
1054
|
x: t.x,
|
|
1054
1055
|
y: t.y
|
|
1055
1056
|
} })
|
|
1056
|
-
}, [b("span", { class: o(["tpl:block tpl:h-1.5 tpl:w-1.5 tpl:rounded-full", M(t) ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-text-dim)]"]) }, null, 2)], 10,
|
|
1057
|
+
}, [b("span", { class: o(["tpl:block tpl:h-1.5 tpl:w-1.5 tpl:rounded-full", M(t) ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-text-dim)]"]) }, null, 2)], 10, jn))), 128))], 8, An)]),
|
|
1057
1058
|
e.heroMode ? g("", !0) : (a(), v("div", {
|
|
1058
1059
|
key: 1,
|
|
1059
1060
|
"data-testid": `${e.testidPrefix}-bg-repeat`
|
|
@@ -1062,10 +1063,10 @@ var Tn = { class: "tpl:space-y-3.5" }, En = ["data-testid"], Dn = ["data-testid"
|
|
|
1062
1063
|
"model-value": e.modelValue.repeat,
|
|
1063
1064
|
label: h(c).blockSettings.backgroundRepeat,
|
|
1064
1065
|
"onUpdate:modelValue": n[2] ||= (e) => O({ repeat: e })
|
|
1065
|
-
}, null, 8, ["model-value", "label"])], 8,
|
|
1066
|
+
}, null, 8, ["model-value", "label"])], 8, Mn))
|
|
1066
1067
|
], 64)) : g("", !0)]));
|
|
1067
1068
|
}
|
|
1068
|
-
}),
|
|
1069
|
+
}), Pn = ["data-testid"], Fn = ["data-testid"], In = /* @__PURE__ */ D({
|
|
1069
1070
|
__name: "CollapsibleSection",
|
|
1070
1071
|
props: {
|
|
1071
1072
|
title: {},
|
|
@@ -1084,29 +1085,29 @@ var Tn = { class: "tpl:space-y-3.5" }, En = ["data-testid"], Dn = ["data-testid"
|
|
|
1084
1085
|
class: o(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
1085
1086
|
size: 12,
|
|
1086
1087
|
"stroke-width": 2
|
|
1087
|
-
}, null, 8, ["class"]), b("span", null, r(e.title), 1)], 8,
|
|
1088
|
+
}, null, 8, ["class"]), b("span", null, r(e.title), 1)], 8, Pn), d(b("div", {
|
|
1088
1089
|
class: "tpl:mt-3",
|
|
1089
1090
|
"data-testid": e.headerTestId ? `${e.headerTestId}-content` : void 0
|
|
1090
|
-
}, [n(t.$slots, "default")], 8,
|
|
1091
|
+
}, [n(t.$slots, "default")], 8, Fn), [[k, e.open]])], 2));
|
|
1091
1092
|
}
|
|
1092
|
-
}),
|
|
1093
|
+
}), Ln = {
|
|
1093
1094
|
key: 0,
|
|
1094
1095
|
"data-testid": "section-hero-columns-note",
|
|
1095
1096
|
class: "tpl:mt-3.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1096
|
-
},
|
|
1097
|
+
}, Rn = {
|
|
1097
1098
|
key: 1,
|
|
1098
1099
|
"data-testid": "section-hero",
|
|
1099
1100
|
class: "tpl:mt-3.5 tpl:space-y-3.5"
|
|
1100
|
-
},
|
|
1101
|
+
}, zn = { "data-testid": "section-hero-height" }, Bn = {
|
|
1101
1102
|
key: 0,
|
|
1102
1103
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1103
|
-
},
|
|
1104
|
+
}, Vn = {
|
|
1104
1105
|
key: 1,
|
|
1105
1106
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1106
|
-
},
|
|
1107
|
+
}, Hn = {
|
|
1107
1108
|
key: 1,
|
|
1108
1109
|
"data-testid": "section-hero-align"
|
|
1109
|
-
},
|
|
1110
|
+
}, Un = 300, Wn = /* @__PURE__ */ D({
|
|
1110
1111
|
__name: "HeroControl",
|
|
1111
1112
|
props: { section: {} },
|
|
1112
1113
|
emits: ["update"],
|
|
@@ -1114,7 +1115,7 @@ var Tn = { class: "tpl:space-y-3.5" }, En = ["data-testid"], Dn = ["data-testid"
|
|
|
1114
1115
|
function n(e) {
|
|
1115
1116
|
return typeof e == "number" && Number.isFinite(e) && e >= 1;
|
|
1116
1117
|
}
|
|
1117
|
-
let i = e, s = t, { t: c } = W(), l = E(Se, Z.liquid), u = E(Pe, null), d = E(Ee, void 0), f =
|
|
1118
|
+
let i = e, s = t, { t: c } = W(), l = E(Se, Z.liquid), u = E(Pe, null), d = E(Ee, void 0), f = wn(), _ = m(() => typeof i.section.backgroundImage?.url == "string" ? i.section.backgroundImage.url : ""), y = m(() => _.value.trim() !== ""), x = m(() => G(_.value, l)), S = m(() => i.section.hero), C = m(() => i.section.columns === "1"), T = m(() => S.value ? n(S.value.height) ? "fixed" : "image" : "fit"), D = m(() => n(S.value?.height) ? S.value.height : Un), O = m(() => [
|
|
1118
1119
|
{
|
|
1119
1120
|
value: "fit",
|
|
1120
1121
|
label: c.blockSettings.heroHeightFit
|
|
@@ -1159,7 +1160,7 @@ var Tn = { class: "tpl:space-y-3.5" }, En = ["data-testid"], Dn = ["data-testid"
|
|
|
1159
1160
|
s("update", { hero: void 0 });
|
|
1160
1161
|
return;
|
|
1161
1162
|
}
|
|
1162
|
-
let n = de(i.section.backgroundImage), r = n === null ?
|
|
1163
|
+
let n = de(i.section.backgroundImage), r = n === null ? Un : Math.round(j() * n);
|
|
1163
1164
|
s("update", { hero: {
|
|
1164
1165
|
height: r,
|
|
1165
1166
|
verticalAlign: t
|
|
@@ -1186,17 +1187,17 @@ var Tn = { class: "tpl:space-y-3.5" }, En = ["data-testid"], Dn = ["data-testid"
|
|
|
1186
1187
|
verticalAlign: e
|
|
1187
1188
|
} });
|
|
1188
1189
|
}
|
|
1189
|
-
return (e, t) => !C.value && S.value ? (a(), v("p",
|
|
1190
|
-
b("div",
|
|
1190
|
+
return (e, t) => !C.value && S.value ? (a(), v("p", Ln, r(h(c).section.heroNeedsOneColumn), 1)) : C.value && (y.value || S.value) ? (a(), v("div", Rn, [
|
|
1191
|
+
b("div", zn, [
|
|
1191
1192
|
b("label", { class: o(h(V)) }, r(h(c).blockSettings.heroHeight), 3),
|
|
1192
1193
|
p($, {
|
|
1193
1194
|
options: O.value,
|
|
1194
1195
|
"model-value": T.value,
|
|
1195
1196
|
"onUpdate:modelValue": M
|
|
1196
1197
|
}, null, 8, ["options", "model-value"]),
|
|
1197
|
-
x.value ? (a(), v("p",
|
|
1198
|
+
x.value ? (a(), v("p", Bn, r(h(c).blockSettings.heroMatchImageMergeTag), 1)) : A.value ? (a(), v("p", Vn, r(h(c).blockSettings.heroSizeUnknown), 1)) : g("", !0)
|
|
1198
1199
|
]),
|
|
1199
|
-
T.value === "fixed" ? (a(), w(
|
|
1200
|
+
T.value === "fixed" ? (a(), w(kt, {
|
|
1200
1201
|
key: 0,
|
|
1201
1202
|
"model-value": D.value,
|
|
1202
1203
|
min: 1,
|
|
@@ -1204,24 +1205,24 @@ var Tn = { class: "tpl:space-y-3.5" }, En = ["data-testid"], Dn = ["data-testid"
|
|
|
1204
1205
|
testid: "section-hero-height-px",
|
|
1205
1206
|
"onUpdate:modelValue": P
|
|
1206
1207
|
}, null, 8, ["model-value"])) : g("", !0),
|
|
1207
|
-
S.value ? (a(), v("div",
|
|
1208
|
+
S.value ? (a(), v("div", Hn, [b("label", { class: o(h(V)) }, r(h(c).blockSettings.heroAlign), 3), p($, {
|
|
1208
1209
|
options: k.value,
|
|
1209
1210
|
"model-value": S.value.verticalAlign,
|
|
1210
1211
|
"onUpdate:modelValue": F
|
|
1211
1212
|
}, null, 8, ["options", "model-value"])])) : g("", !0)
|
|
1212
1213
|
])) : g("", !0);
|
|
1213
1214
|
}
|
|
1214
|
-
}),
|
|
1215
|
+
}), Gn = /* @__PURE__ */ new Set([
|
|
1215
1216
|
"fullWidth",
|
|
1216
1217
|
"backgroundColor",
|
|
1217
1218
|
"backgroundImage",
|
|
1218
1219
|
"padding",
|
|
1219
1220
|
"borderRadius"
|
|
1220
1221
|
]);
|
|
1221
|
-
function
|
|
1222
|
+
function Kn(e) {
|
|
1222
1223
|
return typeof e == "string" && e !== "";
|
|
1223
1224
|
}
|
|
1224
|
-
function
|
|
1225
|
+
function qn(e) {
|
|
1225
1226
|
return e ? [
|
|
1226
1227
|
e.top,
|
|
1227
1228
|
e.right,
|
|
@@ -1229,40 +1230,40 @@ function Kn(e) {
|
|
|
1229
1230
|
e.left
|
|
1230
1231
|
].some((e) => e !== 0) : !1;
|
|
1231
1232
|
}
|
|
1232
|
-
function qn(e) {
|
|
1233
|
-
return Gn(e.styles.backgroundColor) || !!e.backgroundImage;
|
|
1234
|
-
}
|
|
1235
1233
|
function Jn(e) {
|
|
1236
|
-
return
|
|
1234
|
+
return Kn(e.styles.backgroundColor) || !!e.backgroundImage;
|
|
1235
|
+
}
|
|
1236
|
+
function Yn(e) {
|
|
1237
|
+
return e.fullWidth !== !0 || qn(e.padding) || pe(e.borderRadius) !== null ? !1 : Object.keys(e).every((e) => Gn.has(e));
|
|
1237
1238
|
}
|
|
1238
|
-
function
|
|
1239
|
+
function Xn(e, t = {}) {
|
|
1239
1240
|
return e.wrapper ? !1 : t.sectionWrapper === !1 || t.layout !== void 0 && le(t.layout);
|
|
1240
1241
|
}
|
|
1241
|
-
function
|
|
1242
|
+
function Zn(e) {
|
|
1242
1243
|
let t = {};
|
|
1243
|
-
return
|
|
1244
|
+
return Kn(e.styles.backgroundColor) && (t.backgroundColor = e.styles.backgroundColor), e.backgroundImage && (t.backgroundImage = e.backgroundImage), t;
|
|
1244
1245
|
}
|
|
1245
|
-
function
|
|
1246
|
+
function Qn(e) {
|
|
1246
1247
|
let t = { ...e.styles };
|
|
1247
1248
|
return delete t.backgroundColor, t;
|
|
1248
1249
|
}
|
|
1249
|
-
function
|
|
1250
|
+
function $n(e, t) {
|
|
1250
1251
|
if (t) return e.wrapper ? { wrapper: {
|
|
1251
1252
|
...e.wrapper,
|
|
1252
1253
|
fullWidth: !0
|
|
1253
1254
|
} } : {
|
|
1254
1255
|
wrapper: {
|
|
1255
1256
|
fullWidth: !0,
|
|
1256
|
-
...
|
|
1257
|
+
...Zn(e)
|
|
1257
1258
|
},
|
|
1258
|
-
styles:
|
|
1259
|
+
styles: Qn(e),
|
|
1259
1260
|
backgroundImage: void 0
|
|
1260
1261
|
};
|
|
1261
1262
|
let n = e.wrapper;
|
|
1262
1263
|
if (!n) return {};
|
|
1263
|
-
if (
|
|
1264
|
+
if (Yn(n) && !Jn(e)) {
|
|
1264
1265
|
let t = { ...e.styles };
|
|
1265
|
-
return
|
|
1266
|
+
return Kn(n.backgroundColor) && (t.backgroundColor = n.backgroundColor), {
|
|
1266
1267
|
wrapper: void 0,
|
|
1267
1268
|
styles: t,
|
|
1268
1269
|
backgroundImage: n.backgroundImage
|
|
@@ -1273,33 +1274,33 @@ function Qn(e, t) {
|
|
|
1273
1274
|
fullWidth: !1
|
|
1274
1275
|
} };
|
|
1275
1276
|
}
|
|
1276
|
-
function
|
|
1277
|
+
function er(e) {
|
|
1277
1278
|
let t = e.wrapper;
|
|
1278
|
-
return t &&
|
|
1279
|
+
return t && Yn(t) && !Jn(e) ? $n(e, !1) : { wrapper: void 0 };
|
|
1279
1280
|
}
|
|
1280
1281
|
// src/components/toolbar/CommonBlockSettings.vue?vue&type=script&setup=true&lang.ts
|
|
1281
|
-
var
|
|
1282
|
+
var tr = { class: "tpl:space-y-2" }, nr = { class: "tpl:flex tpl:items-center tpl:gap-2" }, rr = {
|
|
1282
1283
|
key: 0,
|
|
1283
1284
|
class: "tpl:space-y-2"
|
|
1284
|
-
},
|
|
1285
|
+
}, ir = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, ar = {
|
|
1285
1286
|
key: 0,
|
|
1286
1287
|
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
1287
|
-
},
|
|
1288
|
+
}, or = { class: "tpl:flex tpl:gap-2" }, sr = ["disabled"], cr = ["disabled"], lr = ["disabled"], ur = {
|
|
1288
1289
|
key: 1,
|
|
1289
1290
|
class: "tpl:space-y-2"
|
|
1290
|
-
},
|
|
1291
|
+
}, dr = ["value"], fr = { value: "" }, pr = ["label"], mr = ["value"], hr = ["value"], gr = {
|
|
1291
1292
|
key: 0,
|
|
1292
1293
|
value: "__custom__"
|
|
1293
|
-
},
|
|
1294
|
+
}, _r = {
|
|
1294
1295
|
key: 0,
|
|
1295
1296
|
class: "tpl:space-y-2"
|
|
1296
|
-
},
|
|
1297
|
+
}, vr = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, yr = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, br = { class: "tpl:flex tpl:justify-end" }, xr = ["disabled"], Sr = {
|
|
1297
1298
|
key: 0,
|
|
1298
1299
|
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
1299
|
-
},
|
|
1300
|
+
}, Cr = { class: "tpl:space-y-1" }, wr = { class: "tpl:m-0 tpl:overflow-x-auto tpl:rounded tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]" }, Tr = {
|
|
1300
1301
|
key: 0,
|
|
1301
1302
|
class: "tpl:m-0 tpl:overflow-x-auto tpl:rounded tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
1302
|
-
},
|
|
1303
|
+
}, Er = /* @__PURE__ */ D({
|
|
1303
1304
|
__name: "CommonBlockSettings",
|
|
1304
1305
|
props: {
|
|
1305
1306
|
block: {},
|
|
@@ -1307,12 +1308,12 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1307
1308
|
},
|
|
1308
1309
|
emits: ["update"],
|
|
1309
1310
|
setup(e, { emit: n }) {
|
|
1310
|
-
let c = e, f = n, { t: x, format: T } = W(), D = E(Pe, null), k = E(Te, void 0), j = m(() => D?.activeLocale?.value), N = m(() => !!(j.value && D?.selectedBlock?.value?.l10n?.[j.value]?.hidden)), I = E(Oe, []), L = E(Me, !1), R = E(Ee, void 0), z = E(xe, void 0), B = m(() => c.block.type === "section" || c.block.type === "wrapper"), te = m(() => c.block.type === "wrapper" ? c.block.fullWidth === !0 : c.block.type === "section" && c.block.wrapper?.fullWidth === !0), ne = m(() => c.block.type === "section" &&
|
|
1311
|
+
let c = e, f = n, { t: x, format: T } = W(), D = E(Pe, null), k = E(Te, void 0), j = m(() => D?.activeLocale?.value), N = m(() => !!(j.value && D?.selectedBlock?.value?.l10n?.[j.value]?.hidden)), I = E(Oe, []), L = E(Me, !1), R = E(Ee, void 0), z = E(xe, void 0), B = m(() => c.block.type === "section" || c.block.type === "wrapper"), te = m(() => c.block.type === "wrapper" ? c.block.fullWidth === !0 : c.block.type === "section" && c.block.wrapper?.fullWidth === !0), ne = m(() => c.block.type === "section" && Xn(c.block, {
|
|
1311
1312
|
sectionWrapper: z,
|
|
1312
1313
|
layout: R
|
|
1313
1314
|
})), V = m(() => c.block.type === "wrapper" ? "layout-wrapper-full-width" : "section-background-full-width");
|
|
1314
1315
|
function re(e) {
|
|
1315
|
-
c.block.type === "wrapper" ? f("update", { fullWidth: e }) : c.block.type === "section" && f("update",
|
|
1316
|
+
c.block.type === "wrapper" ? f("update", { fullWidth: e }) : c.block.type === "section" && f("update", $n(c.block, e));
|
|
1316
1317
|
}
|
|
1317
1318
|
let U = m(() => c.block.type === "section" && c.block.wrapper?.fullWidth === !0), ie = m(() => U.value ? "wrapper.backgroundColor" : "styles.backgroundColor"), ae = m(() => U.value ? "wrapper.backgroundImage" : "backgroundImage"), oe = m(() => {
|
|
1318
1319
|
let e = c.block;
|
|
@@ -1423,13 +1424,13 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1423
1424
|
t[e] = !t[e], f("update", { visibility: t });
|
|
1424
1425
|
}
|
|
1425
1426
|
return (t, n) => (a(), v("div", { class: o(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1426
|
-
p(
|
|
1427
|
+
p(In, {
|
|
1427
1428
|
title: h(x).blockSettings.spacing,
|
|
1428
1429
|
open: q.has("spacing"),
|
|
1429
1430
|
"no-border": e.isFirstSection,
|
|
1430
1431
|
onToggle: n[1] ||= (e) => he("spacing")
|
|
1431
1432
|
}, {
|
|
1432
|
-
default: u(() => [p(
|
|
1433
|
+
default: u(() => [p(Sn, {
|
|
1433
1434
|
path: "styles.padding",
|
|
1434
1435
|
label: h(x).blockSettings.padding,
|
|
1435
1436
|
"model-value": e.block.styles.padding,
|
|
@@ -1441,7 +1442,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1441
1442
|
"open",
|
|
1442
1443
|
"no-border"
|
|
1443
1444
|
]),
|
|
1444
|
-
p(
|
|
1445
|
+
p(In, {
|
|
1445
1446
|
title: h(x).blockSettings.background,
|
|
1446
1447
|
open: q.has("bg"),
|
|
1447
1448
|
"header-test-id": "block-settings-background",
|
|
@@ -1487,7 +1488,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1487
1488
|
path: ae.value,
|
|
1488
1489
|
label: h(x).blockSettings.backgroundImage
|
|
1489
1490
|
}, {
|
|
1490
|
-
default: u(() => [p(
|
|
1491
|
+
default: u(() => [p(Nn, {
|
|
1491
1492
|
"hide-label": "",
|
|
1492
1493
|
class: "tpl:mt-3.5",
|
|
1493
1494
|
"model-value": ce.value,
|
|
@@ -1516,7 +1517,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1516
1517
|
path: "hero",
|
|
1517
1518
|
label: h(x).blocks.hero
|
|
1518
1519
|
}, {
|
|
1519
|
-
default: u(() => [p(
|
|
1520
|
+
default: u(() => [p(Wn, {
|
|
1520
1521
|
section: e.block,
|
|
1521
1522
|
onUpdate: n[3] ||= (e) => f("update", e)
|
|
1522
1523
|
}, null, 8, ["section"])]),
|
|
@@ -1525,12 +1526,12 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1525
1526
|
]),
|
|
1526
1527
|
_: 1
|
|
1527
1528
|
}, 8, ["title", "open"]),
|
|
1528
|
-
p(
|
|
1529
|
+
p(In, {
|
|
1529
1530
|
title: h(x).blockSettings.display,
|
|
1530
1531
|
open: q.has("display"),
|
|
1531
1532
|
onToggle: n[6] ||= (e) => he("display")
|
|
1532
1533
|
}, {
|
|
1533
|
-
default: u(() => [b("div",
|
|
1534
|
+
default: u(() => [b("div", tr, [j.value && h(k) ? (a(), w(P, {
|
|
1534
1535
|
key: 0,
|
|
1535
1536
|
"data-testid": "locale-hide",
|
|
1536
1537
|
disabled: !h(k).locales.includes(j.value),
|
|
@@ -1546,7 +1547,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1546
1547
|
path: `visibility.${e.key}`,
|
|
1547
1548
|
label: h(x).blockSettings[e.labelKey]
|
|
1548
1549
|
}, {
|
|
1549
|
-
label: u(() => [b("span",
|
|
1550
|
+
label: u(() => [b("span", nr, [(a(), w(i(e.icon), {
|
|
1550
1551
|
size: 14,
|
|
1551
1552
|
"stroke-width": 1.5
|
|
1552
1553
|
})), y(" " + r(h(x).blockSettings[e.labelKey]), 1)])]),
|
|
@@ -1567,29 +1568,29 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1567
1568
|
}, 1032, ["path", "label"])), 64))])]),
|
|
1568
1569
|
_: 1
|
|
1569
1570
|
}, 8, ["title", "open"]),
|
|
1570
|
-
ge.value ? (a(), w(
|
|
1571
|
+
ge.value ? (a(), w(In, {
|
|
1571
1572
|
key: 0,
|
|
1572
1573
|
"header-test-id": "display-condition-section",
|
|
1573
1574
|
title: h(x).blockSettings.displayCondition,
|
|
1574
1575
|
open: q.has("condition"),
|
|
1575
1576
|
onToggle: n[11] ||= (e) => he("condition")
|
|
1576
1577
|
}, {
|
|
1577
|
-
default: u(() => [h(de) ? (a(), v("div",
|
|
1578
|
-
b("p",
|
|
1579
|
-
e.block.displayCondition.description ? (a(), v("p",
|
|
1580
|
-
b("div",
|
|
1578
|
+
default: u(() => [h(de) ? (a(), v("div", rr, [e.block.displayCondition ? (a(), v(S, { key: 0 }, [
|
|
1579
|
+
b("p", ir, r(e.block.displayCondition.label), 1),
|
|
1580
|
+
e.block.displayCondition.description ? (a(), v("p", ar, r(e.block.displayCondition.description), 1)) : g("", !0),
|
|
1581
|
+
b("div", or, [b("button", {
|
|
1581
1582
|
type: "button",
|
|
1582
1583
|
"data-testid": "display-condition-edit",
|
|
1583
1584
|
class: o(h(F)),
|
|
1584
1585
|
disabled: K.value,
|
|
1585
1586
|
onClick: ye
|
|
1586
|
-
}, r(h(x).blockSettings.editCondition), 11,
|
|
1587
|
+
}, r(h(x).blockSettings.editCondition), 11, sr), b("button", {
|
|
1587
1588
|
type: "button",
|
|
1588
1589
|
"data-testid": "display-condition-remove",
|
|
1589
1590
|
class: o(h(F)),
|
|
1590
1591
|
disabled: K.value,
|
|
1591
1592
|
onClick: n[7] ||= (e) => f("update", { displayCondition: void 0 })
|
|
1592
|
-
}, r(h(x).blockSettings.removeCondition), 11,
|
|
1593
|
+
}, r(h(x).blockSettings.removeCondition), 11, cr)])
|
|
1593
1594
|
], 64)) : (a(), v("button", {
|
|
1594
1595
|
key: 1,
|
|
1595
1596
|
type: "button",
|
|
@@ -1597,7 +1598,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1597
1598
|
class: o(h(F)),
|
|
1598
1599
|
disabled: K.value,
|
|
1599
1600
|
onClick: ye
|
|
1600
|
-
}, r(h(x).blockSettings.addCondition), 11,
|
|
1601
|
+
}, r(h(x).blockSettings.addCondition), 11, lr))])) : (a(), v("div", ur, [p(A, {
|
|
1601
1602
|
path: "displayCondition",
|
|
1602
1603
|
label: h(x).blockSettings.displayCondition
|
|
1603
1604
|
}, {
|
|
@@ -1619,43 +1620,43 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1619
1620
|
n && f("update", { displayCondition: n });
|
|
1620
1621
|
}
|
|
1621
1622
|
}, [
|
|
1622
|
-
b("option",
|
|
1623
|
+
b("option", fr, r(h(x).blockSettings.noCondition), 1),
|
|
1623
1624
|
(a(!0), v(S, null, s(Ce.value, (e, t) => (a(), v(S, { key: t }, [t ? (a(), v("optgroup", {
|
|
1624
1625
|
key: 0,
|
|
1625
1626
|
label: String(t)
|
|
1626
1627
|
}, [(a(!0), v(S, null, s(e, (e) => (a(), v("option", {
|
|
1627
1628
|
key: e.label,
|
|
1628
1629
|
value: e.label
|
|
1629
|
-
}, r(e.label), 9,
|
|
1630
|
+
}, r(e.label), 9, mr))), 128))], 8, pr)) : (a(!0), v(S, { key: 1 }, s(e, (e) => (a(), v("option", {
|
|
1630
1631
|
key: e.label,
|
|
1631
1632
|
value: e.label
|
|
1632
|
-
}, r(e.label), 9,
|
|
1633
|
-
h(L) ? (a(), v("option",
|
|
1634
|
-
], 42,
|
|
1633
|
+
}, r(e.label), 9, hr))), 128))], 64))), 128)),
|
|
1634
|
+
h(L) ? (a(), v("option", gr, r(h(x).blockSettings.customCondition), 1)) : g("", !0)
|
|
1635
|
+
], 42, dr)]),
|
|
1635
1636
|
_: 1
|
|
1636
|
-
}, 8, ["label"]), J.value || Z.value ? (a(), v("div",
|
|
1637
|
-
b("div", null, [b("label",
|
|
1637
|
+
}, 8, ["label"]), J.value || Z.value ? (a(), v("div", _r, [
|
|
1638
|
+
b("div", null, [b("label", vr, r(h(x).blockSettings.customConditionBefore), 1), d(b("textarea", {
|
|
1638
1639
|
"onUpdate:modelValue": n[9] ||= (e) => Y.value = e,
|
|
1639
1640
|
rows: "2",
|
|
1640
1641
|
class: o(h(H))
|
|
1641
1642
|
}, null, 2), [[O, Y.value]])]),
|
|
1642
|
-
b("div", null, [b("label",
|
|
1643
|
+
b("div", null, [b("label", yr, r(h(x).blockSettings.customConditionAfter), 1), d(b("textarea", {
|
|
1643
1644
|
"onUpdate:modelValue": n[10] ||= (e) => X.value = e,
|
|
1644
1645
|
rows: "2",
|
|
1645
1646
|
class: o(h(H))
|
|
1646
1647
|
}, null, 2), [[O, X.value]])]),
|
|
1647
|
-
b("div",
|
|
1648
|
+
b("div", br, [b("button", {
|
|
1648
1649
|
type: "button",
|
|
1649
1650
|
class: o(h(ee)),
|
|
1650
1651
|
disabled: !Y.value.trim(),
|
|
1651
1652
|
onClick: Se
|
|
1652
|
-
}, r(h(x).blockSettings.applyCondition), 11,
|
|
1653
|
-
])) : e.block.displayCondition && !Z.value ? (a(), v(S, { key: 1 }, [e.block.displayCondition.description ? (a(), v("p",
|
|
1653
|
+
}, r(h(x).blockSettings.applyCondition), 11, xr)])
|
|
1654
|
+
])) : e.block.displayCondition && !Z.value ? (a(), v(S, { key: 1 }, [e.block.displayCondition.description ? (a(), v("p", Sr, r(e.block.displayCondition.description), 1)) : g("", !0), b("div", Cr, [b("pre", wr, r(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (a(), v("pre", Tr, r(e.block.displayCondition.after), 1)) : g("", !0)])], 64)) : g("", !0)]))]),
|
|
1654
1655
|
_: 1
|
|
1655
1656
|
}, 8, ["title", "open"])) : g("", !0)
|
|
1656
1657
|
], 2));
|
|
1657
1658
|
}
|
|
1658
|
-
}),
|
|
1659
|
+
}), Dr = ["title"], Or = { class: "tpl-sr-only" }, kr = ["title"], Ar = { class: "tpl-sr-only" }, jr = /* @__PURE__ */ D({
|
|
1659
1660
|
__name: "FieldLabel",
|
|
1660
1661
|
props: {
|
|
1661
1662
|
label: {},
|
|
@@ -1669,19 +1670,19 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1669
1670
|
e.readOnly ? (a(), v("span", {
|
|
1670
1671
|
key: 0,
|
|
1671
1672
|
title: h(t).customBlocks.dataSource.readOnlyTooltip
|
|
1672
|
-
}, [p(h(
|
|
1673
|
+
}, [p(h(Ct), {
|
|
1673
1674
|
size: 12,
|
|
1674
1675
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
|
|
1675
1676
|
"aria-hidden": "true"
|
|
1676
|
-
}), b("span",
|
|
1677
|
+
}), b("span", Or, r(h(t).customBlocks.dataSource.readOnlyTooltip), 1)], 8, Dr)) : g("", !0),
|
|
1677
1678
|
e.required ? (a(), v("span", {
|
|
1678
1679
|
key: 1,
|
|
1679
1680
|
class: "tpl:text-[var(--tpl-danger)]",
|
|
1680
1681
|
title: h(t).customBlocks.fields.required
|
|
1681
|
-
}, [i[0] ||= b("span", { "aria-hidden": "true" }, "*", -1), b("span",
|
|
1682
|
+
}, [i[0] ||= b("span", { "aria-hidden": "true" }, "*", -1), b("span", Ar, r(h(t).customBlocks.fields.required), 1)], 8, kr)) : g("", !0)
|
|
1682
1683
|
]));
|
|
1683
1684
|
}
|
|
1684
|
-
}),
|
|
1685
|
+
}), Mr = ["title"], Nr = /* @__PURE__ */ D({
|
|
1685
1686
|
__name: "BooleanField",
|
|
1686
1687
|
props: {
|
|
1687
1688
|
field: {},
|
|
@@ -1706,7 +1707,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1706
1707
|
disabled: e.readOnly,
|
|
1707
1708
|
"onUpdate:modelValue": o[0] ||= (e) => n("update:modelValue", e)
|
|
1708
1709
|
}, {
|
|
1709
|
-
default: u(() => [y(r(e.field.label) + " ", 1), e.readOnly ? (a(), w(h(
|
|
1710
|
+
default: u(() => [y(r(e.field.label) + " ", 1), e.readOnly ? (a(), w(h(Ct), {
|
|
1710
1711
|
key: 0,
|
|
1711
1712
|
size: 12,
|
|
1712
1713
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
@@ -1719,9 +1720,9 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1719
1720
|
"label",
|
|
1720
1721
|
"required",
|
|
1721
1722
|
"disabled"
|
|
1722
|
-
])], 8,
|
|
1723
|
+
])], 8, Mr));
|
|
1723
1724
|
}
|
|
1724
|
-
}),
|
|
1725
|
+
}), Pr = { class: "tpl:mb-3.5" }, Fr = /* @__PURE__ */ D({
|
|
1725
1726
|
__name: "FieldWrapper",
|
|
1726
1727
|
props: {
|
|
1727
1728
|
label: {},
|
|
@@ -1730,10 +1731,10 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1730
1731
|
readOnly: { type: Boolean }
|
|
1731
1732
|
},
|
|
1732
1733
|
setup(e) {
|
|
1733
|
-
return (t, r) => (a(), v("div",
|
|
1734
|
+
return (t, r) => (a(), v("div", Pr, [e.hideLabel ? g("", !0) : (a(), v("label", {
|
|
1734
1735
|
key: 0,
|
|
1735
1736
|
class: o(h(V))
|
|
1736
|
-
}, [p(
|
|
1737
|
+
}, [p(jr, {
|
|
1737
1738
|
label: e.label,
|
|
1738
1739
|
required: e.required,
|
|
1739
1740
|
"read-only": e.readOnly
|
|
@@ -1743,7 +1744,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1743
1744
|
"read-only"
|
|
1744
1745
|
])], 2)), n(t.$slots, "default")]));
|
|
1745
1746
|
}
|
|
1746
|
-
}),
|
|
1747
|
+
}), Ir = /* @__PURE__ */ D({
|
|
1747
1748
|
__name: "ColorField",
|
|
1748
1749
|
props: {
|
|
1749
1750
|
field: {},
|
|
@@ -1754,7 +1755,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1754
1755
|
emits: ["update:modelValue"],
|
|
1755
1756
|
setup(e, { emit: t }) {
|
|
1756
1757
|
let n = e, r = t, { t: i } = W(), o = E(je, ft), s = m(() => Ze(n.field, o));
|
|
1757
|
-
return (t, n) => (a(), w(
|
|
1758
|
+
return (t, n) => (a(), w(Fr, {
|
|
1758
1759
|
"hide-label": e.hideLabel,
|
|
1759
1760
|
label: e.field.label,
|
|
1760
1761
|
required: e.field.required,
|
|
@@ -1784,11 +1785,11 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1784
1785
|
"read-only"
|
|
1785
1786
|
]));
|
|
1786
1787
|
}
|
|
1787
|
-
}),
|
|
1788
|
+
}), Lr = [
|
|
1788
1789
|
"value",
|
|
1789
1790
|
"placeholder",
|
|
1790
1791
|
"title"
|
|
1791
|
-
],
|
|
1792
|
+
], Rr = ["value", "placeholder"], zr = /* @__PURE__ */ D({
|
|
1792
1793
|
__name: "ImageField",
|
|
1793
1794
|
props: {
|
|
1794
1795
|
field: {},
|
|
@@ -1803,7 +1804,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1803
1804
|
blocked: () => !!n.readOnly,
|
|
1804
1805
|
apply: (e) => i("update:modelValue", e.url)
|
|
1805
1806
|
});
|
|
1806
|
-
return (t, n) => (a(), w(
|
|
1807
|
+
return (t, n) => (a(), w(Fr, {
|
|
1807
1808
|
"hide-label": e.hideLabel,
|
|
1808
1809
|
label: e.field.label,
|
|
1809
1810
|
required: e.field.required,
|
|
@@ -1826,14 +1827,14 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1826
1827
|
placeholder: e.field.placeholder || "https://...",
|
|
1827
1828
|
disabled: "",
|
|
1828
1829
|
title: h(s).customBlocks.dataSource.readOnlyTooltip
|
|
1829
|
-
}, null, 10,
|
|
1830
|
+
}, null, 10, Lr)) : (a(), v("input", {
|
|
1830
1831
|
key: 2,
|
|
1831
1832
|
type: "url",
|
|
1832
1833
|
class: o(h(B)),
|
|
1833
1834
|
value: e.modelValue,
|
|
1834
1835
|
placeholder: e.field.placeholder || "https://...",
|
|
1835
1836
|
onInput: n[0] ||= (e) => i("update:modelValue", e.target.value)
|
|
1836
|
-
}, null, 42,
|
|
1837
|
+
}, null, 42, Rr)),
|
|
1837
1838
|
h(l) && !e.readOnly ? (a(), v("button", {
|
|
1838
1839
|
key: 3,
|
|
1839
1840
|
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)]",
|
|
@@ -1851,7 +1852,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1851
1852
|
"read-only"
|
|
1852
1853
|
]));
|
|
1853
1854
|
}
|
|
1854
|
-
}),
|
|
1855
|
+
}), Br = [
|
|
1855
1856
|
"value",
|
|
1856
1857
|
"placeholder",
|
|
1857
1858
|
"min",
|
|
@@ -1859,7 +1860,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1859
1860
|
"step",
|
|
1860
1861
|
"disabled",
|
|
1861
1862
|
"title"
|
|
1862
|
-
],
|
|
1863
|
+
], Vr = /* @__PURE__ */ D({
|
|
1863
1864
|
__name: "NumberField",
|
|
1864
1865
|
props: {
|
|
1865
1866
|
field: {},
|
|
@@ -1870,7 +1871,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1870
1871
|
emits: ["update:modelValue"],
|
|
1871
1872
|
setup(e, { emit: t }) {
|
|
1872
1873
|
let n = t, { t: r } = W();
|
|
1873
|
-
return (t, i) => (a(), w(
|
|
1874
|
+
return (t, i) => (a(), w(Fr, {
|
|
1874
1875
|
"hide-label": e.hideLabel,
|
|
1875
1876
|
label: e.field.label,
|
|
1876
1877
|
required: e.field.required,
|
|
@@ -1887,7 +1888,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1887
1888
|
disabled: e.readOnly,
|
|
1888
1889
|
title: e.readOnly ? h(r).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1889
1890
|
onInput: i[0] ||= (t) => !e.readOnly && n("update:modelValue", Number(t.target.value))
|
|
1890
|
-
}, null, 42,
|
|
1891
|
+
}, null, 42, Br)]),
|
|
1891
1892
|
_: 1
|
|
1892
1893
|
}, 8, [
|
|
1893
1894
|
"hide-label",
|
|
@@ -1896,13 +1897,13 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1896
1897
|
"read-only"
|
|
1897
1898
|
]));
|
|
1898
1899
|
}
|
|
1899
|
-
}),
|
|
1900
|
+
}), Hr = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Ur = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, Wr = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, Gr = ["title", "onClick"], Kr = {
|
|
1900
1901
|
key: 1,
|
|
1901
1902
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1902
|
-
},
|
|
1903
|
+
}, qr = {
|
|
1903
1904
|
key: 2,
|
|
1904
1905
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1905
|
-
},
|
|
1906
|
+
}, Jr = /* @__PURE__ */ D({
|
|
1906
1907
|
__name: "RepeatableField",
|
|
1907
1908
|
props: {
|
|
1908
1909
|
field: {},
|
|
@@ -1931,17 +1932,17 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1931
1932
|
} : r);
|
|
1932
1933
|
c("update:modelValue", r);
|
|
1933
1934
|
}
|
|
1934
|
-
return (t, n) => (a(), w(
|
|
1935
|
+
return (t, n) => (a(), w(Fr, {
|
|
1935
1936
|
"hide-label": e.hideLabel,
|
|
1936
1937
|
label: e.field.label,
|
|
1937
1938
|
required: e.field.required,
|
|
1938
1939
|
"read-only": e.readOnly
|
|
1939
1940
|
}, {
|
|
1940
|
-
default: u(() => [b("div",
|
|
1941
|
+
default: u(() => [b("div", Hr, [
|
|
1941
1942
|
(a(!0), v(S, null, s(f.value, (t, n) => (a(), v("div", {
|
|
1942
1943
|
key: `${e.field.key}-${n}`,
|
|
1943
1944
|
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
|
|
1944
|
-
}, [b("div",
|
|
1945
|
+
}, [b("div", Ur, [b("span", Wr, " #" + r(n + 1), 1), x.value && !e.readOnly ? (a(), v("button", {
|
|
1945
1946
|
key: 0,
|
|
1946
1947
|
type: "button",
|
|
1947
1948
|
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)]",
|
|
@@ -1950,7 +1951,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1950
1951
|
}, [p(h(pt), {
|
|
1951
1952
|
size: 12,
|
|
1952
1953
|
"stroke-width": 2
|
|
1953
|
-
})], 8,
|
|
1954
|
+
})], 8, Gr)) : g("", !0)]), (a(!0), v(S, null, s(e.field.fields, (r) => (a(), w(i(h(ri)(r.type)), {
|
|
1954
1955
|
key: r.key,
|
|
1955
1956
|
field: r,
|
|
1956
1957
|
"model-value": t[r.key],
|
|
@@ -1971,8 +1972,8 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1971
1972
|
size: 14,
|
|
1972
1973
|
"stroke-width": 2
|
|
1973
1974
|
}), y(" " + r(h(l).customBlocks.fields.addItem), 1)], 2)) : g("", !0),
|
|
1974
|
-
!_.value && !e.readOnly ? (a(), v("p",
|
|
1975
|
-
!x.value && !e.readOnly ? (a(), v("p",
|
|
1975
|
+
!_.value && !e.readOnly ? (a(), v("p", Kr, r(h(l).customBlocks.fields.maxItemsReached), 1)) : g("", !0),
|
|
1976
|
+
!x.value && !e.readOnly ? (a(), v("p", qr, r(h(d)(h(l).customBlocks.fields.minItemsRequired, { count: e.field.minItems ?? 0 })), 1)) : g("", !0)
|
|
1976
1977
|
])]),
|
|
1977
1978
|
_: 1
|
|
1978
1979
|
}, 8, [
|
|
@@ -1982,11 +1983,11 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1982
1983
|
"read-only"
|
|
1983
1984
|
]));
|
|
1984
1985
|
}
|
|
1985
|
-
}),
|
|
1986
|
+
}), Yr = [
|
|
1986
1987
|
"value",
|
|
1987
1988
|
"disabled",
|
|
1988
1989
|
"title"
|
|
1989
|
-
],
|
|
1990
|
+
], Xr = ["value"], Zr = /* @__PURE__ */ D({
|
|
1990
1991
|
__name: "SelectField",
|
|
1991
1992
|
props: {
|
|
1992
1993
|
field: {},
|
|
@@ -1997,7 +1998,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
1997
1998
|
emits: ["update:modelValue"],
|
|
1998
1999
|
setup(e, { emit: t }) {
|
|
1999
2000
|
let n = t, { t: i } = W();
|
|
2000
|
-
return (t, c) => (a(), w(
|
|
2001
|
+
return (t, c) => (a(), w(Fr, {
|
|
2001
2002
|
"hide-label": e.hideLabel,
|
|
2002
2003
|
label: e.field.label,
|
|
2003
2004
|
required: e.field.required,
|
|
@@ -2012,7 +2013,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
2012
2013
|
}, [(a(!0), v(S, null, s(e.field.options, (e) => (a(), v("option", {
|
|
2013
2014
|
key: e.value,
|
|
2014
2015
|
value: e.value
|
|
2015
|
-
}, r(e.label), 9,
|
|
2016
|
+
}, r(e.label), 9, Xr))), 128))], 42, Yr)]),
|
|
2016
2017
|
_: 1
|
|
2017
2018
|
}, 8, [
|
|
2018
2019
|
"hide-label",
|
|
@@ -2021,11 +2022,11 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
2021
2022
|
"read-only"
|
|
2022
2023
|
]));
|
|
2023
2024
|
}
|
|
2024
|
-
}),
|
|
2025
|
+
}), Qr = [
|
|
2025
2026
|
"value",
|
|
2026
2027
|
"placeholder",
|
|
2027
2028
|
"title"
|
|
2028
|
-
],
|
|
2029
|
+
], $r = /* @__PURE__ */ D({
|
|
2029
2030
|
__name: "TextField",
|
|
2030
2031
|
props: {
|
|
2031
2032
|
field: {},
|
|
@@ -2036,7 +2037,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
2036
2037
|
emits: ["update:modelValue"],
|
|
2037
2038
|
setup(e, { emit: t }) {
|
|
2038
2039
|
let n = t, { t: r } = W();
|
|
2039
|
-
return (t, i) => (a(), w(
|
|
2040
|
+
return (t, i) => (a(), w(Fr, {
|
|
2040
2041
|
"hide-label": e.hideLabel,
|
|
2041
2042
|
label: e.field.label,
|
|
2042
2043
|
required: e.field.required,
|
|
@@ -2050,7 +2051,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
2050
2051
|
placeholder: e.field.placeholder,
|
|
2051
2052
|
disabled: "",
|
|
2052
2053
|
title: h(r).customBlocks.dataSource.readOnlyTooltip
|
|
2053
|
-
}, null, 10,
|
|
2054
|
+
}, null, 10, Qr)) : (a(), w(N, {
|
|
2054
2055
|
key: 1,
|
|
2055
2056
|
"model-value": e.modelValue,
|
|
2056
2057
|
placeholder: e.field.placeholder,
|
|
@@ -2064,12 +2065,12 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
2064
2065
|
"read-only"
|
|
2065
2066
|
]));
|
|
2066
2067
|
}
|
|
2067
|
-
}),
|
|
2068
|
+
}), ei = [
|
|
2068
2069
|
"value",
|
|
2069
2070
|
"placeholder",
|
|
2070
2071
|
"title"
|
|
2071
|
-
],
|
|
2072
|
-
text:
|
|
2072
|
+
], ti = "tpl:w-full tpl:resize-y tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:opacity-60 tpl:cursor-not-allowed", ni = {
|
|
2073
|
+
text: $r,
|
|
2073
2074
|
textarea: /* @__PURE__ */ D({
|
|
2074
2075
|
__name: "TextareaField",
|
|
2075
2076
|
props: {
|
|
@@ -2081,7 +2082,7 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
2081
2082
|
emits: ["update:modelValue"],
|
|
2082
2083
|
setup(e, { emit: t }) {
|
|
2083
2084
|
let n = t, { t: r } = W();
|
|
2084
|
-
return (t, i) => (a(), w(
|
|
2085
|
+
return (t, i) => (a(), w(Fr, {
|
|
2085
2086
|
"hide-label": e.hideLabel,
|
|
2086
2087
|
label: e.field.label,
|
|
2087
2088
|
required: e.field.required,
|
|
@@ -2094,8 +2095,8 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
2094
2095
|
rows: "3",
|
|
2095
2096
|
disabled: "",
|
|
2096
2097
|
title: h(r).customBlocks.dataSource.readOnlyTooltip,
|
|
2097
|
-
class: o(
|
|
2098
|
-
}, null, 8,
|
|
2098
|
+
class: o(ti)
|
|
2099
|
+
}, null, 8, ei)) : (a(), w(j, {
|
|
2099
2100
|
key: 1,
|
|
2100
2101
|
"model-value": e.modelValue,
|
|
2101
2102
|
placeholder: e.field.placeholder,
|
|
@@ -2110,36 +2111,36 @@ var er = { class: "tpl:space-y-2" }, tr = { class: "tpl:flex tpl:items-center tp
|
|
|
2110
2111
|
]));
|
|
2111
2112
|
}
|
|
2112
2113
|
}),
|
|
2113
|
-
image:
|
|
2114
|
-
color:
|
|
2115
|
-
number:
|
|
2116
|
-
select:
|
|
2117
|
-
boolean:
|
|
2118
|
-
repeatable:
|
|
2114
|
+
image: zr,
|
|
2115
|
+
color: Ir,
|
|
2116
|
+
number: Vr,
|
|
2117
|
+
select: Zr,
|
|
2118
|
+
boolean: Nr,
|
|
2119
|
+
repeatable: Jr
|
|
2119
2120
|
};
|
|
2120
|
-
function
|
|
2121
|
-
return
|
|
2121
|
+
function ri(e) {
|
|
2122
|
+
return ni[e] ?? $r;
|
|
2122
2123
|
}
|
|
2123
2124
|
// src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2124
|
-
var
|
|
2125
|
+
var ii = {
|
|
2125
2126
|
key: 0,
|
|
2126
2127
|
class: "tpl:p-4"
|
|
2127
|
-
},
|
|
2128
|
+
}, ai = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, oi = { key: 1 }, si = {
|
|
2128
2129
|
key: 0,
|
|
2129
2130
|
class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
2130
|
-
},
|
|
2131
|
+
}, ci = {
|
|
2131
2132
|
key: 1,
|
|
2132
2133
|
class: "tpl:mb-4"
|
|
2133
|
-
},
|
|
2134
|
+
}, li = {
|
|
2134
2135
|
key: 1,
|
|
2135
2136
|
class: "tpl:flex tpl:h-[32px] tpl:items-center"
|
|
2136
|
-
},
|
|
2137
|
+
}, ui = {
|
|
2137
2138
|
key: 0,
|
|
2138
2139
|
class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
2139
|
-
},
|
|
2140
|
+
}, di = {
|
|
2140
2141
|
key: 2,
|
|
2141
2142
|
class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
2142
|
-
},
|
|
2143
|
+
}, fi = /* @__PURE__ */ D({
|
|
2143
2144
|
__name: "CustomBlockToolbar",
|
|
2144
2145
|
props: { block: {} },
|
|
2145
2146
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
@@ -2160,19 +2161,19 @@ var ri = {
|
|
|
2160
2161
|
[e]: t
|
|
2161
2162
|
});
|
|
2162
2163
|
}
|
|
2163
|
-
return (t, n) => d.value ? (a(), v("div",
|
|
2164
|
-
d.value.description ? (a(), v("p",
|
|
2165
|
-
h(T) ? (a(), v("div",
|
|
2164
|
+
return (t, n) => d.value ? (a(), v("div", oi, [
|
|
2165
|
+
d.value.description ? (a(), v("p", si, r(d.value.description), 1)) : g("", !0),
|
|
2166
|
+
h(T) ? (a(), v("div", ci, [h(D) && !h(_) ? (a(), v("button", {
|
|
2166
2167
|
key: 0,
|
|
2167
2168
|
type: "button",
|
|
2168
2169
|
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)]",
|
|
2169
2170
|
onClick: n[0] ||= (...e) => h(C) && h(C)(...e)
|
|
2170
|
-
}, r(d.value?.dataSource?.label || h(c).customBlocks.dataSource.fetchButton), 1)) : (a(), v("div",
|
|
2171
|
+
}, r(d.value?.dataSource?.label || h(c).customBlocks.dataSource.fetchButton), 1)) : (a(), v("div", li, [h(_) ? (a(), v("div", ui, r(h(c).customBlocks.dataSource.fetching), 1)) : (a(), v("button", {
|
|
2171
2172
|
key: 1,
|
|
2172
2173
|
type: "button",
|
|
2173
2174
|
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)]",
|
|
2174
2175
|
onClick: n[1] ||= (...e) => h(C) && h(C)(...e)
|
|
2175
|
-
}, [p(h(ut), { size: 12 }), y(" " + r(h(c).customBlocks.dataSource.changeButton), 1)]))])), h(x) ? (a(), v("p",
|
|
2176
|
+
}, [p(h(ut), { size: 12 }), y(" " + r(h(c).customBlocks.dataSource.changeButton), 1)]))])), h(x) ? (a(), v("p", di, [p(h(lt), {
|
|
2176
2177
|
size: 14,
|
|
2177
2178
|
class: "tpl:shrink-0"
|
|
2178
2179
|
}), y(" " + r(h(c).customBlocks.dataSource.fetchError), 1)])) : g("", !0)])) : g("", !0),
|
|
@@ -2181,7 +2182,7 @@ var ri = {
|
|
|
2181
2182
|
path: `fieldValues.${t.key}`,
|
|
2182
2183
|
label: t.label
|
|
2183
2184
|
}, {
|
|
2184
|
-
label: u(() => [p(
|
|
2185
|
+
label: u(() => [p(jr, {
|
|
2185
2186
|
label: t.label,
|
|
2186
2187
|
required: t.required,
|
|
2187
2188
|
"read-only": O(t)
|
|
@@ -2190,7 +2191,7 @@ var ri = {
|
|
|
2190
2191
|
"required",
|
|
2191
2192
|
"read-only"
|
|
2192
2193
|
])]),
|
|
2193
|
-
default: u(({ controlId: n }) => [(a(), w(i(h(
|
|
2194
|
+
default: u(({ controlId: n }) => [(a(), w(i(h(ri)(t.type)), {
|
|
2194
2195
|
"control-id": t.type === "boolean" ? n : void 0,
|
|
2195
2196
|
field: t,
|
|
2196
2197
|
"hide-label": "",
|
|
@@ -2206,9 +2207,9 @@ var ri = {
|
|
|
2206
2207
|
]))]),
|
|
2207
2208
|
_: 2
|
|
2208
2209
|
}, 1032, ["path", "label"]))), 128))
|
|
2209
|
-
])) : (a(), v("div",
|
|
2210
|
+
])) : (a(), v("div", ii, [b("p", ai, r(h(c).customBlocks.toolbar.noDefinition), 1)]));
|
|
2210
2211
|
}
|
|
2211
|
-
}),
|
|
2212
|
+
}), pi = { class: "tpl:flex tpl:items-stretch" }, mi = ["value"], hi = /* @__PURE__ */ D({
|
|
2212
2213
|
__name: "DividerToolbar",
|
|
2213
2214
|
props: { block: {} },
|
|
2214
2215
|
emits: ["update"],
|
|
@@ -2259,19 +2260,19 @@ var ri = {
|
|
|
2259
2260
|
class: "tpl:mb-3.5",
|
|
2260
2261
|
path: "thickness"
|
|
2261
2262
|
}, {
|
|
2262
|
-
default: u(() => [b("div",
|
|
2263
|
+
default: u(() => [b("div", pi, [b("input", {
|
|
2263
2264
|
type: "number",
|
|
2264
2265
|
class: o(h(z)),
|
|
2265
2266
|
value: e.block.thickness,
|
|
2266
2267
|
min: "1",
|
|
2267
2268
|
max: "10",
|
|
2268
2269
|
onInput: n[2] ||= (e) => i("thickness", Number(e.target.value))
|
|
2269
|
-
}, null, 42,
|
|
2270
|
+
}, null, 42, mi), b("span", { class: o(h(L)) }, "px", 2)])]),
|
|
2270
2271
|
_: 1
|
|
2271
2272
|
}, 8, ["label"])
|
|
2272
2273
|
], 64));
|
|
2273
2274
|
}
|
|
2274
|
-
}),
|
|
2275
|
+
}), gi = ["value"], _i = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, vi = /* @__PURE__ */ D({
|
|
2275
2276
|
__name: "HtmlToolbar",
|
|
2276
2277
|
props: { block: {} },
|
|
2277
2278
|
emits: ["update"],
|
|
@@ -2288,7 +2289,7 @@ var ri = {
|
|
|
2288
2289
|
rows: "10",
|
|
2289
2290
|
class: o(h(H)),
|
|
2290
2291
|
onInput: s[0] ||= (e) => n("update", { content: e.target.value })
|
|
2291
|
-
}, null, 42,
|
|
2292
|
+
}, null, 42, gi), b("p", _i, [p(h(mt), {
|
|
2292
2293
|
size: 12,
|
|
2293
2294
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
2294
2295
|
}), y(" " + r(h(i).html.sanitizationHint), 1)])]),
|
|
@@ -2297,7 +2298,7 @@ var ri = {
|
|
|
2297
2298
|
}
|
|
2298
2299
|
});
|
|
2299
2300
|
// src/composables/useImageAspectLock.ts
|
|
2300
|
-
function
|
|
2301
|
+
function yi(e) {
|
|
2301
2302
|
let n = _(!1), r = _(null);
|
|
2302
2303
|
t(() => e.block().id, () => {
|
|
2303
2304
|
n.value = !1, r.value = null;
|
|
@@ -2357,22 +2358,22 @@ function vi(e) {
|
|
|
2357
2358
|
};
|
|
2358
2359
|
}
|
|
2359
2360
|
// src/components/toolbar/ImageToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2360
|
-
var
|
|
2361
|
+
var bi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, xi = [
|
|
2361
2362
|
"value",
|
|
2362
2363
|
"placeholder",
|
|
2363
2364
|
"title"
|
|
2364
|
-
],
|
|
2365
|
+
], Si = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, Ci = ["value"], wi = { value: "full" }, Ti = { value: "custom" }, Ei = {
|
|
2365
2366
|
key: 0,
|
|
2366
2367
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2367
|
-
},
|
|
2368
|
+
}, Di = ["value"], Oi = ["value"], ki = { value: "auto" }, Ai = { value: "always" }, ji = { value: "never" }, Mi = { class: "tpl:flex tpl:items-stretch" }, Ni = ["value"], Pi = {
|
|
2368
2369
|
key: 0,
|
|
2369
2370
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
2370
2371
|
role: "status",
|
|
2371
2372
|
"data-testid": "image-height-capped"
|
|
2372
|
-
},
|
|
2373
|
+
}, Fi = ["value"], Ii = { value: "auto" }, Li = { value: "custom" }, Ri = {
|
|
2373
2374
|
key: 2,
|
|
2374
2375
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2375
|
-
},
|
|
2376
|
+
}, zi = ["value"], Bi = 350, Vi = 200, Hi = /* @__PURE__ */ D({
|
|
2376
2377
|
__name: "ImageToolbar",
|
|
2377
2378
|
props: { block: {} },
|
|
2378
2379
|
emits: ["update"],
|
|
@@ -2393,11 +2394,11 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2393
2394
|
function ee(e) {
|
|
2394
2395
|
if (e === "custom") {
|
|
2395
2396
|
let e = n.block.width;
|
|
2396
|
-
(typeof e != "number" || k.includes(e)) && i("update", K.widthUpdates(
|
|
2397
|
+
(typeof e != "number" || k.includes(e)) && i("update", K.widthUpdates(Bi));
|
|
2397
2398
|
} else i("update", K.widthUpdates(e === "full" ? "full" : Number(e)));
|
|
2398
2399
|
}
|
|
2399
2400
|
function R(e) {
|
|
2400
|
-
I("height", e === "custom" ?
|
|
2401
|
+
I("height", e === "custom" ? Vi : void 0);
|
|
2401
2402
|
}
|
|
2402
2403
|
function te(e) {
|
|
2403
2404
|
I("fluidOnMobile", e === "always" || e !== "never" && void 0);
|
|
@@ -2429,7 +2430,7 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2429
2430
|
target: ie,
|
|
2430
2431
|
blocked: ae,
|
|
2431
2432
|
apply: U
|
|
2432
|
-
}), ue = Ie(() => ae.value || !n.block.src || Ve(n.block) ? void 0 : n.block.src), de =
|
|
2433
|
+
}), ue = Ie(() => ae.value || !n.block.src || Ve(n.block) ? void 0 : n.block.src), de = Cn(() => ue.value), fe = m(() => f ? Ue(f.content.value, n.block.id, C) : null), K = yi({
|
|
2433
2434
|
block: () => n.block,
|
|
2434
2435
|
room: () => fe.value,
|
|
2435
2436
|
measured: () => de.value
|
|
@@ -2491,7 +2492,7 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2491
2492
|
class: "tpl:mb-3.5",
|
|
2492
2493
|
path: "placeholderUrl"
|
|
2493
2494
|
}, {
|
|
2494
|
-
label: u(() => [y(r(h(s).image.placeholderUrl) + " ", 1), b("span",
|
|
2495
|
+
label: u(() => [y(r(h(s).image.placeholderUrl) + " ", 1), b("span", bi, r(h(s).image.optional), 1)]),
|
|
2495
2496
|
default: u(() => [b("input", {
|
|
2496
2497
|
type: "url",
|
|
2497
2498
|
class: o(h(B)),
|
|
@@ -2499,7 +2500,7 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2499
2500
|
placeholder: h(s).image.placeholderUrlPlaceholder,
|
|
2500
2501
|
title: h(s).image.placeholderUrlTooltip,
|
|
2501
2502
|
onInput: n[2] ||= (e) => I("placeholderUrl", e.target.value)
|
|
2502
|
-
}, null, 42,
|
|
2503
|
+
}, null, 42, xi)]),
|
|
2503
2504
|
_: 1
|
|
2504
2505
|
})) : g("", !0),
|
|
2505
2506
|
p(A, {
|
|
@@ -2523,7 +2524,7 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2523
2524
|
path: "decorative",
|
|
2524
2525
|
label: h(s).image.decorative
|
|
2525
2526
|
}, {
|
|
2526
|
-
label: u(() => [b("span", null, [y(r(h(s).image.decorative) + " ", 1), b("span",
|
|
2527
|
+
label: u(() => [b("span", null, [y(r(h(s).image.decorative) + " ", 1), b("span", Si, r(h(s).image.decorativeHint), 1)])]),
|
|
2527
2528
|
"label-actions": u(({ controlId: t }) => [p(P, {
|
|
2528
2529
|
"control-id": t,
|
|
2529
2530
|
"hide-label": "",
|
|
@@ -2551,19 +2552,19 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2551
2552
|
value: j.value,
|
|
2552
2553
|
onChange: n[5] ||= (e) => ee(e.target.value)
|
|
2553
2554
|
}, [
|
|
2554
|
-
b("option",
|
|
2555
|
+
b("option", wi, r(h(s).image.fullWidth), 1),
|
|
2555
2556
|
n[16] ||= b("option", { value: "300" }, "300px", -1),
|
|
2556
2557
|
n[17] ||= b("option", { value: "400" }, "400px", -1),
|
|
2557
2558
|
n[18] ||= b("option", { value: "500" }, "500px", -1),
|
|
2558
|
-
b("option",
|
|
2559
|
-
], 42,
|
|
2559
|
+
b("option", Ti, r(h(s).image.widthCustom), 1)
|
|
2560
|
+
], 42, Ci), j.value === "custom" ? (a(), v("div", Ei, [b("input", {
|
|
2560
2561
|
type: "number",
|
|
2561
2562
|
"data-testid": "image-width-input",
|
|
2562
2563
|
class: o(h(z)),
|
|
2563
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
2564
|
+
value: typeof e.block.width == "number" ? e.block.width : Bi,
|
|
2564
2565
|
min: "20",
|
|
2565
2566
|
onInput: n[6] ||= (e) => H(e.target.value)
|
|
2566
|
-
}, null, 42,
|
|
2567
|
+
}, null, 42, Di), b("span", { class: o(h(L)) }, "px", 2)])) : g("", !0)]),
|
|
2567
2568
|
_: 1
|
|
2568
2569
|
}, 8, ["label"]),
|
|
2569
2570
|
p(A, {
|
|
@@ -2577,10 +2578,10 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2577
2578
|
value: F.value,
|
|
2578
2579
|
onChange: n[7] ||= (e) => te(e.target.value)
|
|
2579
2580
|
}, [
|
|
2580
|
-
b("option",
|
|
2581
|
-
b("option",
|
|
2582
|
-
b("option",
|
|
2583
|
-
], 42,
|
|
2581
|
+
b("option", ki, r(h(s).image.fluidOnMobileAuto), 1),
|
|
2582
|
+
b("option", Ai, r(h(s).image.fluidOnMobileAlways), 1),
|
|
2583
|
+
b("option", ji, r(h(s).image.fluidOnMobileNever), 1)
|
|
2584
|
+
], 42, Oi)]),
|
|
2584
2585
|
_: 1
|
|
2585
2586
|
}, 8, ["label"]),
|
|
2586
2587
|
p(A, {
|
|
@@ -2589,7 +2590,7 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2589
2590
|
label: h(s).image.height
|
|
2590
2591
|
}, x({
|
|
2591
2592
|
default: u(() => [
|
|
2592
|
-
h(J) ? (a(), v(S, { key: 0 }, [b("div",
|
|
2593
|
+
h(J) ? (a(), v(S, { key: 0 }, [b("div", Mi, [b("input", {
|
|
2593
2594
|
type: "number",
|
|
2594
2595
|
"data-testid": "image-locked-height-input",
|
|
2595
2596
|
class: o(h(z)),
|
|
@@ -2597,27 +2598,27 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2597
2598
|
min: "1",
|
|
2598
2599
|
onInput: n[8] ||= (e) => ge(e.target.value),
|
|
2599
2600
|
onBlur: n[9] ||= (e) => he.value = null
|
|
2600
|
-
}, null, 42,
|
|
2601
|
+
}, null, 42, Ni), b("span", { class: o(h(L)) }, "px", 2)]), h(X) === null ? g("", !0) : (a(), v("p", Pi, r(h(c)(h(s).image.heightCapped, { height: h(X) })), 1))], 64)) : g("", !0),
|
|
2601
2602
|
h(J) ? g("", !0) : (a(), v("select", {
|
|
2602
2603
|
key: 1,
|
|
2603
2604
|
class: o(h(B)),
|
|
2604
2605
|
"data-testid": "image-height-mode",
|
|
2605
2606
|
value: M.value,
|
|
2606
2607
|
onChange: n[10] ||= (e) => R(e.target.value)
|
|
2607
|
-
}, [b("option",
|
|
2608
|
-
!h(J) && M.value === "custom" ? (a(), v("div",
|
|
2608
|
+
}, [b("option", Ii, r(h(s).image.heightAuto), 1), b("option", Li, r(h(s).image.heightCustom), 1)], 42, Fi)),
|
|
2609
|
+
!h(J) && M.value === "custom" ? (a(), v("div", Ri, [b("input", {
|
|
2609
2610
|
type: "number",
|
|
2610
2611
|
"data-testid": "image-height-input",
|
|
2611
2612
|
class: o(h(z)),
|
|
2612
2613
|
value: e.block.height,
|
|
2613
2614
|
min: "20",
|
|
2614
2615
|
onInput: n[11] ||= (e) => ne(e.target.value)
|
|
2615
|
-
}, null, 42,
|
|
2616
|
+
}, null, 42, zi), b("span", { class: o(h(L)) }, "px", 2)])) : g("", !0)
|
|
2616
2617
|
]),
|
|
2617
2618
|
_: 2
|
|
2618
2619
|
}, [h(q) ? {
|
|
2619
2620
|
name: "label-actions",
|
|
2620
|
-
fn: u(() => [p(
|
|
2621
|
+
fn: u(() => [p(jt, {
|
|
2621
2622
|
linked: h(J),
|
|
2622
2623
|
"link-label": h(s).image.lockAspectRatio,
|
|
2623
2624
|
"unlink-label": h(s).image.unlockAspectRatio,
|
|
@@ -2630,14 +2631,14 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2630
2631
|
])]),
|
|
2631
2632
|
key: "0"
|
|
2632
2633
|
} : void 0]), 1032, ["label"]),
|
|
2633
|
-
p(
|
|
2634
|
+
p(Rt, {
|
|
2634
2635
|
path: "borderRadius",
|
|
2635
2636
|
"model-value": e.block.borderRadius,
|
|
2636
2637
|
label: h(s).image.borderRadius,
|
|
2637
2638
|
"testid-prefix": "image",
|
|
2638
2639
|
"onUpdate:modelValue": V
|
|
2639
2640
|
}, null, 8, ["model-value", "label"]),
|
|
2640
|
-
p(
|
|
2641
|
+
p(Ft, {
|
|
2641
2642
|
path: "border",
|
|
2642
2643
|
"model-value": e.block.border,
|
|
2643
2644
|
"testid-prefix": "image",
|
|
@@ -2701,11 +2702,11 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2701
2702
|
}, 8, ["label"])
|
|
2702
2703
|
], 64));
|
|
2703
2704
|
}
|
|
2704
|
-
}),
|
|
2705
|
+
}), Ui = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Wi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Gi = [
|
|
2705
2706
|
"value",
|
|
2706
2707
|
"placeholder",
|
|
2707
2708
|
"onInput"
|
|
2708
|
-
],
|
|
2709
|
+
], Ki = ["title", "onClick"], qi = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-x-3 tpl:gap-y-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Ji = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Yi = ["value"], Xi = { value: "" }, Zi = ["value"], Qi = ["value"], $i = /* @__PURE__ */ D({
|
|
2709
2710
|
__name: "MenuToolbar",
|
|
2710
2711
|
props: {
|
|
2711
2712
|
block: {},
|
|
@@ -2769,11 +2770,11 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2769
2770
|
}
|
|
2770
2771
|
return (t, n) => (a(), v(S, null, [
|
|
2771
2772
|
p(A, { label: h(c).menu.items }, {
|
|
2772
|
-
default: u(() => [b("div",
|
|
2773
|
+
default: u(() => [b("div", Ui, [(a(!0), v(S, null, s(e.block.items, (t) => (a(), v("div", {
|
|
2773
2774
|
key: t.id,
|
|
2774
2775
|
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"
|
|
2775
2776
|
}, [
|
|
2776
|
-
b("div",
|
|
2777
|
+
b("div", Wi, [p(A, {
|
|
2777
2778
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.text`,
|
|
2778
2779
|
label: h(c).menu.text
|
|
2779
2780
|
}, {
|
|
@@ -2783,7 +2784,7 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2783
2784
|
value: t.text,
|
|
2784
2785
|
placeholder: h(c).menu.text,
|
|
2785
2786
|
onInput: (e) => _(t.id, "text", e.target.value)
|
|
2786
|
-
}, null, 42,
|
|
2787
|
+
}, null, 42, Gi)]),
|
|
2787
2788
|
_: 2
|
|
2788
2789
|
}, 1032, ["path", "label"]), b("button", {
|
|
2789
2790
|
class: o(h(I)),
|
|
@@ -2792,7 +2793,7 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2792
2793
|
}, [p(h(yt), {
|
|
2793
2794
|
size: 14,
|
|
2794
2795
|
"stroke-width": 2
|
|
2795
|
-
})], 10,
|
|
2796
|
+
})], 10, Ki)]),
|
|
2796
2797
|
p(A, {
|
|
2797
2798
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.url`,
|
|
2798
2799
|
label: h(c).button.url
|
|
@@ -2809,7 +2810,7 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2809
2810
|
])]),
|
|
2810
2811
|
_: 2
|
|
2811
2812
|
}, 1032, ["path", "label"]),
|
|
2812
|
-
b("div",
|
|
2813
|
+
b("div", qi, [(a(!0), v(S, null, s(l.value, (e) => (a(), w(A, {
|
|
2813
2814
|
key: e.key,
|
|
2814
2815
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.${e.key}`,
|
|
2815
2816
|
label: e.label
|
|
@@ -2828,7 +2829,7 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2828
2829
|
])]),
|
|
2829
2830
|
_: 2
|
|
2830
2831
|
}, 1032, ["path", "label"]))), 128))]),
|
|
2831
|
-
b("div",
|
|
2832
|
+
b("div", Ji, [p(A, {
|
|
2832
2833
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.color`,
|
|
2833
2834
|
label: h(c).menu.color
|
|
2834
2835
|
}, {
|
|
@@ -2856,17 +2857,17 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2856
2857
|
class: o(h(B)),
|
|
2857
2858
|
value: h($e)(e.block.fontFamily),
|
|
2858
2859
|
onChange: n[0] ||= (e) => f("fontFamily", e.target.value || void 0)
|
|
2859
|
-
}, [b("option",
|
|
2860
|
+
}, [b("option", Xi, r(h(c).title.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
|
|
2860
2861
|
key: e.value,
|
|
2861
2862
|
value: e.value
|
|
2862
|
-
}, r(e.label), 9,
|
|
2863
|
+
}, r(e.label), 9, Zi))), 128))], 42, Yi)]),
|
|
2863
2864
|
_: 1
|
|
2864
2865
|
}, 8, ["label"]),
|
|
2865
2866
|
p(A, {
|
|
2866
2867
|
path: "fontSize",
|
|
2867
2868
|
label: h(c).menu.fontSize
|
|
2868
2869
|
}, {
|
|
2869
|
-
default: u(() => [p(
|
|
2870
|
+
default: u(() => [p(kt, {
|
|
2870
2871
|
"model-value": e.block.fontSize,
|
|
2871
2872
|
min: 8,
|
|
2872
2873
|
max: 48,
|
|
@@ -2915,7 +2916,7 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2915
2916
|
class: o(h(B)),
|
|
2916
2917
|
value: e.block.separator,
|
|
2917
2918
|
onInput: n[5] ||= (e) => f("separator", e.target.value)
|
|
2918
|
-
}, null, 42,
|
|
2919
|
+
}, null, 42, Qi)]),
|
|
2919
2920
|
_: 1
|
|
2920
2921
|
}, 8, ["label"]),
|
|
2921
2922
|
p(A, {
|
|
@@ -2932,7 +2933,7 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2932
2933
|
path: "spacing",
|
|
2933
2934
|
label: h(c).menu.spacing
|
|
2934
2935
|
}, {
|
|
2935
|
-
default: u(() => [p(
|
|
2936
|
+
default: u(() => [p(kt, {
|
|
2936
2937
|
"model-value": e.block.spacing,
|
|
2937
2938
|
min: 0,
|
|
2938
2939
|
max: 50,
|
|
@@ -2943,7 +2944,7 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2943
2944
|
}, 8, ["label"])
|
|
2944
2945
|
], 64));
|
|
2945
2946
|
}
|
|
2946
|
-
}),
|
|
2947
|
+
}), ea = { class: "tpl:flex tpl:items-stretch" }, ta = ["value"], na = /* @__PURE__ */ D({
|
|
2947
2948
|
__name: "ParagraphToolbar",
|
|
2948
2949
|
props: { block: {} },
|
|
2949
2950
|
emits: ["update"],
|
|
@@ -2955,20 +2956,20 @@ var yi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bi = [
|
|
|
2955
2956
|
"data-testid": "paragraph-spacing",
|
|
2956
2957
|
path: "paragraphSpacing"
|
|
2957
2958
|
}, {
|
|
2958
|
-
default: u(() => [b("div",
|
|
2959
|
+
default: u(() => [b("div", ea, [b("input", {
|
|
2959
2960
|
type: "number",
|
|
2960
2961
|
class: o(h(z)),
|
|
2961
2962
|
value: e.block.paragraphSpacing ?? h(Y).paragraphGap,
|
|
2962
2963
|
min: "0",
|
|
2963
2964
|
max: "64",
|
|
2964
2965
|
onInput: i[0] ||= (e) => n("update", { paragraphSpacing: Number(e.target.value) })
|
|
2965
|
-
}, null, 42,
|
|
2966
|
+
}, null, 42, ta), b("span", { class: o(h(L)) }, "px", 2)])]),
|
|
2966
2967
|
_: 1
|
|
2967
2968
|
}, 8, ["label"]));
|
|
2968
2969
|
}
|
|
2969
2970
|
});
|
|
2970
2971
|
// src/utils/rebalanceColumnChildren.ts
|
|
2971
|
-
function
|
|
2972
|
+
function ra(e, t) {
|
|
2972
2973
|
let n = ge(t);
|
|
2973
2974
|
if (e.length === n) return e;
|
|
2974
2975
|
if (e.length < n) {
|
|
@@ -2979,23 +2980,23 @@ function na(e, t) {
|
|
|
2979
2980
|
return [...r.slice(0, n - 1), a];
|
|
2980
2981
|
}
|
|
2981
2982
|
// src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2982
|
-
var
|
|
2983
|
+
var ia = { class: "tpl:mb-3.5" }, aa = ["value"], oa = ["value"], sa = {
|
|
2983
2984
|
key: 0,
|
|
2984
2985
|
value: "custom"
|
|
2985
|
-
},
|
|
2986
|
+
}, ca = { class: "tpl:flex tpl:gap-2" }, la = [
|
|
2986
2987
|
"value",
|
|
2987
2988
|
"aria-label",
|
|
2988
2989
|
"onChange"
|
|
2989
|
-
],
|
|
2990
|
+
], ua = {
|
|
2990
2991
|
key: 3,
|
|
2991
2992
|
class: "tpl:mb-3.5"
|
|
2992
|
-
},
|
|
2993
|
+
}, da = {
|
|
2993
2994
|
key: 0,
|
|
2994
2995
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
2995
|
-
},
|
|
2996
|
+
}, fa = {
|
|
2996
2997
|
key: 1,
|
|
2997
2998
|
class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
|
|
2998
|
-
},
|
|
2999
|
+
}, pa = /* @__PURE__ */ D({
|
|
2999
3000
|
__name: "SectionToolbar",
|
|
3000
3001
|
props: { block: {} },
|
|
3001
3002
|
emits: ["update"],
|
|
@@ -3041,7 +3042,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3041
3042
|
function N(e) {
|
|
3042
3043
|
let t = e.target.value;
|
|
3043
3044
|
if (t === "custom") return;
|
|
3044
|
-
let r = t, a =
|
|
3045
|
+
let r = t, a = ra(n.block.children, r);
|
|
3045
3046
|
i("update", {
|
|
3046
3047
|
columns: r,
|
|
3047
3048
|
children: a,
|
|
@@ -3075,10 +3076,10 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3075
3076
|
right: 20,
|
|
3076
3077
|
bottom: 20,
|
|
3077
3078
|
left: 20
|
|
3078
|
-
} } }) : i("update",
|
|
3079
|
+
} } }) : i("update", er(n.block));
|
|
3079
3080
|
}
|
|
3080
3081
|
function ne(e) {
|
|
3081
|
-
i("update",
|
|
3082
|
+
i("update", $n(n.block, e));
|
|
3082
3083
|
}
|
|
3083
3084
|
function H(e) {
|
|
3084
3085
|
i("update", { wrapper: {
|
|
@@ -3093,20 +3094,20 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3093
3094
|
H({ borderRadius: e });
|
|
3094
3095
|
}
|
|
3095
3096
|
return (t, n) => (a(), v(S, null, [
|
|
3096
|
-
b("div",
|
|
3097
|
+
b("div", ia, [b("label", { class: o(h(V)) }, r(h(c).section.columns), 3), b("select", {
|
|
3097
3098
|
class: o(h(B)),
|
|
3098
3099
|
value: j.value,
|
|
3099
3100
|
onChange: N
|
|
3100
3101
|
}, [(a(!0), v(S, null, s(D.value, (e) => (a(), v("option", {
|
|
3101
3102
|
key: e.value,
|
|
3102
3103
|
value: e.value
|
|
3103
|
-
}, r(e.label), 9,
|
|
3104
|
+
}, r(e.label), 9, oa))), 128)), k.value ? (a(), v("option", sa, r(h(c).section.columnsCustom), 1)) : g("", !0)], 42, aa)]),
|
|
3104
3105
|
O.value.length > 1 ? (a(), w(A, {
|
|
3105
3106
|
key: 0,
|
|
3106
3107
|
path: "columnWidths",
|
|
3107
3108
|
label: h(c).section.columnWidths
|
|
3108
3109
|
}, {
|
|
3109
|
-
default: u(() => [b("div",
|
|
3110
|
+
default: u(() => [b("div", ca, [(a(!0), v(S, null, s(O.value, (e, t) => (a(), v("div", {
|
|
3110
3111
|
key: t,
|
|
3111
3112
|
class: "tpl:flex tpl:min-w-0 tpl:flex-1 tpl:items-stretch"
|
|
3112
3113
|
}, [b("input", {
|
|
@@ -3116,7 +3117,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3116
3117
|
value: e,
|
|
3117
3118
|
"aria-label": h(l)(h(c).section.columnWidthAria, { index: t + 1 }),
|
|
3118
3119
|
onChange: (e) => I(t, e)
|
|
3119
|
-
}, null, 42,
|
|
3120
|
+
}, null, 42, la), b("span", { class: o(h(L)) }, "%", 2)]))), 128))])]),
|
|
3120
3121
|
_: 1
|
|
3121
3122
|
}, 8, ["label"])) : g("", !0),
|
|
3122
3123
|
e.block.columns === "1" ? g("", !0) : (a(), w(A, {
|
|
@@ -3139,7 +3140,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3139
3140
|
])]),
|
|
3140
3141
|
_: 1
|
|
3141
3142
|
}, 8, ["label"])),
|
|
3142
|
-
p(
|
|
3143
|
+
p(Rt, {
|
|
3143
3144
|
path: "borderRadius",
|
|
3144
3145
|
"model-value": e.block.borderRadius,
|
|
3145
3146
|
label: h(c).section.borderRadius,
|
|
@@ -3147,14 +3148,14 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3147
3148
|
"testid-prefix": "section",
|
|
3148
3149
|
"onUpdate:modelValue": R
|
|
3149
3150
|
}, null, 8, ["model-value", "label"]),
|
|
3150
|
-
T.value ? g("", !0) : (a(), w(
|
|
3151
|
+
T.value ? g("", !0) : (a(), w(Ft, {
|
|
3151
3152
|
key: 2,
|
|
3152
3153
|
path: "border",
|
|
3153
3154
|
"model-value": e.block.border,
|
|
3154
3155
|
"testid-prefix": "section",
|
|
3155
3156
|
"onUpdate:modelValue": n[1] ||= (e) => i("update", { border: e })
|
|
3156
3157
|
}, null, 8, ["model-value"])),
|
|
3157
|
-
y.value ? (a(), v("div",
|
|
3158
|
+
y.value ? (a(), v("div", ua, [
|
|
3158
3159
|
p(A, {
|
|
3159
3160
|
path: "wrapper",
|
|
3160
3161
|
label: h(c).section.wrapperEnable
|
|
@@ -3175,8 +3176,8 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3175
3176
|
])]),
|
|
3176
3177
|
_: 1
|
|
3177
3178
|
}, 8, ["label"]),
|
|
3178
|
-
C.value ? (a(), v("p",
|
|
3179
|
-
e.block.wrapper ? (a(), v("div",
|
|
3179
|
+
C.value ? (a(), v("p", da, r(h(c).section.wrapperLayoutConflict), 1)) : g("", !0),
|
|
3180
|
+
e.block.wrapper ? (a(), v("div", fa, [
|
|
3180
3181
|
p(A, {
|
|
3181
3182
|
path: "wrapper.fullWidth",
|
|
3182
3183
|
label: h(c).blockSettings.fullWidthBackground
|
|
@@ -3211,7 +3212,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3211
3212
|
path: "wrapper.backgroundImage",
|
|
3212
3213
|
label: h(c).blockSettings.backgroundImage
|
|
3213
3214
|
}, {
|
|
3214
|
-
default: u(() => [p(
|
|
3215
|
+
default: u(() => [p(Nn, {
|
|
3215
3216
|
"hide-label": "",
|
|
3216
3217
|
"model-value": e.block.wrapper.backgroundImage,
|
|
3217
3218
|
"testid-prefix": "section-wrapper",
|
|
@@ -3219,7 +3220,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3219
3220
|
}, null, 8, ["model-value"])]),
|
|
3220
3221
|
_: 1
|
|
3221
3222
|
}, 8, ["label"]),
|
|
3222
|
-
p(
|
|
3223
|
+
p(Sn, {
|
|
3223
3224
|
path: "wrapper.padding",
|
|
3224
3225
|
label: h(c).blockSettings.padding,
|
|
3225
3226
|
"model-value": e.block.wrapper.padding ?? {
|
|
@@ -3230,7 +3231,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3230
3231
|
},
|
|
3231
3232
|
"onUpdate:modelValue": re
|
|
3232
3233
|
}, null, 8, ["label", "model-value"]),
|
|
3233
|
-
p(
|
|
3234
|
+
p(Rt, {
|
|
3234
3235
|
path: "wrapper.borderRadius",
|
|
3235
3236
|
"model-value": e.block.wrapper.borderRadius,
|
|
3236
3237
|
label: h(c).section.borderRadius,
|
|
@@ -3242,7 +3243,90 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3242
3243
|
])) : g("", !0)
|
|
3243
3244
|
], 64));
|
|
3244
3245
|
}
|
|
3245
|
-
}),
|
|
3246
|
+
}), ma = /* @__PURE__ */ D({
|
|
3247
|
+
__name: "SocialCustomIconFields",
|
|
3248
|
+
props: { icon: {} },
|
|
3249
|
+
emits: ["update"],
|
|
3250
|
+
setup(e, { emit: t }) {
|
|
3251
|
+
let n = e, i = t, { t: o } = W(), { syntax: s } = bt(), c = _(), l = m(() => typeof n.icon.imageUrl == "string" ? n.icon.imageUrl : ""), d = m(() => G(l.value, s));
|
|
3252
|
+
function f(e) {
|
|
3253
|
+
return n.icon.id.includes(".") ? void 0 : `icons.${n.icon.id}.${e}`;
|
|
3254
|
+
}
|
|
3255
|
+
function x(e) {
|
|
3256
|
+
e !== l.value && i("update", {
|
|
3257
|
+
...n.icon,
|
|
3258
|
+
imageUrl: e
|
|
3259
|
+
});
|
|
3260
|
+
}
|
|
3261
|
+
function C(e) {
|
|
3262
|
+
i("update", {
|
|
3263
|
+
...n.icon,
|
|
3264
|
+
alt: e
|
|
3265
|
+
});
|
|
3266
|
+
}
|
|
3267
|
+
function T(e) {
|
|
3268
|
+
let t = {
|
|
3269
|
+
...n.icon,
|
|
3270
|
+
imageUrl: e.url
|
|
3271
|
+
};
|
|
3272
|
+
e.alt && (t.alt = e.alt), i("update", t);
|
|
3273
|
+
}
|
|
3274
|
+
let { canBrowse: E, isUploading: D, showOverlay: O, openMediaBrowser: k } = Xe({
|
|
3275
|
+
target: c,
|
|
3276
|
+
blocked: d,
|
|
3277
|
+
apply: T
|
|
3278
|
+
});
|
|
3279
|
+
return (t, n) => (a(), v(S, null, [p(A, {
|
|
3280
|
+
path: f("imageUrl"),
|
|
3281
|
+
label: h(o).image.imageUrl
|
|
3282
|
+
}, {
|
|
3283
|
+
default: u(() => [b("div", {
|
|
3284
|
+
ref_key: "dropZoneRef",
|
|
3285
|
+
ref: c,
|
|
3286
|
+
class: "tpl:relative"
|
|
3287
|
+
}, [
|
|
3288
|
+
h(O) ? (a(), w(Be, {
|
|
3289
|
+
key: 0,
|
|
3290
|
+
uploading: h(D)
|
|
3291
|
+
}, null, 8, ["uploading"])) : g("", !0),
|
|
3292
|
+
p(N, {
|
|
3293
|
+
"model-value": l.value,
|
|
3294
|
+
type: "url",
|
|
3295
|
+
placeholder: h(o).image.imageUrlPlaceholder,
|
|
3296
|
+
"onUpdate:modelValue": x
|
|
3297
|
+
}, null, 8, ["model-value", "placeholder"]),
|
|
3298
|
+
h(E) ? (a(), v("button", {
|
|
3299
|
+
key: 1,
|
|
3300
|
+
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",
|
|
3301
|
+
style: {
|
|
3302
|
+
"border-color": "var(--tpl-border)",
|
|
3303
|
+
color: "var(--tpl-primary)",
|
|
3304
|
+
"background-color": "var(--tpl-bg)"
|
|
3305
|
+
},
|
|
3306
|
+
onClick: n[0] ||= (...e) => h(k) && h(k)(...e)
|
|
3307
|
+
}, [p(h(it), {
|
|
3308
|
+
size: 14,
|
|
3309
|
+
"stroke-width": 1.5
|
|
3310
|
+
}), y(" " + r(h(o).image.browseMedia), 1)])) : g("", !0)
|
|
3311
|
+
], 512)]),
|
|
3312
|
+
_: 1
|
|
3313
|
+
}, 8, ["path", "label"]), p(A, {
|
|
3314
|
+
path: f("alt"),
|
|
3315
|
+
label: h(o).image.altText
|
|
3316
|
+
}, {
|
|
3317
|
+
default: u(() => [p(N, {
|
|
3318
|
+
"model-value": e.icon.alt ?? "",
|
|
3319
|
+
type: "text",
|
|
3320
|
+
placeholder: h(o).image.altTextPlaceholder,
|
|
3321
|
+
"onUpdate:modelValue": C
|
|
3322
|
+
}, null, 8, ["model-value", "placeholder"])]),
|
|
3323
|
+
_: 1
|
|
3324
|
+
}, 8, ["path", "label"])], 64));
|
|
3325
|
+
}
|
|
3326
|
+
}), ha = { class: "tpl:mb-3.5" }, ga = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, _a = { class: "tpl:flex tpl:items-center tpl:gap-2" }, va = ["value", "onChange"], ya = ["value"], ba = { value: "custom" }, xa = ["title", "onClick"], Sa = {
|
|
3327
|
+
key: 1,
|
|
3328
|
+
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
3329
|
+
}, Ca = ["value"], wa = { value: "solid" }, Ta = { value: "outlined" }, Ea = { value: "rounded" }, Da = { value: "square" }, Oa = { value: "circle" }, ka = { value: "plain" }, Aa = ["value"], ja = { value: "brand" }, Ma = { value: "dark" }, Na = { value: "light" }, Pa = { class: "tpl:flex tpl:items-stretch" }, Fa = ["value"], Ia = /* @__PURE__ */ D({
|
|
3246
3330
|
__name: "SocialToolbar",
|
|
3247
3331
|
props: { block: {} },
|
|
3248
3332
|
emits: ["update"],
|
|
@@ -3259,57 +3343,83 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3259
3343
|
};
|
|
3260
3344
|
i("update", { icons: [...n.block.icons, e] });
|
|
3261
3345
|
}
|
|
3262
|
-
function f(e
|
|
3263
|
-
|
|
3346
|
+
function f(e) {
|
|
3347
|
+
i("update", { icons: n.block.icons.map((t) => t.id === e.id ? e : t) });
|
|
3348
|
+
}
|
|
3349
|
+
function m(e, t, r) {
|
|
3350
|
+
i("update", { icons: n.block.icons.map((n) => n.id === e ? {
|
|
3264
3351
|
...n,
|
|
3265
3352
|
[t]: r
|
|
3266
|
-
} : n);
|
|
3267
|
-
|
|
3353
|
+
} : n) });
|
|
3354
|
+
}
|
|
3355
|
+
function _(e) {
|
|
3356
|
+
return e.platform === "custom";
|
|
3268
3357
|
}
|
|
3269
|
-
function
|
|
3358
|
+
function x(e, t) {
|
|
3359
|
+
t !== e.platform && f(t === "custom" ? {
|
|
3360
|
+
id: e.id,
|
|
3361
|
+
platform: "custom",
|
|
3362
|
+
url: e.url,
|
|
3363
|
+
imageUrl: ""
|
|
3364
|
+
} : {
|
|
3365
|
+
id: e.id,
|
|
3366
|
+
platform: t,
|
|
3367
|
+
url: e.url
|
|
3368
|
+
});
|
|
3369
|
+
}
|
|
3370
|
+
function C(e) {
|
|
3270
3371
|
i("update", { icons: n.block.icons.filter((t) => t.id !== e) });
|
|
3271
3372
|
}
|
|
3272
3373
|
return (t, n) => (a(), v(S, null, [
|
|
3273
|
-
b("div",
|
|
3374
|
+
b("div", ha, [b("label", { class: o(h(V)) }, r(h(c).social.icons), 3), b("div", ga, [(a(!0), v(S, null, s(e.block.icons, (e) => (a(), v("div", {
|
|
3274
3375
|
key: e.id,
|
|
3275
3376
|
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"
|
|
3276
|
-
}, [
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3377
|
+
}, [
|
|
3378
|
+
b("div", _a, [p(A, {
|
|
3379
|
+
path: e.id.includes(".") ? void 0 : `icons.${e.id}.platform`,
|
|
3380
|
+
label: h(c).social.icons
|
|
3381
|
+
}, {
|
|
3382
|
+
default: u(() => [b("select", {
|
|
3383
|
+
"data-testid": "social-platform-select",
|
|
3384
|
+
class: o([h(B), "tpl:flex-1"]),
|
|
3385
|
+
value: e.platform,
|
|
3386
|
+
onChange: (t) => x(e, t.target.value)
|
|
3387
|
+
}, [(a(!0), v(S, null, s(h(Je), (e) => (a(), v("option", {
|
|
3388
|
+
key: e,
|
|
3389
|
+
value: e
|
|
3390
|
+
}, r(h(c).social.platforms[e]), 9, ya))), 128)), b("option", ba, r(h(c).social.platforms.custom), 1)], 42, va)]),
|
|
3391
|
+
_: 2
|
|
3392
|
+
}, 1032, ["path", "label"]), b("button", {
|
|
3393
|
+
class: o(h(I)),
|
|
3394
|
+
title: h(c).social.removeIcon,
|
|
3395
|
+
onClick: (t) => C(e.id)
|
|
3396
|
+
}, [p(h(yt), {
|
|
3397
|
+
size: 14,
|
|
3398
|
+
"stroke-width": 2
|
|
3399
|
+
})], 10, xa)]),
|
|
3400
|
+
_(e) ? (a(), w(ma, {
|
|
3401
|
+
key: 0,
|
|
3402
|
+
icon: e,
|
|
3403
|
+
onUpdate: f
|
|
3404
|
+
}, null, 8, ["icon"])) : g("", !0),
|
|
3405
|
+
p(A, {
|
|
3406
|
+
path: e.id.includes(".") ? void 0 : `icons.${e.id}.url`,
|
|
3407
|
+
label: h(c).button.url
|
|
3408
|
+
}, {
|
|
3409
|
+
default: u(() => [p(N, {
|
|
3410
|
+
"model-value": e.url,
|
|
3411
|
+
type: "url",
|
|
3412
|
+
placeholder: h(c).social.urlPlaceholder,
|
|
3413
|
+
"onUpdate:modelValue": (t) => m(e.id, "url", t)
|
|
3414
|
+
}, null, 8, [
|
|
3415
|
+
"model-value",
|
|
3416
|
+
"placeholder",
|
|
3417
|
+
"onUpdate:modelValue"
|
|
3418
|
+
])]),
|
|
3419
|
+
_: 2
|
|
3420
|
+
}, 1032, ["path", "label"]),
|
|
3421
|
+
_(e) ? (a(), v("p", Sa, r(h(c).social.customIconHint), 1)) : g("", !0)
|
|
3422
|
+
]))), 128)), b("button", {
|
|
3313
3423
|
class: o(h(R)),
|
|
3314
3424
|
onClick: d
|
|
3315
3425
|
}, [p(h(Q), {
|
|
@@ -3326,13 +3436,13 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3326
3436
|
value: e.block.iconStyle,
|
|
3327
3437
|
onChange: n[0] ||= (e) => l("iconStyle", e.target.value)
|
|
3328
3438
|
}, [
|
|
3329
|
-
b("option",
|
|
3330
|
-
b("option",
|
|
3331
|
-
b("option",
|
|
3332
|
-
b("option",
|
|
3333
|
-
b("option",
|
|
3334
|
-
b("option",
|
|
3335
|
-
], 42,
|
|
3439
|
+
b("option", wa, r(h(c).social.styleSolid), 1),
|
|
3440
|
+
b("option", Ta, r(h(c).social.styleOutlined), 1),
|
|
3441
|
+
b("option", Ea, r(h(c).social.styleRounded), 1),
|
|
3442
|
+
b("option", Da, r(h(c).social.styleSquare), 1),
|
|
3443
|
+
b("option", Oa, r(h(c).social.styleCircle), 1),
|
|
3444
|
+
b("option", ka, r(h(c).social.stylePlain), 1)
|
|
3445
|
+
], 42, Ca)]),
|
|
3336
3446
|
_: 1
|
|
3337
3447
|
}, 8, ["label"]),
|
|
3338
3448
|
p(A, {
|
|
@@ -3346,10 +3456,10 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3346
3456
|
value: e.block.iconTone ?? "brand",
|
|
3347
3457
|
onChange: n[1] ||= (e) => l("iconTone", e.target.value)
|
|
3348
3458
|
}, [
|
|
3349
|
-
b("option",
|
|
3350
|
-
b("option",
|
|
3351
|
-
b("option",
|
|
3352
|
-
], 42,
|
|
3459
|
+
b("option", ja, r(h(c).social.colorBrand), 1),
|
|
3460
|
+
b("option", Ma, r(h(c).social.colorDark), 1),
|
|
3461
|
+
b("option", Na, r(h(c).social.colorLight), 1)
|
|
3462
|
+
], 42, Aa)]),
|
|
3353
3463
|
_: 1
|
|
3354
3464
|
}, 8, ["label"]),
|
|
3355
3465
|
p(A, {
|
|
@@ -3382,14 +3492,14 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3382
3492
|
class: "tpl:mb-3.5",
|
|
3383
3493
|
path: "spacing"
|
|
3384
3494
|
}, {
|
|
3385
|
-
default: u(() => [b("div",
|
|
3495
|
+
default: u(() => [b("div", Pa, [b("input", {
|
|
3386
3496
|
type: "number",
|
|
3387
3497
|
class: o(h(z)),
|
|
3388
3498
|
value: e.block.spacing,
|
|
3389
3499
|
min: "0",
|
|
3390
3500
|
max: "50",
|
|
3391
3501
|
onInput: n[3] ||= (e) => l("spacing", Number(e.target.value))
|
|
3392
|
-
}, null, 42,
|
|
3502
|
+
}, null, 42, Fa), b("span", { class: o(h(L)) }, "px", 2)])]),
|
|
3393
3503
|
_: 1
|
|
3394
3504
|
}, 8, ["label"]),
|
|
3395
3505
|
p(A, {
|
|
@@ -3422,7 +3532,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3422
3532
|
}, 8, ["label"])
|
|
3423
3533
|
], 64));
|
|
3424
3534
|
}
|
|
3425
|
-
}),
|
|
3535
|
+
}), La = { class: "tpl:flex tpl:items-stretch" }, Ra = ["value"], za = ["value"], Ba = /* @__PURE__ */ D({
|
|
3426
3536
|
__name: "SpacerToolbar",
|
|
3427
3537
|
props: { block: {} },
|
|
3428
3538
|
emits: ["update"],
|
|
@@ -3433,25 +3543,25 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3433
3543
|
class: "tpl:mb-3.5",
|
|
3434
3544
|
path: "height"
|
|
3435
3545
|
}, {
|
|
3436
|
-
default: u(() => [b("div",
|
|
3546
|
+
default: u(() => [b("div", La, [b("input", {
|
|
3437
3547
|
type: "number",
|
|
3438
3548
|
class: o(h(z)),
|
|
3439
3549
|
value: e.block.height,
|
|
3440
3550
|
min: "10",
|
|
3441
3551
|
max: "100",
|
|
3442
3552
|
onInput: i[0] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
3443
|
-
}, null, 42,
|
|
3553
|
+
}, null, 42, Ra), b("span", { class: o(h(L)) }, "px", 2)]), b("input", {
|
|
3444
3554
|
type: "range",
|
|
3445
3555
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
3446
3556
|
value: e.block.height,
|
|
3447
3557
|
min: "10",
|
|
3448
3558
|
max: "100",
|
|
3449
3559
|
onInput: i[1] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
3450
|
-
}, null, 40,
|
|
3560
|
+
}, null, 40, za)]),
|
|
3451
3561
|
_: 1
|
|
3452
3562
|
}, 8, ["label"]));
|
|
3453
3563
|
}
|
|
3454
|
-
}),
|
|
3564
|
+
}), Va = { class: "tpl:mb-3.5" }, Ha = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Ua = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Wa = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Ga = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Ka = ["disabled"], qa = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Ja = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Ya = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Xa = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Za = ["disabled"], Qa = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, $a = { class: "tpl:flex tpl:items-stretch" }, eo = ["value"], to = { class: "tpl:flex tpl:items-stretch" }, no = ["value"], ro = ["value"], io = { value: "" }, ao = ["value"], oo = { class: "tpl:flex tpl:items-stretch" }, so = ["value"], co = /* @__PURE__ */ D({
|
|
3455
3565
|
__name: "TableToolbar",
|
|
3456
3566
|
props: {
|
|
3457
3567
|
block: {},
|
|
@@ -3494,7 +3604,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3494
3604
|
i("update", { rows: t });
|
|
3495
3605
|
}
|
|
3496
3606
|
return (t, n) => (a(), v(S, null, [
|
|
3497
|
-
b("div",
|
|
3607
|
+
b("div", Va, [b("label", { class: o(h(V)) }, r(h(c).table.dimensions), 3), b("div", Ha, [b("div", Ua, [b("span", Wa, r(h(c).table.rows), 1), b("div", Ga, [
|
|
3498
3608
|
b("button", {
|
|
3499
3609
|
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",
|
|
3500
3610
|
disabled: e.block.rows.length <= 1,
|
|
@@ -3502,8 +3612,8 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3502
3612
|
}, [p(h(tt), {
|
|
3503
3613
|
size: 12,
|
|
3504
3614
|
"stroke-width": 2
|
|
3505
|
-
})], 8,
|
|
3506
|
-
b("span",
|
|
3615
|
+
})], 8, Ka),
|
|
3616
|
+
b("span", qa, r(e.block.rows.length), 1),
|
|
3507
3617
|
b("button", {
|
|
3508
3618
|
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)]",
|
|
3509
3619
|
onClick: f
|
|
@@ -3511,7 +3621,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3511
3621
|
size: 12,
|
|
3512
3622
|
"stroke-width": 2
|
|
3513
3623
|
})])
|
|
3514
|
-
])]), b("div",
|
|
3624
|
+
])]), b("div", Ja, [b("span", Ya, r(h(c).table.columns), 1), b("div", Xa, [
|
|
3515
3625
|
b("button", {
|
|
3516
3626
|
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",
|
|
3517
3627
|
disabled: l.value <= 1,
|
|
@@ -3519,8 +3629,8 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3519
3629
|
}, [p(h(tt), {
|
|
3520
3630
|
size: 12,
|
|
3521
3631
|
"stroke-width": 2
|
|
3522
|
-
})], 8,
|
|
3523
|
-
b("span",
|
|
3632
|
+
})], 8, Za),
|
|
3633
|
+
b("span", Qa, r(l.value), 1),
|
|
3524
3634
|
b("button", {
|
|
3525
3635
|
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)]",
|
|
3526
3636
|
onClick: y
|
|
@@ -3582,14 +3692,14 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3582
3692
|
class: "tpl:mb-3.5",
|
|
3583
3693
|
path: "borderWidth"
|
|
3584
3694
|
}, {
|
|
3585
|
-
default: u(() => [b("div",
|
|
3695
|
+
default: u(() => [b("div", $a, [b("input", {
|
|
3586
3696
|
type: "number",
|
|
3587
3697
|
class: o(h(z)),
|
|
3588
3698
|
value: e.block.borderWidth,
|
|
3589
3699
|
min: "0",
|
|
3590
3700
|
max: "10",
|
|
3591
3701
|
onInput: n[5] ||= (e) => d("borderWidth", Number(e.target.value))
|
|
3592
|
-
}, null, 42,
|
|
3702
|
+
}, null, 42, eo), b("span", { class: o(h(L)) }, "px", 2)])]),
|
|
3593
3703
|
_: 1
|
|
3594
3704
|
}, 8, ["label"]),
|
|
3595
3705
|
p(A, {
|
|
@@ -3597,14 +3707,14 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3597
3707
|
class: "tpl:mb-3.5",
|
|
3598
3708
|
path: "cellPadding"
|
|
3599
3709
|
}, {
|
|
3600
|
-
default: u(() => [b("div",
|
|
3710
|
+
default: u(() => [b("div", to, [b("input", {
|
|
3601
3711
|
type: "number",
|
|
3602
3712
|
class: o(h(z)),
|
|
3603
3713
|
value: e.block.cellPadding,
|
|
3604
3714
|
min: "0",
|
|
3605
3715
|
max: "30",
|
|
3606
3716
|
onInput: n[6] ||= (e) => d("cellPadding", Number(e.target.value))
|
|
3607
|
-
}, null, 42,
|
|
3717
|
+
}, null, 42, no), b("span", { class: o(h(L)) }, "px", 2)])]),
|
|
3608
3718
|
_: 1
|
|
3609
3719
|
}, 8, ["label"]),
|
|
3610
3720
|
p(A, {
|
|
@@ -3616,10 +3726,10 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3616
3726
|
class: o(h(B)),
|
|
3617
3727
|
value: h($e)(e.block.fontFamily),
|
|
3618
3728
|
onChange: n[7] ||= (e) => d("fontFamily", e.target.value || void 0)
|
|
3619
|
-
}, [b("option",
|
|
3729
|
+
}, [b("option", io, r(h(c).title.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
|
|
3620
3730
|
key: e.value,
|
|
3621
3731
|
value: e.value
|
|
3622
|
-
}, r(e.label), 9,
|
|
3732
|
+
}, r(e.label), 9, ao))), 128))], 42, ro)]),
|
|
3623
3733
|
_: 1
|
|
3624
3734
|
}, 8, ["label"]),
|
|
3625
3735
|
p(A, {
|
|
@@ -3627,14 +3737,14 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3627
3737
|
class: "tpl:mb-3.5",
|
|
3628
3738
|
path: "fontSize"
|
|
3629
3739
|
}, {
|
|
3630
|
-
default: u(() => [b("div",
|
|
3740
|
+
default: u(() => [b("div", oo, [b("input", {
|
|
3631
3741
|
type: "number",
|
|
3632
3742
|
class: o(h(z)),
|
|
3633
3743
|
value: e.block.fontSize,
|
|
3634
3744
|
min: "10",
|
|
3635
3745
|
max: "32",
|
|
3636
3746
|
onInput: n[8] ||= (e) => d("fontSize", Number(e.target.value))
|
|
3637
|
-
}, null, 42,
|
|
3747
|
+
}, null, 42, so), b("span", { class: o(h(L)) }, "px", 2)])]),
|
|
3638
3748
|
_: 1
|
|
3639
3749
|
}, 8, ["label"]),
|
|
3640
3750
|
p(A, {
|
|
@@ -3678,7 +3788,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3678
3788
|
}, 8, ["label"])
|
|
3679
3789
|
], 64));
|
|
3680
3790
|
}
|
|
3681
|
-
}),
|
|
3791
|
+
}), lo = ["value"], uo = { value: 1 }, fo = { value: 2 }, po = { value: 3 }, mo = { value: 4 }, ho = ["value"], go = { value: "" }, _o = ["value"], vo = /* @__PURE__ */ D({
|
|
3682
3792
|
__name: "TitleToolbar",
|
|
3683
3793
|
props: {
|
|
3684
3794
|
block: {},
|
|
@@ -3701,11 +3811,11 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3701
3811
|
value: e.block.level,
|
|
3702
3812
|
onChange: n[0] ||= (e) => c("level", Number(e.target.value))
|
|
3703
3813
|
}, [
|
|
3704
|
-
b("option",
|
|
3705
|
-
b("option",
|
|
3706
|
-
b("option",
|
|
3707
|
-
b("option",
|
|
3708
|
-
], 42,
|
|
3814
|
+
b("option", uo, r(h(i).title.heading1), 1),
|
|
3815
|
+
b("option", fo, r(h(i).title.heading2), 1),
|
|
3816
|
+
b("option", po, r(h(i).title.heading3), 1),
|
|
3817
|
+
b("option", mo, r(h(i).title.heading4), 1)
|
|
3818
|
+
], 42, lo)]),
|
|
3709
3819
|
_: 1
|
|
3710
3820
|
}, 8, ["label"]),
|
|
3711
3821
|
p(A, {
|
|
@@ -3717,10 +3827,10 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3717
3827
|
class: o(h(B)),
|
|
3718
3828
|
value: h($e)(e.block.fontFamily),
|
|
3719
3829
|
onChange: n[1] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
3720
|
-
}, [b("option",
|
|
3830
|
+
}, [b("option", go, r(h(i).title.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
|
|
3721
3831
|
key: e.value,
|
|
3722
3832
|
value: e.value
|
|
3723
|
-
}, r(e.label), 9,
|
|
3833
|
+
}, r(e.label), 9, _o))), 128))], 42, ho)]),
|
|
3724
3834
|
_: 1
|
|
3725
3835
|
}, 8, ["label"]),
|
|
3726
3836
|
p(A, {
|
|
@@ -3764,17 +3874,17 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3764
3874
|
}, 8, ["label"])
|
|
3765
3875
|
], 64));
|
|
3766
3876
|
}
|
|
3767
|
-
}),
|
|
3877
|
+
}), yo = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bo = [
|
|
3768
3878
|
"value",
|
|
3769
3879
|
"placeholder",
|
|
3770
3880
|
"title"
|
|
3771
|
-
],
|
|
3881
|
+
], xo = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, So = ["value"], Co = { value: "full" }, wo = { value: "custom" }, To = {
|
|
3772
3882
|
key: 0,
|
|
3773
3883
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
3774
|
-
},
|
|
3884
|
+
}, Eo = ["value"], Do = ["value"], Oo = { value: "auto" }, ko = { value: "custom" }, Ao = {
|
|
3775
3885
|
key: 0,
|
|
3776
3886
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
3777
|
-
},
|
|
3887
|
+
}, jo = ["value"], Mo = 350, No = 200, Po = /* @__PURE__ */ D({
|
|
3778
3888
|
__name: "VideoToolbar",
|
|
3779
3889
|
props: { block: {} },
|
|
3780
3890
|
emits: ["update"],
|
|
@@ -3795,7 +3905,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3795
3905
|
function M(e) {
|
|
3796
3906
|
if (e === "custom") {
|
|
3797
3907
|
let e = n.block.width;
|
|
3798
|
-
(typeof e != "number" || f.includes(e)) && j("width",
|
|
3908
|
+
(typeof e != "number" || f.includes(e)) && j("width", Mo);
|
|
3799
3909
|
} else j("width", e === "full" ? "full" : Number(e));
|
|
3800
3910
|
}
|
|
3801
3911
|
function F(e) {
|
|
@@ -3803,7 +3913,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3803
3913
|
!Number.isFinite(t) || t <= 0 || j("width", t);
|
|
3804
3914
|
}
|
|
3805
3915
|
function I(e) {
|
|
3806
|
-
j("height", e === "custom" ?
|
|
3916
|
+
j("height", e === "custom" ? No : void 0);
|
|
3807
3917
|
}
|
|
3808
3918
|
function ee(e) {
|
|
3809
3919
|
let t = Number(e);
|
|
@@ -3850,7 +3960,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3850
3960
|
class: "tpl:mb-3.5",
|
|
3851
3961
|
path: "placeholderUrl"
|
|
3852
3962
|
}, {
|
|
3853
|
-
label: u(() => [y(r(h(s).video.placeholderUrl) + " ", 1), b("span",
|
|
3963
|
+
label: u(() => [y(r(h(s).video.placeholderUrl) + " ", 1), b("span", yo, r(h(s).video.optional), 1)]),
|
|
3854
3964
|
default: u(() => [b("input", {
|
|
3855
3965
|
type: "url",
|
|
3856
3966
|
class: o(h(B)),
|
|
@@ -3858,14 +3968,14 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3858
3968
|
placeholder: h(s).video.placeholderUrlPlaceholder,
|
|
3859
3969
|
title: h(s).video.placeholderUrlTooltip,
|
|
3860
3970
|
onInput: n[2] ||= (e) => j("placeholderUrl", e.target.value)
|
|
3861
|
-
}, null, 42,
|
|
3971
|
+
}, null, 42, bo)]),
|
|
3862
3972
|
_: 1
|
|
3863
3973
|
})) : g("", !0),
|
|
3864
3974
|
p(A, {
|
|
3865
3975
|
class: "tpl:mb-3.5",
|
|
3866
3976
|
path: "thumbnailUrl"
|
|
3867
3977
|
}, {
|
|
3868
|
-
label: u(() => [y(r(h(s).video.customThumbnail) + " ", 1), b("span",
|
|
3978
|
+
label: u(() => [y(r(h(s).video.customThumbnail) + " ", 1), b("span", xo, r(h(s).video.optional), 1)]),
|
|
3869
3979
|
default: u(() => [p(N, {
|
|
3870
3980
|
"model-value": e.block.thumbnailUrl,
|
|
3871
3981
|
type: "url",
|
|
@@ -3915,19 +4025,19 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3915
4025
|
value: T.value,
|
|
3916
4026
|
onChange: n[5] ||= (e) => M(e.target.value)
|
|
3917
4027
|
}, [
|
|
3918
|
-
b("option",
|
|
4028
|
+
b("option", Co, r(h(s).video.fullWidth), 1),
|
|
3919
4029
|
n[10] ||= b("option", { value: "300" }, "300px", -1),
|
|
3920
4030
|
n[11] ||= b("option", { value: "400" }, "400px", -1),
|
|
3921
4031
|
n[12] ||= b("option", { value: "500" }, "500px", -1),
|
|
3922
|
-
b("option",
|
|
3923
|
-
], 42,
|
|
4032
|
+
b("option", wo, r(h(s).video.widthCustom), 1)
|
|
4033
|
+
], 42, So), T.value === "custom" ? (a(), v("div", To, [b("input", {
|
|
3924
4034
|
type: "number",
|
|
3925
4035
|
"data-testid": "video-width-input",
|
|
3926
4036
|
class: o(h(z)),
|
|
3927
4037
|
value: e.block.width,
|
|
3928
4038
|
min: "20",
|
|
3929
4039
|
onInput: n[6] ||= (e) => F(e.target.value)
|
|
3930
|
-
}, null, 42,
|
|
4040
|
+
}, null, 42, Eo), b("span", { class: o(h(L)) }, "px", 2)])) : g("", !0)]),
|
|
3931
4041
|
_: 1
|
|
3932
4042
|
}, 8, ["label"]),
|
|
3933
4043
|
p(A, {
|
|
@@ -3940,14 +4050,14 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3940
4050
|
"data-testid": "video-height-mode",
|
|
3941
4051
|
value: D.value,
|
|
3942
4052
|
onChange: n[7] ||= (e) => I(e.target.value)
|
|
3943
|
-
}, [b("option",
|
|
4053
|
+
}, [b("option", Oo, r(h(s).video.heightAuto), 1), b("option", ko, r(h(s).video.heightCustom), 1)], 42, Do), D.value === "custom" ? (a(), v("div", Ao, [b("input", {
|
|
3944
4054
|
type: "number",
|
|
3945
4055
|
"data-testid": "video-height-input",
|
|
3946
4056
|
class: o(h(z)),
|
|
3947
4057
|
value: e.block.height,
|
|
3948
4058
|
min: "20",
|
|
3949
4059
|
onInput: n[8] ||= (e) => ee(e.target.value)
|
|
3950
|
-
}, null, 42,
|
|
4060
|
+
}, null, 42, jo), b("span", { class: o(h(L)) }, "px", 2)])) : g("", !0)]),
|
|
3951
4061
|
_: 1
|
|
3952
4062
|
}, 8, ["label"]),
|
|
3953
4063
|
p(A, {
|
|
@@ -3977,7 +4087,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3977
4087
|
}, 8, ["label"])
|
|
3978
4088
|
], 64));
|
|
3979
4089
|
}
|
|
3980
|
-
}),
|
|
4090
|
+
}), Fo = ["aria-label"], Io = ["disabled", "inert"], Lo = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, Ro = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, zo = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Bo = { class: "tpl:flex tpl:gap-1" }, Vo = ["title"], Ho = ["title"], Uo = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Wo = /*@__PURE__*/ D({
|
|
3981
4091
|
__name: "Toolbar",
|
|
3982
4092
|
props: { block: {} },
|
|
3983
4093
|
emits: [
|
|
@@ -3986,7 +4096,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
3986
4096
|
"duplicate"
|
|
3987
4097
|
],
|
|
3988
4098
|
setup(e, { emit: t }) {
|
|
3989
|
-
let n = T(() => import("./CountdownToolbar-
|
|
4099
|
+
let n = T(() => import("./CountdownToolbar-DYFSFwkD.js")), o = e, s = t, { t: c } = W(), l = dt(), u = Ne(ke, "Toolbar"), d = E(Ae, []), f = m(() => o.block.type), _ = m(() => ue(o.block)), y = m(() => {
|
|
3990
4100
|
if (_.value) return d.find((e) => e.type === o.block.customType);
|
|
3991
4101
|
}), x = m(() => _.value ? y.value?.name ?? o.block.customType : Re(f.value, c)), S = m(() => Qe(u.fonts.value, "fontFamily" in o.block ? o.block.fontFamily : void 0));
|
|
3992
4102
|
function C(e) {
|
|
@@ -4000,7 +4110,7 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
4000
4110
|
disabled: !h(l),
|
|
4001
4111
|
inert: !h(l),
|
|
4002
4112
|
class: "tpl:contents"
|
|
4003
|
-
}, [b("div",
|
|
4113
|
+
}, [b("div", Lo, [b("div", Ro, [h(nt)[f.value] ? (a(), w(i(h(nt)[f.value]), {
|
|
4004
4114
|
key: 0,
|
|
4005
4115
|
size: 16,
|
|
4006
4116
|
"stroke-width": 1.5
|
|
@@ -4008,74 +4118,74 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
4008
4118
|
key: 1,
|
|
4009
4119
|
size: 16,
|
|
4010
4120
|
"stroke-width": 1.5
|
|
4011
|
-
})) : g("", !0), b("h3",
|
|
4121
|
+
})) : g("", !0), b("h3", zo, r(x.value), 1)]), b("div", Bo, [b("button", {
|
|
4012
4122
|
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)]",
|
|
4013
4123
|
title: h(c).toolbar.duplicate,
|
|
4014
4124
|
onClick: o[0] ||= (e) => s("duplicate")
|
|
4015
|
-
}, [p(h(
|
|
4125
|
+
}, [p(h(xt), {
|
|
4016
4126
|
size: 14,
|
|
4017
4127
|
"stroke-width": 2
|
|
4018
|
-
})], 8,
|
|
4128
|
+
})], 8, Vo), b("button", {
|
|
4019
4129
|
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)]",
|
|
4020
4130
|
title: h(c).toolbar.delete,
|
|
4021
4131
|
onClick: o[1] ||= (e) => s("delete")
|
|
4022
4132
|
}, [p(h(pt), {
|
|
4023
4133
|
size: 14,
|
|
4024
4134
|
"stroke-width": 2
|
|
4025
|
-
})], 8,
|
|
4135
|
+
})], 8, Ho)])]), b("div", Uo, [_.value ? (a(), w(fi, {
|
|
4026
4136
|
key: 0,
|
|
4027
4137
|
block: e.block,
|
|
4028
4138
|
onUpdateFieldValues: o[2] ||= (e) => s("update", { fieldValues: e }),
|
|
4029
4139
|
onUpdateDataSourceFetched: o[3] ||= (e) => s("update", { dataSourceFetched: e })
|
|
4030
|
-
}, null, 8, ["block"])) : f.value === "section" ? (a(), w(
|
|
4140
|
+
}, null, 8, ["block"])) : f.value === "section" ? (a(), w(pa, {
|
|
4031
4141
|
key: 1,
|
|
4032
4142
|
block: e.block,
|
|
4033
4143
|
onUpdate: C
|
|
4034
|
-
}, null, 8, ["block"])) : f.value === "title" ? (a(), w(
|
|
4144
|
+
}, null, 8, ["block"])) : f.value === "title" ? (a(), w(vo, {
|
|
4035
4145
|
key: 2,
|
|
4036
4146
|
block: e.block,
|
|
4037
4147
|
"font-families": S.value,
|
|
4038
4148
|
onUpdate: C
|
|
4039
|
-
}, null, 8, ["block", "font-families"])) : f.value === "paragraph" ? (a(), w(
|
|
4149
|
+
}, null, 8, ["block", "font-families"])) : f.value === "paragraph" ? (a(), w(na, {
|
|
4040
4150
|
key: 3,
|
|
4041
4151
|
block: e.block,
|
|
4042
4152
|
onUpdate: C
|
|
4043
|
-
}, null, 8, ["block"])) : f.value === "image" ? (a(), w(
|
|
4153
|
+
}, null, 8, ["block"])) : f.value === "image" ? (a(), w(Hi, {
|
|
4044
4154
|
key: 4,
|
|
4045
4155
|
block: e.block,
|
|
4046
4156
|
onUpdate: C
|
|
4047
|
-
}, null, 8, ["block"])) : f.value === "video" ? (a(), w(
|
|
4157
|
+
}, null, 8, ["block"])) : f.value === "video" ? (a(), w(Po, {
|
|
4048
4158
|
key: 5,
|
|
4049
4159
|
block: e.block,
|
|
4050
4160
|
onUpdate: C
|
|
4051
|
-
}, null, 8, ["block"])) : f.value === "button" ? (a(), w(
|
|
4161
|
+
}, null, 8, ["block"])) : f.value === "button" ? (a(), w($t, {
|
|
4052
4162
|
key: 6,
|
|
4053
4163
|
block: e.block,
|
|
4054
4164
|
"font-families": S.value,
|
|
4055
4165
|
onUpdate: C
|
|
4056
|
-
}, null, 8, ["block", "font-families"])) : f.value === "divider" ? (a(), w(
|
|
4166
|
+
}, null, 8, ["block", "font-families"])) : f.value === "divider" ? (a(), w(hi, {
|
|
4057
4167
|
key: 7,
|
|
4058
4168
|
block: e.block,
|
|
4059
4169
|
onUpdate: C
|
|
4060
|
-
}, null, 8, ["block"])) : f.value === "social" ? (a(), w(
|
|
4170
|
+
}, null, 8, ["block"])) : f.value === "social" ? (a(), w(Ia, {
|
|
4061
4171
|
key: 8,
|
|
4062
4172
|
block: e.block,
|
|
4063
4173
|
onUpdate: C
|
|
4064
|
-
}, null, 8, ["block"])) : f.value === "menu" ? (a(), w(
|
|
4174
|
+
}, null, 8, ["block"])) : f.value === "menu" ? (a(), w($i, {
|
|
4065
4175
|
key: 9,
|
|
4066
4176
|
block: e.block,
|
|
4067
4177
|
"font-families": S.value,
|
|
4068
4178
|
onUpdate: C
|
|
4069
|
-
}, null, 8, ["block", "font-families"])) : f.value === "table" ? (a(), w(
|
|
4179
|
+
}, null, 8, ["block", "font-families"])) : f.value === "table" ? (a(), w(co, {
|
|
4070
4180
|
key: 10,
|
|
4071
4181
|
block: e.block,
|
|
4072
4182
|
"font-families": S.value,
|
|
4073
4183
|
onUpdate: C
|
|
4074
|
-
}, null, 8, ["block", "font-families"])) : f.value === "spacer" ? (a(), w(
|
|
4184
|
+
}, null, 8, ["block", "font-families"])) : f.value === "spacer" ? (a(), w(Ba, {
|
|
4075
4185
|
key: 11,
|
|
4076
4186
|
block: e.block,
|
|
4077
4187
|
onUpdate: C
|
|
4078
|
-
}, null, 8, ["block"])) : f.value === "html" ? (a(), w(
|
|
4188
|
+
}, null, 8, ["block"])) : f.value === "html" ? (a(), w(vi, {
|
|
4079
4189
|
key: 12,
|
|
4080
4190
|
block: e.block,
|
|
4081
4191
|
onUpdate: C
|
|
@@ -4084,11 +4194,11 @@ var ra = { class: "tpl:mb-3.5" }, ia = ["value"], aa = ["value"], oa = {
|
|
|
4084
4194
|
block: e.block,
|
|
4085
4195
|
"font-families": S.value,
|
|
4086
4196
|
onUpdate: C
|
|
4087
|
-
}, null, 8, ["block", "font-families"])) : g("", !0), p(
|
|
4197
|
+
}, null, 8, ["block", "font-families"])) : g("", !0), p(Er, {
|
|
4088
4198
|
block: e.block,
|
|
4089
4199
|
"is-first-section": f.value === "paragraph",
|
|
4090
4200
|
onUpdate: C
|
|
4091
|
-
}, null, 8, ["block", "is-first-section"])])], 8,
|
|
4201
|
+
}, null, 8, ["block", "is-first-section"])])], 8, Io)], 8, Fo));
|
|
4092
4202
|
}
|
|
4093
|
-
}),
|
|
4094
|
-
export {
|
|
4203
|
+
}), Go = /* @__PURE__ */ e({ default: () => Ko }), Ko = /*#__PURE__*/ rt(Wo, [["__scopeId", "data-v-206f038f"]]);
|
|
4204
|
+
export { Ko as default, kt as n, $ as r, Go as t };
|