@templatical/editor 0.52.1 → 0.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/AiAltTextPopover-NMJqQKvD.js +106 -0
- package/dist/{AiAltTextReview-9ySsXOTU.js → AiAltTextReview-Ci4zHwRc.js} +68 -66
- package/dist/AiChatPanel-DdhtfsmO.js +561 -0
- package/dist/{AiPanels-DqT4PgQ0.js → AiPanels-HBx7xoJR.js} +6 -6
- package/dist/{AiRewriteMenu-28agTycW.js → AiRewriteMenu-DPzSekZt.js} +76 -105
- package/dist/BlockIssueBadge-eIXZJ9M3.js +33 -0
- package/dist/BlockPreviewCanvas-DO-2TP_6.js +140 -0
- package/dist/{CloudHeaderExtras-QI82yF54.js → CloudHeaderExtras-XpjJjn3o.js} +4 -4
- package/dist/{CloudPanels-BKJaLkUN.js → CloudPanels-i2kZdrdP.js} +53 -53
- package/dist/CollaborationNotices-DANsjl7c.js +65 -0
- package/dist/{CollaboratorBar-CXQqN3VP.js → CollaboratorBar-CbbAA0m1.js} +24 -24
- package/dist/CommentsPanel-CYW3LWis.js +16 -0
- package/dist/CommentsSidebar-CcF4ISMi.js +526 -0
- package/dist/{CountdownBlock-CU2yTWtF.js → CountdownBlock-BMezkFbJ.js} +15 -15
- package/dist/CountdownToolbar-D3Lv74kU.js +258 -0
- package/dist/IssuesPanel-BMAG9042.js +371 -0
- package/dist/LanguageMenu-FlP_Jbup.js +403 -0
- package/dist/{LoadingTrack-DM4g6j7b.js → LoadingTrack-BG8cg9xi.js} +2 -2
- package/dist/LocaleNotices-DAnVszWu.js +46 -0
- package/dist/LogicTagInsertButton-BjYs-UQX.js +1096 -0
- package/dist/{MediaEditModal-Dy08GEwE.js → MediaEditModal-LnG-cF_S.js} +451 -451
- package/dist/{MediaPanels-BgEp7iCp.js → MediaPanels-C2r5fiFo.js} +4 -4
- package/dist/{MergeTagInput-B9dtUthD.js → MergeTagInput-BsnogCeY.js} +30 -30
- package/dist/{MergeTagModeToggle-DxujhYJ4.js → MergeTagModeToggle-DiufIQ-_.js} +49 -49
- package/dist/MergeTagTextarea-BweI-Xsi.js +126 -0
- package/dist/ParagraphEditor-qgBp5yIB.js +825 -0
- package/dist/{RestoreVersionDialog-C4s_JYCx.js → RestoreVersionDialog-DdYUrFiK.js} +23 -23
- package/dist/{RichTextEditorContent-o6HmE8GR.js → RichTextEditorContent-C5MAzx3E.js} +47 -47
- package/dist/{SaveBlockDialog-CWLrly6l.js → SaveBlockDialog-eK6fjtTy.js} +86 -86
- package/dist/{cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js → SavedBlocksBrowserModal-D2QHd2Yp.js} +135 -132
- package/dist/{SavedBlocksPanels-BE1N9rNZ.js → SavedBlocksPanels-Cl61f4Mf.js} +9 -9
- package/dist/{SavedBlocksPickBar-Dwl94xhP.js → SavedBlocksPickBar-CXP2dkeB.js} +15 -15
- package/dist/TemplateSettings-BKJrdZcH.js +294 -0
- package/dist/TestEmailModal-DQotJg6g.js +212 -0
- package/dist/{TestEmailPanel-DaFjP9QK.js → TestEmailPanel-CwiTzJsh.js} +4 -4
- package/dist/TitleEditor-CzSvsPAn.js +202 -0
- package/dist/ToggleSwitch-R3wCCYE6.js +43 -0
- package/dist/Toolbar-Cd75ci5W.js +3711 -0
- package/dist/{TplModal-DLMssVlt.js → TplModal-ZoXu40T9.js} +17 -17
- package/dist/{VersionHistoryMenu-BkbYUs0Q.js → VersionHistoryMenu-BvhN-Ofk.js} +39 -39
- package/dist/{VersionHistoryPanels-DP7HaYWv.js → VersionHistoryPanels-DPWMnYbd.js} +5 -5
- package/dist/VersionPreviewBanner-CuJnasxH.js +37 -0
- package/dist/WrapperBlock-D4fPwO0t.js +44 -0
- package/dist/{blockTypeIcons-BHjlPnPf.js → blockTypeIcons-BXMxu86H.js} +7 -7
- package/dist/bundle-stats.json +8 -8
- package/dist/{cdn/chunks/ca-CD-Kt1qz.js → ca-DOuIxWRv.js} +114 -2
- package/dist/cdn/chunks/AiAltTextPopover-ByZ0FEqI.js +107 -0
- package/dist/cdn/chunks/AiAltTextPopover-ByZ0FEqI.js.map +1 -0
- package/dist/cdn/chunks/{AiAltTextReview-BGLLSKLm.js → AiAltTextReview-Dtm3A2cD.js} +70 -68
- package/dist/cdn/chunks/AiAltTextReview-Dtm3A2cD.js.map +1 -0
- package/dist/cdn/chunks/AiChatPanel-DciEt27y.js +487 -0
- package/dist/cdn/chunks/AiChatPanel-DciEt27y.js.map +1 -0
- package/dist/cdn/chunks/{AiPanels-0wBarZSH.js → AiPanels-BV5D1itk.js} +11 -11
- package/dist/cdn/chunks/{AiPanels-0wBarZSH.js.map → AiPanels-BV5D1itk.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-qf-cfEpy.js → AiRewriteMenu-D3jkh6Xb.js} +79 -79
- package/dist/cdn/chunks/AiRewriteMenu-D3jkh6Xb.js.map +1 -0
- package/dist/cdn/chunks/BlockIssueBadge-DyEgBZtR.js +34 -0
- package/dist/cdn/chunks/BlockIssueBadge-DyEgBZtR.js.map +1 -0
- package/dist/cdn/chunks/BlockPreviewCanvas-RQFilqXC.js +142 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-DGBh6mqe.js.map → BlockPreviewCanvas-RQFilqXC.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js → CloudHeaderExtras-BtqdN777.js} +4 -4
- package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js.map → CloudHeaderExtras-BtqdN777.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js → CloudPanels-BSJ-Z5Hw.js} +45 -45
- package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js.map → CloudPanels-BSJ-Z5Hw.js.map} +1 -1
- package/dist/cdn/chunks/CollaborationNotices-BS7xrlPE.js +67 -0
- package/dist/cdn/chunks/CollaborationNotices-BS7xrlPE.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js → CollaboratorBar-Bc9914Az.js} +17 -17
- package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js.map → CollaboratorBar-Bc9914Az.js.map} +1 -1
- package/dist/cdn/chunks/CommentsPanel-DbR9phAk.js +18 -0
- package/dist/cdn/chunks/{CommentsPanel-DoJnKLXI.js.map → CommentsPanel-DbR9phAk.js.map} +1 -1
- package/dist/cdn/chunks/CommentsSidebar-BD4--XP2.js +496 -0
- package/dist/cdn/chunks/CommentsSidebar-BD4--XP2.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js → CountdownBlock-CjMhMhnv.js} +22 -22
- package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js.map → CountdownBlock-CjMhMhnv.js.map} +1 -1
- package/dist/cdn/chunks/CountdownToolbar-DxwYBw-d.js +260 -0
- package/dist/cdn/chunks/CountdownToolbar-DxwYBw-d.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-C7LfxaAY.js → IssuesPanel-CUmI4HMm.js} +133 -121
- package/dist/cdn/chunks/IssuesPanel-CUmI4HMm.js.map +1 -0
- package/dist/cdn/chunks/LanguageMenu-3ydCozQJ.js +359 -0
- package/dist/cdn/chunks/LanguageMenu-3ydCozQJ.js.map +1 -0
- package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js → LoadingTrack-DUYcDHOV.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js.map → LoadingTrack-DUYcDHOV.js.map} +1 -1
- package/dist/cdn/chunks/LocaleNotices-BfoH6gST.js +47 -0
- package/dist/cdn/chunks/LocaleNotices-BfoH6gST.js.map +1 -0
- package/dist/{LogicTagInsertButton-CfscnwCn.js → cdn/chunks/LogicTagInsertButton-5Z3fFzjc.js} +422 -449
- package/dist/cdn/chunks/LogicTagInsertButton-5Z3fFzjc.js.map +1 -0
- package/dist/cdn/chunks/{MediaEditModal-Cpcod6_U.js → MediaEditModal-DDCIwr9U.js} +421 -421
- package/dist/cdn/chunks/MediaEditModal-DDCIwr9U.js.map +1 -0
- package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js → MediaPanels-Dz79oy8P.js} +5 -5
- package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js.map → MediaPanels-Dz79oy8P.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js → MergeTagInput-CIWy-cXf.js} +28 -28
- package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js.map → MergeTagInput-CIWy-cXf.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BgKEVUtV.js → MergeTagModeToggle-BrP5GR-x.js} +52 -52
- package/dist/cdn/chunks/MergeTagModeToggle-BrP5GR-x.js.map +1 -0
- package/dist/cdn/chunks/MergeTagTextarea-D3nNDlhV.js +128 -0
- package/dist/cdn/chunks/MergeTagTextarea-D3nNDlhV.js.map +1 -0
- package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js +660 -0
- package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js → RestoreVersionDialog-Crj1DBqC.js} +22 -22
- package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js.map → RestoreVersionDialog-Crj1DBqC.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js → RichTextEditorContent-rCCqFlwJ.js} +44 -44
- package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js.map → RichTextEditorContent-rCCqFlwJ.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js → SaveBlockDialog-C34RW1aM.js} +77 -77
- package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js.map → SaveBlockDialog-C34RW1aM.js.map} +1 -1
- package/dist/{SavedBlocksBrowserModal-CE8n4EBS.js → cdn/chunks/SavedBlocksBrowserModal-CJnwWPT-.js} +103 -106
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BPYcRoGa.js.map → SavedBlocksBrowserModal-CJnwWPT-.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js → SavedBlocksPanels-CA2PqXIH.js} +9 -9
- package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js.map → SavedBlocksPanels-CA2PqXIH.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js → SavedBlocksPickBar-Dj3ortee.js} +16 -16
- package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js.map → SavedBlocksPickBar-Dj3ortee.js.map} +1 -1
- package/dist/cdn/chunks/TemplateSettings-sW0ZlDl1.js +266 -0
- package/dist/cdn/chunks/TemplateSettings-sW0ZlDl1.js.map +1 -0
- package/dist/cdn/chunks/TestEmailModal-BXeCtTjU.js +212 -0
- package/dist/cdn/chunks/TestEmailModal-BXeCtTjU.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js → TestEmailPanel-CpZcpB9D.js} +5 -5
- package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js.map → TestEmailPanel-CpZcpB9D.js.map} +1 -1
- package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.js +202 -0
- package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.js.map +1 -0
- package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js +45 -0
- package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js.map +1 -0
- package/dist/cdn/chunks/Toolbar-BJKpJ2Mg.js +3626 -0
- package/dist/cdn/chunks/Toolbar-BJKpJ2Mg.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js → TplModal-DDDUDMYC.js} +20 -20
- package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js.map → TplModal-DDDUDMYC.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js → VersionHistoryMenu-DSElv3Sv.js} +33 -33
- package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js.map → VersionHistoryMenu-DSElv3Sv.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js → VersionHistoryPanels-H2nuik1l.js} +6 -6
- package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js.map → VersionHistoryPanels-H2nuik1l.js.map} +1 -1
- package/dist/cdn/chunks/VersionPreviewBanner-Whwxh55w.js +39 -0
- package/dist/cdn/chunks/VersionPreviewBanner-Whwxh55w.js.map +1 -0
- package/dist/cdn/chunks/WrapperBlock-jTqsuLnS.js +46 -0
- package/dist/cdn/chunks/WrapperBlock-jTqsuLnS.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js → blockTypeIcons-DMgLcuI8.js} +5 -5
- package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js.map → blockTypeIcons-DMgLcuI8.js.map} +1 -1
- package/dist/{ca-CD-Kt1qz.js → cdn/chunks/ca-DOuIxWRv.js} +116 -0
- package/dist/cdn/chunks/ca-DOuIxWRv.js.map +1 -0
- package/dist/cdn/chunks/composables-D0UYam2P.js +3039 -0
- package/dist/cdn/chunks/composables-D0UYam2P.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-Cth2JCEh.js → createCloudRuntime-BdsclY8_.js} +75 -73
- package/dist/cdn/chunks/createCloudRuntime-BdsclY8_.js.map +1 -0
- package/dist/{de-CeFJ6wbM.js → cdn/chunks/de-DaOUfYBX.js} +116 -0
- package/dist/cdn/chunks/de-DaOUfYBX.js.map +1 -0
- package/dist/cdn/chunks/{dist-8ym3y-pH.js → dist-BzXULHvI.js} +48 -48
- package/dist/cdn/chunks/{dist-8ym3y-pH.js.map → dist-BzXULHvI.js.map} +1 -1
- package/dist/cdn/chunks/{dist-BMzNabtD.js → dist-DqGgijFI.js} +114 -114
- package/dist/cdn/chunks/{dist-BMzNabtD.js.map → dist-DqGgijFI.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-Du8AUMFT.js → draggable-DepKdldn.js} +1491 -1486
- package/dist/cdn/chunks/draggable-DepKdldn.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-CyCe560f.js → editor-modal-CPbgthOv.js} +781 -781
- package/dist/cdn/chunks/{editor-modal-CyCe560f.js.map → editor-modal-CPbgthOv.js.map} +1 -1
- package/dist/{en-D14i5nFh.js → cdn/chunks/en-C0pHHMiR.js} +116 -0
- package/dist/cdn/chunks/en-C0pHHMiR.js.map +1 -0
- package/dist/cdn/chunks/en-IYVryJRl.js +1 -0
- package/dist/{es-zDacbMhs.js → cdn/chunks/es-CxyEKr6n.js} +116 -0
- package/dist/cdn/chunks/es-CxyEKr6n.js.map +1 -0
- package/dist/cdn/chunks/{extensions-CFF2KWy-.js → extensions-Uh9vuFfK.js} +59 -59
- package/dist/cdn/chunks/{extensions-CFF2KWy-.js.map → extensions-Uh9vuFfK.js.map} +1 -1
- package/dist/{fr-CSgYtjOd.js → cdn/chunks/fr-CYbamiI6.js} +116 -0
- package/dist/cdn/chunks/fr-CYbamiI6.js.map +1 -0
- package/dist/cdn/chunks/{icons-okSPsLOa.js → icons-CSSMtbGK.js} +150 -109
- package/dist/cdn/chunks/icons-CSSMtbGK.js.map +1 -0
- package/dist/{ja-B7H3ID8O.js → cdn/chunks/ja-DfaIAoGI.js} +116 -0
- package/dist/cdn/chunks/ja-DfaIAoGI.js.map +1 -0
- package/dist/cdn/chunks/keys-CoQtCqNv.js +11 -0
- package/dist/cdn/chunks/keys-CoQtCqNv.js.map +1 -0
- package/dist/cdn/chunks/languageName-DEEOhDWI.js +12 -0
- package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +1 -0
- package/dist/{nl-176ySmc5.js → cdn/chunks/nl-DkrB-VKZ.js} +116 -0
- package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +1 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-oGhwVscw.js +290 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-oGhwVscw.js.map +1 -0
- package/dist/cdn/chunks/noticeTones-D7BPu-Le.js +16 -0
- package/dist/cdn/chunks/noticeTones-D7BPu-Le.js.map +1 -0
- package/dist/cdn/chunks/plural-CyxrJXL1.js +17 -0
- package/dist/cdn/chunks/plural-CyxrJXL1.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-BcXIz7oJ.js → preRenderCustomBlocks-C8k7tw98.js} +5 -5
- package/dist/cdn/chunks/{preRenderCustomBlocks-BcXIz7oJ.js.map → preRenderCustomBlocks-C8k7tw98.js.map} +1 -1
- package/dist/{pt-BR-dDlTwX18.js → cdn/chunks/pt-BR-CY5Ye7eP.js} +116 -0
- package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +1 -0
- package/dist/cdn/chunks/sanitizeHtml-DYklmvgX.js +61 -0
- package/dist/cdn/chunks/sanitizeHtml-DYklmvgX.js.map +1 -0
- package/dist/cdn/chunks/socialIcons-BAiuHyJs.js +2638 -0
- package/dist/cdn/chunks/socialIcons-BAiuHyJs.js.map +1 -0
- package/dist/cdn/chunks/src-CACM3o--.js +2606 -0
- package/dist/cdn/chunks/src-CACM3o--.js.map +1 -0
- package/dist/cdn/chunks/{src-C7bkofBL.js → src-Ddpm4HsS.js} +222 -256
- package/dist/cdn/chunks/src-Ddpm4HsS.js.map +1 -0
- package/dist/cdn/chunks/{src-DEd87i_U.js → src-DheBmnvF.js} +635 -478
- package/dist/cdn/chunks/src-DheBmnvF.js.map +1 -0
- package/dist/{styleConstants-B8xVRiwX.js → cdn/chunks/styleConstants-CgiNKdnc.js} +7 -5
- package/dist/cdn/chunks/styleConstants-CgiNKdnc.js.map +1 -0
- package/dist/cdn/chunks/templateSettingsFields-cjlP-jdw.js.map +1 -1
- package/dist/cdn/chunks/{tiptap-CbiTlECY.js → tiptap-Dipw_zOQ.js} +40 -40
- package/dist/cdn/chunks/{tiptap-CbiTlECY.js.map → tiptap-Dipw_zOQ.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js → useCloudI18n-Cc5NZqiI.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js.map → useCloudI18n-Cc5NZqiI.js.map} +1 -1
- package/dist/cdn/chunks/useEditorRoot-D_LuZ_hE.js +9 -0
- package/dist/cdn/chunks/{useEditorRoot-vjZJwKrV.js.map → useEditorRoot-D_LuZ_hE.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-D8pY4LTq.js → useI18n-BnJYydPv.js} +3 -3
- package/dist/cdn/chunks/{useI18n-D8pY4LTq.js.map → useI18n-BnJYydPv.js.map} +1 -1
- package/dist/cdn/chunks/useLocalizedDisplay-yXbRKNrs.js +33 -0
- package/dist/cdn/chunks/useLocalizedDisplay-yXbRKNrs.js.map +1 -0
- package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js → useLogicTag-B7RpqVFQ.js} +5 -5
- package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js.map → useLogicTag-B7RpqVFQ.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js → useMergeTag-C-32ETjj.js} +6 -6
- package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js.map → useMergeTag-C-32ETjj.js.map} +1 -1
- package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js +78 -0
- package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js.map +1 -0
- package/dist/cdn/chunks/{useScrollToBlock-vjQ0fe-L.js → useScrollToBlock-Ct1AwLD-.js} +5 -5
- package/dist/cdn/chunks/useScrollToBlock-Ct1AwLD-.js.map +1 -0
- package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js → withCurrentFont-D33ZXoWp.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js.map → withCurrentFont-D33ZXoWp.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +2190 -1496
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-BZ8o0eet.js → check-ChQ0l8EQ.js} +1 -1
- package/dist/{chevron-down-DfAAfILv.js → chevron-down-Bh6cp6PI.js} +1 -1
- package/dist/{chevron-right-Bk4mGdr7.js → chevron-right-LUgdqdoW.js} +1 -1
- package/dist/{chevron-up-MhUf_azW.js → chevron-up-XsDeJxQN.js} +1 -1
- package/dist/{circle-alert-CShJwVFv.js → circle-alert-lODfDsrj.js} +1 -1
- package/dist/{clock-CTfD6OCt.js → clock-DrqFEZkT.js} +1 -1
- package/dist/composables-BOP3ERRP.js +4517 -0
- package/dist/{createCloudRuntime-DCgO4A1r.js → createCloudRuntime-DGV5a5Af.js} +54 -52
- package/dist/{createLucideIcon-CvhTA2KG.js → createLucideIcon-Dw5e5gVE.js} +11 -11
- package/dist/{cdn/chunks/de-CeFJ6wbM.js → de-DaOUfYBX.js} +114 -2
- package/dist/{dist-ByCWA2Tv.js → dist-0alKVRc_.js} +101 -101
- package/dist/{dist-Cy8I5scI.js → dist-54VCNoC0.js} +2 -2
- package/dist/dist-6DU0me3E.js +4 -0
- package/dist/{dist-p3wymUDt.js → dist-B8dY8drK.js} +2 -2
- package/dist/{dist-Dd5MU2Ev.js → dist-B9a7iVye.js} +2 -2
- package/dist/{dist-V7W1UhVr.js → dist-BWflWcpW.js} +2 -2
- package/dist/{dist-D6fZec6r.js → dist-C3hu_C3w.js} +2 -2
- package/dist/{dist-CVy-7PHQ.js → dist-CX7skkvG.js} +48 -48
- package/dist/dist-CcOn7WCo.js +4 -0
- package/dist/dist-Cdkm20M6.js +2542 -0
- package/dist/{dist-BS5uKktL.js → dist-ChOb5XHW.js} +2 -2
- package/dist/{dist-BF5zEHop.js → dist-DZ3X-uB8.js} +2 -2
- package/dist/{dist-CWSG7Kj0.js → dist-D_XrUEET.js} +5 -5
- package/dist/{dist-txQLT2sF.js → dist-TAv500j6.js} +2 -2
- package/dist/{dist-D6cMdrfG.js → dist-fqSers8_.js} +55 -55
- package/dist/{editor-modal-zaZHcmlO.js → editor-modal-B_2EAOjN.js} +953 -952
- package/dist/{cdn/chunks/en-D14i5nFh.js → en-C0pHHMiR.js} +114 -2
- package/dist/en-DTtwco2Q.js +1 -0
- package/dist/{cdn/chunks/es-zDacbMhs.js → es-CxyEKr6n.js} +114 -2
- package/dist/{extensions-fo_c-vqf.js → extensions-DOLZkLzV.js} +173 -173
- package/dist/{eye-7W4t5e0Q.js → eye-DChfk0gi.js} +1 -1
- package/dist/{cdn/chunks/fr-CSgYtjOd.js → fr-CYbamiI6.js} +114 -2
- package/dist/{image-BDiRFzSd.js → image--Hj2by1G.js} +1 -1
- package/dist/index.d.ts +182 -14
- package/dist/{info-Cxi3-Kh9.js → info-BbXgy82f.js} +1 -1
- package/dist/{cdn/chunks/ja-B7H3ID8O.js → ja-DfaIAoGI.js} +114 -2
- package/dist/keys-BCqskl51.js +9 -0
- package/dist/languageName-DEEOhDWI.js +10 -0
- package/dist/{link-ju_2Cmir.js → link-C2_8yJno.js} +1 -1
- package/dist/{list-DYZJf0aZ.js → list-DLGs2n0V.js} +1 -1
- package/dist/{loader-circle-BZRD0a4I.js → loader-circle-BbDItE_O.js} +1 -1
- package/dist/{message-circle-DuEw4Zfx.js → message-circle-NAModq0p.js} +1 -1
- package/dist/{cdn/chunks/nl-176ySmc5.js → nl-DkrB-VKZ.js} +114 -2
- package/dist/normalizeMergeTagMarkup-CUCo7B5X.js +288 -0
- package/dist/noticeTones-D7BPu-Le.js +14 -0
- package/dist/{package-CePMr2kK.js → package-BuzsfRyH.js} +1 -1
- package/dist/{pencil-D3aFCL7c.js → pencil-BTUUECH4.js} +1 -1
- package/dist/plural-CyxrJXL1.js +15 -0
- package/dist/plus-Dm7DN65T.js +13 -0
- package/dist/{preRenderCustomBlocks--_xc0XK3.js → preRenderCustomBlocks-Bs3N9no-.js} +4 -4
- package/dist/{cdn/chunks/pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +114 -2
- package/dist/{refresh-cw-xnro7_Sk.js → refresh-cw-xMURqGWi.js} +2 -12
- package/dist/rotate-ccw-DqVcEIn5.js +13 -0
- package/dist/{runtime-dom.esm-bundler-BURR-bj5.js → runtime-dom.esm-bundler-DlHp8xgy.js} +154 -154
- package/dist/sanitizeHtml-mKgNUdME.js +962 -0
- package/dist/{search-CDrstRBv.js → search-Cfr3W44N.js} +1 -1
- package/dist/{send-DROkPOaX.js → send-CH1SrvyB.js} +1 -1
- package/dist/{smartphone-Bx6u_tjn.js → smartphone-pAkvzjdI.js} +1 -1
- package/dist/socialIcons-Dqr4DJOz.js +2705 -0
- package/dist/{sparkles-CdaTtvoz.js → sparkles-CRO0cCnp.js} +1 -1
- package/dist/{square-BbCROH_f.js → square-CaQWMntx.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{cdn/chunks/styleConstants-B8xVRiwX.js → styleConstants-CgiNKdnc.js} +5 -7
- package/dist/templatical-editor.js +2438 -1752
- package/dist/{text-align-start-CGacJ9Vw.js → text-align-start-BQ39AaRK.js} +1 -1
- package/dist/{trash-DxCd7zIy.js → trash-BL5gEFHN.js} +1 -1
- package/dist/{triangle-alert-7_oaitpf.js → triangle-alert-BYbKu7zZ.js} +1 -1
- package/dist/{upload-DuFEOi_0.js → upload-BhmL4Vqx.js} +1 -1
- package/dist/{useCloudI18n-DEMmUKuO.js → useCloudI18n-Dh2iydo1.js} +4 -4
- package/dist/useEditorRoot-DY3mgcHm.js +7 -0
- package/dist/{useI18n-BBrHTdu8.js → useI18n-CgtvtF4C.js} +4 -4
- package/dist/useLocalizedDisplay-DNNwDRxL.js +31 -0
- package/dist/{useLogicTag-ZPC39rfH.js → useLogicTag-BXXXQQmi.js} +4 -4
- package/dist/{useMergeTag-BQ4qqWpQ.js → useMergeTag-C9Okr87y.js} +5 -5
- package/dist/usePopoverPosition-VDQjyX_A.js +76 -0
- package/dist/{useScrollToBlock-BSyAV4pk.js → useScrollToBlock-C0Kapxdh.js} +5 -5
- package/dist/{vue.runtime.esm-bundler-CnEeTfhs.js → vue.runtime.esm-bundler-BJXc_Mri.js} +1373 -1368
- package/dist/withCurrentFont-DJiQqZzL.js +18 -0
- package/dist/{x-BpfG7v9g.js → x-B7NZYzhx.js} +1 -1
- package/package.json +20 -20
- package/dist/AiAltTextPopover-DawbUywc.js +0 -105
- package/dist/AiChatPanel-CupPhmsN.js +0 -548
- package/dist/BlockIssueBadge-BxpDy3u-.js +0 -33
- package/dist/BlockPreviewCanvas-B-4bmJ3t.js +0 -140
- package/dist/CollaborationNotices-CTw4JThq.js +0 -75
- package/dist/CommentsPanel-DwwFuh1h.js +0 -16
- package/dist/CommentsSidebar-9ZfiC2DO.js +0 -500
- package/dist/CountdownToolbar-BqoYzf_6.js +0 -197
- package/dist/IssuesPanel-4ykrf1ax.js +0 -359
- package/dist/MergeTagTextarea-CPFEjJZd.js +0 -69
- package/dist/ParagraphEditor-CWXfurGh.js +0 -796
- package/dist/TemplateSettings-CS0f1Ues.js +0 -236
- package/dist/TestEmailModal-DBD0X5nV.js +0 -209
- package/dist/TitleEditor-DSqtle77.js +0 -198
- package/dist/ToggleSwitch-JykPyD_8.js +0 -36
- package/dist/Toolbar-BZPFfKrf.js +0 -3145
- package/dist/VersionPreviewBanner-DECaBwLq.js +0 -37
- package/dist/WrapperBlock-BsJv_Fiw.js +0 -44
- package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js +0 -106
- package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js.map +0 -1
- package/dist/cdn/chunks/AiAltTextReview-BGLLSKLm.js.map +0 -1
- package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js +0 -474
- package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js.map +0 -1
- package/dist/cdn/chunks/AiRewriteMenu-qf-cfEpy.js.map +0 -1
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +0 -34
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +0 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-DGBh6mqe.js +0 -142
- package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js +0 -77
- package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js.map +0 -1
- package/dist/cdn/chunks/CommentsPanel-DoJnKLXI.js +0 -18
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js +0 -470
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +0 -1
- package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js +0 -199
- package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-C7LfxaAY.js.map +0 -1
- package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js +0 -1051
- package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js.map +0 -1
- package/dist/cdn/chunks/MediaEditModal-Cpcod6_U.js.map +0 -1
- package/dist/cdn/chunks/MergeTagModeToggle-BgKEVUtV.js.map +0 -1
- package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js +0 -71
- package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js +0 -631
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +0 -1
- package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js +0 -208
- package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js +0 -209
- package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js +0 -198
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +0 -1
- package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js +0 -38
- package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-CdpsvNOR.js +0 -3061
- package/dist/cdn/chunks/Toolbar-CdpsvNOR.js.map +0 -1
- package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js +0 -39
- package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js +0 -46
- package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js.map +0 -1
- package/dist/cdn/chunks/ca-CD-Kt1qz.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-Cth2JCEh.js.map +0 -1
- package/dist/cdn/chunks/de-CeFJ6wbM.js.map +0 -1
- package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +0 -1
- package/dist/cdn/chunks/en-D14i5nFh.js.map +0 -1
- package/dist/cdn/chunks/en-TIqv4ag3.js +0 -1
- package/dist/cdn/chunks/es-zDacbMhs.js.map +0 -1
- package/dist/cdn/chunks/fr-CSgYtjOd.js.map +0 -1
- package/dist/cdn/chunks/icons-okSPsLOa.js.map +0 -1
- package/dist/cdn/chunks/ja-B7H3ID8O.js.map +0 -1
- package/dist/cdn/chunks/keys-CUj6UA38.js +0 -11
- package/dist/cdn/chunks/keys-CUj6UA38.js.map +0 -1
- package/dist/cdn/chunks/nl-176ySmc5.js.map +0 -1
- package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js +0 -198
- package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-dDlTwX18.js.map +0 -1
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js +0 -72
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-jsTDmkbb.js +0 -2008
- package/dist/cdn/chunks/socialIcons-jsTDmkbb.js.map +0 -1
- package/dist/cdn/chunks/src-C7bkofBL.js.map +0 -1
- package/dist/cdn/chunks/src-DEd87i_U.js.map +0 -1
- package/dist/cdn/chunks/src-DwWrYnUj.js +0 -1404
- package/dist/cdn/chunks/src-DwWrYnUj.js.map +0 -1
- package/dist/cdn/chunks/styleConstants-B8xVRiwX.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +0 -2582
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +0 -9
- package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js +0 -70
- package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js.map +0 -1
- package/dist/cdn/chunks/useScrollToBlock-vjQ0fe-L.js.map +0 -1
- package/dist/dist-CKi_npZM.js +0 -1344
- package/dist/dist-DyFArF_G.js +0 -4
- package/dist/dist-pA3ooG6N.js +0 -4
- package/dist/en-Db76vJbY.js +0 -1
- package/dist/keys-BgRERHzu.js +0 -9
- package/dist/normalizeMergeTagMarkup-CELnOlgK.js +0 -196
- package/dist/sanitizeHtml-BzfzpYJY.js +0 -942
- package/dist/socialIcons-D7MGsg0d.js +0 -2075
- package/dist/useEditorCore-BSo2sSID.js +0 -4059
- package/dist/useEditorRoot-BMcoCLBx.js +0 -7
- package/dist/usePopoverPosition-DV1PxL66.js +0 -68
- package/dist/withCurrentFont-B22FXAF5.js +0 -18
package/dist/dist-CKi_npZM.js
DELETED
|
@@ -1,1344 +0,0 @@
|
|
|
1
|
-
// ../types/dist/index.js
|
|
2
|
-
var e = [
|
|
3
|
-
"top",
|
|
4
|
-
"right",
|
|
5
|
-
"bottom",
|
|
6
|
-
"left"
|
|
7
|
-
];
|
|
8
|
-
function t(e) {
|
|
9
|
-
return {
|
|
10
|
-
top: { ...e },
|
|
11
|
-
right: { ...e },
|
|
12
|
-
bottom: { ...e },
|
|
13
|
-
left: { ...e }
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
function n(e) {
|
|
17
|
-
return !e || typeof e.width != "number" || !Number.isFinite(e.width) || e.width <= 0 ? null : `${e.width}px ${e.style} ${e.color}`;
|
|
18
|
-
}
|
|
19
|
-
function r(t) {
|
|
20
|
-
if (!t) return {};
|
|
21
|
-
let r = e.map((e) => n(t[e]));
|
|
22
|
-
if (r[0] !== null && r.every((e) => e === r[0])) return { border: r[0] };
|
|
23
|
-
let i = {};
|
|
24
|
-
return e.forEach((e, t) => {
|
|
25
|
-
let n = r[t];
|
|
26
|
-
n !== null && (i[`border-${e}`] = n);
|
|
27
|
-
}), i;
|
|
28
|
-
}
|
|
29
|
-
var i = [
|
|
30
|
-
"topLeft",
|
|
31
|
-
"topRight",
|
|
32
|
-
"bottomRight",
|
|
33
|
-
"bottomLeft"
|
|
34
|
-
];
|
|
35
|
-
function a(e) {
|
|
36
|
-
return typeof e == "number" && Number.isFinite(e) && e > 0 ? e : 0;
|
|
37
|
-
}
|
|
38
|
-
function o(e) {
|
|
39
|
-
if (e == null) return null;
|
|
40
|
-
let t = typeof e == "number" ? i.map(() => a(e)) : i.map((t) => a(e[t]));
|
|
41
|
-
return t.every((e) => e === 0) ? null : t.every((e) => e === t[0]) ? `${t[0]}px` : t.map((e) => `${e}px`).join(" ");
|
|
42
|
-
}
|
|
43
|
-
var s = {
|
|
44
|
-
1: 36,
|
|
45
|
-
2: 28,
|
|
46
|
-
3: 22,
|
|
47
|
-
4: 18
|
|
48
|
-
}, c = 1.3, l = {
|
|
49
|
-
paragraphGap: 8,
|
|
50
|
-
listMarginY: 8,
|
|
51
|
-
listPaddingLeft: 24,
|
|
52
|
-
listItemMarginY: 4
|
|
53
|
-
}, u = [
|
|
54
|
-
"cover",
|
|
55
|
-
"contain",
|
|
56
|
-
"auto"
|
|
57
|
-
], d = [
|
|
58
|
-
"left",
|
|
59
|
-
"center",
|
|
60
|
-
"right"
|
|
61
|
-
], ee = [
|
|
62
|
-
"top",
|
|
63
|
-
"center",
|
|
64
|
-
"bottom"
|
|
65
|
-
];
|
|
66
|
-
function te(e) {
|
|
67
|
-
return {
|
|
68
|
-
url: e,
|
|
69
|
-
size: "cover",
|
|
70
|
-
position: {
|
|
71
|
-
x: "center",
|
|
72
|
-
y: "center"
|
|
73
|
-
},
|
|
74
|
-
repeat: !1
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
function ne(e) {
|
|
78
|
-
let t = "";
|
|
79
|
-
for (let n of e) {
|
|
80
|
-
let e = n.charCodeAt(0);
|
|
81
|
-
t += e < 32 || e === 127 || n === "'" || n === "\"" || n === "\\" ? `%${e.toString(16).toUpperCase().padStart(2, "0")}` : n;
|
|
82
|
-
}
|
|
83
|
-
return t;
|
|
84
|
-
}
|
|
85
|
-
function f(e) {
|
|
86
|
-
let t = typeof e?.url == "string" ? e.url.trim() : "";
|
|
87
|
-
if (!e || !t) return null;
|
|
88
|
-
let n = u.includes(e.size) ? e.size : "cover", r = e.position, i = r && d.includes(r.x) ? r.x : "center", a = r && ee.includes(r.y) ? r.y : "center";
|
|
89
|
-
return {
|
|
90
|
-
url: ne(t),
|
|
91
|
-
size: n,
|
|
92
|
-
position: `${i} ${a}`,
|
|
93
|
-
repeat: e.repeat ? "repeat" : "no-repeat"
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
var re = [
|
|
97
|
-
"top",
|
|
98
|
-
"middle",
|
|
99
|
-
"bottom"
|
|
100
|
-
];
|
|
101
|
-
function ie(e) {
|
|
102
|
-
let t = e.hero;
|
|
103
|
-
if (!t || typeof t != "object") return null;
|
|
104
|
-
if (e.columns !== "1") return {
|
|
105
|
-
applied: !1,
|
|
106
|
-
reason: "columns"
|
|
107
|
-
};
|
|
108
|
-
let n = f(e.backgroundImage);
|
|
109
|
-
if (n === null) return {
|
|
110
|
-
applied: !1,
|
|
111
|
-
reason: "image"
|
|
112
|
-
};
|
|
113
|
-
let r = oe(e.backgroundImage), i = ae(t.height) ? Math.round(t.height) : "image";
|
|
114
|
-
return i === "image" && r === null ? {
|
|
115
|
-
applied: !1,
|
|
116
|
-
reason: "size"
|
|
117
|
-
} : {
|
|
118
|
-
applied: !0,
|
|
119
|
-
image: n,
|
|
120
|
-
height: i,
|
|
121
|
-
verticalAlign: re.includes(t.verticalAlign) ? t.verticalAlign : "middle",
|
|
122
|
-
aspectRatio: r
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
function ae(e) {
|
|
126
|
-
return typeof e == "number" && Number.isFinite(e) && e >= 1;
|
|
127
|
-
}
|
|
128
|
-
function oe(e) {
|
|
129
|
-
let t = e?.naturalWidth, n = e?.naturalHeight;
|
|
130
|
-
return typeof t != "number" || typeof n != "number" || !Number.isFinite(t) || !Number.isFinite(n) || t <= 0 || n <= 0 ? null : n / t;
|
|
131
|
-
}
|
|
132
|
-
var p = {
|
|
133
|
-
facebook: {
|
|
134
|
-
color: "#1877F2",
|
|
135
|
-
path: "M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"
|
|
136
|
-
},
|
|
137
|
-
twitter: {
|
|
138
|
-
color: "#000000",
|
|
139
|
-
path: "M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"
|
|
140
|
-
},
|
|
141
|
-
instagram: {
|
|
142
|
-
color: "#E4405F",
|
|
143
|
-
path: "M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z"
|
|
144
|
-
},
|
|
145
|
-
linkedin: {
|
|
146
|
-
color: "#0A66C2",
|
|
147
|
-
path: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"
|
|
148
|
-
},
|
|
149
|
-
youtube: {
|
|
150
|
-
color: "#FF0000",
|
|
151
|
-
path: "M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"
|
|
152
|
-
},
|
|
153
|
-
tiktok: {
|
|
154
|
-
color: "#000000",
|
|
155
|
-
path: "M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"
|
|
156
|
-
},
|
|
157
|
-
pinterest: {
|
|
158
|
-
color: "#BD081C",
|
|
159
|
-
path: "M12 0C5.373 0 0 5.372 0 12c0 5.084 3.163 9.426 7.627 11.174-.105-.949-.2-2.405.042-3.441.218-.937 1.407-5.965 1.407-5.965s-.359-.719-.359-1.782c0-1.668.967-2.914 2.171-2.914 1.023 0 1.518.769 1.518 1.69 0 1.029-.655 2.568-.994 3.995-.283 1.194.599 2.169 1.777 2.169 2.133 0 3.772-2.249 3.772-5.495 0-2.873-2.064-4.882-5.012-4.882-3.414 0-5.418 2.561-5.418 5.207 0 1.031.397 2.138.893 2.738.098.119.112.224.083.345l-.333 1.36c-.053.22-.174.267-.402.161-1.499-.698-2.436-2.889-2.436-4.649 0-3.785 2.75-7.262 7.929-7.262 4.163 0 7.398 2.967 7.398 6.931 0 4.136-2.607 7.464-6.227 7.464-1.216 0-2.359-.631-2.75-1.378l-.748 2.853c-.271 1.043-1.002 2.35-1.492 3.146C9.57 23.812 10.763 24 12 24c6.627 0 12-5.373 12-12 0-6.628-5.373-12-12-12z"
|
|
160
|
-
},
|
|
161
|
-
email: {
|
|
162
|
-
color: "#6B7280",
|
|
163
|
-
path: "M1.5 8.67v8.58a3 3 0 003 3h15a3 3 0 003-3V8.67l-8.928 5.493a3 3 0 01-3.144 0L1.5 8.67z M22.5 6.908V6.75a3 3 0 00-3-3h-15a3 3 0 00-3 3v.158l9.714 5.978a1.5 1.5 0 001.572 0L22.5 6.908z"
|
|
164
|
-
},
|
|
165
|
-
website: {
|
|
166
|
-
color: "#6B7280",
|
|
167
|
-
path: "M21.721 12.752a9.711 9.711 0 0 0-.945-5.003 12.754 12.754 0 0 1-4.339 2.708 18.991 18.991 0 0 1-.214 4.772 17.165 17.165 0 0 0 5.498-2.477ZM14.634 15.55a17.324 17.324 0 0 0 .332-4.647c-.952.227-1.945.347-2.966.347-1.021 0-2.014-.12-2.966-.347a17.515 17.515 0 0 0 .332 4.647 17.385 17.385 0 0 0 5.268 0ZM9.772 17.119a18.963 18.963 0 0 0 4.456 0A17.182 17.182 0 0 1 12 21.724a17.18 17.18 0 0 1-2.228-4.605ZM7.777 15.23a18.87 18.87 0 0 1-.214-4.774 12.753 12.753 0 0 1-4.34-2.708 9.711 9.711 0 0 0-.944 5.004 17.165 17.165 0 0 0 5.498 2.477ZM21.356 14.752a9.765 9.765 0 0 1-7.478 6.817 18.64 18.64 0 0 0 1.988-4.718 18.627 18.627 0 0 0 5.49-2.098ZM2.644 14.752c1.682.971 3.53 1.688 5.49 2.099a18.64 18.64 0 0 0 1.988 4.718 9.765 9.765 0 0 1-7.478-6.816ZM13.878 2.43a9.755 9.755 0 0 1 6.116 3.986 11.267 11.267 0 0 1-3.746 2.504 18.63 18.63 0 0 0-2.37-6.49ZM12 2.276a17.152 17.152 0 0 1 2.805 7.121c-.897.23-1.837.353-2.805.353-.968 0-1.908-.122-2.805-.353A17.151 17.151 0 0 1 12 2.276ZM10.122 2.43a18.629 18.629 0 0 0-2.37 6.49 11.266 11.266 0 0 1-3.746-2.504 9.754 9.754 0 0 1 6.116-3.985Z"
|
|
168
|
-
},
|
|
169
|
-
whatsapp: {
|
|
170
|
-
color: "#25D366",
|
|
171
|
-
path: "M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"
|
|
172
|
-
},
|
|
173
|
-
telegram: {
|
|
174
|
-
color: "#26A5E4",
|
|
175
|
-
path: "M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"
|
|
176
|
-
},
|
|
177
|
-
discord: {
|
|
178
|
-
color: "#5865F2",
|
|
179
|
-
path: "M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189z"
|
|
180
|
-
},
|
|
181
|
-
snapchat: {
|
|
182
|
-
color: "#FFFC00",
|
|
183
|
-
path: "M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.668.967-2.914 2.171-2.914 1.023 0 1.518.769 1.518 1.69 0 1.029-.655 2.568-.994 3.995-.283 1.194.599 2.169 1.777 2.169 2.133 0 3.772-2.249 3.772-5.495 0-2.873-2.064-4.882-5.012-4.882-3.414 0-5.418 2.561-5.418 5.207 0 1.031.397 2.138.893 2.738a.36.36 0 01.083.345l-.333 1.36c-.053.22-.174.267-.402.161-1.499-.698-2.436-2.889-2.436-4.649 0-3.785 2.75-7.262 7.929-7.262 4.163 0 7.398 2.967 7.398 6.931 0 4.136-2.607 7.464-6.227 7.464-1.216 0-2.359-.631-2.75-1.378l-.748 2.853c-.271 1.043-1.002 2.35-1.492 3.146 1.124.347 2.317.535 3.554.535 6.627 0 12.017-5.373 12.017-12.001C24.034 5.367 18.644 0 12.017 0z"
|
|
184
|
-
},
|
|
185
|
-
reddit: {
|
|
186
|
-
color: "#FF4500",
|
|
187
|
-
path: "M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm5.01 4.744c.688 0 1.25.561 1.25 1.249a1.25 1.25 0 0 1-2.498.056l-2.597-.547-.8 3.747c1.824.07 3.48.632 4.674 1.488.308-.309.73-.491 1.207-.491.968 0 1.754.786 1.754 1.754 0 .716-.435 1.333-1.01 1.614a3.111 3.111 0 0 1 .042.52c0 2.694-3.13 4.87-7.004 4.87-3.874 0-7.004-2.176-7.004-4.87 0-.183.015-.366.043-.534A1.748 1.748 0 0 1 4.028 12c0-.968.786-1.754 1.754-1.754.463 0 .898.196 1.207.49 1.207-.883 2.878-1.43 4.744-1.487l.885-4.182a.342.342 0 0 1 .14-.197.35.35 0 0 1 .238-.042l2.906.617a1.214 1.214 0 0 1 1.108-.701zM9.25 12C8.561 12 8 12.562 8 13.25c0 .687.561 1.248 1.25 1.248.687 0 1.248-.561 1.248-1.249 0-.688-.561-1.249-1.249-1.249zm5.5 0c-.687 0-1.248.561-1.248 1.25 0 .687.561 1.248 1.249 1.248.688 0 1.249-.561 1.249-1.249 0-.687-.562-1.249-1.25-1.249zm-5.466 3.99a.327.327 0 0 0-.231.094.33.33 0 0 0 0 .463c.842.842 2.484.913 2.961.913.477 0 2.105-.056 2.961-.913a.361.361 0 0 0 .029-.463.33.33 0 0 0-.464 0c-.547.533-1.684.73-2.512.73-.828 0-1.979-.196-2.512-.73a.326.326 0 0 0-.232-.095z"
|
|
188
|
-
},
|
|
189
|
-
github: {
|
|
190
|
-
color: "#181717",
|
|
191
|
-
path: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"
|
|
192
|
-
},
|
|
193
|
-
dribbble: {
|
|
194
|
-
color: "#EA4C89",
|
|
195
|
-
path: "M12 24C5.385 24 0 18.615 0 12S5.385 0 12 0s12 5.385 12 12-5.385 12-12 12zm10.12-10.358c-.35-.11-3.17-.953-6.384-.438 1.34 3.684 1.887 6.684 1.992 7.308 2.3-1.555 3.936-4.02 4.392-6.87zm-6.115 7.808c-.153-.9-.75-4.032-2.19-7.77l-.066.02c-5.79 2.015-7.86 6.025-8.04 6.4 1.73 1.358 3.92 2.166 6.29 2.166 1.42 0 2.77-.29 4-.814zm-11.62-2.58c.232-.4 3.045-5.055 8.332-6.765.135-.045.27-.084.405-.12-.26-.585-.54-1.167-.832-1.74C7.17 11.775 2.206 11.71 1.756 11.7l-.004.312c0 2.633.998 5.037 2.634 6.855zm-2.42-8.955c.46.008 4.683.026 9.477-1.248-1.698-3.018-3.53-5.558-3.8-5.928-2.868 1.35-5.01 3.99-5.676 7.17zM9.6 2.052c.282.38 2.145 2.914 3.822 6 3.645-1.365 5.19-3.44 5.373-3.702-1.81-1.61-4.19-2.586-6.795-2.586-.825 0-1.63.1-2.4.285zm10.335 3.483c-.218.29-1.935 2.493-5.724 4.04.24.49.47.985.68 1.486.08.18.15.36.22.53 3.41-.43 6.8.26 7.14.33-.02-2.42-.88-4.64-2.31-6.38z"
|
|
196
|
-
},
|
|
197
|
-
behance: {
|
|
198
|
-
color: "#1769FF",
|
|
199
|
-
path: "M22 7h-7V5h7v2zm1.726 10c-.442 1.297-2.029 3-5.101 3-3.074 0-5.564-1.729-5.564-5.675 0-3.91 2.325-5.92 5.466-5.92 3.082 0 4.964 1.782 5.375 4.426.078.506.109 1.188.095 2.14H15.97c.13 3.211 3.483 3.312 4.588 2.029h3.168zm-7.686-4h4.965c-.105-1.547-1.136-2.219-2.477-2.219-1.466 0-2.277.768-2.488 2.219zm-9.574 6.988H0V5.021h6.953c5.476.081 5.58 5.444 2.72 6.906 3.461 1.26 3.577 8.061-3.207 8.061zM3 11h3.584c2.508 0 2.906-3-.312-3H3v3zm3.391 3H3v3.016h3.341c3.055 0 2.868-3.016.05-3.016z"
|
|
200
|
-
}
|
|
201
|
-
}, m = {
|
|
202
|
-
dark: "#1f1f1f",
|
|
203
|
-
light: "#ffffff"
|
|
204
|
-
};
|
|
205
|
-
function se(e) {
|
|
206
|
-
return e === "dark" || e === "light" ? e : void 0;
|
|
207
|
-
}
|
|
208
|
-
function ce(e, t) {
|
|
209
|
-
let n = se(t);
|
|
210
|
-
return {
|
|
211
|
-
fill: n ? m[n] : p[e].color,
|
|
212
|
-
onFill: n === "light" ? m.dark : "#ffffff"
|
|
213
|
-
};
|
|
214
|
-
}
|
|
215
|
-
function le(e, t) {
|
|
216
|
-
if (se(t) === "dark" && (e === "plain" || e === "outlined")) return {
|
|
217
|
-
color: m.light,
|
|
218
|
-
opacity: .6,
|
|
219
|
-
width: 1.4
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
function ue(e) {
|
|
223
|
-
return e === "plain" ? .84 : .6;
|
|
224
|
-
}
|
|
225
|
-
function h(e) {
|
|
226
|
-
let t = [];
|
|
227
|
-
return JSON.parse(JSON.stringify(e, function(e, n) {
|
|
228
|
-
if (typeof n != "object" || !n) return n;
|
|
229
|
-
for (; t.length > 0 && t[t.length - 1] !== this;) t.pop();
|
|
230
|
-
if (!t.includes(n)) return t.push(n), n;
|
|
231
|
-
}));
|
|
232
|
-
}
|
|
233
|
-
function de(e) {
|
|
234
|
-
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
235
|
-
}
|
|
236
|
-
function g(e, t) {
|
|
237
|
-
if (e === t) return !0;
|
|
238
|
-
if (Array.isArray(e)) return !Array.isArray(t) || e.length !== t.length ? !1 : e.every((e, n) => g(e, t[n]));
|
|
239
|
-
if (de(e)) {
|
|
240
|
-
if (!de(t)) return !1;
|
|
241
|
-
let n = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)]);
|
|
242
|
-
for (let r of n) if ((e[r] !== void 0 || t[r] !== void 0) && !g(e[r], t[r])) return !1;
|
|
243
|
-
return !0;
|
|
244
|
-
}
|
|
245
|
-
return !1;
|
|
246
|
-
}
|
|
247
|
-
var _ = class extends Error {
|
|
248
|
-
code;
|
|
249
|
-
opIndex;
|
|
250
|
-
blockId;
|
|
251
|
-
constructor(e, t, n, r) {
|
|
252
|
-
super(n), this.name = "OperationError", this.code = e, this.opIndex = t, r !== void 0 && (this.blockId = r);
|
|
253
|
-
}
|
|
254
|
-
};
|
|
255
|
-
function fe(e) {
|
|
256
|
-
return e === "1" ? 1 : e === "3" ? 3 : 2;
|
|
257
|
-
}
|
|
258
|
-
function pe(e, t, n = {}) {
|
|
259
|
-
let r = h(e);
|
|
260
|
-
return v(r, t, n), r;
|
|
261
|
-
}
|
|
262
|
-
function v(e, t, n = {}) {
|
|
263
|
-
let r = {
|
|
264
|
-
locks: n.locks ?? [],
|
|
265
|
-
session: n.session ?? null
|
|
266
|
-
};
|
|
267
|
-
t.forEach((t, n) => Se(e, t, n, r));
|
|
268
|
-
}
|
|
269
|
-
var me = /* @__PURE__ */ new Set([
|
|
270
|
-
"id",
|
|
271
|
-
"type",
|
|
272
|
-
"children"
|
|
273
|
-
]), he = /* @__PURE__ */ new Set();
|
|
274
|
-
function y(e, t, n, r) {
|
|
275
|
-
throw new _(e, t, n, r);
|
|
276
|
-
}
|
|
277
|
-
function b(e) {
|
|
278
|
-
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
279
|
-
}
|
|
280
|
-
function x(e) {
|
|
281
|
-
return e.type === "section";
|
|
282
|
-
}
|
|
283
|
-
function ge(e) {
|
|
284
|
-
return Array.isArray(e.blocks) ? e.blocks : [];
|
|
285
|
-
}
|
|
286
|
-
function _e(e) {
|
|
287
|
-
let t = e.children;
|
|
288
|
-
return Array.isArray(t) ? t.map((e) => Array.isArray(e) ? e : []) : [];
|
|
289
|
-
}
|
|
290
|
-
function S(e, t) {
|
|
291
|
-
let n = ge(e);
|
|
292
|
-
for (let e = 0; e < n.length; e++) {
|
|
293
|
-
let r = n[e];
|
|
294
|
-
if (!b(r)) continue;
|
|
295
|
-
if (r.id === t) return {
|
|
296
|
-
block: r,
|
|
297
|
-
list: n,
|
|
298
|
-
index: e,
|
|
299
|
-
parent: null
|
|
300
|
-
};
|
|
301
|
-
if (!x(r) || typeof r.id != "string") continue;
|
|
302
|
-
let i = r.children;
|
|
303
|
-
if (Array.isArray(i)) for (let e = 0; e < i.length; e++) {
|
|
304
|
-
let n = i[e];
|
|
305
|
-
if (Array.isArray(n)) for (let i = 0; i < n.length; i++) {
|
|
306
|
-
let a = n[i];
|
|
307
|
-
if (b(a) && a.id === t) return {
|
|
308
|
-
block: a,
|
|
309
|
-
list: n,
|
|
310
|
-
index: i,
|
|
311
|
-
parent: {
|
|
312
|
-
sectionId: r.id,
|
|
313
|
-
column: e
|
|
314
|
-
}
|
|
315
|
-
};
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
return null;
|
|
320
|
-
}
|
|
321
|
-
function C(e) {
|
|
322
|
-
let t = typeof e.id == "string" ? [e.id] : [];
|
|
323
|
-
if (x(e)) for (let n of _e(e)) t.push(...ve(n));
|
|
324
|
-
return t;
|
|
325
|
-
}
|
|
326
|
-
function ve(e) {
|
|
327
|
-
return e.flatMap((e) => b(e) ? C(e) : []);
|
|
328
|
-
}
|
|
329
|
-
function w(e, t) {
|
|
330
|
-
return typeof e.blockId != "string" || e.blockId === "" ? y("invalid_operation", t, "blockId must be a block id.") : e.blockId;
|
|
331
|
-
}
|
|
332
|
-
function ye(e, t) {
|
|
333
|
-
let n = e.parent;
|
|
334
|
-
return n === null ? null : b(n) && typeof n.sectionId == "string" && typeof n.column == "number" && Number.isInteger(n.column) ? {
|
|
335
|
-
sectionId: n.sectionId,
|
|
336
|
-
column: n.column
|
|
337
|
-
} : y("invalid_operation", t, "parent must be null or { \"sectionId\", \"column\" }.");
|
|
338
|
-
}
|
|
339
|
-
function be(e, t) {
|
|
340
|
-
let n = e.after;
|
|
341
|
-
return n === null ? null : typeof n == "string" && n !== "" ? n : y("invalid_operation", t, "after must be null or a block id.");
|
|
342
|
-
}
|
|
343
|
-
function T(e, t) {
|
|
344
|
-
let n = e.expect;
|
|
345
|
-
return n == null ? null : b(n) ? n : y("invalid_operation", t, "expect must be an object.");
|
|
346
|
-
}
|
|
347
|
-
function E(e, t, n) {
|
|
348
|
-
let r = e.set ?? null, i = e.unset ?? [];
|
|
349
|
-
(r === null || b(r)) && Array.isArray(i) && i.every((e) => typeof e == "string") || y("invalid_operation", t, "set must be an object and unset a list of keys.");
|
|
350
|
-
let a = r === null ? {} : r, o = Object.keys(a).filter((e) => a[e] !== void 0);
|
|
351
|
-
o.length === 0 && i.length === 0 && y("invalid_operation", t, "Set or unset at least one key.");
|
|
352
|
-
for (let e of [...o, ...i]) n.has(e) && y("invalid_operation", t, `"${e}" can't be set or unset.`);
|
|
353
|
-
let s = i.find((e) => o.includes(e));
|
|
354
|
-
return s !== void 0 && y("invalid_operation", t, `"${s}" is both set and unset.`), {
|
|
355
|
-
set: Object.fromEntries(o.map((e) => [e, a[e]])),
|
|
356
|
-
unset: i
|
|
357
|
-
};
|
|
358
|
-
}
|
|
359
|
-
function D(e, t, n) {
|
|
360
|
-
if (b(e) && typeof e.id == "string" && e.id !== "" && typeof e.type == "string" || y("invalid_operation", t, "A block needs a non-empty string id and a string type."), !x(e)) return;
|
|
361
|
-
n && y("invalid_operation", t, "Sections can only be placed at the top level.");
|
|
362
|
-
let r = e.children;
|
|
363
|
-
Array.isArray(r) && r.every((e) => Array.isArray(e)) || y("invalid_operation", t, "A section needs children: a list of columns, each a list of blocks.");
|
|
364
|
-
for (let e of r) for (let n of e) D(n, t, !0);
|
|
365
|
-
}
|
|
366
|
-
function O(e, t) {
|
|
367
|
-
return e.session === null || t.sessionId !== e.session;
|
|
368
|
-
}
|
|
369
|
-
function k(e, t, n) {
|
|
370
|
-
let r = e.locks.find((n) => t.includes(n.blockId) && O(e, n));
|
|
371
|
-
r && y("lock_held", n, `Block "${r.blockId}" is being edited in another session.`, r.blockId);
|
|
372
|
-
}
|
|
373
|
-
function A(e, t, n, r) {
|
|
374
|
-
for (let [i, a] of Object.entries(t)) a !== void 0 && (g(Object.hasOwn(e, i) && e[i] !== void 0 ? e[i] : null, a) || y("precondition_failed", n, r === void 0 ? `Setting "${i}" has changed since.` : `"${i}" of block "${r}" has changed since.`, r));
|
|
375
|
-
}
|
|
376
|
-
function j(e, t, n) {
|
|
377
|
-
if (t === null) return Array.isArray(e.blocks) || (e.blocks = []), e.blocks;
|
|
378
|
-
let r = S(e, t.sectionId);
|
|
379
|
-
if (!r) return y("block_missing", n, `No section with id "${t.sectionId}".`, t.sectionId);
|
|
380
|
-
if (!x(r.block)) return y("invalid_operation", n, `Block "${t.sectionId}" isn't a section.`);
|
|
381
|
-
let i = r.block.children;
|
|
382
|
-
return !Array.isArray(i) || t.column < 0 || t.column >= i.length ? y("invalid_operation", n, `Section "${t.sectionId}" has no column ${t.column}.`) : (Array.isArray(i[t.column]) || (i[t.column] = []), i[t.column]);
|
|
383
|
-
}
|
|
384
|
-
function M(e, t, n) {
|
|
385
|
-
if (t === null) return 0;
|
|
386
|
-
let r = e.findIndex((e) => b(e) && e.id === t);
|
|
387
|
-
return r === -1 ? y("anchor_missing", n, `No block "${t}" in the target container.`, t) : r + 1;
|
|
388
|
-
}
|
|
389
|
-
function xe(e, t, n, r) {
|
|
390
|
-
let i = fe(t), a = Array.isArray(e.children) ? e.children : [];
|
|
391
|
-
for (let e = i; e < a.length; e++) {
|
|
392
|
-
let t = a[e];
|
|
393
|
-
Array.isArray(t) && t.length > 0 && y("invalid_operation", n, `Column ${e} of section "${r}" still holds blocks, so the layout can't drop it.`);
|
|
394
|
-
}
|
|
395
|
-
let o = a.slice(0, i);
|
|
396
|
-
for (; o.length < i;) o.push([]);
|
|
397
|
-
e.children = o;
|
|
398
|
-
}
|
|
399
|
-
function N(e, t, n) {
|
|
400
|
-
for (let [n, r] of Object.entries(t)) n === "__proto__" ? Object.defineProperty(e, n, {
|
|
401
|
-
value: h(r),
|
|
402
|
-
writable: !0,
|
|
403
|
-
enumerable: !0,
|
|
404
|
-
configurable: !0
|
|
405
|
-
}) : e[n] = h(r);
|
|
406
|
-
for (let t of n) delete e[t];
|
|
407
|
-
}
|
|
408
|
-
function Se(e, t, n, r) {
|
|
409
|
-
let i = t;
|
|
410
|
-
switch (b(i) && typeof i.op == "string" || y("invalid_operation", n, "Each operation must be an object with an \"op\"."), i.op) {
|
|
411
|
-
case "addBlock": return Ce(e, i, n);
|
|
412
|
-
case "moveBlock": return we(e, i, n, r);
|
|
413
|
-
case "deleteBlock": return Te(e, i, n, r);
|
|
414
|
-
case "updateBlock": return Ee(e, i, n, r);
|
|
415
|
-
case "updateSettings": return De(e, i, n);
|
|
416
|
-
case "setContent": return Oe(e, i, n, r);
|
|
417
|
-
default: y("invalid_operation", n, `Unknown operation "${i.op}".`);
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
function Ce(e, t, n) {
|
|
421
|
-
let r = ye(t, n), i = be(t, n), a = t.block;
|
|
422
|
-
D(a, n, r !== null);
|
|
423
|
-
let o = new Set(ve(ge(e))), s = /* @__PURE__ */ new Set();
|
|
424
|
-
for (let e of C(a)) (o.has(e) || s.has(e)) && y("block_exists", n, `A block with id "${e}" already exists.`, e), s.add(e);
|
|
425
|
-
let c = j(e, r, n);
|
|
426
|
-
c.splice(M(c, i, n), 0, h(a));
|
|
427
|
-
}
|
|
428
|
-
function we(e, t, n, r) {
|
|
429
|
-
let i = w(t, n), a = ye(t, n), o = be(t, n), s = T(t, n), c = S(e, i);
|
|
430
|
-
if (!c) return y("block_missing", n, `No block with id "${i}".`, i);
|
|
431
|
-
if (k(r, C(c.block), n), s) {
|
|
432
|
-
let e = c.index > 0 ? c.list[c.index - 1] : null, t = b(e) ? e.id ?? null : null;
|
|
433
|
-
g(c.parent, s.parent ?? null) && g(t, s.after ?? null) || y("precondition_failed", n, `Block "${i}" has moved since.`, i);
|
|
434
|
-
}
|
|
435
|
-
x(c.block) && a !== null && y("invalid_operation", n, "Sections can only be placed at the top level."), o === i && y("invalid_operation", n, "A block can't be placed after itself.");
|
|
436
|
-
let l = j(e, a, n);
|
|
437
|
-
c.list.splice(c.index, 1), l.splice(M(l, o, n), 0, c.block);
|
|
438
|
-
}
|
|
439
|
-
function Te(e, t, n, r) {
|
|
440
|
-
let i = w(t, n), a = T(t, n), o = S(e, i);
|
|
441
|
-
if (!o) return y("block_missing", n, `No block with id "${i}".`, i);
|
|
442
|
-
k(r, C(o.block), n), a && !g(o.block, a.block ?? null) && y("precondition_failed", n, `Block "${i}" has changed since.`, i), o.list.splice(o.index, 1);
|
|
443
|
-
}
|
|
444
|
-
function Ee(e, t, n, r) {
|
|
445
|
-
let i = w(t, n), { set: a, unset: o } = E(t, n, me), s = T(t, n), c = S(e, i);
|
|
446
|
-
if (!c) return y("block_missing", n, `No block with id "${i}".`, i);
|
|
447
|
-
let l = c.block, u = x(l);
|
|
448
|
-
u && o.includes("columns") && y("invalid_operation", n, "A section's columns can't be unset; set another layout instead."), k(r, [i], n), s && A(l, s, n, i), u && Object.hasOwn(a, "columns") && xe(l, a.columns, n, i), N(l, a, o);
|
|
449
|
-
}
|
|
450
|
-
function De(e, t, n) {
|
|
451
|
-
let { set: r, unset: i } = E(t, n, he), a = T(t, n);
|
|
452
|
-
b(e.settings) || (e.settings = {});
|
|
453
|
-
let o = e.settings;
|
|
454
|
-
a && A(o, a, n), N(o, r, i);
|
|
455
|
-
}
|
|
456
|
-
function Oe(e, t, n, r) {
|
|
457
|
-
let i = t.content;
|
|
458
|
-
if (!b(i) || !Array.isArray(i.blocks) || !b(i.settings)) return y("invalid_operation", n, "setContent needs content with a blocks array and a settings object.");
|
|
459
|
-
let a = r.locks.find((e) => O(r, e));
|
|
460
|
-
a && y("locked_by_others", n, "Other sessions hold locks on this template.", a.blockId), e.blocks = h(i.blocks), e.settings = h(i.settings);
|
|
461
|
-
}
|
|
462
|
-
function ke(e) {
|
|
463
|
-
let t = e.children;
|
|
464
|
-
return e.type === "section" && Array.isArray(t) ? t : [];
|
|
465
|
-
}
|
|
466
|
-
function P(e, t, n = null) {
|
|
467
|
-
for (let r = 0; r < e.length; r++) {
|
|
468
|
-
let i = e[r];
|
|
469
|
-
if (i.id === t) return {
|
|
470
|
-
block: i,
|
|
471
|
-
parent: n,
|
|
472
|
-
after: r > 0 ? e[r - 1].id : null
|
|
473
|
-
};
|
|
474
|
-
let a = ke(i);
|
|
475
|
-
for (let e = 0; e < a.length; e++) {
|
|
476
|
-
if (!Array.isArray(a[e])) continue;
|
|
477
|
-
let n = P(a[e], t, {
|
|
478
|
-
sectionId: i.id,
|
|
479
|
-
column: e
|
|
480
|
-
});
|
|
481
|
-
if (n) return n;
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
return null;
|
|
485
|
-
}
|
|
486
|
-
function F(e, t, n) {
|
|
487
|
-
let r = P(e.blocks, t);
|
|
488
|
-
if (!r) throw new _("block_missing", n, `No block with id "${t}".`, t);
|
|
489
|
-
return r;
|
|
490
|
-
}
|
|
491
|
-
function Ae(e, t, n) {
|
|
492
|
-
let r = {}, i = [], a = {}, o = [.../* @__PURE__ */ new Set([...Object.keys(t ?? {}), ...n ?? []])];
|
|
493
|
-
for (let n of o) {
|
|
494
|
-
let o = e[n];
|
|
495
|
-
o === void 0 ? i.push(n) : r[n] = h(o);
|
|
496
|
-
let s = t && n in t ? t[n] : void 0;
|
|
497
|
-
a[n] = s === void 0 ? null : h(s);
|
|
498
|
-
}
|
|
499
|
-
return {
|
|
500
|
-
set: r,
|
|
501
|
-
unset: i,
|
|
502
|
-
expect: a
|
|
503
|
-
};
|
|
504
|
-
}
|
|
505
|
-
function je(e, t, n) {
|
|
506
|
-
switch (t.op) {
|
|
507
|
-
case "addBlock": return {
|
|
508
|
-
op: "deleteBlock",
|
|
509
|
-
blockId: t.block.id,
|
|
510
|
-
expect: { block: h(t.block) }
|
|
511
|
-
};
|
|
512
|
-
case "deleteBlock": {
|
|
513
|
-
let r = F(e, t.blockId, n);
|
|
514
|
-
return {
|
|
515
|
-
op: "addBlock",
|
|
516
|
-
block: h(r.block),
|
|
517
|
-
parent: r.parent,
|
|
518
|
-
after: r.after
|
|
519
|
-
};
|
|
520
|
-
}
|
|
521
|
-
case "moveBlock": {
|
|
522
|
-
let r = F(e, t.blockId, n);
|
|
523
|
-
return {
|
|
524
|
-
op: "moveBlock",
|
|
525
|
-
blockId: t.blockId,
|
|
526
|
-
parent: r.parent,
|
|
527
|
-
after: r.after,
|
|
528
|
-
expect: {
|
|
529
|
-
parent: t.parent,
|
|
530
|
-
after: t.after
|
|
531
|
-
}
|
|
532
|
-
};
|
|
533
|
-
}
|
|
534
|
-
case "updateBlock": {
|
|
535
|
-
let r = F(e, t.blockId, n).block, { set: i, unset: a, expect: o } = Ae(r, t.set, t.unset);
|
|
536
|
-
return {
|
|
537
|
-
op: "updateBlock",
|
|
538
|
-
blockId: t.blockId,
|
|
539
|
-
...Object.keys(i).length > 0 ? { set: i } : {},
|
|
540
|
-
...a.length > 0 ? { unset: a } : {},
|
|
541
|
-
expect: o
|
|
542
|
-
};
|
|
543
|
-
}
|
|
544
|
-
case "updateSettings": {
|
|
545
|
-
let { set: n, unset: r, expect: i } = Ae(e.settings, t.set, t.unset);
|
|
546
|
-
return {
|
|
547
|
-
op: "updateSettings",
|
|
548
|
-
...Object.keys(n).length > 0 ? { set: n } : {},
|
|
549
|
-
...r.length > 0 ? { unset: r } : {},
|
|
550
|
-
expect: i
|
|
551
|
-
};
|
|
552
|
-
}
|
|
553
|
-
case "setContent": return {
|
|
554
|
-
op: "setContent",
|
|
555
|
-
content: {
|
|
556
|
-
blocks: h(e.blocks),
|
|
557
|
-
settings: h(e.settings)
|
|
558
|
-
}
|
|
559
|
-
};
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
function Me(e, t) {
|
|
563
|
-
let n = h(e), r = [];
|
|
564
|
-
return t.forEach((e, t) => {
|
|
565
|
-
r.push(je(n, e, t));
|
|
566
|
-
try {
|
|
567
|
-
v(n, [e]);
|
|
568
|
-
} catch (e) {
|
|
569
|
-
throw e instanceof _ ? new _(e.code, t, e.message, e.blockId) : e;
|
|
570
|
-
}
|
|
571
|
-
}), r.reverse();
|
|
572
|
-
}
|
|
573
|
-
var Ne = class extends Error {
|
|
574
|
-
statusCode;
|
|
575
|
-
code;
|
|
576
|
-
constructor(e, t, n, r) {
|
|
577
|
-
super(e), this.statusCode = t, this.code = n, this.name = "SdkError", r !== void 0 && Object.keys(r).length > 0 && (this.details = r);
|
|
578
|
-
}
|
|
579
|
-
get isNotFound() {
|
|
580
|
-
return this.statusCode === 404;
|
|
581
|
-
}
|
|
582
|
-
get isUnauthorized() {
|
|
583
|
-
return this.statusCode === 401;
|
|
584
|
-
}
|
|
585
|
-
get isServerError() {
|
|
586
|
-
return this.statusCode !== void 0 && this.statusCode >= 500;
|
|
587
|
-
}
|
|
588
|
-
};
|
|
589
|
-
function Pe(e) {
|
|
590
|
-
return e === "invalid_operation" ? 422 : e === "content_too_large" ? 413 : 409;
|
|
591
|
-
}
|
|
592
|
-
var Fe = class extends Ne {
|
|
593
|
-
opIndex;
|
|
594
|
-
holder;
|
|
595
|
-
holders;
|
|
596
|
-
constructor(e, t) {
|
|
597
|
-
super(e, t.status ?? Pe(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);
|
|
598
|
-
}
|
|
599
|
-
};
|
|
600
|
-
function I(e) {
|
|
601
|
-
return e.type === "section";
|
|
602
|
-
}
|
|
603
|
-
function Ie(e) {
|
|
604
|
-
return e.type === "custom";
|
|
605
|
-
}
|
|
606
|
-
function L(e) {
|
|
607
|
-
return e.type === "slot";
|
|
608
|
-
}
|
|
609
|
-
function R(e) {
|
|
610
|
-
return e.type === "wrapper";
|
|
611
|
-
}
|
|
612
|
-
var Le = {
|
|
613
|
-
content: "<p>Enter your title</p>",
|
|
614
|
-
level: 2,
|
|
615
|
-
textAlign: "left"
|
|
616
|
-
}, Re = { content: "<p>Enter your text here</p>" }, ze = {
|
|
617
|
-
src: "",
|
|
618
|
-
alt: "",
|
|
619
|
-
width: "full",
|
|
620
|
-
align: "center"
|
|
621
|
-
}, Be = {
|
|
622
|
-
text: "Click Here",
|
|
623
|
-
url: "",
|
|
624
|
-
backgroundColor: "#333333",
|
|
625
|
-
textColor: "#ffffff",
|
|
626
|
-
borderRadius: 6,
|
|
627
|
-
fontSize: 15,
|
|
628
|
-
buttonPadding: {
|
|
629
|
-
top: 12,
|
|
630
|
-
right: 24,
|
|
631
|
-
bottom: 12,
|
|
632
|
-
left: 24
|
|
633
|
-
},
|
|
634
|
-
align: "center"
|
|
635
|
-
}, Ve = {
|
|
636
|
-
lineStyle: "solid",
|
|
637
|
-
color: "#e0e0e0",
|
|
638
|
-
thickness: 1,
|
|
639
|
-
width: "full"
|
|
640
|
-
}, He = { columns: "1" }, Ue = {
|
|
641
|
-
url: "",
|
|
642
|
-
thumbnailUrl: "",
|
|
643
|
-
alt: "Video",
|
|
644
|
-
width: "full",
|
|
645
|
-
align: "center"
|
|
646
|
-
}, We = {
|
|
647
|
-
iconStyle: "solid",
|
|
648
|
-
iconSize: "medium",
|
|
649
|
-
spacing: 10,
|
|
650
|
-
align: "center"
|
|
651
|
-
}, Ge = { height: 24 }, Ke = { content: "" }, qe = {
|
|
652
|
-
fontSize: 15,
|
|
653
|
-
textAlign: "center",
|
|
654
|
-
separator: "|",
|
|
655
|
-
separatorColor: "#e0e0e0",
|
|
656
|
-
spacing: 10
|
|
657
|
-
}, Je = {
|
|
658
|
-
hasHeaderRow: !0,
|
|
659
|
-
borderColor: "#e0e0e0",
|
|
660
|
-
borderWidth: 1,
|
|
661
|
-
cellPadding: 8,
|
|
662
|
-
fontSize: 15,
|
|
663
|
-
textAlign: "left"
|
|
664
|
-
}, Ye = {
|
|
665
|
-
targetDate: "",
|
|
666
|
-
timezone: "UTC",
|
|
667
|
-
showDays: !0,
|
|
668
|
-
showHours: !0,
|
|
669
|
-
showMinutes: !0,
|
|
670
|
-
showSeconds: !0,
|
|
671
|
-
separator: ":",
|
|
672
|
-
digitFontSize: 32,
|
|
673
|
-
digitColor: "#1a1a1a",
|
|
674
|
-
labelColor: "#6b7280",
|
|
675
|
-
labelFontSize: 12,
|
|
676
|
-
backgroundColor: "#ffffff",
|
|
677
|
-
labelDays: "Days",
|
|
678
|
-
labelHours: "Hours",
|
|
679
|
-
labelMinutes: "Minutes",
|
|
680
|
-
labelSeconds: "Seconds",
|
|
681
|
-
expiredMessage: "This offer has expired",
|
|
682
|
-
expiredImageUrl: "",
|
|
683
|
-
hideOnExpiry: !1
|
|
684
|
-
}, Xe = {
|
|
685
|
-
title: Le,
|
|
686
|
-
paragraph: Re,
|
|
687
|
-
image: ze,
|
|
688
|
-
button: Be,
|
|
689
|
-
divider: Ve,
|
|
690
|
-
section: He,
|
|
691
|
-
video: Ue,
|
|
692
|
-
social: We,
|
|
693
|
-
spacer: Ge,
|
|
694
|
-
html: Ke,
|
|
695
|
-
menu: qe,
|
|
696
|
-
table: Je,
|
|
697
|
-
countdown: Ye
|
|
698
|
-
}, Ze = {
|
|
699
|
-
width: 600,
|
|
700
|
-
backgroundColor: "#ffffff",
|
|
701
|
-
textColor: "#1a1a1a",
|
|
702
|
-
linkUnderline: !0,
|
|
703
|
-
fontFamily: "Arial",
|
|
704
|
-
locale: "en"
|
|
705
|
-
};
|
|
706
|
-
function Qe(e) {
|
|
707
|
-
return typeof e == "object" && !!e && !Array.isArray(e) && Object.getPrototypeOf(e) === Object.prototype;
|
|
708
|
-
}
|
|
709
|
-
function z(e, t) {
|
|
710
|
-
let n = { ...e };
|
|
711
|
-
for (let r of Object.keys(t)) {
|
|
712
|
-
let i = e[r], a = t[r];
|
|
713
|
-
a !== void 0 && (n[r] = Qe(i) && Qe(a) ? z(i, a) : a);
|
|
714
|
-
}
|
|
715
|
-
return n;
|
|
716
|
-
}
|
|
717
|
-
function $e(e = "Arial", t) {
|
|
718
|
-
return {
|
|
719
|
-
blocks: [],
|
|
720
|
-
settings: {
|
|
721
|
-
...Ze,
|
|
722
|
-
fontFamily: e,
|
|
723
|
-
...t
|
|
724
|
-
}
|
|
725
|
-
};
|
|
726
|
-
}
|
|
727
|
-
var et = [
|
|
728
|
-
"ar",
|
|
729
|
-
"he",
|
|
730
|
-
"iw",
|
|
731
|
-
"fa",
|
|
732
|
-
"ur",
|
|
733
|
-
"yi",
|
|
734
|
-
"dv",
|
|
735
|
-
"ps",
|
|
736
|
-
"sd",
|
|
737
|
-
"ug",
|
|
738
|
-
"ckb",
|
|
739
|
-
"ks"
|
|
740
|
-
];
|
|
741
|
-
function tt(e) {
|
|
742
|
-
let t = e?.trim().replace(/_/g, "-").split("-")[0]?.toLowerCase();
|
|
743
|
-
return !!t && et.includes(t);
|
|
744
|
-
}
|
|
745
|
-
function nt(e) {
|
|
746
|
-
return e.direction === "ltr" || e.direction === "rtl" ? e.direction : tt(e.locale) ? "rtl" : "ltr";
|
|
747
|
-
}
|
|
748
|
-
function rt(e) {
|
|
749
|
-
return new e.Liquid({
|
|
750
|
-
strictVariables: !1,
|
|
751
|
-
strictFilters: !1,
|
|
752
|
-
outputEscape: "escape",
|
|
753
|
-
templates: {}
|
|
754
|
-
});
|
|
755
|
-
}
|
|
756
|
-
function B(e, t) {
|
|
757
|
-
let n = h(e);
|
|
758
|
-
return !t || Object.keys(t).length === 0 ? n : z(n, t);
|
|
759
|
-
}
|
|
760
|
-
function V(e) {
|
|
761
|
-
return e === void 0 ? void 0 : h(e);
|
|
762
|
-
}
|
|
763
|
-
function H() {
|
|
764
|
-
return crypto.randomUUID();
|
|
765
|
-
}
|
|
766
|
-
function it(e = 0) {
|
|
767
|
-
return {
|
|
768
|
-
top: e,
|
|
769
|
-
right: e,
|
|
770
|
-
bottom: e,
|
|
771
|
-
left: e
|
|
772
|
-
};
|
|
773
|
-
}
|
|
774
|
-
function U(e = 10) {
|
|
775
|
-
return { padding: it(e) };
|
|
776
|
-
}
|
|
777
|
-
function at(e = {}) {
|
|
778
|
-
return B({
|
|
779
|
-
id: H(),
|
|
780
|
-
type: "title",
|
|
781
|
-
...Le,
|
|
782
|
-
styles: U()
|
|
783
|
-
}, e);
|
|
784
|
-
}
|
|
785
|
-
function ot(e = {}) {
|
|
786
|
-
return B({
|
|
787
|
-
id: H(),
|
|
788
|
-
type: "paragraph",
|
|
789
|
-
...Re,
|
|
790
|
-
styles: U()
|
|
791
|
-
}, e);
|
|
792
|
-
}
|
|
793
|
-
function st(e = {}) {
|
|
794
|
-
return B({
|
|
795
|
-
id: H(),
|
|
796
|
-
type: "image",
|
|
797
|
-
...ze,
|
|
798
|
-
styles: U()
|
|
799
|
-
}, e);
|
|
800
|
-
}
|
|
801
|
-
function ct(e = {}) {
|
|
802
|
-
return B({
|
|
803
|
-
id: H(),
|
|
804
|
-
type: "button",
|
|
805
|
-
...Be,
|
|
806
|
-
styles: U()
|
|
807
|
-
}, e);
|
|
808
|
-
}
|
|
809
|
-
function lt(e = {}) {
|
|
810
|
-
return B({
|
|
811
|
-
id: H(),
|
|
812
|
-
type: "divider",
|
|
813
|
-
...Ve,
|
|
814
|
-
styles: U(20)
|
|
815
|
-
}, e);
|
|
816
|
-
}
|
|
817
|
-
function W(e = {}) {
|
|
818
|
-
return B({
|
|
819
|
-
id: H(),
|
|
820
|
-
type: "section",
|
|
821
|
-
...He,
|
|
822
|
-
children: [[]],
|
|
823
|
-
styles: U(20)
|
|
824
|
-
}, e);
|
|
825
|
-
}
|
|
826
|
-
function ut(e = {}) {
|
|
827
|
-
return B({
|
|
828
|
-
id: H(),
|
|
829
|
-
type: "video",
|
|
830
|
-
...Ue,
|
|
831
|
-
styles: U()
|
|
832
|
-
}, e);
|
|
833
|
-
}
|
|
834
|
-
function dt(e = {}) {
|
|
835
|
-
return B({
|
|
836
|
-
id: H(),
|
|
837
|
-
type: "social",
|
|
838
|
-
icons: [],
|
|
839
|
-
...We,
|
|
840
|
-
styles: U()
|
|
841
|
-
}, e);
|
|
842
|
-
}
|
|
843
|
-
function ft(e = {}) {
|
|
844
|
-
return B({
|
|
845
|
-
id: H(),
|
|
846
|
-
type: "spacer",
|
|
847
|
-
...Ge,
|
|
848
|
-
styles: U(0)
|
|
849
|
-
}, e);
|
|
850
|
-
}
|
|
851
|
-
function pt(e = {}) {
|
|
852
|
-
return B({
|
|
853
|
-
id: H(),
|
|
854
|
-
type: "html",
|
|
855
|
-
...Ke,
|
|
856
|
-
styles: U()
|
|
857
|
-
}, e);
|
|
858
|
-
}
|
|
859
|
-
function mt(e = {}) {
|
|
860
|
-
return B({
|
|
861
|
-
id: H(),
|
|
862
|
-
type: "menu",
|
|
863
|
-
items: [],
|
|
864
|
-
...qe,
|
|
865
|
-
styles: U()
|
|
866
|
-
}, e);
|
|
867
|
-
}
|
|
868
|
-
function ht(e, t) {
|
|
869
|
-
return Array.from({ length: t }, () => ({
|
|
870
|
-
id: H(),
|
|
871
|
-
cells: Array.from({ length: e }, () => ({
|
|
872
|
-
id: H(),
|
|
873
|
-
content: ""
|
|
874
|
-
}))
|
|
875
|
-
}));
|
|
876
|
-
}
|
|
877
|
-
function gt(e = {}) {
|
|
878
|
-
return B({
|
|
879
|
-
id: H(),
|
|
880
|
-
type: "table",
|
|
881
|
-
rows: ht(3, 3),
|
|
882
|
-
...Je,
|
|
883
|
-
styles: U()
|
|
884
|
-
}, e);
|
|
885
|
-
}
|
|
886
|
-
function _t(e = {}) {
|
|
887
|
-
return B({
|
|
888
|
-
id: H(),
|
|
889
|
-
type: "countdown",
|
|
890
|
-
...Ye,
|
|
891
|
-
styles: U()
|
|
892
|
-
}, e);
|
|
893
|
-
}
|
|
894
|
-
function vt(e) {
|
|
895
|
-
return e.type === "repeatable" ? e.default ?? [] : e.type === "boolean" ? e.default ?? !1 : e.type === "number" ? e.default ?? 0 : e.default ?? "";
|
|
896
|
-
}
|
|
897
|
-
function yt(e) {
|
|
898
|
-
let t = {};
|
|
899
|
-
for (let n of e.fields) t[n.key] = V(vt(n));
|
|
900
|
-
let n = B(U(), V(e.defaultStyles));
|
|
901
|
-
return {
|
|
902
|
-
id: H(),
|
|
903
|
-
type: "custom",
|
|
904
|
-
customType: e.type,
|
|
905
|
-
fieldValues: t,
|
|
906
|
-
styles: n,
|
|
907
|
-
...e.dataSource ? { dataSourceFetched: !1 } : {}
|
|
908
|
-
};
|
|
909
|
-
}
|
|
910
|
-
function bt() {
|
|
911
|
-
return {
|
|
912
|
-
id: H(),
|
|
913
|
-
type: "slot",
|
|
914
|
-
styles: U(0)
|
|
915
|
-
};
|
|
916
|
-
}
|
|
917
|
-
function xt(e = {}) {
|
|
918
|
-
return B({
|
|
919
|
-
id: H(),
|
|
920
|
-
type: "wrapper",
|
|
921
|
-
children: [],
|
|
922
|
-
styles: U(0)
|
|
923
|
-
}, e);
|
|
924
|
-
}
|
|
925
|
-
function St(e, t) {
|
|
926
|
-
switch (e) {
|
|
927
|
-
case "section": return W(V(t?.section));
|
|
928
|
-
case "title": return at(V(t?.title));
|
|
929
|
-
case "paragraph": return ot(V(t?.paragraph));
|
|
930
|
-
case "image": return st(V(t?.image));
|
|
931
|
-
case "button": return ct(V(t?.button));
|
|
932
|
-
case "divider": return lt(V(t?.divider));
|
|
933
|
-
case "video": return ut(V(t?.video));
|
|
934
|
-
case "social": return dt(V(t?.social));
|
|
935
|
-
case "spacer": return ft(V(t?.spacer));
|
|
936
|
-
case "html": return pt(V(t?.html));
|
|
937
|
-
case "menu": return mt(V(t?.menu));
|
|
938
|
-
case "table": return gt(V(t?.table));
|
|
939
|
-
case "countdown": return _t(V(t?.countdown));
|
|
940
|
-
case "slot": throw Error("[Templatical] slot cannot be inserted into content. Use createSlotBlock() to build a layout.");
|
|
941
|
-
case "wrapper": throw Error("[Templatical] wrapper cannot be inserted into content. Use createWrapperBlock() to build a layout.");
|
|
942
|
-
default: throw Error(`Unknown block type: ${e}`);
|
|
943
|
-
}
|
|
944
|
-
}
|
|
945
|
-
function G(e) {
|
|
946
|
-
let t = JSON.parse(JSON.stringify(e));
|
|
947
|
-
if (t.id = H(), t.type === "table") for (let e of t.rows) {
|
|
948
|
-
e.id = H();
|
|
949
|
-
for (let t of e.cells) t.id = H();
|
|
950
|
-
}
|
|
951
|
-
if (t.type === "menu") for (let e of t.items) e.id = H();
|
|
952
|
-
if (t.type === "social") for (let e of t.icons) e.id = H();
|
|
953
|
-
return t.type === "section" && (t.children = t.children.map((e) => e.map((e) => G(e)))), t.type === "wrapper" && (t.children = t.children.map((e) => G(e))), t;
|
|
954
|
-
}
|
|
955
|
-
var Ct = "[Templatical] layout: must contain exactly one slot block", wt = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", Tt = "[Templatical] layout: a wrapper cannot contain a wrapper", Et = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", Dt = "[Templatical] slot is not a valid content block", Ot = "[Templatical] wrapper is not a valid content block";
|
|
956
|
-
function K(e, t, n = null, r = !1) {
|
|
957
|
-
for (let i of e) if (t(i, n, r), I(i)) for (let e of i.children) K(e, t, i, !0);
|
|
958
|
-
else R(i) && K(i.children, t, i, r);
|
|
959
|
-
}
|
|
960
|
-
function kt(e) {
|
|
961
|
-
let t = 0;
|
|
962
|
-
if (K(e.blocks, (e, n, r) => {
|
|
963
|
-
if (L(e) && (t += 1, r)) throw Error(wt);
|
|
964
|
-
if (R(e)) {
|
|
965
|
-
if (r) throw Error(wt);
|
|
966
|
-
if (e.children.some(R)) throw Error(Tt);
|
|
967
|
-
}
|
|
968
|
-
}), t !== 1) throw Error(Ct);
|
|
969
|
-
}
|
|
970
|
-
function At(e) {
|
|
971
|
-
K(e.blocks, (e) => {
|
|
972
|
-
if (L(e)) throw Error(Dt);
|
|
973
|
-
});
|
|
974
|
-
}
|
|
975
|
-
function jt(e) {
|
|
976
|
-
K(e.blocks, (e) => {
|
|
977
|
-
if (R(e)) throw Error(Ot);
|
|
978
|
-
});
|
|
979
|
-
}
|
|
980
|
-
function Mt(e) {
|
|
981
|
-
let t = !1;
|
|
982
|
-
return K(e.blocks, (e, n) => {
|
|
983
|
-
L(e) && n !== null && R(n) && (t = !0);
|
|
984
|
-
}), t;
|
|
985
|
-
}
|
|
986
|
-
function Nt(e) {
|
|
987
|
-
if (L(e)) return e;
|
|
988
|
-
if (R(e)) {
|
|
989
|
-
let t = G({
|
|
990
|
-
...e,
|
|
991
|
-
children: []
|
|
992
|
-
});
|
|
993
|
-
return t.children = e.children.map(Nt), t;
|
|
994
|
-
}
|
|
995
|
-
return G(e);
|
|
996
|
-
}
|
|
997
|
-
function Pt(e) {
|
|
998
|
-
for (let t = 0; t < e.length; t++) {
|
|
999
|
-
let n = e[t];
|
|
1000
|
-
if (L(n)) return {
|
|
1001
|
-
parent: e,
|
|
1002
|
-
index: t
|
|
1003
|
-
};
|
|
1004
|
-
if (R(n)) {
|
|
1005
|
-
let e = Pt(n.children);
|
|
1006
|
-
if (e) return e;
|
|
1007
|
-
}
|
|
1008
|
-
}
|
|
1009
|
-
return null;
|
|
1010
|
-
}
|
|
1011
|
-
function Ft(e) {
|
|
1012
|
-
for (let t of e) if (I(t)) {
|
|
1013
|
-
if (t.wrapper) return !0;
|
|
1014
|
-
for (let e of t.children) if (Ft(e)) return !0;
|
|
1015
|
-
}
|
|
1016
|
-
return !1;
|
|
1017
|
-
}
|
|
1018
|
-
function It(e, t) {
|
|
1019
|
-
if (kt(e), At(t), jt(t), Mt(e) && Ft(t.blocks)) throw Error(Et);
|
|
1020
|
-
let n = e.blocks.map(Nt), r = Pt(n);
|
|
1021
|
-
if (!r) throw Error(Ct);
|
|
1022
|
-
return r.parent.splice(r.index, 1, ...h(t.blocks)), {
|
|
1023
|
-
blocks: n,
|
|
1024
|
-
settings: {
|
|
1025
|
-
...h(t.settings),
|
|
1026
|
-
backgroundColor: e.settings.backgroundColor
|
|
1027
|
-
}
|
|
1028
|
-
};
|
|
1029
|
-
}
|
|
1030
|
-
var Lt = Object.freeze([
|
|
1031
|
-
"http",
|
|
1032
|
-
"https",
|
|
1033
|
-
"mailto",
|
|
1034
|
-
"tel",
|
|
1035
|
-
"ftp",
|
|
1036
|
-
"ftps",
|
|
1037
|
-
"sms",
|
|
1038
|
-
"xmpp",
|
|
1039
|
-
"cid"
|
|
1040
|
-
]);
|
|
1041
|
-
Object.freeze([
|
|
1042
|
-
"javascript",
|
|
1043
|
-
"data",
|
|
1044
|
-
"vbscript"
|
|
1045
|
-
]);
|
|
1046
|
-
function Rt(e) {
|
|
1047
|
-
return e.replace(/[\t\n\r]/g, "").replace(/^[\u0000-\u0020]+/, "").trimEnd();
|
|
1048
|
-
}
|
|
1049
|
-
function zt(e) {
|
|
1050
|
-
let t = /^([a-z][a-z0-9+.-]*):/i.exec(Rt(e));
|
|
1051
|
-
return t ? t[1].toLowerCase() : null;
|
|
1052
|
-
}
|
|
1053
|
-
var Bt = /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i;
|
|
1054
|
-
function Vt(e, t) {
|
|
1055
|
-
let n = Rt(e), r = zt(n);
|
|
1056
|
-
return r === null || Lt.some((e) => e === r) ? !0 : t.toLowerCase() === "src" && Bt.test(n);
|
|
1057
|
-
}
|
|
1058
|
-
var Ht = /* @__PURE__ */ new Set(["\"", "'"]);
|
|
1059
|
-
function Ut(e, t) {
|
|
1060
|
-
let n = null;
|
|
1061
|
-
for (let r = t; r < e.length; r++) {
|
|
1062
|
-
let t = e[r];
|
|
1063
|
-
if (n !== null) t === n && (n = null);
|
|
1064
|
-
else if (Ht.has(t)) n = t;
|
|
1065
|
-
else if (t === ">") return r;
|
|
1066
|
-
}
|
|
1067
|
-
return -1;
|
|
1068
|
-
}
|
|
1069
|
-
function Wt(e) {
|
|
1070
|
-
return e !== " " && e !== " " && e !== "\n" && e !== "\r" && e !== "\f" && e !== "=" && e !== ">" && e !== "/";
|
|
1071
|
-
}
|
|
1072
|
-
function q(e) {
|
|
1073
|
-
return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
|
|
1074
|
-
}
|
|
1075
|
-
var Gt = {
|
|
1076
|
-
amp: "&",
|
|
1077
|
-
lt: "<",
|
|
1078
|
-
gt: ">",
|
|
1079
|
-
quot: "\"",
|
|
1080
|
-
apos: "'",
|
|
1081
|
-
nbsp: "\xA0"
|
|
1082
|
-
};
|
|
1083
|
-
function Kt(e) {
|
|
1084
|
-
return e.includes("&") ? e.replace(/&(#[0-9]+|#[xX][0-9a-fA-F]+|[a-zA-Z][a-zA-Z0-9]*);/g, (e, t) => {
|
|
1085
|
-
if (t[0] === "#") {
|
|
1086
|
-
let n = t[1] === "x" || t[1] === "X" ? Number.parseInt(t.slice(2), 16) : Number.parseInt(t.slice(1), 10);
|
|
1087
|
-
return !Number.isFinite(n) || n < 1 || n > 1114111 || n >= 55296 && n <= 57343 ? e : String.fromCodePoint(n);
|
|
1088
|
-
}
|
|
1089
|
-
return Gt[t.toLowerCase()] ?? e;
|
|
1090
|
-
}) : e;
|
|
1091
|
-
}
|
|
1092
|
-
function qt(e, t) {
|
|
1093
|
-
let n = t.toLowerCase(), r = 0;
|
|
1094
|
-
for (; r < e.length;) {
|
|
1095
|
-
for (; r < e.length && (q(e[r]) || e[r] === "/");) r++;
|
|
1096
|
-
if (r >= e.length) break;
|
|
1097
|
-
let t = r;
|
|
1098
|
-
for (; r < e.length && Wt(e[r]);) r++;
|
|
1099
|
-
let i = e.substring(t, r).toLowerCase();
|
|
1100
|
-
if (i === "") {
|
|
1101
|
-
r++;
|
|
1102
|
-
continue;
|
|
1103
|
-
}
|
|
1104
|
-
for (; r < e.length && q(e[r]);) r++;
|
|
1105
|
-
if (e[r] !== "=") continue;
|
|
1106
|
-
for (r++; r < e.length && q(e[r]);) r++;
|
|
1107
|
-
let a = e[r];
|
|
1108
|
-
if (Ht.has(a)) {
|
|
1109
|
-
let t = r + 1, o = e.indexOf(a, t);
|
|
1110
|
-
if (o === -1) return null;
|
|
1111
|
-
if (i === n) return Kt(e.substring(t, o));
|
|
1112
|
-
r = o + 1;
|
|
1113
|
-
continue;
|
|
1114
|
-
}
|
|
1115
|
-
let o = r;
|
|
1116
|
-
for (; r < e.length && !q(e[r]) && e[r] !== ">";) r++;
|
|
1117
|
-
if (i === n) return Kt(e.substring(o, r));
|
|
1118
|
-
}
|
|
1119
|
-
return null;
|
|
1120
|
-
}
|
|
1121
|
-
var Jt = /<\/?p\b[^<>]*>/gi, Yt = /<p\b([^<>]*)>\s*<\/p>/gi;
|
|
1122
|
-
function Xt(e) {
|
|
1123
|
-
return e.replace(Jt, "").trim() === "";
|
|
1124
|
-
}
|
|
1125
|
-
function Zt(e) {
|
|
1126
|
-
return Xt(e) ? e : e.replace(Yt, "<p$1> </p>");
|
|
1127
|
-
}
|
|
1128
|
-
var Qt = {
|
|
1129
|
-
arial: "Arial, sans-serif",
|
|
1130
|
-
helvetica: "Helvetica, sans-serif",
|
|
1131
|
-
georgia: "Georgia, serif",
|
|
1132
|
-
"times new roman": "'Times New Roman', serif",
|
|
1133
|
-
verdana: "Verdana, sans-serif",
|
|
1134
|
-
"trebuchet ms": "'Trebuchet MS', sans-serif",
|
|
1135
|
-
"courier new": "'Courier New', monospace",
|
|
1136
|
-
tahoma: "Tahoma, sans-serif"
|
|
1137
|
-
}, $t = /* @__PURE__ */ new Set([
|
|
1138
|
-
"inherit",
|
|
1139
|
-
"initial",
|
|
1140
|
-
"unset",
|
|
1141
|
-
"revert",
|
|
1142
|
-
"revert-layer"
|
|
1143
|
-
]), en = /* @__PURE__ */ new Set([
|
|
1144
|
-
"serif",
|
|
1145
|
-
"sans-serif",
|
|
1146
|
-
"monospace",
|
|
1147
|
-
"cursive",
|
|
1148
|
-
"fantasy",
|
|
1149
|
-
"system-ui",
|
|
1150
|
-
"ui-serif",
|
|
1151
|
-
"ui-sans-serif",
|
|
1152
|
-
"ui-monospace",
|
|
1153
|
-
"ui-rounded",
|
|
1154
|
-
"emoji",
|
|
1155
|
-
"math",
|
|
1156
|
-
"fangsong"
|
|
1157
|
-
]);
|
|
1158
|
-
function tn(e) {
|
|
1159
|
-
return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
|
|
1160
|
-
}
|
|
1161
|
-
function J(e) {
|
|
1162
|
-
if (typeof e != "string") return [];
|
|
1163
|
-
let t = e.replace(/!\s*important\s*$/i, ""), n = [], r = 0;
|
|
1164
|
-
for (;;) {
|
|
1165
|
-
for (; r < t.length && tn(t[r]);) r++;
|
|
1166
|
-
if (r >= t.length) return [];
|
|
1167
|
-
let e = t[r];
|
|
1168
|
-
if (e === "\"" || e === "'") {
|
|
1169
|
-
let i = "", a = r + 1, o = !1;
|
|
1170
|
-
for (; a < t.length;) {
|
|
1171
|
-
let n = t[a];
|
|
1172
|
-
if (n === "\\" && a + 1 < t.length) i += t[a + 1], a += 2;
|
|
1173
|
-
else {
|
|
1174
|
-
if (n === e) {
|
|
1175
|
-
o = !0, a++;
|
|
1176
|
-
break;
|
|
1177
|
-
}
|
|
1178
|
-
i += n, a++;
|
|
1179
|
-
}
|
|
1180
|
-
}
|
|
1181
|
-
if (!o) return [];
|
|
1182
|
-
for (; a < t.length && tn(t[a]);) a++;
|
|
1183
|
-
if (a < t.length && t[a] !== ",") return [];
|
|
1184
|
-
n.push({
|
|
1185
|
-
name: i,
|
|
1186
|
-
quoted: !0
|
|
1187
|
-
}), r = a;
|
|
1188
|
-
} else {
|
|
1189
|
-
let e = t.indexOf(",", r), i = e === -1 ? t.length : e, a = t.slice(r, i).trim().split(/\s+/).join(" ");
|
|
1190
|
-
if (a === "" || a.includes("\"") || a.includes("'") || $t.has(a.toLowerCase())) return [];
|
|
1191
|
-
n.push({
|
|
1192
|
-
name: a,
|
|
1193
|
-
quoted: !1
|
|
1194
|
-
}), r = i;
|
|
1195
|
-
}
|
|
1196
|
-
if (r >= t.length) return n;
|
|
1197
|
-
r++;
|
|
1198
|
-
}
|
|
1199
|
-
}
|
|
1200
|
-
function nn(e) {
|
|
1201
|
-
return `'${e.replace(/\\/g, "\\\\").replace(/'/g, "\\'")}'`;
|
|
1202
|
-
}
|
|
1203
|
-
function rn(e) {
|
|
1204
|
-
return !e.quoted && en.has(e.name.toLowerCase());
|
|
1205
|
-
}
|
|
1206
|
-
function an(e) {
|
|
1207
|
-
return J(e)[0]?.name ?? "";
|
|
1208
|
-
}
|
|
1209
|
-
function on(e, t) {
|
|
1210
|
-
let n = (e) => `${nn(e.name)}, ${e.fallback ?? t.defaultFallback}`, r = typeof e == "string" ? e.trim().toLowerCase() : "", i = t.customFonts.find((e) => e.name.toLowerCase() === r);
|
|
1211
|
-
if (i) return n(i);
|
|
1212
|
-
let a = J(e);
|
|
1213
|
-
if (a.length !== 1) return e;
|
|
1214
|
-
let [o] = a, s = o.name.toLowerCase(), c = t.customFonts.find((e) => e.name.toLowerCase() === s);
|
|
1215
|
-
return c ? n(c) : Qt[s] || (rn(o) ? e : `${nn(o.name)}, ${t.defaultFallback}`);
|
|
1216
|
-
}
|
|
1217
|
-
var Y = {
|
|
1218
|
-
liquid: {
|
|
1219
|
-
value: /\{\{.+?\}\}/g,
|
|
1220
|
-
logic: /\{%-?\s*(\w+).*?-?%\}/g,
|
|
1221
|
-
opener: "{{",
|
|
1222
|
-
closer: "}}"
|
|
1223
|
-
},
|
|
1224
|
-
handlebars: {
|
|
1225
|
-
value: /\{\{\{?.+?\}?\}\}/g,
|
|
1226
|
-
logic: /\{\{[#/](\w+).*?\}\}/g,
|
|
1227
|
-
opener: "{{",
|
|
1228
|
-
closer: "}}"
|
|
1229
|
-
},
|
|
1230
|
-
mailchimp: {
|
|
1231
|
-
value: /\*\|\w+\|\*/g,
|
|
1232
|
-
logic: /\*\|(\w+)[:|].*?\|\*/g,
|
|
1233
|
-
opener: "*|",
|
|
1234
|
-
closer: "|*"
|
|
1235
|
-
},
|
|
1236
|
-
ampscript: {
|
|
1237
|
-
value: /%%=.+?=%%/g,
|
|
1238
|
-
logic: /%%\[\s*(\w+).*?\]%%/g,
|
|
1239
|
-
opener: "%%=",
|
|
1240
|
-
closer: "=%%"
|
|
1241
|
-
}
|
|
1242
|
-
};
|
|
1243
|
-
function sn(e) {
|
|
1244
|
-
return typeof e == "string" && e.trim() !== "" ? e : null;
|
|
1245
|
-
}
|
|
1246
|
-
function cn(e) {
|
|
1247
|
-
return Object.values(Y).find((t) => t.value.source === e.value.source) ?? null;
|
|
1248
|
-
}
|
|
1249
|
-
function ln(e) {
|
|
1250
|
-
return sn(e.opener) ?? cn(e)?.opener ?? null;
|
|
1251
|
-
}
|
|
1252
|
-
function un(e) {
|
|
1253
|
-
return sn(e.closer) ?? cn(e)?.closer ?? null;
|
|
1254
|
-
}
|
|
1255
|
-
function dn(e) {
|
|
1256
|
-
return e ? typeof e == "string" ? Y[e] ?? Y.liquid : e : Y.liquid;
|
|
1257
|
-
}
|
|
1258
|
-
function X(e) {
|
|
1259
|
-
let t = e.source, n = e.flags.replace("g", "");
|
|
1260
|
-
return RegExp(`^${t}$`, n);
|
|
1261
|
-
}
|
|
1262
|
-
function fn(e, t) {
|
|
1263
|
-
let n = e?.trim() || "";
|
|
1264
|
-
return !X(t.logic).test(n) && X(t.value).test(n);
|
|
1265
|
-
}
|
|
1266
|
-
function Z(e, t) {
|
|
1267
|
-
let n = t.find((t) => t.value === e);
|
|
1268
|
-
return n ? n.label : e;
|
|
1269
|
-
}
|
|
1270
|
-
function pn(e, t) {
|
|
1271
|
-
return $(e, "data-merge-tag", (e) => Z(e, t));
|
|
1272
|
-
}
|
|
1273
|
-
function Q(e, t) {
|
|
1274
|
-
return t.find((t) => t.value === e)?.sample;
|
|
1275
|
-
}
|
|
1276
|
-
function mn(e, t) {
|
|
1277
|
-
return $(e, "data-merge-tag", (e) => _n(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
|
|
1278
|
-
}
|
|
1279
|
-
function hn(e) {
|
|
1280
|
-
return e.some((e) => e.sample !== void 0);
|
|
1281
|
-
}
|
|
1282
|
-
function gn(e, t) {
|
|
1283
|
-
if (!e) return e;
|
|
1284
|
-
let n = e;
|
|
1285
|
-
for (let e of t) e.sample !== void 0 && (n = n.split(e.value).join(e.sample));
|
|
1286
|
-
return n;
|
|
1287
|
-
}
|
|
1288
|
-
function _n(e) {
|
|
1289
|
-
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
1290
|
-
}
|
|
1291
|
-
function vn(e, t) {
|
|
1292
|
-
if (!e) return !1;
|
|
1293
|
-
let n = new RegExp(t.value.source, t.value.flags), r = new RegExp(t.logic.source, t.logic.flags);
|
|
1294
|
-
return n.test(e) || r.test(e);
|
|
1295
|
-
}
|
|
1296
|
-
function yn(e, t) {
|
|
1297
|
-
return X(t.logic).test(e?.trim() || "");
|
|
1298
|
-
}
|
|
1299
|
-
function bn(e, t) {
|
|
1300
|
-
let n = new RegExp(t.logic.source, t.logic.flags.replace("g", "")), r = e.match(n);
|
|
1301
|
-
return r && r[1] ? r[1].toUpperCase() : e;
|
|
1302
|
-
}
|
|
1303
|
-
function xn(e, t) {
|
|
1304
|
-
return $(e, "data-logic-merge-tag", (e) => bn(e, t));
|
|
1305
|
-
}
|
|
1306
|
-
function $(e, t, n, r) {
|
|
1307
|
-
let i = "", a = 0;
|
|
1308
|
-
for (; a < e.length;) {
|
|
1309
|
-
let o = e.indexOf("<span", a);
|
|
1310
|
-
if (o === -1) {
|
|
1311
|
-
i += e.substring(a);
|
|
1312
|
-
break;
|
|
1313
|
-
}
|
|
1314
|
-
let s = e[o + 5];
|
|
1315
|
-
if (s !== ">" && s !== " " && s !== " " && s !== "\n" && s !== "\r" && s !== "/") {
|
|
1316
|
-
i += e.substring(a, o + 5), a = o + 5;
|
|
1317
|
-
continue;
|
|
1318
|
-
}
|
|
1319
|
-
let c = Ut(e, o + 5);
|
|
1320
|
-
if (c === -1) {
|
|
1321
|
-
i += e.substring(a);
|
|
1322
|
-
break;
|
|
1323
|
-
}
|
|
1324
|
-
let l = e.indexOf("</span>", c + 1);
|
|
1325
|
-
if (l === -1) {
|
|
1326
|
-
i += e.substring(a);
|
|
1327
|
-
break;
|
|
1328
|
-
}
|
|
1329
|
-
let u = qt(e.substring(o + 5, c), t);
|
|
1330
|
-
if (u === null) {
|
|
1331
|
-
i += e.substring(a, o + 5), a = o + 5;
|
|
1332
|
-
continue;
|
|
1333
|
-
}
|
|
1334
|
-
let d = n(u);
|
|
1335
|
-
r?.unwrap?.(u) ? (i += e.substring(a, o), i += d) : (i += e.substring(a, c + 1), i += d, i += "</span>"), a = l + 7;
|
|
1336
|
-
}
|
|
1337
|
-
return i;
|
|
1338
|
-
}
|
|
1339
|
-
function Sn(e) {
|
|
1340
|
-
if (typeof e != "object" || !e) return !1;
|
|
1341
|
-
let t = e;
|
|
1342
|
-
return Array.isArray(t.blocks);
|
|
1343
|
-
}
|
|
1344
|
-
export { Q as $, lt as A, o as At, at as B, te as C, ce as Ct, yt as D, gn as Dt, _t as E, mn as Et, W as F, ne as G, xt as H, bt as I, an as J, zt as K, dt as L, st as M, kt as Mt, mt as N, rt as O, n as Ot, ot as P, Z as Q, ft as R, vn as S, h as St, ct as T, le as Tt, g as U, ut as V, z as W, fe as X, H as Y, bn as Z, pe as _, on as _t, Fe as a, Ie as at, jt as b, pn as bt, s as c, Sn as ct, Lt as d, L as dt, un as et, p as f, R as ft, It as g, nt as gt, c as h, f as ht, e as i, Me as it, pt as j, t as jt, $e as k, r as kt, _ as l, Vt as lt, Ne as m, J as mt, ee as n, hn as nt, Xe as o, yn as ot, Y as p, Mt as pt, Zt as q, i as r, oe as rt, Ze as s, fn as st, d as t, ln as tt, l as u, I as ut, v, ie as vt, St as w, ue as wt, G as x, dn as xt, At as y, xn as yt, gt as z };
|