@templatical/editor 0.55.0 → 0.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (277) hide show
  1. package/dist/{AiAltTextPopover-D5QosKvB.js → AiAltTextPopover-DdsvhE78.js} +4 -4
  2. package/dist/{AiAltTextReview-D1W_lrI_.js → AiAltTextReview-P6to1_0t.js} +3 -3
  3. package/dist/{AiChatPanel-C8SeEJRP.js → AiChatPanel-BSlmzMRC.js} +10 -10
  4. package/dist/{AiPanels-CR6zphjP.js → AiPanels-DAsnX-a3.js} +1 -1
  5. package/dist/{AiRewriteMenu-BwztoMov.js → AiRewriteMenu-DIISOR6U.js} +11 -11
  6. package/dist/{BlockIssueBadge-DaPTq1RE.js → BlockIssueBadge-Bmtc50BQ.js} +4 -4
  7. package/dist/BlockPreviewCanvas-BYIzNn-9.js +154 -0
  8. package/dist/{CloudHeaderExtras-XpjJjn3o.js → CloudHeaderExtras-Cqhw-jMz.js} +1 -1
  9. package/dist/{CloudPanels-Baoaj6Xf.js → CloudPanels-w34W8_BP.js} +4 -4
  10. package/dist/{CollaborationNotices-Cnx0XHzZ.js → CollaborationNotices-HTbCebjV.js} +2 -2
  11. package/dist/{CollaboratorBar-BaBoNhwB.js → CollaboratorBar-CLQjksX-.js} +2 -2
  12. package/dist/{CommentsPanel-Ck3QmqiC.js → CommentsPanel-C5qG17Ki.js} +1 -1
  13. package/dist/{CommentsSidebar-CHknhOar.js → CommentsSidebar-C7CWcUYZ.js} +12 -12
  14. package/dist/{CountdownBlock-BMezkFbJ.js → CountdownBlock-BTXcCvjZ.js} +2 -2
  15. package/dist/{CountdownToolbar-CA_gDIdZ.js → CountdownToolbar-CP-pkntQ.js} +5 -5
  16. package/dist/{IssuesPanel-nmFhWG1p.js → IssuesPanel-CiiNBzH0.js} +12 -12
  17. package/dist/{LanguageMenu-DcABUYop.js → LanguageMenu-B981Av-6.js} +15 -15
  18. package/dist/{LocaleNotices-WzsYtBRs.js → LocaleNotices-CTCZ7BYv.js} +4 -4
  19. package/dist/{LogicTagInsertButton-qZ82VMFx.js → LogicTagInsertButton-DEOPc4RC.js} +23 -23
  20. package/dist/{MediaEditModal-C3U9Mi31.js → MediaEditModal-DJsPLTwP.js} +1 -1
  21. package/dist/{MediaPanels-CGmk9ufe.js → MediaPanels-D2WD2aE2.js} +1 -1
  22. package/dist/{MergeTagInput-JJeZbFkD.js → MergeTagInput-C9icdxw7.js} +1 -1
  23. package/dist/{MergeTagModeToggle-DDucd1eC.js → MergeTagModeToggle-DXvb80OE.js} +6 -6
  24. package/dist/{MergeTagTextarea-dQ2LRrNB.js → MergeTagTextarea-CrAcmT3A.js} +5 -5
  25. package/dist/{ParagraphEditor-VXYwGoz_.js → ParagraphEditor-BWBQ3jKz.js} +55 -55
  26. package/dist/{RestoreVersionDialog-BibNvAaJ.js → RestoreVersionDialog-CqAp16yQ.js} +4 -4
  27. package/dist/{RichTextEditorContent-CU5EOlM_.js → RichTextEditorContent-xbBjVPVQ.js} +8 -8
  28. package/dist/{SaveBlockDialog-S9aFi0cy.js → SaveBlockDialog-pebNJBTc.js} +9 -9
  29. package/dist/{SavedBlocksBrowserModal-DIdn6B0J.js → SavedBlocksBrowserModal-CvagMcv7.js} +11 -11
  30. package/dist/{SavedBlocksPanels-Cme2M6u8.js → SavedBlocksPanels-B9AAVBDm.js} +1 -1
  31. package/dist/{SavedBlocksPickBar-BDmA7r3m.js → SavedBlocksPickBar-BIANWe3i.js} +3 -3
  32. package/dist/{TemplateSettings-C_LHLm5M.js → TemplateSettings-ORq4PbCN.js} +12 -12
  33. package/dist/{TestEmailModal-CLIRn7eL.js → TestEmailModal-DRjCpcPl.js} +11 -11
  34. package/dist/{TestEmailPanel-frdtjC8h.js → TestEmailPanel-H0v8El__.js} +1 -1
  35. package/dist/{TitleEditor-D5kC56Jl.js → TitleEditor-CEGbJXeU.js} +11 -11
  36. package/dist/{Toolbar-D904Yw_R.js → Toolbar-XT-uGA9J.js} +937 -703
  37. package/dist/{TplModal-BBdotDf1.js → TplModal-7NQq5-VW.js} +4 -4
  38. package/dist/{VersionHistoryMenu-BnP0EyLl.js → VersionHistoryMenu-C8BE3Pr-.js} +7 -7
  39. package/dist/{VersionHistoryPanels-DhagEgOk.js → VersionHistoryPanels-CuKuOSJG.js} +1 -1
  40. package/dist/{VersionPreviewBanner-BPP939cD.js → VersionPreviewBanner-BVFBkveR.js} +2 -2
  41. package/dist/WrapperBlock-Bdw-072t.js +56 -0
  42. package/dist/{blockTypeIcons-CoRQV_hP.js → blockTypeIcons-CGplGmmr.js} +3 -3
  43. package/dist/bundle-stats.json +6 -6
  44. package/dist/{ca-DIkMxYCN.js → ca-BJn8lcJx.js} +8 -0
  45. package/dist/cdn/chunks/{AiAltTextPopover-CUGOPuRo.js → AiAltTextPopover-x999Gimz.js} +5 -5
  46. package/dist/cdn/chunks/{AiAltTextPopover-CUGOPuRo.js.map → AiAltTextPopover-x999Gimz.js.map} +1 -1
  47. package/dist/cdn/chunks/{AiAltTextReview-B9vm_L-8.js → AiAltTextReview-DjnFz1wO.js} +4 -4
  48. package/dist/cdn/chunks/{AiAltTextReview-B9vm_L-8.js.map → AiAltTextReview-DjnFz1wO.js.map} +1 -1
  49. package/dist/cdn/chunks/{AiChatPanel-By8Uo1nH.js → AiChatPanel-DKDu9cs7.js} +4 -4
  50. package/dist/cdn/chunks/{AiChatPanel-By8Uo1nH.js.map → AiChatPanel-DKDu9cs7.js.map} +1 -1
  51. package/dist/cdn/chunks/{AiPanels-BblCSkQy.js → AiPanels-jMLVaiKx.js} +2 -2
  52. package/dist/cdn/chunks/{AiPanels-BblCSkQy.js.map → AiPanels-jMLVaiKx.js.map} +1 -1
  53. package/dist/cdn/chunks/{AiRewriteMenu-BvV_7tNZ.js → AiRewriteMenu-s79rmHFy.js} +9 -9
  54. package/dist/cdn/chunks/{AiRewriteMenu-BvV_7tNZ.js.map → AiRewriteMenu-s79rmHFy.js.map} +1 -1
  55. package/dist/cdn/chunks/{BlockIssueBadge-D3Plo_wt.js → BlockIssueBadge-Bnmq_M4G.js} +4 -4
  56. package/dist/cdn/chunks/{BlockIssueBadge-D3Plo_wt.js.map → BlockIssueBadge-Bnmq_M4G.js.map} +1 -1
  57. package/dist/cdn/chunks/{BlockPreviewCanvas-Dr-xGq6v.js → BlockPreviewCanvas-B3HkuENF.js} +46 -32
  58. package/dist/cdn/chunks/BlockPreviewCanvas-B3HkuENF.js.map +1 -0
  59. package/dist/cdn/chunks/{CloudHeaderExtras-BtqdN777.js → CloudHeaderExtras-uUJYJFJ6.js} +2 -2
  60. package/dist/cdn/chunks/{CloudHeaderExtras-BtqdN777.js.map → CloudHeaderExtras-uUJYJFJ6.js.map} +1 -1
  61. package/dist/cdn/chunks/{CloudPanels-CQ0vNgsH.js → CloudPanels-DQnlH_YJ.js} +4 -4
  62. package/dist/cdn/chunks/{CloudPanels-CQ0vNgsH.js.map → CloudPanels-DQnlH_YJ.js.map} +1 -1
  63. package/dist/cdn/chunks/{CollaborationNotices-DraFUhyo.js → CollaborationNotices-CHqUGhOZ.js} +3 -3
  64. package/dist/cdn/chunks/{CollaborationNotices-DraFUhyo.js.map → CollaborationNotices-CHqUGhOZ.js.map} +1 -1
  65. package/dist/cdn/chunks/{CollaboratorBar-0OEH3hrj.js → CollaboratorBar-C1ZI2xwa.js} +3 -3
  66. package/dist/cdn/chunks/{CollaboratorBar-0OEH3hrj.js.map → CollaboratorBar-C1ZI2xwa.js.map} +1 -1
  67. package/dist/cdn/chunks/{CommentsPanel-tZZswofV.js → CommentsPanel-EtdTzTmq.js} +2 -2
  68. package/dist/cdn/chunks/{CommentsPanel-tZZswofV.js.map → CommentsPanel-EtdTzTmq.js.map} +1 -1
  69. package/dist/cdn/chunks/{CommentsSidebar-7Hfl3Hdj.js → CommentsSidebar-Qmj049QX.js} +4 -4
  70. package/dist/cdn/chunks/{CommentsSidebar-7Hfl3Hdj.js.map → CommentsSidebar-Qmj049QX.js.map} +1 -1
  71. package/dist/cdn/chunks/{CountdownBlock-CjMhMhnv.js → CountdownBlock-DyGsh92b.js} +3 -3
  72. package/dist/cdn/chunks/{CountdownBlock-CjMhMhnv.js.map → CountdownBlock-DyGsh92b.js.map} +1 -1
  73. package/dist/cdn/chunks/{CountdownToolbar-BxW-J7DX.js → CountdownToolbar-Ddj2erNm.js} +6 -6
  74. package/dist/cdn/chunks/{CountdownToolbar-BxW-J7DX.js.map → CountdownToolbar-Ddj2erNm.js.map} +1 -1
  75. package/dist/cdn/chunks/{IssuesPanel-BoHeIjvw.js → IssuesPanel-DnSnEh1X.js} +8 -8
  76. package/dist/cdn/chunks/{IssuesPanel-BoHeIjvw.js.map → IssuesPanel-DnSnEh1X.js.map} +1 -1
  77. package/dist/cdn/chunks/{LanguageMenu-BnYN5N1h.js → LanguageMenu-C2I_yTL5.js} +110 -110
  78. package/dist/cdn/chunks/{LanguageMenu-BnYN5N1h.js.map → LanguageMenu-C2I_yTL5.js.map} +1 -1
  79. package/dist/cdn/chunks/{LocaleNotices-8J2DRWeg.js → LocaleNotices-Dr9LRCAg.js} +4 -4
  80. package/dist/cdn/chunks/{LocaleNotices-8J2DRWeg.js.map → LocaleNotices-Dr9LRCAg.js.map} +1 -1
  81. package/dist/cdn/chunks/{LogicTagInsertButton-Bt2PXbQ0.js → LogicTagInsertButton-BdzE9-l7.js} +29 -29
  82. package/dist/cdn/chunks/LogicTagInsertButton-BdzE9-l7.js.map +1 -0
  83. package/dist/cdn/chunks/{MediaEditModal-Dz972UFx.js → MediaEditModal-CMJFXu_o.js} +2 -2
  84. package/dist/cdn/chunks/{MediaEditModal-Dz972UFx.js.map → MediaEditModal-CMJFXu_o.js.map} +1 -1
  85. package/dist/cdn/chunks/{MediaPanels-C6Hqtp1H.js → MediaPanels-C790ZXuY.js} +2 -2
  86. package/dist/cdn/chunks/{MediaPanels-C6Hqtp1H.js.map → MediaPanels-C790ZXuY.js.map} +1 -1
  87. package/dist/cdn/chunks/{MergeTagInput-BELdMRni.js → MergeTagInput-CmrX8Md6.js} +2 -2
  88. package/dist/cdn/chunks/{MergeTagInput-BELdMRni.js.map → MergeTagInput-CmrX8Md6.js.map} +1 -1
  89. package/dist/cdn/chunks/{MergeTagModeToggle-DKfMDIEF.js → MergeTagModeToggle-D7maMGIM.js} +5 -5
  90. package/dist/cdn/chunks/{MergeTagModeToggle-DKfMDIEF.js.map → MergeTagModeToggle-D7maMGIM.js.map} +1 -1
  91. package/dist/cdn/chunks/{MergeTagTextarea-w6xen3Xh.js → MergeTagTextarea-KOnd2teB.js} +6 -6
  92. package/dist/cdn/chunks/{MergeTagTextarea-w6xen3Xh.js.map → MergeTagTextarea-KOnd2teB.js.map} +1 -1
  93. package/dist/cdn/chunks/{ParagraphEditor-Cal9hY3U.js → ParagraphEditor-I9lbKaPk.js} +19 -19
  94. package/dist/cdn/chunks/{ParagraphEditor-Cal9hY3U.js.map → ParagraphEditor-I9lbKaPk.js.map} +1 -1
  95. package/dist/cdn/chunks/{RestoreVersionDialog-f_ulmASY.js → RestoreVersionDialog-DqbULAbc.js} +4 -4
  96. package/dist/cdn/chunks/{RestoreVersionDialog-f_ulmASY.js.map → RestoreVersionDialog-DqbULAbc.js.map} +1 -1
  97. package/dist/cdn/chunks/{RichTextEditorContent-C_v0kS4A.js → RichTextEditorContent-_O22z0pn.js} +8 -8
  98. package/dist/cdn/chunks/{RichTextEditorContent-C_v0kS4A.js.map → RichTextEditorContent-_O22z0pn.js.map} +1 -1
  99. package/dist/cdn/chunks/{SaveBlockDialog-C6N9RFls.js → SaveBlockDialog-CClRLXgF.js} +8 -8
  100. package/dist/cdn/chunks/{SaveBlockDialog-C6N9RFls.js.map → SaveBlockDialog-CClRLXgF.js.map} +1 -1
  101. package/dist/cdn/chunks/{SavedBlocksBrowserModal-Bl2sl09D.js → SavedBlocksBrowserModal-BIaxaxw9.js} +8 -8
  102. package/dist/cdn/chunks/{SavedBlocksBrowserModal-Bl2sl09D.js.map → SavedBlocksBrowserModal-BIaxaxw9.js.map} +1 -1
  103. package/dist/cdn/chunks/{SavedBlocksPanels-DqVcmEUK.js → SavedBlocksPanels-Dfu9N6YW.js} +2 -2
  104. package/dist/cdn/chunks/{SavedBlocksPanels-DqVcmEUK.js.map → SavedBlocksPanels-Dfu9N6YW.js.map} +1 -1
  105. package/dist/cdn/chunks/{SavedBlocksPickBar-DE-J1JVL.js → SavedBlocksPickBar-DiMW_dbJ.js} +4 -4
  106. package/dist/cdn/chunks/{SavedBlocksPickBar-DE-J1JVL.js.map → SavedBlocksPickBar-DiMW_dbJ.js.map} +1 -1
  107. package/dist/cdn/chunks/{TemplateSettings-CpoKZ8oV.js → TemplateSettings-JMUo0LIV.js} +10 -10
  108. package/dist/cdn/chunks/{TemplateSettings-CpoKZ8oV.js.map → TemplateSettings-JMUo0LIV.js.map} +1 -1
  109. package/dist/cdn/chunks/{TestEmailModal-DI3z__Bd.js → TestEmailModal-D52VtwBZ.js} +11 -11
  110. package/dist/cdn/chunks/{TestEmailModal-DI3z__Bd.js.map → TestEmailModal-D52VtwBZ.js.map} +1 -1
  111. package/dist/cdn/chunks/{TestEmailPanel-Cp5d2YGn.js → TestEmailPanel-D9ezVDHd.js} +2 -2
  112. package/dist/cdn/chunks/{TestEmailPanel-Cp5d2YGn.js.map → TestEmailPanel-D9ezVDHd.js.map} +1 -1
  113. package/dist/cdn/chunks/{TitleEditor-C2syRLdZ.js → TitleEditor-D04vvbUc.js} +9 -9
  114. package/dist/cdn/chunks/{TitleEditor-C2syRLdZ.js.map → TitleEditor-D04vvbUc.js.map} +1 -1
  115. package/dist/cdn/chunks/{Toolbar-NEE8qxYh.js → Toolbar-C_Hfsher.js} +1173 -939
  116. package/dist/cdn/chunks/Toolbar-C_Hfsher.js.map +1 -0
  117. package/dist/cdn/chunks/{TplModal-B1MgvtX8.js → TplModal-d6fEZGJ5.js} +5 -5
  118. package/dist/cdn/chunks/{TplModal-B1MgvtX8.js.map → TplModal-d6fEZGJ5.js.map} +1 -1
  119. package/dist/cdn/chunks/{VersionHistoryMenu-CZury5gU.js → VersionHistoryMenu-C8ucm43v.js} +7 -7
  120. package/dist/cdn/chunks/{VersionHistoryMenu-CZury5gU.js.map → VersionHistoryMenu-C8ucm43v.js.map} +1 -1
  121. package/dist/cdn/chunks/{VersionHistoryPanels-Cefd8i_e.js → VersionHistoryPanels-BAdzmhvH.js} +2 -2
  122. package/dist/cdn/chunks/{VersionHistoryPanels-Cefd8i_e.js.map → VersionHistoryPanels-BAdzmhvH.js.map} +1 -1
  123. package/dist/cdn/chunks/{VersionPreviewBanner-C4Ji8nu4.js → VersionPreviewBanner-BWuovbFc.js} +3 -3
  124. package/dist/cdn/chunks/{VersionPreviewBanner-C4Ji8nu4.js.map → VersionPreviewBanner-BWuovbFc.js.map} +1 -1
  125. package/dist/cdn/chunks/WrapperBlock-TXDSDXUP.js +58 -0
  126. package/dist/cdn/chunks/WrapperBlock-TXDSDXUP.js.map +1 -0
  127. package/dist/cdn/chunks/{blockTypeIcons-Cc6RJ27V.js → blockTypeIcons-CzYA5DF9.js} +2 -2
  128. package/dist/cdn/chunks/{blockTypeIcons-Cc6RJ27V.js.map → blockTypeIcons-CzYA5DF9.js.map} +1 -1
  129. package/dist/cdn/chunks/{ca-DIkMxYCN.js → ca-BJn8lcJx.js} +9 -1
  130. package/dist/cdn/chunks/ca-BJn8lcJx.js.map +1 -0
  131. package/dist/cdn/chunks/{composables-nyxwrM27.js → composables-CsfQlmcf.js} +543 -503
  132. package/dist/cdn/chunks/composables-CsfQlmcf.js.map +1 -0
  133. package/dist/cdn/chunks/{createCloudRuntime-DJkDGKQ_.js → createCloudRuntime-PpIFCDfj.js} +4 -4
  134. package/dist/cdn/chunks/{createCloudRuntime-DJkDGKQ_.js.map → createCloudRuntime-PpIFCDfj.js.map} +1 -1
  135. package/dist/{de-Cc6Ue0UD.js → cdn/chunks/de-BLFp3nWx.js} +10 -0
  136. package/dist/cdn/chunks/de-BLFp3nWx.js.map +1 -0
  137. package/dist/cdn/chunks/{editor-modal-erQEOHZN.js → editor-modal-B8UE9V8B.js} +90 -90
  138. package/dist/cdn/chunks/{editor-modal-erQEOHZN.js.map → editor-modal-B8UE9V8B.js.map} +1 -1
  139. package/dist/cdn/chunks/en-CVxNoHww.js +1 -0
  140. package/dist/cdn/chunks/{en-BX4FujAQ.js → en-DGGQJGbm.js} +9 -1
  141. package/dist/cdn/chunks/en-DGGQJGbm.js.map +1 -0
  142. package/dist/cdn/chunks/{es-Do5b-MKU.js → es-DTY9qgLv.js} +9 -1
  143. package/dist/cdn/chunks/es-DTY9qgLv.js.map +1 -0
  144. package/dist/cdn/chunks/{extensions-BcwkOjVq.js → extensions-BM6ZSnsQ.js} +70 -70
  145. package/dist/cdn/chunks/extensions-BM6ZSnsQ.js.map +1 -0
  146. package/dist/{fr-S1n2Ebzp.js → cdn/chunks/fr-L4FqO9Gp.js} +10 -0
  147. package/dist/cdn/chunks/{fr-S1n2Ebzp.js.map → fr-L4FqO9Gp.js.map} +1 -1
  148. package/dist/cdn/chunks/{icons-Da9GKjPx.js → icons-DHExFLlT.js} +43 -43
  149. package/dist/cdn/chunks/{icons-Da9GKjPx.js.map → icons-DHExFLlT.js.map} +1 -1
  150. package/dist/cdn/chunks/{ja-DLwcq4bA.js → ja-6uOXkh4v.js} +9 -1
  151. package/dist/cdn/chunks/ja-6uOXkh4v.js.map +1 -0
  152. package/dist/cdn/chunks/{keys-CoQtCqNv.js → keys-BUmIvYy3.js} +4 -4
  153. package/dist/cdn/chunks/keys-BUmIvYy3.js.map +1 -0
  154. package/dist/{nl-0JSWaZpT.js → cdn/chunks/nl-DCxuxwNq.js} +10 -0
  155. package/dist/cdn/chunks/nl-DCxuxwNq.js.map +1 -0
  156. package/dist/cdn/chunks/{normalizeMergeTagMarkup-BrGw5jxk.js → normalizeMergeTagMarkup-aWjkotui.js} +67 -67
  157. package/dist/cdn/chunks/normalizeMergeTagMarkup-aWjkotui.js.map +1 -0
  158. package/dist/cdn/chunks/{preRenderCustomBlocks-Cj0XYwuh.js → preRenderCustomBlocks-Dn6dFUwx.js} +4 -4
  159. package/dist/cdn/chunks/{preRenderCustomBlocks-Cj0XYwuh.js.map → preRenderCustomBlocks-Dn6dFUwx.js.map} +1 -1
  160. package/dist/{pt-BR-D3VlIMDZ.js → cdn/chunks/pt-BR-CBkcrebr.js} +10 -0
  161. package/dist/cdn/chunks/pt-BR-CBkcrebr.js.map +1 -0
  162. package/dist/cdn/chunks/{sanitizeHtml-GxJCxKcP.js → sanitizeHtml-DJI7vvET.js} +2 -2
  163. package/dist/cdn/chunks/{sanitizeHtml-GxJCxKcP.js.map → sanitizeHtml-DJI7vvET.js.map} +1 -1
  164. package/dist/cdn/chunks/{socialIcons-B5zrrV8-.js → socialIcons-Qw9rHc8C.js} +354 -341
  165. package/dist/cdn/chunks/{socialIcons-B5zrrV8-.js.map → socialIcons-Qw9rHc8C.js.map} +1 -1
  166. package/dist/cdn/chunks/src-Bfj1jHnn.js +710 -0
  167. package/dist/cdn/chunks/src-Bfj1jHnn.js.map +1 -0
  168. package/dist/cdn/chunks/{src-Diw9SLIe.js → src-C9JWWxAk.js} +419 -423
  169. package/dist/cdn/chunks/src-C9JWWxAk.js.map +1 -0
  170. package/dist/cdn/chunks/{src-v47QHNmB.js → src-mXG-Of9A.js} +669 -662
  171. package/dist/cdn/chunks/src-mXG-Of9A.js.map +1 -0
  172. package/dist/cdn/chunks/{useCloudI18n-Cc5NZqiI.js → useCloudI18n-Xsih9yRH.js} +2 -2
  173. package/dist/cdn/chunks/{useCloudI18n-Cc5NZqiI.js.map → useCloudI18n-Xsih9yRH.js.map} +1 -1
  174. package/dist/cdn/chunks/{useEditorRoot-D_LuZ_hE.js → useEditorRoot-Beau2Z_T.js} +2 -2
  175. package/dist/cdn/chunks/{useEditorRoot-D_LuZ_hE.js.map → useEditorRoot-Beau2Z_T.js.map} +1 -1
  176. package/dist/cdn/chunks/{useI18n-BnJYydPv.js → useI18n-D8s7HtTn.js} +2 -2
  177. package/dist/cdn/chunks/{useI18n-BnJYydPv.js.map → useI18n-D8s7HtTn.js.map} +1 -1
  178. package/dist/cdn/chunks/{useLocalizedDisplay-DekV8qar.js → useLocalizedDisplay-Bgg4qpev.js} +6 -6
  179. package/dist/cdn/chunks/{useLocalizedDisplay-DekV8qar.js.map → useLocalizedDisplay-Bgg4qpev.js.map} +1 -1
  180. package/dist/cdn/chunks/{useLogicTag-Cbp3I7UN.js → useLogicTag-DLvWzWsp.js} +4 -4
  181. package/dist/cdn/chunks/{useLogicTag-Cbp3I7UN.js.map → useLogicTag-DLvWzWsp.js.map} +1 -1
  182. package/dist/cdn/chunks/{useMergeTag-1lrpNyR5.js → useMergeTag-B4FHCGGm.js} +5 -5
  183. package/dist/cdn/chunks/{useMergeTag-1lrpNyR5.js.map → useMergeTag-B4FHCGGm.js.map} +1 -1
  184. package/dist/cdn/chunks/{usePopoverPosition-BWAXWeBv.js → usePopoverPosition-esO6wjvU.js} +5 -5
  185. package/dist/cdn/chunks/{usePopoverPosition-BWAXWeBv.js.map → usePopoverPosition-esO6wjvU.js.map} +1 -1
  186. package/dist/cdn/chunks/{useScrollToBlock-Ct1AwLD-.js → useScrollToBlock-CJuUu7Xj.js} +2 -2
  187. package/dist/cdn/chunks/{useScrollToBlock-Ct1AwLD-.js.map → useScrollToBlock-CJuUu7Xj.js.map} +1 -1
  188. package/dist/cdn/chunks/{withCurrentFont-DZfmiv8V.js → withCurrentFont-QqBilClC.js} +2 -2
  189. package/dist/cdn/chunks/{withCurrentFont-DZfmiv8V.js.map → withCurrentFont-QqBilClC.js.map} +1 -1
  190. package/dist/cdn/editor.css +1 -1
  191. package/dist/cdn/editor.js +793 -796
  192. package/dist/cdn/editor.js.map +1 -1
  193. package/dist/{check-XMnOOIEC.js → check-CcuCoJDh.js} +1 -1
  194. package/dist/{chevron-down-DmamTEWQ.js → chevron-down-BfYIbFbC.js} +1 -1
  195. package/dist/{chevron-right-BEFXOH27.js → chevron-right-DyjFqY35.js} +1 -1
  196. package/dist/{chevron-up-Dw7woXj8.js → chevron-up-BHEIxuS-.js} +1 -1
  197. package/dist/{circle-alert-BTKC9vkq.js → circle-alert-Tq7kAh9S.js} +1 -1
  198. package/dist/{clock-BVT5u2uG.js → clock-Df0ZiXwQ.js} +1 -1
  199. package/dist/{composables-DPgNn9GZ.js → composables-CRX6rncm.js} +978 -938
  200. package/dist/{createCloudRuntime-Bw8TLmQ8.js → createCloudRuntime-DplyIlsy.js} +3 -3
  201. package/dist/{createLucideIcon-CgDE3xAR.js → createLucideIcon-CfBdtoUw.js} +5 -5
  202. package/dist/{cdn/chunks/de-Cc6Ue0UD.js → de-BLFp3nWx.js} +8 -2
  203. package/dist/{dist-CBdk1Vcb.js → dist-BMUUt3zJ.js} +284 -277
  204. package/dist/{editor-modal-BeX6otLk.js → editor-modal-D9HT9bD6.js} +15 -15
  205. package/dist/{en-BX4FujAQ.js → en-DGGQJGbm.js} +8 -0
  206. package/dist/en-De3uAutQ.js +1 -0
  207. package/dist/{es-Do5b-MKU.js → es-DTY9qgLv.js} +8 -0
  208. package/dist/{extensions-QFAARrjF.js → extensions-Cm6K4SRX.js} +285 -285
  209. package/dist/{eye-ByMgHeA_.js → eye-B3psrAqd.js} +1 -1
  210. package/dist/{cdn/chunks/fr-S1n2Ebzp.js → fr-L4FqO9Gp.js} +8 -2
  211. package/dist/{image-Ch8tR35K.js → image-C3yuPDxx.js} +1 -1
  212. package/dist/index.d.ts +60 -12
  213. package/dist/{info-DzSD-Wpk.js → info-DKja7A68.js} +1 -1
  214. package/dist/{ja-DLwcq4bA.js → ja-6uOXkh4v.js} +8 -0
  215. package/dist/{keys-BCqskl51.js → keys-w_VRjoMu.js} +3 -3
  216. package/dist/{link-oDn9AR2w.js → link-DhzPI4Hn.js} +1 -1
  217. package/dist/{list-C5t07dp8.js → list-DVGn7Ik2.js} +1 -1
  218. package/dist/{loader-circle-k6xvKgUB.js → loader-circle-DqKWsMHO.js} +1 -1
  219. package/dist/{message-circle-C23R6OJR.js → message-circle-C4TonoBs.js} +1 -1
  220. package/dist/{cdn/chunks/nl-0JSWaZpT.js → nl-DCxuxwNq.js} +8 -2
  221. package/dist/{normalizeMergeTagMarkup-BS0nRvhq.js → normalizeMergeTagMarkup-Da9JAgx7.js} +75 -75
  222. package/dist/{package-C90eQ7NU.js → package-9OkiEO4S.js} +1 -1
  223. package/dist/{pencil-BK7GrQuA.js → pencil-M9vkOB7C.js} +1 -1
  224. package/dist/{plus-Cr0Mis63.js → plus-DxZiv9YC.js} +1 -1
  225. package/dist/{preRenderCustomBlocks-CiKvKd8V.js → preRenderCustomBlocks-CdqSp2P7.js} +4 -4
  226. package/dist/{cdn/chunks/pt-BR-D3VlIMDZ.js → pt-BR-CBkcrebr.js} +8 -2
  227. package/dist/{refresh-cw-_ZLOIEvA.js → refresh-cw-UY8_sdFG.js} +1 -1
  228. package/dist/{rotate-ccw-CB5wsHwv.js → rotate-ccw-BFTGCpHn.js} +1 -1
  229. package/dist/{sanitizeHtml-USjTyALR.js → sanitizeHtml-wBibnBF4.js} +6 -6
  230. package/dist/{search-BmrQNox8.js → search-RuGJnMEn.js} +1 -1
  231. package/dist/{send-blAsIBBg.js → send-DGB1ar02.js} +1 -1
  232. package/dist/{smartphone-BPpWYrwV.js → smartphone-CVA29CU_.js} +1 -1
  233. package/dist/{socialIcons-NvIg5ahU.js → socialIcons-CJD6OsI7.js} +427 -414
  234. package/dist/{sparkles-OqIxrNp-.js → sparkles-IHfEwEcd.js} +1 -1
  235. package/dist/{square-BP-V7iT-.js → square-_Cl44UU6.js} +1 -1
  236. package/dist/style.css +1 -1
  237. package/dist/templatical-editor.js +851 -854
  238. package/dist/{text-align-start-4mwX2o-F.js → text-align-start-Dqk2Xt_Q.js} +13 -13
  239. package/dist/{trash-B99WixTA.js → trash-Cr7rD5Hh.js} +1 -1
  240. package/dist/{triangle-alert-CHMiDkHa.js → triangle-alert-CKcpwtUj.js} +1 -1
  241. package/dist/{upload-Cp8o-hrN.js → upload-DR9pqVON.js} +1 -1
  242. package/dist/{useCloudI18n-Dh2iydo1.js → useCloudI18n-BczJoFf4.js} +1 -1
  243. package/dist/{useEditorRoot-DY3mgcHm.js → useEditorRoot-BcXKhM_8.js} +1 -1
  244. package/dist/{useI18n-CgtvtF4C.js → useI18n-zeWYtWSv.js} +1 -1
  245. package/dist/useLocalizedDisplay-Cbhx208c.js +31 -0
  246. package/dist/{useLogicTag-D8zgkXfb.js → useLogicTag-DLkYos2Q.js} +3 -3
  247. package/dist/{useMergeTag-k7Kr0nMd.js → useMergeTag-IoWOO679.js} +5 -5
  248. package/dist/{usePopoverPosition-VDQjyX_A.js → usePopoverPosition-Br3zt_MQ.js} +4 -4
  249. package/dist/{useScrollToBlock-B35ObCGK.js → useScrollToBlock-BfOzc1Z6.js} +2 -2
  250. package/dist/{withCurrentFont-Bzeg_gfH.js → withCurrentFont-m_PHcOD0.js} +1 -1
  251. package/dist/{x-BIBStNMS.js → x-DZSFHafL.js} +1 -1
  252. package/package.json +10 -10
  253. package/dist/BlockPreviewCanvas-C23A6FRm.js +0 -140
  254. package/dist/WrapperBlock-BAT3T0Cz.js +0 -44
  255. package/dist/cdn/chunks/BlockPreviewCanvas-Dr-xGq6v.js.map +0 -1
  256. package/dist/cdn/chunks/LogicTagInsertButton-Bt2PXbQ0.js.map +0 -1
  257. package/dist/cdn/chunks/Toolbar-NEE8qxYh.js.map +0 -1
  258. package/dist/cdn/chunks/WrapperBlock-DFY-7YSs.js +0 -46
  259. package/dist/cdn/chunks/WrapperBlock-DFY-7YSs.js.map +0 -1
  260. package/dist/cdn/chunks/ca-DIkMxYCN.js.map +0 -1
  261. package/dist/cdn/chunks/composables-nyxwrM27.js.map +0 -1
  262. package/dist/cdn/chunks/de-Cc6Ue0UD.js.map +0 -1
  263. package/dist/cdn/chunks/en-B6tLGRHq.js +0 -1
  264. package/dist/cdn/chunks/en-BX4FujAQ.js.map +0 -1
  265. package/dist/cdn/chunks/es-Do5b-MKU.js.map +0 -1
  266. package/dist/cdn/chunks/extensions-BcwkOjVq.js.map +0 -1
  267. package/dist/cdn/chunks/ja-DLwcq4bA.js.map +0 -1
  268. package/dist/cdn/chunks/keys-CoQtCqNv.js.map +0 -1
  269. package/dist/cdn/chunks/nl-0JSWaZpT.js.map +0 -1
  270. package/dist/cdn/chunks/normalizeMergeTagMarkup-BrGw5jxk.js.map +0 -1
  271. package/dist/cdn/chunks/pt-BR-D3VlIMDZ.js.map +0 -1
  272. package/dist/cdn/chunks/src-Diw9SLIe.js.map +0 -1
  273. package/dist/cdn/chunks/src-UR3AQocX.js +0 -683
  274. package/dist/cdn/chunks/src-UR3AQocX.js.map +0 -1
  275. package/dist/cdn/chunks/src-v47QHNmB.js.map +0 -1
  276. package/dist/en-Do0SU6tR.js +0 -1
  277. package/dist/useLocalizedDisplay-LdjosX4w.js +0 -31
@@ -0,0 +1,710 @@
1
+ import { At as e, Cn as t, Ct as n, Dt as r, Et as i, L as a, Ot as o, Qt as s, Sn as c, St as l, Vt as u, a as d, an as f, bn as p, bt as m, dt as h, gt as g, h as _, hn as v, i as ee, jt as y, kt as b, lt as x, m as te, o as S, ot as C, p as ne, un as re, vn as w, vt as ie, wt as T, xn as ae, xt as oe, yn as E, yt as se } from "./src-mXG-Of9A.js";
2
+ // ../renderer/src/render-context.ts
3
+ var D = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
4
+ name: "@templatical/renderer",
5
+ description: "Render Templatical email templates to MJML",
6
+ version: "0.56.0",
7
+ bugs: "https://github.com/templatical/sdk/issues",
8
+ dependencies: { "@templatical/types": "workspace:*" },
9
+ devDependencies: {
10
+ "@jsquash/oxipng": "^2.3.0",
11
+ "@resvg/resvg-js": "^2.6.2",
12
+ liquidjs: "^10.30.1",
13
+ mjml: "^5.4.1",
14
+ "mjml-browser": "^5.4.1",
15
+ typescript: "^6.0.3",
16
+ vitest: "^5.1.0"
17
+ },
18
+ exports: { ".": {
19
+ types: "./dist/index.d.ts",
20
+ import: "./dist/index.js"
21
+ } },
22
+ files: ["dist", "assets"],
23
+ homepage: "https://templatical.com",
24
+ keywords: [
25
+ "email",
26
+ "email-template",
27
+ "html-email",
28
+ "mjml",
29
+ "renderer",
30
+ "templatical"
31
+ ],
32
+ license: "MIT",
33
+ module: "./dist/index.js",
34
+ peerDependencies: { liquidjs: "^10.30.1" },
35
+ peerDependenciesMeta: { liquidjs: { optional: !0 } },
36
+ publishConfig: { access: "public" },
37
+ repository: {
38
+ type: "git",
39
+ url: "git+https://github.com/templatical/sdk.git",
40
+ directory: "packages/renderer"
41
+ },
42
+ scripts: {
43
+ build: "tsdown && node scripts/rasterize-social.mjs",
44
+ test: "vitest run --config vitest.config.ts",
45
+ typecheck: "tsc --noEmit"
46
+ },
47
+ type: "module",
48
+ types: "./dist/index.d.ts"
49
+ }.version}/assets/social`, O = class e {
50
+ containerWidth;
51
+ customFonts;
52
+ defaultFallbackFont;
53
+ allowHtmlBlocks;
54
+ customBlockHtml;
55
+ socialIconsBaseUrl;
56
+ blockRenderers;
57
+ contentDirection;
58
+ contentWidth;
59
+ constructor(e, t, n, r, i = /* @__PURE__ */ new Map(), a = D, o = {}, s = "ltr", c) {
60
+ 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;
61
+ }
62
+ withContainerWidth(t, n = t) {
63
+ return new e(t, this.customFonts, this.defaultFallbackFont, this.allowHtmlBlocks, this.customBlockHtml, this.socialIconsBaseUrl, this.blockRenderers, this.contentDirection, n);
64
+ }
65
+ resolveFontFamily(e) {
66
+ return ee(e, {
67
+ customFonts: this.customFonts,
68
+ defaultFallback: this.defaultFallbackFont
69
+ });
70
+ }
71
+ }, k = {
72
+ "&": "&",
73
+ "<": "&lt;",
74
+ ">": "&gt;",
75
+ "\"": "&quot;",
76
+ "'": "&#039;"
77
+ }, A = /[&<>"']/g;
78
+ function j(e) {
79
+ return e === "" ? "" : e.replace(A, (e) => k[e] ?? e);
80
+ }
81
+ function M(e) {
82
+ return e === "" ? "" : e.replace(A, (e) => k[e] ?? e);
83
+ }
84
+ function N(e) {
85
+ return e === "" ? "" : M(e.replace(/[;{}\r\n]/g, ""));
86
+ }
87
+ var ce = /[&<>"]/g;
88
+ function P(e) {
89
+ return e.replace(ce, (e) => k[e] ?? e);
90
+ }
91
+ // ../renderer/src/visibility.ts
92
+ function F(e) {
93
+ let t = e.visibility;
94
+ return t ? !t.desktop && !t.mobile : !1;
95
+ }
96
+ function I(e, t = []) {
97
+ let n = [le(e), ...t].filter((e) => e !== "").join(" ");
98
+ return n === "" ? "" : ` css-class="${M(n)}"`;
99
+ }
100
+ function le(e) {
101
+ let t = e.visibility;
102
+ if (!t) return "";
103
+ let n = [];
104
+ return t.desktop || n.push("tpl-hide-desktop"), t.mobile || n.push("tpl-hide-mobile"), n.join(" ");
105
+ }
106
+ // ../renderer/src/unrenderable.ts
107
+ var ue = "templatical:unrenderable-block";
108
+ function de(e) {
109
+ return e.replace(/[<>]/g, "").replace(/-{2,}/g, "-");
110
+ }
111
+ function L(e) {
112
+ return console.warn(`[Templatical] No renderer for block type "${e.type}" (id: ${e.id}). A placeholder comment was emitted in its place. Pass a \`blockRenderers\` entry for this type to render it.`), `<mj-raw><!-- ${ue} type="${de(e.type)}" id="${de(e.id)}" --></mj-raw>`;
113
+ }
114
+ // ../renderer/src/padding.ts
115
+ function R(e) {
116
+ return M(`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`);
117
+ }
118
+ // ../renderer/src/utils.ts
119
+ function z(e, t) {
120
+ return e ? ` ${t === "native" ? "background-color" : "container-background-color"}="${N(e)}"` : "";
121
+ }
122
+ function B(e) {
123
+ return typeof e != "number" || !Number.isFinite(e) || e <= 0 ? "" : ` height="${e}px"`;
124
+ }
125
+ function V(e, t) {
126
+ let n = (e) => Math.trunc(e ?? 0), r = (e) => ae(e) === null ? 0 : Math.trunc(e.width);
127
+ return n(e?.left) + n(e?.right) + r(t?.left) + r(t?.right);
128
+ }
129
+ function H(e, t) {
130
+ if (e.fluidOnMobile === !0) return " fluid-on-mobile=\"true\"";
131
+ if (e.fluidOnMobile === !1) return "";
132
+ let n = Math.floor(t.contentWidth) - V(e.styles.padding, e.border);
133
+ return e.width === "full" || e.width >= n ? " fluid-on-mobile=\"true\"" : "";
134
+ }
135
+ function U(e) {
136
+ return Object.entries(c(e)).map(([e, t]) => ` ${e}="${N(t)}"`).join("");
137
+ }
138
+ function W(e) {
139
+ let n = t(e);
140
+ return n === null ? "" : ` border-radius="${N(n)}"`;
141
+ }
142
+ function fe(e) {
143
+ let t = v(e);
144
+ return t === null ? "" : ` background-url="${M(t.url)}" background-size="${N(t.size)}" background-position="${N(t.position)}" background-repeat="${N(t.repeat)}"`;
145
+ }
146
+ // ../renderer/src/rich-text.ts
147
+ var G = "tpl-rich-text";
148
+ function K(e) {
149
+ return `${G}-${e}`;
150
+ }
151
+ function pe(e, t = "ltr") {
152
+ let n = E, r = `.${G}`, i = [...new Set(e)].sort((e, t) => e - t).flatMap((e) => {
153
+ let t = `.${K(e)}`;
154
+ return [`${t} p { margin: 0 0 ${e}px; }`, `${t} p:last-child { margin-bottom: 0; }`];
155
+ }), a = t === "rtl" ? "padding-right" : "padding-left";
156
+ return [
157
+ ...i,
158
+ `${r} ul, ${r} ol { margin: ${n.listMarginY}px 0; ${a}: ${n.listPaddingLeft}px; }`,
159
+ `${r} li { margin: ${n.listItemMarginY}px 0; }`
160
+ ].join("\n ");
161
+ }
162
+ function q(e) {
163
+ return e ?? E.paragraphGap;
164
+ }
165
+ function me(e) {
166
+ let t = [E.paragraphGap], n = (e) => {
167
+ if (e.type === "paragraph" && t.push(q(e.paragraphSpacing)), T(e)) for (let t of e.children) for (let e of t) n(e);
168
+ else if (y(e)) for (let t of e.children) n(t);
169
+ };
170
+ for (let t of e) n(t);
171
+ return t;
172
+ }
173
+ var he = {
174
+ apos: "'",
175
+ quot: "\"",
176
+ nbsp: "\xA0"
177
+ }, ge = /&(?:#(\d+)|#x([0-9a-f]+)|(apos|quot|nbsp));/gi, _e = /[a-z]/i, J = /[ \t\n\f\r]/;
178
+ function ve(e, t, n, r, i) {
179
+ let a;
180
+ if (i !== void 0) a = he[i.toLowerCase()];
181
+ else {
182
+ let t = Number(n ?? `0x${r}`);
183
+ if (!(t > 0 && t <= 1114111 && !(t >= 55296 && t <= 57343))) return e;
184
+ a = String.fromCodePoint(t);
185
+ }
186
+ return a === "&" ? "&amp;" : a === "<" || a === ">" ? e : a === t ? t === "\"" ? "'" : "\"" : a;
187
+ }
188
+ function ye(e) {
189
+ let t = 1;
190
+ for (; t < e.length && !J.test(e[t]) && e[t] !== "/";) t++;
191
+ for (; t < e.length;) {
192
+ for (; t < e.length && (J.test(e[t]) || e[t] === "/");) t++;
193
+ let n = t;
194
+ for (; t < e.length && !/[\s=/]/.test(e[t]);) t++;
195
+ let r = e.slice(n, t).toLowerCase();
196
+ if (r === "") {
197
+ t++;
198
+ continue;
199
+ }
200
+ for (; t < e.length && J.test(e[t]);) t++;
201
+ if (e[t] !== "=") continue;
202
+ for (t++; t < e.length && J.test(e[t]);) t++;
203
+ let i = e[t];
204
+ if (i === "\"" || i === "'") {
205
+ let n = e.indexOf(i, t + 1);
206
+ if (n === -1) return e;
207
+ if (r === "style") {
208
+ let r = e.slice(t + 1, n).replace(ge, (e, t, n, r) => ve(e, i, t, n, r));
209
+ return `${e.slice(0, t + 1)}${r}${e.slice(n)}`;
210
+ }
211
+ t = n + 1;
212
+ } else for (; t < e.length && !J.test(e[t]);) t++;
213
+ }
214
+ return e;
215
+ }
216
+ function be(e) {
217
+ if (!e.includes("&")) return e;
218
+ let t = "", n = 0, r = e.indexOf("<");
219
+ for (; r !== -1;) {
220
+ if (!_e.test(e.charAt(r + 1))) {
221
+ r = e.indexOf("<", r + 1);
222
+ continue;
223
+ }
224
+ let i = x(e, r + 1);
225
+ if (i === -1) break;
226
+ let a = e.slice(r, i), o = ye(a);
227
+ o !== a && (t += e.slice(n, r) + o, n = i), r = e.indexOf("<", i);
228
+ }
229
+ return t + e.slice(n);
230
+ }
231
+ // ../renderer/src/renderers/title.ts
232
+ function xe(e, t) {
233
+ if (F(e)) return "";
234
+ let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = Se(be(d(C(e.content)))), a = w[e.level] ?? w[2], o = e.color ? `\n color="${M(e.color)}"` : "", s = M(e.textAlign), c = Ce(e.fontFamily, t), l = I(e, [G, K(q(void 0))]), u = `h${w[e.level] ? e.level : 2}`;
235
+ return `<mj-text
236
+ font-size="${a}px"${o}
237
+ align="${s}"
238
+ line-height="${p}"
239
+ padding="${n}"${r}${c}${l}
240
+ ><${u} style="margin:0;font-size:inherit;color:inherit;line-height:inherit;font-weight:700">${i}</${u}></mj-text>`;
241
+ }
242
+ function Se(e) {
243
+ let t = /^\s*<p\b/.exec(e);
244
+ if (!t) return e;
245
+ let n = x(e, t[0].length);
246
+ if (n === -1) return e;
247
+ let r = /<\/p>\s*$/.exec(e);
248
+ if (!r || r.index <= n) return e;
249
+ let i = e.slice(n + 1, r.index);
250
+ return /<\/p>\s*<p\b/i.test(i) ? e : i;
251
+ }
252
+ function Ce(e, t) {
253
+ return e ? ` font-family="${P(t.resolveFontFamily(e))}"` : "";
254
+ }
255
+ // ../renderer/src/renderers/paragraph.ts
256
+ function we(e, t) {
257
+ if (F(e) || S(e.content)) return "";
258
+ let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = be(d(C(e.content))), a = I(e, [G, K(q(e.paragraphSpacing))]);
259
+ return `<mj-text
260
+ line-height="1.5"${t.contentDirection === "rtl" ? "\n align=\"right\"" : ""}
261
+ padding="${n}"${r}${a}
262
+ >${i}</mj-text>`;
263
+ }
264
+ // ../renderer/src/renderers/image.ts
265
+ function Te(e, t) {
266
+ if (F(e) || e.src === "") return "";
267
+ let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = M(e.width === "full" ? t.containerWidth + "px" : e.width + "px"), a = B(e.height), o = H(e, t), s = I(e), c = W(e.borderRadius), l = U(e.border), u = "";
268
+ e.linkUrl && (u = ` href="${M(e.linkUrl)}"`, e.linkOpenInNewTab && (u += " target=\"_blank\" rel=\"noopener\""));
269
+ let d = M(e.src), f = e.decorative === !0;
270
+ return `<mj-image
271
+ src="${d}"
272
+ alt="${f ? "" : M(e.alt)}"
273
+ width="${i}"${a}${o}
274
+ align="${M(e.align)}"
275
+ padding="${n}"${r}${l}${c}${u}${s}${f ? " role=\"presentation\"" : ""}
276
+ />`;
277
+ }
278
+ // ../renderer/src/renderers/button.ts
279
+ var Y = "tpl-button-full";
280
+ function Ee(e, t) {
281
+ if (F(e)) return "";
282
+ let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = R(e.buttonPadding), a = e.url === "" ? "" : M(e.url), o = a === "" ? "" : ` href="${a}"`, s = De(e.backgroundColor), c = M(e.textColor), l = e.fontSize, u = Oe(e.fontWeight), d = M(Ae(e.borderRadius)), f = j(e.text), p = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", m = ke(e.fontFamily, t), h = je(e.width), g = I(e, e.width === "full" ? [Y] : []), _ = U(e.border), v = M(e.align ?? "center");
283
+ return `<mj-button${o}${p}
284
+ background-color="${s}"
285
+ color="${c}"
286
+ font-size="${M(String(l))}px"
287
+ font-weight="${u}"
288
+ border-radius="${d}"${_}
289
+ inner-padding="${i}"
290
+ align="${v}"
291
+ padding="${n}"${r}${m}${h}${g}
292
+ >${f}</mj-button>`;
293
+ }
294
+ function De(e) {
295
+ return e.trim() === "" ? "transparent" : M(e);
296
+ }
297
+ function Oe(e) {
298
+ return e === "regular" ? "400" : e === "medium" ? "500" : e === "bold" ? "700" : "bold";
299
+ }
300
+ function ke(e, t) {
301
+ return e ? ` font-family="${P(t.resolveFontFamily(e))}"` : "";
302
+ }
303
+ function Ae(e) {
304
+ return typeof e == "number" ? `${e}px` : t(e) ?? "0px";
305
+ }
306
+ function je(e) {
307
+ return e === void 0 ? "" : ` width="${M(e === "full" ? "100%" : `${e}px`)}"`;
308
+ }
309
+ // ../renderer/src/renderers/divider.ts
310
+ function Me(e, t) {
311
+ if (F(e)) return "";
312
+ let n = R(e.styles.padding), r = e.styles.backgroundColor ? ` container-background-color="${M(e.styles.backgroundColor)}"` : "", i = e.width === "full" ? "100%" : typeof e.width == "number" ? `${e.width}px` : e.width, a = e.thickness, o = M(e.lineStyle), s = M(e.color), c = I(e);
313
+ return `<mj-divider
314
+ border-width="${M(String(a))}px"
315
+ border-style="${o}"
316
+ border-color="${s}"
317
+ width="${M(i)}"
318
+ padding="${n}"${r}${c}
319
+ />`;
320
+ }
321
+ // ../renderer/src/renderers/spacer.ts
322
+ function Ne(e, t) {
323
+ if (F(e)) return "";
324
+ let n = e.height, r = e.styles.backgroundColor ? ` container-background-color="${M(e.styles.backgroundColor)}"` : "", i = I(e);
325
+ return `<mj-spacer height="${M(String(n))}px" padding="0"${r}${i} />`;
326
+ }
327
+ // ../renderer/src/renderers/html.ts
328
+ function Pe(e, t) {
329
+ if (F(e) || !t.allowHtmlBlocks) return "";
330
+ let n = e.content;
331
+ if (n === "") return "";
332
+ let r = I(e);
333
+ return `<mj-text padding="${R(e.styles.padding)}"${z(e.styles.backgroundColor, "container")}${r}>
334
+ ${n}
335
+ </mj-text>`;
336
+ }
337
+ // ../renderer/src/renderers/social.ts
338
+ function Fe(e, t) {
339
+ if (F(e)) return "";
340
+ let n = e.icons;
341
+ if (n.length === 0) return "";
342
+ let r = R(e.styles.padding), i = e.styles.backgroundColor ? ` container-background-color="${M(e.styles.backgroundColor)}"` : "", a = I(e), o = M(e.align), s = e.iconSize, c = e.iconStyle, l = M(f(c, e.iconTone)), u = e.spacing, d;
343
+ switch (s) {
344
+ case "small":
345
+ d = 24;
346
+ break;
347
+ case "large":
348
+ d = 48;
349
+ break;
350
+ default: d = 32;
351
+ }
352
+ let p;
353
+ switch (c) {
354
+ case "circle":
355
+ p = "50%";
356
+ break;
357
+ case "rounded":
358
+ p = "8px";
359
+ break;
360
+ case "square":
361
+ p = "0";
362
+ break;
363
+ default: p = "4px";
364
+ }
365
+ let m = n.length;
366
+ return `<mj-social
367
+ mode="horizontal"
368
+ align="${o}"
369
+ icon-padding="0"
370
+ padding="${r}"${i}${a}
371
+ >
372
+ ${n.map((e, n) => {
373
+ let r = M(e.platform), i = M(e.url), a = `${t.socialIconsBaseUrl}/${l}/${r}.png`, o = n === m - 1 ? 0 : u;
374
+ return `<mj-social-element src="${a}" href="${i}" icon-size="${d}px" padding="0 ${M(String(o))}px 0 0" border-radius="${p}" background-color="transparent"></mj-social-element>`;
375
+ }).join("\n")}
376
+ </mj-social>`;
377
+ }
378
+ // ../renderer/src/renderers/menu.ts
379
+ function Ie(e, t) {
380
+ if (F(e) || e.items.length === 0) return "";
381
+ let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = I(e), a = ze(e.fontFamily, t), o = M(e.textAlign), s = e.fontSize, c = e.color ? `\n color="${M(e.color)}"` : "", l = Le(e);
382
+ return `<mj-text
383
+ font-size="${M(String(s))}px"${c}
384
+ align="${o}"
385
+ line-height="1.5"
386
+ padding="${n}"${r}${a}${i}
387
+ >${l}</mj-text>`;
388
+ }
389
+ function Le(e) {
390
+ let t = e.items, n = j(e.separator), r = N(e.separatorColor), i = e.spacing, a = e.linkColor ?? e.color, o = [], s = t.length;
391
+ for (let e = 0; e < s; e++) o.push(Re(t[e], a)), e < s - 1 && o.push(`<span style="color: ${r}; padding: 0 ${N(String(i))}px;">${n}</span>`);
392
+ return o.join("");
393
+ }
394
+ function Re(e, t) {
395
+ let n = j(e.text), r = M(e.url), i = e.color ?? t, a = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", o = ["text-decoration: none"];
396
+ return i && o.unshift(`color: ${N(i)}`), e.bold && o.push("font-weight: bold"), e.underline && o.push("text-decoration: underline"), `<a href="${r}" style="${o.join("; ")}"${a}>${n}</a>`;
397
+ }
398
+ function ze(e, t) {
399
+ return e ? ` font-family="${P(t.resolveFontFamily(e))}"` : "";
400
+ }
401
+ // ../renderer/src/renderers/table.ts
402
+ function Be(e, t) {
403
+ if (F(e) || e.rows.length === 0) return "";
404
+ let n = R(e.styles.padding), r = z(e.styles.backgroundColor, "container"), i = I(e), a = We(e.fontFamily, t), o = e.fontSize, s = e.color ? `\n color="${M(e.color)}"` : "", c = M(e.textAlign), l = Ve(e);
405
+ return `<mj-text
406
+ font-size="${M(String(o))}px"${s}
407
+ align="${c}"
408
+ line-height="1.5"
409
+ padding="${n}"${r}${a}${i}
410
+ >${l}</mj-text>`;
411
+ }
412
+ function Ve(e) {
413
+ let t = N(e.borderColor), n = e.borderWidth, r = "";
414
+ for (let i = 0; i < e.rows.length; i++) {
415
+ let a = e.rows[i];
416
+ r += He(a, e, e.hasHeaderRow && i === 0, t, n);
417
+ }
418
+ return `<table style="width: 100%; border-collapse: collapse;">${r}</table>`;
419
+ }
420
+ function He(e, t, n, r, i) {
421
+ let a = "";
422
+ for (let o of e.cells) a += Ue(o, t, n, r, i);
423
+ return `<tr>${a}</tr>`;
424
+ }
425
+ function Ue(e, t, n, r, i) {
426
+ let a = t.cellPadding, o = [`border: ${N(String(i))}px solid ${r}`, `padding: ${N(String(a))}px`];
427
+ n && (o.push("font-weight: bold"), t.headerBackgroundColor && o.push(`background-color: ${N(t.headerBackgroundColor)}`));
428
+ let s = o.join("; "), c = j(C(e.content)), l = n ? "th" : "td";
429
+ return `<${l} style="${s}">${c}</${l}>`;
430
+ }
431
+ function We(e, t) {
432
+ return e ? ` font-family="${P(t.resolveFontFamily(e))}"` : "";
433
+ }
434
+ // ../renderer/src/renderers/custom.ts
435
+ function Ge(e, t) {
436
+ if (F(e)) return "";
437
+ let n = t.customBlockHtml.get(e.id) ?? e.renderedHtml;
438
+ if (!n || n === "") return "";
439
+ let r = I(e);
440
+ return `<mj-text padding="${R(e.styles.padding)}"${z(e.styles.backgroundColor, "container")}${r}>
441
+ ${n}
442
+ </mj-text>`;
443
+ }
444
+ // ../renderer/src/columns.ts
445
+ function Ke(e) {
446
+ switch (e) {
447
+ case "2": return ["50%", "50%"];
448
+ case "3": return [
449
+ "33.33%",
450
+ "33.33%",
451
+ "33.34%"
452
+ ];
453
+ case "4": return [
454
+ "25%",
455
+ "25%",
456
+ "25%",
457
+ "25%"
458
+ ];
459
+ case "1-2": return ["33.33%", "66.67%"];
460
+ case "2-1": return ["66.67%", "33.33%"];
461
+ case "1-3": return ["25%", "75%"];
462
+ case "3-1": return ["75%", "25%"];
463
+ case "1-2-1": return [
464
+ "25%",
465
+ "50%",
466
+ "25%"
467
+ ];
468
+ default: return ["100%"];
469
+ }
470
+ }
471
+ function qe(e, t) {
472
+ switch (e) {
473
+ case "2": return [t * .5, t * .5];
474
+ case "3": return [
475
+ t / 3,
476
+ t / 3,
477
+ t / 3
478
+ ];
479
+ case "4": return [
480
+ t * .25,
481
+ t * .25,
482
+ t * .25,
483
+ t * .25
484
+ ];
485
+ case "1-2": return [t / 3, t * 2 / 3];
486
+ case "2-1": return [t * 2 / 3, t / 3];
487
+ case "1-3": return [t * .25, t * .75];
488
+ case "3-1": return [t * .75, t * .25];
489
+ case "1-2-1": return [
490
+ t * .25,
491
+ t * .5,
492
+ t * .25
493
+ ];
494
+ default: return [t];
495
+ }
496
+ }
497
+ // ../renderer/src/hero-geometry.ts
498
+ function Je(e, t, n) {
499
+ let r = Math.max(1, Math.round(t)), i = e.aspectRatio === null ? null : Math.max(1, Math.round(r * e.aspectRatio)), a = Math.max(e.height === "image" ? i ?? r : e.height, Math.trunc(n.top) + Math.trunc(n.bottom));
500
+ return {
501
+ mode: "fixed-height",
502
+ height: a,
503
+ backgroundWidth: r,
504
+ backgroundHeight: i ?? a
505
+ };
506
+ }
507
+ // ../renderer/src/display-condition.ts
508
+ function X(e, t) {
509
+ if (t === "") return "";
510
+ let n = e.displayCondition;
511
+ return n ? `<mj-raw>${n.before}</mj-raw>
512
+ ` + t + `
513
+ <mj-raw>${n.after}</mj-raw>` : t;
514
+ }
515
+ // ../renderer/src/renderers/section.ts
516
+ function Ye(e, t, n) {
517
+ if (F(e)) return "";
518
+ let r = re(e);
519
+ if (r?.applied) return Xe(e, r, t, n);
520
+ let i = e.columns, a = Ke(i), o = qe(i, t.containerWidth), s = Math.floor(t.contentWidth) - V(e.styles.padding, e.border), c = a.map((e) => Math.floor(s * parseFloat(e) / 100)), l = R(e.styles.padding), u = z(e.styles.backgroundColor, "native"), d = fe(e.backgroundImage), f = I(e), p = W(e.borderRadius), m = U(e.border), h = t.contentDirection === "rtl" ? " direction=\"rtl\"" : "", g = e.children, _ = [];
521
+ for (let e = 0; e < g.length; e++) {
522
+ let r = g[e], i = a[e] ?? "100%", l = Math.floor(o[e] ?? t.containerWidth), u = Ze(r, t.allowHtmlBlocks).filter((e) => !T(e)), d = t.withContainerWidth(l, c[e] ?? s), f = u.map((e) => X(e, n(e, d))).filter((e) => e !== "").join("\n");
523
+ _.push(`<mj-column width="${i}"${h}>
524
+ ${f === "" ? "<mj-text>&nbsp;</mj-text>" : f}
525
+ </mj-column>`);
526
+ }
527
+ let v = _.join("\n");
528
+ return `<mj-section${u}${d} padding="${l}"${m}${p}${f}${h}>
529
+ ${e.stackOnMobile === !1 && _.length > 1 ? `<mj-group${h}>
530
+ ${v}
531
+ </mj-group>` : v}
532
+ </mj-section>`;
533
+ }
534
+ function Xe(e, t, n, r) {
535
+ let i = Math.floor(n.contentWidth), a = Je(t, i, e.styles.padding), o = z(e.styles.backgroundColor, "native") || " background-color=\"transparent\"", s = R(e.styles.padding), c = W(e.borderRadius), l = I(e), u = n.withContainerWidth(i, i - V(e.styles.padding)), d = Ze(e.children[0] ?? [], n.allowHtmlBlocks).filter((e) => !T(e)).map((e) => X(e, r(e, u))).filter((e) => e !== "").join("\n");
536
+ return `<mj-hero mode="${a.mode}" height="${a.height}px" background-url="${M(t.image.url)}" background-width="${a.backgroundWidth}px" background-height="${a.backgroundHeight}px" background-position="${M(t.image.position)}"${o} padding="${s}" vertical-align="${M(t.verticalAlign)}"${c}${l}>
537
+ ${d}
538
+ </mj-hero>`;
539
+ }
540
+ function Ze(e, t) {
541
+ return t ? e : e.filter((e) => e.type !== "html");
542
+ }
543
+ // ../renderer/src/renderers/video.ts
544
+ function Qe(e, t) {
545
+ if (t) return t;
546
+ if (!e) return null;
547
+ 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})/]) {
548
+ let n = e.match(t);
549
+ if (n) return `https://img.youtube.com/vi/${n[1]}/maxresdefault.jpg`;
550
+ }
551
+ let n = e.match(/vimeo\.com\/(?:video\/)?(\d+)/);
552
+ return n ? `https://vumbnail.com/${n[1]}.jpg` : null;
553
+ }
554
+ function $e(e, t) {
555
+ if (F(e)) return "";
556
+ let n = Qe(e.url, e.thumbnailUrl);
557
+ if (!n) return "";
558
+ let r = R(e.styles.padding), i = z(e.styles.backgroundColor, "container"), a = M(e.width === "full" ? t.containerWidth + "px" : e.width + "px"), o = B(e.height), s = H(e, t), c = I(e);
559
+ return `<mj-image
560
+ src="${M(n)}"
561
+ alt="${M(e.alt)}"
562
+ width="${a}"${o}${s}
563
+ align="${M(e.align)}"
564
+ padding="${r}"
565
+ href="${M(e.url)}"
566
+ target="_blank"
567
+ rel="noopener"${i}${c}
568
+ />`;
569
+ }
570
+ // ../renderer/src/renderers/index.ts
571
+ function Z(t, a) {
572
+ let s = a.blockRenderers[t.type];
573
+ return s ? s(t, a) : T(t) ? Ye(t, a, Z) : b(t) ? xe(t, a) : n(t) ? we(t, a) : oe(t) ? Te(t, a) : g(t) ? Ee(t, a) : se(t) ? Me(t, a) : r(t) ? Ne(t, a) : m(t) ? Pe(t, a) : i(t) ? Fe(t, a) : l(t) ? Ie(t, a) : o(t) ? Be(t, a) : e(t) ? $e(t, a) : ie(t) ? Ge(t, a) : F(t) ? "" : L(t);
574
+ }
575
+ // ../renderer/src/index.ts
576
+ var et = `.${Y} a { display: block !important; }`;
577
+ async function tt(e, t) {
578
+ if (t?.customBlocks !== void 0 && t.renderCustomBlock !== void 0) throw TypeError("[Templatical] customBlocks cannot be combined with renderCustomBlock");
579
+ if (t?.customBlocks !== void 0 && t.getCustomBlockStylesheet !== void 0) throw TypeError("[Templatical] customBlocks cannot be combined with getCustomBlockStylesheet");
580
+ let n = t?.locale ?? u(e), r = s(e, n), i = t?.layout ? ne(s(t.layout, n, { missing: "default" }), r) : (te(r), _(r), r), a = t?.customFonts ?? [], o = t?.defaultFallbackFont ?? "Arial, sans-serif", c = t?.allowHtmlBlocks ?? !0, l = at(t?.socialIconsBaseUrl ?? D), d = t?.customBlocks === void 0 ? await lt(i, t?.renderCustomBlock) : await ut(i, t.customBlocks), f = dt(i, t?.getCustomBlockStylesheet, t?.customBlocks === void 0 ? void 0 : new Map(t.customBlocks.map((e) => [e.type, e]))), p = h(i.settings), m = new O(i.settings.width, a, o, c, d, l, t?.blockRenderers ?? {}, p), g = ct(i.blocks, c), v = m.resolveFontFamily(i.settings.fontFamily), ee = /[<>]/.test(i.settings.backgroundColor) ? "transparent" : i.settings.backgroundColor, y = i.settings.textColor ? ` color="${M(i.settings.textColor)}"` : "", b = i.settings.linkColor ? N(i.settings.linkColor) : "inherit", x = i.settings.linkUnderline ? "underline" : "none", S = g.map((e) => nt(e, m)).filter((e) => e !== "").join("\n"), C = st(a), re = ot(i.settings.preheaderText);
581
+ return `<mjml lang="${M(i.settings.locale)}" dir="${M(p)}">
582
+ <mj-head>${re}
583
+ <mj-attributes>
584
+ <mj-all font-family="${P(v)}" />
585
+ <mj-text font-size="14px"${y} />
586
+ <mj-section padding="0" />
587
+ <mj-column padding="0" />
588
+ </mj-attributes>${C}
589
+ <mj-style inline="inline">
590
+ ${pe(me(g), p)}
591
+ ${et}
592
+ </mj-style>
593
+ <mj-style>
594
+ a { color: ${b}; text-decoration: ${x}; }
595
+ @media only screen and (max-width: 480px) {
596
+ .tpl-hide-mobile { display: none !important; mso-hide: all !important; }
597
+ }
598
+ @media only screen and (min-width: 481px) {
599
+ .tpl-hide-desktop { display: none !important; mso-hide: all !important; }
600
+ }
601
+ </mj-style>${ft(f)}
602
+ </mj-head>
603
+ <mj-body width="${M(String(m.containerWidth))}px" background-color="${N(ee)}">
604
+ ${S}
605
+ </mj-body>
606
+ </mjml>`;
607
+ }
608
+ function nt(e, t) {
609
+ if (y(e)) {
610
+ let n = Q(t, e.styles.padding);
611
+ return X(e, rt(ct(e.children, t.allowHtmlBlocks).map((e) => nt(e, n)).filter((e) => e !== "").join("\n"), {
612
+ backgroundColor: e.styles.backgroundColor,
613
+ padding: e.styles.padding,
614
+ borderRadius: e.borderRadius,
615
+ backgroundImage: e.backgroundImage,
616
+ fullWidth: e.fullWidth
617
+ }, t.contentDirection));
618
+ }
619
+ if (T(e)) {
620
+ let n = Z(e, e.wrapper ? Q(t, e.wrapper.padding) : t);
621
+ return X(e, e.wrapper && n !== "" ? rt(n, e.wrapper, t.contentDirection) : n);
622
+ }
623
+ return X(e, it(Z(e, t), t.contentDirection));
624
+ }
625
+ function Q(e, t) {
626
+ return e.withContainerWidth(e.containerWidth, Math.floor(e.contentWidth) - V(t));
627
+ }
628
+ function rt(e, t, n) {
629
+ return `<mj-wrapper${z(t.backgroundColor, "native")}${fe(t.backgroundImage)}${` padding="${t.padding ? R(t.padding) : "0"}"`}${t.fullWidth ? "" : W(t.borderRadius)}${t.fullWidth ? " full-width=\"full-width\"" : ""}${n === "rtl" ? " direction=\"rtl\"" : ""}>
630
+ ${e}
631
+ </mj-wrapper>`;
632
+ }
633
+ function it(e, t) {
634
+ if (e === "") return "";
635
+ let n = t === "rtl" ? " direction=\"rtl\"" : "";
636
+ return `<mj-section${n}>
637
+ <mj-column${n}>
638
+ ${e}
639
+ </mj-column>
640
+ </mj-section>`;
641
+ }
642
+ function at(e) {
643
+ return e.endsWith("/") ? e.slice(0, -1) : e;
644
+ }
645
+ function ot(e) {
646
+ if (!e) return "";
647
+ let t = e.trim();
648
+ return t === "" ? "" : `\n <mj-preview>${j(t)}</mj-preview>`;
649
+ }
650
+ function st(e) {
651
+ return e.length === 0 ? "" : e.map((e) => `\n <mj-font name="${M(e.name)}" href="${M(e.url)}" />`).join("");
652
+ }
653
+ function ct(e, t) {
654
+ return t ? e : e.filter((e) => e.type !== "html");
655
+ }
656
+ async function lt(e, t) {
657
+ let n = /* @__PURE__ */ new Map();
658
+ if (!t) return n;
659
+ let r = [];
660
+ if ($(e.blocks, r), r.length === 0) return n;
661
+ let i = await Promise.all(r.map((e) => t(e)));
662
+ for (let e = 0; e < r.length; e++) n.set(r[e].id, i[e]);
663
+ return n;
664
+ }
665
+ async function ut(e, t) {
666
+ let n = /* @__PURE__ */ new Map(), r = [];
667
+ if ($(e.blocks, r), r.length === 0) return n;
668
+ let i;
669
+ try {
670
+ i = await import("./liquid.browser-rubac0VA.js");
671
+ } catch {
672
+ throw Error("[Templatical] customBlocks requires the optional liquidjs package.");
673
+ }
674
+ let o = a(i), s = new Map(t.map((e) => [e.type, e])), c = await Promise.all(r.map(async (e) => {
675
+ let t = s.get(e.customType);
676
+ return t ? String(await o.parseAndRender(t.template, e.fieldValues)) : void 0;
677
+ }));
678
+ for (let e = 0; e < r.length; e++) {
679
+ let t = c[e];
680
+ t !== void 0 && n.set(r[e].id, t);
681
+ }
682
+ return n;
683
+ }
684
+ function $(e, t) {
685
+ for (let n of e) if (ie(n)) t.push(n);
686
+ else if (T(n)) for (let e of n.children) $(e, t);
687
+ else y(n) && $(n.children, t);
688
+ }
689
+ function dt(e, t, n) {
690
+ let r = [];
691
+ if ($(e.blocks, r), r.length === 0) return [];
692
+ let i = /* @__PURE__ */ new Map();
693
+ if (!t) for (let e of r) e.renderedStylesheet && !i.has(e.customType) && i.set(e.customType, e.renderedStylesheet);
694
+ let a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), s = [];
695
+ for (let e of r) {
696
+ if (a.has(e.customType)) continue;
697
+ a.add(e.customType);
698
+ let r = n?.get(e.customType), c = t ? t(e.customType) : r ? r.stylesheet : i.get(e.customType);
699
+ if (!c) continue;
700
+ let l = c.trim();
701
+ l === "" || o.has(l) || (o.add(l), s.push(l));
702
+ }
703
+ return s;
704
+ }
705
+ function ft(e) {
706
+ return e.length === 0 ? "" : e.map((e) => `\n <mj-style>\n${e}\n </mj-style>`).join("");
707
+ }
708
+ export { Y as BUTTON_FULL_WIDTH_CSS_CLASS, D as DEFAULT_SOCIAL_ICONS_BASE_URL, G as RICH_TEXT_CSS_CLASS, O as RenderContext, ue as UNRENDERABLE_MARKER_PREFIX, C as convertMergeTagsToValues, M as escapeAttr, j as escapeHtml, H as fluidOnMobileAttr, I as getCssClassAttr, le as getCssClasses, Ke as getWidthPercentages, qe as getWidthPixels, F as isHiddenOnAll, Z as renderBlock, tt as renderToMjml, L as renderUnrenderableBlock, q as resolveParagraphGap, K as richTextGapClass, R as toPaddingString };
709
+
710
+ //# sourceMappingURL=src-Bfj1jHnn.js.map