@templatical/editor 0.46.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 (305) hide show
  1. package/dist/{AiChatSidebar-DGcH4Lyo.js → AiChatSidebar-BPOv5Ra8.js} +14 -14
  2. package/dist/{AiFeatureMenu-B4q-0g1S.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-ehMYJP68.js → CloudHeaderExtras-gXsTYoGG.js} +5 -5
  6. package/dist/{CloudPanels-BwOaAlKz.js → CloudPanels-H_GdbOfZ.js} +9 -9
  7. package/dist/{CollaboratorBar-qOZFRNPx.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-BeF21SeB.js → CountdownToolbar-DVuucA3v.js} +7 -7
  12. package/dist/{DesignReferenceSidebar-zH93uB15.js → DesignReferenceSidebar-DxNV4lQp.js} +12 -12
  13. package/dist/{IssuesPanel-Dltw9haP.js → IssuesPanel-CUpW54P4.js} +8 -8
  14. package/dist/{LoadingTrack-DROqNuuD.js → LoadingTrack-6XsqodoY.js} +1 -1
  15. package/dist/{LogicTagInsertButton-CHa-UD76.js → LogicTagInsertButton-DDYKnqmj.js} +13 -13
  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-B3ntd4dN.js → MergeTagInput-DAL998tx.js} +3 -3
  19. package/dist/{MergeTagModeToggle-C_06ZL0Q.js → MergeTagModeToggle-CjHO26rb.js} +7 -7
  20. package/dist/{ParagraphEditor-CxuW3TV0.js → ParagraphEditor-CcEN1N6n.js} +165 -150
  21. package/dist/{RestoreVersionDialog-B1n37M1Z.js → RestoreVersionDialog-B2OH5rgs.js} +6 -6
  22. package/dist/{RichTextEditorContent-CP_uULWB.js → RichTextEditorContent-BGeTg-QL.js} +12 -12
  23. package/dist/{SaveBlockDialog-BSKX_7_v.js → SaveBlockDialog-CCVyU-7y.js} +13 -13
  24. package/dist/{SavedBlocksBrowserModal-CHKrH1gO.js → SavedBlocksBrowserModal-_WmSeqIh.js} +14 -14
  25. package/dist/{SavedBlocksPanels-B-xDqBcz.js → SavedBlocksPanels-DVX_ruQ7.js} +2 -2
  26. package/dist/{SavedBlocksPickBar-D2J-g82g.js → SavedBlocksPickBar-DVJC28hP.js} +5 -5
  27. package/dist/{TemplateScoringPanel-3lHzuCl0.js → TemplateScoringPanel-U0QFiwdI.js} +16 -16
  28. package/dist/{TemplateSettings-D07K_Y4m.js → TemplateSettings-CdhTm9JQ.js} +12 -12
  29. package/dist/{TestEmailModal-BNPw_lID.js → TestEmailModal-BqToA_ls.js} +14 -14
  30. package/dist/{TestEmailPanel-8klWo8hE.js → TestEmailPanel-Cn4Ptq0j.js} +2 -2
  31. package/dist/{TitleEditor-CmC9OuhA.js → TitleEditor-CZdqeltH.js} +13 -13
  32. package/dist/{ToggleSwitch-COeyWGfT.js → ToggleSwitch-BR8Sgzib.js} +2 -2
  33. package/dist/{Toolbar-CqhRb6EM.js → Toolbar-OGakTBEg.js} +747 -628
  34. package/dist/{TplModal-BGFawHY9.js → TplModal-CoczSDma.js} +6 -6
  35. package/dist/{VersionHistoryMenu-D7zaTMrb.js → VersionHistoryMenu-DY5z5FZr.js} +10 -10
  36. package/dist/{VersionHistoryPanels-DdbGjEOR.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-CVKo6V_v.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-kCK4NZM9.js → AiChatSidebar-B72rI0be.js} +12 -12
  43. package/dist/cdn/chunks/{AiChatSidebar-kCK4NZM9.js.map → AiChatSidebar-B72rI0be.js.map} +1 -1
  44. package/dist/cdn/chunks/{AiFeatureMenu-K1dLeDft.js → AiFeatureMenu-BqSG9iEd.js} +6 -6
  45. package/dist/cdn/chunks/{AiFeatureMenu-K1dLeDft.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-5ONQ1RCa.js → CloudHeaderExtras-DJXLTUHc.js} +5 -5
  51. package/dist/cdn/chunks/{CloudHeaderExtras-5ONQ1RCa.js.map → CloudHeaderExtras-DJXLTUHc.js.map} +1 -1
  52. package/dist/cdn/chunks/{CloudPanels-_irSdWbi.js → CloudPanels-D1fPLjG8.js} +8 -8
  53. package/dist/cdn/chunks/{CloudPanels-_irSdWbi.js.map → CloudPanels-D1fPLjG8.js.map} +1 -1
  54. package/dist/cdn/chunks/{CollaboratorBar-CZufI1On.js → CollaboratorBar-MeRQB1eN.js} +5 -5
  55. package/dist/cdn/chunks/{CollaboratorBar-CZufI1On.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-BaXCefQM.js → CountdownToolbar-DPIOtlN0.js} +8 -8
  63. package/dist/cdn/chunks/{CountdownToolbar-BaXCefQM.js.map → CountdownToolbar-DPIOtlN0.js.map} +1 -1
  64. package/dist/cdn/chunks/{DesignReferenceSidebar-GjkpHylX.js → DesignReferenceSidebar-BgTNqgCy.js} +8 -8
  65. package/dist/cdn/chunks/{DesignReferenceSidebar-GjkpHylX.js.map → DesignReferenceSidebar-BgTNqgCy.js.map} +1 -1
  66. package/dist/cdn/chunks/{IssuesPanel-C1Lv2y_O.js → IssuesPanel-BGjLcNpQ.js} +6 -6
  67. package/dist/cdn/chunks/{IssuesPanel-C1Lv2y_O.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-BYjdrDnQ.js → LogicTagInsertButton-BEsqPhMr.js} +11 -11
  71. package/dist/cdn/chunks/{LogicTagInsertButton-BYjdrDnQ.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-Cx67J_vg.js → MergeTagInput-Dy13_OLc.js} +4 -4
  77. package/dist/cdn/chunks/{MergeTagInput-Cx67J_vg.js.map → MergeTagInput-Dy13_OLc.js.map} +1 -1
  78. package/dist/cdn/chunks/{MergeTagModeToggle-DZ4EuXVp.js → MergeTagModeToggle-B2CPZOeF.js} +6 -6
  79. package/dist/cdn/chunks/{MergeTagModeToggle-DZ4EuXVp.js.map → MergeTagModeToggle-B2CPZOeF.js.map} +1 -1
  80. package/dist/cdn/chunks/{ParagraphEditor-DndEFXmR.js → ParagraphEditor-BGLIw7kg.js} +91 -76
  81. package/dist/cdn/chunks/ParagraphEditor-BGLIw7kg.js.map +1 -0
  82. package/dist/cdn/chunks/{RestoreVersionDialog-CFYs13a4.js → RestoreVersionDialog-BhykE8En.js} +8 -8
  83. package/dist/cdn/chunks/{RestoreVersionDialog-CFYs13a4.js.map → RestoreVersionDialog-BhykE8En.js.map} +1 -1
  84. package/dist/cdn/chunks/{RichTextEditorContent-DKkDQ0dc.js → RichTextEditorContent-B-txUvPL.js} +11 -11
  85. package/dist/cdn/chunks/{RichTextEditorContent-DKkDQ0dc.js.map → RichTextEditorContent-B-txUvPL.js.map} +1 -1
  86. package/dist/cdn/chunks/{SaveBlockDialog-BOA2RaC_.js → SaveBlockDialog-BHqEp7jw.js} +40 -40
  87. package/dist/cdn/chunks/{SaveBlockDialog-BOA2RaC_.js.map → SaveBlockDialog-BHqEp7jw.js.map} +1 -1
  88. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DQDVek3K.js → SavedBlocksBrowserModal-BhR6AI0f.js} +10 -10
  89. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DQDVek3K.js.map → SavedBlocksBrowserModal-BhR6AI0f.js.map} +1 -1
  90. package/dist/cdn/chunks/{SavedBlocksPanels-Lu3tJ3QA.js → SavedBlocksPanels-YwffJtfY.js} +3 -3
  91. package/dist/cdn/chunks/{SavedBlocksPanels-Lu3tJ3QA.js.map → SavedBlocksPanels-YwffJtfY.js.map} +1 -1
  92. package/dist/cdn/chunks/{SavedBlocksPickBar-D7MtqG6r.js → SavedBlocksPickBar-BtpFU7es.js} +6 -6
  93. package/dist/cdn/chunks/{SavedBlocksPickBar-D7MtqG6r.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-rZiHmq24.js → TemplateSettings-C7b5X34U.js} +13 -13
  97. package/dist/cdn/chunks/TemplateSettings-C7b5X34U.js.map +1 -0
  98. package/dist/cdn/chunks/{TestEmailModal-DWEyHXH2.js → TestEmailModal-DHJKI5y5.js} +11 -11
  99. package/dist/cdn/chunks/{TestEmailModal-DWEyHXH2.js.map → TestEmailModal-DHJKI5y5.js.map} +1 -1
  100. package/dist/cdn/chunks/{TestEmailPanel-XXMD-Lnr.js → TestEmailPanel-lYtzTXpR.js} +3 -3
  101. package/dist/cdn/chunks/{TestEmailPanel-XXMD-Lnr.js.map → TestEmailPanel-lYtzTXpR.js.map} +1 -1
  102. package/dist/cdn/chunks/{TitleEditor-D1F0YoE-.js → TitleEditor-5eY01ypW.js} +15 -15
  103. package/dist/cdn/chunks/{TitleEditor-D1F0YoE-.js.map → TitleEditor-5eY01ypW.js.map} +1 -1
  104. package/dist/cdn/chunks/{ToggleSwitch-B5U9cqhi.js → ToggleSwitch-BN8rMC2m.js} +3 -3
  105. package/dist/cdn/chunks/{ToggleSwitch-B5U9cqhi.js.map → ToggleSwitch-BN8rMC2m.js.map} +1 -1
  106. package/dist/cdn/chunks/{Toolbar-C_5HfUQq.js → Toolbar-Ik54UO_-.js} +696 -575
  107. package/dist/cdn/chunks/Toolbar-Ik54UO_-.js.map +1 -0
  108. package/dist/cdn/chunks/{TplModal-CYBbPCHL.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-Dq12VsTX.js → VersionHistoryPanels-xjLSpR1e.js} +3 -3
  113. package/dist/cdn/chunks/{VersionHistoryPanels-Dq12VsTX.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-h1vaHp2p.js → cloud-Cd7ptfhL.js} +3 -3
  123. package/dist/cdn/chunks/{cloud-h1vaHp2p.js.map → cloud-Cd7ptfhL.js.map} +1 -1
  124. package/dist/cdn/chunks/{createCloudRuntime-bJN9EM1H.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-CrmXF4MW.js → extensions-T-t8MKDb.js} +7 -7
  142. package/dist/cdn/chunks/{extensions-CrmXF4MW.js.map → extensions-T-t8MKDb.js.map} +1 -1
  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/cdn/chunks/{preRenderCustomBlocks-CyGB3lZr.js → preRenderCustomBlocks-Co0oi0Jf.js} +4 -2
  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/{dist-BI_LeQGl.js → cdn/chunks/src-BnJlDuyB.js} +392 -249
  160. package/dist/cdn/chunks/src-BnJlDuyB.js.map +1 -0
  161. package/dist/cdn/chunks/{src-BMw3u-iV.js → src-Bu0qBpbf.js} +214 -212
  162. package/dist/cdn/chunks/src-Bu0qBpbf.js.map +1 -0
  163. package/dist/cdn/chunks/{src-B0pZeTYO.js → src-CHlVFp7r.js} +308 -268
  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-DuC7kVti.js → useEditorCore-Bf2d1DKI.js} +543 -532
  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-B3uV3XHG.js → useLogicTag-3S63go4E.js} +4 -4
  180. package/dist/cdn/chunks/{useLogicTag-B3uV3XHG.js.map → useLogicTag-3S63go4E.js.map} +1 -1
  181. package/dist/cdn/chunks/{useMergeTag-DJLM-7WQ.js → useMergeTag-BQtxUHq1.js} +4 -4
  182. package/dist/cdn/chunks/{useMergeTag-DJLM-7WQ.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-CpmB5KxW.js → useScrollToBlock-uUa601I4.js} +3 -3
  186. package/dist/cdn/chunks/{useScrollToBlock-CpmB5KxW.js.map → useScrollToBlock-uUa601I4.js.map} +1 -1
  187. package/dist/cdn/chunks/withCurrentFont-DwJd-lKc.js +21 -0
  188. package/dist/cdn/chunks/{withCurrentFont-isIyuezD.js.map → withCurrentFont-DwJd-lKc.js.map} +1 -1
  189. package/dist/cdn/editor.css +1 -1
  190. package/dist/cdn/editor.js +614 -610
  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-DPGjMGfv.js → cloud-DwjaAdwK.js} +2 -2
  199. package/dist/{copy-D6DNoSq1.js → copy-BsKl4dcy.js} +1 -1
  200. package/dist/{createCloudRuntime-D0RRgWab.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/{cdn/chunks/src-Bh0MoJ67.js → dist-C8koXLhl.js} +295 -298
  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-CYigjb1g.js → extensions-DHyKjsNZ.js} +9 -9
  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 +58 -8
  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/{preRenderCustomBlocks-DokBGA_M.js → preRenderCustomBlocks-lFX0HHiV.js} +5 -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 +559 -555
  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-BJAQMvNW.js → useEditorCore-BcT7UI4e.js} +1011 -1006
  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-B5gjcMzn.js → useLogicTag-D-dI8H6p.js} +3 -3
  261. package/dist/{useMergeTag-BwsBIDzR.js → useMergeTag-5wMeDBi-.js} +5 -5
  262. package/dist/{usePopoverPosition-DkBrHfCo.js → usePopoverPosition-CwnH1o5g.js} +2 -2
  263. package/dist/{useScrollToBlock-JRxhT1u_.js → useScrollToBlock-Do3suaqp.js} +3 -3
  264. package/dist/{vue.runtime.esm-bundler-CctRY8kr.js → vue.runtime.esm-bundler-CAzmrXdD.js} +1215 -1155
  265. package/dist/{withCurrentFont-C9vqrduu.js → withCurrentFont-B4YnsG_2.js} +1 -1
  266. package/dist/{x-gEC0yMci.js → x-CBFKGLB1.js} +1 -1
  267. package/package.json +23 -23
  268. package/dist/BlockPreviewCanvas-DIZ0KgUD.js +0 -133
  269. package/dist/CountdownBlock-RNx3hIu0.js +0 -91
  270. package/dist/WrapperBlock-CTkmA887.js +0 -34
  271. package/dist/cdn/chunks/BlockPreviewCanvas-Djz9YAFx.js +0 -135
  272. package/dist/cdn/chunks/BlockPreviewCanvas-Djz9YAFx.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-DndEFXmR.js.map +0 -1
  276. package/dist/cdn/chunks/TemplateSettings-rZiHmq24.js.map +0 -1
  277. package/dist/cdn/chunks/Toolbar-C_5HfUQq.js.map +0 -1
  278. package/dist/cdn/chunks/TplModal-CYBbPCHL.js.map +0 -1
  279. package/dist/cdn/chunks/WrapperBlock-CJ0CLqi2.js +0 -36
  280. package/dist/cdn/chunks/WrapperBlock-CJ0CLqi2.js.map +0 -1
  281. package/dist/cdn/chunks/ca-C__Dzq--.js.map +0 -1
  282. package/dist/cdn/chunks/createCloudRuntime-bJN9EM1H.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/fr-B6lcLLzC.js.map +0 -1
  289. package/dist/cdn/chunks/ja-BhdkqENz.js.map +0 -1
  290. package/dist/cdn/chunks/nl-CE3YItYg.js.map +0 -1
  291. package/dist/cdn/chunks/preRenderCustomBlocks-CyGB3lZr.js.map +0 -1
  292. package/dist/cdn/chunks/pt-BR-CUIT4rq4.js.map +0 -1
  293. package/dist/cdn/chunks/socialIcons-ClJVDZwt.js +0 -1031
  294. package/dist/cdn/chunks/socialIcons-ClJVDZwt.js.map +0 -1
  295. package/dist/cdn/chunks/src-B0pZeTYO.js.map +0 -1
  296. package/dist/cdn/chunks/src-BMw3u-iV.js.map +0 -1
  297. package/dist/cdn/chunks/src-Bh0MoJ67.js.map +0 -1
  298. package/dist/cdn/chunks/tiptap-CYDXLO17.js.map +0 -1
  299. package/dist/cdn/chunks/useEditorCore-DuC7kVti.js.map +0 -1
  300. package/dist/cdn/chunks/useEditorRoot-DDPIcEOO.js +0 -10
  301. package/dist/cdn/chunks/withCurrentFont-isIyuezD.js +0 -21
  302. package/dist/dist-CFC4pg2o.js +0 -5
  303. package/dist/dist-j2FavQmU.js +0 -5
  304. package/dist/en-Bk4iCfjp.js +0 -1
  305. package/dist/socialIcons-Ct_IoqPQ.js +0 -1107
@@ -1,4 +1,4 @@
1
- //#region ../types/dist/index.js
1
+ //#region ../types/src/blocks.ts
2
2
  var e = [
3
3
  "top",
4
4
  "right",
@@ -37,7 +37,7 @@ function a(e) {
37
37
  }
38
38
  function o(e) {
39
39
  if (e == null) return null;
40
- let t = typeof e == "number" ? i.map(() => a(e)) : i.map((t) => a(e[t]));
40
+ let t = i.map(typeof e == "number" ? () => a(e) : (t) => a(e[t]));
41
41
  return t.every((e) => e === 0) ? null : t.every((e) => e === t[0]) ? `${t[0]}px` : t.map((e) => `${e}px`).join(" ");
42
42
  }
43
43
  var s = {
@@ -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,52 +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
- if (d(t) === "dark" && (e === "plain" || e === "outlined")) return {
138
- color: u.light,
181
+ function ie(e, t) {
182
+ let n = h(t);
183
+ return n ? `${e}-${n}` : e;
184
+ }
185
+ function ae(e, t) {
186
+ if (h(t) === "dark" && (e === "plain" || e === "outlined")) return {
187
+ color: m.light,
139
188
  opacity: .6,
140
189
  width: 1.4
141
190
  };
142
191
  }
143
- function ne(e) {
192
+ function oe(e) {
144
193
  return e === "plain" ? .84 : .6;
145
194
  }
146
- function f(e) {
195
+ //#endregion
196
+ //#region ../types/src/guards.ts
197
+ function g(e) {
147
198
  return e.type === "section";
148
199
  }
149
- function re(e) {
200
+ function se(e) {
201
+ return e.type === "title";
202
+ }
203
+ function ce(e) {
204
+ return e.type === "paragraph";
205
+ }
206
+ function le(e) {
207
+ return e.type === "image";
208
+ }
209
+ function ue(e) {
210
+ return e.type === "button";
211
+ }
212
+ function de(e) {
213
+ return e.type === "divider";
214
+ }
215
+ function fe(e) {
216
+ return e.type === "video";
217
+ }
218
+ function pe(e) {
219
+ return e.type === "social";
220
+ }
221
+ function me(e) {
222
+ return e.type === "spacer";
223
+ }
224
+ function he(e) {
225
+ return e.type === "html";
226
+ }
227
+ function ge(e) {
228
+ return e.type === "menu";
229
+ }
230
+ function _e(e) {
231
+ return e.type === "table";
232
+ }
233
+ function ve(e) {
150
234
  return e.type === "custom";
151
235
  }
152
- function p(e) {
236
+ function _(e) {
153
237
  return e.type === "slot";
154
238
  }
155
- function m(e) {
239
+ function v(e) {
156
240
  return e.type === "wrapper";
157
241
  }
158
- var ie = {
242
+ //#endregion
243
+ //#region ../types/src/defaults.ts
244
+ var ye = {
159
245
  content: "<p>Enter your title</p>",
160
246
  level: 2,
161
247
  textAlign: "left"
162
- }, h = { content: "<p>Enter your text here</p>" }, g = {
248
+ }, be = { content: "<p>Enter your text here</p>" }, xe = {
163
249
  src: "",
164
250
  alt: "",
165
251
  width: "full",
166
252
  align: "center"
167
- }, _ = {
253
+ }, Se = {
168
254
  text: "Click Here",
169
255
  url: "",
170
256
  backgroundColor: "#333333",
@@ -178,36 +264,36 @@ var ie = {
178
264
  left: 24
179
265
  },
180
266
  align: "center"
181
- }, v = {
267
+ }, y = {
182
268
  lineStyle: "solid",
183
269
  color: "#e0e0e0",
184
270
  thickness: 1,
185
271
  width: "full"
186
- }, y = { columns: "1" }, b = {
272
+ }, b = { columns: "1" }, x = {
187
273
  url: "",
188
274
  thumbnailUrl: "",
189
275
  alt: "Video",
190
276
  width: "full",
191
277
  align: "center"
192
- }, x = {
278
+ }, S = {
193
279
  iconStyle: "solid",
194
280
  iconSize: "medium",
195
281
  spacing: 10,
196
282
  align: "center"
197
- }, ae = { height: 24 }, oe = { content: "" }, se = {
283
+ }, C = { height: 24 }, w = { content: "" }, Ce = {
198
284
  fontSize: 15,
199
285
  textAlign: "center",
200
286
  separator: "|",
201
287
  separatorColor: "#e0e0e0",
202
288
  spacing: 10
203
- }, ce = {
289
+ }, we = {
204
290
  hasHeaderRow: !0,
205
291
  borderColor: "#e0e0e0",
206
292
  borderWidth: 1,
207
293
  cellPadding: 8,
208
294
  fontSize: 15,
209
295
  textAlign: "left"
210
- }, le = {
296
+ }, Te = {
211
297
  targetDate: "",
212
298
  timezone: "UTC",
213
299
  showDays: !0,
@@ -227,21 +313,21 @@ var ie = {
227
313
  expiredMessage: "This offer has expired",
228
314
  expiredImageUrl: "",
229
315
  hideOnExpiry: !1
230
- }, ue = {
231
- title: ie,
232
- paragraph: h,
233
- image: g,
234
- button: _,
235
- divider: v,
236
- section: y,
237
- video: b,
238
- social: x,
239
- spacer: ae,
240
- html: oe,
241
- menu: se,
242
- table: ce,
243
- countdown: le
244
- }, de = {
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 = {
245
331
  width: 600,
246
332
  backgroundColor: "#ffffff",
247
333
  textColor: "#1a1a1a",
@@ -249,28 +335,32 @@ var ie = {
249
335
  fontFamily: "Arial",
250
336
  locale: "en"
251
337
  };
252
- function fe(e) {
338
+ function Oe(e) {
253
339
  return typeof e == "object" && !!e && !Array.isArray(e) && Object.getPrototypeOf(e) === Object.prototype;
254
340
  }
255
- function S(e, t) {
341
+ function T(e, t) {
256
342
  let n = { ...e };
257
343
  for (let r of Object.keys(t)) {
258
344
  let i = e[r], a = t[r];
259
- a !== void 0 && (n[r] = fe(i) && fe(a) ? S(i, a) : a);
345
+ a !== void 0 && (n[r] = Oe(i) && Oe(a) ? T(i, a) : a);
260
346
  }
261
347
  return n;
262
348
  }
263
- function pe(e = "Arial", t) {
349
+ //#endregion
350
+ //#region ../types/src/template.ts
351
+ function ke(e = "Arial", t) {
264
352
  return {
265
353
  blocks: [],
266
354
  settings: {
267
- ...de,
355
+ ...De,
268
356
  fontFamily: e,
269
357
  ...t
270
358
  }
271
359
  };
272
360
  }
273
- var me = [
361
+ //#endregion
362
+ //#region ../types/src/direction.ts
363
+ var Ae = [
274
364
  "ar",
275
365
  "he",
276
366
  "iw",
@@ -284,14 +374,16 @@ var me = [
284
374
  "ckb",
285
375
  "ks"
286
376
  ];
287
- function he(e) {
377
+ function je(e) {
288
378
  let t = e?.trim().replace(/_/g, "-").split("-")[0]?.toLowerCase();
289
- return !!t && me.includes(t);
379
+ return !!t && Ae.includes(t);
290
380
  }
291
- function ge(e) {
292
- return e.direction === "ltr" || e.direction === "rtl" ? e.direction : he(e.locale) ? "rtl" : "ltr";
381
+ function Me(e) {
382
+ return e.direction === "ltr" || e.direction === "rtl" ? e.direction : je(e.locale) ? "rtl" : "ltr";
293
383
  }
294
- function C(e) {
384
+ //#endregion
385
+ //#region ../types/src/clone.ts
386
+ function E(e) {
295
387
  let t = [];
296
388
  return JSON.parse(JSON.stringify(e, function(e, n) {
297
389
  if (typeof n != "object" || !n) return n;
@@ -299,17 +391,19 @@ function C(e) {
299
391
  if (!t.includes(n)) return t.push(n), n;
300
392
  }));
301
393
  }
302
- function w(e, t) {
303
- let n = C(e);
304
- return !t || Object.keys(t).length === 0 ? n : S(n, t);
394
+ //#endregion
395
+ //#region ../types/src/factory.ts
396
+ function D(e, t) {
397
+ let n = E(e);
398
+ return !t || Object.keys(t).length === 0 ? n : T(n, t);
305
399
  }
306
- function T(e) {
307
- return e === void 0 ? void 0 : C(e);
400
+ function O(e) {
401
+ return e === void 0 ? void 0 : E(e);
308
402
  }
309
- function E() {
403
+ function k() {
310
404
  return crypto.randomUUID();
311
405
  }
312
- function _e(e = 0) {
406
+ function Ne(e = 0) {
313
407
  return {
314
408
  top: e,
315
409
  right: e,
@@ -317,135 +411,135 @@ function _e(e = 0) {
317
411
  left: e
318
412
  };
319
413
  }
320
- function D(e = 10) {
321
- return { padding: _e(e) };
414
+ function A(e = 10) {
415
+ return { padding: Ne(e) };
322
416
  }
323
- function O(e = {}) {
324
- return w({
325
- id: E(),
417
+ function j(e = {}) {
418
+ return D({
419
+ id: k(),
326
420
  type: "title",
327
- ...ie,
328
- styles: D()
421
+ ...ye,
422
+ styles: A()
329
423
  }, e);
330
424
  }
331
- function k(e = {}) {
332
- return w({
333
- id: E(),
425
+ function M(e = {}) {
426
+ return D({
427
+ id: k(),
334
428
  type: "paragraph",
335
- ...h,
336
- styles: D()
429
+ ...be,
430
+ styles: A()
337
431
  }, e);
338
432
  }
339
- function A(e = {}) {
340
- return w({
341
- id: E(),
433
+ function N(e = {}) {
434
+ return D({
435
+ id: k(),
342
436
  type: "image",
343
- ...g,
344
- styles: D()
437
+ ...xe,
438
+ styles: A()
345
439
  }, e);
346
440
  }
347
- function j(e = {}) {
348
- return w({
349
- id: E(),
441
+ function P(e = {}) {
442
+ return D({
443
+ id: k(),
350
444
  type: "button",
351
- ..._,
352
- styles: D()
445
+ ...Se,
446
+ styles: A()
353
447
  }, e);
354
448
  }
355
- function M(e = {}) {
356
- return w({
357
- id: E(),
449
+ function F(e = {}) {
450
+ return D({
451
+ id: k(),
358
452
  type: "divider",
359
- ...v,
360
- styles: D(20)
453
+ ...y,
454
+ styles: A(20)
361
455
  }, e);
362
456
  }
363
- function N(e = {}) {
364
- return w({
365
- id: E(),
457
+ function I(e = {}) {
458
+ return D({
459
+ id: k(),
366
460
  type: "section",
367
- ...y,
461
+ ...b,
368
462
  children: [[]],
369
- styles: D(20)
463
+ styles: A(20)
370
464
  }, e);
371
465
  }
372
- function P(e = {}) {
373
- return w({
374
- id: E(),
466
+ function L(e = {}) {
467
+ return D({
468
+ id: k(),
375
469
  type: "video",
376
- ...b,
377
- styles: D()
470
+ ...x,
471
+ styles: A()
378
472
  }, e);
379
473
  }
380
- function F(e = {}) {
381
- return w({
382
- id: E(),
474
+ function R(e = {}) {
475
+ return D({
476
+ id: k(),
383
477
  type: "social",
384
478
  icons: [],
385
- ...x,
386
- styles: D()
479
+ ...S,
480
+ styles: A()
387
481
  }, e);
388
482
  }
389
- function I(e = {}) {
390
- return w({
391
- id: E(),
483
+ function z(e = {}) {
484
+ return D({
485
+ id: k(),
392
486
  type: "spacer",
393
- ...ae,
394
- styles: D(0)
487
+ ...C,
488
+ styles: A(0)
395
489
  }, e);
396
490
  }
397
- function L(e = {}) {
398
- return w({
399
- id: E(),
491
+ function B(e = {}) {
492
+ return D({
493
+ id: k(),
400
494
  type: "html",
401
- ...oe,
402
- styles: D()
495
+ ...w,
496
+ styles: A()
403
497
  }, e);
404
498
  }
405
- function R(e = {}) {
406
- return w({
407
- id: E(),
499
+ function V(e = {}) {
500
+ return D({
501
+ id: k(),
408
502
  type: "menu",
409
503
  items: [],
410
- ...se,
411
- styles: D()
504
+ ...Ce,
505
+ styles: A()
412
506
  }, e);
413
507
  }
414
- function ve(e, t) {
508
+ function Pe(e, t) {
415
509
  return Array.from({ length: t }, () => ({
416
- id: E(),
510
+ id: k(),
417
511
  cells: Array.from({ length: e }, () => ({
418
- id: E(),
512
+ id: k(),
419
513
  content: ""
420
514
  }))
421
515
  }));
422
516
  }
423
- function z(e = {}) {
424
- return w({
425
- id: E(),
517
+ function H(e = {}) {
518
+ return D({
519
+ id: k(),
426
520
  type: "table",
427
- rows: ve(3, 3),
428
- ...ce,
429
- styles: D()
521
+ rows: Pe(3, 3),
522
+ ...we,
523
+ styles: A()
430
524
  }, e);
431
525
  }
432
- function B(e = {}) {
433
- return w({
434
- id: E(),
526
+ function U(e = {}) {
527
+ return D({
528
+ id: k(),
435
529
  type: "countdown",
436
- ...le,
437
- styles: D()
530
+ ...Te,
531
+ styles: A()
438
532
  }, e);
439
533
  }
440
- function ye(e) {
534
+ function Fe(e) {
441
535
  return e.type === "repeatable" ? e.default ?? [] : e.type === "boolean" ? e.default ?? !1 : e.type === "number" ? e.default ?? 0 : e.default ?? "";
442
536
  }
443
- function be(e) {
537
+ function Ie(e) {
444
538
  let t = {};
445
- for (let n of e.fields) t[n.key] = T(ye(n));
446
- let n = w(D(), T(e.defaultStyles));
539
+ for (let n of e.fields) t[n.key] = O(Fe(n));
540
+ let n = D(A(), O(e.defaultStyles));
447
541
  return {
448
- id: E(),
542
+ id: k(),
449
543
  type: "custom",
450
544
  customType: e.type,
451
545
  fieldValues: t,
@@ -453,144 +547,148 @@ function be(e) {
453
547
  ...e.dataSource ? { dataSourceFetched: !1 } : {}
454
548
  };
455
549
  }
456
- function xe() {
550
+ function Le() {
457
551
  return {
458
- id: E(),
552
+ id: k(),
459
553
  type: "slot",
460
- styles: D(0)
554
+ styles: A(0)
461
555
  };
462
556
  }
463
- function Se(e = {}) {
464
- return w({
465
- id: E(),
557
+ function Re(e = {}) {
558
+ return D({
559
+ id: k(),
466
560
  type: "wrapper",
467
561
  children: [],
468
- styles: D(0)
562
+ styles: A(0)
469
563
  }, e);
470
564
  }
471
- function Ce(e, t) {
565
+ function ze(e, t) {
472
566
  switch (e) {
473
- case "section": return N(T(t?.section));
474
- case "title": return O(T(t?.title));
475
- case "paragraph": return k(T(t?.paragraph));
476
- case "image": return A(T(t?.image));
477
- case "button": return j(T(t?.button));
478
- case "divider": return M(T(t?.divider));
479
- case "video": return P(T(t?.video));
480
- case "social": return F(T(t?.social));
481
- case "spacer": return I(T(t?.spacer));
482
- case "html": return L(T(t?.html));
483
- case "menu": return R(T(t?.menu));
484
- case "table": return z(T(t?.table));
485
- case "countdown": return B(T(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));
486
580
  case "slot": throw Error("[Templatical] slot cannot be inserted into content. Use createSlotBlock() to build a layout.");
487
581
  case "wrapper": throw Error("[Templatical] wrapper cannot be inserted into content. Use createWrapperBlock() to build a layout.");
488
582
  default: throw Error(`Unknown block type: ${e}`);
489
583
  }
490
584
  }
491
- function V(e) {
585
+ function W(e) {
492
586
  let t = JSON.parse(JSON.stringify(e));
493
- if (t.id = E(), t.type === "table") for (let e of t.rows) {
494
- e.id = E();
495
- for (let t of e.cells) t.id = 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();
496
590
  }
497
- if (t.type === "menu") for (let e of t.items) e.id = E();
498
- if (t.type === "social") for (let e of t.icons) e.id = E();
499
- return t.type === "section" && (t.children = t.children.map((e) => e.map((e) => V(e)))), t.type === "wrapper" && (t.children = t.children.map((e) => V(e))), t;
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;
500
594
  }
501
- var H = "[Templatical] layout: must contain exactly one slot block", we = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", Te = "[Templatical] layout: a wrapper cannot contain a wrapper", Ee = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", De = "[Templatical] slot is not a valid content block", Oe = "[Templatical] wrapper is not a valid content block";
502
- function U(e, t, n = null, r = !1) {
503
- for (let i of e) if (t(i, n, r), f(i)) for (let e of i.children) U(e, t, i, !0);
504
- else m(i) && U(i.children, t, i, r);
595
+ //#endregion
596
+ //#region ../types/src/layout.ts
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";
598
+ function K(e, t, n = null, r = !1) {
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);
505
601
  }
506
- function W(e) {
602
+ function Ge(e) {
507
603
  let t = 0;
508
- if (U(e.blocks, (e, n, r) => {
509
- if (p(e) && (t += 1, r)) throw Error(we);
510
- if (m(e)) {
511
- if (r) throw Error(we);
512
- if (e.children.some(m)) throw Error(Te);
604
+ if (K(e.blocks, (e, n, r) => {
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);
513
609
  }
514
- }), t !== 1) throw Error(H);
610
+ }), t !== 1) throw Error(G);
515
611
  }
516
- function G(e) {
517
- U(e.blocks, (e) => {
518
- if (p(e)) throw Error(De);
612
+ function Ke(e) {
613
+ K(e.blocks, (e) => {
614
+ if (_(e)) throw Error(Ue);
519
615
  });
520
616
  }
521
- function K(e) {
522
- U(e.blocks, (e) => {
523
- if (m(e)) throw Error(Oe);
617
+ function qe(e) {
618
+ K(e.blocks, (e) => {
619
+ if (v(e)) throw Error(We);
524
620
  });
525
621
  }
526
- function ke(e) {
622
+ function Je(e) {
527
623
  let t = !1;
528
- return U(e.blocks, (e, n) => {
529
- p(e) && n !== null && m(n) && (t = !0);
624
+ return K(e.blocks, (e, n) => {
625
+ _(e) && n !== null && v(n) && (t = !0);
530
626
  }), t;
531
627
  }
532
- function Ae(e) {
533
- if (p(e)) return e;
534
- if (m(e)) {
535
- let t = V({
628
+ function Ye(e) {
629
+ if (_(e)) return e;
630
+ if (v(e)) {
631
+ let t = W({
536
632
  ...e,
537
633
  children: []
538
634
  });
539
- return t.children = e.children.map(Ae), t;
635
+ return t.children = e.children.map(Ye), t;
540
636
  }
541
- return V(e);
637
+ return W(e);
542
638
  }
543
- function je(e) {
639
+ function Xe(e) {
544
640
  for (let t = 0; t < e.length; t++) {
545
641
  let n = e[t];
546
- if (p(n)) return {
642
+ if (_(n)) return {
547
643
  parent: e,
548
644
  index: t
549
645
  };
550
- if (m(n)) {
551
- let e = je(n.children);
646
+ if (v(n)) {
647
+ let e = Xe(n.children);
552
648
  if (e) return e;
553
649
  }
554
650
  }
555
651
  return null;
556
652
  }
557
- function Me(e) {
558
- for (let t of e) if (f(t)) {
653
+ function Ze(e) {
654
+ for (let t of e) if (g(t)) {
559
655
  if (t.wrapper) return !0;
560
- for (let e of t.children) if (Me(e)) return !0;
656
+ for (let e of t.children) if (Ze(e)) return !0;
561
657
  }
562
658
  return !1;
563
659
  }
564
- function Ne(e, t) {
565
- if (W(e), G(t), K(t), ke(e) && Me(t.blocks)) throw Error(Ee);
566
- let n = e.blocks.map(Ae), r = je(n);
567
- if (!r) throw Error(H);
568
- return r.parent.splice(r.index, 1, ...C(t.blocks)), {
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);
663
+ if (!r) throw Error(G);
664
+ return r.parent.splice(r.index, 1, ...E(t.blocks)), {
569
665
  blocks: n,
570
666
  settings: {
571
- ...C(t.settings),
667
+ ...E(t.settings),
572
668
  backgroundColor: e.settings.backgroundColor
573
669
  }
574
670
  };
575
671
  }
576
- var Pe = /* @__PURE__ */ new Set(["\"", "'"]);
577
- function Fe(e, t) {
672
+ //#endregion
673
+ //#region ../types/src/html-scan.ts
674
+ var $e = /* @__PURE__ */ new Set(["\"", "'"]);
675
+ function et(e, t) {
578
676
  let n = null;
579
677
  for (let r = t; r < e.length; r++) {
580
678
  let t = e[r];
581
679
  if (n !== null) t === n && (n = null);
582
- else if (Pe.has(t)) n = t;
680
+ else if ($e.has(t)) n = t;
583
681
  else if (t === ">") return r;
584
682
  }
585
683
  return -1;
586
684
  }
587
- function Ie(e) {
685
+ function tt(e) {
588
686
  return e !== " " && e !== " " && e !== "\n" && e !== "\r" && e !== "\f" && e !== "=" && e !== ">" && e !== "/";
589
687
  }
590
688
  function q(e) {
591
689
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
592
690
  }
593
- var Le = {
691
+ var nt = {
594
692
  amp: "&",
595
693
  lt: "<",
596
694
  gt: ">",
@@ -598,22 +696,22 @@ var Le = {
598
696
  apos: "'",
599
697
  nbsp: "\xA0"
600
698
  };
601
- function Re(e) {
699
+ function rt(e) {
602
700
  return e.includes("&") ? e.replace(/&(#[0-9]+|#[xX][0-9a-fA-F]+|[a-zA-Z][a-zA-Z0-9]*);/g, (e, t) => {
603
701
  if (t[0] === "#") {
604
702
  let n = t[1] === "x" || t[1] === "X" ? Number.parseInt(t.slice(2), 16) : Number.parseInt(t.slice(1), 10);
605
703
  return !Number.isFinite(n) || n < 1 || n > 1114111 || n >= 55296 && n <= 57343 ? e : String.fromCodePoint(n);
606
704
  }
607
- return Le[t.toLowerCase()] ?? e;
705
+ return nt[t.toLowerCase()] ?? e;
608
706
  }) : e;
609
707
  }
610
- function ze(e, t) {
708
+ function it(e, t) {
611
709
  let n = t.toLowerCase(), r = 0;
612
710
  for (; r < e.length;) {
613
711
  for (; r < e.length && (q(e[r]) || e[r] === "/");) r++;
614
712
  if (r >= e.length) break;
615
713
  let t = r;
616
- for (; r < e.length && Ie(e[r]);) r++;
714
+ for (; r < e.length && tt(e[r]);) r++;
617
715
  let i = e.substring(t, r).toLowerCase();
618
716
  if (i === "") {
619
717
  r++;
@@ -623,20 +721,31 @@ function ze(e, t) {
623
721
  if (e[r] !== "=") continue;
624
722
  for (r++; r < e.length && q(e[r]);) r++;
625
723
  let a = e[r];
626
- if (Pe.has(a)) {
724
+ if ($e.has(a)) {
627
725
  let t = r + 1, o = e.indexOf(a, t);
628
726
  if (o === -1) return null;
629
- if (i === n) return Re(e.substring(t, o));
727
+ if (i === n) return rt(e.substring(t, o));
630
728
  r = o + 1;
631
729
  continue;
632
730
  }
633
731
  let o = r;
634
732
  for (; r < e.length && !q(e[r]) && e[r] !== ">";) r++;
635
- if (i === n) return Re(e.substring(o, r));
733
+ if (i === n) return rt(e.substring(o, r));
636
734
  }
637
735
  return null;
638
736
  }
639
- var Be = {
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 = {
640
749
  arial: "Arial, sans-serif",
641
750
  helvetica: "Helvetica, sans-serif",
642
751
  georgia: "Georgia, serif",
@@ -645,21 +754,35 @@ var Be = {
645
754
  "trebuchet ms": "'Trebuchet MS', sans-serif",
646
755
  "courier new": "'Courier New', monospace",
647
756
  tahoma: "Tahoma, sans-serif"
648
- }, Ve = /* @__PURE__ */ new Set([
757
+ }, ut = /* @__PURE__ */ new Set([
649
758
  "inherit",
650
759
  "initial",
651
760
  "unset",
652
761
  "revert",
653
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"
654
777
  ]);
655
- function He(e) {
778
+ function ft(e) {
656
779
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
657
780
  }
658
781
  function J(e) {
659
782
  if (typeof e != "string") return [];
660
783
  let t = e.replace(/!\s*important\s*$/i, ""), n = [], r = 0;
661
784
  for (;;) {
662
- for (; r < t.length && He(t[r]);) r++;
785
+ for (; r < t.length && ft(t[r]);) r++;
663
786
  if (r >= t.length) return [];
664
787
  let e = t[r];
665
788
  if (e === "\"" || e === "'") {
@@ -676,7 +799,7 @@ function J(e) {
676
799
  }
677
800
  }
678
801
  if (!o) return [];
679
- for (; a < t.length && He(t[a]);) a++;
802
+ for (; a < t.length && ft(t[a]);) a++;
680
803
  if (a < t.length && t[a] !== ",") return [];
681
804
  n.push({
682
805
  name: i,
@@ -684,7 +807,7 @@ function J(e) {
684
807
  }), r = a;
685
808
  } else {
686
809
  let e = t.indexOf(",", r), i = e === -1 ? t.length : e, a = t.slice(r, i).trim().split(/\s+/).join(" ");
687
- if (a === "" || a.includes("\"") || a.includes("'") || Ve.has(a.toLowerCase())) return [];
810
+ if (a === "" || a.includes("\"") || a.includes("'") || ut.has(a.toLowerCase())) return [];
688
811
  n.push({
689
812
  name: a,
690
813
  quoted: !1
@@ -694,9 +817,25 @@ function J(e) {
694
817
  r++;
695
818
  }
696
819
  }
697
- function Ue(e) {
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) {
698
827
  return J(e)[0]?.name ?? "";
699
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
838
+ //#region ../types/src/merge-tags.ts
700
839
  var Y = {
701
840
  liquid: {
702
841
  value: /\{\{.+?\}\}/g,
@@ -714,33 +853,33 @@ var Y = {
714
853
  value: /%%=.+?=%%/g,
715
854
  logic: /%%\[\s*(\w+).*?\]%%/g
716
855
  }
717
- }, We = {
856
+ }, _t = {
718
857
  liquid: "{{",
719
858
  handlebars: "{{",
720
859
  mailchimp: "*|",
721
860
  ampscript: "%%="
722
- }, Ge = {
861
+ }, vt = {
723
862
  liquid: "}}",
724
863
  handlebars: "}}",
725
864
  mailchimp: "|*",
726
865
  ampscript: "=%%"
727
866
  };
728
- function Ke(e) {
729
- for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return We[t];
867
+ function yt(e) {
868
+ for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return _t[t];
730
869
  return null;
731
870
  }
732
- function qe(e) {
733
- for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return Ge[t];
871
+ function bt(e) {
872
+ for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return vt[t];
734
873
  return null;
735
874
  }
736
- function Je(e) {
875
+ function xt(e) {
737
876
  return e ? typeof e == "string" ? Y[e] ?? Y.liquid : e : Y.liquid;
738
877
  }
739
878
  function X(e) {
740
879
  let t = e.source, n = e.flags.replace("g", "");
741
880
  return RegExp(`^${t}$`, n);
742
881
  }
743
- function Ye(e, t) {
882
+ function St(e, t) {
744
883
  let n = e?.trim() || "";
745
884
  return !X(t.logic).test(n) && X(t.value).test(n);
746
885
  }
@@ -748,41 +887,41 @@ function Z(e, t) {
748
887
  let n = t.find((t) => t.value === e);
749
888
  return n ? n.label : e;
750
889
  }
751
- function Xe(e, t) {
890
+ function Ct(e, t) {
752
891
  return $(e, "data-merge-tag", (e) => Z(e, t));
753
892
  }
754
893
  function Q(e, t) {
755
894
  return t.find((t) => t.value === e)?.sample;
756
895
  }
757
- function Ze(e, t) {
758
- return $(e, "data-merge-tag", (e) => et(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 });
759
898
  }
760
- function Qe(e) {
899
+ function Tt(e) {
761
900
  return e.some((e) => e.sample !== void 0);
762
901
  }
763
- function $e(e, t) {
902
+ function Et(e, t) {
764
903
  if (!e) return e;
765
904
  let n = e;
766
905
  for (let e of t) e.sample !== void 0 && (n = n.split(e.value).join(e.sample));
767
906
  return n;
768
907
  }
769
- function et(e) {
908
+ function Dt(e) {
770
909
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
771
910
  }
772
- function tt(e, t) {
911
+ function Ot(e, t) {
773
912
  if (!e) return !1;
774
913
  let n = new RegExp(t.value.source, t.value.flags), r = new RegExp(t.logic.source, t.logic.flags);
775
914
  return n.test(e) || r.test(e);
776
915
  }
777
- function nt(e, t) {
916
+ function kt(e, t) {
778
917
  return X(t.logic).test(e?.trim() || "");
779
918
  }
780
- function rt(e, t) {
919
+ function At(e, t) {
781
920
  let n = new RegExp(t.logic.source, t.logic.flags.replace("g", "")), r = e.match(n);
782
921
  return r && r[1] ? r[1].toUpperCase() : e;
783
922
  }
784
- function it(e, t) {
785
- return $(e, "data-logic-merge-tag", (e) => rt(e, t));
923
+ function jt(e, t) {
924
+ return $(e, "data-logic-merge-tag", (e) => At(e, t));
786
925
  }
787
926
  function $(e, t, n, r) {
788
927
  let i = "", a = 0;
@@ -797,7 +936,7 @@ function $(e, t, n, r) {
797
936
  i += e.substring(a, o + 5), a = o + 5;
798
937
  continue;
799
938
  }
800
- let c = Fe(e, o + 5);
939
+ let c = et(e, o + 5);
801
940
  if (c === -1) {
802
941
  i += e.substring(a);
803
942
  break;
@@ -807,7 +946,7 @@ function $(e, t, n, r) {
807
946
  i += e.substring(a);
808
947
  break;
809
948
  }
810
- let u = ze(e.substring(o + 5, c), t);
949
+ let u = it(e.substring(o + 5, c), t);
811
950
  if (u === null) {
812
951
  i += e.substring(a, o + 5), a = o + 5;
813
952
  continue;
@@ -817,12 +956,14 @@ function $(e, t, n, r) {
817
956
  }
818
957
  return i;
819
958
  }
820
- function at(e) {
821
- if (typeof e != "object" || !e) return !1;
822
- let t = e;
823
- return Array.isArray(t.blocks);
959
+ //#endregion
960
+ //#region ../types/src/preview-resolution.ts
961
+ function Mt(e) {
962
+ return typeof e != "object" || !e ? !1 : Array.isArray(e.blocks);
824
963
  }
825
- var ot = class extends Error {
964
+ //#endregion
965
+ //#region ../types/src/config.ts
966
+ var Nt = class extends Error {
826
967
  statusCode;
827
968
  constructor(e, t) {
828
969
  super(e), this.statusCode = t, this.name = "SdkError";
@@ -838,4 +979,6 @@ var ot = class extends Error {
838
979
  }
839
980
  };
840
981
  //#endregion
841
- export { it as $, z as A, qe as B, A as C, xe as D, N as E, Ue as F, Ye as G, Qe as H, E as I, p as J, at as K, rt as L, P as M, Se as N, F as O, S as P, ge as Q, Z as R, L as S, k as T, re as U, Ke as V, nt as W, ke as X, m as Y, J as Z, j as _, de as a, te as at, pe as b, l as c, n as ct, Ne as d, t as dt, Xe as et, G as f, W as ft, Ce as g, tt as h, ue as i, ne as it, O as j, I as k, Y as l, r as lt, V as m, e as n, C as nt, s as o, Ze as ot, K as p, f as q, Be as r, ee as rt, c as s, $e as st, i as t, Je as tt, ot as u, o as ut, B as v, R as w, M as x, be as y, Q as 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 };
983
+
984
+ //# sourceMappingURL=src-BnJlDuyB.js.map