@templatical/editor 0.59.2 → 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-BhWHOOKX.js → AiAltTextPopover-DSA1wiiW.js} +1 -1
- package/dist/{AiAltTextReview-CmW7pLmo.js → AiAltTextReview-B9-vfzCj.js} +1 -1
- package/dist/{AiChatPanel-CV0mCtad.js → AiChatPanel-DPoq2Til.js} +8 -8
- package/dist/{AiPanels-C8M7q_vM.js → AiPanels-UdfhAzzu.js} +1 -1
- package/dist/{AiRewriteMenu-DC2ZLH5L.js → AiRewriteMenu-BaeMlSEx.js} +8 -8
- package/dist/{BlockIssueBadge-B8sl9BM1.js → BlockIssueBadge-DQ_6NI4p.js} +2 -2
- package/dist/{BlockPreviewCanvas-yhOQAQhJ.js → BlockPreviewCanvas-DWDfih6j.js} +19 -44
- package/dist/{CloudPanels-CD0lsL0R.js → CloudPanels-ClHDM3ge.js} +3 -3
- package/dist/{CollaborationNotices-DrMrP73M.js → CollaborationNotices-PqWv0q8W.js} +1 -1
- package/dist/{CollaboratorBar-TsK872uC.js → CollaboratorBar-p-_PWqXW.js} +1 -1
- package/dist/{CommentsPanel-BX8JVrXU.js → CommentsPanel-BUo-YhSX.js} +1 -1
- package/dist/{CommentsSidebar-BUlseNwL.js → CommentsSidebar-D_Pz7FPz.js} +10 -10
- package/dist/{CountdownToolbar-dx3FVRjh.js → CountdownToolbar-DYFSFwkD.js} +4 -4
- package/dist/{IssuesPanel-BwnvXxBC.js → IssuesPanel-C7mBrK6a.js} +9 -9
- package/dist/{LanguageMenu-Cf5bKocE.js → LanguageMenu-f7js1FF8.js} +12 -12
- package/dist/{LocaleNotices-CGEp0pQ8.js → LocaleNotices-CAvDAawJ.js} +2 -2
- package/dist/{LogicTagInsertButton-BdDe-vrZ.js → LogicTagInsertButton-Clc3JTg_.js} +16 -16
- package/dist/{MediaEditModal-BWOqjEZN.js → MediaEditModal-YXOL0d_y.js} +1 -1
- package/dist/{MediaPanels-C-XrldMu.js → MediaPanels-VCv5epgs.js} +1 -1
- package/dist/{MergeTagInput-CTTi-eB0.js → MergeTagInput-B5a9noTB.js} +1 -1
- package/dist/{MergeTagModeToggle-Bd0svGQm.js → MergeTagModeToggle-D1r2aH5x.js} +4 -4
- package/dist/{MergeTagTextarea-DiahMV-3.js → MergeTagTextarea-CA9dPfMH.js} +5 -5
- package/dist/{ParagraphEditor-Db1cmj8Y.js → ParagraphEditor-ByzfpepN.js} +43 -43
- package/dist/{RestoreVersionDialog-DA1Z0q9Z.js → RestoreVersionDialog-Da5sTCFI.js} +3 -3
- package/dist/{RichTextEditorContent-CyO6e4ZG.js → RichTextEditorContent-gnRxu4-L.js} +4 -4
- package/dist/{SaveBlockDialog-D7SaFxa_.js → SaveBlockDialog-BM1Fki_2.js} +7 -7
- package/dist/{SavedBlocksBrowserModal-B5r3LWWG.js → SavedBlocksBrowserModal-DHOTdJKB.js} +9 -9
- package/dist/{SavedBlocksPanels-BH2f7jm-.js → SavedBlocksPanels-BJ2OM0cG.js} +1 -1
- package/dist/{SavedBlocksPickBar-B24TScw0.js → SavedBlocksPickBar-C4Bv1K_9.js} +2 -2
- package/dist/{TemplateSettings-CuN9Vkl_.js → TemplateSettings-DsaSsCC8.js} +8 -8
- package/dist/{TestEmailModal-C4DAaohi.js → TestEmailModal-CMo0cJik.js} +8 -8
- package/dist/{TestEmailPanel-DoMcVJSE.js → TestEmailPanel-B2OoOy9K.js} +1 -1
- package/dist/{TitleEditor-b5Pr_m9j.js → TitleEditor--gFbrR7V.js} +9 -9
- package/dist/{Toolbar-BOf7Y862.js → Toolbar-UXT03-Dc.js} +1003 -792
- package/dist/{TplModal-DAcXzBJh.js → TplModal-DkoyIwy1.js} +1 -1
- package/dist/{VersionHistoryMenu-TbIGteNi.js → VersionHistoryMenu-D-RCk3oB.js} +5 -5
- package/dist/{VersionHistoryPanels-Ia6ipOqG.js → VersionHistoryPanels-TzzRlmqK.js} +1 -1
- package/dist/{VersionPreviewBanner-CRfu6quf.js → VersionPreviewBanner-DMg2sw3V.js} +1 -1
- package/dist/{WrapperBlock-BZenrXM6.js → WrapperBlock-B4mdW2CP.js} +3 -3
- package/dist/{blockTypeIcons-DdYZy8yG.js → blockTypeIcons-MX-xQH_Z.js} +3 -3
- package/dist/bundle-stats.json +6 -6
- package/dist/{cdn/chunks/ca-YfIxwO1G.js → ca-C8N05sCU.js} +10 -4
- package/dist/cdn/chunks/{AiAltTextPopover-CcX_OMUU.js → AiAltTextPopover-BLNN_Pnd.js} +2 -2
- package/dist/cdn/chunks/AiAltTextPopover-BLNN_Pnd.js.map +1 -0
- package/dist/cdn/chunks/{AiAltTextReview-Dmm3h0jd.js → AiAltTextReview-Db8vSNpe.js} +2 -2
- package/dist/cdn/chunks/AiAltTextReview-Db8vSNpe.js.map +1 -0
- package/dist/cdn/chunks/{AiChatPanel-DV23DJ-2.js → AiChatPanel-cIT2haLo.js} +2 -2
- package/dist/cdn/chunks/AiChatPanel-cIT2haLo.js.map +1 -0
- package/dist/cdn/chunks/{AiPanels-CxhOpMAp.js → AiPanels-B4GG8w3J.js} +2 -2
- package/dist/cdn/chunks/AiPanels-B4GG8w3J.js.map +1 -0
- package/dist/cdn/chunks/{AiRewriteMenu-87-O514r.js → AiRewriteMenu-C34wZVcW.js} +6 -6
- package/dist/cdn/chunks/AiRewriteMenu-C34wZVcW.js.map +1 -0
- package/dist/cdn/chunks/{BlockIssueBadge-Dp06vQd3.js → BlockIssueBadge-C50pmOMZ.js} +2 -2
- package/dist/cdn/chunks/BlockIssueBadge-C50pmOMZ.js.map +1 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-DQGzUvZ5.js → BlockPreviewCanvas-CUOrwkWR.js} +20 -45
- package/dist/cdn/chunks/BlockPreviewCanvas-CUOrwkWR.js.map +1 -0
- package/dist/cdn/chunks/CloudHeaderExtras-Cd-ePldd.js.map +1 -1
- package/dist/cdn/chunks/{CloudPanels-D8fchoYt.js → CloudPanels-BAGDHObm.js} +3 -3
- package/dist/cdn/chunks/CloudPanels-BAGDHObm.js.map +1 -0
- package/dist/cdn/chunks/{CollaborationNotices-DNEs3g9B.js → CollaborationNotices-CTmjjbHv.js} +2 -2
- package/dist/cdn/chunks/CollaborationNotices-CTmjjbHv.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-CN6XAlbn.js → CollaboratorBar-CzHjawjF.js} +2 -2
- package/dist/cdn/chunks/CollaboratorBar-CzHjawjF.js.map +1 -0
- package/dist/cdn/chunks/{CommentsPanel-CxZ1kFcK.js → CommentsPanel-Dh0_eRBe.js} +2 -2
- package/dist/cdn/chunks/CommentsPanel-Dh0_eRBe.js.map +1 -0
- package/dist/cdn/chunks/{CommentsSidebar-DCr2mV8b.js → CommentsSidebar-JxZ-O2mY.js} +2 -2
- package/dist/cdn/chunks/CommentsSidebar-JxZ-O2mY.js.map +1 -0
- package/dist/cdn/chunks/CountdownBlock--hlKE2aj.js.map +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CUTbVPPV.js → CountdownToolbar-BBiK9EaU.js} +5 -5
- package/dist/cdn/chunks/CountdownToolbar-BBiK9EaU.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-BhcSzwuL.js → IssuesPanel-BtAn12hl.js} +4 -4
- package/dist/cdn/chunks/IssuesPanel-BtAn12hl.js.map +1 -0
- package/dist/cdn/chunks/{LanguageMenu-6wGhkyFT.js → LanguageMenu-BDldm-Hp.js} +7 -7
- package/dist/cdn/chunks/LanguageMenu-BDldm-Hp.js.map +1 -0
- package/dist/cdn/chunks/{LocaleNotices-Br92Xueo.js → LocaleNotices-CzrNKR-N.js} +2 -2
- package/dist/cdn/chunks/LocaleNotices-CzrNKR-N.js.map +1 -0
- package/dist/cdn/chunks/{LogicTagInsertButton-r2EVUtDU.js → LogicTagInsertButton-B4wuPoMa.js} +5 -5
- package/dist/cdn/chunks/LogicTagInsertButton-B4wuPoMa.js.map +1 -0
- package/dist/cdn/chunks/{MediaEditModal-CfgN7Jyi.js → MediaEditModal-DJ2wxInt.js} +2 -2
- package/dist/cdn/chunks/MediaEditModal-DJ2wxInt.js.map +1 -0
- package/dist/cdn/chunks/{MediaPanels-Cb5vsgb-.js → MediaPanels-BJawNjr9.js} +2 -2
- package/dist/cdn/chunks/MediaPanels-BJawNjr9.js.map +1 -0
- package/dist/cdn/chunks/{MergeTagInput-Dh3N6CEV.js → MergeTagInput-DZD-p4nR.js} +2 -2
- package/dist/cdn/chunks/MergeTagInput-DZD-p4nR.js.map +1 -0
- package/dist/cdn/chunks/{MergeTagModeToggle-D6u3hMrI.js → MergeTagModeToggle-DGuJCgqO.js} +3 -3
- package/dist/cdn/chunks/MergeTagModeToggle-DGuJCgqO.js.map +1 -0
- package/dist/cdn/chunks/{MergeTagTextarea-BpVtpiNL.js → MergeTagTextarea-BRiaRBr_.js} +7 -7
- package/dist/cdn/chunks/MergeTagTextarea-BRiaRBr_.js.map +1 -0
- package/dist/cdn/chunks/{ParagraphEditor-DGJmPAC1.js → ParagraphEditor-CPYQXRIc.js} +23 -23
- package/dist/cdn/chunks/ParagraphEditor-CPYQXRIc.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-D5qeCa0F.js → RestoreVersionDialog-NjbHial9.js} +3 -3
- package/dist/cdn/chunks/RestoreVersionDialog-NjbHial9.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-DyGiXKKI.js → RichTextEditorContent-CtV0Q0SO.js} +4 -4
- package/dist/cdn/chunks/RichTextEditorContent-CtV0Q0SO.js.map +1 -0
- package/dist/cdn/chunks/{SaveBlockDialog-B0TJYxd8.js → SaveBlockDialog-BZqPkGrE.js} +6 -6
- package/dist/cdn/chunks/SaveBlockDialog-BZqPkGrE.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-D8Ly7LrA.js → SavedBlocksBrowserModal-CqfyRtlX.js} +6 -6
- package/dist/cdn/chunks/SavedBlocksBrowserModal-CqfyRtlX.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksPanels-Co1cbWR8.js → SavedBlocksPanels-BILHEdkP.js} +2 -2
- package/dist/cdn/chunks/SavedBlocksPanels-BILHEdkP.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksPickBar-DNtVbpm-.js → SavedBlocksPickBar-C9NKqOEU.js} +3 -3
- package/dist/cdn/chunks/SavedBlocksPickBar-C9NKqOEU.js.map +1 -0
- package/dist/cdn/chunks/{TemplateSettings-BRc878ZF.js → TemplateSettings--_ZfbhnU.js} +6 -6
- package/dist/cdn/chunks/TemplateSettings--_ZfbhnU.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailModal-CIui7VfS.js → TestEmailModal-CtfoV82K.js} +7 -7
- package/dist/cdn/chunks/TestEmailModal-CtfoV82K.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel-vKvruW_r.js → TestEmailPanel-NK26SU2u.js} +2 -2
- package/dist/cdn/chunks/TestEmailPanel-NK26SU2u.js.map +1 -0
- package/dist/cdn/chunks/{TitleEditor-BI-9Nnj3.js → TitleEditor-DXN_aOn0.js} +8 -8
- package/dist/cdn/chunks/TitleEditor-DXN_aOn0.js.map +1 -0
- package/dist/cdn/chunks/ToggleSwitch-C0w0srN_.js.map +1 -1
- package/dist/cdn/chunks/{Toolbar-CYnnArxv.js → Toolbar-HCxD4Ifc.js} +918 -707
- package/dist/cdn/chunks/Toolbar-HCxD4Ifc.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-B3nZeGWK.js → TplModal-DzHoLmGo.js} +2 -2
- package/dist/cdn/chunks/TplModal-DzHoLmGo.js.map +1 -0
- package/dist/cdn/chunks/{VersionHistoryMenu-CMGfAKuV.js → VersionHistoryMenu-CVGlUPwS.js} +2 -2
- package/dist/cdn/chunks/VersionHistoryMenu-CVGlUPwS.js.map +1 -0
- package/dist/cdn/chunks/{VersionHistoryPanels-Bb2ouQg7.js → VersionHistoryPanels-Du8sQry2.js} +2 -2
- package/dist/cdn/chunks/VersionHistoryPanels-Du8sQry2.js.map +1 -0
- package/dist/cdn/chunks/{VersionPreviewBanner-573UP-g4.js → VersionPreviewBanner-5RFz4AQx.js} +2 -2
- package/dist/cdn/chunks/VersionPreviewBanner-5RFz4AQx.js.map +1 -0
- package/dist/cdn/chunks/{WrapperBlock-DVu632LD.js → WrapperBlock-DTayPD6Q.js} +4 -4
- package/dist/cdn/chunks/WrapperBlock-DTayPD6Q.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-CGxNYHVA.js → blockTypeIcons-BOonB9gK.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-CGxNYHVA.js.map → blockTypeIcons-BOonB9gK.js.map} +1 -1
- package/dist/{ca-YfIxwO1G.js → cdn/chunks/ca-C8N05sCU.js} +12 -2
- package/dist/cdn/chunks/ca-C8N05sCU.js.map +1 -0
- package/dist/cdn/chunks/{composables-DY3anqHO.js → composables-BJBr8B4t.js} +611 -592
- package/dist/cdn/chunks/composables-BJBr8B4t.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-B5numxlW.js → createCloudRuntime-CUlw09ix.js} +3 -3
- package/dist/cdn/chunks/{createCloudRuntime-B5numxlW.js.map → createCloudRuntime-CUlw09ix.js.map} +1 -1
- package/dist/{da-CM6DCvRG.js → cdn/chunks/da-Dno_4nGy.js} +12 -2
- package/dist/cdn/chunks/da-Dno_4nGy.js.map +1 -0
- package/dist/{de-Dugz1zXC.js → cdn/chunks/de-DRR5JSkh.js} +12 -2
- package/dist/cdn/chunks/de-DRR5JSkh.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-CXSSZplR.js → editor-modal-BVM_0uoL.js} +4 -4
- package/dist/cdn/chunks/editor-modal-BVM_0uoL.js.map +1 -0
- package/dist/{en-BykoFuFY.js → cdn/chunks/en-DAcLbbpg.js} +12 -2
- package/dist/cdn/chunks/en-DAcLbbpg.js.map +1 -0
- package/dist/cdn/chunks/en-DlDEofnd.js +1 -0
- package/dist/{es-DaWsTkpj.js → cdn/chunks/es-BcEQLQxe.js} +12 -2
- package/dist/cdn/chunks/es-BcEQLQxe.js.map +1 -0
- package/dist/cdn/chunks/{extensions-BWVlr8Ga.js → extensions-BPZirXpF.js} +5 -5
- package/dist/cdn/chunks/extensions-BPZirXpF.js.map +1 -0
- package/dist/{fr-DqwQHtJo.js → cdn/chunks/fr-CNQG7ESr.js} +12 -2
- package/dist/cdn/chunks/fr-CNQG7ESr.js.map +1 -0
- package/dist/cdn/chunks/{icons-C7vjUBLn.js → icons-CWEBTtbR.js} +23 -23
- package/dist/cdn/chunks/{icons-C7vjUBLn.js.map → icons-CWEBTtbR.js.map} +1 -1
- package/dist/cdn/chunks/{ja-BH4MS1Ye.js → ja-CMxWxqSH.js} +11 -3
- package/dist/cdn/chunks/ja-CMxWxqSH.js.map +1 -0
- package/dist/{nl-BQl1_UHv.js → cdn/chunks/nl-BjyYZDkC.js} +12 -2
- package/dist/cdn/chunks/nl-BjyYZDkC.js.map +1 -0
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-Dw3rFvyd.js → normalizeMergeTagMarkup-CExCfSYI.js} +64 -64
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-Dw3rFvyd.js.map → normalizeMergeTagMarkup-CExCfSYI.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-BGtb8Xbp.js → preRenderCustomBlocks-BLVFtvl8.js} +2 -2
- package/dist/cdn/chunks/{preRenderCustomBlocks-BGtb8Xbp.js.map → preRenderCustomBlocks-BLVFtvl8.js.map} +1 -1
- package/dist/{pt-BR-eyzmU9Vs.js → cdn/chunks/pt-BR-DC2A3C0v.js} +12 -2
- package/dist/cdn/chunks/pt-BR-DC2A3C0v.js.map +1 -0
- package/dist/cdn/chunks/{sanitizeHtml-CLRY8s2s.js → sanitizeHtml-Db0S2JVP.js} +2 -2
- package/dist/cdn/chunks/{sanitizeHtml-CLRY8s2s.js.map → sanitizeHtml-Db0S2JVP.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-kYhdXJ9P.js → socialIcons-WD1cjZDr.js} +495 -517
- package/dist/cdn/chunks/socialIcons-WD1cjZDr.js.map +1 -0
- package/dist/cdn/chunks/{src-DY2kMjoD.js → src-A0kzK-pR.js} +775 -667
- package/dist/cdn/chunks/src-A0kzK-pR.js.map +1 -0
- package/dist/cdn/chunks/src-C9opbQj_.js +684 -0
- package/dist/cdn/chunks/src-C9opbQj_.js.map +1 -0
- package/dist/cdn/chunks/{src-BmzzkUf7.js → src-edESkGqO.js} +708 -603
- package/dist/cdn/chunks/src-edESkGqO.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-B7gxx0aJ.js → tiptap-D9amDW4u.js} +1030 -1027
- package/dist/cdn/chunks/tiptap-D9amDW4u.js.map +1 -0
- package/dist/cdn/chunks/useLocalizedDisplay-Brdkp3KH.js +33 -0
- package/dist/cdn/chunks/{useLocalizedDisplay-B5wMJLru.js.map → useLocalizedDisplay-Brdkp3KH.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-0wkSxy3z.js → useLogicTag-CKtQlJDa.js} +2 -2
- package/dist/cdn/chunks/{useLogicTag-0wkSxy3z.js.map → useLogicTag-CKtQlJDa.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-y3bX8M_6.js → useMergeTag-Dwy3U0PI.js} +2 -2
- package/dist/cdn/chunks/{useMergeTag-y3bX8M_6.js.map → useMergeTag-Dwy3U0PI.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-B42BKo9N.js → withCurrentFont-C4pIesdB.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-B42BKo9N.js.map → withCurrentFont-C4pIesdB.js.map} +1 -1
- package/dist/cdn/editor.js +109 -109
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-ErKdPXG6.js → check-C82yyyf1.js} +1 -1
- package/dist/{chevron-down-C_vv5fZE.js → chevron-down-BaBVjNbM.js} +1 -1
- package/dist/{chevron-right-Cw4GpjFA.js → chevron-right-DkS-bw8X.js} +1 -1
- package/dist/{chevron-up-uijYZoph.js → chevron-up-C1KzUIK4.js} +1 -1
- package/dist/{circle-exclamation-point-CIYHx5Tw.js → circle-exclamation-point-DsmqtTUQ.js} +1 -1
- package/dist/{clock-tnC1IvZk.js → clock-dpIs7vo0.js} +1 -1
- package/dist/{composables-CFTH0Nqb.js → composables-DjCuq6RV.js} +1399 -1380
- package/dist/{createCloudRuntime-BvWlm_38.js → createCloudRuntime-CiEo0wkr.js} +2 -2
- package/dist/{createLucideIcon-CssArtUe.js → createLucideIcon-BSam2AUu.js} +5 -5
- package/dist/{cdn/chunks/da-CM6DCvRG.js → da-Dno_4nGy.js} +10 -4
- package/dist/{cdn/chunks/de-Dugz1zXC.js → de-DRR5JSkh.js} +10 -4
- package/dist/dist-AyAOL8Bj.js +4 -0
- package/dist/{dist-BTUMr4Pb.js → dist-BNrGwgev.js} +2 -2
- package/dist/{dist-CsplpC_6.js → dist-BPVNNdTv.js} +2 -2
- package/dist/{dist-bWIkrMkM.js → dist-C7YLw60i.js} +2 -2
- package/dist/{dist-Clfx1JeL.js → dist-CBnAqr27.js} +2 -2
- package/dist/{dist-CkHJRChP.js → dist-COvAA64n.js} +2 -2
- package/dist/{dist-C-NRkFsp.js → dist-CuRjmtWu.js} +5 -5
- package/dist/{dist-HKEDfp__.js → dist-DG_AWt8v.js} +2 -2
- package/dist/{dist-CMo4K5So.js → dist-DX_IQgcU.js} +802 -696
- package/dist/{dist-DY3WbyCO.js → dist-DYtuc3jc.js} +2 -2
- package/dist/dist-DkPTWQuO.js +4 -0
- package/dist/{dist-DwpKFWF4.js → dist-DoWk1r7z.js} +77 -74
- package/dist/{dist-BlrlMP8f.js → dist-fDsB6dCL.js} +2 -2
- package/dist/{editor-modal-BWvxfSj8.js → editor-modal-odubnc9x.js} +15 -15
- package/dist/en-CAImT1hl.js +1 -0
- package/dist/{cdn/chunks/en-BykoFuFY.js → en-DAcLbbpg.js} +10 -4
- package/dist/{cdn/chunks/es-DaWsTkpj.js → es-BcEQLQxe.js} +10 -4
- package/dist/{extensions-BPVackEE.js → extensions-C7OLgMEj.js} +73 -73
- package/dist/{eye-DK4--qHk.js → eye-CxCHEszj.js} +1 -1
- package/dist/{cdn/chunks/fr-DqwQHtJo.js → fr-CNQG7ESr.js} +10 -4
- package/dist/{image-B5pJOw5Q.js → image-DvXPzqNd.js} +1 -1
- package/dist/index.d.ts +72 -13
- package/dist/{info-DKM0_thN.js → info-2KHWaZ2L.js} +1 -1
- package/dist/{ja-BH4MS1Ye.js → ja-CMxWxqSH.js} +10 -2
- package/dist/{link-BNgTZ_Sw.js → link-_OmrcJMv.js} +1 -1
- package/dist/{list-Bqynqm7o.js → list-Dekd7JE8.js} +1 -1
- package/dist/{loader-circle-BMc3fVpa.js → loader-circle-D_hT5mFS.js} +1 -1
- package/dist/{message-circle-D_TpvAJh.js → message-circle-DDbiG-jz.js} +1 -1
- package/dist/{cdn/chunks/nl-BQl1_UHv.js → nl-BjyYZDkC.js} +10 -4
- package/dist/{normalizeMergeTagMarkup-PQqrbfmt.js → normalizeMergeTagMarkup-Cv5Wvs5f.js} +45 -45
- package/dist/{package-D2fov5PU.js → package-cORUe57D.js} +1 -1
- package/dist/{pencil-BNdkJyfY.js → pencil-D67H4fxq.js} +1 -1
- package/dist/{plus-CWmBmMx-.js → plus-BpTZAx28.js} +1 -1
- package/dist/{preRenderCustomBlocks-Dg5GBNi2.js → preRenderCustomBlocks-6CLw2rP6.js} +3 -3
- package/dist/{cdn/chunks/pt-BR-eyzmU9Vs.js → pt-BR-DC2A3C0v.js} +10 -4
- package/dist/{refresh-cw-Ryg1j66N.js → refresh-cw-B4T0IFwI.js} +1 -1
- package/dist/{rotate-ccw-D8j7gXXv.js → rotate-ccw-BDQgjpuo.js} +1 -1
- package/dist/{sanitizeHtml-DVdfdxOz.js → sanitizeHtml-Ru5_-IbM.js} +6 -6
- package/dist/{search-CX2JkSHz.js → search-Dp9pkaVt.js} +1 -1
- package/dist/{send-BLR1b-p5.js → send-DO9GhgCH.js} +1 -1
- package/dist/{smartphone-Co8m0LLg.js → smartphone-CPW3I3hV.js} +1 -1
- package/dist/{socialIcons-DBHv_ntg.js → socialIcons-CPBiLTjY.js} +561 -583
- package/dist/{sparkles-Dc3Undp5.js → sparkles-CIBjNfij.js} +1 -1
- package/dist/{square-CPw_cyX8.js → square-3W65qrrH.js} +1 -1
- package/dist/templatical-editor.js +139 -139
- package/dist/{text-align-start-2VZGhCiK.js → text-align-start-Bs70tpRU.js} +1 -1
- package/dist/{trash-t6XXliVc.js → trash-CTzhAm1o.js} +1 -1
- package/dist/{triangle-exclamation-point-_YYWE2ZH.js → triangle-exclamation-point-D_13CuJY.js} +1 -1
- package/dist/{upload-BWYXWYHb.js → upload-DFxkP9MI.js} +1 -1
- package/dist/useLocalizedDisplay-DfiE-KjV.js +31 -0
- package/dist/{useLogicTag-CVOj0VUv.js → useLogicTag-K5CPoMTk.js} +1 -1
- package/dist/{useMergeTag-Bams_kam.js → useMergeTag-tsU_Sw2x.js} +3 -3
- package/dist/{useScrollToBlock-CwUQ_nKz.js → useScrollToBlock-194ePl4q.js} +1 -1
- package/dist/withCurrentFont-C-_IYTqP.js +18 -0
- package/dist/{x-CTKOxIyZ.js → x-D7L8mLHJ.js} +1 -1
- package/package.json +22 -22
- package/dist/cdn/chunks/AiAltTextPopover-CcX_OMUU.js.map +0 -1
- package/dist/cdn/chunks/AiAltTextReview-Dmm3h0jd.js.map +0 -1
- package/dist/cdn/chunks/AiChatPanel-DV23DJ-2.js.map +0 -1
- package/dist/cdn/chunks/AiPanels-CxhOpMAp.js.map +0 -1
- package/dist/cdn/chunks/AiRewriteMenu-87-O514r.js.map +0 -1
- package/dist/cdn/chunks/BlockIssueBadge-Dp06vQd3.js.map +0 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-DQGzUvZ5.js.map +0 -1
- package/dist/cdn/chunks/CloudPanels-D8fchoYt.js.map +0 -1
- package/dist/cdn/chunks/CollaborationNotices-DNEs3g9B.js.map +0 -1
- package/dist/cdn/chunks/CollaboratorBar-CN6XAlbn.js.map +0 -1
- package/dist/cdn/chunks/CommentsPanel-CxZ1kFcK.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-DCr2mV8b.js.map +0 -1
- package/dist/cdn/chunks/CountdownToolbar-CUTbVPPV.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-BhcSzwuL.js.map +0 -1
- package/dist/cdn/chunks/LanguageMenu-6wGhkyFT.js.map +0 -1
- package/dist/cdn/chunks/LocaleNotices-Br92Xueo.js.map +0 -1
- package/dist/cdn/chunks/LogicTagInsertButton-r2EVUtDU.js.map +0 -1
- package/dist/cdn/chunks/MediaEditModal-CfgN7Jyi.js.map +0 -1
- package/dist/cdn/chunks/MediaPanels-Cb5vsgb-.js.map +0 -1
- package/dist/cdn/chunks/MergeTagInput-Dh3N6CEV.js.map +0 -1
- package/dist/cdn/chunks/MergeTagModeToggle-D6u3hMrI.js.map +0 -1
- package/dist/cdn/chunks/MergeTagTextarea-BpVtpiNL.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-DGJmPAC1.js.map +0 -1
- package/dist/cdn/chunks/RestoreVersionDialog-D5qeCa0F.js.map +0 -1
- package/dist/cdn/chunks/RichTextEditorContent-DyGiXKKI.js.map +0 -1
- package/dist/cdn/chunks/SaveBlockDialog-B0TJYxd8.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-D8Ly7LrA.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksPanels-Co1cbWR8.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksPickBar-DNtVbpm-.js.map +0 -1
- package/dist/cdn/chunks/TemplateSettings-BRc878ZF.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-CIui7VfS.js.map +0 -1
- package/dist/cdn/chunks/TestEmailPanel-vKvruW_r.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-BI-9Nnj3.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-CYnnArxv.js.map +0 -1
- package/dist/cdn/chunks/TplModal-B3nZeGWK.js.map +0 -1
- package/dist/cdn/chunks/VersionHistoryMenu-CMGfAKuV.js.map +0 -1
- package/dist/cdn/chunks/VersionHistoryPanels-Bb2ouQg7.js.map +0 -1
- package/dist/cdn/chunks/VersionPreviewBanner-573UP-g4.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-DVu632LD.js.map +0 -1
- package/dist/cdn/chunks/ca-YfIxwO1G.js.map +0 -1
- package/dist/cdn/chunks/composables-DY3anqHO.js.map +0 -1
- package/dist/cdn/chunks/da-CM6DCvRG.js.map +0 -1
- package/dist/cdn/chunks/de-Dugz1zXC.js.map +0 -1
- package/dist/cdn/chunks/editor-modal-CXSSZplR.js.map +0 -1
- package/dist/cdn/chunks/en-BykoFuFY.js.map +0 -1
- package/dist/cdn/chunks/en-DYMYt1TN.js +0 -1
- package/dist/cdn/chunks/es-DaWsTkpj.js.map +0 -1
- package/dist/cdn/chunks/extensions-BWVlr8Ga.js.map +0 -1
- package/dist/cdn/chunks/fr-DqwQHtJo.js.map +0 -1
- package/dist/cdn/chunks/ja-BH4MS1Ye.js.map +0 -1
- package/dist/cdn/chunks/nl-BQl1_UHv.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-eyzmU9Vs.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-kYhdXJ9P.js.map +0 -1
- package/dist/cdn/chunks/src-B7X7x_ST.js +0 -707
- package/dist/cdn/chunks/src-B7X7x_ST.js.map +0 -1
- package/dist/cdn/chunks/src-BmzzkUf7.js.map +0 -1
- package/dist/cdn/chunks/src-DY2kMjoD.js.map +0 -1
- package/dist/cdn/chunks/tiptap-B7gxx0aJ.js.map +0 -1
- package/dist/cdn/chunks/useLocalizedDisplay-B5wMJLru.js +0 -33
- package/dist/dist-CkIeJEsa.js +0 -4
- package/dist/dist-eAgG-nCb.js +0 -4
- package/dist/en-DvCaYqiR.js +0 -1
- package/dist/useLocalizedDisplay-CbFM0cCV.js +0 -31
- package/dist/withCurrentFont-y0O5kOLW.js +0 -18
|
@@ -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
|
-
import { C as F, S as I, _ as L, b as ee, c as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import {
|
|
13
|
-
import { n as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import {
|
|
19
|
-
import { t as
|
|
20
|
-
import {
|
|
21
|
-
import { t as
|
|
22
|
-
import {
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
25
|
-
import { t as
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import { t as
|
|
29
|
-
import {
|
|
30
|
-
import { _ as
|
|
31
|
-
import { n as
|
|
32
|
-
import { t as
|
|
33
|
-
import {
|
|
34
|
-
|
|
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-_OmrcJMv.js";
|
|
10
|
+
import { t as U } from "./createLucideIcon-BSam2AUu.js";
|
|
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-DX_IQgcU.js";
|
|
13
|
+
import { n as be } from "./useLocalizedDisplay-DfiE-KjV.js";
|
|
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-CPBiLTjY.js";
|
|
16
|
+
import { n as Qe, t as $e } from "./withCurrentFont-C-_IYTqP.js";
|
|
17
|
+
import { t as et } from "./languageName-DEEOhDWI.js";
|
|
18
|
+
import { n as tt, t as nt } from "./blockTypeIcons-MX-xQH_Z.js";
|
|
19
|
+
import { t as Q } from "./plus-BpTZAx28.js";
|
|
20
|
+
import { t as rt } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
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
|
+
import { t as ct } from "./logger-BOu7oEtk.js";
|
|
25
|
+
import { t as lt } from "./circle-exclamation-point-DsmqtTUQ.js";
|
|
26
|
+
import { t as ut } from "./refresh-cw-B4T0IFwI.js";
|
|
27
|
+
import { c as dt, r as ft } from "./usePopoverPosition-DF0ZYH7g.js";
|
|
28
|
+
import { t as pt } from "./trash-CTzhAm1o.js";
|
|
29
|
+
import { t as mt } from "./info-2KHWaZ2L.js";
|
|
30
|
+
import { _ as ht } from "./dist-A328tG0Z.js";
|
|
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 ht = ae({
|
|
|
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 ht = ae({
|
|
|
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 ht = ae({
|
|
|
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 ht = ae({
|
|
|
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,22 +179,22 @@ var ht = ae({
|
|
|
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
|
-
class: o(h(
|
|
185
|
+
class: o(h(z)),
|
|
185
186
|
value: e.modelValue,
|
|
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 },
|
|
@@ -212,20 +213,20 @@ var ht = ae({
|
|
|
212
213
|
title: e.linked ? e.unlinkLabel : e.linkLabel,
|
|
213
214
|
"data-testid": e.testid,
|
|
214
215
|
onClick: r[0] ||= (e) => n("toggle")
|
|
215
|
-
}, [e.linked ? (a(), w(h(
|
|
216
|
+
}, [e.linked ? (a(), w(h(re), {
|
|
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: {},
|
|
@@ -234,7 +235,7 @@ var ht = ae({
|
|
|
234
235
|
},
|
|
235
236
|
emits: ["update:modelValue"],
|
|
236
237
|
setup(e, { emit: n }) {
|
|
237
|
-
let i = e, s = n, { t: c } =
|
|
238
|
+
let i = e, s = n, { t: c } = W(), l = {
|
|
238
239
|
width: 0,
|
|
239
240
|
style: "solid",
|
|
240
241
|
color: "#000000"
|
|
@@ -244,7 +245,7 @@ var ht = ae({
|
|
|
244
245
|
}
|
|
245
246
|
let f = m(() => {
|
|
246
247
|
let e = i.modelValue;
|
|
247
|
-
return !e ||
|
|
248
|
+
return !e || q.every((t) => d(e[t], e.top));
|
|
248
249
|
}), y = _(f.value);
|
|
249
250
|
t(f, (e) => {
|
|
250
251
|
!e && y.value && (y.value = !1);
|
|
@@ -255,13 +256,13 @@ var ht = ae({
|
|
|
255
256
|
}), T = (e) => !!e && e.width > 0;
|
|
256
257
|
function E(e) {
|
|
257
258
|
if (y.value) {
|
|
258
|
-
s("update:modelValue", T(e) ?
|
|
259
|
+
s("update:modelValue", T(e) ? X(e) : void 0);
|
|
259
260
|
return;
|
|
260
261
|
}
|
|
261
262
|
let t = {
|
|
262
|
-
...i.modelValue ??
|
|
263
|
+
...i.modelValue ?? X(l),
|
|
263
264
|
[x.value]: e
|
|
264
|
-
}, n =
|
|
265
|
+
}, n = q.some((e) => T(t[e]));
|
|
265
266
|
s("update:modelValue", n ? t : void 0);
|
|
266
267
|
}
|
|
267
268
|
function D(e) {
|
|
@@ -284,10 +285,10 @@ var ht = ae({
|
|
|
284
285
|
y.value = !0;
|
|
285
286
|
let e = i.modelValue;
|
|
286
287
|
if (!e) return;
|
|
287
|
-
let t = T(e[x.value]) ? e[x.value] :
|
|
288
|
-
s("update:modelValue", t ?
|
|
288
|
+
let t = T(e[x.value]) ? e[x.value] : q.map((t) => e[t]).find(T);
|
|
289
|
+
s("update:modelValue", t ? X(t) : void 0);
|
|
289
290
|
}
|
|
290
|
-
let j = m(() =>
|
|
291
|
+
let j = m(() => q.map((e) => ({
|
|
291
292
|
value: e,
|
|
292
293
|
label: c.spacingControl[e]
|
|
293
294
|
})));
|
|
@@ -295,7 +296,7 @@ var ht = ae({
|
|
|
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 ht = ae({
|
|
|
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",
|
|
@@ -337,7 +338,7 @@ var ht = ae({
|
|
|
337
338
|
],
|
|
338
339
|
"model-value": C.value.style,
|
|
339
340
|
"onUpdate:modelValue": n[1] ||= (e) => O({ style: e })
|
|
340
|
-
}, null, 8, ["options", "model-value"])]), b("div", null, [b("label", { class: o(h(
|
|
341
|
+
}, null, 8, ["options", "model-value"])]), b("div", null, [b("label", { class: o(h(V)) }, r(h(c).blockSettings.borderColor), 3), p(M, {
|
|
341
342
|
"model-value": C.value.color,
|
|
342
343
|
"onUpdate:modelValue": n[2] ||= (e) => O({ color: e })
|
|
343
344
|
}, null, 8, ["model-value"])])], 64)) : g("", !0)
|
|
@@ -345,10 +346,10 @@ var ht = ae({
|
|
|
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: {},
|
|
@@ -359,7 +360,7 @@ var ht = ae({
|
|
|
359
360
|
},
|
|
360
361
|
emits: ["update:modelValue"],
|
|
361
362
|
setup(e, { emit: n }) {
|
|
362
|
-
let i = e, o = n, { t: c } =
|
|
363
|
+
let i = e, o = n, { t: c } = W(), l = {
|
|
363
364
|
topLeft: "cornerTopLeft",
|
|
364
365
|
topRight: "cornerTopRight",
|
|
365
366
|
bottomRight: "cornerBottomRight",
|
|
@@ -377,7 +378,7 @@ var ht = ae({
|
|
|
377
378
|
bottomRight: e,
|
|
378
379
|
bottomLeft: e
|
|
379
380
|
} : e;
|
|
380
|
-
}), g = m(() =>
|
|
381
|
+
}), g = m(() => _e.every((e) => f.value[e] === f.value.topLeft)), y = _(g.value);
|
|
381
382
|
t(g, (e) => {
|
|
382
383
|
!e && y.value && (y.value = !1);
|
|
383
384
|
});
|
|
@@ -400,7 +401,7 @@ var ht = ae({
|
|
|
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 ht = ae({
|
|
|
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 ht = ae({
|
|
|
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,10 +441,14 @@ var ht = ae({
|
|
|
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
|
-
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
446
|
-
},
|
|
446
|
+
class: "tpl:mt-2 tpl:flex tpl:items-stretch tpl:gap-2"
|
|
447
|
+
}, Zt = [
|
|
448
|
+
"value",
|
|
449
|
+
"min",
|
|
450
|
+
"max"
|
|
451
|
+
], Qt = 200, $t = /* @__PURE__ */ D({
|
|
447
452
|
__name: "ButtonToolbar",
|
|
448
453
|
props: {
|
|
449
454
|
block: {},
|
|
@@ -451,19 +456,45 @@ var ht = ae({
|
|
|
451
456
|
},
|
|
452
457
|
emits: ["update"],
|
|
453
458
|
setup(e, { emit: t }) {
|
|
454
|
-
let n = e, i = t, { t: c } =
|
|
455
|
-
function
|
|
459
|
+
let n = e, i = t, { t: c } = W(), l = E(Pe, null), d = l ? be(l) : null, f = E(Ee, null), _ = m(() => n.block.width === "full" ? "full" : typeof n.block.width == "number" || ae(n.block.width) !== null ? "custom" : "auto"), y = m(() => ae(n.block.width) === null ? "px" : "%"), x = m(() => typeof n.block.width == "number" ? n.block.width : String(n.block.width).slice(0, -1)), C = m(() => d ? Ue(d.content.value, n.block.id, f ?? void 0) : null);
|
|
460
|
+
function T(e, t) {
|
|
456
461
|
i("update", { [e]: t });
|
|
457
462
|
}
|
|
458
|
-
function
|
|
459
|
-
e === "full" ?
|
|
463
|
+
function D(e) {
|
|
464
|
+
e === "full" ? T("width", "full") : e === "custom" ? T("width", typeof n.block.width == "number" ? n.block.width : Qt) : T("width", void 0);
|
|
460
465
|
}
|
|
461
|
-
|
|
462
|
-
|
|
466
|
+
let O = m(() => String(J(n.block))), k = m(() => {
|
|
467
|
+
let e = O.value;
|
|
468
|
+
return ne.includes(e) ? ne : [...ne, e];
|
|
469
|
+
});
|
|
470
|
+
function j(e) {
|
|
471
|
+
let t = Number(e);
|
|
472
|
+
T("lineHeight", t === 1.2 ? void 0 : t);
|
|
473
|
+
}
|
|
474
|
+
function F(e) {
|
|
475
|
+
T("fontWeight", e === "bold" ? void 0 : e);
|
|
463
476
|
}
|
|
464
|
-
function
|
|
477
|
+
function I(e) {
|
|
465
478
|
let t = Number(e);
|
|
466
|
-
|
|
479
|
+
if (y.value === "%") {
|
|
480
|
+
if (!Number.isInteger(t) || t < 1 || t > 100) return;
|
|
481
|
+
T("width", `${t}%`);
|
|
482
|
+
} else !Number.isFinite(t) || t <= 0 || T("width", t);
|
|
483
|
+
}
|
|
484
|
+
function ee(e) {
|
|
485
|
+
if (e === y.value) return;
|
|
486
|
+
let t = n.block.width, r = C.value;
|
|
487
|
+
if (e === "%") {
|
|
488
|
+
let e = t;
|
|
489
|
+
if (r === null) {
|
|
490
|
+
T("width", "50%");
|
|
491
|
+
return;
|
|
492
|
+
}
|
|
493
|
+
T("width", `${Math.min(100, Math.max(1, Math.round(e / r * 100)))}%`);
|
|
494
|
+
return;
|
|
495
|
+
}
|
|
496
|
+
let i = ae(t);
|
|
497
|
+
r === null ? T("width", Qt) : T("width", Math.max(1, Math.round(r * i / 100)));
|
|
467
498
|
}
|
|
468
499
|
return (t, n) => (a(), v(S, null, [
|
|
469
500
|
p(A, {
|
|
@@ -472,13 +503,13 @@ var ht = ae({
|
|
|
472
503
|
path: "fontFamily"
|
|
473
504
|
}, {
|
|
474
505
|
default: u(() => [b("select", {
|
|
475
|
-
class: o(h(
|
|
476
|
-
value: h(
|
|
477
|
-
onChange: n[0] ||= (e) =>
|
|
478
|
-
}, [b("option",
|
|
506
|
+
class: o(h(B)),
|
|
507
|
+
value: h($e)(e.block.fontFamily),
|
|
508
|
+
onChange: n[0] ||= (e) => T("fontFamily", e.target.value || void 0)
|
|
509
|
+
}, [b("option", Bt, r(h(c).button.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
|
|
479
510
|
key: e.value,
|
|
480
511
|
value: e.value
|
|
481
|
-
}, r(e.label), 9,
|
|
512
|
+
}, r(e.label), 9, Vt))), 128))], 42, zt)]),
|
|
482
513
|
_: 1
|
|
483
514
|
}, 8, ["label"]),
|
|
484
515
|
p(A, {
|
|
@@ -489,7 +520,7 @@ var ht = ae({
|
|
|
489
520
|
default: u(() => [p(N, {
|
|
490
521
|
"model-value": e.block.text,
|
|
491
522
|
type: "text",
|
|
492
|
-
"onUpdate:modelValue": n[1] ||= (e) =>
|
|
523
|
+
"onUpdate:modelValue": n[1] ||= (e) => T("text", e)
|
|
493
524
|
}, null, 8, ["model-value"])]),
|
|
494
525
|
_: 1
|
|
495
526
|
}, 8, ["label"]),
|
|
@@ -502,7 +533,7 @@ var ht = ae({
|
|
|
502
533
|
"model-value": e.block.url,
|
|
503
534
|
type: "url",
|
|
504
535
|
placeholder: h(c).button.urlPlaceholder,
|
|
505
|
-
"onUpdate:modelValue": n[2] ||= (e) =>
|
|
536
|
+
"onUpdate:modelValue": n[2] ||= (e) => T("url", e)
|
|
506
537
|
}, null, 8, ["model-value", "placeholder"]), e.block.url ? (a(), w(A, {
|
|
507
538
|
key: 0,
|
|
508
539
|
path: "openInNewTab",
|
|
@@ -514,7 +545,7 @@ var ht = ae({
|
|
|
514
545
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
515
546
|
"model-value": e.block.openInNewTab ?? !1,
|
|
516
547
|
label: h(c).button.openInNewTab,
|
|
517
|
-
"onUpdate:modelValue": n[3] ||= (e) =>
|
|
548
|
+
"onUpdate:modelValue": n[3] ||= (e) => T("openInNewTab", e)
|
|
518
549
|
}, null, 8, [
|
|
519
550
|
"control-id",
|
|
520
551
|
"model-value",
|
|
@@ -532,7 +563,7 @@ var ht = ae({
|
|
|
532
563
|
default: u(() => [p(M, {
|
|
533
564
|
"model-value": e.block.backgroundColor,
|
|
534
565
|
"allow-transparent": "",
|
|
535
|
-
"onUpdate:modelValue": n[4] ||= (e) =>
|
|
566
|
+
"onUpdate:modelValue": n[4] ||= (e) => T("backgroundColor", e)
|
|
536
567
|
}, null, 8, ["model-value"])]),
|
|
537
568
|
_: 1
|
|
538
569
|
}, 8, ["label"]),
|
|
@@ -543,37 +574,52 @@ var ht = ae({
|
|
|
543
574
|
}, {
|
|
544
575
|
default: u(() => [p(M, {
|
|
545
576
|
"model-value": e.block.textColor,
|
|
546
|
-
"onUpdate:modelValue": n[5] ||= (e) =>
|
|
577
|
+
"onUpdate:modelValue": n[5] ||= (e) => T("textColor", e)
|
|
547
578
|
}, null, 8, ["model-value"])]),
|
|
548
579
|
_: 1
|
|
549
580
|
}, 8, ["label"]),
|
|
550
|
-
p(
|
|
581
|
+
p(Ft, {
|
|
551
582
|
path: "border",
|
|
552
583
|
"model-value": e.block.border,
|
|
553
584
|
"testid-prefix": "button",
|
|
554
|
-
"onUpdate:modelValue": n[6] ||= (e) =>
|
|
585
|
+
"onUpdate:modelValue": n[6] ||= (e) => T("border", e)
|
|
555
586
|
}, null, 8, ["model-value"]),
|
|
556
|
-
p(
|
|
587
|
+
p(Rt, {
|
|
557
588
|
path: "borderRadius",
|
|
558
589
|
"model-value": e.block.borderRadius,
|
|
559
590
|
label: h(c).button.borderRadius,
|
|
560
591
|
max: 50,
|
|
561
592
|
"testid-prefix": "button",
|
|
562
|
-
"onUpdate:modelValue": n[7] ||= (e) =>
|
|
593
|
+
"onUpdate:modelValue": n[7] ||= (e) => T("borderRadius", e)
|
|
563
594
|
}, null, 8, ["model-value", "label"]),
|
|
564
595
|
p(A, {
|
|
565
596
|
label: h(c).button.fontSize,
|
|
566
597
|
class: "tpl:mb-3.5",
|
|
567
598
|
path: "fontSize"
|
|
568
599
|
}, {
|
|
569
|
-
default: u(() => [b("div",
|
|
600
|
+
default: u(() => [b("div", Ht, [b("input", {
|
|
570
601
|
type: "number",
|
|
571
|
-
class: o(h(
|
|
602
|
+
class: o(h(z)),
|
|
572
603
|
value: e.block.fontSize,
|
|
573
604
|
min: "10",
|
|
574
605
|
max: "36",
|
|
575
|
-
onInput: n[8] ||= (e) =>
|
|
576
|
-
}, null, 42,
|
|
606
|
+
onInput: n[8] ||= (e) => T("fontSize", Number(e.target.value))
|
|
607
|
+
}, null, 42, Ut), b("span", { class: o(h(L)) }, "px", 2)])]),
|
|
608
|
+
_: 1
|
|
609
|
+
}, 8, ["label"]),
|
|
610
|
+
p(A, {
|
|
611
|
+
label: h(c).button.lineHeight,
|
|
612
|
+
class: "tpl:mb-3.5",
|
|
613
|
+
path: "lineHeight"
|
|
614
|
+
}, {
|
|
615
|
+
default: u(() => [b("select", {
|
|
616
|
+
class: o(h(B)),
|
|
617
|
+
value: O.value,
|
|
618
|
+
onChange: n[9] ||= (e) => j(e.target.value)
|
|
619
|
+
}, [(a(!0), v(S, null, s(k.value, (e) => (a(), v("option", {
|
|
620
|
+
key: e,
|
|
621
|
+
value: e
|
|
622
|
+
}, r(e), 9, Gt))), 128))], 42, Wt)]),
|
|
577
623
|
_: 1
|
|
578
624
|
}, 8, ["label"]),
|
|
579
625
|
p(A, {
|
|
@@ -581,7 +627,7 @@ var ht = ae({
|
|
|
581
627
|
class: "tpl:mb-3.5",
|
|
582
628
|
path: "fontWeight"
|
|
583
629
|
}, {
|
|
584
|
-
default: u(() => [p(
|
|
630
|
+
default: u(() => [p($, {
|
|
585
631
|
options: [
|
|
586
632
|
{
|
|
587
633
|
value: "regular",
|
|
@@ -597,7 +643,7 @@ var ht = ae({
|
|
|
597
643
|
}
|
|
598
644
|
],
|
|
599
645
|
"model-value": e.block.fontWeight ?? "bold",
|
|
600
|
-
"onUpdate:modelValue":
|
|
646
|
+
"onUpdate:modelValue": F
|
|
601
647
|
}, null, 8, ["options", "model-value"])]),
|
|
602
648
|
_: 1
|
|
603
649
|
}, 8, ["label"]),
|
|
@@ -607,20 +653,33 @@ var ht = ae({
|
|
|
607
653
|
path: "width"
|
|
608
654
|
}, {
|
|
609
655
|
default: u(() => [b("select", {
|
|
610
|
-
class: o(h(
|
|
611
|
-
value:
|
|
612
|
-
onChange: n[
|
|
656
|
+
class: o(h(B)),
|
|
657
|
+
value: _.value,
|
|
658
|
+
onChange: n[10] ||= (e) => D(e.target.value)
|
|
613
659
|
}, [
|
|
614
|
-
b("option",
|
|
615
|
-
b("option",
|
|
616
|
-
b("option",
|
|
617
|
-
], 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", {
|
|
618
664
|
type: "number",
|
|
619
|
-
class: o(h(
|
|
620
|
-
value:
|
|
621
|
-
min: "20
|
|
622
|
-
|
|
623
|
-
|
|
665
|
+
class: o([h(B), "tpl:min-w-0 tpl:flex-1"]),
|
|
666
|
+
value: x.value,
|
|
667
|
+
min: y.value === "%" ? 1 : 20,
|
|
668
|
+
max: y.value === "%" ? 100 : void 0,
|
|
669
|
+
onInput: n[11] ||= (e) => I(e.target.value)
|
|
670
|
+
}, null, 42, Zt), p($, {
|
|
671
|
+
class: "tpl:w-24 tpl:shrink-0",
|
|
672
|
+
"aria-label": h(c).button.widthUnit,
|
|
673
|
+
options: [{
|
|
674
|
+
value: "px",
|
|
675
|
+
label: "px"
|
|
676
|
+
}, {
|
|
677
|
+
value: "%",
|
|
678
|
+
label: "%"
|
|
679
|
+
}],
|
|
680
|
+
"model-value": y.value,
|
|
681
|
+
"onUpdate:modelValue": ee
|
|
682
|
+
}, null, 8, ["aria-label", "model-value"])])) : g("", !0)]),
|
|
624
683
|
_: 1
|
|
625
684
|
}, 8, ["label"]),
|
|
626
685
|
p(A, {
|
|
@@ -628,7 +687,7 @@ var ht = ae({
|
|
|
628
687
|
class: "tpl:mb-3.5",
|
|
629
688
|
path: "align"
|
|
630
689
|
}, {
|
|
631
|
-
default: u(() => [p(
|
|
690
|
+
default: u(() => [p($, {
|
|
632
691
|
options: [
|
|
633
692
|
{
|
|
634
693
|
value: "left",
|
|
@@ -644,13 +703,13 @@ var ht = ae({
|
|
|
644
703
|
}
|
|
645
704
|
],
|
|
646
705
|
"model-value": e.block.align ?? "center",
|
|
647
|
-
"onUpdate:modelValue": n[
|
|
706
|
+
"onUpdate:modelValue": n[12] ||= (e) => T("align", e)
|
|
648
707
|
}, null, 8, ["options", "model-value"])]),
|
|
649
708
|
_: 1
|
|
650
709
|
}, 8, ["label"])
|
|
651
710
|
], 64));
|
|
652
711
|
}
|
|
653
|
-
}),
|
|
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({
|
|
654
713
|
__name: "SpacingControl",
|
|
655
714
|
props: {
|
|
656
715
|
path: {},
|
|
@@ -659,7 +718,7 @@ var ht = ae({
|
|
|
659
718
|
},
|
|
660
719
|
emits: ["update:modelValue"],
|
|
661
720
|
setup(e, { emit: n }) {
|
|
662
|
-
let r = e, i = n, { t: s } =
|
|
721
|
+
let r = e, i = n, { t: s } = W(), c = m(() => r.modelValue.top === r.modelValue.right && r.modelValue.right === r.modelValue.bottom && r.modelValue.bottom === r.modelValue.left), l = _(c.value);
|
|
663
722
|
t(c, (e) => {
|
|
664
723
|
!e && l.value && (l.value = !1);
|
|
665
724
|
});
|
|
@@ -703,126 +762,126 @@ var ht = ae({
|
|
|
703
762
|
path: e.path,
|
|
704
763
|
label: e.label
|
|
705
764
|
}, {
|
|
706
|
-
default: u(() => [b("div",
|
|
707
|
-
b("div",
|
|
765
|
+
default: u(() => [b("div", en, [
|
|
766
|
+
b("div", tn, [
|
|
708
767
|
b("button", {
|
|
709
768
|
"aria-label": h(s).spacingControl.decreaseTop,
|
|
710
|
-
class: o([
|
|
769
|
+
class: o([bn, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
711
770
|
onClick: n[0] ||= (e) => d("top", -1)
|
|
712
|
-
}, [p(h(
|
|
771
|
+
}, [p(h(tt), {
|
|
713
772
|
size: 12,
|
|
714
773
|
"stroke-width": 2
|
|
715
|
-
})], 10,
|
|
774
|
+
})], 10, nn),
|
|
716
775
|
b("input", {
|
|
717
776
|
type: "number",
|
|
718
|
-
class: o(
|
|
777
|
+
class: o(xn),
|
|
719
778
|
value: e.modelValue.top,
|
|
720
779
|
"aria-label": h(s).spacingControl.top,
|
|
721
780
|
min: "0",
|
|
722
781
|
onInput: n[1] ||= (e) => f("top", Number(e.target.value))
|
|
723
|
-
}, null, 40,
|
|
782
|
+
}, null, 40, rn),
|
|
724
783
|
b("button", {
|
|
725
784
|
"aria-label": h(s).spacingControl.increaseTop,
|
|
726
|
-
class: o([
|
|
785
|
+
class: o([bn, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
727
786
|
onClick: n[2] ||= (e) => d("top", 1)
|
|
728
|
-
}, [p(h(
|
|
787
|
+
}, [p(h(Q), {
|
|
729
788
|
size: 12,
|
|
730
789
|
"stroke-width": 2
|
|
731
|
-
})], 10,
|
|
790
|
+
})], 10, an)
|
|
732
791
|
]),
|
|
733
|
-
b("div",
|
|
734
|
-
b("div",
|
|
792
|
+
b("div", on, [
|
|
793
|
+
b("div", sn, [
|
|
735
794
|
b("button", {
|
|
736
795
|
"aria-label": h(s).spacingControl.decreaseLeft,
|
|
737
|
-
class: o([
|
|
796
|
+
class: o([bn, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
738
797
|
onClick: n[3] ||= (e) => d("left", -1)
|
|
739
|
-
}, [p(h(
|
|
798
|
+
}, [p(h(tt), {
|
|
740
799
|
size: 12,
|
|
741
800
|
"stroke-width": 2
|
|
742
|
-
})], 10,
|
|
801
|
+
})], 10, cn),
|
|
743
802
|
b("input", {
|
|
744
803
|
type: "number",
|
|
745
|
-
class: o(
|
|
804
|
+
class: o(xn),
|
|
746
805
|
value: e.modelValue.left,
|
|
747
806
|
"aria-label": h(s).spacingControl.left,
|
|
748
807
|
min: "0",
|
|
749
808
|
onInput: n[4] ||= (e) => f("left", Number(e.target.value))
|
|
750
|
-
}, null, 40,
|
|
809
|
+
}, null, 40, ln),
|
|
751
810
|
b("button", {
|
|
752
811
|
"aria-label": h(s).spacingControl.increaseLeft,
|
|
753
|
-
class: o([
|
|
812
|
+
class: o([bn, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
754
813
|
onClick: n[5] ||= (e) => d("left", 1)
|
|
755
|
-
}, [p(h(
|
|
814
|
+
}, [p(h(Q), {
|
|
756
815
|
size: 12,
|
|
757
816
|
"stroke-width": 2
|
|
758
|
-
})], 10,
|
|
817
|
+
})], 10, un)
|
|
759
818
|
]),
|
|
760
819
|
b("button", {
|
|
761
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)]"]),
|
|
762
821
|
"aria-label": l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
|
|
763
822
|
title: l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
|
|
764
823
|
onClick: g
|
|
765
|
-
}, [l.value ? (a(), w(h(
|
|
824
|
+
}, [l.value ? (a(), w(h(Ct), {
|
|
766
825
|
key: 0,
|
|
767
826
|
size: 14,
|
|
768
827
|
"stroke-width": 2
|
|
769
|
-
})) : (a(), w(h(
|
|
828
|
+
})) : (a(), w(h(St), {
|
|
770
829
|
key: 1,
|
|
771
830
|
size: 14,
|
|
772
831
|
"stroke-width": 2
|
|
773
|
-
}))], 10,
|
|
774
|
-
b("div",
|
|
832
|
+
}))], 10, dn),
|
|
833
|
+
b("div", fn, [
|
|
775
834
|
b("button", {
|
|
776
835
|
"aria-label": h(s).spacingControl.decreaseRight,
|
|
777
|
-
class: o([
|
|
836
|
+
class: o([bn, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
778
837
|
onClick: n[6] ||= (e) => d("right", -1)
|
|
779
|
-
}, [p(h(
|
|
838
|
+
}, [p(h(tt), {
|
|
780
839
|
size: 12,
|
|
781
840
|
"stroke-width": 2
|
|
782
|
-
})], 10,
|
|
841
|
+
})], 10, pn),
|
|
783
842
|
b("input", {
|
|
784
843
|
type: "number",
|
|
785
|
-
class: o(
|
|
844
|
+
class: o(xn),
|
|
786
845
|
value: e.modelValue.right,
|
|
787
846
|
"aria-label": h(s).spacingControl.right,
|
|
788
847
|
min: "0",
|
|
789
848
|
onInput: n[7] ||= (e) => f("right", Number(e.target.value))
|
|
790
|
-
}, null, 40,
|
|
849
|
+
}, null, 40, mn),
|
|
791
850
|
b("button", {
|
|
792
851
|
"aria-label": h(s).spacingControl.increaseRight,
|
|
793
|
-
class: o([
|
|
852
|
+
class: o([bn, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
794
853
|
onClick: n[8] ||= (e) => d("right", 1)
|
|
795
|
-
}, [p(h(
|
|
854
|
+
}, [p(h(Q), {
|
|
796
855
|
size: 12,
|
|
797
856
|
"stroke-width": 2
|
|
798
|
-
})], 10,
|
|
857
|
+
})], 10, hn)
|
|
799
858
|
])
|
|
800
859
|
]),
|
|
801
|
-
b("div",
|
|
860
|
+
b("div", gn, [
|
|
802
861
|
b("button", {
|
|
803
862
|
"aria-label": h(s).spacingControl.decreaseBottom,
|
|
804
|
-
class: o([
|
|
863
|
+
class: o([bn, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
805
864
|
onClick: n[9] ||= (e) => d("bottom", -1)
|
|
806
|
-
}, [p(h(
|
|
865
|
+
}, [p(h(tt), {
|
|
807
866
|
size: 12,
|
|
808
867
|
"stroke-width": 2
|
|
809
|
-
})], 10,
|
|
868
|
+
})], 10, _n),
|
|
810
869
|
b("input", {
|
|
811
870
|
type: "number",
|
|
812
|
-
class: o(
|
|
871
|
+
class: o(xn),
|
|
813
872
|
value: e.modelValue.bottom,
|
|
814
873
|
"aria-label": h(s).spacingControl.bottom,
|
|
815
874
|
min: "0",
|
|
816
875
|
onInput: n[10] ||= (e) => f("bottom", Number(e.target.value))
|
|
817
|
-
}, null, 40,
|
|
876
|
+
}, null, 40, vn),
|
|
818
877
|
b("button", {
|
|
819
878
|
"aria-label": h(s).spacingControl.increaseBottom,
|
|
820
|
-
class: o([
|
|
879
|
+
class: o([bn, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
821
880
|
onClick: n[11] ||= (e) => d("bottom", 1)
|
|
822
|
-
}, [p(h(
|
|
881
|
+
}, [p(h(Q), {
|
|
823
882
|
size: 12,
|
|
824
883
|
"stroke-width": 2
|
|
825
|
-
})], 10,
|
|
884
|
+
})], 10, yn)
|
|
826
885
|
])
|
|
827
886
|
])]),
|
|
828
887
|
_: 1
|
|
@@ -830,19 +889,19 @@ var ht = ae({
|
|
|
830
889
|
}
|
|
831
890
|
}), [["__scopeId", "data-v-94c2e6ff"]]);
|
|
832
891
|
// src/composables/useNaturalImageSize.ts
|
|
833
|
-
function
|
|
892
|
+
function Cn(e) {
|
|
834
893
|
let n = _(null), r = () => {};
|
|
835
894
|
return t(e, (e) => {
|
|
836
|
-
r(), n.value = null, e && (r =
|
|
895
|
+
r(), n.value = null, e && (r = qe(e, (e) => {
|
|
837
896
|
n.value = e;
|
|
838
897
|
}));
|
|
839
898
|
}, { immediate: !0 }), n;
|
|
840
899
|
}
|
|
841
|
-
function
|
|
842
|
-
let e = E(
|
|
843
|
-
return async (t) =>
|
|
900
|
+
function wn() {
|
|
901
|
+
let e = E(Ce, null);
|
|
902
|
+
return async (t) => Ke(e ? await Tn(e, t) : t);
|
|
844
903
|
}
|
|
845
|
-
function
|
|
904
|
+
function Tn(e, n) {
|
|
846
905
|
let r = (e) => typeof e == "string" && e.length > 0 ? e : n;
|
|
847
906
|
e.lookup(n);
|
|
848
907
|
let i = e.get(n);
|
|
@@ -853,13 +912,13 @@ function hn(e, n) {
|
|
|
853
912
|
}) : Promise.resolve(r(i));
|
|
854
913
|
}
|
|
855
914
|
// src/components/toolbar/BackgroundImageControl.vue?vue&type=script&setup=true&lang.ts
|
|
856
|
-
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 = [
|
|
857
916
|
"aria-label",
|
|
858
917
|
"title",
|
|
859
918
|
"aria-pressed",
|
|
860
919
|
"data-testid",
|
|
861
920
|
"onClick"
|
|
862
|
-
],
|
|
921
|
+
], Mn = ["data-testid"], Nn = /* @__PURE__ */ D({
|
|
863
922
|
__name: "BackgroundImageControl",
|
|
864
923
|
props: {
|
|
865
924
|
hideLabel: { type: Boolean },
|
|
@@ -870,14 +929,14 @@ var gn = { class: "tpl:space-y-3.5" }, _n = ["data-testid"], vn = ["data-testid"
|
|
|
870
929
|
},
|
|
871
930
|
emits: ["update:modelValue"],
|
|
872
931
|
setup(e, { emit: t }) {
|
|
873
|
-
let n = e, i = t, { t: c } =
|
|
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;
|
|
874
933
|
f(() => clearTimeout(C));
|
|
875
934
|
function T(e) {
|
|
876
|
-
n.measure && !
|
|
935
|
+
n.measure && !G(e, l) && (C = setTimeout(async () => {
|
|
877
936
|
let t = await x(e), r = n.modelValue;
|
|
878
937
|
t && r?.url === e && i("update:modelValue", {
|
|
879
938
|
...r,
|
|
880
|
-
...
|
|
939
|
+
...He(t)
|
|
881
940
|
});
|
|
882
941
|
}, 300));
|
|
883
942
|
}
|
|
@@ -890,7 +949,7 @@ var gn = { class: "tpl:space-y-3.5" }, _n = ["data-testid"], vn = ["data-testid"
|
|
|
890
949
|
i("update:modelValue", {
|
|
891
950
|
...o,
|
|
892
951
|
url: e,
|
|
893
|
-
...s ?
|
|
952
|
+
...s ? He(s) : {}
|
|
894
953
|
}), s || T(e);
|
|
895
954
|
}
|
|
896
955
|
function O(e) {
|
|
@@ -922,7 +981,7 @@ var gn = { class: "tpl:space-y-3.5" }, _n = ["data-testid"], vn = ["data-testid"
|
|
|
922
981
|
"bottom-left": c.blockSettings.backgroundPositionBottomLeft,
|
|
923
982
|
"bottom-center": c.blockSettings.backgroundPositionBottomCenter,
|
|
924
983
|
"bottom-right": c.blockSettings.backgroundPositionBottomRight
|
|
925
|
-
})), j = m(() =>
|
|
984
|
+
})), j = m(() => me.flatMap((e) => ye.map((t) => ({
|
|
926
985
|
x: t,
|
|
927
986
|
y: e,
|
|
928
987
|
label: A.value[`${e}-${t}`]
|
|
@@ -930,21 +989,21 @@ var gn = { class: "tpl:space-y-3.5" }, _n = ["data-testid"], vn = ["data-testid"
|
|
|
930
989
|
function M(e) {
|
|
931
990
|
return n.modelValue?.position?.x === e.x && n.modelValue?.position?.y === e.y;
|
|
932
991
|
}
|
|
933
|
-
let F = _(), { canBrowse: I, isUploading: L, showOverlay: ee, openMediaBrowser:
|
|
992
|
+
let F = _(), { canBrowse: I, isUploading: L, showOverlay: ee, openMediaBrowser: R } = Xe({
|
|
934
993
|
target: F,
|
|
935
|
-
blocked: () =>
|
|
936
|
-
apply: (e) => D(e.url,
|
|
994
|
+
blocked: () => G(u.value, l),
|
|
995
|
+
apply: (e) => D(e.url, Le(e.width, e.height))
|
|
937
996
|
});
|
|
938
|
-
return (t, n) => (a(), v("div",
|
|
997
|
+
return (t, n) => (a(), v("div", En, [b("div", null, [e.hideLabel ? g("", !0) : (a(), v("label", {
|
|
939
998
|
key: 0,
|
|
940
|
-
class: o(h(
|
|
999
|
+
class: o(h(V))
|
|
941
1000
|
}, r(h(c).blockSettings.backgroundImage), 3)), b("div", {
|
|
942
1001
|
ref_key: "dropZoneRef",
|
|
943
1002
|
ref: F,
|
|
944
1003
|
class: "tpl:relative",
|
|
945
1004
|
"data-testid": `${e.testidPrefix}-bg-url`
|
|
946
1005
|
}, [
|
|
947
|
-
h(ee) ? (a(), w(
|
|
1006
|
+
h(ee) ? (a(), w(Be, {
|
|
948
1007
|
key: 0,
|
|
949
1008
|
uploading: h(L)
|
|
950
1009
|
}, null, 8, ["uploading"])) : g("", !0),
|
|
@@ -964,21 +1023,21 @@ var gn = { class: "tpl:space-y-3.5" }, _n = ["data-testid"], vn = ["data-testid"
|
|
|
964
1023
|
color: "var(--tpl-primary)",
|
|
965
1024
|
"background-color": "var(--tpl-bg)"
|
|
966
1025
|
},
|
|
967
|
-
onClick: n[0] ||= (...e) => h(
|
|
968
|
-
}, [p(h(
|
|
1026
|
+
onClick: n[0] ||= (...e) => h(R) && h(R)(...e)
|
|
1027
|
+
}, [p(h(it), {
|
|
969
1028
|
size: 14,
|
|
970
1029
|
"stroke-width": 1.5
|
|
971
|
-
}), y(" " + r(h(c).image.browseMedia), 1)], 8,
|
|
972
|
-
], 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 }, [
|
|
973
1032
|
e.heroMode ? g("", !0) : (a(), v("div", {
|
|
974
1033
|
key: 0,
|
|
975
1034
|
"data-testid": `${e.testidPrefix}-bg-size`
|
|
976
|
-
}, [b("label", { class: o(h(
|
|
1035
|
+
}, [b("label", { class: o(h(V)) }, r(h(c).blockSettings.backgroundSize), 3), p($, {
|
|
977
1036
|
options: k.value,
|
|
978
1037
|
"model-value": e.modelValue.size,
|
|
979
1038
|
"onUpdate:modelValue": n[1] ||= (e) => O({ size: e })
|
|
980
|
-
}, null, 8, ["options", "model-value"])], 8,
|
|
981
|
-
b("div", null, [b("label", { class: o(h(
|
|
1039
|
+
}, null, 8, ["options", "model-value"])], 8, kn)),
|
|
1040
|
+
b("div", null, [b("label", { class: o(h(V)) }, r(h(c).blockSettings.backgroundPosition), 3), b("div", {
|
|
982
1041
|
role: "group",
|
|
983
1042
|
"aria-label": h(c).blockSettings.backgroundPosition,
|
|
984
1043
|
"data-testid": `${e.testidPrefix}-bg-position`,
|
|
@@ -995,7 +1054,7 @@ var gn = { class: "tpl:space-y-3.5" }, _n = ["data-testid"], vn = ["data-testid"
|
|
|
995
1054
|
x: t.x,
|
|
996
1055
|
y: t.y
|
|
997
1056
|
} })
|
|
998
|
-
}, [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)]),
|
|
999
1058
|
e.heroMode ? g("", !0) : (a(), v("div", {
|
|
1000
1059
|
key: 1,
|
|
1001
1060
|
"data-testid": `${e.testidPrefix}-bg-repeat`
|
|
@@ -1004,10 +1063,10 @@ var gn = { class: "tpl:space-y-3.5" }, _n = ["data-testid"], vn = ["data-testid"
|
|
|
1004
1063
|
"model-value": e.modelValue.repeat,
|
|
1005
1064
|
label: h(c).blockSettings.backgroundRepeat,
|
|
1006
1065
|
"onUpdate:modelValue": n[2] ||= (e) => O({ repeat: e })
|
|
1007
|
-
}, null, 8, ["model-value", "label"])], 8,
|
|
1066
|
+
}, null, 8, ["model-value", "label"])], 8, Mn))
|
|
1008
1067
|
], 64)) : g("", !0)]));
|
|
1009
1068
|
}
|
|
1010
|
-
}),
|
|
1069
|
+
}), Pn = ["data-testid"], Fn = ["data-testid"], In = /* @__PURE__ */ D({
|
|
1011
1070
|
__name: "CollapsibleSection",
|
|
1012
1071
|
props: {
|
|
1013
1072
|
title: {},
|
|
@@ -1022,33 +1081,33 @@ var gn = { class: "tpl:space-y-3.5" }, _n = ["data-testid"], vn = ["data-testid"
|
|
|
1022
1081
|
"data-testid": e.headerTestId,
|
|
1023
1082
|
class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-1.5 tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
1024
1083
|
onClick: i[0] ||= (e) => t.$emit("toggle")
|
|
1025
|
-
}, [p(h(
|
|
1084
|
+
}, [p(h(at), {
|
|
1026
1085
|
class: o(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
1027
1086
|
size: 12,
|
|
1028
1087
|
"stroke-width": 2
|
|
1029
|
-
}, 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", {
|
|
1030
1089
|
class: "tpl:mt-3",
|
|
1031
1090
|
"data-testid": e.headerTestId ? `${e.headerTestId}-content` : void 0
|
|
1032
|
-
}, [n(t.$slots, "default")], 8,
|
|
1091
|
+
}, [n(t.$slots, "default")], 8, Fn), [[k, e.open]])], 2));
|
|
1033
1092
|
}
|
|
1034
|
-
}),
|
|
1093
|
+
}), Ln = {
|
|
1035
1094
|
key: 0,
|
|
1036
1095
|
"data-testid": "section-hero-columns-note",
|
|
1037
1096
|
class: "tpl:mt-3.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1038
|
-
},
|
|
1097
|
+
}, Rn = {
|
|
1039
1098
|
key: 1,
|
|
1040
1099
|
"data-testid": "section-hero",
|
|
1041
1100
|
class: "tpl:mt-3.5 tpl:space-y-3.5"
|
|
1042
|
-
},
|
|
1101
|
+
}, zn = { "data-testid": "section-hero-height" }, Bn = {
|
|
1043
1102
|
key: 0,
|
|
1044
1103
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1045
|
-
},
|
|
1104
|
+
}, Vn = {
|
|
1046
1105
|
key: 1,
|
|
1047
1106
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1048
|
-
},
|
|
1107
|
+
}, Hn = {
|
|
1049
1108
|
key: 1,
|
|
1050
1109
|
"data-testid": "section-hero-align"
|
|
1051
|
-
},
|
|
1110
|
+
}, Un = 300, Wn = /* @__PURE__ */ D({
|
|
1052
1111
|
__name: "HeroControl",
|
|
1053
1112
|
props: { section: {} },
|
|
1054
1113
|
emits: ["update"],
|
|
@@ -1056,7 +1115,7 @@ var gn = { class: "tpl:space-y-3.5" }, _n = ["data-testid"], vn = ["data-testid"
|
|
|
1056
1115
|
function n(e) {
|
|
1057
1116
|
return typeof e == "number" && Number.isFinite(e) && e >= 1;
|
|
1058
1117
|
}
|
|
1059
|
-
let i = e, s = t, { t: c } =
|
|
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(() => [
|
|
1060
1119
|
{
|
|
1061
1120
|
value: "fit",
|
|
1062
1121
|
label: c.blockSettings.heroHeightFit
|
|
@@ -1083,9 +1142,9 @@ var gn = { class: "tpl:space-y-3.5" }, _n = ["data-testid"], vn = ["data-testid"
|
|
|
1083
1142
|
value: "bottom",
|
|
1084
1143
|
label: c.blockSettings.heroAlignBottom
|
|
1085
1144
|
}
|
|
1086
|
-
]), A = m(() => T.value === "image" && y.value && !x.value &&
|
|
1145
|
+
]), A = m(() => T.value === "image" && y.value && !x.value && de(i.section.backgroundImage) === null);
|
|
1087
1146
|
function j() {
|
|
1088
|
-
return (u ?
|
|
1147
|
+
return (u ? Ye(u.content.value, i.section.id, d, u.activeLocale?.value ?? void 0) : null) ?? Ge(u?.state.content.settings);
|
|
1089
1148
|
}
|
|
1090
1149
|
function M(e) {
|
|
1091
1150
|
let t = S.value?.verticalAlign ?? "middle";
|
|
@@ -1101,7 +1160,7 @@ var gn = { class: "tpl:space-y-3.5" }, _n = ["data-testid"], vn = ["data-testid"
|
|
|
1101
1160
|
s("update", { hero: void 0 });
|
|
1102
1161
|
return;
|
|
1103
1162
|
}
|
|
1104
|
-
let n =
|
|
1163
|
+
let n = de(i.section.backgroundImage), r = n === null ? Un : Math.round(j() * n);
|
|
1105
1164
|
s("update", { hero: {
|
|
1106
1165
|
height: r,
|
|
1107
1166
|
verticalAlign: t
|
|
@@ -1109,11 +1168,11 @@ var gn = { class: "tpl:space-y-3.5" }, _n = ["data-testid"], vn = ["data-testid"
|
|
|
1109
1168
|
}
|
|
1110
1169
|
async function N() {
|
|
1111
1170
|
let e = i.section.backgroundImage;
|
|
1112
|
-
if (!e || !y.value || x.value ||
|
|
1171
|
+
if (!e || !y.value || x.value || de(e) !== null) return;
|
|
1113
1172
|
let t = e.url, n = await f(t), r = i.section.backgroundImage;
|
|
1114
1173
|
n && r && r.url === t && s("update", { backgroundImage: {
|
|
1115
1174
|
...r,
|
|
1116
|
-
...
|
|
1175
|
+
...He(n)
|
|
1117
1176
|
} });
|
|
1118
1177
|
}
|
|
1119
1178
|
function P(e) {
|
|
@@ -1128,17 +1187,17 @@ var gn = { class: "tpl:space-y-3.5" }, _n = ["data-testid"], vn = ["data-testid"
|
|
|
1128
1187
|
verticalAlign: e
|
|
1129
1188
|
} });
|
|
1130
1189
|
}
|
|
1131
|
-
return (e, t) => !C.value && S.value ? (a(), v("p",
|
|
1132
|
-
b("div",
|
|
1133
|
-
b("label", { class: o(h(
|
|
1134
|
-
p(
|
|
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, [
|
|
1192
|
+
b("label", { class: o(h(V)) }, r(h(c).blockSettings.heroHeight), 3),
|
|
1193
|
+
p($, {
|
|
1135
1194
|
options: O.value,
|
|
1136
1195
|
"model-value": T.value,
|
|
1137
1196
|
"onUpdate:modelValue": M
|
|
1138
1197
|
}, null, 8, ["options", "model-value"]),
|
|
1139
|
-
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)
|
|
1140
1199
|
]),
|
|
1141
|
-
T.value === "fixed" ? (a(), w(
|
|
1200
|
+
T.value === "fixed" ? (a(), w(kt, {
|
|
1142
1201
|
key: 0,
|
|
1143
1202
|
"model-value": D.value,
|
|
1144
1203
|
min: 1,
|
|
@@ -1146,24 +1205,24 @@ var gn = { class: "tpl:space-y-3.5" }, _n = ["data-testid"], vn = ["data-testid"
|
|
|
1146
1205
|
testid: "section-hero-height-px",
|
|
1147
1206
|
"onUpdate:modelValue": P
|
|
1148
1207
|
}, null, 8, ["model-value"])) : g("", !0),
|
|
1149
|
-
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($, {
|
|
1150
1209
|
options: k.value,
|
|
1151
1210
|
"model-value": S.value.verticalAlign,
|
|
1152
1211
|
"onUpdate:modelValue": F
|
|
1153
1212
|
}, null, 8, ["options", "model-value"])])) : g("", !0)
|
|
1154
1213
|
])) : g("", !0);
|
|
1155
1214
|
}
|
|
1156
|
-
}),
|
|
1215
|
+
}), Gn = /* @__PURE__ */ new Set([
|
|
1157
1216
|
"fullWidth",
|
|
1158
1217
|
"backgroundColor",
|
|
1159
1218
|
"backgroundImage",
|
|
1160
1219
|
"padding",
|
|
1161
1220
|
"borderRadius"
|
|
1162
1221
|
]);
|
|
1163
|
-
function
|
|
1222
|
+
function Kn(e) {
|
|
1164
1223
|
return typeof e == "string" && e !== "";
|
|
1165
1224
|
}
|
|
1166
|
-
function
|
|
1225
|
+
function qn(e) {
|
|
1167
1226
|
return e ? [
|
|
1168
1227
|
e.top,
|
|
1169
1228
|
e.right,
|
|
@@ -1171,40 +1230,40 @@ function Ln(e) {
|
|
|
1171
1230
|
e.left
|
|
1172
1231
|
].some((e) => e !== 0) : !1;
|
|
1173
1232
|
}
|
|
1174
|
-
function
|
|
1175
|
-
return
|
|
1233
|
+
function Jn(e) {
|
|
1234
|
+
return Kn(e.styles.backgroundColor) || !!e.backgroundImage;
|
|
1176
1235
|
}
|
|
1177
|
-
function
|
|
1178
|
-
return e.fullWidth !== !0 ||
|
|
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));
|
|
1179
1238
|
}
|
|
1180
|
-
function
|
|
1181
|
-
return e.wrapper ? !1 : t.sectionWrapper === !1 || t.layout !== void 0 &&
|
|
1239
|
+
function Xn(e, t = {}) {
|
|
1240
|
+
return e.wrapper ? !1 : t.sectionWrapper === !1 || t.layout !== void 0 && le(t.layout);
|
|
1182
1241
|
}
|
|
1183
|
-
function
|
|
1242
|
+
function Zn(e) {
|
|
1184
1243
|
let t = {};
|
|
1185
|
-
return
|
|
1244
|
+
return Kn(e.styles.backgroundColor) && (t.backgroundColor = e.styles.backgroundColor), e.backgroundImage && (t.backgroundImage = e.backgroundImage), t;
|
|
1186
1245
|
}
|
|
1187
|
-
function
|
|
1246
|
+
function Qn(e) {
|
|
1188
1247
|
let t = { ...e.styles };
|
|
1189
1248
|
return delete t.backgroundColor, t;
|
|
1190
1249
|
}
|
|
1191
|
-
function
|
|
1250
|
+
function $n(e, t) {
|
|
1192
1251
|
if (t) return e.wrapper ? { wrapper: {
|
|
1193
1252
|
...e.wrapper,
|
|
1194
1253
|
fullWidth: !0
|
|
1195
1254
|
} } : {
|
|
1196
1255
|
wrapper: {
|
|
1197
1256
|
fullWidth: !0,
|
|
1198
|
-
...
|
|
1257
|
+
...Zn(e)
|
|
1199
1258
|
},
|
|
1200
|
-
styles:
|
|
1259
|
+
styles: Qn(e),
|
|
1201
1260
|
backgroundImage: void 0
|
|
1202
1261
|
};
|
|
1203
1262
|
let n = e.wrapper;
|
|
1204
1263
|
if (!n) return {};
|
|
1205
|
-
if (
|
|
1264
|
+
if (Yn(n) && !Jn(e)) {
|
|
1206
1265
|
let t = { ...e.styles };
|
|
1207
|
-
return
|
|
1266
|
+
return Kn(n.backgroundColor) && (t.backgroundColor = n.backgroundColor), {
|
|
1208
1267
|
wrapper: void 0,
|
|
1209
1268
|
styles: t,
|
|
1210
1269
|
backgroundImage: n.backgroundImage
|
|
@@ -1215,33 +1274,33 @@ function Un(e, t) {
|
|
|
1215
1274
|
fullWidth: !1
|
|
1216
1275
|
} };
|
|
1217
1276
|
}
|
|
1218
|
-
function
|
|
1277
|
+
function er(e) {
|
|
1219
1278
|
let t = e.wrapper;
|
|
1220
|
-
return t &&
|
|
1279
|
+
return t && Yn(t) && !Jn(e) ? $n(e, !1) : { wrapper: void 0 };
|
|
1221
1280
|
}
|
|
1222
1281
|
// src/components/toolbar/CommonBlockSettings.vue?vue&type=script&setup=true&lang.ts
|
|
1223
|
-
var
|
|
1282
|
+
var tr = { class: "tpl:space-y-2" }, nr = { class: "tpl:flex tpl:items-center tpl:gap-2" }, rr = {
|
|
1224
1283
|
key: 0,
|
|
1225
1284
|
class: "tpl:space-y-2"
|
|
1226
|
-
},
|
|
1285
|
+
}, ir = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, ar = {
|
|
1227
1286
|
key: 0,
|
|
1228
1287
|
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
1229
|
-
},
|
|
1288
|
+
}, or = { class: "tpl:flex tpl:gap-2" }, sr = ["disabled"], cr = ["disabled"], lr = ["disabled"], ur = {
|
|
1230
1289
|
key: 1,
|
|
1231
1290
|
class: "tpl:space-y-2"
|
|
1232
|
-
},
|
|
1291
|
+
}, dr = ["value"], fr = { value: "" }, pr = ["label"], mr = ["value"], hr = ["value"], gr = {
|
|
1233
1292
|
key: 0,
|
|
1234
1293
|
value: "__custom__"
|
|
1235
|
-
},
|
|
1294
|
+
}, _r = {
|
|
1236
1295
|
key: 0,
|
|
1237
1296
|
class: "tpl:space-y-2"
|
|
1238
|
-
},
|
|
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 = {
|
|
1239
1298
|
key: 0,
|
|
1240
1299
|
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
1241
|
-
},
|
|
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 = {
|
|
1242
1301
|
key: 0,
|
|
1243
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)]"
|
|
1244
|
-
},
|
|
1303
|
+
}, Er = /* @__PURE__ */ D({
|
|
1245
1304
|
__name: "CommonBlockSettings",
|
|
1246
1305
|
props: {
|
|
1247
1306
|
block: {},
|
|
@@ -1249,86 +1308,86 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1249
1308
|
},
|
|
1250
1309
|
emits: ["update"],
|
|
1251
1310
|
setup(e, { emit: n }) {
|
|
1252
|
-
let c = e, f = n, { t: x, format: T } =
|
|
1253
|
-
sectionWrapper:
|
|
1254
|
-
layout:
|
|
1255
|
-
})),
|
|
1256
|
-
function
|
|
1257
|
-
c.block.type === "wrapper" ? f("update", { fullWidth: e }) : c.block.type === "section" && f("update",
|
|
1258
|
-
}
|
|
1259
|
-
let
|
|
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, {
|
|
1312
|
+
sectionWrapper: z,
|
|
1313
|
+
layout: R
|
|
1314
|
+
})), V = m(() => c.block.type === "wrapper" ? "layout-wrapper-full-width" : "section-background-full-width");
|
|
1315
|
+
function re(e) {
|
|
1316
|
+
c.block.type === "wrapper" ? f("update", { fullWidth: e }) : c.block.type === "section" && f("update", $n(c.block, e));
|
|
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(() => {
|
|
1260
1319
|
let e = c.block;
|
|
1261
1320
|
return e.type === "section" && e.wrapper?.fullWidth === !0 ? e.wrapper.backgroundColor ?? "" : e.styles.backgroundColor ?? "";
|
|
1262
|
-
}),
|
|
1321
|
+
}), ce = m(() => {
|
|
1263
1322
|
let e = c.block;
|
|
1264
1323
|
return e.type === "section" && e.wrapper?.fullWidth === !0 ? e.wrapper.backgroundImage : e.type === "section" ? e.backgroundImage : void 0;
|
|
1265
1324
|
});
|
|
1266
|
-
function
|
|
1325
|
+
function G(e, t) {
|
|
1267
1326
|
f("update", { wrapper: {
|
|
1268
1327
|
...e,
|
|
1269
1328
|
...t
|
|
1270
1329
|
} });
|
|
1271
1330
|
}
|
|
1272
|
-
function
|
|
1331
|
+
function le(e) {
|
|
1273
1332
|
let t = c.block;
|
|
1274
|
-
t.type === "section" && t.wrapper?.fullWidth === !0 ?
|
|
1333
|
+
t.type === "section" && t.wrapper?.fullWidth === !0 ? G(t.wrapper, { backgroundColor: e }) : ke("backgroundColor", e);
|
|
1275
1334
|
}
|
|
1276
|
-
function
|
|
1335
|
+
function ue(e) {
|
|
1277
1336
|
let t = c.block;
|
|
1278
|
-
t.type === "section" && t.wrapper?.fullWidth === !0 ?
|
|
1337
|
+
t.type === "section" && t.wrapper?.fullWidth === !0 ? G(t.wrapper, { backgroundImage: e }) : f("update", { backgroundImage: e });
|
|
1279
1338
|
}
|
|
1280
|
-
let
|
|
1339
|
+
let de = E(we, null), pe = ze(), K = _(!1), q = l(/* @__PURE__ */ new Set()), J = _(!1), Y = _(""), X = _(""), me = [{
|
|
1281
1340
|
key: "desktop",
|
|
1282
|
-
icon:
|
|
1341
|
+
icon: ot,
|
|
1283
1342
|
labelKey: "showOnDesktop"
|
|
1284
1343
|
}, {
|
|
1285
1344
|
key: "mobile",
|
|
1286
|
-
icon:
|
|
1345
|
+
icon: st,
|
|
1287
1346
|
labelKey: "showOnMobile"
|
|
1288
1347
|
}];
|
|
1289
|
-
function
|
|
1290
|
-
|
|
1348
|
+
function he(e) {
|
|
1349
|
+
q.has(e) ? q.delete(e) : q.add(e);
|
|
1291
1350
|
}
|
|
1292
|
-
let
|
|
1293
|
-
function
|
|
1351
|
+
let ge = m(() => !!de || I.length > 0 || L);
|
|
1352
|
+
function _e(e) {
|
|
1294
1353
|
if (typeof e != "object" || !e || Array.isArray(e)) return !1;
|
|
1295
1354
|
let t = e;
|
|
1296
1355
|
return typeof t.label == "string" && typeof t.before == "string" && typeof t.after == "string";
|
|
1297
1356
|
}
|
|
1298
|
-
function
|
|
1357
|
+
function ve(e, t) {
|
|
1299
1358
|
let n = D?.state?.selectedBlockId;
|
|
1300
1359
|
c.block.id === e && (n === void 0 || n === e) ? f("update", { displayCondition: t }) : D && D.findBlockLocation(e) && D.updateBlock(e, { displayCondition: t });
|
|
1301
1360
|
}
|
|
1302
|
-
async function
|
|
1303
|
-
if (!
|
|
1304
|
-
let e = c.block.id, t = D?.activeLocale?.value ?? null, n =
|
|
1305
|
-
|
|
1361
|
+
async function ye() {
|
|
1362
|
+
if (!de || K.value) return;
|
|
1363
|
+
let e = c.block.id, t = D?.activeLocale?.value ?? null, n = fe(C(c.block)), r = c.block.displayCondition ? fe(C(c.block.displayCondition)) : void 0;
|
|
1364
|
+
K.value = !0;
|
|
1306
1365
|
try {
|
|
1307
|
-
let i = await
|
|
1366
|
+
let i = await de(r ? {
|
|
1308
1367
|
current: r,
|
|
1309
1368
|
block: n
|
|
1310
1369
|
} : { block: n });
|
|
1311
|
-
if (!
|
|
1312
|
-
if (!
|
|
1313
|
-
|
|
1370
|
+
if (!pe.alive || (D?.activeLocale?.value ?? null) !== t || i === null) return;
|
|
1371
|
+
if (!_e(i)) {
|
|
1372
|
+
ct.warn("displayConditions.onRequest resolved a value without string label, before and after — ignoring it.");
|
|
1314
1373
|
return;
|
|
1315
1374
|
}
|
|
1316
|
-
|
|
1375
|
+
ve(e, fe(i));
|
|
1317
1376
|
} finally {
|
|
1318
|
-
|
|
1377
|
+
pe.alive && (K.value = !1);
|
|
1319
1378
|
}
|
|
1320
1379
|
}
|
|
1321
|
-
let
|
|
1322
|
-
function
|
|
1323
|
-
|
|
1380
|
+
let Z = m(() => c.block.displayCondition ? !I.some((e) => e.label === c.block.displayCondition?.label) : !1);
|
|
1381
|
+
function be() {
|
|
1382
|
+
J.value = !0, Z.value && c.block.displayCondition ? (Y.value = c.block.displayCondition.before, X.value = c.block.displayCondition.after ?? "") : (Y.value = "", X.value = "");
|
|
1324
1383
|
}
|
|
1325
|
-
function
|
|
1326
|
-
let e =
|
|
1384
|
+
function Se() {
|
|
1385
|
+
let e = Y.value.trim(), t = X.value.trim();
|
|
1327
1386
|
e && (f("update", { displayCondition: {
|
|
1328
1387
|
label: x.blockSettings.customCondition,
|
|
1329
1388
|
before: e,
|
|
1330
1389
|
after: t
|
|
1331
|
-
} }),
|
|
1390
|
+
} }), J.value = !1, Y.value = e, X.value = t);
|
|
1332
1391
|
}
|
|
1333
1392
|
t([
|
|
1334
1393
|
() => D?.state?.template?.id,
|
|
@@ -1338,44 +1397,44 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1338
1397
|
() => c.block.displayCondition?.after
|
|
1339
1398
|
], () => {
|
|
1340
1399
|
let e = c.block.displayCondition;
|
|
1341
|
-
!e || !
|
|
1400
|
+
!e || !Z.value ? (J.value = !1, Y.value = "", X.value = "") : (Y.value = e.before, X.value = e.after ?? "");
|
|
1342
1401
|
}, { immediate: !0 });
|
|
1343
|
-
let
|
|
1402
|
+
let Ce = m(() => {
|
|
1344
1403
|
let e = {};
|
|
1345
1404
|
for (let t of I) {
|
|
1346
1405
|
let n = t.group ?? "";
|
|
1347
1406
|
e[n] || (e[n] = []), e[n].push(t);
|
|
1348
1407
|
}
|
|
1349
1408
|
return e;
|
|
1350
|
-
}),
|
|
1351
|
-
function
|
|
1409
|
+
}), De = m(() => c.block.type === "section" && se(c.block)?.applied === !0);
|
|
1410
|
+
function ke(e, t) {
|
|
1352
1411
|
f("update", { styles: {
|
|
1353
1412
|
...c.block.styles,
|
|
1354
1413
|
[e]: t
|
|
1355
1414
|
} });
|
|
1356
1415
|
}
|
|
1357
|
-
function
|
|
1416
|
+
function Ae(e) {
|
|
1358
1417
|
return c.block.visibility?.[e] !== !1;
|
|
1359
1418
|
}
|
|
1360
|
-
function
|
|
1419
|
+
function je(e) {
|
|
1361
1420
|
let t = {
|
|
1362
|
-
desktop:
|
|
1363
|
-
mobile:
|
|
1421
|
+
desktop: Ae("desktop"),
|
|
1422
|
+
mobile: Ae("mobile")
|
|
1364
1423
|
};
|
|
1365
1424
|
t[e] = !t[e], f("update", { visibility: t });
|
|
1366
1425
|
}
|
|
1367
1426
|
return (t, n) => (a(), v("div", { class: o(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1368
|
-
p(
|
|
1427
|
+
p(In, {
|
|
1369
1428
|
title: h(x).blockSettings.spacing,
|
|
1370
|
-
open:
|
|
1429
|
+
open: q.has("spacing"),
|
|
1371
1430
|
"no-border": e.isFirstSection,
|
|
1372
|
-
onToggle: n[1] ||= (e) =>
|
|
1431
|
+
onToggle: n[1] ||= (e) => he("spacing")
|
|
1373
1432
|
}, {
|
|
1374
|
-
default: u(() => [p(
|
|
1433
|
+
default: u(() => [p(Sn, {
|
|
1375
1434
|
path: "styles.padding",
|
|
1376
1435
|
label: h(x).blockSettings.padding,
|
|
1377
1436
|
"model-value": e.block.styles.padding,
|
|
1378
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
1437
|
+
"onUpdate:modelValue": n[0] ||= (e) => ke("padding", e)
|
|
1379
1438
|
}, null, 8, ["label", "model-value"])]),
|
|
1380
1439
|
_: 1
|
|
1381
1440
|
}, 8, [
|
|
@@ -1383,38 +1442,38 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1383
1442
|
"open",
|
|
1384
1443
|
"no-border"
|
|
1385
1444
|
]),
|
|
1386
|
-
p(
|
|
1445
|
+
p(In, {
|
|
1387
1446
|
title: h(x).blockSettings.background,
|
|
1388
|
-
open:
|
|
1447
|
+
open: q.has("bg"),
|
|
1389
1448
|
"header-test-id": "block-settings-background",
|
|
1390
|
-
onToggle: n[4] ||= (e) =>
|
|
1449
|
+
onToggle: n[4] ||= (e) => he("bg")
|
|
1391
1450
|
}, {
|
|
1392
1451
|
default: u(() => [
|
|
1393
1452
|
p(A, {
|
|
1394
|
-
path:
|
|
1453
|
+
path: ie.value,
|
|
1395
1454
|
label: h(x).blockSettings.color
|
|
1396
1455
|
}, {
|
|
1397
1456
|
default: u(() => [p(M, {
|
|
1398
|
-
"model-value":
|
|
1457
|
+
"model-value": oe.value,
|
|
1399
1458
|
"allow-transparent": "",
|
|
1400
|
-
"onUpdate:modelValue":
|
|
1459
|
+
"onUpdate:modelValue": le
|
|
1401
1460
|
}, null, 8, ["model-value"])]),
|
|
1402
1461
|
_: 1
|
|
1403
1462
|
}, 8, ["path", "label"]),
|
|
1404
|
-
|
|
1463
|
+
B.value ? (a(), w(A, {
|
|
1405
1464
|
key: 0,
|
|
1406
1465
|
path: e.block.type === "section" ? "wrapper.fullWidth" : "fullWidth",
|
|
1407
1466
|
label: h(x).blockSettings.fullWidthBackground
|
|
1408
1467
|
}, {
|
|
1409
1468
|
"label-actions": u(({ controlId: e }) => [p(P, {
|
|
1410
|
-
"data-testid":
|
|
1469
|
+
"data-testid": V.value,
|
|
1411
1470
|
"control-id": e,
|
|
1412
1471
|
"hide-label": "",
|
|
1413
1472
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1414
|
-
"model-value":
|
|
1415
|
-
disabled:
|
|
1473
|
+
"model-value": te.value,
|
|
1474
|
+
disabled: ne.value,
|
|
1416
1475
|
label: h(x).blockSettings.fullWidthBackground,
|
|
1417
|
-
"onUpdate:modelValue":
|
|
1476
|
+
"onUpdate:modelValue": re
|
|
1418
1477
|
}, null, 8, [
|
|
1419
1478
|
"data-testid",
|
|
1420
1479
|
"control-id",
|
|
@@ -1426,21 +1485,21 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1426
1485
|
}, 8, ["path", "label"])) : g("", !0),
|
|
1427
1486
|
e.block.type === "section" ? (a(), w(A, {
|
|
1428
1487
|
key: 1,
|
|
1429
|
-
path:
|
|
1488
|
+
path: ae.value,
|
|
1430
1489
|
label: h(x).blockSettings.backgroundImage
|
|
1431
1490
|
}, {
|
|
1432
|
-
default: u(() => [p(
|
|
1491
|
+
default: u(() => [p(Nn, {
|
|
1433
1492
|
"hide-label": "",
|
|
1434
1493
|
class: "tpl:mt-3.5",
|
|
1435
|
-
"model-value":
|
|
1494
|
+
"model-value": ce.value,
|
|
1436
1495
|
"testid-prefix": "section",
|
|
1437
1496
|
measure: "",
|
|
1438
|
-
"hero-mode":
|
|
1439
|
-
"onUpdate:modelValue":
|
|
1497
|
+
"hero-mode": De.value,
|
|
1498
|
+
"onUpdate:modelValue": ue
|
|
1440
1499
|
}, null, 8, ["model-value", "hero-mode"])]),
|
|
1441
1500
|
_: 1
|
|
1442
1501
|
}, 8, ["path", "label"])) : g("", !0),
|
|
1443
|
-
|
|
1502
|
+
U.value ? (a(), w(A, {
|
|
1444
1503
|
key: 2,
|
|
1445
1504
|
path: "styles.backgroundColor",
|
|
1446
1505
|
label: h(x).blockSettings.contentBackground
|
|
@@ -1449,7 +1508,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1449
1508
|
"data-testid": "section-content-background",
|
|
1450
1509
|
"model-value": e.block.styles.backgroundColor ?? "",
|
|
1451
1510
|
"allow-transparent": "",
|
|
1452
|
-
"onUpdate:modelValue": n[2] ||= (e) =>
|
|
1511
|
+
"onUpdate:modelValue": n[2] ||= (e) => ke("backgroundColor", e)
|
|
1453
1512
|
}, null, 8, ["model-value"])]),
|
|
1454
1513
|
_: 1
|
|
1455
1514
|
}, 8, ["label"])) : g("", !0),
|
|
@@ -1458,7 +1517,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1458
1517
|
path: "hero",
|
|
1459
1518
|
label: h(x).blocks.hero
|
|
1460
1519
|
}, {
|
|
1461
|
-
default: u(() => [p(
|
|
1520
|
+
default: u(() => [p(Wn, {
|
|
1462
1521
|
section: e.block,
|
|
1463
1522
|
onUpdate: n[3] ||= (e) => f("update", e)
|
|
1464
1523
|
}, null, 8, ["section"])]),
|
|
@@ -1467,28 +1526,28 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1467
1526
|
]),
|
|
1468
1527
|
_: 1
|
|
1469
1528
|
}, 8, ["title", "open"]),
|
|
1470
|
-
p(
|
|
1529
|
+
p(In, {
|
|
1471
1530
|
title: h(x).blockSettings.display,
|
|
1472
|
-
open:
|
|
1473
|
-
onToggle: n[6] ||= (e) =>
|
|
1531
|
+
open: q.has("display"),
|
|
1532
|
+
onToggle: n[6] ||= (e) => he("display")
|
|
1474
1533
|
}, {
|
|
1475
|
-
default: u(() => [b("div",
|
|
1534
|
+
default: u(() => [b("div", tr, [j.value && h(k) ? (a(), w(P, {
|
|
1476
1535
|
key: 0,
|
|
1477
1536
|
"data-testid": "locale-hide",
|
|
1478
1537
|
disabled: !h(k).locales.includes(j.value),
|
|
1479
1538
|
"model-value": N.value,
|
|
1480
|
-
label: h(T)(h(x).localization.hide, { language: h(
|
|
1539
|
+
label: h(T)(h(x).localization.hide, { language: h(et)(j.value) }),
|
|
1481
1540
|
"onUpdate:modelValue": n[5] ||= (t) => h(D)?.setBlockHidden?.(e.block.id, t)
|
|
1482
1541
|
}, null, 8, [
|
|
1483
1542
|
"disabled",
|
|
1484
1543
|
"model-value",
|
|
1485
1544
|
"label"
|
|
1486
|
-
])) : g("", !0), (a(), v(S, null, s(
|
|
1545
|
+
])) : g("", !0), (a(), v(S, null, s(me, (e) => p(A, {
|
|
1487
1546
|
key: e.key,
|
|
1488
1547
|
path: `visibility.${e.key}`,
|
|
1489
1548
|
label: h(x).blockSettings[e.labelKey]
|
|
1490
1549
|
}, {
|
|
1491
|
-
label: u(() => [b("span",
|
|
1550
|
+
label: u(() => [b("span", nr, [(a(), w(i(e.icon), {
|
|
1492
1551
|
size: 14,
|
|
1493
1552
|
"stroke-width": 1.5
|
|
1494
1553
|
})), y(" " + r(h(x).blockSettings[e.labelKey]), 1)])]),
|
|
@@ -1496,9 +1555,9 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1496
1555
|
"control-id": t,
|
|
1497
1556
|
"hide-label": "",
|
|
1498
1557
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1499
|
-
"model-value":
|
|
1558
|
+
"model-value": Ae(e.key),
|
|
1500
1559
|
label: h(x).blockSettings[e.labelKey],
|
|
1501
|
-
"onUpdate:modelValue": (t) =>
|
|
1560
|
+
"onUpdate:modelValue": (t) => je(e.key)
|
|
1502
1561
|
}, null, 8, [
|
|
1503
1562
|
"control-id",
|
|
1504
1563
|
"model-value",
|
|
@@ -1509,51 +1568,51 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1509
1568
|
}, 1032, ["path", "label"])), 64))])]),
|
|
1510
1569
|
_: 1
|
|
1511
1570
|
}, 8, ["title", "open"]),
|
|
1512
|
-
|
|
1571
|
+
ge.value ? (a(), w(In, {
|
|
1513
1572
|
key: 0,
|
|
1514
1573
|
"header-test-id": "display-condition-section",
|
|
1515
1574
|
title: h(x).blockSettings.displayCondition,
|
|
1516
|
-
open:
|
|
1517
|
-
onToggle: n[11] ||= (e) =>
|
|
1575
|
+
open: q.has("condition"),
|
|
1576
|
+
onToggle: n[11] ||= (e) => he("condition")
|
|
1518
1577
|
}, {
|
|
1519
|
-
default: u(() => [h(
|
|
1520
|
-
b("p",
|
|
1521
|
-
e.block.displayCondition.description ? (a(), v("p",
|
|
1522
|
-
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", {
|
|
1523
1582
|
type: "button",
|
|
1524
1583
|
"data-testid": "display-condition-edit",
|
|
1525
1584
|
class: o(h(F)),
|
|
1526
|
-
disabled:
|
|
1527
|
-
onClick:
|
|
1528
|
-
}, r(h(x).blockSettings.editCondition), 11,
|
|
1585
|
+
disabled: K.value,
|
|
1586
|
+
onClick: ye
|
|
1587
|
+
}, r(h(x).blockSettings.editCondition), 11, sr), b("button", {
|
|
1529
1588
|
type: "button",
|
|
1530
1589
|
"data-testid": "display-condition-remove",
|
|
1531
1590
|
class: o(h(F)),
|
|
1532
|
-
disabled:
|
|
1591
|
+
disabled: K.value,
|
|
1533
1592
|
onClick: n[7] ||= (e) => f("update", { displayCondition: void 0 })
|
|
1534
|
-
}, r(h(x).blockSettings.removeCondition), 11,
|
|
1593
|
+
}, r(h(x).blockSettings.removeCondition), 11, cr)])
|
|
1535
1594
|
], 64)) : (a(), v("button", {
|
|
1536
1595
|
key: 1,
|
|
1537
1596
|
type: "button",
|
|
1538
1597
|
"data-testid": "display-condition-request",
|
|
1539
1598
|
class: o(h(F)),
|
|
1540
|
-
disabled:
|
|
1541
|
-
onClick:
|
|
1542
|
-
}, r(h(x).blockSettings.addCondition), 11,
|
|
1599
|
+
disabled: K.value,
|
|
1600
|
+
onClick: ye
|
|
1601
|
+
}, r(h(x).blockSettings.addCondition), 11, lr))])) : (a(), v("div", ur, [p(A, {
|
|
1543
1602
|
path: "displayCondition",
|
|
1544
1603
|
label: h(x).blockSettings.displayCondition
|
|
1545
1604
|
}, {
|
|
1546
1605
|
default: u(() => [b("select", {
|
|
1547
1606
|
"data-testid": "display-condition-select",
|
|
1548
1607
|
class: o(["tpl:w-full tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:outline-none tpl:transition-all tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]", e.block.displayCondition ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-text)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"]),
|
|
1549
|
-
value:
|
|
1608
|
+
value: J.value || Z.value ? "__custom__" : e.block.displayCondition?.label ?? "",
|
|
1550
1609
|
onChange: n[8] ||= (e) => {
|
|
1551
1610
|
let t = e.target.value;
|
|
1552
1611
|
if (t === "__custom__") {
|
|
1553
|
-
|
|
1612
|
+
be();
|
|
1554
1613
|
return;
|
|
1555
1614
|
}
|
|
1556
|
-
if (
|
|
1615
|
+
if (J.value = !1, !t) {
|
|
1557
1616
|
f("update", { displayCondition: void 0 });
|
|
1558
1617
|
return;
|
|
1559
1618
|
}
|
|
@@ -1561,43 +1620,43 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1561
1620
|
n && f("update", { displayCondition: n });
|
|
1562
1621
|
}
|
|
1563
1622
|
}, [
|
|
1564
|
-
b("option",
|
|
1565
|
-
(a(!0), v(S, null, s(
|
|
1623
|
+
b("option", fr, r(h(x).blockSettings.noCondition), 1),
|
|
1624
|
+
(a(!0), v(S, null, s(Ce.value, (e, t) => (a(), v(S, { key: t }, [t ? (a(), v("optgroup", {
|
|
1566
1625
|
key: 0,
|
|
1567
1626
|
label: String(t)
|
|
1568
1627
|
}, [(a(!0), v(S, null, s(e, (e) => (a(), v("option", {
|
|
1569
1628
|
key: e.label,
|
|
1570
1629
|
value: e.label
|
|
1571
|
-
}, 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", {
|
|
1572
1631
|
key: e.label,
|
|
1573
1632
|
value: e.label
|
|
1574
|
-
}, r(e.label), 9,
|
|
1575
|
-
h(L) ? (a(), v("option",
|
|
1576
|
-
], 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)]),
|
|
1577
1636
|
_: 1
|
|
1578
|
-
}, 8, ["label"]),
|
|
1579
|
-
b("div", null, [b("label",
|
|
1580
|
-
"onUpdate:modelValue": n[9] ||= (e) =>
|
|
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", {
|
|
1639
|
+
"onUpdate:modelValue": n[9] ||= (e) => Y.value = e,
|
|
1581
1640
|
rows: "2",
|
|
1582
|
-
class: o(h(
|
|
1583
|
-
}, null, 2), [[O,
|
|
1584
|
-
b("div", null, [b("label",
|
|
1585
|
-
"onUpdate:modelValue": n[10] ||= (e) =>
|
|
1641
|
+
class: o(h(H))
|
|
1642
|
+
}, null, 2), [[O, Y.value]])]),
|
|
1643
|
+
b("div", null, [b("label", yr, r(h(x).blockSettings.customConditionAfter), 1), d(b("textarea", {
|
|
1644
|
+
"onUpdate:modelValue": n[10] ||= (e) => X.value = e,
|
|
1586
1645
|
rows: "2",
|
|
1587
|
-
class: o(h(
|
|
1588
|
-
}, null, 2), [[O,
|
|
1589
|
-
b("div",
|
|
1646
|
+
class: o(h(H))
|
|
1647
|
+
}, null, 2), [[O, X.value]])]),
|
|
1648
|
+
b("div", br, [b("button", {
|
|
1590
1649
|
type: "button",
|
|
1591
1650
|
class: o(h(ee)),
|
|
1592
|
-
disabled: !
|
|
1593
|
-
onClick:
|
|
1594
|
-
}, r(h(x).blockSettings.applyCondition), 11,
|
|
1595
|
-
])) : e.block.displayCondition && !
|
|
1651
|
+
disabled: !Y.value.trim(),
|
|
1652
|
+
onClick: Se
|
|
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)]))]),
|
|
1596
1655
|
_: 1
|
|
1597
1656
|
}, 8, ["title", "open"])) : g("", !0)
|
|
1598
1657
|
], 2));
|
|
1599
1658
|
}
|
|
1600
|
-
}),
|
|
1659
|
+
}), Dr = ["title"], Or = { class: "tpl-sr-only" }, kr = ["title"], Ar = { class: "tpl-sr-only" }, jr = /* @__PURE__ */ D({
|
|
1601
1660
|
__name: "FieldLabel",
|
|
1602
1661
|
props: {
|
|
1603
1662
|
label: {},
|
|
@@ -1605,25 +1664,25 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1605
1664
|
readOnly: { type: Boolean }
|
|
1606
1665
|
},
|
|
1607
1666
|
setup(e) {
|
|
1608
|
-
let { t } =
|
|
1667
|
+
let { t } = W();
|
|
1609
1668
|
return (n, i) => (a(), v("span", null, [
|
|
1610
1669
|
y(r(e.label) + " ", 1),
|
|
1611
1670
|
e.readOnly ? (a(), v("span", {
|
|
1612
1671
|
key: 0,
|
|
1613
1672
|
title: h(t).customBlocks.dataSource.readOnlyTooltip
|
|
1614
|
-
}, [p(h(
|
|
1673
|
+
}, [p(h(Ct), {
|
|
1615
1674
|
size: 12,
|
|
1616
1675
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
|
|
1617
1676
|
"aria-hidden": "true"
|
|
1618
|
-
}), b("span",
|
|
1677
|
+
}), b("span", Or, r(h(t).customBlocks.dataSource.readOnlyTooltip), 1)], 8, Dr)) : g("", !0),
|
|
1619
1678
|
e.required ? (a(), v("span", {
|
|
1620
1679
|
key: 1,
|
|
1621
1680
|
class: "tpl:text-[var(--tpl-danger)]",
|
|
1622
1681
|
title: h(t).customBlocks.fields.required
|
|
1623
|
-
}, [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)
|
|
1624
1683
|
]));
|
|
1625
1684
|
}
|
|
1626
|
-
}),
|
|
1685
|
+
}), Mr = ["title"], Nr = /* @__PURE__ */ D({
|
|
1627
1686
|
__name: "BooleanField",
|
|
1628
1687
|
props: {
|
|
1629
1688
|
field: {},
|
|
@@ -1634,7 +1693,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1634
1693
|
},
|
|
1635
1694
|
emits: ["update:modelValue"],
|
|
1636
1695
|
setup(e, { emit: t }) {
|
|
1637
|
-
let n = t, { t: i } =
|
|
1696
|
+
let n = t, { t: i } = W();
|
|
1638
1697
|
return (t, o) => (a(), v("div", {
|
|
1639
1698
|
class: "tpl:mb-3.5",
|
|
1640
1699
|
title: e.readOnly ? h(i).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
@@ -1648,7 +1707,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1648
1707
|
disabled: e.readOnly,
|
|
1649
1708
|
"onUpdate:modelValue": o[0] ||= (e) => n("update:modelValue", e)
|
|
1650
1709
|
}, {
|
|
1651
|
-
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), {
|
|
1652
1711
|
key: 0,
|
|
1653
1712
|
size: 12,
|
|
1654
1713
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
@@ -1661,9 +1720,9 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1661
1720
|
"label",
|
|
1662
1721
|
"required",
|
|
1663
1722
|
"disabled"
|
|
1664
|
-
])], 8,
|
|
1723
|
+
])], 8, Mr));
|
|
1665
1724
|
}
|
|
1666
|
-
}),
|
|
1725
|
+
}), Pr = { class: "tpl:mb-3.5" }, Fr = /* @__PURE__ */ D({
|
|
1667
1726
|
__name: "FieldWrapper",
|
|
1668
1727
|
props: {
|
|
1669
1728
|
label: {},
|
|
@@ -1672,10 +1731,10 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1672
1731
|
readOnly: { type: Boolean }
|
|
1673
1732
|
},
|
|
1674
1733
|
setup(e) {
|
|
1675
|
-
return (t, r) => (a(), v("div",
|
|
1734
|
+
return (t, r) => (a(), v("div", Pr, [e.hideLabel ? g("", !0) : (a(), v("label", {
|
|
1676
1735
|
key: 0,
|
|
1677
|
-
class: o(h(
|
|
1678
|
-
}, [p(
|
|
1736
|
+
class: o(h(V))
|
|
1737
|
+
}, [p(jr, {
|
|
1679
1738
|
label: e.label,
|
|
1680
1739
|
required: e.required,
|
|
1681
1740
|
"read-only": e.readOnly
|
|
@@ -1685,7 +1744,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1685
1744
|
"read-only"
|
|
1686
1745
|
])], 2)), n(t.$slots, "default")]));
|
|
1687
1746
|
}
|
|
1688
|
-
}),
|
|
1747
|
+
}), Ir = /* @__PURE__ */ D({
|
|
1689
1748
|
__name: "ColorField",
|
|
1690
1749
|
props: {
|
|
1691
1750
|
field: {},
|
|
@@ -1695,8 +1754,8 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1695
1754
|
},
|
|
1696
1755
|
emits: ["update:modelValue"],
|
|
1697
1756
|
setup(e, { emit: t }) {
|
|
1698
|
-
let n = e, r = t, { t: i } =
|
|
1699
|
-
return (t, n) => (a(), w(
|
|
1757
|
+
let n = e, r = t, { t: i } = W(), o = E(je, ft), s = m(() => Ze(n.field, o));
|
|
1758
|
+
return (t, n) => (a(), w(Fr, {
|
|
1700
1759
|
"hide-label": e.hideLabel,
|
|
1701
1760
|
label: e.field.label,
|
|
1702
1761
|
required: e.field.required,
|
|
@@ -1726,11 +1785,11 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1726
1785
|
"read-only"
|
|
1727
1786
|
]));
|
|
1728
1787
|
}
|
|
1729
|
-
}),
|
|
1788
|
+
}), Lr = [
|
|
1730
1789
|
"value",
|
|
1731
1790
|
"placeholder",
|
|
1732
1791
|
"title"
|
|
1733
|
-
],
|
|
1792
|
+
], Rr = ["value", "placeholder"], zr = /* @__PURE__ */ D({
|
|
1734
1793
|
__name: "ImageField",
|
|
1735
1794
|
props: {
|
|
1736
1795
|
field: {},
|
|
@@ -1740,12 +1799,12 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1740
1799
|
},
|
|
1741
1800
|
emits: ["update:modelValue"],
|
|
1742
1801
|
setup(e, { emit: t }) {
|
|
1743
|
-
let n = e, i = t, { t: s } =
|
|
1802
|
+
let n = e, i = t, { t: s } = W(), c = _(), { canBrowse: l, isUploading: d, showOverlay: f, openMediaBrowser: m } = Xe({
|
|
1744
1803
|
target: c,
|
|
1745
1804
|
blocked: () => !!n.readOnly,
|
|
1746
1805
|
apply: (e) => i("update:modelValue", e.url)
|
|
1747
1806
|
});
|
|
1748
|
-
return (t, n) => (a(), w(
|
|
1807
|
+
return (t, n) => (a(), w(Fr, {
|
|
1749
1808
|
"hide-label": e.hideLabel,
|
|
1750
1809
|
label: e.field.label,
|
|
1751
1810
|
required: e.field.required,
|
|
@@ -1756,31 +1815,31 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1756
1815
|
ref: c,
|
|
1757
1816
|
class: "tpl:relative"
|
|
1758
1817
|
}, [
|
|
1759
|
-
h(f) ? (a(), w(
|
|
1818
|
+
h(f) ? (a(), w(Be, {
|
|
1760
1819
|
key: 0,
|
|
1761
1820
|
uploading: h(d)
|
|
1762
1821
|
}, null, 8, ["uploading"])) : g("", !0),
|
|
1763
1822
|
e.readOnly ? (a(), v("input", {
|
|
1764
1823
|
key: 1,
|
|
1765
1824
|
type: "url",
|
|
1766
|
-
class: o([h(
|
|
1825
|
+
class: o([h(B), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1767
1826
|
value: e.modelValue,
|
|
1768
1827
|
placeholder: e.field.placeholder || "https://...",
|
|
1769
1828
|
disabled: "",
|
|
1770
1829
|
title: h(s).customBlocks.dataSource.readOnlyTooltip
|
|
1771
|
-
}, null, 10,
|
|
1830
|
+
}, null, 10, Lr)) : (a(), v("input", {
|
|
1772
1831
|
key: 2,
|
|
1773
1832
|
type: "url",
|
|
1774
|
-
class: o(h(
|
|
1833
|
+
class: o(h(B)),
|
|
1775
1834
|
value: e.modelValue,
|
|
1776
1835
|
placeholder: e.field.placeholder || "https://...",
|
|
1777
1836
|
onInput: n[0] ||= (e) => i("update:modelValue", e.target.value)
|
|
1778
|
-
}, null, 42,
|
|
1837
|
+
}, null, 42, Rr)),
|
|
1779
1838
|
h(l) && !e.readOnly ? (a(), v("button", {
|
|
1780
1839
|
key: 3,
|
|
1781
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)]",
|
|
1782
1841
|
onClick: n[1] ||= (e) => h(m)()
|
|
1783
|
-
}, [p(h(
|
|
1842
|
+
}, [p(h(it), {
|
|
1784
1843
|
size: 14,
|
|
1785
1844
|
"stroke-width": 1.5
|
|
1786
1845
|
}), y(" " + r(h(s).image.browseMedia), 1)])) : g("", !0)
|
|
@@ -1793,7 +1852,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1793
1852
|
"read-only"
|
|
1794
1853
|
]));
|
|
1795
1854
|
}
|
|
1796
|
-
}),
|
|
1855
|
+
}), Br = [
|
|
1797
1856
|
"value",
|
|
1798
1857
|
"placeholder",
|
|
1799
1858
|
"min",
|
|
@@ -1801,7 +1860,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1801
1860
|
"step",
|
|
1802
1861
|
"disabled",
|
|
1803
1862
|
"title"
|
|
1804
|
-
],
|
|
1863
|
+
], Vr = /* @__PURE__ */ D({
|
|
1805
1864
|
__name: "NumberField",
|
|
1806
1865
|
props: {
|
|
1807
1866
|
field: {},
|
|
@@ -1811,8 +1870,8 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1811
1870
|
},
|
|
1812
1871
|
emits: ["update:modelValue"],
|
|
1813
1872
|
setup(e, { emit: t }) {
|
|
1814
|
-
let n = t, { t: r } =
|
|
1815
|
-
return (t, i) => (a(), w(
|
|
1873
|
+
let n = t, { t: r } = W();
|
|
1874
|
+
return (t, i) => (a(), w(Fr, {
|
|
1816
1875
|
"hide-label": e.hideLabel,
|
|
1817
1876
|
label: e.field.label,
|
|
1818
1877
|
required: e.field.required,
|
|
@@ -1820,7 +1879,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1820
1879
|
}, {
|
|
1821
1880
|
default: u(() => [b("input", {
|
|
1822
1881
|
type: "number",
|
|
1823
|
-
class: o([h(
|
|
1882
|
+
class: o([h(B), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1824
1883
|
value: e.modelValue,
|
|
1825
1884
|
placeholder: e.field.placeholder,
|
|
1826
1885
|
min: e.field.min,
|
|
@@ -1829,7 +1888,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1829
1888
|
disabled: e.readOnly,
|
|
1830
1889
|
title: e.readOnly ? h(r).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1831
1890
|
onInput: i[0] ||= (t) => !e.readOnly && n("update:modelValue", Number(t.target.value))
|
|
1832
|
-
}, null, 42,
|
|
1891
|
+
}, null, 42, Br)]),
|
|
1833
1892
|
_: 1
|
|
1834
1893
|
}, 8, [
|
|
1835
1894
|
"hide-label",
|
|
@@ -1838,13 +1897,13 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1838
1897
|
"read-only"
|
|
1839
1898
|
]));
|
|
1840
1899
|
}
|
|
1841
|
-
}),
|
|
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 = {
|
|
1842
1901
|
key: 1,
|
|
1843
1902
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1844
|
-
},
|
|
1903
|
+
}, qr = {
|
|
1845
1904
|
key: 2,
|
|
1846
1905
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1847
|
-
},
|
|
1906
|
+
}, Jr = /* @__PURE__ */ D({
|
|
1848
1907
|
__name: "RepeatableField",
|
|
1849
1908
|
props: {
|
|
1850
1909
|
field: {},
|
|
@@ -1854,7 +1913,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1854
1913
|
},
|
|
1855
1914
|
emits: ["update:modelValue"],
|
|
1856
1915
|
setup(e, { emit: t }) {
|
|
1857
|
-
let n = e, c = t, { t: l, format: d } =
|
|
1916
|
+
let n = e, c = t, { t: l, format: d } = W(), f = m(() => n.modelValue || []), _ = m(() => !n.field.maxItems || f.value.length < n.field.maxItems), x = m(() => !n.field.minItems || f.value.length > n.field.minItems);
|
|
1858
1917
|
function C() {
|
|
1859
1918
|
if (!_.value || n.readOnly) return;
|
|
1860
1919
|
let e = {};
|
|
@@ -1873,26 +1932,26 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1873
1932
|
} : r);
|
|
1874
1933
|
c("update:modelValue", r);
|
|
1875
1934
|
}
|
|
1876
|
-
return (t, n) => (a(), w(
|
|
1935
|
+
return (t, n) => (a(), w(Fr, {
|
|
1877
1936
|
"hide-label": e.hideLabel,
|
|
1878
1937
|
label: e.field.label,
|
|
1879
1938
|
required: e.field.required,
|
|
1880
1939
|
"read-only": e.readOnly
|
|
1881
1940
|
}, {
|
|
1882
|
-
default: u(() => [b("div",
|
|
1941
|
+
default: u(() => [b("div", Hr, [
|
|
1883
1942
|
(a(!0), v(S, null, s(f.value, (t, n) => (a(), v("div", {
|
|
1884
1943
|
key: `${e.field.key}-${n}`,
|
|
1885
1944
|
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
|
|
1886
|
-
}, [b("div",
|
|
1945
|
+
}, [b("div", Ur, [b("span", Wr, " #" + r(n + 1), 1), x.value && !e.readOnly ? (a(), v("button", {
|
|
1887
1946
|
key: 0,
|
|
1888
1947
|
type: "button",
|
|
1889
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)]",
|
|
1890
1949
|
title: h(l).customBlocks.fields.removeItem,
|
|
1891
1950
|
onClick: (e) => T(n)
|
|
1892
|
-
}, [p(h(
|
|
1951
|
+
}, [p(h(pt), {
|
|
1893
1952
|
size: 12,
|
|
1894
1953
|
"stroke-width": 2
|
|
1895
|
-
})], 8,
|
|
1954
|
+
})], 8, Gr)) : g("", !0)]), (a(!0), v(S, null, s(e.field.fields, (r) => (a(), w(i(h(ri)(r.type)), {
|
|
1896
1955
|
key: r.key,
|
|
1897
1956
|
field: r,
|
|
1898
1957
|
"model-value": t[r.key],
|
|
@@ -1907,14 +1966,14 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1907
1966
|
_.value && !e.readOnly ? (a(), v("button", {
|
|
1908
1967
|
key: 0,
|
|
1909
1968
|
type: "button",
|
|
1910
|
-
class: o(h(
|
|
1969
|
+
class: o(h(R)),
|
|
1911
1970
|
onClick: C
|
|
1912
|
-
}, [p(h(
|
|
1971
|
+
}, [p(h(Q), {
|
|
1913
1972
|
size: 14,
|
|
1914
1973
|
"stroke-width": 2
|
|
1915
1974
|
}), y(" " + r(h(l).customBlocks.fields.addItem), 1)], 2)) : g("", !0),
|
|
1916
|
-
!_.value && !e.readOnly ? (a(), v("p",
|
|
1917
|
-
!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)
|
|
1918
1977
|
])]),
|
|
1919
1978
|
_: 1
|
|
1920
1979
|
}, 8, [
|
|
@@ -1924,11 +1983,11 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1924
1983
|
"read-only"
|
|
1925
1984
|
]));
|
|
1926
1985
|
}
|
|
1927
|
-
}),
|
|
1986
|
+
}), Yr = [
|
|
1928
1987
|
"value",
|
|
1929
1988
|
"disabled",
|
|
1930
1989
|
"title"
|
|
1931
|
-
],
|
|
1990
|
+
], Xr = ["value"], Zr = /* @__PURE__ */ D({
|
|
1932
1991
|
__name: "SelectField",
|
|
1933
1992
|
props: {
|
|
1934
1993
|
field: {},
|
|
@@ -1938,15 +1997,15 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1938
1997
|
},
|
|
1939
1998
|
emits: ["update:modelValue"],
|
|
1940
1999
|
setup(e, { emit: t }) {
|
|
1941
|
-
let n = t, { t: i } =
|
|
1942
|
-
return (t, c) => (a(), w(
|
|
2000
|
+
let n = t, { t: i } = W();
|
|
2001
|
+
return (t, c) => (a(), w(Fr, {
|
|
1943
2002
|
"hide-label": e.hideLabel,
|
|
1944
2003
|
label: e.field.label,
|
|
1945
2004
|
required: e.field.required,
|
|
1946
2005
|
"read-only": e.readOnly
|
|
1947
2006
|
}, {
|
|
1948
2007
|
default: u(() => [b("select", {
|
|
1949
|
-
class: o([h(
|
|
2008
|
+
class: o([h(B), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1950
2009
|
value: e.modelValue,
|
|
1951
2010
|
disabled: e.readOnly,
|
|
1952
2011
|
title: e.readOnly ? h(i).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
@@ -1954,7 +2013,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1954
2013
|
}, [(a(!0), v(S, null, s(e.field.options, (e) => (a(), v("option", {
|
|
1955
2014
|
key: e.value,
|
|
1956
2015
|
value: e.value
|
|
1957
|
-
}, r(e.label), 9,
|
|
2016
|
+
}, r(e.label), 9, Xr))), 128))], 42, Yr)]),
|
|
1958
2017
|
_: 1
|
|
1959
2018
|
}, 8, [
|
|
1960
2019
|
"hide-label",
|
|
@@ -1963,11 +2022,11 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1963
2022
|
"read-only"
|
|
1964
2023
|
]));
|
|
1965
2024
|
}
|
|
1966
|
-
}),
|
|
2025
|
+
}), Qr = [
|
|
1967
2026
|
"value",
|
|
1968
2027
|
"placeholder",
|
|
1969
2028
|
"title"
|
|
1970
|
-
],
|
|
2029
|
+
], $r = /* @__PURE__ */ D({
|
|
1971
2030
|
__name: "TextField",
|
|
1972
2031
|
props: {
|
|
1973
2032
|
field: {},
|
|
@@ -1977,8 +2036,8 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1977
2036
|
},
|
|
1978
2037
|
emits: ["update:modelValue"],
|
|
1979
2038
|
setup(e, { emit: t }) {
|
|
1980
|
-
let n = t, { t: r } =
|
|
1981
|
-
return (t, i) => (a(), w(
|
|
2039
|
+
let n = t, { t: r } = W();
|
|
2040
|
+
return (t, i) => (a(), w(Fr, {
|
|
1982
2041
|
"hide-label": e.hideLabel,
|
|
1983
2042
|
label: e.field.label,
|
|
1984
2043
|
required: e.field.required,
|
|
@@ -1987,12 +2046,12 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1987
2046
|
default: u(() => [e.readOnly ? (a(), v("input", {
|
|
1988
2047
|
key: 0,
|
|
1989
2048
|
type: "text",
|
|
1990
|
-
class: o([h(
|
|
2049
|
+
class: o([h(B), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1991
2050
|
value: e.modelValue,
|
|
1992
2051
|
placeholder: e.field.placeholder,
|
|
1993
2052
|
disabled: "",
|
|
1994
2053
|
title: h(r).customBlocks.dataSource.readOnlyTooltip
|
|
1995
|
-
}, null, 10,
|
|
2054
|
+
}, null, 10, Qr)) : (a(), w(N, {
|
|
1996
2055
|
key: 1,
|
|
1997
2056
|
"model-value": e.modelValue,
|
|
1998
2057
|
placeholder: e.field.placeholder,
|
|
@@ -2006,12 +2065,12 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
2006
2065
|
"read-only"
|
|
2007
2066
|
]));
|
|
2008
2067
|
}
|
|
2009
|
-
}),
|
|
2068
|
+
}), ei = [
|
|
2010
2069
|
"value",
|
|
2011
2070
|
"placeholder",
|
|
2012
2071
|
"title"
|
|
2013
|
-
],
|
|
2014
|
-
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,
|
|
2015
2074
|
textarea: /* @__PURE__ */ D({
|
|
2016
2075
|
__name: "TextareaField",
|
|
2017
2076
|
props: {
|
|
@@ -2022,8 +2081,8 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
2022
2081
|
},
|
|
2023
2082
|
emits: ["update:modelValue"],
|
|
2024
2083
|
setup(e, { emit: t }) {
|
|
2025
|
-
let n = t, { t: r } =
|
|
2026
|
-
return (t, i) => (a(), w(
|
|
2084
|
+
let n = t, { t: r } = W();
|
|
2085
|
+
return (t, i) => (a(), w(Fr, {
|
|
2027
2086
|
"hide-label": e.hideLabel,
|
|
2028
2087
|
label: e.field.label,
|
|
2029
2088
|
required: e.field.required,
|
|
@@ -2036,8 +2095,8 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
2036
2095
|
rows: "3",
|
|
2037
2096
|
disabled: "",
|
|
2038
2097
|
title: h(r).customBlocks.dataSource.readOnlyTooltip,
|
|
2039
|
-
class: o(
|
|
2040
|
-
}, null, 8,
|
|
2098
|
+
class: o(ti)
|
|
2099
|
+
}, null, 8, ei)) : (a(), w(j, {
|
|
2041
2100
|
key: 1,
|
|
2042
2101
|
"model-value": e.modelValue,
|
|
2043
2102
|
placeholder: e.field.placeholder,
|
|
@@ -2052,41 +2111,41 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
2052
2111
|
]));
|
|
2053
2112
|
}
|
|
2054
2113
|
}),
|
|
2055
|
-
image:
|
|
2056
|
-
color:
|
|
2057
|
-
number:
|
|
2058
|
-
select:
|
|
2059
|
-
boolean:
|
|
2060
|
-
repeatable:
|
|
2114
|
+
image: zr,
|
|
2115
|
+
color: Ir,
|
|
2116
|
+
number: Vr,
|
|
2117
|
+
select: Zr,
|
|
2118
|
+
boolean: Nr,
|
|
2119
|
+
repeatable: Jr
|
|
2061
2120
|
};
|
|
2062
|
-
function
|
|
2063
|
-
return
|
|
2121
|
+
function ri(e) {
|
|
2122
|
+
return ni[e] ?? $r;
|
|
2064
2123
|
}
|
|
2065
2124
|
// src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2066
|
-
var
|
|
2125
|
+
var ii = {
|
|
2067
2126
|
key: 0,
|
|
2068
2127
|
class: "tpl:p-4"
|
|
2069
|
-
},
|
|
2128
|
+
}, ai = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, oi = { key: 1 }, si = {
|
|
2070
2129
|
key: 0,
|
|
2071
2130
|
class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
2072
|
-
},
|
|
2131
|
+
}, ci = {
|
|
2073
2132
|
key: 1,
|
|
2074
2133
|
class: "tpl:mb-4"
|
|
2075
|
-
},
|
|
2134
|
+
}, li = {
|
|
2076
2135
|
key: 1,
|
|
2077
2136
|
class: "tpl:flex tpl:h-[32px] tpl:items-center"
|
|
2078
|
-
},
|
|
2137
|
+
}, ui = {
|
|
2079
2138
|
key: 0,
|
|
2080
2139
|
class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
2081
|
-
},
|
|
2140
|
+
}, di = {
|
|
2082
2141
|
key: 2,
|
|
2083
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)]"
|
|
2084
|
-
},
|
|
2143
|
+
}, fi = /* @__PURE__ */ D({
|
|
2085
2144
|
__name: "CustomBlockToolbar",
|
|
2086
2145
|
props: { block: {} },
|
|
2087
2146
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
2088
2147
|
setup(e, { emit: t }) {
|
|
2089
|
-
let n = e, o = t, { t: c } =
|
|
2148
|
+
let n = e, o = t, { t: c } = W(), l = E(Ae, []), d = m(() => l.find((e) => e.type === n.block.customType)), f = m(() => n.block), { isFetching: _, fetchError: x, fetch: C, hasDataSource: T, needsFetch: D } = Fe({
|
|
2090
2149
|
definition: d,
|
|
2091
2150
|
block: f,
|
|
2092
2151
|
onUpdate: (e, t) => {
|
|
@@ -2102,19 +2161,19 @@ var Jr = {
|
|
|
2102
2161
|
[e]: t
|
|
2103
2162
|
});
|
|
2104
2163
|
}
|
|
2105
|
-
return (t, n) => d.value ? (a(), v("div",
|
|
2106
|
-
d.value.description ? (a(), v("p",
|
|
2107
|
-
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", {
|
|
2108
2167
|
key: 0,
|
|
2109
2168
|
type: "button",
|
|
2110
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)]",
|
|
2111
2170
|
onClick: n[0] ||= (...e) => h(C) && h(C)(...e)
|
|
2112
|
-
}, 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", {
|
|
2113
2172
|
key: 1,
|
|
2114
2173
|
type: "button",
|
|
2115
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)]",
|
|
2116
2175
|
onClick: n[1] ||= (...e) => h(C) && h(C)(...e)
|
|
2117
|
-
}, [p(h(
|
|
2176
|
+
}, [p(h(ut), { size: 12 }), y(" " + r(h(c).customBlocks.dataSource.changeButton), 1)]))])), h(x) ? (a(), v("p", di, [p(h(lt), {
|
|
2118
2177
|
size: 14,
|
|
2119
2178
|
class: "tpl:shrink-0"
|
|
2120
2179
|
}), y(" " + r(h(c).customBlocks.dataSource.fetchError), 1)])) : g("", !0)])) : g("", !0),
|
|
@@ -2123,7 +2182,7 @@ var Jr = {
|
|
|
2123
2182
|
path: `fieldValues.${t.key}`,
|
|
2124
2183
|
label: t.label
|
|
2125
2184
|
}, {
|
|
2126
|
-
label: u(() => [p(
|
|
2185
|
+
label: u(() => [p(jr, {
|
|
2127
2186
|
label: t.label,
|
|
2128
2187
|
required: t.required,
|
|
2129
2188
|
"read-only": O(t)
|
|
@@ -2132,7 +2191,7 @@ var Jr = {
|
|
|
2132
2191
|
"required",
|
|
2133
2192
|
"read-only"
|
|
2134
2193
|
])]),
|
|
2135
|
-
default: u(({ controlId: n }) => [(a(), w(i(h(
|
|
2194
|
+
default: u(({ controlId: n }) => [(a(), w(i(h(ri)(t.type)), {
|
|
2136
2195
|
"control-id": t.type === "boolean" ? n : void 0,
|
|
2137
2196
|
field: t,
|
|
2138
2197
|
"hide-label": "",
|
|
@@ -2148,14 +2207,14 @@ var Jr = {
|
|
|
2148
2207
|
]))]),
|
|
2149
2208
|
_: 2
|
|
2150
2209
|
}, 1032, ["path", "label"]))), 128))
|
|
2151
|
-
])) : (a(), v("div",
|
|
2210
|
+
])) : (a(), v("div", ii, [b("p", ai, r(h(c).customBlocks.toolbar.noDefinition), 1)]));
|
|
2152
2211
|
}
|
|
2153
|
-
}),
|
|
2212
|
+
}), pi = { class: "tpl:flex tpl:items-stretch" }, mi = ["value"], hi = /* @__PURE__ */ D({
|
|
2154
2213
|
__name: "DividerToolbar",
|
|
2155
2214
|
props: { block: {} },
|
|
2156
2215
|
emits: ["update"],
|
|
2157
2216
|
setup(e, { emit: t }) {
|
|
2158
|
-
let n = t, { t: r } =
|
|
2217
|
+
let n = t, { t: r } = W();
|
|
2159
2218
|
function i(e, t) {
|
|
2160
2219
|
n("update", { [e]: t });
|
|
2161
2220
|
}
|
|
@@ -2165,7 +2224,7 @@ var Jr = {
|
|
|
2165
2224
|
class: "tpl:mb-3.5",
|
|
2166
2225
|
path: "lineStyle"
|
|
2167
2226
|
}, {
|
|
2168
|
-
default: u(() => [p(
|
|
2227
|
+
default: u(() => [p($, {
|
|
2169
2228
|
options: [
|
|
2170
2229
|
{
|
|
2171
2230
|
value: "solid",
|
|
@@ -2201,24 +2260,24 @@ var Jr = {
|
|
|
2201
2260
|
class: "tpl:mb-3.5",
|
|
2202
2261
|
path: "thickness"
|
|
2203
2262
|
}, {
|
|
2204
|
-
default: u(() => [b("div",
|
|
2263
|
+
default: u(() => [b("div", pi, [b("input", {
|
|
2205
2264
|
type: "number",
|
|
2206
|
-
class: o(h(
|
|
2265
|
+
class: o(h(z)),
|
|
2207
2266
|
value: e.block.thickness,
|
|
2208
2267
|
min: "1",
|
|
2209
2268
|
max: "10",
|
|
2210
2269
|
onInput: n[2] ||= (e) => i("thickness", Number(e.target.value))
|
|
2211
|
-
}, null, 42,
|
|
2270
|
+
}, null, 42, mi), b("span", { class: o(h(L)) }, "px", 2)])]),
|
|
2212
2271
|
_: 1
|
|
2213
2272
|
}, 8, ["label"])
|
|
2214
2273
|
], 64));
|
|
2215
2274
|
}
|
|
2216
|
-
}),
|
|
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({
|
|
2217
2276
|
__name: "HtmlToolbar",
|
|
2218
2277
|
props: { block: {} },
|
|
2219
2278
|
emits: ["update"],
|
|
2220
2279
|
setup(e, { emit: t }) {
|
|
2221
|
-
let n = t, { t: i } =
|
|
2280
|
+
let n = t, { t: i } = W();
|
|
2222
2281
|
return (t, s) => (a(), w(A, {
|
|
2223
2282
|
label: h(i).html.content,
|
|
2224
2283
|
class: "tpl:mb-3.5",
|
|
@@ -2228,9 +2287,9 @@ var Jr = {
|
|
|
2228
2287
|
value: e.block.content,
|
|
2229
2288
|
placeholder: "<div>...</div>",
|
|
2230
2289
|
rows: "10",
|
|
2231
|
-
class: o(h(
|
|
2290
|
+
class: o(h(H)),
|
|
2232
2291
|
onInput: s[0] ||= (e) => n("update", { content: e.target.value })
|
|
2233
|
-
}, null, 42,
|
|
2292
|
+
}, null, 42, gi), b("p", _i, [p(h(mt), {
|
|
2234
2293
|
size: 12,
|
|
2235
2294
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
2236
2295
|
}), y(" " + r(h(i).html.sanitizationHint), 1)])]),
|
|
@@ -2239,12 +2298,12 @@ var Jr = {
|
|
|
2239
2298
|
}
|
|
2240
2299
|
});
|
|
2241
2300
|
// src/composables/useImageAspectLock.ts
|
|
2242
|
-
function
|
|
2301
|
+
function yi(e) {
|
|
2243
2302
|
let n = _(!1), r = _(null);
|
|
2244
2303
|
t(() => e.block().id, () => {
|
|
2245
2304
|
n.value = !1, r.value = null;
|
|
2246
2305
|
});
|
|
2247
|
-
let i = m(() =>
|
|
2306
|
+
let i = m(() => Ve(e.block()) ?? e.measured()), a = m(() => {
|
|
2248
2307
|
let t = e.block().width;
|
|
2249
2308
|
return t === "full" ? e.room() : t;
|
|
2250
2309
|
}), o = m(() => {
|
|
@@ -2255,9 +2314,9 @@ function li(e) {
|
|
|
2255
2314
|
return t === void 0 || o.value !== null && Math.abs(o.value - t) <= 1;
|
|
2256
2315
|
}), l = m(() => s.value && !n.value && c.value);
|
|
2257
2316
|
function u() {
|
|
2258
|
-
if (
|
|
2317
|
+
if (Ve(e.block())) return {};
|
|
2259
2318
|
let t = e.measured();
|
|
2260
|
-
return t ?
|
|
2319
|
+
return t ? He(t) : {};
|
|
2261
2320
|
}
|
|
2262
2321
|
function d(t) {
|
|
2263
2322
|
if (r.value = null, !t) return n.value = !0, null;
|
|
@@ -2299,27 +2358,27 @@ function li(e) {
|
|
|
2299
2358
|
};
|
|
2300
2359
|
}
|
|
2301
2360
|
// src/components/toolbar/ImageToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2302
|
-
var
|
|
2361
|
+
var bi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, xi = [
|
|
2303
2362
|
"value",
|
|
2304
2363
|
"placeholder",
|
|
2305
2364
|
"title"
|
|
2306
|
-
],
|
|
2365
|
+
], Si = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, Ci = ["value"], wi = { value: "full" }, Ti = { value: "custom" }, Ei = {
|
|
2307
2366
|
key: 0,
|
|
2308
2367
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2309
|
-
},
|
|
2368
|
+
}, Di = ["value"], Oi = ["value"], ki = { value: "auto" }, Ai = { value: "always" }, ji = { value: "never" }, Mi = { class: "tpl:flex tpl:items-stretch" }, Ni = ["value"], Pi = {
|
|
2310
2369
|
key: 0,
|
|
2311
2370
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
2312
2371
|
role: "status",
|
|
2313
2372
|
"data-testid": "image-height-capped"
|
|
2314
|
-
},
|
|
2373
|
+
}, Fi = ["value"], Ii = { value: "auto" }, Li = { value: "custom" }, Ri = {
|
|
2315
2374
|
key: 2,
|
|
2316
2375
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2317
|
-
},
|
|
2376
|
+
}, zi = ["value"], Bi = 350, Vi = 200, Hi = /* @__PURE__ */ D({
|
|
2318
2377
|
__name: "ImageToolbar",
|
|
2319
2378
|
props: { block: {} },
|
|
2320
2379
|
emits: ["update"],
|
|
2321
2380
|
setup(e, { emit: t }) {
|
|
2322
|
-
let n = e, i = t, { t: s, format: c } =
|
|
2381
|
+
let n = e, i = t, { t: s, format: c } = W(), l = E(Se, Z.liquid), d = E(Pe, null), f = d ? be(d) : null, C = E(Ee, void 0), T = _(!1), D = _(!1), { start: O } = ht(() => {
|
|
2323
2382
|
T.value = !1, D.value = !1;
|
|
2324
2383
|
}, 1e3, { immediate: !1 }), k = [
|
|
2325
2384
|
300,
|
|
@@ -2335,55 +2394,55 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2335
2394
|
function ee(e) {
|
|
2336
2395
|
if (e === "custom") {
|
|
2337
2396
|
let e = n.block.width;
|
|
2338
|
-
(typeof e != "number" || k.includes(e)) && i("update",
|
|
2339
|
-
} else i("update",
|
|
2397
|
+
(typeof e != "number" || k.includes(e)) && i("update", K.widthUpdates(Bi));
|
|
2398
|
+
} else i("update", K.widthUpdates(e === "full" ? "full" : Number(e)));
|
|
2340
2399
|
}
|
|
2341
|
-
function
|
|
2342
|
-
I("height", e === "custom" ?
|
|
2400
|
+
function R(e) {
|
|
2401
|
+
I("height", e === "custom" ? Vi : void 0);
|
|
2343
2402
|
}
|
|
2344
|
-
function
|
|
2403
|
+
function te(e) {
|
|
2345
2404
|
I("fluidOnMobile", e === "always" || e !== "never" && void 0);
|
|
2346
2405
|
}
|
|
2347
|
-
function
|
|
2406
|
+
function ne(e) {
|
|
2348
2407
|
let t = Number(e);
|
|
2349
2408
|
!Number.isFinite(t) || t <= 0 || I("height", t);
|
|
2350
2409
|
}
|
|
2351
|
-
function
|
|
2352
|
-
I("borderRadius",
|
|
2410
|
+
function V(e) {
|
|
2411
|
+
I("borderRadius", pe(e) === null ? void 0 : e);
|
|
2353
2412
|
}
|
|
2354
|
-
function
|
|
2413
|
+
function H(e) {
|
|
2355
2414
|
let t = Number(e);
|
|
2356
|
-
!Number.isFinite(t) || t <= 0 || i("update",
|
|
2415
|
+
!Number.isFinite(t) || t <= 0 || i("update", K.widthUpdates(t));
|
|
2357
2416
|
}
|
|
2358
|
-
function
|
|
2417
|
+
function re(e) {
|
|
2359
2418
|
e !== n.block.src && i("update", {
|
|
2360
2419
|
src: e,
|
|
2361
|
-
...
|
|
2420
|
+
...He(null)
|
|
2362
2421
|
});
|
|
2363
2422
|
}
|
|
2364
|
-
function
|
|
2423
|
+
function U(e) {
|
|
2365
2424
|
i("update", {
|
|
2366
2425
|
src: e.url,
|
|
2367
|
-
...
|
|
2426
|
+
...He(Le(e.width, e.height))
|
|
2368
2427
|
}), e.alt && (I("alt", e.alt), D.value = !0), T.value = !0, O();
|
|
2369
2428
|
}
|
|
2370
|
-
let
|
|
2371
|
-
target:
|
|
2372
|
-
blocked:
|
|
2373
|
-
apply:
|
|
2374
|
-
}),
|
|
2429
|
+
let ie = _(), ae = m(() => G(n.block.src, l)), { canBrowse: oe, isUploading: se, showOverlay: ce, openMediaBrowser: le } = Xe({
|
|
2430
|
+
target: ie,
|
|
2431
|
+
blocked: ae,
|
|
2432
|
+
apply: U
|
|
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({
|
|
2375
2434
|
block: () => n.block,
|
|
2376
|
-
room: () =>
|
|
2377
|
-
measured: () =>
|
|
2378
|
-
}), { available:
|
|
2379
|
-
function
|
|
2380
|
-
let e =
|
|
2435
|
+
room: () => fe.value,
|
|
2436
|
+
measured: () => de.value
|
|
2437
|
+
}), { available: q, locked: J, derivedHeight: Y, cappedHeight: X } = K;
|
|
2438
|
+
function me() {
|
|
2439
|
+
let e = K.setLocked(!J.value);
|
|
2381
2440
|
e && i("update", e);
|
|
2382
2441
|
}
|
|
2383
|
-
let
|
|
2384
|
-
function
|
|
2385
|
-
|
|
2386
|
-
let t =
|
|
2442
|
+
let he = _(null);
|
|
2443
|
+
function ge(e) {
|
|
2444
|
+
he.value = e;
|
|
2445
|
+
let t = K.heightUpdates(Number(e));
|
|
2387
2446
|
t && i("update", t);
|
|
2388
2447
|
}
|
|
2389
2448
|
return (t, n) => (a(), v(S, null, [
|
|
@@ -2394,25 +2453,25 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2394
2453
|
}, {
|
|
2395
2454
|
default: u(() => [b("div", {
|
|
2396
2455
|
ref_key: "dropZoneRef",
|
|
2397
|
-
ref:
|
|
2456
|
+
ref: ie,
|
|
2398
2457
|
class: "tpl:relative"
|
|
2399
2458
|
}, [
|
|
2400
|
-
h(
|
|
2459
|
+
h(ce) ? (a(), w(Be, {
|
|
2401
2460
|
key: 0,
|
|
2402
|
-
uploading: h(
|
|
2461
|
+
uploading: h(se)
|
|
2403
2462
|
}, null, 8, ["uploading"])) : g("", !0),
|
|
2404
2463
|
p(N, {
|
|
2405
2464
|
"model-value": e.block.src,
|
|
2406
2465
|
type: "url",
|
|
2407
2466
|
placeholder: h(s).image.imageUrlPlaceholder,
|
|
2408
2467
|
pulse: T.value,
|
|
2409
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
2468
|
+
"onUpdate:modelValue": n[0] ||= (e) => re(e)
|
|
2410
2469
|
}, null, 8, [
|
|
2411
2470
|
"model-value",
|
|
2412
2471
|
"placeholder",
|
|
2413
2472
|
"pulse"
|
|
2414
2473
|
]),
|
|
2415
|
-
h(
|
|
2474
|
+
h(oe) ? (a(), v("button", {
|
|
2416
2475
|
key: 1,
|
|
2417
2476
|
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",
|
|
2418
2477
|
style: {
|
|
@@ -2420,28 +2479,28 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2420
2479
|
color: "var(--tpl-primary)",
|
|
2421
2480
|
"background-color": "var(--tpl-bg)"
|
|
2422
2481
|
},
|
|
2423
|
-
onClick: n[1] ||= (...e) => h(
|
|
2424
|
-
}, [p(h(
|
|
2482
|
+
onClick: n[1] ||= (...e) => h(le) && h(le)(...e)
|
|
2483
|
+
}, [p(h(it), {
|
|
2425
2484
|
size: 14,
|
|
2426
2485
|
"stroke-width": 1.5
|
|
2427
2486
|
}), y(" " + r(h(s).image.browseMedia), 1)])) : g("", !0)
|
|
2428
2487
|
], 512)]),
|
|
2429
2488
|
_: 1
|
|
2430
2489
|
}, 8, ["label"]),
|
|
2431
|
-
h(
|
|
2490
|
+
h(G)(e.block.src, h(l)) ? (a(), w(A, {
|
|
2432
2491
|
key: 0,
|
|
2433
2492
|
class: "tpl:mb-3.5",
|
|
2434
2493
|
path: "placeholderUrl"
|
|
2435
2494
|
}, {
|
|
2436
|
-
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)]),
|
|
2437
2496
|
default: u(() => [b("input", {
|
|
2438
2497
|
type: "url",
|
|
2439
|
-
class: o(h(
|
|
2498
|
+
class: o(h(B)),
|
|
2440
2499
|
value: e.block.placeholderUrl || "",
|
|
2441
2500
|
placeholder: h(s).image.placeholderUrlPlaceholder,
|
|
2442
2501
|
title: h(s).image.placeholderUrlTooltip,
|
|
2443
2502
|
onInput: n[2] ||= (e) => I("placeholderUrl", e.target.value)
|
|
2444
|
-
}, null, 42,
|
|
2503
|
+
}, null, 42, xi)]),
|
|
2445
2504
|
_: 1
|
|
2446
2505
|
})) : g("", !0),
|
|
2447
2506
|
p(A, {
|
|
@@ -2465,7 +2524,7 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2465
2524
|
path: "decorative",
|
|
2466
2525
|
label: h(s).image.decorative
|
|
2467
2526
|
}, {
|
|
2468
|
-
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)])]),
|
|
2469
2528
|
"label-actions": u(({ controlId: t }) => [p(P, {
|
|
2470
2529
|
"control-id": t,
|
|
2471
2530
|
"hide-label": "",
|
|
@@ -2488,24 +2547,24 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2488
2547
|
path: "width"
|
|
2489
2548
|
}, {
|
|
2490
2549
|
default: u(() => [b("select", {
|
|
2491
|
-
class: o(h(
|
|
2550
|
+
class: o(h(B)),
|
|
2492
2551
|
"data-testid": "image-width-mode",
|
|
2493
2552
|
value: j.value,
|
|
2494
2553
|
onChange: n[5] ||= (e) => ee(e.target.value)
|
|
2495
2554
|
}, [
|
|
2496
|
-
b("option",
|
|
2555
|
+
b("option", wi, r(h(s).image.fullWidth), 1),
|
|
2497
2556
|
n[16] ||= b("option", { value: "300" }, "300px", -1),
|
|
2498
2557
|
n[17] ||= b("option", { value: "400" }, "400px", -1),
|
|
2499
2558
|
n[18] ||= b("option", { value: "500" }, "500px", -1),
|
|
2500
|
-
b("option",
|
|
2501
|
-
], 42,
|
|
2559
|
+
b("option", Ti, r(h(s).image.widthCustom), 1)
|
|
2560
|
+
], 42, Ci), j.value === "custom" ? (a(), v("div", Ei, [b("input", {
|
|
2502
2561
|
type: "number",
|
|
2503
2562
|
"data-testid": "image-width-input",
|
|
2504
|
-
class: o(h(
|
|
2505
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
2563
|
+
class: o(h(z)),
|
|
2564
|
+
value: typeof e.block.width == "number" ? e.block.width : Bi,
|
|
2506
2565
|
min: "20",
|
|
2507
|
-
onInput: n[6] ||= (e) =>
|
|
2508
|
-
}, null, 42,
|
|
2566
|
+
onInput: n[6] ||= (e) => H(e.target.value)
|
|
2567
|
+
}, null, 42, Di), b("span", { class: o(h(L)) }, "px", 2)])) : g("", !0)]),
|
|
2509
2568
|
_: 1
|
|
2510
2569
|
}, 8, ["label"]),
|
|
2511
2570
|
p(A, {
|
|
@@ -2514,15 +2573,15 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2514
2573
|
path: "fluidOnMobile"
|
|
2515
2574
|
}, {
|
|
2516
2575
|
default: u(() => [b("select", {
|
|
2517
|
-
class: o(h(
|
|
2576
|
+
class: o(h(B)),
|
|
2518
2577
|
"data-testid": "image-fluid-on-mobile",
|
|
2519
2578
|
value: F.value,
|
|
2520
|
-
onChange: n[7] ||= (e) =>
|
|
2579
|
+
onChange: n[7] ||= (e) => te(e.target.value)
|
|
2521
2580
|
}, [
|
|
2522
|
-
b("option",
|
|
2523
|
-
b("option",
|
|
2524
|
-
b("option",
|
|
2525
|
-
], 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)]),
|
|
2526
2585
|
_: 1
|
|
2527
2586
|
}, 8, ["label"]),
|
|
2528
2587
|
p(A, {
|
|
@@ -2531,40 +2590,40 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2531
2590
|
label: h(s).image.height
|
|
2532
2591
|
}, x({
|
|
2533
2592
|
default: u(() => [
|
|
2534
|
-
h(
|
|
2593
|
+
h(J) ? (a(), v(S, { key: 0 }, [b("div", Mi, [b("input", {
|
|
2535
2594
|
type: "number",
|
|
2536
2595
|
"data-testid": "image-locked-height-input",
|
|
2537
|
-
class: o(h(
|
|
2538
|
-
value:
|
|
2596
|
+
class: o(h(z)),
|
|
2597
|
+
value: he.value ?? h(Y) ?? "",
|
|
2539
2598
|
min: "1",
|
|
2540
|
-
onInput: n[8] ||= (e) =>
|
|
2541
|
-
onBlur: n[9] ||= (e) =>
|
|
2542
|
-
}, null, 42,
|
|
2543
|
-
h(
|
|
2599
|
+
onInput: n[8] ||= (e) => ge(e.target.value),
|
|
2600
|
+
onBlur: n[9] ||= (e) => he.value = null
|
|
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),
|
|
2602
|
+
h(J) ? g("", !0) : (a(), v("select", {
|
|
2544
2603
|
key: 1,
|
|
2545
|
-
class: o(h(
|
|
2604
|
+
class: o(h(B)),
|
|
2546
2605
|
"data-testid": "image-height-mode",
|
|
2547
2606
|
value: M.value,
|
|
2548
|
-
onChange: n[10] ||= (e) =>
|
|
2549
|
-
}, [b("option",
|
|
2550
|
-
!h(
|
|
2607
|
+
onChange: n[10] ||= (e) => R(e.target.value)
|
|
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", {
|
|
2551
2610
|
type: "number",
|
|
2552
2611
|
"data-testid": "image-height-input",
|
|
2553
|
-
class: o(h(
|
|
2612
|
+
class: o(h(z)),
|
|
2554
2613
|
value: e.block.height,
|
|
2555
2614
|
min: "20",
|
|
2556
|
-
onInput: n[11] ||= (e) =>
|
|
2557
|
-
}, null, 42,
|
|
2615
|
+
onInput: n[11] ||= (e) => ne(e.target.value)
|
|
2616
|
+
}, null, 42, zi), b("span", { class: o(h(L)) }, "px", 2)])) : g("", !0)
|
|
2558
2617
|
]),
|
|
2559
2618
|
_: 2
|
|
2560
|
-
}, [h(
|
|
2619
|
+
}, [h(q) ? {
|
|
2561
2620
|
name: "label-actions",
|
|
2562
|
-
fn: u(() => [p(
|
|
2563
|
-
linked: h(
|
|
2621
|
+
fn: u(() => [p(jt, {
|
|
2622
|
+
linked: h(J),
|
|
2564
2623
|
"link-label": h(s).image.lockAspectRatio,
|
|
2565
2624
|
"unlink-label": h(s).image.unlockAspectRatio,
|
|
2566
2625
|
testid: "image-aspect-lock",
|
|
2567
|
-
onToggle:
|
|
2626
|
+
onToggle: me
|
|
2568
2627
|
}, null, 8, [
|
|
2569
2628
|
"linked",
|
|
2570
2629
|
"link-label",
|
|
@@ -2572,14 +2631,14 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2572
2631
|
])]),
|
|
2573
2632
|
key: "0"
|
|
2574
2633
|
} : void 0]), 1032, ["label"]),
|
|
2575
|
-
p(
|
|
2634
|
+
p(Rt, {
|
|
2576
2635
|
path: "borderRadius",
|
|
2577
2636
|
"model-value": e.block.borderRadius,
|
|
2578
2637
|
label: h(s).image.borderRadius,
|
|
2579
2638
|
"testid-prefix": "image",
|
|
2580
|
-
"onUpdate:modelValue":
|
|
2639
|
+
"onUpdate:modelValue": V
|
|
2581
2640
|
}, null, 8, ["model-value", "label"]),
|
|
2582
|
-
p(
|
|
2641
|
+
p(Ft, {
|
|
2583
2642
|
path: "border",
|
|
2584
2643
|
"model-value": e.block.border,
|
|
2585
2644
|
"testid-prefix": "image",
|
|
@@ -2590,7 +2649,7 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2590
2649
|
class: "tpl:mb-3.5",
|
|
2591
2650
|
path: "align"
|
|
2592
2651
|
}, {
|
|
2593
|
-
default: u(() => [p(
|
|
2652
|
+
default: u(() => [p($, {
|
|
2594
2653
|
options: [
|
|
2595
2654
|
{
|
|
2596
2655
|
value: "left",
|
|
@@ -2643,11 +2702,11 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2643
2702
|
}, 8, ["label"])
|
|
2644
2703
|
], 64));
|
|
2645
2704
|
}
|
|
2646
|
-
}),
|
|
2705
|
+
}), Ui = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Wi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Gi = [
|
|
2647
2706
|
"value",
|
|
2648
2707
|
"placeholder",
|
|
2649
2708
|
"onInput"
|
|
2650
|
-
],
|
|
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({
|
|
2651
2710
|
__name: "MenuToolbar",
|
|
2652
2711
|
props: {
|
|
2653
2712
|
block: {},
|
|
@@ -2655,7 +2714,7 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2655
2714
|
},
|
|
2656
2715
|
emits: ["update"],
|
|
2657
2716
|
setup(e, { emit: t }) {
|
|
2658
|
-
let n = e, i = t, { t: c } =
|
|
2717
|
+
let n = e, i = t, { t: c } = W(), l = m(() => [
|
|
2659
2718
|
{
|
|
2660
2719
|
key: "openInNewTab",
|
|
2661
2720
|
label: c.menu.openInNewTab
|
|
@@ -2672,17 +2731,17 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2672
2731
|
{
|
|
2673
2732
|
value: "left",
|
|
2674
2733
|
label: c.title.alignLeft,
|
|
2675
|
-
icon:
|
|
2734
|
+
icon: vt
|
|
2676
2735
|
},
|
|
2677
2736
|
{
|
|
2678
2737
|
value: "center",
|
|
2679
2738
|
label: c.title.alignCenter,
|
|
2680
|
-
icon:
|
|
2739
|
+
icon: _t
|
|
2681
2740
|
},
|
|
2682
2741
|
{
|
|
2683
2742
|
value: "right",
|
|
2684
2743
|
label: c.title.alignRight,
|
|
2685
|
-
icon:
|
|
2744
|
+
icon: gt
|
|
2686
2745
|
}
|
|
2687
2746
|
]);
|
|
2688
2747
|
function f(e, t) {
|
|
@@ -2690,7 +2749,7 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2690
2749
|
}
|
|
2691
2750
|
function g() {
|
|
2692
2751
|
let e = {
|
|
2693
|
-
id:
|
|
2752
|
+
id: K(),
|
|
2694
2753
|
text: "",
|
|
2695
2754
|
url: "",
|
|
2696
2755
|
openInNewTab: !1,
|
|
@@ -2711,30 +2770,30 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2711
2770
|
}
|
|
2712
2771
|
return (t, n) => (a(), v(S, null, [
|
|
2713
2772
|
p(A, { label: h(c).menu.items }, {
|
|
2714
|
-
default: u(() => [b("div",
|
|
2773
|
+
default: u(() => [b("div", Ui, [(a(!0), v(S, null, s(e.block.items, (t) => (a(), v("div", {
|
|
2715
2774
|
key: t.id,
|
|
2716
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"
|
|
2717
2776
|
}, [
|
|
2718
|
-
b("div",
|
|
2777
|
+
b("div", Wi, [p(A, {
|
|
2719
2778
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.text`,
|
|
2720
2779
|
label: h(c).menu.text
|
|
2721
2780
|
}, {
|
|
2722
2781
|
default: u(() => [b("input", {
|
|
2723
2782
|
type: "text",
|
|
2724
|
-
class: o([h(
|
|
2783
|
+
class: o([h(B), "tpl:flex-1"]),
|
|
2725
2784
|
value: t.text,
|
|
2726
2785
|
placeholder: h(c).menu.text,
|
|
2727
2786
|
onInput: (e) => _(t.id, "text", e.target.value)
|
|
2728
|
-
}, null, 42,
|
|
2787
|
+
}, null, 42, Gi)]),
|
|
2729
2788
|
_: 2
|
|
2730
2789
|
}, 1032, ["path", "label"]), b("button", {
|
|
2731
2790
|
class: o(h(I)),
|
|
2732
2791
|
title: h(c).menu.removeItem,
|
|
2733
2792
|
onClick: (e) => x(t.id)
|
|
2734
|
-
}, [p(h(
|
|
2793
|
+
}, [p(h(yt), {
|
|
2735
2794
|
size: 14,
|
|
2736
2795
|
"stroke-width": 2
|
|
2737
|
-
})], 10,
|
|
2796
|
+
})], 10, Ki)]),
|
|
2738
2797
|
p(A, {
|
|
2739
2798
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.url`,
|
|
2740
2799
|
label: h(c).button.url
|
|
@@ -2751,7 +2810,7 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2751
2810
|
])]),
|
|
2752
2811
|
_: 2
|
|
2753
2812
|
}, 1032, ["path", "label"]),
|
|
2754
|
-
b("div",
|
|
2813
|
+
b("div", qi, [(a(!0), v(S, null, s(l.value, (e) => (a(), w(A, {
|
|
2755
2814
|
key: e.key,
|
|
2756
2815
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.${e.key}`,
|
|
2757
2816
|
label: e.label
|
|
@@ -2770,7 +2829,7 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2770
2829
|
])]),
|
|
2771
2830
|
_: 2
|
|
2772
2831
|
}, 1032, ["path", "label"]))), 128))]),
|
|
2773
|
-
b("div",
|
|
2832
|
+
b("div", Ji, [p(A, {
|
|
2774
2833
|
path: t.id.includes(".") ? void 0 : `items.${t.id}.color`,
|
|
2775
2834
|
label: h(c).menu.color
|
|
2776
2835
|
}, {
|
|
@@ -2782,9 +2841,9 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2782
2841
|
_: 2
|
|
2783
2842
|
}, 1032, ["path", "label"])])
|
|
2784
2843
|
]))), 128)), b("button", {
|
|
2785
|
-
class: o(h(
|
|
2844
|
+
class: o(h(R)),
|
|
2786
2845
|
onClick: g
|
|
2787
|
-
}, [p(h(
|
|
2846
|
+
}, [p(h(Q), {
|
|
2788
2847
|
size: 14,
|
|
2789
2848
|
"stroke-width": 2
|
|
2790
2849
|
}), y(" " + r(h(c).menu.addItem), 1)], 2)])]),
|
|
@@ -2795,20 +2854,20 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2795
2854
|
label: h(c).menu.fontFamily
|
|
2796
2855
|
}, {
|
|
2797
2856
|
default: u(() => [b("select", {
|
|
2798
|
-
class: o(h(
|
|
2799
|
-
value: h(
|
|
2857
|
+
class: o(h(B)),
|
|
2858
|
+
value: h($e)(e.block.fontFamily),
|
|
2800
2859
|
onChange: n[0] ||= (e) => f("fontFamily", e.target.value || void 0)
|
|
2801
|
-
}, [b("option",
|
|
2860
|
+
}, [b("option", Xi, r(h(c).title.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
|
|
2802
2861
|
key: e.value,
|
|
2803
2862
|
value: e.value
|
|
2804
|
-
}, r(e.label), 9,
|
|
2863
|
+
}, r(e.label), 9, Zi))), 128))], 42, Yi)]),
|
|
2805
2864
|
_: 1
|
|
2806
2865
|
}, 8, ["label"]),
|
|
2807
2866
|
p(A, {
|
|
2808
2867
|
path: "fontSize",
|
|
2809
2868
|
label: h(c).menu.fontSize
|
|
2810
2869
|
}, {
|
|
2811
|
-
default: u(() => [p(
|
|
2870
|
+
default: u(() => [p(kt, {
|
|
2812
2871
|
"model-value": e.block.fontSize,
|
|
2813
2872
|
min: 8,
|
|
2814
2873
|
max: 48,
|
|
@@ -2841,7 +2900,7 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2841
2900
|
path: "textAlign",
|
|
2842
2901
|
label: h(c).menu.textAlign
|
|
2843
2902
|
}, {
|
|
2844
|
-
default: u(() => [p(
|
|
2903
|
+
default: u(() => [p($, {
|
|
2845
2904
|
options: d.value,
|
|
2846
2905
|
"model-value": e.block.textAlign,
|
|
2847
2906
|
"onUpdate:modelValue": n[4] ||= (e) => f("textAlign", e)
|
|
@@ -2854,10 +2913,10 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2854
2913
|
}, {
|
|
2855
2914
|
default: u(() => [b("input", {
|
|
2856
2915
|
type: "text",
|
|
2857
|
-
class: o(h(
|
|
2916
|
+
class: o(h(B)),
|
|
2858
2917
|
value: e.block.separator,
|
|
2859
2918
|
onInput: n[5] ||= (e) => f("separator", e.target.value)
|
|
2860
|
-
}, null, 42,
|
|
2919
|
+
}, null, 42, Qi)]),
|
|
2861
2920
|
_: 1
|
|
2862
2921
|
}, 8, ["label"]),
|
|
2863
2922
|
p(A, {
|
|
@@ -2874,7 +2933,7 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2874
2933
|
path: "spacing",
|
|
2875
2934
|
label: h(c).menu.spacing
|
|
2876
2935
|
}, {
|
|
2877
|
-
default: u(() => [p(
|
|
2936
|
+
default: u(() => [p(kt, {
|
|
2878
2937
|
"model-value": e.block.spacing,
|
|
2879
2938
|
min: 0,
|
|
2880
2939
|
max: 50,
|
|
@@ -2885,33 +2944,33 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2885
2944
|
}, 8, ["label"])
|
|
2886
2945
|
], 64));
|
|
2887
2946
|
}
|
|
2888
|
-
}),
|
|
2947
|
+
}), ea = { class: "tpl:flex tpl:items-stretch" }, ta = ["value"], na = /* @__PURE__ */ D({
|
|
2889
2948
|
__name: "ParagraphToolbar",
|
|
2890
2949
|
props: { block: {} },
|
|
2891
2950
|
emits: ["update"],
|
|
2892
2951
|
setup(e, { emit: t }) {
|
|
2893
|
-
let n = t, { t: r } =
|
|
2952
|
+
let n = t, { t: r } = W();
|
|
2894
2953
|
return (t, i) => (a(), w(A, {
|
|
2895
2954
|
label: h(r).paragraph.paragraphSpacing,
|
|
2896
2955
|
class: "tpl:mb-3.5",
|
|
2897
2956
|
"data-testid": "paragraph-spacing",
|
|
2898
2957
|
path: "paragraphSpacing"
|
|
2899
2958
|
}, {
|
|
2900
|
-
default: u(() => [b("div",
|
|
2959
|
+
default: u(() => [b("div", ea, [b("input", {
|
|
2901
2960
|
type: "number",
|
|
2902
|
-
class: o(h(
|
|
2903
|
-
value: e.block.paragraphSpacing ?? h(
|
|
2961
|
+
class: o(h(z)),
|
|
2962
|
+
value: e.block.paragraphSpacing ?? h(Y).paragraphGap,
|
|
2904
2963
|
min: "0",
|
|
2905
2964
|
max: "64",
|
|
2906
2965
|
onInput: i[0] ||= (e) => n("update", { paragraphSpacing: Number(e.target.value) })
|
|
2907
|
-
}, null, 42,
|
|
2966
|
+
}, null, 42, ta), b("span", { class: o(h(L)) }, "px", 2)])]),
|
|
2908
2967
|
_: 1
|
|
2909
2968
|
}, 8, ["label"]));
|
|
2910
2969
|
}
|
|
2911
2970
|
});
|
|
2912
2971
|
// src/utils/rebalanceColumnChildren.ts
|
|
2913
|
-
function
|
|
2914
|
-
let n =
|
|
2972
|
+
function ra(e, t) {
|
|
2973
|
+
let n = ge(t);
|
|
2915
2974
|
if (e.length === n) return e;
|
|
2916
2975
|
if (e.length < n) {
|
|
2917
2976
|
let t = Array.from({ length: n - e.length }, () => []);
|
|
@@ -2921,21 +2980,28 @@ function qi(e, t) {
|
|
|
2921
2980
|
return [...r.slice(0, n - 1), a];
|
|
2922
2981
|
}
|
|
2923
2982
|
// src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2924
|
-
var
|
|
2925
|
-
key:
|
|
2983
|
+
var ia = { class: "tpl:mb-3.5" }, aa = ["value"], oa = ["value"], sa = {
|
|
2984
|
+
key: 0,
|
|
2985
|
+
value: "custom"
|
|
2986
|
+
}, ca = { class: "tpl:flex tpl:gap-2" }, la = [
|
|
2987
|
+
"value",
|
|
2988
|
+
"aria-label",
|
|
2989
|
+
"onChange"
|
|
2990
|
+
], ua = {
|
|
2991
|
+
key: 3,
|
|
2926
2992
|
class: "tpl:mb-3.5"
|
|
2927
|
-
},
|
|
2993
|
+
}, da = {
|
|
2928
2994
|
key: 0,
|
|
2929
2995
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
2930
|
-
},
|
|
2996
|
+
}, fa = {
|
|
2931
2997
|
key: 1,
|
|
2932
2998
|
class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
|
|
2933
|
-
},
|
|
2999
|
+
}, pa = /* @__PURE__ */ D({
|
|
2934
3000
|
__name: "SectionToolbar",
|
|
2935
3001
|
props: { block: {} },
|
|
2936
3002
|
emits: ["update"],
|
|
2937
3003
|
setup(e, { emit: t }) {
|
|
2938
|
-
let n = e, i = t, { t: c } =
|
|
3004
|
+
let n = e, i = t, { t: c, format: l } = W(), d = E(Ee, void 0), f = E(xe, void 0), _ = d !== void 0 && le(d), y = m(() => f !== !1 || !!n.block.wrapper), x = m(() => _ && !n.block.wrapper), C = m(() => _ && y.value), T = m(() => se(n.block)?.applied === !0), D = m(() => [
|
|
2939
3005
|
{
|
|
2940
3006
|
value: "1",
|
|
2941
3007
|
label: c.section.column1
|
|
@@ -2972,54 +3038,90 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
2972
3038
|
value: "1-2-1",
|
|
2973
3039
|
label: c.section.ratio121
|
|
2974
3040
|
}
|
|
2975
|
-
]);
|
|
2976
|
-
function
|
|
2977
|
-
let t = e.target.value
|
|
3041
|
+
]), O = m(() => ve(n.block)), k = m(() => n.block.columnWidths !== void 0 && ce(n.block) === null), j = m(() => k.value ? "custom" : n.block.columns);
|
|
3042
|
+
function N(e) {
|
|
3043
|
+
let t = e.target.value;
|
|
3044
|
+
if (t === "custom") return;
|
|
3045
|
+
let r = t, a = ra(n.block.children, r);
|
|
2978
3046
|
i("update", {
|
|
2979
|
-
columns:
|
|
2980
|
-
children:
|
|
3047
|
+
columns: r,
|
|
3048
|
+
children: a,
|
|
3049
|
+
columnWidths: void 0
|
|
2981
3050
|
});
|
|
2982
3051
|
}
|
|
2983
|
-
function
|
|
3052
|
+
function F(e) {
|
|
3053
|
+
let t = Number(`${String(e)}e2`);
|
|
3054
|
+
return Number(`${Math.floor(t)}e-2`);
|
|
3055
|
+
}
|
|
3056
|
+
function I(e, t) {
|
|
3057
|
+
let r = t.target, a = r.value.trim(), o = Number(a), s = O.value;
|
|
3058
|
+
if (a === "" || !Number.isFinite(o)) {
|
|
3059
|
+
r.value = String(s[e]);
|
|
3060
|
+
return;
|
|
3061
|
+
}
|
|
3062
|
+
let c = s.slice(), l = e === c.length - 1 ? e - 1 : e + 1, u = c[e] + c[l], d = Math.max(.01, F(Math.min(5, u / 2))), f = Math.min(Math.max(o, d), u - d);
|
|
3063
|
+
c[e] = ie(f), c[l] = ie(u - c[e]);
|
|
3064
|
+
let p = he[n.block.columns], m = p !== void 0 && p.every((e, t) => e === c[t]);
|
|
3065
|
+
i("update", { columnWidths: m ? void 0 : c });
|
|
3066
|
+
}
|
|
3067
|
+
function ee(e) {
|
|
2984
3068
|
i("update", { stackOnMobile: e });
|
|
2985
3069
|
}
|
|
2986
|
-
function
|
|
3070
|
+
function R(e) {
|
|
2987
3071
|
i("update", { borderRadius: e });
|
|
2988
3072
|
}
|
|
2989
|
-
function
|
|
3073
|
+
function te(e) {
|
|
2990
3074
|
e ? i("update", { wrapper: { padding: {
|
|
2991
3075
|
top: 20,
|
|
2992
3076
|
right: 20,
|
|
2993
3077
|
bottom: 20,
|
|
2994
3078
|
left: 20
|
|
2995
|
-
} } }) : i("update",
|
|
3079
|
+
} } }) : i("update", er(n.block));
|
|
2996
3080
|
}
|
|
2997
|
-
function
|
|
2998
|
-
i("update",
|
|
3081
|
+
function ne(e) {
|
|
3082
|
+
i("update", $n(n.block, e));
|
|
2999
3083
|
}
|
|
3000
|
-
function
|
|
3084
|
+
function H(e) {
|
|
3001
3085
|
i("update", { wrapper: {
|
|
3002
3086
|
...n.block.wrapper,
|
|
3003
3087
|
...e
|
|
3004
3088
|
} });
|
|
3005
3089
|
}
|
|
3006
|
-
function
|
|
3007
|
-
|
|
3090
|
+
function re(e) {
|
|
3091
|
+
H({ padding: e });
|
|
3008
3092
|
}
|
|
3009
|
-
function
|
|
3010
|
-
|
|
3093
|
+
function U(e) {
|
|
3094
|
+
H({ borderRadius: e });
|
|
3011
3095
|
}
|
|
3012
3096
|
return (t, n) => (a(), v(S, null, [
|
|
3013
|
-
b("div",
|
|
3014
|
-
class: o(h(
|
|
3015
|
-
value:
|
|
3016
|
-
onChange:
|
|
3017
|
-
}, [(a(!0), v(S, null, s(
|
|
3097
|
+
b("div", ia, [b("label", { class: o(h(V)) }, r(h(c).section.columns), 3), b("select", {
|
|
3098
|
+
class: o(h(B)),
|
|
3099
|
+
value: j.value,
|
|
3100
|
+
onChange: N
|
|
3101
|
+
}, [(a(!0), v(S, null, s(D.value, (e) => (a(), v("option", {
|
|
3018
3102
|
key: e.value,
|
|
3019
3103
|
value: e.value
|
|
3020
|
-
}, r(e.label), 9,
|
|
3021
|
-
|
|
3104
|
+
}, r(e.label), 9, oa))), 128)), k.value ? (a(), v("option", sa, r(h(c).section.columnsCustom), 1)) : g("", !0)], 42, aa)]),
|
|
3105
|
+
O.value.length > 1 ? (a(), w(A, {
|
|
3022
3106
|
key: 0,
|
|
3107
|
+
path: "columnWidths",
|
|
3108
|
+
label: h(c).section.columnWidths
|
|
3109
|
+
}, {
|
|
3110
|
+
default: u(() => [b("div", ca, [(a(!0), v(S, null, s(O.value, (e, t) => (a(), v("div", {
|
|
3111
|
+
key: t,
|
|
3112
|
+
class: "tpl:flex tpl:min-w-0 tpl:flex-1 tpl:items-stretch"
|
|
3113
|
+
}, [b("input", {
|
|
3114
|
+
type: "number",
|
|
3115
|
+
step: "any",
|
|
3116
|
+
class: o(h(z)),
|
|
3117
|
+
value: e,
|
|
3118
|
+
"aria-label": h(l)(h(c).section.columnWidthAria, { index: t + 1 }),
|
|
3119
|
+
onChange: (e) => I(t, e)
|
|
3120
|
+
}, null, 42, la), b("span", { class: o(h(L)) }, "%", 2)]))), 128))])]),
|
|
3121
|
+
_: 1
|
|
3122
|
+
}, 8, ["label"])) : g("", !0),
|
|
3123
|
+
e.block.columns === "1" ? g("", !0) : (a(), w(A, {
|
|
3124
|
+
key: 1,
|
|
3023
3125
|
class: "tpl:mb-3.5",
|
|
3024
3126
|
path: "stackOnMobile",
|
|
3025
3127
|
label: h(c).section.stackOnMobile
|
|
@@ -3030,7 +3132,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3030
3132
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
3031
3133
|
"model-value": e.block.stackOnMobile !== !1,
|
|
3032
3134
|
label: h(c).section.stackOnMobile,
|
|
3033
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
3135
|
+
"onUpdate:modelValue": n[0] ||= (e) => ee(e)
|
|
3034
3136
|
}, null, 8, [
|
|
3035
3137
|
"control-id",
|
|
3036
3138
|
"model-value",
|
|
@@ -3038,22 +3140,22 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3038
3140
|
])]),
|
|
3039
3141
|
_: 1
|
|
3040
3142
|
}, 8, ["label"])),
|
|
3041
|
-
p(
|
|
3143
|
+
p(Rt, {
|
|
3042
3144
|
path: "borderRadius",
|
|
3043
3145
|
"model-value": e.block.borderRadius,
|
|
3044
3146
|
label: h(c).section.borderRadius,
|
|
3045
3147
|
max: 50,
|
|
3046
3148
|
"testid-prefix": "section",
|
|
3047
|
-
"onUpdate:modelValue":
|
|
3149
|
+
"onUpdate:modelValue": R
|
|
3048
3150
|
}, null, 8, ["model-value", "label"]),
|
|
3049
|
-
|
|
3050
|
-
key:
|
|
3151
|
+
T.value ? g("", !0) : (a(), w(Ft, {
|
|
3152
|
+
key: 2,
|
|
3051
3153
|
path: "border",
|
|
3052
3154
|
"model-value": e.block.border,
|
|
3053
3155
|
"testid-prefix": "section",
|
|
3054
3156
|
"onUpdate:modelValue": n[1] ||= (e) => i("update", { border: e })
|
|
3055
3157
|
}, null, 8, ["model-value"])),
|
|
3056
|
-
|
|
3158
|
+
y.value ? (a(), v("div", ua, [
|
|
3057
3159
|
p(A, {
|
|
3058
3160
|
path: "wrapper",
|
|
3059
3161
|
label: h(c).section.wrapperEnable
|
|
@@ -3064,8 +3166,8 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3064
3166
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
3065
3167
|
"model-value": !!e.block.wrapper,
|
|
3066
3168
|
label: h(c).section.wrapperEnable,
|
|
3067
|
-
disabled:
|
|
3068
|
-
"onUpdate:modelValue": n[2] ||= (e) =>
|
|
3169
|
+
disabled: x.value,
|
|
3170
|
+
"onUpdate:modelValue": n[2] ||= (e) => te(e)
|
|
3069
3171
|
}, null, 8, [
|
|
3070
3172
|
"control-id",
|
|
3071
3173
|
"model-value",
|
|
@@ -3074,8 +3176,8 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3074
3176
|
])]),
|
|
3075
3177
|
_: 1
|
|
3076
3178
|
}, 8, ["label"]),
|
|
3077
|
-
|
|
3078
|
-
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, [
|
|
3079
3181
|
p(A, {
|
|
3080
3182
|
path: "wrapper.fullWidth",
|
|
3081
3183
|
label: h(c).blockSettings.fullWidthBackground
|
|
@@ -3087,7 +3189,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3087
3189
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
3088
3190
|
"model-value": e.block.wrapper.fullWidth === !0,
|
|
3089
3191
|
label: h(c).blockSettings.fullWidthBackground,
|
|
3090
|
-
"onUpdate:modelValue":
|
|
3192
|
+
"onUpdate:modelValue": ne
|
|
3091
3193
|
}, null, 8, [
|
|
3092
3194
|
"control-id",
|
|
3093
3195
|
"model-value",
|
|
@@ -3102,7 +3204,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3102
3204
|
default: u(() => [p(M, {
|
|
3103
3205
|
"model-value": e.block.wrapper.backgroundColor ?? "",
|
|
3104
3206
|
"allow-transparent": "",
|
|
3105
|
-
"onUpdate:modelValue": n[3] ||= (e) =>
|
|
3207
|
+
"onUpdate:modelValue": n[3] ||= (e) => H({ backgroundColor: e })
|
|
3106
3208
|
}, null, 8, ["model-value"])]),
|
|
3107
3209
|
_: 1
|
|
3108
3210
|
}, 8, ["label"])]),
|
|
@@ -3110,15 +3212,15 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3110
3212
|
path: "wrapper.backgroundImage",
|
|
3111
3213
|
label: h(c).blockSettings.backgroundImage
|
|
3112
3214
|
}, {
|
|
3113
|
-
default: u(() => [p(
|
|
3215
|
+
default: u(() => [p(Nn, {
|
|
3114
3216
|
"hide-label": "",
|
|
3115
3217
|
"model-value": e.block.wrapper.backgroundImage,
|
|
3116
3218
|
"testid-prefix": "section-wrapper",
|
|
3117
|
-
"onUpdate:modelValue": n[4] ||= (e) =>
|
|
3219
|
+
"onUpdate:modelValue": n[4] ||= (e) => H({ backgroundImage: e })
|
|
3118
3220
|
}, null, 8, ["model-value"])]),
|
|
3119
3221
|
_: 1
|
|
3120
3222
|
}, 8, ["label"]),
|
|
3121
|
-
p(
|
|
3223
|
+
p(Sn, {
|
|
3122
3224
|
path: "wrapper.padding",
|
|
3123
3225
|
label: h(c).blockSettings.padding,
|
|
3124
3226
|
"model-value": e.block.wrapper.padding ?? {
|
|
@@ -3127,91 +3229,200 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3127
3229
|
bottom: 0,
|
|
3128
3230
|
left: 0
|
|
3129
3231
|
},
|
|
3130
|
-
"onUpdate:modelValue":
|
|
3232
|
+
"onUpdate:modelValue": re
|
|
3131
3233
|
}, null, 8, ["label", "model-value"]),
|
|
3132
|
-
p(
|
|
3234
|
+
p(Rt, {
|
|
3133
3235
|
path: "wrapper.borderRadius",
|
|
3134
3236
|
"model-value": e.block.wrapper.borderRadius,
|
|
3135
3237
|
label: h(c).section.borderRadius,
|
|
3136
3238
|
max: 50,
|
|
3137
3239
|
"testid-prefix": "section-wrapper",
|
|
3138
|
-
"onUpdate:modelValue":
|
|
3240
|
+
"onUpdate:modelValue": U
|
|
3139
3241
|
}, null, 8, ["model-value", "label"])
|
|
3140
3242
|
])) : g("", !0)
|
|
3141
3243
|
])) : g("", !0)
|
|
3142
3244
|
], 64));
|
|
3143
3245
|
}
|
|
3144
|
-
}),
|
|
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({
|
|
3145
3330
|
__name: "SocialToolbar",
|
|
3146
3331
|
props: { block: {} },
|
|
3147
3332
|
emits: ["update"],
|
|
3148
3333
|
setup(e, { emit: t }) {
|
|
3149
|
-
let n = e, i = t, { t: c } =
|
|
3334
|
+
let n = e, i = t, { t: c } = W();
|
|
3150
3335
|
function l(e, t) {
|
|
3151
3336
|
i("update", { [e]: t });
|
|
3152
3337
|
}
|
|
3153
3338
|
function d() {
|
|
3154
3339
|
let e = {
|
|
3155
|
-
id:
|
|
3340
|
+
id: K(),
|
|
3156
3341
|
platform: "facebook",
|
|
3157
3342
|
url: ""
|
|
3158
3343
|
};
|
|
3159
3344
|
i("update", { icons: [...n.block.icons, e] });
|
|
3160
3345
|
}
|
|
3161
|
-
function f(e
|
|
3162
|
-
|
|
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 ? {
|
|
3163
3351
|
...n,
|
|
3164
3352
|
[t]: r
|
|
3165
|
-
} : n);
|
|
3166
|
-
|
|
3353
|
+
} : n) });
|
|
3354
|
+
}
|
|
3355
|
+
function _(e) {
|
|
3356
|
+
return e.platform === "custom";
|
|
3357
|
+
}
|
|
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
|
+
});
|
|
3167
3369
|
}
|
|
3168
|
-
function
|
|
3370
|
+
function C(e) {
|
|
3169
3371
|
i("update", { icons: n.block.icons.filter((t) => t.id !== e) });
|
|
3170
3372
|
}
|
|
3171
3373
|
return (t, n) => (a(), v(S, null, [
|
|
3172
|
-
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", {
|
|
3173
3375
|
key: e.id,
|
|
3174
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"
|
|
3175
|
-
}, [
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
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", {
|
|
3423
|
+
class: o(h(R)),
|
|
3213
3424
|
onClick: d
|
|
3214
|
-
}, [p(h(
|
|
3425
|
+
}, [p(h(Q), {
|
|
3215
3426
|
size: 14,
|
|
3216
3427
|
"stroke-width": 2
|
|
3217
3428
|
}), y(" " + r(h(c).social.addIcon), 1)], 2)])]),
|
|
@@ -3221,17 +3432,17 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3221
3432
|
path: "iconStyle"
|
|
3222
3433
|
}, {
|
|
3223
3434
|
default: u(() => [b("select", {
|
|
3224
|
-
class: o(h(
|
|
3435
|
+
class: o(h(B)),
|
|
3225
3436
|
value: e.block.iconStyle,
|
|
3226
3437
|
onChange: n[0] ||= (e) => l("iconStyle", e.target.value)
|
|
3227
3438
|
}, [
|
|
3228
|
-
b("option",
|
|
3229
|
-
b("option",
|
|
3230
|
-
b("option",
|
|
3231
|
-
b("option",
|
|
3232
|
-
b("option",
|
|
3233
|
-
b("option",
|
|
3234
|
-
], 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)]),
|
|
3235
3446
|
_: 1
|
|
3236
3447
|
}, 8, ["label"]),
|
|
3237
3448
|
p(A, {
|
|
@@ -3241,14 +3452,14 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3241
3452
|
}, {
|
|
3242
3453
|
default: u(() => [b("select", {
|
|
3243
3454
|
"data-testid": "social-tone-select",
|
|
3244
|
-
class: o(h(
|
|
3455
|
+
class: o(h(B)),
|
|
3245
3456
|
value: e.block.iconTone ?? "brand",
|
|
3246
3457
|
onChange: n[1] ||= (e) => l("iconTone", e.target.value)
|
|
3247
3458
|
}, [
|
|
3248
|
-
b("option",
|
|
3249
|
-
b("option",
|
|
3250
|
-
b("option",
|
|
3251
|
-
], 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)]),
|
|
3252
3463
|
_: 1
|
|
3253
3464
|
}, 8, ["label"]),
|
|
3254
3465
|
p(A, {
|
|
@@ -3256,7 +3467,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3256
3467
|
class: "tpl:mb-3.5",
|
|
3257
3468
|
path: "iconSize"
|
|
3258
3469
|
}, {
|
|
3259
|
-
default: u(() => [p(
|
|
3470
|
+
default: u(() => [p($, {
|
|
3260
3471
|
options: [
|
|
3261
3472
|
{
|
|
3262
3473
|
value: "small",
|
|
@@ -3281,14 +3492,14 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3281
3492
|
class: "tpl:mb-3.5",
|
|
3282
3493
|
path: "spacing"
|
|
3283
3494
|
}, {
|
|
3284
|
-
default: u(() => [b("div",
|
|
3495
|
+
default: u(() => [b("div", Pa, [b("input", {
|
|
3285
3496
|
type: "number",
|
|
3286
|
-
class: o(h(
|
|
3497
|
+
class: o(h(z)),
|
|
3287
3498
|
value: e.block.spacing,
|
|
3288
3499
|
min: "0",
|
|
3289
3500
|
max: "50",
|
|
3290
3501
|
onInput: n[3] ||= (e) => l("spacing", Number(e.target.value))
|
|
3291
|
-
}, null, 42,
|
|
3502
|
+
}, null, 42, Fa), b("span", { class: o(h(L)) }, "px", 2)])]),
|
|
3292
3503
|
_: 1
|
|
3293
3504
|
}, 8, ["label"]),
|
|
3294
3505
|
p(A, {
|
|
@@ -3296,22 +3507,22 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3296
3507
|
class: "tpl:mb-3.5",
|
|
3297
3508
|
path: "align"
|
|
3298
3509
|
}, {
|
|
3299
|
-
default: u(() => [p(
|
|
3510
|
+
default: u(() => [p($, {
|
|
3300
3511
|
options: [
|
|
3301
3512
|
{
|
|
3302
3513
|
value: "left",
|
|
3303
3514
|
label: h(c).title.alignLeft,
|
|
3304
|
-
icon: h(
|
|
3515
|
+
icon: h(vt)
|
|
3305
3516
|
},
|
|
3306
3517
|
{
|
|
3307
3518
|
value: "center",
|
|
3308
3519
|
label: h(c).title.alignCenter,
|
|
3309
|
-
icon: h(
|
|
3520
|
+
icon: h(_t)
|
|
3310
3521
|
},
|
|
3311
3522
|
{
|
|
3312
3523
|
value: "right",
|
|
3313
3524
|
label: h(c).title.alignRight,
|
|
3314
|
-
icon: h(
|
|
3525
|
+
icon: h(gt)
|
|
3315
3526
|
}
|
|
3316
3527
|
],
|
|
3317
3528
|
"model-value": e.block.align,
|
|
@@ -3321,36 +3532,36 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3321
3532
|
}, 8, ["label"])
|
|
3322
3533
|
], 64));
|
|
3323
3534
|
}
|
|
3324
|
-
}),
|
|
3535
|
+
}), La = { class: "tpl:flex tpl:items-stretch" }, Ra = ["value"], za = ["value"], Ba = /* @__PURE__ */ D({
|
|
3325
3536
|
__name: "SpacerToolbar",
|
|
3326
3537
|
props: { block: {} },
|
|
3327
3538
|
emits: ["update"],
|
|
3328
3539
|
setup(e, { emit: t }) {
|
|
3329
|
-
let n = t, { t: r } =
|
|
3540
|
+
let n = t, { t: r } = W();
|
|
3330
3541
|
return (t, i) => (a(), w(A, {
|
|
3331
3542
|
label: h(r).spacer.height,
|
|
3332
3543
|
class: "tpl:mb-3.5",
|
|
3333
3544
|
path: "height"
|
|
3334
3545
|
}, {
|
|
3335
|
-
default: u(() => [b("div",
|
|
3546
|
+
default: u(() => [b("div", La, [b("input", {
|
|
3336
3547
|
type: "number",
|
|
3337
|
-
class: o(h(
|
|
3548
|
+
class: o(h(z)),
|
|
3338
3549
|
value: e.block.height,
|
|
3339
3550
|
min: "10",
|
|
3340
3551
|
max: "100",
|
|
3341
3552
|
onInput: i[0] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
3342
|
-
}, null, 42,
|
|
3553
|
+
}, null, 42, Ra), b("span", { class: o(h(L)) }, "px", 2)]), b("input", {
|
|
3343
3554
|
type: "range",
|
|
3344
3555
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
3345
3556
|
value: e.block.height,
|
|
3346
3557
|
min: "10",
|
|
3347
3558
|
max: "100",
|
|
3348
3559
|
onInput: i[1] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
3349
|
-
}, null, 40,
|
|
3560
|
+
}, null, 40, za)]),
|
|
3350
3561
|
_: 1
|
|
3351
3562
|
}, 8, ["label"]));
|
|
3352
3563
|
}
|
|
3353
|
-
}),
|
|
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({
|
|
3354
3565
|
__name: "TableToolbar",
|
|
3355
3566
|
props: {
|
|
3356
3567
|
block: {},
|
|
@@ -3358,15 +3569,15 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3358
3569
|
},
|
|
3359
3570
|
emits: ["update"],
|
|
3360
3571
|
setup(e, { emit: t }) {
|
|
3361
|
-
let n = e, i = t, { t: c } =
|
|
3572
|
+
let n = e, i = t, { t: c } = W(), l = m(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
|
|
3362
3573
|
function d(e, t) {
|
|
3363
3574
|
i("update", { [e]: t });
|
|
3364
3575
|
}
|
|
3365
3576
|
function f() {
|
|
3366
3577
|
let e = n.block.rows.length > 0 ? n.block.rows[0].cells.length : 3, t = {
|
|
3367
|
-
id:
|
|
3578
|
+
id: K(),
|
|
3368
3579
|
cells: Array.from({ length: e }, () => ({
|
|
3369
|
-
id:
|
|
3580
|
+
id: K(),
|
|
3370
3581
|
content: ""
|
|
3371
3582
|
}))
|
|
3372
3583
|
};
|
|
@@ -3379,7 +3590,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3379
3590
|
let e = n.block.rows.map((e) => ({
|
|
3380
3591
|
...e,
|
|
3381
3592
|
cells: [...e.cells, {
|
|
3382
|
-
id:
|
|
3593
|
+
id: K(),
|
|
3383
3594
|
content: ""
|
|
3384
3595
|
}]
|
|
3385
3596
|
}));
|
|
@@ -3393,37 +3604,37 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3393
3604
|
i("update", { rows: t });
|
|
3394
3605
|
}
|
|
3395
3606
|
return (t, n) => (a(), v(S, null, [
|
|
3396
|
-
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, [
|
|
3397
3608
|
b("button", {
|
|
3398
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",
|
|
3399
3610
|
disabled: e.block.rows.length <= 1,
|
|
3400
3611
|
onClick: n[0] ||= (t) => _(e.block.rows[e.block.rows.length - 1].id)
|
|
3401
|
-
}, [p(h(
|
|
3612
|
+
}, [p(h(tt), {
|
|
3402
3613
|
size: 12,
|
|
3403
3614
|
"stroke-width": 2
|
|
3404
|
-
})], 8,
|
|
3405
|
-
b("span",
|
|
3615
|
+
})], 8, Ka),
|
|
3616
|
+
b("span", qa, r(e.block.rows.length), 1),
|
|
3406
3617
|
b("button", {
|
|
3407
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)]",
|
|
3408
3619
|
onClick: f
|
|
3409
|
-
}, [p(h(
|
|
3620
|
+
}, [p(h(Q), {
|
|
3410
3621
|
size: 12,
|
|
3411
3622
|
"stroke-width": 2
|
|
3412
3623
|
})])
|
|
3413
|
-
])]), b("div",
|
|
3624
|
+
])]), b("div", Ja, [b("span", Ya, r(h(c).table.columns), 1), b("div", Xa, [
|
|
3414
3625
|
b("button", {
|
|
3415
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",
|
|
3416
3627
|
disabled: l.value <= 1,
|
|
3417
3628
|
onClick: n[1] ||= (e) => x(l.value - 1)
|
|
3418
|
-
}, [p(h(
|
|
3629
|
+
}, [p(h(tt), {
|
|
3419
3630
|
size: 12,
|
|
3420
3631
|
"stroke-width": 2
|
|
3421
|
-
})], 8,
|
|
3422
|
-
b("span",
|
|
3632
|
+
})], 8, Za),
|
|
3633
|
+
b("span", Qa, r(l.value), 1),
|
|
3423
3634
|
b("button", {
|
|
3424
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)]",
|
|
3425
3636
|
onClick: y
|
|
3426
|
-
}, [p(h(
|
|
3637
|
+
}, [p(h(Q), {
|
|
3427
3638
|
size: 12,
|
|
3428
3639
|
"stroke-width": 2
|
|
3429
3640
|
})])
|
|
@@ -3455,7 +3666,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3455
3666
|
}, {
|
|
3456
3667
|
default: u(() => [p(M, {
|
|
3457
3668
|
"model-value": e.block.headerBackgroundColor ?? "",
|
|
3458
|
-
"seed-color": h(
|
|
3669
|
+
"seed-color": h(te),
|
|
3459
3670
|
placeholder: h(c).table.noHeaderBg,
|
|
3460
3671
|
"onUpdate:modelValue": n[3] ||= (e) => d("headerBackgroundColor", e || null)
|
|
3461
3672
|
}, null, 8, [
|
|
@@ -3481,14 +3692,14 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3481
3692
|
class: "tpl:mb-3.5",
|
|
3482
3693
|
path: "borderWidth"
|
|
3483
3694
|
}, {
|
|
3484
|
-
default: u(() => [b("div",
|
|
3695
|
+
default: u(() => [b("div", $a, [b("input", {
|
|
3485
3696
|
type: "number",
|
|
3486
|
-
class: o(h(
|
|
3697
|
+
class: o(h(z)),
|
|
3487
3698
|
value: e.block.borderWidth,
|
|
3488
3699
|
min: "0",
|
|
3489
3700
|
max: "10",
|
|
3490
3701
|
onInput: n[5] ||= (e) => d("borderWidth", Number(e.target.value))
|
|
3491
|
-
}, null, 42,
|
|
3702
|
+
}, null, 42, eo), b("span", { class: o(h(L)) }, "px", 2)])]),
|
|
3492
3703
|
_: 1
|
|
3493
3704
|
}, 8, ["label"]),
|
|
3494
3705
|
p(A, {
|
|
@@ -3496,14 +3707,14 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3496
3707
|
class: "tpl:mb-3.5",
|
|
3497
3708
|
path: "cellPadding"
|
|
3498
3709
|
}, {
|
|
3499
|
-
default: u(() => [b("div",
|
|
3710
|
+
default: u(() => [b("div", to, [b("input", {
|
|
3500
3711
|
type: "number",
|
|
3501
|
-
class: o(h(
|
|
3712
|
+
class: o(h(z)),
|
|
3502
3713
|
value: e.block.cellPadding,
|
|
3503
3714
|
min: "0",
|
|
3504
3715
|
max: "30",
|
|
3505
3716
|
onInput: n[6] ||= (e) => d("cellPadding", Number(e.target.value))
|
|
3506
|
-
}, null, 42,
|
|
3717
|
+
}, null, 42, no), b("span", { class: o(h(L)) }, "px", 2)])]),
|
|
3507
3718
|
_: 1
|
|
3508
3719
|
}, 8, ["label"]),
|
|
3509
3720
|
p(A, {
|
|
@@ -3512,13 +3723,13 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3512
3723
|
path: "fontFamily"
|
|
3513
3724
|
}, {
|
|
3514
3725
|
default: u(() => [b("select", {
|
|
3515
|
-
class: o(h(
|
|
3516
|
-
value: h(
|
|
3726
|
+
class: o(h(B)),
|
|
3727
|
+
value: h($e)(e.block.fontFamily),
|
|
3517
3728
|
onChange: n[7] ||= (e) => d("fontFamily", e.target.value || void 0)
|
|
3518
|
-
}, [b("option",
|
|
3729
|
+
}, [b("option", io, r(h(c).title.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
|
|
3519
3730
|
key: e.value,
|
|
3520
3731
|
value: e.value
|
|
3521
|
-
}, r(e.label), 9,
|
|
3732
|
+
}, r(e.label), 9, ao))), 128))], 42, ro)]),
|
|
3522
3733
|
_: 1
|
|
3523
3734
|
}, 8, ["label"]),
|
|
3524
3735
|
p(A, {
|
|
@@ -3526,14 +3737,14 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3526
3737
|
class: "tpl:mb-3.5",
|
|
3527
3738
|
path: "fontSize"
|
|
3528
3739
|
}, {
|
|
3529
|
-
default: u(() => [b("div",
|
|
3740
|
+
default: u(() => [b("div", oo, [b("input", {
|
|
3530
3741
|
type: "number",
|
|
3531
|
-
class: o(h(
|
|
3742
|
+
class: o(h(z)),
|
|
3532
3743
|
value: e.block.fontSize,
|
|
3533
3744
|
min: "10",
|
|
3534
3745
|
max: "32",
|
|
3535
3746
|
onInput: n[8] ||= (e) => d("fontSize", Number(e.target.value))
|
|
3536
|
-
}, null, 42,
|
|
3747
|
+
}, null, 42, so), b("span", { class: o(h(L)) }, "px", 2)])]),
|
|
3537
3748
|
_: 1
|
|
3538
3749
|
}, 8, ["label"]),
|
|
3539
3750
|
p(A, {
|
|
@@ -3552,22 +3763,22 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3552
3763
|
class: "tpl:mb-3.5",
|
|
3553
3764
|
path: "textAlign"
|
|
3554
3765
|
}, {
|
|
3555
|
-
default: u(() => [p(
|
|
3766
|
+
default: u(() => [p($, {
|
|
3556
3767
|
options: [
|
|
3557
3768
|
{
|
|
3558
3769
|
value: "left",
|
|
3559
3770
|
label: h(c).title.alignLeft,
|
|
3560
|
-
icon: h(
|
|
3771
|
+
icon: h(vt)
|
|
3561
3772
|
},
|
|
3562
3773
|
{
|
|
3563
3774
|
value: "center",
|
|
3564
3775
|
label: h(c).title.alignCenter,
|
|
3565
|
-
icon: h(
|
|
3776
|
+
icon: h(_t)
|
|
3566
3777
|
},
|
|
3567
3778
|
{
|
|
3568
3779
|
value: "right",
|
|
3569
3780
|
label: h(c).title.alignRight,
|
|
3570
|
-
icon: h(
|
|
3781
|
+
icon: h(gt)
|
|
3571
3782
|
}
|
|
3572
3783
|
],
|
|
3573
3784
|
"model-value": e.block.textAlign,
|
|
@@ -3577,7 +3788,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3577
3788
|
}, 8, ["label"])
|
|
3578
3789
|
], 64));
|
|
3579
3790
|
}
|
|
3580
|
-
}),
|
|
3791
|
+
}), lo = ["value"], uo = { value: 1 }, fo = { value: 2 }, po = { value: 3 }, mo = { value: 4 }, ho = ["value"], go = { value: "" }, _o = ["value"], vo = /* @__PURE__ */ D({
|
|
3581
3792
|
__name: "TitleToolbar",
|
|
3582
3793
|
props: {
|
|
3583
3794
|
block: {},
|
|
@@ -3585,7 +3796,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3585
3796
|
},
|
|
3586
3797
|
emits: ["update"],
|
|
3587
3798
|
setup(e, { emit: t }) {
|
|
3588
|
-
let n = t, { t: i } =
|
|
3799
|
+
let n = t, { t: i } = W();
|
|
3589
3800
|
function c(e, t) {
|
|
3590
3801
|
n("update", { [e]: t });
|
|
3591
3802
|
}
|
|
@@ -3596,15 +3807,15 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3596
3807
|
path: "level"
|
|
3597
3808
|
}, {
|
|
3598
3809
|
default: u(() => [b("select", {
|
|
3599
|
-
class: o(h(
|
|
3810
|
+
class: o(h(B)),
|
|
3600
3811
|
value: e.block.level,
|
|
3601
3812
|
onChange: n[0] ||= (e) => c("level", Number(e.target.value))
|
|
3602
3813
|
}, [
|
|
3603
|
-
b("option",
|
|
3604
|
-
b("option",
|
|
3605
|
-
b("option",
|
|
3606
|
-
b("option",
|
|
3607
|
-
], 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)]),
|
|
3608
3819
|
_: 1
|
|
3609
3820
|
}, 8, ["label"]),
|
|
3610
3821
|
p(A, {
|
|
@@ -3613,13 +3824,13 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3613
3824
|
path: "fontFamily"
|
|
3614
3825
|
}, {
|
|
3615
3826
|
default: u(() => [b("select", {
|
|
3616
|
-
class: o(h(
|
|
3617
|
-
value: h(
|
|
3827
|
+
class: o(h(B)),
|
|
3828
|
+
value: h($e)(e.block.fontFamily),
|
|
3618
3829
|
onChange: n[1] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
3619
|
-
}, [b("option",
|
|
3830
|
+
}, [b("option", go, r(h(i).title.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
|
|
3620
3831
|
key: e.value,
|
|
3621
3832
|
value: e.value
|
|
3622
|
-
}, r(e.label), 9,
|
|
3833
|
+
}, r(e.label), 9, _o))), 128))], 42, ho)]),
|
|
3623
3834
|
_: 1
|
|
3624
3835
|
}, 8, ["label"]),
|
|
3625
3836
|
p(A, {
|
|
@@ -3638,22 +3849,22 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3638
3849
|
class: "tpl:mb-3.5",
|
|
3639
3850
|
path: "textAlign"
|
|
3640
3851
|
}, {
|
|
3641
|
-
default: u(() => [p(
|
|
3852
|
+
default: u(() => [p($, {
|
|
3642
3853
|
options: [
|
|
3643
3854
|
{
|
|
3644
3855
|
value: "left",
|
|
3645
3856
|
label: h(i).title.alignLeft,
|
|
3646
|
-
icon: h(
|
|
3857
|
+
icon: h(vt)
|
|
3647
3858
|
},
|
|
3648
3859
|
{
|
|
3649
3860
|
value: "center",
|
|
3650
3861
|
label: h(i).title.alignCenter,
|
|
3651
|
-
icon: h(
|
|
3862
|
+
icon: h(_t)
|
|
3652
3863
|
},
|
|
3653
3864
|
{
|
|
3654
3865
|
value: "right",
|
|
3655
3866
|
label: h(i).title.alignRight,
|
|
3656
|
-
icon: h(
|
|
3867
|
+
icon: h(gt)
|
|
3657
3868
|
}
|
|
3658
3869
|
],
|
|
3659
3870
|
"model-value": e.block.textAlign,
|
|
@@ -3663,29 +3874,29 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3663
3874
|
}, 8, ["label"])
|
|
3664
3875
|
], 64));
|
|
3665
3876
|
}
|
|
3666
|
-
}),
|
|
3877
|
+
}), yo = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, bo = [
|
|
3667
3878
|
"value",
|
|
3668
3879
|
"placeholder",
|
|
3669
3880
|
"title"
|
|
3670
|
-
],
|
|
3881
|
+
], xo = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, So = ["value"], Co = { value: "full" }, wo = { value: "custom" }, To = {
|
|
3671
3882
|
key: 0,
|
|
3672
3883
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
3673
|
-
},
|
|
3884
|
+
}, Eo = ["value"], Do = ["value"], Oo = { value: "auto" }, ko = { value: "custom" }, Ao = {
|
|
3674
3885
|
key: 0,
|
|
3675
3886
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
3676
|
-
},
|
|
3887
|
+
}, jo = ["value"], Mo = 350, No = 200, Po = /* @__PURE__ */ D({
|
|
3677
3888
|
__name: "VideoToolbar",
|
|
3678
3889
|
props: { block: {} },
|
|
3679
3890
|
emits: ["update"],
|
|
3680
3891
|
setup(e, { emit: t }) {
|
|
3681
|
-
let n = e, i = t, { t: s } =
|
|
3892
|
+
let n = e, i = t, { t: s } = W(), c = E(De, null), l = E(Se, Z.liquid), d = ze(), f = [
|
|
3682
3893
|
300,
|
|
3683
3894
|
400,
|
|
3684
3895
|
500
|
|
3685
|
-
], x = m(() => !!c), C = m(() =>
|
|
3896
|
+
], x = m(() => !!c), C = m(() => G(n.block.url, l)), T = m(() => {
|
|
3686
3897
|
let e = n.block.width;
|
|
3687
3898
|
return e === "full" ? "full" : f.includes(e) ? String(e) : "custom";
|
|
3688
|
-
}), D = m(() => typeof n.block.height == "number" ? "custom" : "auto"), O = _(!1), { start: k } =
|
|
3899
|
+
}), D = m(() => typeof n.block.height == "number" ? "custom" : "auto"), O = _(!1), { start: k } = ht(() => {
|
|
3689
3900
|
O.value = !1;
|
|
3690
3901
|
}, 1e3, { immediate: !1 });
|
|
3691
3902
|
function j(e, t) {
|
|
@@ -3694,7 +3905,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3694
3905
|
function M(e) {
|
|
3695
3906
|
if (e === "custom") {
|
|
3696
3907
|
let e = n.block.width;
|
|
3697
|
-
(typeof e != "number" || f.includes(e)) && j("width",
|
|
3908
|
+
(typeof e != "number" || f.includes(e)) && j("width", Mo);
|
|
3698
3909
|
} else j("width", e === "full" ? "full" : Number(e));
|
|
3699
3910
|
}
|
|
3700
3911
|
function F(e) {
|
|
@@ -3702,13 +3913,13 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3702
3913
|
!Number.isFinite(t) || t <= 0 || j("width", t);
|
|
3703
3914
|
}
|
|
3704
3915
|
function I(e) {
|
|
3705
|
-
j("height", e === "custom" ?
|
|
3916
|
+
j("height", e === "custom" ? No : void 0);
|
|
3706
3917
|
}
|
|
3707
3918
|
function ee(e) {
|
|
3708
3919
|
let t = Number(e);
|
|
3709
3920
|
!Number.isFinite(t) || t <= 0 || j("height", t);
|
|
3710
3921
|
}
|
|
3711
|
-
async function
|
|
3922
|
+
async function R() {
|
|
3712
3923
|
let e = await c?.({ accept: ["images"] });
|
|
3713
3924
|
d.alive && e && (j("thumbnailUrl", e.url), O.value = !0, k());
|
|
3714
3925
|
}
|
|
@@ -3749,22 +3960,22 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3749
3960
|
class: "tpl:mb-3.5",
|
|
3750
3961
|
path: "placeholderUrl"
|
|
3751
3962
|
}, {
|
|
3752
|
-
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)]),
|
|
3753
3964
|
default: u(() => [b("input", {
|
|
3754
3965
|
type: "url",
|
|
3755
|
-
class: o(h(
|
|
3966
|
+
class: o(h(B)),
|
|
3756
3967
|
value: e.block.placeholderUrl || "",
|
|
3757
3968
|
placeholder: h(s).video.placeholderUrlPlaceholder,
|
|
3758
3969
|
title: h(s).video.placeholderUrlTooltip,
|
|
3759
3970
|
onInput: n[2] ||= (e) => j("placeholderUrl", e.target.value)
|
|
3760
|
-
}, null, 42,
|
|
3971
|
+
}, null, 42, bo)]),
|
|
3761
3972
|
_: 1
|
|
3762
3973
|
})) : g("", !0),
|
|
3763
3974
|
p(A, {
|
|
3764
3975
|
class: "tpl:mb-3.5",
|
|
3765
3976
|
path: "thumbnailUrl"
|
|
3766
3977
|
}, {
|
|
3767
|
-
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)]),
|
|
3768
3979
|
default: u(() => [p(N, {
|
|
3769
3980
|
"model-value": e.block.thumbnailUrl,
|
|
3770
3981
|
type: "url",
|
|
@@ -3783,8 +3994,8 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3783
3994
|
color: "var(--tpl-primary)",
|
|
3784
3995
|
"background-color": "var(--tpl-bg)"
|
|
3785
3996
|
},
|
|
3786
|
-
onClick:
|
|
3787
|
-
}, [p(h(
|
|
3997
|
+
onClick: R
|
|
3998
|
+
}, [p(h(it), {
|
|
3788
3999
|
size: 14,
|
|
3789
4000
|
"stroke-width": 1.5
|
|
3790
4001
|
}), y(" " + r(h(s).image.browseMedia), 1)])) : g("", !0)]),
|
|
@@ -3809,24 +4020,24 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3809
4020
|
path: "width"
|
|
3810
4021
|
}, {
|
|
3811
4022
|
default: u(() => [b("select", {
|
|
3812
|
-
class: o(h(
|
|
4023
|
+
class: o(h(B)),
|
|
3813
4024
|
"data-testid": "video-width-mode",
|
|
3814
4025
|
value: T.value,
|
|
3815
4026
|
onChange: n[5] ||= (e) => M(e.target.value)
|
|
3816
4027
|
}, [
|
|
3817
|
-
b("option",
|
|
4028
|
+
b("option", Co, r(h(s).video.fullWidth), 1),
|
|
3818
4029
|
n[10] ||= b("option", { value: "300" }, "300px", -1),
|
|
3819
4030
|
n[11] ||= b("option", { value: "400" }, "400px", -1),
|
|
3820
4031
|
n[12] ||= b("option", { value: "500" }, "500px", -1),
|
|
3821
|
-
b("option",
|
|
3822
|
-
], 42,
|
|
4032
|
+
b("option", wo, r(h(s).video.widthCustom), 1)
|
|
4033
|
+
], 42, So), T.value === "custom" ? (a(), v("div", To, [b("input", {
|
|
3823
4034
|
type: "number",
|
|
3824
4035
|
"data-testid": "video-width-input",
|
|
3825
|
-
class: o(h(
|
|
4036
|
+
class: o(h(z)),
|
|
3826
4037
|
value: e.block.width,
|
|
3827
4038
|
min: "20",
|
|
3828
4039
|
onInput: n[6] ||= (e) => F(e.target.value)
|
|
3829
|
-
}, null, 42,
|
|
4040
|
+
}, null, 42, Eo), b("span", { class: o(h(L)) }, "px", 2)])) : g("", !0)]),
|
|
3830
4041
|
_: 1
|
|
3831
4042
|
}, 8, ["label"]),
|
|
3832
4043
|
p(A, {
|
|
@@ -3835,18 +4046,18 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3835
4046
|
path: "height"
|
|
3836
4047
|
}, {
|
|
3837
4048
|
default: u(() => [b("select", {
|
|
3838
|
-
class: o(h(
|
|
4049
|
+
class: o(h(B)),
|
|
3839
4050
|
"data-testid": "video-height-mode",
|
|
3840
4051
|
value: D.value,
|
|
3841
4052
|
onChange: n[7] ||= (e) => I(e.target.value)
|
|
3842
|
-
}, [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", {
|
|
3843
4054
|
type: "number",
|
|
3844
4055
|
"data-testid": "video-height-input",
|
|
3845
|
-
class: o(h(
|
|
4056
|
+
class: o(h(z)),
|
|
3846
4057
|
value: e.block.height,
|
|
3847
4058
|
min: "20",
|
|
3848
4059
|
onInput: n[8] ||= (e) => ee(e.target.value)
|
|
3849
|
-
}, null, 42,
|
|
4060
|
+
}, null, 42, jo), b("span", { class: o(h(L)) }, "px", 2)])) : g("", !0)]),
|
|
3850
4061
|
_: 1
|
|
3851
4062
|
}, 8, ["label"]),
|
|
3852
4063
|
p(A, {
|
|
@@ -3854,7 +4065,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3854
4065
|
class: "tpl:mb-3.5",
|
|
3855
4066
|
path: "align"
|
|
3856
4067
|
}, {
|
|
3857
|
-
default: u(() => [p(
|
|
4068
|
+
default: u(() => [p($, {
|
|
3858
4069
|
options: [
|
|
3859
4070
|
{
|
|
3860
4071
|
value: "left",
|
|
@@ -3876,7 +4087,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3876
4087
|
}, 8, ["label"])
|
|
3877
4088
|
], 64));
|
|
3878
4089
|
}
|
|
3879
|
-
}),
|
|
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({
|
|
3880
4091
|
__name: "Toolbar",
|
|
3881
4092
|
props: { block: {} },
|
|
3882
4093
|
emits: [
|
|
@@ -3885,9 +4096,9 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3885
4096
|
"duplicate"
|
|
3886
4097
|
],
|
|
3887
4098
|
setup(e, { emit: t }) {
|
|
3888
|
-
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(() => {
|
|
3889
4100
|
if (_.value) return d.find((e) => e.type === o.block.customType);
|
|
3890
|
-
}), x = m(() => _.value ? y.value?.name ?? o.block.customType :
|
|
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));
|
|
3891
4102
|
function C(e) {
|
|
3892
4103
|
l.value && s("update", e);
|
|
3893
4104
|
}
|
|
@@ -3899,82 +4110,82 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3899
4110
|
disabled: !h(l),
|
|
3900
4111
|
inert: !h(l),
|
|
3901
4112
|
class: "tpl:contents"
|
|
3902
|
-
}, [b("div",
|
|
4113
|
+
}, [b("div", Lo, [b("div", Ro, [h(nt)[f.value] ? (a(), w(i(h(nt)[f.value]), {
|
|
3903
4114
|
key: 0,
|
|
3904
4115
|
size: 16,
|
|
3905
4116
|
"stroke-width": 1.5
|
|
3906
|
-
})) : _.value ? (a(), w(h(
|
|
4117
|
+
})) : _.value ? (a(), w(h(We), {
|
|
3907
4118
|
key: 1,
|
|
3908
4119
|
size: 16,
|
|
3909
4120
|
"stroke-width": 1.5
|
|
3910
|
-
})) : g("", !0), b("h3",
|
|
4121
|
+
})) : g("", !0), b("h3", zo, r(x.value), 1)]), b("div", Bo, [b("button", {
|
|
3911
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)]",
|
|
3912
4123
|
title: h(c).toolbar.duplicate,
|
|
3913
4124
|
onClick: o[0] ||= (e) => s("duplicate")
|
|
3914
|
-
}, [p(h(
|
|
4125
|
+
}, [p(h(xt), {
|
|
3915
4126
|
size: 14,
|
|
3916
4127
|
"stroke-width": 2
|
|
3917
|
-
})], 8,
|
|
4128
|
+
})], 8, Vo), b("button", {
|
|
3918
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)]",
|
|
3919
4130
|
title: h(c).toolbar.delete,
|
|
3920
4131
|
onClick: o[1] ||= (e) => s("delete")
|
|
3921
|
-
}, [p(h(
|
|
4132
|
+
}, [p(h(pt), {
|
|
3922
4133
|
size: 14,
|
|
3923
4134
|
"stroke-width": 2
|
|
3924
|
-
})], 8,
|
|
4135
|
+
})], 8, Ho)])]), b("div", Uo, [_.value ? (a(), w(fi, {
|
|
3925
4136
|
key: 0,
|
|
3926
4137
|
block: e.block,
|
|
3927
4138
|
onUpdateFieldValues: o[2] ||= (e) => s("update", { fieldValues: e }),
|
|
3928
4139
|
onUpdateDataSourceFetched: o[3] ||= (e) => s("update", { dataSourceFetched: e })
|
|
3929
|
-
}, null, 8, ["block"])) : f.value === "section" ? (a(), w(
|
|
4140
|
+
}, null, 8, ["block"])) : f.value === "section" ? (a(), w(pa, {
|
|
3930
4141
|
key: 1,
|
|
3931
4142
|
block: e.block,
|
|
3932
4143
|
onUpdate: C
|
|
3933
|
-
}, null, 8, ["block"])) : f.value === "title" ? (a(), w(
|
|
4144
|
+
}, null, 8, ["block"])) : f.value === "title" ? (a(), w(vo, {
|
|
3934
4145
|
key: 2,
|
|
3935
4146
|
block: e.block,
|
|
3936
4147
|
"font-families": S.value,
|
|
3937
4148
|
onUpdate: C
|
|
3938
|
-
}, null, 8, ["block", "font-families"])) : f.value === "paragraph" ? (a(), w(
|
|
4149
|
+
}, null, 8, ["block", "font-families"])) : f.value === "paragraph" ? (a(), w(na, {
|
|
3939
4150
|
key: 3,
|
|
3940
4151
|
block: e.block,
|
|
3941
4152
|
onUpdate: C
|
|
3942
|
-
}, null, 8, ["block"])) : f.value === "image" ? (a(), w(
|
|
4153
|
+
}, null, 8, ["block"])) : f.value === "image" ? (a(), w(Hi, {
|
|
3943
4154
|
key: 4,
|
|
3944
4155
|
block: e.block,
|
|
3945
4156
|
onUpdate: C
|
|
3946
|
-
}, null, 8, ["block"])) : f.value === "video" ? (a(), w(
|
|
4157
|
+
}, null, 8, ["block"])) : f.value === "video" ? (a(), w(Po, {
|
|
3947
4158
|
key: 5,
|
|
3948
4159
|
block: e.block,
|
|
3949
4160
|
onUpdate: C
|
|
3950
|
-
}, null, 8, ["block"])) : f.value === "button" ? (a(), w(
|
|
4161
|
+
}, null, 8, ["block"])) : f.value === "button" ? (a(), w($t, {
|
|
3951
4162
|
key: 6,
|
|
3952
4163
|
block: e.block,
|
|
3953
4164
|
"font-families": S.value,
|
|
3954
4165
|
onUpdate: C
|
|
3955
|
-
}, null, 8, ["block", "font-families"])) : f.value === "divider" ? (a(), w(
|
|
4166
|
+
}, null, 8, ["block", "font-families"])) : f.value === "divider" ? (a(), w(hi, {
|
|
3956
4167
|
key: 7,
|
|
3957
4168
|
block: e.block,
|
|
3958
4169
|
onUpdate: C
|
|
3959
|
-
}, null, 8, ["block"])) : f.value === "social" ? (a(), w(
|
|
4170
|
+
}, null, 8, ["block"])) : f.value === "social" ? (a(), w(Ia, {
|
|
3960
4171
|
key: 8,
|
|
3961
4172
|
block: e.block,
|
|
3962
4173
|
onUpdate: C
|
|
3963
|
-
}, null, 8, ["block"])) : f.value === "menu" ? (a(), w(
|
|
4174
|
+
}, null, 8, ["block"])) : f.value === "menu" ? (a(), w($i, {
|
|
3964
4175
|
key: 9,
|
|
3965
4176
|
block: e.block,
|
|
3966
4177
|
"font-families": S.value,
|
|
3967
4178
|
onUpdate: C
|
|
3968
|
-
}, null, 8, ["block", "font-families"])) : f.value === "table" ? (a(), w(
|
|
4179
|
+
}, null, 8, ["block", "font-families"])) : f.value === "table" ? (a(), w(co, {
|
|
3969
4180
|
key: 10,
|
|
3970
4181
|
block: e.block,
|
|
3971
4182
|
"font-families": S.value,
|
|
3972
4183
|
onUpdate: C
|
|
3973
|
-
}, null, 8, ["block", "font-families"])) : f.value === "spacer" ? (a(), w(
|
|
4184
|
+
}, null, 8, ["block", "font-families"])) : f.value === "spacer" ? (a(), w(Ba, {
|
|
3974
4185
|
key: 11,
|
|
3975
4186
|
block: e.block,
|
|
3976
4187
|
onUpdate: C
|
|
3977
|
-
}, null, 8, ["block"])) : f.value === "html" ? (a(), w(
|
|
4188
|
+
}, null, 8, ["block"])) : f.value === "html" ? (a(), w(vi, {
|
|
3978
4189
|
key: 12,
|
|
3979
4190
|
block: e.block,
|
|
3980
4191
|
onUpdate: C
|
|
@@ -3983,11 +4194,11 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3983
4194
|
block: e.block,
|
|
3984
4195
|
"font-families": S.value,
|
|
3985
4196
|
onUpdate: C
|
|
3986
|
-
}, null, 8, ["block", "font-families"])) : g("", !0), p(
|
|
4197
|
+
}, null, 8, ["block", "font-families"])) : g("", !0), p(Er, {
|
|
3987
4198
|
block: e.block,
|
|
3988
4199
|
"is-first-section": f.value === "paragraph",
|
|
3989
4200
|
onUpdate: C
|
|
3990
|
-
}, null, 8, ["block", "is-first-section"])])], 8,
|
|
4201
|
+
}, null, 8, ["block", "is-first-section"])])], 8, Io)], 8, Fo));
|
|
3991
4202
|
}
|
|
3992
|
-
}),
|
|
3993
|
-
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 };
|