@templatical/editor 0.52.0 → 0.53.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 (400) hide show
  1. package/README.md +1 -1
  2. package/dist/AiAltTextPopover-NMJqQKvD.js +106 -0
  3. package/dist/{AiAltTextReview-DE8t8Rud.js → AiAltTextReview-Ci4zHwRc.js} +68 -66
  4. package/dist/{AiChatPanel-7ftS7d40.js → AiChatPanel-DdhtfsmO.js} +223 -210
  5. package/dist/{AiPanels-CxGp6klr.js → AiPanels-HBx7xoJR.js} +6 -6
  6. package/dist/{AiRewriteMenu-DNI-5CUj.js → AiRewriteMenu-DPzSekZt.js} +78 -107
  7. package/dist/BlockIssueBadge-eIXZJ9M3.js +33 -0
  8. package/dist/BlockPreviewCanvas-DO-2TP_6.js +140 -0
  9. package/dist/{CloudHeaderExtras-CsgyNNV1.js → CloudHeaderExtras-XpjJjn3o.js} +4 -4
  10. package/dist/{CloudPanels-BDV4XQ_l.js → CloudPanels-i2kZdrdP.js} +44 -44
  11. package/dist/CollaborationNotices-DANsjl7c.js +65 -0
  12. package/dist/{CollaboratorBar-EeqqWcX6.js → CollaboratorBar-CbbAA0m1.js} +24 -24
  13. package/dist/CommentsPanel-CYW3LWis.js +16 -0
  14. package/dist/CommentsSidebar-CcF4ISMi.js +526 -0
  15. package/dist/{CountdownBlock-BT3ZTH1F.js → CountdownBlock-BMezkFbJ.js} +21 -21
  16. package/dist/CountdownToolbar-D3Lv74kU.js +258 -0
  17. package/dist/{IssuesPanel-BHFQ3wrP.js → IssuesPanel-BMAG9042.js} +141 -129
  18. package/dist/LanguageMenu-FlP_Jbup.js +403 -0
  19. package/dist/{LoadingTrack-DZA5AoP9.js → LoadingTrack-BG8cg9xi.js} +2 -2
  20. package/dist/LocaleNotices-DAnVszWu.js +46 -0
  21. package/dist/{LogicTagInsertButton-CSD9cfJB.js → LogicTagInsertButton-BjYs-UQX.js} +439 -430
  22. package/dist/{MediaEditModal-DQl5w44r.js → MediaEditModal-LnG-cF_S.js} +160 -160
  23. package/dist/{MediaPanels-BFWYuJot.js → MediaPanels-C2r5fiFo.js} +4 -4
  24. package/dist/{cdn/chunks/MergeTagInput-CFu9VXPS.js → MergeTagInput-BsnogCeY.js} +32 -34
  25. package/dist/{MergeTagModeToggle-DvD0ne7N.js → MergeTagModeToggle-DiufIQ-_.js} +49 -49
  26. package/dist/MergeTagTextarea-BweI-Xsi.js +126 -0
  27. package/dist/{ParagraphEditor-D-nqs82g.js → ParagraphEditor-qgBp5yIB.js} +286 -257
  28. package/dist/{RestoreVersionDialog-DqUPsLB9.js → RestoreVersionDialog-DdYUrFiK.js} +23 -23
  29. package/dist/{RichTextEditorContent-Xq9D0Zs3.js → RichTextEditorContent-C5MAzx3E.js} +54 -53
  30. package/dist/{SaveBlockDialog-DAPv70p4.js → SaveBlockDialog-eK6fjtTy.js} +86 -86
  31. package/dist/SavedBlocksBrowserModal-D2QHd2Yp.js +359 -0
  32. package/dist/{SavedBlocksPanels-ChbL9v9x.js → SavedBlocksPanels-Cl61f4Mf.js} +9 -9
  33. package/dist/{SavedBlocksPickBar-hRaiLNdu.js → SavedBlocksPickBar-CXP2dkeB.js} +15 -15
  34. package/dist/TemplateSettings-BKJrdZcH.js +294 -0
  35. package/dist/TestEmailModal-DQotJg6g.js +212 -0
  36. package/dist/{TestEmailPanel-COJQa2A9.js → TestEmailPanel-CwiTzJsh.js} +4 -4
  37. package/dist/TitleEditor-CzSvsPAn.js +202 -0
  38. package/dist/ToggleSwitch-R3wCCYE6.js +43 -0
  39. package/dist/Toolbar-Cd75ci5W.js +3711 -0
  40. package/dist/{TplModal-9IndEYk5.js → TplModal-ZoXu40T9.js} +17 -17
  41. package/dist/{VersionHistoryMenu-BG5qayvg.js → VersionHistoryMenu-BvhN-Ofk.js} +39 -39
  42. package/dist/{VersionHistoryPanels-hPg7Q5-f.js → VersionHistoryPanels-DPWMnYbd.js} +5 -5
  43. package/dist/VersionPreviewBanner-CuJnasxH.js +37 -0
  44. package/dist/WrapperBlock-D4fPwO0t.js +44 -0
  45. package/dist/{blockTypeIcons-yt7SLzub.js → blockTypeIcons-BXMxu86H.js} +27 -26
  46. package/dist/bundle-stats.json +8 -8
  47. package/dist/{cdn/chunks/ca-CD-Kt1qz.js → ca-DOuIxWRv.js} +114 -2
  48. package/dist/cdn/chunks/AiAltTextPopover-ByZ0FEqI.js +107 -0
  49. package/dist/cdn/chunks/AiAltTextPopover-ByZ0FEqI.js.map +1 -0
  50. package/dist/cdn/chunks/{AiAltTextReview-BafAtBoA.js → AiAltTextReview-Dtm3A2cD.js} +71 -69
  51. package/dist/cdn/chunks/AiAltTextReview-Dtm3A2cD.js.map +1 -0
  52. package/dist/cdn/chunks/AiChatPanel-DciEt27y.js +487 -0
  53. package/dist/cdn/chunks/AiChatPanel-DciEt27y.js.map +1 -0
  54. package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js → AiPanels-BV5D1itk.js} +11 -11
  55. package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js.map → AiPanels-BV5D1itk.js.map} +1 -1
  56. package/dist/cdn/chunks/{AiRewriteMenu-4F6vwhJ5.js → AiRewriteMenu-D3jkh6Xb.js} +80 -80
  57. package/dist/cdn/chunks/AiRewriteMenu-D3jkh6Xb.js.map +1 -0
  58. package/dist/cdn/chunks/BlockIssueBadge-DyEgBZtR.js +34 -0
  59. package/dist/cdn/chunks/BlockIssueBadge-DyEgBZtR.js.map +1 -0
  60. package/dist/cdn/chunks/BlockPreviewCanvas-RQFilqXC.js +142 -0
  61. package/dist/cdn/chunks/{BlockPreviewCanvas-Ny1X_mee.js.map → BlockPreviewCanvas-RQFilqXC.js.map} +1 -1
  62. package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js → CloudHeaderExtras-BtqdN777.js} +4 -4
  63. package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js.map → CloudHeaderExtras-BtqdN777.js.map} +1 -1
  64. package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js → CloudPanels-BSJ-Z5Hw.js} +43 -43
  65. package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js.map → CloudPanels-BSJ-Z5Hw.js.map} +1 -1
  66. package/dist/cdn/chunks/CollaborationNotices-BS7xrlPE.js +67 -0
  67. package/dist/cdn/chunks/CollaborationNotices-BS7xrlPE.js.map +1 -0
  68. package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js → CollaboratorBar-Bc9914Az.js} +16 -16
  69. package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js.map → CollaboratorBar-Bc9914Az.js.map} +1 -1
  70. package/dist/cdn/chunks/CommentsPanel-DbR9phAk.js +18 -0
  71. package/dist/cdn/chunks/{CommentsPanel-CAiwilM2.js.map → CommentsPanel-DbR9phAk.js.map} +1 -1
  72. package/dist/cdn/chunks/CommentsSidebar-BD4--XP2.js +496 -0
  73. package/dist/cdn/chunks/CommentsSidebar-BD4--XP2.js.map +1 -0
  74. package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js → CountdownBlock-CjMhMhnv.js} +26 -26
  75. package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js.map → CountdownBlock-CjMhMhnv.js.map} +1 -1
  76. package/dist/cdn/chunks/CountdownToolbar-DxwYBw-d.js +260 -0
  77. package/dist/cdn/chunks/CountdownToolbar-DxwYBw-d.js.map +1 -0
  78. package/dist/cdn/chunks/{IssuesPanel-pr7_nuLI.js → IssuesPanel-CUmI4HMm.js} +132 -120
  79. package/dist/cdn/chunks/IssuesPanel-CUmI4HMm.js.map +1 -0
  80. package/dist/cdn/chunks/LanguageMenu-3ydCozQJ.js +359 -0
  81. package/dist/cdn/chunks/LanguageMenu-3ydCozQJ.js.map +1 -0
  82. package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js → LoadingTrack-DUYcDHOV.js} +2 -2
  83. package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js.map → LoadingTrack-DUYcDHOV.js.map} +1 -1
  84. package/dist/cdn/chunks/LocaleNotices-BfoH6gST.js +47 -0
  85. package/dist/cdn/chunks/LocaleNotices-BfoH6gST.js.map +1 -0
  86. package/dist/cdn/chunks/{LogicTagInsertButton-B_ldj3TO.js → LogicTagInsertButton-5Z3fFzjc.js} +465 -456
  87. package/dist/cdn/chunks/LogicTagInsertButton-5Z3fFzjc.js.map +1 -0
  88. package/dist/cdn/chunks/{MediaEditModal-CGfzcHwP.js → MediaEditModal-DDCIwr9U.js} +439 -439
  89. package/dist/cdn/chunks/MediaEditModal-DDCIwr9U.js.map +1 -0
  90. package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js → MediaPanels-Dz79oy8P.js} +5 -5
  91. package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js.map → MediaPanels-Dz79oy8P.js.map} +1 -1
  92. package/dist/cdn/chunks/MergeTagInput-CIWy-cXf.js +82 -0
  93. package/dist/cdn/chunks/{MergeTagInput-CFu9VXPS.js.map → MergeTagInput-CIWy-cXf.js.map} +1 -1
  94. package/dist/cdn/chunks/{MergeTagModeToggle-BFpK5dxg.js → MergeTagModeToggle-BrP5GR-x.js} +50 -50
  95. package/dist/cdn/chunks/MergeTagModeToggle-BrP5GR-x.js.map +1 -0
  96. package/dist/cdn/chunks/MergeTagTextarea-D3nNDlhV.js +128 -0
  97. package/dist/cdn/chunks/MergeTagTextarea-D3nNDlhV.js.map +1 -0
  98. package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js +660 -0
  99. package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js.map +1 -0
  100. package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js → RestoreVersionDialog-Crj1DBqC.js} +18 -18
  101. package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js.map → RestoreVersionDialog-Crj1DBqC.js.map} +1 -1
  102. package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js → RichTextEditorContent-rCCqFlwJ.js} +43 -43
  103. package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js.map → RichTextEditorContent-rCCqFlwJ.js.map} +1 -1
  104. package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js → SaveBlockDialog-C34RW1aM.js} +71 -71
  105. package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js.map → SaveBlockDialog-C34RW1aM.js.map} +1 -1
  106. package/dist/cdn/chunks/SavedBlocksBrowserModal-CJnwWPT-.js +356 -0
  107. package/dist/cdn/chunks/{SavedBlocksBrowserModal-B9XCjDfm.js.map → SavedBlocksBrowserModal-CJnwWPT-.js.map} +1 -1
  108. package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js → SavedBlocksPanels-CA2PqXIH.js} +9 -9
  109. package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js.map → SavedBlocksPanels-CA2PqXIH.js.map} +1 -1
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js → SavedBlocksPickBar-Dj3ortee.js} +16 -16
  111. package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js.map → SavedBlocksPickBar-Dj3ortee.js.map} +1 -1
  112. package/dist/cdn/chunks/TemplateSettings-sW0ZlDl1.js +266 -0
  113. package/dist/cdn/chunks/TemplateSettings-sW0ZlDl1.js.map +1 -0
  114. package/dist/cdn/chunks/{TestEmailModal-DcwKhFnI.js → TestEmailModal-BXeCtTjU.js} +81 -78
  115. package/dist/cdn/chunks/TestEmailModal-BXeCtTjU.js.map +1 -0
  116. package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js → TestEmailPanel-CpZcpB9D.js} +5 -5
  117. package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js.map → TestEmailPanel-CpZcpB9D.js.map} +1 -1
  118. package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.js +202 -0
  119. package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.js.map +1 -0
  120. package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js +45 -0
  121. package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js.map +1 -0
  122. package/dist/cdn/chunks/Toolbar-BJKpJ2Mg.js +3626 -0
  123. package/dist/cdn/chunks/Toolbar-BJKpJ2Mg.js.map +1 -0
  124. package/dist/cdn/chunks/{TplModal-BDyeS69p.js → TplModal-DDDUDMYC.js} +19 -19
  125. package/dist/cdn/chunks/{TplModal-BDyeS69p.js.map → TplModal-DDDUDMYC.js.map} +1 -1
  126. package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js → VersionHistoryMenu-DSElv3Sv.js} +36 -36
  127. package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js.map → VersionHistoryMenu-DSElv3Sv.js.map} +1 -1
  128. package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js → VersionHistoryPanels-H2nuik1l.js} +6 -6
  129. package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js.map → VersionHistoryPanels-H2nuik1l.js.map} +1 -1
  130. package/dist/cdn/chunks/VersionPreviewBanner-Whwxh55w.js +39 -0
  131. package/dist/cdn/chunks/VersionPreviewBanner-Whwxh55w.js.map +1 -0
  132. package/dist/cdn/chunks/WrapperBlock-jTqsuLnS.js +46 -0
  133. package/dist/cdn/chunks/WrapperBlock-jTqsuLnS.js.map +1 -0
  134. package/dist/cdn/chunks/blockTypeIcons-DMgLcuI8.js +21 -0
  135. package/dist/cdn/chunks/blockTypeIcons-DMgLcuI8.js.map +1 -0
  136. package/dist/{ca-CD-Kt1qz.js → cdn/chunks/ca-DOuIxWRv.js} +116 -0
  137. package/dist/cdn/chunks/ca-DOuIxWRv.js.map +1 -0
  138. package/dist/cdn/chunks/composables-D0UYam2P.js +3039 -0
  139. package/dist/cdn/chunks/composables-D0UYam2P.js.map +1 -0
  140. package/dist/cdn/chunks/{createCloudRuntime-D6niZ2Rc.js → createCloudRuntime-BdsclY8_.js} +85 -83
  141. package/dist/cdn/chunks/createCloudRuntime-BdsclY8_.js.map +1 -0
  142. package/dist/{de-CeFJ6wbM.js → cdn/chunks/de-DaOUfYBX.js} +116 -0
  143. package/dist/cdn/chunks/de-DaOUfYBX.js.map +1 -0
  144. package/dist/{dist-CEdyyDn7.js → cdn/chunks/dist-BzXULHvI.js} +63 -61
  145. package/dist/cdn/chunks/{dist-C2epoAwW.js.map → dist-BzXULHvI.js.map} +1 -1
  146. package/dist/{dist-BA-jTQgw.js → cdn/chunks/dist-DqGgijFI.js} +108 -109
  147. package/dist/cdn/chunks/{dist-CONcGNwy.js.map → dist-DqGgijFI.js.map} +1 -1
  148. package/dist/cdn/chunks/{draggable-B8hTTYFO.js → draggable-DepKdldn.js} +1384 -1376
  149. package/dist/cdn/chunks/draggable-DepKdldn.js.map +1 -0
  150. package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js → editor-modal-CPbgthOv.js} +986 -986
  151. package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js.map → editor-modal-CPbgthOv.js.map} +1 -1
  152. package/dist/{en-D14i5nFh.js → cdn/chunks/en-C0pHHMiR.js} +116 -0
  153. package/dist/cdn/chunks/en-C0pHHMiR.js.map +1 -0
  154. package/dist/cdn/chunks/en-IYVryJRl.js +1 -0
  155. package/dist/{es-zDacbMhs.js → cdn/chunks/es-CxyEKr6n.js} +116 -0
  156. package/dist/cdn/chunks/es-CxyEKr6n.js.map +1 -0
  157. package/dist/cdn/chunks/{extensions-ClDhn88e.js → extensions-Uh9vuFfK.js} +57 -57
  158. package/dist/cdn/chunks/{extensions-ClDhn88e.js.map → extensions-Uh9vuFfK.js.map} +1 -1
  159. package/dist/{fr-CSgYtjOd.js → cdn/chunks/fr-CYbamiI6.js} +116 -0
  160. package/dist/cdn/chunks/fr-CYbamiI6.js.map +1 -0
  161. package/dist/cdn/chunks/{icons-HCBP93Ch.js → icons-CSSMtbGK.js} +187 -144
  162. package/dist/cdn/chunks/icons-CSSMtbGK.js.map +1 -0
  163. package/dist/{ja-B7H3ID8O.js → cdn/chunks/ja-DfaIAoGI.js} +116 -0
  164. package/dist/cdn/chunks/ja-DfaIAoGI.js.map +1 -0
  165. package/dist/cdn/chunks/keys-CoQtCqNv.js +11 -0
  166. package/dist/cdn/chunks/keys-CoQtCqNv.js.map +1 -0
  167. package/dist/cdn/chunks/languageName-DEEOhDWI.js +12 -0
  168. package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +1 -0
  169. package/dist/cdn/chunks/{liquid.browser-DkLBNrft.js → liquid.browser-rubac0VA.js} +782 -746
  170. package/dist/cdn/chunks/liquid.browser-rubac0VA.js.map +1 -0
  171. package/dist/{nl-176ySmc5.js → cdn/chunks/nl-DkrB-VKZ.js} +116 -0
  172. package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +1 -0
  173. package/dist/cdn/chunks/normalizeMergeTagMarkup-oGhwVscw.js +290 -0
  174. package/dist/cdn/chunks/normalizeMergeTagMarkup-oGhwVscw.js.map +1 -0
  175. package/dist/cdn/chunks/noticeTones-D7BPu-Le.js +16 -0
  176. package/dist/cdn/chunks/noticeTones-D7BPu-Le.js.map +1 -0
  177. package/dist/cdn/chunks/plural-CyxrJXL1.js +17 -0
  178. package/dist/cdn/chunks/plural-CyxrJXL1.js.map +1 -0
  179. package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js → preRenderCustomBlocks-C8k7tw98.js} +5 -5
  180. package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js.map → preRenderCustomBlocks-C8k7tw98.js.map} +1 -1
  181. package/dist/cdn/chunks/{pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +115 -1
  182. package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +1 -0
  183. package/dist/cdn/chunks/sanitizeHtml-DYklmvgX.js +61 -0
  184. package/dist/cdn/chunks/sanitizeHtml-DYklmvgX.js.map +1 -0
  185. package/dist/cdn/chunks/socialIcons-BAiuHyJs.js +2638 -0
  186. package/dist/cdn/chunks/socialIcons-BAiuHyJs.js.map +1 -0
  187. package/dist/cdn/chunks/src-CACM3o--.js +2606 -0
  188. package/dist/cdn/chunks/src-CACM3o--.js.map +1 -0
  189. package/dist/cdn/chunks/{src-CUH_EI7k.js → src-Ddpm4HsS.js} +225 -259
  190. package/dist/cdn/chunks/src-Ddpm4HsS.js.map +1 -0
  191. package/dist/cdn/chunks/{src-BKpAis_q.js → src-DheBmnvF.js} +635 -478
  192. package/dist/cdn/chunks/src-DheBmnvF.js.map +1 -0
  193. package/dist/{styleConstants-B8xVRiwX.js → cdn/chunks/styleConstants-CgiNKdnc.js} +7 -5
  194. package/dist/cdn/chunks/styleConstants-CgiNKdnc.js.map +1 -0
  195. package/dist/cdn/chunks/templateSettingsFields-cjlP-jdw.js.map +1 -1
  196. package/dist/cdn/chunks/{tiptap-ChSZybTi.js → tiptap-Dipw_zOQ.js} +48 -48
  197. package/dist/cdn/chunks/{tiptap-ChSZybTi.js.map → tiptap-Dipw_zOQ.js.map} +1 -1
  198. package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js → useCloudI18n-Cc5NZqiI.js} +3 -3
  199. package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js.map → useCloudI18n-Cc5NZqiI.js.map} +1 -1
  200. package/dist/cdn/chunks/useEditorRoot-D_LuZ_hE.js +9 -0
  201. package/dist/cdn/chunks/{useEditorRoot-BT3c9CXj.js.map → useEditorRoot-D_LuZ_hE.js.map} +1 -1
  202. package/dist/cdn/chunks/{useI18n-11iqzC6m.js → useI18n-BnJYydPv.js} +3 -3
  203. package/dist/cdn/chunks/{useI18n-11iqzC6m.js.map → useI18n-BnJYydPv.js.map} +1 -1
  204. package/dist/cdn/chunks/useLocalizedDisplay-yXbRKNrs.js +33 -0
  205. package/dist/cdn/chunks/useLocalizedDisplay-yXbRKNrs.js.map +1 -0
  206. package/dist/cdn/chunks/{useLogicTag-vy5KGg5D.js → useLogicTag-B7RpqVFQ.js} +5 -5
  207. package/dist/cdn/chunks/{useLogicTag-vy5KGg5D.js.map → useLogicTag-B7RpqVFQ.js.map} +1 -1
  208. package/dist/cdn/chunks/{useMergeTag-BFBBjnwh.js → useMergeTag-C-32ETjj.js} +6 -6
  209. package/dist/cdn/chunks/{useMergeTag-BFBBjnwh.js.map → useMergeTag-C-32ETjj.js.map} +1 -1
  210. package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js +78 -0
  211. package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js.map +1 -0
  212. package/dist/cdn/chunks/{useScrollToBlock-C0dawxGr.js → useScrollToBlock-Ct1AwLD-.js} +5 -5
  213. package/dist/cdn/chunks/useScrollToBlock-Ct1AwLD-.js.map +1 -0
  214. package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js → withCurrentFont-D33ZXoWp.js} +2 -2
  215. package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js.map → withCurrentFont-D33ZXoWp.js.map} +1 -1
  216. package/dist/cdn/editor.css +1 -1
  217. package/dist/cdn/editor.js +2503 -1809
  218. package/dist/cdn/editor.js.map +1 -1
  219. package/dist/{check-N3x4z_rH.js → check-ChQ0l8EQ.js} +1 -1
  220. package/dist/{chevron-down-gXu9qNwO.js → chevron-down-Bh6cp6PI.js} +1 -1
  221. package/dist/{chevron-right-rL0ayGk5.js → chevron-right-LUgdqdoW.js} +1 -1
  222. package/dist/{chevron-up-0ugh8HnW.js → chevron-up-XsDeJxQN.js} +1 -1
  223. package/dist/{circle-alert-B9Ls75B5.js → circle-alert-lODfDsrj.js} +1 -1
  224. package/dist/{clock-BqHBaCLm.js → clock-DrqFEZkT.js} +1 -1
  225. package/dist/composables-BOP3ERRP.js +4517 -0
  226. package/dist/{createCloudRuntime-B5VIdnwz.js → createCloudRuntime-DGV5a5Af.js} +47 -45
  227. package/dist/{createLucideIcon-BV7Gwz_Z.js → createLucideIcon-Dw5e5gVE.js} +16 -16
  228. package/dist/{cdn/chunks/de-CeFJ6wbM.js → de-DaOUfYBX.js} +114 -2
  229. package/dist/{cdn/chunks/dist-CONcGNwy.js → dist-0alKVRc_.js} +100 -99
  230. package/dist/{dist-Cy8I5scI.js → dist-54VCNoC0.js} +2 -2
  231. package/dist/dist-6DU0me3E.js +4 -0
  232. package/dist/{dist-p3wymUDt.js → dist-B8dY8drK.js} +2 -2
  233. package/dist/{dist-Dd5MU2Ev.js → dist-B9a7iVye.js} +2 -2
  234. package/dist/{dist-V7W1UhVr.js → dist-BWflWcpW.js} +2 -2
  235. package/dist/{dist-D6fZec6r.js → dist-C3hu_C3w.js} +2 -2
  236. package/dist/{cdn/chunks/dist-C2epoAwW.js → dist-CX7skkvG.js} +29 -31
  237. package/dist/dist-CcOn7WCo.js +4 -0
  238. package/dist/dist-Cdkm20M6.js +2542 -0
  239. package/dist/{dist-BS5uKktL.js → dist-ChOb5XHW.js} +2 -2
  240. package/dist/{dist-BF5zEHop.js → dist-DZ3X-uB8.js} +2 -2
  241. package/dist/{dist-CWSG7Kj0.js → dist-D_XrUEET.js} +5 -5
  242. package/dist/{dist-txQLT2sF.js → dist-TAv500j6.js} +2 -2
  243. package/dist/{dist-DDN7yR-w.js → dist-fqSers8_.js} +131 -131
  244. package/dist/{editor-modal-Du9VI9q4.js → editor-modal-B_2EAOjN.js} +907 -906
  245. package/dist/{cdn/chunks/en-D14i5nFh.js → en-C0pHHMiR.js} +114 -2
  246. package/dist/en-DTtwco2Q.js +1 -0
  247. package/dist/{cdn/chunks/es-zDacbMhs.js → es-CxyEKr6n.js} +114 -2
  248. package/dist/{extensions-FRYhx7qa.js → extensions-DOLZkLzV.js} +173 -173
  249. package/dist/{eye-BKj9Tfnc.js → eye-DChfk0gi.js} +1 -1
  250. package/dist/{cdn/chunks/fr-CSgYtjOd.js → fr-CYbamiI6.js} +114 -2
  251. package/dist/{image-DNdvdTla.js → image--Hj2by1G.js} +1 -1
  252. package/dist/index.d.ts +182 -14
  253. package/dist/{info-Bx-kBkbH.js → info-BbXgy82f.js} +1 -1
  254. package/dist/{cdn/chunks/ja-B7H3ID8O.js → ja-DfaIAoGI.js} +114 -2
  255. package/dist/keys-BCqskl51.js +9 -0
  256. package/dist/languageName-DEEOhDWI.js +10 -0
  257. package/dist/{link-D8-rYdIQ.js → link-C2_8yJno.js} +1 -1
  258. package/dist/{liquid.browser-D1RxawkY.js → liquid.browser-DUXEekoN.js} +781 -745
  259. package/dist/{list-BneisA27.js → list-DLGs2n0V.js} +1 -1
  260. package/dist/{loader-circle-DBEXphyx.js → loader-circle-BbDItE_O.js} +1 -1
  261. package/dist/{message-circle-Bg4xInCM.js → message-circle-NAModq0p.js} +1 -1
  262. package/dist/{cdn/chunks/nl-176ySmc5.js → nl-DkrB-VKZ.js} +114 -2
  263. package/dist/normalizeMergeTagMarkup-CUCo7B5X.js +288 -0
  264. package/dist/noticeTones-D7BPu-Le.js +14 -0
  265. package/dist/{package-B40Vkfsp.js → package-BuzsfRyH.js} +1 -1
  266. package/dist/{pencil-CYdAHTds.js → pencil-BTUUECH4.js} +1 -1
  267. package/dist/plural-CyxrJXL1.js +15 -0
  268. package/dist/plus-Dm7DN65T.js +13 -0
  269. package/dist/{preRenderCustomBlocks-AbZArwkR.js → preRenderCustomBlocks-Bs3N9no-.js} +4 -4
  270. package/dist/{pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +114 -0
  271. package/dist/{refresh-cw-Bb1FWrU0.js → refresh-cw-xMURqGWi.js} +2 -12
  272. package/dist/rotate-ccw-DqVcEIn5.js +13 -0
  273. package/dist/{runtime-dom.esm-bundler-CLGymEyk.js → runtime-dom.esm-bundler-DlHp8xgy.js} +167 -167
  274. package/dist/sanitizeHtml-mKgNUdME.js +962 -0
  275. package/dist/{search-BZEo08gi.js → search-Cfr3W44N.js} +1 -1
  276. package/dist/{send-DHtrnXQs.js → send-CH1SrvyB.js} +1 -1
  277. package/dist/{smartphone-dlN3vpA3.js → smartphone-pAkvzjdI.js} +1 -1
  278. package/dist/socialIcons-Dqr4DJOz.js +2705 -0
  279. package/dist/{sparkles-NOttoDnJ.js → sparkles-CRO0cCnp.js} +1 -1
  280. package/dist/{square-B1CJgdt2.js → square-CaQWMntx.js} +1 -1
  281. package/dist/style.css +1 -1
  282. package/dist/{cdn/chunks/styleConstants-B8xVRiwX.js → styleConstants-CgiNKdnc.js} +5 -7
  283. package/dist/templatical-editor.js +2294 -1608
  284. package/dist/{text-align-start-zpoXmb-Z.js → text-align-start-BQ39AaRK.js} +1 -1
  285. package/dist/{trash-CGbk4Sgt.js → trash-BL5gEFHN.js} +1 -1
  286. package/dist/{triangle-alert-CKLMyGVp.js → triangle-alert-BYbKu7zZ.js} +1 -1
  287. package/dist/{upload-DQoackAn.js → upload-BhmL4Vqx.js} +1 -1
  288. package/dist/{useCloudI18n-DcLtxOQZ.js → useCloudI18n-Dh2iydo1.js} +4 -4
  289. package/dist/useEditorRoot-DY3mgcHm.js +7 -0
  290. package/dist/{useI18n-CeTm777E.js → useI18n-CgtvtF4C.js} +4 -4
  291. package/dist/useLocalizedDisplay-DNNwDRxL.js +31 -0
  292. package/dist/{useLogicTag-DFDYJeMN.js → useLogicTag-BXXXQQmi.js} +4 -4
  293. package/dist/{useMergeTag-B46vACAG.js → useMergeTag-C9Okr87y.js} +5 -5
  294. package/dist/usePopoverPosition-VDQjyX_A.js +76 -0
  295. package/dist/{useScrollToBlock-C-NzvjeO.js → useScrollToBlock-C0Kapxdh.js} +5 -5
  296. package/dist/{vue.runtime.esm-bundler-CrlI8j5R.js → vue.runtime.esm-bundler-BJXc_Mri.js} +1247 -1239
  297. package/dist/withCurrentFont-DJiQqZzL.js +18 -0
  298. package/dist/{x-zcrnmcmU.js → x-B7NZYzhx.js} +1 -1
  299. package/package.json +23 -23
  300. package/dist/AiAltTextPopover-Cm11CsKH.js +0 -105
  301. package/dist/BlockIssueBadge-6Ri2FfX-.js +0 -33
  302. package/dist/BlockPreviewCanvas-Df9iz7sK.js +0 -140
  303. package/dist/CollaborationNotices-JQ3vQoqO.js +0 -75
  304. package/dist/CommentsPanel-BuftXc0U.js +0 -16
  305. package/dist/CommentsSidebar-Co3x4uH0.js +0 -499
  306. package/dist/CountdownToolbar-CrL4WKy9.js +0 -197
  307. package/dist/MergeTagInput-DE7kWwXx.js +0 -80
  308. package/dist/MergeTagTextarea-DVPQkiYY.js +0 -69
  309. package/dist/SavedBlocksBrowserModal-SRtN5h9q.js +0 -359
  310. package/dist/TemplateSettings-D0XcH32O.js +0 -236
  311. package/dist/TestEmailModal-Cb5t0yB2.js +0 -209
  312. package/dist/TitleEditor-BYk_9SpQ.js +0 -198
  313. package/dist/ToggleSwitch-poGWbduy.js +0 -36
  314. package/dist/Toolbar-Dku_pZni.js +0 -3145
  315. package/dist/VersionPreviewBanner-CSs7zum_.js +0 -37
  316. package/dist/WrapperBlock-DwjK_IdJ.js +0 -44
  317. package/dist/cdn/chunks/AiAltTextPopover-DjMoJCgU.js +0 -106
  318. package/dist/cdn/chunks/AiAltTextPopover-DjMoJCgU.js.map +0 -1
  319. package/dist/cdn/chunks/AiAltTextReview-BafAtBoA.js.map +0 -1
  320. package/dist/cdn/chunks/AiChatPanel-DXeZgc7D.js +0 -474
  321. package/dist/cdn/chunks/AiChatPanel-DXeZgc7D.js.map +0 -1
  322. package/dist/cdn/chunks/AiRewriteMenu-4F6vwhJ5.js.map +0 -1
  323. package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js +0 -34
  324. package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js.map +0 -1
  325. package/dist/cdn/chunks/BlockPreviewCanvas-Ny1X_mee.js +0 -142
  326. package/dist/cdn/chunks/CollaborationNotices-Hf8r08Sw.js +0 -77
  327. package/dist/cdn/chunks/CollaborationNotices-Hf8r08Sw.js.map +0 -1
  328. package/dist/cdn/chunks/CommentsPanel-CAiwilM2.js +0 -18
  329. package/dist/cdn/chunks/CommentsSidebar-Dj8sDiLN.js +0 -469
  330. package/dist/cdn/chunks/CommentsSidebar-Dj8sDiLN.js.map +0 -1
  331. package/dist/cdn/chunks/CountdownToolbar-CguFJdqn.js +0 -199
  332. package/dist/cdn/chunks/CountdownToolbar-CguFJdqn.js.map +0 -1
  333. package/dist/cdn/chunks/IssuesPanel-pr7_nuLI.js.map +0 -1
  334. package/dist/cdn/chunks/LogicTagInsertButton-B_ldj3TO.js.map +0 -1
  335. package/dist/cdn/chunks/MediaEditModal-CGfzcHwP.js.map +0 -1
  336. package/dist/cdn/chunks/MergeTagModeToggle-BFpK5dxg.js.map +0 -1
  337. package/dist/cdn/chunks/MergeTagTextarea-Zo0mYWbf.js +0 -71
  338. package/dist/cdn/chunks/MergeTagTextarea-Zo0mYWbf.js.map +0 -1
  339. package/dist/cdn/chunks/ParagraphEditor-DsPLVAgm.js +0 -631
  340. package/dist/cdn/chunks/ParagraphEditor-DsPLVAgm.js.map +0 -1
  341. package/dist/cdn/chunks/SavedBlocksBrowserModal-B9XCjDfm.js +0 -356
  342. package/dist/cdn/chunks/TemplateSettings-jWpmuWDR.js +0 -208
  343. package/dist/cdn/chunks/TemplateSettings-jWpmuWDR.js.map +0 -1
  344. package/dist/cdn/chunks/TestEmailModal-DcwKhFnI.js.map +0 -1
  345. package/dist/cdn/chunks/TitleEditor-R2lQw6WA.js +0 -198
  346. package/dist/cdn/chunks/TitleEditor-R2lQw6WA.js.map +0 -1
  347. package/dist/cdn/chunks/ToggleSwitch-BDMugNES.js +0 -38
  348. package/dist/cdn/chunks/ToggleSwitch-BDMugNES.js.map +0 -1
  349. package/dist/cdn/chunks/Toolbar-CnvfW72e.js +0 -3061
  350. package/dist/cdn/chunks/Toolbar-CnvfW72e.js.map +0 -1
  351. package/dist/cdn/chunks/VersionPreviewBanner-CZ--HOoa.js +0 -39
  352. package/dist/cdn/chunks/VersionPreviewBanner-CZ--HOoa.js.map +0 -1
  353. package/dist/cdn/chunks/WrapperBlock-D3obNGab.js +0 -46
  354. package/dist/cdn/chunks/WrapperBlock-D3obNGab.js.map +0 -1
  355. package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js +0 -21
  356. package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js.map +0 -1
  357. package/dist/cdn/chunks/ca-CD-Kt1qz.js.map +0 -1
  358. package/dist/cdn/chunks/createCloudRuntime-D6niZ2Rc.js.map +0 -1
  359. package/dist/cdn/chunks/de-CeFJ6wbM.js.map +0 -1
  360. package/dist/cdn/chunks/draggable-B8hTTYFO.js.map +0 -1
  361. package/dist/cdn/chunks/en-CKAXAo3Z.js +0 -1
  362. package/dist/cdn/chunks/en-D14i5nFh.js.map +0 -1
  363. package/dist/cdn/chunks/es-zDacbMhs.js.map +0 -1
  364. package/dist/cdn/chunks/fr-CSgYtjOd.js.map +0 -1
  365. package/dist/cdn/chunks/icons-HCBP93Ch.js.map +0 -1
  366. package/dist/cdn/chunks/ja-B7H3ID8O.js.map +0 -1
  367. package/dist/cdn/chunks/keys-BF9gazbd.js +0 -11
  368. package/dist/cdn/chunks/keys-BF9gazbd.js.map +0 -1
  369. package/dist/cdn/chunks/liquid.browser-DkLBNrft.js.map +0 -1
  370. package/dist/cdn/chunks/nl-176ySmc5.js.map +0 -1
  371. package/dist/cdn/chunks/normalizeMergeTagMarkup-DpHCSESZ.js +0 -198
  372. package/dist/cdn/chunks/normalizeMergeTagMarkup-DpHCSESZ.js.map +0 -1
  373. package/dist/cdn/chunks/pt-BR-dDlTwX18.js.map +0 -1
  374. package/dist/cdn/chunks/sanitizeHtml-B2h15u0_.js +0 -72
  375. package/dist/cdn/chunks/sanitizeHtml-B2h15u0_.js.map +0 -1
  376. package/dist/cdn/chunks/socialIcons-rJoqO1TJ.js +0 -2008
  377. package/dist/cdn/chunks/socialIcons-rJoqO1TJ.js.map +0 -1
  378. package/dist/cdn/chunks/src-BKpAis_q.js.map +0 -1
  379. package/dist/cdn/chunks/src-C9DTvn1H.js +0 -1423
  380. package/dist/cdn/chunks/src-C9DTvn1H.js.map +0 -1
  381. package/dist/cdn/chunks/src-CUH_EI7k.js.map +0 -1
  382. package/dist/cdn/chunks/styleConstants-B8xVRiwX.js.map +0 -1
  383. package/dist/cdn/chunks/useEditorCore-CjaEV_01.js +0 -2534
  384. package/dist/cdn/chunks/useEditorCore-CjaEV_01.js.map +0 -1
  385. package/dist/cdn/chunks/useEditorRoot-BT3c9CXj.js +0 -9
  386. package/dist/cdn/chunks/usePopoverPosition-AnVIwiVv.js +0 -70
  387. package/dist/cdn/chunks/usePopoverPosition-AnVIwiVv.js.map +0 -1
  388. package/dist/cdn/chunks/useScrollToBlock-C0dawxGr.js.map +0 -1
  389. package/dist/dist-CzrLYq2s.js +0 -1363
  390. package/dist/dist-DyFArF_G.js +0 -4
  391. package/dist/dist-pA3ooG6N.js +0 -4
  392. package/dist/en-CyEE7FPY.js +0 -1
  393. package/dist/keys-DBjrQkYH.js +0 -9
  394. package/dist/normalizeMergeTagMarkup-IH8COHzd.js +0 -196
  395. package/dist/sanitizeHtml-CnOA1efV.js +0 -942
  396. package/dist/socialIcons-B_d52_eS.js +0 -2075
  397. package/dist/useEditorCore-DG9UvWUm.js +0 -4011
  398. package/dist/useEditorRoot-BKr6nNkC.js +0 -7
  399. package/dist/usePopoverPosition-C42kD7zt.js +0 -68
  400. package/dist/withCurrentFont-v_a4Oso8.js +0 -18
@@ -1,15 +1,15 @@
1
- import { $ as e, A as t, At as n, Bt as r, C as i, Ft as a, Gt as o, Jt as s, Kt as c, O as l, Q as u, S as d, Ut as f, Wt as p, _t as m, b as h, ct as g, dt as _, ft as v, gt as y, ht as b, it as x, k as ee, lt as S, mt as te, ot as C, qt as ne, st as re, ut as ie, vt as ae, x as oe, y as se, yt as w } from "./src-C9DTvn1H.js";
1
+ import { A as e, Ct as t, Dt as n, Et as r, Jt as i, Lt as a, O as o, Q as s, St as c, Tt as l, _n as u, _t as d, b as f, bt as p, dn as m, ft as h, gn as g, gt as _, hn as v, ht as y, k as ee, mn as b, mt as x, on as S, rt as C, st as te, tn as ne, vn as w, vt as re, wt as ie, x as ae, y as oe, yn as T, yt as se } from "./src-CACM3o--.js";
2
2
  // ../renderer/src/render-context.ts
3
- var T = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
3
+ var E = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
4
4
  name: "@templatical/renderer",
5
5
  description: "Render Templatical email templates to MJML",
6
- version: "0.52.0",
6
+ version: "0.53.0",
7
7
  bugs: "https://github.com/templatical/sdk/issues",
8
8
  dependencies: { "@templatical/types": "workspace:*" },
9
9
  devDependencies: {
10
10
  "@jsquash/oxipng": "^2.3.0",
11
11
  "@resvg/resvg-js": "^2.6.2",
12
- liquidjs: "^10.30.0",
12
+ liquidjs: "^10.30.1",
13
13
  mjml: "^5.4.1",
14
14
  typescript: "^6.0.3",
15
15
  vitest: "^5.0.5"
@@ -30,7 +30,7 @@ var T = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
30
30
  ],
31
31
  license: "MIT",
32
32
  module: "./dist/index.js",
33
- peerDependencies: { liquidjs: "^10.30.0" },
33
+ peerDependencies: { liquidjs: "^10.30.1" },
34
34
  peerDependenciesMeta: { liquidjs: { optional: !0 } },
35
35
  publishConfig: { access: "public" },
36
36
  repository: {
@@ -45,7 +45,7 @@ var T = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
45
45
  },
46
46
  type: "module",
47
47
  types: "./dist/index.d.ts"
48
- }.version}/assets/social`, E = class e {
48
+ }.version}/assets/social`, D = class e {
49
49
  containerWidth;
50
50
  customFonts;
51
51
  defaultFallbackFont;
@@ -55,135 +55,101 @@ var T = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
55
55
  blockRenderers;
56
56
  contentDirection;
57
57
  contentWidth;
58
- constructor(e, t, n, r, i = /* @__PURE__ */ new Map(), a = T, o = {}, s = "ltr", c) {
58
+ constructor(e, t, n, r, i = /* @__PURE__ */ new Map(), a = E, o = {}, s = "ltr", c) {
59
59
  this.containerWidth = e, this.customFonts = t, this.defaultFallbackFont = n, this.allowHtmlBlocks = r, this.customBlockHtml = i, this.socialIconsBaseUrl = a, this.blockRenderers = o, this.contentDirection = s, this.contentWidth = c ?? e;
60
60
  }
61
61
  withContainerWidth(t, n = t) {
62
62
  return new e(t, this.customFonts, this.defaultFallbackFont, this.allowHtmlBlocks, this.customBlockHtml, this.socialIconsBaseUrl, this.blockRenderers, this.contentDirection, n);
63
63
  }
64
64
  resolveFontFamily(e) {
65
- return se(e, {
65
+ return oe(e, {
66
66
  customFonts: this.customFonts,
67
67
  defaultFallback: this.defaultFallbackFont
68
68
  });
69
69
  }
70
70
  };
71
71
  // ../renderer/src/visibility.ts
72
- function D(e) {
72
+ function O(e) {
73
73
  let t = e.visibility;
74
74
  return t ? !t.desktop && !t.mobile : !1;
75
75
  }
76
- function O(e, t = []) {
77
- let n = [ce(e), ...t].filter((e) => e !== "").join(" ");
76
+ function k(e, t = []) {
77
+ let n = [A(e), ...t].filter((e) => e !== "").join(" ");
78
78
  return n === "" ? "" : ` css-class="${n}"`;
79
79
  }
80
- function ce(e) {
80
+ function A(e) {
81
81
  let t = e.visibility;
82
82
  if (!t) return "";
83
83
  let n = [];
84
84
  return t.desktop || n.push("tpl-hide-desktop"), t.mobile || n.push("tpl-hide-mobile"), n.join(" ");
85
85
  }
86
86
  // ../renderer/src/unrenderable.ts
87
- var le = "templatical:unrenderable-block";
88
- function ue(e) {
87
+ var j = "templatical:unrenderable-block";
88
+ function M(e) {
89
89
  return e.replace(/[<>]/g, "").replace(/-{2,}/g, "-");
90
90
  }
91
- function k(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 N(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><!-- ${j} type="${M(e.type)}" id="${M(e.id)}" --></mj-raw>`;
93
93
  }
94
94
  // ../renderer/src/escape.ts
95
- var A = {
95
+ var P = {
96
96
  "&": "&amp;",
97
97
  "<": "&lt;",
98
98
  ">": "&gt;",
99
99
  "\"": "&quot;",
100
100
  "'": "&#039;"
101
- }, j = /[&<>"']/g;
102
- function M(e) {
103
- return e === "" ? "" : e.replace(j, (e) => A[e] ?? e);
104
- }
105
- function N(e) {
106
- return e === "" ? "" : e.replace(j, (e) => A[e] ?? e);
107
- }
108
- function P(e) {
109
- return e === "" ? "" : N(e).replace(/[;{}\r\n]/g, "");
110
- }
111
- var de = /[&<>"]/g;
101
+ }, ce = /[&<>"']/g;
112
102
  function F(e) {
113
- return e.replace(de, (e) => A[e] ?? e);
103
+ return e === "" ? "" : e.replace(ce, (e) => P[e] ?? e);
114
104
  }
115
105
  function I(e) {
116
- return e === "" ? "" : fe(e, (e) => L(e, "data-merge-tag") ?? L(e, "data-logic-merge-tag"));
106
+ return e === "" ? "" : e.replace(ce, (e) => P[e] ?? e);
117
107
  }
118
- function fe(e, t) {
119
- let n = "", r = 0;
120
- for (; r < e.length;) {
121
- let i = e.indexOf("<span", r);
122
- if (i === -1) {
123
- n += e.substring(r);
124
- break;
125
- }
126
- let a = e[i + 5];
127
- if (a !== ">" && a !== " " && a !== " " && a !== "\n" && a !== "\r" && a !== "/") {
128
- n += e.substring(r, i + 5), r = i + 5;
129
- continue;
130
- }
131
- let o = d(e, i + 5);
132
- if (o === -1) {
133
- n += e.substring(r);
134
- break;
135
- }
136
- let s = e.indexOf("</span>", o + 1);
137
- if (s === -1) {
138
- n += e.substring(r);
139
- break;
140
- }
141
- let c = t(e.substring(i + 5, o));
142
- c === null ? (n += e.substring(r, i + 5), r = i + 5) : (n += e.substring(r, i), n += c, r = s + 7);
143
- }
144
- return n;
108
+ function L(e) {
109
+ return e === "" ? "" : I(e).replace(/[;{}\r\n]/g, "");
145
110
  }
146
- function L(e, t) {
147
- return i(e, t);
111
+ var le = /[&<>"]/g;
112
+ function R(e) {
113
+ return e.replace(le, (e) => P[e] ?? e);
148
114
  }
149
115
  // ../renderer/src/padding.ts
150
- function R(e) {
116
+ function z(e) {
151
117
  return `${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`;
152
118
  }
153
119
  // ../renderer/src/utils.ts
154
- function z(e, t) {
120
+ function B(e, t) {
155
121
  return e ? ` ${t === "native" ? "background-color" : "container-background-color"}="${e}"` : "";
156
122
  }
157
- function B(e) {
123
+ function V(e) {
158
124
  return typeof e != "number" || !Number.isFinite(e) || e <= 0 ? "" : ` height="${e}px"`;
159
125
  }
160
- function V(e, t) {
161
- let n = (e) => Math.trunc(e ?? 0), r = (e) => c(e) === null ? 0 : Math.trunc(e.width);
126
+ function H(e, t) {
127
+ let n = (e) => Math.trunc(e ?? 0), r = (e) => u(e) === null ? 0 : Math.trunc(e.width);
162
128
  return n(e?.left) + n(e?.right) + r(t?.left) + r(t?.right);
163
129
  }
164
- function H(e, t) {
165
- let n = Math.floor(t.contentWidth) - V(e.styles.padding, e.border);
130
+ function U(e, t) {
131
+ let n = Math.floor(t.contentWidth) - H(e.styles.padding, e.border);
166
132
  return e.width === "full" || e.width >= n ? " fluid-on-mobile=\"true\"" : "";
167
133
  }
168
- function U(e) {
169
- return Object.entries(ne(e)).map(([e, t]) => ` ${e}="${P(t)}"`).join("");
170
- }
171
134
  function W(e) {
172
- let t = s(e);
173
- return t === null ? "" : ` border-radius="${t}"`;
135
+ return Object.entries(w(e)).map(([e, t]) => ` ${e}="${L(t)}"`).join("");
174
136
  }
175
137
  function G(e) {
176
- let t = r(e);
177
- return t === null ? "" : ` background-url="${N(t.url)}" background-size="${t.size}" background-position="${t.position}" background-repeat="${t.repeat}"`;
138
+ let t = T(e);
139
+ return t === null ? "" : ` border-radius="${t}"`;
140
+ }
141
+ function K(e) {
142
+ let t = m(e);
143
+ return t === null ? "" : ` background-url="${I(t.url)}" background-size="${t.size}" background-position="${t.position}" background-repeat="${t.repeat}"`;
178
144
  }
179
145
  // ../renderer/src/rich-text.ts
180
- var K = "tpl-rich-text";
181
- function q(e) {
182
- return `${K}-${e}`;
146
+ var q = "tpl-rich-text";
147
+ function J(e) {
148
+ return `${q}-${e}`;
183
149
  }
184
- function pe(e, t = "ltr") {
185
- let n = p, r = `.${K}`, i = [...new Set(e)].sort((e, t) => e - t).flatMap((e) => {
186
- let t = `.${q(e)}`;
150
+ function ue(e, t = "ltr") {
151
+ let n = v, r = `.${q}`, i = [...new Set(e)].sort((e, t) => e - t).flatMap((e) => {
152
+ let t = `.${J(e)}`;
187
153
  return [`${t} p { margin: 0 0 ${e}px; }`, `${t} p:last-child { margin-bottom: 0; }`];
188
154
  }), a = t === "rtl" ? "padding-right" : "padding-left";
189
155
  return [
@@ -192,221 +158,221 @@ function pe(e, t = "ltr") {
192
158
  `${r} li { margin: ${n.listItemMarginY}px 0; }`
193
159
  ].join("\n ");
194
160
  }
195
- function J(e) {
196
- return e ?? p.paragraphGap;
161
+ function Y(e) {
162
+ return e ?? v.paragraphGap;
197
163
  }
198
- function me(e) {
199
- let t = [p.paragraphGap], n = (e) => {
200
- if (e.type === "paragraph" && t.push(J(e.paragraphSpacing)), v(e)) for (let t of e.children) for (let e of t) n(e);
201
- else if (w(e)) for (let t of e.children) n(t);
164
+ function de(e) {
165
+ let t = [v.paragraphGap], r = (e) => {
166
+ if (e.type === "paragraph" && t.push(Y(e.paragraphSpacing)), p(e)) for (let t of e.children) for (let e of t) r(e);
167
+ else if (n(e)) for (let t of e.children) r(t);
202
168
  };
203
- for (let t of e) n(t);
169
+ for (let t of e) r(t);
204
170
  return t;
205
171
  }
206
172
  // ../renderer/src/renderers/title.ts
207
- function he(e, t) {
208
- if (D(e)) return "";
209
- let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = ge(h(I(e.content))), a = f[e.level] ?? f[2], s = e.color ? `\n color="${N(e.color)}"` : "", c = e.textAlign, l = _e(e.fontFamily, t), u = O(e, [K, q(J(void 0))]), d = `h${f[e.level] ? e.level : 2}`;
173
+ function fe(e, t) {
174
+ if (O(e)) return "";
175
+ let n = z(e.styles.padding), r = B(e.styles.backgroundColor, "container"), i = pe(f(C(e.content))), a = b[e.level] ?? b[2], o = e.color ? `\n color="${I(e.color)}"` : "", s = e.textAlign, c = me(e.fontFamily, t), l = k(e, [q, J(Y(void 0))]), u = `h${b[e.level] ? e.level : 2}`;
210
176
  return `<mj-text
211
- font-size="${a}px"${s}
212
- align="${c}"
213
- line-height="${o}"
214
- padding="${n}"${r}${l}${u}
215
- ><${d} style="margin:0;font-size:inherit;color:inherit;line-height:inherit;font-weight:700">${i}</${d}></mj-text>`;
177
+ font-size="${a}px"${o}
178
+ align="${s}"
179
+ line-height="${g}"
180
+ padding="${n}"${r}${c}${l}
181
+ ><${u} style="margin:0;font-size:inherit;color:inherit;line-height:inherit;font-weight:700">${i}</${u}></mj-text>`;
216
182
  }
217
- function ge(e) {
183
+ function pe(e) {
218
184
  let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
219
185
  return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
220
186
  }
221
- function _e(e, t) {
222
- return e ? ` font-family="${F(t.resolveFontFamily(e))}"` : "";
187
+ function me(e, t) {
188
+ return e ? ` font-family="${R(t.resolveFontFamily(e))}"` : "";
223
189
  }
224
190
  // ../renderer/src/renderers/paragraph.ts
225
- function ve(e, t) {
226
- if (D(e) || oe(e.content)) return "";
227
- let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = h(I(e.content)), a = O(e, [K, q(J(e.paragraphSpacing))]);
191
+ function he(e, t) {
192
+ if (O(e) || ae(e.content)) return "";
193
+ let n = z(e.styles.padding), r = B(e.styles.backgroundColor, "container"), i = f(C(e.content)), a = k(e, [q, J(Y(e.paragraphSpacing))]);
228
194
  return `<mj-text
229
195
  line-height="1.5"${t.contentDirection === "rtl" ? "\n align=\"right\"" : ""}
230
196
  padding="${n}"${r}${a}
231
197
  >${i}</mj-text>`;
232
198
  }
233
199
  // ../renderer/src/renderers/image.ts
234
- function ye(e, t) {
235
- if (D(e) || e.src === "") return "";
236
- 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 = H(e, t), s = O(e), c = W(e.borderRadius), l = U(e.border), u = "";
237
- e.linkUrl && (u = ` href="${N(e.linkUrl)}"`, e.linkOpenInNewTab && (u += " target=\"_blank\" rel=\"noopener\""));
238
- let d = N(e.src), f = e.decorative === !0;
200
+ function ge(e, t) {
201
+ if (O(e) || e.src === "") return "";
202
+ let n = z(e.styles.padding), r = B(e.styles.backgroundColor, "container"), i = e.width === "full" ? t.containerWidth + "px" : e.width + "px", a = V(e.height), o = U(e, t), s = k(e), c = G(e.borderRadius), l = W(e.border), u = "";
203
+ e.linkUrl && (u = ` href="${I(e.linkUrl)}"`, e.linkOpenInNewTab && (u += " target=\"_blank\" rel=\"noopener\""));
204
+ let d = I(e.src), f = e.decorative === !0;
239
205
  return `<mj-image
240
206
  src="${d}"
241
- alt="${f ? "" : N(e.alt)}"
207
+ alt="${f ? "" : I(e.alt)}"
242
208
  width="${i}"${a}${o}
243
209
  align="${e.align}"
244
210
  padding="${n}"${r}${l}${c}${u}${s}${f ? " role=\"presentation\"" : ""}
245
211
  />`;
246
212
  }
247
213
  // ../renderer/src/renderers/button.ts
248
- var Y = "tpl-button-full";
249
- function be(e, t) {
250
- if (D(e)) return "";
251
- let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = R(e.buttonPadding), a = e.url === "" ? "" : N(e.url), o = a === "" ? "" : ` href="${a}"`, s = xe(e.backgroundColor), c = N(e.textColor), l = e.fontSize, u = Ce(e.borderRadius), d = M(e.text), f = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", p = Se(e.fontFamily, t), m = we(e.width), h = O(e, e.width === "full" ? [Y] : []);
214
+ var X = "tpl-button-full";
215
+ function _e(e, t) {
216
+ if (O(e)) return "";
217
+ let n = z(e.styles.padding), r = B(e.styles.backgroundColor, "container"), i = z(e.buttonPadding), a = e.url === "" ? "" : I(e.url), o = a === "" ? "" : ` href="${a}"`, s = ve(e.backgroundColor), c = I(e.textColor), l = e.fontSize, u = be(e.borderRadius), d = F(e.text), f = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", p = ye(e.fontFamily, t), m = xe(e.width), h = k(e, e.width === "full" ? [X] : []);
252
218
  return `<mj-button${o}${f}
253
219
  background-color="${s}"
254
220
  color="${c}"
255
221
  font-size="${l}px"
256
222
  font-weight="bold"
257
- border-radius="${u}"${U(e.border)}
223
+ border-radius="${u}"${W(e.border)}
258
224
  inner-padding="${i}"
259
225
  align="${e.align ?? "center"}"
260
226
  padding="${n}"${r}${p}${m}${h}
261
227
  >${d}</mj-button>`;
262
228
  }
263
- function xe(e) {
264
- return e.trim() === "" ? "transparent" : N(e);
229
+ function ve(e) {
230
+ return e.trim() === "" ? "transparent" : I(e);
265
231
  }
266
- function Se(e, t) {
267
- return e ? ` font-family="${F(t.resolveFontFamily(e))}"` : "";
232
+ function ye(e, t) {
233
+ return e ? ` font-family="${R(t.resolveFontFamily(e))}"` : "";
268
234
  }
269
- function Ce(e) {
270
- return typeof e == "number" ? `${e}px` : s(e) ?? "0px";
235
+ function be(e) {
236
+ return typeof e == "number" ? `${e}px` : T(e) ?? "0px";
271
237
  }
272
- function we(e) {
238
+ function xe(e) {
273
239
  return e === void 0 ? "" : ` width="${e === "full" ? "100%" : `${e}px`}"`;
274
240
  }
275
241
  // ../renderer/src/renderers/divider.ts
276
- function Te(e, t) {
277
- if (D(e)) return "";
278
- let n = R(e.styles.padding), r = e.styles.backgroundColor ? ` container-background-color="${N(e.styles.backgroundColor)}"` : "", i = e.width === "full" ? "100%" : typeof e.width == "number" ? `${e.width}px` : e.width;
242
+ function Se(e, t) {
243
+ if (O(e)) return "";
244
+ let n = z(e.styles.padding), r = e.styles.backgroundColor ? ` container-background-color="${I(e.styles.backgroundColor)}"` : "", i = e.width === "full" ? "100%" : typeof e.width == "number" ? `${e.width}px` : e.width;
279
245
  return `<mj-divider
280
246
  border-width="${e.thickness}px"
281
247
  border-style="${e.lineStyle}"
282
- border-color="${N(e.color)}"
248
+ border-color="${I(e.color)}"
283
249
  width="${i}"
284
- padding="${n}"${r}${O(e)}
250
+ padding="${n}"${r}${k(e)}
285
251
  />`;
286
252
  }
287
253
  // ../renderer/src/renderers/spacer.ts
288
- function Ee(e, t) {
289
- return D(e) ? "" : `<mj-spacer height="${e.height}px" padding="0"${e.styles.backgroundColor ? ` container-background-color="${N(e.styles.backgroundColor)}"` : ""}${O(e)} />`;
254
+ function Ce(e, t) {
255
+ return O(e) ? "" : `<mj-spacer height="${e.height}px" padding="0"${e.styles.backgroundColor ? ` container-background-color="${I(e.styles.backgroundColor)}"` : ""}${k(e)} />`;
290
256
  }
291
257
  // ../renderer/src/renderers/html.ts
292
- function De(e, t) {
293
- if (D(e) || !t.allowHtmlBlocks) return "";
258
+ function we(e, t) {
259
+ if (O(e) || !t.allowHtmlBlocks) return "";
294
260
  let n = e.content;
295
261
  if (n === "") return "";
296
- let r = O(e);
297
- return `<mj-text padding="${R(e.styles.padding)}"${z(e.styles.backgroundColor, "container")}${r}>
262
+ let r = k(e);
263
+ return `<mj-text padding="${z(e.styles.padding)}"${B(e.styles.backgroundColor, "container")}${r}>
298
264
  ${n}
299
265
  </mj-text>`;
300
266
  }
301
267
  // ../renderer/src/renderers/social.ts
302
- function Oe(e, t) {
303
- if (D(e)) return "";
304
- let r = e.icons;
305
- if (r.length === 0) return "";
306
- let i = R(e.styles.padding), a = e.styles.backgroundColor ? ` container-background-color="${N(e.styles.backgroundColor)}"` : "", o = O(e), s = e.align, c = e.iconSize, l = e.iconStyle, u = n(l, e.iconTone), d = e.spacing, f;
307
- switch (c) {
268
+ function Te(e, t) {
269
+ if (O(e)) return "";
270
+ let n = e.icons;
271
+ if (n.length === 0) return "";
272
+ let r = z(e.styles.padding), i = e.styles.backgroundColor ? ` container-background-color="${I(e.styles.backgroundColor)}"` : "", a = k(e), o = e.align, s = e.iconSize, c = e.iconStyle, l = ne(c, e.iconTone), u = e.spacing, d;
273
+ switch (s) {
308
274
  case "small":
309
- f = 24;
275
+ d = 24;
310
276
  break;
311
277
  case "large":
312
- f = 48;
278
+ d = 48;
313
279
  break;
314
- default: f = 32;
280
+ default: d = 32;
315
281
  }
316
- let p;
317
- switch (l) {
282
+ let f;
283
+ switch (c) {
318
284
  case "circle":
319
- p = "50%";
285
+ f = "50%";
320
286
  break;
321
287
  case "rounded":
322
- p = "8px";
288
+ f = "8px";
323
289
  break;
324
290
  case "square":
325
- p = "0";
291
+ f = "0";
326
292
  break;
327
- default: p = "4px";
293
+ default: f = "4px";
328
294
  }
329
- let m = r.length;
295
+ let p = n.length;
330
296
  return `<mj-social
331
297
  mode="horizontal"
332
- align="${s}"
298
+ align="${o}"
333
299
  icon-padding="0"
334
- padding="${i}"${a}${o}
300
+ padding="${r}"${i}${a}
335
301
  >
336
- ${r.map((e, n) => {
337
- let r = e.platform, i = N(e.url), a = `${t.socialIconsBaseUrl}/${u}/${r}.png`, o = n === m - 1 ? 0 : d;
338
- 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>`;
302
+ ${n.map((e, n) => {
303
+ let r = e.platform, i = I(e.url), a = `${t.socialIconsBaseUrl}/${l}/${r}.png`, o = n === p - 1 ? 0 : u;
304
+ return `<mj-social-element src="${a}" href="${i}" icon-size="${d}px" padding="0 ${o}px 0 0" border-radius="${f}" background-color="transparent"></mj-social-element>`;
339
305
  }).join("\n")}
340
306
  </mj-social>`;
341
307
  }
342
308
  // ../renderer/src/renderers/menu.ts
343
- function ke(e, t) {
344
- if (D(e) || e.items.length === 0) return "";
345
- let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = O(e), a = Me(e.fontFamily, t), o = e.textAlign;
309
+ function Ee(e, t) {
310
+ if (O(e) || e.items.length === 0) return "";
311
+ let n = z(e.styles.padding), r = B(e.styles.backgroundColor, "container"), i = k(e), a = ke(e.fontFamily, t), o = e.textAlign;
346
312
  return `<mj-text
347
- font-size="${e.fontSize}px"${e.color ? `\n color="${N(e.color)}"` : ""}
313
+ font-size="${e.fontSize}px"${e.color ? `\n color="${I(e.color)}"` : ""}
348
314
  align="${o}"
349
315
  line-height="1.5"
350
316
  padding="${n}"${r}${a}${i}
351
- >${Ae(e)}</mj-text>`;
317
+ >${De(e)}</mj-text>`;
352
318
  }
353
- function Ae(e) {
354
- let t = e.items, n = M(e.separator), r = P(e.separatorColor), i = e.spacing, a = e.linkColor ?? e.color, o = [], s = t.length;
355
- 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>`);
319
+ function De(e) {
320
+ let t = e.items, n = F(e.separator), r = L(e.separatorColor), i = e.spacing, a = e.linkColor ?? e.color, o = [], s = t.length;
321
+ for (let e = 0; e < s; e++) o.push(Oe(t[e], a)), e < s - 1 && o.push(`<span style="color: ${r}; padding: 0 ${i}px;">${n}</span>`);
356
322
  return o.join("");
357
323
  }
358
- function je(e, t) {
359
- let n = M(e.text), r = N(e.url), i = e.color ?? t, a = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", o = ["text-decoration: none"];
360
- 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>`;
324
+ function Oe(e, t) {
325
+ let n = F(e.text), r = I(e.url), i = e.color ?? t, a = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", o = ["text-decoration: none"];
326
+ return i && o.unshift(`color: ${L(i)}`), e.bold && o.push("font-weight: bold"), e.underline && o.push("text-decoration: underline"), `<a href="${r}" style="${o.join("; ")}"${a}>${n}</a>`;
361
327
  }
362
- function Me(e, t) {
363
- return e ? ` font-family="${F(t.resolveFontFamily(e))}"` : "";
328
+ function ke(e, t) {
329
+ return e ? ` font-family="${R(t.resolveFontFamily(e))}"` : "";
364
330
  }
365
331
  // ../renderer/src/renderers/table.ts
366
- function Ne(e, t) {
367
- if (D(e) || e.rows.length === 0) return "";
368
- let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = O(e), a = Le(e.fontFamily, t);
332
+ function Ae(e, t) {
333
+ if (O(e) || e.rows.length === 0) return "";
334
+ let n = z(e.styles.padding), r = B(e.styles.backgroundColor, "container"), i = k(e), a = Pe(e.fontFamily, t);
369
335
  return `<mj-text
370
- font-size="${e.fontSize}px"${e.color ? `\n color="${N(e.color)}"` : ""}
336
+ font-size="${e.fontSize}px"${e.color ? `\n color="${I(e.color)}"` : ""}
371
337
  align="${e.textAlign}"
372
338
  line-height="1.5"
373
339
  padding="${n}"${r}${a}${i}
374
- >${Pe(e)}</mj-text>`;
340
+ >${je(e)}</mj-text>`;
375
341
  }
376
- function Pe(e) {
377
- let t = P(e.borderColor), n = e.borderWidth, r = "";
342
+ function je(e) {
343
+ let t = L(e.borderColor), n = e.borderWidth, r = "";
378
344
  for (let i = 0; i < e.rows.length; i++) {
379
345
  let a = e.rows[i];
380
- r += Fe(a, e, e.hasHeaderRow && i === 0, t, n);
346
+ r += Me(a, e, e.hasHeaderRow && i === 0, t, n);
381
347
  }
382
348
  return `<table style="width: 100%; border-collapse: collapse;">${r}</table>`;
383
349
  }
384
- function Fe(e, t, n, r, i) {
350
+ function Me(e, t, n, r, i) {
385
351
  let a = "";
386
- for (let o of e.cells) a += Ie(o, t, n, r, i);
352
+ for (let o of e.cells) a += Ne(o, t, n, r, i);
387
353
  return `<tr>${a}</tr>`;
388
354
  }
389
- function Ie(e, t, n, r, i) {
355
+ function Ne(e, t, n, r, i) {
390
356
  let a = t.cellPadding, o = [`border: ${i}px solid ${r}`, `padding: ${a}px`];
391
- n && (o.push("font-weight: bold"), t.headerBackgroundColor && o.push(`background-color: ${P(t.headerBackgroundColor)}`));
392
- let s = o.join("; "), c = M(I(e.content)), l = n ? "th" : "td";
357
+ n && (o.push("font-weight: bold"), t.headerBackgroundColor && o.push(`background-color: ${L(t.headerBackgroundColor)}`));
358
+ let s = o.join("; "), c = F(C(e.content)), l = n ? "th" : "td";
393
359
  return `<${l} style="${s}">${c}</${l}>`;
394
360
  }
395
- function Le(e, t) {
396
- return e ? ` font-family="${F(t.resolveFontFamily(e))}"` : "";
361
+ function Pe(e, t) {
362
+ return e ? ` font-family="${R(t.resolveFontFamily(e))}"` : "";
397
363
  }
398
364
  // ../renderer/src/renderers/custom.ts
399
- function Re(e, t) {
400
- if (D(e)) return "";
365
+ function Fe(e, t) {
366
+ if (O(e)) return "";
401
367
  let n = t.customBlockHtml.get(e.id) ?? e.renderedHtml;
402
368
  if (!n || n === "") return "";
403
- let r = O(e);
404
- return `<mj-text padding="${R(e.styles.padding)}"${z(e.styles.backgroundColor, "container")}${r}>
369
+ let r = k(e);
370
+ return `<mj-text padding="${z(e.styles.padding)}"${B(e.styles.backgroundColor, "container")}${r}>
405
371
  ${n}
406
372
  </mj-text>`;
407
373
  }
408
374
  // ../renderer/src/columns.ts
409
- function X(e) {
375
+ function Ie(e) {
410
376
  switch (e) {
411
377
  case "2": return ["50%", "50%"];
412
378
  case "3": return [
@@ -419,7 +385,7 @@ function X(e) {
419
385
  default: return ["100%"];
420
386
  }
421
387
  }
422
- function ze(e, t) {
388
+ function Le(e, t) {
423
389
  switch (e) {
424
390
  case "2": return [t * .5, t * .5];
425
391
  case "3": return [
@@ -433,7 +399,7 @@ function ze(e, t) {
433
399
  }
434
400
  }
435
401
  // ../renderer/src/hero-geometry.ts
436
- function Be(e, t, n) {
402
+ function Re(e, t, n) {
437
403
  let r = Math.max(1, Math.round(t)), i = e.aspectRatio === null ? null : Math.max(1, Math.round(r * e.aspectRatio)), a = Math.max(e.height === "image" ? i ?? r : e.height, Math.trunc(n.top) + Math.trunc(n.bottom));
438
404
  return {
439
405
  mode: "fixed-height",
@@ -451,35 +417,35 @@ function Z(e, t) {
451
417
  <mj-raw>${n.after}</mj-raw>` : t;
452
418
  }
453
419
  // ../renderer/src/renderers/section.ts
454
- function Ve(e, t, n) {
455
- if (D(e)) return "";
456
- let r = a(e);
457
- if (r?.applied) return He(e, r, t, n);
458
- let i = e.columns, o = X(i), s = ze(i, t.containerWidth), c = Math.floor(t.contentWidth) - V(e.styles.padding, e.border), l = o.map((e) => Math.floor(c * parseFloat(e) / 100)), u = R(e.styles.padding), d = z(e.styles.backgroundColor, "native"), f = G(e.backgroundImage), p = O(e), m = W(e.borderRadius), h = U(e.border), g = t.contentDirection === "rtl" ? " direction=\"rtl\"" : "", _ = e.children, y = [];
420
+ function ze(e, t, n) {
421
+ if (O(e)) return "";
422
+ let r = S(e);
423
+ if (r?.applied) return Be(e, r, t, n);
424
+ let i = e.columns, a = Ie(i), o = Le(i, t.containerWidth), s = Math.floor(t.contentWidth) - H(e.styles.padding, e.border), c = a.map((e) => Math.floor(s * parseFloat(e) / 100)), l = z(e.styles.padding), u = B(e.styles.backgroundColor, "native"), d = K(e.backgroundImage), f = k(e), m = G(e.borderRadius), h = W(e.border), g = t.contentDirection === "rtl" ? " direction=\"rtl\"" : "", _ = e.children, v = [];
459
425
  for (let e = 0; e < _.length; e++) {
460
- let r = _[e], i = o[e] ?? "100%", a = Math.floor(s[e] ?? t.containerWidth), u = Ue(r, t.allowHtmlBlocks).filter((e) => !v(e)), d = t.withContainerWidth(a, l[e] ?? c), f = u.map((e) => Z(e, n(e, d))).filter((e) => e !== "").join("\n");
461
- y.push(`<mj-column width="${i}"${g}>
426
+ let r = _[e], i = a[e] ?? "100%", l = Math.floor(o[e] ?? t.containerWidth), u = Ve(r, t.allowHtmlBlocks).filter((e) => !p(e)), d = t.withContainerWidth(l, c[e] ?? s), f = u.map((e) => Z(e, n(e, d))).filter((e) => e !== "").join("\n");
427
+ v.push(`<mj-column width="${i}"${g}>
462
428
  ${f === "" ? "<mj-text>&nbsp;</mj-text>" : f}
463
429
  </mj-column>`);
464
430
  }
465
- let b = y.join("\n");
466
- return `<mj-section${d}${f} padding="${u}"${h}${m}${p}${g}>
467
- ${e.stackOnMobile === !1 && y.length > 1 ? `<mj-group${g}>
468
- ${b}
469
- </mj-group>` : b}
431
+ let y = v.join("\n");
432
+ return `<mj-section${u}${d} padding="${l}"${h}${m}${f}${g}>
433
+ ${e.stackOnMobile === !1 && v.length > 1 ? `<mj-group${g}>
434
+ ${y}
435
+ </mj-group>` : y}
470
436
  </mj-section>`;
471
437
  }
472
- function He(e, t, n, r) {
473
- let i = Math.floor(n.contentWidth), a = Be(t, i, e.styles.padding), o = z(e.styles.backgroundColor, "native") || " background-color=\"transparent\"", s = R(e.styles.padding), c = W(e.borderRadius), l = O(e), u = n.withContainerWidth(i, i - V(e.styles.padding)), d = Ue(e.children[0] ?? [], n.allowHtmlBlocks).filter((e) => !v(e)).map((e) => Z(e, r(e, u))).filter((e) => e !== "").join("\n");
474
- return `<mj-hero mode="${a.mode}" height="${a.height}px" background-url="${N(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}>
438
+ function Be(e, t, n, r) {
439
+ let i = Math.floor(n.contentWidth), a = Re(t, i, e.styles.padding), o = B(e.styles.backgroundColor, "native") || " background-color=\"transparent\"", s = z(e.styles.padding), c = G(e.borderRadius), l = k(e), u = n.withContainerWidth(i, i - H(e.styles.padding)), d = Ve(e.children[0] ?? [], n.allowHtmlBlocks).filter((e) => !p(e)).map((e) => Z(e, r(e, u))).filter((e) => e !== "").join("\n");
440
+ return `<mj-hero mode="${a.mode}" height="${a.height}px" background-url="${I(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}>
475
441
  ${d}
476
442
  </mj-hero>`;
477
443
  }
478
- function Ue(e, t) {
444
+ function Ve(e, t) {
479
445
  return t ? e : e.filter((e) => e.type !== "html");
480
446
  }
481
447
  // ../renderer/src/renderers/video.ts
482
- function We(e, t) {
448
+ function He(e, t) {
483
449
  if (t) return t;
484
450
  if (!e) return null;
485
451
  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})/]) {
@@ -489,85 +455,85 @@ function We(e, t) {
489
455
  let n = e.match(/vimeo\.com\/(?:video\/)?(\d+)/);
490
456
  return n ? `https://vumbnail.com/${n[1]}.jpg` : null;
491
457
  }
492
- function Ge(e, t) {
493
- if (D(e)) return "";
494
- let n = We(e.url, e.thumbnailUrl);
458
+ function Ue(e, t) {
459
+ if (O(e)) return "";
460
+ let n = He(e.url, e.thumbnailUrl);
495
461
  if (!n) return "";
496
- 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 = H(e, t), c = O(e);
462
+ let r = z(e.styles.padding), i = B(e.styles.backgroundColor, "container"), a = e.width === "full" ? t.containerWidth + "px" : e.width + "px", o = V(e.height), s = U(e, t), c = k(e);
497
463
  return `<mj-image
498
- src="${N(n)}"
499
- alt="${N(e.alt)}"
464
+ src="${I(n)}"
465
+ alt="${I(e.alt)}"
500
466
  width="${a}"${o}${s}
501
467
  align="${e.align}"
502
468
  padding="${r}"
503
- href="${N(e.url)}"
469
+ href="${I(e.url)}"
504
470
  target="_blank"
505
471
  rel="noopener"${i}${c}
506
472
  />`;
507
473
  }
508
474
  // ../renderer/src/renderers/index.ts
509
- function Q(e, t) {
510
- let n = t.blockRenderers[e.type];
511
- return n ? n(e, t) : v(e) ? Ve(e, t, Q) : m(e) ? he(e, t) : _(e) ? ve(e, t) : S(e) ? ye(e, t) : x(e) ? be(e, t) : re(e) ? Te(e, t) : b(e) ? Ee(e, t) : g(e) ? De(e, t) : te(e) ? Oe(e, t) : ie(e) ? ke(e, t) : y(e) ? Ne(e, t) : ae(e) ? Ge(e, t) : C(e) ? Re(e, t) : D(e) ? "" : k(e);
475
+ function Q(e, n) {
476
+ let i = n.blockRenderers[e.type];
477
+ return i ? i(e, n) : p(e) ? ze(e, n, Q) : l(e) ? fe(e, n) : se(e) ? he(e, n) : d(e) ? ge(e, n) : h(e) ? _e(e, n) : y(e) ? Se(e, n) : t(e) ? Ce(e, n) : _(e) ? we(e, n) : c(e) ? Te(e, n) : re(e) ? Ee(e, n) : ie(e) ? Ae(e, n) : r(e) ? Ue(e, n) : x(e) ? Fe(e, n) : O(e) ? "" : N(e);
512
478
  }
513
479
  // ../renderer/src/index.ts
514
- var Ke = `.${Y} a { display: block !important; }`;
515
- async function qe(n, r) {
516
- if (r?.customBlocks !== void 0 && r.renderCustomBlock !== void 0) throw TypeError("[Templatical] customBlocks cannot be combined with renderCustomBlock");
517
- if (r?.customBlocks !== void 0 && r.getCustomBlockStylesheet !== void 0) throw TypeError("[Templatical] customBlocks cannot be combined with getCustomBlockStylesheet");
518
- let i = r?.layout ? l(r.layout, n) : (ee(n), t(n), n), a = r?.customFonts ?? [], o = r?.defaultFallbackFont ?? "Arial, sans-serif", s = r?.allowHtmlBlocks ?? !0, c = Qe(r?.socialIconsBaseUrl ?? T), u = r?.customBlocks === void 0 ? await nt(i, r?.renderCustomBlock) : await rt(i, r.customBlocks), d = it(i, r?.getCustomBlockStylesheet, r?.customBlocks === void 0 ? void 0 : new Map(r.customBlocks.map((e) => [e.type, e]))), f = e(i.settings), p = new E(i.settings.width, a, o, s, u, c, r?.blockRenderers ?? {}, f), m = tt(i.blocks, s), 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) => Je(e, p)).filter((e) => e !== "").join("\n"), x = et(a), S = $e(i.settings.preheaderText);
519
- return `<mjml lang="${N(i.settings.locale)}" dir="${N(f)}">
520
- <mj-head>${S}
480
+ var We = `.${X} a { display: block !important; }`;
481
+ async function Ge(t, n) {
482
+ if (n?.customBlocks !== void 0 && n.renderCustomBlock !== void 0) throw TypeError("[Templatical] customBlocks cannot be combined with renderCustomBlock");
483
+ if (n?.customBlocks !== void 0 && n.getCustomBlockStylesheet !== void 0) throw TypeError("[Templatical] customBlocks cannot be combined with getCustomBlockStylesheet");
484
+ let r = n?.locale ?? a(t), s = i(t, r), c = n?.layout ? o(i(n.layout, r, { missing: "default" }), s) : (ee(s), e(s), s), l = n?.customFonts ?? [], u = n?.defaultFallbackFont ?? "Arial, sans-serif", d = n?.allowHtmlBlocks ?? !0, f = Xe(n?.socialIconsBaseUrl ?? E), p = n?.customBlocks === void 0 ? await et(c, n?.renderCustomBlock) : await tt(c, n.customBlocks), m = nt(c, n?.getCustomBlockStylesheet, n?.customBlocks === void 0 ? void 0 : new Map(n.customBlocks.map((e) => [e.type, e]))), h = te(c.settings), g = new D(c.settings.width, l, u, d, p, f, n?.blockRenderers ?? {}, h), _ = $e(c.blocks, d), v = g.resolveFontFamily(c.settings.fontFamily), y = c.settings.backgroundColor, b = c.settings.textColor ? ` color="${I(c.settings.textColor)}"` : "", x = c.settings.linkColor ? L(c.settings.linkColor) : "inherit", S = c.settings.linkUnderline ? "underline" : "none", C = _.map((e) => Ke(e, g)).filter((e) => e !== "").join("\n"), ne = Qe(l), w = Ze(c.settings.preheaderText);
485
+ return `<mjml lang="${I(c.settings.locale)}" dir="${I(h)}">
486
+ <mj-head>${w}
521
487
  <mj-attributes>
522
- <mj-all font-family="${F(h)}" />
523
- <mj-text font-size="14px"${_} />
488
+ <mj-all font-family="${R(v)}" />
489
+ <mj-text font-size="14px"${b} />
524
490
  <mj-section padding="0" />
525
491
  <mj-column padding="0" />
526
- </mj-attributes>${x}
492
+ </mj-attributes>${ne}
527
493
  <mj-style inline="inline">
528
- ${pe(me(m), f)}
529
- ${Ke}
494
+ ${ue(de(_), h)}
495
+ ${We}
530
496
  </mj-style>
531
497
  <mj-style>
532
- a { color: ${v}; text-decoration: ${y}; }
498
+ a { color: ${x}; text-decoration: ${S}; }
533
499
  @media only screen and (max-width: 480px) {
534
500
  .tpl-hide-mobile { display: none !important; mso-hide: all !important; }
535
501
  }
536
502
  @media only screen and (min-width: 481px) {
537
503
  .tpl-hide-desktop { display: none !important; mso-hide: all !important; }
538
504
  }
539
- </mj-style>${at(d)}
505
+ </mj-style>${rt(m)}
540
506
  </mj-head>
541
- <mj-body width="${p.containerWidth}px" background-color="${g}">
542
- ${b}
507
+ <mj-body width="${g.containerWidth}px" background-color="${y}">
508
+ ${C}
543
509
  </mj-body>
544
510
  </mjml>`;
545
511
  }
546
- function Je(e, t) {
547
- if (w(e)) {
548
- let n = Ye(t, e.styles.padding);
549
- return Z(e, Xe(tt(e.children, t.allowHtmlBlocks).map((e) => Je(e, n)).filter((e) => e !== "").join("\n"), {
512
+ function Ke(e, t) {
513
+ if (n(e)) {
514
+ let n = qe(t, e.styles.padding);
515
+ return Z(e, Je($e(e.children, t.allowHtmlBlocks).map((e) => Ke(e, n)).filter((e) => e !== "").join("\n"), {
550
516
  backgroundColor: e.styles.backgroundColor,
551
517
  padding: e.styles.padding,
552
518
  borderRadius: e.borderRadius,
553
519
  backgroundImage: e.backgroundImage
554
520
  }, t.contentDirection));
555
521
  }
556
- if (v(e)) {
557
- let n = Q(e, e.wrapper ? Ye(t, e.wrapper.padding) : t);
558
- return Z(e, e.wrapper && n !== "" ? Xe(n, e.wrapper, t.contentDirection) : n);
522
+ if (p(e)) {
523
+ let n = Q(e, e.wrapper ? qe(t, e.wrapper.padding) : t);
524
+ return Z(e, e.wrapper && n !== "" ? Je(n, e.wrapper, t.contentDirection) : n);
559
525
  }
560
- return Z(e, Ze(Q(e, t), t.contentDirection));
526
+ return Z(e, Ye(Q(e, t), t.contentDirection));
561
527
  }
562
- function Ye(e, t) {
563
- return e.withContainerWidth(e.containerWidth, Math.floor(e.contentWidth) - V(t));
528
+ function qe(e, t) {
529
+ return e.withContainerWidth(e.containerWidth, Math.floor(e.contentWidth) - H(t));
564
530
  }
565
- function Xe(e, t, n) {
566
- return `<mj-wrapper${z(t.backgroundColor, "native")}${G(t.backgroundImage)}${` padding="${t.padding ? R(t.padding) : "0"}"`}${W(t.borderRadius)}${n === "rtl" ? " direction=\"rtl\"" : ""}>
531
+ function Je(e, t, n) {
532
+ return `<mj-wrapper${B(t.backgroundColor, "native")}${K(t.backgroundImage)}${` padding="${t.padding ? z(t.padding) : "0"}"`}${G(t.borderRadius)}${n === "rtl" ? " direction=\"rtl\"" : ""}>
567
533
  ${e}
568
534
  </mj-wrapper>`;
569
535
  }
570
- function Ze(e, t) {
536
+ function Ye(e, t) {
571
537
  if (e === "") return "";
572
538
  let n = t === "rtl" ? " direction=\"rtl\"" : "";
573
539
  return `<mj-section${n}>
@@ -576,21 +542,21 @@ ${e}
576
542
  </mj-column>
577
543
  </mj-section>`;
578
544
  }
579
- function Qe(e) {
545
+ function Xe(e) {
580
546
  return e.endsWith("/") ? e.slice(0, -1) : e;
581
547
  }
582
- function $e(e) {
548
+ function Ze(e) {
583
549
  if (!e) return "";
584
550
  let t = e.trim();
585
- return t === "" ? "" : `\n <mj-preview>${M(t)}</mj-preview>`;
551
+ return t === "" ? "" : `\n <mj-preview>${F(t)}</mj-preview>`;
586
552
  }
587
- function et(e) {
588
- return e.length === 0 ? "" : e.map((e) => `\n <mj-font name="${N(e.name)}" href="${N(e.url)}" />`).join("");
553
+ function Qe(e) {
554
+ return e.length === 0 ? "" : e.map((e) => `\n <mj-font name="${I(e.name)}" href="${I(e.url)}" />`).join("");
589
555
  }
590
- function tt(e, t) {
556
+ function $e(e, t) {
591
557
  return t ? e : e.filter((e) => e.type !== "html");
592
558
  }
593
- async function nt(e, t) {
559
+ async function et(e, t) {
594
560
  let n = /* @__PURE__ */ new Map();
595
561
  if (!t) return n;
596
562
  let r = [];
@@ -599,31 +565,31 @@ async function nt(e, t) {
599
565
  for (let e = 0; e < r.length; e++) n.set(r[e].id, i[e]);
600
566
  return n;
601
567
  }
602
- async function rt(e, t) {
568
+ async function tt(e, t) {
603
569
  let n = /* @__PURE__ */ new Map(), r = [];
604
570
  if ($(e.blocks, r), r.length === 0) return n;
605
571
  let i;
606
572
  try {
607
- i = await import("./liquid.browser-DkLBNrft.js");
573
+ i = await import("./liquid.browser-rubac0VA.js");
608
574
  } catch {
609
575
  throw Error("[Templatical] customBlocks requires the optional liquidjs package.");
610
576
  }
611
- let a = u(i), o = new Map(t.map((e) => [e.type, e])), s = await Promise.all(r.map(async (e) => {
577
+ let a = s(i), o = new Map(t.map((e) => [e.type, e])), c = await Promise.all(r.map(async (e) => {
612
578
  let t = o.get(e.customType);
613
579
  return t ? String(await a.parseAndRender(t.template, e.fieldValues)) : void 0;
614
580
  }));
615
581
  for (let e = 0; e < r.length; e++) {
616
- let t = s[e];
582
+ let t = c[e];
617
583
  t !== void 0 && n.set(r[e].id, t);
618
584
  }
619
585
  return n;
620
586
  }
621
587
  function $(e, t) {
622
- for (let n of e) if (C(n)) t.push(n);
623
- else if (v(n)) for (let e of n.children) $(e, t);
624
- else w(n) && $(n.children, t);
588
+ for (let r of e) if (x(r)) t.push(r);
589
+ else if (p(r)) for (let e of r.children) $(e, t);
590
+ else n(r) && $(r.children, t);
625
591
  }
626
- function it(e, t, n) {
592
+ function nt(e, t, n) {
627
593
  let r = [];
628
594
  if ($(e.blocks, r), r.length === 0) return [];
629
595
  let i = /* @__PURE__ */ new Map();
@@ -639,9 +605,9 @@ function it(e, t, n) {
639
605
  }
640
606
  return s;
641
607
  }
642
- function at(e) {
608
+ function rt(e) {
643
609
  return e.length === 0 ? "" : e.map((e) => `\n <mj-style>\n${e}\n </mj-style>`).join("");
644
610
  }
645
- export { Y as BUTTON_FULL_WIDTH_CSS_CLASS, T as DEFAULT_SOCIAL_ICONS_BASE_URL, K as RICH_TEXT_CSS_CLASS, E as RenderContext, le as UNRENDERABLE_MARKER_PREFIX, I as convertMergeTagsToValues, N as escapeAttr, M as escapeHtml, H as fluidOnMobileAttr, O as getCssClassAttr, ce as getCssClasses, X as getWidthPercentages, ze as getWidthPixels, D as isHiddenOnAll, Q as renderBlock, qe as renderToMjml, k as renderUnrenderableBlock, J as resolveParagraphGap, q as richTextGapClass, R as toPaddingString };
611
+ export { X as BUTTON_FULL_WIDTH_CSS_CLASS, E as DEFAULT_SOCIAL_ICONS_BASE_URL, q as RICH_TEXT_CSS_CLASS, D as RenderContext, j as UNRENDERABLE_MARKER_PREFIX, C as convertMergeTagsToValues, I as escapeAttr, F as escapeHtml, U as fluidOnMobileAttr, k as getCssClassAttr, A as getCssClasses, Ie as getWidthPercentages, Le as getWidthPixels, O as isHiddenOnAll, Q as renderBlock, Ge as renderToMjml, N as renderUnrenderableBlock, Y as resolveParagraphGap, J as richTextGapClass, z as toPaddingString };
646
612
 
647
- //# sourceMappingURL=src-CUH_EI7k.js.map
613
+ //# sourceMappingURL=src-Ddpm4HsS.js.map