@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,23 +1,23 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-QGRDbDUS.js";
|
|
2
|
-
import { $ as t, B as n, C as r, F as i, G as a, H as o, K as s, L as c, O as l, Q as u, R as d, S as f, _ as p, b as m, ct as h, dt as g, g as _, h as v, it as y, m as b, mt as x, o as S, p as C, pt as w, s as T, tt as E, u as D, v as O, x as k } from "./draggable-
|
|
3
|
-
import { n as A, t as j } from "./MergeTagTextarea-
|
|
4
|
-
import { c as M } from "./LogicTagInsertButton-
|
|
5
|
-
import { t as N } from "./MergeTagInput-
|
|
6
|
-
import { t as P } from "./ToggleSwitch-
|
|
7
|
-
import { C as F, S as I, _ as L, b as ee, c as
|
|
8
|
-
import { $ as
|
|
9
|
-
import { t as
|
|
10
|
-
import {
|
|
11
|
-
import { n as Ae, t as je } from "./withCurrentFont-
|
|
2
|
+
import { $ as t, B as n, C as r, F as i, G as a, H as o, K as s, L as c, O as l, Q as u, R as d, S as f, _ as p, b as m, ct as h, dt as g, g as _, h as v, it as y, m as b, mt as x, o as S, p as C, pt as w, s as T, tt as E, u as D, v as O, x as k } from "./draggable-IRVFEZ-b.js";
|
|
3
|
+
import { n as A, t as j } from "./MergeTagTextarea-B9TM7FgM.js";
|
|
4
|
+
import { c as M } from "./LogicTagInsertButton-BEArlbra.js";
|
|
5
|
+
import { t as N } from "./MergeTagInput-B3SLXXzL.js";
|
|
6
|
+
import { t as P } from "./ToggleSwitch-C0w0srN_.js";
|
|
7
|
+
import { C as F, S as I, _ as L, b as ee, c as te, g as R, h as z, r as ne, v as B, y as re } from "./styleConstants-CgiNKdnc.js";
|
|
8
|
+
import { $ as ie, At as ae, Bt as oe, Ft as se, H as V, Mt as ce, O as le, R as ue, _ as de, _t as fe, c as pe, et as H, f as me, gt as U, h as W, it as G, lt as K, rt as q, t as J, v as Y } from "./icons-Cl4oR2mf.js";
|
|
9
|
+
import { t as X } from "./useI18n-CSf-ZpcM.js";
|
|
10
|
+
import { En as Z, H as he, I as ge, Tn as _e, W as Q, _n as ve, dn as ye, fn as be, g as xe, in as Se, mn as Ce, pn as we, un as Te, vn as Ee, vt as De, xn as Oe, zt as ke } from "./src-CdVAke9t.js";
|
|
11
|
+
import { n as Ae, t as je } from "./withCurrentFont-CzTFFaJA.js";
|
|
12
12
|
import { t as Me } from "./languageName-DEEOhDWI.js";
|
|
13
13
|
import { t as Ne } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
14
|
-
import { F as Pe, T as Fe, _ as Ie, b as Le, d as Re, f as ze, g as Be, h as Ve, i as He, l as Ue, m as We, p as Ge, r as Ke, s as qe, u as Je, v as Ye } from "./socialIcons-
|
|
15
|
-
import { B as Xe, C as Ze, H as Qe, O as $e,
|
|
14
|
+
import { F as Pe, T as Fe, _ as Ie, b as Le, d as Re, f as ze, g as Be, h as Ve, i as He, l as Ue, m as We, p as Ge, r as Ke, s as qe, u as Je, v as Ye } from "./socialIcons-C_yggK1_.js";
|
|
15
|
+
import { B as Xe, C as Ze, H as Qe, O as $e, Q as et, T as tt, W as nt, _ as rt, b as it, ct as at, h as ot, p as st, r as ct, v as lt } from "./keys-BQqbBUag.js";
|
|
16
16
|
import { t as ut } from "./logger-CqQTfJGx.js";
|
|
17
|
-
import { c as dt, r as ft } from "./usePopoverPosition-
|
|
18
|
-
import { n as pt } from "./useLocalizedDisplay-
|
|
19
|
-
import { _ as mt } from "./dist-
|
|
20
|
-
import { t as ht } from "./blockTypeIcons-
|
|
17
|
+
import { c as dt, r as ft } from "./usePopoverPosition-BJFFi8x6.js";
|
|
18
|
+
import { n as pt } from "./useLocalizedDisplay-slFOCPrh.js";
|
|
19
|
+
import { _ as mt } from "./dist-BtWMy7UQ.js";
|
|
20
|
+
import { t as ht } from "./blockTypeIcons-19xd5ZPi.js";
|
|
21
21
|
// src/components/SlidingPillSelect.vue?vue&type=script&setup=true&lang.ts
|
|
22
22
|
var gt = [
|
|
23
23
|
"aria-checked",
|
|
@@ -97,7 +97,7 @@ var gt = [
|
|
|
97
97
|
return (t, n) => (i(), p("div", vt, [b("input", {
|
|
98
98
|
type: "number",
|
|
99
99
|
"data-testid": e.testid,
|
|
100
|
-
class: g(h(
|
|
100
|
+
class: g(h(R)),
|
|
101
101
|
value: e.modelValue,
|
|
102
102
|
min: e.min,
|
|
103
103
|
max: e.max,
|
|
@@ -128,11 +128,11 @@ var gt = [
|
|
|
128
128
|
title: e.linked ? e.unlinkLabel : e.linkLabel,
|
|
129
129
|
"data-testid": e.testid,
|
|
130
130
|
onClick: r[0] ||= (e) => n("toggle")
|
|
131
|
-
}, [e.linked ? (i(), v(h(
|
|
131
|
+
}, [e.linked ? (i(), v(h(K), {
|
|
132
132
|
key: 0,
|
|
133
133
|
size: 14,
|
|
134
134
|
"stroke-width": 2
|
|
135
|
-
})) : (i(), v(h(
|
|
135
|
+
})) : (i(), v(h(pe), {
|
|
136
136
|
key: 1,
|
|
137
137
|
size: 14,
|
|
138
138
|
"stroke-width": 2
|
|
@@ -150,7 +150,7 @@ var gt = [
|
|
|
150
150
|
},
|
|
151
151
|
emits: ["update:modelValue"],
|
|
152
152
|
setup(e, { emit: t }) {
|
|
153
|
-
let n = e, r = t, { t: s } =
|
|
153
|
+
let n = e, r = t, { t: s } = X(), c = {
|
|
154
154
|
width: 0,
|
|
155
155
|
style: "solid",
|
|
156
156
|
color: "#000000"
|
|
@@ -160,7 +160,7 @@ var gt = [
|
|
|
160
160
|
}
|
|
161
161
|
let u = C(() => {
|
|
162
162
|
let e = n.modelValue;
|
|
163
|
-
return !e ||
|
|
163
|
+
return !e || Ee.every((t) => l(e[t], e.top));
|
|
164
164
|
}), d = E(u.value);
|
|
165
165
|
o(u, (e) => {
|
|
166
166
|
!e && d.value && (d.value = !1);
|
|
@@ -168,13 +168,13 @@ var gt = [
|
|
|
168
168
|
let f = E("top"), m = C(() => n.modelValue?.[d.value ? "top" : f.value] ?? c), y = (e) => !!e && e.width > 0;
|
|
169
169
|
function S(e) {
|
|
170
170
|
if (d.value) {
|
|
171
|
-
r("update:modelValue", y(e) ?
|
|
171
|
+
r("update:modelValue", y(e) ? Z(e) : void 0);
|
|
172
172
|
return;
|
|
173
173
|
}
|
|
174
174
|
let t = {
|
|
175
|
-
...n.modelValue ??
|
|
175
|
+
...n.modelValue ?? Z(c),
|
|
176
176
|
[f.value]: e
|
|
177
|
-
}, i =
|
|
177
|
+
}, i = Ee.some((e) => y(t[e]));
|
|
178
178
|
r("update:modelValue", i ? t : void 0);
|
|
179
179
|
}
|
|
180
180
|
function w(e) {
|
|
@@ -197,10 +197,10 @@ var gt = [
|
|
|
197
197
|
d.value = !0;
|
|
198
198
|
let e = n.modelValue;
|
|
199
199
|
if (!e) return;
|
|
200
|
-
let t = y(e[f.value]) ? e[f.value] :
|
|
201
|
-
r("update:modelValue", t ?
|
|
200
|
+
let t = y(e[f.value]) ? e[f.value] : Ee.map((t) => e[t]).find(y);
|
|
201
|
+
r("update:modelValue", t ? Z(t) : void 0);
|
|
202
202
|
}
|
|
203
|
-
let j = C(() =>
|
|
203
|
+
let j = C(() => Ee.map((e) => ({
|
|
204
204
|
value: e,
|
|
205
205
|
label: s.spacingControl[e]
|
|
206
206
|
})));
|
|
@@ -221,19 +221,19 @@ var gt = [
|
|
|
221
221
|
"testid"
|
|
222
222
|
])]),
|
|
223
223
|
default: a(() => [
|
|
224
|
-
d.value ? _("", !0) : (i(), p("div", Ct, [b("label", { class: g(h(
|
|
224
|
+
d.value ? _("", !0) : (i(), p("div", Ct, [b("label", { class: g(h(B)) }, x(h(s).blockSettings.borderSide), 3), k($, {
|
|
225
225
|
options: j.value,
|
|
226
226
|
"model-value": f.value,
|
|
227
227
|
"onUpdate:modelValue": n[0] ||= (e) => f.value = e
|
|
228
228
|
}, null, 8, ["options", "model-value"])])),
|
|
229
|
-
b("div", wt, [b("label", { class: g(h(
|
|
229
|
+
b("div", wt, [b("label", { class: g(h(B)) }, x(h(s).blockSettings.borderWidth), 3), k(bt, {
|
|
230
230
|
"model-value": m.value.width,
|
|
231
231
|
min: 0,
|
|
232
232
|
suffix: "px",
|
|
233
233
|
testid: `${e.testidPrefix}-border-width-input`,
|
|
234
234
|
"onUpdate:modelValue": w
|
|
235
235
|
}, null, 8, ["model-value", "testid"])]),
|
|
236
|
-
m.value.width > 0 ? (i(), p(D, { key: 1 }, [b("div", Tt, [b("label", { class: g(h(
|
|
236
|
+
m.value.width > 0 ? (i(), p(D, { key: 1 }, [b("div", Tt, [b("label", { class: g(h(B)) }, x(h(s).blockSettings.borderStyle), 3), k($, {
|
|
237
237
|
options: [
|
|
238
238
|
{
|
|
239
239
|
value: "solid",
|
|
@@ -250,7 +250,7 @@ var gt = [
|
|
|
250
250
|
],
|
|
251
251
|
"model-value": m.value.style,
|
|
252
252
|
"onUpdate:modelValue": n[1] ||= (e) => T({ style: e })
|
|
253
|
-
}, null, 8, ["options", "model-value"])]), b("div", null, [b("label", { class: g(h(
|
|
253
|
+
}, null, 8, ["options", "model-value"])]), b("div", null, [b("label", { class: g(h(B)) }, x(h(s).blockSettings.borderColor), 3), k(M, {
|
|
254
254
|
"model-value": m.value.color,
|
|
255
255
|
"onUpdate:modelValue": n[2] ||= (e) => T({ color: e })
|
|
256
256
|
}, null, 8, ["model-value"])])], 64)) : _("", !0)
|
|
@@ -272,7 +272,7 @@ var gt = [
|
|
|
272
272
|
},
|
|
273
273
|
emits: ["update:modelValue"],
|
|
274
274
|
setup(e, { emit: t }) {
|
|
275
|
-
let n = e, r = t, { t: s } =
|
|
275
|
+
let n = e, r = t, { t: s } = X(), l = {
|
|
276
276
|
topLeft: "cornerTopLeft",
|
|
277
277
|
topRight: "cornerTopRight",
|
|
278
278
|
bottomRight: "cornerBottomRight",
|
|
@@ -290,7 +290,7 @@ var gt = [
|
|
|
290
290
|
bottomRight: e,
|
|
291
291
|
bottomLeft: e
|
|
292
292
|
} : e;
|
|
293
|
-
}), f = C(() =>
|
|
293
|
+
}), f = C(() => ve.every((e) => d.value[e] === d.value.topLeft)), m = E(f.value);
|
|
294
294
|
o(f, (e) => {
|
|
295
295
|
!e && m.value && (m.value = !1);
|
|
296
296
|
});
|
|
@@ -364,7 +364,7 @@ var gt = [
|
|
|
364
364
|
},
|
|
365
365
|
emits: ["update"],
|
|
366
366
|
setup(e, { emit: t }) {
|
|
367
|
-
let n = e, r = t, { t: o } =
|
|
367
|
+
let n = e, r = t, { t: o } = X(), s = C(() => n.block.width === "full" ? "full" : typeof n.block.width == "number" ? "custom" : "auto");
|
|
368
368
|
function l(e, t) {
|
|
369
369
|
r("update", { [e]: t });
|
|
370
370
|
}
|
|
@@ -385,7 +385,7 @@ var gt = [
|
|
|
385
385
|
path: "fontFamily"
|
|
386
386
|
}, {
|
|
387
387
|
default: a(() => [b("select", {
|
|
388
|
-
class: g(h(
|
|
388
|
+
class: g(h(z)),
|
|
389
389
|
value: h(je)(e.block.fontFamily),
|
|
390
390
|
onChange: n[0] ||= (e) => l("fontFamily", e.target.value || void 0)
|
|
391
391
|
}, [b("option", jt, x(h(o).button.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
@@ -481,7 +481,7 @@ var gt = [
|
|
|
481
481
|
}, {
|
|
482
482
|
default: a(() => [b("div", Nt, [b("input", {
|
|
483
483
|
type: "number",
|
|
484
|
-
class: g(h(
|
|
484
|
+
class: g(h(R)),
|
|
485
485
|
value: e.block.fontSize,
|
|
486
486
|
min: "10",
|
|
487
487
|
max: "36",
|
|
@@ -520,7 +520,7 @@ var gt = [
|
|
|
520
520
|
path: "width"
|
|
521
521
|
}, {
|
|
522
522
|
default: a(() => [b("select", {
|
|
523
|
-
class: g(h(
|
|
523
|
+
class: g(h(z)),
|
|
524
524
|
value: s.value,
|
|
525
525
|
onChange: n[9] ||= (e) => u(e.target.value)
|
|
526
526
|
}, [
|
|
@@ -529,7 +529,7 @@ var gt = [
|
|
|
529
529
|
b("option", Rt, x(h(o).button.widthCustom), 1)
|
|
530
530
|
], 42, Ft), s.value === "custom" ? (i(), p("div", zt, [b("input", {
|
|
531
531
|
type: "number",
|
|
532
|
-
class: g(h(
|
|
532
|
+
class: g(h(R)),
|
|
533
533
|
value: typeof e.block.width == "number" ? e.block.width : Vt,
|
|
534
534
|
min: "20",
|
|
535
535
|
onInput: n[10] ||= (e) => f(e.target.value)
|
|
@@ -572,7 +572,7 @@ var gt = [
|
|
|
572
572
|
},
|
|
573
573
|
emits: ["update:modelValue"],
|
|
574
574
|
setup(e, { emit: t }) {
|
|
575
|
-
let n = e, r = t, { t: s } =
|
|
575
|
+
let n = e, r = t, { t: s } = X(), c = C(() => n.modelValue.top === n.modelValue.right && n.modelValue.right === n.modelValue.bottom && n.modelValue.bottom === n.modelValue.left), l = E(c.value);
|
|
576
576
|
o(c, (e) => {
|
|
577
577
|
!e && l.value && (l.value = !1);
|
|
578
578
|
});
|
|
@@ -622,7 +622,7 @@ var gt = [
|
|
|
622
622
|
"aria-label": h(s).spacingControl.decreaseTop,
|
|
623
623
|
class: g([ln, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
624
624
|
onClick: n[0] ||= (e) => u("top", -1)
|
|
625
|
-
}, [k(h(
|
|
625
|
+
}, [k(h(H), {
|
|
626
626
|
size: 12,
|
|
627
627
|
"stroke-width": 2
|
|
628
628
|
})], 10, Gt),
|
|
@@ -638,7 +638,7 @@ var gt = [
|
|
|
638
638
|
"aria-label": h(s).spacingControl.increaseTop,
|
|
639
639
|
class: g([ln, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
640
640
|
onClick: n[2] ||= (e) => u("top", 1)
|
|
641
|
-
}, [k(h(
|
|
641
|
+
}, [k(h(V), {
|
|
642
642
|
size: 12,
|
|
643
643
|
"stroke-width": 2
|
|
644
644
|
})], 10, qt)
|
|
@@ -649,7 +649,7 @@ var gt = [
|
|
|
649
649
|
"aria-label": h(s).spacingControl.decreaseLeft,
|
|
650
650
|
class: g([ln, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
651
651
|
onClick: n[3] ||= (e) => u("left", -1)
|
|
652
|
-
}, [k(h(
|
|
652
|
+
}, [k(h(H), {
|
|
653
653
|
size: 12,
|
|
654
654
|
"stroke-width": 2
|
|
655
655
|
})], 10, Xt),
|
|
@@ -665,7 +665,7 @@ var gt = [
|
|
|
665
665
|
"aria-label": h(s).spacingControl.increaseLeft,
|
|
666
666
|
class: g([ln, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
667
667
|
onClick: n[5] ||= (e) => u("left", 1)
|
|
668
|
-
}, [k(h(
|
|
668
|
+
}, [k(h(V), {
|
|
669
669
|
size: 12,
|
|
670
670
|
"stroke-width": 2
|
|
671
671
|
})], 10, Qt)
|
|
@@ -675,11 +675,11 @@ var gt = [
|
|
|
675
675
|
"aria-label": l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
|
|
676
676
|
title: l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
|
|
677
677
|
onClick: f
|
|
678
|
-
}, [l.value ? (i(), v(h(
|
|
678
|
+
}, [l.value ? (i(), v(h(q), {
|
|
679
679
|
key: 0,
|
|
680
680
|
size: 14,
|
|
681
681
|
"stroke-width": 2
|
|
682
|
-
})) : (i(), v(h(
|
|
682
|
+
})) : (i(), v(h(G), {
|
|
683
683
|
key: 1,
|
|
684
684
|
size: 14,
|
|
685
685
|
"stroke-width": 2
|
|
@@ -689,7 +689,7 @@ var gt = [
|
|
|
689
689
|
"aria-label": h(s).spacingControl.decreaseRight,
|
|
690
690
|
class: g([ln, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
691
691
|
onClick: n[6] ||= (e) => u("right", -1)
|
|
692
|
-
}, [k(h(
|
|
692
|
+
}, [k(h(H), {
|
|
693
693
|
size: 12,
|
|
694
694
|
"stroke-width": 2
|
|
695
695
|
})], 10, tn),
|
|
@@ -705,7 +705,7 @@ var gt = [
|
|
|
705
705
|
"aria-label": h(s).spacingControl.increaseRight,
|
|
706
706
|
class: g([ln, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
707
707
|
onClick: n[8] ||= (e) => u("right", 1)
|
|
708
|
-
}, [k(h(
|
|
708
|
+
}, [k(h(V), {
|
|
709
709
|
size: 12,
|
|
710
710
|
"stroke-width": 2
|
|
711
711
|
})], 10, rn)
|
|
@@ -716,7 +716,7 @@ var gt = [
|
|
|
716
716
|
"aria-label": h(s).spacingControl.decreaseBottom,
|
|
717
717
|
class: g([ln, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
718
718
|
onClick: n[9] ||= (e) => u("bottom", -1)
|
|
719
|
-
}, [k(h(
|
|
719
|
+
}, [k(h(H), {
|
|
720
720
|
size: 12,
|
|
721
721
|
"stroke-width": 2
|
|
722
722
|
})], 10, on),
|
|
@@ -732,7 +732,7 @@ var gt = [
|
|
|
732
732
|
"aria-label": h(s).spacingControl.increaseBottom,
|
|
733
733
|
class: g([ln, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
734
734
|
onClick: n[11] ||= (e) => u("bottom", 1)
|
|
735
|
-
}, [k(h(
|
|
735
|
+
}, [k(h(V), {
|
|
736
736
|
size: 12,
|
|
737
737
|
"stroke-width": 2
|
|
738
738
|
})], 10, cn)
|
|
@@ -783,10 +783,10 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
783
783
|
},
|
|
784
784
|
emits: ["update:modelValue"],
|
|
785
785
|
setup(e, { emit: t }) {
|
|
786
|
-
let n = e, r = t, { t: a } =
|
|
786
|
+
let n = e, r = t, { t: a } = X(), o = l(Xe, he.liquid), s = C(() => typeof n.modelValue?.url == "string" ? n.modelValue.url : ""), d = C(() => s.value.trim() !== ""), f = pn(), y;
|
|
787
787
|
u(() => clearTimeout(y));
|
|
788
788
|
function S(e) {
|
|
789
|
-
n.measure && !
|
|
789
|
+
n.measure && !Q(e, o) && (y = setTimeout(async () => {
|
|
790
790
|
let t = await f(e), i = n.modelValue;
|
|
791
791
|
t && i?.url === e && r("update:modelValue", {
|
|
792
792
|
...i,
|
|
@@ -799,7 +799,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
799
799
|
r("update:modelValue", void 0);
|
|
800
800
|
return;
|
|
801
801
|
}
|
|
802
|
-
let { naturalWidth: i, naturalHeight: a, ...o } = n.modelValue ??
|
|
802
|
+
let { naturalWidth: i, naturalHeight: a, ...o } = n.modelValue ?? Ce(e), s = n.measure ? t : null;
|
|
803
803
|
r("update:modelValue", {
|
|
804
804
|
...o,
|
|
805
805
|
url: e,
|
|
@@ -835,7 +835,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
835
835
|
"bottom-left": a.blockSettings.backgroundPositionBottomLeft,
|
|
836
836
|
"bottom-center": a.blockSettings.backgroundPositionBottomCenter,
|
|
837
837
|
"bottom-right": a.blockSettings.backgroundPositionBottomRight
|
|
838
|
-
})), j = C(() =>
|
|
838
|
+
})), j = C(() => we.flatMap((e) => be.map((t) => ({
|
|
839
839
|
x: t,
|
|
840
840
|
y: e,
|
|
841
841
|
label: A.value[`${e}-${t}`]
|
|
@@ -843,14 +843,14 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
843
843
|
function M(e) {
|
|
844
844
|
return n.modelValue?.position?.x === e.x && n.modelValue?.position?.y === e.y;
|
|
845
845
|
}
|
|
846
|
-
let F = E(), { canBrowse: I, isUploading: L, showOverlay: ee, openMediaBrowser:
|
|
846
|
+
let F = E(), { canBrowse: I, isUploading: L, showOverlay: ee, openMediaBrowser: te } = Je({
|
|
847
847
|
target: F,
|
|
848
|
-
blocked: () =>
|
|
848
|
+
blocked: () => Q(s.value, o),
|
|
849
849
|
apply: (e) => w(e.url, Ie(e.width, e.height))
|
|
850
850
|
});
|
|
851
851
|
return (t, n) => (i(), p("div", hn, [b("div", null, [e.hideLabel ? _("", !0) : (i(), p("label", {
|
|
852
852
|
key: 0,
|
|
853
|
-
class: g(h(
|
|
853
|
+
class: g(h(B))
|
|
854
854
|
}, x(h(a).blockSettings.backgroundImage), 3)), b("div", {
|
|
855
855
|
ref_key: "dropZoneRef",
|
|
856
856
|
ref: F,
|
|
@@ -877,8 +877,8 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
877
877
|
color: "var(--tpl-primary)",
|
|
878
878
|
"background-color": "var(--tpl-bg)"
|
|
879
879
|
},
|
|
880
|
-
onClick: n[0] ||= (...e) => h(
|
|
881
|
-
}, [k(h(
|
|
880
|
+
onClick: n[0] ||= (...e) => h(te) && h(te)(...e)
|
|
881
|
+
}, [k(h(fe), {
|
|
882
882
|
size: 14,
|
|
883
883
|
"stroke-width": 1.5
|
|
884
884
|
}), m(" " + x(h(a).image.browseMedia), 1)], 8, _n)) : _("", !0)
|
|
@@ -886,12 +886,12 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
886
886
|
e.heroMode ? _("", !0) : (i(), p("div", {
|
|
887
887
|
key: 0,
|
|
888
888
|
"data-testid": `${e.testidPrefix}-bg-size`
|
|
889
|
-
}, [b("label", { class: g(h(
|
|
889
|
+
}, [b("label", { class: g(h(B)) }, x(h(a).blockSettings.backgroundSize), 3), k($, {
|
|
890
890
|
options: O.value,
|
|
891
891
|
"model-value": e.modelValue.size,
|
|
892
892
|
"onUpdate:modelValue": n[1] ||= (e) => T({ size: e })
|
|
893
893
|
}, null, 8, ["options", "model-value"])], 8, vn)),
|
|
894
|
-
b("div", null, [b("label", { class: g(h(
|
|
894
|
+
b("div", null, [b("label", { class: g(h(B)) }, x(h(a).blockSettings.backgroundPosition), 3), b("div", {
|
|
895
895
|
role: "group",
|
|
896
896
|
"aria-label": h(a).blockSettings.backgroundPosition,
|
|
897
897
|
"data-testid": `${e.testidPrefix}-bg-position`,
|
|
@@ -935,7 +935,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
935
935
|
"data-testid": e.headerTestId,
|
|
936
936
|
class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-1.5 tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
937
937
|
onClick: n[0] ||= (e) => t.$emit("toggle")
|
|
938
|
-
}, [k(h(
|
|
938
|
+
}, [k(h(oe), {
|
|
939
939
|
class: g(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
940
940
|
size: 12,
|
|
941
941
|
"stroke-width": 2
|
|
@@ -969,7 +969,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
969
969
|
function n(e) {
|
|
970
970
|
return typeof e == "number" && Number.isFinite(e) && e >= 1;
|
|
971
971
|
}
|
|
972
|
-
let r = e, a = t, { t: o } =
|
|
972
|
+
let r = e, a = t, { t: o } = X(), s = l(Xe, he.liquid), c = l(lt, null), u = l(tt, void 0), d = pn(), f = C(() => typeof r.section.backgroundImage?.url == "string" ? r.section.backgroundImage.url : ""), m = C(() => f.value.trim() !== ""), y = C(() => Q(f.value, s)), S = C(() => r.section.hero), w = C(() => r.section.columns === "1"), T = C(() => S.value ? n(S.value.height) ? "fixed" : "image" : "fit"), E = C(() => n(S.value?.height) ? S.value.height : Mn), D = C(() => [
|
|
973
973
|
{
|
|
974
974
|
value: "fit",
|
|
975
975
|
label: o.blockSettings.heroHeightFit
|
|
@@ -996,7 +996,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
996
996
|
value: "bottom",
|
|
997
997
|
label: o.blockSettings.heroAlignBottom
|
|
998
998
|
}
|
|
999
|
-
]), A = C(() => T.value === "image" && m.value && !y.value &&
|
|
999
|
+
]), A = C(() => T.value === "image" && m.value && !y.value && Te(r.section.backgroundImage) === null);
|
|
1000
1000
|
function j() {
|
|
1001
1001
|
return (c ? qe(c.content.value, r.section.id, u, c.activeLocale?.value ?? void 0) : null) ?? Ue(c?.state.content.settings);
|
|
1002
1002
|
}
|
|
@@ -1014,7 +1014,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
1014
1014
|
a("update", { hero: void 0 });
|
|
1015
1015
|
return;
|
|
1016
1016
|
}
|
|
1017
|
-
let n =
|
|
1017
|
+
let n = Te(r.section.backgroundImage), i = n === null ? Mn : Math.round(j() * n);
|
|
1018
1018
|
a("update", { hero: {
|
|
1019
1019
|
height: i,
|
|
1020
1020
|
verticalAlign: t
|
|
@@ -1022,7 +1022,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
1022
1022
|
}
|
|
1023
1023
|
async function N() {
|
|
1024
1024
|
let e = r.section.backgroundImage;
|
|
1025
|
-
if (!e || !m.value || y.value ||
|
|
1025
|
+
if (!e || !m.value || y.value || Te(e) !== null) return;
|
|
1026
1026
|
let t = e.url, n = await d(t), i = r.section.backgroundImage;
|
|
1027
1027
|
n && i && i.url === t && a("update", { backgroundImage: {
|
|
1028
1028
|
...i,
|
|
@@ -1043,7 +1043,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
1043
1043
|
}
|
|
1044
1044
|
return (e, t) => !w.value && S.value ? (i(), p("p", En, x(h(o).section.heroNeedsOneColumn), 1)) : w.value && (m.value || S.value) ? (i(), p("div", Dn, [
|
|
1045
1045
|
b("div", On, [
|
|
1046
|
-
b("label", { class: g(h(
|
|
1046
|
+
b("label", { class: g(h(B)) }, x(h(o).blockSettings.heroHeight), 3),
|
|
1047
1047
|
k($, {
|
|
1048
1048
|
options: D.value,
|
|
1049
1049
|
"model-value": T.value,
|
|
@@ -1059,7 +1059,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
|
|
|
1059
1059
|
testid: "section-hero-height-px",
|
|
1060
1060
|
"onUpdate:modelValue": P
|
|
1061
1061
|
}, null, 8, ["model-value"])) : _("", !0),
|
|
1062
|
-
S.value ? (i(), p("div", jn, [b("label", { class: g(h(
|
|
1062
|
+
S.value ? (i(), p("div", jn, [b("label", { class: g(h(B)) }, x(h(o).blockSettings.heroAlign), 3), k($, {
|
|
1063
1063
|
options: O.value,
|
|
1064
1064
|
"model-value": S.value.verticalAlign,
|
|
1065
1065
|
"onUpdate:modelValue": F
|
|
@@ -1088,7 +1088,7 @@ function Ln(e) {
|
|
|
1088
1088
|
return Fn(e.styles.backgroundColor) || !!e.backgroundImage;
|
|
1089
1089
|
}
|
|
1090
1090
|
function Rn(e) {
|
|
1091
|
-
return e.fullWidth !== !0 || In(e.padding) ||
|
|
1091
|
+
return e.fullWidth !== !0 || In(e.padding) || _e(e.borderRadius) !== null ? !1 : Object.keys(e).every((e) => Pn.has(e));
|
|
1092
1092
|
}
|
|
1093
1093
|
function zn(e, t = {}) {
|
|
1094
1094
|
return e.wrapper ? !1 : t.sectionWrapper === !1 || t.layout !== void 0 && xe(t.layout);
|
|
@@ -1162,47 +1162,47 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1162
1162
|
},
|
|
1163
1163
|
emits: ["update"],
|
|
1164
1164
|
setup(e, { emit: r }) {
|
|
1165
|
-
let u = e, d = r, { t: f, format: w } =
|
|
1166
|
-
sectionWrapper:
|
|
1167
|
-
layout:
|
|
1168
|
-
})),
|
|
1169
|
-
function
|
|
1165
|
+
let u = e, d = r, { t: f, format: w } = X(), T = l(lt, null), O = l($e, void 0), j = C(() => T?.activeLocale?.value), N = C(() => !!(j.value && T?.selectedBlock?.value?.l10n?.[j.value]?.hidden)), I = l(rt, []), L = l(ct, !1), te = l(tt, void 0), R = l(et, void 0), z = C(() => u.block.type === "section" || u.block.type === "wrapper"), ne = C(() => u.block.type === "wrapper" ? u.block.fullWidth === !0 : u.block.type === "section" && u.block.wrapper?.fullWidth === !0), B = C(() => u.block.type === "section" && zn(u.block, {
|
|
1166
|
+
sectionWrapper: R,
|
|
1167
|
+
layout: te
|
|
1168
|
+
})), ae = C(() => u.block.type === "wrapper" ? "layout-wrapper-full-width" : "section-background-full-width");
|
|
1169
|
+
function oe(e) {
|
|
1170
1170
|
u.block.type === "wrapper" ? d("update", { fullWidth: e }) : u.block.type === "section" && d("update", Hn(u.block, e));
|
|
1171
1171
|
}
|
|
1172
|
-
let
|
|
1172
|
+
let se = C(() => u.block.type === "section" && u.block.wrapper?.fullWidth === !0), V = C(() => se.value ? "wrapper.backgroundColor" : "styles.backgroundColor"), ce = C(() => se.value ? "wrapper.backgroundImage" : "backgroundImage"), ue = C(() => {
|
|
1173
1173
|
let e = u.block;
|
|
1174
1174
|
return e.type === "section" && e.wrapper?.fullWidth === !0 ? e.wrapper.backgroundColor ?? "" : e.styles.backgroundColor ?? "";
|
|
1175
|
-
}),
|
|
1175
|
+
}), de = C(() => {
|
|
1176
1176
|
let e = u.block;
|
|
1177
1177
|
return e.type === "section" && e.wrapper?.fullWidth === !0 ? e.wrapper.backgroundImage : e.type === "section" ? e.backgroundImage : void 0;
|
|
1178
1178
|
});
|
|
1179
|
-
function
|
|
1179
|
+
function fe(e, t) {
|
|
1180
1180
|
d("update", { wrapper: {
|
|
1181
1181
|
...e,
|
|
1182
1182
|
...t
|
|
1183
1183
|
} });
|
|
1184
1184
|
}
|
|
1185
|
-
function
|
|
1185
|
+
function pe(e) {
|
|
1186
1186
|
let t = u.block;
|
|
1187
|
-
t.type === "section" && t.wrapper?.fullWidth === !0 ?
|
|
1187
|
+
t.type === "section" && t.wrapper?.fullWidth === !0 ? fe(t.wrapper, { backgroundColor: e }) : Te("backgroundColor", e);
|
|
1188
1188
|
}
|
|
1189
|
-
function
|
|
1189
|
+
function H(e) {
|
|
1190
1190
|
let t = u.block;
|
|
1191
|
-
t.type === "section" && t.wrapper?.fullWidth === !0 ?
|
|
1191
|
+
t.type === "section" && t.wrapper?.fullWidth === !0 ? fe(t.wrapper, { backgroundImage: e }) : d("update", { backgroundImage: e });
|
|
1192
1192
|
}
|
|
1193
|
-
let
|
|
1193
|
+
let me = l(Qe, null), U = Re(), W = E(!1), G = t(/* @__PURE__ */ new Set()), K = E(!1), q = E(""), J = E(""), Y = [{
|
|
1194
1194
|
key: "desktop",
|
|
1195
|
-
icon:
|
|
1195
|
+
icon: ie,
|
|
1196
1196
|
labelKey: "showOnDesktop"
|
|
1197
1197
|
}, {
|
|
1198
1198
|
key: "mobile",
|
|
1199
|
-
icon:
|
|
1199
|
+
icon: le,
|
|
1200
1200
|
labelKey: "showOnMobile"
|
|
1201
1201
|
}];
|
|
1202
|
-
function
|
|
1203
|
-
|
|
1202
|
+
function Z(e) {
|
|
1203
|
+
G.has(e) ? G.delete(e) : G.add(e);
|
|
1204
1204
|
}
|
|
1205
|
-
let he = C(() => !!
|
|
1205
|
+
let he = C(() => !!me || I.length > 0 || L);
|
|
1206
1206
|
function ge(e) {
|
|
1207
1207
|
if (typeof e != "object" || !e || Array.isArray(e)) return !1;
|
|
1208
1208
|
let t = e;
|
|
@@ -1212,36 +1212,36 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1212
1212
|
let n = T?.state?.selectedBlockId;
|
|
1213
1213
|
u.block.id === e && (n === void 0 || n === e) ? d("update", { displayCondition: t }) : T && T.findBlockLocation(e) && T.updateBlock(e, { displayCondition: t });
|
|
1214
1214
|
}
|
|
1215
|
-
async function
|
|
1216
|
-
if (!
|
|
1217
|
-
let e = u.block.id, t = T?.activeLocale?.value ?? null, n =
|
|
1218
|
-
|
|
1215
|
+
async function Q() {
|
|
1216
|
+
if (!me || W.value) return;
|
|
1217
|
+
let e = u.block.id, t = T?.activeLocale?.value ?? null, n = Se(y(u.block)), r = u.block.displayCondition ? Se(y(u.block.displayCondition)) : void 0;
|
|
1218
|
+
W.value = !0;
|
|
1219
1219
|
try {
|
|
1220
|
-
let i = await
|
|
1220
|
+
let i = await me(r ? {
|
|
1221
1221
|
current: r,
|
|
1222
1222
|
block: n
|
|
1223
1223
|
} : { block: n });
|
|
1224
|
-
if (!
|
|
1224
|
+
if (!U.alive || (T?.activeLocale?.value ?? null) !== t || i === null) return;
|
|
1225
1225
|
if (!ge(i)) {
|
|
1226
1226
|
ut.warn("displayConditions.onRequest resolved a value without string label, before and after — ignoring it.");
|
|
1227
1227
|
return;
|
|
1228
1228
|
}
|
|
1229
|
-
_e(e,
|
|
1229
|
+
_e(e, Se(i));
|
|
1230
1230
|
} finally {
|
|
1231
|
-
|
|
1231
|
+
U.alive && (W.value = !1);
|
|
1232
1232
|
}
|
|
1233
1233
|
}
|
|
1234
|
-
let
|
|
1235
|
-
function ye() {
|
|
1236
|
-
q.value = !0, Q.value && u.block.displayCondition ? (J.value = u.block.displayCondition.before, Y.value = u.block.displayCondition.after ?? "") : (J.value = "", Y.value = "");
|
|
1237
|
-
}
|
|
1234
|
+
let ve = C(() => u.block.displayCondition ? !I.some((e) => e.label === u.block.displayCondition?.label) : !1);
|
|
1238
1235
|
function be() {
|
|
1239
|
-
|
|
1236
|
+
K.value = !0, ve.value && u.block.displayCondition ? (q.value = u.block.displayCondition.before, J.value = u.block.displayCondition.after ?? "") : (q.value = "", J.value = "");
|
|
1237
|
+
}
|
|
1238
|
+
function xe() {
|
|
1239
|
+
let e = q.value.trim(), t = J.value.trim();
|
|
1240
1240
|
e && (d("update", { displayCondition: {
|
|
1241
1241
|
label: f.blockSettings.customCondition,
|
|
1242
1242
|
before: e,
|
|
1243
1243
|
after: t
|
|
1244
|
-
} }),
|
|
1244
|
+
} }), K.value = !1, q.value = e, J.value = t);
|
|
1245
1245
|
}
|
|
1246
1246
|
o([
|
|
1247
1247
|
() => T?.state?.template?.id,
|
|
@@ -1251,44 +1251,44 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1251
1251
|
() => u.block.displayCondition?.after
|
|
1252
1252
|
], () => {
|
|
1253
1253
|
let e = u.block.displayCondition;
|
|
1254
|
-
!e || !
|
|
1254
|
+
!e || !ve.value ? (K.value = !1, q.value = "", J.value = "") : (q.value = e.before, J.value = e.after ?? "");
|
|
1255
1255
|
}, { immediate: !0 });
|
|
1256
|
-
let
|
|
1256
|
+
let Ce = C(() => {
|
|
1257
1257
|
let e = {};
|
|
1258
1258
|
for (let t of I) {
|
|
1259
1259
|
let n = t.group ?? "";
|
|
1260
1260
|
e[n] || (e[n] = []), e[n].push(t);
|
|
1261
1261
|
}
|
|
1262
1262
|
return e;
|
|
1263
|
-
}),
|
|
1264
|
-
function
|
|
1263
|
+
}), we = C(() => u.block.type === "section" && ye(u.block)?.applied === !0);
|
|
1264
|
+
function Te(e, t) {
|
|
1265
1265
|
d("update", { styles: {
|
|
1266
1266
|
...u.block.styles,
|
|
1267
1267
|
[e]: t
|
|
1268
1268
|
} });
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1270
|
+
function Ee(e) {
|
|
1271
1271
|
return u.block.visibility?.[e] !== !1;
|
|
1272
1272
|
}
|
|
1273
1273
|
function De(e) {
|
|
1274
1274
|
let t = {
|
|
1275
|
-
desktop:
|
|
1276
|
-
mobile:
|
|
1275
|
+
desktop: Ee("desktop"),
|
|
1276
|
+
mobile: Ee("mobile")
|
|
1277
1277
|
};
|
|
1278
1278
|
t[e] = !t[e], d("update", { visibility: t });
|
|
1279
1279
|
}
|
|
1280
1280
|
return (t, r) => (i(), p("div", { class: g(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1281
1281
|
k(Tn, {
|
|
1282
1282
|
title: h(f).blockSettings.spacing,
|
|
1283
|
-
open:
|
|
1283
|
+
open: G.has("spacing"),
|
|
1284
1284
|
"no-border": e.isFirstSection,
|
|
1285
|
-
onToggle: r[1] ||= (e) =>
|
|
1285
|
+
onToggle: r[1] ||= (e) => Z("spacing")
|
|
1286
1286
|
}, {
|
|
1287
1287
|
default: a(() => [k(dn, {
|
|
1288
1288
|
path: "styles.padding",
|
|
1289
1289
|
label: h(f).blockSettings.padding,
|
|
1290
1290
|
"model-value": e.block.styles.padding,
|
|
1291
|
-
"onUpdate:modelValue": r[0] ||= (e) =>
|
|
1291
|
+
"onUpdate:modelValue": r[0] ||= (e) => Te("padding", e)
|
|
1292
1292
|
}, null, 8, ["label", "model-value"])]),
|
|
1293
1293
|
_: 1
|
|
1294
1294
|
}, 8, [
|
|
@@ -1298,36 +1298,36 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1298
1298
|
]),
|
|
1299
1299
|
k(Tn, {
|
|
1300
1300
|
title: h(f).blockSettings.background,
|
|
1301
|
-
open:
|
|
1301
|
+
open: G.has("bg"),
|
|
1302
1302
|
"header-test-id": "block-settings-background",
|
|
1303
|
-
onToggle: r[4] ||= (e) =>
|
|
1303
|
+
onToggle: r[4] ||= (e) => Z("bg")
|
|
1304
1304
|
}, {
|
|
1305
1305
|
default: a(() => [
|
|
1306
1306
|
k(A, {
|
|
1307
|
-
path:
|
|
1307
|
+
path: V.value,
|
|
1308
1308
|
label: h(f).blockSettings.color
|
|
1309
1309
|
}, {
|
|
1310
1310
|
default: a(() => [k(M, {
|
|
1311
|
-
"model-value":
|
|
1311
|
+
"model-value": ue.value,
|
|
1312
1312
|
"allow-transparent": "",
|
|
1313
|
-
"onUpdate:modelValue":
|
|
1313
|
+
"onUpdate:modelValue": pe
|
|
1314
1314
|
}, null, 8, ["model-value"])]),
|
|
1315
1315
|
_: 1
|
|
1316
1316
|
}, 8, ["path", "label"]),
|
|
1317
|
-
|
|
1317
|
+
z.value ? (i(), v(A, {
|
|
1318
1318
|
key: 0,
|
|
1319
1319
|
path: e.block.type === "section" ? "wrapper.fullWidth" : "fullWidth",
|
|
1320
1320
|
label: h(f).blockSettings.fullWidthBackground
|
|
1321
1321
|
}, {
|
|
1322
1322
|
"label-actions": a(({ controlId: e }) => [k(P, {
|
|
1323
|
-
"data-testid":
|
|
1323
|
+
"data-testid": ae.value,
|
|
1324
1324
|
"control-id": e,
|
|
1325
1325
|
"hide-label": "",
|
|
1326
1326
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1327
|
-
"model-value":
|
|
1328
|
-
disabled:
|
|
1327
|
+
"model-value": ne.value,
|
|
1328
|
+
disabled: B.value,
|
|
1329
1329
|
label: h(f).blockSettings.fullWidthBackground,
|
|
1330
|
-
"onUpdate:modelValue":
|
|
1330
|
+
"onUpdate:modelValue": oe
|
|
1331
1331
|
}, null, 8, [
|
|
1332
1332
|
"data-testid",
|
|
1333
1333
|
"control-id",
|
|
@@ -1339,21 +1339,21 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1339
1339
|
}, 8, ["path", "label"])) : _("", !0),
|
|
1340
1340
|
e.block.type === "section" ? (i(), v(A, {
|
|
1341
1341
|
key: 1,
|
|
1342
|
-
path:
|
|
1342
|
+
path: ce.value,
|
|
1343
1343
|
label: h(f).blockSettings.backgroundImage
|
|
1344
1344
|
}, {
|
|
1345
1345
|
default: a(() => [k(Sn, {
|
|
1346
1346
|
"hide-label": "",
|
|
1347
1347
|
class: "tpl:mt-3.5",
|
|
1348
|
-
"model-value":
|
|
1348
|
+
"model-value": de.value,
|
|
1349
1349
|
"testid-prefix": "section",
|
|
1350
1350
|
measure: "",
|
|
1351
|
-
"hero-mode":
|
|
1352
|
-
"onUpdate:modelValue":
|
|
1351
|
+
"hero-mode": we.value,
|
|
1352
|
+
"onUpdate:modelValue": H
|
|
1353
1353
|
}, null, 8, ["model-value", "hero-mode"])]),
|
|
1354
1354
|
_: 1
|
|
1355
1355
|
}, 8, ["path", "label"])) : _("", !0),
|
|
1356
|
-
|
|
1356
|
+
se.value ? (i(), v(A, {
|
|
1357
1357
|
key: 2,
|
|
1358
1358
|
path: "styles.backgroundColor",
|
|
1359
1359
|
label: h(f).blockSettings.contentBackground
|
|
@@ -1362,7 +1362,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1362
1362
|
"data-testid": "section-content-background",
|
|
1363
1363
|
"model-value": e.block.styles.backgroundColor ?? "",
|
|
1364
1364
|
"allow-transparent": "",
|
|
1365
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
1365
|
+
"onUpdate:modelValue": r[2] ||= (e) => Te("backgroundColor", e)
|
|
1366
1366
|
}, null, 8, ["model-value"])]),
|
|
1367
1367
|
_: 1
|
|
1368
1368
|
}, 8, ["label"])) : _("", !0),
|
|
@@ -1382,8 +1382,8 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1382
1382
|
}, 8, ["title", "open"]),
|
|
1383
1383
|
k(Tn, {
|
|
1384
1384
|
title: h(f).blockSettings.display,
|
|
1385
|
-
open:
|
|
1386
|
-
onToggle: r[6] ||= (e) =>
|
|
1385
|
+
open: G.has("display"),
|
|
1386
|
+
onToggle: r[6] ||= (e) => Z("display")
|
|
1387
1387
|
}, {
|
|
1388
1388
|
default: a(() => [b("div", Wn, [j.value && h(O) ? (i(), v(P, {
|
|
1389
1389
|
key: 0,
|
|
@@ -1396,7 +1396,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1396
1396
|
"disabled",
|
|
1397
1397
|
"model-value",
|
|
1398
1398
|
"label"
|
|
1399
|
-
])) : _("", !0), (i(), p(D, null, c(
|
|
1399
|
+
])) : _("", !0), (i(), p(D, null, c(Y, (e) => k(A, {
|
|
1400
1400
|
key: e.key,
|
|
1401
1401
|
path: `visibility.${e.key}`,
|
|
1402
1402
|
label: h(f).blockSettings[e.labelKey]
|
|
@@ -1409,7 +1409,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1409
1409
|
"control-id": t,
|
|
1410
1410
|
"hide-label": "",
|
|
1411
1411
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1412
|
-
"model-value":
|
|
1412
|
+
"model-value": Ee(e.key),
|
|
1413
1413
|
label: h(f).blockSettings[e.labelKey],
|
|
1414
1414
|
"onUpdate:modelValue": (t) => De(e.key)
|
|
1415
1415
|
}, null, 8, [
|
|
@@ -1426,23 +1426,23 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1426
1426
|
key: 0,
|
|
1427
1427
|
"header-test-id": "display-condition-section",
|
|
1428
1428
|
title: h(f).blockSettings.displayCondition,
|
|
1429
|
-
open:
|
|
1430
|
-
onToggle: r[11] ||= (e) =>
|
|
1429
|
+
open: G.has("condition"),
|
|
1430
|
+
onToggle: r[11] ||= (e) => Z("condition")
|
|
1431
1431
|
}, {
|
|
1432
|
-
default: a(() => [h(
|
|
1432
|
+
default: a(() => [h(me) ? (i(), p("div", Kn, [e.block.displayCondition ? (i(), p(D, { key: 0 }, [
|
|
1433
1433
|
b("p", qn, x(e.block.displayCondition.label), 1),
|
|
1434
1434
|
e.block.displayCondition.description ? (i(), p("p", Jn, x(e.block.displayCondition.description), 1)) : _("", !0),
|
|
1435
1435
|
b("div", Yn, [b("button", {
|
|
1436
1436
|
type: "button",
|
|
1437
1437
|
"data-testid": "display-condition-edit",
|
|
1438
1438
|
class: g(h(F)),
|
|
1439
|
-
disabled:
|
|
1440
|
-
onClick:
|
|
1439
|
+
disabled: W.value,
|
|
1440
|
+
onClick: Q
|
|
1441
1441
|
}, x(h(f).blockSettings.editCondition), 11, Xn), b("button", {
|
|
1442
1442
|
type: "button",
|
|
1443
1443
|
"data-testid": "display-condition-remove",
|
|
1444
1444
|
class: g(h(F)),
|
|
1445
|
-
disabled:
|
|
1445
|
+
disabled: W.value,
|
|
1446
1446
|
onClick: r[7] ||= (e) => d("update", { displayCondition: void 0 })
|
|
1447
1447
|
}, x(h(f).blockSettings.removeCondition), 11, Zn)])
|
|
1448
1448
|
], 64)) : (i(), p("button", {
|
|
@@ -1450,8 +1450,8 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1450
1450
|
type: "button",
|
|
1451
1451
|
"data-testid": "display-condition-request",
|
|
1452
1452
|
class: g(h(F)),
|
|
1453
|
-
disabled:
|
|
1454
|
-
onClick:
|
|
1453
|
+
disabled: W.value,
|
|
1454
|
+
onClick: Q
|
|
1455
1455
|
}, x(h(f).blockSettings.addCondition), 11, Qn))])) : (i(), p("div", $n, [k(A, {
|
|
1456
1456
|
path: "displayCondition",
|
|
1457
1457
|
label: h(f).blockSettings.displayCondition
|
|
@@ -1459,14 +1459,14 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1459
1459
|
default: a(() => [b("select", {
|
|
1460
1460
|
"data-testid": "display-condition-select",
|
|
1461
1461
|
class: g(["tpl:w-full tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:outline-none tpl:transition-all tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]", e.block.displayCondition ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-text)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"]),
|
|
1462
|
-
value:
|
|
1462
|
+
value: K.value || ve.value ? "__custom__" : e.block.displayCondition?.label ?? "",
|
|
1463
1463
|
onChange: r[8] ||= (e) => {
|
|
1464
1464
|
let t = e.target.value;
|
|
1465
1465
|
if (t === "__custom__") {
|
|
1466
|
-
|
|
1466
|
+
be();
|
|
1467
1467
|
return;
|
|
1468
1468
|
}
|
|
1469
|
-
if (
|
|
1469
|
+
if (K.value = !1, !t) {
|
|
1470
1470
|
d("update", { displayCondition: void 0 });
|
|
1471
1471
|
return;
|
|
1472
1472
|
}
|
|
@@ -1475,7 +1475,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1475
1475
|
}
|
|
1476
1476
|
}, [
|
|
1477
1477
|
b("option", tr, x(h(f).blockSettings.noCondition), 1),
|
|
1478
|
-
(i(!0), p(D, null, c(
|
|
1478
|
+
(i(!0), p(D, null, c(Ce.value, (e, t) => (i(), p(D, { key: t }, [t ? (i(), p("optgroup", {
|
|
1479
1479
|
key: 0,
|
|
1480
1480
|
label: String(t)
|
|
1481
1481
|
}, [(i(!0), p(D, null, c(e, (e) => (i(), p("option", {
|
|
@@ -1488,24 +1488,24 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1488
1488
|
h(L) ? (i(), p("option", ar, x(h(f).blockSettings.customCondition), 1)) : _("", !0)
|
|
1489
1489
|
], 42, er)]),
|
|
1490
1490
|
_: 1
|
|
1491
|
-
}, 8, ["label"]),
|
|
1491
|
+
}, 8, ["label"]), K.value || ve.value ? (i(), p("div", or, [
|
|
1492
1492
|
b("div", null, [b("label", sr, x(h(f).blockSettings.customConditionBefore), 1), s(b("textarea", {
|
|
1493
|
-
"onUpdate:modelValue": r[9] ||= (e) =>
|
|
1493
|
+
"onUpdate:modelValue": r[9] ||= (e) => q.value = e,
|
|
1494
1494
|
rows: "2",
|
|
1495
|
-
class: g(h(
|
|
1496
|
-
}, null, 2), [[S,
|
|
1495
|
+
class: g(h(re))
|
|
1496
|
+
}, null, 2), [[S, q.value]])]),
|
|
1497
1497
|
b("div", null, [b("label", cr, x(h(f).blockSettings.customConditionAfter), 1), s(b("textarea", {
|
|
1498
|
-
"onUpdate:modelValue": r[10] ||= (e) =>
|
|
1498
|
+
"onUpdate:modelValue": r[10] ||= (e) => J.value = e,
|
|
1499
1499
|
rows: "2",
|
|
1500
|
-
class: g(h(
|
|
1501
|
-
}, null, 2), [[S,
|
|
1500
|
+
class: g(h(re))
|
|
1501
|
+
}, null, 2), [[S, J.value]])]),
|
|
1502
1502
|
b("div", lr, [b("button", {
|
|
1503
1503
|
type: "button",
|
|
1504
1504
|
class: g(h(ee)),
|
|
1505
|
-
disabled: !
|
|
1506
|
-
onClick:
|
|
1505
|
+
disabled: !q.value.trim(),
|
|
1506
|
+
onClick: xe
|
|
1507
1507
|
}, x(h(f).blockSettings.applyCondition), 11, ur)])
|
|
1508
|
-
])) : e.block.displayCondition && !
|
|
1508
|
+
])) : e.block.displayCondition && !ve.value ? (i(), p(D, { key: 1 }, [e.block.displayCondition.description ? (i(), p("p", dr, x(e.block.displayCondition.description), 1)) : _("", !0), b("div", fr, [b("pre", pr, x(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (i(), p("pre", mr, x(e.block.displayCondition.after), 1)) : _("", !0)])], 64)) : _("", !0)]))]),
|
|
1509
1509
|
_: 1
|
|
1510
1510
|
}, 8, ["title", "open"])) : _("", !0)
|
|
1511
1511
|
], 2));
|
|
@@ -1518,13 +1518,13 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1518
1518
|
readOnly: { type: Boolean }
|
|
1519
1519
|
},
|
|
1520
1520
|
setup(e) {
|
|
1521
|
-
let { t } =
|
|
1521
|
+
let { t } = X();
|
|
1522
1522
|
return (n, r) => (i(), p("span", null, [
|
|
1523
1523
|
m(x(e.label) + " ", 1),
|
|
1524
1524
|
e.readOnly ? (i(), p("span", {
|
|
1525
1525
|
key: 0,
|
|
1526
1526
|
title: h(t).customBlocks.dataSource.readOnlyTooltip
|
|
1527
|
-
}, [k(h(
|
|
1527
|
+
}, [k(h(q), {
|
|
1528
1528
|
size: 12,
|
|
1529
1529
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
|
|
1530
1530
|
"aria-hidden": "true"
|
|
@@ -1547,7 +1547,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1547
1547
|
},
|
|
1548
1548
|
emits: ["update:modelValue"],
|
|
1549
1549
|
setup(e, { emit: t }) {
|
|
1550
|
-
let n = t, { t: r } =
|
|
1550
|
+
let n = t, { t: r } = X();
|
|
1551
1551
|
return (t, o) => (i(), p("div", {
|
|
1552
1552
|
class: "tpl:mb-3.5",
|
|
1553
1553
|
title: e.readOnly ? h(r).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
@@ -1561,7 +1561,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1561
1561
|
disabled: e.readOnly,
|
|
1562
1562
|
"onUpdate:modelValue": o[0] ||= (e) => n("update:modelValue", e)
|
|
1563
1563
|
}, {
|
|
1564
|
-
default: a(() => [m(x(e.field.label) + " ", 1), e.readOnly ? (i(), v(h(
|
|
1564
|
+
default: a(() => [m(x(e.field.label) + " ", 1), e.readOnly ? (i(), v(h(q), {
|
|
1565
1565
|
key: 0,
|
|
1566
1566
|
size: 12,
|
|
1567
1567
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
@@ -1587,7 +1587,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1587
1587
|
setup(e) {
|
|
1588
1588
|
return (t, n) => (i(), p("div", Cr, [e.hideLabel ? _("", !0) : (i(), p("label", {
|
|
1589
1589
|
key: 0,
|
|
1590
|
-
class: g(h(
|
|
1590
|
+
class: g(h(B))
|
|
1591
1591
|
}, [k(br, {
|
|
1592
1592
|
label: e.label,
|
|
1593
1593
|
required: e.required,
|
|
@@ -1608,7 +1608,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1608
1608
|
},
|
|
1609
1609
|
emits: ["update:modelValue"],
|
|
1610
1610
|
setup(e, { emit: t }) {
|
|
1611
|
-
let n = e, r = t, { t: o } =
|
|
1611
|
+
let n = e, r = t, { t: o } = X(), s = l(st, ft), c = C(() => Ye(n.field, s));
|
|
1612
1612
|
return (t, n) => (i(), v(wr, {
|
|
1613
1613
|
"hide-label": e.hideLabel,
|
|
1614
1614
|
label: e.field.label,
|
|
@@ -1653,7 +1653,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1653
1653
|
},
|
|
1654
1654
|
emits: ["update:modelValue"],
|
|
1655
1655
|
setup(e, { emit: t }) {
|
|
1656
|
-
let n = e, r = t, { t: o } =
|
|
1656
|
+
let n = e, r = t, { t: o } = X(), s = E(), { canBrowse: c, isUploading: l, showOverlay: u, openMediaBrowser: d } = Je({
|
|
1657
1657
|
target: s,
|
|
1658
1658
|
blocked: () => !!n.readOnly,
|
|
1659
1659
|
apply: (e) => r("update:modelValue", e.url)
|
|
@@ -1676,7 +1676,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1676
1676
|
e.readOnly ? (i(), p("input", {
|
|
1677
1677
|
key: 1,
|
|
1678
1678
|
type: "url",
|
|
1679
|
-
class: g([h(
|
|
1679
|
+
class: g([h(z), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1680
1680
|
value: e.modelValue,
|
|
1681
1681
|
placeholder: e.field.placeholder || "https://...",
|
|
1682
1682
|
disabled: "",
|
|
@@ -1684,7 +1684,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1684
1684
|
}, null, 10, Er)) : (i(), p("input", {
|
|
1685
1685
|
key: 2,
|
|
1686
1686
|
type: "url",
|
|
1687
|
-
class: g(h(
|
|
1687
|
+
class: g(h(z)),
|
|
1688
1688
|
value: e.modelValue,
|
|
1689
1689
|
placeholder: e.field.placeholder || "https://...",
|
|
1690
1690
|
onInput: n[0] ||= (e) => r("update:modelValue", e.target.value)
|
|
@@ -1693,7 +1693,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1693
1693
|
key: 3,
|
|
1694
1694
|
class: "tpl:mt-2 tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
|
|
1695
1695
|
onClick: n[1] ||= (e) => h(d)()
|
|
1696
|
-
}, [k(h(
|
|
1696
|
+
}, [k(h(fe), {
|
|
1697
1697
|
size: 14,
|
|
1698
1698
|
"stroke-width": 1.5
|
|
1699
1699
|
}), m(" " + x(h(o).image.browseMedia), 1)])) : _("", !0)
|
|
@@ -1724,7 +1724,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1724
1724
|
},
|
|
1725
1725
|
emits: ["update:modelValue"],
|
|
1726
1726
|
setup(e, { emit: t }) {
|
|
1727
|
-
let n = t, { t: r } =
|
|
1727
|
+
let n = t, { t: r } = X();
|
|
1728
1728
|
return (t, o) => (i(), v(wr, {
|
|
1729
1729
|
"hide-label": e.hideLabel,
|
|
1730
1730
|
label: e.field.label,
|
|
@@ -1733,7 +1733,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1733
1733
|
}, {
|
|
1734
1734
|
default: a(() => [b("input", {
|
|
1735
1735
|
type: "number",
|
|
1736
|
-
class: g([h(
|
|
1736
|
+
class: g([h(z), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1737
1737
|
value: e.modelValue,
|
|
1738
1738
|
placeholder: e.field.placeholder,
|
|
1739
1739
|
min: e.field.min,
|
|
@@ -1767,7 +1767,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1767
1767
|
},
|
|
1768
1768
|
emits: ["update:modelValue"],
|
|
1769
1769
|
setup(e, { emit: t }) {
|
|
1770
|
-
let r = e, o = t, { t: s, format: l } =
|
|
1770
|
+
let r = e, o = t, { t: s, format: l } = X(), u = C(() => r.modelValue || []), d = C(() => !r.field.maxItems || u.value.length < r.field.maxItems), f = C(() => !r.field.minItems || u.value.length > r.field.minItems);
|
|
1771
1771
|
function y() {
|
|
1772
1772
|
if (!d.value || r.readOnly) return;
|
|
1773
1773
|
let e = {};
|
|
@@ -1802,7 +1802,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1802
1802
|
class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
|
|
1803
1803
|
title: h(s).customBlocks.fields.removeItem,
|
|
1804
1804
|
onClick: (e) => S(r)
|
|
1805
|
-
}, [k(h(
|
|
1805
|
+
}, [k(h(me), {
|
|
1806
1806
|
size: 12,
|
|
1807
1807
|
"stroke-width": 2
|
|
1808
1808
|
})], 8, Pr)) : _("", !0)]), (i(!0), p(D, null, c(e.field.fields, (a) => (i(), v(n(h(Kr)(a.type)), {
|
|
@@ -1820,9 +1820,9 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1820
1820
|
d.value && !e.readOnly ? (i(), p("button", {
|
|
1821
1821
|
key: 0,
|
|
1822
1822
|
type: "button",
|
|
1823
|
-
class: g(h(
|
|
1823
|
+
class: g(h(te)),
|
|
1824
1824
|
onClick: y
|
|
1825
|
-
}, [k(h(
|
|
1825
|
+
}, [k(h(V), {
|
|
1826
1826
|
size: 14,
|
|
1827
1827
|
"stroke-width": 2
|
|
1828
1828
|
}), m(" " + x(h(s).customBlocks.fields.addItem), 1)], 2)) : _("", !0),
|
|
@@ -1851,7 +1851,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1851
1851
|
},
|
|
1852
1852
|
emits: ["update:modelValue"],
|
|
1853
1853
|
setup(e, { emit: t }) {
|
|
1854
|
-
let n = t, { t: r } =
|
|
1854
|
+
let n = t, { t: r } = X();
|
|
1855
1855
|
return (t, o) => (i(), v(wr, {
|
|
1856
1856
|
"hide-label": e.hideLabel,
|
|
1857
1857
|
label: e.field.label,
|
|
@@ -1859,7 +1859,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1859
1859
|
"read-only": e.readOnly
|
|
1860
1860
|
}, {
|
|
1861
1861
|
default: a(() => [b("select", {
|
|
1862
|
-
class: g([h(
|
|
1862
|
+
class: g([h(z), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1863
1863
|
value: e.modelValue,
|
|
1864
1864
|
disabled: e.readOnly,
|
|
1865
1865
|
title: e.readOnly ? h(r).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
@@ -1890,7 +1890,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1890
1890
|
},
|
|
1891
1891
|
emits: ["update:modelValue"],
|
|
1892
1892
|
setup(e, { emit: t }) {
|
|
1893
|
-
let n = t, { t: r } =
|
|
1893
|
+
let n = t, { t: r } = X();
|
|
1894
1894
|
return (t, o) => (i(), v(wr, {
|
|
1895
1895
|
"hide-label": e.hideLabel,
|
|
1896
1896
|
label: e.field.label,
|
|
@@ -1900,7 +1900,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1900
1900
|
default: a(() => [e.readOnly ? (i(), p("input", {
|
|
1901
1901
|
key: 0,
|
|
1902
1902
|
type: "text",
|
|
1903
|
-
class: g([h(
|
|
1903
|
+
class: g([h(z), "tpl:opacity-60 tpl:cursor-not-allowed"]),
|
|
1904
1904
|
value: e.modelValue,
|
|
1905
1905
|
placeholder: e.field.placeholder,
|
|
1906
1906
|
disabled: "",
|
|
@@ -1935,7 +1935,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
|
|
|
1935
1935
|
},
|
|
1936
1936
|
emits: ["update:modelValue"],
|
|
1937
1937
|
setup(e, { emit: t }) {
|
|
1938
|
-
let n = t, { t: r } =
|
|
1938
|
+
let n = t, { t: r } = X();
|
|
1939
1939
|
return (t, o) => (i(), v(wr, {
|
|
1940
1940
|
"hide-label": e.hideLabel,
|
|
1941
1941
|
label: e.field.label,
|
|
@@ -1999,7 +1999,7 @@ var qr = {
|
|
|
1999
1999
|
props: { block: {} },
|
|
2000
2000
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
2001
2001
|
setup(e, { emit: t }) {
|
|
2002
|
-
let r = e, o = t, { t: s } =
|
|
2002
|
+
let r = e, o = t, { t: s } = X(), u = l(ot, []), d = C(() => u.find((e) => e.type === r.block.customType)), f = C(() => r.block), { isFetching: g, fetchError: y, fetch: S, hasDataSource: w, needsFetch: T } = Pe({
|
|
2003
2003
|
definition: d,
|
|
2004
2004
|
block: f,
|
|
2005
2005
|
onUpdate: (e, t) => {
|
|
@@ -2027,7 +2027,7 @@ var qr = {
|
|
|
2027
2027
|
type: "button",
|
|
2028
2028
|
class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:border-[var(--tpl-primary)] tpl:hover:text-[var(--tpl-primary)]",
|
|
2029
2029
|
onClick: r[1] ||= (...e) => h(S) && h(S)(...e)
|
|
2030
|
-
}, [k(h(
|
|
2030
|
+
}, [k(h(ue), { size: 12 }), m(" " + x(h(s).customBlocks.dataSource.changeButton), 1)]))])), h(y) ? (i(), p("p", ei, [k(h(se), {
|
|
2031
2031
|
size: 14,
|
|
2032
2032
|
class: "tpl:shrink-0"
|
|
2033
2033
|
}), m(" " + x(h(s).customBlocks.dataSource.fetchError), 1)])) : _("", !0)])) : _("", !0),
|
|
@@ -2068,7 +2068,7 @@ var qr = {
|
|
|
2068
2068
|
props: { block: {} },
|
|
2069
2069
|
emits: ["update"],
|
|
2070
2070
|
setup(e, { emit: t }) {
|
|
2071
|
-
let n = t, { t: r } =
|
|
2071
|
+
let n = t, { t: r } = X();
|
|
2072
2072
|
function o(e, t) {
|
|
2073
2073
|
n("update", { [e]: t });
|
|
2074
2074
|
}
|
|
@@ -2116,7 +2116,7 @@ var qr = {
|
|
|
2116
2116
|
}, {
|
|
2117
2117
|
default: a(() => [b("div", ni, [b("input", {
|
|
2118
2118
|
type: "number",
|
|
2119
|
-
class: g(h(
|
|
2119
|
+
class: g(h(R)),
|
|
2120
2120
|
value: e.block.thickness,
|
|
2121
2121
|
min: "1",
|
|
2122
2122
|
max: "10",
|
|
@@ -2131,7 +2131,7 @@ var qr = {
|
|
|
2131
2131
|
props: { block: {} },
|
|
2132
2132
|
emits: ["update"],
|
|
2133
2133
|
setup(e, { emit: t }) {
|
|
2134
|
-
let n = t, { t: r } =
|
|
2134
|
+
let n = t, { t: r } = X();
|
|
2135
2135
|
return (t, o) => (i(), v(A, {
|
|
2136
2136
|
label: h(r).html.content,
|
|
2137
2137
|
class: "tpl:mb-3.5",
|
|
@@ -2141,9 +2141,9 @@ var qr = {
|
|
|
2141
2141
|
value: e.block.content,
|
|
2142
2142
|
placeholder: "<div>...</div>",
|
|
2143
2143
|
rows: "10",
|
|
2144
|
-
class: g(h(
|
|
2144
|
+
class: g(h(re)),
|
|
2145
2145
|
onInput: o[0] ||= (e) => n("update", { content: e.target.value })
|
|
2146
|
-
}, null, 42, ai), b("p", oi, [k(h(
|
|
2146
|
+
}, null, 42, ai), b("p", oi, [k(h(U), {
|
|
2147
2147
|
size: 12,
|
|
2148
2148
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
2149
2149
|
}), m(" " + x(h(r).html.sanitizationHint), 1)])]),
|
|
@@ -2232,7 +2232,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2232
2232
|
props: { block: {} },
|
|
2233
2233
|
emits: ["update"],
|
|
2234
2234
|
setup(e, { emit: t }) {
|
|
2235
|
-
let n = e, r = t, { t: o, format: s } =
|
|
2235
|
+
let n = e, r = t, { t: o, format: s } = X(), c = l(Xe, he.liquid), u = l(lt, null), d = u ? pt(u) : null, f = l(tt, void 0), y = E(!1), S = E(!1), { start: w } = mt(() => {
|
|
2236
2236
|
y.value = !1, S.value = !1;
|
|
2237
2237
|
}, 1e3, { immediate: !1 }), T = [
|
|
2238
2238
|
300,
|
|
@@ -2248,55 +2248,55 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2248
2248
|
function ee(e) {
|
|
2249
2249
|
if (e === "custom") {
|
|
2250
2250
|
let e = n.block.width;
|
|
2251
|
-
(typeof e != "number" || T.includes(e)) && r("update",
|
|
2252
|
-
} else r("update",
|
|
2251
|
+
(typeof e != "number" || T.includes(e)) && r("update", U.widthUpdates(ki));
|
|
2252
|
+
} else r("update", U.widthUpdates(e === "full" ? "full" : Number(e)));
|
|
2253
2253
|
}
|
|
2254
|
-
function
|
|
2254
|
+
function te(e) {
|
|
2255
2255
|
I("height", e === "custom" ? Ai : void 0);
|
|
2256
2256
|
}
|
|
2257
|
-
function
|
|
2257
|
+
function ne(e) {
|
|
2258
2258
|
I("fluidOnMobile", e === "always" || e !== "never" && void 0);
|
|
2259
2259
|
}
|
|
2260
|
-
function
|
|
2260
|
+
function B(e) {
|
|
2261
2261
|
let t = Number(e);
|
|
2262
2262
|
!Number.isFinite(t) || t <= 0 || I("height", t);
|
|
2263
2263
|
}
|
|
2264
|
-
function ne(e) {
|
|
2265
|
-
I("borderRadius", me(e) === null ? void 0 : e);
|
|
2266
|
-
}
|
|
2267
2264
|
function re(e) {
|
|
2268
|
-
|
|
2269
|
-
!Number.isFinite(t) || t <= 0 || r("update", W.widthUpdates(t));
|
|
2265
|
+
I("borderRadius", _e(e) === null ? void 0 : e);
|
|
2270
2266
|
}
|
|
2271
2267
|
function ie(e) {
|
|
2268
|
+
let t = Number(e);
|
|
2269
|
+
!Number.isFinite(t) || t <= 0 || r("update", U.widthUpdates(t));
|
|
2270
|
+
}
|
|
2271
|
+
function ae(e) {
|
|
2272
2272
|
e !== n.block.src && r("update", {
|
|
2273
2273
|
src: e,
|
|
2274
2274
|
...Ve(null)
|
|
2275
2275
|
});
|
|
2276
2276
|
}
|
|
2277
|
-
function
|
|
2277
|
+
function oe(e) {
|
|
2278
2278
|
r("update", {
|
|
2279
2279
|
src: e.url,
|
|
2280
2280
|
...Ve(Ie(e.width, e.height))
|
|
2281
2281
|
}), e.alt && (I("alt", e.alt), S.value = !0), y.value = !0, w();
|
|
2282
2282
|
}
|
|
2283
|
-
let
|
|
2284
|
-
target:
|
|
2285
|
-
blocked:
|
|
2286
|
-
apply:
|
|
2287
|
-
}),
|
|
2283
|
+
let se = E(), V = C(() => Q(n.block.src, c)), { canBrowse: ce, isUploading: le, showOverlay: ue, openMediaBrowser: de } = Je({
|
|
2284
|
+
target: se,
|
|
2285
|
+
blocked: V,
|
|
2286
|
+
apply: oe
|
|
2287
|
+
}), pe = Fe(() => V.value || !n.block.src || Be(n.block) ? void 0 : n.block.src), H = fn(() => pe.value), me = C(() => d ? He(d.content.value, n.block.id, f) : null), U = ci({
|
|
2288
2288
|
block: () => n.block,
|
|
2289
|
-
room: () =>
|
|
2290
|
-
measured: () =>
|
|
2291
|
-
}), { available:
|
|
2292
|
-
function
|
|
2293
|
-
let e =
|
|
2289
|
+
room: () => me.value,
|
|
2290
|
+
measured: () => H.value
|
|
2291
|
+
}), { available: W, locked: G, derivedHeight: K, cappedHeight: q } = U;
|
|
2292
|
+
function J() {
|
|
2293
|
+
let e = U.setLocked(!G.value);
|
|
2294
2294
|
e && r("update", e);
|
|
2295
2295
|
}
|
|
2296
|
-
let
|
|
2297
|
-
function
|
|
2298
|
-
|
|
2299
|
-
let t =
|
|
2296
|
+
let Y = E(null);
|
|
2297
|
+
function Z(e) {
|
|
2298
|
+
Y.value = e;
|
|
2299
|
+
let t = U.heightUpdates(Number(e));
|
|
2300
2300
|
t && r("update", t);
|
|
2301
2301
|
}
|
|
2302
2302
|
return (t, n) => (i(), p(D, null, [
|
|
@@ -2307,25 +2307,25 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2307
2307
|
}, {
|
|
2308
2308
|
default: a(() => [b("div", {
|
|
2309
2309
|
ref_key: "dropZoneRef",
|
|
2310
|
-
ref:
|
|
2310
|
+
ref: se,
|
|
2311
2311
|
class: "tpl:relative"
|
|
2312
2312
|
}, [
|
|
2313
|
-
h(
|
|
2313
|
+
h(ue) ? (i(), v(ze, {
|
|
2314
2314
|
key: 0,
|
|
2315
|
-
uploading: h(
|
|
2315
|
+
uploading: h(le)
|
|
2316
2316
|
}, null, 8, ["uploading"])) : _("", !0),
|
|
2317
2317
|
k(N, {
|
|
2318
2318
|
"model-value": e.block.src,
|
|
2319
2319
|
type: "url",
|
|
2320
2320
|
placeholder: h(o).image.imageUrlPlaceholder,
|
|
2321
2321
|
pulse: y.value,
|
|
2322
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
2322
|
+
"onUpdate:modelValue": n[0] ||= (e) => ae(e)
|
|
2323
2323
|
}, null, 8, [
|
|
2324
2324
|
"model-value",
|
|
2325
2325
|
"placeholder",
|
|
2326
2326
|
"pulse"
|
|
2327
2327
|
]),
|
|
2328
|
-
h(
|
|
2328
|
+
h(ce) ? (i(), p("button", {
|
|
2329
2329
|
key: 1,
|
|
2330
2330
|
class: "tpl:mt-2 tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all",
|
|
2331
2331
|
style: {
|
|
@@ -2333,15 +2333,15 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2333
2333
|
color: "var(--tpl-primary)",
|
|
2334
2334
|
"background-color": "var(--tpl-bg)"
|
|
2335
2335
|
},
|
|
2336
|
-
onClick: n[1] ||= (...e) => h(
|
|
2337
|
-
}, [k(h(
|
|
2336
|
+
onClick: n[1] ||= (...e) => h(de) && h(de)(...e)
|
|
2337
|
+
}, [k(h(fe), {
|
|
2338
2338
|
size: 14,
|
|
2339
2339
|
"stroke-width": 1.5
|
|
2340
2340
|
}), m(" " + x(h(o).image.browseMedia), 1)])) : _("", !0)
|
|
2341
2341
|
], 512)]),
|
|
2342
2342
|
_: 1
|
|
2343
2343
|
}, 8, ["label"]),
|
|
2344
|
-
h(
|
|
2344
|
+
h(Q)(e.block.src, h(c)) ? (i(), v(A, {
|
|
2345
2345
|
key: 0,
|
|
2346
2346
|
class: "tpl:mb-3.5",
|
|
2347
2347
|
path: "placeholderUrl"
|
|
@@ -2349,7 +2349,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2349
2349
|
label: a(() => [m(x(h(o).image.placeholderUrl) + " ", 1), b("span", li, x(h(o).image.optional), 1)]),
|
|
2350
2350
|
default: a(() => [b("input", {
|
|
2351
2351
|
type: "url",
|
|
2352
|
-
class: g(h(
|
|
2352
|
+
class: g(h(z)),
|
|
2353
2353
|
value: e.block.placeholderUrl || "",
|
|
2354
2354
|
placeholder: h(o).image.placeholderUrlPlaceholder,
|
|
2355
2355
|
title: h(o).image.placeholderUrlTooltip,
|
|
@@ -2401,7 +2401,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2401
2401
|
path: "width"
|
|
2402
2402
|
}, {
|
|
2403
2403
|
default: a(() => [b("select", {
|
|
2404
|
-
class: g(h(
|
|
2404
|
+
class: g(h(z)),
|
|
2405
2405
|
"data-testid": "image-width-mode",
|
|
2406
2406
|
value: j.value,
|
|
2407
2407
|
onChange: n[5] ||= (e) => ee(e.target.value)
|
|
@@ -2414,10 +2414,10 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2414
2414
|
], 42, fi), j.value === "custom" ? (i(), p("div", hi, [b("input", {
|
|
2415
2415
|
type: "number",
|
|
2416
2416
|
"data-testid": "image-width-input",
|
|
2417
|
-
class: g(h(
|
|
2417
|
+
class: g(h(R)),
|
|
2418
2418
|
value: typeof e.block.width == "number" ? e.block.width : ki,
|
|
2419
2419
|
min: "20",
|
|
2420
|
-
onInput: n[6] ||= (e) =>
|
|
2420
|
+
onInput: n[6] ||= (e) => ie(e.target.value)
|
|
2421
2421
|
}, null, 42, gi), b("span", { class: g(h(L)) }, "px", 2)])) : _("", !0)]),
|
|
2422
2422
|
_: 1
|
|
2423
2423
|
}, 8, ["label"]),
|
|
@@ -2427,10 +2427,10 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2427
2427
|
path: "fluidOnMobile"
|
|
2428
2428
|
}, {
|
|
2429
2429
|
default: a(() => [b("select", {
|
|
2430
|
-
class: g(h(
|
|
2430
|
+
class: g(h(z)),
|
|
2431
2431
|
"data-testid": "image-fluid-on-mobile",
|
|
2432
2432
|
value: F.value,
|
|
2433
|
-
onChange: n[7] ||= (e) =>
|
|
2433
|
+
onChange: n[7] ||= (e) => ne(e.target.value)
|
|
2434
2434
|
}, [
|
|
2435
2435
|
b("option", vi, x(h(o).image.fluidOnMobileAuto), 1),
|
|
2436
2436
|
b("option", yi, x(h(o).image.fluidOnMobileAlways), 1),
|
|
@@ -2444,40 +2444,40 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2444
2444
|
label: h(o).image.height
|
|
2445
2445
|
}, O({
|
|
2446
2446
|
default: a(() => [
|
|
2447
|
-
h(
|
|
2447
|
+
h(G) ? (i(), p(D, { key: 0 }, [b("div", xi, [b("input", {
|
|
2448
2448
|
type: "number",
|
|
2449
2449
|
"data-testid": "image-locked-height-input",
|
|
2450
|
-
class: g(h(
|
|
2451
|
-
value:
|
|
2450
|
+
class: g(h(R)),
|
|
2451
|
+
value: Y.value ?? h(K) ?? "",
|
|
2452
2452
|
min: "1",
|
|
2453
|
-
onInput: n[8] ||= (e) =>
|
|
2454
|
-
onBlur: n[9] ||= (e) =>
|
|
2455
|
-
}, null, 42, Si), b("span", { class: g(h(L)) }, "px", 2)]), h(
|
|
2456
|
-
h(
|
|
2453
|
+
onInput: n[8] ||= (e) => Z(e.target.value),
|
|
2454
|
+
onBlur: n[9] ||= (e) => Y.value = null
|
|
2455
|
+
}, null, 42, Si), b("span", { class: g(h(L)) }, "px", 2)]), h(q) === null ? _("", !0) : (i(), p("p", Ci, x(h(s)(h(o).image.heightCapped, { height: h(q) })), 1))], 64)) : _("", !0),
|
|
2456
|
+
h(G) ? _("", !0) : (i(), p("select", {
|
|
2457
2457
|
key: 1,
|
|
2458
|
-
class: g(h(
|
|
2458
|
+
class: g(h(z)),
|
|
2459
2459
|
"data-testid": "image-height-mode",
|
|
2460
2460
|
value: M.value,
|
|
2461
|
-
onChange: n[10] ||= (e) =>
|
|
2461
|
+
onChange: n[10] ||= (e) => te(e.target.value)
|
|
2462
2462
|
}, [b("option", Ti, x(h(o).image.heightAuto), 1), b("option", Ei, x(h(o).image.heightCustom), 1)], 42, wi)),
|
|
2463
|
-
!h(
|
|
2463
|
+
!h(G) && M.value === "custom" ? (i(), p("div", Di, [b("input", {
|
|
2464
2464
|
type: "number",
|
|
2465
2465
|
"data-testid": "image-height-input",
|
|
2466
|
-
class: g(h(
|
|
2466
|
+
class: g(h(R)),
|
|
2467
2467
|
value: e.block.height,
|
|
2468
2468
|
min: "20",
|
|
2469
|
-
onInput: n[11] ||= (e) =>
|
|
2469
|
+
onInput: n[11] ||= (e) => B(e.target.value)
|
|
2470
2470
|
}, null, 42, Oi), b("span", { class: g(h(L)) }, "px", 2)])) : _("", !0)
|
|
2471
2471
|
]),
|
|
2472
2472
|
_: 2
|
|
2473
|
-
}, [h(
|
|
2473
|
+
}, [h(W) ? {
|
|
2474
2474
|
name: "label-actions",
|
|
2475
2475
|
fn: a(() => [k(St, {
|
|
2476
|
-
linked: h(
|
|
2476
|
+
linked: h(G),
|
|
2477
2477
|
"link-label": h(o).image.lockAspectRatio,
|
|
2478
2478
|
"unlink-label": h(o).image.unlockAspectRatio,
|
|
2479
2479
|
testid: "image-aspect-lock",
|
|
2480
|
-
onToggle:
|
|
2480
|
+
onToggle: J
|
|
2481
2481
|
}, null, 8, [
|
|
2482
2482
|
"linked",
|
|
2483
2483
|
"link-label",
|
|
@@ -2490,7 +2490,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2490
2490
|
"model-value": e.block.borderRadius,
|
|
2491
2491
|
label: h(o).image.borderRadius,
|
|
2492
2492
|
"testid-prefix": "image",
|
|
2493
|
-
"onUpdate:modelValue":
|
|
2493
|
+
"onUpdate:modelValue": re
|
|
2494
2494
|
}, null, 8, ["model-value", "label"]),
|
|
2495
2495
|
k(Et, {
|
|
2496
2496
|
path: "border",
|
|
@@ -2568,7 +2568,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2568
2568
|
},
|
|
2569
2569
|
emits: ["update"],
|
|
2570
2570
|
setup(e, { emit: t }) {
|
|
2571
|
-
let n = e, r = t, { t: o } =
|
|
2571
|
+
let n = e, r = t, { t: o } = X(), s = C(() => [
|
|
2572
2572
|
{
|
|
2573
2573
|
key: "openInNewTab",
|
|
2574
2574
|
label: o.menu.openInNewTab
|
|
@@ -2585,17 +2585,17 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2585
2585
|
{
|
|
2586
2586
|
value: "left",
|
|
2587
2587
|
label: o.title.alignLeft,
|
|
2588
|
-
icon:
|
|
2588
|
+
icon: W
|
|
2589
2589
|
},
|
|
2590
2590
|
{
|
|
2591
2591
|
value: "center",
|
|
2592
2592
|
label: o.title.alignCenter,
|
|
2593
|
-
icon:
|
|
2593
|
+
icon: de
|
|
2594
2594
|
},
|
|
2595
2595
|
{
|
|
2596
2596
|
value: "right",
|
|
2597
2597
|
label: o.title.alignRight,
|
|
2598
|
-
icon:
|
|
2598
|
+
icon: Y
|
|
2599
2599
|
}
|
|
2600
2600
|
]);
|
|
2601
2601
|
function u(e, t) {
|
|
@@ -2634,7 +2634,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2634
2634
|
}, {
|
|
2635
2635
|
default: a(() => [b("input", {
|
|
2636
2636
|
type: "text",
|
|
2637
|
-
class: g([h(
|
|
2637
|
+
class: g([h(z), "tpl:flex-1"]),
|
|
2638
2638
|
value: t.text,
|
|
2639
2639
|
placeholder: h(o).menu.text,
|
|
2640
2640
|
onInput: (e) => f(t.id, "text", e.target.value)
|
|
@@ -2644,7 +2644,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2644
2644
|
class: g(h(I)),
|
|
2645
2645
|
title: h(o).menu.removeItem,
|
|
2646
2646
|
onClick: (e) => _(t.id)
|
|
2647
|
-
}, [k(h(
|
|
2647
|
+
}, [k(h(J), {
|
|
2648
2648
|
size: 14,
|
|
2649
2649
|
"stroke-width": 2
|
|
2650
2650
|
})], 10, Fi)]),
|
|
@@ -2695,9 +2695,9 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2695
2695
|
_: 2
|
|
2696
2696
|
}, 1032, ["path", "label"])])
|
|
2697
2697
|
]))), 128)), b("button", {
|
|
2698
|
-
class: g(h(
|
|
2698
|
+
class: g(h(te)),
|
|
2699
2699
|
onClick: d
|
|
2700
|
-
}, [k(h(
|
|
2700
|
+
}, [k(h(V), {
|
|
2701
2701
|
size: 14,
|
|
2702
2702
|
"stroke-width": 2
|
|
2703
2703
|
}), m(" " + x(h(o).menu.addItem), 1)], 2)])]),
|
|
@@ -2708,7 +2708,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2708
2708
|
label: h(o).menu.fontFamily
|
|
2709
2709
|
}, {
|
|
2710
2710
|
default: a(() => [b("select", {
|
|
2711
|
-
class: g(h(
|
|
2711
|
+
class: g(h(z)),
|
|
2712
2712
|
value: h(je)(e.block.fontFamily),
|
|
2713
2713
|
onChange: n[0] ||= (e) => u("fontFamily", e.target.value || void 0)
|
|
2714
2714
|
}, [b("option", zi, x(h(o).title.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
@@ -2767,7 +2767,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2767
2767
|
}, {
|
|
2768
2768
|
default: a(() => [b("input", {
|
|
2769
2769
|
type: "text",
|
|
2770
|
-
class: g(h(
|
|
2770
|
+
class: g(h(z)),
|
|
2771
2771
|
value: e.block.separator,
|
|
2772
2772
|
onInput: n[5] ||= (e) => u("separator", e.target.value)
|
|
2773
2773
|
}, null, 42, Vi)]),
|
|
@@ -2803,7 +2803,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2803
2803
|
props: { block: {} },
|
|
2804
2804
|
emits: ["update"],
|
|
2805
2805
|
setup(e, { emit: t }) {
|
|
2806
|
-
let n = t, { t: r } =
|
|
2806
|
+
let n = t, { t: r } = X();
|
|
2807
2807
|
return (t, o) => (i(), v(A, {
|
|
2808
2808
|
label: h(r).paragraph.paragraphSpacing,
|
|
2809
2809
|
class: "tpl:mb-3.5",
|
|
@@ -2812,8 +2812,8 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2812
2812
|
}, {
|
|
2813
2813
|
default: a(() => [b("div", Ui, [b("input", {
|
|
2814
2814
|
type: "number",
|
|
2815
|
-
class: g(h(
|
|
2816
|
-
value: e.block.paragraphSpacing ?? h(
|
|
2815
|
+
class: g(h(R)),
|
|
2816
|
+
value: e.block.paragraphSpacing ?? h(Oe).paragraphGap,
|
|
2817
2817
|
min: "0",
|
|
2818
2818
|
max: "64",
|
|
2819
2819
|
onInput: o[0] ||= (e) => n("update", { paragraphSpacing: Number(e.target.value) })
|
|
@@ -2824,7 +2824,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
|
|
|
2824
2824
|
});
|
|
2825
2825
|
// src/utils/rebalanceColumnChildren.ts
|
|
2826
2826
|
function Ki(e, t) {
|
|
2827
|
-
let n =
|
|
2827
|
+
let n = ke(t);
|
|
2828
2828
|
if (e.length === n) return e;
|
|
2829
2829
|
if (e.length < n) {
|
|
2830
2830
|
let t = Array.from({ length: n - e.length }, () => []);
|
|
@@ -2848,7 +2848,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2848
2848
|
props: { block: {} },
|
|
2849
2849
|
emits: ["update"],
|
|
2850
2850
|
setup(e, { emit: t }) {
|
|
2851
|
-
let n = e, r = t, { t: o } =
|
|
2851
|
+
let n = e, r = t, { t: o } = X(), s = l(tt, void 0), u = l(et, void 0), d = s !== void 0 && xe(s), f = C(() => u !== !1 || !!n.block.wrapper), m = C(() => d && !n.block.wrapper), y = C(() => d && f.value), S = C(() => ye(n.block)?.applied === !0), w = C(() => [
|
|
2852
2852
|
{
|
|
2853
2853
|
value: "1",
|
|
2854
2854
|
label: o.section.column1
|
|
@@ -2923,8 +2923,8 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
2923
2923
|
F({ borderRadius: e });
|
|
2924
2924
|
}
|
|
2925
2925
|
return (t, n) => (i(), p(D, null, [
|
|
2926
|
-
b("div", qi, [b("label", { class: g(h(
|
|
2927
|
-
class: g(h(
|
|
2926
|
+
b("div", qi, [b("label", { class: g(h(B)) }, x(h(o).section.columns), 3), b("select", {
|
|
2927
|
+
class: g(h(z)),
|
|
2928
2928
|
value: e.block.columns,
|
|
2929
2929
|
onChange: T
|
|
2930
2930
|
}, [(i(!0), p(D, null, c(w.value, (e) => (i(), p("option", {
|
|
@@ -3059,7 +3059,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3059
3059
|
props: { block: {} },
|
|
3060
3060
|
emits: ["update"],
|
|
3061
3061
|
setup(e, { emit: t }) {
|
|
3062
|
-
let n = e, r = t, { t: o } =
|
|
3062
|
+
let n = e, r = t, { t: o } = X();
|
|
3063
3063
|
function s(e, t) {
|
|
3064
3064
|
r("update", { [e]: t });
|
|
3065
3065
|
}
|
|
@@ -3082,7 +3082,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3082
3082
|
r("update", { icons: n.block.icons.filter((t) => t.id !== e) });
|
|
3083
3083
|
}
|
|
3084
3084
|
return (t, n) => (i(), p(D, null, [
|
|
3085
|
-
b("div", ea, [b("label", { class: g(h(
|
|
3085
|
+
b("div", ea, [b("label", { class: g(h(B)) }, x(h(o).social.icons), 3), b("div", ta, [(i(!0), p(D, null, c(e.block.icons, (e) => (i(), p("div", {
|
|
3086
3086
|
key: e.id,
|
|
3087
3087
|
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"
|
|
3088
3088
|
}, [b("div", na, [k(A, {
|
|
@@ -3091,7 +3091,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3091
3091
|
}, {
|
|
3092
3092
|
default: a(() => [b("select", {
|
|
3093
3093
|
"data-testid": "social-platform-select",
|
|
3094
|
-
class: g([h(
|
|
3094
|
+
class: g([h(z), "tpl:flex-1"]),
|
|
3095
3095
|
value: e.platform,
|
|
3096
3096
|
onChange: (t) => u(e.id, "platform", t.target.value)
|
|
3097
3097
|
}, [(i(!0), p(D, null, c(h(Ke), (e) => (i(), p("option", {
|
|
@@ -3103,7 +3103,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3103
3103
|
class: g(h(I)),
|
|
3104
3104
|
title: h(o).social.removeIcon,
|
|
3105
3105
|
onClick: (t) => d(e.id)
|
|
3106
|
-
}, [k(h(
|
|
3106
|
+
}, [k(h(J), {
|
|
3107
3107
|
size: 14,
|
|
3108
3108
|
"stroke-width": 2
|
|
3109
3109
|
})], 10, aa)]), k(A, {
|
|
@@ -3122,9 +3122,9 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3122
3122
|
])]),
|
|
3123
3123
|
_: 2
|
|
3124
3124
|
}, 1032, ["path", "label"])]))), 128)), b("button", {
|
|
3125
|
-
class: g(h(
|
|
3125
|
+
class: g(h(te)),
|
|
3126
3126
|
onClick: l
|
|
3127
|
-
}, [k(h(
|
|
3127
|
+
}, [k(h(V), {
|
|
3128
3128
|
size: 14,
|
|
3129
3129
|
"stroke-width": 2
|
|
3130
3130
|
}), m(" " + x(h(o).social.addIcon), 1)], 2)])]),
|
|
@@ -3134,7 +3134,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3134
3134
|
path: "iconStyle"
|
|
3135
3135
|
}, {
|
|
3136
3136
|
default: a(() => [b("select", {
|
|
3137
|
-
class: g(h(
|
|
3137
|
+
class: g(h(z)),
|
|
3138
3138
|
value: e.block.iconStyle,
|
|
3139
3139
|
onChange: n[0] ||= (e) => s("iconStyle", e.target.value)
|
|
3140
3140
|
}, [
|
|
@@ -3154,7 +3154,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3154
3154
|
}, {
|
|
3155
3155
|
default: a(() => [b("select", {
|
|
3156
3156
|
"data-testid": "social-tone-select",
|
|
3157
|
-
class: g(h(
|
|
3157
|
+
class: g(h(z)),
|
|
3158
3158
|
value: e.block.iconTone ?? "brand",
|
|
3159
3159
|
onChange: n[1] ||= (e) => s("iconTone", e.target.value)
|
|
3160
3160
|
}, [
|
|
@@ -3196,7 +3196,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3196
3196
|
}, {
|
|
3197
3197
|
default: a(() => [b("div", _a, [b("input", {
|
|
3198
3198
|
type: "number",
|
|
3199
|
-
class: g(h(
|
|
3199
|
+
class: g(h(R)),
|
|
3200
3200
|
value: e.block.spacing,
|
|
3201
3201
|
min: "0",
|
|
3202
3202
|
max: "50",
|
|
@@ -3214,17 +3214,17 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3214
3214
|
{
|
|
3215
3215
|
value: "left",
|
|
3216
3216
|
label: h(o).title.alignLeft,
|
|
3217
|
-
icon: h(
|
|
3217
|
+
icon: h(W)
|
|
3218
3218
|
},
|
|
3219
3219
|
{
|
|
3220
3220
|
value: "center",
|
|
3221
3221
|
label: h(o).title.alignCenter,
|
|
3222
|
-
icon: h(
|
|
3222
|
+
icon: h(de)
|
|
3223
3223
|
},
|
|
3224
3224
|
{
|
|
3225
3225
|
value: "right",
|
|
3226
3226
|
label: h(o).title.alignRight,
|
|
3227
|
-
icon: h(
|
|
3227
|
+
icon: h(Y)
|
|
3228
3228
|
}
|
|
3229
3229
|
],
|
|
3230
3230
|
"model-value": e.block.align,
|
|
@@ -3239,7 +3239,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3239
3239
|
props: { block: {} },
|
|
3240
3240
|
emits: ["update"],
|
|
3241
3241
|
setup(e, { emit: t }) {
|
|
3242
|
-
let n = t, { t: r } =
|
|
3242
|
+
let n = t, { t: r } = X();
|
|
3243
3243
|
return (t, o) => (i(), v(A, {
|
|
3244
3244
|
label: h(r).spacer.height,
|
|
3245
3245
|
class: "tpl:mb-3.5",
|
|
@@ -3247,7 +3247,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3247
3247
|
}, {
|
|
3248
3248
|
default: a(() => [b("div", ba, [b("input", {
|
|
3249
3249
|
type: "number",
|
|
3250
|
-
class: g(h(
|
|
3250
|
+
class: g(h(R)),
|
|
3251
3251
|
value: e.block.height,
|
|
3252
3252
|
min: "10",
|
|
3253
3253
|
max: "100",
|
|
@@ -3271,7 +3271,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3271
3271
|
},
|
|
3272
3272
|
emits: ["update"],
|
|
3273
3273
|
setup(e, { emit: t }) {
|
|
3274
|
-
let n = e, r = t, { t: o } =
|
|
3274
|
+
let n = e, r = t, { t: o } = X(), s = C(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
|
|
3275
3275
|
function l(e, t) {
|
|
3276
3276
|
r("update", { [e]: t });
|
|
3277
3277
|
}
|
|
@@ -3306,12 +3306,12 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3306
3306
|
r("update", { rows: t });
|
|
3307
3307
|
}
|
|
3308
3308
|
return (t, n) => (i(), p(D, null, [
|
|
3309
|
-
b("div", wa, [b("label", { class: g(h(
|
|
3309
|
+
b("div", wa, [b("label", { class: g(h(B)) }, x(h(o).table.dimensions), 3), b("div", Ta, [b("div", Ea, [b("span", Da, x(h(o).table.rows), 1), b("div", Oa, [
|
|
3310
3310
|
b("button", {
|
|
3311
3311
|
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",
|
|
3312
3312
|
disabled: e.block.rows.length <= 1,
|
|
3313
3313
|
onClick: n[0] ||= (t) => d(e.block.rows[e.block.rows.length - 1].id)
|
|
3314
|
-
}, [k(h(
|
|
3314
|
+
}, [k(h(H), {
|
|
3315
3315
|
size: 12,
|
|
3316
3316
|
"stroke-width": 2
|
|
3317
3317
|
})], 8, ka),
|
|
@@ -3319,7 +3319,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3319
3319
|
b("button", {
|
|
3320
3320
|
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)]",
|
|
3321
3321
|
onClick: u
|
|
3322
|
-
}, [k(h(
|
|
3322
|
+
}, [k(h(V), {
|
|
3323
3323
|
size: 12,
|
|
3324
3324
|
"stroke-width": 2
|
|
3325
3325
|
})])
|
|
@@ -3328,7 +3328,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3328
3328
|
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",
|
|
3329
3329
|
disabled: s.value <= 1,
|
|
3330
3330
|
onClick: n[1] ||= (e) => m(s.value - 1)
|
|
3331
|
-
}, [k(h(
|
|
3331
|
+
}, [k(h(H), {
|
|
3332
3332
|
size: 12,
|
|
3333
3333
|
"stroke-width": 2
|
|
3334
3334
|
})], 8, Pa),
|
|
@@ -3336,7 +3336,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3336
3336
|
b("button", {
|
|
3337
3337
|
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)]",
|
|
3338
3338
|
onClick: f
|
|
3339
|
-
}, [k(h(
|
|
3339
|
+
}, [k(h(V), {
|
|
3340
3340
|
size: 12,
|
|
3341
3341
|
"stroke-width": 2
|
|
3342
3342
|
})])
|
|
@@ -3368,7 +3368,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3368
3368
|
}, {
|
|
3369
3369
|
default: a(() => [k(M, {
|
|
3370
3370
|
"model-value": e.block.headerBackgroundColor ?? "",
|
|
3371
|
-
"seed-color": h(
|
|
3371
|
+
"seed-color": h(ne),
|
|
3372
3372
|
placeholder: h(o).table.noHeaderBg,
|
|
3373
3373
|
"onUpdate:modelValue": n[3] ||= (e) => l("headerBackgroundColor", e || null)
|
|
3374
3374
|
}, null, 8, [
|
|
@@ -3396,7 +3396,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3396
3396
|
}, {
|
|
3397
3397
|
default: a(() => [b("div", Ia, [b("input", {
|
|
3398
3398
|
type: "number",
|
|
3399
|
-
class: g(h(
|
|
3399
|
+
class: g(h(R)),
|
|
3400
3400
|
value: e.block.borderWidth,
|
|
3401
3401
|
min: "0",
|
|
3402
3402
|
max: "10",
|
|
@@ -3411,7 +3411,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3411
3411
|
}, {
|
|
3412
3412
|
default: a(() => [b("div", Ra, [b("input", {
|
|
3413
3413
|
type: "number",
|
|
3414
|
-
class: g(h(
|
|
3414
|
+
class: g(h(R)),
|
|
3415
3415
|
value: e.block.cellPadding,
|
|
3416
3416
|
min: "0",
|
|
3417
3417
|
max: "30",
|
|
@@ -3425,7 +3425,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3425
3425
|
path: "fontFamily"
|
|
3426
3426
|
}, {
|
|
3427
3427
|
default: a(() => [b("select", {
|
|
3428
|
-
class: g(h(
|
|
3428
|
+
class: g(h(z)),
|
|
3429
3429
|
value: h(je)(e.block.fontFamily),
|
|
3430
3430
|
onChange: n[7] ||= (e) => l("fontFamily", e.target.value || void 0)
|
|
3431
3431
|
}, [b("option", Va, x(h(o).title.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
@@ -3441,7 +3441,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3441
3441
|
}, {
|
|
3442
3442
|
default: a(() => [b("div", Ua, [b("input", {
|
|
3443
3443
|
type: "number",
|
|
3444
|
-
class: g(h(
|
|
3444
|
+
class: g(h(R)),
|
|
3445
3445
|
value: e.block.fontSize,
|
|
3446
3446
|
min: "10",
|
|
3447
3447
|
max: "32",
|
|
@@ -3470,17 +3470,17 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3470
3470
|
{
|
|
3471
3471
|
value: "left",
|
|
3472
3472
|
label: h(o).title.alignLeft,
|
|
3473
|
-
icon: h(
|
|
3473
|
+
icon: h(W)
|
|
3474
3474
|
},
|
|
3475
3475
|
{
|
|
3476
3476
|
value: "center",
|
|
3477
3477
|
label: h(o).title.alignCenter,
|
|
3478
|
-
icon: h(
|
|
3478
|
+
icon: h(de)
|
|
3479
3479
|
},
|
|
3480
3480
|
{
|
|
3481
3481
|
value: "right",
|
|
3482
3482
|
label: h(o).title.alignRight,
|
|
3483
|
-
icon: h(
|
|
3483
|
+
icon: h(Y)
|
|
3484
3484
|
}
|
|
3485
3485
|
],
|
|
3486
3486
|
"model-value": e.block.textAlign,
|
|
@@ -3498,7 +3498,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3498
3498
|
},
|
|
3499
3499
|
emits: ["update"],
|
|
3500
3500
|
setup(e, { emit: t }) {
|
|
3501
|
-
let n = t, { t: r } =
|
|
3501
|
+
let n = t, { t: r } = X();
|
|
3502
3502
|
function o(e, t) {
|
|
3503
3503
|
n("update", { [e]: t });
|
|
3504
3504
|
}
|
|
@@ -3509,7 +3509,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3509
3509
|
path: "level"
|
|
3510
3510
|
}, {
|
|
3511
3511
|
default: a(() => [b("select", {
|
|
3512
|
-
class: g(h(
|
|
3512
|
+
class: g(h(z)),
|
|
3513
3513
|
value: e.block.level,
|
|
3514
3514
|
onChange: n[0] ||= (e) => o("level", Number(e.target.value))
|
|
3515
3515
|
}, [
|
|
@@ -3526,7 +3526,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3526
3526
|
path: "fontFamily"
|
|
3527
3527
|
}, {
|
|
3528
3528
|
default: a(() => [b("select", {
|
|
3529
|
-
class: g(h(
|
|
3529
|
+
class: g(h(z)),
|
|
3530
3530
|
value: h(je)(e.block.fontFamily),
|
|
3531
3531
|
onChange: n[1] ||= (e) => o("fontFamily", e.target.value || void 0)
|
|
3532
3532
|
}, [b("option", Qa, x(h(r).title.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
|
|
@@ -3556,17 +3556,17 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3556
3556
|
{
|
|
3557
3557
|
value: "left",
|
|
3558
3558
|
label: h(r).title.alignLeft,
|
|
3559
|
-
icon: h(
|
|
3559
|
+
icon: h(W)
|
|
3560
3560
|
},
|
|
3561
3561
|
{
|
|
3562
3562
|
value: "center",
|
|
3563
3563
|
label: h(r).title.alignCenter,
|
|
3564
|
-
icon: h(
|
|
3564
|
+
icon: h(de)
|
|
3565
3565
|
},
|
|
3566
3566
|
{
|
|
3567
3567
|
value: "right",
|
|
3568
3568
|
label: h(r).title.alignRight,
|
|
3569
|
-
icon: h(
|
|
3569
|
+
icon: h(Y)
|
|
3570
3570
|
}
|
|
3571
3571
|
],
|
|
3572
3572
|
"model-value": e.block.textAlign,
|
|
@@ -3591,11 +3591,11 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3591
3591
|
props: { block: {} },
|
|
3592
3592
|
emits: ["update"],
|
|
3593
3593
|
setup(e, { emit: t }) {
|
|
3594
|
-
let n = e, r = t, { t: o } =
|
|
3594
|
+
let n = e, r = t, { t: o } = X(), s = l(nt, null), c = l(Xe, he.liquid), u = Re(), d = [
|
|
3595
3595
|
300,
|
|
3596
3596
|
400,
|
|
3597
3597
|
500
|
|
3598
|
-
], f = C(() => !!s), y = C(() =>
|
|
3598
|
+
], f = C(() => !!s), y = C(() => Q(n.block.url, c)), S = C(() => {
|
|
3599
3599
|
let e = n.block.width;
|
|
3600
3600
|
return e === "full" ? "full" : d.includes(e) ? String(e) : "custom";
|
|
3601
3601
|
}), w = C(() => typeof n.block.height == "number" ? "custom" : "auto"), T = E(!1), { start: O } = mt(() => {
|
|
@@ -3621,7 +3621,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3621
3621
|
let t = Number(e);
|
|
3622
3622
|
!Number.isFinite(t) || t <= 0 || j("height", t);
|
|
3623
3623
|
}
|
|
3624
|
-
async function
|
|
3624
|
+
async function te() {
|
|
3625
3625
|
let e = await s?.({ accept: ["images"] });
|
|
3626
3626
|
u.alive && e && (j("thumbnailUrl", e.url), T.value = !0, O());
|
|
3627
3627
|
}
|
|
@@ -3665,7 +3665,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3665
3665
|
label: a(() => [m(x(h(o).video.placeholderUrl) + " ", 1), b("span", to, x(h(o).video.optional), 1)]),
|
|
3666
3666
|
default: a(() => [b("input", {
|
|
3667
3667
|
type: "url",
|
|
3668
|
-
class: g(h(
|
|
3668
|
+
class: g(h(z)),
|
|
3669
3669
|
value: e.block.placeholderUrl || "",
|
|
3670
3670
|
placeholder: h(o).video.placeholderUrlPlaceholder,
|
|
3671
3671
|
title: h(o).video.placeholderUrlTooltip,
|
|
@@ -3696,8 +3696,8 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3696
3696
|
color: "var(--tpl-primary)",
|
|
3697
3697
|
"background-color": "var(--tpl-bg)"
|
|
3698
3698
|
},
|
|
3699
|
-
onClick:
|
|
3700
|
-
}, [k(h(
|
|
3699
|
+
onClick: te
|
|
3700
|
+
}, [k(h(fe), {
|
|
3701
3701
|
size: 14,
|
|
3702
3702
|
"stroke-width": 1.5
|
|
3703
3703
|
}), m(" " + x(h(o).image.browseMedia), 1)])) : _("", !0)]),
|
|
@@ -3722,7 +3722,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3722
3722
|
path: "width"
|
|
3723
3723
|
}, {
|
|
3724
3724
|
default: a(() => [b("select", {
|
|
3725
|
-
class: g(h(
|
|
3725
|
+
class: g(h(z)),
|
|
3726
3726
|
"data-testid": "video-width-mode",
|
|
3727
3727
|
value: S.value,
|
|
3728
3728
|
onChange: n[5] ||= (e) => M(e.target.value)
|
|
@@ -3735,7 +3735,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3735
3735
|
], 42, io), S.value === "custom" ? (i(), p("div", so, [b("input", {
|
|
3736
3736
|
type: "number",
|
|
3737
3737
|
"data-testid": "video-width-input",
|
|
3738
|
-
class: g(h(
|
|
3738
|
+
class: g(h(R)),
|
|
3739
3739
|
value: e.block.width,
|
|
3740
3740
|
min: "20",
|
|
3741
3741
|
onInput: n[6] ||= (e) => F(e.target.value)
|
|
@@ -3748,14 +3748,14 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3748
3748
|
path: "height"
|
|
3749
3749
|
}, {
|
|
3750
3750
|
default: a(() => [b("select", {
|
|
3751
|
-
class: g(h(
|
|
3751
|
+
class: g(h(z)),
|
|
3752
3752
|
"data-testid": "video-height-mode",
|
|
3753
3753
|
value: w.value,
|
|
3754
3754
|
onChange: n[7] ||= (e) => I(e.target.value)
|
|
3755
3755
|
}, [b("option", uo, x(h(o).video.heightAuto), 1), b("option", fo, x(h(o).video.heightCustom), 1)], 42, lo), w.value === "custom" ? (i(), p("div", po, [b("input", {
|
|
3756
3756
|
type: "number",
|
|
3757
3757
|
"data-testid": "video-height-input",
|
|
3758
|
-
class: g(h(
|
|
3758
|
+
class: g(h(R)),
|
|
3759
3759
|
value: e.block.height,
|
|
3760
3760
|
min: "20",
|
|
3761
3761
|
onInput: n[8] ||= (e) => ee(e.target.value)
|
|
@@ -3798,7 +3798,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3798
3798
|
"duplicate"
|
|
3799
3799
|
],
|
|
3800
3800
|
setup(e, { emit: t }) {
|
|
3801
|
-
let r = f(() => import("./CountdownToolbar-
|
|
3801
|
+
let r = f(() => import("./CountdownToolbar-BN2_zvRj.js")), a = e, o = t, { t: s } = X(), c = dt(), u = at(it, "Toolbar"), d = l(ot, []), m = C(() => a.block.type), g = C(() => De(a.block)), y = C(() => {
|
|
3802
3802
|
if (g.value) return d.find((e) => e.type === a.block.customType);
|
|
3803
3803
|
}), S = C(() => g.value ? y.value?.name ?? a.block.customType : Le(m.value, s)), w = C(() => Ae(u.fonts.value, "fontFamily" in a.block ? a.block.fontFamily : void 0));
|
|
3804
3804
|
function T(e) {
|
|
@@ -3816,7 +3816,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3816
3816
|
key: 0,
|
|
3817
3817
|
size: 16,
|
|
3818
3818
|
"stroke-width": 1.5
|
|
3819
|
-
})) : g.value ? (i(), v(h(
|
|
3819
|
+
})) : g.value ? (i(), v(h(ce), {
|
|
3820
3820
|
key: 1,
|
|
3821
3821
|
size: 16,
|
|
3822
3822
|
"stroke-width": 1.5
|
|
@@ -3824,14 +3824,14 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3824
3824
|
class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:bg-[var(--tpl-bg-active)] tpl:hover:text-[var(--tpl-text)]",
|
|
3825
3825
|
title: h(s).toolbar.duplicate,
|
|
3826
3826
|
onClick: a[0] ||= (e) => o("duplicate")
|
|
3827
|
-
}, [k(h(
|
|
3827
|
+
}, [k(h(ae), {
|
|
3828
3828
|
size: 14,
|
|
3829
3829
|
"stroke-width": 2
|
|
3830
3830
|
})], 8, wo), b("button", {
|
|
3831
3831
|
class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
|
|
3832
3832
|
title: h(s).toolbar.delete,
|
|
3833
3833
|
onClick: a[1] ||= (e) => o("delete")
|
|
3834
|
-
}, [k(h(
|
|
3834
|
+
}, [k(h(me), {
|
|
3835
3835
|
size: 14,
|
|
3836
3836
|
"stroke-width": 2
|
|
3837
3837
|
})], 8, To)])]), b("div", Eo, [g.value ? (i(), v(ti, {
|
|
@@ -3905,4 +3905,4 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
|
|
|
3905
3905
|
}), Oo = /* @__PURE__ */ e({ default: () => ko }), ko = /*#__PURE__*/ Ne(Do, [["__scopeId", "data-v-206f038f"]]);
|
|
3906
3906
|
export { ko as default, bt as n, $ as r, Oo as t };
|
|
3907
3907
|
|
|
3908
|
-
//# sourceMappingURL=Toolbar-
|
|
3908
|
+
//# sourceMappingURL=Toolbar-TS2WwlPW.js.map
|