@templatical/editor 0.40.0 → 0.42.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.
Files changed (195) hide show
  1. package/README.md +1 -1
  2. package/dist/{AiChatSidebar-a8TPBAl2.js → AiChatSidebar-DqSoJAXx.js} +1 -1
  3. package/dist/{AiFeatureMenu-CbgDjLqk.js → AiFeatureMenu-CoBvE72q.js} +1 -1
  4. package/dist/{BlockPreviewCanvas-XNV83YGg.js → BlockPreviewCanvas-W6-MRpWz.js} +33 -33
  5. package/dist/{CloudHeaderExtras-C-tbLyfE.js → CloudHeaderExtras-AbsNuL9T.js} +1 -1
  6. package/dist/{CloudPanels-DnWDrgnQ.js → CloudPanels-BNL6rSeB.js} +2 -2
  7. package/dist/{CollaboratorBar-DUmeCkyD.js → CollaboratorBar-DlZ-wOL_.js} +1 -1
  8. package/dist/{CountdownToolbar-DkC-qSgq.js → CountdownToolbar-Bnq25sR-.js} +3 -3
  9. package/dist/{DesignReferenceSidebar-OoiYJAKS.js → DesignReferenceSidebar-Cl5eE8Kn.js} +1 -1
  10. package/dist/{LogicTagInsertButton-BimKobaG.js → LogicTagInsertButton-SI6irEtn.js} +243 -219
  11. package/dist/{MediaEditModal-BFWmufJK.js → MediaEditModal-C-InB-H2.js} +1 -1
  12. package/dist/{MediaPanels-BmDda5rY.js → MediaPanels-CTosUpeo.js} +1 -1
  13. package/dist/{MergeTagInput-DqpVzhy7.js → MergeTagInput-BMQGNh1k.js} +1 -1
  14. package/dist/{MergeTagModeToggle-BkIiAgpQ.js → MergeTagModeToggle-Cm9s-w6o.js} +1 -1
  15. package/dist/{ParagraphEditor-D67Cqh-T.js → ParagraphEditor-CnBPQCVo.js} +19 -19
  16. package/dist/{RestoreVersionDialog-BaKDuPCX.js → RestoreVersionDialog-B13whpxH.js} +1 -1
  17. package/dist/{RichTextEditorContent-AEtfKvLz.js → RichTextEditorContent-DOvhgc-7.js} +3 -3
  18. package/dist/{SaveBlockDialog-BxkI52fN.js → SaveBlockDialog-b5yrQfoN.js} +5 -5
  19. package/dist/{SavedBlocksBrowserModal-C4_25Kvn.js → SavedBlocksBrowserModal-DpqK4Zqp.js} +4 -4
  20. package/dist/{SavedBlocksPanels-DQ0w9G1O.js → SavedBlocksPanels-C2wURIlT.js} +1 -1
  21. package/dist/{SavedBlocksPickBar-CtH-sfxh.js → SavedBlocksPickBar-Bx9_SXVA.js} +1 -1
  22. package/dist/{TemplateSettings-BD1WNP4C.js → TemplateSettings-Gn9ps1R6.js} +3 -3
  23. package/dist/{TestEmailModal-DZi58FU9.js → TestEmailModal-DaIaklcg.js} +5 -5
  24. package/dist/{TestEmailPanel-D__9Wvgz.js → TestEmailPanel-CKSvzakC.js} +1 -1
  25. package/dist/{TitleEditor-v5p89Djs.js → TitleEditor-C66Jk73n.js} +7 -7
  26. package/dist/{ToggleSwitch-CJfQ8u57.js → ToggleSwitch-BqttX9lY.js} +1 -1
  27. package/dist/{Toolbar-C7SjilzH.js → Toolbar-DVsKYQaC.js} +846 -553
  28. package/dist/{TplModal-B8uLyoXE.js → TplModal-DRQln7xH.js} +2 -2
  29. package/dist/{VersionHistoryPanels-DfNrRT6y.js → VersionHistoryPanels-Df5WjNah.js} +1 -1
  30. package/dist/{WrapperBlock-yGmKw0T-.js → WrapperBlock-B0cUORGz.js} +4 -4
  31. package/dist/{blockTypeIcons-B0Bq1WT1.js → blockTypeIcons-DfQNZnl7.js} +1 -1
  32. package/dist/bundle-stats.json +7 -7
  33. package/dist/{ca-Ckgw9yd0.js → ca--zGWn9AU.js} +14 -0
  34. package/dist/cdn/chunks/{AiChatSidebar-mKImUXi6.js → AiChatSidebar-DD17BwXn.js} +10 -10
  35. package/dist/cdn/chunks/{AiChatSidebar-mKImUXi6.js.map → AiChatSidebar-DD17BwXn.js.map} +1 -1
  36. package/dist/cdn/chunks/{AiFeatureMenu-23HCL517.js → AiFeatureMenu-Di381OsL.js} +5 -5
  37. package/dist/cdn/chunks/{AiFeatureMenu-23HCL517.js.map → AiFeatureMenu-Di381OsL.js.map} +1 -1
  38. package/dist/cdn/chunks/{BlockIssueBadge-DS1pUf5g.js → BlockIssueBadge-BR_N3nRh.js} +2 -2
  39. package/dist/cdn/chunks/{BlockIssueBadge-DS1pUf5g.js.map → BlockIssueBadge-BR_N3nRh.js.map} +1 -1
  40. package/dist/cdn/chunks/{BlockPreviewCanvas-DObWyQfh.js → BlockPreviewCanvas-BXpcAiiY.js} +28 -28
  41. package/dist/cdn/chunks/{BlockPreviewCanvas-DObWyQfh.js.map → BlockPreviewCanvas-BXpcAiiY.js.map} +1 -1
  42. package/dist/cdn/chunks/{CloudHeaderExtras-DOB_uWpt.js → CloudHeaderExtras-BEM2eWfF.js} +3 -3
  43. package/dist/cdn/chunks/{CloudHeaderExtras-DOB_uWpt.js.map → CloudHeaderExtras-BEM2eWfF.js.map} +1 -1
  44. package/dist/cdn/chunks/{CloudPanels-DcAn5QW7.js → CloudPanels-D7nK1-bm.js} +4 -4
  45. package/dist/cdn/chunks/{CloudPanels-DcAn5QW7.js.map → CloudPanels-D7nK1-bm.js.map} +1 -1
  46. package/dist/cdn/chunks/{CollaboratorBar-C0M8c2Vv.js → CollaboratorBar-D1SUwahw.js} +3 -3
  47. package/dist/cdn/chunks/{CollaboratorBar-C0M8c2Vv.js.map → CollaboratorBar-D1SUwahw.js.map} +1 -1
  48. package/dist/cdn/chunks/{CommentsPanel-BtAGZfF6.js → CommentsPanel-qsLMAlJU.js} +2 -2
  49. package/dist/cdn/chunks/{CommentsPanel-BtAGZfF6.js.map → CommentsPanel-qsLMAlJU.js.map} +1 -1
  50. package/dist/cdn/chunks/{CommentsSidebar-Ws07MXYj.js → CommentsSidebar-CTwEE-s_.js} +16 -16
  51. package/dist/cdn/chunks/{CommentsSidebar-Ws07MXYj.js.map → CommentsSidebar-CTwEE-s_.js.map} +1 -1
  52. package/dist/cdn/chunks/{CountdownToolbar-Bu93WiS8.js → CountdownToolbar-BJTcnIQ-.js} +4 -4
  53. package/dist/cdn/chunks/{CountdownToolbar-Bu93WiS8.js.map → CountdownToolbar-BJTcnIQ-.js.map} +1 -1
  54. package/dist/cdn/chunks/{DesignReferenceSidebar-BlSdh5B7.js → DesignReferenceSidebar-Dl3eEGtS.js} +9 -9
  55. package/dist/cdn/chunks/{DesignReferenceSidebar-BlSdh5B7.js.map → DesignReferenceSidebar-Dl3eEGtS.js.map} +1 -1
  56. package/dist/cdn/chunks/{IssuesPanel-CKkv9z9g.js → IssuesPanel-L9Gq_T8n.js} +8 -8
  57. package/dist/cdn/chunks/{IssuesPanel-CKkv9z9g.js.map → IssuesPanel-L9Gq_T8n.js.map} +1 -1
  58. package/dist/cdn/chunks/{LogicTagInsertButton-CHc1yZ9v.js → LogicTagInsertButton-3pIbVE9p.js} +250 -226
  59. package/dist/cdn/chunks/LogicTagInsertButton-3pIbVE9p.js.map +1 -0
  60. package/dist/cdn/chunks/{MediaEditModal-CZBZviu2.js → MediaEditModal-rTjYl-fV.js} +2 -2
  61. package/dist/cdn/chunks/{MediaEditModal-CZBZviu2.js.map → MediaEditModal-rTjYl-fV.js.map} +1 -1
  62. package/dist/cdn/chunks/{MediaPanels-Bq5b-XJM.js → MediaPanels-DMXRQVqg.js} +2 -2
  63. package/dist/cdn/chunks/{MediaPanels-Bq5b-XJM.js.map → MediaPanels-DMXRQVqg.js.map} +1 -1
  64. package/dist/cdn/chunks/{MergeTagInput--qTYfCWk.js → MergeTagInput-JcBzr77a.js} +2 -2
  65. package/dist/cdn/chunks/{MergeTagInput--qTYfCWk.js.map → MergeTagInput-JcBzr77a.js.map} +1 -1
  66. package/dist/cdn/chunks/{MergeTagModeToggle-CdWIGo3Q.js → MergeTagModeToggle-CYmueXS2.js} +10 -10
  67. package/dist/cdn/chunks/{MergeTagModeToggle-CdWIGo3Q.js.map → MergeTagModeToggle-CYmueXS2.js.map} +1 -1
  68. package/dist/cdn/chunks/{ParagraphEditor-BilbVtrG.js → ParagraphEditor-DbjFDnYm.js} +39 -39
  69. package/dist/cdn/chunks/{ParagraphEditor-BilbVtrG.js.map → ParagraphEditor-DbjFDnYm.js.map} +1 -1
  70. package/dist/cdn/chunks/{RestoreVersionDialog-Q-a44Vjv.js → RestoreVersionDialog-pANCWcce.js} +3 -3
  71. package/dist/cdn/chunks/{RestoreVersionDialog-Q-a44Vjv.js.map → RestoreVersionDialog-pANCWcce.js.map} +1 -1
  72. package/dist/cdn/chunks/{RichTextEditorContent-Fzuu9pLP.js → RichTextEditorContent-BtM1or8A.js} +5 -5
  73. package/dist/cdn/chunks/{RichTextEditorContent-Fzuu9pLP.js.map → RichTextEditorContent-BtM1or8A.js.map} +1 -1
  74. package/dist/cdn/chunks/{SaveBlockDialog-DeW_M6kh.js → SaveBlockDialog-CGM3mrGj.js} +38 -38
  75. package/dist/cdn/chunks/{SaveBlockDialog-DeW_M6kh.js.map → SaveBlockDialog-CGM3mrGj.js.map} +1 -1
  76. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BzQWibKG.js → SavedBlocksBrowserModal-C6Z8AvtD.js} +10 -10
  77. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BzQWibKG.js.map → SavedBlocksBrowserModal-C6Z8AvtD.js.map} +1 -1
  78. package/dist/cdn/chunks/{SavedBlocksPanels-Ce1RePjk.js → SavedBlocksPanels-DNwKmnhp.js} +2 -2
  79. package/dist/cdn/chunks/{SavedBlocksPanels-Ce1RePjk.js.map → SavedBlocksPanels-DNwKmnhp.js.map} +1 -1
  80. package/dist/cdn/chunks/{SavedBlocksPickBar-DIDl6xfy.js → SavedBlocksPickBar-D2p1ufB4.js} +3 -3
  81. package/dist/cdn/chunks/{SavedBlocksPickBar-DIDl6xfy.js.map → SavedBlocksPickBar-D2p1ufB4.js.map} +1 -1
  82. package/dist/cdn/chunks/{TemplateScoringPanel-d_Ppowsq.js → TemplateScoringPanel-BDB4RErx.js} +19 -19
  83. package/dist/cdn/chunks/{TemplateScoringPanel-d_Ppowsq.js.map → TemplateScoringPanel-BDB4RErx.js.map} +1 -1
  84. package/dist/cdn/chunks/{TemplateSettings-Dr5OJ0Gi.js → TemplateSettings-DVN1t3yF.js} +9 -9
  85. package/dist/cdn/chunks/{TemplateSettings-Dr5OJ0Gi.js.map → TemplateSettings-DVN1t3yF.js.map} +1 -1
  86. package/dist/cdn/chunks/{TestEmailModal-CWTmaJuT.js → TestEmailModal-DZBCmBtT.js} +7 -7
  87. package/dist/cdn/chunks/{TestEmailModal-CWTmaJuT.js.map → TestEmailModal-DZBCmBtT.js.map} +1 -1
  88. package/dist/cdn/chunks/{TestEmailPanel-BdYsVHXA.js → TestEmailPanel-1ibwYCUl.js} +2 -2
  89. package/dist/cdn/chunks/{TestEmailPanel-BdYsVHXA.js.map → TestEmailPanel-1ibwYCUl.js.map} +1 -1
  90. package/dist/cdn/chunks/{TitleEditor-pJeeZ-PX.js → TitleEditor-BRl2qKbd.js} +13 -13
  91. package/dist/cdn/chunks/{TitleEditor-pJeeZ-PX.js.map → TitleEditor-BRl2qKbd.js.map} +1 -1
  92. package/dist/cdn/chunks/{ToggleSwitch-0dGCYnRY.js → ToggleSwitch-niSL2uog.js} +2 -2
  93. package/dist/cdn/chunks/{ToggleSwitch-0dGCYnRY.js.map → ToggleSwitch-niSL2uog.js.map} +1 -1
  94. package/dist/cdn/chunks/{Toolbar-BsiHW9gY.js → Toolbar-tTl0P-rr.js} +814 -566
  95. package/dist/cdn/chunks/Toolbar-tTl0P-rr.js.map +1 -0
  96. package/dist/cdn/chunks/{TplModal-CEuGD7pt.js → TplModal-C_eIPykE.js} +3 -3
  97. package/dist/cdn/chunks/{TplModal-CEuGD7pt.js.map → TplModal-C_eIPykE.js.map} +1 -1
  98. package/dist/cdn/chunks/{VersionHistoryMenu-B3-hNu9c.js → VersionHistoryMenu-Ww57XAzj.js} +7 -7
  99. package/dist/cdn/chunks/{VersionHistoryMenu-B3-hNu9c.js.map → VersionHistoryMenu-Ww57XAzj.js.map} +1 -1
  100. package/dist/cdn/chunks/{VersionHistoryPanels-C1yck5gT.js → VersionHistoryPanels-w0EG_qVW.js} +2 -2
  101. package/dist/cdn/chunks/{VersionHistoryPanels-C1yck5gT.js.map → VersionHistoryPanels-w0EG_qVW.js.map} +1 -1
  102. package/dist/cdn/chunks/{VersionPreviewBanner-PzVQSBJE.js → VersionPreviewBanner-Bbd4C-AN.js} +2 -2
  103. package/dist/cdn/chunks/{VersionPreviewBanner-PzVQSBJE.js.map → VersionPreviewBanner-Bbd4C-AN.js.map} +1 -1
  104. package/dist/cdn/chunks/{WrapperBlock-DGkbmj06.js → WrapperBlock-Ch4KeMIb.js} +4 -4
  105. package/dist/cdn/chunks/{WrapperBlock-DGkbmj06.js.map → WrapperBlock-Ch4KeMIb.js.map} +1 -1
  106. package/dist/cdn/chunks/blockTypeIcons-CyPXFh7L.js +21 -0
  107. package/dist/cdn/chunks/{blockTypeIcons-raBjStuv.js.map → blockTypeIcons-CyPXFh7L.js.map} +1 -1
  108. package/dist/cdn/chunks/{ca-Ckgw9yd0.js → ca--zGWn9AU.js} +15 -1
  109. package/dist/cdn/chunks/ca--zGWn9AU.js.map +1 -0
  110. package/dist/cdn/chunks/{cloud-CIT4yPp4.js → cloud-De-eh1u6.js} +2 -2
  111. package/dist/cdn/chunks/{cloud-CIT4yPp4.js.map → cloud-De-eh1u6.js.map} +1 -1
  112. package/dist/cdn/chunks/{createCloudRuntime-COUxbPvd.js → createCloudRuntime-DsaUaWvr.js} +3 -3
  113. package/dist/cdn/chunks/{createCloudRuntime-COUxbPvd.js.map → createCloudRuntime-DsaUaWvr.js.map} +1 -1
  114. package/dist/cdn/chunks/{de-D4dweQw8.js → de-BRNLKcDl.js} +15 -1
  115. package/dist/cdn/chunks/de-BRNLKcDl.js.map +1 -0
  116. package/dist/cdn/chunks/{editor-modal-zxvWz8R6.js → editor-modal-BdI0iA5r.js} +89 -88
  117. package/dist/cdn/chunks/{editor-modal-zxvWz8R6.js.map → editor-modal-BdI0iA5r.js.map} +1 -1
  118. package/dist/cdn/chunks/en-Cs-nw16K.js +2 -0
  119. package/dist/{en-VE7R7NyL.js → cdn/chunks/en-JJjqHMjy.js} +16 -0
  120. package/dist/cdn/chunks/en-JJjqHMjy.js.map +1 -0
  121. package/dist/cdn/chunks/{es-B9OhP8H3.js → es-BIh8BxV9.js} +15 -1
  122. package/dist/cdn/chunks/es-BIh8BxV9.js.map +1 -0
  123. package/dist/cdn/chunks/{extensions-CafoGF65.js → extensions-DK_9-6Bd.js} +4 -4
  124. package/dist/cdn/chunks/{extensions-CafoGF65.js.map → extensions-DK_9-6Bd.js.map} +1 -1
  125. package/dist/{fr-wrXhIi00.js → cdn/chunks/fr-C5VUZogP.js} +16 -0
  126. package/dist/cdn/chunks/fr-C5VUZogP.js.map +1 -0
  127. package/dist/cdn/chunks/{icons-BKkJ-5xF.js → icons-Bad3WZ3G.js} +49 -8
  128. package/dist/cdn/chunks/icons-Bad3WZ3G.js.map +1 -0
  129. package/dist/cdn/chunks/ja-DhlWUfke.js +94 -0
  130. package/dist/cdn/chunks/ja-DhlWUfke.js.map +1 -0
  131. package/dist/cdn/chunks/ja-x5JYxaCW.js +639 -0
  132. package/dist/cdn/chunks/ja-x5JYxaCW.js.map +1 -0
  133. package/dist/cdn/chunks/{nl-DeFatKJe.js → nl-UXxFyXV6.js} +15 -1
  134. package/dist/cdn/chunks/{nl-DeFatKJe.js.map → nl-UXxFyXV6.js.map} +1 -1
  135. package/dist/cdn/chunks/{preRenderCustomBlocks-Dpj-_cOj.js → preRenderCustomBlocks-h4ZFBKbD.js} +2 -2
  136. package/dist/cdn/chunks/{preRenderCustomBlocks-Dpj-_cOj.js.map → preRenderCustomBlocks-h4ZFBKbD.js.map} +1 -1
  137. package/dist/cdn/chunks/{pt-BR-Bh1J8ey6.js → pt-BR-DHm3SP6W.js} +15 -1
  138. package/dist/cdn/chunks/pt-BR-DHm3SP6W.js.map +1 -0
  139. package/dist/cdn/chunks/{socialIcons-BvYNMn1G.js → socialIcons-ZOCwCCyn.js} +3 -3
  140. package/dist/cdn/chunks/{socialIcons-BvYNMn1G.js.map → socialIcons-ZOCwCCyn.js.map} +1 -1
  141. package/dist/cdn/chunks/{src-DveVYoWS.js → src-BR3I3gOW.js} +265 -224
  142. package/dist/cdn/chunks/src-BR3I3gOW.js.map +1 -0
  143. package/dist/cdn/chunks/{src-CbGCES0u.js → src-BxoLKnkl.js} +178 -165
  144. package/dist/cdn/chunks/src-BxoLKnkl.js.map +1 -0
  145. package/dist/cdn/chunks/{src-Cnc5E71L.js → src-fZSLjhjy.js} +12 -12
  146. package/dist/cdn/chunks/{src-Cnc5E71L.js.map → src-fZSLjhjy.js.map} +1 -1
  147. package/dist/cdn/chunks/{useEditorCore-CQraU2s_.js → useEditorCore-yd40TFKy.js} +467 -446
  148. package/dist/cdn/chunks/useEditorCore-yd40TFKy.js.map +1 -0
  149. package/dist/cdn/chunks/{useLogicTag-DF7-l66G.js → useLogicTag-J_i_hvZg.js} +2 -2
  150. package/dist/cdn/chunks/{useLogicTag-DF7-l66G.js.map → useLogicTag-J_i_hvZg.js.map} +1 -1
  151. package/dist/cdn/chunks/{useMergeTag-DbIHw4NG.js → useMergeTag-C5MyHYxJ.js} +2 -2
  152. package/dist/cdn/chunks/{useMergeTag-DbIHw4NG.js.map → useMergeTag-C5MyHYxJ.js.map} +1 -1
  153. package/dist/cdn/chunks/{usePopoverPosition-BJRvAb-h.js → usePopoverPosition-DGXjXKjM.js} +25 -12
  154. package/dist/cdn/chunks/usePopoverPosition-DGXjXKjM.js.map +1 -0
  155. package/dist/cdn/editor.css +1 -1
  156. package/dist/cdn/editor.js +64 -64
  157. package/dist/{cloud-DsqqUfzh.js → cloud-AO_X8T9g.js} +1 -1
  158. package/dist/{createCloudRuntime-iLflkYzP.js → createCloudRuntime-D641nhri.js} +2 -2
  159. package/dist/{de-D4dweQw8.js → de-BRNLKcDl.js} +14 -0
  160. package/dist/{dist-DbUZvK04.js → dist-iLUVPysa.js} +263 -222
  161. package/dist/{editor-modal-Czq1I8oC.js → editor-modal-qzmEVcIk.js} +3 -2
  162. package/dist/en-1tgLzB8q.js +2 -0
  163. package/dist/{cdn/chunks/en-VE7R7NyL.js → en-JJjqHMjy.js} +14 -2
  164. package/dist/{es-B9OhP8H3.js → es-BIh8BxV9.js} +14 -0
  165. package/dist/{extensions-DDhjuVKy.js → extensions-DoT2-_pz.js} +11 -11
  166. package/dist/{cdn/chunks/fr-wrXhIi00.js → fr-C5VUZogP.js} +14 -2
  167. package/dist/ja-DhlWUfke.js +92 -0
  168. package/dist/ja-x5JYxaCW.js +637 -0
  169. package/dist/{nl-DeFatKJe.js → nl-UXxFyXV6.js} +14 -0
  170. package/dist/{preRenderCustomBlocks-BBSqQgke.js → preRenderCustomBlocks-CTstI3Q-.js} +4 -4
  171. package/dist/{pt-BR-Bh1J8ey6.js → pt-BR-DHm3SP6W.js} +14 -0
  172. package/dist/{socialIcons-O7PZCW2P.js → socialIcons-CACVa6m_.js} +46 -46
  173. package/dist/style.css +1 -1
  174. package/dist/templatical-editor.js +109 -109
  175. package/dist/{useEditorCore-Dt_VWNqX.js → useEditorCore-LyNoGs0m.js} +902 -881
  176. package/dist/{useLogicTag-D9pvgxQR.js → useLogicTag-BaH8gey0.js} +1 -1
  177. package/dist/{useMergeTag-BaVFPdlq.js → useMergeTag-Cyad1yBE.js} +1 -1
  178. package/dist/{usePopoverPosition-DH7z3Ghm.js → usePopoverPosition-BYmd-lhR.js} +24 -11
  179. package/package.json +8 -8
  180. package/dist/cdn/chunks/LogicTagInsertButton-CHc1yZ9v.js.map +0 -1
  181. package/dist/cdn/chunks/Toolbar-BsiHW9gY.js.map +0 -1
  182. package/dist/cdn/chunks/blockTypeIcons-raBjStuv.js +0 -21
  183. package/dist/cdn/chunks/ca-Ckgw9yd0.js.map +0 -1
  184. package/dist/cdn/chunks/de-D4dweQw8.js.map +0 -1
  185. package/dist/cdn/chunks/en-BcQ9ovQu.js +0 -2
  186. package/dist/cdn/chunks/en-VE7R7NyL.js.map +0 -1
  187. package/dist/cdn/chunks/es-B9OhP8H3.js.map +0 -1
  188. package/dist/cdn/chunks/fr-wrXhIi00.js.map +0 -1
  189. package/dist/cdn/chunks/icons-BKkJ-5xF.js.map +0 -1
  190. package/dist/cdn/chunks/pt-BR-Bh1J8ey6.js.map +0 -1
  191. package/dist/cdn/chunks/src-CbGCES0u.js.map +0 -1
  192. package/dist/cdn/chunks/src-DveVYoWS.js.map +0 -1
  193. package/dist/cdn/chunks/useEditorCore-CQraU2s_.js.map +0 -1
  194. package/dist/cdn/chunks/usePopoverPosition-BJRvAb-h.js.map +0 -1
  195. package/dist/en-DQqmtndQ.js +0 -2
@@ -1,15 +1,56 @@
1
1
  //#region ../types/src/blocks.ts
2
- var e = {
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 = i.map(typeof e == "number" ? () => a(e) : (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 = {
3
44
  1: 36,
4
45
  2: 28,
5
46
  3: 22,
6
47
  4: 18
7
- }, t = {
48
+ }, c = {
8
49
  paragraphGap: 8,
9
50
  listMarginY: 8,
10
51
  listPaddingLeft: 24,
11
52
  listItemMarginY: 4
12
- }, n = {
53
+ }, l = {
13
54
  facebook: {
14
55
  color: "#1877F2",
15
56
  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"
@@ -81,43 +122,43 @@ var e = {
81
122
  };
82
123
  //#endregion
83
124
  //#region ../types/src/guards.ts
84
- function r(e) {
125
+ function u(e) {
85
126
  return e.type === "section";
86
127
  }
87
- function i(e) {
128
+ function d(e) {
88
129
  return e.type === "title";
89
130
  }
90
- function a(e) {
131
+ function ee(e) {
91
132
  return e.type === "paragraph";
92
133
  }
93
- function o(e) {
134
+ function te(e) {
94
135
  return e.type === "image";
95
136
  }
96
- function s(e) {
137
+ function ne(e) {
97
138
  return e.type === "button";
98
139
  }
99
- function c(e) {
140
+ function re(e) {
100
141
  return e.type === "divider";
101
142
  }
102
- function l(e) {
143
+ function ie(e) {
103
144
  return e.type === "video";
104
145
  }
105
- function u(e) {
146
+ function ae(e) {
106
147
  return e.type === "social";
107
148
  }
108
- function d(e) {
149
+ function oe(e) {
109
150
  return e.type === "spacer";
110
151
  }
111
- function ee(e) {
152
+ function se(e) {
112
153
  return e.type === "html";
113
154
  }
114
- function te(e) {
155
+ function ce(e) {
115
156
  return e.type === "menu";
116
157
  }
117
- function ne(e) {
158
+ function le(e) {
118
159
  return e.type === "table";
119
160
  }
120
- function re(e) {
161
+ function ue(e) {
121
162
  return e.type === "custom";
122
163
  }
123
164
  function f(e) {
@@ -128,16 +169,16 @@ function p(e) {
128
169
  }
129
170
  //#endregion
130
171
  //#region ../types/src/defaults.ts
131
- var m = {
172
+ var de = {
132
173
  content: "<p>Enter your title</p>",
133
174
  level: 2,
134
175
  textAlign: "left"
135
- }, h = { content: "<p>Enter your text here</p>" }, g = {
176
+ }, fe = { content: "<p>Enter your text here</p>" }, pe = {
136
177
  src: "",
137
178
  alt: "",
138
179
  width: "full",
139
180
  align: "center"
140
- }, _ = {
181
+ }, me = {
141
182
  text: "Click Here",
142
183
  url: "",
143
184
  backgroundColor: "#333333",
@@ -151,36 +192,36 @@ var m = {
151
192
  left: 24
152
193
  },
153
194
  align: "center"
154
- }, ie = {
195
+ }, m = {
155
196
  lineStyle: "solid",
156
197
  color: "#e0e0e0",
157
198
  thickness: 1,
158
199
  width: "full"
159
- }, ae = { columns: "1" }, oe = {
200
+ }, h = { columns: "1" }, g = {
160
201
  url: "",
161
202
  thumbnailUrl: "",
162
203
  alt: "Video",
163
204
  width: "full",
164
205
  align: "center"
165
- }, se = {
206
+ }, _ = {
166
207
  iconStyle: "solid",
167
208
  iconSize: "medium",
168
209
  spacing: 10,
169
210
  align: "center"
170
- }, ce = { height: 24 }, le = { content: "" }, ue = {
211
+ }, v = { height: 24 }, y = { content: "" }, b = {
171
212
  fontSize: 15,
172
213
  textAlign: "center",
173
214
  separator: "|",
174
215
  separatorColor: "#e0e0e0",
175
216
  spacing: 10
176
- }, v = {
217
+ }, x = {
177
218
  hasHeaderRow: !0,
178
219
  borderColor: "#e0e0e0",
179
220
  borderWidth: 1,
180
221
  cellPadding: 8,
181
222
  fontSize: 15,
182
223
  textAlign: "left"
183
- }, y = {
224
+ }, S = {
184
225
  targetDate: "",
185
226
  timezone: "UTC",
186
227
  showDays: !0,
@@ -200,21 +241,21 @@ var m = {
200
241
  expiredMessage: "This offer has expired",
201
242
  expiredImageUrl: "",
202
243
  hideOnExpiry: !1
203
- }, de = {
204
- title: m,
205
- paragraph: h,
206
- image: g,
207
- button: _,
208
- divider: ie,
209
- section: ae,
210
- video: oe,
211
- social: se,
212
- spacer: ce,
213
- html: le,
214
- menu: ue,
215
- table: v,
216
- countdown: y
217
- }, b = {
244
+ }, he = {
245
+ title: de,
246
+ paragraph: fe,
247
+ image: pe,
248
+ button: me,
249
+ divider: m,
250
+ section: h,
251
+ video: g,
252
+ social: _,
253
+ spacer: v,
254
+ html: y,
255
+ menu: b,
256
+ table: x,
257
+ countdown: S
258
+ }, C = {
218
259
  width: 600,
219
260
  backgroundColor: "#ffffff",
220
261
  textColor: "#1a1a1a",
@@ -222,24 +263,24 @@ var m = {
222
263
  fontFamily: "Arial",
223
264
  locale: "en"
224
265
  };
225
- function x(e) {
266
+ function w(e) {
226
267
  return typeof e == "object" && !!e && !Array.isArray(e) && Object.getPrototypeOf(e) === Object.prototype;
227
268
  }
228
- function S(e, t) {
269
+ function T(e, t) {
229
270
  let n = { ...e };
230
271
  for (let r of Object.keys(t)) {
231
272
  let i = e[r], a = t[r];
232
- a !== void 0 && (n[r] = x(i) && x(a) ? S(i, a) : a);
273
+ a !== void 0 && (n[r] = w(i) && w(a) ? T(i, a) : a);
233
274
  }
234
275
  return n;
235
276
  }
236
277
  //#endregion
237
278
  //#region ../types/src/template.ts
238
- function fe(e = "Arial", t) {
279
+ function ge(e = "Arial", t) {
239
280
  return {
240
281
  blocks: [],
241
282
  settings: {
242
- ...b,
283
+ ...C,
243
284
  fontFamily: e,
244
285
  ...t
245
286
  }
@@ -247,7 +288,7 @@ function fe(e = "Arial", t) {
247
288
  }
248
289
  //#endregion
249
290
  //#region ../types/src/direction.ts
250
- var pe = [
291
+ var _e = [
251
292
  "ar",
252
293
  "he",
253
294
  "iw",
@@ -261,22 +302,22 @@ var pe = [
261
302
  "ckb",
262
303
  "ks"
263
304
  ];
264
- function me(e) {
305
+ function ve(e) {
265
306
  let t = e?.trim().replace(/_/g, "-").split("-")[0]?.toLowerCase();
266
- return !!t && pe.includes(t);
307
+ return !!t && _e.includes(t);
267
308
  }
268
- function he(e) {
269
- return e.direction === "ltr" || e.direction === "rtl" ? e.direction : me(e.locale) ? "rtl" : "ltr";
309
+ function ye(e) {
310
+ return e.direction === "ltr" || e.direction === "rtl" ? e.direction : ve(e.locale) ? "rtl" : "ltr";
270
311
  }
271
312
  //#endregion
272
313
  //#region ../types/src/factory.ts
273
- function C(e, t) {
274
- return !t || Object.keys(t).length === 0 ? e : S(e, t);
314
+ function E(e, t) {
315
+ return !t || Object.keys(t).length === 0 ? e : T(e, t);
275
316
  }
276
- function w() {
317
+ function D() {
277
318
  return crypto.randomUUID();
278
319
  }
279
- function ge(e = 0) {
320
+ function be(e = 0) {
280
321
  return {
281
322
  top: e,
282
323
  right: e,
@@ -284,135 +325,135 @@ function ge(e = 0) {
284
325
  left: e
285
326
  };
286
327
  }
287
- function T(e = 10) {
288
- return { padding: ge(e) };
328
+ function O(e = 10) {
329
+ return { padding: be(e) };
289
330
  }
290
- function E(e = {}) {
291
- return C({
292
- id: w(),
331
+ function k(e = {}) {
332
+ return E({
333
+ id: D(),
293
334
  type: "title",
294
- ...m,
295
- styles: T()
335
+ ...de,
336
+ styles: O()
296
337
  }, e);
297
338
  }
298
- function D(e = {}) {
299
- return C({
300
- id: w(),
339
+ function A(e = {}) {
340
+ return E({
341
+ id: D(),
301
342
  type: "paragraph",
302
- ...h,
303
- styles: T()
343
+ ...fe,
344
+ styles: O()
304
345
  }, e);
305
346
  }
306
- function O(e = {}) {
307
- return C({
308
- id: w(),
347
+ function j(e = {}) {
348
+ return E({
349
+ id: D(),
309
350
  type: "image",
310
- ...g,
311
- styles: T()
351
+ ...pe,
352
+ styles: O()
312
353
  }, e);
313
354
  }
314
- function k(e = {}) {
315
- return C({
316
- id: w(),
355
+ function M(e = {}) {
356
+ return E({
357
+ id: D(),
317
358
  type: "button",
318
- ..._,
319
- styles: T()
359
+ ...me,
360
+ styles: O()
320
361
  }, e);
321
362
  }
322
- function A(e = {}) {
323
- return C({
324
- id: w(),
363
+ function N(e = {}) {
364
+ return E({
365
+ id: D(),
325
366
  type: "divider",
326
- ...ie,
327
- styles: T(20)
367
+ ...m,
368
+ styles: O(20)
328
369
  }, e);
329
370
  }
330
- function j(e = {}) {
331
- return C({
332
- id: w(),
371
+ function P(e = {}) {
372
+ return E({
373
+ id: D(),
333
374
  type: "section",
334
- ...ae,
375
+ ...h,
335
376
  children: [[]],
336
- styles: T(20)
377
+ styles: O(20)
337
378
  }, e);
338
379
  }
339
- function M(e = {}) {
340
- return C({
341
- id: w(),
380
+ function F(e = {}) {
381
+ return E({
382
+ id: D(),
342
383
  type: "video",
343
- ...oe,
344
- styles: T()
384
+ ...g,
385
+ styles: O()
345
386
  }, e);
346
387
  }
347
- function N(e = {}) {
348
- return C({
349
- id: w(),
388
+ function I(e = {}) {
389
+ return E({
390
+ id: D(),
350
391
  type: "social",
351
392
  icons: [],
352
- ...se,
353
- styles: T()
393
+ ..._,
394
+ styles: O()
354
395
  }, e);
355
396
  }
356
- function P(e = {}) {
357
- return C({
358
- id: w(),
397
+ function L(e = {}) {
398
+ return E({
399
+ id: D(),
359
400
  type: "spacer",
360
- ...ce,
361
- styles: T(0)
401
+ ...v,
402
+ styles: O(0)
362
403
  }, e);
363
404
  }
364
- function F(e = {}) {
365
- return C({
366
- id: w(),
405
+ function xe(e = {}) {
406
+ return E({
407
+ id: D(),
367
408
  type: "html",
368
- ...le,
369
- styles: T()
409
+ ...y,
410
+ styles: O()
370
411
  }, e);
371
412
  }
372
- function I(e = {}) {
373
- return C({
374
- id: w(),
413
+ function R(e = {}) {
414
+ return E({
415
+ id: D(),
375
416
  type: "menu",
376
417
  items: [],
377
- ...ue,
378
- styles: T()
418
+ ...b,
419
+ styles: O()
379
420
  }, e);
380
421
  }
381
- function _e(e, t) {
422
+ function Se(e, t) {
382
423
  return Array.from({ length: t }, () => ({
383
- id: w(),
424
+ id: D(),
384
425
  cells: Array.from({ length: e }, () => ({
385
- id: w(),
426
+ id: D(),
386
427
  content: ""
387
428
  }))
388
429
  }));
389
430
  }
390
- function L(e = {}) {
391
- return C({
392
- id: w(),
431
+ function z(e = {}) {
432
+ return E({
433
+ id: D(),
393
434
  type: "table",
394
- rows: _e(3, 3),
395
- ...v,
396
- styles: T()
435
+ rows: Se(3, 3),
436
+ ...x,
437
+ styles: O()
397
438
  }, e);
398
439
  }
399
- function R(e = {}) {
400
- return C({
401
- id: w(),
440
+ function B(e = {}) {
441
+ return E({
442
+ id: D(),
402
443
  type: "countdown",
403
- ...y,
404
- styles: T()
444
+ ...S,
445
+ styles: O()
405
446
  }, e);
406
447
  }
407
- function ve(e) {
448
+ function Ce(e) {
408
449
  return e.type === "repeatable" ? e.default ?? [] : e.type === "boolean" ? e.default ?? !1 : e.type === "number" ? e.default ?? 0 : e.default ?? "";
409
450
  }
410
- function ye(e) {
451
+ function we(e) {
411
452
  let t = {};
412
- for (let n of e.fields) t[n.key] = ve(n);
413
- let n = C(T(), e.defaultStyles);
453
+ for (let n of e.fields) t[n.key] = Ce(n);
454
+ let n = E(O(), e.defaultStyles);
414
455
  return {
415
- id: w(),
456
+ id: D(),
416
457
  type: "custom",
417
458
  customType: e.type,
418
459
  fieldValues: t,
@@ -420,48 +461,48 @@ function ye(e) {
420
461
  ...e.dataSource ? { dataSourceFetched: !1 } : {}
421
462
  };
422
463
  }
423
- function be() {
464
+ function Te() {
424
465
  return {
425
- id: w(),
466
+ id: D(),
426
467
  type: "slot",
427
- styles: T(0)
468
+ styles: O(0)
428
469
  };
429
470
  }
430
- function xe(e = {}) {
431
- return C({
432
- id: w(),
471
+ function Ee(e = {}) {
472
+ return E({
473
+ id: D(),
433
474
  type: "wrapper",
434
475
  children: [],
435
- styles: T(0)
476
+ styles: O(0)
436
477
  }, e);
437
478
  }
438
- function Se(e, t) {
479
+ function De(e, t) {
439
480
  switch (e) {
440
- case "section": return j(t?.section);
441
- case "title": return E(t?.title);
442
- case "paragraph": return D(t?.paragraph);
443
- case "image": return O(t?.image);
444
- case "button": return k(t?.button);
445
- case "divider": return A(t?.divider);
446
- case "video": return M(t?.video);
447
- case "social": return N(t?.social);
448
- case "spacer": return P(t?.spacer);
449
- case "html": return F(t?.html);
450
- case "menu": return I(t?.menu);
451
- case "table": return L(t?.table);
452
- case "countdown": return R(t?.countdown);
481
+ case "section": return P(t?.section);
482
+ case "title": return k(t?.title);
483
+ case "paragraph": return A(t?.paragraph);
484
+ case "image": return j(t?.image);
485
+ case "button": return M(t?.button);
486
+ case "divider": return N(t?.divider);
487
+ case "video": return F(t?.video);
488
+ case "social": return I(t?.social);
489
+ case "spacer": return L(t?.spacer);
490
+ case "html": return xe(t?.html);
491
+ case "menu": return R(t?.menu);
492
+ case "table": return z(t?.table);
493
+ case "countdown": return B(t?.countdown);
453
494
  case "slot": throw Error("[Templatical] slot cannot be inserted into content. Use createSlotBlock() to build a layout.");
454
495
  case "wrapper": throw Error("[Templatical] wrapper cannot be inserted into content. Use createWrapperBlock() to build a layout.");
455
496
  default: throw Error(`Unknown block type: ${e}`);
456
497
  }
457
498
  }
458
- function z(e) {
499
+ function V(e) {
459
500
  let t = JSON.parse(JSON.stringify(e));
460
- return t.id = w(), t.type === "section" && (t.children = t.children.map((e) => e.map((e) => z(e)))), t.type === "wrapper" && (t.children = t.children.map((e) => z(e))), t;
501
+ return t.id = D(), t.type === "section" && (t.children = t.children.map((e) => e.map((e) => V(e)))), t.type === "wrapper" && (t.children = t.children.map((e) => V(e))), t;
461
502
  }
462
503
  //#endregion
463
504
  //#region ../types/src/clone.ts
464
- function B(e) {
505
+ function H(e) {
465
506
  let t = /* @__PURE__ */ new WeakSet();
466
507
  return JSON.parse(JSON.stringify(e, (e, n) => {
467
508
  if (typeof n == "object" && n) {
@@ -473,49 +514,49 @@ function B(e) {
473
514
  }
474
515
  //#endregion
475
516
  //#region ../types/src/layout.ts
476
- var V = "[Templatical] layout: must contain exactly one slot block", H = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", Ce = "[Templatical] layout: a wrapper cannot contain a wrapper", we = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", Te = "[Templatical] slot is not a valid content block", Ee = "[Templatical] wrapper is not a valid content block";
477
- function U(e, t, n = null, i = !1) {
478
- for (let a of e) if (t(a, n, i), r(a)) for (let e of a.children) U(e, t, a, !0);
479
- else p(a) && U(a.children, t, a, i);
517
+ var U = "[Templatical] layout: must contain exactly one slot block", W = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", Oe = "[Templatical] layout: a wrapper cannot contain a wrapper", ke = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", Ae = "[Templatical] slot is not a valid content block", je = "[Templatical] wrapper is not a valid content block";
518
+ function G(e, t, n = null, r = !1) {
519
+ for (let i of e) if (t(i, n, r), u(i)) for (let e of i.children) G(e, t, i, !0);
520
+ else p(i) && G(i.children, t, i, r);
480
521
  }
481
- function W(e) {
522
+ function K(e) {
482
523
  let t = 0;
483
- if (U(e.blocks, (e, n, r) => {
484
- if (f(e) && (t += 1, r)) throw Error(H);
524
+ if (G(e.blocks, (e, n, r) => {
525
+ if (f(e) && (t += 1, r)) throw Error(W);
485
526
  if (p(e)) {
486
- if (r) throw Error(H);
487
- if (e.children.some(p)) throw Error(Ce);
527
+ if (r) throw Error(W);
528
+ if (e.children.some(p)) throw Error(Oe);
488
529
  }
489
- }), t !== 1) throw Error(V);
530
+ }), t !== 1) throw Error(U);
490
531
  }
491
- function G(e) {
492
- U(e.blocks, (e) => {
493
- if (f(e)) throw Error(Te);
532
+ function q(e) {
533
+ G(e.blocks, (e) => {
534
+ if (f(e)) throw Error(Ae);
494
535
  });
495
536
  }
496
- function K(e) {
497
- U(e.blocks, (e) => {
498
- if (p(e)) throw Error(Ee);
537
+ function Me(e) {
538
+ G(e.blocks, (e) => {
539
+ if (p(e)) throw Error(je);
499
540
  });
500
541
  }
501
- function q(e) {
542
+ function Ne(e) {
502
543
  let t = !1;
503
- return U(e.blocks, (e, n) => {
544
+ return G(e.blocks, (e, n) => {
504
545
  f(e) && n !== null && p(n) && (t = !0);
505
546
  }), t;
506
547
  }
507
- function De(e) {
548
+ function Pe(e) {
508
549
  if (f(e)) return e;
509
550
  if (p(e)) {
510
- let t = z({
551
+ let t = V({
511
552
  ...e,
512
553
  children: []
513
554
  });
514
- return t.children = e.children.map(De), t;
555
+ return t.children = e.children.map(Pe), t;
515
556
  }
516
- return z(e);
557
+ return V(e);
517
558
  }
518
- function Oe(e) {
559
+ function Fe(e) {
519
560
  for (let t = 0; t < e.length; t++) {
520
561
  let n = e[t];
521
562
  if (f(n)) return {
@@ -523,35 +564,35 @@ function Oe(e) {
523
564
  index: t
524
565
  };
525
566
  if (p(n)) {
526
- let e = Oe(n.children);
567
+ let e = Fe(n.children);
527
568
  if (e) return e;
528
569
  }
529
570
  }
530
571
  return null;
531
572
  }
532
- function ke(e) {
533
- for (let t of e) if (r(t)) {
573
+ function Ie(e) {
574
+ for (let t of e) if (u(t)) {
534
575
  if (t.wrapper) return !0;
535
- for (let e of t.children) if (ke(e)) return !0;
576
+ for (let e of t.children) if (Ie(e)) return !0;
536
577
  }
537
578
  return !1;
538
579
  }
539
- function Ae(e, t) {
540
- if (W(e), G(t), K(t), q(e) && ke(t.blocks)) throw Error(we);
541
- let n = e.blocks.map(De), r = Oe(n);
542
- if (!r) throw Error(V);
543
- return r.parent.splice(r.index, 1, ...B(t.blocks)), {
580
+ function Le(e, t) {
581
+ if (K(e), q(t), Me(t), Ne(e) && Ie(t.blocks)) throw Error(ke);
582
+ let n = e.blocks.map(Pe), r = Fe(n);
583
+ if (!r) throw Error(U);
584
+ return r.parent.splice(r.index, 1, ...H(t.blocks)), {
544
585
  blocks: n,
545
586
  settings: {
546
- ...B(t.settings),
587
+ ...H(t.settings),
547
588
  backgroundColor: e.settings.backgroundColor
548
589
  }
549
590
  };
550
591
  }
551
592
  //#endregion
552
593
  //#region ../types/src/html-scan.ts
553
- var je = /* @__PURE__ */ new Set(["\"", "'"]);
554
- function Me(e, t) {
594
+ var Re = /* @__PURE__ */ new Set(["\"", "'"]);
595
+ function ze(e, t) {
555
596
  let n = null;
556
597
  for (let r = t; r < e.length; r++) {
557
598
  let t = e[r];
@@ -559,7 +600,7 @@ function Me(e, t) {
559
600
  t === n && (n = null);
560
601
  continue;
561
602
  }
562
- if (je.has(t)) {
603
+ if (Re.has(t)) {
563
604
  n = t;
564
605
  continue;
565
606
  }
@@ -567,13 +608,13 @@ function Me(e, t) {
567
608
  }
568
609
  return -1;
569
610
  }
570
- function Ne(e) {
611
+ function Be(e) {
571
612
  return e !== " " && e !== " " && e !== "\n" && e !== "\r" && e !== "\f" && e !== "=" && e !== ">" && e !== "/";
572
613
  }
573
614
  function J(e) {
574
615
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
575
616
  }
576
- var Pe = {
617
+ var Ve = {
577
618
  amp: "&",
578
619
  lt: "<",
579
620
  gt: ">",
@@ -581,22 +622,22 @@ var Pe = {
581
622
  apos: "'",
582
623
  nbsp: "\xA0"
583
624
  };
584
- function Fe(e) {
625
+ function He(e) {
585
626
  return e.includes("&") ? e.replace(/&(#[0-9]+|#[xX][0-9a-fA-F]+|[a-zA-Z][a-zA-Z0-9]*);/g, (e, t) => {
586
627
  if (t[0] === "#") {
587
628
  let n = t[1] === "x" || t[1] === "X" ? Number.parseInt(t.slice(2), 16) : Number.parseInt(t.slice(1), 10);
588
629
  return !Number.isFinite(n) || n < 1 || n > 1114111 || n >= 55296 && n <= 57343 ? e : String.fromCodePoint(n);
589
630
  }
590
- return Pe[t.toLowerCase()] ?? e;
631
+ return Ve[t.toLowerCase()] ?? e;
591
632
  }) : e;
592
633
  }
593
- function Ie(e, t) {
634
+ function Ue(e, t) {
594
635
  let n = t.toLowerCase(), r = 0;
595
636
  for (; r < e.length;) {
596
637
  for (; r < e.length && (J(e[r]) || e[r] === "/");) r++;
597
638
  if (r >= e.length) break;
598
639
  let t = r;
599
- for (; r < e.length && Ne(e[r]);) r++;
640
+ for (; r < e.length && Be(e[r]);) r++;
600
641
  let i = e.substring(t, r).toLowerCase();
601
642
  if (i === "") {
602
643
  r++;
@@ -606,16 +647,16 @@ function Ie(e, t) {
606
647
  if (e[r] !== "=") continue;
607
648
  for (r++; r < e.length && J(e[r]);) r++;
608
649
  let a = e[r];
609
- if (je.has(a)) {
650
+ if (Re.has(a)) {
610
651
  let t = r + 1, o = e.indexOf(a, t);
611
652
  if (o === -1) return null;
612
- if (i === n) return Fe(e.substring(t, o));
653
+ if (i === n) return He(e.substring(t, o));
613
654
  r = o + 1;
614
655
  continue;
615
656
  }
616
657
  let o = r;
617
658
  for (; r < e.length && !J(e[r]) && e[r] !== ">";) r++;
618
- if (i === n) return Fe(e.substring(o, r));
659
+ if (i === n) return He(e.substring(o, r));
619
660
  }
620
661
  return null;
621
662
  }
@@ -638,33 +679,33 @@ var Y = {
638
679
  value: /%%=.+?=%%/g,
639
680
  logic: /%%\[\s*(\w+).*?\]%%/g
640
681
  }
641
- }, Le = {
682
+ }, We = {
642
683
  liquid: "{{",
643
684
  handlebars: "{{",
644
685
  mailchimp: "*|",
645
686
  ampscript: "%%="
646
- }, Re = {
687
+ }, Ge = {
647
688
  liquid: "}}",
648
689
  handlebars: "}}",
649
690
  mailchimp: "|*",
650
691
  ampscript: "=%%"
651
692
  };
652
- function ze(e) {
653
- for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return Le[t];
693
+ function Ke(e) {
694
+ for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return We[t];
654
695
  return null;
655
696
  }
656
- function Be(e) {
657
- for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return Re[t];
697
+ function qe(e) {
698
+ for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return Ge[t];
658
699
  return null;
659
700
  }
660
- function Ve(e) {
701
+ function Je(e) {
661
702
  return e ? typeof e == "string" ? Y[e] ?? Y.liquid : e : Y.liquid;
662
703
  }
663
704
  function X(e) {
664
705
  let t = e.source, n = e.flags.replace("g", "");
665
706
  return RegExp(`^${t}$`, n);
666
707
  }
667
- function He(e, t) {
708
+ function Ye(e, t) {
668
709
  let n = e?.trim() || "";
669
710
  return !X(t.logic).test(n) && X(t.value).test(n);
670
711
  }
@@ -672,41 +713,41 @@ function Z(e, t) {
672
713
  let n = t.find((t) => t.value === e);
673
714
  return n ? n.label : e;
674
715
  }
675
- function Ue(e, t) {
716
+ function Xe(e, t) {
676
717
  return $(e, "data-merge-tag", (e) => Z(e, t));
677
718
  }
678
719
  function Q(e, t) {
679
720
  return t.find((t) => t.value === e)?.sample;
680
721
  }
681
- function We(e, t) {
682
- return $(e, "data-merge-tag", (e) => qe(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
722
+ function Ze(e, t) {
723
+ return $(e, "data-merge-tag", (e) => et(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
683
724
  }
684
- function Ge(e) {
725
+ function Qe(e) {
685
726
  return e.some((e) => e.sample !== void 0);
686
727
  }
687
- function Ke(e, t) {
728
+ function $e(e, t) {
688
729
  if (!e) return e;
689
730
  let n = e;
690
731
  for (let e of t) e.sample !== void 0 && (n = n.split(e.value).join(e.sample));
691
732
  return n;
692
733
  }
693
- function qe(e) {
734
+ function et(e) {
694
735
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
695
736
  }
696
- function Je(e, t) {
737
+ function tt(e, t) {
697
738
  if (!e) return !1;
698
739
  let n = new RegExp(t.value.source, t.value.flags), r = new RegExp(t.logic.source, t.logic.flags);
699
740
  return n.test(e) || r.test(e);
700
741
  }
701
- function Ye(e, t) {
742
+ function nt(e, t) {
702
743
  return X(t.logic).test(e?.trim() || "");
703
744
  }
704
- function Xe(e, t) {
745
+ function rt(e, t) {
705
746
  let n = new RegExp(t.logic.source, t.logic.flags.replace("g", "")), r = e.match(n);
706
747
  return r && r[1] ? r[1].toUpperCase() : e;
707
748
  }
708
- function Ze(e, t) {
709
- return $(e, "data-logic-merge-tag", (e) => Xe(e, t));
749
+ function it(e, t) {
750
+ return $(e, "data-logic-merge-tag", (e) => rt(e, t));
710
751
  }
711
752
  function $(e, t, n, r) {
712
753
  let i = "", a = 0;
@@ -721,7 +762,7 @@ function $(e, t, n, r) {
721
762
  i += e.substring(a, o + 5), a = o + 5;
722
763
  continue;
723
764
  }
724
- let c = Me(e, o + 5);
765
+ let c = ze(e, o + 5);
725
766
  if (c === -1) {
726
767
  i += e.substring(a);
727
768
  break;
@@ -731,7 +772,7 @@ function $(e, t, n, r) {
731
772
  i += e.substring(a);
732
773
  break;
733
774
  }
734
- let u = Ie(e.substring(o + 5, c), t);
775
+ let u = Ue(e.substring(o + 5, c), t);
735
776
  if (u === null) {
736
777
  i += e.substring(a, o + 5), a = o + 5;
737
778
  continue;
@@ -743,12 +784,12 @@ function $(e, t, n, r) {
743
784
  }
744
785
  //#endregion
745
786
  //#region ../types/src/preview-resolution.ts
746
- function Qe(e) {
787
+ function at(e) {
747
788
  return typeof e != "object" || !e ? !1 : Array.isArray(e.blocks);
748
789
  }
749
790
  //#endregion
750
791
  //#region ../types/src/config.ts
751
- var $e = class extends Error {
792
+ var ot = class extends Error {
752
793
  statusCode;
753
794
  constructor(e, t) {
754
795
  super(e), this.statusCode = t, this.name = "SdkError";
@@ -764,6 +805,6 @@ var $e = class extends Error {
764
805
  }
765
806
  };
766
807
  //#endregion
767
- export { ee as $, ye as A, L as B, q as C, Se as D, z as E, D as F, he as G, M as H, j as I, b as J, fe as K, be as L, F as M, O as N, k as O, I as P, c as Q, N as R, K as S, B as T, xe as U, E as V, w as W, s as X, S as Y, re as Z, Ke as _, Xe as a, u as at, Ae as b, Be as c, i as ct, Ye as d, n as dt, o as et, He as f, e as ft, We as g, Ve as h, Je as i, f as it, A as j, R as k, ze as l, l as lt, Ue as m, Qe as n, a as nt, Z as o, d as ot, Ze as p, t as pt, de as q, Y as r, r as rt, Q as s, ne as st, $e as t, te as tt, Ge as u, p as ut, Me as v, W as w, G as x, Ie as y, P as z };
808
+ export { se as $, we as A, z as B, Ne as C, De as D, V as E, A as F, ye as G, F as H, P as I, C as J, ge as K, Te as L, xe as M, j as N, M as O, R as P, re as Q, I as R, Me as S, H as T, Ee as U, k as V, D as W, ne as X, T as Y, ue as Z, $e as _, r as _t, rt as a, ae as at, Le as b, qe as c, d as ct, nt as d, l as dt, te as et, Ye as f, i as ft, Ze as g, n as gt, Je as h, c as ht, tt as i, f as it, N as j, B as k, Ke as l, ie as lt, Xe as m, s as mt, at as n, ee as nt, Z as o, oe as ot, it as p, e as pt, he as q, Y as r, u as rt, Q as s, le as st, ot as t, ce as tt, Qe as u, p as ut, ze as v, o as vt, K as w, q as x, Ue as y, t as yt, L as z };
768
809
 
769
- //# sourceMappingURL=src-DveVYoWS.js.map
810
+ //# sourceMappingURL=src-BR3I3gOW.js.map