@templatical/editor 0.52.1 → 0.54.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 (397) hide show
  1. package/README.md +1 -1
  2. package/dist/AiAltTextPopover-NMJqQKvD.js +106 -0
  3. package/dist/{AiAltTextReview-9ySsXOTU.js → AiAltTextReview-Ci4zHwRc.js} +68 -66
  4. package/dist/AiChatPanel-C8SeEJRP.js +561 -0
  5. package/dist/{AiPanels-DqT4PgQ0.js → AiPanels-CR6zphjP.js} +6 -6
  6. package/dist/{AiRewriteMenu-28agTycW.js → AiRewriteMenu-CIHUnPud.js} +76 -105
  7. package/dist/BlockIssueBadge-DaPTq1RE.js +33 -0
  8. package/dist/BlockPreviewCanvas-B70RSavL.js +140 -0
  9. package/dist/{CloudHeaderExtras-QI82yF54.js → CloudHeaderExtras-XpjJjn3o.js} +4 -4
  10. package/dist/{CloudPanels-BKJaLkUN.js → CloudPanels-VpSQiLLL.js} +53 -53
  11. package/dist/CollaborationNotices-Cnx0XHzZ.js +65 -0
  12. package/dist/{CollaboratorBar-CXQqN3VP.js → CollaboratorBar-BaBoNhwB.js} +24 -24
  13. package/dist/CommentsPanel-Ck3QmqiC.js +16 -0
  14. package/dist/CommentsSidebar-CHknhOar.js +526 -0
  15. package/dist/{CountdownBlock-CU2yTWtF.js → CountdownBlock-BMezkFbJ.js} +15 -15
  16. package/dist/CountdownToolbar-CM4XNEuO.js +258 -0
  17. package/dist/IssuesPanel-1wGV0wiy.js +371 -0
  18. package/dist/LanguageMenu-d2GlX67r.js +403 -0
  19. package/dist/{LoadingTrack-DM4g6j7b.js → LoadingTrack-BG8cg9xi.js} +2 -2
  20. package/dist/LocaleNotices-WzsYtBRs.js +46 -0
  21. package/dist/LogicTagInsertButton-DgTJ6Lvx.js +1096 -0
  22. package/dist/{MediaEditModal-Dy08GEwE.js → MediaEditModal-C3U9Mi31.js} +451 -451
  23. package/dist/{MediaPanels-BgEp7iCp.js → MediaPanels-CGmk9ufe.js} +4 -4
  24. package/dist/{MergeTagInput-B9dtUthD.js → MergeTagInput-B_51YcQO.js} +30 -30
  25. package/dist/{MergeTagModeToggle-DxujhYJ4.js → MergeTagModeToggle-D3Q2z317.js} +49 -49
  26. package/dist/MergeTagTextarea-DZz1L9DE.js +126 -0
  27. package/dist/ParagraphEditor-CI68PYDL.js +825 -0
  28. package/dist/{RestoreVersionDialog-C4s_JYCx.js → RestoreVersionDialog-DcuhpOIz.js} +23 -23
  29. package/dist/{RichTextEditorContent-o6HmE8GR.js → RichTextEditorContent-Dstovi0m.js} +47 -47
  30. package/dist/{SaveBlockDialog-CWLrly6l.js → SaveBlockDialog-vuwvoi-d.js} +86 -86
  31. package/dist/{cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js → SavedBlocksBrowserModal-DUJm0dOv.js} +135 -132
  32. package/dist/{SavedBlocksPanels-BE1N9rNZ.js → SavedBlocksPanels-BiMXQ5lY.js} +9 -9
  33. package/dist/{SavedBlocksPickBar-Dwl94xhP.js → SavedBlocksPickBar-CAstZfG7.js} +15 -15
  34. package/dist/TemplateSettings-Baar78_s.js +294 -0
  35. package/dist/TestEmailModal-Bl_GHdrN.js +212 -0
  36. package/dist/{TestEmailPanel-DaFjP9QK.js → TestEmailPanel-CpTBF7B5.js} +4 -4
  37. package/dist/TitleEditor-DkbEDAZB.js +202 -0
  38. package/dist/ToggleSwitch-R3wCCYE6.js +43 -0
  39. package/dist/Toolbar-bOZ_eq7X.js +3711 -0
  40. package/dist/{TplModal-DLMssVlt.js → TplModal-wk2gLa7_.js} +17 -17
  41. package/dist/{VersionHistoryMenu-BkbYUs0Q.js → VersionHistoryMenu-BnP0EyLl.js} +39 -39
  42. package/dist/{VersionHistoryPanels-DP7HaYWv.js → VersionHistoryPanels-Cq2rFKIX.js} +5 -5
  43. package/dist/VersionPreviewBanner-BPP939cD.js +37 -0
  44. package/dist/WrapperBlock-cWT_nZgQ.js +44 -0
  45. package/dist/{blockTypeIcons-BHjlPnPf.js → blockTypeIcons-BUyPZ7Su.js} +7 -7
  46. package/dist/bundle-stats.json +8 -8
  47. package/dist/{cdn/chunks/ca-CD-Kt1qz.js → ca-DOuIxWRv.js} +114 -2
  48. package/dist/cdn/chunks/AiAltTextPopover-Cnc_kUmb.js +107 -0
  49. package/dist/cdn/chunks/AiAltTextPopover-Cnc_kUmb.js.map +1 -0
  50. package/dist/cdn/chunks/{AiAltTextReview-BGLLSKLm.js → AiAltTextReview-DPeSY-7r.js} +70 -68
  51. package/dist/cdn/chunks/AiAltTextReview-DPeSY-7r.js.map +1 -0
  52. package/dist/cdn/chunks/AiChatPanel-By8Uo1nH.js +487 -0
  53. package/dist/cdn/chunks/AiChatPanel-By8Uo1nH.js.map +1 -0
  54. package/dist/cdn/chunks/{AiPanels-0wBarZSH.js → AiPanels-BblCSkQy.js} +11 -11
  55. package/dist/cdn/chunks/{AiPanels-0wBarZSH.js.map → AiPanels-BblCSkQy.js.map} +1 -1
  56. package/dist/cdn/chunks/{AiRewriteMenu-qf-cfEpy.js → AiRewriteMenu-C4btyN4W.js} +79 -79
  57. package/dist/cdn/chunks/AiRewriteMenu-C4btyN4W.js.map +1 -0
  58. package/dist/cdn/chunks/BlockIssueBadge-D3Plo_wt.js +34 -0
  59. package/dist/cdn/chunks/BlockIssueBadge-D3Plo_wt.js.map +1 -0
  60. package/dist/cdn/chunks/BlockPreviewCanvas-CTKmBPsq.js +142 -0
  61. package/dist/cdn/chunks/{BlockPreviewCanvas-DGBh6mqe.js.map → BlockPreviewCanvas-CTKmBPsq.js.map} +1 -1
  62. package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js → CloudHeaderExtras-BtqdN777.js} +4 -4
  63. package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js.map → CloudHeaderExtras-BtqdN777.js.map} +1 -1
  64. package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js → CloudPanels-COU26R83.js} +45 -45
  65. package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js.map → CloudPanels-COU26R83.js.map} +1 -1
  66. package/dist/cdn/chunks/CollaborationNotices-DraFUhyo.js +67 -0
  67. package/dist/cdn/chunks/CollaborationNotices-DraFUhyo.js.map +1 -0
  68. package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js → CollaboratorBar-0OEH3hrj.js} +17 -17
  69. package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js.map → CollaboratorBar-0OEH3hrj.js.map} +1 -1
  70. package/dist/cdn/chunks/CommentsPanel-tZZswofV.js +18 -0
  71. package/dist/cdn/chunks/{CommentsPanel-DoJnKLXI.js.map → CommentsPanel-tZZswofV.js.map} +1 -1
  72. package/dist/cdn/chunks/CommentsSidebar-7Hfl3Hdj.js +496 -0
  73. package/dist/cdn/chunks/CommentsSidebar-7Hfl3Hdj.js.map +1 -0
  74. package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js → CountdownBlock-CjMhMhnv.js} +22 -22
  75. package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js.map → CountdownBlock-CjMhMhnv.js.map} +1 -1
  76. package/dist/cdn/chunks/CountdownToolbar-CNgsNL5-.js +260 -0
  77. package/dist/cdn/chunks/CountdownToolbar-CNgsNL5-.js.map +1 -0
  78. package/dist/cdn/chunks/{IssuesPanel-C7LfxaAY.js → IssuesPanel-Duic0mIs.js} +133 -121
  79. package/dist/cdn/chunks/IssuesPanel-Duic0mIs.js.map +1 -0
  80. package/dist/cdn/chunks/LanguageMenu-B1Aue_lf.js +359 -0
  81. package/dist/cdn/chunks/LanguageMenu-B1Aue_lf.js.map +1 -0
  82. package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js → LoadingTrack-DUYcDHOV.js} +2 -2
  83. package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js.map → LoadingTrack-DUYcDHOV.js.map} +1 -1
  84. package/dist/cdn/chunks/LocaleNotices-8J2DRWeg.js +47 -0
  85. package/dist/cdn/chunks/LocaleNotices-8J2DRWeg.js.map +1 -0
  86. package/dist/{LogicTagInsertButton-CfscnwCn.js → cdn/chunks/LogicTagInsertButton-Bhvi0nWz.js} +422 -449
  87. package/dist/cdn/chunks/LogicTagInsertButton-Bhvi0nWz.js.map +1 -0
  88. package/dist/cdn/chunks/{MediaEditModal-Cpcod6_U.js → MediaEditModal-Dz972UFx.js} +421 -421
  89. package/dist/cdn/chunks/MediaEditModal-Dz972UFx.js.map +1 -0
  90. package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js → MediaPanels-C6Hqtp1H.js} +5 -5
  91. package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js.map → MediaPanels-C6Hqtp1H.js.map} +1 -1
  92. package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js → MergeTagInput-CrhZm-AW.js} +28 -28
  93. package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js.map → MergeTagInput-CrhZm-AW.js.map} +1 -1
  94. package/dist/cdn/chunks/{MergeTagModeToggle-BgKEVUtV.js → MergeTagModeToggle-CWVtXLYa.js} +52 -52
  95. package/dist/cdn/chunks/MergeTagModeToggle-CWVtXLYa.js.map +1 -0
  96. package/dist/cdn/chunks/MergeTagTextarea-hTIBwX0F.js +128 -0
  97. package/dist/cdn/chunks/MergeTagTextarea-hTIBwX0F.js.map +1 -0
  98. package/dist/cdn/chunks/ParagraphEditor-B2UU1Q5I.js +660 -0
  99. package/dist/cdn/chunks/ParagraphEditor-B2UU1Q5I.js.map +1 -0
  100. package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js → RestoreVersionDialog-C1Y5Ewo_.js} +22 -22
  101. package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js.map → RestoreVersionDialog-C1Y5Ewo_.js.map} +1 -1
  102. package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js → RichTextEditorContent-up4AqL7D.js} +44 -44
  103. package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js.map → RichTextEditorContent-up4AqL7D.js.map} +1 -1
  104. package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js → SaveBlockDialog-B9lwEP_T.js} +77 -77
  105. package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js.map → SaveBlockDialog-B9lwEP_T.js.map} +1 -1
  106. package/dist/{SavedBlocksBrowserModal-CE8n4EBS.js → cdn/chunks/SavedBlocksBrowserModal-fAeHUyxb.js} +103 -106
  107. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BPYcRoGa.js.map → SavedBlocksBrowserModal-fAeHUyxb.js.map} +1 -1
  108. package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js → SavedBlocksPanels-DRDTLDyZ.js} +9 -9
  109. package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js.map → SavedBlocksPanels-DRDTLDyZ.js.map} +1 -1
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js → SavedBlocksPickBar-B6b5z-o3.js} +16 -16
  111. package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js.map → SavedBlocksPickBar-B6b5z-o3.js.map} +1 -1
  112. package/dist/cdn/chunks/TemplateSettings-CWUpUKJb.js +266 -0
  113. package/dist/cdn/chunks/TemplateSettings-CWUpUKJb.js.map +1 -0
  114. package/dist/cdn/chunks/TestEmailModal-DQxnW5Q5.js +212 -0
  115. package/dist/cdn/chunks/TestEmailModal-DQxnW5Q5.js.map +1 -0
  116. package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js → TestEmailPanel-BcO_-16H.js} +5 -5
  117. package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js.map → TestEmailPanel-BcO_-16H.js.map} +1 -1
  118. package/dist/cdn/chunks/TitleEditor-pmycpmTd.js +202 -0
  119. package/dist/cdn/chunks/TitleEditor-pmycpmTd.js.map +1 -0
  120. package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js +45 -0
  121. package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js.map +1 -0
  122. package/dist/cdn/chunks/Toolbar-BlWVQRcA.js +3626 -0
  123. package/dist/cdn/chunks/Toolbar-BlWVQRcA.js.map +1 -0
  124. package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js → TplModal-ClSSGX7a.js} +20 -20
  125. package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js.map → TplModal-ClSSGX7a.js.map} +1 -1
  126. package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js → VersionHistoryMenu-CZury5gU.js} +33 -33
  127. package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js.map → VersionHistoryMenu-CZury5gU.js.map} +1 -1
  128. package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js → VersionHistoryPanels-B8GPBKMq.js} +6 -6
  129. package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js.map → VersionHistoryPanels-B8GPBKMq.js.map} +1 -1
  130. package/dist/cdn/chunks/VersionPreviewBanner-C4Ji8nu4.js +39 -0
  131. package/dist/cdn/chunks/VersionPreviewBanner-C4Ji8nu4.js.map +1 -0
  132. package/dist/cdn/chunks/WrapperBlock-BoUflYwY.js +46 -0
  133. package/dist/cdn/chunks/WrapperBlock-BoUflYwY.js.map +1 -0
  134. package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js → blockTypeIcons-Cc6RJ27V.js} +5 -5
  135. package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js.map → blockTypeIcons-Cc6RJ27V.js.map} +1 -1
  136. package/dist/{ca-CD-Kt1qz.js → cdn/chunks/ca-DOuIxWRv.js} +116 -0
  137. package/dist/cdn/chunks/ca-DOuIxWRv.js.map +1 -0
  138. package/dist/cdn/chunks/composables-C1KU4ZHw.js +3039 -0
  139. package/dist/cdn/chunks/composables-C1KU4ZHw.js.map +1 -0
  140. package/dist/cdn/chunks/{createCloudRuntime-Cth2JCEh.js → createCloudRuntime-C2Zs5F1O.js} +75 -73
  141. package/dist/cdn/chunks/createCloudRuntime-C2Zs5F1O.js.map +1 -0
  142. package/dist/{de-CeFJ6wbM.js → cdn/chunks/de-DaOUfYBX.js} +116 -0
  143. package/dist/cdn/chunks/de-DaOUfYBX.js.map +1 -0
  144. package/dist/cdn/chunks/{dist-8ym3y-pH.js → dist-BzXULHvI.js} +48 -48
  145. package/dist/cdn/chunks/{dist-8ym3y-pH.js.map → dist-BzXULHvI.js.map} +1 -1
  146. package/dist/cdn/chunks/{dist-BMzNabtD.js → dist-DqGgijFI.js} +114 -114
  147. package/dist/cdn/chunks/{dist-BMzNabtD.js.map → dist-DqGgijFI.js.map} +1 -1
  148. package/dist/cdn/chunks/{draggable-Du8AUMFT.js → draggable-DepKdldn.js} +1491 -1486
  149. package/dist/cdn/chunks/draggable-DepKdldn.js.map +1 -0
  150. package/dist/cdn/chunks/{editor-modal-CyCe560f.js → editor-modal-erQEOHZN.js} +781 -781
  151. package/dist/cdn/chunks/{editor-modal-CyCe560f.js.map → editor-modal-erQEOHZN.js.map} +1 -1
  152. package/dist/cdn/chunks/en-B6tLGRHq.js +1 -0
  153. package/dist/{en-D14i5nFh.js → cdn/chunks/en-C0pHHMiR.js} +116 -0
  154. package/dist/cdn/chunks/en-C0pHHMiR.js.map +1 -0
  155. package/dist/{es-zDacbMhs.js → cdn/chunks/es-CxyEKr6n.js} +116 -0
  156. package/dist/cdn/chunks/es-CxyEKr6n.js.map +1 -0
  157. package/dist/cdn/chunks/{extensions-CFF2KWy-.js → extensions-DcMKZpzh.js} +59 -59
  158. package/dist/cdn/chunks/{extensions-CFF2KWy-.js.map → extensions-DcMKZpzh.js.map} +1 -1
  159. package/dist/{fr-CSgYtjOd.js → cdn/chunks/fr-CYbamiI6.js} +116 -0
  160. package/dist/cdn/chunks/fr-CYbamiI6.js.map +1 -0
  161. package/dist/cdn/chunks/{icons-okSPsLOa.js → icons-Da9GKjPx.js} +188 -147
  162. package/dist/cdn/chunks/icons-Da9GKjPx.js.map +1 -0
  163. package/dist/{ja-B7H3ID8O.js → cdn/chunks/ja-DfaIAoGI.js} +116 -0
  164. package/dist/cdn/chunks/ja-DfaIAoGI.js.map +1 -0
  165. package/dist/cdn/chunks/keys-CoQtCqNv.js +11 -0
  166. package/dist/cdn/chunks/keys-CoQtCqNv.js.map +1 -0
  167. package/dist/cdn/chunks/languageName-DEEOhDWI.js +12 -0
  168. package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +1 -0
  169. package/dist/{nl-176ySmc5.js → cdn/chunks/nl-DkrB-VKZ.js} +116 -0
  170. package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +1 -0
  171. package/dist/cdn/chunks/normalizeMergeTagMarkup-cC32Ox6A.js +290 -0
  172. package/dist/cdn/chunks/normalizeMergeTagMarkup-cC32Ox6A.js.map +1 -0
  173. package/dist/cdn/chunks/noticeTones-D7BPu-Le.js +16 -0
  174. package/dist/cdn/chunks/noticeTones-D7BPu-Le.js.map +1 -0
  175. package/dist/cdn/chunks/plural-CyxrJXL1.js +17 -0
  176. package/dist/cdn/chunks/plural-CyxrJXL1.js.map +1 -0
  177. package/dist/{preRenderCustomBlocks--_xc0XK3.js → cdn/chunks/preRenderCustomBlocks-f7GEKdvw.js} +5 -3
  178. package/dist/cdn/chunks/{preRenderCustomBlocks-BcXIz7oJ.js.map → preRenderCustomBlocks-f7GEKdvw.js.map} +1 -1
  179. package/dist/{pt-BR-dDlTwX18.js → cdn/chunks/pt-BR-CY5Ye7eP.js} +116 -0
  180. package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +1 -0
  181. package/dist/cdn/chunks/sanitizeHtml-WTfz9lZd.js +61 -0
  182. package/dist/cdn/chunks/sanitizeHtml-WTfz9lZd.js.map +1 -0
  183. package/dist/cdn/chunks/socialIcons-DeCYorUT.js +2638 -0
  184. package/dist/cdn/chunks/socialIcons-DeCYorUT.js.map +1 -0
  185. package/dist/cdn/chunks/{src-DEd87i_U.js → src-A_cKeTM_.js} +618 -461
  186. package/dist/cdn/chunks/src-A_cKeTM_.js.map +1 -0
  187. package/dist/cdn/chunks/src-BQUv2CYU.js +2606 -0
  188. package/dist/cdn/chunks/src-BQUv2CYU.js.map +1 -0
  189. package/dist/cdn/chunks/src-BWX_xVxO.js +671 -0
  190. package/dist/cdn/chunks/src-BWX_xVxO.js.map +1 -0
  191. package/dist/{styleConstants-B8xVRiwX.js → cdn/chunks/styleConstants-CgiNKdnc.js} +7 -5
  192. package/dist/cdn/chunks/styleConstants-CgiNKdnc.js.map +1 -0
  193. package/dist/cdn/chunks/templateSettingsFields-cjlP-jdw.js.map +1 -1
  194. package/dist/cdn/chunks/{tiptap-CbiTlECY.js → tiptap-Dipw_zOQ.js} +40 -40
  195. package/dist/cdn/chunks/{tiptap-CbiTlECY.js.map → tiptap-Dipw_zOQ.js.map} +1 -1
  196. package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js → useCloudI18n-Cc5NZqiI.js} +3 -3
  197. package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js.map → useCloudI18n-Cc5NZqiI.js.map} +1 -1
  198. package/dist/cdn/chunks/useEditorRoot-D_LuZ_hE.js +9 -0
  199. package/dist/cdn/chunks/{useEditorRoot-vjZJwKrV.js.map → useEditorRoot-D_LuZ_hE.js.map} +1 -1
  200. package/dist/cdn/chunks/{useI18n-D8pY4LTq.js → useI18n-BnJYydPv.js} +3 -3
  201. package/dist/cdn/chunks/{useI18n-D8pY4LTq.js.map → useI18n-BnJYydPv.js.map} +1 -1
  202. package/dist/cdn/chunks/useLocalizedDisplay-aGfnO90D.js +33 -0
  203. package/dist/cdn/chunks/useLocalizedDisplay-aGfnO90D.js.map +1 -0
  204. package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js → useLogicTag-DtYe8HIq.js} +5 -5
  205. package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js.map → useLogicTag-DtYe8HIq.js.map} +1 -1
  206. package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js → useMergeTag-B8ULmsnp.js} +6 -6
  207. package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js.map → useMergeTag-B8ULmsnp.js.map} +1 -1
  208. package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js +78 -0
  209. package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js.map +1 -0
  210. package/dist/cdn/chunks/{useScrollToBlock-vjQ0fe-L.js → useScrollToBlock-Ct1AwLD-.js} +5 -5
  211. package/dist/cdn/chunks/useScrollToBlock-Ct1AwLD-.js.map +1 -0
  212. package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js → withCurrentFont-MK8ga9q9.js} +2 -2
  213. package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js.map → withCurrentFont-MK8ga9q9.js.map} +1 -1
  214. package/dist/cdn/editor.css +1 -1
  215. package/dist/cdn/editor.js +2189 -1495
  216. package/dist/cdn/editor.js.map +1 -1
  217. package/dist/{check-BZ8o0eet.js → check-XMnOOIEC.js} +1 -1
  218. package/dist/{chevron-down-DfAAfILv.js → chevron-down-DmamTEWQ.js} +1 -1
  219. package/dist/{chevron-right-Bk4mGdr7.js → chevron-right-BEFXOH27.js} +1 -1
  220. package/dist/{chevron-up-MhUf_azW.js → chevron-up-Dw7woXj8.js} +1 -1
  221. package/dist/{circle-alert-CShJwVFv.js → circle-alert-BTKC9vkq.js} +1 -1
  222. package/dist/{clock-CTfD6OCt.js → clock-BVT5u2uG.js} +1 -1
  223. package/dist/composables-CMIrGXJ1.js +4517 -0
  224. package/dist/{createCloudRuntime-DCgO4A1r.js → createCloudRuntime-DGV5a5Af.js} +54 -52
  225. package/dist/{createLucideIcon-CvhTA2KG.js → createLucideIcon-CgDE3xAR.js} +16 -16
  226. package/dist/{cdn/chunks/de-CeFJ6wbM.js → de-DaOUfYBX.js} +114 -2
  227. package/dist/{dist-ByCWA2Tv.js → dist-0alKVRc_.js} +101 -101
  228. package/dist/{dist-Cy8I5scI.js → dist-54VCNoC0.js} +2 -2
  229. package/dist/dist-6DU0me3E.js +4 -0
  230. package/dist/{dist-p3wymUDt.js → dist-B8dY8drK.js} +2 -2
  231. package/dist/{dist-Dd5MU2Ev.js → dist-B9a7iVye.js} +2 -2
  232. package/dist/{dist-V7W1UhVr.js → dist-BWflWcpW.js} +2 -2
  233. package/dist/{dist-D6fZec6r.js → dist-C3hu_C3w.js} +2 -2
  234. package/dist/{dist-CVy-7PHQ.js → dist-CX7skkvG.js} +48 -48
  235. package/dist/dist-CcOn7WCo.js +4 -0
  236. package/dist/dist-Cdkm20M6.js +2542 -0
  237. package/dist/{dist-BS5uKktL.js → dist-ChOb5XHW.js} +2 -2
  238. package/dist/{dist-BF5zEHop.js → dist-DZ3X-uB8.js} +2 -2
  239. package/dist/{dist-CWSG7Kj0.js → dist-D_XrUEET.js} +5 -5
  240. package/dist/{dist-txQLT2sF.js → dist-TAv500j6.js} +2 -2
  241. package/dist/{dist-D6cMdrfG.js → dist-fqSers8_.js} +55 -55
  242. package/dist/{editor-modal-zaZHcmlO.js → editor-modal-BeX6otLk.js} +953 -952
  243. package/dist/{cdn/chunks/en-D14i5nFh.js → en-C0pHHMiR.js} +114 -2
  244. package/dist/en-Do0SU6tR.js +1 -0
  245. package/dist/{cdn/chunks/es-zDacbMhs.js → es-CxyEKr6n.js} +114 -2
  246. package/dist/{extensions-fo_c-vqf.js → extensions-BJ184osp.js} +173 -173
  247. package/dist/{eye-7W4t5e0Q.js → eye-ByMgHeA_.js} +1 -1
  248. package/dist/{cdn/chunks/fr-CSgYtjOd.js → fr-CYbamiI6.js} +114 -2
  249. package/dist/{image-BDiRFzSd.js → image-Ch8tR35K.js} +1 -1
  250. package/dist/index.d.ts +182 -14
  251. package/dist/{info-Cxi3-Kh9.js → info-DzSD-Wpk.js} +1 -1
  252. package/dist/{cdn/chunks/ja-B7H3ID8O.js → ja-DfaIAoGI.js} +114 -2
  253. package/dist/keys-BCqskl51.js +9 -0
  254. package/dist/languageName-DEEOhDWI.js +10 -0
  255. package/dist/{link-ju_2Cmir.js → link-oDn9AR2w.js} +1 -1
  256. package/dist/{list-DYZJf0aZ.js → list-C5t07dp8.js} +1 -1
  257. package/dist/{loader-circle-BZRD0a4I.js → loader-circle-k6xvKgUB.js} +1 -1
  258. package/dist/{message-circle-DuEw4Zfx.js → message-circle-C23R6OJR.js} +1 -1
  259. package/dist/{cdn/chunks/nl-176ySmc5.js → nl-DkrB-VKZ.js} +114 -2
  260. package/dist/normalizeMergeTagMarkup-CUCo7B5X.js +288 -0
  261. package/dist/noticeTones-D7BPu-Le.js +14 -0
  262. package/dist/{package-CePMr2kK.js → package-C90eQ7NU.js} +1 -1
  263. package/dist/{pencil-D3aFCL7c.js → pencil-BK7GrQuA.js} +1 -1
  264. package/dist/plural-CyxrJXL1.js +15 -0
  265. package/dist/plus-Cr0Mis63.js +13 -0
  266. package/dist/{cdn/chunks/preRenderCustomBlocks-BcXIz7oJ.js → preRenderCustomBlocks-Bs3N9no-.js} +4 -6
  267. package/dist/{cdn/chunks/pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +114 -2
  268. package/dist/{refresh-cw-xnro7_Sk.js → refresh-cw-_ZLOIEvA.js} +2 -12
  269. package/dist/rotate-ccw-CB5wsHwv.js +13 -0
  270. package/dist/{runtime-dom.esm-bundler-BURR-bj5.js → runtime-dom.esm-bundler-DlHp8xgy.js} +154 -154
  271. package/dist/sanitizeHtml-2rjV0r-6.js +962 -0
  272. package/dist/{search-CDrstRBv.js → search-BmrQNox8.js} +1 -1
  273. package/dist/{send-DROkPOaX.js → send-blAsIBBg.js} +1 -1
  274. package/dist/{smartphone-Bx6u_tjn.js → smartphone-BPpWYrwV.js} +1 -1
  275. package/dist/socialIcons-TFiOkpoU.js +2705 -0
  276. package/dist/{sparkles-CdaTtvoz.js → sparkles-OqIxrNp-.js} +1 -1
  277. package/dist/{square-BbCROH_f.js → square-BP-V7iT-.js} +1 -1
  278. package/dist/style.css +1 -1
  279. package/dist/{cdn/chunks/styleConstants-B8xVRiwX.js → styleConstants-CgiNKdnc.js} +5 -7
  280. package/dist/templatical-editor.js +2438 -1752
  281. package/dist/{text-align-start-CGacJ9Vw.js → text-align-start-4mwX2o-F.js} +13 -13
  282. package/dist/{trash-DxCd7zIy.js → trash-B99WixTA.js} +1 -1
  283. package/dist/{triangle-alert-7_oaitpf.js → triangle-alert-CHMiDkHa.js} +1 -1
  284. package/dist/{upload-DuFEOi_0.js → upload-Cp8o-hrN.js} +1 -1
  285. package/dist/{useCloudI18n-DEMmUKuO.js → useCloudI18n-Dh2iydo1.js} +4 -4
  286. package/dist/useEditorRoot-DY3mgcHm.js +7 -0
  287. package/dist/{useI18n-BBrHTdu8.js → useI18n-CgtvtF4C.js} +4 -4
  288. package/dist/useLocalizedDisplay-DNNwDRxL.js +31 -0
  289. package/dist/{useLogicTag-ZPC39rfH.js → useLogicTag-BXXXQQmi.js} +4 -4
  290. package/dist/{useMergeTag-BQ4qqWpQ.js → useMergeTag-C9Okr87y.js} +5 -5
  291. package/dist/usePopoverPosition-VDQjyX_A.js +76 -0
  292. package/dist/{useScrollToBlock-BSyAV4pk.js → useScrollToBlock-B35ObCGK.js} +5 -5
  293. package/dist/{vue.runtime.esm-bundler-CnEeTfhs.js → vue.runtime.esm-bundler-BJXc_Mri.js} +1373 -1368
  294. package/dist/withCurrentFont-DJiQqZzL.js +18 -0
  295. package/dist/{x-BpfG7v9g.js → x-BIBStNMS.js} +1 -1
  296. package/package.json +21 -21
  297. package/dist/AiAltTextPopover-DawbUywc.js +0 -105
  298. package/dist/AiChatPanel-CupPhmsN.js +0 -548
  299. package/dist/BlockIssueBadge-BxpDy3u-.js +0 -33
  300. package/dist/BlockPreviewCanvas-B-4bmJ3t.js +0 -140
  301. package/dist/CollaborationNotices-CTw4JThq.js +0 -75
  302. package/dist/CommentsPanel-DwwFuh1h.js +0 -16
  303. package/dist/CommentsSidebar-9ZfiC2DO.js +0 -500
  304. package/dist/CountdownToolbar-BqoYzf_6.js +0 -197
  305. package/dist/IssuesPanel-4ykrf1ax.js +0 -359
  306. package/dist/MergeTagTextarea-CPFEjJZd.js +0 -69
  307. package/dist/ParagraphEditor-CWXfurGh.js +0 -796
  308. package/dist/TemplateSettings-CS0f1Ues.js +0 -236
  309. package/dist/TestEmailModal-DBD0X5nV.js +0 -209
  310. package/dist/TitleEditor-DSqtle77.js +0 -198
  311. package/dist/ToggleSwitch-JykPyD_8.js +0 -36
  312. package/dist/Toolbar-BZPFfKrf.js +0 -3145
  313. package/dist/VersionPreviewBanner-DECaBwLq.js +0 -37
  314. package/dist/WrapperBlock-BsJv_Fiw.js +0 -44
  315. package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js +0 -106
  316. package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js.map +0 -1
  317. package/dist/cdn/chunks/AiAltTextReview-BGLLSKLm.js.map +0 -1
  318. package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js +0 -474
  319. package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js.map +0 -1
  320. package/dist/cdn/chunks/AiRewriteMenu-qf-cfEpy.js.map +0 -1
  321. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +0 -34
  322. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +0 -1
  323. package/dist/cdn/chunks/BlockPreviewCanvas-DGBh6mqe.js +0 -142
  324. package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js +0 -77
  325. package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js.map +0 -1
  326. package/dist/cdn/chunks/CommentsPanel-DoJnKLXI.js +0 -18
  327. package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js +0 -470
  328. package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +0 -1
  329. package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js +0 -199
  330. package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js.map +0 -1
  331. package/dist/cdn/chunks/IssuesPanel-C7LfxaAY.js.map +0 -1
  332. package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js +0 -1051
  333. package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js.map +0 -1
  334. package/dist/cdn/chunks/MediaEditModal-Cpcod6_U.js.map +0 -1
  335. package/dist/cdn/chunks/MergeTagModeToggle-BgKEVUtV.js.map +0 -1
  336. package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js +0 -71
  337. package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js.map +0 -1
  338. package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js +0 -631
  339. package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +0 -1
  340. package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js +0 -208
  341. package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js.map +0 -1
  342. package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js +0 -209
  343. package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js.map +0 -1
  344. package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js +0 -198
  345. package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +0 -1
  346. package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js +0 -38
  347. package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js.map +0 -1
  348. package/dist/cdn/chunks/Toolbar-CdpsvNOR.js +0 -3061
  349. package/dist/cdn/chunks/Toolbar-CdpsvNOR.js.map +0 -1
  350. package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js +0 -39
  351. package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js.map +0 -1
  352. package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js +0 -46
  353. package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js.map +0 -1
  354. package/dist/cdn/chunks/ca-CD-Kt1qz.js.map +0 -1
  355. package/dist/cdn/chunks/createCloudRuntime-Cth2JCEh.js.map +0 -1
  356. package/dist/cdn/chunks/de-CeFJ6wbM.js.map +0 -1
  357. package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +0 -1
  358. package/dist/cdn/chunks/en-D14i5nFh.js.map +0 -1
  359. package/dist/cdn/chunks/en-TIqv4ag3.js +0 -1
  360. package/dist/cdn/chunks/es-zDacbMhs.js.map +0 -1
  361. package/dist/cdn/chunks/fr-CSgYtjOd.js.map +0 -1
  362. package/dist/cdn/chunks/icons-okSPsLOa.js.map +0 -1
  363. package/dist/cdn/chunks/ja-B7H3ID8O.js.map +0 -1
  364. package/dist/cdn/chunks/keys-CUj6UA38.js +0 -11
  365. package/dist/cdn/chunks/keys-CUj6UA38.js.map +0 -1
  366. package/dist/cdn/chunks/nl-176ySmc5.js.map +0 -1
  367. package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js +0 -198
  368. package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js.map +0 -1
  369. package/dist/cdn/chunks/pt-BR-dDlTwX18.js.map +0 -1
  370. package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js +0 -72
  371. package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js.map +0 -1
  372. package/dist/cdn/chunks/socialIcons-jsTDmkbb.js +0 -2008
  373. package/dist/cdn/chunks/socialIcons-jsTDmkbb.js.map +0 -1
  374. package/dist/cdn/chunks/src-C7bkofBL.js +0 -647
  375. package/dist/cdn/chunks/src-C7bkofBL.js.map +0 -1
  376. package/dist/cdn/chunks/src-DEd87i_U.js.map +0 -1
  377. package/dist/cdn/chunks/src-DwWrYnUj.js +0 -1404
  378. package/dist/cdn/chunks/src-DwWrYnUj.js.map +0 -1
  379. package/dist/cdn/chunks/styleConstants-B8xVRiwX.js.map +0 -1
  380. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +0 -2582
  381. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +0 -1
  382. package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +0 -9
  383. package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js +0 -70
  384. package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js.map +0 -1
  385. package/dist/cdn/chunks/useScrollToBlock-vjQ0fe-L.js.map +0 -1
  386. package/dist/dist-CKi_npZM.js +0 -1344
  387. package/dist/dist-DyFArF_G.js +0 -4
  388. package/dist/dist-pA3ooG6N.js +0 -4
  389. package/dist/en-Db76vJbY.js +0 -1
  390. package/dist/keys-BgRERHzu.js +0 -9
  391. package/dist/normalizeMergeTagMarkup-CELnOlgK.js +0 -196
  392. package/dist/sanitizeHtml-BzfzpYJY.js +0 -942
  393. package/dist/socialIcons-D7MGsg0d.js +0 -2075
  394. package/dist/useEditorCore-BSo2sSID.js +0 -4059
  395. package/dist/useEditorRoot-BMcoCLBx.js +0 -7
  396. package/dist/usePopoverPosition-DV1PxL66.js +0 -68
  397. package/dist/withCurrentFont-B22FXAF5.js +0 -18
@@ -1,20 +1,20 @@
1
1
  import { n as e } from "./rolldown-runtime-QGRDbDUS.js";
2
- import { Bt as t, E as n, Ft as r, Ut as i, _t as a, at as o, ct as s, dt as c, ft as l, gt as u, it as d, lt as f, mt as p, ut as m, vt as h, w as ee, yt as g } from "./src-DwWrYnUj.js";
3
- import { t as _ } from "./htmlparser-hu3YnNQU.js";
2
+ import { $ as t, Ct as n, Dt as r, E as i, Et as a, It as o, Jt as s, Ot as c, Rt as l, S as u, Tt as d, Ut as f, Yt as p, Zt as m, _t as h, at as ee, bt as g, fn as _, hn as te, it as ne, m as re, mt as ie, pt as v, sn as ae, vt as y, xt as b, yt as x } from "./src-BQUv2CYU.js";
3
+ import { t as oe } from "./htmlparser-hu3YnNQU.js";
4
4
  // ../quality/src/types.ts
5
- var te = { minTextLength: 200 }, ne = { maxHtmlBytes: 92160 }, re = {
5
+ var se = { minTextLength: 200 }, ce = { maxHtmlBytes: 92160 }, le = {
6
6
  altMaxLength: 125,
7
7
  minFontSize: 14,
8
8
  allCapsMinLength: 20,
9
9
  minTouchTargetPx: 44
10
- }, ie = [
10
+ }, ue = [
11
11
  "localhost",
12
12
  "127.0.0.1",
13
13
  "0.0.0.0",
14
14
  "*.local",
15
15
  "*.staging.*",
16
16
  "*.dev.*"
17
- ], ae = [
17
+ ], de = [
18
18
  "bit.ly",
19
19
  "buff.ly",
20
20
  "cutt.ly",
@@ -34,53 +34,53 @@ var te = { minTextLength: 200 }, ne = { maxHtmlBytes: 92160 }, re = {
34
34
  "v.gd"
35
35
  ];
36
36
  // ../quality/src/contrast.ts
37
- function oe(e, t) {
38
- let n = v(e), r = v(t);
37
+ function fe(e, t) {
38
+ let n = S(e), r = S(t);
39
39
  if (!n || !r) return NaN;
40
- let i = ue(n), a = ue(r), o = Math.max(i, a), s = Math.min(i, a);
40
+ let i = ge(n), a = ge(r), o = Math.max(i, a), s = Math.min(i, a);
41
41
  return (o + .05) / (s + .05);
42
42
  }
43
- var se = /^#?([0-9a-f])([0-9a-f])([0-9a-f])$/i, ce = /^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i, le = /^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i;
44
- function v(e) {
43
+ var pe = /^#?([0-9a-f])([0-9a-f])([0-9a-f])$/i, me = /^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i, he = /^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i;
44
+ function S(e) {
45
45
  if (typeof e != "string") return null;
46
- let t = e.trim(), n = le.exec(t);
46
+ let t = e.trim(), n = he.exec(t);
47
47
  if (n) return n[4].toLowerCase() === "ff" ? {
48
48
  r: parseInt(n[1], 16),
49
49
  g: parseInt(n[2], 16),
50
50
  b: parseInt(n[3], 16)
51
51
  } : null;
52
- let r = ce.exec(t);
52
+ let r = me.exec(t);
53
53
  if (r) return {
54
54
  r: parseInt(r[1], 16),
55
55
  g: parseInt(r[2], 16),
56
56
  b: parseInt(r[3], 16)
57
57
  };
58
- let i = se.exec(t);
58
+ let i = pe.exec(t);
59
59
  return i ? {
60
60
  r: parseInt(i[1] + i[1], 16),
61
61
  g: parseInt(i[2] + i[2], 16),
62
62
  b: parseInt(i[3] + i[3], 16)
63
63
  } : null;
64
64
  }
65
- function y(e) {
66
- return v(e ?? "") !== null;
65
+ function C(e) {
66
+ return S(e ?? "") !== null;
67
67
  }
68
- function ue({ r: e, g: t, b: n }) {
69
- let r = b(e / 255), i = b(t / 255), a = b(n / 255);
68
+ function ge({ r: e, g: t, b: n }) {
69
+ let r = w(e / 255), i = w(t / 255), a = w(n / 255);
70
70
  return .2126 * r + .7152 * i + .0722 * a;
71
71
  }
72
- function b(e) {
72
+ function w(e) {
73
73
  return e <= .03928 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4;
74
74
  }
75
75
  // ../quality/src/walk.ts
76
- var de = "#ffffff", fe = "#1a1a1a";
77
- function x(e, t) {
78
- let n = y(e.settings.backgroundColor) ? e.settings.backgroundColor.toLowerCase() : de, r = y(e.settings.textColor) ? e.settings.textColor.toLowerCase() : fe, i = (e, n) => {
79
- let r = e.styles?.backgroundColor, a = y(r) ? r.toLowerCase() : n.resolvedBackgroundColor;
76
+ var _e = "#ffffff", ve = "#1a1a1a";
77
+ function T(e, t) {
78
+ let n = C(e.settings.backgroundColor) ? e.settings.backgroundColor.toLowerCase() : _e, r = C(e.settings.textColor) ? e.settings.textColor.toLowerCase() : ve, i = (e, n) => {
79
+ let r = e.styles?.backgroundColor, a = C(r) ? r.toLowerCase() : n.resolvedBackgroundColor;
80
80
  if (t(e, a === n.resolvedBackgroundColor ? n : {
81
81
  ...n,
82
82
  resolvedBackgroundColor: a
83
- }), g(e)) for (let t of e.children) i(t, {
83
+ }), c(e)) for (let t of e.children) i(t, {
84
84
  parent: e,
85
85
  section: n.section,
86
86
  columnIndex: null,
@@ -88,7 +88,7 @@ function x(e, t) {
88
88
  resolvedBackgroundColor: a,
89
89
  resolvedTextColor: n.resolvedTextColor
90
90
  });
91
- else l(e) && e.children.forEach((t, r) => {
91
+ else b(e) && e.children.forEach((t, r) => {
92
92
  t.forEach((t) => i(t, {
93
93
  parent: e,
94
94
  section: e,
@@ -109,7 +109,7 @@ function x(e, t) {
109
109
  });
110
110
  }
111
111
  // ../quality/src/run-rules.ts
112
- function S(e, t, n, r) {
112
+ function E(e, t, n, r) {
113
113
  let i = [];
114
114
  function a(e, i, a) {
115
115
  let o = a.messageVariant ? `${e}.${a.messageVariant}` : e, s = r(n.locale, o, a.params);
@@ -124,7 +124,7 @@ function S(e, t, n, r) {
124
124
  fix: a.fix
125
125
  };
126
126
  }
127
- x(e, (e, r) => {
127
+ T(e, (e, r) => {
128
128
  for (let o of t) {
129
129
  let t = n.severity(o.meta.id);
130
130
  if (t === "off" || !o.block) continue;
@@ -140,14 +140,14 @@ function S(e, t, n, r) {
140
140
  }
141
141
  return i;
142
142
  }
143
- function C(e) {
143
+ function D(e) {
144
144
  let t = e.overrides ?? {}, n = {
145
- ...re,
145
+ ...le,
146
146
  ...e.thresholds ?? {}
147
- }, r = { nonProductionHosts: e.nonProductionHosts ?? ie }, i = {
148
- minTextLength: e.deliverabilityThresholds?.minTextLength ?? te.minTextLength,
149
- shortenerHosts: e.shortenerHosts ?? ae
150
- }, a = { maxHtmlBytes: e.compatibilityThresholds?.maxHtmlBytes ?? ne.maxHtmlBytes }, o = e.locale ?? "en", s = e.rules;
147
+ }, r = { nonProductionHosts: e.nonProductionHosts ?? ue }, i = {
148
+ minTextLength: e.deliverabilityThresholds?.minTextLength ?? se.minTextLength,
149
+ shortenerHosts: e.shortenerHosts ?? de
150
+ }, a = { maxHtmlBytes: e.compatibilityThresholds?.maxHtmlBytes ?? ce.maxHtmlBytes }, o = e.locale ?? "en", s = e.rules;
151
151
  return {
152
152
  locale: o,
153
153
  rules: t,
@@ -161,8 +161,8 @@ function C(e) {
161
161
  }
162
162
  };
163
163
  }
164
- function pe(e, t, n) {
165
- return C({
164
+ function ye(e, t, n) {
165
+ return D({
166
166
  locale: e,
167
167
  rules: n,
168
168
  overrides: t.rules,
@@ -172,8 +172,8 @@ function pe(e, t, n) {
172
172
  shortenerHosts: t.shortenerHosts
173
173
  });
174
174
  }
175
- function me(e, t, n) {
176
- return C({
175
+ function be(e, t, n) {
176
+ return D({
177
177
  locale: e,
178
178
  rules: n,
179
179
  overrides: t.rules,
@@ -182,8 +182,8 @@ function me(e, t, n) {
182
182
  compatibilityThresholds: t.thresholds
183
183
  });
184
184
  }
185
- function he(e, t, n) {
186
- return C({
185
+ function xe(e, t, n) {
186
+ return D({
187
187
  locale: e,
188
188
  rules: n,
189
189
  overrides: t.rules,
@@ -191,8 +191,8 @@ function he(e, t, n) {
191
191
  nonProductionHosts: void 0
192
192
  });
193
193
  }
194
- function ge(e, t, n) {
195
- return C({
194
+ function Se(e, t, n) {
195
+ return D({
196
196
  locale: e,
197
197
  rules: n,
198
198
  overrides: t.rules,
@@ -200,8 +200,8 @@ function ge(e, t, n) {
200
200
  nonProductionHosts: void 0
201
201
  });
202
202
  }
203
- function _e(e, t, n) {
204
- return C({
203
+ function Ce(e, t, n) {
204
+ return D({
205
205
  locale: e,
206
206
  rules: n,
207
207
  overrides: t.rules,
@@ -210,7 +210,7 @@ function _e(e, t, n) {
210
210
  });
211
211
  }
212
212
  // ../quality/src/accessibility/messages/de.ts
213
- var ve = /* @__PURE__ */ e({ default: () => ye }), ye = {
213
+ var we = /* @__PURE__ */ e({ default: () => Te }), Te = {
214
214
  "a11y.img-missing-alt": {
215
215
  message: "Bild ohne Alt-Text.",
216
216
  suggestion: "Füge eine kurze Beschreibung hinzu oder markiere das Bild als dekorativ."
@@ -295,7 +295,7 @@ var ve = /* @__PURE__ */ e({ default: () => ye }), ye = {
295
295
  message: "Kein Preheader-Text gesetzt, daher zeigen Postfächer Bruchstücke des ersten Blocks.",
296
296
  suggestion: "Ergänze einen Preheader-Text als Vorschau auf die E-Mail."
297
297
  }
298
- }, be = /* @__PURE__ */ e({ default: () => w }), w = {
298
+ }, Ee = /* @__PURE__ */ e({ default: () => O }), O = {
299
299
  "a11y.img-missing-alt": {
300
300
  message: "Image is missing alt text.",
301
301
  suggestion: "Add a short description, or mark the image as decorative."
@@ -382,7 +382,7 @@ var ve = /* @__PURE__ */ e({ default: () => ye }), ye = {
382
382
  }
383
383
  };
384
384
  // ../quality/src/format-message.ts
385
- function T(e, t) {
385
+ function k(e, t) {
386
386
  if (!t) return e;
387
387
  let n = (e) => e.replace(/\{(\w+)\}/g, (e, n) => {
388
388
  let r = t[n];
@@ -394,59 +394,59 @@ function T(e, t) {
394
394
  };
395
395
  }
396
396
  // ../quality/src/accessibility/messages/index.ts
397
- var E = /* #__PURE__ */ Object.assign({
398
- "./de.ts": ve,
399
- "./en.ts": be
400
- }), D = {};
401
- for (let e in E) {
397
+ var De = /* #__PURE__ */ Object.assign({
398
+ "./de.ts": we,
399
+ "./en.ts": Ee
400
+ }), A = {};
401
+ for (let e in De) {
402
402
  let t = /\.\/([^/]+)\.ts$/.exec(e);
403
403
  if (!t) continue;
404
404
  let n = t[1];
405
- n !== "index" && (D[n] = E[e].default);
405
+ n !== "index" && (A[n] = De[e].default);
406
406
  }
407
- function xe(e) {
408
- return D[e.split("-")[0]?.toLowerCase() ?? "en"] ?? D.en ?? w;
407
+ function Oe(e) {
408
+ return A[e.split("-")[0]?.toLowerCase() ?? "en"] ?? A.en ?? O;
409
409
  }
410
- function Se(e, t, n) {
411
- return T(xe(e)[t] ?? w[t], n);
410
+ function ke(e, t, n) {
411
+ return k(Oe(e)[t] ?? O[t], n);
412
412
  }
413
- var Ce = {
413
+ var Ae = {
414
414
  meta: {
415
415
  id: "a11y.img-missing-alt",
416
416
  reference: "https://www.w3.org/WAI/tutorials/images/",
417
417
  severity: "error"
418
418
  },
419
419
  block(e) {
420
- return !f(e) || e.decorative === !0 || (e.alt?.trim() ?? "") !== "" || (e.src ?? "").trim() === "" ? null : { blockId: e.id };
420
+ return !y(e) || e.decorative === !0 || (e.alt?.trim() ?? "") !== "" || (e.src ?? "").trim() === "" ? null : { blockId: e.id };
421
421
  }
422
- }, we = {
422
+ }, je = {
423
423
  id: "a11y.img-alt-is-filename",
424
424
  reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#images",
425
425
  severity: "warning"
426
- }, Te = [
426
+ }, Me = [
427
427
  /\.(jpe?g|png|gif|webp|svg)$/i,
428
428
  /^IMG[_-]?\d+/i,
429
429
  /^Untitled/i,
430
430
  /^Screen[\s_-]?Shot/i,
431
431
  /^DSC[_-]?\d+/i
432
- ], Ee = {
433
- meta: we,
432
+ ], Ne = {
433
+ meta: je,
434
434
  block(e) {
435
- if (!f(e) || e.decorative === !0) return null;
435
+ if (!y(e) || e.decorative === !0) return null;
436
436
  let t = e.alt?.trim() ?? "";
437
- return t === "" || !Te.some((e) => e.test(t)) ? null : {
437
+ return t === "" || !Me.some((e) => e.test(t)) ? null : {
438
438
  blockId: e.id,
439
439
  params: { alt: t }
440
440
  };
441
441
  }
442
- }, De = {
442
+ }, Pe = {
443
443
  meta: {
444
444
  id: "a11y.img-alt-too-long",
445
445
  reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#images",
446
446
  severity: "warning"
447
447
  },
448
448
  block(e, t, n) {
449
- if (!f(e) || e.decorative === !0) return null;
449
+ if (!y(e) || e.decorative === !0) return null;
450
450
  let r = e.alt ?? "";
451
451
  return r.length <= n.thresholds.altMaxLength ? null : {
452
452
  blockId: e.id,
@@ -456,14 +456,14 @@ var Ce = {
456
456
  }
457
457
  };
458
458
  }
459
- }, Oe = {
459
+ }, Fe = {
460
460
  meta: {
461
461
  id: "a11y.img-decorative-needs-empty-alt",
462
462
  reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#images",
463
463
  severity: "info"
464
464
  },
465
465
  block(e) {
466
- return !f(e) || e.decorative !== !0 || (e.alt ?? "").trim() === "" ? null : {
466
+ return !y(e) || e.decorative !== !0 || (e.alt ?? "").trim() === "" ? null : {
467
467
  blockId: e.id,
468
468
  fix: {
469
469
  description: "Clear alt text",
@@ -471,7 +471,7 @@ var Ce = {
471
471
  }
472
472
  };
473
473
  }
474
- }, ke = /* @__PURE__ */ e({ default: () => Ae }), Ae = {
474
+ }, Ie = /* @__PURE__ */ e({ default: () => Le }), Le = {
475
475
  vagueLinkText: [
476
476
  "hier klicken",
477
477
  "hier",
@@ -514,7 +514,7 @@ var Ce = {
514
514
  "anschauen",
515
515
  "jetzt"
516
516
  ]
517
- }, je = /* @__PURE__ */ e({ default: () => Me }), Me = {
517
+ }, Re = /* @__PURE__ */ e({ default: () => ze }), ze = {
518
518
  vagueLinkText: [
519
519
  "click here",
520
520
  "here",
@@ -555,43 +555,43 @@ var Ce = {
555
555
  "redeem",
556
556
  "watch"
557
557
  ]
558
- }, O = /* #__PURE__ */ Object.assign({
559
- "./de.ts": ke,
560
- "./en.ts": je
561
- }), k = {};
562
- for (let e in O) {
558
+ }, Be = /* #__PURE__ */ Object.assign({
559
+ "./de.ts": Ie,
560
+ "./en.ts": Re
561
+ }), Ve = {};
562
+ for (let e in Be) {
563
563
  let t = /\.\/([^/]+)\.ts$/.exec(e);
564
564
  if (!t) continue;
565
565
  let n = t[1];
566
- n !== "index" && (k[n] = O[e].default);
567
- }
568
- function A(e) {
569
- return Ne;
566
+ n !== "index" && (Ve[n] = Be[e].default);
570
567
  }
571
568
  function j(e) {
569
+ return He;
570
+ }
571
+ function M(e) {
572
572
  let t = /* @__PURE__ */ new Set();
573
- for (let n of Object.values(k)) for (let r of e(n)) t.add(r);
573
+ for (let n of Object.values(Ve)) for (let r of e(n)) t.add(r);
574
574
  return Array.from(t);
575
575
  }
576
- var Ne = {
577
- vagueLinkText: j((e) => e.vagueLinkText),
578
- vagueButtonLabels: j((e) => e.vagueButtonLabels),
579
- linkedImageActionHints: j((e) => e.linkedImageActionHints)
576
+ var He = {
577
+ vagueLinkText: M((e) => e.vagueLinkText),
578
+ vagueButtonLabels: M((e) => e.vagueButtonLabels),
579
+ linkedImageActionHints: M((e) => e.linkedImageActionHints)
580
580
  };
581
- function M(e) {
581
+ function Ue(e) {
582
582
  return e.toLowerCase().replace(/\s+/g, " ").replace(/^[^\p{L}\p{N}]+|[^\p{L}\p{N}]+$/gu, "").trim();
583
583
  }
584
- var Pe = {
584
+ var We = {
585
585
  meta: {
586
586
  id: "a11y.img-linked-no-context",
587
587
  reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#images",
588
588
  severity: "warning"
589
589
  },
590
590
  block(e, t, n) {
591
- if (!f(e) || e.decorative === !0 || !e.linkUrl || e.linkUrl.trim() === "") return null;
591
+ if (!y(e) || e.decorative === !0 || !e.linkUrl || e.linkUrl.trim() === "") return null;
592
592
  let r = (e.alt ?? "").trim();
593
593
  if (r === "") return null;
594
- let i = r.toLocaleLowerCase().split(/[^\p{L}\p{N}]+/u).filter(Boolean), a = A(n.locale).linkedImageActionHints;
594
+ let i = r.toLocaleLowerCase().split(/[^\p{L}\p{N}]+/u).filter(Boolean), a = j(n.locale).linkedImageActionHints;
595
595
  return i.some((e) => a.includes(e)) ? null : { blockId: e.id };
596
596
  }
597
597
  };
@@ -599,7 +599,7 @@ var Pe = {
599
599
  function N(e) {
600
600
  let t = [], n = null, r = "", i = () => {
601
601
  n !== null && (n.text = r.trim(), t.push(n), n = null, r = "");
602
- }, a = new _({
602
+ }, a = new oe({
603
603
  onopentag(e, t) {
604
604
  e === "a" ? (i(), n = {
605
605
  href: t.href ?? "",
@@ -618,8 +618,8 @@ function N(e) {
618
618
  });
619
619
  return a.write(e), a.end(), i(), t;
620
620
  }
621
- function Fe(e) {
622
- let t = Ie(e).matchAll(/<\/?a\b[^<>]*>/gi), n = 0;
621
+ function Ge(e) {
622
+ let t = Ke(e).matchAll(/<\/?a\b[^<>]*>/gi), n = 0;
623
623
  for (let e of t) if (e[0].startsWith("</")) n > 0 && n--;
624
624
  else {
625
625
  if (n > 0) return !0;
@@ -627,7 +627,7 @@ function Fe(e) {
627
627
  }
628
628
  return !1;
629
629
  }
630
- function Ie(e) {
630
+ function Ke(e) {
631
631
  let t = "", n = 0;
632
632
  for (; n < e.length;) {
633
633
  let r = e.indexOf("<!--", n);
@@ -643,12 +643,12 @@ function Ie(e) {
643
643
  return t;
644
644
  }
645
645
  function P(e) {
646
- let t = "", n = new _({ ontext(e) {
646
+ let t = "", n = new oe({ ontext(e) {
647
647
  t += e;
648
648
  } });
649
649
  return n.write(e), n.end(), t.trim();
650
650
  }
651
- var Le = {
651
+ var qe = {
652
652
  meta: {
653
653
  id: "a11y.heading-empty",
654
654
  reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#headings",
@@ -657,20 +657,20 @@ var Le = {
657
657
  block(e) {
658
658
  return !a(e) || P(e.content ?? "") !== "" ? null : { blockId: e.id };
659
659
  }
660
- }, Re = {
660
+ }, Je = {
661
661
  id: "a11y.heading-skip-level",
662
662
  reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#headings",
663
663
  severity: "error"
664
664
  };
665
- function F(e, t) {
665
+ function Ye(e, t) {
666
666
  for (let n of e) if (a(n)) t.push(n);
667
- else if (l(n)) for (let e of n.children) F(e, t);
667
+ else if (b(n)) for (let e of n.children) Ye(e, t);
668
668
  }
669
- var ze = {
670
- meta: Re,
669
+ var Xe = {
670
+ meta: Je,
671
671
  template(e) {
672
672
  let t = [];
673
- F(e.blocks, t);
673
+ Ye(e.blocks, t);
674
674
  let n = [], r = 0;
675
675
  for (let e of t) r !== 0 && e.level > r + 1 && n.push({
676
676
  blockId: e.id,
@@ -681,52 +681,52 @@ var ze = {
681
681
  }), r = e.level;
682
682
  return n;
683
683
  }
684
- }, Be = {
684
+ }, Ze = {
685
685
  id: "a11y.heading-multiple-h1",
686
686
  reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#headings",
687
687
  severity: "warning"
688
688
  };
689
- function I(e, t) {
689
+ function Qe(e, t) {
690
690
  for (let n of e) if (a(n)) t.push(n);
691
- else if (l(n)) for (let e of n.children) I(e, t);
691
+ else if (b(n)) for (let e of n.children) Qe(e, t);
692
692
  }
693
- var Ve = {
694
- meta: Be,
693
+ var $e = {
694
+ meta: Ze,
695
695
  template(e) {
696
696
  let t = [];
697
- I(e.blocks, t);
697
+ Qe(e.blocks, t);
698
698
  let n = t.filter((e) => e.level === 1);
699
699
  return n.length <= 1 ? [] : n.slice(1).map((e) => ({ blockId: e.id }));
700
700
  }
701
- }, He = {
701
+ }, et = {
702
702
  id: "a11y.link-empty",
703
703
  reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#links",
704
704
  severity: "error"
705
705
  };
706
- function Ue(e) {
707
- return c(e) || a(e) ? e.content : null;
706
+ function tt(e) {
707
+ return g(e) || a(e) ? e.content : null;
708
708
  }
709
- var We = {
710
- meta: He,
709
+ var nt = {
710
+ meta: et,
711
711
  block(e) {
712
- let t = Ue(e);
712
+ let t = tt(e);
713
713
  return t === null || !N(t).find((e) => e.text === "" && !e.hasImageWithAlt) ? null : { blockId: e.id };
714
714
  }
715
- }, Ge = {
715
+ }, rt = {
716
716
  id: "a11y.link-vague-text",
717
717
  reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#links",
718
718
  severity: "warning"
719
719
  };
720
- function Ke(e) {
721
- return c(e) || a(e) ? e.content : null;
720
+ function it(e) {
721
+ return g(e) || a(e) ? e.content : null;
722
722
  }
723
- var qe = {
724
- meta: Ge,
723
+ var at = {
724
+ meta: rt,
725
725
  block(e, t, n) {
726
- let r = Ke(e);
726
+ let r = it(e);
727
727
  if (r === null) return null;
728
- let i = A(n.locale).vagueLinkText, a = N(r).find((e) => {
729
- let t = M(e.text);
728
+ let i = j(n.locale).vagueLinkText, a = N(r).find((e) => {
729
+ let t = Ue(e.text);
730
730
  return t !== "" && i.includes(t);
731
731
  });
732
732
  return a ? {
@@ -734,55 +734,55 @@ var qe = {
734
734
  params: { text: a.text }
735
735
  } : null;
736
736
  }
737
- }, Je = {
737
+ }, ot = {
738
738
  id: "a11y.link-href-empty",
739
739
  reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#links",
740
740
  severity: "error"
741
741
  };
742
- function Ye(e) {
743
- return c(e) || a(e) ? e.content : null;
742
+ function st(e) {
743
+ return g(e) || a(e) ? e.content : null;
744
744
  }
745
- var Xe = {
746
- meta: Je,
745
+ var ct = {
746
+ meta: ot,
747
747
  block(e) {
748
- let t = Ye(e);
748
+ let t = st(e);
749
749
  return t === null || !N(t).find((e) => {
750
750
  let t = e.href.trim();
751
751
  return t === "" || t === "#";
752
752
  }) ? null : { blockId: e.id };
753
753
  }
754
- }, Ze = {
754
+ }, lt = {
755
755
  id: "a11y.link-target-blank-no-rel",
756
756
  reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#links",
757
757
  severity: "warning"
758
758
  };
759
- function Qe(e) {
760
- return c(e) || a(e) ? e.content : null;
759
+ function ut(e) {
760
+ return g(e) || a(e) ? e.content : null;
761
761
  }
762
- function $e(e) {
762
+ function dt(e) {
763
763
  if (e === null) return !1;
764
764
  let t = e.toLowerCase().split(/\s+/);
765
765
  return t.includes("noopener") || t.includes("noreferrer");
766
766
  }
767
- var et = {
768
- meta: Ze,
767
+ var ft = {
768
+ meta: lt,
769
769
  block(e) {
770
- let t = Qe(e);
771
- return t === null || !N(t).find((e) => e.target === "_blank" && !$e(e.rel)) ? null : {
770
+ let t = ut(e);
771
+ return t === null || !N(t).find((e) => e.target === "_blank" && !dt(e.rel)) ? null : {
772
772
  blockId: e.id,
773
773
  fix: {
774
774
  description: "Add rel=\"noopener\"",
775
775
  apply: (t) => {
776
- if (!c(e) && !a(e)) return;
777
- let n = rt(e.content ?? "");
776
+ if (!g(e) && !a(e)) return;
777
+ let n = gt(e.content ?? "");
778
778
  t.updateBlock(e.id, { content: n });
779
779
  }
780
780
  }
781
781
  };
782
782
  }
783
- }, L = /([^\s"'>/=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g;
784
- function tt(e) {
785
- let t = [], n = new RegExp(L.source, L.flags), r;
783
+ }, pt = /([^\s"'>/=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g;
784
+ function mt(e) {
785
+ let t = [], n = new RegExp(pt.source, pt.flags), r;
786
786
  for (; (r = n.exec(e)) !== null;) t.push({
787
787
  raw: r[0],
788
788
  name: r[1],
@@ -791,13 +791,13 @@ function tt(e) {
791
791
  });
792
792
  return t;
793
793
  }
794
- function nt(e) {
794
+ function ht(e) {
795
795
  return e.some((e) => e.name.toLowerCase() === "target" && e.value !== null && e.value.toLowerCase() === "_blank");
796
796
  }
797
- function rt(e) {
797
+ function gt(e) {
798
798
  return e.replace(/<a\b([^>]*)>/gi, (e, t) => {
799
- let n = tt(t);
800
- if (!nt(n)) return e;
799
+ let n = mt(t);
800
+ if (!ht(n)) return e;
801
801
  let r = n.find((e) => e.name.toLowerCase() === "rel");
802
802
  if (r) {
803
803
  let n = (r.value ?? "").toLowerCase().split(/\s+/);
@@ -809,70 +809,70 @@ function rt(e) {
809
809
  });
810
810
  }
811
811
  // ../quality/src/accessibility/rules/link-nested-anchor.ts
812
- var it = {
812
+ var _t = {
813
813
  id: "a11y.link-nested-anchor",
814
814
  reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#links",
815
815
  severity: "error"
816
816
  };
817
- function at(e) {
818
- return c(e) || a(e) ? e.content : null;
817
+ function vt(e) {
818
+ return g(e) || a(e) ? e.content : null;
819
819
  }
820
- var ot = {
821
- meta: it,
820
+ var yt = {
821
+ meta: _t,
822
822
  block(e) {
823
- let t = at(e);
824
- return t === null || !Fe(t) ? null : { blockId: e.id };
823
+ let t = vt(e);
824
+ return t === null || !Ge(t) ? null : { blockId: e.id };
825
825
  }
826
- }, st = {
826
+ }, bt = {
827
827
  meta: {
828
828
  id: "a11y.text-all-caps",
829
829
  reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#text",
830
830
  severity: "warning"
831
831
  },
832
832
  block(e, t, n) {
833
- if (!c(e) && !a(e)) return null;
833
+ if (!g(e) && !a(e)) return null;
834
834
  let r = P(e.content ?? "").replace(/[^\p{L}]/gu, "");
835
835
  return r.length < n.thresholds.allCapsMinLength || ![...r].some((e) => e.toLocaleLowerCase() !== e.toLocaleUpperCase()) || r !== r.toLocaleUpperCase() ? null : { blockId: e.id };
836
836
  }
837
- }, ct = {
837
+ }, xt = {
838
838
  id: "a11y.text-justified",
839
839
  reference: "https://www.w3.org/WAI/WCAG21/Understanding/visual-presentation",
840
840
  severity: "warning"
841
- }, lt = /(^|;)\s*text-align\s*:\s*([^;]*)/i, R = /\sstyle\s*=\s*(?:"([^"]*)"|'([^']*)')/gi;
842
- function ut(e) {
843
- let t = [], n = new RegExp(R.source, R.flags), r;
841
+ }, St = /(^|;)\s*text-align\s*:\s*([^;]*)/i, Ct = /\sstyle\s*=\s*(?:"([^"]*)"|'([^']*)')/gi;
842
+ function wt(e) {
843
+ let t = [], n = new RegExp(Ct.source, Ct.flags), r;
844
844
  for (; (r = n.exec(e)) !== null;) t.push(r[1] ?? r[2] ?? "");
845
845
  return t;
846
846
  }
847
- function dt(e) {
848
- let t = lt.exec(e);
847
+ function Tt(e) {
848
+ let t = St.exec(e);
849
849
  return t !== null && t[2].trim().toLowerCase() === "justify";
850
850
  }
851
- function ft(e) {
851
+ function Et(e) {
852
852
  return e.split(";").filter((e) => !/^\s*text-align\s*:/i.test(e)).map((e) => e.trim()).filter((e) => e !== "").join("; ");
853
853
  }
854
- function pt(e) {
854
+ function Dt(e) {
855
855
  return e.replace(/\sstyle\s*=\s*(?:"([^"]*)"|'([^']*)')/gi, (e, t, n) => {
856
856
  let r = t ?? n ?? "";
857
- if (!dt(r)) return e;
858
- let i = ft(r);
857
+ if (!Tt(r)) return e;
858
+ let i = Et(r);
859
859
  return i === "" ? "" : ` style="${i}"`;
860
860
  });
861
861
  }
862
- var mt = {
863
- meta: ct,
862
+ var Ot = {
863
+ meta: xt,
864
864
  block(e) {
865
- return !c(e) || !ut(e.content ?? "").some(dt) ? null : {
865
+ return !g(e) || !wt(e.content ?? "").some(Tt) ? null : {
866
866
  blockId: e.id,
867
867
  fix: {
868
868
  description: "Remove justified alignment",
869
869
  apply: (t) => {
870
- c(e) && t.updateBlock(e.id, { content: pt(e.content ?? "") });
870
+ g(e) && t.updateBlock(e.id, { content: Dt(e.content ?? "") });
871
871
  }
872
872
  }
873
873
  };
874
874
  }
875
- }, ht = {
875
+ }, kt = {
876
876
  meta: {
877
877
  id: "a11y.text-low-contrast",
878
878
  reference: "https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum",
@@ -881,46 +881,46 @@ var mt = {
881
881
  block(e, t) {
882
882
  if (!a(e)) return null;
883
883
  let n = e.color ?? t.resolvedTextColor;
884
- if (!y(n) || !y(t.resolvedBackgroundColor)) return null;
885
- let r = i[e.level] >= 24 ? 3 : 4.5, o = oe(n, t.resolvedBackgroundColor);
886
- return Number.isNaN(o) || o >= r ? null : {
884
+ if (!C(n) || !C(t.resolvedBackgroundColor)) return null;
885
+ let r = te[e.level] >= 24 ? 3 : 4.5, i = fe(n, t.resolvedBackgroundColor);
886
+ return Number.isNaN(i) || i >= r ? null : {
887
887
  blockId: e.id,
888
888
  params: {
889
- ratio: o.toFixed(2),
889
+ ratio: i.toFixed(2),
890
890
  required: r
891
891
  }
892
892
  };
893
893
  }
894
- }, gt = {
894
+ }, At = {
895
895
  id: "a11y.text-too-small",
896
896
  reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#text",
897
897
  severity: "warning"
898
898
  };
899
- function _t(e) {
900
- return m(e) || u(e) ? e.fontSize : null;
899
+ function jt(e) {
900
+ return x(e) || d(e) ? e.fontSize : null;
901
901
  }
902
902
  // ../quality/src/accessibility/index.ts
903
- var vt = [
904
- Ce,
905
- Ee,
906
- De,
907
- Oe,
903
+ var Mt = [
904
+ Ae,
905
+ Ne,
908
906
  Pe,
909
- Le,
910
- ze,
911
- Ve,
907
+ Fe,
912
908
  We,
913
909
  qe,
914
910
  Xe,
915
- et,
916
- ot,
917
- st,
918
- mt,
919
- ht,
911
+ $e,
912
+ nt,
913
+ at,
914
+ ct,
915
+ ft,
916
+ yt,
917
+ bt,
918
+ Ot,
919
+ kt,
920
920
  {
921
- meta: gt,
921
+ meta: At,
922
922
  block(e, t, n) {
923
- let r = _t(e);
923
+ let r = jt(e);
924
924
  return r === null || r >= n.thresholds.minFontSize ? null : {
925
925
  blockId: e.id,
926
926
  params: {
@@ -937,9 +937,9 @@ var vt = [
937
937
  severity: "warning"
938
938
  },
939
939
  block(e, t, n) {
940
- if (!d(e)) return null;
941
- let r = M(e.text ?? "");
942
- return r === "" || !A(n.locale).vagueButtonLabels.includes(r) ? null : {
940
+ if (!v(e)) return null;
941
+ let r = Ue(e.text ?? "");
942
+ return r === "" || !j(n.locale).vagueButtonLabels.includes(r) ? null : {
943
943
  blockId: e.id,
944
944
  params: { text: e.text }
945
945
  };
@@ -952,7 +952,7 @@ var vt = [
952
952
  severity: "warning"
953
953
  },
954
954
  block(e, t, n) {
955
- if (!d(e)) return null;
955
+ if (!v(e)) return null;
956
956
  let r = e.buttonPadding;
957
957
  if (!r) return null;
958
958
  let i = e.fontSize * 1.4 + r.top + r.bottom;
@@ -972,8 +972,8 @@ var vt = [
972
972
  severity: "error"
973
973
  },
974
974
  block(e) {
975
- if (!d(e)) return null;
976
- let t = oe(e.textColor, e.backgroundColor);
975
+ if (!v(e)) return null;
976
+ let t = fe(e.textColor, e.backgroundColor);
977
977
  if (Number.isNaN(t)) return null;
978
978
  let n = e.fontSize >= 24 ? 3 : 4.5;
979
979
  return t >= n ? null : {
@@ -996,11 +996,11 @@ var vt = [
996
996
  }
997
997
  }
998
998
  ];
999
- function yt(e, t = {}) {
1000
- return t.disabled === !0 || t.accessibility === !1 ? [] : S(e, vt, he(t.locale, t.accessibility ?? {}, vt), (e, t, n) => Se(e, t, n));
999
+ function Nt(e, t = {}) {
1000
+ return t.disabled === !0 || t.accessibility === !1 ? [] : E(e, Mt, xe(t.locale, t.accessibility ?? {}, Mt), (e, t, n) => ke(e, t, n));
1001
1001
  }
1002
1002
  // ../quality/src/structure/messages/de.ts
1003
- var bt = /* @__PURE__ */ e({ default: () => xt }), xt = {
1003
+ var Pt = /* @__PURE__ */ e({ default: () => Ft }), Ft = {
1004
1004
  "structure.duplicate-block-id": {
1005
1005
  message: "Block-ID erscheint {count}-mal im Baum.",
1006
1006
  suggestion: "Gib jedem Block eine eindeutige ID."
@@ -1041,7 +1041,7 @@ var bt = /* @__PURE__ */ e({ default: () => xt }), xt = {
1041
1041
  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.",
1042
1042
  suggestion: "Gib ihr eine feste Höhe oder trage die Größe der Bilddatei ein."
1043
1043
  }
1044
- }, St = /* @__PURE__ */ e({ default: () => z }), z = {
1044
+ }, It = /* @__PURE__ */ e({ default: () => F }), F = {
1045
1045
  "structure.duplicate-block-id": {
1046
1046
  message: "Block id appears {count} times in the tree.",
1047
1047
  suggestion: "Give each block a unique id."
@@ -1082,36 +1082,36 @@ var bt = /* @__PURE__ */ e({ default: () => xt }), xt = {
1082
1082
  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.",
1083
1083
  suggestion: "Give it a fixed height, or set the image file's size."
1084
1084
  }
1085
- }, Ct = /* #__PURE__ */ Object.assign({
1086
- "./de.ts": bt,
1087
- "./en.ts": St
1088
- }), B = {};
1089
- for (let e in Ct) {
1085
+ }, Lt = /* #__PURE__ */ Object.assign({
1086
+ "./de.ts": Pt,
1087
+ "./en.ts": It
1088
+ }), I = {};
1089
+ for (let e in Lt) {
1090
1090
  let t = /\.\/([^/]+)\.ts$/.exec(e);
1091
1091
  if (!t) continue;
1092
1092
  let n = t[1];
1093
- n !== "index" && (B[n] = Ct[e].default);
1093
+ n !== "index" && (I[n] = Lt[e].default);
1094
1094
  }
1095
- function wt(e) {
1096
- return B[e.split("-")[0]?.toLowerCase() ?? "en"] ?? B.en ?? z;
1095
+ function Rt(e) {
1096
+ return I[e.split("-")[0]?.toLowerCase() ?? "en"] ?? I.en ?? F;
1097
1097
  }
1098
- function Tt(e, t, n) {
1099
- return T(wt(e)[t] ?? z[t], n);
1098
+ function zt(e, t, n) {
1099
+ return k(Rt(e)[t] ?? F[t], n);
1100
1100
  }
1101
1101
  // ../quality/src/structure/rules/duplicate-block-id.ts
1102
- var Et = {
1102
+ var Bt = {
1103
1103
  id: "structure.duplicate-block-id",
1104
1104
  reference: "https://docs.templatical.com/quality/structure/rule-catalog#tree-integrity",
1105
1105
  severity: "error"
1106
1106
  };
1107
- function Dt(e, t) {
1108
- for (let n of e) if (t.set(n.id, (t.get(n.id) ?? 0) + 1), l(n)) for (let e of n.children) Dt(e, t);
1107
+ function Vt(e, t) {
1108
+ for (let n of e) if (t.set(n.id, (t.get(n.id) ?? 0) + 1), b(n)) for (let e of n.children) Vt(e, t);
1109
1109
  }
1110
- var Ot = {
1111
- meta: Et,
1110
+ var Ht = {
1111
+ meta: Bt,
1112
1112
  template(e) {
1113
1113
  let t = /* @__PURE__ */ new Map();
1114
- Dt(e.blocks, t);
1114
+ Vt(e.blocks, t);
1115
1115
  let n = [];
1116
1116
  for (let [e, r] of t) r > 1 && n.push({
1117
1117
  blockId: e,
@@ -1119,14 +1119,14 @@ var Ot = {
1119
1119
  });
1120
1120
  return n;
1121
1121
  }
1122
- }, kt = {
1122
+ }, Ut = {
1123
1123
  id: "structure.empty-column",
1124
1124
  reference: "https://docs.templatical.com/quality/structure/rule-catalog#content-presence",
1125
1125
  severity: "warning"
1126
1126
  };
1127
- function At(e, t) {
1127
+ function Wt(e, t) {
1128
1128
  for (let n of e) {
1129
- if (!l(n)) continue;
1129
+ if (!b(n)) continue;
1130
1130
  let e = n;
1131
1131
  e.children.length > 1 && e.children.forEach((n, r) => {
1132
1132
  n.length === 0 && t.push({
@@ -1134,39 +1134,40 @@ function At(e, t) {
1134
1134
  params: { columnIndex: r + 1 }
1135
1135
  });
1136
1136
  });
1137
- for (let n of e.children) At(n, t);
1137
+ for (let n of e.children) Wt(n, t);
1138
1138
  }
1139
1139
  }
1140
- var jt = {
1141
- meta: kt,
1140
+ var Gt = {
1141
+ meta: Ut,
1142
1142
  template(e) {
1143
1143
  let t = [];
1144
- return At(e.blocks, t), t;
1144
+ return Wt(e.blocks, t), t;
1145
1145
  }
1146
- }, Mt = {
1146
+ }, Kt = {
1147
1147
  id: "structure.empty-section",
1148
1148
  reference: "https://docs.templatical.com/quality/structure/rule-catalog#content-presence",
1149
1149
  severity: "warning"
1150
1150
  };
1151
- function Nt(e) {
1151
+ function qt(e) {
1152
1152
  return e.children.length === 0 || e.children.every((e) => e.length === 0);
1153
1153
  }
1154
- var Pt = {
1155
- meta: Mt,
1154
+ var Jt = {
1155
+ meta: Kt,
1156
1156
  block(e) {
1157
- if (!l(e)) return null;
1157
+ if (!b(e)) return null;
1158
1158
  let t = e;
1159
- return Nt(t) ? {
1159
+ return qt(t) ? {
1160
1160
  blockId: t.id,
1161
1161
  fix: {
1162
1162
  description: "Remove the empty section",
1163
+ removesBlock: !0,
1163
1164
  apply: (e) => {
1164
1165
  e.removeBlock(t.id);
1165
1166
  }
1166
1167
  }
1167
1168
  } : null;
1168
1169
  }
1169
- }, Ft = {
1170
+ }, Yt = {
1170
1171
  meta: {
1171
1172
  id: "structure.hero-not-applied",
1172
1173
  reference: "https://docs.templatical.com/quality/structure/rule-catalog#content-presence",
@@ -1178,8 +1179,8 @@ var Pt = {
1178
1179
  ]
1179
1180
  },
1180
1181
  block(e) {
1181
- if (!l(e)) return null;
1182
- let t = r(e);
1182
+ if (!b(e)) return null;
1183
+ let t = ae(e);
1183
1184
  return t === null || t.applied ? null : {
1184
1185
  blockId: e.id,
1185
1186
  messageVariant: t.reason
@@ -1187,59 +1188,59 @@ var Pt = {
1187
1188
  }
1188
1189
  };
1189
1190
  // ../quality/src/structure/band.ts
1190
- function It(e, t) {
1191
- return e.wrapper ? e.wrapper : t.parent && g(t.parent) ? {
1191
+ function Xt(e, t) {
1192
+ return e.wrapper ? e.wrapper : t.parent && c(t.parent) ? {
1192
1193
  backgroundColor: t.parent.styles?.backgroundColor,
1193
1194
  backgroundImage: t.parent.backgroundImage
1194
1195
  } : null;
1195
1196
  }
1196
- function Lt(e) {
1197
+ function Zt(e) {
1197
1198
  if (typeof e != "string") return !1;
1198
1199
  let t = e.trim().toLowerCase();
1199
1200
  return t !== "" && t !== "transparent";
1200
1201
  }
1201
- var Rt = {
1202
+ var Qt = {
1202
1203
  meta: {
1203
1204
  id: "structure.nested-background-image",
1204
1205
  reference: "https://docs.templatical.com/quality/structure/rule-catalog#email-client-compatibility",
1205
1206
  severity: "warning"
1206
1207
  },
1207
- block(e, n) {
1208
- if (!l(e) || t(e.backgroundImage) === null) return null;
1209
- let r = It(e, n);
1210
- return r === null || t(r.backgroundImage) === null ? null : { blockId: e.id };
1208
+ block(e, t) {
1209
+ if (!b(e) || _(e.backgroundImage) === null) return null;
1210
+ let n = Xt(e, t);
1211
+ return n === null || _(n.backgroundImage) === null ? null : { blockId: e.id };
1211
1212
  }
1212
- }, zt = {
1213
+ }, $t = {
1213
1214
  meta: {
1214
1215
  id: "structure.nested-section",
1215
1216
  reference: "https://docs.templatical.com/quality/structure/rule-catalog#tree-integrity",
1216
1217
  severity: "error"
1217
1218
  },
1218
1219
  block(e, t) {
1219
- return !l(e) || t.section === null ? null : {
1220
+ return !b(e) || t.section === null ? null : {
1220
1221
  blockId: e.id,
1221
1222
  params: { parentId: t.section.id }
1222
1223
  };
1223
1224
  }
1224
- }, Bt = {
1225
+ }, en = {
1225
1226
  id: "structure.section-column-mismatch",
1226
1227
  reference: "https://docs.templatical.com/quality/structure/rule-catalog#section-layout",
1227
1228
  severity: "error"
1228
1229
  };
1229
- function Vt(e) {
1230
+ function tn(e) {
1230
1231
  return e === "1" ? 1 : e === "3" ? 3 : 2;
1231
1232
  }
1232
1233
  // ../quality/src/structure/index.ts
1233
- var Ht = [
1234
- Ot,
1235
- Pt,
1236
- jt,
1237
- zt,
1234
+ var nn = [
1235
+ Ht,
1236
+ Jt,
1237
+ Gt,
1238
+ $t,
1238
1239
  {
1239
- meta: Bt,
1240
+ meta: en,
1240
1241
  block(e) {
1241
- if (!l(e)) return null;
1242
- let t = e, n = Vt(t.columns), r = t.children.length;
1242
+ if (!b(e)) return null;
1243
+ let t = e, n = tn(t.columns), r = t.children.length;
1243
1244
  return r === n ? null : {
1244
1245
  blockId: t.id,
1245
1246
  params: {
@@ -1256,20 +1257,20 @@ var Ht = [
1256
1257
  reference: "https://docs.templatical.com/quality/structure/rule-catalog#email-client-compatibility",
1257
1258
  severity: "warning"
1258
1259
  },
1259
- block(e, n) {
1260
- if (!l(e) || t(e.backgroundImage) === null) return null;
1261
- let r = It(e, n);
1262
- return r === null || !Lt(r.backgroundColor) ? null : { blockId: e.id };
1260
+ block(e, t) {
1261
+ if (!b(e) || _(e.backgroundImage) === null) return null;
1262
+ let n = Xt(e, t);
1263
+ return n === null || !Zt(n.backgroundColor) ? null : { blockId: e.id };
1263
1264
  }
1264
1265
  },
1265
- Rt,
1266
- Ft
1266
+ Qt,
1267
+ Yt
1267
1268
  ];
1268
- function Ut(e, t = {}) {
1269
- return t.disabled === !0 || t.structure === !1 ? [] : S(e, Ht, ge(t.locale, t.structure ?? {}, Ht), (e, t, n) => Tt(e, t, n));
1269
+ function rn(e, t = {}) {
1270
+ return t.disabled === !0 || t.structure === !1 ? [] : E(e, nn, Se(t.locale, t.structure ?? {}, nn), (e, t, n) => zt(e, t, n));
1270
1271
  }
1271
1272
  // ../quality/src/links/messages/de.ts
1272
- var Wt = /* @__PURE__ */ e({ default: () => Gt }), Gt = {
1273
+ var an = /* @__PURE__ */ e({ default: () => on }), on = {
1273
1274
  "link.javascript-protocol": {
1274
1275
  message: "Die URL verwendet das Protokoll „{protocol}:\", das beliebigen Skriptcode ausführen kann und aus Sicherheitsgründen beim Rendern entfernt wird.",
1275
1276
  suggestion: "Ersetze sie durch eine echte URL oder entferne sie."
@@ -1294,7 +1295,7 @@ var Wt = /* @__PURE__ */ e({ default: () => Gt }), Gt = {
1294
1295
  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.",
1295
1296
  suggestion: "Verwende eine absolute URL (https://…)."
1296
1297
  }
1297
- }, Kt = /* @__PURE__ */ e({ default: () => V }), V = {
1298
+ }, sn = /* @__PURE__ */ e({ default: () => L }), L = {
1298
1299
  "link.javascript-protocol": {
1299
1300
  message: "URL uses the \"{protocol}:\" protocol, which can execute arbitrary script and is stripped at render time for safety.",
1300
1301
  suggestion: "Replace it with a real link or remove the URL."
@@ -1319,57 +1320,57 @@ var Wt = /* @__PURE__ */ e({ default: () => Gt }), Gt = {
1319
1320
  message: "URL \"{url}\" is relative. A sent email has no page address to resolve it against, so the link breaks.",
1320
1321
  suggestion: "Use an absolute URL (https://…)."
1321
1322
  }
1322
- }, qt = /* #__PURE__ */ Object.assign({
1323
- "./de.ts": Wt,
1324
- "./en.ts": Kt
1325
- }), H = {};
1326
- for (let e in qt) {
1323
+ }, cn = /* #__PURE__ */ Object.assign({
1324
+ "./de.ts": an,
1325
+ "./en.ts": sn
1326
+ }), R = {};
1327
+ for (let e in cn) {
1327
1328
  let t = /\.\/([^/]+)\.ts$/.exec(e);
1328
1329
  if (!t) continue;
1329
1330
  let n = t[1];
1330
- n !== "index" && (H[n] = qt[e].default);
1331
+ n !== "index" && (R[n] = cn[e].default);
1331
1332
  }
1332
- function Jt(e) {
1333
- return H[e.split("-")[0]?.toLowerCase() ?? "en"] ?? H.en ?? V;
1333
+ function ln(e) {
1334
+ return R[e.split("-")[0]?.toLowerCase() ?? "en"] ?? R.en ?? L;
1334
1335
  }
1335
- function Yt(e, t, n) {
1336
- return T(Jt(e)[t] ?? V[t], n);
1336
+ function un(e, t, n) {
1337
+ return k(ln(e)[t] ?? L[t], n);
1337
1338
  }
1338
1339
  // ../quality/src/url-walker.ts
1339
- function U(e) {
1340
+ function z(e) {
1340
1341
  let t = [];
1341
- return x(e, (e) => {
1342
- if (a(e) || c(e) || s(e)) for (let n of N(e.content)) t.push({
1342
+ return T(e, (e) => {
1343
+ if (a(e) || g(e) || h(e)) for (let n of N(e.content)) t.push({
1343
1344
  url: n.href,
1344
1345
  blockId: e.id,
1345
1346
  source: "anchor",
1346
1347
  label: n.text
1347
1348
  });
1348
- else if (d(e)) t.push({
1349
+ else if (v(e)) t.push({
1349
1350
  url: e.url,
1350
1351
  blockId: e.id,
1351
1352
  source: "button",
1352
1353
  label: e.text
1353
1354
  });
1354
- else if (f(e)) e.linkUrl && e.linkUrl !== "" && t.push({
1355
+ else if (y(e)) e.linkUrl && e.linkUrl !== "" && t.push({
1355
1356
  url: e.linkUrl,
1356
1357
  blockId: e.id,
1357
1358
  source: "image-link",
1358
1359
  label: e.alt || void 0
1359
1360
  });
1360
- else if (h(e)) t.push({
1361
+ else if (r(e)) t.push({
1361
1362
  url: e.url,
1362
1363
  blockId: e.id,
1363
1364
  source: "video",
1364
1365
  label: e.alt || void 0
1365
1366
  });
1366
- else if (m(e)) for (let n of e.items) t.push({
1367
+ else if (x(e)) for (let n of e.items) t.push({
1367
1368
  url: n.url,
1368
1369
  blockId: e.id,
1369
1370
  source: "menu-item",
1370
1371
  label: n.text
1371
1372
  });
1372
- else if (p(e)) for (let n of e.icons) t.push({
1373
+ else if (n(e)) for (let n of e.icons) t.push({
1373
1374
  url: n.url,
1374
1375
  blockId: e.id,
1375
1376
  source: "social-icon",
@@ -1378,21 +1379,21 @@ function U(e) {
1378
1379
  }), t;
1379
1380
  }
1380
1381
  // ../quality/src/links/rules/javascript-protocol.ts
1381
- var Xt = {
1382
+ var dn = {
1382
1383
  id: "link.javascript-protocol",
1383
1384
  reference: "https://docs.templatical.com/quality/links/rule-catalog#dangerous-protocols",
1384
1385
  severity: "error"
1385
- }, Zt = ee;
1386
- function Qt(e) {
1387
- let t = n(e), r = n(e.replace(/\s+/g, ""));
1388
- return Zt.find((e) => e === t || e === r) ?? null;
1386
+ }, fn = u;
1387
+ function pn(e) {
1388
+ let t = i(e), n = i(e.replace(/\s+/g, ""));
1389
+ return fn.find((e) => e === t || e === n) ?? null;
1389
1390
  }
1390
- var $t = {
1391
- meta: Xt,
1391
+ var mn = {
1392
+ meta: dn,
1392
1393
  template(e) {
1393
1394
  let t = [];
1394
- for (let n of U(e)) {
1395
- let e = Qt(n.url);
1395
+ for (let n of z(e)) {
1396
+ let e = pn(n.url);
1396
1397
  e !== null && t.push({
1397
1398
  blockId: n.blockId,
1398
1399
  params: { protocol: e }
@@ -1400,41 +1401,41 @@ var $t = {
1400
1401
  }
1401
1402
  return t;
1402
1403
  }
1403
- }, en = {
1404
+ }, hn = {
1404
1405
  id: "link.unsupported-protocol",
1405
1406
  reference: "https://docs.templatical.com/quality/links/rule-catalog#unsupported-protocols",
1406
1407
  severity: "warning"
1407
- }, tn = /* @__PURE__ */ new Set([
1408
+ }, gn = /* @__PURE__ */ new Set([
1408
1409
  "http",
1409
1410
  "https",
1410
1411
  "mailto",
1411
1412
  "tel",
1412
1413
  "sms"
1413
- ]), nn = new Set(Zt);
1414
- function rn(e) {
1414
+ ]), _n = new Set(fn);
1415
+ function vn(e) {
1415
1416
  if (!e) return null;
1416
1417
  let t = e.trim(), n = /^([a-z][a-z0-9+\-.]*):/i.exec(t);
1417
1418
  return n ? n[1].toLowerCase() : null;
1418
1419
  }
1419
- var an = {
1420
- meta: en,
1420
+ var yn = {
1421
+ meta: hn,
1421
1422
  template(e) {
1422
1423
  let t = [];
1423
- for (let n of U(e)) {
1424
- let e = rn(n.url);
1425
- e !== null && (nn.has(e) || tn.has(e) || t.push({
1424
+ for (let n of z(e)) {
1425
+ let e = vn(n.url);
1426
+ e !== null && (_n.has(e) || gn.has(e) || t.push({
1426
1427
  blockId: n.blockId,
1427
1428
  params: { protocol: e }
1428
1429
  }));
1429
1430
  }
1430
1431
  return t;
1431
1432
  }
1432
- }, on = {
1433
+ }, bn = {
1433
1434
  id: "link.malformed-mailto",
1434
1435
  reference: "https://docs.templatical.com/quality/links/rule-catalog#malformed-uris",
1435
1436
  severity: "warning"
1436
1437
  };
1437
- function sn(e) {
1438
+ function xn(e) {
1438
1439
  let t = e.trim();
1439
1440
  if (!/^mailto:/i.test(t)) return !1;
1440
1441
  let [n] = t.slice(7).split("?", 2);
@@ -1449,43 +1450,43 @@ function sn(e) {
1449
1450
  }
1450
1451
  return !1;
1451
1452
  }
1452
- var cn = {
1453
- meta: on,
1453
+ var Sn = {
1454
+ meta: bn,
1454
1455
  template(e) {
1455
1456
  let t = [];
1456
- for (let n of U(e)) sn(n.url) && t.push({ blockId: n.blockId });
1457
+ for (let n of z(e)) xn(n.url) && t.push({ blockId: n.blockId });
1457
1458
  return t;
1458
1459
  }
1459
- }, ln = {
1460
+ }, Cn = {
1460
1461
  id: "link.malformed-tel",
1461
1462
  reference: "https://docs.templatical.com/quality/links/rule-catalog#malformed-uris",
1462
1463
  severity: "warning"
1463
- }, un = /^[+0-9\s().\-]+$/, dn = /^[A-Za-z0-9-]+(=[^;]+)?$/;
1464
- function fn(e) {
1464
+ }, wn = /^[+0-9\s().\-]+$/, Tn = /^[A-Za-z0-9-]+(=[^;]+)?$/;
1465
+ function En(e) {
1465
1466
  let t = e.trim();
1466
1467
  if (!/^tel:/i.test(t)) return !1;
1467
1468
  let n = t.slice(4).trim();
1468
1469
  if (n === "") return !0;
1469
1470
  let [r, ...i] = n.split(";");
1470
- return !un.test(r) || i.some((e) => !dn.test(e));
1471
+ return !wn.test(r) || i.some((e) => !Tn.test(e));
1471
1472
  }
1472
- var pn = {
1473
- meta: ln,
1473
+ var Dn = {
1474
+ meta: Cn,
1474
1475
  template(e) {
1475
1476
  let t = [];
1476
- for (let n of U(e)) fn(n.url) && t.push({ blockId: n.blockId });
1477
+ for (let n of z(e)) En(n.url) && t.push({ blockId: n.blockId });
1477
1478
  return t;
1478
1479
  }
1479
- }, mn = {
1480
+ }, On = {
1480
1481
  id: "link.localhost-or-staging",
1481
1482
  reference: "https://docs.templatical.com/quality/links/rule-catalog#environment-leaks",
1482
1483
  severity: "warning"
1483
1484
  };
1484
- function hn(e) {
1485
+ function kn(e) {
1485
1486
  let t = e.replace(/[.+?^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*");
1486
1487
  return RegExp(`^${t}$`, "i");
1487
1488
  }
1488
- function gn(e) {
1489
+ function An(e) {
1489
1490
  if (!e) return null;
1490
1491
  let t = e.trim();
1491
1492
  if (!/^(https?|ftps?):\/\//i.test(t)) return null;
@@ -1495,14 +1496,14 @@ function gn(e) {
1495
1496
  return null;
1496
1497
  }
1497
1498
  }
1498
- var _n = {
1499
- meta: mn,
1499
+ var jn = {
1500
+ meta: On,
1500
1501
  template(e, t) {
1501
1502
  let n = t.links.nonProductionHosts;
1502
1503
  if (n.length === 0) return [];
1503
- let r = n.map(hn), i = [];
1504
- for (let t of U(e)) {
1505
- let e = gn(t.url);
1504
+ let r = n.map(kn), i = [];
1505
+ for (let t of z(e)) {
1506
+ let e = An(t.url);
1506
1507
  e !== null && r.some((t) => t.test(e)) && i.push({
1507
1508
  blockId: t.blockId,
1508
1509
  params: { host: e }
@@ -1510,23 +1511,23 @@ var _n = {
1510
1511
  }
1511
1512
  return i;
1512
1513
  }
1513
- }, vn = {
1514
+ }, Mn = {
1514
1515
  id: "link.relative-url",
1515
1516
  reference: "https://docs.templatical.com/quality/links/rule-catalog#unsupported-protocols",
1516
1517
  severity: "warning"
1517
- }, yn = /^(?:\/|\.{1,2}\/|\?)/, bn = [
1518
- $t,
1519
- an,
1520
- cn,
1521
- pn,
1522
- _n,
1518
+ }, Nn = /^(?:\/|\.{1,2}\/|\?)/, Pn = [
1519
+ mn,
1520
+ yn,
1521
+ Sn,
1522
+ Dn,
1523
+ jn,
1523
1524
  {
1524
- meta: vn,
1525
+ meta: Mn,
1525
1526
  template(e) {
1526
1527
  let t = [];
1527
- for (let n of U(e)) {
1528
+ for (let n of z(e)) {
1528
1529
  let e = n.url?.trim();
1529
- e && yn.test(e) && t.push({
1530
+ e && Nn.test(e) && t.push({
1530
1531
  blockId: n.blockId,
1531
1532
  params: { url: e }
1532
1533
  });
@@ -1535,11 +1536,11 @@ var _n = {
1535
1536
  }
1536
1537
  }
1537
1538
  ];
1538
- function xn(e, t = {}) {
1539
- return t.disabled === !0 || t.links === !1 ? [] : S(e, bn, _e(t.locale, t.links ?? {}, bn), (e, t, n) => Yt(e, t, n));
1539
+ function Fn(e, t = {}) {
1540
+ return t.disabled === !0 || t.links === !1 ? [] : E(e, Pn, Ce(t.locale, t.links ?? {}, Pn), (e, t, n) => un(e, t, n));
1540
1541
  }
1541
1542
  // ../quality/src/deliverability/messages/de.ts
1542
- var Sn = /* @__PURE__ */ e({ default: () => Cn }), Cn = {
1543
+ var In = /* @__PURE__ */ e({ default: () => Ln }), Ln = {
1543
1544
  "deliverability.link-text-domain-mismatch": {
1544
1545
  message: "Der Linktext zeigt {textHost}, der Link führt aber zu {linkHost}. Spamfilter werten solche Links als Phishing.",
1545
1546
  suggestion: "Lass den Text zum Ziel passen oder verwende Wörter statt einer Adresse."
@@ -1556,7 +1557,7 @@ var Sn = /* @__PURE__ */ e({ default: () => Cn }), Cn = {
1556
1557
  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.",
1557
1558
  suggestion: "Ergänze Text, der die Botschaft trägt."
1558
1559
  }
1559
- }, wn = /* @__PURE__ */ e({ default: () => W }), W = {
1560
+ }, Rn = /* @__PURE__ */ e({ default: () => B }), B = {
1560
1561
  "deliverability.link-text-domain-mismatch": {
1561
1562
  message: "The link text shows {textHost}, but the link goes to {linkHost}. Spam filters flag links like this as phishing.",
1562
1563
  suggestion: "Make the text match the destination, or use words instead of an address."
@@ -1573,25 +1574,25 @@ var Sn = /* @__PURE__ */ e({ default: () => Cn }), Cn = {
1573
1574
  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.",
1574
1575
  suggestion: "Add text that carries the message."
1575
1576
  }
1576
- }, Tn = /* #__PURE__ */ Object.assign({
1577
- "./de.ts": Sn,
1578
- "./en.ts": wn
1579
- }), G = {};
1580
- for (let e in Tn) {
1577
+ }, zn = /* #__PURE__ */ Object.assign({
1578
+ "./de.ts": In,
1579
+ "./en.ts": Rn
1580
+ }), V = {};
1581
+ for (let e in zn) {
1581
1582
  let t = /\.\/([^/]+)\.ts$/.exec(e);
1582
1583
  if (!t) continue;
1583
1584
  let n = t[1];
1584
- n !== "index" && (G[n] = Tn[e].default);
1585
+ n !== "index" && (V[n] = zn[e].default);
1585
1586
  }
1586
- function En(e) {
1587
- return G[e.split("-")[0]?.toLowerCase() ?? "en"] ?? G.en ?? W;
1587
+ function Bn(e) {
1588
+ return V[e.split("-")[0]?.toLowerCase() ?? "en"] ?? V.en ?? B;
1588
1589
  }
1589
- function Dn(e, t, n) {
1590
- return T(En(e)[t] ?? W[t], n);
1590
+ function Vn(e, t, n) {
1591
+ return k(Bn(e)[t] ?? B[t], n);
1591
1592
  }
1592
1593
  // ../quality/src/deliverability/same-site.ts
1593
- var On = "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(" "), kn = new Set(On);
1594
- function K(e) {
1594
+ var Hn = "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(" "), Un = new Set(Hn);
1595
+ function H(e) {
1595
1596
  try {
1596
1597
  let t = new URL(e);
1597
1598
  return (t.protocol === "http:" || t.protocol === "https:") && !/[{}]/.test(t.hostname) ? t : null;
@@ -1599,41 +1600,41 @@ function K(e) {
1599
1600
  return null;
1600
1601
  }
1601
1602
  }
1602
- function q(e) {
1603
+ function U(e) {
1603
1604
  return e.hostname.toLowerCase().replace(/\.$/, "").replace(/^www\./, "");
1604
1605
  }
1605
- function An(e) {
1606
+ function Wn(e) {
1606
1607
  if (/^\d+\.\d+\.\d+\.\d+$/.test(e) || e.startsWith("[")) return e;
1607
1608
  let t = e.split("."), n = t.slice(-2).join(".");
1608
- return t.slice(-(kn.has(n) ? 3 : 2)).join(".");
1609
+ return t.slice(-(Un.has(n) ? 3 : 2)).join(".");
1609
1610
  }
1610
- function jn(e, t) {
1611
- let n = K(`http://${e}`), r = K(`http://${t}`);
1612
- return !n || !r ? !1 : An(q(n)) === An(q(r));
1611
+ function Gn(e, t) {
1612
+ let n = H(`http://${e}`), r = H(`http://${t}`);
1613
+ return !n || !r ? !1 : Wn(U(n)) === Wn(U(r));
1613
1614
  }
1614
1615
  // ../quality/src/deliverability/rules/link-text-domain-mismatch.ts
1615
- var Mn = {
1616
+ var Kn = {
1616
1617
  id: "deliverability.link-text-domain-mismatch",
1617
1618
  reference: "https://docs.rspamd.com/modules/phishing/",
1618
1619
  severity: "warning"
1619
- }, Nn = /^(?:https?:\/\/)?(?:[\p{L}\p{N}](?:[\p{L}\p{N}-]*[\p{L}\p{N}])?\.)+(?:\p{L}{2,}|xn--[a-z0-9-]+)(?::\d+)?(?:[/?#][^\s]*)?$/iu;
1620
- function Pn(e) {
1620
+ }, qn = /^(?:https?:\/\/)?(?:[\p{L}\p{N}](?:[\p{L}\p{N}-]*[\p{L}\p{N}])?\.)+(?:\p{L}{2,}|xn--[a-z0-9-]+)(?::\d+)?(?:[/?#][^\s]*)?$/iu;
1621
+ function Jn(e) {
1621
1622
  if (!e) return null;
1622
1623
  let t = e.trim();
1623
- return t.startsWith("<") && t.endsWith(">") && (t = t.slice(1, -1)), t = t.replace(/[.,;:!?)]+$/, ""), Nn.test(t) ? K(/^https?:\/\//i.test(t) ? t : `http://${t}`) : null;
1624
+ return t.startsWith("<") && t.endsWith(">") && (t = t.slice(1, -1)), t = t.replace(/[.,;:!?)]+$/, ""), qn.test(t) ? H(/^https?:\/\//i.test(t) ? t : `http://${t}`) : null;
1624
1625
  }
1625
1626
  // ../quality/src/deliverability/index.ts
1626
- var Fn = [
1627
+ var Yn = [
1627
1628
  {
1628
- meta: Mn,
1629
+ meta: Kn,
1629
1630
  template(e) {
1630
1631
  let t = [];
1631
- for (let n of U(e)) {
1632
+ for (let n of z(e)) {
1632
1633
  if (n.source !== "anchor" && n.source !== "button" && n.source !== "menu-item") continue;
1633
- let e = Pn(n.label), r = K(n.url);
1634
+ let e = Jn(n.label), r = H(n.url);
1634
1635
  if (!e || !r) continue;
1635
- let i = q(e), a = q(r);
1636
- jn(i, a) || t.push({
1636
+ let i = U(e), a = U(r);
1637
+ Gn(i, a) || t.push({
1637
1638
  blockId: n.blockId,
1638
1639
  params: {
1639
1640
  textHost: i,
@@ -1652,10 +1653,10 @@ var Fn = [
1652
1653
  },
1653
1654
  template(e, t) {
1654
1655
  let n = [];
1655
- for (let r of U(e)) {
1656
- let e = K(r.url);
1656
+ for (let r of z(e)) {
1657
+ let e = H(r.url);
1657
1658
  if (!e) continue;
1658
- let i = q(e);
1659
+ let i = U(e);
1659
1660
  t.deliverability.shortenerHosts.some((e) => i === e || i.endsWith(`.${e}`)) && n.push({
1660
1661
  blockId: r.blockId,
1661
1662
  params: { host: i }
@@ -1672,10 +1673,10 @@ var Fn = [
1672
1673
  },
1673
1674
  template(e) {
1674
1675
  let t = [];
1675
- for (let n of U(e)) {
1676
- let e = K(n.url);
1676
+ for (let n of z(e)) {
1677
+ let e = H(n.url);
1677
1678
  if (!e) continue;
1678
- let r = q(e), i = /^(?:\d{1,3}\.){3}\d{1,3}$/.test(r), a = r.startsWith("[") && r.endsWith("]");
1679
+ let r = U(e), i = /^(?:\d{1,3}\.){3}\d{1,3}$/.test(r), a = r.startsWith("[") && r.endsWith("]");
1679
1680
  (i || a) && (r.startsWith("127.") || r === "0.0.0.0" || r === "[::1]" || t.push({
1680
1681
  blockId: n.blockId,
1681
1682
  params: { host: r }
@@ -1691,27 +1692,27 @@ var Fn = [
1691
1692
  severity: "info"
1692
1693
  },
1693
1694
  template(e, t) {
1694
- let n = !1, r = !1, i = [];
1695
- if (x(e, (e) => {
1696
- if (e.type === "custom" && (n = !0), (f(e) && e.src.trim() !== "" || h(e) || o(e)) && (r = !0), (a(e) || c(e) || s(e)) && i.push(P(e.content)), u(e)) for (let t of e.rows) for (let e of t.cells) i.push(P(e.content));
1697
- if (d(e) && i.push(e.text), m(e)) for (let t of e.items) i.push(t.text);
1698
- }), n || !r) return [];
1699
- let l = i.join(" ").replace(/\s+/g, " ").trim().length, p = t.deliverability.minTextLength;
1700
- return l < p ? [{
1695
+ let n = !1, i = !1, o = [];
1696
+ if (T(e, (e) => {
1697
+ if (e.type === "custom" && (n = !0), (y(e) && e.src.trim() !== "" || r(e) || ie(e)) && (i = !0), (a(e) || g(e) || h(e)) && o.push(P(e.content)), d(e)) for (let t of e.rows) for (let e of t.cells) o.push(P(e.content));
1698
+ if (v(e) && o.push(e.text), x(e)) for (let t of e.items) o.push(t.text);
1699
+ }), n || !i) return [];
1700
+ let s = o.join(" ").replace(/\s+/g, " ").trim().length, c = t.deliverability.minTextLength;
1701
+ return s < c ? [{
1701
1702
  blockId: null,
1702
1703
  params: {
1703
- count: l,
1704
- min: p
1704
+ count: s,
1705
+ min: c
1705
1706
  }
1706
1707
  }] : [];
1707
1708
  }
1708
1709
  }
1709
1710
  ];
1710
- function In(e, t = {}) {
1711
- return t.disabled === !0 || t.deliverability === !1 ? [] : S(e, Fn, pe(t.locale, t.deliverability ?? {}, Fn), (e, t, n) => Dn(e, t, n));
1711
+ function Xn(e, t = {}) {
1712
+ return t.disabled === !0 || t.deliverability === !1 ? [] : E(e, Yn, ye(t.locale, t.deliverability ?? {}, Yn), (e, t, n) => Vn(e, t, n));
1712
1713
  }
1713
1714
  // ../quality/src/compatibility/data/caniemail.generated.ts
1714
- var Ln = {
1715
+ var Zn = {
1715
1716
  family: {
1716
1717
  gmail: "Gmail",
1717
1718
  outlook: "Outlook",
@@ -1748,7 +1749,7 @@ var Ln = {
1748
1749
  "windows-mail": "Windows Mail",
1749
1750
  "outlook-com": "Outlook.com"
1750
1751
  }
1751
- }, Rn = {
1752
+ }, Qn = {
1752
1753
  "css-display-flex": {
1753
1754
  title: "display:flex",
1754
1755
  url: "https://www.caniemail.com/features/css-display-flex/",
@@ -3779,7 +3780,7 @@ var Ln = {
3779
3780
  }
3780
3781
  }
3781
3782
  }
3782
- }, zn = [
3783
+ }, $n = [
3783
3784
  "css-display-flex",
3784
3785
  "css-display-grid",
3785
3786
  "css-position",
@@ -3799,7 +3800,7 @@ var Ln = {
3799
3800
  "image-base64"
3800
3801
  ];
3801
3802
  // ../quality/src/compatibility/scan.ts
3802
- function Bn(e) {
3803
+ function er(e) {
3803
3804
  let t = "", n = 0;
3804
3805
  for (;;) {
3805
3806
  let r = e.indexOf("/*", n);
@@ -3810,7 +3811,7 @@ function Bn(e) {
3810
3811
  n = i + 2;
3811
3812
  }
3812
3813
  }
3813
- function J(e) {
3814
+ function W(e) {
3814
3815
  let t = e.toLowerCase(), n = (e, n) => {
3815
3816
  let r = t.indexOf(e, n);
3816
3817
  return r === -1 ? Infinity : r;
@@ -3844,8 +3845,8 @@ function J(e) {
3844
3845
  o = l + 1;
3845
3846
  }
3846
3847
  }
3847
- function Vn(e, t, n, r, i) {
3848
- let a = [], o = Bn(e).replace(/data:([\w.+-]+\/[\w.+-]+)[^)"']*/gi, "data:$1");
3848
+ function tr(e, t, n, r, i) {
3849
+ let a = [], o = er(e).replace(/data:([\w.+-]+\/[\w.+-]+)[^)"']*/gi, "data:$1");
3849
3850
  for (let e of o.matchAll(/(?:^|[;{])\s*([\w-]+)\s*:\s*([^;}]+)/g)) a.push({
3850
3851
  prop: e[1].toLowerCase(),
3851
3852
  value: e[2].trim(),
@@ -3856,19 +3857,19 @@ function Vn(e, t, n, r, i) {
3856
3857
  });
3857
3858
  return a;
3858
3859
  }
3859
- function Hn(e, t = "", n = []) {
3860
+ function nr(e, t = "", n = []) {
3860
3861
  let r = {
3861
3862
  tags: [],
3862
3863
  css: [],
3863
3864
  cssTexts: [],
3864
3865
  urls: [...n]
3865
3866
  }, i = !1, a = "", o = 0, s = (e, t, n, i) => {
3866
- r.cssTexts.push(Bn(e));
3867
+ r.cssTexts.push(er(e));
3867
3868
  let a = o++;
3868
- if (i) r.css.push(...Vn(e, t, n, !0, `${a}`));
3869
- else for (let [i, o] of e.split("}").entries()) r.css.push(...Vn(o, t, n, !1, `${a}:${i}`));
3869
+ if (i) r.css.push(...tr(e, t, n, !0, `${a}`));
3870
+ else for (let [i, o] of e.split("}").entries()) r.css.push(...tr(o, t, n, !1, `${a}:${i}`));
3870
3871
  };
3871
- return new _({
3872
+ return new oe({
3872
3873
  onopentag(e, t) {
3873
3874
  r.tags.push({
3874
3875
  tag: e,
@@ -3883,7 +3884,7 @@ function Hn(e, t = "", n = []) {
3883
3884
  }
3884
3885
  }, { decodeEntities: !0 }).end(e), t && s(t, "stylesheet", {}, !1), r;
3885
3886
  }
3886
- function Un(e) {
3887
+ function rr(e) {
3887
3888
  let t = [], n = [], r = [];
3888
3889
  switch (e.type) {
3889
3890
  case "html":
@@ -3908,15 +3909,15 @@ function Un(e) {
3908
3909
  break;
3909
3910
  case "wrapper": e.backgroundImage && r.push(e.backgroundImage.url);
3910
3911
  }
3911
- return Hn(t.join("\n"), n.join("\n"), r);
3912
+ return nr(t.join("\n"), n.join("\n"), r);
3912
3913
  }
3913
3914
  // ../quality/src/compatibility/detect.ts
3914
- var Wn = (e) => e.replace(/\s+/g, " ").trim().slice(0, 80), Y = ({ prop: e, value: t }) => Wn(`${e}: ${t}`), Gn = (e) => `<${e}>`, Kn = /#[0-9a-f]{3,8}\b|\b(?:rgba?|hsla?)\(/i;
3915
- function qn(e) {
3915
+ var ir = (e) => e.replace(/\s+/g, " ").trim().slice(0, 80), G = ({ prop: e, value: t }) => ir(`${e}: ${t}`), ar = (e) => `<${e}>`, or = /#[0-9a-f]{3,8}\b|\b(?:rgba?|hsla?)\(/i;
3916
+ function sr(e) {
3916
3917
  let t = /^\s*data:(image\/[\w.+-]+)/i.exec(e);
3917
3918
  return t ? t[1].toLowerCase() : null;
3918
3919
  }
3919
- function Jn(e) {
3920
+ function cr(e) {
3920
3921
  let t = /* @__PURE__ */ new Map();
3921
3922
  for (let n of e.css) {
3922
3923
  let e = n.group;
@@ -3924,27 +3925,27 @@ function Jn(e) {
3924
3925
  }
3925
3926
  for (let e of t.values()) {
3926
3927
  let t = e.find((e) => (e.prop === "background" || e.prop === "background-image") && /url\(/i.test(e.value));
3927
- if (!(!t || "bgcolor" in t.attrs) && !e.some((e) => e.prop === "background-color" || e.prop === "background" && Kn.test(J(e.value)))) return t;
3928
+ if (!(!t || "bgcolor" in t.attrs) && !e.some((e) => e.prop === "background-color" || e.prop === "background" && or.test(W(e.value)))) return t;
3928
3929
  }
3929
3930
  }
3930
- function Yn(e, t) {
3931
+ function lr(e, t) {
3931
3932
  let n = e.css, r = e.tags, i, a;
3932
3933
  switch (t) {
3933
3934
  case "compat.css-display-flex":
3934
3935
  case "compat.css-display-grid": {
3935
3936
  let e = t.endsWith("flex") ? "flex" : "grid";
3936
3937
  return i = n.find((t) => t.prop === "display" && RegExp(`^(?:inline-)?${e}\\b`, "i").test(t.value)), i ? {
3937
- excerpt: Y(i),
3938
+ excerpt: G(i),
3938
3939
  usage: i.value.match(/^(?:inline-)?(?:flex|grid)/i)?.[0].toLowerCase()
3939
3940
  } : null;
3940
3941
  }
3941
3942
  case "compat.css-position": return i = n.find((e) => e.prop === "position" && /^(absolute|fixed|sticky)\b/i.test(e.value)), i ? {
3942
- excerpt: Y(i),
3943
+ excerpt: G(i),
3943
3944
  usage: i.value.match(/^\w+/)?.[0].toLowerCase(),
3944
3945
  value: i.value.match(/^\w+/)?.[0].toLowerCase()
3945
3946
  } : null;
3946
- case "compat.css-variables": return i = n.find((e) => /\bvar\(\s*--/i.test(J(e.value))), i ? { excerpt: Y(i) } : null;
3947
- case "compat.css-at-import": return e.cssTexts.some((e) => /@import\b/i.test(J(e))) ? { excerpt: "@import" } : null;
3947
+ case "compat.css-variables": return i = n.find((e) => /\bvar\(\s*--/i.test(W(e.value))), i ? { excerpt: G(i) } : null;
3948
+ case "compat.css-at-import": return e.cssTexts.some((e) => /@import\b/i.test(W(e))) ? { excerpt: "@import" } : null;
3948
3949
  case "compat.html-link": return r.some((e) => e.tag === "link" && /(?:^|\s)stylesheet(?:\s|$)/i.test(e.attrs.rel ?? "")) ? { excerpt: "<link rel=\"stylesheet\">" } : null;
3949
3950
  case "compat.html-style":
3950
3951
  case "compat.html-svg":
@@ -3952,33 +3953,33 @@ function Yn(e, t) {
3952
3953
  case "compat.html-video":
3953
3954
  case "compat.html-audio":
3954
3955
  case "compat.html-script":
3955
- case "compat.html-iframe": return a = t.slice(12), r.some((e) => e.tag === a) ? { excerpt: Gn(a) } : null;
3956
+ case "compat.html-iframe": return a = t.slice(12), r.some((e) => e.tag === a) ? { excerpt: ar(a) } : null;
3956
3957
  case "compat.html-form": return a = r.find((e) => [
3957
3958
  "form",
3958
3959
  "input",
3959
3960
  "select",
3960
3961
  "textarea"
3961
- ].includes(e.tag))?.tag, a ? { excerpt: Gn(a) } : null;
3962
+ ].includes(e.tag))?.tag, a ? { excerpt: ar(a) } : null;
3962
3963
  case "compat.css-width": return i = n.find((e) => e.inline && e.prop === "width" && ([
3963
3964
  "div",
3964
3965
  "p",
3965
3966
  "span",
3966
3967
  "body"
3967
3968
  ].includes(e.tag) || e.tag === "img" && !("width" in e.attrs))), i ? {
3968
- excerpt: Y(i),
3969
+ excerpt: G(i),
3969
3970
  tag: i.tag
3970
3971
  } : null;
3971
3972
  case "compat.css-max-width": return i = n.find((e) => e.inline && e.prop === "max-width" && e.tag !== "table"), i ? {
3972
- excerpt: Y(i),
3973
+ excerpt: G(i),
3973
3974
  tag: i.tag
3974
3975
  } : null;
3975
3976
  case "compat.css-float": return i = n.find((e) => e.prop === "float"), i ? {
3976
- excerpt: Y(i),
3977
+ excerpt: G(i),
3977
3978
  tag: i.tag
3978
3979
  } : null;
3979
- case "compat.css-background-image": return i = Jn(e), i ? { excerpt: Y(i) } : null;
3980
+ case "compat.css-background-image": return i = cr(e), i ? { excerpt: G(i) } : null;
3980
3981
  case "compat.image-base64": {
3981
- let t = e.cssTexts.flatMap((e) => [...e.matchAll(/url\(\s*['"]?\s*(data:image\/[\w.+-]+)/gi)].map((e) => e[1])), n = [...e.urls, ...t].map(qn).find((e) => e !== null);
3982
+ let t = e.cssTexts.flatMap((e) => [...e.matchAll(/url\(\s*['"]?\s*(data:image\/[\w.+-]+)/gi)].map((e) => e[1])), n = [...e.urls, ...t].map(sr).find((e) => e !== null);
3982
3983
  return n ? {
3983
3984
  excerpt: `data:${n}`,
3984
3985
  usage: n
@@ -3988,14 +3989,14 @@ function Yn(e, t) {
3988
3989
  }
3989
3990
  }
3990
3991
  // ../quality/src/compatibility/support.ts
3991
- var Xn = Rn, Zn = [
3992
+ var ur = Qn, dr = [
3992
3993
  "gmail",
3993
3994
  "outlook",
3994
3995
  "apple-mail",
3995
3996
  "yahoo",
3996
3997
  "samsung-email"
3997
- ], X = Ln.family, Qn = Ln.platform;
3998
- function $n(e, t, n) {
3998
+ ], K = Zn.family, fr = Zn.platform;
3999
+ function pr(e, t, n) {
3999
4000
  switch (e) {
4000
4001
  case "css-display-flex": return t === 2 && n === "inline-flex";
4001
4002
  case "css-position": {
@@ -4014,14 +4015,14 @@ function $n(e, t, n) {
4014
4015
  default: return !1;
4015
4016
  }
4016
4017
  }
4017
- function er(e, t = "") {
4018
- let n = Xn[e];
4018
+ function mr(e, t = "") {
4019
+ let n = ur[e];
4019
4020
  if (!n) return [];
4020
4021
  let r = [];
4021
4022
  for (let [i, a] of Object.entries(n.cells)) {
4022
- let o = i.indexOf("."), s = i.slice(0, o), c = i.slice(o + 1), l = a.notes.some((n) => $n(e, n, t)) || a.value === "n" ? "unsupported" : a.value === "a" ? "partial" : null;
4023
+ let o = i.indexOf("."), s = i.slice(0, o), c = i.slice(o + 1), l = a.notes.some((n) => pr(e, n, t)) || a.value === "n" ? "unsupported" : a.value === "a" ? "partial" : null;
4023
4024
  if (!l) continue;
4024
- let u = X[s] ?? s, d = Qn[c] ?? c;
4025
+ let u = K[s] ?? s, d = fr[c] ?? c;
4025
4026
  r.push({
4026
4027
  id: i,
4027
4028
  name: d.toLowerCase().includes(u.toLowerCase()) ? d : `${u} ${d}`,
@@ -4032,23 +4033,23 @@ function er(e, t = "") {
4032
4033
  }
4033
4034
  return r;
4034
4035
  }
4035
- function tr(e, t, n) {
4036
+ function hr(e, t, n) {
4036
4037
  let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
4037
4038
  for (let n of e) {
4038
4039
  let e = n.id.split(".")[0];
4039
4040
  r.set(e, [...r.get(e) ?? [], n]), n.support === t && i.set(e, [...i.get(e) ?? [], n]);
4040
4041
  }
4041
4042
  let a = [...i.keys()].sort((e, t) => {
4042
- let n = Zn.indexOf(e), r = Zn.indexOf(t);
4043
- return n === r ? (X[e] ?? e).localeCompare(X[t] ?? t) : (n < 0 ? Infinity : n) - (r < 0 ? Infinity : r);
4043
+ let n = dr.indexOf(e), r = dr.indexOf(t);
4044
+ return n === r ? (K[e] ?? e).localeCompare(K[t] ?? t) : (n < 0 ? Infinity : n) - (r < 0 ? Infinity : r);
4044
4045
  }).map((e) => {
4045
- let t = X[e] ?? e, n = i.get(e);
4046
- return n.length === r.get(e).length ? t : `${t} (${n.map((e) => Qn[e.id.split(".")[1]] ?? e.name).join(", ")})`;
4046
+ let t = K[e] ?? e, n = i.get(e);
4047
+ return n.length === r.get(e).length ? t : `${t} (${n.map((e) => fr[e.id.split(".")[1]] ?? e.name).join(", ")})`;
4047
4048
  }), o = a.slice(0, 4);
4048
4049
  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);
4049
4050
  }
4050
4051
  // ../quality/src/compatibility/messages/de.ts
4051
- var nr = /* @__PURE__ */ e({ default: () => rr }), rr = {
4052
+ var gr = /* @__PURE__ */ e({ default: () => _r }), _r = {
4052
4053
  templates: {
4053
4054
  unsupported: "{feature} funktioniert in {unsupported} nicht.",
4054
4055
  partial: "{feature} funktioniert in {partial} nur teilweise.",
@@ -4139,7 +4140,7 @@ var nr = /* @__PURE__ */ e({ default: () => rr }), rr = {
4139
4140
  suggestion: "Bleibe unter {max} KB: Kürze den Inhalt, verschiebe lange Abschnitte auf eine Webseite oder ersetze Base64-Bilder durch gehostete Bilder."
4140
4141
  }
4141
4142
  }
4142
- }, ir = /* @__PURE__ */ e({ default: () => Z }), Z = {
4143
+ }, vr = /* @__PURE__ */ e({ default: () => yr }), yr = {
4143
4144
  templates: {
4144
4145
  unsupported: "{feature} doesn't work in {unsupported}.",
4145
4146
  partial: "{feature} only partly works in {partial}.",
@@ -4230,24 +4231,24 @@ var nr = /* @__PURE__ */ e({ default: () => rr }), rr = {
4230
4231
  suggestion: "Bring it under {max} KB: shorten the content, move long sections to a web page, or replace base64 images with hosted ones."
4231
4232
  }
4232
4233
  }
4233
- }, ar = /* #__PURE__ */ Object.assign({
4234
- "./de.ts": nr,
4235
- "./en.ts": ir
4236
- }), Q = {};
4237
- for (let e in ar) Q[e.slice(2, -3)] = ar[e].default;
4238
- function or(e) {
4239
- return Q[e.split("-")[0]?.toLowerCase() ?? "en"] ?? Q.en ?? Z;
4234
+ }, br = /* #__PURE__ */ Object.assign({
4235
+ "./de.ts": gr,
4236
+ "./en.ts": vr
4237
+ }), q = {};
4238
+ for (let e in br) q[e.slice(2, -3)] = br[e].default;
4239
+ function xr(e) {
4240
+ return q[e.split("-")[0]?.toLowerCase() ?? "en"] ?? q.en ?? yr;
4240
4241
  }
4241
- function sr(e, t, n = {}) {
4242
- let r = or(e), i = r.hand[t];
4243
- if (i) return T(i, n);
4242
+ function Sr(e, t, n = {}) {
4243
+ let r = xr(e), i = r.hand[t];
4244
+ if (i) return k(i, n);
4244
4245
  let a = t.slice(7), o = r.features[a];
4245
4246
  if (!o) throw Error(`Missing compatibility message: ${t}`);
4246
- let s = n.unsupported && n.partial ? "mixed" : n.unsupported ? "unsupported" : "partial", c = T({
4247
+ let s = n.unsupported && n.partial ? "mixed" : n.unsupported ? "unsupported" : "partial", c = k({
4247
4248
  message: o.feature,
4248
4249
  suggestion: o.suggestion
4249
4250
  }, n);
4250
- return T({
4251
+ return k({
4251
4252
  message: r.templates[s],
4252
4253
  suggestion: c.suggestion
4253
4254
  }, {
@@ -4256,22 +4257,22 @@ function sr(e, t, n = {}) {
4256
4257
  });
4257
4258
  }
4258
4259
  // ../quality/src/compatibility/index.ts
4259
- var cr = "https://docs.templatical.com/quality/compatibility/rule-catalog", lr = ["html-script", "html-iframe"], $ = [
4260
- ...zn.map((e) => ({ meta: {
4260
+ var Cr = "https://docs.templatical.com/quality/compatibility/rule-catalog", wr = ["html-script", "html-iframe"], J = [
4261
+ ...$n.map((e) => ({ meta: {
4261
4262
  id: `compat.${e}`,
4262
4263
  severity: "warning",
4263
- reference: Rn[e].url
4264
+ reference: Qn[e].url
4264
4265
  } })),
4265
- ...lr.map((e) => ({ meta: {
4266
+ ...wr.map((e) => ({ meta: {
4266
4267
  id: `compat.${e}`,
4267
4268
  severity: "warning",
4268
- reference: `${cr}#compat-${e}`
4269
+ reference: `${Cr}#compat-${e}`
4269
4270
  } })),
4270
4271
  {
4271
4272
  meta: {
4272
4273
  id: "compat.gmail-clipping",
4273
4274
  severity: "warning",
4274
- reference: `${cr}#compat-gmail-clipping`
4275
+ reference: `${Cr}#compat-gmail-clipping`
4275
4276
  },
4276
4277
  compiledHtml(e, t) {
4277
4278
  let n = new TextEncoder().encode(e).byteLength;
@@ -4291,22 +4292,22 @@ var cr = "https://docs.templatical.com/quality/compatibility/rule-catalog", lr =
4291
4292
  }
4292
4293
  }
4293
4294
  ];
4294
- function ur(e, t, n) {
4295
- let r = n.compatibility || {}, i = me(n.locale, r, $), a = [];
4296
- for (let n of $) {
4295
+ function Tr(e, t, n) {
4296
+ let r = n.compatibility || {}, i = be(n.locale, r, J), a = [];
4297
+ for (let n of J) {
4297
4298
  let o = n.meta.id;
4298
4299
  if (o === "compat.gmail-clipping" || i.severity(o) === "off") continue;
4299
- let s = Yn(e, o);
4300
+ let s = lr(e, o);
4300
4301
  if (!s) continue;
4301
- let c = o === "compat.html-script" || o === "compat.html-iframe", l = c ? void 0 : er(o.slice(7), s.usage);
4302
+ let c = o === "compat.html-script" || o === "compat.html-iframe", l = c ? void 0 : mr(o.slice(7), s.usage);
4302
4303
  if (!c && l?.length === 0) continue;
4303
4304
  let u = l?.some((e) => e.support === "unsupported") ?? !0, d = u ? "warning" : "info", f = r.rules?.[o], p = f && f !== "off" ? f : d, m = {
4304
4305
  excerpt: s.excerpt,
4305
4306
  value: s.value ?? "",
4306
4307
  tag: s.tag ?? ""
4307
4308
  };
4308
- l && (u && (m.unsupported = tr(l, "unsupported", i.locale)), l.some((e) => e.support === "partial") && (m.partial = tr(l, "partial", i.locale)));
4309
- let h = sr(i.locale, o, m);
4309
+ l && (u && (m.unsupported = hr(l, "unsupported", i.locale)), l.some((e) => e.support === "partial") && (m.partial = hr(l, "partial", i.locale)));
4310
+ let h = Sr(i.locale, o, m);
4310
4311
  a.push({
4311
4312
  blockId: t,
4312
4313
  ruleId: o,
@@ -4319,39 +4320,195 @@ function ur(e, t, n) {
4319
4320
  }
4320
4321
  return a;
4321
4322
  }
4322
- function dr(e, t = {}) {
4323
+ function Er(e, t = {}) {
4323
4324
  if (t.disabled === !0 || t.compatibility === !1) return [];
4324
4325
  let n = [], r = /* @__PURE__ */ new WeakMap();
4325
- return x(e, (e) => {
4326
+ return T(e, (e) => {
4326
4327
  let i = r.get(e);
4327
- i || (i = Un(e), r.set(e, i)), n.push(...ur(i, e.id, t));
4328
+ i || (i = rr(e), r.set(e, i)), n.push(...Tr(i, e.id, t));
4328
4329
  }), n;
4329
4330
  }
4330
- function fr(e, t = {}) {
4331
+ function Dr(e, t = {}) {
4331
4332
  if (t.disabled === !0 || t.compatibility === !1) return [];
4332
- let n = me(t.locale, t.compatibility || {}, $), r = $.find((e) => e.meta.id === "compat.gmail-clipping"), i = n.severity(r.meta.id);
4333
+ let n = be(t.locale, t.compatibility || {}, J), r = J.find((e) => e.meta.id === "compat.gmail-clipping"), i = n.severity(r.meta.id);
4333
4334
  return i === "off" ? [] : r.compiledHtml(e, n).map((e) => ({
4334
4335
  blockId: null,
4335
4336
  ruleId: r.meta.id,
4336
4337
  severity: i,
4337
- ...sr(n.locale, r.meta.id, e.params),
4338
+ ...Sr(n.locale, r.meta.id, e.params),
4338
4339
  reference: r.meta.reference
4339
4340
  }));
4340
4341
  }
4342
+ // ../quality/src/localization/messages/de.ts
4343
+ var Or = /* @__PURE__ */ e({ default: () => kr }), kr = {
4344
+ "localization.untranslated": {
4345
+ message: "Das Feld {field} hat keine Übersetzung.",
4346
+ suggestion: "Übersetze {field} oder verwende die Standardsprache als Fallback."
4347
+ },
4348
+ "localization.stale": {
4349
+ message: "Die Übersetzung von {field} ist nicht mehr aktuell.",
4350
+ suggestion: "Vergleiche {field} mit der Standardsprache und aktualisiere oder behalte den Wert."
4351
+ },
4352
+ "localization.merge-tags-differ": {
4353
+ message: "Die Merge-Tags in {field} weichen von der Standardsprache ab.",
4354
+ suggestion: "Verwende in {field} dieselben Merge-Tags mit derselben Anzahl an Vorkommen."
4355
+ }
4356
+ }, Ar = /* @__PURE__ */ e({ default: () => Y }), Y = {
4357
+ "localization.untranslated": {
4358
+ message: "The field {field} has no translation.",
4359
+ suggestion: "Translate {field}, or keep the default language as a fallback."
4360
+ },
4361
+ "localization.stale": {
4362
+ message: "The translation of {field} is out of date.",
4363
+ suggestion: "Review {field} against the default language and update or keep it."
4364
+ },
4365
+ "localization.merge-tags-differ": {
4366
+ message: "The merge tags in {field} differ from the default language.",
4367
+ suggestion: "Keep the same merge tags and occurrence counts in {field}."
4368
+ }
4369
+ }, jr = /* #__PURE__ */ Object.assign({
4370
+ "./de.ts": Or,
4371
+ "./en.ts": Ar
4372
+ }), X = {};
4373
+ for (let e in jr) {
4374
+ let t = /\.\/([^/]+)\.ts$/.exec(e);
4375
+ if (!t) continue;
4376
+ let n = t[1];
4377
+ n !== "index" && (X[n] = jr[e].default);
4378
+ }
4379
+ function Mr(e) {
4380
+ return X[e.split("-")[0]?.toLowerCase() ?? "en"] ?? X.en ?? Y;
4381
+ }
4382
+ function Nr(e, t, n) {
4383
+ return k(Mr(e)[t] ?? Y[t], n);
4384
+ }
4385
+ // ../quality/src/localization/rules.ts
4386
+ function Z(e, n) {
4387
+ let r = /* @__PURE__ */ new Map();
4388
+ T(e, (e) => {
4389
+ for (let i of m(e, n.customBlocks)) r.set(`${e.id}/${i}`, {
4390
+ blockId: e.id,
4391
+ field: i,
4392
+ target: e,
4393
+ format: e.type === "html" || t[e.type]?.includes(i) ? "html" : "text"
4394
+ });
4395
+ });
4396
+ for (let t of o) r.set(`settings/${t}`, {
4397
+ blockId: null,
4398
+ field: t,
4399
+ target: e.settings,
4400
+ format: "text"
4401
+ });
4402
+ return r;
4403
+ }
4404
+ function Q({ blockId: e, field: t }) {
4405
+ return {
4406
+ blockId: e,
4407
+ params: { field: t }
4408
+ };
4409
+ }
4410
+ function $(e, t) {
4411
+ return f(e, t.contentLocale, t.customBlocks);
4412
+ }
4413
+ function Pr(e, t, n) {
4414
+ let r = [], i = "\0MT";
4415
+ for (; e.includes(i);) i += "_";
4416
+ let a = n === "html" ? ne(e, (e) => {
4417
+ let t = r.push(e) - 1;
4418
+ return `${i}${t}\u0000`;
4419
+ }) : e, o = Array.from(a.matchAll(RegExp(`${i}\\d+\u0000`, "g")), (e) => ({
4420
+ start: e.index,
4421
+ end: e.index + e[0].length
4422
+ })), s = [];
4423
+ for (let e of [t.logic, t.value]) {
4424
+ let t = new RegExp(e.source, e.flags.replace(/[gy]/g, "") + "g");
4425
+ for (let e of a.matchAll(t)) {
4426
+ let t = e.index, r = t + e[0].length;
4427
+ o.some((e) => t < e.end && r > e.start) || s.some((e) => t < e.end && r > e.start) || s.push({
4428
+ start: t,
4429
+ end: r,
4430
+ value: n === "html" ? ee(e[0]) : e[0]
4431
+ });
4432
+ }
4433
+ }
4434
+ return [...r, ...s.map((e) => e.value)].sort();
4435
+ }
4436
+ var Fr = [
4437
+ {
4438
+ meta: {
4439
+ id: "localization.untranslated",
4440
+ severity: "warning",
4441
+ reference: "https://docs.templatical.com/guide/localized-templates#missing-values"
4442
+ },
4443
+ template: (e, t) => {
4444
+ let n = Z(e, t);
4445
+ return $(e, t).missing.map((e) => Q(n.get(e)));
4446
+ }
4447
+ },
4448
+ {
4449
+ meta: {
4450
+ id: "localization.stale",
4451
+ severity: "warning",
4452
+ reference: "https://docs.templatical.com/guide/localized-templates#out-of-date-values"
4453
+ },
4454
+ template: (e, t) => {
4455
+ let n = Z(e, t);
4456
+ return $(e, t).stale.map((e) => Q(n.get(e)));
4457
+ }
4458
+ },
4459
+ {
4460
+ meta: {
4461
+ id: "localization.merge-tags-differ",
4462
+ severity: "warning",
4463
+ reference: "https://docs.templatical.com/guide/localized-templates#merge-tags"
4464
+ },
4465
+ template: (e, t) => {
4466
+ let n = Z(e, t), r = $(e, t), i = re(t.mergeTagSyntax);
4467
+ return [...r.translated, ...r.stale].flatMap((e) => {
4468
+ let r = n.get(e), { target: a, field: o, format: c } = r, l = s(a, o), u = a?.l10n?.[t.contentLocale]?.text?.[o]?.value;
4469
+ return typeof l != "string" || u === void 0 || JSON.stringify(Pr(l, i, c)) === JSON.stringify(Pr(u, i, c)) ? [] : [Q(r)];
4470
+ });
4471
+ }
4472
+ }
4473
+ ];
4474
+ // ../quality/src/localization/index.ts
4475
+ function Ir(e, t = {}) {
4476
+ if (t.disabled === !0 || t.localization === !1) return [];
4477
+ let n = t.contentLocale ?? l(e);
4478
+ return n === l(e) ? [] : (e.settings.locales?.includes(n) || p(e, n), E(e, Fr, {
4479
+ ...D({
4480
+ locale: t.locale,
4481
+ rules: Fr,
4482
+ overrides: t.localization?.rules,
4483
+ thresholds: void 0,
4484
+ nonProductionHosts: void 0
4485
+ }),
4486
+ contentLocale: n,
4487
+ customBlocks: t.customBlocks,
4488
+ mergeTagSyntax: t.mergeTagSyntax
4489
+ }, (e, t, n) => Nr(e, t, n)));
4490
+ }
4341
4491
  // ../quality/src/util.ts
4342
- function pr(e) {
4343
- return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 && e.deliverability === !1 && e.compatibility === !1 : !1;
4492
+ function Lr(e) {
4493
+ return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 && e.deliverability === !1 && e.compatibility === !1 && e.localization === !1 : !1;
4344
4494
  }
4345
4495
  // ../quality/src/lint-template.ts
4346
- function mr(e, t = {}) {
4347
- return pr(t) ? [] : [
4348
- ...yt(e, t),
4349
- ...Ut(e, t),
4350
- ...xn(e, t),
4351
- ...In(e, t),
4352
- ...dr(e, t)
4496
+ function Rr(e, t = {}) {
4497
+ if (Lr(t)) return [];
4498
+ let n = l(e), r = t.contentLocale ?? n, i = p(e, r), a = [
4499
+ ...Nt(i, t),
4500
+ ...rn(i, t),
4501
+ ...Fn(i, t),
4502
+ ...Xn(i, t),
4503
+ ...Er(i, t),
4504
+ ...Ir(e, t)
4353
4505
  ];
4506
+ return r === n ? a : a.map((e) => {
4507
+ if (!e.fix?.removesBlock) return e;
4508
+ let t = { ...e };
4509
+ return delete t.fix, t;
4510
+ });
4354
4511
  }
4355
- export { fr as lintCompiledHtml, mr as lintTemplate };
4512
+ export { Dr as lintCompiledHtml, Rr as lintTemplate };
4356
4513
 
4357
- //# sourceMappingURL=src-DEd87i_U.js.map
4514
+ //# sourceMappingURL=src-A_cKeTM_.js.map