@templatical/editor 0.51.1 → 0.52.1
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/THIRD_PARTY_NOTICES.md +208 -0
- package/dist/{AiAltTextPopover-BZQ95GXL.js → AiAltTextPopover-DawbUywc.js} +16 -17
- package/dist/{AiAltTextReview-DoBEudnE.js → AiAltTextReview-9ySsXOTU.js} +25 -26
- package/dist/{AiChatPanel-Bs6sES3b.js → AiChatPanel-CupPhmsN.js} +141 -143
- package/dist/{AiPanels-CfN7A-ZA.js → AiPanels-DqT4PgQ0.js} +6 -8
- package/dist/{AiRewriteMenu-C3ZfDDYy.js → AiRewriteMenu-28agTycW.js} +66 -67
- package/dist/BlockIssueBadge-BxpDy3u-.js +33 -0
- package/dist/{BlockPreviewCanvas-BXNLLLYi.js → BlockPreviewCanvas-B-4bmJ3t.js} +26 -27
- package/dist/{CloudHeaderExtras-CsJMEiyN.js → CloudHeaderExtras-QI82yF54.js} +4 -5
- package/dist/{CloudPanels-B4F5m7vy.js → CloudPanels-BKJaLkUN.js} +52 -53
- package/dist/{CollaborationNotices-CNuDp7Y2.js → CollaborationNotices-CTw4JThq.js} +12 -13
- package/dist/{CollaboratorBar-BtHPiuHq.js → CollaboratorBar-CXQqN3VP.js} +16 -17
- package/dist/{CommentsPanel-CyCM-BvT.js → CommentsPanel-DwwFuh1h.js} +3 -5
- package/dist/CommentsSidebar-9ZfiC2DO.js +500 -0
- package/dist/{CountdownBlock-DR4Xm2-T.js → CountdownBlock-CU2yTWtF.js} +21 -22
- package/dist/{CountdownToolbar-CEIMPojJ.js → CountdownToolbar-BqoYzf_6.js} +55 -56
- package/dist/IssuesPanel-4ykrf1ax.js +359 -0
- package/dist/{LoadingTrack-B0RKQWq3.js → LoadingTrack-DM4g6j7b.js} +3 -4
- package/dist/{LogicTagInsertButton-CqfU52CO.js → LogicTagInsertButton-CfscnwCn.js} +243 -250
- package/dist/{MediaEditModal-DHtkZ4OU.js → MediaEditModal-Dy08GEwE.js} +449 -452
- package/dist/{MediaPanels-CGcOB2pR.js → MediaPanels-BgEp7iCp.js} +3 -5
- package/dist/{MergeTagInput-YnEkorTZ.js → MergeTagInput-B9dtUthD.js} +14 -15
- package/dist/{MergeTagModeToggle-Dhb1DAcQ.js → MergeTagModeToggle-DxujhYJ4.js} +30 -31
- package/dist/{MergeTagTextarea-e4lnwtqZ.js → MergeTagTextarea-CPFEjJZd.js} +12 -13
- package/dist/{ParagraphEditor-B6NK0ytw.js → ParagraphEditor-CWXfurGh.js} +233 -236
- package/dist/{RestoreVersionDialog-Bq_IGOLJ.js → RestoreVersionDialog-C4s_JYCx.js} +16 -17
- package/dist/{RichTextEditorContent-AOM6fylS.js → RichTextEditorContent-o6HmE8GR.js} +40 -40
- package/dist/{SaveBlockDialog-C8GngfQx.js → SaveBlockDialog-CWLrly6l.js} +58 -59
- package/dist/SavedBlocksBrowserModal-CE8n4EBS.js +359 -0
- package/dist/{SavedBlocksPanels-C2s3q0pJ.js → SavedBlocksPanels-BE1N9rNZ.js} +7 -9
- package/dist/{SavedBlocksPickBar-BjcTiV87.js → SavedBlocksPickBar-Dwl94xhP.js} +14 -15
- package/dist/{TemplateSettings-BVBWpiDU.js → TemplateSettings-CS0f1Ues.js} +75 -76
- package/dist/{TestEmailModal-SyhO9bn3.js → TestEmailModal-DBD0X5nV.js} +54 -56
- package/dist/{TestEmailPanel-BDd2Rtav.js → TestEmailPanel-DaFjP9QK.js} +3 -5
- package/dist/{TitleEditor-pxD53y_l.js → TitleEditor-DSqtle77.js} +78 -79
- package/dist/{ToggleSwitch-D51U9cmR.js → ToggleSwitch-JykPyD_8.js} +5 -6
- package/dist/{Toolbar-CZSPZYbj.js → Toolbar-BZPFfKrf.js} +977 -985
- package/dist/{TplModal-DCzBzicE.js → TplModal-DLMssVlt.js} +16 -17
- package/dist/{VersionHistoryMenu-BQeWPT85.js → VersionHistoryMenu-BkbYUs0Q.js} +37 -38
- package/dist/{VersionHistoryPanels-BBm7YbRQ.js → VersionHistoryPanels-DP7HaYWv.js} +5 -7
- package/dist/{VersionPreviewBanner-DUGF0tUJ.js → VersionPreviewBanner-DECaBwLq.js} +11 -12
- package/dist/WrapperBlock-BsJv_Fiw.js +44 -0
- package/dist/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
- package/dist/{aiErrors-D5UOoYOt.js → aiErrors-C3QEMB0x.js} +3 -5
- package/dist/{aiImageContext-BH4Ss1h3.js → aiImageContext-BQ5mQ6B5.js} +2 -3
- package/dist/{aiRewritePreview-DLGM05Ge.js → aiRewritePreview-DlMyx6Si.js} +1 -2
- package/dist/{blockTypeIcons-NzaYvAI4.js → blockTypeIcons-BHjlPnPf.js} +23 -23
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-C7mTzW1r.js → ca-CD-Kt1qz.js} +1 -2
- package/dist/{ca-CYQH3J0b.js → ca-Cc6eL0ZS.js} +1 -2
- package/dist/cdn/chunks/{AiAltTextPopover-CQu0Q_ZX.js → AiAltTextPopover-SEEjkd-I.js} +24 -25
- package/dist/cdn/chunks/{AiAltTextPopover-CQu0Q_ZX.js.map → AiAltTextPopover-SEEjkd-I.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-CI2HbWfn.js → AiAltTextReview-BGLLSKLm.js} +43 -44
- package/dist/cdn/chunks/{AiAltTextReview-CI2HbWfn.js.map → AiAltTextReview-BGLLSKLm.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-BYqn1bKu.js → AiChatPanel-DKDAaBNi.js} +129 -131
- package/dist/cdn/chunks/{AiChatPanel-BYqn1bKu.js.map → AiChatPanel-DKDAaBNi.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-CIFKQv8Y.js → AiPanels-0wBarZSH.js} +5 -7
- package/dist/cdn/chunks/{AiPanels-CIFKQv8Y.js.map → AiPanels-0wBarZSH.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-Bhh71zcc.js → AiRewriteMenu-qf-cfEpy.js} +52 -53
- package/dist/cdn/chunks/AiRewriteMenu-qf-cfEpy.js.map +1 -0
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +34 -0
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +1 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-D0--EQkP.js → BlockPreviewCanvas-DGBh6mqe.js} +22 -23
- package/dist/cdn/chunks/{BlockPreviewCanvas-D0--EQkP.js.map → BlockPreviewCanvas-DGBh6mqe.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-DaUU8P8R.js → CloudHeaderExtras-BMNK_F9p.js} +4 -5
- package/dist/cdn/chunks/{CloudHeaderExtras-DaUU8P8R.js.map → CloudHeaderExtras-BMNK_F9p.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-C3jsxo_f.js → CloudPanels-JMWIoVWh.js} +34 -35
- package/dist/cdn/chunks/{CloudPanels-C3jsxo_f.js.map → CloudPanels-JMWIoVWh.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-DjRI8gvs.js → CollaborationNotices-Bsf1rGW9.js} +13 -14
- package/dist/cdn/chunks/{CollaborationNotices-DjRI8gvs.js.map → CollaborationNotices-Bsf1rGW9.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-Dfzm6A9A.js → CollaboratorBar-CXByAoUz.js} +16 -17
- package/dist/cdn/chunks/{CollaboratorBar-Dfzm6A9A.js.map → CollaboratorBar-CXByAoUz.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-CSO79OeX.js → CommentsPanel-DoJnKLXI.js} +4 -6
- package/dist/cdn/chunks/{CommentsPanel-CSO79OeX.js.map → CommentsPanel-DoJnKLXI.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-CCvplq1Z.js → CommentsSidebar-CUtgvdBC.js} +110 -110
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-C6USdwk3.js → CountdownBlock-BqRw147R.js} +19 -20
- package/dist/cdn/chunks/{CountdownBlock-C6USdwk3.js.map → CountdownBlock-BqRw147R.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-Cjud2Tos.js → CountdownToolbar-xobieKoU.js} +28 -29
- package/dist/cdn/chunks/{CountdownToolbar-Cjud2Tos.js.map → CountdownToolbar-xobieKoU.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BaWHPDxZ.js → IssuesPanel-C7LfxaAY.js} +76 -77
- package/dist/cdn/chunks/{IssuesPanel-BaWHPDxZ.js.map → IssuesPanel-C7LfxaAY.js.map} +1 -1
- package/dist/cdn/chunks/LoadingTrack-CZuLTazv.js +11 -0
- package/dist/cdn/chunks/{LoadingTrack-BIcL4NiY.js.map → LoadingTrack-CZuLTazv.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js → LogicTagInsertButton-BIi05UQu.js} +258 -265
- package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js.map → LogicTagInsertButton-BIi05UQu.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-BuHCiyMu.js → MediaEditModal-Cpcod6_U.js} +152 -155
- package/dist/cdn/chunks/{MediaEditModal-BuHCiyMu.js.map → MediaEditModal-Cpcod6_U.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-DAgUf_T1.js → MediaPanels-BIdcW_1f.js} +4 -6
- package/dist/cdn/chunks/{MediaPanels-DAgUf_T1.js.map → MediaPanels-BIdcW_1f.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-C8U-7LxL.js → MergeTagInput-BvWg8o5E.js} +35 -36
- package/dist/cdn/chunks/{MergeTagInput-C8U-7LxL.js.map → MergeTagInput-BvWg8o5E.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-Mm-p0A52.js → MergeTagModeToggle-BgKEVUtV.js} +28 -29
- package/dist/cdn/chunks/{MergeTagModeToggle-Mm-p0A52.js.map → MergeTagModeToggle-BgKEVUtV.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-DuLScsWM.js → MergeTagTextarea-tBz8McZf.js} +33 -34
- package/dist/cdn/chunks/{MergeTagTextarea-DuLScsWM.js.map → MergeTagTextarea-tBz8McZf.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-CqSj6Ayz.js → ParagraphEditor-B3Rj_cWF.js} +197 -200
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-CdA5osuA.js → RestoreVersionDialog-CjOdD2xj.js} +21 -22
- package/dist/cdn/chunks/{RestoreVersionDialog-CdA5osuA.js.map → RestoreVersionDialog-CjOdD2xj.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-Q1d2xqBT.js → RichTextEditorContent-DNjR_sNN.js} +30 -31
- package/dist/cdn/chunks/{RichTextEditorContent-Q1d2xqBT.js.map → RichTextEditorContent-DNjR_sNN.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CijargAy.js → SaveBlockDialog-CUhpawq0.js} +77 -78
- package/dist/cdn/chunks/{SaveBlockDialog-CijargAy.js.map → SaveBlockDialog-CUhpawq0.js.map} +1 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js +356 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DtOz_X5S.js.map → SavedBlocksBrowserModal-BPYcRoGa.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-BowyED5h.js → SavedBlocksPanels-C6--Bc81.js} +4 -6
- package/dist/cdn/chunks/{SavedBlocksPanels-BowyED5h.js.map → SavedBlocksPanels-C6--Bc81.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-BPRaJBv3.js → SavedBlocksPickBar-DUavxpbU.js} +16 -17
- package/dist/cdn/chunks/{SavedBlocksPickBar-BPRaJBv3.js.map → SavedBlocksPickBar-DUavxpbU.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-ByZeBO34.js → TemplateSettings-CKtI-dof.js} +72 -73
- package/dist/cdn/chunks/{TemplateSettings-ByZeBO34.js.map → TemplateSettings-CKtI-dof.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-BUVTj3Ic.js → TestEmailModal-CDQTgESD.js} +68 -70
- package/dist/cdn/chunks/{TestEmailModal-BUVTj3Ic.js.map → TestEmailModal-CDQTgESD.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BxutYoWg.js → TestEmailPanel-CcUpEpAn.js} +4 -6
- package/dist/cdn/chunks/{TestEmailPanel-BxutYoWg.js.map → TestEmailPanel-CcUpEpAn.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-Ccv6uoTz.js → TitleEditor-Cob7RLyK.js} +71 -72
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +1 -0
- package/dist/cdn/chunks/{ToggleSwitch-Ctdmj621.js → ToggleSwitch-J7Vwhvha.js} +6 -7
- package/dist/cdn/chunks/{ToggleSwitch-Ctdmj621.js.map → ToggleSwitch-J7Vwhvha.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-DoprRgTn.js → Toolbar-CdpsvNOR.js} +977 -985
- package/dist/cdn/chunks/{Toolbar-DoprRgTn.js.map → Toolbar-CdpsvNOR.js.map} +1 -1
- package/dist/cdn/chunks/TplModal-CFPDgbwQ.js +51 -0
- package/dist/cdn/chunks/{TplModal-BXQzmsJX.js.map → TplModal-CFPDgbwQ.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-BF2fNCvq.js → VersionHistoryMenu-BYlLRvRJ.js} +34 -35
- package/dist/cdn/chunks/{VersionHistoryMenu-BF2fNCvq.js.map → VersionHistoryMenu-BYlLRvRJ.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-Dal0Uk69.js → VersionHistoryPanels-C6SOVoiT.js} +4 -6
- package/dist/cdn/chunks/{VersionHistoryPanels-Dal0Uk69.js.map → VersionHistoryPanels-C6SOVoiT.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-BaGcn-b1.js → VersionPreviewBanner-Dvg0ZfAW.js} +12 -13
- package/dist/cdn/chunks/{VersionPreviewBanner-BaGcn-b1.js.map → VersionPreviewBanner-Dvg0ZfAW.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-DkQJtLz0.js → WrapperBlock-C7Md56IT.js} +14 -15
- package/dist/cdn/chunks/{WrapperBlock-DkQJtLz0.js.map → WrapperBlock-C7Md56IT.js.map} +1 -1
- package/dist/cdn/chunks/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
- package/dist/cdn/chunks/{aiErrors-D5UOoYOt.js → aiErrors-C3QEMB0x.js} +4 -6
- package/dist/cdn/chunks/{aiErrors-D5UOoYOt.js.map → aiErrors-C3QEMB0x.js.map} +1 -1
- package/dist/cdn/chunks/{aiImageContext-BH4Ss1h3.js → aiImageContext-BQ5mQ6B5.js} +3 -4
- package/dist/cdn/chunks/{aiImageContext-BH4Ss1h3.js.map → aiImageContext-BQ5mQ6B5.js.map} +1 -1
- package/dist/cdn/chunks/{aiRewritePreview-DLGM05Ge.js → aiRewritePreview-DlMyx6Si.js} +2 -3
- package/dist/cdn/chunks/{aiRewritePreview-DLGM05Ge.js.map → aiRewritePreview-DlMyx6Si.js.map} +1 -1
- package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js +21 -0
- package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js.map +1 -0
- package/dist/cdn/chunks/{ca-C7mTzW1r.js → ca-CD-Kt1qz.js} +2 -3
- package/dist/cdn/chunks/{ca-C7mTzW1r.js.map → ca-CD-Kt1qz.js.map} +1 -1
- package/dist/cdn/chunks/{ca-CYQH3J0b.js → ca-Cc6eL0ZS.js} +2 -3
- package/dist/cdn/chunks/{ca-CYQH3J0b.js.map → ca-Cc6eL0ZS.js.map} +1 -1
- package/dist/cdn/chunks/{createCloudRuntime-DpBWhrv3.js → createCloudRuntime-Cth2JCEh.js} +58 -77
- package/dist/cdn/chunks/{createCloudRuntime-DpBWhrv3.js.map → createCloudRuntime-Cth2JCEh.js.map} +1 -1
- package/dist/cdn/chunks/{de-DBOTcDj2.js → de-6M4JoHoD.js} +2 -3
- package/dist/cdn/chunks/{de-DBOTcDj2.js.map → de-6M4JoHoD.js.map} +1 -1
- package/dist/cdn/chunks/{de-DNuYQTmS.js → de-CeFJ6wbM.js} +2 -3
- package/dist/cdn/chunks/{de-DNuYQTmS.js.map → de-CeFJ6wbM.js.map} +1 -1
- package/dist/cdn/chunks/{de-JvCTMJPy.js → de-DtrXVcuY.js} +2 -3
- package/dist/cdn/chunks/{de-JvCTMJPy.js.map → de-DtrXVcuY.js.map} +1 -1
- package/dist/cdn/chunks/{dist-Bo8Thh8v.js → dist-8ym3y-pH.js} +44 -45
- package/dist/cdn/chunks/{dist-Bo8Thh8v.js.map → dist-8ym3y-pH.js.map} +1 -1
- package/dist/{dist-DI4_YSnG.js → cdn/chunks/dist-BMzNabtD.js} +107 -109
- package/dist/cdn/chunks/{dist-S-rLGqax.js.map → dist-BMzNabtD.js.map} +1 -1
- package/dist/cdn/chunks/dompurify-JVtr5-B1.js +872 -0
- package/dist/cdn/chunks/dompurify-JVtr5-B1.js.map +1 -0
- package/dist/cdn/chunks/{draggable-DZ0gwUJ6.js → draggable-Du8AUMFT.js} +654 -654
- package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +1 -0
- package/dist/{editor-modal-Bzhl-PgI.js → cdn/chunks/editor-modal-CyCe560f.js} +893 -979
- package/dist/cdn/chunks/{editor-modal-CI6EfeMd.js.map → editor-modal-CyCe560f.js.map} +1 -1
- package/dist/cdn/chunks/{emojiData-6m0DBh7O.js → emojiData-CBNuCfum.js} +2 -3
- package/dist/cdn/chunks/{emojiData-6m0DBh7O.js.map → emojiData-CBNuCfum.js.map} +1 -1
- package/dist/cdn/chunks/{en-CW71OK66.js → en-D14i5nFh.js} +2 -3
- package/dist/cdn/chunks/{en-CW71OK66.js.map → en-D14i5nFh.js.map} +1 -1
- package/dist/cdn/chunks/{en-CDhWRrF_.js → en-FzUuJ8HW.js} +2 -3
- package/dist/cdn/chunks/{en-CDhWRrF_.js.map → en-FzUuJ8HW.js.map} +1 -1
- package/dist/cdn/chunks/en-TIqv4ag3.js +1 -0
- package/dist/cdn/chunks/{es-CAv-Vldw.js → es-Dw_h7Oll.js} +2 -3
- package/dist/cdn/chunks/{es-CAv-Vldw.js.map → es-Dw_h7Oll.js.map} +1 -1
- package/dist/cdn/chunks/{es-DdK7zQfi.js → es-zDacbMhs.js} +2 -3
- package/dist/cdn/chunks/{es-DdK7zQfi.js.map → es-zDacbMhs.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-taJTZlLK.js → extensions-CFF2KWy-.js} +60 -65
- package/dist/cdn/chunks/{extensions-taJTZlLK.js.map → extensions-CFF2KWy-.js.map} +1 -1
- package/dist/cdn/chunks/{formatAbsoluteDateTime-DMmop3C-.js → formatAbsoluteDateTime-Ck2_zXra.js} +2 -3
- package/dist/cdn/chunks/{formatAbsoluteDateTime-DMmop3C-.js.map → formatAbsoluteDateTime-Ck2_zXra.js.map} +1 -1
- package/dist/cdn/chunks/{formatRelativeTime-CtUU-QZ8.js → formatRelativeTime-BTD8Ktt-.js} +1 -2
- package/dist/cdn/chunks/{formatRelativeTime-CtUU-QZ8.js.map → formatRelativeTime-BTD8Ktt-.js.map} +1 -1
- package/dist/cdn/chunks/{fr-DVPtxpR6.js → fr-BJaeKu_8.js} +2 -3
- package/dist/cdn/chunks/{fr-DVPtxpR6.js.map → fr-BJaeKu_8.js.map} +1 -1
- package/dist/cdn/chunks/{fr-Dz5Bgb7-.js → fr-CSgYtjOd.js} +2 -3
- package/dist/cdn/chunks/{fr-Dz5Bgb7-.js.map → fr-CSgYtjOd.js.map} +1 -1
- package/dist/cdn/chunks/{htmlparser-CDRsn-gn.js → htmlparser-hu3YnNQU.js} +6 -11
- package/dist/cdn/chunks/{htmlparser-CDRsn-gn.js.map → htmlparser-hu3YnNQU.js.map} +1 -1
- package/dist/cdn/chunks/{icons-DNX6StSs.js → icons-okSPsLOa.js} +111 -114
- package/dist/cdn/chunks/icons-okSPsLOa.js.map +1 -0
- package/dist/cdn/chunks/{ja-Di-zJiT8.js → ja-B7H3ID8O.js} +2 -3
- package/dist/cdn/chunks/{ja-Di-zJiT8.js.map → ja-B7H3ID8O.js.map} +1 -1
- package/dist/cdn/chunks/{ja-dcWzjStz.js → ja-Cu2HdYaK.js} +2 -3
- package/dist/cdn/chunks/{ja-dcWzjStz.js.map → ja-Cu2HdYaK.js.map} +1 -1
- package/dist/cdn/chunks/{keys-BTpmg2Tt.js → keys-CUj6UA38.js} +3 -4
- package/dist/cdn/chunks/{keys-BTpmg2Tt.js.map → keys-CUj6UA38.js.map} +1 -1
- package/dist/{liquid.browser-Ct2-EezB.js → cdn/chunks/liquid.browser-rubac0VA.js} +993 -937
- package/dist/cdn/chunks/liquid.browser-rubac0VA.js.map +1 -0
- package/dist/cdn/chunks/{logger-Tj0RPskW.js → logger-CqQTfJGx.js} +2 -3
- package/dist/cdn/chunks/{logger-Tj0RPskW.js.map → logger-CqQTfJGx.js.map} +1 -1
- package/dist/cdn/chunks/{nl-CvVuHYFL.js → nl-176ySmc5.js} +2 -3
- package/dist/cdn/chunks/{nl-CvVuHYFL.js.map → nl-176ySmc5.js.map} +1 -1
- package/dist/cdn/chunks/{nl-LZNqQgE4.js → nl-1Ai2NykB.js} +2 -3
- package/dist/cdn/chunks/{nl-LZNqQgE4.js.map → nl-1Ai2NykB.js.map} +1 -1
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-DyePIGqu.js → normalizeMergeTagMarkup-C_KlfSW4.js} +3 -4
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-DyePIGqu.js.map → normalizeMergeTagMarkup-C_KlfSW4.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-Dc-QLntG.js → preRenderCustomBlocks-BcXIz7oJ.js} +6 -7
- package/dist/cdn/chunks/{preRenderCustomBlocks-Dc-QLntG.js.map → preRenderCustomBlocks-BcXIz7oJ.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-CHM-ZKvE.js → pt-BR-Bp92Fc6J.js} +2 -3
- package/dist/cdn/chunks/{pt-BR-CHM-ZKvE.js.map → pt-BR-Bp92Fc6J.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-D6P_mNwA.js → pt-BR-CIbp__Z7.js} +2 -3
- package/dist/cdn/chunks/{pt-BR-D6P_mNwA.js.map → pt-BR-CIbp__Z7.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-ZhO4vgyq.js → pt-BR-dDlTwX18.js} +2 -3
- package/dist/cdn/chunks/{pt-BR-ZhO4vgyq.js.map → pt-BR-dDlTwX18.js.map} +1 -1
- package/dist/cdn/chunks/{pusher-Cs4GGEtd.js → pusher-x9rNqzon.js} +3 -4
- package/dist/cdn/chunks/{pusher-Cs4GGEtd.js.map → pusher-x9rNqzon.js.map} +1 -1
- package/dist/cdn/chunks/{readableTextColor-f8Kykfnh.js → readableTextColor-BfZUGnVj.js} +2 -3
- package/dist/cdn/chunks/{readableTextColor-f8Kykfnh.js.map → readableTextColor-BfZUGnVj.js.map} +1 -1
- package/dist/cdn/chunks/{rolldown-runtime-Y_bBpyJl.js → rolldown-runtime-QGRDbDUS.js} +1 -2
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js +72 -0
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js.map +1 -0
- package/dist/cdn/chunks/{socialIcons-BBvsTwCV.js → socialIcons-jsTDmkbb.js} +608 -632
- package/dist/cdn/chunks/{socialIcons-BBvsTwCV.js.map → socialIcons-jsTDmkbb.js.map} +1 -1
- package/dist/cdn/chunks/src-C7bkofBL.js +647 -0
- package/dist/cdn/chunks/src-C7bkofBL.js.map +1 -0
- package/dist/cdn/chunks/{src-Bs_yxk3h.js → src-DEd87i_U.js} +502 -537
- package/dist/cdn/chunks/src-DEd87i_U.js.map +1 -0
- package/dist/cdn/chunks/{src-BNFnxfrA.js → src-DwWrYnUj.js} +188 -171
- package/dist/cdn/chunks/src-DwWrYnUj.js.map +1 -0
- package/dist/cdn/chunks/{styleConstants-v1dNKgJf.js → styleConstants-B8xVRiwX.js} +2 -3
- package/dist/cdn/chunks/{styleConstants-v1dNKgJf.js.map → styleConstants-B8xVRiwX.js.map} +1 -1
- package/dist/cdn/chunks/{templateSettingsFields-YCFVBVYh.js → templateSettingsFields-cjlP-jdw.js} +2 -3
- package/dist/cdn/chunks/{templateSettingsFields-YCFVBVYh.js.map → templateSettingsFields-cjlP-jdw.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-CtVrAViq.js → tiptap-CbiTlECY.js} +3402 -3278
- package/dist/cdn/chunks/tiptap-CbiTlECY.js.map +1 -0
- package/dist/cdn/chunks/{useCloudI18n-AVXhzbhQ.js → useCloudI18n-DY8_-ETE.js} +4 -5
- package/dist/cdn/chunks/{useCloudI18n-AVXhzbhQ.js.map → useCloudI18n-DY8_-ETE.js.map} +1 -1
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +2582 -0
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +9 -0
- package/dist/cdn/chunks/{useEditorRoot-CR5GjJD6.js.map → useEditorRoot-vjZJwKrV.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-CbVubQhM.js → useI18n-D8pY4LTq.js} +4 -5
- package/dist/cdn/chunks/{useI18n-CbVubQhM.js.map → useI18n-D8pY4LTq.js.map} +1 -1
- package/dist/{useLogicTag-DKLZ1T9H.js → cdn/chunks/useLogicTag-DBJDtpKA.js} +6 -5
- package/dist/cdn/chunks/{useLogicTag-B49Nc53Y.js.map → useLogicTag-DBJDtpKA.js.map} +1 -1
- package/dist/{useMergeTag-Bhdx7AKk.js → cdn/chunks/useMergeTag-B-aG--s1.js} +8 -7
- package/dist/cdn/chunks/{useMergeTag-B0KryMj8.js.map → useMergeTag-B-aG--s1.js.map} +1 -1
- package/dist/{usePopoverPosition-BZea45XK.js → cdn/chunks/usePopoverPosition-DSMtmu2W.js} +8 -10
- package/dist/cdn/chunks/{usePopoverPosition-C829ps5i.js.map → usePopoverPosition-DSMtmu2W.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-CAwvulog.js → useScrollToBlock-vjQ0fe-L.js} +5 -7
- package/dist/cdn/chunks/{useScrollToBlock-CAwvulog.js.map → useScrollToBlock-vjQ0fe-L.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-DFPXeVfG.js → withCurrentFont-hZTvYBHO.js} +3 -4
- package/dist/cdn/chunks/{withCurrentFont-DFPXeVfG.js.map → withCurrentFont-hZTvYBHO.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +1433 -1454
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-yYsp5Xpk.js → check-BZ8o0eet.js} +1 -2
- package/dist/{chevron-down-DTmD06_j.js → chevron-down-DfAAfILv.js} +1 -2
- package/dist/{chevron-right-BSeYZOxc.js → chevron-right-Bk4mGdr7.js} +1 -2
- package/dist/{chevron-up-BOApwrxi.js → chevron-up-MhUf_azW.js} +1 -2
- package/dist/{circle-alert-BMszY8im.js → circle-alert-CShJwVFv.js} +1 -2
- package/dist/{clock-HADxnl6-.js → clock-CTfD6OCt.js} +1 -2
- package/dist/{createCloudRuntime-DVQI_ReU.js → createCloudRuntime-DCgO4A1r.js} +31 -37
- package/dist/{createLucideIcon-0lYYH3EW.js → createLucideIcon-CvhTA2KG.js} +6 -11
- package/dist/{de-DBOTcDj2.js → de-6M4JoHoD.js} +1 -2
- package/dist/{de-DNuYQTmS.js → de-CeFJ6wbM.js} +1 -2
- package/dist/{de-JvCTMJPy.js → de-DtrXVcuY.js} +1 -2
- package/dist/{dist-BC-ZEYLd.js → dist-BF5zEHop.js} +2 -3
- package/dist/{dist-CyBwSiAa.js → dist-BS5uKktL.js} +2 -3
- package/dist/{cdn/chunks/dist-S-rLGqax.js → dist-ByCWA2Tv.js} +101 -101
- package/dist/{dist-DtOF3bDW.js → dist-CKi_npZM.js} +378 -343
- package/dist/{dist-C7EtxNCb.js → dist-CVy-7PHQ.js} +55 -56
- package/dist/{dist-Cr7RPxI9.js → dist-CWSG7Kj0.js} +478 -461
- package/dist/{dist-DXyGqIDE.js → dist-Cy8I5scI.js} +2 -3
- package/dist/{dist-C_dV9QAx.js → dist-D6cMdrfG.js} +133 -133
- package/dist/{dist-DVNjPKsH.js → dist-D6fZec6r.js} +3 -4
- package/dist/{dist-CuLwJF7H.js → dist-Dd5MU2Ev.js} +23 -14
- package/dist/dist-DyFArF_G.js +4 -0
- package/dist/{dist-DBxgrOeo.js → dist-V7W1UhVr.js} +1882 -1792
- package/dist/{dist-DPcf6XZ8.js → dist-p3wymUDt.js} +2 -3
- package/dist/dist-pA3ooG6N.js +4 -0
- package/dist/{dist-3HpYixwF.js → dist-txQLT2sF.js} +173 -161
- package/dist/{cdn/chunks/editor-modal-CI6EfeMd.js → editor-modal-zaZHcmlO.js} +915 -859
- package/dist/{emojiData-6m0DBh7O.js → emojiData-CBNuCfum.js} +1 -2
- package/dist/{en-CW71OK66.js → en-D14i5nFh.js} +1 -2
- package/dist/en-Db76vJbY.js +1 -0
- package/dist/{en-CDhWRrF_.js → en-FzUuJ8HW.js} +1 -2
- package/dist/{es-CAv-Vldw.js → es-Dw_h7Oll.js} +1 -2
- package/dist/{es-DdK7zQfi.js → es-zDacbMhs.js} +1 -2
- package/dist/{extensions-CdyweA50.js → extensions-fo_c-vqf.js} +82 -91
- package/dist/{eye-DWkSvYpj.js → eye-7W4t5e0Q.js} +1 -2
- package/dist/{formatAbsoluteDateTime-DMmop3C-.js → formatAbsoluteDateTime-Ck2_zXra.js} +1 -2
- package/dist/{formatRelativeTime-CtUU-QZ8.js → formatRelativeTime-BTD8Ktt-.js} +0 -1
- package/dist/{fr-DVPtxpR6.js → fr-BJaeKu_8.js} +1 -2
- package/dist/{fr-Dz5Bgb7-.js → fr-CSgYtjOd.js} +1 -2
- package/dist/{image-DesWjcZ4.js → image-BDiRFzSd.js} +1 -2
- package/dist/index.d.ts +6 -6
- package/dist/{info-ClWJGoZy.js → info-Cxi3-Kh9.js} +1 -2
- package/dist/{ja-Di-zJiT8.js → ja-B7H3ID8O.js} +1 -2
- package/dist/{ja-dcWzjStz.js → ja-Cu2HdYaK.js} +1 -2
- package/dist/{keys-Zd9KWRD1.js → keys-BgRERHzu.js} +2 -3
- package/dist/{link-BqRicFTA.js → link-ju_2Cmir.js} +1 -2
- package/dist/{cdn/chunks/liquid.browser-Bbt17cVz.js → liquid.browser-DUXEekoN.js} +991 -939
- package/dist/{list-bojQr9bn.js → list-DYZJf0aZ.js} +1 -2
- package/dist/{loader-circle-B2B8LbUu.js → loader-circle-BZRD0a4I.js} +1 -2
- package/dist/{logger-k9Nbj3Cp.js → logger-BOu7oEtk.js} +1 -2
- package/dist/{message-circle-BEuiNsyZ.js → message-circle-DuEw4Zfx.js} +1 -2
- package/dist/{nl-CvVuHYFL.js → nl-176ySmc5.js} +1 -2
- package/dist/{nl-LZNqQgE4.js → nl-1Ai2NykB.js} +1 -2
- package/dist/{normalizeMergeTagMarkup-P6SUBuPv.js → normalizeMergeTagMarkup-CELnOlgK.js} +30 -31
- package/dist/{package-DCROB4aM.js → package-CePMr2kK.js} +1 -2
- package/dist/{pencil-CEotCKbf.js → pencil-D3aFCL7c.js} +1 -2
- package/dist/{preRenderCustomBlocks-D8rr61_z.js → preRenderCustomBlocks--_xc0XK3.js} +4 -5
- package/dist/{pt-BR-CHM-ZKvE.js → pt-BR-Bp92Fc6J.js} +1 -2
- package/dist/{pt-BR-D6P_mNwA.js → pt-BR-CIbp__Z7.js} +1 -2
- package/dist/{pt-BR-ZhO4vgyq.js → pt-BR-dDlTwX18.js} +1 -2
- package/dist/{readableTextColor-f8Kykfnh.js → readableTextColor-BfZUGnVj.js} +1 -2
- package/dist/{refresh-cw-C6M2mHNC.js → refresh-cw-xnro7_Sk.js} +1 -2
- package/dist/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CGnMp29N.js} +1 -2
- package/dist/{runtime-dom.esm-bundler-B8WCZWUm.js → runtime-dom.esm-bundler-BURR-bj5.js} +121 -122
- package/dist/sanitizeHtml-BzfzpYJY.js +942 -0
- package/dist/{search-Cy99zPYf.js → search-CDrstRBv.js} +1 -2
- package/dist/{send-BDLJFsf3.js → send-DROkPOaX.js} +1 -2
- package/dist/{smartphone-CVvQaNA4.js → smartphone-Bx6u_tjn.js} +1 -2
- package/dist/{socialIcons-Dd-jRiVe.js → socialIcons-D7MGsg0d.js} +553 -564
- package/dist/{sparkles-Ce0Qz0ox.js → sparkles-CdaTtvoz.js} +1 -2
- package/dist/{square-BWlolnXe.js → square-BbCROH_f.js} +1 -2
- package/dist/style.css +1 -1
- package/dist/{styleConstants-v1dNKgJf.js → styleConstants-B8xVRiwX.js} +1 -2
- package/dist/{templateSettingsFields-YCFVBVYh.js → templateSettingsFields-cjlP-jdw.js} +1 -2
- package/dist/templatical-editor.js +1231 -1251
- package/dist/{text-align-start-D1V5gPTy.js → text-align-start-CGacJ9Vw.js} +1 -2
- package/dist/{trash-CZfiUFmw.js → trash-DxCd7zIy.js} +1 -2
- package/dist/{triangle-alert-CFDzyFC7.js → triangle-alert-7_oaitpf.js} +1 -2
- package/dist/{upload-BJfvdIrD.js → upload-DuFEOi_0.js} +1 -2
- package/dist/{useCloudI18n-Dcjua65H.js → useCloudI18n-DEMmUKuO.js} +3 -4
- package/dist/{useEditorCore-BTLeAVlM.js → useEditorCore-BSo2sSID.js} +1568 -1573
- package/dist/useEditorRoot-BMcoCLBx.js +7 -0
- package/dist/{useI18n-BdoY7xDE.js → useI18n-BBrHTdu8.js} +3 -4
- package/dist/{cdn/chunks/useLogicTag-B49Nc53Y.js → useLogicTag-ZPC39rfH.js} +4 -7
- package/dist/{cdn/chunks/useMergeTag-B0KryMj8.js → useMergeTag-BQ4qqWpQ.js} +6 -9
- package/dist/{cdn/chunks/usePopoverPosition-C829ps5i.js → usePopoverPosition-DV1PxL66.js} +6 -12
- package/dist/{useScrollToBlock-FmNMALM_.js → useScrollToBlock-BSyAV4pk.js} +4 -6
- package/dist/{vue.runtime.esm-bundler-DgFJ6GPG.js → vue.runtime.esm-bundler-CnEeTfhs.js} +1001 -1002
- package/dist/{withCurrentFont-BATJHNve.js → withCurrentFont-B22FXAF5.js} +2 -3
- package/dist/{x-CZ0Js0hA.js → x-BpfG7v9g.js} +1 -2
- package/package.json +26 -24
- package/dist/BlockIssueBadge-CKwZ1Vgn.js +0 -34
- package/dist/CommentsSidebar-Ca3DyFOX.js +0 -500
- package/dist/IssuesPanel-C8nMUccy.js +0 -360
- package/dist/SavedBlocksBrowserModal-wnkvxpm_.js +0 -360
- package/dist/WrapperBlock-BO619LAb.js +0 -45
- package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js.map +0 -1
- package/dist/cdn/chunks/BlockIssueBadge-DAn2vsMJ.js +0 -35
- package/dist/cdn/chunks/BlockIssueBadge-DAn2vsMJ.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-CCvplq1Z.js.map +0 -1
- package/dist/cdn/chunks/LoadingTrack-BIcL4NiY.js +0 -12
- package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-DtOz_X5S.js +0 -357
- package/dist/cdn/chunks/TitleEditor-Ccv6uoTz.js.map +0 -1
- package/dist/cdn/chunks/TplModal-BXQzmsJX.js +0 -52
- package/dist/cdn/chunks/blockTypeIcons-ikZAmd6U.js +0 -22
- package/dist/cdn/chunks/blockTypeIcons-ikZAmd6U.js.map +0 -1
- package/dist/cdn/chunks/draggable-DZ0gwUJ6.js.map +0 -1
- package/dist/cdn/chunks/en-ifvu6oPv.js +0 -1
- package/dist/cdn/chunks/icons-DNX6StSs.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-Bbt17cVz.js.map +0 -1
- package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js +0 -62
- package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js.map +0 -1
- package/dist/cdn/chunks/src-BNFnxfrA.js.map +0 -1
- package/dist/cdn/chunks/src-Bs_yxk3h.js.map +0 -1
- package/dist/cdn/chunks/src-YGkzYyu0.js +0 -649
- package/dist/cdn/chunks/src-YGkzYyu0.js.map +0 -1
- package/dist/cdn/chunks/tiptap-CtVrAViq.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js +0 -2586
- package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-CR5GjJD6.js +0 -10
- package/dist/dist-BPFcLKTw.js +0 -5
- package/dist/dist-D7Yj7E-F.js +0 -5
- package/dist/en-DwV15ltA.js +0 -1
- package/dist/sanitizeRichTextHtml-DeISfLFr.js +0 -60
- package/dist/useEditorRoot-DUy67lJu.js +0 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../types/dist/index.js
|
|
2
2
|
var e = [
|
|
3
3
|
"top",
|
|
4
4
|
"right",
|
|
@@ -82,7 +82,7 @@ function ne(e) {
|
|
|
82
82
|
}
|
|
83
83
|
return t;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function f(e) {
|
|
86
86
|
let t = typeof e?.url == "string" ? e.url.trim() : "";
|
|
87
87
|
if (!e || !t) return null;
|
|
88
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";
|
|
@@ -93,24 +93,24 @@ function re(e) {
|
|
|
93
93
|
repeat: e.repeat ? "repeat" : "no-repeat"
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
|
-
var
|
|
96
|
+
var re = [
|
|
97
97
|
"top",
|
|
98
98
|
"middle",
|
|
99
99
|
"bottom"
|
|
100
100
|
];
|
|
101
|
-
function
|
|
101
|
+
function ie(e) {
|
|
102
102
|
let t = e.hero;
|
|
103
103
|
if (!t || typeof t != "object") return null;
|
|
104
104
|
if (e.columns !== "1") return {
|
|
105
105
|
applied: !1,
|
|
106
106
|
reason: "columns"
|
|
107
107
|
};
|
|
108
|
-
let n =
|
|
108
|
+
let n = f(e.backgroundImage);
|
|
109
109
|
if (n === null) return {
|
|
110
110
|
applied: !1,
|
|
111
111
|
reason: "image"
|
|
112
112
|
};
|
|
113
|
-
let r =
|
|
113
|
+
let r = oe(e.backgroundImage), i = ae(t.height) ? Math.round(t.height) : "image";
|
|
114
114
|
return i === "image" && r === null ? {
|
|
115
115
|
applied: !1,
|
|
116
116
|
reason: "size"
|
|
@@ -118,18 +118,18 @@ function ae(e) {
|
|
|
118
118
|
applied: !0,
|
|
119
119
|
image: n,
|
|
120
120
|
height: i,
|
|
121
|
-
verticalAlign:
|
|
121
|
+
verticalAlign: re.includes(t.verticalAlign) ? t.verticalAlign : "middle",
|
|
122
122
|
aspectRatio: r
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function ae(e) {
|
|
126
126
|
return typeof e == "number" && Number.isFinite(e) && e >= 1;
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function oe(e) {
|
|
129
129
|
let t = e?.naturalWidth, n = e?.naturalHeight;
|
|
130
130
|
return typeof t != "number" || typeof n != "number" || !Number.isFinite(t) || !Number.isFinite(n) || t <= 0 || n <= 0 ? null : n / t;
|
|
131
131
|
}
|
|
132
|
-
var
|
|
132
|
+
var p = {
|
|
133
133
|
facebook: {
|
|
134
134
|
color: "#1877F2",
|
|
135
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"
|
|
@@ -198,31 +198,31 @@ var ce = {
|
|
|
198
198
|
color: "#1769FF",
|
|
199
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
200
|
}
|
|
201
|
-
},
|
|
201
|
+
}, m = {
|
|
202
202
|
dark: "#1f1f1f",
|
|
203
203
|
light: "#ffffff"
|
|
204
204
|
};
|
|
205
|
-
function
|
|
205
|
+
function se(e) {
|
|
206
206
|
return e === "dark" || e === "light" ? e : void 0;
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
let n =
|
|
208
|
+
function ce(e, t) {
|
|
209
|
+
let n = se(t);
|
|
210
210
|
return {
|
|
211
|
-
fill: n ?
|
|
212
|
-
onFill: n === "light" ?
|
|
211
|
+
fill: n ? m[n] : p[e].color,
|
|
212
|
+
onFill: n === "light" ? m.dark : "#ffffff"
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
|
-
function
|
|
216
|
-
if (
|
|
217
|
-
color:
|
|
215
|
+
function le(e, t) {
|
|
216
|
+
if (se(t) === "dark" && (e === "plain" || e === "outlined")) return {
|
|
217
|
+
color: m.light,
|
|
218
218
|
opacity: .6,
|
|
219
219
|
width: 1.4
|
|
220
220
|
};
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function ue(e) {
|
|
223
223
|
return e === "plain" ? .84 : .6;
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function h(e) {
|
|
226
226
|
let t = [];
|
|
227
227
|
return JSON.parse(JSON.stringify(e, function(e, n) {
|
|
228
228
|
if (typeof n != "object" || !n) return n;
|
|
@@ -230,21 +230,21 @@ function p(e) {
|
|
|
230
230
|
if (!t.includes(n)) return t.push(n), n;
|
|
231
231
|
}));
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function de(e) {
|
|
234
234
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function g(e, t) {
|
|
237
237
|
if (e === t) return !0;
|
|
238
|
-
if (Array.isArray(e)) return !Array.isArray(t) || e.length !== t.length ? !1 : e.every((e, n) =>
|
|
239
|
-
if (
|
|
240
|
-
if (!
|
|
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
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) && !
|
|
242
|
+
for (let r of n) if ((e[r] !== void 0 || t[r] !== void 0) && !g(e[r], t[r])) return !1;
|
|
243
243
|
return !0;
|
|
244
244
|
}
|
|
245
245
|
return !1;
|
|
246
246
|
}
|
|
247
|
-
var
|
|
247
|
+
var _ = class extends Error {
|
|
248
248
|
code;
|
|
249
249
|
opIndex;
|
|
250
250
|
blockId;
|
|
@@ -252,59 +252,59 @@ var h = class extends Error {
|
|
|
252
252
|
super(n), this.name = "OperationError", this.code = e, this.opIndex = t, r !== void 0 && (this.blockId = r);
|
|
253
253
|
}
|
|
254
254
|
};
|
|
255
|
-
function
|
|
255
|
+
function fe(e) {
|
|
256
256
|
return e === "1" ? 1 : e === "3" ? 3 : 2;
|
|
257
257
|
}
|
|
258
|
-
function
|
|
259
|
-
let r =
|
|
260
|
-
return
|
|
258
|
+
function pe(e, t, n = {}) {
|
|
259
|
+
let r = h(e);
|
|
260
|
+
return v(r, t, n), r;
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function v(e, t, n = {}) {
|
|
263
263
|
let r = {
|
|
264
264
|
locks: n.locks ?? [],
|
|
265
265
|
session: n.session ?? null
|
|
266
266
|
};
|
|
267
|
-
t.forEach((t, n) =>
|
|
267
|
+
t.forEach((t, n) => Se(e, t, n, r));
|
|
268
268
|
}
|
|
269
|
-
var
|
|
269
|
+
var me = /* @__PURE__ */ new Set([
|
|
270
270
|
"id",
|
|
271
271
|
"type",
|
|
272
272
|
"children"
|
|
273
|
-
]),
|
|
274
|
-
function
|
|
275
|
-
throw new
|
|
273
|
+
]), he = /* @__PURE__ */ new Set();
|
|
274
|
+
function y(e, t, n, r) {
|
|
275
|
+
throw new _(e, t, n, r);
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function b(e) {
|
|
278
278
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function x(e) {
|
|
281
281
|
return e.type === "section";
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function ge(e) {
|
|
284
284
|
return Array.isArray(e.blocks) ? e.blocks : [];
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function _e(e) {
|
|
287
287
|
let t = e.children;
|
|
288
288
|
return Array.isArray(t) ? t.map((e) => Array.isArray(e) ? e : []) : [];
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
let n =
|
|
290
|
+
function S(e, t) {
|
|
291
|
+
let n = ge(e);
|
|
292
292
|
for (let e = 0; e < n.length; e++) {
|
|
293
293
|
let r = n[e];
|
|
294
|
-
if (!
|
|
294
|
+
if (!b(r)) continue;
|
|
295
295
|
if (r.id === t) return {
|
|
296
296
|
block: r,
|
|
297
297
|
list: n,
|
|
298
298
|
index: e,
|
|
299
299
|
parent: null
|
|
300
300
|
};
|
|
301
|
-
if (!
|
|
301
|
+
if (!x(r) || typeof r.id != "string") continue;
|
|
302
302
|
let i = r.children;
|
|
303
303
|
if (Array.isArray(i)) for (let e = 0; e < i.length; e++) {
|
|
304
304
|
let n = i[e];
|
|
305
305
|
if (Array.isArray(n)) for (let i = 0; i < n.length; i++) {
|
|
306
306
|
let a = n[i];
|
|
307
|
-
if (
|
|
307
|
+
if (b(a) && a.id === t) return {
|
|
308
308
|
block: a,
|
|
309
309
|
list: n,
|
|
310
310
|
index: i,
|
|
@@ -318,152 +318,152 @@ function b(e, t) {
|
|
|
318
318
|
}
|
|
319
319
|
return null;
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function C(e) {
|
|
322
322
|
let t = typeof e.id == "string" ? [e.id] : [];
|
|
323
|
-
if (
|
|
323
|
+
if (x(e)) for (let n of _e(e)) t.push(...ve(n));
|
|
324
324
|
return t;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
327
|
-
return e.flatMap((e) =>
|
|
326
|
+
function ve(e) {
|
|
327
|
+
return e.flatMap((e) => b(e) ? C(e) : []);
|
|
328
328
|
}
|
|
329
|
-
function
|
|
330
|
-
return typeof e.blockId != "string" || e.blockId === "" ?
|
|
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
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function ye(e, t) {
|
|
333
333
|
let n = e.parent;
|
|
334
|
-
return n === null ? null :
|
|
334
|
+
return n === null ? null : b(n) && typeof n.sectionId == "string" && typeof n.column == "number" && Number.isInteger(n.column) ? {
|
|
335
335
|
sectionId: n.sectionId,
|
|
336
336
|
column: n.column
|
|
337
|
-
} :
|
|
337
|
+
} : y("invalid_operation", t, "parent must be null or { \"sectionId\", \"column\" }.");
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function be(e, t) {
|
|
340
340
|
let n = e.after;
|
|
341
|
-
return n === null ? null : typeof n == "string" && n !== "" ? n :
|
|
341
|
+
return n === null ? null : typeof n == "string" && n !== "" ? n : y("invalid_operation", t, "after must be null or a block id.");
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function T(e, t) {
|
|
344
344
|
let n = e.expect;
|
|
345
|
-
return n == null ? null :
|
|
345
|
+
return n == null ? null : b(n) ? n : y("invalid_operation", t, "expect must be an object.");
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function E(e, t, n) {
|
|
348
348
|
let r = e.set ?? null, i = e.unset ?? [];
|
|
349
|
-
(r
|
|
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
350
|
let a = r === null ? {} : r, o = Object.keys(a).filter((e) => a[e] !== void 0);
|
|
351
|
-
o.length === 0 && i.length === 0 &&
|
|
352
|
-
for (let e of [...o, ...i]) n.has(e) &&
|
|
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
353
|
let s = i.find((e) => o.includes(e));
|
|
354
|
-
return s !== void 0 &&
|
|
354
|
+
return s !== void 0 && y("invalid_operation", t, `"${s}" is both set and unset.`), {
|
|
355
355
|
set: Object.fromEntries(o.map((e) => [e, a[e]])),
|
|
356
356
|
unset: i
|
|
357
357
|
};
|
|
358
358
|
}
|
|
359
|
-
function
|
|
360
|
-
if ((
|
|
361
|
-
n &&
|
|
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
362
|
let r = e.children;
|
|
363
|
-
|
|
364
|
-
for (let e of r) for (let n of e)
|
|
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
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function O(e, t) {
|
|
367
367
|
return e.session === null || t.sessionId !== e.session;
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
let r = e.locks.find((n) => t.includes(n.blockId) &&
|
|
371
|
-
r &&
|
|
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
372
|
}
|
|
373
|
-
function
|
|
374
|
-
for (let [i, a] of Object.entries(t)) a !== void 0 && (
|
|
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
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function j(e, t, n) {
|
|
377
377
|
if (t === null) return Array.isArray(e.blocks) || (e.blocks = []), e.blocks;
|
|
378
|
-
let r =
|
|
379
|
-
if (!r) return
|
|
380
|
-
if (!
|
|
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
381
|
let i = r.block.children;
|
|
382
|
-
return !Array.isArray(i) || t.column < 0 || t.column >= i.length ?
|
|
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
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function M(e, t, n) {
|
|
385
385
|
if (t === null) return 0;
|
|
386
|
-
let r = e.findIndex((e) =>
|
|
387
|
-
return r === -1 ?
|
|
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
388
|
}
|
|
389
|
-
function
|
|
390
|
-
let i =
|
|
389
|
+
function xe(e, t, n, r) {
|
|
390
|
+
let i = fe(t), a = Array.isArray(e.children) ? e.children : [];
|
|
391
391
|
for (let e = i; e < a.length; e++) {
|
|
392
392
|
let t = a[e];
|
|
393
|
-
Array.isArray(t) && t.length > 0 &&
|
|
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
394
|
}
|
|
395
395
|
let o = a.slice(0, i);
|
|
396
396
|
for (; o.length < i;) o.push([]);
|
|
397
397
|
e.children = o;
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function N(e, t, n) {
|
|
400
400
|
for (let [n, r] of Object.entries(t)) n === "__proto__" ? Object.defineProperty(e, n, {
|
|
401
|
-
value:
|
|
401
|
+
value: h(r),
|
|
402
402
|
writable: !0,
|
|
403
403
|
enumerable: !0,
|
|
404
404
|
configurable: !0
|
|
405
|
-
}) : e[n] =
|
|
405
|
+
}) : e[n] = h(r);
|
|
406
406
|
for (let t of n) delete e[t];
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function Se(e, t, n, r) {
|
|
409
409
|
let i = t;
|
|
410
|
-
switch ((
|
|
411
|
-
case "addBlock": return
|
|
412
|
-
case "moveBlock": return
|
|
413
|
-
case "deleteBlock": return
|
|
414
|
-
case "updateBlock": return
|
|
415
|
-
case "updateSettings": return
|
|
416
|
-
case "setContent": return
|
|
417
|
-
default:
|
|
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
418
|
}
|
|
419
419
|
}
|
|
420
|
-
function
|
|
421
|
-
let r =
|
|
422
|
-
|
|
423
|
-
let o = new Set(
|
|
424
|
-
for (let e of
|
|
425
|
-
let c =
|
|
426
|
-
c.splice(
|
|
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);
|
|
427
438
|
}
|
|
428
439
|
function Te(e, t, n, r) {
|
|
429
|
-
let i =
|
|
430
|
-
if (!
|
|
431
|
-
|
|
432
|
-
let e = c.index > 0 ? c.list[c.index - 1] : null, t = v(e) ? e.id ?? null : null;
|
|
433
|
-
(!m(c.parent, s.parent ?? null) || !m(t, s.after ?? null)) && _("precondition_failed", n, `Block "${i}" has moved since.`, i);
|
|
434
|
-
}
|
|
435
|
-
y(c.block) && a !== null && _("invalid_operation", n, "Sections can only be placed at the top level."), o === i && _("invalid_operation", n, "A block can't be placed after itself.");
|
|
436
|
-
let l = A(e, a, n);
|
|
437
|
-
c.list.splice(c.index, 1), l.splice(j(l, o, n), 0, c.block);
|
|
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);
|
|
438
443
|
}
|
|
439
444
|
function Ee(e, t, n, r) {
|
|
440
|
-
let i =
|
|
441
|
-
if (!
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
u && o.includes("columns") && _("invalid_operation", n, "A section's columns can't be unset; set another layout instead."), O(r, [i], n), s && k(l, s, n, i), u && Object.hasOwn(a, "columns") && Se(l, a.columns, n, i), M(l, a, o);
|
|
449
|
-
}
|
|
450
|
-
function Oe(e, t, n) {
|
|
451
|
-
let { set: r, unset: i } = T(t, n, _e), a = w(t, n);
|
|
452
|
-
v(e.settings) || (e.settings = {});
|
|
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
453
|
let o = e.settings;
|
|
454
|
-
a &&
|
|
454
|
+
a && A(o, a, n), N(o, r, i);
|
|
455
455
|
}
|
|
456
|
-
function
|
|
456
|
+
function Oe(e, t, n, r) {
|
|
457
457
|
let i = t.content;
|
|
458
|
-
if (!
|
|
459
|
-
let a = r.locks.find((e) =>
|
|
460
|
-
a &&
|
|
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
461
|
}
|
|
462
|
-
function
|
|
462
|
+
function ke(e) {
|
|
463
463
|
let t = e.children;
|
|
464
464
|
return e.type === "section" && Array.isArray(t) ? t : [];
|
|
465
465
|
}
|
|
466
|
-
function
|
|
466
|
+
function P(e, t, n = null) {
|
|
467
467
|
for (let r = 0; r < e.length; r++) {
|
|
468
468
|
let i = e[r];
|
|
469
469
|
if (i.id === t) return {
|
|
@@ -471,10 +471,10 @@ function N(e, t, n = null) {
|
|
|
471
471
|
parent: n,
|
|
472
472
|
after: r > 0 ? e[r - 1].id : null
|
|
473
473
|
};
|
|
474
|
-
let a =
|
|
474
|
+
let a = ke(i);
|
|
475
475
|
for (let e = 0; e < a.length; e++) {
|
|
476
476
|
if (!Array.isArray(a[e])) continue;
|
|
477
|
-
let n =
|
|
477
|
+
let n = P(a[e], t, {
|
|
478
478
|
sectionId: i.id,
|
|
479
479
|
column: e
|
|
480
480
|
});
|
|
@@ -483,18 +483,18 @@ function N(e, t, n = null) {
|
|
|
483
483
|
}
|
|
484
484
|
return null;
|
|
485
485
|
}
|
|
486
|
-
function
|
|
487
|
-
let r =
|
|
488
|
-
if (!r) throw new
|
|
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
489
|
return r;
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function Ae(e, t, n) {
|
|
492
492
|
let r = {}, i = [], a = {}, o = [.../* @__PURE__ */ new Set([...Object.keys(t ?? {}), ...n ?? []])];
|
|
493
493
|
for (let n of o) {
|
|
494
494
|
let o = e[n];
|
|
495
|
-
o === void 0 ? i.push(n) : r[n] =
|
|
495
|
+
o === void 0 ? i.push(n) : r[n] = h(o);
|
|
496
496
|
let s = t && n in t ? t[n] : void 0;
|
|
497
|
-
a[n] = s === void 0 ? null :
|
|
497
|
+
a[n] = s === void 0 ? null : h(s);
|
|
498
498
|
}
|
|
499
499
|
return {
|
|
500
500
|
set: r,
|
|
@@ -507,19 +507,19 @@ function je(e, t, n) {
|
|
|
507
507
|
case "addBlock": return {
|
|
508
508
|
op: "deleteBlock",
|
|
509
509
|
blockId: t.block.id,
|
|
510
|
-
expect: { block:
|
|
510
|
+
expect: { block: h(t.block) }
|
|
511
511
|
};
|
|
512
512
|
case "deleteBlock": {
|
|
513
|
-
let r =
|
|
513
|
+
let r = F(e, t.blockId, n);
|
|
514
514
|
return {
|
|
515
515
|
op: "addBlock",
|
|
516
|
-
block:
|
|
516
|
+
block: h(r.block),
|
|
517
517
|
parent: r.parent,
|
|
518
518
|
after: r.after
|
|
519
519
|
};
|
|
520
520
|
}
|
|
521
521
|
case "moveBlock": {
|
|
522
|
-
let r =
|
|
522
|
+
let r = F(e, t.blockId, n);
|
|
523
523
|
return {
|
|
524
524
|
op: "moveBlock",
|
|
525
525
|
blockId: t.blockId,
|
|
@@ -532,7 +532,7 @@ function je(e, t, n) {
|
|
|
532
532
|
};
|
|
533
533
|
}
|
|
534
534
|
case "updateBlock": {
|
|
535
|
-
let r =
|
|
535
|
+
let r = F(e, t.blockId, n).block, { set: i, unset: a, expect: o } = Ae(r, t.set, t.unset);
|
|
536
536
|
return {
|
|
537
537
|
op: "updateBlock",
|
|
538
538
|
blockId: t.blockId,
|
|
@@ -542,7 +542,7 @@ function je(e, t, n) {
|
|
|
542
542
|
};
|
|
543
543
|
}
|
|
544
544
|
case "updateSettings": {
|
|
545
|
-
let { set: n, unset: r, expect: i } =
|
|
545
|
+
let { set: n, unset: r, expect: i } = Ae(e.settings, t.set, t.unset);
|
|
546
546
|
return {
|
|
547
547
|
op: "updateSettings",
|
|
548
548
|
...Object.keys(n).length > 0 ? { set: n } : {},
|
|
@@ -553,20 +553,20 @@ function je(e, t, n) {
|
|
|
553
553
|
case "setContent": return {
|
|
554
554
|
op: "setContent",
|
|
555
555
|
content: {
|
|
556
|
-
blocks:
|
|
557
|
-
settings:
|
|
556
|
+
blocks: h(e.blocks),
|
|
557
|
+
settings: h(e.settings)
|
|
558
558
|
}
|
|
559
559
|
};
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
562
|
function Me(e, t) {
|
|
563
|
-
let n =
|
|
563
|
+
let n = h(e), r = [];
|
|
564
564
|
return t.forEach((e, t) => {
|
|
565
565
|
r.push(je(n, e, t));
|
|
566
566
|
try {
|
|
567
|
-
|
|
567
|
+
v(n, [e]);
|
|
568
568
|
} catch (e) {
|
|
569
|
-
throw e instanceof
|
|
569
|
+
throw e instanceof _ ? new _(e.code, t, e.message, e.blockId) : e;
|
|
570
570
|
}
|
|
571
571
|
}), r.reverse();
|
|
572
572
|
}
|
|
@@ -661,7 +661,7 @@ var Le = {
|
|
|
661
661
|
cellPadding: 8,
|
|
662
662
|
fontSize: 15,
|
|
663
663
|
textAlign: "left"
|
|
664
|
-
},
|
|
664
|
+
}, Ye = {
|
|
665
665
|
targetDate: "",
|
|
666
666
|
timezone: "UTC",
|
|
667
667
|
showDays: !0,
|
|
@@ -681,7 +681,7 @@ var Le = {
|
|
|
681
681
|
expiredMessage: "This offer has expired",
|
|
682
682
|
expiredImageUrl: "",
|
|
683
683
|
hideOnExpiry: !1
|
|
684
|
-
},
|
|
684
|
+
}, Xe = {
|
|
685
685
|
title: Le,
|
|
686
686
|
paragraph: Re,
|
|
687
687
|
image: ze,
|
|
@@ -694,8 +694,8 @@ var Le = {
|
|
|
694
694
|
html: Ke,
|
|
695
695
|
menu: qe,
|
|
696
696
|
table: Je,
|
|
697
|
-
countdown:
|
|
698
|
-
},
|
|
697
|
+
countdown: Ye
|
|
698
|
+
}, Ze = {
|
|
699
699
|
width: 600,
|
|
700
700
|
backgroundColor: "#ffffff",
|
|
701
701
|
textColor: "#1a1a1a",
|
|
@@ -703,28 +703,28 @@ var Le = {
|
|
|
703
703
|
fontFamily: "Arial",
|
|
704
704
|
locale: "en"
|
|
705
705
|
};
|
|
706
|
-
function
|
|
706
|
+
function Qe(e) {
|
|
707
707
|
return typeof e == "object" && !!e && !Array.isArray(e) && Object.getPrototypeOf(e) === Object.prototype;
|
|
708
708
|
}
|
|
709
|
-
function
|
|
709
|
+
function z(e, t) {
|
|
710
710
|
let n = { ...e };
|
|
711
711
|
for (let r of Object.keys(t)) {
|
|
712
712
|
let i = e[r], a = t[r];
|
|
713
|
-
a !== void 0 && (n[r] =
|
|
713
|
+
a !== void 0 && (n[r] = Qe(i) && Qe(a) ? z(i, a) : a);
|
|
714
714
|
}
|
|
715
715
|
return n;
|
|
716
716
|
}
|
|
717
|
-
function
|
|
717
|
+
function $e(e = "Arial", t) {
|
|
718
718
|
return {
|
|
719
719
|
blocks: [],
|
|
720
720
|
settings: {
|
|
721
|
-
...
|
|
721
|
+
...Ze,
|
|
722
722
|
fontFamily: e,
|
|
723
723
|
...t
|
|
724
724
|
}
|
|
725
725
|
};
|
|
726
726
|
}
|
|
727
|
-
var
|
|
727
|
+
var et = [
|
|
728
728
|
"ar",
|
|
729
729
|
"he",
|
|
730
730
|
"iw",
|
|
@@ -738,24 +738,32 @@ var $e = [
|
|
|
738
738
|
"ckb",
|
|
739
739
|
"ks"
|
|
740
740
|
];
|
|
741
|
-
function
|
|
741
|
+
function tt(e) {
|
|
742
742
|
let t = e?.trim().replace(/_/g, "-").split("-")[0]?.toLowerCase();
|
|
743
|
-
return !!t &&
|
|
743
|
+
return !!t && et.includes(t);
|
|
744
744
|
}
|
|
745
|
-
function
|
|
746
|
-
return e.direction === "ltr" || e.direction === "rtl" ? e.direction :
|
|
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
|
+
});
|
|
747
755
|
}
|
|
748
|
-
function
|
|
749
|
-
let n =
|
|
750
|
-
return !t || Object.keys(t).length === 0 ? n :
|
|
756
|
+
function B(e, t) {
|
|
757
|
+
let n = h(e);
|
|
758
|
+
return !t || Object.keys(t).length === 0 ? n : z(n, t);
|
|
751
759
|
}
|
|
752
|
-
function
|
|
753
|
-
return e === void 0 ? void 0 :
|
|
760
|
+
function V(e) {
|
|
761
|
+
return e === void 0 ? void 0 : h(e);
|
|
754
762
|
}
|
|
755
|
-
function
|
|
763
|
+
function H() {
|
|
756
764
|
return crypto.randomUUID();
|
|
757
765
|
}
|
|
758
|
-
function
|
|
766
|
+
function it(e = 0) {
|
|
759
767
|
return {
|
|
760
768
|
top: e,
|
|
761
769
|
right: e,
|
|
@@ -763,135 +771,135 @@ function nt(e = 0) {
|
|
|
763
771
|
left: e
|
|
764
772
|
};
|
|
765
773
|
}
|
|
766
|
-
function
|
|
767
|
-
return { padding:
|
|
774
|
+
function U(e = 10) {
|
|
775
|
+
return { padding: it(e) };
|
|
768
776
|
}
|
|
769
|
-
function
|
|
770
|
-
return
|
|
771
|
-
id:
|
|
777
|
+
function at(e = {}) {
|
|
778
|
+
return B({
|
|
779
|
+
id: H(),
|
|
772
780
|
type: "title",
|
|
773
781
|
...Le,
|
|
774
|
-
styles:
|
|
782
|
+
styles: U()
|
|
775
783
|
}, e);
|
|
776
784
|
}
|
|
777
|
-
function
|
|
778
|
-
return
|
|
779
|
-
id:
|
|
785
|
+
function ot(e = {}) {
|
|
786
|
+
return B({
|
|
787
|
+
id: H(),
|
|
780
788
|
type: "paragraph",
|
|
781
789
|
...Re,
|
|
782
|
-
styles:
|
|
790
|
+
styles: U()
|
|
783
791
|
}, e);
|
|
784
792
|
}
|
|
785
|
-
function
|
|
786
|
-
return
|
|
787
|
-
id:
|
|
793
|
+
function st(e = {}) {
|
|
794
|
+
return B({
|
|
795
|
+
id: H(),
|
|
788
796
|
type: "image",
|
|
789
797
|
...ze,
|
|
790
|
-
styles:
|
|
798
|
+
styles: U()
|
|
791
799
|
}, e);
|
|
792
800
|
}
|
|
793
|
-
function
|
|
794
|
-
return
|
|
795
|
-
id:
|
|
801
|
+
function ct(e = {}) {
|
|
802
|
+
return B({
|
|
803
|
+
id: H(),
|
|
796
804
|
type: "button",
|
|
797
805
|
...Be,
|
|
798
|
-
styles:
|
|
806
|
+
styles: U()
|
|
799
807
|
}, e);
|
|
800
808
|
}
|
|
801
|
-
function
|
|
802
|
-
return
|
|
803
|
-
id:
|
|
809
|
+
function lt(e = {}) {
|
|
810
|
+
return B({
|
|
811
|
+
id: H(),
|
|
804
812
|
type: "divider",
|
|
805
813
|
...Ve,
|
|
806
|
-
styles:
|
|
814
|
+
styles: U(20)
|
|
807
815
|
}, e);
|
|
808
816
|
}
|
|
809
|
-
function
|
|
810
|
-
return
|
|
811
|
-
id:
|
|
817
|
+
function W(e = {}) {
|
|
818
|
+
return B({
|
|
819
|
+
id: H(),
|
|
812
820
|
type: "section",
|
|
813
821
|
...He,
|
|
814
822
|
children: [[]],
|
|
815
|
-
styles:
|
|
823
|
+
styles: U(20)
|
|
816
824
|
}, e);
|
|
817
825
|
}
|
|
818
|
-
function
|
|
819
|
-
return
|
|
820
|
-
id:
|
|
826
|
+
function ut(e = {}) {
|
|
827
|
+
return B({
|
|
828
|
+
id: H(),
|
|
821
829
|
type: "video",
|
|
822
830
|
...Ue,
|
|
823
|
-
styles:
|
|
831
|
+
styles: U()
|
|
824
832
|
}, e);
|
|
825
833
|
}
|
|
826
|
-
function
|
|
827
|
-
return
|
|
828
|
-
id:
|
|
834
|
+
function dt(e = {}) {
|
|
835
|
+
return B({
|
|
836
|
+
id: H(),
|
|
829
837
|
type: "social",
|
|
830
838
|
icons: [],
|
|
831
839
|
...We,
|
|
832
|
-
styles:
|
|
840
|
+
styles: U()
|
|
833
841
|
}, e);
|
|
834
842
|
}
|
|
835
|
-
function
|
|
836
|
-
return
|
|
837
|
-
id:
|
|
843
|
+
function ft(e = {}) {
|
|
844
|
+
return B({
|
|
845
|
+
id: H(),
|
|
838
846
|
type: "spacer",
|
|
839
847
|
...Ge,
|
|
840
|
-
styles:
|
|
848
|
+
styles: U(0)
|
|
841
849
|
}, e);
|
|
842
850
|
}
|
|
843
|
-
function
|
|
844
|
-
return
|
|
845
|
-
id:
|
|
851
|
+
function pt(e = {}) {
|
|
852
|
+
return B({
|
|
853
|
+
id: H(),
|
|
846
854
|
type: "html",
|
|
847
855
|
...Ke,
|
|
848
|
-
styles:
|
|
856
|
+
styles: U()
|
|
849
857
|
}, e);
|
|
850
858
|
}
|
|
851
|
-
function
|
|
852
|
-
return
|
|
853
|
-
id:
|
|
859
|
+
function mt(e = {}) {
|
|
860
|
+
return B({
|
|
861
|
+
id: H(),
|
|
854
862
|
type: "menu",
|
|
855
863
|
items: [],
|
|
856
864
|
...qe,
|
|
857
|
-
styles:
|
|
865
|
+
styles: U()
|
|
858
866
|
}, e);
|
|
859
867
|
}
|
|
860
|
-
function
|
|
868
|
+
function ht(e, t) {
|
|
861
869
|
return Array.from({ length: t }, () => ({
|
|
862
|
-
id:
|
|
870
|
+
id: H(),
|
|
863
871
|
cells: Array.from({ length: e }, () => ({
|
|
864
|
-
id:
|
|
872
|
+
id: H(),
|
|
865
873
|
content: ""
|
|
866
874
|
}))
|
|
867
875
|
}));
|
|
868
876
|
}
|
|
869
|
-
function
|
|
870
|
-
return
|
|
871
|
-
id:
|
|
877
|
+
function gt(e = {}) {
|
|
878
|
+
return B({
|
|
879
|
+
id: H(),
|
|
872
880
|
type: "table",
|
|
873
|
-
rows:
|
|
881
|
+
rows: ht(3, 3),
|
|
874
882
|
...Je,
|
|
875
|
-
styles:
|
|
883
|
+
styles: U()
|
|
876
884
|
}, e);
|
|
877
885
|
}
|
|
878
|
-
function
|
|
879
|
-
return
|
|
880
|
-
id:
|
|
886
|
+
function _t(e = {}) {
|
|
887
|
+
return B({
|
|
888
|
+
id: H(),
|
|
881
889
|
type: "countdown",
|
|
882
|
-
...
|
|
883
|
-
styles:
|
|
890
|
+
...Ye,
|
|
891
|
+
styles: U()
|
|
884
892
|
}, e);
|
|
885
893
|
}
|
|
886
|
-
function
|
|
894
|
+
function vt(e) {
|
|
887
895
|
return e.type === "repeatable" ? e.default ?? [] : e.type === "boolean" ? e.default ?? !1 : e.type === "number" ? e.default ?? 0 : e.default ?? "";
|
|
888
896
|
}
|
|
889
|
-
function
|
|
897
|
+
function yt(e) {
|
|
890
898
|
let t = {};
|
|
891
|
-
for (let n of e.fields) t[n.key] =
|
|
892
|
-
let n =
|
|
899
|
+
for (let n of e.fields) t[n.key] = V(vt(n));
|
|
900
|
+
let n = B(U(), V(e.defaultStyles));
|
|
893
901
|
return {
|
|
894
|
-
id:
|
|
902
|
+
id: H(),
|
|
895
903
|
type: "custom",
|
|
896
904
|
customType: e.type,
|
|
897
905
|
fieldValues: t,
|
|
@@ -899,36 +907,36 @@ function vt(e) {
|
|
|
899
907
|
...e.dataSource ? { dataSourceFetched: !1 } : {}
|
|
900
908
|
};
|
|
901
909
|
}
|
|
902
|
-
function
|
|
910
|
+
function bt() {
|
|
903
911
|
return {
|
|
904
|
-
id:
|
|
912
|
+
id: H(),
|
|
905
913
|
type: "slot",
|
|
906
|
-
styles:
|
|
914
|
+
styles: U(0)
|
|
907
915
|
};
|
|
908
916
|
}
|
|
909
|
-
function
|
|
910
|
-
return
|
|
911
|
-
id:
|
|
917
|
+
function xt(e = {}) {
|
|
918
|
+
return B({
|
|
919
|
+
id: H(),
|
|
912
920
|
type: "wrapper",
|
|
913
921
|
children: [],
|
|
914
|
-
styles:
|
|
922
|
+
styles: U(0)
|
|
915
923
|
}, e);
|
|
916
924
|
}
|
|
917
|
-
function
|
|
925
|
+
function St(e, t) {
|
|
918
926
|
switch (e) {
|
|
919
|
-
case "section": return
|
|
920
|
-
case "title": return
|
|
921
|
-
case "paragraph": return
|
|
922
|
-
case "image": return
|
|
923
|
-
case "button": return
|
|
924
|
-
case "divider": return
|
|
925
|
-
case "video": return
|
|
926
|
-
case "social": return
|
|
927
|
-
case "spacer": return
|
|
928
|
-
case "html": return
|
|
929
|
-
case "menu": return
|
|
930
|
-
case "table": return
|
|
931
|
-
case "countdown": return
|
|
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));
|
|
932
940
|
case "slot": throw Error("[Templatical] slot cannot be inserted into content. Use createSlotBlock() to build a layout.");
|
|
933
941
|
case "wrapper": throw Error("[Templatical] wrapper cannot be inserted into content. Use createWrapperBlock() to build a layout.");
|
|
934
942
|
default: throw Error(`Unknown block type: ${e}`);
|
|
@@ -936,57 +944,57 @@ function xt(e, t) {
|
|
|
936
944
|
}
|
|
937
945
|
function G(e) {
|
|
938
946
|
let t = JSON.parse(JSON.stringify(e));
|
|
939
|
-
if (t.id =
|
|
940
|
-
e.id =
|
|
941
|
-
for (let t of e.cells) t.id =
|
|
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();
|
|
942
950
|
}
|
|
943
|
-
if (t.type === "menu") for (let e of t.items) e.id =
|
|
944
|
-
if (t.type === "social") for (let e of t.icons) e.id =
|
|
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();
|
|
945
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;
|
|
946
954
|
}
|
|
947
|
-
var
|
|
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";
|
|
948
956
|
function K(e, t, n = null, r = !1) {
|
|
949
957
|
for (let i of e) if (t(i, n, r), I(i)) for (let e of i.children) K(e, t, i, !0);
|
|
950
958
|
else R(i) && K(i.children, t, i, r);
|
|
951
959
|
}
|
|
952
|
-
function
|
|
960
|
+
function kt(e) {
|
|
953
961
|
let t = 0;
|
|
954
962
|
if (K(e.blocks, (e, n, r) => {
|
|
955
|
-
if (L(e) && (t += 1, r)) throw Error(
|
|
963
|
+
if (L(e) && (t += 1, r)) throw Error(wt);
|
|
956
964
|
if (R(e)) {
|
|
957
|
-
if (r) throw Error(
|
|
958
|
-
if (e.children.some(R)) throw Error(
|
|
965
|
+
if (r) throw Error(wt);
|
|
966
|
+
if (e.children.some(R)) throw Error(Tt);
|
|
959
967
|
}
|
|
960
|
-
}), t !== 1) throw Error(
|
|
968
|
+
}), t !== 1) throw Error(Ct);
|
|
961
969
|
}
|
|
962
|
-
function
|
|
970
|
+
function At(e) {
|
|
963
971
|
K(e.blocks, (e) => {
|
|
964
|
-
if (L(e)) throw Error(
|
|
972
|
+
if (L(e)) throw Error(Dt);
|
|
965
973
|
});
|
|
966
974
|
}
|
|
967
|
-
function
|
|
975
|
+
function jt(e) {
|
|
968
976
|
K(e.blocks, (e) => {
|
|
969
|
-
if (R(e)) throw Error(
|
|
977
|
+
if (R(e)) throw Error(Ot);
|
|
970
978
|
});
|
|
971
979
|
}
|
|
972
|
-
function
|
|
980
|
+
function Mt(e) {
|
|
973
981
|
let t = !1;
|
|
974
982
|
return K(e.blocks, (e, n) => {
|
|
975
983
|
L(e) && n !== null && R(n) && (t = !0);
|
|
976
984
|
}), t;
|
|
977
985
|
}
|
|
978
|
-
function
|
|
986
|
+
function Nt(e) {
|
|
979
987
|
if (L(e)) return e;
|
|
980
988
|
if (R(e)) {
|
|
981
989
|
let t = G({
|
|
982
990
|
...e,
|
|
983
991
|
children: []
|
|
984
992
|
});
|
|
985
|
-
return t.children = e.children.map(
|
|
993
|
+
return t.children = e.children.map(Nt), t;
|
|
986
994
|
}
|
|
987
995
|
return G(e);
|
|
988
996
|
}
|
|
989
|
-
function
|
|
997
|
+
function Pt(e) {
|
|
990
998
|
for (let t = 0; t < e.length; t++) {
|
|
991
999
|
let n = e[t];
|
|
992
1000
|
if (L(n)) return {
|
|
@@ -994,49 +1002,77 @@ function Nt(e) {
|
|
|
994
1002
|
index: t
|
|
995
1003
|
};
|
|
996
1004
|
if (R(n)) {
|
|
997
|
-
let e =
|
|
1005
|
+
let e = Pt(n.children);
|
|
998
1006
|
if (e) return e;
|
|
999
1007
|
}
|
|
1000
1008
|
}
|
|
1001
1009
|
return null;
|
|
1002
1010
|
}
|
|
1003
|
-
function
|
|
1011
|
+
function Ft(e) {
|
|
1004
1012
|
for (let t of e) if (I(t)) {
|
|
1005
1013
|
if (t.wrapper) return !0;
|
|
1006
|
-
for (let e of t.children) if (
|
|
1014
|
+
for (let e of t.children) if (Ft(e)) return !0;
|
|
1007
1015
|
}
|
|
1008
1016
|
return !1;
|
|
1009
1017
|
}
|
|
1010
|
-
function
|
|
1011
|
-
if (
|
|
1012
|
-
let n = e.blocks.map(
|
|
1013
|
-
if (!r) throw Error(
|
|
1014
|
-
return r.parent.splice(r.index, 1, ...
|
|
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)), {
|
|
1015
1023
|
blocks: n,
|
|
1016
1024
|
settings: {
|
|
1017
|
-
...
|
|
1025
|
+
...h(t.settings),
|
|
1018
1026
|
backgroundColor: e.settings.backgroundColor
|
|
1019
1027
|
}
|
|
1020
1028
|
};
|
|
1021
1029
|
}
|
|
1022
|
-
var
|
|
1023
|
-
|
|
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) {
|
|
1024
1060
|
let n = null;
|
|
1025
1061
|
for (let r = t; r < e.length; r++) {
|
|
1026
1062
|
let t = e[r];
|
|
1027
1063
|
if (n !== null) t === n && (n = null);
|
|
1028
|
-
else if (
|
|
1064
|
+
else if (Ht.has(t)) n = t;
|
|
1029
1065
|
else if (t === ">") return r;
|
|
1030
1066
|
}
|
|
1031
1067
|
return -1;
|
|
1032
1068
|
}
|
|
1033
|
-
function
|
|
1069
|
+
function Wt(e) {
|
|
1034
1070
|
return e !== " " && e !== " " && e !== "\n" && e !== "\r" && e !== "\f" && e !== "=" && e !== ">" && e !== "/";
|
|
1035
1071
|
}
|
|
1036
1072
|
function q(e) {
|
|
1037
1073
|
return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
|
|
1038
1074
|
}
|
|
1039
|
-
var
|
|
1075
|
+
var Gt = {
|
|
1040
1076
|
amp: "&",
|
|
1041
1077
|
lt: "<",
|
|
1042
1078
|
gt: ">",
|
|
@@ -1044,22 +1080,22 @@ var zt = {
|
|
|
1044
1080
|
apos: "'",
|
|
1045
1081
|
nbsp: "\xA0"
|
|
1046
1082
|
};
|
|
1047
|
-
function
|
|
1083
|
+
function Kt(e) {
|
|
1048
1084
|
return e.includes("&") ? e.replace(/&(#[0-9]+|#[xX][0-9a-fA-F]+|[a-zA-Z][a-zA-Z0-9]*);/g, (e, t) => {
|
|
1049
1085
|
if (t[0] === "#") {
|
|
1050
1086
|
let n = t[1] === "x" || t[1] === "X" ? Number.parseInt(t.slice(2), 16) : Number.parseInt(t.slice(1), 10);
|
|
1051
1087
|
return !Number.isFinite(n) || n < 1 || n > 1114111 || n >= 55296 && n <= 57343 ? e : String.fromCodePoint(n);
|
|
1052
1088
|
}
|
|
1053
|
-
return
|
|
1089
|
+
return Gt[t.toLowerCase()] ?? e;
|
|
1054
1090
|
}) : e;
|
|
1055
1091
|
}
|
|
1056
|
-
function
|
|
1092
|
+
function qt(e, t) {
|
|
1057
1093
|
let n = t.toLowerCase(), r = 0;
|
|
1058
1094
|
for (; r < e.length;) {
|
|
1059
1095
|
for (; r < e.length && (q(e[r]) || e[r] === "/");) r++;
|
|
1060
1096
|
if (r >= e.length) break;
|
|
1061
1097
|
let t = r;
|
|
1062
|
-
for (; r < e.length &&
|
|
1098
|
+
for (; r < e.length && Wt(e[r]);) r++;
|
|
1063
1099
|
let i = e.substring(t, r).toLowerCase();
|
|
1064
1100
|
if (i === "") {
|
|
1065
1101
|
r++;
|
|
@@ -1069,27 +1105,27 @@ function Vt(e, t) {
|
|
|
1069
1105
|
if (e[r] !== "=") continue;
|
|
1070
1106
|
for (r++; r < e.length && q(e[r]);) r++;
|
|
1071
1107
|
let a = e[r];
|
|
1072
|
-
if (
|
|
1108
|
+
if (Ht.has(a)) {
|
|
1073
1109
|
let t = r + 1, o = e.indexOf(a, t);
|
|
1074
1110
|
if (o === -1) return null;
|
|
1075
|
-
if (i === n) return
|
|
1111
|
+
if (i === n) return Kt(e.substring(t, o));
|
|
1076
1112
|
r = o + 1;
|
|
1077
1113
|
continue;
|
|
1078
1114
|
}
|
|
1079
1115
|
let o = r;
|
|
1080
1116
|
for (; r < e.length && !q(e[r]) && e[r] !== ">";) r++;
|
|
1081
|
-
if (i === n) return
|
|
1117
|
+
if (i === n) return Kt(e.substring(o, r));
|
|
1082
1118
|
}
|
|
1083
1119
|
return null;
|
|
1084
1120
|
}
|
|
1085
|
-
var
|
|
1086
|
-
function
|
|
1087
|
-
return e.replace(
|
|
1121
|
+
var Jt = /<\/?p\b[^<>]*>/gi, Yt = /<p\b([^<>]*)>\s*<\/p>/gi;
|
|
1122
|
+
function Xt(e) {
|
|
1123
|
+
return e.replace(Jt, "").trim() === "";
|
|
1088
1124
|
}
|
|
1089
|
-
function
|
|
1090
|
-
return
|
|
1125
|
+
function Zt(e) {
|
|
1126
|
+
return Xt(e) ? e : e.replace(Yt, "<p$1> </p>");
|
|
1091
1127
|
}
|
|
1092
|
-
var
|
|
1128
|
+
var Qt = {
|
|
1093
1129
|
arial: "Arial, sans-serif",
|
|
1094
1130
|
helvetica: "Helvetica, sans-serif",
|
|
1095
1131
|
georgia: "Georgia, serif",
|
|
@@ -1098,13 +1134,13 @@ var Kt = {
|
|
|
1098
1134
|
"trebuchet ms": "'Trebuchet MS', sans-serif",
|
|
1099
1135
|
"courier new": "'Courier New', monospace",
|
|
1100
1136
|
tahoma: "Tahoma, sans-serif"
|
|
1101
|
-
},
|
|
1137
|
+
}, $t = /* @__PURE__ */ new Set([
|
|
1102
1138
|
"inherit",
|
|
1103
1139
|
"initial",
|
|
1104
1140
|
"unset",
|
|
1105
1141
|
"revert",
|
|
1106
1142
|
"revert-layer"
|
|
1107
|
-
]),
|
|
1143
|
+
]), en = /* @__PURE__ */ new Set([
|
|
1108
1144
|
"serif",
|
|
1109
1145
|
"sans-serif",
|
|
1110
1146
|
"monospace",
|
|
@@ -1119,14 +1155,14 @@ var Kt = {
|
|
|
1119
1155
|
"math",
|
|
1120
1156
|
"fangsong"
|
|
1121
1157
|
]);
|
|
1122
|
-
function
|
|
1158
|
+
function tn(e) {
|
|
1123
1159
|
return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
|
|
1124
1160
|
}
|
|
1125
1161
|
function J(e) {
|
|
1126
1162
|
if (typeof e != "string") return [];
|
|
1127
1163
|
let t = e.replace(/!\s*important\s*$/i, ""), n = [], r = 0;
|
|
1128
1164
|
for (;;) {
|
|
1129
|
-
for (; r < t.length &&
|
|
1165
|
+
for (; r < t.length && tn(t[r]);) r++;
|
|
1130
1166
|
if (r >= t.length) return [];
|
|
1131
1167
|
let e = t[r];
|
|
1132
1168
|
if (e === "\"" || e === "'") {
|
|
@@ -1143,7 +1179,7 @@ function J(e) {
|
|
|
1143
1179
|
}
|
|
1144
1180
|
}
|
|
1145
1181
|
if (!o) return [];
|
|
1146
|
-
for (; a < t.length &&
|
|
1182
|
+
for (; a < t.length && tn(t[a]);) a++;
|
|
1147
1183
|
if (a < t.length && t[a] !== ",") return [];
|
|
1148
1184
|
n.push({
|
|
1149
1185
|
name: i,
|
|
@@ -1151,7 +1187,7 @@ function J(e) {
|
|
|
1151
1187
|
}), r = a;
|
|
1152
1188
|
} else {
|
|
1153
1189
|
let e = t.indexOf(",", r), i = e === -1 ? t.length : e, a = t.slice(r, i).trim().split(/\s+/).join(" ");
|
|
1154
|
-
if (a === "" || a.includes("\"") || a.includes("'") ||
|
|
1190
|
+
if (a === "" || a.includes("\"") || a.includes("'") || $t.has(a.toLowerCase())) return [];
|
|
1155
1191
|
n.push({
|
|
1156
1192
|
name: a,
|
|
1157
1193
|
quoted: !1
|
|
@@ -1161,22 +1197,22 @@ function J(e) {
|
|
|
1161
1197
|
r++;
|
|
1162
1198
|
}
|
|
1163
1199
|
}
|
|
1164
|
-
function
|
|
1200
|
+
function nn(e) {
|
|
1165
1201
|
return `'${e.replace(/\\/g, "\\\\").replace(/'/g, "\\'")}'`;
|
|
1166
1202
|
}
|
|
1167
|
-
function
|
|
1168
|
-
return !e.quoted &&
|
|
1203
|
+
function rn(e) {
|
|
1204
|
+
return !e.quoted && en.has(e.name.toLowerCase());
|
|
1169
1205
|
}
|
|
1170
|
-
function
|
|
1206
|
+
function an(e) {
|
|
1171
1207
|
return J(e)[0]?.name ?? "";
|
|
1172
1208
|
}
|
|
1173
|
-
function
|
|
1174
|
-
let n = (e) => `${
|
|
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);
|
|
1175
1211
|
if (i) return n(i);
|
|
1176
1212
|
let a = J(e);
|
|
1177
1213
|
if (a.length !== 1) return e;
|
|
1178
1214
|
let [o] = a, s = o.name.toLowerCase(), c = t.customFonts.find((e) => e.name.toLowerCase() === s);
|
|
1179
|
-
return c ? n(c) :
|
|
1215
|
+
return c ? n(c) : Qt[s] || (rn(o) ? e : `${nn(o.name)}, ${t.defaultFallback}`);
|
|
1180
1216
|
}
|
|
1181
1217
|
var Y = {
|
|
1182
1218
|
liquid: {
|
|
@@ -1204,26 +1240,26 @@ var Y = {
|
|
|
1204
1240
|
closer: "=%%"
|
|
1205
1241
|
}
|
|
1206
1242
|
};
|
|
1207
|
-
function
|
|
1243
|
+
function sn(e) {
|
|
1208
1244
|
return typeof e == "string" && e.trim() !== "" ? e : null;
|
|
1209
1245
|
}
|
|
1210
|
-
function
|
|
1246
|
+
function cn(e) {
|
|
1211
1247
|
return Object.values(Y).find((t) => t.value.source === e.value.source) ?? null;
|
|
1212
1248
|
}
|
|
1213
|
-
function
|
|
1214
|
-
return
|
|
1249
|
+
function ln(e) {
|
|
1250
|
+
return sn(e.opener) ?? cn(e)?.opener ?? null;
|
|
1215
1251
|
}
|
|
1216
|
-
function
|
|
1217
|
-
return
|
|
1252
|
+
function un(e) {
|
|
1253
|
+
return sn(e.closer) ?? cn(e)?.closer ?? null;
|
|
1218
1254
|
}
|
|
1219
|
-
function
|
|
1255
|
+
function dn(e) {
|
|
1220
1256
|
return e ? typeof e == "string" ? Y[e] ?? Y.liquid : e : Y.liquid;
|
|
1221
1257
|
}
|
|
1222
1258
|
function X(e) {
|
|
1223
1259
|
let t = e.source, n = e.flags.replace("g", "");
|
|
1224
1260
|
return RegExp(`^${t}$`, n);
|
|
1225
1261
|
}
|
|
1226
|
-
function
|
|
1262
|
+
function fn(e, t) {
|
|
1227
1263
|
let n = e?.trim() || "";
|
|
1228
1264
|
return !X(t.logic).test(n) && X(t.value).test(n);
|
|
1229
1265
|
}
|
|
@@ -1231,41 +1267,41 @@ function Z(e, t) {
|
|
|
1231
1267
|
let n = t.find((t) => t.value === e);
|
|
1232
1268
|
return n ? n.label : e;
|
|
1233
1269
|
}
|
|
1234
|
-
function
|
|
1270
|
+
function pn(e, t) {
|
|
1235
1271
|
return $(e, "data-merge-tag", (e) => Z(e, t));
|
|
1236
1272
|
}
|
|
1237
1273
|
function Q(e, t) {
|
|
1238
1274
|
return t.find((t) => t.value === e)?.sample;
|
|
1239
1275
|
}
|
|
1240
|
-
function
|
|
1241
|
-
return $(e, "data-merge-tag", (e) =>
|
|
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 });
|
|
1242
1278
|
}
|
|
1243
|
-
function
|
|
1279
|
+
function hn(e) {
|
|
1244
1280
|
return e.some((e) => e.sample !== void 0);
|
|
1245
1281
|
}
|
|
1246
|
-
function
|
|
1282
|
+
function gn(e, t) {
|
|
1247
1283
|
if (!e) return e;
|
|
1248
1284
|
let n = e;
|
|
1249
1285
|
for (let e of t) e.sample !== void 0 && (n = n.split(e.value).join(e.sample));
|
|
1250
1286
|
return n;
|
|
1251
1287
|
}
|
|
1252
|
-
function
|
|
1288
|
+
function _n(e) {
|
|
1253
1289
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
1254
1290
|
}
|
|
1255
|
-
function
|
|
1291
|
+
function vn(e, t) {
|
|
1256
1292
|
if (!e) return !1;
|
|
1257
1293
|
let n = new RegExp(t.value.source, t.value.flags), r = new RegExp(t.logic.source, t.logic.flags);
|
|
1258
1294
|
return n.test(e) || r.test(e);
|
|
1259
1295
|
}
|
|
1260
|
-
function
|
|
1296
|
+
function yn(e, t) {
|
|
1261
1297
|
return X(t.logic).test(e?.trim() || "");
|
|
1262
1298
|
}
|
|
1263
|
-
function
|
|
1299
|
+
function bn(e, t) {
|
|
1264
1300
|
let n = new RegExp(t.logic.source, t.logic.flags.replace("g", "")), r = e.match(n);
|
|
1265
1301
|
return r && r[1] ? r[1].toUpperCase() : e;
|
|
1266
1302
|
}
|
|
1267
|
-
function
|
|
1268
|
-
return $(e, "data-logic-merge-tag", (e) =>
|
|
1303
|
+
function xn(e, t) {
|
|
1304
|
+
return $(e, "data-logic-merge-tag", (e) => bn(e, t));
|
|
1269
1305
|
}
|
|
1270
1306
|
function $(e, t, n, r) {
|
|
1271
1307
|
let i = "", a = 0;
|
|
@@ -1280,7 +1316,7 @@ function $(e, t, n, r) {
|
|
|
1280
1316
|
i += e.substring(a, o + 5), a = o + 5;
|
|
1281
1317
|
continue;
|
|
1282
1318
|
}
|
|
1283
|
-
let c =
|
|
1319
|
+
let c = Ut(e, o + 5);
|
|
1284
1320
|
if (c === -1) {
|
|
1285
1321
|
i += e.substring(a);
|
|
1286
1322
|
break;
|
|
@@ -1290,7 +1326,7 @@ function $(e, t, n, r) {
|
|
|
1290
1326
|
i += e.substring(a);
|
|
1291
1327
|
break;
|
|
1292
1328
|
}
|
|
1293
|
-
let u =
|
|
1329
|
+
let u = qt(e.substring(o + 5, c), t);
|
|
1294
1330
|
if (u === null) {
|
|
1295
1331
|
i += e.substring(a, o + 5), a = o + 5;
|
|
1296
1332
|
continue;
|
|
@@ -1300,10 +1336,9 @@ function $(e, t, n, r) {
|
|
|
1300
1336
|
}
|
|
1301
1337
|
return i;
|
|
1302
1338
|
}
|
|
1303
|
-
function
|
|
1339
|
+
function Sn(e) {
|
|
1304
1340
|
if (typeof e != "object" || !e) return !1;
|
|
1305
1341
|
let t = e;
|
|
1306
1342
|
return Array.isArray(t.blocks);
|
|
1307
1343
|
}
|
|
1308
|
-
|
|
1309
|
-
export { ln as $, at as A, bt as B, xt as C, un as Ct, Qe as D, t as Dt, vt as E, o as Et, ut as F, Qt as G, B as H, dt as I, mn as J, U as K, ht as L, it as M, ct as N, st as O, Ot, yt as P, nn as Q, rt as R, te as S, cn as St, gt as T, r as Tt, ne as U, m as V, Gt as W, Q as X, Z as Y, rn as Z, g as _, an as _t, Fe as a, gn as at, G as b, fe as bt, s as c, R as ct, ce as d, re as dt, se as et, Y as f, tt as ft, he as g, sn as gt, Ft as h, hn as ht, e as i, on as it, pt as j, ft as k, h as l, jt as lt, c as m, ae as mt, ee as n, Ie as nt, Ye as o, I as ot, Ne as p, $t as pt, me as q, i as r, pn as rt, Xe as s, L as st, d as t, Me as tt, l as u, J as ut, kt as v, p as vt, ot as w, n as wt, fn as x, de as xt, At as y, ue as yt, lt as z };
|
|
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 };
|