@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,57 @@ 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
+ ], ee = [
62
+ "top",
63
+ "center",
64
+ "bottom"
65
+ ];
66
+ function te(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 f(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 ne(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 && ee.includes(r.y) ? r.y : "center";
89
+ return {
90
+ url: f(t),
91
+ size: n,
92
+ position: `${i} ${a}`,
93
+ repeat: e.repeat ? "repeat" : "no-repeat"
94
+ };
95
+ }
96
+ //#endregion
97
+ //#region ../types/src/social.ts
98
+ var p = {
54
99
  facebook: {
55
100
  color: "#1877F2",
56
101
  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,93 +164,93 @@ var s = {
119
164
  color: "#1769FF",
120
165
  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
166
  }
122
- }, u = {
167
+ }, m = {
123
168
  dark: "#1f1f1f",
124
169
  light: "#ffffff"
125
170
  };
126
- function d(e) {
171
+ function h(e) {
127
172
  return e === "dark" || e === "light" ? e : void 0;
128
173
  }
129
- function ee(e, t) {
130
- let n = d(t);
174
+ function re(e, t) {
175
+ let n = h(t);
131
176
  return {
132
- fill: n ? u[n] : l[e].color,
133
- onFill: n === "light" ? u.dark : "#ffffff"
177
+ fill: n ? m[n] : p[e].color,
178
+ onFill: n === "light" ? m.dark : "#ffffff"
134
179
  };
135
180
  }
136
- function te(e, t) {
137
- let n = d(t);
181
+ function ie(e, t) {
182
+ let n = h(t);
138
183
  return n ? `${e}-${n}` : e;
139
184
  }
140
- function ne(e, t) {
141
- if (d(t) === "dark" && (e === "plain" || e === "outlined")) return {
142
- color: u.light,
185
+ function ae(e, t) {
186
+ if (h(t) === "dark" && (e === "plain" || e === "outlined")) return {
187
+ color: m.light,
143
188
  opacity: .6,
144
189
  width: 1.4
145
190
  };
146
191
  }
147
- function re(e) {
192
+ function oe(e) {
148
193
  return e === "plain" ? .84 : .6;
149
194
  }
150
195
  //#endregion
151
196
  //#region ../types/src/guards.ts
152
- function f(e) {
197
+ function g(e) {
153
198
  return e.type === "section";
154
199
  }
155
- function ie(e) {
200
+ function se(e) {
156
201
  return e.type === "title";
157
202
  }
158
- function ae(e) {
203
+ function ce(e) {
159
204
  return e.type === "paragraph";
160
205
  }
161
- function oe(e) {
206
+ function le(e) {
162
207
  return e.type === "image";
163
208
  }
164
- function se(e) {
209
+ function ue(e) {
165
210
  return e.type === "button";
166
211
  }
167
- function ce(e) {
212
+ function de(e) {
168
213
  return e.type === "divider";
169
214
  }
170
- function le(e) {
215
+ function fe(e) {
171
216
  return e.type === "video";
172
217
  }
173
- function ue(e) {
218
+ function pe(e) {
174
219
  return e.type === "social";
175
220
  }
176
- function de(e) {
221
+ function me(e) {
177
222
  return e.type === "spacer";
178
223
  }
179
- function fe(e) {
224
+ function he(e) {
180
225
  return e.type === "html";
181
226
  }
182
- function pe(e) {
227
+ function ge(e) {
183
228
  return e.type === "menu";
184
229
  }
185
- function me(e) {
230
+ function _e(e) {
186
231
  return e.type === "table";
187
232
  }
188
- function he(e) {
233
+ function ve(e) {
189
234
  return e.type === "custom";
190
235
  }
191
- function p(e) {
236
+ function _(e) {
192
237
  return e.type === "slot";
193
238
  }
194
- function m(e) {
239
+ function v(e) {
195
240
  return e.type === "wrapper";
196
241
  }
197
242
  //#endregion
198
243
  //#region ../types/src/defaults.ts
199
- var h = {
244
+ var ye = {
200
245
  content: "<p>Enter your title</p>",
201
246
  level: 2,
202
247
  textAlign: "left"
203
- }, g = { content: "<p>Enter your text here</p>" }, _ = {
248
+ }, be = { content: "<p>Enter your text here</p>" }, xe = {
204
249
  src: "",
205
250
  alt: "",
206
251
  width: "full",
207
252
  align: "center"
208
- }, v = {
253
+ }, Se = {
209
254
  text: "Click Here",
210
255
  url: "",
211
256
  backgroundColor: "#333333",
@@ -219,36 +264,36 @@ var h = {
219
264
  left: 24
220
265
  },
221
266
  align: "center"
222
- }, ge = {
267
+ }, y = {
223
268
  lineStyle: "solid",
224
269
  color: "#e0e0e0",
225
270
  thickness: 1,
226
271
  width: "full"
227
- }, _e = { columns: "1" }, ve = {
272
+ }, b = { columns: "1" }, x = {
228
273
  url: "",
229
274
  thumbnailUrl: "",
230
275
  alt: "Video",
231
276
  width: "full",
232
277
  align: "center"
233
- }, y = {
278
+ }, S = {
234
279
  iconStyle: "solid",
235
280
  iconSize: "medium",
236
281
  spacing: 10,
237
282
  align: "center"
238
- }, b = { height: 24 }, x = { content: "" }, S = {
283
+ }, C = { height: 24 }, w = { content: "" }, Ce = {
239
284
  fontSize: 15,
240
285
  textAlign: "center",
241
286
  separator: "|",
242
287
  separatorColor: "#e0e0e0",
243
288
  spacing: 10
244
- }, C = {
289
+ }, we = {
245
290
  hasHeaderRow: !0,
246
291
  borderColor: "#e0e0e0",
247
292
  borderWidth: 1,
248
293
  cellPadding: 8,
249
294
  fontSize: 15,
250
295
  textAlign: "left"
251
- }, w = {
296
+ }, Te = {
252
297
  targetDate: "",
253
298
  timezone: "UTC",
254
299
  showDays: !0,
@@ -268,21 +313,21 @@ var h = {
268
313
  expiredMessage: "This offer has expired",
269
314
  expiredImageUrl: "",
270
315
  hideOnExpiry: !1
271
- }, ye = {
272
- title: h,
273
- paragraph: g,
274
- image: _,
275
- button: v,
276
- divider: ge,
277
- section: _e,
278
- video: ve,
279
- social: y,
280
- spacer: b,
281
- html: x,
282
- menu: S,
283
- table: C,
284
- countdown: w
285
- }, T = {
316
+ }, Ee = {
317
+ title: ye,
318
+ paragraph: be,
319
+ image: xe,
320
+ button: Se,
321
+ divider: y,
322
+ section: b,
323
+ video: x,
324
+ social: S,
325
+ spacer: C,
326
+ html: w,
327
+ menu: Ce,
328
+ table: we,
329
+ countdown: Te
330
+ }, De = {
286
331
  width: 600,
287
332
  backgroundColor: "#ffffff",
288
333
  textColor: "#1a1a1a",
@@ -290,24 +335,24 @@ var h = {
290
335
  fontFamily: "Arial",
291
336
  locale: "en"
292
337
  };
293
- function E(e) {
338
+ function Oe(e) {
294
339
  return typeof e == "object" && !!e && !Array.isArray(e) && Object.getPrototypeOf(e) === Object.prototype;
295
340
  }
296
- function D(e, t) {
341
+ function T(e, t) {
297
342
  let n = { ...e };
298
343
  for (let r of Object.keys(t)) {
299
344
  let i = e[r], a = t[r];
300
- a !== void 0 && (n[r] = E(i) && E(a) ? D(i, a) : a);
345
+ a !== void 0 && (n[r] = Oe(i) && Oe(a) ? T(i, a) : a);
301
346
  }
302
347
  return n;
303
348
  }
304
349
  //#endregion
305
350
  //#region ../types/src/template.ts
306
- function be(e = "Arial", t) {
351
+ function ke(e = "Arial", t) {
307
352
  return {
308
353
  blocks: [],
309
354
  settings: {
310
- ...T,
355
+ ...De,
311
356
  fontFamily: e,
312
357
  ...t
313
358
  }
@@ -315,7 +360,7 @@ function be(e = "Arial", t) {
315
360
  }
316
361
  //#endregion
317
362
  //#region ../types/src/direction.ts
318
- var xe = [
363
+ var Ae = [
319
364
  "ar",
320
365
  "he",
321
366
  "iw",
@@ -329,22 +374,36 @@ var xe = [
329
374
  "ckb",
330
375
  "ks"
331
376
  ];
332
- function Se(e) {
377
+ function je(e) {
333
378
  let t = e?.trim().replace(/_/g, "-").split("-")[0]?.toLowerCase();
334
- return !!t && xe.includes(t);
379
+ return !!t && Ae.includes(t);
335
380
  }
336
- function Ce(e) {
337
- return e.direction === "ltr" || e.direction === "rtl" ? e.direction : Se(e.locale) ? "rtl" : "ltr";
381
+ function Me(e) {
382
+ return e.direction === "ltr" || e.direction === "rtl" ? e.direction : je(e.locale) ? "rtl" : "ltr";
383
+ }
384
+ //#endregion
385
+ //#region ../types/src/clone.ts
386
+ function E(e) {
387
+ let t = [];
388
+ return JSON.parse(JSON.stringify(e, function(e, n) {
389
+ if (typeof n != "object" || !n) return n;
390
+ for (; t.length > 0 && t[t.length - 1] !== this;) t.pop();
391
+ if (!t.includes(n)) return t.push(n), n;
392
+ }));
338
393
  }
339
394
  //#endregion
340
395
  //#region ../types/src/factory.ts
341
- function O(e, t) {
342
- return !t || Object.keys(t).length === 0 ? e : D(e, t);
396
+ function D(e, t) {
397
+ let n = E(e);
398
+ return !t || Object.keys(t).length === 0 ? n : T(n, t);
399
+ }
400
+ function O(e) {
401
+ return e === void 0 ? void 0 : E(e);
343
402
  }
344
403
  function k() {
345
404
  return crypto.randomUUID();
346
405
  }
347
- function we(e = 0) {
406
+ function Ne(e = 0) {
348
407
  return {
349
408
  top: e,
350
409
  right: e,
@@ -353,100 +412,100 @@ function we(e = 0) {
353
412
  };
354
413
  }
355
414
  function A(e = 10) {
356
- return { padding: we(e) };
415
+ return { padding: Ne(e) };
357
416
  }
358
417
  function j(e = {}) {
359
- return O({
418
+ return D({
360
419
  id: k(),
361
420
  type: "title",
362
- ...h,
421
+ ...ye,
363
422
  styles: A()
364
423
  }, e);
365
424
  }
366
425
  function M(e = {}) {
367
- return O({
426
+ return D({
368
427
  id: k(),
369
428
  type: "paragraph",
370
- ...g,
429
+ ...be,
371
430
  styles: A()
372
431
  }, e);
373
432
  }
374
433
  function N(e = {}) {
375
- return O({
434
+ return D({
376
435
  id: k(),
377
436
  type: "image",
378
- ..._,
437
+ ...xe,
379
438
  styles: A()
380
439
  }, e);
381
440
  }
382
441
  function P(e = {}) {
383
- return O({
442
+ return D({
384
443
  id: k(),
385
444
  type: "button",
386
- ...v,
445
+ ...Se,
387
446
  styles: A()
388
447
  }, e);
389
448
  }
390
449
  function F(e = {}) {
391
- return O({
450
+ return D({
392
451
  id: k(),
393
452
  type: "divider",
394
- ...ge,
453
+ ...y,
395
454
  styles: A(20)
396
455
  }, e);
397
456
  }
398
457
  function I(e = {}) {
399
- return O({
458
+ return D({
400
459
  id: k(),
401
460
  type: "section",
402
- ..._e,
461
+ ...b,
403
462
  children: [[]],
404
463
  styles: A(20)
405
464
  }, e);
406
465
  }
407
466
  function L(e = {}) {
408
- return O({
467
+ return D({
409
468
  id: k(),
410
469
  type: "video",
411
- ...ve,
470
+ ...x,
412
471
  styles: A()
413
472
  }, e);
414
473
  }
415
474
  function R(e = {}) {
416
- return O({
475
+ return D({
417
476
  id: k(),
418
477
  type: "social",
419
478
  icons: [],
420
- ...y,
479
+ ...S,
421
480
  styles: A()
422
481
  }, e);
423
482
  }
424
483
  function z(e = {}) {
425
- return O({
484
+ return D({
426
485
  id: k(),
427
486
  type: "spacer",
428
- ...b,
487
+ ...C,
429
488
  styles: A(0)
430
489
  }, e);
431
490
  }
432
- function Te(e = {}) {
433
- return O({
491
+ function B(e = {}) {
492
+ return D({
434
493
  id: k(),
435
494
  type: "html",
436
- ...x,
495
+ ...w,
437
496
  styles: A()
438
497
  }, e);
439
498
  }
440
- function B(e = {}) {
441
- return O({
499
+ function V(e = {}) {
500
+ return D({
442
501
  id: k(),
443
502
  type: "menu",
444
503
  items: [],
445
- ...S,
504
+ ...Ce,
446
505
  styles: A()
447
506
  }, e);
448
507
  }
449
- function Ee(e, t) {
508
+ function Pe(e, t) {
450
509
  return Array.from({ length: t }, () => ({
451
510
  id: k(),
452
511
  cells: Array.from({ length: e }, () => ({
@@ -455,30 +514,30 @@ function Ee(e, t) {
455
514
  }))
456
515
  }));
457
516
  }
458
- function V(e = {}) {
459
- return O({
517
+ function H(e = {}) {
518
+ return D({
460
519
  id: k(),
461
520
  type: "table",
462
- rows: Ee(3, 3),
463
- ...C,
521
+ rows: Pe(3, 3),
522
+ ...we,
464
523
  styles: A()
465
524
  }, e);
466
525
  }
467
- function H(e = {}) {
468
- return O({
526
+ function U(e = {}) {
527
+ return D({
469
528
  id: k(),
470
529
  type: "countdown",
471
- ...w,
530
+ ...Te,
472
531
  styles: A()
473
532
  }, e);
474
533
  }
475
- function De(e) {
534
+ function Fe(e) {
476
535
  return e.type === "repeatable" ? e.default ?? [] : e.type === "boolean" ? e.default ?? !1 : e.type === "number" ? e.default ?? 0 : e.default ?? "";
477
536
  }
478
- function Oe(e) {
537
+ function Ie(e) {
479
538
  let t = {};
480
- for (let n of e.fields) t[n.key] = De(n);
481
- let n = O(A(), e.defaultStyles);
539
+ for (let n of e.fields) t[n.key] = O(Fe(n));
540
+ let n = D(A(), O(e.defaultStyles));
482
541
  return {
483
542
  id: k(),
484
543
  type: "custom",
@@ -488,152 +547,148 @@ function Oe(e) {
488
547
  ...e.dataSource ? { dataSourceFetched: !1 } : {}
489
548
  };
490
549
  }
491
- function ke() {
550
+ function Le() {
492
551
  return {
493
552
  id: k(),
494
553
  type: "slot",
495
554
  styles: A(0)
496
555
  };
497
556
  }
498
- function Ae(e = {}) {
499
- return O({
557
+ function Re(e = {}) {
558
+ return D({
500
559
  id: k(),
501
560
  type: "wrapper",
502
561
  children: [],
503
562
  styles: A(0)
504
563
  }, e);
505
564
  }
506
- function je(e, t) {
565
+ function ze(e, t) {
507
566
  switch (e) {
508
- case "section": return I(t?.section);
509
- case "title": return j(t?.title);
510
- case "paragraph": return M(t?.paragraph);
511
- case "image": return N(t?.image);
512
- case "button": return P(t?.button);
513
- case "divider": return F(t?.divider);
514
- case "video": return L(t?.video);
515
- case "social": return R(t?.social);
516
- case "spacer": return z(t?.spacer);
517
- case "html": return Te(t?.html);
518
- case "menu": return B(t?.menu);
519
- case "table": return V(t?.table);
520
- case "countdown": return H(t?.countdown);
567
+ case "section": return I(O(t?.section));
568
+ case "title": return j(O(t?.title));
569
+ case "paragraph": return M(O(t?.paragraph));
570
+ case "image": return N(O(t?.image));
571
+ case "button": return P(O(t?.button));
572
+ case "divider": return F(O(t?.divider));
573
+ case "video": return L(O(t?.video));
574
+ case "social": return R(O(t?.social));
575
+ case "spacer": return z(O(t?.spacer));
576
+ case "html": return B(O(t?.html));
577
+ case "menu": return V(O(t?.menu));
578
+ case "table": return H(O(t?.table));
579
+ case "countdown": return U(O(t?.countdown));
521
580
  case "slot": throw Error("[Templatical] slot cannot be inserted into content. Use createSlotBlock() to build a layout.");
522
581
  case "wrapper": throw Error("[Templatical] wrapper cannot be inserted into content. Use createWrapperBlock() to build a layout.");
523
582
  default: throw Error(`Unknown block type: ${e}`);
524
583
  }
525
584
  }
526
- function U(e) {
527
- let t = JSON.parse(JSON.stringify(e));
528
- return t.id = k(), 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;
529
- }
530
- //#endregion
531
- //#region ../types/src/clone.ts
532
585
  function W(e) {
533
- let t = [];
534
- return JSON.parse(JSON.stringify(e, function(e, n) {
535
- if (typeof n != "object" || !n) return n;
536
- for (; t.length > 0 && t[t.length - 1] !== this;) t.pop();
537
- if (!t.includes(n)) return t.push(n), n;
538
- }));
586
+ let t = JSON.parse(JSON.stringify(e));
587
+ if (t.id = k(), t.type === "table") for (let e of t.rows) {
588
+ e.id = k();
589
+ for (let t of e.cells) t.id = k();
590
+ }
591
+ if (t.type === "menu") for (let e of t.items) e.id = k();
592
+ if (t.type === "social") for (let e of t.icons) e.id = k();
593
+ return t.type === "section" && (t.children = t.children.map((e) => e.map((e) => W(e)))), t.type === "wrapper" && (t.children = t.children.map((e) => W(e))), t;
539
594
  }
540
595
  //#endregion
541
596
  //#region ../types/src/layout.ts
542
- var G = "[Templatical] layout: must contain exactly one slot block", Me = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", Ne = "[Templatical] layout: a wrapper cannot contain a wrapper", Pe = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", Fe = "[Templatical] slot is not a valid content block", Ie = "[Templatical] wrapper is not a valid content block";
597
+ var G = "[Templatical] layout: must contain exactly one slot block", Be = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", Ve = "[Templatical] layout: a wrapper cannot contain a wrapper", He = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", Ue = "[Templatical] slot is not a valid content block", We = "[Templatical] wrapper is not a valid content block";
543
598
  function K(e, t, n = null, r = !1) {
544
- for (let i of e) if (t(i, n, r), f(i)) for (let e of i.children) K(e, t, i, !0);
545
- else m(i) && K(i.children, t, i, r);
599
+ for (let i of e) if (t(i, n, r), g(i)) for (let e of i.children) K(e, t, i, !0);
600
+ else v(i) && K(i.children, t, i, r);
546
601
  }
547
- function Le(e) {
602
+ function Ge(e) {
548
603
  let t = 0;
549
604
  if (K(e.blocks, (e, n, r) => {
550
- if (p(e) && (t += 1, r)) throw Error(Me);
551
- if (m(e)) {
552
- if (r) throw Error(Me);
553
- if (e.children.some(m)) throw Error(Ne);
605
+ if (_(e) && (t += 1, r)) throw Error(Be);
606
+ if (v(e)) {
607
+ if (r) throw Error(Be);
608
+ if (e.children.some(v)) throw Error(Ve);
554
609
  }
555
610
  }), t !== 1) throw Error(G);
556
611
  }
557
- function Re(e) {
612
+ function Ke(e) {
558
613
  K(e.blocks, (e) => {
559
- if (p(e)) throw Error(Fe);
614
+ if (_(e)) throw Error(Ue);
560
615
  });
561
616
  }
562
- function ze(e) {
617
+ function qe(e) {
563
618
  K(e.blocks, (e) => {
564
- if (m(e)) throw Error(Ie);
619
+ if (v(e)) throw Error(We);
565
620
  });
566
621
  }
567
- function Be(e) {
622
+ function Je(e) {
568
623
  let t = !1;
569
624
  return K(e.blocks, (e, n) => {
570
- p(e) && n !== null && m(n) && (t = !0);
625
+ _(e) && n !== null && v(n) && (t = !0);
571
626
  }), t;
572
627
  }
573
- function Ve(e) {
574
- if (p(e)) return e;
575
- if (m(e)) {
576
- let t = U({
628
+ function Ye(e) {
629
+ if (_(e)) return e;
630
+ if (v(e)) {
631
+ let t = W({
577
632
  ...e,
578
633
  children: []
579
634
  });
580
- return t.children = e.children.map(Ve), t;
635
+ return t.children = e.children.map(Ye), t;
581
636
  }
582
- return U(e);
637
+ return W(e);
583
638
  }
584
- function He(e) {
639
+ function Xe(e) {
585
640
  for (let t = 0; t < e.length; t++) {
586
641
  let n = e[t];
587
- if (p(n)) return {
642
+ if (_(n)) return {
588
643
  parent: e,
589
644
  index: t
590
645
  };
591
- if (m(n)) {
592
- let e = He(n.children);
646
+ if (v(n)) {
647
+ let e = Xe(n.children);
593
648
  if (e) return e;
594
649
  }
595
650
  }
596
651
  return null;
597
652
  }
598
- function Ue(e) {
599
- for (let t of e) if (f(t)) {
653
+ function Ze(e) {
654
+ for (let t of e) if (g(t)) {
600
655
  if (t.wrapper) return !0;
601
- for (let e of t.children) if (Ue(e)) return !0;
656
+ for (let e of t.children) if (Ze(e)) return !0;
602
657
  }
603
658
  return !1;
604
659
  }
605
- function We(e, t) {
606
- if (Le(e), Re(t), ze(t), Be(e) && Ue(t.blocks)) throw Error(Pe);
607
- let n = e.blocks.map(Ve), r = He(n);
660
+ function Qe(e, t) {
661
+ if (Ge(e), Ke(t), qe(t), Je(e) && Ze(t.blocks)) throw Error(He);
662
+ let n = e.blocks.map(Ye), r = Xe(n);
608
663
  if (!r) throw Error(G);
609
- return r.parent.splice(r.index, 1, ...W(t.blocks)), {
664
+ return r.parent.splice(r.index, 1, ...E(t.blocks)), {
610
665
  blocks: n,
611
666
  settings: {
612
- ...W(t.settings),
667
+ ...E(t.settings),
613
668
  backgroundColor: e.settings.backgroundColor
614
669
  }
615
670
  };
616
671
  }
617
672
  //#endregion
618
673
  //#region ../types/src/html-scan.ts
619
- var Ge = /* @__PURE__ */ new Set(["\"", "'"]);
620
- function q(e, t) {
674
+ var $e = /* @__PURE__ */ new Set(["\"", "'"]);
675
+ function et(e, t) {
621
676
  let n = null;
622
677
  for (let r = t; r < e.length; r++) {
623
678
  let t = e[r];
624
679
  if (n !== null) t === n && (n = null);
625
- else if (Ge.has(t)) n = t;
680
+ else if ($e.has(t)) n = t;
626
681
  else if (t === ">") return r;
627
682
  }
628
683
  return -1;
629
684
  }
630
- function Ke(e) {
685
+ function tt(e) {
631
686
  return e !== " " && e !== " " && e !== "\n" && e !== "\r" && e !== "\f" && e !== "=" && e !== ">" && e !== "/";
632
687
  }
633
- function J(e) {
688
+ function q(e) {
634
689
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
635
690
  }
636
- var qe = {
691
+ var nt = {
637
692
  amp: "&",
638
693
  lt: "<",
639
694
  gt: ">",
@@ -641,45 +696,145 @@ var qe = {
641
696
  apos: "'",
642
697
  nbsp: "\xA0"
643
698
  };
644
- function Je(e) {
699
+ function rt(e) {
645
700
  return e.includes("&") ? e.replace(/&(#[0-9]+|#[xX][0-9a-fA-F]+|[a-zA-Z][a-zA-Z0-9]*);/g, (e, t) => {
646
701
  if (t[0] === "#") {
647
702
  let n = t[1] === "x" || t[1] === "X" ? Number.parseInt(t.slice(2), 16) : Number.parseInt(t.slice(1), 10);
648
703
  return !Number.isFinite(n) || n < 1 || n > 1114111 || n >= 55296 && n <= 57343 ? e : String.fromCodePoint(n);
649
704
  }
650
- return qe[t.toLowerCase()] ?? e;
705
+ return nt[t.toLowerCase()] ?? e;
651
706
  }) : e;
652
707
  }
653
- function Ye(e, t) {
708
+ function it(e, t) {
654
709
  let n = t.toLowerCase(), r = 0;
655
710
  for (; r < e.length;) {
656
- for (; r < e.length && (J(e[r]) || e[r] === "/");) r++;
711
+ for (; r < e.length && (q(e[r]) || e[r] === "/");) r++;
657
712
  if (r >= e.length) break;
658
713
  let t = r;
659
- for (; r < e.length && Ke(e[r]);) r++;
714
+ for (; r < e.length && tt(e[r]);) r++;
660
715
  let i = e.substring(t, r).toLowerCase();
661
716
  if (i === "") {
662
717
  r++;
663
718
  continue;
664
719
  }
665
- for (; r < e.length && J(e[r]);) r++;
720
+ for (; r < e.length && q(e[r]);) r++;
666
721
  if (e[r] !== "=") continue;
667
- for (r++; r < e.length && J(e[r]);) r++;
722
+ for (r++; r < e.length && q(e[r]);) r++;
668
723
  let a = e[r];
669
- if (Ge.has(a)) {
724
+ if ($e.has(a)) {
670
725
  let t = r + 1, o = e.indexOf(a, t);
671
726
  if (o === -1) return null;
672
- if (i === n) return Je(e.substring(t, o));
727
+ if (i === n) return rt(e.substring(t, o));
673
728
  r = o + 1;
674
729
  continue;
675
730
  }
676
731
  let o = r;
677
- for (; r < e.length && !J(e[r]) && e[r] !== ">";) r++;
678
- if (i === n) return Je(e.substring(o, r));
732
+ for (; r < e.length && !q(e[r]) && e[r] !== ">";) r++;
733
+ if (i === n) return rt(e.substring(o, r));
679
734
  }
680
735
  return null;
681
736
  }
682
737
  //#endregion
738
+ //#region ../types/src/rich-text.ts
739
+ var at = /<\/?p\b[^<>]*>/gi, ot = /<p\b([^<>]*)>\s*<\/p>/gi;
740
+ function st(e) {
741
+ return e.replace(at, "").trim() === "";
742
+ }
743
+ function ct(e) {
744
+ return st(e) ? e : e.replace(ot, "<p$1>&nbsp;</p>");
745
+ }
746
+ //#endregion
747
+ //#region ../types/src/fonts.ts
748
+ var lt = {
749
+ arial: "Arial, sans-serif",
750
+ helvetica: "Helvetica, sans-serif",
751
+ georgia: "Georgia, serif",
752
+ "times new roman": "'Times New Roman', serif",
753
+ verdana: "Verdana, sans-serif",
754
+ "trebuchet ms": "'Trebuchet MS', sans-serif",
755
+ "courier new": "'Courier New', monospace",
756
+ tahoma: "Tahoma, sans-serif"
757
+ }, ut = /* @__PURE__ */ new Set([
758
+ "inherit",
759
+ "initial",
760
+ "unset",
761
+ "revert",
762
+ "revert-layer"
763
+ ]), dt = /* @__PURE__ */ new Set([
764
+ "serif",
765
+ "sans-serif",
766
+ "monospace",
767
+ "cursive",
768
+ "fantasy",
769
+ "system-ui",
770
+ "ui-serif",
771
+ "ui-sans-serif",
772
+ "ui-monospace",
773
+ "ui-rounded",
774
+ "emoji",
775
+ "math",
776
+ "fangsong"
777
+ ]);
778
+ function ft(e) {
779
+ return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
780
+ }
781
+ function J(e) {
782
+ if (typeof e != "string") return [];
783
+ let t = e.replace(/!\s*important\s*$/i, ""), n = [], r = 0;
784
+ for (;;) {
785
+ for (; r < t.length && ft(t[r]);) r++;
786
+ if (r >= t.length) return [];
787
+ let e = t[r];
788
+ if (e === "\"" || e === "'") {
789
+ let i = "", a = r + 1, o = !1;
790
+ for (; a < t.length;) {
791
+ let n = t[a];
792
+ if (n === "\\" && a + 1 < t.length) i += t[a + 1], a += 2;
793
+ else {
794
+ if (n === e) {
795
+ o = !0, a++;
796
+ break;
797
+ }
798
+ i += n, a++;
799
+ }
800
+ }
801
+ if (!o) return [];
802
+ for (; a < t.length && ft(t[a]);) a++;
803
+ if (a < t.length && t[a] !== ",") return [];
804
+ n.push({
805
+ name: i,
806
+ quoted: !0
807
+ }), r = a;
808
+ } else {
809
+ let e = t.indexOf(",", r), i = e === -1 ? t.length : e, a = t.slice(r, i).trim().split(/\s+/).join(" ");
810
+ if (a === "" || a.includes("\"") || a.includes("'") || ut.has(a.toLowerCase())) return [];
811
+ n.push({
812
+ name: a,
813
+ quoted: !1
814
+ }), r = i;
815
+ }
816
+ if (r >= t.length) return n;
817
+ r++;
818
+ }
819
+ }
820
+ function pt(e) {
821
+ return `'${e.replace(/\\/g, "\\\\").replace(/'/g, "\\'")}'`;
822
+ }
823
+ function mt(e) {
824
+ return !e.quoted && dt.has(e.name.toLowerCase());
825
+ }
826
+ function ht(e) {
827
+ return J(e)[0]?.name ?? "";
828
+ }
829
+ function gt(e, t) {
830
+ let n = (e) => `${pt(e.name)}, ${e.fallback ?? t.defaultFallback}`, r = typeof e == "string" ? e.trim().toLowerCase() : "", i = t.customFonts.find((e) => e.name.toLowerCase() === r);
831
+ if (i) return n(i);
832
+ let a = J(e);
833
+ if (a.length !== 1) return e;
834
+ let [o] = a, s = o.name.toLowerCase(), c = t.customFonts.find((e) => e.name.toLowerCase() === s);
835
+ return c ? n(c) : lt[s] || (mt(o) ? e : `${pt(o.name)}, ${t.defaultFallback}`);
836
+ }
837
+ //#endregion
683
838
  //#region ../types/src/merge-tags.ts
684
839
  var Y = {
685
840
  liquid: {
@@ -698,33 +853,33 @@ var Y = {
698
853
  value: /%%=.+?=%%/g,
699
854
  logic: /%%\[\s*(\w+).*?\]%%/g
700
855
  }
701
- }, Xe = {
856
+ }, _t = {
702
857
  liquid: "{{",
703
858
  handlebars: "{{",
704
859
  mailchimp: "*|",
705
860
  ampscript: "%%="
706
- }, Ze = {
861
+ }, vt = {
707
862
  liquid: "}}",
708
863
  handlebars: "}}",
709
864
  mailchimp: "|*",
710
865
  ampscript: "=%%"
711
866
  };
712
- function Qe(e) {
713
- for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return Xe[t];
867
+ function yt(e) {
868
+ for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return _t[t];
714
869
  return null;
715
870
  }
716
- function $e(e) {
717
- for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return Ze[t];
871
+ function bt(e) {
872
+ for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return vt[t];
718
873
  return null;
719
874
  }
720
- function et(e) {
875
+ function xt(e) {
721
876
  return e ? typeof e == "string" ? Y[e] ?? Y.liquid : e : Y.liquid;
722
877
  }
723
878
  function X(e) {
724
879
  let t = e.source, n = e.flags.replace("g", "");
725
880
  return RegExp(`^${t}$`, n);
726
881
  }
727
- function tt(e, t) {
882
+ function St(e, t) {
728
883
  let n = e?.trim() || "";
729
884
  return !X(t.logic).test(n) && X(t.value).test(n);
730
885
  }
@@ -732,41 +887,41 @@ function Z(e, t) {
732
887
  let n = t.find((t) => t.value === e);
733
888
  return n ? n.label : e;
734
889
  }
735
- function nt(e, t) {
890
+ function Ct(e, t) {
736
891
  return $(e, "data-merge-tag", (e) => Z(e, t));
737
892
  }
738
893
  function Q(e, t) {
739
894
  return t.find((t) => t.value === e)?.sample;
740
895
  }
741
- function rt(e, t) {
742
- return $(e, "data-merge-tag", (e) => ot(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
896
+ function wt(e, t) {
897
+ return $(e, "data-merge-tag", (e) => Dt(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
743
898
  }
744
- function it(e) {
899
+ function Tt(e) {
745
900
  return e.some((e) => e.sample !== void 0);
746
901
  }
747
- function at(e, t) {
902
+ function Et(e, t) {
748
903
  if (!e) return e;
749
904
  let n = e;
750
905
  for (let e of t) e.sample !== void 0 && (n = n.split(e.value).join(e.sample));
751
906
  return n;
752
907
  }
753
- function ot(e) {
908
+ function Dt(e) {
754
909
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
755
910
  }
756
- function st(e, t) {
911
+ function Ot(e, t) {
757
912
  if (!e) return !1;
758
913
  let n = new RegExp(t.value.source, t.value.flags), r = new RegExp(t.logic.source, t.logic.flags);
759
914
  return n.test(e) || r.test(e);
760
915
  }
761
- function ct(e, t) {
916
+ function kt(e, t) {
762
917
  return X(t.logic).test(e?.trim() || "");
763
918
  }
764
- function lt(e, t) {
919
+ function At(e, t) {
765
920
  let n = new RegExp(t.logic.source, t.logic.flags.replace("g", "")), r = e.match(n);
766
921
  return r && r[1] ? r[1].toUpperCase() : e;
767
922
  }
768
- function ut(e, t) {
769
- return $(e, "data-logic-merge-tag", (e) => lt(e, t));
923
+ function jt(e, t) {
924
+ return $(e, "data-logic-merge-tag", (e) => At(e, t));
770
925
  }
771
926
  function $(e, t, n, r) {
772
927
  let i = "", a = 0;
@@ -781,7 +936,7 @@ function $(e, t, n, r) {
781
936
  i += e.substring(a, o + 5), a = o + 5;
782
937
  continue;
783
938
  }
784
- let c = q(e, o + 5);
939
+ let c = et(e, o + 5);
785
940
  if (c === -1) {
786
941
  i += e.substring(a);
787
942
  break;
@@ -791,7 +946,7 @@ function $(e, t, n, r) {
791
946
  i += e.substring(a);
792
947
  break;
793
948
  }
794
- let u = Ye(e.substring(o + 5, c), t);
949
+ let u = it(e.substring(o + 5, c), t);
795
950
  if (u === null) {
796
951
  i += e.substring(a, o + 5), a = o + 5;
797
952
  continue;
@@ -803,12 +958,12 @@ function $(e, t, n, r) {
803
958
  }
804
959
  //#endregion
805
960
  //#region ../types/src/preview-resolution.ts
806
- function dt(e) {
961
+ function Mt(e) {
807
962
  return typeof e != "object" || !e ? !1 : Array.isArray(e.blocks);
808
963
  }
809
964
  //#endregion
810
965
  //#region ../types/src/config.ts
811
- var ft = class extends Error {
966
+ var Nt = class extends Error {
812
967
  statusCode;
813
968
  constructor(e, t) {
814
969
  super(e), this.statusCode = t, this.name = "SdkError";
@@ -824,6 +979,6 @@ var ft = class extends Error {
824
979
  }
825
980
  };
826
981
  //#endregion
827
- export { fe as $, Oe as A, V as B, Be as C, t as Ct, je as D, U as E, M as F, Ce as G, L as H, I, T as J, be as K, ke as L, Te as M, N, P as O, B as P, ce as Q, R, ze as S, o as St, W as T, Ae as U, j as V, k as W, se as X, D as Y, he as Z, at as _, e as _t, lt as a, ue as at, We as b, n as bt, $e as c, ie as ct, ct as d, l as dt, oe as et, tt as f, te as ft, rt as g, i as gt, et as h, ne as ht, st as i, p as it, F as j, H as k, Qe as l, le as lt, nt as m, re as mt, dt as n, ae as nt, Z as o, de as ot, ut as p, ee as pt, ye as q, Y as r, f as rt, Q as s, me as st, ft as t, pe as tt, it as u, m as ut, q as v, s as vt, Le as w, Re as x, r as xt, Ye as y, c as yt, z };
982
+ export { De as $, W as A, c as At, I as B, et as C, te as Ct, qe as D, e as Dt, Ke as E, i as Et, F, j as G, R as H, B as I, k as J, L as K, N as L, P as M, r as Mt, U as N, o as Nt, Je as O, s as Ot, Ie as P, t as Pt, Ee as Q, V as R, st as S, ee as St, Qe as T, ne as Tt, z as U, Le as V, H as W, Me as X, E as Y, ke as Z, Et as _, ie as _t, At as a, le as at, gt as b, ae as bt, bt as c, g as ct, kt as d, me as dt, T as et, St as f, _e as ft, wt as g, p as gt, xt as h, v as ht, Ot as i, he as it, ze as j, n as jt, Ge as k, l as kt, yt as l, _ as lt, Ct as m, fe as mt, Mt as n, ve as nt, Z as o, ge as ot, jt as p, se as pt, Re as q, Y as r, de as rt, Q as s, ce as st, Nt as t, ue as tt, Tt as u, pe as ut, ht as v, re as vt, it as w, f as wt, ct as x, d as xt, J as y, oe as yt, M as z };
828
983
 
829
- //# sourceMappingURL=src-BcqNlDMe.js.map
984
+ //# sourceMappingURL=src-BnJlDuyB.js.map