@templatical/editor 0.46.0 → 0.48.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 (317) hide show
  1. package/dist/{AiChatSidebar-DGcH4Lyo.js → AiChatSidebar-DxPHFNoT.js} +14 -14
  2. package/dist/{AiFeatureMenu-B4q-0g1S.js → AiFeatureMenu-C8GVqu1d.js} +7 -7
  3. package/dist/{BlockIssueBadge-CZA1XvAh.js → BlockIssueBadge-BShkuJis.js} +5 -5
  4. package/dist/BlockPreviewCanvas-tzAtDkXH.js +141 -0
  5. package/dist/{CloudHeaderExtras-ehMYJP68.js → CloudHeaderExtras-CUSftQdm.js} +5 -5
  6. package/dist/{CloudPanels-BwOaAlKz.js → CloudPanels-Dgw7tb4R.js} +9 -9
  7. package/dist/{CollaboratorBar-qOZFRNPx.js → CollaboratorBar-5rfopCPx.js} +4 -4
  8. package/dist/{CommentsPanel-Bn6P5crU.js → CommentsPanel-DiWzYtnZ.js} +2 -2
  9. package/dist/{CommentsSidebar-B8wT932T.js → CommentsSidebar-BOqj16Al.js} +14 -14
  10. package/dist/CountdownBlock-zx39Dyby.js +92 -0
  11. package/dist/{CountdownToolbar-BeF21SeB.js → CountdownToolbar-C4y3Ft7H.js} +7 -7
  12. package/dist/{DesignReferenceSidebar-zH93uB15.js → DesignReferenceSidebar-BWAi3eQQ.js} +13 -13
  13. package/dist/{IssuesPanel-Dltw9haP.js → IssuesPanel-C-x3I012.js} +8 -8
  14. package/dist/{LoadingTrack-DROqNuuD.js → LoadingTrack-6XsqodoY.js} +1 -1
  15. package/dist/{LogicTagInsertButton-CHa-UD76.js → LogicTagInsertButton-B1_Wy0AN.js} +13 -13
  16. package/dist/{MediaEditModal-EY1YYcpw.js → MediaEditModal-ByOvznRC.js} +4 -4
  17. package/dist/{MediaPanels-CRVFGFZW.js → MediaPanels-9mDBv4aL.js} +2 -2
  18. package/dist/{MergeTagInput-B3ntd4dN.js → MergeTagInput-fOewuF27.js} +3 -3
  19. package/dist/{MergeTagModeToggle-C_06ZL0Q.js → MergeTagModeToggle-BXamLcv7.js} +7 -7
  20. package/dist/{ParagraphEditor-CxuW3TV0.js → ParagraphEditor-BVjOwwHx.js} +100 -85
  21. package/dist/{RestoreVersionDialog-B1n37M1Z.js → RestoreVersionDialog-BEKXx9xk.js} +6 -6
  22. package/dist/{RichTextEditorContent-CP_uULWB.js → RichTextEditorContent-D7kp7iig.js} +12 -12
  23. package/dist/{SaveBlockDialog-BSKX_7_v.js → SaveBlockDialog-SJu0lecx.js} +34 -35
  24. package/dist/{SavedBlocksBrowserModal-CHKrH1gO.js → SavedBlocksBrowserModal-DbmIS5uK.js} +14 -14
  25. package/dist/{SavedBlocksPanels-B-xDqBcz.js → SavedBlocksPanels-Dr5Fxx9Z.js} +2 -2
  26. package/dist/{SavedBlocksPickBar-D2J-g82g.js → SavedBlocksPickBar-DnEWBZJy.js} +5 -5
  27. package/dist/{TemplateScoringPanel-3lHzuCl0.js → TemplateScoringPanel-ynbGl-sr.js} +16 -16
  28. package/dist/{TemplateSettings-D07K_Y4m.js → TemplateSettings-Bi01S3H3.js} +12 -12
  29. package/dist/{TestEmailModal-BNPw_lID.js → TestEmailModal-CbRY8HQx.js} +14 -14
  30. package/dist/{TestEmailPanel-8klWo8hE.js → TestEmailPanel-NAOmt3xi.js} +2 -2
  31. package/dist/{TitleEditor-CmC9OuhA.js → TitleEditor-Cc3DHbuN.js} +15 -15
  32. package/dist/{ToggleSwitch-COeyWGfT.js → ToggleSwitch-Ozc7YU38.js} +2 -2
  33. package/dist/Toolbar-B-2lO0I8.js +3156 -0
  34. package/dist/{TplModal-BGFawHY9.js → TplModal-Bz4-IZ9R.js} +6 -6
  35. package/dist/{VersionHistoryMenu-D7zaTMrb.js → VersionHistoryMenu-CjV1d1zk.js} +10 -10
  36. package/dist/{VersionHistoryPanels-DdbGjEOR.js → VersionHistoryPanels-BtwxrKJn.js} +2 -2
  37. package/dist/{VersionPreviewBanner-BUKb9gc6.js → VersionPreviewBanner-BLAei1kj.js} +4 -4
  38. package/dist/WrapperBlock-D0qgNqjD.js +45 -0
  39. package/dist/{blockTypeIcons-CVKo6V_v.js → blockTypeIcons-CEDZytqP.js} +50 -20
  40. package/dist/bundle-stats.json +8 -8
  41. package/dist/{ca-C__Dzq--.js → ca-CbNzJM3I.js} +38 -1
  42. package/dist/cdn/chunks/{AiChatSidebar-kCK4NZM9.js → AiChatSidebar-Dk0rJBQN.js} +8 -8
  43. package/dist/cdn/chunks/{AiChatSidebar-kCK4NZM9.js.map → AiChatSidebar-Dk0rJBQN.js.map} +1 -1
  44. package/dist/cdn/chunks/{AiFeatureMenu-K1dLeDft.js → AiFeatureMenu-B7b0w8ZS.js} +6 -6
  45. package/dist/cdn/chunks/{AiFeatureMenu-K1dLeDft.js.map → AiFeatureMenu-B7b0w8ZS.js.map} +1 -1
  46. package/dist/cdn/chunks/{BlockIssueBadge-05Q3L4RV.js → BlockIssueBadge-C7sdnkrF.js} +5 -5
  47. package/dist/cdn/chunks/{BlockIssueBadge-05Q3L4RV.js.map → BlockIssueBadge-C7sdnkrF.js.map} +1 -1
  48. package/dist/cdn/chunks/BlockPreviewCanvas-vK5tBazr.js +143 -0
  49. package/dist/cdn/chunks/BlockPreviewCanvas-vK5tBazr.js.map +1 -0
  50. package/dist/cdn/chunks/{CloudHeaderExtras-5ONQ1RCa.js → CloudHeaderExtras-B4fhuwc_.js} +5 -5
  51. package/dist/cdn/chunks/{CloudHeaderExtras-5ONQ1RCa.js.map → CloudHeaderExtras-B4fhuwc_.js.map} +1 -1
  52. package/dist/cdn/chunks/{CloudPanels-_irSdWbi.js → CloudPanels-awqHfJqC.js} +8 -8
  53. package/dist/cdn/chunks/{CloudPanels-_irSdWbi.js.map → CloudPanels-awqHfJqC.js.map} +1 -1
  54. package/dist/cdn/chunks/{CollaboratorBar-CZufI1On.js → CollaboratorBar-CS0ivqkr.js} +5 -5
  55. package/dist/cdn/chunks/{CollaboratorBar-CZufI1On.js.map → CollaboratorBar-CS0ivqkr.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsPanel-VH_NJ5HZ.js → CommentsPanel-CbzxwsyI.js} +3 -3
  57. package/dist/cdn/chunks/{CommentsPanel-VH_NJ5HZ.js.map → CommentsPanel-CbzxwsyI.js.map} +1 -1
  58. package/dist/cdn/chunks/{CommentsSidebar-CYPH5rVi.js → CommentsSidebar-DWPHZuQm.js} +8 -8
  59. package/dist/cdn/chunks/{CommentsSidebar-CYPH5rVi.js.map → CommentsSidebar-DWPHZuQm.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-Cqg8FUH-.js} +8 -8
  63. package/dist/cdn/chunks/{CountdownToolbar-BaXCefQM.js.map → CountdownToolbar-Cqg8FUH-.js.map} +1 -1
  64. package/dist/cdn/chunks/{DesignReferenceSidebar-GjkpHylX.js → DesignReferenceSidebar-BW9cHnA9.js} +12 -12
  65. package/dist/cdn/chunks/{DesignReferenceSidebar-GjkpHylX.js.map → DesignReferenceSidebar-BW9cHnA9.js.map} +1 -1
  66. package/dist/cdn/chunks/{IssuesPanel-C1Lv2y_O.js → IssuesPanel-cXf9ywA4.js} +8 -8
  67. package/dist/cdn/chunks/{IssuesPanel-C1Lv2y_O.js.map → IssuesPanel-cXf9ywA4.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-BMB9vShs.js} +89 -89
  71. package/dist/cdn/chunks/{LogicTagInsertButton-BYjdrDnQ.js.map → LogicTagInsertButton-BMB9vShs.js.map} +1 -1
  72. package/dist/cdn/chunks/{MediaEditModal-CD3fVbWI.js → MediaEditModal-zXfcArr4.js} +4 -4
  73. package/dist/cdn/chunks/{MediaEditModal-CD3fVbWI.js.map → MediaEditModal-zXfcArr4.js.map} +1 -1
  74. package/dist/cdn/chunks/{MediaPanels-B2AyUUcf.js → MediaPanels-Cp4XB_dH.js} +3 -3
  75. package/dist/cdn/chunks/{MediaPanels-B2AyUUcf.js.map → MediaPanels-Cp4XB_dH.js.map} +1 -1
  76. package/dist/cdn/chunks/{MergeTagInput-Cx67J_vg.js → MergeTagInput-DLqrA9co.js} +4 -4
  77. package/dist/cdn/chunks/{MergeTagInput-Cx67J_vg.js.map → MergeTagInput-DLqrA9co.js.map} +1 -1
  78. package/dist/cdn/chunks/{MergeTagModeToggle-DZ4EuXVp.js → MergeTagModeToggle-BRiJzzn5.js} +6 -6
  79. package/dist/cdn/chunks/{MergeTagModeToggle-DZ4EuXVp.js.map → MergeTagModeToggle-BRiJzzn5.js.map} +1 -1
  80. package/dist/cdn/chunks/{ParagraphEditor-DndEFXmR.js → ParagraphEditor-D4aq9eeC.js} +116 -101
  81. package/dist/cdn/chunks/ParagraphEditor-D4aq9eeC.js.map +1 -0
  82. package/dist/cdn/chunks/{RestoreVersionDialog-CFYs13a4.js → RestoreVersionDialog-BgR6RXSb.js} +6 -6
  83. package/dist/cdn/chunks/{RestoreVersionDialog-CFYs13a4.js.map → RestoreVersionDialog-BgR6RXSb.js.map} +1 -1
  84. package/dist/cdn/chunks/{RichTextEditorContent-DKkDQ0dc.js → RichTextEditorContent-C4DMAn0g.js} +11 -11
  85. package/dist/cdn/chunks/{RichTextEditorContent-DKkDQ0dc.js.map → RichTextEditorContent-C4DMAn0g.js.map} +1 -1
  86. package/dist/cdn/chunks/{SaveBlockDialog-BOA2RaC_.js → SaveBlockDialog-BaIsQd09.js} +41 -42
  87. package/dist/cdn/chunks/{SaveBlockDialog-BOA2RaC_.js.map → SaveBlockDialog-BaIsQd09.js.map} +1 -1
  88. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DQDVek3K.js → SavedBlocksBrowserModal-CtnB58p_.js} +10 -10
  89. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DQDVek3K.js.map → SavedBlocksBrowserModal-CtnB58p_.js.map} +1 -1
  90. package/dist/cdn/chunks/{SavedBlocksPanels-Lu3tJ3QA.js → SavedBlocksPanels-BhEOMzEQ.js} +3 -3
  91. package/dist/cdn/chunks/{SavedBlocksPanels-Lu3tJ3QA.js.map → SavedBlocksPanels-BhEOMzEQ.js.map} +1 -1
  92. package/dist/cdn/chunks/{SavedBlocksPickBar-D7MtqG6r.js → SavedBlocksPickBar-CcdqTEIp.js} +6 -6
  93. package/dist/cdn/chunks/{SavedBlocksPickBar-D7MtqG6r.js.map → SavedBlocksPickBar-CcdqTEIp.js.map} +1 -1
  94. package/dist/cdn/chunks/{TemplateScoringPanel-C_57Bfkf.js → TemplateScoringPanel-BrWqJCSP.js} +9 -9
  95. package/dist/cdn/chunks/{TemplateScoringPanel-C_57Bfkf.js.map → TemplateScoringPanel-BrWqJCSP.js.map} +1 -1
  96. package/dist/cdn/chunks/{TemplateSettings-rZiHmq24.js → TemplateSettings-BkkWTDHD.js} +14 -14
  97. package/dist/cdn/chunks/TemplateSettings-BkkWTDHD.js.map +1 -0
  98. package/dist/cdn/chunks/{TestEmailModal-DWEyHXH2.js → TestEmailModal-V5mwHsUV.js} +13 -13
  99. package/dist/cdn/chunks/{TestEmailModal-DWEyHXH2.js.map → TestEmailModal-V5mwHsUV.js.map} +1 -1
  100. package/dist/cdn/chunks/{TestEmailPanel-XXMD-Lnr.js → TestEmailPanel-DxrKuctP.js} +3 -3
  101. package/dist/cdn/chunks/{TestEmailPanel-XXMD-Lnr.js.map → TestEmailPanel-DxrKuctP.js.map} +1 -1
  102. package/dist/cdn/chunks/{TitleEditor-D1F0YoE-.js → TitleEditor-CsZiG3TT.js} +19 -19
  103. package/dist/cdn/chunks/{TitleEditor-D1F0YoE-.js.map → TitleEditor-CsZiG3TT.js.map} +1 -1
  104. package/dist/cdn/chunks/{ToggleSwitch-B5U9cqhi.js → ToggleSwitch-BB-bQADJ.js} +3 -3
  105. package/dist/cdn/chunks/{ToggleSwitch-B5U9cqhi.js.map → ToggleSwitch-BB-bQADJ.js.map} +1 -1
  106. package/dist/cdn/chunks/Toolbar-C_x2TfFk.js +3073 -0
  107. package/dist/cdn/chunks/Toolbar-C_x2TfFk.js.map +1 -0
  108. package/dist/cdn/chunks/{TplModal-CYBbPCHL.js → TplModal-DC_eodTV.js} +6 -6
  109. package/dist/cdn/chunks/TplModal-DC_eodTV.js.map +1 -0
  110. package/dist/cdn/chunks/{VersionHistoryMenu-DbxuJgDO.js → VersionHistoryMenu-DXnM5Df2.js} +11 -11
  111. package/dist/cdn/chunks/{VersionHistoryMenu-DbxuJgDO.js.map → VersionHistoryMenu-DXnM5Df2.js.map} +1 -1
  112. package/dist/cdn/chunks/{VersionHistoryPanels-Dq12VsTX.js → VersionHistoryPanels-DXSqmaLS.js} +3 -3
  113. package/dist/cdn/chunks/{VersionHistoryPanels-Dq12VsTX.js.map → VersionHistoryPanels-DXSqmaLS.js.map} +1 -1
  114. package/dist/cdn/chunks/{VersionPreviewBanner-HRERIH-v.js → VersionPreviewBanner-DKyN6BhO.js} +5 -5
  115. package/dist/cdn/chunks/{VersionPreviewBanner-HRERIH-v.js.map → VersionPreviewBanner-DKyN6BhO.js.map} +1 -1
  116. package/dist/cdn/chunks/WrapperBlock-gG_Bleug.js +47 -0
  117. package/dist/cdn/chunks/WrapperBlock-gG_Bleug.js.map +1 -0
  118. package/dist/cdn/chunks/blockTypeIcons-HrMJDfVg.js +22 -0
  119. package/dist/cdn/chunks/blockTypeIcons-HrMJDfVg.js.map +1 -0
  120. package/dist/cdn/chunks/{ca-C__Dzq--.js → ca-CbNzJM3I.js} +39 -2
  121. package/dist/cdn/chunks/ca-CbNzJM3I.js.map +1 -0
  122. package/dist/cdn/chunks/{cloud-h1vaHp2p.js → cloud-BHClP3e2.js} +3 -3
  123. package/dist/cdn/chunks/{cloud-h1vaHp2p.js.map → cloud-BHClP3e2.js.map} +1 -1
  124. package/dist/cdn/chunks/{createCloudRuntime-bJN9EM1H.js → createCloudRuntime-Vd0N4elZ.js} +18 -9
  125. package/dist/cdn/chunks/createCloudRuntime-Vd0N4elZ.js.map +1 -0
  126. package/dist/cdn/chunks/{de-CGjbQ2mt.js → de-DMquBpZM.js} +39 -2
  127. package/dist/cdn/chunks/de-DMquBpZM.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-vEEmZ8Tu.js} +93 -93
  135. package/dist/cdn/chunks/{editor-modal-BpsbYA4_.js.map → editor-modal-vEEmZ8Tu.js.map} +1 -1
  136. package/dist/cdn/chunks/{en-BTiiAC-B.js → en-C8Mp71sO.js} +39 -2
  137. package/dist/cdn/chunks/en-C8Mp71sO.js.map +1 -0
  138. package/dist/cdn/chunks/en-eWpiXyZu.js +1 -0
  139. package/dist/cdn/chunks/{es-CdTOcSTf.js → es-Byq4tthI.js} +39 -2
  140. package/dist/cdn/chunks/es-Byq4tthI.js.map +1 -0
  141. package/dist/cdn/chunks/{extensions-CrmXF4MW.js → extensions-hJ9VqzDc.js} +7 -7
  142. package/dist/cdn/chunks/{extensions-CrmXF4MW.js.map → extensions-hJ9VqzDc.js.map} +1 -1
  143. package/dist/cdn/chunks/{fr-B6lcLLzC.js → fr-B3j35HEw.js} +39 -2
  144. package/dist/cdn/chunks/fr-B3j35HEw.js.map +1 -0
  145. package/dist/cdn/chunks/{icons-Dr9erFGs.js → icons-aTYwH5-g.js} +107 -78
  146. package/dist/cdn/chunks/icons-aTYwH5-g.js.map +1 -0
  147. package/dist/{ja-BhdkqENz.js → cdn/chunks/ja-D7txAuGS.js} +40 -1
  148. package/dist/cdn/chunks/ja-D7txAuGS.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-ClJ3BY3F.js} +40 -1
  152. package/dist/cdn/chunks/nl-ClJ3BY3F.js.map +1 -0
  153. package/dist/cdn/chunks/{preRenderCustomBlocks-CyGB3lZr.js → preRenderCustomBlocks-ByfuSjtL.js} +4 -2
  154. package/dist/cdn/chunks/preRenderCustomBlocks-ByfuSjtL.js.map +1 -0
  155. package/dist/{pt-BR-CUIT4rq4.js → cdn/chunks/pt-BR-DibcXcmv.js} +40 -1
  156. package/dist/cdn/chunks/pt-BR-DibcXcmv.js.map +1 -0
  157. package/dist/cdn/chunks/socialIcons-C_lnkpG6.js +1279 -0
  158. package/dist/cdn/chunks/socialIcons-C_lnkpG6.js.map +1 -0
  159. package/dist/{dist-BI_LeQGl.js → cdn/chunks/src-DYCDeBDM.js} +437 -256
  160. package/dist/cdn/chunks/src-DYCDeBDM.js.map +1 -0
  161. package/dist/cdn/chunks/{src-B0pZeTYO.js → src-DlFlC9Tt.js} +334 -268
  162. package/dist/cdn/chunks/src-DlFlC9Tt.js.map +1 -0
  163. package/dist/cdn/chunks/src-dZ4D_tuP.js +649 -0
  164. package/dist/cdn/chunks/src-dZ4D_tuP.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/timeouts-Cv2jvusx.js +6 -0
  168. package/dist/cdn/chunks/timeouts-Cv2jvusx.js.map +1 -0
  169. package/dist/cdn/chunks/{tiptap-CYDXLO17.js → tiptap-BPigZk5G.js} +3258 -3098
  170. package/dist/cdn/chunks/tiptap-BPigZk5G.js.map +1 -0
  171. package/dist/cdn/chunks/{useAliveFlag-DzyXG-8A.js → useAliveFlag-DCB96vzR.js} +2 -2
  172. package/dist/cdn/chunks/{useAliveFlag-DzyXG-8A.js.map → useAliveFlag-DCB96vzR.js.map} +1 -1
  173. package/dist/cdn/chunks/{useCloudI18n-Cgk0ts_F.js → useCloudI18n-BBF4waXO.js} +3 -3
  174. package/dist/cdn/chunks/{useCloudI18n-Cgk0ts_F.js.map → useCloudI18n-BBF4waXO.js.map} +1 -1
  175. package/dist/cdn/chunks/{useEditorCore-DuC7kVti.js → useEditorCore-Bb2UcB20.js} +780 -764
  176. package/dist/cdn/chunks/useEditorCore-Bb2UcB20.js.map +1 -0
  177. package/dist/cdn/chunks/useEditorRoot-CTc6O8al.js +10 -0
  178. package/dist/cdn/chunks/{useEditorRoot-DDPIcEOO.js.map → useEditorRoot-CTc6O8al.js.map} +1 -1
  179. package/dist/cdn/chunks/{useI18n-DO4NTunW.js → useI18n-DUlyyIJJ.js} +3 -3
  180. package/dist/cdn/chunks/{useI18n-DO4NTunW.js.map → useI18n-DUlyyIJJ.js.map} +1 -1
  181. package/dist/cdn/chunks/{useLogicTag-B3uV3XHG.js → useLogicTag-HsyUCQtl.js} +4 -4
  182. package/dist/cdn/chunks/{useLogicTag-B3uV3XHG.js.map → useLogicTag-HsyUCQtl.js.map} +1 -1
  183. package/dist/cdn/chunks/{useMergeTag-DJLM-7WQ.js → useMergeTag-Dg9pE85U.js} +4 -4
  184. package/dist/cdn/chunks/{useMergeTag-DJLM-7WQ.js.map → useMergeTag-Dg9pE85U.js.map} +1 -1
  185. package/dist/cdn/chunks/{usePopoverPosition-CtVNwoHj.js → usePopoverPosition-IbaW6-Ao.js} +3 -3
  186. package/dist/cdn/chunks/{usePopoverPosition-CtVNwoHj.js.map → usePopoverPosition-IbaW6-Ao.js.map} +1 -1
  187. package/dist/cdn/chunks/{useScrollToBlock-CpmB5KxW.js → useScrollToBlock-uUa601I4.js} +3 -3
  188. package/dist/cdn/chunks/{useScrollToBlock-CpmB5KxW.js.map → useScrollToBlock-uUa601I4.js.map} +1 -1
  189. package/dist/cdn/chunks/withCurrentFont-oLcATrQ8.js +21 -0
  190. package/dist/cdn/chunks/{withCurrentFont-isIyuezD.js.map → withCurrentFont-oLcATrQ8.js.map} +1 -1
  191. package/dist/cdn/editor.css +1 -1
  192. package/dist/cdn/editor.js +641 -631
  193. package/dist/cdn/editor.js.map +1 -1
  194. package/dist/{check-ZKvtMdpe.js → check-ClwqRMgv.js} +1 -1
  195. package/dist/{chevron-down-RrwkYMlp.js → chevron-down-te6qn-zE.js} +1 -1
  196. package/dist/{chevron-right-CklHaa1U.js → chevron-right-W2hbH1FM.js} +1 -1
  197. package/dist/{chevron-up-DjN2NTbo.js → chevron-up-Bf5Zo7o4.js} +1 -1
  198. package/dist/{circle-alert-BR1_Yfb-.js → circle-alert-CIEGV5DN.js} +1 -1
  199. package/dist/{clock-BEagNj21.js → clock-Y4cx0gkJ.js} +1 -1
  200. package/dist/{cloud-DPGjMGfv.js → cloud-B5xwm_4X.js} +2 -2
  201. package/dist/{copy-D6DNoSq1.js → copy-BEcsAlfB.js} +1 -1
  202. package/dist/{createCloudRuntime-D0RRgWab.js → createCloudRuntime-zNPkF6T9.js} +17 -8
  203. package/dist/{createLucideIcon-BAPyioGd.js → createLucideIcon-CYHXK9hn.js} +6 -6
  204. package/dist/{de-CGjbQ2mt.js → de-DMquBpZM.js} +38 -1
  205. package/dist/{dist-Bd7khQsg.js → dist-3HpYixwF.js} +2 -2
  206. package/dist/{dist-lL3nVbxV.js → dist-BC-ZEYLd.js} +2 -2
  207. package/dist/dist-BPFcLKTw.js +5 -0
  208. package/dist/{dist-C-VFTX82.js → dist-CUWI-IvA.js} +2 -2
  209. package/dist/{dist-Bc30883t.js → dist-Cr7RPxI9.js} +5 -5
  210. package/dist/{dist-DapsJxn_.js → dist-CuLwJF7H.js} +2 -2
  211. package/dist/{dist-5KNKxglR.js → dist-CyBwSiAa.js} +2 -2
  212. package/dist/dist-D7Yj7E-F.js +5 -0
  213. package/dist/{dist-B_vYjCsk.js → dist-DAAJogrx.js} +3 -3
  214. package/dist/{dist-CMcFD7gP.js → dist-DBxgrOeo.js} +1906 -1746
  215. package/dist/{dist-DHensKDY.js → dist-DPcf6XZ8.js} +2 -2
  216. package/dist/{dist-5DAb7bYT.js → dist-DVNjPKsH.js} +2 -2
  217. package/dist/{dist-C3eH9-N2.js → dist-DXyGqIDE.js} +2 -2
  218. package/dist/{dist-1H4cnaoD.js → dist-DuufrR8O.js} +4 -4
  219. package/dist/{cdn/chunks/src-Bh0MoJ67.js → dist-tsmnQugO.js} +207 -174
  220. package/dist/{editor-modal-oRmkDlUs.js → editor-modal-AlVLkU91.js} +20 -20
  221. package/dist/en-B0FUfNwz.js +1 -0
  222. package/dist/{en-BTiiAC-B.js → en-C8Mp71sO.js} +38 -1
  223. package/dist/{es-CdTOcSTf.js → es-Byq4tthI.js} +38 -1
  224. package/dist/{extensions-CYigjb1g.js → extensions-pjO8VGkM.js} +9 -9
  225. package/dist/{eye-DvsTBI57.js → eye-Ddnz8nnm.js} +1 -1
  226. package/dist/{fr-B6lcLLzC.js → fr-B3j35HEw.js} +38 -1
  227. package/dist/{image-up-BoFGZm5Q.js → image-up-CM_HC0Dx.js} +1 -1
  228. package/dist/index.d.ts +124 -11
  229. package/dist/{info-0bQQGjTV.js → info-DXLmzoeY.js} +1 -1
  230. package/dist/{cdn/chunks/ja-BhdkqENz.js → ja-D7txAuGS.js} +38 -3
  231. package/dist/{keys-injl74ob.js → keys-BKFq19a2.js} +1 -1
  232. package/dist/{link-Cstrr3Ep.js → link-Cel46wgo.js} +1 -1
  233. package/dist/{list-Dx9Rmy5s.js → list-Cl0GwiV9.js} +1 -1
  234. package/dist/{loader-circle-D8Qqs0MG.js → loader-circle-uAwpvfys.js} +1 -1
  235. package/dist/{message-circle-D78ELX6I.js → message-circle-DWU1pTM_.js} +1 -1
  236. package/dist/{cdn/chunks/nl-CE3YItYg.js → nl-ClJ3BY3F.js} +38 -3
  237. package/dist/{package-DOvM9sHE.js → package-CbyG_yU_.js} +1 -1
  238. package/dist/{pencil-B6m0OG0n.js → pencil-BzoDcwKu.js} +1 -1
  239. package/dist/{plus-D-nEKxTc.js → plus-8cDvoCjZ.js} +1 -1
  240. package/dist/{preRenderCustomBlocks-DokBGA_M.js → preRenderCustomBlocks-DMP5RuHl.js} +6 -4
  241. package/dist/{cdn/chunks/pt-BR-CUIT4rq4.js → pt-BR-DibcXcmv.js} +38 -3
  242. package/dist/{refresh-cw-CXZS-R1U.js → refresh-cw-9WinWixo.js} +1 -1
  243. package/dist/{runtime-dom.esm-bundler-CO67ema2.js → runtime-dom.esm-bundler-lFF-QG3j.js} +3 -3
  244. package/dist/{search-DSvil0jo.js → search-CqgGq1gG.js} +1 -1
  245. package/dist/{send-BBR28V94.js → send-Ceo3c9Db.js} +1 -1
  246. package/dist/{shield-check-ByxUnaU9.js → shield-check-uDAwur5D.js} +1 -1
  247. package/dist/{smartphone-CNOwGf5T.js → smartphone-CcLaCpGK.js} +1 -1
  248. package/dist/socialIcons-PTiwhLoC.js +1359 -0
  249. package/dist/{sparkles-DO1hzwzf.js → sparkles-Do9XjAuT.js} +1 -1
  250. package/dist/style.css +1 -1
  251. package/dist/{cdn/chunks/styleConstants-C_YAPdQS.js → styleConstants-D1Jz-TFU.js} +7 -30
  252. package/dist/templatical-editor.js +519 -509
  253. package/dist/{text-align-start-BKEKMheq.js → text-align-start-DvzC0HQA.js} +1 -1
  254. package/dist/timeouts-Cv2jvusx.js +4 -0
  255. package/dist/{trash-CKEQH4vH.js → trash-vlINTx32.js} +1 -1
  256. package/dist/{triangle-alert-BHnfd3fV.js → triangle-alert-MRYSJ9T2.js} +1 -1
  257. package/dist/{upload-C8uO7KsR.js → upload-CtNOI6J2.js} +1 -1
  258. package/dist/{useAliveFlag-6PtarpNZ.js → useAliveFlag-Dd06mRxe.js} +1 -1
  259. package/dist/{useCloudI18n-GvIOLziA.js → useCloudI18n-Nwqo7pI_.js} +2 -2
  260. package/dist/{useEditorCore-BJAQMvNW.js → useEditorCore-PvErWWsp.js} +1002 -991
  261. package/dist/{useEditorRoot-OWzNpDdT.js → useEditorRoot-BD3piYtD.js} +2 -2
  262. package/dist/{useI18n-uF11q85g.js → useI18n-CxVEpurs.js} +2 -2
  263. package/dist/{useLogicTag-B5gjcMzn.js → useLogicTag-BHn67tDd.js} +3 -3
  264. package/dist/{useMergeTag-BwsBIDzR.js → useMergeTag-CRkm5Ig6.js} +5 -5
  265. package/dist/{usePopoverPosition-DkBrHfCo.js → usePopoverPosition-CwnH1o5g.js} +2 -2
  266. package/dist/{useScrollToBlock-JRxhT1u_.js → useScrollToBlock-CXmcHQQN.js} +3 -3
  267. package/dist/{vue.runtime.esm-bundler-CctRY8kr.js → vue.runtime.esm-bundler-CAzmrXdD.js} +1215 -1155
  268. package/dist/{withCurrentFont-C9vqrduu.js → withCurrentFont-CxRGeHO3.js} +1 -1
  269. package/dist/{x-gEC0yMci.js → x-Cd6SFw8r.js} +1 -1
  270. package/package.json +23 -23
  271. package/dist/BlockPreviewCanvas-DIZ0KgUD.js +0 -133
  272. package/dist/CountdownBlock-RNx3hIu0.js +0 -91
  273. package/dist/Toolbar-CqhRb6EM.js +0 -2732
  274. package/dist/WrapperBlock-CTkmA887.js +0 -34
  275. package/dist/cdn/chunks/BlockPreviewCanvas-Djz9YAFx.js +0 -135
  276. package/dist/cdn/chunks/BlockPreviewCanvas-Djz9YAFx.js.map +0 -1
  277. package/dist/cdn/chunks/CountdownBlock-lHU3Lu7Q.js +0 -93
  278. package/dist/cdn/chunks/CountdownBlock-lHU3Lu7Q.js.map +0 -1
  279. package/dist/cdn/chunks/ParagraphEditor-DndEFXmR.js.map +0 -1
  280. package/dist/cdn/chunks/TemplateSettings-rZiHmq24.js.map +0 -1
  281. package/dist/cdn/chunks/Toolbar-C_5HfUQq.js +0 -2646
  282. package/dist/cdn/chunks/Toolbar-C_5HfUQq.js.map +0 -1
  283. package/dist/cdn/chunks/TplModal-CYBbPCHL.js.map +0 -1
  284. package/dist/cdn/chunks/WrapperBlock-CJ0CLqi2.js +0 -36
  285. package/dist/cdn/chunks/WrapperBlock-CJ0CLqi2.js.map +0 -1
  286. package/dist/cdn/chunks/blockTypeIcons-DdZP-3FM.js +0 -21
  287. package/dist/cdn/chunks/blockTypeIcons-DdZP-3FM.js.map +0 -1
  288. package/dist/cdn/chunks/ca-C__Dzq--.js.map +0 -1
  289. package/dist/cdn/chunks/createCloudRuntime-bJN9EM1H.js.map +0 -1
  290. package/dist/cdn/chunks/de-CGjbQ2mt.js.map +0 -1
  291. package/dist/cdn/chunks/draggable-BUTN5vZC.js.map +0 -1
  292. package/dist/cdn/chunks/en-BTiiAC-B.js.map +0 -1
  293. package/dist/cdn/chunks/en-CAt6y87e.js +0 -1
  294. package/dist/cdn/chunks/es-CdTOcSTf.js.map +0 -1
  295. package/dist/cdn/chunks/fr-B6lcLLzC.js.map +0 -1
  296. package/dist/cdn/chunks/icons-Dr9erFGs.js.map +0 -1
  297. package/dist/cdn/chunks/ja-BhdkqENz.js.map +0 -1
  298. package/dist/cdn/chunks/nl-CE3YItYg.js.map +0 -1
  299. package/dist/cdn/chunks/preRenderCustomBlocks-CyGB3lZr.js.map +0 -1
  300. package/dist/cdn/chunks/pt-BR-CUIT4rq4.js.map +0 -1
  301. package/dist/cdn/chunks/socialIcons-ClJVDZwt.js +0 -1031
  302. package/dist/cdn/chunks/socialIcons-ClJVDZwt.js.map +0 -1
  303. package/dist/cdn/chunks/src-B0pZeTYO.js.map +0 -1
  304. package/dist/cdn/chunks/src-BMw3u-iV.js +0 -614
  305. package/dist/cdn/chunks/src-BMw3u-iV.js.map +0 -1
  306. package/dist/cdn/chunks/src-Bh0MoJ67.js.map +0 -1
  307. package/dist/cdn/chunks/timeouts-DHPZQ0G3.js +0 -6
  308. package/dist/cdn/chunks/timeouts-DHPZQ0G3.js.map +0 -1
  309. package/dist/cdn/chunks/tiptap-CYDXLO17.js.map +0 -1
  310. package/dist/cdn/chunks/useEditorCore-DuC7kVti.js.map +0 -1
  311. package/dist/cdn/chunks/useEditorRoot-DDPIcEOO.js +0 -10
  312. package/dist/cdn/chunks/withCurrentFont-isIyuezD.js +0 -21
  313. package/dist/dist-CFC4pg2o.js +0 -5
  314. package/dist/dist-j2FavQmU.js +0 -5
  315. package/dist/en-Bk4iCfjp.js +0 -1
  316. package/dist/socialIcons-Ct_IoqPQ.js +0 -1107
  317. package/dist/timeouts-DHPZQ0G3.js +0 -4
@@ -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,95 @@ var s = {
45
45
  2: 28,
46
46
  3: 22,
47
47
  4: 18
48
- }, c = {
48
+ }, c = 1.3, l = {
49
49
  paragraphGap: 8,
50
50
  listMarginY: 8,
51
51
  listPaddingLeft: 24,
52
52
  listItemMarginY: 4
53
- }, l = {
53
+ }, u = [
54
+ "cover",
55
+ "contain",
56
+ "auto"
57
+ ], d = [
58
+ "left",
59
+ "center",
60
+ "right"
61
+ ], f = [
62
+ "top",
63
+ "center",
64
+ "bottom"
65
+ ];
66
+ function ee(e) {
67
+ return {
68
+ url: e,
69
+ size: "cover",
70
+ position: {
71
+ x: "center",
72
+ y: "center"
73
+ },
74
+ repeat: !1
75
+ };
76
+ }
77
+ function p(e) {
78
+ let t = "";
79
+ for (let n of e) {
80
+ let e = n.charCodeAt(0);
81
+ t += e < 32 || e === 127 || n === "'" || n === "\"" || n === "\\" ? `%${e.toString(16).toUpperCase().padStart(2, "0")}` : n;
82
+ }
83
+ return t;
84
+ }
85
+ function m(e) {
86
+ let t = typeof e?.url == "string" ? e.url.trim() : "";
87
+ if (!e || !t) return null;
88
+ let n = u.includes(e.size) ? e.size : "cover", r = e.position, i = r && d.includes(r.x) ? r.x : "center", a = r && f.includes(r.y) ? r.y : "center";
89
+ return {
90
+ url: p(t),
91
+ size: n,
92
+ position: `${i} ${a}`,
93
+ repeat: e.repeat ? "repeat" : "no-repeat"
94
+ };
95
+ }
96
+ //#endregion
97
+ //#region ../types/src/hero.ts
98
+ var te = [
99
+ "top",
100
+ "middle",
101
+ "bottom"
102
+ ];
103
+ function ne(e) {
104
+ let t = e.hero;
105
+ if (!t || typeof t != "object") return null;
106
+ if (e.columns !== "1") return {
107
+ applied: !1,
108
+ reason: "columns"
109
+ };
110
+ let n = m(e.backgroundImage);
111
+ if (n === null) return {
112
+ applied: !1,
113
+ reason: "image"
114
+ };
115
+ let r = h(e.backgroundImage), i = re(t.height) ? Math.round(t.height) : "image";
116
+ return i === "image" && r === null ? {
117
+ applied: !1,
118
+ reason: "size"
119
+ } : {
120
+ applied: !0,
121
+ image: n,
122
+ height: i,
123
+ verticalAlign: te.includes(t.verticalAlign) ? t.verticalAlign : "middle",
124
+ aspectRatio: r
125
+ };
126
+ }
127
+ function re(e) {
128
+ return typeof e == "number" && Number.isFinite(e) && e >= 1;
129
+ }
130
+ function h(e) {
131
+ let t = e?.naturalWidth, n = e?.naturalHeight;
132
+ return typeof t != "number" || typeof n != "number" || !Number.isFinite(t) || !Number.isFinite(n) || t <= 0 || n <= 0 ? null : n / t;
133
+ }
134
+ //#endregion
135
+ //#region ../types/src/social.ts
136
+ var g = {
54
137
  facebook: {
55
138
  color: "#1877F2",
56
139
  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 +202,93 @@ var s = {
119
202
  color: "#1769FF",
120
203
  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
204
  }
122
- }, u = {
205
+ }, _ = {
123
206
  dark: "#1f1f1f",
124
207
  light: "#ffffff"
125
208
  };
126
- function d(e) {
209
+ function v(e) {
127
210
  return e === "dark" || e === "light" ? e : void 0;
128
211
  }
129
- function ee(e, t) {
130
- let n = d(t);
212
+ function ie(e, t) {
213
+ let n = v(t);
131
214
  return {
132
- fill: n ? u[n] : l[e].color,
133
- onFill: n === "light" ? u.dark : "#ffffff"
215
+ fill: n ? _[n] : g[e].color,
216
+ onFill: n === "light" ? _.dark : "#ffffff"
134
217
  };
135
218
  }
136
- function te(e, t) {
137
- if (d(t) === "dark" && (e === "plain" || e === "outlined")) return {
138
- color: u.light,
219
+ function ae(e, t) {
220
+ let n = v(t);
221
+ return n ? `${e}-${n}` : e;
222
+ }
223
+ function oe(e, t) {
224
+ if (v(t) === "dark" && (e === "plain" || e === "outlined")) return {
225
+ color: _.light,
139
226
  opacity: .6,
140
227
  width: 1.4
141
228
  };
142
229
  }
143
- function ne(e) {
230
+ function se(e) {
144
231
  return e === "plain" ? .84 : .6;
145
232
  }
146
- function f(e) {
233
+ //#endregion
234
+ //#region ../types/src/guards.ts
235
+ function y(e) {
147
236
  return e.type === "section";
148
237
  }
149
- function re(e) {
238
+ function ce(e) {
239
+ return e.type === "title";
240
+ }
241
+ function le(e) {
242
+ return e.type === "paragraph";
243
+ }
244
+ function ue(e) {
245
+ return e.type === "image";
246
+ }
247
+ function de(e) {
248
+ return e.type === "button";
249
+ }
250
+ function fe(e) {
251
+ return e.type === "divider";
252
+ }
253
+ function pe(e) {
254
+ return e.type === "video";
255
+ }
256
+ function me(e) {
257
+ return e.type === "social";
258
+ }
259
+ function he(e) {
260
+ return e.type === "spacer";
261
+ }
262
+ function ge(e) {
263
+ return e.type === "html";
264
+ }
265
+ function _e(e) {
266
+ return e.type === "menu";
267
+ }
268
+ function ve(e) {
269
+ return e.type === "table";
270
+ }
271
+ function ye(e) {
150
272
  return e.type === "custom";
151
273
  }
152
- function p(e) {
274
+ function b(e) {
153
275
  return e.type === "slot";
154
276
  }
155
- function m(e) {
277
+ function x(e) {
156
278
  return e.type === "wrapper";
157
279
  }
158
- var ie = {
280
+ //#endregion
281
+ //#region ../types/src/defaults.ts
282
+ var S = {
159
283
  content: "<p>Enter your title</p>",
160
284
  level: 2,
161
285
  textAlign: "left"
162
- }, h = { content: "<p>Enter your text here</p>" }, g = {
286
+ }, be = { content: "<p>Enter your text here</p>" }, xe = {
163
287
  src: "",
164
288
  alt: "",
165
289
  width: "full",
166
290
  align: "center"
167
- }, _ = {
291
+ }, Se = {
168
292
  text: "Click Here",
169
293
  url: "",
170
294
  backgroundColor: "#333333",
@@ -178,36 +302,36 @@ var ie = {
178
302
  left: 24
179
303
  },
180
304
  align: "center"
181
- }, v = {
305
+ }, Ce = {
182
306
  lineStyle: "solid",
183
307
  color: "#e0e0e0",
184
308
  thickness: 1,
185
309
  width: "full"
186
- }, y = { columns: "1" }, b = {
310
+ }, we = { columns: "1" }, Te = {
187
311
  url: "",
188
312
  thumbnailUrl: "",
189
313
  alt: "Video",
190
314
  width: "full",
191
315
  align: "center"
192
- }, x = {
316
+ }, Ee = {
193
317
  iconStyle: "solid",
194
318
  iconSize: "medium",
195
319
  spacing: 10,
196
320
  align: "center"
197
- }, ae = { height: 24 }, oe = { content: "" }, se = {
321
+ }, De = { height: 24 }, Oe = { content: "" }, ke = {
198
322
  fontSize: 15,
199
323
  textAlign: "center",
200
324
  separator: "|",
201
325
  separatorColor: "#e0e0e0",
202
326
  spacing: 10
203
- }, ce = {
327
+ }, Ae = {
204
328
  hasHeaderRow: !0,
205
329
  borderColor: "#e0e0e0",
206
330
  borderWidth: 1,
207
331
  cellPadding: 8,
208
332
  fontSize: 15,
209
333
  textAlign: "left"
210
- }, le = {
334
+ }, je = {
211
335
  targetDate: "",
212
336
  timezone: "UTC",
213
337
  showDays: !0,
@@ -227,21 +351,21 @@ var ie = {
227
351
  expiredMessage: "This offer has expired",
228
352
  expiredImageUrl: "",
229
353
  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 = {
354
+ }, Me = {
355
+ title: S,
356
+ paragraph: be,
357
+ image: xe,
358
+ button: Se,
359
+ divider: Ce,
360
+ section: we,
361
+ video: Te,
362
+ social: Ee,
363
+ spacer: De,
364
+ html: Oe,
365
+ menu: ke,
366
+ table: Ae,
367
+ countdown: je
368
+ }, C = {
245
369
  width: 600,
246
370
  backgroundColor: "#ffffff",
247
371
  textColor: "#1a1a1a",
@@ -249,28 +373,32 @@ var ie = {
249
373
  fontFamily: "Arial",
250
374
  locale: "en"
251
375
  };
252
- function fe(e) {
376
+ function w(e) {
253
377
  return typeof e == "object" && !!e && !Array.isArray(e) && Object.getPrototypeOf(e) === Object.prototype;
254
378
  }
255
- function S(e, t) {
379
+ function T(e, t) {
256
380
  let n = { ...e };
257
381
  for (let r of Object.keys(t)) {
258
382
  let i = e[r], a = t[r];
259
- a !== void 0 && (n[r] = fe(i) && fe(a) ? S(i, a) : a);
383
+ a !== void 0 && (n[r] = w(i) && w(a) ? T(i, a) : a);
260
384
  }
261
385
  return n;
262
386
  }
263
- function pe(e = "Arial", t) {
387
+ //#endregion
388
+ //#region ../types/src/template.ts
389
+ function Ne(e = "Arial", t) {
264
390
  return {
265
391
  blocks: [],
266
392
  settings: {
267
- ...de,
393
+ ...C,
268
394
  fontFamily: e,
269
395
  ...t
270
396
  }
271
397
  };
272
398
  }
273
- var me = [
399
+ //#endregion
400
+ //#region ../types/src/direction.ts
401
+ var Pe = [
274
402
  "ar",
275
403
  "he",
276
404
  "iw",
@@ -284,14 +412,16 @@ var me = [
284
412
  "ckb",
285
413
  "ks"
286
414
  ];
287
- function he(e) {
415
+ function Fe(e) {
288
416
  let t = e?.trim().replace(/_/g, "-").split("-")[0]?.toLowerCase();
289
- return !!t && me.includes(t);
417
+ return !!t && Pe.includes(t);
290
418
  }
291
- function ge(e) {
292
- return e.direction === "ltr" || e.direction === "rtl" ? e.direction : he(e.locale) ? "rtl" : "ltr";
419
+ function Ie(e) {
420
+ return e.direction === "ltr" || e.direction === "rtl" ? e.direction : Fe(e.locale) ? "rtl" : "ltr";
293
421
  }
294
- function C(e) {
422
+ //#endregion
423
+ //#region ../types/src/clone.ts
424
+ function E(e) {
295
425
  let t = [];
296
426
  return JSON.parse(JSON.stringify(e, function(e, n) {
297
427
  if (typeof n != "object" || !n) return n;
@@ -299,17 +429,19 @@ function C(e) {
299
429
  if (!t.includes(n)) return t.push(n), n;
300
430
  }));
301
431
  }
302
- function w(e, t) {
303
- let n = C(e);
304
- return !t || Object.keys(t).length === 0 ? n : S(n, t);
432
+ //#endregion
433
+ //#region ../types/src/factory.ts
434
+ function D(e, t) {
435
+ let n = E(e);
436
+ return !t || Object.keys(t).length === 0 ? n : T(n, t);
305
437
  }
306
- function T(e) {
307
- return e === void 0 ? void 0 : C(e);
438
+ function O(e) {
439
+ return e === void 0 ? void 0 : E(e);
308
440
  }
309
- function E() {
441
+ function k() {
310
442
  return crypto.randomUUID();
311
443
  }
312
- function _e(e = 0) {
444
+ function Le(e = 0) {
313
445
  return {
314
446
  top: e,
315
447
  right: e,
@@ -317,135 +449,135 @@ function _e(e = 0) {
317
449
  left: e
318
450
  };
319
451
  }
320
- function D(e = 10) {
321
- return { padding: _e(e) };
452
+ function A(e = 10) {
453
+ return { padding: Le(e) };
322
454
  }
323
- function O(e = {}) {
324
- return w({
325
- id: E(),
455
+ function j(e = {}) {
456
+ return D({
457
+ id: k(),
326
458
  type: "title",
327
- ...ie,
328
- styles: D()
459
+ ...S,
460
+ styles: A()
329
461
  }, e);
330
462
  }
331
- function k(e = {}) {
332
- return w({
333
- id: E(),
463
+ function M(e = {}) {
464
+ return D({
465
+ id: k(),
334
466
  type: "paragraph",
335
- ...h,
336
- styles: D()
467
+ ...be,
468
+ styles: A()
337
469
  }, e);
338
470
  }
339
- function A(e = {}) {
340
- return w({
341
- id: E(),
471
+ function N(e = {}) {
472
+ return D({
473
+ id: k(),
342
474
  type: "image",
343
- ...g,
344
- styles: D()
475
+ ...xe,
476
+ styles: A()
345
477
  }, e);
346
478
  }
347
- function j(e = {}) {
348
- return w({
349
- id: E(),
479
+ function P(e = {}) {
480
+ return D({
481
+ id: k(),
350
482
  type: "button",
351
- ..._,
352
- styles: D()
483
+ ...Se,
484
+ styles: A()
353
485
  }, e);
354
486
  }
355
- function M(e = {}) {
356
- return w({
357
- id: E(),
487
+ function F(e = {}) {
488
+ return D({
489
+ id: k(),
358
490
  type: "divider",
359
- ...v,
360
- styles: D(20)
491
+ ...Ce,
492
+ styles: A(20)
361
493
  }, e);
362
494
  }
363
- function N(e = {}) {
364
- return w({
365
- id: E(),
495
+ function I(e = {}) {
496
+ return D({
497
+ id: k(),
366
498
  type: "section",
367
- ...y,
499
+ ...we,
368
500
  children: [[]],
369
- styles: D(20)
501
+ styles: A(20)
370
502
  }, e);
371
503
  }
372
- function P(e = {}) {
373
- return w({
374
- id: E(),
504
+ function L(e = {}) {
505
+ return D({
506
+ id: k(),
375
507
  type: "video",
376
- ...b,
377
- styles: D()
508
+ ...Te,
509
+ styles: A()
378
510
  }, e);
379
511
  }
380
- function F(e = {}) {
381
- return w({
382
- id: E(),
512
+ function R(e = {}) {
513
+ return D({
514
+ id: k(),
383
515
  type: "social",
384
516
  icons: [],
385
- ...x,
386
- styles: D()
517
+ ...Ee,
518
+ styles: A()
387
519
  }, e);
388
520
  }
389
- function I(e = {}) {
390
- return w({
391
- id: E(),
521
+ function z(e = {}) {
522
+ return D({
523
+ id: k(),
392
524
  type: "spacer",
393
- ...ae,
394
- styles: D(0)
525
+ ...De,
526
+ styles: A(0)
395
527
  }, e);
396
528
  }
397
- function L(e = {}) {
398
- return w({
399
- id: E(),
529
+ function B(e = {}) {
530
+ return D({
531
+ id: k(),
400
532
  type: "html",
401
- ...oe,
402
- styles: D()
533
+ ...Oe,
534
+ styles: A()
403
535
  }, e);
404
536
  }
405
- function R(e = {}) {
406
- return w({
407
- id: E(),
537
+ function V(e = {}) {
538
+ return D({
539
+ id: k(),
408
540
  type: "menu",
409
541
  items: [],
410
- ...se,
411
- styles: D()
542
+ ...ke,
543
+ styles: A()
412
544
  }, e);
413
545
  }
414
- function ve(e, t) {
546
+ function Re(e, t) {
415
547
  return Array.from({ length: t }, () => ({
416
- id: E(),
548
+ id: k(),
417
549
  cells: Array.from({ length: e }, () => ({
418
- id: E(),
550
+ id: k(),
419
551
  content: ""
420
552
  }))
421
553
  }));
422
554
  }
423
- function z(e = {}) {
424
- return w({
425
- id: E(),
555
+ function H(e = {}) {
556
+ return D({
557
+ id: k(),
426
558
  type: "table",
427
- rows: ve(3, 3),
428
- ...ce,
429
- styles: D()
559
+ rows: Re(3, 3),
560
+ ...Ae,
561
+ styles: A()
430
562
  }, e);
431
563
  }
432
- function B(e = {}) {
433
- return w({
434
- id: E(),
564
+ function U(e = {}) {
565
+ return D({
566
+ id: k(),
435
567
  type: "countdown",
436
- ...le,
437
- styles: D()
568
+ ...je,
569
+ styles: A()
438
570
  }, e);
439
571
  }
440
- function ye(e) {
572
+ function ze(e) {
441
573
  return e.type === "repeatable" ? e.default ?? [] : e.type === "boolean" ? e.default ?? !1 : e.type === "number" ? e.default ?? 0 : e.default ?? "";
442
574
  }
443
- function be(e) {
575
+ function Be(e) {
444
576
  let t = {};
445
- for (let n of e.fields) t[n.key] = T(ye(n));
446
- let n = w(D(), T(e.defaultStyles));
577
+ for (let n of e.fields) t[n.key] = O(ze(n));
578
+ let n = D(A(), O(e.defaultStyles));
447
579
  return {
448
- id: E(),
580
+ id: k(),
449
581
  type: "custom",
450
582
  customType: e.type,
451
583
  fieldValues: t,
@@ -453,144 +585,148 @@ function be(e) {
453
585
  ...e.dataSource ? { dataSourceFetched: !1 } : {}
454
586
  };
455
587
  }
456
- function xe() {
588
+ function Ve() {
457
589
  return {
458
- id: E(),
590
+ id: k(),
459
591
  type: "slot",
460
- styles: D(0)
592
+ styles: A(0)
461
593
  };
462
594
  }
463
- function Se(e = {}) {
464
- return w({
465
- id: E(),
595
+ function He(e = {}) {
596
+ return D({
597
+ id: k(),
466
598
  type: "wrapper",
467
599
  children: [],
468
- styles: D(0)
600
+ styles: A(0)
469
601
  }, e);
470
602
  }
471
- function Ce(e, t) {
603
+ function Ue(e, t) {
472
604
  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));
605
+ case "section": return I(O(t?.section));
606
+ case "title": return j(O(t?.title));
607
+ case "paragraph": return M(O(t?.paragraph));
608
+ case "image": return N(O(t?.image));
609
+ case "button": return P(O(t?.button));
610
+ case "divider": return F(O(t?.divider));
611
+ case "video": return L(O(t?.video));
612
+ case "social": return R(O(t?.social));
613
+ case "spacer": return z(O(t?.spacer));
614
+ case "html": return B(O(t?.html));
615
+ case "menu": return V(O(t?.menu));
616
+ case "table": return H(O(t?.table));
617
+ case "countdown": return U(O(t?.countdown));
486
618
  case "slot": throw Error("[Templatical] slot cannot be inserted into content. Use createSlotBlock() to build a layout.");
487
619
  case "wrapper": throw Error("[Templatical] wrapper cannot be inserted into content. Use createWrapperBlock() to build a layout.");
488
620
  default: throw Error(`Unknown block type: ${e}`);
489
621
  }
490
622
  }
491
- function V(e) {
623
+ function W(e) {
492
624
  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();
625
+ if (t.id = k(), t.type === "table") for (let e of t.rows) {
626
+ e.id = k();
627
+ for (let t of e.cells) t.id = k();
496
628
  }
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;
629
+ if (t.type === "menu") for (let e of t.items) e.id = k();
630
+ if (t.type === "social") for (let e of t.icons) e.id = k();
631
+ 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
632
  }
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);
633
+ //#endregion
634
+ //#region ../types/src/layout.ts
635
+ var We = "[Templatical] layout: must contain exactly one slot block", Ge = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", Ke = "[Templatical] layout: a wrapper cannot contain a wrapper", qe = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", Je = "[Templatical] slot is not a valid content block", Ye = "[Templatical] wrapper is not a valid content block";
636
+ function G(e, t, n = null, r = !1) {
637
+ for (let i of e) if (t(i, n, r), y(i)) for (let e of i.children) G(e, t, i, !0);
638
+ else x(i) && G(i.children, t, i, r);
505
639
  }
506
- function W(e) {
640
+ function Xe(e) {
507
641
  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);
642
+ if (G(e.blocks, (e, n, r) => {
643
+ if (b(e) && (t += 1, r)) throw Error(Ge);
644
+ if (x(e)) {
645
+ if (r) throw Error(Ge);
646
+ if (e.children.some(x)) throw Error(Ke);
513
647
  }
514
- }), t !== 1) throw Error(H);
648
+ }), t !== 1) throw Error(We);
515
649
  }
516
- function G(e) {
517
- U(e.blocks, (e) => {
518
- if (p(e)) throw Error(De);
650
+ function Ze(e) {
651
+ G(e.blocks, (e) => {
652
+ if (b(e)) throw Error(Je);
519
653
  });
520
654
  }
521
- function K(e) {
522
- U(e.blocks, (e) => {
523
- if (m(e)) throw Error(Oe);
655
+ function Qe(e) {
656
+ G(e.blocks, (e) => {
657
+ if (x(e)) throw Error(Ye);
524
658
  });
525
659
  }
526
- function ke(e) {
660
+ function $e(e) {
527
661
  let t = !1;
528
- return U(e.blocks, (e, n) => {
529
- p(e) && n !== null && m(n) && (t = !0);
662
+ return G(e.blocks, (e, n) => {
663
+ b(e) && n !== null && x(n) && (t = !0);
530
664
  }), t;
531
665
  }
532
- function Ae(e) {
533
- if (p(e)) return e;
534
- if (m(e)) {
535
- let t = V({
666
+ function et(e) {
667
+ if (b(e)) return e;
668
+ if (x(e)) {
669
+ let t = W({
536
670
  ...e,
537
671
  children: []
538
672
  });
539
- return t.children = e.children.map(Ae), t;
673
+ return t.children = e.children.map(et), t;
540
674
  }
541
- return V(e);
675
+ return W(e);
542
676
  }
543
- function je(e) {
677
+ function tt(e) {
544
678
  for (let t = 0; t < e.length; t++) {
545
679
  let n = e[t];
546
- if (p(n)) return {
680
+ if (b(n)) return {
547
681
  parent: e,
548
682
  index: t
549
683
  };
550
- if (m(n)) {
551
- let e = je(n.children);
684
+ if (x(n)) {
685
+ let e = tt(n.children);
552
686
  if (e) return e;
553
687
  }
554
688
  }
555
689
  return null;
556
690
  }
557
- function Me(e) {
558
- for (let t of e) if (f(t)) {
691
+ function nt(e) {
692
+ for (let t of e) if (y(t)) {
559
693
  if (t.wrapper) return !0;
560
- for (let e of t.children) if (Me(e)) return !0;
694
+ for (let e of t.children) if (nt(e)) return !0;
561
695
  }
562
696
  return !1;
563
697
  }
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)), {
698
+ function rt(e, t) {
699
+ if (Xe(e), Ze(t), Qe(t), $e(e) && nt(t.blocks)) throw Error(qe);
700
+ let n = e.blocks.map(et), r = tt(n);
701
+ if (!r) throw Error(We);
702
+ return r.parent.splice(r.index, 1, ...E(t.blocks)), {
569
703
  blocks: n,
570
704
  settings: {
571
- ...C(t.settings),
705
+ ...E(t.settings),
572
706
  backgroundColor: e.settings.backgroundColor
573
707
  }
574
708
  };
575
709
  }
576
- var Pe = /* @__PURE__ */ new Set(["\"", "'"]);
577
- function Fe(e, t) {
710
+ //#endregion
711
+ //#region ../types/src/html-scan.ts
712
+ var it = /* @__PURE__ */ new Set(["\"", "'"]);
713
+ function at(e, t) {
578
714
  let n = null;
579
715
  for (let r = t; r < e.length; r++) {
580
716
  let t = e[r];
581
717
  if (n !== null) t === n && (n = null);
582
- else if (Pe.has(t)) n = t;
718
+ else if (it.has(t)) n = t;
583
719
  else if (t === ">") return r;
584
720
  }
585
721
  return -1;
586
722
  }
587
- function Ie(e) {
723
+ function ot(e) {
588
724
  return e !== " " && e !== " " && e !== "\n" && e !== "\r" && e !== "\f" && e !== "=" && e !== ">" && e !== "/";
589
725
  }
590
- function q(e) {
726
+ function K(e) {
591
727
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
592
728
  }
593
- var Le = {
729
+ var st = {
594
730
  amp: "&",
595
731
  lt: "<",
596
732
  gt: ">",
@@ -598,45 +734,56 @@ var Le = {
598
734
  apos: "'",
599
735
  nbsp: "\xA0"
600
736
  };
601
- function Re(e) {
737
+ function ct(e) {
602
738
  return e.includes("&") ? e.replace(/&(#[0-9]+|#[xX][0-9a-fA-F]+|[a-zA-Z][a-zA-Z0-9]*);/g, (e, t) => {
603
739
  if (t[0] === "#") {
604
740
  let n = t[1] === "x" || t[1] === "X" ? Number.parseInt(t.slice(2), 16) : Number.parseInt(t.slice(1), 10);
605
741
  return !Number.isFinite(n) || n < 1 || n > 1114111 || n >= 55296 && n <= 57343 ? e : String.fromCodePoint(n);
606
742
  }
607
- return Le[t.toLowerCase()] ?? e;
743
+ return st[t.toLowerCase()] ?? e;
608
744
  }) : e;
609
745
  }
610
- function ze(e, t) {
746
+ function lt(e, t) {
611
747
  let n = t.toLowerCase(), r = 0;
612
748
  for (; r < e.length;) {
613
- for (; r < e.length && (q(e[r]) || e[r] === "/");) r++;
749
+ for (; r < e.length && (K(e[r]) || e[r] === "/");) r++;
614
750
  if (r >= e.length) break;
615
751
  let t = r;
616
- for (; r < e.length && Ie(e[r]);) r++;
752
+ for (; r < e.length && ot(e[r]);) r++;
617
753
  let i = e.substring(t, r).toLowerCase();
618
754
  if (i === "") {
619
755
  r++;
620
756
  continue;
621
757
  }
622
- for (; r < e.length && q(e[r]);) r++;
758
+ for (; r < e.length && K(e[r]);) r++;
623
759
  if (e[r] !== "=") continue;
624
- for (r++; r < e.length && q(e[r]);) r++;
760
+ for (r++; r < e.length && K(e[r]);) r++;
625
761
  let a = e[r];
626
- if (Pe.has(a)) {
762
+ if (it.has(a)) {
627
763
  let t = r + 1, o = e.indexOf(a, t);
628
764
  if (o === -1) return null;
629
- if (i === n) return Re(e.substring(t, o));
765
+ if (i === n) return ct(e.substring(t, o));
630
766
  r = o + 1;
631
767
  continue;
632
768
  }
633
769
  let o = r;
634
- for (; r < e.length && !q(e[r]) && e[r] !== ">";) r++;
635
- if (i === n) return Re(e.substring(o, r));
770
+ for (; r < e.length && !K(e[r]) && e[r] !== ">";) r++;
771
+ if (i === n) return ct(e.substring(o, r));
636
772
  }
637
773
  return null;
638
774
  }
639
- var Be = {
775
+ //#endregion
776
+ //#region ../types/src/rich-text.ts
777
+ var ut = /<\/?p\b[^<>]*>/gi, dt = /<p\b([^<>]*)>\s*<\/p>/gi;
778
+ function ft(e) {
779
+ return e.replace(ut, "").trim() === "";
780
+ }
781
+ function pt(e) {
782
+ return ft(e) ? e : e.replace(dt, "<p$1>&nbsp;</p>");
783
+ }
784
+ //#endregion
785
+ //#region ../types/src/fonts.ts
786
+ var mt = {
640
787
  arial: "Arial, sans-serif",
641
788
  helvetica: "Helvetica, sans-serif",
642
789
  georgia: "Georgia, serif",
@@ -645,21 +792,35 @@ var Be = {
645
792
  "trebuchet ms": "'Trebuchet MS', sans-serif",
646
793
  "courier new": "'Courier New', monospace",
647
794
  tahoma: "Tahoma, sans-serif"
648
- }, Ve = /* @__PURE__ */ new Set([
795
+ }, ht = /* @__PURE__ */ new Set([
649
796
  "inherit",
650
797
  "initial",
651
798
  "unset",
652
799
  "revert",
653
800
  "revert-layer"
801
+ ]), gt = /* @__PURE__ */ new Set([
802
+ "serif",
803
+ "sans-serif",
804
+ "monospace",
805
+ "cursive",
806
+ "fantasy",
807
+ "system-ui",
808
+ "ui-serif",
809
+ "ui-sans-serif",
810
+ "ui-monospace",
811
+ "ui-rounded",
812
+ "emoji",
813
+ "math",
814
+ "fangsong"
654
815
  ]);
655
- function He(e) {
816
+ function _t(e) {
656
817
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
657
818
  }
658
- function J(e) {
819
+ function q(e) {
659
820
  if (typeof e != "string") return [];
660
821
  let t = e.replace(/!\s*important\s*$/i, ""), n = [], r = 0;
661
822
  for (;;) {
662
- for (; r < t.length && He(t[r]);) r++;
823
+ for (; r < t.length && _t(t[r]);) r++;
663
824
  if (r >= t.length) return [];
664
825
  let e = t[r];
665
826
  if (e === "\"" || e === "'") {
@@ -676,7 +837,7 @@ function J(e) {
676
837
  }
677
838
  }
678
839
  if (!o) return [];
679
- for (; a < t.length && He(t[a]);) a++;
840
+ for (; a < t.length && _t(t[a]);) a++;
680
841
  if (a < t.length && t[a] !== ",") return [];
681
842
  n.push({
682
843
  name: i,
@@ -684,7 +845,7 @@ function J(e) {
684
845
  }), r = a;
685
846
  } else {
686
847
  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 [];
848
+ if (a === "" || a.includes("\"") || a.includes("'") || ht.has(a.toLowerCase())) return [];
688
849
  n.push({
689
850
  name: a,
690
851
  quoted: !1
@@ -694,9 +855,25 @@ function J(e) {
694
855
  r++;
695
856
  }
696
857
  }
697
- function Ue(e) {
698
- return J(e)[0]?.name ?? "";
858
+ function J(e) {
859
+ return `'${e.replace(/\\/g, "\\\\").replace(/'/g, "\\'")}'`;
860
+ }
861
+ function vt(e) {
862
+ return !e.quoted && gt.has(e.name.toLowerCase());
863
+ }
864
+ function yt(e) {
865
+ return q(e)[0]?.name ?? "";
866
+ }
867
+ function bt(e, t) {
868
+ let n = (e) => `${J(e.name)}, ${e.fallback ?? t.defaultFallback}`, r = typeof e == "string" ? e.trim().toLowerCase() : "", i = t.customFonts.find((e) => e.name.toLowerCase() === r);
869
+ if (i) return n(i);
870
+ let a = q(e);
871
+ if (a.length !== 1) return e;
872
+ let [o] = a, s = o.name.toLowerCase(), c = t.customFonts.find((e) => e.name.toLowerCase() === s);
873
+ return c ? n(c) : mt[s] || (vt(o) ? e : `${J(o.name)}, ${t.defaultFallback}`);
699
874
  }
875
+ //#endregion
876
+ //#region ../types/src/merge-tags.ts
700
877
  var Y = {
701
878
  liquid: {
702
879
  value: /\{\{.+?\}\}/g,
@@ -714,33 +891,33 @@ var Y = {
714
891
  value: /%%=.+?=%%/g,
715
892
  logic: /%%\[\s*(\w+).*?\]%%/g
716
893
  }
717
- }, We = {
894
+ }, xt = {
718
895
  liquid: "{{",
719
896
  handlebars: "{{",
720
897
  mailchimp: "*|",
721
898
  ampscript: "%%="
722
- }, Ge = {
899
+ }, St = {
723
900
  liquid: "}}",
724
901
  handlebars: "}}",
725
902
  mailchimp: "|*",
726
903
  ampscript: "=%%"
727
904
  };
728
- function Ke(e) {
729
- for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return We[t];
905
+ function Ct(e) {
906
+ for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return xt[t];
730
907
  return null;
731
908
  }
732
- function qe(e) {
733
- for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return Ge[t];
909
+ function wt(e) {
910
+ for (let t of Object.keys(Y)) if (Y[t].value.source === e.value.source) return St[t];
734
911
  return null;
735
912
  }
736
- function Je(e) {
913
+ function Tt(e) {
737
914
  return e ? typeof e == "string" ? Y[e] ?? Y.liquid : e : Y.liquid;
738
915
  }
739
916
  function X(e) {
740
917
  let t = e.source, n = e.flags.replace("g", "");
741
918
  return RegExp(`^${t}$`, n);
742
919
  }
743
- function Ye(e, t) {
920
+ function Et(e, t) {
744
921
  let n = e?.trim() || "";
745
922
  return !X(t.logic).test(n) && X(t.value).test(n);
746
923
  }
@@ -748,41 +925,41 @@ function Z(e, t) {
748
925
  let n = t.find((t) => t.value === e);
749
926
  return n ? n.label : e;
750
927
  }
751
- function Xe(e, t) {
928
+ function Dt(e, t) {
752
929
  return $(e, "data-merge-tag", (e) => Z(e, t));
753
930
  }
754
931
  function Q(e, t) {
755
932
  return t.find((t) => t.value === e)?.sample;
756
933
  }
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 });
934
+ function Ot(e, t) {
935
+ return $(e, "data-merge-tag", (e) => jt(Q(e, t) ?? Z(e, t)), { unwrap: (e) => Q(e, t) !== void 0 });
759
936
  }
760
- function Qe(e) {
937
+ function kt(e) {
761
938
  return e.some((e) => e.sample !== void 0);
762
939
  }
763
- function $e(e, t) {
940
+ function At(e, t) {
764
941
  if (!e) return e;
765
942
  let n = e;
766
943
  for (let e of t) e.sample !== void 0 && (n = n.split(e.value).join(e.sample));
767
944
  return n;
768
945
  }
769
- function et(e) {
946
+ function jt(e) {
770
947
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
771
948
  }
772
- function tt(e, t) {
949
+ function Mt(e, t) {
773
950
  if (!e) return !1;
774
951
  let n = new RegExp(t.value.source, t.value.flags), r = new RegExp(t.logic.source, t.logic.flags);
775
952
  return n.test(e) || r.test(e);
776
953
  }
777
- function nt(e, t) {
954
+ function Nt(e, t) {
778
955
  return X(t.logic).test(e?.trim() || "");
779
956
  }
780
- function rt(e, t) {
957
+ function Pt(e, t) {
781
958
  let n = new RegExp(t.logic.source, t.logic.flags.replace("g", "")), r = e.match(n);
782
959
  return r && r[1] ? r[1].toUpperCase() : e;
783
960
  }
784
- function it(e, t) {
785
- return $(e, "data-logic-merge-tag", (e) => rt(e, t));
961
+ function Ft(e, t) {
962
+ return $(e, "data-logic-merge-tag", (e) => Pt(e, t));
786
963
  }
787
964
  function $(e, t, n, r) {
788
965
  let i = "", a = 0;
@@ -797,7 +974,7 @@ function $(e, t, n, r) {
797
974
  i += e.substring(a, o + 5), a = o + 5;
798
975
  continue;
799
976
  }
800
- let c = Fe(e, o + 5);
977
+ let c = at(e, o + 5);
801
978
  if (c === -1) {
802
979
  i += e.substring(a);
803
980
  break;
@@ -807,7 +984,7 @@ function $(e, t, n, r) {
807
984
  i += e.substring(a);
808
985
  break;
809
986
  }
810
- let u = ze(e.substring(o + 5, c), t);
987
+ let u = lt(e.substring(o + 5, c), t);
811
988
  if (u === null) {
812
989
  i += e.substring(a, o + 5), a = o + 5;
813
990
  continue;
@@ -817,12 +994,14 @@ function $(e, t, n, r) {
817
994
  }
818
995
  return i;
819
996
  }
820
- function at(e) {
821
- if (typeof e != "object" || !e) return !1;
822
- let t = e;
823
- return Array.isArray(t.blocks);
997
+ //#endregion
998
+ //#region ../types/src/preview-resolution.ts
999
+ function It(e) {
1000
+ return typeof e != "object" || !e ? !1 : Array.isArray(e.blocks);
824
1001
  }
825
- var ot = class extends Error {
1002
+ //#endregion
1003
+ //#region ../types/src/config.ts
1004
+ var Lt = class extends Error {
826
1005
  statusCode;
827
1006
  constructor(e, t) {
828
1007
  super(e), this.statusCode = t, this.name = "SdkError";
@@ -838,4 +1017,6 @@ var ot = class extends Error {
838
1017
  }
839
1018
  };
840
1019
  //#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 };
1020
+ export { C as $, W as A, s as At, I as B, at as C, d as Ct, Qe as D, m as Dt, Ze as E, p as Et, F, o as Ft, j as G, R as H, B as I, t as It, k as J, L as K, N as L, P as M, c as Mt, U as N, n as Nt, $e as O, i as Ot, Be as P, r as Pt, Me as Q, V as R, ft as S, ne as St, rt as T, ee as Tt, z as U, Ve as V, H as W, Ie as X, E as Y, Ne as Z, At as _, ae as _t, Pt as a, ue as at, bt as b, oe as bt, wt as c, y as ct, Nt as d, he as dt, T as et, Et as f, ve as ft, Ot as g, g as gt, Tt as h, x as ht, Mt as i, ge as it, Ue as j, l as jt, Xe as k, e as kt, Ct as l, b as lt, Dt as m, pe as mt, It as n, ye as nt, Z as o, _e as ot, Ft as p, ce as pt, He as q, Y as r, fe as rt, Q as s, le as st, Lt as t, de as tt, kt as u, me as ut, yt as v, ie as vt, lt as w, f as wt, pt as x, h as xt, q as y, se as yt, M as z };
1021
+
1022
+ //# sourceMappingURL=src-DYCDeBDM.js.map