@templatical/editor 0.56.0 → 0.57.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 (308) hide show
  1. package/README.md +1 -1
  2. package/dist/{AiAltTextPopover-DdsvhE78.js → AiAltTextPopover-BjClNscQ.js} +6 -6
  3. package/dist/{AiAltTextReview-P6to1_0t.js → AiAltTextReview-DeMdVbtT.js} +7 -7
  4. package/dist/{AiChatPanel-BSlmzMRC.js → AiChatPanel-Cros4ZCM.js} +64 -67
  5. package/dist/AiPanels-D_CdHqFZ.js +26 -0
  6. package/dist/{AiRewriteMenu-DIISOR6U.js → AiRewriteMenu-BSzj1dKC.js} +53 -53
  7. package/dist/{BlockIssueBadge-Bmtc50BQ.js → BlockIssueBadge-i2cZy5PB.js} +6 -6
  8. package/dist/{BlockPreviewCanvas-BYIzNn-9.js → BlockPreviewCanvas-D-If_vd_.js} +58 -58
  9. package/dist/{CloudHeaderExtras-Cqhw-jMz.js → CloudHeaderExtras-CJsXi4Ku.js} +2 -2
  10. package/dist/{CloudPanels-w34W8_BP.js → CloudPanels-DPeK_siQ.js} +14 -14
  11. package/dist/{CollaborationNotices-HTbCebjV.js → CollaborationNotices-DkYX-ose.js} +9 -9
  12. package/dist/{CollaboratorBar-CLQjksX-.js → CollaboratorBar-xDweDvB6.js} +3 -3
  13. package/dist/CommentsPanel-t3w16YUl.js +23 -0
  14. package/dist/CommentsSidebar-B3M90RY_.js +516 -0
  15. package/dist/{CountdownBlock-BTXcCvjZ.js → CountdownBlock-BrR2uqM3.js} +7 -7
  16. package/dist/{CountdownToolbar-CP-pkntQ.js → CountdownToolbar-DBu2ZqC6.js} +32 -32
  17. package/dist/{IssuesPanel-CiiNBzH0.js → IssuesPanel-BnUut-p-.js} +89 -89
  18. package/dist/LanguageMenu-DfTxrbvp.js +403 -0
  19. package/dist/{LoadingTrack-BG8cg9xi.js → LoadingTrack-c4SeD16s.js} +1 -1
  20. package/dist/{LocaleNotices-CTCZ7BYv.js → LocaleNotices-D6zk-QCL.js} +11 -11
  21. package/dist/{LogicTagInsertButton-DEOPc4RC.js → LogicTagInsertButton-CJ1Jk6jv.js} +65 -65
  22. package/dist/{MediaEditModal-DJsPLTwP.js → MediaEditModal-BxbwZxnf.js} +10 -10
  23. package/dist/{MediaPanels-D2WD2aE2.js → MediaPanels-BiUxsTMM.js} +2 -2
  24. package/dist/{MergeTagInput-C9icdxw7.js → MergeTagInput-CV-z85s9.js} +13 -13
  25. package/dist/{MergeTagModeToggle-DXvb80OE.js → MergeTagModeToggle-CixgX5C_.js} +7 -7
  26. package/dist/{MergeTagTextarea-CrAcmT3A.js → MergeTagTextarea-B1zOC_Nr.js} +9 -9
  27. package/dist/{ParagraphEditor-BWBQ3jKz.js → ParagraphEditor-C9UhWvRB.js} +174 -174
  28. package/dist/{RestoreVersionDialog-CqAp16yQ.js → RestoreVersionDialog-Do7fZWpT.js} +13 -13
  29. package/dist/{RichTextEditorContent-xbBjVPVQ.js → RichTextEditorContent-wW_SMun2.js} +10 -10
  30. package/dist/{SaveBlockDialog-pebNJBTc.js → SaveBlockDialog-CCHIUfR-.js} +49 -49
  31. package/dist/{SavedBlocksBrowserModal-CvagMcv7.js → SavedBlocksBrowserModal-DtPHhfw9.js} +26 -26
  32. package/dist/{SavedBlocksPanels-B9AAVBDm.js → SavedBlocksPanels-CYIby5pR.js} +2 -2
  33. package/dist/{SavedBlocksPickBar-BIANWe3i.js → SavedBlocksPickBar-CCwBugqN.js} +10 -10
  34. package/dist/{TemplateSettings-ORq4PbCN.js → TemplateSettings-B8IVy5q9.js} +42 -42
  35. package/dist/{TestEmailModal-DRjCpcPl.js → TestEmailModal-CS5JoKRH.js} +22 -22
  36. package/dist/{TestEmailPanel-H0v8El__.js → TestEmailPanel-sOIZfKzc.js} +2 -2
  37. package/dist/{TitleEditor-CEGbJXeU.js → TitleEditor-ZlBcq9_P.js} +22 -22
  38. package/dist/{ToggleSwitch-R3wCCYE6.js → ToggleSwitch-BIPdFWUr.js} +1 -1
  39. package/dist/{Toolbar-XT-uGA9J.js → Toolbar-c4_rLLJT.js} +659 -659
  40. package/dist/{TplModal-7NQq5-VW.js → TplModal-DnFFEulp.js} +6 -6
  41. package/dist/{VersionHistoryMenu-C8BE3Pr-.js → VersionHistoryMenu-Cd2IaHgT.js} +19 -19
  42. package/dist/{VersionHistoryPanels-CuKuOSJG.js → VersionHistoryPanels-TdGaMaa_.js} +2 -2
  43. package/dist/{VersionPreviewBanner-BVFBkveR.js → VersionPreviewBanner-lkAf7tc8.js} +8 -8
  44. package/dist/{WrapperBlock-Bdw-072t.js → WrapperBlock-BiW4ye3w.js} +12 -12
  45. package/dist/{blockTypeIcons-CGplGmmr.js → blockTypeIcons-D1aYMC1M.js} +3 -3
  46. package/dist/bundle-stats.json +7 -7
  47. package/dist/cdn/chunks/{AiAltTextPopover-x999Gimz.js → AiAltTextPopover-CfGJNBOb.js} +6 -6
  48. package/dist/cdn/chunks/{AiAltTextPopover-x999Gimz.js.map → AiAltTextPopover-CfGJNBOb.js.map} +1 -1
  49. package/dist/cdn/chunks/{AiAltTextReview-DjnFz1wO.js → AiAltTextReview-PKe31R_g.js} +7 -7
  50. package/dist/cdn/chunks/{AiAltTextReview-DjnFz1wO.js.map → AiAltTextReview-PKe31R_g.js.map} +1 -1
  51. package/dist/cdn/chunks/{AiChatPanel-DKDu9cs7.js → AiChatPanel-DNCUpV8n.js} +112 -115
  52. package/dist/cdn/chunks/AiChatPanel-DNCUpV8n.js.map +1 -0
  53. package/dist/cdn/chunks/AiPanels-IV0VEkBL.js +27 -0
  54. package/dist/cdn/chunks/AiPanels-IV0VEkBL.js.map +1 -0
  55. package/dist/cdn/chunks/{AiRewriteMenu-s79rmHFy.js → AiRewriteMenu-ZDBwReuU.js} +61 -61
  56. package/dist/cdn/chunks/AiRewriteMenu-ZDBwReuU.js.map +1 -0
  57. package/dist/cdn/chunks/{BlockIssueBadge-Bnmq_M4G.js → BlockIssueBadge-DIlFDDwh.js} +6 -6
  58. package/dist/cdn/chunks/BlockIssueBadge-DIlFDDwh.js.map +1 -0
  59. package/dist/cdn/chunks/BlockPreviewCanvas-D7U6nQ7t.js +156 -0
  60. package/dist/cdn/chunks/BlockPreviewCanvas-D7U6nQ7t.js.map +1 -0
  61. package/dist/cdn/chunks/{CloudHeaderExtras-uUJYJFJ6.js → CloudHeaderExtras-CazfMn6A.js} +3 -3
  62. package/dist/cdn/chunks/{CloudHeaderExtras-uUJYJFJ6.js.map → CloudHeaderExtras-CazfMn6A.js.map} +1 -1
  63. package/dist/cdn/chunks/{CloudPanels-DQnlH_YJ.js → CloudPanels-EXXNMLbs.js} +5 -5
  64. package/dist/cdn/chunks/CloudPanels-EXXNMLbs.js.map +1 -0
  65. package/dist/cdn/chunks/{CollaborationNotices-CHqUGhOZ.js → CollaborationNotices-DGA8XRZJ.js} +10 -10
  66. package/dist/cdn/chunks/{CollaborationNotices-CHqUGhOZ.js.map → CollaborationNotices-DGA8XRZJ.js.map} +1 -1
  67. package/dist/cdn/chunks/{CollaboratorBar-C1ZI2xwa.js → CollaboratorBar-BWL1Shc1.js} +4 -4
  68. package/dist/cdn/chunks/{CollaboratorBar-C1ZI2xwa.js.map → CollaboratorBar-BWL1Shc1.js.map} +1 -1
  69. package/dist/cdn/chunks/CommentsPanel-4mrl4zMK.js +24 -0
  70. package/dist/cdn/chunks/CommentsPanel-4mrl4zMK.js.map +1 -0
  71. package/dist/cdn/chunks/CommentsSidebar-BJ87vc7i.js +486 -0
  72. package/dist/cdn/chunks/CommentsSidebar-BJ87vc7i.js.map +1 -0
  73. package/dist/cdn/chunks/{CountdownBlock-DyGsh92b.js → CountdownBlock-Do6oItNW.js} +8 -8
  74. package/dist/cdn/chunks/{CountdownBlock-DyGsh92b.js.map → CountdownBlock-Do6oItNW.js.map} +1 -1
  75. package/dist/cdn/chunks/{CountdownToolbar-Ddj2erNm.js → CountdownToolbar-BN2_zvRj.js} +52 -52
  76. package/dist/cdn/chunks/{CountdownToolbar-Ddj2erNm.js.map → CountdownToolbar-BN2_zvRj.js.map} +1 -1
  77. package/dist/cdn/chunks/{IssuesPanel-DnSnEh1X.js → IssuesPanel-BDwegn0s.js} +14 -14
  78. package/dist/cdn/chunks/IssuesPanel-BDwegn0s.js.map +1 -0
  79. package/dist/cdn/chunks/{LanguageMenu-C2I_yTL5.js → LanguageMenu-DXq9cXUd.js} +58 -58
  80. package/dist/cdn/chunks/LanguageMenu-DXq9cXUd.js.map +1 -0
  81. package/dist/cdn/chunks/{LoadingTrack-DUYcDHOV.js → LoadingTrack-o-89hApJ.js} +2 -2
  82. package/dist/cdn/chunks/{LoadingTrack-DUYcDHOV.js.map → LoadingTrack-o-89hApJ.js.map} +1 -1
  83. package/dist/cdn/chunks/{LocaleNotices-Dr9LRCAg.js → LocaleNotices-CUN5K5QJ.js} +11 -11
  84. package/dist/cdn/chunks/{LocaleNotices-Dr9LRCAg.js.map → LocaleNotices-CUN5K5QJ.js.map} +1 -1
  85. package/dist/cdn/chunks/{LogicTagInsertButton-BdzE9-l7.js → LogicTagInsertButton-BEArlbra.js} +12 -12
  86. package/dist/cdn/chunks/{LogicTagInsertButton-BdzE9-l7.js.map → LogicTagInsertButton-BEArlbra.js.map} +1 -1
  87. package/dist/cdn/chunks/{MediaEditModal-CMJFXu_o.js → MediaEditModal-BHTMNHx0.js} +10 -10
  88. package/dist/cdn/chunks/{MediaEditModal-CMJFXu_o.js.map → MediaEditModal-BHTMNHx0.js.map} +1 -1
  89. package/dist/cdn/chunks/{MediaPanels-C790ZXuY.js → MediaPanels-BlianNRh.js} +3 -3
  90. package/dist/cdn/chunks/{MediaPanels-C790ZXuY.js.map → MediaPanels-BlianNRh.js.map} +1 -1
  91. package/dist/cdn/chunks/{MergeTagInput-CmrX8Md6.js → MergeTagInput-B3SLXXzL.js} +14 -14
  92. package/dist/cdn/chunks/{MergeTagInput-CmrX8Md6.js.map → MergeTagInput-B3SLXXzL.js.map} +1 -1
  93. package/dist/cdn/chunks/{MergeTagModeToggle-D7maMGIM.js → MergeTagModeToggle-Dywp9ntA.js} +6 -6
  94. package/dist/cdn/chunks/{MergeTagModeToggle-D7maMGIM.js.map → MergeTagModeToggle-Dywp9ntA.js.map} +1 -1
  95. package/dist/cdn/chunks/{MergeTagTextarea-KOnd2teB.js → MergeTagTextarea-B9TM7FgM.js} +7 -7
  96. package/dist/cdn/chunks/{MergeTagTextarea-KOnd2teB.js.map → MergeTagTextarea-B9TM7FgM.js.map} +1 -1
  97. package/dist/cdn/chunks/{ParagraphEditor-I9lbKaPk.js → ParagraphEditor-CVGtTYta.js} +107 -107
  98. package/dist/cdn/chunks/{ParagraphEditor-I9lbKaPk.js.map → ParagraphEditor-CVGtTYta.js.map} +1 -1
  99. package/dist/cdn/chunks/{RestoreVersionDialog-DqbULAbc.js → RestoreVersionDialog-Dt_0qOOW.js} +13 -13
  100. package/dist/cdn/chunks/RestoreVersionDialog-Dt_0qOOW.js.map +1 -0
  101. package/dist/cdn/chunks/{RichTextEditorContent-_O22z0pn.js → RichTextEditorContent-BjN4mnzL.js} +9 -9
  102. package/dist/cdn/chunks/{RichTextEditorContent-_O22z0pn.js.map → RichTextEditorContent-BjN4mnzL.js.map} +1 -1
  103. package/dist/cdn/chunks/{SaveBlockDialog-CClRLXgF.js → SaveBlockDialog-D9eBjE99.js} +51 -51
  104. package/dist/cdn/chunks/{SaveBlockDialog-CClRLXgF.js.map → SaveBlockDialog-D9eBjE99.js.map} +1 -1
  105. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BIaxaxw9.js → SavedBlocksBrowserModal-ClsTpkdk.js} +24 -24
  106. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BIaxaxw9.js.map → SavedBlocksBrowserModal-ClsTpkdk.js.map} +1 -1
  107. package/dist/cdn/chunks/{SavedBlocksPanels-Dfu9N6YW.js → SavedBlocksPanels-CxlNHhUs.js} +3 -3
  108. package/dist/cdn/chunks/{SavedBlocksPanels-Dfu9N6YW.js.map → SavedBlocksPanels-CxlNHhUs.js.map} +1 -1
  109. package/dist/cdn/chunks/{SavedBlocksPickBar-DiMW_dbJ.js → SavedBlocksPickBar-C7_Z8phX.js} +12 -12
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-DiMW_dbJ.js.map → SavedBlocksPickBar-C7_Z8phX.js.map} +1 -1
  111. package/dist/cdn/chunks/{TemplateSettings-JMUo0LIV.js → TemplateSettings-B6zDtjSs.js} +102 -102
  112. package/dist/cdn/chunks/{TemplateSettings-JMUo0LIV.js.map → TemplateSettings-B6zDtjSs.js.map} +1 -1
  113. package/dist/cdn/chunks/{TestEmailModal-D52VtwBZ.js → TestEmailModal-CJ_QYFua.js} +21 -21
  114. package/dist/cdn/chunks/{TestEmailModal-D52VtwBZ.js.map → TestEmailModal-CJ_QYFua.js.map} +1 -1
  115. package/dist/cdn/chunks/{TestEmailPanel-D9ezVDHd.js → TestEmailPanel-CsFrTq_a.js} +3 -3
  116. package/dist/cdn/chunks/{TestEmailPanel-D9ezVDHd.js.map → TestEmailPanel-CsFrTq_a.js.map} +1 -1
  117. package/dist/cdn/chunks/{TitleEditor-D04vvbUc.js → TitleEditor-CuKJptyw.js} +20 -20
  118. package/dist/cdn/chunks/{TitleEditor-D04vvbUc.js.map → TitleEditor-CuKJptyw.js.map} +1 -1
  119. package/dist/cdn/chunks/{ToggleSwitch-BSkySwA1.js → ToggleSwitch-C0w0srN_.js} +2 -2
  120. package/dist/cdn/chunks/{ToggleSwitch-BSkySwA1.js.map → ToggleSwitch-C0w0srN_.js.map} +1 -1
  121. package/dist/cdn/chunks/{Toolbar-C_Hfsher.js → Toolbar-TS2WwlPW.js} +542 -542
  122. package/dist/cdn/chunks/Toolbar-TS2WwlPW.js.map +1 -0
  123. package/dist/cdn/chunks/{TplModal-d6fEZGJ5.js → TplModal-CsadClrH.js} +7 -7
  124. package/dist/cdn/chunks/{TplModal-d6fEZGJ5.js.map → TplModal-CsadClrH.js.map} +1 -1
  125. package/dist/cdn/chunks/{VersionHistoryMenu-C8ucm43v.js → VersionHistoryMenu-BNPxnWiO.js} +16 -16
  126. package/dist/cdn/chunks/{VersionHistoryMenu-C8ucm43v.js.map → VersionHistoryMenu-BNPxnWiO.js.map} +1 -1
  127. package/dist/cdn/chunks/{VersionHistoryPanels-BAdzmhvH.js → VersionHistoryPanels-CieY91f0.js} +3 -3
  128. package/dist/cdn/chunks/{VersionHistoryPanels-BAdzmhvH.js.map → VersionHistoryPanels-CieY91f0.js.map} +1 -1
  129. package/dist/cdn/chunks/{VersionPreviewBanner-BWuovbFc.js → VersionPreviewBanner-BldFvgxJ.js} +9 -9
  130. package/dist/cdn/chunks/{VersionPreviewBanner-BWuovbFc.js.map → VersionPreviewBanner-BldFvgxJ.js.map} +1 -1
  131. package/dist/cdn/chunks/{WrapperBlock-TXDSDXUP.js → WrapperBlock-DtnRuKWE.js} +13 -13
  132. package/dist/cdn/chunks/{WrapperBlock-TXDSDXUP.js.map → WrapperBlock-DtnRuKWE.js.map} +1 -1
  133. package/dist/cdn/chunks/{blockTypeIcons-CzYA5DF9.js → blockTypeIcons-19xd5ZPi.js} +6 -6
  134. package/dist/cdn/chunks/{blockTypeIcons-CzYA5DF9.js.map → blockTypeIcons-19xd5ZPi.js.map} +1 -1
  135. package/dist/cdn/chunks/{composables-CsfQlmcf.js → composables-CUIiW9OD.js} +1190 -1170
  136. package/dist/cdn/chunks/composables-CUIiW9OD.js.map +1 -0
  137. package/dist/cdn/chunks/{createCloudRuntime-PpIFCDfj.js → createCloudRuntime-B7D04wKf.js} +161 -147
  138. package/dist/cdn/chunks/createCloudRuntime-B7D04wKf.js.map +1 -0
  139. package/dist/cdn/chunks/da-CYWJkrTg.js +97 -0
  140. package/dist/cdn/chunks/da-CYWJkrTg.js.map +1 -0
  141. package/dist/cdn/chunks/da-qQzj0QGy.js +950 -0
  142. package/dist/cdn/chunks/da-qQzj0QGy.js.map +1 -0
  143. package/dist/cdn/chunks/{dist-BzXULHvI.js → dist-BtWMy7UQ.js} +3 -3
  144. package/dist/cdn/chunks/{dist-BzXULHvI.js.map → dist-BtWMy7UQ.js.map} +1 -1
  145. package/dist/cdn/chunks/dist-zu1jwYIS.js +405 -0
  146. package/dist/cdn/chunks/{dist-DqGgijFI.js.map → dist-zu1jwYIS.js.map} +1 -1
  147. package/dist/cdn/chunks/{draggable-DepKdldn.js → draggable-IRVFEZ-b.js} +1535 -1500
  148. package/dist/cdn/chunks/draggable-IRVFEZ-b.js.map +1 -0
  149. package/dist/cdn/chunks/{editor-modal-B8UE9V8B.js → editor-modal-CarOiAYJ.js} +137 -136
  150. package/dist/cdn/chunks/{editor-modal-B8UE9V8B.js.map → editor-modal-CarOiAYJ.js.map} +1 -1
  151. package/dist/cdn/chunks/en-B4s_0ryk.js +1 -0
  152. package/dist/cdn/chunks/{extensions-BM6ZSnsQ.js → extensions-Cbvk9i08.js} +96 -96
  153. package/dist/cdn/chunks/{extensions-BM6ZSnsQ.js.map → extensions-Cbvk9i08.js.map} +1 -1
  154. package/dist/cdn/chunks/{icons-DHExFLlT.js → icons-Cl4oR2mf.js} +73 -73
  155. package/dist/cdn/chunks/icons-Cl4oR2mf.js.map +1 -0
  156. package/dist/cdn/chunks/keys-BQqbBUag.js +11 -0
  157. package/dist/cdn/chunks/keys-BQqbBUag.js.map +1 -0
  158. package/dist/cdn/chunks/{normalizeMergeTagMarkup-aWjkotui.js → normalizeMergeTagMarkup-BJ-MnCqF.js} +55 -55
  159. package/dist/cdn/chunks/{normalizeMergeTagMarkup-aWjkotui.js.map → normalizeMergeTagMarkup-BJ-MnCqF.js.map} +1 -1
  160. package/dist/cdn/chunks/{preRenderCustomBlocks-Dn6dFUwx.js → preRenderCustomBlocks-D2wISRHq.js} +2 -2
  161. package/dist/cdn/chunks/{preRenderCustomBlocks-Dn6dFUwx.js.map → preRenderCustomBlocks-D2wISRHq.js.map} +1 -1
  162. package/dist/cdn/chunks/sanitizeHtml-CB7fjHFs.js +72 -0
  163. package/dist/cdn/chunks/sanitizeHtml-CB7fjHFs.js.map +1 -0
  164. package/dist/cdn/chunks/{socialIcons-Qw9rHc8C.js → socialIcons-C_yggK1_.js} +575 -524
  165. package/dist/cdn/chunks/socialIcons-C_yggK1_.js.map +1 -0
  166. package/dist/cdn/chunks/{src-C9JWWxAk.js → src-Bp7bZcuD.js} +108 -95
  167. package/dist/cdn/chunks/src-Bp7bZcuD.js.map +1 -0
  168. package/dist/cdn/chunks/{src-mXG-Of9A.js → src-CdVAke9t.js} +721 -696
  169. package/dist/cdn/chunks/src-CdVAke9t.js.map +1 -0
  170. package/dist/cdn/chunks/{src-Bfj1jHnn.js → src-D-URHI0Z.js} +232 -228
  171. package/dist/cdn/chunks/src-D-URHI0Z.js.map +1 -0
  172. package/dist/cdn/chunks/{tiptap-Dipw_zOQ.js → tiptap-BPiZqxCt.js} +42 -33
  173. package/dist/cdn/chunks/tiptap-BPiZqxCt.js.map +1 -0
  174. package/dist/cdn/chunks/{useCloudI18n-Xsih9yRH.js → useCloudI18n-Dr4S2TRW.js} +3 -3
  175. package/dist/cdn/chunks/{useCloudI18n-Xsih9yRH.js.map → useCloudI18n-Dr4S2TRW.js.map} +1 -1
  176. package/dist/cdn/chunks/useEditorRoot-B_kf_k-g.js +9 -0
  177. package/dist/cdn/chunks/{useEditorRoot-Beau2Z_T.js.map → useEditorRoot-B_kf_k-g.js.map} +1 -1
  178. package/dist/cdn/chunks/{useI18n-D8s7HtTn.js → useI18n-CSf-ZpcM.js} +3 -3
  179. package/dist/cdn/chunks/{useI18n-D8s7HtTn.js.map → useI18n-CSf-ZpcM.js.map} +1 -1
  180. package/dist/cdn/chunks/useLocalizedDisplay-slFOCPrh.js +33 -0
  181. package/dist/cdn/chunks/{useLocalizedDisplay-Bgg4qpev.js.map → useLocalizedDisplay-slFOCPrh.js.map} +1 -1
  182. package/dist/cdn/chunks/{useLogicTag-DLvWzWsp.js → useLogicTag-lPjCGeGC.js} +5 -5
  183. package/dist/cdn/chunks/{useLogicTag-DLvWzWsp.js.map → useLogicTag-lPjCGeGC.js.map} +1 -1
  184. package/dist/cdn/chunks/{useMergeTag-B4FHCGGm.js → useMergeTag-BKNBwIry.js} +8 -8
  185. package/dist/cdn/chunks/{useMergeTag-B4FHCGGm.js.map → useMergeTag-BKNBwIry.js.map} +1 -1
  186. package/dist/cdn/chunks/{usePopoverPosition-esO6wjvU.js → usePopoverPosition-BJFFi8x6.js} +3 -3
  187. package/dist/cdn/chunks/{usePopoverPosition-esO6wjvU.js.map → usePopoverPosition-BJFFi8x6.js.map} +1 -1
  188. package/dist/cdn/chunks/{useScrollToBlock-CJuUu7Xj.js → useScrollToBlock-MI4PP5lk.js} +3 -3
  189. package/dist/cdn/chunks/{useScrollToBlock-CJuUu7Xj.js.map → useScrollToBlock-MI4PP5lk.js.map} +1 -1
  190. package/dist/cdn/chunks/{withCurrentFont-QqBilClC.js → withCurrentFont-CzTFFaJA.js} +2 -2
  191. package/dist/cdn/chunks/{withCurrentFont-QqBilClC.js.map → withCurrentFont-CzTFFaJA.js.map} +1 -1
  192. package/dist/cdn/editor.css +1 -1
  193. package/dist/cdn/editor.js +784 -762
  194. package/dist/cdn/editor.js.map +1 -1
  195. package/dist/{check-CcuCoJDh.js → check-C7ua4TAK.js} +1 -1
  196. package/dist/{chevron-down-BfYIbFbC.js → chevron-down-DftQrAkI.js} +1 -1
  197. package/dist/{chevron-right-DyjFqY35.js → chevron-right-B-DULGbg.js} +1 -1
  198. package/dist/{chevron-up-BHEIxuS-.js → chevron-up-CeYsyD8c.js} +1 -1
  199. package/dist/{circle-alert-Tq7kAh9S.js → circle-exclamation-point-DHjORV_I.js} +3 -3
  200. package/dist/{clock-Df0ZiXwQ.js → clock-CajOtLEZ.js} +1 -1
  201. package/dist/{composables-CRX6rncm.js → composables-DbjgUQlV.js} +1663 -1643
  202. package/dist/{createCloudRuntime-DplyIlsy.js → createCloudRuntime-Cnh2M6iT.js} +54 -40
  203. package/dist/{createLucideIcon-CfBdtoUw.js → createLucideIcon-D-mELTSY.js} +6 -6
  204. package/dist/da-CYWJkrTg.js +95 -0
  205. package/dist/da-qQzj0QGy.js +948 -0
  206. package/dist/{dist-CX7skkvG.js → dist-A328tG0Z.js} +2 -2
  207. package/dist/{dist-B8dY8drK.js → dist-B15BvV94.js} +2 -2
  208. package/dist/{dist-TAv500j6.js → dist-B3G4Yvpd.js} +3 -3
  209. package/dist/dist-B6ptxfPo.js +406 -0
  210. package/dist/{dist-ChOb5XHW.js → dist-BmV-2uBJ.js} +2 -2
  211. package/dist/{dist-fqSers8_.js → dist-BxKFi2h_.js} +199 -199
  212. package/dist/{dist-BMUUt3zJ.js → dist-CAvsz9cW.js} +680 -655
  213. package/dist/{dist-D_XrUEET.js → dist-CMBOqk9I.js} +7 -7
  214. package/dist/{dist-DZ3X-uB8.js → dist-CXTsTO5h.js} +2 -2
  215. package/dist/{dist-B9a7iVye.js → dist-D5BUcCjv.js} +2 -2
  216. package/dist/dist-D9cbSSSx.js +4 -0
  217. package/dist/{dist-54VCNoC0.js → dist-DAdrn64r.js} +2 -2
  218. package/dist/{dist-BWflWcpW.js → dist-DENg3ORe.js} +33 -24
  219. package/dist/{dist-C3hu_C3w.js → dist-DI_8rB1X.js} +2 -2
  220. package/dist/dist-ELLEk-lS.js +4 -0
  221. package/dist/{editor-modal-D9HT9bD6.js → editor-modal-CgsaLpwB.js} +110 -109
  222. package/dist/en-DBLcB-CW.js +1 -0
  223. package/dist/{extensions-Cm6K4SRX.js → extensions-7fb-XtNJ.js} +180 -180
  224. package/dist/{eye-B3psrAqd.js → eye-fe5sKF_K.js} +1 -1
  225. package/dist/{image-C3yuPDxx.js → image-CUC7SZiW.js} +1 -1
  226. package/dist/index.d.ts +6 -4
  227. package/dist/{info-DKja7A68.js → info-DDbLU4pT.js} +1 -1
  228. package/dist/keys-D9oKZN1h.js +9 -0
  229. package/dist/{link-DhzPI4Hn.js → link-C2icj0iH.js} +1 -1
  230. package/dist/{list-DVGn7Ik2.js → list-KYC_Jb5A.js} +1 -1
  231. package/dist/{loader-circle-DqKWsMHO.js → loader-circle-DmyagWpc.js} +1 -1
  232. package/dist/{message-circle-C4TonoBs.js → message-circle-ijyWn6UJ.js} +1 -1
  233. package/dist/{normalizeMergeTagMarkup-Da9JAgx7.js → normalizeMergeTagMarkup-GrXJfXsQ.js} +82 -82
  234. package/dist/{package-9OkiEO4S.js → package-CKYm_jQY.js} +1 -1
  235. package/dist/{pencil-M9vkOB7C.js → pencil-C2TRSR-Y.js} +1 -1
  236. package/dist/{plus-DxZiv9YC.js → plus-CotJVDxb.js} +1 -1
  237. package/dist/{preRenderCustomBlocks-CdqSp2P7.js → preRenderCustomBlocks-DuXtzD-F.js} +3 -3
  238. package/dist/{refresh-cw-UY8_sdFG.js → refresh-cw-CuCRV6D5.js} +1 -1
  239. package/dist/{rotate-ccw-BFTGCpHn.js → rotate-ccw-BlnQ3y6R.js} +1 -1
  240. package/dist/{runtime-dom.esm-bundler-DlHp8xgy.js → runtime-dom.esm-bundler-nN-jsqr1.js} +20 -20
  241. package/dist/{sanitizeHtml-wBibnBF4.js → sanitizeHtml-eV4_BpI6.js} +25 -14
  242. package/dist/{search-RuGJnMEn.js → search-Dxw6oFrZ.js} +1 -1
  243. package/dist/{send-DGB1ar02.js → send-C-blQBZ9.js} +1 -1
  244. package/dist/{smartphone-CVA29CU_.js → smartphone-rLz4X-Dd.js} +1 -1
  245. package/dist/{socialIcons-CJD6OsI7.js → socialIcons-brRkK9Om.js} +600 -549
  246. package/dist/{sparkles-IHfEwEcd.js → sparkles-JWQlUiSn.js} +1 -1
  247. package/dist/{square-_Cl44UU6.js → square-DshDy1Il.js} +1 -1
  248. package/dist/style.css +1 -1
  249. package/dist/templatical-editor.js +976 -954
  250. package/dist/{text-align-start-Dqk2Xt_Q.js → text-align-start-CyasaQtr.js} +13 -13
  251. package/dist/{trash-Cr7rD5Hh.js → trash-B1lZp2Tv.js} +1 -1
  252. package/dist/{triangle-alert-CKcpwtUj.js → triangle-exclamation-point-BhJvBEoT.js} +3 -3
  253. package/dist/{upload-DR9pqVON.js → upload-CNK8JX38.js} +1 -1
  254. package/dist/{useCloudI18n-BczJoFf4.js → useCloudI18n-HhCZYRV6.js} +2 -2
  255. package/dist/useEditorRoot-B0Njczhx.js +7 -0
  256. package/dist/{useI18n-zeWYtWSv.js → useI18n-CM9vKbYc.js} +2 -2
  257. package/dist/{cdn/chunks/useLocalizedDisplay-Bgg4qpev.js → useLocalizedDisplay-DoaT7nWk.js} +2 -4
  258. package/dist/{useLogicTag-DLkYos2Q.js → useLogicTag-cTC2KbWd.js} +4 -4
  259. package/dist/{useMergeTag-IoWOO679.js → useMergeTag-D2YDZ8vR.js} +8 -8
  260. package/dist/{usePopoverPosition-Br3zt_MQ.js → usePopoverPosition-CVRzzLkC.js} +2 -2
  261. package/dist/{useScrollToBlock-BfOzc1Z6.js → useScrollToBlock-vf_KD0FM.js} +3 -3
  262. package/dist/{vue.runtime.esm-bundler-BJXc_Mri.js → vue.runtime.esm-bundler-BE5V8ADU.js} +414 -362
  263. package/dist/{withCurrentFont-m_PHcOD0.js → withCurrentFont-DAmED4fN.js} +1 -1
  264. package/dist/{x-DZSFHafL.js → x-DbLX5Qdm.js} +1 -1
  265. package/package.json +23 -23
  266. package/dist/AiPanels-DAsnX-a3.js +0 -31
  267. package/dist/CommentsPanel-C5qG17Ki.js +0 -16
  268. package/dist/CommentsSidebar-C7CWcUYZ.js +0 -526
  269. package/dist/LanguageMenu-B981Av-6.js +0 -403
  270. package/dist/cdn/chunks/AiChatPanel-DKDu9cs7.js.map +0 -1
  271. package/dist/cdn/chunks/AiPanels-jMLVaiKx.js +0 -32
  272. package/dist/cdn/chunks/AiPanels-jMLVaiKx.js.map +0 -1
  273. package/dist/cdn/chunks/AiRewriteMenu-s79rmHFy.js.map +0 -1
  274. package/dist/cdn/chunks/BlockIssueBadge-Bnmq_M4G.js.map +0 -1
  275. package/dist/cdn/chunks/BlockPreviewCanvas-B3HkuENF.js +0 -156
  276. package/dist/cdn/chunks/BlockPreviewCanvas-B3HkuENF.js.map +0 -1
  277. package/dist/cdn/chunks/CloudPanels-DQnlH_YJ.js.map +0 -1
  278. package/dist/cdn/chunks/CommentsPanel-EtdTzTmq.js +0 -18
  279. package/dist/cdn/chunks/CommentsPanel-EtdTzTmq.js.map +0 -1
  280. package/dist/cdn/chunks/CommentsSidebar-Qmj049QX.js +0 -496
  281. package/dist/cdn/chunks/CommentsSidebar-Qmj049QX.js.map +0 -1
  282. package/dist/cdn/chunks/IssuesPanel-DnSnEh1X.js.map +0 -1
  283. package/dist/cdn/chunks/LanguageMenu-C2I_yTL5.js.map +0 -1
  284. package/dist/cdn/chunks/RestoreVersionDialog-DqbULAbc.js.map +0 -1
  285. package/dist/cdn/chunks/Toolbar-C_Hfsher.js.map +0 -1
  286. package/dist/cdn/chunks/composables-CsfQlmcf.js.map +0 -1
  287. package/dist/cdn/chunks/createCloudRuntime-PpIFCDfj.js.map +0 -1
  288. package/dist/cdn/chunks/dist-DqGgijFI.js +0 -405
  289. package/dist/cdn/chunks/draggable-DepKdldn.js.map +0 -1
  290. package/dist/cdn/chunks/en-CVxNoHww.js +0 -1
  291. package/dist/cdn/chunks/icons-DHExFLlT.js.map +0 -1
  292. package/dist/cdn/chunks/keys-BUmIvYy3.js +0 -11
  293. package/dist/cdn/chunks/keys-BUmIvYy3.js.map +0 -1
  294. package/dist/cdn/chunks/sanitizeHtml-DJI7vvET.js +0 -61
  295. package/dist/cdn/chunks/sanitizeHtml-DJI7vvET.js.map +0 -1
  296. package/dist/cdn/chunks/socialIcons-Qw9rHc8C.js.map +0 -1
  297. package/dist/cdn/chunks/src-Bfj1jHnn.js.map +0 -1
  298. package/dist/cdn/chunks/src-C9JWWxAk.js.map +0 -1
  299. package/dist/cdn/chunks/src-mXG-Of9A.js.map +0 -1
  300. package/dist/cdn/chunks/tiptap-Dipw_zOQ.js.map +0 -1
  301. package/dist/cdn/chunks/useEditorRoot-Beau2Z_T.js +0 -9
  302. package/dist/dist-0alKVRc_.js +0 -406
  303. package/dist/dist-6DU0me3E.js +0 -4
  304. package/dist/dist-CcOn7WCo.js +0 -4
  305. package/dist/en-De3uAutQ.js +0 -1
  306. package/dist/keys-w_VRjoMu.js +0 -9
  307. package/dist/useEditorRoot-BcXKhM_8.js +0 -7
  308. package/dist/useLocalizedDisplay-Cbhx208c.js +0 -31
@@ -1,9 +1,9 @@
1
- import { At as e, Cn as t, Ct as n, Dt as r, Et as i, L as a, Ot as o, Qt as s, Sn as c, St as l, Vt as u, a as d, an as f, bn as p, bt as m, dt as h, gt as g, h as _, hn as v, i as ee, jt as y, kt as b, lt as x, m as te, o as S, ot as C, p as ne, un as re, vn as w, vt as ie, wt as T, xn as ae, xt as oe, yn as E, yt as se } from "./src-mXG-Of9A.js";
1
+ import { $t as e, At as t, Cn as n, Ct as r, Dt as i, Et as a, Ht as o, L as s, Ot as c, Sn as l, St as u, Tn as d, a as f, bn as p, bt as m, dn as h, dt as g, gn as _, gt as v, h as y, i as ee, jt as b, kt as x, lt as S, m as te, o as ne, on as re, ot as C, p as ie, vt as w, wn as ae, wt as T, xn as E, xt as oe, yn as se, yt as ce } from "./src-CdVAke9t.js";
2
2
  // ../renderer/src/render-context.ts
3
3
  var D = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
4
4
  name: "@templatical/renderer",
5
5
  description: "Render Templatical email templates to MJML",
6
- version: "0.56.0",
6
+ version: "0.57.0",
7
7
  bugs: "https://github.com/templatical/sdk/issues",
8
8
  dependencies: { "@templatical/types": "workspace:*" },
9
9
  devDependencies: {
@@ -46,7 +46,7 @@ var D = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
46
46
  },
47
47
  type: "module",
48
48
  types: "./dist/index.d.ts"
49
- }.version}/assets/social`, O = class e {
49
+ }.version}/assets/social`, le = class e {
50
50
  containerWidth;
51
51
  customFonts;
52
52
  defaultFallbackFont;
@@ -68,89 +68,92 @@ var D = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
68
68
  defaultFallback: this.defaultFallbackFont
69
69
  });
70
70
  }
71
- }, k = {
71
+ }, O = {
72
72
  "&": "&",
73
73
  "<": "&lt;",
74
74
  ">": "&gt;",
75
75
  "\"": "&quot;",
76
76
  "'": "&#039;"
77
- }, A = /[&<>"']/g;
77
+ }, k = /[&<>"']/g;
78
+ function A(e) {
79
+ return e === "" ? "" : e.replace(k, (e) => O[e] ?? e);
80
+ }
78
81
  function j(e) {
79
- return e === "" ? "" : e.replace(A, (e) => k[e] ?? e);
82
+ return e === "" ? "" : e.replace(k, (e) => O[e] ?? e);
80
83
  }
81
84
  function M(e) {
82
- return e === "" ? "" : e.replace(A, (e) => k[e] ?? e);
85
+ return e === "" ? "" : j(e.replace(/[;{}\r\n]/g, ""));
83
86
  }
87
+ var ue = /[&<>"]/g;
84
88
  function N(e) {
85
- return e === "" ? "" : M(e.replace(/[;{}\r\n]/g, ""));
86
- }
87
- var ce = /[&<>"]/g;
88
- function P(e) {
89
- return e.replace(ce, (e) => k[e] ?? e);
89
+ return e.replace(ue, (e) => O[e] ?? e);
90
90
  }
91
91
  // ../renderer/src/visibility.ts
92
- function F(e) {
92
+ function P(e) {
93
93
  let t = e.visibility;
94
94
  return t ? !t.desktop && !t.mobile : !1;
95
95
  }
96
- function I(e, t = []) {
97
- let n = [le(e), ...t].filter((e) => e !== "").join(" ");
98
- return n === "" ? "" : ` css-class="${M(n)}"`;
96
+ function F(e, t = []) {
97
+ let n = [de(e), ...t].filter((e) => e !== "").join(" ");
98
+ return n === "" ? "" : ` css-class="${j(n)}"`;
99
99
  }
100
- function le(e) {
100
+ function de(e) {
101
101
  let t = e.visibility;
102
102
  if (!t) return "";
103
103
  let n = [];
104
104
  return t.desktop || n.push("tpl-hide-desktop"), t.mobile || n.push("tpl-hide-mobile"), n.join(" ");
105
105
  }
106
106
  // ../renderer/src/unrenderable.ts
107
- var ue = "templatical:unrenderable-block";
108
- function de(e) {
107
+ var fe = "templatical:unrenderable-block";
108
+ function I(e) {
109
109
  return e.replace(/[<>]/g, "").replace(/-{2,}/g, "-");
110
110
  }
111
111
  function L(e) {
112
- 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><!-- ${ue} type="${de(e.type)}" id="${de(e.id)}" --></mj-raw>`;
112
+ return JSON.stringify(String(e)).slice(1, -1);
113
113
  }
114
- // ../renderer/src/padding.ts
115
114
  function R(e) {
116
- return M(`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`);
115
+ return console.warn(`[Templatical] No renderer for block type "${L(e.type)}" (id: ${L(e.id)}). A placeholder comment was emitted in its place. Pass a \`blockRenderers\` entry for this type to render it.`), `<mj-raw><!-- ${fe} type="${I(e.type)}" id="${I(e.id)}" --></mj-raw>`;
116
+ }
117
+ // ../renderer/src/padding.ts
118
+ function z(e) {
119
+ return j(`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`);
117
120
  }
118
121
  // ../renderer/src/utils.ts
119
- function z(e, t) {
120
- return e ? ` ${t === "native" ? "background-color" : "container-background-color"}="${N(e)}"` : "";
122
+ function B(e, t) {
123
+ return e ? ` ${t === "native" ? "background-color" : "container-background-color"}="${M(e)}"` : "";
121
124
  }
122
- function B(e) {
125
+ function V(e) {
123
126
  return typeof e != "number" || !Number.isFinite(e) || e <= 0 ? "" : ` height="${e}px"`;
124
127
  }
125
- function V(e, t) {
126
- let n = (e) => Math.trunc(e ?? 0), r = (e) => ae(e) === null ? 0 : Math.trunc(e.width);
127
- return n(e?.left) + n(e?.right) + r(t?.left) + r(t?.right);
128
- }
129
128
  function H(e, t) {
129
+ let r = (e) => Math.trunc(e ?? 0), i = (e) => n(e) === null ? 0 : Math.trunc(e.width);
130
+ return r(e?.left) + r(e?.right) + i(t?.left) + i(t?.right);
131
+ }
132
+ function U(e, t) {
130
133
  if (e.fluidOnMobile === !0) return " fluid-on-mobile=\"true\"";
131
134
  if (e.fluidOnMobile === !1) return "";
132
- let n = Math.floor(t.contentWidth) - V(e.styles.padding, e.border);
135
+ let n = Math.floor(t.contentWidth) - H(e.styles.padding, e.border);
133
136
  return e.width === "full" || e.width >= n ? " fluid-on-mobile=\"true\"" : "";
134
137
  }
135
- function U(e) {
136
- return Object.entries(c(e)).map(([e, t]) => ` ${e}="${N(t)}"`).join("");
137
- }
138
138
  function W(e) {
139
- let n = t(e);
140
- return n === null ? "" : ` border-radius="${N(n)}"`;
139
+ return Object.entries(ae(e)).map(([e, t]) => ` ${e}="${M(t)}"`).join("");
140
+ }
141
+ function G(e) {
142
+ let t = d(e);
143
+ return t === null ? "" : ` border-radius="${M(t)}"`;
141
144
  }
142
- function fe(e) {
143
- let t = v(e);
144
- return t === null ? "" : ` background-url="${M(t.url)}" background-size="${N(t.size)}" background-position="${N(t.position)}" background-repeat="${N(t.repeat)}"`;
145
+ function pe(e) {
146
+ let t = _(e);
147
+ return t === null ? "" : ` background-url="${j(t.url)}" background-size="${M(t.size)}" background-position="${M(t.position)}" background-repeat="${M(t.repeat)}"`;
145
148
  }
146
149
  // ../renderer/src/rich-text.ts
147
- var G = "tpl-rich-text";
148
- function K(e) {
149
- return `${G}-${e}`;
150
+ var K = "tpl-rich-text";
151
+ function q(e) {
152
+ return `${K}-${e}`;
150
153
  }
151
- function pe(e, t = "ltr") {
152
- let n = E, r = `.${G}`, i = [...new Set(e)].sort((e, t) => e - t).flatMap((e) => {
153
- let t = `.${K(e)}`;
154
+ function me(e, t = "ltr") {
155
+ let n = E, r = `.${K}`, i = [...new Set(e)].sort((e, t) => e - t).flatMap((e) => {
156
+ let t = `.${q(e)}`;
154
157
  return [`${t} p { margin: 0 0 ${e}px; }`, `${t} p:last-child { margin-bottom: 0; }`];
155
158
  }), a = t === "rtl" ? "padding-right" : "padding-left";
156
159
  return [
@@ -159,25 +162,25 @@ function pe(e, t = "ltr") {
159
162
  `${r} li { margin: ${n.listItemMarginY}px 0; }`
160
163
  ].join("\n ");
161
164
  }
162
- function q(e) {
165
+ function J(e) {
163
166
  return e ?? E.paragraphGap;
164
167
  }
165
- function me(e) {
168
+ function he(e) {
166
169
  let t = [E.paragraphGap], n = (e) => {
167
- if (e.type === "paragraph" && t.push(q(e.paragraphSpacing)), T(e)) for (let t of e.children) for (let e of t) n(e);
168
- else if (y(e)) for (let t of e.children) n(t);
170
+ if (e.type === "paragraph" && t.push(J(e.paragraphSpacing)), T(e)) for (let t of e.children) for (let e of t) n(e);
171
+ else if (b(e)) for (let t of e.children) n(t);
169
172
  };
170
173
  for (let t of e) n(t);
171
174
  return t;
172
175
  }
173
- var he = {
176
+ var ge = {
174
177
  apos: "'",
175
178
  quot: "\"",
176
179
  nbsp: "\xA0"
177
- }, ge = /&(?:#(\d+)|#x([0-9a-f]+)|(apos|quot|nbsp));/gi, _e = /[a-z]/i, J = /[ \t\n\f\r]/;
178
- function ve(e, t, n, r, i) {
180
+ }, _e = /&(?:#(\d+)|#x([0-9a-f]+)|(apos|quot|nbsp));/gi, ve = /[a-z]/i, Y = /[ \t\n\f\r]/;
181
+ function ye(e, t, n, r, i) {
179
182
  let a;
180
- if (i !== void 0) a = he[i.toLowerCase()];
183
+ if (i !== void 0) a = ge[i.toLowerCase()];
181
184
  else {
182
185
  let t = Number(n ?? `0x${r}`);
183
186
  if (!(t > 0 && t <= 1114111 && !(t >= 55296 && t <= 57343))) return e;
@@ -185,11 +188,11 @@ function ve(e, t, n, r, i) {
185
188
  }
186
189
  return a === "&" ? "&amp;" : a === "<" || a === ">" ? e : a === t ? t === "\"" ? "'" : "\"" : a;
187
190
  }
188
- function ye(e) {
191
+ function be(e) {
189
192
  let t = 1;
190
- for (; t < e.length && !J.test(e[t]) && e[t] !== "/";) t++;
193
+ for (; t < e.length && !Y.test(e[t]) && e[t] !== "/";) t++;
191
194
  for (; t < e.length;) {
192
- for (; t < e.length && (J.test(e[t]) || e[t] === "/");) t++;
195
+ for (; t < e.length && (Y.test(e[t]) || e[t] === "/");) t++;
193
196
  let n = t;
194
197
  for (; t < e.length && !/[\s=/]/.test(e[t]);) t++;
195
198
  let r = e.slice(n, t).toLowerCase();
@@ -197,93 +200,94 @@ function ye(e) {
197
200
  t++;
198
201
  continue;
199
202
  }
200
- for (; t < e.length && J.test(e[t]);) t++;
203
+ for (; t < e.length && Y.test(e[t]);) t++;
201
204
  if (e[t] !== "=") continue;
202
- for (t++; t < e.length && J.test(e[t]);) t++;
205
+ for (t++; t < e.length && Y.test(e[t]);) t++;
203
206
  let i = e[t];
204
207
  if (i === "\"" || i === "'") {
205
208
  let n = e.indexOf(i, t + 1);
206
209
  if (n === -1) return e;
207
210
  if (r === "style") {
208
- let r = e.slice(t + 1, n).replace(ge, (e, t, n, r) => ve(e, i, t, n, r));
211
+ let r = e.slice(t + 1, n).replace(_e, (e, t, n, r) => ye(e, i, t, n, r));
209
212
  return `${e.slice(0, t + 1)}${r}${e.slice(n)}`;
210
213
  }
211
214
  t = n + 1;
212
- } else for (; t < e.length && !J.test(e[t]);) t++;
215
+ } else for (; t < e.length && !Y.test(e[t]);) t++;
213
216
  }
214
217
  return e;
215
218
  }
216
- function be(e) {
219
+ function xe(e) {
217
220
  if (!e.includes("&")) return e;
218
221
  let t = "", n = 0, r = e.indexOf("<");
219
222
  for (; r !== -1;) {
220
- if (!_e.test(e.charAt(r + 1))) {
223
+ if (!ve.test(e.charAt(r + 1))) {
221
224
  r = e.indexOf("<", r + 1);
222
225
  continue;
223
226
  }
224
- let i = x(e, r + 1);
227
+ let i = S(e, r + 1);
225
228
  if (i === -1) break;
226
- let a = e.slice(r, i), o = ye(a);
229
+ let a = e.slice(r, i), o = be(a);
227
230
  o !== a && (t += e.slice(n, r) + o, n = i), r = e.indexOf("<", i);
228
231
  }
229
232
  return t + e.slice(n);
230
233
  }
231
234
  // ../renderer/src/renderers/title.ts
232
- function xe(e, t) {
233
- if (F(e)) return "";
234
- let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = Se(be(d(C(e.content)))), a = w[e.level] ?? w[2], o = e.color ? `\n color="${M(e.color)}"` : "", s = M(e.textAlign), c = Ce(e.fontFamily, t), l = I(e, [G, K(q(void 0))]), u = `h${w[e.level] ? e.level : 2}`;
235
+ function Se(e, t) {
236
+ if (P(e)) return "";
237
+ let n = z(e.styles.padding), r = B(e.styles.backgroundColor, "container"), i = Ce(xe(f(C(e.content)))), a = p[e.level] ?? p[2], o = e.color ? `\n color="${j(e.color)}"` : "", s = j(e.textAlign), c = we(e.fontFamily, t), u = F(e, [K, q(J(void 0))]), d = `h${p[e.level] ? e.level : 2}`;
235
238
  return `<mj-text
236
239
  font-size="${a}px"${o}
237
240
  align="${s}"
238
- line-height="${p}"
239
- padding="${n}"${r}${c}${l}
240
- ><${u} style="margin:0;font-size:inherit;color:inherit;line-height:inherit;font-weight:700">${i}</${u}></mj-text>`;
241
+ line-height="${l}"
242
+ padding="${n}"${r}${c}${u}
243
+ ><${d} style="margin:0;font-size:inherit;color:inherit;line-height:inherit;font-weight:700">${i}</${d}></mj-text>`;
241
244
  }
242
- function Se(e) {
245
+ function Ce(e) {
243
246
  let t = /^\s*<p\b/.exec(e);
244
247
  if (!t) return e;
245
- let n = x(e, t[0].length);
248
+ let n = S(e, t[0].length);
246
249
  if (n === -1) return e;
247
250
  let r = /<\/p>\s*$/.exec(e);
248
251
  if (!r || r.index <= n) return e;
249
252
  let i = e.slice(n + 1, r.index);
250
253
  return /<\/p>\s*<p\b/i.test(i) ? e : i;
251
254
  }
252
- function Ce(e, t) {
253
- return e ? ` font-family="${P(t.resolveFontFamily(e))}"` : "";
255
+ function we(e, t) {
256
+ return e ? ` font-family="${N(t.resolveFontFamily(e))}"` : "";
254
257
  }
255
258
  // ../renderer/src/renderers/paragraph.ts
256
- function we(e, t) {
257
- if (F(e) || S(e.content)) return "";
258
- let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = be(d(C(e.content))), a = I(e, [G, K(q(e.paragraphSpacing))]);
259
+ function Te(e, t) {
260
+ if (P(e) || ne(e.content)) return "";
261
+ let n = z(e.styles.padding), r = B(e.styles.backgroundColor, "container"), i = xe(f(C(e.content))), a = F(e, [K, q(J(e.paragraphSpacing))]);
259
262
  return `<mj-text
260
263
  line-height="1.5"${t.contentDirection === "rtl" ? "\n align=\"right\"" : ""}
261
264
  padding="${n}"${r}${a}
262
265
  >${i}</mj-text>`;
263
266
  }
264
267
  // ../renderer/src/renderers/image.ts
265
- function Te(e, t) {
266
- if (F(e) || e.src === "") return "";
267
- let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = M(e.width === "full" ? t.containerWidth + "px" : e.width + "px"), a = B(e.height), o = H(e, t), s = I(e), c = W(e.borderRadius), l = U(e.border), u = "";
268
- e.linkUrl && (u = ` href="${M(e.linkUrl)}"`, e.linkOpenInNewTab && (u += " target=\"_blank\" rel=\"noopener\""));
269
- let d = M(e.src), f = e.decorative === !0;
268
+ function Ee(e, t) {
269
+ if (P(e) || e.src === "") return "";
270
+ let n = z(e.styles.padding), r = B(e.styles.backgroundColor, "container"), i = j(e.width === "full" ? t.containerWidth + "px" : e.width + "px"), a = V(e.height), o = U(e, t), s = F(e), c = G(e.borderRadius), l = W(e.border), u = "";
271
+ e.linkUrl && (u = ` href="${j(e.linkUrl)}"`, e.linkOpenInNewTab && (u += " target=\"_blank\" rel=\"noopener\""));
272
+ let d = j(e.src), f = e.decorative === !0;
270
273
  return `<mj-image
271
274
  src="${d}"
272
- alt="${f ? "" : M(e.alt)}"
275
+ alt="${f ? "" : j(e.alt)}"
273
276
  width="${i}"${a}${o}
274
- align="${M(e.align)}"
277
+ align="${j(e.align)}"
275
278
  padding="${n}"${r}${l}${c}${u}${s}${f ? " role=\"presentation\"" : ""}
276
279
  />`;
277
280
  }
278
281
  // ../renderer/src/renderers/button.ts
279
- var Y = "tpl-button-full";
280
- function Ee(e, t) {
281
- if (F(e)) return "";
282
- let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = R(e.buttonPadding), a = e.url === "" ? "" : M(e.url), o = a === "" ? "" : ` href="${a}"`, s = De(e.backgroundColor), c = M(e.textColor), l = e.fontSize, u = Oe(e.fontWeight), d = M(Ae(e.borderRadius)), f = j(e.text), p = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", m = ke(e.fontFamily, t), h = je(e.width), g = I(e, e.width === "full" ? [Y] : []), _ = U(e.border), v = M(e.align ?? "center");
282
+ var X = "tpl-button-full";
283
+ function De(e, t) {
284
+ if (P(e)) return "";
285
+ let n = z(e.styles.padding), r = B(e.styles.backgroundColor, "container"), i = z(e.buttonPadding), a = e.url === "" ? "" : j(e.url), o = a === "" ? "" : ` href="${a}"`, s = Oe(e.backgroundColor), c = j(e.textColor), l = e.fontSize, u = ke(e.fontWeight), d = j(je(e.borderRadius)), f = A(e.text), p = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", m = Ae(e.fontFamily, t), h = Me(e.width), g = F(e, e.width === "full" ? [X] : []), _ = W(e.border), v = j(e.align ?? "center");
283
286
  return `<mj-button${o}${p}
284
287
  background-color="${s}"
285
288
  color="${c}"
286
- font-size="${M(String(l))}px"
289
+ font-size="${j(String(l))}px"
290
+ line-height="${Math.round(se * 100)}%"
287
291
  font-weight="${u}"
288
292
  border-radius="${d}"${_}
289
293
  inner-padding="${i}"
@@ -291,55 +295,55 @@ function Ee(e, t) {
291
295
  padding="${n}"${r}${m}${h}${g}
292
296
  >${f}</mj-button>`;
293
297
  }
294
- function De(e) {
295
- return e.trim() === "" ? "transparent" : M(e);
296
- }
297
298
  function Oe(e) {
298
- return e === "regular" ? "400" : e === "medium" ? "500" : e === "bold" ? "700" : "bold";
299
+ return e.trim() === "" ? "transparent" : j(e);
299
300
  }
300
- function ke(e, t) {
301
- return e ? ` font-family="${P(t.resolveFontFamily(e))}"` : "";
301
+ function ke(e) {
302
+ return e === "regular" ? "400" : e === "medium" ? "500" : e === "bold" ? "700" : "bold";
302
303
  }
303
- function Ae(e) {
304
- return typeof e == "number" ? `${e}px` : t(e) ?? "0px";
304
+ function Ae(e, t) {
305
+ return e ? ` font-family="${N(t.resolveFontFamily(e))}"` : "";
305
306
  }
306
307
  function je(e) {
307
- return e === void 0 ? "" : ` width="${M(e === "full" ? "100%" : `${e}px`)}"`;
308
+ return typeof e == "number" ? `${e}px` : d(e) ?? "0px";
309
+ }
310
+ function Me(e) {
311
+ return e === void 0 ? "" : ` width="${j(e === "full" ? "100%" : `${e}px`)}"`;
308
312
  }
309
313
  // ../renderer/src/renderers/divider.ts
310
- function Me(e, t) {
311
- if (F(e)) return "";
312
- let n = R(e.styles.padding), r = e.styles.backgroundColor ? ` container-background-color="${M(e.styles.backgroundColor)}"` : "", i = e.width === "full" ? "100%" : typeof e.width == "number" ? `${e.width}px` : e.width, a = e.thickness, o = M(e.lineStyle), s = M(e.color), c = I(e);
314
+ function Ne(e, t) {
315
+ if (P(e)) return "";
316
+ let n = z(e.styles.padding), r = e.styles.backgroundColor ? ` container-background-color="${j(e.styles.backgroundColor)}"` : "", i = e.width === "full" ? "100%" : typeof e.width == "number" ? `${e.width}px` : e.width, a = e.thickness, o = j(e.lineStyle), s = j(e.color), c = F(e);
313
317
  return `<mj-divider
314
- border-width="${M(String(a))}px"
318
+ border-width="${j(String(a))}px"
315
319
  border-style="${o}"
316
320
  border-color="${s}"
317
- width="${M(i)}"
321
+ width="${j(i)}"
318
322
  padding="${n}"${r}${c}
319
323
  />`;
320
324
  }
321
325
  // ../renderer/src/renderers/spacer.ts
322
- function Ne(e, t) {
323
- if (F(e)) return "";
324
- let n = e.height, r = e.styles.backgroundColor ? ` container-background-color="${M(e.styles.backgroundColor)}"` : "", i = I(e);
325
- return `<mj-spacer height="${M(String(n))}px" padding="0"${r}${i} />`;
326
+ function Pe(e, t) {
327
+ if (P(e)) return "";
328
+ let n = e.height, r = e.styles.backgroundColor ? ` container-background-color="${j(e.styles.backgroundColor)}"` : "", i = F(e);
329
+ return `<mj-spacer height="${j(String(n))}px" padding="0"${r}${i} />`;
326
330
  }
327
331
  // ../renderer/src/renderers/html.ts
328
- function Pe(e, t) {
329
- if (F(e) || !t.allowHtmlBlocks) return "";
332
+ function Fe(e, t) {
333
+ if (P(e) || !t.allowHtmlBlocks) return "";
330
334
  let n = e.content;
331
335
  if (n === "") return "";
332
- let r = I(e);
333
- return `<mj-text padding="${R(e.styles.padding)}"${z(e.styles.backgroundColor, "container")}${r}>
336
+ let r = F(e);
337
+ return `<mj-text padding="${z(e.styles.padding)}"${B(e.styles.backgroundColor, "container")}${r}>
334
338
  ${n}
335
339
  </mj-text>`;
336
340
  }
337
341
  // ../renderer/src/renderers/social.ts
338
- function Fe(e, t) {
339
- if (F(e)) return "";
342
+ function Ie(e, t) {
343
+ if (P(e)) return "";
340
344
  let n = e.icons;
341
345
  if (n.length === 0) return "";
342
- let r = R(e.styles.padding), i = e.styles.backgroundColor ? ` container-background-color="${M(e.styles.backgroundColor)}"` : "", a = I(e), o = M(e.align), s = e.iconSize, c = e.iconStyle, l = M(f(c, e.iconTone)), u = e.spacing, d;
346
+ let r = z(e.styles.padding), i = e.styles.backgroundColor ? ` container-background-color="${j(e.styles.backgroundColor)}"` : "", a = F(e), o = j(e.align), s = e.iconSize, c = e.iconStyle, l = j(re(c, e.iconTone)), u = e.spacing, d;
343
347
  switch (s) {
344
348
  case "small":
345
349
  d = 24;
@@ -349,20 +353,20 @@ function Fe(e, t) {
349
353
  break;
350
354
  default: d = 32;
351
355
  }
352
- let p;
356
+ let f;
353
357
  switch (c) {
354
358
  case "circle":
355
- p = "50%";
359
+ f = "50%";
356
360
  break;
357
361
  case "rounded":
358
- p = "8px";
362
+ f = "8px";
359
363
  break;
360
364
  case "square":
361
- p = "0";
365
+ f = "0";
362
366
  break;
363
- default: p = "4px";
367
+ default: f = "4px";
364
368
  }
365
- let m = n.length;
369
+ let p = n.length;
366
370
  return `<mj-social
367
371
  mode="horizontal"
368
372
  align="${o}"
@@ -370,79 +374,79 @@ function Fe(e, t) {
370
374
  padding="${r}"${i}${a}
371
375
  >
372
376
  ${n.map((e, n) => {
373
- let r = M(e.platform), i = M(e.url), a = `${t.socialIconsBaseUrl}/${l}/${r}.png`, o = n === m - 1 ? 0 : u;
374
- return `<mj-social-element src="${a}" href="${i}" icon-size="${d}px" padding="0 ${M(String(o))}px 0 0" border-radius="${p}" background-color="transparent"></mj-social-element>`;
377
+ let r = j(e.platform), i = j(e.url), a = `${t.socialIconsBaseUrl}/${l}/${r}.png`, o = n === p - 1 ? 0 : u;
378
+ return `<mj-social-element src="${a}" href="${i}" icon-size="${d}px" padding="0 ${j(String(o))}px 0 0" border-radius="${f}" background-color="transparent"></mj-social-element>`;
375
379
  }).join("\n")}
376
380
  </mj-social>`;
377
381
  }
378
382
  // ../renderer/src/renderers/menu.ts
379
- function Ie(e, t) {
380
- if (F(e) || e.items.length === 0) return "";
381
- let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = I(e), a = ze(e.fontFamily, t), o = M(e.textAlign), s = e.fontSize, c = e.color ? `\n color="${M(e.color)}"` : "", l = Le(e);
383
+ function Le(e, t) {
384
+ if (P(e) || e.items.length === 0) return "";
385
+ let n = z(e.styles.padding), r = B(e.styles.backgroundColor, "container"), i = F(e), a = Be(e.fontFamily, t), o = j(e.textAlign), s = e.fontSize, c = e.color ? `\n color="${j(e.color)}"` : "", l = Re(e);
382
386
  return `<mj-text
383
- font-size="${M(String(s))}px"${c}
387
+ font-size="${j(String(s))}px"${c}
384
388
  align="${o}"
385
389
  line-height="1.5"
386
390
  padding="${n}"${r}${a}${i}
387
391
  >${l}</mj-text>`;
388
392
  }
389
- function Le(e) {
390
- let t = e.items, n = j(e.separator), r = N(e.separatorColor), i = e.spacing, a = e.linkColor ?? e.color, o = [], s = t.length;
391
- for (let e = 0; e < s; e++) o.push(Re(t[e], a)), e < s - 1 && o.push(`<span style="color: ${r}; padding: 0 ${N(String(i))}px;">${n}</span>`);
393
+ function Re(e) {
394
+ let t = e.items, n = A(e.separator), r = M(e.separatorColor), i = e.spacing, a = e.linkColor ?? e.color, o = [], s = t.length;
395
+ for (let e = 0; e < s; e++) o.push(ze(t[e], a)), e < s - 1 && o.push(`<span style="color: ${r}; padding: 0 ${M(String(i))}px;">${n}</span>`);
392
396
  return o.join("");
393
397
  }
394
- function Re(e, t) {
395
- let n = j(e.text), r = M(e.url), i = e.color ?? t, a = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", o = ["text-decoration: none"];
396
- return i && o.unshift(`color: ${N(i)}`), e.bold && o.push("font-weight: bold"), e.underline && o.push("text-decoration: underline"), `<a href="${r}" style="${o.join("; ")}"${a}>${n}</a>`;
397
- }
398
398
  function ze(e, t) {
399
- return e ? ` font-family="${P(t.resolveFontFamily(e))}"` : "";
399
+ let n = A(e.text), r = j(e.url), i = e.color ?? t, a = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", o = ["text-decoration: none"];
400
+ return i && o.unshift(`color: ${M(i)}`), e.bold && o.push("font-weight: bold"), e.underline && o.push("text-decoration: underline"), `<a href="${r}" style="${o.join("; ")}"${a}>${n}</a>`;
400
401
  }
401
- // ../renderer/src/renderers/table.ts
402
402
  function Be(e, t) {
403
- if (F(e) || e.rows.length === 0) return "";
404
- let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = I(e), a = We(e.fontFamily, t), o = e.fontSize, s = e.color ? `\n color="${M(e.color)}"` : "", c = M(e.textAlign), l = Ve(e);
403
+ return e ? ` font-family="${N(t.resolveFontFamily(e))}"` : "";
404
+ }
405
+ // ../renderer/src/renderers/table.ts
406
+ function Ve(e, t) {
407
+ if (P(e) || e.rows.length === 0) return "";
408
+ let n = z(e.styles.padding), r = B(e.styles.backgroundColor, "container"), i = F(e), a = Ge(e.fontFamily, t), o = e.fontSize, s = e.color ? `\n color="${j(e.color)}"` : "", c = j(e.textAlign), l = He(e);
405
409
  return `<mj-text
406
- font-size="${M(String(o))}px"${s}
410
+ font-size="${j(String(o))}px"${s}
407
411
  align="${c}"
408
412
  line-height="1.5"
409
413
  padding="${n}"${r}${a}${i}
410
414
  >${l}</mj-text>`;
411
415
  }
412
- function Ve(e) {
413
- let t = N(e.borderColor), n = e.borderWidth, r = "";
416
+ function He(e) {
417
+ let t = M(e.borderColor), n = e.borderWidth, r = "";
414
418
  for (let i = 0; i < e.rows.length; i++) {
415
419
  let a = e.rows[i];
416
- r += He(a, e, e.hasHeaderRow && i === 0, t, n);
420
+ r += Ue(a, e, e.hasHeaderRow && i === 0, t, n);
417
421
  }
418
422
  return `<table style="width: 100%; border-collapse: collapse;">${r}</table>`;
419
423
  }
420
- function He(e, t, n, r, i) {
424
+ function Ue(e, t, n, r, i) {
421
425
  let a = "";
422
- for (let o of e.cells) a += Ue(o, t, n, r, i);
426
+ for (let o of e.cells) a += We(o, t, n, r, i);
423
427
  return `<tr>${a}</tr>`;
424
428
  }
425
- function Ue(e, t, n, r, i) {
426
- let a = t.cellPadding, o = [`border: ${N(String(i))}px solid ${r}`, `padding: ${N(String(a))}px`];
427
- n && (o.push("font-weight: bold"), t.headerBackgroundColor && o.push(`background-color: ${N(t.headerBackgroundColor)}`));
428
- let s = o.join("; "), c = j(C(e.content)), l = n ? "th" : "td";
429
+ function We(e, t, n, r, i) {
430
+ let a = t.cellPadding, o = [`border: ${M(String(i))}px solid ${r}`, `padding: ${M(String(a))}px`];
431
+ n && (o.push("font-weight: bold"), t.headerBackgroundColor && o.push(`background-color: ${M(t.headerBackgroundColor)}`));
432
+ let s = o.join("; "), c = A(C(e.content)), l = n ? "th" : "td";
429
433
  return `<${l} style="${s}">${c}</${l}>`;
430
434
  }
431
- function We(e, t) {
432
- return e ? ` font-family="${P(t.resolveFontFamily(e))}"` : "";
435
+ function Ge(e, t) {
436
+ return e ? ` font-family="${N(t.resolveFontFamily(e))}"` : "";
433
437
  }
434
438
  // ../renderer/src/renderers/custom.ts
435
- function Ge(e, t) {
436
- if (F(e)) return "";
439
+ function Ke(e, t) {
440
+ if (P(e)) return "";
437
441
  let n = t.customBlockHtml.get(e.id) ?? e.renderedHtml;
438
442
  if (!n || n === "") return "";
439
- let r = I(e);
440
- return `<mj-text padding="${R(e.styles.padding)}"${z(e.styles.backgroundColor, "container")}${r}>
443
+ let r = F(e);
444
+ return `<mj-text padding="${z(e.styles.padding)}"${B(e.styles.backgroundColor, "container")}${r}>
441
445
  ${n}
442
446
  </mj-text>`;
443
447
  }
444
448
  // ../renderer/src/columns.ts
445
- function Ke(e) {
449
+ function qe(e) {
446
450
  switch (e) {
447
451
  case "2": return ["50%", "50%"];
448
452
  case "3": return [
@@ -468,7 +472,7 @@ function Ke(e) {
468
472
  default: return ["100%"];
469
473
  }
470
474
  }
471
- function qe(e, t) {
475
+ function Je(e, t) {
472
476
  switch (e) {
473
477
  case "2": return [t * .5, t * .5];
474
478
  case "3": return [
@@ -495,7 +499,7 @@ function qe(e, t) {
495
499
  }
496
500
  }
497
501
  // ../renderer/src/hero-geometry.ts
498
- function Je(e, t, n) {
502
+ function Ye(e, t, n) {
499
503
  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));
500
504
  return {
501
505
  mode: "fixed-height",
@@ -505,7 +509,7 @@ function Je(e, t, n) {
505
509
  };
506
510
  }
507
511
  // ../renderer/src/display-condition.ts
508
- function X(e, t) {
512
+ function Z(e, t) {
509
513
  if (t === "") return "";
510
514
  let n = e.displayCondition;
511
515
  return n ? `<mj-raw>${n.before}</mj-raw>
@@ -513,35 +517,35 @@ function X(e, t) {
513
517
  <mj-raw>${n.after}</mj-raw>` : t;
514
518
  }
515
519
  // ../renderer/src/renderers/section.ts
516
- function Ye(e, t, n) {
517
- if (F(e)) return "";
518
- let r = re(e);
519
- if (r?.applied) return Xe(e, r, t, n);
520
- let i = e.columns, a = Ke(i), o = qe(i, t.containerWidth), s = Math.floor(t.contentWidth) - V(e.styles.padding, e.border), c = a.map((e) => Math.floor(s * parseFloat(e) / 100)), l = R(e.styles.padding), u = z(e.styles.backgroundColor, "native"), d = fe(e.backgroundImage), f = I(e), p = W(e.borderRadius), m = U(e.border), h = t.contentDirection === "rtl" ? " direction=\"rtl\"" : "", g = e.children, _ = [];
521
- for (let e = 0; e < g.length; e++) {
522
- let r = g[e], i = a[e] ?? "100%", l = Math.floor(o[e] ?? t.containerWidth), u = Ze(r, t.allowHtmlBlocks).filter((e) => !T(e)), d = t.withContainerWidth(l, c[e] ?? s), f = u.map((e) => X(e, n(e, d))).filter((e) => e !== "").join("\n");
523
- _.push(`<mj-column width="${i}"${h}>
520
+ function Xe(e, t, n) {
521
+ if (P(e)) return "";
522
+ let r = h(e);
523
+ if (r?.applied) return Ze(e, r, t, n);
524
+ let i = e.columns, a = qe(i), o = Je(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 = pe(e.backgroundImage), f = F(e), p = G(e.borderRadius), m = W(e.border), g = t.contentDirection === "rtl" ? " direction=\"rtl\"" : "", _ = e.children, v = [];
525
+ for (let e = 0; e < _.length; e++) {
526
+ let r = _[e], i = a[e] ?? "100%", l = Math.floor(o[e] ?? t.containerWidth), u = Qe(r, t.allowHtmlBlocks).filter((e) => !T(e)), d = t.withContainerWidth(l, c[e] ?? s), f = u.map((e) => Z(e, n(e, d))).filter((e) => e !== "").join("\n");
527
+ v.push(`<mj-column width="${i}"${g}>
524
528
  ${f === "" ? "<mj-text>&nbsp;</mj-text>" : f}
525
529
  </mj-column>`);
526
530
  }
527
- let v = _.join("\n");
528
- return `<mj-section${u}${d} padding="${l}"${m}${p}${f}${h}>
529
- ${e.stackOnMobile === !1 && _.length > 1 ? `<mj-group${h}>
530
- ${v}
531
- </mj-group>` : v}
531
+ let y = v.join("\n");
532
+ return `<mj-section${u}${d} padding="${l}"${m}${p}${f}${g}>
533
+ ${e.stackOnMobile === !1 && v.length > 1 ? `<mj-group${g}>
534
+ ${y}
535
+ </mj-group>` : y}
532
536
  </mj-section>`;
533
537
  }
534
- function Xe(e, t, n, r) {
535
- let i = Math.floor(n.contentWidth), a = Je(t, i, e.styles.padding), o = z(e.styles.backgroundColor, "native") || " background-color=\"transparent\"", s = R(e.styles.padding), c = W(e.borderRadius), l = I(e), u = n.withContainerWidth(i, i - V(e.styles.padding)), d = Ze(e.children[0] ?? [], n.allowHtmlBlocks).filter((e) => !T(e)).map((e) => X(e, r(e, u))).filter((e) => e !== "").join("\n");
536
- return `<mj-hero mode="${a.mode}" height="${a.height}px" background-url="${M(t.image.url)}" background-width="${a.backgroundWidth}px" background-height="${a.backgroundHeight}px" background-position="${M(t.image.position)}"${o} padding="${s}" vertical-align="${M(t.verticalAlign)}"${c}${l}>
538
+ function Ze(e, t, n, r) {
539
+ let i = Math.floor(n.contentWidth), a = Ye(t, i, e.styles.padding), o = B(e.styles.backgroundColor, "native") || " background-color=\"transparent\"", s = z(e.styles.padding), c = G(e.borderRadius), l = F(e), u = n.withContainerWidth(i, i - H(e.styles.padding)), d = Qe(e.children[0] ?? [], n.allowHtmlBlocks).filter((e) => !T(e)).map((e) => Z(e, r(e, u))).filter((e) => e !== "").join("\n");
540
+ return `<mj-hero mode="${a.mode}" height="${a.height}px" background-url="${j(t.image.url)}" background-width="${a.backgroundWidth}px" background-height="${a.backgroundHeight}px" background-position="${j(t.image.position)}"${o} padding="${s}" vertical-align="${j(t.verticalAlign)}"${c}${l}>
537
541
  ${d}
538
542
  </mj-hero>`;
539
543
  }
540
- function Ze(e, t) {
544
+ function Qe(e, t) {
541
545
  return t ? e : e.filter((e) => e.type !== "html");
542
546
  }
543
547
  // ../renderer/src/renderers/video.ts
544
- function Qe(e, t) {
548
+ function $e(e, t) {
545
549
  if (t) return t;
546
550
  if (!e) return null;
547
551
  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})/]) {
@@ -551,44 +555,44 @@ function Qe(e, t) {
551
555
  let n = e.match(/vimeo\.com\/(?:video\/)?(\d+)/);
552
556
  return n ? `https://vumbnail.com/${n[1]}.jpg` : null;
553
557
  }
554
- function $e(e, t) {
555
- if (F(e)) return "";
556
- let n = Qe(e.url, e.thumbnailUrl);
558
+ function et(e, t) {
559
+ if (P(e)) return "";
560
+ let n = $e(e.url, e.thumbnailUrl);
557
561
  if (!n) return "";
558
- let r = R(e.styles.padding), i = z(e.styles.backgroundColor, "container"), a = M(e.width === "full" ? t.containerWidth + "px" : e.width + "px"), o = B(e.height), s = H(e, t), c = I(e);
562
+ let r = z(e.styles.padding), i = B(e.styles.backgroundColor, "container"), a = j(e.width === "full" ? t.containerWidth + "px" : e.width + "px"), o = V(e.height), s = U(e, t), c = F(e);
559
563
  return `<mj-image
560
- src="${M(n)}"
561
- alt="${M(e.alt)}"
564
+ src="${j(n)}"
565
+ alt="${j(e.alt)}"
562
566
  width="${a}"${o}${s}
563
- align="${M(e.align)}"
567
+ align="${j(e.align)}"
564
568
  padding="${r}"
565
- href="${M(e.url)}"
569
+ href="${j(e.url)}"
566
570
  target="_blank"
567
571
  rel="noopener"${i}${c}
568
572
  />`;
569
573
  }
570
574
  // ../renderer/src/renderers/index.ts
571
- function Z(t, a) {
572
- let s = a.blockRenderers[t.type];
573
- return s ? s(t, a) : T(t) ? Ye(t, a, Z) : b(t) ? xe(t, a) : n(t) ? we(t, a) : oe(t) ? Te(t, a) : g(t) ? Ee(t, a) : se(t) ? Me(t, a) : r(t) ? Ne(t, a) : m(t) ? Pe(t, a) : i(t) ? Fe(t, a) : l(t) ? Ie(t, a) : o(t) ? Be(t, a) : e(t) ? $e(t, a) : ie(t) ? Ge(t, a) : F(t) ? "" : L(t);
575
+ function Q(e, n) {
576
+ let o = n.blockRenderers[e.type];
577
+ return o ? o(e, n) : T(e) ? Xe(e, n, Q) : x(e) ? Se(e, n) : r(e) ? Te(e, n) : oe(e) ? Ee(e, n) : v(e) ? De(e, n) : ce(e) ? Ne(e, n) : i(e) ? Pe(e, n) : m(e) ? Fe(e, n) : a(e) ? Ie(e, n) : u(e) ? Le(e, n) : c(e) ? Ve(e, n) : t(e) ? et(e, n) : w(e) ? Ke(e, n) : P(e) ? "" : R(e);
574
578
  }
575
579
  // ../renderer/src/index.ts
576
- var et = `.${Y} a { display: block !important; }`;
577
- async function tt(e, t) {
578
- if (t?.customBlocks !== void 0 && t.renderCustomBlock !== void 0) throw TypeError("[Templatical] customBlocks cannot be combined with renderCustomBlock");
579
- if (t?.customBlocks !== void 0 && t.getCustomBlockStylesheet !== void 0) throw TypeError("[Templatical] customBlocks cannot be combined with getCustomBlockStylesheet");
580
- let n = t?.locale ?? u(e), r = s(e, n), i = t?.layout ? ne(s(t.layout, n, { missing: "default" }), r) : (te(r), _(r), r), a = t?.customFonts ?? [], o = t?.defaultFallbackFont ?? "Arial, sans-serif", c = t?.allowHtmlBlocks ?? !0, l = at(t?.socialIconsBaseUrl ?? D), d = t?.customBlocks === void 0 ? await lt(i, t?.renderCustomBlock) : await ut(i, t.customBlocks), f = dt(i, t?.getCustomBlockStylesheet, t?.customBlocks === void 0 ? void 0 : new Map(t.customBlocks.map((e) => [e.type, e]))), p = h(i.settings), m = new O(i.settings.width, a, o, c, d, l, t?.blockRenderers ?? {}, p), g = ct(i.blocks, c), v = m.resolveFontFamily(i.settings.fontFamily), ee = /[<>]/.test(i.settings.backgroundColor) ? "transparent" : i.settings.backgroundColor, y = i.settings.textColor ? ` color="${M(i.settings.textColor)}"` : "", b = i.settings.linkColor ? N(i.settings.linkColor) : "inherit", x = i.settings.linkUnderline ? "underline" : "none", S = g.map((e) => nt(e, m)).filter((e) => e !== "").join("\n"), C = st(a), re = ot(i.settings.preheaderText);
581
- return `<mjml lang="${M(i.settings.locale)}" dir="${M(p)}">
580
+ var tt = `.${X} a { display: block !important; }`;
581
+ async function nt(t, n) {
582
+ if (n?.customBlocks !== void 0 && n.renderCustomBlock !== void 0) throw TypeError("[Templatical] customBlocks cannot be combined with renderCustomBlock");
583
+ if (n?.customBlocks !== void 0 && n.getCustomBlockStylesheet !== void 0) throw TypeError("[Templatical] customBlocks cannot be combined with getCustomBlockStylesheet");
584
+ let r = n?.locale ?? o(t), i = e(t, r), a = n?.layout ? ie(e(n.layout, r, { missing: "default" }), i) : (te(i), y(i), i), s = n?.customFonts ?? [], c = n?.defaultFallbackFont ?? "Arial, sans-serif", l = n?.allowHtmlBlocks ?? !0, u = st(n?.socialIconsBaseUrl ?? D), d = n?.customBlocks === void 0 ? await dt(a, n?.renderCustomBlock) : await ft(a, n.customBlocks), f = pt(a, n?.getCustomBlockStylesheet, n?.customBlocks === void 0 ? void 0 : new Map(n.customBlocks.map((e) => [e.type, e]))), p = g(a.settings), m = new le(a.settings.width, s, c, l, d, u, n?.blockRenderers ?? {}, p), h = ut(a.blocks, l), _ = m.resolveFontFamily(a.settings.fontFamily), v = /[<>]/.test(a.settings.backgroundColor) ? "transparent" : a.settings.backgroundColor, ee = a.settings.textColor ? ` color="${j(a.settings.textColor)}"` : "", b = a.settings.linkColor ? M(a.settings.linkColor) : "inherit", x = a.settings.linkUnderline ? "underline" : "none", S = h.map((e) => rt(e, m)).filter((e) => e !== "").join("\n"), ne = lt(s), re = ct(a.settings.preheaderText);
585
+ return `<mjml lang="${j(a.settings.locale)}" dir="${j(p)}">
582
586
  <mj-head>${re}
583
587
  <mj-attributes>
584
- <mj-all font-family="${P(v)}" />
585
- <mj-text font-size="14px"${y} />
588
+ <mj-all font-family="${N(_)}" />
589
+ <mj-text font-size="14px"${ee} />
586
590
  <mj-section padding="0" />
587
591
  <mj-column padding="0" />
588
- </mj-attributes>${C}
592
+ </mj-attributes>${ne}
589
593
  <mj-style inline="inline">
590
- ${pe(me(g), p)}
591
- ${et}
594
+ ${me(he(h), p)}
595
+ ${tt}
592
596
  </mj-style>
593
597
  <mj-style>
594
598
  a { color: ${b}; text-decoration: ${x}; }
@@ -598,17 +602,17 @@ async function tt(e, t) {
598
602
  @media only screen and (min-width: 481px) {
599
603
  .tpl-hide-desktop { display: none !important; mso-hide: all !important; }
600
604
  }
601
- </mj-style>${ft(f)}
605
+ </mj-style>${mt(f)}
602
606
  </mj-head>
603
- <mj-body width="${M(String(m.containerWidth))}px" background-color="${N(ee)}">
607
+ <mj-body width="${j(String(m.containerWidth))}px" background-color="${M(v)}">
604
608
  ${S}
605
609
  </mj-body>
606
610
  </mjml>`;
607
611
  }
608
- function nt(e, t) {
609
- if (y(e)) {
610
- let n = Q(t, e.styles.padding);
611
- return X(e, rt(ct(e.children, t.allowHtmlBlocks).map((e) => nt(e, n)).filter((e) => e !== "").join("\n"), {
612
+ function rt(e, t) {
613
+ if (b(e)) {
614
+ let n = it(t, e.styles.padding);
615
+ return Z(e, at(ut(e.children, t.allowHtmlBlocks).map((e) => rt(e, n)).filter((e) => e !== "").join("\n"), {
612
616
  backgroundColor: e.styles.backgroundColor,
613
617
  padding: e.styles.padding,
614
618
  borderRadius: e.borderRadius,
@@ -617,20 +621,20 @@ function nt(e, t) {
617
621
  }, t.contentDirection));
618
622
  }
619
623
  if (T(e)) {
620
- let n = Z(e, e.wrapper ? Q(t, e.wrapper.padding) : t);
621
- return X(e, e.wrapper && n !== "" ? rt(n, e.wrapper, t.contentDirection) : n);
624
+ let n = Q(e, e.wrapper ? it(t, e.wrapper.padding) : t);
625
+ return Z(e, e.wrapper && n !== "" ? at(n, e.wrapper, t.contentDirection) : n);
622
626
  }
623
- return X(e, it(Z(e, t), t.contentDirection));
627
+ return Z(e, ot(Q(e, t), t.contentDirection));
624
628
  }
625
- function Q(e, t) {
626
- return e.withContainerWidth(e.containerWidth, Math.floor(e.contentWidth) - V(t));
629
+ function it(e, t) {
630
+ return e.withContainerWidth(e.containerWidth, Math.floor(e.contentWidth) - H(t));
627
631
  }
628
- function rt(e, t, n) {
629
- return `<mj-wrapper${z(t.backgroundColor, "native")}${fe(t.backgroundImage)}${` padding="${t.padding ? R(t.padding) : "0"}"`}${t.fullWidth ? "" : W(t.borderRadius)}${t.fullWidth ? " full-width=\"full-width\"" : ""}${n === "rtl" ? " direction=\"rtl\"" : ""}>
632
+ function at(e, t, n) {
633
+ return `<mj-wrapper${B(t.backgroundColor, "native")}${pe(t.backgroundImage)}${` padding="${t.padding ? z(t.padding) : "0"}"`}${t.fullWidth ? "" : G(t.borderRadius)}${t.fullWidth ? " full-width=\"full-width\"" : ""}${n === "rtl" ? " direction=\"rtl\"" : ""}>
630
634
  ${e}
631
635
  </mj-wrapper>`;
632
636
  }
633
- function it(e, t) {
637
+ function ot(e, t) {
634
638
  if (e === "") return "";
635
639
  let n = t === "rtl" ? " direction=\"rtl\"" : "";
636
640
  return `<mj-section${n}>
@@ -639,21 +643,21 @@ ${e}
639
643
  </mj-column>
640
644
  </mj-section>`;
641
645
  }
642
- function at(e) {
646
+ function st(e) {
643
647
  return e.endsWith("/") ? e.slice(0, -1) : e;
644
648
  }
645
- function ot(e) {
649
+ function ct(e) {
646
650
  if (!e) return "";
647
651
  let t = e.trim();
648
- return t === "" ? "" : `\n <mj-preview>${j(t)}</mj-preview>`;
652
+ return t === "" ? "" : `\n <mj-preview>${A(t)}</mj-preview>`;
649
653
  }
650
- function st(e) {
651
- return e.length === 0 ? "" : e.map((e) => `\n <mj-font name="${M(e.name)}" href="${M(e.url)}" />`).join("");
654
+ function lt(e) {
655
+ return e.length === 0 ? "" : e.map((e) => `\n <mj-font name="${j(e.name)}" href="${j(e.url)}" />`).join("");
652
656
  }
653
- function ct(e, t) {
657
+ function ut(e, t) {
654
658
  return t ? e : e.filter((e) => e.type !== "html");
655
659
  }
656
- async function lt(e, t) {
660
+ async function dt(e, t) {
657
661
  let n = /* @__PURE__ */ new Map();
658
662
  if (!t) return n;
659
663
  let r = [];
@@ -662,7 +666,7 @@ async function lt(e, t) {
662
666
  for (let e = 0; e < r.length; e++) n.set(r[e].id, i[e]);
663
667
  return n;
664
668
  }
665
- async function ut(e, t) {
669
+ async function ft(e, t) {
666
670
  let n = /* @__PURE__ */ new Map(), r = [];
667
671
  if ($(e.blocks, r), r.length === 0) return n;
668
672
  let i;
@@ -671,9 +675,9 @@ async function ut(e, t) {
671
675
  } catch {
672
676
  throw Error("[Templatical] customBlocks requires the optional liquidjs package.");
673
677
  }
674
- let o = a(i), s = new Map(t.map((e) => [e.type, e])), c = await Promise.all(r.map(async (e) => {
675
- let t = s.get(e.customType);
676
- return t ? String(await o.parseAndRender(t.template, e.fieldValues)) : void 0;
678
+ let a = s(i), o = new Map(t.map((e) => [e.type, e])), c = await Promise.all(r.map(async (e) => {
679
+ let t = o.get(e.customType);
680
+ return t ? String(await a.parseAndRender(t.template, e.fieldValues)) : void 0;
677
681
  }));
678
682
  for (let e = 0; e < r.length; e++) {
679
683
  let t = c[e];
@@ -682,11 +686,11 @@ async function ut(e, t) {
682
686
  return n;
683
687
  }
684
688
  function $(e, t) {
685
- for (let n of e) if (ie(n)) t.push(n);
689
+ for (let n of e) if (w(n)) t.push(n);
686
690
  else if (T(n)) for (let e of n.children) $(e, t);
687
- else y(n) && $(n.children, t);
691
+ else b(n) && $(n.children, t);
688
692
  }
689
- function dt(e, t, n) {
693
+ function pt(e, t, n) {
690
694
  let r = [];
691
695
  if ($(e.blocks, r), r.length === 0) return [];
692
696
  let i = /* @__PURE__ */ new Map();
@@ -702,9 +706,9 @@ function dt(e, t, n) {
702
706
  }
703
707
  return s;
704
708
  }
705
- function ft(e) {
706
- return e.length === 0 ? "" : e.map((e) => `\n <mj-style>\n${e}\n </mj-style>`).join("");
709
+ function mt(e) {
710
+ return e.length === 0 ? "" : e.map((e) => `\n <mj-style>\n${e.replaceAll("<", "\\3c ")}\n </mj-style>`).join("");
707
711
  }
708
- export { Y as BUTTON_FULL_WIDTH_CSS_CLASS, D as DEFAULT_SOCIAL_ICONS_BASE_URL, G as RICH_TEXT_CSS_CLASS, O as RenderContext, ue as UNRENDERABLE_MARKER_PREFIX, C as convertMergeTagsToValues, M as escapeAttr, j as escapeHtml, H as fluidOnMobileAttr, I as getCssClassAttr, le as getCssClasses, Ke as getWidthPercentages, qe as getWidthPixels, F as isHiddenOnAll, Z as renderBlock, tt as renderToMjml, L as renderUnrenderableBlock, q as resolveParagraphGap, K as richTextGapClass, R as toPaddingString };
712
+ export { X as BUTTON_FULL_WIDTH_CSS_CLASS, D as DEFAULT_SOCIAL_ICONS_BASE_URL, K as RICH_TEXT_CSS_CLASS, le as RenderContext, fe as UNRENDERABLE_MARKER_PREFIX, C as convertMergeTagsToValues, j as escapeAttr, A as escapeHtml, U as fluidOnMobileAttr, F as getCssClassAttr, de as getCssClasses, qe as getWidthPercentages, Je as getWidthPixels, P as isHiddenOnAll, Q as renderBlock, nt as renderToMjml, R as renderUnrenderableBlock, J as resolveParagraphGap, q as richTextGapClass, z as toPaddingString };
709
713
 
710
- //# sourceMappingURL=src-Bfj1jHnn.js.map
714
+ //# sourceMappingURL=src-D-URHI0Z.js.map