@templatical/editor 0.49.0 → 0.50.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 (378) hide show
  1. package/README.md +4 -2
  2. package/dist/AiAltTextPopover-BZQ95GXL.js +106 -0
  3. package/dist/AiAltTextReview-DoBEudnE.js +206 -0
  4. package/dist/AiChatPanel-Bs6sES3b.js +550 -0
  5. package/dist/AiHeaderMenu-BEaTazx4.js +36 -0
  6. package/dist/AiPanels-CfN7A-ZA.js +33 -0
  7. package/dist/AiRewriteMenu-C3ZfDDYy.js +276 -0
  8. package/dist/{BlockIssueBadge-BdpJwim0.js → BlockIssueBadge-CKwZ1Vgn.js} +11 -11
  9. package/dist/{BlockPreviewCanvas-D_sowkf0.js → BlockPreviewCanvas-BXNLLLYi.js} +33 -33
  10. package/dist/CloudHeaderExtras-CsJMEiyN.js +23 -0
  11. package/dist/{CloudPanels-1hwFiJ0G.js → CloudPanels-B4F5m7vy.js} +66 -85
  12. package/dist/{CollaborationNotices-BWpKzueF.js → CollaborationNotices-CNuDp7Y2.js} +19 -16
  13. package/dist/{CollaboratorBar-D87phJsw.js → CollaboratorBar-BtHPiuHq.js} +22 -22
  14. package/dist/{CommentsPanel-BUvUzO3T.js → CommentsPanel-CyCM-BvT.js} +4 -4
  15. package/dist/CommentsSidebar-Ca3DyFOX.js +500 -0
  16. package/dist/{cdn/chunks/CountdownBlock-DB4JNdqh.js → CountdownBlock-DR4Xm2-T.js} +24 -26
  17. package/dist/{CountdownToolbar-CLMIwfK7.js → CountdownToolbar-CEIMPojJ.js} +55 -55
  18. package/dist/IssuesPanel-C8nMUccy.js +360 -0
  19. package/dist/{LoadingTrack-BXOptf5g.js → LoadingTrack-B0RKQWq3.js} +2 -2
  20. package/dist/{LogicTagInsertButton-CR5E4jSG.js → LogicTagInsertButton-CqfU52CO.js} +273 -268
  21. package/dist/{cdn/chunks/MediaEditModal-DD0SZ-S3.js → MediaEditModal-DHtkZ4OU.js} +202 -186
  22. package/dist/{MediaPanels-BVXDkqtH.js → MediaPanels-CGcOB2pR.js} +4 -4
  23. package/dist/{MergeTagInput-BEw_r0PJ.js → MergeTagInput-YnEkorTZ.js} +25 -25
  24. package/dist/{MergeTagModeToggle-CJTpFmVd.js → MergeTagModeToggle-Dhb1DAcQ.js} +40 -40
  25. package/dist/MergeTagTextarea-e4lnwtqZ.js +70 -0
  26. package/dist/ParagraphEditor-B6NK0ytw.js +799 -0
  27. package/dist/{RestoreVersionDialog-BaDpy3cL.js → RestoreVersionDialog-Bq_IGOLJ.js} +21 -21
  28. package/dist/{RichTextEditorContent-CsvniFlI.js → RichTextEditorContent-AOM6fylS.js} +48 -48
  29. package/dist/{SaveBlockDialog-DzWURF_e.js → SaveBlockDialog-C8GngfQx.js} +87 -87
  30. package/dist/{cdn/chunks/SavedBlocksBrowserModal-BMtyUrUP.js → SavedBlocksBrowserModal-wnkvxpm_.js} +102 -99
  31. package/dist/{SavedBlocksPanels-B3Af8ns2.js → SavedBlocksPanels-C2s3q0pJ.js} +9 -9
  32. package/dist/{SavedBlocksPickBar-Dj11-Lqp.js → SavedBlocksPickBar-BjcTiV87.js} +13 -13
  33. package/dist/TemplateSettings-BVBWpiDU.js +237 -0
  34. package/dist/{TestEmailModal-BeRYV3eg.js → TestEmailModal-SyhO9bn3.js} +57 -57
  35. package/dist/{TestEmailPanel-B8c3fQi2.js → TestEmailPanel-BDd2Rtav.js} +4 -4
  36. package/dist/{TitleEditor-CvpNUoAp.js → TitleEditor-pxD53y_l.js} +75 -75
  37. package/dist/ToggleSwitch-D51U9cmR.js +37 -0
  38. package/dist/{Toolbar-BadDSkkF.js → Toolbar-CZSPZYbj.js} +1138 -1138
  39. package/dist/{TplModal-BZgi9Tes.js → TplModal-DCzBzicE.js} +19 -19
  40. package/dist/{VersionHistoryMenu-BRlcQ8wX.js → VersionHistoryMenu-BQeWPT85.js} +35 -35
  41. package/dist/{VersionHistoryPanels-DGkllN3a.js → VersionHistoryPanels-BBm7YbRQ.js} +5 -5
  42. package/dist/{VersionPreviewBanner-F-811aps.js → VersionPreviewBanner-DUGF0tUJ.js} +9 -9
  43. package/dist/WrapperBlock-BO619LAb.js +45 -0
  44. package/dist/aiErrors-D5UOoYOt.js +41 -0
  45. package/dist/aiImageContext-BH4Ss1h3.js +48 -0
  46. package/dist/aiRewritePreview-DLGM05Ge.js +44 -0
  47. package/dist/{blockTypeIcons-CayLluou.js → blockTypeIcons-NzaYvAI4.js} +15 -14
  48. package/dist/bundle-stats.json +8 -8
  49. package/dist/{cdn/chunks/ca-DSJwJ5ov.js → ca-C7mTzW1r.js} +130 -13
  50. package/dist/cdn/chunks/AiAltTextPopover-CQu0Q_ZX.js +107 -0
  51. package/dist/cdn/chunks/AiAltTextPopover-CQu0Q_ZX.js.map +1 -0
  52. package/dist/cdn/chunks/AiAltTextReview-CI2HbWfn.js +207 -0
  53. package/dist/cdn/chunks/AiAltTextReview-CI2HbWfn.js.map +1 -0
  54. package/dist/cdn/chunks/AiChatPanel-BYqn1bKu.js +476 -0
  55. package/dist/cdn/chunks/AiChatPanel-BYqn1bKu.js.map +1 -0
  56. package/dist/cdn/chunks/AiHeaderMenu-oldAAFyL.js +37 -0
  57. package/dist/cdn/chunks/AiHeaderMenu-oldAAFyL.js.map +1 -0
  58. package/dist/cdn/chunks/AiPanels-CIFKQv8Y.js +34 -0
  59. package/dist/cdn/chunks/AiPanels-CIFKQv8Y.js.map +1 -0
  60. package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js +208 -0
  61. package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js.map +1 -0
  62. package/dist/cdn/chunks/{BlockIssueBadge-D1VBS_6x.js → BlockIssueBadge-DAn2vsMJ.js} +13 -13
  63. package/dist/cdn/chunks/{BlockIssueBadge-D1VBS_6x.js.map → BlockIssueBadge-DAn2vsMJ.js.map} +1 -1
  64. package/dist/cdn/chunks/{BlockPreviewCanvas-m2tWRyWv.js → BlockPreviewCanvas-D0--EQkP.js} +38 -38
  65. package/dist/cdn/chunks/{BlockPreviewCanvas-m2tWRyWv.js.map → BlockPreviewCanvas-D0--EQkP.js.map} +1 -1
  66. package/dist/cdn/chunks/CloudHeaderExtras-DaUU8P8R.js +25 -0
  67. package/dist/cdn/chunks/CloudHeaderExtras-DaUU8P8R.js.map +1 -0
  68. package/dist/cdn/chunks/{CloudPanels-XufhBZYF.js → CloudPanels-C3jsxo_f.js} +52 -71
  69. package/dist/cdn/chunks/CloudPanels-C3jsxo_f.js.map +1 -0
  70. package/dist/cdn/chunks/{CollaborationNotices-CBvKEj1Q.js → CollaborationNotices-DjRI8gvs.js} +23 -20
  71. package/dist/cdn/chunks/CollaborationNotices-DjRI8gvs.js.map +1 -0
  72. package/dist/cdn/chunks/{CollaboratorBar-DWW54Bn_.js → CollaboratorBar-Dfzm6A9A.js} +20 -20
  73. package/dist/cdn/chunks/{CollaboratorBar-DWW54Bn_.js.map → CollaboratorBar-Dfzm6A9A.js.map} +1 -1
  74. package/dist/cdn/chunks/CommentsPanel-CSO79OeX.js +20 -0
  75. package/dist/cdn/chunks/{CommentsPanel-R8YLLO3v.js.map → CommentsPanel-CSO79OeX.js.map} +1 -1
  76. package/dist/cdn/chunks/CommentsSidebar-CCvplq1Z.js +470 -0
  77. package/dist/cdn/chunks/{CommentsSidebar-96NZHVq3.js.map → CommentsSidebar-CCvplq1Z.js.map} +1 -1
  78. package/dist/{CountdownBlock-DPQXWRvU.js → cdn/chunks/CountdownBlock-C6USdwk3.js} +19 -17
  79. package/dist/cdn/chunks/{CountdownBlock-DB4JNdqh.js.map → CountdownBlock-C6USdwk3.js.map} +1 -1
  80. package/dist/cdn/chunks/{CountdownToolbar-tmiTPEXm.js → CountdownToolbar-Cjud2Tos.js} +70 -70
  81. package/dist/cdn/chunks/{CountdownToolbar-tmiTPEXm.js.map → CountdownToolbar-Cjud2Tos.js.map} +1 -1
  82. package/dist/cdn/chunks/IssuesPanel-BaWHPDxZ.js +340 -0
  83. package/dist/cdn/chunks/IssuesPanel-BaWHPDxZ.js.map +1 -0
  84. package/dist/cdn/chunks/{LoadingTrack-YU44CM8X.js → LoadingTrack-BIcL4NiY.js} +2 -2
  85. package/dist/cdn/chunks/{LoadingTrack-YU44CM8X.js.map → LoadingTrack-BIcL4NiY.js.map} +1 -1
  86. package/dist/cdn/chunks/{LogicTagInsertButton-BJ2t2vxC.js → LogicTagInsertButton-CsL2JDOG.js} +367 -362
  87. package/dist/cdn/chunks/LogicTagInsertButton-CsL2JDOG.js.map +1 -0
  88. package/dist/{MediaEditModal-C_wxoUMG.js → cdn/chunks/MediaEditModal-BuHCiyMu.js} +544 -560
  89. package/dist/cdn/chunks/MediaEditModal-BuHCiyMu.js.map +1 -0
  90. package/dist/cdn/chunks/MediaPanels-DAgUf_T1.js +45 -0
  91. package/dist/cdn/chunks/{MediaPanels-CkdJ_kGp.js.map → MediaPanels-DAgUf_T1.js.map} +1 -1
  92. package/dist/cdn/chunks/{MergeTagInput-7wXX71DH.js → MergeTagInput-C8U-7LxL.js} +33 -33
  93. package/dist/cdn/chunks/{MergeTagInput-7wXX71DH.js.map → MergeTagInput-C8U-7LxL.js.map} +1 -1
  94. package/dist/cdn/chunks/{MergeTagModeToggle-r9vHH4u_.js → MergeTagModeToggle-Mm-p0A52.js} +41 -41
  95. package/dist/cdn/chunks/{MergeTagModeToggle-r9vHH4u_.js.map → MergeTagModeToggle-Mm-p0A52.js.map} +1 -1
  96. package/dist/cdn/chunks/MergeTagTextarea-DuLScsWM.js +72 -0
  97. package/dist/cdn/chunks/MergeTagTextarea-DuLScsWM.js.map +1 -0
  98. package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js +634 -0
  99. package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js.map +1 -0
  100. package/dist/cdn/chunks/{RestoreVersionDialog-C5cxBRKi.js → RestoreVersionDialog-CdA5osuA.js} +25 -25
  101. package/dist/cdn/chunks/{RestoreVersionDialog-C5cxBRKi.js.map → RestoreVersionDialog-CdA5osuA.js.map} +1 -1
  102. package/dist/cdn/chunks/{RichTextEditorContent-BfE7Bkge.js → RichTextEditorContent-Q1d2xqBT.js} +46 -46
  103. package/dist/cdn/chunks/{RichTextEditorContent-BfE7Bkge.js.map → RichTextEditorContent-Q1d2xqBT.js.map} +1 -1
  104. package/dist/cdn/chunks/{SaveBlockDialog-BKbjUnPM.js → SaveBlockDialog-CijargAy.js} +77 -77
  105. package/dist/cdn/chunks/{SaveBlockDialog-BKbjUnPM.js.map → SaveBlockDialog-CijargAy.js.map} +1 -1
  106. package/dist/cdn/chunks/SavedBlocksBrowserModal-DtOz_X5S.js +357 -0
  107. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BMtyUrUP.js.map → SavedBlocksBrowserModal-DtOz_X5S.js.map} +1 -1
  108. package/dist/cdn/chunks/SavedBlocksPanels-BowyED5h.js +38 -0
  109. package/dist/cdn/chunks/{SavedBlocksPanels-s_gxi1im.js.map → SavedBlocksPanels-BowyED5h.js.map} +1 -1
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-B8WHk5mI.js → SavedBlocksPickBar-BPRaJBv3.js} +18 -18
  111. package/dist/cdn/chunks/{SavedBlocksPickBar-B8WHk5mI.js.map → SavedBlocksPickBar-BPRaJBv3.js.map} +1 -1
  112. package/dist/cdn/chunks/TemplateSettings-ByZeBO34.js +209 -0
  113. package/dist/cdn/chunks/{TemplateSettings-CtrzzQWl.js.map → TemplateSettings-ByZeBO34.js.map} +1 -1
  114. package/dist/cdn/chunks/{TestEmailModal-DuZKYMWD.js → TestEmailModal-BUVTj3Ic.js} +54 -54
  115. package/dist/cdn/chunks/{TestEmailModal-DuZKYMWD.js.map → TestEmailModal-BUVTj3Ic.js.map} +1 -1
  116. package/dist/cdn/chunks/TestEmailPanel-BxutYoWg.js +35 -0
  117. package/dist/cdn/chunks/{TestEmailPanel-DERaCdpG.js.map → TestEmailPanel-BxutYoWg.js.map} +1 -1
  118. package/dist/cdn/chunks/TitleEditor-Ccv6uoTz.js +199 -0
  119. package/dist/cdn/chunks/{TitleEditor-CEgxjtUX.js.map → TitleEditor-Ccv6uoTz.js.map} +1 -1
  120. package/dist/cdn/chunks/ToggleSwitch-Ctdmj621.js +39 -0
  121. package/dist/cdn/chunks/ToggleSwitch-Ctdmj621.js.map +1 -0
  122. package/dist/cdn/chunks/{Toolbar-GFIZQHzw.js → Toolbar-DoprRgTn.js} +986 -987
  123. package/dist/cdn/chunks/{Toolbar-GFIZQHzw.js.map → Toolbar-DoprRgTn.js.map} +1 -1
  124. package/dist/cdn/chunks/{TplModal-DDrbWJcE.js → TplModal-BXQzmsJX.js} +21 -21
  125. package/dist/cdn/chunks/{TplModal-DDrbWJcE.js.map → TplModal-BXQzmsJX.js.map} +1 -1
  126. package/dist/cdn/chunks/{VersionHistoryMenu-MlxsUmuT.js → VersionHistoryMenu-BF2fNCvq.js} +41 -41
  127. package/dist/cdn/chunks/{VersionHistoryMenu-MlxsUmuT.js.map → VersionHistoryMenu-BF2fNCvq.js.map} +1 -1
  128. package/dist/cdn/chunks/VersionHistoryPanels-Dal0Uk69.js +48 -0
  129. package/dist/cdn/chunks/{VersionHistoryPanels-DVOV8QLv.js.map → VersionHistoryPanels-Dal0Uk69.js.map} +1 -1
  130. package/dist/cdn/chunks/{VersionPreviewBanner-BQwRKc6S.js → VersionPreviewBanner-BaGcn-b1.js} +12 -12
  131. package/dist/cdn/chunks/{VersionPreviewBanner-BQwRKc6S.js.map → VersionPreviewBanner-BaGcn-b1.js.map} +1 -1
  132. package/dist/cdn/chunks/WrapperBlock-DkQJtLz0.js +47 -0
  133. package/dist/cdn/chunks/{WrapperBlock-CFuP4R0c.js.map → WrapperBlock-DkQJtLz0.js.map} +1 -1
  134. package/dist/cdn/chunks/aiErrors-D5UOoYOt.js +43 -0
  135. package/dist/cdn/chunks/aiErrors-D5UOoYOt.js.map +1 -0
  136. package/dist/cdn/chunks/aiImageContext-BH4Ss1h3.js +50 -0
  137. package/dist/cdn/chunks/aiImageContext-BH4Ss1h3.js.map +1 -0
  138. package/dist/cdn/chunks/aiRewritePreview-DLGM05Ge.js +46 -0
  139. package/dist/cdn/chunks/aiRewritePreview-DLGM05Ge.js.map +1 -0
  140. package/dist/cdn/chunks/blockTypeIcons-ikZAmd6U.js +22 -0
  141. package/dist/cdn/chunks/{blockTypeIcons-BnAd8qsP.js.map → blockTypeIcons-ikZAmd6U.js.map} +1 -1
  142. package/dist/{ca-DSJwJ5ov.js → cdn/chunks/ca-C7mTzW1r.js} +132 -11
  143. package/dist/cdn/chunks/ca-C7mTzW1r.js.map +1 -0
  144. package/dist/cdn/chunks/{cloud-CI_fgDyy.js → createCloudRuntime-DpBWhrv3.js} +489 -593
  145. package/dist/cdn/chunks/createCloudRuntime-DpBWhrv3.js.map +1 -0
  146. package/dist/cdn/chunks/de-DBOTcDj2.js +22 -0
  147. package/dist/cdn/chunks/de-DBOTcDj2.js.map +1 -0
  148. package/dist/{de-CBE6O79z.js → cdn/chunks/de-DNuYQTmS.js} +132 -11
  149. package/dist/cdn/chunks/de-DNuYQTmS.js.map +1 -0
  150. package/dist/{dist-Bv_GBr2l.js → cdn/chunks/dist-Bo8Thh8v.js} +60 -58
  151. package/dist/cdn/chunks/{dist-Doy3r07H.js.map → dist-Bo8Thh8v.js.map} +1 -1
  152. package/dist/cdn/chunks/dist-S-rLGqax.js +406 -0
  153. package/dist/cdn/chunks/{dist-DdwjXLme.js.map → dist-S-rLGqax.js.map} +1 -1
  154. package/dist/cdn/chunks/{draggable-akeQH_JP.js → draggable-DZ0gwUJ6.js} +1822 -1728
  155. package/dist/cdn/chunks/draggable-DZ0gwUJ6.js.map +1 -0
  156. package/dist/cdn/chunks/{editor-modal-HJBy9kLj.js → editor-modal-CI6EfeMd.js} +884 -884
  157. package/dist/cdn/chunks/{editor-modal-HJBy9kLj.js.map → editor-modal-CI6EfeMd.js.map} +1 -1
  158. package/dist/cdn/chunks/en-CDhWRrF_.js +22 -0
  159. package/dist/cdn/chunks/en-CDhWRrF_.js.map +1 -0
  160. package/dist/{en-CDexnk0p.js → cdn/chunks/en-CW71OK66.js} +132 -11
  161. package/dist/cdn/chunks/en-CW71OK66.js.map +1 -0
  162. package/dist/cdn/chunks/en-ifvu6oPv.js +1 -0
  163. package/dist/{es-BE42B6uN.js → cdn/chunks/es-DdK7zQfi.js} +132 -11
  164. package/dist/cdn/chunks/es-DdK7zQfi.js.map +1 -0
  165. package/dist/cdn/chunks/{extensions-koOuDeZS.js → extensions-taJTZlLK.js} +59 -59
  166. package/dist/cdn/chunks/{extensions-koOuDeZS.js.map → extensions-taJTZlLK.js.map} +1 -1
  167. package/dist/{fr-DlJFPDQR.js → cdn/chunks/fr-Dz5Bgb7-.js} +132 -11
  168. package/dist/cdn/chunks/fr-Dz5Bgb7-.js.map +1 -0
  169. package/dist/cdn/chunks/{icons-CjlNV8xD.js → icons-DNX6StSs.js} +178 -145
  170. package/dist/cdn/chunks/icons-DNX6StSs.js.map +1 -0
  171. package/dist/{ja-CUT8gkNI.js → cdn/chunks/ja-Di-zJiT8.js} +132 -11
  172. package/dist/cdn/chunks/ja-Di-zJiT8.js.map +1 -0
  173. package/dist/cdn/chunks/keys-BTpmg2Tt.js +12 -0
  174. package/dist/cdn/chunks/keys-BTpmg2Tt.js.map +1 -0
  175. package/dist/{logger-BBlvSn6q.js → cdn/chunks/logger-Tj0RPskW.js} +7 -1
  176. package/dist/cdn/chunks/logger-Tj0RPskW.js.map +1 -0
  177. package/dist/{nl-bXWqqRyS.js → cdn/chunks/nl-CvVuHYFL.js} +132 -11
  178. package/dist/cdn/chunks/{nl-bXWqqRyS.js.map → nl-CvVuHYFL.js.map} +1 -1
  179. package/dist/cdn/chunks/normalizeMergeTagMarkup-DyePIGqu.js +199 -0
  180. package/dist/cdn/chunks/normalizeMergeTagMarkup-DyePIGqu.js.map +1 -0
  181. package/dist/cdn/chunks/{preRenderCustomBlocks-DqKbdTJ8.js → preRenderCustomBlocks-Dc-QLntG.js} +4 -4
  182. package/dist/cdn/chunks/{preRenderCustomBlocks-DqKbdTJ8.js.map → preRenderCustomBlocks-Dc-QLntG.js.map} +1 -1
  183. package/dist/cdn/chunks/pt-BR-CHM-ZKvE.js +22 -0
  184. package/dist/cdn/chunks/pt-BR-CHM-ZKvE.js.map +1 -0
  185. package/dist/{pt-BR-2_H4-wlb.js → cdn/chunks/pt-BR-ZhO4vgyq.js} +132 -11
  186. package/dist/cdn/chunks/pt-BR-ZhO4vgyq.js.map +1 -0
  187. package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js +62 -0
  188. package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js.map +1 -0
  189. package/dist/cdn/chunks/socialIcons-BBvsTwCV.js +2032 -0
  190. package/dist/cdn/chunks/socialIcons-BBvsTwCV.js.map +1 -0
  191. package/dist/{dist-DBG3nh3k.js → cdn/chunks/src-BNFnxfrA.js} +552 -350
  192. package/dist/cdn/chunks/src-BNFnxfrA.js.map +1 -0
  193. package/dist/cdn/chunks/{src-B77z1iw4.js → src-BcTUmgLe.js} +113 -113
  194. package/dist/cdn/chunks/{src-B77z1iw4.js.map → src-BcTUmgLe.js.map} +1 -1
  195. package/dist/cdn/chunks/src-Bs_yxk3h.js +4392 -0
  196. package/dist/cdn/chunks/src-Bs_yxk3h.js.map +1 -0
  197. package/dist/cdn/chunks/{tiptap-B1RfWFzB.js → tiptap-CtVrAViq.js} +43 -43
  198. package/dist/cdn/chunks/{tiptap-B1RfWFzB.js.map → tiptap-CtVrAViq.js.map} +1 -1
  199. package/dist/cdn/chunks/{useCloudI18n-kp07GQmk.js → useCloudI18n-AVXhzbhQ.js} +4 -4
  200. package/dist/cdn/chunks/{useCloudI18n-kp07GQmk.js.map → useCloudI18n-AVXhzbhQ.js.map} +1 -1
  201. package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js +2586 -0
  202. package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js.map +1 -0
  203. package/dist/cdn/chunks/useEditorRoot-CR5GjJD6.js +10 -0
  204. package/dist/cdn/chunks/{useEditorRoot-5SBqm90x.js.map → useEditorRoot-CR5GjJD6.js.map} +1 -1
  205. package/dist/cdn/chunks/{useI18n-DEqtEgOs.js → useI18n-CbVubQhM.js} +3 -3
  206. package/dist/cdn/chunks/{useI18n-DEqtEgOs.js.map → useI18n-CbVubQhM.js.map} +1 -1
  207. package/dist/cdn/chunks/{useLogicTag-X8bc5qNl.js → useLogicTag-B49Nc53Y.js} +5 -5
  208. package/dist/cdn/chunks/{useLogicTag-X8bc5qNl.js.map → useLogicTag-B49Nc53Y.js.map} +1 -1
  209. package/dist/cdn/chunks/{useMergeTag-DFoOexIQ.js → useMergeTag-B0KryMj8.js} +5 -5
  210. package/dist/cdn/chunks/{useMergeTag-DFoOexIQ.js.map → useMergeTag-B0KryMj8.js.map} +1 -1
  211. package/dist/cdn/chunks/{usePopoverPosition-Cz9-XiXR.js → usePopoverPosition-C829ps5i.js} +4 -4
  212. package/dist/cdn/chunks/{usePopoverPosition-Cz9-XiXR.js.map → usePopoverPosition-C829ps5i.js.map} +1 -1
  213. package/dist/cdn/chunks/useScrollToBlock-CAwvulog.js +51 -0
  214. package/dist/cdn/chunks/useScrollToBlock-CAwvulog.js.map +1 -0
  215. package/dist/cdn/chunks/{withCurrentFont-D-f61ghC.js → withCurrentFont-DFPXeVfG.js} +2 -2
  216. package/dist/cdn/chunks/{withCurrentFont-D-f61ghC.js.map → withCurrentFont-DFPXeVfG.js.map} +1 -1
  217. package/dist/cdn/editor.css +1 -1
  218. package/dist/cdn/editor.js +2151 -1480
  219. package/dist/cdn/editor.js.map +1 -1
  220. package/dist/{check-DQQzkmIC.js → check-yYsp5Xpk.js} +1 -1
  221. package/dist/{chevron-down-CIF4bdon.js → chevron-down-DTmD06_j.js} +1 -1
  222. package/dist/{chevron-right-Cg7Xu-ev.js → chevron-right-BSeYZOxc.js} +1 -1
  223. package/dist/{chevron-up-Csu7ISD-.js → chevron-up-BOApwrxi.js} +1 -1
  224. package/dist/{circle-alert-YUvIJAgY.js → circle-alert-BMszY8im.js} +1 -1
  225. package/dist/{clock-CnSIGKQW.js → clock-HADxnl6-.js} +1 -1
  226. package/dist/{cloud-YUYDtdHt.js → createCloudRuntime-DVQI_ReU.js} +474 -570
  227. package/dist/{createLucideIcon-BcP1sjdp.js → createLucideIcon-0lYYH3EW.js} +6 -6
  228. package/dist/de-DBOTcDj2.js +20 -0
  229. package/dist/{cdn/chunks/de-CBE6O79z.js → de-DNuYQTmS.js} +130 -13
  230. package/dist/{cdn/chunks/dist-Doy3r07H.js → dist-C7EtxNCb.js} +49 -51
  231. package/dist/{dist-CNqjHA8e.js → dist-C_dV9QAx.js} +130 -130
  232. package/dist/{cdn/chunks/dist-DdwjXLme.js → dist-DI4_YSnG.js} +111 -110
  233. package/dist/{cdn/chunks/src-CvLTYGdO.js → dist-DtOF3bDW.js} +446 -393
  234. package/dist/{editor-modal--7_9A6j-.js → editor-modal-Bzhl-PgI.js} +832 -834
  235. package/dist/en-CDhWRrF_.js +20 -0
  236. package/dist/{cdn/chunks/en-CDexnk0p.js → en-CW71OK66.js} +130 -13
  237. package/dist/en-DwV15ltA.js +1 -0
  238. package/dist/{cdn/chunks/es-BE42B6uN.js → es-DdK7zQfi.js} +130 -13
  239. package/dist/{extensions-zwsZlWjH.js → extensions-CdyweA50.js} +57 -57
  240. package/dist/{eye-B1bua-ck.js → eye-DWkSvYpj.js} +1 -1
  241. package/dist/{cdn/chunks/fr-DlJFPDQR.js → fr-Dz5Bgb7-.js} +130 -13
  242. package/dist/image-DesWjcZ4.js +28 -0
  243. package/dist/index.d.ts +361 -24
  244. package/dist/{info-x26nGOo2.js → info-ClWJGoZy.js} +1 -1
  245. package/dist/{cdn/chunks/ja-CUT8gkNI.js → ja-Di-zJiT8.js} +130 -13
  246. package/dist/keys-Zd9KWRD1.js +10 -0
  247. package/dist/{link-CezhndyR.js → link-BqRicFTA.js} +1 -1
  248. package/dist/{list-DQqdptI0.js → list-bojQr9bn.js} +1 -1
  249. package/dist/{loader-circle-DCEeoYoi.js → loader-circle-B2B8LbUu.js} +1 -1
  250. package/dist/{cdn/chunks/logger-ByvdoAwq.js → logger-k9Nbj3Cp.js} +5 -3
  251. package/dist/{message-circle-BLGzfv_7.js → message-circle-BEuiNsyZ.js} +1 -1
  252. package/dist/{cdn/chunks/nl-bXWqqRyS.js → nl-CvVuHYFL.js} +130 -13
  253. package/dist/normalizeMergeTagMarkup-P6SUBuPv.js +197 -0
  254. package/dist/{package-D_kEQCMU.js → package-DCROB4aM.js} +1 -1
  255. package/dist/{pencil-Dct8zGLy.js → pencil-CEotCKbf.js} +1 -1
  256. package/dist/{preRenderCustomBlocks-CtKJecE-.js → preRenderCustomBlocks-D8rr61_z.js} +4 -4
  257. package/dist/pt-BR-CHM-ZKvE.js +20 -0
  258. package/dist/{cdn/chunks/pt-BR-2_H4-wlb.js → pt-BR-ZhO4vgyq.js} +130 -13
  259. package/dist/{refresh-cw-tGMRDxr8.js → refresh-cw-C6M2mHNC.js} +12 -2
  260. package/dist/{runtime-dom.esm-bundler-DYn1z2Xf.js → runtime-dom.esm-bundler-B8WCZWUm.js} +134 -134
  261. package/dist/sanitizeRichTextHtml-DeISfLFr.js +60 -0
  262. package/dist/{search-Bm2cCQpe.js → search-Cy99zPYf.js} +1 -1
  263. package/dist/{send-sVLaKZ7f.js → send-BDLJFsf3.js} +1 -1
  264. package/dist/{smartphone-B2W81p02.js → smartphone-CVvQaNA4.js} +1 -1
  265. package/dist/{cdn/chunks/socialIcons-CkZSYpoG.js → socialIcons-Dd-jRiVe.js} +688 -693
  266. package/dist/{sparkles-a1qkBZ8X.js → sparkles-Ce0Qz0ox.js} +1 -1
  267. package/dist/square-BWlolnXe.js +15 -0
  268. package/dist/style.css +1 -1
  269. package/dist/templatical-editor.js +2114 -1422
  270. package/dist/{text-align-start-CTuwQ5YW.js → text-align-start-D1V5gPTy.js} +1 -1
  271. package/dist/{trash-I3D2peFQ.js → trash-CZfiUFmw.js} +1 -1
  272. package/dist/{triangle-alert-CenxmLRE.js → triangle-alert-CFDzyFC7.js} +1 -1
  273. package/dist/upload-BJfvdIrD.js +36 -0
  274. package/dist/{useCloudI18n-CGVEZV3o.js → useCloudI18n-Dcjua65H.js} +5 -5
  275. package/dist/{useEditorCore-DRbMRe8F.js → useEditorCore-BTLeAVlM.js} +1463 -1499
  276. package/dist/{useEditorRoot-BVm2-1N8.js → useEditorRoot-DUy67lJu.js} +2 -2
  277. package/dist/{useI18n-CSh4gO5c.js → useI18n-BdoY7xDE.js} +4 -4
  278. package/dist/{useLogicTag-zcI6BWIf.js → useLogicTag-DKLZ1T9H.js} +3 -3
  279. package/dist/{useMergeTag-C-iBLlp0.js → useMergeTag-Bhdx7AKk.js} +3 -3
  280. package/dist/{usePopoverPosition-CMcsMBtK.js → usePopoverPosition-BZea45XK.js} +2 -2
  281. package/dist/useScrollToBlock-FmNMALM_.js +74 -0
  282. package/dist/{vue.runtime.esm-bundler-DV0Wx4r_.js → vue.runtime.esm-bundler-DgFJ6GPG.js} +1428 -1332
  283. package/dist/{withCurrentFont-D62njRLu.js → withCurrentFont-BATJHNve.js} +1 -1
  284. package/dist/{x-KFQ4S-Kz.js → x-CZ0Js0hA.js} +1 -1
  285. package/package.json +14 -12
  286. package/dist/AiChatSidebar-CdjTb9ej.js +0 -230
  287. package/dist/AiFeatureMenu-DKm7VYCs.js +0 -57
  288. package/dist/CloudHeaderExtras-CI8RR9hG.js +0 -55
  289. package/dist/CommentsSidebar-J65znlrH.js +0 -500
  290. package/dist/DesignReferenceSidebar-BTwCFgz8.js +0 -279
  291. package/dist/IssuesPanel-DeeVsfG7.js +0 -117
  292. package/dist/ParagraphEditor-zLV44z-R.js +0 -797
  293. package/dist/SavedBlocksBrowserModal-B8DCFW7t.js +0 -360
  294. package/dist/TemplateScoringPanel-Ba9sgvjS.js +0 -273
  295. package/dist/TemplateSettings-Cu5X9DgA.js +0 -246
  296. package/dist/ToggleSwitch-DHweVJOr.js +0 -102
  297. package/dist/WrapperBlock-DiiaxpMb.js +0 -45
  298. package/dist/cdn/chunks/AiChatSidebar-yXJ85Zcg.js +0 -205
  299. package/dist/cdn/chunks/AiChatSidebar-yXJ85Zcg.js.map +0 -1
  300. package/dist/cdn/chunks/AiFeatureMenu-4ydjrhsQ.js +0 -57
  301. package/dist/cdn/chunks/AiFeatureMenu-4ydjrhsQ.js.map +0 -1
  302. package/dist/cdn/chunks/CloudHeaderExtras-DEkRww7n.js +0 -56
  303. package/dist/cdn/chunks/CloudHeaderExtras-DEkRww7n.js.map +0 -1
  304. package/dist/cdn/chunks/CloudPanels-XufhBZYF.js.map +0 -1
  305. package/dist/cdn/chunks/CollaborationNotices-CBvKEj1Q.js.map +0 -1
  306. package/dist/cdn/chunks/CommentsPanel-R8YLLO3v.js +0 -20
  307. package/dist/cdn/chunks/CommentsSidebar-96NZHVq3.js +0 -470
  308. package/dist/cdn/chunks/DesignReferenceSidebar-D14IIu_P.js +0 -229
  309. package/dist/cdn/chunks/DesignReferenceSidebar-D14IIu_P.js.map +0 -1
  310. package/dist/cdn/chunks/IssuesPanel-BoPiCLGc.js +0 -100
  311. package/dist/cdn/chunks/IssuesPanel-BoPiCLGc.js.map +0 -1
  312. package/dist/cdn/chunks/LogicTagInsertButton-BJ2t2vxC.js.map +0 -1
  313. package/dist/cdn/chunks/MediaEditModal-DD0SZ-S3.js.map +0 -1
  314. package/dist/cdn/chunks/MediaPanels-CkdJ_kGp.js +0 -45
  315. package/dist/cdn/chunks/ParagraphEditor-CJQjRHXV.js +0 -632
  316. package/dist/cdn/chunks/ParagraphEditor-CJQjRHXV.js.map +0 -1
  317. package/dist/cdn/chunks/SavedBlocksPanels-s_gxi1im.js +0 -38
  318. package/dist/cdn/chunks/TemplateScoringPanel-BBPnHILC.js +0 -237
  319. package/dist/cdn/chunks/TemplateScoringPanel-BBPnHILC.js.map +0 -1
  320. package/dist/cdn/chunks/TemplateSettings-CtrzzQWl.js +0 -208
  321. package/dist/cdn/chunks/TestEmailPanel-DERaCdpG.js +0 -35
  322. package/dist/cdn/chunks/TitleEditor-CEgxjtUX.js +0 -199
  323. package/dist/cdn/chunks/ToggleSwitch-DGQ7iRc-.js +0 -104
  324. package/dist/cdn/chunks/ToggleSwitch-DGQ7iRc-.js.map +0 -1
  325. package/dist/cdn/chunks/VersionHistoryPanels-DVOV8QLv.js +0 -48
  326. package/dist/cdn/chunks/WrapperBlock-CFuP4R0c.js +0 -47
  327. package/dist/cdn/chunks/blockTypeIcons-BnAd8qsP.js +0 -22
  328. package/dist/cdn/chunks/ca-DSJwJ5ov.js.map +0 -1
  329. package/dist/cdn/chunks/cloud-CI_fgDyy.js.map +0 -1
  330. package/dist/cdn/chunks/createCloudRuntime-DiYCJ21w.js +0 -358
  331. package/dist/cdn/chunks/createCloudRuntime-DiYCJ21w.js.map +0 -1
  332. package/dist/cdn/chunks/de-CBE6O79z.js.map +0 -1
  333. package/dist/cdn/chunks/de-D_atmUVB.js +0 -89
  334. package/dist/cdn/chunks/de-D_atmUVB.js.map +0 -1
  335. package/dist/cdn/chunks/draggable-akeQH_JP.js.map +0 -1
  336. package/dist/cdn/chunks/en-CDexnk0p.js.map +0 -1
  337. package/dist/cdn/chunks/en-DhJLnaBx.js +0 -89
  338. package/dist/cdn/chunks/en-DhJLnaBx.js.map +0 -1
  339. package/dist/cdn/chunks/en-Ve-PWSXu.js +0 -1
  340. package/dist/cdn/chunks/es-BE42B6uN.js.map +0 -1
  341. package/dist/cdn/chunks/fr-DlJFPDQR.js.map +0 -1
  342. package/dist/cdn/chunks/icons-CjlNV8xD.js.map +0 -1
  343. package/dist/cdn/chunks/ja-CUT8gkNI.js.map +0 -1
  344. package/dist/cdn/chunks/keys-UAWhQ3zW.js +0 -12
  345. package/dist/cdn/chunks/keys-UAWhQ3zW.js.map +0 -1
  346. package/dist/cdn/chunks/logger-ByvdoAwq.js.map +0 -1
  347. package/dist/cdn/chunks/pt-BR-2_H4-wlb.js.map +0 -1
  348. package/dist/cdn/chunks/pt-BR-BphMoUTw.js +0 -89
  349. package/dist/cdn/chunks/pt-BR-BphMoUTw.js.map +0 -1
  350. package/dist/cdn/chunks/socialIcons-CkZSYpoG.js.map +0 -1
  351. package/dist/cdn/chunks/src-B1e5SSYP.js +0 -1272
  352. package/dist/cdn/chunks/src-B1e5SSYP.js.map +0 -1
  353. package/dist/cdn/chunks/src-CvLTYGdO.js.map +0 -1
  354. package/dist/cdn/chunks/timeouts-o5Y9BuqI.js +0 -6
  355. package/dist/cdn/chunks/timeouts-o5Y9BuqI.js.map +0 -1
  356. package/dist/cdn/chunks/useAliveFlag-PuXh83UK.js +0 -12
  357. package/dist/cdn/chunks/useAliveFlag-PuXh83UK.js.map +0 -1
  358. package/dist/cdn/chunks/useEditorCore-DpCFvHg_.js +0 -2623
  359. package/dist/cdn/chunks/useEditorCore-DpCFvHg_.js.map +0 -1
  360. package/dist/cdn/chunks/useEditorRoot-5SBqm90x.js +0 -10
  361. package/dist/cdn/chunks/useScrollToBlock-MNzurEZV.js +0 -21
  362. package/dist/cdn/chunks/useScrollToBlock-MNzurEZV.js.map +0 -1
  363. package/dist/copy-CUC43md_.js +0 -19
  364. package/dist/createCloudRuntime-BMDRjL0k.js +0 -356
  365. package/dist/de-D_atmUVB.js +0 -87
  366. package/dist/dist-CCqn-RqE.js +0 -407
  367. package/dist/en-BHCMzqib.js +0 -1
  368. package/dist/en-DhJLnaBx.js +0 -87
  369. package/dist/image-up-BqiO7KCO.js +0 -27
  370. package/dist/keys-BymCnLHD.js +0 -10
  371. package/dist/plus-BDd0gTEm.js +0 -14
  372. package/dist/pt-BR-BphMoUTw.js +0 -87
  373. package/dist/shield-check-YhsbXfQc.js +0 -14
  374. package/dist/socialIcons-Bwv-49EB.js +0 -2167
  375. package/dist/timeouts-o5Y9BuqI.js +0 -4
  376. package/dist/upload-uU2cK0Ce.js +0 -21
  377. package/dist/useAliveFlag-BjP0Gxza.js +0 -10
  378. package/dist/useScrollToBlock-CdCQK9QQ.js +0 -47
@@ -1,10 +1,10 @@
1
- import { $ as e, Bt as t, C as n, Dt as r, E as i, Ft as a, It as o, J as s, Lt as c, Mt as l, Rt as u, S as d, St as f, T as p, at as m, b as h, ct as g, dt as _, et as v, ft as y, it as b, lt as x, nt as ee, ot as S, pt as C, rt as te, tt as ne, ut as re, w as ie, x as ae, y as oe, zt as se } from "./src-CvLTYGdO.js";
1
+ import { $ as e, At as t, Bt as n, C as r, E as i, Ft as a, Ht as o, J as s, Rt as c, S as l, T as u, Tt as d, Ut as f, Vt as p, at as m, b as h, dt as g, ft as _, it as v, lt as y, mt as b, nt as x, ot as ee, pt as te, rt as ne, st as S, tt as re, ut as ie, w as ae, x as oe, y as se, zt as C } from "./src-BNFnxfrA.js";
2
2
  //#endregion
3
3
  //#region ../renderer/src/render-context.ts
4
4
  var w = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
5
5
  name: "@templatical/renderer",
6
6
  description: "Render Templatical email templates to MJML",
7
- version: "0.49.0",
7
+ version: "0.50.0",
8
8
  bugs: "https://github.com/templatical/sdk/issues",
9
9
  dependencies: { "@templatical/types": "workspace:*" },
10
10
  devDependencies: {
@@ -60,7 +60,7 @@ var w = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
60
60
  return new e(t, this.customFonts, this.defaultFallbackFont, this.allowHtmlBlocks, this.customBlockHtml, this.socialIconsBaseUrl, this.blockRenderers, this.contentDirection, n);
61
61
  }
62
62
  resolveFontFamily(e) {
63
- return oe(e, {
63
+ return se(e, {
64
64
  customFonts: this.customFonts,
65
65
  defaultFallback: this.defaultFallbackFont
66
66
  });
@@ -85,11 +85,11 @@ function ce(e) {
85
85
  //#endregion
86
86
  //#region ../renderer/src/unrenderable.ts
87
87
  var le = "templatical:unrenderable-block";
88
- function ue(e) {
88
+ function O(e) {
89
89
  return e.replace(/[<>]/g, "").replace(/-{2,}/g, "-");
90
90
  }
91
- function O(e) {
92
- 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><!-- ${le} type="${ue(e.type)}" id="${ue(e.id)}" --></mj-raw>`;
91
+ function ue(e) {
92
+ 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><!-- ${le} type="${O(e.type)}" id="${O(e.id)}" --></mj-raw>`;
93
93
  }
94
94
  //#endregion
95
95
  //#region ../renderer/src/escape.ts
@@ -114,7 +114,7 @@ function P(e) {
114
114
  return e.replace(de, (e) => k[e] ?? e);
115
115
  }
116
116
  function F(e) {
117
- return e === "" ? "" : fe(e, (e) => pe(e, "data-merge-tag") ?? pe(e, "data-logic-merge-tag"));
117
+ return e === "" ? "" : fe(e, (e) => I(e, "data-merge-tag") ?? I(e, "data-logic-merge-tag"));
118
118
  }
119
119
  function fe(e, t) {
120
120
  let n = "", r = 0;
@@ -129,7 +129,7 @@ function fe(e, t) {
129
129
  n += e.substring(r, i + 5), r = i + 5;
130
130
  continue;
131
131
  }
132
- let o = d(e, i + 5);
132
+ let o = l(e, i + 5);
133
133
  if (o === -1) {
134
134
  n += e.substring(r);
135
135
  break;
@@ -144,50 +144,50 @@ function fe(e, t) {
144
144
  }
145
145
  return n;
146
146
  }
147
- function pe(e, t) {
148
- return n(e, t);
147
+ function I(e, t) {
148
+ return r(e, t);
149
149
  }
150
150
  //#endregion
151
151
  //#region ../renderer/src/padding.ts
152
- function I(e) {
152
+ function L(e) {
153
153
  return `${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`;
154
154
  }
155
155
  //#endregion
156
156
  //#region ../renderer/src/utils.ts
157
- function L(e, t) {
157
+ function R(e, t) {
158
158
  return e ? ` ${t === "native" ? "background-color" : "container-background-color"}="${e}"` : "";
159
159
  }
160
- function R(e) {
160
+ function z(e) {
161
161
  return typeof e != "number" || !Number.isFinite(e) || e <= 0 ? "" : ` height="${e}px"`;
162
162
  }
163
- function z(e, t) {
164
- let n = (e) => Math.trunc(e ?? 0), r = (e) => u(e) === null ? 0 : Math.trunc(e.width);
163
+ function B(e, t) {
164
+ let n = (e) => Math.trunc(e ?? 0), r = (e) => p(e) === null ? 0 : Math.trunc(e.width);
165
165
  return n(e?.left) + n(e?.right) + r(t?.left) + r(t?.right);
166
166
  }
167
- function B(e, t) {
168
- let n = Math.floor(t.contentWidth) - z(e.styles.padding, e.border);
167
+ function V(e, t) {
168
+ let n = Math.floor(t.contentWidth) - B(e.styles.padding, e.border);
169
169
  return e.width === "full" || e.width >= n ? " fluid-on-mobile=\"true\"" : "";
170
170
  }
171
- function V(e) {
172
- return Object.entries(se(e)).map(([e, t]) => ` ${e}="${N(t)}"`).join("");
173
- }
174
171
  function H(e) {
175
- let n = t(e);
176
- return n === null ? "" : ` border-radius="${n}"`;
172
+ return Object.entries(o(e)).map(([e, t]) => ` ${e}="${N(t)}"`).join("");
177
173
  }
178
174
  function U(e) {
179
- let t = l(e);
175
+ let t = f(e);
176
+ return t === null ? "" : ` border-radius="${t}"`;
177
+ }
178
+ function W(e) {
179
+ let t = a(e);
180
180
  return t === null ? "" : ` background-url="${M(t.url)}" background-size="${t.size}" background-position="${t.position}" background-repeat="${t.repeat}"`;
181
181
  }
182
182
  //#endregion
183
183
  //#region ../renderer/src/rich-text.ts
184
- var W = "tpl-rich-text";
185
- function G(e) {
186
- return `${W}-${e}`;
184
+ var G = "tpl-rich-text";
185
+ function K(e) {
186
+ return `${G}-${e}`;
187
187
  }
188
- function me(e, t = "ltr") {
189
- let n = o, r = `.${W}`, i = [...new Set(e)].sort((e, t) => e - t).flatMap((e) => {
190
- let t = `.${G(e)}`;
188
+ function pe(e, t = "ltr") {
189
+ let n = C, r = `.${G}`, i = [...new Set(e)].sort((e, t) => e - t).flatMap((e) => {
190
+ let t = `.${K(e)}`;
191
191
  return [`${t} p { margin: 0 0 ${e}px; }`, `${t} p:last-child { margin-bottom: 0; }`];
192
192
  }), a = t === "rtl" ? "padding-right" : "padding-left";
193
193
  return [
@@ -196,41 +196,41 @@ function me(e, t = "ltr") {
196
196
  `${r} li { margin: ${n.listItemMarginY}px 0; }`
197
197
  ].join("\n ");
198
198
  }
199
- function K(e) {
200
- return e ?? o.paragraphGap;
199
+ function q(e) {
200
+ return e ?? C.paragraphGap;
201
201
  }
202
- function he(e) {
203
- let t = [o.paragraphGap], n = (e) => {
204
- if (e.type === "paragraph" && t.push(K(e.paragraphSpacing)), S(e)) for (let t of e.children) for (let e of t) n(e);
205
- else if (C(e)) for (let t of e.children) n(t);
202
+ function me(e) {
203
+ let t = [C.paragraphGap], n = (e) => {
204
+ if (e.type === "paragraph" && t.push(q(e.paragraphSpacing)), S(e)) for (let t of e.children) for (let e of t) n(e);
205
+ else if (b(e)) for (let t of e.children) n(t);
206
206
  };
207
207
  for (let t of e) n(t);
208
208
  return t;
209
209
  }
210
210
  //#endregion
211
211
  //#region ../renderer/src/renderers/title.ts
212
- function ge(e, t) {
212
+ function he(e, t) {
213
213
  if (E(e)) return "";
214
- let n = I(e.styles.padding), r = L(e.styles.backgroundColor, "container"), i = _e(h(F(e.content))), o = a[e.level] ?? a[2], s = e.color ? `\n color="${M(e.color)}"` : "", l = e.textAlign, u = ve(e.fontFamily, t), d = D(e, [W, G(K(void 0))]), f = `h${a[e.level] ? e.level : 2}`;
214
+ let r = L(e.styles.padding), i = R(e.styles.backgroundColor, "container"), a = ge(h(F(e.content))), o = c[e.level] ?? c[2], s = e.color ? `\n color="${M(e.color)}"` : "", l = e.textAlign, u = _e(e.fontFamily, t), d = D(e, [G, K(q(void 0))]), f = `h${c[e.level] ? e.level : 2}`;
215
215
  return `<mj-text
216
216
  font-size="${o}px"${s}
217
217
  align="${l}"
218
- line-height="${c}"
219
- padding="${n}"${r}${u}${d}
220
- ><${f} style="margin:0;font-size:inherit;color:inherit;line-height:inherit;font-weight:700">${i}</${f}></mj-text>`;
218
+ line-height="${n}"
219
+ padding="${r}"${i}${u}${d}
220
+ ><${f} style="margin:0;font-size:inherit;color:inherit;line-height:inherit;font-weight:700">${a}</${f}></mj-text>`;
221
221
  }
222
- function _e(e) {
222
+ function ge(e) {
223
223
  let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
224
224
  return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
225
225
  }
226
- function ve(e, t) {
226
+ function _e(e, t) {
227
227
  return e ? ` font-family="${P(t.resolveFontFamily(e))}"` : "";
228
228
  }
229
229
  //#endregion
230
230
  //#region ../renderer/src/renderers/paragraph.ts
231
- function ye(e, t) {
232
- if (E(e) || ae(e.content)) return "";
233
- let n = I(e.styles.padding), r = L(e.styles.backgroundColor, "container"), i = h(F(e.content)), a = D(e, [W, G(K(e.paragraphSpacing))]);
231
+ function ve(e, t) {
232
+ if (E(e) || oe(e.content)) return "";
233
+ let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = h(F(e.content)), a = D(e, [G, K(q(e.paragraphSpacing))]);
234
234
  return `<mj-text
235
235
  line-height="1.5"${t.contentDirection === "rtl" ? "\n align=\"right\"" : ""}
236
236
  padding="${n}"${r}${a}
@@ -238,9 +238,9 @@ function ye(e, t) {
238
238
  }
239
239
  //#endregion
240
240
  //#region ../renderer/src/renderers/image.ts
241
- function be(e, t) {
241
+ function ye(e, t) {
242
242
  if (E(e) || e.src === "") return "";
243
- let n = I(e.styles.padding), r = L(e.styles.backgroundColor, "container"), i = e.width === "full" ? t.containerWidth + "px" : e.width + "px", a = R(e.height), o = B(e, t), s = D(e), c = H(e.borderRadius), l = V(e.border), u = "";
243
+ 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 = V(e, t), s = D(e), c = U(e.borderRadius), l = H(e.border), u = "";
244
244
  e.linkUrl && (u = ` href="${M(e.linkUrl)}"`, e.linkOpenInNewTab && (u += " target=\"_blank\" rel=\"noopener\""));
245
245
  let d = M(e.src), f = e.decorative === !0;
246
246
  return `<mj-image
@@ -253,38 +253,38 @@ function be(e, t) {
253
253
  }
254
254
  //#endregion
255
255
  //#region ../renderer/src/renderers/button.ts
256
- var q = "tpl-button-full";
257
- function xe(e, t) {
256
+ var J = "tpl-button-full";
257
+ function be(e, t) {
258
258
  if (E(e)) return "";
259
- let n = I(e.styles.padding), r = L(e.styles.backgroundColor, "container"), i = I(e.buttonPadding), a = e.url === "" ? "" : M(e.url), o = a === "" ? "" : ` href="${a}"`, s = Se(e.backgroundColor), c = M(e.textColor), l = e.fontSize, u = we(e.borderRadius), d = j(e.text), f = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", p = Ce(e.fontFamily, t), m = Te(e.width), h = D(e, e.width === "full" ? [q] : []);
259
+ let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = L(e.buttonPadding), a = e.url === "" ? "" : M(e.url), o = a === "" ? "" : ` href="${a}"`, s = xe(e.backgroundColor), c = M(e.textColor), l = e.fontSize, u = Ce(e.borderRadius), d = j(e.text), f = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", p = Se(e.fontFamily, t), m = we(e.width), h = D(e, e.width === "full" ? [J] : []);
260
260
  return `<mj-button${o}${f}
261
261
  background-color="${s}"
262
262
  color="${c}"
263
263
  font-size="${l}px"
264
264
  font-weight="bold"
265
- border-radius="${u}"${V(e.border)}
265
+ border-radius="${u}"${H(e.border)}
266
266
  inner-padding="${i}"
267
267
  align="${e.align ?? "center"}"
268
268
  padding="${n}"${r}${p}${m}${h}
269
269
  >${d}</mj-button>`;
270
270
  }
271
- function Se(e) {
271
+ function xe(e) {
272
272
  return e.trim() === "" ? "transparent" : M(e);
273
273
  }
274
- function Ce(e, t) {
274
+ function Se(e, t) {
275
275
  return e ? ` font-family="${P(t.resolveFontFamily(e))}"` : "";
276
276
  }
277
- function we(e) {
278
- return typeof e == "number" ? `${e}px` : t(e) ?? "0px";
277
+ function Ce(e) {
278
+ return typeof e == "number" ? `${e}px` : f(e) ?? "0px";
279
279
  }
280
- function Te(e) {
280
+ function we(e) {
281
281
  return e === void 0 ? "" : ` width="${e === "full" ? "100%" : `${e}px`}"`;
282
282
  }
283
283
  //#endregion
284
284
  //#region ../renderer/src/renderers/divider.ts
285
- function Ee(e, t) {
285
+ function Te(e, t) {
286
286
  if (E(e)) return "";
287
- let n = I(e.styles.padding), r = e.styles.backgroundColor ? ` container-background-color="${M(e.styles.backgroundColor)}"` : "", i = e.width === "full" ? "100%" : typeof e.width == "number" ? `${e.width}px` : e.width;
287
+ let n = L(e.styles.padding), r = e.styles.backgroundColor ? ` container-background-color="${M(e.styles.backgroundColor)}"` : "", i = e.width === "full" ? "100%" : typeof e.width == "number" ? `${e.width}px` : e.width;
288
288
  return `<mj-divider
289
289
  border-width="${e.thickness}px"
290
290
  border-style="${e.lineStyle}"
@@ -295,35 +295,35 @@ function Ee(e, t) {
295
295
  }
296
296
  //#endregion
297
297
  //#region ../renderer/src/renderers/spacer.ts
298
- function De(e, t) {
298
+ function Ee(e, t) {
299
299
  return E(e) ? "" : `<mj-spacer height="${e.height}px" padding="0"${e.styles.backgroundColor ? ` container-background-color="${M(e.styles.backgroundColor)}"` : ""}${D(e)} />`;
300
300
  }
301
301
  //#endregion
302
302
  //#region ../renderer/src/renderers/html.ts
303
- function Oe(e, t) {
303
+ function De(e, t) {
304
304
  if (E(e) || !t.allowHtmlBlocks) return "";
305
305
  let n = e.content;
306
306
  if (n === "") return "";
307
307
  let r = D(e);
308
- return `<mj-text padding="${I(e.styles.padding)}"${L(e.styles.backgroundColor, "container")}${r}>
308
+ return `<mj-text padding="${L(e.styles.padding)}"${R(e.styles.backgroundColor, "container")}${r}>
309
309
  ${n}
310
310
  </mj-text>`;
311
311
  }
312
312
  //#endregion
313
313
  //#region ../renderer/src/renderers/social.ts
314
- function ke(e, t) {
314
+ function Oe(e, t) {
315
315
  if (E(e)) return "";
316
316
  let n = e.icons;
317
317
  if (n.length === 0) return "";
318
- let r = I(e.styles.padding), i = e.styles.backgroundColor ? ` container-background-color="${M(e.styles.backgroundColor)}"` : "", a = D(e), o = e.align, s = e.iconSize, c = e.iconStyle, l = f(c, e.iconTone), u = e.spacing, d;
318
+ let r = L(e.styles.padding), i = e.styles.backgroundColor ? ` container-background-color="${M(e.styles.backgroundColor)}"` : "", a = D(e), o = e.align, s = e.iconSize, c = e.iconStyle, l = d(c, e.iconTone), u = e.spacing, f;
319
319
  switch (s) {
320
320
  case "small":
321
- d = 24;
321
+ f = 24;
322
322
  break;
323
323
  case "large":
324
- d = 48;
324
+ f = 48;
325
325
  break;
326
- default: d = 32;
326
+ default: f = 32;
327
327
  }
328
328
  let p;
329
329
  switch (c) {
@@ -347,82 +347,82 @@ function ke(e, t) {
347
347
  >
348
348
  ${n.map((e, n) => {
349
349
  let r = e.platform, i = M(e.url), a = `${t.socialIconsBaseUrl}/${l}/${r}.png`, o = n === m - 1 ? 0 : u;
350
- return `<mj-social-element src="${a}" href="${i}" icon-size="${d}px" padding="0 ${o}px 0 0" border-radius="${p}" background-color="transparent"></mj-social-element>`;
350
+ 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>`;
351
351
  }).join("\n")}
352
352
  </mj-social>`;
353
353
  }
354
354
  //#endregion
355
355
  //#region ../renderer/src/renderers/menu.ts
356
- function Ae(e, t) {
356
+ function ke(e, t) {
357
357
  if (E(e) || e.items.length === 0) return "";
358
- let n = I(e.styles.padding), r = L(e.styles.backgroundColor, "container"), i = D(e), a = Ne(e.fontFamily, t), o = e.textAlign;
358
+ let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = D(e), a = Me(e.fontFamily, t), o = e.textAlign;
359
359
  return `<mj-text
360
360
  font-size="${e.fontSize}px"${e.color ? `\n color="${M(e.color)}"` : ""}
361
361
  align="${o}"
362
362
  line-height="1.5"
363
363
  padding="${n}"${r}${a}${i}
364
- >${je(e)}</mj-text>`;
364
+ >${Ae(e)}</mj-text>`;
365
365
  }
366
- function je(e) {
366
+ function Ae(e) {
367
367
  let t = e.items, n = j(e.separator), r = N(e.separatorColor), i = e.spacing, a = e.linkColor ?? e.color, o = [], s = t.length;
368
- for (let e = 0; e < s; e++) o.push(Me(t[e], a)), e < s - 1 && o.push(`<span style="color: ${r}; padding: 0 ${i}px;">${n}</span>`);
368
+ for (let e = 0; e < s; e++) o.push(je(t[e], a)), e < s - 1 && o.push(`<span style="color: ${r}; padding: 0 ${i}px;">${n}</span>`);
369
369
  return o.join("");
370
370
  }
371
- function Me(e, t) {
371
+ function je(e, t) {
372
372
  let n = j(e.text), r = M(e.url), i = e.color ?? t, a = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", o = ["text-decoration: none"];
373
373
  return i && o.unshift(`color: ${N(i)}`), e.bold && o.push("font-weight: bold"), e.underline && o.push("text-decoration: underline"), `<a href="${r}" style="${o.join("; ")}"${a}>${n}</a>`;
374
374
  }
375
- function Ne(e, t) {
375
+ function Me(e, t) {
376
376
  return e ? ` font-family="${P(t.resolveFontFamily(e))}"` : "";
377
377
  }
378
378
  //#endregion
379
379
  //#region ../renderer/src/renderers/table.ts
380
- function Pe(e, t) {
380
+ function Ne(e, t) {
381
381
  if (E(e) || e.rows.length === 0) return "";
382
- let n = I(e.styles.padding), r = L(e.styles.backgroundColor, "container"), i = D(e), a = Re(e.fontFamily, t);
382
+ let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = D(e), a = Le(e.fontFamily, t);
383
383
  return `<mj-text
384
384
  font-size="${e.fontSize}px"${e.color ? `\n color="${M(e.color)}"` : ""}
385
385
  align="${e.textAlign}"
386
386
  line-height="1.5"
387
387
  padding="${n}"${r}${a}${i}
388
- >${Fe(e)}</mj-text>`;
388
+ >${Pe(e)}</mj-text>`;
389
389
  }
390
- function Fe(e) {
390
+ function Pe(e) {
391
391
  let t = N(e.borderColor), n = e.borderWidth, r = "";
392
392
  for (let i = 0; i < e.rows.length; i++) {
393
393
  let a = e.rows[i];
394
- r += Ie(a, e, e.hasHeaderRow && i === 0, t, n);
394
+ r += Fe(a, e, e.hasHeaderRow && i === 0, t, n);
395
395
  }
396
396
  return `<table style="width: 100%; border-collapse: collapse;">${r}</table>`;
397
397
  }
398
- function Ie(e, t, n, r, i) {
398
+ function Fe(e, t, n, r, i) {
399
399
  let a = "";
400
- for (let o of e.cells) a += Le(o, t, n, r, i);
400
+ for (let o of e.cells) a += Ie(o, t, n, r, i);
401
401
  return `<tr>${a}</tr>`;
402
402
  }
403
- function Le(e, t, n, r, i) {
403
+ function Ie(e, t, n, r, i) {
404
404
  let a = t.cellPadding, o = [`border: ${i}px solid ${r}`, `padding: ${a}px`];
405
405
  n && (o.push("font-weight: bold"), t.headerBackgroundColor && o.push(`background-color: ${N(t.headerBackgroundColor)}`));
406
406
  let s = o.join("; "), c = j(F(e.content)), l = n ? "th" : "td";
407
407
  return `<${l} style="${s}">${c}</${l}>`;
408
408
  }
409
- function Re(e, t) {
409
+ function Le(e, t) {
410
410
  return e ? ` font-family="${P(t.resolveFontFamily(e))}"` : "";
411
411
  }
412
412
  //#endregion
413
413
  //#region ../renderer/src/renderers/custom.ts
414
- function ze(e, t) {
414
+ function Re(e, t) {
415
415
  if (E(e)) return "";
416
416
  let n = t.customBlockHtml.get(e.id) ?? e.renderedHtml;
417
417
  if (!n || n === "") return "";
418
418
  let r = D(e);
419
- return `<mj-text padding="${I(e.styles.padding)}"${L(e.styles.backgroundColor, "container")}${r}>
419
+ return `<mj-text padding="${L(e.styles.padding)}"${R(e.styles.backgroundColor, "container")}${r}>
420
420
  ${n}
421
421
  </mj-text>`;
422
422
  }
423
423
  //#endregion
424
424
  //#region ../renderer/src/columns.ts
425
- function J(e) {
425
+ function Y(e) {
426
426
  switch (e) {
427
427
  case "2": return ["50%", "50%"];
428
428
  case "3": return [
@@ -435,7 +435,7 @@ function J(e) {
435
435
  default: return ["100%"];
436
436
  }
437
437
  }
438
- function Y(e, t) {
438
+ function ze(e, t) {
439
439
  switch (e) {
440
440
  case "2": return [t * .5, t * .5];
441
441
  case "3": return [
@@ -470,13 +470,13 @@ function X(e, t) {
470
470
  }
471
471
  //#endregion
472
472
  //#region ../renderer/src/renderers/section.ts
473
- function Ve(e, t, n) {
473
+ function Ve(e, n, r) {
474
474
  if (E(e)) return "";
475
- let i = r(e);
476
- if (i?.applied) return He(e, i, t, n);
477
- let a = e.columns, o = J(a), s = Y(a, t.containerWidth), c = Math.floor(t.contentWidth) - z(e.styles.padding, e.border), l = o.map((e) => Math.floor(c * parseFloat(e) / 100)), u = I(e.styles.padding), d = L(e.styles.backgroundColor, "native"), f = U(e.backgroundImage), p = D(e), m = H(e.borderRadius), h = V(e.border), g = t.contentDirection === "rtl" ? " direction=\"rtl\"" : "", _ = e.children, v = [];
475
+ let i = t(e);
476
+ if (i?.applied) return He(e, i, n, r);
477
+ let a = e.columns, o = Y(a), s = ze(a, n.containerWidth), c = Math.floor(n.contentWidth) - B(e.styles.padding, e.border), l = o.map((e) => Math.floor(c * parseFloat(e) / 100)), u = L(e.styles.padding), d = R(e.styles.backgroundColor, "native"), f = W(e.backgroundImage), p = D(e), m = U(e.borderRadius), h = H(e.border), g = n.contentDirection === "rtl" ? " direction=\"rtl\"" : "", _ = e.children, v = [];
478
478
  for (let e = 0; e < _.length; e++) {
479
- let r = _[e], i = o[e] ?? "100%", a = Math.floor(s[e] ?? t.containerWidth), u = Ue(r, t.allowHtmlBlocks).filter((e) => !S(e)), d = t.withContainerWidth(a, l[e] ?? c), f = u.map((e) => X(e, n(e, d))).filter((e) => e !== "").join("\n");
479
+ let t = _[e], i = o[e] ?? "100%", a = Math.floor(s[e] ?? n.containerWidth), u = Ue(t, n.allowHtmlBlocks).filter((e) => !S(e)), d = n.withContainerWidth(a, l[e] ?? c), f = u.map((e) => X(e, r(e, d))).filter((e) => e !== "").join("\n");
480
480
  v.push(`<mj-column width="${i}"${g}>
481
481
  ${f === "" ? "<mj-text>&nbsp;</mj-text>" : f}
482
482
  </mj-column>`);
@@ -489,7 +489,7 @@ ${y}
489
489
  </mj-section>`;
490
490
  }
491
491
  function He(e, t, n, r) {
492
- let i = Math.floor(n.contentWidth), a = Be(t, i, e.styles.padding), o = L(e.styles.backgroundColor, "native") || " background-color=\"transparent\"", s = I(e.styles.padding), c = H(e.borderRadius), l = D(e), u = n.withContainerWidth(i, i - z(e.styles.padding)), d = Ue(e.children[0] ?? [], n.allowHtmlBlocks).filter((e) => !S(e)).map((e) => X(e, r(e, u))).filter((e) => e !== "").join("\n");
492
+ let i = Math.floor(n.contentWidth), a = Be(t, i, e.styles.padding), o = R(e.styles.backgroundColor, "native") || " background-color=\"transparent\"", s = L(e.styles.padding), c = U(e.borderRadius), l = D(e), u = n.withContainerWidth(i, i - B(e.styles.padding)), d = Ue(e.children[0] ?? [], n.allowHtmlBlocks).filter((e) => !S(e)).map((e) => X(e, r(e, u))).filter((e) => e !== "").join("\n");
493
493
  return `<mj-hero mode="${a.mode}" height="${a.height}px" background-url="${M(t.image.url)}" background-width="${a.backgroundWidth}px" background-height="${a.backgroundHeight}px" background-position="${t.image.position}"${o} padding="${s}" vertical-align="${t.verticalAlign}"${c}${l}>
494
494
  ${d}
495
495
  </mj-hero>`;
@@ -513,7 +513,7 @@ function Ge(e, t) {
513
513
  if (E(e)) return "";
514
514
  let n = We(e.url, e.thumbnailUrl);
515
515
  if (!n) return "";
516
- let r = I(e.styles.padding), i = L(e.styles.backgroundColor, "container"), a = e.width === "full" ? t.containerWidth + "px" : e.width + "px", o = R(e.height), s = B(e, t), c = D(e);
516
+ 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 = V(e, t), c = D(e);
517
517
  return `<mj-image
518
518
  src="${M(n)}"
519
519
  alt="${M(e.alt)}"
@@ -529,14 +529,14 @@ function Ge(e, t) {
529
529
  //#region ../renderer/src/renderers/index.ts
530
530
  function Z(t, n) {
531
531
  let r = n.blockRenderers[t.type];
532
- return r ? r(t, n) : S(t) ? Ve(t, n, Z) : _(t) ? ge(t, n) : m(t) ? ye(t, n) : te(t) ? be(t, n) : e(t) ? xe(t, n) : ne(t) ? Ee(t, n) : x(t) ? De(t, n) : ee(t) ? Oe(t, n) : g(t) ? ke(t, n) : b(t) ? Ae(t, n) : re(t) ? Pe(t, n) : y(t) ? Ge(t, n) : v(t) ? ze(t, n) : E(t) ? "" : O(t);
532
+ return r ? r(t, n) : S(t) ? Ve(t, n, Z) : _(t) ? he(t, n) : ee(t) ? ve(t, n) : v(t) ? ye(t, n) : e(t) ? be(t, n) : x(t) ? Te(t, n) : ie(t) ? Ee(t, n) : ne(t) ? De(t, n) : y(t) ? Oe(t, n) : m(t) ? ke(t, n) : g(t) ? Ne(t, n) : te(t) ? Ge(t, n) : re(t) ? Re(t, n) : E(t) ? "" : ue(t);
533
533
  }
534
534
  //#endregion
535
535
  //#region ../renderer/src/index.ts
536
- var Ke = `.${q} a { display: block !important; }`;
536
+ var Ke = `.${J} a { display: block !important; }`;
537
537
  async function qe(e, t) {
538
- let n = t?.layout ? ie(t.layout, e) : (p(e), i(e), e), r = t?.customFonts ?? [], a = t?.defaultFallbackFont ?? "Arial, sans-serif", o = t?.allowHtmlBlocks ?? !0, c = Ze(t?.socialIconsBaseUrl ?? w), l = await tt(n, t?.renderCustomBlock), u = nt(n, t?.getCustomBlockStylesheet), d = s(n.settings), f = new T(n.settings.width, r, a, o, l, c, t?.blockRenderers ?? {}, d), m = et(n.blocks, o), h = f.resolveFontFamily(n.settings.fontFamily), g = n.settings.backgroundColor, _ = n.settings.textColor ? ` color="${M(n.settings.textColor)}"` : "", v = n.settings.linkColor ? N(n.settings.linkColor) : "inherit", y = n.settings.linkUnderline ? "underline" : "none", b = m.map((e) => Je(e, f)).filter((e) => e !== "").join("\n"), x = $e(r), ee = Qe(n.settings.preheaderText);
539
- return `<mjml lang="${M(n.settings.locale)}" dir="${M(d)}">
538
+ let n = t?.layout ? ae(t.layout, e) : (u(e), i(e), e), r = t?.customFonts ?? [], a = t?.defaultFallbackFont ?? "Arial, sans-serif", o = t?.allowHtmlBlocks ?? !0, c = Ze(t?.socialIconsBaseUrl ?? w), l = await tt(n, t?.renderCustomBlock), d = nt(n, t?.getCustomBlockStylesheet), f = s(n.settings), p = new T(n.settings.width, r, a, o, l, c, t?.blockRenderers ?? {}, f), m = et(n.blocks, o), h = p.resolveFontFamily(n.settings.fontFamily), g = n.settings.backgroundColor, _ = n.settings.textColor ? ` color="${M(n.settings.textColor)}"` : "", v = n.settings.linkColor ? N(n.settings.linkColor) : "inherit", y = n.settings.linkUnderline ? "underline" : "none", b = m.map((e) => Q(e, p)).filter((e) => e !== "").join("\n"), x = $e(r), ee = Qe(n.settings.preheaderText);
539
+ return `<mjml lang="${M(n.settings.locale)}" dir="${M(f)}">
540
540
  <mj-head>${ee}
541
541
  <mj-attributes>
542
542
  <mj-all font-family="${P(h)}" />
@@ -545,7 +545,7 @@ async function qe(e, t) {
545
545
  <mj-column padding="0" />
546
546
  </mj-attributes>${x}
547
547
  <mj-style inline="inline">
548
- ${me(he(m), d)}
548
+ ${pe(me(m), f)}
549
549
  ${Ke}
550
550
  </mj-style>
551
551
  <mj-style>
@@ -556,17 +556,17 @@ async function qe(e, t) {
556
556
  @media only screen and (min-width: 481px) {
557
557
  .tpl-hide-desktop { display: none !important; mso-hide: all !important; }
558
558
  }
559
- </mj-style>${rt(u)}
559
+ </mj-style>${rt(d)}
560
560
  </mj-head>
561
- <mj-body width="${f.containerWidth}px" background-color="${g}">
561
+ <mj-body width="${p.containerWidth}px" background-color="${g}">
562
562
  ${b}
563
563
  </mj-body>
564
564
  </mjml>`;
565
565
  }
566
- function Je(e, t) {
567
- if (C(e)) {
568
- let n = Q(t, e.styles.padding);
569
- return X(e, Ye(et(e.children, t.allowHtmlBlocks).map((e) => Je(e, n)).filter((e) => e !== "").join("\n"), {
566
+ function Q(e, t) {
567
+ if (b(e)) {
568
+ let n = Je(t, e.styles.padding);
569
+ return X(e, Ye(et(e.children, t.allowHtmlBlocks).map((e) => Q(e, n)).filter((e) => e !== "").join("\n"), {
570
570
  backgroundColor: e.styles.backgroundColor,
571
571
  padding: e.styles.padding,
572
572
  borderRadius: e.borderRadius,
@@ -574,16 +574,16 @@ function Je(e, t) {
574
574
  }, t.contentDirection));
575
575
  }
576
576
  if (S(e)) {
577
- let n = Z(e, e.wrapper ? Q(t, e.wrapper.padding) : t);
577
+ let n = Z(e, e.wrapper ? Je(t, e.wrapper.padding) : t);
578
578
  return X(e, e.wrapper && n !== "" ? Ye(n, e.wrapper, t.contentDirection) : n);
579
579
  }
580
580
  return X(e, Xe(Z(e, t), t.contentDirection));
581
581
  }
582
- function Q(e, t) {
583
- return e.withContainerWidth(e.containerWidth, Math.floor(e.contentWidth) - z(t));
582
+ function Je(e, t) {
583
+ return e.withContainerWidth(e.containerWidth, Math.floor(e.contentWidth) - B(t));
584
584
  }
585
585
  function Ye(e, t, n) {
586
- return `<mj-wrapper${L(t.backgroundColor, "native")}${U(t.backgroundImage)}${` padding="${t.padding ? I(t.padding) : "0"}"`}${H(t.borderRadius)}${n === "rtl" ? " direction=\"rtl\"" : ""}>
586
+ return `<mj-wrapper${R(t.backgroundColor, "native")}${W(t.backgroundImage)}${` padding="${t.padding ? L(t.padding) : "0"}"`}${U(t.borderRadius)}${n === "rtl" ? " direction=\"rtl\"" : ""}>
587
587
  ${e}
588
588
  </mj-wrapper>`;
589
589
  }
@@ -620,9 +620,9 @@ async function tt(e, t) {
620
620
  return n;
621
621
  }
622
622
  function $(e, t) {
623
- for (let n of e) if (v(n)) t.push(n);
623
+ for (let n of e) if (re(n)) t.push(n);
624
624
  else if (S(n)) for (let e of n.children) $(e, t);
625
- else C(n) && $(n.children, t);
625
+ else b(n) && $(n.children, t);
626
626
  }
627
627
  function nt(e, t) {
628
628
  let n = [];
@@ -644,6 +644,6 @@ function rt(e) {
644
644
  return e.length === 0 ? "" : e.map((e) => `\n <mj-style>\n${e}\n </mj-style>`).join("");
645
645
  }
646
646
  //#endregion
647
- export { q as BUTTON_FULL_WIDTH_CSS_CLASS, w as DEFAULT_SOCIAL_ICONS_BASE_URL, W as RICH_TEXT_CSS_CLASS, T as RenderContext, le as UNRENDERABLE_MARKER_PREFIX, F as convertMergeTagsToValues, M as escapeAttr, j as escapeHtml, B as fluidOnMobileAttr, D as getCssClassAttr, ce as getCssClasses, J as getWidthPercentages, Y as getWidthPixels, E as isHiddenOnAll, Z as renderBlock, qe as renderToMjml, O as renderUnrenderableBlock, K as resolveParagraphGap, G as richTextGapClass, I as toPaddingString };
647
+ export { J as BUTTON_FULL_WIDTH_CSS_CLASS, w as DEFAULT_SOCIAL_ICONS_BASE_URL, G as RICH_TEXT_CSS_CLASS, T as RenderContext, le as UNRENDERABLE_MARKER_PREFIX, F as convertMergeTagsToValues, M as escapeAttr, j as escapeHtml, V as fluidOnMobileAttr, D as getCssClassAttr, ce as getCssClasses, Y as getWidthPercentages, ze as getWidthPixels, E as isHiddenOnAll, Z as renderBlock, qe as renderToMjml, ue as renderUnrenderableBlock, q as resolveParagraphGap, K as richTextGapClass, L as toPaddingString };
648
648
 
649
- //# sourceMappingURL=src-B77z1iw4.js.map
649
+ //# sourceMappingURL=src-BcTUmgLe.js.map