@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/dist/index.js
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 = typeof e == "number" ? i.map(() => a(e)) : i.map((t) => a(e[t]));
41
+ return t.every((e) => e === 0) ? null : t.every((e) => e === t[0]) ? `${t[0]}px` : t.map((e) => `${e}px`).join(" ");
42
+ }
43
+ var s = {
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"
@@ -79,28 +120,28 @@ var e = {
79
120
  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"
80
121
  }
81
122
  };
82
- function r(e) {
123
+ function u(e) {
83
124
  return e.type === "section";
84
125
  }
85
- function i(e) {
126
+ function d(e) {
86
127
  return e.type === "custom";
87
128
  }
88
- function a(e) {
129
+ function f(e) {
89
130
  return e.type === "slot";
90
131
  }
91
- function o(e) {
132
+ function p(e) {
92
133
  return e.type === "wrapper";
93
134
  }
94
- var s = {
135
+ var m = {
95
136
  content: "<p>Enter your title</p>",
96
137
  level: 2,
97
138
  textAlign: "left"
98
- }, c = { content: "<p>Enter your text here</p>" }, l = {
139
+ }, h = { content: "<p>Enter your text here</p>" }, g = {
99
140
  src: "",
100
141
  alt: "",
101
142
  width: "full",
102
143
  align: "center"
103
- }, u = {
144
+ }, _ = {
104
145
  text: "Click Here",
105
146
  url: "",
106
147
  backgroundColor: "#333333",
@@ -114,23 +155,23 @@ var s = {
114
155
  left: 24
115
156
  },
116
157
  align: "center"
117
- }, d = {
158
+ }, v = {
118
159
  lineStyle: "solid",
119
160
  color: "#e0e0e0",
120
161
  thickness: 1,
121
162
  width: "full"
122
- }, f = { columns: "1" }, ee = {
163
+ }, y = { columns: "1" }, b = {
123
164
  url: "",
124
165
  thumbnailUrl: "",
125
166
  alt: "Video",
126
167
  width: "full",
127
168
  align: "center"
128
- }, te = {
169
+ }, x = {
129
170
  iconStyle: "solid",
130
171
  iconSize: "medium",
131
172
  spacing: 10,
132
173
  align: "center"
133
- }, ne = { height: 24 }, p = { content: "" }, m = {
174
+ }, ee = { height: 24 }, te = { content: "" }, ne = {
134
175
  fontSize: 15,
135
176
  textAlign: "center",
136
177
  separator: "|",
@@ -143,7 +184,7 @@ var s = {
143
184
  cellPadding: 8,
144
185
  fontSize: 15,
145
186
  textAlign: "left"
146
- }, h = {
187
+ }, ie = {
147
188
  targetDate: "",
148
189
  timezone: "UTC",
149
190
  showDays: !0,
@@ -163,21 +204,21 @@ var s = {
163
204
  expiredMessage: "This offer has expired",
164
205
  expiredImageUrl: "",
165
206
  hideOnExpiry: !1
166
- }, ie = {
167
- title: s,
168
- paragraph: c,
169
- image: l,
170
- button: u,
171
- divider: d,
172
- section: f,
173
- video: ee,
174
- social: te,
175
- spacer: ne,
176
- html: p,
177
- menu: m,
207
+ }, ae = {
208
+ title: m,
209
+ paragraph: h,
210
+ image: g,
211
+ button: _,
212
+ divider: v,
213
+ section: y,
214
+ video: b,
215
+ social: x,
216
+ spacer: ee,
217
+ html: te,
218
+ menu: ne,
178
219
  table: re,
179
- countdown: h
180
- }, g = {
220
+ countdown: ie
221
+ }, oe = {
181
222
  width: 600,
182
223
  backgroundColor: "#ffffff",
183
224
  textColor: "#1a1a1a",
@@ -185,28 +226,28 @@ var s = {
185
226
  fontFamily: "Arial",
186
227
  locale: "en"
187
228
  };
188
- function _(e) {
229
+ function S(e) {
189
230
  return typeof e == "object" && !!e && !Array.isArray(e) && Object.getPrototypeOf(e) === Object.prototype;
190
231
  }
191
- function v(e, t) {
232
+ function C(e, t) {
192
233
  let n = { ...e };
193
234
  for (let r of Object.keys(t)) {
194
235
  let i = e[r], a = t[r];
195
- a !== void 0 && (n[r] = _(i) && _(a) ? v(i, a) : a);
236
+ a !== void 0 && (n[r] = S(i) && S(a) ? C(i, a) : a);
196
237
  }
197
238
  return n;
198
239
  }
199
- function ae(e = "Arial", t) {
240
+ function se(e = "Arial", t) {
200
241
  return {
201
242
  blocks: [],
202
243
  settings: {
203
- ...g,
244
+ ...oe,
204
245
  fontFamily: e,
205
246
  ...t
206
247
  }
207
248
  };
208
249
  }
209
- var oe = [
250
+ var ce = [
210
251
  "ar",
211
252
  "he",
212
253
  "iw",
@@ -220,20 +261,20 @@ var oe = [
220
261
  "ckb",
221
262
  "ks"
222
263
  ];
223
- function se(e) {
264
+ function le(e) {
224
265
  let t = e?.trim().replace(/_/g, "-").split("-")[0]?.toLowerCase();
225
- return !!t && oe.includes(t);
266
+ return !!t && ce.includes(t);
226
267
  }
227
- function ce(e) {
228
- return e.direction === "ltr" || e.direction === "rtl" ? e.direction : se(e.locale) ? "rtl" : "ltr";
268
+ function ue(e) {
269
+ return e.direction === "ltr" || e.direction === "rtl" ? e.direction : le(e.locale) ? "rtl" : "ltr";
229
270
  }
230
- function y(e, t) {
231
- return !t || Object.keys(t).length === 0 ? e : v(e, t);
271
+ function w(e, t) {
272
+ return !t || Object.keys(t).length === 0 ? e : C(e, t);
232
273
  }
233
- function b() {
274
+ function T() {
234
275
  return crypto.randomUUID();
235
276
  }
236
- function le(e = 0) {
277
+ function de(e = 0) {
237
278
  return {
238
279
  top: e,
239
280
  right: e,
@@ -241,135 +282,135 @@ function le(e = 0) {
241
282
  left: e
242
283
  };
243
284
  }
244
- function x(e = 10) {
245
- return { padding: le(e) };
285
+ function E(e = 10) {
286
+ return { padding: de(e) };
246
287
  }
247
- function ue(e = {}) {
248
- return y({
249
- id: b(),
288
+ function D(e = {}) {
289
+ return w({
290
+ id: T(),
250
291
  type: "title",
251
- ...s,
252
- styles: x()
292
+ ...m,
293
+ styles: E()
253
294
  }, e);
254
295
  }
255
- function S(e = {}) {
256
- return y({
257
- id: b(),
296
+ function O(e = {}) {
297
+ return w({
298
+ id: T(),
258
299
  type: "paragraph",
259
- ...c,
260
- styles: x()
300
+ ...h,
301
+ styles: E()
261
302
  }, e);
262
303
  }
263
- function C(e = {}) {
264
- return y({
265
- id: b(),
304
+ function k(e = {}) {
305
+ return w({
306
+ id: T(),
266
307
  type: "image",
267
- ...l,
268
- styles: x()
308
+ ...g,
309
+ styles: E()
269
310
  }, e);
270
311
  }
271
- function w(e = {}) {
272
- return y({
273
- id: b(),
312
+ function A(e = {}) {
313
+ return w({
314
+ id: T(),
274
315
  type: "button",
275
- ...u,
276
- styles: x()
316
+ ..._,
317
+ styles: E()
277
318
  }, e);
278
319
  }
279
- function T(e = {}) {
280
- return y({
281
- id: b(),
320
+ function j(e = {}) {
321
+ return w({
322
+ id: T(),
282
323
  type: "divider",
283
- ...d,
284
- styles: x(20)
324
+ ...v,
325
+ styles: E(20)
285
326
  }, e);
286
327
  }
287
- function E(e = {}) {
288
- return y({
289
- id: b(),
328
+ function M(e = {}) {
329
+ return w({
330
+ id: T(),
290
331
  type: "section",
291
- ...f,
332
+ ...y,
292
333
  children: [[]],
293
- styles: x(20)
334
+ styles: E(20)
294
335
  }, e);
295
336
  }
296
- function D(e = {}) {
297
- return y({
298
- id: b(),
337
+ function N(e = {}) {
338
+ return w({
339
+ id: T(),
299
340
  type: "video",
300
- ...ee,
301
- styles: x()
341
+ ...b,
342
+ styles: E()
302
343
  }, e);
303
344
  }
304
- function O(e = {}) {
305
- return y({
306
- id: b(),
345
+ function P(e = {}) {
346
+ return w({
347
+ id: T(),
307
348
  type: "social",
308
349
  icons: [],
309
- ...te,
310
- styles: x()
350
+ ...x,
351
+ styles: E()
311
352
  }, e);
312
353
  }
313
- function k(e = {}) {
314
- return y({
315
- id: b(),
354
+ function F(e = {}) {
355
+ return w({
356
+ id: T(),
316
357
  type: "spacer",
317
- ...ne,
318
- styles: x(0)
358
+ ...ee,
359
+ styles: E(0)
319
360
  }, e);
320
361
  }
321
- function A(e = {}) {
322
- return y({
323
- id: b(),
362
+ function I(e = {}) {
363
+ return w({
364
+ id: T(),
324
365
  type: "html",
325
- ...p,
326
- styles: x()
366
+ ...te,
367
+ styles: E()
327
368
  }, e);
328
369
  }
329
- function j(e = {}) {
330
- return y({
331
- id: b(),
370
+ function L(e = {}) {
371
+ return w({
372
+ id: T(),
332
373
  type: "menu",
333
374
  items: [],
334
- ...m,
335
- styles: x()
375
+ ...ne,
376
+ styles: E()
336
377
  }, e);
337
378
  }
338
- function de(e, t) {
379
+ function fe(e, t) {
339
380
  return Array.from({ length: t }, () => ({
340
- id: b(),
381
+ id: T(),
341
382
  cells: Array.from({ length: e }, () => ({
342
- id: b(),
383
+ id: T(),
343
384
  content: ""
344
385
  }))
345
386
  }));
346
387
  }
347
- function M(e = {}) {
348
- return y({
349
- id: b(),
388
+ function R(e = {}) {
389
+ return w({
390
+ id: T(),
350
391
  type: "table",
351
- rows: de(3, 3),
392
+ rows: fe(3, 3),
352
393
  ...re,
353
- styles: x()
394
+ styles: E()
354
395
  }, e);
355
396
  }
356
- function N(e = {}) {
357
- return y({
358
- id: b(),
397
+ function z(e = {}) {
398
+ return w({
399
+ id: T(),
359
400
  type: "countdown",
360
- ...h,
361
- styles: x()
401
+ ...ie,
402
+ styles: E()
362
403
  }, e);
363
404
  }
364
- function fe(e) {
405
+ function pe(e) {
365
406
  return e.type === "repeatable" ? e.default ?? [] : e.type === "boolean" ? e.default ?? !1 : e.type === "number" ? e.default ?? 0 : e.default ?? "";
366
407
  }
367
- function pe(e) {
408
+ function me(e) {
368
409
  let t = {};
369
- for (let n of e.fields) t[n.key] = fe(n);
370
- let n = y(x(), e.defaultStyles);
410
+ for (let n of e.fields) t[n.key] = pe(n);
411
+ let n = w(E(), e.defaultStyles);
371
412
  return {
372
- id: b(),
413
+ id: T(),
373
414
  type: "custom",
374
415
  customType: e.type,
375
416
  fieldValues: t,
@@ -377,46 +418,46 @@ function pe(e) {
377
418
  ...e.dataSource ? { dataSourceFetched: !1 } : {}
378
419
  };
379
420
  }
380
- function me() {
421
+ function he() {
381
422
  return {
382
- id: b(),
423
+ id: T(),
383
424
  type: "slot",
384
- styles: x(0)
425
+ styles: E(0)
385
426
  };
386
427
  }
387
- function he(e = {}) {
388
- return y({
389
- id: b(),
428
+ function ge(e = {}) {
429
+ return w({
430
+ id: T(),
390
431
  type: "wrapper",
391
432
  children: [],
392
- styles: x(0)
433
+ styles: E(0)
393
434
  }, e);
394
435
  }
395
- function ge(e, t) {
436
+ function _e(e, t) {
396
437
  switch (e) {
397
- case "section": return E(t?.section);
398
- case "title": return ue(t?.title);
399
- case "paragraph": return S(t?.paragraph);
400
- case "image": return C(t?.image);
401
- case "button": return w(t?.button);
402
- case "divider": return T(t?.divider);
403
- case "video": return D(t?.video);
404
- case "social": return O(t?.social);
405
- case "spacer": return k(t?.spacer);
406
- case "html": return A(t?.html);
407
- case "menu": return j(t?.menu);
408
- case "table": return M(t?.table);
409
- case "countdown": return N(t?.countdown);
438
+ case "section": return M(t?.section);
439
+ case "title": return D(t?.title);
440
+ case "paragraph": return O(t?.paragraph);
441
+ case "image": return k(t?.image);
442
+ case "button": return A(t?.button);
443
+ case "divider": return j(t?.divider);
444
+ case "video": return N(t?.video);
445
+ case "social": return P(t?.social);
446
+ case "spacer": return F(t?.spacer);
447
+ case "html": return I(t?.html);
448
+ case "menu": return L(t?.menu);
449
+ case "table": return R(t?.table);
450
+ case "countdown": return z(t?.countdown);
410
451
  case "slot": throw Error("[Templatical] slot cannot be inserted into content. Use createSlotBlock() to build a layout.");
411
452
  case "wrapper": throw Error("[Templatical] wrapper cannot be inserted into content. Use createWrapperBlock() to build a layout.");
412
453
  default: throw Error(`Unknown block type: ${e}`);
413
454
  }
414
455
  }
415
- function P(e) {
456
+ function B(e) {
416
457
  let t = JSON.parse(JSON.stringify(e));
417
- return t.id = b(), t.type === "section" && (t.children = t.children.map((e) => e.map((e) => P(e)))), t.type === "wrapper" && (t.children = t.children.map((e) => P(e))), t;
458
+ return t.id = T(), t.type === "section" && (t.children = t.children.map((e) => e.map((e) => B(e)))), t.type === "wrapper" && (t.children = t.children.map((e) => B(e))), t;
418
459
  }
419
- function F(e) {
460
+ function V(e) {
420
461
  let t = /* @__PURE__ */ new WeakSet();
421
462
  return JSON.parse(JSON.stringify(e, (e, n) => {
422
463
  if (typeof n == "object" && n) {
@@ -426,83 +467,83 @@ function F(e) {
426
467
  return n;
427
468
  }));
428
469
  }
429
- var I = "[Templatical] layout: must contain exactly one slot block", L = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", _e = "[Templatical] layout: a wrapper cannot contain a wrapper", ve = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", ye = "[Templatical] slot is not a valid content block", be = "[Templatical] wrapper is not a valid content block";
430
- function R(e, t, n = null, i = !1) {
431
- for (let a of e) if (t(a, n, i), r(a)) for (let e of a.children) R(e, t, a, !0);
432
- else o(a) && R(a.children, t, a, i);
470
+ var H = "[Templatical] layout: must contain exactly one slot block", U = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", ve = "[Templatical] layout: a wrapper cannot contain a wrapper", ye = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", be = "[Templatical] slot is not a valid content block", xe = "[Templatical] wrapper is not a valid content block";
471
+ function W(e, t, n = null, r = !1) {
472
+ for (let i of e) if (t(i, n, r), u(i)) for (let e of i.children) W(e, t, i, !0);
473
+ else p(i) && W(i.children, t, i, r);
433
474
  }
434
- function z(e) {
475
+ function G(e) {
435
476
  let t = 0;
436
- if (R(e.blocks, (e, n, r) => {
437
- if (a(e) && (t += 1, r)) throw Error(L);
438
- if (o(e)) {
439
- if (r) throw Error(L);
440
- if (e.children.some(o)) throw Error(_e);
477
+ if (W(e.blocks, (e, n, r) => {
478
+ if (f(e) && (t += 1, r)) throw Error(U);
479
+ if (p(e)) {
480
+ if (r) throw Error(U);
481
+ if (e.children.some(p)) throw Error(ve);
441
482
  }
442
- }), t !== 1) throw Error(I);
483
+ }), t !== 1) throw Error(H);
443
484
  }
444
- function B(e) {
445
- R(e.blocks, (e) => {
446
- if (a(e)) throw Error(ye);
485
+ function K(e) {
486
+ W(e.blocks, (e) => {
487
+ if (f(e)) throw Error(be);
447
488
  });
448
489
  }
449
- function V(e) {
450
- R(e.blocks, (e) => {
451
- if (o(e)) throw Error(be);
490
+ function q(e) {
491
+ W(e.blocks, (e) => {
492
+ if (p(e)) throw Error(xe);
452
493
  });
453
494
  }
454
- function H(e) {
495
+ function Se(e) {
455
496
  let t = !1;
456
- return R(e.blocks, (e, n) => {
457
- a(e) && n !== null && o(n) && (t = !0);
497
+ return W(e.blocks, (e, n) => {
498
+ f(e) && n !== null && p(n) && (t = !0);
458
499
  }), t;
459
500
  }
460
- function U(e) {
461
- if (a(e)) return e;
462
- if (o(e)) {
463
- let t = P({
501
+ function Ce(e) {
502
+ if (f(e)) return e;
503
+ if (p(e)) {
504
+ let t = B({
464
505
  ...e,
465
506
  children: []
466
507
  });
467
- return t.children = e.children.map(U), t;
508
+ return t.children = e.children.map(Ce), t;
468
509
  }
469
- return P(e);
510
+ return B(e);
470
511
  }
471
- function W(e) {
512
+ function we(e) {
472
513
  for (let t = 0; t < e.length; t++) {
473
514
  let n = e[t];
474
- if (a(n)) return {
515
+ if (f(n)) return {
475
516
  parent: e,
476
517
  index: t
477
518
  };
478
- if (o(n)) {
479
- let e = W(n.children);
519
+ if (p(n)) {
520
+ let e = we(n.children);
480
521
  if (e) return e;
481
522
  }
482
523
  }
483
524
  return null;
484
525
  }
485
- function G(e) {
486
- for (let t of e) if (r(t)) {
526
+ function Te(e) {
527
+ for (let t of e) if (u(t)) {
487
528
  if (t.wrapper) return !0;
488
- for (let e of t.children) if (G(e)) return !0;
529
+ for (let e of t.children) if (Te(e)) return !0;
489
530
  }
490
531
  return !1;
491
532
  }
492
- function xe(e, t) {
493
- if (z(e), B(t), V(t), H(e) && G(t.blocks)) throw Error(ve);
494
- let n = e.blocks.map(U), r = W(n);
495
- if (!r) throw Error(I);
496
- return r.parent.splice(r.index, 1, ...F(t.blocks)), {
533
+ function Ee(e, t) {
534
+ if (G(e), K(t), q(t), Se(e) && Te(t.blocks)) throw Error(ye);
535
+ let n = e.blocks.map(Ce), r = we(n);
536
+ if (!r) throw Error(H);
537
+ return r.parent.splice(r.index, 1, ...V(t.blocks)), {
497
538
  blocks: n,
498
539
  settings: {
499
- ...F(t.settings),
540
+ ...V(t.settings),
500
541
  backgroundColor: e.settings.backgroundColor
501
542
  }
502
543
  };
503
544
  }
504
- var K = /* @__PURE__ */ new Set(["\"", "'"]);
505
- function Se(e, t) {
545
+ var De = /* @__PURE__ */ new Set(["\"", "'"]);
546
+ function Oe(e, t) {
506
547
  let n = null;
507
548
  for (let r = t; r < e.length; r++) {
508
549
  let t = e[r];
@@ -510,7 +551,7 @@ function Se(e, t) {
510
551
  t === n && (n = null);
511
552
  continue;
512
553
  }
513
- if (K.has(t)) {
554
+ if (De.has(t)) {
514
555
  n = t;
515
556
  continue;
516
557
  }
@@ -518,13 +559,13 @@ function Se(e, t) {
518
559
  }
519
560
  return -1;
520
561
  }
521
- function Ce(e) {
562
+ function ke(e) {
522
563
  return e !== " " && e !== " " && e !== "\n" && e !== "\r" && e !== "\f" && e !== "=" && e !== ">" && e !== "/";
523
564
  }
524
- function q(e) {
565
+ function J(e) {
525
566
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
526
567
  }
527
- var we = {
568
+ var Ae = {
528
569
  amp: "&",
529
570
  lt: "<",
530
571
  gt: ">",
@@ -532,41 +573,41 @@ var we = {
532
573
  apos: "'",
533
574
  nbsp: "\xA0"
534
575
  };
535
- function J(e) {
576
+ function je(e) {
536
577
  return e.includes("&") ? e.replace(/&(#[0-9]+|#[xX][0-9a-fA-F]+|[a-zA-Z][a-zA-Z0-9]*);/g, (e, t) => {
537
578
  if (t[0] === "#") {
538
579
  let n = t[1] === "x" || t[1] === "X" ? Number.parseInt(t.slice(2), 16) : Number.parseInt(t.slice(1), 10);
539
580
  return !Number.isFinite(n) || n < 1 || n > 1114111 || n >= 55296 && n <= 57343 ? e : String.fromCodePoint(n);
540
581
  }
541
- return we[t.toLowerCase()] ?? e;
582
+ return Ae[t.toLowerCase()] ?? e;
542
583
  }) : e;
543
584
  }
544
- function Te(e, t) {
585
+ function Me(e, t) {
545
586
  let n = t.toLowerCase(), r = 0;
546
587
  for (; r < e.length;) {
547
- for (; r < e.length && (q(e[r]) || e[r] === "/");) r++;
588
+ for (; r < e.length && (J(e[r]) || e[r] === "/");) r++;
548
589
  if (r >= e.length) break;
549
590
  let t = r;
550
- for (; r < e.length && Ce(e[r]);) r++;
591
+ for (; r < e.length && ke(e[r]);) r++;
551
592
  let i = e.substring(t, r).toLowerCase();
552
593
  if (i === "") {
553
594
  r++;
554
595
  continue;
555
596
  }
556
- for (; r < e.length && q(e[r]);) r++;
597
+ for (; r < e.length && J(e[r]);) r++;
557
598
  if (e[r] !== "=") continue;
558
- for (r++; r < e.length && q(e[r]);) r++;
599
+ for (r++; r < e.length && J(e[r]);) r++;
559
600
  let a = e[r];
560
- if (K.has(a)) {
601
+ if (De.has(a)) {
561
602
  let t = r + 1, o = e.indexOf(a, t);
562
603
  if (o === -1) return null;
563
- if (i === n) return J(e.substring(t, o));
604
+ if (i === n) return je(e.substring(t, o));
564
605
  r = o + 1;
565
606
  continue;
566
607
  }
567
608
  let o = r;
568
- for (; r < e.length && !q(e[r]) && e[r] !== ">";) r++;
569
- if (i === n) return J(e.substring(o, r));
609
+ for (; r < e.length && !J(e[r]) && e[r] !== ">";) r++;
610
+ if (i === n) return je(e.substring(o, r));
570
611
  }
571
612
  return null;
572
613
  }
@@ -587,33 +628,33 @@ var Y = {
587
628
  value: /%%=.+?=%%/g,
588
629
  logic: /%%\[\s*(\w+).*?\]%%/g
589
630
  }
590
- }, Ee = {
631
+ }, Ne = {
591
632
  liquid: "{{",
592
633
  handlebars: "{{",
593
634
  mailchimp: "*|",
594
635
  ampscript: "%%="
595
- }, De = {
636
+ }, Pe = {
596
637
  liquid: "}}",
597
638
  handlebars: "}}",
598
639
  mailchimp: "|*",
599
640
  ampscript: "=%%"
600
641
  };
601
- function Oe(e) {
602
- for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return Ee[t];
642
+ function Fe(e) {
643
+ for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return Ne[t];
603
644
  return null;
604
645
  }
605
- function ke(e) {
606
- for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return De[t];
646
+ function Ie(e) {
647
+ for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return Pe[t];
607
648
  return null;
608
649
  }
609
- function Ae(e) {
650
+ function Le(e) {
610
651
  return e ? typeof e == "string" ? Y[e] ?? Y.liquid : e : Y.liquid;
611
652
  }
612
653
  function X(e) {
613
654
  let t = e.source, n = e.flags.replace("g", "");
614
655
  return RegExp(`^${t}$`, n);
615
656
  }
616
- function je(e, t) {
657
+ function Re(e, t) {
617
658
  let n = e?.trim() || "";
618
659
  return !X(t.logic).test(n) && X(t.value).test(n);
619
660
  }
@@ -621,41 +662,41 @@ function Z(e, t) {
621
662
  let n = t.find((t) => t.value === e);
622
663
  return n ? n.label : e;
623
664
  }
624
- function Me(e, t) {
665
+ function ze(e, t) {
625
666
  return $(e, "data-merge-tag", (e) => Z(e, t));
626
667
  }
627
668
  function Q(e, t) {
628
669
  return t.find((t) => t.value === e)?.sample;
629
670
  }
630
- function Ne(e, t) {
631
- return $(e, "data-merge-tag", (e) => Ie(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
671
+ function Be(e, t) {
672
+ return $(e, "data-merge-tag", (e) => Ue(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
632
673
  }
633
- function Pe(e) {
674
+ function Ve(e) {
634
675
  return e.some((e) => e.sample !== void 0);
635
676
  }
636
- function Fe(e, t) {
677
+ function He(e, t) {
637
678
  if (!e) return e;
638
679
  let n = e;
639
680
  for (let e of t) e.sample !== void 0 && (n = n.split(e.value).join(e.sample));
640
681
  return n;
641
682
  }
642
- function Ie(e) {
683
+ function Ue(e) {
643
684
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
644
685
  }
645
- function Le(e, t) {
686
+ function We(e, t) {
646
687
  if (!e) return !1;
647
688
  let n = new RegExp(t.value.source, t.value.flags), r = new RegExp(t.logic.source, t.logic.flags);
648
689
  return n.test(e) || r.test(e);
649
690
  }
650
- function Re(e, t) {
691
+ function Ge(e, t) {
651
692
  return X(t.logic).test(e?.trim() || "");
652
693
  }
653
- function ze(e, t) {
694
+ function Ke(e, t) {
654
695
  let n = new RegExp(t.logic.source, t.logic.flags.replace("g", "")), r = e.match(n);
655
696
  return r && r[1] ? r[1].toUpperCase() : e;
656
697
  }
657
- function Be(e, t) {
658
- return $(e, "data-logic-merge-tag", (e) => ze(e, t));
698
+ function qe(e, t) {
699
+ return $(e, "data-logic-merge-tag", (e) => Ke(e, t));
659
700
  }
660
701
  function $(e, t, n, r) {
661
702
  let i = "", a = 0;
@@ -670,7 +711,7 @@ function $(e, t, n, r) {
670
711
  i += e.substring(a, o + 5), a = o + 5;
671
712
  continue;
672
713
  }
673
- let c = Se(e, o + 5);
714
+ let c = Oe(e, o + 5);
674
715
  if (c === -1) {
675
716
  i += e.substring(a);
676
717
  break;
@@ -680,7 +721,7 @@ function $(e, t, n, r) {
680
721
  i += e.substring(a);
681
722
  break;
682
723
  }
683
- let u = Te(e.substring(o + 5, c), t);
724
+ let u = Me(e.substring(o + 5, c), t);
684
725
  if (u === null) {
685
726
  i += e.substring(a, o + 5), a = o + 5;
686
727
  continue;
@@ -690,12 +731,12 @@ function $(e, t, n, r) {
690
731
  }
691
732
  return i;
692
733
  }
693
- function Ve(e) {
734
+ function Je(e) {
694
735
  if (typeof e != "object" || !e) return !1;
695
736
  let t = e;
696
737
  return Array.isArray(t.blocks);
697
738
  }
698
- var He = class extends Error {
739
+ var Ye = class extends Error {
699
740
  statusCode;
700
741
  constructor(e, t) {
701
742
  super(e), this.statusCode = t, this.name = "SdkError";
@@ -711,4 +752,4 @@ var He = class extends Error {
711
752
  }
712
753
  };
713
754
  //#endregion
714
- export { Fe as $, he as A, Re as B, E as C, M as D, k as E, Q as F, o as G, Ve as H, ke as I, Be as J, H as K, Oe as L, b as M, ze as N, ue as O, Z as P, Ne as Q, Pe as R, S, O as T, r as U, je as V, a as W, Ae as X, Me as Y, F as Z, ae as _, n as a, C as b, xe as c, P as d, z as et, Le as f, pe as g, N as h, t as i, v as j, D as k, B as l, w as m, g as n, Y as o, ge as p, ce as q, e as r, He as s, ie as t, V as u, T as v, me as w, j as x, A as y, i as z };
755
+ export { V as $, D as A, Ve as B, L as C, P as D, he as E, Ke as F, u as G, Ge as H, Z as I, Se as J, f as K, Q as L, ge as M, C as N, F as O, T as P, Le as Q, Ie as R, k as S, M as T, Re as U, d as V, Je as W, qe as X, ue as Y, ze as Z, z as _, s as a, t as at, j as b, Y as c, K as d, Be as et, q as f, A as g, _e as h, oe as i, o as it, N as j, R as k, Ye as l, We as m, e as n, n as nt, c as o, G as ot, B as p, p as q, ae as r, r as rt, l as s, i as t, He as tt, Ee as u, me as v, O as w, I as x, se as y, Fe as z };