@templatical/editor 0.57.0 → 0.57.2
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-BjClNscQ.js → AiAltTextPopover-B4cg0jQG.js} +1 -1
- package/dist/{AiAltTextReview-DeMdVbtT.js → AiAltTextReview-Dni8I9eV.js} +1 -1
- package/dist/{AiChatPanel-Cros4ZCM.js → AiChatPanel-QWqGhy2s.js} +8 -8
- package/dist/{AiPanels-D_CdHqFZ.js → AiPanels-DE2ysIV1.js} +1 -1
- package/dist/{AiRewriteMenu-BSzj1dKC.js → AiRewriteMenu-B25gpnip.js} +8 -8
- package/dist/{BlockIssueBadge-i2cZy5PB.js → BlockIssueBadge-Ri7dQhuz.js} +2 -2
- package/dist/{BlockPreviewCanvas-D-If_vd_.js → BlockPreviewCanvas-yr5MmQql.js} +4 -4
- package/dist/{CloudPanels-DPeK_siQ.js → CloudPanels-ZOR9By8W.js} +3 -3
- package/dist/{CollaborationNotices-DkYX-ose.js → CollaborationNotices-COS_YvTq.js} +1 -1
- package/dist/{CollaboratorBar-xDweDvB6.js → CollaboratorBar-jq6HH0fb.js} +1 -1
- package/dist/{CommentsPanel-t3w16YUl.js → CommentsPanel-B0_Ob2vO.js} +1 -1
- package/dist/{CommentsSidebar-B3M90RY_.js → CommentsSidebar-DFoLon5D.js} +10 -10
- package/dist/{CountdownToolbar-DBu2ZqC6.js → CountdownToolbar-BtP0n0yZ.js} +4 -4
- package/dist/{IssuesPanel-BnUut-p-.js → IssuesPanel-CarJYQFu.js} +9 -9
- package/dist/{LanguageMenu-DfTxrbvp.js → LanguageMenu-confz89v.js} +10 -10
- package/dist/{LocaleNotices-D6zk-QCL.js → LocaleNotices-D8aE167E.js} +2 -2
- package/dist/{LogicTagInsertButton-CJ1Jk6jv.js → LogicTagInsertButton-DFL3kvGK.js} +6 -6
- package/dist/{MediaEditModal-BxbwZxnf.js → MediaEditModal-BWOqjEZN.js} +1 -1
- package/dist/{MediaPanels-BiUxsTMM.js → MediaPanels-C-XrldMu.js} +1 -1
- package/dist/{MergeTagInput-CV-z85s9.js → MergeTagInput-BuGJeeyA.js} +1 -1
- package/dist/{MergeTagModeToggle-CixgX5C_.js → MergeTagModeToggle-D7482NZf.js} +4 -4
- package/dist/{MergeTagTextarea-B1zOC_Nr.js → MergeTagTextarea-Qt9_NeY4.js} +3 -3
- package/dist/{ParagraphEditor-C9UhWvRB.js → ParagraphEditor-Cd-CBE_l.js} +45 -45
- package/dist/{RestoreVersionDialog-Do7fZWpT.js → RestoreVersionDialog-Clh4l0Bn.js} +3 -3
- package/dist/{RichTextEditorContent-wW_SMun2.js → RichTextEditorContent-Dw_Z9zhi.js} +4 -4
- package/dist/{SaveBlockDialog-CCHIUfR-.js → SaveBlockDialog-kboYvk_a.js} +7 -7
- package/dist/{SavedBlocksBrowserModal-DtPHhfw9.js → SavedBlocksBrowserModal-wVGMC6My.js} +9 -9
- package/dist/{SavedBlocksPanels-CYIby5pR.js → SavedBlocksPanels-C9AHYfYR.js} +1 -1
- package/dist/{SavedBlocksPickBar-CCwBugqN.js → SavedBlocksPickBar-CVbV5MVL.js} +2 -2
- package/dist/{TemplateSettings-B8IVy5q9.js → TemplateSettings-ChCm5_2b.js} +8 -8
- package/dist/{TestEmailModal-CS5JoKRH.js → TestEmailModal-CYq9Ec7x.js} +7 -7
- package/dist/{TestEmailPanel-sOIZfKzc.js → TestEmailPanel-7Ua54CYL.js} +1 -1
- package/dist/{TitleEditor-ZlBcq9_P.js → TitleEditor-DXMOgW-9.js} +9 -9
- package/dist/{Toolbar-c4_rLLJT.js → Toolbar-CVHJl6i4.js} +30 -30
- package/dist/{TplModal-DnFFEulp.js → TplModal-BErE8I3p.js} +1 -1
- package/dist/{VersionHistoryMenu-Cd2IaHgT.js → VersionHistoryMenu-P3P00KqQ.js} +5 -5
- package/dist/{VersionHistoryPanels-TdGaMaa_.js → VersionHistoryPanels-DES1b1Pq.js} +1 -1
- package/dist/{VersionPreviewBanner-lkAf7tc8.js → VersionPreviewBanner-D2TtR9I5.js} +1 -1
- package/dist/{WrapperBlock-BiW4ye3w.js → WrapperBlock-B1zI7POT.js} +3 -3
- package/dist/{blockTypeIcons-D1aYMC1M.js → blockTypeIcons-Dp540i74.js} +3 -3
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiAltTextPopover-CfGJNBOb.js → AiAltTextPopover-sx3bmRiV.js} +2 -2
- package/dist/cdn/chunks/{AiAltTextPopover-CfGJNBOb.js.map → AiAltTextPopover-sx3bmRiV.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-PKe31R_g.js → AiAltTextReview-Cj3PKInZ.js} +2 -2
- package/dist/cdn/chunks/{AiAltTextReview-PKe31R_g.js.map → AiAltTextReview-Cj3PKInZ.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-DNCUpV8n.js → AiChatPanel-DibkqrqY.js} +2 -2
- package/dist/cdn/chunks/{AiChatPanel-DNCUpV8n.js.map → AiChatPanel-DibkqrqY.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-IV0VEkBL.js → AiPanels-DVs4r8sY.js} +2 -2
- package/dist/cdn/chunks/{AiPanels-IV0VEkBL.js.map → AiPanels-DVs4r8sY.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-ZDBwReuU.js → AiRewriteMenu-BbZ9NRoe.js} +6 -6
- package/dist/cdn/chunks/{AiRewriteMenu-ZDBwReuU.js.map → AiRewriteMenu-BbZ9NRoe.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-DIlFDDwh.js → BlockIssueBadge-BWIth1y6.js} +2 -2
- package/dist/cdn/chunks/{BlockIssueBadge-DIlFDDwh.js.map → BlockIssueBadge-BWIth1y6.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-D7U6nQ7t.js → BlockPreviewCanvas-BDZ6pMHq.js} +5 -5
- package/dist/cdn/chunks/{BlockPreviewCanvas-D7U6nQ7t.js.map → BlockPreviewCanvas-BDZ6pMHq.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-EXXNMLbs.js → CloudPanels-BI_hJwcJ.js} +3 -3
- package/dist/cdn/chunks/{CloudPanels-EXXNMLbs.js.map → CloudPanels-BI_hJwcJ.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-DGA8XRZJ.js → CollaborationNotices-yKOt4o7B.js} +2 -2
- package/dist/cdn/chunks/{CollaborationNotices-DGA8XRZJ.js.map → CollaborationNotices-yKOt4o7B.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-BWL1Shc1.js → CollaboratorBar-D5fycyLP.js} +2 -2
- package/dist/cdn/chunks/{CollaboratorBar-BWL1Shc1.js.map → CollaboratorBar-D5fycyLP.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-4mrl4zMK.js → CommentsPanel-BPoa1lBK.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-4mrl4zMK.js.map → CommentsPanel-BPoa1lBK.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-BJ87vc7i.js → CommentsSidebar-DLn9qWtv.js} +2 -2
- package/dist/cdn/chunks/{CommentsSidebar-BJ87vc7i.js.map → CommentsSidebar-DLn9qWtv.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BN2_zvRj.js → CountdownToolbar-D5_QBuhO.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-BN2_zvRj.js.map → CountdownToolbar-D5_QBuhO.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BDwegn0s.js → IssuesPanel-BzVpxRkq.js} +4 -4
- package/dist/cdn/chunks/{IssuesPanel-BDwegn0s.js.map → IssuesPanel-BzVpxRkq.js.map} +1 -1
- package/dist/cdn/chunks/{LanguageMenu-DXq9cXUd.js → LanguageMenu-GEbUX5Oe.js} +5 -5
- package/dist/cdn/chunks/{LanguageMenu-DXq9cXUd.js.map → LanguageMenu-GEbUX5Oe.js.map} +1 -1
- package/dist/cdn/chunks/{LocaleNotices-CUN5K5QJ.js → LocaleNotices-CWRS_G-4.js} +2 -2
- package/dist/cdn/chunks/{LocaleNotices-CUN5K5QJ.js.map → LocaleNotices-CWRS_G-4.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-BEArlbra.js → LogicTagInsertButton-CrkAz1t_.js} +5 -5
- package/dist/cdn/chunks/{LogicTagInsertButton-BEArlbra.js.map → LogicTagInsertButton-CrkAz1t_.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-BHTMNHx0.js → MediaEditModal-CfgN7Jyi.js} +2 -2
- package/dist/cdn/chunks/{MediaEditModal-BHTMNHx0.js.map → MediaEditModal-CfgN7Jyi.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-BlianNRh.js → MediaPanels-Cb5vsgb-.js} +2 -2
- package/dist/cdn/chunks/{MediaPanels-BlianNRh.js.map → MediaPanels-Cb5vsgb-.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-B3SLXXzL.js → MergeTagInput-DkCATtfE.js} +2 -2
- package/dist/cdn/chunks/{MergeTagInput-B3SLXXzL.js.map → MergeTagInput-DkCATtfE.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-Dywp9ntA.js → MergeTagModeToggle-DYAFxyoB.js} +3 -3
- package/dist/cdn/chunks/{MergeTagModeToggle-Dywp9ntA.js.map → MergeTagModeToggle-DYAFxyoB.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-B9TM7FgM.js → MergeTagTextarea-DRS6pXSE.js} +4 -4
- package/dist/cdn/chunks/{MergeTagTextarea-B9TM7FgM.js.map → MergeTagTextarea-DRS6pXSE.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-CVGtTYta.js → ParagraphEditor-rEdKBett.js} +25 -25
- package/dist/cdn/chunks/{ParagraphEditor-CVGtTYta.js.map → ParagraphEditor-rEdKBett.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-Dt_0qOOW.js → RestoreVersionDialog-B7eTijWD.js} +3 -3
- package/dist/cdn/chunks/{RestoreVersionDialog-Dt_0qOOW.js.map → RestoreVersionDialog-B7eTijWD.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-BjN4mnzL.js → RichTextEditorContent-EtUIYzHB.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-BjN4mnzL.js.map → RichTextEditorContent-EtUIYzHB.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-D9eBjE99.js → SaveBlockDialog-BquE_Brz.js} +6 -6
- package/dist/cdn/chunks/{SaveBlockDialog-D9eBjE99.js.map → SaveBlockDialog-BquE_Brz.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-ClsTpkdk.js → SavedBlocksBrowserModal--fNlId5y.js} +6 -6
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-ClsTpkdk.js.map → SavedBlocksBrowserModal--fNlId5y.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-CxlNHhUs.js → SavedBlocksPanels-0Z0dELDm.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-CxlNHhUs.js.map → SavedBlocksPanels-0Z0dELDm.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-C7_Z8phX.js → SavedBlocksPickBar-yezZxZeP.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPickBar-C7_Z8phX.js.map → SavedBlocksPickBar-yezZxZeP.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-B6zDtjSs.js → TemplateSettings-DFetnT9P.js} +6 -6
- package/dist/cdn/chunks/{TemplateSettings-B6zDtjSs.js.map → TemplateSettings-DFetnT9P.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-CJ_QYFua.js → TestEmailModal-DJpwpEZs.js} +7 -7
- package/dist/cdn/chunks/{TestEmailModal-CJ_QYFua.js.map → TestEmailModal-DJpwpEZs.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-CsFrTq_a.js → TestEmailPanel-C2dxmmoW.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-CsFrTq_a.js.map → TestEmailPanel-C2dxmmoW.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-CuKJptyw.js → TitleEditor-Bq62I2SC.js} +8 -8
- package/dist/cdn/chunks/{TitleEditor-CuKJptyw.js.map → TitleEditor-Bq62I2SC.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-TS2WwlPW.js → Toolbar-CwmW8wAI.js} +19 -19
- package/dist/cdn/chunks/{Toolbar-TS2WwlPW.js.map → Toolbar-CwmW8wAI.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-CsadClrH.js → TplModal-DE6BniBg.js} +2 -2
- package/dist/cdn/chunks/{TplModal-CsadClrH.js.map → TplModal-DE6BniBg.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-BNPxnWiO.js → VersionHistoryMenu-BBYU71Ua.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryMenu-BNPxnWiO.js.map → VersionHistoryMenu-BBYU71Ua.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-CieY91f0.js → VersionHistoryPanels-mMMqnf3O.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-CieY91f0.js.map → VersionHistoryPanels-mMMqnf3O.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-BldFvgxJ.js → VersionPreviewBanner-tBz-3lGg.js} +2 -2
- package/dist/cdn/chunks/{VersionPreviewBanner-BldFvgxJ.js.map → VersionPreviewBanner-tBz-3lGg.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-DtnRuKWE.js → WrapperBlock-B9XxtFql.js} +4 -4
- package/dist/cdn/chunks/{WrapperBlock-DtnRuKWE.js.map → WrapperBlock-B9XxtFql.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-19xd5ZPi.js → blockTypeIcons-CGxNYHVA.js} +6 -6
- package/dist/cdn/chunks/{blockTypeIcons-19xd5ZPi.js.map → blockTypeIcons-CGxNYHVA.js.map} +1 -1
- package/dist/cdn/chunks/{composables-CUIiW9OD.js → composables-CkthyXi9.js} +12 -12
- package/dist/cdn/chunks/{composables-CUIiW9OD.js.map → composables-CkthyXi9.js.map} +1 -1
- package/dist/cdn/chunks/{createCloudRuntime-B7D04wKf.js → createCloudRuntime-k12jYbXP.js} +3 -3
- package/dist/cdn/chunks/{createCloudRuntime-B7D04wKf.js.map → createCloudRuntime-k12jYbXP.js.map} +1 -1
- package/dist/cdn/chunks/{editor-modal-CarOiAYJ.js → editor-modal-CXSSZplR.js} +4 -4
- package/dist/cdn/chunks/{editor-modal-CarOiAYJ.js.map → editor-modal-CXSSZplR.js.map} +1 -1
- package/dist/cdn/chunks/en-DYMYt1TN.js +1 -0
- package/dist/cdn/chunks/{extensions-Cbvk9i08.js → extensions-Djyg5slk.js} +5 -5
- package/dist/cdn/chunks/{extensions-Cbvk9i08.js.map → extensions-Djyg5slk.js.map} +1 -1
- package/dist/cdn/chunks/{icons-Cl4oR2mf.js → icons-C7vjUBLn.js} +47 -47
- package/dist/cdn/chunks/{icons-Cl4oR2mf.js.map → icons-C7vjUBLn.js.map} +1 -1
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-BJ-MnCqF.js → normalizeMergeTagMarkup-nDyYIXvL.js} +2 -2
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-BJ-MnCqF.js.map → normalizeMergeTagMarkup-nDyYIXvL.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-D2wISRHq.js → preRenderCustomBlocks-CxwYcAQe.js} +2 -2
- package/dist/cdn/chunks/{preRenderCustomBlocks-D2wISRHq.js.map → preRenderCustomBlocks-CxwYcAQe.js.map} +1 -1
- package/dist/cdn/chunks/{sanitizeHtml-CB7fjHFs.js → sanitizeHtml-5T_KaDcp.js} +2 -2
- package/dist/cdn/chunks/{sanitizeHtml-CB7fjHFs.js.map → sanitizeHtml-5T_KaDcp.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-C_yggK1_.js → socialIcons-CkgQUpim.js} +3 -3
- package/dist/cdn/chunks/{socialIcons-C_yggK1_.js.map → socialIcons-CkgQUpim.js.map} +1 -1
- package/dist/cdn/chunks/{src-Bp7bZcuD.js → src-BRyzUujm.js} +2 -2
- package/dist/cdn/chunks/{src-Bp7bZcuD.js.map → src-BRyzUujm.js.map} +1 -1
- package/dist/cdn/chunks/{src-CdVAke9t.js → src-CVHGPKSW.js} +553 -547
- package/dist/cdn/chunks/src-CVHGPKSW.js.map +1 -0
- package/dist/cdn/chunks/{src-D-URHI0Z.js → src-CpUX1Mhb.js} +3 -3
- package/dist/cdn/chunks/{src-D-URHI0Z.js.map → src-CpUX1Mhb.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-BPiZqxCt.js → tiptap-B7gxx0aJ.js} +2578 -2570
- package/dist/cdn/chunks/tiptap-B7gxx0aJ.js.map +1 -0
- package/dist/cdn/chunks/{useLocalizedDisplay-slFOCPrh.js → useLocalizedDisplay-7iwZ1UhB.js} +2 -2
- package/dist/cdn/chunks/{useLocalizedDisplay-slFOCPrh.js.map → useLocalizedDisplay-7iwZ1UhB.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-lPjCGeGC.js → useLogicTag-YXRBcfgG.js} +2 -2
- package/dist/cdn/chunks/{useLogicTag-lPjCGeGC.js.map → useLogicTag-YXRBcfgG.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-BKNBwIry.js → useMergeTag-lb-Wrw-B.js} +2 -2
- package/dist/cdn/chunks/{useMergeTag-BKNBwIry.js.map → useMergeTag-lb-Wrw-B.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-CzTFFaJA.js → withCurrentFont-BaeBoPQZ.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-CzTFFaJA.js.map → withCurrentFont-BaeBoPQZ.js.map} +1 -1
- package/dist/cdn/editor.js +25 -25
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-C7ua4TAK.js → check-ErKdPXG6.js} +1 -1
- package/dist/{chevron-down-DftQrAkI.js → chevron-down-C_vv5fZE.js} +1 -1
- package/dist/{chevron-right-B-DULGbg.js → chevron-right-Cw4GpjFA.js} +1 -1
- package/dist/{chevron-up-CeYsyD8c.js → chevron-up-uijYZoph.js} +1 -1
- package/dist/{circle-exclamation-point-DHjORV_I.js → circle-exclamation-point-CIYHx5Tw.js} +1 -1
- package/dist/{clock-CajOtLEZ.js → clock-tnC1IvZk.js} +1 -1
- package/dist/{composables-DbjgUQlV.js → composables-BrzGZQkd.js} +17 -17
- package/dist/{createCloudRuntime-Cnh2M6iT.js → createCloudRuntime-DgQfMi22.js} +2 -2
- package/dist/{createLucideIcon-D-mELTSY.js → createLucideIcon-CssArtUe.js} +5 -5
- package/dist/{dist-B3G4Yvpd.js → dist-BTUMr4Pb.js} +2 -2
- package/dist/{dist-CAvsz9cW.js → dist-BTjObRcv.js} +349 -343
- package/dist/{dist-B15BvV94.js → dist-BlrlMP8f.js} +2 -2
- package/dist/{dist-CMBOqk9I.js → dist-C-NRkFsp.js} +5 -5
- package/dist/{dist-BmV-2uBJ.js → dist-CkHJRChP.js} +2 -2
- package/dist/dist-CkIeJEsa.js +4 -0
- package/dist/{dist-DI_8rB1X.js → dist-Clfx1JeL.js} +2 -2
- package/dist/{dist-BxKFi2h_.js → dist-CsplpC_6.js} +2 -2
- package/dist/{dist-CXTsTO5h.js → dist-DY3WbyCO.js} +2 -2
- package/dist/{dist-DENg3ORe.js → dist-DwpKFWF4.js} +1206 -1198
- package/dist/{dist-D5BUcCjv.js → dist-HKEDfp__.js} +2 -2
- package/dist/{dist-DAdrn64r.js → dist-bWIkrMkM.js} +2 -2
- package/dist/dist-eAgG-nCb.js +4 -0
- package/dist/{editor-modal-CgsaLpwB.js → editor-modal-BWvxfSj8.js} +15 -15
- package/dist/en-DvCaYqiR.js +1 -0
- package/dist/{extensions-7fb-XtNJ.js → extensions-Cyp2x7cD.js} +6 -6
- package/dist/{eye-fe5sKF_K.js → eye-DK4--qHk.js} +1 -1
- package/dist/{image-CUC7SZiW.js → image-B5pJOw5Q.js} +1 -1
- package/dist/{info-DDbLU4pT.js → info-DKM0_thN.js} +1 -1
- package/dist/{link-C2icj0iH.js → link-BNgTZ_Sw.js} +1 -1
- package/dist/{list-KYC_Jb5A.js → list-Bqynqm7o.js} +1 -1
- package/dist/{loader-circle-DmyagWpc.js → loader-circle-BMc3fVpa.js} +1 -1
- package/dist/{message-circle-ijyWn6UJ.js → message-circle-D_TpvAJh.js} +1 -1
- package/dist/{normalizeMergeTagMarkup-GrXJfXsQ.js → normalizeMergeTagMarkup-fgoVMKAc.js} +1 -1
- package/dist/{package-CKYm_jQY.js → package-D2fov5PU.js} +1 -1
- package/dist/{pencil-C2TRSR-Y.js → pencil-BNdkJyfY.js} +1 -1
- package/dist/{plus-CotJVDxb.js → plus-CWmBmMx-.js} +1 -1
- package/dist/{preRenderCustomBlocks-DuXtzD-F.js → preRenderCustomBlocks-CgPtlLGL.js} +1 -1
- package/dist/{refresh-cw-CuCRV6D5.js → refresh-cw-Ryg1j66N.js} +1 -1
- package/dist/{rotate-ccw-BlnQ3y6R.js → rotate-ccw-D8j7gXXv.js} +1 -1
- package/dist/{sanitizeHtml-eV4_BpI6.js → sanitizeHtml-D2wueiEe.js} +2 -2
- package/dist/{search-Dxw6oFrZ.js → search-CX2JkSHz.js} +1 -1
- package/dist/{send-C-blQBZ9.js → send-BLR1b-p5.js} +1 -1
- package/dist/{smartphone-rLz4X-Dd.js → smartphone-Co8m0LLg.js} +1 -1
- package/dist/{socialIcons-brRkK9Om.js → socialIcons-ZfH8PyV2.js} +4 -4
- package/dist/{sparkles-JWQlUiSn.js → sparkles-Dc3Undp5.js} +1 -1
- package/dist/{square-DshDy1Il.js → square-CPw_cyX8.js} +1 -1
- package/dist/templatical-editor.js +34 -34
- package/dist/{text-align-start-CyasaQtr.js → text-align-start-2VZGhCiK.js} +13 -13
- package/dist/{trash-B1lZp2Tv.js → trash-t6XXliVc.js} +1 -1
- package/dist/{triangle-exclamation-point-BhJvBEoT.js → triangle-exclamation-point-_YYWE2ZH.js} +1 -1
- package/dist/{upload-CNK8JX38.js → upload-BWYXWYHb.js} +1 -1
- package/dist/{useLocalizedDisplay-DoaT7nWk.js → useLocalizedDisplay-9RqT2y_Y.js} +1 -1
- package/dist/{useLogicTag-cTC2KbWd.js → useLogicTag-BTCtn-uG.js} +1 -1
- package/dist/{useMergeTag-D2YDZ8vR.js → useMergeTag-QlXUjCWT.js} +1 -1
- package/dist/{useScrollToBlock-vf_KD0FM.js → useScrollToBlock-DruzlN2h.js} +1 -1
- package/dist/{withCurrentFont-DAmED4fN.js → withCurrentFont-BXZ7g-K6.js} +1 -1
- package/dist/{x-DbLX5Qdm.js → x-CTKOxIyZ.js} +1 -1
- package/package.json +22 -22
- package/dist/cdn/chunks/en-B4s_0ryk.js +0 -1
- package/dist/cdn/chunks/src-CdVAke9t.js.map +0 -1
- package/dist/cdn/chunks/tiptap-BPiZqxCt.js.map +0 -1
- package/dist/dist-D9cbSSSx.js +0 -4
- package/dist/dist-ELLEk-lS.js +0 -4
- package/dist/en-DBLcB-CW.js +0 -1
|
@@ -917,13 +917,12 @@ function Ct(e, t, n, r) {
|
|
|
917
917
|
}
|
|
918
918
|
function wt(e, t, n) {
|
|
919
919
|
D(e.l10n) || (e.l10n = {});
|
|
920
|
-
let r = e.l10n;
|
|
921
|
-
|
|
922
|
-
let
|
|
923
|
-
for (let e of n.
|
|
924
|
-
for (let [e, t] of Object.entries(n.
|
|
925
|
-
|
|
926
|
-
n.hidden === !0 ? i.hidden = !0 : n.hidden === !1 && delete i.hidden, i.text && Object.keys(i.text).length === 0 && delete i.text, i.set && Object.keys(i.set).length === 0 && delete i.set, Object.keys(i).length === 0 && delete r[t], Object.keys(r).length === 0 && delete e.l10n;
|
|
920
|
+
let r = e.l10n, i = Object.prototype.hasOwnProperty.call(r, t) ? r[t] : void 0, a = D(i) ? i : {};
|
|
921
|
+
a !== i && (r[t] = a);
|
|
922
|
+
for (let e of n.unset) a.text && delete a.text[e], a.set && delete a.set[e];
|
|
923
|
+
for (let [e, t] of Object.entries(n.text)) a.text ||= {}, a.text[e] = m(t), a.set && delete a.set[e];
|
|
924
|
+
for (let [e, t] of Object.entries(n.set)) a.set ||= {}, a.set[e] = m(t), a.text && delete a.text[e];
|
|
925
|
+
n.hidden === !0 ? a.hidden = !0 : n.hidden === !1 && delete a.hidden, a.text && Object.keys(a.text).length === 0 && delete a.text, a.set && Object.keys(a.set).length === 0 && delete a.set, Object.keys(a).length === 0 && delete r[t], Object.keys(r).length === 0 && delete e.l10n;
|
|
927
926
|
}
|
|
928
927
|
function I(e) {
|
|
929
928
|
return D(e) ? e.type === "slot" || Array.isArray(e.children) && e.children.some((e) => Array.isArray(e) ? e.some(I) : I(e)) : !1;
|
|
@@ -1213,28 +1212,28 @@ var Vt = class extends he {
|
|
|
1213
1212
|
super(e, t.status ?? Bt(t.code), t.code), this.name = "CollaborationConflict", t.opIndex !== void 0 && (this.opIndex = t.opIndex), t.holder !== void 0 && (this.holder = t.holder), t.holders !== void 0 && (this.holders = t.holders);
|
|
1214
1213
|
}
|
|
1215
1214
|
};
|
|
1216
|
-
function
|
|
1215
|
+
function B(e) {
|
|
1217
1216
|
return e.type === "section";
|
|
1218
1217
|
}
|
|
1219
|
-
function
|
|
1218
|
+
function Ht(e) {
|
|
1220
1219
|
return e.type === "custom";
|
|
1221
1220
|
}
|
|
1222
|
-
function
|
|
1221
|
+
function V(e) {
|
|
1223
1222
|
return e.type === "slot";
|
|
1224
1223
|
}
|
|
1225
|
-
function
|
|
1224
|
+
function H(e) {
|
|
1226
1225
|
return e.type === "wrapper";
|
|
1227
1226
|
}
|
|
1228
|
-
var
|
|
1227
|
+
var Ut = {
|
|
1229
1228
|
content: "<p>Enter your title</p>",
|
|
1230
1229
|
level: 2,
|
|
1231
1230
|
textAlign: "left"
|
|
1232
|
-
},
|
|
1231
|
+
}, Wt = { content: "<p>Enter your text here</p>" }, Gt = {
|
|
1233
1232
|
src: "",
|
|
1234
1233
|
alt: "",
|
|
1235
1234
|
width: "full",
|
|
1236
1235
|
align: "center"
|
|
1237
|
-
},
|
|
1236
|
+
}, Kt = {
|
|
1238
1237
|
text: "Click Here",
|
|
1239
1238
|
url: "",
|
|
1240
1239
|
backgroundColor: "#333333",
|
|
@@ -1248,36 +1247,36 @@ var Wt = {
|
|
|
1248
1247
|
left: 24
|
|
1249
1248
|
},
|
|
1250
1249
|
align: "center"
|
|
1251
|
-
},
|
|
1250
|
+
}, qt = {
|
|
1252
1251
|
lineStyle: "solid",
|
|
1253
1252
|
color: "#e0e0e0",
|
|
1254
1253
|
thickness: 1,
|
|
1255
1254
|
width: "full"
|
|
1256
|
-
},
|
|
1255
|
+
}, Jt = { columns: "1" }, Yt = {
|
|
1257
1256
|
url: "",
|
|
1258
1257
|
thumbnailUrl: "",
|
|
1259
1258
|
alt: "Video",
|
|
1260
1259
|
width: "full",
|
|
1261
1260
|
align: "center"
|
|
1262
|
-
},
|
|
1261
|
+
}, Xt = {
|
|
1263
1262
|
iconStyle: "solid",
|
|
1264
1263
|
iconSize: "medium",
|
|
1265
1264
|
spacing: 10,
|
|
1266
1265
|
align: "center"
|
|
1267
|
-
},
|
|
1266
|
+
}, Zt = { height: 24 }, Qt = { content: "" }, $t = {
|
|
1268
1267
|
fontSize: 15,
|
|
1269
1268
|
textAlign: "center",
|
|
1270
1269
|
separator: "|",
|
|
1271
1270
|
separatorColor: "#e0e0e0",
|
|
1272
1271
|
spacing: 10
|
|
1273
|
-
},
|
|
1272
|
+
}, en = {
|
|
1274
1273
|
hasHeaderRow: !0,
|
|
1275
1274
|
borderColor: "#e0e0e0",
|
|
1276
1275
|
borderWidth: 1,
|
|
1277
1276
|
cellPadding: 8,
|
|
1278
1277
|
fontSize: 15,
|
|
1279
1278
|
textAlign: "left"
|
|
1280
|
-
},
|
|
1279
|
+
}, tn = {
|
|
1281
1280
|
targetDate: "",
|
|
1282
1281
|
timezone: "UTC",
|
|
1283
1282
|
showDays: !0,
|
|
@@ -1297,21 +1296,21 @@ var Wt = {
|
|
|
1297
1296
|
expiredMessage: "This offer has expired",
|
|
1298
1297
|
expiredImageUrl: "",
|
|
1299
1298
|
hideOnExpiry: !1
|
|
1299
|
+
}, nn = {
|
|
1300
|
+
title: Ut,
|
|
1301
|
+
paragraph: Wt,
|
|
1302
|
+
image: Gt,
|
|
1303
|
+
button: Kt,
|
|
1304
|
+
divider: qt,
|
|
1305
|
+
section: Jt,
|
|
1306
|
+
video: Yt,
|
|
1307
|
+
social: Xt,
|
|
1308
|
+
spacer: Zt,
|
|
1309
|
+
html: Qt,
|
|
1310
|
+
menu: $t,
|
|
1311
|
+
table: en,
|
|
1312
|
+
countdown: tn
|
|
1300
1313
|
}, rn = {
|
|
1301
|
-
title: Wt,
|
|
1302
|
-
paragraph: Gt,
|
|
1303
|
-
image: Kt,
|
|
1304
|
-
button: qt,
|
|
1305
|
-
divider: Jt,
|
|
1306
|
-
section: Yt,
|
|
1307
|
-
video: Xt,
|
|
1308
|
-
social: Zt,
|
|
1309
|
-
spacer: Qt,
|
|
1310
|
-
html: $t,
|
|
1311
|
-
menu: en,
|
|
1312
|
-
table: tn,
|
|
1313
|
-
countdown: nn
|
|
1314
|
-
}, an = {
|
|
1315
1314
|
width: 600,
|
|
1316
1315
|
backgroundColor: "#ffffff",
|
|
1317
1316
|
textColor: "#1a1a1a",
|
|
@@ -1319,28 +1318,28 @@ var Wt = {
|
|
|
1319
1318
|
fontFamily: "Arial",
|
|
1320
1319
|
locale: "en"
|
|
1321
1320
|
};
|
|
1322
|
-
function
|
|
1321
|
+
function an(e) {
|
|
1323
1322
|
return typeof e == "object" && !!e && !Array.isArray(e) && Object.getPrototypeOf(e) === Object.prototype;
|
|
1324
1323
|
}
|
|
1325
|
-
function
|
|
1324
|
+
function on(e, t) {
|
|
1326
1325
|
let n = { ...e };
|
|
1327
1326
|
for (let r of Object.keys(t)) {
|
|
1328
1327
|
let i = e[r], a = t[r];
|
|
1329
|
-
a !== void 0 && (n[r] =
|
|
1328
|
+
a !== void 0 && (n[r] = an(i) && an(a) ? on(i, a) : a);
|
|
1330
1329
|
}
|
|
1331
1330
|
return n;
|
|
1332
1331
|
}
|
|
1333
|
-
function
|
|
1332
|
+
function sn(e = "Arial", t) {
|
|
1334
1333
|
return {
|
|
1335
1334
|
blocks: [],
|
|
1336
1335
|
settings: {
|
|
1337
|
-
...
|
|
1336
|
+
...rn,
|
|
1338
1337
|
fontFamily: e,
|
|
1339
1338
|
...t
|
|
1340
1339
|
}
|
|
1341
1340
|
};
|
|
1342
1341
|
}
|
|
1343
|
-
var
|
|
1342
|
+
var cn = [
|
|
1344
1343
|
"ar",
|
|
1345
1344
|
"he",
|
|
1346
1345
|
"iw",
|
|
@@ -1354,23 +1353,23 @@ var ln = [
|
|
|
1354
1353
|
"ckb",
|
|
1355
1354
|
"ks"
|
|
1356
1355
|
];
|
|
1357
|
-
function
|
|
1356
|
+
function ln(e) {
|
|
1358
1357
|
let t = e?.trim().replace(/_/g, "-").split("-")[0]?.toLowerCase();
|
|
1359
|
-
return !!t &&
|
|
1358
|
+
return !!t && cn.includes(t);
|
|
1360
1359
|
}
|
|
1361
|
-
function
|
|
1362
|
-
return e.direction === "ltr" || e.direction === "rtl" ? e.direction :
|
|
1360
|
+
function un(e) {
|
|
1361
|
+
return e.direction === "ltr" || e.direction === "rtl" ? e.direction : ln(e.locale) ? "rtl" : "ltr";
|
|
1363
1362
|
}
|
|
1364
|
-
var
|
|
1365
|
-
function
|
|
1363
|
+
var dn = 2e4, fn = /* @__PURE__ */ new Set(["\"", "'"]);
|
|
1364
|
+
function pn(e, t) {
|
|
1366
1365
|
let n = null, r = "tag";
|
|
1367
1366
|
for (let i = t; i < e.length; i++) {
|
|
1368
1367
|
let t = e[i];
|
|
1369
1368
|
if (n !== null) t === n && (n = null);
|
|
1370
1369
|
else {
|
|
1371
1370
|
if (r === "beforeValue") {
|
|
1372
|
-
if (
|
|
1373
|
-
if (
|
|
1371
|
+
if (U(t)) continue;
|
|
1372
|
+
if (fn.has(t)) {
|
|
1374
1373
|
n = t, r = "tag";
|
|
1375
1374
|
continue;
|
|
1376
1375
|
}
|
|
@@ -1378,19 +1377,19 @@ function mn(e, t) {
|
|
|
1378
1377
|
}
|
|
1379
1378
|
if (r === "unquotedValue") {
|
|
1380
1379
|
if (t === ">") return i;
|
|
1381
|
-
|
|
1380
|
+
U(t) && (r = "tag");
|
|
1382
1381
|
} else if (t === "=") r = "beforeValue";
|
|
1383
1382
|
else if (t === ">") return i;
|
|
1384
1383
|
}
|
|
1385
1384
|
}
|
|
1386
1385
|
return -1;
|
|
1387
1386
|
}
|
|
1388
|
-
function
|
|
1387
|
+
function mn(e, t) {
|
|
1389
1388
|
let n = null;
|
|
1390
1389
|
for (let r = t; r < e.length; r++) {
|
|
1391
1390
|
let t = e[r];
|
|
1392
1391
|
if (n !== null) t === n && (n = null);
|
|
1393
|
-
else if (
|
|
1392
|
+
else if (fn.has(t)) n = t;
|
|
1394
1393
|
else if (t === ">") return {
|
|
1395
1394
|
end: r,
|
|
1396
1395
|
nextSpan: -1
|
|
@@ -1405,13 +1404,13 @@ function hn(e, t) {
|
|
|
1405
1404
|
nextSpan: -1
|
|
1406
1405
|
};
|
|
1407
1406
|
}
|
|
1408
|
-
function
|
|
1407
|
+
function hn(e) {
|
|
1409
1408
|
return e !== " " && e !== " " && e !== "\n" && e !== "\r" && e !== "\f" && e !== "=" && e !== ">" && e !== "/";
|
|
1410
1409
|
}
|
|
1411
|
-
function
|
|
1410
|
+
function U(e) {
|
|
1412
1411
|
return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
|
|
1413
1412
|
}
|
|
1414
|
-
var
|
|
1413
|
+
var gn = {
|
|
1415
1414
|
AMP: "&",
|
|
1416
1415
|
COPY: "©",
|
|
1417
1416
|
GT: ">",
|
|
@@ -1672,50 +1671,50 @@ var _n = {
|
|
|
1672
1671
|
zwj: "",
|
|
1673
1672
|
zwnj: ""
|
|
1674
1673
|
};
|
|
1675
|
-
function
|
|
1674
|
+
function W(e) {
|
|
1676
1675
|
return e.includes("&") ? e.replace(/&(#[0-9]+|#[xX][0-9a-fA-F]+|[a-zA-Z][a-zA-Z0-9]*);/g, (e, t) => {
|
|
1677
1676
|
if (t[0] === "#") {
|
|
1678
1677
|
let n = t[1] === "x" || t[1] === "X" ? Number.parseInt(t.slice(2), 16) : Number.parseInt(t.slice(1), 10);
|
|
1679
1678
|
return !Number.isFinite(n) || n < 1 || n > 1114111 || n >= 55296 && n <= 57343 ? e : String.fromCodePoint(n);
|
|
1680
1679
|
}
|
|
1681
|
-
return Object.hasOwn(
|
|
1680
|
+
return Object.hasOwn(gn, t) ? gn[t] : e;
|
|
1682
1681
|
}) : e;
|
|
1683
1682
|
}
|
|
1684
|
-
function
|
|
1683
|
+
function _n(e, t) {
|
|
1685
1684
|
let n = t.toLowerCase(), r = 0;
|
|
1686
1685
|
for (; r < e.length;) {
|
|
1687
|
-
for (; r < e.length && (
|
|
1686
|
+
for (; r < e.length && (U(e[r]) || e[r] === "/");) r++;
|
|
1688
1687
|
if (r >= e.length) break;
|
|
1689
1688
|
let t = r;
|
|
1690
|
-
for (; r < e.length &&
|
|
1689
|
+
for (; r < e.length && hn(e[r]);) r++;
|
|
1691
1690
|
let i = e.substring(t, r).toLowerCase();
|
|
1692
1691
|
if (i === "") {
|
|
1693
1692
|
r++;
|
|
1694
1693
|
continue;
|
|
1695
1694
|
}
|
|
1696
|
-
for (; r < e.length &&
|
|
1695
|
+
for (; r < e.length && U(e[r]);) r++;
|
|
1697
1696
|
if (e[r] !== "=") continue;
|
|
1698
|
-
for (r++; r < e.length &&
|
|
1697
|
+
for (r++; r < e.length && U(e[r]);) r++;
|
|
1699
1698
|
let a = e[r];
|
|
1700
|
-
if (
|
|
1699
|
+
if (fn.has(a)) {
|
|
1701
1700
|
let t = r + 1, o = e.indexOf(a, t);
|
|
1702
1701
|
if (o === -1) return null;
|
|
1703
|
-
if (i === n) return
|
|
1702
|
+
if (i === n) return W(e.substring(t, o));
|
|
1704
1703
|
r = o + 1;
|
|
1705
1704
|
continue;
|
|
1706
1705
|
}
|
|
1707
1706
|
let o = r;
|
|
1708
|
-
for (; r < e.length && !
|
|
1709
|
-
if (i === n) return
|
|
1707
|
+
for (; r < e.length && !U(e[r]) && e[r] !== ">";) r++;
|
|
1708
|
+
if (i === n) return W(e.substring(o, r));
|
|
1710
1709
|
}
|
|
1711
1710
|
return null;
|
|
1712
1711
|
}
|
|
1713
|
-
function
|
|
1714
|
-
return
|
|
1712
|
+
function vn(e, t) {
|
|
1713
|
+
return bn(e, t, !0);
|
|
1715
1714
|
}
|
|
1716
|
-
function
|
|
1715
|
+
function yn(e) {
|
|
1717
1716
|
let t = [];
|
|
1718
|
-
return
|
|
1717
|
+
return bn(e, (n, r, i) => {
|
|
1719
1718
|
let a = e.slice(r, i);
|
|
1720
1719
|
return t.push({
|
|
1721
1720
|
start: r,
|
|
@@ -1724,7 +1723,7 @@ function bn(e) {
|
|
|
1724
1723
|
}), a;
|
|
1725
1724
|
}, !0), t;
|
|
1726
1725
|
}
|
|
1727
|
-
function
|
|
1726
|
+
function bn(e, t, n) {
|
|
1728
1727
|
let r = "", i = 0;
|
|
1729
1728
|
for (; i < e.length;) {
|
|
1730
1729
|
let a = e.indexOf("<span", i);
|
|
@@ -1737,7 +1736,7 @@ function xn(e, t, n) {
|
|
|
1737
1736
|
r += e.substring(i, a + 5), i = a + 5;
|
|
1738
1737
|
continue;
|
|
1739
1738
|
}
|
|
1740
|
-
let { end: s, nextSpan: c } =
|
|
1739
|
+
let { end: s, nextSpan: c } = mn(e, a + 5);
|
|
1741
1740
|
if (c !== -1) {
|
|
1742
1741
|
r += e.substring(i, c), i = c;
|
|
1743
1742
|
continue;
|
|
@@ -1746,12 +1745,12 @@ function xn(e, t, n) {
|
|
|
1746
1745
|
r += e.substring(i);
|
|
1747
1746
|
break;
|
|
1748
1747
|
}
|
|
1749
|
-
let l = e.substring(a + 5, s), u =
|
|
1748
|
+
let l = e.substring(a + 5, s), u = Sn(l, "data-merge-tag") ?? Sn(l, "data-logic-merge-tag");
|
|
1750
1749
|
if (u === null) {
|
|
1751
1750
|
r += e.substring(i, s + 1), i = s + 1;
|
|
1752
1751
|
continue;
|
|
1753
1752
|
}
|
|
1754
|
-
let d =
|
|
1753
|
+
let d = xn(e, s + 1, n);
|
|
1755
1754
|
if (d === -1) {
|
|
1756
1755
|
r += e.substring(i);
|
|
1757
1756
|
break;
|
|
@@ -1760,7 +1759,7 @@ function xn(e, t, n) {
|
|
|
1760
1759
|
}
|
|
1761
1760
|
return r;
|
|
1762
1761
|
}
|
|
1763
|
-
function
|
|
1762
|
+
function xn(e, t, n) {
|
|
1764
1763
|
if (!n) {
|
|
1765
1764
|
let n = e.indexOf("</span>", t);
|
|
1766
1765
|
return n === -1 ? -1 : n + 7;
|
|
@@ -1769,7 +1768,7 @@ function Sn(e, t, n) {
|
|
|
1769
1768
|
for (; i < e.length;) {
|
|
1770
1769
|
let t = e.indexOf("<", i);
|
|
1771
1770
|
if (t === -1) return -1;
|
|
1772
|
-
let n =
|
|
1771
|
+
let n = pn(e, t + 1);
|
|
1773
1772
|
if (n === -1) return -1;
|
|
1774
1773
|
let a = e.startsWith("</span", t), o = e.startsWith("<span", t), s = e[t + (a ? 6 : 5)];
|
|
1775
1774
|
if ((o || a) && (s === ">" || s === "/" || /\s/.test(s)) && (r += a ? -1 : 1, r === 0)) return n + 1;
|
|
@@ -1777,10 +1776,10 @@ function Sn(e, t, n) {
|
|
|
1777
1776
|
}
|
|
1778
1777
|
return -1;
|
|
1779
1778
|
}
|
|
1780
|
-
function
|
|
1781
|
-
return
|
|
1779
|
+
function Sn(e, t) {
|
|
1780
|
+
return _n(e, t);
|
|
1782
1781
|
}
|
|
1783
|
-
var
|
|
1782
|
+
var G = {
|
|
1784
1783
|
liquid: {
|
|
1785
1784
|
value: /\{\{.+?\}\}/g,
|
|
1786
1785
|
logic: /\{%-?\s*(\w+).*?-?%\}/g,
|
|
@@ -1806,13 +1805,13 @@ var W = {
|
|
|
1806
1805
|
closer: "=%%"
|
|
1807
1806
|
}
|
|
1808
1807
|
};
|
|
1809
|
-
function
|
|
1810
|
-
return Object.keys(
|
|
1811
|
-
let n =
|
|
1808
|
+
function K(e) {
|
|
1809
|
+
return Object.keys(G).find((t) => {
|
|
1810
|
+
let n = G[t];
|
|
1812
1811
|
return (e.value === n.value || e.value.source === n.value.source && e.value.flags.replace(/[gy]/g, "") === n.value.flags.replace(/[gy]/g, "")) && (e.logic === n.logic || e.logic.source === n.logic.source && e.logic.flags.replace(/[gy]/g, "") === n.logic.flags.replace(/[gy]/g, ""));
|
|
1813
1812
|
});
|
|
1814
1813
|
}
|
|
1815
|
-
function
|
|
1814
|
+
function Cn(e, t, n) {
|
|
1816
1815
|
for (let r = n; r < e.length; r++) {
|
|
1817
1816
|
let n = e.charCodeAt(r);
|
|
1818
1817
|
if (n === 10 || n === 13 || n === 8232 || n === 8233) return {
|
|
@@ -1829,8 +1828,8 @@ function wn(e, t, n) {
|
|
|
1829
1828
|
lineBreak: -1
|
|
1830
1829
|
};
|
|
1831
1830
|
}
|
|
1832
|
-
function
|
|
1833
|
-
let a =
|
|
1831
|
+
function q(e, t, n, r = 0, i = Infinity) {
|
|
1832
|
+
let a = K(t);
|
|
1834
1833
|
if (!a) {
|
|
1835
1834
|
let a = t[n], o = new RegExp(a.source, a.flags.replace(/[gy]/g, "") + "g");
|
|
1836
1835
|
return o.lastIndex = r, [...e.matchAll(o)].slice(0, i).map((e) => ({
|
|
@@ -1854,7 +1853,7 @@ function K(e, t, n, r = 0, i = Infinity) {
|
|
|
1854
1853
|
let r = u?.lastIndex ?? t + s.length, i = a === "mailchimp" && n === "value" ? {
|
|
1855
1854
|
close: e.startsWith(c, r) ? r : -1,
|
|
1856
1855
|
lineBreak: -1
|
|
1857
|
-
} :
|
|
1856
|
+
} : Cn(e, c, Math.max(r, t + s.length + +(n === "value")));
|
|
1858
1857
|
if (i.lineBreak >= 0) {
|
|
1859
1858
|
let r = i.lineBreak, o = n === "logic" && (a === "liquid" || a === "ampscript") ? e.lastIndexOf(s, r) : -1;
|
|
1860
1859
|
p = o > t ? o : r + 1;
|
|
@@ -1876,8 +1875,8 @@ function K(e, t, n, r = 0, i = Infinity) {
|
|
|
1876
1875
|
}
|
|
1877
1876
|
return f;
|
|
1878
1877
|
}
|
|
1879
|
-
function
|
|
1880
|
-
let n =
|
|
1878
|
+
function wn(e, t) {
|
|
1879
|
+
let n = K(t);
|
|
1881
1880
|
if (!n) {
|
|
1882
1881
|
let n = RegExp(`(${t.value.source}|${t.logic.source})`, "g");
|
|
1883
1882
|
return [...e.matchAll(n)].map((e) => ({
|
|
@@ -1885,7 +1884,7 @@ function Tn(e, t) {
|
|
|
1885
1884
|
value: e[0]
|
|
1886
1885
|
}));
|
|
1887
1886
|
}
|
|
1888
|
-
if (n === "handlebars") return
|
|
1887
|
+
if (n === "handlebars") return q(e, t, "value");
|
|
1889
1888
|
if (n === "mailchimp") {
|
|
1890
1889
|
let n = [], r = new RegExp(t.value.source, "y"), i = new RegExp(t.logic.source, "y"), a = /\*\|\w+[:|]/y, o = 0;
|
|
1891
1890
|
for (; o < e.length;) {
|
|
@@ -1904,7 +1903,7 @@ function Tn(e, t) {
|
|
|
1904
1903
|
o = t + 2;
|
|
1905
1904
|
continue;
|
|
1906
1905
|
}
|
|
1907
|
-
let c =
|
|
1906
|
+
let c = Cn(e, "|*", a.lastIndex);
|
|
1908
1907
|
if (c.lineBreak >= 0) {
|
|
1909
1908
|
o = c.lineBreak + 1;
|
|
1910
1909
|
continue;
|
|
@@ -1919,78 +1918,78 @@ function Tn(e, t) {
|
|
|
1919
1918
|
}
|
|
1920
1919
|
return n;
|
|
1921
1920
|
}
|
|
1922
|
-
let r = [], i = 0, a =
|
|
1921
|
+
let r = [], i = 0, a = q(e, t, "value", i, 1)[0], o = q(e, t, "logic", i, 1)[0];
|
|
1923
1922
|
for (; a || o;) {
|
|
1924
1923
|
let n = !o || a && a.index <= o.index ? a : o;
|
|
1925
|
-
r.push(n), i = n.index + n.value.length, (n === a || a && a.index < i) && (a =
|
|
1924
|
+
r.push(n), i = n.index + n.value.length, (n === a || a && a.index < i) && (a = q(e, t, "value", i, 1)[0]), (n === o || o && o.index < i) && (o = q(e, t, "logic", i, 1)[0]);
|
|
1926
1925
|
}
|
|
1927
1926
|
return r;
|
|
1928
1927
|
}
|
|
1929
|
-
function
|
|
1928
|
+
function Tn(e) {
|
|
1930
1929
|
return typeof e == "string" && e.trim() !== "" ? e : null;
|
|
1931
1930
|
}
|
|
1931
|
+
function En(e) {
|
|
1932
|
+
return Object.values(G).find((t) => t.value.source === e.value.source) ?? null;
|
|
1933
|
+
}
|
|
1932
1934
|
function Dn(e) {
|
|
1933
|
-
return
|
|
1935
|
+
return Tn(e.opener) ?? En(e)?.opener ?? null;
|
|
1934
1936
|
}
|
|
1935
1937
|
function On(e) {
|
|
1936
|
-
return
|
|
1938
|
+
return Tn(e.closer) ?? En(e)?.closer ?? null;
|
|
1937
1939
|
}
|
|
1938
1940
|
function kn(e) {
|
|
1939
|
-
return
|
|
1941
|
+
return e ? typeof e == "string" ? G[e] ?? G.liquid : e : G.liquid;
|
|
1940
1942
|
}
|
|
1941
1943
|
function An(e) {
|
|
1942
|
-
return e ? typeof e == "string" ? W[e] ?? W.liquid : e : W.liquid;
|
|
1943
|
-
}
|
|
1944
|
-
function jn(e) {
|
|
1945
1944
|
let t = e.source, n = e.flags.replace("g", "");
|
|
1946
1945
|
return RegExp(`^${t}$`, n);
|
|
1947
1946
|
}
|
|
1948
|
-
function
|
|
1947
|
+
function jn(e, t) {
|
|
1949
1948
|
let n = e?.trim() || "";
|
|
1950
|
-
return !
|
|
1949
|
+
return !An(t.logic).test(n) && An(t.value).test(n);
|
|
1951
1950
|
}
|
|
1952
|
-
function
|
|
1951
|
+
function Mn(e, t) {
|
|
1953
1952
|
let n = t.find((t) => t.value === e);
|
|
1954
1953
|
return n ? n.label : e;
|
|
1955
1954
|
}
|
|
1956
|
-
function
|
|
1957
|
-
return
|
|
1955
|
+
function Nn(e, t) {
|
|
1956
|
+
return Un(e, "data-merge-tag", (e) => Mn(e, t));
|
|
1958
1957
|
}
|
|
1959
|
-
function
|
|
1958
|
+
function Pn(e, t) {
|
|
1960
1959
|
return t.find((t) => t.value === e)?.sample;
|
|
1961
1960
|
}
|
|
1962
|
-
function
|
|
1963
|
-
return
|
|
1961
|
+
function Fn(e, t) {
|
|
1962
|
+
return Un(e, "data-merge-tag", (e) => Rn(Pn(e, t) ?? Mn(e, t)), { unwrap: (e) => Pn(e, t) !== void 0 });
|
|
1964
1963
|
}
|
|
1965
|
-
function
|
|
1964
|
+
function In(e) {
|
|
1966
1965
|
return e.some((e) => e.sample !== void 0);
|
|
1967
1966
|
}
|
|
1968
|
-
function
|
|
1967
|
+
function Ln(e, t) {
|
|
1969
1968
|
if (!e) return e;
|
|
1970
1969
|
let n = e;
|
|
1971
1970
|
for (let e of t) e.sample !== void 0 && (n = n.split(e.value).join(e.sample));
|
|
1972
1971
|
return n;
|
|
1973
1972
|
}
|
|
1974
|
-
function
|
|
1973
|
+
function Rn(e) {
|
|
1975
1974
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
1976
1975
|
}
|
|
1977
|
-
function
|
|
1976
|
+
function zn(e, t) {
|
|
1978
1977
|
if (!e) return !1;
|
|
1979
|
-
if (
|
|
1978
|
+
if (K(t)) return q(e, t, "value", 0, 1).length > 0 || q(e, t, "logic", 0, 1).length > 0;
|
|
1980
1979
|
let n = new RegExp(t.value.source, t.value.flags), r = new RegExp(t.logic.source, t.logic.flags);
|
|
1981
1980
|
return n.test(e) || r.test(e);
|
|
1982
1981
|
}
|
|
1983
|
-
function
|
|
1984
|
-
return
|
|
1982
|
+
function Bn(e, t) {
|
|
1983
|
+
return An(t.logic).test(e?.trim() || "");
|
|
1985
1984
|
}
|
|
1986
|
-
function
|
|
1985
|
+
function Vn(e, t) {
|
|
1987
1986
|
let n = new RegExp(t.logic.source, t.logic.flags.replace("g", "")), r = e.match(n);
|
|
1988
1987
|
return r && r[1] ? r[1].toUpperCase() : e;
|
|
1989
1988
|
}
|
|
1990
|
-
function
|
|
1991
|
-
return
|
|
1989
|
+
function Hn(e, t) {
|
|
1990
|
+
return Un(e, "data-logic-merge-tag", (e) => Vn(e, t));
|
|
1992
1991
|
}
|
|
1993
|
-
function
|
|
1992
|
+
function Un(e, t, n, r) {
|
|
1994
1993
|
let i = "", a = 0;
|
|
1995
1994
|
for (; a < e.length;) {
|
|
1996
1995
|
let o = e.indexOf("<span", a);
|
|
@@ -2003,7 +2002,7 @@ function Wn(e, t, n, r) {
|
|
|
2003
2002
|
i += e.substring(a, o + 5), a = o + 5;
|
|
2004
2003
|
continue;
|
|
2005
2004
|
}
|
|
2006
|
-
let { end: c, nextSpan: l } =
|
|
2005
|
+
let { end: c, nextSpan: l } = mn(e, o + 5);
|
|
2007
2006
|
if (l !== -1) {
|
|
2008
2007
|
i += e.substring(a, l), a = l;
|
|
2009
2008
|
continue;
|
|
@@ -2012,7 +2011,7 @@ function Wn(e, t, n, r) {
|
|
|
2012
2011
|
i += e.substring(a);
|
|
2013
2012
|
break;
|
|
2014
2013
|
}
|
|
2015
|
-
let u =
|
|
2014
|
+
let u = _n(e.substring(o + 5, c), t);
|
|
2016
2015
|
if (u === null) {
|
|
2017
2016
|
i += e.substring(a, c + 1), a = c + 1;
|
|
2018
2017
|
continue;
|
|
@@ -2027,14 +2026,14 @@ function Wn(e, t, n, r) {
|
|
|
2027
2026
|
}
|
|
2028
2027
|
return i;
|
|
2029
2028
|
}
|
|
2030
|
-
var
|
|
2029
|
+
var Wn = {
|
|
2031
2030
|
title: ["content"],
|
|
2032
2031
|
paragraph: ["content"]
|
|
2033
2032
|
};
|
|
2034
|
-
function
|
|
2033
|
+
function Gn(e) {
|
|
2035
2034
|
let t = [], n = /<[a-z][\w:-]*\b/gi;
|
|
2036
2035
|
for (; n.exec(e);) {
|
|
2037
|
-
let r =
|
|
2036
|
+
let r = pn(e, n.lastIndex);
|
|
2038
2037
|
if (r < 0) break;
|
|
2039
2038
|
let i = n.lastIndex, a = e.slice(i, r), o = /[^\s"'<>/=]+\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+))/g;
|
|
2040
2039
|
for (let e; e = o.exec(a);) {
|
|
@@ -2048,12 +2047,12 @@ function Kn(e) {
|
|
|
2048
2047
|
}
|
|
2049
2048
|
return t;
|
|
2050
2049
|
}
|
|
2051
|
-
function
|
|
2052
|
-
let r = n === "html" ?
|
|
2050
|
+
function Kn(e, t, n) {
|
|
2051
|
+
let r = n === "html" ? yn(e) : [], i = n === "html" ? Gn(e) : [], a = r.map((e) => ({
|
|
2053
2052
|
...e,
|
|
2054
2053
|
attribute: !1
|
|
2055
|
-
})), o = 0, s =
|
|
2056
|
-
let c = e.slice(n, r), l = ["logic", "value"], u = s ? l.map((e) =>
|
|
2054
|
+
})), o = 0, s = K(t) !== void 0, c = (n, r) => {
|
|
2055
|
+
let c = e.slice(n, r), l = ["logic", "value"], u = s ? l.map((e) => q(c, t, e, 0, 1)[0]) : [void 0, void 0], d = s ? null : [t.logic, t.value].map((e) => new RegExp(e.source, e.flags.replace(/[gy]/g, "") + "g")), f = 0;
|
|
2057
2056
|
for (; f < c.length;) {
|
|
2058
2057
|
let e = s ? u.flatMap((e) => e ? [e] : []) : d.flatMap((e, t) => {
|
|
2059
2058
|
let n = u[t];
|
|
@@ -2078,20 +2077,20 @@ function qn(e, t, n) {
|
|
|
2078
2077
|
end: ee,
|
|
2079
2078
|
markup: r.value,
|
|
2080
2079
|
attribute: i[o] !== void 0 && p >= i[o].start && ee <= i[o].end
|
|
2081
|
-
}), f = r.index + r.value.length, s) for (let e = 0; e < l.length; e++) u[e] && u[e].index < f && (u[e] =
|
|
2080
|
+
}), f = r.index + r.value.length, s) for (let e = 0; e < l.length; e++) u[e] && u[e].index < f && (u[e] = q(c, t, l[e], f, 1)[0]);
|
|
2082
2081
|
}
|
|
2083
2082
|
}, l = 0;
|
|
2084
2083
|
for (let e of r) c(l, e.start), l = e.end;
|
|
2085
2084
|
return c(l, e.length), a.sort((e, t) => e.start - t.start);
|
|
2086
2085
|
}
|
|
2087
|
-
function
|
|
2086
|
+
function qn(e) {
|
|
2088
2087
|
if (!e.includes("&")) return { text: e };
|
|
2089
2088
|
let t = "", n = [0], r = 0, i = (i) => {
|
|
2090
2089
|
for (t += e.slice(r, i); r < i;) n.push(++r);
|
|
2091
2090
|
};
|
|
2092
2091
|
for (let a of e.matchAll(/&(?:#[0-9]+|#[xX][0-9a-fA-F]+|[a-zA-Z][a-zA-Z0-9]*);/g)) {
|
|
2093
2092
|
i(a.index);
|
|
2094
|
-
let e =
|
|
2093
|
+
let e = W(a[0]);
|
|
2095
2094
|
t += e;
|
|
2096
2095
|
for (let t = 1; t < e.length; t++) n.push(-1);
|
|
2097
2096
|
r = a.index + a[0].length, n.push(r);
|
|
@@ -2101,17 +2100,17 @@ function Jn(e) {
|
|
|
2101
2100
|
offsets: n
|
|
2102
2101
|
};
|
|
2103
2102
|
}
|
|
2104
|
-
var
|
|
2105
|
-
function
|
|
2106
|
-
let t = JSON.stringify(e), n =
|
|
2103
|
+
var J = /* @__PURE__ */ new Map(), Jn = 32;
|
|
2104
|
+
function Yn(e) {
|
|
2105
|
+
let t = JSON.stringify(e), n = J.get(t);
|
|
2107
2106
|
if (n === void 0) {
|
|
2108
2107
|
let r = e.map((e) => e.trim()).filter(Boolean).sort((e, t) => t.length - e.length).map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
|
|
2109
|
-
n = r.length ? RegExp(`(?<![\\p{L}\\p{N}_])(?:${r.join("|")})(?![\\p{L}\\p{N}_])`, "gu") : null,
|
|
2108
|
+
n = r.length ? RegExp(`(?<![\\p{L}\\p{N}_])(?:${r.join("|")})(?![\\p{L}\\p{N}_])`, "gu") : null, J.size >= Jn && J.delete(J.keys().next().value), J.set(t, n);
|
|
2110
2109
|
}
|
|
2111
2110
|
return n;
|
|
2112
2111
|
}
|
|
2113
|
-
function
|
|
2114
|
-
let r = n.length ?
|
|
2112
|
+
function Xn(e, t, n) {
|
|
2113
|
+
let r = n.length ? Yn(n) : null;
|
|
2115
2114
|
if (!r) return [];
|
|
2116
2115
|
let i = [];
|
|
2117
2116
|
if (t === "text") i.push({
|
|
@@ -2120,7 +2119,7 @@ function Zn(e, t, n) {
|
|
|
2120
2119
|
attribute: !1
|
|
2121
2120
|
});
|
|
2122
2121
|
else {
|
|
2123
|
-
i.push(...
|
|
2122
|
+
i.push(...Gn(e).map((e) => ({
|
|
2124
2123
|
...e,
|
|
2125
2124
|
attribute: !0
|
|
2126
2125
|
})));
|
|
@@ -2131,7 +2130,7 @@ function Zn(e, t, n) {
|
|
|
2131
2130
|
end: r.index,
|
|
2132
2131
|
attribute: !1
|
|
2133
2132
|
});
|
|
2134
|
-
let a = r[0] === "<!--" ? e.indexOf("-->", t.lastIndex) :
|
|
2133
|
+
let a = r[0] === "<!--" ? e.indexOf("-->", t.lastIndex) : pn(e, t.lastIndex);
|
|
2135
2134
|
if (a < 0) return [];
|
|
2136
2135
|
n = a + (r[0] === "<!--" ? 3 : 1), t.lastIndex = n;
|
|
2137
2136
|
}
|
|
@@ -2144,7 +2143,7 @@ function Zn(e, t, n) {
|
|
|
2144
2143
|
let a = [];
|
|
2145
2144
|
for (let n of i) {
|
|
2146
2145
|
r.lastIndex = 0;
|
|
2147
|
-
let i = e.slice(n.start, n.end), o = t === "html" ?
|
|
2146
|
+
let i = e.slice(n.start, n.end), o = t === "html" ? qn(i) : {
|
|
2148
2147
|
text: i,
|
|
2149
2148
|
offsets: void 0
|
|
2150
2149
|
};
|
|
@@ -2163,40 +2162,40 @@ function Zn(e, t, n) {
|
|
|
2163
2162
|
}
|
|
2164
2163
|
return a;
|
|
2165
2164
|
}
|
|
2166
|
-
function
|
|
2167
|
-
let i =
|
|
2165
|
+
function Zn(e, t, n, r) {
|
|
2166
|
+
let i = Kn(e, t, n), a = Xn(e, n, r?.doNotTranslate ?? []).filter((e) => !i.some((t) => e.start < t.end && e.end > t.start));
|
|
2168
2167
|
return [...i, ...a].sort((e, t) => e.start - t.start);
|
|
2169
2168
|
}
|
|
2170
|
-
function
|
|
2169
|
+
function Qn(e, t, n) {
|
|
2171
2170
|
let r = "", i = 0;
|
|
2172
2171
|
return t.forEach((t, a) => {
|
|
2173
2172
|
r += e.slice(i, t.start), r += t.attribute ? `__x${n[a]}__` : `<x id="${n[a]}"/>`, i = t.end;
|
|
2174
2173
|
}), r + e.slice(i);
|
|
2175
2174
|
}
|
|
2176
|
-
function
|
|
2177
|
-
let i =
|
|
2175
|
+
function $n(e, t, n, r) {
|
|
2176
|
+
let i = Zn(e, t, n, r);
|
|
2178
2177
|
return {
|
|
2179
|
-
text:
|
|
2178
|
+
text: Qn(e, i, i.map((e, t) => t + 1)),
|
|
2180
2179
|
tokens: i.map((e) => e.markup)
|
|
2181
2180
|
};
|
|
2182
2181
|
}
|
|
2183
|
-
function
|
|
2182
|
+
function er(e, t) {
|
|
2184
2183
|
let n = /* @__PURE__ */ new Set(), r = !0, i = e.replace(/<x id="(\d+)"\s*\/>|<x id="(\d+)"><\/x>|__x(\d+)__/g, (e, i, a, o) => {
|
|
2185
2184
|
let s = Number(i ?? a ?? o);
|
|
2186
2185
|
return (s < 1 || s > t.length || n.has(s)) && (r = !1), n.add(s), t[s - 1] ?? "";
|
|
2187
2186
|
});
|
|
2188
2187
|
return r && n.size === t.length ? i : null;
|
|
2189
2188
|
}
|
|
2190
|
-
function
|
|
2191
|
-
let a =
|
|
2189
|
+
function tr(e, t, n, r, i) {
|
|
2190
|
+
let a = Zn(e, n, r, i), o = /* @__PURE__ */ new Set(), s = (e) => {
|
|
2192
2191
|
let n = t.findIndex((t, n) => !o.has(n) && e(t));
|
|
2193
2192
|
return n >= 0 && o.add(n), n;
|
|
2194
2193
|
}, c = a.map((e) => s((t) => t === e.markup));
|
|
2195
2194
|
return a.forEach((e, t) => {
|
|
2196
|
-
c[t] < 0 && e.term !== void 0 && r === "html" && (c[t] = s((t) =>
|
|
2197
|
-
}), o.size !== t.length || a.some((e, t) => c[t] < 0 && e.term === void 0) ? null :
|
|
2195
|
+
c[t] < 0 && e.term !== void 0 && r === "html" && (c[t] = s((t) => W(t) === e.term));
|
|
2196
|
+
}), o.size !== t.length || a.some((e, t) => c[t] < 0 && e.term === void 0) ? null : Qn(e, a.filter((e, t) => c[t] >= 0), c.filter((e) => e >= 0).map((e) => e + 1));
|
|
2198
2197
|
}
|
|
2199
|
-
function
|
|
2198
|
+
function nr(e, t, n = []) {
|
|
2200
2199
|
let r = /* @__PURE__ */ new Map();
|
|
2201
2200
|
if (t === C(e) || !e.settings.locales?.includes(t)) return r;
|
|
2202
2201
|
let i = (e, n, i, a) => {
|
|
@@ -2209,7 +2208,7 @@ function rr(e, t, n = []) {
|
|
|
2209
2208
|
target: e,
|
|
2210
2209
|
path: t,
|
|
2211
2210
|
source: i,
|
|
2212
|
-
format: a &&
|
|
2211
|
+
format: a && Wn[a]?.includes(t) ? "html" : "text",
|
|
2213
2212
|
text: o?.text?.[t]
|
|
2214
2213
|
});
|
|
2215
2214
|
}
|
|
@@ -2224,11 +2223,11 @@ function rr(e, t, n = []) {
|
|
|
2224
2223
|
};
|
|
2225
2224
|
return a(e.blocks), i({ kind: "settings" }, e.settings, g), r;
|
|
2226
2225
|
}
|
|
2227
|
-
function
|
|
2226
|
+
function rr(e, t, n) {
|
|
2228
2227
|
let r = n.only === "all" ? null : Pe(e, t, n.definitions), i = r && /* @__PURE__ */ new Set([...r.missing, ...r.stale]), a = [], o = {};
|
|
2229
|
-
for (let [r, s] of
|
|
2228
|
+
for (let [r, s] of nr(e, t, n.definitions)) {
|
|
2230
2229
|
if (i && !i.has(r) || n.blockId !== void 0 && (s.target.kind !== "block" || s.target.blockId !== n.blockId)) continue;
|
|
2231
|
-
let e =
|
|
2230
|
+
let e = $n(s.source, n.syntax, s.format, n), t = s.text ? tr(s.text.value, e.tokens, n.syntax, s.format, n) : void 0;
|
|
2232
2231
|
a.push({
|
|
2233
2232
|
id: r,
|
|
2234
2233
|
format: s.format,
|
|
@@ -2242,8 +2241,8 @@ function ir(e, t, n) {
|
|
|
2242
2241
|
tokens: o
|
|
2243
2242
|
};
|
|
2244
2243
|
}
|
|
2245
|
-
function
|
|
2246
|
-
let i =
|
|
2244
|
+
function ir(e, t, n, r) {
|
|
2245
|
+
let i = nr(e, t, r.definitions), a = /* @__PURE__ */ new Map(), o = (e) => {
|
|
2247
2246
|
for (let t of e) if (a.set(t.id, t), t.type === "section") for (let e of t.children) o(e);
|
|
2248
2247
|
else t.type === "wrapper" && o(t.children);
|
|
2249
2248
|
};
|
|
@@ -2259,8 +2258,8 @@ function ar(e, t, n, r) {
|
|
|
2259
2258
|
});
|
|
2260
2259
|
continue;
|
|
2261
2260
|
}
|
|
2262
|
-
let o = Object.hasOwn(r.tokens, t.id) ? r.tokens[t.id] : void 0, u = o ?
|
|
2263
|
-
if (!o || u === null ||
|
|
2261
|
+
let o = Object.hasOwn(r.tokens, t.id) ? r.tokens[t.id] : void 0, u = o ? er(t.text, o) : null;
|
|
2262
|
+
if (!o || u === null || tr(u, o, r.syntax, n.format, r) === null) {
|
|
2264
2263
|
l.push({
|
|
2265
2264
|
id: t.id,
|
|
2266
2265
|
reason: "tags_changed"
|
|
@@ -2289,25 +2288,28 @@ function ar(e, t, n, r) {
|
|
|
2289
2288
|
rejected: l
|
|
2290
2289
|
};
|
|
2291
2290
|
}
|
|
2292
|
-
|
|
2291
|
+
var ar = 1e7, or = 2e3;
|
|
2292
|
+
function sr(e) {
|
|
2293
2293
|
return new e.Liquid({
|
|
2294
2294
|
strictVariables: !1,
|
|
2295
2295
|
strictFilters: !1,
|
|
2296
2296
|
outputEscape: "escape",
|
|
2297
|
+
memoryLimit: ar,
|
|
2298
|
+
renderLimit: or,
|
|
2297
2299
|
templates: {}
|
|
2298
2300
|
});
|
|
2299
2301
|
}
|
|
2300
|
-
function
|
|
2302
|
+
function Y(e, t) {
|
|
2301
2303
|
let n = m(e);
|
|
2302
|
-
return !t || Object.keys(t).length === 0 ? n :
|
|
2304
|
+
return !t || Object.keys(t).length === 0 ? n : on(n, t);
|
|
2303
2305
|
}
|
|
2304
|
-
function
|
|
2306
|
+
function X(e) {
|
|
2305
2307
|
return e === void 0 ? void 0 : m(e);
|
|
2306
2308
|
}
|
|
2307
|
-
function
|
|
2309
|
+
function Z() {
|
|
2308
2310
|
return crypto.randomUUID();
|
|
2309
2311
|
}
|
|
2310
|
-
function
|
|
2312
|
+
function cr(e = 0) {
|
|
2311
2313
|
return {
|
|
2312
2314
|
top: e,
|
|
2313
2315
|
right: e,
|
|
@@ -2315,135 +2317,135 @@ function sr(e = 0) {
|
|
|
2315
2317
|
left: e
|
|
2316
2318
|
};
|
|
2317
2319
|
}
|
|
2318
|
-
function
|
|
2319
|
-
return { padding:
|
|
2320
|
+
function Q(e = 10) {
|
|
2321
|
+
return { padding: cr(e) };
|
|
2320
2322
|
}
|
|
2321
|
-
function
|
|
2322
|
-
return
|
|
2323
|
-
id:
|
|
2323
|
+
function lr(e = {}) {
|
|
2324
|
+
return Y({
|
|
2325
|
+
id: Z(),
|
|
2324
2326
|
type: "title",
|
|
2325
|
-
...
|
|
2326
|
-
styles:
|
|
2327
|
+
...Ut,
|
|
2328
|
+
styles: Q()
|
|
2327
2329
|
}, e);
|
|
2328
2330
|
}
|
|
2329
|
-
function
|
|
2330
|
-
return
|
|
2331
|
-
id:
|
|
2331
|
+
function ur(e = {}) {
|
|
2332
|
+
return Y({
|
|
2333
|
+
id: Z(),
|
|
2332
2334
|
type: "paragraph",
|
|
2333
|
-
...
|
|
2334
|
-
styles:
|
|
2335
|
+
...Wt,
|
|
2336
|
+
styles: Q()
|
|
2335
2337
|
}, e);
|
|
2336
2338
|
}
|
|
2337
|
-
function
|
|
2338
|
-
return
|
|
2339
|
-
id:
|
|
2339
|
+
function dr(e = {}) {
|
|
2340
|
+
return Y({
|
|
2341
|
+
id: Z(),
|
|
2340
2342
|
type: "image",
|
|
2341
|
-
...
|
|
2342
|
-
styles:
|
|
2343
|
+
...Gt,
|
|
2344
|
+
styles: Q()
|
|
2343
2345
|
}, e);
|
|
2344
2346
|
}
|
|
2345
|
-
function
|
|
2346
|
-
return
|
|
2347
|
-
id:
|
|
2347
|
+
function fr(e = {}) {
|
|
2348
|
+
return Y({
|
|
2349
|
+
id: Z(),
|
|
2348
2350
|
type: "button",
|
|
2349
|
-
...
|
|
2350
|
-
styles:
|
|
2351
|
+
...Kt,
|
|
2352
|
+
styles: Q()
|
|
2351
2353
|
}, e);
|
|
2352
2354
|
}
|
|
2353
|
-
function
|
|
2354
|
-
return
|
|
2355
|
-
id:
|
|
2355
|
+
function pr(e = {}) {
|
|
2356
|
+
return Y({
|
|
2357
|
+
id: Z(),
|
|
2356
2358
|
type: "divider",
|
|
2357
|
-
...
|
|
2358
|
-
styles:
|
|
2359
|
+
...qt,
|
|
2360
|
+
styles: Q(20)
|
|
2359
2361
|
}, e);
|
|
2360
2362
|
}
|
|
2361
|
-
function
|
|
2362
|
-
return
|
|
2363
|
-
id:
|
|
2363
|
+
function mr(e = {}) {
|
|
2364
|
+
return Y({
|
|
2365
|
+
id: Z(),
|
|
2364
2366
|
type: "section",
|
|
2365
|
-
...
|
|
2367
|
+
...Jt,
|
|
2366
2368
|
children: [[]],
|
|
2367
|
-
styles:
|
|
2369
|
+
styles: Q(20)
|
|
2368
2370
|
}, e);
|
|
2369
2371
|
}
|
|
2370
|
-
function
|
|
2371
|
-
return
|
|
2372
|
-
id:
|
|
2372
|
+
function hr(e = {}) {
|
|
2373
|
+
return Y({
|
|
2374
|
+
id: Z(),
|
|
2373
2375
|
type: "video",
|
|
2374
|
-
...
|
|
2375
|
-
styles:
|
|
2376
|
+
...Yt,
|
|
2377
|
+
styles: Q()
|
|
2376
2378
|
}, e);
|
|
2377
2379
|
}
|
|
2378
|
-
function
|
|
2379
|
-
return
|
|
2380
|
-
id:
|
|
2380
|
+
function gr(e = {}) {
|
|
2381
|
+
return Y({
|
|
2382
|
+
id: Z(),
|
|
2381
2383
|
type: "social",
|
|
2382
2384
|
icons: [],
|
|
2383
|
-
...
|
|
2384
|
-
styles:
|
|
2385
|
+
...Xt,
|
|
2386
|
+
styles: Q()
|
|
2385
2387
|
}, e);
|
|
2386
2388
|
}
|
|
2387
|
-
function
|
|
2388
|
-
return
|
|
2389
|
-
id:
|
|
2389
|
+
function _r(e = {}) {
|
|
2390
|
+
return Y({
|
|
2391
|
+
id: Z(),
|
|
2390
2392
|
type: "spacer",
|
|
2391
|
-
...
|
|
2392
|
-
styles:
|
|
2393
|
+
...Zt,
|
|
2394
|
+
styles: Q(0)
|
|
2393
2395
|
}, e);
|
|
2394
2396
|
}
|
|
2395
|
-
function
|
|
2396
|
-
return
|
|
2397
|
-
id:
|
|
2397
|
+
function vr(e = {}) {
|
|
2398
|
+
return Y({
|
|
2399
|
+
id: Z(),
|
|
2398
2400
|
type: "html",
|
|
2399
|
-
|
|
2400
|
-
styles:
|
|
2401
|
+
...Qt,
|
|
2402
|
+
styles: Q()
|
|
2401
2403
|
}, e);
|
|
2402
2404
|
}
|
|
2403
|
-
function
|
|
2404
|
-
return
|
|
2405
|
-
id:
|
|
2405
|
+
function yr(e = {}) {
|
|
2406
|
+
return Y({
|
|
2407
|
+
id: Z(),
|
|
2406
2408
|
type: "menu",
|
|
2407
2409
|
items: [],
|
|
2408
|
-
|
|
2409
|
-
styles:
|
|
2410
|
+
...$t,
|
|
2411
|
+
styles: Q()
|
|
2410
2412
|
}, e);
|
|
2411
2413
|
}
|
|
2412
|
-
function
|
|
2414
|
+
function br(e, t) {
|
|
2413
2415
|
return Array.from({ length: t }, () => ({
|
|
2414
|
-
id:
|
|
2416
|
+
id: Z(),
|
|
2415
2417
|
cells: Array.from({ length: e }, () => ({
|
|
2416
|
-
id:
|
|
2418
|
+
id: Z(),
|
|
2417
2419
|
content: ""
|
|
2418
2420
|
}))
|
|
2419
2421
|
}));
|
|
2420
2422
|
}
|
|
2421
|
-
function
|
|
2422
|
-
return
|
|
2423
|
-
id:
|
|
2423
|
+
function xr(e = {}) {
|
|
2424
|
+
return Y({
|
|
2425
|
+
id: Z(),
|
|
2424
2426
|
type: "table",
|
|
2425
|
-
rows:
|
|
2426
|
-
...
|
|
2427
|
-
styles:
|
|
2427
|
+
rows: br(3, 3),
|
|
2428
|
+
...en,
|
|
2429
|
+
styles: Q()
|
|
2428
2430
|
}, e);
|
|
2429
2431
|
}
|
|
2430
|
-
function
|
|
2431
|
-
return
|
|
2432
|
-
id:
|
|
2432
|
+
function Sr(e = {}) {
|
|
2433
|
+
return Y({
|
|
2434
|
+
id: Z(),
|
|
2433
2435
|
type: "countdown",
|
|
2434
|
-
...
|
|
2435
|
-
styles:
|
|
2436
|
+
...tn,
|
|
2437
|
+
styles: Q()
|
|
2436
2438
|
}, e);
|
|
2437
2439
|
}
|
|
2438
|
-
function
|
|
2440
|
+
function Cr(e) {
|
|
2439
2441
|
return e.type === "repeatable" ? e.default ?? [] : e.type === "boolean" ? e.default ?? !1 : e.type === "number" ? e.default ?? 0 : e.default ?? "";
|
|
2440
2442
|
}
|
|
2441
|
-
function
|
|
2443
|
+
function wr(e) {
|
|
2442
2444
|
let t = {};
|
|
2443
|
-
for (let n of e.fields) t[n.key] =
|
|
2444
|
-
let n =
|
|
2445
|
+
for (let n of e.fields) t[n.key] = X(Cr(n));
|
|
2446
|
+
let n = Y(Q(), X(e.defaultStyles));
|
|
2445
2447
|
return {
|
|
2446
|
-
id:
|
|
2448
|
+
id: Z(),
|
|
2447
2449
|
type: "custom",
|
|
2448
2450
|
customType: e.type,
|
|
2449
2451
|
fieldValues: t,
|
|
@@ -2451,42 +2453,42 @@ function Cr(e) {
|
|
|
2451
2453
|
...e.dataSource ? { dataSourceFetched: !1 } : {}
|
|
2452
2454
|
};
|
|
2453
2455
|
}
|
|
2454
|
-
function
|
|
2456
|
+
function Tr() {
|
|
2455
2457
|
return {
|
|
2456
|
-
id:
|
|
2458
|
+
id: Z(),
|
|
2457
2459
|
type: "slot",
|
|
2458
|
-
styles:
|
|
2460
|
+
styles: Q(0)
|
|
2459
2461
|
};
|
|
2460
2462
|
}
|
|
2461
|
-
function
|
|
2462
|
-
return
|
|
2463
|
-
id:
|
|
2463
|
+
function Er(e = {}) {
|
|
2464
|
+
return Y({
|
|
2465
|
+
id: Z(),
|
|
2464
2466
|
type: "wrapper",
|
|
2465
2467
|
children: [],
|
|
2466
|
-
styles:
|
|
2468
|
+
styles: Q(0)
|
|
2467
2469
|
}, e);
|
|
2468
2470
|
}
|
|
2469
|
-
function
|
|
2471
|
+
function Dr(e, t) {
|
|
2470
2472
|
switch (e) {
|
|
2471
|
-
case "section": return
|
|
2472
|
-
case "title": return
|
|
2473
|
-
case "paragraph": return
|
|
2474
|
-
case "image": return
|
|
2475
|
-
case "button": return
|
|
2476
|
-
case "divider": return
|
|
2477
|
-
case "video": return
|
|
2478
|
-
case "social": return
|
|
2479
|
-
case "spacer": return
|
|
2480
|
-
case "html": return
|
|
2481
|
-
case "menu": return
|
|
2482
|
-
case "table": return
|
|
2483
|
-
case "countdown": return
|
|
2473
|
+
case "section": return mr(X(t?.section));
|
|
2474
|
+
case "title": return lr(X(t?.title));
|
|
2475
|
+
case "paragraph": return ur(X(t?.paragraph));
|
|
2476
|
+
case "image": return dr(X(t?.image));
|
|
2477
|
+
case "button": return fr(X(t?.button));
|
|
2478
|
+
case "divider": return pr(X(t?.divider));
|
|
2479
|
+
case "video": return hr(X(t?.video));
|
|
2480
|
+
case "social": return gr(X(t?.social));
|
|
2481
|
+
case "spacer": return _r(X(t?.spacer));
|
|
2482
|
+
case "html": return vr(X(t?.html));
|
|
2483
|
+
case "menu": return yr(X(t?.menu));
|
|
2484
|
+
case "table": return xr(X(t?.table));
|
|
2485
|
+
case "countdown": return Sr(X(t?.countdown));
|
|
2484
2486
|
case "slot": throw Error("[Templatical] slot cannot be inserted into content. Use createSlotBlock() to build a layout.");
|
|
2485
2487
|
case "wrapper": throw Error("[Templatical] wrapper cannot be inserted into content. Use createWrapperBlock() to build a layout.");
|
|
2486
2488
|
default: throw Error(`Unknown block type: ${e}`);
|
|
2487
2489
|
}
|
|
2488
2490
|
}
|
|
2489
|
-
function
|
|
2491
|
+
function Or(e, t) {
|
|
2490
2492
|
let n = e.l10n;
|
|
2491
2493
|
if (!n || t.size === 0) return;
|
|
2492
2494
|
let r = (n) => {
|
|
@@ -2501,91 +2503,95 @@ function Dr(e, t) {
|
|
|
2501
2503
|
n && (e[t] = Object.fromEntries(Object.entries(n).map(([e, t]) => [r(e), t])));
|
|
2502
2504
|
}
|
|
2503
2505
|
}
|
|
2504
|
-
function
|
|
2505
|
-
let t = JSON.parse(JSON.stringify(e))
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2506
|
+
function kr(e) {
|
|
2507
|
+
let t = JSON.parse(JSON.stringify(e)), n = (e) => {
|
|
2508
|
+
e.id = Z();
|
|
2509
|
+
let t = /* @__PURE__ */ new Map(), r = (e, n) => {
|
|
2510
|
+
let r = e.id;
|
|
2511
|
+
e.id = Z();
|
|
2512
|
+
let i = t.get(n);
|
|
2513
|
+
return i || (i = /* @__PURE__ */ new Map(), t.set(n, i)), i.set(r, e.id), r;
|
|
2514
|
+
};
|
|
2515
|
+
if (e.type === "table") for (let t of e.rows) {
|
|
2516
|
+
let e = r(t, "rows");
|
|
2517
|
+
for (let n of t.cells) r(n, `rows.${e}.cells`);
|
|
2518
|
+
}
|
|
2519
|
+
if (e.type === "menu") for (let t of e.items) r(t, "items");
|
|
2520
|
+
if (e.type === "social") for (let t of e.icons) r(t, "icons");
|
|
2521
|
+
if (e.type === "section") for (let t of e.children) for (let e of t) n(e);
|
|
2522
|
+
if (e.type === "wrapper") for (let t of e.children) n(t);
|
|
2523
|
+
Or(e, t);
|
|
2512
2524
|
};
|
|
2513
|
-
|
|
2514
|
-
let t = r(e, "rows");
|
|
2515
|
-
for (let n of e.cells) r(n, `rows.${t}.cells`);
|
|
2516
|
-
}
|
|
2517
|
-
if (t.type === "menu") for (let e of t.items) r(e, "items");
|
|
2518
|
-
if (t.type === "social") for (let e of t.icons) r(e, "icons");
|
|
2519
|
-
return t.type === "section" && (t.children = t.children.map((e) => e.map((e) => Q(e)))), t.type === "wrapper" && (t.children = t.children.map((e) => Q(e))), Dr(t, n), t;
|
|
2525
|
+
return n(t), t;
|
|
2520
2526
|
}
|
|
2521
|
-
var
|
|
2527
|
+
var Ar = "[Templatical] layout: must contain exactly one slot block", jr = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", Mr = "[Templatical] layout: a wrapper cannot contain a wrapper", Nr = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", Pr = "[Templatical] slot is not a valid content block", Fr = "[Templatical] layout: a wrapper cannot contain a section with its own wrapper (section.wrapper)", Ir = "[Templatical] wrapper is not a valid content block";
|
|
2522
2528
|
function $(e, t, n = null, r = !1, i = !1) {
|
|
2523
|
-
for (let a of e) if (t(a, n, r, i),
|
|
2524
|
-
else
|
|
2529
|
+
for (let a of e) if (t(a, n, r, i), B(a)) for (let e of a.children) $(e, t, a, !0, i);
|
|
2530
|
+
else H(a) && $(a.children, t, a, r, !0);
|
|
2525
2531
|
}
|
|
2526
|
-
function
|
|
2532
|
+
function Lr(e) {
|
|
2527
2533
|
let t = 0;
|
|
2528
2534
|
if ($(e.blocks, (e, n, r, i) => {
|
|
2529
|
-
if (i &&
|
|
2530
|
-
if (
|
|
2531
|
-
if (
|
|
2532
|
-
if (r) throw Error(
|
|
2533
|
-
if (e.children.some(
|
|
2535
|
+
if (i && B(e) && e.wrapper) throw Error(Fr);
|
|
2536
|
+
if (V(e) && (t += 1, r)) throw Error(jr);
|
|
2537
|
+
if (H(e)) {
|
|
2538
|
+
if (r) throw Error(jr);
|
|
2539
|
+
if (e.children.some(H)) throw Error(Mr);
|
|
2534
2540
|
}
|
|
2535
|
-
}), t !== 1) throw Error(
|
|
2541
|
+
}), t !== 1) throw Error(Ar);
|
|
2536
2542
|
}
|
|
2537
|
-
function
|
|
2543
|
+
function Rr(e) {
|
|
2538
2544
|
$(e.blocks, (e) => {
|
|
2539
|
-
if (
|
|
2545
|
+
if (V(e)) throw Error(Pr);
|
|
2540
2546
|
});
|
|
2541
2547
|
}
|
|
2542
|
-
function
|
|
2548
|
+
function zr(e) {
|
|
2543
2549
|
$(e.blocks, (e) => {
|
|
2544
|
-
if (
|
|
2550
|
+
if (H(e)) throw Error(Ir);
|
|
2545
2551
|
});
|
|
2546
2552
|
}
|
|
2547
|
-
function
|
|
2553
|
+
function Br(e) {
|
|
2548
2554
|
let t = !1;
|
|
2549
2555
|
return $(e.blocks, (e, n) => {
|
|
2550
|
-
|
|
2556
|
+
V(e) && n !== null && H(n) && (t = !0);
|
|
2551
2557
|
}), t;
|
|
2552
2558
|
}
|
|
2553
|
-
function
|
|
2554
|
-
if (
|
|
2555
|
-
if (
|
|
2556
|
-
let t =
|
|
2559
|
+
function Vr(e) {
|
|
2560
|
+
if (V(e)) return e;
|
|
2561
|
+
if (H(e)) {
|
|
2562
|
+
let t = kr({
|
|
2557
2563
|
...e,
|
|
2558
2564
|
children: []
|
|
2559
2565
|
});
|
|
2560
|
-
return t.children = e.children.map(
|
|
2566
|
+
return t.children = e.children.map(Vr), t;
|
|
2561
2567
|
}
|
|
2562
|
-
return
|
|
2568
|
+
return kr(e);
|
|
2563
2569
|
}
|
|
2564
|
-
function
|
|
2570
|
+
function Hr(e) {
|
|
2565
2571
|
for (let t = 0; t < e.length; t++) {
|
|
2566
2572
|
let n = e[t];
|
|
2567
|
-
if (
|
|
2573
|
+
if (V(n)) return {
|
|
2568
2574
|
parent: e,
|
|
2569
2575
|
index: t
|
|
2570
2576
|
};
|
|
2571
|
-
if (
|
|
2572
|
-
let e =
|
|
2577
|
+
if (H(n)) {
|
|
2578
|
+
let e = Hr(n.children);
|
|
2573
2579
|
if (e) return e;
|
|
2574
2580
|
}
|
|
2575
2581
|
}
|
|
2576
2582
|
return null;
|
|
2577
2583
|
}
|
|
2578
|
-
function
|
|
2579
|
-
for (let t of e) if (
|
|
2584
|
+
function Ur(e) {
|
|
2585
|
+
for (let t of e) if (B(t)) {
|
|
2580
2586
|
if (t.wrapper) return !0;
|
|
2581
|
-
for (let e of t.children) if (
|
|
2587
|
+
for (let e of t.children) if (Ur(e)) return !0;
|
|
2582
2588
|
}
|
|
2583
2589
|
return !1;
|
|
2584
2590
|
}
|
|
2585
|
-
function
|
|
2586
|
-
if (
|
|
2587
|
-
let n = e.blocks.map(
|
|
2588
|
-
if (!r) throw Error(
|
|
2591
|
+
function Wr(e, t) {
|
|
2592
|
+
if (Lr(e), Rr(t), zr(t), Br(e) && Ur(t.blocks)) throw Error(Nr);
|
|
2593
|
+
let n = e.blocks.map(Vr), r = Hr(n);
|
|
2594
|
+
if (!r) throw Error(Ar);
|
|
2589
2595
|
return r.parent.splice(r.index, 1, ...m(t.blocks)), {
|
|
2590
2596
|
blocks: n,
|
|
2591
2597
|
settings: {
|
|
@@ -2594,7 +2600,7 @@ function Hr(e, t) {
|
|
|
2594
2600
|
}
|
|
2595
2601
|
};
|
|
2596
2602
|
}
|
|
2597
|
-
var
|
|
2603
|
+
var Gr = Object.freeze([
|
|
2598
2604
|
"http",
|
|
2599
2605
|
"https",
|
|
2600
2606
|
"mailto",
|
|
@@ -2610,37 +2616,37 @@ Object.freeze([
|
|
|
2610
2616
|
"data",
|
|
2611
2617
|
"vbscript"
|
|
2612
2618
|
]);
|
|
2613
|
-
function
|
|
2619
|
+
function Kr(e) {
|
|
2614
2620
|
return e.replace(/[\t\n\r]/g, "").replace(/^[\u0000-\u0020]+/, "").trimEnd();
|
|
2615
2621
|
}
|
|
2616
|
-
function
|
|
2617
|
-
let t = /^([a-z][a-z0-9+.-]*):/i.exec(
|
|
2622
|
+
function qr(e) {
|
|
2623
|
+
let t = /^([a-z][a-z0-9+.-]*):/i.exec(Kr(e));
|
|
2618
2624
|
return t ? t[1].toLowerCase() : null;
|
|
2619
2625
|
}
|
|
2620
|
-
var
|
|
2626
|
+
var Jr = /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i, Yr = Object.freeze([
|
|
2621
2627
|
"href",
|
|
2622
2628
|
"xlink:href",
|
|
2623
2629
|
"background",
|
|
2624
2630
|
"poster",
|
|
2625
2631
|
"src"
|
|
2626
|
-
]),
|
|
2632
|
+
]), Xr = Object.freeze([
|
|
2627
2633
|
"srcdoc",
|
|
2628
2634
|
"ping",
|
|
2629
2635
|
"formaction",
|
|
2630
2636
|
"action"
|
|
2631
2637
|
]);
|
|
2632
|
-
function
|
|
2633
|
-
let n =
|
|
2634
|
-
return r === null ||
|
|
2638
|
+
function Zr(e, t) {
|
|
2639
|
+
let n = Kr(e), r = qr(n);
|
|
2640
|
+
return r === null || Gr.some((e) => e === r) ? !0 : t.toLowerCase() === "src" && Jr.test(n);
|
|
2635
2641
|
}
|
|
2636
|
-
var
|
|
2637
|
-
function
|
|
2638
|
-
return e.replace(
|
|
2642
|
+
var Qr = /<\/?p\b[^<>]*>/gi, $r = /<p\b([^<>]*)>\s*<\/p>/gi;
|
|
2643
|
+
function ei(e) {
|
|
2644
|
+
return e.replace(Qr, "").trim() === "";
|
|
2639
2645
|
}
|
|
2640
|
-
function
|
|
2641
|
-
return
|
|
2646
|
+
function ti(e) {
|
|
2647
|
+
return ei(e) ? e : e.replace($r, "<p$1> </p>");
|
|
2642
2648
|
}
|
|
2643
|
-
var
|
|
2649
|
+
var ni = {
|
|
2644
2650
|
arial: "Arial, sans-serif",
|
|
2645
2651
|
helvetica: "Helvetica, sans-serif",
|
|
2646
2652
|
georgia: "Georgia, serif",
|
|
@@ -2649,13 +2655,13 @@ var ei = {
|
|
|
2649
2655
|
"trebuchet ms": "'Trebuchet MS', sans-serif",
|
|
2650
2656
|
"courier new": "'Courier New', monospace",
|
|
2651
2657
|
tahoma: "Tahoma, sans-serif"
|
|
2652
|
-
},
|
|
2658
|
+
}, ri = /* @__PURE__ */ new Set([
|
|
2653
2659
|
"inherit",
|
|
2654
2660
|
"initial",
|
|
2655
2661
|
"unset",
|
|
2656
2662
|
"revert",
|
|
2657
2663
|
"revert-layer"
|
|
2658
|
-
]),
|
|
2664
|
+
]), ii = /* @__PURE__ */ new Set([
|
|
2659
2665
|
"serif",
|
|
2660
2666
|
"sans-serif",
|
|
2661
2667
|
"monospace",
|
|
@@ -2670,14 +2676,14 @@ var ei = {
|
|
|
2670
2676
|
"math",
|
|
2671
2677
|
"fangsong"
|
|
2672
2678
|
]);
|
|
2673
|
-
function
|
|
2679
|
+
function ai(e) {
|
|
2674
2680
|
return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
|
|
2675
2681
|
}
|
|
2676
|
-
function
|
|
2682
|
+
function oi(e) {
|
|
2677
2683
|
if (typeof e != "string") return [];
|
|
2678
2684
|
let t = e.replace(/!\s*important\s*$/i, ""), n = [], r = 0;
|
|
2679
2685
|
for (;;) {
|
|
2680
|
-
for (; r < t.length &&
|
|
2686
|
+
for (; r < t.length && ai(t[r]);) r++;
|
|
2681
2687
|
if (r >= t.length) return [];
|
|
2682
2688
|
let e = t[r];
|
|
2683
2689
|
if (e === "\"" || e === "'") {
|
|
@@ -2694,7 +2700,7 @@ function ii(e) {
|
|
|
2694
2700
|
}
|
|
2695
2701
|
}
|
|
2696
2702
|
if (!o) return [];
|
|
2697
|
-
for (; a < t.length &&
|
|
2703
|
+
for (; a < t.length && ai(t[a]);) a++;
|
|
2698
2704
|
if (a < t.length && t[a] !== ",") return [];
|
|
2699
2705
|
n.push({
|
|
2700
2706
|
name: i,
|
|
@@ -2702,7 +2708,7 @@ function ii(e) {
|
|
|
2702
2708
|
}), r = a;
|
|
2703
2709
|
} else {
|
|
2704
2710
|
let e = t.indexOf(",", r), i = e === -1 ? t.length : e, a = t.slice(r, i).trim().split(/\s+/).join(" ");
|
|
2705
|
-
if (a === "" || a.includes("\"") || a.includes("'") ||
|
|
2711
|
+
if (a === "" || a.includes("\"") || a.includes("'") || ri.has(a.toLowerCase())) return [];
|
|
2706
2712
|
n.push({
|
|
2707
2713
|
name: a,
|
|
2708
2714
|
quoted: !1
|
|
@@ -2712,26 +2718,26 @@ function ii(e) {
|
|
|
2712
2718
|
r++;
|
|
2713
2719
|
}
|
|
2714
2720
|
}
|
|
2715
|
-
function
|
|
2721
|
+
function si(e) {
|
|
2716
2722
|
return `'${e.replace(/\\/g, "\\\\").replace(/'/g, "\\'")}'`;
|
|
2717
2723
|
}
|
|
2718
|
-
function
|
|
2719
|
-
return !e.quoted &&
|
|
2724
|
+
function ci(e) {
|
|
2725
|
+
return !e.quoted && ii.has(e.name.toLowerCase());
|
|
2720
2726
|
}
|
|
2721
|
-
function
|
|
2722
|
-
return
|
|
2727
|
+
function li(e) {
|
|
2728
|
+
return oi(e)[0]?.name ?? "";
|
|
2723
2729
|
}
|
|
2724
|
-
function
|
|
2725
|
-
let n = (e) => `${
|
|
2730
|
+
function ui(e, t) {
|
|
2731
|
+
let n = (e) => `${si(e.name)}, ${e.fallback ?? t.defaultFallback}`, r = typeof e == "string" ? e.trim().toLowerCase() : "", i = t.customFonts.find((e) => e.name.toLowerCase() === r);
|
|
2726
2732
|
if (i) return n(i);
|
|
2727
|
-
let a =
|
|
2733
|
+
let a = oi(e);
|
|
2728
2734
|
if (a.length !== 1) return e;
|
|
2729
2735
|
let [o] = a, s = o.name.toLowerCase(), c = t.customFonts.find((e) => e.name.toLowerCase() === s);
|
|
2730
|
-
return c ? n(c) :
|
|
2736
|
+
return c ? n(c) : ni[s] || (ci(o) ? e : `${si(o.name)}, ${t.defaultFallback}`);
|
|
2731
2737
|
}
|
|
2732
|
-
function
|
|
2738
|
+
function di(e) {
|
|
2733
2739
|
if (typeof e != "object" || !e) return !1;
|
|
2734
2740
|
let t = e;
|
|
2735
2741
|
return Array.isArray(t.blocks);
|
|
2736
2742
|
}
|
|
2737
|
-
export {
|
|
2743
|
+
export { W as $, fe as $t, kr as A, H as At, vr as B, vn as Bt, ir as C, di as Ct, zr as D, V as Dt, Rr as E, B as Et, Sr as F, Oe as Ft, Be as G, Hn as Gt, yr as H, un as Ht, wr as I, oi as It, _r as J, kn as Jt, Tr as K, Nn as Kt, sr as L, xe as Lt, ee as M, Pe as Mt, Dr as N, Fe as Nt, j as O, Se as Ot, fr as P, rr as Pt, Er as Q, ue as Qt, sn as R, Ce as Rt, Wr as S, jn as St, T, v as Tt, ur as U, ui as Ut, dr as V, ne as Vt, mr as W, ie as Wt, lr as X, wn as Xt, xr as Y, m as Yt, hr as Z, q as Zt, G as _, oe as _t, l as a, r as an, qr as at, Wn as b, _e as bt, rn as c, t as cn, li as ct, Yr as d, Vn as dt, de as en, h as et, w as f, Mn as ft, se as g, In as gt, g as h, Dn as ht, e as i, n as in, te as it, zn as j, Br as jt, K as k, Te as kt, s as l, er as ln, Z as lt, Gr as m, On as mt, p as n, Fn as nn, Ie as nt, Vt as o, o as on, ti as ot, u as p, Pn as pt, gr as q, Ne as qt, i as r, Ln as rn, C as rt, nn as s, x as sn, pn as st, f as t, S as tn, on as tt, Xr as u, Lr as un, Ve as ut, he as v, zt as vt, He as w, Zr as wt, dn as x, Bn as xt, c as y, Ht as yt, pr as z, y as zt };
|