@templatical/editor 0.59.1 → 0.60.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-CwyKz_9U.js → AiAltTextPopover-DiIaqDtB.js} +3 -3
- package/dist/{AiAltTextReview-DNFnR1PN.js → AiAltTextReview-DIe0WBbj.js} +3 -3
- package/dist/{AiChatPanel-DWWVvJIP.js → AiChatPanel-aj2TPO9F.js} +10 -10
- package/dist/{AiPanels-CESbBB63.js → AiPanels-CRM3jf82.js} +1 -1
- package/dist/{AiRewriteMenu-DH6j1jOA.js → AiRewriteMenu-F3GyXBsk.js} +11 -11
- package/dist/{BlockIssueBadge-3k568_Od.js → BlockIssueBadge-DlhA_I6J.js} +4 -4
- package/dist/{BlockPreviewCanvas-BLJxLwTT.js → BlockPreviewCanvas-DYspUXMO.js} +29 -50
- package/dist/{CloudHeaderExtras-xrHubAHL.js → CloudHeaderExtras-DC_oNrxz.js} +1 -1
- package/dist/{CloudPanels-qW-MObRD.js → CloudPanels-CAMn545-.js} +4 -4
- package/dist/{CollaborationNotices-D9GQ477K.js → CollaborationNotices-CnfS8BQy.js} +2 -2
- package/dist/{CollaboratorBar-DsRjAaqd.js → CollaboratorBar-DufLdLQP.js} +2 -2
- package/dist/{CommentsPanel-lb-IFzjl.js → CommentsPanel-C2hFFs0o.js} +1 -1
- package/dist/{CommentsSidebar-CVVTCWBH.js → CommentsSidebar-CgEwxt2T.js} +12 -12
- package/dist/{CountdownBlock-CSEq79Nc.js → CountdownBlock-AYPypmcX.js} +2 -2
- package/dist/{CountdownToolbar-BV9yQi9k.js → CountdownToolbar-CNqYDevp.js} +5 -5
- package/dist/{IssuesPanel-pxcWAQJM.js → IssuesPanel-cPKhimE9.js} +12 -12
- package/dist/{LanguageMenu-D_xbvq3D.js → LanguageMenu-zxlpmw2x.js} +14 -14
- package/dist/{LocaleNotices-j4aMFfmc.js → LocaleNotices-PIfpvCCI.js} +4 -4
- package/dist/{LogicTagInsertButton-BDIsyl3C.js → LogicTagInsertButton-DqTkGJSR.js} +21 -21
- package/dist/{MediaEditModal-BWOqjEZN.js → MediaEditModal-C2Bn8WGb.js} +1 -1
- package/dist/{MediaPanels-C-XrldMu.js → MediaPanels-BAZByHRA.js} +1 -1
- package/dist/{MergeTagInput-De1yWoc2.js → MergeTagInput-Jly1Pw0v.js} +1 -1
- package/dist/{MergeTagModeToggle-CL96pI1E.js → MergeTagModeToggle-5kaFLRAm.js} +6 -6
- package/dist/{MergeTagTextarea-DDyV8U44.js → MergeTagTextarea-CCfirhcR.js} +7 -7
- package/dist/{ParagraphEditor-DpOsnnai.js → ParagraphEditor-DTdnxgDZ.js} +46 -46
- package/dist/{RestoreVersionDialog-JQEkVIh5.js → RestoreVersionDialog-cUYu3Xqs.js} +4 -4
- package/dist/{RichTextEditorContent-C2Yj1-ZA.js → RichTextEditorContent-Aub9tOHF.js} +8 -8
- package/dist/{SaveBlockDialog-BPf6tDhg.js → SaveBlockDialog-D_ie3uIF.js} +9 -9
- package/dist/{SavedBlocksBrowserModal-DnDCfwSv.js → SavedBlocksBrowserModal-fhSnYT1l.js} +11 -11
- package/dist/{SavedBlocksPanels-D5YaVCem.js → SavedBlocksPanels-Lklqy4XI.js} +1 -1
- package/dist/{SavedBlocksPickBar-OQ7ey3MD.js → SavedBlocksPickBar-CpWkCa8G.js} +3 -3
- package/dist/{TemplateSettings-CBCaybvd.js → TemplateSettings-BJ4a8RBr.js} +12 -12
- package/dist/{TestEmailModal-BDp85wIp.js → TestEmailModal-BEoapoDc.js} +14 -12
- package/dist/{TestEmailPanel-DkJx0Ptk.js → TestEmailPanel-DgyzokCf.js} +1 -1
- package/dist/{TitleEditor-wzknZqu_.js → TitleEditor-BQoSPgOi.js} +13 -13
- package/dist/{Toolbar-FIYSw3Us.js → Toolbar-KhPpWyX1.js} +857 -756
- package/dist/{TplModal-C57J-uF0.js → TplModal-F_kA7luG.js} +4 -4
- package/dist/{VersionHistoryMenu-6jMve6By.js → VersionHistoryMenu-Bz4G8cNm.js} +7 -7
- package/dist/{VersionHistoryPanels-BZ0GT52h.js → VersionHistoryPanels-DmVRyWv9.js} +1 -1
- package/dist/{VersionPreviewBanner-Bq8z1SUc.js → VersionPreviewBanner-BeppXZyn.js} +2 -2
- package/dist/{WrapperBlock-C4XrJkx5.js → WrapperBlock-Ds7yfbhg.js} +4 -4
- package/dist/{blockTypeIcons-VX_8UQ21.js → blockTypeIcons-Do1QqDjg.js} +3 -3
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-YfIxwO1G.js → ca-Ce3NmK9v.js} +6 -1
- package/dist/cdn/chunks/{AiAltTextPopover-Dj-VLU88.js → AiAltTextPopover-CUzIaLRK.js} +4 -4
- package/dist/cdn/chunks/AiAltTextPopover-CUzIaLRK.js.map +1 -0
- package/dist/cdn/chunks/{AiAltTextReview-tVkJPOk6.js → AiAltTextReview-BXBlE71X.js} +4 -4
- package/dist/cdn/chunks/AiAltTextReview-BXBlE71X.js.map +1 -0
- package/dist/cdn/chunks/{AiChatPanel-CYPvHQGQ.js → AiChatPanel-BKydciDQ.js} +4 -4
- package/dist/cdn/chunks/AiChatPanel-BKydciDQ.js.map +1 -0
- package/dist/cdn/chunks/{AiPanels-ChTLCmMS.js → AiPanels-De-cIZ4p.js} +2 -2
- package/dist/cdn/chunks/AiPanels-De-cIZ4p.js.map +1 -0
- package/dist/cdn/chunks/{AiRewriteMenu-B23ozFnP.js → AiRewriteMenu-C9vBUTIB.js} +9 -9
- package/dist/cdn/chunks/AiRewriteMenu-C9vBUTIB.js.map +1 -0
- package/dist/cdn/chunks/{BlockIssueBadge-BKO4Mr8f.js → BlockIssueBadge-B3CTTvgw.js} +4 -4
- package/dist/cdn/chunks/BlockIssueBadge-B3CTTvgw.js.map +1 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-CaRneMZ8.js → BlockPreviewCanvas-B4Bj--kc.js} +30 -51
- package/dist/cdn/chunks/BlockPreviewCanvas-B4Bj--kc.js.map +1 -0
- package/dist/cdn/chunks/{CloudHeaderExtras-O_K3jmgO.js → CloudHeaderExtras-Cd-ePldd.js} +2 -2
- package/dist/cdn/chunks/CloudHeaderExtras-Cd-ePldd.js.map +1 -0
- package/dist/cdn/chunks/{CloudPanels-xAEirqNC.js → CloudPanels-CQ75I3hQ.js} +4 -4
- package/dist/cdn/chunks/CloudPanels-CQ75I3hQ.js.map +1 -0
- package/dist/cdn/chunks/{CollaborationNotices-CwAoa-73.js → CollaborationNotices-CgLea-hu.js} +3 -3
- package/dist/cdn/chunks/CollaborationNotices-CgLea-hu.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-DdQQwtwd.js → CollaboratorBar-CjRcbebT.js} +3 -3
- package/dist/cdn/chunks/CollaboratorBar-CjRcbebT.js.map +1 -0
- package/dist/cdn/chunks/{CommentsPanel-C8AKtxiG.js → CommentsPanel-D_ud9GMN.js} +2 -2
- package/dist/cdn/chunks/CommentsPanel-D_ud9GMN.js.map +1 -0
- package/dist/cdn/chunks/{CommentsSidebar-FxY0RHSq.js → CommentsSidebar-CXn1EGAI.js} +4 -4
- package/dist/cdn/chunks/CommentsSidebar-CXn1EGAI.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-DGgnPUlu.js → CountdownBlock--hlKE2aj.js} +3 -3
- package/dist/cdn/chunks/CountdownBlock--hlKE2aj.js.map +1 -0
- package/dist/cdn/chunks/{CountdownToolbar-9PtYUgCW.js → CountdownToolbar-BOyk_4k7.js} +6 -6
- package/dist/cdn/chunks/CountdownToolbar-BOyk_4k7.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-Co-ffgWa.js → IssuesPanel-DOC94ZsH.js} +8 -8
- package/dist/cdn/chunks/IssuesPanel-DOC94ZsH.js.map +1 -0
- package/dist/cdn/chunks/{LanguageMenu-Cl0ajnXZ.js → LanguageMenu-DktneIpL.js} +100 -100
- package/dist/cdn/chunks/LanguageMenu-DktneIpL.js.map +1 -0
- package/dist/cdn/chunks/{LocaleNotices-BVDJ7kyj.js → LocaleNotices-B2NgnHoP.js} +4 -4
- package/dist/cdn/chunks/LocaleNotices-B2NgnHoP.js.map +1 -0
- package/dist/cdn/chunks/{LogicTagInsertButton-DPYA8LJW.js → LogicTagInsertButton-CQ8RiOou.js} +10 -10
- package/dist/cdn/chunks/LogicTagInsertButton-CQ8RiOou.js.map +1 -0
- package/dist/cdn/chunks/{MediaEditModal-CfgN7Jyi.js → MediaEditModal-Cs7_Om7e.js} +2 -2
- package/dist/cdn/chunks/MediaEditModal-Cs7_Om7e.js.map +1 -0
- package/dist/cdn/chunks/{MediaPanels-Cb5vsgb-.js → MediaPanels-BeekGmql.js} +2 -2
- package/dist/cdn/chunks/MediaPanels-BeekGmql.js.map +1 -0
- package/dist/cdn/chunks/{MergeTagInput-Cxfjq3tx.js → MergeTagInput-D7FZ0ca0.js} +2 -2
- package/dist/cdn/chunks/MergeTagInput-D7FZ0ca0.js.map +1 -0
- package/dist/cdn/chunks/{MergeTagModeToggle-BmNGV3yc.js → MergeTagModeToggle-CySCCEDs.js} +5 -5
- package/dist/cdn/chunks/MergeTagModeToggle-CySCCEDs.js.map +1 -0
- package/dist/cdn/chunks/{MergeTagTextarea-DmwrPAss.js → MergeTagTextarea-DJbWTYVH.js} +6 -6
- package/dist/cdn/chunks/MergeTagTextarea-DJbWTYVH.js.map +1 -0
- package/dist/cdn/chunks/{ParagraphEditor-BoGELRr-.js → ParagraphEditor-DAQUWqQJ.js} +26 -26
- package/dist/cdn/chunks/ParagraphEditor-DAQUWqQJ.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-CaKiSq-9.js → RestoreVersionDialog-COTRe_rM.js} +4 -4
- package/dist/cdn/chunks/RestoreVersionDialog-COTRe_rM.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-Dq4TROOg.js → RichTextEditorContent-DeWPMd9V.js} +8 -8
- package/dist/cdn/chunks/RichTextEditorContent-DeWPMd9V.js.map +1 -0
- package/dist/cdn/chunks/{SaveBlockDialog-BAR0G4UO.js → SaveBlockDialog-adQMbKR1.js} +8 -8
- package/dist/cdn/chunks/SaveBlockDialog-adQMbKR1.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-C-KYaLkQ.js → SavedBlocksBrowserModal-CGIFCRAx.js} +8 -8
- package/dist/cdn/chunks/SavedBlocksBrowserModal-CGIFCRAx.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksPanels-C3OF0EeB.js → SavedBlocksPanels-Du0RYlEf.js} +2 -2
- package/dist/cdn/chunks/SavedBlocksPanels-Du0RYlEf.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksPickBar-BnyPXw5W.js → SavedBlocksPickBar-DmleyUrn.js} +4 -4
- package/dist/cdn/chunks/SavedBlocksPickBar-DmleyUrn.js.map +1 -0
- package/dist/cdn/chunks/{TemplateSettings-uoiUkd2l.js → TemplateSettings-Csjef99q.js} +10 -10
- package/dist/cdn/chunks/TemplateSettings-Csjef99q.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailModal-B9d3ZsH7.js → TestEmailModal-ClkexOtF.js} +13 -11
- package/dist/cdn/chunks/TestEmailModal-ClkexOtF.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel--fPi6QjN.js → TestEmailPanel-DYEYzhU2.js} +2 -2
- package/dist/cdn/chunks/TestEmailPanel-DYEYzhU2.js.map +1 -0
- package/dist/cdn/chunks/{TitleEditor-Cn4fnSpa.js → TitleEditor-opvaIgVr.js} +12 -12
- package/dist/cdn/chunks/TitleEditor-opvaIgVr.js.map +1 -0
- package/dist/cdn/chunks/ToggleSwitch-C0w0srN_.js.map +1 -1
- package/dist/cdn/chunks/{Toolbar-BzAuH2G4.js → Toolbar-DbqkKRXy.js} +825 -724
- package/dist/cdn/chunks/Toolbar-DbqkKRXy.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-jMfK19PC.js → TplModal-DLV5OeMD.js} +5 -5
- package/dist/cdn/chunks/TplModal-DLV5OeMD.js.map +1 -0
- package/dist/cdn/chunks/{VersionHistoryMenu-DDqYMqC2.js → VersionHistoryMenu-DBd0zwjE.js} +4 -4
- package/dist/cdn/chunks/VersionHistoryMenu-DBd0zwjE.js.map +1 -0
- package/dist/cdn/chunks/{VersionHistoryPanels-DJpySkvq.js → VersionHistoryPanels-hy_Ybxie.js} +2 -2
- package/dist/cdn/chunks/VersionHistoryPanels-hy_Ybxie.js.map +1 -0
- package/dist/cdn/chunks/{VersionPreviewBanner-CYT5QUoc.js → VersionPreviewBanner-D-yHxWWY.js} +3 -3
- package/dist/cdn/chunks/VersionPreviewBanner-D-yHxWWY.js.map +1 -0
- package/dist/cdn/chunks/{WrapperBlock-Bi9XgDmX.js → WrapperBlock-Ce_k8m_x.js} +5 -5
- package/dist/cdn/chunks/WrapperBlock-Ce_k8m_x.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-CGxNYHVA.js → blockTypeIcons-DBoP1HkR.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-CGxNYHVA.js.map → blockTypeIcons-DBoP1HkR.js.map} +1 -1
- package/dist/cdn/chunks/{ca-YfIxwO1G.js → ca-Ce3NmK9v.js} +7 -2
- package/dist/cdn/chunks/ca-Ce3NmK9v.js.map +1 -0
- package/dist/cdn/chunks/{composables-Cp6gZ7qV.js → composables-Brr4m0Sg.js} +526 -550
- package/dist/cdn/chunks/composables-Brr4m0Sg.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-D8zeR9D2.js → createCloudRuntime-QPeg45XL.js} +4 -4
- package/dist/cdn/chunks/{createCloudRuntime-D8zeR9D2.js.map → createCloudRuntime-QPeg45XL.js.map} +1 -1
- package/dist/cdn/chunks/{da-CM6DCvRG.js → da-4YwDAuEr.js} +7 -2
- package/dist/cdn/chunks/da-4YwDAuEr.js.map +1 -0
- package/dist/{de-Dugz1zXC.js → cdn/chunks/de-BlQ0vdZJ.js} +8 -1
- package/dist/cdn/chunks/de-BlQ0vdZJ.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-CXSSZplR.js → editor-modal-BCcbvIxc.js} +4 -4
- package/dist/cdn/chunks/editor-modal-BCcbvIxc.js.map +1 -0
- package/dist/cdn/chunks/en-DkulseE1.js +1 -0
- package/dist/{en-BykoFuFY.js → cdn/chunks/en-MlNeQVSG.js} +8 -1
- package/dist/cdn/chunks/en-MlNeQVSG.js.map +1 -0
- package/dist/{es-DaWsTkpj.js → cdn/chunks/es-2s8x4OM2.js} +8 -1
- package/dist/cdn/chunks/es-2s8x4OM2.js.map +1 -0
- package/dist/cdn/chunks/{extensions-BYJPv1sA.js → extensions-BpuyqKVY.js} +6 -6
- package/dist/cdn/chunks/extensions-BpuyqKVY.js.map +1 -0
- package/dist/cdn/chunks/{fr-DqwQHtJo.js → fr-D3MjrsgQ.js} +7 -2
- package/dist/cdn/chunks/fr-D3MjrsgQ.js.map +1 -0
- package/dist/cdn/chunks/{icons-C7vjUBLn.js → icons-BJ6AtVgu.js} +23 -23
- package/dist/cdn/chunks/{icons-C7vjUBLn.js.map → icons-BJ6AtVgu.js.map} +1 -1
- package/dist/{ja-BH4MS1Ye.js → cdn/chunks/ja-B4Kx7uBX.js} +8 -1
- package/dist/cdn/chunks/ja-B4Kx7uBX.js.map +1 -0
- package/dist/cdn/chunks/keys-ywH4jHJ2.js +11 -0
- package/dist/cdn/chunks/keys-ywH4jHJ2.js.map +1 -0
- package/dist/{nl-BQl1_UHv.js → cdn/chunks/nl-U65iX7wN.js} +8 -1
- package/dist/cdn/chunks/nl-U65iX7wN.js.map +1 -0
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-nDyYIXvL.js → normalizeMergeTagMarkup-B81BAWKT.js} +61 -61
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-nDyYIXvL.js.map → normalizeMergeTagMarkup-B81BAWKT.js.map} +1 -1
- package/dist/{preRenderCustomBlocks-CgPtlLGL.js → cdn/chunks/preRenderCustomBlocks-CQuaMxuv.js} +3 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-CxwYcAQe.js.map → preRenderCustomBlocks-CQuaMxuv.js.map} +1 -1
- package/dist/{pt-BR-eyzmU9Vs.js → cdn/chunks/pt-BR-_jsX1xLv.js} +8 -1
- package/dist/cdn/chunks/pt-BR-_jsX1xLv.js.map +1 -0
- package/dist/cdn/chunks/{sanitizeHtml-5T_KaDcp.js → sanitizeHtml-BdAjvU9I.js} +2 -2
- package/dist/cdn/chunks/{sanitizeHtml-5T_KaDcp.js.map → sanitizeHtml-BdAjvU9I.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-bvQ57o1m.js → socialIcons-Df9dNe7I.js} +463 -485
- package/dist/cdn/chunks/socialIcons-Df9dNe7I.js.map +1 -0
- package/dist/cdn/chunks/{src-BRyzUujm.js → src-B3v_3j9b.js} +586 -554
- package/dist/cdn/chunks/src-B3v_3j9b.js.map +1 -0
- package/dist/{dist-BTjObRcv.js → cdn/chunks/src-BHgVGOTi.js} +872 -700
- package/dist/cdn/chunks/src-BHgVGOTi.js.map +1 -0
- package/dist/cdn/chunks/src-C5V_yzAU.js +673 -0
- package/dist/cdn/chunks/src-C5V_yzAU.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-B7gxx0aJ.js → tiptap-D9amDW4u.js} +1030 -1027
- package/dist/cdn/chunks/tiptap-D9amDW4u.js.map +1 -0
- package/dist/cdn/chunks/{useCloudI18n-CWgySYuJ.js → useCloudI18n-BTV9uu3c.js} +2 -2
- package/dist/cdn/chunks/{useCloudI18n-CWgySYuJ.js.map → useCloudI18n-BTV9uu3c.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorRoot-BA4vV7sK.js → useEditorRoot-D0Lp2x4_.js} +2 -2
- package/dist/cdn/chunks/{useEditorRoot-BA4vV7sK.js.map → useEditorRoot-D0Lp2x4_.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-JsIdvX-i.js → useI18n-DPg6rPbu.js} +2 -2
- package/dist/cdn/chunks/{useI18n-JsIdvX-i.js.map → useI18n-DPg6rPbu.js.map} +1 -1
- package/dist/cdn/chunks/useLocalizedDisplay-C3lIetmX.js +33 -0
- package/dist/cdn/chunks/{useLocalizedDisplay-7iwZ1UhB.js.map → useLocalizedDisplay-C3lIetmX.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-C10Wef7d.js → useLogicTag-DOIlsGk8.js} +3 -3
- package/dist/cdn/chunks/{useLogicTag-C10Wef7d.js.map → useLogicTag-DOIlsGk8.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-Dd26TcvH.js → useMergeTag-DUNl364g.js} +3 -3
- package/dist/cdn/chunks/{useMergeTag-Dd26TcvH.js.map → useMergeTag-DUNl364g.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-DWRQRT2P.js → usePopoverPosition-CBp9uwjV.js} +2 -2
- package/dist/cdn/chunks/{usePopoverPosition-DWRQRT2P.js.map → usePopoverPosition-CBp9uwjV.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-CArjwH-u.js → useScrollToBlock-32EnuMwu.js} +2 -2
- package/dist/cdn/chunks/{useScrollToBlock-CArjwH-u.js.map → useScrollToBlock-32EnuMwu.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-BaeBoPQZ.js → withCurrentFont-ufGLu2Vt.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-BaeBoPQZ.js.map → withCurrentFont-ufGLu2Vt.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +573 -573
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-ErKdPXG6.js → check-CWq6Nfjj.js} +1 -1
- package/dist/{chevron-down-C_vv5fZE.js → chevron-down-B9t0SK_-.js} +1 -1
- package/dist/{chevron-right-Cw4GpjFA.js → chevron-right-B_qslOCS.js} +1 -1
- package/dist/{chevron-up-uijYZoph.js → chevron-up-CxZ2teV2.js} +1 -1
- package/dist/{circle-exclamation-point-CIYHx5Tw.js → circle-exclamation-point-B1tbhkNb.js} +1 -1
- package/dist/{clock-tnC1IvZk.js → clock-Rw4btQn-.js} +1 -1
- package/dist/{composables-jTnTSqdm.js → composables-5KJV0O9T.js} +933 -957
- package/dist/{createCloudRuntime-DiUnYjKr.js → createCloudRuntime-BdoKeYJi.js} +3 -3
- package/dist/{createLucideIcon-CssArtUe.js → createLucideIcon-B6Zkn9r0.js} +5 -5
- package/dist/{da-CM6DCvRG.js → da-4YwDAuEr.js} +6 -1
- package/dist/{cdn/chunks/de-Dugz1zXC.js → de-BlQ0vdZJ.js} +6 -3
- package/dist/dist-AyAOL8Bj.js +4 -0
- package/dist/{dist-BTUMr4Pb.js → dist-BNrGwgev.js} +2 -2
- package/dist/{dist-CsplpC_6.js → dist-BPVNNdTv.js} +2 -2
- package/dist/{dist-bWIkrMkM.js → dist-C7YLw60i.js} +2 -2
- package/dist/{dist-Clfx1JeL.js → dist-CBnAqr27.js} +2 -2
- package/dist/{dist-CkHJRChP.js → dist-COvAA64n.js} +2 -2
- package/dist/{dist-C-NRkFsp.js → dist-CuRjmtWu.js} +5 -5
- package/dist/{dist-HKEDfp__.js → dist-DG_AWt8v.js} +2 -2
- package/dist/{dist-DY3WbyCO.js → dist-DYtuc3jc.js} +2 -2
- package/dist/dist-DkPTWQuO.js +4 -0
- package/dist/{dist-DwpKFWF4.js → dist-DoWk1r7z.js} +77 -74
- package/dist/{cdn/chunks/src-CVHGPKSW.js → dist-DsA7NeIy.js} +691 -649
- package/dist/{dist-BlrlMP8f.js → dist-fDsB6dCL.js} +2 -2
- package/dist/{editor-modal-BWvxfSj8.js → editor-modal-_ylhrf4g.js} +15 -15
- package/dist/en-DwxgN_-Y.js +1 -0
- package/dist/{cdn/chunks/en-BykoFuFY.js → en-MlNeQVSG.js} +6 -3
- package/dist/{cdn/chunks/es-DaWsTkpj.js → es-2s8x4OM2.js} +6 -3
- package/dist/{extensions-CAuXwpbI.js → extensions-DCJGAZ9z.js} +74 -74
- package/dist/{eye-DK4--qHk.js → eye-BE-DeEqG.js} +1 -1
- package/dist/{fr-DqwQHtJo.js → fr-D3MjrsgQ.js} +6 -1
- package/dist/{image-B5pJOw5Q.js → image-DfRxUmUh.js} +1 -1
- package/dist/index.d.ts +37 -7
- package/dist/{info-DKM0_thN.js → info-D1PS-81D.js} +1 -1
- package/dist/{cdn/chunks/ja-BH4MS1Ye.js → ja-B4Kx7uBX.js} +6 -3
- package/dist/keys-B4DimcgX.js +9 -0
- package/dist/{link-BNgTZ_Sw.js → link-DLaACaIz.js} +1 -1
- package/dist/{list-Bqynqm7o.js → list-CvtzVlvM.js} +1 -1
- package/dist/{loader-circle-BMc3fVpa.js → loader-circle-DCkSXApP.js} +1 -1
- package/dist/{message-circle-D_TpvAJh.js → message-circle-Bj4F9bBO.js} +1 -1
- package/dist/{cdn/chunks/nl-BQl1_UHv.js → nl-U65iX7wN.js} +6 -3
- package/dist/{normalizeMergeTagMarkup-fgoVMKAc.js → normalizeMergeTagMarkup-B7n_-4Dz.js} +45 -45
- package/dist/{package-D2fov5PU.js → package-By1au8Wi.js} +1 -1
- package/dist/{pencil-BNdkJyfY.js → pencil-T4qqyRLl.js} +1 -1
- package/dist/{plus-CWmBmMx-.js → plus-3Zry-1gs.js} +1 -1
- package/dist/{cdn/chunks/preRenderCustomBlocks-CxwYcAQe.js → preRenderCustomBlocks-D3GzENVB.js} +1 -3
- package/dist/{cdn/chunks/pt-BR-eyzmU9Vs.js → pt-BR-_jsX1xLv.js} +6 -3
- package/dist/{refresh-cw-Ryg1j66N.js → refresh-cw-BwaO0ioc.js} +1 -1
- package/dist/{rotate-ccw-D8j7gXXv.js → rotate-ccw-C3E0W5q-.js} +1 -1
- package/dist/{sanitizeHtml-D2wueiEe.js → sanitizeHtml-BcbjlypU.js} +6 -6
- package/dist/{search-CX2JkSHz.js → search-DfExisVv.js} +1 -1
- package/dist/{send-BLR1b-p5.js → send-FRC7Giap.js} +1 -1
- package/dist/{smartphone-Co8m0LLg.js → smartphone-BlYU_z_x.js} +1 -1
- package/dist/{socialIcons-RKdTgJip.js → socialIcons-By2LPWOQ.js} +563 -585
- package/dist/{sparkles-Dc3Undp5.js → sparkles-DSi61skE.js} +1 -1
- package/dist/{square-CPw_cyX8.js → square-DEE8tT2w.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +640 -640
- package/dist/{text-align-start-2VZGhCiK.js → text-align-start-DGdrmKcG.js} +1 -1
- package/dist/{trash-t6XXliVc.js → trash-YZPJMZc7.js} +1 -1
- package/dist/{triangle-exclamation-point-_YYWE2ZH.js → triangle-exclamation-point-BR-W6pQm.js} +1 -1
- package/dist/{upload-BWYXWYHb.js → upload-B_Eoqj-4.js} +1 -1
- package/dist/{useCloudI18n-nMZ9f_4b.js → useCloudI18n-BnuOL1YS.js} +1 -1
- package/dist/{useEditorRoot-DpssP9rX.js → useEditorRoot-DWfC2CVC.js} +1 -1
- package/dist/{useI18n-C2p-qHeb.js → useI18n-Cx9W7OWb.js} +1 -1
- package/dist/useLocalizedDisplay-_P6-hXaO.js +31 -0
- package/dist/{useLogicTag-59fmujI7.js → useLogicTag-f0SJ1Cd2.js} +2 -2
- package/dist/{useMergeTag-M1vauWet.js → useMergeTag-0-EudwkV.js} +4 -4
- package/dist/{usePopoverPosition-L9MOHBM-.js → usePopoverPosition-DF0ZYH7g.js} +1 -1
- package/dist/{useScrollToBlock-BMF0Dt5l.js → useScrollToBlock-CtM_ydOS.js} +2 -2
- package/dist/withCurrentFont-BOg3jmCT.js +18 -0
- package/dist/{x-CTKOxIyZ.js → x-C0X5MoK3.js} +1 -1
- package/package.json +22 -22
- package/dist/cdn/chunks/AiAltTextPopover-Dj-VLU88.js.map +0 -1
- package/dist/cdn/chunks/AiAltTextReview-tVkJPOk6.js.map +0 -1
- package/dist/cdn/chunks/AiChatPanel-CYPvHQGQ.js.map +0 -1
- package/dist/cdn/chunks/AiPanels-ChTLCmMS.js.map +0 -1
- package/dist/cdn/chunks/AiRewriteMenu-B23ozFnP.js.map +0 -1
- package/dist/cdn/chunks/BlockIssueBadge-BKO4Mr8f.js.map +0 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-CaRneMZ8.js.map +0 -1
- package/dist/cdn/chunks/CloudHeaderExtras-O_K3jmgO.js.map +0 -1
- package/dist/cdn/chunks/CloudPanels-xAEirqNC.js.map +0 -1
- package/dist/cdn/chunks/CollaborationNotices-CwAoa-73.js.map +0 -1
- package/dist/cdn/chunks/CollaboratorBar-DdQQwtwd.js.map +0 -1
- package/dist/cdn/chunks/CommentsPanel-C8AKtxiG.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-FxY0RHSq.js.map +0 -1
- package/dist/cdn/chunks/CountdownBlock-DGgnPUlu.js.map +0 -1
- package/dist/cdn/chunks/CountdownToolbar-9PtYUgCW.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-Co-ffgWa.js.map +0 -1
- package/dist/cdn/chunks/LanguageMenu-Cl0ajnXZ.js.map +0 -1
- package/dist/cdn/chunks/LocaleNotices-BVDJ7kyj.js.map +0 -1
- package/dist/cdn/chunks/LogicTagInsertButton-DPYA8LJW.js.map +0 -1
- package/dist/cdn/chunks/MediaEditModal-CfgN7Jyi.js.map +0 -1
- package/dist/cdn/chunks/MediaPanels-Cb5vsgb-.js.map +0 -1
- package/dist/cdn/chunks/MergeTagInput-Cxfjq3tx.js.map +0 -1
- package/dist/cdn/chunks/MergeTagModeToggle-BmNGV3yc.js.map +0 -1
- package/dist/cdn/chunks/MergeTagTextarea-DmwrPAss.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-BoGELRr-.js.map +0 -1
- package/dist/cdn/chunks/RestoreVersionDialog-CaKiSq-9.js.map +0 -1
- package/dist/cdn/chunks/RichTextEditorContent-Dq4TROOg.js.map +0 -1
- package/dist/cdn/chunks/SaveBlockDialog-BAR0G4UO.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-C-KYaLkQ.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksPanels-C3OF0EeB.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksPickBar-BnyPXw5W.js.map +0 -1
- package/dist/cdn/chunks/TemplateSettings-uoiUkd2l.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-B9d3ZsH7.js.map +0 -1
- package/dist/cdn/chunks/TestEmailPanel--fPi6QjN.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-Cn4fnSpa.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-BzAuH2G4.js.map +0 -1
- package/dist/cdn/chunks/TplModal-jMfK19PC.js.map +0 -1
- package/dist/cdn/chunks/VersionHistoryMenu-DDqYMqC2.js.map +0 -1
- package/dist/cdn/chunks/VersionHistoryPanels-DJpySkvq.js.map +0 -1
- package/dist/cdn/chunks/VersionPreviewBanner-CYT5QUoc.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-Bi9XgDmX.js.map +0 -1
- package/dist/cdn/chunks/ca-YfIxwO1G.js.map +0 -1
- package/dist/cdn/chunks/composables-Cp6gZ7qV.js.map +0 -1
- package/dist/cdn/chunks/da-CM6DCvRG.js.map +0 -1
- package/dist/cdn/chunks/de-Dugz1zXC.js.map +0 -1
- package/dist/cdn/chunks/editor-modal-CXSSZplR.js.map +0 -1
- package/dist/cdn/chunks/en-BykoFuFY.js.map +0 -1
- package/dist/cdn/chunks/en-DYMYt1TN.js +0 -1
- package/dist/cdn/chunks/es-DaWsTkpj.js.map +0 -1
- package/dist/cdn/chunks/extensions-BYJPv1sA.js.map +0 -1
- package/dist/cdn/chunks/fr-DqwQHtJo.js.map +0 -1
- package/dist/cdn/chunks/ja-BH4MS1Ye.js.map +0 -1
- package/dist/cdn/chunks/keys-DNv3xXxI.js +0 -11
- package/dist/cdn/chunks/keys-DNv3xXxI.js.map +0 -1
- package/dist/cdn/chunks/nl-BQl1_UHv.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-eyzmU9Vs.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-bvQ57o1m.js.map +0 -1
- package/dist/cdn/chunks/src-BRyzUujm.js.map +0 -1
- package/dist/cdn/chunks/src-CVHGPKSW.js.map +0 -1
- package/dist/cdn/chunks/src-aFRxbwqP.js +0 -707
- package/dist/cdn/chunks/src-aFRxbwqP.js.map +0 -1
- package/dist/cdn/chunks/tiptap-B7gxx0aJ.js.map +0 -1
- package/dist/cdn/chunks/useLocalizedDisplay-7iwZ1UhB.js +0 -33
- package/dist/dist-CkIeJEsa.js +0 -4
- package/dist/dist-eAgG-nCb.js +0 -4
- package/dist/en-DvCaYqiR.js +0 -1
- package/dist/keys-BeQy64On.js +0 -9
- package/dist/useLocalizedDisplay-9RqT2y_Y.js +0 -31
- package/dist/withCurrentFont-BXZ7g-K6.js +0 -18
|
@@ -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-D0Lp2x4_.js";
|
|
4
|
+
import { t as G } from "./useI18n-DPg6rPbu.js";
|
|
5
|
+
import "./useCloudI18n-BTV9uu3c.js";
|
|
6
|
+
import { t as K } from "./useMergeTag-DUNl364g.js";
|
|
7
7
|
import { _ as ne, h as q, v as J, y as re } from "./dist-BtWMy7UQ.js";
|
|
8
|
-
import { $ as ie,
|
|
8
|
+
import { $ as ie, A as ae, An as Y, B as X, C as Z, D as Q, Dn as oe, E as se, En as ce, G as le, Gt as ue, H as de, I as fe, K as pe, Kt as me, L as he, Lt as ge, M as _e, Mn as ve, Mt as ye, N as be, O as xe, On as Se, P as Ce, Q as we, R as Te, Rt as Ee, S as De, T as Oe, Vt as ke, W as Ae, X as je, Y as Me, Yt as Ne, Z as Pe, a as Fe, at as Ie, b as Le, bn as Re, ct as ze, d as Be, et as Ve, ft as He, gt as Ue, hn as We, ht as Ge, i as Ke, it as qe, j as Je, jn as Ye, kn as Xe, ln as Ze, lt as Qe, mn as $e, mt as et, nt as tt, ot as nt, p as rt, q as it, rt as at, t as ot, tt as st, u as ct, ut as lt, w as ut, x as dt, xn as ft, y as pt, yt as mt, zt as ht } from "./src-BHgVGOTi.js";
|
|
9
9
|
import { t as $ } from "./logger-CqQTfJGx.js";
|
|
10
|
-
import { a as
|
|
11
|
-
import { n as
|
|
12
|
-
import { $ as
|
|
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
|
|
10
|
+
import { a as gt, c as _t, i as vt, n as yt, o as bt, t as xt } from "./usePopoverPosition-CBp9uwjV.js";
|
|
11
|
+
import { n as St } from "./useLocalizedDisplay-C3lIetmX.js";
|
|
12
|
+
import { $ as Ct, A as wt, B as Tt, C as Et, D as Dt, F as Ot, G as kt, H as At, I as jt, J as Mt, K as Nt, L as Pt, M as Ft, N as It, O as Lt, P as Rt, R as zt, S as Bt, T as Vt, U as Ht, V as Ut, W as Wt, X as Gt, Y as Kt, Z as qt, _ as Jt, a as Yt, at as Xt, b as Zt, c as Qt, ct as $t, d as en, et as tn, g as nn, h as rn, i as an, it as on, j as sn, k as cn, l as ln, lt as un, m as dn, nt as fn, ot as pn, p as mn, q as hn, r as gn, rt as _n, s as vn, st as yn, u as bn, ut as xn, v as Sn, w as Cn, x as wn, y as Tn, z as En } from "./keys-ywH4jHJ2.js";
|
|
13
|
+
import { t as Dn } from "./useLogicTag-DOIlsGk8.js";
|
|
14
|
+
import { B as On, C as kn, F as An, I as jn, P as Mn, R as Nn, T as Pn, _ as Fn, a as In, f as Ln, h as Rn, n as zn, o as Bn, t as Vn, u as Hn, v as Un, w as Wn, x as Gn, y as Kn, z as qn } from "./socialIcons-Df9dNe7I.js";
|
|
15
|
+
import { r as Jn, t as Yn } from "./templateSettingsFields-cjlP-jdw.js";
|
|
16
|
+
import { r as Xn, t as Zn } from "./sanitizeHtml-BdAjvU9I.js";
|
|
17
|
+
import { At as Qn, G as $n, Mt as er, Nt as tr, Ot as nr, St as rr, Ut as ir, V as ar, Wt as or, X as sr, _t as cr, d as lr, f as ur, k as dr, mt as fr, nt as pr, o as mr, y as hr, yt as gr } from "./icons-BJ6AtVgu.js";
|
|
18
|
+
import { t as _r } from "./LoadingTrack-o-89hApJ.js";
|
|
19
|
+
import { t as vr } from "./languageName-DEEOhDWI.js";
|
|
20
|
+
import { t as yr } from "./plural-CyxrJXL1.js";
|
|
21
|
+
import { m as br, w as xr, x as Sr } from "./styleConstants-Br6CIRoS.js";
|
|
22
|
+
import { t as Cr } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
|
|
23
|
+
import { t as wr } from "./readableTextColor-BfZUGnVj.js";
|
|
24
24
|
// src/composables/useFocusTrap.ts
|
|
25
|
-
var
|
|
26
|
-
function
|
|
25
|
+
var Tr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
26
|
+
function Er(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(Tr)).filter((e) => e.offsetParent !== null) : [];
|
|
30
30
|
}
|
|
31
31
|
function c(e) {
|
|
32
32
|
if (e.key !== "Tab") return;
|
|
@@ -55,7 +55,7 @@ function Sr(t, n) {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
// src/composables/useEmoji.ts
|
|
58
|
-
function
|
|
58
|
+
function Dr() {
|
|
59
59
|
let [e, t] = J(!1), n = R([]), r = !1;
|
|
60
60
|
v(() => {
|
|
61
61
|
r = !0;
|
|
@@ -80,7 +80,7 @@ function Cr() {
|
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
// src/composables/useBlockRegistry.ts
|
|
83
|
-
function
|
|
83
|
+
function Or() {
|
|
84
84
|
let e = R(/* @__PURE__ */ new Map());
|
|
85
85
|
function t(t, n) {
|
|
86
86
|
e.value.set(t, n), B(e);
|
|
@@ -89,7 +89,7 @@ function wr() {
|
|
|
89
89
|
let r = `custom:${t.type}`;
|
|
90
90
|
e.value.set(r, {
|
|
91
91
|
component: n,
|
|
92
|
-
createBlock: () =>
|
|
92
|
+
createBlock: () => De(t),
|
|
93
93
|
definition: t
|
|
94
94
|
}), B(e);
|
|
95
95
|
}
|
|
@@ -114,7 +114,7 @@ function wr() {
|
|
|
114
114
|
let t = a(e.customType);
|
|
115
115
|
if (!t) return o("Block definition not found");
|
|
116
116
|
try {
|
|
117
|
-
return await
|
|
117
|
+
return await he(await import("./liquid.browser-rubac0VA.js")).parseAndRender(t.template, e.fieldValues);
|
|
118
118
|
} catch (t) {
|
|
119
119
|
return $.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
|
|
120
120
|
}
|
|
@@ -133,7 +133,7 @@ function wr() {
|
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
135
|
// src/composables/useFonts.ts
|
|
136
|
-
var
|
|
136
|
+
var kr = [
|
|
137
137
|
{
|
|
138
138
|
value: "Arial",
|
|
139
139
|
label: "Arial"
|
|
@@ -162,19 +162,19 @@ var Tr = [
|
|
|
162
162
|
value: "Courier New",
|
|
163
163
|
label: "Courier New"
|
|
164
164
|
}
|
|
165
|
-
],
|
|
166
|
-
function
|
|
167
|
-
if (e === void 0 || e === !0) return [...
|
|
165
|
+
], Ar = "Arial, sans-serif";
|
|
166
|
+
function jr(e) {
|
|
167
|
+
if (e === void 0 || e === !0) return [...kr];
|
|
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 = kr.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: ${kr.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 Mr(e) {
|
|
177
|
+
let t = H(e?.customFonts ?? []), n = H(!1), r = jr(e?.builtIns), i = I(() => e?.defaultFallback ?? Ar), a = I(() => {
|
|
178
178
|
let e = [...r], n = t.value.map((e) => ({
|
|
179
179
|
value: e.name,
|
|
180
180
|
label: e.name,
|
|
@@ -185,18 +185,18 @@ function Or(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 ?? Ar.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 Ar;
|
|
196
196
|
}
|
|
197
197
|
let l = I(() => c());
|
|
198
198
|
function u(e) {
|
|
199
|
-
return
|
|
199
|
+
return Ke(e, {
|
|
200
200
|
customFonts: t.value,
|
|
201
201
|
defaultFallback: i.value
|
|
202
202
|
});
|
|
@@ -239,7 +239,7 @@ function Or(e) {
|
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
241
|
// src/composables/useThemeStyles.ts
|
|
242
|
-
var
|
|
242
|
+
var Nr = {
|
|
243
243
|
bg: "--tpl-bg",
|
|
244
244
|
bgElevated: "--tpl-bg-elevated",
|
|
245
245
|
bgHover: "--tpl-bg-hover",
|
|
@@ -263,10 +263,10 @@ var kr = {
|
|
|
263
263
|
dangerLight: "--tpl-danger-light",
|
|
264
264
|
canvasBg: "--tpl-canvas-bg"
|
|
265
265
|
};
|
|
266
|
-
function
|
|
266
|
+
function Pr({ 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(Nr)) {
|
|
270
270
|
let n = a[e];
|
|
271
271
|
n && (r[t] = n);
|
|
272
272
|
}
|
|
@@ -274,12 +274,12 @@ function Ar({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
|
|
|
274
274
|
}) };
|
|
275
275
|
}
|
|
276
276
|
// src/utils/mergeTagNodeSpec.ts
|
|
277
|
-
function
|
|
278
|
-
return
|
|
277
|
+
function Fr(e, t, n) {
|
|
278
|
+
return Pe(e, n) ? {
|
|
279
279
|
type: "logicMergeTagNode",
|
|
280
280
|
attrs: {
|
|
281
281
|
value: e,
|
|
282
|
-
keyword:
|
|
282
|
+
keyword: le(e, n)
|
|
283
283
|
}
|
|
284
284
|
} : {
|
|
285
285
|
type: "mergeTagNode",
|
|
@@ -290,32 +290,32 @@ function jr(e, t, n) {
|
|
|
290
290
|
};
|
|
291
291
|
}
|
|
292
292
|
// src/utils/insertLogicTag.ts
|
|
293
|
-
function
|
|
293
|
+
function Ir(e) {
|
|
294
294
|
return "before" in e && "after" in e;
|
|
295
295
|
}
|
|
296
|
-
function
|
|
297
|
-
if (!
|
|
298
|
-
e.chain().focus().insertContent(
|
|
296
|
+
function Lr(e, t, n) {
|
|
297
|
+
if (!Ir(t)) {
|
|
298
|
+
e.chain().focus().insertContent(Fr(t.value, t.label, n)).run();
|
|
299
299
|
return;
|
|
300
300
|
}
|
|
301
|
-
let r =
|
|
301
|
+
let r = Fr(t.before, t.label, n), i = Fr(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 Rr(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 zr(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) => Rr(bt(e.style.color)),
|
|
317
317
|
renderHTML: (e) => {
|
|
318
|
-
let t =
|
|
318
|
+
let t = Rr(e.color);
|
|
319
319
|
return t ? { style: `color: ${t}` } : {};
|
|
320
320
|
}
|
|
321
321
|
}
|
|
@@ -323,9 +323,9 @@ function Fr(e) {
|
|
|
323
323
|
} });
|
|
324
324
|
}
|
|
325
325
|
// src/composables/useRichTextLinkDialog.ts
|
|
326
|
-
function
|
|
326
|
+
function Br(e, t = de.liquid, n = () => !0) {
|
|
327
327
|
let r = H(!1), i = H(""), a = H(""), o = H(null);
|
|
328
|
-
|
|
328
|
+
Er(o, r);
|
|
329
329
|
function s() {
|
|
330
330
|
if (!n()) return;
|
|
331
331
|
let t = e.value?.getAttributes("link") ?? {};
|
|
@@ -336,7 +336,7 @@ function Ir(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 = Rr(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
|
}
|
|
@@ -353,8 +353,8 @@ function Ir(e, t = le.liquid, n = () => !0) {
|
|
|
353
353
|
if (t.startsWith("#")) return t;
|
|
354
354
|
if (t.startsWith("//")) return `https:${t}`;
|
|
355
355
|
if (l.test(t)) return t;
|
|
356
|
-
let n =
|
|
357
|
-
return n ?
|
|
356
|
+
let n = Be(t);
|
|
357
|
+
return n ? ct.some((e) => e === n) ? t : null : u(t) ? t : `https://${t}`;
|
|
358
358
|
}
|
|
359
359
|
function f() {
|
|
360
360
|
n() && (e.value?.chain().focus().extendMarkRange("link").unsetLink().run(), p());
|
|
@@ -378,13 +378,13 @@ function Ir(e, t = le.liquid, n = () => !0) {
|
|
|
378
378
|
};
|
|
379
379
|
}
|
|
380
380
|
// src/composables/useRichTextEditor.ts
|
|
381
|
-
function
|
|
382
|
-
let n = g(
|
|
381
|
+
function Vr(t) {
|
|
382
|
+
let n = g(Sn, null), r = _t(), i = g(Kt, 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: _ } = Dn(), v = g(Xt, null), y = (S(v) ? v.value : v)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", b = Me(d), x = R(null), C = n?.content ? St(n) : null, w = () => He(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 } = Br(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 Lr(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 ? Lr(x.value, e, d) : x.value?.commands.focus());
|
|
459
459
|
}
|
|
460
460
|
return {
|
|
461
461
|
editor: x,
|
|
@@ -484,25 +484,25 @@ function Lr(t) {
|
|
|
484
484
|
};
|
|
485
485
|
}
|
|
486
486
|
// src/utils/activeEditorTracker.ts
|
|
487
|
-
var
|
|
488
|
-
function
|
|
489
|
-
let e = ++
|
|
490
|
-
return
|
|
487
|
+
var Hr = /* @__PURE__ */ new Set(), Ur = 0, Wr = 0;
|
|
488
|
+
function Gr() {
|
|
489
|
+
let e = ++Wr;
|
|
490
|
+
return Hr.add(e), Ur === 0 && (Ur = e), {
|
|
491
491
|
id: e,
|
|
492
|
-
isActive: () =>
|
|
492
|
+
isActive: () => Hr.size <= 1 || Ur === e,
|
|
493
493
|
claim: () => {
|
|
494
|
-
|
|
494
|
+
Ur = e;
|
|
495
495
|
},
|
|
496
496
|
dispose: () => {
|
|
497
|
-
if (
|
|
498
|
-
let e = Array.from(
|
|
499
|
-
|
|
497
|
+
if (Hr.delete(e), Ur === e) {
|
|
498
|
+
let e = Array.from(Hr);
|
|
499
|
+
Ur = e[e.length - 1] ?? 0;
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
};
|
|
503
503
|
}
|
|
504
504
|
// src/utils/resolveLintOptions.ts
|
|
505
|
-
function
|
|
505
|
+
function Kr(e) {
|
|
506
506
|
let t = e.contentLocale ?? e.content?.settings.locale;
|
|
507
507
|
return {
|
|
508
508
|
...e.lint,
|
|
@@ -511,8 +511,8 @@ function Hr(e) {
|
|
|
511
511
|
};
|
|
512
512
|
}
|
|
513
513
|
// src/composables/usePreviewResolution.ts
|
|
514
|
-
var
|
|
515
|
-
function
|
|
514
|
+
var qr = 500;
|
|
515
|
+
function Jr(e) {
|
|
516
516
|
let t = typeof e.resolvePreview == "function", n = H(null), r = H(!1), i = H(!1), a = H(!1), o = 0, s = null;
|
|
517
517
|
function c() {
|
|
518
518
|
s !== null && (clearTimeout(s), s = null);
|
|
@@ -523,7 +523,7 @@ function Wr(e) {
|
|
|
523
523
|
let c = ++o;
|
|
524
524
|
r.value = !0;
|
|
525
525
|
let l = {
|
|
526
|
-
content:
|
|
526
|
+
content: Re(e.getContent()),
|
|
527
527
|
surface: e.surface,
|
|
528
528
|
trigger: t,
|
|
529
529
|
...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
|
|
@@ -531,7 +531,7 @@ function Wr(e) {
|
|
|
531
531
|
try {
|
|
532
532
|
let e = await s(l);
|
|
533
533
|
if (c !== o) return;
|
|
534
|
-
if (!
|
|
534
|
+
if (!ot(e)) {
|
|
535
535
|
i.value = !0, n.value = null;
|
|
536
536
|
return;
|
|
537
537
|
}
|
|
@@ -546,7 +546,7 @@ function Wr(e) {
|
|
|
546
546
|
function d(e) {
|
|
547
547
|
t && (c(), !a.value && e !== "recipient" ? l(e) : s = setTimeout(() => {
|
|
548
548
|
s = null, l(e);
|
|
549
|
-
},
|
|
549
|
+
}, qr));
|
|
550
550
|
}
|
|
551
551
|
function f() {
|
|
552
552
|
t && e.isActive() && (c(), l("refresh"));
|
|
@@ -573,12 +573,13 @@ function Wr(e) {
|
|
|
573
573
|
isResolving: r,
|
|
574
574
|
isInitialResolve: I(() => r.value && !a.value),
|
|
575
575
|
hasFailed: i,
|
|
576
|
+
isShowingResolved: I(() => n.value !== null),
|
|
576
577
|
supersedesSamples: I(() => t),
|
|
577
578
|
refresh: f
|
|
578
579
|
};
|
|
579
580
|
}
|
|
580
581
|
// src/composables/useMergeTagPicker.ts
|
|
581
|
-
function
|
|
582
|
+
function Yr() {
|
|
582
583
|
let e = H(!1), t = H([]), n = H(null), r = null;
|
|
583
584
|
function i(i, a) {
|
|
584
585
|
if (r) {
|
|
@@ -608,7 +609,7 @@ function Gr() {
|
|
|
608
609
|
};
|
|
609
610
|
}
|
|
610
611
|
// src/composables/useLogicTagPicker.ts
|
|
611
|
-
function
|
|
612
|
+
function Xr() {
|
|
612
613
|
let e = H(!1), t = H([]), n = H([]), r = null;
|
|
613
614
|
function i(i, a) {
|
|
614
615
|
if (r) {
|
|
@@ -638,23 +639,23 @@ function Kr() {
|
|
|
638
639
|
};
|
|
639
640
|
}
|
|
640
641
|
// src/composables/useTemplateLint.ts
|
|
641
|
-
function
|
|
642
|
+
function Zr(e) {
|
|
642
643
|
return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 && e.deliverability === !1 && e.compatibility === !1 && e.localization === !1 : !1;
|
|
643
644
|
}
|
|
644
|
-
var
|
|
645
|
-
function
|
|
645
|
+
var Qr = !1;
|
|
646
|
+
function $r(e) {
|
|
646
647
|
let t = H([]), n = H(0), r = H(-1), i = u(e.content, () => {
|
|
647
648
|
n.value++;
|
|
648
|
-
}, { deep: !0 }), a = H(!1), o = H(!1), s = R(null), c =
|
|
649
|
+
}, { deep: !0 }), a = H(!1), o = H(!1), s = R(null), c = Zr(e.options), l = null, d = !1;
|
|
649
650
|
c || f();
|
|
650
651
|
async function f() {
|
|
651
652
|
try {
|
|
652
|
-
let t = await import("./src-
|
|
653
|
+
let t = await import("./src-B3v_3j9b.js");
|
|
653
654
|
if (d) return;
|
|
654
655
|
s.value = { lintTemplate: t.lintTemplate }, a.value = !0, p(), l = re(n, p, { debounce: e.debounce ?? 500 });
|
|
655
656
|
} catch {
|
|
656
657
|
if (d) return;
|
|
657
|
-
o.value = !0,
|
|
658
|
+
o.value = !0, Qr || (Qr = !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."));
|
|
658
659
|
}
|
|
659
660
|
}
|
|
660
661
|
function p() {
|
|
@@ -693,7 +694,7 @@ function Yr(e) {
|
|
|
693
694
|
};
|
|
694
695
|
}
|
|
695
696
|
// src/composables/useKeyboardReorder.ts
|
|
696
|
-
function
|
|
697
|
+
function ei(e, t, n = []) {
|
|
697
698
|
let r = H(null), i = H(""), a = null;
|
|
698
699
|
function o(t) {
|
|
699
700
|
let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
|
|
@@ -720,7 +721,7 @@ function Xr(e, t, n = []) {
|
|
|
720
721
|
let i = o(r);
|
|
721
722
|
if (!i) return "";
|
|
722
723
|
let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
|
|
723
|
-
return a ?
|
|
724
|
+
return a ? Kn(a, t.t, n) : "";
|
|
724
725
|
}
|
|
725
726
|
function c(t, n) {
|
|
726
727
|
return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
|
|
@@ -788,14 +789,14 @@ function Xr(e, t, n = []) {
|
|
|
788
789
|
};
|
|
789
790
|
}
|
|
790
791
|
// src/composables/useUiTheme.ts
|
|
791
|
-
function
|
|
792
|
+
function ti(e) {
|
|
792
793
|
let n = t("(prefers-color-scheme: dark)");
|
|
793
794
|
return { resolvedTheme: I(() => e.value === "auto" ? n.value ? "dark" : "light" : e.value) };
|
|
794
795
|
}
|
|
795
796
|
// src/composables/useCustomBlockStylesheets.ts
|
|
796
|
-
function
|
|
797
|
+
function ni(e, t) {
|
|
797
798
|
return I(() => {
|
|
798
|
-
let n =
|
|
799
|
+
let n = ri(e.value.blocks);
|
|
799
800
|
if (n.size === 0) return [];
|
|
800
801
|
let r = /* @__PURE__ */ new Set(), i = [];
|
|
801
802
|
for (let e of n) {
|
|
@@ -807,39 +808,39 @@ function Qr(e, t) {
|
|
|
807
808
|
return i;
|
|
808
809
|
});
|
|
809
810
|
}
|
|
810
|
-
function
|
|
811
|
+
function ri(e) {
|
|
811
812
|
let t = /* @__PURE__ */ new Set();
|
|
812
|
-
return
|
|
813
|
+
return ii(e, t), t;
|
|
813
814
|
}
|
|
814
|
-
function
|
|
815
|
-
for (let n of e) if (
|
|
815
|
+
function ii(e, t) {
|
|
816
|
+
for (let n of e) if (mt(n)) t.add(n.customType);
|
|
816
817
|
else if (n.type === "section") {
|
|
817
818
|
let e = n.children;
|
|
818
819
|
if (!e) continue;
|
|
819
|
-
for (let n of e)
|
|
820
|
-
} else
|
|
820
|
+
for (let n of e) ii(n, t);
|
|
821
|
+
} else ye(n) && ii(n.children, t);
|
|
821
822
|
}
|
|
822
823
|
// src/utils/registerBuiltInBlocks.ts
|
|
823
|
-
var
|
|
824
|
+
var ai = [
|
|
824
825
|
{
|
|
825
826
|
type: "section",
|
|
826
|
-
createBlock:
|
|
827
|
+
createBlock: xe
|
|
827
828
|
},
|
|
828
829
|
{
|
|
829
830
|
type: "title",
|
|
830
|
-
createBlock:
|
|
831
|
+
createBlock: be
|
|
831
832
|
},
|
|
832
833
|
{
|
|
833
834
|
type: "paragraph",
|
|
834
|
-
createBlock:
|
|
835
|
+
createBlock: Q
|
|
835
836
|
},
|
|
836
837
|
{
|
|
837
838
|
type: "image",
|
|
838
|
-
createBlock:
|
|
839
|
+
createBlock: Oe
|
|
839
840
|
},
|
|
840
841
|
{
|
|
841
842
|
type: "button",
|
|
842
|
-
createBlock:
|
|
843
|
+
createBlock: Le
|
|
843
844
|
},
|
|
844
845
|
{
|
|
845
846
|
type: "divider",
|
|
@@ -847,11 +848,11 @@ var ti = [
|
|
|
847
848
|
},
|
|
848
849
|
{
|
|
849
850
|
type: "video",
|
|
850
|
-
createBlock:
|
|
851
|
+
createBlock: Ce
|
|
851
852
|
},
|
|
852
853
|
{
|
|
853
854
|
type: "social",
|
|
854
|
-
createBlock:
|
|
855
|
+
createBlock: ae
|
|
855
856
|
},
|
|
856
857
|
{
|
|
857
858
|
type: "menu",
|
|
@@ -859,23 +860,23 @@ var ti = [
|
|
|
859
860
|
},
|
|
860
861
|
{
|
|
861
862
|
type: "table",
|
|
862
|
-
createBlock:
|
|
863
|
+
createBlock: _e
|
|
863
864
|
},
|
|
864
865
|
{
|
|
865
866
|
type: "spacer",
|
|
866
|
-
createBlock:
|
|
867
|
+
createBlock: Je
|
|
867
868
|
},
|
|
868
869
|
{
|
|
869
870
|
type: "html",
|
|
870
|
-
createBlock:
|
|
871
|
+
createBlock: ut
|
|
871
872
|
},
|
|
872
873
|
{
|
|
873
874
|
type: "countdown",
|
|
874
|
-
createBlock:
|
|
875
|
+
createBlock: dt
|
|
875
876
|
}
|
|
876
877
|
];
|
|
877
|
-
function
|
|
878
|
-
for (let n of
|
|
878
|
+
function oi(e, t) {
|
|
879
|
+
for (let n of ai) {
|
|
879
880
|
let r = t[n.type];
|
|
880
881
|
r && e.registerBuiltIn(n.type, {
|
|
881
882
|
component: r,
|
|
@@ -884,31 +885,31 @@ function ni(e, t) {
|
|
|
884
885
|
}
|
|
885
886
|
}
|
|
886
887
|
// src/utils/resolveHtmlBlockPreview.ts
|
|
887
|
-
function
|
|
888
|
+
function si(e) {
|
|
888
889
|
return typeof e == "boolean" ? e : e?.enabled ?? !1;
|
|
889
890
|
}
|
|
890
891
|
// src/utils/collectOffPaletteDefaults.ts
|
|
891
|
-
function
|
|
892
|
+
function ci(e) {
|
|
892
893
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
893
894
|
}
|
|
894
|
-
function
|
|
895
|
-
let r = new Set(e.map((e) =>
|
|
896
|
-
for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(
|
|
895
|
+
function li(e, t, n) {
|
|
896
|
+
let r = new Set(e.map((e) => gt(e))), i = [], a = (e, t) => {
|
|
897
|
+
for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(gt(o)) && i.push(`${t}.${n}: ${o}`) : ci(o) && a(o, `${t}.${n}`);
|
|
897
898
|
}, o = t;
|
|
898
|
-
for (let [e, t] of Object.entries(
|
|
899
|
+
for (let [e, t] of Object.entries(et)) {
|
|
899
900
|
let n = o?.[e];
|
|
900
901
|
a({
|
|
901
902
|
...t,
|
|
902
|
-
...
|
|
903
|
+
...ci(n) ? n : {}
|
|
903
904
|
}, e);
|
|
904
905
|
}
|
|
905
906
|
return a({
|
|
906
|
-
...
|
|
907
|
+
...Ge,
|
|
907
908
|
...n ?? {}
|
|
908
909
|
}, "template"), i;
|
|
909
910
|
}
|
|
910
911
|
// src/utils/localizedBlockDefaults.ts
|
|
911
|
-
function
|
|
912
|
+
function ui(e) {
|
|
912
913
|
return {
|
|
913
914
|
title: { content: `<p>${e.blockDefaults.title}</p>` },
|
|
914
915
|
paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
|
|
@@ -916,63 +917,63 @@ function oi(e) {
|
|
|
916
917
|
};
|
|
917
918
|
}
|
|
918
919
|
// src/i18n/index.ts
|
|
919
|
-
var
|
|
920
|
-
"./locales/ca.ts": () => import("./ca-
|
|
921
|
-
"./locales/da.ts": () => import("./da-
|
|
922
|
-
"./locales/de.ts": () => import("./de-
|
|
923
|
-
"./locales/en.ts": () => import("./en-
|
|
924
|
-
"./locales/es.ts": () => import("./es-
|
|
925
|
-
"./locales/fr.ts": () => import("./fr-
|
|
926
|
-
"./locales/ja.ts": () => import("./ja-
|
|
927
|
-
"./locales/nl.ts": () => import("./nl-
|
|
928
|
-
"./locales/pt-BR.ts": () => import("./pt-BR-
|
|
929
|
-
}),
|
|
920
|
+
var di = /* #__PURE__ */ Object.assign({
|
|
921
|
+
"./locales/ca.ts": () => import("./ca-Ce3NmK9v.js"),
|
|
922
|
+
"./locales/da.ts": () => import("./da-4YwDAuEr.js"),
|
|
923
|
+
"./locales/de.ts": () => import("./de-BlQ0vdZJ.js"),
|
|
924
|
+
"./locales/en.ts": () => import("./en-MlNeQVSG.js"),
|
|
925
|
+
"./locales/es.ts": () => import("./es-2s8x4OM2.js"),
|
|
926
|
+
"./locales/fr.ts": () => import("./fr-D3MjrsgQ.js"),
|
|
927
|
+
"./locales/ja.ts": () => import("./ja-B4Kx7uBX.js"),
|
|
928
|
+
"./locales/nl.ts": () => import("./nl-U65iX7wN.js"),
|
|
929
|
+
"./locales/pt-BR.ts": () => import("./pt-BR-_jsX1xLv.js")
|
|
930
|
+
}), fi = /* #__PURE__ */ Object.assign({
|
|
930
931
|
"./locales/cloud/de.ts": () => import("./de-6M4JoHoD.js"),
|
|
931
932
|
"./locales/cloud/en.ts": () => import("./en-FzUuJ8HW.js"),
|
|
932
933
|
"./locales/cloud/pt-BR.ts": () => import("./pt-BR-Bp92Fc6J.js")
|
|
933
934
|
});
|
|
934
|
-
function
|
|
935
|
+
function pi(e) {
|
|
935
936
|
return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
|
|
936
937
|
}
|
|
937
|
-
var
|
|
938
|
-
function
|
|
938
|
+
var mi = pi(di), hi = pi(fi);
|
|
939
|
+
function gi(e) {
|
|
939
940
|
return e.trim().replace(/_/g, "-").toLowerCase();
|
|
940
941
|
}
|
|
941
|
-
function
|
|
942
|
-
let n =
|
|
943
|
-
return t.find((e) =>
|
|
942
|
+
function _i(e, t) {
|
|
943
|
+
let n = gi(e);
|
|
944
|
+
return t.find((e) => gi(e) === n);
|
|
944
945
|
}
|
|
945
|
-
function
|
|
946
|
-
return
|
|
946
|
+
function vi(e) {
|
|
947
|
+
return gi(e).split("-")[0];
|
|
947
948
|
}
|
|
948
|
-
function
|
|
949
|
-
return
|
|
949
|
+
function yi(e, t) {
|
|
950
|
+
return _i(e, t) ?? _i(vi(e), t);
|
|
950
951
|
}
|
|
951
|
-
function
|
|
952
|
-
return
|
|
952
|
+
function bi(e, t) {
|
|
953
|
+
return yi(e, t) ?? "en";
|
|
953
954
|
}
|
|
954
|
-
async function
|
|
955
|
-
let t =
|
|
955
|
+
async function xi(e) {
|
|
956
|
+
let t = di[`./locales/${bi(e, mi)}.ts`];
|
|
956
957
|
return (await t()).default;
|
|
957
958
|
}
|
|
958
|
-
async function
|
|
959
|
-
let t =
|
|
959
|
+
async function Si(e) {
|
|
960
|
+
let t = fi[`./locales/cloud/${bi(e, hi)}.ts`];
|
|
960
961
|
return (await t()).default;
|
|
961
962
|
}
|
|
962
|
-
function
|
|
963
|
-
return
|
|
963
|
+
function Ci(e) {
|
|
964
|
+
return yi(e, mi) !== void 0;
|
|
964
965
|
}
|
|
965
|
-
function
|
|
966
|
-
return
|
|
966
|
+
function wi(e) {
|
|
967
|
+
return yi(e, hi) !== void 0;
|
|
967
968
|
}
|
|
968
|
-
function
|
|
969
|
-
return [...
|
|
969
|
+
function Ti() {
|
|
970
|
+
return [...mi];
|
|
970
971
|
}
|
|
971
|
-
function
|
|
972
|
-
return [...
|
|
972
|
+
function Ei() {
|
|
973
|
+
return [...hi];
|
|
973
974
|
}
|
|
974
975
|
// src/i18n/contentDefaults.ts
|
|
975
|
-
var
|
|
976
|
+
var Di = {
|
|
976
977
|
en: {
|
|
977
978
|
video: "Video",
|
|
978
979
|
days: "Days",
|
|
@@ -1045,16 +1046,16 @@ var Ci = {
|
|
|
1045
1046
|
seconds: "Sekunder",
|
|
1046
1047
|
expired: "Dette tilbud er udløbet"
|
|
1047
1048
|
}
|
|
1048
|
-
},
|
|
1049
|
-
function
|
|
1050
|
-
if (!e) return
|
|
1051
|
-
let t = e.trim().replace(/_/g, "-").toLowerCase(), n =
|
|
1052
|
-
if (n) return
|
|
1053
|
-
let r =
|
|
1054
|
-
return r ?
|
|
1049
|
+
}, Oi = new Map(Object.keys(Di).map((e) => [e.toLowerCase(), e]));
|
|
1050
|
+
function ki(e) {
|
|
1051
|
+
if (!e) return Di.en;
|
|
1052
|
+
let t = e.trim().replace(/_/g, "-").toLowerCase(), n = Oi.get(t);
|
|
1053
|
+
if (n) return Di[n];
|
|
1054
|
+
let r = Oi.get(vi(t));
|
|
1055
|
+
return r ? Di[r] : Di.en;
|
|
1055
1056
|
}
|
|
1056
|
-
function
|
|
1057
|
-
let t =
|
|
1057
|
+
function Ai(e) {
|
|
1058
|
+
let t = ki(e);
|
|
1058
1059
|
return {
|
|
1059
1060
|
video: { alt: t.video },
|
|
1060
1061
|
countdown: {
|
|
@@ -1067,9 +1068,9 @@ function Ei(e) {
|
|
|
1067
1068
|
};
|
|
1068
1069
|
}
|
|
1069
1070
|
// src/utils/collectColorFieldIssues.ts
|
|
1070
|
-
function
|
|
1071
|
+
function ji(e, t) {
|
|
1071
1072
|
let n = [], r = (r, i) => {
|
|
1072
|
-
let a =
|
|
1073
|
+
let a = Un(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
|
|
1073
1074
|
if (a.invalidPresets.length > 0 && n.push({
|
|
1074
1075
|
id: s("invalid-presets"),
|
|
1075
1076
|
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." : "")
|
|
@@ -1080,8 +1081,8 @@ function Di(e, t) {
|
|
|
1080
1081
|
id: s("allow-custom-ignored"),
|
|
1081
1082
|
message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
|
|
1082
1083
|
}), !a.allowCustom && a.presets.length > 0) {
|
|
1083
|
-
let e = r.default ?? "", t = new Set(a.presets.map((e) =>
|
|
1084
|
-
e !== "" && !t.has(
|
|
1084
|
+
let e = r.default ?? "", t = new Set(a.presets.map((e) => gt(e)));
|
|
1085
|
+
e !== "" && !t.has(gt(e)) && n.push({
|
|
1085
1086
|
id: s("off-palette-default"),
|
|
1086
1087
|
message: `${o} locks custom colours, but its default ${e} falls outside the field's presets: ${a.presets.join(", ")}. New blocks start on a colour the picker can't reselect — set the default from the same palette.`
|
|
1087
1088
|
});
|
|
@@ -1092,7 +1093,7 @@ function Di(e, t) {
|
|
|
1092
1093
|
return n;
|
|
1093
1094
|
}
|
|
1094
1095
|
// src/utils/keyboardShortcuts.ts
|
|
1095
|
-
function
|
|
1096
|
+
function Mi(e) {
|
|
1096
1097
|
for (let t of e.composedPath()) {
|
|
1097
1098
|
if (!(t instanceof HTMLElement)) continue;
|
|
1098
1099
|
if (t.isContentEditable) return !0;
|
|
@@ -1101,14 +1102,14 @@ function Oi(e) {
|
|
|
1101
1102
|
}
|
|
1102
1103
|
return !1;
|
|
1103
1104
|
}
|
|
1104
|
-
function
|
|
1105
|
+
function Ni(e, t) {
|
|
1105
1106
|
let n = e.metaKey || e.ctrlKey;
|
|
1106
1107
|
if (n && e.key.toLowerCase() === "s") e.preventDefault(), t.onSave?.();
|
|
1107
1108
|
else if (n && e.key.toLowerCase() === "z") {
|
|
1108
|
-
if (
|
|
1109
|
+
if (Mi(e)) return;
|
|
1109
1110
|
e.preventDefault(), e.shiftKey ? t.history.redo() : t.history.undo();
|
|
1110
1111
|
} else {
|
|
1111
|
-
if (t.isPicking?.() && !
|
|
1112
|
+
if (t.isPicking?.() && !Mi(e)) {
|
|
1112
1113
|
if (e.key === "Escape") {
|
|
1113
1114
|
e.preventDefault(), t.onCancelPick?.();
|
|
1114
1115
|
return;
|
|
@@ -1122,139 +1123,139 @@ function ki(e, t) {
|
|
|
1122
1123
|
return;
|
|
1123
1124
|
}
|
|
1124
1125
|
}
|
|
1125
|
-
e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !
|
|
1126
|
+
e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Mi(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
|
|
1126
1127
|
}
|
|
1127
1128
|
}
|
|
1128
1129
|
// src/utils/blockComponentResolver.ts
|
|
1129
|
-
function
|
|
1130
|
+
function Pi(e, t) {
|
|
1130
1131
|
let n = { fontFamily: t(e.fontFamily) };
|
|
1131
1132
|
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;
|
|
1132
1133
|
}
|
|
1133
|
-
function
|
|
1134
|
+
function Fi(e, t, n) {
|
|
1134
1135
|
if (t) {
|
|
1135
1136
|
let n = t.getComponent(e);
|
|
1136
1137
|
if (n) return n;
|
|
1137
1138
|
}
|
|
1138
1139
|
return n[e.type] ?? null;
|
|
1139
1140
|
}
|
|
1140
|
-
var
|
|
1141
|
-
function
|
|
1141
|
+
var Ii = "--tpl-block-bg-layer", Li = "--tpl-email-frame-width", Ri = "tpl-has-bg-image";
|
|
1142
|
+
function zi(e, t) {
|
|
1142
1143
|
if (t === null) return {};
|
|
1143
|
-
let n =
|
|
1144
|
+
let n = me(e);
|
|
1144
1145
|
if (n === null) return {};
|
|
1145
|
-
let r = t?.trim(), i = r ?
|
|
1146
|
+
let r = t?.trim(), i = r ? ue(r) : n.url;
|
|
1146
1147
|
return {
|
|
1147
1148
|
backgroundImage: `url("${i}")`,
|
|
1148
1149
|
backgroundSize: n.size,
|
|
1149
1150
|
backgroundPosition: n.position,
|
|
1150
1151
|
backgroundRepeat: n.repeat,
|
|
1151
|
-
[
|
|
1152
|
+
[Ii]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
|
|
1152
1153
|
};
|
|
1153
1154
|
}
|
|
1154
|
-
function
|
|
1155
|
-
return e &&
|
|
1155
|
+
function Bi(e) {
|
|
1156
|
+
return e && Ii in e ? Ri : void 0;
|
|
1156
1157
|
}
|
|
1157
|
-
var
|
|
1158
|
+
var Vi = {
|
|
1158
1159
|
top: "flex-start",
|
|
1159
1160
|
middle: "center",
|
|
1160
1161
|
bottom: "flex-end"
|
|
1161
1162
|
};
|
|
1162
|
-
function
|
|
1163
|
-
let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${
|
|
1163
|
+
function Hi(e, t) {
|
|
1164
|
+
let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${Ui(t, e.aspectRatio)}px` } : { aspectRatio: `1 / ${e.aspectRatio ?? 1}` };
|
|
1164
1165
|
return {
|
|
1165
1166
|
display: "flex",
|
|
1166
1167
|
flexDirection: "column",
|
|
1167
|
-
justifyContent:
|
|
1168
|
+
justifyContent: Vi[e.verticalAlign],
|
|
1168
1169
|
boxSizing: "border-box",
|
|
1169
1170
|
...n
|
|
1170
1171
|
};
|
|
1171
1172
|
}
|
|
1172
|
-
function
|
|
1173
|
+
function Ui(e, t) {
|
|
1173
1174
|
return Math.max(1, Math.round(Math.max(1, Math.round(e)) * t));
|
|
1174
1175
|
}
|
|
1175
|
-
function
|
|
1176
|
+
function Wi(e, t = {}) {
|
|
1176
1177
|
if (e.type === "wrapper") return {};
|
|
1177
1178
|
let { padding: n, backgroundColor: r } = e.styles, i = {
|
|
1178
1179
|
padding: `${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`,
|
|
1179
1180
|
backgroundColor: r || "transparent"
|
|
1180
1181
|
};
|
|
1181
|
-
if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ??
|
|
1182
|
-
let n =
|
|
1182
|
+
if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? oe.paragraphGap : oe.paragraphGap}px`), e.type === "section") {
|
|
1183
|
+
let n = ve(e.borderRadius);
|
|
1183
1184
|
n !== null && (i.borderRadius = n);
|
|
1184
|
-
let r =
|
|
1185
|
-
r?.applied && e.backgroundImage ? (Object.assign(i,
|
|
1185
|
+
let r = ke(e);
|
|
1186
|
+
r?.applied && e.backgroundImage ? (Object.assign(i, Hi(r, t.heroBoxWidth)), Object.assign(i, zi({
|
|
1186
1187
|
...e.backgroundImage,
|
|
1187
1188
|
size: "cover",
|
|
1188
1189
|
repeat: !1
|
|
1189
|
-
}, t.backgroundImageUrl))) : (Object.assign(i,
|
|
1190
|
+
}, t.backgroundImageUrl))) : (Object.assign(i, Ki(e.border)), Object.assign(i, zi(e.backgroundImage, t.backgroundImageUrl)));
|
|
1190
1191
|
}
|
|
1191
1192
|
return i;
|
|
1192
1193
|
}
|
|
1193
|
-
function
|
|
1194
|
-
return e.type === "section" ?
|
|
1195
|
-
backgroundImageUrl:
|
|
1194
|
+
function Gi(e, t, n, r) {
|
|
1195
|
+
return e.type === "section" ? Wi(e, {
|
|
1196
|
+
backgroundImageUrl: kn(t, e.backgroundImage, n),
|
|
1196
1197
|
heroBoxWidth: r
|
|
1197
|
-
}) :
|
|
1198
|
+
}) : Wi(e);
|
|
1198
1199
|
}
|
|
1199
|
-
function
|
|
1200
|
+
function Ki(e) {
|
|
1200
1201
|
let t = {};
|
|
1201
|
-
for (let [n, r] of Object.entries(
|
|
1202
|
+
for (let [n, r] of Object.entries(Ye(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
|
|
1202
1203
|
return t;
|
|
1203
1204
|
}
|
|
1204
|
-
var
|
|
1205
|
+
var qi = {
|
|
1205
1206
|
width: "100cqw",
|
|
1206
1207
|
maxWidth: "none",
|
|
1207
1208
|
marginInline: "calc(50% - 50cqw)",
|
|
1208
1209
|
boxSizing: "border-box"
|
|
1209
1210
|
};
|
|
1210
|
-
function
|
|
1211
|
+
function Ji(e) {
|
|
1211
1212
|
return `${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`;
|
|
1212
1213
|
}
|
|
1213
|
-
function
|
|
1214
|
+
function Yi(e) {
|
|
1214
1215
|
let t = {
|
|
1215
1216
|
width: "var(--tpl-email-frame-width)",
|
|
1216
1217
|
maxWidth: "100%",
|
|
1217
1218
|
marginInline: "auto",
|
|
1218
1219
|
boxSizing: "border-box"
|
|
1219
1220
|
};
|
|
1220
|
-
return e && (t.padding =
|
|
1221
|
+
return e && (t.padding = Ji(e)), t;
|
|
1221
1222
|
}
|
|
1222
|
-
function
|
|
1223
|
+
function Xi(e, t = {}) {
|
|
1223
1224
|
if (e.type !== "section" || !e.wrapper) return null;
|
|
1224
1225
|
let n = e.wrapper, r = {};
|
|
1225
|
-
if (n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && !n.fullWidth && (r.padding =
|
|
1226
|
-
let e =
|
|
1226
|
+
if (n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && !n.fullWidth && (r.padding = Ji(n.padding)), !n.fullWidth) {
|
|
1227
|
+
let e = ve(n.borderRadius);
|
|
1227
1228
|
e !== null && (r.borderRadius = e);
|
|
1228
1229
|
}
|
|
1229
|
-
return Object.assign(r,
|
|
1230
|
+
return Object.assign(r, zi(n.backgroundImage, t.backgroundImageUrl)), n.fullWidth && Object.assign(r, qi), r;
|
|
1230
1231
|
}
|
|
1231
|
-
function
|
|
1232
|
+
function Zi(e, t = {}) {
|
|
1232
1233
|
if (e.type !== "wrapper") return null;
|
|
1233
1234
|
let n = {};
|
|
1234
|
-
return e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding && !e.fullWidth && (n.padding =
|
|
1235
|
+
return e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding && !e.fullWidth && (n.padding = Ji(e.styles.padding)), !e.fullWidth && e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, zi(e.backgroundImage, t.backgroundImageUrl)), e.fullWidth && Object.assign(n, qi), n;
|
|
1235
1236
|
}
|
|
1236
1237
|
// src/utils/mergeTagLabelSegments.ts
|
|
1237
|
-
function
|
|
1238
|
+
function Qi(e, t, n, r = !1) {
|
|
1238
1239
|
if (!e) return [];
|
|
1239
1240
|
let i = [], a = 0;
|
|
1240
|
-
for (let o of
|
|
1241
|
+
for (let o of tt(e, n)) {
|
|
1241
1242
|
o.index > a && i.push({
|
|
1242
1243
|
type: "text",
|
|
1243
1244
|
value: e.slice(a, o.index)
|
|
1244
1245
|
});
|
|
1245
1246
|
let s = o.value;
|
|
1246
|
-
if (
|
|
1247
|
-
let e = r ?
|
|
1247
|
+
if (we(s, n)) {
|
|
1248
|
+
let e = r ? it(s, t) : void 0;
|
|
1248
1249
|
i.push(e === void 0 ? {
|
|
1249
1250
|
type: "tag",
|
|
1250
|
-
value:
|
|
1251
|
+
value: pe(s, t)
|
|
1251
1252
|
} : {
|
|
1252
1253
|
type: "text",
|
|
1253
1254
|
value: e
|
|
1254
1255
|
});
|
|
1255
|
-
} else
|
|
1256
|
+
} else Pe(s, n) ? i.push({
|
|
1256
1257
|
type: "tag",
|
|
1257
|
-
value:
|
|
1258
|
+
value: le(s, n)
|
|
1258
1259
|
}) : i.push({
|
|
1259
1260
|
type: "text",
|
|
1260
1261
|
value: s
|
|
@@ -1267,27 +1268,27 @@ function Ji(e, t, n, r = !1) {
|
|
|
1267
1268
|
}), i;
|
|
1268
1269
|
}
|
|
1269
1270
|
// src/components/MergeTagPreviewText.vue
|
|
1270
|
-
var
|
|
1271
|
+
var $i = o({
|
|
1271
1272
|
name: "MergeTagPreviewText",
|
|
1272
1273
|
props: { text: {
|
|
1273
1274
|
type: String,
|
|
1274
1275
|
required: !0
|
|
1275
1276
|
} },
|
|
1276
1277
|
setup(e) {
|
|
1277
|
-
let t = g(
|
|
1278
|
+
let t = g(Rt, Ut), n = g(Tt, de.liquid), r = g(un, null), i = I(() => Qi(e.text, t.value, n, r?.value ?? !1));
|
|
1278
1279
|
return () => i.value.map((e, t) => e.type === "tag" ? s("span", {
|
|
1279
1280
|
key: t,
|
|
1280
1281
|
class: "tpl-merge-tag-label"
|
|
1281
1282
|
}, e.value) : e.value);
|
|
1282
1283
|
}
|
|
1283
|
-
}),
|
|
1284
|
+
}), ea = ["href"], ta = /* @__PURE__ */ o({
|
|
1284
1285
|
__name: "ButtonBlock",
|
|
1285
1286
|
props: {
|
|
1286
1287
|
block: {},
|
|
1287
1288
|
viewport: {}
|
|
1288
1289
|
},
|
|
1289
1290
|
setup(e) {
|
|
1290
|
-
let t = e, n =
|
|
1291
|
+
let t = e, n = xn(Zt, "ButtonBlock");
|
|
1291
1292
|
function r(e) {
|
|
1292
1293
|
return e === "regular" ? "400" : e === "medium" ? "500" : e === "bold" ? "700" : "bold";
|
|
1293
1294
|
}
|
|
@@ -1298,33 +1299,33 @@ var Yi = o({
|
|
|
1298
1299
|
backgroundColor: t.block.backgroundColor,
|
|
1299
1300
|
color: t.block.textColor,
|
|
1300
1301
|
fontSize: `${t.block.fontSize}px`,
|
|
1301
|
-
lineHeight: String(
|
|
1302
|
+
lineHeight: String(Xe(t.block)),
|
|
1302
1303
|
fontWeight: r(t.block.fontWeight),
|
|
1303
1304
|
textDecoration: "none",
|
|
1304
|
-
borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` :
|
|
1305
|
+
borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : ve(t.block.borderRadius) ?? "0px",
|
|
1305
1306
|
textAlign: "center"
|
|
1306
1307
|
};
|
|
1307
|
-
return Object.assign(e,
|
|
1308
|
+
return Object.assign(e, Ki(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") : typeof t.block.width == "string" && ft(t.block.width) !== null && (e.width = t.block.width, e.boxSizing = "border-box"), e;
|
|
1308
1309
|
}), a = I(() => ({ textAlign: t.block.align ?? "center" }));
|
|
1309
1310
|
return (t, n) => (c(), w("div", { style: L(a.value) }, [N("a", {
|
|
1310
1311
|
href: e.block.url || "#",
|
|
1311
1312
|
style: L(i.value),
|
|
1312
1313
|
class: "tpl:cursor-default",
|
|
1313
1314
|
onClick: n[0] ||= M(() => {}, ["prevent"])
|
|
1314
|
-
}, [W(
|
|
1315
|
+
}, [W($i, { text: e.block.text }, null, 8, ["text"])], 12, ea)], 4));
|
|
1315
1316
|
}
|
|
1316
|
-
}),
|
|
1317
|
+
}), na = ["innerHTML"], ra = [
|
|
1317
1318
|
"src",
|
|
1318
1319
|
"width",
|
|
1319
1320
|
"height"
|
|
1320
|
-
],
|
|
1321
|
+
], ia = /* @__PURE__ */ o({
|
|
1321
1322
|
__name: "CustomBlockIcon",
|
|
1322
1323
|
props: {
|
|
1323
1324
|
icon: {},
|
|
1324
1325
|
size: {}
|
|
1325
1326
|
},
|
|
1326
1327
|
setup(e) {
|
|
1327
|
-
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 ?
|
|
1328
|
+
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 ? Xn(t.icon ?? "") : "");
|
|
1328
1329
|
return (t, o) => r.value ? (c(), w("span", {
|
|
1329
1330
|
key: 0,
|
|
1330
1331
|
class: "tpl:inline-flex tpl:items-center tpl:justify-center",
|
|
@@ -1333,33 +1334,33 @@ var Yi = o({
|
|
|
1333
1334
|
height: `${n.value}px`
|
|
1334
1335
|
}),
|
|
1335
1336
|
innerHTML: a.value
|
|
1336
|
-
}, null, 12,
|
|
1337
|
+
}, null, 12, na)) : i.value ? (c(), w("img", {
|
|
1337
1338
|
key: 1,
|
|
1338
1339
|
src: e.icon,
|
|
1339
1340
|
width: n.value,
|
|
1340
1341
|
height: n.value,
|
|
1341
1342
|
class: "tpl:inline-block",
|
|
1342
1343
|
alt: ""
|
|
1343
|
-
}, null, 8,
|
|
1344
|
+
}, null, 8, ra)) : (c(), A(D(ir), {
|
|
1344
1345
|
key: 2,
|
|
1345
1346
|
size: n.value,
|
|
1346
1347
|
"stroke-width": 1.5
|
|
1347
1348
|
}, null, 8, ["size"]));
|
|
1348
1349
|
}
|
|
1349
|
-
}),
|
|
1350
|
+
}), aa = { class: "tpl:w-full" }, oa = {
|
|
1350
1351
|
key: 0,
|
|
1351
1352
|
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)]"
|
|
1352
|
-
},
|
|
1353
|
+
}, sa = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ca = {
|
|
1353
1354
|
key: 1,
|
|
1354
1355
|
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)]"
|
|
1355
|
-
},
|
|
1356
|
+
}, la = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ua = {
|
|
1356
1357
|
key: 2,
|
|
1357
1358
|
class: "tpl:relative"
|
|
1358
|
-
},
|
|
1359
|
+
}, da = ["innerHTML"], fa = {
|
|
1359
1360
|
key: 0,
|
|
1360
1361
|
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]",
|
|
1361
1362
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
|
|
1362
|
-
},
|
|
1363
|
+
}, pa = /* @__PURE__ */ o({
|
|
1363
1364
|
__name: "CustomBlock",
|
|
1364
1365
|
props: {
|
|
1365
1366
|
block: {},
|
|
@@ -1367,7 +1368,7 @@ var Yi = o({
|
|
|
1367
1368
|
},
|
|
1368
1369
|
emits: ["fetchData"],
|
|
1369
1370
|
setup(e, { emit: t }) {
|
|
1370
|
-
let n = e, r = t, { t: i } = G(), a = g(
|
|
1371
|
+
let n = e, r = t, { t: i } = G(), a = g(ln, null), o = H(""), s = I(() => Zn(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 } = An({
|
|
1371
1372
|
definition: d,
|
|
1372
1373
|
block: p,
|
|
1373
1374
|
onUpdate: (e, t) => {
|
|
@@ -1376,10 +1377,10 @@ var Yi = o({
|
|
|
1376
1377
|
dataSourceFetched: t
|
|
1377
1378
|
});
|
|
1378
1379
|
}
|
|
1379
|
-
}), b = g(
|
|
1380
|
+
}), b = g(Rt, Ut), x = g(un, null), S = I(() => {
|
|
1380
1381
|
if (!x?.value) return n.block;
|
|
1381
1382
|
let e = {};
|
|
1382
|
-
for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ?
|
|
1383
|
+
for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ? Ie(r, b.value) : r;
|
|
1383
1384
|
return {
|
|
1384
1385
|
...n.block,
|
|
1385
1386
|
fieldValues: e
|
|
@@ -1403,10 +1404,10 @@ var Yi = o({
|
|
|
1403
1404
|
E();
|
|
1404
1405
|
}, { deep: !0 }), u(() => x?.value, () => {
|
|
1405
1406
|
E();
|
|
1406
|
-
}), (e, t) => (c(), w("div",
|
|
1407
|
+
}), (e, t) => (c(), w("div", aa, [f.value ? l.value ? (c(), w("div", ca, [W(D(lr), {
|
|
1407
1408
|
size: 24,
|
|
1408
1409
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
1409
|
-
}), N("span",
|
|
1410
|
+
}), N("span", la, P(D(i).customBlocks.renderError), 1)])) : (c(), w("div", ua, [N("div", { innerHTML: s.value }, null, 8, da), D(y) && D(v) ? (c(), w("div", fa, [D(m) ? (c(), A(_r, {
|
|
1410
1411
|
key: 1,
|
|
1411
1412
|
class: "tpl:w-48"
|
|
1412
1413
|
})) : (c(), w("button", {
|
|
@@ -1414,16 +1415,16 @@ var Yi = o({
|
|
|
1414
1415
|
type: "button",
|
|
1415
1416
|
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)]",
|
|
1416
1417
|
onClick: t[0] ||= M((...e) => D(_) && D(_)(...e), ["stop"])
|
|
1417
|
-
}, [d.value?.icon ? (c(), A(
|
|
1418
|
+
}, [d.value?.icon ? (c(), A(ia, {
|
|
1418
1419
|
key: 0,
|
|
1419
1420
|
icon: d.value.icon,
|
|
1420
1421
|
size: 16
|
|
1421
|
-
}, null, 8, ["icon"])) : k("", !0), T(" " + P(d.value?.dataSource?.label || D(i).customBlocks.dataSource.fetchButton), 1)]))])) : k("", !0)])) : (c(), w("div",
|
|
1422
|
+
}, null, 8, ["icon"])) : k("", !0), T(" " + P(d.value?.dataSource?.label || D(i).customBlocks.dataSource.fetchButton), 1)]))])) : k("", !0)])) : (c(), w("div", oa, [W(D(ar), {
|
|
1422
1423
|
size: 24,
|
|
1423
1424
|
class: "tpl:text-[var(--tpl-warning)]"
|
|
1424
|
-
}), N("span",
|
|
1425
|
+
}), N("span", sa, P(D(i).customBlocks.definitionNotFound), 1)]))]));
|
|
1425
1426
|
}
|
|
1426
|
-
}),
|
|
1427
|
+
}), ma = { class: "tpl:w-full" }, ha = /* @__PURE__ */ o({
|
|
1427
1428
|
__name: "DividerBlock",
|
|
1428
1429
|
props: {
|
|
1429
1430
|
block: {},
|
|
@@ -1435,28 +1436,28 @@ var Yi = o({
|
|
|
1435
1436
|
width: t.block.width === "full" ? "100%" : typeof t.block.width == "number" ? `${t.block.width}px` : t.block.width,
|
|
1436
1437
|
margin: t.block.width === "full" ? "0" : "0 auto"
|
|
1437
1438
|
}));
|
|
1438
|
-
return (e, t) => (c(), w("div",
|
|
1439
|
+
return (e, t) => (c(), w("div", ma, [N("hr", {
|
|
1439
1440
|
class: "tpl:m-0 tpl:border-none",
|
|
1440
1441
|
style: L(n.value)
|
|
1441
1442
|
}, null, 4)]));
|
|
1442
1443
|
}
|
|
1443
|
-
}),
|
|
1444
|
+
}), ga = { class: "tpl:w-full" }, _a = ["srcdoc", "title"], va = {
|
|
1444
1445
|
key: 1,
|
|
1445
1446
|
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)]"
|
|
1446
|
-
},
|
|
1447
|
+
}, ya = {
|
|
1447
1448
|
key: 0,
|
|
1448
1449
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
|
|
1449
|
-
},
|
|
1450
|
+
}, ba = {
|
|
1450
1451
|
key: 1,
|
|
1451
1452
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
1452
|
-
},
|
|
1453
|
+
}, xa = /* @__PURE__ */ o({
|
|
1453
1454
|
__name: "HtmlBlock",
|
|
1454
1455
|
props: {
|
|
1455
1456
|
block: {},
|
|
1456
1457
|
viewport: {}
|
|
1457
1458
|
},
|
|
1458
1459
|
setup(e) {
|
|
1459
|
-
let t = e, { t: n } = G(), r = g(
|
|
1460
|
+
let t = e, { t: n } = G(), r = g(Bt, !1), i = I(() => t.block.content.trim().length > 0), a = I(() => r && i.value), o = g(Rt, Ut), s = g(un, null), l = I(() => s?.value ? Ie(t.block.content, o.value) : t.block.content), d = H(null), f = H(60), p = null;
|
|
1460
1461
|
function h() {
|
|
1461
1462
|
let e = d.value?.contentDocument;
|
|
1462
1463
|
e && (f.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
|
|
@@ -1470,7 +1471,7 @@ var Yi = o({
|
|
|
1470
1471
|
e || (p?.disconnect(), p = null);
|
|
1471
1472
|
}), m(() => {
|
|
1472
1473
|
p?.disconnect(), p = null;
|
|
1473
|
-
}), (e, t) => (c(), w("div",
|
|
1474
|
+
}), (e, t) => (c(), w("div", ga, [a.value ? (c(), w("iframe", {
|
|
1474
1475
|
key: 0,
|
|
1475
1476
|
ref_key: "iframeRef",
|
|
1476
1477
|
ref: d,
|
|
@@ -1480,18 +1481,18 @@ var Yi = o({
|
|
|
1480
1481
|
class: "tpl:block tpl:w-full tpl:border-0",
|
|
1481
1482
|
style: L({ height: `${f.value}px` }),
|
|
1482
1483
|
onLoad: _
|
|
1483
|
-
}, null, 44,
|
|
1484
|
+
}, null, 44, _a)) : (c(), w("div", va, [W(D(er), {
|
|
1484
1485
|
size: 24,
|
|
1485
1486
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
1486
|
-
}), i.value ? (c(), w("span",
|
|
1487
|
+
}), i.value ? (c(), w("span", ya, P(D(n).html.preview), 1)) : (c(), w("span", ba, P(D(n).html.empty), 1))]))]));
|
|
1487
1488
|
}
|
|
1488
|
-
}),
|
|
1489
|
+
}), Sa = ["data-drop-enabled"], Ca = ["href"], wa = ["src", "alt"], Ta = ["src", "alt"], Ea = {
|
|
1489
1490
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
1490
1491
|
style: { opacity: "0.7" }
|
|
1491
|
-
},
|
|
1492
|
+
}, Da = ["href"], Oa = ["src", "alt"], ka = ["src", "alt"], Aa = {
|
|
1492
1493
|
key: 4,
|
|
1493
1494
|
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)]"
|
|
1494
|
-
},
|
|
1495
|
+
}, ja = ["aria-label"], Ma = { key: 1 }, Na = /* @__PURE__ */ o({
|
|
1495
1496
|
__name: "ImageBlock",
|
|
1496
1497
|
props: {
|
|
1497
1498
|
block: {},
|
|
@@ -1499,20 +1500,20 @@ var Yi = o({
|
|
|
1499
1500
|
},
|
|
1500
1501
|
emits: ["update"],
|
|
1501
1502
|
setup(e, { emit: t }) {
|
|
1502
|
-
let n = e, r = t, { t: i } = G(), { syntax: a } = K(), o = I(() =>
|
|
1503
|
+
let n = e, r = t, { t: i } = G(), { syntax: a } = K(), o = I(() => Ae(n.block.src, a));
|
|
1503
1504
|
function s(e) {
|
|
1504
1505
|
let t = {
|
|
1505
1506
|
src: e.url,
|
|
1506
|
-
...
|
|
1507
|
+
...Rn(Fn(e.width, e.height))
|
|
1507
1508
|
};
|
|
1508
1509
|
e.alt && (t.alt = e.alt), r("update", t);
|
|
1509
1510
|
}
|
|
1510
|
-
let l = H(), { canBrowse: u, dropEnabled: d, isUploading: f, showOverlay: p, openMediaBrowser: m } =
|
|
1511
|
+
let l = H(), { canBrowse: u, dropEnabled: d, isUploading: f, showOverlay: p, openMediaBrowser: m } = Hn({
|
|
1511
1512
|
target: l,
|
|
1512
1513
|
blocked: o,
|
|
1513
1514
|
apply: s
|
|
1514
1515
|
}), h = I(() => ({ textAlign: n.block.align })), g = I(() => {
|
|
1515
|
-
let e = n.block.border, t = ["left", "right"].map((t) =>
|
|
1516
|
+
let e = n.block.border, t = ["left", "right"].map((t) => Y(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
|
|
1516
1517
|
return t > 0 ? `calc(100% - ${t}px)` : "100%";
|
|
1517
1518
|
}), _ = I(() => {
|
|
1518
1519
|
let e = n.block.align;
|
|
@@ -1520,13 +1521,13 @@ var Yi = o({
|
|
|
1520
1521
|
maxWidth: "100%",
|
|
1521
1522
|
width: n.block.width === "full" ? g.value : `${n.block.width}px`,
|
|
1522
1523
|
height: n.block.height ? `${n.block.height}px` : void 0,
|
|
1523
|
-
borderRadius:
|
|
1524
|
-
...
|
|
1524
|
+
borderRadius: ve(n.block.borderRadius) ?? void 0,
|
|
1525
|
+
...Ki(n.block.border),
|
|
1525
1526
|
display: "block",
|
|
1526
1527
|
marginLeft: e === "center" || e === "right" ? "auto" : void 0,
|
|
1527
1528
|
marginRight: e === "center" ? "auto" : void 0
|
|
1528
1529
|
};
|
|
1529
|
-
}), v =
|
|
1530
|
+
}), v = Pn(() => o.value ? void 0 : n.block.src), y = Pn(() => o.value ? n.block.placeholderUrl : void 0);
|
|
1530
1531
|
return (t, n) => (c(), w("div", {
|
|
1531
1532
|
ref_key: "dropZoneRef",
|
|
1532
1533
|
ref: l,
|
|
@@ -1534,7 +1535,7 @@ var Yi = o({
|
|
|
1534
1535
|
"data-drop-enabled": D(d),
|
|
1535
1536
|
class: "tpl:relative tpl:w-full",
|
|
1536
1537
|
style: L(h.value)
|
|
1537
|
-
}, [D(p) ? (c(), A(
|
|
1538
|
+
}, [D(p) ? (c(), A(Ln, {
|
|
1538
1539
|
key: 0,
|
|
1539
1540
|
uploading: D(f),
|
|
1540
1541
|
size: "canvas"
|
|
@@ -1550,22 +1551,22 @@ var Yi = o({
|
|
|
1550
1551
|
src: D(y),
|
|
1551
1552
|
alt: e.block.alt || D(i).image.altTextPlaceholder,
|
|
1552
1553
|
style: L(_.value)
|
|
1553
|
-
}, null, 12,
|
|
1554
|
+
}, null, 12, wa)], 8, Ca)) : (c(), w("img", {
|
|
1554
1555
|
key: 1,
|
|
1555
1556
|
class: "tpl:border-0",
|
|
1556
1557
|
src: D(y),
|
|
1557
1558
|
alt: e.block.alt,
|
|
1558
1559
|
style: L(_.value)
|
|
1559
|
-
}, null, 12,
|
|
1560
|
+
}, null, 12, Ta))], 64)) : e.block.src && o.value ? (c(), w("div", {
|
|
1560
1561
|
key: 2,
|
|
1561
1562
|
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)]",
|
|
1562
1563
|
style: L([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, _.value])
|
|
1563
|
-
}, [W(D(
|
|
1564
|
+
}, [W(D(cr), {
|
|
1564
1565
|
size: 32,
|
|
1565
1566
|
"stroke-width": 1.5,
|
|
1566
1567
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
1567
1568
|
style: { opacity: "0.5" }
|
|
1568
|
-
}), N("span",
|
|
1569
|
+
}), N("span", Ea, [W($i, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (c(), w(U, { key: 3 }, [e.block.linkUrl ? (c(), w("a", {
|
|
1569
1570
|
key: 0,
|
|
1570
1571
|
href: e.block.linkUrl,
|
|
1571
1572
|
target: "_blank",
|
|
@@ -1577,33 +1578,33 @@ var Yi = o({
|
|
|
1577
1578
|
src: D(v),
|
|
1578
1579
|
alt: e.block.alt || D(i).image.altTextPlaceholder,
|
|
1579
1580
|
style: L(_.value)
|
|
1580
|
-
}, null, 12,
|
|
1581
|
+
}, null, 12, Oa)], 8, Da)) : (c(), w("img", {
|
|
1581
1582
|
key: 1,
|
|
1582
1583
|
class: "tpl:border-0",
|
|
1583
1584
|
src: D(v),
|
|
1584
1585
|
alt: e.block.alt,
|
|
1585
1586
|
style: L(_.value)
|
|
1586
|
-
}, null, 12,
|
|
1587
|
+
}, null, 12, ka))], 64)) : (c(), w("div", Aa, [D(u) ? (c(), w("button", {
|
|
1587
1588
|
key: 0,
|
|
1588
1589
|
"aria-label": D(i).image.browseMedia,
|
|
1589
1590
|
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)]",
|
|
1590
1591
|
onClick: n[2] ||= M((...e) => D(m) && D(m)(...e), ["stop"])
|
|
1591
|
-
}, [W(D(
|
|
1592
|
+
}, [W(D(cr), {
|
|
1592
1593
|
size: 14,
|
|
1593
1594
|
"stroke-width": 1.5
|
|
1594
|
-
}), T(" " + P(D(i).image.browseMedia), 1)], 8,
|
|
1595
|
+
}), T(" " + P(D(i).image.browseMedia), 1)], 8, ja)) : (c(), w("span", Ma, P(D(i).image.clickToAdd), 1))]))], 12, Sa));
|
|
1595
1596
|
}
|
|
1596
|
-
}),
|
|
1597
|
+
}), Pa = { class: "tpl:w-full" }, Fa = ["href"], Ia = {
|
|
1597
1598
|
key: 1,
|
|
1598
1599
|
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)]"
|
|
1599
|
-
},
|
|
1600
|
+
}, La = /* @__PURE__ */ o({
|
|
1600
1601
|
__name: "MenuBlock",
|
|
1601
1602
|
props: {
|
|
1602
1603
|
block: {},
|
|
1603
1604
|
viewport: {}
|
|
1604
1605
|
},
|
|
1605
1606
|
setup(e) {
|
|
1606
|
-
let t = e, { t: n } = G(), r =
|
|
1607
|
+
let t = e, { t: n } = G(), r = xn(Zt, "MenuBlock"), i = I(() => ({
|
|
1607
1608
|
display: "flex",
|
|
1608
1609
|
flexWrap: "wrap",
|
|
1609
1610
|
gap: `0 ${t.block.spacing}px`,
|
|
@@ -1615,7 +1616,7 @@ var Yi = o({
|
|
|
1615
1616
|
function o(e) {
|
|
1616
1617
|
return e || t.block.linkColor || t.block.color;
|
|
1617
1618
|
}
|
|
1618
|
-
return (t, r) => (c(), w("div",
|
|
1619
|
+
return (t, r) => (c(), w("div", Pa, [a.value ? (c(), w("div", {
|
|
1619
1620
|
key: 0,
|
|
1620
1621
|
style: L(i.value)
|
|
1621
1622
|
}, [(c(!0), w(U, null, p(e.block.items, (t, n) => (c(), w(U, { key: t.id }, [N("a", {
|
|
@@ -1627,49 +1628,49 @@ var Yi = o({
|
|
|
1627
1628
|
textDecoration: t.underline ? "underline" : "none"
|
|
1628
1629
|
}),
|
|
1629
1630
|
onClick: r[0] ||= M(() => {}, ["prevent"])
|
|
1630
|
-
}, [W(
|
|
1631
|
+
}, [W($i, { text: t.text || "..." }, null, 8, ["text"])], 12, Fa), n < e.block.items.length - 1 ? (c(), w("span", {
|
|
1631
1632
|
key: 0,
|
|
1632
1633
|
style: L({
|
|
1633
1634
|
color: e.block.separatorColor,
|
|
1634
1635
|
padding: `0 ${e.block.spacing}px`
|
|
1635
1636
|
})
|
|
1636
|
-
}, P(e.block.separator), 5)) : k("", !0)], 64))), 128))], 4)) : (c(), w("div",
|
|
1637
|
+
}, P(e.block.separator), 5)) : k("", !0)], 64))), 128))], 4)) : (c(), w("div", Ia, [W(D(sr), { size: 16 }), N("span", null, P(D(n).menu.addLinks), 1)]))]));
|
|
1637
1638
|
}
|
|
1638
1639
|
});
|
|
1639
1640
|
// src/composables/useEditableTextBlock.ts
|
|
1640
|
-
function
|
|
1641
|
-
let t = g(
|
|
1642
|
-
u(() =>
|
|
1643
|
-
e && (
|
|
1641
|
+
function Ra(e) {
|
|
1642
|
+
let t = g(Rt, Ut), r = g(un, null), i = g(tn, null), a = g(Kt, null), { syntax: o } = K(), s = I(() => r?.value ? qe(e(), t.value) : Ve(e(), t.value)), c = I(() => i?.value ? nt(e(), t.value, o) : ie(s.value, o)), l = I(() => Fe(Zn(c.value))), d = H(!1);
|
|
1643
|
+
u(() => a?.value, (e) => {
|
|
1644
|
+
e && (d.value = !1);
|
|
1644
1645
|
});
|
|
1645
|
-
let
|
|
1646
|
-
top:
|
|
1647
|
-
left:
|
|
1646
|
+
let f = H(null), { top: p, left: m } = n(f), { toLocal: h } = xt(), _ = I(() => h({
|
|
1647
|
+
top: p.value - 8,
|
|
1648
|
+
left: m.value
|
|
1648
1649
|
}));
|
|
1649
|
-
function
|
|
1650
|
-
|
|
1650
|
+
function v() {
|
|
1651
|
+
a?.value || (d.value = !0);
|
|
1651
1652
|
}
|
|
1652
|
-
function
|
|
1653
|
-
|
|
1653
|
+
function y() {
|
|
1654
|
+
d.value = !1;
|
|
1654
1655
|
}
|
|
1655
1656
|
return {
|
|
1656
|
-
isEditing:
|
|
1657
|
-
blockRef:
|
|
1658
|
-
toolbarPosition:
|
|
1659
|
-
resolvedContent:
|
|
1660
|
-
handleDoubleClick:
|
|
1661
|
-
handleEditorDone:
|
|
1657
|
+
isEditing: d,
|
|
1658
|
+
blockRef: f,
|
|
1659
|
+
toolbarPosition: _,
|
|
1660
|
+
resolvedContent: l,
|
|
1661
|
+
handleDoubleClick: v,
|
|
1662
|
+
handleEditorDone: y
|
|
1662
1663
|
};
|
|
1663
1664
|
}
|
|
1664
1665
|
// src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
|
|
1665
|
-
var
|
|
1666
|
+
var za = ["innerHTML"], Ba = /* @__PURE__ */ o({
|
|
1666
1667
|
__name: "ParagraphBlock",
|
|
1667
1668
|
props: {
|
|
1668
1669
|
block: {},
|
|
1669
1670
|
viewport: {}
|
|
1670
1671
|
},
|
|
1671
1672
|
setup(e) {
|
|
1672
|
-
let t = e, n = b(() => import("./ParagraphEditor-
|
|
1673
|
+
let t = e, n = b(() => import("./ParagraphEditor-DAQUWqQJ.js").then((e) => e.t)), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: l } = Ra(() => t.block.content);
|
|
1673
1674
|
return (t, u) => (c(), w("div", {
|
|
1674
1675
|
ref_key: "blockRef",
|
|
1675
1676
|
ref: i,
|
|
@@ -1688,11 +1689,11 @@ var Fa = ["innerHTML"], Ia = /* @__PURE__ */ o({
|
|
|
1688
1689
|
key: 1,
|
|
1689
1690
|
class: "tpl-text-content tpl:outline-none",
|
|
1690
1691
|
innerHTML: D(o)
|
|
1691
|
-
}, null, 8,
|
|
1692
|
+
}, null, 8, za))], 544));
|
|
1692
1693
|
}
|
|
1693
1694
|
});
|
|
1694
1695
|
// src/utils/updateBlockList.ts
|
|
1695
|
-
function
|
|
1696
|
+
function Va(e, t, n, r = 0, i) {
|
|
1696
1697
|
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);
|
|
1697
1698
|
if (o.some((e) => !s.includes(e.id))) return;
|
|
1698
1699
|
let c = t.filter((e) => !o.some((t) => t.id === e.id)), l, u = -1;
|
|
@@ -1705,19 +1706,19 @@ function La(e, t, n, r = 0, i) {
|
|
|
1705
1706
|
l && (e.findBlockLocation(l.id) ? e.moveBlock(l.id, u, n, r) : e.addBlock(JSON.parse(JSON.stringify(l)), n, r, u));
|
|
1706
1707
|
}
|
|
1707
1708
|
// src/utils/mergeTagTokens.ts
|
|
1708
|
-
function
|
|
1709
|
+
function Ha(e, t, n) {
|
|
1709
1710
|
let r = [], i = "\0MT";
|
|
1710
1711
|
for (; e.includes(i);) i += "_";
|
|
1711
|
-
let a = n === "html" ?
|
|
1712
|
+
let a = n === "html" ? ze(e, (e) => {
|
|
1712
1713
|
let t = r.push(e) - 1;
|
|
1713
1714
|
return `${i}${t}\u0000`;
|
|
1714
1715
|
}) : e, o = Array.from(a.matchAll(RegExp(`${i}\\d+\u0000`, "g")), (e) => ({
|
|
1715
1716
|
start: e.index,
|
|
1716
1717
|
end: e.index + e[0].length
|
|
1717
|
-
})), s = [], c =
|
|
1718
|
+
})), s = [], c = at(a, t, "logic"), l = [], u = 0;
|
|
1718
1719
|
for (let e of ["logic", "value"]) {
|
|
1719
1720
|
let r = 0;
|
|
1720
|
-
for (let i of e === "logic" ? c :
|
|
1721
|
+
for (let i of e === "logic" ? c : at(a, t, "value")) {
|
|
1721
1722
|
let t = i.index, a = t + i.value.length;
|
|
1722
1723
|
for (; o[r]?.end <= t;) r++;
|
|
1723
1724
|
let c = o[r];
|
|
@@ -1733,51 +1734,51 @@ function Ra(e, t, n) {
|
|
|
1733
1734
|
}), s.push({
|
|
1734
1735
|
start: t,
|
|
1735
1736
|
end: a,
|
|
1736
|
-
value: n === "html" ?
|
|
1737
|
+
value: n === "html" ? Qe(i.value) : i.value
|
|
1737
1738
|
});
|
|
1738
1739
|
}
|
|
1739
1740
|
}
|
|
1740
1741
|
}
|
|
1741
1742
|
return [...r, ...s.map((e) => e.value)].sort();
|
|
1742
1743
|
}
|
|
1743
|
-
function
|
|
1744
|
-
return JSON.stringify(
|
|
1744
|
+
function Ua(e, t, n, r) {
|
|
1745
|
+
return JSON.stringify(Ha(e, n, r)) !== JSON.stringify(Ha(t, n, r));
|
|
1745
1746
|
}
|
|
1746
1747
|
// src/components/localization/LocaleStatusChip.vue?vue&type=script&setup=true&lang.ts
|
|
1747
|
-
var
|
|
1748
|
+
var Wa = [
|
|
1748
1749
|
"data-state",
|
|
1749
1750
|
"aria-label",
|
|
1750
1751
|
"title",
|
|
1751
1752
|
"aria-expanded",
|
|
1752
1753
|
"aria-controls",
|
|
1753
1754
|
"onKeydown"
|
|
1754
|
-
],
|
|
1755
|
+
], Ga = [
|
|
1755
1756
|
"aria-label",
|
|
1756
1757
|
"aria-labelledby",
|
|
1757
1758
|
"aria-describedby",
|
|
1758
1759
|
"onKeydown"
|
|
1759
|
-
],
|
|
1760
|
+
], Ka = ["id"], qa = ["id"], Ja = { class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, Ya = ["disabled"], Xa = {
|
|
1760
1761
|
key: 0,
|
|
1761
1762
|
class: "tpl:m-0 tpl:mb-2 tpl:text-xs tpl:font-medium"
|
|
1762
|
-
},
|
|
1763
|
+
}, Za = {
|
|
1763
1764
|
key: 1,
|
|
1764
1765
|
class: "tpl:m-0"
|
|
1765
|
-
},
|
|
1766
|
+
}, Qa = { class: "tpl:m-0" }, $a = { class: "tpl:mt-2 tpl:mb-0 tpl:break-words tpl:text-[var(--tpl-chrome-text-muted)]" }, eo = {
|
|
1766
1767
|
key: 3,
|
|
1767
1768
|
class: "tpl:m-0"
|
|
1768
|
-
},
|
|
1769
|
+
}, to = {
|
|
1769
1770
|
key: 4,
|
|
1770
1771
|
class: "tpl:m-0"
|
|
1771
|
-
},
|
|
1772
|
+
}, no = {
|
|
1772
1773
|
key: 5,
|
|
1773
1774
|
class: "tpl:m-0"
|
|
1774
|
-
},
|
|
1775
|
+
}, ro = {
|
|
1775
1776
|
key: 6,
|
|
1776
1777
|
class: "tpl:m-0 tpl:list-none tpl:p-0"
|
|
1777
|
-
},
|
|
1778
|
+
}, io = ["onClick"], ao = {
|
|
1778
1779
|
key: 7,
|
|
1779
1780
|
class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:gap-1"
|
|
1780
|
-
},
|
|
1781
|
+
}, oo = ["data-testid", "disabled"], so = /*#__PURE__*/ Cr(/* @__PURE__ */ o({
|
|
1781
1782
|
__name: "LocaleStatusChip",
|
|
1782
1783
|
props: {
|
|
1783
1784
|
blockId: {},
|
|
@@ -1797,24 +1798,24 @@ var Ba = [
|
|
|
1797
1798
|
},
|
|
1798
1799
|
emits: ["target"],
|
|
1799
1800
|
setup(e, { emit: t }) {
|
|
1800
|
-
let n = e, r = t, i = g(
|
|
1801
|
+
let n = e, r = t, i = g(Sn, null), o = g(pn, null), s = g(Dt, null), l = g(yn, "en") ?? "en", { t: d, format: f } = G(), m = te(), h = yt(), { toLocal: v } = xt(), y = H(null), b = H(null), x = H(!1), S = H(!1), C = H(null), T = H(null), F = null, R = H({
|
|
1801
1802
|
top: 0,
|
|
1802
1803
|
left: 0
|
|
1803
1804
|
}), z = H({
|
|
1804
1805
|
maxHeight: 0,
|
|
1805
1806
|
maxWidth: 0
|
|
1806
|
-
}), B = `tpl-locale-popover-${
|
|
1807
|
+
}), B = `tpl-locale-popover-${fe()}`, V = I(() => vr(i?.activeLocale?.value ?? "")), W = I(() => vr(i?.content.value.settings.locale ?? "en"));
|
|
1807
1808
|
function K(e, t) {
|
|
1808
1809
|
switch (e) {
|
|
1809
1810
|
case "tags-differ": return d.localization.tagsDiffer;
|
|
1810
1811
|
case "hidden": return f(d.localization.hidden, { language: V.value });
|
|
1811
1812
|
case "changed": return f(d.localization.changed, { language: V.value });
|
|
1812
|
-
case "default-stale": return
|
|
1813
|
-
case "missing": return t === 1 ? d.localization.notTranslated :
|
|
1814
|
-
default: return t === 1 ? d.localization.outOfDate :
|
|
1813
|
+
case "default-stale": return yr(d.localization.staleLanguages, t, l);
|
|
1814
|
+
case "missing": return t === 1 ? d.localization.notTranslated : yr(d.localization.notTranslatedCount, t, l);
|
|
1815
|
+
default: return t === 1 ? d.localization.outOfDate : yr(d.localization.staleCount, t, l);
|
|
1815
1816
|
}
|
|
1816
1817
|
}
|
|
1817
|
-
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" ?
|
|
1818
|
+
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" ? nr : n.state === "changed" ? $n : n.state === "default-stale" ? fr : n.state === "stale" ? tr : lr), ae = I(() => q.value === "default-stale" || (q.value === "missing" || q.value === "stale") && J.value > 1), Y = I(() => n.editable && n.eligibleGaps && o?.isAvailable.value);
|
|
1818
1819
|
function X(e = !1) {
|
|
1819
1820
|
x.value = !1, S.value = !1, F = null, e && y.value?.focus({ preventScroll: !0 });
|
|
1820
1821
|
}
|
|
@@ -1875,10 +1876,10 @@ var Ba = [
|
|
|
1875
1876
|
}, { immediate: !0 }), _(() => {
|
|
1876
1877
|
s?.get(n.blockId) === le && s.delete(n.blockId);
|
|
1877
1878
|
});
|
|
1878
|
-
function
|
|
1879
|
+
function ue() {
|
|
1879
1880
|
i?.keepTranslations?.(n.blockId, n.stale), X(!0);
|
|
1880
1881
|
}
|
|
1881
|
-
function
|
|
1882
|
+
function de(e) {
|
|
1882
1883
|
i?.resetLocaleFields?.(n.blockId, e), X(!0);
|
|
1883
1884
|
}
|
|
1884
1885
|
function pe() {
|
|
@@ -1923,7 +1924,7 @@ var Ba = [
|
|
|
1923
1924
|
size: 12,
|
|
1924
1925
|
"stroke-width": 2,
|
|
1925
1926
|
"aria-hidden": "true"
|
|
1926
|
-
}))], 40,
|
|
1927
|
+
}))], 40, Wa), D(h) && x.value ? (c(), A(ee, {
|
|
1927
1928
|
key: 0,
|
|
1928
1929
|
to: D(h)
|
|
1929
1930
|
}, [N("div", {
|
|
@@ -1949,80 +1950,80 @@ var Ba = [
|
|
|
1949
1950
|
N("h3", {
|
|
1950
1951
|
id: `${B}-question`,
|
|
1951
1952
|
class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
1952
|
-
}, P(D(
|
|
1953
|
+
}, P(D(yr)(D(d).localization.translationConfirmation, e.translationCount ?? 0, D(l))), 9, Ka),
|
|
1953
1954
|
N("p", {
|
|
1954
1955
|
id: `${B}-warning`,
|
|
1955
1956
|
class: "tpl:m-0 tpl:text-[var(--tpl-text-muted)]"
|
|
1956
|
-
}, P(D(f)(D(d).localization.translationDescription, { language: V.value })), 9,
|
|
1957
|
-
N("div",
|
|
1957
|
+
}, P(D(f)(D(d).localization.translationDescription, { language: V.value })), 9, qa),
|
|
1958
|
+
N("div", Ja, [N("button", {
|
|
1958
1959
|
ref_key: "confirmationCancel",
|
|
1959
1960
|
ref: T,
|
|
1960
1961
|
type: "button",
|
|
1961
1962
|
"data-testid": "translation-confirm-cancel",
|
|
1962
|
-
class: O(D(
|
|
1963
|
+
class: O(D(xr)),
|
|
1963
1964
|
onClick: ge
|
|
1964
1965
|
}, P(D(d).localization.cancel), 3), N("button", {
|
|
1965
1966
|
type: "button",
|
|
1966
1967
|
"data-testid": "translation-confirm",
|
|
1967
|
-
class: O(D(
|
|
1968
|
+
class: O(D(Sr)),
|
|
1968
1969
|
disabled: !Y.value || !!D(o)?.running.value || !e.translationCount,
|
|
1969
1970
|
onClick: ve
|
|
1970
|
-
}, P(D(
|
|
1971
|
+
}, P(D(yr)(D(d).localization.translateAllFields, e.translationCount ?? 0, D(l))), 11, Ya)])
|
|
1971
1972
|
], 64)) : (c(), w(U, { key: 1 }, [
|
|
1972
|
-
ae.value ? (c(), w("p",
|
|
1973
|
-
q.value === "missing" ? (c(), w("p",
|
|
1973
|
+
ae.value ? (c(), w("p", Xa, P(re.value), 1)) : k("", !0),
|
|
1974
|
+
q.value === "missing" ? (c(), w("p", Za, P(D(f)(D(d).localization.missingExplanation, { default: W.value })), 1)) : q.value === "stale" ? (c(), w(U, { key: 2 }, [N("p", Qa, P(D(f)(D(d).localization.staleExplanation, { default: W.value })), 1), N("p", $a, P(D(f)(D(d).localization.currentExcerpt, { excerpt: e.excerpt })), 1)], 64)) : q.value === "tags-differ" ? (c(), w("p", eo, P(D(f)(D(d).localization.tagsDifferExplanation, { default: W.value })), 1)) : q.value === "changed" ? (c(), w("p", to, P(D(yr)(D(d).localization.changedProperties, J.value, D(l), { default: W.value })), 1)) : q.value === "hidden" ? (c(), w("p", no, P(D(f)(D(d).localization.hiddenExplanation, { language: V.value })), 1)) : (c(), w("ul", ro, [(c(!0), w(U, null, p(e.staleLocales, (e) => (c(), w("li", {
|
|
1974
1975
|
key: e,
|
|
1975
1976
|
class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3"
|
|
1976
|
-
}, [N("span", null, P(D(
|
|
1977
|
+
}, [N("span", null, P(D(vr)(e)), 1), N("button", {
|
|
1977
1978
|
type: "button",
|
|
1978
|
-
class: O(D(
|
|
1979
|
+
class: O(D(br)),
|
|
1979
1980
|
onClick: (t) => me(e)
|
|
1980
|
-
}, P(D(d).localization.open), 11,
|
|
1981
|
-
e.editable && q.value !== "default-stale" ? (c(), w("div",
|
|
1981
|
+
}, P(D(d).localization.open), 11, io)]))), 128))])),
|
|
1982
|
+
e.editable && q.value !== "default-stale" ? (c(), w("div", ao, [
|
|
1982
1983
|
Y.value && (q.value === "missing" || q.value === "stale" || q.value === "tags-differ") ? (c(), w("button", {
|
|
1983
1984
|
key: 0,
|
|
1984
1985
|
type: "button",
|
|
1985
1986
|
ref_key: "retranslate",
|
|
1986
1987
|
ref: C,
|
|
1987
1988
|
"data-testid": q.value === "missing" ? "locale-translate" : "locale-retranslate",
|
|
1988
|
-
class: O(D(
|
|
1989
|
+
class: O(D(xr)),
|
|
1989
1990
|
disabled: !!D(o)?.running.value,
|
|
1990
1991
|
onClick: he
|
|
1991
|
-
}, P(q.value === "missing" ? D(d).localization.translate : D(d).localization.retranslate), 11,
|
|
1992
|
+
}, P(q.value === "missing" ? D(d).localization.translate : D(d).localization.retranslate), 11, oo)) : k("", !0),
|
|
1992
1993
|
q.value === "stale" || q.value === "tags-differ" ? (c(), w(U, { key: 1 }, [q.value === "stale" ? (c(), w("button", {
|
|
1993
1994
|
key: 0,
|
|
1994
1995
|
type: "button",
|
|
1995
1996
|
"data-testid": "locale-keep",
|
|
1996
|
-
class: O(D(Y.value ?
|
|
1997
|
-
onClick:
|
|
1997
|
+
class: O(D(Y.value ? br : xr)),
|
|
1998
|
+
onClick: ue
|
|
1998
1999
|
}, P(D(d).localization.keep), 3)) : k("", !0), N("button", {
|
|
1999
2000
|
type: "button",
|
|
2000
2001
|
"data-testid": "locale-use-default",
|
|
2001
|
-
class: O(D(q.value === "tags-differ" && !Y.value ?
|
|
2002
|
-
onClick: n[0] ||= (t) =>
|
|
2002
|
+
class: O(D(q.value === "tags-differ" && !Y.value ? xr : br)),
|
|
2003
|
+
onClick: n[0] ||= (t) => de(q.value === "tags-differ" ? e.tagsDiffer ?? [] : e.stale)
|
|
2003
2004
|
}, P(D(f)(D(d).localization.useDefaultLanguage, { default: W.value })), 3)], 64)) : k("", !0),
|
|
2004
2005
|
q.value === "changed" ? (c(), w("button", {
|
|
2005
2006
|
key: 2,
|
|
2006
2007
|
type: "button",
|
|
2007
2008
|
"data-testid": "locale-reset",
|
|
2008
|
-
class: O(D(
|
|
2009
|
-
onClick: n[1] ||= (t) =>
|
|
2009
|
+
class: O(D(xr)),
|
|
2010
|
+
onClick: n[1] ||= (t) => de(e.setPaths)
|
|
2010
2011
|
}, P(D(d).localization.resetChanges), 3)) : k("", !0),
|
|
2011
2012
|
q.value === "hidden" ? (c(), w("button", {
|
|
2012
2013
|
key: 3,
|
|
2013
2014
|
type: "button",
|
|
2014
2015
|
"data-testid": "locale-show",
|
|
2015
|
-
class: O(D(
|
|
2016
|
+
class: O(D(xr)),
|
|
2016
2017
|
onClick: pe
|
|
2017
2018
|
}, P(D(d).localization.show), 3)) : k("", !0)
|
|
2018
2019
|
])) : k("", !0)
|
|
2019
|
-
], 64))], 44,
|
|
2020
|
+
], 64))], 44, Ga)], 8, ["to"])) : k("", !0)], 64));
|
|
2020
2021
|
}
|
|
2021
|
-
}), [["__scopeId", "data-v-3343ae7d"]]),
|
|
2022
|
+
}), [["__scopeId", "data-v-3343ae7d"]]), co = /* @__PURE__ */ o({
|
|
2022
2023
|
__name: "LocaleMarkers",
|
|
2023
2024
|
props: { block: {} },
|
|
2024
2025
|
setup(e) {
|
|
2025
|
-
let t = e, n = g(
|
|
2026
|
+
let t = e, n = g(Sn, null), r = g(Lt, void 0), i = g(rn, []), a = g(Tt, de.liquid), o = g(an, I(() => /* @__PURE__ */ new Set())), s = I(() => n?.activeLocale?.value), l = I(() => s.value ? t.block.l10n?.[s.value] : void 0), d = I(() => ({
|
|
2026
2027
|
blocks: [t.block.type === "section" || t.block.type === "wrapper" ? {
|
|
2027
2028
|
...t.block,
|
|
2028
2029
|
children: []
|
|
@@ -2031,13 +2032,13 @@ var Ba = [
|
|
|
2031
2032
|
locale: n.content.value.settings.locale,
|
|
2032
2033
|
locales: n.content.value.settings.locales
|
|
2033
2034
|
}
|
|
2034
|
-
})), f = I(() => n && s.value && !o.value.has(s.value) ?
|
|
2035
|
+
})), f = I(() => n && s.value && !o.value.has(s.value) ? Ze(d.value, s.value, i) : {
|
|
2035
2036
|
missing: [],
|
|
2036
2037
|
stale: [],
|
|
2037
2038
|
translated: []
|
|
2038
2039
|
}), p = I(() => f.value.stale.map((e) => e.slice(t.block.id.length + 1))), m = I(() => f.value.translated.flatMap((e) => {
|
|
2039
|
-
let n = e.slice(t.block.id.length + 1), r =
|
|
2040
|
-
return typeof r == "string" && i !== void 0 &&
|
|
2040
|
+
let n = e.slice(t.block.id.length + 1), r = $e(t.block, n), i = l.value?.text?.[n]?.value, o = t.block.type === "html" || Te[t.block.type]?.includes(n) ? "html" : "text";
|
|
2041
|
+
return typeof r == "string" && i !== void 0 && Ua(r, i, a, o) ? [n] : [];
|
|
2041
2042
|
})), h = H(null), _ = I(() => n && s.value && !o.value.has(s.value) ? X(d.value, s.value, {
|
|
2042
2043
|
syntax: a,
|
|
2043
2044
|
definitions: i,
|
|
@@ -2048,9 +2049,9 @@ var Ba = [
|
|
|
2048
2049
|
let n = e.slice(t.block.id.length + 1);
|
|
2049
2050
|
return f.value.translated.includes(e) && !m.value.includes(n);
|
|
2050
2051
|
})), y = I(() => Object.keys(l.value?.set ?? {}).filter((e) => {
|
|
2051
|
-
let n = e.split("."), r = n.pop(), i = n.length ?
|
|
2052
|
-
return Array.isArray(i) ?
|
|
2053
|
-
})), b = I(() => !s.value && n ? (n.content.value.settings.locales ?? []).filter((e) => !o.value.has(e) &&
|
|
2052
|
+
let n = e.split("."), r = n.pop(), i = n.length ? $e(t.block, n.join(".")) : t.block;
|
|
2053
|
+
return Array.isArray(i) ? $e(i, r) !== void 0 : i !== void 0;
|
|
2054
|
+
})), b = I(() => !s.value && n ? (n.content.value.settings.locales ?? []).filter((e) => !o.value.has(e) && Ze(d.value, e, i).stale.length > 0) : []), x = I(() => s.value ? o.value.has(s.value) ? null : l.value?.hidden ? "hidden" : f.value.missing.length ? "missing" : p.value.length ? "stale" : m.value.length ? "tags-differ" : y.value.length ? "changed" : null : b.value.length ? "default-stale" : null);
|
|
2054
2055
|
function S(e) {
|
|
2055
2056
|
return e === "missing" ? f.value.missing.length : e === "stale" ? p.value.length : e === "tags-differ" ? m.value.length : e === "default-stale" ? b.value.length : y.value.length;
|
|
2056
2057
|
}
|
|
@@ -2059,12 +2060,12 @@ var Ba = [
|
|
|
2059
2060
|
h.value = null;
|
|
2060
2061
|
});
|
|
2061
2062
|
let E = I(() => {
|
|
2062
|
-
let e =
|
|
2063
|
+
let e = $e(t.block, p.value[0] ?? "");
|
|
2063
2064
|
if (typeof e != "string") return "";
|
|
2064
2065
|
let n = e.split(/<[^>]*>/).join("");
|
|
2065
2066
|
return Array.from(n).slice(0, 60).join("");
|
|
2066
2067
|
});
|
|
2067
|
-
return (t, n) => D(r) && x.value ? (c(), A(
|
|
2068
|
+
return (t, n) => D(r) && x.value ? (c(), A(so, {
|
|
2068
2069
|
key: 0,
|
|
2069
2070
|
"block-id": e.block.id,
|
|
2070
2071
|
state: x.value,
|
|
@@ -2098,21 +2099,21 @@ var Ba = [
|
|
|
2098
2099
|
"editable"
|
|
2099
2100
|
])) : k("", !0);
|
|
2100
2101
|
}
|
|
2101
|
-
}),
|
|
2102
|
+
}), lo = [
|
|
2102
2103
|
"data-block-id",
|
|
2103
2104
|
"data-block-type",
|
|
2104
2105
|
"data-tpl-picked"
|
|
2105
|
-
],
|
|
2106
|
+
], uo = ["aria-label"], fo = ["data-lock-holder"], po = ["aria-label"], mo = [
|
|
2106
2107
|
"aria-label",
|
|
2107
2108
|
"aria-pressed",
|
|
2108
2109
|
"title"
|
|
2109
|
-
],
|
|
2110
|
+
], ho = ["aria-label", "title"], go = ["aria-label", "title"], _o = ["aria-label", "title"], vo = {
|
|
2110
2111
|
key: 3,
|
|
2111
2112
|
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"
|
|
2112
|
-
},
|
|
2113
|
+
}, yo = { 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)]" }, bo = {
|
|
2113
2114
|
key: 4,
|
|
2114
2115
|
class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
|
|
2115
|
-
},
|
|
2116
|
+
}, xo = ["aria-label", "title"], So = /*#__PURE__*/ Cr(/* @__PURE__ */ o({
|
|
2116
2117
|
__name: "BlockWrapper",
|
|
2117
2118
|
props: {
|
|
2118
2119
|
block: {},
|
|
@@ -2125,7 +2126,7 @@ var Ba = [
|
|
|
2125
2126
|
},
|
|
2126
2127
|
emits: ["select"],
|
|
2127
2128
|
setup(t, { emit: n }) {
|
|
2128
|
-
let i = b(() => import("./BlockIssueBadge-
|
|
2129
|
+
let i = b(() => import("./BlockIssueBadge-B3CTTvgw.js")), a = t, o = I(() => a.displayBlock ?? a.block), s = n, { t: l, format: d } = G(), f = g(Cn, 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);
|
|
2129
2130
|
async function _() {
|
|
2130
2131
|
await j(), p.value?.focus();
|
|
2131
2132
|
}
|
|
@@ -2135,7 +2136,7 @@ var Ba = [
|
|
|
2135
2136
|
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 ? {
|
|
2136
2137
|
desktop: l.viewport.desktop,
|
|
2137
2138
|
mobile: l.viewport.mobile
|
|
2138
|
-
}[a.viewport] ?? a.viewport : ""), F = I(() => !!o.value.displayCondition), R = g(
|
|
2139
|
+
}[a.viewport] ?? a.viewport : ""), F = I(() => !!o.value.displayCondition), R = g(vn, null), z = g(dn, null), B = g(en, {}), 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({
|
|
2139
2140
|
left: "calc(100% + 8px)",
|
|
2140
2141
|
top: "50%"
|
|
2141
2142
|
}), ae = H(!1), Y = I(() => q.value ?? re.value), X = I(() => Y.value?.closest(".tpl-body"));
|
|
@@ -2175,15 +2176,15 @@ var Ba = [
|
|
|
2175
2176
|
re.value,
|
|
2176
2177
|
X.value
|
|
2177
2178
|
].filter((e) => !!e) : []), Z), e(X, "scroll", Z, { passive: !0 });
|
|
2178
|
-
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 =
|
|
2179
|
-
u([() => ue?.activeLocale?.value, () => de &&
|
|
2180
|
-
let pe = g(
|
|
2179
|
+
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 = Wn(() => o.value.type === "section" ? o.value.backgroundImage : void 0), le = Wn(() => o.value.type === "section" ? o.value.wrapper?.backgroundImage : void 0), ue = g(Sn, null), de = ue ? St(ue) : null, fe = g(cn, null) ?? de?.content ?? null;
|
|
2180
|
+
u([() => ue?.activeLocale?.value, () => de && He(de.settings.value)], Z, { flush: "post" });
|
|
2181
|
+
let pe = g(Vt, void 0), me = I(() => Wi(o.value, {
|
|
2181
2182
|
backgroundImageUrl: ce.value,
|
|
2182
|
-
heroBoxWidth:
|
|
2183
|
-
})), he = I(() =>
|
|
2183
|
+
heroBoxWidth: In(o.value) ? Bn(o.value, fe?.value, pe) : void 0
|
|
2184
|
+
})), he = I(() => Xi(o.value, { backgroundImageUrl: le.value })), ge = I(() => {
|
|
2184
2185
|
let e = o.value;
|
|
2185
2186
|
return e.type === "section" && e.wrapper?.fullWidth === !0 ? e : void 0;
|
|
2186
|
-
}), _e = I(() =>
|
|
2187
|
+
}), _e = I(() => Yi(ge.value?.wrapper?.padding));
|
|
2187
2188
|
function ve(e) {
|
|
2188
2189
|
a.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), s("select"));
|
|
2189
2190
|
}
|
|
@@ -2227,12 +2228,12 @@ var Ba = [
|
|
|
2227
2228
|
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"]),
|
|
2228
2229
|
"aria-label": D(d)(D(l).blockActions.comments, { count: String(K.value) }),
|
|
2229
2230
|
onClick: n[0] ||= M((e) => D(B).comments?.openForBlock(t.block.id), ["stop"])
|
|
2230
|
-
}, [W(D(
|
|
2231
|
+
}, [W(D(pr), {
|
|
2231
2232
|
size: 12,
|
|
2232
2233
|
"stroke-width": 2.5
|
|
2233
|
-
}), T(" " + P(K.value), 1)], 10,
|
|
2234
|
+
}), T(" " + P(K.value), 1)], 10, uo)) : k("", !0),
|
|
2234
2235
|
W(D(i), { "block-id": t.block.id }, null, 8, ["block-id"]),
|
|
2235
|
-
t.previewMode ? k("", !0) : (c(), A(
|
|
2236
|
+
t.previewMode ? k("", !0) : (c(), A(co, {
|
|
2236
2237
|
key: 1,
|
|
2237
2238
|
block: t.block
|
|
2238
2239
|
}, null, 8, ["block"]))
|
|
@@ -2250,9 +2251,9 @@ var Ba = [
|
|
|
2250
2251
|
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",
|
|
2251
2252
|
style: L({
|
|
2252
2253
|
backgroundColor: Q.value.holder.color,
|
|
2253
|
-
color: D(
|
|
2254
|
+
color: D(wr)(Q.value.holder.color)
|
|
2254
2255
|
})
|
|
2255
|
-
}, P(D(d)(D(l).collaboration.editing, { name: oe.value })), 5)], 12,
|
|
2256
|
+
}, P(D(d)(D(l).collaboration.editing, { name: oe.value })), 5)], 12, fo)) : k("", !0),
|
|
2256
2257
|
se.value === null ? k("", !0) : (c(), w("div", {
|
|
2257
2258
|
key: se.value,
|
|
2258
2259
|
"data-testid": "block-agent-highlight",
|
|
@@ -2277,81 +2278,81 @@ var Ba = [
|
|
|
2277
2278
|
"aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
|
|
2278
2279
|
title: D(l).blockActions.drag,
|
|
2279
2280
|
onKeydown: v
|
|
2280
|
-
}, [W(D(
|
|
2281
|
+
}, [W(D(gr), {
|
|
2281
2282
|
size: 14,
|
|
2282
2283
|
"stroke-width": 1.5
|
|
2283
|
-
})], 40,
|
|
2284
|
+
})], 40, mo),
|
|
2284
2285
|
N("button", {
|
|
2285
2286
|
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",
|
|
2286
2287
|
"aria-label": D(l).blockActions.duplicate,
|
|
2287
2288
|
title: D(l).blockActions.duplicate,
|
|
2288
2289
|
onClick: M(be, ["stop"])
|
|
2289
|
-
}, [W(D(
|
|
2290
|
+
}, [W(D(Qn), {
|
|
2290
2291
|
size: 14,
|
|
2291
2292
|
"stroke-width": 1.5
|
|
2292
|
-
})], 8,
|
|
2293
|
+
})], 8, ho),
|
|
2293
2294
|
U.value ? (c(), w("button", {
|
|
2294
2295
|
key: 0,
|
|
2295
2296
|
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",
|
|
2296
2297
|
"aria-label": D(l).blockActions.saveAsBlock,
|
|
2297
2298
|
title: D(l).blockActions.saveAsBlock,
|
|
2298
2299
|
onClick: M(xe, ["stop"])
|
|
2299
|
-
}, [W(D(
|
|
2300
|
+
}, [W(D(or), {
|
|
2300
2301
|
size: 14,
|
|
2301
2302
|
"stroke-width": 1.5
|
|
2302
|
-
})], 8,
|
|
2303
|
+
})], 8, go)) : k("", !0),
|
|
2303
2304
|
N("button", {
|
|
2304
2305
|
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",
|
|
2305
2306
|
"aria-label": D(l).blockActions.delete,
|
|
2306
2307
|
title: D(l).blockActions.delete,
|
|
2307
2308
|
onClick: M(ye, ["stop"])
|
|
2308
|
-
}, [W(D(
|
|
2309
|
+
}, [W(D(ur), {
|
|
2309
2310
|
size: 14,
|
|
2310
2311
|
"stroke-width": 1.5
|
|
2311
|
-
})], 8,
|
|
2312
|
-
], 12,
|
|
2313
|
-
S.value ? (c(), w("div",
|
|
2312
|
+
})], 8, _o)
|
|
2313
|
+
], 12, po)) : k("", !0),
|
|
2314
|
+
S.value ? (c(), w("div", vo, [N("span", yo, [W(D(nr), {
|
|
2314
2315
|
size: 12,
|
|
2315
2316
|
"stroke-width": 1.5
|
|
2316
2317
|
}), T(" " + P(D(d)(D(l).blockActions.hiddenOnViewport, { viewport: ee.value })), 1)])])) : k("", !0),
|
|
2317
|
-
F.value && !S.value ? (c(), w("div",
|
|
2318
|
+
F.value && !S.value ? (c(), w("div", bo, [N("button", {
|
|
2318
2319
|
"data-testid": "condition-toggle",
|
|
2319
2320
|
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)]",
|
|
2320
2321
|
"aria-label": D(l).blockActions.conditionToggle,
|
|
2321
2322
|
title: t.block.displayCondition?.label,
|
|
2322
2323
|
onClick: M(Se, ["stop"])
|
|
2323
|
-
}, [W(D(
|
|
2324
|
+
}, [W(D(rr), {
|
|
2324
2325
|
size: 12,
|
|
2325
2326
|
"stroke-width": 2
|
|
2326
|
-
})], 8,
|
|
2327
|
+
})], 8, xo)])) : k("", !0),
|
|
2327
2328
|
he.value ? (c(), w("div", {
|
|
2328
2329
|
key: 5,
|
|
2329
|
-
class: O(["tpl-section-wrapper tpl-email-surface", D(
|
|
2330
|
+
class: O(["tpl-section-wrapper tpl-email-surface", D(Bi)(he.value)]),
|
|
2330
2331
|
style: L(he.value)
|
|
2331
2332
|
}, [ge.value ? (c(), w("div", {
|
|
2332
2333
|
key: 0,
|
|
2333
2334
|
class: "tpl-band-frame",
|
|
2334
2335
|
style: L(_e.value)
|
|
2335
2336
|
}, [N("div", {
|
|
2336
|
-
class: O(["tpl-block-content tpl-email-surface", D(
|
|
2337
|
+
class: O(["tpl-block-content tpl-email-surface", D(Bi)(me.value)]),
|
|
2337
2338
|
style: L(me.value)
|
|
2338
2339
|
}, [y(e.$slots, "default", {}, void 0, !0)], 6)], 4)) : (c(), w("div", {
|
|
2339
2340
|
key: 1,
|
|
2340
|
-
class: O(["tpl-block-content tpl-email-surface", D(
|
|
2341
|
+
class: O(["tpl-block-content tpl-email-surface", D(Bi)(me.value)]),
|
|
2341
2342
|
style: L(me.value)
|
|
2342
2343
|
}, [y(e.$slots, "default", {}, void 0, !0)], 6))], 6)) : (c(), w("div", {
|
|
2343
2344
|
key: 6,
|
|
2344
|
-
class: O(["tpl-block-content tpl-email-surface", D(
|
|
2345
|
+
class: O(["tpl-block-content tpl-email-surface", D(Bi)(me.value)]),
|
|
2345
2346
|
style: L(me.value)
|
|
2346
2347
|
}, [y(e.$slots, "default", {}, void 0, !0)], 6))
|
|
2347
|
-
], 10,
|
|
2348
|
+
], 10, lo));
|
|
2348
2349
|
}
|
|
2349
2350
|
}), [["__scopeId", "data-v-872194d3"]]);
|
|
2350
2351
|
// src/utils/unwrapParagraph.ts
|
|
2351
|
-
function
|
|
2352
|
+
function Co(e) {
|
|
2352
2353
|
let t = /^\s*<p\b/.exec(e);
|
|
2353
2354
|
if (!t) return e;
|
|
2354
|
-
let n =
|
|
2355
|
+
let n = lt(e, t[0].length);
|
|
2355
2356
|
if (n === -1) return e;
|
|
2356
2357
|
let r = /<\/p>\s*$/.exec(e);
|
|
2357
2358
|
if (!r || r.index <= n) return e;
|
|
@@ -2359,22 +2360,22 @@ function yo(e) {
|
|
|
2359
2360
|
return /<\/p>\s*<p\b/i.test(i) ? e : i;
|
|
2360
2361
|
}
|
|
2361
2362
|
// src/components/blocks/TitleBlock.vue
|
|
2362
|
-
var
|
|
2363
|
+
var wo = /* @__PURE__ */ o({
|
|
2363
2364
|
__name: "TitleBlock",
|
|
2364
2365
|
props: {
|
|
2365
2366
|
block: {},
|
|
2366
2367
|
viewport: {}
|
|
2367
2368
|
},
|
|
2368
2369
|
setup(e) {
|
|
2369
|
-
let t = e, n = b(() => import("./TitleEditor-
|
|
2370
|
+
let t = e, n = b(() => import("./TitleEditor-opvaIgVr.js")), r = xn(Zt, "TitleBlock"), { isEditing: i, blockRef: o, toolbarPosition: s, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = Ra(() => t.block.content), f = I(() => {
|
|
2370
2371
|
let e = {
|
|
2371
|
-
fontSize: `${
|
|
2372
|
-
lineHeight: String(
|
|
2372
|
+
fontSize: `${ce[t.block.level]}px`,
|
|
2373
|
+
lineHeight: String(Se),
|
|
2373
2374
|
fontWeight: "700",
|
|
2374
2375
|
textAlign: t.block.textAlign
|
|
2375
2376
|
};
|
|
2376
2377
|
return t.block.color && (e.color = t.block.color), t.block.fontFamily && (e.fontFamily = r.resolveFontFamily(t.block.fontFamily)), e;
|
|
2377
|
-
}), p = I(() => `h${t.block.level}`), m = I(() =>
|
|
2378
|
+
}), p = I(() => `h${t.block.level}`), m = I(() => Zn(Co(l.value)));
|
|
2378
2379
|
return (t, r) => (c(), w("div", {
|
|
2379
2380
|
ref_key: "blockRef",
|
|
2380
2381
|
ref: o,
|
|
@@ -2400,14 +2401,14 @@ var bo = /* @__PURE__ */ o({
|
|
|
2400
2401
|
innerHTML: m.value
|
|
2401
2402
|
}, null, 8, ["innerHTML"]))], 36));
|
|
2402
2403
|
}
|
|
2403
|
-
}),
|
|
2404
|
-
function
|
|
2405
|
-
let n =
|
|
2406
|
-
n.color =
|
|
2407
|
-
let r =
|
|
2408
|
-
r.content = `<p style="text-align: center"><span style="color: ${
|
|
2409
|
-
let i =
|
|
2410
|
-
return i.align = "center",
|
|
2404
|
+
}), To = "hero", Eo = "#1f2937", Do = "#ffffff";
|
|
2405
|
+
function Oo(e, t) {
|
|
2406
|
+
let n = pt("title", e);
|
|
2407
|
+
n.color = Do, n.textAlign = "center";
|
|
2408
|
+
let r = pt("paragraph", e);
|
|
2409
|
+
r.content = `<p style="text-align: center"><span style="color: ${Do}">${ko(t)}</span></p>`;
|
|
2410
|
+
let i = pt("button", e);
|
|
2411
|
+
return i.align = "center", xe({
|
|
2411
2412
|
columns: "1",
|
|
2412
2413
|
children: [[
|
|
2413
2414
|
n,
|
|
@@ -2425,28 +2426,28 @@ function wo(e, t) {
|
|
|
2425
2426
|
bottom: 48,
|
|
2426
2427
|
left: 24
|
|
2427
2428
|
},
|
|
2428
|
-
backgroundColor:
|
|
2429
|
+
backgroundColor: Eo
|
|
2429
2430
|
}
|
|
2430
2431
|
});
|
|
2431
2432
|
}
|
|
2432
|
-
function
|
|
2433
|
+
function ko(e) {
|
|
2433
2434
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
2434
2435
|
}
|
|
2435
2436
|
// src/utils/sectionColumnDrop.ts
|
|
2436
|
-
var
|
|
2437
|
-
function
|
|
2438
|
-
return e.dataset.blockType !== "section" && !
|
|
2437
|
+
var Ao = /* @__PURE__ */ new Set(["section", To]);
|
|
2438
|
+
function jo(e) {
|
|
2439
|
+
return e.dataset.blockType !== "section" && !Ao.has(e.dataset.paletteType ?? "");
|
|
2439
2440
|
}
|
|
2440
2441
|
// src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
|
|
2441
|
-
var
|
|
2442
|
+
var Mo = { class: "tpl:relative tpl:w-full" }, No = {
|
|
2442
2443
|
key: 0,
|
|
2443
2444
|
"data-testid": "hero-image-hint",
|
|
2444
2445
|
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)]"
|
|
2445
|
-
},
|
|
2446
|
+
}, Po = {
|
|
2446
2447
|
key: 0,
|
|
2447
2448
|
"data-testid": "section-drop-hint",
|
|
2448
2449
|
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)]"
|
|
2449
|
-
},
|
|
2450
|
+
}, Fo = /* @__PURE__ */ o({
|
|
2450
2451
|
__name: "SectionBlock",
|
|
2451
2452
|
props: {
|
|
2452
2453
|
block: {},
|
|
@@ -2455,46 +2456,21 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
|
|
|
2455
2456
|
},
|
|
2456
2457
|
setup(e) {
|
|
2457
2458
|
let t = {
|
|
2458
|
-
title:
|
|
2459
|
-
paragraph:
|
|
2460
|
-
image:
|
|
2461
|
-
button:
|
|
2462
|
-
divider:
|
|
2463
|
-
custom:
|
|
2464
|
-
}, n = e, { t: r } = G(), o =
|
|
2465
|
-
d(
|
|
2466
|
-
let h = g(
|
|
2459
|
+
title: wo,
|
|
2460
|
+
paragraph: Ba,
|
|
2461
|
+
image: Na,
|
|
2462
|
+
button: ta,
|
|
2463
|
+
divider: ha,
|
|
2464
|
+
custom: pa
|
|
2465
|
+
}, n = e, { t: r } = G(), o = xn(Sn, "SectionBlock"), { displayBlock: s } = St(o), u = I(() => n.sourceBlock ?? n.block), m = g(an, I(() => /* @__PURE__ */ new Set()));
|
|
2466
|
+
d(an, I(() => /* @__PURE__ */ new Set([...m.value, ...Object.entries(u.value.l10n ?? {}).filter(([, e]) => e.hidden).map(([e]) => e)])));
|
|
2467
|
+
let h = g(dn, null), _ = g(ln, null), v = g(en, {}), y = g(Kt, null), b = g(Yt, null);
|
|
2467
2468
|
function x(e) {
|
|
2468
2469
|
if (y?.value) return;
|
|
2469
2470
|
let t = v.savedBlocks;
|
|
2470
2471
|
t?.isPicking.value ? t.togglePick(n.block.id) : o.selectBlock(e);
|
|
2471
2472
|
}
|
|
2472
|
-
let S = I(() => {
|
|
2473
|
-
switch (n.block.columns) {
|
|
2474
|
-
case "2": return ["50%", "50%"];
|
|
2475
|
-
case "3": return [
|
|
2476
|
-
"33.33%",
|
|
2477
|
-
"33.33%",
|
|
2478
|
-
"33.33%"
|
|
2479
|
-
];
|
|
2480
|
-
case "4": return [
|
|
2481
|
-
"25%",
|
|
2482
|
-
"25%",
|
|
2483
|
-
"25%",
|
|
2484
|
-
"25%"
|
|
2485
|
-
];
|
|
2486
|
-
case "1-2": return ["33.33%", "66.67%"];
|
|
2487
|
-
case "2-1": return ["66.67%", "33.33%"];
|
|
2488
|
-
case "1-3": return ["25%", "75%"];
|
|
2489
|
-
case "3-1": return ["75%", "25%"];
|
|
2490
|
-
case "1-2-1": return [
|
|
2491
|
-
"25%",
|
|
2492
|
-
"50%",
|
|
2493
|
-
"25%"
|
|
2494
|
-
];
|
|
2495
|
-
default: return ["100%"];
|
|
2496
|
-
}
|
|
2497
|
-
}), C = I(() => {
|
|
2473
|
+
let S = I(() => Ne(n.block).map((e) => `${e}%`)), C = I(() => {
|
|
2498
2474
|
let e = S.value.length, t = [...(o.state.previewMode ? n.block : u.value).children];
|
|
2499
2475
|
for (; t.length < e;) t.push([]);
|
|
2500
2476
|
return t.slice(0, e);
|
|
@@ -2514,7 +2490,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
|
|
|
2514
2490
|
}
|
|
2515
2491
|
let R = I(() => {
|
|
2516
2492
|
if (o.state.previewMode) return !1;
|
|
2517
|
-
let e =
|
|
2493
|
+
let e = ke(n.block);
|
|
2518
2494
|
return e !== null && !e.applied && e.reason === "image";
|
|
2519
2495
|
});
|
|
2520
2496
|
function B(e) {
|
|
@@ -2524,10 +2500,10 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
|
|
|
2524
2500
|
return E(e).length === 0 && o.state.previewMode;
|
|
2525
2501
|
}
|
|
2526
2502
|
function K(e, t) {
|
|
2527
|
-
y?.value ||
|
|
2503
|
+
y?.value || Va(o, t, n.block.id, e);
|
|
2528
2504
|
}
|
|
2529
2505
|
function ne(e) {
|
|
2530
|
-
return
|
|
2506
|
+
return Fi(e, _, t);
|
|
2531
2507
|
}
|
|
2532
2508
|
function q(e, t) {
|
|
2533
2509
|
y?.value || e.type !== "custom" || o.updateBlock(e.id, {
|
|
@@ -2535,7 +2511,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
|
|
|
2535
2511
|
dataSourceFetched: t.dataSourceFetched
|
|
2536
2512
|
});
|
|
2537
2513
|
}
|
|
2538
|
-
return (t, u) => (c(), w("div",
|
|
2514
|
+
return (t, u) => (c(), w("div", Mo, [R.value ? (c(), w("div", No, [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", {
|
|
2539
2515
|
key: d,
|
|
2540
2516
|
class: O(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", B(d) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
|
|
2541
2517
|
style: L({ width: T.value ? "100%" : S.value[d] })
|
|
@@ -2545,7 +2521,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
|
|
|
2545
2521
|
group: {
|
|
2546
2522
|
name: "blocks",
|
|
2547
2523
|
pull: !0,
|
|
2548
|
-
put: (e, t, n) => D(
|
|
2524
|
+
put: (e, t, n) => D(jo)(n)
|
|
2549
2525
|
},
|
|
2550
2526
|
animation: 150,
|
|
2551
2527
|
"ghost-class": "tpl-ghost",
|
|
@@ -2559,12 +2535,12 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
|
|
|
2559
2535
|
"tpl:min-h-[60px]": F(d),
|
|
2560
2536
|
"tpl:min-h-[34px]": te(d)
|
|
2561
2537
|
}]),
|
|
2562
|
-
onUpdate: (e) => !D(y) && D(
|
|
2538
|
+
onUpdate: (e) => !D(y) && D(Va)(D(o), E(d), n.block.id, d, e),
|
|
2563
2539
|
onStart: (e) => M.value = d,
|
|
2564
2540
|
onEnd: u[0] ||= (e) => M.value = null,
|
|
2565
2541
|
"onUpdate:modelValue": (e) => K(d, e)
|
|
2566
2542
|
}, {
|
|
2567
|
-
default: l(() => [(c(!0), w(U, null, p(E(d), (t) => f((c(), w("div", { key: t.id }, [W(
|
|
2543
|
+
default: l(() => [(c(!0), w(U, null, p(E(d), (t) => f((c(), w("div", { key: t.id }, [W(So, {
|
|
2568
2544
|
block: t,
|
|
2569
2545
|
"display-block": D(s)(t),
|
|
2570
2546
|
"is-selected": D(o).state.selectedBlockId === t.id,
|
|
@@ -2601,14 +2577,14 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
|
|
|
2601
2577
|
"onUpdate",
|
|
2602
2578
|
"onStart",
|
|
2603
2579
|
"onUpdate:modelValue"
|
|
2604
|
-
]), B(d) ? (c(), w("div",
|
|
2580
|
+
]), B(d) ? (c(), w("div", Po, [N("span", null, P(D(r).section.dropHere), 1)])) : k("", !0)], 6))), 128))], 2)]));
|
|
2605
2581
|
}
|
|
2606
|
-
}),
|
|
2582
|
+
}), Io = ["width", "height"], Lo = [
|
|
2607
2583
|
"d",
|
|
2608
2584
|
"stroke",
|
|
2609
2585
|
"stroke-opacity",
|
|
2610
2586
|
"stroke-width"
|
|
2611
|
-
],
|
|
2587
|
+
], Ro = ["d", "fill"], zo = /* @__PURE__ */ o({
|
|
2612
2588
|
__name: "SocialIconSvg",
|
|
2613
2589
|
props: {
|
|
2614
2590
|
platform: {},
|
|
@@ -2617,7 +2593,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
|
|
|
2617
2593
|
iconSize: {}
|
|
2618
2594
|
},
|
|
2619
2595
|
setup(e) {
|
|
2620
|
-
let t = e, n = I(() =>
|
|
2596
|
+
let t = e, n = I(() => zn[t.platform]), r = I(() => Vn[t.iconSize]), i = I(() => ge(t.platform, t.iconTone)), a = I(() => ht(t.iconStyle, t.iconTone)), o = I(() => {
|
|
2621
2597
|
let e = {
|
|
2622
2598
|
display: "inline-flex",
|
|
2623
2599
|
alignItems: "center",
|
|
@@ -2655,7 +2631,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
|
|
|
2655
2631
|
};
|
|
2656
2632
|
default: return e;
|
|
2657
2633
|
}
|
|
2658
|
-
}), s = I(() =>
|
|
2634
|
+
}), s = I(() => Ee(t.iconStyle)), l = I(() => Math.floor(r.value * s.value));
|
|
2659
2635
|
function u(e) {
|
|
2660
2636
|
let t = `${e.width / 2 * r.value / 24}px`, n = Math.round(e.opacity * 255).toString(16).padStart(2, "0"), i = `${e.color}${n}`;
|
|
2661
2637
|
return `0 0 0 ${t} ${i}, inset 0 0 0 ${t} ${i}`;
|
|
@@ -2676,15 +2652,15 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
|
|
|
2676
2652
|
"stroke-opacity": a.value.opacity,
|
|
2677
2653
|
"stroke-width": a.value.width / s.value,
|
|
2678
2654
|
"stroke-linejoin": "round"
|
|
2679
|
-
}, null, 8,
|
|
2655
|
+
}, null, 8, Lo)) : k("", !0), N("path", {
|
|
2680
2656
|
d: n.value.path,
|
|
2681
2657
|
fill: d.value
|
|
2682
|
-
}, null, 8,
|
|
2658
|
+
}, null, 8, Ro)], 8, Io))], 4));
|
|
2683
2659
|
}
|
|
2684
|
-
}),
|
|
2660
|
+
}), Bo = { class: "tpl:w-full" }, Vo = ["href"], Ho = {
|
|
2685
2661
|
key: 1,
|
|
2686
2662
|
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)]"
|
|
2687
|
-
},
|
|
2663
|
+
}, Uo = /* @__PURE__ */ o({
|
|
2688
2664
|
__name: "SocialIconsBlock",
|
|
2689
2665
|
props: {
|
|
2690
2666
|
block: {},
|
|
@@ -2697,7 +2673,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
|
|
|
2697
2673
|
gap: `${t.block.spacing}px`,
|
|
2698
2674
|
justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
|
|
2699
2675
|
})), i = I(() => t.block.icons.length > 0);
|
|
2700
|
-
return (t, a) => (c(), w("div",
|
|
2676
|
+
return (t, a) => (c(), w("div", Bo, [i.value ? (c(), w("div", {
|
|
2701
2677
|
key: 0,
|
|
2702
2678
|
style: L(r.value)
|
|
2703
2679
|
}, [(c(!0), w(U, null, p(e.block.icons, (t) => (c(), w("a", {
|
|
@@ -2705,7 +2681,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
|
|
|
2705
2681
|
href: t.url || "#",
|
|
2706
2682
|
class: "tpl:cursor-default",
|
|
2707
2683
|
onClick: a[0] ||= M(() => {}, ["prevent"])
|
|
2708
|
-
}, [W(
|
|
2684
|
+
}, [W(zo, {
|
|
2709
2685
|
platform: t.platform,
|
|
2710
2686
|
"icon-style": e.block.iconStyle,
|
|
2711
2687
|
"icon-tone": e.block.iconTone,
|
|
@@ -2715,46 +2691,46 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
|
|
|
2715
2691
|
"icon-style",
|
|
2716
2692
|
"icon-tone",
|
|
2717
2693
|
"icon-size"
|
|
2718
|
-
])], 8,
|
|
2694
|
+
])], 8, Vo))), 128))], 4)) : (c(), w("div", Ho, [W(D(dr), { size: 16 }), N("span", null, P(D(n).social.addIcons), 1)]))]));
|
|
2719
2695
|
}
|
|
2720
|
-
}),
|
|
2696
|
+
}), Wo = { class: "tpl:w-full" }, Go = {
|
|
2721
2697
|
key: 0,
|
|
2722
2698
|
class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
|
|
2723
2699
|
style: {
|
|
2724
2700
|
"background-color": "var(--tpl-bg-hover)",
|
|
2725
2701
|
color: "var(--tpl-text-dim)"
|
|
2726
2702
|
}
|
|
2727
|
-
},
|
|
2703
|
+
}, Ko = /* @__PURE__ */ o({
|
|
2728
2704
|
__name: "SpacerBlock",
|
|
2729
2705
|
props: {
|
|
2730
2706
|
block: {},
|
|
2731
2707
|
viewport: {}
|
|
2732
2708
|
},
|
|
2733
2709
|
setup(e) {
|
|
2734
|
-
let t = e, n =
|
|
2710
|
+
let t = e, n = xn(Sn, "SpacerBlock"), r = I(() => ({
|
|
2735
2711
|
height: `${t.block.height}px`,
|
|
2736
2712
|
minHeight: `${t.block.height}px`,
|
|
2737
2713
|
...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
|
|
2738
2714
|
}));
|
|
2739
|
-
return (t, i) => (c(), w("div",
|
|
2715
|
+
return (t, i) => (c(), w("div", Wo, [N("div", {
|
|
2740
2716
|
style: L(r.value),
|
|
2741
2717
|
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 }])
|
|
2742
|
-
}, [D(n).state.previewMode ? k("", !0) : (c(), w("span",
|
|
2718
|
+
}, [D(n).state.previewMode ? k("", !0) : (c(), w("span", Go, P(e.block.height) + "px ", 1))], 6)]));
|
|
2743
2719
|
}
|
|
2744
|
-
}),
|
|
2720
|
+
}), qo = { class: "tpl:w-full" }, Jo = { key: 0 }, Yo = [
|
|
2745
2721
|
"aria-label",
|
|
2746
2722
|
"contenteditable",
|
|
2747
2723
|
"data-placeholder",
|
|
2748
2724
|
"onBlur"
|
|
2749
|
-
],
|
|
2725
|
+
], Xo = [
|
|
2750
2726
|
"aria-label",
|
|
2751
2727
|
"contenteditable",
|
|
2752
2728
|
"data-placeholder",
|
|
2753
2729
|
"onBlur"
|
|
2754
|
-
],
|
|
2730
|
+
], Zo = {
|
|
2755
2731
|
key: 1,
|
|
2756
2732
|
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)]"
|
|
2757
|
-
},
|
|
2733
|
+
}, Qo = /*#__PURE__*/ Cr(/* @__PURE__ */ o({
|
|
2758
2734
|
__name: "TableBlock",
|
|
2759
2735
|
props: {
|
|
2760
2736
|
block: {},
|
|
@@ -2768,7 +2744,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
|
|
|
2768
2744
|
updated(e, t) {
|
|
2769
2745
|
t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
|
|
2770
2746
|
}
|
|
2771
|
-
}, n = e, { t: r } = G(), i =
|
|
2747
|
+
}, n = e, { t: r } = G(), i = xn(Sn, "TableBlock"), a = xn(Zt, "TableBlock"), o = g(Kt, null), s = I(() => n.block.rows.length > 0), l = I(() => {
|
|
2772
2748
|
let e = {
|
|
2773
2749
|
width: "100%",
|
|
2774
2750
|
borderCollapse: "collapse",
|
|
@@ -2800,11 +2776,11 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
|
|
|
2800
2776
|
} : n);
|
|
2801
2777
|
i.updateBlock(n.block.id, { rows: s });
|
|
2802
2778
|
}
|
|
2803
|
-
return (e, n) => (c(), w("div",
|
|
2779
|
+
return (e, n) => (c(), w("div", qo, [s.value ? (c(), w("table", {
|
|
2804
2780
|
key: 0,
|
|
2805
2781
|
style: L(l.value),
|
|
2806
2782
|
class: "tpl-table-editable"
|
|
2807
|
-
}, [m.value ? (c(), w("thead",
|
|
2783
|
+
}, [m.value ? (c(), w("thead", Jo, [N("tr", null, [(c(!0), w(U, null, p(m.value.cells, (e) => f((c(), w("th", {
|
|
2808
2784
|
key: e.id,
|
|
2809
2785
|
style: L(d.value),
|
|
2810
2786
|
"aria-label": D(r).table.cellPlaceholder,
|
|
@@ -2813,7 +2789,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
|
|
|
2813
2789
|
onBlur: (t) => v(m.value.id, e.id, t),
|
|
2814
2790
|
onKeydown: n[0] ||= E(M((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
2815
2791
|
onClick: M(_, ["stop"])
|
|
2816
|
-
}, null, 44,
|
|
2792
|
+
}, null, 44, Yo)), [[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", {
|
|
2817
2793
|
key: i.id,
|
|
2818
2794
|
style: L(u.value),
|
|
2819
2795
|
"aria-label": D(r).table.cellPlaceholder,
|
|
@@ -2822,9 +2798,9 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
|
|
|
2822
2798
|
onBlur: (t) => v(e.id, i.id, t),
|
|
2823
2799
|
onKeydown: n[1] ||= E(M((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
2824
2800
|
onClick: M(_, ["stop"])
|
|
2825
|
-
}, null, 44,
|
|
2801
|
+
}, null, 44, Xo)), [[t, i.content]])), 128))]))), 128))])], 4)) : (c(), w("div", Zo, [W(D(hr), { size: 16 }), N("span", null, P(D(r).table.empty), 1)]))]));
|
|
2826
2802
|
}
|
|
2827
|
-
}), [["__scopeId", "data-v-73b9f5e5"]]),
|
|
2803
|
+
}), [["__scopeId", "data-v-73b9f5e5"]]), $o = /* @__PURE__ */ o({
|
|
2828
2804
|
__name: "VideoPlayButton",
|
|
2829
2805
|
props: { hoverEffect: {
|
|
2830
2806
|
type: Boolean,
|
|
@@ -2841,7 +2817,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
|
|
|
2841
2817
|
}
|
|
2842
2818
|
});
|
|
2843
2819
|
// src/utils/videoThumbnail.ts
|
|
2844
|
-
function
|
|
2820
|
+
function es(e) {
|
|
2845
2821
|
if (!e) return {
|
|
2846
2822
|
platform: "unknown",
|
|
2847
2823
|
videoId: null,
|
|
@@ -2873,24 +2849,24 @@ function Xo(e) {
|
|
|
2873
2849
|
thumbnailUrl: null
|
|
2874
2850
|
};
|
|
2875
2851
|
}
|
|
2876
|
-
function
|
|
2877
|
-
return t ||
|
|
2852
|
+
function ts(e, t) {
|
|
2853
|
+
return t || es(e).thumbnailUrl;
|
|
2878
2854
|
}
|
|
2879
2855
|
// src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
|
|
2880
|
-
var
|
|
2856
|
+
var ns = ["src", "alt"], rs = {
|
|
2881
2857
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
2882
2858
|
style: { opacity: "0.7" }
|
|
2883
|
-
},
|
|
2859
|
+
}, is = ["href"], as = ["src", "alt"], os = ["src", "alt"], ss = {
|
|
2884
2860
|
key: 3,
|
|
2885
2861
|
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)]"
|
|
2886
|
-
},
|
|
2862
|
+
}, cs = /* @__PURE__ */ o({
|
|
2887
2863
|
__name: "VideoBlock",
|
|
2888
2864
|
props: {
|
|
2889
2865
|
block: {},
|
|
2890
2866
|
viewport: {}
|
|
2891
2867
|
},
|
|
2892
2868
|
setup(e) {
|
|
2893
|
-
let t = e, { t: n } = G(), { syntax: r } = K(), i = I(() =>
|
|
2869
|
+
let t = e, { t: n } = G(), { syntax: r } = K(), i = I(() => Ae(t.block.url, r) || Ae(t.block.thumbnailUrl, r)), a = Pn(() => i.value ? void 0 : t.block.thumbnailUrl || void 0), o = Pn(() => i.value ? t.block.placeholderUrl : void 0), s = I(() => i.value ? null : t.block.thumbnailUrl ? a.value ?? null : ts(t.block.url)), l = I(() => ({ textAlign: t.block.align })), u = I(() => {
|
|
2894
2870
|
let e = t.block.align;
|
|
2895
2871
|
return {
|
|
2896
2872
|
maxWidth: "100%",
|
|
@@ -2900,7 +2876,7 @@ var Qo = ["src", "alt"], $o = {
|
|
|
2900
2876
|
marginLeft: e === "center" || e === "right" ? "auto" : void 0,
|
|
2901
2877
|
marginRight: e === "center" ? "auto" : void 0
|
|
2902
2878
|
};
|
|
2903
|
-
}), d = I(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = I(() =>
|
|
2879
|
+
}), d = I(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = I(() => Ae(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
|
|
2904
2880
|
return (t, r) => (c(), w("div", {
|
|
2905
2881
|
class: "tpl:w-full",
|
|
2906
2882
|
style: L(l.value)
|
|
@@ -2913,16 +2889,16 @@ var Qo = ["src", "alt"], $o = {
|
|
|
2913
2889
|
src: D(o),
|
|
2914
2890
|
alt: e.block.alt,
|
|
2915
2891
|
style: L(d.value)
|
|
2916
|
-
}, null, 12,
|
|
2892
|
+
}, null, 12, ns), W($o)], 4)) : i.value ? (c(), w("div", {
|
|
2917
2893
|
key: 1,
|
|
2918
2894
|
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)]",
|
|
2919
2895
|
style: L([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
|
|
2920
|
-
}, [W(D(
|
|
2896
|
+
}, [W(D(mr), {
|
|
2921
2897
|
size: 36,
|
|
2922
2898
|
"stroke-width": 1.5,
|
|
2923
2899
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
2924
2900
|
style: { opacity: "0.5" }
|
|
2925
|
-
}), N("span",
|
|
2901
|
+
}), N("span", rs, [W($i, { text: f.value }, null, 8, ["text"])])], 4)) : s.value ? (c(), w(U, { key: 2 }, [e.block.url ? (c(), w("a", {
|
|
2926
2902
|
key: 0,
|
|
2927
2903
|
href: e.block.url,
|
|
2928
2904
|
target: "_blank",
|
|
@@ -2935,7 +2911,7 @@ var Qo = ["src", "alt"], $o = {
|
|
|
2935
2911
|
src: s.value,
|
|
2936
2912
|
alt: e.block.alt,
|
|
2937
2913
|
style: L(d.value)
|
|
2938
|
-
}, null, 12,
|
|
2914
|
+
}, null, 12, as), W($o, { "hover-effect": "" })], 12, is)) : (c(), w("div", {
|
|
2939
2915
|
key: 1,
|
|
2940
2916
|
class: "tpl:relative tpl:inline-block",
|
|
2941
2917
|
style: L(u.value)
|
|
@@ -2944,53 +2920,53 @@ var Qo = ["src", "alt"], $o = {
|
|
|
2944
2920
|
src: s.value,
|
|
2945
2921
|
alt: e.block.alt,
|
|
2946
2922
|
style: L(d.value)
|
|
2947
|
-
}, null, 12,
|
|
2923
|
+
}, null, 12, os), W($o)], 4))], 64)) : (c(), w("div", ss, [W(D(mr), {
|
|
2948
2924
|
size: 40,
|
|
2949
2925
|
"stroke-width": 1.5,
|
|
2950
2926
|
class: "tpl:text-[var(--tpl-border-light)]"
|
|
2951
2927
|
}), N("span", null, P(D(n).video.addVideo), 1)]))], 4));
|
|
2952
2928
|
}
|
|
2953
|
-
}),
|
|
2954
|
-
section:
|
|
2955
|
-
title:
|
|
2956
|
-
paragraph:
|
|
2957
|
-
image:
|
|
2958
|
-
button:
|
|
2959
|
-
divider:
|
|
2960
|
-
video:
|
|
2961
|
-
social:
|
|
2962
|
-
menu:
|
|
2963
|
-
table:
|
|
2964
|
-
spacer:
|
|
2965
|
-
html:
|
|
2966
|
-
countdown: b(() => import("./CountdownBlock
|
|
2929
|
+
}), ls = {
|
|
2930
|
+
section: Fo,
|
|
2931
|
+
title: wo,
|
|
2932
|
+
paragraph: Ba,
|
|
2933
|
+
image: Na,
|
|
2934
|
+
button: ta,
|
|
2935
|
+
divider: ha,
|
|
2936
|
+
video: cs,
|
|
2937
|
+
social: Uo,
|
|
2938
|
+
menu: La,
|
|
2939
|
+
table: Qo,
|
|
2940
|
+
spacer: Ko,
|
|
2941
|
+
html: xa,
|
|
2942
|
+
countdown: b(() => import("./CountdownBlock--hlKE2aj.js"))
|
|
2967
2943
|
};
|
|
2968
|
-
function
|
|
2969
|
-
let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: s } = G(i), c = I(() =>
|
|
2944
|
+
function us(t) {
|
|
2945
|
+
let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: s } = G(i), c = I(() => Ue(Ue(Ue(ui(i), Ai(n.content.value.settings?.locale)), He(n.content.value.settings) === "rtl" ? {
|
|
2970
2946
|
title: { textAlign: "right" },
|
|
2971
2947
|
table: { textAlign: "right" }
|
|
2972
2948
|
} : {}), r.blockDefaults ?? {}));
|
|
2973
2949
|
n.setUiTheme(r.uiTheme ?? "auto");
|
|
2974
|
-
let { resolvedTheme: l } =
|
|
2950
|
+
let { resolvedTheme: l } = ti(I(() => n.state.uiTheme)), f = H(r.theme ?? {}), { themeStyles: p } = Pr({
|
|
2975
2951
|
themeOverrides: f,
|
|
2976
2952
|
resolvedTheme: l,
|
|
2977
2953
|
extraStyles: () => ({
|
|
2978
2954
|
"--tpl-drop-text": `"${i.canvas.dropHere}"`,
|
|
2979
2955
|
...t.themeExtraStyles?.()
|
|
2980
2956
|
})
|
|
2981
|
-
}), m = t.history ??
|
|
2957
|
+
}), m = t.history ?? On({
|
|
2982
2958
|
content: n.content,
|
|
2983
2959
|
setContent: (e, t) => n.setContent(e, t)
|
|
2984
2960
|
});
|
|
2985
|
-
t.history ? n.contentReplaced && u(n.contentReplaced, () => m.clear(), { flush: "sync" }) :
|
|
2986
|
-
let h =
|
|
2961
|
+
t.history ? n.contentReplaced && u(n.contentReplaced, () => m.clear(), { flush: "sync" }) : Mn(n, m);
|
|
2962
|
+
let h = qn({
|
|
2987
2963
|
addBlock: n.addBlock,
|
|
2988
2964
|
removeBlock: n.removeBlock,
|
|
2989
2965
|
updateBlock: n.updateBlock,
|
|
2990
2966
|
selectBlock: n.selectBlock,
|
|
2991
2967
|
findBlockLocation: n.findBlockLocation,
|
|
2992
2968
|
blockDefaults: () => c.value
|
|
2993
|
-
}), g =
|
|
2969
|
+
}), g = jn(n), _ = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? Nn({
|
|
2994
2970
|
content: n.content,
|
|
2995
2971
|
isDirty: () => n.state.isDirty,
|
|
2996
2972
|
...t.autoSaveOptions
|
|
@@ -2998,27 +2974,27 @@ function os(t) {
|
|
|
2998
2974
|
_ && (y = u(m.isNavigating, (e) => {
|
|
2999
2975
|
e ? _.pause() : _.resume();
|
|
3000
2976
|
}));
|
|
3001
|
-
let b =
|
|
2977
|
+
let b = ei(n, {
|
|
3002
2978
|
t: o,
|
|
3003
2979
|
format: s
|
|
3004
|
-
}, r.customBlocks ?? []), x =
|
|
2980
|
+
}, r.customBlocks ?? []), x = vt(r.colors);
|
|
3005
2981
|
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) {
|
|
3006
|
-
let e =
|
|
2982
|
+
let e = li(x.presets, r.blockDefaults, r.templateDefaults);
|
|
3007
2983
|
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.`);
|
|
3008
2984
|
}
|
|
3009
|
-
let S =
|
|
3010
|
-
for (let e of S.unknown) $.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${
|
|
3011
|
-
let w =
|
|
3012
|
-
|
|
2985
|
+
let S = Jn(r.templateSettings);
|
|
2986
|
+
for (let e of S.unknown) $.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${Yn.join(", ")}) — skipping it.`);
|
|
2987
|
+
let w = Or();
|
|
2988
|
+
oi(w, ls);
|
|
3013
2989
|
let T = /* @__PURE__ */ new Set();
|
|
3014
2990
|
function E(e) {
|
|
3015
2991
|
for (let t of e) {
|
|
3016
|
-
w.registerCustom(t,
|
|
3017
|
-
for (let e of
|
|
2992
|
+
w.registerCustom(t, pa);
|
|
2993
|
+
for (let e of ji(t, x)) T.has(e.id) || (T.add(e.id), $.warn(e.message));
|
|
3018
2994
|
}
|
|
3019
2995
|
}
|
|
3020
2996
|
r.customBlocks?.length && E(r.customBlocks);
|
|
3021
|
-
let D =
|
|
2997
|
+
let D = Gr();
|
|
3022
2998
|
if (C() && v(D.dispose), t.containerEl) {
|
|
3023
2999
|
let n = t.containerEl;
|
|
3024
3000
|
e(document, "pointerdown", (e) => {
|
|
@@ -3031,7 +3007,7 @@ function os(t) {
|
|
|
3031
3007
|
e ? e.save() : _?.flush();
|
|
3032
3008
|
}
|
|
3033
3009
|
function ee(e) {
|
|
3034
|
-
D.isActive() &&
|
|
3010
|
+
D.isActive() && Ni(e, {
|
|
3035
3011
|
history: m,
|
|
3036
3012
|
selectBlock: (e) => n.selectBlock(e),
|
|
3037
3013
|
getSelectedBlockId: () => n.state.selectedBlockId,
|
|
@@ -3044,45 +3020,45 @@ function os(t) {
|
|
|
3044
3020
|
}
|
|
3045
3021
|
e(document, "keydown", ee);
|
|
3046
3022
|
let k = H(null), A = t.editorRoot ?? document;
|
|
3047
|
-
d(
|
|
3048
|
-
let j =
|
|
3023
|
+
d(Tn, A), d(hn, k), d(Dt, /* @__PURE__ */ new Map()), d(Xt, i), d(Sn, n), d(wn, m), d(vn, h), d(dn, g), d(Zt, a), d(on, p), d($t, l), d(Qt, c), d(yn, r.locale), d(ln, w), d(rn, r.customBlocks ?? []), d(Nt, r.paletteBlocks), d(Bt, si(r.htmlBlockPreview)), d(Vt, r.layout), d(Ct, r.sectionWrapper), d(mn, x), d(_n, S.fields), d(nn, ni(n.content, w));
|
|
3024
|
+
let j = st(r.mergeTags?.syntax);
|
|
3049
3025
|
for (let e of ["opener", "closer"]) {
|
|
3050
3026
|
let t = j[e];
|
|
3051
3027
|
typeof t == "string" && t.trim() === "" && $.warn(`config.mergeTags.syntax.${e} is blank — ignoring it.`);
|
|
3052
3028
|
}
|
|
3053
|
-
typeof j.opener != "string" && typeof j.closer == "string" && j.closer.trim() !== "" &&
|
|
3029
|
+
typeof j.opener != "string" && typeof j.closer == "string" && j.closer.trim() !== "" && Me(j) === null && $.warn("config.mergeTags.syntax.closer has no effect without an opener — set opener to turn on autocomplete for this syntax.");
|
|
3054
3030
|
let M = R(r.mergeTags?.tags ?? []);
|
|
3055
3031
|
function N(e) {
|
|
3056
3032
|
Array.isArray(e) ? M.value = e : $.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
|
|
3057
3033
|
}
|
|
3058
|
-
d(
|
|
3059
|
-
let P = H(
|
|
3060
|
-
d(
|
|
3061
|
-
let F =
|
|
3034
|
+
d(Rt, M), d(Tt, j), d(kt, r.mergeTags?.onRequest ?? null), d(Ot, r.mergeTags?.autocomplete !== !1), d(En, r.mergeTags?.showRawValue !== !1);
|
|
3035
|
+
let P = H(je(r.mergeTags?.tags ?? []));
|
|
3036
|
+
d(zt, P);
|
|
3037
|
+
let F = Jr({
|
|
3062
3038
|
resolvePreview: r.resolvePreview,
|
|
3063
3039
|
surface: "preview",
|
|
3064
3040
|
getContent: () => {
|
|
3065
3041
|
let e = n.content.value;
|
|
3066
3042
|
if (!n.state.previewMode) return e;
|
|
3067
|
-
let t = n.activeLocale?.value ?? e.settings.locale ?? "en", i =
|
|
3068
|
-
return r.layout ?
|
|
3043
|
+
let t = n.activeLocale?.value ?? e.settings.locale ?? "en", i = We(e, t);
|
|
3044
|
+
return r.layout ? rt(We(r.layout, t, { missing: "default" }), i) : i;
|
|
3069
3045
|
},
|
|
3070
3046
|
isActive: () => n.state.previewMode,
|
|
3071
3047
|
getLocale: () => n.activeLocale?.value ?? n.content.value.settings.locale
|
|
3072
3048
|
});
|
|
3073
|
-
d(
|
|
3049
|
+
d(Mt, F), d(qt, r.resolvePreview);
|
|
3074
3050
|
let L = null;
|
|
3075
|
-
d(
|
|
3051
|
+
d(Gt, (e) => (L = e, () => {
|
|
3076
3052
|
L === e && (L = null);
|
|
3077
3053
|
}));
|
|
3078
3054
|
let z = () => (L ?? F.refresh)(), B = I(() => !(n.state.previewMode && F.isConfigured));
|
|
3079
|
-
d(
|
|
3080
|
-
let V =
|
|
3081
|
-
d(
|
|
3082
|
-
let U =
|
|
3055
|
+
d(Yt, B);
|
|
3056
|
+
let V = Yr();
|
|
3057
|
+
d(jt, V), d(Pt, H(!1)), d(It, H(!1)), d(sn, r.logicTags?.tags ?? []), d(wt, r.logicTags?.pairs ?? []), d(Ht, r.logicTags?.onRequest ?? null), d(Ft, Xr()), d(Wt, r.onRequestMedia ?? null), d(bn, r.canDropMedia ?? null), d(Et, r.resolveImageUrl ? Gn(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(Jt, r.displayConditions?.conditions ?? []), d(gn, r.displayConditions?.allowCustom ?? !1), d(At, r.displayConditions?.onRequest ?? null), d(en, t.capabilities ?? {}), d(Cn, b);
|
|
3058
|
+
let U = Zr(r.lint) ? null : $r({
|
|
3083
3059
|
content: n.content,
|
|
3084
3060
|
get options() {
|
|
3085
|
-
return
|
|
3061
|
+
return Kr({
|
|
3086
3062
|
...r,
|
|
3087
3063
|
content: n.content.value,
|
|
3088
3064
|
contentLocale: n.activeLocale?.value ?? void 0
|
|
@@ -3094,7 +3070,7 @@ function os(t) {
|
|
|
3094
3070
|
updateSettings: n.updateSettings,
|
|
3095
3071
|
removeBlock: n.removeBlock
|
|
3096
3072
|
});
|
|
3097
|
-
d(
|
|
3073
|
+
d(fn, U);
|
|
3098
3074
|
function W() {
|
|
3099
3075
|
y?.(), U?.destroy(), _?.destroy(), m.destroy();
|
|
3100
3076
|
}
|
|
@@ -3125,14 +3101,14 @@ function os(t) {
|
|
|
3125
3101
|
};
|
|
3126
3102
|
}
|
|
3127
3103
|
// src/composables/useSmallScreenNotice.ts
|
|
3128
|
-
var
|
|
3129
|
-
function
|
|
3130
|
-
let n = t(
|
|
3104
|
+
var ds = "(max-width: 767px)";
|
|
3105
|
+
function fs(e) {
|
|
3106
|
+
let n = t(ds);
|
|
3131
3107
|
return {
|
|
3132
3108
|
isSmallScreen: n,
|
|
3133
3109
|
showNotice: I(() => (F(e) ?? !0) && n.value)
|
|
3134
3110
|
};
|
|
3135
3111
|
}
|
|
3136
|
-
export {
|
|
3112
|
+
export { Ei as A, Mr as B, Yi as C, Zi as D, Pi as E, xi as F, Er as H, Jr as I, Kr as L, wi as M, Ci as N, Fi as O, Si as P, Vr as R, Bi as S, Gi as T, Dr as V, ha as _, Ko as a, ta as b, To as c, So as d, Va as f, xa as g, Na as h, Qo as i, Ti as j, vi as k, Oo as l, La as m, us as n, Uo as o, Ba as p, cs as r, Fo as s, fs as t, wo as u, pa as v, Wi as w, Li as x, ia as y, zr as z };
|
|
3137
3113
|
|
|
3138
|
-
//# sourceMappingURL=composables-
|
|
3114
|
+
//# sourceMappingURL=composables-Brr4m0Sg.js.map
|