@templatical/editor 0.48.0 → 0.50.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 (396) hide show
  1. package/README.md +4 -2
  2. package/dist/AiAltTextPopover-BZQ95GXL.js +106 -0
  3. package/dist/AiAltTextReview-DoBEudnE.js +206 -0
  4. package/dist/AiChatPanel-Bs6sES3b.js +550 -0
  5. package/dist/AiHeaderMenu-BEaTazx4.js +36 -0
  6. package/dist/AiPanels-CfN7A-ZA.js +33 -0
  7. package/dist/AiRewriteMenu-C3ZfDDYy.js +276 -0
  8. package/dist/{BlockIssueBadge-BShkuJis.js → BlockIssueBadge-CKwZ1Vgn.js} +11 -11
  9. package/dist/{BlockPreviewCanvas-tzAtDkXH.js → BlockPreviewCanvas-BXNLLLYi.js} +33 -33
  10. package/dist/CloudHeaderExtras-CsJMEiyN.js +23 -0
  11. package/dist/CloudPanels-B4F5m7vy.js +168 -0
  12. package/dist/CollaborationNotices-CNuDp7Y2.js +76 -0
  13. package/dist/CollaboratorBar-BtHPiuHq.js +123 -0
  14. package/dist/{CommentsPanel-DiWzYtnZ.js → CommentsPanel-CyCM-BvT.js} +4 -4
  15. package/dist/CommentsSidebar-Ca3DyFOX.js +500 -0
  16. package/dist/{cdn/chunks/CountdownBlock-Dasj191h.js → CountdownBlock-DR4Xm2-T.js} +24 -26
  17. package/dist/{CountdownToolbar-C4y3Ft7H.js → CountdownToolbar-CEIMPojJ.js} +56 -56
  18. package/dist/IssuesPanel-C8nMUccy.js +360 -0
  19. package/dist/{LoadingTrack-6XsqodoY.js → LoadingTrack-B0RKQWq3.js} +2 -2
  20. package/dist/{LogicTagInsertButton-B1_Wy0AN.js → LogicTagInsertButton-CqfU52CO.js} +272 -267
  21. package/dist/{cdn/chunks/MediaEditModal-zXfcArr4.js → MediaEditModal-DHtkZ4OU.js} +202 -186
  22. package/dist/{MediaPanels-9mDBv4aL.js → MediaPanels-CGcOB2pR.js} +4 -4
  23. package/dist/{MergeTagInput-fOewuF27.js → MergeTagInput-YnEkorTZ.js} +26 -26
  24. package/dist/{MergeTagModeToggle-BXamLcv7.js → MergeTagModeToggle-Dhb1DAcQ.js} +40 -40
  25. package/dist/MergeTagTextarea-e4lnwtqZ.js +70 -0
  26. package/dist/ParagraphEditor-B6NK0ytw.js +799 -0
  27. package/dist/{RestoreVersionDialog-BEKXx9xk.js → RestoreVersionDialog-Bq_IGOLJ.js} +22 -22
  28. package/dist/{RichTextEditorContent-D7kp7iig.js → RichTextEditorContent-AOM6fylS.js} +48 -48
  29. package/dist/{SaveBlockDialog-SJu0lecx.js → SaveBlockDialog-C8GngfQx.js} +88 -88
  30. package/dist/{cdn/chunks/SavedBlocksBrowserModal-CtnB58p_.js → SavedBlocksBrowserModal-wnkvxpm_.js} +102 -99
  31. package/dist/{SavedBlocksPanels-Dr5Fxx9Z.js → SavedBlocksPanels-C2s3q0pJ.js} +9 -9
  32. package/dist/{SavedBlocksPickBar-DnEWBZJy.js → SavedBlocksPickBar-BjcTiV87.js} +14 -14
  33. package/dist/TemplateSettings-BVBWpiDU.js +237 -0
  34. package/dist/{TestEmailModal-CbRY8HQx.js → TestEmailModal-SyhO9bn3.js} +57 -57
  35. package/dist/{TestEmailPanel-NAOmt3xi.js → TestEmailPanel-BDd2Rtav.js} +4 -4
  36. package/dist/{TitleEditor-Cc3DHbuN.js → TitleEditor-pxD53y_l.js} +75 -75
  37. package/dist/ToggleSwitch-D51U9cmR.js +37 -0
  38. package/dist/Toolbar-CZSPZYbj.js +3153 -0
  39. package/dist/{TplModal-Bz4-IZ9R.js → TplModal-DCzBzicE.js} +19 -19
  40. package/dist/{VersionHistoryMenu-CjV1d1zk.js → VersionHistoryMenu-BQeWPT85.js} +35 -35
  41. package/dist/{VersionHistoryPanels-BtwxrKJn.js → VersionHistoryPanels-BBm7YbRQ.js} +5 -5
  42. package/dist/{VersionPreviewBanner-BLAei1kj.js → VersionPreviewBanner-DUGF0tUJ.js} +10 -10
  43. package/dist/WrapperBlock-BO619LAb.js +45 -0
  44. package/dist/aiErrors-D5UOoYOt.js +41 -0
  45. package/dist/aiImageContext-BH4Ss1h3.js +48 -0
  46. package/dist/aiRewritePreview-DLGM05Ge.js +44 -0
  47. package/dist/{blockTypeIcons-CEDZytqP.js → blockTypeIcons-NzaYvAI4.js} +15 -14
  48. package/dist/bundle-stats.json +8 -8
  49. package/dist/{cdn/chunks/ca-CbNzJM3I.js → ca-C7mTzW1r.js} +147 -8
  50. package/dist/cdn/chunks/AiAltTextPopover-CQu0Q_ZX.js +107 -0
  51. package/dist/cdn/chunks/AiAltTextPopover-CQu0Q_ZX.js.map +1 -0
  52. package/dist/cdn/chunks/AiAltTextReview-CI2HbWfn.js +207 -0
  53. package/dist/cdn/chunks/AiAltTextReview-CI2HbWfn.js.map +1 -0
  54. package/dist/cdn/chunks/AiChatPanel-BYqn1bKu.js +476 -0
  55. package/dist/cdn/chunks/AiChatPanel-BYqn1bKu.js.map +1 -0
  56. package/dist/cdn/chunks/AiHeaderMenu-oldAAFyL.js +37 -0
  57. package/dist/cdn/chunks/AiHeaderMenu-oldAAFyL.js.map +1 -0
  58. package/dist/cdn/chunks/AiPanels-CIFKQv8Y.js +34 -0
  59. package/dist/cdn/chunks/AiPanels-CIFKQv8Y.js.map +1 -0
  60. package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js +208 -0
  61. package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js.map +1 -0
  62. package/dist/cdn/chunks/{BlockIssueBadge-C7sdnkrF.js → BlockIssueBadge-DAn2vsMJ.js} +13 -13
  63. package/dist/cdn/chunks/{BlockIssueBadge-C7sdnkrF.js.map → BlockIssueBadge-DAn2vsMJ.js.map} +1 -1
  64. package/dist/cdn/chunks/{BlockPreviewCanvas-vK5tBazr.js → BlockPreviewCanvas-D0--EQkP.js} +39 -39
  65. package/dist/cdn/chunks/{BlockPreviewCanvas-vK5tBazr.js.map → BlockPreviewCanvas-D0--EQkP.js.map} +1 -1
  66. package/dist/cdn/chunks/CloudHeaderExtras-DaUU8P8R.js +25 -0
  67. package/dist/cdn/chunks/CloudHeaderExtras-DaUU8P8R.js.map +1 -0
  68. package/dist/cdn/chunks/{CloudPanels-awqHfJqC.js → CloudPanels-C3jsxo_f.js} +52 -100
  69. package/dist/cdn/chunks/CloudPanels-C3jsxo_f.js.map +1 -0
  70. package/dist/cdn/chunks/CollaborationNotices-DjRI8gvs.js +78 -0
  71. package/dist/cdn/chunks/CollaborationNotices-DjRI8gvs.js.map +1 -0
  72. package/dist/cdn/chunks/CollaboratorBar-Dfzm6A9A.js +72 -0
  73. package/dist/cdn/chunks/CollaboratorBar-Dfzm6A9A.js.map +1 -0
  74. package/dist/cdn/chunks/CommentsPanel-CSO79OeX.js +20 -0
  75. package/dist/cdn/chunks/{CommentsPanel-CbzxwsyI.js.map → CommentsPanel-CSO79OeX.js.map} +1 -1
  76. package/dist/cdn/chunks/CommentsSidebar-CCvplq1Z.js +470 -0
  77. package/dist/cdn/chunks/{CommentsSidebar-DWPHZuQm.js.map → CommentsSidebar-CCvplq1Z.js.map} +1 -1
  78. package/dist/{CountdownBlock-zx39Dyby.js → cdn/chunks/CountdownBlock-C6USdwk3.js} +19 -17
  79. package/dist/cdn/chunks/{CountdownBlock-Dasj191h.js.map → CountdownBlock-C6USdwk3.js.map} +1 -1
  80. package/dist/cdn/chunks/{CountdownToolbar-Cqg8FUH-.js → CountdownToolbar-Cjud2Tos.js} +71 -71
  81. package/dist/cdn/chunks/{CountdownToolbar-Cqg8FUH-.js.map → CountdownToolbar-Cjud2Tos.js.map} +1 -1
  82. package/dist/cdn/chunks/IssuesPanel-BaWHPDxZ.js +340 -0
  83. package/dist/cdn/chunks/IssuesPanel-BaWHPDxZ.js.map +1 -0
  84. package/dist/cdn/chunks/{LoadingTrack-DbH97JR9.js → LoadingTrack-BIcL4NiY.js} +2 -2
  85. package/dist/cdn/chunks/{LoadingTrack-DbH97JR9.js.map → LoadingTrack-BIcL4NiY.js.map} +1 -1
  86. package/dist/cdn/chunks/{LogicTagInsertButton-BMB9vShs.js → LogicTagInsertButton-CsL2JDOG.js} +374 -369
  87. package/dist/cdn/chunks/LogicTagInsertButton-CsL2JDOG.js.map +1 -0
  88. package/dist/{MediaEditModal-ByOvznRC.js → cdn/chunks/MediaEditModal-BuHCiyMu.js} +544 -560
  89. package/dist/cdn/chunks/MediaEditModal-BuHCiyMu.js.map +1 -0
  90. package/dist/cdn/chunks/MediaPanels-DAgUf_T1.js +45 -0
  91. package/dist/cdn/chunks/{MediaPanels-Cp4XB_dH.js.map → MediaPanels-DAgUf_T1.js.map} +1 -1
  92. package/dist/cdn/chunks/{MergeTagInput-DLqrA9co.js → MergeTagInput-C8U-7LxL.js} +34 -34
  93. package/dist/cdn/chunks/{MergeTagInput-DLqrA9co.js.map → MergeTagInput-C8U-7LxL.js.map} +1 -1
  94. package/dist/cdn/chunks/{MergeTagModeToggle-BRiJzzn5.js → MergeTagModeToggle-Mm-p0A52.js} +41 -41
  95. package/dist/cdn/chunks/{MergeTagModeToggle-BRiJzzn5.js.map → MergeTagModeToggle-Mm-p0A52.js.map} +1 -1
  96. package/dist/cdn/chunks/MergeTagTextarea-DuLScsWM.js +72 -0
  97. package/dist/cdn/chunks/MergeTagTextarea-DuLScsWM.js.map +1 -0
  98. package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js +634 -0
  99. package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js.map +1 -0
  100. package/dist/cdn/chunks/{RestoreVersionDialog-BgR6RXSb.js → RestoreVersionDialog-CdA5osuA.js} +26 -26
  101. package/dist/cdn/chunks/{RestoreVersionDialog-BgR6RXSb.js.map → RestoreVersionDialog-CdA5osuA.js.map} +1 -1
  102. package/dist/cdn/chunks/{RichTextEditorContent-C4DMAn0g.js → RichTextEditorContent-Q1d2xqBT.js} +46 -46
  103. package/dist/cdn/chunks/{RichTextEditorContent-C4DMAn0g.js.map → RichTextEditorContent-Q1d2xqBT.js.map} +1 -1
  104. package/dist/cdn/chunks/{SaveBlockDialog-BaIsQd09.js → SaveBlockDialog-CijargAy.js} +78 -78
  105. package/dist/cdn/chunks/{SaveBlockDialog-BaIsQd09.js.map → SaveBlockDialog-CijargAy.js.map} +1 -1
  106. package/dist/cdn/chunks/SavedBlocksBrowserModal-DtOz_X5S.js +357 -0
  107. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CtnB58p_.js.map → SavedBlocksBrowserModal-DtOz_X5S.js.map} +1 -1
  108. package/dist/cdn/chunks/SavedBlocksPanels-BowyED5h.js +38 -0
  109. package/dist/cdn/chunks/{SavedBlocksPanels-BhEOMzEQ.js.map → SavedBlocksPanels-BowyED5h.js.map} +1 -1
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-CcdqTEIp.js → SavedBlocksPickBar-BPRaJBv3.js} +19 -19
  111. package/dist/cdn/chunks/{SavedBlocksPickBar-CcdqTEIp.js.map → SavedBlocksPickBar-BPRaJBv3.js.map} +1 -1
  112. package/dist/cdn/chunks/TemplateSettings-ByZeBO34.js +209 -0
  113. package/dist/cdn/chunks/{TemplateSettings-BkkWTDHD.js.map → TemplateSettings-ByZeBO34.js.map} +1 -1
  114. package/dist/cdn/chunks/{TestEmailModal-V5mwHsUV.js → TestEmailModal-BUVTj3Ic.js} +54 -54
  115. package/dist/cdn/chunks/{TestEmailModal-V5mwHsUV.js.map → TestEmailModal-BUVTj3Ic.js.map} +1 -1
  116. package/dist/cdn/chunks/TestEmailPanel-BxutYoWg.js +35 -0
  117. package/dist/cdn/chunks/{TestEmailPanel-DxrKuctP.js.map → TestEmailPanel-BxutYoWg.js.map} +1 -1
  118. package/dist/cdn/chunks/TitleEditor-Ccv6uoTz.js +199 -0
  119. package/dist/cdn/chunks/{TitleEditor-CsZiG3TT.js.map → TitleEditor-Ccv6uoTz.js.map} +1 -1
  120. package/dist/cdn/chunks/ToggleSwitch-Ctdmj621.js +39 -0
  121. package/dist/cdn/chunks/ToggleSwitch-Ctdmj621.js.map +1 -0
  122. package/dist/cdn/chunks/{Toolbar-C_x2TfFk.js → Toolbar-DoprRgTn.js} +1097 -1101
  123. package/dist/cdn/chunks/Toolbar-DoprRgTn.js.map +1 -0
  124. package/dist/cdn/chunks/{TplModal-DC_eodTV.js → TplModal-BXQzmsJX.js} +21 -21
  125. package/dist/cdn/chunks/{TplModal-DC_eodTV.js.map → TplModal-BXQzmsJX.js.map} +1 -1
  126. package/dist/cdn/chunks/{VersionHistoryMenu-DXnM5Df2.js → VersionHistoryMenu-BF2fNCvq.js} +41 -41
  127. package/dist/cdn/chunks/{VersionHistoryMenu-DXnM5Df2.js.map → VersionHistoryMenu-BF2fNCvq.js.map} +1 -1
  128. package/dist/cdn/chunks/VersionHistoryPanels-Dal0Uk69.js +48 -0
  129. package/dist/cdn/chunks/{VersionHistoryPanels-DXSqmaLS.js.map → VersionHistoryPanels-Dal0Uk69.js.map} +1 -1
  130. package/dist/cdn/chunks/{VersionPreviewBanner-DKyN6BhO.js → VersionPreviewBanner-BaGcn-b1.js} +13 -13
  131. package/dist/cdn/chunks/{VersionPreviewBanner-DKyN6BhO.js.map → VersionPreviewBanner-BaGcn-b1.js.map} +1 -1
  132. package/dist/cdn/chunks/WrapperBlock-DkQJtLz0.js +47 -0
  133. package/dist/cdn/chunks/{WrapperBlock-gG_Bleug.js.map → WrapperBlock-DkQJtLz0.js.map} +1 -1
  134. package/dist/cdn/chunks/aiErrors-D5UOoYOt.js +43 -0
  135. package/dist/cdn/chunks/aiErrors-D5UOoYOt.js.map +1 -0
  136. package/dist/cdn/chunks/aiImageContext-BH4Ss1h3.js +50 -0
  137. package/dist/cdn/chunks/aiImageContext-BH4Ss1h3.js.map +1 -0
  138. package/dist/cdn/chunks/aiRewritePreview-DLGM05Ge.js +46 -0
  139. package/dist/cdn/chunks/aiRewritePreview-DLGM05Ge.js.map +1 -0
  140. package/dist/cdn/chunks/blockTypeIcons-ikZAmd6U.js +22 -0
  141. package/dist/cdn/chunks/{blockTypeIcons-HrMJDfVg.js.map → blockTypeIcons-ikZAmd6U.js.map} +1 -1
  142. package/dist/{ca-CbNzJM3I.js → cdn/chunks/ca-C7mTzW1r.js} +149 -6
  143. package/dist/cdn/chunks/ca-C7mTzW1r.js.map +1 -0
  144. package/dist/cdn/chunks/createCloudRuntime-DpBWhrv3.js +1408 -0
  145. package/dist/cdn/chunks/createCloudRuntime-DpBWhrv3.js.map +1 -0
  146. package/dist/cdn/chunks/de-DBOTcDj2.js +22 -0
  147. package/dist/cdn/chunks/de-DBOTcDj2.js.map +1 -0
  148. package/dist/{de-DMquBpZM.js → cdn/chunks/de-DNuYQTmS.js} +149 -6
  149. package/dist/cdn/chunks/de-DNuYQTmS.js.map +1 -0
  150. package/dist/{dist-CUWI-IvA.js → cdn/chunks/dist-Bo8Thh8v.js} +60 -58
  151. package/dist/cdn/chunks/{dist-CjL6JHML.js.map → dist-Bo8Thh8v.js.map} +1 -1
  152. package/dist/cdn/chunks/dist-S-rLGqax.js +406 -0
  153. package/dist/cdn/chunks/{dist-MNQYSEWU.js.map → dist-S-rLGqax.js.map} +1 -1
  154. package/dist/cdn/chunks/{draggable-DrsNwZuB.js → draggable-DZ0gwUJ6.js} +1359 -1266
  155. package/dist/cdn/chunks/draggable-DZ0gwUJ6.js.map +1 -0
  156. package/dist/cdn/chunks/{editor-modal-vEEmZ8Tu.js → editor-modal-CI6EfeMd.js} +881 -881
  157. package/dist/cdn/chunks/{editor-modal-vEEmZ8Tu.js.map → editor-modal-CI6EfeMd.js.map} +1 -1
  158. package/dist/cdn/chunks/en-CDhWRrF_.js +22 -0
  159. package/dist/cdn/chunks/en-CDhWRrF_.js.map +1 -0
  160. package/dist/{en-C8Mp71sO.js → cdn/chunks/en-CW71OK66.js} +149 -6
  161. package/dist/cdn/chunks/en-CW71OK66.js.map +1 -0
  162. package/dist/cdn/chunks/en-ifvu6oPv.js +1 -0
  163. package/dist/{es-Byq4tthI.js → cdn/chunks/es-DdK7zQfi.js} +149 -6
  164. package/dist/cdn/chunks/es-DdK7zQfi.js.map +1 -0
  165. package/dist/cdn/chunks/{extensions-hJ9VqzDc.js → extensions-taJTZlLK.js} +71 -71
  166. package/dist/cdn/chunks/{extensions-hJ9VqzDc.js.map → extensions-taJTZlLK.js.map} +1 -1
  167. package/dist/{fr-B3j35HEw.js → cdn/chunks/fr-Dz5Bgb7-.js} +149 -6
  168. package/dist/cdn/chunks/fr-Dz5Bgb7-.js.map +1 -0
  169. package/dist/cdn/chunks/{icons-aTYwH5-g.js → icons-DNX6StSs.js} +183 -150
  170. package/dist/cdn/chunks/icons-DNX6StSs.js.map +1 -0
  171. package/dist/{ja-D7txAuGS.js → cdn/chunks/ja-Di-zJiT8.js} +149 -6
  172. package/dist/cdn/chunks/ja-Di-zJiT8.js.map +1 -0
  173. package/dist/cdn/chunks/keys-BTpmg2Tt.js +12 -0
  174. package/dist/cdn/chunks/keys-BTpmg2Tt.js.map +1 -0
  175. package/dist/{logger-BBlvSn6q.js → cdn/chunks/logger-Tj0RPskW.js} +7 -1
  176. package/dist/cdn/chunks/logger-Tj0RPskW.js.map +1 -0
  177. package/dist/{nl-ClJ3BY3F.js → cdn/chunks/nl-CvVuHYFL.js} +149 -6
  178. package/dist/cdn/chunks/nl-CvVuHYFL.js.map +1 -0
  179. package/dist/cdn/chunks/normalizeMergeTagMarkup-DyePIGqu.js +199 -0
  180. package/dist/cdn/chunks/normalizeMergeTagMarkup-DyePIGqu.js.map +1 -0
  181. package/dist/cdn/chunks/{preRenderCustomBlocks-ByfuSjtL.js → preRenderCustomBlocks-Dc-QLntG.js} +4 -4
  182. package/dist/cdn/chunks/{preRenderCustomBlocks-ByfuSjtL.js.map → preRenderCustomBlocks-Dc-QLntG.js.map} +1 -1
  183. package/dist/cdn/chunks/pt-BR-CHM-ZKvE.js +22 -0
  184. package/dist/cdn/chunks/pt-BR-CHM-ZKvE.js.map +1 -0
  185. package/dist/{pt-BR-DibcXcmv.js → cdn/chunks/pt-BR-ZhO4vgyq.js} +149 -6
  186. package/dist/cdn/chunks/pt-BR-ZhO4vgyq.js.map +1 -0
  187. package/dist/cdn/chunks/{pusher-C8DeiO2X.js → pusher-Cs4GGEtd.js} +2 -2
  188. package/dist/cdn/chunks/pusher-Cs4GGEtd.js.map +1 -0
  189. package/dist/cdn/chunks/{rolldown-runtime-B0aSnxlc.js → rolldown-runtime-Y_bBpyJl.js} +1 -1
  190. package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js +62 -0
  191. package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js.map +1 -0
  192. package/dist/cdn/chunks/socialIcons-BBvsTwCV.js +2032 -0
  193. package/dist/cdn/chunks/socialIcons-BBvsTwCV.js.map +1 -0
  194. package/dist/cdn/chunks/{src-DYCDeBDM.js → src-BNFnxfrA.js} +694 -329
  195. package/dist/cdn/chunks/src-BNFnxfrA.js.map +1 -0
  196. package/dist/cdn/chunks/{src-dZ4D_tuP.js → src-BcTUmgLe.js} +181 -181
  197. package/dist/cdn/chunks/src-BcTUmgLe.js.map +1 -0
  198. package/dist/cdn/chunks/src-Bs_yxk3h.js +4392 -0
  199. package/dist/cdn/chunks/src-Bs_yxk3h.js.map +1 -0
  200. package/dist/cdn/chunks/{styleConstants-D1Jz-TFU.js → styleConstants-v1dNKgJf.js} +2 -4
  201. package/dist/cdn/chunks/{styleConstants-D1Jz-TFU.js.map → styleConstants-v1dNKgJf.js.map} +1 -1
  202. package/dist/cdn/chunks/{tiptap-BPigZk5G.js → tiptap-CtVrAViq.js} +44 -44
  203. package/dist/cdn/chunks/tiptap-CtVrAViq.js.map +1 -0
  204. package/dist/cdn/chunks/{useCloudI18n-BBF4waXO.js → useCloudI18n-AVXhzbhQ.js} +4 -4
  205. package/dist/cdn/chunks/{useCloudI18n-BBF4waXO.js.map → useCloudI18n-AVXhzbhQ.js.map} +1 -1
  206. package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js +2586 -0
  207. package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js.map +1 -0
  208. package/dist/cdn/chunks/useEditorRoot-CR5GjJD6.js +10 -0
  209. package/dist/cdn/chunks/{useEditorRoot-CTc6O8al.js.map → useEditorRoot-CR5GjJD6.js.map} +1 -1
  210. package/dist/cdn/chunks/{useI18n-DUlyyIJJ.js → useI18n-CbVubQhM.js} +3 -3
  211. package/dist/cdn/chunks/{useI18n-DUlyyIJJ.js.map → useI18n-CbVubQhM.js.map} +1 -1
  212. package/dist/cdn/chunks/{useLogicTag-HsyUCQtl.js → useLogicTag-B49Nc53Y.js} +5 -5
  213. package/dist/cdn/chunks/{useLogicTag-HsyUCQtl.js.map → useLogicTag-B49Nc53Y.js.map} +1 -1
  214. package/dist/cdn/chunks/{useMergeTag-Dg9pE85U.js → useMergeTag-B0KryMj8.js} +7 -7
  215. package/dist/cdn/chunks/{useMergeTag-Dg9pE85U.js.map → useMergeTag-B0KryMj8.js.map} +1 -1
  216. package/dist/cdn/chunks/{usePopoverPosition-IbaW6-Ao.js → usePopoverPosition-C829ps5i.js} +4 -4
  217. package/dist/cdn/chunks/{usePopoverPosition-IbaW6-Ao.js.map → usePopoverPosition-C829ps5i.js.map} +1 -1
  218. package/dist/cdn/chunks/useScrollToBlock-CAwvulog.js +51 -0
  219. package/dist/cdn/chunks/useScrollToBlock-CAwvulog.js.map +1 -0
  220. package/dist/cdn/chunks/{withCurrentFont-oLcATrQ8.js → withCurrentFont-DFPXeVfG.js} +2 -2
  221. package/dist/cdn/chunks/{withCurrentFont-oLcATrQ8.js.map → withCurrentFont-DFPXeVfG.js.map} +1 -1
  222. package/dist/cdn/editor.css +1 -1
  223. package/dist/cdn/editor.js +2235 -1311
  224. package/dist/cdn/editor.js.map +1 -1
  225. package/dist/{check-ClwqRMgv.js → check-yYsp5Xpk.js} +1 -1
  226. package/dist/{chevron-down-te6qn-zE.js → chevron-down-DTmD06_j.js} +1 -1
  227. package/dist/{chevron-right-W2hbH1FM.js → chevron-right-BSeYZOxc.js} +1 -1
  228. package/dist/{chevron-up-Bf5Zo7o4.js → chevron-up-BOApwrxi.js} +1 -1
  229. package/dist/{circle-alert-CIEGV5DN.js → circle-alert-BMszY8im.js} +1 -1
  230. package/dist/{clock-Y4cx0gkJ.js → clock-HADxnl6-.js} +1 -1
  231. package/dist/createCloudRuntime-DVQI_ReU.js +1379 -0
  232. package/dist/{createLucideIcon-CYHXK9hn.js → createLucideIcon-0lYYH3EW.js} +6 -6
  233. package/dist/de-DBOTcDj2.js +20 -0
  234. package/dist/{cdn/chunks/de-DMquBpZM.js → de-DNuYQTmS.js} +147 -8
  235. package/dist/{cdn/chunks/dist-CjL6JHML.js → dist-C7EtxNCb.js} +49 -51
  236. package/dist/{dist-DuufrR8O.js → dist-C_dV9QAx.js} +130 -130
  237. package/dist/{cdn/chunks/dist-MNQYSEWU.js → dist-DI4_YSnG.js} +111 -110
  238. package/dist/{dist-tsmnQugO.js → dist-DtOF3bDW.js} +648 -294
  239. package/dist/{editor-modal-AlVLkU91.js → editor-modal-Bzhl-PgI.js} +832 -834
  240. package/dist/en-CDhWRrF_.js +20 -0
  241. package/dist/{cdn/chunks/en-C8Mp71sO.js → en-CW71OK66.js} +147 -8
  242. package/dist/en-DwV15ltA.js +1 -0
  243. package/dist/{cdn/chunks/es-Byq4tthI.js → es-DdK7zQfi.js} +147 -8
  244. package/dist/{extensions-pjO8VGkM.js → extensions-CdyweA50.js} +54 -54
  245. package/dist/{eye-Ddnz8nnm.js → eye-DWkSvYpj.js} +1 -1
  246. package/dist/{cdn/chunks/fr-B3j35HEw.js → fr-Dz5Bgb7-.js} +147 -8
  247. package/dist/image-DesWjcZ4.js +28 -0
  248. package/dist/index.d.ts +640 -48
  249. package/dist/{info-DXLmzoeY.js → info-ClWJGoZy.js} +1 -1
  250. package/dist/{cdn/chunks/ja-D7txAuGS.js → ja-Di-zJiT8.js} +147 -8
  251. package/dist/keys-Zd9KWRD1.js +10 -0
  252. package/dist/{link-Cel46wgo.js → link-BqRicFTA.js} +1 -1
  253. package/dist/{list-Cl0GwiV9.js → list-bojQr9bn.js} +1 -1
  254. package/dist/{loader-circle-uAwpvfys.js → loader-circle-B2B8LbUu.js} +1 -1
  255. package/dist/{cdn/chunks/logger-ByvdoAwq.js → logger-k9Nbj3Cp.js} +5 -3
  256. package/dist/{message-circle-DWU1pTM_.js → message-circle-BEuiNsyZ.js} +1 -1
  257. package/dist/{cdn/chunks/nl-ClJ3BY3F.js → nl-CvVuHYFL.js} +147 -8
  258. package/dist/normalizeMergeTagMarkup-P6SUBuPv.js +197 -0
  259. package/dist/{package-CbyG_yU_.js → package-DCROB4aM.js} +1 -1
  260. package/dist/{pencil-BzoDcwKu.js → pencil-CEotCKbf.js} +1 -1
  261. package/dist/{preRenderCustomBlocks-DMP5RuHl.js → preRenderCustomBlocks-D8rr61_z.js} +3 -3
  262. package/dist/pt-BR-CHM-ZKvE.js +20 -0
  263. package/dist/{cdn/chunks/pt-BR-DibcXcmv.js → pt-BR-ZhO4vgyq.js} +147 -8
  264. package/dist/{refresh-cw-9WinWixo.js → refresh-cw-C6M2mHNC.js} +12 -2
  265. package/dist/{runtime-dom.esm-bundler-lFF-QG3j.js → runtime-dom.esm-bundler-B8WCZWUm.js} +134 -134
  266. package/dist/sanitizeRichTextHtml-DeISfLFr.js +60 -0
  267. package/dist/{search-CqgGq1gG.js → search-Cy99zPYf.js} +1 -1
  268. package/dist/{send-Ceo3c9Db.js → send-BDLJFsf3.js} +1 -1
  269. package/dist/{smartphone-CcLaCpGK.js → smartphone-CVvQaNA4.js} +1 -1
  270. package/dist/socialIcons-Dd-jRiVe.js +2086 -0
  271. package/dist/{sparkles-Do9XjAuT.js → sparkles-Ce0Qz0ox.js} +1 -1
  272. package/dist/square-BWlolnXe.js +15 -0
  273. package/dist/style.css +1 -1
  274. package/dist/{styleConstants-D1Jz-TFU.js → styleConstants-v1dNKgJf.js} +1 -3
  275. package/dist/templatical-editor.js +2272 -1327
  276. package/dist/{text-align-start-DvzC0HQA.js → text-align-start-D1V5gPTy.js} +1 -1
  277. package/dist/{trash-vlINTx32.js → trash-CZfiUFmw.js} +1 -1
  278. package/dist/{triangle-alert-MRYSJ9T2.js → triangle-alert-CFDzyFC7.js} +1 -1
  279. package/dist/upload-BJfvdIrD.js +36 -0
  280. package/dist/{useCloudI18n-Nwqo7pI_.js → useCloudI18n-Dcjua65H.js} +5 -5
  281. package/dist/{useEditorCore-PvErWWsp.js → useEditorCore-BTLeAVlM.js} +1534 -1549
  282. package/dist/{useEditorRoot-BD3piYtD.js → useEditorRoot-DUy67lJu.js} +2 -2
  283. package/dist/{useI18n-CxVEpurs.js → useI18n-BdoY7xDE.js} +4 -4
  284. package/dist/{useLogicTag-BHn67tDd.js → useLogicTag-DKLZ1T9H.js} +3 -3
  285. package/dist/{useMergeTag-CRkm5Ig6.js → useMergeTag-Bhdx7AKk.js} +5 -5
  286. package/dist/{usePopoverPosition-CwnH1o5g.js → usePopoverPosition-BZea45XK.js} +2 -2
  287. package/dist/useScrollToBlock-FmNMALM_.js +74 -0
  288. package/dist/{vue.runtime.esm-bundler-CAzmrXdD.js → vue.runtime.esm-bundler-DgFJ6GPG.js} +1182 -1087
  289. package/dist/{withCurrentFont-CxRGeHO3.js → withCurrentFont-BATJHNve.js} +1 -1
  290. package/dist/{x-Cd6SFw8r.js → x-CZ0Js0hA.js} +1 -1
  291. package/package.json +17 -15
  292. package/dist/AiChatSidebar-DxPHFNoT.js +0 -230
  293. package/dist/AiFeatureMenu-C8GVqu1d.js +0 -57
  294. package/dist/CloudHeaderExtras-CUSftQdm.js +0 -59
  295. package/dist/CloudPanels-Dgw7tb4R.js +0 -216
  296. package/dist/CollaboratorBar-5rfopCPx.js +0 -103
  297. package/dist/CommentsSidebar-BOqj16Al.js +0 -500
  298. package/dist/DesignReferenceSidebar-BWAi3eQQ.js +0 -279
  299. package/dist/IssuesPanel-C-x3I012.js +0 -117
  300. package/dist/ParagraphEditor-BVjOwwHx.js +0 -797
  301. package/dist/SavedBlocksBrowserModal-DbmIS5uK.js +0 -360
  302. package/dist/TemplateScoringPanel-ynbGl-sr.js +0 -273
  303. package/dist/TemplateSettings-Bi01S3H3.js +0 -246
  304. package/dist/ToggleSwitch-Ozc7YU38.js +0 -102
  305. package/dist/Toolbar-B-2lO0I8.js +0 -3156
  306. package/dist/WrapperBlock-D0qgNqjD.js +0 -45
  307. package/dist/cdn/chunks/AiChatSidebar-Dk0rJBQN.js +0 -205
  308. package/dist/cdn/chunks/AiChatSidebar-Dk0rJBQN.js.map +0 -1
  309. package/dist/cdn/chunks/AiFeatureMenu-B7b0w8ZS.js +0 -57
  310. package/dist/cdn/chunks/AiFeatureMenu-B7b0w8ZS.js.map +0 -1
  311. package/dist/cdn/chunks/CloudHeaderExtras-B4fhuwc_.js +0 -60
  312. package/dist/cdn/chunks/CloudHeaderExtras-B4fhuwc_.js.map +0 -1
  313. package/dist/cdn/chunks/CloudPanels-awqHfJqC.js.map +0 -1
  314. package/dist/cdn/chunks/CollaboratorBar-CS0ivqkr.js +0 -52
  315. package/dist/cdn/chunks/CollaboratorBar-CS0ivqkr.js.map +0 -1
  316. package/dist/cdn/chunks/CommentsPanel-CbzxwsyI.js +0 -20
  317. package/dist/cdn/chunks/CommentsSidebar-DWPHZuQm.js +0 -470
  318. package/dist/cdn/chunks/DesignReferenceSidebar-BW9cHnA9.js +0 -229
  319. package/dist/cdn/chunks/DesignReferenceSidebar-BW9cHnA9.js.map +0 -1
  320. package/dist/cdn/chunks/IssuesPanel-cXf9ywA4.js +0 -100
  321. package/dist/cdn/chunks/IssuesPanel-cXf9ywA4.js.map +0 -1
  322. package/dist/cdn/chunks/LogicTagInsertButton-BMB9vShs.js.map +0 -1
  323. package/dist/cdn/chunks/MediaEditModal-zXfcArr4.js.map +0 -1
  324. package/dist/cdn/chunks/MediaPanels-Cp4XB_dH.js +0 -45
  325. package/dist/cdn/chunks/ParagraphEditor-D4aq9eeC.js +0 -632
  326. package/dist/cdn/chunks/ParagraphEditor-D4aq9eeC.js.map +0 -1
  327. package/dist/cdn/chunks/SavedBlocksPanels-BhEOMzEQ.js +0 -38
  328. package/dist/cdn/chunks/TemplateScoringPanel-BrWqJCSP.js +0 -237
  329. package/dist/cdn/chunks/TemplateScoringPanel-BrWqJCSP.js.map +0 -1
  330. package/dist/cdn/chunks/TemplateSettings-BkkWTDHD.js +0 -208
  331. package/dist/cdn/chunks/TestEmailPanel-DxrKuctP.js +0 -35
  332. package/dist/cdn/chunks/TitleEditor-CsZiG3TT.js +0 -199
  333. package/dist/cdn/chunks/ToggleSwitch-BB-bQADJ.js +0 -104
  334. package/dist/cdn/chunks/ToggleSwitch-BB-bQADJ.js.map +0 -1
  335. package/dist/cdn/chunks/Toolbar-C_x2TfFk.js.map +0 -1
  336. package/dist/cdn/chunks/VersionHistoryPanels-DXSqmaLS.js +0 -48
  337. package/dist/cdn/chunks/WrapperBlock-gG_Bleug.js +0 -47
  338. package/dist/cdn/chunks/blockTypeIcons-HrMJDfVg.js +0 -22
  339. package/dist/cdn/chunks/ca-CbNzJM3I.js.map +0 -1
  340. package/dist/cdn/chunks/cloud-BHClP3e2.js +0 -1736
  341. package/dist/cdn/chunks/cloud-BHClP3e2.js.map +0 -1
  342. package/dist/cdn/chunks/createCloudRuntime-Vd0N4elZ.js +0 -400
  343. package/dist/cdn/chunks/createCloudRuntime-Vd0N4elZ.js.map +0 -1
  344. package/dist/cdn/chunks/de-DMquBpZM.js.map +0 -1
  345. package/dist/cdn/chunks/de-mMY5yQJu.js +0 -93
  346. package/dist/cdn/chunks/de-mMY5yQJu.js.map +0 -1
  347. package/dist/cdn/chunks/draggable-DrsNwZuB.js.map +0 -1
  348. package/dist/cdn/chunks/en-C8Mp71sO.js.map +0 -1
  349. package/dist/cdn/chunks/en-ChVeGQBY.js +0 -93
  350. package/dist/cdn/chunks/en-ChVeGQBY.js.map +0 -1
  351. package/dist/cdn/chunks/en-eWpiXyZu.js +0 -1
  352. package/dist/cdn/chunks/es-Byq4tthI.js.map +0 -1
  353. package/dist/cdn/chunks/fr-B3j35HEw.js.map +0 -1
  354. package/dist/cdn/chunks/icons-aTYwH5-g.js.map +0 -1
  355. package/dist/cdn/chunks/ja-D7txAuGS.js.map +0 -1
  356. package/dist/cdn/chunks/keys-HI-INbkz.js +0 -12
  357. package/dist/cdn/chunks/keys-HI-INbkz.js.map +0 -1
  358. package/dist/cdn/chunks/logger-ByvdoAwq.js.map +0 -1
  359. package/dist/cdn/chunks/nl-ClJ3BY3F.js.map +0 -1
  360. package/dist/cdn/chunks/pt-BR-CoCwRUi0.js +0 -93
  361. package/dist/cdn/chunks/pt-BR-CoCwRUi0.js.map +0 -1
  362. package/dist/cdn/chunks/pt-BR-DibcXcmv.js.map +0 -1
  363. package/dist/cdn/chunks/pusher-C8DeiO2X.js.map +0 -1
  364. package/dist/cdn/chunks/socialIcons-C_lnkpG6.js +0 -1279
  365. package/dist/cdn/chunks/socialIcons-C_lnkpG6.js.map +0 -1
  366. package/dist/cdn/chunks/src-DYCDeBDM.js.map +0 -1
  367. package/dist/cdn/chunks/src-DlFlC9Tt.js +0 -1272
  368. package/dist/cdn/chunks/src-DlFlC9Tt.js.map +0 -1
  369. package/dist/cdn/chunks/src-dZ4D_tuP.js.map +0 -1
  370. package/dist/cdn/chunks/timeouts-Cv2jvusx.js +0 -6
  371. package/dist/cdn/chunks/timeouts-Cv2jvusx.js.map +0 -1
  372. package/dist/cdn/chunks/tiptap-BPigZk5G.js.map +0 -1
  373. package/dist/cdn/chunks/useAliveFlag-DCB96vzR.js +0 -12
  374. package/dist/cdn/chunks/useAliveFlag-DCB96vzR.js.map +0 -1
  375. package/dist/cdn/chunks/useEditorCore-Bb2UcB20.js +0 -2602
  376. package/dist/cdn/chunks/useEditorCore-Bb2UcB20.js.map +0 -1
  377. package/dist/cdn/chunks/useEditorRoot-CTc6O8al.js +0 -10
  378. package/dist/cdn/chunks/useScrollToBlock-uUa601I4.js +0 -21
  379. package/dist/cdn/chunks/useScrollToBlock-uUa601I4.js.map +0 -1
  380. package/dist/cloud-B5xwm_4X.js +0 -1689
  381. package/dist/copy-BEcsAlfB.js +0 -19
  382. package/dist/createCloudRuntime-zNPkF6T9.js +0 -398
  383. package/dist/de-mMY5yQJu.js +0 -91
  384. package/dist/dist-DAAJogrx.js +0 -407
  385. package/dist/en-B0FUfNwz.js +0 -1
  386. package/dist/en-ChVeGQBY.js +0 -91
  387. package/dist/image-up-CM_HC0Dx.js +0 -27
  388. package/dist/keys-BKFq19a2.js +0 -10
  389. package/dist/plus-8cDvoCjZ.js +0 -14
  390. package/dist/pt-BR-CoCwRUi0.js +0 -91
  391. package/dist/shield-check-uDAwur5D.js +0 -14
  392. package/dist/socialIcons-PTiwhLoC.js +0 -1359
  393. package/dist/timeouts-Cv2jvusx.js +0 -4
  394. package/dist/upload-CtNOI6J2.js +0 -21
  395. package/dist/useAliveFlag-Dd06mRxe.js +0 -10
  396. package/dist/useScrollToBlock-CXmcHQQN.js +0 -47
@@ -1,10 +1,10 @@
1
- import { At as e, C as t, D as n, Dt as r, E as i, Ft as a, Mt as o, Nt as s, Pt as c, S as l, St as u, T as d, X as f, _t as p, at as m, b as h, ct as g, dt as _, ft as v, ht as y, it as b, jt as x, mt as S, nt as C, ot as ee, pt as te, rt as ne, st as re, tt as ie, ut as ae, w as oe, x as w } from "./src-DYCDeBDM.js";
1
+ import { $ as e, At as t, Bt as n, C as r, E as i, Ft as a, Ht as o, J as s, Rt as c, S as l, T as u, Tt as d, Ut as f, Vt as p, at as m, b as h, dt as g, ft as _, it as v, lt as y, mt as b, nt as x, ot as ee, pt as te, rt as ne, st as S, tt as re, ut as ie, w as ae, x as oe, y as se, zt as C } from "./src-BNFnxfrA.js";
2
2
  //#endregion
3
3
  //#region ../renderer/src/render-context.ts
4
- var T = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
4
+ var w = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
5
5
  name: "@templatical/renderer",
6
6
  description: "Render Templatical email templates to MJML",
7
- version: "0.48.0",
7
+ version: "0.50.0",
8
8
  bugs: "https://github.com/templatical/sdk/issues",
9
9
  dependencies: { "@templatical/types": "workspace:*" },
10
10
  devDependencies: {
@@ -12,7 +12,7 @@ var T = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
12
12
  "@resvg/resvg-js": "^2.6.2",
13
13
  mjml: "^5.4.1",
14
14
  typescript: "^6.0.3",
15
- vitest: "^5.0.4"
15
+ vitest: "^5.0.5"
16
16
  },
17
17
  exports: { ".": {
18
18
  types: "./dist/index.d.ts",
@@ -43,7 +43,7 @@ var T = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
43
43
  },
44
44
  type: "module",
45
45
  types: "./dist/index.d.ts"
46
- }.version}/assets/social`, E = class e {
46
+ }.version}/assets/social`, T = class e {
47
47
  containerWidth;
48
48
  customFonts;
49
49
  defaultFallbackFont;
@@ -53,14 +53,14 @@ var T = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
53
53
  blockRenderers;
54
54
  contentDirection;
55
55
  contentWidth;
56
- constructor(e, t, n, r, i = /* @__PURE__ */ new Map(), a = T, o = {}, s = "ltr", c) {
56
+ constructor(e, t, n, r, i = /* @__PURE__ */ new Map(), a = w, o = {}, s = "ltr", c) {
57
57
  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;
58
58
  }
59
59
  withContainerWidth(t, n = t) {
60
60
  return new e(t, this.customFonts, this.defaultFallbackFont, this.allowHtmlBlocks, this.customBlockHtml, this.socialIconsBaseUrl, this.blockRenderers, this.contentDirection, n);
61
61
  }
62
62
  resolveFontFamily(e) {
63
- return h(e, {
63
+ return se(e, {
64
64
  customFonts: this.customFonts,
65
65
  defaultFallback: this.defaultFallbackFont
66
66
  });
@@ -68,15 +68,15 @@ var T = `https://cdn.jsdelivr.net/npm/@templatical/renderer@${{
68
68
  };
69
69
  //#endregion
70
70
  //#region ../renderer/src/visibility.ts
71
- function D(e) {
71
+ function E(e) {
72
72
  let t = e.visibility;
73
73
  return t ? !t.desktop && !t.mobile : !1;
74
74
  }
75
- function O(e, t = []) {
76
- let n = [se(e), ...t].filter((e) => e !== "").join(" ");
75
+ function D(e, t = []) {
76
+ let n = [ce(e), ...t].filter((e) => e !== "").join(" ");
77
77
  return n === "" ? "" : ` css-class="${n}"`;
78
78
  }
79
- function se(e) {
79
+ function ce(e) {
80
80
  let t = e.visibility;
81
81
  if (!t) return "";
82
82
  let n = [];
@@ -84,110 +84,110 @@ function se(e) {
84
84
  }
85
85
  //#endregion
86
86
  //#region ../renderer/src/unrenderable.ts
87
- var ce = "templatical:unrenderable-block";
88
- function le(e) {
87
+ var le = "templatical:unrenderable-block";
88
+ function O(e) {
89
89
  return e.replace(/[<>]/g, "").replace(/-{2,}/g, "-");
90
90
  }
91
- function k(e) {
92
- return console.warn(`[Templatical] No renderer for block type "${e.type}" (id: ${e.id}). A placeholder comment was emitted in its place. Pass a \`blockRenderers\` entry for this type to render it.`), `<mj-raw><!-- ${ce} type="${le(e.type)}" id="${le(e.id)}" --></mj-raw>`;
91
+ function ue(e) {
92
+ return console.warn(`[Templatical] No renderer for block type "${e.type}" (id: ${e.id}). A placeholder comment was emitted in its place. Pass a \`blockRenderers\` entry for this type to render it.`), `<mj-raw><!-- ${le} type="${O(e.type)}" id="${O(e.id)}" --></mj-raw>`;
93
93
  }
94
94
  //#endregion
95
95
  //#region ../renderer/src/escape.ts
96
- var A = {
96
+ var k = {
97
97
  "&": "&amp;",
98
98
  "<": "&lt;",
99
99
  ">": "&gt;",
100
100
  "\"": "&quot;",
101
101
  "'": "&#039;"
102
- }, ue = /[&<>"']/g;
102
+ }, A = /[&<>"']/g;
103
103
  function j(e) {
104
- return e === "" ? "" : e.replace(ue, (e) => A[e] ?? e);
104
+ return e === "" ? "" : e.replace(A, (e) => k[e] ?? e);
105
105
  }
106
106
  function M(e) {
107
- return e === "" ? "" : e.replace(ue, (e) => A[e] ?? e);
107
+ return e === "" ? "" : e.replace(A, (e) => k[e] ?? e);
108
108
  }
109
109
  function N(e) {
110
110
  return e === "" ? "" : M(e).replace(/[;{}\r\n]/g, "");
111
111
  }
112
112
  var de = /[&<>"]/g;
113
113
  function P(e) {
114
- return e.replace(de, (e) => A[e] ?? e);
114
+ return e.replace(de, (e) => k[e] ?? e);
115
115
  }
116
116
  function F(e) {
117
- return e === "" ? "" : fe(e, (e) => pe(e, "data-merge-tag") ?? pe(e, "data-logic-merge-tag"));
118
- }
119
- function fe(e, n) {
120
- let r = "", i = 0;
121
- for (; i < e.length;) {
122
- let a = e.indexOf("<span", i);
123
- if (a === -1) {
124
- r += e.substring(i);
117
+ return e === "" ? "" : fe(e, (e) => I(e, "data-merge-tag") ?? I(e, "data-logic-merge-tag"));
118
+ }
119
+ function fe(e, t) {
120
+ let n = "", r = 0;
121
+ for (; r < e.length;) {
122
+ let i = e.indexOf("<span", r);
123
+ if (i === -1) {
124
+ n += e.substring(r);
125
125
  break;
126
126
  }
127
- let o = e[a + 5];
128
- if (o !== ">" && o !== " " && o !== " " && o !== "\n" && o !== "\r" && o !== "/") {
129
- r += e.substring(i, a + 5), i = a + 5;
127
+ let a = e[i + 5];
128
+ if (a !== ">" && a !== " " && a !== " " && a !== "\n" && a !== "\r" && a !== "/") {
129
+ n += e.substring(r, i + 5), r = i + 5;
130
130
  continue;
131
131
  }
132
- let s = t(e, a + 5);
133
- if (s === -1) {
134
- r += e.substring(i);
132
+ let o = l(e, i + 5);
133
+ if (o === -1) {
134
+ n += e.substring(r);
135
135
  break;
136
136
  }
137
- let c = e.indexOf("</span>", s + 1);
138
- if (c === -1) {
139
- r += e.substring(i);
137
+ let s = e.indexOf("</span>", o + 1);
138
+ if (s === -1) {
139
+ n += e.substring(r);
140
140
  break;
141
141
  }
142
- let l = n(e.substring(a + 5, s));
143
- l === null ? (r += e.substring(i, a + 5), i = a + 5) : (r += e.substring(i, a), r += l, i = c + 7);
142
+ let c = t(e.substring(i + 5, o));
143
+ c === null ? (n += e.substring(r, i + 5), r = i + 5) : (n += e.substring(r, i), n += c, r = s + 7);
144
144
  }
145
- return r;
145
+ return n;
146
146
  }
147
- function pe(e, t) {
148
- return oe(e, t);
147
+ function I(e, t) {
148
+ return r(e, t);
149
149
  }
150
150
  //#endregion
151
151
  //#region ../renderer/src/padding.ts
152
- function I(e) {
152
+ function L(e) {
153
153
  return `${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`;
154
154
  }
155
155
  //#endregion
156
156
  //#region ../renderer/src/utils.ts
157
- function L(e, t) {
157
+ function R(e, t) {
158
158
  return e ? ` ${t === "native" ? "background-color" : "container-background-color"}="${e}"` : "";
159
159
  }
160
- function R(e) {
160
+ function z(e) {
161
161
  return typeof e != "number" || !Number.isFinite(e) || e <= 0 ? "" : ` height="${e}px"`;
162
162
  }
163
- function z(e, t) {
164
- let n = (e) => Math.trunc(e ?? 0), r = (e) => s(e) === null ? 0 : Math.trunc(e.width);
163
+ function B(e, t) {
164
+ let n = (e) => Math.trunc(e ?? 0), r = (e) => p(e) === null ? 0 : Math.trunc(e.width);
165
165
  return n(e?.left) + n(e?.right) + r(t?.left) + r(t?.right);
166
166
  }
167
- function B(e, t) {
168
- let n = Math.floor(t.contentWidth) - z(e.styles.padding, e.border);
167
+ function V(e, t) {
168
+ let n = Math.floor(t.contentWidth) - B(e.styles.padding, e.border);
169
169
  return e.width === "full" || e.width >= n ? " fluid-on-mobile=\"true\"" : "";
170
170
  }
171
- function V(e) {
172
- return Object.entries(c(e)).map(([e, t]) => ` ${e}="${N(t)}"`).join("");
173
- }
174
171
  function H(e) {
175
- let t = a(e);
176
- return t === null ? "" : ` border-radius="${t}"`;
172
+ return Object.entries(o(e)).map(([e, t]) => ` ${e}="${N(t)}"`).join("");
177
173
  }
178
174
  function U(e) {
179
- let t = r(e);
175
+ let t = f(e);
176
+ return t === null ? "" : ` border-radius="${t}"`;
177
+ }
178
+ function W(e) {
179
+ let t = a(e);
180
180
  return t === null ? "" : ` background-url="${M(t.url)}" background-size="${t.size}" background-position="${t.position}" background-repeat="${t.repeat}"`;
181
181
  }
182
182
  //#endregion
183
183
  //#region ../renderer/src/rich-text.ts
184
- var W = "tpl-rich-text";
185
- function G(e) {
186
- return `${W}-${e}`;
184
+ var G = "tpl-rich-text";
185
+ function K(e) {
186
+ return `${G}-${e}`;
187
187
  }
188
- function me(e, t = "ltr") {
189
- let n = x, r = `.${W}`, i = [...new Set(e)].sort((e, t) => e - t).flatMap((e) => {
190
- let t = `.${G(e)}`;
188
+ function pe(e, t = "ltr") {
189
+ let n = C, r = `.${G}`, i = [...new Set(e)].sort((e, t) => e - t).flatMap((e) => {
190
+ let t = `.${K(e)}`;
191
191
  return [`${t} p { margin: 0 0 ${e}px; }`, `${t} p:last-child { margin-bottom: 0; }`];
192
192
  }), a = t === "rtl" ? "padding-right" : "padding-left";
193
193
  return [
@@ -196,41 +196,41 @@ function me(e, t = "ltr") {
196
196
  `${r} li { margin: ${n.listItemMarginY}px 0; }`
197
197
  ].join("\n ");
198
198
  }
199
- function K(e) {
200
- return e ?? x.paragraphGap;
199
+ function q(e) {
200
+ return e ?? C.paragraphGap;
201
201
  }
202
- function he(e) {
203
- let t = [x.paragraphGap], n = (e) => {
204
- if (e.type === "paragraph" && t.push(K(e.paragraphSpacing)), g(e)) for (let t of e.children) for (let e of t) n(e);
205
- else if (y(e)) for (let t of e.children) n(t);
202
+ function me(e) {
203
+ let t = [C.paragraphGap], n = (e) => {
204
+ if (e.type === "paragraph" && t.push(q(e.paragraphSpacing)), S(e)) for (let t of e.children) for (let e of t) n(e);
205
+ else if (b(e)) for (let t of e.children) n(t);
206
206
  };
207
207
  for (let t of e) n(t);
208
208
  return t;
209
209
  }
210
210
  //#endregion
211
211
  //#region ../renderer/src/renderers/title.ts
212
- function ge(t, n) {
213
- if (D(t)) return "";
214
- let r = I(t.styles.padding), i = L(t.styles.backgroundColor, "container"), a = _e(w(F(t.content))), s = e[t.level] ?? e[2], c = t.color ? `\n color="${M(t.color)}"` : "", l = t.textAlign, u = ve(t.fontFamily, n), d = O(t, [W, G(K(void 0))]), f = `h${e[t.level] ? t.level : 2}`;
212
+ function he(e, t) {
213
+ if (E(e)) return "";
214
+ let r = L(e.styles.padding), i = R(e.styles.backgroundColor, "container"), a = ge(h(F(e.content))), o = c[e.level] ?? c[2], s = e.color ? `\n color="${M(e.color)}"` : "", l = e.textAlign, u = _e(e.fontFamily, t), d = D(e, [G, K(q(void 0))]), f = `h${c[e.level] ? e.level : 2}`;
215
215
  return `<mj-text
216
- font-size="${s}px"${c}
216
+ font-size="${o}px"${s}
217
217
  align="${l}"
218
- line-height="${o}"
218
+ line-height="${n}"
219
219
  padding="${r}"${i}${u}${d}
220
220
  ><${f} style="margin:0;font-size:inherit;color:inherit;line-height:inherit;font-weight:700">${a}</${f}></mj-text>`;
221
221
  }
222
- function _e(e) {
222
+ function ge(e) {
223
223
  let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
224
224
  return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
225
225
  }
226
- function ve(e, t) {
226
+ function _e(e, t) {
227
227
  return e ? ` font-family="${P(t.resolveFontFamily(e))}"` : "";
228
228
  }
229
229
  //#endregion
230
230
  //#region ../renderer/src/renderers/paragraph.ts
231
- function ye(e, t) {
232
- if (D(e) || l(e.content)) return "";
233
- let n = I(e.styles.padding), r = L(e.styles.backgroundColor, "container"), i = w(F(e.content)), a = O(e, [W, G(K(e.paragraphSpacing))]);
231
+ function ve(e, t) {
232
+ if (E(e) || oe(e.content)) return "";
233
+ let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = h(F(e.content)), a = D(e, [G, K(q(e.paragraphSpacing))]);
234
234
  return `<mj-text
235
235
  line-height="1.5"${t.contentDirection === "rtl" ? "\n align=\"right\"" : ""}
236
236
  padding="${n}"${r}${a}
@@ -238,9 +238,9 @@ function ye(e, t) {
238
238
  }
239
239
  //#endregion
240
240
  //#region ../renderer/src/renderers/image.ts
241
- function be(e, t) {
242
- if (D(e) || e.src === "") return "";
243
- let n = I(e.styles.padding), r = L(e.styles.backgroundColor, "container"), i = e.width === "full" ? t.containerWidth + "px" : e.width + "px", a = R(e.height), o = B(e, t), s = O(e), c = H(e.borderRadius), l = V(e.border), u = "";
241
+ function ye(e, t) {
242
+ if (E(e) || e.src === "") return "";
243
+ let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = e.width === "full" ? t.containerWidth + "px" : e.width + "px", a = z(e.height), o = V(e, t), s = D(e), c = U(e.borderRadius), l = H(e.border), u = "";
244
244
  e.linkUrl && (u = ` href="${M(e.linkUrl)}"`, e.linkOpenInNewTab && (u += " target=\"_blank\" rel=\"noopener\""));
245
245
  let d = M(e.src), f = e.decorative === !0;
246
246
  return `<mj-image
@@ -253,90 +253,90 @@ function be(e, t) {
253
253
  }
254
254
  //#endregion
255
255
  //#region ../renderer/src/renderers/button.ts
256
- var q = "tpl-button-full";
257
- function xe(e, t) {
258
- if (D(e)) return "";
259
- let n = I(e.styles.padding), r = L(e.styles.backgroundColor, "container"), i = I(e.buttonPadding), a = e.url === "" ? "" : M(e.url), o = a === "" ? "" : ` href="${a}"`, s = Se(e.backgroundColor), c = M(e.textColor), l = e.fontSize, u = we(e.borderRadius), d = j(e.text), f = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", p = Ce(e.fontFamily, t), m = Te(e.width), h = O(e, e.width === "full" ? [q] : []);
256
+ var J = "tpl-button-full";
257
+ function be(e, t) {
258
+ if (E(e)) return "";
259
+ let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = L(e.buttonPadding), a = e.url === "" ? "" : M(e.url), o = a === "" ? "" : ` href="${a}"`, s = xe(e.backgroundColor), c = M(e.textColor), l = e.fontSize, u = Ce(e.borderRadius), d = j(e.text), f = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", p = Se(e.fontFamily, t), m = we(e.width), h = D(e, e.width === "full" ? [J] : []);
260
260
  return `<mj-button${o}${f}
261
261
  background-color="${s}"
262
262
  color="${c}"
263
263
  font-size="${l}px"
264
264
  font-weight="bold"
265
- border-radius="${u}"${V(e.border)}
265
+ border-radius="${u}"${H(e.border)}
266
266
  inner-padding="${i}"
267
267
  align="${e.align ?? "center"}"
268
268
  padding="${n}"${r}${p}${m}${h}
269
269
  >${d}</mj-button>`;
270
270
  }
271
- function Se(e) {
271
+ function xe(e) {
272
272
  return e.trim() === "" ? "transparent" : M(e);
273
273
  }
274
- function Ce(e, t) {
274
+ function Se(e, t) {
275
275
  return e ? ` font-family="${P(t.resolveFontFamily(e))}"` : "";
276
276
  }
277
- function we(e) {
278
- return typeof e == "number" ? `${e}px` : a(e) ?? "0px";
277
+ function Ce(e) {
278
+ return typeof e == "number" ? `${e}px` : f(e) ?? "0px";
279
279
  }
280
- function Te(e) {
280
+ function we(e) {
281
281
  return e === void 0 ? "" : ` width="${e === "full" ? "100%" : `${e}px`}"`;
282
282
  }
283
283
  //#endregion
284
284
  //#region ../renderer/src/renderers/divider.ts
285
- function Ee(e, t) {
286
- if (D(e)) return "";
287
- let n = I(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;
285
+ function Te(e, t) {
286
+ if (E(e)) return "";
287
+ let n = L(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;
288
288
  return `<mj-divider
289
289
  border-width="${e.thickness}px"
290
290
  border-style="${e.lineStyle}"
291
291
  border-color="${M(e.color)}"
292
292
  width="${i}"
293
- padding="${n}"${r}${O(e)}
293
+ padding="${n}"${r}${D(e)}
294
294
  />`;
295
295
  }
296
296
  //#endregion
297
297
  //#region ../renderer/src/renderers/spacer.ts
298
- function De(e, t) {
299
- return D(e) ? "" : `<mj-spacer height="${e.height}px" padding="0"${e.styles.backgroundColor ? ` container-background-color="${M(e.styles.backgroundColor)}"` : ""}${O(e)} />`;
298
+ function Ee(e, t) {
299
+ return E(e) ? "" : `<mj-spacer height="${e.height}px" padding="0"${e.styles.backgroundColor ? ` container-background-color="${M(e.styles.backgroundColor)}"` : ""}${D(e)} />`;
300
300
  }
301
301
  //#endregion
302
302
  //#region ../renderer/src/renderers/html.ts
303
- function Oe(e, t) {
304
- if (D(e) || !t.allowHtmlBlocks) return "";
303
+ function De(e, t) {
304
+ if (E(e) || !t.allowHtmlBlocks) return "";
305
305
  let n = e.content;
306
306
  if (n === "") return "";
307
- let r = O(e);
308
- return `<mj-text padding="${I(e.styles.padding)}"${L(e.styles.backgroundColor, "container")}${r}>
307
+ let r = D(e);
308
+ return `<mj-text padding="${L(e.styles.padding)}"${R(e.styles.backgroundColor, "container")}${r}>
309
309
  ${n}
310
310
  </mj-text>`;
311
311
  }
312
312
  //#endregion
313
313
  //#region ../renderer/src/renderers/social.ts
314
- function ke(e, t) {
315
- if (D(e)) return "";
314
+ function Oe(e, t) {
315
+ if (E(e)) return "";
316
316
  let n = e.icons;
317
317
  if (n.length === 0) return "";
318
- let r = I(e.styles.padding), i = e.styles.backgroundColor ? ` container-background-color="${M(e.styles.backgroundColor)}"` : "", a = O(e), o = e.align, s = e.iconSize, c = e.iconStyle, l = p(c, e.iconTone), u = e.spacing, d;
318
+ let r = L(e.styles.padding), i = e.styles.backgroundColor ? ` container-background-color="${M(e.styles.backgroundColor)}"` : "", a = D(e), o = e.align, s = e.iconSize, c = e.iconStyle, l = d(c, e.iconTone), u = e.spacing, f;
319
319
  switch (s) {
320
320
  case "small":
321
- d = 24;
321
+ f = 24;
322
322
  break;
323
323
  case "large":
324
- d = 48;
324
+ f = 48;
325
325
  break;
326
- default: d = 32;
326
+ default: f = 32;
327
327
  }
328
- let f;
328
+ let p;
329
329
  switch (c) {
330
330
  case "circle":
331
- f = "50%";
331
+ p = "50%";
332
332
  break;
333
333
  case "rounded":
334
- f = "8px";
334
+ p = "8px";
335
335
  break;
336
336
  case "square":
337
- f = "0";
337
+ p = "0";
338
338
  break;
339
- default: f = "4px";
339
+ default: p = "4px";
340
340
  }
341
341
  let m = n.length;
342
342
  return `<mj-social
@@ -347,82 +347,82 @@ function ke(e, t) {
347
347
  >
348
348
  ${n.map((e, n) => {
349
349
  let r = e.platform, i = M(e.url), a = `${t.socialIconsBaseUrl}/${l}/${r}.png`, o = n === m - 1 ? 0 : u;
350
- return `<mj-social-element src="${a}" href="${i}" icon-size="${d}px" padding="0 ${o}px 0 0" border-radius="${f}" background-color="transparent"></mj-social-element>`;
350
+ return `<mj-social-element src="${a}" href="${i}" icon-size="${f}px" padding="0 ${o}px 0 0" border-radius="${p}" background-color="transparent"></mj-social-element>`;
351
351
  }).join("\n")}
352
352
  </mj-social>`;
353
353
  }
354
354
  //#endregion
355
355
  //#region ../renderer/src/renderers/menu.ts
356
- function Ae(e, t) {
357
- if (D(e) || e.items.length === 0) return "";
358
- let n = I(e.styles.padding), r = L(e.styles.backgroundColor, "container"), i = O(e), a = Ne(e.fontFamily, t), o = e.textAlign;
356
+ function ke(e, t) {
357
+ if (E(e) || e.items.length === 0) return "";
358
+ let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = D(e), a = Me(e.fontFamily, t), o = e.textAlign;
359
359
  return `<mj-text
360
360
  font-size="${e.fontSize}px"${e.color ? `\n color="${M(e.color)}"` : ""}
361
361
  align="${o}"
362
362
  line-height="1.5"
363
363
  padding="${n}"${r}${a}${i}
364
- >${je(e)}</mj-text>`;
364
+ >${Ae(e)}</mj-text>`;
365
365
  }
366
- function je(e) {
366
+ function Ae(e) {
367
367
  let t = e.items, n = j(e.separator), r = N(e.separatorColor), i = e.spacing, a = e.linkColor ?? e.color, o = [], s = t.length;
368
- for (let e = 0; e < s; e++) o.push(Me(t[e], a)), e < s - 1 && o.push(`<span style="color: ${r}; padding: 0 ${i}px;">${n}</span>`);
368
+ for (let e = 0; e < s; e++) o.push(je(t[e], a)), e < s - 1 && o.push(`<span style="color: ${r}; padding: 0 ${i}px;">${n}</span>`);
369
369
  return o.join("");
370
370
  }
371
- function Me(e, t) {
371
+ function je(e, t) {
372
372
  let n = j(e.text), r = M(e.url), i = e.color ?? t, a = e.openInNewTab ? " target=\"_blank\" rel=\"noopener\"" : "", o = ["text-decoration: none"];
373
373
  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>`;
374
374
  }
375
- function Ne(e, t) {
375
+ function Me(e, t) {
376
376
  return e ? ` font-family="${P(t.resolveFontFamily(e))}"` : "";
377
377
  }
378
378
  //#endregion
379
379
  //#region ../renderer/src/renderers/table.ts
380
- function Pe(e, t) {
381
- if (D(e) || e.rows.length === 0) return "";
382
- let n = I(e.styles.padding), r = L(e.styles.backgroundColor, "container"), i = O(e), a = Re(e.fontFamily, t);
380
+ function Ne(e, t) {
381
+ if (E(e) || e.rows.length === 0) return "";
382
+ let n = L(e.styles.padding), r = R(e.styles.backgroundColor, "container"), i = D(e), a = Le(e.fontFamily, t);
383
383
  return `<mj-text
384
384
  font-size="${e.fontSize}px"${e.color ? `\n color="${M(e.color)}"` : ""}
385
385
  align="${e.textAlign}"
386
386
  line-height="1.5"
387
387
  padding="${n}"${r}${a}${i}
388
- >${Fe(e)}</mj-text>`;
388
+ >${Pe(e)}</mj-text>`;
389
389
  }
390
- function Fe(e) {
390
+ function Pe(e) {
391
391
  let t = N(e.borderColor), n = e.borderWidth, r = "";
392
392
  for (let i = 0; i < e.rows.length; i++) {
393
393
  let a = e.rows[i];
394
- r += Ie(a, e, e.hasHeaderRow && i === 0, t, n);
394
+ r += Fe(a, e, e.hasHeaderRow && i === 0, t, n);
395
395
  }
396
396
  return `<table style="width: 100%; border-collapse: collapse;">${r}</table>`;
397
397
  }
398
- function Ie(e, t, n, r, i) {
398
+ function Fe(e, t, n, r, i) {
399
399
  let a = "";
400
- for (let o of e.cells) a += Le(o, t, n, r, i);
400
+ for (let o of e.cells) a += Ie(o, t, n, r, i);
401
401
  return `<tr>${a}</tr>`;
402
402
  }
403
- function Le(e, t, n, r, i) {
403
+ function Ie(e, t, n, r, i) {
404
404
  let a = t.cellPadding, o = [`border: ${i}px solid ${r}`, `padding: ${a}px`];
405
405
  n && (o.push("font-weight: bold"), t.headerBackgroundColor && o.push(`background-color: ${N(t.headerBackgroundColor)}`));
406
406
  let s = o.join("; "), c = j(F(e.content)), l = n ? "th" : "td";
407
407
  return `<${l} style="${s}">${c}</${l}>`;
408
408
  }
409
- function Re(e, t) {
409
+ function Le(e, t) {
410
410
  return e ? ` font-family="${P(t.resolveFontFamily(e))}"` : "";
411
411
  }
412
412
  //#endregion
413
413
  //#region ../renderer/src/renderers/custom.ts
414
- function ze(e, t) {
415
- if (D(e)) return "";
414
+ function Re(e, t) {
415
+ if (E(e)) return "";
416
416
  let n = t.customBlockHtml.get(e.id) ?? e.renderedHtml;
417
417
  if (!n || n === "") return "";
418
- let r = O(e);
419
- return `<mj-text padding="${I(e.styles.padding)}"${L(e.styles.backgroundColor, "container")}${r}>
418
+ let r = D(e);
419
+ return `<mj-text padding="${L(e.styles.padding)}"${R(e.styles.backgroundColor, "container")}${r}>
420
420
  ${n}
421
421
  </mj-text>`;
422
422
  }
423
423
  //#endregion
424
424
  //#region ../renderer/src/columns.ts
425
- function J(e) {
425
+ function Y(e) {
426
426
  switch (e) {
427
427
  case "2": return ["50%", "50%"];
428
428
  case "3": return [
@@ -435,7 +435,7 @@ function J(e) {
435
435
  default: return ["100%"];
436
436
  }
437
437
  }
438
- function Y(e, t) {
438
+ function ze(e, t) {
439
439
  switch (e) {
440
440
  case "2": return [t * .5, t * .5];
441
441
  case "3": return [
@@ -470,26 +470,26 @@ function X(e, t) {
470
470
  }
471
471
  //#endregion
472
472
  //#region ../renderer/src/renderers/section.ts
473
- function Ve(e, t, n) {
474
- if (D(e)) return "";
475
- let r = u(e);
476
- if (r?.applied) return He(e, r, t, n);
477
- let i = e.columns, a = J(i), o = Y(i, t.containerWidth), s = Math.floor(t.contentWidth) - z(e.styles.padding, e.border), c = a.map((e) => Math.floor(s * parseFloat(e) / 100)), l = I(e.styles.padding), d = L(e.styles.backgroundColor, "native"), f = U(e.backgroundImage), p = O(e), m = H(e.borderRadius), h = V(e.border), _ = t.contentDirection === "rtl" ? " direction=\"rtl\"" : "", v = e.children, y = [];
478
- for (let e = 0; e < v.length; e++) {
479
- let r = v[e], i = a[e] ?? "100%", l = Math.floor(o[e] ?? t.containerWidth), u = Ue(r, t.allowHtmlBlocks).filter((e) => !g(e)), d = t.withContainerWidth(l, c[e] ?? s), f = u.map((e) => X(e, n(e, d))).filter((e) => e !== "").join("\n");
480
- y.push(`<mj-column width="${i}"${_}>
473
+ function Ve(e, n, r) {
474
+ if (E(e)) return "";
475
+ let i = t(e);
476
+ if (i?.applied) return He(e, i, n, r);
477
+ let a = e.columns, o = Y(a), s = ze(a, n.containerWidth), c = Math.floor(n.contentWidth) - B(e.styles.padding, e.border), l = o.map((e) => Math.floor(c * parseFloat(e) / 100)), u = L(e.styles.padding), d = R(e.styles.backgroundColor, "native"), f = W(e.backgroundImage), p = D(e), m = U(e.borderRadius), h = H(e.border), g = n.contentDirection === "rtl" ? " direction=\"rtl\"" : "", _ = e.children, v = [];
478
+ for (let e = 0; e < _.length; e++) {
479
+ let t = _[e], i = o[e] ?? "100%", a = Math.floor(s[e] ?? n.containerWidth), u = Ue(t, n.allowHtmlBlocks).filter((e) => !S(e)), d = n.withContainerWidth(a, l[e] ?? c), f = u.map((e) => X(e, r(e, d))).filter((e) => e !== "").join("\n");
480
+ v.push(`<mj-column width="${i}"${g}>
481
481
  ${f === "" ? "<mj-text>&nbsp;</mj-text>" : f}
482
482
  </mj-column>`);
483
483
  }
484
- let b = y.join("\n");
485
- return `<mj-section${d}${f} padding="${l}"${h}${m}${p}${_}>
486
- ${e.stackOnMobile === !1 && y.length > 1 ? `<mj-group${_}>
487
- ${b}
488
- </mj-group>` : b}
484
+ let y = v.join("\n");
485
+ return `<mj-section${d}${f} padding="${u}"${h}${m}${p}${g}>
486
+ ${e.stackOnMobile === !1 && v.length > 1 ? `<mj-group${g}>
487
+ ${y}
488
+ </mj-group>` : y}
489
489
  </mj-section>`;
490
490
  }
491
491
  function He(e, t, n, r) {
492
- let i = Math.floor(n.contentWidth), a = Be(t, i, e.styles.padding), o = L(e.styles.backgroundColor, "native") || " background-color=\"transparent\"", s = I(e.styles.padding), c = H(e.borderRadius), l = O(e), u = n.withContainerWidth(i, i - z(e.styles.padding)), d = Ue(e.children[0] ?? [], n.allowHtmlBlocks).filter((e) => !g(e)).map((e) => X(e, r(e, u))).filter((e) => e !== "").join("\n");
492
+ let i = Math.floor(n.contentWidth), a = Be(t, i, e.styles.padding), o = R(e.styles.backgroundColor, "native") || " background-color=\"transparent\"", s = L(e.styles.padding), c = U(e.borderRadius), l = D(e), u = n.withContainerWidth(i, i - B(e.styles.padding)), d = Ue(e.children[0] ?? [], n.allowHtmlBlocks).filter((e) => !S(e)).map((e) => X(e, r(e, u))).filter((e) => e !== "").join("\n");
493
493
  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="${t.image.position}"${o} padding="${s}" vertical-align="${t.verticalAlign}"${c}${l}>
494
494
  ${d}
495
495
  </mj-hero>`;
@@ -510,10 +510,10 @@ function We(e, t) {
510
510
  return n ? `https://vumbnail.com/${n[1]}.jpg` : null;
511
511
  }
512
512
  function Ge(e, t) {
513
- if (D(e)) return "";
513
+ if (E(e)) return "";
514
514
  let n = We(e.url, e.thumbnailUrl);
515
515
  if (!n) return "";
516
- let r = I(e.styles.padding), i = L(e.styles.backgroundColor, "container"), a = e.width === "full" ? t.containerWidth + "px" : e.width + "px", o = R(e.height), s = B(e, t), c = O(e);
516
+ let r = L(e.styles.padding), i = R(e.styles.backgroundColor, "container"), a = e.width === "full" ? t.containerWidth + "px" : e.width + "px", o = z(e.height), s = V(e, t), c = D(e);
517
517
  return `<mj-image
518
518
  src="${M(n)}"
519
519
  alt="${M(e.alt)}"
@@ -527,63 +527,63 @@ function Ge(e, t) {
527
527
  }
528
528
  //#endregion
529
529
  //#region ../renderer/src/renderers/index.ts
530
- function Z(e, t) {
531
- let n = t.blockRenderers[e.type];
532
- return n ? n(e, t) : g(e) ? Ve(e, t, Z) : te(e) ? ge(e, t) : re(e) ? ye(e, t) : m(e) ? be(e, t) : ie(e) ? xe(e, t) : ne(e) ? Ee(e, t) : _(e) ? De(e, t) : b(e) ? Oe(e, t) : ae(e) ? ke(e, t) : ee(e) ? Ae(e, t) : v(e) ? Pe(e, t) : S(e) ? Ge(e, t) : C(e) ? ze(e, t) : D(e) ? "" : k(e);
530
+ function Z(t, n) {
531
+ let r = n.blockRenderers[t.type];
532
+ return r ? r(t, n) : S(t) ? Ve(t, n, Z) : _(t) ? he(t, n) : ee(t) ? ve(t, n) : v(t) ? ye(t, n) : e(t) ? be(t, n) : x(t) ? Te(t, n) : ie(t) ? Ee(t, n) : ne(t) ? De(t, n) : y(t) ? Oe(t, n) : m(t) ? ke(t, n) : g(t) ? Ne(t, n) : te(t) ? Ge(t, n) : re(t) ? Re(t, n) : E(t) ? "" : ue(t);
533
533
  }
534
534
  //#endregion
535
535
  //#region ../renderer/src/index.ts
536
- var Ke = `.${q} a { display: block !important; }`;
536
+ var Ke = `.${J} a { display: block !important; }`;
537
537
  async function qe(e, t) {
538
- let r = t?.layout ? d(t.layout, e) : (i(e), n(e), e), a = t?.customFonts ?? [], o = t?.defaultFallbackFont ?? "Arial, sans-serif", s = t?.allowHtmlBlocks ?? !0, c = Ze(t?.socialIconsBaseUrl ?? T), l = await tt(r, t?.renderCustomBlock), u = nt(r, t?.getCustomBlockStylesheet), p = f(r.settings), m = new E(r.settings.width, a, o, s, l, c, t?.blockRenderers ?? {}, p), h = et(r.blocks, s), g = m.resolveFontFamily(r.settings.fontFamily), _ = r.settings.backgroundColor, v = r.settings.textColor ? ` color="${M(r.settings.textColor)}"` : "", y = r.settings.linkColor ? N(r.settings.linkColor) : "inherit", b = r.settings.linkUnderline ? "underline" : "none", x = h.map((e) => Je(e, m)).filter((e) => e !== "").join("\n"), S = $e(a), C = Qe(r.settings.preheaderText);
539
- return `<mjml lang="${M(r.settings.locale)}" dir="${M(p)}">
540
- <mj-head>${C}
538
+ let n = t?.layout ? ae(t.layout, e) : (u(e), i(e), e), r = t?.customFonts ?? [], a = t?.defaultFallbackFont ?? "Arial, sans-serif", o = t?.allowHtmlBlocks ?? !0, c = Ze(t?.socialIconsBaseUrl ?? w), l = await tt(n, t?.renderCustomBlock), d = nt(n, t?.getCustomBlockStylesheet), f = s(n.settings), p = new T(n.settings.width, r, a, o, l, c, t?.blockRenderers ?? {}, f), m = et(n.blocks, o), h = p.resolveFontFamily(n.settings.fontFamily), g = n.settings.backgroundColor, _ = n.settings.textColor ? ` color="${M(n.settings.textColor)}"` : "", v = n.settings.linkColor ? N(n.settings.linkColor) : "inherit", y = n.settings.linkUnderline ? "underline" : "none", b = m.map((e) => Q(e, p)).filter((e) => e !== "").join("\n"), x = $e(r), ee = Qe(n.settings.preheaderText);
539
+ return `<mjml lang="${M(n.settings.locale)}" dir="${M(f)}">
540
+ <mj-head>${ee}
541
541
  <mj-attributes>
542
- <mj-all font-family="${P(g)}" />
543
- <mj-text font-size="14px"${v} />
542
+ <mj-all font-family="${P(h)}" />
543
+ <mj-text font-size="14px"${_} />
544
544
  <mj-section padding="0" />
545
545
  <mj-column padding="0" />
546
- </mj-attributes>${S}
546
+ </mj-attributes>${x}
547
547
  <mj-style inline="inline">
548
- ${me(he(h), p)}
548
+ ${pe(me(m), f)}
549
549
  ${Ke}
550
550
  </mj-style>
551
551
  <mj-style>
552
- a { color: ${y}; text-decoration: ${b}; }
552
+ a { color: ${v}; text-decoration: ${y}; }
553
553
  @media only screen and (max-width: 480px) {
554
554
  .tpl-hide-mobile { display: none !important; mso-hide: all !important; }
555
555
  }
556
556
  @media only screen and (min-width: 481px) {
557
557
  .tpl-hide-desktop { display: none !important; mso-hide: all !important; }
558
558
  }
559
- </mj-style>${rt(u)}
559
+ </mj-style>${rt(d)}
560
560
  </mj-head>
561
- <mj-body width="${m.containerWidth}px" background-color="${_}">
562
- ${x}
561
+ <mj-body width="${p.containerWidth}px" background-color="${g}">
562
+ ${b}
563
563
  </mj-body>
564
564
  </mjml>`;
565
565
  }
566
- function Je(e, t) {
567
- if (y(e)) {
568
- let n = Q(t, e.styles.padding);
569
- return X(e, Ye(et(e.children, t.allowHtmlBlocks).map((e) => Je(e, n)).filter((e) => e !== "").join("\n"), {
566
+ function Q(e, t) {
567
+ if (b(e)) {
568
+ let n = Je(t, e.styles.padding);
569
+ return X(e, Ye(et(e.children, t.allowHtmlBlocks).map((e) => Q(e, n)).filter((e) => e !== "").join("\n"), {
570
570
  backgroundColor: e.styles.backgroundColor,
571
571
  padding: e.styles.padding,
572
572
  borderRadius: e.borderRadius,
573
573
  backgroundImage: e.backgroundImage
574
574
  }, t.contentDirection));
575
575
  }
576
- if (g(e)) {
577
- let n = Z(e, e.wrapper ? Q(t, e.wrapper.padding) : t);
576
+ if (S(e)) {
577
+ let n = Z(e, e.wrapper ? Je(t, e.wrapper.padding) : t);
578
578
  return X(e, e.wrapper && n !== "" ? Ye(n, e.wrapper, t.contentDirection) : n);
579
579
  }
580
580
  return X(e, Xe(Z(e, t), t.contentDirection));
581
581
  }
582
- function Q(e, t) {
583
- return e.withContainerWidth(e.containerWidth, Math.floor(e.contentWidth) - z(t));
582
+ function Je(e, t) {
583
+ return e.withContainerWidth(e.containerWidth, Math.floor(e.contentWidth) - B(t));
584
584
  }
585
585
  function Ye(e, t, n) {
586
- return `<mj-wrapper${L(t.backgroundColor, "native")}${U(t.backgroundImage)}${` padding="${t.padding ? I(t.padding) : "0"}"`}${H(t.borderRadius)}${n === "rtl" ? " direction=\"rtl\"" : ""}>
586
+ return `<mj-wrapper${R(t.backgroundColor, "native")}${W(t.backgroundImage)}${` padding="${t.padding ? L(t.padding) : "0"}"`}${U(t.borderRadius)}${n === "rtl" ? " direction=\"rtl\"" : ""}>
587
587
  ${e}
588
588
  </mj-wrapper>`;
589
589
  }
@@ -620,9 +620,9 @@ async function tt(e, t) {
620
620
  return n;
621
621
  }
622
622
  function $(e, t) {
623
- for (let n of e) if (C(n)) t.push(n);
624
- else if (g(n)) for (let e of n.children) $(e, t);
625
- else y(n) && $(n.children, t);
623
+ for (let n of e) if (re(n)) t.push(n);
624
+ else if (S(n)) for (let e of n.children) $(e, t);
625
+ else b(n) && $(n.children, t);
626
626
  }
627
627
  function nt(e, t) {
628
628
  let n = [];
@@ -644,6 +644,6 @@ function rt(e) {
644
644
  return e.length === 0 ? "" : e.map((e) => `\n <mj-style>\n${e}\n </mj-style>`).join("");
645
645
  }
646
646
  //#endregion
647
- export { q as BUTTON_FULL_WIDTH_CSS_CLASS, T as DEFAULT_SOCIAL_ICONS_BASE_URL, W as RICH_TEXT_CSS_CLASS, E as RenderContext, ce as UNRENDERABLE_MARKER_PREFIX, F as convertMergeTagsToValues, M as escapeAttr, j as escapeHtml, B as fluidOnMobileAttr, O as getCssClassAttr, se as getCssClasses, J as getWidthPercentages, Y as getWidthPixels, D as isHiddenOnAll, Z as renderBlock, qe as renderToMjml, k as renderUnrenderableBlock, K as resolveParagraphGap, G as richTextGapClass, I as toPaddingString };
647
+ export { J as BUTTON_FULL_WIDTH_CSS_CLASS, w as DEFAULT_SOCIAL_ICONS_BASE_URL, G as RICH_TEXT_CSS_CLASS, T as RenderContext, le as UNRENDERABLE_MARKER_PREFIX, F as convertMergeTagsToValues, M as escapeAttr, j as escapeHtml, V as fluidOnMobileAttr, D as getCssClassAttr, ce as getCssClasses, Y as getWidthPercentages, ze as getWidthPixels, E as isHiddenOnAll, Z as renderBlock, qe as renderToMjml, ue as renderUnrenderableBlock, q as resolveParagraphGap, K as richTextGapClass, L as toPaddingString };
648
648
 
649
- //# sourceMappingURL=src-dZ4D_tuP.js.map
649
+ //# sourceMappingURL=src-BcTUmgLe.js.map