@templatical/editor 0.60.0 → 0.60.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 (245) hide show
  1. package/dist/{AiAltTextPopover-DiIaqDtB.js → AiAltTextPopover-DSA1wiiW.js} +1 -1
  2. package/dist/{AiAltTextReview-DIe0WBbj.js → AiAltTextReview-B9-vfzCj.js} +1 -1
  3. package/dist/{AiChatPanel-aj2TPO9F.js → AiChatPanel-DPoq2Til.js} +8 -8
  4. package/dist/{AiPanels-CRM3jf82.js → AiPanels-UdfhAzzu.js} +1 -1
  5. package/dist/{AiRewriteMenu-F3GyXBsk.js → AiRewriteMenu-BaeMlSEx.js} +8 -8
  6. package/dist/{BlockIssueBadge-DlhA_I6J.js → BlockIssueBadge-DQ_6NI4p.js} +2 -2
  7. package/dist/{BlockPreviewCanvas-DYspUXMO.js → BlockPreviewCanvas-DWDfih6j.js} +4 -4
  8. package/dist/{CloudPanels-CAMn545-.js → CloudPanels-ClHDM3ge.js} +3 -3
  9. package/dist/{CollaborationNotices-CnfS8BQy.js → CollaborationNotices-PqWv0q8W.js} +1 -1
  10. package/dist/{CollaboratorBar-DufLdLQP.js → CollaboratorBar-p-_PWqXW.js} +1 -1
  11. package/dist/{CommentsPanel-C2hFFs0o.js → CommentsPanel-BUo-YhSX.js} +1 -1
  12. package/dist/{CommentsSidebar-CgEwxt2T.js → CommentsSidebar-D_Pz7FPz.js} +10 -10
  13. package/dist/{CountdownToolbar-CNqYDevp.js → CountdownToolbar-DYFSFwkD.js} +4 -4
  14. package/dist/{IssuesPanel-cPKhimE9.js → IssuesPanel-C7mBrK6a.js} +9 -9
  15. package/dist/{LanguageMenu-zxlpmw2x.js → LanguageMenu-f7js1FF8.js} +10 -10
  16. package/dist/{LocaleNotices-PIfpvCCI.js → LocaleNotices-CAvDAawJ.js} +2 -2
  17. package/dist/{LogicTagInsertButton-DqTkGJSR.js → LogicTagInsertButton-Clc3JTg_.js} +6 -6
  18. package/dist/{MediaEditModal-C2Bn8WGb.js → MediaEditModal-YXOL0d_y.js} +1 -1
  19. package/dist/{MediaPanels-BAZByHRA.js → MediaPanels-VCv5epgs.js} +1 -1
  20. package/dist/{MergeTagInput-Jly1Pw0v.js → MergeTagInput-B5a9noTB.js} +1 -1
  21. package/dist/{MergeTagModeToggle-5kaFLRAm.js → MergeTagModeToggle-D1r2aH5x.js} +4 -4
  22. package/dist/{MergeTagTextarea-CCfirhcR.js → MergeTagTextarea-CA9dPfMH.js} +3 -3
  23. package/dist/{ParagraphEditor-DTdnxgDZ.js → ParagraphEditor-ByzfpepN.js} +13 -13
  24. package/dist/{RestoreVersionDialog-cUYu3Xqs.js → RestoreVersionDialog-Da5sTCFI.js} +3 -3
  25. package/dist/{RichTextEditorContent-Aub9tOHF.js → RichTextEditorContent-gnRxu4-L.js} +4 -4
  26. package/dist/{SaveBlockDialog-D_ie3uIF.js → SaveBlockDialog-BM1Fki_2.js} +7 -7
  27. package/dist/{SavedBlocksBrowserModal-fhSnYT1l.js → SavedBlocksBrowserModal-DHOTdJKB.js} +9 -9
  28. package/dist/{SavedBlocksPanels-Lklqy4XI.js → SavedBlocksPanels-BJ2OM0cG.js} +1 -1
  29. package/dist/{SavedBlocksPickBar-CpWkCa8G.js → SavedBlocksPickBar-C4Bv1K_9.js} +2 -2
  30. package/dist/{TemplateSettings-BJ4a8RBr.js → TemplateSettings-DsaSsCC8.js} +8 -8
  31. package/dist/{TestEmailModal-BEoapoDc.js → TestEmailModal-CMo0cJik.js} +8 -8
  32. package/dist/{TestEmailPanel-DgyzokCf.js → TestEmailPanel-B2OoOy9K.js} +1 -1
  33. package/dist/{TitleEditor-BQoSPgOi.js → TitleEditor--gFbrR7V.js} +6 -6
  34. package/dist/{Toolbar-KhPpWyX1.js → Toolbar-UXT03-Dc.js} +552 -442
  35. package/dist/{TplModal-F_kA7luG.js → TplModal-DkoyIwy1.js} +1 -1
  36. package/dist/{VersionHistoryMenu-Bz4G8cNm.js → VersionHistoryMenu-D-RCk3oB.js} +5 -5
  37. package/dist/{VersionHistoryPanels-DmVRyWv9.js → VersionHistoryPanels-TzzRlmqK.js} +1 -1
  38. package/dist/{VersionPreviewBanner-BeppXZyn.js → VersionPreviewBanner-DMg2sw3V.js} +1 -1
  39. package/dist/{WrapperBlock-Ds7yfbhg.js → WrapperBlock-B4mdW2CP.js} +3 -3
  40. package/dist/{blockTypeIcons-Do1QqDjg.js → blockTypeIcons-MX-xQH_Z.js} +3 -3
  41. package/dist/bundle-stats.json +6 -6
  42. package/dist/{cdn/chunks/ca-Ce3NmK9v.js → ca-C8N05sCU.js} +4 -3
  43. package/dist/cdn/chunks/{AiAltTextPopover-CUzIaLRK.js → AiAltTextPopover-BLNN_Pnd.js} +2 -2
  44. package/dist/cdn/chunks/{AiAltTextPopover-CUzIaLRK.js.map → AiAltTextPopover-BLNN_Pnd.js.map} +1 -1
  45. package/dist/cdn/chunks/{AiAltTextReview-BXBlE71X.js → AiAltTextReview-Db8vSNpe.js} +2 -2
  46. package/dist/cdn/chunks/{AiAltTextReview-BXBlE71X.js.map → AiAltTextReview-Db8vSNpe.js.map} +1 -1
  47. package/dist/cdn/chunks/{AiChatPanel-BKydciDQ.js → AiChatPanel-cIT2haLo.js} +2 -2
  48. package/dist/cdn/chunks/{AiChatPanel-BKydciDQ.js.map → AiChatPanel-cIT2haLo.js.map} +1 -1
  49. package/dist/cdn/chunks/{AiPanels-De-cIZ4p.js → AiPanels-B4GG8w3J.js} +2 -2
  50. package/dist/cdn/chunks/{AiPanels-De-cIZ4p.js.map → AiPanels-B4GG8w3J.js.map} +1 -1
  51. package/dist/cdn/chunks/{AiRewriteMenu-C9vBUTIB.js → AiRewriteMenu-C34wZVcW.js} +6 -6
  52. package/dist/cdn/chunks/{AiRewriteMenu-C9vBUTIB.js.map → AiRewriteMenu-C34wZVcW.js.map} +1 -1
  53. package/dist/cdn/chunks/{BlockIssueBadge-B3CTTvgw.js → BlockIssueBadge-C50pmOMZ.js} +2 -2
  54. package/dist/cdn/chunks/{BlockIssueBadge-B3CTTvgw.js.map → BlockIssueBadge-C50pmOMZ.js.map} +1 -1
  55. package/dist/cdn/chunks/{BlockPreviewCanvas-B4Bj--kc.js → BlockPreviewCanvas-CUOrwkWR.js} +5 -5
  56. package/dist/cdn/chunks/{BlockPreviewCanvas-B4Bj--kc.js.map → BlockPreviewCanvas-CUOrwkWR.js.map} +1 -1
  57. package/dist/cdn/chunks/{CloudPanels-CQ75I3hQ.js → CloudPanels-BAGDHObm.js} +3 -3
  58. package/dist/cdn/chunks/{CloudPanels-CQ75I3hQ.js.map → CloudPanels-BAGDHObm.js.map} +1 -1
  59. package/dist/cdn/chunks/{CollaborationNotices-CgLea-hu.js → CollaborationNotices-CTmjjbHv.js} +2 -2
  60. package/dist/cdn/chunks/{CollaborationNotices-CgLea-hu.js.map → CollaborationNotices-CTmjjbHv.js.map} +1 -1
  61. package/dist/cdn/chunks/{CollaboratorBar-CjRcbebT.js → CollaboratorBar-CzHjawjF.js} +2 -2
  62. package/dist/cdn/chunks/{CollaboratorBar-CjRcbebT.js.map → CollaboratorBar-CzHjawjF.js.map} +1 -1
  63. package/dist/cdn/chunks/{CommentsPanel-D_ud9GMN.js → CommentsPanel-Dh0_eRBe.js} +2 -2
  64. package/dist/cdn/chunks/{CommentsPanel-D_ud9GMN.js.map → CommentsPanel-Dh0_eRBe.js.map} +1 -1
  65. package/dist/cdn/chunks/{CommentsSidebar-CXn1EGAI.js → CommentsSidebar-JxZ-O2mY.js} +2 -2
  66. package/dist/cdn/chunks/{CommentsSidebar-CXn1EGAI.js.map → CommentsSidebar-JxZ-O2mY.js.map} +1 -1
  67. package/dist/cdn/chunks/{CountdownToolbar-BOyk_4k7.js → CountdownToolbar-BBiK9EaU.js} +5 -5
  68. package/dist/cdn/chunks/{CountdownToolbar-BOyk_4k7.js.map → CountdownToolbar-BBiK9EaU.js.map} +1 -1
  69. package/dist/cdn/chunks/{IssuesPanel-DOC94ZsH.js → IssuesPanel-BtAn12hl.js} +4 -4
  70. package/dist/cdn/chunks/{IssuesPanel-DOC94ZsH.js.map → IssuesPanel-BtAn12hl.js.map} +1 -1
  71. package/dist/cdn/chunks/{LanguageMenu-DktneIpL.js → LanguageMenu-BDldm-Hp.js} +5 -5
  72. package/dist/cdn/chunks/{LanguageMenu-DktneIpL.js.map → LanguageMenu-BDldm-Hp.js.map} +1 -1
  73. package/dist/cdn/chunks/{LocaleNotices-B2NgnHoP.js → LocaleNotices-CzrNKR-N.js} +2 -2
  74. package/dist/cdn/chunks/{LocaleNotices-B2NgnHoP.js.map → LocaleNotices-CzrNKR-N.js.map} +1 -1
  75. package/dist/cdn/chunks/{LogicTagInsertButton-CQ8RiOou.js → LogicTagInsertButton-B4wuPoMa.js} +5 -5
  76. package/dist/cdn/chunks/{LogicTagInsertButton-CQ8RiOou.js.map → LogicTagInsertButton-B4wuPoMa.js.map} +1 -1
  77. package/dist/cdn/chunks/{MediaEditModal-Cs7_Om7e.js → MediaEditModal-DJ2wxInt.js} +2 -2
  78. package/dist/cdn/chunks/{MediaEditModal-Cs7_Om7e.js.map → MediaEditModal-DJ2wxInt.js.map} +1 -1
  79. package/dist/cdn/chunks/{MediaPanels-BeekGmql.js → MediaPanels-BJawNjr9.js} +2 -2
  80. package/dist/cdn/chunks/{MediaPanels-BeekGmql.js.map → MediaPanels-BJawNjr9.js.map} +1 -1
  81. package/dist/cdn/chunks/{MergeTagInput-D7FZ0ca0.js → MergeTagInput-DZD-p4nR.js} +2 -2
  82. package/dist/cdn/chunks/{MergeTagInput-D7FZ0ca0.js.map → MergeTagInput-DZD-p4nR.js.map} +1 -1
  83. package/dist/cdn/chunks/{MergeTagModeToggle-CySCCEDs.js → MergeTagModeToggle-DGuJCgqO.js} +3 -3
  84. package/dist/cdn/chunks/{MergeTagModeToggle-CySCCEDs.js.map → MergeTagModeToggle-DGuJCgqO.js.map} +1 -1
  85. package/dist/cdn/chunks/{MergeTagTextarea-DJbWTYVH.js → MergeTagTextarea-BRiaRBr_.js} +4 -4
  86. package/dist/cdn/chunks/{MergeTagTextarea-DJbWTYVH.js.map → MergeTagTextarea-BRiaRBr_.js.map} +1 -1
  87. package/dist/cdn/chunks/{ParagraphEditor-DAQUWqQJ.js → ParagraphEditor-CPYQXRIc.js} +10 -10
  88. package/dist/cdn/chunks/{ParagraphEditor-DAQUWqQJ.js.map → ParagraphEditor-CPYQXRIc.js.map} +1 -1
  89. package/dist/cdn/chunks/{RestoreVersionDialog-COTRe_rM.js → RestoreVersionDialog-NjbHial9.js} +3 -3
  90. package/dist/cdn/chunks/{RestoreVersionDialog-COTRe_rM.js.map → RestoreVersionDialog-NjbHial9.js.map} +1 -1
  91. package/dist/cdn/chunks/{RichTextEditorContent-DeWPMd9V.js → RichTextEditorContent-CtV0Q0SO.js} +4 -4
  92. package/dist/cdn/chunks/{RichTextEditorContent-DeWPMd9V.js.map → RichTextEditorContent-CtV0Q0SO.js.map} +1 -1
  93. package/dist/cdn/chunks/{SaveBlockDialog-adQMbKR1.js → SaveBlockDialog-BZqPkGrE.js} +6 -6
  94. package/dist/cdn/chunks/{SaveBlockDialog-adQMbKR1.js.map → SaveBlockDialog-BZqPkGrE.js.map} +1 -1
  95. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CGIFCRAx.js → SavedBlocksBrowserModal-CqfyRtlX.js} +6 -6
  96. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CGIFCRAx.js.map → SavedBlocksBrowserModal-CqfyRtlX.js.map} +1 -1
  97. package/dist/cdn/chunks/{SavedBlocksPanels-Du0RYlEf.js → SavedBlocksPanels-BILHEdkP.js} +2 -2
  98. package/dist/cdn/chunks/{SavedBlocksPanels-Du0RYlEf.js.map → SavedBlocksPanels-BILHEdkP.js.map} +1 -1
  99. package/dist/cdn/chunks/{SavedBlocksPickBar-DmleyUrn.js → SavedBlocksPickBar-C9NKqOEU.js} +3 -3
  100. package/dist/cdn/chunks/{SavedBlocksPickBar-DmleyUrn.js.map → SavedBlocksPickBar-C9NKqOEU.js.map} +1 -1
  101. package/dist/cdn/chunks/{TemplateSettings-Csjef99q.js → TemplateSettings--_ZfbhnU.js} +6 -6
  102. package/dist/cdn/chunks/{TemplateSettings-Csjef99q.js.map → TemplateSettings--_ZfbhnU.js.map} +1 -1
  103. package/dist/cdn/chunks/{TestEmailModal-ClkexOtF.js → TestEmailModal-CtfoV82K.js} +7 -7
  104. package/dist/cdn/chunks/{TestEmailModal-ClkexOtF.js.map → TestEmailModal-CtfoV82K.js.map} +1 -1
  105. package/dist/cdn/chunks/{TestEmailPanel-DYEYzhU2.js → TestEmailPanel-NK26SU2u.js} +2 -2
  106. package/dist/cdn/chunks/{TestEmailPanel-DYEYzhU2.js.map → TestEmailPanel-NK26SU2u.js.map} +1 -1
  107. package/dist/cdn/chunks/{TitleEditor-opvaIgVr.js → TitleEditor-DXN_aOn0.js} +5 -5
  108. package/dist/cdn/chunks/{TitleEditor-opvaIgVr.js.map → TitleEditor-DXN_aOn0.js.map} +1 -1
  109. package/dist/cdn/chunks/{Toolbar-DbqkKRXy.js → Toolbar-HCxD4Ifc.js} +532 -422
  110. package/dist/cdn/chunks/Toolbar-HCxD4Ifc.js.map +1 -0
  111. package/dist/cdn/chunks/{TplModal-DLV5OeMD.js → TplModal-DzHoLmGo.js} +2 -2
  112. package/dist/cdn/chunks/{TplModal-DLV5OeMD.js.map → TplModal-DzHoLmGo.js.map} +1 -1
  113. package/dist/cdn/chunks/{VersionHistoryMenu-DBd0zwjE.js → VersionHistoryMenu-CVGlUPwS.js} +2 -2
  114. package/dist/cdn/chunks/{VersionHistoryMenu-DBd0zwjE.js.map → VersionHistoryMenu-CVGlUPwS.js.map} +1 -1
  115. package/dist/cdn/chunks/{VersionHistoryPanels-hy_Ybxie.js → VersionHistoryPanels-Du8sQry2.js} +2 -2
  116. package/dist/cdn/chunks/{VersionHistoryPanels-hy_Ybxie.js.map → VersionHistoryPanels-Du8sQry2.js.map} +1 -1
  117. package/dist/cdn/chunks/{VersionPreviewBanner-D-yHxWWY.js → VersionPreviewBanner-5RFz4AQx.js} +2 -2
  118. package/dist/cdn/chunks/{VersionPreviewBanner-D-yHxWWY.js.map → VersionPreviewBanner-5RFz4AQx.js.map} +1 -1
  119. package/dist/cdn/chunks/{WrapperBlock-Ce_k8m_x.js → WrapperBlock-DTayPD6Q.js} +4 -4
  120. package/dist/cdn/chunks/{WrapperBlock-Ce_k8m_x.js.map → WrapperBlock-DTayPD6Q.js.map} +1 -1
  121. package/dist/cdn/chunks/{blockTypeIcons-DBoP1HkR.js → blockTypeIcons-BOonB9gK.js} +2 -2
  122. package/dist/cdn/chunks/{blockTypeIcons-DBoP1HkR.js.map → blockTypeIcons-BOonB9gK.js.map} +1 -1
  123. package/dist/{ca-Ce3NmK9v.js → cdn/chunks/ca-C8N05sCU.js} +6 -1
  124. package/dist/cdn/chunks/ca-C8N05sCU.js.map +1 -0
  125. package/dist/cdn/chunks/{composables-Brr4m0Sg.js → composables-BJBr8B4t.js} +110 -66
  126. package/dist/cdn/chunks/composables-BJBr8B4t.js.map +1 -0
  127. package/dist/cdn/chunks/{createCloudRuntime-QPeg45XL.js → createCloudRuntime-CUlw09ix.js} +3 -3
  128. package/dist/cdn/chunks/{createCloudRuntime-QPeg45XL.js.map → createCloudRuntime-CUlw09ix.js.map} +1 -1
  129. package/dist/{da-4YwDAuEr.js → cdn/chunks/da-Dno_4nGy.js} +6 -1
  130. package/dist/cdn/chunks/da-Dno_4nGy.js.map +1 -0
  131. package/dist/{de-BlQ0vdZJ.js → cdn/chunks/de-DRR5JSkh.js} +6 -1
  132. package/dist/cdn/chunks/de-DRR5JSkh.js.map +1 -0
  133. package/dist/cdn/chunks/{editor-modal-BCcbvIxc.js → editor-modal-BVM_0uoL.js} +4 -4
  134. package/dist/cdn/chunks/{editor-modal-BCcbvIxc.js.map → editor-modal-BVM_0uoL.js.map} +1 -1
  135. package/dist/cdn/chunks/{en-MlNeQVSG.js → en-DAcLbbpg.js} +5 -2
  136. package/dist/cdn/chunks/en-DAcLbbpg.js.map +1 -0
  137. package/dist/cdn/chunks/en-DlDEofnd.js +1 -0
  138. package/dist/cdn/chunks/{es-2s8x4OM2.js → es-BcEQLQxe.js} +5 -2
  139. package/dist/cdn/chunks/es-BcEQLQxe.js.map +1 -0
  140. package/dist/cdn/chunks/{extensions-BpuyqKVY.js → extensions-BPZirXpF.js} +4 -4
  141. package/dist/cdn/chunks/{extensions-BpuyqKVY.js.map → extensions-BPZirXpF.js.map} +1 -1
  142. package/dist/{fr-D3MjrsgQ.js → cdn/chunks/fr-CNQG7ESr.js} +6 -1
  143. package/dist/cdn/chunks/fr-CNQG7ESr.js.map +1 -0
  144. package/dist/cdn/chunks/{icons-BJ6AtVgu.js → icons-CWEBTtbR.js} +6 -6
  145. package/dist/cdn/chunks/{icons-BJ6AtVgu.js.map → icons-CWEBTtbR.js.map} +1 -1
  146. package/dist/{ja-B4Kx7uBX.js → cdn/chunks/ja-CMxWxqSH.js} +6 -1
  147. package/dist/cdn/chunks/ja-CMxWxqSH.js.map +1 -0
  148. package/dist/{nl-U65iX7wN.js → cdn/chunks/nl-BjyYZDkC.js} +6 -1
  149. package/dist/cdn/chunks/nl-BjyYZDkC.js.map +1 -0
  150. package/dist/cdn/chunks/{normalizeMergeTagMarkup-B81BAWKT.js → normalizeMergeTagMarkup-CExCfSYI.js} +2 -2
  151. package/dist/cdn/chunks/{normalizeMergeTagMarkup-B81BAWKT.js.map → normalizeMergeTagMarkup-CExCfSYI.js.map} +1 -1
  152. package/dist/cdn/chunks/{preRenderCustomBlocks-CQuaMxuv.js → preRenderCustomBlocks-BLVFtvl8.js} +2 -2
  153. package/dist/cdn/chunks/{preRenderCustomBlocks-CQuaMxuv.js.map → preRenderCustomBlocks-BLVFtvl8.js.map} +1 -1
  154. package/dist/cdn/chunks/{pt-BR-_jsX1xLv.js → pt-BR-DC2A3C0v.js} +5 -2
  155. package/dist/cdn/chunks/pt-BR-DC2A3C0v.js.map +1 -0
  156. package/dist/cdn/chunks/{sanitizeHtml-BdAjvU9I.js → sanitizeHtml-Db0S2JVP.js} +2 -2
  157. package/dist/cdn/chunks/{sanitizeHtml-BdAjvU9I.js.map → sanitizeHtml-Db0S2JVP.js.map} +1 -1
  158. package/dist/cdn/chunks/{socialIcons-Df9dNe7I.js → socialIcons-WD1cjZDr.js} +3 -3
  159. package/dist/cdn/chunks/{socialIcons-Df9dNe7I.js.map → socialIcons-WD1cjZDr.js.map} +1 -1
  160. package/dist/cdn/chunks/{src-BHgVGOTi.js → src-A0kzK-pR.js} +5 -1
  161. package/dist/cdn/chunks/src-A0kzK-pR.js.map +1 -0
  162. package/dist/cdn/chunks/{src-C5V_yzAU.js → src-C9opbQj_.js} +207 -196
  163. package/dist/cdn/chunks/src-C9opbQj_.js.map +1 -0
  164. package/dist/cdn/chunks/{src-B3v_3j9b.js → src-edESkGqO.js} +366 -293
  165. package/dist/cdn/chunks/src-edESkGqO.js.map +1 -0
  166. package/dist/cdn/chunks/{useLocalizedDisplay-C3lIetmX.js → useLocalizedDisplay-Brdkp3KH.js} +2 -2
  167. package/dist/cdn/chunks/{useLocalizedDisplay-C3lIetmX.js.map → useLocalizedDisplay-Brdkp3KH.js.map} +1 -1
  168. package/dist/cdn/chunks/{useLogicTag-DOIlsGk8.js → useLogicTag-CKtQlJDa.js} +2 -2
  169. package/dist/cdn/chunks/{useLogicTag-DOIlsGk8.js.map → useLogicTag-CKtQlJDa.js.map} +1 -1
  170. package/dist/cdn/chunks/{useMergeTag-DUNl364g.js → useMergeTag-Dwy3U0PI.js} +2 -2
  171. package/dist/cdn/chunks/{useMergeTag-DUNl364g.js.map → useMergeTag-Dwy3U0PI.js.map} +1 -1
  172. package/dist/cdn/chunks/{withCurrentFont-ufGLu2Vt.js → withCurrentFont-C4pIesdB.js} +2 -2
  173. package/dist/cdn/chunks/{withCurrentFont-ufGLu2Vt.js.map → withCurrentFont-C4pIesdB.js.map} +1 -1
  174. package/dist/cdn/editor.js +21 -21
  175. package/dist/{check-CWq6Nfjj.js → check-C82yyyf1.js} +1 -1
  176. package/dist/{chevron-down-B9t0SK_-.js → chevron-down-BaBVjNbM.js} +1 -1
  177. package/dist/{chevron-right-B_qslOCS.js → chevron-right-DkS-bw8X.js} +1 -1
  178. package/dist/{chevron-up-CxZ2teV2.js → chevron-up-C1KzUIK4.js} +1 -1
  179. package/dist/{circle-exclamation-point-B1tbhkNb.js → circle-exclamation-point-DsmqtTUQ.js} +1 -1
  180. package/dist/{clock-Rw4btQn-.js → clock-dpIs7vo0.js} +1 -1
  181. package/dist/{composables-5KJV0O9T.js → composables-DjCuq6RV.js} +1307 -1263
  182. package/dist/{createCloudRuntime-BdoKeYJi.js → createCloudRuntime-CiEo0wkr.js} +2 -2
  183. package/dist/{createLucideIcon-B6Zkn9r0.js → createLucideIcon-BSam2AUu.js} +5 -5
  184. package/dist/{cdn/chunks/da-4YwDAuEr.js → da-Dno_4nGy.js} +4 -3
  185. package/dist/{cdn/chunks/de-BlQ0vdZJ.js → de-DRR5JSkh.js} +4 -3
  186. package/dist/{dist-DsA7NeIy.js → dist-DX_IQgcU.js} +4 -0
  187. package/dist/{editor-modal-_ylhrf4g.js → editor-modal-odubnc9x.js} +15 -15
  188. package/dist/en-CAImT1hl.js +1 -0
  189. package/dist/{en-MlNeQVSG.js → en-DAcLbbpg.js} +4 -1
  190. package/dist/{es-2s8x4OM2.js → es-BcEQLQxe.js} +4 -1
  191. package/dist/{extensions-DCJGAZ9z.js → extensions-C7OLgMEj.js} +3 -3
  192. package/dist/{eye-BE-DeEqG.js → eye-CxCHEszj.js} +1 -1
  193. package/dist/{cdn/chunks/fr-D3MjrsgQ.js → fr-CNQG7ESr.js} +4 -3
  194. package/dist/{image-DfRxUmUh.js → image-DvXPzqNd.js} +1 -1
  195. package/dist/index.d.ts +35 -6
  196. package/dist/{info-D1PS-81D.js → info-2KHWaZ2L.js} +1 -1
  197. package/dist/{cdn/chunks/ja-B4Kx7uBX.js → ja-CMxWxqSH.js} +4 -3
  198. package/dist/{link-DLaACaIz.js → link-_OmrcJMv.js} +1 -1
  199. package/dist/{list-CvtzVlvM.js → list-Dekd7JE8.js} +1 -1
  200. package/dist/{loader-circle-DCkSXApP.js → loader-circle-D_hT5mFS.js} +1 -1
  201. package/dist/{message-circle-Bj4F9bBO.js → message-circle-DDbiG-jz.js} +1 -1
  202. package/dist/{cdn/chunks/nl-U65iX7wN.js → nl-BjyYZDkC.js} +4 -3
  203. package/dist/{normalizeMergeTagMarkup-B7n_-4Dz.js → normalizeMergeTagMarkup-Cv5Wvs5f.js} +1 -1
  204. package/dist/{package-By1au8Wi.js → package-cORUe57D.js} +1 -1
  205. package/dist/{pencil-T4qqyRLl.js → pencil-D67H4fxq.js} +1 -1
  206. package/dist/{plus-3Zry-1gs.js → plus-BpTZAx28.js} +1 -1
  207. package/dist/{preRenderCustomBlocks-D3GzENVB.js → preRenderCustomBlocks-6CLw2rP6.js} +1 -1
  208. package/dist/{pt-BR-_jsX1xLv.js → pt-BR-DC2A3C0v.js} +4 -1
  209. package/dist/{refresh-cw-BwaO0ioc.js → refresh-cw-B4T0IFwI.js} +1 -1
  210. package/dist/{rotate-ccw-C3E0W5q-.js → rotate-ccw-BDQgjpuo.js} +1 -1
  211. package/dist/{sanitizeHtml-BcbjlypU.js → sanitizeHtml-Ru5_-IbM.js} +2 -2
  212. package/dist/{search-DfExisVv.js → search-Dp9pkaVt.js} +1 -1
  213. package/dist/{send-FRC7Giap.js → send-DO9GhgCH.js} +1 -1
  214. package/dist/{smartphone-BlYU_z_x.js → smartphone-CPW3I3hV.js} +1 -1
  215. package/dist/{socialIcons-By2LPWOQ.js → socialIcons-CPBiLTjY.js} +4 -4
  216. package/dist/{sparkles-DSi61skE.js → sparkles-CIBjNfij.js} +1 -1
  217. package/dist/{square-DEE8tT2w.js → square-3W65qrrH.js} +1 -1
  218. package/dist/templatical-editor.js +35 -35
  219. package/dist/{text-align-start-DGdrmKcG.js → text-align-start-Bs70tpRU.js} +1 -1
  220. package/dist/{trash-YZPJMZc7.js → trash-CTzhAm1o.js} +1 -1
  221. package/dist/{triangle-exclamation-point-BR-W6pQm.js → triangle-exclamation-point-D_13CuJY.js} +1 -1
  222. package/dist/{upload-B_Eoqj-4.js → upload-DFxkP9MI.js} +1 -1
  223. package/dist/{useLocalizedDisplay-_P6-hXaO.js → useLocalizedDisplay-DfiE-KjV.js} +1 -1
  224. package/dist/{useLogicTag-f0SJ1Cd2.js → useLogicTag-K5CPoMTk.js} +1 -1
  225. package/dist/{useMergeTag-0-EudwkV.js → useMergeTag-tsU_Sw2x.js} +1 -1
  226. package/dist/{useScrollToBlock-CtM_ydOS.js → useScrollToBlock-194ePl4q.js} +1 -1
  227. package/dist/{withCurrentFont-BOg3jmCT.js → withCurrentFont-C-_IYTqP.js} +1 -1
  228. package/dist/{x-C0X5MoK3.js → x-D7L8mLHJ.js} +1 -1
  229. package/package.json +9 -9
  230. package/dist/cdn/chunks/Toolbar-DbqkKRXy.js.map +0 -1
  231. package/dist/cdn/chunks/ca-Ce3NmK9v.js.map +0 -1
  232. package/dist/cdn/chunks/composables-Brr4m0Sg.js.map +0 -1
  233. package/dist/cdn/chunks/da-4YwDAuEr.js.map +0 -1
  234. package/dist/cdn/chunks/de-BlQ0vdZJ.js.map +0 -1
  235. package/dist/cdn/chunks/en-DkulseE1.js +0 -1
  236. package/dist/cdn/chunks/en-MlNeQVSG.js.map +0 -1
  237. package/dist/cdn/chunks/es-2s8x4OM2.js.map +0 -1
  238. package/dist/cdn/chunks/fr-D3MjrsgQ.js.map +0 -1
  239. package/dist/cdn/chunks/ja-B4Kx7uBX.js.map +0 -1
  240. package/dist/cdn/chunks/nl-U65iX7wN.js.map +0 -1
  241. package/dist/cdn/chunks/pt-BR-_jsX1xLv.js.map +0 -1
  242. package/dist/cdn/chunks/src-B3v_3j9b.js.map +0 -1
  243. package/dist/cdn/chunks/src-BHgVGOTi.js.map +0 -1
  244. package/dist/cdn/chunks/src-C5V_yzAU.js.map +0 -1
  245. package/dist/en-DwxgN_-Y.js +0 -1
@@ -1,9 +1,9 @@
1
- import { An as e, At as t, Ct as n, Dn as r, Dt as i, En as a, It as o, Jt as s, Kt as c, L as l, Mn as u, Mt as d, On as f, Ot as p, Sn as m, St as h, Tt as g, Vt as _, Yt as v, _t as y, a as b, bt as x, ft as S, h as C, hn as w, i as ee, in as te, jn as ne, jt as re, kn as ie, kt as ae, m as oe, o as se, p as ce, qt as T, st as E, ut as le, wt as ue, xn as de, xt as fe, yt as D } from "./src-BHgVGOTi.js";
1
+ import { An as e, At as t, Ct as n, Dn as r, Dt as i, En as a, It as o, Jt as s, Kt as c, L as l, Mn as u, Mt as d, On as f, Ot as p, Sn as m, St as h, Tt as g, Vt as _, Yt as v, _t as y, a as b, bt as x, ft as S, h as C, hn as ee, i as te, in as ne, jn as re, jt as ie, kn as ae, kt as oe, m as se, o as ce, p as le, qt as ue, st as w, ut as de, wt as fe, xn as pe, xt as me, yt as he } from "./src-A0kzK-pR.js";
2
2
  // ../renderer/src/render-context.ts
3
- var O = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
3
+ var T = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
4
4
  name: "@templatical/renderer",
5
5
  description: "Render Templatical email templates to MJML",
6
- version: "0.60.0",
6
+ version: "0.60.1",
7
7
  bugs: "https://github.com/templatical/sdk/issues",
8
8
  dependencies: { "@templatical/types": "workspace:*" },
9
9
  devDependencies: {
@@ -44,7 +44,7 @@ var O = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
44
44
  },
45
45
  type: "module",
46
46
  types: "./dist/index.d.ts"
47
- }.version}/assets/social`, k = class e {
47
+ }.version}/assets/social`, ge = class e {
48
48
  containerWidth;
49
49
  customFonts;
50
50
  defaultFallbackFont;
@@ -54,71 +54,71 @@ var O = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
54
54
  blockRenderers;
55
55
  contentDirection;
56
56
  contentWidth;
57
- constructor(e, t, n, r, i = /* @__PURE__ */ new Map(), a = O, o = {}, s = "ltr", c) {
57
+ constructor(e, t, n, r, i = /* @__PURE__ */ new Map(), a = T, o = {}, s = "ltr", c) {
58
58
  this.containerWidth = e, this.customFonts = t, this.defaultFallbackFont = n, this.allowHtmlBlocks = r, this.customBlockHtml = i, this.socialIconsBaseUrl = a, this.blockRenderers = o, this.contentDirection = s, this.contentWidth = c ?? e;
59
59
  }
60
60
  withContainerWidth(t, n = t) {
61
61
  return new e(t, this.customFonts, this.defaultFallbackFont, this.allowHtmlBlocks, this.customBlockHtml, this.socialIconsBaseUrl, this.blockRenderers, this.contentDirection, n);
62
62
  }
63
63
  resolveFontFamily(e) {
64
- return ee(e, {
64
+ return te(e, {
65
65
  customFonts: this.customFonts,
66
66
  defaultFallback: this.defaultFallbackFont
67
67
  });
68
68
  }
69
- }, A = {
69
+ }, E = {
70
70
  "&": "&",
71
71
  "<": "&lt;",
72
72
  ">": "&gt;",
73
73
  "\"": "&quot;",
74
74
  "'": "&#039;"
75
- }, pe = /[&<>"']/g;
76
- function j(e) {
77
- return e === "" ? "" : e.replace(pe, (e) => A[e] ?? e);
75
+ }, _e = /[&<>"']/g;
76
+ function D(e) {
77
+ return e === "" ? "" : e.replace(_e, (e) => E[e] ?? e);
78
78
  }
79
- function M(e) {
80
- return e === "" ? "" : e.replace(pe, (e) => A[e] ?? e);
79
+ function O(e) {
80
+ return e === "" ? "" : e.replace(_e, (e) => E[e] ?? e);
81
81
  }
82
- function N(e) {
83
- return e === "" ? "" : M(e.replace(/[;{}\r\n]/g, ""));
82
+ function k(e) {
83
+ return e === "" ? "" : O(e.replace(/[;{}\r\n]/g, ""));
84
84
  }
85
- var me = /[&<>"]/g;
86
- function P(e) {
87
- return e.replace(me, (e) => A[e] ?? e);
85
+ var ve = /[&<>"]/g;
86
+ function A(e) {
87
+ return e.replace(ve, (e) => E[e] ?? e);
88
88
  }
89
89
  // ../renderer/src/visibility.ts
90
- function F(e) {
90
+ function j(e) {
91
91
  let t = e.visibility;
92
92
  return t ? !t.desktop && !t.mobile : !1;
93
93
  }
94
- function I(e, t = []) {
95
- let n = [L(e), ...t].filter((e) => e !== "").join(" ");
96
- return n === "" ? "" : ` css-class="${M(n)}"`;
94
+ function M(e, t = []) {
95
+ let n = [N(e), ...t].filter((e) => e !== "").join(" ");
96
+ return n === "" ? "" : ` css-class="${O(n)}"`;
97
97
  }
98
- function L(e) {
98
+ function N(e) {
99
99
  let t = e.visibility;
100
100
  if (!t) return "";
101
101
  let n = [];
102
102
  return t.desktop || n.push("tpl-hide-desktop"), t.mobile || n.push("tpl-hide-mobile"), n.join(" ");
103
103
  }
104
104
  // ../renderer/src/unrenderable.ts
105
- var he = "templatical:unrenderable-block";
106
- function ge(e) {
105
+ var P = "templatical:unrenderable-block";
106
+ function F(e) {
107
107
  return e.replace(/[<>]/g, "").replace(/-{2,}/g, "-");
108
108
  }
109
- function _e(e) {
109
+ function I(e) {
110
110
  return JSON.stringify(String(e)).slice(1, -1);
111
111
  }
112
- function ve(e) {
113
- return console.warn(`[Templatical] No renderer for block type "${_e(e.type)}" (id: ${_e(e.id)}). A placeholder comment was emitted in its place. Pass a \`blockRenderers\` entry for this type to render it.`), `<mj-raw><!-- ${he} type="${ge(e.type)}" id="${ge(e.id)}" --></mj-raw>`;
112
+ function L(e) {
113
+ return console.warn(`[Templatical] No renderer for block type "${I(e.type)}" (id: ${I(e.id)}). A placeholder comment was emitted in its place. Pass a \`blockRenderers\` entry for this type to render it.`), `<mj-raw><!-- ${P} type="${F(e.type)}" id="${F(e.id)}" --></mj-raw>`;
114
114
  }
115
115
  // ../renderer/src/padding.ts
116
116
  function R(e) {
117
- return M(`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`);
117
+ return O(`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`);
118
118
  }
119
119
  // ../renderer/src/utils.ts
120
120
  function z(e, t) {
121
- return e ? ` ${t === "native" ? "background-color" : "container-background-color"}="${N(e)}"` : "";
121
+ return e ? ` ${t === "native" ? "background-color" : "container-background-color"}="${k(e)}"` : "";
122
122
  }
123
123
  function ye(e) {
124
124
  return typeof e != "number" || !Number.isFinite(e) || e <= 0 ? "" : ` height="${e}px"`;
@@ -134,24 +134,24 @@ function V(e, t) {
134
134
  return e.width === "full" || e.width >= n ? " fluid-on-mobile=\"true\"" : "";
135
135
  }
136
136
  function H(e) {
137
- return Object.entries(ne(e)).map(([e, t]) => ` ${e}="${N(t)}"`).join("");
137
+ return Object.entries(re(e)).map(([e, t]) => ` ${e}="${k(t)}"`).join("");
138
138
  }
139
139
  function U(e) {
140
140
  let t = u(e);
141
- return t === null ? "" : ` border-radius="${N(t)}"`;
141
+ return t === null ? "" : ` border-radius="${k(t)}"`;
142
142
  }
143
- function W(e) {
143
+ function be(e) {
144
144
  let t = c(e);
145
- return t === null ? "" : ` background-url="${M(t.url)}" background-size="${N(t.size)}" background-position="${N(t.position)}" background-repeat="${N(t.repeat)}"`;
145
+ return t === null ? "" : ` background-url="${O(t.url)}" background-size="${k(t.size)}" background-position="${k(t.position)}" background-repeat="${k(t.repeat)}"`;
146
146
  }
147
147
  // ../renderer/src/rich-text.ts
148
- var G = "tpl-rich-text";
149
- function K(e) {
150
- return `${G}-${e}`;
148
+ var W = "tpl-rich-text";
149
+ function G(e) {
150
+ return `${W}-${e}`;
151
151
  }
152
- function be(e, t = "ltr") {
153
- let n = r, i = `.${G}`, a = [...new Set(e)].sort((e, t) => e - t).flatMap((e) => {
154
- let t = `.${K(e)}`;
152
+ function xe(e, t = "ltr") {
153
+ let n = r, i = `.${W}`, a = [...new Set(e)].sort((e, t) => e - t).flatMap((e) => {
154
+ let t = `.${G(e)}`;
155
155
  return [`${t} p { margin: 0 0 ${e}px; }`, `${t} p:last-child { margin-bottom: 0; }`];
156
156
  }), o = t === "rtl" ? "padding-right" : "padding-left";
157
157
  return [
@@ -160,25 +160,25 @@ function be(e, t = "ltr") {
160
160
  `${i} li { margin: ${n.listItemMarginY}px 0; }`
161
161
  ].join("\n ");
162
162
  }
163
- function q(e) {
163
+ function K(e) {
164
164
  return e ?? r.paragraphGap;
165
165
  }
166
- function xe(e) {
166
+ function Se(e) {
167
167
  let t = [r.paragraphGap], n = (e) => {
168
- if (e.type === "paragraph" && t.push(q(e.paragraphSpacing)), g(e)) for (let t of e.children) for (let e of t) n(e);
168
+ if (e.type === "paragraph" && t.push(K(e.paragraphSpacing)), g(e)) for (let t of e.children) for (let e of t) n(e);
169
169
  else if (d(e)) for (let t of e.children) n(t);
170
170
  };
171
171
  for (let t of e) n(t);
172
172
  return t;
173
173
  }
174
- var Se = {
174
+ var Ce = {
175
175
  apos: "'",
176
176
  quot: "\"",
177
177
  nbsp: "\xA0"
178
- }, Ce = /&(?:#(\d+)|#x([0-9a-f]+)|(apos|quot|nbsp));/gi, we = /[a-z]/i, J = /[ \t\n\f\r]/;
179
- function Te(e, t, n, r, i) {
178
+ }, we = /&(?:#(\d+)|#x([0-9a-f]+)|(apos|quot|nbsp));/gi, Te = /[a-z]/i, q = /[ \t\n\f\r]/;
179
+ function Ee(e, t, n, r, i) {
180
180
  let a;
181
- if (i !== void 0) a = Se[i.toLowerCase()];
181
+ if (i !== void 0) a = Ce[i.toLowerCase()];
182
182
  else {
183
183
  let t = Number(n ?? `0x${r}`);
184
184
  if (!(t > 0 && t <= 1114111 && !(t >= 55296 && t <= 57343))) return e;
@@ -186,11 +186,11 @@ function Te(e, t, n, r, i) {
186
186
  }
187
187
  return a === "&" ? "&amp;" : a === "<" || a === ">" ? e : a === t ? t === "\"" ? "'" : "\"" : a;
188
188
  }
189
- function Ee(e) {
189
+ function De(e) {
190
190
  let t = 1;
191
- for (; t < e.length && !J.test(e[t]) && e[t] !== "/";) t++;
191
+ for (; t < e.length && !q.test(e[t]) && e[t] !== "/";) t++;
192
192
  for (; t < e.length;) {
193
- for (; t < e.length && (J.test(e[t]) || e[t] === "/");) t++;
193
+ for (; t < e.length && (q.test(e[t]) || e[t] === "/");) t++;
194
194
  let n = t;
195
195
  for (; t < e.length && !/[\s=/]/.test(e[t]);) t++;
196
196
  let r = e.slice(n, t).toLowerCase();
@@ -198,41 +198,41 @@ function Ee(e) {
198
198
  t++;
199
199
  continue;
200
200
  }
201
- for (; t < e.length && J.test(e[t]);) t++;
201
+ for (; t < e.length && q.test(e[t]);) t++;
202
202
  if (e[t] !== "=") continue;
203
- for (t++; t < e.length && J.test(e[t]);) t++;
203
+ for (t++; t < e.length && q.test(e[t]);) t++;
204
204
  let i = e[t];
205
205
  if (i === "\"" || i === "'") {
206
206
  let n = e.indexOf(i, t + 1);
207
207
  if (n === -1) return e;
208
208
  if (r === "style") {
209
- let r = e.slice(t + 1, n).replace(Ce, (e, t, n, r) => Te(e, i, t, n, r));
209
+ let r = e.slice(t + 1, n).replace(we, (e, t, n, r) => Ee(e, i, t, n, r));
210
210
  return `${e.slice(0, t + 1)}${r}${e.slice(n)}`;
211
211
  }
212
212
  t = n + 1;
213
- } else for (; t < e.length && !J.test(e[t]);) t++;
213
+ } else for (; t < e.length && !q.test(e[t]);) t++;
214
214
  }
215
215
  return e;
216
216
  }
217
- function De(e) {
217
+ function Oe(e) {
218
218
  if (!e.includes("&")) return e;
219
219
  let t = "", n = 0, r = e.indexOf("<");
220
220
  for (; r !== -1;) {
221
- if (!we.test(e.charAt(r + 1))) {
221
+ if (!Te.test(e.charAt(r + 1))) {
222
222
  r = e.indexOf("<", r + 1);
223
223
  continue;
224
224
  }
225
- let i = le(e, r + 1);
225
+ let i = de(e, r + 1);
226
226
  if (i === -1) break;
227
- let a = e.slice(r, i), o = Ee(a);
227
+ let a = e.slice(r, i), o = De(a);
228
228
  o !== a && (t += e.slice(n, r) + o, n = i), r = e.indexOf("<", i);
229
229
  }
230
230
  return t + e.slice(n);
231
231
  }
232
232
  // ../renderer/src/renderers/title.ts
233
- function Oe(e, t) {
234
- if (F(e)) return "";
235
- let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = ke(De(b(E(e.content)))), o = a[e.level] ?? a[2], s = e.color ? `\n color="${M(e.color)}"` : "", c = M(e.textAlign), l = Ae(e.fontFamily, t), u = I(e, [G, K(q(void 0))]), d = `h${a[e.level] ? e.level : 2}`;
233
+ function ke(e, t) {
234
+ if (j(e)) return "";
235
+ let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = Ae(Oe(b(w(e.content)))), o = a[e.level] ?? a[2], s = e.color ? `\n color="${O(e.color)}"` : "", c = O(e.textAlign), l = je(e.fontFamily, t), u = M(e, [W, G(K(void 0))]), d = `h${a[e.level] ? e.level : 2}`;
236
236
  return `<mj-text
237
237
  font-size="${o}px"${s}
238
238
  align="${c}"
@@ -240,52 +240,52 @@ function Oe(e, t) {
240
240
  padding="${n}"${r}${l}${u}
241
241
  ><${d} style="margin:0;font-size:inherit;color:inherit;line-height:inherit;font-weight:700">${i}</${d}></mj-text>`;
242
242
  }
243
- function ke(e) {
243
+ function Ae(e) {
244
244
  let t = /^\s*<p\b/.exec(e);
245
245
  if (!t) return e;
246
- let n = le(e, t[0].length);
246
+ let n = de(e, t[0].length);
247
247
  if (n === -1) return e;
248
248
  let r = /<\/p>\s*$/.exec(e);
249
249
  if (!r || r.index <= n) return e;
250
250
  let i = e.slice(n + 1, r.index);
251
251
  return /<\/p>\s*<p\b/i.test(i) ? e : i;
252
252
  }
253
- function Ae(e, t) {
254
- return e ? ` font-family="${P(t.resolveFontFamily(e))}"` : "";
253
+ function je(e, t) {
254
+ return e ? ` font-family="${A(t.resolveFontFamily(e))}"` : "";
255
255
  }
256
256
  // ../renderer/src/renderers/paragraph.ts
257
- function je(e, t) {
258
- if (F(e) || se(e.content)) return "";
259
- let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = De(b(E(e.content))), a = I(e, [G, K(q(e.paragraphSpacing))]);
257
+ function Me(e, t) {
258
+ if (j(e) || ce(e.content)) return "";
259
+ let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = Oe(b(w(e.content))), a = M(e, [W, G(K(e.paragraphSpacing))]);
260
260
  return `<mj-text
261
261
  line-height="1.5"${t.contentDirection === "rtl" ? "\n align=\"right\"" : ""}
262
262
  padding="${n}"${r}${a}
263
263
  >${i}</mj-text>`;
264
264
  }
265
265
  // ../renderer/src/renderers/image.ts
266
- function Me(e, t) {
267
- if (F(e) || e.src === "") return "";
268
- let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = M(e.width === "full" ? t.containerWidth + "px" : e.width + "px"), a = ye(e.height), o = V(e, t), s = I(e), c = U(e.borderRadius), l = H(e.border), u = "";
269
- e.linkUrl && (u = ` href="${M(e.linkUrl)}"`, e.linkOpenInNewTab && (u += " target=\"_blank\" rel=\"noopener\""));
270
- let d = M(e.src), f = e.decorative === !0;
266
+ function Ne(e, t) {
267
+ if (j(e) || e.src === "") return "";
268
+ let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = O(e.width === "full" ? t.containerWidth + "px" : e.width + "px"), a = ye(e.height), o = V(e, t), s = M(e), c = U(e.borderRadius), l = H(e.border), u = "";
269
+ e.linkUrl && (u = ` href="${O(e.linkUrl)}"`, e.linkOpenInNewTab && (u += " target=\"_blank\" rel=\"noopener\""));
270
+ let d = O(e.src), f = e.decorative === !0;
271
271
  return `<mj-image
272
272
  src="${d}"
273
- alt="${f ? "" : M(e.alt)}"
273
+ alt="${f ? "" : O(e.alt)}"
274
274
  width="${i}"${a}${o}
275
- align="${M(e.align)}"
275
+ align="${O(e.align)}"
276
276
  padding="${n}"${r}${l}${c}${u}${s}${f ? " role=\"presentation\"" : ""}
277
277
  />`;
278
278
  }
279
279
  // ../renderer/src/renderers/button.ts
280
- var Y = "tpl-button-full";
281
- function Ne(e, t) {
282
- if (F(e)) return "";
283
- 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 = Pe(e.backgroundColor), c = M(e.textColor), l = e.fontSize, u = Fe(e.fontWeight), d = M(Le(e.borderRadius)), f = j(e.text), p = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", h = Ie(e.fontFamily, t), g = Re(e.width), _ = I(e, e.width === "full" || typeof e.width == "string" && de(e.width) !== null ? [Y] : []), v = H(e.border), y = M(e.align ?? "center");
280
+ var J = "tpl-button-full";
281
+ function Pe(e, t) {
282
+ if (j(e)) return "";
283
+ let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = R(e.buttonPadding), a = e.url === "" ? "" : O(e.url), o = a === "" ? "" : ` href="${a}"`, s = Fe(e.backgroundColor), c = O(e.textColor), l = e.fontSize, u = Ie(e.fontWeight), d = O(Re(e.borderRadius)), f = D(e.text), p = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", h = Le(e.fontFamily, t), g = ze(e.width), _ = M(e, e.width === "full" || typeof e.width == "string" && pe(e.width) !== null ? [J] : []), v = H(e.border), y = O(e.align ?? "center");
284
284
  return `<mj-button${o}${p}
285
285
  background-color="${s}"
286
286
  color="${c}"
287
- font-size="${M(String(l))}px"
288
- line-height="${m(ie(e) * 100)}%"
287
+ font-size="${O(String(l))}px"
288
+ line-height="${m(ae(e) * 100)}%"
289
289
  font-weight="${u}"
290
290
  border-radius="${d}"${v}
291
291
  inner-padding="${i}"
@@ -293,55 +293,64 @@ function Ne(e, t) {
293
293
  padding="${n}"${r}${h}${g}${_}
294
294
  >${f}</mj-button>`;
295
295
  }
296
- function Pe(e) {
297
- return e.trim() === "" ? "transparent" : M(e);
298
- }
299
296
  function Fe(e) {
297
+ return e.trim() === "" ? "transparent" : O(e);
298
+ }
299
+ function Ie(e) {
300
300
  return e === "regular" ? "400" : e === "medium" ? "500" : e === "bold" ? "700" : "bold";
301
301
  }
302
- function Ie(e, t) {
303
- return e ? ` font-family="${P(t.resolveFontFamily(e))}"` : "";
302
+ function Le(e, t) {
303
+ return e ? ` font-family="${A(t.resolveFontFamily(e))}"` : "";
304
304
  }
305
- function Le(e) {
305
+ function Re(e) {
306
306
  return typeof e == "number" ? `${e}px` : u(e) ?? "0px";
307
307
  }
308
- function Re(e) {
309
- return e === void 0 ? "" : e === "full" || typeof e == "number" ? ` width="${M(e === "full" ? "100%" : `${e}px`)}"` : de(e) === null ? "" : ` width="${M(e)}"`;
308
+ function ze(e) {
309
+ return e === void 0 ? "" : e === "full" || typeof e == "number" ? ` width="${O(e === "full" ? "100%" : `${e}px`)}"` : pe(e) === null ? "" : ` width="${O(e)}"`;
310
310
  }
311
311
  // ../renderer/src/renderers/divider.ts
312
- function ze(e, t) {
313
- if (F(e)) return "";
314
- 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);
312
+ function Be(e, t) {
313
+ if (j(e)) return "";
314
+ let n = R(e.styles.padding), r = e.styles.backgroundColor ? ` container-background-color="${O(e.styles.backgroundColor)}"` : "", i = e.width === "full" ? "100%" : typeof e.width == "number" ? `${e.width}px` : e.width, a = e.thickness, o = O(e.lineStyle), s = O(e.color), c = M(e);
315
315
  return `<mj-divider
316
- border-width="${M(String(a))}px"
316
+ border-width="${O(String(a))}px"
317
317
  border-style="${o}"
318
318
  border-color="${s}"
319
- width="${M(i)}"
319
+ width="${O(i)}"
320
320
  padding="${n}"${r}${c}
321
321
  />`;
322
322
  }
323
323
  // ../renderer/src/renderers/spacer.ts
324
- function Be(e, t) {
325
- if (F(e)) return "";
326
- let n = e.height, r = e.styles.backgroundColor ? ` container-background-color="${M(e.styles.backgroundColor)}"` : "", i = I(e);
327
- return `<mj-spacer height="${M(String(n))}px" padding="0"${r}${i} />`;
324
+ function Ve(e, t) {
325
+ if (j(e)) return "";
326
+ let n = e.height, r = e.styles.backgroundColor ? ` container-background-color="${O(e.styles.backgroundColor)}"` : "", i = M(e);
327
+ return `<mj-spacer height="${O(String(n))}px" padding="0"${r}${i} />`;
328
328
  }
329
329
  // ../renderer/src/renderers/html.ts
330
- function Ve(e, t) {
331
- if (F(e) || !t.allowHtmlBlocks) return "";
330
+ function He(e, t) {
331
+ if (j(e) || !t.allowHtmlBlocks) return "";
332
332
  let n = e.content;
333
333
  if (n === "") return "";
334
- let r = I(e);
334
+ let r = M(e);
335
335
  return `<mj-text padding="${R(e.styles.padding)}"${z(e.styles.backgroundColor, "container")}${r}>
336
336
  ${n}
337
337
  </mj-text>`;
338
338
  }
339
339
  // ../renderer/src/renderers/social.ts
340
- function He(e, t) {
341
- if (F(e)) return "";
342
- let n = e.icons;
340
+ var Ue = "tpl-social-custom";
341
+ function We(e) {
342
+ let t = e.imageUrl;
343
+ return typeof t == "string" && t.trim() !== "";
344
+ }
345
+ function Ge(e) {
346
+ let t = e.alt;
347
+ return typeof t == "string" ? t : "";
348
+ }
349
+ function Ke(e, t) {
350
+ if (j(e)) return "";
351
+ let n = e.icons.filter((e) => e.platform !== "custom" || We(e));
343
352
  if (n.length === 0) return "";
344
- let r = R(e.styles.padding), i = e.styles.backgroundColor ? ` container-background-color="${M(e.styles.backgroundColor)}"` : "", a = I(e), s = M(e.align), c = e.iconSize, l = e.iconStyle, u = M(o(l, e.iconTone)), d = e.spacing, f;
353
+ let r = R(e.styles.padding), i = e.styles.backgroundColor ? ` container-background-color="${O(e.styles.backgroundColor)}"` : "", a = M(e), s = O(e.align), c = e.iconSize, l = e.iconStyle, u = O(o(l, e.iconTone)), d = e.spacing, f;
345
354
  switch (c) {
346
355
  case "small":
347
356
  f = 24;
@@ -372,85 +381,87 @@ function He(e, t) {
372
381
  padding="${r}"${i}${a}
373
382
  >
374
383
  ${n.map((e, n) => {
375
- let r = M(e.platform), i = M(e.url), a = `${t.socialIconsBaseUrl}/${u}/${r}.png`, o = n === m - 1 ? 0 : d;
376
- return `<mj-social-element src="${a}" href="${i}" icon-size="${f}px" padding="0 ${M(String(o))}px 0 0" border-radius="${p}" background-color="transparent"></mj-social-element>`;
384
+ let r = O(e.url), i = n === m - 1 ? 0 : d, a = `0 ${O(String(i))}px 0 0`;
385
+ if (e.platform === "custom") return `<mj-social-element src="${O(e.imageUrl)}" alt="${O(Ge(e))}" href="${r}" icon-size="${f}px" padding="${a}" border-radius="0" background-color="transparent" css-class="${Ue}"></mj-social-element>`;
386
+ let o = O(e.platform);
387
+ return `<mj-social-element src="${`${t.socialIconsBaseUrl}/${u}/${o}.png`}" href="${r}" icon-size="${f}px" padding="${a}" border-radius="${p}" background-color="transparent"></mj-social-element>`;
377
388
  }).join("\n")}
378
389
  </mj-social>`;
379
390
  }
380
391
  // ../renderer/src/renderers/menu.ts
381
- function Ue(e, t) {
382
- if (F(e) || e.items.length === 0) return "";
383
- let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = I(e), a = Ke(e.fontFamily, t), o = M(e.textAlign), s = e.fontSize, c = e.color ? `\n color="${M(e.color)}"` : "", l = We(e);
392
+ function qe(e, t) {
393
+ if (j(e) || e.items.length === 0) return "";
394
+ let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = M(e), a = Xe(e.fontFamily, t), o = O(e.textAlign), s = e.fontSize, c = e.color ? `\n color="${O(e.color)}"` : "", l = Je(e);
384
395
  return `<mj-text
385
- font-size="${M(String(s))}px"${c}
396
+ font-size="${O(String(s))}px"${c}
386
397
  align="${o}"
387
398
  line-height="1.5"
388
399
  padding="${n}"${r}${a}${i}
389
400
  >${l}</mj-text>`;
390
401
  }
391
- function We(e) {
392
- let t = e.items, n = j(e.separator), r = N(e.separatorColor), i = e.spacing, a = e.linkColor ?? e.color, o = [], s = t.length;
393
- for (let e = 0; e < s; e++) o.push(Ge(t[e], a)), e < s - 1 && o.push(`<span style="color: ${r}; padding: 0 ${N(String(i))}px;">${n}</span>`);
402
+ function Je(e) {
403
+ let t = e.items, n = D(e.separator), r = k(e.separatorColor), i = e.spacing, a = e.linkColor ?? e.color, o = [], s = t.length;
404
+ for (let e = 0; e < s; e++) o.push(Ye(t[e], a)), e < s - 1 && o.push(`<span style="color: ${r}; padding: 0 ${k(String(i))}px;">${n}</span>`);
394
405
  return o.join("");
395
406
  }
396
- function Ge(e, t) {
397
- let n = j(e.text), r = M(e.url), i = e.color ?? t, a = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", o = ["text-decoration: none"];
398
- 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>`;
407
+ function Ye(e, t) {
408
+ let n = D(e.text), r = O(e.url), i = e.color ?? t, a = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", o = ["text-decoration: none"];
409
+ return i && o.unshift(`color: ${k(i)}`), e.bold && o.push("font-weight: bold"), e.underline && o.push("text-decoration: underline"), `<a href="${r}" style="${o.join("; ")}"${a}>${n}</a>`;
399
410
  }
400
- function Ke(e, t) {
401
- return e ? ` font-family="${P(t.resolveFontFamily(e))}"` : "";
411
+ function Xe(e, t) {
412
+ return e ? ` font-family="${A(t.resolveFontFamily(e))}"` : "";
402
413
  }
403
414
  // ../renderer/src/renderers/table.ts
404
- function qe(e, t) {
405
- if (F(e) || e.rows.length === 0) return "";
406
- let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = I(e), a = Ze(e.fontFamily, t), o = e.fontSize, s = e.color ? `\n color="${M(e.color)}"` : "", c = M(e.textAlign), l = Je(e);
415
+ function Ze(e, t) {
416
+ if (j(e) || e.rows.length === 0) return "";
417
+ let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = M(e), a = tt(e.fontFamily, t), o = e.fontSize, s = e.color ? `\n color="${O(e.color)}"` : "", c = O(e.textAlign), l = Qe(e);
407
418
  return `<mj-text
408
- font-size="${M(String(o))}px"${s}
419
+ font-size="${O(String(o))}px"${s}
409
420
  align="${c}"
410
421
  line-height="1.5"
411
422
  padding="${n}"${r}${a}${i}
412
423
  >${l}</mj-text>`;
413
424
  }
414
- function Je(e) {
415
- let t = N(e.borderColor), n = e.borderWidth, r = "";
425
+ function Qe(e) {
426
+ let t = k(e.borderColor), n = e.borderWidth, r = "";
416
427
  for (let i = 0; i < e.rows.length; i++) {
417
428
  let a = e.rows[i];
418
- r += Ye(a, e, e.hasHeaderRow && i === 0, t, n);
429
+ r += $e(a, e, e.hasHeaderRow && i === 0, t, n);
419
430
  }
420
431
  return `<table style="width: 100%; border-collapse: collapse;">${r}</table>`;
421
432
  }
422
- function Ye(e, t, n, r, i) {
433
+ function $e(e, t, n, r, i) {
423
434
  let a = "";
424
- for (let o of e.cells) a += Xe(o, t, n, r, i);
435
+ for (let o of e.cells) a += et(o, t, n, r, i);
425
436
  return `<tr>${a}</tr>`;
426
437
  }
427
- function Xe(e, t, n, r, i) {
428
- let a = t.cellPadding, o = [`border: ${N(String(i))}px solid ${r}`, `padding: ${N(String(a))}px`];
429
- n && (o.push("font-weight: bold"), t.headerBackgroundColor && o.push(`background-color: ${N(t.headerBackgroundColor)}`));
430
- let s = o.join("; "), c = j(E(e.content)), l = n ? "th" : "td";
438
+ function et(e, t, n, r, i) {
439
+ let a = t.cellPadding, o = [`border: ${k(String(i))}px solid ${r}`, `padding: ${k(String(a))}px`];
440
+ n && (o.push("font-weight: bold"), t.headerBackgroundColor && o.push(`background-color: ${k(t.headerBackgroundColor)}`));
441
+ let s = o.join("; "), c = D(w(e.content)), l = n ? "th" : "td";
431
442
  return `<${l} style="${s}">${c}</${l}>`;
432
443
  }
433
- function Ze(e, t) {
434
- return e ? ` font-family="${P(t.resolveFontFamily(e))}"` : "";
444
+ function tt(e, t) {
445
+ return e ? ` font-family="${A(t.resolveFontFamily(e))}"` : "";
435
446
  }
436
447
  // ../renderer/src/renderers/custom.ts
437
- function Qe(e, t) {
438
- if (F(e)) return "";
448
+ function nt(e, t) {
449
+ if (j(e)) return "";
439
450
  let n = t.customBlockHtml.get(e.id) ?? e.renderedHtml;
440
451
  if (!n || n === "") return "";
441
- let r = I(e);
452
+ let r = M(e);
442
453
  return `<mj-text padding="${R(e.styles.padding)}"${z(e.styles.backgroundColor, "container")}${r}>
443
454
  ${n}
444
455
  </mj-text>`;
445
456
  }
446
457
  // ../renderer/src/columns.ts
447
- function $e(e) {
448
- return Object.hasOwn(T, e) ? T[e] : [100];
458
+ function rt(e) {
459
+ return Object.hasOwn(ue, e) ? ue[e] : [100];
449
460
  }
450
- function et(e) {
451
- return $e(e).map((e) => `${e}%`);
461
+ function it(e) {
462
+ return rt(e).map((e) => `${e}%`);
452
463
  }
453
- function tt(e, t) {
464
+ function at(e, t) {
454
465
  switch (e) {
455
466
  case "3": return [
456
467
  t / 3,
@@ -459,11 +470,11 @@ function tt(e, t) {
459
470
  ];
460
471
  case "1-2": return [t / 3, t * 2 / 3];
461
472
  case "2-1": return [t * 2 / 3, t / 3];
462
- default: return $e(e).map((e) => t * e / 100);
473
+ default: return rt(e).map((e) => t * e / 100);
463
474
  }
464
475
  }
465
476
  // ../renderer/src/hero-geometry.ts
466
- function nt(e, t, n) {
477
+ function ot(e, t, n) {
467
478
  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));
468
479
  return {
469
480
  mode: "fixed-height",
@@ -473,7 +484,7 @@ function nt(e, t, n) {
473
484
  };
474
485
  }
475
486
  // ../renderer/src/display-condition.ts
476
- function X(e, t) {
487
+ function Y(e, t) {
477
488
  if (t === "") return "";
478
489
  let n = e.displayCondition;
479
490
  return n ? `<mj-raw>${n.before}</mj-raw>
@@ -481,13 +492,13 @@ function X(e, t) {
481
492
  <mj-raw>${n.after}</mj-raw>` : t;
482
493
  }
483
494
  // ../renderer/src/renderers/section.ts
484
- function rt(e, t, n) {
485
- if (F(e)) return "";
495
+ function st(e, t, n) {
496
+ if (j(e)) return "";
486
497
  let r = _(e);
487
- if (r?.applied) return it(e, r, t, n);
488
- let i = e.columns, a = v(e), o = a.map((e) => `${e}%`), c = e.columnWidths !== void 0 && s(e) === null ? a.map((e) => t.containerWidth * e / 100) : tt(i, t.containerWidth), l = Math.floor(t.contentWidth) - B(e.styles.padding, e.border), u = o.map((e) => Math.floor(l * parseFloat(e) / 100)), d = R(e.styles.padding), f = z(e.styles.backgroundColor, "native"), p = W(e.backgroundImage), m = I(e), h = U(e.borderRadius), y = H(e.border), b = t.contentDirection === "rtl" ? " direction=\"rtl\"" : "", x = e.children, S = [];
498
+ if (r?.applied) return ct(e, r, t, n);
499
+ let i = e.columns, a = v(e), o = a.map((e) => `${e}%`), c = e.columnWidths !== void 0 && s(e) === null ? a.map((e) => t.containerWidth * e / 100) : at(i, t.containerWidth), l = Math.floor(t.contentWidth) - B(e.styles.padding, e.border), u = o.map((e) => Math.floor(l * parseFloat(e) / 100)), d = R(e.styles.padding), f = z(e.styles.backgroundColor, "native"), p = be(e.backgroundImage), m = M(e), h = U(e.borderRadius), y = H(e.border), b = t.contentDirection === "rtl" ? " direction=\"rtl\"" : "", x = e.children, S = [];
489
500
  for (let e = 0; e < x.length; e++) {
490
- let r = x[e], i = o[e] ?? "100%", a = Math.floor(c[e] ?? t.containerWidth), s = at(r, t.allowHtmlBlocks).filter((e) => !g(e)), d = t.withContainerWidth(a, u[e] ?? l), f = s.map((e) => X(e, n(e, d))).filter((e) => e !== "").join("\n");
501
+ let r = x[e], i = o[e] ?? "100%", a = Math.floor(c[e] ?? t.containerWidth), s = lt(r, t.allowHtmlBlocks).filter((e) => !g(e)), d = t.withContainerWidth(a, u[e] ?? l), f = s.map((e) => Y(e, n(e, d))).filter((e) => e !== "").join("\n");
491
502
  S.push(`<mj-column width="${i}"${b}>
492
503
  ${f === "" ? "<mj-text>&nbsp;</mj-text>" : f}
493
504
  </mj-column>`);
@@ -499,17 +510,17 @@ ${C}
499
510
  </mj-group>` : C}
500
511
  </mj-section>`;
501
512
  }
502
- function it(e, t, n, r) {
503
- let i = Math.floor(n.contentWidth), a = nt(t, i, e.styles.padding), o = z(e.styles.backgroundColor, "native") || " background-color=\"transparent\"", s = R(e.styles.padding), c = U(e.borderRadius), l = I(e), u = n.withContainerWidth(i, i - B(e.styles.padding)), d = at(e.children[0] ?? [], n.allowHtmlBlocks).filter((e) => !g(e)).map((e) => X(e, r(e, u))).filter((e) => e !== "").join("\n");
504
- 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}>
513
+ function ct(e, t, n, r) {
514
+ let i = Math.floor(n.contentWidth), a = ot(t, i, e.styles.padding), o = z(e.styles.backgroundColor, "native") || " background-color=\"transparent\"", s = R(e.styles.padding), c = U(e.borderRadius), l = M(e), u = n.withContainerWidth(i, i - B(e.styles.padding)), d = lt(e.children[0] ?? [], n.allowHtmlBlocks).filter((e) => !g(e)).map((e) => Y(e, r(e, u))).filter((e) => e !== "").join("\n");
515
+ return `<mj-hero mode="${a.mode}" height="${a.height}px" background-url="${O(t.image.url)}" background-width="${a.backgroundWidth}px" background-height="${a.backgroundHeight}px" background-position="${O(t.image.position)}"${o} padding="${s}" vertical-align="${O(t.verticalAlign)}"${c}${l}>
505
516
  ${d}
506
517
  </mj-hero>`;
507
518
  }
508
- function at(e, t) {
519
+ function lt(e, t) {
509
520
  return t ? e : e.filter((e) => e.type !== "html");
510
521
  }
511
522
  // ../renderer/src/renderers/video.ts
512
- function ot(e, t) {
523
+ function ut(e, t) {
513
524
  if (t) return t;
514
525
  if (!e) return null;
515
526
  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})/]) {
@@ -519,44 +530,44 @@ function ot(e, t) {
519
530
  let n = e.match(/vimeo\.com\/(?:video\/)?(\d+)/);
520
531
  return n ? `https://vumbnail.com/${n[1]}.jpg` : null;
521
532
  }
522
- function st(e, t) {
523
- if (F(e)) return "";
524
- let n = ot(e.url, e.thumbnailUrl);
533
+ function dt(e, t) {
534
+ if (j(e)) return "";
535
+ let n = ut(e.url, e.thumbnailUrl);
525
536
  if (!n) return "";
526
- let r = R(e.styles.padding), i = z(e.styles.backgroundColor, "container"), a = M(e.width === "full" ? t.containerWidth + "px" : e.width + "px"), o = ye(e.height), s = V(e, t), c = I(e);
537
+ let r = R(e.styles.padding), i = z(e.styles.backgroundColor, "container"), a = O(e.width === "full" ? t.containerWidth + "px" : e.width + "px"), o = ye(e.height), s = V(e, t), c = M(e);
527
538
  return `<mj-image
528
- src="${M(n)}"
529
- alt="${M(e.alt)}"
539
+ src="${O(n)}"
540
+ alt="${O(e.alt)}"
530
541
  width="${a}"${o}${s}
531
- align="${M(e.align)}"
542
+ align="${O(e.align)}"
532
543
  padding="${r}"
533
- href="${M(e.url)}"
544
+ href="${O(e.url)}"
534
545
  target="_blank"
535
546
  rel="noopener"${i}${c}
536
547
  />`;
537
548
  }
538
549
  // ../renderer/src/renderers/index.ts
539
- function Z(e, r) {
550
+ function X(e, r) {
540
551
  let a = r.blockRenderers[e.type];
541
- return a ? a(e, r) : g(e) ? rt(e, r, Z) : t(e) ? Oe(e, r) : ue(e) ? je(e, r) : h(e) ? Me(e, r) : y(e) ? Ne(e, r) : x(e) ? ze(e, r) : p(e) ? Be(e, r) : fe(e) ? Ve(e, r) : i(e) ? He(e, r) : n(e) ? Ue(e, r) : ae(e) ? qe(e, r) : re(e) ? st(e, r) : D(e) ? Qe(e, r) : F(e) ? "" : ve(e);
552
+ return a ? a(e, r) : g(e) ? st(e, r, X) : t(e) ? ke(e, r) : fe(e) ? Me(e, r) : h(e) ? Ne(e, r) : y(e) ? Pe(e, r) : x(e) ? Be(e, r) : p(e) ? Ve(e, r) : me(e) ? He(e, r) : i(e) ? Ke(e, r) : n(e) ? qe(e, r) : oe(e) ? Ze(e, r) : ie(e) ? dt(e, r) : he(e) ? nt(e, r) : j(e) ? "" : L(e);
542
553
  }
543
554
  // ../renderer/src/index.ts
544
- var ct = `.${Y} a { display: block !important; }`;
545
- async function lt(e, t) {
555
+ var ft = `.${J} a { display: block !important; }`;
556
+ async function pt(e, t) {
546
557
  if (t?.customBlocks !== void 0 && t.renderCustomBlock !== void 0) throw TypeError("[Templatical] customBlocks cannot be combined with renderCustomBlock");
547
558
  if (t?.customBlocks !== void 0 && t.getCustomBlockStylesheet !== void 0) throw TypeError("[Templatical] customBlocks cannot be combined with getCustomBlockStylesheet");
548
- let n = t?.locale ?? te(e), r = w(e, n), i = t?.layout ? ce(w(t.layout, n, { missing: "default" }), r) : (oe(r), C(r), r), a = t?.customFonts ?? [], o = t?.defaultFallbackFont ?? "Arial, sans-serif", s = t?.allowHtmlBlocks ?? !0, c = pt(t?.socialIconsBaseUrl ?? O), l = t?.customBlocks === void 0 ? await _t(i, t?.renderCustomBlock) : await vt(i, t.customBlocks, t.liquidjs), u = yt(i, t?.getCustomBlockStylesheet, t?.customBlocks === void 0 ? void 0 : new Map(t.customBlocks.map((e) => [e.type, e]))), d = S(i.settings), f = new k(i.settings.width, a, o, s, l, c, t?.blockRenderers ?? {}, d), p = gt(i.blocks, s), m = f.resolveFontFamily(i.settings.fontFamily), h = /[<>]/.test(i.settings.backgroundColor) ? "transparent" : i.settings.backgroundColor, g = i.settings.textColor ? ` color="${M(i.settings.textColor)}"` : "", _ = i.settings.linkColor ? N(i.settings.linkColor) : "inherit", v = i.settings.linkUnderline ? "underline" : "none", y = p.map((e) => Q(e, f)).filter((e) => e !== "").join("\n"), b = ht(a), x = mt(i.settings.preheaderText);
549
- return `<mjml lang="${M(i.settings.locale)}" dir="${M(d)}">
559
+ let n = t?.locale ?? ne(e), r = ee(e, n), i = t?.layout ? le(ee(t.layout, n, { missing: "default" }), r) : (se(r), C(r), r), a = t?.customFonts ?? [], o = t?.defaultFallbackFont ?? "Arial, sans-serif", s = t?.allowHtmlBlocks ?? !0, c = _t(t?.socialIconsBaseUrl ?? T), l = t?.customBlocks === void 0 ? await bt(i, t?.renderCustomBlock) : await xt(i, t.customBlocks, t.liquidjs), u = St(i, t?.getCustomBlockStylesheet, t?.customBlocks === void 0 ? void 0 : new Map(t.customBlocks.map((e) => [e.type, e]))), d = S(i.settings), f = new ge(i.settings.width, a, o, s, l, c, t?.blockRenderers ?? {}, d), p = Q(i.blocks, s), m = f.resolveFontFamily(i.settings.fontFamily), h = /[<>]/.test(i.settings.backgroundColor) ? "transparent" : i.settings.backgroundColor, g = i.settings.textColor ? ` color="${O(i.settings.textColor)}"` : "", _ = i.settings.linkColor ? k(i.settings.linkColor) : "inherit", v = i.settings.linkUnderline ? "underline" : "none", y = p.map((e) => mt(e, f)).filter((e) => e !== "").join("\n"), b = yt(a), x = vt(i.settings.preheaderText);
560
+ return `<mjml lang="${O(i.settings.locale)}" dir="${O(d)}">
550
561
  <mj-head>${x}
551
562
  <mj-attributes>
552
- <mj-all font-family="${P(m)}" />
563
+ <mj-all font-family="${A(m)}" />
553
564
  <mj-text font-size="14px"${g} />
554
565
  <mj-section padding="0" />
555
566
  <mj-column padding="0" />
556
567
  </mj-attributes>${b}
557
568
  <mj-style inline="inline">
558
- ${be(xe(p), d)}
559
- ${ct}
569
+ ${xe(Se(p), d)}
570
+ ${ft}
560
571
  </mj-style>
561
572
  <mj-style>
562
573
  a { color: ${_}; text-decoration: ${v}; }
@@ -566,17 +577,17 @@ async function lt(e, t) {
566
577
  @media only screen and (min-width: 481px) {
567
578
  .tpl-hide-desktop { display: none !important; mso-hide: all !important; }
568
579
  }
569
- </mj-style>${bt(u)}
580
+ </mj-style>${Ct(u)}
570
581
  </mj-head>
571
- <mj-body width="${M(String(f.containerWidth))}px" background-color="${N(h)}">
582
+ <mj-body width="${O(String(f.containerWidth))}px" background-color="${k(h)}">
572
583
  ${y}
573
584
  </mj-body>
574
585
  </mjml>`;
575
586
  }
576
- function Q(e, t) {
587
+ function mt(e, t) {
577
588
  if (d(e)) {
578
- let n = ut(t, e.styles.padding);
579
- return X(e, dt(gt(e.children, t.allowHtmlBlocks).map((e) => Q(e, n)).filter((e) => e !== "").join("\n"), {
589
+ let n = Z(t, e.styles.padding);
590
+ return Y(e, ht(Q(e.children, t.allowHtmlBlocks).map((e) => mt(e, n)).filter((e) => e !== "").join("\n"), {
580
591
  backgroundColor: e.styles.backgroundColor,
581
592
  padding: e.styles.padding,
582
593
  borderRadius: e.borderRadius,
@@ -585,20 +596,20 @@ function Q(e, t) {
585
596
  }, t.contentDirection));
586
597
  }
587
598
  if (g(e)) {
588
- let n = Z(e, e.wrapper ? ut(t, e.wrapper.padding) : t);
589
- return X(e, e.wrapper && n !== "" ? dt(n, e.wrapper, t.contentDirection) : n);
599
+ let n = X(e, e.wrapper ? Z(t, e.wrapper.padding) : t);
600
+ return Y(e, e.wrapper && n !== "" ? ht(n, e.wrapper, t.contentDirection) : n);
590
601
  }
591
- return X(e, ft(Z(e, t), t.contentDirection));
602
+ return Y(e, gt(X(e, t), t.contentDirection));
592
603
  }
593
- function ut(e, t) {
604
+ function Z(e, t) {
594
605
  return e.withContainerWidth(e.containerWidth, Math.floor(e.contentWidth) - B(t));
595
606
  }
596
- function dt(e, t, n) {
597
- return `<mj-wrapper${z(t.backgroundColor, "native")}${W(t.backgroundImage)}${` padding="${t.padding ? R(t.padding) : "0"}"`}${t.fullWidth ? "" : U(t.borderRadius)}${t.fullWidth ? " full-width=\"full-width\"" : ""}${n === "rtl" ? " direction=\"rtl\"" : ""}>
607
+ function ht(e, t, n) {
608
+ return `<mj-wrapper${z(t.backgroundColor, "native")}${be(t.backgroundImage)}${` padding="${t.padding ? R(t.padding) : "0"}"`}${t.fullWidth ? "" : U(t.borderRadius)}${t.fullWidth ? " full-width=\"full-width\"" : ""}${n === "rtl" ? " direction=\"rtl\"" : ""}>
598
609
  ${e}
599
610
  </mj-wrapper>`;
600
611
  }
601
- function ft(e, t) {
612
+ function gt(e, t) {
602
613
  if (e === "") return "";
603
614
  let n = t === "rtl" ? " direction=\"rtl\"" : "";
604
615
  return `<mj-section${n}>
@@ -607,21 +618,21 @@ ${e}
607
618
  </mj-column>
608
619
  </mj-section>`;
609
620
  }
610
- function pt(e) {
621
+ function _t(e) {
611
622
  return e.endsWith("/") ? e.slice(0, -1) : e;
612
623
  }
613
- function mt(e) {
624
+ function vt(e) {
614
625
  if (!e) return "";
615
626
  let t = e.trim();
616
- return t === "" ? "" : `\n <mj-preview>${j(t)}</mj-preview>`;
627
+ return t === "" ? "" : `\n <mj-preview>${D(t)}</mj-preview>`;
617
628
  }
618
- function ht(e) {
619
- return e.length === 0 ? "" : e.map((e) => `\n <mj-font name="${M(e.name)}" href="${M(e.url)}" />`).join("");
629
+ function yt(e) {
630
+ return e.length === 0 ? "" : e.map((e) => `\n <mj-font name="${O(e.name)}" href="${O(e.url)}" />`).join("");
620
631
  }
621
- function gt(e, t) {
632
+ function Q(e, t) {
622
633
  return t ? e : e.filter((e) => e.type !== "html");
623
634
  }
624
- async function _t(e, t) {
635
+ async function bt(e, t) {
625
636
  let n = /* @__PURE__ */ new Map();
626
637
  if (!t) return n;
627
638
  let r = [];
@@ -630,7 +641,7 @@ async function _t(e, t) {
630
641
  for (let e = 0; e < r.length; e++) n.set(r[e].id, i[e]);
631
642
  return n;
632
643
  }
633
- async function vt(e, t, n) {
644
+ async function xt(e, t, n) {
634
645
  let r = /* @__PURE__ */ new Map(), i = [];
635
646
  if ($(e.blocks, i), i.length === 0) return r;
636
647
  if (typeof n?.Liquid != "function") throw TypeError("[Templatical] customBlocks requires the liquidjs option: import * as liquidjs from \"liquidjs\" and pass { customBlocks, liquidjs }.");
@@ -645,11 +656,11 @@ async function vt(e, t, n) {
645
656
  return r;
646
657
  }
647
658
  function $(e, t) {
648
- for (let n of e) if (D(n)) t.push(n);
659
+ for (let n of e) if (he(n)) t.push(n);
649
660
  else if (g(n)) for (let e of n.children) $(e, t);
650
661
  else d(n) && $(n.children, t);
651
662
  }
652
- function yt(e, t, n) {
663
+ function St(e, t, n) {
653
664
  let r = [];
654
665
  if ($(e.blocks, r), r.length === 0) return [];
655
666
  let i = /* @__PURE__ */ new Map();
@@ -665,9 +676,9 @@ function yt(e, t, n) {
665
676
  }
666
677
  return s;
667
678
  }
668
- function bt(e) {
679
+ function Ct(e) {
669
680
  return e.length === 0 ? "" : e.map((e) => `\n <mj-style>\n${e.replaceAll("<", "\\3c ")}\n </mj-style>`).join("");
670
681
  }
671
- export { Y as BUTTON_FULL_WIDTH_CSS_CLASS, O as DEFAULT_SOCIAL_ICONS_BASE_URL, G as RICH_TEXT_CSS_CLASS, k as RenderContext, he as UNRENDERABLE_MARKER_PREFIX, E as convertMergeTagsToValues, M as escapeAttr, j as escapeHtml, V as fluidOnMobileAttr, I as getCssClassAttr, L as getCssClasses, et as getWidthPercentages, tt as getWidthPixels, F as isHiddenOnAll, Z as renderBlock, lt as renderToMjml, ve as renderUnrenderableBlock, q as resolveParagraphGap, K as richTextGapClass, R as toPaddingString };
682
+ export { J as BUTTON_FULL_WIDTH_CSS_CLASS, T as DEFAULT_SOCIAL_ICONS_BASE_URL, W as RICH_TEXT_CSS_CLASS, ge as RenderContext, P as UNRENDERABLE_MARKER_PREFIX, w as convertMergeTagsToValues, O as escapeAttr, D as escapeHtml, V as fluidOnMobileAttr, M as getCssClassAttr, N as getCssClasses, it as getWidthPercentages, at as getWidthPixels, j as isHiddenOnAll, X as renderBlock, pt as renderToMjml, L as renderUnrenderableBlock, K as resolveParagraphGap, G as richTextGapClass, R as toPaddingString };
672
683
 
673
- //# sourceMappingURL=src-C5V_yzAU.js.map
684
+ //# sourceMappingURL=src-C9opbQj_.js.map