@templatical/editor 0.39.4 → 0.40.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 (210) hide show
  1. package/dist/{AiChatSidebar-5qqrS6uy.js → AiChatSidebar-a8TPBAl2.js} +3 -3
  2. package/dist/{AiFeatureMenu-BBO_Ojlp.js → AiFeatureMenu-CbgDjLqk.js} +3 -3
  3. package/dist/{BlockIssueBadge-D5oGxOQP.js → BlockIssueBadge-D8KsGWY6.js} +2 -2
  4. package/dist/BlockPreviewCanvas-XNV83YGg.js +133 -0
  5. package/dist/{CloudHeaderExtras-Cg6uF-yQ.js → CloudHeaderExtras-C-tbLyfE.js} +2 -2
  6. package/dist/{CloudPanels-D1Gg4qrG.js → CloudPanels-DnWDrgnQ.js} +4 -4
  7. package/dist/{CollaboratorBar-Cmn0LccS.js → CollaboratorBar-DUmeCkyD.js} +2 -2
  8. package/dist/{CommentsPanel-twNhYUqZ.js → CommentsPanel-9k1q-79y.js} +1 -1
  9. package/dist/{CommentsSidebar-DDO0Qx8U.js → CommentsSidebar-Bc7nORmD.js} +2 -2
  10. package/dist/{CountdownBlock-DSvbf3qU.js → CountdownBlock-C6R-hn7D.js} +1 -1
  11. package/dist/{CountdownToolbar-nvHxu8Gu.js → CountdownToolbar-DkC-qSgq.js} +4 -4
  12. package/dist/{DesignReferenceSidebar-C8ohNhOd.js → DesignReferenceSidebar-OoiYJAKS.js} +3 -3
  13. package/dist/{IssuesPanel-Ck0EGoV5.js → IssuesPanel-Dnns3O9z.js} +3 -3
  14. package/dist/{LogicTagInsertButton-D8IwH-9Z.js → LogicTagInsertButton-BimKobaG.js} +67 -67
  15. package/dist/{MergeTagInput-QI-5KG2R.js → MergeTagInput-DqpVzhy7.js} +1 -1
  16. package/dist/{MergeTagModeToggle-D793Bj_E.js → MergeTagModeToggle-BkIiAgpQ.js} +4 -4
  17. package/dist/{ParagraphEditor-D6FRxr8Y.js → ParagraphEditor-D67Cqh-T.js} +19 -19
  18. package/dist/{RestoreVersionDialog--b0qfNaK.js → RestoreVersionDialog-BaKDuPCX.js} +2 -2
  19. package/dist/{RichTextEditorContent-BC5UTVnb.js → RichTextEditorContent-AEtfKvLz.js} +5 -5
  20. package/dist/{SaveBlockDialog-C0BdEGeL.js → SaveBlockDialog-BxkI52fN.js} +8 -8
  21. package/dist/{SavedBlocksBrowserModal-BzDgXtr4.js → SavedBlocksBrowserModal-C4_25Kvn.js} +6 -6
  22. package/dist/{SavedBlocksPanels-DN-bDZzy.js → SavedBlocksPanels-DQ0w9G1O.js} +1 -1
  23. package/dist/{SavedBlocksPickBar-pEi9Et8Q.js → SavedBlocksPickBar-CtH-sfxh.js} +2 -2
  24. package/dist/{TemplateScoringPanel-B1wcfE0w.js → TemplateScoringPanel-Cs0TGtRF.js} +3 -3
  25. package/dist/{TemplateSettings-C_5leDdF.js → TemplateSettings-BD1WNP4C.js} +7 -7
  26. package/dist/{TestEmailModal-maM8SLBV.js → TestEmailModal-DZi58FU9.js} +70 -65
  27. package/dist/{TestEmailPanel-8iAZYpCK.js → TestEmailPanel-D__9Wvgz.js} +1 -1
  28. package/dist/{TitleEditor-L26QXwna.js → TitleEditor-v5p89Djs.js} +9 -9
  29. package/dist/{ToggleSwitch-JvQ_CmI1.js → ToggleSwitch-CJfQ8u57.js} +1 -1
  30. package/dist/{Toolbar-B2kDLFhn.js → Toolbar-C7SjilzH.js} +540 -525
  31. package/dist/{TplModal-DVMS_nAn.js → TplModal-B8uLyoXE.js} +3 -3
  32. package/dist/{VersionHistoryMenu-BVQityes.js → VersionHistoryMenu-b0A8mS2_.js} +2 -2
  33. package/dist/{VersionHistoryPanels-D8f8KvKX.js → VersionHistoryPanels-DfNrRT6y.js} +1 -1
  34. package/dist/{VersionPreviewBanner-BaMSgA1O.js → VersionPreviewBanner-xB9r83r0.js} +1 -1
  35. package/dist/WrapperBlock-yGmKw0T-.js +34 -0
  36. package/dist/{blockTypeIcons-CdXugKyV.js → blockTypeIcons-B0Bq1WT1.js} +1 -1
  37. package/dist/bundle-stats.json +6 -6
  38. package/dist/{ca-Bqeygp1_.js → ca-Ckgw9yd0.js} +1 -0
  39. package/dist/cdn/chunks/{AiChatSidebar-ctfIU4i0.js → AiChatSidebar-mKImUXi6.js} +7 -7
  40. package/dist/cdn/chunks/{AiChatSidebar-ctfIU4i0.js.map → AiChatSidebar-mKImUXi6.js.map} +1 -1
  41. package/dist/cdn/chunks/{AiFeatureMenu-ByygdH_9.js → AiFeatureMenu-23HCL517.js} +4 -4
  42. package/dist/cdn/chunks/{AiFeatureMenu-ByygdH_9.js.map → AiFeatureMenu-23HCL517.js.map} +1 -1
  43. package/dist/cdn/chunks/{BlockIssueBadge-9hHpaXb9.js → BlockIssueBadge-DS1pUf5g.js} +3 -3
  44. package/dist/cdn/chunks/{BlockIssueBadge-9hHpaXb9.js.map → BlockIssueBadge-DS1pUf5g.js.map} +1 -1
  45. package/dist/cdn/chunks/BlockPreviewCanvas-DObWyQfh.js +135 -0
  46. package/dist/cdn/chunks/BlockPreviewCanvas-DObWyQfh.js.map +1 -0
  47. package/dist/cdn/chunks/{CloudHeaderExtras-BxsMpvVr.js → CloudHeaderExtras-DOB_uWpt.js} +3 -3
  48. package/dist/cdn/chunks/{CloudHeaderExtras-BxsMpvVr.js.map → CloudHeaderExtras-DOB_uWpt.js.map} +1 -1
  49. package/dist/cdn/chunks/{CloudPanels-DmxmqAS_.js → CloudPanels-DcAn5QW7.js} +5 -5
  50. package/dist/cdn/chunks/{CloudPanels-DmxmqAS_.js.map → CloudPanels-DcAn5QW7.js.map} +1 -1
  51. package/dist/cdn/chunks/{CollaboratorBar-B8ttqAqX.js → CollaboratorBar-C0M8c2Vv.js} +3 -3
  52. package/dist/cdn/chunks/{CollaboratorBar-B8ttqAqX.js.map → CollaboratorBar-C0M8c2Vv.js.map} +1 -1
  53. package/dist/cdn/chunks/{CommentsPanel-C8ibhaiK.js → CommentsPanel-BtAGZfF6.js} +2 -2
  54. package/dist/cdn/chunks/{CommentsPanel-C8ibhaiK.js.map → CommentsPanel-BtAGZfF6.js.map} +1 -1
  55. package/dist/cdn/chunks/{CommentsSidebar-CybWfZ3V.js → CommentsSidebar-Ws07MXYj.js} +3 -3
  56. package/dist/cdn/chunks/{CommentsSidebar-CybWfZ3V.js.map → CommentsSidebar-Ws07MXYj.js.map} +1 -1
  57. package/dist/cdn/chunks/{CountdownBlock-DdC8Lg5F.js → CountdownBlock-sVDjKkRw.js} +2 -2
  58. package/dist/cdn/chunks/{CountdownBlock-DdC8Lg5F.js.map → CountdownBlock-sVDjKkRw.js.map} +1 -1
  59. package/dist/cdn/chunks/{CountdownToolbar-DRESXiVD.js → CountdownToolbar-Bu93WiS8.js} +5 -5
  60. package/dist/cdn/chunks/{CountdownToolbar-DRESXiVD.js.map → CountdownToolbar-Bu93WiS8.js.map} +1 -1
  61. package/dist/cdn/chunks/{DesignReferenceSidebar-CtaoY-hl.js → DesignReferenceSidebar-BlSdh5B7.js} +4 -4
  62. package/dist/cdn/chunks/{DesignReferenceSidebar-CtaoY-hl.js.map → DesignReferenceSidebar-BlSdh5B7.js.map} +1 -1
  63. package/dist/cdn/chunks/{IssuesPanel-C6RlIxoi.js → IssuesPanel-CKkv9z9g.js} +4 -4
  64. package/dist/cdn/chunks/{IssuesPanel-C6RlIxoi.js.map → IssuesPanel-CKkv9z9g.js.map} +1 -1
  65. package/dist/cdn/chunks/{LogicTagInsertButton-DpyPozop.js → LogicTagInsertButton-CHc1yZ9v.js} +165 -165
  66. package/dist/cdn/chunks/{LogicTagInsertButton-DpyPozop.js.map → LogicTagInsertButton-CHc1yZ9v.js.map} +1 -1
  67. package/dist/cdn/chunks/{MergeTagInput-ERJr7bP_.js → MergeTagInput--qTYfCWk.js} +2 -2
  68. package/dist/cdn/chunks/{MergeTagInput-ERJr7bP_.js.map → MergeTagInput--qTYfCWk.js.map} +1 -1
  69. package/dist/cdn/chunks/{MergeTagModeToggle-n3nvSNeQ.js → MergeTagModeToggle-CdWIGo3Q.js} +5 -5
  70. package/dist/cdn/chunks/{MergeTagModeToggle-n3nvSNeQ.js.map → MergeTagModeToggle-CdWIGo3Q.js.map} +1 -1
  71. package/dist/cdn/chunks/{ParagraphEditor-R2ph_UOo.js → ParagraphEditor-BilbVtrG.js} +17 -17
  72. package/dist/cdn/chunks/{ParagraphEditor-R2ph_UOo.js.map → ParagraphEditor-BilbVtrG.js.map} +1 -1
  73. package/dist/cdn/chunks/{RestoreVersionDialog-C-dwbb7T.js → RestoreVersionDialog-Q-a44Vjv.js} +3 -3
  74. package/dist/cdn/chunks/{RestoreVersionDialog-C-dwbb7T.js.map → RestoreVersionDialog-Q-a44Vjv.js.map} +1 -1
  75. package/dist/cdn/chunks/{RichTextEditorContent-Ch5zeyZ7.js → RichTextEditorContent-Fzuu9pLP.js} +6 -6
  76. package/dist/cdn/chunks/{RichTextEditorContent-Ch5zeyZ7.js.map → RichTextEditorContent-Fzuu9pLP.js.map} +1 -1
  77. package/dist/cdn/chunks/{SaveBlockDialog-C_BPjVv6.js → SaveBlockDialog-DeW_M6kh.js} +9 -9
  78. package/dist/cdn/chunks/{SaveBlockDialog-C_BPjVv6.js.map → SaveBlockDialog-DeW_M6kh.js.map} +1 -1
  79. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CrrGEfFb.js → SavedBlocksBrowserModal-BzQWibKG.js} +6 -6
  80. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CrrGEfFb.js.map → SavedBlocksBrowserModal-BzQWibKG.js.map} +1 -1
  81. package/dist/cdn/chunks/{SavedBlocksPanels-DfTaMPAr.js → SavedBlocksPanels-Ce1RePjk.js} +2 -2
  82. package/dist/cdn/chunks/{SavedBlocksPanels-DfTaMPAr.js.map → SavedBlocksPanels-Ce1RePjk.js.map} +1 -1
  83. package/dist/cdn/chunks/{SavedBlocksPickBar-DziwHYSu.js → SavedBlocksPickBar-DIDl6xfy.js} +3 -3
  84. package/dist/cdn/chunks/{SavedBlocksPickBar-DziwHYSu.js.map → SavedBlocksPickBar-DIDl6xfy.js.map} +1 -1
  85. package/dist/cdn/chunks/{TemplateScoringPanel-CR6RG6dZ.js → TemplateScoringPanel-d_Ppowsq.js} +49 -49
  86. package/dist/cdn/chunks/{TemplateScoringPanel-CR6RG6dZ.js.map → TemplateScoringPanel-d_Ppowsq.js.map} +1 -1
  87. package/dist/cdn/chunks/{TemplateSettings-DjXiiiNr.js → TemplateSettings-Dr5OJ0Gi.js} +8 -8
  88. package/dist/cdn/chunks/{TemplateSettings-DjXiiiNr.js.map → TemplateSettings-Dr5OJ0Gi.js.map} +1 -1
  89. package/dist/cdn/chunks/{TestEmailModal-DId9Og-N.js → TestEmailModal-CWTmaJuT.js} +56 -51
  90. package/dist/cdn/chunks/TestEmailModal-CWTmaJuT.js.map +1 -0
  91. package/dist/cdn/chunks/{TestEmailPanel-B8LwXmeX.js → TestEmailPanel-BdYsVHXA.js} +2 -2
  92. package/dist/cdn/chunks/{TestEmailPanel-B8LwXmeX.js.map → TestEmailPanel-BdYsVHXA.js.map} +1 -1
  93. package/dist/cdn/chunks/{TitleEditor-C7KMzX1e.js → TitleEditor-pJeeZ-PX.js} +9 -9
  94. package/dist/cdn/chunks/{TitleEditor-C7KMzX1e.js.map → TitleEditor-pJeeZ-PX.js.map} +1 -1
  95. package/dist/cdn/chunks/{ToggleSwitch-CDy8OfcB.js → ToggleSwitch-0dGCYnRY.js} +2 -2
  96. package/dist/cdn/chunks/{ToggleSwitch-CDy8OfcB.js.map → ToggleSwitch-0dGCYnRY.js.map} +1 -1
  97. package/dist/cdn/chunks/{Toolbar-DqFhWxgW.js → Toolbar-BsiHW9gY.js} +493 -478
  98. package/dist/cdn/chunks/{Toolbar-DqFhWxgW.js.map → Toolbar-BsiHW9gY.js.map} +1 -1
  99. package/dist/cdn/chunks/{TplModal-BKqDFLq3.js → TplModal-CEuGD7pt.js} +4 -4
  100. package/dist/cdn/chunks/{TplModal-BKqDFLq3.js.map → TplModal-CEuGD7pt.js.map} +1 -1
  101. package/dist/cdn/chunks/{VersionHistoryMenu-Dij1pTEb.js → VersionHistoryMenu-B3-hNu9c.js} +3 -3
  102. package/dist/cdn/chunks/{VersionHistoryMenu-Dij1pTEb.js.map → VersionHistoryMenu-B3-hNu9c.js.map} +1 -1
  103. package/dist/cdn/chunks/{VersionHistoryPanels-DcCFFDK6.js → VersionHistoryPanels-C1yck5gT.js} +2 -2
  104. package/dist/cdn/chunks/{VersionHistoryPanels-DcCFFDK6.js.map → VersionHistoryPanels-C1yck5gT.js.map} +1 -1
  105. package/dist/cdn/chunks/{VersionPreviewBanner-Df3FVlig.js → VersionPreviewBanner-PzVQSBJE.js} +2 -2
  106. package/dist/cdn/chunks/{VersionPreviewBanner-Df3FVlig.js.map → VersionPreviewBanner-PzVQSBJE.js.map} +1 -1
  107. package/dist/cdn/chunks/WrapperBlock-DGkbmj06.js +36 -0
  108. package/dist/cdn/chunks/WrapperBlock-DGkbmj06.js.map +1 -0
  109. package/dist/cdn/chunks/{ca-Bqeygp1_.js → ca-Ckgw9yd0.js} +2 -1
  110. package/dist/cdn/chunks/ca-Ckgw9yd0.js.map +1 -0
  111. package/dist/cdn/chunks/{cloud-eaXyxZ8l.js → cloud-CIT4yPp4.js} +2 -2
  112. package/dist/cdn/chunks/{cloud-eaXyxZ8l.js.map → cloud-CIT4yPp4.js.map} +1 -1
  113. package/dist/cdn/chunks/{createCloudRuntime-D5bXzcTe.js → createCloudRuntime-COUxbPvd.js} +49 -40
  114. package/dist/cdn/chunks/createCloudRuntime-COUxbPvd.js.map +1 -0
  115. package/dist/cdn/chunks/{de-CY6SlqBx.js → de-D4dweQw8.js} +2 -1
  116. package/dist/cdn/chunks/de-D4dweQw8.js.map +1 -0
  117. package/dist/{en-8V-2kDcp.js → cdn/chunks/en-VE7R7NyL.js} +3 -0
  118. package/dist/cdn/chunks/en-VE7R7NyL.js.map +1 -0
  119. package/dist/{es-Cmn1rT3l.js → cdn/chunks/es-B9OhP8H3.js} +3 -0
  120. package/dist/cdn/chunks/es-B9OhP8H3.js.map +1 -0
  121. package/dist/cdn/chunks/{extensions-Bhu8UEE5.js → extensions-CafoGF65.js} +5 -5
  122. package/dist/cdn/chunks/{extensions-Bhu8UEE5.js.map → extensions-CafoGF65.js.map} +1 -1
  123. package/dist/cdn/chunks/{fr-2yDa4zXM.js → fr-wrXhIi00.js} +2 -1
  124. package/dist/cdn/chunks/fr-wrXhIi00.js.map +1 -0
  125. package/dist/cdn/chunks/keys-DCWeHkSF.js +12 -0
  126. package/dist/cdn/chunks/keys-DCWeHkSF.js.map +1 -0
  127. package/dist/{nl-Bzk2zRI8.js → cdn/chunks/nl-DeFatKJe.js} +3 -0
  128. package/dist/cdn/chunks/nl-DeFatKJe.js.map +1 -0
  129. package/dist/cdn/chunks/preRenderCustomBlocks-Dpj-_cOj.js +21 -0
  130. package/dist/cdn/chunks/preRenderCustomBlocks-Dpj-_cOj.js.map +1 -0
  131. package/dist/cdn/chunks/{pt-BR-DqtSCTUi.js → pt-BR-Bh1J8ey6.js} +2 -1
  132. package/dist/cdn/chunks/pt-BR-Bh1J8ey6.js.map +1 -0
  133. package/dist/cdn/chunks/{socialIcons-9VrG8X3m.js → socialIcons-BvYNMn1G.js} +264 -258
  134. package/dist/cdn/chunks/socialIcons-BvYNMn1G.js.map +1 -0
  135. package/dist/cdn/chunks/{src-CqYYKcCI.js → src-CbGCES0u.js} +175 -168
  136. package/dist/cdn/chunks/src-CbGCES0u.js.map +1 -0
  137. package/dist/cdn/chunks/{src-CaNsA_WX.js → src-Cnc5E71L.js} +258 -247
  138. package/dist/cdn/chunks/src-Cnc5E71L.js.map +1 -0
  139. package/dist/cdn/chunks/{src-Dwgq7hf4.js → src-DveVYoWS.js} +281 -181
  140. package/dist/cdn/chunks/src-DveVYoWS.js.map +1 -0
  141. package/dist/cdn/chunks/{useCloudI18n-C09JcFS0.js → useCloudI18n-CrjWbpbu.js} +2 -2
  142. package/dist/cdn/chunks/{useCloudI18n-C09JcFS0.js.map → useCloudI18n-CrjWbpbu.js.map} +1 -1
  143. package/dist/cdn/chunks/{useEditorCore-CXYI14ux.js → useEditorCore-CQraU2s_.js} +421 -408
  144. package/dist/cdn/chunks/useEditorCore-CQraU2s_.js.map +1 -0
  145. package/dist/cdn/chunks/{useEditorRoot-DFx2fXJP.js → useEditorRoot-CshefZLP.js} +2 -2
  146. package/dist/cdn/chunks/{useEditorRoot-DFx2fXJP.js.map → useEditorRoot-CshefZLP.js.map} +1 -1
  147. package/dist/cdn/chunks/{useI18n-DTZ9sIcv.js → useI18n-CyO_Nmca.js} +2 -2
  148. package/dist/cdn/chunks/{useI18n-DTZ9sIcv.js.map → useI18n-CyO_Nmca.js.map} +1 -1
  149. package/dist/cdn/chunks/{useLogicTag-E2V0Xdcb.js → useLogicTag-DF7-l66G.js} +4 -4
  150. package/dist/cdn/chunks/{useLogicTag-E2V0Xdcb.js.map → useLogicTag-DF7-l66G.js.map} +1 -1
  151. package/dist/cdn/chunks/{useMergeTag-BE8oDoha.js → useMergeTag-DbIHw4NG.js} +4 -4
  152. package/dist/cdn/chunks/{useMergeTag-BE8oDoha.js.map → useMergeTag-DbIHw4NG.js.map} +1 -1
  153. package/dist/cdn/chunks/{usePopoverPosition-gB9q-ql7.js → usePopoverPosition-BJRvAb-h.js} +2 -2
  154. package/dist/cdn/chunks/{usePopoverPosition-gB9q-ql7.js.map → usePopoverPosition-BJRvAb-h.js.map} +1 -1
  155. package/dist/cdn/chunks/{useScrollToBlock-CtTXwmiU.js → useScrollToBlock-DgHZJvID.js} +2 -2
  156. package/dist/cdn/chunks/{useScrollToBlock-CtTXwmiU.js.map → useScrollToBlock-DgHZJvID.js.map} +1 -1
  157. package/dist/cdn/editor.css +1 -1
  158. package/dist/cdn/editor.js +484 -460
  159. package/dist/cdn/editor.js.map +1 -1
  160. package/dist/{cloud-C9xWZXhg.js → cloud-DsqqUfzh.js} +1 -1
  161. package/dist/{createCloudRuntime-BGd5--Bq.js → createCloudRuntime-iLflkYzP.js} +47 -38
  162. package/dist/{de-CY6SlqBx.js → de-D4dweQw8.js} +1 -0
  163. package/dist/{dist-tGkjkX-v.js → dist-DbUZvK04.js} +277 -176
  164. package/dist/{cdn/chunks/en-8V-2kDcp.js → en-VE7R7NyL.js} +1 -2
  165. package/dist/{cdn/chunks/es-Cmn1rT3l.js → es-B9OhP8H3.js} +1 -2
  166. package/dist/{extensions-DRN-elXT.js → extensions-DDhjuVKy.js} +4 -4
  167. package/dist/{fr-2yDa4zXM.js → fr-wrXhIi00.js} +1 -0
  168. package/dist/index.d.ts +65 -0
  169. package/dist/keys-CDqfZIRt.js +10 -0
  170. package/dist/{cdn/chunks/nl-Bzk2zRI8.js → nl-DeFatKJe.js} +1 -2
  171. package/dist/preRenderCustomBlocks-BBSqQgke.js +19 -0
  172. package/dist/{pt-BR-DqtSCTUi.js → pt-BR-Bh1J8ey6.js} +1 -0
  173. package/dist/{socialIcons-DkGcpEwC.js → socialIcons-O7PZCW2P.js} +245 -239
  174. package/dist/style.css +1 -1
  175. package/dist/templatical-editor.js +520 -496
  176. package/dist/{useCloudI18n-D1iedlP3.js → useCloudI18n-DpEsiLeR.js} +1 -1
  177. package/dist/{useEditorCore-BUVbQgwb.js → useEditorCore-Dt_VWNqX.js} +817 -804
  178. package/dist/{useEditorRoot-BOxn5EfP.js → useEditorRoot-CkB_5d0h.js} +1 -1
  179. package/dist/{useI18n-Ds_-druD.js → useI18n-B_CdcBwG.js} +1 -1
  180. package/dist/{useLogicTag-DoHfc08B.js → useLogicTag-D9pvgxQR.js} +3 -3
  181. package/dist/{useMergeTag-DXyum3kG.js → useMergeTag-BaVFPdlq.js} +5 -5
  182. package/dist/{usePopoverPosition-Du-Ah8E9.js → usePopoverPosition-DH7z3Ghm.js} +1 -1
  183. package/dist/{useScrollToBlock-DXQYPCnJ.js → useScrollToBlock-Dj4v3rxr.js} +1 -1
  184. package/package.json +7 -7
  185. package/dist/BlockPreviewCanvas-BMC16_QU.js +0 -131
  186. package/dist/cdn/chunks/BlockPreviewCanvas-DeS7Sa--.js +0 -133
  187. package/dist/cdn/chunks/BlockPreviewCanvas-DeS7Sa--.js.map +0 -1
  188. package/dist/cdn/chunks/TestEmailModal-DId9Og-N.js.map +0 -1
  189. package/dist/cdn/chunks/ca-Bqeygp1_.js.map +0 -1
  190. package/dist/cdn/chunks/createCloudRuntime-D5bXzcTe.js.map +0 -1
  191. package/dist/cdn/chunks/de-CY6SlqBx.js.map +0 -1
  192. package/dist/cdn/chunks/emailFrameWidth-BmFCN2dp.js +0 -8
  193. package/dist/cdn/chunks/emailFrameWidth-BmFCN2dp.js.map +0 -1
  194. package/dist/cdn/chunks/en-8V-2kDcp.js.map +0 -1
  195. package/dist/cdn/chunks/es-Cmn1rT3l.js.map +0 -1
  196. package/dist/cdn/chunks/fr-2yDa4zXM.js.map +0 -1
  197. package/dist/cdn/chunks/keys-dJbD1QPs.js +0 -12
  198. package/dist/cdn/chunks/keys-dJbD1QPs.js.map +0 -1
  199. package/dist/cdn/chunks/nl-Bzk2zRI8.js.map +0 -1
  200. package/dist/cdn/chunks/preRenderCustomBlocks-Bdpiiw4A.js +0 -23
  201. package/dist/cdn/chunks/preRenderCustomBlocks-Bdpiiw4A.js.map +0 -1
  202. package/dist/cdn/chunks/pt-BR-DqtSCTUi.js.map +0 -1
  203. package/dist/cdn/chunks/socialIcons-9VrG8X3m.js.map +0 -1
  204. package/dist/cdn/chunks/src-CaNsA_WX.js.map +0 -1
  205. package/dist/cdn/chunks/src-CqYYKcCI.js.map +0 -1
  206. package/dist/cdn/chunks/src-Dwgq7hf4.js.map +0 -1
  207. package/dist/cdn/chunks/useEditorCore-CXYI14ux.js.map +0 -1
  208. package/dist/emailFrameWidth-BmFCN2dp.js +0 -6
  209. package/dist/keys-BdoSgsz9.js +0 -10
  210. package/dist/preRenderCustomBlocks-DFXH54Zr.js +0 -21
@@ -80,18 +80,27 @@ var e = {
80
80
  }
81
81
  };
82
82
  function r(e) {
83
+ return e.type === "section";
84
+ }
85
+ function i(e) {
83
86
  return e.type === "custom";
84
87
  }
85
- var i = {
88
+ function a(e) {
89
+ return e.type === "slot";
90
+ }
91
+ function o(e) {
92
+ return e.type === "wrapper";
93
+ }
94
+ var s = {
86
95
  content: "<p>Enter your title</p>",
87
96
  level: 2,
88
97
  textAlign: "left"
89
- }, a = { content: "<p>Enter your text here</p>" }, o = {
98
+ }, c = { content: "<p>Enter your text here</p>" }, l = {
90
99
  src: "",
91
100
  alt: "",
92
101
  width: "full",
93
102
  align: "center"
94
- }, s = {
103
+ }, u = {
95
104
  text: "Click Here",
96
105
  url: "",
97
106
  backgroundColor: "#333333",
@@ -105,36 +114,36 @@ var i = {
105
114
  left: 24
106
115
  },
107
116
  align: "center"
108
- }, c = {
117
+ }, d = {
109
118
  lineStyle: "solid",
110
119
  color: "#e0e0e0",
111
120
  thickness: 1,
112
121
  width: "full"
113
- }, l = { columns: "1" }, u = {
122
+ }, f = { columns: "1" }, ee = {
114
123
  url: "",
115
124
  thumbnailUrl: "",
116
125
  alt: "Video",
117
126
  width: "full",
118
127
  align: "center"
119
- }, d = {
128
+ }, te = {
120
129
  iconStyle: "solid",
121
130
  iconSize: "medium",
122
131
  spacing: 10,
123
132
  align: "center"
124
- }, f = { height: 24 }, p = { content: "" }, m = {
133
+ }, ne = { height: 24 }, p = { content: "" }, m = {
125
134
  fontSize: 15,
126
135
  textAlign: "center",
127
136
  separator: "|",
128
137
  separatorColor: "#e0e0e0",
129
138
  spacing: 10
130
- }, h = {
139
+ }, re = {
131
140
  hasHeaderRow: !0,
132
141
  borderColor: "#e0e0e0",
133
142
  borderWidth: 1,
134
143
  cellPadding: 8,
135
144
  fontSize: 15,
136
145
  textAlign: "left"
137
- }, g = {
146
+ }, h = {
138
147
  targetDate: "",
139
148
  timezone: "UTC",
140
149
  showDays: !0,
@@ -154,21 +163,21 @@ var i = {
154
163
  expiredMessage: "This offer has expired",
155
164
  expiredImageUrl: "",
156
165
  hideOnExpiry: !1
157
- }, _ = {
158
- title: i,
159
- paragraph: a,
160
- image: o,
161
- button: s,
162
- divider: c,
163
- section: l,
164
- video: u,
165
- social: d,
166
- spacer: f,
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,
167
176
  html: p,
168
177
  menu: m,
169
- table: h,
170
- countdown: g
171
- }, v = {
178
+ table: re,
179
+ countdown: h
180
+ }, g = {
172
181
  width: 600,
173
182
  backgroundColor: "#ffffff",
174
183
  textColor: "#1a1a1a",
@@ -176,28 +185,28 @@ var i = {
176
185
  fontFamily: "Arial",
177
186
  locale: "en"
178
187
  };
179
- function y(e) {
188
+ function _(e) {
180
189
  return typeof e == "object" && !!e && !Array.isArray(e) && Object.getPrototypeOf(e) === Object.prototype;
181
190
  }
182
- function b(e, t) {
191
+ function v(e, t) {
183
192
  let n = { ...e };
184
193
  for (let r of Object.keys(t)) {
185
194
  let i = e[r], a = t[r];
186
- a !== void 0 && (n[r] = y(i) && y(a) ? b(i, a) : a);
195
+ a !== void 0 && (n[r] = _(i) && _(a) ? v(i, a) : a);
187
196
  }
188
197
  return n;
189
198
  }
190
- function x(e = "Arial", t) {
199
+ function ae(e = "Arial", t) {
191
200
  return {
192
201
  blocks: [],
193
202
  settings: {
194
- ...v,
203
+ ...g,
195
204
  fontFamily: e,
196
205
  ...t
197
206
  }
198
207
  };
199
208
  }
200
- var ee = [
209
+ var oe = [
201
210
  "ar",
202
211
  "he",
203
212
  "iw",
@@ -211,20 +220,20 @@ var ee = [
211
220
  "ckb",
212
221
  "ks"
213
222
  ];
214
- function te(e) {
223
+ function se(e) {
215
224
  let t = e?.trim().replace(/_/g, "-").split("-")[0]?.toLowerCase();
216
- return !!t && ee.includes(t);
225
+ return !!t && oe.includes(t);
217
226
  }
218
- function ne(e) {
219
- return e.direction === "ltr" || e.direction === "rtl" ? e.direction : te(e.locale) ? "rtl" : "ltr";
227
+ function ce(e) {
228
+ return e.direction === "ltr" || e.direction === "rtl" ? e.direction : se(e.locale) ? "rtl" : "ltr";
220
229
  }
221
- function S(e, t) {
222
- return !t || Object.keys(t).length === 0 ? e : b(e, t);
230
+ function y(e, t) {
231
+ return !t || Object.keys(t).length === 0 ? e : v(e, t);
223
232
  }
224
- function C() {
233
+ function b() {
225
234
  return crypto.randomUUID();
226
235
  }
227
- function w(e = 0) {
236
+ function le(e = 0) {
228
237
  return {
229
238
  top: e,
230
239
  right: e,
@@ -232,135 +241,135 @@ function w(e = 0) {
232
241
  left: e
233
242
  };
234
243
  }
235
- function T(e = 10) {
236
- return { padding: w(e) };
244
+ function x(e = 10) {
245
+ return { padding: le(e) };
237
246
  }
238
- function E(e = {}) {
239
- return S({
240
- id: C(),
247
+ function ue(e = {}) {
248
+ return y({
249
+ id: b(),
241
250
  type: "title",
242
- ...i,
243
- styles: T()
251
+ ...s,
252
+ styles: x()
244
253
  }, e);
245
254
  }
246
- function D(e = {}) {
247
- return S({
248
- id: C(),
255
+ function S(e = {}) {
256
+ return y({
257
+ id: b(),
249
258
  type: "paragraph",
250
- ...a,
251
- styles: T()
259
+ ...c,
260
+ styles: x()
252
261
  }, e);
253
262
  }
254
- function O(e = {}) {
255
- return S({
256
- id: C(),
263
+ function C(e = {}) {
264
+ return y({
265
+ id: b(),
257
266
  type: "image",
258
- ...o,
259
- styles: T()
267
+ ...l,
268
+ styles: x()
260
269
  }, e);
261
270
  }
262
- function k(e = {}) {
263
- return S({
264
- id: C(),
271
+ function w(e = {}) {
272
+ return y({
273
+ id: b(),
265
274
  type: "button",
266
- ...s,
267
- styles: T()
275
+ ...u,
276
+ styles: x()
268
277
  }, e);
269
278
  }
270
- function A(e = {}) {
271
- return S({
272
- id: C(),
279
+ function T(e = {}) {
280
+ return y({
281
+ id: b(),
273
282
  type: "divider",
274
- ...c,
275
- styles: T(20)
283
+ ...d,
284
+ styles: x(20)
276
285
  }, e);
277
286
  }
278
- function j(e = {}) {
279
- return S({
280
- id: C(),
287
+ function E(e = {}) {
288
+ return y({
289
+ id: b(),
281
290
  type: "section",
282
- ...l,
291
+ ...f,
283
292
  children: [[]],
284
- styles: T(20)
293
+ styles: x(20)
285
294
  }, e);
286
295
  }
287
- function M(e = {}) {
288
- return S({
289
- id: C(),
296
+ function D(e = {}) {
297
+ return y({
298
+ id: b(),
290
299
  type: "video",
291
- ...u,
292
- styles: T()
300
+ ...ee,
301
+ styles: x()
293
302
  }, e);
294
303
  }
295
- function N(e = {}) {
296
- return S({
297
- id: C(),
304
+ function O(e = {}) {
305
+ return y({
306
+ id: b(),
298
307
  type: "social",
299
308
  icons: [],
300
- ...d,
301
- styles: T()
309
+ ...te,
310
+ styles: x()
302
311
  }, e);
303
312
  }
304
- function P(e = {}) {
305
- return S({
306
- id: C(),
313
+ function k(e = {}) {
314
+ return y({
315
+ id: b(),
307
316
  type: "spacer",
308
- ...f,
309
- styles: T(0)
317
+ ...ne,
318
+ styles: x(0)
310
319
  }, e);
311
320
  }
312
- function F(e = {}) {
313
- return S({
314
- id: C(),
321
+ function A(e = {}) {
322
+ return y({
323
+ id: b(),
315
324
  type: "html",
316
325
  ...p,
317
- styles: T()
326
+ styles: x()
318
327
  }, e);
319
328
  }
320
- function I(e = {}) {
321
- return S({
322
- id: C(),
329
+ function j(e = {}) {
330
+ return y({
331
+ id: b(),
323
332
  type: "menu",
324
333
  items: [],
325
334
  ...m,
326
- styles: T()
335
+ styles: x()
327
336
  }, e);
328
337
  }
329
- function re(e, t) {
338
+ function de(e, t) {
330
339
  return Array.from({ length: t }, () => ({
331
- id: C(),
340
+ id: b(),
332
341
  cells: Array.from({ length: e }, () => ({
333
- id: C(),
342
+ id: b(),
334
343
  content: ""
335
344
  }))
336
345
  }));
337
346
  }
338
- function L(e = {}) {
339
- return S({
340
- id: C(),
347
+ function M(e = {}) {
348
+ return y({
349
+ id: b(),
341
350
  type: "table",
342
- rows: re(3, 3),
343
- ...h,
344
- styles: T()
351
+ rows: de(3, 3),
352
+ ...re,
353
+ styles: x()
345
354
  }, e);
346
355
  }
347
- function R(e = {}) {
348
- return S({
349
- id: C(),
356
+ function N(e = {}) {
357
+ return y({
358
+ id: b(),
350
359
  type: "countdown",
351
- ...g,
352
- styles: T()
360
+ ...h,
361
+ styles: x()
353
362
  }, e);
354
363
  }
355
- function ie(e) {
364
+ function fe(e) {
356
365
  return e.type === "repeatable" ? e.default ?? [] : e.type === "boolean" ? e.default ?? !1 : e.type === "number" ? e.default ?? 0 : e.default ?? "";
357
366
  }
358
- function ae(e) {
367
+ function pe(e) {
359
368
  let t = {};
360
- for (let n of e.fields) t[n.key] = ie(n);
361
- let n = S(T(), e.defaultStyles);
369
+ for (let n of e.fields) t[n.key] = fe(n);
370
+ let n = y(x(), e.defaultStyles);
362
371
  return {
363
- id: C(),
372
+ id: b(),
364
373
  type: "custom",
365
374
  customType: e.type,
366
375
  fieldValues: t,
@@ -368,29 +377,46 @@ function ae(e) {
368
377
  ...e.dataSource ? { dataSourceFetched: !1 } : {}
369
378
  };
370
379
  }
371
- function oe(e, t) {
380
+ function me() {
381
+ return {
382
+ id: b(),
383
+ type: "slot",
384
+ styles: x(0)
385
+ };
386
+ }
387
+ function he(e = {}) {
388
+ return y({
389
+ id: b(),
390
+ type: "wrapper",
391
+ children: [],
392
+ styles: x(0)
393
+ }, e);
394
+ }
395
+ function ge(e, t) {
372
396
  switch (e) {
373
- case "section": return j(t?.section);
374
- case "title": return E(t?.title);
375
- case "paragraph": return D(t?.paragraph);
376
- case "image": return O(t?.image);
377
- case "button": return k(t?.button);
378
- case "divider": return A(t?.divider);
379
- case "video": return M(t?.video);
380
- case "social": return N(t?.social);
381
- case "spacer": return P(t?.spacer);
382
- case "html": return F(t?.html);
383
- case "menu": return I(t?.menu);
384
- case "table": return L(t?.table);
385
- case "countdown": return R(t?.countdown);
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);
410
+ case "slot": throw Error("[Templatical] slot cannot be inserted into content. Use createSlotBlock() to build a layout.");
411
+ case "wrapper": throw Error("[Templatical] wrapper cannot be inserted into content. Use createWrapperBlock() to build a layout.");
386
412
  default: throw Error(`Unknown block type: ${e}`);
387
413
  }
388
414
  }
389
- function z(e) {
415
+ function P(e) {
390
416
  let t = JSON.parse(JSON.stringify(e));
391
- return t.id = C(), t.type === "section" && (t.children = t.children.map((e) => e.map((e) => z(e)))), t;
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;
392
418
  }
393
- function B(e) {
419
+ function F(e) {
394
420
  let t = /* @__PURE__ */ new WeakSet();
395
421
  return JSON.parse(JSON.stringify(e, (e, n) => {
396
422
  if (typeof n == "object" && n) {
@@ -400,8 +426,83 @@ function B(e) {
400
426
  return n;
401
427
  }));
402
428
  }
403
- var V = /* @__PURE__ */ new Set(["\"", "'"]);
404
- function H(e, t) {
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);
433
+ }
434
+ function z(e) {
435
+ 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);
441
+ }
442
+ }), t !== 1) throw Error(I);
443
+ }
444
+ function B(e) {
445
+ R(e.blocks, (e) => {
446
+ if (a(e)) throw Error(ye);
447
+ });
448
+ }
449
+ function V(e) {
450
+ R(e.blocks, (e) => {
451
+ if (o(e)) throw Error(be);
452
+ });
453
+ }
454
+ function H(e) {
455
+ let t = !1;
456
+ return R(e.blocks, (e, n) => {
457
+ a(e) && n !== null && o(n) && (t = !0);
458
+ }), t;
459
+ }
460
+ function U(e) {
461
+ if (a(e)) return e;
462
+ if (o(e)) {
463
+ let t = P({
464
+ ...e,
465
+ children: []
466
+ });
467
+ return t.children = e.children.map(U), t;
468
+ }
469
+ return P(e);
470
+ }
471
+ function W(e) {
472
+ for (let t = 0; t < e.length; t++) {
473
+ let n = e[t];
474
+ if (a(n)) return {
475
+ parent: e,
476
+ index: t
477
+ };
478
+ if (o(n)) {
479
+ let e = W(n.children);
480
+ if (e) return e;
481
+ }
482
+ }
483
+ return null;
484
+ }
485
+ function G(e) {
486
+ for (let t of e) if (r(t)) {
487
+ if (t.wrapper) return !0;
488
+ for (let e of t.children) if (G(e)) return !0;
489
+ }
490
+ return !1;
491
+ }
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)), {
497
+ blocks: n,
498
+ settings: {
499
+ ...F(t.settings),
500
+ backgroundColor: e.settings.backgroundColor
501
+ }
502
+ };
503
+ }
504
+ var K = /* @__PURE__ */ new Set(["\"", "'"]);
505
+ function Se(e, t) {
405
506
  let n = null;
406
507
  for (let r = t; r < e.length; r++) {
407
508
  let t = e[r];
@@ -409,7 +510,7 @@ function H(e, t) {
409
510
  t === n && (n = null);
410
511
  continue;
411
512
  }
412
- if (V.has(t)) {
513
+ if (K.has(t)) {
413
514
  n = t;
414
515
  continue;
415
516
  }
@@ -417,13 +518,13 @@ function H(e, t) {
417
518
  }
418
519
  return -1;
419
520
  }
420
- function U(e) {
521
+ function Ce(e) {
421
522
  return e !== " " && e !== " " && e !== "\n" && e !== "\r" && e !== "\f" && e !== "=" && e !== ">" && e !== "/";
422
523
  }
423
- function W(e) {
524
+ function q(e) {
424
525
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
425
526
  }
426
- var G = {
527
+ var we = {
427
528
  amp: "&",
428
529
  lt: "<",
429
530
  gt: ">",
@@ -431,45 +532,45 @@ var G = {
431
532
  apos: "'",
432
533
  nbsp: "\xA0"
433
534
  };
434
- function K(e) {
535
+ function J(e) {
435
536
  return e.includes("&") ? e.replace(/&(#[0-9]+|#[xX][0-9a-fA-F]+|[a-zA-Z][a-zA-Z0-9]*);/g, (e, t) => {
436
537
  if (t[0] === "#") {
437
538
  let n = t[1] === "x" || t[1] === "X" ? Number.parseInt(t.slice(2), 16) : Number.parseInt(t.slice(1), 10);
438
539
  return !Number.isFinite(n) || n < 1 || n > 1114111 || n >= 55296 && n <= 57343 ? e : String.fromCodePoint(n);
439
540
  }
440
- return G[t.toLowerCase()] ?? e;
541
+ return we[t.toLowerCase()] ?? e;
441
542
  }) : e;
442
543
  }
443
- function se(e, t) {
544
+ function Te(e, t) {
444
545
  let n = t.toLowerCase(), r = 0;
445
546
  for (; r < e.length;) {
446
- for (; r < e.length && (W(e[r]) || e[r] === "/");) r++;
547
+ for (; r < e.length && (q(e[r]) || e[r] === "/");) r++;
447
548
  if (r >= e.length) break;
448
549
  let t = r;
449
- for (; r < e.length && U(e[r]);) r++;
550
+ for (; r < e.length && Ce(e[r]);) r++;
450
551
  let i = e.substring(t, r).toLowerCase();
451
552
  if (i === "") {
452
553
  r++;
453
554
  continue;
454
555
  }
455
- for (; r < e.length && W(e[r]);) r++;
556
+ for (; r < e.length && q(e[r]);) r++;
456
557
  if (e[r] !== "=") continue;
457
- for (r++; r < e.length && W(e[r]);) r++;
558
+ for (r++; r < e.length && q(e[r]);) r++;
458
559
  let a = e[r];
459
- if (V.has(a)) {
560
+ if (K.has(a)) {
460
561
  let t = r + 1, o = e.indexOf(a, t);
461
562
  if (o === -1) return null;
462
- if (i === n) return K(e.substring(t, o));
563
+ if (i === n) return J(e.substring(t, o));
463
564
  r = o + 1;
464
565
  continue;
465
566
  }
466
567
  let o = r;
467
- for (; r < e.length && !W(e[r]) && e[r] !== ">";) r++;
468
- if (i === n) return K(e.substring(o, r));
568
+ for (; r < e.length && !q(e[r]) && e[r] !== ">";) r++;
569
+ if (i === n) return J(e.substring(o, r));
469
570
  }
470
571
  return null;
471
572
  }
472
- var q = {
573
+ var Y = {
473
574
  liquid: {
474
575
  value: /\{\{.+?\}\}/g,
475
576
  logic: /\{%-?\s*(\w+).*?-?%\}/g
@@ -486,75 +587,75 @@ var q = {
486
587
  value: /%%=.+?=%%/g,
487
588
  logic: /%%\[\s*(\w+).*?\]%%/g
488
589
  }
489
- }, ce = {
590
+ }, Ee = {
490
591
  liquid: "{{",
491
592
  handlebars: "{{",
492
593
  mailchimp: "*|",
493
594
  ampscript: "%%="
494
- }, le = {
595
+ }, De = {
495
596
  liquid: "}}",
496
597
  handlebars: "}}",
497
598
  mailchimp: "|*",
498
599
  ampscript: "=%%"
499
600
  };
500
- function ue(e) {
501
- for (let t of Object.keys(q)) if (q[t].value.source === e.value.source) return ce[t];
601
+ function Oe(e) {
602
+ for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return Ee[t];
502
603
  return null;
503
604
  }
504
- function de(e) {
505
- for (let t of Object.keys(q)) if (q[t].value.source === e.value.source) return le[t];
605
+ function ke(e) {
606
+ for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return De[t];
506
607
  return null;
507
608
  }
508
- function fe(e) {
509
- return e ? typeof e == "string" ? q[e] ?? q.liquid : e : q.liquid;
609
+ function Ae(e) {
610
+ return e ? typeof e == "string" ? Y[e] ?? Y.liquid : e : Y.liquid;
510
611
  }
511
- function J(e) {
612
+ function X(e) {
512
613
  let t = e.source, n = e.flags.replace("g", "");
513
614
  return RegExp(`^${t}$`, n);
514
615
  }
515
- function pe(e, t) {
616
+ function je(e, t) {
516
617
  let n = e?.trim() || "";
517
- return !J(t.logic).test(n) && J(t.value).test(n);
618
+ return !X(t.logic).test(n) && X(t.value).test(n);
518
619
  }
519
- function Y(e, t) {
620
+ function Z(e, t) {
520
621
  let n = t.find((t) => t.value === e);
521
622
  return n ? n.label : e;
522
623
  }
523
- function me(e, t) {
524
- return $(e, "data-merge-tag", (e) => Y(e, t));
624
+ function Me(e, t) {
625
+ return $(e, "data-merge-tag", (e) => Z(e, t));
525
626
  }
526
- function X(e, t) {
627
+ function Q(e, t) {
527
628
  return t.find((t) => t.value === e)?.sample;
528
629
  }
529
- function he(e, t) {
530
- return $(e, "data-merge-tag", (e) => ve(X(e, t) ?? Y(e, t)), { unwrap: (e) => X(e, t) !== void 0 });
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 });
531
632
  }
532
- function ge(e) {
633
+ function Pe(e) {
533
634
  return e.some((e) => e.sample !== void 0);
534
635
  }
535
- function _e(e, t) {
636
+ function Fe(e, t) {
536
637
  if (!e) return e;
537
638
  let n = e;
538
639
  for (let e of t) e.sample !== void 0 && (n = n.split(e.value).join(e.sample));
539
640
  return n;
540
641
  }
541
- function ve(e) {
642
+ function Ie(e) {
542
643
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
543
644
  }
544
- function Z(e, t) {
645
+ function Le(e, t) {
545
646
  if (!e) return !1;
546
647
  let n = new RegExp(t.value.source, t.value.flags), r = new RegExp(t.logic.source, t.logic.flags);
547
648
  return n.test(e) || r.test(e);
548
649
  }
549
- function ye(e, t) {
550
- return J(t.logic).test(e?.trim() || "");
650
+ function Re(e, t) {
651
+ return X(t.logic).test(e?.trim() || "");
551
652
  }
552
- function Q(e, t) {
653
+ function ze(e, t) {
553
654
  let n = new RegExp(t.logic.source, t.logic.flags.replace("g", "")), r = e.match(n);
554
655
  return r && r[1] ? r[1].toUpperCase() : e;
555
656
  }
556
- function be(e, t) {
557
- return $(e, "data-logic-merge-tag", (e) => Q(e, t));
657
+ function Be(e, t) {
658
+ return $(e, "data-logic-merge-tag", (e) => ze(e, t));
558
659
  }
559
660
  function $(e, t, n, r) {
560
661
  let i = "", a = 0;
@@ -569,7 +670,7 @@ function $(e, t, n, r) {
569
670
  i += e.substring(a, o + 5), a = o + 5;
570
671
  continue;
571
672
  }
572
- let c = H(e, o + 5);
673
+ let c = Se(e, o + 5);
573
674
  if (c === -1) {
574
675
  i += e.substring(a);
575
676
  break;
@@ -579,7 +680,7 @@ function $(e, t, n, r) {
579
680
  i += e.substring(a);
580
681
  break;
581
682
  }
582
- let u = se(e.substring(o + 5, c), t);
683
+ let u = Te(e.substring(o + 5, c), t);
583
684
  if (u === null) {
584
685
  i += e.substring(a, o + 5), a = o + 5;
585
686
  continue;
@@ -589,12 +690,12 @@ function $(e, t, n, r) {
589
690
  }
590
691
  return i;
591
692
  }
592
- function xe(e) {
693
+ function Ve(e) {
593
694
  if (typeof e != "object" || !e) return !1;
594
695
  let t = e;
595
696
  return Array.isArray(t.blocks);
596
697
  }
597
- var Se = class extends Error {
698
+ var He = class extends Error {
598
699
  statusCode;
599
700
  constructor(e, t) {
600
701
  super(e), this.statusCode = t, this.name = "SdkError";
@@ -610,4 +711,4 @@ var Se = class extends Error {
610
711
  }
611
712
  };
612
713
  //#endregion
613
- export { X as A, me as B, L as C, C as D, b as E, ye as F, B as H, pe as I, xe as L, ue as M, ge as N, Q as O, r as P, ne as R, P as S, M as T, he as U, fe as V, _e as W, O as _, n as a, j as b, z as c, k as d, R as f, F as g, A as h, t as i, de as j, Y as k, Z as l, x as m, v as n, q as o, ae as p, e as r, Se as s, _ as t, oe as u, I as v, E as w, N as x, D as y, be as z };
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 };