@templatical/editor 0.45.0 → 0.47.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 (309) hide show
  1. package/dist/{AiChatSidebar-BlFWWhBv.js → AiChatSidebar-BPOv5Ra8.js} +14 -14
  2. package/dist/{AiFeatureMenu-CvWygUmC.js → AiFeatureMenu-H_WT4YR8.js} +7 -7
  3. package/dist/{BlockIssueBadge-CZA1XvAh.js → BlockIssueBadge-AgO5abEB.js} +5 -5
  4. package/dist/BlockPreviewCanvas-CZDBSPoG.js +136 -0
  5. package/dist/{CloudHeaderExtras-BzM1QU1r.js → CloudHeaderExtras-gXsTYoGG.js} +5 -5
  6. package/dist/{CloudPanels-d36YXXyn.js → CloudPanels-H_GdbOfZ.js} +9 -9
  7. package/dist/{CollaboratorBar-rwXe_Qd2.js → CollaboratorBar-BazGNMqN.js} +4 -4
  8. package/dist/{CommentsPanel-Bn6P5crU.js → CommentsPanel-CMgsG_yh.js} +2 -2
  9. package/dist/{CommentsSidebar-B8wT932T.js → CommentsSidebar-DCh8DTP8.js} +14 -14
  10. package/dist/CountdownBlock-zx39Dyby.js +92 -0
  11. package/dist/{CountdownToolbar-lbjCc8ik.js → CountdownToolbar-DVuucA3v.js} +7 -7
  12. package/dist/{DesignReferenceSidebar-zlJQsP0X.js → DesignReferenceSidebar-DxNV4lQp.js} +12 -12
  13. package/dist/{IssuesPanel-CHx3m8SP.js → IssuesPanel-CUpW54P4.js} +8 -8
  14. package/dist/{LoadingTrack-DROqNuuD.js → LoadingTrack-6XsqodoY.js} +1 -1
  15. package/dist/{LogicTagInsertButton-BvftbkL4.js → LogicTagInsertButton-DDYKnqmj.js} +22 -22
  16. package/dist/{MediaEditModal-EY1YYcpw.js → MediaEditModal-D_we0Scr.js} +4 -4
  17. package/dist/{MediaPanels-CRVFGFZW.js → MediaPanels-L95BwWV1.js} +2 -2
  18. package/dist/{MergeTagInput-CR1kcj8X.js → MergeTagInput-DAL998tx.js} +3 -3
  19. package/dist/{MergeTagModeToggle-DssKrVYb.js → MergeTagModeToggle-CjHO26rb.js} +7 -7
  20. package/dist/{ParagraphEditor-DFizsZRc.js → ParagraphEditor-CcEN1N6n.js} +165 -150
  21. package/dist/{RestoreVersionDialog-Cp3q2mU4.js → RestoreVersionDialog-B2OH5rgs.js} +6 -6
  22. package/dist/{RichTextEditorContent-Cj3oaPMk.js → RichTextEditorContent-BGeTg-QL.js} +12 -12
  23. package/dist/{SaveBlockDialog-BR8vW_XF.js → SaveBlockDialog-CCVyU-7y.js} +13 -13
  24. package/dist/{SavedBlocksBrowserModal-DmwbmKxI.js → SavedBlocksBrowserModal-_WmSeqIh.js} +14 -14
  25. package/dist/{SavedBlocksPanels-D4XKrs-a.js → SavedBlocksPanels-DVX_ruQ7.js} +2 -2
  26. package/dist/{SavedBlocksPickBar-gfc-o5sR.js → SavedBlocksPickBar-DVJC28hP.js} +5 -5
  27. package/dist/{TemplateScoringPanel-3lHzuCl0.js → TemplateScoringPanel-U0QFiwdI.js} +16 -16
  28. package/dist/{TemplateSettings-D7aNrd0d.js → TemplateSettings-CdhTm9JQ.js} +12 -12
  29. package/dist/{TestEmailModal-DUmtcSm-.js → TestEmailModal-BqToA_ls.js} +14 -14
  30. package/dist/{TestEmailPanel-s9gISTI8.js → TestEmailPanel-Cn4Ptq0j.js} +2 -2
  31. package/dist/{TitleEditor-C-uHqtml.js → TitleEditor-CZdqeltH.js} +13 -13
  32. package/dist/{ToggleSwitch-CTwwCIVA.js → ToggleSwitch-BR8Sgzib.js} +2 -2
  33. package/dist/{Toolbar-CLpA36RO.js → Toolbar-OGakTBEg.js} +748 -629
  34. package/dist/{TplModal-D6XtxusQ.js → TplModal-CoczSDma.js} +6 -6
  35. package/dist/{VersionHistoryMenu-D7zaTMrb.js → VersionHistoryMenu-DY5z5FZr.js} +10 -10
  36. package/dist/{VersionHistoryPanels-Dvowtt7V.js → VersionHistoryPanels-DowHeDAQ.js} +2 -2
  37. package/dist/{VersionPreviewBanner-BUKb9gc6.js → VersionPreviewBanner-Bo8NxBbh.js} +4 -4
  38. package/dist/WrapperBlock-BOABSX9W.js +46 -0
  39. package/dist/{blockTypeIcons-D3aj5u_5.js → blockTypeIcons-4E1U8f99.js} +5 -5
  40. package/dist/bundle-stats.json +6 -6
  41. package/dist/{ca-C__Dzq--.js → ca-DMoGGP9L.js} +21 -0
  42. package/dist/cdn/chunks/{AiChatSidebar-SRGBP-SL.js → AiChatSidebar-B72rI0be.js} +12 -12
  43. package/dist/cdn/chunks/{AiChatSidebar-SRGBP-SL.js.map → AiChatSidebar-B72rI0be.js.map} +1 -1
  44. package/dist/cdn/chunks/{AiFeatureMenu-oZhlgsGh.js → AiFeatureMenu-BqSG9iEd.js} +6 -6
  45. package/dist/cdn/chunks/{AiFeatureMenu-oZhlgsGh.js.map → AiFeatureMenu-BqSG9iEd.js.map} +1 -1
  46. package/dist/cdn/chunks/{BlockIssueBadge-05Q3L4RV.js → BlockIssueBadge-CS7ytN-z.js} +5 -5
  47. package/dist/cdn/chunks/{BlockIssueBadge-05Q3L4RV.js.map → BlockIssueBadge-CS7ytN-z.js.map} +1 -1
  48. package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js +138 -0
  49. package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js.map +1 -0
  50. package/dist/cdn/chunks/{CloudHeaderExtras-t-_ZlHwn.js → CloudHeaderExtras-DJXLTUHc.js} +5 -5
  51. package/dist/cdn/chunks/{CloudHeaderExtras-t-_ZlHwn.js.map → CloudHeaderExtras-DJXLTUHc.js.map} +1 -1
  52. package/dist/cdn/chunks/{CloudPanels-DR2eEcpX.js → CloudPanels-D1fPLjG8.js} +8 -8
  53. package/dist/cdn/chunks/{CloudPanels-DR2eEcpX.js.map → CloudPanels-D1fPLjG8.js.map} +1 -1
  54. package/dist/cdn/chunks/{CollaboratorBar-w8_2WPE0.js → CollaboratorBar-MeRQB1eN.js} +5 -5
  55. package/dist/cdn/chunks/{CollaboratorBar-w8_2WPE0.js.map → CollaboratorBar-MeRQB1eN.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsPanel-VH_NJ5HZ.js → CommentsPanel-CmxPylNf.js} +3 -3
  57. package/dist/cdn/chunks/{CommentsPanel-VH_NJ5HZ.js.map → CommentsPanel-CmxPylNf.js.map} +1 -1
  58. package/dist/cdn/chunks/{CommentsSidebar-CYPH5rVi.js → CommentsSidebar-CrleQTbo.js} +13 -13
  59. package/dist/cdn/chunks/{CommentsSidebar-CYPH5rVi.js.map → CommentsSidebar-CrleQTbo.js.map} +1 -1
  60. package/dist/cdn/chunks/CountdownBlock-Dasj191h.js +94 -0
  61. package/dist/cdn/chunks/CountdownBlock-Dasj191h.js.map +1 -0
  62. package/dist/cdn/chunks/{CountdownToolbar-CvNuDR5Z.js → CountdownToolbar-DPIOtlN0.js} +8 -8
  63. package/dist/cdn/chunks/{CountdownToolbar-CvNuDR5Z.js.map → CountdownToolbar-DPIOtlN0.js.map} +1 -1
  64. package/dist/cdn/chunks/{DesignReferenceSidebar-CJg_5GXU.js → DesignReferenceSidebar-BgTNqgCy.js} +8 -8
  65. package/dist/cdn/chunks/{DesignReferenceSidebar-CJg_5GXU.js.map → DesignReferenceSidebar-BgTNqgCy.js.map} +1 -1
  66. package/dist/cdn/chunks/{IssuesPanel-DXqlRk19.js → IssuesPanel-BGjLcNpQ.js} +6 -6
  67. package/dist/cdn/chunks/{IssuesPanel-DXqlRk19.js.map → IssuesPanel-BGjLcNpQ.js.map} +1 -1
  68. package/dist/cdn/chunks/{LoadingTrack-Cg1HRIND.js → LoadingTrack-DbH97JR9.js} +2 -2
  69. package/dist/cdn/chunks/{LoadingTrack-Cg1HRIND.js.map → LoadingTrack-DbH97JR9.js.map} +1 -1
  70. package/dist/cdn/chunks/{LogicTagInsertButton-DnHghQHb.js → LogicTagInsertButton-BEsqPhMr.js} +11 -11
  71. package/dist/cdn/chunks/{LogicTagInsertButton-DnHghQHb.js.map → LogicTagInsertButton-BEsqPhMr.js.map} +1 -1
  72. package/dist/cdn/chunks/{MediaEditModal-CD3fVbWI.js → MediaEditModal-C1Ao0i2c.js} +4 -4
  73. package/dist/cdn/chunks/{MediaEditModal-CD3fVbWI.js.map → MediaEditModal-C1Ao0i2c.js.map} +1 -1
  74. package/dist/cdn/chunks/{MediaPanels-B2AyUUcf.js → MediaPanels-1GPYiZZ0.js} +3 -3
  75. package/dist/cdn/chunks/{MediaPanels-B2AyUUcf.js.map → MediaPanels-1GPYiZZ0.js.map} +1 -1
  76. package/dist/cdn/chunks/{MergeTagInput-heTX9P_k.js → MergeTagInput-Dy13_OLc.js} +4 -4
  77. package/dist/cdn/chunks/{MergeTagInput-heTX9P_k.js.map → MergeTagInput-Dy13_OLc.js.map} +1 -1
  78. package/dist/cdn/chunks/{MergeTagModeToggle-C9EfuZIP.js → MergeTagModeToggle-B2CPZOeF.js} +6 -6
  79. package/dist/cdn/chunks/{MergeTagModeToggle-C9EfuZIP.js.map → MergeTagModeToggle-B2CPZOeF.js.map} +1 -1
  80. package/dist/cdn/chunks/{ParagraphEditor-B5DN4Sy4.js → ParagraphEditor-BGLIw7kg.js} +91 -76
  81. package/dist/cdn/chunks/ParagraphEditor-BGLIw7kg.js.map +1 -0
  82. package/dist/cdn/chunks/{RestoreVersionDialog-DBgJ-Nui.js → RestoreVersionDialog-BhykE8En.js} +8 -8
  83. package/dist/cdn/chunks/{RestoreVersionDialog-DBgJ-Nui.js.map → RestoreVersionDialog-BhykE8En.js.map} +1 -1
  84. package/dist/cdn/chunks/{RichTextEditorContent-LOas4rfU.js → RichTextEditorContent-B-txUvPL.js} +11 -11
  85. package/dist/cdn/chunks/{RichTextEditorContent-LOas4rfU.js.map → RichTextEditorContent-B-txUvPL.js.map} +1 -1
  86. package/dist/cdn/chunks/{SaveBlockDialog-Dx-QVQCX.js → SaveBlockDialog-BHqEp7jw.js} +40 -40
  87. package/dist/cdn/chunks/{SaveBlockDialog-Dx-QVQCX.js.map → SaveBlockDialog-BHqEp7jw.js.map} +1 -1
  88. package/dist/cdn/chunks/{SavedBlocksBrowserModal-C2RQ-JCc.js → SavedBlocksBrowserModal-BhR6AI0f.js} +10 -10
  89. package/dist/cdn/chunks/{SavedBlocksBrowserModal-C2RQ-JCc.js.map → SavedBlocksBrowserModal-BhR6AI0f.js.map} +1 -1
  90. package/dist/cdn/chunks/{SavedBlocksPanels-BmRbvqqL.js → SavedBlocksPanels-YwffJtfY.js} +3 -3
  91. package/dist/cdn/chunks/{SavedBlocksPanels-BmRbvqqL.js.map → SavedBlocksPanels-YwffJtfY.js.map} +1 -1
  92. package/dist/cdn/chunks/{SavedBlocksPickBar-BzwKojoJ.js → SavedBlocksPickBar-BtpFU7es.js} +6 -6
  93. package/dist/cdn/chunks/{SavedBlocksPickBar-BzwKojoJ.js.map → SavedBlocksPickBar-BtpFU7es.js.map} +1 -1
  94. package/dist/cdn/chunks/{TemplateScoringPanel-C_57Bfkf.js → TemplateScoringPanel-N4ySFh5w.js} +12 -12
  95. package/dist/cdn/chunks/{TemplateScoringPanel-C_57Bfkf.js.map → TemplateScoringPanel-N4ySFh5w.js.map} +1 -1
  96. package/dist/cdn/chunks/{TemplateSettings-G-yV7C1C.js → TemplateSettings-C7b5X34U.js} +13 -13
  97. package/dist/cdn/chunks/TemplateSettings-C7b5X34U.js.map +1 -0
  98. package/dist/cdn/chunks/{TestEmailModal-lOeztfTN.js → TestEmailModal-DHJKI5y5.js} +11 -11
  99. package/dist/cdn/chunks/{TestEmailModal-lOeztfTN.js.map → TestEmailModal-DHJKI5y5.js.map} +1 -1
  100. package/dist/cdn/chunks/{TestEmailPanel-CZswVkk_.js → TestEmailPanel-lYtzTXpR.js} +3 -3
  101. package/dist/cdn/chunks/{TestEmailPanel-CZswVkk_.js.map → TestEmailPanel-lYtzTXpR.js.map} +1 -1
  102. package/dist/cdn/chunks/{TitleEditor-CnTT2Y3H.js → TitleEditor-5eY01ypW.js} +15 -15
  103. package/dist/cdn/chunks/{TitleEditor-CnTT2Y3H.js.map → TitleEditor-5eY01ypW.js.map} +1 -1
  104. package/dist/cdn/chunks/{ToggleSwitch-CLHteVMO.js → ToggleSwitch-BN8rMC2m.js} +3 -3
  105. package/dist/cdn/chunks/{ToggleSwitch-CLHteVMO.js.map → ToggleSwitch-BN8rMC2m.js.map} +1 -1
  106. package/dist/cdn/chunks/{Toolbar-K4tIkpG1.js → Toolbar-Ik54UO_-.js} +696 -575
  107. package/dist/cdn/chunks/Toolbar-Ik54UO_-.js.map +1 -0
  108. package/dist/cdn/chunks/{TplModal-OOT36AjS.js → TplModal-WIBiBrGy.js} +6 -6
  109. package/dist/cdn/chunks/TplModal-WIBiBrGy.js.map +1 -0
  110. package/dist/cdn/chunks/{VersionHistoryMenu-DbxuJgDO.js → VersionHistoryMenu-CZnlS9K5.js} +6 -6
  111. package/dist/cdn/chunks/{VersionHistoryMenu-DbxuJgDO.js.map → VersionHistoryMenu-CZnlS9K5.js.map} +1 -1
  112. package/dist/cdn/chunks/{VersionHistoryPanels-BrpYRSfW.js → VersionHistoryPanels-xjLSpR1e.js} +3 -3
  113. package/dist/cdn/chunks/{VersionHistoryPanels-BrpYRSfW.js.map → VersionHistoryPanels-xjLSpR1e.js.map} +1 -1
  114. package/dist/cdn/chunks/{VersionPreviewBanner-HRERIH-v.js → VersionPreviewBanner-sARpn4hh.js} +5 -5
  115. package/dist/cdn/chunks/{VersionPreviewBanner-HRERIH-v.js.map → VersionPreviewBanner-sARpn4hh.js.map} +1 -1
  116. package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js +48 -0
  117. package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js.map +1 -0
  118. package/dist/cdn/chunks/{blockTypeIcons-DdZP-3FM.js → blockTypeIcons-D3g5QzdT.js} +2 -2
  119. package/dist/cdn/chunks/{blockTypeIcons-DdZP-3FM.js.map → blockTypeIcons-D3g5QzdT.js.map} +1 -1
  120. package/dist/cdn/chunks/{ca-C__Dzq--.js → ca-DMoGGP9L.js} +22 -1
  121. package/dist/cdn/chunks/ca-DMoGGP9L.js.map +1 -0
  122. package/dist/cdn/chunks/{cloud-bhW8qTnh.js → cloud-Cd7ptfhL.js} +3 -3
  123. package/dist/cdn/chunks/{cloud-bhW8qTnh.js.map → cloud-Cd7ptfhL.js.map} +1 -1
  124. package/dist/cdn/chunks/{createCloudRuntime-CeRJkLR2.js → createCloudRuntime-DtIZ2Lee.js} +17 -8
  125. package/dist/cdn/chunks/createCloudRuntime-DtIZ2Lee.js.map +1 -0
  126. package/dist/cdn/chunks/{de-CGjbQ2mt.js → de-DgAelLbM.js} +22 -1
  127. package/dist/cdn/chunks/de-DgAelLbM.js.map +1 -0
  128. package/dist/cdn/chunks/{dist-B7W-Lb65.js → dist-CjL6JHML.js} +3 -3
  129. package/dist/cdn/chunks/{dist-B7W-Lb65.js.map → dist-CjL6JHML.js.map} +1 -1
  130. package/dist/cdn/chunks/{dist-C5nRd_ua.js → dist-MNQYSEWU.js} +4 -4
  131. package/dist/cdn/chunks/{dist-C5nRd_ua.js.map → dist-MNQYSEWU.js.map} +1 -1
  132. package/dist/cdn/chunks/{draggable-BUTN5vZC.js → draggable-DrsNwZuB.js} +1673 -1595
  133. package/dist/cdn/chunks/draggable-DrsNwZuB.js.map +1 -0
  134. package/dist/cdn/chunks/{editor-modal-BpsbYA4_.js → editor-modal-Bcwo0orC.js} +34 -34
  135. package/dist/cdn/chunks/{editor-modal-BpsbYA4_.js.map → editor-modal-Bcwo0orC.js.map} +1 -1
  136. package/dist/cdn/chunks/en-BANFWZdr.js +1 -0
  137. package/dist/cdn/chunks/{en-BTiiAC-B.js → en-Dekrl7HA.js} +22 -1
  138. package/dist/cdn/chunks/en-Dekrl7HA.js.map +1 -0
  139. package/dist/cdn/chunks/{es-CdTOcSTf.js → es-BaZzyidV.js} +22 -1
  140. package/dist/cdn/chunks/es-BaZzyidV.js.map +1 -0
  141. package/dist/cdn/chunks/{extensions-xjRsIjMP.js → extensions-T-t8MKDb.js} +9 -9
  142. package/dist/cdn/chunks/extensions-T-t8MKDb.js.map +1 -0
  143. package/dist/cdn/chunks/{fr-B6lcLLzC.js → fr-C5ucb1HK.js} +22 -1
  144. package/dist/cdn/chunks/fr-C5ucb1HK.js.map +1 -0
  145. package/dist/cdn/chunks/{icons-Dr9erFGs.js → icons-C4fX9Bwy.js} +27 -27
  146. package/dist/cdn/chunks/{icons-Dr9erFGs.js.map → icons-C4fX9Bwy.js.map} +1 -1
  147. package/dist/cdn/chunks/{ja-BhdkqENz.js → ja-CUgR3mV0.js} +22 -1
  148. package/dist/cdn/chunks/ja-CUgR3mV0.js.map +1 -0
  149. package/dist/cdn/chunks/{keys-BKu-LOk5.js → keys-HI-INbkz.js} +2 -2
  150. package/dist/cdn/chunks/{keys-BKu-LOk5.js.map → keys-HI-INbkz.js.map} +1 -1
  151. package/dist/{nl-CE3YItYg.js → cdn/chunks/nl-qrLY7hMS.js} +23 -0
  152. package/dist/cdn/chunks/nl-qrLY7hMS.js.map +1 -0
  153. package/dist/{preRenderCustomBlocks-DAS48ZCp.js → cdn/chunks/preRenderCustomBlocks-Co0oi0Jf.js} +7 -3
  154. package/dist/cdn/chunks/preRenderCustomBlocks-Co0oi0Jf.js.map +1 -0
  155. package/dist/cdn/chunks/{pt-BR-CUIT4rq4.js → pt-BR-C6hMTQYi.js} +22 -1
  156. package/dist/cdn/chunks/pt-BR-C6hMTQYi.js.map +1 -0
  157. package/dist/cdn/chunks/socialIcons-DACw1wA8.js +1103 -0
  158. package/dist/cdn/chunks/socialIcons-DACw1wA8.js.map +1 -0
  159. package/dist/cdn/chunks/{src-BcqNlDMe.js → src-BnJlDuyB.js} +361 -206
  160. package/dist/cdn/chunks/src-BnJlDuyB.js.map +1 -0
  161. package/dist/cdn/chunks/{src-CkXmV2I2.js → src-Bu0qBpbf.js} +202 -202
  162. package/dist/cdn/chunks/src-Bu0qBpbf.js.map +1 -0
  163. package/dist/cdn/chunks/{src-HA9F2kvk.js → src-CHlVFp7r.js} +368 -311
  164. package/dist/cdn/chunks/src-CHlVFp7r.js.map +1 -0
  165. package/dist/{styleConstants-C_YAPdQS.js → cdn/chunks/styleConstants-D1Jz-TFU.js} +9 -28
  166. package/dist/cdn/chunks/{styleConstants-C_YAPdQS.js.map → styleConstants-D1Jz-TFU.js.map} +1 -1
  167. package/dist/cdn/chunks/{tiptap-CYDXLO17.js → tiptap-BPigZk5G.js} +3258 -3098
  168. package/dist/cdn/chunks/tiptap-BPigZk5G.js.map +1 -0
  169. package/dist/cdn/chunks/{useAliveFlag-DzyXG-8A.js → useAliveFlag-DCB96vzR.js} +2 -2
  170. package/dist/cdn/chunks/{useAliveFlag-DzyXG-8A.js.map → useAliveFlag-DCB96vzR.js.map} +1 -1
  171. package/dist/cdn/chunks/{useCloudI18n-Cgk0ts_F.js → useCloudI18n-BBF4waXO.js} +3 -3
  172. package/dist/cdn/chunks/{useCloudI18n-Cgk0ts_F.js.map → useCloudI18n-BBF4waXO.js.map} +1 -1
  173. package/dist/cdn/chunks/{useEditorCore-BF1ZhcGu.js → useEditorCore-Bf2d1DKI.js} +622 -607
  174. package/dist/cdn/chunks/useEditorCore-Bf2d1DKI.js.map +1 -0
  175. package/dist/cdn/chunks/useEditorRoot-CTc6O8al.js +10 -0
  176. package/dist/cdn/chunks/{useEditorRoot-DDPIcEOO.js.map → useEditorRoot-CTc6O8al.js.map} +1 -1
  177. package/dist/cdn/chunks/{useI18n-DO4NTunW.js → useI18n-DUlyyIJJ.js} +3 -3
  178. package/dist/cdn/chunks/{useI18n-DO4NTunW.js.map → useI18n-DUlyyIJJ.js.map} +1 -1
  179. package/dist/cdn/chunks/{useLogicTag-91bO_SOi.js → useLogicTag-3S63go4E.js} +4 -4
  180. package/dist/cdn/chunks/{useLogicTag-91bO_SOi.js.map → useLogicTag-3S63go4E.js.map} +1 -1
  181. package/dist/cdn/chunks/{useMergeTag-hwifK582.js → useMergeTag-BQtxUHq1.js} +4 -4
  182. package/dist/cdn/chunks/{useMergeTag-hwifK582.js.map → useMergeTag-BQtxUHq1.js.map} +1 -1
  183. package/dist/cdn/chunks/{usePopoverPosition-CtVNwoHj.js → usePopoverPosition-IbaW6-Ao.js} +3 -3
  184. package/dist/cdn/chunks/{usePopoverPosition-CtVNwoHj.js.map → usePopoverPosition-IbaW6-Ao.js.map} +1 -1
  185. package/dist/cdn/chunks/{useScrollToBlock-BDNJ25X1.js → useScrollToBlock-uUa601I4.js} +4 -5
  186. package/dist/cdn/chunks/useScrollToBlock-uUa601I4.js.map +1 -0
  187. package/dist/cdn/chunks/withCurrentFont-DwJd-lKc.js +21 -0
  188. package/dist/cdn/chunks/withCurrentFont-DwJd-lKc.js.map +1 -0
  189. package/dist/cdn/editor.css +1 -1
  190. package/dist/cdn/editor.js +602 -580
  191. package/dist/cdn/editor.js.map +1 -1
  192. package/dist/{check-ZKvtMdpe.js → check-B5R4zXr7.js} +1 -1
  193. package/dist/{chevron-down-RrwkYMlp.js → chevron-down-BKyl85NV.js} +1 -1
  194. package/dist/{chevron-right-CklHaa1U.js → chevron-right-BmToZ8qX.js} +1 -1
  195. package/dist/{chevron-up-DjN2NTbo.js → chevron-up-DNYdOxPC.js} +1 -1
  196. package/dist/{circle-alert-BR1_Yfb-.js → circle-alert-Dx9ju3YZ.js} +1 -1
  197. package/dist/{clock-BEagNj21.js → clock-Dv9bxsSH.js} +1 -1
  198. package/dist/{cloud-CVfwPu19.js → cloud-DwjaAdwK.js} +2 -2
  199. package/dist/{copy-D6DNoSq1.js → copy-BsKl4dcy.js} +1 -1
  200. package/dist/{createCloudRuntime-GRv_TDb2.js → createCloudRuntime-C8gpPsSi.js} +16 -7
  201. package/dist/{createLucideIcon-BAPyioGd.js → createLucideIcon-DziKp5iU.js} +6 -6
  202. package/dist/{de-CGjbQ2mt.js → de-DgAelLbM.js} +21 -0
  203. package/dist/{dist-Bd7khQsg.js → dist-3HpYixwF.js} +2 -2
  204. package/dist/{dist-lL3nVbxV.js → dist-BC-ZEYLd.js} +2 -2
  205. package/dist/dist-BPFcLKTw.js +5 -0
  206. package/dist/{dist-CSaWqmWM.js → dist-C8koXLhl.js} +390 -241
  207. package/dist/{dist-C-VFTX82.js → dist-CUWI-IvA.js} +2 -2
  208. package/dist/{dist-Bc30883t.js → dist-Cr7RPxI9.js} +5 -5
  209. package/dist/{dist-DapsJxn_.js → dist-CuLwJF7H.js} +2 -2
  210. package/dist/{dist-5KNKxglR.js → dist-CyBwSiAa.js} +2 -2
  211. package/dist/dist-D7Yj7E-F.js +5 -0
  212. package/dist/{dist-B_vYjCsk.js → dist-DAAJogrx.js} +3 -3
  213. package/dist/{dist-CMcFD7gP.js → dist-DBxgrOeo.js} +1906 -1746
  214. package/dist/{dist-DHensKDY.js → dist-DPcf6XZ8.js} +2 -2
  215. package/dist/{dist-5DAb7bYT.js → dist-DVNjPKsH.js} +2 -2
  216. package/dist/{dist-C3eH9-N2.js → dist-DXyGqIDE.js} +2 -2
  217. package/dist/{dist-1H4cnaoD.js → dist-DuufrR8O.js} +4 -4
  218. package/dist/{editor-modal-oRmkDlUs.js → editor-modal-BwyIUnV_.js} +27 -27
  219. package/dist/en-CC-57eC_.js +1 -0
  220. package/dist/{en-BTiiAC-B.js → en-Dekrl7HA.js} +21 -0
  221. package/dist/{es-CdTOcSTf.js → es-BaZzyidV.js} +21 -0
  222. package/dist/{extensions-B65sfZRk.js → extensions-DHyKjsNZ.js} +19 -19
  223. package/dist/{eye-DvsTBI57.js → eye-DQuinb9k.js} +1 -1
  224. package/dist/{fr-B6lcLLzC.js → fr-C5ucb1HK.js} +21 -0
  225. package/dist/{image-up-BoFGZm5Q.js → image-up-yTfLjOrj.js} +1 -1
  226. package/dist/index.d.ts +92 -20
  227. package/dist/{info-0bQQGjTV.js → info-C7OjlS11.js} +1 -1
  228. package/dist/{ja-BhdkqENz.js → ja-CUgR3mV0.js} +21 -0
  229. package/dist/{keys-injl74ob.js → keys-BKFq19a2.js} +1 -1
  230. package/dist/{link-Cstrr3Ep.js → link-CrUFaZ0t.js} +1 -1
  231. package/dist/{list-Dx9Rmy5s.js → list-CLgv6M-k.js} +1 -1
  232. package/dist/{loader-circle-D8Qqs0MG.js → loader-circle-BXM5VO0K.js} +1 -1
  233. package/dist/{message-circle-D78ELX6I.js → message-circle-BisdQ8H9.js} +1 -1
  234. package/dist/{cdn/chunks/nl-CE3YItYg.js → nl-qrLY7hMS.js} +21 -2
  235. package/dist/{package-DOvM9sHE.js → package-C1T4AxV1.js} +1 -1
  236. package/dist/{pencil-B6m0OG0n.js → pencil-oo2mwf4C.js} +1 -1
  237. package/dist/{plus-D-nEKxTc.js → plus-BIilXopD.js} +1 -1
  238. package/dist/{cdn/chunks/preRenderCustomBlocks-CFwa7nP9.js → preRenderCustomBlocks-lFX0HHiV.js} +3 -3
  239. package/dist/{pt-BR-CUIT4rq4.js → pt-BR-C6hMTQYi.js} +21 -0
  240. package/dist/{refresh-cw-CXZS-R1U.js → refresh-cw-DrLlkEVC.js} +1 -1
  241. package/dist/{runtime-dom.esm-bundler-CO67ema2.js → runtime-dom.esm-bundler-lFF-QG3j.js} +3 -3
  242. package/dist/{search-DSvil0jo.js → search-DNu9lImk.js} +1 -1
  243. package/dist/{send-BBR28V94.js → send-DDNh3LoJ.js} +1 -1
  244. package/dist/{shield-check-ByxUnaU9.js → shield-check-aXM3o14f.js} +1 -1
  245. package/dist/{smartphone-CNOwGf5T.js → smartphone-isccgDee.js} +1 -1
  246. package/dist/socialIcons-BctavKBN.js +1180 -0
  247. package/dist/{sparkles-DO1hzwzf.js → sparkles-CIMfFxKv.js} +1 -1
  248. package/dist/style.css +1 -1
  249. package/dist/{cdn/chunks/styleConstants-C_YAPdQS.js → styleConstants-D1Jz-TFU.js} +7 -30
  250. package/dist/templatical-editor.js +509 -487
  251. package/dist/{text-align-start-BKEKMheq.js → text-align-start-C4JFeqsq.js} +1 -1
  252. package/dist/{trash-CKEQH4vH.js → trash-8ZD9pK_c.js} +1 -1
  253. package/dist/{triangle-alert-BHnfd3fV.js → triangle-alert-pq45xEHl.js} +1 -1
  254. package/dist/{upload-C8uO7KsR.js → upload-DrNFmVes.js} +1 -1
  255. package/dist/{useAliveFlag-6PtarpNZ.js → useAliveFlag-Dd06mRxe.js} +1 -1
  256. package/dist/{useCloudI18n-GvIOLziA.js → useCloudI18n-Nwqo7pI_.js} +2 -2
  257. package/dist/{useEditorCore-DQSeKPE9.js → useEditorCore-BcT7UI4e.js} +1027 -1018
  258. package/dist/{useEditorRoot-OWzNpDdT.js → useEditorRoot-BD3piYtD.js} +2 -2
  259. package/dist/{useI18n-uF11q85g.js → useI18n-CxVEpurs.js} +2 -2
  260. package/dist/{useLogicTag-BH87j1vZ.js → useLogicTag-D-dI8H6p.js} +3 -3
  261. package/dist/{useMergeTag-DfPKX2Tk.js → useMergeTag-5wMeDBi-.js} +3 -3
  262. package/dist/{usePopoverPosition-DkBrHfCo.js → usePopoverPosition-CwnH1o5g.js} +2 -2
  263. package/dist/{useScrollToBlock-Dr7Sb6Tr.js → useScrollToBlock-Do3suaqp.js} +4 -5
  264. package/dist/{vue.runtime.esm-bundler-CctRY8kr.js → vue.runtime.esm-bundler-CAzmrXdD.js} +1215 -1155
  265. package/dist/withCurrentFont-B4YnsG_2.js +19 -0
  266. package/dist/{x-gEC0yMci.js → x-CBFKGLB1.js} +1 -1
  267. package/package.json +24 -24
  268. package/dist/BlockPreviewCanvas-DwxJOTzH.js +0 -133
  269. package/dist/CountdownBlock-RNx3hIu0.js +0 -91
  270. package/dist/WrapperBlock-CzJa2Mxw.js +0 -34
  271. package/dist/cdn/chunks/BlockPreviewCanvas-hKxE6f-k.js +0 -135
  272. package/dist/cdn/chunks/BlockPreviewCanvas-hKxE6f-k.js.map +0 -1
  273. package/dist/cdn/chunks/CountdownBlock-lHU3Lu7Q.js +0 -93
  274. package/dist/cdn/chunks/CountdownBlock-lHU3Lu7Q.js.map +0 -1
  275. package/dist/cdn/chunks/ParagraphEditor-B5DN4Sy4.js.map +0 -1
  276. package/dist/cdn/chunks/TemplateSettings-G-yV7C1C.js.map +0 -1
  277. package/dist/cdn/chunks/Toolbar-K4tIkpG1.js.map +0 -1
  278. package/dist/cdn/chunks/TplModal-OOT36AjS.js.map +0 -1
  279. package/dist/cdn/chunks/WrapperBlock-DdrnwH80.js +0 -36
  280. package/dist/cdn/chunks/WrapperBlock-DdrnwH80.js.map +0 -1
  281. package/dist/cdn/chunks/ca-C__Dzq--.js.map +0 -1
  282. package/dist/cdn/chunks/createCloudRuntime-CeRJkLR2.js.map +0 -1
  283. package/dist/cdn/chunks/de-CGjbQ2mt.js.map +0 -1
  284. package/dist/cdn/chunks/draggable-BUTN5vZC.js.map +0 -1
  285. package/dist/cdn/chunks/en-BTiiAC-B.js.map +0 -1
  286. package/dist/cdn/chunks/en-CAt6y87e.js +0 -1
  287. package/dist/cdn/chunks/es-CdTOcSTf.js.map +0 -1
  288. package/dist/cdn/chunks/extensions-xjRsIjMP.js.map +0 -1
  289. package/dist/cdn/chunks/fr-B6lcLLzC.js.map +0 -1
  290. package/dist/cdn/chunks/ja-BhdkqENz.js.map +0 -1
  291. package/dist/cdn/chunks/nl-CE3YItYg.js.map +0 -1
  292. package/dist/cdn/chunks/preRenderCustomBlocks-CFwa7nP9.js.map +0 -1
  293. package/dist/cdn/chunks/pt-BR-CUIT4rq4.js.map +0 -1
  294. package/dist/cdn/chunks/socialIcons-CsYnPPll.js +0 -1050
  295. package/dist/cdn/chunks/socialIcons-CsYnPPll.js.map +0 -1
  296. package/dist/cdn/chunks/src-BcqNlDMe.js.map +0 -1
  297. package/dist/cdn/chunks/src-CkXmV2I2.js.map +0 -1
  298. package/dist/cdn/chunks/src-HA9F2kvk.js.map +0 -1
  299. package/dist/cdn/chunks/tiptap-CYDXLO17.js.map +0 -1
  300. package/dist/cdn/chunks/useEditorCore-BF1ZhcGu.js.map +0 -1
  301. package/dist/cdn/chunks/useEditorRoot-DDPIcEOO.js +0 -10
  302. package/dist/cdn/chunks/useScrollToBlock-BDNJ25X1.js.map +0 -1
  303. package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js +0 -32
  304. package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js.map +0 -1
  305. package/dist/dist-CFC4pg2o.js +0 -5
  306. package/dist/dist-j2FavQmU.js +0 -5
  307. package/dist/en-Bk4iCfjp.js +0 -1
  308. package/dist/socialIcons-CvAixjj8.js +0 -1126
  309. package/dist/withCurrentFont-DeCbPVaE.js +0 -30
@@ -45,12 +45,55 @@ var s = {
45
45
  2: 28,
46
46
  3: 22,
47
47
  4: 18
48
- }, c = {
48
+ }, c = 1.3, l = {
49
49
  paragraphGap: 8,
50
50
  listMarginY: 8,
51
51
  listPaddingLeft: 24,
52
52
  listItemMarginY: 4
53
- }, l = {
53
+ }, u = [
54
+ "cover",
55
+ "contain",
56
+ "auto"
57
+ ], d = [
58
+ "left",
59
+ "center",
60
+ "right"
61
+ ], f = [
62
+ "top",
63
+ "center",
64
+ "bottom"
65
+ ];
66
+ function ee(e) {
67
+ return {
68
+ url: e,
69
+ size: "cover",
70
+ position: {
71
+ x: "center",
72
+ y: "center"
73
+ },
74
+ repeat: !1
75
+ };
76
+ }
77
+ function p(e) {
78
+ let t = "";
79
+ for (let n of e) {
80
+ let e = n.charCodeAt(0);
81
+ t += e < 32 || e === 127 || n === "'" || n === "\"" || n === "\\" ? `%${e.toString(16).toUpperCase().padStart(2, "0")}` : n;
82
+ }
83
+ return t;
84
+ }
85
+ function te(e) {
86
+ let t = typeof e?.url == "string" ? e.url.trim() : "";
87
+ if (!e || !t) return null;
88
+ let n = u.includes(e.size) ? e.size : "cover", r = e.position, i = r && d.includes(r.x) ? r.x : "center", a = r && f.includes(r.y) ? r.y : "center";
89
+ return {
90
+ url: p(t),
91
+ size: n,
92
+ position: `${i} ${a}`,
93
+ repeat: e.repeat ? "repeat" : "no-repeat"
94
+ };
95
+ }
96
+ var m = {
54
97
  facebook: {
55
98
  color: "#1877F2",
56
99
  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"
@@ -119,52 +162,52 @@ var s = {
119
162
  color: "#1769FF",
120
163
  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"
121
164
  }
122
- }, u = {
165
+ }, h = {
123
166
  dark: "#1f1f1f",
124
167
  light: "#ffffff"
125
168
  };
126
- function d(e) {
169
+ function g(e) {
127
170
  return e === "dark" || e === "light" ? e : void 0;
128
171
  }
129
- function ee(e, t) {
130
- let n = d(t);
172
+ function ne(e, t) {
173
+ let n = g(t);
131
174
  return {
132
- fill: n ? u[n] : l[e].color,
133
- onFill: n === "light" ? u.dark : "#ffffff"
175
+ fill: n ? h[n] : m[e].color,
176
+ onFill: n === "light" ? h.dark : "#ffffff"
134
177
  };
135
178
  }
136
- function te(e, t) {
137
- if (d(t) === "dark" && (e === "plain" || e === "outlined")) return {
138
- color: u.light,
179
+ function re(e, t) {
180
+ if (g(t) === "dark" && (e === "plain" || e === "outlined")) return {
181
+ color: h.light,
139
182
  opacity: .6,
140
183
  width: 1.4
141
184
  };
142
185
  }
143
- function ne(e) {
186
+ function ie(e) {
144
187
  return e === "plain" ? .84 : .6;
145
188
  }
146
- function f(e) {
189
+ function _(e) {
147
190
  return e.type === "section";
148
191
  }
149
- function re(e) {
192
+ function ae(e) {
150
193
  return e.type === "custom";
151
194
  }
152
- function p(e) {
195
+ function v(e) {
153
196
  return e.type === "slot";
154
197
  }
155
- function m(e) {
198
+ function y(e) {
156
199
  return e.type === "wrapper";
157
200
  }
158
- var h = {
201
+ var b = {
159
202
  content: "<p>Enter your title</p>",
160
203
  level: 2,
161
204
  textAlign: "left"
162
- }, g = { content: "<p>Enter your text here</p>" }, _ = {
205
+ }, x = { content: "<p>Enter your text here</p>" }, S = {
163
206
  src: "",
164
207
  alt: "",
165
208
  width: "full",
166
209
  align: "center"
167
- }, v = {
210
+ }, oe = {
168
211
  text: "Click Here",
169
212
  url: "",
170
213
  backgroundColor: "#333333",
@@ -178,36 +221,36 @@ var h = {
178
221
  left: 24
179
222
  },
180
223
  align: "center"
181
- }, ie = {
224
+ }, se = {
182
225
  lineStyle: "solid",
183
226
  color: "#e0e0e0",
184
227
  thickness: 1,
185
228
  width: "full"
186
- }, ae = { columns: "1" }, oe = {
229
+ }, ce = { columns: "1" }, le = {
187
230
  url: "",
188
231
  thumbnailUrl: "",
189
232
  alt: "Video",
190
233
  width: "full",
191
234
  align: "center"
192
- }, se = {
235
+ }, ue = {
193
236
  iconStyle: "solid",
194
237
  iconSize: "medium",
195
238
  spacing: 10,
196
239
  align: "center"
197
- }, ce = { height: 24 }, le = { content: "" }, ue = {
240
+ }, de = { height: 24 }, fe = { content: "" }, pe = {
198
241
  fontSize: 15,
199
242
  textAlign: "center",
200
243
  separator: "|",
201
244
  separatorColor: "#e0e0e0",
202
245
  spacing: 10
203
- }, y = {
246
+ }, me = {
204
247
  hasHeaderRow: !0,
205
248
  borderColor: "#e0e0e0",
206
249
  borderWidth: 1,
207
250
  cellPadding: 8,
208
251
  fontSize: 15,
209
252
  textAlign: "left"
210
- }, b = {
253
+ }, he = {
211
254
  targetDate: "",
212
255
  timezone: "UTC",
213
256
  showDays: !0,
@@ -227,21 +270,21 @@ var h = {
227
270
  expiredMessage: "This offer has expired",
228
271
  expiredImageUrl: "",
229
272
  hideOnExpiry: !1
230
- }, de = {
231
- title: h,
232
- paragraph: g,
233
- image: _,
234
- button: v,
235
- divider: ie,
236
- section: ae,
237
- video: oe,
238
- social: se,
239
- spacer: ce,
240
- html: le,
241
- menu: ue,
242
- table: y,
243
- countdown: b
244
- }, x = {
273
+ }, ge = {
274
+ title: b,
275
+ paragraph: x,
276
+ image: S,
277
+ button: oe,
278
+ divider: se,
279
+ section: ce,
280
+ video: le,
281
+ social: ue,
282
+ spacer: de,
283
+ html: fe,
284
+ menu: pe,
285
+ table: me,
286
+ countdown: he
287
+ }, C = {
245
288
  width: 600,
246
289
  backgroundColor: "#ffffff",
247
290
  textColor: "#1a1a1a",
@@ -249,28 +292,28 @@ var h = {
249
292
  fontFamily: "Arial",
250
293
  locale: "en"
251
294
  };
252
- function S(e) {
295
+ function w(e) {
253
296
  return typeof e == "object" && !!e && !Array.isArray(e) && Object.getPrototypeOf(e) === Object.prototype;
254
297
  }
255
- function C(e, t) {
298
+ function T(e, t) {
256
299
  let n = { ...e };
257
300
  for (let r of Object.keys(t)) {
258
301
  let i = e[r], a = t[r];
259
- a !== void 0 && (n[r] = S(i) && S(a) ? C(i, a) : a);
302
+ a !== void 0 && (n[r] = w(i) && w(a) ? T(i, a) : a);
260
303
  }
261
304
  return n;
262
305
  }
263
- function fe(e = "Arial", t) {
306
+ function _e(e = "Arial", t) {
264
307
  return {
265
308
  blocks: [],
266
309
  settings: {
267
- ...x,
310
+ ...C,
268
311
  fontFamily: e,
269
312
  ...t
270
313
  }
271
314
  };
272
315
  }
273
- var pe = [
316
+ var ve = [
274
317
  "ar",
275
318
  "he",
276
319
  "iw",
@@ -284,20 +327,32 @@ var pe = [
284
327
  "ckb",
285
328
  "ks"
286
329
  ];
287
- function me(e) {
330
+ function ye(e) {
288
331
  let t = e?.trim().replace(/_/g, "-").split("-")[0]?.toLowerCase();
289
- return !!t && pe.includes(t);
332
+ return !!t && ve.includes(t);
333
+ }
334
+ function be(e) {
335
+ return e.direction === "ltr" || e.direction === "rtl" ? e.direction : ye(e.locale) ? "rtl" : "ltr";
336
+ }
337
+ function E(e) {
338
+ let t = [];
339
+ return JSON.parse(JSON.stringify(e, function(e, n) {
340
+ if (typeof n != "object" || !n) return n;
341
+ for (; t.length > 0 && t[t.length - 1] !== this;) t.pop();
342
+ if (!t.includes(n)) return t.push(n), n;
343
+ }));
290
344
  }
291
- function he(e) {
292
- return e.direction === "ltr" || e.direction === "rtl" ? e.direction : me(e.locale) ? "rtl" : "ltr";
345
+ function D(e, t) {
346
+ let n = E(e);
347
+ return !t || Object.keys(t).length === 0 ? n : T(n, t);
293
348
  }
294
- function w(e, t) {
295
- return !t || Object.keys(t).length === 0 ? e : C(e, t);
349
+ function O(e) {
350
+ return e === void 0 ? void 0 : E(e);
296
351
  }
297
- function T() {
352
+ function k() {
298
353
  return crypto.randomUUID();
299
354
  }
300
- function ge(e = 0) {
355
+ function xe(e = 0) {
301
356
  return {
302
357
  top: e,
303
358
  right: e,
@@ -305,135 +360,135 @@ function ge(e = 0) {
305
360
  left: e
306
361
  };
307
362
  }
308
- function E(e = 10) {
309
- return { padding: ge(e) };
363
+ function A(e = 10) {
364
+ return { padding: xe(e) };
310
365
  }
311
- function D(e = {}) {
312
- return w({
313
- id: T(),
366
+ function j(e = {}) {
367
+ return D({
368
+ id: k(),
314
369
  type: "title",
315
- ...h,
316
- styles: E()
370
+ ...b,
371
+ styles: A()
317
372
  }, e);
318
373
  }
319
- function O(e = {}) {
320
- return w({
321
- id: T(),
374
+ function M(e = {}) {
375
+ return D({
376
+ id: k(),
322
377
  type: "paragraph",
323
- ...g,
324
- styles: E()
378
+ ...x,
379
+ styles: A()
325
380
  }, e);
326
381
  }
327
- function k(e = {}) {
328
- return w({
329
- id: T(),
382
+ function N(e = {}) {
383
+ return D({
384
+ id: k(),
330
385
  type: "image",
331
- ..._,
332
- styles: E()
386
+ ...S,
387
+ styles: A()
333
388
  }, e);
334
389
  }
335
- function A(e = {}) {
336
- return w({
337
- id: T(),
390
+ function P(e = {}) {
391
+ return D({
392
+ id: k(),
338
393
  type: "button",
339
- ...v,
340
- styles: E()
394
+ ...oe,
395
+ styles: A()
341
396
  }, e);
342
397
  }
343
- function j(e = {}) {
344
- return w({
345
- id: T(),
398
+ function F(e = {}) {
399
+ return D({
400
+ id: k(),
346
401
  type: "divider",
347
- ...ie,
348
- styles: E(20)
402
+ ...se,
403
+ styles: A(20)
349
404
  }, e);
350
405
  }
351
- function M(e = {}) {
352
- return w({
353
- id: T(),
406
+ function I(e = {}) {
407
+ return D({
408
+ id: k(),
354
409
  type: "section",
355
- ...ae,
410
+ ...ce,
356
411
  children: [[]],
357
- styles: E(20)
412
+ styles: A(20)
358
413
  }, e);
359
414
  }
360
- function N(e = {}) {
361
- return w({
362
- id: T(),
415
+ function L(e = {}) {
416
+ return D({
417
+ id: k(),
363
418
  type: "video",
364
- ...oe,
365
- styles: E()
419
+ ...le,
420
+ styles: A()
366
421
  }, e);
367
422
  }
368
- function P(e = {}) {
369
- return w({
370
- id: T(),
423
+ function R(e = {}) {
424
+ return D({
425
+ id: k(),
371
426
  type: "social",
372
427
  icons: [],
373
- ...se,
374
- styles: E()
428
+ ...ue,
429
+ styles: A()
375
430
  }, e);
376
431
  }
377
- function F(e = {}) {
378
- return w({
379
- id: T(),
432
+ function z(e = {}) {
433
+ return D({
434
+ id: k(),
380
435
  type: "spacer",
381
- ...ce,
382
- styles: E(0)
436
+ ...de,
437
+ styles: A(0)
383
438
  }, e);
384
439
  }
385
- function I(e = {}) {
386
- return w({
387
- id: T(),
440
+ function B(e = {}) {
441
+ return D({
442
+ id: k(),
388
443
  type: "html",
389
- ...le,
390
- styles: E()
444
+ ...fe,
445
+ styles: A()
391
446
  }, e);
392
447
  }
393
- function L(e = {}) {
394
- return w({
395
- id: T(),
448
+ function V(e = {}) {
449
+ return D({
450
+ id: k(),
396
451
  type: "menu",
397
452
  items: [],
398
- ...ue,
399
- styles: E()
453
+ ...pe,
454
+ styles: A()
400
455
  }, e);
401
456
  }
402
- function _e(e, t) {
457
+ function Se(e, t) {
403
458
  return Array.from({ length: t }, () => ({
404
- id: T(),
459
+ id: k(),
405
460
  cells: Array.from({ length: e }, () => ({
406
- id: T(),
461
+ id: k(),
407
462
  content: ""
408
463
  }))
409
464
  }));
410
465
  }
411
- function R(e = {}) {
412
- return w({
413
- id: T(),
466
+ function H(e = {}) {
467
+ return D({
468
+ id: k(),
414
469
  type: "table",
415
- rows: _e(3, 3),
416
- ...y,
417
- styles: E()
470
+ rows: Se(3, 3),
471
+ ...me,
472
+ styles: A()
418
473
  }, e);
419
474
  }
420
- function z(e = {}) {
421
- return w({
422
- id: T(),
475
+ function Ce(e = {}) {
476
+ return D({
477
+ id: k(),
423
478
  type: "countdown",
424
- ...b,
425
- styles: E()
479
+ ...he,
480
+ styles: A()
426
481
  }, e);
427
482
  }
428
- function ve(e) {
483
+ function we(e) {
429
484
  return e.type === "repeatable" ? e.default ?? [] : e.type === "boolean" ? e.default ?? !1 : e.type === "number" ? e.default ?? 0 : e.default ?? "";
430
485
  }
431
- function ye(e) {
486
+ function Te(e) {
432
487
  let t = {};
433
- for (let n of e.fields) t[n.key] = ve(n);
434
- let n = w(E(), e.defaultStyles);
488
+ for (let n of e.fields) t[n.key] = O(we(n));
489
+ let n = D(A(), O(e.defaultStyles));
435
490
  return {
436
- id: T(),
491
+ id: k(),
437
492
  type: "custom",
438
493
  customType: e.type,
439
494
  fieldValues: t,
@@ -441,146 +496,144 @@ function ye(e) {
441
496
  ...e.dataSource ? { dataSourceFetched: !1 } : {}
442
497
  };
443
498
  }
444
- function be() {
499
+ function Ee() {
445
500
  return {
446
- id: T(),
501
+ id: k(),
447
502
  type: "slot",
448
- styles: E(0)
503
+ styles: A(0)
449
504
  };
450
505
  }
451
- function xe(e = {}) {
452
- return w({
453
- id: T(),
506
+ function De(e = {}) {
507
+ return D({
508
+ id: k(),
454
509
  type: "wrapper",
455
510
  children: [],
456
- styles: E(0)
511
+ styles: A(0)
457
512
  }, e);
458
513
  }
459
- function Se(e, t) {
514
+ function Oe(e, t) {
460
515
  switch (e) {
461
- case "section": return M(t?.section);
462
- case "title": return D(t?.title);
463
- case "paragraph": return O(t?.paragraph);
464
- case "image": return k(t?.image);
465
- case "button": return A(t?.button);
466
- case "divider": return j(t?.divider);
467
- case "video": return N(t?.video);
468
- case "social": return P(t?.social);
469
- case "spacer": return F(t?.spacer);
470
- case "html": return I(t?.html);
471
- case "menu": return L(t?.menu);
472
- case "table": return R(t?.table);
473
- case "countdown": return z(t?.countdown);
516
+ case "section": return I(O(t?.section));
517
+ case "title": return j(O(t?.title));
518
+ case "paragraph": return M(O(t?.paragraph));
519
+ case "image": return N(O(t?.image));
520
+ case "button": return P(O(t?.button));
521
+ case "divider": return F(O(t?.divider));
522
+ case "video": return L(O(t?.video));
523
+ case "social": return R(O(t?.social));
524
+ case "spacer": return z(O(t?.spacer));
525
+ case "html": return B(O(t?.html));
526
+ case "menu": return V(O(t?.menu));
527
+ case "table": return H(O(t?.table));
528
+ case "countdown": return Ce(O(t?.countdown));
474
529
  case "slot": throw Error("[Templatical] slot cannot be inserted into content. Use createSlotBlock() to build a layout.");
475
530
  case "wrapper": throw Error("[Templatical] wrapper cannot be inserted into content. Use createWrapperBlock() to build a layout.");
476
531
  default: throw Error(`Unknown block type: ${e}`);
477
532
  }
478
533
  }
479
- function B(e) {
534
+ function U(e) {
480
535
  let t = JSON.parse(JSON.stringify(e));
481
- 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;
482
- }
483
- function V(e) {
484
- let t = [];
485
- return JSON.parse(JSON.stringify(e, function(e, n) {
486
- if (typeof n != "object" || !n) return n;
487
- for (; t.length > 0 && t[t.length - 1] !== this;) t.pop();
488
- if (!t.includes(n)) return t.push(n), n;
489
- }));
536
+ if (t.id = k(), t.type === "table") for (let e of t.rows) {
537
+ e.id = k();
538
+ for (let t of e.cells) t.id = k();
539
+ }
540
+ if (t.type === "menu") for (let e of t.items) e.id = k();
541
+ if (t.type === "social") for (let e of t.icons) e.id = k();
542
+ return t.type === "section" && (t.children = t.children.map((e) => e.map((e) => U(e)))), t.type === "wrapper" && (t.children = t.children.map((e) => U(e))), t;
490
543
  }
491
- 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", 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";
492
- function W(e, t, n = null, r = !1) {
493
- for (let i of e) if (t(i, n, r), f(i)) for (let e of i.children) W(e, t, i, !0);
494
- else m(i) && W(i.children, t, i, r);
544
+ var W = "[Templatical] layout: must contain exactly one slot block", ke = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", Ae = "[Templatical] layout: a wrapper cannot contain a wrapper", je = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", Me = "[Templatical] slot is not a valid content block", Ne = "[Templatical] wrapper is not a valid content block";
545
+ function G(e, t, n = null, r = !1) {
546
+ for (let i of e) if (t(i, n, r), _(i)) for (let e of i.children) G(e, t, i, !0);
547
+ else y(i) && G(i.children, t, i, r);
495
548
  }
496
- function G(e) {
549
+ function Pe(e) {
497
550
  let t = 0;
498
- if (W(e.blocks, (e, n, r) => {
499
- if (p(e) && (t += 1, r)) throw Error(U);
500
- if (m(e)) {
501
- if (r) throw Error(U);
502
- if (e.children.some(m)) throw Error(Ce);
551
+ if (G(e.blocks, (e, n, r) => {
552
+ if (v(e) && (t += 1, r)) throw Error(ke);
553
+ if (y(e)) {
554
+ if (r) throw Error(ke);
555
+ if (e.children.some(y)) throw Error(Ae);
503
556
  }
504
- }), t !== 1) throw Error(H);
557
+ }), t !== 1) throw Error(W);
505
558
  }
506
- function K(e) {
507
- W(e.blocks, (e) => {
508
- if (p(e)) throw Error(Te);
559
+ function Fe(e) {
560
+ G(e.blocks, (e) => {
561
+ if (v(e)) throw Error(Me);
509
562
  });
510
563
  }
511
- function q(e) {
512
- W(e.blocks, (e) => {
513
- if (m(e)) throw Error(Ee);
564
+ function Ie(e) {
565
+ G(e.blocks, (e) => {
566
+ if (y(e)) throw Error(Ne);
514
567
  });
515
568
  }
516
- function De(e) {
569
+ function Le(e) {
517
570
  let t = !1;
518
- return W(e.blocks, (e, n) => {
519
- p(e) && n !== null && m(n) && (t = !0);
571
+ return G(e.blocks, (e, n) => {
572
+ v(e) && n !== null && y(n) && (t = !0);
520
573
  }), t;
521
574
  }
522
- function Oe(e) {
523
- if (p(e)) return e;
524
- if (m(e)) {
525
- let t = B({
575
+ function Re(e) {
576
+ if (v(e)) return e;
577
+ if (y(e)) {
578
+ let t = U({
526
579
  ...e,
527
580
  children: []
528
581
  });
529
- return t.children = e.children.map(Oe), t;
582
+ return t.children = e.children.map(Re), t;
530
583
  }
531
- return B(e);
584
+ return U(e);
532
585
  }
533
- function ke(e) {
586
+ function ze(e) {
534
587
  for (let t = 0; t < e.length; t++) {
535
588
  let n = e[t];
536
- if (p(n)) return {
589
+ if (v(n)) return {
537
590
  parent: e,
538
591
  index: t
539
592
  };
540
- if (m(n)) {
541
- let e = ke(n.children);
593
+ if (y(n)) {
594
+ let e = ze(n.children);
542
595
  if (e) return e;
543
596
  }
544
597
  }
545
598
  return null;
546
599
  }
547
- function Ae(e) {
548
- for (let t of e) if (f(t)) {
600
+ function Be(e) {
601
+ for (let t of e) if (_(t)) {
549
602
  if (t.wrapper) return !0;
550
- for (let e of t.children) if (Ae(e)) return !0;
603
+ for (let e of t.children) if (Be(e)) return !0;
551
604
  }
552
605
  return !1;
553
606
  }
554
- function je(e, t) {
555
- if (G(e), K(t), q(t), De(e) && Ae(t.blocks)) throw Error(we);
556
- let n = e.blocks.map(Oe), r = ke(n);
557
- if (!r) throw Error(H);
558
- return r.parent.splice(r.index, 1, ...V(t.blocks)), {
607
+ function Ve(e, t) {
608
+ if (Pe(e), Fe(t), Ie(t), Le(e) && Be(t.blocks)) throw Error(je);
609
+ let n = e.blocks.map(Re), r = ze(n);
610
+ if (!r) throw Error(W);
611
+ return r.parent.splice(r.index, 1, ...E(t.blocks)), {
559
612
  blocks: n,
560
613
  settings: {
561
- ...V(t.settings),
614
+ ...E(t.settings),
562
615
  backgroundColor: e.settings.backgroundColor
563
616
  }
564
617
  };
565
618
  }
566
- var Me = /* @__PURE__ */ new Set(["\"", "'"]);
567
- function Ne(e, t) {
619
+ var He = /* @__PURE__ */ new Set(["\"", "'"]);
620
+ function Ue(e, t) {
568
621
  let n = null;
569
622
  for (let r = t; r < e.length; r++) {
570
623
  let t = e[r];
571
624
  if (n !== null) t === n && (n = null);
572
- else if (Me.has(t)) n = t;
625
+ else if (He.has(t)) n = t;
573
626
  else if (t === ">") return r;
574
627
  }
575
628
  return -1;
576
629
  }
577
- function Pe(e) {
630
+ function We(e) {
578
631
  return e !== " " && e !== " " && e !== "\n" && e !== "\r" && e !== "\f" && e !== "=" && e !== ">" && e !== "/";
579
632
  }
580
- function J(e) {
633
+ function K(e) {
581
634
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
582
635
  }
583
- var Fe = {
636
+ var Ge = {
584
637
  amp: "&",
585
638
  lt: "<",
586
639
  gt: ">",
@@ -588,44 +641,140 @@ var Fe = {
588
641
  apos: "'",
589
642
  nbsp: "\xA0"
590
643
  };
591
- function Ie(e) {
644
+ function Ke(e) {
592
645
  return e.includes("&") ? e.replace(/&(#[0-9]+|#[xX][0-9a-fA-F]+|[a-zA-Z][a-zA-Z0-9]*);/g, (e, t) => {
593
646
  if (t[0] === "#") {
594
647
  let n = t[1] === "x" || t[1] === "X" ? Number.parseInt(t.slice(2), 16) : Number.parseInt(t.slice(1), 10);
595
648
  return !Number.isFinite(n) || n < 1 || n > 1114111 || n >= 55296 && n <= 57343 ? e : String.fromCodePoint(n);
596
649
  }
597
- return Fe[t.toLowerCase()] ?? e;
650
+ return Ge[t.toLowerCase()] ?? e;
598
651
  }) : e;
599
652
  }
600
- function Le(e, t) {
653
+ function qe(e, t) {
601
654
  let n = t.toLowerCase(), r = 0;
602
655
  for (; r < e.length;) {
603
- for (; r < e.length && (J(e[r]) || e[r] === "/");) r++;
656
+ for (; r < e.length && (K(e[r]) || e[r] === "/");) r++;
604
657
  if (r >= e.length) break;
605
658
  let t = r;
606
- for (; r < e.length && Pe(e[r]);) r++;
659
+ for (; r < e.length && We(e[r]);) r++;
607
660
  let i = e.substring(t, r).toLowerCase();
608
661
  if (i === "") {
609
662
  r++;
610
663
  continue;
611
664
  }
612
- for (; r < e.length && J(e[r]);) r++;
665
+ for (; r < e.length && K(e[r]);) r++;
613
666
  if (e[r] !== "=") continue;
614
- for (r++; r < e.length && J(e[r]);) r++;
667
+ for (r++; r < e.length && K(e[r]);) r++;
615
668
  let a = e[r];
616
- if (Me.has(a)) {
669
+ if (He.has(a)) {
617
670
  let t = r + 1, o = e.indexOf(a, t);
618
671
  if (o === -1) return null;
619
- if (i === n) return Ie(e.substring(t, o));
672
+ if (i === n) return Ke(e.substring(t, o));
620
673
  r = o + 1;
621
674
  continue;
622
675
  }
623
676
  let o = r;
624
- for (; r < e.length && !J(e[r]) && e[r] !== ">";) r++;
625
- if (i === n) return Ie(e.substring(o, r));
677
+ for (; r < e.length && !K(e[r]) && e[r] !== ">";) r++;
678
+ if (i === n) return Ke(e.substring(o, r));
626
679
  }
627
680
  return null;
628
681
  }
682
+ var Je = /<\/?p\b[^<>]*>/gi, Ye = /<p\b([^<>]*)>\s*<\/p>/gi;
683
+ function Xe(e) {
684
+ return e.replace(Je, "").trim() === "";
685
+ }
686
+ function Ze(e) {
687
+ return Xe(e) ? e : e.replace(Ye, "<p$1>&nbsp;</p>");
688
+ }
689
+ var Qe = {
690
+ arial: "Arial, sans-serif",
691
+ helvetica: "Helvetica, sans-serif",
692
+ georgia: "Georgia, serif",
693
+ "times new roman": "'Times New Roman', serif",
694
+ verdana: "Verdana, sans-serif",
695
+ "trebuchet ms": "'Trebuchet MS', sans-serif",
696
+ "courier new": "'Courier New', monospace",
697
+ tahoma: "Tahoma, sans-serif"
698
+ }, $e = /* @__PURE__ */ new Set([
699
+ "inherit",
700
+ "initial",
701
+ "unset",
702
+ "revert",
703
+ "revert-layer"
704
+ ]), et = /* @__PURE__ */ new Set([
705
+ "serif",
706
+ "sans-serif",
707
+ "monospace",
708
+ "cursive",
709
+ "fantasy",
710
+ "system-ui",
711
+ "ui-serif",
712
+ "ui-sans-serif",
713
+ "ui-monospace",
714
+ "ui-rounded",
715
+ "emoji",
716
+ "math",
717
+ "fangsong"
718
+ ]);
719
+ function q(e) {
720
+ return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
721
+ }
722
+ function J(e) {
723
+ if (typeof e != "string") return [];
724
+ let t = e.replace(/!\s*important\s*$/i, ""), n = [], r = 0;
725
+ for (;;) {
726
+ for (; r < t.length && q(t[r]);) r++;
727
+ if (r >= t.length) return [];
728
+ let e = t[r];
729
+ if (e === "\"" || e === "'") {
730
+ let i = "", a = r + 1, o = !1;
731
+ for (; a < t.length;) {
732
+ let n = t[a];
733
+ if (n === "\\" && a + 1 < t.length) i += t[a + 1], a += 2;
734
+ else {
735
+ if (n === e) {
736
+ o = !0, a++;
737
+ break;
738
+ }
739
+ i += n, a++;
740
+ }
741
+ }
742
+ if (!o) return [];
743
+ for (; a < t.length && q(t[a]);) a++;
744
+ if (a < t.length && t[a] !== ",") return [];
745
+ n.push({
746
+ name: i,
747
+ quoted: !0
748
+ }), r = a;
749
+ } else {
750
+ let e = t.indexOf(",", r), i = e === -1 ? t.length : e, a = t.slice(r, i).trim().split(/\s+/).join(" ");
751
+ if (a === "" || a.includes("\"") || a.includes("'") || $e.has(a.toLowerCase())) return [];
752
+ n.push({
753
+ name: a,
754
+ quoted: !1
755
+ }), r = i;
756
+ }
757
+ if (r >= t.length) return n;
758
+ r++;
759
+ }
760
+ }
761
+ function tt(e) {
762
+ return `'${e.replace(/\\/g, "\\\\").replace(/'/g, "\\'")}'`;
763
+ }
764
+ function nt(e) {
765
+ return !e.quoted && et.has(e.name.toLowerCase());
766
+ }
767
+ function rt(e) {
768
+ return J(e)[0]?.name ?? "";
769
+ }
770
+ function it(e, t) {
771
+ let n = (e) => `${tt(e.name)}, ${e.fallback ?? t.defaultFallback}`, r = typeof e == "string" ? e.trim().toLowerCase() : "", i = t.customFonts.find((e) => e.name.toLowerCase() === r);
772
+ if (i) return n(i);
773
+ let a = J(e);
774
+ if (a.length !== 1) return e;
775
+ let [o] = a, s = o.name.toLowerCase(), c = t.customFonts.find((e) => e.name.toLowerCase() === s);
776
+ return c ? n(c) : Qe[s] || (nt(o) ? e : `${tt(o.name)}, ${t.defaultFallback}`);
777
+ }
629
778
  var Y = {
630
779
  liquid: {
631
780
  value: /\{\{.+?\}\}/g,
@@ -643,33 +792,33 @@ var Y = {
643
792
  value: /%%=.+?=%%/g,
644
793
  logic: /%%\[\s*(\w+).*?\]%%/g
645
794
  }
646
- }, Re = {
795
+ }, at = {
647
796
  liquid: "{{",
648
797
  handlebars: "{{",
649
798
  mailchimp: "*|",
650
799
  ampscript: "%%="
651
- }, ze = {
800
+ }, ot = {
652
801
  liquid: "}}",
653
802
  handlebars: "}}",
654
803
  mailchimp: "|*",
655
804
  ampscript: "=%%"
656
805
  };
657
- function Be(e) {
658
- for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return Re[t];
806
+ function st(e) {
807
+ for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return at[t];
659
808
  return null;
660
809
  }
661
- function Ve(e) {
662
- for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return ze[t];
810
+ function ct(e) {
811
+ for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return ot[t];
663
812
  return null;
664
813
  }
665
- function He(e) {
814
+ function lt(e) {
666
815
  return e ? typeof e == "string" ? Y[e] ?? Y.liquid : e : Y.liquid;
667
816
  }
668
817
  function X(e) {
669
818
  let t = e.source, n = e.flags.replace("g", "");
670
819
  return RegExp(`^${t}$`, n);
671
820
  }
672
- function Ue(e, t) {
821
+ function ut(e, t) {
673
822
  let n = e?.trim() || "";
674
823
  return !X(t.logic).test(n) && X(t.value).test(n);
675
824
  }
@@ -677,41 +826,41 @@ function Z(e, t) {
677
826
  let n = t.find((t) => t.value === e);
678
827
  return n ? n.label : e;
679
828
  }
680
- function We(e, t) {
829
+ function dt(e, t) {
681
830
  return $(e, "data-merge-tag", (e) => Z(e, t));
682
831
  }
683
832
  function Q(e, t) {
684
833
  return t.find((t) => t.value === e)?.sample;
685
834
  }
686
- function Ge(e, t) {
687
- return $(e, "data-merge-tag", (e) => Je(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
835
+ function ft(e, t) {
836
+ return $(e, "data-merge-tag", (e) => ht(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
688
837
  }
689
- function Ke(e) {
838
+ function pt(e) {
690
839
  return e.some((e) => e.sample !== void 0);
691
840
  }
692
- function qe(e, t) {
841
+ function mt(e, t) {
693
842
  if (!e) return e;
694
843
  let n = e;
695
844
  for (let e of t) e.sample !== void 0 && (n = n.split(e.value).join(e.sample));
696
845
  return n;
697
846
  }
698
- function Je(e) {
847
+ function ht(e) {
699
848
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
700
849
  }
701
- function Ye(e, t) {
850
+ function gt(e, t) {
702
851
  if (!e) return !1;
703
852
  let n = new RegExp(t.value.source, t.value.flags), r = new RegExp(t.logic.source, t.logic.flags);
704
853
  return n.test(e) || r.test(e);
705
854
  }
706
- function Xe(e, t) {
855
+ function _t(e, t) {
707
856
  return X(t.logic).test(e?.trim() || "");
708
857
  }
709
- function Ze(e, t) {
858
+ function vt(e, t) {
710
859
  let n = new RegExp(t.logic.source, t.logic.flags.replace("g", "")), r = e.match(n);
711
860
  return r && r[1] ? r[1].toUpperCase() : e;
712
861
  }
713
- function Qe(e, t) {
714
- return $(e, "data-logic-merge-tag", (e) => Ze(e, t));
862
+ function yt(e, t) {
863
+ return $(e, "data-logic-merge-tag", (e) => vt(e, t));
715
864
  }
716
865
  function $(e, t, n, r) {
717
866
  let i = "", a = 0;
@@ -726,7 +875,7 @@ function $(e, t, n, r) {
726
875
  i += e.substring(a, o + 5), a = o + 5;
727
876
  continue;
728
877
  }
729
- let c = Ne(e, o + 5);
878
+ let c = Ue(e, o + 5);
730
879
  if (c === -1) {
731
880
  i += e.substring(a);
732
881
  break;
@@ -736,7 +885,7 @@ function $(e, t, n, r) {
736
885
  i += e.substring(a);
737
886
  break;
738
887
  }
739
- let u = Le(e.substring(o + 5, c), t);
888
+ let u = qe(e.substring(o + 5, c), t);
740
889
  if (u === null) {
741
890
  i += e.substring(a, o + 5), a = o + 5;
742
891
  continue;
@@ -746,12 +895,12 @@ function $(e, t, n, r) {
746
895
  }
747
896
  return i;
748
897
  }
749
- function $e(e) {
898
+ function bt(e) {
750
899
  if (typeof e != "object" || !e) return !1;
751
900
  let t = e;
752
901
  return Array.isArray(t.blocks);
753
902
  }
754
- var et = class extends Error {
903
+ var xt = class extends Error {
755
904
  statusCode;
756
905
  constructor(e, t) {
757
906
  super(e), this.statusCode = t, this.name = "SdkError";
@@ -767,4 +916,4 @@ var et = class extends Error {
767
916
  }
768
917
  };
769
918
  //#endregion
770
- export { V as $, D as A, Ke as B, L as C, P as D, be as E, Ze as F, f as G, Xe as H, Z as I, De as J, p as K, Q as L, xe as M, C as N, F as O, T as P, He as Q, Ve as R, k as S, M as T, Ue as U, re as V, $e as W, Qe as X, he as Y, We as Z, z as _, s as a, n as at, j as b, Y as c, t as ct, K as d, ee as et, q as f, A as g, Se as h, x as i, qe as it, N as j, R as k, et as l, G as lt, Ye as m, e as n, te as nt, c as o, r as ot, B as p, m as q, de as r, Ge as rt, l as s, o as st, i as t, ne as tt, je as u, ye as v, O as w, I as x, fe as y, Be as z };
919
+ export { v as $, Ee as A, rt as B, _e as C, V as D, N as E, L as F, ct as G, vt as H, De as I, ae as J, st as K, T as L, z as M, H as N, M as O, j as P, _ as Q, p as R, Te as S, B as T, Z as U, k as V, Q as W, ut as X, _t as Y, bt as Z, gt as _, o as _t, ge as a, it as at, P as b, l as c, lt as ct, xt as d, ie as dt, y as et, c as f, re as ft, U as g, r as gt, Ie as h, n as ht, e as i, be as it, R as j, I as k, m as l, E as lt, Fe as m, mt, f as n, J as nt, C as o, yt as ot, Ve as p, ft as pt, pt as q, i as r, te as rt, s, dt as st, d as t, Le as tt, Y as u, ne as ut, ee as v, t as vt, F as w, Ce as x, Oe as y, Pe as yt, Ze as z };