@templatical/editor 0.49.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 (378) 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-BdpJwim0.js → BlockIssueBadge-CKwZ1Vgn.js} +11 -11
  9. package/dist/{BlockPreviewCanvas-D_sowkf0.js → BlockPreviewCanvas-BXNLLLYi.js} +33 -33
  10. package/dist/CloudHeaderExtras-CsJMEiyN.js +23 -0
  11. package/dist/{CloudPanels-1hwFiJ0G.js → CloudPanels-B4F5m7vy.js} +66 -85
  12. package/dist/{CollaborationNotices-BWpKzueF.js → CollaborationNotices-CNuDp7Y2.js} +19 -16
  13. package/dist/{CollaboratorBar-D87phJsw.js → CollaboratorBar-BtHPiuHq.js} +22 -22
  14. package/dist/{CommentsPanel-BUvUzO3T.js → CommentsPanel-CyCM-BvT.js} +4 -4
  15. package/dist/CommentsSidebar-Ca3DyFOX.js +500 -0
  16. package/dist/{cdn/chunks/CountdownBlock-DB4JNdqh.js → CountdownBlock-DR4Xm2-T.js} +24 -26
  17. package/dist/{CountdownToolbar-CLMIwfK7.js → CountdownToolbar-CEIMPojJ.js} +55 -55
  18. package/dist/IssuesPanel-C8nMUccy.js +360 -0
  19. package/dist/{LoadingTrack-BXOptf5g.js → LoadingTrack-B0RKQWq3.js} +2 -2
  20. package/dist/{LogicTagInsertButton-CR5E4jSG.js → LogicTagInsertButton-CqfU52CO.js} +273 -268
  21. package/dist/{cdn/chunks/MediaEditModal-DD0SZ-S3.js → MediaEditModal-DHtkZ4OU.js} +202 -186
  22. package/dist/{MediaPanels-BVXDkqtH.js → MediaPanels-CGcOB2pR.js} +4 -4
  23. package/dist/{MergeTagInput-BEw_r0PJ.js → MergeTagInput-YnEkorTZ.js} +25 -25
  24. package/dist/{MergeTagModeToggle-CJTpFmVd.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-BaDpy3cL.js → RestoreVersionDialog-Bq_IGOLJ.js} +21 -21
  28. package/dist/{RichTextEditorContent-CsvniFlI.js → RichTextEditorContent-AOM6fylS.js} +48 -48
  29. package/dist/{SaveBlockDialog-DzWURF_e.js → SaveBlockDialog-C8GngfQx.js} +87 -87
  30. package/dist/{cdn/chunks/SavedBlocksBrowserModal-BMtyUrUP.js → SavedBlocksBrowserModal-wnkvxpm_.js} +102 -99
  31. package/dist/{SavedBlocksPanels-B3Af8ns2.js → SavedBlocksPanels-C2s3q0pJ.js} +9 -9
  32. package/dist/{SavedBlocksPickBar-Dj11-Lqp.js → SavedBlocksPickBar-BjcTiV87.js} +13 -13
  33. package/dist/TemplateSettings-BVBWpiDU.js +237 -0
  34. package/dist/{TestEmailModal-BeRYV3eg.js → TestEmailModal-SyhO9bn3.js} +57 -57
  35. package/dist/{TestEmailPanel-B8c3fQi2.js → TestEmailPanel-BDd2Rtav.js} +4 -4
  36. package/dist/{TitleEditor-CvpNUoAp.js → TitleEditor-pxD53y_l.js} +75 -75
  37. package/dist/ToggleSwitch-D51U9cmR.js +37 -0
  38. package/dist/{Toolbar-BadDSkkF.js → Toolbar-CZSPZYbj.js} +1138 -1138
  39. package/dist/{TplModal-BZgi9Tes.js → TplModal-DCzBzicE.js} +19 -19
  40. package/dist/{VersionHistoryMenu-BRlcQ8wX.js → VersionHistoryMenu-BQeWPT85.js} +35 -35
  41. package/dist/{VersionHistoryPanels-DGkllN3a.js → VersionHistoryPanels-BBm7YbRQ.js} +5 -5
  42. package/dist/{VersionPreviewBanner-F-811aps.js → VersionPreviewBanner-DUGF0tUJ.js} +9 -9
  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-CayLluou.js → blockTypeIcons-NzaYvAI4.js} +15 -14
  48. package/dist/bundle-stats.json +8 -8
  49. package/dist/{cdn/chunks/ca-DSJwJ5ov.js → ca-C7mTzW1r.js} +130 -13
  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-D1VBS_6x.js → BlockIssueBadge-DAn2vsMJ.js} +13 -13
  63. package/dist/cdn/chunks/{BlockIssueBadge-D1VBS_6x.js.map → BlockIssueBadge-DAn2vsMJ.js.map} +1 -1
  64. package/dist/cdn/chunks/{BlockPreviewCanvas-m2tWRyWv.js → BlockPreviewCanvas-D0--EQkP.js} +38 -38
  65. package/dist/cdn/chunks/{BlockPreviewCanvas-m2tWRyWv.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-XufhBZYF.js → CloudPanels-C3jsxo_f.js} +52 -71
  69. package/dist/cdn/chunks/CloudPanels-C3jsxo_f.js.map +1 -0
  70. package/dist/cdn/chunks/{CollaborationNotices-CBvKEj1Q.js → CollaborationNotices-DjRI8gvs.js} +23 -20
  71. package/dist/cdn/chunks/CollaborationNotices-DjRI8gvs.js.map +1 -0
  72. package/dist/cdn/chunks/{CollaboratorBar-DWW54Bn_.js → CollaboratorBar-Dfzm6A9A.js} +20 -20
  73. package/dist/cdn/chunks/{CollaboratorBar-DWW54Bn_.js.map → CollaboratorBar-Dfzm6A9A.js.map} +1 -1
  74. package/dist/cdn/chunks/CommentsPanel-CSO79OeX.js +20 -0
  75. package/dist/cdn/chunks/{CommentsPanel-R8YLLO3v.js.map → CommentsPanel-CSO79OeX.js.map} +1 -1
  76. package/dist/cdn/chunks/CommentsSidebar-CCvplq1Z.js +470 -0
  77. package/dist/cdn/chunks/{CommentsSidebar-96NZHVq3.js.map → CommentsSidebar-CCvplq1Z.js.map} +1 -1
  78. package/dist/{CountdownBlock-DPQXWRvU.js → cdn/chunks/CountdownBlock-C6USdwk3.js} +19 -17
  79. package/dist/cdn/chunks/{CountdownBlock-DB4JNdqh.js.map → CountdownBlock-C6USdwk3.js.map} +1 -1
  80. package/dist/cdn/chunks/{CountdownToolbar-tmiTPEXm.js → CountdownToolbar-Cjud2Tos.js} +70 -70
  81. package/dist/cdn/chunks/{CountdownToolbar-tmiTPEXm.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-YU44CM8X.js → LoadingTrack-BIcL4NiY.js} +2 -2
  85. package/dist/cdn/chunks/{LoadingTrack-YU44CM8X.js.map → LoadingTrack-BIcL4NiY.js.map} +1 -1
  86. package/dist/cdn/chunks/{LogicTagInsertButton-BJ2t2vxC.js → LogicTagInsertButton-CsL2JDOG.js} +367 -362
  87. package/dist/cdn/chunks/LogicTagInsertButton-CsL2JDOG.js.map +1 -0
  88. package/dist/{MediaEditModal-C_wxoUMG.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-CkdJ_kGp.js.map → MediaPanels-DAgUf_T1.js.map} +1 -1
  92. package/dist/cdn/chunks/{MergeTagInput-7wXX71DH.js → MergeTagInput-C8U-7LxL.js} +33 -33
  93. package/dist/cdn/chunks/{MergeTagInput-7wXX71DH.js.map → MergeTagInput-C8U-7LxL.js.map} +1 -1
  94. package/dist/cdn/chunks/{MergeTagModeToggle-r9vHH4u_.js → MergeTagModeToggle-Mm-p0A52.js} +41 -41
  95. package/dist/cdn/chunks/{MergeTagModeToggle-r9vHH4u_.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-C5cxBRKi.js → RestoreVersionDialog-CdA5osuA.js} +25 -25
  101. package/dist/cdn/chunks/{RestoreVersionDialog-C5cxBRKi.js.map → RestoreVersionDialog-CdA5osuA.js.map} +1 -1
  102. package/dist/cdn/chunks/{RichTextEditorContent-BfE7Bkge.js → RichTextEditorContent-Q1d2xqBT.js} +46 -46
  103. package/dist/cdn/chunks/{RichTextEditorContent-BfE7Bkge.js.map → RichTextEditorContent-Q1d2xqBT.js.map} +1 -1
  104. package/dist/cdn/chunks/{SaveBlockDialog-BKbjUnPM.js → SaveBlockDialog-CijargAy.js} +77 -77
  105. package/dist/cdn/chunks/{SaveBlockDialog-BKbjUnPM.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-BMtyUrUP.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-s_gxi1im.js.map → SavedBlocksPanels-BowyED5h.js.map} +1 -1
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-B8WHk5mI.js → SavedBlocksPickBar-BPRaJBv3.js} +18 -18
  111. package/dist/cdn/chunks/{SavedBlocksPickBar-B8WHk5mI.js.map → SavedBlocksPickBar-BPRaJBv3.js.map} +1 -1
  112. package/dist/cdn/chunks/TemplateSettings-ByZeBO34.js +209 -0
  113. package/dist/cdn/chunks/{TemplateSettings-CtrzzQWl.js.map → TemplateSettings-ByZeBO34.js.map} +1 -1
  114. package/dist/cdn/chunks/{TestEmailModal-DuZKYMWD.js → TestEmailModal-BUVTj3Ic.js} +54 -54
  115. package/dist/cdn/chunks/{TestEmailModal-DuZKYMWD.js.map → TestEmailModal-BUVTj3Ic.js.map} +1 -1
  116. package/dist/cdn/chunks/TestEmailPanel-BxutYoWg.js +35 -0
  117. package/dist/cdn/chunks/{TestEmailPanel-DERaCdpG.js.map → TestEmailPanel-BxutYoWg.js.map} +1 -1
  118. package/dist/cdn/chunks/TitleEditor-Ccv6uoTz.js +199 -0
  119. package/dist/cdn/chunks/{TitleEditor-CEgxjtUX.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-GFIZQHzw.js → Toolbar-DoprRgTn.js} +986 -987
  123. package/dist/cdn/chunks/{Toolbar-GFIZQHzw.js.map → Toolbar-DoprRgTn.js.map} +1 -1
  124. package/dist/cdn/chunks/{TplModal-DDrbWJcE.js → TplModal-BXQzmsJX.js} +21 -21
  125. package/dist/cdn/chunks/{TplModal-DDrbWJcE.js.map → TplModal-BXQzmsJX.js.map} +1 -1
  126. package/dist/cdn/chunks/{VersionHistoryMenu-MlxsUmuT.js → VersionHistoryMenu-BF2fNCvq.js} +41 -41
  127. package/dist/cdn/chunks/{VersionHistoryMenu-MlxsUmuT.js.map → VersionHistoryMenu-BF2fNCvq.js.map} +1 -1
  128. package/dist/cdn/chunks/VersionHistoryPanels-Dal0Uk69.js +48 -0
  129. package/dist/cdn/chunks/{VersionHistoryPanels-DVOV8QLv.js.map → VersionHistoryPanels-Dal0Uk69.js.map} +1 -1
  130. package/dist/cdn/chunks/{VersionPreviewBanner-BQwRKc6S.js → VersionPreviewBanner-BaGcn-b1.js} +12 -12
  131. package/dist/cdn/chunks/{VersionPreviewBanner-BQwRKc6S.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-CFuP4R0c.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-BnAd8qsP.js.map → blockTypeIcons-ikZAmd6U.js.map} +1 -1
  142. package/dist/{ca-DSJwJ5ov.js → cdn/chunks/ca-C7mTzW1r.js} +132 -11
  143. package/dist/cdn/chunks/ca-C7mTzW1r.js.map +1 -0
  144. package/dist/cdn/chunks/{cloud-CI_fgDyy.js → createCloudRuntime-DpBWhrv3.js} +489 -593
  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-CBE6O79z.js → cdn/chunks/de-DNuYQTmS.js} +132 -11
  149. package/dist/cdn/chunks/de-DNuYQTmS.js.map +1 -0
  150. package/dist/{dist-Bv_GBr2l.js → cdn/chunks/dist-Bo8Thh8v.js} +60 -58
  151. package/dist/cdn/chunks/{dist-Doy3r07H.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-DdwjXLme.js.map → dist-S-rLGqax.js.map} +1 -1
  154. package/dist/cdn/chunks/{draggable-akeQH_JP.js → draggable-DZ0gwUJ6.js} +1822 -1728
  155. package/dist/cdn/chunks/draggable-DZ0gwUJ6.js.map +1 -0
  156. package/dist/cdn/chunks/{editor-modal-HJBy9kLj.js → editor-modal-CI6EfeMd.js} +884 -884
  157. package/dist/cdn/chunks/{editor-modal-HJBy9kLj.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-CDexnk0p.js → cdn/chunks/en-CW71OK66.js} +132 -11
  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-BE42B6uN.js → cdn/chunks/es-DdK7zQfi.js} +132 -11
  164. package/dist/cdn/chunks/es-DdK7zQfi.js.map +1 -0
  165. package/dist/cdn/chunks/{extensions-koOuDeZS.js → extensions-taJTZlLK.js} +59 -59
  166. package/dist/cdn/chunks/{extensions-koOuDeZS.js.map → extensions-taJTZlLK.js.map} +1 -1
  167. package/dist/{fr-DlJFPDQR.js → cdn/chunks/fr-Dz5Bgb7-.js} +132 -11
  168. package/dist/cdn/chunks/fr-Dz5Bgb7-.js.map +1 -0
  169. package/dist/cdn/chunks/{icons-CjlNV8xD.js → icons-DNX6StSs.js} +178 -145
  170. package/dist/cdn/chunks/icons-DNX6StSs.js.map +1 -0
  171. package/dist/{ja-CUT8gkNI.js → cdn/chunks/ja-Di-zJiT8.js} +132 -11
  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-bXWqqRyS.js → cdn/chunks/nl-CvVuHYFL.js} +132 -11
  178. package/dist/cdn/chunks/{nl-bXWqqRyS.js.map → nl-CvVuHYFL.js.map} +1 -1
  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-DqKbdTJ8.js → preRenderCustomBlocks-Dc-QLntG.js} +4 -4
  182. package/dist/cdn/chunks/{preRenderCustomBlocks-DqKbdTJ8.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-2_H4-wlb.js → cdn/chunks/pt-BR-ZhO4vgyq.js} +132 -11
  186. package/dist/cdn/chunks/pt-BR-ZhO4vgyq.js.map +1 -0
  187. package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js +62 -0
  188. package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js.map +1 -0
  189. package/dist/cdn/chunks/socialIcons-BBvsTwCV.js +2032 -0
  190. package/dist/cdn/chunks/socialIcons-BBvsTwCV.js.map +1 -0
  191. package/dist/{dist-DBG3nh3k.js → cdn/chunks/src-BNFnxfrA.js} +552 -350
  192. package/dist/cdn/chunks/src-BNFnxfrA.js.map +1 -0
  193. package/dist/cdn/chunks/{src-B77z1iw4.js → src-BcTUmgLe.js} +113 -113
  194. package/dist/cdn/chunks/{src-B77z1iw4.js.map → src-BcTUmgLe.js.map} +1 -1
  195. package/dist/cdn/chunks/src-Bs_yxk3h.js +4392 -0
  196. package/dist/cdn/chunks/src-Bs_yxk3h.js.map +1 -0
  197. package/dist/cdn/chunks/{tiptap-B1RfWFzB.js → tiptap-CtVrAViq.js} +43 -43
  198. package/dist/cdn/chunks/{tiptap-B1RfWFzB.js.map → tiptap-CtVrAViq.js.map} +1 -1
  199. package/dist/cdn/chunks/{useCloudI18n-kp07GQmk.js → useCloudI18n-AVXhzbhQ.js} +4 -4
  200. package/dist/cdn/chunks/{useCloudI18n-kp07GQmk.js.map → useCloudI18n-AVXhzbhQ.js.map} +1 -1
  201. package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js +2586 -0
  202. package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js.map +1 -0
  203. package/dist/cdn/chunks/useEditorRoot-CR5GjJD6.js +10 -0
  204. package/dist/cdn/chunks/{useEditorRoot-5SBqm90x.js.map → useEditorRoot-CR5GjJD6.js.map} +1 -1
  205. package/dist/cdn/chunks/{useI18n-DEqtEgOs.js → useI18n-CbVubQhM.js} +3 -3
  206. package/dist/cdn/chunks/{useI18n-DEqtEgOs.js.map → useI18n-CbVubQhM.js.map} +1 -1
  207. package/dist/cdn/chunks/{useLogicTag-X8bc5qNl.js → useLogicTag-B49Nc53Y.js} +5 -5
  208. package/dist/cdn/chunks/{useLogicTag-X8bc5qNl.js.map → useLogicTag-B49Nc53Y.js.map} +1 -1
  209. package/dist/cdn/chunks/{useMergeTag-DFoOexIQ.js → useMergeTag-B0KryMj8.js} +5 -5
  210. package/dist/cdn/chunks/{useMergeTag-DFoOexIQ.js.map → useMergeTag-B0KryMj8.js.map} +1 -1
  211. package/dist/cdn/chunks/{usePopoverPosition-Cz9-XiXR.js → usePopoverPosition-C829ps5i.js} +4 -4
  212. package/dist/cdn/chunks/{usePopoverPosition-Cz9-XiXR.js.map → usePopoverPosition-C829ps5i.js.map} +1 -1
  213. package/dist/cdn/chunks/useScrollToBlock-CAwvulog.js +51 -0
  214. package/dist/cdn/chunks/useScrollToBlock-CAwvulog.js.map +1 -0
  215. package/dist/cdn/chunks/{withCurrentFont-D-f61ghC.js → withCurrentFont-DFPXeVfG.js} +2 -2
  216. package/dist/cdn/chunks/{withCurrentFont-D-f61ghC.js.map → withCurrentFont-DFPXeVfG.js.map} +1 -1
  217. package/dist/cdn/editor.css +1 -1
  218. package/dist/cdn/editor.js +2151 -1480
  219. package/dist/cdn/editor.js.map +1 -1
  220. package/dist/{check-DQQzkmIC.js → check-yYsp5Xpk.js} +1 -1
  221. package/dist/{chevron-down-CIF4bdon.js → chevron-down-DTmD06_j.js} +1 -1
  222. package/dist/{chevron-right-Cg7Xu-ev.js → chevron-right-BSeYZOxc.js} +1 -1
  223. package/dist/{chevron-up-Csu7ISD-.js → chevron-up-BOApwrxi.js} +1 -1
  224. package/dist/{circle-alert-YUvIJAgY.js → circle-alert-BMszY8im.js} +1 -1
  225. package/dist/{clock-CnSIGKQW.js → clock-HADxnl6-.js} +1 -1
  226. package/dist/{cloud-YUYDtdHt.js → createCloudRuntime-DVQI_ReU.js} +474 -570
  227. package/dist/{createLucideIcon-BcP1sjdp.js → createLucideIcon-0lYYH3EW.js} +6 -6
  228. package/dist/de-DBOTcDj2.js +20 -0
  229. package/dist/{cdn/chunks/de-CBE6O79z.js → de-DNuYQTmS.js} +130 -13
  230. package/dist/{cdn/chunks/dist-Doy3r07H.js → dist-C7EtxNCb.js} +49 -51
  231. package/dist/{dist-CNqjHA8e.js → dist-C_dV9QAx.js} +130 -130
  232. package/dist/{cdn/chunks/dist-DdwjXLme.js → dist-DI4_YSnG.js} +111 -110
  233. package/dist/{cdn/chunks/src-CvLTYGdO.js → dist-DtOF3bDW.js} +446 -393
  234. package/dist/{editor-modal--7_9A6j-.js → editor-modal-Bzhl-PgI.js} +832 -834
  235. package/dist/en-CDhWRrF_.js +20 -0
  236. package/dist/{cdn/chunks/en-CDexnk0p.js → en-CW71OK66.js} +130 -13
  237. package/dist/en-DwV15ltA.js +1 -0
  238. package/dist/{cdn/chunks/es-BE42B6uN.js → es-DdK7zQfi.js} +130 -13
  239. package/dist/{extensions-zwsZlWjH.js → extensions-CdyweA50.js} +57 -57
  240. package/dist/{eye-B1bua-ck.js → eye-DWkSvYpj.js} +1 -1
  241. package/dist/{cdn/chunks/fr-DlJFPDQR.js → fr-Dz5Bgb7-.js} +130 -13
  242. package/dist/image-DesWjcZ4.js +28 -0
  243. package/dist/index.d.ts +361 -24
  244. package/dist/{info-x26nGOo2.js → info-ClWJGoZy.js} +1 -1
  245. package/dist/{cdn/chunks/ja-CUT8gkNI.js → ja-Di-zJiT8.js} +130 -13
  246. package/dist/keys-Zd9KWRD1.js +10 -0
  247. package/dist/{link-CezhndyR.js → link-BqRicFTA.js} +1 -1
  248. package/dist/{list-DQqdptI0.js → list-bojQr9bn.js} +1 -1
  249. package/dist/{loader-circle-DCEeoYoi.js → loader-circle-B2B8LbUu.js} +1 -1
  250. package/dist/{cdn/chunks/logger-ByvdoAwq.js → logger-k9Nbj3Cp.js} +5 -3
  251. package/dist/{message-circle-BLGzfv_7.js → message-circle-BEuiNsyZ.js} +1 -1
  252. package/dist/{cdn/chunks/nl-bXWqqRyS.js → nl-CvVuHYFL.js} +130 -13
  253. package/dist/normalizeMergeTagMarkup-P6SUBuPv.js +197 -0
  254. package/dist/{package-D_kEQCMU.js → package-DCROB4aM.js} +1 -1
  255. package/dist/{pencil-Dct8zGLy.js → pencil-CEotCKbf.js} +1 -1
  256. package/dist/{preRenderCustomBlocks-CtKJecE-.js → preRenderCustomBlocks-D8rr61_z.js} +4 -4
  257. package/dist/pt-BR-CHM-ZKvE.js +20 -0
  258. package/dist/{cdn/chunks/pt-BR-2_H4-wlb.js → pt-BR-ZhO4vgyq.js} +130 -13
  259. package/dist/{refresh-cw-tGMRDxr8.js → refresh-cw-C6M2mHNC.js} +12 -2
  260. package/dist/{runtime-dom.esm-bundler-DYn1z2Xf.js → runtime-dom.esm-bundler-B8WCZWUm.js} +134 -134
  261. package/dist/sanitizeRichTextHtml-DeISfLFr.js +60 -0
  262. package/dist/{search-Bm2cCQpe.js → search-Cy99zPYf.js} +1 -1
  263. package/dist/{send-sVLaKZ7f.js → send-BDLJFsf3.js} +1 -1
  264. package/dist/{smartphone-B2W81p02.js → smartphone-CVvQaNA4.js} +1 -1
  265. package/dist/{cdn/chunks/socialIcons-CkZSYpoG.js → socialIcons-Dd-jRiVe.js} +688 -693
  266. package/dist/{sparkles-a1qkBZ8X.js → sparkles-Ce0Qz0ox.js} +1 -1
  267. package/dist/square-BWlolnXe.js +15 -0
  268. package/dist/style.css +1 -1
  269. package/dist/templatical-editor.js +2114 -1422
  270. package/dist/{text-align-start-CTuwQ5YW.js → text-align-start-D1V5gPTy.js} +1 -1
  271. package/dist/{trash-I3D2peFQ.js → trash-CZfiUFmw.js} +1 -1
  272. package/dist/{triangle-alert-CenxmLRE.js → triangle-alert-CFDzyFC7.js} +1 -1
  273. package/dist/upload-BJfvdIrD.js +36 -0
  274. package/dist/{useCloudI18n-CGVEZV3o.js → useCloudI18n-Dcjua65H.js} +5 -5
  275. package/dist/{useEditorCore-DRbMRe8F.js → useEditorCore-BTLeAVlM.js} +1463 -1499
  276. package/dist/{useEditorRoot-BVm2-1N8.js → useEditorRoot-DUy67lJu.js} +2 -2
  277. package/dist/{useI18n-CSh4gO5c.js → useI18n-BdoY7xDE.js} +4 -4
  278. package/dist/{useLogicTag-zcI6BWIf.js → useLogicTag-DKLZ1T9H.js} +3 -3
  279. package/dist/{useMergeTag-C-iBLlp0.js → useMergeTag-Bhdx7AKk.js} +3 -3
  280. package/dist/{usePopoverPosition-CMcsMBtK.js → usePopoverPosition-BZea45XK.js} +2 -2
  281. package/dist/useScrollToBlock-FmNMALM_.js +74 -0
  282. package/dist/{vue.runtime.esm-bundler-DV0Wx4r_.js → vue.runtime.esm-bundler-DgFJ6GPG.js} +1428 -1332
  283. package/dist/{withCurrentFont-D62njRLu.js → withCurrentFont-BATJHNve.js} +1 -1
  284. package/dist/{x-KFQ4S-Kz.js → x-CZ0Js0hA.js} +1 -1
  285. package/package.json +14 -12
  286. package/dist/AiChatSidebar-CdjTb9ej.js +0 -230
  287. package/dist/AiFeatureMenu-DKm7VYCs.js +0 -57
  288. package/dist/CloudHeaderExtras-CI8RR9hG.js +0 -55
  289. package/dist/CommentsSidebar-J65znlrH.js +0 -500
  290. package/dist/DesignReferenceSidebar-BTwCFgz8.js +0 -279
  291. package/dist/IssuesPanel-DeeVsfG7.js +0 -117
  292. package/dist/ParagraphEditor-zLV44z-R.js +0 -797
  293. package/dist/SavedBlocksBrowserModal-B8DCFW7t.js +0 -360
  294. package/dist/TemplateScoringPanel-Ba9sgvjS.js +0 -273
  295. package/dist/TemplateSettings-Cu5X9DgA.js +0 -246
  296. package/dist/ToggleSwitch-DHweVJOr.js +0 -102
  297. package/dist/WrapperBlock-DiiaxpMb.js +0 -45
  298. package/dist/cdn/chunks/AiChatSidebar-yXJ85Zcg.js +0 -205
  299. package/dist/cdn/chunks/AiChatSidebar-yXJ85Zcg.js.map +0 -1
  300. package/dist/cdn/chunks/AiFeatureMenu-4ydjrhsQ.js +0 -57
  301. package/dist/cdn/chunks/AiFeatureMenu-4ydjrhsQ.js.map +0 -1
  302. package/dist/cdn/chunks/CloudHeaderExtras-DEkRww7n.js +0 -56
  303. package/dist/cdn/chunks/CloudHeaderExtras-DEkRww7n.js.map +0 -1
  304. package/dist/cdn/chunks/CloudPanels-XufhBZYF.js.map +0 -1
  305. package/dist/cdn/chunks/CollaborationNotices-CBvKEj1Q.js.map +0 -1
  306. package/dist/cdn/chunks/CommentsPanel-R8YLLO3v.js +0 -20
  307. package/dist/cdn/chunks/CommentsSidebar-96NZHVq3.js +0 -470
  308. package/dist/cdn/chunks/DesignReferenceSidebar-D14IIu_P.js +0 -229
  309. package/dist/cdn/chunks/DesignReferenceSidebar-D14IIu_P.js.map +0 -1
  310. package/dist/cdn/chunks/IssuesPanel-BoPiCLGc.js +0 -100
  311. package/dist/cdn/chunks/IssuesPanel-BoPiCLGc.js.map +0 -1
  312. package/dist/cdn/chunks/LogicTagInsertButton-BJ2t2vxC.js.map +0 -1
  313. package/dist/cdn/chunks/MediaEditModal-DD0SZ-S3.js.map +0 -1
  314. package/dist/cdn/chunks/MediaPanels-CkdJ_kGp.js +0 -45
  315. package/dist/cdn/chunks/ParagraphEditor-CJQjRHXV.js +0 -632
  316. package/dist/cdn/chunks/ParagraphEditor-CJQjRHXV.js.map +0 -1
  317. package/dist/cdn/chunks/SavedBlocksPanels-s_gxi1im.js +0 -38
  318. package/dist/cdn/chunks/TemplateScoringPanel-BBPnHILC.js +0 -237
  319. package/dist/cdn/chunks/TemplateScoringPanel-BBPnHILC.js.map +0 -1
  320. package/dist/cdn/chunks/TemplateSettings-CtrzzQWl.js +0 -208
  321. package/dist/cdn/chunks/TestEmailPanel-DERaCdpG.js +0 -35
  322. package/dist/cdn/chunks/TitleEditor-CEgxjtUX.js +0 -199
  323. package/dist/cdn/chunks/ToggleSwitch-DGQ7iRc-.js +0 -104
  324. package/dist/cdn/chunks/ToggleSwitch-DGQ7iRc-.js.map +0 -1
  325. package/dist/cdn/chunks/VersionHistoryPanels-DVOV8QLv.js +0 -48
  326. package/dist/cdn/chunks/WrapperBlock-CFuP4R0c.js +0 -47
  327. package/dist/cdn/chunks/blockTypeIcons-BnAd8qsP.js +0 -22
  328. package/dist/cdn/chunks/ca-DSJwJ5ov.js.map +0 -1
  329. package/dist/cdn/chunks/cloud-CI_fgDyy.js.map +0 -1
  330. package/dist/cdn/chunks/createCloudRuntime-DiYCJ21w.js +0 -358
  331. package/dist/cdn/chunks/createCloudRuntime-DiYCJ21w.js.map +0 -1
  332. package/dist/cdn/chunks/de-CBE6O79z.js.map +0 -1
  333. package/dist/cdn/chunks/de-D_atmUVB.js +0 -89
  334. package/dist/cdn/chunks/de-D_atmUVB.js.map +0 -1
  335. package/dist/cdn/chunks/draggable-akeQH_JP.js.map +0 -1
  336. package/dist/cdn/chunks/en-CDexnk0p.js.map +0 -1
  337. package/dist/cdn/chunks/en-DhJLnaBx.js +0 -89
  338. package/dist/cdn/chunks/en-DhJLnaBx.js.map +0 -1
  339. package/dist/cdn/chunks/en-Ve-PWSXu.js +0 -1
  340. package/dist/cdn/chunks/es-BE42B6uN.js.map +0 -1
  341. package/dist/cdn/chunks/fr-DlJFPDQR.js.map +0 -1
  342. package/dist/cdn/chunks/icons-CjlNV8xD.js.map +0 -1
  343. package/dist/cdn/chunks/ja-CUT8gkNI.js.map +0 -1
  344. package/dist/cdn/chunks/keys-UAWhQ3zW.js +0 -12
  345. package/dist/cdn/chunks/keys-UAWhQ3zW.js.map +0 -1
  346. package/dist/cdn/chunks/logger-ByvdoAwq.js.map +0 -1
  347. package/dist/cdn/chunks/pt-BR-2_H4-wlb.js.map +0 -1
  348. package/dist/cdn/chunks/pt-BR-BphMoUTw.js +0 -89
  349. package/dist/cdn/chunks/pt-BR-BphMoUTw.js.map +0 -1
  350. package/dist/cdn/chunks/socialIcons-CkZSYpoG.js.map +0 -1
  351. package/dist/cdn/chunks/src-B1e5SSYP.js +0 -1272
  352. package/dist/cdn/chunks/src-B1e5SSYP.js.map +0 -1
  353. package/dist/cdn/chunks/src-CvLTYGdO.js.map +0 -1
  354. package/dist/cdn/chunks/timeouts-o5Y9BuqI.js +0 -6
  355. package/dist/cdn/chunks/timeouts-o5Y9BuqI.js.map +0 -1
  356. package/dist/cdn/chunks/useAliveFlag-PuXh83UK.js +0 -12
  357. package/dist/cdn/chunks/useAliveFlag-PuXh83UK.js.map +0 -1
  358. package/dist/cdn/chunks/useEditorCore-DpCFvHg_.js +0 -2623
  359. package/dist/cdn/chunks/useEditorCore-DpCFvHg_.js.map +0 -1
  360. package/dist/cdn/chunks/useEditorRoot-5SBqm90x.js +0 -10
  361. package/dist/cdn/chunks/useScrollToBlock-MNzurEZV.js +0 -21
  362. package/dist/cdn/chunks/useScrollToBlock-MNzurEZV.js.map +0 -1
  363. package/dist/copy-CUC43md_.js +0 -19
  364. package/dist/createCloudRuntime-BMDRjL0k.js +0 -356
  365. package/dist/de-D_atmUVB.js +0 -87
  366. package/dist/dist-CCqn-RqE.js +0 -407
  367. package/dist/en-BHCMzqib.js +0 -1
  368. package/dist/en-DhJLnaBx.js +0 -87
  369. package/dist/image-up-BqiO7KCO.js +0 -27
  370. package/dist/keys-BymCnLHD.js +0 -10
  371. package/dist/plus-BDd0gTEm.js +0 -14
  372. package/dist/pt-BR-BphMoUTw.js +0 -87
  373. package/dist/shield-check-YhsbXfQc.js +0 -14
  374. package/dist/socialIcons-Bwv-49EB.js +0 -2167
  375. package/dist/timeouts-o5Y9BuqI.js +0 -4
  376. package/dist/upload-uU2cK0Ce.js +0 -21
  377. package/dist/useAliveFlag-BjP0Gxza.js +0 -10
  378. package/dist/useScrollToBlock-CdCQK9QQ.js +0 -47
@@ -0,0 +1,4392 @@
1
+ import { n as e } from "./rolldown-runtime-Y_bBpyJl.js";
2
+ import { $ as t, At as n, Ft as r, Rt as i, at as a, dt as o, et as s, ft as c, it as l, lt as u, mt as d, ot as f, pt as p, rt as m, st as h } from "./src-BNFnxfrA.js";
3
+ import { t as g } from "./htmlparser-CDRsn-gn.js";
4
+ //#region ../quality/src/types.ts
5
+ var ee = { minTextLength: 200 }, te = { maxHtmlBytes: 92160 }, ne = {
6
+ altMaxLength: 125,
7
+ minFontSize: 14,
8
+ allCapsMinLength: 20,
9
+ minTouchTargetPx: 44
10
+ }, re = [
11
+ "localhost",
12
+ "127.0.0.1",
13
+ "0.0.0.0",
14
+ "*.local",
15
+ "*.staging.*",
16
+ "*.dev.*"
17
+ ], ie = [
18
+ "bit.ly",
19
+ "buff.ly",
20
+ "cutt.ly",
21
+ "dub.sh",
22
+ "goo.gl",
23
+ "is.gd",
24
+ "lnkd.in",
25
+ "ow.ly",
26
+ "rb.gy",
27
+ "rebrand.ly",
28
+ "s.id",
29
+ "shorturl.at",
30
+ "t.co",
31
+ "t.ly",
32
+ "tiny.cc",
33
+ "tinyurl.com",
34
+ "v.gd"
35
+ ];
36
+ //#endregion
37
+ //#region ../quality/src/contrast.ts
38
+ function ae(e, t) {
39
+ let n = _(e), r = _(t);
40
+ if (!n || !r) return NaN;
41
+ let i = y(n), a = y(r), o = Math.max(i, a), s = Math.min(i, a);
42
+ return (o + .05) / (s + .05);
43
+ }
44
+ var oe = /^#?([0-9a-f])([0-9a-f])([0-9a-f])$/i, se = /^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i, ce = /^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i;
45
+ function _(e) {
46
+ if (typeof e != "string") return null;
47
+ let t = e.trim(), n = ce.exec(t);
48
+ if (n) return n[4].toLowerCase() === "ff" ? {
49
+ r: parseInt(n[1], 16),
50
+ g: parseInt(n[2], 16),
51
+ b: parseInt(n[3], 16)
52
+ } : null;
53
+ let r = se.exec(t);
54
+ if (r) return {
55
+ r: parseInt(r[1], 16),
56
+ g: parseInt(r[2], 16),
57
+ b: parseInt(r[3], 16)
58
+ };
59
+ let i = oe.exec(t);
60
+ return i ? {
61
+ r: parseInt(i[1] + i[1], 16),
62
+ g: parseInt(i[2] + i[2], 16),
63
+ b: parseInt(i[3] + i[3], 16)
64
+ } : null;
65
+ }
66
+ function v(e) {
67
+ return _(e ?? "") !== null;
68
+ }
69
+ function y({ r: e, g: t, b: n }) {
70
+ let r = b(e / 255), i = b(t / 255), a = b(n / 255);
71
+ return .2126 * r + .7152 * i + .0722 * a;
72
+ }
73
+ function b(e) {
74
+ return e <= .03928 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4;
75
+ }
76
+ //#endregion
77
+ //#region ../quality/src/walk.ts
78
+ var le = "#ffffff", ue = "#1a1a1a";
79
+ function x(e, t) {
80
+ let n = v(e.settings.backgroundColor) ? e.settings.backgroundColor.toLowerCase() : le, r = v(e.settings.textColor) ? e.settings.textColor.toLowerCase() : ue, i = (e, n) => {
81
+ let r = e.styles?.backgroundColor, a = v(r) ? r.toLowerCase() : n.resolvedBackgroundColor;
82
+ if (t(e, a === n.resolvedBackgroundColor ? n : {
83
+ ...n,
84
+ resolvedBackgroundColor: a
85
+ }), d(e)) for (let t of e.children) i(t, {
86
+ parent: e,
87
+ section: n.section,
88
+ columnIndex: null,
89
+ depth: n.depth + 1,
90
+ resolvedBackgroundColor: a,
91
+ resolvedTextColor: n.resolvedTextColor
92
+ });
93
+ else h(e) && e.children.forEach((t, r) => {
94
+ t.forEach((t) => i(t, {
95
+ parent: e,
96
+ section: e,
97
+ columnIndex: r,
98
+ depth: n.depth + 1,
99
+ resolvedBackgroundColor: a,
100
+ resolvedTextColor: n.resolvedTextColor
101
+ }));
102
+ });
103
+ };
104
+ for (let t of e.blocks) i(t, {
105
+ parent: null,
106
+ section: null,
107
+ columnIndex: null,
108
+ depth: 0,
109
+ resolvedBackgroundColor: n,
110
+ resolvedTextColor: r
111
+ });
112
+ }
113
+ //#endregion
114
+ //#region ../quality/src/run-rules.ts
115
+ function S(e, t, n, r) {
116
+ let i = [];
117
+ function a(e, i, a) {
118
+ let o = a.messageVariant ? `${e}.${a.messageVariant}` : e, s = r(n.locale, o, a.params);
119
+ return {
120
+ blockId: a.blockId,
121
+ ruleId: e,
122
+ severity: i,
123
+ ...s,
124
+ reference: t.find((t) => t.meta.id === e).meta.reference,
125
+ ...a.clients ? { clients: a.clients } : {},
126
+ ...a.excerpt ? { excerpt: a.excerpt } : {},
127
+ fix: a.fix
128
+ };
129
+ }
130
+ x(e, (e, r) => {
131
+ for (let o of t) {
132
+ let t = n.severity(o.meta.id);
133
+ if (t === "off" || !o.block) continue;
134
+ let s = o.block(e, r, n);
135
+ s !== null && i.push(a(o.meta.id, t, s));
136
+ }
137
+ });
138
+ for (let r of t) {
139
+ let t = n.severity(r.meta.id);
140
+ if (t === "off" || !r.template) continue;
141
+ let o = r.template(e, n);
142
+ for (let e of o) i.push(a(r.meta.id, t, e));
143
+ }
144
+ return i;
145
+ }
146
+ function C(e) {
147
+ let t = e.overrides ?? {}, n = {
148
+ ...ne,
149
+ ...e.thresholds ?? {}
150
+ }, r = { nonProductionHosts: e.nonProductionHosts ?? re }, i = {
151
+ minTextLength: e.deliverabilityThresholds?.minTextLength ?? ee.minTextLength,
152
+ shortenerHosts: e.shortenerHosts ?? ie
153
+ }, a = { maxHtmlBytes: e.compatibilityThresholds?.maxHtmlBytes ?? te.maxHtmlBytes }, o = e.locale ?? "en", s = e.rules;
154
+ return {
155
+ locale: o,
156
+ rules: t,
157
+ thresholds: n,
158
+ links: r,
159
+ deliverability: i,
160
+ compatibility: a,
161
+ severity: (e) => {
162
+ let n = t[e];
163
+ return n === void 0 ? s.find((t) => t.meta.id === e)?.meta.severity ?? "warning" : n;
164
+ }
165
+ };
166
+ }
167
+ function de(e, t, n) {
168
+ return C({
169
+ locale: e,
170
+ rules: n,
171
+ overrides: t.rules,
172
+ thresholds: void 0,
173
+ nonProductionHosts: void 0,
174
+ deliverabilityThresholds: t.thresholds,
175
+ shortenerHosts: t.shortenerHosts
176
+ });
177
+ }
178
+ function fe(e, t, n) {
179
+ return C({
180
+ locale: e,
181
+ rules: n,
182
+ overrides: t.rules,
183
+ thresholds: void 0,
184
+ nonProductionHosts: void 0,
185
+ compatibilityThresholds: t.thresholds
186
+ });
187
+ }
188
+ function pe(e, t, n) {
189
+ return C({
190
+ locale: e,
191
+ rules: n,
192
+ overrides: t.rules,
193
+ thresholds: t.thresholds,
194
+ nonProductionHosts: void 0
195
+ });
196
+ }
197
+ function me(e, t, n) {
198
+ return C({
199
+ locale: e,
200
+ rules: n,
201
+ overrides: t.rules,
202
+ thresholds: void 0,
203
+ nonProductionHosts: void 0
204
+ });
205
+ }
206
+ function he(e, t, n) {
207
+ return C({
208
+ locale: e,
209
+ rules: n,
210
+ overrides: t.rules,
211
+ thresholds: void 0,
212
+ nonProductionHosts: t.nonProductionHosts
213
+ });
214
+ }
215
+ //#endregion
216
+ //#region ../quality/src/accessibility/messages/de.ts
217
+ var ge = /* @__PURE__ */ e({ default: () => _e }), _e = {
218
+ "a11y.img-missing-alt": {
219
+ message: "Bild ohne Alt-Text.",
220
+ suggestion: "Füge eine kurze Beschreibung hinzu oder markiere das Bild als dekorativ."
221
+ },
222
+ "a11y.img-alt-is-filename": {
223
+ message: "Alt-Text sieht wie ein Dateiname aus (\"{alt}\").",
224
+ suggestion: "Beschreibe stattdessen kurz, was das Bild zeigt."
225
+ },
226
+ "a11y.img-alt-too-long": {
227
+ message: "Alt-Text ist {length} Zeichen lang.",
228
+ suggestion: "Halte den Alt-Text unter {max} Zeichen."
229
+ },
230
+ "a11y.img-decorative-needs-empty-alt": {
231
+ message: "Dekoratives Bild hat Alt-Text.",
232
+ suggestion: "Entferne den Alt-Text oder hebe die Markierung als dekorativ auf."
233
+ },
234
+ "a11y.img-linked-no-context": {
235
+ message: "Verlinktes Bild beschreibt nur das Motiv, nicht das Linkziel.",
236
+ suggestion: "Nenne das Ziel (z. B. „Frühlingssale ansehen“)."
237
+ },
238
+ "a11y.heading-empty": {
239
+ message: "Überschrift ist leer.",
240
+ suggestion: "Füge Text hinzu oder entferne den Block."
241
+ },
242
+ "a11y.heading-skip-level": {
243
+ message: "Überschrift springt von H{from} auf H{to}.",
244
+ suggestion: "Gehe jeweils nur eine Ebene weiter."
245
+ },
246
+ "a11y.heading-multiple-h1": {
247
+ message: "E-Mail enthält mehr als eine H1.",
248
+ suggestion: "Verwende H1 nur einmal für die Hauptüberschrift."
249
+ },
250
+ "a11y.link-empty": {
251
+ message: "Ein Link in diesem Block hat keinen Text und kein beschriebenes Bild.",
252
+ suggestion: "Ergänze Link-Text oder beschreibe das verlinkte Bild."
253
+ },
254
+ "a11y.link-vague-text": {
255
+ message: "Link-Text „{text}“ ist unspezifisch.",
256
+ suggestion: "Beschreibe stattdessen das Ziel."
257
+ },
258
+ "a11y.link-href-empty": {
259
+ message: "Ein Link in diesem Block hat ein leeres oder „#“-href.",
260
+ suggestion: "Ergänze eine Ziel-URL oder entferne den Link."
261
+ },
262
+ "a11y.link-target-blank-no-rel": {
263
+ message: "Link öffnet in neuem Tab, aber rel=\"noopener\" fehlt.",
264
+ suggestion: "Ergänze rel=\"noopener\", damit das Ziel nicht auf window.opener zugreifen kann."
265
+ },
266
+ "a11y.link-nested-anchor": {
267
+ message: "Ein Link liegt innerhalb eines anderen Links. Verschachtelte Anker sind ungültiges HTML und werden von E-Mail-Clients unterschiedlich gerendert.",
268
+ suggestion: "Fasse sie zu einem einzigen Anker zusammen."
269
+ },
270
+ "a11y.text-all-caps": {
271
+ message: "Längere Texte in Großbuchstaben sind schwerer lesbar.",
272
+ suggestion: "Verwende Groß- und Kleinschreibung."
273
+ },
274
+ "a11y.text-justified": {
275
+ message: "Blocksatz dehnt die Wortabstände zu ungleichmäßigen „Flüssen“ aus Leerraum, die für Menschen mit Legasthenie und Sehbeeinträchtigung am schwersten zu verfolgen sind.",
276
+ suggestion: "Verwende linksbündigen Text."
277
+ },
278
+ "a11y.text-low-contrast": {
279
+ message: "Überschriftskontrast beträgt {ratio}:1.",
280
+ suggestion: "Erhöhe den Kontrast für WCAG AA auf mindestens {required}:1."
281
+ },
282
+ "a11y.text-too-small": {
283
+ message: "Text ist {size}px groß.",
284
+ suggestion: "Erhöhe die Größe auf mindestens {min}px."
285
+ },
286
+ "a11y.button-vague-label": {
287
+ message: "Button-Beschriftung „{text}“ ist unspezifisch.",
288
+ suggestion: "Beschreibe die Aktion."
289
+ },
290
+ "a11y.button-touch-target": {
291
+ message: "Button ist etwa {height}px hoch.",
292
+ suggestion: "Erhöhe ihn auf mindestens {min}px, um Fehltipper auf Mobilgeräten zu vermeiden."
293
+ },
294
+ "a11y.button-low-contrast": {
295
+ message: "Buttontextkontrast beträgt {ratio}:1.",
296
+ suggestion: "Erhöhe den Kontrast für WCAG AA auf mindestens {required}:1."
297
+ },
298
+ "a11y.missing-preheader": {
299
+ message: "Kein Preheader-Text gesetzt, daher zeigen Postfächer Bruchstücke des ersten Blocks.",
300
+ suggestion: "Ergänze einen Preheader-Text als Vorschau auf die E-Mail."
301
+ }
302
+ }, ve = /* @__PURE__ */ e({ default: () => w }), w = {
303
+ "a11y.img-missing-alt": {
304
+ message: "Image is missing alt text.",
305
+ suggestion: "Add a short description, or mark the image as decorative."
306
+ },
307
+ "a11y.img-alt-is-filename": {
308
+ message: "Alt text looks like a filename (\"{alt}\").",
309
+ suggestion: "Replace with a short description of what the image conveys."
310
+ },
311
+ "a11y.img-alt-too-long": {
312
+ message: "Alt text is {length} characters.",
313
+ suggestion: "Keep alt text under {max} characters."
314
+ },
315
+ "a11y.img-decorative-needs-empty-alt": {
316
+ message: "Decorative image has alt text.",
317
+ suggestion: "Either clear the alt text or unmark the image as decorative."
318
+ },
319
+ "a11y.img-linked-no-context": {
320
+ message: "Linked image alt describes the image but not the link destination.",
321
+ suggestion: "Include where the link goes (e.g. 'Buy spring sale')."
322
+ },
323
+ "a11y.heading-empty": {
324
+ message: "Heading is empty.",
325
+ suggestion: "Add text or remove the block."
326
+ },
327
+ "a11y.heading-skip-level": {
328
+ message: "Heading jumps from H{from} to H{to}.",
329
+ suggestion: "Step one level at a time."
330
+ },
331
+ "a11y.heading-multiple-h1": {
332
+ message: "Email has more than one H1.",
333
+ suggestion: "Use H1 once for the main heading."
334
+ },
335
+ "a11y.link-empty": {
336
+ message: "A link in this block has no text and no described image.",
337
+ suggestion: "Add link text or describe the linked image."
338
+ },
339
+ "a11y.link-vague-text": {
340
+ message: "Link text \"{text}\" is vague.",
341
+ suggestion: "Describe the destination instead."
342
+ },
343
+ "a11y.link-href-empty": {
344
+ message: "A link in this block has an empty or '#' href.",
345
+ suggestion: "Add a destination URL or remove the link."
346
+ },
347
+ "a11y.link-target-blank-no-rel": {
348
+ message: "Link opens in a new tab but is missing rel=\"noopener\".",
349
+ suggestion: "Add rel=\"noopener\" to prevent the destination from accessing window.opener."
350
+ },
351
+ "a11y.link-nested-anchor": {
352
+ message: "A link is nested inside another link. Nested anchors are invalid HTML and clients render them inconsistently.",
353
+ suggestion: "Flatten them to a single anchor."
354
+ },
355
+ "a11y.text-all-caps": {
356
+ message: "Long all-caps text is harder to read for everyone.",
357
+ suggestion: "Use sentence case."
358
+ },
359
+ "a11y.text-justified": {
360
+ message: "Justified text stretches word spacing into uneven 'rivers' of white space, which is hardest to track for dyslexic and low-vision readers.",
361
+ suggestion: "Use left-aligned text."
362
+ },
363
+ "a11y.text-low-contrast": {
364
+ message: "Heading contrast is {ratio}:1.",
365
+ suggestion: "Increase contrast to at least {required}:1 for WCAG AA."
366
+ },
367
+ "a11y.text-too-small": {
368
+ message: "Text is {size}px.",
369
+ suggestion: "Increase the size to at least {min}px."
370
+ },
371
+ "a11y.button-vague-label": {
372
+ message: "Button label \"{text}\" is vague.",
373
+ suggestion: "Describe the action."
374
+ },
375
+ "a11y.button-touch-target": {
376
+ message: "Button is roughly {height}px tall.",
377
+ suggestion: "Increase its height to at least {min}px to avoid mis-taps on mobile."
378
+ },
379
+ "a11y.button-low-contrast": {
380
+ message: "Button text contrast is {ratio}:1.",
381
+ suggestion: "Increase contrast to at least {required}:1 for WCAG AA."
382
+ },
383
+ "a11y.missing-preheader": {
384
+ message: "No preheader text is set, so inboxes show fragments of the first block.",
385
+ suggestion: "Add preheader text that previews the email."
386
+ }
387
+ };
388
+ //#endregion
389
+ //#region ../quality/src/format-message.ts
390
+ function T(e, t) {
391
+ if (!t) return e;
392
+ let n = (e) => e.replace(/\{(\w+)\}/g, (e, n) => {
393
+ let r = t[n];
394
+ return r === void 0 ? `{${n}}` : String(r);
395
+ });
396
+ return {
397
+ message: n(e.message),
398
+ suggestion: n(e.suggestion)
399
+ };
400
+ }
401
+ //#endregion
402
+ //#region ../quality/src/accessibility/messages/index.ts
403
+ var ye = /* #__PURE__ */ Object.assign({
404
+ "./de.ts": ge,
405
+ "./en.ts": ve
406
+ }), E = {};
407
+ for (let e in ye) {
408
+ let t = /\.\/([^/]+)\.ts$/.exec(e);
409
+ if (!t) continue;
410
+ let n = t[1];
411
+ n !== "index" && (E[n] = ye[e].default);
412
+ }
413
+ function be(e) {
414
+ return E[e.split("-")[0]?.toLowerCase() ?? "en"] ?? E.en ?? w;
415
+ }
416
+ function xe(e, t, n) {
417
+ return T(be(e)[t] ?? w[t], n);
418
+ }
419
+ var Se = {
420
+ meta: {
421
+ id: "a11y.img-missing-alt",
422
+ reference: "https://www.w3.org/WAI/tutorials/images/",
423
+ severity: "error"
424
+ },
425
+ block(e) {
426
+ return !l(e) || e.decorative === !0 || (e.alt?.trim() ?? "") !== "" || (e.src ?? "").trim() === "" ? null : { blockId: e.id };
427
+ }
428
+ }, Ce = {
429
+ id: "a11y.img-alt-is-filename",
430
+ reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#images",
431
+ severity: "warning"
432
+ }, we = [
433
+ /\.(jpe?g|png|gif|webp|svg)$/i,
434
+ /^IMG[_-]?\d+/i,
435
+ /^Untitled/i,
436
+ /^Screen[\s_-]?Shot/i,
437
+ /^DSC[_-]?\d+/i
438
+ ], Te = {
439
+ meta: Ce,
440
+ block(e) {
441
+ if (!l(e) || e.decorative === !0) return null;
442
+ let t = e.alt?.trim() ?? "";
443
+ return t === "" || !we.some((e) => e.test(t)) ? null : {
444
+ blockId: e.id,
445
+ params: { alt: t }
446
+ };
447
+ }
448
+ }, Ee = {
449
+ meta: {
450
+ id: "a11y.img-alt-too-long",
451
+ reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#images",
452
+ severity: "warning"
453
+ },
454
+ block(e, t, n) {
455
+ if (!l(e) || e.decorative === !0) return null;
456
+ let r = e.alt ?? "";
457
+ return r.length <= n.thresholds.altMaxLength ? null : {
458
+ blockId: e.id,
459
+ params: {
460
+ length: r.length,
461
+ max: n.thresholds.altMaxLength
462
+ }
463
+ };
464
+ }
465
+ }, De = {
466
+ meta: {
467
+ id: "a11y.img-decorative-needs-empty-alt",
468
+ reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#images",
469
+ severity: "info"
470
+ },
471
+ block(e) {
472
+ return !l(e) || e.decorative !== !0 || (e.alt ?? "").trim() === "" ? null : {
473
+ blockId: e.id,
474
+ fix: {
475
+ description: "Clear alt text",
476
+ apply: (t) => t.updateBlock(e.id, { alt: "" })
477
+ }
478
+ };
479
+ }
480
+ }, Oe = /* @__PURE__ */ e({ default: () => ke }), ke = {
481
+ vagueLinkText: [
482
+ "hier klicken",
483
+ "hier",
484
+ "mehr lesen",
485
+ "mehr",
486
+ "weiter",
487
+ "weiterlesen",
488
+ "siehe mehr",
489
+ "dies",
490
+ "dieser link",
491
+ "link",
492
+ "klick"
493
+ ],
494
+ vagueButtonLabels: [
495
+ "hier klicken",
496
+ "klicken",
497
+ "senden",
498
+ "los",
499
+ "ok",
500
+ "okay",
501
+ "ja",
502
+ "nein"
503
+ ],
504
+ linkedImageActionHints: [
505
+ "kaufen",
506
+ "shoppen",
507
+ "ansehen",
508
+ "lesen",
509
+ "lernen",
510
+ "öffnen",
511
+ "los",
512
+ "sehen",
513
+ "entdecken",
514
+ "erkunden",
515
+ "stöbern",
516
+ "herunterladen",
517
+ "holen",
518
+ "abholen",
519
+ "einlösen",
520
+ "anschauen",
521
+ "jetzt"
522
+ ]
523
+ }, Ae = /* @__PURE__ */ e({ default: () => je }), je = {
524
+ vagueLinkText: [
525
+ "click here",
526
+ "here",
527
+ "read more",
528
+ "more",
529
+ "learn more",
530
+ "see more",
531
+ "this",
532
+ "this link",
533
+ "link",
534
+ "click"
535
+ ],
536
+ vagueButtonLabels: [
537
+ "click here",
538
+ "click",
539
+ "submit",
540
+ "go",
541
+ "ok",
542
+ "okay",
543
+ "yes",
544
+ "no"
545
+ ],
546
+ linkedImageActionHints: [
547
+ "buy",
548
+ "shop",
549
+ "view",
550
+ "read",
551
+ "learn",
552
+ "open",
553
+ "go",
554
+ "see",
555
+ "explore",
556
+ "discover",
557
+ "browse",
558
+ "download",
559
+ "get",
560
+ "claim",
561
+ "redeem",
562
+ "watch"
563
+ ]
564
+ }, D = /* #__PURE__ */ Object.assign({
565
+ "./de.ts": Oe,
566
+ "./en.ts": Ae
567
+ }), O = {};
568
+ for (let e in D) {
569
+ let t = /\.\/([^/]+)\.ts$/.exec(e);
570
+ if (!t) continue;
571
+ let n = t[1];
572
+ n !== "index" && (O[n] = D[e].default);
573
+ }
574
+ function k(e) {
575
+ return Me;
576
+ }
577
+ function A(e) {
578
+ let t = /* @__PURE__ */ new Set();
579
+ for (let n of Object.values(O)) for (let r of e(n)) t.add(r);
580
+ return Array.from(t);
581
+ }
582
+ var Me = {
583
+ vagueLinkText: A((e) => e.vagueLinkText),
584
+ vagueButtonLabels: A((e) => e.vagueButtonLabels),
585
+ linkedImageActionHints: A((e) => e.linkedImageActionHints)
586
+ };
587
+ function j(e) {
588
+ return e.toLowerCase().replace(/\s+/g, " ").replace(/^[^\p{L}\p{N}]+|[^\p{L}\p{N}]+$/gu, "").trim();
589
+ }
590
+ var Ne = {
591
+ meta: {
592
+ id: "a11y.img-linked-no-context",
593
+ reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#images",
594
+ severity: "warning"
595
+ },
596
+ block(e, t, n) {
597
+ if (!l(e) || e.decorative === !0 || !e.linkUrl || e.linkUrl.trim() === "") return null;
598
+ let r = (e.alt ?? "").trim();
599
+ if (r === "") return null;
600
+ let i = r.toLocaleLowerCase().split(/[^\p{L}\p{N}]+/u).filter(Boolean), a = k(n.locale).linkedImageActionHints;
601
+ return i.some((e) => a.includes(e)) ? null : { blockId: e.id };
602
+ }
603
+ };
604
+ //#endregion
605
+ //#region ../quality/src/html-utils.ts
606
+ function M(e) {
607
+ let t = [], n = null, r = "", i = () => {
608
+ n !== null && (n.text = r.trim(), t.push(n), n = null, r = "");
609
+ }, a = new g({
610
+ onopentag(e, t) {
611
+ e === "a" ? (i(), n = {
612
+ href: t.href ?? "",
613
+ text: "",
614
+ target: t.target ?? null,
615
+ rel: t.rel ?? null,
616
+ hasImageWithAlt: !1
617
+ }) : e === "img" && n !== null && (t.alt ?? "").trim() !== "" && (n.hasImageWithAlt = !0);
618
+ },
619
+ ontext(e) {
620
+ n !== null && (r += e);
621
+ },
622
+ onclosetag(e) {
623
+ e === "a" && i();
624
+ }
625
+ });
626
+ return a.write(e), a.end(), i(), t;
627
+ }
628
+ function Pe(e) {
629
+ let t = Fe(e).matchAll(/<\/?a\b[^<>]*>/gi), n = 0;
630
+ for (let e of t) if (e[0].startsWith("</")) n > 0 && n--;
631
+ else {
632
+ if (n > 0) return !0;
633
+ n++;
634
+ }
635
+ return !1;
636
+ }
637
+ function Fe(e) {
638
+ let t = "", n = 0;
639
+ for (; n < e.length;) {
640
+ let r = e.indexOf("<!--", n);
641
+ if (r === -1) {
642
+ t += e.substring(n);
643
+ break;
644
+ }
645
+ t += e.substring(n, r);
646
+ let i = e.indexOf("-->", r + 4);
647
+ if (i === -1) break;
648
+ n = i + 3;
649
+ }
650
+ return t;
651
+ }
652
+ function N(e) {
653
+ let t = "", n = new g({ ontext(e) {
654
+ t += e;
655
+ } });
656
+ return n.write(e), n.end(), t.trim();
657
+ }
658
+ var Ie = {
659
+ meta: {
660
+ id: "a11y.heading-empty",
661
+ reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#headings",
662
+ severity: "error"
663
+ },
664
+ block(e) {
665
+ return !c(e) || N(e.content ?? "") !== "" ? null : { blockId: e.id };
666
+ }
667
+ }, Le = {
668
+ id: "a11y.heading-skip-level",
669
+ reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#headings",
670
+ severity: "error"
671
+ };
672
+ function P(e, t) {
673
+ for (let n of e) if (c(n)) t.push(n);
674
+ else if (h(n)) for (let e of n.children) P(e, t);
675
+ }
676
+ var Re = {
677
+ meta: Le,
678
+ template(e) {
679
+ let t = [];
680
+ P(e.blocks, t);
681
+ let n = [], r = 0;
682
+ for (let e of t) r !== 0 && e.level > r + 1 && n.push({
683
+ blockId: e.id,
684
+ params: {
685
+ from: r,
686
+ to: e.level
687
+ }
688
+ }), r = e.level;
689
+ return n;
690
+ }
691
+ }, ze = {
692
+ id: "a11y.heading-multiple-h1",
693
+ reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#headings",
694
+ severity: "warning"
695
+ };
696
+ function F(e, t) {
697
+ for (let n of e) if (c(n)) t.push(n);
698
+ else if (h(n)) for (let e of n.children) F(e, t);
699
+ }
700
+ var Be = {
701
+ meta: ze,
702
+ template(e) {
703
+ let t = [];
704
+ F(e.blocks, t);
705
+ let n = t.filter((e) => e.level === 1);
706
+ return n.length <= 1 ? [] : n.slice(1).map((e) => ({ blockId: e.id }));
707
+ }
708
+ }, Ve = {
709
+ id: "a11y.link-empty",
710
+ reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#links",
711
+ severity: "error"
712
+ };
713
+ function He(e) {
714
+ return f(e) || c(e) ? e.content : null;
715
+ }
716
+ var Ue = {
717
+ meta: Ve,
718
+ block(e) {
719
+ let t = He(e);
720
+ return t === null || !M(t).find((e) => e.text === "" && !e.hasImageWithAlt) ? null : { blockId: e.id };
721
+ }
722
+ }, We = {
723
+ id: "a11y.link-vague-text",
724
+ reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#links",
725
+ severity: "warning"
726
+ };
727
+ function Ge(e) {
728
+ return f(e) || c(e) ? e.content : null;
729
+ }
730
+ var Ke = {
731
+ meta: We,
732
+ block(e, t, n) {
733
+ let r = Ge(e);
734
+ if (r === null) return null;
735
+ let i = k(n.locale).vagueLinkText, a = M(r).find((e) => {
736
+ let t = j(e.text);
737
+ return t !== "" && i.includes(t);
738
+ });
739
+ return a ? {
740
+ blockId: e.id,
741
+ params: { text: a.text }
742
+ } : null;
743
+ }
744
+ }, qe = {
745
+ id: "a11y.link-href-empty",
746
+ reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#links",
747
+ severity: "error"
748
+ };
749
+ function Je(e) {
750
+ return f(e) || c(e) ? e.content : null;
751
+ }
752
+ var Ye = {
753
+ meta: qe,
754
+ block(e) {
755
+ let t = Je(e);
756
+ return t === null || !M(t).find((e) => {
757
+ let t = e.href.trim();
758
+ return t === "" || t === "#";
759
+ }) ? null : { blockId: e.id };
760
+ }
761
+ }, Xe = {
762
+ id: "a11y.link-target-blank-no-rel",
763
+ reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#links",
764
+ severity: "warning"
765
+ };
766
+ function Ze(e) {
767
+ return f(e) || c(e) ? e.content : null;
768
+ }
769
+ function Qe(e) {
770
+ if (e === null) return !1;
771
+ let t = e.toLowerCase().split(/\s+/);
772
+ return t.includes("noopener") || t.includes("noreferrer");
773
+ }
774
+ var $e = {
775
+ meta: Xe,
776
+ block(e) {
777
+ let t = Ze(e);
778
+ return t === null || !M(t).find((e) => e.target === "_blank" && !Qe(e.rel)) ? null : {
779
+ blockId: e.id,
780
+ fix: {
781
+ description: "Add rel=\"noopener\"",
782
+ apply: (t) => {
783
+ if (!f(e) && !c(e)) return;
784
+ let n = nt(e.content ?? "");
785
+ t.updateBlock(e.id, { content: n });
786
+ }
787
+ }
788
+ };
789
+ }
790
+ }, I = /([^\s"'>/=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g;
791
+ function et(e) {
792
+ let t = [], n = new RegExp(I.source, I.flags), r;
793
+ for (; (r = n.exec(e)) !== null;) t.push({
794
+ raw: r[0],
795
+ name: r[1],
796
+ value: r[2] ?? r[3] ?? r[4] ?? null,
797
+ start: r.index
798
+ });
799
+ return t;
800
+ }
801
+ function tt(e) {
802
+ return e.some((e) => e.name.toLowerCase() === "target" && e.value !== null && e.value.toLowerCase() === "_blank");
803
+ }
804
+ function nt(e) {
805
+ return e.replace(/<a\b([^>]*)>/gi, (e, t) => {
806
+ let n = et(t);
807
+ if (!tt(n)) return e;
808
+ let r = n.find((e) => e.name.toLowerCase() === "rel");
809
+ if (r) {
810
+ let n = (r.value ?? "").toLowerCase().split(/\s+/);
811
+ if (n.includes("noopener") || n.includes("noreferrer")) return e;
812
+ let i = `${r.value ?? ""} noopener`.trim();
813
+ return `<a${t.slice(0, r.start)}rel="${i}"${t.slice(r.start + r.raw.length)}>`;
814
+ }
815
+ return `<a${t} rel="noopener">`;
816
+ });
817
+ }
818
+ //#endregion
819
+ //#region ../quality/src/accessibility/rules/link-nested-anchor.ts
820
+ var rt = {
821
+ id: "a11y.link-nested-anchor",
822
+ reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#links",
823
+ severity: "error"
824
+ };
825
+ function it(e) {
826
+ return f(e) || c(e) ? e.content : null;
827
+ }
828
+ var at = {
829
+ meta: rt,
830
+ block(e) {
831
+ let t = it(e);
832
+ return t === null || !Pe(t) ? null : { blockId: e.id };
833
+ }
834
+ }, ot = {
835
+ meta: {
836
+ id: "a11y.text-all-caps",
837
+ reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#text",
838
+ severity: "warning"
839
+ },
840
+ block(e, t, n) {
841
+ if (!f(e) && !c(e)) return null;
842
+ let r = N(e.content ?? "").replace(/[^\p{L}]/gu, "");
843
+ return r.length < n.thresholds.allCapsMinLength || ![...r].some((e) => e.toLocaleLowerCase() !== e.toLocaleUpperCase()) || r !== r.toLocaleUpperCase() ? null : { blockId: e.id };
844
+ }
845
+ }, st = {
846
+ id: "a11y.text-justified",
847
+ reference: "https://www.w3.org/WAI/WCAG21/Understanding/visual-presentation",
848
+ severity: "warning"
849
+ }, ct = /(^|;)\s*text-align\s*:\s*([^;]*)/i, L = /\sstyle\s*=\s*(?:"([^"]*)"|'([^']*)')/gi;
850
+ function lt(e) {
851
+ let t = [], n = new RegExp(L.source, L.flags), r;
852
+ for (; (r = n.exec(e)) !== null;) t.push(r[1] ?? r[2] ?? "");
853
+ return t;
854
+ }
855
+ function ut(e) {
856
+ let t = ct.exec(e);
857
+ return t !== null && t[2].trim().toLowerCase() === "justify";
858
+ }
859
+ function dt(e) {
860
+ return e.split(";").filter((e) => !/^\s*text-align\s*:/i.test(e)).map((e) => e.trim()).filter((e) => e !== "").join("; ");
861
+ }
862
+ function ft(e) {
863
+ return e.replace(/\sstyle\s*=\s*(?:"([^"]*)"|'([^']*)')/gi, (e, t, n) => {
864
+ let r = t ?? n ?? "";
865
+ if (!ut(r)) return e;
866
+ let i = dt(r);
867
+ return i === "" ? "" : ` style="${i}"`;
868
+ });
869
+ }
870
+ var pt = {
871
+ meta: st,
872
+ block(e) {
873
+ return !f(e) || !lt(e.content ?? "").some(ut) ? null : {
874
+ blockId: e.id,
875
+ fix: {
876
+ description: "Remove justified alignment",
877
+ apply: (t) => {
878
+ f(e) && t.updateBlock(e.id, { content: ft(e.content ?? "") });
879
+ }
880
+ }
881
+ };
882
+ }
883
+ }, mt = {
884
+ meta: {
885
+ id: "a11y.text-low-contrast",
886
+ reference: "https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum",
887
+ severity: "error"
888
+ },
889
+ block(e, t) {
890
+ if (!c(e)) return null;
891
+ let n = e.color ?? t.resolvedTextColor;
892
+ if (!v(n) || !v(t.resolvedBackgroundColor)) return null;
893
+ let r = i[e.level] >= 24 ? 3 : 4.5, a = ae(n, t.resolvedBackgroundColor);
894
+ return Number.isNaN(a) || a >= r ? null : {
895
+ blockId: e.id,
896
+ params: {
897
+ ratio: a.toFixed(2),
898
+ required: r
899
+ }
900
+ };
901
+ }
902
+ }, ht = {
903
+ id: "a11y.text-too-small",
904
+ reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#text",
905
+ severity: "warning"
906
+ };
907
+ function gt(e) {
908
+ return a(e) || o(e) ? e.fontSize : null;
909
+ }
910
+ //#endregion
911
+ //#region ../quality/src/accessibility/index.ts
912
+ var _t = [
913
+ Se,
914
+ Te,
915
+ Ee,
916
+ De,
917
+ Ne,
918
+ Ie,
919
+ Re,
920
+ Be,
921
+ Ue,
922
+ Ke,
923
+ Ye,
924
+ $e,
925
+ at,
926
+ ot,
927
+ pt,
928
+ mt,
929
+ {
930
+ meta: ht,
931
+ block(e, t, n) {
932
+ let r = gt(e);
933
+ return r === null || r >= n.thresholds.minFontSize ? null : {
934
+ blockId: e.id,
935
+ params: {
936
+ size: r,
937
+ min: n.thresholds.minFontSize
938
+ }
939
+ };
940
+ }
941
+ },
942
+ {
943
+ meta: {
944
+ id: "a11y.button-vague-label",
945
+ reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#buttons",
946
+ severity: "warning"
947
+ },
948
+ block(e, n, r) {
949
+ if (!t(e)) return null;
950
+ let i = j(e.text ?? "");
951
+ return i === "" || !k(r.locale).vagueButtonLabels.includes(i) ? null : {
952
+ blockId: e.id,
953
+ params: { text: e.text }
954
+ };
955
+ }
956
+ },
957
+ {
958
+ meta: {
959
+ id: "a11y.button-touch-target",
960
+ reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#buttons",
961
+ severity: "warning"
962
+ },
963
+ block(e, n, r) {
964
+ if (!t(e)) return null;
965
+ let i = e.buttonPadding;
966
+ if (!i) return null;
967
+ let a = e.fontSize * 1.4 + i.top + i.bottom;
968
+ return a >= r.thresholds.minTouchTargetPx ? null : {
969
+ blockId: e.id,
970
+ params: {
971
+ height: Math.round(a),
972
+ min: r.thresholds.minTouchTargetPx
973
+ }
974
+ };
975
+ }
976
+ },
977
+ {
978
+ meta: {
979
+ id: "a11y.button-low-contrast",
980
+ reference: "https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum",
981
+ severity: "error"
982
+ },
983
+ block(e) {
984
+ if (!t(e)) return null;
985
+ let n = ae(e.textColor, e.backgroundColor);
986
+ if (Number.isNaN(n)) return null;
987
+ let r = e.fontSize >= 24 ? 3 : 4.5;
988
+ return n >= r ? null : {
989
+ blockId: e.id,
990
+ params: {
991
+ ratio: n.toFixed(2),
992
+ required: r
993
+ }
994
+ };
995
+ }
996
+ },
997
+ {
998
+ meta: {
999
+ id: "a11y.missing-preheader",
1000
+ reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#template-level",
1001
+ severity: "info"
1002
+ },
1003
+ template(e) {
1004
+ return (e.settings.preheaderText?.trim() ?? "") === "" ? [{ blockId: null }] : [];
1005
+ }
1006
+ }
1007
+ ];
1008
+ function vt(e, t = {}) {
1009
+ return t.disabled === !0 || t.accessibility === !1 ? [] : S(e, _t, pe(t.locale, t.accessibility ?? {}, _t), (e, t, n) => xe(e, t, n));
1010
+ }
1011
+ //#endregion
1012
+ //#region ../quality/src/structure/messages/de.ts
1013
+ var yt = /* @__PURE__ */ e({ default: () => bt }), bt = {
1014
+ "structure.duplicate-block-id": {
1015
+ message: "Block-ID erscheint {count}-mal im Baum.",
1016
+ suggestion: "Gib jedem Block eine eindeutige ID."
1017
+ },
1018
+ "structure.section-column-mismatch": {
1019
+ message: "Sektion verwendet Layout „{layout}\" (erwartet {expected} Spalten), hat aber {actual}.",
1020
+ suggestion: "Stelle {expected} Spalten wieder her oder wähle ein passendes Layout, um den beschädigten Zustand zu beheben."
1021
+ },
1022
+ "structure.nested-section": {
1023
+ message: "Sektion ist in einer anderen Sektion verschachtelt. Sektionen können nicht verschachtelt werden; der Renderer wird sich falsch verhalten.",
1024
+ suggestion: "Verschiebe die innere Sektion aus ihrer übergeordneten Sektion."
1025
+ },
1026
+ "structure.empty-section": {
1027
+ message: "Sektion enthält keine Blöcke.",
1028
+ suggestion: "Entferne sie oder füge Inhalt hinzu."
1029
+ },
1030
+ "structure.empty-column": {
1031
+ message: "Spalte {columnIndex} dieser Sektion ist leer.",
1032
+ suggestion: "Füge Inhalt hinzu oder reduziere die Spaltenanzahl."
1033
+ },
1034
+ "structure.wrapper-color-over-background-image": {
1035
+ message: "Outlook unter Windows malt die Hintergrundfarbe des Wrappers über das Hintergrundbild dieser Sektion.",
1036
+ suggestion: "Entferne die Wrapper-Farbe oder lege das Bild auf den Wrapper."
1037
+ },
1038
+ "structure.nested-background-image": {
1039
+ message: "Diese Sektion und ihr Wrapper haben beide ein Hintergrundbild. Outlook unter Windows kann sie nicht übereinanderlegen und zerstört das Layout.",
1040
+ suggestion: "Behalte das Bild nur auf einem von beiden."
1041
+ },
1042
+ "structure.hero-not-applied.columns": {
1043
+ message: "Der Hero-Modus braucht eine einspaltige Sektion, deshalb wird diese Sektion als normale Sektion dargestellt.",
1044
+ suggestion: "Stelle wieder eine Spalte ein oder schalte den Hero-Modus aus."
1045
+ },
1046
+ "structure.hero-not-applied.image": {
1047
+ message: "Der Hero-Modus braucht ein Hintergrundbild, deshalb wird diese Sektion bis dahin als normale Sektion dargestellt.",
1048
+ suggestion: "Ergänze ein Hintergrundbild oder schalte den Hero-Modus aus."
1049
+ },
1050
+ "structure.hero-not-applied.size": {
1051
+ message: "Der Hero-Modus kann die Form dieses Hintergrundbilds nicht übernehmen, weil seine Größe unbekannt ist (eine Merge-Tag-URL oder ein Bild, das der Editor nicht vermessen hat), deshalb wird die Sektion als normale Sektion dargestellt.",
1052
+ suggestion: "Gib ihr eine feste Höhe oder trage die Größe der Bilddatei ein."
1053
+ }
1054
+ }, xt = /* @__PURE__ */ e({ default: () => R }), R = {
1055
+ "structure.duplicate-block-id": {
1056
+ message: "Block id appears {count} times in the tree.",
1057
+ suggestion: "Give each block a unique id."
1058
+ },
1059
+ "structure.section-column-mismatch": {
1060
+ message: "Section uses layout \"{layout}\" (expects {expected} columns) but has {actual}.",
1061
+ suggestion: "Restore {expected} columns or choose a matching layout to repair the corrupted state."
1062
+ },
1063
+ "structure.nested-section": {
1064
+ message: "Section is nested inside another section. Sections cannot nest; the renderer will misbehave.",
1065
+ suggestion: "Move the inner section outside its parent."
1066
+ },
1067
+ "structure.empty-section": {
1068
+ message: "Section has no blocks.",
1069
+ suggestion: "Remove it or add content."
1070
+ },
1071
+ "structure.empty-column": {
1072
+ message: "Column {columnIndex} of this section is empty.",
1073
+ suggestion: "Add content or reduce the column count."
1074
+ },
1075
+ "structure.wrapper-color-over-background-image": {
1076
+ message: "Outlook on Windows paints the wrapper's background color over this section's background image.",
1077
+ suggestion: "Remove the wrapper color or put the image on the wrapper."
1078
+ },
1079
+ "structure.nested-background-image": {
1080
+ message: "This section and its wrapper both have a background image. Outlook on Windows can't layer them and breaks the layout.",
1081
+ suggestion: "Keep the image on one of them."
1082
+ },
1083
+ "structure.hero-not-applied.columns": {
1084
+ message: "Hero mode needs a one-column section, so this section renders as a regular one.",
1085
+ suggestion: "Switch it back to one column, or turn hero mode off."
1086
+ },
1087
+ "structure.hero-not-applied.image": {
1088
+ message: "Hero mode needs a background image, so this section renders as a regular one until it has one.",
1089
+ suggestion: "Add a background image or turn hero mode off."
1090
+ },
1091
+ "structure.hero-not-applied.size": {
1092
+ message: "Hero mode can't match this background image's shape because its size is unknown (a merge-tag URL, or an image the editor didn't measure), so the section renders as a regular one.",
1093
+ suggestion: "Give it a fixed height, or set the image file's size."
1094
+ }
1095
+ }, St = /* #__PURE__ */ Object.assign({
1096
+ "./de.ts": yt,
1097
+ "./en.ts": xt
1098
+ }), z = {};
1099
+ for (let e in St) {
1100
+ let t = /\.\/([^/]+)\.ts$/.exec(e);
1101
+ if (!t) continue;
1102
+ let n = t[1];
1103
+ n !== "index" && (z[n] = St[e].default);
1104
+ }
1105
+ function Ct(e) {
1106
+ return z[e.split("-")[0]?.toLowerCase() ?? "en"] ?? z.en ?? R;
1107
+ }
1108
+ function wt(e, t, n) {
1109
+ return T(Ct(e)[t] ?? R[t], n);
1110
+ }
1111
+ //#endregion
1112
+ //#region ../quality/src/structure/rules/duplicate-block-id.ts
1113
+ var Tt = {
1114
+ id: "structure.duplicate-block-id",
1115
+ reference: "https://docs.templatical.com/quality/structure/rule-catalog#tree-integrity",
1116
+ severity: "error"
1117
+ };
1118
+ function Et(e, t) {
1119
+ for (let n of e) if (t.set(n.id, (t.get(n.id) ?? 0) + 1), h(n)) for (let e of n.children) Et(e, t);
1120
+ }
1121
+ var Dt = {
1122
+ meta: Tt,
1123
+ template(e) {
1124
+ let t = /* @__PURE__ */ new Map();
1125
+ Et(e.blocks, t);
1126
+ let n = [];
1127
+ for (let [e, r] of t) r > 1 && n.push({
1128
+ blockId: e,
1129
+ params: { count: r }
1130
+ });
1131
+ return n;
1132
+ }
1133
+ }, Ot = {
1134
+ id: "structure.empty-column",
1135
+ reference: "https://docs.templatical.com/quality/structure/rule-catalog#content-presence",
1136
+ severity: "warning"
1137
+ };
1138
+ function kt(e, t) {
1139
+ for (let n of e) {
1140
+ if (!h(n)) continue;
1141
+ let e = n;
1142
+ e.children.length > 1 && e.children.forEach((n, r) => {
1143
+ n.length === 0 && t.push({
1144
+ blockId: e.id,
1145
+ params: { columnIndex: r + 1 }
1146
+ });
1147
+ });
1148
+ for (let n of e.children) kt(n, t);
1149
+ }
1150
+ }
1151
+ var At = {
1152
+ meta: Ot,
1153
+ template(e) {
1154
+ let t = [];
1155
+ return kt(e.blocks, t), t;
1156
+ }
1157
+ }, jt = {
1158
+ id: "structure.empty-section",
1159
+ reference: "https://docs.templatical.com/quality/structure/rule-catalog#content-presence",
1160
+ severity: "warning"
1161
+ };
1162
+ function Mt(e) {
1163
+ return e.children.length === 0 || e.children.every((e) => e.length === 0);
1164
+ }
1165
+ var Nt = {
1166
+ meta: jt,
1167
+ block(e) {
1168
+ if (!h(e)) return null;
1169
+ let t = e;
1170
+ return Mt(t) ? {
1171
+ blockId: t.id,
1172
+ fix: {
1173
+ description: "Remove the empty section",
1174
+ apply: (e) => {
1175
+ e.removeBlock(t.id);
1176
+ }
1177
+ }
1178
+ } : null;
1179
+ }
1180
+ }, Pt = {
1181
+ meta: {
1182
+ id: "structure.hero-not-applied",
1183
+ reference: "https://docs.templatical.com/quality/structure/rule-catalog#content-presence",
1184
+ severity: "warning",
1185
+ messageVariants: [
1186
+ "columns",
1187
+ "image",
1188
+ "size"
1189
+ ]
1190
+ },
1191
+ block(e) {
1192
+ if (!h(e)) return null;
1193
+ let t = n(e);
1194
+ return t === null || t.applied ? null : {
1195
+ blockId: e.id,
1196
+ messageVariant: t.reason
1197
+ };
1198
+ }
1199
+ };
1200
+ //#endregion
1201
+ //#region ../quality/src/structure/band.ts
1202
+ function Ft(e, t) {
1203
+ return e.wrapper ? e.wrapper : t.parent && d(t.parent) ? {
1204
+ backgroundColor: t.parent.styles?.backgroundColor,
1205
+ backgroundImage: t.parent.backgroundImage
1206
+ } : null;
1207
+ }
1208
+ function It(e) {
1209
+ if (typeof e != "string") return !1;
1210
+ let t = e.trim().toLowerCase();
1211
+ return t !== "" && t !== "transparent";
1212
+ }
1213
+ var Lt = {
1214
+ meta: {
1215
+ id: "structure.nested-background-image",
1216
+ reference: "https://docs.templatical.com/quality/structure/rule-catalog#email-client-compatibility",
1217
+ severity: "warning"
1218
+ },
1219
+ block(e, t) {
1220
+ if (!h(e) || r(e.backgroundImage) === null) return null;
1221
+ let n = Ft(e, t);
1222
+ return n === null || r(n.backgroundImage) === null ? null : { blockId: e.id };
1223
+ }
1224
+ }, Rt = {
1225
+ meta: {
1226
+ id: "structure.nested-section",
1227
+ reference: "https://docs.templatical.com/quality/structure/rule-catalog#tree-integrity",
1228
+ severity: "error"
1229
+ },
1230
+ block(e, t) {
1231
+ return !h(e) || t.section === null ? null : {
1232
+ blockId: e.id,
1233
+ params: { parentId: t.section.id }
1234
+ };
1235
+ }
1236
+ }, zt = {
1237
+ id: "structure.section-column-mismatch",
1238
+ reference: "https://docs.templatical.com/quality/structure/rule-catalog#section-layout",
1239
+ severity: "error"
1240
+ };
1241
+ function Bt(e) {
1242
+ return e === "1" ? 1 : e === "3" ? 3 : 2;
1243
+ }
1244
+ //#endregion
1245
+ //#region ../quality/src/structure/index.ts
1246
+ var Vt = [
1247
+ Dt,
1248
+ Nt,
1249
+ At,
1250
+ Rt,
1251
+ {
1252
+ meta: zt,
1253
+ block(e) {
1254
+ if (!h(e)) return null;
1255
+ let t = e, n = Bt(t.columns), r = t.children.length;
1256
+ return r === n ? null : {
1257
+ blockId: t.id,
1258
+ params: {
1259
+ layout: t.columns,
1260
+ expected: n,
1261
+ actual: r
1262
+ }
1263
+ };
1264
+ }
1265
+ },
1266
+ {
1267
+ meta: {
1268
+ id: "structure.wrapper-color-over-background-image",
1269
+ reference: "https://docs.templatical.com/quality/structure/rule-catalog#email-client-compatibility",
1270
+ severity: "warning"
1271
+ },
1272
+ block(e, t) {
1273
+ if (!h(e) || r(e.backgroundImage) === null) return null;
1274
+ let n = Ft(e, t);
1275
+ return n === null || !It(n.backgroundColor) ? null : { blockId: e.id };
1276
+ }
1277
+ },
1278
+ Lt,
1279
+ Pt
1280
+ ];
1281
+ function Ht(e, t = {}) {
1282
+ return t.disabled === !0 || t.structure === !1 ? [] : S(e, Vt, me(t.locale, t.structure ?? {}, Vt), (e, t, n) => wt(e, t, n));
1283
+ }
1284
+ //#endregion
1285
+ //#region ../quality/src/links/messages/de.ts
1286
+ var Ut = /* @__PURE__ */ e({ default: () => Wt }), Wt = {
1287
+ "link.javascript-protocol": {
1288
+ message: "Die URL verwendet das Protokoll „{protocol}:\", das beliebigen Skriptcode ausführen kann und aus Sicherheitsgründen beim Rendern entfernt wird.",
1289
+ suggestion: "Ersetze sie durch eine echte URL oder entferne sie."
1290
+ },
1291
+ "link.unsupported-protocol": {
1292
+ message: "Die URL verwendet das Protokoll „{protocol}\", das von den meisten E-Mail-Clients nicht unterstützt wird.",
1293
+ suggestion: "Verwende http, https, mailto, tel oder sms."
1294
+ },
1295
+ "link.malformed-mailto": {
1296
+ message: "mailto:-Link ist fehlerhaft.",
1297
+ suggestion: "Setze eine einzelne Empfängeradresse vor die Abfragezeichenfolge (z. B. mailto:hello@example.com)."
1298
+ },
1299
+ "link.malformed-tel": {
1300
+ message: "tel:-Link enthält andere Zeichen als Ziffern, +, Leerzeichen, Bindestriche, Klammern oder Punkte.",
1301
+ suggestion: "Verwende in der Telefonnummer nur Ziffern, +, Leerzeichen, Bindestriche, Klammern oder Punkte."
1302
+ },
1303
+ "link.localhost-or-staging": {
1304
+ message: "Der URL-Host „{host}\" entspricht einem Nicht-Produktionsmuster.",
1305
+ suggestion: "Ersetze ihn vor dem Versand durch die Produktions-URL."
1306
+ },
1307
+ "link.relative-url": {
1308
+ message: "Die URL „{url}\" ist relativ. Eine versendete E-Mail hat keine Seitenadresse, gegen die sie aufgelöst werden kann, daher funktioniert der Link nicht.",
1309
+ suggestion: "Verwende eine absolute URL (https://…)."
1310
+ }
1311
+ }, Gt = /* @__PURE__ */ e({ default: () => B }), B = {
1312
+ "link.javascript-protocol": {
1313
+ message: "URL uses the \"{protocol}:\" protocol, which can execute arbitrary script and is stripped at render time for safety.",
1314
+ suggestion: "Replace it with a real link or remove the URL."
1315
+ },
1316
+ "link.unsupported-protocol": {
1317
+ message: "URL uses the \"{protocol}\" protocol, which most email clients do not support.",
1318
+ suggestion: "Use http, https, mailto, tel, or sms."
1319
+ },
1320
+ "link.malformed-mailto": {
1321
+ message: "mailto: link is malformed.",
1322
+ suggestion: "Put a single recipient address before any query string (e.g. mailto:hello@example.com)."
1323
+ },
1324
+ "link.malformed-tel": {
1325
+ message: "tel: link contains characters that are not digits, +, spaces, dashes, parentheses, or dots.",
1326
+ suggestion: "Use only digits, +, spaces, dashes, parentheses, or dots in the phone number."
1327
+ },
1328
+ "link.localhost-or-staging": {
1329
+ message: "URL host \"{host}\" matches a non-production pattern.",
1330
+ suggestion: "Replace with the production URL before sending."
1331
+ },
1332
+ "link.relative-url": {
1333
+ message: "URL \"{url}\" is relative. A sent email has no page address to resolve it against, so the link breaks.",
1334
+ suggestion: "Use an absolute URL (https://…)."
1335
+ }
1336
+ }, Kt = /* #__PURE__ */ Object.assign({
1337
+ "./de.ts": Ut,
1338
+ "./en.ts": Gt
1339
+ }), V = {};
1340
+ for (let e in Kt) {
1341
+ let t = /\.\/([^/]+)\.ts$/.exec(e);
1342
+ if (!t) continue;
1343
+ let n = t[1];
1344
+ n !== "index" && (V[n] = Kt[e].default);
1345
+ }
1346
+ function qt(e) {
1347
+ return V[e.split("-")[0]?.toLowerCase() ?? "en"] ?? V.en ?? B;
1348
+ }
1349
+ function Jt(e, t, n) {
1350
+ return T(qt(e)[t] ?? B[t], n);
1351
+ }
1352
+ //#endregion
1353
+ //#region ../quality/src/url-walker.ts
1354
+ function H(e) {
1355
+ let n = [];
1356
+ return x(e, (e) => {
1357
+ if (c(e) || f(e) || m(e)) for (let t of M(e.content)) n.push({
1358
+ url: t.href,
1359
+ blockId: e.id,
1360
+ source: "anchor",
1361
+ label: t.text
1362
+ });
1363
+ else if (t(e)) n.push({
1364
+ url: e.url,
1365
+ blockId: e.id,
1366
+ source: "button",
1367
+ label: e.text
1368
+ });
1369
+ else if (l(e)) e.linkUrl && e.linkUrl !== "" && n.push({
1370
+ url: e.linkUrl,
1371
+ blockId: e.id,
1372
+ source: "image-link",
1373
+ label: e.alt || void 0
1374
+ });
1375
+ else if (p(e)) n.push({
1376
+ url: e.url,
1377
+ blockId: e.id,
1378
+ source: "video",
1379
+ label: e.alt || void 0
1380
+ });
1381
+ else if (a(e)) for (let t of e.items) n.push({
1382
+ url: t.url,
1383
+ blockId: e.id,
1384
+ source: "menu-item",
1385
+ label: t.text
1386
+ });
1387
+ else if (u(e)) for (let t of e.icons) n.push({
1388
+ url: t.url,
1389
+ blockId: e.id,
1390
+ source: "social-icon",
1391
+ label: t.platform
1392
+ });
1393
+ }), n;
1394
+ }
1395
+ //#endregion
1396
+ //#region ../quality/src/links/rules/javascript-protocol.ts
1397
+ var Yt = {
1398
+ id: "link.javascript-protocol",
1399
+ reference: "https://docs.templatical.com/quality/links/rule-catalog#dangerous-protocols",
1400
+ severity: "error"
1401
+ }, Xt = [
1402
+ "javascript",
1403
+ "data",
1404
+ "vbscript"
1405
+ ];
1406
+ function Zt(e) {
1407
+ if (!e) return null;
1408
+ let t = e.replace(/\s+/g, "");
1409
+ for (let e of Xt) if (RegExp(`^${e}:`, "i").test(t)) return e;
1410
+ return null;
1411
+ }
1412
+ var Qt = {
1413
+ meta: Yt,
1414
+ template(e) {
1415
+ let t = [];
1416
+ for (let n of H(e)) {
1417
+ let e = Zt(n.url);
1418
+ e !== null && t.push({
1419
+ blockId: n.blockId,
1420
+ params: { protocol: e }
1421
+ });
1422
+ }
1423
+ return t;
1424
+ }
1425
+ }, $t = {
1426
+ id: "link.unsupported-protocol",
1427
+ reference: "https://docs.templatical.com/quality/links/rule-catalog#unsupported-protocols",
1428
+ severity: "warning"
1429
+ }, en = /* @__PURE__ */ new Set([
1430
+ "http",
1431
+ "https",
1432
+ "mailto",
1433
+ "tel",
1434
+ "sms"
1435
+ ]), tn = new Set(Xt);
1436
+ function nn(e) {
1437
+ if (!e) return null;
1438
+ let t = e.trim(), n = /^([a-z][a-z0-9+\-.]*):/i.exec(t);
1439
+ return n ? n[1].toLowerCase() : null;
1440
+ }
1441
+ var rn = {
1442
+ meta: $t,
1443
+ template(e) {
1444
+ let t = [];
1445
+ for (let n of H(e)) {
1446
+ let e = nn(n.url);
1447
+ e !== null && (tn.has(e) || en.has(e) || t.push({
1448
+ blockId: n.blockId,
1449
+ params: { protocol: e }
1450
+ }));
1451
+ }
1452
+ return t;
1453
+ }
1454
+ }, an = {
1455
+ id: "link.malformed-mailto",
1456
+ reference: "https://docs.templatical.com/quality/links/rule-catalog#malformed-uris",
1457
+ severity: "warning"
1458
+ };
1459
+ function on(e) {
1460
+ let t = e.trim();
1461
+ if (!/^mailto:/i.test(t)) return !1;
1462
+ let [n] = t.slice(7).split("?", 2);
1463
+ if (n.trim() === "") return !0;
1464
+ let r = n.split(",").map((e) => e.trim());
1465
+ for (let e of r) {
1466
+ if (e === "") return !0;
1467
+ let t = e.split("@");
1468
+ if (t.length !== 2) return !0;
1469
+ let [n, r] = t;
1470
+ if (n === "" || r === "" || !r.includes(".")) return !0;
1471
+ }
1472
+ return !1;
1473
+ }
1474
+ var sn = {
1475
+ meta: an,
1476
+ template(e) {
1477
+ let t = [];
1478
+ for (let n of H(e)) on(n.url) && t.push({ blockId: n.blockId });
1479
+ return t;
1480
+ }
1481
+ }, cn = {
1482
+ id: "link.malformed-tel",
1483
+ reference: "https://docs.templatical.com/quality/links/rule-catalog#malformed-uris",
1484
+ severity: "warning"
1485
+ }, ln = /^[+0-9\s().\-]+$/, un = /^[A-Za-z0-9-]+(=[^;]+)?$/;
1486
+ function dn(e) {
1487
+ let t = e.trim();
1488
+ if (!/^tel:/i.test(t)) return !1;
1489
+ let n = t.slice(4).trim();
1490
+ if (n === "") return !0;
1491
+ let [r, ...i] = n.split(";");
1492
+ return !ln.test(r) || i.some((e) => !un.test(e));
1493
+ }
1494
+ var fn = {
1495
+ meta: cn,
1496
+ template(e) {
1497
+ let t = [];
1498
+ for (let n of H(e)) dn(n.url) && t.push({ blockId: n.blockId });
1499
+ return t;
1500
+ }
1501
+ }, pn = {
1502
+ id: "link.localhost-or-staging",
1503
+ reference: "https://docs.templatical.com/quality/links/rule-catalog#environment-leaks",
1504
+ severity: "warning"
1505
+ };
1506
+ function mn(e) {
1507
+ let t = e.replace(/[.+?^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*");
1508
+ return RegExp(`^${t}$`, "i");
1509
+ }
1510
+ function hn(e) {
1511
+ if (!e) return null;
1512
+ let t = e.trim();
1513
+ if (!/^(https?|ftps?):\/\//i.test(t)) return null;
1514
+ try {
1515
+ return new URL(t).hostname.toLowerCase();
1516
+ } catch {
1517
+ return null;
1518
+ }
1519
+ }
1520
+ var gn = {
1521
+ meta: pn,
1522
+ template(e, t) {
1523
+ let n = t.links.nonProductionHosts;
1524
+ if (n.length === 0) return [];
1525
+ let r = n.map(mn), i = [];
1526
+ for (let t of H(e)) {
1527
+ let e = hn(t.url);
1528
+ e !== null && r.some((t) => t.test(e)) && i.push({
1529
+ blockId: t.blockId,
1530
+ params: { host: e }
1531
+ });
1532
+ }
1533
+ return i;
1534
+ }
1535
+ }, _n = {
1536
+ id: "link.relative-url",
1537
+ reference: "https://docs.templatical.com/quality/links/rule-catalog#unsupported-protocols",
1538
+ severity: "warning"
1539
+ }, vn = /^(?:\/|\.{1,2}\/|\?)/, yn = [
1540
+ Qt,
1541
+ rn,
1542
+ sn,
1543
+ fn,
1544
+ gn,
1545
+ {
1546
+ meta: _n,
1547
+ template(e) {
1548
+ let t = [];
1549
+ for (let n of H(e)) {
1550
+ let e = n.url?.trim();
1551
+ e && vn.test(e) && t.push({
1552
+ blockId: n.blockId,
1553
+ params: { url: e }
1554
+ });
1555
+ }
1556
+ return t;
1557
+ }
1558
+ }
1559
+ ];
1560
+ function bn(e, t = {}) {
1561
+ return t.disabled === !0 || t.links === !1 ? [] : S(e, yn, he(t.locale, t.links ?? {}, yn), (e, t, n) => Jt(e, t, n));
1562
+ }
1563
+ //#endregion
1564
+ //#region ../quality/src/deliverability/messages/de.ts
1565
+ var xn = /* @__PURE__ */ e({ default: () => Sn }), Sn = {
1566
+ "deliverability.link-text-domain-mismatch": {
1567
+ message: "Der Linktext zeigt {textHost}, der Link führt aber zu {linkHost}. Spamfilter werten solche Links als Phishing.",
1568
+ suggestion: "Lass den Text zum Ziel passen oder verwende Wörter statt einer Adresse."
1569
+ },
1570
+ "deliverability.url-shortener": {
1571
+ message: "Dieser Link läuft über den URL-Kürzer {host}. Spamfilter behandeln gekürzte Links mit Misstrauen, weil sie das Ziel verbergen.",
1572
+ suggestion: "Verlinke direkt auf das Ziel."
1573
+ },
1574
+ "deliverability.ip-address-url": {
1575
+ message: "Dieser Link führt zur IP-Adresse {host} statt zu einer Domain. Spamfilter werten solche Links als Spam.",
1576
+ suggestion: "Verlinke auf deine Domain."
1577
+ },
1578
+ "deliverability.low-text": {
1579
+ message: "Diese E-Mail enthält Bilder, aber nur {count} Zeichen Text (weniger als {min}). Manche Spamfilter bewerten bildlastige E-Mails mit wenig Text negativ, und wer Bilder blockiert, sieht fast nichts.",
1580
+ suggestion: "Ergänze Text, der die Botschaft trägt."
1581
+ }
1582
+ }, Cn = /* @__PURE__ */ e({ default: () => U }), U = {
1583
+ "deliverability.link-text-domain-mismatch": {
1584
+ message: "The link text shows {textHost}, but the link goes to {linkHost}. Spam filters flag links like this as phishing.",
1585
+ suggestion: "Make the text match the destination, or use words instead of an address."
1586
+ },
1587
+ "deliverability.url-shortener": {
1588
+ message: "This link goes through the URL shortener {host}. Spam filters treat shortener links with suspicion because they hide the destination.",
1589
+ suggestion: "Link to the destination instead."
1590
+ },
1591
+ "deliverability.ip-address-url": {
1592
+ message: "This link points to the IP address {host} instead of a domain. Spam filters score links like this as spam.",
1593
+ suggestion: "Link to your domain."
1594
+ },
1595
+ "deliverability.low-text": {
1596
+ message: "This email has images but only {count} characters of text (under {min}). Some spam filters score image-heavy emails with little text, and readers who block images see almost nothing.",
1597
+ suggestion: "Add text that carries the message."
1598
+ }
1599
+ }, wn = /* #__PURE__ */ Object.assign({
1600
+ "./de.ts": xn,
1601
+ "./en.ts": Cn
1602
+ }), W = {};
1603
+ for (let e in wn) {
1604
+ let t = /\.\/([^/]+)\.ts$/.exec(e);
1605
+ if (!t) continue;
1606
+ let n = t[1];
1607
+ n !== "index" && (W[n] = wn[e].default);
1608
+ }
1609
+ function Tn(e) {
1610
+ return W[e.split("-")[0]?.toLowerCase() ?? "en"] ?? W.en ?? U;
1611
+ }
1612
+ function En(e, t, n) {
1613
+ return T(Tn(e)[t] ?? U[t], n);
1614
+ }
1615
+ //#endregion
1616
+ //#region ../quality/src/deliverability/same-site.ts
1617
+ var Dn = "ac.jp ac.uk co.at co.id co.il co.in co.jp co.kr co.nz co.uk co.za com.ar com.au com.br com.cn com.co com.hk com.mx com.my com.ph com.pl com.sg com.tr com.tw com.ua edu.au go.jp gov.au gov.uk ltd.uk me.uk ne.jp net.au net.br net.cn net.in net.nz or.at or.jp or.kr org.au org.br org.cn org.in org.nz org.uk plc.uk".split(" "), On = new Set(Dn);
1618
+ function G(e) {
1619
+ try {
1620
+ let t = new URL(e);
1621
+ return (t.protocol === "http:" || t.protocol === "https:") && !/[{}]/.test(t.hostname) ? t : null;
1622
+ } catch {
1623
+ return null;
1624
+ }
1625
+ }
1626
+ function K(e) {
1627
+ return e.hostname.toLowerCase().replace(/\.$/, "").replace(/^www\./, "");
1628
+ }
1629
+ function kn(e) {
1630
+ if (/^\d+\.\d+\.\d+\.\d+$/.test(e) || e.startsWith("[")) return e;
1631
+ let t = e.split("."), n = t.slice(-2).join(".");
1632
+ return t.slice(-(On.has(n) ? 3 : 2)).join(".");
1633
+ }
1634
+ function An(e, t) {
1635
+ let n = G(`http://${e}`), r = G(`http://${t}`);
1636
+ return !n || !r ? !1 : kn(K(n)) === kn(K(r));
1637
+ }
1638
+ //#endregion
1639
+ //#region ../quality/src/deliverability/rules/link-text-domain-mismatch.ts
1640
+ var jn = {
1641
+ id: "deliverability.link-text-domain-mismatch",
1642
+ reference: "https://docs.rspamd.com/modules/phishing/",
1643
+ severity: "warning"
1644
+ }, Mn = /^(?:https?:\/\/)?(?:[\p{L}\p{N}](?:[\p{L}\p{N}-]*[\p{L}\p{N}])?\.)+(?:\p{L}{2,}|xn--[a-z0-9-]+)(?::\d+)?(?:[/?#][^\s]*)?$/iu;
1645
+ function Nn(e) {
1646
+ if (!e) return null;
1647
+ let t = e.trim();
1648
+ return t.startsWith("<") && t.endsWith(">") && (t = t.slice(1, -1)), t = t.replace(/[.,;:!?)]+$/, ""), Mn.test(t) ? G(/^https?:\/\//i.test(t) ? t : `http://${t}`) : null;
1649
+ }
1650
+ //#endregion
1651
+ //#region ../quality/src/deliverability/index.ts
1652
+ var Pn = [
1653
+ {
1654
+ meta: jn,
1655
+ template(e) {
1656
+ let t = [];
1657
+ for (let n of H(e)) {
1658
+ if (n.source !== "anchor" && n.source !== "button" && n.source !== "menu-item") continue;
1659
+ let e = Nn(n.label), r = G(n.url);
1660
+ if (!e || !r) continue;
1661
+ let i = K(e), a = K(r);
1662
+ An(i, a) || t.push({
1663
+ blockId: n.blockId,
1664
+ params: {
1665
+ textHost: i,
1666
+ linkHost: a
1667
+ }
1668
+ });
1669
+ }
1670
+ return t;
1671
+ }
1672
+ },
1673
+ {
1674
+ meta: {
1675
+ id: "deliverability.url-shortener",
1676
+ reference: "https://docs.rspamd.com/modules/phishing/",
1677
+ severity: "warning"
1678
+ },
1679
+ template(e, t) {
1680
+ let n = [];
1681
+ for (let r of H(e)) {
1682
+ let e = G(r.url);
1683
+ if (!e) continue;
1684
+ let i = K(e);
1685
+ t.deliverability.shortenerHosts.some((e) => i === e || i.endsWith(`.${e}`)) && n.push({
1686
+ blockId: r.blockId,
1687
+ params: { host: i }
1688
+ });
1689
+ }
1690
+ return n;
1691
+ }
1692
+ },
1693
+ {
1694
+ meta: {
1695
+ id: "deliverability.ip-address-url",
1696
+ reference: "https://svn.apache.org/repos/asf/spamassassin/branches/b2_4_0/rules/20_uri_tests.cf",
1697
+ severity: "warning"
1698
+ },
1699
+ template(e) {
1700
+ let t = [];
1701
+ for (let n of H(e)) {
1702
+ let e = G(n.url);
1703
+ if (!e) continue;
1704
+ let r = K(e), i = /^(?:\d{1,3}\.){3}\d{1,3}$/.test(r), a = r.startsWith("[") && r.endsWith("]");
1705
+ (i || a) && (r.startsWith("127.") || r === "0.0.0.0" || r === "[::1]" || t.push({
1706
+ blockId: n.blockId,
1707
+ params: { host: r }
1708
+ }));
1709
+ }
1710
+ return t;
1711
+ }
1712
+ },
1713
+ {
1714
+ meta: {
1715
+ id: "deliverability.low-text",
1716
+ reference: "https://svn.apache.org/repos/asf/spamassassin/branches/b2_6_0/rules/20_html_tests.cf",
1717
+ severity: "info"
1718
+ },
1719
+ template(e, n) {
1720
+ let r = !1, i = !1, u = [];
1721
+ if (x(e, (e) => {
1722
+ if (e.type === "custom" && (r = !0), (l(e) && e.src.trim() !== "" || p(e) || s(e)) && (i = !0), (c(e) || f(e) || m(e)) && u.push(N(e.content)), o(e)) for (let t of e.rows) for (let e of t.cells) u.push(N(e.content));
1723
+ if (t(e) && u.push(e.text), a(e)) for (let t of e.items) u.push(t.text);
1724
+ }), r || !i) return [];
1725
+ let d = u.join(" ").replace(/\s+/g, " ").trim().length, h = n.deliverability.minTextLength;
1726
+ return d < h ? [{
1727
+ blockId: null,
1728
+ params: {
1729
+ count: d,
1730
+ min: h
1731
+ }
1732
+ }] : [];
1733
+ }
1734
+ }
1735
+ ];
1736
+ function Fn(e, t = {}) {
1737
+ return t.disabled === !0 || t.deliverability === !1 ? [] : S(e, Pn, de(t.locale, t.deliverability ?? {}, Pn), (e, t, n) => En(e, t, n));
1738
+ }
1739
+ //#endregion
1740
+ //#region ../quality/src/compatibility/data/caniemail.generated.ts
1741
+ var In = {
1742
+ family: {
1743
+ gmail: "Gmail",
1744
+ outlook: "Outlook",
1745
+ yahoo: "Yahoo! Mail",
1746
+ "apple-mail": "Apple Mail",
1747
+ aol: "AOL",
1748
+ thunderbird: "Mozilla Thunderbird",
1749
+ microsoft: "Microsoft",
1750
+ "samsung-email": "Samsung Email",
1751
+ sfr: "SFR",
1752
+ orange: "Orange",
1753
+ protonmail: "ProtonMail",
1754
+ hey: "HEY",
1755
+ "mail-ru": "Mail.ru",
1756
+ fastmail: "Fastmail",
1757
+ laposte: "LaPoste.net",
1758
+ "t-online-de": "T-online.de",
1759
+ "free-fr": "Free.fr",
1760
+ gmx: "GMX",
1761
+ "web-de": "WEB.DE",
1762
+ "ionos-1and1": "1&1",
1763
+ rainloop: "RainLoop",
1764
+ "wp-pl": "WP.pl"
1765
+ },
1766
+ platform: {
1767
+ "desktop-app": "Desktop",
1768
+ "desktop-webmail": "Desktop Webmail",
1769
+ "mobile-webmail": "Mobile Webmail",
1770
+ webmail: "Webmail",
1771
+ ios: "iOS",
1772
+ android: "Android",
1773
+ windows: "Windows",
1774
+ macos: "macOS",
1775
+ "windows-mail": "Windows Mail",
1776
+ "outlook-com": "Outlook.com"
1777
+ }
1778
+ }, Ln = {
1779
+ "css-display-flex": {
1780
+ title: "display:flex",
1781
+ url: "https://www.caniemail.com/features/css-display-flex/",
1782
+ lastTestDate: "2021-11-02",
1783
+ notes: {
1784
+ 1: "Not supported with non Google accounts.",
1785
+ 2: "`display:inline-flex` is not supported."
1786
+ },
1787
+ cells: {
1788
+ "gmail.ios": {
1789
+ value: "a",
1790
+ notes: [1],
1791
+ version: "2026-03"
1792
+ },
1793
+ "gmail.android": {
1794
+ value: "a",
1795
+ notes: [1],
1796
+ version: "2026-03"
1797
+ },
1798
+ "orange.desktop-webmail": {
1799
+ value: "n",
1800
+ notes: [],
1801
+ version: "2024-04"
1802
+ },
1803
+ "orange.ios": {
1804
+ value: "n",
1805
+ notes: [],
1806
+ version: "2024-04"
1807
+ },
1808
+ "orange.android": {
1809
+ value: "n",
1810
+ notes: [],
1811
+ version: "2024-04"
1812
+ },
1813
+ "outlook.windows": {
1814
+ value: "n",
1815
+ notes: [],
1816
+ version: "2019"
1817
+ },
1818
+ "outlook.windows-mail": {
1819
+ value: "n",
1820
+ notes: [],
1821
+ version: "2019-02"
1822
+ },
1823
+ "yahoo.desktop-webmail": {
1824
+ value: "y",
1825
+ notes: [2],
1826
+ version: "2020-11"
1827
+ },
1828
+ "yahoo.ios": {
1829
+ value: "y",
1830
+ notes: [2],
1831
+ version: "2020-11"
1832
+ },
1833
+ "yahoo.android": {
1834
+ value: "y",
1835
+ notes: [2],
1836
+ version: "2020-11"
1837
+ },
1838
+ "aol.desktop-webmail": {
1839
+ value: "y",
1840
+ notes: [2],
1841
+ version: "2020-11"
1842
+ },
1843
+ "aol.ios": {
1844
+ value: "y",
1845
+ notes: [2],
1846
+ version: "2020-11"
1847
+ },
1848
+ "aol.android": {
1849
+ value: "y",
1850
+ notes: [2],
1851
+ version: "2020-11"
1852
+ },
1853
+ "gmx.desktop-webmail": {
1854
+ value: "n",
1855
+ notes: [],
1856
+ version: "2022-06"
1857
+ },
1858
+ "web-de.desktop-webmail": {
1859
+ value: "n",
1860
+ notes: [],
1861
+ version: "2022-06"
1862
+ }
1863
+ }
1864
+ },
1865
+ "css-display-grid": {
1866
+ title: "display:grid",
1867
+ url: "https://www.caniemail.com/features/css-display-grid/",
1868
+ lastTestDate: "2019-02-28",
1869
+ notes: { 1: "Not supported with non Google accounts." },
1870
+ cells: {
1871
+ "gmail.ios": {
1872
+ value: "a",
1873
+ notes: [1],
1874
+ version: "2026-03"
1875
+ },
1876
+ "gmail.android": {
1877
+ value: "a",
1878
+ notes: [1],
1879
+ version: "2026-03"
1880
+ },
1881
+ "orange.desktop-webmail": {
1882
+ value: "n",
1883
+ notes: [],
1884
+ version: "2024-04"
1885
+ },
1886
+ "orange.ios": {
1887
+ value: "n",
1888
+ notes: [],
1889
+ version: "2024-04"
1890
+ },
1891
+ "orange.android": {
1892
+ value: "n",
1893
+ notes: [],
1894
+ version: "2024-04"
1895
+ },
1896
+ "outlook.windows": {
1897
+ value: "n",
1898
+ notes: [],
1899
+ version: "2019"
1900
+ },
1901
+ "outlook.windows-mail": {
1902
+ value: "n",
1903
+ notes: [],
1904
+ version: "2019-02"
1905
+ },
1906
+ "gmx.desktop-webmail": {
1907
+ value: "n",
1908
+ notes: [],
1909
+ version: "2022-06"
1910
+ },
1911
+ "web-de.desktop-webmail": {
1912
+ value: "n",
1913
+ notes: [],
1914
+ version: "2022-06"
1915
+ }
1916
+ }
1917
+ },
1918
+ "css-position": {
1919
+ title: "position",
1920
+ url: "https://www.caniemail.com/features/css-position/",
1921
+ lastTestDate: "2021-05-16",
1922
+ notes: {
1923
+ 1: "Partial. Supports `relative`, `absolute` but not `sticky` and `fixed`.",
1924
+ 2: "Partial. Supports `sticky` but not `relative`, `absolute` and `fixed`.",
1925
+ 3: "Partial. Supports `relative` but not `absolute`, `sticky` and `fixed`.",
1926
+ 4: "Partial. Supports `relative` and `sticky` but not `absolute` and `fixed`.",
1927
+ 5: "Buggy. `fixed` elements scroll with page.",
1928
+ 6: "Buggy. `fixed` is replaced by `absolute`."
1929
+ },
1930
+ cells: {
1931
+ "apple-mail.macos": {
1932
+ value: "a",
1933
+ notes: [1],
1934
+ version: "14"
1935
+ },
1936
+ "apple-mail.ios": {
1937
+ value: "a",
1938
+ notes: [1],
1939
+ version: "14.5"
1940
+ },
1941
+ "gmail.desktop-webmail": {
1942
+ value: "n",
1943
+ notes: [],
1944
+ version: "2021-05"
1945
+ },
1946
+ "gmail.ios": {
1947
+ value: "n",
1948
+ notes: [],
1949
+ version: "2021-05"
1950
+ },
1951
+ "gmail.android": {
1952
+ value: "n",
1953
+ notes: [],
1954
+ version: "2021-05"
1955
+ },
1956
+ "gmail.mobile-webmail": {
1957
+ value: "n",
1958
+ notes: [],
1959
+ version: "2021-05"
1960
+ },
1961
+ "orange.desktop-webmail": {
1962
+ value: "a",
1963
+ notes: [1],
1964
+ version: "2021-05"
1965
+ },
1966
+ "orange.ios": {
1967
+ value: "a",
1968
+ notes: [1],
1969
+ version: "2021-05"
1970
+ },
1971
+ "orange.android": {
1972
+ value: "a",
1973
+ notes: [1],
1974
+ version: "2021-05"
1975
+ },
1976
+ "outlook.windows": {
1977
+ value: "n",
1978
+ notes: [],
1979
+ version: "2019"
1980
+ },
1981
+ "outlook.windows-mail": {
1982
+ value: "n",
1983
+ notes: [],
1984
+ version: "2021-05"
1985
+ },
1986
+ "outlook.macos": {
1987
+ value: "a",
1988
+ notes: [2],
1989
+ version: "16.80"
1990
+ },
1991
+ "outlook.outlook-com": {
1992
+ value: "a",
1993
+ notes: [2],
1994
+ version: "2023-12"
1995
+ },
1996
+ "outlook.ios": {
1997
+ value: "n",
1998
+ notes: [],
1999
+ version: "2021-05"
2000
+ },
2001
+ "outlook.android": {
2002
+ value: "a",
2003
+ notes: [2],
2004
+ version: "2021-05"
2005
+ },
2006
+ "samsung-email.android": {
2007
+ value: "a",
2008
+ notes: [1],
2009
+ version: "6.0"
2010
+ },
2011
+ "sfr.desktop-webmail": {
2012
+ value: "a",
2013
+ notes: [4],
2014
+ version: "2021-05"
2015
+ },
2016
+ "sfr.ios": {
2017
+ value: "a",
2018
+ notes: [4],
2019
+ version: "2021-05"
2020
+ },
2021
+ "sfr.android": {
2022
+ value: "a",
2023
+ notes: [4],
2024
+ version: "2021-05"
2025
+ },
2026
+ "aol.desktop-webmail": {
2027
+ value: "a",
2028
+ notes: [3],
2029
+ version: "2021-05"
2030
+ },
2031
+ "aol.ios": {
2032
+ value: "a",
2033
+ notes: [3],
2034
+ version: "2021-05"
2035
+ },
2036
+ "aol.android": {
2037
+ value: "a",
2038
+ notes: [3],
2039
+ version: "2021-05"
2040
+ },
2041
+ "yahoo.desktop-webmail": {
2042
+ value: "a",
2043
+ notes: [3],
2044
+ version: "2021-05"
2045
+ },
2046
+ "yahoo.ios": {
2047
+ value: "a",
2048
+ notes: [3],
2049
+ version: "2021-05"
2050
+ },
2051
+ "yahoo.android": {
2052
+ value: "a",
2053
+ notes: [3],
2054
+ version: "2021-05"
2055
+ },
2056
+ "hey.desktop-webmail": {
2057
+ value: "a",
2058
+ notes: [4],
2059
+ version: "2021-05"
2060
+ },
2061
+ "mail-ru.desktop-webmail": {
2062
+ value: "n",
2063
+ notes: [],
2064
+ version: "2021-05"
2065
+ },
2066
+ "fastmail.desktop-webmail": {
2067
+ value: "a",
2068
+ notes: [1, 6],
2069
+ version: "2021-07"
2070
+ },
2071
+ "laposte.desktop-webmail": {
2072
+ value: "a",
2073
+ notes: [4],
2074
+ version: "2021-08"
2075
+ },
2076
+ "gmx.desktop-webmail": {
2077
+ value: "y",
2078
+ notes: [2],
2079
+ version: "2022-06"
2080
+ },
2081
+ "gmx.android": {
2082
+ value: "y",
2083
+ notes: [5],
2084
+ version: "2022-06"
2085
+ },
2086
+ "web-de.desktop-webmail": {
2087
+ value: "y",
2088
+ notes: [2],
2089
+ version: "2022-06"
2090
+ },
2091
+ "web-de.android": {
2092
+ value: "y",
2093
+ notes: [5],
2094
+ version: "2022-06"
2095
+ },
2096
+ "ionos-1and1.android": {
2097
+ value: "y",
2098
+ notes: [5],
2099
+ version: "2022-06"
2100
+ }
2101
+ }
2102
+ },
2103
+ "css-variables": {
2104
+ title: "CSS Variables (Custom Properties)",
2105
+ url: "https://www.caniemail.com/features/css-variables/",
2106
+ lastTestDate: "2020-02-25",
2107
+ notes: {
2108
+ 1: "Partial. The `var()` function is supported, but not the variable declaration.",
2109
+ 2: "Partial. Not supported with non Google accounts."
2110
+ },
2111
+ cells: {
2112
+ "gmail.desktop-webmail": {
2113
+ value: "n",
2114
+ notes: [1],
2115
+ version: "2019-08"
2116
+ },
2117
+ "gmail.ios": {
2118
+ value: "n",
2119
+ notes: [1, 2],
2120
+ version: "2019-08"
2121
+ },
2122
+ "gmail.android": {
2123
+ value: "n",
2124
+ notes: [1, 2],
2125
+ version: "2019-08"
2126
+ },
2127
+ "gmail.mobile-webmail": {
2128
+ value: "n",
2129
+ notes: [1],
2130
+ version: "2020-02"
2131
+ },
2132
+ "orange.desktop-webmail": {
2133
+ value: "n",
2134
+ notes: [],
2135
+ version: "2024-04"
2136
+ },
2137
+ "orange.ios": {
2138
+ value: "n",
2139
+ notes: [],
2140
+ version: "2024-04"
2141
+ },
2142
+ "orange.android": {
2143
+ value: "n",
2144
+ notes: [],
2145
+ version: "2024-04"
2146
+ },
2147
+ "outlook.windows": {
2148
+ value: "n",
2149
+ notes: [],
2150
+ version: "2019"
2151
+ },
2152
+ "outlook.windows-mail": {
2153
+ value: "n",
2154
+ notes: [],
2155
+ version: "2020-01"
2156
+ },
2157
+ "outlook.macos": {
2158
+ value: "n",
2159
+ notes: [],
2160
+ version: "16.80"
2161
+ },
2162
+ "outlook.outlook-com": {
2163
+ value: "n",
2164
+ notes: [],
2165
+ version: "2024-01"
2166
+ },
2167
+ "outlook.ios": {
2168
+ value: "n",
2169
+ notes: [],
2170
+ version: "2020-02"
2171
+ },
2172
+ "outlook.android": {
2173
+ value: "n",
2174
+ notes: [],
2175
+ version: "2020-02"
2176
+ },
2177
+ "aol.desktop-webmail": {
2178
+ value: "n",
2179
+ notes: [],
2180
+ version: "2020-01"
2181
+ },
2182
+ "aol.ios": {
2183
+ value: "n",
2184
+ notes: [],
2185
+ version: "2020-01"
2186
+ },
2187
+ "aol.android": {
2188
+ value: "n",
2189
+ notes: [],
2190
+ version: "2020-01"
2191
+ },
2192
+ "yahoo.desktop-webmail": {
2193
+ value: "n",
2194
+ notes: [],
2195
+ version: "2020-02"
2196
+ },
2197
+ "yahoo.ios": {
2198
+ value: "n",
2199
+ notes: [],
2200
+ version: "2020-02"
2201
+ },
2202
+ "yahoo.android": {
2203
+ value: "n",
2204
+ notes: [],
2205
+ version: "2020-02"
2206
+ },
2207
+ "mail-ru.desktop-webmail": {
2208
+ value: "n",
2209
+ notes: [1],
2210
+ version: "2020-10"
2211
+ },
2212
+ "fastmail.desktop-webmail": {
2213
+ value: "n",
2214
+ notes: [1],
2215
+ version: "2021-07"
2216
+ },
2217
+ "gmx.desktop-webmail": {
2218
+ value: "n",
2219
+ notes: [],
2220
+ version: "2022-09"
2221
+ },
2222
+ "web-de.desktop-webmail": {
2223
+ value: "n",
2224
+ notes: [],
2225
+ version: "2022-09"
2226
+ }
2227
+ }
2228
+ },
2229
+ "css-at-import": {
2230
+ title: "@import",
2231
+ url: "https://www.caniemail.com/features/css-at-import/",
2232
+ lastTestDate: "2019-02-28",
2233
+ notes: {},
2234
+ cells: {
2235
+ "gmail.desktop-webmail": {
2236
+ value: "n",
2237
+ notes: [],
2238
+ version: "2019-02"
2239
+ },
2240
+ "gmail.ios": {
2241
+ value: "n",
2242
+ notes: [],
2243
+ version: "2019-02"
2244
+ },
2245
+ "gmail.android": {
2246
+ value: "n",
2247
+ notes: [],
2248
+ version: "2019-02"
2249
+ },
2250
+ "gmail.mobile-webmail": {
2251
+ value: "n",
2252
+ notes: [],
2253
+ version: "2020-02"
2254
+ },
2255
+ "orange.desktop-webmail": {
2256
+ value: "n",
2257
+ notes: [],
2258
+ version: "2021-03"
2259
+ },
2260
+ "orange.ios": {
2261
+ value: "n",
2262
+ notes: [],
2263
+ version: "2023-12"
2264
+ },
2265
+ "orange.android": {
2266
+ value: "n",
2267
+ notes: [],
2268
+ version: "2023-12"
2269
+ },
2270
+ "outlook.macos": {
2271
+ value: "n",
2272
+ notes: [],
2273
+ version: "16.80"
2274
+ },
2275
+ "outlook.outlook-com": {
2276
+ value: "n",
2277
+ notes: [],
2278
+ version: "2023-12"
2279
+ },
2280
+ "outlook.ios": {
2281
+ value: "n",
2282
+ notes: [],
2283
+ version: "2019-02"
2284
+ },
2285
+ "outlook.android": {
2286
+ value: "n",
2287
+ notes: [],
2288
+ version: "2019-02"
2289
+ },
2290
+ "thunderbird.macos": {
2291
+ value: "n",
2292
+ notes: [],
2293
+ version: "78.5"
2294
+ },
2295
+ "yahoo.desktop-webmail": {
2296
+ value: "n",
2297
+ notes: [],
2298
+ version: "2019-02"
2299
+ },
2300
+ "yahoo.ios": {
2301
+ value: "n",
2302
+ notes: [],
2303
+ version: "2019-02"
2304
+ },
2305
+ "yahoo.android": {
2306
+ value: "n",
2307
+ notes: [],
2308
+ version: "2019-02"
2309
+ },
2310
+ "aol.desktop-webmail": {
2311
+ value: "n",
2312
+ notes: [],
2313
+ version: "2019-02"
2314
+ },
2315
+ "aol.ios": {
2316
+ value: "n",
2317
+ notes: [],
2318
+ version: "2019-02"
2319
+ },
2320
+ "aol.android": {
2321
+ value: "n",
2322
+ notes: [],
2323
+ version: "2020-01"
2324
+ },
2325
+ "samsung-email.android": {
2326
+ value: "n",
2327
+ notes: [],
2328
+ version: "5.0.10.2"
2329
+ },
2330
+ "sfr.desktop-webmail": {
2331
+ value: "n",
2332
+ notes: [],
2333
+ version: "2025-07"
2334
+ },
2335
+ "sfr.ios": {
2336
+ value: "n",
2337
+ notes: [],
2338
+ version: "2019-08"
2339
+ },
2340
+ "sfr.android": {
2341
+ value: "n",
2342
+ notes: [],
2343
+ version: "2019-08"
2344
+ },
2345
+ "protonmail.desktop-webmail": {
2346
+ value: "n",
2347
+ notes: [],
2348
+ version: "2020-03"
2349
+ },
2350
+ "protonmail.ios": {
2351
+ value: "n",
2352
+ notes: [],
2353
+ version: "2020-03"
2354
+ },
2355
+ "mail-ru.desktop-webmail": {
2356
+ value: "n",
2357
+ notes: [],
2358
+ version: "2020-10"
2359
+ },
2360
+ "fastmail.desktop-webmail": {
2361
+ value: "n",
2362
+ notes: [],
2363
+ version: "2021-07"
2364
+ },
2365
+ "laposte.desktop-webmail": {
2366
+ value: "n",
2367
+ notes: [],
2368
+ version: "2025-07"
2369
+ },
2370
+ "gmx.desktop-webmail": {
2371
+ value: "n",
2372
+ notes: [],
2373
+ version: "2022-06"
2374
+ },
2375
+ "gmx.android": {
2376
+ value: "n",
2377
+ notes: [],
2378
+ version: "2022-06"
2379
+ },
2380
+ "web-de.desktop-webmail": {
2381
+ value: "n",
2382
+ notes: [],
2383
+ version: "2022-06"
2384
+ },
2385
+ "web-de.android": {
2386
+ value: "n",
2387
+ notes: [],
2388
+ version: "2022-06"
2389
+ },
2390
+ "ionos-1and1.android": {
2391
+ value: "n",
2392
+ notes: [],
2393
+ version: "2022-06"
2394
+ },
2395
+ "wp-pl.desktop-webmail": {
2396
+ value: "n",
2397
+ notes: [],
2398
+ version: "2023-12"
2399
+ }
2400
+ }
2401
+ },
2402
+ "html-link": {
2403
+ title: "<link> element",
2404
+ url: "https://www.caniemail.com/features/html-link/",
2405
+ lastTestDate: "2023-12-21",
2406
+ notes: {},
2407
+ cells: {
2408
+ "gmail.desktop-webmail": {
2409
+ value: "n",
2410
+ notes: [],
2411
+ version: "2019-02"
2412
+ },
2413
+ "gmail.ios": {
2414
+ value: "n",
2415
+ notes: [],
2416
+ version: "2019-02"
2417
+ },
2418
+ "gmail.android": {
2419
+ value: "n",
2420
+ notes: [],
2421
+ version: "2019-02"
2422
+ },
2423
+ "gmail.mobile-webmail": {
2424
+ value: "n",
2425
+ notes: [],
2426
+ version: "2020-02"
2427
+ },
2428
+ "orange.desktop-webmail": {
2429
+ value: "n",
2430
+ notes: [],
2431
+ version: "2023-12"
2432
+ },
2433
+ "orange.ios": {
2434
+ value: "n",
2435
+ notes: [],
2436
+ version: "2023-12"
2437
+ },
2438
+ "orange.android": {
2439
+ value: "n",
2440
+ notes: [],
2441
+ version: "2023-12"
2442
+ },
2443
+ "outlook.macos": {
2444
+ value: "n",
2445
+ notes: [],
2446
+ version: "16.80"
2447
+ },
2448
+ "outlook.outlook-com": {
2449
+ value: "n",
2450
+ notes: [],
2451
+ version: "2023-12"
2452
+ },
2453
+ "outlook.ios": {
2454
+ value: "n",
2455
+ notes: [],
2456
+ version: "2023-12"
2457
+ },
2458
+ "outlook.android": {
2459
+ value: "n",
2460
+ notes: [],
2461
+ version: "2023-12"
2462
+ },
2463
+ "thunderbird.macos": {
2464
+ value: "n",
2465
+ notes: [],
2466
+ version: "78.5"
2467
+ },
2468
+ "yahoo.desktop-webmail": {
2469
+ value: "n",
2470
+ notes: [],
2471
+ version: "2019-02"
2472
+ },
2473
+ "yahoo.ios": {
2474
+ value: "n",
2475
+ notes: [],
2476
+ version: "2019-02"
2477
+ },
2478
+ "yahoo.android": {
2479
+ value: "n",
2480
+ notes: [],
2481
+ version: "2019-02"
2482
+ },
2483
+ "aol.desktop-webmail": {
2484
+ value: "n",
2485
+ notes: [],
2486
+ version: "2019-02"
2487
+ },
2488
+ "aol.ios": {
2489
+ value: "n",
2490
+ notes: [],
2491
+ version: "2019-02"
2492
+ },
2493
+ "aol.android": {
2494
+ value: "n",
2495
+ notes: [],
2496
+ version: "2020-01"
2497
+ },
2498
+ "samsung-email.android": {
2499
+ value: "n",
2500
+ notes: [],
2501
+ version: "5.0.10.2"
2502
+ },
2503
+ "sfr.desktop-webmail": {
2504
+ value: "n",
2505
+ notes: [],
2506
+ version: "2020-01"
2507
+ },
2508
+ "sfr.ios": {
2509
+ value: "n",
2510
+ notes: [],
2511
+ version: "2020-01"
2512
+ },
2513
+ "sfr.android": {
2514
+ value: "n",
2515
+ notes: [],
2516
+ version: "2020-01"
2517
+ },
2518
+ "protonmail.desktop-webmail": {
2519
+ value: "n",
2520
+ notes: [],
2521
+ version: "2020-03"
2522
+ },
2523
+ "protonmail.ios": {
2524
+ value: "n",
2525
+ notes: [],
2526
+ version: "2020-03"
2527
+ },
2528
+ "protonmail.android": {
2529
+ value: "n",
2530
+ notes: [],
2531
+ version: "2020-03"
2532
+ },
2533
+ "hey.desktop-webmail": {
2534
+ value: "n",
2535
+ notes: [],
2536
+ version: "2020-06"
2537
+ },
2538
+ "mail-ru.desktop-webmail": {
2539
+ value: "n",
2540
+ notes: [],
2541
+ version: "2020-09"
2542
+ },
2543
+ "fastmail.desktop-webmail": {
2544
+ value: "n",
2545
+ notes: [],
2546
+ version: "2021-07"
2547
+ },
2548
+ "laposte.desktop-webmail": {
2549
+ value: "n",
2550
+ notes: [],
2551
+ version: "2021-08"
2552
+ },
2553
+ "gmx.desktop-webmail": {
2554
+ value: "n",
2555
+ notes: [],
2556
+ version: "2022-11"
2557
+ },
2558
+ "gmx.android": {
2559
+ value: "n",
2560
+ notes: [],
2561
+ version: "2022-11"
2562
+ },
2563
+ "web-de.desktop-webmail": {
2564
+ value: "n",
2565
+ notes: [],
2566
+ version: "2022-11"
2567
+ },
2568
+ "web-de.android": {
2569
+ value: "n",
2570
+ notes: [],
2571
+ version: "2022-11"
2572
+ },
2573
+ "ionos-1and1.desktop-webmail": {
2574
+ value: "n",
2575
+ notes: [],
2576
+ version: "2022-11"
2577
+ },
2578
+ "ionos-1and1.android": {
2579
+ value: "n",
2580
+ notes: [],
2581
+ version: "2022-11"
2582
+ },
2583
+ "wp-pl.desktop-webmail": {
2584
+ value: "n",
2585
+ notes: [],
2586
+ version: "2023-12"
2587
+ }
2588
+ }
2589
+ },
2590
+ "html-style": {
2591
+ title: "<style> element",
2592
+ url: "https://www.caniemail.com/features/html-style/",
2593
+ lastTestDate: "2023-07-27",
2594
+ notes: {
2595
+ 1: "Partial. Not supported inside the `<body>`.",
2596
+ 2: "Partial. Not supported with non Google accounts.",
2597
+ 3: "Buggy. The first `<head>` in the HTML is removed, so `<style>` elements need to be in a second `<head>` element.",
2598
+ 4: "Buggy. `<style>` elements need to be declared before their rules are used.",
2599
+ 5: "A CSS rule following a CSS comment is ignored. (See [email-bugs#25](https://github.com/hteumeuleu/email-bugs/issues/25).)",
2600
+ 6: "The size of the `<style>` tag [is limited to 16 KB](https://github.com/hteumeuleu/email-bugs/issues/90)"
2601
+ },
2602
+ cells: {
2603
+ "gmail.desktop-webmail": {
2604
+ value: "a",
2605
+ notes: [1, 6],
2606
+ version: "2023-01"
2607
+ },
2608
+ "gmail.ios": {
2609
+ value: "a",
2610
+ notes: [1, 2],
2611
+ version: "2023-01"
2612
+ },
2613
+ "gmail.android": {
2614
+ value: "a",
2615
+ notes: [1, 2],
2616
+ version: "2019-06"
2617
+ },
2618
+ "gmail.mobile-webmail": {
2619
+ value: "n",
2620
+ notes: [],
2621
+ version: "2023-01"
2622
+ },
2623
+ "outlook.windows": {
2624
+ value: "a",
2625
+ notes: [4],
2626
+ version: "2019"
2627
+ },
2628
+ "outlook.windows-mail": {
2629
+ value: "a",
2630
+ notes: [4],
2631
+ version: "2023-01"
2632
+ },
2633
+ "sfr.desktop-webmail": {
2634
+ value: "n",
2635
+ notes: [],
2636
+ version: "2025-07"
2637
+ },
2638
+ "sfr.ios": {
2639
+ value: "n",
2640
+ notes: [],
2641
+ version: "2025-07"
2642
+ },
2643
+ "sfr.android": {
2644
+ value: "n",
2645
+ notes: [],
2646
+ version: "2023-02"
2647
+ },
2648
+ "protonmail.ios": {
2649
+ value: "a",
2650
+ notes: [1],
2651
+ version: "2023-01"
2652
+ },
2653
+ "protonmail.android": {
2654
+ value: "a",
2655
+ notes: [1],
2656
+ version: "2020-03"
2657
+ },
2658
+ "laposte.desktop-webmail": {
2659
+ value: "n",
2660
+ notes: [],
2661
+ version: "2025-07"
2662
+ },
2663
+ "laposte.ios": {
2664
+ value: "n",
2665
+ notes: [],
2666
+ version: "2025-07"
2667
+ },
2668
+ "laposte.android": {
2669
+ value: "n",
2670
+ notes: [],
2671
+ version: "2023-02"
2672
+ },
2673
+ "gmx.desktop-webmail": {
2674
+ value: "n",
2675
+ notes: [],
2676
+ version: "2023-07"
2677
+ },
2678
+ "web-de.desktop-webmail": {
2679
+ value: "n",
2680
+ notes: [],
2681
+ version: "2025-04"
2682
+ },
2683
+ "rainloop.desktop-webmail": {
2684
+ value: "n",
2685
+ notes: [],
2686
+ version: "2023-02"
2687
+ }
2688
+ }
2689
+ },
2690
+ "html-svg": {
2691
+ title: "Embedded <svg> image",
2692
+ url: "https://www.caniemail.com/features/html-svg/",
2693
+ lastTestDate: "2020-02-06",
2694
+ notes: {
2695
+ 1: "Buggy. Requires a background on the `<body>`. Can be any type of background, image or a color, can be set as attribute, inline style or in `<style>` block",
2696
+ 2: "Not supported. Element is removed along with any fallback content."
2697
+ },
2698
+ cells: {
2699
+ "apple-mail.macos": {
2700
+ value: "a",
2701
+ notes: [1],
2702
+ version: "13"
2703
+ },
2704
+ "gmail.desktop-webmail": {
2705
+ value: "n",
2706
+ notes: [],
2707
+ version: "2020-02"
2708
+ },
2709
+ "gmail.ios": {
2710
+ value: "n",
2711
+ notes: [],
2712
+ version: "2020-02"
2713
+ },
2714
+ "gmail.android": {
2715
+ value: "n",
2716
+ notes: [],
2717
+ version: "2020-02"
2718
+ },
2719
+ "gmail.mobile-webmail": {
2720
+ value: "n",
2721
+ notes: [],
2722
+ version: "2020-02"
2723
+ },
2724
+ "outlook.windows": {
2725
+ value: "n",
2726
+ notes: [],
2727
+ version: "2019"
2728
+ },
2729
+ "outlook.windows-mail": {
2730
+ value: "n",
2731
+ notes: [],
2732
+ version: "2020-02"
2733
+ },
2734
+ "outlook.macos": {
2735
+ value: "n",
2736
+ notes: [],
2737
+ version: "16.80"
2738
+ },
2739
+ "outlook.outlook-com": {
2740
+ value: "n",
2741
+ notes: [],
2742
+ version: "2024-01"
2743
+ },
2744
+ "outlook.ios": {
2745
+ value: "n",
2746
+ notes: [],
2747
+ version: "2020-02"
2748
+ },
2749
+ "outlook.android": {
2750
+ value: "n",
2751
+ notes: [],
2752
+ version: "2020-02"
2753
+ },
2754
+ "aol.desktop-webmail": {
2755
+ value: "n",
2756
+ notes: [],
2757
+ version: "2020-02"
2758
+ },
2759
+ "aol.ios": {
2760
+ value: "n",
2761
+ notes: [],
2762
+ version: "2020-02"
2763
+ },
2764
+ "aol.android": {
2765
+ value: "n",
2766
+ notes: [],
2767
+ version: "2020-02"
2768
+ },
2769
+ "yahoo.desktop-webmail": {
2770
+ value: "n",
2771
+ notes: [],
2772
+ version: "2020-02"
2773
+ },
2774
+ "yahoo.ios": {
2775
+ value: "n",
2776
+ notes: [],
2777
+ version: "2020-02"
2778
+ },
2779
+ "yahoo.android": {
2780
+ value: "n",
2781
+ notes: [],
2782
+ version: "2020-02"
2783
+ },
2784
+ "hey.desktop-webmail": {
2785
+ value: "n",
2786
+ notes: [],
2787
+ version: "2020-06"
2788
+ },
2789
+ "mail-ru.desktop-webmail": {
2790
+ value: "n",
2791
+ notes: [],
2792
+ version: "2020-10"
2793
+ },
2794
+ "fastmail.desktop-webmail": {
2795
+ value: "n",
2796
+ notes: [],
2797
+ version: "2021-07"
2798
+ },
2799
+ "gmx.desktop-webmail": {
2800
+ value: "n",
2801
+ notes: [],
2802
+ version: "2022-11"
2803
+ },
2804
+ "gmx.android": {
2805
+ value: "n",
2806
+ notes: [],
2807
+ version: "2022-11"
2808
+ },
2809
+ "web-de.desktop-webmail": {
2810
+ value: "n",
2811
+ notes: [],
2812
+ version: "2022-11"
2813
+ },
2814
+ "web-de.android": {
2815
+ value: "n",
2816
+ notes: [],
2817
+ version: "2022-11"
2818
+ },
2819
+ "ionos-1and1.desktop-webmail": {
2820
+ value: "n",
2821
+ notes: [2],
2822
+ version: "2022-11"
2823
+ },
2824
+ "ionos-1and1.android": {
2825
+ value: "n",
2826
+ notes: [],
2827
+ version: "2022-11"
2828
+ }
2829
+ }
2830
+ },
2831
+ "html-form": {
2832
+ title: "<form> element",
2833
+ url: "https://www.caniemail.com/features/html-form/",
2834
+ lastTestDate: "2019-09-10",
2835
+ notes: {
2836
+ 1: "Does not submit in iOS with non Google accounts.",
2837
+ 2: "On submit name values are prefixed with `x_`.",
2838
+ 3: "Does not submit in preview pane, but does when the email is opened in a new window.",
2839
+ 4: "Not supported. `<form>` is transformed into `<noform>`.",
2840
+ 5: "Not supported. The `<form>` and its entire content is removed.",
2841
+ 6: "Not supported. The `<form>` is there but values are not submitted."
2842
+ },
2843
+ cells: {
2844
+ "gmail.ios": {
2845
+ value: "a",
2846
+ notes: [1],
2847
+ version: "2019-09"
2848
+ },
2849
+ "orange.desktop-webmail": {
2850
+ value: "n",
2851
+ notes: [],
2852
+ version: "2024-04"
2853
+ },
2854
+ "orange.ios": {
2855
+ value: "n",
2856
+ notes: [],
2857
+ version: "2024-04"
2858
+ },
2859
+ "orange.android": {
2860
+ value: "n",
2861
+ notes: [],
2862
+ version: "2024-04"
2863
+ },
2864
+ "outlook.windows": {
2865
+ value: "n",
2866
+ notes: [],
2867
+ version: "2019"
2868
+ },
2869
+ "outlook.windows-mail": {
2870
+ value: "n",
2871
+ notes: [],
2872
+ version: "2020-01"
2873
+ },
2874
+ "outlook.macos": {
2875
+ value: "a",
2876
+ notes: [6],
2877
+ version: "16.80"
2878
+ },
2879
+ "outlook.outlook-com": {
2880
+ value: "a",
2881
+ notes: [6],
2882
+ version: "2024-01"
2883
+ },
2884
+ "sfr.desktop-webmail": {
2885
+ value: "n",
2886
+ notes: [4],
2887
+ version: "2020-01"
2888
+ },
2889
+ "yahoo.ios": {
2890
+ value: "n",
2891
+ notes: [],
2892
+ version: "2019-09"
2893
+ },
2894
+ "protonmail.desktop-webmail": {
2895
+ value: "n",
2896
+ notes: [],
2897
+ version: "2020-03"
2898
+ },
2899
+ "protonmail.ios": {
2900
+ value: "n",
2901
+ notes: [],
2902
+ version: "2020-03"
2903
+ },
2904
+ "protonmail.android": {
2905
+ value: "n",
2906
+ notes: [5],
2907
+ version: "2020-03"
2908
+ },
2909
+ "hey.desktop-webmail": {
2910
+ value: "n",
2911
+ notes: [],
2912
+ version: "2020-06"
2913
+ },
2914
+ "mail-ru.desktop-webmail": {
2915
+ value: "n",
2916
+ notes: [6],
2917
+ version: "2020-10"
2918
+ },
2919
+ "fastmail.desktop-webmail": {
2920
+ value: "n",
2921
+ notes: [],
2922
+ version: "2021-07"
2923
+ },
2924
+ "laposte.desktop-webmail": {
2925
+ value: "n",
2926
+ notes: [4],
2927
+ version: "2021-08"
2928
+ },
2929
+ "gmx.desktop-webmail": {
2930
+ value: "n",
2931
+ notes: [],
2932
+ version: "2022-11"
2933
+ },
2934
+ "gmx.android": {
2935
+ value: "n",
2936
+ notes: [],
2937
+ version: "2022-11"
2938
+ },
2939
+ "web-de.desktop-webmail": {
2940
+ value: "n",
2941
+ notes: [],
2942
+ version: "2022-11"
2943
+ },
2944
+ "web-de.android": {
2945
+ value: "n",
2946
+ notes: [],
2947
+ version: "2022-11"
2948
+ },
2949
+ "ionos-1and1.desktop-webmail": {
2950
+ value: "n",
2951
+ notes: [],
2952
+ version: "2022-11"
2953
+ },
2954
+ "ionos-1and1.android": {
2955
+ value: "n",
2956
+ notes: [],
2957
+ version: "2022-11"
2958
+ }
2959
+ }
2960
+ },
2961
+ "html-object": {
2962
+ title: "<object> element",
2963
+ url: "https://www.caniemail.com/features/html-object/",
2964
+ lastTestDate: "2021-02-20",
2965
+ notes: {
2966
+ 1: "Partial support. Does not support Videos resources.",
2967
+ 2: "Partial support. Does not support PDF resources.",
2968
+ 3: "Not supported. `<object>` is turned into `<noobject>`.",
2969
+ 4: "Not supported. The `<object>` element and all its content is removed."
2970
+ },
2971
+ cells: {
2972
+ "apple-mail.macos": {
2973
+ value: "a",
2974
+ notes: [1],
2975
+ version: "14.0"
2976
+ },
2977
+ "gmail.desktop-webmail": {
2978
+ value: "n",
2979
+ notes: [],
2980
+ version: "2020-10"
2981
+ },
2982
+ "gmail.ios": {
2983
+ value: "n",
2984
+ notes: [],
2985
+ version: "2020-10"
2986
+ },
2987
+ "gmail.android": {
2988
+ value: "n",
2989
+ notes: [],
2990
+ version: "2020-10"
2991
+ },
2992
+ "gmail.mobile-webmail": {
2993
+ value: "n",
2994
+ notes: [],
2995
+ version: "2020-10"
2996
+ },
2997
+ "orange.desktop-webmail": {
2998
+ value: "n",
2999
+ notes: [],
3000
+ version: "2021-03"
3001
+ },
3002
+ "orange.ios": {
3003
+ value: "n",
3004
+ notes: [],
3005
+ version: "2020-10"
3006
+ },
3007
+ "orange.android": {
3008
+ value: "n",
3009
+ notes: [],
3010
+ version: "2020-10"
3011
+ },
3012
+ "outlook.windows": {
3013
+ value: "n",
3014
+ notes: [],
3015
+ version: "2019"
3016
+ },
3017
+ "outlook.windows-mail": {
3018
+ value: "n",
3019
+ notes: [],
3020
+ version: "2020-10"
3021
+ },
3022
+ "outlook.macos": {
3023
+ value: "n",
3024
+ notes: [],
3025
+ version: "16.80"
3026
+ },
3027
+ "outlook.outlook-com": {
3028
+ value: "n",
3029
+ notes: [],
3030
+ version: "2024-01"
3031
+ },
3032
+ "outlook.ios": {
3033
+ value: "n",
3034
+ notes: [],
3035
+ version: "2020-10"
3036
+ },
3037
+ "outlook.android": {
3038
+ value: "n",
3039
+ notes: [],
3040
+ version: "2020-10"
3041
+ },
3042
+ "samsung-email.android": {
3043
+ value: "a",
3044
+ notes: [2],
3045
+ version: "6.1"
3046
+ },
3047
+ "sfr.desktop-webmail": {
3048
+ value: "n",
3049
+ notes: [3],
3050
+ version: "2020-10"
3051
+ },
3052
+ "sfr.ios": {
3053
+ value: "n",
3054
+ notes: [],
3055
+ version: "2020-10"
3056
+ },
3057
+ "sfr.android": {
3058
+ value: "n",
3059
+ notes: [],
3060
+ version: "2020-10"
3061
+ },
3062
+ "thunderbird.macos": {
3063
+ value: "a",
3064
+ notes: [2],
3065
+ version: "78.7"
3066
+ },
3067
+ "aol.desktop-webmail": {
3068
+ value: "n",
3069
+ notes: [],
3070
+ version: "2021-02"
3071
+ },
3072
+ "aol.ios": {
3073
+ value: "n",
3074
+ notes: [],
3075
+ version: "2020-10"
3076
+ },
3077
+ "aol.android": {
3078
+ value: "n",
3079
+ notes: [],
3080
+ version: "2020-10"
3081
+ },
3082
+ "yahoo.desktop-webmail": {
3083
+ value: "n",
3084
+ notes: [],
3085
+ version: "2020-10"
3086
+ },
3087
+ "yahoo.ios": {
3088
+ value: "n",
3089
+ notes: [],
3090
+ version: "2020-10"
3091
+ },
3092
+ "yahoo.android": {
3093
+ value: "n",
3094
+ notes: [],
3095
+ version: "2020-10"
3096
+ },
3097
+ "protonmail.desktop-webmail": {
3098
+ value: "n",
3099
+ notes: [],
3100
+ version: "2020-10"
3101
+ },
3102
+ "protonmail.ios": {
3103
+ value: "n",
3104
+ notes: [],
3105
+ version: "2020-10"
3106
+ },
3107
+ "protonmail.android": {
3108
+ value: "n",
3109
+ notes: [],
3110
+ version: "2020-10"
3111
+ },
3112
+ "hey.desktop-webmail": {
3113
+ value: "n",
3114
+ notes: [],
3115
+ version: "2020-10"
3116
+ },
3117
+ "mail-ru.desktop-webmail": {
3118
+ value: "n",
3119
+ notes: [],
3120
+ version: "2020-10"
3121
+ },
3122
+ "fastmail.desktop-webmail": {
3123
+ value: "n",
3124
+ notes: [4],
3125
+ version: "2021-07"
3126
+ },
3127
+ "laposte.desktop-webmail": {
3128
+ value: "n",
3129
+ notes: [3],
3130
+ version: "2021-08"
3131
+ },
3132
+ "gmx.desktop-webmail": {
3133
+ value: "n",
3134
+ notes: [],
3135
+ version: "2022-11"
3136
+ },
3137
+ "gmx.ios": {
3138
+ value: "a",
3139
+ notes: [1, 2],
3140
+ version: "2022-11"
3141
+ },
3142
+ "gmx.android": {
3143
+ value: "n",
3144
+ notes: [],
3145
+ version: "2022-11"
3146
+ },
3147
+ "web-de.desktop-webmail": {
3148
+ value: "n",
3149
+ notes: [],
3150
+ version: "2022-11"
3151
+ },
3152
+ "web-de.ios": {
3153
+ value: "a",
3154
+ notes: [1, 2],
3155
+ version: "2022-11"
3156
+ },
3157
+ "web-de.android": {
3158
+ value: "n",
3159
+ notes: [],
3160
+ version: "2022-11"
3161
+ },
3162
+ "ionos-1and1.desktop-webmail": {
3163
+ value: "n",
3164
+ notes: [],
3165
+ version: "2022-11"
3166
+ },
3167
+ "ionos-1and1.android": {
3168
+ value: "n",
3169
+ notes: [],
3170
+ version: "2022-11"
3171
+ }
3172
+ }
3173
+ },
3174
+ "html-video": {
3175
+ title: "<video> element",
3176
+ url: "https://www.caniemail.com/features/html-video/",
3177
+ lastTestDate: "2019-09-16",
3178
+ notes: {
3179
+ 1: "The `<video>` element is supported, but not the inner `<source>` element so no video can play.",
3180
+ 2: "`<video>`, `<source>` and `<track>` tags are replaced by `<u></u>` tags.",
3181
+ 3: "Buggy. Support depends on the version of Internet Explorer installed.",
3182
+ 4: "`<video>`, `<source>` and `<track>` tags are stripped. The fallback content is shown instead.",
3183
+ 5: "Partial support. Requires the `controls` attribute to play.",
3184
+ 6: "Partial support. `autoplay` is not supported.",
3185
+ 7: "The `<video>` element is supported and the `poster` image is visible, but the video can not play due to a strict Content Security Policy.",
3186
+ 8: "The `<video>` element is supported, but the video can not play due to a strict Content Security Policy.",
3187
+ 9: "Not supported. The `<video>` element and all its content is removed.",
3188
+ 10: "Not supported. The `src` attribute is replaced by `data-src`.",
3189
+ 11: "Partial support. The video can be played by doing a right click and play. But `autoplay` and `controls` are not supported."
3190
+ },
3191
+ cells: {
3192
+ "apple-mail.ios": {
3193
+ value: "a",
3194
+ notes: [5, 6],
3195
+ version: "13.3"
3196
+ },
3197
+ "gmail.desktop-webmail": {
3198
+ value: "n",
3199
+ notes: [2],
3200
+ version: "2019-09"
3201
+ },
3202
+ "gmail.ios": {
3203
+ value: "n",
3204
+ notes: [2],
3205
+ version: "2019-09"
3206
+ },
3207
+ "gmail.android": {
3208
+ value: "n",
3209
+ notes: [2],
3210
+ version: "2019-09"
3211
+ },
3212
+ "gmail.mobile-webmail": {
3213
+ value: "n",
3214
+ notes: [2],
3215
+ version: "2020-02"
3216
+ },
3217
+ "orange.desktop-webmail": {
3218
+ value: "n",
3219
+ notes: [],
3220
+ version: "2024-04"
3221
+ },
3222
+ "orange.ios": {
3223
+ value: "n",
3224
+ notes: [],
3225
+ version: "2024-04"
3226
+ },
3227
+ "orange.android": {
3228
+ value: "n",
3229
+ notes: [],
3230
+ version: "2024-04"
3231
+ },
3232
+ "outlook.windows": {
3233
+ value: "n",
3234
+ notes: [],
3235
+ version: "2019"
3236
+ },
3237
+ "outlook.windows-mail": {
3238
+ value: "n",
3239
+ notes: [],
3240
+ version: "2019-09"
3241
+ },
3242
+ "outlook.macos": {
3243
+ value: "y",
3244
+ notes: [11],
3245
+ version: "16.80"
3246
+ },
3247
+ "outlook.outlook-com": {
3248
+ value: "n",
3249
+ notes: [8],
3250
+ version: "2024-01"
3251
+ },
3252
+ "outlook.ios": {
3253
+ value: "n",
3254
+ notes: [8],
3255
+ version: "2021-05"
3256
+ },
3257
+ "outlook.android": {
3258
+ value: "n",
3259
+ notes: [8],
3260
+ version: "2021-05"
3261
+ },
3262
+ "samsung-email.android": {
3263
+ value: "a",
3264
+ notes: [5],
3265
+ version: "6.0"
3266
+ },
3267
+ "aol.desktop-webmail": {
3268
+ value: "n",
3269
+ notes: [4],
3270
+ version: "2019-09"
3271
+ },
3272
+ "aol.ios": {
3273
+ value: "n",
3274
+ notes: [4],
3275
+ version: "2019-09"
3276
+ },
3277
+ "aol.android": {
3278
+ value: "n",
3279
+ notes: [4],
3280
+ version: "2019-09"
3281
+ },
3282
+ "yahoo.desktop-webmail": {
3283
+ value: "n",
3284
+ notes: [4],
3285
+ version: "2019-09"
3286
+ },
3287
+ "yahoo.ios": {
3288
+ value: "n",
3289
+ notes: [4],
3290
+ version: "2019-09"
3291
+ },
3292
+ "yahoo.android": {
3293
+ value: "n",
3294
+ notes: [4],
3295
+ version: "2019-09"
3296
+ },
3297
+ "protonmail.desktop-webmail": {
3298
+ value: "n",
3299
+ notes: [7],
3300
+ version: "2020-03"
3301
+ },
3302
+ "protonmail.ios": {
3303
+ value: "n",
3304
+ notes: [],
3305
+ version: "2020-03"
3306
+ },
3307
+ "protonmail.android": {
3308
+ value: "n",
3309
+ notes: [],
3310
+ version: "2020-03"
3311
+ },
3312
+ "hey.desktop-webmail": {
3313
+ value: "n",
3314
+ notes: [],
3315
+ version: "2020-06"
3316
+ },
3317
+ "mail-ru.desktop-webmail": {
3318
+ value: "n",
3319
+ notes: [],
3320
+ version: "2020-10"
3321
+ },
3322
+ "fastmail.desktop-webmail": {
3323
+ value: "n",
3324
+ notes: [9],
3325
+ version: "2021-07"
3326
+ },
3327
+ "laposte.desktop-webmail": {
3328
+ value: "n",
3329
+ notes: [10],
3330
+ version: "2021-08"
3331
+ },
3332
+ "gmx.desktop-webmail": {
3333
+ value: "n",
3334
+ notes: [],
3335
+ version: "2022-11"
3336
+ },
3337
+ "gmx.ios": {
3338
+ value: "y",
3339
+ notes: [5, 6],
3340
+ version: "2022-11"
3341
+ },
3342
+ "gmx.android": {
3343
+ value: "n",
3344
+ notes: [],
3345
+ version: "2022-11"
3346
+ },
3347
+ "web-de.desktop-webmail": {
3348
+ value: "n",
3349
+ notes: [],
3350
+ version: "2022-11"
3351
+ },
3352
+ "web-de.ios": {
3353
+ value: "y",
3354
+ notes: [5, 6],
3355
+ version: "2022-11"
3356
+ },
3357
+ "web-de.android": {
3358
+ value: "n",
3359
+ notes: [],
3360
+ version: "2022-11"
3361
+ },
3362
+ "ionos-1and1.desktop-webmail": {
3363
+ value: "n",
3364
+ notes: [9],
3365
+ version: "2022-11"
3366
+ },
3367
+ "ionos-1and1.android": {
3368
+ value: "n",
3369
+ notes: [],
3370
+ version: "2022-11"
3371
+ }
3372
+ }
3373
+ },
3374
+ "html-audio": {
3375
+ title: "<audio> element",
3376
+ url: "https://www.caniemail.com/features/html-audio/",
3377
+ lastTestDate: "2020-04-21",
3378
+ notes: {
3379
+ 1: "Does not play.",
3380
+ 2: "The `src` attribute is transformed into `proton-src`.",
3381
+ 3: "The `<audio>` element is supported but can not be played.",
3382
+ 4: "The `<audio>` element is supported, but the video can not play due to a strict Content Security Policy.",
3383
+ 5: "Not supported. The `<audio>` element and all its content is removed.",
3384
+ 6: "Not supported. The `src` attribute is replaced by `data-src`."
3385
+ },
3386
+ cells: {
3387
+ "gmail.desktop-webmail": {
3388
+ value: "n",
3389
+ notes: [],
3390
+ version: "2020-04"
3391
+ },
3392
+ "gmail.ios": {
3393
+ value: "n",
3394
+ notes: [],
3395
+ version: "2020-04"
3396
+ },
3397
+ "gmail.android": {
3398
+ value: "n",
3399
+ notes: [],
3400
+ version: "2020-04"
3401
+ },
3402
+ "gmail.mobile-webmail": {
3403
+ value: "n",
3404
+ notes: [],
3405
+ version: "2020-04"
3406
+ },
3407
+ "orange.desktop-webmail": {
3408
+ value: "n",
3409
+ notes: [],
3410
+ version: "2024-04"
3411
+ },
3412
+ "orange.ios": {
3413
+ value: "n",
3414
+ notes: [],
3415
+ version: "2024-04"
3416
+ },
3417
+ "orange.android": {
3418
+ value: "n",
3419
+ notes: [],
3420
+ version: "2024-04"
3421
+ },
3422
+ "outlook.windows": {
3423
+ value: "n",
3424
+ notes: [],
3425
+ version: "2019"
3426
+ },
3427
+ "outlook.windows-mail": {
3428
+ value: "n",
3429
+ notes: [],
3430
+ version: "2020-04"
3431
+ },
3432
+ "outlook.macos": {
3433
+ value: "n",
3434
+ notes: [],
3435
+ version: "16.80"
3436
+ },
3437
+ "outlook.outlook-com": {
3438
+ value: "n",
3439
+ notes: [4],
3440
+ version: "2024-01"
3441
+ },
3442
+ "outlook.ios": {
3443
+ value: "n",
3444
+ notes: [4],
3445
+ version: "2021-05"
3446
+ },
3447
+ "outlook.android": {
3448
+ value: "n",
3449
+ notes: [4],
3450
+ version: "2021-05"
3451
+ },
3452
+ "aol.desktop-webmail": {
3453
+ value: "n",
3454
+ notes: [],
3455
+ version: "2020-04"
3456
+ },
3457
+ "aol.ios": {
3458
+ value: "n",
3459
+ notes: [],
3460
+ version: "2020-04"
3461
+ },
3462
+ "aol.android": {
3463
+ value: "n",
3464
+ notes: [],
3465
+ version: "2020-04"
3466
+ },
3467
+ "yahoo.desktop-webmail": {
3468
+ value: "n",
3469
+ notes: [],
3470
+ version: "2020-04"
3471
+ },
3472
+ "yahoo.ios": {
3473
+ value: "n",
3474
+ notes: [],
3475
+ version: "2020-04"
3476
+ },
3477
+ "yahoo.android": {
3478
+ value: "n",
3479
+ notes: [],
3480
+ version: "2020-04"
3481
+ },
3482
+ "protonmail.desktop-webmail": {
3483
+ value: "n",
3484
+ notes: [2],
3485
+ version: "2020-04"
3486
+ },
3487
+ "protonmail.ios": {
3488
+ value: "n",
3489
+ notes: [],
3490
+ version: "2020-04"
3491
+ },
3492
+ "protonmail.android": {
3493
+ value: "n",
3494
+ notes: [],
3495
+ version: "2020-04"
3496
+ },
3497
+ "hey.desktop-webmail": {
3498
+ value: "n",
3499
+ notes: [],
3500
+ version: "2020-06"
3501
+ },
3502
+ "mail-ru.desktop-webmail": {
3503
+ value: "n",
3504
+ notes: [],
3505
+ version: "2020-10"
3506
+ },
3507
+ "fastmail.desktop-webmail": {
3508
+ value: "n",
3509
+ notes: [5],
3510
+ version: "2021-07"
3511
+ },
3512
+ "laposte.desktop-webmail": {
3513
+ value: "n",
3514
+ notes: [6],
3515
+ version: "2021-08"
3516
+ },
3517
+ "gmx.desktop-webmail": {
3518
+ value: "n",
3519
+ notes: [],
3520
+ version: "2022-11"
3521
+ },
3522
+ "gmx.ios": {
3523
+ value: "n",
3524
+ notes: [3],
3525
+ version: "2022-11"
3526
+ },
3527
+ "gmx.android": {
3528
+ value: "n",
3529
+ notes: [],
3530
+ version: "2022-11"
3531
+ },
3532
+ "web-de.desktop-webmail": {
3533
+ value: "n",
3534
+ notes: [],
3535
+ version: "2022-11"
3536
+ },
3537
+ "web-de.ios": {
3538
+ value: "n",
3539
+ notes: [3],
3540
+ version: "2022-11"
3541
+ },
3542
+ "web-de.android": {
3543
+ value: "n",
3544
+ notes: [],
3545
+ version: "2022-11"
3546
+ },
3547
+ "ionos-1and1.desktop-webmail": {
3548
+ value: "n",
3549
+ notes: [5],
3550
+ version: "2022-11"
3551
+ }
3552
+ }
3553
+ },
3554
+ "css-width": {
3555
+ title: "width property",
3556
+ url: "https://www.caniemail.com/features/css-width/",
3557
+ lastTestDate: "2019-09-27",
3558
+ notes: {
3559
+ 1: "Partial. Not supported on `<body>`, `<span>`, `<div>`, `<p>` or `<img>` elements.",
3560
+ 2: "Buggy. The webmail has a generic style that sets `table { width:inherit; }`."
3561
+ },
3562
+ cells: {
3563
+ "outlook.windows": {
3564
+ value: "a",
3565
+ notes: [1],
3566
+ version: "2019"
3567
+ },
3568
+ "laposte.desktop-webmail": {
3569
+ value: "a",
3570
+ notes: [2],
3571
+ version: "2021-08"
3572
+ }
3573
+ }
3574
+ },
3575
+ "css-max-width": {
3576
+ title: "max-width",
3577
+ url: "https://www.caniemail.com/features/css-max-width/",
3578
+ lastTestDate: "2019-08-02",
3579
+ notes: {
3580
+ 1: "Partial. Only works on `<table>` elements.",
3581
+ 2: "Partial. Doesn't work on `<table>` elements, as per [CSS 2.1 specification](https://www.w3.org/TR/CSS2/visudet.html#min-max-widths)."
3582
+ },
3583
+ cells: {
3584
+ "outlook.windows": {
3585
+ value: "a",
3586
+ notes: [1],
3587
+ version: "2019"
3588
+ },
3589
+ "outlook.windows-mail": {
3590
+ value: "a",
3591
+ notes: [1],
3592
+ version: "2020-01"
3593
+ }
3594
+ }
3595
+ },
3596
+ "css-float": {
3597
+ title: "float",
3598
+ url: "https://www.caniemail.com/features/css-float/",
3599
+ lastTestDate: "2024-05-08",
3600
+ notes: {
3601
+ 1: "Not supported. `table` and `img` elements can use an `align` attribute to get a similar effect.",
3602
+ 2: "Partial. Logical property values `inline-start` and `inline-end` are not supported."
3603
+ },
3604
+ cells: {
3605
+ "gmail.ios": {
3606
+ value: "a",
3607
+ notes: [2],
3608
+ version: "2024-05"
3609
+ },
3610
+ "gmail.android": {
3611
+ value: "a",
3612
+ notes: [2],
3613
+ version: "2024-05"
3614
+ },
3615
+ "outlook.windows": {
3616
+ value: "n",
3617
+ notes: [1],
3618
+ version: "2019"
3619
+ },
3620
+ "outlook.windows-mail": {
3621
+ value: "n",
3622
+ notes: [1],
3623
+ version: "2019-02"
3624
+ },
3625
+ "yahoo.desktop-webmail": {
3626
+ value: "a",
3627
+ notes: [2],
3628
+ version: "2024-05"
3629
+ },
3630
+ "yahoo.ios": {
3631
+ value: "a",
3632
+ notes: [2],
3633
+ version: "2024-05"
3634
+ },
3635
+ "yahoo.android": {
3636
+ value: "a",
3637
+ notes: [2],
3638
+ version: "2024-05"
3639
+ },
3640
+ "aol.desktop-webmail": {
3641
+ value: "a",
3642
+ notes: [2],
3643
+ version: "2024-05"
3644
+ },
3645
+ "aol.ios": {
3646
+ value: "a",
3647
+ notes: [2],
3648
+ version: "2024-05"
3649
+ },
3650
+ "aol.android": {
3651
+ value: "a",
3652
+ notes: [2],
3653
+ version: "2024-05"
3654
+ },
3655
+ "gmx.desktop-webmail": {
3656
+ value: "a",
3657
+ notes: [2],
3658
+ version: "2024-05"
3659
+ },
3660
+ "web-de.desktop-webmail": {
3661
+ value: "a",
3662
+ notes: [2],
3663
+ version: "2024-05"
3664
+ }
3665
+ }
3666
+ },
3667
+ "css-background-image": {
3668
+ title: "background-image",
3669
+ url: "https://www.caniemail.com/features/css-background-image/",
3670
+ lastTestDate: "2023-07-24",
3671
+ notes: {
3672
+ 1: "Partial. Not supported with non Google accounts.",
3673
+ 2: "Buggy. Requires at least one `<img>` element in the email to download all images.",
3674
+ 3: "Partial. Does not support multiple values. The comma between two values is removed.",
3675
+ 4: "Partial. Images URL must be between quotes.",
3676
+ 5: "Background images can be used in VML. See [backgrounds.cm](https://backgrounds.cm/) and [VML documentation](https://docs.microsoft.com/en-us/windows/win32/vml/web-workshop---how-to-use-vml-on-web-pages-----fill--element).",
3677
+ 6: "Partial and buggy. Removes the entire `style` attribute or `<style>` tag when a `url()` function with a valid image URL is present. See [Gmail rolling out changes that strip CSS with background images](https://freshinbox.com/blog/gmail-rolling-out-changes-that-strip-background-image-css/) and [Gmail and background images](https://parcel.io/blog/gmail-and-background-images)."
3678
+ },
3679
+ cells: {
3680
+ "outlook.windows": {
3681
+ value: "n",
3682
+ notes: [5],
3683
+ version: "2019"
3684
+ },
3685
+ "outlook.windows-mail": {
3686
+ value: "n",
3687
+ notes: [],
3688
+ version: "2019-02"
3689
+ },
3690
+ "yahoo.desktop-webmail": {
3691
+ value: "a",
3692
+ notes: [3],
3693
+ version: "2021-10"
3694
+ },
3695
+ "yahoo.ios": {
3696
+ value: "a",
3697
+ notes: [3],
3698
+ version: "2021-10"
3699
+ },
3700
+ "yahoo.android": {
3701
+ value: "a",
3702
+ notes: [3],
3703
+ version: "2021-10"
3704
+ },
3705
+ "aol.desktop-webmail": {
3706
+ value: "a",
3707
+ notes: [3],
3708
+ version: "2021-10"
3709
+ },
3710
+ "aol.ios": {
3711
+ value: "a",
3712
+ notes: [3],
3713
+ version: "2021-10"
3714
+ },
3715
+ "aol.android": {
3716
+ value: "a",
3717
+ notes: [3],
3718
+ version: "2021-10"
3719
+ },
3720
+ "t-online-de.desktop-webmail": {
3721
+ value: "n",
3722
+ notes: [],
3723
+ version: "2021-11"
3724
+ },
3725
+ "free-fr.desktop-webmail": {
3726
+ value: "n",
3727
+ notes: [],
3728
+ version: "2021-11"
3729
+ },
3730
+ "gmx.desktop-webmail": {
3731
+ value: "a",
3732
+ notes: [3],
3733
+ version: "2022-06"
3734
+ },
3735
+ "web-de.desktop-webmail": {
3736
+ value: "a",
3737
+ notes: [3],
3738
+ version: "2022-06"
3739
+ }
3740
+ }
3741
+ },
3742
+ "image-base64": {
3743
+ title: "Base 64 image format",
3744
+ url: "https://www.caniemail.com/features/image-base64/",
3745
+ lastTestDate: "2020-02-06",
3746
+ notes: {
3747
+ 1: "Partial: Does not render Base 64 gif format.",
3748
+ 2: "Not supported. The `src` is turned into a `nosrc` attribute.",
3749
+ 3: "Partial: Only supports Base 64 png format."
3750
+ },
3751
+ cells: {
3752
+ "gmail.desktop-webmail": {
3753
+ value: "n",
3754
+ notes: [],
3755
+ version: "2024-05"
3756
+ },
3757
+ "gmail.ios": {
3758
+ value: "n",
3759
+ notes: [],
3760
+ version: "2020-02"
3761
+ },
3762
+ "gmail.android": {
3763
+ value: "n",
3764
+ notes: [],
3765
+ version: "2020-02"
3766
+ },
3767
+ "gmail.mobile-webmail": {
3768
+ value: "n",
3769
+ notes: [],
3770
+ version: "2020-02"
3771
+ },
3772
+ "outlook.windows": {
3773
+ value: "a",
3774
+ notes: [1],
3775
+ version: "2019"
3776
+ },
3777
+ "outlook.windows-mail": {
3778
+ value: "n",
3779
+ notes: [],
3780
+ version: "2020-02"
3781
+ },
3782
+ "sfr.desktop-webmail": {
3783
+ value: "n",
3784
+ notes: [2],
3785
+ version: "2020-02"
3786
+ },
3787
+ "hey.desktop-webmail": {
3788
+ value: "n",
3789
+ notes: [],
3790
+ version: "2020-06"
3791
+ },
3792
+ "laposte.desktop-webmail": {
3793
+ value: "n",
3794
+ notes: [2],
3795
+ version: "2021-08"
3796
+ },
3797
+ "gmx.desktop-webmail": {
3798
+ value: "a",
3799
+ notes: [3],
3800
+ version: "2022-09"
3801
+ },
3802
+ "web-de.desktop-webmail": {
3803
+ value: "a",
3804
+ notes: [3],
3805
+ version: "2022-09"
3806
+ }
3807
+ }
3808
+ }
3809
+ }, Rn = [
3810
+ "css-display-flex",
3811
+ "css-display-grid",
3812
+ "css-position",
3813
+ "css-variables",
3814
+ "css-at-import",
3815
+ "html-link",
3816
+ "html-style",
3817
+ "html-svg",
3818
+ "html-form",
3819
+ "html-object",
3820
+ "html-video",
3821
+ "html-audio",
3822
+ "css-width",
3823
+ "css-max-width",
3824
+ "css-float",
3825
+ "css-background-image",
3826
+ "image-base64"
3827
+ ];
3828
+ //#endregion
3829
+ //#region ../quality/src/compatibility/scan.ts
3830
+ function zn(e) {
3831
+ let t = "", n = 0;
3832
+ for (;;) {
3833
+ let r = e.indexOf("/*", n);
3834
+ if (r === -1) return t + e.slice(n);
3835
+ t += e.slice(n, r);
3836
+ let i = e.indexOf("*/", r + 2);
3837
+ if (i === -1) return t;
3838
+ n = i + 2;
3839
+ }
3840
+ }
3841
+ function q(e) {
3842
+ let t = e.toLowerCase(), n = (e, n) => {
3843
+ let r = t.indexOf(e, n);
3844
+ return r === -1 ? Infinity : r;
3845
+ }, r = {
3846
+ "url(": ")",
3847
+ "\"": "\"",
3848
+ "'": "'"
3849
+ }, i = {
3850
+ "url(": 0,
3851
+ "\"": 0,
3852
+ "'": 0
3853
+ };
3854
+ for (let e of Object.keys(i)) i[e] = n(e, 0);
3855
+ let a = "", o = 0;
3856
+ for (;;) {
3857
+ let s = "", c = Infinity;
3858
+ for (let e of Object.keys(i)) i[e] < o && (i[e] = n(e, o)), i[e] < c && (c = i[e], s = e);
3859
+ if (c === Infinity) return a + e.slice(o);
3860
+ a += e.slice(o, c);
3861
+ let l = t.indexOf(r[s], c + s.length);
3862
+ if (s !== "url(") {
3863
+ let t = c + 1;
3864
+ for (; t < e.length;) if (e[t] === "\\") t += 2;
3865
+ else if (e[t] === s) {
3866
+ l = t;
3867
+ break;
3868
+ } else t++;
3869
+ t >= e.length && (l = -1);
3870
+ }
3871
+ if (l === -1) return a;
3872
+ o = l + 1;
3873
+ }
3874
+ }
3875
+ function Bn(e, t, n, r, i) {
3876
+ let a = [], o = zn(e).replace(/data:([\w.+-]+\/[\w.+-]+)[^)"']*/gi, "data:$1");
3877
+ for (let e of o.matchAll(/(?:^|[;{])\s*([\w-]+)\s*:\s*([^;}]+)/g)) a.push({
3878
+ prop: e[1].toLowerCase(),
3879
+ value: e[2].trim(),
3880
+ tag: t,
3881
+ attrs: n,
3882
+ inline: r,
3883
+ group: i
3884
+ });
3885
+ return a;
3886
+ }
3887
+ function Vn(e, t = "", n = []) {
3888
+ let r = {
3889
+ tags: [],
3890
+ css: [],
3891
+ cssTexts: [],
3892
+ urls: [...n]
3893
+ }, i = !1, a = "", o = 0, s = (e, t, n, i) => {
3894
+ r.cssTexts.push(zn(e));
3895
+ let a = o++;
3896
+ if (i) r.css.push(...Bn(e, t, n, !0, `${a}`));
3897
+ else for (let [i, o] of e.split("}").entries()) r.css.push(...Bn(o, t, n, !1, `${a}:${i}`));
3898
+ };
3899
+ return new g({
3900
+ onopentag(e, t) {
3901
+ r.tags.push({
3902
+ tag: e,
3903
+ attrs: t
3904
+ }), t.style && s(t.style, e, t, !0), e === "img" && t.src && r.urls.push(t.src), t.background && r.urls.push(t.background), e === "style" && (i = !0, a = "");
3905
+ },
3906
+ ontext(e) {
3907
+ i && (a += e);
3908
+ },
3909
+ onclosetag(e) {
3910
+ e === "style" && (i = !1, s(a, "style", {}, !1));
3911
+ }
3912
+ }, { decodeEntities: !0 }).end(e), t && s(t, "stylesheet", {}, !1), r;
3913
+ }
3914
+ function Hn(e) {
3915
+ let t = [], n = [], r = [];
3916
+ switch (e.type) {
3917
+ case "html":
3918
+ case "paragraph":
3919
+ case "title":
3920
+ t.push(e.content);
3921
+ break;
3922
+ case "table":
3923
+ for (let n of e.rows) for (let e of n.cells) t.push(e.content);
3924
+ break;
3925
+ case "custom":
3926
+ e.renderedHtml && t.push(e.renderedHtml), e.renderedStylesheet && n.push(e.renderedStylesheet);
3927
+ break;
3928
+ case "image":
3929
+ r.push(e.src);
3930
+ break;
3931
+ case "video":
3932
+ r.push(e.thumbnailUrl);
3933
+ break;
3934
+ case "section":
3935
+ e.backgroundImage && r.push(e.backgroundImage.url), e.wrapper?.backgroundImage && r.push(e.wrapper.backgroundImage.url);
3936
+ break;
3937
+ case "wrapper": e.backgroundImage && r.push(e.backgroundImage.url);
3938
+ }
3939
+ return Vn(t.join("\n"), n.join("\n"), r);
3940
+ }
3941
+ //#endregion
3942
+ //#region ../quality/src/compatibility/detect.ts
3943
+ var Un = (e) => e.replace(/\s+/g, " ").trim().slice(0, 80), J = ({ prop: e, value: t }) => Un(`${e}: ${t}`), Wn = (e) => `<${e}>`, Gn = /#[0-9a-f]{3,8}\b|\b(?:rgba?|hsla?)\(/i;
3944
+ function Kn(e) {
3945
+ let t = /^\s*data:(image\/[\w.+-]+)/i.exec(e);
3946
+ return t ? t[1].toLowerCase() : null;
3947
+ }
3948
+ function qn(e) {
3949
+ let t = /* @__PURE__ */ new Map();
3950
+ for (let n of e.css) {
3951
+ let e = n.group;
3952
+ t.set(e, [...t.get(e) ?? [], n]);
3953
+ }
3954
+ for (let e of t.values()) {
3955
+ let t = e.find((e) => (e.prop === "background" || e.prop === "background-image") && /url\(/i.test(e.value));
3956
+ if (!(!t || "bgcolor" in t.attrs) && !e.some((e) => e.prop === "background-color" || e.prop === "background" && Gn.test(q(e.value)))) return t;
3957
+ }
3958
+ }
3959
+ function Jn(e, t) {
3960
+ let n = e.css, r = e.tags, i, a;
3961
+ switch (t) {
3962
+ case "compat.css-display-flex":
3963
+ case "compat.css-display-grid": {
3964
+ let e = t.endsWith("flex") ? "flex" : "grid";
3965
+ return i = n.find((t) => t.prop === "display" && RegExp(`^(?:inline-)?${e}\\b`, "i").test(t.value)), i ? {
3966
+ excerpt: J(i),
3967
+ usage: i.value.match(/^(?:inline-)?(?:flex|grid)/i)?.[0].toLowerCase()
3968
+ } : null;
3969
+ }
3970
+ case "compat.css-position": return i = n.find((e) => e.prop === "position" && /^(absolute|fixed|sticky)\b/i.test(e.value)), i ? {
3971
+ excerpt: J(i),
3972
+ usage: i.value.match(/^\w+/)?.[0].toLowerCase(),
3973
+ value: i.value.match(/^\w+/)?.[0].toLowerCase()
3974
+ } : null;
3975
+ case "compat.css-variables": return i = n.find((e) => /\bvar\(\s*--/i.test(q(e.value))), i ? { excerpt: J(i) } : null;
3976
+ case "compat.css-at-import": return e.cssTexts.some((e) => /@import\b/i.test(q(e))) ? { excerpt: "@import" } : null;
3977
+ case "compat.html-link": return r.some((e) => e.tag === "link" && /(?:^|\s)stylesheet(?:\s|$)/i.test(e.attrs.rel ?? "")) ? { excerpt: "<link rel=\"stylesheet\">" } : null;
3978
+ case "compat.html-style":
3979
+ case "compat.html-svg":
3980
+ case "compat.html-object":
3981
+ case "compat.html-video":
3982
+ case "compat.html-audio":
3983
+ case "compat.html-script":
3984
+ case "compat.html-iframe": return a = t.slice(12), r.some((e) => e.tag === a) ? { excerpt: Wn(a) } : null;
3985
+ case "compat.html-form": return a = r.find((e) => [
3986
+ "form",
3987
+ "input",
3988
+ "select",
3989
+ "textarea"
3990
+ ].includes(e.tag))?.tag, a ? { excerpt: Wn(a) } : null;
3991
+ case "compat.css-width": return i = n.find((e) => e.inline && e.prop === "width" && ([
3992
+ "div",
3993
+ "p",
3994
+ "span",
3995
+ "body"
3996
+ ].includes(e.tag) || e.tag === "img" && !("width" in e.attrs))), i ? {
3997
+ excerpt: J(i),
3998
+ tag: i.tag
3999
+ } : null;
4000
+ case "compat.css-max-width": return i = n.find((e) => e.inline && e.prop === "max-width" && e.tag !== "table"), i ? {
4001
+ excerpt: J(i),
4002
+ tag: i.tag
4003
+ } : null;
4004
+ case "compat.css-float": return i = n.find((e) => e.prop === "float"), i ? {
4005
+ excerpt: J(i),
4006
+ tag: i.tag
4007
+ } : null;
4008
+ case "compat.css-background-image": return i = qn(e), i ? { excerpt: J(i) } : null;
4009
+ case "compat.image-base64": {
4010
+ let t = e.cssTexts.flatMap((e) => [...e.matchAll(/url\(\s*['"]?\s*(data:image\/[\w.+-]+)/gi)].map((e) => e[1])), n = [...e.urls, ...t].map(Kn).find((e) => e !== null);
4011
+ return n ? {
4012
+ excerpt: `data:${n}`,
4013
+ usage: n
4014
+ } : null;
4015
+ }
4016
+ default: return null;
4017
+ }
4018
+ }
4019
+ //#endregion
4020
+ //#region ../quality/src/compatibility/support.ts
4021
+ var Yn = Ln, Xn = [
4022
+ "gmail",
4023
+ "outlook",
4024
+ "apple-mail",
4025
+ "yahoo",
4026
+ "samsung-email"
4027
+ ], Y = In.family, X = In.platform;
4028
+ function Zn(e, t, n) {
4029
+ switch (e) {
4030
+ case "css-display-flex": return t === 2 && n === "inline-flex";
4031
+ case "css-position": {
4032
+ let e = {
4033
+ 1: ["relative", "absolute"],
4034
+ 2: ["sticky"],
4035
+ 3: ["relative"],
4036
+ 4: ["relative", "sticky"]
4037
+ };
4038
+ return e[t] !== void 0 && !e[t].includes(n);
4039
+ }
4040
+ case "html-style": return t === 1;
4041
+ case "css-width": return t === 1;
4042
+ case "css-max-width": return t === 1;
4043
+ case "image-base64": return t === 1 && n === "image/gif" || t === 3 && n !== "image/png";
4044
+ default: return !1;
4045
+ }
4046
+ }
4047
+ function Qn(e, t = "") {
4048
+ let n = Yn[e];
4049
+ if (!n) return [];
4050
+ let r = [];
4051
+ for (let [i, a] of Object.entries(n.cells)) {
4052
+ let o = i.indexOf("."), s = i.slice(0, o), c = i.slice(o + 1), l = a.notes.some((n) => Zn(e, n, t)) || a.value === "n" ? "unsupported" : a.value === "a" ? "partial" : null;
4053
+ if (!l) continue;
4054
+ let u = Y[s] ?? s, d = X[c] ?? c;
4055
+ r.push({
4056
+ id: i,
4057
+ name: d.toLowerCase().includes(u.toLowerCase()) ? d : `${u} ${d}`,
4058
+ support: l,
4059
+ notes: a.notes.map((e) => n.notes[String(e)]).filter((e) => !!e),
4060
+ testedAt: n.lastTestDate
4061
+ });
4062
+ }
4063
+ return r;
4064
+ }
4065
+ function $n(e, t, n) {
4066
+ let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
4067
+ for (let n of e) {
4068
+ let e = n.id.split(".")[0];
4069
+ r.set(e, [...r.get(e) ?? [], n]), n.support === t && i.set(e, [...i.get(e) ?? [], n]);
4070
+ }
4071
+ let a = [...i.keys()].sort((e, t) => {
4072
+ let n = Xn.indexOf(e), r = Xn.indexOf(t);
4073
+ return n === r ? (Y[e] ?? e).localeCompare(Y[t] ?? t) : (n < 0 ? Infinity : n) - (r < 0 ? Infinity : r);
4074
+ }).map((e) => {
4075
+ let t = Y[e] ?? e, n = i.get(e);
4076
+ return n.length === r.get(e).length ? t : `${t} (${n.map((e) => X[e.id.split(".")[1]] ?? e.name).join(", ")})`;
4077
+ }), o = a.slice(0, 4);
4078
+ return a.length > 4 && o.push(`${a.length - 4} ${n.startsWith("de") ? "weitere" : "more"}`), new Intl.ListFormat(n.startsWith("de") ? "de" : "en", { type: "conjunction" }).format(o);
4079
+ }
4080
+ //#endregion
4081
+ //#region ../quality/src/compatibility/messages/de.ts
4082
+ var er = /* @__PURE__ */ e({ default: () => tr }), tr = {
4083
+ templates: {
4084
+ unsupported: "{feature} funktioniert in {unsupported} nicht.",
4085
+ partial: "{feature} funktioniert in {partial} nur teilweise.",
4086
+ mixed: "{feature} funktioniert in {unsupported} nicht und in {partial} nur teilweise."
4087
+ },
4088
+ more: "{n} weitere",
4089
+ features: {
4090
+ "css-display-flex": {
4091
+ feature: "Flex-Layout ({excerpt})",
4092
+ suggestion: "Ordne den Inhalt mit einer Sektion und Spalten oder mit einer Tabelle an."
4093
+ },
4094
+ "css-display-grid": {
4095
+ feature: "Grid-Layout ({excerpt})",
4096
+ suggestion: "Ordne den Inhalt mit einer Sektion und Spalten oder mit einer Tabelle an."
4097
+ },
4098
+ "css-position": {
4099
+ feature: "position: {value}",
4100
+ suggestion: "Entferne die Positionierung und ordne den Inhalt mit einer Sektion und Spalten oder mit einer Tabelle an."
4101
+ },
4102
+ "css-variables": {
4103
+ feature: "Eine CSS-Variable (var(--…))",
4104
+ suggestion: "Schreibe den Wert direkt statt var(--…)."
4105
+ },
4106
+ "css-at-import": {
4107
+ feature: "Die @import-Regel",
4108
+ suggestion: "Schreibe die Regeln direkt in style-Attribute."
4109
+ },
4110
+ "html-link": {
4111
+ feature: "Ein externes Stylesheet (<link rel=\"stylesheet\">)",
4112
+ suggestion: "Schreibe die Stile direkt in style-Attribute."
4113
+ },
4114
+ "html-style": {
4115
+ feature: "Ein <style>-Element im E-Mail-Body",
4116
+ suggestion: "Schreibe die Regeln direkt in style-Attribute."
4117
+ },
4118
+ "html-svg": {
4119
+ feature: "Ein eingebettetes <svg>-Element",
4120
+ suggestion: "Verwende stattdessen ein PNG- oder JPEG-Bild."
4121
+ },
4122
+ "html-form": {
4123
+ feature: "Ein Formular (<form>, <input>, <select> oder <textarea>)",
4124
+ suggestion: "Verlinke stattdessen ein Formular auf einer Webseite."
4125
+ },
4126
+ "html-object": {
4127
+ feature: "Das <object>-Element",
4128
+ suggestion: "Verwende stattdessen ein Bild, das auf den Inhalt verlinkt."
4129
+ },
4130
+ "html-video": {
4131
+ feature: "Das <video>-Element",
4132
+ suggestion: "Verwende den Video-Block mit verlinktem Vorschaubild."
4133
+ },
4134
+ "html-audio": {
4135
+ feature: "Das <audio>-Element",
4136
+ suggestion: "Verlinke die Audiodatei oder eine Seite, die sie abspielt."
4137
+ },
4138
+ "css-width": {
4139
+ feature: "width auf einem <{tag}>-Element",
4140
+ suggestion: "Setze die Breite auf einer Tabellenzelle oder verwende bei Bildern das width-Attribut."
4141
+ },
4142
+ "css-max-width": {
4143
+ feature: "max-width auf einem <{tag}>-Element",
4144
+ suggestion: "Setze max-width stattdessen auf eine Tabelle."
4145
+ },
4146
+ "css-float": {
4147
+ feature: "Eine float-Deklaration ({excerpt}, Quelle: {tag})",
4148
+ suggestion: "Verwende align auf einer Tabelle oder einem Bild oder eine Sektion mit Spalten."
4149
+ },
4150
+ "css-background-image": {
4151
+ feature: "Ein Hintergrundbild ohne Ersatzfarbe",
4152
+ suggestion: "Ergänze background-color (oder bgcolor), damit der Text lesbar bleibt."
4153
+ },
4154
+ "image-base64": {
4155
+ feature: "Ein Base64-Bild ({excerpt})",
4156
+ suggestion: "Lade das Bild hoch und verwende seine URL."
4157
+ }
4158
+ },
4159
+ hand: {
4160
+ "compat.html-script": {
4161
+ message: "E-Mail-Clients führen kein JavaScript aus, daher bewirkt dieses <script>-Element nichts.",
4162
+ suggestion: "Entferne das <script>-Element."
4163
+ },
4164
+ "compat.html-iframe": {
4165
+ message: "Die meisten E-Mail-Clients blockieren <iframe>-Elemente, daher erscheint dieser Inhalt nicht.",
4166
+ suggestion: "Verlinke den Inhalt stattdessen, zum Beispiel mit einem Bild."
4167
+ },
4168
+ "compat.gmail-clipping": {
4169
+ message: "Das HTML dieser E-Mail ist {size} KB groß. Gmail schneidet Nachrichten ab etwa 102 KB ab und zeigt den Rest erst nach einem Klick; Versanddienste ergänzen Tracking-Links, bevor Gmail misst.",
4170
+ suggestion: "Bleibe unter {max} KB: Kürze den Inhalt, verschiebe lange Abschnitte auf eine Webseite oder ersetze Base64-Bilder durch gehostete Bilder."
4171
+ }
4172
+ }
4173
+ }, nr = /* @__PURE__ */ e({ default: () => rr }), rr = {
4174
+ templates: {
4175
+ unsupported: "{feature} doesn't work in {unsupported}.",
4176
+ partial: "{feature} only partly works in {partial}.",
4177
+ mixed: "{feature} doesn't work in {unsupported} and only partly works in {partial}."
4178
+ },
4179
+ more: "{n} more",
4180
+ features: {
4181
+ "css-display-flex": {
4182
+ feature: "Flex layout ({excerpt})",
4183
+ suggestion: "Lay the content out with a section and columns, or with a table."
4184
+ },
4185
+ "css-display-grid": {
4186
+ feature: "Grid layout ({excerpt})",
4187
+ suggestion: "Lay the content out with a section and columns, or with a table."
4188
+ },
4189
+ "css-position": {
4190
+ feature: "position: {value}",
4191
+ suggestion: "Remove the positioning and lay the content out with a section and columns, or with a table."
4192
+ },
4193
+ "css-variables": {
4194
+ feature: "A CSS variable (var(--…))",
4195
+ suggestion: "Write the value itself instead of var(--…)."
4196
+ },
4197
+ "css-at-import": {
4198
+ feature: "The @import rule",
4199
+ suggestion: "Inline the rules as style attributes."
4200
+ },
4201
+ "html-link": {
4202
+ feature: "An external stylesheet (<link rel=\"stylesheet\">)",
4203
+ suggestion: "Inline the styles as style attributes."
4204
+ },
4205
+ "html-style": {
4206
+ feature: "A <style> element in the email body",
4207
+ suggestion: "Inline the rules as style attributes."
4208
+ },
4209
+ "html-svg": {
4210
+ feature: "An inline <svg> element",
4211
+ suggestion: "Use a PNG or JPEG image instead."
4212
+ },
4213
+ "html-form": {
4214
+ feature: "A form (<form>, <input>, <select> or <textarea>)",
4215
+ suggestion: "Link to a form on a web page instead."
4216
+ },
4217
+ "html-object": {
4218
+ feature: "The <object> element",
4219
+ suggestion: "Use an image that links to the content instead."
4220
+ },
4221
+ "html-video": {
4222
+ feature: "The <video> element",
4223
+ suggestion: "Use the Video block, which shows a linked thumbnail."
4224
+ },
4225
+ "html-audio": {
4226
+ feature: "The <audio> element",
4227
+ suggestion: "Link to the audio file or a page that plays it."
4228
+ },
4229
+ "css-width": {
4230
+ feature: "width on a <{tag}> element",
4231
+ suggestion: "Set the width on a table cell, or use the width attribute on images."
4232
+ },
4233
+ "css-max-width": {
4234
+ feature: "max-width on a <{tag}> element",
4235
+ suggestion: "Put the max-width on a table instead."
4236
+ },
4237
+ "css-float": {
4238
+ feature: "A float declaration ({excerpt}, source: {tag})",
4239
+ suggestion: "Use align on a table or image, or a section with columns."
4240
+ },
4241
+ "css-background-image": {
4242
+ feature: "A background image without a fallback color",
4243
+ suggestion: "Add a background-color (or bgcolor) the text stays readable on."
4244
+ },
4245
+ "image-base64": {
4246
+ feature: "A base64 image ({excerpt})",
4247
+ suggestion: "Upload the image and use its URL."
4248
+ }
4249
+ },
4250
+ hand: {
4251
+ "compat.html-script": {
4252
+ message: "Email clients don't run JavaScript, so this <script> element does nothing.",
4253
+ suggestion: "Remove the <script> element."
4254
+ },
4255
+ "compat.html-iframe": {
4256
+ message: "Most email clients block <iframe> elements, so this content doesn't show.",
4257
+ suggestion: "Link to the content instead, for example with an image."
4258
+ },
4259
+ "compat.gmail-clipping": {
4260
+ message: "This email's HTML is {size} KB. Gmail clips messages over about 102 KB and shows the rest only after a click, and sending services add tracking links before Gmail measures.",
4261
+ suggestion: "Bring it under {max} KB: shorten the content, move long sections to a web page, or replace base64 images with hosted ones."
4262
+ }
4263
+ }
4264
+ }, ir = /* #__PURE__ */ Object.assign({
4265
+ "./de.ts": er,
4266
+ "./en.ts": nr
4267
+ }), Z = {};
4268
+ for (let e in ir) Z[e.slice(2, -3)] = ir[e].default;
4269
+ function ar(e) {
4270
+ return Z[e.split("-")[0]?.toLowerCase() ?? "en"] ?? Z.en ?? rr;
4271
+ }
4272
+ function or(e, t, n = {}) {
4273
+ let r = ar(e), i = r.hand[t];
4274
+ if (i) return T(i, n);
4275
+ let a = t.slice(7), o = r.features[a];
4276
+ if (!o) throw Error(`Missing compatibility message: ${t}`);
4277
+ let s = n.unsupported && n.partial ? "mixed" : n.unsupported ? "unsupported" : "partial", c = T({
4278
+ message: o.feature,
4279
+ suggestion: o.suggestion
4280
+ }, n);
4281
+ return T({
4282
+ message: r.templates[s],
4283
+ suggestion: c.suggestion
4284
+ }, {
4285
+ ...n,
4286
+ feature: c.message
4287
+ });
4288
+ }
4289
+ //#endregion
4290
+ //#region ../quality/src/compatibility/index.ts
4291
+ var Q = "https://docs.templatical.com/quality/compatibility/rule-catalog", sr = ["html-script", "html-iframe"], $ = [
4292
+ ...Rn.map((e) => ({ meta: {
4293
+ id: `compat.${e}`,
4294
+ severity: "warning",
4295
+ reference: Ln[e].url
4296
+ } })),
4297
+ ...sr.map((e) => ({ meta: {
4298
+ id: `compat.${e}`,
4299
+ severity: "warning",
4300
+ reference: `${Q}#compat-${e}`
4301
+ } })),
4302
+ {
4303
+ meta: {
4304
+ id: "compat.gmail-clipping",
4305
+ severity: "warning",
4306
+ reference: `${Q}#compat-gmail-clipping`
4307
+ },
4308
+ compiledHtml(e, t) {
4309
+ let n = new TextEncoder().encode(e).byteLength;
4310
+ return n > t.compatibility.maxHtmlBytes ? [{
4311
+ blockId: null,
4312
+ params: {
4313
+ size: new Intl.NumberFormat(t.locale, {
4314
+ minimumFractionDigits: 1,
4315
+ maximumFractionDigits: 1
4316
+ }).format(n / 1024),
4317
+ max: new Intl.NumberFormat(t.locale, {
4318
+ minimumFractionDigits: 1,
4319
+ maximumFractionDigits: 1
4320
+ }).format(t.compatibility.maxHtmlBytes / 1024)
4321
+ }
4322
+ }] : [];
4323
+ }
4324
+ }
4325
+ ];
4326
+ function cr(e, t, n) {
4327
+ let r = n.compatibility || {}, i = fe(n.locale, r, $), a = [];
4328
+ for (let n of $) {
4329
+ let o = n.meta.id;
4330
+ if (o === "compat.gmail-clipping" || i.severity(o) === "off") continue;
4331
+ let s = Jn(e, o);
4332
+ if (!s) continue;
4333
+ let c = o === "compat.html-script" || o === "compat.html-iframe", l = c ? void 0 : Qn(o.slice(7), s.usage);
4334
+ if (!c && l?.length === 0) continue;
4335
+ let u = l?.some((e) => e.support === "unsupported") ?? !0, d = u ? "warning" : "info", f = r.rules?.[o], p = f && f !== "off" ? f : d, m = {
4336
+ excerpt: s.excerpt,
4337
+ value: s.value ?? "",
4338
+ tag: s.tag ?? ""
4339
+ };
4340
+ l && (u && (m.unsupported = $n(l, "unsupported", i.locale)), l.some((e) => e.support === "partial") && (m.partial = $n(l, "partial", i.locale)));
4341
+ let h = or(i.locale, o, m);
4342
+ a.push({
4343
+ blockId: t,
4344
+ ruleId: o,
4345
+ severity: p,
4346
+ ...h,
4347
+ reference: n.meta.reference,
4348
+ ...l ? { clients: l } : {},
4349
+ excerpt: s.excerpt
4350
+ });
4351
+ }
4352
+ return a;
4353
+ }
4354
+ function lr(e, t = {}) {
4355
+ if (t.disabled === !0 || t.compatibility === !1) return [];
4356
+ let n = [], r = /* @__PURE__ */ new WeakMap();
4357
+ return x(e, (e) => {
4358
+ let i = r.get(e);
4359
+ i || (i = Hn(e), r.set(e, i)), n.push(...cr(i, e.id, t));
4360
+ }), n;
4361
+ }
4362
+ function ur(e, t = {}) {
4363
+ if (t.disabled === !0 || t.compatibility === !1) return [];
4364
+ let n = fe(t.locale, t.compatibility || {}, $), r = $.find((e) => e.meta.id === "compat.gmail-clipping"), i = n.severity(r.meta.id);
4365
+ return i === "off" ? [] : r.compiledHtml(e, n).map((e) => ({
4366
+ blockId: null,
4367
+ ruleId: r.meta.id,
4368
+ severity: i,
4369
+ ...or(n.locale, r.meta.id, e.params),
4370
+ reference: r.meta.reference
4371
+ }));
4372
+ }
4373
+ //#endregion
4374
+ //#region ../quality/src/util.ts
4375
+ function dr(e) {
4376
+ return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 && e.deliverability === !1 && e.compatibility === !1 : !1;
4377
+ }
4378
+ //#endregion
4379
+ //#region ../quality/src/lint-template.ts
4380
+ function fr(e, t = {}) {
4381
+ return dr(t) ? [] : [
4382
+ ...vt(e, t),
4383
+ ...Ht(e, t),
4384
+ ...bn(e, t),
4385
+ ...Fn(e, t),
4386
+ ...lr(e, t)
4387
+ ];
4388
+ }
4389
+ //#endregion
4390
+ export { ur as lintCompiledHtml, fr as lintTemplate };
4391
+
4392
+ //# sourceMappingURL=src-Bs_yxk3h.js.map