@templatical/editor 0.57.2 → 0.59.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/dist/{AiAltTextPopover-B4cg0jQG.js → AiAltTextPopover-CwyKz_9U.js} +3 -3
- package/dist/{AiAltTextReview-Dni8I9eV.js → AiAltTextReview-DNFnR1PN.js} +2 -2
- package/dist/{AiChatPanel-QWqGhy2s.js → AiChatPanel-DWWVvJIP.js} +3 -3
- package/dist/{AiPanels-DE2ysIV1.js → AiPanels-CESbBB63.js} +1 -1
- package/dist/{AiRewriteMenu-B25gpnip.js → AiRewriteMenu-CjXiI-n4.js} +5 -5
- package/dist/{BlockIssueBadge-Ri7dQhuz.js → BlockIssueBadge-3k568_Od.js} +2 -2
- package/dist/{BlockPreviewCanvas-yr5MmQql.js → BlockPreviewCanvas-3FzYSsPm.js} +6 -6
- package/dist/{CloudHeaderExtras-CJsXi4Ku.js → CloudHeaderExtras-xrHubAHL.js} +1 -1
- package/dist/{CloudPanels-ZOR9By8W.js → CloudPanels-CSFN-eLV.js} +3 -3
- package/dist/{CollaborationNotices-COS_YvTq.js → CollaborationNotices-D9GQ477K.js} +1 -1
- package/dist/{CollaboratorBar-jq6HH0fb.js → CollaboratorBar-DsRjAaqd.js} +1 -1
- package/dist/{CommentsPanel-B0_Ob2vO.js → CommentsPanel-lb-IFzjl.js} +1 -1
- package/dist/{CommentsSidebar-DFoLon5D.js → CommentsSidebar-CVVTCWBH.js} +3 -3
- package/dist/{CountdownBlock-BrR2uqM3.js → CountdownBlock-CSEq79Nc.js} +2 -2
- package/dist/{CountdownToolbar-BtP0n0yZ.js → CountdownToolbar-BV9yQi9k.js} +5 -5
- package/dist/{IssuesPanel-CarJYQFu.js → IssuesPanel-pxcWAQJM.js} +5 -5
- package/dist/{LanguageMenu-confz89v.js → LanguageMenu-CEKRbNhA.js} +5 -5
- package/dist/{LocaleNotices-D8aE167E.js → LocaleNotices-j4aMFfmc.js} +2 -2
- package/dist/{LogicTagInsertButton-DFL3kvGK.js → LogicTagInsertButton-BDIsyl3C.js} +96 -96
- package/dist/{MergeTagInput-BuGJeeyA.js → MergeTagInput-De1yWoc2.js} +2 -2
- package/dist/{MergeTagModeToggle-D7482NZf.js → MergeTagModeToggle-CL96pI1E.js} +2 -2
- package/dist/{MergeTagTextarea-Qt9_NeY4.js → MergeTagTextarea-DDyV8U44.js} +4 -4
- package/dist/{ParagraphEditor-Cd-CBE_l.js → ParagraphEditor-Vz90-hhN.js} +9 -9
- package/dist/{RestoreVersionDialog-Clh4l0Bn.js → RestoreVersionDialog-BgrtpVl1.js} +3 -3
- package/dist/{RichTextEditorContent-Dw_Z9zhi.js → RichTextEditorContent-C2Yj1-ZA.js} +5 -5
- package/dist/{SaveBlockDialog-kboYvk_a.js → SaveBlockDialog-DRvLFKWJ.js} +11 -11
- package/dist/{SavedBlocksBrowserModal-wVGMC6My.js → SavedBlocksBrowserModal-Dw0uF-NT.js} +7 -7
- package/dist/{SavedBlocksPanels-C9AHYfYR.js → SavedBlocksPanels-BReNi8sg.js} +1 -1
- package/dist/{SavedBlocksPickBar-CVbV5MVL.js → SavedBlocksPickBar-BQX4g7OE.js} +3 -3
- package/dist/{TemplateSettings-ChCm5_2b.js → TemplateSettings-CBCaybvd.js} +5 -5
- package/dist/TestEmailModal-BiCUiRFo.js +240 -0
- package/dist/{TestEmailPanel-7Ua54CYL.js → TestEmailPanel-Bfr-sGrI.js} +1 -1
- package/dist/{TitleEditor-DXMOgW-9.js → TitleEditor-B8thQPgg.js} +7 -7
- package/dist/{Toolbar-CVHJl6i4.js → Toolbar-FIYSw3Us.js} +438 -438
- package/dist/{TplModal-BErE8I3p.js → TplModal-BIqO0owX.js} +3 -3
- package/dist/{VersionHistoryMenu-P3P00KqQ.js → VersionHistoryMenu-6jMve6By.js} +2 -2
- package/dist/{VersionHistoryPanels-DES1b1Pq.js → VersionHistoryPanels-C91mfsMA.js} +1 -1
- package/dist/{VersionPreviewBanner-D2TtR9I5.js → VersionPreviewBanner-Bq8z1SUc.js} +2 -2
- package/dist/{WrapperBlock-B1zI7POT.js → WrapperBlock-BAqgP8hm.js} +3 -3
- package/dist/{blockTypeIcons-Dp540i74.js → blockTypeIcons-VX_8UQ21.js} +1 -1
- package/dist/bundle-stats.json +8 -8
- package/dist/{ca-BJn8lcJx.js → ca-YfIxwO1G.js} +1 -0
- package/dist/cdn/chunks/{AiAltTextPopover-sx3bmRiV.js → AiAltTextPopover-Dj-VLU88.js} +4 -4
- package/dist/cdn/chunks/{AiAltTextPopover-sx3bmRiV.js.map → AiAltTextPopover-Dj-VLU88.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-Cj3PKInZ.js → AiAltTextReview-tVkJPOk6.js} +3 -3
- package/dist/cdn/chunks/{AiAltTextReview-Cj3PKInZ.js.map → AiAltTextReview-tVkJPOk6.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-DibkqrqY.js → AiChatPanel-CYPvHQGQ.js} +4 -4
- package/dist/cdn/chunks/{AiChatPanel-DibkqrqY.js.map → AiChatPanel-CYPvHQGQ.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-DVs4r8sY.js → AiPanels-ChTLCmMS.js} +2 -2
- package/dist/cdn/chunks/{AiPanels-DVs4r8sY.js.map → AiPanels-ChTLCmMS.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-BbZ9NRoe.js → AiRewriteMenu-99qbfCZI.js} +6 -6
- package/dist/cdn/chunks/{AiRewriteMenu-BbZ9NRoe.js.map → AiRewriteMenu-99qbfCZI.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-BWIth1y6.js → BlockIssueBadge-BKO4Mr8f.js} +3 -3
- package/dist/cdn/chunks/{BlockIssueBadge-BWIth1y6.js.map → BlockIssueBadge-BKO4Mr8f.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-BDZ6pMHq.js → BlockPreviewCanvas-BF0yCTKP.js} +7 -7
- package/dist/cdn/chunks/{BlockPreviewCanvas-BDZ6pMHq.js.map → BlockPreviewCanvas-BF0yCTKP.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-CazfMn6A.js → CloudHeaderExtras-O_K3jmgO.js} +2 -2
- package/dist/cdn/chunks/{CloudHeaderExtras-CazfMn6A.js.map → CloudHeaderExtras-O_K3jmgO.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-BI_hJwcJ.js → CloudPanels-gV2WFHQk.js} +4 -4
- package/dist/cdn/chunks/{CloudPanels-BI_hJwcJ.js.map → CloudPanels-gV2WFHQk.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-yKOt4o7B.js → CollaborationNotices-CwAoa-73.js} +2 -2
- package/dist/cdn/chunks/{CollaborationNotices-yKOt4o7B.js.map → CollaborationNotices-CwAoa-73.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-D5fycyLP.js → CollaboratorBar-DdQQwtwd.js} +2 -2
- package/dist/cdn/chunks/{CollaboratorBar-D5fycyLP.js.map → CollaboratorBar-DdQQwtwd.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-BPoa1lBK.js → CommentsPanel-C8AKtxiG.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-BPoa1lBK.js.map → CommentsPanel-C8AKtxiG.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-DLn9qWtv.js → CommentsSidebar-FxY0RHSq.js} +4 -4
- package/dist/cdn/chunks/{CommentsSidebar-DLn9qWtv.js.map → CommentsSidebar-FxY0RHSq.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-Do6oItNW.js → CountdownBlock-DGgnPUlu.js} +3 -3
- package/dist/cdn/chunks/{CountdownBlock-Do6oItNW.js.map → CountdownBlock-DGgnPUlu.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-D5_QBuhO.js → CountdownToolbar-9PtYUgCW.js} +6 -6
- package/dist/cdn/chunks/{CountdownToolbar-D5_QBuhO.js.map → CountdownToolbar-9PtYUgCW.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BzVpxRkq.js → IssuesPanel-Co-ffgWa.js} +6 -6
- package/dist/cdn/chunks/{IssuesPanel-BzVpxRkq.js.map → IssuesPanel-Co-ffgWa.js.map} +1 -1
- package/dist/cdn/chunks/{LanguageMenu-GEbUX5Oe.js → LanguageMenu-fL4DRGGQ.js} +6 -6
- package/dist/cdn/chunks/{LanguageMenu-GEbUX5Oe.js.map → LanguageMenu-fL4DRGGQ.js.map} +1 -1
- package/dist/cdn/chunks/{LocaleNotices-CWRS_G-4.js → LocaleNotices-BVDJ7kyj.js} +3 -3
- package/dist/cdn/chunks/{LocaleNotices-CWRS_G-4.js.map → LocaleNotices-BVDJ7kyj.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-CrkAz1t_.js → LogicTagInsertButton-DPYA8LJW.js} +9 -9
- package/dist/cdn/chunks/{LogicTagInsertButton-CrkAz1t_.js.map → LogicTagInsertButton-DPYA8LJW.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-DkCATtfE.js → MergeTagInput-Cxfjq3tx.js} +3 -3
- package/dist/cdn/chunks/{MergeTagInput-DkCATtfE.js.map → MergeTagInput-Cxfjq3tx.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-DYAFxyoB.js → MergeTagModeToggle-BmNGV3yc.js} +3 -3
- package/dist/cdn/chunks/{MergeTagModeToggle-DYAFxyoB.js.map → MergeTagModeToggle-BmNGV3yc.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-DRS6pXSE.js → MergeTagTextarea-DmwrPAss.js} +5 -5
- package/dist/cdn/chunks/{MergeTagTextarea-DRS6pXSE.js.map → MergeTagTextarea-DmwrPAss.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-rEdKBett.js → ParagraphEditor-A_OEuQ1Q.js} +10 -10
- package/dist/cdn/chunks/{ParagraphEditor-rEdKBett.js.map → ParagraphEditor-A_OEuQ1Q.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-B7eTijWD.js → RestoreVersionDialog-Ca_lUsk4.js} +4 -4
- package/dist/cdn/chunks/{RestoreVersionDialog-B7eTijWD.js.map → RestoreVersionDialog-Ca_lUsk4.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-EtUIYzHB.js → RichTextEditorContent-Dq4TROOg.js} +6 -6
- package/dist/cdn/chunks/{RichTextEditorContent-EtUIYzHB.js.map → RichTextEditorContent-Dq4TROOg.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-BquE_Brz.js → SaveBlockDialog-BXRCqrZX.js} +12 -12
- package/dist/cdn/chunks/{SaveBlockDialog-BquE_Brz.js.map → SaveBlockDialog-BXRCqrZX.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal--fNlId5y.js → SavedBlocksBrowserModal-DdaBcSOI.js} +7 -7
- package/dist/cdn/chunks/{SavedBlocksBrowserModal--fNlId5y.js.map → SavedBlocksBrowserModal-DdaBcSOI.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-0Z0dELDm.js → SavedBlocksPanels-BcVFZDKI.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-0Z0dELDm.js.map → SavedBlocksPanels-BcVFZDKI.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-yezZxZeP.js → SavedBlocksPickBar-o66PhlTo.js} +4 -4
- package/dist/cdn/chunks/{SavedBlocksPickBar-yezZxZeP.js.map → SavedBlocksPickBar-o66PhlTo.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-DFetnT9P.js → TemplateSettings-uoiUkd2l.js} +6 -6
- package/dist/cdn/chunks/{TemplateSettings-DFetnT9P.js.map → TemplateSettings-uoiUkd2l.js.map} +1 -1
- package/dist/cdn/chunks/TestEmailModal-WOC7bmF_.js +239 -0
- package/dist/cdn/chunks/TestEmailModal-WOC7bmF_.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel-C2dxmmoW.js → TestEmailPanel-DUWH9xsZ.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-C2dxmmoW.js.map → TestEmailPanel-DUWH9xsZ.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-Bq62I2SC.js → TitleEditor-EHW0lgG4.js} +7 -7
- package/dist/cdn/chunks/{TitleEditor-Bq62I2SC.js.map → TitleEditor-EHW0lgG4.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-CwmW8wAI.js → Toolbar-BzAuH2G4.js} +19 -19
- package/dist/cdn/chunks/{Toolbar-CwmW8wAI.js.map → Toolbar-BzAuH2G4.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-DE6BniBg.js → TplModal-B9DVglkN.js} +4 -4
- package/dist/cdn/chunks/{TplModal-DE6BniBg.js.map → TplModal-B9DVglkN.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-BBYU71Ua.js → VersionHistoryMenu-DDqYMqC2.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryMenu-BBYU71Ua.js.map → VersionHistoryMenu-DDqYMqC2.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-mMMqnf3O.js → VersionHistoryPanels-DO-kcL28.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-mMMqnf3O.js.map → VersionHistoryPanels-DO-kcL28.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-tBz-3lGg.js → VersionPreviewBanner-CYT5QUoc.js} +3 -3
- package/dist/cdn/chunks/{VersionPreviewBanner-tBz-3lGg.js.map → VersionPreviewBanner-CYT5QUoc.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-B9XxtFql.js → WrapperBlock-CyD_pW18.js} +4 -4
- package/dist/cdn/chunks/{WrapperBlock-B9XxtFql.js.map → WrapperBlock-CyD_pW18.js.map} +1 -1
- package/dist/cdn/chunks/{ca-BJn8lcJx.js → ca-YfIxwO1G.js} +2 -1
- package/dist/cdn/chunks/{ca-BJn8lcJx.js.map → ca-YfIxwO1G.js.map} +1 -1
- package/dist/cdn/chunks/{composables-CkthyXi9.js → composables-CN9j_FH4.js} +466 -451
- package/dist/cdn/chunks/composables-CN9j_FH4.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-k12jYbXP.js → createCloudRuntime-D8zeR9D2.js} +2 -2
- package/dist/cdn/chunks/{createCloudRuntime-k12jYbXP.js.map → createCloudRuntime-D8zeR9D2.js.map} +1 -1
- package/dist/cdn/chunks/{da-qQzj0QGy.js → da-CM6DCvRG.js} +2 -1
- package/dist/cdn/chunks/{da-qQzj0QGy.js.map → da-CM6DCvRG.js.map} +1 -1
- package/dist/cdn/chunks/{de-BLFp3nWx.js → de-Dugz1zXC.js} +2 -1
- package/dist/cdn/chunks/{de-BLFp3nWx.js.map → de-Dugz1zXC.js.map} +1 -1
- package/dist/cdn/chunks/{en-DGGQJGbm.js → en-BykoFuFY.js} +2 -1
- package/dist/cdn/chunks/{en-DGGQJGbm.js.map → en-BykoFuFY.js.map} +1 -1
- package/dist/cdn/chunks/{es-DTY9qgLv.js → es-DaWsTkpj.js} +2 -1
- package/dist/cdn/chunks/{es-DTY9qgLv.js.map → es-DaWsTkpj.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-Djyg5slk.js → extensions-BYJPv1sA.js} +4 -4
- package/dist/cdn/chunks/{extensions-Djyg5slk.js.map → extensions-BYJPv1sA.js.map} +1 -1
- package/dist/cdn/chunks/{fr-L4FqO9Gp.js → fr-DqwQHtJo.js} +2 -1
- package/dist/cdn/chunks/{fr-L4FqO9Gp.js.map → fr-DqwQHtJo.js.map} +1 -1
- package/dist/cdn/chunks/{ja-6uOXkh4v.js → ja-BH4MS1Ye.js} +2 -1
- package/dist/cdn/chunks/{ja-6uOXkh4v.js.map → ja-BH4MS1Ye.js.map} +1 -1
- package/dist/cdn/chunks/{keys-BQqbBUag.js → keys-DNv3xXxI.js} +4 -4
- package/dist/cdn/chunks/keys-DNv3xXxI.js.map +1 -0
- package/dist/cdn/chunks/{nl-DCxuxwNq.js → nl-BQl1_UHv.js} +2 -1
- package/dist/cdn/chunks/{nl-DCxuxwNq.js.map → nl-BQl1_UHv.js.map} +1 -1
- package/dist/{pt-BR-CBkcrebr.js → cdn/chunks/pt-BR-eyzmU9Vs.js} +3 -0
- package/dist/cdn/chunks/{pt-BR-CBkcrebr.js.map → pt-BR-eyzmU9Vs.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-CkgQUpim.js → socialIcons-bvQ57o1m.js} +484 -467
- package/dist/cdn/chunks/socialIcons-bvQ57o1m.js.map +1 -0
- package/dist/cdn/chunks/{src-CpUX1Mhb.js → src-BXrhjqCv.js} +11 -18
- package/dist/cdn/chunks/src-BXrhjqCv.js.map +1 -0
- package/dist/cdn/chunks/src-CVHGPKSW.js.map +1 -1
- package/dist/cdn/chunks/{styleConstants-CgiNKdnc.js → styleConstants-Br6CIRoS.js} +6 -6
- package/dist/cdn/chunks/styleConstants-Br6CIRoS.js.map +1 -0
- package/dist/cdn/chunks/{useCloudI18n-Dr4S2TRW.js → useCloudI18n-CWgySYuJ.js} +2 -2
- package/dist/cdn/chunks/{useCloudI18n-Dr4S2TRW.js.map → useCloudI18n-CWgySYuJ.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorRoot-B_kf_k-g.js → useEditorRoot-BA4vV7sK.js} +2 -2
- package/dist/cdn/chunks/{useEditorRoot-B_kf_k-g.js.map → useEditorRoot-BA4vV7sK.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-CSf-ZpcM.js → useI18n-JsIdvX-i.js} +2 -2
- package/dist/cdn/chunks/{useI18n-CSf-ZpcM.js.map → useI18n-JsIdvX-i.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-YXRBcfgG.js → useLogicTag-C10Wef7d.js} +2 -2
- package/dist/cdn/chunks/{useLogicTag-YXRBcfgG.js.map → useLogicTag-C10Wef7d.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-lb-Wrw-B.js → useMergeTag-Dd26TcvH.js} +2 -2
- package/dist/cdn/chunks/{useMergeTag-lb-Wrw-B.js.map → useMergeTag-Dd26TcvH.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-BJFFi8x6.js → usePopoverPosition-DWRQRT2P.js} +2 -2
- package/dist/cdn/chunks/{usePopoverPosition-BJFFi8x6.js.map → usePopoverPosition-DWRQRT2P.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-MI4PP5lk.js → useScrollToBlock-CArjwH-u.js} +2 -2
- package/dist/cdn/chunks/{useScrollToBlock-MI4PP5lk.js.map → useScrollToBlock-CArjwH-u.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +709 -617
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{composables-BrzGZQkd.js → composables-DbqKYIRE.js} +631 -616
- package/dist/{createCloudRuntime-DgQfMi22.js → createCloudRuntime-DiUnYjKr.js} +1 -1
- package/dist/{da-qQzj0QGy.js → da-CM6DCvRG.js} +1 -0
- package/dist/{de-BLFp3nWx.js → de-Dugz1zXC.js} +1 -0
- package/dist/{en-DGGQJGbm.js → en-BykoFuFY.js} +1 -0
- package/dist/{es-DTY9qgLv.js → es-DaWsTkpj.js} +1 -0
- package/dist/{extensions-Cyp2x7cD.js → extensions-CAuXwpbI.js} +3 -3
- package/dist/{fr-L4FqO9Gp.js → fr-DqwQHtJo.js} +1 -0
- package/dist/index.d.ts +64 -5
- package/dist/{ja-6uOXkh4v.js → ja-BH4MS1Ye.js} +1 -0
- package/dist/{keys-D9oKZN1h.js → keys-BeQy64On.js} +3 -3
- package/dist/{nl-DCxuxwNq.js → nl-BQl1_UHv.js} +1 -0
- package/dist/{cdn/chunks/pt-BR-CBkcrebr.js → pt-BR-eyzmU9Vs.js} +1 -2
- package/dist/{socialIcons-ZfH8PyV2.js → socialIcons-RKdTgJip.js} +376 -359
- package/dist/style.css +1 -1
- package/dist/{styleConstants-CgiNKdnc.js → styleConstants-Br6CIRoS.js} +5 -5
- package/dist/templatical-editor.js +761 -668
- package/dist/{useCloudI18n-HhCZYRV6.js → useCloudI18n-nMZ9f_4b.js} +1 -1
- package/dist/{useEditorRoot-B0Njczhx.js → useEditorRoot-DpssP9rX.js} +1 -1
- package/dist/{useI18n-CM9vKbYc.js → useI18n-C2p-qHeb.js} +1 -1
- package/dist/{useLogicTag-BTCtn-uG.js → useLogicTag-59fmujI7.js} +1 -1
- package/dist/{useMergeTag-QlXUjCWT.js → useMergeTag-M1vauWet.js} +1 -1
- package/dist/{usePopoverPosition-CVRzzLkC.js → usePopoverPosition-L9MOHBM-.js} +1 -1
- package/dist/{useScrollToBlock-DruzlN2h.js → useScrollToBlock-BMF0Dt5l.js} +1 -1
- package/package.json +8 -8
- package/dist/TestEmailModal-CYq9Ec7x.js +0 -212
- package/dist/cdn/chunks/TestEmailModal-DJpwpEZs.js +0 -212
- package/dist/cdn/chunks/TestEmailModal-DJpwpEZs.js.map +0 -1
- package/dist/cdn/chunks/composables-CkthyXi9.js.map +0 -1
- package/dist/cdn/chunks/keys-BQqbBUag.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-CkgQUpim.js.map +0 -1
- package/dist/cdn/chunks/src-CpUX1Mhb.js.map +0 -1
- package/dist/cdn/chunks/styleConstants-CgiNKdnc.js.map +0 -1
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { a as e, c as t, i as n, l as r } from "./dist-zu1jwYIS.js";
|
|
2
2
|
import { A as i, B as a, C as o, E as s, F as c, G as l, H as u, I as d, K as f, L as p, M as m, N as h, O as g, P as _, Q as v, R as y, S as b, W as x, X as S, Y as C, _ as w, b as T, c as E, ct as D, dt as O, f as ee, g as k, h as A, j, l as M, m as N, mt as P, ot as F, p as I, pt as L, rt as R, s as z, st as B, t as V, tt as H, u as U, x as W } from "./draggable-IRVFEZ-b.js";
|
|
3
|
-
import { t as te } from "./useEditorRoot-
|
|
4
|
-
import { t as G } from "./useI18n-
|
|
5
|
-
import "./useCloudI18n-
|
|
6
|
-
import { t as K } from "./useMergeTag-
|
|
3
|
+
import { t as te } from "./useEditorRoot-BA4vV7sK.js";
|
|
4
|
+
import { t as G } from "./useI18n-JsIdvX-i.js";
|
|
5
|
+
import "./useCloudI18n-CWgySYuJ.js";
|
|
6
|
+
import { t as K } from "./useMergeTag-Dd26TcvH.js";
|
|
7
7
|
import { _ as ne, h as q, v as J, y as re } from "./dist-BtWMy7UQ.js";
|
|
8
8
|
import { $ as ie, $t as ae, A as Y, B as X, C as Z, Cn as Q, D as oe, E as se, G as ce, H as le, I as ue, K as de, L as fe, M as pe, N as me, O as he, P as ge, Q as _e, Qt as ve, R as ye, S as be, Sn as xe, T as Se, Tn as Ce, W as we, X as Te, Y as Ee, Z as De, a as Oe, at as ke, b as Ae, bn as je, cn as Me, ct as Ne, d as Pe, dn as Fe, dt as Ie, et as Le, gn as Re, hn as ze, ht as Be, i as Ve, in as He, it as Ue, j as We, jt as Ge, ln as Ke, lt as qe, mt as Je, nt as Ye, p as Xe, pt as Ze, q as Qe, qt as $e, rt as et, sn as tt, st as nt, t as rt, tt as it, u as at, vt as ot, w as st, wn as ct, x as lt, xn as ut, y as dt, yn as ft } from "./src-CVHGPKSW.js";
|
|
9
9
|
import { t as $ } from "./logger-CqQTfJGx.js";
|
|
10
|
-
import { a as pt, c as mt, i as ht, n as gt, o as _t, t as vt } from "./usePopoverPosition-
|
|
10
|
+
import { a as pt, c as mt, i as ht, n as gt, o as _t, t as vt } from "./usePopoverPosition-DWRQRT2P.js";
|
|
11
11
|
import { n as yt } from "./useLocalizedDisplay-7iwZ1UhB.js";
|
|
12
|
-
import {
|
|
13
|
-
import { t as
|
|
14
|
-
import { B as
|
|
15
|
-
import { r as
|
|
16
|
-
import { r as
|
|
17
|
-
import { At as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { m as
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as
|
|
12
|
+
import { $ as bt, A as xt, B as St, C as Ct, D as wt, F as Tt, G as Et, H as Dt, I as Ot, J as kt, K as At, L as jt, M as Mt, N as Nt, O as Pt, P as Ft, R as It, S as Lt, T as Rt, U as zt, V as Bt, W as Vt, X as Ht, Y as Ut, Z as Wt, _ as Gt, a as Kt, at as qt, b as Jt, c as Yt, ct as Xt, d as Zt, g as Qt, h as $t, i as en, it as tn, j as nn, k as rn, l as an, lt as on, m as sn, nt as cn, ot as ln, p as un, q as dn, r as fn, rt as pn, s as mn, st as hn, tt as gn, u as _n, v as vn, w as yn, x as bn, y as xn, z as Sn } from "./keys-DNv3xXxI.js";
|
|
13
|
+
import { t as Cn } from "./useLogicTag-C10Wef7d.js";
|
|
14
|
+
import { B as wn, C as Tn, F as En, I as Dn, P as On, R as kn, T as An, _ as jn, a as Mn, f as Nn, h as Pn, n as Fn, o as In, t as Ln, u as Rn, v as zn, w as Bn, x as Vn, y as Hn, z as Un } from "./socialIcons-bvQ57o1m.js";
|
|
15
|
+
import { r as Wn, t as Gn } from "./templateSettingsFields-cjlP-jdw.js";
|
|
16
|
+
import { r as Kn, t as qn } from "./sanitizeHtml-5T_KaDcp.js";
|
|
17
|
+
import { At as Jn, G as Yn, Mt as Xn, Nt as Zn, Ot as Qn, St as $n, Ut as er, V as tr, Wt as nr, X as rr, _t as ir, d as ar, f as or, k as sr, mt as cr, nt as lr, o as ur, y as dr, yt as fr } from "./icons-C7vjUBLn.js";
|
|
18
|
+
import { t as pr } from "./LoadingTrack-o-89hApJ.js";
|
|
19
|
+
import { t as mr } from "./languageName-DEEOhDWI.js";
|
|
20
|
+
import { t as hr } from "./plural-CyxrJXL1.js";
|
|
21
|
+
import { m as gr, w as _r, x as vr } from "./styleConstants-Br6CIRoS.js";
|
|
22
|
+
import { t as yr } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
23
|
+
import { t as br } from "./readableTextColor-BfZUGnVj.js";
|
|
24
24
|
// src/composables/useFocusTrap.ts
|
|
25
|
-
var
|
|
26
|
-
function
|
|
25
|
+
var xr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
26
|
+
function Sr(t, n) {
|
|
27
27
|
let r = te(), i = null, a = null, o = null;
|
|
28
28
|
function s() {
|
|
29
|
-
return t.value ? Array.from(t.value.querySelectorAll(
|
|
29
|
+
return t.value ? Array.from(t.value.querySelectorAll(xr)).filter((e) => e.offsetParent !== null) : [];
|
|
30
30
|
}
|
|
31
31
|
function c(e) {
|
|
32
32
|
if (e.key !== "Tab") return;
|
|
@@ -55,7 +55,7 @@ function xr(t, n) {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
// src/composables/useEmoji.ts
|
|
58
|
-
function
|
|
58
|
+
function Cr() {
|
|
59
59
|
let [e, t] = J(!1), n = R([]), r = !1;
|
|
60
60
|
v(() => {
|
|
61
61
|
r = !0;
|
|
@@ -80,7 +80,7 @@ function Sr() {
|
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
// src/composables/useBlockRegistry.ts
|
|
83
|
-
function
|
|
83
|
+
function wr() {
|
|
84
84
|
let e = R(/* @__PURE__ */ new Map());
|
|
85
85
|
function t(t, n) {
|
|
86
86
|
e.value.set(t, n), B(e);
|
|
@@ -133,7 +133,7 @@ function Cr() {
|
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
135
|
// src/composables/useFonts.ts
|
|
136
|
-
var
|
|
136
|
+
var Tr = [
|
|
137
137
|
{
|
|
138
138
|
value: "Arial",
|
|
139
139
|
label: "Arial"
|
|
@@ -162,19 +162,19 @@ var wr = [
|
|
|
162
162
|
value: "Courier New",
|
|
163
163
|
label: "Courier New"
|
|
164
164
|
}
|
|
165
|
-
],
|
|
166
|
-
function
|
|
167
|
-
if (e === void 0 || e === !0) return [...
|
|
165
|
+
], Er = "Arial, sans-serif";
|
|
166
|
+
function Dr(e) {
|
|
167
|
+
if (e === void 0 || e === !0) return [...Tr];
|
|
168
168
|
if (e === !1) return [];
|
|
169
169
|
let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
|
|
170
170
|
for (let i of e) {
|
|
171
|
-
let e = i.toLowerCase(), a =
|
|
172
|
-
a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), $.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${
|
|
171
|
+
let e = i.toLowerCase(), a = Tr.find((t) => t.value.toLowerCase() === e);
|
|
172
|
+
a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), $.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${Tr.map((e) => e.value).join(", ")}.`));
|
|
173
173
|
}
|
|
174
174
|
return t;
|
|
175
175
|
}
|
|
176
|
-
function
|
|
177
|
-
let t = H(e?.customFonts ?? []), n = H(!1), r =
|
|
176
|
+
function Or(e) {
|
|
177
|
+
let t = H(e?.customFonts ?? []), n = H(!1), r = Dr(e?.builtIns), i = I(() => e?.defaultFallback ?? Er), a = I(() => {
|
|
178
178
|
let e = [...r], n = t.value.map((e) => ({
|
|
179
179
|
value: e.name,
|
|
180
180
|
label: e.name,
|
|
@@ -185,14 +185,14 @@ function Dr(e) {
|
|
|
185
185
|
function o(e) {
|
|
186
186
|
return a.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
|
|
187
187
|
}
|
|
188
|
-
let s = e?.defaultFont ??
|
|
188
|
+
let s = e?.defaultFont ?? Er.split(",")[0].trim();
|
|
189
189
|
o(s) || $.warn(`config.fonts: new templates seed "${s}", which the font picker doesn't offer — authors can't reselect it. Either add it to fonts.builtIns, or set fonts.defaultFont to an offered font.`);
|
|
190
190
|
function c() {
|
|
191
191
|
if (e?.defaultFont && o(e.defaultFont)) {
|
|
192
192
|
let t = a.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
|
|
193
193
|
if (t) return t.value;
|
|
194
194
|
}
|
|
195
|
-
return
|
|
195
|
+
return Er;
|
|
196
196
|
}
|
|
197
197
|
let l = I(() => c());
|
|
198
198
|
function u(e) {
|
|
@@ -239,7 +239,7 @@ function Dr(e) {
|
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
241
|
// src/composables/useThemeStyles.ts
|
|
242
|
-
var
|
|
242
|
+
var kr = {
|
|
243
243
|
bg: "--tpl-bg",
|
|
244
244
|
bgElevated: "--tpl-bg-elevated",
|
|
245
245
|
bgHover: "--tpl-bg-hover",
|
|
@@ -263,10 +263,10 @@ var Or = {
|
|
|
263
263
|
dangerLight: "--tpl-danger-light",
|
|
264
264
|
canvasBg: "--tpl-canvas-bg"
|
|
265
265
|
};
|
|
266
|
-
function
|
|
266
|
+
function Ar({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
|
|
267
267
|
return { themeStyles: I(() => {
|
|
268
268
|
let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
|
|
269
|
-
if (a) for (let [e, t] of Object.entries(
|
|
269
|
+
if (a) for (let [e, t] of Object.entries(kr)) {
|
|
270
270
|
let n = a[e];
|
|
271
271
|
n && (r[t] = n);
|
|
272
272
|
}
|
|
@@ -274,7 +274,7 @@ function kr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
|
|
|
274
274
|
}) };
|
|
275
275
|
}
|
|
276
276
|
// src/utils/mergeTagNodeSpec.ts
|
|
277
|
-
function
|
|
277
|
+
function jr(e, t, n) {
|
|
278
278
|
return De(e, n) ? {
|
|
279
279
|
type: "logicMergeTagNode",
|
|
280
280
|
attrs: {
|
|
@@ -290,32 +290,32 @@ function Ar(e, t, n) {
|
|
|
290
290
|
};
|
|
291
291
|
}
|
|
292
292
|
// src/utils/insertLogicTag.ts
|
|
293
|
-
function
|
|
293
|
+
function Mr(e) {
|
|
294
294
|
return "before" in e && "after" in e;
|
|
295
295
|
}
|
|
296
|
-
function
|
|
297
|
-
if (!
|
|
298
|
-
e.chain().focus().insertContent(
|
|
296
|
+
function Nr(e, t, n) {
|
|
297
|
+
if (!Mr(t)) {
|
|
298
|
+
e.chain().focus().insertContent(jr(t.value, t.label, n)).run();
|
|
299
299
|
return;
|
|
300
300
|
}
|
|
301
|
-
let r =
|
|
301
|
+
let r = jr(t.before, t.label, n), i = jr(t.after, t.label, n), { from: a, to: o } = e.state.selection;
|
|
302
302
|
a === o ? e.chain().focus().insertContentAt(a, [r, i]).setTextSelection(a + 1).run() : e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
|
|
303
303
|
}
|
|
304
304
|
// src/utils/linkColorExtension.ts
|
|
305
|
-
function
|
|
305
|
+
function Pr(e) {
|
|
306
306
|
if (!e) return null;
|
|
307
307
|
let t = e.trim();
|
|
308
308
|
return /^#[0-9a-f]{3,8}$/i.test(t) || /^(rgb|rgba|hsl|hsla)\(\s*[0-9.,%/\s]+\)$/i.test(t) || /^[a-z]+$/i.test(t) ? t : null;
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function Fr(e) {
|
|
311
311
|
return e.extend({ addAttributes() {
|
|
312
312
|
return {
|
|
313
313
|
...this.parent?.(),
|
|
314
314
|
color: {
|
|
315
315
|
default: null,
|
|
316
|
-
parseHTML: (e) =>
|
|
316
|
+
parseHTML: (e) => Pr(_t(e.style.color)),
|
|
317
317
|
renderHTML: (e) => {
|
|
318
|
-
let t =
|
|
318
|
+
let t = Pr(e.color);
|
|
319
319
|
return t ? { style: `color: ${t}` } : {};
|
|
320
320
|
}
|
|
321
321
|
}
|
|
@@ -323,9 +323,9 @@ function Pr(e) {
|
|
|
323
323
|
} });
|
|
324
324
|
}
|
|
325
325
|
// src/composables/useRichTextLinkDialog.ts
|
|
326
|
-
function
|
|
326
|
+
function Ir(e, t = le.liquid, n = () => !0) {
|
|
327
327
|
let r = H(!1), i = H(""), a = H(""), o = H(null);
|
|
328
|
-
|
|
328
|
+
Sr(o, r);
|
|
329
329
|
function s() {
|
|
330
330
|
if (!n()) return;
|
|
331
331
|
let t = e.value?.getAttributes("link") ?? {};
|
|
@@ -336,7 +336,7 @@ function Fr(e, t = le.liquid, n = () => !0) {
|
|
|
336
336
|
if (i.value) {
|
|
337
337
|
let t = d(i.value);
|
|
338
338
|
if (t !== null) {
|
|
339
|
-
let n =
|
|
339
|
+
let n = Pr(a.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
|
|
340
340
|
n && typeof e.value?.commands.unsetColor == "function" && r?.unsetColor(), r?.run();
|
|
341
341
|
}
|
|
342
342
|
}
|
|
@@ -378,13 +378,13 @@ function Fr(e, t = le.liquid, n = () => !0) {
|
|
|
378
378
|
};
|
|
379
379
|
}
|
|
380
380
|
// src/composables/useRichTextEditor.ts
|
|
381
|
-
function
|
|
382
|
-
let n = g(
|
|
381
|
+
function Lr(t) {
|
|
382
|
+
let n = g(vn, null), r = mt(), i = g(Ut, null), a = I(() => r.value && !i?.value), { mergeTags: o, canRequestMergeTag: s, isRequesting: c, requestMergeTag: l, syntax: d, autocomplete: f } = K(), { canInsertLogicTag: p, isRequesting: h, requestLogicTag: _ } = Cn(), v = g(tn, null), y = (S(v) ? v.value : v)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", b = Ee(d), x = R(null), C = n?.content ? yt(n) : null, w = () => Ie(C?.settings.value ?? { locale: "en" });
|
|
383
383
|
u(w, (e) => {
|
|
384
384
|
let t = x.value?.view.dom;
|
|
385
385
|
t && t.setAttribute("dir", e);
|
|
386
386
|
});
|
|
387
|
-
let { showLinkDialog: T, linkUrl: E, linkColor: D, linkDialogRef: O, openLinkDialog: ee, insertLink: k, removeLink: A, closeLinkDialog: j, handleLinkKeydown: M } =
|
|
387
|
+
let { showLinkDialog: T, linkUrl: E, linkColor: D, linkDialogRef: O, openLinkDialog: ee, insertLink: k, removeLink: A, closeLinkDialog: j, handleLinkKeydown: M } = Ir(x, d, () => a.value);
|
|
388
388
|
u(a, (e) => {
|
|
389
389
|
if (x.value?.setEditable(e, !1), !e) {
|
|
390
390
|
j();
|
|
@@ -455,7 +455,7 @@ function Ir(t) {
|
|
|
455
455
|
async function J() {
|
|
456
456
|
if (!a.value) return;
|
|
457
457
|
let e = await _();
|
|
458
|
-
!B && a.value && (e && x.value ?
|
|
458
|
+
!B && a.value && (e && x.value ? Nr(x.value, e, d) : x.value?.commands.focus());
|
|
459
459
|
}
|
|
460
460
|
return {
|
|
461
461
|
editor: x,
|
|
@@ -484,25 +484,25 @@ function Ir(t) {
|
|
|
484
484
|
};
|
|
485
485
|
}
|
|
486
486
|
// src/utils/activeEditorTracker.ts
|
|
487
|
-
var
|
|
488
|
-
function
|
|
489
|
-
let e = ++
|
|
490
|
-
return
|
|
487
|
+
var Rr = /* @__PURE__ */ new Set(), zr = 0, Br = 0;
|
|
488
|
+
function Vr() {
|
|
489
|
+
let e = ++Br;
|
|
490
|
+
return Rr.add(e), zr === 0 && (zr = e), {
|
|
491
491
|
id: e,
|
|
492
|
-
isActive: () =>
|
|
492
|
+
isActive: () => Rr.size <= 1 || zr === e,
|
|
493
493
|
claim: () => {
|
|
494
|
-
|
|
494
|
+
zr = e;
|
|
495
495
|
},
|
|
496
496
|
dispose: () => {
|
|
497
|
-
if (
|
|
498
|
-
let e = Array.from(
|
|
499
|
-
|
|
497
|
+
if (Rr.delete(e), zr === e) {
|
|
498
|
+
let e = Array.from(Rr);
|
|
499
|
+
zr = e[e.length - 1] ?? 0;
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
};
|
|
503
503
|
}
|
|
504
504
|
// src/utils/resolveLintOptions.ts
|
|
505
|
-
function
|
|
505
|
+
function Hr(e) {
|
|
506
506
|
let t = e.contentLocale ?? e.content?.settings.locale;
|
|
507
507
|
return {
|
|
508
508
|
...e.lint,
|
|
@@ -511,63 +511,73 @@ function Vr(e) {
|
|
|
511
511
|
};
|
|
512
512
|
}
|
|
513
513
|
// src/composables/usePreviewResolution.ts
|
|
514
|
-
var
|
|
515
|
-
function
|
|
516
|
-
let t = typeof e.resolvePreview == "function", n = H(null), r = H(!1), i = H(!1), a =
|
|
517
|
-
function
|
|
518
|
-
|
|
514
|
+
var Ur = 500;
|
|
515
|
+
function Wr(e) {
|
|
516
|
+
let t = typeof e.resolvePreview == "function", n = H(null), r = H(!1), i = H(!1), a = H(!1), o = 0, s = null;
|
|
517
|
+
function c() {
|
|
518
|
+
s !== null && (clearTimeout(s), s = null);
|
|
519
519
|
}
|
|
520
|
-
async function
|
|
521
|
-
let
|
|
522
|
-
if (!
|
|
523
|
-
let
|
|
520
|
+
async function l(t) {
|
|
521
|
+
let s = e.resolvePreview;
|
|
522
|
+
if (!s) return;
|
|
523
|
+
let c = ++o;
|
|
524
524
|
r.value = !0;
|
|
525
|
-
let
|
|
525
|
+
let l = {
|
|
526
526
|
content: He(e.getContent()),
|
|
527
|
+
trigger: t,
|
|
527
528
|
...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
|
|
528
529
|
};
|
|
529
530
|
try {
|
|
530
|
-
let e = await
|
|
531
|
-
if (
|
|
531
|
+
let e = await s(l);
|
|
532
|
+
if (c !== o) return;
|
|
532
533
|
if (!rt(e)) {
|
|
533
|
-
i.value = !0;
|
|
534
|
+
i.value = !0, n.value = null;
|
|
534
535
|
return;
|
|
535
536
|
}
|
|
536
537
|
n.value = e, i.value = !1;
|
|
537
538
|
} catch {
|
|
538
|
-
if (
|
|
539
|
-
i.value = !0;
|
|
539
|
+
if (c !== o) return;
|
|
540
|
+
i.value = !0, n.value = null;
|
|
540
541
|
} finally {
|
|
541
|
-
|
|
542
|
+
c === o && (a.value = !0, r.value = !1);
|
|
542
543
|
}
|
|
543
544
|
}
|
|
544
|
-
function
|
|
545
|
-
t && (
|
|
546
|
-
|
|
547
|
-
},
|
|
545
|
+
function d(e) {
|
|
546
|
+
t && (c(), !a.value && e !== "recipient" ? l(e) : s = setTimeout(() => {
|
|
547
|
+
s = null, l(e);
|
|
548
|
+
}, Ur));
|
|
549
|
+
}
|
|
550
|
+
function f() {
|
|
551
|
+
t && e.isActive() && (c(), l("refresh"));
|
|
548
552
|
}
|
|
549
553
|
return u(() => [
|
|
550
554
|
e.isActive(),
|
|
551
555
|
e.getRecipient?.(),
|
|
552
556
|
e.getLocale?.()
|
|
553
|
-
], ([e, ,
|
|
554
|
-
|
|
557
|
+
], ([e, t, s], l) => {
|
|
558
|
+
if (l && s !== l[2] && (c(), o++, n.value = null, r.value = !1, i.value = !1, a.value = !1), !e) {
|
|
559
|
+
c(), o++, r.value = !1, n.value = null, i.value = !1, a.value = !1;
|
|
560
|
+
return;
|
|
561
|
+
}
|
|
562
|
+
let u = !l || !l[0] ? "open" : s === l[2] ? t === l[1] ? null : "recipient" : "locale";
|
|
563
|
+
u !== null && d(u);
|
|
555
564
|
}, {
|
|
556
565
|
immediate: !0,
|
|
557
566
|
flush: "sync"
|
|
558
567
|
}), v(() => {
|
|
559
|
-
|
|
568
|
+
c(), o++;
|
|
560
569
|
}), {
|
|
561
570
|
isConfigured: t,
|
|
562
571
|
content: I(() => n.value ?? e.getContent()),
|
|
563
572
|
isResolving: r,
|
|
564
|
-
isInitialResolve: I(() => r.value &&
|
|
573
|
+
isInitialResolve: I(() => r.value && !a.value),
|
|
565
574
|
hasFailed: i,
|
|
566
|
-
supersedesSamples: I(() => t)
|
|
575
|
+
supersedesSamples: I(() => t),
|
|
576
|
+
refresh: f
|
|
567
577
|
};
|
|
568
578
|
}
|
|
569
579
|
// src/composables/useMergeTagPicker.ts
|
|
570
|
-
function
|
|
580
|
+
function Gr() {
|
|
571
581
|
let e = H(!1), t = H([]), n = H(null), r = null;
|
|
572
582
|
function i(i, a) {
|
|
573
583
|
if (r) {
|
|
@@ -597,7 +607,7 @@ function Wr() {
|
|
|
597
607
|
};
|
|
598
608
|
}
|
|
599
609
|
// src/composables/useLogicTagPicker.ts
|
|
600
|
-
function
|
|
610
|
+
function Kr() {
|
|
601
611
|
let e = H(!1), t = H([]), n = H([]), r = null;
|
|
602
612
|
function i(i, a) {
|
|
603
613
|
if (r) {
|
|
@@ -627,14 +637,14 @@ function Gr() {
|
|
|
627
637
|
};
|
|
628
638
|
}
|
|
629
639
|
// src/composables/useTemplateLint.ts
|
|
630
|
-
function
|
|
640
|
+
function qr(e) {
|
|
631
641
|
return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 && e.deliverability === !1 && e.compatibility === !1 && e.localization === !1 : !1;
|
|
632
642
|
}
|
|
633
|
-
var
|
|
634
|
-
function
|
|
643
|
+
var Jr = !1;
|
|
644
|
+
function Yr(e) {
|
|
635
645
|
let t = H([]), n = H(0), r = H(-1), i = u(e.content, () => {
|
|
636
646
|
n.value++;
|
|
637
|
-
}, { deep: !0 }), a = H(!1), o = H(!1), s = R(null), c =
|
|
647
|
+
}, { deep: !0 }), a = H(!1), o = H(!1), s = R(null), c = qr(e.options), l = null, d = !1;
|
|
638
648
|
c || f();
|
|
639
649
|
async function f() {
|
|
640
650
|
try {
|
|
@@ -643,7 +653,7 @@ function Jr(e) {
|
|
|
643
653
|
s.value = { lintTemplate: t.lintTemplate }, a.value = !0, p(), l = re(n, p, { debounce: e.debounce ?? 500 });
|
|
644
654
|
} catch {
|
|
645
655
|
if (d) return;
|
|
646
|
-
o.value = !0,
|
|
656
|
+
o.value = !0, Jr || (Jr = !0, $.info("@templatical/quality isn't installed, so the Issues panel and its lint badges are off. Add @templatical/quality to your dependencies to turn them on."));
|
|
647
657
|
}
|
|
648
658
|
}
|
|
649
659
|
function p() {
|
|
@@ -682,7 +692,7 @@ function Jr(e) {
|
|
|
682
692
|
};
|
|
683
693
|
}
|
|
684
694
|
// src/composables/useKeyboardReorder.ts
|
|
685
|
-
function
|
|
695
|
+
function Xr(e, t, n = []) {
|
|
686
696
|
let r = H(null), i = H(""), a = null;
|
|
687
697
|
function o(t) {
|
|
688
698
|
let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
|
|
@@ -709,7 +719,7 @@ function Yr(e, t, n = []) {
|
|
|
709
719
|
let i = o(r);
|
|
710
720
|
if (!i) return "";
|
|
711
721
|
let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
|
|
712
|
-
return a ?
|
|
722
|
+
return a ? Hn(a, t.t, n) : "";
|
|
713
723
|
}
|
|
714
724
|
function c(t, n) {
|
|
715
725
|
return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
|
|
@@ -777,14 +787,14 @@ function Yr(e, t, n = []) {
|
|
|
777
787
|
};
|
|
778
788
|
}
|
|
779
789
|
// src/composables/useUiTheme.ts
|
|
780
|
-
function
|
|
790
|
+
function Zr(e) {
|
|
781
791
|
let n = t("(prefers-color-scheme: dark)");
|
|
782
792
|
return { resolvedTheme: I(() => e.value === "auto" ? n.value ? "dark" : "light" : e.value) };
|
|
783
793
|
}
|
|
784
794
|
// src/composables/useCustomBlockStylesheets.ts
|
|
785
|
-
function
|
|
795
|
+
function Qr(e, t) {
|
|
786
796
|
return I(() => {
|
|
787
|
-
let n =
|
|
797
|
+
let n = $r(e.value.blocks);
|
|
788
798
|
if (n.size === 0) return [];
|
|
789
799
|
let r = /* @__PURE__ */ new Set(), i = [];
|
|
790
800
|
for (let e of n) {
|
|
@@ -796,20 +806,20 @@ function Zr(e, t) {
|
|
|
796
806
|
return i;
|
|
797
807
|
});
|
|
798
808
|
}
|
|
799
|
-
function
|
|
809
|
+
function $r(e) {
|
|
800
810
|
let t = /* @__PURE__ */ new Set();
|
|
801
|
-
return
|
|
811
|
+
return ei(e, t), t;
|
|
802
812
|
}
|
|
803
|
-
function
|
|
813
|
+
function ei(e, t) {
|
|
804
814
|
for (let n of e) if (ot(n)) t.add(n.customType);
|
|
805
815
|
else if (n.type === "section") {
|
|
806
816
|
let e = n.children;
|
|
807
817
|
if (!e) continue;
|
|
808
|
-
for (let n of e)
|
|
809
|
-
} else Ge(n) &&
|
|
818
|
+
for (let n of e) ei(n, t);
|
|
819
|
+
} else Ge(n) && ei(n.children, t);
|
|
810
820
|
}
|
|
811
821
|
// src/utils/registerBuiltInBlocks.ts
|
|
812
|
-
var
|
|
822
|
+
var ti = [
|
|
813
823
|
{
|
|
814
824
|
type: "section",
|
|
815
825
|
createBlock: he
|
|
@@ -863,8 +873,8 @@ var ei = [
|
|
|
863
873
|
createBlock: lt
|
|
864
874
|
}
|
|
865
875
|
];
|
|
866
|
-
function
|
|
867
|
-
for (let n of
|
|
876
|
+
function ni(e, t) {
|
|
877
|
+
for (let n of ti) {
|
|
868
878
|
let r = t[n.type];
|
|
869
879
|
r && e.registerBuiltIn(n.type, {
|
|
870
880
|
component: r,
|
|
@@ -873,22 +883,22 @@ function ti(e, t) {
|
|
|
873
883
|
}
|
|
874
884
|
}
|
|
875
885
|
// src/utils/resolveHtmlBlockPreview.ts
|
|
876
|
-
function
|
|
886
|
+
function ri(e) {
|
|
877
887
|
return typeof e == "boolean" ? e : e?.enabled ?? !1;
|
|
878
888
|
}
|
|
879
889
|
// src/utils/collectOffPaletteDefaults.ts
|
|
880
|
-
function
|
|
890
|
+
function ii(e) {
|
|
881
891
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
882
892
|
}
|
|
883
|
-
function
|
|
893
|
+
function ai(e, t, n) {
|
|
884
894
|
let r = new Set(e.map((e) => pt(e))), i = [], a = (e, t) => {
|
|
885
|
-
for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(pt(o)) && i.push(`${t}.${n}: ${o}`) :
|
|
895
|
+
for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(pt(o)) && i.push(`${t}.${n}: ${o}`) : ii(o) && a(o, `${t}.${n}`);
|
|
886
896
|
}, o = t;
|
|
887
897
|
for (let [e, t] of Object.entries(Ze)) {
|
|
888
898
|
let n = o?.[e];
|
|
889
899
|
a({
|
|
890
900
|
...t,
|
|
891
|
-
...
|
|
901
|
+
...ii(n) ? n : {}
|
|
892
902
|
}, e);
|
|
893
903
|
}
|
|
894
904
|
return a({
|
|
@@ -897,7 +907,7 @@ function ii(e, t, n) {
|
|
|
897
907
|
}, "template"), i;
|
|
898
908
|
}
|
|
899
909
|
// src/utils/localizedBlockDefaults.ts
|
|
900
|
-
function
|
|
910
|
+
function oi(e) {
|
|
901
911
|
return {
|
|
902
912
|
title: { content: `<p>${e.blockDefaults.title}</p>` },
|
|
903
913
|
paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
|
|
@@ -905,63 +915,63 @@ function ai(e) {
|
|
|
905
915
|
};
|
|
906
916
|
}
|
|
907
917
|
// src/i18n/index.ts
|
|
908
|
-
var
|
|
909
|
-
"./locales/ca.ts": () => import("./ca-
|
|
910
|
-
"./locales/da.ts": () => import("./da-
|
|
911
|
-
"./locales/de.ts": () => import("./de-
|
|
912
|
-
"./locales/en.ts": () => import("./en-
|
|
913
|
-
"./locales/es.ts": () => import("./es-
|
|
914
|
-
"./locales/fr.ts": () => import("./fr-
|
|
915
|
-
"./locales/ja.ts": () => import("./ja-
|
|
916
|
-
"./locales/nl.ts": () => import("./nl-
|
|
917
|
-
"./locales/pt-BR.ts": () => import("./pt-BR-
|
|
918
|
-
}),
|
|
918
|
+
var si = /* #__PURE__ */ Object.assign({
|
|
919
|
+
"./locales/ca.ts": () => import("./ca-YfIxwO1G.js"),
|
|
920
|
+
"./locales/da.ts": () => import("./da-CM6DCvRG.js"),
|
|
921
|
+
"./locales/de.ts": () => import("./de-Dugz1zXC.js"),
|
|
922
|
+
"./locales/en.ts": () => import("./en-BykoFuFY.js"),
|
|
923
|
+
"./locales/es.ts": () => import("./es-DaWsTkpj.js"),
|
|
924
|
+
"./locales/fr.ts": () => import("./fr-DqwQHtJo.js"),
|
|
925
|
+
"./locales/ja.ts": () => import("./ja-BH4MS1Ye.js"),
|
|
926
|
+
"./locales/nl.ts": () => import("./nl-BQl1_UHv.js"),
|
|
927
|
+
"./locales/pt-BR.ts": () => import("./pt-BR-eyzmU9Vs.js")
|
|
928
|
+
}), ci = /* #__PURE__ */ Object.assign({
|
|
919
929
|
"./locales/cloud/de.ts": () => import("./de-6M4JoHoD.js"),
|
|
920
930
|
"./locales/cloud/en.ts": () => import("./en-FzUuJ8HW.js"),
|
|
921
931
|
"./locales/cloud/pt-BR.ts": () => import("./pt-BR-Bp92Fc6J.js")
|
|
922
932
|
});
|
|
923
|
-
function
|
|
933
|
+
function li(e) {
|
|
924
934
|
return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
|
|
925
935
|
}
|
|
926
|
-
var
|
|
927
|
-
function
|
|
936
|
+
var ui = li(si), di = li(ci);
|
|
937
|
+
function fi(e) {
|
|
928
938
|
return e.trim().replace(/_/g, "-").toLowerCase();
|
|
929
939
|
}
|
|
930
|
-
function
|
|
931
|
-
let n =
|
|
932
|
-
return t.find((e) =>
|
|
933
|
-
}
|
|
934
|
-
function pi(e) {
|
|
935
|
-
return di(e).split("-")[0];
|
|
940
|
+
function pi(e, t) {
|
|
941
|
+
let n = fi(e);
|
|
942
|
+
return t.find((e) => fi(e) === n);
|
|
936
943
|
}
|
|
937
|
-
function mi(e
|
|
938
|
-
return fi(e
|
|
944
|
+
function mi(e) {
|
|
945
|
+
return fi(e).split("-")[0];
|
|
939
946
|
}
|
|
940
947
|
function hi(e, t) {
|
|
941
|
-
return
|
|
948
|
+
return pi(e, t) ?? pi(mi(e), t);
|
|
942
949
|
}
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
return (await t()).default;
|
|
950
|
+
function gi(e, t) {
|
|
951
|
+
return hi(e, t) ?? "en";
|
|
946
952
|
}
|
|
947
953
|
async function _i(e) {
|
|
948
|
-
let t = si[`./locales
|
|
954
|
+
let t = si[`./locales/${gi(e, ui)}.ts`];
|
|
949
955
|
return (await t()).default;
|
|
950
956
|
}
|
|
951
|
-
function vi(e) {
|
|
952
|
-
|
|
957
|
+
async function vi(e) {
|
|
958
|
+
let t = ci[`./locales/cloud/${gi(e, di)}.ts`];
|
|
959
|
+
return (await t()).default;
|
|
953
960
|
}
|
|
954
961
|
function yi(e) {
|
|
955
|
-
return
|
|
962
|
+
return hi(e, ui) !== void 0;
|
|
956
963
|
}
|
|
957
|
-
function bi() {
|
|
958
|
-
return
|
|
964
|
+
function bi(e) {
|
|
965
|
+
return hi(e, di) !== void 0;
|
|
959
966
|
}
|
|
960
967
|
function xi() {
|
|
961
968
|
return [...ui];
|
|
962
969
|
}
|
|
970
|
+
function Si() {
|
|
971
|
+
return [...di];
|
|
972
|
+
}
|
|
963
973
|
// src/i18n/contentDefaults.ts
|
|
964
|
-
var
|
|
974
|
+
var Ci = {
|
|
965
975
|
en: {
|
|
966
976
|
video: "Video",
|
|
967
977
|
days: "Days",
|
|
@@ -1034,16 +1044,16 @@ var Si = {
|
|
|
1034
1044
|
seconds: "Sekunder",
|
|
1035
1045
|
expired: "Dette tilbud er udløbet"
|
|
1036
1046
|
}
|
|
1037
|
-
},
|
|
1038
|
-
function wi(e) {
|
|
1039
|
-
if (!e) return Si.en;
|
|
1040
|
-
let t = e.trim().replace(/_/g, "-").toLowerCase(), n = Ci.get(t);
|
|
1041
|
-
if (n) return Si[n];
|
|
1042
|
-
let r = Ci.get(pi(t));
|
|
1043
|
-
return r ? Si[r] : Si.en;
|
|
1044
|
-
}
|
|
1047
|
+
}, wi = new Map(Object.keys(Ci).map((e) => [e.toLowerCase(), e]));
|
|
1045
1048
|
function Ti(e) {
|
|
1046
|
-
|
|
1049
|
+
if (!e) return Ci.en;
|
|
1050
|
+
let t = e.trim().replace(/_/g, "-").toLowerCase(), n = wi.get(t);
|
|
1051
|
+
if (n) return Ci[n];
|
|
1052
|
+
let r = wi.get(mi(t));
|
|
1053
|
+
return r ? Ci[r] : Ci.en;
|
|
1054
|
+
}
|
|
1055
|
+
function Ei(e) {
|
|
1056
|
+
let t = Ti(e);
|
|
1047
1057
|
return {
|
|
1048
1058
|
video: { alt: t.video },
|
|
1049
1059
|
countdown: {
|
|
@@ -1056,9 +1066,9 @@ function Ti(e) {
|
|
|
1056
1066
|
};
|
|
1057
1067
|
}
|
|
1058
1068
|
// src/utils/collectColorFieldIssues.ts
|
|
1059
|
-
function
|
|
1069
|
+
function Di(e, t) {
|
|
1060
1070
|
let n = [], r = (r, i) => {
|
|
1061
|
-
let a =
|
|
1071
|
+
let a = zn(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
|
|
1062
1072
|
if (a.invalidPresets.length > 0 && n.push({
|
|
1063
1073
|
id: s("invalid-presets"),
|
|
1064
1074
|
message: `${o}: presets skipped invalid entries: ${a.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).` + (a.presetsInherited ? " No valid entries are left, so the field inherits colors.presets." : "")
|
|
@@ -1081,7 +1091,7 @@ function Ei(e, t) {
|
|
|
1081
1091
|
return n;
|
|
1082
1092
|
}
|
|
1083
1093
|
// src/utils/keyboardShortcuts.ts
|
|
1084
|
-
function
|
|
1094
|
+
function Oi(e) {
|
|
1085
1095
|
for (let t of e.composedPath()) {
|
|
1086
1096
|
if (!(t instanceof HTMLElement)) continue;
|
|
1087
1097
|
if (t.isContentEditable) return !0;
|
|
@@ -1090,14 +1100,14 @@ function Di(e) {
|
|
|
1090
1100
|
}
|
|
1091
1101
|
return !1;
|
|
1092
1102
|
}
|
|
1093
|
-
function
|
|
1103
|
+
function ki(e, t) {
|
|
1094
1104
|
let n = e.metaKey || e.ctrlKey;
|
|
1095
1105
|
if (n && e.key.toLowerCase() === "s") e.preventDefault(), t.onSave?.();
|
|
1096
1106
|
else if (n && e.key.toLowerCase() === "z") {
|
|
1097
|
-
if (
|
|
1107
|
+
if (Oi(e)) return;
|
|
1098
1108
|
e.preventDefault(), e.shiftKey ? t.history.redo() : t.history.undo();
|
|
1099
1109
|
} else {
|
|
1100
|
-
if (t.isPicking?.() && !
|
|
1110
|
+
if (t.isPicking?.() && !Oi(e)) {
|
|
1101
1111
|
if (e.key === "Escape") {
|
|
1102
1112
|
e.preventDefault(), t.onCancelPick?.();
|
|
1103
1113
|
return;
|
|
@@ -1111,23 +1121,23 @@ function Oi(e, t) {
|
|
|
1111
1121
|
return;
|
|
1112
1122
|
}
|
|
1113
1123
|
}
|
|
1114
|
-
e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !
|
|
1124
|
+
e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Oi(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
|
|
1115
1125
|
}
|
|
1116
1126
|
}
|
|
1117
1127
|
// src/utils/blockComponentResolver.ts
|
|
1118
|
-
function
|
|
1128
|
+
function Ai(e, t) {
|
|
1119
1129
|
let n = { fontFamily: t(e.fontFamily) };
|
|
1120
1130
|
return e.textColor && (n.color = e.textColor), e.linkColor && (n["--tpl-doc-link-color"] = e.linkColor), e.linkUnderline && (n["--tpl-doc-link-underline"] = "underline"), n;
|
|
1121
1131
|
}
|
|
1122
|
-
function
|
|
1132
|
+
function ji(e, t, n) {
|
|
1123
1133
|
if (t) {
|
|
1124
1134
|
let n = t.getComponent(e);
|
|
1125
1135
|
if (n) return n;
|
|
1126
1136
|
}
|
|
1127
1137
|
return n[e.type] ?? null;
|
|
1128
1138
|
}
|
|
1129
|
-
var
|
|
1130
|
-
function
|
|
1139
|
+
var Mi = "--tpl-block-bg-layer", Ni = "--tpl-email-frame-width", Pi = "tpl-has-bg-image";
|
|
1140
|
+
function Fi(e, t) {
|
|
1131
1141
|
if (t === null) return {};
|
|
1132
1142
|
let n = Re(e);
|
|
1133
1143
|
if (n === null) return {};
|
|
@@ -1137,31 +1147,31 @@ function Pi(e, t) {
|
|
|
1137
1147
|
backgroundSize: n.size,
|
|
1138
1148
|
backgroundPosition: n.position,
|
|
1139
1149
|
backgroundRepeat: n.repeat,
|
|
1140
|
-
[
|
|
1150
|
+
[Mi]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
|
|
1141
1151
|
};
|
|
1142
1152
|
}
|
|
1143
|
-
function
|
|
1144
|
-
return e &&
|
|
1153
|
+
function Ii(e) {
|
|
1154
|
+
return e && Mi in e ? Pi : void 0;
|
|
1145
1155
|
}
|
|
1146
|
-
var
|
|
1156
|
+
var Li = {
|
|
1147
1157
|
top: "flex-start",
|
|
1148
1158
|
middle: "center",
|
|
1149
1159
|
bottom: "flex-end"
|
|
1150
1160
|
};
|
|
1151
|
-
function
|
|
1152
|
-
let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${
|
|
1161
|
+
function Ri(e, t) {
|
|
1162
|
+
let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${zi(t, e.aspectRatio)}px` } : { aspectRatio: `1 / ${e.aspectRatio ?? 1}` };
|
|
1153
1163
|
return {
|
|
1154
1164
|
display: "flex",
|
|
1155
1165
|
flexDirection: "column",
|
|
1156
|
-
justifyContent:
|
|
1166
|
+
justifyContent: Li[e.verticalAlign],
|
|
1157
1167
|
boxSizing: "border-box",
|
|
1158
1168
|
...n
|
|
1159
1169
|
};
|
|
1160
1170
|
}
|
|
1161
|
-
function
|
|
1171
|
+
function zi(e, t) {
|
|
1162
1172
|
return Math.max(1, Math.round(Math.max(1, Math.round(e)) * t));
|
|
1163
1173
|
}
|
|
1164
|
-
function
|
|
1174
|
+
function Bi(e, t = {}) {
|
|
1165
1175
|
if (e.type === "wrapper") return {};
|
|
1166
1176
|
let { padding: n, backgroundColor: r } = e.styles, i = {
|
|
1167
1177
|
padding: `${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`,
|
|
@@ -1171,59 +1181,59 @@ function zi(e, t = {}) {
|
|
|
1171
1181
|
let n = Ce(e.borderRadius);
|
|
1172
1182
|
n !== null && (i.borderRadius = n);
|
|
1173
1183
|
let r = Fe(e);
|
|
1174
|
-
r?.applied && e.backgroundImage ? (Object.assign(i,
|
|
1184
|
+
r?.applied && e.backgroundImage ? (Object.assign(i, Ri(r, t.heroBoxWidth)), Object.assign(i, Fi({
|
|
1175
1185
|
...e.backgroundImage,
|
|
1176
1186
|
size: "cover",
|
|
1177
1187
|
repeat: !1
|
|
1178
|
-
}, t.backgroundImageUrl))) : (Object.assign(i,
|
|
1188
|
+
}, t.backgroundImageUrl))) : (Object.assign(i, Hi(e.border)), Object.assign(i, Fi(e.backgroundImage, t.backgroundImageUrl)));
|
|
1179
1189
|
}
|
|
1180
1190
|
return i;
|
|
1181
1191
|
}
|
|
1182
|
-
function
|
|
1183
|
-
return e.type === "section" ?
|
|
1184
|
-
backgroundImageUrl:
|
|
1192
|
+
function Vi(e, t, n, r) {
|
|
1193
|
+
return e.type === "section" ? Bi(e, {
|
|
1194
|
+
backgroundImageUrl: Tn(t, e.backgroundImage, n),
|
|
1185
1195
|
heroBoxWidth: r
|
|
1186
|
-
}) :
|
|
1196
|
+
}) : Bi(e);
|
|
1187
1197
|
}
|
|
1188
|
-
function
|
|
1198
|
+
function Hi(e) {
|
|
1189
1199
|
let t = {};
|
|
1190
1200
|
for (let [n, r] of Object.entries(ct(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
|
|
1191
1201
|
return t;
|
|
1192
1202
|
}
|
|
1193
|
-
var
|
|
1203
|
+
var Ui = {
|
|
1194
1204
|
width: "100cqw",
|
|
1195
1205
|
maxWidth: "none",
|
|
1196
1206
|
marginInline: "calc(50% - 50cqw)",
|
|
1197
1207
|
boxSizing: "border-box"
|
|
1198
1208
|
};
|
|
1199
|
-
function
|
|
1209
|
+
function Wi(e) {
|
|
1200
1210
|
return `${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`;
|
|
1201
1211
|
}
|
|
1202
|
-
function
|
|
1212
|
+
function Gi(e) {
|
|
1203
1213
|
let t = {
|
|
1204
1214
|
width: "var(--tpl-email-frame-width)",
|
|
1205
1215
|
maxWidth: "100%",
|
|
1206
1216
|
marginInline: "auto",
|
|
1207
1217
|
boxSizing: "border-box"
|
|
1208
1218
|
};
|
|
1209
|
-
return e && (t.padding =
|
|
1219
|
+
return e && (t.padding = Wi(e)), t;
|
|
1210
1220
|
}
|
|
1211
|
-
function
|
|
1221
|
+
function Ki(e, t = {}) {
|
|
1212
1222
|
if (e.type !== "section" || !e.wrapper) return null;
|
|
1213
1223
|
let n = e.wrapper, r = {};
|
|
1214
|
-
if (n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && !n.fullWidth && (r.padding =
|
|
1224
|
+
if (n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && !n.fullWidth && (r.padding = Wi(n.padding)), !n.fullWidth) {
|
|
1215
1225
|
let e = Ce(n.borderRadius);
|
|
1216
1226
|
e !== null && (r.borderRadius = e);
|
|
1217
1227
|
}
|
|
1218
|
-
return Object.assign(r,
|
|
1228
|
+
return Object.assign(r, Fi(n.backgroundImage, t.backgroundImageUrl)), n.fullWidth && Object.assign(r, Ui), r;
|
|
1219
1229
|
}
|
|
1220
|
-
function
|
|
1230
|
+
function qi(e, t = {}) {
|
|
1221
1231
|
if (e.type !== "wrapper") return null;
|
|
1222
1232
|
let n = {};
|
|
1223
|
-
return e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding && !e.fullWidth && (n.padding =
|
|
1233
|
+
return e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding && !e.fullWidth && (n.padding = Wi(e.styles.padding)), !e.fullWidth && e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, Fi(e.backgroundImage, t.backgroundImageUrl)), e.fullWidth && Object.assign(n, Ui), n;
|
|
1224
1234
|
}
|
|
1225
1235
|
// src/utils/mergeTagLabelSegments.ts
|
|
1226
|
-
function
|
|
1236
|
+
function Ji(e, t, n, r = !1) {
|
|
1227
1237
|
if (!e) return [];
|
|
1228
1238
|
let i = [], a = 0;
|
|
1229
1239
|
for (let o of Ye(e, n)) {
|
|
@@ -1256,27 +1266,27 @@ function qi(e, t, n, r = !1) {
|
|
|
1256
1266
|
}), i;
|
|
1257
1267
|
}
|
|
1258
1268
|
// src/components/MergeTagPreviewText.vue
|
|
1259
|
-
var
|
|
1269
|
+
var Yi = o({
|
|
1260
1270
|
name: "MergeTagPreviewText",
|
|
1261
1271
|
props: { text: {
|
|
1262
1272
|
type: String,
|
|
1263
1273
|
required: !0
|
|
1264
1274
|
} },
|
|
1265
1275
|
setup(e) {
|
|
1266
|
-
let t = g(
|
|
1276
|
+
let t = g(Ft, Bt), n = g(St, le.liquid), r = g(Xt, null), i = I(() => Ji(e.text, t.value, n, r?.value ?? !1));
|
|
1267
1277
|
return () => i.value.map((e, t) => e.type === "tag" ? s("span", {
|
|
1268
1278
|
key: t,
|
|
1269
1279
|
class: "tpl-merge-tag-label"
|
|
1270
1280
|
}, e.value) : e.value);
|
|
1271
1281
|
}
|
|
1272
|
-
}),
|
|
1282
|
+
}), Xi = ["href"], Zi = /* @__PURE__ */ o({
|
|
1273
1283
|
__name: "ButtonBlock",
|
|
1274
1284
|
props: {
|
|
1275
1285
|
block: {},
|
|
1276
1286
|
viewport: {}
|
|
1277
1287
|
},
|
|
1278
1288
|
setup(e) {
|
|
1279
|
-
let t = e, n =
|
|
1289
|
+
let t = e, n = on(Jt, "ButtonBlock");
|
|
1280
1290
|
function r(e) {
|
|
1281
1291
|
return e === "regular" ? "400" : e === "medium" ? "500" : e === "bold" ? "700" : "bold";
|
|
1282
1292
|
}
|
|
@@ -1293,27 +1303,27 @@ var Ji = o({
|
|
|
1293
1303
|
borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : Ce(t.block.borderRadius) ?? "0px",
|
|
1294
1304
|
textAlign: "center"
|
|
1295
1305
|
};
|
|
1296
|
-
return Object.assign(e,
|
|
1306
|
+
return Object.assign(e, Hi(t.block.border)), t.block.fontFamily && (e.fontFamily = n.resolveFontFamily(t.block.fontFamily)), t.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof t.block.width == "number" && (e.width = `${t.block.width}px`, e.boxSizing = "border-box"), e;
|
|
1297
1307
|
}), a = I(() => ({ textAlign: t.block.align ?? "center" }));
|
|
1298
1308
|
return (t, n) => (c(), w("div", { style: L(a.value) }, [N("a", {
|
|
1299
1309
|
href: e.block.url || "#",
|
|
1300
1310
|
style: L(i.value),
|
|
1301
1311
|
class: "tpl:cursor-default",
|
|
1302
1312
|
onClick: n[0] ||= M(() => {}, ["prevent"])
|
|
1303
|
-
}, [W(
|
|
1313
|
+
}, [W(Yi, { text: e.block.text }, null, 8, ["text"])], 12, Xi)], 4));
|
|
1304
1314
|
}
|
|
1305
|
-
}),
|
|
1315
|
+
}), Qi = ["innerHTML"], $i = [
|
|
1306
1316
|
"src",
|
|
1307
1317
|
"width",
|
|
1308
1318
|
"height"
|
|
1309
|
-
],
|
|
1319
|
+
], ea = /* @__PURE__ */ o({
|
|
1310
1320
|
__name: "CustomBlockIcon",
|
|
1311
1321
|
props: {
|
|
1312
1322
|
icon: {},
|
|
1313
1323
|
size: {}
|
|
1314
1324
|
},
|
|
1315
1325
|
setup(e) {
|
|
1316
|
-
let t = e, n = I(() => t.size ?? 20), r = I(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), i = I(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/"))), a = I(() => r.value ?
|
|
1326
|
+
let t = e, n = I(() => t.size ?? 20), r = I(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), i = I(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/"))), a = I(() => r.value ? Kn(t.icon ?? "") : "");
|
|
1317
1327
|
return (t, o) => r.value ? (c(), w("span", {
|
|
1318
1328
|
key: 0,
|
|
1319
1329
|
class: "tpl:inline-flex tpl:items-center tpl:justify-center",
|
|
@@ -1322,33 +1332,33 @@ var Ji = o({
|
|
|
1322
1332
|
height: `${n.value}px`
|
|
1323
1333
|
}),
|
|
1324
1334
|
innerHTML: a.value
|
|
1325
|
-
}, null, 12,
|
|
1335
|
+
}, null, 12, Qi)) : i.value ? (c(), w("img", {
|
|
1326
1336
|
key: 1,
|
|
1327
1337
|
src: e.icon,
|
|
1328
1338
|
width: n.value,
|
|
1329
1339
|
height: n.value,
|
|
1330
1340
|
class: "tpl:inline-block",
|
|
1331
1341
|
alt: ""
|
|
1332
|
-
}, null, 8,
|
|
1342
|
+
}, null, 8, $i)) : (c(), A(D(er), {
|
|
1333
1343
|
key: 2,
|
|
1334
1344
|
size: n.value,
|
|
1335
1345
|
"stroke-width": 1.5
|
|
1336
1346
|
}, null, 8, ["size"]));
|
|
1337
1347
|
}
|
|
1338
|
-
}),
|
|
1348
|
+
}), ta = { class: "tpl:w-full" }, na = {
|
|
1339
1349
|
key: 0,
|
|
1340
1350
|
class: "tpl:flex tpl:box-border tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-warning)] tpl:bg-[var(--tpl-warning-light)]"
|
|
1341
|
-
},
|
|
1351
|
+
}, ra = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ia = {
|
|
1342
1352
|
key: 1,
|
|
1343
1353
|
class: "tpl:flex tpl:box-border tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-danger)] tpl:bg-[var(--tpl-danger-light)]"
|
|
1344
|
-
},
|
|
1354
|
+
}, aa = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, oa = {
|
|
1345
1355
|
key: 2,
|
|
1346
1356
|
class: "tpl:relative"
|
|
1347
|
-
},
|
|
1357
|
+
}, sa = ["innerHTML"], ca = {
|
|
1348
1358
|
key: 0,
|
|
1349
1359
|
class: "tpl:absolute tpl:inset-0 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:rounded tpl:backdrop-blur-[2px]",
|
|
1350
1360
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
|
|
1351
|
-
},
|
|
1361
|
+
}, la = /* @__PURE__ */ o({
|
|
1352
1362
|
__name: "CustomBlock",
|
|
1353
1363
|
props: {
|
|
1354
1364
|
block: {},
|
|
@@ -1356,7 +1366,7 @@ var Ji = o({
|
|
|
1356
1366
|
},
|
|
1357
1367
|
emits: ["fetchData"],
|
|
1358
1368
|
setup(e, { emit: t }) {
|
|
1359
|
-
let n = e, r = t, { t: i } = G(), a = g(an, null), o = H(""), s = I(() =>
|
|
1369
|
+
let n = e, r = t, { t: i } = G(), a = g(an, null), o = H(""), s = I(() => qn(o.value)), l = H(!1), d = I(() => a?.getDefinition(n.block.customType)), f = I(() => !!d.value), p = I(() => n.block), { isFetching: m, fetch: _, needsFetch: v, hasDataSource: y } = En({
|
|
1360
1370
|
definition: d,
|
|
1361
1371
|
block: p,
|
|
1362
1372
|
onUpdate: (e, t) => {
|
|
@@ -1365,7 +1375,7 @@ var Ji = o({
|
|
|
1365
1375
|
dataSourceFetched: t
|
|
1366
1376
|
});
|
|
1367
1377
|
}
|
|
1368
|
-
}), b = g(
|
|
1378
|
+
}), b = g(Ft, Bt), x = g(Xt, null), S = I(() => {
|
|
1369
1379
|
if (!x?.value) return n.block;
|
|
1370
1380
|
let e = {};
|
|
1371
1381
|
for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ? ke(r, b.value) : r;
|
|
@@ -1392,10 +1402,10 @@ var Ji = o({
|
|
|
1392
1402
|
E();
|
|
1393
1403
|
}, { deep: !0 }), u(() => x?.value, () => {
|
|
1394
1404
|
E();
|
|
1395
|
-
}), (e, t) => (c(), w("div",
|
|
1405
|
+
}), (e, t) => (c(), w("div", ta, [f.value ? l.value ? (c(), w("div", ia, [W(D(ar), {
|
|
1396
1406
|
size: 24,
|
|
1397
1407
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
1398
|
-
}), N("span",
|
|
1408
|
+
}), N("span", aa, P(D(i).customBlocks.renderError), 1)])) : (c(), w("div", oa, [N("div", { innerHTML: s.value }, null, 8, sa), D(y) && D(v) ? (c(), w("div", ca, [D(m) ? (c(), A(pr, {
|
|
1399
1409
|
key: 1,
|
|
1400
1410
|
class: "tpl:w-48"
|
|
1401
1411
|
})) : (c(), w("button", {
|
|
@@ -1403,16 +1413,16 @@ var Ji = o({
|
|
|
1403
1413
|
type: "button",
|
|
1404
1414
|
class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2 tpl:text-sm tpl:font-semibold tpl:shadow-[var(--tpl-shadow)] tpl:transition-all tpl:hover:border-[var(--tpl-primary)] tpl:hover:shadow-[var(--tpl-shadow-md)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
|
|
1405
1415
|
onClick: t[0] ||= M((...e) => D(_) && D(_)(...e), ["stop"])
|
|
1406
|
-
}, [d.value?.icon ? (c(), A(
|
|
1416
|
+
}, [d.value?.icon ? (c(), A(ea, {
|
|
1407
1417
|
key: 0,
|
|
1408
1418
|
icon: d.value.icon,
|
|
1409
1419
|
size: 16
|
|
1410
|
-
}, null, 8, ["icon"])) : k("", !0), T(" " + P(d.value?.dataSource?.label || D(i).customBlocks.dataSource.fetchButton), 1)]))])) : k("", !0)])) : (c(), w("div",
|
|
1420
|
+
}, null, 8, ["icon"])) : k("", !0), T(" " + P(d.value?.dataSource?.label || D(i).customBlocks.dataSource.fetchButton), 1)]))])) : k("", !0)])) : (c(), w("div", na, [W(D(tr), {
|
|
1411
1421
|
size: 24,
|
|
1412
1422
|
class: "tpl:text-[var(--tpl-warning)]"
|
|
1413
|
-
}), N("span",
|
|
1423
|
+
}), N("span", ra, P(D(i).customBlocks.definitionNotFound), 1)]))]));
|
|
1414
1424
|
}
|
|
1415
|
-
}),
|
|
1425
|
+
}), ua = { class: "tpl:w-full" }, da = /* @__PURE__ */ o({
|
|
1416
1426
|
__name: "DividerBlock",
|
|
1417
1427
|
props: {
|
|
1418
1428
|
block: {},
|
|
@@ -1424,28 +1434,28 @@ var Ji = o({
|
|
|
1424
1434
|
width: t.block.width === "full" ? "100%" : typeof t.block.width == "number" ? `${t.block.width}px` : t.block.width,
|
|
1425
1435
|
margin: t.block.width === "full" ? "0" : "0 auto"
|
|
1426
1436
|
}));
|
|
1427
|
-
return (e, t) => (c(), w("div",
|
|
1437
|
+
return (e, t) => (c(), w("div", ua, [N("hr", {
|
|
1428
1438
|
class: "tpl:m-0 tpl:border-none",
|
|
1429
1439
|
style: L(n.value)
|
|
1430
1440
|
}, null, 4)]));
|
|
1431
1441
|
}
|
|
1432
|
-
}),
|
|
1442
|
+
}), fa = { class: "tpl:w-full" }, pa = ["srcdoc", "title"], ma = {
|
|
1433
1443
|
key: 1,
|
|
1434
1444
|
class: "tpl:flex tpl:box-border tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)]"
|
|
1435
|
-
},
|
|
1445
|
+
}, ha = {
|
|
1436
1446
|
key: 0,
|
|
1437
1447
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
|
|
1438
|
-
},
|
|
1448
|
+
}, ga = {
|
|
1439
1449
|
key: 1,
|
|
1440
1450
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
1441
|
-
},
|
|
1451
|
+
}, _a = /* @__PURE__ */ o({
|
|
1442
1452
|
__name: "HtmlBlock",
|
|
1443
1453
|
props: {
|
|
1444
1454
|
block: {},
|
|
1445
1455
|
viewport: {}
|
|
1446
1456
|
},
|
|
1447
1457
|
setup(e) {
|
|
1448
|
-
let t = e, { t: n } = G(), r = g(Lt, !1), i = I(() => t.block.content.trim().length > 0), a = I(() => r && i.value), o = g(
|
|
1458
|
+
let t = e, { t: n } = G(), r = g(Lt, !1), i = I(() => t.block.content.trim().length > 0), a = I(() => r && i.value), o = g(Ft, Bt), s = g(Xt, null), l = I(() => s?.value ? ke(t.block.content, o.value) : t.block.content), d = H(null), f = H(60), p = null;
|
|
1449
1459
|
function h() {
|
|
1450
1460
|
let e = d.value?.contentDocument;
|
|
1451
1461
|
e && (f.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
|
|
@@ -1459,7 +1469,7 @@ var Ji = o({
|
|
|
1459
1469
|
e || (p?.disconnect(), p = null);
|
|
1460
1470
|
}), m(() => {
|
|
1461
1471
|
p?.disconnect(), p = null;
|
|
1462
|
-
}), (e, t) => (c(), w("div",
|
|
1472
|
+
}), (e, t) => (c(), w("div", fa, [a.value ? (c(), w("iframe", {
|
|
1463
1473
|
key: 0,
|
|
1464
1474
|
ref_key: "iframeRef",
|
|
1465
1475
|
ref: d,
|
|
@@ -1469,18 +1479,18 @@ var Ji = o({
|
|
|
1469
1479
|
class: "tpl:block tpl:w-full tpl:border-0",
|
|
1470
1480
|
style: L({ height: `${f.value}px` }),
|
|
1471
1481
|
onLoad: _
|
|
1472
|
-
}, null, 44,
|
|
1482
|
+
}, null, 44, pa)) : (c(), w("div", ma, [W(D(Xn), {
|
|
1473
1483
|
size: 24,
|
|
1474
1484
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
1475
|
-
}), i.value ? (c(), w("span",
|
|
1485
|
+
}), i.value ? (c(), w("span", ha, P(D(n).html.preview), 1)) : (c(), w("span", ga, P(D(n).html.empty), 1))]))]));
|
|
1476
1486
|
}
|
|
1477
|
-
}),
|
|
1487
|
+
}), va = ["data-drop-enabled"], ya = ["href"], ba = ["src", "alt"], xa = ["src", "alt"], Sa = {
|
|
1478
1488
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
1479
1489
|
style: { opacity: "0.7" }
|
|
1480
|
-
},
|
|
1490
|
+
}, Ca = ["href"], wa = ["src", "alt"], Ta = ["src", "alt"], Ea = {
|
|
1481
1491
|
key: 4,
|
|
1482
1492
|
class: "tpl:flex tpl:box-border tpl:min-h-[100px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
|
|
1483
|
-
},
|
|
1493
|
+
}, Da = ["aria-label"], Oa = { key: 1 }, ka = /* @__PURE__ */ o({
|
|
1484
1494
|
__name: "ImageBlock",
|
|
1485
1495
|
props: {
|
|
1486
1496
|
block: {},
|
|
@@ -1492,11 +1502,11 @@ var Ji = o({
|
|
|
1492
1502
|
function s(e) {
|
|
1493
1503
|
let t = {
|
|
1494
1504
|
src: e.url,
|
|
1495
|
-
...
|
|
1505
|
+
...Pn(jn(e.width, e.height))
|
|
1496
1506
|
};
|
|
1497
1507
|
e.alt && (t.alt = e.alt), r("update", t);
|
|
1498
1508
|
}
|
|
1499
|
-
let l = H(), { canBrowse: u, dropEnabled: d, isUploading: f, showOverlay: p, openMediaBrowser: m } =
|
|
1509
|
+
let l = H(), { canBrowse: u, dropEnabled: d, isUploading: f, showOverlay: p, openMediaBrowser: m } = Rn({
|
|
1500
1510
|
target: l,
|
|
1501
1511
|
blocked: o,
|
|
1502
1512
|
apply: s
|
|
@@ -1510,12 +1520,12 @@ var Ji = o({
|
|
|
1510
1520
|
width: n.block.width === "full" ? g.value : `${n.block.width}px`,
|
|
1511
1521
|
height: n.block.height ? `${n.block.height}px` : void 0,
|
|
1512
1522
|
borderRadius: Ce(n.block.borderRadius) ?? void 0,
|
|
1513
|
-
...
|
|
1523
|
+
...Hi(n.block.border),
|
|
1514
1524
|
display: "block",
|
|
1515
1525
|
marginLeft: e === "center" || e === "right" ? "auto" : void 0,
|
|
1516
1526
|
marginRight: e === "center" ? "auto" : void 0
|
|
1517
1527
|
};
|
|
1518
|
-
}), v =
|
|
1528
|
+
}), v = An(() => o.value ? void 0 : n.block.src), y = An(() => o.value ? n.block.placeholderUrl : void 0);
|
|
1519
1529
|
return (t, n) => (c(), w("div", {
|
|
1520
1530
|
ref_key: "dropZoneRef",
|
|
1521
1531
|
ref: l,
|
|
@@ -1523,7 +1533,7 @@ var Ji = o({
|
|
|
1523
1533
|
"data-drop-enabled": D(d),
|
|
1524
1534
|
class: "tpl:relative tpl:w-full",
|
|
1525
1535
|
style: L(h.value)
|
|
1526
|
-
}, [D(p) ? (c(), A(
|
|
1536
|
+
}, [D(p) ? (c(), A(Nn, {
|
|
1527
1537
|
key: 0,
|
|
1528
1538
|
uploading: D(f),
|
|
1529
1539
|
size: "canvas"
|
|
@@ -1539,22 +1549,22 @@ var Ji = o({
|
|
|
1539
1549
|
src: D(y),
|
|
1540
1550
|
alt: e.block.alt || D(i).image.altTextPlaceholder,
|
|
1541
1551
|
style: L(_.value)
|
|
1542
|
-
}, null, 12,
|
|
1552
|
+
}, null, 12, ba)], 8, ya)) : (c(), w("img", {
|
|
1543
1553
|
key: 1,
|
|
1544
1554
|
class: "tpl:border-0",
|
|
1545
1555
|
src: D(y),
|
|
1546
1556
|
alt: e.block.alt,
|
|
1547
1557
|
style: L(_.value)
|
|
1548
|
-
}, null, 12,
|
|
1558
|
+
}, null, 12, xa))], 64)) : e.block.src && o.value ? (c(), w("div", {
|
|
1549
1559
|
key: 2,
|
|
1550
1560
|
class: "tpl:!flex tpl:box-border tpl:min-h-[120px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
|
|
1551
1561
|
style: L([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, _.value])
|
|
1552
|
-
}, [W(D(
|
|
1562
|
+
}, [W(D(ir), {
|
|
1553
1563
|
size: 32,
|
|
1554
1564
|
"stroke-width": 1.5,
|
|
1555
1565
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
1556
1566
|
style: { opacity: "0.5" }
|
|
1557
|
-
}), N("span",
|
|
1567
|
+
}), N("span", Sa, [W(Yi, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (c(), w(U, { key: 3 }, [e.block.linkUrl ? (c(), w("a", {
|
|
1558
1568
|
key: 0,
|
|
1559
1569
|
href: e.block.linkUrl,
|
|
1560
1570
|
target: "_blank",
|
|
@@ -1566,33 +1576,33 @@ var Ji = o({
|
|
|
1566
1576
|
src: D(v),
|
|
1567
1577
|
alt: e.block.alt || D(i).image.altTextPlaceholder,
|
|
1568
1578
|
style: L(_.value)
|
|
1569
|
-
}, null, 12,
|
|
1579
|
+
}, null, 12, wa)], 8, Ca)) : (c(), w("img", {
|
|
1570
1580
|
key: 1,
|
|
1571
1581
|
class: "tpl:border-0",
|
|
1572
1582
|
src: D(v),
|
|
1573
1583
|
alt: e.block.alt,
|
|
1574
1584
|
style: L(_.value)
|
|
1575
|
-
}, null, 12,
|
|
1585
|
+
}, null, 12, Ta))], 64)) : (c(), w("div", Ea, [D(u) ? (c(), w("button", {
|
|
1576
1586
|
key: 0,
|
|
1577
1587
|
"aria-label": D(i).image.browseMedia,
|
|
1578
1588
|
class: "tpl:flex tpl:items-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:cursor-pointer tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
|
|
1579
1589
|
onClick: n[2] ||= M((...e) => D(m) && D(m)(...e), ["stop"])
|
|
1580
|
-
}, [W(D(
|
|
1590
|
+
}, [W(D(ir), {
|
|
1581
1591
|
size: 14,
|
|
1582
1592
|
"stroke-width": 1.5
|
|
1583
|
-
}), T(" " + P(D(i).image.browseMedia), 1)], 8,
|
|
1593
|
+
}), T(" " + P(D(i).image.browseMedia), 1)], 8, Da)) : (c(), w("span", Oa, P(D(i).image.clickToAdd), 1))]))], 12, va));
|
|
1584
1594
|
}
|
|
1585
|
-
}),
|
|
1595
|
+
}), Aa = { class: "tpl:w-full" }, ja = ["href"], Ma = {
|
|
1586
1596
|
key: 1,
|
|
1587
1597
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
|
|
1588
|
-
},
|
|
1598
|
+
}, Na = /* @__PURE__ */ o({
|
|
1589
1599
|
__name: "MenuBlock",
|
|
1590
1600
|
props: {
|
|
1591
1601
|
block: {},
|
|
1592
1602
|
viewport: {}
|
|
1593
1603
|
},
|
|
1594
1604
|
setup(e) {
|
|
1595
|
-
let t = e, { t: n } = G(), r =
|
|
1605
|
+
let t = e, { t: n } = G(), r = on(Jt, "MenuBlock"), i = I(() => ({
|
|
1596
1606
|
display: "flex",
|
|
1597
1607
|
flexWrap: "wrap",
|
|
1598
1608
|
gap: `0 ${t.block.spacing}px`,
|
|
@@ -1604,7 +1614,7 @@ var Ji = o({
|
|
|
1604
1614
|
function o(e) {
|
|
1605
1615
|
return e || t.block.linkColor || t.block.color;
|
|
1606
1616
|
}
|
|
1607
|
-
return (t, r) => (c(), w("div",
|
|
1617
|
+
return (t, r) => (c(), w("div", Aa, [a.value ? (c(), w("div", {
|
|
1608
1618
|
key: 0,
|
|
1609
1619
|
style: L(i.value)
|
|
1610
1620
|
}, [(c(!0), w(U, null, p(e.block.items, (t, n) => (c(), w(U, { key: t.id }, [N("a", {
|
|
@@ -1616,18 +1626,18 @@ var Ji = o({
|
|
|
1616
1626
|
textDecoration: t.underline ? "underline" : "none"
|
|
1617
1627
|
}),
|
|
1618
1628
|
onClick: r[0] ||= M(() => {}, ["prevent"])
|
|
1619
|
-
}, [W(
|
|
1629
|
+
}, [W(Yi, { text: t.text || "..." }, null, 8, ["text"])], 12, ja), n < e.block.items.length - 1 ? (c(), w("span", {
|
|
1620
1630
|
key: 0,
|
|
1621
1631
|
style: L({
|
|
1622
1632
|
color: e.block.separatorColor,
|
|
1623
1633
|
padding: `0 ${e.block.spacing}px`
|
|
1624
1634
|
})
|
|
1625
|
-
}, P(e.block.separator), 5)) : k("", !0)], 64))), 128))], 4)) : (c(), w("div",
|
|
1635
|
+
}, P(e.block.separator), 5)) : k("", !0)], 64))), 128))], 4)) : (c(), w("div", Ma, [W(D(rr), { size: 16 }), N("span", null, P(D(n).menu.addLinks), 1)]))]));
|
|
1626
1636
|
}
|
|
1627
1637
|
});
|
|
1628
1638
|
// src/composables/useEditableTextBlock.ts
|
|
1629
|
-
function
|
|
1630
|
-
let t = g(
|
|
1639
|
+
function Pa(e) {
|
|
1640
|
+
let t = g(Ft, Bt), r = g(Xt, null), i = g(Ut, null), { syntax: a } = K(), o = I(() => r?.value ? Ue(e(), t.value) : Le(e(), t.value)), s = I(() => Oe(qn(ie(o.value, a)))), c = H(!1);
|
|
1631
1641
|
u(() => i?.value, (e) => {
|
|
1632
1642
|
e && (c.value = !1);
|
|
1633
1643
|
});
|
|
@@ -1651,14 +1661,14 @@ function Na(e) {
|
|
|
1651
1661
|
};
|
|
1652
1662
|
}
|
|
1653
1663
|
// src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
|
|
1654
|
-
var
|
|
1664
|
+
var Fa = ["innerHTML"], Ia = /* @__PURE__ */ o({
|
|
1655
1665
|
__name: "ParagraphBlock",
|
|
1656
1666
|
props: {
|
|
1657
1667
|
block: {},
|
|
1658
1668
|
viewport: {}
|
|
1659
1669
|
},
|
|
1660
1670
|
setup(e) {
|
|
1661
|
-
let t = e, n = b(() => import("./ParagraphEditor-
|
|
1671
|
+
let t = e, n = b(() => import("./ParagraphEditor-A_OEuQ1Q.js").then((e) => e.t)), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: l } = Pa(() => t.block.content);
|
|
1662
1672
|
return (t, u) => (c(), w("div", {
|
|
1663
1673
|
ref_key: "blockRef",
|
|
1664
1674
|
ref: i,
|
|
@@ -1677,11 +1687,11 @@ var Pa = ["innerHTML"], Fa = /* @__PURE__ */ o({
|
|
|
1677
1687
|
key: 1,
|
|
1678
1688
|
class: "tpl-text-content tpl:outline-none",
|
|
1679
1689
|
innerHTML: D(o)
|
|
1680
|
-
}, null, 8,
|
|
1690
|
+
}, null, 8, Fa))], 544));
|
|
1681
1691
|
}
|
|
1682
1692
|
});
|
|
1683
1693
|
// src/utils/updateBlockList.ts
|
|
1684
|
-
function
|
|
1694
|
+
function La(e, t, n, r = 0, i) {
|
|
1685
1695
|
let a = n ? e.content.value.blocks.find((e) => e.id === n) : void 0, o = n ? a?.type === "section" ? a.children[r] ?? [] : [] : e.content.value.blocks, s = t.map((e) => e.id);
|
|
1686
1696
|
if (o.some((e) => !s.includes(e.id))) return;
|
|
1687
1697
|
let c = t.filter((e) => !o.some((t) => t.id === e.id)), l, u = -1;
|
|
@@ -1694,7 +1704,7 @@ function Ia(e, t, n, r = 0, i) {
|
|
|
1694
1704
|
l && (e.findBlockLocation(l.id) ? e.moveBlock(l.id, u, n, r) : e.addBlock(JSON.parse(JSON.stringify(l)), n, r, u));
|
|
1695
1705
|
}
|
|
1696
1706
|
// src/utils/mergeTagTokens.ts
|
|
1697
|
-
function
|
|
1707
|
+
function Ra(e, t, n) {
|
|
1698
1708
|
let r = [], i = "\0MT";
|
|
1699
1709
|
for (; e.includes(i);) i += "_";
|
|
1700
1710
|
let a = n === "html" ? nt(e, (e) => {
|
|
@@ -1729,44 +1739,44 @@ function La(e, t, n) {
|
|
|
1729
1739
|
}
|
|
1730
1740
|
return [...r, ...s.map((e) => e.value)].sort();
|
|
1731
1741
|
}
|
|
1732
|
-
function
|
|
1733
|
-
return JSON.stringify(
|
|
1742
|
+
function za(e, t, n, r) {
|
|
1743
|
+
return JSON.stringify(Ra(e, n, r)) !== JSON.stringify(Ra(t, n, r));
|
|
1734
1744
|
}
|
|
1735
1745
|
// src/components/localization/LocaleStatusChip.vue?vue&type=script&setup=true&lang.ts
|
|
1736
|
-
var
|
|
1746
|
+
var Ba = [
|
|
1737
1747
|
"data-state",
|
|
1738
1748
|
"aria-label",
|
|
1739
1749
|
"title",
|
|
1740
1750
|
"aria-expanded",
|
|
1741
1751
|
"aria-controls",
|
|
1742
1752
|
"onKeydown"
|
|
1743
|
-
],
|
|
1753
|
+
], Va = [
|
|
1744
1754
|
"aria-label",
|
|
1745
1755
|
"aria-labelledby",
|
|
1746
1756
|
"aria-describedby",
|
|
1747
1757
|
"onKeydown"
|
|
1748
|
-
],
|
|
1758
|
+
], Ha = ["id"], Ua = ["id"], Wa = { class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, Ga = ["disabled"], Ka = {
|
|
1749
1759
|
key: 0,
|
|
1750
1760
|
class: "tpl:m-0 tpl:mb-2 tpl:text-xs tpl:font-medium"
|
|
1751
|
-
},
|
|
1761
|
+
}, qa = {
|
|
1752
1762
|
key: 1,
|
|
1753
1763
|
class: "tpl:m-0"
|
|
1754
|
-
},
|
|
1764
|
+
}, Ja = { class: "tpl:m-0" }, Ya = { class: "tpl:mt-2 tpl:mb-0 tpl:break-words tpl:text-[var(--tpl-chrome-text-muted)]" }, Xa = {
|
|
1755
1765
|
key: 3,
|
|
1756
1766
|
class: "tpl:m-0"
|
|
1757
|
-
},
|
|
1767
|
+
}, Za = {
|
|
1758
1768
|
key: 4,
|
|
1759
1769
|
class: "tpl:m-0"
|
|
1760
|
-
},
|
|
1770
|
+
}, Qa = {
|
|
1761
1771
|
key: 5,
|
|
1762
1772
|
class: "tpl:m-0"
|
|
1763
|
-
},
|
|
1773
|
+
}, $a = {
|
|
1764
1774
|
key: 6,
|
|
1765
1775
|
class: "tpl:m-0 tpl:list-none tpl:p-0"
|
|
1766
|
-
},
|
|
1776
|
+
}, eo = ["onClick"], to = {
|
|
1767
1777
|
key: 7,
|
|
1768
1778
|
class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:gap-1"
|
|
1769
|
-
},
|
|
1779
|
+
}, no = ["data-testid", "disabled"], ro = /*#__PURE__*/ yr(/* @__PURE__ */ o({
|
|
1770
1780
|
__name: "LocaleStatusChip",
|
|
1771
1781
|
props: {
|
|
1772
1782
|
blockId: {},
|
|
@@ -1786,24 +1796,24 @@ var za = [
|
|
|
1786
1796
|
},
|
|
1787
1797
|
emits: ["target"],
|
|
1788
1798
|
setup(e, { emit: t }) {
|
|
1789
|
-
let n = e, r = t, i = g(
|
|
1799
|
+
let n = e, r = t, i = g(vn, null), o = g(qt, null), s = g(wt, null), l = g(ln, "en") ?? "en", { t: d, format: f } = G(), m = te(), h = gt(), { toLocal: v } = vt(), y = H(null), b = H(null), x = H(!1), S = H(!1), C = H(null), T = H(null), F = null, R = H({
|
|
1790
1800
|
top: 0,
|
|
1791
1801
|
left: 0
|
|
1792
1802
|
}), z = H({
|
|
1793
1803
|
maxHeight: 0,
|
|
1794
1804
|
maxWidth: 0
|
|
1795
|
-
}), B = `tpl-locale-popover-${ue()}`, V = I(() =>
|
|
1805
|
+
}), B = `tpl-locale-popover-${ue()}`, V = I(() => mr(i?.activeLocale?.value ?? "")), W = I(() => mr(i?.content.value.settings.locale ?? "en"));
|
|
1796
1806
|
function K(e, t) {
|
|
1797
1807
|
switch (e) {
|
|
1798
1808
|
case "tags-differ": return d.localization.tagsDiffer;
|
|
1799
1809
|
case "hidden": return f(d.localization.hidden, { language: V.value });
|
|
1800
1810
|
case "changed": return f(d.localization.changed, { language: V.value });
|
|
1801
|
-
case "default-stale": return
|
|
1802
|
-
case "missing": return t === 1 ? d.localization.notTranslated :
|
|
1803
|
-
default: return t === 1 ? d.localization.outOfDate :
|
|
1811
|
+
case "default-stale": return hr(d.localization.staleLanguages, t, l);
|
|
1812
|
+
case "missing": return t === 1 ? d.localization.notTranslated : hr(d.localization.notTranslatedCount, t, l);
|
|
1813
|
+
default: return t === 1 ? d.localization.outOfDate : hr(d.localization.staleCount, t, l);
|
|
1804
1814
|
}
|
|
1805
1815
|
}
|
|
1806
|
-
let ne = I(() => K(n.state, n.count)), q = I(() => n.popoverState ?? n.state), J = I(() => n.popoverCount ?? n.count), re = I(() => K(q.value, J.value)), ie = I(() => n.state === "hidden" ?
|
|
1816
|
+
let ne = I(() => K(n.state, n.count)), q = I(() => n.popoverState ?? n.state), J = I(() => n.popoverCount ?? n.count), re = I(() => K(q.value, J.value)), ie = I(() => n.state === "hidden" ? Qn : n.state === "changed" ? Yn : n.state === "default-stale" ? cr : n.state === "stale" ? Zn : ar), ae = I(() => q.value === "default-stale" || (q.value === "missing" || q.value === "stale") && J.value > 1), Y = I(() => n.editable && n.eligibleGaps && o?.isAvailable.value);
|
|
1807
1817
|
function X(e = !1) {
|
|
1808
1818
|
x.value = !1, S.value = !1, F = null, e && y.value?.focus({ preventScroll: !0 });
|
|
1809
1819
|
}
|
|
@@ -1912,7 +1922,7 @@ var za = [
|
|
|
1912
1922
|
size: 12,
|
|
1913
1923
|
"stroke-width": 2,
|
|
1914
1924
|
"aria-hidden": "true"
|
|
1915
|
-
}))], 40,
|
|
1925
|
+
}))], 40, Ba), D(h) && x.value ? (c(), A(ee, {
|
|
1916
1926
|
key: 0,
|
|
1917
1927
|
to: D(h)
|
|
1918
1928
|
}, [N("div", {
|
|
@@ -1938,80 +1948,80 @@ var za = [
|
|
|
1938
1948
|
N("h3", {
|
|
1939
1949
|
id: `${B}-question`,
|
|
1940
1950
|
class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
1941
|
-
}, P(D(
|
|
1951
|
+
}, P(D(hr)(D(d).localization.translationConfirmation, e.translationCount ?? 0, D(l))), 9, Ha),
|
|
1942
1952
|
N("p", {
|
|
1943
1953
|
id: `${B}-warning`,
|
|
1944
1954
|
class: "tpl:m-0 tpl:text-[var(--tpl-text-muted)]"
|
|
1945
|
-
}, P(D(f)(D(d).localization.translationDescription, { language: V.value })), 9,
|
|
1946
|
-
N("div",
|
|
1955
|
+
}, P(D(f)(D(d).localization.translationDescription, { language: V.value })), 9, Ua),
|
|
1956
|
+
N("div", Wa, [N("button", {
|
|
1947
1957
|
ref_key: "confirmationCancel",
|
|
1948
1958
|
ref: T,
|
|
1949
1959
|
type: "button",
|
|
1950
1960
|
"data-testid": "translation-confirm-cancel",
|
|
1951
|
-
class: O(D(
|
|
1961
|
+
class: O(D(_r)),
|
|
1952
1962
|
onClick: ge
|
|
1953
1963
|
}, P(D(d).localization.cancel), 3), N("button", {
|
|
1954
1964
|
type: "button",
|
|
1955
1965
|
"data-testid": "translation-confirm",
|
|
1956
|
-
class: O(D(
|
|
1966
|
+
class: O(D(vr)),
|
|
1957
1967
|
disabled: !Y.value || !!D(o)?.running.value || !e.translationCount,
|
|
1958
1968
|
onClick: ve
|
|
1959
|
-
}, P(D(
|
|
1969
|
+
}, P(D(hr)(D(d).localization.translateAllFields, e.translationCount ?? 0, D(l))), 11, Ga)])
|
|
1960
1970
|
], 64)) : (c(), w(U, { key: 1 }, [
|
|
1961
|
-
ae.value ? (c(), w("p",
|
|
1962
|
-
q.value === "missing" ? (c(), w("p",
|
|
1971
|
+
ae.value ? (c(), w("p", Ka, P(re.value), 1)) : k("", !0),
|
|
1972
|
+
q.value === "missing" ? (c(), w("p", qa, P(D(f)(D(d).localization.missingExplanation, { default: W.value })), 1)) : q.value === "stale" ? (c(), w(U, { key: 2 }, [N("p", Ja, P(D(f)(D(d).localization.staleExplanation, { default: W.value })), 1), N("p", Ya, P(D(f)(D(d).localization.currentExcerpt, { excerpt: e.excerpt })), 1)], 64)) : q.value === "tags-differ" ? (c(), w("p", Xa, P(D(f)(D(d).localization.tagsDifferExplanation, { default: W.value })), 1)) : q.value === "changed" ? (c(), w("p", Za, P(D(hr)(D(d).localization.changedProperties, J.value, D(l), { default: W.value })), 1)) : q.value === "hidden" ? (c(), w("p", Qa, P(D(f)(D(d).localization.hiddenExplanation, { language: V.value })), 1)) : (c(), w("ul", $a, [(c(!0), w(U, null, p(e.staleLocales, (e) => (c(), w("li", {
|
|
1963
1973
|
key: e,
|
|
1964
1974
|
class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3"
|
|
1965
|
-
}, [N("span", null, P(D(
|
|
1975
|
+
}, [N("span", null, P(D(mr)(e)), 1), N("button", {
|
|
1966
1976
|
type: "button",
|
|
1967
|
-
class: O(D(
|
|
1977
|
+
class: O(D(gr)),
|
|
1968
1978
|
onClick: (t) => me(e)
|
|
1969
|
-
}, P(D(d).localization.open), 11,
|
|
1970
|
-
e.editable && q.value !== "default-stale" ? (c(), w("div",
|
|
1979
|
+
}, P(D(d).localization.open), 11, eo)]))), 128))])),
|
|
1980
|
+
e.editable && q.value !== "default-stale" ? (c(), w("div", to, [
|
|
1971
1981
|
Y.value && (q.value === "missing" || q.value === "stale" || q.value === "tags-differ") ? (c(), w("button", {
|
|
1972
1982
|
key: 0,
|
|
1973
1983
|
type: "button",
|
|
1974
1984
|
ref_key: "retranslate",
|
|
1975
1985
|
ref: C,
|
|
1976
1986
|
"data-testid": q.value === "missing" ? "locale-translate" : "locale-retranslate",
|
|
1977
|
-
class: O(D(
|
|
1987
|
+
class: O(D(_r)),
|
|
1978
1988
|
disabled: !!D(o)?.running.value,
|
|
1979
1989
|
onClick: he
|
|
1980
|
-
}, P(q.value === "missing" ? D(d).localization.translate : D(d).localization.retranslate), 11,
|
|
1990
|
+
}, P(q.value === "missing" ? D(d).localization.translate : D(d).localization.retranslate), 11, no)) : k("", !0),
|
|
1981
1991
|
q.value === "stale" || q.value === "tags-differ" ? (c(), w(U, { key: 1 }, [q.value === "stale" ? (c(), w("button", {
|
|
1982
1992
|
key: 0,
|
|
1983
1993
|
type: "button",
|
|
1984
1994
|
"data-testid": "locale-keep",
|
|
1985
|
-
class: O(D(Y.value ?
|
|
1995
|
+
class: O(D(Y.value ? gr : _r)),
|
|
1986
1996
|
onClick: de
|
|
1987
1997
|
}, P(D(d).localization.keep), 3)) : k("", !0), N("button", {
|
|
1988
1998
|
type: "button",
|
|
1989
1999
|
"data-testid": "locale-use-default",
|
|
1990
|
-
class: O(D(q.value === "tags-differ" && !Y.value ?
|
|
2000
|
+
class: O(D(q.value === "tags-differ" && !Y.value ? _r : gr)),
|
|
1991
2001
|
onClick: n[0] ||= (t) => fe(q.value === "tags-differ" ? e.tagsDiffer ?? [] : e.stale)
|
|
1992
2002
|
}, P(D(f)(D(d).localization.useDefaultLanguage, { default: W.value })), 3)], 64)) : k("", !0),
|
|
1993
2003
|
q.value === "changed" ? (c(), w("button", {
|
|
1994
2004
|
key: 2,
|
|
1995
2005
|
type: "button",
|
|
1996
2006
|
"data-testid": "locale-reset",
|
|
1997
|
-
class: O(D(
|
|
2007
|
+
class: O(D(_r)),
|
|
1998
2008
|
onClick: n[1] ||= (t) => fe(e.setPaths)
|
|
1999
2009
|
}, P(D(d).localization.resetChanges), 3)) : k("", !0),
|
|
2000
2010
|
q.value === "hidden" ? (c(), w("button", {
|
|
2001
2011
|
key: 3,
|
|
2002
2012
|
type: "button",
|
|
2003
2013
|
"data-testid": "locale-show",
|
|
2004
|
-
class: O(D(
|
|
2014
|
+
class: O(D(_r)),
|
|
2005
2015
|
onClick: pe
|
|
2006
2016
|
}, P(D(d).localization.show), 3)) : k("", !0)
|
|
2007
2017
|
])) : k("", !0)
|
|
2008
|
-
], 64))], 44,
|
|
2018
|
+
], 64))], 44, Va)], 8, ["to"])) : k("", !0)], 64));
|
|
2009
2019
|
}
|
|
2010
|
-
}), [["__scopeId", "data-v-3343ae7d"]]),
|
|
2020
|
+
}), [["__scopeId", "data-v-3343ae7d"]]), io = /* @__PURE__ */ o({
|
|
2011
2021
|
__name: "LocaleMarkers",
|
|
2012
2022
|
props: { block: {} },
|
|
2013
2023
|
setup(e) {
|
|
2014
|
-
let t = e, n = g(
|
|
2024
|
+
let t = e, n = g(vn, null), r = g(Pt, void 0), i = g($t, []), a = g(St, le.liquid), o = g(en, I(() => /* @__PURE__ */ new Set())), s = I(() => n?.activeLocale?.value), l = I(() => s.value ? t.block.l10n?.[s.value] : void 0), d = I(() => ({
|
|
2015
2025
|
blocks: [t.block.type === "section" || t.block.type === "wrapper" ? {
|
|
2016
2026
|
...t.block,
|
|
2017
2027
|
children: []
|
|
@@ -2026,7 +2036,7 @@ var za = [
|
|
|
2026
2036
|
translated: []
|
|
2027
2037
|
}), p = I(() => f.value.stale.map((e) => e.slice(t.block.id.length + 1))), m = I(() => f.value.translated.flatMap((e) => {
|
|
2028
2038
|
let n = e.slice(t.block.id.length + 1), r = ve(t.block, n), i = l.value?.text?.[n]?.value, o = t.block.type === "html" || ye[t.block.type]?.includes(n) ? "html" : "text";
|
|
2029
|
-
return typeof r == "string" && i !== void 0 &&
|
|
2039
|
+
return typeof r == "string" && i !== void 0 && za(r, i, a, o) ? [n] : [];
|
|
2030
2040
|
})), h = H(null), _ = I(() => n && s.value && !o.value.has(s.value) ? X(d.value, s.value, {
|
|
2031
2041
|
syntax: a,
|
|
2032
2042
|
definitions: i,
|
|
@@ -2053,7 +2063,7 @@ var za = [
|
|
|
2053
2063
|
let n = e.split(/<[^>]*>/).join("");
|
|
2054
2064
|
return Array.from(n).slice(0, 60).join("");
|
|
2055
2065
|
});
|
|
2056
|
-
return (t, n) => D(r) && x.value ? (c(), A(
|
|
2066
|
+
return (t, n) => D(r) && x.value ? (c(), A(ro, {
|
|
2057
2067
|
key: 0,
|
|
2058
2068
|
"block-id": e.block.id,
|
|
2059
2069
|
state: x.value,
|
|
@@ -2087,21 +2097,21 @@ var za = [
|
|
|
2087
2097
|
"editable"
|
|
2088
2098
|
])) : k("", !0);
|
|
2089
2099
|
}
|
|
2090
|
-
}),
|
|
2100
|
+
}), ao = [
|
|
2091
2101
|
"data-block-id",
|
|
2092
2102
|
"data-block-type",
|
|
2093
2103
|
"data-tpl-picked"
|
|
2094
|
-
],
|
|
2104
|
+
], oo = ["aria-label"], so = ["data-lock-holder"], co = ["aria-label"], lo = [
|
|
2095
2105
|
"aria-label",
|
|
2096
2106
|
"aria-pressed",
|
|
2097
2107
|
"title"
|
|
2098
|
-
],
|
|
2108
|
+
], uo = ["aria-label", "title"], fo = ["aria-label", "title"], po = ["aria-label", "title"], mo = {
|
|
2099
2109
|
key: 3,
|
|
2100
2110
|
class: "tpl-block-hidden-overlay tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[5] tpl:flex tpl:items-center tpl:justify-center tpl:rounded-sm"
|
|
2101
|
-
},
|
|
2111
|
+
}, ho = { class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-2 tpl:py-1 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-chrome-text-muted)] tpl:shadow-[var(--tpl-shadow-sm)]" }, go = {
|
|
2102
2112
|
key: 4,
|
|
2103
2113
|
class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
|
|
2104
|
-
},
|
|
2114
|
+
}, _o = ["aria-label", "title"], vo = /*#__PURE__*/ yr(/* @__PURE__ */ o({
|
|
2105
2115
|
__name: "BlockWrapper",
|
|
2106
2116
|
props: {
|
|
2107
2117
|
block: {},
|
|
@@ -2114,7 +2124,7 @@ var za = [
|
|
|
2114
2124
|
},
|
|
2115
2125
|
emits: ["select"],
|
|
2116
2126
|
setup(t, { emit: n }) {
|
|
2117
|
-
let i = b(() => import("./BlockIssueBadge-
|
|
2127
|
+
let i = b(() => import("./BlockIssueBadge-BKO4Mr8f.js")), a = t, o = I(() => a.displayBlock ?? a.block), s = n, { t: l, format: d } = G(), f = g(yn, null), p = H(null), m = I(() => f?.liftedBlockId.value === a.block.id), h = I(() => m.value ? d(l.blockActions.dragLifted, { block: a.block.type }) : l.blockActions.drag);
|
|
2118
2128
|
async function _() {
|
|
2119
2129
|
await j(), p.value?.focus();
|
|
2120
2130
|
}
|
|
@@ -2124,7 +2134,7 @@ var za = [
|
|
|
2124
2134
|
let S = I(() => !a.viewport || !o.value.visibility ? !1 : o.value.visibility[a.viewport] === !1), C = I(() => !!(ue?.activeLocale?.value && a.block.l10n?.[ue.activeLocale.value]?.hidden)), E = I(() => a.previewMode === !0 && (S.value || C.value)), ee = I(() => a.viewport ? {
|
|
2125
2135
|
desktop: l.viewport.desktop,
|
|
2126
2136
|
mobile: l.viewport.mobile
|
|
2127
|
-
}[a.viewport] ?? a.viewport : ""), F = I(() => !!o.value.displayCondition), R = g(
|
|
2137
|
+
}[a.viewport] ?? a.viewport : ""), F = I(() => !!o.value.displayCondition), R = g(mn, null), z = g(sn, null), B = g(Zt, {}), V = I(() => B.savedBlocks?.isPicking.value === !0), U = I(() => !a.nested && B.savedBlocks?.isAvailable.value === !0 && B.savedBlocks?.canCreate.value === !0), te = I(() => a.isSelected && !V.value), K = I(() => B.comments?.getBlockCount(a.block.id) ?? 0), ne = H(null), q = H(null), J = H(null), re = H(null), ie = H({
|
|
2128
2138
|
left: "calc(100% + 8px)",
|
|
2129
2139
|
top: "50%"
|
|
2130
2140
|
}), ae = H(!1), Y = I(() => q.value ?? re.value), X = I(() => Y.value?.closest(".tpl-body"));
|
|
@@ -2164,15 +2174,15 @@ var za = [
|
|
|
2164
2174
|
re.value,
|
|
2165
2175
|
X.value
|
|
2166
2176
|
].filter((e) => !!e) : []), Z), e(X, "scroll", Z, { passive: !0 });
|
|
2167
|
-
let Q = I(() => B.collaboration?.lockOf(a.block.id) ?? null), oe = I(() => Q.value?.holder.type === "guest" ? l.collaboration.guest : Q.value?.holder.name ?? ""), se = I(() => B.collaboration?.agentHighlightOf(a.block.id) ?? B.ai?.highlightOf(a.block.id) ?? null), ce =
|
|
2177
|
+
let Q = I(() => B.collaboration?.lockOf(a.block.id) ?? null), oe = I(() => Q.value?.holder.type === "guest" ? l.collaboration.guest : Q.value?.holder.name ?? ""), se = I(() => B.collaboration?.agentHighlightOf(a.block.id) ?? B.ai?.highlightOf(a.block.id) ?? null), ce = Bn(() => o.value.type === "section" ? o.value.backgroundImage : void 0), le = Bn(() => o.value.type === "section" ? o.value.wrapper?.backgroundImage : void 0), ue = g(vn, null), de = ue ? yt(ue) : null, fe = g(rn, null) ?? de?.content ?? null;
|
|
2168
2178
|
u([() => ue?.activeLocale?.value, () => de && Ie(de.settings.value)], Z, { flush: "post" });
|
|
2169
|
-
let pe = g(Rt, void 0), me = I(() =>
|
|
2179
|
+
let pe = g(Rt, void 0), me = I(() => Bi(o.value, {
|
|
2170
2180
|
backgroundImageUrl: ce.value,
|
|
2171
|
-
heroBoxWidth:
|
|
2172
|
-
})), he = I(() =>
|
|
2181
|
+
heroBoxWidth: Mn(o.value) ? In(o.value, fe?.value, pe) : void 0
|
|
2182
|
+
})), he = I(() => Ki(o.value, { backgroundImageUrl: le.value })), ge = I(() => {
|
|
2173
2183
|
let e = o.value;
|
|
2174
2184
|
return e.type === "section" && e.wrapper?.fullWidth === !0 ? e : void 0;
|
|
2175
|
-
}), _e = I(() =>
|
|
2185
|
+
}), _e = I(() => Gi(ge.value?.wrapper?.padding));
|
|
2176
2186
|
function ve(e) {
|
|
2177
2187
|
a.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), s("select"));
|
|
2178
2188
|
}
|
|
@@ -2216,12 +2226,12 @@ var za = [
|
|
|
2216
2226
|
class: O(["tpl-comment-indicator tpl:flex tpl:min-h-6 tpl:min-w-6 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-0.5 tpl:rounded-full tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-semibold tpl:transition-colors tpl:bg-[var(--tpl-chrome-primary-light)] tpl:text-[var(--tpl-primary)]", ae.value ? void 0 : "tpl:absolute tpl:-top-2 tpl:inset-s-full tpl:ms-2"]),
|
|
2217
2227
|
"aria-label": D(d)(D(l).blockActions.comments, { count: String(K.value) }),
|
|
2218
2228
|
onClick: n[0] ||= M((e) => D(B).comments?.openForBlock(t.block.id), ["stop"])
|
|
2219
|
-
}, [W(D(
|
|
2229
|
+
}, [W(D(lr), {
|
|
2220
2230
|
size: 12,
|
|
2221
2231
|
"stroke-width": 2.5
|
|
2222
|
-
}), T(" " + P(K.value), 1)], 10,
|
|
2232
|
+
}), T(" " + P(K.value), 1)], 10, oo)) : k("", !0),
|
|
2223
2233
|
W(D(i), { "block-id": t.block.id }, null, 8, ["block-id"]),
|
|
2224
|
-
t.previewMode ? k("", !0) : (c(), A(
|
|
2234
|
+
t.previewMode ? k("", !0) : (c(), A(io, {
|
|
2225
2235
|
key: 1,
|
|
2226
2236
|
block: t.block
|
|
2227
2237
|
}, null, 8, ["block"]))
|
|
@@ -2239,9 +2249,9 @@ var za = [
|
|
|
2239
2249
|
class: "tpl:absolute tpl:-top-0.5 tpl:left-1/2 tpl:z-[5] tpl:-translate-x-1/2 tpl:-translate-y-full tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:whitespace-nowrap",
|
|
2240
2250
|
style: L({
|
|
2241
2251
|
backgroundColor: Q.value.holder.color,
|
|
2242
|
-
color: D(
|
|
2252
|
+
color: D(br)(Q.value.holder.color)
|
|
2243
2253
|
})
|
|
2244
|
-
}, P(D(d)(D(l).collaboration.editing, { name: oe.value })), 5)], 12,
|
|
2254
|
+
}, P(D(d)(D(l).collaboration.editing, { name: oe.value })), 5)], 12, so)) : k("", !0),
|
|
2245
2255
|
se.value === null ? k("", !0) : (c(), w("div", {
|
|
2246
2256
|
key: se.value,
|
|
2247
2257
|
"data-testid": "block-agent-highlight",
|
|
@@ -2266,78 +2276,78 @@ var za = [
|
|
|
2266
2276
|
"aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
|
|
2267
2277
|
title: D(l).blockActions.drag,
|
|
2268
2278
|
onKeydown: v
|
|
2269
|
-
}, [W(D(
|
|
2279
|
+
}, [W(D(fr), {
|
|
2270
2280
|
size: 14,
|
|
2271
2281
|
"stroke-width": 1.5
|
|
2272
|
-
})], 40,
|
|
2282
|
+
})], 40, lo),
|
|
2273
2283
|
N("button", {
|
|
2274
2284
|
class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors",
|
|
2275
2285
|
"aria-label": D(l).blockActions.duplicate,
|
|
2276
2286
|
title: D(l).blockActions.duplicate,
|
|
2277
2287
|
onClick: M(be, ["stop"])
|
|
2278
|
-
}, [W(D(
|
|
2288
|
+
}, [W(D(Jn), {
|
|
2279
2289
|
size: 14,
|
|
2280
2290
|
"stroke-width": 1.5
|
|
2281
|
-
})], 8,
|
|
2291
|
+
})], 8, uo),
|
|
2282
2292
|
U.value ? (c(), w("button", {
|
|
2283
2293
|
key: 0,
|
|
2284
2294
|
class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors",
|
|
2285
2295
|
"aria-label": D(l).blockActions.saveAsBlock,
|
|
2286
2296
|
title: D(l).blockActions.saveAsBlock,
|
|
2287
2297
|
onClick: M(xe, ["stop"])
|
|
2288
|
-
}, [W(D(
|
|
2298
|
+
}, [W(D(nr), {
|
|
2289
2299
|
size: 14,
|
|
2290
2300
|
"stroke-width": 1.5
|
|
2291
|
-
})], 8,
|
|
2301
|
+
})], 8, fo)) : k("", !0),
|
|
2292
2302
|
N("button", {
|
|
2293
2303
|
class: "tpl-block-action-btn tpl-block-delete-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors",
|
|
2294
2304
|
"aria-label": D(l).blockActions.delete,
|
|
2295
2305
|
title: D(l).blockActions.delete,
|
|
2296
2306
|
onClick: M(ye, ["stop"])
|
|
2297
|
-
}, [W(D(
|
|
2307
|
+
}, [W(D(or), {
|
|
2298
2308
|
size: 14,
|
|
2299
2309
|
"stroke-width": 1.5
|
|
2300
|
-
})], 8,
|
|
2301
|
-
], 12,
|
|
2302
|
-
S.value ? (c(), w("div",
|
|
2310
|
+
})], 8, po)
|
|
2311
|
+
], 12, co)) : k("", !0),
|
|
2312
|
+
S.value ? (c(), w("div", mo, [N("span", ho, [W(D(Qn), {
|
|
2303
2313
|
size: 12,
|
|
2304
2314
|
"stroke-width": 1.5
|
|
2305
2315
|
}), T(" " + P(D(d)(D(l).blockActions.hiddenOnViewport, { viewport: ee.value })), 1)])])) : k("", !0),
|
|
2306
|
-
F.value && !S.value ? (c(), w("div",
|
|
2316
|
+
F.value && !S.value ? (c(), w("div", go, [N("button", {
|
|
2307
2317
|
"data-testid": "condition-toggle",
|
|
2308
2318
|
class: "tpl-condition-toggle tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1 tpl:transition-colors tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-primary)] tpl:border tpl:border-[var(--tpl-border)]",
|
|
2309
2319
|
"aria-label": D(l).blockActions.conditionToggle,
|
|
2310
2320
|
title: t.block.displayCondition?.label,
|
|
2311
2321
|
onClick: M(Se, ["stop"])
|
|
2312
|
-
}, [W(D(
|
|
2322
|
+
}, [W(D($n), {
|
|
2313
2323
|
size: 12,
|
|
2314
2324
|
"stroke-width": 2
|
|
2315
|
-
})], 8,
|
|
2325
|
+
})], 8, _o)])) : k("", !0),
|
|
2316
2326
|
he.value ? (c(), w("div", {
|
|
2317
2327
|
key: 5,
|
|
2318
|
-
class: O(["tpl-section-wrapper tpl-email-surface", D(
|
|
2328
|
+
class: O(["tpl-section-wrapper tpl-email-surface", D(Ii)(he.value)]),
|
|
2319
2329
|
style: L(he.value)
|
|
2320
2330
|
}, [ge.value ? (c(), w("div", {
|
|
2321
2331
|
key: 0,
|
|
2322
2332
|
class: "tpl-band-frame",
|
|
2323
2333
|
style: L(_e.value)
|
|
2324
2334
|
}, [N("div", {
|
|
2325
|
-
class: O(["tpl-block-content tpl-email-surface", D(
|
|
2335
|
+
class: O(["tpl-block-content tpl-email-surface", D(Ii)(me.value)]),
|
|
2326
2336
|
style: L(me.value)
|
|
2327
2337
|
}, [y(e.$slots, "default", {}, void 0, !0)], 6)], 4)) : (c(), w("div", {
|
|
2328
2338
|
key: 1,
|
|
2329
|
-
class: O(["tpl-block-content tpl-email-surface", D(
|
|
2339
|
+
class: O(["tpl-block-content tpl-email-surface", D(Ii)(me.value)]),
|
|
2330
2340
|
style: L(me.value)
|
|
2331
2341
|
}, [y(e.$slots, "default", {}, void 0, !0)], 6))], 6)) : (c(), w("div", {
|
|
2332
2342
|
key: 6,
|
|
2333
|
-
class: O(["tpl-block-content tpl-email-surface", D(
|
|
2343
|
+
class: O(["tpl-block-content tpl-email-surface", D(Ii)(me.value)]),
|
|
2334
2344
|
style: L(me.value)
|
|
2335
2345
|
}, [y(e.$slots, "default", {}, void 0, !0)], 6))
|
|
2336
|
-
], 10,
|
|
2346
|
+
], 10, ao));
|
|
2337
2347
|
}
|
|
2338
2348
|
}), [["__scopeId", "data-v-872194d3"]]);
|
|
2339
2349
|
// src/utils/unwrapParagraph.ts
|
|
2340
|
-
function
|
|
2350
|
+
function yo(e) {
|
|
2341
2351
|
let t = /^\s*<p\b/.exec(e);
|
|
2342
2352
|
if (!t) return e;
|
|
2343
2353
|
let n = qe(e, t[0].length);
|
|
@@ -2348,14 +2358,14 @@ function vo(e) {
|
|
|
2348
2358
|
return /<\/p>\s*<p\b/i.test(i) ? e : i;
|
|
2349
2359
|
}
|
|
2350
2360
|
// src/components/blocks/TitleBlock.vue
|
|
2351
|
-
var
|
|
2361
|
+
var bo = /* @__PURE__ */ o({
|
|
2352
2362
|
__name: "TitleBlock",
|
|
2353
2363
|
props: {
|
|
2354
2364
|
block: {},
|
|
2355
2365
|
viewport: {}
|
|
2356
2366
|
},
|
|
2357
2367
|
setup(e) {
|
|
2358
|
-
let t = e, n = b(() => import("./TitleEditor-
|
|
2368
|
+
let t = e, n = b(() => import("./TitleEditor-EHW0lgG4.js")), r = on(Jt, "TitleBlock"), { isEditing: i, blockRef: o, toolbarPosition: s, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = Pa(() => t.block.content), f = I(() => {
|
|
2359
2369
|
let e = {
|
|
2360
2370
|
fontSize: `${je[t.block.level]}px`,
|
|
2361
2371
|
lineHeight: String(xe),
|
|
@@ -2363,7 +2373,7 @@ var yo = /* @__PURE__ */ o({
|
|
|
2363
2373
|
textAlign: t.block.textAlign
|
|
2364
2374
|
};
|
|
2365
2375
|
return t.block.color && (e.color = t.block.color), t.block.fontFamily && (e.fontFamily = r.resolveFontFamily(t.block.fontFamily)), e;
|
|
2366
|
-
}), p = I(() => `h${t.block.level}`), m = I(() =>
|
|
2376
|
+
}), p = I(() => `h${t.block.level}`), m = I(() => qn(yo(l.value)));
|
|
2367
2377
|
return (t, r) => (c(), w("div", {
|
|
2368
2378
|
ref_key: "blockRef",
|
|
2369
2379
|
ref: o,
|
|
@@ -2389,12 +2399,12 @@ var yo = /* @__PURE__ */ o({
|
|
|
2389
2399
|
innerHTML: m.value
|
|
2390
2400
|
}, null, 8, ["innerHTML"]))], 36));
|
|
2391
2401
|
}
|
|
2392
|
-
}),
|
|
2393
|
-
function
|
|
2402
|
+
}), xo = "hero", So = "#1f2937", Co = "#ffffff";
|
|
2403
|
+
function wo(e, t) {
|
|
2394
2404
|
let n = dt("title", e);
|
|
2395
|
-
n.color =
|
|
2405
|
+
n.color = Co, n.textAlign = "center";
|
|
2396
2406
|
let r = dt("paragraph", e);
|
|
2397
|
-
r.content = `<p style="text-align: center"><span style="color: ${
|
|
2407
|
+
r.content = `<p style="text-align: center"><span style="color: ${Co}">${To(t)}</span></p>`;
|
|
2398
2408
|
let i = dt("button", e);
|
|
2399
2409
|
return i.align = "center", he({
|
|
2400
2410
|
columns: "1",
|
|
@@ -2414,28 +2424,28 @@ function Co(e, t) {
|
|
|
2414
2424
|
bottom: 48,
|
|
2415
2425
|
left: 24
|
|
2416
2426
|
},
|
|
2417
|
-
backgroundColor:
|
|
2427
|
+
backgroundColor: So
|
|
2418
2428
|
}
|
|
2419
2429
|
});
|
|
2420
2430
|
}
|
|
2421
|
-
function
|
|
2431
|
+
function To(e) {
|
|
2422
2432
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
2423
2433
|
}
|
|
2424
2434
|
// src/utils/sectionColumnDrop.ts
|
|
2425
|
-
var
|
|
2426
|
-
function
|
|
2427
|
-
return e.dataset.blockType !== "section" && !
|
|
2435
|
+
var Eo = /* @__PURE__ */ new Set(["section", xo]);
|
|
2436
|
+
function Do(e) {
|
|
2437
|
+
return e.dataset.blockType !== "section" && !Eo.has(e.dataset.paletteType ?? "");
|
|
2428
2438
|
}
|
|
2429
2439
|
// src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
|
|
2430
|
-
var
|
|
2440
|
+
var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
|
|
2431
2441
|
key: 0,
|
|
2432
2442
|
"data-testid": "hero-image-hint",
|
|
2433
2443
|
class: "tpl:pointer-events-none tpl:absolute tpl:inset-x-0 tpl:bottom-full tpl:mb-2 tpl:flex tpl:justify-center tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]"
|
|
2434
|
-
},
|
|
2444
|
+
}, Ao = {
|
|
2435
2445
|
key: 0,
|
|
2436
2446
|
"data-testid": "section-drop-hint",
|
|
2437
2447
|
class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:flex tpl:items-center tpl:justify-center tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]"
|
|
2438
|
-
},
|
|
2448
|
+
}, jo = /* @__PURE__ */ o({
|
|
2439
2449
|
__name: "SectionBlock",
|
|
2440
2450
|
props: {
|
|
2441
2451
|
block: {},
|
|
@@ -2444,15 +2454,15 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
|
|
|
2444
2454
|
},
|
|
2445
2455
|
setup(e) {
|
|
2446
2456
|
let t = {
|
|
2447
|
-
title:
|
|
2448
|
-
paragraph:
|
|
2449
|
-
image:
|
|
2450
|
-
button:
|
|
2451
|
-
divider:
|
|
2452
|
-
custom:
|
|
2453
|
-
}, n = e, { t: r } = G(), o =
|
|
2457
|
+
title: bo,
|
|
2458
|
+
paragraph: Ia,
|
|
2459
|
+
image: ka,
|
|
2460
|
+
button: Zi,
|
|
2461
|
+
divider: da,
|
|
2462
|
+
custom: la
|
|
2463
|
+
}, n = e, { t: r } = G(), o = on(vn, "SectionBlock"), { displayBlock: s } = yt(o), u = I(() => n.sourceBlock ?? n.block), m = g(en, I(() => /* @__PURE__ */ new Set()));
|
|
2454
2464
|
d(en, I(() => /* @__PURE__ */ new Set([...m.value, ...Object.entries(u.value.l10n ?? {}).filter(([, e]) => e.hidden).map(([e]) => e)])));
|
|
2455
|
-
let h = g(
|
|
2465
|
+
let h = g(sn, null), _ = g(an, null), v = g(Zt, {}), y = g(Ut, null), b = g(Kt, null);
|
|
2456
2466
|
function x(e) {
|
|
2457
2467
|
if (y?.value) return;
|
|
2458
2468
|
let t = v.savedBlocks;
|
|
@@ -2513,10 +2523,10 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
|
|
|
2513
2523
|
return E(e).length === 0 && o.state.previewMode;
|
|
2514
2524
|
}
|
|
2515
2525
|
function K(e, t) {
|
|
2516
|
-
y?.value ||
|
|
2526
|
+
y?.value || La(o, t, n.block.id, e);
|
|
2517
2527
|
}
|
|
2518
2528
|
function ne(e) {
|
|
2519
|
-
return
|
|
2529
|
+
return ji(e, _, t);
|
|
2520
2530
|
}
|
|
2521
2531
|
function q(e, t) {
|
|
2522
2532
|
y?.value || e.type !== "custom" || o.updateBlock(e.id, {
|
|
@@ -2524,7 +2534,7 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
|
|
|
2524
2534
|
dataSourceFetched: t.dataSourceFetched
|
|
2525
2535
|
});
|
|
2526
2536
|
}
|
|
2527
|
-
return (t, u) => (c(), w("div",
|
|
2537
|
+
return (t, u) => (c(), w("div", Oo, [R.value ? (c(), w("div", ko, [N("span", null, P(D(r).section.heroAddImage), 1)])) : k("", !0), N("div", { class: O(["tpl:flex tpl:gap-0", { "tpl:flex-col": T.value }]) }, [(c(!0), w(U, null, p(C.value, (t, d) => (c(), w("div", {
|
|
2528
2538
|
key: d,
|
|
2529
2539
|
class: O(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", B(d) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
|
|
2530
2540
|
style: L({ width: T.value ? "100%" : S.value[d] })
|
|
@@ -2534,7 +2544,7 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
|
|
|
2534
2544
|
group: {
|
|
2535
2545
|
name: "blocks",
|
|
2536
2546
|
pull: !0,
|
|
2537
|
-
put: (e, t, n) => D(
|
|
2547
|
+
put: (e, t, n) => D(Do)(n)
|
|
2538
2548
|
},
|
|
2539
2549
|
animation: 150,
|
|
2540
2550
|
"ghost-class": "tpl-ghost",
|
|
@@ -2548,12 +2558,12 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
|
|
|
2548
2558
|
"tpl:min-h-[60px]": F(d),
|
|
2549
2559
|
"tpl:min-h-[34px]": te(d)
|
|
2550
2560
|
}]),
|
|
2551
|
-
onUpdate: (e) => !D(y) && D(
|
|
2561
|
+
onUpdate: (e) => !D(y) && D(La)(D(o), E(d), n.block.id, d, e),
|
|
2552
2562
|
onStart: (e) => M.value = d,
|
|
2553
2563
|
onEnd: u[0] ||= (e) => M.value = null,
|
|
2554
2564
|
"onUpdate:modelValue": (e) => K(d, e)
|
|
2555
2565
|
}, {
|
|
2556
|
-
default: l(() => [(c(!0), w(U, null, p(E(d), (t) => f((c(), w("div", { key: t.id }, [W(
|
|
2566
|
+
default: l(() => [(c(!0), w(U, null, p(E(d), (t) => f((c(), w("div", { key: t.id }, [W(vo, {
|
|
2557
2567
|
block: t,
|
|
2558
2568
|
"display-block": D(s)(t),
|
|
2559
2569
|
"is-selected": D(o).state.selectedBlockId === t.id,
|
|
@@ -2590,14 +2600,14 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
|
|
|
2590
2600
|
"onUpdate",
|
|
2591
2601
|
"onStart",
|
|
2592
2602
|
"onUpdate:modelValue"
|
|
2593
|
-
]), B(d) ? (c(), w("div",
|
|
2603
|
+
]), B(d) ? (c(), w("div", Ao, [N("span", null, P(D(r).section.dropHere), 1)])) : k("", !0)], 6))), 128))], 2)]));
|
|
2594
2604
|
}
|
|
2595
|
-
}),
|
|
2605
|
+
}), Mo = ["width", "height"], No = [
|
|
2596
2606
|
"d",
|
|
2597
2607
|
"stroke",
|
|
2598
2608
|
"stroke-opacity",
|
|
2599
2609
|
"stroke-width"
|
|
2600
|
-
],
|
|
2610
|
+
], Po = ["d", "fill"], Fo = /* @__PURE__ */ o({
|
|
2601
2611
|
__name: "SocialIconSvg",
|
|
2602
2612
|
props: {
|
|
2603
2613
|
platform: {},
|
|
@@ -2606,7 +2616,7 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
|
|
|
2606
2616
|
iconSize: {}
|
|
2607
2617
|
},
|
|
2608
2618
|
setup(e) {
|
|
2609
|
-
let t = e, n = I(() =>
|
|
2619
|
+
let t = e, n = I(() => Fn[t.platform]), r = I(() => Ln[t.iconSize]), i = I(() => tt(t.platform, t.iconTone)), a = I(() => Ke(t.iconStyle, t.iconTone)), o = I(() => {
|
|
2610
2620
|
let e = {
|
|
2611
2621
|
display: "inline-flex",
|
|
2612
2622
|
alignItems: "center",
|
|
@@ -2665,15 +2675,15 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
|
|
|
2665
2675
|
"stroke-opacity": a.value.opacity,
|
|
2666
2676
|
"stroke-width": a.value.width / s.value,
|
|
2667
2677
|
"stroke-linejoin": "round"
|
|
2668
|
-
}, null, 8,
|
|
2678
|
+
}, null, 8, No)) : k("", !0), N("path", {
|
|
2669
2679
|
d: n.value.path,
|
|
2670
2680
|
fill: d.value
|
|
2671
|
-
}, null, 8,
|
|
2681
|
+
}, null, 8, Po)], 8, Mo))], 4));
|
|
2672
2682
|
}
|
|
2673
|
-
}),
|
|
2683
|
+
}), Io = { class: "tpl:w-full" }, Lo = ["href"], Ro = {
|
|
2674
2684
|
key: 1,
|
|
2675
2685
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
|
|
2676
|
-
},
|
|
2686
|
+
}, zo = /* @__PURE__ */ o({
|
|
2677
2687
|
__name: "SocialIconsBlock",
|
|
2678
2688
|
props: {
|
|
2679
2689
|
block: {},
|
|
@@ -2686,7 +2696,7 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
|
|
|
2686
2696
|
gap: `${t.block.spacing}px`,
|
|
2687
2697
|
justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
|
|
2688
2698
|
})), i = I(() => t.block.icons.length > 0);
|
|
2689
|
-
return (t, a) => (c(), w("div",
|
|
2699
|
+
return (t, a) => (c(), w("div", Io, [i.value ? (c(), w("div", {
|
|
2690
2700
|
key: 0,
|
|
2691
2701
|
style: L(r.value)
|
|
2692
2702
|
}, [(c(!0), w(U, null, p(e.block.icons, (t) => (c(), w("a", {
|
|
@@ -2694,7 +2704,7 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
|
|
|
2694
2704
|
href: t.url || "#",
|
|
2695
2705
|
class: "tpl:cursor-default",
|
|
2696
2706
|
onClick: a[0] ||= M(() => {}, ["prevent"])
|
|
2697
|
-
}, [W(
|
|
2707
|
+
}, [W(Fo, {
|
|
2698
2708
|
platform: t.platform,
|
|
2699
2709
|
"icon-style": e.block.iconStyle,
|
|
2700
2710
|
"icon-tone": e.block.iconTone,
|
|
@@ -2704,46 +2714,46 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
|
|
|
2704
2714
|
"icon-style",
|
|
2705
2715
|
"icon-tone",
|
|
2706
2716
|
"icon-size"
|
|
2707
|
-
])], 8,
|
|
2717
|
+
])], 8, Lo))), 128))], 4)) : (c(), w("div", Ro, [W(D(sr), { size: 16 }), N("span", null, P(D(n).social.addIcons), 1)]))]));
|
|
2708
2718
|
}
|
|
2709
|
-
}),
|
|
2719
|
+
}), Bo = { class: "tpl:w-full" }, Vo = {
|
|
2710
2720
|
key: 0,
|
|
2711
2721
|
class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
|
|
2712
2722
|
style: {
|
|
2713
2723
|
"background-color": "var(--tpl-bg-hover)",
|
|
2714
2724
|
color: "var(--tpl-text-dim)"
|
|
2715
2725
|
}
|
|
2716
|
-
},
|
|
2726
|
+
}, Ho = /* @__PURE__ */ o({
|
|
2717
2727
|
__name: "SpacerBlock",
|
|
2718
2728
|
props: {
|
|
2719
2729
|
block: {},
|
|
2720
2730
|
viewport: {}
|
|
2721
2731
|
},
|
|
2722
2732
|
setup(e) {
|
|
2723
|
-
let t = e, n =
|
|
2733
|
+
let t = e, n = on(vn, "SpacerBlock"), r = I(() => ({
|
|
2724
2734
|
height: `${t.block.height}px`,
|
|
2725
2735
|
minHeight: `${t.block.height}px`,
|
|
2726
2736
|
...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
|
|
2727
2737
|
}));
|
|
2728
|
-
return (t, i) => (c(), w("div",
|
|
2738
|
+
return (t, i) => (c(), w("div", Bo, [N("div", {
|
|
2729
2739
|
style: L(r.value),
|
|
2730
2740
|
class: O(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:box-border tpl:border-y tpl:border-x-0 tpl:border-dashed": !D(n).state.previewMode }])
|
|
2731
|
-
}, [D(n).state.previewMode ? k("", !0) : (c(), w("span",
|
|
2741
|
+
}, [D(n).state.previewMode ? k("", !0) : (c(), w("span", Vo, P(e.block.height) + "px ", 1))], 6)]));
|
|
2732
2742
|
}
|
|
2733
|
-
}),
|
|
2743
|
+
}), Uo = { class: "tpl:w-full" }, Wo = { key: 0 }, Go = [
|
|
2734
2744
|
"aria-label",
|
|
2735
2745
|
"contenteditable",
|
|
2736
2746
|
"data-placeholder",
|
|
2737
2747
|
"onBlur"
|
|
2738
|
-
],
|
|
2748
|
+
], Ko = [
|
|
2739
2749
|
"aria-label",
|
|
2740
2750
|
"contenteditable",
|
|
2741
2751
|
"data-placeholder",
|
|
2742
2752
|
"onBlur"
|
|
2743
|
-
],
|
|
2753
|
+
], qo = {
|
|
2744
2754
|
key: 1,
|
|
2745
2755
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
|
|
2746
|
-
},
|
|
2756
|
+
}, Jo = /*#__PURE__*/ yr(/* @__PURE__ */ o({
|
|
2747
2757
|
__name: "TableBlock",
|
|
2748
2758
|
props: {
|
|
2749
2759
|
block: {},
|
|
@@ -2757,7 +2767,7 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
|
|
|
2757
2767
|
updated(e, t) {
|
|
2758
2768
|
t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
|
|
2759
2769
|
}
|
|
2760
|
-
}, n = e, { t: r } = G(), i =
|
|
2770
|
+
}, n = e, { t: r } = G(), i = on(vn, "TableBlock"), a = on(Jt, "TableBlock"), o = g(Ut, null), s = I(() => n.block.rows.length > 0), l = I(() => {
|
|
2761
2771
|
let e = {
|
|
2762
2772
|
width: "100%",
|
|
2763
2773
|
borderCollapse: "collapse",
|
|
@@ -2789,11 +2799,11 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
|
|
|
2789
2799
|
} : n);
|
|
2790
2800
|
i.updateBlock(n.block.id, { rows: s });
|
|
2791
2801
|
}
|
|
2792
|
-
return (e, n) => (c(), w("div",
|
|
2802
|
+
return (e, n) => (c(), w("div", Uo, [s.value ? (c(), w("table", {
|
|
2793
2803
|
key: 0,
|
|
2794
2804
|
style: L(l.value),
|
|
2795
2805
|
class: "tpl-table-editable"
|
|
2796
|
-
}, [m.value ? (c(), w("thead",
|
|
2806
|
+
}, [m.value ? (c(), w("thead", Wo, [N("tr", null, [(c(!0), w(U, null, p(m.value.cells, (e) => f((c(), w("th", {
|
|
2797
2807
|
key: e.id,
|
|
2798
2808
|
style: L(d.value),
|
|
2799
2809
|
"aria-label": D(r).table.cellPlaceholder,
|
|
@@ -2802,7 +2812,7 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
|
|
|
2802
2812
|
onBlur: (t) => v(m.value.id, e.id, t),
|
|
2803
2813
|
onKeydown: n[0] ||= E(M((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
2804
2814
|
onClick: M(_, ["stop"])
|
|
2805
|
-
}, null, 44,
|
|
2815
|
+
}, null, 44, Go)), [[t, e.content]])), 128))])])) : k("", !0), N("tbody", null, [(c(!0), w(U, null, p(h.value, (e) => (c(), w("tr", { key: e.id }, [(c(!0), w(U, null, p(e.cells, (i) => f((c(), w("td", {
|
|
2806
2816
|
key: i.id,
|
|
2807
2817
|
style: L(u.value),
|
|
2808
2818
|
"aria-label": D(r).table.cellPlaceholder,
|
|
@@ -2811,9 +2821,9 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
|
|
|
2811
2821
|
onBlur: (t) => v(e.id, i.id, t),
|
|
2812
2822
|
onKeydown: n[1] ||= E(M((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
2813
2823
|
onClick: M(_, ["stop"])
|
|
2814
|
-
}, null, 44,
|
|
2824
|
+
}, null, 44, Ko)), [[t, i.content]])), 128))]))), 128))])], 4)) : (c(), w("div", qo, [W(D(dr), { size: 16 }), N("span", null, P(D(r).table.empty), 1)]))]));
|
|
2815
2825
|
}
|
|
2816
|
-
}), [["__scopeId", "data-v-73b9f5e5"]]),
|
|
2826
|
+
}), [["__scopeId", "data-v-73b9f5e5"]]), Yo = /* @__PURE__ */ o({
|
|
2817
2827
|
__name: "VideoPlayButton",
|
|
2818
2828
|
props: { hoverEffect: {
|
|
2819
2829
|
type: Boolean,
|
|
@@ -2830,7 +2840,7 @@ var Do = { class: "tpl:relative tpl:w-full" }, Oo = {
|
|
|
2830
2840
|
}
|
|
2831
2841
|
});
|
|
2832
2842
|
// src/utils/videoThumbnail.ts
|
|
2833
|
-
function
|
|
2843
|
+
function Xo(e) {
|
|
2834
2844
|
if (!e) return {
|
|
2835
2845
|
platform: "unknown",
|
|
2836
2846
|
videoId: null,
|
|
@@ -2862,24 +2872,24 @@ function Yo(e) {
|
|
|
2862
2872
|
thumbnailUrl: null
|
|
2863
2873
|
};
|
|
2864
2874
|
}
|
|
2865
|
-
function
|
|
2866
|
-
return t ||
|
|
2875
|
+
function Zo(e, t) {
|
|
2876
|
+
return t || Xo(e).thumbnailUrl;
|
|
2867
2877
|
}
|
|
2868
2878
|
// src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
|
|
2869
|
-
var
|
|
2879
|
+
var Qo = ["src", "alt"], $o = {
|
|
2870
2880
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
2871
2881
|
style: { opacity: "0.7" }
|
|
2872
|
-
},
|
|
2882
|
+
}, es = ["href"], ts = ["src", "alt"], ns = ["src", "alt"], rs = {
|
|
2873
2883
|
key: 3,
|
|
2874
2884
|
class: "tpl:flex tpl:box-border tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
|
|
2875
|
-
},
|
|
2885
|
+
}, is = /* @__PURE__ */ o({
|
|
2876
2886
|
__name: "VideoBlock",
|
|
2877
2887
|
props: {
|
|
2878
2888
|
block: {},
|
|
2879
2889
|
viewport: {}
|
|
2880
2890
|
},
|
|
2881
2891
|
setup(e) {
|
|
2882
|
-
let t = e, { t: n } = G(), { syntax: r } = K(), i = I(() => we(t.block.url, r) || we(t.block.thumbnailUrl, r)), a =
|
|
2892
|
+
let t = e, { t: n } = G(), { syntax: r } = K(), i = I(() => we(t.block.url, r) || we(t.block.thumbnailUrl, r)), a = An(() => i.value ? void 0 : t.block.thumbnailUrl || void 0), o = An(() => i.value ? t.block.placeholderUrl : void 0), s = I(() => i.value ? null : t.block.thumbnailUrl ? a.value ?? null : Zo(t.block.url)), l = I(() => ({ textAlign: t.block.align })), u = I(() => {
|
|
2883
2893
|
let e = t.block.align;
|
|
2884
2894
|
return {
|
|
2885
2895
|
maxWidth: "100%",
|
|
@@ -2902,16 +2912,16 @@ var Zo = ["src", "alt"], Qo = {
|
|
|
2902
2912
|
src: D(o),
|
|
2903
2913
|
alt: e.block.alt,
|
|
2904
2914
|
style: L(d.value)
|
|
2905
|
-
}, null, 12,
|
|
2915
|
+
}, null, 12, Qo), W(Yo)], 4)) : i.value ? (c(), w("div", {
|
|
2906
2916
|
key: 1,
|
|
2907
2917
|
class: "tpl:relative tpl:!flex tpl:box-border tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
|
|
2908
2918
|
style: L([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
|
|
2909
|
-
}, [W(D(
|
|
2919
|
+
}, [W(D(ur), {
|
|
2910
2920
|
size: 36,
|
|
2911
2921
|
"stroke-width": 1.5,
|
|
2912
2922
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
2913
2923
|
style: { opacity: "0.5" }
|
|
2914
|
-
}), N("span",
|
|
2924
|
+
}), N("span", $o, [W(Yi, { text: f.value }, null, 8, ["text"])])], 4)) : s.value ? (c(), w(U, { key: 2 }, [e.block.url ? (c(), w("a", {
|
|
2915
2925
|
key: 0,
|
|
2916
2926
|
href: e.block.url,
|
|
2917
2927
|
target: "_blank",
|
|
@@ -2924,7 +2934,7 @@ var Zo = ["src", "alt"], Qo = {
|
|
|
2924
2934
|
src: s.value,
|
|
2925
2935
|
alt: e.block.alt,
|
|
2926
2936
|
style: L(d.value)
|
|
2927
|
-
}, null, 12,
|
|
2937
|
+
}, null, 12, ts), W(Yo, { "hover-effect": "" })], 12, es)) : (c(), w("div", {
|
|
2928
2938
|
key: 1,
|
|
2929
2939
|
class: "tpl:relative tpl:inline-block",
|
|
2930
2940
|
style: L(u.value)
|
|
@@ -2933,53 +2943,53 @@ var Zo = ["src", "alt"], Qo = {
|
|
|
2933
2943
|
src: s.value,
|
|
2934
2944
|
alt: e.block.alt,
|
|
2935
2945
|
style: L(d.value)
|
|
2936
|
-
}, null, 12,
|
|
2946
|
+
}, null, 12, ns), W(Yo)], 4))], 64)) : (c(), w("div", rs, [W(D(ur), {
|
|
2937
2947
|
size: 40,
|
|
2938
2948
|
"stroke-width": 1.5,
|
|
2939
2949
|
class: "tpl:text-[var(--tpl-border-light)]"
|
|
2940
2950
|
}), N("span", null, P(D(n).video.addVideo), 1)]))], 4));
|
|
2941
2951
|
}
|
|
2942
|
-
}),
|
|
2943
|
-
section:
|
|
2944
|
-
title:
|
|
2945
|
-
paragraph:
|
|
2946
|
-
image:
|
|
2947
|
-
button:
|
|
2948
|
-
divider:
|
|
2949
|
-
video:
|
|
2950
|
-
social:
|
|
2951
|
-
menu:
|
|
2952
|
-
table:
|
|
2953
|
-
spacer:
|
|
2954
|
-
html:
|
|
2955
|
-
countdown: b(() => import("./CountdownBlock-
|
|
2952
|
+
}), as = {
|
|
2953
|
+
section: jo,
|
|
2954
|
+
title: bo,
|
|
2955
|
+
paragraph: Ia,
|
|
2956
|
+
image: ka,
|
|
2957
|
+
button: Zi,
|
|
2958
|
+
divider: da,
|
|
2959
|
+
video: is,
|
|
2960
|
+
social: zo,
|
|
2961
|
+
menu: Na,
|
|
2962
|
+
table: Jo,
|
|
2963
|
+
spacer: Ho,
|
|
2964
|
+
html: _a,
|
|
2965
|
+
countdown: b(() => import("./CountdownBlock-DGgnPUlu.js"))
|
|
2956
2966
|
};
|
|
2957
|
-
function
|
|
2958
|
-
let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: s } = G(i), c = I(() => Be(Be(Be(
|
|
2967
|
+
function os(t) {
|
|
2968
|
+
let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: s } = G(i), c = I(() => Be(Be(Be(oi(i), Ei(n.content.value.settings?.locale)), Ie(n.content.value.settings) === "rtl" ? {
|
|
2959
2969
|
title: { textAlign: "right" },
|
|
2960
2970
|
table: { textAlign: "right" }
|
|
2961
2971
|
} : {}), r.blockDefaults ?? {}));
|
|
2962
2972
|
n.setUiTheme(r.uiTheme ?? "auto");
|
|
2963
|
-
let { resolvedTheme: l } =
|
|
2973
|
+
let { resolvedTheme: l } = Zr(I(() => n.state.uiTheme)), f = H(r.theme ?? {}), { themeStyles: p } = Ar({
|
|
2964
2974
|
themeOverrides: f,
|
|
2965
2975
|
resolvedTheme: l,
|
|
2966
2976
|
extraStyles: () => ({
|
|
2967
2977
|
"--tpl-drop-text": `"${i.canvas.dropHere}"`,
|
|
2968
2978
|
...t.themeExtraStyles?.()
|
|
2969
2979
|
})
|
|
2970
|
-
}), m = t.history ??
|
|
2980
|
+
}), m = t.history ?? wn({
|
|
2971
2981
|
content: n.content,
|
|
2972
2982
|
setContent: (e, t) => n.setContent(e, t)
|
|
2973
2983
|
});
|
|
2974
|
-
t.history
|
|
2975
|
-
let h =
|
|
2984
|
+
t.history ? n.contentReplaced && u(n.contentReplaced, () => m.clear(), { flush: "sync" }) : On(n, m);
|
|
2985
|
+
let h = Un({
|
|
2976
2986
|
addBlock: n.addBlock,
|
|
2977
2987
|
removeBlock: n.removeBlock,
|
|
2978
2988
|
updateBlock: n.updateBlock,
|
|
2979
2989
|
selectBlock: n.selectBlock,
|
|
2980
2990
|
findBlockLocation: n.findBlockLocation,
|
|
2981
2991
|
blockDefaults: () => c.value
|
|
2982
|
-
}), g =
|
|
2992
|
+
}), g = Dn(n), _ = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? kn({
|
|
2983
2993
|
content: n.content,
|
|
2984
2994
|
isDirty: () => n.state.isDirty,
|
|
2985
2995
|
...t.autoSaveOptions
|
|
@@ -2987,27 +2997,27 @@ function as(t) {
|
|
|
2987
2997
|
_ && (y = u(m.isNavigating, (e) => {
|
|
2988
2998
|
e ? _.pause() : _.resume();
|
|
2989
2999
|
}));
|
|
2990
|
-
let b =
|
|
3000
|
+
let b = Xr(n, {
|
|
2991
3001
|
t: o,
|
|
2992
3002
|
format: s
|
|
2993
3003
|
}, r.customBlocks ?? []), x = ht(r.colors);
|
|
2994
3004
|
if (x.allowCustomIgnored && $.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), x.invalidPresets.length > 0 && $.warn(`config.colors.presets skipped invalid entries: ${x.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), x.allowCustom === !1) {
|
|
2995
|
-
let e =
|
|
3005
|
+
let e = ai(x.presets, r.blockDefaults, r.templateDefaults);
|
|
2996
3006
|
e.length > 0 && $.warn(`config.colors locks custom colours, but these block/template default colours fall outside colors.presets: ${e.join(", ")}. New blocks start on a colour the palette can't reselect — set blockDefaults / templateDefaults from the same palette.`);
|
|
2997
3007
|
}
|
|
2998
|
-
let S =
|
|
2999
|
-
for (let e of S.unknown) $.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${
|
|
3000
|
-
let w =
|
|
3001
|
-
|
|
3008
|
+
let S = Wn(r.templateSettings);
|
|
3009
|
+
for (let e of S.unknown) $.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${Gn.join(", ")}) — skipping it.`);
|
|
3010
|
+
let w = wr();
|
|
3011
|
+
ni(w, as);
|
|
3002
3012
|
let T = /* @__PURE__ */ new Set();
|
|
3003
3013
|
function E(e) {
|
|
3004
3014
|
for (let t of e) {
|
|
3005
|
-
w.registerCustom(t,
|
|
3006
|
-
for (let e of
|
|
3015
|
+
w.registerCustom(t, la);
|
|
3016
|
+
for (let e of Di(t, x)) T.has(e.id) || (T.add(e.id), $.warn(e.message));
|
|
3007
3017
|
}
|
|
3008
3018
|
}
|
|
3009
3019
|
r.customBlocks?.length && E(r.customBlocks);
|
|
3010
|
-
let D =
|
|
3020
|
+
let D = Vr();
|
|
3011
3021
|
if (C() && v(D.dispose), t.containerEl) {
|
|
3012
3022
|
let n = t.containerEl;
|
|
3013
3023
|
e(document, "pointerdown", (e) => {
|
|
@@ -3020,7 +3030,7 @@ function as(t) {
|
|
|
3020
3030
|
e ? e.save() : _?.flush();
|
|
3021
3031
|
}
|
|
3022
3032
|
function ee(e) {
|
|
3023
|
-
D.isActive() &&
|
|
3033
|
+
D.isActive() && ki(e, {
|
|
3024
3034
|
history: m,
|
|
3025
3035
|
selectBlock: (e) => n.selectBlock(e),
|
|
3026
3036
|
getSelectedBlockId: () => n.state.selectedBlockId,
|
|
@@ -3033,7 +3043,7 @@ function as(t) {
|
|
|
3033
3043
|
}
|
|
3034
3044
|
e(document, "keydown", ee);
|
|
3035
3045
|
let k = H(null), A = t.editorRoot ?? document;
|
|
3036
|
-
d(
|
|
3046
|
+
d(xn, A), d(dn, k), d(wt, /* @__PURE__ */ new Map()), d(tn, i), d(vn, n), d(bn, m), d(mn, h), d(sn, g), d(Jt, a), d(pn, p), d(hn, l), d(Yt, c), d(ln, r.locale), d(an, w), d($t, r.customBlocks ?? []), d(At, r.paletteBlocks), d(Lt, ri(r.htmlBlockPreview)), d(Rt, r.layout), d(bt, r.sectionWrapper), d(un, x), d(cn, S.fields), d(Qt, Qr(n.content, w));
|
|
3037
3047
|
let j = it(r.mergeTags?.syntax);
|
|
3038
3048
|
for (let e of ["opener", "closer"]) {
|
|
3039
3049
|
let t = j[e];
|
|
@@ -3044,10 +3054,10 @@ function as(t) {
|
|
|
3044
3054
|
function N(e) {
|
|
3045
3055
|
Array.isArray(e) ? M.value = e : $.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
|
|
3046
3056
|
}
|
|
3047
|
-
d(
|
|
3057
|
+
d(Ft, M), d(St, j), d(Et, r.mergeTags?.onRequest ?? null), d(Tt, r.mergeTags?.autocomplete !== !1), d(Sn, r.mergeTags?.showRawValue !== !1);
|
|
3048
3058
|
let P = H(Te(r.mergeTags?.tags ?? []));
|
|
3049
3059
|
d(It, P);
|
|
3050
|
-
let F =
|
|
3060
|
+
let F = Wr({
|
|
3051
3061
|
resolvePreview: r.resolvePreview,
|
|
3052
3062
|
getContent: () => {
|
|
3053
3063
|
let e = n.content.value;
|
|
@@ -3058,15 +3068,19 @@ function as(t) {
|
|
|
3058
3068
|
isActive: () => n.state.previewMode,
|
|
3059
3069
|
getLocale: () => n.activeLocale?.value ?? n.content.value.settings.locale
|
|
3060
3070
|
});
|
|
3061
|
-
d(
|
|
3062
|
-
let L =
|
|
3063
|
-
d(
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
let
|
|
3071
|
+
d(kt, F), d(Wt, r.resolvePreview);
|
|
3072
|
+
let L = null;
|
|
3073
|
+
d(Ht, (e) => (L = e, () => {
|
|
3074
|
+
L === e && (L = null);
|
|
3075
|
+
}));
|
|
3076
|
+
let z = () => (L ?? F.refresh)(), B = I(() => !(n.state.previewMode && F.isConfigured));
|
|
3077
|
+
d(Kt, B);
|
|
3078
|
+
let V = Gr();
|
|
3079
|
+
d(Ot, V), d(jt, H(!1)), d(Nt, H(!1)), d(nn, r.logicTags?.tags ?? []), d(xt, r.logicTags?.pairs ?? []), d(zt, r.logicTags?.onRequest ?? null), d(Mt, Kr()), d(Vt, r.onRequestMedia ?? null), d(_n, r.canDropMedia ?? null), d(Ct, r.resolveImageUrl ? Vn(r.resolveImageUrl) : null), r.displayConditions?.onRequest && (r.displayConditions.conditions !== void 0 || r.displayConditions.allowCustom !== void 0) && $.warn("config.displayConditions.onRequest replaces the built-in condition list — conditions and allowCustom are ignored."), d(Gt, r.displayConditions?.conditions ?? []), d(fn, r.displayConditions?.allowCustom ?? !1), d(Dt, r.displayConditions?.onRequest ?? null), d(Zt, t.capabilities ?? {}), d(yn, b);
|
|
3080
|
+
let U = qr(r.lint) ? null : Yr({
|
|
3067
3081
|
content: n.content,
|
|
3068
3082
|
get options() {
|
|
3069
|
-
return
|
|
3083
|
+
return Hr({
|
|
3070
3084
|
...r,
|
|
3071
3085
|
content: n.content.value,
|
|
3072
3086
|
contentLocale: n.activeLocale?.value ?? void 0
|
|
@@ -3078,9 +3092,9 @@ function as(t) {
|
|
|
3078
3092
|
updateSettings: n.updateSettings,
|
|
3079
3093
|
removeBlock: n.removeBlock
|
|
3080
3094
|
});
|
|
3081
|
-
d(
|
|
3082
|
-
function
|
|
3083
|
-
y?.(),
|
|
3095
|
+
d(gn, U);
|
|
3096
|
+
function W() {
|
|
3097
|
+
y?.(), U?.destroy(), _?.destroy(), m.destroy();
|
|
3084
3098
|
}
|
|
3085
3099
|
return {
|
|
3086
3100
|
t: o,
|
|
@@ -3095,27 +3109,28 @@ function as(t) {
|
|
|
3095
3109
|
themeOverrides: f,
|
|
3096
3110
|
registry: w,
|
|
3097
3111
|
keyboardReorder: b,
|
|
3098
|
-
templateLint:
|
|
3112
|
+
templateLint: U,
|
|
3099
3113
|
popoverRoot: k,
|
|
3100
3114
|
mergeTagSampleMode: P,
|
|
3101
3115
|
previewResolution: F,
|
|
3102
|
-
|
|
3116
|
+
refreshPreview: z,
|
|
3117
|
+
appliesConditionFilter: B,
|
|
3103
3118
|
registerCustomBlocks: E,
|
|
3104
3119
|
setMergeTags: N,
|
|
3105
3120
|
mergeTags: M,
|
|
3106
3121
|
mergeTagSyntax: j,
|
|
3107
|
-
destroy:
|
|
3122
|
+
destroy: W
|
|
3108
3123
|
};
|
|
3109
3124
|
}
|
|
3110
3125
|
// src/composables/useSmallScreenNotice.ts
|
|
3111
|
-
var
|
|
3112
|
-
function
|
|
3113
|
-
let n = t(
|
|
3126
|
+
var ss = "(max-width: 767px)";
|
|
3127
|
+
function cs(e) {
|
|
3128
|
+
let n = t(ss);
|
|
3114
3129
|
return {
|
|
3115
3130
|
isSmallScreen: n,
|
|
3116
3131
|
showNotice: I(() => (F(e) ?? !0) && n.value)
|
|
3117
3132
|
};
|
|
3118
3133
|
}
|
|
3119
|
-
export {
|
|
3134
|
+
export { Si as A, Or as B, Gi as C, qi as D, Ai as E, _i as F, Sr as H, Wr as I, Hr as L, bi as M, yi as N, ji as O, vi as P, Lr as R, Ii as S, Vi as T, Cr as V, da as _, Ho as a, Zi as b, xo as c, vo as d, La as f, _a as g, ka as h, Jo as i, xi as j, mi as k, wo as l, Na as m, os as n, zo as o, Ia as p, is as r, jo as s, cs as t, bo as u, la as v, Bi as w, Ni as x, ea as y, Fr as z };
|
|
3120
3135
|
|
|
3121
|
-
//# sourceMappingURL=composables-
|
|
3136
|
+
//# sourceMappingURL=composables-CN9j_FH4.js.map
|