@templatical/editor 0.44.2 → 0.45.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 (295) hide show
  1. package/README.md +1 -1
  2. package/dist/{AiChatSidebar-BUR5Jshu.js → AiChatSidebar-BlFWWhBv.js} +15 -19
  3. package/dist/{AiFeatureMenu-CgfLFHJw.js → AiFeatureMenu-CvWygUmC.js} +7 -7
  4. package/dist/{BlockIssueBadge-CWZEwMXX.js → BlockIssueBadge-CZA1XvAh.js} +5 -5
  5. package/dist/{BlockPreviewCanvas-2vVu55yN.js → BlockPreviewCanvas-DwxJOTzH.js} +5 -5
  6. package/dist/{CloudHeaderExtras-BZ62q1aS.js → CloudHeaderExtras-BzM1QU1r.js} +5 -5
  7. package/dist/{CloudPanels-sv4aCKKE.js → CloudPanels-d36YXXyn.js} +8 -8
  8. package/dist/{CollaboratorBar-CSEFL7uC.js → CollaboratorBar-rwXe_Qd2.js} +4 -4
  9. package/dist/{CommentsPanel-CYMHfFcn.js → CommentsPanel-Bn6P5crU.js} +2 -2
  10. package/dist/{CommentsSidebar-uvQyCMUe.js → CommentsSidebar-B8wT932T.js} +14 -14
  11. package/dist/{CountdownBlock-C6R-hn7D.js → CountdownBlock-RNx3hIu0.js} +3 -3
  12. package/dist/{CountdownToolbar-C052mx2P.js → CountdownToolbar-lbjCc8ik.js} +62 -61
  13. package/dist/{DesignReferenceSidebar-ZKJ7y7-G.js → DesignReferenceSidebar-zlJQsP0X.js} +25 -26
  14. package/dist/{IssuesPanel-DAlNiJX_.js → IssuesPanel-CHx3m8SP.js} +8 -8
  15. package/dist/{LoadingTrack-C1Epulqq.js → LoadingTrack-DROqNuuD.js} +1 -1
  16. package/dist/{LogicTagInsertButton-DMUfVsPr.js → LogicTagInsertButton-BvftbkL4.js} +13 -19
  17. package/dist/{MediaEditModal-Cmd9tQXZ.js → MediaEditModal-EY1YYcpw.js} +6 -14
  18. package/dist/{MediaPanels-DoBhG5gg.js → MediaPanels-CRVFGFZW.js} +2 -2
  19. package/dist/{MergeTagInput-DoQWMSW4.js → MergeTagInput-CR1kcj8X.js} +2 -2
  20. package/dist/{MergeTagModeToggle-DOHixe4G.js → MergeTagModeToggle-DssKrVYb.js} +7 -7
  21. package/dist/{ParagraphEditor-C_p6yKLK.js → ParagraphEditor-DFizsZRc.js} +140 -139
  22. package/dist/{RestoreVersionDialog-CKHeCPG2.js → RestoreVersionDialog-Cp3q2mU4.js} +5 -5
  23. package/dist/{RichTextEditorContent-BedBVHXS.js → RichTextEditorContent-Cj3oaPMk.js} +9 -9
  24. package/dist/{SaveBlockDialog-q3_fjb9t.js → SaveBlockDialog-BR8vW_XF.js} +13 -13
  25. package/dist/SavedBlocksBrowserModal-DmwbmKxI.js +360 -0
  26. package/dist/{SavedBlocksPanels-DNpnl5cO.js → SavedBlocksPanels-D4XKrs-a.js} +2 -2
  27. package/dist/{SavedBlocksPickBar-Pq2bjpB_.js → SavedBlocksPickBar-gfc-o5sR.js} +4 -4
  28. package/dist/{TemplateScoringPanel-DXsyp0_A.js → TemplateScoringPanel-3lHzuCl0.js} +16 -16
  29. package/dist/TemplateSettings-D7aNrd0d.js +246 -0
  30. package/dist/{TestEmailModal-BYCKpH7g.js → TestEmailModal-DUmtcSm-.js} +11 -11
  31. package/dist/{TestEmailPanel-lUXAFsT5.js → TestEmailPanel-s9gISTI8.js} +2 -2
  32. package/dist/{TitleEditor-CWPxXUp2.js → TitleEditor-C-uHqtml.js} +13 -13
  33. package/dist/{ToggleSwitch-D7GLaT8s.js → ToggleSwitch-CTwwCIVA.js} +2 -2
  34. package/dist/{Toolbar-CWxqqBHE.js → Toolbar-CLpA36RO.js} +518 -520
  35. package/dist/{TplModal-D6lqrKls.js → TplModal-D6XtxusQ.js} +5 -5
  36. package/dist/{VersionHistoryMenu-fLrx-Lvi.js → VersionHistoryMenu-D7zaTMrb.js} +10 -10
  37. package/dist/{VersionHistoryPanels-C3XhpQO_.js → VersionHistoryPanels-Dvowtt7V.js} +2 -2
  38. package/dist/{VersionPreviewBanner-CWuxq_bb.js → VersionPreviewBanner-BUKb9gc6.js} +3 -3
  39. package/dist/{WrapperBlock-ox8TMS_p.js → WrapperBlock-CzJa2Mxw.js} +3 -3
  40. package/dist/{blockTypeIcons-DEvNVvBj.js → blockTypeIcons-D3aj5u_5.js} +2 -2
  41. package/dist/bundle-stats.json +7 -7
  42. package/dist/{ca-DSwai-th.js → ca-C__Dzq--.js} +6 -0
  43. package/dist/cdn/chunks/{AiChatSidebar-Cvp9beXR.js → AiChatSidebar-SRGBP-SL.js} +9 -13
  44. package/dist/cdn/chunks/{AiChatSidebar-Cvp9beXR.js.map → AiChatSidebar-SRGBP-SL.js.map} +1 -1
  45. package/dist/cdn/chunks/{AiFeatureMenu-vOJtwdmT.js → AiFeatureMenu-oZhlgsGh.js} +6 -6
  46. package/dist/cdn/chunks/{AiFeatureMenu-vOJtwdmT.js.map → AiFeatureMenu-oZhlgsGh.js.map} +1 -1
  47. package/dist/cdn/chunks/{BlockIssueBadge-CKIrYROg.js → BlockIssueBadge-05Q3L4RV.js} +5 -5
  48. package/dist/cdn/chunks/{BlockIssueBadge-CKIrYROg.js.map → BlockIssueBadge-05Q3L4RV.js.map} +1 -1
  49. package/dist/cdn/chunks/{BlockPreviewCanvas-CB27Joyn.js → BlockPreviewCanvas-hKxE6f-k.js} +6 -6
  50. package/dist/cdn/chunks/{BlockPreviewCanvas-CB27Joyn.js.map → BlockPreviewCanvas-hKxE6f-k.js.map} +1 -1
  51. package/dist/cdn/chunks/{CloudHeaderExtras-9tKrhPm6.js → CloudHeaderExtras-t-_ZlHwn.js} +5 -5
  52. package/dist/cdn/chunks/{CloudHeaderExtras-9tKrhPm6.js.map → CloudHeaderExtras-t-_ZlHwn.js.map} +1 -1
  53. package/dist/cdn/chunks/{CloudPanels-DTQ7zbEN.js → CloudPanels-DR2eEcpX.js} +7 -7
  54. package/dist/cdn/chunks/{CloudPanels-DTQ7zbEN.js.map → CloudPanels-DR2eEcpX.js.map} +1 -1
  55. package/dist/cdn/chunks/{CollaboratorBar-BKTkVMbz.js → CollaboratorBar-w8_2WPE0.js} +5 -5
  56. package/dist/cdn/chunks/{CollaboratorBar-BKTkVMbz.js.map → CollaboratorBar-w8_2WPE0.js.map} +1 -1
  57. package/dist/cdn/chunks/{CommentsPanel-BjHRj_Yw.js → CommentsPanel-VH_NJ5HZ.js} +3 -3
  58. package/dist/cdn/chunks/{CommentsPanel-BjHRj_Yw.js.map → CommentsPanel-VH_NJ5HZ.js.map} +1 -1
  59. package/dist/cdn/chunks/{CommentsSidebar-CpCfqSq4.js → CommentsSidebar-CYPH5rVi.js} +5 -5
  60. package/dist/cdn/chunks/{CommentsSidebar-CpCfqSq4.js.map → CommentsSidebar-CYPH5rVi.js.map} +1 -1
  61. package/dist/cdn/chunks/{CountdownBlock-sVDjKkRw.js → CountdownBlock-lHU3Lu7Q.js} +4 -4
  62. package/dist/cdn/chunks/{CountdownBlock-sVDjKkRw.js.map → CountdownBlock-lHU3Lu7Q.js.map} +1 -1
  63. package/dist/cdn/chunks/{CountdownToolbar-C9QpHQcv.js → CountdownToolbar-CvNuDR5Z.js} +63 -62
  64. package/dist/cdn/chunks/CountdownToolbar-CvNuDR5Z.js.map +1 -0
  65. package/dist/cdn/chunks/{DesignReferenceSidebar-BO0xz1wC.js → DesignReferenceSidebar-CJg_5GXU.js} +21 -22
  66. package/dist/cdn/chunks/{DesignReferenceSidebar-BO0xz1wC.js.map → DesignReferenceSidebar-CJg_5GXU.js.map} +1 -1
  67. package/dist/cdn/chunks/{IssuesPanel--62qud8w.js → IssuesPanel-DXqlRk19.js} +6 -6
  68. package/dist/cdn/chunks/{IssuesPanel--62qud8w.js.map → IssuesPanel-DXqlRk19.js.map} +1 -1
  69. package/dist/cdn/chunks/{LoadingTrack-_7DH_5aw.js → LoadingTrack-Cg1HRIND.js} +2 -2
  70. package/dist/cdn/chunks/{LoadingTrack-_7DH_5aw.js.map → LoadingTrack-Cg1HRIND.js.map} +1 -1
  71. package/dist/cdn/chunks/{LogicTagInsertButton-gc8ICURV.js → LogicTagInsertButton-DnHghQHb.js} +11 -17
  72. package/dist/cdn/chunks/{LogicTagInsertButton-gc8ICURV.js.map → LogicTagInsertButton-DnHghQHb.js.map} +1 -1
  73. package/dist/cdn/chunks/{MediaEditModal-BuDXKwx4.js → MediaEditModal-CD3fVbWI.js} +6 -14
  74. package/dist/cdn/chunks/{MediaEditModal-BuDXKwx4.js.map → MediaEditModal-CD3fVbWI.js.map} +1 -1
  75. package/dist/cdn/chunks/{MediaPanels-xFpaxFRH.js → MediaPanels-B2AyUUcf.js} +3 -3
  76. package/dist/cdn/chunks/{MediaPanels-xFpaxFRH.js.map → MediaPanels-B2AyUUcf.js.map} +1 -1
  77. package/dist/cdn/chunks/{MergeTagInput-DsPKWbWr.js → MergeTagInput-heTX9P_k.js} +3 -3
  78. package/dist/cdn/chunks/{MergeTagInput-DsPKWbWr.js.map → MergeTagInput-heTX9P_k.js.map} +1 -1
  79. package/dist/cdn/chunks/{MergeTagModeToggle-DU0WqgVH.js → MergeTagModeToggle-C9EfuZIP.js} +6 -6
  80. package/dist/cdn/chunks/{MergeTagModeToggle-DU0WqgVH.js.map → MergeTagModeToggle-C9EfuZIP.js.map} +1 -1
  81. package/dist/cdn/chunks/{ParagraphEditor-BSDGOsja.js → ParagraphEditor-B5DN4Sy4.js} +145 -144
  82. package/dist/cdn/chunks/ParagraphEditor-B5DN4Sy4.js.map +1 -0
  83. package/dist/cdn/chunks/{RestoreVersionDialog-DLe0Co57.js → RestoreVersionDialog-DBgJ-Nui.js} +5 -5
  84. package/dist/cdn/chunks/{RestoreVersionDialog-DLe0Co57.js.map → RestoreVersionDialog-DBgJ-Nui.js.map} +1 -1
  85. package/dist/cdn/chunks/{RichTextEditorContent-Dkcts8Vh.js → RichTextEditorContent-LOas4rfU.js} +8 -8
  86. package/dist/cdn/chunks/{RichTextEditorContent-Dkcts8Vh.js.map → RichTextEditorContent-LOas4rfU.js.map} +1 -1
  87. package/dist/cdn/chunks/{SaveBlockDialog-DQzaED8U.js → SaveBlockDialog-Dx-QVQCX.js} +11 -11
  88. package/dist/cdn/chunks/{SaveBlockDialog-DQzaED8U.js.map → SaveBlockDialog-Dx-QVQCX.js.map} +1 -1
  89. package/dist/cdn/chunks/SavedBlocksBrowserModal-C2RQ-JCc.js +357 -0
  90. package/dist/cdn/chunks/SavedBlocksBrowserModal-C2RQ-JCc.js.map +1 -0
  91. package/dist/cdn/chunks/{SavedBlocksPanels-lW7PMvJN.js → SavedBlocksPanels-BmRbvqqL.js} +3 -3
  92. package/dist/cdn/chunks/{SavedBlocksPanels-lW7PMvJN.js.map → SavedBlocksPanels-BmRbvqqL.js.map} +1 -1
  93. package/dist/cdn/chunks/{SavedBlocksPickBar-DEL0r3Bv.js → SavedBlocksPickBar-BzwKojoJ.js} +5 -5
  94. package/dist/cdn/chunks/{SavedBlocksPickBar-DEL0r3Bv.js.map → SavedBlocksPickBar-BzwKojoJ.js.map} +1 -1
  95. package/dist/cdn/chunks/{TemplateScoringPanel-BBRHCNcR.js → TemplateScoringPanel-C_57Bfkf.js} +8 -8
  96. package/dist/cdn/chunks/{TemplateScoringPanel-BBRHCNcR.js.map → TemplateScoringPanel-C_57Bfkf.js.map} +1 -1
  97. package/dist/cdn/chunks/{TemplateSettings-vsFOU0oA.js → TemplateSettings-G-yV7C1C.js} +48 -47
  98. package/dist/cdn/chunks/TemplateSettings-G-yV7C1C.js.map +1 -0
  99. package/dist/cdn/chunks/{TestEmailModal-B7Dr2eFa.js → TestEmailModal-lOeztfTN.js} +10 -10
  100. package/dist/cdn/chunks/{TestEmailModal-B7Dr2eFa.js.map → TestEmailModal-lOeztfTN.js.map} +1 -1
  101. package/dist/cdn/chunks/{TestEmailPanel-C3PTYDbT.js → TestEmailPanel-CZswVkk_.js} +3 -3
  102. package/dist/cdn/chunks/{TestEmailPanel-C3PTYDbT.js.map → TestEmailPanel-CZswVkk_.js.map} +1 -1
  103. package/dist/cdn/chunks/{TitleEditor-gHTla_4I.js → TitleEditor-CnTT2Y3H.js} +12 -12
  104. package/dist/cdn/chunks/{TitleEditor-gHTla_4I.js.map → TitleEditor-CnTT2Y3H.js.map} +1 -1
  105. package/dist/cdn/chunks/{ToggleSwitch-DoUNcLPP.js → ToggleSwitch-CLHteVMO.js} +3 -3
  106. package/dist/cdn/chunks/{ToggleSwitch-DoUNcLPP.js.map → ToggleSwitch-CLHteVMO.js.map} +1 -1
  107. package/dist/cdn/chunks/{Toolbar-CnfNUkOY.js → Toolbar-K4tIkpG1.js} +415 -417
  108. package/dist/cdn/chunks/Toolbar-K4tIkpG1.js.map +1 -0
  109. package/dist/cdn/chunks/{TplModal-BVUBOEQL.js → TplModal-OOT36AjS.js} +5 -5
  110. package/dist/cdn/chunks/{TplModal-BVUBOEQL.js.map → TplModal-OOT36AjS.js.map} +1 -1
  111. package/dist/cdn/chunks/{VersionHistoryMenu-Cp3EHO_P.js → VersionHistoryMenu-DbxuJgDO.js} +6 -6
  112. package/dist/cdn/chunks/{VersionHistoryMenu-Cp3EHO_P.js.map → VersionHistoryMenu-DbxuJgDO.js.map} +1 -1
  113. package/dist/cdn/chunks/{VersionHistoryPanels-Dcdy7ySA.js → VersionHistoryPanels-BrpYRSfW.js} +3 -3
  114. package/dist/cdn/chunks/{VersionHistoryPanels-Dcdy7ySA.js.map → VersionHistoryPanels-BrpYRSfW.js.map} +1 -1
  115. package/dist/cdn/chunks/{VersionPreviewBanner-BgkroXnG.js → VersionPreviewBanner-HRERIH-v.js} +4 -4
  116. package/dist/cdn/chunks/{VersionPreviewBanner-BgkroXnG.js.map → VersionPreviewBanner-HRERIH-v.js.map} +1 -1
  117. package/dist/cdn/chunks/{WrapperBlock-23nAzweL.js → WrapperBlock-DdrnwH80.js} +4 -4
  118. package/dist/cdn/chunks/{WrapperBlock-23nAzweL.js.map → WrapperBlock-DdrnwH80.js.map} +1 -1
  119. package/dist/cdn/chunks/{blockTypeIcons-BMZi7sdX.js → blockTypeIcons-DdZP-3FM.js} +2 -2
  120. package/dist/cdn/chunks/{blockTypeIcons-BMZi7sdX.js.map → blockTypeIcons-DdZP-3FM.js.map} +1 -1
  121. package/dist/cdn/chunks/{ca-DSwai-th.js → ca-C__Dzq--.js} +7 -1
  122. package/dist/cdn/chunks/ca-C__Dzq--.js.map +1 -0
  123. package/dist/cdn/chunks/{cloud-DLQU5l0Z.js → cloud-bhW8qTnh.js} +4 -4
  124. package/dist/cdn/chunks/{cloud-DLQU5l0Z.js.map → cloud-bhW8qTnh.js.map} +1 -1
  125. package/dist/cdn/chunks/{createCloudRuntime-Mnx8kV2W.js → createCloudRuntime-CeRJkLR2.js} +9 -12
  126. package/dist/cdn/chunks/{createCloudRuntime-Mnx8kV2W.js.map → createCloudRuntime-CeRJkLR2.js.map} +1 -1
  127. package/dist/{de-DOhKuphf.js → cdn/chunks/de-CGjbQ2mt.js} +8 -0
  128. package/dist/cdn/chunks/de-CGjbQ2mt.js.map +1 -0
  129. package/dist/cdn/chunks/{dist-BRZhN8qJ.js → dist-B7W-Lb65.js} +2 -2
  130. package/dist/cdn/chunks/{dist-BRZhN8qJ.js.map → dist-B7W-Lb65.js.map} +1 -1
  131. package/dist/cdn/chunks/{dist-CXB2_kBa.js → dist-C5nRd_ua.js} +5 -13
  132. package/dist/cdn/chunks/{dist-CXB2_kBa.js.map → dist-C5nRd_ua.js.map} +1 -1
  133. package/dist/cdn/chunks/{draggable-IB4x6w2O.js → draggable-BUTN5vZC.js} +32 -77
  134. package/dist/cdn/chunks/{draggable-IB4x6w2O.js.map → draggable-BUTN5vZC.js.map} +1 -1
  135. package/dist/cdn/chunks/{editor-modal-B7NNAFI5.js → editor-modal-BpsbYA4_.js} +14 -34
  136. package/dist/cdn/chunks/{editor-modal-B7NNAFI5.js.map → editor-modal-BpsbYA4_.js.map} +1 -1
  137. package/dist/{en-BE28ZcUF.js → cdn/chunks/en-BTiiAC-B.js} +8 -0
  138. package/dist/cdn/chunks/en-BTiiAC-B.js.map +1 -0
  139. package/dist/cdn/chunks/en-CAt6y87e.js +1 -0
  140. package/dist/{es-oQI-dfx2.js → cdn/chunks/es-CdTOcSTf.js} +8 -0
  141. package/dist/cdn/chunks/es-CdTOcSTf.js.map +1 -0
  142. package/dist/cdn/chunks/{extensions-ClmkNA8R.js → extensions-xjRsIjMP.js} +9 -17
  143. package/dist/cdn/chunks/{extensions-ClmkNA8R.js.map → extensions-xjRsIjMP.js.map} +1 -1
  144. package/dist/{fr-rzLdCMSG.js → cdn/chunks/fr-B6lcLLzC.js} +8 -0
  145. package/dist/cdn/chunks/fr-B6lcLLzC.js.map +1 -0
  146. package/dist/cdn/chunks/{htmlparser-ClUZ6waR.js → htmlparser-CDRsn-gn.js} +3 -11
  147. package/dist/cdn/chunks/{htmlparser-ClUZ6waR.js.map → htmlparser-CDRsn-gn.js.map} +1 -1
  148. package/dist/cdn/chunks/{icons-BjvraR-Y.js → icons-Dr9erFGs.js} +48 -48
  149. package/dist/cdn/chunks/{icons-BjvraR-Y.js.map → icons-Dr9erFGs.js.map} +1 -1
  150. package/dist/{ja-dyFc6Ghz.js → cdn/chunks/ja-BhdkqENz.js} +8 -0
  151. package/dist/cdn/chunks/ja-BhdkqENz.js.map +1 -0
  152. package/dist/cdn/chunks/{keys-DCWeHkSF.js → keys-BKu-LOk5.js} +2 -2
  153. package/dist/cdn/chunks/{keys-DCWeHkSF.js.map → keys-BKu-LOk5.js.map} +1 -1
  154. package/dist/cdn/chunks/{liquid.browser-DXPjcePu.js → liquid.browser-Bbt17cVz.js} +30 -56
  155. package/dist/cdn/chunks/{liquid.browser-DXPjcePu.js.map → liquid.browser-Bbt17cVz.js.map} +1 -1
  156. package/dist/{nl-BcQhRqKR.js → cdn/chunks/nl-CE3YItYg.js} +8 -0
  157. package/dist/cdn/chunks/nl-CE3YItYg.js.map +1 -0
  158. package/dist/cdn/chunks/{preRenderCustomBlocks-Bg3rIgGJ.js → preRenderCustomBlocks-CFwa7nP9.js} +2 -2
  159. package/dist/cdn/chunks/{preRenderCustomBlocks-Bg3rIgGJ.js.map → preRenderCustomBlocks-CFwa7nP9.js.map} +1 -1
  160. package/dist/{pt-BR-UombhTMO.js → cdn/chunks/pt-BR-CUIT4rq4.js} +8 -0
  161. package/dist/cdn/chunks/pt-BR-CUIT4rq4.js.map +1 -0
  162. package/dist/cdn/chunks/{pusher-BbIHJKf3.js → pusher-C8DeiO2X.js} +18 -57
  163. package/dist/cdn/chunks/{pusher-BbIHJKf3.js.map → pusher-C8DeiO2X.js.map} +1 -1
  164. package/dist/cdn/chunks/{socialIcons-CnUJBZTO.js → socialIcons-CsYnPPll.js} +14 -24
  165. package/dist/cdn/chunks/socialIcons-CsYnPPll.js.map +1 -0
  166. package/dist/cdn/chunks/{src-QIGNPFkl.js → src-BcqNlDMe.js} +258 -237
  167. package/dist/cdn/chunks/src-BcqNlDMe.js.map +1 -0
  168. package/dist/cdn/chunks/{src-CLHnxvuS.js → src-CkXmV2I2.js} +174 -179
  169. package/dist/cdn/chunks/src-CkXmV2I2.js.map +1 -0
  170. package/dist/cdn/chunks/{src-B5-VKcRQ.js → src-HA9F2kvk.js} +141 -179
  171. package/dist/cdn/chunks/{src-B5-VKcRQ.js.map → src-HA9F2kvk.js.map} +1 -1
  172. package/dist/cdn/chunks/{tiptap-02G9FGkl.js → tiptap-CYDXLO17.js} +87 -134
  173. package/dist/cdn/chunks/{tiptap-02G9FGkl.js.map → tiptap-CYDXLO17.js.map} +1 -1
  174. package/dist/cdn/chunks/{useAliveFlag-DAlQLbM2.js → useAliveFlag-DzyXG-8A.js} +2 -2
  175. package/dist/cdn/chunks/{useAliveFlag-DAlQLbM2.js.map → useAliveFlag-DzyXG-8A.js.map} +1 -1
  176. package/dist/cdn/chunks/{useCloudI18n-CrjWbpbu.js → useCloudI18n-Cgk0ts_F.js} +3 -3
  177. package/dist/cdn/chunks/{useCloudI18n-CrjWbpbu.js.map → useCloudI18n-Cgk0ts_F.js.map} +1 -1
  178. package/dist/cdn/chunks/{useEditorCore-DjD7fJpq.js → useEditorCore-BF1ZhcGu.js} +476 -520
  179. package/dist/cdn/chunks/useEditorCore-BF1ZhcGu.js.map +1 -0
  180. package/dist/cdn/chunks/useEditorRoot-DDPIcEOO.js +10 -0
  181. package/dist/cdn/chunks/{useEditorRoot-CshefZLP.js.map → useEditorRoot-DDPIcEOO.js.map} +1 -1
  182. package/dist/cdn/chunks/{useI18n-CyO_Nmca.js → useI18n-DO4NTunW.js} +3 -3
  183. package/dist/cdn/chunks/{useI18n-CyO_Nmca.js.map → useI18n-DO4NTunW.js.map} +1 -1
  184. package/dist/cdn/chunks/{useLogicTag-D6lWY0bD.js → useLogicTag-91bO_SOi.js} +4 -4
  185. package/dist/cdn/chunks/{useLogicTag-D6lWY0bD.js.map → useLogicTag-91bO_SOi.js.map} +1 -1
  186. package/dist/cdn/chunks/{useMergeTag-2iW-BKWW.js → useMergeTag-hwifK582.js} +4 -4
  187. package/dist/cdn/chunks/{useMergeTag-2iW-BKWW.js.map → useMergeTag-hwifK582.js.map} +1 -1
  188. package/dist/cdn/chunks/{usePopoverPosition-DGXjXKjM.js → usePopoverPosition-CtVNwoHj.js} +3 -3
  189. package/dist/cdn/chunks/{usePopoverPosition-DGXjXKjM.js.map → usePopoverPosition-CtVNwoHj.js.map} +1 -1
  190. package/dist/cdn/chunks/{useScrollToBlock-DgHZJvID.js → useScrollToBlock-BDNJ25X1.js} +3 -3
  191. package/dist/cdn/chunks/{useScrollToBlock-DgHZJvID.js.map → useScrollToBlock-BDNJ25X1.js.map} +1 -1
  192. package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js +32 -0
  193. package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js.map +1 -0
  194. package/dist/cdn/editor.css +1 -1
  195. package/dist/cdn/editor.js +89 -118
  196. package/dist/cdn/editor.js.map +1 -1
  197. package/dist/{check-DNyj-E0y.js → check-ZKvtMdpe.js} +1 -1
  198. package/dist/{chevron-down-BYnhkMsA.js → chevron-down-RrwkYMlp.js} +1 -1
  199. package/dist/{chevron-right-D9HGBqJo.js → chevron-right-CklHaa1U.js} +1 -1
  200. package/dist/{chevron-up-BnIR1-ma.js → chevron-up-DjN2NTbo.js} +1 -1
  201. package/dist/{circle-alert-B6xl1B_M.js → circle-alert-BR1_Yfb-.js} +1 -1
  202. package/dist/{clock-Cs5Wd3dW.js → clock-BEagNj21.js} +1 -1
  203. package/dist/{cloud-BNEL7bxL.js → cloud-CVfwPu19.js} +2 -2
  204. package/dist/{copy-6uKc-WBk.js → copy-D6DNoSq1.js} +1 -1
  205. package/dist/{createCloudRuntime-CaZapQZ6.js → createCloudRuntime-GRv_TDb2.js} +8 -11
  206. package/dist/{createLucideIcon-BVcoovvP.js → createLucideIcon-BAPyioGd.js} +6 -6
  207. package/dist/{cdn/chunks/de-DOhKuphf.js → de-CGjbQ2mt.js} +6 -2
  208. package/dist/{dist-CmwBvyW0.js → dist-1H4cnaoD.js} +3 -3
  209. package/dist/{dist-D4HP93ZF.js → dist-5DAb7bYT.js} +1 -1
  210. package/dist/{dist-DdSWMtEP.js → dist-5KNKxglR.js} +1 -1
  211. package/dist/{dist-BDuPwOyn.js → dist-B_vYjCsk.js} +4 -12
  212. package/dist/{dist-Ceew_u40.js → dist-Bc30883t.js} +6 -22
  213. package/dist/{dist-Czzst9ng.js → dist-Bd7khQsg.js} +3 -11
  214. package/dist/{dist-8VFzbeu9.js → dist-C-VFTX82.js} +1 -1
  215. package/dist/{dist-BYg1EL5g.js → dist-C3eH9-N2.js} +1 -1
  216. package/dist/{dist-Dw2_11LA.js → dist-CFC4pg2o.js} +1 -1
  217. package/dist/{dist-BgSLW3Hn.js → dist-CMcFD7gP.js} +72 -87
  218. package/dist/{dist-HjILVdTA.js → dist-CSaWqmWM.js} +143 -126
  219. package/dist/{dist-DmQckB4p.js → dist-DHensKDY.js} +1 -1
  220. package/dist/{dist-CWc7nIkA.js → dist-DapsJxn_.js} +1 -1
  221. package/dist/{dist-D2m55Lvs.js → dist-j2FavQmU.js} +1 -1
  222. package/dist/{dist-8By0p8ah.js → dist-lL3nVbxV.js} +1 -1
  223. package/dist/{editor-modal-Co-rZGaf.js → editor-modal-oRmkDlUs.js} +27 -47
  224. package/dist/{cdn/chunks/en-BE28ZcUF.js → en-BTiiAC-B.js} +6 -2
  225. package/dist/en-Bk4iCfjp.js +1 -0
  226. package/dist/{cdn/chunks/es-oQI-dfx2.js → es-CdTOcSTf.js} +6 -2
  227. package/dist/{extensions-DXSI8Dyj.js → extensions-B65sfZRk.js} +42 -58
  228. package/dist/{eye-Nbtw_q05.js → eye-DvsTBI57.js} +1 -1
  229. package/dist/{cdn/chunks/fr-rzLdCMSG.js → fr-B6lcLLzC.js} +6 -2
  230. package/dist/{image-up-C1jC7NzQ.js → image-up-BoFGZm5Q.js} +1 -1
  231. package/dist/index.d.ts +12 -1
  232. package/dist/{info-ClH66pKN.js → info-0bQQGjTV.js} +1 -1
  233. package/dist/{cdn/chunks/ja-dyFc6Ghz.js → ja-BhdkqENz.js} +6 -2
  234. package/dist/{keys-CDqfZIRt.js → keys-injl74ob.js} +1 -1
  235. package/dist/{link-y47GNW0o.js → link-Cstrr3Ep.js} +1 -1
  236. package/dist/{liquid.browser-Cs4gOjeX.js → liquid.browser-Ct2-EezB.js} +29 -55
  237. package/dist/{list-DiLMlMaE.js → list-Dx9Rmy5s.js} +1 -1
  238. package/dist/{loader-circle-BRdCPW5h.js → loader-circle-D8Qqs0MG.js} +1 -1
  239. package/dist/{message-circle-CNgIpVJv.js → message-circle-D78ELX6I.js} +1 -1
  240. package/dist/{cdn/chunks/nl-BcQhRqKR.js → nl-CE3YItYg.js} +6 -2
  241. package/dist/{package-B9OWk-Kp.js → package-DOvM9sHE.js} +1 -1
  242. package/dist/{pencil-BDnjo24u.js → pencil-B6m0OG0n.js} +1 -1
  243. package/dist/{plus-BMgjN7lI.js → plus-D-nEKxTc.js} +1 -1
  244. package/dist/{preRenderCustomBlocks-C_PIxBp7.js → preRenderCustomBlocks-DAS48ZCp.js} +1 -1
  245. package/dist/{cdn/chunks/pt-BR-UombhTMO.js → pt-BR-CUIT4rq4.js} +6 -2
  246. package/dist/{refresh-cw-CR5lenxl.js → refresh-cw-CXZS-R1U.js} +1 -1
  247. package/dist/{runtime-dom.esm-bundler-BGbPz4-g.js → runtime-dom.esm-bundler-CO67ema2.js} +15 -16
  248. package/dist/{search-CxRUiOSF.js → search-DSvil0jo.js} +1 -1
  249. package/dist/{send-Bu2RysGL.js → send-BBR28V94.js} +1 -1
  250. package/dist/{shield-check-Cg8f4LB0.js → shield-check-ByxUnaU9.js} +1 -1
  251. package/dist/{smartphone-CHf-8lHp.js → smartphone-CNOwGf5T.js} +1 -1
  252. package/dist/{socialIcons-D1gkHc_i.js → socialIcons-CvAixjj8.js} +14 -24
  253. package/dist/{sparkles-_DQGv4ub.js → sparkles-DO1hzwzf.js} +1 -1
  254. package/dist/style.css +1 -1
  255. package/dist/templatical-editor.js +101 -130
  256. package/dist/{text-align-start-PHo-Ep5i.js → text-align-start-BKEKMheq.js} +13 -13
  257. package/dist/{trash-BxIzHAri.js → trash-CKEQH4vH.js} +1 -1
  258. package/dist/{triangle-alert-fcb2KoA-.js → triangle-alert-BHnfd3fV.js} +1 -1
  259. package/dist/{upload-BxBtMPMv.js → upload-C8uO7KsR.js} +1 -1
  260. package/dist/{useAliveFlag-BkKyhkwZ.js → useAliveFlag-6PtarpNZ.js} +1 -1
  261. package/dist/{useCloudI18n-DpEsiLeR.js → useCloudI18n-GvIOLziA.js} +2 -2
  262. package/dist/{useEditorCore-iuKC8yr5.js → useEditorCore-DQSeKPE9.js} +940 -1007
  263. package/dist/{useEditorRoot-CkB_5d0h.js → useEditorRoot-OWzNpDdT.js} +2 -2
  264. package/dist/{useI18n-B_CdcBwG.js → useI18n-uF11q85g.js} +2 -2
  265. package/dist/{useLogicTag-wqfdwYYR.js → useLogicTag-BH87j1vZ.js} +3 -3
  266. package/dist/{useMergeTag-D3XDE_58.js → useMergeTag-DfPKX2Tk.js} +3 -3
  267. package/dist/{usePopoverPosition-BYmd-lhR.js → usePopoverPosition-DkBrHfCo.js} +2 -2
  268. package/dist/{useScrollToBlock-DA_aIJXS.js → useScrollToBlock-Dr7Sb6Tr.js} +3 -3
  269. package/dist/{vue.runtime.esm-bundler-CyqhBwpY.js → vue.runtime.esm-bundler-CctRY8kr.js} +13 -45
  270. package/dist/withCurrentFont-DeCbPVaE.js +30 -0
  271. package/dist/{x-DrZO5tt0.js → x-gEC0yMci.js} +1 -1
  272. package/package.json +12 -12
  273. package/dist/SavedBlocksBrowserModal-DeUo5aFV.js +0 -325
  274. package/dist/TemplateSettings-Bh10NFIN.js +0 -245
  275. package/dist/cdn/chunks/CountdownToolbar-C9QpHQcv.js.map +0 -1
  276. package/dist/cdn/chunks/ParagraphEditor-BSDGOsja.js.map +0 -1
  277. package/dist/cdn/chunks/SavedBlocksBrowserModal-CliZBxHo.js +0 -322
  278. package/dist/cdn/chunks/SavedBlocksBrowserModal-CliZBxHo.js.map +0 -1
  279. package/dist/cdn/chunks/TemplateSettings-vsFOU0oA.js.map +0 -1
  280. package/dist/cdn/chunks/Toolbar-CnfNUkOY.js.map +0 -1
  281. package/dist/cdn/chunks/ca-DSwai-th.js.map +0 -1
  282. package/dist/cdn/chunks/de-DOhKuphf.js.map +0 -1
  283. package/dist/cdn/chunks/en-BE28ZcUF.js.map +0 -1
  284. package/dist/cdn/chunks/en-C3n0qWte.js +0 -2
  285. package/dist/cdn/chunks/es-oQI-dfx2.js.map +0 -1
  286. package/dist/cdn/chunks/fr-rzLdCMSG.js.map +0 -1
  287. package/dist/cdn/chunks/ja-dyFc6Ghz.js.map +0 -1
  288. package/dist/cdn/chunks/nl-BcQhRqKR.js.map +0 -1
  289. package/dist/cdn/chunks/pt-BR-UombhTMO.js.map +0 -1
  290. package/dist/cdn/chunks/socialIcons-CnUJBZTO.js.map +0 -1
  291. package/dist/cdn/chunks/src-CLHnxvuS.js.map +0 -1
  292. package/dist/cdn/chunks/src-QIGNPFkl.js.map +0 -1
  293. package/dist/cdn/chunks/useEditorCore-DjD7fJpq.js.map +0 -1
  294. package/dist/cdn/chunks/useEditorRoot-CshefZLP.js +0 -10
  295. package/dist/en-B-xoKkWi.js +0 -2
@@ -1,13 +1,14 @@
1
- import { $ as e, G as t, Q as n, S as r, X as i, Z as a, _t as o, at as s, b as c, ct as l, et as u, ht as d, lt as f, mt as p, nt as m, ot as h, rt as g, st as _, tt as v, ut as y, v as b, vt as x, x as ee, y as S } from "./src-QIGNPFkl.js";
1
+ import { $ as e, G as t, Q as n, S as r, St as i, X as a, Z as o, at as s, b as c, ct as l, et as u, ft as d, lt as f, nt as p, ot as m, rt as h, st as ee, tt as g, ut as _, v, vt as y, x as te, xt as b, y as ne, yt as x } from "./src-BcqNlDMe.js";
2
2
  //#endregion
3
3
  //#region ../renderer/src/render-context.ts
4
- var C = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
4
+ var S = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
5
5
  name: "@templatical/renderer",
6
6
  description: "Render Templatical email templates to MJML",
7
- version: "0.44.2",
7
+ version: "0.45.0",
8
8
  bugs: "https://github.com/templatical/sdk/issues",
9
9
  dependencies: { "@templatical/types": "workspace:*" },
10
10
  devDependencies: {
11
+ "@jsquash/oxipng": "^2.3.0",
11
12
  "@resvg/resvg-js": "^2.6.2",
12
13
  mjml: "^5.4.1",
13
14
  typescript: "^6.0.3",
@@ -42,7 +43,7 @@ var C = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
42
43
  },
43
44
  type: "module",
44
45
  types: "./dist/index.d.ts"
45
- }.version}/assets/social`, te = {
46
+ }.version}/assets/social`, re = {
46
47
  arial: "Arial, sans-serif",
47
48
  helvetica: "Helvetica, sans-serif",
48
49
  georgia: "Georgia, serif",
@@ -51,7 +52,7 @@ var C = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
51
52
  "trebuchet ms": "'Trebuchet MS', sans-serif",
52
53
  "courier new": "'Courier New', monospace",
53
54
  tahoma: "Tahoma, sans-serif"
54
- }, w = class e {
55
+ }, C = class e {
55
56
  containerWidth;
56
57
  customFonts;
57
58
  defaultFallbackFont;
@@ -60,7 +61,7 @@ var C = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
60
61
  socialIconsBaseUrl;
61
62
  blockRenderers;
62
63
  contentDirection;
63
- constructor(e, t, n, r, i = /* @__PURE__ */ new Map(), a = C, o = {}, s = "ltr") {
64
+ constructor(e, t, n, r, i = /* @__PURE__ */ new Map(), a = S, o = {}, s = "ltr") {
64
65
  this.containerWidth = e, this.customFonts = t, this.defaultFallbackFont = n, this.allowHtmlBlocks = r, this.customBlockHtml = i, this.socialIconsBaseUrl = a, this.blockRenderers = o, this.contentDirection = s;
65
66
  }
66
67
  withContainerWidth(t) {
@@ -71,20 +72,20 @@ var C = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
71
72
  let e = t.fallback ?? this.defaultFallbackFont;
72
73
  return `'${t.name}', ${e}`;
73
74
  }
74
- return te[e.toLowerCase()] || e;
75
+ return re[e.toLowerCase()] || e;
75
76
  }
76
77
  };
77
78
  //#endregion
78
79
  //#region ../renderer/src/visibility.ts
79
- function T(e) {
80
+ function w(e) {
80
81
  let t = e.visibility;
81
82
  return t ? !t.desktop && !t.mobile : !1;
82
83
  }
83
- function E(e, t = []) {
84
- let n = [D(e), ...t].filter((e) => e !== "").join(" ");
84
+ function T(e, t = []) {
85
+ let n = [E(e), ...t].filter((e) => e !== "").join(" ");
85
86
  return n === "" ? "" : ` css-class="${n}"`;
86
87
  }
87
- function D(e) {
88
+ function E(e) {
88
89
  let t = e.visibility;
89
90
  if (!t) return "";
90
91
  let n = [];
@@ -92,35 +93,35 @@ function D(e) {
92
93
  }
93
94
  //#endregion
94
95
  //#region ../renderer/src/unrenderable.ts
95
- var O = "templatical:unrenderable-block";
96
- function k(e) {
96
+ var D = "templatical:unrenderable-block";
97
+ function O(e) {
97
98
  return e.replace(/[<>]/g, "").replace(/-{2,}/g, "-");
98
99
  }
99
- function A(e) {
100
- return console.warn(`[Templatical] No renderer for block type "${e.type}" (id: ${e.id}). A placeholder comment was emitted in its place. Pass a \`blockRenderers\` entry for this type to render it.`), `<mj-raw><!-- ${O} type="${k(e.type)}" id="${k(e.id)}" --></mj-raw>`;
100
+ function k(e) {
101
+ return console.warn(`[Templatical] No renderer for block type "${e.type}" (id: ${e.id}). A placeholder comment was emitted in its place. Pass a \`blockRenderers\` entry for this type to render it.`), `<mj-raw><!-- ${D} type="${O(e.type)}" id="${O(e.id)}" --></mj-raw>`;
101
102
  }
102
103
  //#endregion
103
104
  //#region ../renderer/src/escape.ts
104
- var j = {
105
+ var A = {
105
106
  "&": "&amp;",
106
107
  "<": "&lt;",
107
108
  ">": "&gt;",
108
109
  "\"": "&quot;",
109
110
  "'": "&#039;"
110
- }, M = /[&<>"']/g;
111
+ }, j = /[&<>"']/g;
112
+ function M(e) {
113
+ return e === "" ? "" : e.replace(j, (e) => A[e] ?? e);
114
+ }
111
115
  function N(e) {
112
- return e === "" ? "" : e.replace(M, (e) => j[e] ?? e);
116
+ return e === "" ? "" : e.replace(j, (e) => A[e] ?? e);
113
117
  }
114
118
  function P(e) {
115
- return e === "" ? "" : e.replace(M, (e) => j[e] ?? e);
119
+ return e === "" ? "" : N(e).replace(/[;{}\r\n]/g, "");
116
120
  }
117
121
  function F(e) {
118
- return e === "" ? "" : P(e).replace(/[;{}\r\n]/g, "");
122
+ return e === "" ? "" : ie(e, (e) => I(e, "data-merge-tag") ?? I(e, "data-logic-merge-tag"));
119
123
  }
120
- function I(e) {
121
- return e === "" ? "" : ne(e, (e) => L(e, "data-merge-tag") ?? L(e, "data-logic-merge-tag"));
122
- }
123
- function ne(e, t) {
124
+ function ie(e, t) {
124
125
  let n = "", r = 0;
125
126
  for (; r < e.length;) {
126
127
  let i = e.indexOf("<span", r);
@@ -133,7 +134,7 @@ function ne(e, t) {
133
134
  n += e.substring(r, i + 5), r = i + 5;
134
135
  continue;
135
136
  }
136
- let o = b(e, i + 5);
137
+ let o = v(e, i + 5);
137
138
  if (o === -1) {
138
139
  n += e.substring(r);
139
140
  break;
@@ -144,46 +145,42 @@ function ne(e, t) {
144
145
  break;
145
146
  }
146
147
  let c = t(e.substring(i + 5, o));
147
- if (c === null) {
148
- n += e.substring(r, i + 5), r = i + 5;
149
- continue;
150
- }
151
- n += e.substring(r, i), n += c, r = s + 7;
148
+ c === null ? (n += e.substring(r, i + 5), r = i + 5) : (n += e.substring(r, i), n += c, r = s + 7);
152
149
  }
153
150
  return n;
154
151
  }
155
- function L(e, t) {
156
- return S(e, t);
152
+ function I(e, t) {
153
+ return ne(e, t);
157
154
  }
158
155
  //#endregion
159
156
  //#region ../renderer/src/padding.ts
160
- function R(e) {
157
+ function L(e) {
161
158
  return `${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`;
162
159
  }
163
160
  //#endregion
164
161
  //#region ../renderer/src/utils.ts
165
- function z(e, t) {
162
+ function R(e, t) {
166
163
  return e ? ` ${t === "native" ? "background-color" : "container-background-color"}="${e}"` : "";
167
164
  }
168
- function B(e) {
165
+ function z(e) {
169
166
  return typeof e != "number" || !Number.isFinite(e) || e <= 0 ? "" : ` height="${e}px"`;
170
167
  }
171
- function V(e) {
172
- return Object.entries(o(e)).map(([e, t]) => ` ${e}="${F(t)}"`).join("");
168
+ function B(e) {
169
+ return Object.entries(b(e)).map(([e, t]) => ` ${e}="${P(t)}"`).join("");
173
170
  }
174
- function H(e) {
175
- let t = x(e);
171
+ function V(e) {
172
+ let t = i(e);
176
173
  return t === null ? "" : ` border-radius="${t}"`;
177
174
  }
178
175
  //#endregion
179
176
  //#region ../renderer/src/rich-text.ts
180
- var U = "tpl-rich-text";
181
- function W(e) {
182
- return `${U}-${e}`;
177
+ var H = "tpl-rich-text";
178
+ function U(e) {
179
+ return `${H}-${e}`;
183
180
  }
184
- function re(e, t = "ltr") {
185
- let n = d, r = `.${U}`, i = [...new Set(e)].sort((e, t) => e - t).flatMap((e) => {
186
- let t = `.${W(e)}`;
181
+ function ae(e, t = "ltr") {
182
+ let n = x, r = `.${H}`, i = [...new Set(e)].sort((e, t) => e - t).flatMap((e) => {
183
+ let t = `.${U(e)}`;
187
184
  return [`${t} p { margin: 0 0 ${e}px; }`, `${t} p:last-child { margin-bottom: 0; }`];
188
185
  }), a = t === "rtl" ? "padding-right" : "padding-left";
189
186
  return [
@@ -192,22 +189,22 @@ function re(e, t = "ltr") {
192
189
  `${r} li { margin: ${n.listItemMarginY}px 0; }`
193
190
  ].join("\n ");
194
191
  }
195
- function G(e) {
196
- return e ?? d.paragraphGap;
192
+ function W(e) {
193
+ return e ?? x.paragraphGap;
197
194
  }
198
- function ie(e) {
199
- let t = [d.paragraphGap], n = (e) => {
200
- if (e.type === "paragraph" && t.push(G(e.paragraphSpacing)), g(e)) for (let t of e.children) for (let e of t) n(e);
201
- else if (y(e)) for (let t of e.children) n(t);
195
+ function oe(e) {
196
+ let t = [x.paragraphGap], n = (e) => {
197
+ if (e.type === "paragraph" && t.push(W(e.paragraphSpacing)), h(e)) for (let t of e.children) for (let e of t) n(e);
198
+ else if (_(e)) for (let t of e.children) n(t);
202
199
  };
203
200
  for (let t of e) n(t);
204
201
  return t;
205
202
  }
206
203
  //#endregion
207
204
  //#region ../renderer/src/renderers/title.ts
208
- function ae(e, t) {
209
- if (T(e)) return "";
210
- let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = oe(I(e.content)), a = p[e.level] ?? p[2], o = e.color ? `\n color="${P(e.color)}"` : "", s = e.textAlign, c = se(e.fontFamily, t), l = E(e, [U, W(G(void 0))]), u = `h${p[e.level] ? e.level : 2}`;
205
+ function se(e, t) {
206
+ if (w(e)) return "";
207
+ let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = ce(F(e.content)), a = y[e.level] ?? y[2], o = e.color ? `\n color="${N(e.color)}"` : "", s = e.textAlign, c = le(e.fontFamily, t), l = T(e, [H, U(W(void 0))]), u = `h${y[e.level] ? e.level : 2}`;
211
208
  return `<mj-text
212
209
  font-size="${a}px"${o}
213
210
  align="${s}"
@@ -215,18 +212,18 @@ function ae(e, t) {
215
212
  padding="${n}"${r}${c}${l}
216
213
  ><${u} style="margin:0;font-size:inherit;color:inherit;line-height:inherit">${i}</${u}></mj-text>`;
217
214
  }
218
- function oe(e) {
215
+ function ce(e) {
219
216
  let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
220
217
  return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
221
218
  }
222
- function se(e, t) {
219
+ function le(e, t) {
223
220
  return e ? ` font-family="${t.resolveFontFamily(e)}"` : "";
224
221
  }
225
222
  //#endregion
226
223
  //#region ../renderer/src/renderers/paragraph.ts
227
- function ce(e, t) {
228
- if (T(e) || e.content.replace(/<\/?p\b[^<>]*>/gi, "").trim() === "") return "";
229
- let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = I(e.content), a = E(e, [U, W(G(e.paragraphSpacing))]);
224
+ function ue(e, t) {
225
+ if (w(e) || e.content.replace(/<\/?p\b[^<>]*>/gi, "").trim() === "") return "";
226
+ let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = F(e.content), a = T(e, [H, U(W(e.paragraphSpacing))]);
230
227
  return `<mj-text
231
228
  line-height="1.5"${t.contentDirection === "rtl" ? "\n align=\"right\"" : ""}
232
229
  padding="${n}"${r}${a}
@@ -234,14 +231,14 @@ function ce(e, t) {
234
231
  }
235
232
  //#endregion
236
233
  //#region ../renderer/src/renderers/image.ts
237
- function le(e, t) {
238
- if (T(e) || e.src === "") return "";
239
- let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = e.width === "full" ? t.containerWidth + "px" : e.width + "px", a = B(e.height), o = E(e), s = H(e.borderRadius), c = V(e.border), l = "";
240
- e.linkUrl && (l = ` href="${P(e.linkUrl)}"`, e.linkOpenInNewTab && (l += " target=\"_blank\" rel=\"noopener\""));
241
- let u = P(e.src), d = e.decorative === !0;
234
+ function de(e, t) {
235
+ if (w(e) || e.src === "") return "";
236
+ let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = e.width === "full" ? t.containerWidth + "px" : e.width + "px", a = z(e.height), o = T(e), s = V(e.borderRadius), c = B(e.border), l = "";
237
+ e.linkUrl && (l = ` href="${N(e.linkUrl)}"`, e.linkOpenInNewTab && (l += " target=\"_blank\" rel=\"noopener\""));
238
+ let u = N(e.src), d = e.decorative === !0;
242
239
  return `<mj-image
243
240
  src="${u}"
244
- alt="${d ? "" : P(e.alt)}"
241
+ alt="${d ? "" : N(e.alt)}"
245
242
  width="${i}"${a}
246
243
  align="${e.align}"
247
244
  padding="${n}"${r}${c}${s}${l}${o}${d ? " role=\"presentation\"" : ""}
@@ -249,91 +246,92 @@ function le(e, t) {
249
246
  }
250
247
  //#endregion
251
248
  //#region ../renderer/src/renderers/button.ts
252
- function ue(e, t) {
253
- if (T(e)) return "";
254
- let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = R(e.buttonPadding), a = e.url === "" ? "" : P(e.url), o = a === "" ? "" : ` href="${a}"`, s = de(e.backgroundColor), c = P(e.textColor), l = e.fontSize, u = pe(e.borderRadius), d = N(e.text), f = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", p = fe(e.fontFamily, t), m = me(e.width), h = E(e);
249
+ var G = "tpl-button-full";
250
+ function fe(e, t) {
251
+ if (w(e)) return "";
252
+ let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = L(e.buttonPadding), a = e.url === "" ? "" : N(e.url), o = a === "" ? "" : ` href="${a}"`, s = pe(e.backgroundColor), c = N(e.textColor), l = e.fontSize, u = he(e.borderRadius), d = M(e.text), f = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", p = me(e.fontFamily, t), m = ge(e.width), h = T(e, e.width === "full" ? [G] : []);
255
253
  return `<mj-button${o}${f}
256
254
  background-color="${s}"
257
255
  color="${c}"
258
256
  font-size="${l}px"
259
257
  font-weight="bold"
260
- border-radius="${u}"${V(e.border)}
258
+ border-radius="${u}"${B(e.border)}
261
259
  inner-padding="${i}"
262
260
  align="${e.align ?? "center"}"
263
261
  padding="${n}"${r}${p}${m}${h}
264
262
  >${d}</mj-button>`;
265
263
  }
266
- function de(e) {
267
- return e.trim() === "" ? "transparent" : P(e);
264
+ function pe(e) {
265
+ return e.trim() === "" ? "transparent" : N(e);
268
266
  }
269
- function fe(e, t) {
267
+ function me(e, t) {
270
268
  return e ? ` font-family="${t.resolveFontFamily(e)}"` : "";
271
269
  }
272
- function pe(e) {
273
- return typeof e == "number" ? `${e}px` : x(e) ?? "0px";
270
+ function he(e) {
271
+ return typeof e == "number" ? `${e}px` : i(e) ?? "0px";
274
272
  }
275
- function me(e) {
273
+ function ge(e) {
276
274
  return e === void 0 ? "" : ` width="${e === "full" ? "100%" : `${e}px`}"`;
277
275
  }
278
276
  //#endregion
279
277
  //#region ../renderer/src/renderers/divider.ts
280
- function he(e, t) {
281
- if (T(e)) return "";
282
- let n = R(e.styles.padding), r = e.styles.backgroundColor ? ` container-background-color="${P(e.styles.backgroundColor)}"` : "", i = e.width === "full" ? "100%" : typeof e.width == "number" ? `${e.width}px` : e.width;
278
+ function _e(e, t) {
279
+ if (w(e)) return "";
280
+ let n = L(e.styles.padding), r = e.styles.backgroundColor ? ` container-background-color="${N(e.styles.backgroundColor)}"` : "", i = e.width === "full" ? "100%" : typeof e.width == "number" ? `${e.width}px` : e.width;
283
281
  return `<mj-divider
284
282
  border-width="${e.thickness}px"
285
283
  border-style="${e.lineStyle}"
286
- border-color="${P(e.color)}"
284
+ border-color="${N(e.color)}"
287
285
  width="${i}"
288
- padding="${n}"${r}${E(e)}
286
+ padding="${n}"${r}${T(e)}
289
287
  />`;
290
288
  }
291
289
  //#endregion
292
290
  //#region ../renderer/src/renderers/spacer.ts
293
- function ge(e, t) {
294
- return T(e) ? "" : `<mj-spacer height="${e.height}px" padding="0"${e.styles.backgroundColor ? ` container-background-color="${P(e.styles.backgroundColor)}"` : ""}${E(e)} />`;
291
+ function ve(e, t) {
292
+ return w(e) ? "" : `<mj-spacer height="${e.height}px" padding="0"${e.styles.backgroundColor ? ` container-background-color="${N(e.styles.backgroundColor)}"` : ""}${T(e)} />`;
295
293
  }
296
294
  //#endregion
297
295
  //#region ../renderer/src/renderers/html.ts
298
- function _e(e, t) {
299
- if (T(e) || !t.allowHtmlBlocks) return "";
296
+ function ye(e, t) {
297
+ if (w(e) || !t.allowHtmlBlocks) return "";
300
298
  let n = e.content;
301
299
  if (n === "") return "";
302
- let r = E(e);
303
- return `<mj-text padding="${R(e.styles.padding)}"${z(e.styles.backgroundColor, "container")}${r}>
300
+ let r = T(e);
301
+ return `<mj-text padding="${L(e.styles.padding)}"${R(e.styles.backgroundColor, "container")}${r}>
304
302
  ${n}
305
303
  </mj-text>`;
306
304
  }
307
305
  //#endregion
308
306
  //#region ../renderer/src/renderers/social.ts
309
- function ve(e, t) {
310
- if (T(e)) return "";
307
+ function be(e, t) {
308
+ if (w(e)) return "";
311
309
  let n = e.icons;
312
310
  if (n.length === 0) return "";
313
- let r = R(e.styles.padding), i = e.styles.backgroundColor ? ` container-background-color="${P(e.styles.backgroundColor)}"` : "", a = E(e), o = e.align, s = e.iconSize, c = e.iconStyle, l = e.spacing, u;
311
+ let r = L(e.styles.padding), i = e.styles.backgroundColor ? ` container-background-color="${N(e.styles.backgroundColor)}"` : "", a = T(e), o = e.align, s = e.iconSize, c = e.iconStyle, l = d(c, e.iconTone), u = e.spacing, f;
314
312
  switch (s) {
315
313
  case "small":
316
- u = 24;
314
+ f = 24;
317
315
  break;
318
316
  case "large":
319
- u = 48;
317
+ f = 48;
320
318
  break;
321
- default: u = 32;
319
+ default: f = 32;
322
320
  }
323
- let d;
321
+ let p;
324
322
  switch (c) {
325
323
  case "circle":
326
- d = "50%";
324
+ p = "50%";
327
325
  break;
328
326
  case "rounded":
329
- d = "8px";
327
+ p = "8px";
330
328
  break;
331
329
  case "square":
332
- d = "0";
330
+ p = "0";
333
331
  break;
334
- default: d = "4px";
332
+ default: p = "4px";
335
333
  }
336
- let f = n.length;
334
+ let m = n.length;
337
335
  return `<mj-social
338
336
  mode="horizontal"
339
337
  align="${o}"
@@ -341,77 +339,77 @@ function ve(e, t) {
341
339
  padding="${r}"${i}${a}
342
340
  >
343
341
  ${n.map((e, n) => {
344
- let r = e.platform, i = P(e.url), a = `${t.socialIconsBaseUrl}/${c}/${r}.png`, o = n === f - 1 ? 0 : l;
345
- return `<mj-social-element src="${a}" href="${i}" icon-size="${u}px" padding="0 ${o}px 0 0" border-radius="${d}" background-color="transparent"></mj-social-element>`;
342
+ let r = e.platform, i = N(e.url), a = `${t.socialIconsBaseUrl}/${l}/${r}.png`, o = n === m - 1 ? 0 : u;
343
+ return `<mj-social-element src="${a}" href="${i}" icon-size="${f}px" padding="0 ${o}px 0 0" border-radius="${p}" background-color="transparent"></mj-social-element>`;
346
344
  }).join("\n")}
347
345
  </mj-social>`;
348
346
  }
349
347
  //#endregion
350
348
  //#region ../renderer/src/renderers/menu.ts
351
- function ye(e, t) {
352
- if (T(e) || e.items.length === 0) return "";
353
- let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = E(e), a = Se(e.fontFamily, t), o = e.textAlign;
349
+ function xe(e, t) {
350
+ if (w(e) || e.items.length === 0) return "";
351
+ let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = T(e), a = we(e.fontFamily, t), o = e.textAlign;
354
352
  return `<mj-text
355
- font-size="${e.fontSize}px"${e.color ? `\n color="${P(e.color)}"` : ""}
353
+ font-size="${e.fontSize}px"${e.color ? `\n color="${N(e.color)}"` : ""}
356
354
  align="${o}"
357
355
  line-height="1.5"
358
356
  padding="${n}"${r}${a}${i}
359
- >${be(e)}</mj-text>`;
357
+ >${Se(e)}</mj-text>`;
360
358
  }
361
- function be(e) {
362
- let t = e.items, n = N(e.separator), r = F(e.separatorColor), i = e.spacing, a = e.linkColor ?? e.color, o = [], s = t.length;
363
- for (let e = 0; e < s; e++) o.push(xe(t[e], a)), e < s - 1 && o.push(`<span style="color: ${r}; padding: 0 ${i}px;">${n}</span>`);
359
+ function Se(e) {
360
+ let t = e.items, n = M(e.separator), r = P(e.separatorColor), i = e.spacing, a = e.linkColor ?? e.color, o = [], s = t.length;
361
+ for (let e = 0; e < s; e++) o.push(Ce(t[e], a)), e < s - 1 && o.push(`<span style="color: ${r}; padding: 0 ${i}px;">${n}</span>`);
364
362
  return o.join("");
365
363
  }
366
- function xe(e, t) {
367
- let n = N(e.text), r = P(e.url), i = e.color ?? t, a = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", o = ["text-decoration: none"];
368
- return i && o.unshift(`color: ${F(i)}`), e.bold && o.push("font-weight: bold"), e.underline && o.push("text-decoration: underline"), `<a href="${r}" style="${o.join("; ")}"${a}>${n}</a>`;
364
+ function Ce(e, t) {
365
+ let n = M(e.text), r = N(e.url), i = e.color ?? t, a = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", o = ["text-decoration: none"];
366
+ return i && o.unshift(`color: ${P(i)}`), e.bold && o.push("font-weight: bold"), e.underline && o.push("text-decoration: underline"), `<a href="${r}" style="${o.join("; ")}"${a}>${n}</a>`;
369
367
  }
370
- function Se(e, t) {
368
+ function we(e, t) {
371
369
  return e ? ` font-family="${t.resolveFontFamily(e)}"` : "";
372
370
  }
373
371
  //#endregion
374
372
  //#region ../renderer/src/renderers/table.ts
375
- function Ce(e, t) {
376
- if (T(e) || e.rows.length === 0) return "";
377
- let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = E(e), a = De(e.fontFamily, t);
373
+ function Te(e, t) {
374
+ if (w(e) || e.rows.length === 0) return "";
375
+ let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = T(e), a = ke(e.fontFamily, t);
378
376
  return `<mj-text
379
- font-size="${e.fontSize}px"${e.color ? `\n color="${P(e.color)}"` : ""}
377
+ font-size="${e.fontSize}px"${e.color ? `\n color="${N(e.color)}"` : ""}
380
378
  align="${e.textAlign}"
381
379
  line-height="1.5"
382
380
  padding="${n}"${r}${a}${i}
383
- >${we(e)}</mj-text>`;
381
+ >${Ee(e)}</mj-text>`;
384
382
  }
385
- function we(e) {
386
- let t = F(e.borderColor), n = e.borderWidth, r = "";
383
+ function Ee(e) {
384
+ let t = P(e.borderColor), n = e.borderWidth, r = "";
387
385
  for (let i = 0; i < e.rows.length; i++) {
388
386
  let a = e.rows[i];
389
- r += Te(a, e, e.hasHeaderRow && i === 0, t, n);
387
+ r += De(a, e, e.hasHeaderRow && i === 0, t, n);
390
388
  }
391
389
  return `<table style="width: 100%; border-collapse: collapse;">${r}</table>`;
392
390
  }
393
- function Te(e, t, n, r, i) {
391
+ function De(e, t, n, r, i) {
394
392
  let a = "";
395
- for (let o of e.cells) a += Ee(o, t, n, r, i);
393
+ for (let o of e.cells) a += Oe(o, t, n, r, i);
396
394
  return `<tr>${a}</tr>`;
397
395
  }
398
- function Ee(e, t, n, r, i) {
396
+ function Oe(e, t, n, r, i) {
399
397
  let a = t.cellPadding, o = [`border: ${i}px solid ${r}`, `padding: ${a}px`];
400
- n && (o.push("font-weight: bold"), t.headerBackgroundColor && o.push(`background-color: ${F(t.headerBackgroundColor)}`));
401
- let s = o.join("; "), c = N(I(e.content)), l = n ? "th" : "td";
398
+ n && (o.push("font-weight: bold"), t.headerBackgroundColor && o.push(`background-color: ${P(t.headerBackgroundColor)}`));
399
+ let s = o.join("; "), c = M(F(e.content)), l = n ? "th" : "td";
402
400
  return `<${l} style="${s}">${c}</${l}>`;
403
401
  }
404
- function De(e, t) {
402
+ function ke(e, t) {
405
403
  return e ? ` font-family="${t.resolveFontFamily(e)}"` : "";
406
404
  }
407
405
  //#endregion
408
406
  //#region ../renderer/src/renderers/custom.ts
409
- function Oe(e, t) {
410
- if (T(e)) return "";
407
+ function Ae(e, t) {
408
+ if (w(e)) return "";
411
409
  let n = t.customBlockHtml.get(e.id) ?? e.renderedHtml;
412
410
  if (!n || n === "") return "";
413
- let r = E(e);
414
- return `<mj-text padding="${R(e.styles.padding)}"${z(e.styles.backgroundColor, "container")}${r}>
411
+ let r = T(e);
412
+ return `<mj-text padding="${L(e.styles.padding)}"${R(e.styles.backgroundColor, "container")}${r}>
415
413
  ${n}
416
414
  </mj-text>`;
417
415
  }
@@ -454,11 +452,11 @@ function J(e, t) {
454
452
  }
455
453
  //#endregion
456
454
  //#region ../renderer/src/renderers/section.ts
457
- function ke(e, t, n) {
458
- if (T(e)) return "";
459
- let r = e.columns, i = K(r), a = q(r, t.containerWidth), o = R(e.styles.padding), s = z(e.styles.backgroundColor, "native"), c = E(e), l = H(e.borderRadius), u = V(e.border), d = t.contentDirection === "rtl" ? " direction=\"rtl\"" : "", f = e.children, p = [];
455
+ function je(e, t, n) {
456
+ if (w(e)) return "";
457
+ let r = e.columns, i = K(r), a = q(r, t.containerWidth), o = L(e.styles.padding), s = R(e.styles.backgroundColor, "native"), c = T(e), l = V(e.borderRadius), u = B(e.border), d = t.contentDirection === "rtl" ? " direction=\"rtl\"" : "", f = e.children, p = [];
460
458
  for (let e = 0; e < f.length; e++) {
461
- let r = f[e], o = i[e] ?? "100%", s = Math.floor(a[e] ?? t.containerWidth), c = Ae(r, t.allowHtmlBlocks).filter((e) => !g(e)), l = t.withContainerWidth(s), u = c.map((e) => J(e, n(e, l))).filter((e) => e !== "").join("\n");
459
+ let r = f[e], o = i[e] ?? "100%", s = Math.floor(a[e] ?? t.containerWidth), c = Me(r, t.allowHtmlBlocks).filter((e) => !h(e)), l = t.withContainerWidth(s), u = c.map((e) => J(e, n(e, l))).filter((e) => e !== "").join("\n");
462
460
  p.push(`<mj-column width="${o}"${d}>
463
461
  ${u === "" ? "<mj-text>&nbsp;</mj-text>" : u}
464
462
  </mj-column>`);
@@ -470,12 +468,12 @@ ${m}
470
468
  </mj-group>` : m}
471
469
  </mj-section>`;
472
470
  }
473
- function Ae(e, t) {
471
+ function Me(e, t) {
474
472
  return t ? e : e.filter((e) => e.type !== "html");
475
473
  }
476
474
  //#endregion
477
475
  //#region ../renderer/src/renderers/video.ts
478
- function je(e, t) {
476
+ function Ne(e, t) {
479
477
  if (t) return t;
480
478
  if (!e) return null;
481
479
  for (let t of [/(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/)([a-zA-Z0-9_-]{11})/, /youtube\.com\/shorts\/([a-zA-Z0-9_-]{11})/]) {
@@ -485,18 +483,18 @@ function je(e, t) {
485
483
  let n = e.match(/vimeo\.com\/(?:video\/)?(\d+)/);
486
484
  return n ? `https://vumbnail.com/${n[1]}.jpg` : null;
487
485
  }
488
- function Me(e, t) {
489
- if (T(e)) return "";
490
- let n = je(e.url, e.thumbnailUrl);
486
+ function Pe(e, t) {
487
+ if (w(e)) return "";
488
+ let n = Ne(e.url, e.thumbnailUrl);
491
489
  if (!n) return "";
492
- let r = R(e.styles.padding), i = z(e.styles.backgroundColor, "container"), a = e.width === "full" ? t.containerWidth + "px" : e.width + "px", o = B(e.height), s = E(e);
490
+ let r = L(e.styles.padding), i = R(e.styles.backgroundColor, "container"), a = e.width === "full" ? t.containerWidth + "px" : e.width + "px", o = z(e.height), s = T(e);
493
491
  return `<mj-image
494
- src="${P(n)}"
495
- alt="${P(e.alt)}"
492
+ src="${N(n)}"
493
+ alt="${N(e.alt)}"
496
494
  width="${a}"${o}
497
495
  align="${e.align}"
498
496
  padding="${r}"
499
- href="${P(e.url)}"
497
+ href="${N(e.url)}"
500
498
  target="_blank"
501
499
  rel="noopener"${i}${s}
502
500
  />`;
@@ -504,58 +502,60 @@ function Me(e, t) {
504
502
  //#endregion
505
503
  //#region ../renderer/src/renderers/index.ts
506
504
  function Y(t, r) {
507
- let o = r.blockRenderers[t.type];
508
- return o ? o(t, r) : g(t) ? ke(t, r, Y) : l(t) ? ae(t, r) : m(t) ? ce(t, r) : u(t) ? le(t, r) : i(t) ? ue(t, r) : n(t) ? he(t, r) : h(t) ? ge(t, r) : e(t) ? _e(t, r) : s(t) ? ve(t, r) : v(t) ? ye(t, r) : _(t) ? Ce(t, r) : f(t) ? Me(t, r) : a(t) ? Oe(t, r) : T(t) ? "" : A(t);
505
+ let i = r.blockRenderers[t.type];
506
+ return i ? i(t, r) : h(t) ? je(t, r, Y) : l(t) ? se(t, r) : p(t) ? ue(t, r) : u(t) ? de(t, r) : a(t) ? fe(t, r) : n(t) ? _e(t, r) : m(t) ? ve(t, r) : e(t) ? ye(t, r) : s(t) ? be(t, r) : g(t) ? xe(t, r) : ee(t) ? Te(t, r) : f(t) ? Pe(t, r) : o(t) ? Ae(t, r) : w(t) ? "" : k(t);
509
507
  }
510
508
  //#endregion
511
509
  //#region ../renderer/src/index.ts
512
- async function Ne(e, n) {
513
- let i = n?.layout ? c(n.layout, e) : (ee(e), r(e), e), a = n?.customFonts ?? [], o = n?.defaultFallbackFont ?? "Arial, sans-serif", s = n?.allowHtmlBlocks ?? !0, l = Fe(n?.socialIconsBaseUrl ?? C), u = await Re(i, n?.renderCustomBlock), d = ze(i, n?.getCustomBlockStylesheet), f = t(i.settings), p = new w(i.settings.width, a, o, s, u, l, n?.blockRenderers ?? {}, f), m = Q(i.blocks, s), h = p.resolveFontFamily(i.settings.fontFamily), g = i.settings.backgroundColor, _ = i.settings.textColor ? ` color="${P(i.settings.textColor)}"` : "", v = i.settings.linkColor ? F(i.settings.linkColor) : "inherit", y = i.settings.linkUnderline ? "underline" : "none", b = m.map((e) => X(e, p)).filter((e) => e !== "").join("\n"), x = Le(a), S = Ie(i.settings.preheaderText);
514
- return `<mjml lang="${P(i.settings.locale)}" dir="${P(f)}">
515
- <mj-head>${S}
510
+ var Fe = `.${G} a { display: block !important; }`;
511
+ async function Ie(e, n) {
512
+ let i = n?.layout ? c(n.layout, e) : (te(e), r(e), e), a = n?.customFonts ?? [], o = n?.defaultFallbackFont ?? "Arial, sans-serif", s = n?.allowHtmlBlocks ?? !0, l = Re(n?.socialIconsBaseUrl ?? S), u = await Ve(i, n?.renderCustomBlock), d = He(i, n?.getCustomBlockStylesheet), f = t(i.settings), p = new C(i.settings.width, a, o, s, u, l, n?.blockRenderers ?? {}, f), m = Q(i.blocks, s), h = p.resolveFontFamily(i.settings.fontFamily), ee = i.settings.backgroundColor, g = i.settings.textColor ? ` color="${N(i.settings.textColor)}"` : "", _ = i.settings.linkColor ? P(i.settings.linkColor) : "inherit", v = i.settings.linkUnderline ? "underline" : "none", y = m.map((e) => X(e, p)).filter((e) => e !== "").join("\n"), b = Be(a), ne = ze(i.settings.preheaderText);
513
+ return `<mjml lang="${N(i.settings.locale)}" dir="${N(f)}">
514
+ <mj-head>${ne}
516
515
  <mj-attributes>
517
516
  <mj-all font-family="${h}" />
518
- <mj-text font-size="14px"${_} />
517
+ <mj-text font-size="14px"${g} />
519
518
  <mj-section padding="0" />
520
519
  <mj-column padding="0" />
521
520
  <mj-image fluid-on-mobile="true" />
522
- </mj-attributes>${x}
521
+ </mj-attributes>${b}
523
522
  <mj-style inline="inline">
524
- ${re(ie(m), f)}
523
+ ${ae(oe(m), f)}
524
+ ${Fe}
525
525
  </mj-style>
526
526
  <mj-style>
527
- a { color: ${v}; text-decoration: ${y}; }
527
+ a { color: ${_}; text-decoration: ${v}; }
528
528
  @media only screen and (max-width: 480px) {
529
529
  .tpl-hide-mobile { display: none !important; mso-hide: all !important; }
530
530
  }
531
531
  @media only screen and (min-width: 481px) {
532
532
  .tpl-hide-desktop { display: none !important; mso-hide: all !important; }
533
533
  }
534
- </mj-style>${Be(d)}
534
+ </mj-style>${Ue(d)}
535
535
  </mj-head>
536
- <mj-body width="${p.containerWidth}px" background-color="${g}">
537
- ${b}
536
+ <mj-body width="${p.containerWidth}px" background-color="${ee}">
537
+ ${y}
538
538
  </mj-body>
539
539
  </mjml>`;
540
540
  }
541
541
  function X(e, t) {
542
- if (y(e)) return J(e, Z(Q(e.children, t.allowHtmlBlocks).map((e) => X(e, t)).filter((e) => e !== "").join("\n"), {
542
+ if (_(e)) return J(e, Z(Q(e.children, t.allowHtmlBlocks).map((e) => X(e, t)).filter((e) => e !== "").join("\n"), {
543
543
  backgroundColor: e.styles.backgroundColor,
544
544
  padding: e.styles.padding,
545
545
  borderRadius: e.borderRadius
546
546
  }, t.contentDirection));
547
- if (g(e)) {
547
+ if (h(e)) {
548
548
  let n = Y(e, t);
549
549
  return J(e, e.wrapper && n !== "" ? Z(n, e.wrapper, t.contentDirection) : n);
550
550
  }
551
- return J(e, Pe(Y(e, t), t.contentDirection));
551
+ return J(e, Le(Y(e, t), t.contentDirection));
552
552
  }
553
553
  function Z(e, t, n) {
554
- return `<mj-wrapper${z(t.backgroundColor, "native")}${` padding="${t.padding ? R(t.padding) : "0"}"`}${H(t.borderRadius)}${n === "rtl" ? " direction=\"rtl\"" : ""}>
554
+ return `<mj-wrapper${R(t.backgroundColor, "native")}${` padding="${t.padding ? L(t.padding) : "0"}"`}${V(t.borderRadius)}${n === "rtl" ? " direction=\"rtl\"" : ""}>
555
555
  ${e}
556
556
  </mj-wrapper>`;
557
557
  }
558
- function Pe(e, t) {
558
+ function Le(e, t) {
559
559
  if (e === "") return "";
560
560
  let n = t === "rtl" ? " direction=\"rtl\"" : "";
561
561
  return `<mj-section${n}>
@@ -564,21 +564,21 @@ ${e}
564
564
  </mj-column>
565
565
  </mj-section>`;
566
566
  }
567
- function Fe(e) {
567
+ function Re(e) {
568
568
  return e.endsWith("/") ? e.slice(0, -1) : e;
569
569
  }
570
- function Ie(e) {
570
+ function ze(e) {
571
571
  if (!e) return "";
572
572
  let t = e.trim();
573
- return t === "" ? "" : `\n <mj-preview>${N(t)}</mj-preview>`;
573
+ return t === "" ? "" : `\n <mj-preview>${M(t)}</mj-preview>`;
574
574
  }
575
- function Le(e) {
576
- return e.length === 0 ? "" : e.map((e) => `\n <mj-font name="${P(e.name)}" href="${P(e.url)}" />`).join("");
575
+ function Be(e) {
576
+ return e.length === 0 ? "" : e.map((e) => `\n <mj-font name="${N(e.name)}" href="${N(e.url)}" />`).join("");
577
577
  }
578
578
  function Q(e, t) {
579
579
  return t ? e : e.filter((e) => e.type !== "html");
580
580
  }
581
- async function Re(e, t) {
581
+ async function Ve(e, t) {
582
582
  let n = /* @__PURE__ */ new Map();
583
583
  if (!t) return n;
584
584
  let r = [];
@@ -588,16 +588,11 @@ async function Re(e, t) {
588
588
  return n;
589
589
  }
590
590
  function $(e, t) {
591
- for (let n of e) {
592
- if (a(n)) {
593
- t.push(n);
594
- continue;
595
- }
596
- if (g(n)) for (let e of n.children) $(e, t);
597
- else y(n) && $(n.children, t);
598
- }
591
+ for (let n of e) if (o(n)) t.push(n);
592
+ else if (h(n)) for (let e of n.children) $(e, t);
593
+ else _(n) && $(n.children, t);
599
594
  }
600
- function ze(e, t) {
595
+ function He(e, t) {
601
596
  if (!t) return [];
602
597
  let n = [];
603
598
  if ($(e.blocks, n), n.length === 0) return [];
@@ -612,10 +607,10 @@ function ze(e, t) {
612
607
  }
613
608
  return a;
614
609
  }
615
- function Be(e) {
610
+ function Ue(e) {
616
611
  return e.length === 0 ? "" : e.map((e) => `\n <mj-style>\n${e}\n </mj-style>`).join("");
617
612
  }
618
613
  //#endregion
619
- export { C as DEFAULT_SOCIAL_ICONS_BASE_URL, U as RICH_TEXT_CSS_CLASS, w as RenderContext, O as UNRENDERABLE_MARKER_PREFIX, I as convertMergeTagsToValues, P as escapeAttr, N as escapeHtml, E as getCssClassAttr, D as getCssClasses, K as getWidthPercentages, q as getWidthPixels, T as isHiddenOnAll, Y as renderBlock, Ne as renderToMjml, A as renderUnrenderableBlock, G as resolveParagraphGap, W as richTextGapClass, R as toPaddingString };
614
+ export { G as BUTTON_FULL_WIDTH_CSS_CLASS, S as DEFAULT_SOCIAL_ICONS_BASE_URL, H as RICH_TEXT_CSS_CLASS, C as RenderContext, D as UNRENDERABLE_MARKER_PREFIX, F as convertMergeTagsToValues, N as escapeAttr, M as escapeHtml, T as getCssClassAttr, E as getCssClasses, K as getWidthPercentages, q as getWidthPixels, w as isHiddenOnAll, Y as renderBlock, Ie as renderToMjml, k as renderUnrenderableBlock, W as resolveParagraphGap, U as richTextGapClass, L as toPaddingString };
620
615
 
621
- //# sourceMappingURL=src-CLHnxvuS.js.map
616
+ //# sourceMappingURL=src-CkXmV2I2.js.map