@templatical/editor 0.41.0 → 0.42.1

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 (322) hide show
  1. package/dist/{AiChatSidebar-a8TPBAl2.js → AiChatSidebar-DOCvzGBe.js} +8 -8
  2. package/dist/{AiFeatureMenu-CroDMqRG.js → AiFeatureMenu-CfijAx4G.js} +4 -4
  3. package/dist/{BlockIssueBadge-D8KsGWY6.js → BlockIssueBadge-BJ3A6mqh.js} +2 -2
  4. package/dist/{BlockPreviewCanvas-Z9SZIgfA.js → BlockPreviewCanvas-DggfBaoJ.js} +33 -33
  5. package/dist/{CloudHeaderExtras-CVqHeqc6.js → CloudHeaderExtras-dFbdqBr5.js} +2 -2
  6. package/dist/{CloudPanels-CmEpQUJB.js → CloudPanels-DmMxhzzZ.js} +4 -4
  7. package/dist/{CollaboratorBar-AIQC9fEF.js → CollaboratorBar-XXk1tOC5.js} +2 -2
  8. package/dist/{CommentsPanel-9k1q-79y.js → CommentsPanel-CGEhbjx0.js} +1 -1
  9. package/dist/{CommentsSidebar-Bc7nORmD.js → CommentsSidebar-CUpst9ou.js} +10 -10
  10. package/dist/{CountdownToolbar-DkC-qSgq.js → CountdownToolbar-B1a_UIuB.js} +3 -3
  11. package/dist/{DesignReferenceSidebar-OoiYJAKS.js → DesignReferenceSidebar-DkAmsBgM.js} +6 -6
  12. package/dist/{IssuesPanel-Dnns3O9z.js → IssuesPanel-lTpsCV4a.js} +5 -5
  13. package/dist/{LogicTagInsertButton-BimKobaG.js → LogicTagInsertButton-B5YymR4U.js} +243 -219
  14. package/dist/{MediaEditModal-C-InB-H2.js → MediaEditModal-B1X8qtJb.js} +1 -1
  15. package/dist/{MediaPanels-CTosUpeo.js → MediaPanels-DO30L1KS.js} +1 -1
  16. package/dist/{MergeTagInput-DqpVzhy7.js → MergeTagInput-B0M_-X0K.js} +1 -1
  17. package/dist/{MergeTagModeToggle-BkIiAgpQ.js → MergeTagModeToggle-B-8W1tK7.js} +4 -4
  18. package/dist/{ParagraphEditor-DaZ03d1U.js → ParagraphEditor-BhhpXgoO.js} +35 -35
  19. package/dist/{RestoreVersionDialog-DHb1mPoF.js → RestoreVersionDialog-DE8aqmdi.js} +3 -3
  20. package/dist/{RichTextEditorContent-AEtfKvLz.js → RichTextEditorContent-AaLAArA0.js} +5 -5
  21. package/dist/{SaveBlockDialog-hGwLDWfE.js → SaveBlockDialog-BJ-hEwLv.js} +8 -8
  22. package/dist/{SavedBlocksBrowserModal-C0lYVBFi.js → SavedBlocksBrowserModal-nLI8aAQ5.js} +9 -9
  23. package/dist/{SavedBlocksPanels-CaTbeVDv.js → SavedBlocksPanels-RnzUMUJI.js} +1 -1
  24. package/dist/{SavedBlocksPickBar-DR2afid2.js → SavedBlocksPickBar-D3QA3Tgy.js} +2 -2
  25. package/dist/{TemplateScoringPanel-Cs0TGtRF.js → TemplateScoringPanel-C6ellAcs.js} +11 -11
  26. package/dist/{TemplateSettings-BD1WNP4C.js → TemplateSettings-C_0qK-zs.js} +6 -6
  27. package/dist/{TestEmailModal-DqoosG1u.js → TestEmailModal-CnyxLhWJ.js} +7 -7
  28. package/dist/{TestEmailPanel-DpozqyHF.js → TestEmailPanel-BRisIL4G.js} +1 -1
  29. package/dist/{TitleEditor-BCBdZLt_.js → TitleEditor-lPITPzw6.js} +12 -12
  30. package/dist/{ToggleSwitch-CJfQ8u57.js → ToggleSwitch-CtZ6adlX.js} +1 -1
  31. package/dist/{Toolbar-C7SjilzH.js → Toolbar-B6dG5_IP.js} +847 -554
  32. package/dist/{TplModal-CVO-2KrU.js → TplModal-BiAf7tWe.js} +2 -2
  33. package/dist/{VersionHistoryMenu-b0A8mS2_.js → VersionHistoryMenu-DdspCRSA.js} +5 -5
  34. package/dist/{VersionHistoryPanels-BzF7dmwa.js → VersionHistoryPanels-C589Jm_B.js} +1 -1
  35. package/dist/{VersionPreviewBanner-xB9r83r0.js → VersionPreviewBanner-XUuLe36h.js} +1 -1
  36. package/dist/{WrapperBlock-BDjOn3fY.js → WrapperBlock-CVQ4t1tY.js} +4 -4
  37. package/dist/{blockTypeIcons-B0Bq1WT1.js → blockTypeIcons-Sg8SY1NQ.js} +2 -2
  38. package/dist/bundle-stats.json +6 -6
  39. package/dist/{cdn/chunks/ca-Ckgw9yd0.js → ca--zGWn9AU.js} +14 -2
  40. package/dist/cdn/chunks/{AiChatSidebar-mKImUXi6.js → AiChatSidebar-DiG-EQ-E.js} +8 -8
  41. package/dist/cdn/chunks/AiChatSidebar-DiG-EQ-E.js.map +1 -0
  42. package/dist/cdn/chunks/{AiFeatureMenu-Cx3qdStQ.js → AiFeatureMenu-BXSPgOzA.js} +5 -5
  43. package/dist/cdn/chunks/AiFeatureMenu-BXSPgOzA.js.map +1 -0
  44. package/dist/cdn/chunks/{BlockIssueBadge-DS1pUf5g.js → BlockIssueBadge-ChQ0mPf5.js} +2 -2
  45. package/dist/cdn/chunks/BlockIssueBadge-ChQ0mPf5.js.map +1 -0
  46. package/dist/cdn/chunks/{BlockPreviewCanvas-D31TNib3.js → BlockPreviewCanvas-CMmv1FTA.js} +28 -28
  47. package/dist/cdn/chunks/BlockPreviewCanvas-CMmv1FTA.js.map +1 -0
  48. package/dist/cdn/chunks/{CloudHeaderExtras-0zdlKiq7.js → CloudHeaderExtras-yvFz2_e-.js} +3 -3
  49. package/dist/cdn/chunks/CloudHeaderExtras-yvFz2_e-.js.map +1 -0
  50. package/dist/cdn/chunks/{CloudPanels-DPh71yOO.js → CloudPanels-DpKck9Na.js} +4 -4
  51. package/dist/cdn/chunks/CloudPanels-DpKck9Na.js.map +1 -0
  52. package/dist/cdn/chunks/{CollaboratorBar-lCZU8qkg.js → CollaboratorBar-Clm1ZVXQ.js} +3 -3
  53. package/dist/cdn/chunks/CollaboratorBar-Clm1ZVXQ.js.map +1 -0
  54. package/dist/cdn/chunks/{CommentsPanel-BtAGZfF6.js → CommentsPanel-CjhxGMjL.js} +2 -2
  55. package/dist/cdn/chunks/CommentsPanel-CjhxGMjL.js.map +1 -0
  56. package/dist/cdn/chunks/{CommentsSidebar-Ws07MXYj.js → CommentsSidebar-D9bqMnlt.js} +16 -16
  57. package/dist/cdn/chunks/CommentsSidebar-D9bqMnlt.js.map +1 -0
  58. package/dist/cdn/chunks/CountdownBlock-sVDjKkRw.js.map +1 -1
  59. package/dist/cdn/chunks/{CountdownToolbar-Bu93WiS8.js → CountdownToolbar-CIRx5w1U.js} +4 -4
  60. package/dist/cdn/chunks/CountdownToolbar-CIRx5w1U.js.map +1 -0
  61. package/dist/cdn/chunks/{DesignReferenceSidebar-BlSdh5B7.js → DesignReferenceSidebar-C1-SbE_R.js} +9 -9
  62. package/dist/cdn/chunks/DesignReferenceSidebar-C1-SbE_R.js.map +1 -0
  63. package/dist/cdn/chunks/{IssuesPanel-CKkv9z9g.js → IssuesPanel-qKY6UDd-.js} +8 -8
  64. package/dist/cdn/chunks/IssuesPanel-qKY6UDd-.js.map +1 -0
  65. package/dist/cdn/chunks/LoadingTrack-_7DH_5aw.js.map +1 -1
  66. package/dist/cdn/chunks/{LogicTagInsertButton-CHc1yZ9v.js → LogicTagInsertButton-CItDS_U1.js} +250 -226
  67. package/dist/cdn/chunks/LogicTagInsertButton-CItDS_U1.js.map +1 -0
  68. package/dist/cdn/chunks/{MediaEditModal-Cw9MhjVz.js → MediaEditModal-CzUtXkpk.js} +2 -2
  69. package/dist/cdn/chunks/MediaEditModal-CzUtXkpk.js.map +1 -0
  70. package/dist/cdn/chunks/{MediaPanels-FD_aX3H5.js → MediaPanels-DOLsh7WC.js} +2 -2
  71. package/dist/cdn/chunks/MediaPanels-DOLsh7WC.js.map +1 -0
  72. package/dist/cdn/chunks/{MergeTagInput--qTYfCWk.js → MergeTagInput-B33u3nxj.js} +2 -2
  73. package/dist/cdn/chunks/MergeTagInput-B33u3nxj.js.map +1 -0
  74. package/dist/cdn/chunks/{MergeTagModeToggle-CdWIGo3Q.js → MergeTagModeToggle-Bz1CH3NT.js} +10 -10
  75. package/dist/cdn/chunks/MergeTagModeToggle-Bz1CH3NT.js.map +1 -0
  76. package/dist/cdn/chunks/{ParagraphEditor-w2qEZTkM.js → ParagraphEditor-J74SIn-m.js} +51 -51
  77. package/dist/cdn/chunks/ParagraphEditor-J74SIn-m.js.map +1 -0
  78. package/dist/cdn/chunks/{RestoreVersionDialog-cnWVN3nX.js → RestoreVersionDialog-CFE7jqDB.js} +3 -3
  79. package/dist/cdn/chunks/RestoreVersionDialog-CFE7jqDB.js.map +1 -0
  80. package/dist/cdn/chunks/{RichTextEditorContent-Fzuu9pLP.js → RichTextEditorContent-dOg1xFqv.js} +5 -5
  81. package/dist/cdn/chunks/RichTextEditorContent-dOg1xFqv.js.map +1 -0
  82. package/dist/cdn/chunks/{SaveBlockDialog-jxQtKnVs.js → SaveBlockDialog-DZOmDCC8.js} +38 -38
  83. package/dist/cdn/chunks/SaveBlockDialog-DZOmDCC8.js.map +1 -0
  84. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DpXWf4Pi.js → SavedBlocksBrowserModal-B43H5zKA.js} +10 -10
  85. package/dist/cdn/chunks/SavedBlocksBrowserModal-B43H5zKA.js.map +1 -0
  86. package/dist/cdn/chunks/{SavedBlocksPanels-B-ASmf1P.js → SavedBlocksPanels-uTSb2xO_.js} +2 -2
  87. package/dist/cdn/chunks/SavedBlocksPanels-uTSb2xO_.js.map +1 -0
  88. package/dist/cdn/chunks/{SavedBlocksPickBar-CEFIQ8Nd.js → SavedBlocksPickBar-BUvmGqHK.js} +3 -3
  89. package/dist/cdn/chunks/SavedBlocksPickBar-BUvmGqHK.js.map +1 -0
  90. package/dist/cdn/chunks/{TemplateScoringPanel-d_Ppowsq.js → TemplateScoringPanel-ebsrVge3.js} +19 -19
  91. package/dist/cdn/chunks/TemplateScoringPanel-ebsrVge3.js.map +1 -0
  92. package/dist/cdn/chunks/{TemplateSettings-Dr5OJ0Gi.js → TemplateSettings-BaEVdUTM.js} +9 -9
  93. package/dist/cdn/chunks/TemplateSettings-BaEVdUTM.js.map +1 -0
  94. package/dist/cdn/chunks/{TestEmailModal-CrjzVw8e.js → TestEmailModal-ide7UP_H.js} +7 -7
  95. package/dist/cdn/chunks/TestEmailModal-ide7UP_H.js.map +1 -0
  96. package/dist/cdn/chunks/{TestEmailPanel-k9vdulTu.js → TestEmailPanel-Cqdsnufx.js} +2 -2
  97. package/dist/cdn/chunks/TestEmailPanel-Cqdsnufx.js.map +1 -0
  98. package/dist/cdn/chunks/{TitleEditor-laILWfKh.js → TitleEditor-CoFzxLPA.js} +16 -16
  99. package/dist/cdn/chunks/TitleEditor-CoFzxLPA.js.map +1 -0
  100. package/dist/cdn/chunks/{ToggleSwitch-0dGCYnRY.js → ToggleSwitch-D-8dCEbI.js} +2 -2
  101. package/dist/cdn/chunks/ToggleSwitch-D-8dCEbI.js.map +1 -0
  102. package/dist/cdn/chunks/{Toolbar-BsiHW9gY.js → Toolbar-BDzhrmGV.js} +814 -566
  103. package/dist/cdn/chunks/Toolbar-BDzhrmGV.js.map +1 -0
  104. package/dist/cdn/chunks/{TplModal-D8DoPbFa.js → TplModal-mLMmolQp.js} +3 -3
  105. package/dist/cdn/chunks/TplModal-mLMmolQp.js.map +1 -0
  106. package/dist/cdn/chunks/{VersionHistoryMenu-B3-hNu9c.js → VersionHistoryMenu-C_bBKOYU.js} +7 -7
  107. package/dist/cdn/chunks/VersionHistoryMenu-C_bBKOYU.js.map +1 -0
  108. package/dist/cdn/chunks/{VersionHistoryPanels-zw1AtzGN.js → VersionHistoryPanels-B9LwOKxm.js} +2 -2
  109. package/dist/cdn/chunks/VersionHistoryPanels-B9LwOKxm.js.map +1 -0
  110. package/dist/cdn/chunks/{VersionPreviewBanner-PzVQSBJE.js → VersionPreviewBanner-CKyrcgxJ.js} +2 -2
  111. package/dist/cdn/chunks/VersionPreviewBanner-CKyrcgxJ.js.map +1 -0
  112. package/dist/cdn/chunks/{WrapperBlock-CpRvfAV0.js → WrapperBlock-DI8vSvTO.js} +4 -4
  113. package/dist/cdn/chunks/WrapperBlock-DI8vSvTO.js.map +1 -0
  114. package/dist/cdn/chunks/blockTypeIcons-CdfCfqHE.js +21 -0
  115. package/dist/cdn/chunks/blockTypeIcons-CdfCfqHE.js.map +1 -0
  116. package/dist/{ca-Ckgw9yd0.js → cdn/chunks/ca--zGWn9AU.js} +16 -0
  117. package/dist/cdn/chunks/ca--zGWn9AU.js.map +1 -0
  118. package/dist/cdn/chunks/ca-BTf1Zbqb.js.map +1 -1
  119. package/dist/cdn/chunks/{cloud-CIT4yPp4.js → cloud-De-eh1u6.js} +2 -2
  120. package/dist/cdn/chunks/cloud-De-eh1u6.js.map +1 -0
  121. package/dist/cdn/chunks/{createCloudRuntime-COUxbPvd.js → createCloudRuntime-DsaUaWvr.js} +3 -3
  122. package/dist/cdn/chunks/createCloudRuntime-DsaUaWvr.js.map +1 -0
  123. package/dist/cdn/chunks/{de-D4dweQw8.js → de-BRNLKcDl.js} +15 -1
  124. package/dist/cdn/chunks/de-BRNLKcDl.js.map +1 -0
  125. package/dist/cdn/chunks/de-mMY5yQJu.js.map +1 -1
  126. package/dist/cdn/chunks/de-xzrh9PA3.js.map +1 -1
  127. package/dist/cdn/chunks/dist-BRZhN8qJ.js.map +1 -1
  128. package/dist/cdn/chunks/dist-CXB2_kBa.js.map +1 -1
  129. package/dist/cdn/chunks/draggable-IB4x6w2O.js.map +1 -1
  130. package/dist/cdn/chunks/{editor-modal-CKu8HhiB.js → editor-modal-CZQArGNj.js} +88 -88
  131. package/dist/cdn/chunks/editor-modal-CZQArGNj.js.map +1 -0
  132. package/dist/cdn/chunks/emojiData-6m0DBh7O.js.map +1 -1
  133. package/dist/cdn/chunks/en-9unxBjV8.js +2 -0
  134. package/dist/cdn/chunks/en-ChVeGQBY.js.map +1 -1
  135. package/dist/{en-VE7R7NyL.js → cdn/chunks/en-JJjqHMjy.js} +16 -0
  136. package/dist/cdn/chunks/en-JJjqHMjy.js.map +1 -0
  137. package/dist/cdn/chunks/{es-B9OhP8H3.js → es-BIh8BxV9.js} +15 -1
  138. package/dist/cdn/chunks/es-BIh8BxV9.js.map +1 -0
  139. package/dist/cdn/chunks/es-BT4LSpE2.js.map +1 -1
  140. package/dist/cdn/chunks/{extensions-CafoGF65.js → extensions-Dy251lPd.js} +5 -5
  141. package/dist/cdn/chunks/extensions-Dy251lPd.js.map +1 -0
  142. package/dist/cdn/chunks/formatAbsoluteDateTime-DMmop3C-.js.map +1 -1
  143. package/dist/cdn/chunks/formatRelativeTime-CtUU-QZ8.js.map +1 -1
  144. package/dist/{fr-wrXhIi00.js → cdn/chunks/fr-C5VUZogP.js} +16 -0
  145. package/dist/cdn/chunks/fr-C5VUZogP.js.map +1 -0
  146. package/dist/cdn/chunks/fr-CI7OJoql.js.map +1 -1
  147. package/dist/cdn/chunks/htmlparser-ClUZ6waR.js.map +1 -1
  148. package/dist/cdn/chunks/{icons-BKkJ-5xF.js → icons-CQnjugjy.js} +86 -45
  149. package/dist/cdn/chunks/icons-CQnjugjy.js.map +1 -0
  150. package/dist/cdn/chunks/ja-DhlWUfke.js.map +1 -1
  151. package/dist/cdn/chunks/{ja-fKnVWXHC.js → ja-x5JYxaCW.js} +15 -1
  152. package/dist/cdn/chunks/ja-x5JYxaCW.js.map +1 -0
  153. package/dist/cdn/chunks/keys-DCWeHkSF.js.map +1 -1
  154. package/dist/cdn/chunks/liquid.browser-BypTT2oc.js.map +1 -1
  155. package/dist/cdn/chunks/logger-ByvdoAwq.js.map +1 -1
  156. package/dist/cdn/chunks/nl-D8y5OWGB.js.map +1 -1
  157. package/dist/cdn/chunks/{nl-DeFatKJe.js → nl-UXxFyXV6.js} +15 -1
  158. package/dist/cdn/chunks/nl-UXxFyXV6.js.map +1 -0
  159. package/dist/cdn/chunks/{preRenderCustomBlocks-Dpj-_cOj.js → preRenderCustomBlocks-h4ZFBKbD.js} +2 -2
  160. package/dist/cdn/chunks/preRenderCustomBlocks-h4ZFBKbD.js.map +1 -0
  161. package/dist/cdn/chunks/pt-BR-CoCwRUi0.js.map +1 -1
  162. package/dist/{pt-BR-Bh1J8ey6.js → cdn/chunks/pt-BR-DHm3SP6W.js} +16 -0
  163. package/dist/cdn/chunks/pt-BR-DHm3SP6W.js.map +1 -0
  164. package/dist/cdn/chunks/pt-BR-DMCbUBvJ.js.map +1 -1
  165. package/dist/cdn/chunks/pusher-BbIHJKf3.js.map +1 -1
  166. package/dist/cdn/chunks/readableTextColor-f8Kykfnh.js.map +1 -1
  167. package/dist/cdn/chunks/{socialIcons-BvYNMn1G.js → socialIcons-ZOCwCCyn.js} +3 -3
  168. package/dist/cdn/chunks/socialIcons-ZOCwCCyn.js.map +1 -0
  169. package/dist/cdn/chunks/{src-DveVYoWS.js → src-BR3I3gOW.js} +265 -224
  170. package/dist/cdn/chunks/src-BR3I3gOW.js.map +1 -0
  171. package/dist/cdn/chunks/{src-Cnc5E71L.js → src-fZSLjhjy.js} +12 -12
  172. package/dist/cdn/chunks/src-fZSLjhjy.js.map +1 -0
  173. package/dist/cdn/chunks/{src-L6HEdwFn.js → src-nhIF5-mf.js} +179 -166
  174. package/dist/cdn/chunks/src-nhIF5-mf.js.map +1 -0
  175. package/dist/cdn/chunks/styleConstants-C_YAPdQS.js.map +1 -1
  176. package/dist/cdn/chunks/templateSettingsFields-YCFVBVYh.js.map +1 -1
  177. package/dist/cdn/chunks/timeouts-DHPZQ0G3.js.map +1 -1
  178. package/dist/cdn/chunks/{tiptap-DhLuKyDc.js → tiptap-D1u8JIUW.js} +1916 -1917
  179. package/dist/cdn/chunks/tiptap-D1u8JIUW.js.map +1 -0
  180. package/dist/cdn/chunks/useAliveFlag-DAlQLbM2.js.map +1 -1
  181. package/dist/cdn/chunks/useCloudI18n-CrjWbpbu.js.map +1 -1
  182. package/dist/cdn/chunks/{useEditorCore-DZmtKwJh.js → useEditorCore-D4kzTMtQ.js} +458 -446
  183. package/dist/cdn/chunks/useEditorCore-D4kzTMtQ.js.map +1 -0
  184. package/dist/cdn/chunks/useEditorRoot-CshefZLP.js.map +1 -1
  185. package/dist/cdn/chunks/useI18n-CyO_Nmca.js.map +1 -1
  186. package/dist/cdn/chunks/{useLogicTag-DF7-l66G.js → useLogicTag-J_i_hvZg.js} +2 -2
  187. package/dist/cdn/chunks/useLogicTag-J_i_hvZg.js.map +1 -0
  188. package/dist/cdn/chunks/{useMergeTag-DbIHw4NG.js → useMergeTag-C5MyHYxJ.js} +2 -2
  189. package/dist/cdn/chunks/useMergeTag-C5MyHYxJ.js.map +1 -0
  190. package/dist/cdn/chunks/{usePopoverPosition-BJRvAb-h.js → usePopoverPosition-DGXjXKjM.js} +25 -12
  191. package/dist/cdn/chunks/usePopoverPosition-DGXjXKjM.js.map +1 -0
  192. package/dist/cdn/chunks/useScrollToBlock-DgHZJvID.js.map +1 -1
  193. package/dist/cdn/editor.css +1 -1
  194. package/dist/cdn/editor.js +493 -464
  195. package/dist/cdn/editor.js.map +1 -1
  196. package/dist/{check-eqb2JhqU.js → check-BMx_TLAS.js} +1 -1
  197. package/dist/{chevron-down-Dkr-7Ywl.js → chevron-down-KZf5mh9_.js} +1 -1
  198. package/dist/{chevron-right-Bge4XF_B.js → chevron-right-BLZ60Vxw.js} +1 -1
  199. package/dist/{chevron-up-CQAyl0kC.js → chevron-up-B9ynB8eU.js} +1 -1
  200. package/dist/{circle-alert-CYgTHKWr.js → circle-alert-pjvFFDrF.js} +1 -1
  201. package/dist/{clock-BgSJZJP5.js → clock-CiiTBfF3.js} +1 -1
  202. package/dist/{cloud-DsqqUfzh.js → cloud-AO_X8T9g.js} +1 -1
  203. package/dist/{copy-mw6PVnOJ.js → copy-BF0_pQjH.js} +1 -1
  204. package/dist/{createCloudRuntime-iLflkYzP.js → createCloudRuntime-D641nhri.js} +2 -2
  205. package/dist/{createLucideIcon-BxY5yz5u.js → createLucideIcon-C2YOVVWx.js} +8 -8
  206. package/dist/{de-D4dweQw8.js → de-BRNLKcDl.js} +14 -0
  207. package/dist/{dist-CQSVro7b.js → dist-B0dkvy7z.js} +1 -1
  208. package/dist/{dist-BJM3eFyT.js → dist-BPWuzECC.js} +1 -1
  209. package/dist/{dist-EDkj3Ub1.js → dist-BUHovM4k.js} +1 -1
  210. package/dist/{dist-BmsLcnrO.js → dist-BwoEME8p.js} +1 -1
  211. package/dist/{dist-DerFNpDY.js → dist-C2Ge44fD.js} +760 -761
  212. package/dist/{dist-BdHF7nyq.js → dist-CIxmOOSG.js} +5 -5
  213. package/dist/{dist-wyXxj3R1.js → dist-CJ7RZARo.js} +1 -1
  214. package/dist/{dist-Bl4rxpX9.js → dist-CxmLZQso.js} +1 -1
  215. package/dist/{dist-DyrEOKEJ.js → dist-DRmafAUz.js} +1 -1
  216. package/dist/{dist-Djmzp6wi.js → dist-DdOAotfz.js} +1 -1
  217. package/dist/{dist-BxVnMgXZ.js → dist-W_ERo6c_.js} +1 -1
  218. package/dist/{dist-DbUZvK04.js → dist-iLUVPysa.js} +263 -222
  219. package/dist/{dist-DQbOebGW.js → dist-p-LkiWIQ.js} +1 -1
  220. package/dist/{editor-modal-qzmEVcIk.js → editor-modal-99FB40dl.js} +16 -16
  221. package/dist/en-BvOjRLiw.js +2 -0
  222. package/dist/{cdn/chunks/en-VE7R7NyL.js → en-JJjqHMjy.js} +14 -2
  223. package/dist/{es-B9OhP8H3.js → es-BIh8BxV9.js} +14 -0
  224. package/dist/{extensions-DDhjuVKy.js → extensions-DqQXxrvP.js} +13 -13
  225. package/dist/{eye-DphkRtAD.js → eye-RdXYgrQZ.js} +1 -1
  226. package/dist/{cdn/chunks/fr-wrXhIi00.js → fr-C5VUZogP.js} +14 -2
  227. package/dist/{image-up-Qi2BXD7T.js → image-up-BwdoReQt.js} +1 -1
  228. package/dist/{info-VSyAs02q.js → info-zFMSGrL1.js} +1 -1
  229. package/dist/{ja-fKnVWXHC.js → ja-x5JYxaCW.js} +14 -0
  230. package/dist/{link-CNuozGqD.js → link-D7orqFBT.js} +1 -1
  231. package/dist/{list-BA0I5Wmu.js → list-BGt4Pgxc.js} +1 -1
  232. package/dist/{loader-circle-z5eeqasv.js → loader-circle-BVBgkRGz.js} +1 -1
  233. package/dist/{message-circle-BsQ9hEup.js → message-circle-D8YLsarv.js} +1 -1
  234. package/dist/{nl-DeFatKJe.js → nl-UXxFyXV6.js} +14 -0
  235. package/dist/{package-OkXfuRoO.js → package-CuFvk0L5.js} +1 -1
  236. package/dist/{pencil-DFVFA7Dj.js → pencil-DRYbmZW7.js} +1 -1
  237. package/dist/{plus-D8bkVjZ7.js → plus-Dv0b3kh0.js} +1 -1
  238. package/dist/{preRenderCustomBlocks-BBSqQgke.js → preRenderCustomBlocks-CTstI3Q-.js} +4 -4
  239. package/dist/{cdn/chunks/pt-BR-Bh1J8ey6.js → pt-BR-DHm3SP6W.js} +14 -2
  240. package/dist/{refresh-cw-DPB7YFuz.js → refresh-cw-gYTIS5bJ.js} +1 -1
  241. package/dist/{search-C-dCgqIa.js → search-D84_Ki_a.js} +1 -1
  242. package/dist/{send-Cm2fy2zm.js → send-Cn-8_H_U.js} +1 -1
  243. package/dist/{shield-check-COgBYFDF.js → shield-check-BOoVWJtD.js} +1 -1
  244. package/dist/{smartphone-v0u_MOEV.js → smartphone-4Ej3PBw5.js} +1 -1
  245. package/dist/{socialIcons-O7PZCW2P.js → socialIcons-CzRJskEk.js} +47 -47
  246. package/dist/{sparkles-Ds0RF8Iu.js → sparkles-D3vnNe7O.js} +1 -1
  247. package/dist/style.css +1 -1
  248. package/dist/templatical-editor.js +432 -403
  249. package/dist/{text-align-start-DiavaIm6.js → text-align-start-Ci2h_Xly.js} +1 -1
  250. package/dist/{trash-DnOkfu2V.js → trash-wmi4UKvv.js} +1 -1
  251. package/dist/{triangle-alert-DGLAyXnh.js → triangle-alert-DJ0r2wmQ.js} +1 -1
  252. package/dist/{upload-BBDme2cy.js → upload-XMde-TXf.js} +1 -1
  253. package/dist/{useEditorCore-dcdHB_7H.js → useEditorCore-Dhit8Ygg.js} +894 -882
  254. package/dist/{useLogicTag-D9pvgxQR.js → useLogicTag-BaH8gey0.js} +1 -1
  255. package/dist/{useMergeTag-BaVFPdlq.js → useMergeTag-Cyad1yBE.js} +1 -1
  256. package/dist/{usePopoverPosition-DH7z3Ghm.js → usePopoverPosition-BYmd-lhR.js} +24 -11
  257. package/dist/{useScrollToBlock-Dj4v3rxr.js → useScrollToBlock-B4F7KCrf.js} +1 -1
  258. package/dist/{x-3BHV3Q6K.js → x-BWrtpVl-.js} +1 -1
  259. package/package.json +10 -10
  260. package/dist/cdn/chunks/AiChatSidebar-mKImUXi6.js.map +0 -1
  261. package/dist/cdn/chunks/AiFeatureMenu-Cx3qdStQ.js.map +0 -1
  262. package/dist/cdn/chunks/BlockIssueBadge-DS1pUf5g.js.map +0 -1
  263. package/dist/cdn/chunks/BlockPreviewCanvas-D31TNib3.js.map +0 -1
  264. package/dist/cdn/chunks/CloudHeaderExtras-0zdlKiq7.js.map +0 -1
  265. package/dist/cdn/chunks/CloudPanels-DPh71yOO.js.map +0 -1
  266. package/dist/cdn/chunks/CollaboratorBar-lCZU8qkg.js.map +0 -1
  267. package/dist/cdn/chunks/CommentsPanel-BtAGZfF6.js.map +0 -1
  268. package/dist/cdn/chunks/CommentsSidebar-Ws07MXYj.js.map +0 -1
  269. package/dist/cdn/chunks/CountdownToolbar-Bu93WiS8.js.map +0 -1
  270. package/dist/cdn/chunks/DesignReferenceSidebar-BlSdh5B7.js.map +0 -1
  271. package/dist/cdn/chunks/IssuesPanel-CKkv9z9g.js.map +0 -1
  272. package/dist/cdn/chunks/LogicTagInsertButton-CHc1yZ9v.js.map +0 -1
  273. package/dist/cdn/chunks/MediaEditModal-Cw9MhjVz.js.map +0 -1
  274. package/dist/cdn/chunks/MediaPanels-FD_aX3H5.js.map +0 -1
  275. package/dist/cdn/chunks/MergeTagInput--qTYfCWk.js.map +0 -1
  276. package/dist/cdn/chunks/MergeTagModeToggle-CdWIGo3Q.js.map +0 -1
  277. package/dist/cdn/chunks/ParagraphEditor-w2qEZTkM.js.map +0 -1
  278. package/dist/cdn/chunks/RestoreVersionDialog-cnWVN3nX.js.map +0 -1
  279. package/dist/cdn/chunks/RichTextEditorContent-Fzuu9pLP.js.map +0 -1
  280. package/dist/cdn/chunks/SaveBlockDialog-jxQtKnVs.js.map +0 -1
  281. package/dist/cdn/chunks/SavedBlocksBrowserModal-DpXWf4Pi.js.map +0 -1
  282. package/dist/cdn/chunks/SavedBlocksPanels-B-ASmf1P.js.map +0 -1
  283. package/dist/cdn/chunks/SavedBlocksPickBar-CEFIQ8Nd.js.map +0 -1
  284. package/dist/cdn/chunks/TemplateScoringPanel-d_Ppowsq.js.map +0 -1
  285. package/dist/cdn/chunks/TemplateSettings-Dr5OJ0Gi.js.map +0 -1
  286. package/dist/cdn/chunks/TestEmailModal-CrjzVw8e.js.map +0 -1
  287. package/dist/cdn/chunks/TestEmailPanel-k9vdulTu.js.map +0 -1
  288. package/dist/cdn/chunks/TitleEditor-laILWfKh.js.map +0 -1
  289. package/dist/cdn/chunks/ToggleSwitch-0dGCYnRY.js.map +0 -1
  290. package/dist/cdn/chunks/Toolbar-BsiHW9gY.js.map +0 -1
  291. package/dist/cdn/chunks/TplModal-D8DoPbFa.js.map +0 -1
  292. package/dist/cdn/chunks/VersionHistoryMenu-B3-hNu9c.js.map +0 -1
  293. package/dist/cdn/chunks/VersionHistoryPanels-zw1AtzGN.js.map +0 -1
  294. package/dist/cdn/chunks/VersionPreviewBanner-PzVQSBJE.js.map +0 -1
  295. package/dist/cdn/chunks/WrapperBlock-CpRvfAV0.js.map +0 -1
  296. package/dist/cdn/chunks/blockTypeIcons-raBjStuv.js +0 -21
  297. package/dist/cdn/chunks/blockTypeIcons-raBjStuv.js.map +0 -1
  298. package/dist/cdn/chunks/ca-Ckgw9yd0.js.map +0 -1
  299. package/dist/cdn/chunks/cloud-CIT4yPp4.js.map +0 -1
  300. package/dist/cdn/chunks/createCloudRuntime-COUxbPvd.js.map +0 -1
  301. package/dist/cdn/chunks/de-D4dweQw8.js.map +0 -1
  302. package/dist/cdn/chunks/editor-modal-CKu8HhiB.js.map +0 -1
  303. package/dist/cdn/chunks/en-DqzAdO8F.js +0 -2
  304. package/dist/cdn/chunks/en-VE7R7NyL.js.map +0 -1
  305. package/dist/cdn/chunks/es-B9OhP8H3.js.map +0 -1
  306. package/dist/cdn/chunks/extensions-CafoGF65.js.map +0 -1
  307. package/dist/cdn/chunks/fr-wrXhIi00.js.map +0 -1
  308. package/dist/cdn/chunks/icons-BKkJ-5xF.js.map +0 -1
  309. package/dist/cdn/chunks/ja-fKnVWXHC.js.map +0 -1
  310. package/dist/cdn/chunks/nl-DeFatKJe.js.map +0 -1
  311. package/dist/cdn/chunks/preRenderCustomBlocks-Dpj-_cOj.js.map +0 -1
  312. package/dist/cdn/chunks/pt-BR-Bh1J8ey6.js.map +0 -1
  313. package/dist/cdn/chunks/socialIcons-BvYNMn1G.js.map +0 -1
  314. package/dist/cdn/chunks/src-Cnc5E71L.js.map +0 -1
  315. package/dist/cdn/chunks/src-DveVYoWS.js.map +0 -1
  316. package/dist/cdn/chunks/src-L6HEdwFn.js.map +0 -1
  317. package/dist/cdn/chunks/tiptap-DhLuKyDc.js.map +0 -1
  318. package/dist/cdn/chunks/useEditorCore-DZmtKwJh.js.map +0 -1
  319. package/dist/cdn/chunks/useLogicTag-DF7-l66G.js.map +0 -1
  320. package/dist/cdn/chunks/useMergeTag-DbIHw4NG.js.map +0 -1
  321. package/dist/cdn/chunks/usePopoverPosition-BJRvAb-h.js.map +0 -1
  322. package/dist/en-1tgLzB8q.js +0 -2
@@ -1,17 +1,17 @@
1
- import { $ as e, G as t, Q as n, S as r, X as i, Z as a, at as o, b as s, ct as c, et as l, ft as u, lt as d, nt as f, ot as p, pt as m, rt as h, st as g, tt as _, ut as v, v as y, x as ee, y as b } from "./src-DveVYoWS.js";
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-BR3I3gOW.js";
2
2
  //#endregion
3
3
  //#region ../renderer/src/render-context.ts
4
- var x = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
4
+ var C = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
5
5
  name: "@templatical/renderer",
6
6
  description: "Render Templatical email templates to MJML",
7
- version: "0.41.0",
7
+ version: "0.42.1",
8
8
  bugs: "https://github.com/templatical/sdk/issues",
9
9
  dependencies: { "@templatical/types": "workspace:*" },
10
10
  devDependencies: {
11
11
  "@resvg/resvg-js": "^2.6.2",
12
12
  mjml: "^5.4.1",
13
13
  typescript: "^6.0.3",
14
- vitest: "^5.0.1"
14
+ vitest: "^5.0.2"
15
15
  },
16
16
  exports: { ".": {
17
17
  types: "./dist/index.d.ts",
@@ -42,7 +42,7 @@ var x = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
42
42
  },
43
43
  type: "module",
44
44
  types: "./dist/index.d.ts"
45
- }.version}/assets/social`, S = {
45
+ }.version}/assets/social`, te = {
46
46
  arial: "Arial, sans-serif",
47
47
  helvetica: "Helvetica, sans-serif",
48
48
  georgia: "Georgia, serif",
@@ -51,7 +51,7 @@ var x = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
51
51
  "trebuchet ms": "'Trebuchet MS', sans-serif",
52
52
  "courier new": "'Courier New', monospace",
53
53
  tahoma: "Tahoma, sans-serif"
54
- }, C = class e {
54
+ }, w = class e {
55
55
  containerWidth;
56
56
  customFonts;
57
57
  defaultFallbackFont;
@@ -60,7 +60,7 @@ var x = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
60
60
  socialIconsBaseUrl;
61
61
  blockRenderers;
62
62
  contentDirection;
63
- constructor(e, t, n, r, i = /* @__PURE__ */ new Map(), a = x, o = {}, s = "ltr") {
63
+ constructor(e, t, n, r, i = /* @__PURE__ */ new Map(), a = C, o = {}, s = "ltr") {
64
64
  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
65
  }
66
66
  withContainerWidth(t) {
@@ -71,20 +71,20 @@ var x = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
71
71
  let e = t.fallback ?? this.defaultFallbackFont;
72
72
  return `'${t.name}', ${e}`;
73
73
  }
74
- return S[e.toLowerCase()] || e;
74
+ return te[e.toLowerCase()] || e;
75
75
  }
76
76
  };
77
77
  //#endregion
78
78
  //#region ../renderer/src/visibility.ts
79
- function w(e) {
79
+ function T(e) {
80
80
  let t = e.visibility;
81
81
  return t ? !t.desktop && !t.mobile : !1;
82
82
  }
83
- function T(e, t = []) {
84
- let n = [E(e), ...t].filter((e) => e !== "").join(" ");
83
+ function E(e, t = []) {
84
+ let n = [D(e), ...t].filter((e) => e !== "").join(" ");
85
85
  return n === "" ? "" : ` css-class="${n}"`;
86
86
  }
87
- function E(e) {
87
+ function D(e) {
88
88
  let t = e.visibility;
89
89
  if (!t) return "";
90
90
  let n = [];
@@ -92,35 +92,35 @@ function E(e) {
92
92
  }
93
93
  //#endregion
94
94
  //#region ../renderer/src/unrenderable.ts
95
- var D = "templatical:unrenderable-block";
96
- function O(e) {
95
+ var O = "templatical:unrenderable-block";
96
+ function k(e) {
97
97
  return e.replace(/[<>]/g, "").replace(/-{2,}/g, "-");
98
98
  }
99
- function k(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><!-- ${D} type="${O(e.type)}" id="${O(e.id)}" --></mj-raw>`;
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>`;
101
101
  }
102
102
  //#endregion
103
103
  //#region ../renderer/src/escape.ts
104
- var A = {
104
+ var j = {
105
105
  "&": "&amp;",
106
106
  "<": "&lt;",
107
107
  ">": "&gt;",
108
108
  "\"": "&quot;",
109
109
  "'": "&#039;"
110
- }, j = /[&<>"']/g;
111
- function M(e) {
112
- return e === "" ? "" : e.replace(j, (e) => A[e] ?? e);
113
- }
110
+ }, M = /[&<>"']/g;
114
111
  function N(e) {
115
- return e === "" ? "" : e.replace(j, (e) => A[e] ?? e);
112
+ return e === "" ? "" : e.replace(M, (e) => j[e] ?? e);
116
113
  }
117
114
  function P(e) {
118
- return e === "" ? "" : N(e).replace(/[;{}\r\n]/g, "");
115
+ return e === "" ? "" : e.replace(M, (e) => j[e] ?? e);
119
116
  }
120
117
  function F(e) {
121
- return e === "" ? "" : te(e, (e) => I(e, "data-merge-tag") ?? I(e, "data-logic-merge-tag"));
118
+ return e === "" ? "" : P(e).replace(/[;{}\r\n]/g, "");
122
119
  }
123
- function te(e, t) {
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
124
  let n = "", r = 0;
125
125
  for (; r < e.length;) {
126
126
  let i = e.indexOf("<span", r);
@@ -133,7 +133,7 @@ function te(e, t) {
133
133
  n += e.substring(r, i + 5), r = i + 5;
134
134
  continue;
135
135
  }
136
- let o = y(e, i + 5);
136
+ let o = b(e, i + 5);
137
137
  if (o === -1) {
138
138
  n += e.substring(r);
139
139
  break;
@@ -152,31 +152,38 @@ function te(e, t) {
152
152
  }
153
153
  return n;
154
154
  }
155
- function I(e, t) {
156
- return b(e, t);
155
+ function L(e, t) {
156
+ return S(e, t);
157
157
  }
158
158
  //#endregion
159
159
  //#region ../renderer/src/padding.ts
160
- function L(e) {
160
+ function R(e) {
161
161
  return `${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`;
162
162
  }
163
163
  //#endregion
164
164
  //#region ../renderer/src/utils.ts
165
- function R(e, t) {
165
+ function z(e, t) {
166
166
  return e ? ` ${t === "native" ? "background-color" : "container-background-color"}="${e}"` : "";
167
167
  }
168
- function z(e) {
168
+ function B(e) {
169
169
  return typeof e != "number" || !Number.isFinite(e) || e <= 0 ? "" : ` height="${e}px"`;
170
170
  }
171
+ function V(e) {
172
+ return Object.entries(o(e)).map(([e, t]) => ` ${e}="${F(t)}"`).join("");
173
+ }
174
+ function H(e) {
175
+ let t = x(e);
176
+ return t === null ? "" : ` border-radius="${t}"`;
177
+ }
171
178
  //#endregion
172
179
  //#region ../renderer/src/rich-text.ts
173
- var B = "tpl-rich-text";
174
- function V(e) {
175
- return `${B}-${e}`;
180
+ var U = "tpl-rich-text";
181
+ function W(e) {
182
+ return `${U}-${e}`;
176
183
  }
177
- function ne(e, t = "ltr") {
178
- let n = m, r = `.${B}`, i = [...new Set(e)].sort((e, t) => e - t).flatMap((e) => {
179
- let t = `.${V(e)}`;
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)}`;
180
187
  return [`${t} p { margin: 0 0 ${e}px; }`, `${t} p:last-child { margin-bottom: 0; }`];
181
188
  }), a = t === "rtl" ? "padding-right" : "padding-left";
182
189
  return [
@@ -185,41 +192,41 @@ function ne(e, t = "ltr") {
185
192
  `${r} li { margin: ${n.listItemMarginY}px 0; }`
186
193
  ].join("\n ");
187
194
  }
188
- function H(e) {
189
- return e ?? m.paragraphGap;
195
+ function G(e) {
196
+ return e ?? d.paragraphGap;
190
197
  }
191
- function re(e) {
192
- let t = [m.paragraphGap], n = (e) => {
193
- if (e.type === "paragraph" && t.push(H(e.paragraphSpacing)), h(e)) for (let t of e.children) for (let e of t) n(e);
194
- else if (v(e)) for (let t of e.children) n(t);
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
202
  };
196
203
  for (let t of e) n(t);
197
204
  return t;
198
205
  }
199
206
  //#endregion
200
207
  //#region ../renderer/src/renderers/title.ts
201
- function ie(e, t) {
202
- if (w(e)) return "";
203
- let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = ae(F(e.content)), a = u[e.level] ?? u[2], o = e.color ? `\n color="${N(e.color)}"` : "", s = e.textAlign, c = oe(e.fontFamily, t), l = T(e, [B, V(H(void 0))]), d = `h${u[e.level] ? e.level : 2}`;
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}`;
204
211
  return `<mj-text
205
212
  font-size="${a}px"${o}
206
213
  align="${s}"
207
214
  line-height="1.3"
208
215
  padding="${n}"${r}${c}${l}
209
- ><${d} style="margin:0;font-size:inherit;color:inherit;line-height:inherit">${i}</${d}></mj-text>`;
216
+ ><${u} style="margin:0;font-size:inherit;color:inherit;line-height:inherit">${i}</${u}></mj-text>`;
210
217
  }
211
- function ae(e) {
218
+ function oe(e) {
212
219
  let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
213
220
  return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
214
221
  }
215
- function oe(e, t) {
222
+ function se(e, t) {
216
223
  return e ? ` font-family="${t.resolveFontFamily(e)}"` : "";
217
224
  }
218
225
  //#endregion
219
226
  //#region ../renderer/src/renderers/paragraph.ts
220
- function se(e, t) {
221
- if (w(e) || e.content.replace(/<\/?p\b[^<>]*>/gi, "").trim() === "") return "";
222
- let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = F(e.content), a = T(e, [B, V(H(e.paragraphSpacing))]);
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))]);
223
230
  return `<mj-text
224
231
  line-height="1.5"${t.contentDirection === "rtl" ? "\n align=\"right\"" : ""}
225
232
  padding="${n}"${r}${a}
@@ -227,77 +234,83 @@ function se(e, t) {
227
234
  }
228
235
  //#endregion
229
236
  //#region ../renderer/src/renderers/image.ts
230
- function ce(e, t) {
231
- if (w(e) || e.src === "") return "";
232
- 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 = e.borderRadius && e.borderRadius > 0 ? ` border-radius="${e.borderRadius}px"` : "", c = "";
233
- e.linkUrl && (c = ` href="${N(e.linkUrl)}"`, e.linkOpenInNewTab && (c += " target=\"_blank\" rel=\"noopener\""));
234
- let l = N(e.src), u = e.decorative === !0;
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;
235
242
  return `<mj-image
236
- src="${l}"
237
- alt="${u ? "" : N(e.alt)}"
243
+ src="${u}"
244
+ alt="${d ? "" : P(e.alt)}"
238
245
  width="${i}"${a}
239
246
  align="${e.align}"
240
- padding="${n}"${r}${s}${c}${o}${u ? " role=\"presentation\"" : ""}
247
+ padding="${n}"${r}${c}${s}${l}${o}${d ? " role=\"presentation\"" : ""}
241
248
  />`;
242
249
  }
243
250
  //#endregion
244
251
  //#region ../renderer/src/renderers/button.ts
245
- function le(e, t) {
246
- if (w(e)) return "";
247
- 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 = N(e.backgroundColor), c = N(e.textColor), l = e.fontSize, u = e.borderRadius, d = M(e.text), f = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", p = U(e.fontFamily, t), m = W(e.width), h = T(e);
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);
248
255
  return `<mj-button${o}${f}
249
256
  background-color="${s}"
250
257
  color="${c}"
251
258
  font-size="${l}px"
252
259
  font-weight="bold"
253
- border-radius="${u}px"
260
+ border-radius="${u}"${V(e.border)}
254
261
  inner-padding="${i}"
255
262
  align="${e.align ?? "center"}"
256
263
  padding="${n}"${r}${p}${m}${h}
257
264
  >${d}</mj-button>`;
258
265
  }
259
- function U(e, t) {
266
+ function de(e) {
267
+ return e.trim() === "" ? "transparent" : P(e);
268
+ }
269
+ function fe(e, t) {
260
270
  return e ? ` font-family="${t.resolveFontFamily(e)}"` : "";
261
271
  }
262
- function W(e) {
272
+ function pe(e) {
273
+ return typeof e == "number" ? `${e}px` : x(e) ?? "0px";
274
+ }
275
+ function me(e) {
263
276
  return e === void 0 ? "" : ` width="${e === "full" ? "100%" : `${e}px`}"`;
264
277
  }
265
278
  //#endregion
266
279
  //#region ../renderer/src/renderers/divider.ts
267
- function ue(e, t) {
268
- if (w(e)) return "";
269
- let n = L(e.styles.padding), r = e.styles.backgroundColor ? ` container-background-color="${N(e.styles.backgroundColor)}"` : "", i = e.width === "full" ? "100%" : e.width + "px";
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%" : e.width + "px";
270
283
  return `<mj-divider
271
284
  border-width="${e.thickness}px"
272
285
  border-style="${e.lineStyle}"
273
- border-color="${N(e.color)}"
286
+ border-color="${P(e.color)}"
274
287
  width="${i}"
275
- padding="${n}"${r}${T(e)}
288
+ padding="${n}"${r}${E(e)}
276
289
  />`;
277
290
  }
278
291
  //#endregion
279
292
  //#region ../renderer/src/renderers/spacer.ts
280
- function de(e, t) {
281
- return w(e) ? "" : `<mj-spacer height="${e.height}px" padding="0"${e.styles.backgroundColor ? ` container-background-color="${N(e.styles.backgroundColor)}"` : ""}${T(e)} />`;
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)} />`;
282
295
  }
283
296
  //#endregion
284
297
  //#region ../renderer/src/renderers/html.ts
285
- function fe(e, t) {
286
- if (w(e) || !t.allowHtmlBlocks) return "";
298
+ function _e(e, t) {
299
+ if (T(e) || !t.allowHtmlBlocks) return "";
287
300
  let n = e.content;
288
301
  if (n === "") return "";
289
- let r = T(e);
290
- return `<mj-text padding="${L(e.styles.padding)}"${R(e.styles.backgroundColor, "container")}${r}>
302
+ let r = E(e);
303
+ return `<mj-text padding="${R(e.styles.padding)}"${z(e.styles.backgroundColor, "container")}${r}>
291
304
  ${n}
292
305
  </mj-text>`;
293
306
  }
294
307
  //#endregion
295
308
  //#region ../renderer/src/renderers/social.ts
296
- function pe(e, t) {
297
- if (w(e)) return "";
309
+ function ve(e, t) {
310
+ if (T(e)) return "";
298
311
  let n = e.icons;
299
312
  if (n.length === 0) return "";
300
- 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 = e.spacing, u;
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;
301
314
  switch (s) {
302
315
  case "small":
303
316
  u = 24;
@@ -328,83 +341,83 @@ function pe(e, t) {
328
341
  padding="${r}"${i}${a}
329
342
  >
330
343
  ${n.map((e, n) => {
331
- let r = e.platform, i = N(e.url), a = `${t.socialIconsBaseUrl}/${c}/${r}.png`, o = n === f - 1 ? 0 : l;
344
+ let r = e.platform, i = P(e.url), a = `${t.socialIconsBaseUrl}/${c}/${r}.png`, o = n === f - 1 ? 0 : l;
332
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>`;
333
346
  }).join("\n")}
334
347
  </mj-social>`;
335
348
  }
336
349
  //#endregion
337
350
  //#region ../renderer/src/renderers/menu.ts
338
- function me(e, t) {
339
- if (w(e) || e.items.length === 0) return "";
340
- let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = T(e), a = _e(e.fontFamily, t), o = e.textAlign;
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;
341
354
  return `<mj-text
342
- font-size="${e.fontSize}px"${e.color ? `\n color="${N(e.color)}"` : ""}
355
+ font-size="${e.fontSize}px"${e.color ? `\n color="${P(e.color)}"` : ""}
343
356
  align="${o}"
344
357
  line-height="1.5"
345
358
  padding="${n}"${r}${a}${i}
346
- >${he(e)}</mj-text>`;
359
+ >${be(e)}</mj-text>`;
347
360
  }
348
- function he(e) {
349
- let t = e.items, n = M(e.separator), r = P(e.separatorColor), i = e.spacing, a = e.linkColor ?? e.color, o = [], s = t.length;
350
- for (let e = 0; e < s; e++) o.push(ge(t[e], a)), e < s - 1 && o.push(`<span style="color: ${r}; padding: 0 ${i}px;">${n}</span>`);
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>`);
351
364
  return o.join("");
352
365
  }
353
- function ge(e, t) {
354
- let n = M(e.text), r = N(e.url), i = e.color ?? t, a = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", o = ["text-decoration: none"];
355
- 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>`;
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>`;
356
369
  }
357
- function _e(e, t) {
370
+ function Se(e, t) {
358
371
  return e ? ` font-family="${t.resolveFontFamily(e)}"` : "";
359
372
  }
360
373
  //#endregion
361
374
  //#region ../renderer/src/renderers/table.ts
362
- function ve(e, t) {
363
- if (w(e) || e.rows.length === 0) return "";
364
- let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = T(e), a = Se(e.fontFamily, t);
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);
365
378
  return `<mj-text
366
- font-size="${e.fontSize}px"${e.color ? `\n color="${N(e.color)}"` : ""}
379
+ font-size="${e.fontSize}px"${e.color ? `\n color="${P(e.color)}"` : ""}
367
380
  align="${e.textAlign}"
368
381
  line-height="1.5"
369
382
  padding="${n}"${r}${a}${i}
370
- >${ye(e)}</mj-text>`;
383
+ >${we(e)}</mj-text>`;
371
384
  }
372
- function ye(e) {
373
- let t = P(e.borderColor), n = e.borderWidth, r = "";
385
+ function we(e) {
386
+ let t = F(e.borderColor), n = e.borderWidth, r = "";
374
387
  for (let i = 0; i < e.rows.length; i++) {
375
388
  let a = e.rows[i];
376
- r += be(a, e, e.hasHeaderRow && i === 0, t, n);
389
+ r += Te(a, e, e.hasHeaderRow && i === 0, t, n);
377
390
  }
378
391
  return `<table style="width: 100%; border-collapse: collapse;">${r}</table>`;
379
392
  }
380
- function be(e, t, n, r, i) {
393
+ function Te(e, t, n, r, i) {
381
394
  let a = "";
382
- for (let o of e.cells) a += xe(o, t, n, r, i);
395
+ for (let o of e.cells) a += Ee(o, t, n, r, i);
383
396
  return `<tr>${a}</tr>`;
384
397
  }
385
- function xe(e, t, n, r, i) {
398
+ function Ee(e, t, n, r, i) {
386
399
  let a = t.cellPadding, o = [`border: ${i}px solid ${r}`, `padding: ${a}px`];
387
- n && (o.push("font-weight: bold"), t.headerBackgroundColor && o.push(`background-color: ${P(t.headerBackgroundColor)}`));
388
- let s = o.join("; "), c = M(F(e.content)), l = n ? "th" : "td";
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";
389
402
  return `<${l} style="${s}">${c}</${l}>`;
390
403
  }
391
- function Se(e, t) {
404
+ function De(e, t) {
392
405
  return e ? ` font-family="${t.resolveFontFamily(e)}"` : "";
393
406
  }
394
407
  //#endregion
395
408
  //#region ../renderer/src/renderers/custom.ts
396
- function Ce(e, t) {
397
- if (w(e)) return "";
409
+ function Oe(e, t) {
410
+ if (T(e)) return "";
398
411
  let n = t.customBlockHtml.get(e.id) ?? e.renderedHtml;
399
412
  if (!n || n === "") return "";
400
- let r = T(e);
401
- return `<mj-text padding="${L(e.styles.padding)}"${R(e.styles.backgroundColor, "container")}${r}>
413
+ let r = E(e);
414
+ return `<mj-text padding="${R(e.styles.padding)}"${z(e.styles.backgroundColor, "container")}${r}>
402
415
  ${n}
403
416
  </mj-text>`;
404
417
  }
405
418
  //#endregion
406
419
  //#region ../renderer/src/columns.ts
407
- function G(e) {
420
+ function K(e) {
408
421
  switch (e) {
409
422
  case "2": return ["50%", "50%"];
410
423
  case "3": return [
@@ -417,7 +430,7 @@ function G(e) {
417
430
  default: return ["100%"];
418
431
  }
419
432
  }
420
- function K(e, t) {
433
+ function q(e, t) {
421
434
  switch (e) {
422
435
  case "2": return [t * .5, t * .5];
423
436
  case "3": return [
@@ -432,7 +445,7 @@ function K(e, t) {
432
445
  }
433
446
  //#endregion
434
447
  //#region ../renderer/src/display-condition.ts
435
- function q(e, t) {
448
+ function J(e, t) {
436
449
  if (t === "") return "";
437
450
  let n = e.displayCondition;
438
451
  return n ? `<mj-raw>${n.before}</mj-raw>
@@ -441,28 +454,28 @@ function q(e, t) {
441
454
  }
442
455
  //#endregion
443
456
  //#region ../renderer/src/renderers/section.ts
444
- function we(e, t, n) {
445
- if (w(e)) return "";
446
- let r = e.columns, i = G(r), a = K(r, t.containerWidth), o = L(e.styles.padding), s = R(e.styles.backgroundColor, "native"), c = T(e), l = e.borderRadius && e.borderRadius > 0 ? ` border-radius="${e.borderRadius}px"` : "", u = e.children, d = [];
447
- for (let e = 0; e < u.length; e++) {
448
- let r = u[e], o = i[e] ?? "100%", s = Math.floor(a[e] ?? t.containerWidth), c = Te(r, t.allowHtmlBlocks).filter((e) => !h(e)), l = t.withContainerWidth(s), f = c.map((e) => q(e, n(e, l))).filter((e) => e !== "").join("\n");
449
- d.push(`<mj-column width="${o}">
450
- ${f === "" ? "<mj-text>&nbsp;</mj-text>" : f}
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 = e.children, f = [];
460
+ for (let e = 0; e < d.length; e++) {
461
+ let r = d[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");
462
+ f.push(`<mj-column width="${o}">
463
+ ${u === "" ? "<mj-text>&nbsp;</mj-text>" : u}
451
464
  </mj-column>`);
452
465
  }
453
- let f = d.join("\n"), p = t.contentDirection === "rtl" ? " direction=\"rtl\"" : "";
454
- return `<mj-section${s} padding="${o}"${l}${c}${p}>
455
- ${e.stackOnMobile === !1 && d.length > 1 ? `<mj-group${p}>
456
- ${f}
457
- </mj-group>` : f}
466
+ let p = f.join("\n"), m = t.contentDirection === "rtl" ? " direction=\"rtl\"" : "";
467
+ return `<mj-section${s} padding="${o}"${u}${l}${c}${m}>
468
+ ${e.stackOnMobile === !1 && f.length > 1 ? `<mj-group${m}>
469
+ ${p}
470
+ </mj-group>` : p}
458
471
  </mj-section>`;
459
472
  }
460
- function Te(e, t) {
473
+ function Ae(e, t) {
461
474
  return t ? e : e.filter((e) => e.type !== "html");
462
475
  }
463
476
  //#endregion
464
477
  //#region ../renderer/src/renderers/video.ts
465
- function Ee(e, t) {
478
+ function je(e, t) {
466
479
  if (t) return t;
467
480
  if (!e) return null;
468
481
  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})/]) {
@@ -472,43 +485,43 @@ function Ee(e, t) {
472
485
  let n = e.match(/vimeo\.com\/(?:video\/)?(\d+)/);
473
486
  return n ? `https://vumbnail.com/${n[1]}.jpg` : null;
474
487
  }
475
- function De(e, t) {
476
- if (w(e)) return "";
477
- let n = Ee(e.url, e.thumbnailUrl);
488
+ function Me(e, t) {
489
+ if (T(e)) return "";
490
+ let n = je(e.url, e.thumbnailUrl);
478
491
  if (!n) return "";
479
- 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);
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);
480
493
  return `<mj-image
481
- src="${N(n)}"
482
- alt="${N(e.alt)}"
494
+ src="${P(n)}"
495
+ alt="${P(e.alt)}"
483
496
  width="${a}"${o}
484
497
  align="${e.align}"
485
498
  padding="${r}"
486
- href="${N(e.url)}"
499
+ href="${P(e.url)}"
487
500
  target="_blank"
488
501
  rel="noopener"${i}${s}
489
502
  />`;
490
503
  }
491
504
  //#endregion
492
505
  //#region ../renderer/src/renderers/index.ts
493
- function J(t, r) {
494
- let s = r.blockRenderers[t.type];
495
- return s ? s(t, r) : h(t) ? we(t, r, J) : c(t) ? ie(t, r) : f(t) ? se(t, r) : l(t) ? ce(t, r) : i(t) ? le(t, r) : n(t) ? ue(t, r) : p(t) ? de(t, r) : e(t) ? fe(t, r) : o(t) ? pe(t, r) : _(t) ? me(t, r) : g(t) ? ve(t, r) : d(t) ? De(t, r) : a(t) ? Ce(t, r) : w(t) ? "" : k(t);
506
+ 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);
496
509
  }
497
510
  //#endregion
498
511
  //#region ../renderer/src/index.ts
499
- async function Oe(e, n) {
500
- let i = n?.layout ? s(n.layout, e) : (ee(e), r(e), e), a = n?.customFonts ?? [], o = n?.defaultFallbackFont ?? "Arial, sans-serif", c = n?.allowHtmlBlocks ?? !0, l = Z(n?.socialIconsBaseUrl ?? x), u = await Me(i, n?.renderCustomBlock), d = Ne(i, n?.getCustomBlockStylesheet), f = t(i.settings), p = new C(i.settings.width, a, o, c, u, l, n?.blockRenderers ?? {}, f), m = Q(i.blocks, c), h = p.resolveFontFamily(i.settings.fontFamily), g = i.settings.backgroundColor, _ = i.settings.textColor ? ` color="${N(i.settings.textColor)}"` : "", v = i.settings.linkColor ? P(i.settings.linkColor) : "inherit", y = i.settings.linkUnderline ? "underline" : "none", b = m.map((e) => Y(e, p)).filter((e) => e !== "").join("\n"), S = je(a), w = Ae(i.settings.preheaderText);
501
- return `<mjml lang="${N(i.settings.locale)}" dir="${N(f)}">
502
- <mj-head>${w}
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}
503
516
  <mj-attributes>
504
517
  <mj-all font-family="${h}" />
505
518
  <mj-text font-size="14px"${_} />
506
519
  <mj-section padding="0" />
507
520
  <mj-column padding="0" />
508
521
  <mj-image fluid-on-mobile="true" />
509
- </mj-attributes>${S}
522
+ </mj-attributes>${x}
510
523
  <mj-style inline="inline">
511
- ${ne(re(m), f)}
524
+ ${re(ie(m), f)}
512
525
  </mj-style>
513
526
  <mj-style>
514
527
  a { color: ${v}; text-decoration: ${y}; }
@@ -518,52 +531,52 @@ async function Oe(e, n) {
518
531
  @media only screen and (min-width: 481px) {
519
532
  .tpl-hide-desktop { display: none !important; mso-hide: all !important; }
520
533
  }
521
- </mj-style>${Pe(d)}
534
+ </mj-style>${Be(d)}
522
535
  </mj-head>
523
536
  <mj-body width="${p.containerWidth}px" background-color="${g}">
524
537
  ${b}
525
538
  </mj-body>
526
539
  </mjml>`;
527
540
  }
528
- function Y(e, t) {
529
- if (v(e)) return q(e, X(Q(e.children, t.allowHtmlBlocks).map((e) => Y(e, t)).filter((e) => e !== "").join("\n"), {
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"), {
530
543
  backgroundColor: e.styles.backgroundColor,
531
544
  padding: e.styles.padding,
532
545
  borderRadius: e.borderRadius
533
546
  }));
534
- if (h(e)) {
535
- let n = J(e, t);
536
- return q(e, e.wrapper && n !== "" ? X(n, e.wrapper) : n);
547
+ if (g(e)) {
548
+ let n = Y(e, t);
549
+ return J(e, e.wrapper && n !== "" ? Z(n, e.wrapper) : n);
537
550
  }
538
- return q(e, ke(J(e, t), t.contentDirection));
551
+ return J(e, Pe(Y(e, t), t.contentDirection));
539
552
  }
540
- function X(e, t) {
541
- return `<mj-wrapper${R(t.backgroundColor, "native")}${` padding="${t.padding ? L(t.padding) : "0"}"`}${t.borderRadius && t.borderRadius > 0 ? ` border-radius="${t.borderRadius}px"` : ""}>
553
+ function Z(e, t) {
554
+ return `<mj-wrapper${z(t.backgroundColor, "native")}${` padding="${t.padding ? R(t.padding) : "0"}"`}${H(t.borderRadius)}>
542
555
  ${e}
543
556
  </mj-wrapper>`;
544
557
  }
545
- function ke(e, t) {
558
+ function Pe(e, t) {
546
559
  return e === "" ? "" : `<mj-section${t === "rtl" ? " direction=\"rtl\"" : ""}>
547
560
  <mj-column>
548
561
  ${e}
549
562
  </mj-column>
550
563
  </mj-section>`;
551
564
  }
552
- function Z(e) {
565
+ function Fe(e) {
553
566
  return e.endsWith("/") ? e.slice(0, -1) : e;
554
567
  }
555
- function Ae(e) {
568
+ function Ie(e) {
556
569
  if (!e) return "";
557
570
  let t = e.trim();
558
- return t === "" ? "" : `\n <mj-preview>${M(t)}</mj-preview>`;
571
+ return t === "" ? "" : `\n <mj-preview>${N(t)}</mj-preview>`;
559
572
  }
560
- function je(e) {
561
- return e.length === 0 ? "" : e.map((e) => `\n <mj-font name="${N(e.name)}" href="${N(e.url)}" />`).join("");
573
+ function Le(e) {
574
+ return e.length === 0 ? "" : e.map((e) => `\n <mj-font name="${P(e.name)}" href="${P(e.url)}" />`).join("");
562
575
  }
563
576
  function Q(e, t) {
564
577
  return t ? e : e.filter((e) => e.type !== "html");
565
578
  }
566
- async function Me(e, t) {
579
+ async function Re(e, t) {
567
580
  let n = /* @__PURE__ */ new Map();
568
581
  if (!t) return n;
569
582
  let r = [];
@@ -578,11 +591,11 @@ function $(e, t) {
578
591
  t.push(n);
579
592
  continue;
580
593
  }
581
- if (h(n)) for (let e of n.children) $(e, t);
582
- else v(n) && $(n.children, t);
594
+ if (g(n)) for (let e of n.children) $(e, t);
595
+ else y(n) && $(n.children, t);
583
596
  }
584
597
  }
585
- function Ne(e, t) {
598
+ function ze(e, t) {
586
599
  if (!t) return [];
587
600
  let n = [];
588
601
  if ($(e.blocks, n), n.length === 0) return [];
@@ -597,10 +610,10 @@ function Ne(e, t) {
597
610
  }
598
611
  return a;
599
612
  }
600
- function Pe(e) {
613
+ function Be(e) {
601
614
  return e.length === 0 ? "" : e.map((e) => `\n <mj-style>\n${e}\n </mj-style>`).join("");
602
615
  }
603
616
  //#endregion
604
- export { x as DEFAULT_SOCIAL_ICONS_BASE_URL, B 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, G as getWidthPercentages, K as getWidthPixels, w as isHiddenOnAll, J as renderBlock, Oe as renderToMjml, k as renderUnrenderableBlock, H as resolveParagraphGap, V as richTextGapClass, L as toPaddingString };
617
+ 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 };
605
618
 
606
- //# sourceMappingURL=src-L6HEdwFn.js.map
619
+ //# sourceMappingURL=src-nhIF5-mf.js.map