@templatical/editor 0.55.0 → 0.56.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (299) hide show
  1. package/dist/{AiAltTextPopover-D5QosKvB.js → AiAltTextPopover-CpZ7UeAZ.js} +4 -4
  2. package/dist/{AiAltTextReview-D1W_lrI_.js → AiAltTextReview-LYxvn7Qe.js} +4 -4
  3. package/dist/{AiChatPanel-C8SeEJRP.js → AiChatPanel-Cy05P-iO.js} +56 -56
  4. package/dist/{AiPanels-CR6zphjP.js → AiPanels-CwKmXzyr.js} +1 -1
  5. package/dist/{AiRewriteMenu-BwztoMov.js → AiRewriteMenu-DgqJHnza.js} +13 -13
  6. package/dist/{BlockIssueBadge-DaPTq1RE.js → BlockIssueBadge-CxHJmuOh.js} +5 -5
  7. package/dist/BlockPreviewCanvas-DEmNZkEG.js +154 -0
  8. package/dist/{CloudHeaderExtras-XpjJjn3o.js → CloudHeaderExtras-Cqhw-jMz.js} +1 -1
  9. package/dist/{CloudPanels-Baoaj6Xf.js → CloudPanels-Bmlf05Il.js} +12 -12
  10. package/dist/{CollaborationNotices-Cnx0XHzZ.js → CollaborationNotices-C27GCMvK.js} +8 -8
  11. package/dist/{CollaboratorBar-BaBoNhwB.js → CollaboratorBar-CLQjksX-.js} +2 -2
  12. package/dist/{CommentsPanel-Ck3QmqiC.js → CommentsPanel-B5NqPMmY.js} +1 -1
  13. package/dist/{CommentsSidebar-CHknhOar.js → CommentsSidebar-BDrcrDxS.js} +42 -42
  14. package/dist/{CountdownBlock-BMezkFbJ.js → CountdownBlock-D8dqjm3F.js} +6 -6
  15. package/dist/{CountdownToolbar-CA_gDIdZ.js → CountdownToolbar-IjpCOjCd.js} +30 -30
  16. package/dist/{IssuesPanel-nmFhWG1p.js → IssuesPanel-uwuzeMSW.js} +89 -89
  17. package/dist/LanguageMenu-C-eQ0lFy.js +403 -0
  18. package/dist/{LocaleNotices-WzsYtBRs.js → LocaleNotices-CDK_9D7P.js} +10 -10
  19. package/dist/{LogicTagInsertButton-qZ82VMFx.js → LogicTagInsertButton-BSolF7Fd.js} +24 -24
  20. package/dist/{MediaEditModal-C3U9Mi31.js → MediaEditModal-C8yc9dxt.js} +7 -7
  21. package/dist/{MediaPanels-CGmk9ufe.js → MediaPanels-FI4I8asn.js} +1 -1
  22. package/dist/{MergeTagInput-JJeZbFkD.js → MergeTagInput-B1nl2ZMT.js} +12 -12
  23. package/dist/{MergeTagModeToggle-DDucd1eC.js → MergeTagModeToggle-DXvb80OE.js} +6 -6
  24. package/dist/{MergeTagTextarea-dQ2LRrNB.js → MergeTagTextarea-DJlf3VbS.js} +5 -5
  25. package/dist/{ParagraphEditor-VXYwGoz_.js → ParagraphEditor-Dqco128s.js} +173 -173
  26. package/dist/{RestoreVersionDialog-BibNvAaJ.js → RestoreVersionDialog-hqLCuGV5.js} +12 -12
  27. package/dist/{RichTextEditorContent-CU5EOlM_.js → RichTextEditorContent-xIEF0Y3Z.js} +8 -8
  28. package/dist/{SaveBlockDialog-S9aFi0cy.js → SaveBlockDialog-CQlCP_XC.js} +47 -47
  29. package/dist/{SavedBlocksBrowserModal-DIdn6B0J.js → SavedBlocksBrowserModal-BXA32Fx6.js} +24 -24
  30. package/dist/{SavedBlocksPanels-Cme2M6u8.js → SavedBlocksPanels-BKUzbamj.js} +1 -1
  31. package/dist/{SavedBlocksPickBar-BDmA7r3m.js → SavedBlocksPickBar-BlvF-4UF.js} +9 -9
  32. package/dist/{TemplateSettings-C_LHLm5M.js → TemplateSettings-CYFtR8zv.js} +41 -41
  33. package/dist/{TestEmailModal-CLIRn7eL.js → TestEmailModal-BbaL17HO.js} +20 -20
  34. package/dist/{TestEmailPanel-frdtjC8h.js → TestEmailPanel-DhB1CSpg.js} +1 -1
  35. package/dist/{TitleEditor-D5kC56Jl.js → TitleEditor-3BRl8u5l.js} +22 -22
  36. package/dist/{Toolbar-D904Yw_R.js → Toolbar-pzNIakGM.js} +1090 -856
  37. package/dist/{TplModal-BBdotDf1.js → TplModal-WNuWhHZm.js} +4 -4
  38. package/dist/{VersionHistoryMenu-BnP0EyLl.js → VersionHistoryMenu--T-Qp_mH.js} +17 -17
  39. package/dist/{VersionHistoryPanels-DhagEgOk.js → VersionHistoryPanels-BPubvYIE.js} +1 -1
  40. package/dist/{VersionPreviewBanner-BPP939cD.js → VersionPreviewBanner-ClL3Wkln.js} +7 -7
  41. package/dist/WrapperBlock-CjfCPceb.js +56 -0
  42. package/dist/{blockTypeIcons-CoRQV_hP.js → blockTypeIcons-12OMwVyN.js} +3 -3
  43. package/dist/bundle-stats.json +6 -6
  44. package/dist/{ca-DIkMxYCN.js → ca-BJn8lcJx.js} +8 -0
  45. package/dist/cdn/chunks/{AiAltTextPopover-CUGOPuRo.js → AiAltTextPopover-PFjTrl0y.js} +5 -5
  46. package/dist/cdn/chunks/{AiAltTextPopover-CUGOPuRo.js.map → AiAltTextPopover-PFjTrl0y.js.map} +1 -1
  47. package/dist/cdn/chunks/{AiAltTextReview-B9vm_L-8.js → AiAltTextReview-BMjzvApH.js} +5 -5
  48. package/dist/cdn/chunks/{AiAltTextReview-B9vm_L-8.js.map → AiAltTextReview-BMjzvApH.js.map} +1 -1
  49. package/dist/cdn/chunks/{AiChatPanel-By8Uo1nH.js → AiChatPanel-C2gpq4kP.js} +107 -107
  50. package/dist/cdn/chunks/{AiChatPanel-By8Uo1nH.js.map → AiChatPanel-C2gpq4kP.js.map} +1 -1
  51. package/dist/cdn/chunks/{AiPanels-BblCSkQy.js → AiPanels-Cx3PE2mE.js} +2 -2
  52. package/dist/cdn/chunks/{AiPanels-BblCSkQy.js.map → AiPanels-Cx3PE2mE.js.map} +1 -1
  53. package/dist/cdn/chunks/{AiRewriteMenu-BvV_7tNZ.js → AiRewriteMenu-CnkyjPEu.js} +13 -13
  54. package/dist/cdn/chunks/{AiRewriteMenu-BvV_7tNZ.js.map → AiRewriteMenu-CnkyjPEu.js.map} +1 -1
  55. package/dist/cdn/chunks/{BlockIssueBadge-D3Plo_wt.js → BlockIssueBadge-DncZ-HDf.js} +5 -5
  56. package/dist/cdn/chunks/{BlockIssueBadge-D3Plo_wt.js.map → BlockIssueBadge-DncZ-HDf.js.map} +1 -1
  57. package/dist/cdn/chunks/BlockPreviewCanvas-CCSEzL46.js +156 -0
  58. package/dist/cdn/chunks/BlockPreviewCanvas-CCSEzL46.js.map +1 -0
  59. package/dist/cdn/chunks/{CloudHeaderExtras-BtqdN777.js → CloudHeaderExtras-uUJYJFJ6.js} +2 -2
  60. package/dist/cdn/chunks/{CloudHeaderExtras-BtqdN777.js.map → CloudHeaderExtras-uUJYJFJ6.js.map} +1 -1
  61. package/dist/cdn/chunks/{CloudPanels-CQ0vNgsH.js → CloudPanels-CRztnw4M.js} +4 -4
  62. package/dist/cdn/chunks/{CloudPanels-CQ0vNgsH.js.map → CloudPanels-CRztnw4M.js.map} +1 -1
  63. package/dist/cdn/chunks/{CollaborationNotices-DraFUhyo.js → CollaborationNotices-IuLYT2x7.js} +9 -9
  64. package/dist/cdn/chunks/{CollaborationNotices-DraFUhyo.js.map → CollaborationNotices-IuLYT2x7.js.map} +1 -1
  65. package/dist/cdn/chunks/{CollaboratorBar-0OEH3hrj.js → CollaboratorBar-C1ZI2xwa.js} +3 -3
  66. package/dist/cdn/chunks/{CollaboratorBar-0OEH3hrj.js.map → CollaboratorBar-C1ZI2xwa.js.map} +1 -1
  67. package/dist/cdn/chunks/{CommentsPanel-tZZswofV.js → CommentsPanel-lgjJNrrY.js} +2 -2
  68. package/dist/cdn/chunks/{CommentsPanel-tZZswofV.js.map → CommentsPanel-lgjJNrrY.js.map} +1 -1
  69. package/dist/cdn/chunks/{CommentsSidebar-7Hfl3Hdj.js → CommentsSidebar-DTold7iy.js} +214 -214
  70. package/dist/cdn/chunks/{CommentsSidebar-7Hfl3Hdj.js.map → CommentsSidebar-DTold7iy.js.map} +1 -1
  71. package/dist/cdn/chunks/{CountdownBlock-CjMhMhnv.js → CountdownBlock-8aPSExrv.js} +7 -7
  72. package/dist/cdn/chunks/{CountdownBlock-CjMhMhnv.js.map → CountdownBlock-8aPSExrv.js.map} +1 -1
  73. package/dist/cdn/chunks/{CountdownToolbar-BxW-J7DX.js → CountdownToolbar-CnWQEW5g.js} +50 -50
  74. package/dist/cdn/chunks/{CountdownToolbar-BxW-J7DX.js.map → CountdownToolbar-CnWQEW5g.js.map} +1 -1
  75. package/dist/cdn/chunks/{IssuesPanel-BoHeIjvw.js → IssuesPanel-CrplCzo8.js} +13 -13
  76. package/dist/cdn/chunks/{IssuesPanel-BoHeIjvw.js.map → IssuesPanel-CrplCzo8.js.map} +1 -1
  77. package/dist/cdn/chunks/{LanguageMenu-BnYN5N1h.js → LanguageMenu-B6MNInCL.js} +57 -57
  78. package/dist/cdn/chunks/{LanguageMenu-BnYN5N1h.js.map → LanguageMenu-B6MNInCL.js.map} +1 -1
  79. package/dist/cdn/chunks/{LocaleNotices-8J2DRWeg.js → LocaleNotices-TxeAl8Iq.js} +10 -10
  80. package/dist/cdn/chunks/{LocaleNotices-8J2DRWeg.js.map → LocaleNotices-TxeAl8Iq.js.map} +1 -1
  81. package/dist/cdn/chunks/{LogicTagInsertButton-Bt2PXbQ0.js → LogicTagInsertButton-DvSVx2DB.js} +30 -30
  82. package/dist/cdn/chunks/LogicTagInsertButton-DvSVx2DB.js.map +1 -0
  83. package/dist/cdn/chunks/{MediaEditModal-Dz972UFx.js → MediaEditModal-tGK6htBl.js} +8 -8
  84. package/dist/cdn/chunks/{MediaEditModal-Dz972UFx.js.map → MediaEditModal-tGK6htBl.js.map} +1 -1
  85. package/dist/cdn/chunks/{MediaPanels-C6Hqtp1H.js → MediaPanels-BVrQYz2C.js} +2 -2
  86. package/dist/cdn/chunks/{MediaPanels-C6Hqtp1H.js.map → MediaPanels-BVrQYz2C.js.map} +1 -1
  87. package/dist/cdn/chunks/{MergeTagInput-BELdMRni.js → MergeTagInput-DeuNH3re.js} +13 -13
  88. package/dist/cdn/chunks/{MergeTagInput-BELdMRni.js.map → MergeTagInput-DeuNH3re.js.map} +1 -1
  89. package/dist/cdn/chunks/{MergeTagModeToggle-DKfMDIEF.js → MergeTagModeToggle-D7maMGIM.js} +5 -5
  90. package/dist/cdn/chunks/{MergeTagModeToggle-DKfMDIEF.js.map → MergeTagModeToggle-D7maMGIM.js.map} +1 -1
  91. package/dist/cdn/chunks/{MergeTagTextarea-w6xen3Xh.js → MergeTagTextarea-B2xxIU3e.js} +6 -6
  92. package/dist/cdn/chunks/{MergeTagTextarea-w6xen3Xh.js.map → MergeTagTextarea-B2xxIU3e.js.map} +1 -1
  93. package/dist/cdn/chunks/{ParagraphEditor-Cal9hY3U.js → ParagraphEditor-Bx_Hlw8d.js} +106 -106
  94. package/dist/cdn/chunks/{ParagraphEditor-Cal9hY3U.js.map → ParagraphEditor-Bx_Hlw8d.js.map} +1 -1
  95. package/dist/cdn/chunks/{RestoreVersionDialog-f_ulmASY.js → RestoreVersionDialog-CPrrWTsT.js} +12 -12
  96. package/dist/cdn/chunks/{RestoreVersionDialog-f_ulmASY.js.map → RestoreVersionDialog-CPrrWTsT.js.map} +1 -1
  97. package/dist/cdn/chunks/{RichTextEditorContent-C_v0kS4A.js → RichTextEditorContent-Dze4C9VI.js} +8 -8
  98. package/dist/cdn/chunks/{RichTextEditorContent-C_v0kS4A.js.map → RichTextEditorContent-Dze4C9VI.js.map} +1 -1
  99. package/dist/cdn/chunks/{SaveBlockDialog-C6N9RFls.js → SaveBlockDialog-CXVwnfsy.js} +51 -51
  100. package/dist/cdn/chunks/{SaveBlockDialog-C6N9RFls.js.map → SaveBlockDialog-CXVwnfsy.js.map} +1 -1
  101. package/dist/cdn/chunks/{SavedBlocksBrowserModal-Bl2sl09D.js → SavedBlocksBrowserModal-BDTmenOE.js} +23 -23
  102. package/dist/cdn/chunks/{SavedBlocksBrowserModal-Bl2sl09D.js.map → SavedBlocksBrowserModal-BDTmenOE.js.map} +1 -1
  103. package/dist/cdn/chunks/{SavedBlocksPanels-DqVcmEUK.js → SavedBlocksPanels-B41Rk_v1.js} +2 -2
  104. package/dist/cdn/chunks/{SavedBlocksPanels-DqVcmEUK.js.map → SavedBlocksPanels-B41Rk_v1.js.map} +1 -1
  105. package/dist/cdn/chunks/{SavedBlocksPickBar-DE-J1JVL.js → SavedBlocksPickBar-B97z_rFH.js} +11 -11
  106. package/dist/cdn/chunks/{SavedBlocksPickBar-DE-J1JVL.js.map → SavedBlocksPickBar-B97z_rFH.js.map} +1 -1
  107. package/dist/cdn/chunks/{TemplateSettings-CpoKZ8oV.js → TemplateSettings-YwwRbxPc.js} +102 -102
  108. package/dist/cdn/chunks/{TemplateSettings-CpoKZ8oV.js.map → TemplateSettings-YwwRbxPc.js.map} +1 -1
  109. package/dist/cdn/chunks/{TestEmailModal-DI3z__Bd.js → TestEmailModal-BiFP2Cbx.js} +20 -20
  110. package/dist/cdn/chunks/{TestEmailModal-DI3z__Bd.js.map → TestEmailModal-BiFP2Cbx.js.map} +1 -1
  111. package/dist/cdn/chunks/{TestEmailPanel-Cp5d2YGn.js → TestEmailPanel-BrivPMk2.js} +2 -2
  112. package/dist/cdn/chunks/{TestEmailPanel-Cp5d2YGn.js.map → TestEmailPanel-BrivPMk2.js.map} +1 -1
  113. package/dist/cdn/chunks/{TitleEditor-C2syRLdZ.js → TitleEditor-CzPkkL2s.js} +19 -19
  114. package/dist/cdn/chunks/{TitleEditor-C2syRLdZ.js.map → TitleEditor-CzPkkL2s.js.map} +1 -1
  115. package/dist/cdn/chunks/{Toolbar-NEE8qxYh.js → Toolbar-VH07SzX7.js} +1153 -919
  116. package/dist/cdn/chunks/Toolbar-VH07SzX7.js.map +1 -0
  117. package/dist/cdn/chunks/{TplModal-B1MgvtX8.js → TplModal-DMe6J811.js} +6 -6
  118. package/dist/cdn/chunks/{TplModal-B1MgvtX8.js.map → TplModal-DMe6J811.js.map} +1 -1
  119. package/dist/cdn/chunks/{VersionHistoryMenu-CZury5gU.js → VersionHistoryMenu-DkwbKhBl.js} +16 -16
  120. package/dist/cdn/chunks/{VersionHistoryMenu-CZury5gU.js.map → VersionHistoryMenu-DkwbKhBl.js.map} +1 -1
  121. package/dist/cdn/chunks/{VersionHistoryPanels-Cefd8i_e.js → VersionHistoryPanels-CgxhMRAl.js} +2 -2
  122. package/dist/cdn/chunks/{VersionHistoryPanels-Cefd8i_e.js.map → VersionHistoryPanels-CgxhMRAl.js.map} +1 -1
  123. package/dist/cdn/chunks/{VersionPreviewBanner-C4Ji8nu4.js → VersionPreviewBanner-WVBDBrwQ.js} +8 -8
  124. package/dist/cdn/chunks/{VersionPreviewBanner-C4Ji8nu4.js.map → VersionPreviewBanner-WVBDBrwQ.js.map} +1 -1
  125. package/dist/cdn/chunks/WrapperBlock-CCCIcqe2.js +58 -0
  126. package/dist/cdn/chunks/WrapperBlock-CCCIcqe2.js.map +1 -0
  127. package/dist/cdn/chunks/{blockTypeIcons-Cc6RJ27V.js → blockTypeIcons-CzYA5DF9.js} +2 -2
  128. package/dist/cdn/chunks/{blockTypeIcons-Cc6RJ27V.js.map → blockTypeIcons-CzYA5DF9.js.map} +1 -1
  129. package/dist/cdn/chunks/{ca-DIkMxYCN.js → ca-BJn8lcJx.js} +9 -1
  130. package/dist/cdn/chunks/ca-BJn8lcJx.js.map +1 -0
  131. package/dist/cdn/chunks/composables-D3lsO7Io.js +3101 -0
  132. package/dist/cdn/chunks/composables-D3lsO7Io.js.map +1 -0
  133. package/dist/cdn/chunks/{createCloudRuntime-DJkDGKQ_.js → createCloudRuntime-CE79GB1H.js} +16 -16
  134. package/dist/cdn/chunks/{createCloudRuntime-DJkDGKQ_.js.map → createCloudRuntime-CE79GB1H.js.map} +1 -1
  135. package/dist/{de-Cc6Ue0UD.js → cdn/chunks/de-BLFp3nWx.js} +10 -0
  136. package/dist/cdn/chunks/de-BLFp3nWx.js.map +1 -0
  137. package/dist/cdn/chunks/dist-Cf1pSluo.js +405 -0
  138. package/dist/cdn/chunks/{dist-DqGgijFI.js.map → dist-Cf1pSluo.js.map} +1 -1
  139. package/dist/cdn/chunks/{editor-modal-erQEOHZN.js → editor-modal-CN69NlOK.js} +187 -187
  140. package/dist/cdn/chunks/{editor-modal-erQEOHZN.js.map → editor-modal-CN69NlOK.js.map} +1 -1
  141. package/dist/cdn/chunks/en-Bcz4gS9U.js +1 -0
  142. package/dist/cdn/chunks/{en-BX4FujAQ.js → en-DGGQJGbm.js} +9 -1
  143. package/dist/cdn/chunks/en-DGGQJGbm.js.map +1 -0
  144. package/dist/cdn/chunks/{es-Do5b-MKU.js → es-DTY9qgLv.js} +9 -1
  145. package/dist/cdn/chunks/es-DTY9qgLv.js.map +1 -0
  146. package/dist/cdn/chunks/{extensions-BcwkOjVq.js → extensions-8dlM-fU4.js} +112 -112
  147. package/dist/cdn/chunks/extensions-8dlM-fU4.js.map +1 -0
  148. package/dist/{fr-S1n2Ebzp.js → cdn/chunks/fr-L4FqO9Gp.js} +10 -0
  149. package/dist/cdn/chunks/{fr-S1n2Ebzp.js.map → fr-L4FqO9Gp.js.map} +1 -1
  150. package/dist/cdn/chunks/{icons-Da9GKjPx.js → icons-DHExFLlT.js} +43 -43
  151. package/dist/cdn/chunks/{icons-Da9GKjPx.js.map → icons-DHExFLlT.js.map} +1 -1
  152. package/dist/cdn/chunks/{ja-DLwcq4bA.js → ja-6uOXkh4v.js} +9 -1
  153. package/dist/cdn/chunks/ja-6uOXkh4v.js.map +1 -0
  154. package/dist/cdn/chunks/{keys-CoQtCqNv.js → keys-BUmIvYy3.js} +4 -4
  155. package/dist/cdn/chunks/keys-BUmIvYy3.js.map +1 -0
  156. package/dist/{nl-0JSWaZpT.js → cdn/chunks/nl-DCxuxwNq.js} +10 -0
  157. package/dist/cdn/chunks/nl-DCxuxwNq.js.map +1 -0
  158. package/dist/cdn/chunks/{normalizeMergeTagMarkup-BrGw5jxk.js → normalizeMergeTagMarkup-aWjkotui.js} +67 -67
  159. package/dist/cdn/chunks/normalizeMergeTagMarkup-aWjkotui.js.map +1 -0
  160. package/dist/cdn/chunks/{preRenderCustomBlocks-Cj0XYwuh.js → preRenderCustomBlocks-Dn6dFUwx.js} +4 -4
  161. package/dist/cdn/chunks/{preRenderCustomBlocks-Cj0XYwuh.js.map → preRenderCustomBlocks-Dn6dFUwx.js.map} +1 -1
  162. package/dist/{pt-BR-D3VlIMDZ.js → cdn/chunks/pt-BR-CBkcrebr.js} +10 -0
  163. package/dist/cdn/chunks/pt-BR-CBkcrebr.js.map +1 -0
  164. package/dist/cdn/chunks/{sanitizeHtml-GxJCxKcP.js → sanitizeHtml-B3njfkSy.js} +11 -11
  165. package/dist/cdn/chunks/{sanitizeHtml-GxJCxKcP.js.map → sanitizeHtml-B3njfkSy.js.map} +1 -1
  166. package/dist/cdn/chunks/{socialIcons-B5zrrV8-.js → socialIcons-BFgc3qqJ.js} +354 -341
  167. package/dist/cdn/chunks/{socialIcons-B5zrrV8-.js.map → socialIcons-BFgc3qqJ.js.map} +1 -1
  168. package/dist/cdn/chunks/{src-Diw9SLIe.js → src-C9JWWxAk.js} +419 -423
  169. package/dist/cdn/chunks/src-C9JWWxAk.js.map +1 -0
  170. package/dist/cdn/chunks/src-GgKlXNxy.js +710 -0
  171. package/dist/cdn/chunks/src-GgKlXNxy.js.map +1 -0
  172. package/dist/cdn/chunks/{src-v47QHNmB.js → src-mXG-Of9A.js} +669 -662
  173. package/dist/cdn/chunks/src-mXG-Of9A.js.map +1 -0
  174. package/dist/cdn/chunks/{tiptap-Dipw_zOQ.js → tiptap-C940SvId.js} +3 -3
  175. package/dist/cdn/chunks/{tiptap-Dipw_zOQ.js.map → tiptap-C940SvId.js.map} +1 -1
  176. package/dist/cdn/chunks/{useCloudI18n-Cc5NZqiI.js → useCloudI18n-Xsih9yRH.js} +2 -2
  177. package/dist/cdn/chunks/{useCloudI18n-Cc5NZqiI.js.map → useCloudI18n-Xsih9yRH.js.map} +1 -1
  178. package/dist/cdn/chunks/{useEditorRoot-D_LuZ_hE.js → useEditorRoot-Beau2Z_T.js} +2 -2
  179. package/dist/cdn/chunks/{useEditorRoot-D_LuZ_hE.js.map → useEditorRoot-Beau2Z_T.js.map} +1 -1
  180. package/dist/cdn/chunks/{useI18n-BnJYydPv.js → useI18n-D8s7HtTn.js} +2 -2
  181. package/dist/cdn/chunks/{useI18n-BnJYydPv.js.map → useI18n-D8s7HtTn.js.map} +1 -1
  182. package/dist/cdn/chunks/{useLocalizedDisplay-DekV8qar.js → useLocalizedDisplay-Bgg4qpev.js} +6 -6
  183. package/dist/cdn/chunks/{useLocalizedDisplay-DekV8qar.js.map → useLocalizedDisplay-Bgg4qpev.js.map} +1 -1
  184. package/dist/cdn/chunks/{useLogicTag-Cbp3I7UN.js → useLogicTag-B0PDeDxl.js} +5 -5
  185. package/dist/cdn/chunks/{useLogicTag-Cbp3I7UN.js.map → useLogicTag-B0PDeDxl.js.map} +1 -1
  186. package/dist/cdn/chunks/{useMergeTag-1lrpNyR5.js → useMergeTag-BSU75bKk.js} +8 -8
  187. package/dist/cdn/chunks/{useMergeTag-1lrpNyR5.js.map → useMergeTag-BSU75bKk.js.map} +1 -1
  188. package/dist/cdn/chunks/{usePopoverPosition-BWAXWeBv.js → usePopoverPosition-esO6wjvU.js} +5 -5
  189. package/dist/cdn/chunks/{usePopoverPosition-BWAXWeBv.js.map → usePopoverPosition-esO6wjvU.js.map} +1 -1
  190. package/dist/cdn/chunks/{useScrollToBlock-Ct1AwLD-.js → useScrollToBlock-CJuUu7Xj.js} +2 -2
  191. package/dist/cdn/chunks/{useScrollToBlock-Ct1AwLD-.js.map → useScrollToBlock-CJuUu7Xj.js.map} +1 -1
  192. package/dist/cdn/chunks/{withCurrentFont-DZfmiv8V.js → withCurrentFont-QqBilClC.js} +2 -2
  193. package/dist/cdn/chunks/{withCurrentFont-DZfmiv8V.js.map → withCurrentFont-QqBilClC.js.map} +1 -1
  194. package/dist/cdn/editor.css +1 -1
  195. package/dist/cdn/editor.js +814 -817
  196. package/dist/cdn/editor.js.map +1 -1
  197. package/dist/{check-XMnOOIEC.js → check-CcuCoJDh.js} +1 -1
  198. package/dist/{chevron-down-DmamTEWQ.js → chevron-down-BfYIbFbC.js} +1 -1
  199. package/dist/{chevron-right-BEFXOH27.js → chevron-right-DyjFqY35.js} +1 -1
  200. package/dist/{chevron-up-Dw7woXj8.js → chevron-up-BHEIxuS-.js} +1 -1
  201. package/dist/{circle-alert-BTKC9vkq.js → circle-alert-Tq7kAh9S.js} +1 -1
  202. package/dist/{clock-BVT5u2uG.js → clock-Df0ZiXwQ.js} +1 -1
  203. package/dist/{composables-DPgNn9GZ.js → composables-DreAt_0A.js} +1660 -1620
  204. package/dist/{createCloudRuntime-Bw8TLmQ8.js → createCloudRuntime-CL4tUlDC.js} +15 -15
  205. package/dist/{createLucideIcon-CgDE3xAR.js → createLucideIcon-CfBdtoUw.js} +5 -5
  206. package/dist/{cdn/chunks/de-Cc6Ue0UD.js → de-BLFp3nWx.js} +8 -2
  207. package/dist/{dist-ChOb5XHW.js → dist-0GWMyHtM.js} +1 -1
  208. package/dist/{dist-CBdk1Vcb.js → dist-BMUUt3zJ.js} +284 -277
  209. package/dist/{dist-6DU0me3E.js → dist-B_0FPmoy.js} +1 -1
  210. package/dist/{dist-B8dY8drK.js → dist-BjzK1g4Z.js} +1 -1
  211. package/dist/{dist-54VCNoC0.js → dist-BsumKKh9.js} +1 -1
  212. package/dist/{dist-BWflWcpW.js → dist-C3avsUq9.js} +2 -2
  213. package/dist/{dist-fqSers8_.js → dist-CCLRTtJP.js} +197 -197
  214. package/dist/dist-CiYotUR8.js +406 -0
  215. package/dist/{dist-C3hu_C3w.js → dist-Cr1CLCmx.js} +1 -1
  216. package/dist/{dist-D_XrUEET.js → dist-CsknfjrZ.js} +3 -3
  217. package/dist/{dist-TAv500j6.js → dist-DDytHU_6.js} +1 -1
  218. package/dist/{dist-CcOn7WCo.js → dist-DKV9m4Uu.js} +1 -1
  219. package/dist/{dist-B9a7iVye.js → dist-Dq9VnANT.js} +1 -1
  220. package/dist/{dist-DZ3X-uB8.js → dist-ZrT0vAB6.js} +1 -1
  221. package/dist/{editor-modal-BeX6otLk.js → editor-modal-BD32TXws.js} +107 -107
  222. package/dist/{en-BX4FujAQ.js → en-DGGQJGbm.js} +8 -0
  223. package/dist/en-Dgs_-NBw.js +1 -0
  224. package/dist/{es-Do5b-MKU.js → es-DTY9qgLv.js} +8 -0
  225. package/dist/{extensions-QFAARrjF.js → extensions-DKxHlSd7.js} +385 -385
  226. package/dist/{eye-ByMgHeA_.js → eye-B3psrAqd.js} +1 -1
  227. package/dist/{cdn/chunks/fr-S1n2Ebzp.js → fr-L4FqO9Gp.js} +8 -2
  228. package/dist/{image-Ch8tR35K.js → image-C3yuPDxx.js} +1 -1
  229. package/dist/index.d.ts +60 -12
  230. package/dist/{info-DzSD-Wpk.js → info-DKja7A68.js} +1 -1
  231. package/dist/{ja-DLwcq4bA.js → ja-6uOXkh4v.js} +8 -0
  232. package/dist/{keys-BCqskl51.js → keys-w_VRjoMu.js} +3 -3
  233. package/dist/{link-oDn9AR2w.js → link-DhzPI4Hn.js} +1 -1
  234. package/dist/{list-C5t07dp8.js → list-DVGn7Ik2.js} +1 -1
  235. package/dist/{loader-circle-k6xvKgUB.js → loader-circle-DqKWsMHO.js} +1 -1
  236. package/dist/{message-circle-C23R6OJR.js → message-circle-C4TonoBs.js} +1 -1
  237. package/dist/{cdn/chunks/nl-0JSWaZpT.js → nl-DCxuxwNq.js} +8 -2
  238. package/dist/{normalizeMergeTagMarkup-BS0nRvhq.js → normalizeMergeTagMarkup-Da9JAgx7.js} +75 -75
  239. package/dist/{package-C90eQ7NU.js → package-9OkiEO4S.js} +1 -1
  240. package/dist/{pencil-BK7GrQuA.js → pencil-M9vkOB7C.js} +1 -1
  241. package/dist/{plus-Cr0Mis63.js → plus-DxZiv9YC.js} +1 -1
  242. package/dist/{preRenderCustomBlocks-CiKvKd8V.js → preRenderCustomBlocks-CdqSp2P7.js} +4 -4
  243. package/dist/{cdn/chunks/pt-BR-D3VlIMDZ.js → pt-BR-CBkcrebr.js} +8 -2
  244. package/dist/{refresh-cw-_ZLOIEvA.js → refresh-cw-UY8_sdFG.js} +1 -1
  245. package/dist/{rotate-ccw-CB5wsHwv.js → rotate-ccw-BFTGCpHn.js} +1 -1
  246. package/dist/{sanitizeHtml-USjTyALR.js → sanitizeHtml-wBibnBF4.js} +6 -6
  247. package/dist/{search-BmrQNox8.js → search-RuGJnMEn.js} +1 -1
  248. package/dist/{send-blAsIBBg.js → send-DGB1ar02.js} +1 -1
  249. package/dist/{smartphone-BPpWYrwV.js → smartphone-CVA29CU_.js} +1 -1
  250. package/dist/{socialIcons-NvIg5ahU.js → socialIcons-oo4uL16Y.js} +427 -414
  251. package/dist/{sparkles-OqIxrNp-.js → sparkles-IHfEwEcd.js} +1 -1
  252. package/dist/{square-BP-V7iT-.js → square-_Cl44UU6.js} +1 -1
  253. package/dist/style.css +1 -1
  254. package/dist/templatical-editor.js +922 -925
  255. package/dist/{text-align-start-4mwX2o-F.js → text-align-start-Dqk2Xt_Q.js} +13 -13
  256. package/dist/{trash-B99WixTA.js → trash-Cr7rD5Hh.js} +1 -1
  257. package/dist/{triangle-alert-CHMiDkHa.js → triangle-alert-CKcpwtUj.js} +1 -1
  258. package/dist/{upload-Cp8o-hrN.js → upload-DR9pqVON.js} +1 -1
  259. package/dist/{useCloudI18n-Dh2iydo1.js → useCloudI18n-BczJoFf4.js} +1 -1
  260. package/dist/{useEditorRoot-DY3mgcHm.js → useEditorRoot-BcXKhM_8.js} +1 -1
  261. package/dist/{useI18n-CgtvtF4C.js → useI18n-zeWYtWSv.js} +1 -1
  262. package/dist/useLocalizedDisplay-Cbhx208c.js +31 -0
  263. package/dist/{useLogicTag-D8zgkXfb.js → useLogicTag-B4Zpk3eo.js} +4 -4
  264. package/dist/{useMergeTag-k7Kr0nMd.js → useMergeTag-B5qlq8px.js} +8 -8
  265. package/dist/{usePopoverPosition-VDQjyX_A.js → usePopoverPosition-Br3zt_MQ.js} +4 -4
  266. package/dist/{useScrollToBlock-B35ObCGK.js → useScrollToBlock-BfOzc1Z6.js} +2 -2
  267. package/dist/{withCurrentFont-Bzeg_gfH.js → withCurrentFont-m_PHcOD0.js} +1 -1
  268. package/dist/{x-BIBStNMS.js → x-DZSFHafL.js} +1 -1
  269. package/package.json +10 -10
  270. package/dist/BlockPreviewCanvas-C23A6FRm.js +0 -140
  271. package/dist/LanguageMenu-DcABUYop.js +0 -403
  272. package/dist/WrapperBlock-BAT3T0Cz.js +0 -44
  273. package/dist/cdn/chunks/BlockPreviewCanvas-Dr-xGq6v.js +0 -142
  274. package/dist/cdn/chunks/BlockPreviewCanvas-Dr-xGq6v.js.map +0 -1
  275. package/dist/cdn/chunks/LogicTagInsertButton-Bt2PXbQ0.js.map +0 -1
  276. package/dist/cdn/chunks/Toolbar-NEE8qxYh.js.map +0 -1
  277. package/dist/cdn/chunks/WrapperBlock-DFY-7YSs.js +0 -46
  278. package/dist/cdn/chunks/WrapperBlock-DFY-7YSs.js.map +0 -1
  279. package/dist/cdn/chunks/ca-DIkMxYCN.js.map +0 -1
  280. package/dist/cdn/chunks/composables-nyxwrM27.js +0 -3061
  281. package/dist/cdn/chunks/composables-nyxwrM27.js.map +0 -1
  282. package/dist/cdn/chunks/de-Cc6Ue0UD.js.map +0 -1
  283. package/dist/cdn/chunks/dist-DqGgijFI.js +0 -405
  284. package/dist/cdn/chunks/en-B6tLGRHq.js +0 -1
  285. package/dist/cdn/chunks/en-BX4FujAQ.js.map +0 -1
  286. package/dist/cdn/chunks/es-Do5b-MKU.js.map +0 -1
  287. package/dist/cdn/chunks/extensions-BcwkOjVq.js.map +0 -1
  288. package/dist/cdn/chunks/ja-DLwcq4bA.js.map +0 -1
  289. package/dist/cdn/chunks/keys-CoQtCqNv.js.map +0 -1
  290. package/dist/cdn/chunks/nl-0JSWaZpT.js.map +0 -1
  291. package/dist/cdn/chunks/normalizeMergeTagMarkup-BrGw5jxk.js.map +0 -1
  292. package/dist/cdn/chunks/pt-BR-D3VlIMDZ.js.map +0 -1
  293. package/dist/cdn/chunks/src-Diw9SLIe.js.map +0 -1
  294. package/dist/cdn/chunks/src-UR3AQocX.js +0 -683
  295. package/dist/cdn/chunks/src-UR3AQocX.js.map +0 -1
  296. package/dist/cdn/chunks/src-v47QHNmB.js.map +0 -1
  297. package/dist/dist-0alKVRc_.js +0 -406
  298. package/dist/en-Do0SU6tR.js +0 -1
  299. package/dist/useLocalizedDisplay-LdjosX4w.js +0 -31
@@ -1,6 +1,6 @@
1
1
  import { n as e } from "./rolldown-runtime-QGRDbDUS.js";
2
- import { $t as t, At as n, Bt as r, Ct as i, Dt as a, Gt as o, Ot as s, R as c, Rt as l, St as u, Tt as d, Xt as f, Zt as ee, _n as p, bt as m, d as te, et as ne, gt as re, ht as h, kt as ie, ln as ae, mn as g, nt as oe, ot as se, s as ce, st as _, xt as v, yt as le } from "./src-v47QHNmB.js";
3
- import { t as y } from "./htmlparser-hu3YnNQU.js";
2
+ import { At as t, Ct as n, Et as r, Kt as i, Ot as a, Qt as o, R as s, Rt as c, St as l, Vt as u, Zt as d, _t as f, bt as p, ct as m, d as h, en as ee, gt as g, hn as te, jt as ne, kt as _, rt as re, s as ie, st as ae, tt as oe, un as se, vn as ce, wt as v, xt as y, zt as le } from "./src-mXG-Of9A.js";
3
+ import { t as b } from "./htmlparser-hu3YnNQU.js";
4
4
  // ../quality/src/types.ts
5
5
  var ue = { minTextLength: 200 }, de = { maxHtmlBytes: 92160 }, fe = {
6
6
  altMaxLength: 125,
@@ -35,13 +35,13 @@ var ue = { minTextLength: 200 }, de = { maxHtmlBytes: 92160 }, fe = {
35
35
  ];
36
36
  // ../quality/src/contrast.ts
37
37
  function he(e, t) {
38
- let n = b(e), r = b(t);
38
+ let n = x(e), r = x(t);
39
39
  if (!n || !r) return NaN;
40
40
  let i = ye(n), a = ye(r), o = Math.max(i, a), s = Math.min(i, a);
41
41
  return (o + .05) / (s + .05);
42
42
  }
43
43
  var ge = /^#?([0-9a-f])([0-9a-f])([0-9a-f])$/i, _e = /^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i, ve = /^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i;
44
- function b(e) {
44
+ function x(e) {
45
45
  if (typeof e != "string") return null;
46
46
  let t = e.trim(), n = ve.exec(t);
47
47
  if (n) return n[4].toLowerCase() === "ff" ? {
@@ -62,54 +62,54 @@ function b(e) {
62
62
  b: parseInt(i[3] + i[3], 16)
63
63
  } : null;
64
64
  }
65
- function x(e) {
66
- return b(e ?? "") !== null;
65
+ function S(e) {
66
+ return x(e ?? "") !== null;
67
67
  }
68
68
  function ye({ r: e, g: t, b: n }) {
69
- let r = S(e / 255), i = S(t / 255), a = S(n / 255);
69
+ let r = C(e / 255), i = C(t / 255), a = C(n / 255);
70
70
  return .2126 * r + .7152 * i + .0722 * a;
71
71
  }
72
- function S(e) {
72
+ function C(e) {
73
73
  return e <= .03928 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4;
74
74
  }
75
75
  // ../quality/src/walk.ts
76
76
  var be = "#ffffff", xe = "#1a1a1a";
77
- function C(e, t) {
78
- let r = x(e.settings.backgroundColor) ? e.settings.backgroundColor.toLowerCase() : be, a = x(e.settings.textColor) ? e.settings.textColor.toLowerCase() : xe, o = (e, r) => {
79
- let a = e.styles?.backgroundColor, s = x(a) ? a.toLowerCase() : r.resolvedBackgroundColor;
80
- if (t(e, s === r.resolvedBackgroundColor ? r : {
81
- ...r,
82
- resolvedBackgroundColor: s
83
- }), n(e)) for (let t of e.children) o(t, {
77
+ function w(e, t) {
78
+ let n = S(e.settings.backgroundColor) ? e.settings.backgroundColor.toLowerCase() : be, r = S(e.settings.textColor) ? e.settings.textColor.toLowerCase() : xe, i = (e, n) => {
79
+ let r = e.styles?.backgroundColor, a = S(r) ? r.toLowerCase() : n.resolvedBackgroundColor;
80
+ if (t(e, a === n.resolvedBackgroundColor ? n : {
81
+ ...n,
82
+ resolvedBackgroundColor: a
83
+ }), ne(e)) for (let t of e.children) i(t, {
84
84
  parent: e,
85
- section: r.section,
85
+ section: n.section,
86
86
  columnIndex: null,
87
- depth: r.depth + 1,
88
- resolvedBackgroundColor: s,
89
- resolvedTextColor: r.resolvedTextColor
87
+ depth: n.depth + 1,
88
+ resolvedBackgroundColor: a,
89
+ resolvedTextColor: n.resolvedTextColor
90
90
  });
91
- else i(e) && e.children.forEach((t, n) => {
92
- t.forEach((t) => o(t, {
91
+ else v(e) && e.children.forEach((t, r) => {
92
+ t.forEach((t) => i(t, {
93
93
  parent: e,
94
94
  section: e,
95
- columnIndex: n,
96
- depth: r.depth + 1,
97
- resolvedBackgroundColor: s,
98
- resolvedTextColor: r.resolvedTextColor
95
+ columnIndex: r,
96
+ depth: n.depth + 1,
97
+ resolvedBackgroundColor: a,
98
+ resolvedTextColor: n.resolvedTextColor
99
99
  }));
100
100
  });
101
101
  };
102
- for (let t of e.blocks) o(t, {
102
+ for (let t of e.blocks) i(t, {
103
103
  parent: null,
104
104
  section: null,
105
105
  columnIndex: null,
106
106
  depth: 0,
107
- resolvedBackgroundColor: r,
108
- resolvedTextColor: a
107
+ resolvedBackgroundColor: n,
108
+ resolvedTextColor: r
109
109
  });
110
110
  }
111
111
  // ../quality/src/run-rules.ts
112
- function w(e, t, n, r) {
112
+ function T(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 w(e, t, n, r) {
124
124
  fix: a.fix
125
125
  };
126
126
  }
127
- C(e, (e, r) => {
127
+ w(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,7 +140,7 @@ function w(e, t, n, r) {
140
140
  }
141
141
  return i;
142
142
  }
143
- function T(e) {
143
+ function E(e) {
144
144
  let t = e.overrides ?? {}, n = {
145
145
  ...fe,
146
146
  ...e.thresholds ?? {}
@@ -162,7 +162,7 @@ function T(e) {
162
162
  };
163
163
  }
164
164
  function Se(e, t, n) {
165
- return T({
165
+ return E({
166
166
  locale: e,
167
167
  rules: n,
168
168
  overrides: t.rules,
@@ -173,7 +173,7 @@ function Se(e, t, n) {
173
173
  });
174
174
  }
175
175
  function Ce(e, t, n) {
176
- return T({
176
+ return E({
177
177
  locale: e,
178
178
  rules: n,
179
179
  overrides: t.rules,
@@ -183,7 +183,7 @@ function Ce(e, t, n) {
183
183
  });
184
184
  }
185
185
  function we(e, t, n) {
186
- return T({
186
+ return E({
187
187
  locale: e,
188
188
  rules: n,
189
189
  overrides: t.rules,
@@ -192,7 +192,7 @@ function we(e, t, n) {
192
192
  });
193
193
  }
194
194
  function Te(e, t, n) {
195
- return T({
195
+ return E({
196
196
  locale: e,
197
197
  rules: n,
198
198
  overrides: t.rules,
@@ -201,7 +201,7 @@ function Te(e, t, n) {
201
201
  });
202
202
  }
203
203
  function Ee(e, t, n) {
204
- return T({
204
+ return E({
205
205
  locale: e,
206
206
  rules: n,
207
207
  overrides: t.rules,
@@ -295,7 +295,7 @@ var De = /* @__PURE__ */ e({ default: () => Oe }), Oe = {
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
- }, ke = /* @__PURE__ */ e({ default: () => E }), E = {
298
+ }, ke = /* @__PURE__ */ e({ default: () => D }), D = {
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 De = /* @__PURE__ */ e({ default: () => Oe }), Oe = {
382
382
  }
383
383
  };
384
384
  // ../quality/src/format-message.ts
385
- function D(e, t) {
385
+ function O(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];
@@ -397,18 +397,18 @@ function D(e, t) {
397
397
  var Ae = /* #__PURE__ */ Object.assign({
398
398
  "./de.ts": De,
399
399
  "./en.ts": ke
400
- }), O = {};
400
+ }), k = {};
401
401
  for (let e in Ae) {
402
402
  let t = /\.\/([^/]+)\.ts$/.exec(e);
403
403
  if (!t) continue;
404
404
  let n = t[1];
405
- n !== "index" && (O[n] = Ae[e].default);
405
+ n !== "index" && (k[n] = Ae[e].default);
406
406
  }
407
407
  function je(e) {
408
- return O[e.split("-")[0]?.toLowerCase() ?? "en"] ?? O.en ?? E;
408
+ return k[e.split("-")[0]?.toLowerCase() ?? "en"] ?? k.en ?? D;
409
409
  }
410
410
  function Me(e, t, n) {
411
- return D(je(e)[t] ?? E[t], n);
411
+ return O(je(e)[t] ?? D[t], n);
412
412
  }
413
413
  var Ne = {
414
414
  meta: {
@@ -417,7 +417,7 @@ var Ne = {
417
417
  severity: "error"
418
418
  },
419
419
  block(e) {
420
- return !m(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
422
  }, Pe = {
423
423
  id: "a11y.img-alt-is-filename",
@@ -432,7 +432,7 @@ var Ne = {
432
432
  ], Ie = {
433
433
  meta: Pe,
434
434
  block(e) {
435
- if (!m(e) || e.decorative === !0) return null;
435
+ if (!y(e) || e.decorative === !0) return null;
436
436
  let t = e.alt?.trim() ?? "";
437
437
  return t === "" || !Fe.some((e) => e.test(t)) ? null : {
438
438
  blockId: e.id,
@@ -446,7 +446,7 @@ var Ne = {
446
446
  severity: "warning"
447
447
  },
448
448
  block(e, t, n) {
449
- if (!m(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,
@@ -463,7 +463,7 @@ var Ne = {
463
463
  severity: "info"
464
464
  },
465
465
  block(e) {
466
- return !m(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",
@@ -565,18 +565,18 @@ for (let e in Ue) {
565
565
  let n = t[1];
566
566
  n !== "index" && (We[n] = Ue[e].default);
567
567
  }
568
- function k(e) {
568
+ function A(e) {
569
569
  return Ge;
570
570
  }
571
- function A(e) {
571
+ function j(e) {
572
572
  let t = /* @__PURE__ */ new Set();
573
573
  for (let n of Object.values(We)) for (let r of e(n)) t.add(r);
574
574
  return Array.from(t);
575
575
  }
576
576
  var Ge = {
577
- vagueLinkText: A((e) => e.vagueLinkText),
578
- vagueButtonLabels: A((e) => e.vagueButtonLabels),
579
- linkedImageActionHints: A((e) => e.linkedImageActionHints)
577
+ vagueLinkText: j((e) => e.vagueLinkText),
578
+ vagueButtonLabels: j((e) => e.vagueButtonLabels),
579
+ linkedImageActionHints: j((e) => e.linkedImageActionHints)
580
580
  };
581
581
  function Ke(e) {
582
582
  return e.toLowerCase().replace(/\s+/g, " ").replace(/^[^\p{L}\p{N}]+|[^\p{L}\p{N}]+$/gu, "").trim();
@@ -588,18 +588,18 @@ var qe = {
588
588
  severity: "warning"
589
589
  },
590
590
  block(e, t, n) {
591
- if (!m(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 = k(n.locale).linkedImageActionHints;
594
+ let i = r.toLocaleLowerCase().split(/[^\p{L}\p{N}]+/u).filter(Boolean), a = A(n.locale).linkedImageActionHints;
595
595
  return i.some((e) => a.includes(e)) ? null : { blockId: e.id };
596
596
  }
597
597
  };
598
598
  // ../quality/src/html-utils.ts
599
- function j(e) {
599
+ function M(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 y({
602
+ }, a = new b({
603
603
  onopentag(e, t) {
604
604
  e === "a" ? (i(), n = {
605
605
  href: t.href ?? "",
@@ -642,13 +642,13 @@ function Ye(e) {
642
642
  }
643
643
  return t;
644
644
  }
645
- function M(e) {
646
- let t = "", n = new y({ ontext(e) {
645
+ function N(e) {
646
+ let t = "", n = new b({ ontext(e) {
647
647
  t += e;
648
648
  } });
649
649
  return n.write(e), n.end(), t.trim();
650
650
  }
651
- function N(e) {
651
+ function P(e) {
652
652
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
653
653
  }
654
654
  function Xe(e) {
@@ -660,15 +660,15 @@ function Ze(e) {
660
660
  function Qe(e) {
661
661
  return Ze(e) || e >= "0" && e <= "9" || e === ":" || e === "-" || e === "_";
662
662
  }
663
- function P(e, t) {
663
+ function F(e, t) {
664
664
  return `${e}="${t.replace(/"/g, "&quot;")}"`;
665
665
  }
666
- function F(e) {
666
+ function I(e) {
667
667
  let t = 0;
668
668
  for (; t < e.length && Xe(e[t]);) t++;
669
- for (; t < e.length && N(e[t]);) t++;
669
+ for (; t < e.length && P(e[t]);) t++;
670
670
  if (t >= e.length || e[t] !== "=") return null;
671
- for (t++; t < e.length && N(e[t]);) t++;
671
+ for (t++; t < e.length && P(e[t]);) t++;
672
672
  if (t >= e.length) return null;
673
673
  let n = e[t];
674
674
  if (n === "\"" || n === "'") {
@@ -677,10 +677,10 @@ function F(e) {
677
677
  }
678
678
  return e.slice(t);
679
679
  }
680
- function I(e, t) {
680
+ function L(e, t) {
681
681
  let n = t.toLowerCase(), r = [], i = 0;
682
682
  for (; i < e.length;) {
683
- for (; i < e.length && (N(e[i]) || e[i] === "/");) i++;
683
+ for (; i < e.length && (P(e[i]) || e[i] === "/");) i++;
684
684
  if (i >= e.length) break;
685
685
  let t = i;
686
686
  for (; i < e.length && Xe(e[i]);) i++;
@@ -690,7 +690,7 @@ function I(e, t) {
690
690
  continue;
691
691
  }
692
692
  let o = i;
693
- for (; i < e.length && N(e[i]);) i++;
693
+ for (; i < e.length && P(e[i]);) i++;
694
694
  if (i >= e.length || e[i] !== "=") {
695
695
  a.toLowerCase() === n && r.push({
696
696
  start: t,
@@ -698,7 +698,7 @@ function I(e, t) {
698
698
  });
699
699
  continue;
700
700
  }
701
- for (i++; i < e.length && N(e[i]);) i++;
701
+ for (i++; i < e.length && P(e[i]);) i++;
702
702
  let s = e[i];
703
703
  if (s === "\"" || s === "'") {
704
704
  let o = e.indexOf(s, i + 1);
@@ -709,7 +709,7 @@ function I(e, t) {
709
709
  end: c
710
710
  }), i = c;
711
711
  } else {
712
- for (; i < e.length && !N(e[i]) && e[i] !== ">";) i++;
712
+ for (; i < e.length && !P(e[i]) && e[i] !== ">";) i++;
713
713
  a.toLowerCase() === n && r.push({
714
714
  start: t,
715
715
  end: i
@@ -719,11 +719,11 @@ function I(e, t) {
719
719
  return r;
720
720
  }
721
721
  function $e(e, t) {
722
- let n = t.start > 0 && N(e[t.start - 1]) ? t.start - 1 : t.start;
722
+ let n = t.start > 0 && P(e[t.start - 1]) ? t.start - 1 : t.start;
723
723
  return e.slice(0, n) + e.slice(t.end);
724
724
  }
725
- function L(e, t) {
726
- let n = "", r = 0, i = new y({ onopentag(a, o) {
725
+ function R(e, t) {
726
+ let n = "", r = 0, i = new b({ onopentag(a, o) {
727
727
  let s = i.startIndex, c = i.endIndex;
728
728
  if (!Ze(e[s + 1])) return;
729
729
  let l = s + 1;
@@ -745,7 +745,7 @@ var et = {
745
745
  severity: "error"
746
746
  },
747
747
  block(e) {
748
- return !s(e) || M(e.content ?? "") !== "" ? null : { blockId: e.id };
748
+ return !_(e) || N(e.content ?? "") !== "" ? null : { blockId: e.id };
749
749
  }
750
750
  }, tt = {
751
751
  id: "a11y.heading-skip-level",
@@ -753,8 +753,8 @@ var et = {
753
753
  severity: "error"
754
754
  };
755
755
  function nt(e, t) {
756
- for (let n of e) if (s(n)) t.push(n);
757
- else if (i(n)) for (let e of n.children) nt(e, t);
756
+ for (let n of e) if (_(n)) t.push(n);
757
+ else if (v(n)) for (let e of n.children) nt(e, t);
758
758
  }
759
759
  var rt = {
760
760
  meta: tt,
@@ -777,8 +777,8 @@ var rt = {
777
777
  severity: "warning"
778
778
  };
779
779
  function at(e, t) {
780
- for (let n of e) if (s(n)) t.push(n);
781
- else if (i(n)) for (let e of n.children) at(e, t);
780
+ for (let n of e) if (_(n)) t.push(n);
781
+ else if (v(n)) for (let e of n.children) at(e, t);
782
782
  }
783
783
  var ot = {
784
784
  meta: it,
@@ -794,13 +794,13 @@ var ot = {
794
794
  severity: "error"
795
795
  };
796
796
  function ct(e) {
797
- return u(e) || s(e) ? e.content : null;
797
+ return n(e) || _(e) ? e.content : null;
798
798
  }
799
799
  var lt = {
800
800
  meta: st,
801
801
  block(e) {
802
802
  let t = ct(e);
803
- return t === null || !j(t).find((e) => e.text === "" && !e.hasImageWithAlt) ? null : { blockId: e.id };
803
+ return t === null || !M(t).find((e) => e.text === "" && !e.hasImageWithAlt) ? null : { blockId: e.id };
804
804
  }
805
805
  }, ut = {
806
806
  id: "a11y.link-vague-text",
@@ -808,14 +808,14 @@ var lt = {
808
808
  severity: "warning"
809
809
  };
810
810
  function dt(e) {
811
- return u(e) || s(e) ? e.content : null;
811
+ return n(e) || _(e) ? e.content : null;
812
812
  }
813
813
  var ft = {
814
814
  meta: ut,
815
815
  block(e, t, n) {
816
816
  let r = dt(e);
817
817
  if (r === null) return null;
818
- let i = k(n.locale).vagueLinkText, a = j(r).find((e) => {
818
+ let i = A(n.locale).vagueLinkText, a = M(r).find((e) => {
819
819
  let t = Ke(e.text);
820
820
  return t !== "" && i.includes(t);
821
821
  });
@@ -830,13 +830,13 @@ var ft = {
830
830
  severity: "error"
831
831
  };
832
832
  function mt(e) {
833
- return u(e) || s(e) ? e.content : null;
833
+ return n(e) || _(e) ? e.content : null;
834
834
  }
835
835
  var ht = {
836
836
  meta: pt,
837
837
  block(e) {
838
838
  let t = mt(e);
839
- return t === null || !j(t).find((e) => {
839
+ return t === null || !M(t).find((e) => {
840
840
  let t = e.href.trim();
841
841
  return t === "" || t === "#";
842
842
  }) ? null : { blockId: e.id };
@@ -847,7 +847,7 @@ var ht = {
847
847
  severity: "warning"
848
848
  };
849
849
  function _t(e) {
850
- return u(e) || s(e) ? e.content : null;
850
+ return n(e) || _(e) ? e.content : null;
851
851
  }
852
852
  function vt(e) {
853
853
  if (e === null) return !1;
@@ -858,30 +858,30 @@ var yt = {
858
858
  meta: gt,
859
859
  block(e) {
860
860
  let t = _t(e);
861
- return t === null || !j(t).find((e) => e.target === "_blank" && !vt(e.rel)) ? null : {
861
+ return t === null || !M(t).find((e) => e.target === "_blank" && !vt(e.rel)) ? null : {
862
862
  blockId: e.id,
863
863
  fix: {
864
864
  description: "Add rel=\"noopener\"",
865
865
  apply: (t) => {
866
- if (!u(e) && !s(e)) return;
867
- let n = bt(e.content ?? "");
868
- t.updateBlock(e.id, { content: n });
866
+ if (!n(e) && !_(e)) return;
867
+ let r = bt(e.content ?? "");
868
+ t.updateBlock(e.id, { content: r });
869
869
  }
870
870
  }
871
871
  };
872
872
  }
873
873
  };
874
874
  function bt(e) {
875
- return L(e, ({ name: e, attrs: t, decodedAttrs: n }) => {
875
+ return R(e, ({ name: e, attrs: t, decodedAttrs: n }) => {
876
876
  if (e !== "a" || n.target !== "_blank") return null;
877
- let r = I(t, "rel");
877
+ let r = L(t, "rel");
878
878
  if (r === null) return null;
879
879
  let i = r[0];
880
- if (i === void 0) return `<a${t} ${P("rel", "noopener")}>`;
881
- let a = F(t.slice(i.start, i.end));
880
+ if (i === void 0) return `<a${t} ${F("rel", "noopener")}>`;
881
+ let a = I(t.slice(i.start, i.end));
882
882
  if (vt(n.rel ?? null)) return null;
883
883
  let o = `${a ?? ""} noopener`.replace(/^[ \t\n\f\r]+/, "");
884
- return `<a${t.slice(0, i.start) + P("rel", o) + t.slice(i.end)}>`;
884
+ return `<a${t.slice(0, i.start) + F("rel", o) + t.slice(i.end)}>`;
885
885
  });
886
886
  }
887
887
  // ../quality/src/accessibility/rules/link-nested-anchor.ts
@@ -891,7 +891,7 @@ var xt = {
891
891
  severity: "error"
892
892
  };
893
893
  function St(e) {
894
- return u(e) || s(e) ? e.content : null;
894
+ return n(e) || _(e) ? e.content : null;
895
895
  }
896
896
  var Ct = {
897
897
  meta: xt,
@@ -905,10 +905,10 @@ var Ct = {
905
905
  reference: "https://docs.templatical.com/quality/accessibility/rule-catalog#text",
906
906
  severity: "warning"
907
907
  },
908
- block(e, t, n) {
909
- if (!u(e) && !s(e)) return null;
910
- let r = M(e.content ?? "").replace(/[^\p{L}]/gu, "");
911
- return r.length < n.thresholds.allCapsMinLength || ![...r].some((e) => e.toLocaleLowerCase() !== e.toLocaleUpperCase()) || r !== r.toLocaleUpperCase() ? null : { blockId: e.id };
908
+ block(e, t, r) {
909
+ if (!n(e) && !_(e)) return null;
910
+ let i = N(e.content ?? "").replace(/[^\p{L}]/gu, "");
911
+ return i.length < r.thresholds.allCapsMinLength || ![...i].some((e) => e.toLocaleLowerCase() !== e.toLocaleUpperCase()) || i !== i.toLocaleUpperCase() ? null : { blockId: e.id };
912
912
  }
913
913
  }, Tt = {
914
914
  id: "a11y.text-justified",
@@ -922,7 +922,7 @@ function Ot(e) {
922
922
  if (s === "&") {
923
923
  let t = Dt.exec(e.slice(o));
924
924
  if (t !== null) {
925
- let e = _(t[0]);
925
+ let e = m(t[0]);
926
926
  e !== t[0] && (s = e, c = o + t[0].length);
927
927
  }
928
928
  }
@@ -933,11 +933,11 @@ function Ot(e) {
933
933
  }
934
934
  function kt(e) {
935
935
  let t = [];
936
- return L(e, ({ attrs: e }) => {
937
- let n = I(e, "style");
936
+ return R(e, ({ attrs: e }) => {
937
+ let n = L(e, "style");
938
938
  if (n === null) return null;
939
939
  for (let r of n) {
940
- let n = F(e.slice(r.start, r.end));
940
+ let n = I(e.slice(r.start, r.end));
941
941
  n !== null && t.push(n);
942
942
  }
943
943
  return null;
@@ -945,23 +945,23 @@ function kt(e) {
945
945
  }
946
946
  function At(e) {
947
947
  return Ot(e).some((e) => {
948
- let t = Et.exec(_(e));
948
+ let t = Et.exec(m(e));
949
949
  return t !== null && t[1].trim().toLowerCase() === "justify";
950
950
  });
951
951
  }
952
952
  function jt(e) {
953
- return Ot(e).filter((e) => !/^\s*text-align\s*:/i.test(_(e))).map((e) => e.trim()).filter((e) => e !== "").join("; ");
953
+ return Ot(e).filter((e) => !/^\s*text-align\s*:/i.test(m(e))).map((e) => e.trim()).filter((e) => e !== "").join("; ");
954
954
  }
955
955
  function Mt(e) {
956
- return L(e, ({ rawName: e, attrs: t }) => {
957
- let n = I(t, "style");
956
+ return R(e, ({ rawName: e, attrs: t }) => {
957
+ let n = L(t, "style");
958
958
  if (n === null || n.length === 0) return null;
959
959
  let r = t, i = !1;
960
960
  for (let e = n.length - 1; e >= 0; e--) {
961
- let a = n[e], o = F(t.slice(a.start, a.end));
961
+ let a = n[e], o = I(t.slice(a.start, a.end));
962
962
  if (o === null || !At(o)) continue;
963
963
  let s = jt(o);
964
- r = s === "" ? $e(r, a) : r.slice(0, a.start) + P("style", s) + r.slice(a.end), i = !0;
964
+ r = s === "" ? $e(r, a) : r.slice(0, a.start) + F("style", s) + r.slice(a.end), i = !0;
965
965
  }
966
966
  return i ? `<${e}${r}>` : null;
967
967
  });
@@ -969,12 +969,12 @@ function Mt(e) {
969
969
  var Nt = {
970
970
  meta: Tt,
971
971
  block(e) {
972
- return !u(e) || !kt(e.content ?? "").some(At) ? null : {
972
+ return !n(e) || !kt(e.content ?? "").some(At) ? null : {
973
973
  blockId: e.id,
974
974
  fix: {
975
975
  description: "Remove justified alignment",
976
976
  apply: (t) => {
977
- u(e) && t.updateBlock(e.id, { content: Mt(e.content ?? "") });
977
+ n(e) && t.updateBlock(e.id, { content: Mt(e.content ?? "") });
978
978
  }
979
979
  }
980
980
  };
@@ -986,10 +986,10 @@ var Nt = {
986
986
  severity: "error"
987
987
  },
988
988
  block(e, t) {
989
- if (!s(e)) return null;
989
+ if (!_(e)) return null;
990
990
  let n = e.color ?? t.resolvedTextColor;
991
- if (!x(n) || !x(t.resolvedBackgroundColor)) return null;
992
- let r = p[e.level] >= 24 ? 3 : 4.5, i = he(n, t.resolvedBackgroundColor);
991
+ if (!S(n) || !S(t.resolvedBackgroundColor)) return null;
992
+ let r = ce[e.level] >= 24 ? 3 : 4.5, i = he(n, t.resolvedBackgroundColor);
993
993
  return Number.isNaN(i) || i >= r ? null : {
994
994
  blockId: e.id,
995
995
  params: {
@@ -1004,7 +1004,7 @@ var Nt = {
1004
1004
  severity: "warning"
1005
1005
  };
1006
1006
  function It(e) {
1007
- return v(e) || a(e) ? e.fontSize : null;
1007
+ return l(e) || a(e) ? e.fontSize : null;
1008
1008
  }
1009
1009
  // ../quality/src/accessibility/index.ts
1010
1010
  var Lt = [
@@ -1044,9 +1044,9 @@ var Lt = [
1044
1044
  severity: "warning"
1045
1045
  },
1046
1046
  block(e, t, n) {
1047
- if (!h(e)) return null;
1047
+ if (!g(e)) return null;
1048
1048
  let r = Ke(e.text ?? "");
1049
- return r === "" || !k(n.locale).vagueButtonLabels.includes(r) ? null : {
1049
+ return r === "" || !A(n.locale).vagueButtonLabels.includes(r) ? null : {
1050
1050
  blockId: e.id,
1051
1051
  params: { text: e.text }
1052
1052
  };
@@ -1059,7 +1059,7 @@ var Lt = [
1059
1059
  severity: "warning"
1060
1060
  },
1061
1061
  block(e, t, n) {
1062
- if (!h(e)) return null;
1062
+ if (!g(e)) return null;
1063
1063
  let r = e.buttonPadding;
1064
1064
  if (!r) return null;
1065
1065
  let i = e.fontSize * 1.4 + r.top + r.bottom;
@@ -1079,7 +1079,7 @@ var Lt = [
1079
1079
  severity: "error"
1080
1080
  },
1081
1081
  block(e) {
1082
- if (!h(e)) return null;
1082
+ if (!g(e)) return null;
1083
1083
  let t = he(e.textColor, e.backgroundColor);
1084
1084
  if (Number.isNaN(t)) return null;
1085
1085
  let n = e.fontSize >= 24 ? 3 : 4.5;
@@ -1104,7 +1104,7 @@ var Lt = [
1104
1104
  }
1105
1105
  ];
1106
1106
  function Rt(e, t = {}) {
1107
- return t.disabled === !0 || t.accessibility === !1 ? [] : w(e, Lt, we(t.locale, t.accessibility ?? {}, Lt), (e, t, n) => Me(e, t, n));
1107
+ return t.disabled === !0 || t.accessibility === !1 ? [] : T(e, Lt, we(t.locale, t.accessibility ?? {}, Lt), (e, t, n) => Me(e, t, n));
1108
1108
  }
1109
1109
  // ../quality/src/structure/messages/de.ts
1110
1110
  var zt = /* @__PURE__ */ e({ default: () => Bt }), Bt = {
@@ -1148,7 +1148,7 @@ var zt = /* @__PURE__ */ e({ default: () => Bt }), Bt = {
1148
1148
  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.",
1149
1149
  suggestion: "Gib ihr eine feste Höhe oder trage die Größe der Bilddatei ein."
1150
1150
  }
1151
- }, Vt = /* @__PURE__ */ e({ default: () => R }), R = {
1151
+ }, Vt = /* @__PURE__ */ e({ default: () => z }), z = {
1152
1152
  "structure.duplicate-block-id": {
1153
1153
  message: "Block id appears {count} times in the tree.",
1154
1154
  suggestion: "Give each block a unique id."
@@ -1192,18 +1192,18 @@ var zt = /* @__PURE__ */ e({ default: () => Bt }), Bt = {
1192
1192
  }, Ht = /* #__PURE__ */ Object.assign({
1193
1193
  "./de.ts": zt,
1194
1194
  "./en.ts": Vt
1195
- }), z = {};
1195
+ }), B = {};
1196
1196
  for (let e in Ht) {
1197
1197
  let t = /\.\/([^/]+)\.ts$/.exec(e);
1198
1198
  if (!t) continue;
1199
1199
  let n = t[1];
1200
- n !== "index" && (z[n] = Ht[e].default);
1200
+ n !== "index" && (B[n] = Ht[e].default);
1201
1201
  }
1202
1202
  function Ut(e) {
1203
- return z[e.split("-")[0]?.toLowerCase() ?? "en"] ?? z.en ?? R;
1203
+ return B[e.split("-")[0]?.toLowerCase() ?? "en"] ?? B.en ?? z;
1204
1204
  }
1205
1205
  function Wt(e, t, n) {
1206
- return D(Ut(e)[t] ?? R[t], n);
1206
+ return O(Ut(e)[t] ?? z[t], n);
1207
1207
  }
1208
1208
  // ../quality/src/structure/rules/duplicate-block-id.ts
1209
1209
  var Gt = {
@@ -1212,7 +1212,7 @@ var Gt = {
1212
1212
  severity: "error"
1213
1213
  };
1214
1214
  function Kt(e, t) {
1215
- for (let n of e) if (t.set(n.id, (t.get(n.id) ?? 0) + 1), i(n)) for (let e of n.children) Kt(e, t);
1215
+ for (let n of e) if (t.set(n.id, (t.get(n.id) ?? 0) + 1), v(n)) for (let e of n.children) Kt(e, t);
1216
1216
  }
1217
1217
  var qt = {
1218
1218
  meta: Gt,
@@ -1233,7 +1233,7 @@ var qt = {
1233
1233
  };
1234
1234
  function Yt(e, t) {
1235
1235
  for (let n of e) {
1236
- if (!i(n)) continue;
1236
+ if (!v(n)) continue;
1237
1237
  let e = n;
1238
1238
  e.children.length > 1 && e.children.forEach((n, r) => {
1239
1239
  n.length === 0 && t.push({
@@ -1261,7 +1261,7 @@ function Qt(e) {
1261
1261
  var $t = {
1262
1262
  meta: Zt,
1263
1263
  block(e) {
1264
- if (!i(e)) return null;
1264
+ if (!v(e)) return null;
1265
1265
  let t = e;
1266
1266
  return Qt(t) ? {
1267
1267
  blockId: t.id,
@@ -1286,8 +1286,8 @@ var $t = {
1286
1286
  ]
1287
1287
  },
1288
1288
  block(e) {
1289
- if (!i(e)) return null;
1290
- let t = ae(e);
1289
+ if (!v(e)) return null;
1290
+ let t = se(e);
1291
1291
  return t === null || t.applied ? null : {
1292
1292
  blockId: e.id,
1293
1293
  messageVariant: t.reason
@@ -1296,7 +1296,7 @@ var $t = {
1296
1296
  };
1297
1297
  // ../quality/src/structure/band.ts
1298
1298
  function tn(e, t) {
1299
- return e.wrapper ? e.wrapper : t.parent && n(t.parent) ? {
1299
+ return e.wrapper ? e.wrapper : t.parent && ne(t.parent) ? {
1300
1300
  backgroundColor: t.parent.styles?.backgroundColor,
1301
1301
  backgroundImage: t.parent.backgroundImage
1302
1302
  } : null;
@@ -1306,48 +1306,33 @@ function nn(e) {
1306
1306
  let t = e.trim().toLowerCase();
1307
1307
  return t !== "" && t !== "transparent";
1308
1308
  }
1309
- var rn = {
1310
- meta: {
1311
- id: "structure.nested-background-image",
1312
- reference: "https://docs.templatical.com/quality/structure/rule-catalog#email-client-compatibility",
1313
- severity: "warning"
1314
- },
1315
- block(e, t) {
1316
- if (!i(e) || g(e.backgroundImage) === null) return null;
1317
- let n = tn(e, t);
1318
- return n === null || g(n.backgroundImage) === null ? null : { blockId: e.id };
1319
- }
1320
- }, an = {
1321
- meta: {
1322
- id: "structure.nested-section",
1323
- reference: "https://docs.templatical.com/quality/structure/rule-catalog#tree-integrity",
1324
- severity: "error"
1325
- },
1326
- block(e, t) {
1327
- return !i(e) || t.section === null ? null : {
1328
- blockId: e.id,
1329
- params: { parentId: t.section.id }
1330
- };
1331
- }
1332
- }, on = {
1333
- id: "structure.section-column-mismatch",
1334
- reference: "https://docs.templatical.com/quality/structure/rule-catalog#section-layout",
1335
- severity: "error"
1336
- };
1337
- function sn(e) {
1338
- return e === "1" ? 1 : e === "3" ? 3 : 2;
1339
- }
1340
1309
  // ../quality/src/structure/index.ts
1341
- var cn = [
1310
+ var rn = [
1342
1311
  qt,
1343
1312
  $t,
1344
1313
  Xt,
1345
- an,
1346
1314
  {
1347
- meta: on,
1315
+ meta: {
1316
+ id: "structure.nested-section",
1317
+ reference: "https://docs.templatical.com/quality/structure/rule-catalog#tree-integrity",
1318
+ severity: "error"
1319
+ },
1320
+ block(e, t) {
1321
+ return !v(e) || t.section === null ? null : {
1322
+ blockId: e.id,
1323
+ params: { parentId: t.section.id }
1324
+ };
1325
+ }
1326
+ },
1327
+ {
1328
+ meta: {
1329
+ id: "structure.section-column-mismatch",
1330
+ reference: "https://docs.templatical.com/quality/structure/rule-catalog#section-layout",
1331
+ severity: "error"
1332
+ },
1348
1333
  block(e) {
1349
- if (!i(e)) return null;
1350
- let t = e, n = sn(t.columns), r = t.children.length;
1334
+ if (!v(e)) return null;
1335
+ let t = e, n = c(t.columns), r = t.children.length;
1351
1336
  return r === n ? null : {
1352
1337
  blockId: t.id,
1353
1338
  params: {
@@ -1365,19 +1350,30 @@ var cn = [
1365
1350
  severity: "warning"
1366
1351
  },
1367
1352
  block(e, t) {
1368
- if (!i(e) || g(e.backgroundImage) === null) return null;
1353
+ if (!v(e) || te(e.backgroundImage) === null) return null;
1369
1354
  let n = tn(e, t);
1370
1355
  return n === null || !nn(n.backgroundColor) ? null : { blockId: e.id };
1371
1356
  }
1372
1357
  },
1373
- rn,
1358
+ {
1359
+ meta: {
1360
+ id: "structure.nested-background-image",
1361
+ reference: "https://docs.templatical.com/quality/structure/rule-catalog#email-client-compatibility",
1362
+ severity: "warning"
1363
+ },
1364
+ block(e, t) {
1365
+ if (!v(e) || te(e.backgroundImage) === null) return null;
1366
+ let n = tn(e, t);
1367
+ return n === null || te(n.backgroundImage) === null ? null : { blockId: e.id };
1368
+ }
1369
+ },
1374
1370
  en
1375
1371
  ];
1376
- function ln(e, t = {}) {
1377
- return t.disabled === !0 || t.structure === !1 ? [] : w(e, cn, Te(t.locale, t.structure ?? {}, cn), (e, t, n) => Wt(e, t, n));
1372
+ function an(e, t = {}) {
1373
+ return t.disabled === !0 || t.structure === !1 ? [] : T(e, rn, Te(t.locale, t.structure ?? {}, rn), (e, t, n) => Wt(e, t, n));
1378
1374
  }
1379
1375
  // ../quality/src/links/messages/de.ts
1380
- var un = /* @__PURE__ */ e({ default: () => dn }), dn = {
1376
+ var on = /* @__PURE__ */ e({ default: () => sn }), sn = {
1381
1377
  "link.javascript-protocol": {
1382
1378
  message: "Die URL verwendet das Protokoll „{protocol}:\", das beliebigen Skriptcode ausführen kann und aus Sicherheitsgründen beim Rendern entfernt wird.",
1383
1379
  suggestion: "Ersetze sie durch eine echte URL oder entferne sie."
@@ -1402,7 +1398,7 @@ var un = /* @__PURE__ */ e({ default: () => dn }), dn = {
1402
1398
  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.",
1403
1399
  suggestion: "Verwende eine absolute URL (https://…)."
1404
1400
  }
1405
- }, fn = /* @__PURE__ */ e({ default: () => B }), B = {
1401
+ }, cn = /* @__PURE__ */ e({ default: () => V }), V = {
1406
1402
  "link.javascript-protocol": {
1407
1403
  message: "URL uses the \"{protocol}:\" protocol, which can execute arbitrary script and is stripped at render time for safety.",
1408
1404
  suggestion: "Replace it with a real link or remove the URL."
@@ -1427,80 +1423,80 @@ var un = /* @__PURE__ */ e({ default: () => dn }), dn = {
1427
1423
  message: "URL \"{url}\" is relative. A sent email has no page address to resolve it against, so the link breaks.",
1428
1424
  suggestion: "Use an absolute URL (https://…)."
1429
1425
  }
1430
- }, pn = /* #__PURE__ */ Object.assign({
1431
- "./de.ts": un,
1432
- "./en.ts": fn
1433
- }), V = {};
1434
- for (let e in pn) {
1426
+ }, ln = /* #__PURE__ */ Object.assign({
1427
+ "./de.ts": on,
1428
+ "./en.ts": cn
1429
+ }), H = {};
1430
+ for (let e in ln) {
1435
1431
  let t = /\.\/([^/]+)\.ts$/.exec(e);
1436
1432
  if (!t) continue;
1437
1433
  let n = t[1];
1438
- n !== "index" && (V[n] = pn[e].default);
1434
+ n !== "index" && (H[n] = ln[e].default);
1439
1435
  }
1440
- function mn(e) {
1441
- return V[e.split("-")[0]?.toLowerCase() ?? "en"] ?? V.en ?? B;
1436
+ function un(e) {
1437
+ return H[e.split("-")[0]?.toLowerCase() ?? "en"] ?? H.en ?? V;
1442
1438
  }
1443
- function hn(e, t, n) {
1444
- return D(mn(e)[t] ?? B[t], n);
1439
+ function dn(e, t, n) {
1440
+ return O(un(e)[t] ?? V[t], n);
1445
1441
  }
1446
1442
  // ../quality/src/url-walker.ts
1447
- function H(e) {
1448
- let t = [];
1449
- return C(e, (e) => {
1450
- if (s(e) || u(e) || le(e)) for (let n of j(e.content)) t.push({
1451
- url: n.href,
1443
+ function U(e) {
1444
+ let i = [];
1445
+ return w(e, (e) => {
1446
+ if (_(e) || n(e) || p(e)) for (let t of M(e.content)) i.push({
1447
+ url: t.href,
1452
1448
  blockId: e.id,
1453
1449
  source: "anchor",
1454
- label: n.text
1450
+ label: t.text
1455
1451
  });
1456
- else if (h(e)) t.push({
1452
+ else if (g(e)) i.push({
1457
1453
  url: e.url,
1458
1454
  blockId: e.id,
1459
1455
  source: "button",
1460
1456
  label: e.text
1461
1457
  });
1462
- else if (m(e)) e.linkUrl && e.linkUrl !== "" && t.push({
1458
+ else if (y(e)) e.linkUrl && e.linkUrl !== "" && i.push({
1463
1459
  url: e.linkUrl,
1464
1460
  blockId: e.id,
1465
1461
  source: "image-link",
1466
1462
  label: e.alt || void 0
1467
1463
  });
1468
- else if (ie(e)) t.push({
1464
+ else if (t(e)) i.push({
1469
1465
  url: e.url,
1470
1466
  blockId: e.id,
1471
1467
  source: "video",
1472
1468
  label: e.alt || void 0
1473
1469
  });
1474
- else if (v(e)) for (let n of e.items) t.push({
1475
- url: n.url,
1470
+ else if (l(e)) for (let t of e.items) i.push({
1471
+ url: t.url,
1476
1472
  blockId: e.id,
1477
1473
  source: "menu-item",
1478
- label: n.text
1474
+ label: t.text
1479
1475
  });
1480
- else if (d(e)) for (let n of e.icons) t.push({
1481
- url: n.url,
1476
+ else if (r(e)) for (let t of e.icons) i.push({
1477
+ url: t.url,
1482
1478
  blockId: e.id,
1483
1479
  source: "social-icon",
1484
- label: n.platform
1480
+ label: t.platform
1485
1481
  });
1486
- }), t;
1482
+ }), i;
1487
1483
  }
1488
1484
  // ../quality/src/links/rules/javascript-protocol.ts
1489
- var gn = {
1485
+ var fn = {
1490
1486
  id: "link.javascript-protocol",
1491
1487
  reference: "https://docs.templatical.com/quality/links/rule-catalog#dangerous-protocols",
1492
1488
  severity: "error"
1493
- }, _n = ce;
1494
- function vn(e) {
1495
- let t = te(e), n = te(e.replace(/\s+/g, ""));
1496
- return _n.find((e) => e === t || e === n) ?? null;
1489
+ }, pn = ie;
1490
+ function mn(e) {
1491
+ let t = h(e), n = h(e.replace(/\s+/g, ""));
1492
+ return pn.find((e) => e === t || e === n) ?? null;
1497
1493
  }
1498
- var yn = {
1499
- meta: gn,
1494
+ var hn = {
1495
+ meta: fn,
1500
1496
  template(e) {
1501
1497
  let t = [];
1502
- for (let n of H(e)) {
1503
- let e = vn(n.url);
1498
+ for (let n of U(e)) {
1499
+ let e = mn(n.url);
1504
1500
  e !== null && t.push({
1505
1501
  blockId: n.blockId,
1506
1502
  params: { protocol: e }
@@ -1508,41 +1504,41 @@ var yn = {
1508
1504
  }
1509
1505
  return t;
1510
1506
  }
1511
- }, bn = {
1507
+ }, gn = {
1512
1508
  id: "link.unsupported-protocol",
1513
1509
  reference: "https://docs.templatical.com/quality/links/rule-catalog#unsupported-protocols",
1514
1510
  severity: "warning"
1515
- }, xn = /* @__PURE__ */ new Set([
1511
+ }, _n = /* @__PURE__ */ new Set([
1516
1512
  "http",
1517
1513
  "https",
1518
1514
  "mailto",
1519
1515
  "tel",
1520
1516
  "sms"
1521
- ]), Sn = new Set(_n);
1522
- function Cn(e) {
1517
+ ]), vn = new Set(pn);
1518
+ function yn(e) {
1523
1519
  if (!e) return null;
1524
1520
  let t = e.trim(), n = /^([a-z][a-z0-9+\-.]*):/i.exec(t);
1525
1521
  return n ? n[1].toLowerCase() : null;
1526
1522
  }
1527
- var wn = {
1528
- meta: bn,
1523
+ var bn = {
1524
+ meta: gn,
1529
1525
  template(e) {
1530
1526
  let t = [];
1531
- for (let n of H(e)) {
1532
- let e = Cn(n.url);
1533
- e !== null && (Sn.has(e) || xn.has(e) || t.push({
1527
+ for (let n of U(e)) {
1528
+ let e = yn(n.url);
1529
+ e !== null && (vn.has(e) || _n.has(e) || t.push({
1534
1530
  blockId: n.blockId,
1535
1531
  params: { protocol: e }
1536
1532
  }));
1537
1533
  }
1538
1534
  return t;
1539
1535
  }
1540
- }, Tn = {
1536
+ }, xn = {
1541
1537
  id: "link.malformed-mailto",
1542
1538
  reference: "https://docs.templatical.com/quality/links/rule-catalog#malformed-uris",
1543
1539
  severity: "warning"
1544
1540
  };
1545
- function En(e) {
1541
+ function Sn(e) {
1546
1542
  let t = e.trim();
1547
1543
  if (!/^mailto:/i.test(t)) return !1;
1548
1544
  let [n] = t.slice(7).split("?", 2);
@@ -1557,43 +1553,43 @@ function En(e) {
1557
1553
  }
1558
1554
  return !1;
1559
1555
  }
1560
- var Dn = {
1561
- meta: Tn,
1556
+ var Cn = {
1557
+ meta: xn,
1562
1558
  template(e) {
1563
1559
  let t = [];
1564
- for (let n of H(e)) En(n.url) && t.push({ blockId: n.blockId });
1560
+ for (let n of U(e)) Sn(n.url) && t.push({ blockId: n.blockId });
1565
1561
  return t;
1566
1562
  }
1567
- }, On = {
1563
+ }, wn = {
1568
1564
  id: "link.malformed-tel",
1569
1565
  reference: "https://docs.templatical.com/quality/links/rule-catalog#malformed-uris",
1570
1566
  severity: "warning"
1571
- }, kn = /^[+0-9\s().\-]+$/, An = /^[A-Za-z0-9-]+(=[^;]+)?$/;
1572
- function jn(e) {
1567
+ }, Tn = /^[+0-9\s().\-]+$/, En = /^[A-Za-z0-9-]+(=[^;]+)?$/;
1568
+ function Dn(e) {
1573
1569
  let t = e.trim();
1574
1570
  if (!/^tel:/i.test(t)) return !1;
1575
1571
  let n = t.slice(4).trim();
1576
1572
  if (n === "") return !0;
1577
1573
  let [r, ...i] = n.split(";");
1578
- return !kn.test(r) || i.some((e) => !An.test(e));
1574
+ return !Tn.test(r) || i.some((e) => !En.test(e));
1579
1575
  }
1580
- var Mn = {
1581
- meta: On,
1576
+ var On = {
1577
+ meta: wn,
1582
1578
  template(e) {
1583
1579
  let t = [];
1584
- for (let n of H(e)) jn(n.url) && t.push({ blockId: n.blockId });
1580
+ for (let n of U(e)) Dn(n.url) && t.push({ blockId: n.blockId });
1585
1581
  return t;
1586
1582
  }
1587
- }, Nn = {
1583
+ }, kn = {
1588
1584
  id: "link.localhost-or-staging",
1589
1585
  reference: "https://docs.templatical.com/quality/links/rule-catalog#environment-leaks",
1590
1586
  severity: "warning"
1591
1587
  };
1592
- function Pn(e) {
1588
+ function An(e) {
1593
1589
  let t = e.replace(/[.+?^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*");
1594
1590
  return RegExp(`^${t}$`, "i");
1595
1591
  }
1596
- function Fn(e) {
1592
+ function jn(e) {
1597
1593
  if (!e) return null;
1598
1594
  let t = e.trim();
1599
1595
  if (!/^(https?|ftps?):\/\//i.test(t)) return null;
@@ -1603,14 +1599,14 @@ function Fn(e) {
1603
1599
  return null;
1604
1600
  }
1605
1601
  }
1606
- var In = {
1607
- meta: Nn,
1602
+ var Mn = {
1603
+ meta: kn,
1608
1604
  template(e, t) {
1609
1605
  let n = t.links.nonProductionHosts;
1610
1606
  if (n.length === 0) return [];
1611
- let r = n.map(Pn), i = [];
1612
- for (let t of H(e)) {
1613
- let e = Fn(t.url);
1607
+ let r = n.map(An), i = [];
1608
+ for (let t of U(e)) {
1609
+ let e = jn(t.url);
1614
1610
  e !== null && r.some((t) => t.test(e)) && i.push({
1615
1611
  blockId: t.blockId,
1616
1612
  params: { host: e }
@@ -1618,23 +1614,23 @@ var In = {
1618
1614
  }
1619
1615
  return i;
1620
1616
  }
1621
- }, Ln = {
1617
+ }, Nn = {
1622
1618
  id: "link.relative-url",
1623
1619
  reference: "https://docs.templatical.com/quality/links/rule-catalog#unsupported-protocols",
1624
1620
  severity: "warning"
1625
- }, Rn = /^(?:\/|\.{1,2}\/|\?)/, zn = [
1626
- yn,
1627
- wn,
1628
- Dn,
1621
+ }, Pn = /^(?:\/|\.{1,2}\/|\?)/, Fn = [
1622
+ hn,
1623
+ bn,
1624
+ Cn,
1625
+ On,
1629
1626
  Mn,
1630
- In,
1631
1627
  {
1632
- meta: Ln,
1628
+ meta: Nn,
1633
1629
  template(e) {
1634
1630
  let t = [];
1635
- for (let n of H(e)) {
1631
+ for (let n of U(e)) {
1636
1632
  let e = n.url?.trim();
1637
- e && Rn.test(e) && t.push({
1633
+ e && Pn.test(e) && t.push({
1638
1634
  blockId: n.blockId,
1639
1635
  params: { url: e }
1640
1636
  });
@@ -1643,11 +1639,11 @@ var In = {
1643
1639
  }
1644
1640
  }
1645
1641
  ];
1646
- function Bn(e, t = {}) {
1647
- return t.disabled === !0 || t.links === !1 ? [] : w(e, zn, Ee(t.locale, t.links ?? {}, zn), (e, t, n) => hn(e, t, n));
1642
+ function In(e, t = {}) {
1643
+ return t.disabled === !0 || t.links === !1 ? [] : T(e, Fn, Ee(t.locale, t.links ?? {}, Fn), (e, t, n) => dn(e, t, n));
1648
1644
  }
1649
1645
  // ../quality/src/deliverability/messages/de.ts
1650
- var Vn = /* @__PURE__ */ e({ default: () => Hn }), Hn = {
1646
+ var Ln = /* @__PURE__ */ e({ default: () => Rn }), Rn = {
1651
1647
  "deliverability.link-text-domain-mismatch": {
1652
1648
  message: "Der Linktext zeigt {textHost}, der Link führt aber zu {linkHost}. Spamfilter werten solche Links als Phishing.",
1653
1649
  suggestion: "Lass den Text zum Ziel passen oder verwende Wörter statt einer Adresse."
@@ -1664,7 +1660,7 @@ var Vn = /* @__PURE__ */ e({ default: () => Hn }), Hn = {
1664
1660
  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.",
1665
1661
  suggestion: "Ergänze Text, der die Botschaft trägt."
1666
1662
  }
1667
- }, Un = /* @__PURE__ */ e({ default: () => U }), U = {
1663
+ }, zn = /* @__PURE__ */ e({ default: () => W }), W = {
1668
1664
  "deliverability.link-text-domain-mismatch": {
1669
1665
  message: "The link text shows {textHost}, but the link goes to {linkHost}. Spam filters flag links like this as phishing.",
1670
1666
  suggestion: "Make the text match the destination, or use words instead of an address."
@@ -1681,25 +1677,25 @@ var Vn = /* @__PURE__ */ e({ default: () => Hn }), Hn = {
1681
1677
  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.",
1682
1678
  suggestion: "Add text that carries the message."
1683
1679
  }
1684
- }, Wn = /* #__PURE__ */ Object.assign({
1685
- "./de.ts": Vn,
1686
- "./en.ts": Un
1687
- }), W = {};
1688
- for (let e in Wn) {
1680
+ }, Bn = /* #__PURE__ */ Object.assign({
1681
+ "./de.ts": Ln,
1682
+ "./en.ts": zn
1683
+ }), G = {};
1684
+ for (let e in Bn) {
1689
1685
  let t = /\.\/([^/]+)\.ts$/.exec(e);
1690
1686
  if (!t) continue;
1691
1687
  let n = t[1];
1692
- n !== "index" && (W[n] = Wn[e].default);
1688
+ n !== "index" && (G[n] = Bn[e].default);
1693
1689
  }
1694
- function Gn(e) {
1695
- return W[e.split("-")[0]?.toLowerCase() ?? "en"] ?? W.en ?? U;
1690
+ function Vn(e) {
1691
+ return G[e.split("-")[0]?.toLowerCase() ?? "en"] ?? G.en ?? W;
1696
1692
  }
1697
- function Kn(e, t, n) {
1698
- return D(Gn(e)[t] ?? U[t], n);
1693
+ function Hn(e, t, n) {
1694
+ return O(Vn(e)[t] ?? W[t], n);
1699
1695
  }
1700
1696
  // ../quality/src/deliverability/same-site.ts
1701
- var qn = "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(" "), Jn = new Set(qn);
1702
- function G(e) {
1697
+ var Un = "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(" "), Wn = new Set(Un);
1698
+ function K(e) {
1703
1699
  try {
1704
1700
  let t = new URL(e);
1705
1701
  return (t.protocol === "http:" || t.protocol === "https:") && !/[{}]/.test(t.hostname) ? t : null;
@@ -1707,41 +1703,41 @@ function G(e) {
1707
1703
  return null;
1708
1704
  }
1709
1705
  }
1710
- function K(e) {
1706
+ function q(e) {
1711
1707
  return e.hostname.toLowerCase().replace(/\.$/, "").replace(/^www\./, "");
1712
1708
  }
1713
- function Yn(e) {
1709
+ function Gn(e) {
1714
1710
  if (/^\d+\.\d+\.\d+\.\d+$/.test(e) || e.startsWith("[")) return e;
1715
1711
  let t = e.split("."), n = t.slice(-2).join(".");
1716
- return t.slice(-(Jn.has(n) ? 3 : 2)).join(".");
1712
+ return t.slice(-(Wn.has(n) ? 3 : 2)).join(".");
1717
1713
  }
1718
- function Xn(e, t) {
1719
- let n = G(`http://${e}`), r = G(`http://${t}`);
1720
- return !n || !r ? !1 : Yn(K(n)) === Yn(K(r));
1714
+ function Kn(e, t) {
1715
+ let n = K(`http://${e}`), r = K(`http://${t}`);
1716
+ return !n || !r ? !1 : Gn(q(n)) === Gn(q(r));
1721
1717
  }
1722
1718
  // ../quality/src/deliverability/rules/link-text-domain-mismatch.ts
1723
- var Zn = {
1719
+ var qn = {
1724
1720
  id: "deliverability.link-text-domain-mismatch",
1725
1721
  reference: "https://docs.rspamd.com/modules/phishing/",
1726
1722
  severity: "warning"
1727
- }, Qn = /^(?:https?:\/\/)?(?:[\p{L}\p{N}](?:[\p{L}\p{N}-]*[\p{L}\p{N}])?\.)+(?:\p{L}{2,}|xn--[a-z0-9-]+)(?::\d+)?(?:[/?#][^\s]*)?$/iu;
1728
- function $n(e) {
1723
+ }, Jn = /^(?:https?:\/\/)?(?:[\p{L}\p{N}](?:[\p{L}\p{N}-]*[\p{L}\p{N}])?\.)+(?:\p{L}{2,}|xn--[a-z0-9-]+)(?::\d+)?(?:[/?#][^\s]*)?$/iu;
1724
+ function Yn(e) {
1729
1725
  if (!e) return null;
1730
1726
  let t = e.trim();
1731
- return t.startsWith("<") && t.endsWith(">") && (t = t.slice(1, -1)), t = t.replace(/[.,;:!?)]+$/, ""), Qn.test(t) ? G(/^https?:\/\//i.test(t) ? t : `http://${t}`) : null;
1727
+ return t.startsWith("<") && t.endsWith(">") && (t = t.slice(1, -1)), t = t.replace(/[.,;:!?)]+$/, ""), Jn.test(t) ? K(/^https?:\/\//i.test(t) ? t : `http://${t}`) : null;
1732
1728
  }
1733
1729
  // ../quality/src/deliverability/index.ts
1734
- var er = [
1730
+ var Xn = [
1735
1731
  {
1736
- meta: Zn,
1732
+ meta: qn,
1737
1733
  template(e) {
1738
1734
  let t = [];
1739
- for (let n of H(e)) {
1735
+ for (let n of U(e)) {
1740
1736
  if (n.source !== "anchor" && n.source !== "button" && n.source !== "menu-item") continue;
1741
- let e = $n(n.label), r = G(n.url);
1737
+ let e = Yn(n.label), r = K(n.url);
1742
1738
  if (!e || !r) continue;
1743
- let i = K(e), a = K(r);
1744
- Xn(i, a) || t.push({
1739
+ let i = q(e), a = q(r);
1740
+ Kn(i, a) || t.push({
1745
1741
  blockId: n.blockId,
1746
1742
  params: {
1747
1743
  textHost: i,
@@ -1760,10 +1756,10 @@ var er = [
1760
1756
  },
1761
1757
  template(e, t) {
1762
1758
  let n = [];
1763
- for (let r of H(e)) {
1764
- let e = G(r.url);
1759
+ for (let r of U(e)) {
1760
+ let e = K(r.url);
1765
1761
  if (!e) continue;
1766
- let i = K(e);
1762
+ let i = q(e);
1767
1763
  t.deliverability.shortenerHosts.some((e) => i === e || i.endsWith(`.${e}`)) && n.push({
1768
1764
  blockId: r.blockId,
1769
1765
  params: { host: i }
@@ -1780,10 +1776,10 @@ var er = [
1780
1776
  },
1781
1777
  template(e) {
1782
1778
  let t = [];
1783
- for (let n of H(e)) {
1784
- let e = G(n.url);
1779
+ for (let n of U(e)) {
1780
+ let e = K(n.url);
1785
1781
  if (!e) continue;
1786
- let r = K(e), i = /^(?:\d{1,3}\.){3}\d{1,3}$/.test(r), a = r.startsWith("[") && r.endsWith("]");
1782
+ let r = q(e), i = /^(?:\d{1,3}\.){3}\d{1,3}$/.test(r), a = r.startsWith("[") && r.endsWith("]");
1787
1783
  (i || a) && (r.startsWith("127.") || r === "0.0.0.0" || r === "[::1]" || t.push({
1788
1784
  blockId: n.blockId,
1789
1785
  params: { host: r }
@@ -1798,28 +1794,28 @@ var er = [
1798
1794
  reference: "https://svn.apache.org/repos/asf/spamassassin/branches/b2_6_0/rules/20_html_tests.cf",
1799
1795
  severity: "info"
1800
1796
  },
1801
- template(e, t) {
1802
- let n = !1, r = !1, i = [];
1803
- if (C(e, (e) => {
1804
- if (e.type === "custom" && (n = !0), (m(e) && e.src.trim() !== "" || ie(e) || re(e)) && (r = !0), (s(e) || u(e) || le(e)) && i.push(M(e.content)), a(e)) for (let t of e.rows) for (let e of t.cells) i.push(M(e.content));
1805
- if (h(e) && i.push(e.text), v(e)) for (let t of e.items) i.push(t.text);
1806
- }), n || !r) return [];
1807
- let o = i.join(" ").replace(/\s+/g, " ").trim().length, c = t.deliverability.minTextLength;
1808
- return o < c ? [{
1797
+ template(e, r) {
1798
+ let i = !1, o = !1, s = [];
1799
+ if (w(e, (e) => {
1800
+ if (e.type === "custom" && (i = !0), (y(e) && e.src.trim() !== "" || t(e) || f(e)) && (o = !0), (_(e) || n(e) || p(e)) && s.push(N(e.content)), a(e)) for (let t of e.rows) for (let e of t.cells) s.push(N(e.content));
1801
+ if (g(e) && s.push(e.text), l(e)) for (let t of e.items) s.push(t.text);
1802
+ }), i || !o) return [];
1803
+ let c = s.join(" ").replace(/\s+/g, " ").trim().length, u = r.deliverability.minTextLength;
1804
+ return c < u ? [{
1809
1805
  blockId: null,
1810
1806
  params: {
1811
- count: o,
1812
- min: c
1807
+ count: c,
1808
+ min: u
1813
1809
  }
1814
1810
  }] : [];
1815
1811
  }
1816
1812
  }
1817
1813
  ];
1818
- function tr(e, t = {}) {
1819
- return t.disabled === !0 || t.deliverability === !1 ? [] : w(e, er, Se(t.locale, t.deliverability ?? {}, er), (e, t, n) => Kn(e, t, n));
1814
+ function Zn(e, t = {}) {
1815
+ return t.disabled === !0 || t.deliverability === !1 ? [] : T(e, Xn, Se(t.locale, t.deliverability ?? {}, Xn), (e, t, n) => Hn(e, t, n));
1820
1816
  }
1821
1817
  // ../quality/src/compatibility/data/caniemail.generated.ts
1822
- var nr = {
1818
+ var Qn = {
1823
1819
  family: {
1824
1820
  gmail: "Gmail",
1825
1821
  outlook: "Outlook",
@@ -1856,7 +1852,7 @@ var nr = {
1856
1852
  "windows-mail": "Windows Mail",
1857
1853
  "outlook-com": "Outlook.com"
1858
1854
  }
1859
- }, rr = {
1855
+ }, $n = {
1860
1856
  "css-display-flex": {
1861
1857
  title: "display:flex",
1862
1858
  url: "https://www.caniemail.com/features/css-display-flex/",
@@ -3887,7 +3883,7 @@ var nr = {
3887
3883
  }
3888
3884
  }
3889
3885
  }
3890
- }, ir = [
3886
+ }, er = [
3891
3887
  "css-display-flex",
3892
3888
  "css-display-grid",
3893
3889
  "css-position",
@@ -3907,7 +3903,7 @@ var nr = {
3907
3903
  "image-base64"
3908
3904
  ];
3909
3905
  // ../quality/src/compatibility/scan.ts
3910
- function ar(e) {
3906
+ function tr(e) {
3911
3907
  let t = "", n = 0;
3912
3908
  for (;;) {
3913
3909
  let r = e.indexOf("/*", n);
@@ -3918,7 +3914,7 @@ function ar(e) {
3918
3914
  n = i + 2;
3919
3915
  }
3920
3916
  }
3921
- function q(e) {
3917
+ function J(e) {
3922
3918
  let t = e.toLowerCase(), n = (e, n) => {
3923
3919
  let r = t.indexOf(e, n);
3924
3920
  return r === -1 ? Infinity : r;
@@ -3952,8 +3948,8 @@ function q(e) {
3952
3948
  o = l + 1;
3953
3949
  }
3954
3950
  }
3955
- function or(e, t, n, r, i) {
3956
- let a = [], o = ar(e).replace(/data:([\w.+-]+\/[\w.+-]+)[^)"']*/gi, "data:$1");
3951
+ function nr(e, t, n, r, i) {
3952
+ let a = [], o = tr(e).replace(/data:([\w.+-]+\/[\w.+-]+)[^)"']*/gi, "data:$1");
3957
3953
  for (let e of o.matchAll(/(?:^|[;{])\s*([\w-]+)\s*:\s*([^;}]+)/g)) a.push({
3958
3954
  prop: e[1].toLowerCase(),
3959
3955
  value: e[2].trim(),
@@ -3964,19 +3960,19 @@ function or(e, t, n, r, i) {
3964
3960
  });
3965
3961
  return a;
3966
3962
  }
3967
- function sr(e, t = "", n = []) {
3963
+ function rr(e, t = "", n = []) {
3968
3964
  let r = {
3969
3965
  tags: [],
3970
3966
  css: [],
3971
3967
  cssTexts: [],
3972
3968
  urls: [...n]
3973
3969
  }, i = !1, a = "", o = 0, s = (e, t, n, i) => {
3974
- r.cssTexts.push(ar(e));
3970
+ r.cssTexts.push(tr(e));
3975
3971
  let a = o++;
3976
- if (i) r.css.push(...or(e, t, n, !0, `${a}`));
3977
- else for (let [i, o] of e.split("}").entries()) r.css.push(...or(o, t, n, !1, `${a}:${i}`));
3972
+ if (i) r.css.push(...nr(e, t, n, !0, `${a}`));
3973
+ else for (let [i, o] of e.split("}").entries()) r.css.push(...nr(o, t, n, !1, `${a}:${i}`));
3978
3974
  };
3979
- return new y({
3975
+ return new b({
3980
3976
  onopentag(e, t) {
3981
3977
  r.tags.push({
3982
3978
  tag: e,
@@ -3991,7 +3987,7 @@ function sr(e, t = "", n = []) {
3991
3987
  }
3992
3988
  }, { decodeEntities: !0 }).end(e), t && s(t, "stylesheet", {}, !1), r;
3993
3989
  }
3994
- function cr(e) {
3990
+ function ir(e) {
3995
3991
  let t = [], n = [], r = [];
3996
3992
  switch (e.type) {
3997
3993
  case "html":
@@ -4016,15 +4012,15 @@ function cr(e) {
4016
4012
  break;
4017
4013
  case "wrapper": e.backgroundImage && r.push(e.backgroundImage.url);
4018
4014
  }
4019
- return sr(t.join("\n"), n.join("\n"), r);
4015
+ return rr(t.join("\n"), n.join("\n"), r);
4020
4016
  }
4021
4017
  // ../quality/src/compatibility/detect.ts
4022
- var lr = (e) => e.replace(/\s+/g, " ").trim().slice(0, 80), J = ({ prop: e, value: t }) => lr(`${e}: ${t}`), ur = (e) => `<${e}>`, dr = /#[0-9a-f]{3,8}\b|\b(?:rgba?|hsla?)\(/i;
4023
- function fr(e) {
4018
+ var ar = (e) => e.replace(/\s+/g, " ").trim().slice(0, 80), Y = ({ prop: e, value: t }) => ar(`${e}: ${t}`), or = (e) => `<${e}>`, sr = /#[0-9a-f]{3,8}\b|\b(?:rgba?|hsla?)\(/i;
4019
+ function cr(e) {
4024
4020
  let t = /^\s*data:(image\/[\w.+-]+)/i.exec(e);
4025
4021
  return t ? t[1].toLowerCase() : null;
4026
4022
  }
4027
- function pr(e) {
4023
+ function lr(e) {
4028
4024
  let t = /* @__PURE__ */ new Map();
4029
4025
  for (let n of e.css) {
4030
4026
  let e = n.group;
@@ -4032,27 +4028,27 @@ function pr(e) {
4032
4028
  }
4033
4029
  for (let e of t.values()) {
4034
4030
  let t = e.find((e) => (e.prop === "background" || e.prop === "background-image") && /url\(/i.test(e.value));
4035
- if (!(!t || "bgcolor" in t.attrs) && !e.some((e) => e.prop === "background-color" || e.prop === "background" && dr.test(q(e.value)))) return t;
4031
+ if (!(!t || "bgcolor" in t.attrs) && !e.some((e) => e.prop === "background-color" || e.prop === "background" && sr.test(J(e.value)))) return t;
4036
4032
  }
4037
4033
  }
4038
- function mr(e, t) {
4034
+ function ur(e, t) {
4039
4035
  let n = e.css, r = e.tags, i, a;
4040
4036
  switch (t) {
4041
4037
  case "compat.css-display-flex":
4042
4038
  case "compat.css-display-grid": {
4043
4039
  let e = t.endsWith("flex") ? "flex" : "grid";
4044
4040
  return i = n.find((t) => t.prop === "display" && RegExp(`^(?:inline-)?${e}\\b`, "i").test(t.value)), i ? {
4045
- excerpt: J(i),
4041
+ excerpt: Y(i),
4046
4042
  usage: i.value.match(/^(?:inline-)?(?:flex|grid)/i)?.[0].toLowerCase()
4047
4043
  } : null;
4048
4044
  }
4049
4045
  case "compat.css-position": return i = n.find((e) => e.prop === "position" && /^(absolute|fixed|sticky)\b/i.test(e.value)), i ? {
4050
- excerpt: J(i),
4046
+ excerpt: Y(i),
4051
4047
  usage: i.value.match(/^\w+/)?.[0].toLowerCase(),
4052
4048
  value: i.value.match(/^\w+/)?.[0].toLowerCase()
4053
4049
  } : null;
4054
- case "compat.css-variables": return i = n.find((e) => /\bvar\(\s*--/i.test(q(e.value))), i ? { excerpt: J(i) } : null;
4055
- case "compat.css-at-import": return e.cssTexts.some((e) => /@import\b/i.test(q(e))) ? { excerpt: "@import" } : null;
4050
+ case "compat.css-variables": return i = n.find((e) => /\bvar\(\s*--/i.test(J(e.value))), i ? { excerpt: Y(i) } : null;
4051
+ case "compat.css-at-import": return e.cssTexts.some((e) => /@import\b/i.test(J(e))) ? { excerpt: "@import" } : null;
4056
4052
  case "compat.html-link": return r.some((e) => e.tag === "link" && /(?:^|\s)stylesheet(?:\s|$)/i.test(e.attrs.rel ?? "")) ? { excerpt: "<link rel=\"stylesheet\">" } : null;
4057
4053
  case "compat.html-style":
4058
4054
  case "compat.html-svg":
@@ -4060,33 +4056,33 @@ function mr(e, t) {
4060
4056
  case "compat.html-video":
4061
4057
  case "compat.html-audio":
4062
4058
  case "compat.html-script":
4063
- case "compat.html-iframe": return a = t.slice(12), r.some((e) => e.tag === a) ? { excerpt: ur(a) } : null;
4059
+ case "compat.html-iframe": return a = t.slice(12), r.some((e) => e.tag === a) ? { excerpt: or(a) } : null;
4064
4060
  case "compat.html-form": return a = r.find((e) => [
4065
4061
  "form",
4066
4062
  "input",
4067
4063
  "select",
4068
4064
  "textarea"
4069
- ].includes(e.tag))?.tag, a ? { excerpt: ur(a) } : null;
4065
+ ].includes(e.tag))?.tag, a ? { excerpt: or(a) } : null;
4070
4066
  case "compat.css-width": return i = n.find((e) => e.inline && e.prop === "width" && ([
4071
4067
  "div",
4072
4068
  "p",
4073
4069
  "span",
4074
4070
  "body"
4075
4071
  ].includes(e.tag) || e.tag === "img" && !("width" in e.attrs))), i ? {
4076
- excerpt: J(i),
4072
+ excerpt: Y(i),
4077
4073
  tag: i.tag
4078
4074
  } : null;
4079
4075
  case "compat.css-max-width": return i = n.find((e) => e.inline && e.prop === "max-width" && e.tag !== "table"), i ? {
4080
- excerpt: J(i),
4076
+ excerpt: Y(i),
4081
4077
  tag: i.tag
4082
4078
  } : null;
4083
4079
  case "compat.css-float": return i = n.find((e) => e.prop === "float"), i ? {
4084
- excerpt: J(i),
4080
+ excerpt: Y(i),
4085
4081
  tag: i.tag
4086
4082
  } : null;
4087
- case "compat.css-background-image": return i = pr(e), i ? { excerpt: J(i) } : null;
4083
+ case "compat.css-background-image": return i = lr(e), i ? { excerpt: Y(i) } : null;
4088
4084
  case "compat.image-base64": {
4089
- let t = e.cssTexts.flatMap((e) => [...e.matchAll(/url\(\s*['"]?\s*(data:image\/[\w.+-]+)/gi)].map((e) => e[1])), n = [...e.urls, ...t].map(fr).find((e) => e !== null);
4085
+ let t = e.cssTexts.flatMap((e) => [...e.matchAll(/url\(\s*['"]?\s*(data:image\/[\w.+-]+)/gi)].map((e) => e[1])), n = [...e.urls, ...t].map(cr).find((e) => e !== null);
4090
4086
  return n ? {
4091
4087
  excerpt: `data:${n}`,
4092
4088
  usage: n
@@ -4096,14 +4092,14 @@ function mr(e, t) {
4096
4092
  }
4097
4093
  }
4098
4094
  // ../quality/src/compatibility/support.ts
4099
- var hr = rr, gr = [
4095
+ var dr = $n, fr = [
4100
4096
  "gmail",
4101
4097
  "outlook",
4102
4098
  "apple-mail",
4103
4099
  "yahoo",
4104
4100
  "samsung-email"
4105
- ], Y = nr.family, _r = nr.platform;
4106
- function vr(e, t, n) {
4101
+ ], X = Qn.family, pr = Qn.platform;
4102
+ function mr(e, t, n) {
4107
4103
  switch (e) {
4108
4104
  case "css-display-flex": return t === 2 && n === "inline-flex";
4109
4105
  case "css-position": {
@@ -4122,14 +4118,14 @@ function vr(e, t, n) {
4122
4118
  default: return !1;
4123
4119
  }
4124
4120
  }
4125
- function yr(e, t = "") {
4126
- let n = hr[e];
4121
+ function hr(e, t = "") {
4122
+ let n = dr[e];
4127
4123
  if (!n) return [];
4128
4124
  let r = [];
4129
4125
  for (let [i, a] of Object.entries(n.cells)) {
4130
- let o = i.indexOf("."), s = i.slice(0, o), c = i.slice(o + 1), l = a.notes.some((n) => vr(e, n, t)) || a.value === "n" ? "unsupported" : a.value === "a" ? "partial" : null;
4126
+ let o = i.indexOf("."), s = i.slice(0, o), c = i.slice(o + 1), l = a.notes.some((n) => mr(e, n, t)) || a.value === "n" ? "unsupported" : a.value === "a" ? "partial" : null;
4131
4127
  if (!l) continue;
4132
- let u = Y[s] ?? s, d = _r[c] ?? c;
4128
+ let u = X[s] ?? s, d = pr[c] ?? c;
4133
4129
  r.push({
4134
4130
  id: i,
4135
4131
  name: d.toLowerCase().includes(u.toLowerCase()) ? d : `${u} ${d}`,
@@ -4140,23 +4136,23 @@ function yr(e, t = "") {
4140
4136
  }
4141
4137
  return r;
4142
4138
  }
4143
- function br(e, t, n) {
4139
+ function gr(e, t, n) {
4144
4140
  let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
4145
4141
  for (let n of e) {
4146
4142
  let e = n.id.split(".")[0];
4147
4143
  r.set(e, [...r.get(e) ?? [], n]), n.support === t && i.set(e, [...i.get(e) ?? [], n]);
4148
4144
  }
4149
4145
  let a = [...i.keys()].sort((e, t) => {
4150
- let n = gr.indexOf(e), r = gr.indexOf(t);
4151
- return n === r ? (Y[e] ?? e).localeCompare(Y[t] ?? t) : (n < 0 ? Infinity : n) - (r < 0 ? Infinity : r);
4146
+ let n = fr.indexOf(e), r = fr.indexOf(t);
4147
+ return n === r ? (X[e] ?? e).localeCompare(X[t] ?? t) : (n < 0 ? Infinity : n) - (r < 0 ? Infinity : r);
4152
4148
  }).map((e) => {
4153
- let t = Y[e] ?? e, n = i.get(e);
4154
- return n.length === r.get(e).length ? t : `${t} (${n.map((e) => _r[e.id.split(".")[1]] ?? e.name).join(", ")})`;
4149
+ let t = X[e] ?? e, n = i.get(e);
4150
+ return n.length === r.get(e).length ? t : `${t} (${n.map((e) => pr[e.id.split(".")[1]] ?? e.name).join(", ")})`;
4155
4151
  }), o = a.slice(0, 4);
4156
4152
  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);
4157
4153
  }
4158
4154
  // ../quality/src/compatibility/messages/de.ts
4159
- var xr = /* @__PURE__ */ e({ default: () => Sr }), Sr = {
4155
+ var _r = /* @__PURE__ */ e({ default: () => vr }), vr = {
4160
4156
  templates: {
4161
4157
  unsupported: "{feature} funktioniert in {unsupported} nicht.",
4162
4158
  partial: "{feature} funktioniert in {partial} nur teilweise.",
@@ -4247,7 +4243,7 @@ var xr = /* @__PURE__ */ e({ default: () => Sr }), Sr = {
4247
4243
  suggestion: "Bleibe unter {max} KB: Kürze den Inhalt, verschiebe lange Abschnitte auf eine Webseite oder ersetze Base64-Bilder durch gehostete Bilder."
4248
4244
  }
4249
4245
  }
4250
- }, Cr = /* @__PURE__ */ e({ default: () => wr }), wr = {
4246
+ }, yr = /* @__PURE__ */ e({ default: () => br }), br = {
4251
4247
  templates: {
4252
4248
  unsupported: "{feature} doesn't work in {unsupported}.",
4253
4249
  partial: "{feature} only partly works in {partial}.",
@@ -4338,24 +4334,24 @@ var xr = /* @__PURE__ */ e({ default: () => Sr }), Sr = {
4338
4334
  suggestion: "Bring it under {max} KB: shorten the content, move long sections to a web page, or replace base64 images with hosted ones."
4339
4335
  }
4340
4336
  }
4341
- }, Tr = /* #__PURE__ */ Object.assign({
4342
- "./de.ts": xr,
4343
- "./en.ts": Cr
4344
- }), X = {};
4345
- for (let e in Tr) X[e.slice(2, -3)] = Tr[e].default;
4346
- function Er(e) {
4347
- return X[e.split("-")[0]?.toLowerCase() ?? "en"] ?? X.en ?? wr;
4337
+ }, xr = /* #__PURE__ */ Object.assign({
4338
+ "./de.ts": _r,
4339
+ "./en.ts": yr
4340
+ }), Sr = {};
4341
+ for (let e in xr) Sr[e.slice(2, -3)] = xr[e].default;
4342
+ function Cr(e) {
4343
+ return Sr[e.split("-")[0]?.toLowerCase() ?? "en"] ?? Sr.en ?? br;
4348
4344
  }
4349
- function Dr(e, t, n = {}) {
4350
- let r = Er(e), i = r.hand[t];
4351
- if (i) return D(i, n);
4345
+ function wr(e, t, n = {}) {
4346
+ let r = Cr(e), i = r.hand[t];
4347
+ if (i) return O(i, n);
4352
4348
  let a = t.slice(7), o = r.features[a];
4353
4349
  if (!o) throw Error(`Missing compatibility message: ${t}`);
4354
- let s = n.unsupported && n.partial ? "mixed" : n.unsupported ? "unsupported" : "partial", c = D({
4350
+ let s = n.unsupported && n.partial ? "mixed" : n.unsupported ? "unsupported" : "partial", c = O({
4355
4351
  message: o.feature,
4356
4352
  suggestion: o.suggestion
4357
4353
  }, n);
4358
- return D({
4354
+ return O({
4359
4355
  message: r.templates[s],
4360
4356
  suggestion: c.suggestion
4361
4357
  }, {
@@ -4364,22 +4360,22 @@ function Dr(e, t, n = {}) {
4364
4360
  });
4365
4361
  }
4366
4362
  // ../quality/src/compatibility/index.ts
4367
- var Or = "https://docs.templatical.com/quality/compatibility/rule-catalog", kr = ["html-script", "html-iframe"], Z = [
4368
- ...ir.map((e) => ({ meta: {
4363
+ var Tr = "https://docs.templatical.com/quality/compatibility/rule-catalog", Er = ["html-script", "html-iframe"], Z = [
4364
+ ...er.map((e) => ({ meta: {
4369
4365
  id: `compat.${e}`,
4370
4366
  severity: "warning",
4371
- reference: rr[e].url
4367
+ reference: $n[e].url
4372
4368
  } })),
4373
- ...kr.map((e) => ({ meta: {
4369
+ ...Er.map((e) => ({ meta: {
4374
4370
  id: `compat.${e}`,
4375
4371
  severity: "warning",
4376
- reference: `${Or}#compat-${e}`
4372
+ reference: `${Tr}#compat-${e}`
4377
4373
  } })),
4378
4374
  {
4379
4375
  meta: {
4380
4376
  id: "compat.gmail-clipping",
4381
4377
  severity: "warning",
4382
- reference: `${Or}#compat-gmail-clipping`
4378
+ reference: `${Tr}#compat-gmail-clipping`
4383
4379
  },
4384
4380
  compiledHtml(e, t) {
4385
4381
  let n = new TextEncoder().encode(e).byteLength;
@@ -4399,27 +4395,27 @@ var Or = "https://docs.templatical.com/quality/compatibility/rule-catalog", kr =
4399
4395
  }
4400
4396
  }
4401
4397
  ];
4402
- function Ar(e, t, n) {
4398
+ function Dr(e, t, n) {
4403
4399
  let r = n.compatibility || {}, i = Ce(n.locale, r, Z), a = [];
4404
4400
  for (let n of Z) {
4405
4401
  let o = n.meta.id;
4406
4402
  if (o === "compat.gmail-clipping" || i.severity(o) === "off") continue;
4407
- let s = mr(e, o);
4403
+ let s = ur(e, o);
4408
4404
  if (!s) continue;
4409
- let c = o === "compat.html-script" || o === "compat.html-iframe", l = c ? void 0 : yr(o.slice(7), s.usage);
4405
+ let c = o === "compat.html-script" || o === "compat.html-iframe", l = c ? void 0 : hr(o.slice(7), s.usage);
4410
4406
  if (!c && l?.length === 0) continue;
4411
- let u = l?.some((e) => e.support === "unsupported") ?? !0, d = u ? "warning" : "info", f = r.rules?.[o], ee = f && f !== "off" ? f : d, p = {
4407
+ let u = l?.some((e) => e.support === "unsupported") ?? !0, d = u ? "warning" : "info", f = r.rules?.[o], p = f && f !== "off" ? f : d, m = {
4412
4408
  excerpt: s.excerpt,
4413
4409
  value: s.value ?? "",
4414
4410
  tag: s.tag ?? ""
4415
4411
  };
4416
- l && (u && (p.unsupported = br(l, "unsupported", i.locale)), l.some((e) => e.support === "partial") && (p.partial = br(l, "partial", i.locale)));
4417
- let m = Dr(i.locale, o, p);
4412
+ l && (u && (m.unsupported = gr(l, "unsupported", i.locale)), l.some((e) => e.support === "partial") && (m.partial = gr(l, "partial", i.locale)));
4413
+ let h = wr(i.locale, o, m);
4418
4414
  a.push({
4419
4415
  blockId: t,
4420
4416
  ruleId: o,
4421
- severity: ee,
4422
- ...m,
4417
+ severity: p,
4418
+ ...h,
4423
4419
  reference: n.meta.reference,
4424
4420
  ...l ? { clients: l } : {},
4425
4421
  excerpt: s.excerpt
@@ -4427,27 +4423,27 @@ function Ar(e, t, n) {
4427
4423
  }
4428
4424
  return a;
4429
4425
  }
4430
- function jr(e, t = {}) {
4426
+ function Or(e, t = {}) {
4431
4427
  if (t.disabled === !0 || t.compatibility === !1) return [];
4432
4428
  let n = [], r = /* @__PURE__ */ new WeakMap();
4433
- return C(e, (e) => {
4429
+ return w(e, (e) => {
4434
4430
  let i = r.get(e);
4435
- i || (i = cr(e), r.set(e, i)), n.push(...Ar(i, e.id, t));
4431
+ i || (i = ir(e), r.set(e, i)), n.push(...Dr(i, e.id, t));
4436
4432
  }), n;
4437
4433
  }
4438
- function Mr(e, t = {}) {
4434
+ function kr(e, t = {}) {
4439
4435
  if (t.disabled === !0 || t.compatibility === !1) return [];
4440
4436
  let n = Ce(t.locale, t.compatibility || {}, Z), r = Z.find((e) => e.meta.id === "compat.gmail-clipping"), i = n.severity(r.meta.id);
4441
4437
  return i === "off" ? [] : r.compiledHtml(e, n).map((e) => ({
4442
4438
  blockId: null,
4443
4439
  ruleId: r.meta.id,
4444
4440
  severity: i,
4445
- ...Dr(n.locale, r.meta.id, e.params),
4441
+ ...wr(n.locale, r.meta.id, e.params),
4446
4442
  reference: r.meta.reference
4447
4443
  }));
4448
4444
  }
4449
4445
  // ../quality/src/localization/messages/de.ts
4450
- var Nr = /* @__PURE__ */ e({ default: () => Pr }), Pr = {
4446
+ var Ar = /* @__PURE__ */ e({ default: () => jr }), jr = {
4451
4447
  "localization.untranslated": {
4452
4448
  message: "Das Feld {field} hat keine Übersetzung.",
4453
4449
  suggestion: "Übersetze {field} oder verwende die Standardsprache als Fallback."
@@ -4460,7 +4456,7 @@ var Nr = /* @__PURE__ */ e({ default: () => Pr }), Pr = {
4460
4456
  message: "Die Merge-Tags in {field} weichen von der Standardsprache ab.",
4461
4457
  suggestion: "Verwende in {field} dieselben Merge-Tags mit derselben Anzahl an Vorkommen."
4462
4458
  }
4463
- }, Fr = /* @__PURE__ */ e({ default: () => Q }), Q = {
4459
+ }, Mr = /* @__PURE__ */ e({ default: () => Nr }), Nr = {
4464
4460
  "localization.untranslated": {
4465
4461
  message: "The field {field} has no translation.",
4466
4462
  suggestion: "Translate {field}, or keep the default language as a fallback."
@@ -4473,63 +4469,63 @@ var Nr = /* @__PURE__ */ e({ default: () => Pr }), Pr = {
4473
4469
  message: "The merge tags in {field} differ from the default language.",
4474
4470
  suggestion: "Keep the same merge tags and occurrence counts in {field}."
4475
4471
  }
4476
- }, Ir = /* #__PURE__ */ Object.assign({
4477
- "./de.ts": Nr,
4478
- "./en.ts": Fr
4479
- }), $ = {};
4480
- for (let e in Ir) {
4472
+ }, Pr = /* #__PURE__ */ Object.assign({
4473
+ "./de.ts": Ar,
4474
+ "./en.ts": Mr
4475
+ }), Fr = {};
4476
+ for (let e in Pr) {
4481
4477
  let t = /\.\/([^/]+)\.ts$/.exec(e);
4482
4478
  if (!t) continue;
4483
4479
  let n = t[1];
4484
- n !== "index" && ($[n] = Ir[e].default);
4480
+ n !== "index" && (Fr[n] = Pr[e].default);
4485
4481
  }
4486
- function Lr(e) {
4487
- return $[e.split("-")[0]?.toLowerCase() ?? "en"] ?? $.en ?? Q;
4482
+ function Ir(e) {
4483
+ return Fr[e.split("-")[0]?.toLowerCase() ?? "en"] ?? Fr.en ?? Nr;
4488
4484
  }
4489
- function Rr(e, t, n) {
4490
- return D(Lr(e)[t] ?? Q[t], n);
4485
+ function Lr(e, t, n) {
4486
+ return O(Ir(e)[t] ?? Nr[t], n);
4491
4487
  }
4492
4488
  // ../quality/src/localization/rules.ts
4493
- function zr(e, n) {
4494
- let r = /* @__PURE__ */ new Map();
4495
- C(e, (e) => {
4496
- for (let i of t(e, n.customBlocks)) r.set(`${e.id}/${i}`, {
4489
+ function Rr(e, t) {
4490
+ let n = /* @__PURE__ */ new Map();
4491
+ w(e, (e) => {
4492
+ for (let r of ee(e, t.customBlocks)) n.set(`${e.id}/${r}`, {
4497
4493
  blockId: e.id,
4498
- field: i,
4494
+ field: r,
4499
4495
  target: e,
4500
- format: e.type === "html" || c[e.type]?.includes(i) ? "html" : "text"
4496
+ format: e.type === "html" || s[e.type]?.includes(r) ? "html" : "text"
4501
4497
  });
4502
4498
  });
4503
- for (let t of l) r.set(`settings/${t}`, {
4499
+ for (let t of le) n.set(`settings/${t}`, {
4504
4500
  blockId: null,
4505
4501
  field: t,
4506
4502
  target: e.settings,
4507
4503
  format: "text"
4508
4504
  });
4509
- return r;
4505
+ return n;
4510
4506
  }
4511
- function Br({ blockId: e, field: t }) {
4507
+ function Q({ blockId: e, field: t }) {
4512
4508
  return {
4513
4509
  blockId: e,
4514
4510
  params: { field: t }
4515
4511
  };
4516
4512
  }
4517
- function Vr(e, t) {
4518
- return o(e, t.contentLocale, t.customBlocks);
4513
+ function $(e, t) {
4514
+ return i(e, t.contentLocale, t.customBlocks);
4519
4515
  }
4520
- function Hr(e, t, n) {
4516
+ function zr(e, t, n) {
4521
4517
  let r = [], i = "\0MT";
4522
4518
  for (; e.includes(i);) i += "_";
4523
- let a = n === "html" ? se(e, (e) => {
4519
+ let a = n === "html" ? ae(e, (e) => {
4524
4520
  let t = r.push(e) - 1;
4525
4521
  return `${i}${t}\u0000`;
4526
4522
  }) : e, o = Array.from(a.matchAll(RegExp(`${i}\\d+\u0000`, "g")), (e) => ({
4527
4523
  start: e.index,
4528
4524
  end: e.index + e[0].length
4529
- })), s = [], c = oe(a, t, "logic"), l = [], u = 0;
4525
+ })), s = [], c = re(a, t, "logic"), l = [], u = 0;
4530
4526
  for (let e of ["logic", "value"]) {
4531
4527
  let r = 0;
4532
- for (let i of e === "logic" ? c : oe(a, t, "value")) {
4528
+ for (let i of e === "logic" ? c : re(a, t, "value")) {
4533
4529
  let t = i.index, a = t + i.value.length;
4534
4530
  for (; o[r]?.end <= t;) r++;
4535
4531
  let c = o[r];
@@ -4545,14 +4541,14 @@ function Hr(e, t, n) {
4545
4541
  }), s.push({
4546
4542
  start: t,
4547
4543
  end: a,
4548
- value: n === "html" ? _(i.value) : i.value
4544
+ value: n === "html" ? m(i.value) : i.value
4549
4545
  });
4550
4546
  }
4551
4547
  }
4552
4548
  }
4553
4549
  return [...r, ...s.map((e) => e.value)].sort();
4554
4550
  }
4555
- var Ur = [
4551
+ var Br = [
4556
4552
  {
4557
4553
  meta: {
4558
4554
  id: "localization.untranslated",
@@ -4560,8 +4556,8 @@ var Ur = [
4560
4556
  reference: "https://docs.templatical.com/guide/localized-templates#missing-values"
4561
4557
  },
4562
4558
  template: (e, t) => {
4563
- let n = zr(e, t);
4564
- return Vr(e, t).missing.map((e) => Br(n.get(e)));
4559
+ let n = Rr(e, t);
4560
+ return $(e, t).missing.map((e) => Q(n.get(e)));
4565
4561
  }
4566
4562
  },
4567
4563
  {
@@ -4571,8 +4567,8 @@ var Ur = [
4571
4567
  reference: "https://docs.templatical.com/guide/localized-templates#out-of-date-values"
4572
4568
  },
4573
4569
  template: (e, t) => {
4574
- let n = zr(e, t);
4575
- return Vr(e, t).stale.map((e) => Br(n.get(e)));
4570
+ let n = Rr(e, t);
4571
+ return $(e, t).stale.map((e) => Q(n.get(e)));
4576
4572
  }
4577
4573
  },
4578
4574
  {
@@ -4582,22 +4578,22 @@ var Ur = [
4582
4578
  reference: "https://docs.templatical.com/guide/localized-templates#merge-tags"
4583
4579
  },
4584
4580
  template: (e, t) => {
4585
- let n = zr(e, t), r = Vr(e, t), i = ne(t.mergeTagSyntax);
4581
+ let n = Rr(e, t), r = $(e, t), i = oe(t.mergeTagSyntax);
4586
4582
  return [...r.translated, ...r.stale].flatMap((e) => {
4587
- let r = n.get(e), { target: a, field: o, format: s } = r, c = f(a, o), l = a?.l10n?.[t.contentLocale]?.text?.[o]?.value;
4588
- return typeof c != "string" || l === void 0 || JSON.stringify(Hr(c, i, s)) === JSON.stringify(Hr(l, i, s)) ? [] : [Br(r)];
4583
+ let r = n.get(e), { target: a, field: o, format: s } = r, c = d(a, o), l = a?.l10n?.[t.contentLocale]?.text?.[o]?.value;
4584
+ return typeof c != "string" || l === void 0 || JSON.stringify(zr(c, i, s)) === JSON.stringify(zr(l, i, s)) ? [] : [Q(r)];
4589
4585
  });
4590
4586
  }
4591
4587
  }
4592
4588
  ];
4593
4589
  // ../quality/src/localization/index.ts
4594
- function Wr(e, t = {}) {
4590
+ function Vr(e, t = {}) {
4595
4591
  if (t.disabled === !0 || t.localization === !1) return [];
4596
- let n = t.contentLocale ?? r(e);
4597
- return n === r(e) ? [] : (e.settings.locales?.includes(n) || ee(e, n), w(e, Ur, {
4598
- ...T({
4592
+ let n = t.contentLocale ?? u(e);
4593
+ return n === u(e) ? [] : (e.settings.locales?.includes(n) || o(e, n), T(e, Br, {
4594
+ ...E({
4599
4595
  locale: t.locale,
4600
- rules: Ur,
4596
+ rules: Br,
4601
4597
  overrides: t.localization?.rules,
4602
4598
  thresholds: void 0,
4603
4599
  nonProductionHosts: void 0
@@ -4605,29 +4601,29 @@ function Wr(e, t = {}) {
4605
4601
  contentLocale: n,
4606
4602
  customBlocks: t.customBlocks,
4607
4603
  mergeTagSyntax: t.mergeTagSyntax
4608
- }, (e, t, n) => Rr(e, t, n)));
4604
+ }, (e, t, n) => Lr(e, t, n)));
4609
4605
  }
4610
4606
  // ../quality/src/util.ts
4611
- function Gr(e) {
4607
+ function Hr(e) {
4612
4608
  return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 && e.deliverability === !1 && e.compatibility === !1 && e.localization === !1 : !1;
4613
4609
  }
4614
4610
  // ../quality/src/lint-template.ts
4615
- function Kr(e, t = {}) {
4616
- if (Gr(t)) return [];
4617
- let n = r(e), i = t.contentLocale ?? n, a = ee(e, i), o = [
4618
- ...Rt(a, t),
4619
- ...ln(a, t),
4620
- ...Bn(a, t),
4621
- ...tr(a, t),
4622
- ...jr(a, t),
4623
- ...Wr(e, t)
4611
+ function Ur(e, t = {}) {
4612
+ if (Hr(t)) return [];
4613
+ let n = u(e), r = t.contentLocale ?? n, i = o(e, r), a = [
4614
+ ...Rt(i, t),
4615
+ ...an(i, t),
4616
+ ...In(i, t),
4617
+ ...Zn(i, t),
4618
+ ...Or(i, t),
4619
+ ...Vr(e, t)
4624
4620
  ];
4625
- return i === n ? o : o.map((e) => {
4621
+ return r === n ? a : a.map((e) => {
4626
4622
  if (!e.fix?.removesBlock) return e;
4627
4623
  let t = { ...e };
4628
4624
  return delete t.fix, t;
4629
4625
  });
4630
4626
  }
4631
- export { Mr as lintCompiledHtml, Kr as lintTemplate };
4627
+ export { kr as lintCompiledHtml, Ur as lintTemplate };
4632
4628
 
4633
- //# sourceMappingURL=src-Diw9SLIe.js.map
4629
+ //# sourceMappingURL=src-C9JWWxAk.js.map