@templatical/editor 0.53.0 → 0.54.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/dist/{AiChatPanel-DdhtfsmO.js → AiChatPanel-C8SeEJRP.js} +8 -8
  2. package/dist/{AiPanels-HBx7xoJR.js → AiPanels-CR6zphjP.js} +1 -1
  3. package/dist/{AiRewriteMenu-DPzSekZt.js → AiRewriteMenu-arKoTjsQ.js} +6 -6
  4. package/dist/{BlockIssueBadge-eIXZJ9M3.js → BlockIssueBadge-DaPTq1RE.js} +2 -2
  5. package/dist/{BlockPreviewCanvas-DO-2TP_6.js → BlockPreviewCanvas-BTieuBmH.js} +3 -3
  6. package/dist/{CloudPanels-i2kZdrdP.js → CloudPanels-Hxdp0doU.js} +3 -3
  7. package/dist/{CollaborationNotices-DANsjl7c.js → CollaborationNotices-Cnx0XHzZ.js} +1 -1
  8. package/dist/{CollaboratorBar-CbbAA0m1.js → CollaboratorBar-BaBoNhwB.js} +1 -1
  9. package/dist/{CommentsPanel-CYW3LWis.js → CommentsPanel-Ck3QmqiC.js} +1 -1
  10. package/dist/{CommentsSidebar-CcF4ISMi.js → CommentsSidebar-CHknhOar.js} +10 -10
  11. package/dist/{CountdownToolbar-D3Lv74kU.js → CountdownToolbar-CM4XNEuO.js} +3 -3
  12. package/dist/{IssuesPanel-BMAG9042.js → IssuesPanel-1wGV0wiy.js} +8 -8
  13. package/dist/{LanguageMenu-FlP_Jbup.js → LanguageMenu-BpxbIJEx.js} +8 -8
  14. package/dist/{LocaleNotices-DAnVszWu.js → LocaleNotices-WzsYtBRs.js} +2 -2
  15. package/dist/{LogicTagInsertButton-BjYs-UQX.js → LogicTagInsertButton-DgTJ6Lvx.js} +3 -3
  16. package/dist/{MediaEditModal-LnG-cF_S.js → MediaEditModal-C3U9Mi31.js} +1 -1
  17. package/dist/{MediaPanels-C2r5fiFo.js → MediaPanels-CGmk9ufe.js} +1 -1
  18. package/dist/{MergeTagInput-BsnogCeY.js → MergeTagInput-B_51YcQO.js} +1 -1
  19. package/dist/{MergeTagModeToggle-DiufIQ-_.js → MergeTagModeToggle-D3Q2z317.js} +3 -3
  20. package/dist/{MergeTagTextarea-BweI-Xsi.js → MergeTagTextarea-DZz1L9DE.js} +2 -2
  21. package/dist/{ParagraphEditor-qgBp5yIB.js → ParagraphEditor-B38t4E2p.js} +16 -15
  22. package/dist/{RestoreVersionDialog-DdYUrFiK.js → RestoreVersionDialog-n7FSmWXB.js} +3 -3
  23. package/dist/{RichTextEditorContent-C5MAzx3E.js → RichTextEditorContent-Dstovi0m.js} +4 -4
  24. package/dist/{SaveBlockDialog-eK6fjtTy.js → SaveBlockDialog-B94NpmDV.js} +7 -7
  25. package/dist/{SavedBlocksBrowserModal-D2QHd2Yp.js → SavedBlocksBrowserModal-C1vSc8iM.js} +9 -9
  26. package/dist/{SavedBlocksPanels-Cl61f4Mf.js → SavedBlocksPanels-DLDmIYeL.js} +1 -1
  27. package/dist/{SavedBlocksPickBar-CXP2dkeB.js → SavedBlocksPickBar-ngf2sFEs.js} +2 -2
  28. package/dist/{TemplateSettings-BKJrdZcH.js → TemplateSettings-Baar78_s.js} +6 -6
  29. package/dist/{TestEmailModal-DQotJg6g.js → TestEmailModal-CB_9I1bl.js} +6 -6
  30. package/dist/{TestEmailPanel-CwiTzJsh.js → TestEmailPanel-BUq-dbXQ.js} +1 -1
  31. package/dist/{TitleEditor-CzSvsPAn.js → TitleEditor-BLP41rwy.js} +10 -9
  32. package/dist/{Toolbar-Cd75ci5W.js → Toolbar-bOZ_eq7X.js} +27 -27
  33. package/dist/{TplModal-ZoXu40T9.js → TplModal-DFKqmJQz.js} +1 -1
  34. package/dist/{VersionHistoryMenu-BvhN-Ofk.js → VersionHistoryMenu-BnP0EyLl.js} +5 -5
  35. package/dist/{VersionHistoryPanels-DPWMnYbd.js → VersionHistoryPanels-DPxj3mec.js} +1 -1
  36. package/dist/{VersionPreviewBanner-CuJnasxH.js → VersionPreviewBanner-BPP939cD.js} +1 -1
  37. package/dist/{WrapperBlock-D4fPwO0t.js → WrapperBlock-BdVIuGMR.js} +2 -2
  38. package/dist/{blockTypeIcons-BXMxu86H.js → blockTypeIcons-BUyPZ7Su.js} +3 -3
  39. package/dist/bundle-stats.json +5 -5
  40. package/dist/cdn/chunks/{AiAltTextPopover-ByZ0FEqI.js → AiAltTextPopover-Cnc_kUmb.js} +2 -2
  41. package/dist/cdn/chunks/{AiAltTextPopover-ByZ0FEqI.js.map → AiAltTextPopover-Cnc_kUmb.js.map} +1 -1
  42. package/dist/cdn/chunks/{AiAltTextReview-Dtm3A2cD.js → AiAltTextReview-DPeSY-7r.js} +2 -2
  43. package/dist/cdn/chunks/{AiAltTextReview-Dtm3A2cD.js.map → AiAltTextReview-DPeSY-7r.js.map} +1 -1
  44. package/dist/cdn/chunks/{AiChatPanel-DciEt27y.js → AiChatPanel-By8Uo1nH.js} +2 -2
  45. package/dist/cdn/chunks/{AiChatPanel-DciEt27y.js.map → AiChatPanel-By8Uo1nH.js.map} +1 -1
  46. package/dist/cdn/chunks/{AiPanels-BV5D1itk.js → AiPanels-BblCSkQy.js} +2 -2
  47. package/dist/cdn/chunks/{AiPanels-BV5D1itk.js.map → AiPanels-BblCSkQy.js.map} +1 -1
  48. package/dist/cdn/chunks/{AiRewriteMenu-D3jkh6Xb.js → AiRewriteMenu-YcVFv6RS.js} +6 -6
  49. package/dist/cdn/chunks/{AiRewriteMenu-D3jkh6Xb.js.map → AiRewriteMenu-YcVFv6RS.js.map} +1 -1
  50. package/dist/cdn/chunks/{BlockIssueBadge-DyEgBZtR.js → BlockIssueBadge-D3Plo_wt.js} +2 -2
  51. package/dist/cdn/chunks/{BlockIssueBadge-DyEgBZtR.js.map → BlockIssueBadge-D3Plo_wt.js.map} +1 -1
  52. package/dist/cdn/chunks/{BlockPreviewCanvas-RQFilqXC.js → BlockPreviewCanvas-6ck15xz9.js} +7 -7
  53. package/dist/cdn/chunks/{BlockPreviewCanvas-RQFilqXC.js.map → BlockPreviewCanvas-6ck15xz9.js.map} +1 -1
  54. package/dist/cdn/chunks/{CloudPanels-BSJ-Z5Hw.js → CloudPanels-BHHpNckC.js} +3 -3
  55. package/dist/cdn/chunks/{CloudPanels-BSJ-Z5Hw.js.map → CloudPanels-BHHpNckC.js.map} +1 -1
  56. package/dist/cdn/chunks/{CollaborationNotices-BS7xrlPE.js → CollaborationNotices-DraFUhyo.js} +2 -2
  57. package/dist/cdn/chunks/{CollaborationNotices-BS7xrlPE.js.map → CollaborationNotices-DraFUhyo.js.map} +1 -1
  58. package/dist/cdn/chunks/{CollaboratorBar-Bc9914Az.js → CollaboratorBar-0OEH3hrj.js} +2 -2
  59. package/dist/cdn/chunks/{CollaboratorBar-Bc9914Az.js.map → CollaboratorBar-0OEH3hrj.js.map} +1 -1
  60. package/dist/cdn/chunks/{CommentsPanel-DbR9phAk.js → CommentsPanel-tZZswofV.js} +2 -2
  61. package/dist/cdn/chunks/{CommentsPanel-DbR9phAk.js.map → CommentsPanel-tZZswofV.js.map} +1 -1
  62. package/dist/cdn/chunks/{CommentsSidebar-BD4--XP2.js → CommentsSidebar-7Hfl3Hdj.js} +2 -2
  63. package/dist/cdn/chunks/{CommentsSidebar-BD4--XP2.js.map → CommentsSidebar-7Hfl3Hdj.js.map} +1 -1
  64. package/dist/cdn/chunks/{CountdownToolbar-DxwYBw-d.js → CountdownToolbar-CNgsNL5-.js} +5 -5
  65. package/dist/cdn/chunks/{CountdownToolbar-DxwYBw-d.js.map → CountdownToolbar-CNgsNL5-.js.map} +1 -1
  66. package/dist/cdn/chunks/{IssuesPanel-CUmI4HMm.js → IssuesPanel-Duic0mIs.js} +4 -4
  67. package/dist/cdn/chunks/{IssuesPanel-CUmI4HMm.js.map → IssuesPanel-Duic0mIs.js.map} +1 -1
  68. package/dist/cdn/chunks/{LanguageMenu-3ydCozQJ.js → LanguageMenu-C6utRx_4.js} +11 -11
  69. package/dist/cdn/chunks/{LanguageMenu-3ydCozQJ.js.map → LanguageMenu-C6utRx_4.js.map} +1 -1
  70. package/dist/cdn/chunks/{LocaleNotices-BfoH6gST.js → LocaleNotices-8J2DRWeg.js} +2 -2
  71. package/dist/cdn/chunks/{LocaleNotices-BfoH6gST.js.map → LocaleNotices-8J2DRWeg.js.map} +1 -1
  72. package/dist/cdn/chunks/{LogicTagInsertButton-5Z3fFzjc.js → LogicTagInsertButton-Bhvi0nWz.js} +5 -5
  73. package/dist/cdn/chunks/{LogicTagInsertButton-5Z3fFzjc.js.map → LogicTagInsertButton-Bhvi0nWz.js.map} +1 -1
  74. package/dist/cdn/chunks/{MediaEditModal-DDCIwr9U.js → MediaEditModal-Dz972UFx.js} +2 -2
  75. package/dist/cdn/chunks/{MediaEditModal-DDCIwr9U.js.map → MediaEditModal-Dz972UFx.js.map} +1 -1
  76. package/dist/cdn/chunks/{MediaPanels-Dz79oy8P.js → MediaPanels-C6Hqtp1H.js} +2 -2
  77. package/dist/cdn/chunks/{MediaPanels-Dz79oy8P.js.map → MediaPanels-C6Hqtp1H.js.map} +1 -1
  78. package/dist/cdn/chunks/{MergeTagInput-CIWy-cXf.js → MergeTagInput-CrhZm-AW.js} +2 -2
  79. package/dist/cdn/chunks/{MergeTagInput-CIWy-cXf.js.map → MergeTagInput-CrhZm-AW.js.map} +1 -1
  80. package/dist/cdn/chunks/{MergeTagModeToggle-BrP5GR-x.js → MergeTagModeToggle-CWVtXLYa.js} +3 -3
  81. package/dist/cdn/chunks/{MergeTagModeToggle-BrP5GR-x.js.map → MergeTagModeToggle-CWVtXLYa.js.map} +1 -1
  82. package/dist/cdn/chunks/{MergeTagTextarea-D3nNDlhV.js → MergeTagTextarea-hTIBwX0F.js} +7 -7
  83. package/dist/cdn/chunks/{MergeTagTextarea-D3nNDlhV.js.map → MergeTagTextarea-hTIBwX0F.js.map} +1 -1
  84. package/dist/cdn/chunks/{ParagraphEditor-DDolH_Pf.js → ParagraphEditor-B3EQ0Ai6.js} +113 -112
  85. package/dist/cdn/chunks/ParagraphEditor-B3EQ0Ai6.js.map +1 -0
  86. package/dist/cdn/chunks/{RestoreVersionDialog-Crj1DBqC.js → RestoreVersionDialog-DfNrVi0R.js} +3 -3
  87. package/dist/cdn/chunks/{RestoreVersionDialog-Crj1DBqC.js.map → RestoreVersionDialog-DfNrVi0R.js.map} +1 -1
  88. package/dist/cdn/chunks/{RichTextEditorContent-rCCqFlwJ.js → RichTextEditorContent-up4AqL7D.js} +4 -4
  89. package/dist/cdn/chunks/{RichTextEditorContent-rCCqFlwJ.js.map → RichTextEditorContent-up4AqL7D.js.map} +1 -1
  90. package/dist/cdn/chunks/{SaveBlockDialog-C34RW1aM.js → SaveBlockDialog-BqglcKcN.js} +6 -6
  91. package/dist/cdn/chunks/{SaveBlockDialog-C34RW1aM.js.map → SaveBlockDialog-BqglcKcN.js.map} +1 -1
  92. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CJnwWPT-.js → SavedBlocksBrowserModal-BewXGlrK.js} +6 -6
  93. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CJnwWPT-.js.map → SavedBlocksBrowserModal-BewXGlrK.js.map} +1 -1
  94. package/dist/cdn/chunks/{SavedBlocksPanels-CA2PqXIH.js → SavedBlocksPanels-0ZpX-jXI.js} +2 -2
  95. package/dist/cdn/chunks/{SavedBlocksPanels-CA2PqXIH.js.map → SavedBlocksPanels-0ZpX-jXI.js.map} +1 -1
  96. package/dist/cdn/chunks/{SavedBlocksPickBar-Dj3ortee.js → SavedBlocksPickBar-DHah-Uf7.js} +3 -3
  97. package/dist/cdn/chunks/{SavedBlocksPickBar-Dj3ortee.js.map → SavedBlocksPickBar-DHah-Uf7.js.map} +1 -1
  98. package/dist/cdn/chunks/{TemplateSettings-sW0ZlDl1.js → TemplateSettings-CWUpUKJb.js} +6 -6
  99. package/dist/cdn/chunks/{TemplateSettings-sW0ZlDl1.js.map → TemplateSettings-CWUpUKJb.js.map} +1 -1
  100. package/dist/cdn/chunks/{TestEmailModal-BXeCtTjU.js → TestEmailModal-7pUDYLrk.js} +7 -7
  101. package/dist/cdn/chunks/{TestEmailModal-BXeCtTjU.js.map → TestEmailModal-7pUDYLrk.js.map} +1 -1
  102. package/dist/cdn/chunks/{TestEmailPanel-CpZcpB9D.js → TestEmailPanel-DBWwMsH1.js} +2 -2
  103. package/dist/cdn/chunks/{TestEmailPanel-CpZcpB9D.js.map → TestEmailPanel-DBWwMsH1.js.map} +1 -1
  104. package/dist/cdn/chunks/{TitleEditor-Bv3SmSO6.js → TitleEditor-VAanUjPQ.js} +9 -8
  105. package/dist/cdn/chunks/TitleEditor-VAanUjPQ.js.map +1 -0
  106. package/dist/cdn/chunks/{Toolbar-BJKpJ2Mg.js → Toolbar-BlWVQRcA.js} +571 -571
  107. package/dist/cdn/chunks/{Toolbar-BJKpJ2Mg.js.map → Toolbar-BlWVQRcA.js.map} +1 -1
  108. package/dist/cdn/chunks/{TplModal-DDDUDMYC.js → TplModal-DDlR7mk3.js} +2 -2
  109. package/dist/cdn/chunks/{TplModal-DDDUDMYC.js.map → TplModal-DDlR7mk3.js.map} +1 -1
  110. package/dist/cdn/chunks/{VersionHistoryMenu-DSElv3Sv.js → VersionHistoryMenu-CZury5gU.js} +4 -4
  111. package/dist/cdn/chunks/{VersionHistoryMenu-DSElv3Sv.js.map → VersionHistoryMenu-CZury5gU.js.map} +1 -1
  112. package/dist/cdn/chunks/{VersionHistoryPanels-H2nuik1l.js → VersionHistoryPanels-DJDeaf1B.js} +2 -2
  113. package/dist/cdn/chunks/{VersionHistoryPanels-H2nuik1l.js.map → VersionHistoryPanels-DJDeaf1B.js.map} +1 -1
  114. package/dist/cdn/chunks/{VersionPreviewBanner-Whwxh55w.js → VersionPreviewBanner-C4Ji8nu4.js} +2 -2
  115. package/dist/cdn/chunks/{VersionPreviewBanner-Whwxh55w.js.map → VersionPreviewBanner-C4Ji8nu4.js.map} +1 -1
  116. package/dist/cdn/chunks/{WrapperBlock-jTqsuLnS.js → WrapperBlock-DRJnrgy-.js} +4 -4
  117. package/dist/cdn/chunks/{WrapperBlock-jTqsuLnS.js.map → WrapperBlock-DRJnrgy-.js.map} +1 -1
  118. package/dist/cdn/chunks/{blockTypeIcons-DMgLcuI8.js → blockTypeIcons-Cc6RJ27V.js} +2 -2
  119. package/dist/cdn/chunks/{blockTypeIcons-DMgLcuI8.js.map → blockTypeIcons-Cc6RJ27V.js.map} +1 -1
  120. package/dist/cdn/chunks/{composables-D0UYam2P.js → composables-Jc3uZuLs.js} +117 -117
  121. package/dist/cdn/chunks/{composables-D0UYam2P.js.map → composables-Jc3uZuLs.js.map} +1 -1
  122. package/dist/cdn/chunks/{createCloudRuntime-BdsclY8_.js → createCloudRuntime-C2Zs5F1O.js} +3 -3
  123. package/dist/cdn/chunks/{createCloudRuntime-BdsclY8_.js.map → createCloudRuntime-C2Zs5F1O.js.map} +1 -1
  124. package/dist/cdn/chunks/{editor-modal-CPbgthOv.js → editor-modal-erQEOHZN.js} +90 -90
  125. package/dist/cdn/chunks/{editor-modal-CPbgthOv.js.map → editor-modal-erQEOHZN.js.map} +1 -1
  126. package/dist/cdn/chunks/en-B6tLGRHq.js +1 -0
  127. package/dist/cdn/chunks/{extensions-Uh9vuFfK.js → extensions-DcMKZpzh.js} +4 -4
  128. package/dist/cdn/chunks/{extensions-Uh9vuFfK.js.map → extensions-DcMKZpzh.js.map} +1 -1
  129. package/dist/cdn/chunks/{icons-CSSMtbGK.js → icons-Da9GKjPx.js} +42 -42
  130. package/dist/cdn/chunks/{icons-CSSMtbGK.js.map → icons-Da9GKjPx.js.map} +1 -1
  131. package/dist/cdn/chunks/{normalizeMergeTagMarkup-oGhwVscw.js → normalizeMergeTagMarkup-cC32Ox6A.js} +23 -23
  132. package/dist/cdn/chunks/{normalizeMergeTagMarkup-oGhwVscw.js.map → normalizeMergeTagMarkup-cC32Ox6A.js.map} +1 -1
  133. package/dist/cdn/chunks/{preRenderCustomBlocks-C8k7tw98.js → preRenderCustomBlocks-f7GEKdvw.js} +4 -4
  134. package/dist/cdn/chunks/{preRenderCustomBlocks-C8k7tw98.js.map → preRenderCustomBlocks-f7GEKdvw.js.map} +1 -1
  135. package/dist/cdn/chunks/{sanitizeHtml-DYklmvgX.js → sanitizeHtml-WTfz9lZd.js} +2 -2
  136. package/dist/cdn/chunks/{sanitizeHtml-DYklmvgX.js.map → sanitizeHtml-WTfz9lZd.js.map} +1 -1
  137. package/dist/cdn/chunks/{socialIcons-BAiuHyJs.js → socialIcons-DeCYorUT.js} +493 -493
  138. package/dist/cdn/chunks/{socialIcons-BAiuHyJs.js.map → socialIcons-DeCYorUT.js.map} +1 -1
  139. package/dist/cdn/chunks/{src-Ddpm4HsS.js → src-8bYYJPCt.js} +237 -179
  140. package/dist/cdn/chunks/src-8bYYJPCt.js.map +1 -0
  141. package/dist/cdn/chunks/{src-DheBmnvF.js → src-A_cKeTM_.js} +263 -263
  142. package/dist/cdn/chunks/{src-DheBmnvF.js.map → src-A_cKeTM_.js.map} +1 -1
  143. package/dist/cdn/chunks/{src-CACM3o--.js → src-BQUv2CYU.js} +152 -152
  144. package/dist/cdn/chunks/{src-CACM3o--.js.map → src-BQUv2CYU.js.map} +1 -1
  145. package/dist/cdn/chunks/useLocalizedDisplay-aGfnO90D.js +33 -0
  146. package/dist/cdn/chunks/{useLocalizedDisplay-yXbRKNrs.js.map → useLocalizedDisplay-aGfnO90D.js.map} +1 -1
  147. package/dist/cdn/chunks/{useLogicTag-B7RpqVFQ.js → useLogicTag-DtYe8HIq.js} +2 -2
  148. package/dist/cdn/chunks/{useLogicTag-B7RpqVFQ.js.map → useLogicTag-DtYe8HIq.js.map} +1 -1
  149. package/dist/cdn/chunks/{useMergeTag-C-32ETjj.js → useMergeTag-B8ULmsnp.js} +2 -2
  150. package/dist/cdn/chunks/{useMergeTag-C-32ETjj.js.map → useMergeTag-B8ULmsnp.js.map} +1 -1
  151. package/dist/cdn/chunks/{withCurrentFont-D33ZXoWp.js → withCurrentFont-MK8ga9q9.js} +2 -2
  152. package/dist/cdn/chunks/{withCurrentFont-D33ZXoWp.js.map → withCurrentFont-MK8ga9q9.js.map} +1 -1
  153. package/dist/cdn/editor.js +262 -262
  154. package/dist/cdn/editor.js.map +1 -1
  155. package/dist/{check-ChQ0l8EQ.js → check-XMnOOIEC.js} +1 -1
  156. package/dist/{chevron-down-Bh6cp6PI.js → chevron-down-DmamTEWQ.js} +1 -1
  157. package/dist/{chevron-right-LUgdqdoW.js → chevron-right-BEFXOH27.js} +1 -1
  158. package/dist/{chevron-up-XsDeJxQN.js → chevron-up-Dw7woXj8.js} +1 -1
  159. package/dist/{circle-alert-lODfDsrj.js → circle-alert-BTKC9vkq.js} +1 -1
  160. package/dist/{clock-DrqFEZkT.js → clock-BVT5u2uG.js} +1 -1
  161. package/dist/{composables-BOP3ERRP.js → composables-XjYKaKhY.js} +13 -13
  162. package/dist/{createLucideIcon-Dw5e5gVE.js → createLucideIcon-CgDE3xAR.js} +5 -5
  163. package/dist/{editor-modal-B_2EAOjN.js → editor-modal-BeX6otLk.js} +15 -15
  164. package/dist/en-Do0SU6tR.js +1 -0
  165. package/dist/{extensions-DOLZkLzV.js → extensions-BJ184osp.js} +1 -1
  166. package/dist/{eye-DChfk0gi.js → eye-ByMgHeA_.js} +1 -1
  167. package/dist/{image--Hj2by1G.js → image-Ch8tR35K.js} +1 -1
  168. package/dist/{info-BbXgy82f.js → info-DzSD-Wpk.js} +1 -1
  169. package/dist/{link-C2_8yJno.js → link-oDn9AR2w.js} +1 -1
  170. package/dist/{list-DLGs2n0V.js → list-C5t07dp8.js} +1 -1
  171. package/dist/{loader-circle-BbDItE_O.js → loader-circle-k6xvKgUB.js} +1 -1
  172. package/dist/{message-circle-NAModq0p.js → message-circle-C23R6OJR.js} +1 -1
  173. package/dist/{package-BuzsfRyH.js → package-C90eQ7NU.js} +1 -1
  174. package/dist/{pencil-BTUUECH4.js → pencil-BK7GrQuA.js} +1 -1
  175. package/dist/{plus-Dm7DN65T.js → plus-Cr0Mis63.js} +1 -1
  176. package/dist/{refresh-cw-xMURqGWi.js → refresh-cw-_ZLOIEvA.js} +1 -1
  177. package/dist/{rotate-ccw-DqVcEIn5.js → rotate-ccw-CB5wsHwv.js} +1 -1
  178. package/dist/{sanitizeHtml-mKgNUdME.js → sanitizeHtml-2rjV0r-6.js} +1 -1
  179. package/dist/{search-Cfr3W44N.js → search-BmrQNox8.js} +1 -1
  180. package/dist/{send-CH1SrvyB.js → send-blAsIBBg.js} +1 -1
  181. package/dist/{smartphone-pAkvzjdI.js → smartphone-BPpWYrwV.js} +1 -1
  182. package/dist/{socialIcons-Dqr4DJOz.js → socialIcons-TFiOkpoU.js} +3 -3
  183. package/dist/{sparkles-CRO0cCnp.js → sparkles-OqIxrNp-.js} +1 -1
  184. package/dist/{square-CaQWMntx.js → square-BP-V7iT-.js} +1 -1
  185. package/dist/templatical-editor.js +29 -29
  186. package/dist/{text-align-start-BQ39AaRK.js → text-align-start-4mwX2o-F.js} +13 -13
  187. package/dist/{trash-BL5gEFHN.js → trash-B99WixTA.js} +1 -1
  188. package/dist/{triangle-alert-BYbKu7zZ.js → triangle-alert-CHMiDkHa.js} +1 -1
  189. package/dist/{upload-BhmL4Vqx.js → upload-Cp8o-hrN.js} +1 -1
  190. package/dist/{useScrollToBlock-C0Kapxdh.js → useScrollToBlock-B35ObCGK.js} +1 -1
  191. package/dist/{x-B7NZYzhx.js → x-BIBStNMS.js} +1 -1
  192. package/package.json +8 -8
  193. package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js.map +0 -1
  194. package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.js.map +0 -1
  195. package/dist/cdn/chunks/en-IYVryJRl.js +0 -1
  196. package/dist/cdn/chunks/src-Ddpm4HsS.js.map +0 -1
  197. package/dist/cdn/chunks/useLocalizedDisplay-yXbRKNrs.js +0 -33
  198. package/dist/en-DTtwco2Q.js +0 -1
@@ -1,9 +1,9 @@
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";
1
+ import { A as e, Ct as t, Dt as n, Et as r, O as i, Ot as a, Q as o, Rt as s, Tt as c, Yt as l, _n as u, _t as d, b as f, bn as p, bt as m, ct as h, fn as g, gn as _, gt as v, hn as y, ht as b, k as ee, nn as te, ot as x, pt as S, rt as C, sn as ne, vn as w, vt as re, wt as ie, x as ae, xt as T, y as oe, yn as se, yt as ce } from "./src-BQUv2CYU.js";
2
2
  // ../renderer/src/render-context.ts
3
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.53.0",
6
+ version: "0.54.1",
7
7
  bugs: "https://github.com/templatical/sdk/issues",
8
8
  dependencies: { "@templatical/types": "workspace:*" },
9
9
  devDependencies: {
@@ -74,82 +74,82 @@ function O(e) {
74
74
  return t ? !t.desktop && !t.mobile : !1;
75
75
  }
76
76
  function k(e, t = []) {
77
- let n = [A(e), ...t].filter((e) => e !== "").join(" ");
77
+ let n = [le(e), ...t].filter((e) => e !== "").join(" ");
78
78
  return n === "" ? "" : ` css-class="${n}"`;
79
79
  }
80
- function A(e) {
80
+ function le(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 j = "templatical:unrenderable-block";
88
- function M(e) {
87
+ var ue = "templatical:unrenderable-block";
88
+ function de(e) {
89
89
  return e.replace(/[<>]/g, "").replace(/-{2,}/g, "-");
90
90
  }
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>`;
91
+ function A(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><!-- ${ue} type="${de(e.type)}" id="${de(e.id)}" --></mj-raw>`;
93
93
  }
94
94
  // ../renderer/src/escape.ts
95
- var P = {
95
+ var j = {
96
96
  "&": "&amp;",
97
97
  "<": "&lt;",
98
98
  ">": "&gt;",
99
99
  "\"": "&quot;",
100
100
  "'": "&#039;"
101
- }, ce = /[&<>"']/g;
102
- function F(e) {
103
- return e === "" ? "" : e.replace(ce, (e) => P[e] ?? e);
101
+ }, M = /[&<>"']/g;
102
+ function N(e) {
103
+ return e === "" ? "" : e.replace(M, (e) => j[e] ?? e);
104
104
  }
105
- function I(e) {
106
- return e === "" ? "" : e.replace(ce, (e) => P[e] ?? e);
105
+ function P(e) {
106
+ return e === "" ? "" : e.replace(M, (e) => j[e] ?? e);
107
107
  }
108
- function L(e) {
109
- return e === "" ? "" : I(e).replace(/[;{}\r\n]/g, "");
108
+ function F(e) {
109
+ return e === "" ? "" : P(e).replace(/[;{}\r\n]/g, "");
110
110
  }
111
- var le = /[&<>"]/g;
112
- function R(e) {
113
- return e.replace(le, (e) => P[e] ?? e);
111
+ var fe = /[&<>"]/g;
112
+ function I(e) {
113
+ return e.replace(fe, (e) => j[e] ?? e);
114
114
  }
115
115
  // ../renderer/src/padding.ts
116
- function z(e) {
116
+ function L(e) {
117
117
  return `${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`;
118
118
  }
119
119
  // ../renderer/src/utils.ts
120
- function B(e, t) {
120
+ function R(e, t) {
121
121
  return e ? ` ${t === "native" ? "background-color" : "container-background-color"}="${e}"` : "";
122
122
  }
123
- function V(e) {
123
+ function pe(e) {
124
124
  return typeof e != "number" || !Number.isFinite(e) || e <= 0 ? "" : ` height="${e}px"`;
125
125
  }
126
- function H(e, t) {
127
- let n = (e) => Math.trunc(e ?? 0), r = (e) => u(e) === null ? 0 : Math.trunc(e.width);
126
+ function z(e, t) {
127
+ let n = (e) => Math.trunc(e ?? 0), r = (e) => w(e) === null ? 0 : Math.trunc(e.width);
128
128
  return n(e?.left) + n(e?.right) + r(t?.left) + r(t?.right);
129
129
  }
130
- function U(e, t) {
131
- let n = Math.floor(t.contentWidth) - H(e.styles.padding, e.border);
130
+ function B(e, t) {
131
+ let n = Math.floor(t.contentWidth) - z(e.styles.padding, e.border);
132
132
  return e.width === "full" || e.width >= n ? " fluid-on-mobile=\"true\"" : "";
133
133
  }
134
- function W(e) {
135
- return Object.entries(w(e)).map(([e, t]) => ` ${e}="${L(t)}"`).join("");
134
+ function V(e) {
135
+ return Object.entries(se(e)).map(([e, t]) => ` ${e}="${F(t)}"`).join("");
136
136
  }
137
- function G(e) {
138
- let t = T(e);
137
+ function H(e) {
138
+ let t = p(e);
139
139
  return t === null ? "" : ` border-radius="${t}"`;
140
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}"`;
141
+ function U(e) {
142
+ let t = g(e);
143
+ return t === null ? "" : ` background-url="${P(t.url)}" background-size="${t.size}" background-position="${t.position}" background-repeat="${t.repeat}"`;
144
144
  }
145
145
  // ../renderer/src/rich-text.ts
146
- var q = "tpl-rich-text";
147
- function J(e) {
148
- return `${q}-${e}`;
146
+ var W = "tpl-rich-text";
147
+ function G(e) {
148
+ return `${W}-${e}`;
149
149
  }
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)}`;
150
+ function me(e, t = "ltr") {
151
+ let n = _, r = `.${W}`, i = [...new Set(e)].sort((e, t) => e - t).flatMap((e) => {
152
+ let t = `.${G(e)}`;
153
153
  return [`${t} p { margin: 0 0 ${e}px; }`, `${t} p:last-child { margin-bottom: 0; }`];
154
154
  }), a = t === "rtl" ? "padding-right" : "padding-left";
155
155
  return [
@@ -158,118 +158,176 @@ function ue(e, t = "ltr") {
158
158
  `${r} li { margin: ${n.listItemMarginY}px 0; }`
159
159
  ].join("\n ");
160
160
  }
161
- function Y(e) {
162
- return e ?? v.paragraphGap;
161
+ function K(e) {
162
+ return e ?? _.paragraphGap;
163
163
  }
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);
164
+ function he(e) {
165
+ let t = [_.paragraphGap], n = (e) => {
166
+ if (e.type === "paragraph" && t.push(K(e.paragraphSpacing)), T(e)) for (let t of e.children) for (let e of t) n(e);
167
+ else if (a(e)) for (let t of e.children) n(t);
168
168
  };
169
- for (let t of e) r(t);
169
+ for (let t of e) n(t);
170
170
  return t;
171
171
  }
172
+ var ge = {
173
+ apos: "'",
174
+ quot: "\"",
175
+ nbsp: "\xA0"
176
+ }, _e = /&(?:#(\d+)|#x([0-9a-f]+)|(apos|quot|nbsp));/gi, ve = /[a-z]/i, q = /[ \t\n\f\r]/;
177
+ function ye(e, t, n, r, i) {
178
+ let a;
179
+ if (i !== void 0) a = ge[i.toLowerCase()];
180
+ else {
181
+ let t = Number(n ?? `0x${r}`);
182
+ if (!(t > 0 && t <= 1114111 && !(t >= 55296 && t <= 57343))) return e;
183
+ a = String.fromCodePoint(t);
184
+ }
185
+ return a === "&" ? "&amp;" : a === "<" || a === ">" ? e : a === t ? t === "\"" ? "'" : "\"" : a;
186
+ }
187
+ function be(e) {
188
+ let t = 1;
189
+ for (; t < e.length && !q.test(e[t]) && e[t] !== "/";) t++;
190
+ for (; t < e.length;) {
191
+ for (; t < e.length && (q.test(e[t]) || e[t] === "/");) t++;
192
+ let n = t;
193
+ for (; t < e.length && !/[\s=/]/.test(e[t]);) t++;
194
+ let r = e.slice(n, t).toLowerCase();
195
+ if (r === "") {
196
+ t++;
197
+ continue;
198
+ }
199
+ for (; t < e.length && q.test(e[t]);) t++;
200
+ if (e[t] !== "=") continue;
201
+ for (t++; t < e.length && q.test(e[t]);) t++;
202
+ let i = e[t];
203
+ if (i === "\"" || i === "'") {
204
+ let n = e.indexOf(i, t + 1);
205
+ if (n === -1) return e;
206
+ if (r === "style") {
207
+ let r = e.slice(t + 1, n).replace(_e, (e, t, n, r) => ye(e, i, t, n, r));
208
+ return `${e.slice(0, t + 1)}${r}${e.slice(n)}`;
209
+ }
210
+ t = n + 1;
211
+ } else for (; t < e.length && !q.test(e[t]);) t++;
212
+ }
213
+ return e;
214
+ }
215
+ function J(e) {
216
+ if (!e.includes("&")) return e;
217
+ let t = "", n = 0, r = e.indexOf("<");
218
+ for (; r !== -1;) {
219
+ if (!ve.test(e.charAt(r + 1))) {
220
+ r = e.indexOf("<", r + 1);
221
+ continue;
222
+ }
223
+ let i = x(e, r + 1);
224
+ if (i === -1) break;
225
+ let a = e.slice(r, i), o = be(a);
226
+ o !== a && (t += e.slice(n, r) + o, n = i), r = e.indexOf("<", i);
227
+ }
228
+ return t + e.slice(n);
229
+ }
172
230
  // ../renderer/src/renderers/title.ts
173
- function fe(e, t) {
231
+ function xe(e, t) {
174
232
  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}`;
233
+ let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = Se(J(f(C(e.content)))), a = y[e.level] ?? y[2], o = e.color ? `\n color="${P(e.color)}"` : "", s = e.textAlign, c = Ce(e.fontFamily, t), l = k(e, [W, G(K(void 0))]), d = `h${y[e.level] ? e.level : 2}`;
176
234
  return `<mj-text
177
235
  font-size="${a}px"${o}
178
236
  align="${s}"
179
- line-height="${g}"
237
+ line-height="${u}"
180
238
  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>`;
239
+ ><${d} style="margin:0;font-size:inherit;color:inherit;line-height:inherit;font-weight:700">${i}</${d}></mj-text>`;
182
240
  }
183
- function pe(e) {
241
+ function Se(e) {
184
242
  let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
185
243
  return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
186
244
  }
187
- function me(e, t) {
188
- return e ? ` font-family="${R(t.resolveFontFamily(e))}"` : "";
245
+ function Ce(e, t) {
246
+ return e ? ` font-family="${I(t.resolveFontFamily(e))}"` : "";
189
247
  }
190
248
  // ../renderer/src/renderers/paragraph.ts
191
- function he(e, t) {
249
+ function we(e, t) {
192
250
  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))]);
251
+ let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = J(f(C(e.content))), a = k(e, [W, G(K(e.paragraphSpacing))]);
194
252
  return `<mj-text
195
253
  line-height="1.5"${t.contentDirection === "rtl" ? "\n align=\"right\"" : ""}
196
254
  padding="${n}"${r}${a}
197
255
  >${i}</mj-text>`;
198
256
  }
199
257
  // ../renderer/src/renderers/image.ts
200
- function ge(e, t) {
258
+ function Te(e, t) {
201
259
  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;
260
+ let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = e.width === "full" ? t.containerWidth + "px" : e.width + "px", a = pe(e.height), o = B(e, t), s = k(e), c = H(e.borderRadius), l = V(e.border), u = "";
261
+ e.linkUrl && (u = ` href="${P(e.linkUrl)}"`, e.linkOpenInNewTab && (u += " target=\"_blank\" rel=\"noopener\""));
262
+ let d = P(e.src), f = e.decorative === !0;
205
263
  return `<mj-image
206
264
  src="${d}"
207
- alt="${f ? "" : I(e.alt)}"
265
+ alt="${f ? "" : P(e.alt)}"
208
266
  width="${i}"${a}${o}
209
267
  align="${e.align}"
210
268
  padding="${n}"${r}${l}${c}${u}${s}${f ? " role=\"presentation\"" : ""}
211
269
  />`;
212
270
  }
213
271
  // ../renderer/src/renderers/button.ts
214
- var X = "tpl-button-full";
215
- function _e(e, t) {
272
+ var Y = "tpl-button-full";
273
+ function Ee(e, t) {
216
274
  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] : []);
275
+ let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = L(e.buttonPadding), a = e.url === "" ? "" : P(e.url), o = a === "" ? "" : ` href="${a}"`, s = De(e.backgroundColor), c = P(e.textColor), l = e.fontSize, u = ke(e.borderRadius), d = N(e.text), f = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", p = Oe(e.fontFamily, t), m = Ae(e.width), h = k(e, e.width === "full" ? [Y] : []);
218
276
  return `<mj-button${o}${f}
219
277
  background-color="${s}"
220
278
  color="${c}"
221
279
  font-size="${l}px"
222
280
  font-weight="bold"
223
- border-radius="${u}"${W(e.border)}
281
+ border-radius="${u}"${V(e.border)}
224
282
  inner-padding="${i}"
225
283
  align="${e.align ?? "center"}"
226
284
  padding="${n}"${r}${p}${m}${h}
227
285
  >${d}</mj-button>`;
228
286
  }
229
- function ve(e) {
230
- return e.trim() === "" ? "transparent" : I(e);
287
+ function De(e) {
288
+ return e.trim() === "" ? "transparent" : P(e);
231
289
  }
232
- function ye(e, t) {
233
- return e ? ` font-family="${R(t.resolveFontFamily(e))}"` : "";
290
+ function Oe(e, t) {
291
+ return e ? ` font-family="${I(t.resolveFontFamily(e))}"` : "";
234
292
  }
235
- function be(e) {
236
- return typeof e == "number" ? `${e}px` : T(e) ?? "0px";
293
+ function ke(e) {
294
+ return typeof e == "number" ? `${e}px` : p(e) ?? "0px";
237
295
  }
238
- function xe(e) {
296
+ function Ae(e) {
239
297
  return e === void 0 ? "" : ` width="${e === "full" ? "100%" : `${e}px`}"`;
240
298
  }
241
299
  // ../renderer/src/renderers/divider.ts
242
- function Se(e, t) {
300
+ function je(e, t) {
243
301
  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;
302
+ let n = L(e.styles.padding), r = e.styles.backgroundColor ? ` container-background-color="${P(e.styles.backgroundColor)}"` : "", i = e.width === "full" ? "100%" : typeof e.width == "number" ? `${e.width}px` : e.width;
245
303
  return `<mj-divider
246
304
  border-width="${e.thickness}px"
247
305
  border-style="${e.lineStyle}"
248
- border-color="${I(e.color)}"
306
+ border-color="${P(e.color)}"
249
307
  width="${i}"
250
308
  padding="${n}"${r}${k(e)}
251
309
  />`;
252
310
  }
253
311
  // ../renderer/src/renderers/spacer.ts
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)} />`;
312
+ function Me(e, t) {
313
+ return O(e) ? "" : `<mj-spacer height="${e.height}px" padding="0"${e.styles.backgroundColor ? ` container-background-color="${P(e.styles.backgroundColor)}"` : ""}${k(e)} />`;
256
314
  }
257
315
  // ../renderer/src/renderers/html.ts
258
- function we(e, t) {
316
+ function Ne(e, t) {
259
317
  if (O(e) || !t.allowHtmlBlocks) return "";
260
318
  let n = e.content;
261
319
  if (n === "") return "";
262
320
  let r = k(e);
263
- return `<mj-text padding="${z(e.styles.padding)}"${B(e.styles.backgroundColor, "container")}${r}>
321
+ return `<mj-text padding="${L(e.styles.padding)}"${R(e.styles.backgroundColor, "container")}${r}>
264
322
  ${n}
265
323
  </mj-text>`;
266
324
  }
267
325
  // ../renderer/src/renderers/social.ts
268
- function Te(e, t) {
326
+ function Pe(e, t) {
269
327
  if (O(e)) return "";
270
328
  let n = e.icons;
271
329
  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;
330
+ let r = L(e.styles.padding), i = e.styles.backgroundColor ? ` container-background-color="${P(e.styles.backgroundColor)}"` : "", a = k(e), o = e.align, s = e.iconSize, c = e.iconStyle, l = te(c, e.iconTone), u = e.spacing, d;
273
331
  switch (s) {
274
332
  case "small":
275
333
  d = 24;
@@ -300,79 +358,79 @@ function Te(e, t) {
300
358
  padding="${r}"${i}${a}
301
359
  >
302
360
  ${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;
361
+ let r = e.platform, i = P(e.url), a = `${t.socialIconsBaseUrl}/${l}/${r}.png`, o = n === p - 1 ? 0 : u;
304
362
  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>`;
305
363
  }).join("\n")}
306
364
  </mj-social>`;
307
365
  }
308
366
  // ../renderer/src/renderers/menu.ts
309
- function Ee(e, t) {
367
+ function Fe(e, t) {
310
368
  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;
369
+ let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = k(e), a = Re(e.fontFamily, t), o = e.textAlign;
312
370
  return `<mj-text
313
- font-size="${e.fontSize}px"${e.color ? `\n color="${I(e.color)}"` : ""}
371
+ font-size="${e.fontSize}px"${e.color ? `\n color="${P(e.color)}"` : ""}
314
372
  align="${o}"
315
373
  line-height="1.5"
316
374
  padding="${n}"${r}${a}${i}
317
- >${De(e)}</mj-text>`;
375
+ >${Ie(e)}</mj-text>`;
318
376
  }
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>`);
377
+ function Ie(e) {
378
+ let t = e.items, n = N(e.separator), r = F(e.separatorColor), i = e.spacing, a = e.linkColor ?? e.color, o = [], s = t.length;
379
+ for (let e = 0; e < s; e++) o.push(Le(t[e], a)), e < s - 1 && o.push(`<span style="color: ${r}; padding: 0 ${i}px;">${n}</span>`);
322
380
  return o.join("");
323
381
  }
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>`;
382
+ function Le(e, t) {
383
+ let n = N(e.text), r = P(e.url), i = e.color ?? t, a = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", o = ["text-decoration: none"];
384
+ return i && o.unshift(`color: ${F(i)}`), e.bold && o.push("font-weight: bold"), e.underline && o.push("text-decoration: underline"), `<a href="${r}" style="${o.join("; ")}"${a}>${n}</a>`;
327
385
  }
328
- function ke(e, t) {
329
- return e ? ` font-family="${R(t.resolveFontFamily(e))}"` : "";
386
+ function Re(e, t) {
387
+ return e ? ` font-family="${I(t.resolveFontFamily(e))}"` : "";
330
388
  }
331
389
  // ../renderer/src/renderers/table.ts
332
- function Ae(e, t) {
390
+ function ze(e, t) {
333
391
  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);
392
+ let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = k(e), a = Ue(e.fontFamily, t);
335
393
  return `<mj-text
336
- font-size="${e.fontSize}px"${e.color ? `\n color="${I(e.color)}"` : ""}
394
+ font-size="${e.fontSize}px"${e.color ? `\n color="${P(e.color)}"` : ""}
337
395
  align="${e.textAlign}"
338
396
  line-height="1.5"
339
397
  padding="${n}"${r}${a}${i}
340
- >${je(e)}</mj-text>`;
398
+ >${Be(e)}</mj-text>`;
341
399
  }
342
- function je(e) {
343
- let t = L(e.borderColor), n = e.borderWidth, r = "";
400
+ function Be(e) {
401
+ let t = F(e.borderColor), n = e.borderWidth, r = "";
344
402
  for (let i = 0; i < e.rows.length; i++) {
345
403
  let a = e.rows[i];
346
- r += Me(a, e, e.hasHeaderRow && i === 0, t, n);
404
+ r += Ve(a, e, e.hasHeaderRow && i === 0, t, n);
347
405
  }
348
406
  return `<table style="width: 100%; border-collapse: collapse;">${r}</table>`;
349
407
  }
350
- function Me(e, t, n, r, i) {
408
+ function Ve(e, t, n, r, i) {
351
409
  let a = "";
352
- for (let o of e.cells) a += Ne(o, t, n, r, i);
410
+ for (let o of e.cells) a += He(o, t, n, r, i);
353
411
  return `<tr>${a}</tr>`;
354
412
  }
355
- function Ne(e, t, n, r, i) {
413
+ function He(e, t, n, r, i) {
356
414
  let a = t.cellPadding, o = [`border: ${i}px solid ${r}`, `padding: ${a}px`];
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";
415
+ n && (o.push("font-weight: bold"), t.headerBackgroundColor && o.push(`background-color: ${F(t.headerBackgroundColor)}`));
416
+ let s = o.join("; "), c = N(C(e.content)), l = n ? "th" : "td";
359
417
  return `<${l} style="${s}">${c}</${l}>`;
360
418
  }
361
- function Pe(e, t) {
362
- return e ? ` font-family="${R(t.resolveFontFamily(e))}"` : "";
419
+ function Ue(e, t) {
420
+ return e ? ` font-family="${I(t.resolveFontFamily(e))}"` : "";
363
421
  }
364
422
  // ../renderer/src/renderers/custom.ts
365
- function Fe(e, t) {
423
+ function We(e, t) {
366
424
  if (O(e)) return "";
367
425
  let n = t.customBlockHtml.get(e.id) ?? e.renderedHtml;
368
426
  if (!n || n === "") return "";
369
427
  let r = k(e);
370
- return `<mj-text padding="${z(e.styles.padding)}"${B(e.styles.backgroundColor, "container")}${r}>
428
+ return `<mj-text padding="${L(e.styles.padding)}"${R(e.styles.backgroundColor, "container")}${r}>
371
429
  ${n}
372
430
  </mj-text>`;
373
431
  }
374
432
  // ../renderer/src/columns.ts
375
- function Ie(e) {
433
+ function Ge(e) {
376
434
  switch (e) {
377
435
  case "2": return ["50%", "50%"];
378
436
  case "3": return [
@@ -385,7 +443,7 @@ function Ie(e) {
385
443
  default: return ["100%"];
386
444
  }
387
445
  }
388
- function Le(e, t) {
446
+ function Ke(e, t) {
389
447
  switch (e) {
390
448
  case "2": return [t * .5, t * .5];
391
449
  case "3": return [
@@ -399,7 +457,7 @@ function Le(e, t) {
399
457
  }
400
458
  }
401
459
  // ../renderer/src/hero-geometry.ts
402
- function Re(e, t, n) {
460
+ function qe(e, t, n) {
403
461
  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));
404
462
  return {
405
463
  mode: "fixed-height",
@@ -409,7 +467,7 @@ function Re(e, t, n) {
409
467
  };
410
468
  }
411
469
  // ../renderer/src/display-condition.ts
412
- function Z(e, t) {
470
+ function X(e, t) {
413
471
  if (t === "") return "";
414
472
  let n = e.displayCondition;
415
473
  return n ? `<mj-raw>${n.before}</mj-raw>
@@ -417,35 +475,35 @@ function Z(e, t) {
417
475
  <mj-raw>${n.after}</mj-raw>` : t;
418
476
  }
419
477
  // ../renderer/src/renderers/section.ts
420
- function ze(e, t, n) {
478
+ function Je(e, t, n) {
421
479
  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 = [];
425
- for (let e = 0; e < _.length; e++) {
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}>
480
+ let r = ne(e);
481
+ if (r?.applied) return Ye(e, r, t, n);
482
+ let i = e.columns, a = Ge(i), o = Ke(i, t.containerWidth), s = Math.floor(t.contentWidth) - z(e.styles.padding, e.border), c = a.map((e) => Math.floor(s * parseFloat(e) / 100)), l = L(e.styles.padding), u = R(e.styles.backgroundColor, "native"), d = U(e.backgroundImage), f = k(e), p = H(e.borderRadius), m = V(e.border), h = t.contentDirection === "rtl" ? " direction=\"rtl\"" : "", g = e.children, _ = [];
483
+ for (let e = 0; e < g.length; e++) {
484
+ let r = g[e], i = a[e] ?? "100%", l = Math.floor(o[e] ?? t.containerWidth), u = Xe(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");
485
+ _.push(`<mj-column width="${i}"${h}>
428
486
  ${f === "" ? "<mj-text>&nbsp;</mj-text>" : f}
429
487
  </mj-column>`);
430
488
  }
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}
489
+ let v = _.join("\n");
490
+ return `<mj-section${u}${d} padding="${l}"${m}${p}${f}${h}>
491
+ ${e.stackOnMobile === !1 && _.length > 1 ? `<mj-group${h}>
492
+ ${v}
493
+ </mj-group>` : v}
436
494
  </mj-section>`;
437
495
  }
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}>
496
+ function Ye(e, t, n, r) {
497
+ let i = Math.floor(n.contentWidth), a = qe(t, i, e.styles.padding), o = R(e.styles.backgroundColor, "native") || " background-color=\"transparent\"", s = L(e.styles.padding), c = H(e.borderRadius), l = k(e), u = n.withContainerWidth(i, i - z(e.styles.padding)), d = Xe(e.children[0] ?? [], n.allowHtmlBlocks).filter((e) => !T(e)).map((e) => X(e, r(e, u))).filter((e) => e !== "").join("\n");
498
+ return `<mj-hero mode="${a.mode}" height="${a.height}px" background-url="${P(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}>
441
499
  ${d}
442
500
  </mj-hero>`;
443
501
  }
444
- function Ve(e, t) {
502
+ function Xe(e, t) {
445
503
  return t ? e : e.filter((e) => e.type !== "html");
446
504
  }
447
505
  // ../renderer/src/renderers/video.ts
448
- function He(e, t) {
506
+ function Ze(e, t) {
449
507
  if (t) return t;
450
508
  if (!e) return null;
451
509
  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})/]) {
@@ -455,44 +513,44 @@ function He(e, t) {
455
513
  let n = e.match(/vimeo\.com\/(?:video\/)?(\d+)/);
456
514
  return n ? `https://vumbnail.com/${n[1]}.jpg` : null;
457
515
  }
458
- function Ue(e, t) {
516
+ function Qe(e, t) {
459
517
  if (O(e)) return "";
460
- let n = He(e.url, e.thumbnailUrl);
518
+ let n = Ze(e.url, e.thumbnailUrl);
461
519
  if (!n) return "";
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);
520
+ let r = L(e.styles.padding), i = R(e.styles.backgroundColor, "container"), a = e.width === "full" ? t.containerWidth + "px" : e.width + "px", o = pe(e.height), s = B(e, t), c = k(e);
463
521
  return `<mj-image
464
- src="${I(n)}"
465
- alt="${I(e.alt)}"
522
+ src="${P(n)}"
523
+ alt="${P(e.alt)}"
466
524
  width="${a}"${o}${s}
467
525
  align="${e.align}"
468
526
  padding="${r}"
469
- href="${I(e.url)}"
527
+ href="${P(e.url)}"
470
528
  target="_blank"
471
529
  rel="noopener"${i}${c}
472
530
  />`;
473
531
  }
474
532
  // ../renderer/src/renderers/index.ts
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);
533
+ function Z(e, i) {
534
+ let a = i.blockRenderers[e.type];
535
+ return a ? a(e, i) : T(e) ? Je(e, i, Z) : r(e) ? xe(e, i) : m(e) ? we(e, i) : re(e) ? Te(e, i) : S(e) ? Ee(e, i) : v(e) ? je(e, i) : ie(e) ? Me(e, i) : d(e) ? Ne(e, i) : t(e) ? Pe(e, i) : ce(e) ? Fe(e, i) : c(e) ? ze(e, i) : n(e) ? Qe(e, i) : b(e) ? We(e, i) : O(e) ? "" : A(e);
478
536
  }
479
537
  // ../renderer/src/index.ts
480
- var We = `.${X} a { display: block !important; }`;
481
- async function Ge(t, n) {
538
+ var $e = `.${Y} a { display: block !important; }`;
539
+ async function et(t, n) {
482
540
  if (n?.customBlocks !== void 0 && n.renderCustomBlock !== void 0) throw TypeError("[Templatical] customBlocks cannot be combined with renderCustomBlock");
483
541
  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)}">
542
+ let r = n?.locale ?? s(t), a = l(t, r), o = n?.layout ? i(l(n.layout, r, { missing: "default" }), a) : (ee(a), e(a), a), c = n?.customFonts ?? [], u = n?.defaultFallbackFont ?? "Arial, sans-serif", d = n?.allowHtmlBlocks ?? !0, f = it(n?.socialIconsBaseUrl ?? E), p = n?.customBlocks === void 0 ? await ct(o, n?.renderCustomBlock) : await lt(o, n.customBlocks), m = ut(o, n?.getCustomBlockStylesheet, n?.customBlocks === void 0 ? void 0 : new Map(n.customBlocks.map((e) => [e.type, e]))), g = h(o.settings), _ = new D(o.settings.width, c, u, d, p, f, n?.blockRenderers ?? {}, g), v = st(o.blocks, d), y = _.resolveFontFamily(o.settings.fontFamily), b = o.settings.backgroundColor, te = o.settings.textColor ? ` color="${P(o.settings.textColor)}"` : "", x = o.settings.linkColor ? F(o.settings.linkColor) : "inherit", S = o.settings.linkUnderline ? "underline" : "none", C = v.map((e) => Q(e, _)).filter((e) => e !== "").join("\n"), ne = ot(c), w = at(o.settings.preheaderText);
543
+ return `<mjml lang="${P(o.settings.locale)}" dir="${P(g)}">
486
544
  <mj-head>${w}
487
545
  <mj-attributes>
488
- <mj-all font-family="${R(v)}" />
489
- <mj-text font-size="14px"${b} />
546
+ <mj-all font-family="${I(y)}" />
547
+ <mj-text font-size="14px"${te} />
490
548
  <mj-section padding="0" />
491
549
  <mj-column padding="0" />
492
550
  </mj-attributes>${ne}
493
551
  <mj-style inline="inline">
494
- ${ue(de(_), h)}
495
- ${We}
552
+ ${me(he(v), g)}
553
+ ${$e}
496
554
  </mj-style>
497
555
  <mj-style>
498
556
  a { color: ${x}; text-decoration: ${S}; }
@@ -502,38 +560,38 @@ async function Ge(t, n) {
502
560
  @media only screen and (min-width: 481px) {
503
561
  .tpl-hide-desktop { display: none !important; mso-hide: all !important; }
504
562
  }
505
- </mj-style>${rt(m)}
563
+ </mj-style>${dt(m)}
506
564
  </mj-head>
507
- <mj-body width="${g.containerWidth}px" background-color="${y}">
565
+ <mj-body width="${_.containerWidth}px" background-color="${b}">
508
566
  ${C}
509
567
  </mj-body>
510
568
  </mjml>`;
511
569
  }
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"), {
570
+ function Q(e, t) {
571
+ if (a(e)) {
572
+ let n = tt(t, e.styles.padding);
573
+ return X(e, nt(st(e.children, t.allowHtmlBlocks).map((e) => Q(e, n)).filter((e) => e !== "").join("\n"), {
516
574
  backgroundColor: e.styles.backgroundColor,
517
575
  padding: e.styles.padding,
518
576
  borderRadius: e.borderRadius,
519
577
  backgroundImage: e.backgroundImage
520
578
  }, t.contentDirection));
521
579
  }
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);
580
+ if (T(e)) {
581
+ let n = Z(e, e.wrapper ? tt(t, e.wrapper.padding) : t);
582
+ return X(e, e.wrapper && n !== "" ? nt(n, e.wrapper, t.contentDirection) : n);
525
583
  }
526
- return Z(e, Ye(Q(e, t), t.contentDirection));
584
+ return X(e, rt(Z(e, t), t.contentDirection));
527
585
  }
528
- function qe(e, t) {
529
- return e.withContainerWidth(e.containerWidth, Math.floor(e.contentWidth) - H(t));
586
+ function tt(e, t) {
587
+ return e.withContainerWidth(e.containerWidth, Math.floor(e.contentWidth) - z(t));
530
588
  }
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\"" : ""}>
589
+ function nt(e, t, n) {
590
+ return `<mj-wrapper${R(t.backgroundColor, "native")}${U(t.backgroundImage)}${` padding="${t.padding ? L(t.padding) : "0"}"`}${H(t.borderRadius)}${n === "rtl" ? " direction=\"rtl\"" : ""}>
533
591
  ${e}
534
592
  </mj-wrapper>`;
535
593
  }
536
- function Ye(e, t) {
594
+ function rt(e, t) {
537
595
  if (e === "") return "";
538
596
  let n = t === "rtl" ? " direction=\"rtl\"" : "";
539
597
  return `<mj-section${n}>
@@ -542,21 +600,21 @@ ${e}
542
600
  </mj-column>
543
601
  </mj-section>`;
544
602
  }
545
- function Xe(e) {
603
+ function it(e) {
546
604
  return e.endsWith("/") ? e.slice(0, -1) : e;
547
605
  }
548
- function Ze(e) {
606
+ function at(e) {
549
607
  if (!e) return "";
550
608
  let t = e.trim();
551
- return t === "" ? "" : `\n <mj-preview>${F(t)}</mj-preview>`;
609
+ return t === "" ? "" : `\n <mj-preview>${N(t)}</mj-preview>`;
552
610
  }
553
- function Qe(e) {
554
- return e.length === 0 ? "" : e.map((e) => `\n <mj-font name="${I(e.name)}" href="${I(e.url)}" />`).join("");
611
+ function ot(e) {
612
+ return e.length === 0 ? "" : e.map((e) => `\n <mj-font name="${P(e.name)}" href="${P(e.url)}" />`).join("");
555
613
  }
556
- function $e(e, t) {
614
+ function st(e, t) {
557
615
  return t ? e : e.filter((e) => e.type !== "html");
558
616
  }
559
- async function et(e, t) {
617
+ async function ct(e, t) {
560
618
  let n = /* @__PURE__ */ new Map();
561
619
  if (!t) return n;
562
620
  let r = [];
@@ -565,7 +623,7 @@ async function et(e, t) {
565
623
  for (let e = 0; e < r.length; e++) n.set(r[e].id, i[e]);
566
624
  return n;
567
625
  }
568
- async function tt(e, t) {
626
+ async function lt(e, t) {
569
627
  let n = /* @__PURE__ */ new Map(), r = [];
570
628
  if ($(e.blocks, r), r.length === 0) return n;
571
629
  let i;
@@ -574,8 +632,8 @@ async function tt(e, t) {
574
632
  } catch {
575
633
  throw Error("[Templatical] customBlocks requires the optional liquidjs package.");
576
634
  }
577
- let a = s(i), o = new Map(t.map((e) => [e.type, e])), c = await Promise.all(r.map(async (e) => {
578
- let t = o.get(e.customType);
635
+ let a = o(i), s = new Map(t.map((e) => [e.type, e])), c = await Promise.all(r.map(async (e) => {
636
+ let t = s.get(e.customType);
579
637
  return t ? String(await a.parseAndRender(t.template, e.fieldValues)) : void 0;
580
638
  }));
581
639
  for (let e = 0; e < r.length; e++) {
@@ -585,11 +643,11 @@ async function tt(e, t) {
585
643
  return n;
586
644
  }
587
645
  function $(e, 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);
646
+ for (let n of e) if (b(n)) t.push(n);
647
+ else if (T(n)) for (let e of n.children) $(e, t);
648
+ else a(n) && $(n.children, t);
591
649
  }
592
- function nt(e, t, n) {
650
+ function ut(e, t, n) {
593
651
  let r = [];
594
652
  if ($(e.blocks, r), r.length === 0) return [];
595
653
  let i = /* @__PURE__ */ new Map();
@@ -605,9 +663,9 @@ function nt(e, t, n) {
605
663
  }
606
664
  return s;
607
665
  }
608
- function rt(e) {
666
+ function dt(e) {
609
667
  return e.length === 0 ? "" : e.map((e) => `\n <mj-style>\n${e}\n </mj-style>`).join("");
610
668
  }
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 };
669
+ export { Y as BUTTON_FULL_WIDTH_CSS_CLASS, E as DEFAULT_SOCIAL_ICONS_BASE_URL, W as RICH_TEXT_CSS_CLASS, D as RenderContext, ue as UNRENDERABLE_MARKER_PREFIX, C as convertMergeTagsToValues, P as escapeAttr, N as escapeHtml, B as fluidOnMobileAttr, k as getCssClassAttr, le as getCssClasses, Ge as getWidthPercentages, Ke as getWidthPixels, O as isHiddenOnAll, Z as renderBlock, et as renderToMjml, A as renderUnrenderableBlock, K as resolveParagraphGap, G as richTextGapClass, L as toPaddingString };
612
670
 
613
- //# sourceMappingURL=src-Ddpm4HsS.js.map
671
+ //# sourceMappingURL=src-8bYYJPCt.js.map