@templatical/editor 0.56.1 → 0.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{AiAltTextPopover-CpZ7UeAZ.js → AiAltTextPopover-BjClNscQ.js} +5 -5
- package/dist/{AiAltTextReview-LYxvn7Qe.js → AiAltTextReview-DeMdVbtT.js} +6 -6
- package/dist/{AiChatPanel-Cy05P-iO.js → AiChatPanel-Cros4ZCM.js} +22 -25
- package/dist/AiPanels-D_CdHqFZ.js +26 -0
- package/dist/{AiRewriteMenu-DgqJHnza.js → AiRewriteMenu-BSzj1dKC.js} +53 -53
- package/dist/{BlockIssueBadge-CxHJmuOh.js → BlockIssueBadge-i2cZy5PB.js} +5 -5
- package/dist/{BlockPreviewCanvas-DEmNZkEG.js → BlockPreviewCanvas-D-If_vd_.js} +27 -27
- package/dist/{CloudHeaderExtras-Cqhw-jMz.js → CloudHeaderExtras-CJsXi4Ku.js} +2 -2
- package/dist/{CloudPanels-Bmlf05Il.js → CloudPanels-DPeK_siQ.js} +6 -6
- package/dist/{CollaborationNotices-C27GCMvK.js → CollaborationNotices-DkYX-ose.js} +3 -3
- package/dist/{CollaboratorBar-CLQjksX-.js → CollaboratorBar-xDweDvB6.js} +3 -3
- package/dist/CommentsPanel-t3w16YUl.js +23 -0
- package/dist/CommentsSidebar-B3M90RY_.js +516 -0
- package/dist/{CountdownBlock-D8dqjm3F.js → CountdownBlock-BrR2uqM3.js} +4 -4
- package/dist/{CountdownToolbar-IjpCOjCd.js → CountdownToolbar-DBu2ZqC6.js} +7 -7
- package/dist/{IssuesPanel-uwuzeMSW.js → IssuesPanel-BnUut-p-.js} +13 -13
- package/dist/{LanguageMenu-C-eQ0lFy.js → LanguageMenu-DfTxrbvp.js} +16 -16
- package/dist/{LoadingTrack-BG8cg9xi.js → LoadingTrack-c4SeD16s.js} +1 -1
- package/dist/{LocaleNotices-CDK_9D7P.js → LocaleNotices-D6zk-QCL.js} +5 -5
- package/dist/{LogicTagInsertButton-BSolF7Fd.js → LogicTagInsertButton-CJ1Jk6jv.js} +65 -65
- package/dist/{MediaEditModal-C8yc9dxt.js → MediaEditModal-BxbwZxnf.js} +4 -4
- package/dist/{MediaPanels-FI4I8asn.js → MediaPanels-BiUxsTMM.js} +2 -2
- package/dist/{MergeTagInput-B1nl2ZMT.js → MergeTagInput-CV-z85s9.js} +2 -2
- package/dist/{MergeTagModeToggle-DXvb80OE.js → MergeTagModeToggle-CixgX5C_.js} +7 -7
- package/dist/{MergeTagTextarea-DJlf3VbS.js → MergeTagTextarea-B1zOC_Nr.js} +9 -9
- package/dist/{ParagraphEditor-Dqco128s.js → ParagraphEditor-C9UhWvRB.js} +51 -51
- package/dist/{RestoreVersionDialog-hqLCuGV5.js → RestoreVersionDialog-Do7fZWpT.js} +5 -5
- package/dist/{RichTextEditorContent-xIEF0Y3Z.js → RichTextEditorContent-wW_SMun2.js} +10 -10
- package/dist/{SaveBlockDialog-CQlCP_XC.js → SaveBlockDialog-CCHIUfR-.js} +15 -15
- package/dist/{SavedBlocksBrowserModal-BXA32Fx6.js → SavedBlocksBrowserModal-DtPHhfw9.js} +13 -13
- package/dist/{SavedBlocksPanels-BKUzbamj.js → SavedBlocksPanels-CYIby5pR.js} +2 -2
- package/dist/{SavedBlocksPickBar-BlvF-4UF.js → SavedBlocksPickBar-CCwBugqN.js} +4 -4
- package/dist/{TemplateSettings-CYFtR8zv.js → TemplateSettings-B8IVy5q9.js} +14 -14
- package/dist/{TestEmailModal-BbaL17HO.js → TestEmailModal-CS5JoKRH.js} +13 -13
- package/dist/{TestEmailPanel-DhB1CSpg.js → TestEmailPanel-sOIZfKzc.js} +2 -2
- package/dist/{TitleEditor-3BRl8u5l.js → TitleEditor-ZlBcq9_P.js} +14 -14
- package/dist/{ToggleSwitch-R3wCCYE6.js → ToggleSwitch-BIPdFWUr.js} +1 -1
- package/dist/{Toolbar-pzNIakGM.js → Toolbar-c4_rLLJT.js} +218 -218
- package/dist/{TplModal-WNuWhHZm.js → TplModal-DnFFEulp.js} +6 -6
- package/dist/{VersionHistoryMenu--T-Qp_mH.js → VersionHistoryMenu-Cd2IaHgT.js} +10 -10
- package/dist/{VersionHistoryPanels-BPubvYIE.js → VersionHistoryPanels-TdGaMaa_.js} +2 -2
- package/dist/{VersionPreviewBanner-ClL3Wkln.js → VersionPreviewBanner-lkAf7tc8.js} +3 -3
- package/dist/{WrapperBlock-CjfCPceb.js → WrapperBlock-BiW4ye3w.js} +5 -5
- package/dist/{blockTypeIcons-12OMwVyN.js → blockTypeIcons-D1aYMC1M.js} +3 -3
- package/dist/bundle-stats.json +7 -7
- package/dist/cdn/chunks/{AiAltTextPopover-PFjTrl0y.js → AiAltTextPopover-CfGJNBOb.js} +5 -5
- package/dist/cdn/chunks/{AiAltTextPopover-PFjTrl0y.js.map → AiAltTextPopover-CfGJNBOb.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-BMjzvApH.js → AiAltTextReview-PKe31R_g.js} +6 -6
- package/dist/cdn/chunks/{AiAltTextReview-BMjzvApH.js.map → AiAltTextReview-PKe31R_g.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-C2gpq4kP.js → AiChatPanel-DNCUpV8n.js} +15 -18
- package/dist/cdn/chunks/AiChatPanel-DNCUpV8n.js.map +1 -0
- package/dist/cdn/chunks/AiPanels-IV0VEkBL.js +27 -0
- package/dist/cdn/chunks/AiPanels-IV0VEkBL.js.map +1 -0
- package/dist/cdn/chunks/{AiRewriteMenu-CnkyjPEu.js → AiRewriteMenu-ZDBwReuU.js} +58 -58
- package/dist/cdn/chunks/AiRewriteMenu-ZDBwReuU.js.map +1 -0
- package/dist/cdn/chunks/{BlockIssueBadge-DncZ-HDf.js → BlockIssueBadge-DIlFDDwh.js} +5 -5
- package/dist/cdn/chunks/BlockIssueBadge-DIlFDDwh.js.map +1 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-CCSEzL46.js → BlockPreviewCanvas-D7U6nQ7t.js} +28 -28
- package/dist/cdn/chunks/BlockPreviewCanvas-D7U6nQ7t.js.map +1 -0
- package/dist/cdn/chunks/{CloudHeaderExtras-uUJYJFJ6.js → CloudHeaderExtras-CazfMn6A.js} +3 -3
- package/dist/cdn/chunks/{CloudHeaderExtras-uUJYJFJ6.js.map → CloudHeaderExtras-CazfMn6A.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-CRztnw4M.js → CloudPanels-EXXNMLbs.js} +5 -5
- package/dist/cdn/chunks/CloudPanels-EXXNMLbs.js.map +1 -0
- package/dist/cdn/chunks/{CollaborationNotices-IuLYT2x7.js → CollaborationNotices-DGA8XRZJ.js} +4 -4
- package/dist/cdn/chunks/{CollaborationNotices-IuLYT2x7.js.map → CollaborationNotices-DGA8XRZJ.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-C1ZI2xwa.js → CollaboratorBar-BWL1Shc1.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-C1ZI2xwa.js.map → CollaboratorBar-BWL1Shc1.js.map} +1 -1
- package/dist/cdn/chunks/CommentsPanel-4mrl4zMK.js +24 -0
- package/dist/cdn/chunks/CommentsPanel-4mrl4zMK.js.map +1 -0
- package/dist/cdn/chunks/CommentsSidebar-BJ87vc7i.js +486 -0
- package/dist/cdn/chunks/CommentsSidebar-BJ87vc7i.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-8aPSExrv.js → CountdownBlock-Do6oItNW.js} +5 -5
- package/dist/cdn/chunks/{CountdownBlock-8aPSExrv.js.map → CountdownBlock-Do6oItNW.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CnWQEW5g.js → CountdownToolbar-BN2_zvRj.js} +8 -8
- package/dist/cdn/chunks/{CountdownToolbar-CnWQEW5g.js.map → CountdownToolbar-BN2_zvRj.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-CrplCzo8.js → IssuesPanel-BDwegn0s.js} +9 -9
- package/dist/cdn/chunks/IssuesPanel-BDwegn0s.js.map +1 -0
- package/dist/cdn/chunks/{LanguageMenu-B6MNInCL.js → LanguageMenu-DXq9cXUd.js} +105 -105
- package/dist/cdn/chunks/LanguageMenu-DXq9cXUd.js.map +1 -0
- package/dist/cdn/chunks/{LoadingTrack-DUYcDHOV.js → LoadingTrack-o-89hApJ.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-DUYcDHOV.js.map → LoadingTrack-o-89hApJ.js.map} +1 -1
- package/dist/cdn/chunks/{LocaleNotices-TxeAl8Iq.js → LocaleNotices-CUN5K5QJ.js} +5 -5
- package/dist/cdn/chunks/{LocaleNotices-TxeAl8Iq.js.map → LocaleNotices-CUN5K5QJ.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-DvSVx2DB.js → LogicTagInsertButton-BEArlbra.js} +12 -12
- package/dist/cdn/chunks/{LogicTagInsertButton-DvSVx2DB.js.map → LogicTagInsertButton-BEArlbra.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-tGK6htBl.js → MediaEditModal-BHTMNHx0.js} +4 -4
- package/dist/cdn/chunks/{MediaEditModal-tGK6htBl.js.map → MediaEditModal-BHTMNHx0.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-BVrQYz2C.js → MediaPanels-BlianNRh.js} +3 -3
- package/dist/cdn/chunks/{MediaPanels-BVrQYz2C.js.map → MediaPanels-BlianNRh.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-DeuNH3re.js → MergeTagInput-B3SLXXzL.js} +3 -3
- package/dist/cdn/chunks/{MergeTagInput-DeuNH3re.js.map → MergeTagInput-B3SLXXzL.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-D7maMGIM.js → MergeTagModeToggle-Dywp9ntA.js} +6 -6
- package/dist/cdn/chunks/{MergeTagModeToggle-D7maMGIM.js.map → MergeTagModeToggle-Dywp9ntA.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-B2xxIU3e.js → MergeTagTextarea-B9TM7FgM.js} +7 -7
- package/dist/cdn/chunks/{MergeTagTextarea-B2xxIU3e.js.map → MergeTagTextarea-B9TM7FgM.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-Bx_Hlw8d.js → ParagraphEditor-CVGtTYta.js} +30 -30
- package/dist/cdn/chunks/{ParagraphEditor-Bx_Hlw8d.js.map → ParagraphEditor-CVGtTYta.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-CPrrWTsT.js → RestoreVersionDialog-Dt_0qOOW.js} +5 -5
- package/dist/cdn/chunks/RestoreVersionDialog-Dt_0qOOW.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-Dze4C9VI.js → RichTextEditorContent-BjN4mnzL.js} +9 -9
- package/dist/cdn/chunks/{RichTextEditorContent-Dze4C9VI.js.map → RichTextEditorContent-BjN4mnzL.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CXVwnfsy.js → SaveBlockDialog-D9eBjE99.js} +13 -13
- package/dist/cdn/chunks/{SaveBlockDialog-CXVwnfsy.js.map → SaveBlockDialog-D9eBjE99.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BDTmenOE.js → SavedBlocksBrowserModal-ClsTpkdk.js} +9 -9
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BDTmenOE.js.map → SavedBlocksBrowserModal-ClsTpkdk.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-B41Rk_v1.js → SavedBlocksPanels-CxlNHhUs.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-B41Rk_v1.js.map → SavedBlocksPanels-CxlNHhUs.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-B97z_rFH.js → SavedBlocksPickBar-C7_Z8phX.js} +5 -5
- package/dist/cdn/chunks/{SavedBlocksPickBar-B97z_rFH.js.map → SavedBlocksPickBar-C7_Z8phX.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-YwwRbxPc.js → TemplateSettings-B6zDtjSs.js} +12 -12
- package/dist/cdn/chunks/{TemplateSettings-YwwRbxPc.js.map → TemplateSettings-B6zDtjSs.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-BiFP2Cbx.js → TestEmailModal-CJ_QYFua.js} +10 -10
- package/dist/cdn/chunks/{TestEmailModal-BiFP2Cbx.js.map → TestEmailModal-CJ_QYFua.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BrivPMk2.js → TestEmailPanel-CsFrTq_a.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-BrivPMk2.js.map → TestEmailPanel-CsFrTq_a.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-CzPkkL2s.js → TitleEditor-CuKJptyw.js} +13 -13
- package/dist/cdn/chunks/{TitleEditor-CzPkkL2s.js.map → TitleEditor-CuKJptyw.js.map} +1 -1
- package/dist/cdn/chunks/{ToggleSwitch-BSkySwA1.js → ToggleSwitch-C0w0srN_.js} +2 -2
- package/dist/cdn/chunks/{ToggleSwitch-BSkySwA1.js.map → ToggleSwitch-C0w0srN_.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-VH07SzX7.js → Toolbar-TS2WwlPW.js} +302 -302
- package/dist/cdn/chunks/Toolbar-TS2WwlPW.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-DMe6J811.js → TplModal-CsadClrH.js} +6 -6
- package/dist/cdn/chunks/{TplModal-DMe6J811.js.map → TplModal-CsadClrH.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-DkwbKhBl.js → VersionHistoryMenu-BNPxnWiO.js} +9 -9
- package/dist/cdn/chunks/{VersionHistoryMenu-DkwbKhBl.js.map → VersionHistoryMenu-BNPxnWiO.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-CgxhMRAl.js → VersionHistoryPanels-CieY91f0.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryPanels-CgxhMRAl.js.map → VersionHistoryPanels-CieY91f0.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-WVBDBrwQ.js → VersionPreviewBanner-BldFvgxJ.js} +4 -4
- package/dist/cdn/chunks/{VersionPreviewBanner-WVBDBrwQ.js.map → VersionPreviewBanner-BldFvgxJ.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-CCCIcqe2.js → WrapperBlock-DtnRuKWE.js} +6 -6
- package/dist/cdn/chunks/{WrapperBlock-CCCIcqe2.js.map → WrapperBlock-DtnRuKWE.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-CzYA5DF9.js → blockTypeIcons-19xd5ZPi.js} +6 -6
- package/dist/cdn/chunks/{blockTypeIcons-CzYA5DF9.js.map → blockTypeIcons-19xd5ZPi.js.map} +1 -1
- package/dist/cdn/chunks/{composables-D3lsO7Io.js → composables-CUIiW9OD.js} +750 -730
- package/dist/cdn/chunks/composables-CUIiW9OD.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-CE79GB1H.js → createCloudRuntime-B7D04wKf.js} +157 -143
- package/dist/cdn/chunks/createCloudRuntime-B7D04wKf.js.map +1 -0
- package/dist/cdn/chunks/da-CYWJkrTg.js +97 -0
- package/dist/cdn/chunks/da-CYWJkrTg.js.map +1 -0
- package/dist/cdn/chunks/da-qQzj0QGy.js +950 -0
- package/dist/cdn/chunks/da-qQzj0QGy.js.map +1 -0
- package/dist/cdn/chunks/{dist-BzXULHvI.js → dist-BtWMy7UQ.js} +3 -3
- package/dist/cdn/chunks/{dist-BzXULHvI.js.map → dist-BtWMy7UQ.js.map} +1 -1
- package/dist/cdn/chunks/{dist-Cf1pSluo.js → dist-zu1jwYIS.js} +4 -4
- package/dist/cdn/chunks/{dist-Cf1pSluo.js.map → dist-zu1jwYIS.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-DepKdldn.js → draggable-IRVFEZ-b.js} +1535 -1500
- package/dist/cdn/chunks/draggable-IRVFEZ-b.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-CN69NlOK.js → editor-modal-CarOiAYJ.js} +77 -76
- package/dist/cdn/chunks/{editor-modal-CN69NlOK.js.map → editor-modal-CarOiAYJ.js.map} +1 -1
- package/dist/cdn/chunks/en-B4s_0ryk.js +1 -0
- package/dist/cdn/chunks/{extensions-8dlM-fU4.js → extensions-Cbvk9i08.js} +7 -7
- package/dist/cdn/chunks/{extensions-8dlM-fU4.js.map → extensions-Cbvk9i08.js.map} +1 -1
- package/dist/cdn/chunks/{icons-DHExFLlT.js → icons-Cl4oR2mf.js} +73 -73
- package/dist/cdn/chunks/icons-Cl4oR2mf.js.map +1 -0
- package/dist/cdn/chunks/keys-BQqbBUag.js +11 -0
- package/dist/cdn/chunks/keys-BQqbBUag.js.map +1 -0
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-aWjkotui.js → normalizeMergeTagMarkup-BJ-MnCqF.js} +55 -55
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-aWjkotui.js.map → normalizeMergeTagMarkup-BJ-MnCqF.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-Dn6dFUwx.js → preRenderCustomBlocks-D2wISRHq.js} +2 -2
- package/dist/cdn/chunks/{preRenderCustomBlocks-Dn6dFUwx.js.map → preRenderCustomBlocks-D2wISRHq.js.map} +1 -1
- package/dist/cdn/chunks/{sanitizeHtml-B3njfkSy.js → sanitizeHtml-CB7fjHFs.js} +22 -11
- package/dist/cdn/chunks/sanitizeHtml-CB7fjHFs.js.map +1 -0
- package/dist/cdn/chunks/{socialIcons-BFgc3qqJ.js → socialIcons-C_yggK1_.js} +575 -524
- package/dist/cdn/chunks/socialIcons-C_yggK1_.js.map +1 -0
- package/dist/cdn/chunks/{src-C9JWWxAk.js → src-Bp7bZcuD.js} +108 -95
- package/dist/cdn/chunks/src-Bp7bZcuD.js.map +1 -0
- package/dist/cdn/chunks/{src-mXG-Of9A.js → src-CdVAke9t.js} +721 -696
- package/dist/cdn/chunks/src-CdVAke9t.js.map +1 -0
- package/dist/cdn/chunks/{src-GgKlXNxy.js → src-D-URHI0Z.js} +232 -228
- package/dist/cdn/chunks/src-D-URHI0Z.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-C940SvId.js → tiptap-BPiZqxCt.js} +40 -31
- package/dist/cdn/chunks/tiptap-BPiZqxCt.js.map +1 -0
- package/dist/cdn/chunks/{useCloudI18n-Xsih9yRH.js → useCloudI18n-Dr4S2TRW.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-Xsih9yRH.js.map → useCloudI18n-Dr4S2TRW.js.map} +1 -1
- package/dist/cdn/chunks/useEditorRoot-B_kf_k-g.js +9 -0
- package/dist/cdn/chunks/{useEditorRoot-Beau2Z_T.js.map → useEditorRoot-B_kf_k-g.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-D8s7HtTn.js → useI18n-CSf-ZpcM.js} +3 -3
- package/dist/cdn/chunks/{useI18n-D8s7HtTn.js.map → useI18n-CSf-ZpcM.js.map} +1 -1
- package/dist/cdn/chunks/useLocalizedDisplay-slFOCPrh.js +33 -0
- package/dist/cdn/chunks/{useLocalizedDisplay-Bgg4qpev.js.map → useLocalizedDisplay-slFOCPrh.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-B0PDeDxl.js → useLogicTag-lPjCGeGC.js} +4 -4
- package/dist/cdn/chunks/{useLogicTag-B0PDeDxl.js.map → useLogicTag-lPjCGeGC.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-BSU75bKk.js → useMergeTag-BKNBwIry.js} +4 -4
- package/dist/cdn/chunks/{useMergeTag-BSU75bKk.js.map → useMergeTag-BKNBwIry.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-esO6wjvU.js → usePopoverPosition-BJFFi8x6.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-esO6wjvU.js.map → usePopoverPosition-BJFFi8x6.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-CJuUu7Xj.js → useScrollToBlock-MI4PP5lk.js} +3 -3
- package/dist/cdn/chunks/{useScrollToBlock-CJuUu7Xj.js.map → useScrollToBlock-MI4PP5lk.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-QqBilClC.js → withCurrentFont-CzTFFaJA.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-QqBilClC.js.map → withCurrentFont-CzTFFaJA.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +685 -663
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-CcuCoJDh.js → check-C7ua4TAK.js} +1 -1
- package/dist/{chevron-down-BfYIbFbC.js → chevron-down-DftQrAkI.js} +1 -1
- package/dist/{chevron-right-DyjFqY35.js → chevron-right-B-DULGbg.js} +1 -1
- package/dist/{chevron-up-BHEIxuS-.js → chevron-up-CeYsyD8c.js} +1 -1
- package/dist/{circle-alert-Tq7kAh9S.js → circle-exclamation-point-DHjORV_I.js} +3 -3
- package/dist/{clock-Df0ZiXwQ.js → clock-CajOtLEZ.js} +1 -1
- package/dist/{composables-DreAt_0A.js → composables-DbjgUQlV.js} +1123 -1103
- package/dist/{createCloudRuntime-CL4tUlDC.js → createCloudRuntime-Cnh2M6iT.js} +42 -28
- package/dist/{createLucideIcon-CfBdtoUw.js → createLucideIcon-D-mELTSY.js} +6 -6
- package/dist/da-CYWJkrTg.js +95 -0
- package/dist/da-qQzj0QGy.js +948 -0
- package/dist/{dist-CX7skkvG.js → dist-A328tG0Z.js} +2 -2
- package/dist/{dist-BjzK1g4Z.js → dist-B15BvV94.js} +2 -2
- package/dist/{dist-DDytHU_6.js → dist-B3G4Yvpd.js} +3 -3
- package/dist/{dist-CiYotUR8.js → dist-B6ptxfPo.js} +3 -3
- package/dist/{dist-0GWMyHtM.js → dist-BmV-2uBJ.js} +2 -2
- package/dist/{dist-CCLRTtJP.js → dist-BxKFi2h_.js} +5 -5
- package/dist/{dist-BMUUt3zJ.js → dist-CAvsz9cW.js} +680 -655
- package/dist/{dist-CsknfjrZ.js → dist-CMBOqk9I.js} +7 -7
- package/dist/{dist-ZrT0vAB6.js → dist-CXTsTO5h.js} +2 -2
- package/dist/{dist-Dq9VnANT.js → dist-D5BUcCjv.js} +2 -2
- package/dist/dist-D9cbSSSx.js +4 -0
- package/dist/{dist-BsumKKh9.js → dist-DAdrn64r.js} +2 -2
- package/dist/{dist-C3avsUq9.js → dist-DENg3ORe.js} +31 -22
- package/dist/{dist-Cr1CLCmx.js → dist-DI_8rB1X.js} +2 -2
- package/dist/dist-ELLEk-lS.js +4 -0
- package/dist/{editor-modal-BD32TXws.js → editor-modal-CgsaLpwB.js} +20 -19
- package/dist/en-DBLcB-CW.js +1 -0
- package/dist/{extensions-DKxHlSd7.js → extensions-7fb-XtNJ.js} +21 -21
- package/dist/{eye-B3psrAqd.js → eye-fe5sKF_K.js} +1 -1
- package/dist/{image-C3yuPDxx.js → image-CUC7SZiW.js} +1 -1
- package/dist/index.d.ts +6 -4
- package/dist/{info-DKja7A68.js → info-DDbLU4pT.js} +1 -1
- package/dist/keys-D9oKZN1h.js +9 -0
- package/dist/{link-DhzPI4Hn.js → link-C2icj0iH.js} +1 -1
- package/dist/{list-DVGn7Ik2.js → list-KYC_Jb5A.js} +1 -1
- package/dist/{loader-circle-DqKWsMHO.js → loader-circle-DmyagWpc.js} +1 -1
- package/dist/{message-circle-C4TonoBs.js → message-circle-ijyWn6UJ.js} +1 -1
- package/dist/{normalizeMergeTagMarkup-Da9JAgx7.js → normalizeMergeTagMarkup-GrXJfXsQ.js} +82 -82
- package/dist/{package-9OkiEO4S.js → package-CKYm_jQY.js} +1 -1
- package/dist/{pencil-M9vkOB7C.js → pencil-C2TRSR-Y.js} +1 -1
- package/dist/{plus-DxZiv9YC.js → plus-CotJVDxb.js} +1 -1
- package/dist/{preRenderCustomBlocks-CdqSp2P7.js → preRenderCustomBlocks-DuXtzD-F.js} +3 -3
- package/dist/{refresh-cw-UY8_sdFG.js → refresh-cw-CuCRV6D5.js} +1 -1
- package/dist/{rotate-ccw-BFTGCpHn.js → rotate-ccw-BlnQ3y6R.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-DlHp8xgy.js → runtime-dom.esm-bundler-nN-jsqr1.js} +20 -20
- package/dist/{sanitizeHtml-wBibnBF4.js → sanitizeHtml-eV4_BpI6.js} +25 -14
- package/dist/{search-RuGJnMEn.js → search-Dxw6oFrZ.js} +1 -1
- package/dist/{send-DGB1ar02.js → send-C-blQBZ9.js} +1 -1
- package/dist/{smartphone-CVA29CU_.js → smartphone-rLz4X-Dd.js} +1 -1
- package/dist/{socialIcons-oo4uL16Y.js → socialIcons-brRkK9Om.js} +600 -549
- package/dist/{sparkles-IHfEwEcd.js → sparkles-JWQlUiSn.js} +1 -1
- package/dist/{square-_Cl44UU6.js → square-DshDy1Il.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +748 -726
- package/dist/{text-align-start-Dqk2Xt_Q.js → text-align-start-CyasaQtr.js} +13 -13
- package/dist/{trash-Cr7rD5Hh.js → trash-B1lZp2Tv.js} +1 -1
- package/dist/{triangle-alert-CKcpwtUj.js → triangle-exclamation-point-BhJvBEoT.js} +3 -3
- package/dist/{upload-DR9pqVON.js → upload-CNK8JX38.js} +1 -1
- package/dist/{useCloudI18n-BczJoFf4.js → useCloudI18n-HhCZYRV6.js} +2 -2
- package/dist/useEditorRoot-B0Njczhx.js +7 -0
- package/dist/{useI18n-zeWYtWSv.js → useI18n-CM9vKbYc.js} +2 -2
- package/dist/{cdn/chunks/useLocalizedDisplay-Bgg4qpev.js → useLocalizedDisplay-DoaT7nWk.js} +2 -4
- package/dist/{useLogicTag-B4Zpk3eo.js → useLogicTag-cTC2KbWd.js} +3 -3
- package/dist/{useMergeTag-B5qlq8px.js → useMergeTag-D2YDZ8vR.js} +3 -3
- package/dist/{usePopoverPosition-Br3zt_MQ.js → usePopoverPosition-CVRzzLkC.js} +2 -2
- package/dist/{useScrollToBlock-BfOzc1Z6.js → useScrollToBlock-vf_KD0FM.js} +3 -3
- package/dist/{vue.runtime.esm-bundler-BJXc_Mri.js → vue.runtime.esm-bundler-BE5V8ADU.js} +414 -362
- package/dist/{withCurrentFont-m_PHcOD0.js → withCurrentFont-DAmED4fN.js} +1 -1
- package/dist/{x-DZSFHafL.js → x-DbLX5Qdm.js} +1 -1
- package/package.json +23 -23
- package/dist/AiPanels-CwKmXzyr.js +0 -31
- package/dist/CommentsPanel-B5NqPMmY.js +0 -16
- package/dist/CommentsSidebar-BDrcrDxS.js +0 -526
- package/dist/cdn/chunks/AiChatPanel-C2gpq4kP.js.map +0 -1
- package/dist/cdn/chunks/AiPanels-Cx3PE2mE.js +0 -32
- package/dist/cdn/chunks/AiPanels-Cx3PE2mE.js.map +0 -1
- package/dist/cdn/chunks/AiRewriteMenu-CnkyjPEu.js.map +0 -1
- package/dist/cdn/chunks/BlockIssueBadge-DncZ-HDf.js.map +0 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-CCSEzL46.js.map +0 -1
- package/dist/cdn/chunks/CloudPanels-CRztnw4M.js.map +0 -1
- package/dist/cdn/chunks/CommentsPanel-lgjJNrrY.js +0 -18
- package/dist/cdn/chunks/CommentsPanel-lgjJNrrY.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-DTold7iy.js +0 -496
- package/dist/cdn/chunks/CommentsSidebar-DTold7iy.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-CrplCzo8.js.map +0 -1
- package/dist/cdn/chunks/LanguageMenu-B6MNInCL.js.map +0 -1
- package/dist/cdn/chunks/RestoreVersionDialog-CPrrWTsT.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-VH07SzX7.js.map +0 -1
- package/dist/cdn/chunks/composables-D3lsO7Io.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-CE79GB1H.js.map +0 -1
- package/dist/cdn/chunks/draggable-DepKdldn.js.map +0 -1
- package/dist/cdn/chunks/en-Bcz4gS9U.js +0 -1
- package/dist/cdn/chunks/icons-DHExFLlT.js.map +0 -1
- package/dist/cdn/chunks/keys-BUmIvYy3.js +0 -11
- package/dist/cdn/chunks/keys-BUmIvYy3.js.map +0 -1
- package/dist/cdn/chunks/sanitizeHtml-B3njfkSy.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-BFgc3qqJ.js.map +0 -1
- package/dist/cdn/chunks/src-C9JWWxAk.js.map +0 -1
- package/dist/cdn/chunks/src-GgKlXNxy.js.map +0 -1
- package/dist/cdn/chunks/src-mXG-Of9A.js.map +0 -1
- package/dist/cdn/chunks/tiptap-C940SvId.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-Beau2Z_T.js +0 -9
- package/dist/dist-B_0FPmoy.js +0 -4
- package/dist/dist-DKV9m4Uu.js +0 -4
- package/dist/en-Dgs_-NBw.js +0 -1
- package/dist/keys-w_VRjoMu.js +0 -9
- package/dist/useEditorRoot-BcXKhM_8.js +0 -7
- package/dist/useLocalizedDisplay-Cbhx208c.js +0 -31
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
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-
|
|
3
|
-
import { a as O, o as k } from "./runtime-dom.esm-bundler-
|
|
4
|
-
import { n as A, t as j } from "./MergeTagTextarea-
|
|
5
|
-
import { c as M } from "./LogicTagInsertButton-
|
|
6
|
-
import { t as N } from "./MergeTagInput-
|
|
7
|
-
import { t as P } from "./ToggleSwitch-
|
|
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 ge, t as Y } from "./withCurrentFont-
|
|
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
|
+
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-B1zOC_Nr.js";
|
|
5
|
+
import { c as M } from "./LogicTagInsertButton-CJ1Jk6jv.js";
|
|
6
|
+
import { t as N } from "./MergeTagInput-CV-z85s9.js";
|
|
7
|
+
import { t as P } from "./ToggleSwitch-BIPdFWUr.js";
|
|
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, v as V, y as ne } from "./styleConstants-CgiNKdnc.js";
|
|
9
|
+
import { t as re } from "./link-C2icj0iH.js";
|
|
10
|
+
import { t as ie } from "./createLucideIcon-D-mELTSY.js";
|
|
11
|
+
import { t as H } from "./useI18n-CM9vKbYc.js";
|
|
12
|
+
import { M as ae, Wt as oe, Yt as se, _ as ce, _t as le, cn as ue, i as de, j as U, jt as fe, lt as pe, n as me, on as he, p as W, r as G, t as K, ut as q, yt as J } from "./dist-CAvsz9cW.js";
|
|
13
|
+
import { n as ge, t as Y } from "./withCurrentFont-DAmED4fN.js";
|
|
14
14
|
import { t as _e } from "./languageName-DEEOhDWI.js";
|
|
15
|
-
import { n as X, t as ve } from "./blockTypeIcons-
|
|
16
|
-
import { t as Z } from "./plus-
|
|
15
|
+
import { n as X, t as ve } from "./blockTypeIcons-D1aYMC1M.js";
|
|
16
|
+
import { t as Z } from "./plus-CotJVDxb.js";
|
|
17
17
|
import { t as ye } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
18
|
-
import { B as be, T as xe, _ as Se, b as Ce, d as we, f as Te, g as Ee, h as Q, i as De, k as Oe, l as ke, m as Ae, p as je, r as Me, s as Ne, u as Pe, v as Fe } from "./socialIcons-
|
|
19
|
-
import { t as Ie } from "./image-
|
|
20
|
-
import { B as Le, C as Re, H as ze, O as Be,
|
|
21
|
-
import { t as Ze } from "./chevron-down-
|
|
22
|
-
import { n as Qe, t as $e } from "./smartphone-
|
|
18
|
+
import { B as be, T as xe, _ as Se, b as Ce, d as we, f as Te, g as Ee, h as Q, i as De, k as Oe, l as ke, m as Ae, p as je, r as Me, s as Ne, u as Pe, v as Fe } from "./socialIcons-brRkK9Om.js";
|
|
19
|
+
import { t as Ie } from "./image-CUC7SZiW.js";
|
|
20
|
+
import { B as Le, C as Re, H as ze, O as Be, Q as Ve, T as He, W as Ue, _ as We, b as Ge, ct as Ke, h as qe, p as Je, r as Ye, v as Xe } from "./keys-D9oKZN1h.js";
|
|
21
|
+
import { t as Ze } from "./chevron-down-DftQrAkI.js";
|
|
22
|
+
import { n as Qe, t as $e } from "./smartphone-rLz4X-Dd.js";
|
|
23
23
|
import { t as et } from "./logger-BOu7oEtk.js";
|
|
24
|
-
import { t as tt } from "./circle-
|
|
25
|
-
import { t as nt } from "./refresh-cw-
|
|
26
|
-
import { c as rt, r as it } from "./usePopoverPosition-
|
|
27
|
-
import { t as at } from "./trash-
|
|
28
|
-
import { t as ot } from "./info-
|
|
29
|
-
import { n as st } from "./useLocalizedDisplay-
|
|
30
|
-
import { _ as ct } from "./dist-
|
|
31
|
-
import { n as lt, r as ut, t as dt } from "./text-align-start-
|
|
32
|
-
import { t as ft } from "./x-
|
|
33
|
-
import { n as pt } from "./upload-
|
|
34
|
-
var mt =
|
|
24
|
+
import { t as tt } from "./circle-exclamation-point-DHjORV_I.js";
|
|
25
|
+
import { t as nt } from "./refresh-cw-CuCRV6D5.js";
|
|
26
|
+
import { c as rt, r as it } from "./usePopoverPosition-CVRzzLkC.js";
|
|
27
|
+
import { t as at } from "./trash-B1lZp2Tv.js";
|
|
28
|
+
import { t as ot } from "./info-DDbLU4pT.js";
|
|
29
|
+
import { n as st } from "./useLocalizedDisplay-DoaT7nWk.js";
|
|
30
|
+
import { _ as ct } from "./dist-A328tG0Z.js";
|
|
31
|
+
import { n as lt, r as ut, t as dt } from "./text-align-start-CyasaQtr.js";
|
|
32
|
+
import { t as ft } from "./x-DbLX5Qdm.js";
|
|
33
|
+
import { n as pt } from "./upload-CNK8JX38.js";
|
|
34
|
+
var mt = ie({
|
|
35
35
|
name: "lock-open",
|
|
36
36
|
size: 24,
|
|
37
37
|
node: [["rect", {
|
|
@@ -47,7 +47,7 @@ var mt = ae({
|
|
|
47
47
|
key: "1mm8w8"
|
|
48
48
|
}]],
|
|
49
49
|
aliases: ["unlock"]
|
|
50
|
-
}), ht =
|
|
50
|
+
}), ht = ie({
|
|
51
51
|
name: "lock",
|
|
52
52
|
size: 24,
|
|
53
53
|
node: [["rect", {
|
|
@@ -62,7 +62,7 @@ var mt = ae({
|
|
|
62
62
|
d: "M7 11V7a5 5 0 0 1 10 0v4",
|
|
63
63
|
key: "fwvmzm"
|
|
64
64
|
}]]
|
|
65
|
-
}), gt =
|
|
65
|
+
}), gt = ie({
|
|
66
66
|
name: "unlink",
|
|
67
67
|
size: 24,
|
|
68
68
|
node: [
|
|
@@ -181,7 +181,7 @@ var mt = ae({
|
|
|
181
181
|
return (t, n) => (a(), v("div", yt, [b("input", {
|
|
182
182
|
type: "number",
|
|
183
183
|
"data-testid": e.testid,
|
|
184
|
-
class: o(h(
|
|
184
|
+
class: o(h(z)),
|
|
185
185
|
value: e.modelValue,
|
|
186
186
|
min: e.min,
|
|
187
187
|
max: e.max,
|
|
@@ -212,7 +212,7 @@ var mt = ae({
|
|
|
212
212
|
title: e.linked ? e.unlinkLabel : e.linkLabel,
|
|
213
213
|
"data-testid": e.testid,
|
|
214
214
|
onClick: r[0] ||= (e) => n("toggle")
|
|
215
|
-
}, [e.linked ? (a(), w(h(
|
|
215
|
+
}, [e.linked ? (a(), w(h(re), {
|
|
216
216
|
key: 0,
|
|
217
217
|
size: 14,
|
|
218
218
|
"stroke-width": 2
|
|
@@ -234,7 +234,7 @@ var mt = ae({
|
|
|
234
234
|
},
|
|
235
235
|
emits: ["update:modelValue"],
|
|
236
236
|
setup(e, { emit: n }) {
|
|
237
|
-
let i = e, s = n, { t: c } =
|
|
237
|
+
let i = e, s = n, { t: c } = H(), l = {
|
|
238
238
|
width: 0,
|
|
239
239
|
style: "solid",
|
|
240
240
|
color: "#000000"
|
|
@@ -244,7 +244,7 @@ var mt = ae({
|
|
|
244
244
|
}
|
|
245
245
|
let f = m(() => {
|
|
246
246
|
let e = i.modelValue;
|
|
247
|
-
return !e ||
|
|
247
|
+
return !e || de.every((t) => d(e[t], e.top));
|
|
248
248
|
}), y = _(f.value);
|
|
249
249
|
t(f, (e) => {
|
|
250
250
|
!e && y.value && (y.value = !1);
|
|
@@ -255,13 +255,13 @@ var mt = ae({
|
|
|
255
255
|
}), T = (e) => !!e && e.width > 0;
|
|
256
256
|
function E(e) {
|
|
257
257
|
if (y.value) {
|
|
258
|
-
s("update:modelValue", T(e) ?
|
|
258
|
+
s("update:modelValue", T(e) ? ue(e) : void 0);
|
|
259
259
|
return;
|
|
260
260
|
}
|
|
261
261
|
let t = {
|
|
262
|
-
...i.modelValue ??
|
|
262
|
+
...i.modelValue ?? ue(l),
|
|
263
263
|
[x.value]: e
|
|
264
|
-
}, n =
|
|
264
|
+
}, n = de.some((e) => T(t[e]));
|
|
265
265
|
s("update:modelValue", n ? t : void 0);
|
|
266
266
|
}
|
|
267
267
|
function D(e) {
|
|
@@ -284,10 +284,10 @@ var mt = ae({
|
|
|
284
284
|
y.value = !0;
|
|
285
285
|
let e = i.modelValue;
|
|
286
286
|
if (!e) return;
|
|
287
|
-
let t = T(e[x.value]) ? e[x.value] :
|
|
288
|
-
s("update:modelValue", t ?
|
|
287
|
+
let t = T(e[x.value]) ? e[x.value] : de.map((t) => e[t]).find(T);
|
|
288
|
+
s("update:modelValue", t ? ue(t) : void 0);
|
|
289
289
|
}
|
|
290
|
-
let j = m(() =>
|
|
290
|
+
let j = m(() => de.map((e) => ({
|
|
291
291
|
value: e,
|
|
292
292
|
label: c.spacingControl[e]
|
|
293
293
|
})));
|
|
@@ -308,19 +308,19 @@ var mt = ae({
|
|
|
308
308
|
"testid"
|
|
309
309
|
])]),
|
|
310
310
|
default: u(() => [
|
|
311
|
-
y.value ? g("", !0) : (a(), v("div", wt, [b("label", { class: o(h(
|
|
311
|
+
y.value ? g("", !0) : (a(), v("div", wt, [b("label", { class: o(h(V)) }, r(h(c).blockSettings.borderSide), 3), p($, {
|
|
312
312
|
options: j.value,
|
|
313
313
|
"model-value": x.value,
|
|
314
314
|
"onUpdate:modelValue": n[0] ||= (e) => x.value = e
|
|
315
315
|
}, null, 8, ["options", "model-value"])])),
|
|
316
|
-
b("div", Tt, [b("label", { class: o(h(
|
|
316
|
+
b("div", Tt, [b("label", { class: o(h(V)) }, r(h(c).blockSettings.borderWidth), 3), p(xt, {
|
|
317
317
|
"model-value": C.value.width,
|
|
318
318
|
min: 0,
|
|
319
319
|
suffix: "px",
|
|
320
320
|
testid: `${e.testidPrefix}-border-width-input`,
|
|
321
321
|
"onUpdate:modelValue": D
|
|
322
322
|
}, null, 8, ["model-value", "testid"])]),
|
|
323
|
-
C.value.width > 0 ? (a(), v(S, { key: 1 }, [b("div", Et, [b("label", { class: o(h(
|
|
323
|
+
C.value.width > 0 ? (a(), v(S, { key: 1 }, [b("div", Et, [b("label", { class: o(h(V)) }, r(h(c).blockSettings.borderStyle), 3), p($, {
|
|
324
324
|
options: [
|
|
325
325
|
{
|
|
326
326
|
value: "solid",
|
|
@@ -337,7 +337,7 @@ var mt = ae({
|
|
|
337
337
|
],
|
|
338
338
|
"model-value": C.value.style,
|
|
339
339
|
"onUpdate:modelValue": n[1] ||= (e) => O({ style: e })
|
|
340
|
-
}, null, 8, ["options", "model-value"])]), b("div", null, [b("label", { class: o(h(
|
|
340
|
+
}, null, 8, ["options", "model-value"])]), b("div", null, [b("label", { class: o(h(V)) }, r(h(c).blockSettings.borderColor), 3), p(M, {
|
|
341
341
|
"model-value": C.value.color,
|
|
342
342
|
"onUpdate:modelValue": n[2] ||= (e) => O({ color: e })
|
|
343
343
|
}, null, 8, ["model-value"])])], 64)) : g("", !0)
|
|
@@ -359,7 +359,7 @@ var mt = ae({
|
|
|
359
359
|
},
|
|
360
360
|
emits: ["update:modelValue"],
|
|
361
361
|
setup(e, { emit: n }) {
|
|
362
|
-
let i = e, o = n, { t: c } =
|
|
362
|
+
let i = e, o = n, { t: c } = H(), l = {
|
|
363
363
|
topLeft: "cornerTopLeft",
|
|
364
364
|
topRight: "cornerTopRight",
|
|
365
365
|
bottomRight: "cornerBottomRight",
|
|
@@ -377,7 +377,7 @@ var mt = ae({
|
|
|
377
377
|
bottomRight: e,
|
|
378
378
|
bottomLeft: e
|
|
379
379
|
} : e;
|
|
380
|
-
}), g = m(() =>
|
|
380
|
+
}), g = m(() => G.every((e) => f.value[e] === f.value.topLeft)), y = _(g.value);
|
|
381
381
|
t(g, (e) => {
|
|
382
382
|
!e && y.value && (y.value = !1);
|
|
383
383
|
});
|
|
@@ -451,7 +451,7 @@ var mt = ae({
|
|
|
451
451
|
},
|
|
452
452
|
emits: ["update"],
|
|
453
453
|
setup(e, { emit: t }) {
|
|
454
|
-
let n = e, i = t, { t: c } =
|
|
454
|
+
let n = e, i = t, { t: c } = H(), l = m(() => n.block.width === "full" ? "full" : typeof n.block.width == "number" ? "custom" : "auto");
|
|
455
455
|
function d(e, t) {
|
|
456
456
|
i("update", { [e]: t });
|
|
457
457
|
}
|
|
@@ -472,7 +472,7 @@ var mt = ae({
|
|
|
472
472
|
path: "fontFamily"
|
|
473
473
|
}, {
|
|
474
474
|
default: u(() => [b("select", {
|
|
475
|
-
class: o(h(
|
|
475
|
+
class: o(h(B)),
|
|
476
476
|
value: h(Y)(e.block.fontFamily),
|
|
477
477
|
onChange: n[0] ||= (e) => d("fontFamily", e.target.value || void 0)
|
|
478
478
|
}, [b("option", Mt, r(h(c).button.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
|
|
@@ -568,7 +568,7 @@ var mt = ae({
|
|
|
568
568
|
}, {
|
|
569
569
|
default: u(() => [b("div", Pt, [b("input", {
|
|
570
570
|
type: "number",
|
|
571
|
-
class: o(h(
|
|
571
|
+
class: o(h(z)),
|
|
572
572
|
value: e.block.fontSize,
|
|
573
573
|
min: "10",
|
|
574
574
|
max: "36",
|
|
@@ -607,7 +607,7 @@ var mt = ae({
|
|
|
607
607
|
path: "width"
|
|
608
608
|
}, {
|
|
609
609
|
default: u(() => [b("select", {
|
|
610
|
-
class: o(h(
|
|
610
|
+
class: o(h(B)),
|
|
611
611
|
value: l.value,
|
|
612
612
|
onChange: n[9] ||= (e) => f(e.target.value)
|
|
613
613
|
}, [
|
|
@@ -616,7 +616,7 @@ var mt = ae({
|
|
|
616
616
|
b("option", zt, r(h(c).button.widthCustom), 1)
|
|
617
617
|
], 42, It), l.value === "custom" ? (a(), v("div", Bt, [b("input", {
|
|
618
618
|
type: "number",
|
|
619
|
-
class: o(h(
|
|
619
|
+
class: o(h(z)),
|
|
620
620
|
value: typeof e.block.width == "number" ? e.block.width : Ht,
|
|
621
621
|
min: "20",
|
|
622
622
|
onInput: n[10] ||= (e) => y(e.target.value)
|
|
@@ -659,7 +659,7 @@ var mt = ae({
|
|
|
659
659
|
},
|
|
660
660
|
emits: ["update:modelValue"],
|
|
661
661
|
setup(e, { emit: n }) {
|
|
662
|
-
let r = e, i = n, { t: s } =
|
|
662
|
+
let r = e, i = n, { t: s } = H(), c = m(() => r.modelValue.top === r.modelValue.right && r.modelValue.right === r.modelValue.bottom && r.modelValue.bottom === r.modelValue.left), l = _(c.value);
|
|
663
663
|
t(c, (e) => {
|
|
664
664
|
!e && l.value && (l.value = !1);
|
|
665
665
|
});
|
|
@@ -870,10 +870,10 @@ var gn = { class: "tpl:space-y-3.5" }, _n = ["data-testid"], vn = ["data-testid"
|
|
|
870
870
|
},
|
|
871
871
|
emits: ["update:modelValue"],
|
|
872
872
|
setup(e, { emit: t }) {
|
|
873
|
-
let n = e, i = t, { t: c } =
|
|
873
|
+
let n = e, i = t, { t: c } = H(), l = E(Le, ce.liquid), u = m(() => typeof n.modelValue?.url == "string" ? n.modelValue.url : ""), d = m(() => u.value.trim() !== ""), x = mn(), C;
|
|
874
874
|
f(() => clearTimeout(C));
|
|
875
875
|
function T(e) {
|
|
876
|
-
n.measure && !
|
|
876
|
+
n.measure && !U(e, l) && (C = setTimeout(async () => {
|
|
877
877
|
let t = await x(e), r = n.modelValue;
|
|
878
878
|
t && r?.url === e && i("update:modelValue", {
|
|
879
879
|
...r,
|
|
@@ -886,7 +886,7 @@ var gn = { class: "tpl:space-y-3.5" }, _n = ["data-testid"], vn = ["data-testid"
|
|
|
886
886
|
i("update:modelValue", void 0);
|
|
887
887
|
return;
|
|
888
888
|
}
|
|
889
|
-
let { naturalWidth: r, naturalHeight: a, ...o } = n.modelValue ??
|
|
889
|
+
let { naturalWidth: r, naturalHeight: a, ...o } = n.modelValue ?? ae(e), s = n.measure ? t : null;
|
|
890
890
|
i("update:modelValue", {
|
|
891
891
|
...o,
|
|
892
892
|
url: e,
|
|
@@ -922,7 +922,7 @@ var gn = { class: "tpl:space-y-3.5" }, _n = ["data-testid"], vn = ["data-testid"
|
|
|
922
922
|
"bottom-left": c.blockSettings.backgroundPositionBottomLeft,
|
|
923
923
|
"bottom-center": c.blockSettings.backgroundPositionBottomCenter,
|
|
924
924
|
"bottom-right": c.blockSettings.backgroundPositionBottomRight
|
|
925
|
-
})), j = m(() =>
|
|
925
|
+
})), j = m(() => me.flatMap((e) => K.map((t) => ({
|
|
926
926
|
x: t,
|
|
927
927
|
y: e,
|
|
928
928
|
label: A.value[`${e}-${t}`]
|
|
@@ -930,14 +930,14 @@ var gn = { class: "tpl:space-y-3.5" }, _n = ["data-testid"], vn = ["data-testid"
|
|
|
930
930
|
function M(e) {
|
|
931
931
|
return n.modelValue?.position?.x === e.x && n.modelValue?.position?.y === e.y;
|
|
932
932
|
}
|
|
933
|
-
let F = _(), { canBrowse: I, isUploading: L, showOverlay: ee, openMediaBrowser:
|
|
933
|
+
let F = _(), { canBrowse: I, isUploading: L, showOverlay: ee, openMediaBrowser: R } = Pe({
|
|
934
934
|
target: F,
|
|
935
|
-
blocked: () =>
|
|
935
|
+
blocked: () => U(u.value, l),
|
|
936
936
|
apply: (e) => D(e.url, Se(e.width, e.height))
|
|
937
937
|
});
|
|
938
938
|
return (t, n) => (a(), v("div", gn, [b("div", null, [e.hideLabel ? g("", !0) : (a(), v("label", {
|
|
939
939
|
key: 0,
|
|
940
|
-
class: o(h(
|
|
940
|
+
class: o(h(V))
|
|
941
941
|
}, r(h(c).blockSettings.backgroundImage), 3)), b("div", {
|
|
942
942
|
ref_key: "dropZoneRef",
|
|
943
943
|
ref: F,
|
|
@@ -964,7 +964,7 @@ var gn = { class: "tpl:space-y-3.5" }, _n = ["data-testid"], vn = ["data-testid"
|
|
|
964
964
|
color: "var(--tpl-primary)",
|
|
965
965
|
"background-color": "var(--tpl-bg)"
|
|
966
966
|
},
|
|
967
|
-
onClick: n[0] ||= (...e) => h(
|
|
967
|
+
onClick: n[0] ||= (...e) => h(R) && h(R)(...e)
|
|
968
968
|
}, [p(h(Ie), {
|
|
969
969
|
size: 14,
|
|
970
970
|
"stroke-width": 1.5
|
|
@@ -973,12 +973,12 @@ var gn = { class: "tpl:space-y-3.5" }, _n = ["data-testid"], vn = ["data-testid"
|
|
|
973
973
|
e.heroMode ? g("", !0) : (a(), v("div", {
|
|
974
974
|
key: 0,
|
|
975
975
|
"data-testid": `${e.testidPrefix}-bg-size`
|
|
976
|
-
}, [b("label", { class: o(h(
|
|
976
|
+
}, [b("label", { class: o(h(V)) }, r(h(c).blockSettings.backgroundSize), 3), p($, {
|
|
977
977
|
options: k.value,
|
|
978
978
|
"model-value": e.modelValue.size,
|
|
979
979
|
"onUpdate:modelValue": n[1] ||= (e) => O({ size: e })
|
|
980
980
|
}, null, 8, ["options", "model-value"])], 8, yn)),
|
|
981
|
-
b("div", null, [b("label", { class: o(h(
|
|
981
|
+
b("div", null, [b("label", { class: o(h(V)) }, r(h(c).blockSettings.backgroundPosition), 3), b("div", {
|
|
982
982
|
role: "group",
|
|
983
983
|
"aria-label": h(c).blockSettings.backgroundPosition,
|
|
984
984
|
"data-testid": `${e.testidPrefix}-bg-position`,
|
|
@@ -1056,7 +1056,7 @@ var gn = { class: "tpl:space-y-3.5" }, _n = ["data-testid"], vn = ["data-testid"
|
|
|
1056
1056
|
function n(e) {
|
|
1057
1057
|
return typeof e == "number" && Number.isFinite(e) && e >= 1;
|
|
1058
1058
|
}
|
|
1059
|
-
let i = e, s = t, { t: c } =
|
|
1059
|
+
let i = e, s = t, { t: c } = H(), l = E(Le, ce.liquid), u = E(Xe, null), d = E(He, void 0), f = mn(), _ = m(() => typeof i.section.backgroundImage?.url == "string" ? i.section.backgroundImage.url : ""), y = m(() => _.value.trim() !== ""), x = m(() => U(_.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 : Nn), O = m(() => [
|
|
1060
1060
|
{
|
|
1061
1061
|
value: "fit",
|
|
1062
1062
|
label: c.blockSettings.heroHeightFit
|
|
@@ -1083,7 +1083,7 @@ var gn = { class: "tpl:space-y-3.5" }, _n = ["data-testid"], vn = ["data-testid"
|
|
|
1083
1083
|
value: "bottom",
|
|
1084
1084
|
label: c.blockSettings.heroAlignBottom
|
|
1085
1085
|
}
|
|
1086
|
-
]), A = m(() => T.value === "image" && y.value && !x.value &&
|
|
1086
|
+
]), A = m(() => T.value === "image" && y.value && !x.value && le(i.section.backgroundImage) === null);
|
|
1087
1087
|
function j() {
|
|
1088
1088
|
return (u ? Ne(u.content.value, i.section.id, d, u.activeLocale?.value ?? void 0) : null) ?? ke(u?.state.content.settings);
|
|
1089
1089
|
}
|
|
@@ -1101,7 +1101,7 @@ var gn = { class: "tpl:space-y-3.5" }, _n = ["data-testid"], vn = ["data-testid"
|
|
|
1101
1101
|
s("update", { hero: void 0 });
|
|
1102
1102
|
return;
|
|
1103
1103
|
}
|
|
1104
|
-
let n =
|
|
1104
|
+
let n = le(i.section.backgroundImage), r = n === null ? Nn : Math.round(j() * n);
|
|
1105
1105
|
s("update", { hero: {
|
|
1106
1106
|
height: r,
|
|
1107
1107
|
verticalAlign: t
|
|
@@ -1109,7 +1109,7 @@ var gn = { class: "tpl:space-y-3.5" }, _n = ["data-testid"], vn = ["data-testid"
|
|
|
1109
1109
|
}
|
|
1110
1110
|
async function N() {
|
|
1111
1111
|
let e = i.section.backgroundImage;
|
|
1112
|
-
if (!e || !y.value || x.value ||
|
|
1112
|
+
if (!e || !y.value || x.value || le(e) !== null) return;
|
|
1113
1113
|
let t = e.url, n = await f(t), r = i.section.backgroundImage;
|
|
1114
1114
|
n && r && r.url === t && s("update", { backgroundImage: {
|
|
1115
1115
|
...r,
|
|
@@ -1130,7 +1130,7 @@ var gn = { class: "tpl:space-y-3.5" }, _n = ["data-testid"], vn = ["data-testid"
|
|
|
1130
1130
|
}
|
|
1131
1131
|
return (e, t) => !C.value && S.value ? (a(), v("p", Dn, r(h(c).section.heroNeedsOneColumn), 1)) : C.value && (y.value || S.value) ? (a(), v("div", On, [
|
|
1132
1132
|
b("div", kn, [
|
|
1133
|
-
b("label", { class: o(h(
|
|
1133
|
+
b("label", { class: o(h(V)) }, r(h(c).blockSettings.heroHeight), 3),
|
|
1134
1134
|
p($, {
|
|
1135
1135
|
options: O.value,
|
|
1136
1136
|
"model-value": T.value,
|
|
@@ -1146,7 +1146,7 @@ var gn = { class: "tpl:space-y-3.5" }, _n = ["data-testid"], vn = ["data-testid"
|
|
|
1146
1146
|
testid: "section-hero-height-px",
|
|
1147
1147
|
"onUpdate:modelValue": P
|
|
1148
1148
|
}, null, 8, ["model-value"])) : g("", !0),
|
|
1149
|
-
S.value ? (a(), v("div", Mn, [b("label", { class: o(h(
|
|
1149
|
+
S.value ? (a(), v("div", Mn, [b("label", { class: o(h(V)) }, r(h(c).blockSettings.heroAlign), 3), p($, {
|
|
1150
1150
|
options: k.value,
|
|
1151
1151
|
"model-value": S.value.verticalAlign,
|
|
1152
1152
|
"onUpdate:modelValue": F
|
|
@@ -1175,10 +1175,10 @@ function Rn(e) {
|
|
|
1175
1175
|
return In(e.styles.backgroundColor) || !!e.backgroundImage;
|
|
1176
1176
|
}
|
|
1177
1177
|
function zn(e) {
|
|
1178
|
-
return e.fullWidth !== !0 || Ln(e.padding) ||
|
|
1178
|
+
return e.fullWidth !== !0 || Ln(e.padding) || he(e.borderRadius) !== null ? !1 : Object.keys(e).every((e) => Fn.has(e));
|
|
1179
1179
|
}
|
|
1180
1180
|
function Bn(e, t = {}) {
|
|
1181
|
-
return e.wrapper ? !1 : t.sectionWrapper === !1 || t.layout !== void 0 &&
|
|
1181
|
+
return e.wrapper ? !1 : t.sectionWrapper === !1 || t.layout !== void 0 && fe(t.layout);
|
|
1182
1182
|
}
|
|
1183
1183
|
function Vn(e) {
|
|
1184
1184
|
let t = {};
|
|
@@ -1249,35 +1249,35 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1249
1249
|
},
|
|
1250
1250
|
emits: ["update"],
|
|
1251
1251
|
setup(e, { emit: n }) {
|
|
1252
|
-
let c = e, f = n, { t: x, format: T } =
|
|
1253
|
-
sectionWrapper:
|
|
1254
|
-
layout:
|
|
1255
|
-
})),
|
|
1256
|
-
function
|
|
1252
|
+
let c = e, f = n, { t: x, format: T } = H(), D = E(Xe, null), k = E(Be, void 0), j = m(() => D?.activeLocale?.value), N = m(() => !!(j.value && D?.selectedBlock?.value?.l10n?.[j.value]?.hidden)), I = E(We, []), L = E(Ye, !1), R = E(He, void 0), z = E(Ve, 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), V = m(() => c.block.type === "section" && Bn(c.block, {
|
|
1253
|
+
sectionWrapper: z,
|
|
1254
|
+
layout: R
|
|
1255
|
+
})), re = m(() => c.block.type === "wrapper" ? "layout-wrapper-full-width" : "section-background-full-width");
|
|
1256
|
+
function ie(e) {
|
|
1257
1257
|
c.block.type === "wrapper" ? f("update", { fullWidth: e }) : c.block.type === "section" && f("update", Un(c.block, e));
|
|
1258
1258
|
}
|
|
1259
|
-
let
|
|
1259
|
+
let ae = m(() => c.block.type === "section" && c.block.wrapper?.fullWidth === !0), ce = m(() => ae.value ? "wrapper.backgroundColor" : "styles.backgroundColor"), le = m(() => ae.value ? "wrapper.backgroundImage" : "backgroundImage"), ue = m(() => {
|
|
1260
1260
|
let e = c.block;
|
|
1261
1261
|
return e.type === "section" && e.wrapper?.fullWidth === !0 ? e.wrapper.backgroundColor ?? "" : e.styles.backgroundColor ?? "";
|
|
1262
1262
|
}), de = m(() => {
|
|
1263
1263
|
let e = c.block;
|
|
1264
1264
|
return e.type === "section" && e.wrapper?.fullWidth === !0 ? e.wrapper.backgroundImage : e.type === "section" ? e.backgroundImage : void 0;
|
|
1265
1265
|
});
|
|
1266
|
-
function
|
|
1266
|
+
function U(e, t) {
|
|
1267
1267
|
f("update", { wrapper: {
|
|
1268
1268
|
...e,
|
|
1269
1269
|
...t
|
|
1270
1270
|
} });
|
|
1271
1271
|
}
|
|
1272
|
-
function
|
|
1272
|
+
function fe(e) {
|
|
1273
1273
|
let t = c.block;
|
|
1274
|
-
t.type === "section" && t.wrapper?.fullWidth === !0 ?
|
|
1274
|
+
t.type === "section" && t.wrapper?.fullWidth === !0 ? U(t.wrapper, { backgroundColor: e }) : Ee("backgroundColor", e);
|
|
1275
1275
|
}
|
|
1276
|
-
function
|
|
1276
|
+
function pe(e) {
|
|
1277
1277
|
let t = c.block;
|
|
1278
|
-
t.type === "section" && t.wrapper?.fullWidth === !0 ?
|
|
1278
|
+
t.type === "section" && t.wrapper?.fullWidth === !0 ? U(t.wrapper, { backgroundImage: e }) : f("update", { backgroundImage: e });
|
|
1279
1279
|
}
|
|
1280
|
-
let
|
|
1280
|
+
let me = E(ze, null), he = we(), W = _(!1), G = l(/* @__PURE__ */ new Set()), K = _(!1), q = _(""), J = _(""), ge = [{
|
|
1281
1281
|
key: "desktop",
|
|
1282
1282
|
icon: Qe,
|
|
1283
1283
|
labelKey: "showOnDesktop"
|
|
@@ -1287,9 +1287,9 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1287
1287
|
labelKey: "showOnMobile"
|
|
1288
1288
|
}];
|
|
1289
1289
|
function Y(e) {
|
|
1290
|
-
|
|
1290
|
+
G.has(e) ? G.delete(e) : G.add(e);
|
|
1291
1291
|
}
|
|
1292
|
-
let X = m(() => !!
|
|
1292
|
+
let X = m(() => !!me || I.length > 0 || L);
|
|
1293
1293
|
function ve(e) {
|
|
1294
1294
|
if (typeof e != "object" || !e || Array.isArray(e)) return !1;
|
|
1295
1295
|
let t = e;
|
|
@@ -1300,11 +1300,11 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1300
1300
|
c.block.id === e && (n === void 0 || n === e) ? f("update", { displayCondition: t }) : D && D.findBlockLocation(e) && D.updateBlock(e, { displayCondition: t });
|
|
1301
1301
|
}
|
|
1302
1302
|
async function ye() {
|
|
1303
|
-
if (!
|
|
1304
|
-
let e = c.block.id, t = D?.activeLocale?.value ?? null, n =
|
|
1305
|
-
|
|
1303
|
+
if (!me || W.value) return;
|
|
1304
|
+
let e = c.block.id, t = D?.activeLocale?.value ?? null, n = se(C(c.block)), r = c.block.displayCondition ? se(C(c.block.displayCondition)) : void 0;
|
|
1305
|
+
W.value = !0;
|
|
1306
1306
|
try {
|
|
1307
|
-
let i = await
|
|
1307
|
+
let i = await me(r ? {
|
|
1308
1308
|
current: r,
|
|
1309
1309
|
block: n
|
|
1310
1310
|
} : { block: n });
|
|
@@ -1313,9 +1313,9 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1313
1313
|
et.warn("displayConditions.onRequest resolved a value without string label, before and after — ignoring it.");
|
|
1314
1314
|
return;
|
|
1315
1315
|
}
|
|
1316
|
-
Z(e,
|
|
1316
|
+
Z(e, se(i));
|
|
1317
1317
|
} finally {
|
|
1318
|
-
he.alive && (
|
|
1318
|
+
he.alive && (W.value = !1);
|
|
1319
1319
|
}
|
|
1320
1320
|
}
|
|
1321
1321
|
let be = m(() => c.block.displayCondition ? !I.some((e) => e.label === c.block.displayCondition?.label) : !1);
|
|
@@ -1347,7 +1347,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1347
1347
|
e[n] || (e[n] = []), e[n].push(t);
|
|
1348
1348
|
}
|
|
1349
1349
|
return e;
|
|
1350
|
-
}), Te = m(() => c.block.type === "section" &&
|
|
1350
|
+
}), Te = m(() => c.block.type === "section" && oe(c.block)?.applied === !0);
|
|
1351
1351
|
function Ee(e, t) {
|
|
1352
1352
|
f("update", { styles: {
|
|
1353
1353
|
...c.block.styles,
|
|
@@ -1367,7 +1367,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1367
1367
|
return (t, n) => (a(), v("div", { class: o(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1368
1368
|
p(En, {
|
|
1369
1369
|
title: h(x).blockSettings.spacing,
|
|
1370
|
-
open:
|
|
1370
|
+
open: G.has("spacing"),
|
|
1371
1371
|
"no-border": e.isFirstSection,
|
|
1372
1372
|
onToggle: n[1] ||= (e) => Y("spacing")
|
|
1373
1373
|
}, {
|
|
@@ -1385,7 +1385,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1385
1385
|
]),
|
|
1386
1386
|
p(En, {
|
|
1387
1387
|
title: h(x).blockSettings.background,
|
|
1388
|
-
open:
|
|
1388
|
+
open: G.has("bg"),
|
|
1389
1389
|
"header-test-id": "block-settings-background",
|
|
1390
1390
|
onToggle: n[4] ||= (e) => Y("bg")
|
|
1391
1391
|
}, {
|
|
@@ -1397,24 +1397,24 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1397
1397
|
default: u(() => [p(M, {
|
|
1398
1398
|
"model-value": ue.value,
|
|
1399
1399
|
"allow-transparent": "",
|
|
1400
|
-
"onUpdate:modelValue":
|
|
1400
|
+
"onUpdate:modelValue": fe
|
|
1401
1401
|
}, null, 8, ["model-value"])]),
|
|
1402
1402
|
_: 1
|
|
1403
1403
|
}, 8, ["path", "label"]),
|
|
1404
|
-
|
|
1404
|
+
B.value ? (a(), w(A, {
|
|
1405
1405
|
key: 0,
|
|
1406
1406
|
path: e.block.type === "section" ? "wrapper.fullWidth" : "fullWidth",
|
|
1407
1407
|
label: h(x).blockSettings.fullWidthBackground
|
|
1408
1408
|
}, {
|
|
1409
1409
|
"label-actions": u(({ controlId: e }) => [p(P, {
|
|
1410
|
-
"data-testid":
|
|
1410
|
+
"data-testid": re.value,
|
|
1411
1411
|
"control-id": e,
|
|
1412
1412
|
"hide-label": "",
|
|
1413
1413
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1414
|
-
"model-value":
|
|
1415
|
-
disabled:
|
|
1414
|
+
"model-value": te.value,
|
|
1415
|
+
disabled: V.value,
|
|
1416
1416
|
label: h(x).blockSettings.fullWidthBackground,
|
|
1417
|
-
"onUpdate:modelValue":
|
|
1417
|
+
"onUpdate:modelValue": ie
|
|
1418
1418
|
}, null, 8, [
|
|
1419
1419
|
"data-testid",
|
|
1420
1420
|
"control-id",
|
|
@@ -1436,11 +1436,11 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1436
1436
|
"testid-prefix": "section",
|
|
1437
1437
|
measure: "",
|
|
1438
1438
|
"hero-mode": Te.value,
|
|
1439
|
-
"onUpdate:modelValue":
|
|
1439
|
+
"onUpdate:modelValue": pe
|
|
1440
1440
|
}, null, 8, ["model-value", "hero-mode"])]),
|
|
1441
1441
|
_: 1
|
|
1442
1442
|
}, 8, ["path", "label"])) : g("", !0),
|
|
1443
|
-
|
|
1443
|
+
ae.value ? (a(), w(A, {
|
|
1444
1444
|
key: 2,
|
|
1445
1445
|
path: "styles.backgroundColor",
|
|
1446
1446
|
label: h(x).blockSettings.contentBackground
|
|
@@ -1469,7 +1469,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1469
1469
|
}, 8, ["title", "open"]),
|
|
1470
1470
|
p(En, {
|
|
1471
1471
|
title: h(x).blockSettings.display,
|
|
1472
|
-
open:
|
|
1472
|
+
open: G.has("display"),
|
|
1473
1473
|
onToggle: n[6] ||= (e) => Y("display")
|
|
1474
1474
|
}, {
|
|
1475
1475
|
default: u(() => [b("div", Gn, [j.value && h(k) ? (a(), w(P, {
|
|
@@ -1513,23 +1513,23 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1513
1513
|
key: 0,
|
|
1514
1514
|
"header-test-id": "display-condition-section",
|
|
1515
1515
|
title: h(x).blockSettings.displayCondition,
|
|
1516
|
-
open:
|
|
1516
|
+
open: G.has("condition"),
|
|
1517
1517
|
onToggle: n[11] ||= (e) => Y("condition")
|
|
1518
1518
|
}, {
|
|
1519
|
-
default: u(() => [h(
|
|
1519
|
+
default: u(() => [h(me) ? (a(), v("div", qn, [e.block.displayCondition ? (a(), v(S, { key: 0 }, [
|
|
1520
1520
|
b("p", Jn, r(e.block.displayCondition.label), 1),
|
|
1521
1521
|
e.block.displayCondition.description ? (a(), v("p", Yn, r(e.block.displayCondition.description), 1)) : g("", !0),
|
|
1522
1522
|
b("div", Xn, [b("button", {
|
|
1523
1523
|
type: "button",
|
|
1524
1524
|
"data-testid": "display-condition-edit",
|
|
1525
1525
|
class: o(h(F)),
|
|
1526
|
-
disabled:
|
|
1526
|
+
disabled: W.value,
|
|
1527
1527
|
onClick: ye
|
|
1528
1528
|
}, r(h(x).blockSettings.editCondition), 11, Zn), b("button", {
|
|
1529
1529
|
type: "button",
|
|
1530
1530
|
"data-testid": "display-condition-remove",
|
|
1531
1531
|
class: o(h(F)),
|
|
1532
|
-
disabled:
|
|
1532
|
+
disabled: W.value,
|
|
1533
1533
|
onClick: n[7] ||= (e) => f("update", { displayCondition: void 0 })
|
|
1534
1534
|
}, r(h(x).blockSettings.removeCondition), 11, Qn)])
|
|
1535
1535
|
], 64)) : (a(), v("button", {
|
|
@@ -1537,7 +1537,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1537
1537
|
type: "button",
|
|
1538
1538
|
"data-testid": "display-condition-request",
|
|
1539
1539
|
class: o(h(F)),
|
|
1540
|
-
disabled:
|
|
1540
|
+
disabled: W.value,
|
|
1541
1541
|
onClick: ye
|
|
1542
1542
|
}, r(h(x).blockSettings.addCondition), 11, $n))])) : (a(), v("div", er, [p(A, {
|
|
1543
1543
|
path: "displayCondition",
|
|
@@ -1579,12 +1579,12 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1579
1579
|
b("div", null, [b("label", cr, r(h(x).blockSettings.customConditionBefore), 1), d(b("textarea", {
|
|
1580
1580
|
"onUpdate:modelValue": n[9] ||= (e) => q.value = e,
|
|
1581
1581
|
rows: "2",
|
|
1582
|
-
class: o(h(
|
|
1582
|
+
class: o(h(ne))
|
|
1583
1583
|
}, null, 2), [[O, q.value]])]),
|
|
1584
1584
|
b("div", null, [b("label", lr, r(h(x).blockSettings.customConditionAfter), 1), d(b("textarea", {
|
|
1585
1585
|
"onUpdate:modelValue": n[10] ||= (e) => J.value = e,
|
|
1586
1586
|
rows: "2",
|
|
1587
|
-
class: o(h(
|
|
1587
|
+
class: o(h(ne))
|
|
1588
1588
|
}, null, 2), [[O, J.value]])]),
|
|
1589
1589
|
b("div", ur, [b("button", {
|
|
1590
1590
|
type: "button",
|
|
@@ -1605,7 +1605,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1605
1605
|
readOnly: { type: Boolean }
|
|
1606
1606
|
},
|
|
1607
1607
|
setup(e) {
|
|
1608
|
-
let { t } =
|
|
1608
|
+
let { t } = H();
|
|
1609
1609
|
return (n, i) => (a(), v("span", null, [
|
|
1610
1610
|
y(r(e.label) + " ", 1),
|
|
1611
1611
|
e.readOnly ? (a(), v("span", {
|
|
@@ -1634,7 +1634,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1634
1634
|
},
|
|
1635
1635
|
emits: ["update:modelValue"],
|
|
1636
1636
|
setup(e, { emit: t }) {
|
|
1637
|
-
let n = t, { t: i } =
|
|
1637
|
+
let n = t, { t: i } = H();
|
|
1638
1638
|
return (t, o) => (a(), v("div", {
|
|
1639
1639
|
class: "tpl:mb-3.5",
|
|
1640
1640
|
title: e.readOnly ? h(i).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
@@ -1674,7 +1674,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1674
1674
|
setup(e) {
|
|
1675
1675
|
return (t, r) => (a(), v("div", wr, [e.hideLabel ? g("", !0) : (a(), v("label", {
|
|
1676
1676
|
key: 0,
|
|
1677
|
-
class: o(h(
|
|
1677
|
+
class: o(h(V))
|
|
1678
1678
|
}, [p(xr, {
|
|
1679
1679
|
label: e.label,
|
|
1680
1680
|
required: e.required,
|
|
@@ -1695,7 +1695,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1695
1695
|
},
|
|
1696
1696
|
emits: ["update:modelValue"],
|
|
1697
1697
|
setup(e, { emit: t }) {
|
|
1698
|
-
let n = e, r = t, { t: i } =
|
|
1698
|
+
let n = e, r = t, { t: i } = H(), o = E(Je, it), s = m(() => Fe(n.field, o));
|
|
1699
1699
|
return (t, n) => (a(), w(Tr, {
|
|
1700
1700
|
"hide-label": e.hideLabel,
|
|
1701
1701
|
label: e.field.label,
|
|
@@ -1740,7 +1740,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1740
1740
|
},
|
|
1741
1741
|
emits: ["update:modelValue"],
|
|
1742
1742
|
setup(e, { emit: t }) {
|
|
1743
|
-
let n = e, i = t, { t: s } =
|
|
1743
|
+
let n = e, i = t, { t: s } = H(), c = _(), { canBrowse: l, isUploading: d, showOverlay: f, openMediaBrowser: m } = Pe({
|
|
1744
1744
|
target: c,
|
|
1745
1745
|
blocked: () => !!n.readOnly,
|
|
1746
1746
|
apply: (e) => i("update:modelValue", e.url)
|
|
@@ -1763,7 +1763,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1763
1763
|
e.readOnly ? (a(), v("input", {
|
|
1764
1764
|
key: 1,
|
|
1765
1765
|
type: "url",
|
|
1766
|
-
class: o([h(
|
|
1766
|
+
class: o([h(B), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1767
1767
|
value: e.modelValue,
|
|
1768
1768
|
placeholder: e.field.placeholder || "https://...",
|
|
1769
1769
|
disabled: "",
|
|
@@ -1771,7 +1771,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1771
1771
|
}, null, 10, Dr)) : (a(), v("input", {
|
|
1772
1772
|
key: 2,
|
|
1773
1773
|
type: "url",
|
|
1774
|
-
class: o(h(
|
|
1774
|
+
class: o(h(B)),
|
|
1775
1775
|
value: e.modelValue,
|
|
1776
1776
|
placeholder: e.field.placeholder || "https://...",
|
|
1777
1777
|
onInput: n[0] ||= (e) => i("update:modelValue", e.target.value)
|
|
@@ -1811,7 +1811,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1811
1811
|
},
|
|
1812
1812
|
emits: ["update:modelValue"],
|
|
1813
1813
|
setup(e, { emit: t }) {
|
|
1814
|
-
let n = t, { t: r } =
|
|
1814
|
+
let n = t, { t: r } = H();
|
|
1815
1815
|
return (t, i) => (a(), w(Tr, {
|
|
1816
1816
|
"hide-label": e.hideLabel,
|
|
1817
1817
|
label: e.field.label,
|
|
@@ -1820,7 +1820,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1820
1820
|
}, {
|
|
1821
1821
|
default: u(() => [b("input", {
|
|
1822
1822
|
type: "number",
|
|
1823
|
-
class: o([h(
|
|
1823
|
+
class: o([h(B), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1824
1824
|
value: e.modelValue,
|
|
1825
1825
|
placeholder: e.field.placeholder,
|
|
1826
1826
|
min: e.field.min,
|
|
@@ -1854,7 +1854,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1854
1854
|
},
|
|
1855
1855
|
emits: ["update:modelValue"],
|
|
1856
1856
|
setup(e, { emit: t }) {
|
|
1857
|
-
let n = e, c = t, { t: l, format: d } =
|
|
1857
|
+
let n = e, c = t, { t: l, format: d } = H(), 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
1858
|
function C() {
|
|
1859
1859
|
if (!_.value || n.readOnly) return;
|
|
1860
1860
|
let e = {};
|
|
@@ -1907,7 +1907,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1907
1907
|
_.value && !e.readOnly ? (a(), v("button", {
|
|
1908
1908
|
key: 0,
|
|
1909
1909
|
type: "button",
|
|
1910
|
-
class: o(h(
|
|
1910
|
+
class: o(h(R)),
|
|
1911
1911
|
onClick: C
|
|
1912
1912
|
}, [p(h(Z), {
|
|
1913
1913
|
size: 14,
|
|
@@ -1938,7 +1938,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1938
1938
|
},
|
|
1939
1939
|
emits: ["update:modelValue"],
|
|
1940
1940
|
setup(e, { emit: t }) {
|
|
1941
|
-
let n = t, { t: i } =
|
|
1941
|
+
let n = t, { t: i } = H();
|
|
1942
1942
|
return (t, c) => (a(), w(Tr, {
|
|
1943
1943
|
"hide-label": e.hideLabel,
|
|
1944
1944
|
label: e.field.label,
|
|
@@ -1946,7 +1946,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1946
1946
|
"read-only": e.readOnly
|
|
1947
1947
|
}, {
|
|
1948
1948
|
default: u(() => [b("select", {
|
|
1949
|
-
class: o([h(
|
|
1949
|
+
class: o([h(B), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1950
1950
|
value: e.modelValue,
|
|
1951
1951
|
disabled: e.readOnly,
|
|
1952
1952
|
title: e.readOnly ? h(i).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
@@ -1977,7 +1977,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1977
1977
|
},
|
|
1978
1978
|
emits: ["update:modelValue"],
|
|
1979
1979
|
setup(e, { emit: t }) {
|
|
1980
|
-
let n = t, { t: r } =
|
|
1980
|
+
let n = t, { t: r } = H();
|
|
1981
1981
|
return (t, i) => (a(), w(Tr, {
|
|
1982
1982
|
"hide-label": e.hideLabel,
|
|
1983
1983
|
label: e.field.label,
|
|
@@ -1987,7 +1987,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
1987
1987
|
default: u(() => [e.readOnly ? (a(), v("input", {
|
|
1988
1988
|
key: 0,
|
|
1989
1989
|
type: "text",
|
|
1990
|
-
class: o([h(
|
|
1990
|
+
class: o([h(B), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1991
1991
|
value: e.modelValue,
|
|
1992
1992
|
placeholder: e.field.placeholder,
|
|
1993
1993
|
disabled: "",
|
|
@@ -2022,7 +2022,7 @@ var Gn = { class: "tpl:space-y-2" }, Kn = { class: "tpl:flex tpl:items-center tp
|
|
|
2022
2022
|
},
|
|
2023
2023
|
emits: ["update:modelValue"],
|
|
2024
2024
|
setup(e, { emit: t }) {
|
|
2025
|
-
let n = t, { t: r } =
|
|
2025
|
+
let n = t, { t: r } = H();
|
|
2026
2026
|
return (t, i) => (a(), w(Tr, {
|
|
2027
2027
|
"hide-label": e.hideLabel,
|
|
2028
2028
|
label: e.field.label,
|
|
@@ -2086,7 +2086,7 @@ var Jr = {
|
|
|
2086
2086
|
props: { block: {} },
|
|
2087
2087
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
2088
2088
|
setup(e, { emit: t }) {
|
|
2089
|
-
let n = e, o = t, { t: c } =
|
|
2089
|
+
let n = e, o = t, { t: c } = H(), l = E(qe, []), d = m(() => l.find((e) => e.type === n.block.customType)), f = m(() => n.block), { isFetching: _, fetchError: x, fetch: C, hasDataSource: T, needsFetch: D } = be({
|
|
2090
2090
|
definition: d,
|
|
2091
2091
|
block: f,
|
|
2092
2092
|
onUpdate: (e, t) => {
|
|
@@ -2155,7 +2155,7 @@ var Jr = {
|
|
|
2155
2155
|
props: { block: {} },
|
|
2156
2156
|
emits: ["update"],
|
|
2157
2157
|
setup(e, { emit: t }) {
|
|
2158
|
-
let n = t, { t: r } =
|
|
2158
|
+
let n = t, { t: r } = H();
|
|
2159
2159
|
function i(e, t) {
|
|
2160
2160
|
n("update", { [e]: t });
|
|
2161
2161
|
}
|
|
@@ -2203,7 +2203,7 @@ var Jr = {
|
|
|
2203
2203
|
}, {
|
|
2204
2204
|
default: u(() => [b("div", ri, [b("input", {
|
|
2205
2205
|
type: "number",
|
|
2206
|
-
class: o(h(
|
|
2206
|
+
class: o(h(z)),
|
|
2207
2207
|
value: e.block.thickness,
|
|
2208
2208
|
min: "1",
|
|
2209
2209
|
max: "10",
|
|
@@ -2218,7 +2218,7 @@ var Jr = {
|
|
|
2218
2218
|
props: { block: {} },
|
|
2219
2219
|
emits: ["update"],
|
|
2220
2220
|
setup(e, { emit: t }) {
|
|
2221
|
-
let n = t, { t: i } =
|
|
2221
|
+
let n = t, { t: i } = H();
|
|
2222
2222
|
return (t, s) => (a(), w(A, {
|
|
2223
2223
|
label: h(i).html.content,
|
|
2224
2224
|
class: "tpl:mb-3.5",
|
|
@@ -2228,7 +2228,7 @@ var Jr = {
|
|
|
2228
2228
|
value: e.block.content,
|
|
2229
2229
|
placeholder: "<div>...</div>",
|
|
2230
2230
|
rows: "10",
|
|
2231
|
-
class: o(h(
|
|
2231
|
+
class: o(h(ne)),
|
|
2232
2232
|
onInput: s[0] ||= (e) => n("update", { content: e.target.value })
|
|
2233
2233
|
}, null, 42, oi), b("p", si, [p(h(ot), {
|
|
2234
2234
|
size: 12,
|
|
@@ -2319,7 +2319,7 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2319
2319
|
props: { block: {} },
|
|
2320
2320
|
emits: ["update"],
|
|
2321
2321
|
setup(e, { emit: t }) {
|
|
2322
|
-
let n = e, i = t, { t: s, format: c } =
|
|
2322
|
+
let n = e, i = t, { t: s, format: c } = H(), l = E(Le, ce.liquid), d = E(Xe, null), f = d ? st(d) : null, C = E(He, void 0), T = _(!1), D = _(!1), { start: O } = ct(() => {
|
|
2323
2323
|
T.value = !1, D.value = !1;
|
|
2324
2324
|
}, 1e3, { immediate: !1 }), k = [
|
|
2325
2325
|
300,
|
|
@@ -2338,43 +2338,43 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2338
2338
|
(typeof e != "number" || k.includes(e)) && i("update", G.widthUpdates(Ai));
|
|
2339
2339
|
} else i("update", G.widthUpdates(e === "full" ? "full" : Number(e)));
|
|
2340
2340
|
}
|
|
2341
|
-
function
|
|
2341
|
+
function R(e) {
|
|
2342
2342
|
I("height", e === "custom" ? ji : void 0);
|
|
2343
2343
|
}
|
|
2344
|
-
function
|
|
2344
|
+
function te(e) {
|
|
2345
2345
|
I("fluidOnMobile", e === "always" || e !== "never" && void 0);
|
|
2346
2346
|
}
|
|
2347
|
-
function
|
|
2347
|
+
function V(e) {
|
|
2348
2348
|
let t = Number(e);
|
|
2349
2349
|
!Number.isFinite(t) || t <= 0 || I("height", t);
|
|
2350
2350
|
}
|
|
2351
|
-
function
|
|
2352
|
-
I("borderRadius",
|
|
2351
|
+
function ne(e) {
|
|
2352
|
+
I("borderRadius", he(e) === null ? void 0 : e);
|
|
2353
2353
|
}
|
|
2354
|
-
function
|
|
2354
|
+
function re(e) {
|
|
2355
2355
|
let t = Number(e);
|
|
2356
2356
|
!Number.isFinite(t) || t <= 0 || i("update", G.widthUpdates(t));
|
|
2357
2357
|
}
|
|
2358
|
-
function
|
|
2358
|
+
function ie(e) {
|
|
2359
2359
|
e !== n.block.src && i("update", {
|
|
2360
2360
|
src: e,
|
|
2361
2361
|
...Q(null)
|
|
2362
2362
|
});
|
|
2363
2363
|
}
|
|
2364
|
-
function
|
|
2364
|
+
function ae(e) {
|
|
2365
2365
|
i("update", {
|
|
2366
2366
|
src: e.url,
|
|
2367
2367
|
...Q(Se(e.width, e.height))
|
|
2368
2368
|
}), e.alt && (I("alt", e.alt), D.value = !0), T.value = !0, O();
|
|
2369
2369
|
}
|
|
2370
|
-
let
|
|
2371
|
-
target:
|
|
2372
|
-
blocked:
|
|
2373
|
-
apply:
|
|
2374
|
-
}),
|
|
2370
|
+
let oe = _(), se = m(() => U(n.block.src, l)), { canBrowse: le, isUploading: ue, showOverlay: de, openMediaBrowser: fe } = Pe({
|
|
2371
|
+
target: oe,
|
|
2372
|
+
blocked: se,
|
|
2373
|
+
apply: ae
|
|
2374
|
+
}), pe = xe(() => se.value || !n.block.src || Ee(n.block) ? void 0 : n.block.src), me = pn(() => pe.value), W = m(() => f ? De(f.content.value, n.block.id, C) : null), G = li({
|
|
2375
2375
|
block: () => n.block,
|
|
2376
2376
|
room: () => W.value,
|
|
2377
|
-
measured: () =>
|
|
2377
|
+
measured: () => me.value
|
|
2378
2378
|
}), { available: K, locked: q, derivedHeight: J, cappedHeight: ge } = G;
|
|
2379
2379
|
function Y() {
|
|
2380
2380
|
let e = G.setLocked(!q.value);
|
|
@@ -2394,10 +2394,10 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2394
2394
|
}, {
|
|
2395
2395
|
default: u(() => [b("div", {
|
|
2396
2396
|
ref_key: "dropZoneRef",
|
|
2397
|
-
ref:
|
|
2397
|
+
ref: oe,
|
|
2398
2398
|
class: "tpl:relative"
|
|
2399
2399
|
}, [
|
|
2400
|
-
h(
|
|
2400
|
+
h(de) ? (a(), w(Te, {
|
|
2401
2401
|
key: 0,
|
|
2402
2402
|
uploading: h(ue)
|
|
2403
2403
|
}, null, 8, ["uploading"])) : g("", !0),
|
|
@@ -2406,7 +2406,7 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2406
2406
|
type: "url",
|
|
2407
2407
|
placeholder: h(s).image.imageUrlPlaceholder,
|
|
2408
2408
|
pulse: T.value,
|
|
2409
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
2409
|
+
"onUpdate:modelValue": n[0] ||= (e) => ie(e)
|
|
2410
2410
|
}, null, 8, [
|
|
2411
2411
|
"model-value",
|
|
2412
2412
|
"placeholder",
|
|
@@ -2420,7 +2420,7 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2420
2420
|
color: "var(--tpl-primary)",
|
|
2421
2421
|
"background-color": "var(--tpl-bg)"
|
|
2422
2422
|
},
|
|
2423
|
-
onClick: n[1] ||= (...e) => h(
|
|
2423
|
+
onClick: n[1] ||= (...e) => h(fe) && h(fe)(...e)
|
|
2424
2424
|
}, [p(h(Ie), {
|
|
2425
2425
|
size: 14,
|
|
2426
2426
|
"stroke-width": 1.5
|
|
@@ -2428,7 +2428,7 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2428
2428
|
], 512)]),
|
|
2429
2429
|
_: 1
|
|
2430
2430
|
}, 8, ["label"]),
|
|
2431
|
-
h(
|
|
2431
|
+
h(U)(e.block.src, h(l)) ? (a(), w(A, {
|
|
2432
2432
|
key: 0,
|
|
2433
2433
|
class: "tpl:mb-3.5",
|
|
2434
2434
|
path: "placeholderUrl"
|
|
@@ -2436,7 +2436,7 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2436
2436
|
label: u(() => [y(r(h(s).image.placeholderUrl) + " ", 1), b("span", ui, r(h(s).image.optional), 1)]),
|
|
2437
2437
|
default: u(() => [b("input", {
|
|
2438
2438
|
type: "url",
|
|
2439
|
-
class: o(h(
|
|
2439
|
+
class: o(h(B)),
|
|
2440
2440
|
value: e.block.placeholderUrl || "",
|
|
2441
2441
|
placeholder: h(s).image.placeholderUrlPlaceholder,
|
|
2442
2442
|
title: h(s).image.placeholderUrlTooltip,
|
|
@@ -2488,7 +2488,7 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2488
2488
|
path: "width"
|
|
2489
2489
|
}, {
|
|
2490
2490
|
default: u(() => [b("select", {
|
|
2491
|
-
class: o(h(
|
|
2491
|
+
class: o(h(B)),
|
|
2492
2492
|
"data-testid": "image-width-mode",
|
|
2493
2493
|
value: j.value,
|
|
2494
2494
|
onChange: n[5] ||= (e) => ee(e.target.value)
|
|
@@ -2501,10 +2501,10 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2501
2501
|
], 42, pi), j.value === "custom" ? (a(), v("div", gi, [b("input", {
|
|
2502
2502
|
type: "number",
|
|
2503
2503
|
"data-testid": "image-width-input",
|
|
2504
|
-
class: o(h(
|
|
2504
|
+
class: o(h(z)),
|
|
2505
2505
|
value: typeof e.block.width == "number" ? e.block.width : Ai,
|
|
2506
2506
|
min: "20",
|
|
2507
|
-
onInput: n[6] ||= (e) =>
|
|
2507
|
+
onInput: n[6] ||= (e) => re(e.target.value)
|
|
2508
2508
|
}, null, 42, _i), b("span", { class: o(h(L)) }, "px", 2)])) : g("", !0)]),
|
|
2509
2509
|
_: 1
|
|
2510
2510
|
}, 8, ["label"]),
|
|
@@ -2514,10 +2514,10 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2514
2514
|
path: "fluidOnMobile"
|
|
2515
2515
|
}, {
|
|
2516
2516
|
default: u(() => [b("select", {
|
|
2517
|
-
class: o(h(
|
|
2517
|
+
class: o(h(B)),
|
|
2518
2518
|
"data-testid": "image-fluid-on-mobile",
|
|
2519
2519
|
value: F.value,
|
|
2520
|
-
onChange: n[7] ||= (e) =>
|
|
2520
|
+
onChange: n[7] ||= (e) => te(e.target.value)
|
|
2521
2521
|
}, [
|
|
2522
2522
|
b("option", yi, r(h(s).image.fluidOnMobileAuto), 1),
|
|
2523
2523
|
b("option", bi, r(h(s).image.fluidOnMobileAlways), 1),
|
|
@@ -2534,7 +2534,7 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2534
2534
|
h(q) ? (a(), v(S, { key: 0 }, [b("div", Si, [b("input", {
|
|
2535
2535
|
type: "number",
|
|
2536
2536
|
"data-testid": "image-locked-height-input",
|
|
2537
|
-
class: o(h(
|
|
2537
|
+
class: o(h(z)),
|
|
2538
2538
|
value: _e.value ?? h(J) ?? "",
|
|
2539
2539
|
min: "1",
|
|
2540
2540
|
onInput: n[8] ||= (e) => X(e.target.value),
|
|
@@ -2542,18 +2542,18 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2542
2542
|
}, null, 42, Ci), b("span", { class: o(h(L)) }, "px", 2)]), h(ge) === null ? g("", !0) : (a(), v("p", wi, r(h(c)(h(s).image.heightCapped, { height: h(ge) })), 1))], 64)) : g("", !0),
|
|
2543
2543
|
h(q) ? g("", !0) : (a(), v("select", {
|
|
2544
2544
|
key: 1,
|
|
2545
|
-
class: o(h(
|
|
2545
|
+
class: o(h(B)),
|
|
2546
2546
|
"data-testid": "image-height-mode",
|
|
2547
2547
|
value: M.value,
|
|
2548
|
-
onChange: n[10] ||= (e) =>
|
|
2548
|
+
onChange: n[10] ||= (e) => R(e.target.value)
|
|
2549
2549
|
}, [b("option", Ei, r(h(s).image.heightAuto), 1), b("option", Di, r(h(s).image.heightCustom), 1)], 42, Ti)),
|
|
2550
2550
|
!h(q) && M.value === "custom" ? (a(), v("div", Oi, [b("input", {
|
|
2551
2551
|
type: "number",
|
|
2552
2552
|
"data-testid": "image-height-input",
|
|
2553
|
-
class: o(h(
|
|
2553
|
+
class: o(h(z)),
|
|
2554
2554
|
value: e.block.height,
|
|
2555
2555
|
min: "20",
|
|
2556
|
-
onInput: n[11] ||= (e) =>
|
|
2556
|
+
onInput: n[11] ||= (e) => V(e.target.value)
|
|
2557
2557
|
}, null, 42, ki), b("span", { class: o(h(L)) }, "px", 2)])) : g("", !0)
|
|
2558
2558
|
]),
|
|
2559
2559
|
_: 2
|
|
@@ -2577,7 +2577,7 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2577
2577
|
"model-value": e.block.borderRadius,
|
|
2578
2578
|
label: h(s).image.borderRadius,
|
|
2579
2579
|
"testid-prefix": "image",
|
|
2580
|
-
"onUpdate:modelValue":
|
|
2580
|
+
"onUpdate:modelValue": ne
|
|
2581
2581
|
}, null, 8, ["model-value", "label"]),
|
|
2582
2582
|
p(Dt, {
|
|
2583
2583
|
path: "border",
|
|
@@ -2655,7 +2655,7 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2655
2655
|
},
|
|
2656
2656
|
emits: ["update"],
|
|
2657
2657
|
setup(e, { emit: t }) {
|
|
2658
|
-
let n = e, i = t, { t: c } =
|
|
2658
|
+
let n = e, i = t, { t: c } = H(), l = m(() => [
|
|
2659
2659
|
{
|
|
2660
2660
|
key: "openInNewTab",
|
|
2661
2661
|
label: c.menu.openInNewTab
|
|
@@ -2677,12 +2677,12 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2677
2677
|
{
|
|
2678
2678
|
value: "center",
|
|
2679
2679
|
label: c.title.alignCenter,
|
|
2680
|
-
icon:
|
|
2680
|
+
icon: lt
|
|
2681
2681
|
},
|
|
2682
2682
|
{
|
|
2683
2683
|
value: "right",
|
|
2684
2684
|
label: c.title.alignRight,
|
|
2685
|
-
icon:
|
|
2685
|
+
icon: ut
|
|
2686
2686
|
}
|
|
2687
2687
|
]);
|
|
2688
2688
|
function f(e, t) {
|
|
@@ -2690,7 +2690,7 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2690
2690
|
}
|
|
2691
2691
|
function g() {
|
|
2692
2692
|
let e = {
|
|
2693
|
-
id:
|
|
2693
|
+
id: pe(),
|
|
2694
2694
|
text: "",
|
|
2695
2695
|
url: "",
|
|
2696
2696
|
openInNewTab: !1,
|
|
@@ -2721,7 +2721,7 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2721
2721
|
}, {
|
|
2722
2722
|
default: u(() => [b("input", {
|
|
2723
2723
|
type: "text",
|
|
2724
|
-
class: o([h(
|
|
2724
|
+
class: o([h(B), "tpl:flex-1"]),
|
|
2725
2725
|
value: t.text,
|
|
2726
2726
|
placeholder: h(c).menu.text,
|
|
2727
2727
|
onInput: (e) => _(t.id, "text", e.target.value)
|
|
@@ -2782,7 +2782,7 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2782
2782
|
_: 2
|
|
2783
2783
|
}, 1032, ["path", "label"])])
|
|
2784
2784
|
]))), 128)), b("button", {
|
|
2785
|
-
class: o(h(
|
|
2785
|
+
class: o(h(R)),
|
|
2786
2786
|
onClick: g
|
|
2787
2787
|
}, [p(h(Z), {
|
|
2788
2788
|
size: 14,
|
|
@@ -2795,7 +2795,7 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2795
2795
|
label: h(c).menu.fontFamily
|
|
2796
2796
|
}, {
|
|
2797
2797
|
default: u(() => [b("select", {
|
|
2798
|
-
class: o(h(
|
|
2798
|
+
class: o(h(B)),
|
|
2799
2799
|
value: h(Y)(e.block.fontFamily),
|
|
2800
2800
|
onChange: n[0] ||= (e) => f("fontFamily", e.target.value || void 0)
|
|
2801
2801
|
}, [b("option", Bi, r(h(c).title.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
|
|
@@ -2854,7 +2854,7 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2854
2854
|
}, {
|
|
2855
2855
|
default: u(() => [b("input", {
|
|
2856
2856
|
type: "text",
|
|
2857
|
-
class: o(h(
|
|
2857
|
+
class: o(h(B)),
|
|
2858
2858
|
value: e.block.separator,
|
|
2859
2859
|
onInput: n[5] ||= (e) => f("separator", e.target.value)
|
|
2860
2860
|
}, null, 42, Hi)]),
|
|
@@ -2890,7 +2890,7 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2890
2890
|
props: { block: {} },
|
|
2891
2891
|
emits: ["update"],
|
|
2892
2892
|
setup(e, { emit: t }) {
|
|
2893
|
-
let n = t, { t: r } =
|
|
2893
|
+
let n = t, { t: r } = H();
|
|
2894
2894
|
return (t, i) => (a(), w(A, {
|
|
2895
2895
|
label: h(r).paragraph.paragraphSpacing,
|
|
2896
2896
|
class: "tpl:mb-3.5",
|
|
@@ -2899,8 +2899,8 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2899
2899
|
}, {
|
|
2900
2900
|
default: u(() => [b("div", Wi, [b("input", {
|
|
2901
2901
|
type: "number",
|
|
2902
|
-
class: o(h(
|
|
2903
|
-
value: e.block.paragraphSpacing ?? h(
|
|
2902
|
+
class: o(h(z)),
|
|
2903
|
+
value: e.block.paragraphSpacing ?? h(W).paragraphGap,
|
|
2904
2904
|
min: "0",
|
|
2905
2905
|
max: "64",
|
|
2906
2906
|
onInput: i[0] ||= (e) => n("update", { paragraphSpacing: Number(e.target.value) })
|
|
@@ -2911,7 +2911,7 @@ var ui = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, di = [
|
|
|
2911
2911
|
});
|
|
2912
2912
|
// src/utils/rebalanceColumnChildren.ts
|
|
2913
2913
|
function qi(e, t) {
|
|
2914
|
-
let n =
|
|
2914
|
+
let n = q(t);
|
|
2915
2915
|
if (e.length === n) return e;
|
|
2916
2916
|
if (e.length < n) {
|
|
2917
2917
|
let t = Array.from({ length: n - e.length }, () => []);
|
|
@@ -2935,7 +2935,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
2935
2935
|
props: { block: {} },
|
|
2936
2936
|
emits: ["update"],
|
|
2937
2937
|
setup(e, { emit: t }) {
|
|
2938
|
-
let n = e, i = t, { t: c } =
|
|
2938
|
+
let n = e, i = t, { t: c } = H(), l = E(He, void 0), d = E(Ve, void 0), f = l !== void 0 && fe(l), _ = m(() => d !== !1 || !!n.block.wrapper), y = m(() => f && !n.block.wrapper), x = m(() => f && _.value), C = m(() => oe(n.block)?.applied === !0), T = m(() => [
|
|
2939
2939
|
{
|
|
2940
2940
|
value: "1",
|
|
2941
2941
|
label: c.section.column1
|
|
@@ -3010,8 +3010,8 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3010
3010
|
F({ borderRadius: e });
|
|
3011
3011
|
}
|
|
3012
3012
|
return (t, n) => (a(), v(S, null, [
|
|
3013
|
-
b("div", Ji, [b("label", { class: o(h(
|
|
3014
|
-
class: o(h(
|
|
3013
|
+
b("div", Ji, [b("label", { class: o(h(V)) }, r(h(c).section.columns), 3), b("select", {
|
|
3014
|
+
class: o(h(B)),
|
|
3015
3015
|
value: e.block.columns,
|
|
3016
3016
|
onChange: D
|
|
3017
3017
|
}, [(a(!0), v(S, null, s(T.value, (e) => (a(), v("option", {
|
|
@@ -3146,13 +3146,13 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3146
3146
|
props: { block: {} },
|
|
3147
3147
|
emits: ["update"],
|
|
3148
3148
|
setup(e, { emit: t }) {
|
|
3149
|
-
let n = e, i = t, { t: c } =
|
|
3149
|
+
let n = e, i = t, { t: c } = H();
|
|
3150
3150
|
function l(e, t) {
|
|
3151
3151
|
i("update", { [e]: t });
|
|
3152
3152
|
}
|
|
3153
3153
|
function d() {
|
|
3154
3154
|
let e = {
|
|
3155
|
-
id:
|
|
3155
|
+
id: pe(),
|
|
3156
3156
|
platform: "facebook",
|
|
3157
3157
|
url: ""
|
|
3158
3158
|
};
|
|
@@ -3169,7 +3169,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3169
3169
|
i("update", { icons: n.block.icons.filter((t) => t.id !== e) });
|
|
3170
3170
|
}
|
|
3171
3171
|
return (t, n) => (a(), v(S, null, [
|
|
3172
|
-
b("div", ta, [b("label", { class: o(h(
|
|
3172
|
+
b("div", ta, [b("label", { class: o(h(V)) }, r(h(c).social.icons), 3), b("div", na, [(a(!0), v(S, null, s(e.block.icons, (e) => (a(), v("div", {
|
|
3173
3173
|
key: e.id,
|
|
3174
3174
|
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
3175
|
}, [b("div", ra, [p(A, {
|
|
@@ -3178,7 +3178,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3178
3178
|
}, {
|
|
3179
3179
|
default: u(() => [b("select", {
|
|
3180
3180
|
"data-testid": "social-platform-select",
|
|
3181
|
-
class: o([h(
|
|
3181
|
+
class: o([h(B), "tpl:flex-1"]),
|
|
3182
3182
|
value: e.platform,
|
|
3183
3183
|
onChange: (t) => f(e.id, "platform", t.target.value)
|
|
3184
3184
|
}, [(a(!0), v(S, null, s(h(Me), (e) => (a(), v("option", {
|
|
@@ -3209,7 +3209,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3209
3209
|
])]),
|
|
3210
3210
|
_: 2
|
|
3211
3211
|
}, 1032, ["path", "label"])]))), 128)), b("button", {
|
|
3212
|
-
class: o(h(
|
|
3212
|
+
class: o(h(R)),
|
|
3213
3213
|
onClick: d
|
|
3214
3214
|
}, [p(h(Z), {
|
|
3215
3215
|
size: 14,
|
|
@@ -3221,7 +3221,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3221
3221
|
path: "iconStyle"
|
|
3222
3222
|
}, {
|
|
3223
3223
|
default: u(() => [b("select", {
|
|
3224
|
-
class: o(h(
|
|
3224
|
+
class: o(h(B)),
|
|
3225
3225
|
value: e.block.iconStyle,
|
|
3226
3226
|
onChange: n[0] ||= (e) => l("iconStyle", e.target.value)
|
|
3227
3227
|
}, [
|
|
@@ -3241,7 +3241,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3241
3241
|
}, {
|
|
3242
3242
|
default: u(() => [b("select", {
|
|
3243
3243
|
"data-testid": "social-tone-select",
|
|
3244
|
-
class: o(h(
|
|
3244
|
+
class: o(h(B)),
|
|
3245
3245
|
value: e.block.iconTone ?? "brand",
|
|
3246
3246
|
onChange: n[1] ||= (e) => l("iconTone", e.target.value)
|
|
3247
3247
|
}, [
|
|
@@ -3283,7 +3283,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3283
3283
|
}, {
|
|
3284
3284
|
default: u(() => [b("div", va, [b("input", {
|
|
3285
3285
|
type: "number",
|
|
3286
|
-
class: o(h(
|
|
3286
|
+
class: o(h(z)),
|
|
3287
3287
|
value: e.block.spacing,
|
|
3288
3288
|
min: "0",
|
|
3289
3289
|
max: "50",
|
|
@@ -3306,12 +3306,12 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3306
3306
|
{
|
|
3307
3307
|
value: "center",
|
|
3308
3308
|
label: h(c).title.alignCenter,
|
|
3309
|
-
icon: h(
|
|
3309
|
+
icon: h(lt)
|
|
3310
3310
|
},
|
|
3311
3311
|
{
|
|
3312
3312
|
value: "right",
|
|
3313
3313
|
label: h(c).title.alignRight,
|
|
3314
|
-
icon: h(
|
|
3314
|
+
icon: h(ut)
|
|
3315
3315
|
}
|
|
3316
3316
|
],
|
|
3317
3317
|
"model-value": e.block.align,
|
|
@@ -3326,7 +3326,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3326
3326
|
props: { block: {} },
|
|
3327
3327
|
emits: ["update"],
|
|
3328
3328
|
setup(e, { emit: t }) {
|
|
3329
|
-
let n = t, { t: r } =
|
|
3329
|
+
let n = t, { t: r } = H();
|
|
3330
3330
|
return (t, i) => (a(), w(A, {
|
|
3331
3331
|
label: h(r).spacer.height,
|
|
3332
3332
|
class: "tpl:mb-3.5",
|
|
@@ -3334,7 +3334,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3334
3334
|
}, {
|
|
3335
3335
|
default: u(() => [b("div", xa, [b("input", {
|
|
3336
3336
|
type: "number",
|
|
3337
|
-
class: o(h(
|
|
3337
|
+
class: o(h(z)),
|
|
3338
3338
|
value: e.block.height,
|
|
3339
3339
|
min: "10",
|
|
3340
3340
|
max: "100",
|
|
@@ -3358,15 +3358,15 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3358
3358
|
},
|
|
3359
3359
|
emits: ["update"],
|
|
3360
3360
|
setup(e, { emit: t }) {
|
|
3361
|
-
let n = e, i = t, { t: c } =
|
|
3361
|
+
let n = e, i = t, { t: c } = H(), l = m(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
|
|
3362
3362
|
function d(e, t) {
|
|
3363
3363
|
i("update", { [e]: t });
|
|
3364
3364
|
}
|
|
3365
3365
|
function f() {
|
|
3366
3366
|
let e = n.block.rows.length > 0 ? n.block.rows[0].cells.length : 3, t = {
|
|
3367
|
-
id:
|
|
3367
|
+
id: pe(),
|
|
3368
3368
|
cells: Array.from({ length: e }, () => ({
|
|
3369
|
-
id:
|
|
3369
|
+
id: pe(),
|
|
3370
3370
|
content: ""
|
|
3371
3371
|
}))
|
|
3372
3372
|
};
|
|
@@ -3379,7 +3379,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3379
3379
|
let e = n.block.rows.map((e) => ({
|
|
3380
3380
|
...e,
|
|
3381
3381
|
cells: [...e.cells, {
|
|
3382
|
-
id:
|
|
3382
|
+
id: pe(),
|
|
3383
3383
|
content: ""
|
|
3384
3384
|
}]
|
|
3385
3385
|
}));
|
|
@@ -3393,7 +3393,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3393
3393
|
i("update", { rows: t });
|
|
3394
3394
|
}
|
|
3395
3395
|
return (t, n) => (a(), v(S, null, [
|
|
3396
|
-
b("div", Ta, [b("label", { class: o(h(
|
|
3396
|
+
b("div", Ta, [b("label", { class: o(h(V)) }, r(h(c).table.dimensions), 3), b("div", Ea, [b("div", Da, [b("span", Oa, r(h(c).table.rows), 1), b("div", ka, [
|
|
3397
3397
|
b("button", {
|
|
3398
3398
|
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
3399
|
disabled: e.block.rows.length <= 1,
|
|
@@ -3455,7 +3455,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3455
3455
|
}, {
|
|
3456
3456
|
default: u(() => [p(M, {
|
|
3457
3457
|
"model-value": e.block.headerBackgroundColor ?? "",
|
|
3458
|
-
"seed-color": h(
|
|
3458
|
+
"seed-color": h(te),
|
|
3459
3459
|
placeholder: h(c).table.noHeaderBg,
|
|
3460
3460
|
"onUpdate:modelValue": n[3] ||= (e) => d("headerBackgroundColor", e || null)
|
|
3461
3461
|
}, null, 8, [
|
|
@@ -3483,7 +3483,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3483
3483
|
}, {
|
|
3484
3484
|
default: u(() => [b("div", La, [b("input", {
|
|
3485
3485
|
type: "number",
|
|
3486
|
-
class: o(h(
|
|
3486
|
+
class: o(h(z)),
|
|
3487
3487
|
value: e.block.borderWidth,
|
|
3488
3488
|
min: "0",
|
|
3489
3489
|
max: "10",
|
|
@@ -3498,7 +3498,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3498
3498
|
}, {
|
|
3499
3499
|
default: u(() => [b("div", za, [b("input", {
|
|
3500
3500
|
type: "number",
|
|
3501
|
-
class: o(h(
|
|
3501
|
+
class: o(h(z)),
|
|
3502
3502
|
value: e.block.cellPadding,
|
|
3503
3503
|
min: "0",
|
|
3504
3504
|
max: "30",
|
|
@@ -3512,7 +3512,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3512
3512
|
path: "fontFamily"
|
|
3513
3513
|
}, {
|
|
3514
3514
|
default: u(() => [b("select", {
|
|
3515
|
-
class: o(h(
|
|
3515
|
+
class: o(h(B)),
|
|
3516
3516
|
value: h(Y)(e.block.fontFamily),
|
|
3517
3517
|
onChange: n[7] ||= (e) => d("fontFamily", e.target.value || void 0)
|
|
3518
3518
|
}, [b("option", Ha, r(h(c).title.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
|
|
@@ -3528,7 +3528,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3528
3528
|
}, {
|
|
3529
3529
|
default: u(() => [b("div", Wa, [b("input", {
|
|
3530
3530
|
type: "number",
|
|
3531
|
-
class: o(h(
|
|
3531
|
+
class: o(h(z)),
|
|
3532
3532
|
value: e.block.fontSize,
|
|
3533
3533
|
min: "10",
|
|
3534
3534
|
max: "32",
|
|
@@ -3562,12 +3562,12 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3562
3562
|
{
|
|
3563
3563
|
value: "center",
|
|
3564
3564
|
label: h(c).title.alignCenter,
|
|
3565
|
-
icon: h(
|
|
3565
|
+
icon: h(lt)
|
|
3566
3566
|
},
|
|
3567
3567
|
{
|
|
3568
3568
|
value: "right",
|
|
3569
3569
|
label: h(c).title.alignRight,
|
|
3570
|
-
icon: h(
|
|
3570
|
+
icon: h(ut)
|
|
3571
3571
|
}
|
|
3572
3572
|
],
|
|
3573
3573
|
"model-value": e.block.textAlign,
|
|
@@ -3585,7 +3585,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3585
3585
|
},
|
|
3586
3586
|
emits: ["update"],
|
|
3587
3587
|
setup(e, { emit: t }) {
|
|
3588
|
-
let n = t, { t: i } =
|
|
3588
|
+
let n = t, { t: i } = H();
|
|
3589
3589
|
function c(e, t) {
|
|
3590
3590
|
n("update", { [e]: t });
|
|
3591
3591
|
}
|
|
@@ -3596,7 +3596,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3596
3596
|
path: "level"
|
|
3597
3597
|
}, {
|
|
3598
3598
|
default: u(() => [b("select", {
|
|
3599
|
-
class: o(h(
|
|
3599
|
+
class: o(h(B)),
|
|
3600
3600
|
value: e.block.level,
|
|
3601
3601
|
onChange: n[0] ||= (e) => c("level", Number(e.target.value))
|
|
3602
3602
|
}, [
|
|
@@ -3613,7 +3613,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3613
3613
|
path: "fontFamily"
|
|
3614
3614
|
}, {
|
|
3615
3615
|
default: u(() => [b("select", {
|
|
3616
|
-
class: o(h(
|
|
3616
|
+
class: o(h(B)),
|
|
3617
3617
|
value: h(Y)(e.block.fontFamily),
|
|
3618
3618
|
onChange: n[1] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
3619
3619
|
}, [b("option", $a, r(h(i).title.inheritFont), 1), (a(!0), v(S, null, s(e.fontFamilies, (e) => (a(), v("option", {
|
|
@@ -3648,12 +3648,12 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3648
3648
|
{
|
|
3649
3649
|
value: "center",
|
|
3650
3650
|
label: h(i).title.alignCenter,
|
|
3651
|
-
icon: h(
|
|
3651
|
+
icon: h(lt)
|
|
3652
3652
|
},
|
|
3653
3653
|
{
|
|
3654
3654
|
value: "right",
|
|
3655
3655
|
label: h(i).title.alignRight,
|
|
3656
|
-
icon: h(
|
|
3656
|
+
icon: h(ut)
|
|
3657
3657
|
}
|
|
3658
3658
|
],
|
|
3659
3659
|
"model-value": e.block.textAlign,
|
|
@@ -3678,11 +3678,11 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3678
3678
|
props: { block: {} },
|
|
3679
3679
|
emits: ["update"],
|
|
3680
3680
|
setup(e, { emit: t }) {
|
|
3681
|
-
let n = e, i = t, { t: s } =
|
|
3681
|
+
let n = e, i = t, { t: s } = H(), c = E(Ue, null), l = E(Le, ce.liquid), d = we(), f = [
|
|
3682
3682
|
300,
|
|
3683
3683
|
400,
|
|
3684
3684
|
500
|
|
3685
|
-
], x = m(() => !!c), C = m(() =>
|
|
3685
|
+
], x = m(() => !!c), C = m(() => U(n.block.url, l)), T = m(() => {
|
|
3686
3686
|
let e = n.block.width;
|
|
3687
3687
|
return e === "full" ? "full" : f.includes(e) ? String(e) : "custom";
|
|
3688
3688
|
}), D = m(() => typeof n.block.height == "number" ? "custom" : "auto"), O = _(!1), { start: k } = ct(() => {
|
|
@@ -3708,7 +3708,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3708
3708
|
let t = Number(e);
|
|
3709
3709
|
!Number.isFinite(t) || t <= 0 || j("height", t);
|
|
3710
3710
|
}
|
|
3711
|
-
async function
|
|
3711
|
+
async function R() {
|
|
3712
3712
|
let e = await c?.({ accept: ["images"] });
|
|
3713
3713
|
d.alive && e && (j("thumbnailUrl", e.url), O.value = !0, k());
|
|
3714
3714
|
}
|
|
@@ -3752,7 +3752,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3752
3752
|
label: u(() => [y(r(h(s).video.placeholderUrl) + " ", 1), b("span", no, r(h(s).video.optional), 1)]),
|
|
3753
3753
|
default: u(() => [b("input", {
|
|
3754
3754
|
type: "url",
|
|
3755
|
-
class: o(h(
|
|
3755
|
+
class: o(h(B)),
|
|
3756
3756
|
value: e.block.placeholderUrl || "",
|
|
3757
3757
|
placeholder: h(s).video.placeholderUrlPlaceholder,
|
|
3758
3758
|
title: h(s).video.placeholderUrlTooltip,
|
|
@@ -3783,7 +3783,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3783
3783
|
color: "var(--tpl-primary)",
|
|
3784
3784
|
"background-color": "var(--tpl-bg)"
|
|
3785
3785
|
},
|
|
3786
|
-
onClick:
|
|
3786
|
+
onClick: R
|
|
3787
3787
|
}, [p(h(Ie), {
|
|
3788
3788
|
size: 14,
|
|
3789
3789
|
"stroke-width": 1.5
|
|
@@ -3809,7 +3809,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3809
3809
|
path: "width"
|
|
3810
3810
|
}, {
|
|
3811
3811
|
default: u(() => [b("select", {
|
|
3812
|
-
class: o(h(
|
|
3812
|
+
class: o(h(B)),
|
|
3813
3813
|
"data-testid": "video-width-mode",
|
|
3814
3814
|
value: T.value,
|
|
3815
3815
|
onChange: n[5] ||= (e) => M(e.target.value)
|
|
@@ -3822,7 +3822,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3822
3822
|
], 42, ao), T.value === "custom" ? (a(), v("div", co, [b("input", {
|
|
3823
3823
|
type: "number",
|
|
3824
3824
|
"data-testid": "video-width-input",
|
|
3825
|
-
class: o(h(
|
|
3825
|
+
class: o(h(z)),
|
|
3826
3826
|
value: e.block.width,
|
|
3827
3827
|
min: "20",
|
|
3828
3828
|
onInput: n[6] ||= (e) => F(e.target.value)
|
|
@@ -3835,14 +3835,14 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3835
3835
|
path: "height"
|
|
3836
3836
|
}, {
|
|
3837
3837
|
default: u(() => [b("select", {
|
|
3838
|
-
class: o(h(
|
|
3838
|
+
class: o(h(B)),
|
|
3839
3839
|
"data-testid": "video-height-mode",
|
|
3840
3840
|
value: D.value,
|
|
3841
3841
|
onChange: n[7] ||= (e) => I(e.target.value)
|
|
3842
3842
|
}, [b("option", fo, r(h(s).video.heightAuto), 1), b("option", po, r(h(s).video.heightCustom), 1)], 42, uo), D.value === "custom" ? (a(), v("div", mo, [b("input", {
|
|
3843
3843
|
type: "number",
|
|
3844
3844
|
"data-testid": "video-height-input",
|
|
3845
|
-
class: o(h(
|
|
3845
|
+
class: o(h(z)),
|
|
3846
3846
|
value: e.block.height,
|
|
3847
3847
|
min: "20",
|
|
3848
3848
|
onInput: n[8] ||= (e) => ee(e.target.value)
|
|
@@ -3885,7 +3885,7 @@ var Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = ["value"], Zi = {
|
|
|
3885
3885
|
"duplicate"
|
|
3886
3886
|
],
|
|
3887
3887
|
setup(e, { emit: t }) {
|
|
3888
|
-
let n = T(() => import("./CountdownToolbar-
|
|
3888
|
+
let n = T(() => import("./CountdownToolbar-DBu2ZqC6.js")), o = e, s = t, { t: c } = H(), l = rt(), u = Ke(Ge, "Toolbar"), d = E(qe, []), f = m(() => o.block.type), _ = m(() => J(o.block)), y = m(() => {
|
|
3889
3889
|
if (_.value) return d.find((e) => e.type === o.block.customType);
|
|
3890
3890
|
}), x = m(() => _.value ? y.value?.name ?? o.block.customType : Ce(f.value, c)), S = m(() => ge(u.fonts.value, "fontFamily" in o.block ? o.block.fontFamily : void 0));
|
|
3891
3891
|
function C(e) {
|