@templatical/editor 0.45.0 → 0.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/dist/{AiChatSidebar-BlFWWhBv.js → AiChatSidebar-DGcH4Lyo.js} +1 -1
  2. package/dist/{AiFeatureMenu-CvWygUmC.js → AiFeatureMenu-B4q-0g1S.js} +1 -1
  3. package/dist/{BlockPreviewCanvas-DwxJOTzH.js → BlockPreviewCanvas-DIZ0KgUD.js} +3 -3
  4. package/dist/{CloudHeaderExtras-BzM1QU1r.js → CloudHeaderExtras-ehMYJP68.js} +1 -1
  5. package/dist/{CloudPanels-d36YXXyn.js → CloudPanels-BwOaAlKz.js} +2 -2
  6. package/dist/{CollaboratorBar-rwXe_Qd2.js → CollaboratorBar-qOZFRNPx.js} +1 -1
  7. package/dist/{CountdownToolbar-lbjCc8ik.js → CountdownToolbar-BeF21SeB.js} +4 -4
  8. package/dist/{DesignReferenceSidebar-zlJQsP0X.js → DesignReferenceSidebar-zH93uB15.js} +1 -1
  9. package/dist/{IssuesPanel-CHx3m8SP.js → IssuesPanel-Dltw9haP.js} +1 -1
  10. package/dist/{LogicTagInsertButton-BvftbkL4.js → LogicTagInsertButton-CHa-UD76.js} +12 -12
  11. package/dist/{MergeTagInput-CR1kcj8X.js → MergeTagInput-B3ntd4dN.js} +1 -1
  12. package/dist/{MergeTagModeToggle-DssKrVYb.js → MergeTagModeToggle-C_06ZL0Q.js} +1 -1
  13. package/dist/{ParagraphEditor-DFizsZRc.js → ParagraphEditor-CxuW3TV0.js} +6 -6
  14. package/dist/{RestoreVersionDialog-Cp3q2mU4.js → RestoreVersionDialog-B1n37M1Z.js} +1 -1
  15. package/dist/{RichTextEditorContent-Cj3oaPMk.js → RichTextEditorContent-CP_uULWB.js} +2 -2
  16. package/dist/{SaveBlockDialog-BR8vW_XF.js → SaveBlockDialog-BSKX_7_v.js} +5 -5
  17. package/dist/{SavedBlocksBrowserModal-DmwbmKxI.js → SavedBlocksBrowserModal-CHKrH1gO.js} +4 -4
  18. package/dist/{SavedBlocksPanels-D4XKrs-a.js → SavedBlocksPanels-B-xDqBcz.js} +1 -1
  19. package/dist/{SavedBlocksPickBar-gfc-o5sR.js → SavedBlocksPickBar-D2J-g82g.js} +1 -1
  20. package/dist/{TemplateSettings-D7aNrd0d.js → TemplateSettings-D07K_Y4m.js} +4 -4
  21. package/dist/{TestEmailModal-DUmtcSm-.js → TestEmailModal-BNPw_lID.js} +5 -5
  22. package/dist/{TestEmailPanel-s9gISTI8.js → TestEmailPanel-8klWo8hE.js} +1 -1
  23. package/dist/{TitleEditor-C-uHqtml.js → TitleEditor-CmC9OuhA.js} +4 -4
  24. package/dist/{ToggleSwitch-CTwwCIVA.js → ToggleSwitch-COeyWGfT.js} +1 -1
  25. package/dist/{Toolbar-CLpA36RO.js → Toolbar-CqhRb6EM.js} +36 -36
  26. package/dist/{TplModal-D6XtxusQ.js → TplModal-BGFawHY9.js} +1 -1
  27. package/dist/{VersionHistoryPanels-Dvowtt7V.js → VersionHistoryPanels-DdbGjEOR.js} +1 -1
  28. package/dist/{WrapperBlock-CzJa2Mxw.js → WrapperBlock-CTkmA887.js} +1 -1
  29. package/dist/{blockTypeIcons-D3aj5u_5.js → blockTypeIcons-CVKo6V_v.js} +1 -1
  30. package/dist/bundle-stats.json +6 -6
  31. package/dist/cdn/chunks/{AiChatSidebar-SRGBP-SL.js → AiChatSidebar-kCK4NZM9.js} +2 -2
  32. package/dist/cdn/chunks/{AiChatSidebar-SRGBP-SL.js.map → AiChatSidebar-kCK4NZM9.js.map} +1 -1
  33. package/dist/cdn/chunks/{AiFeatureMenu-oZhlgsGh.js → AiFeatureMenu-K1dLeDft.js} +2 -2
  34. package/dist/cdn/chunks/{AiFeatureMenu-oZhlgsGh.js.map → AiFeatureMenu-K1dLeDft.js.map} +1 -1
  35. package/dist/cdn/chunks/{BlockPreviewCanvas-hKxE6f-k.js → BlockPreviewCanvas-Djz9YAFx.js} +4 -4
  36. package/dist/cdn/chunks/{BlockPreviewCanvas-hKxE6f-k.js.map → BlockPreviewCanvas-Djz9YAFx.js.map} +1 -1
  37. package/dist/cdn/chunks/{CloudHeaderExtras-t-_ZlHwn.js → CloudHeaderExtras-5ONQ1RCa.js} +2 -2
  38. package/dist/cdn/chunks/{CloudHeaderExtras-t-_ZlHwn.js.map → CloudHeaderExtras-5ONQ1RCa.js.map} +1 -1
  39. package/dist/cdn/chunks/{CloudPanels-DR2eEcpX.js → CloudPanels-_irSdWbi.js} +3 -3
  40. package/dist/cdn/chunks/{CloudPanels-DR2eEcpX.js.map → CloudPanels-_irSdWbi.js.map} +1 -1
  41. package/dist/cdn/chunks/{CollaboratorBar-w8_2WPE0.js → CollaboratorBar-CZufI1On.js} +2 -2
  42. package/dist/cdn/chunks/{CollaboratorBar-w8_2WPE0.js.map → CollaboratorBar-CZufI1On.js.map} +1 -1
  43. package/dist/cdn/chunks/{CountdownToolbar-CvNuDR5Z.js → CountdownToolbar-BaXCefQM.js} +5 -5
  44. package/dist/cdn/chunks/{CountdownToolbar-CvNuDR5Z.js.map → CountdownToolbar-BaXCefQM.js.map} +1 -1
  45. package/dist/cdn/chunks/{DesignReferenceSidebar-CJg_5GXU.js → DesignReferenceSidebar-GjkpHylX.js} +2 -2
  46. package/dist/cdn/chunks/{DesignReferenceSidebar-CJg_5GXU.js.map → DesignReferenceSidebar-GjkpHylX.js.map} +1 -1
  47. package/dist/cdn/chunks/{IssuesPanel-DXqlRk19.js → IssuesPanel-C1Lv2y_O.js} +2 -2
  48. package/dist/cdn/chunks/{IssuesPanel-DXqlRk19.js.map → IssuesPanel-C1Lv2y_O.js.map} +1 -1
  49. package/dist/cdn/chunks/{LogicTagInsertButton-DnHghQHb.js → LogicTagInsertButton-BYjdrDnQ.js} +4 -4
  50. package/dist/cdn/chunks/{LogicTagInsertButton-DnHghQHb.js.map → LogicTagInsertButton-BYjdrDnQ.js.map} +1 -1
  51. package/dist/cdn/chunks/{MergeTagInput-heTX9P_k.js → MergeTagInput-Cx67J_vg.js} +2 -2
  52. package/dist/cdn/chunks/{MergeTagInput-heTX9P_k.js.map → MergeTagInput-Cx67J_vg.js.map} +1 -1
  53. package/dist/cdn/chunks/{MergeTagModeToggle-C9EfuZIP.js → MergeTagModeToggle-DZ4EuXVp.js} +2 -2
  54. package/dist/cdn/chunks/{MergeTagModeToggle-C9EfuZIP.js.map → MergeTagModeToggle-DZ4EuXVp.js.map} +1 -1
  55. package/dist/cdn/chunks/{ParagraphEditor-B5DN4Sy4.js → ParagraphEditor-DndEFXmR.js} +7 -7
  56. package/dist/cdn/chunks/{ParagraphEditor-B5DN4Sy4.js.map → ParagraphEditor-DndEFXmR.js.map} +1 -1
  57. package/dist/cdn/chunks/{RestoreVersionDialog-DBgJ-Nui.js → RestoreVersionDialog-CFYs13a4.js} +2 -2
  58. package/dist/cdn/chunks/{RestoreVersionDialog-DBgJ-Nui.js.map → RestoreVersionDialog-CFYs13a4.js.map} +1 -1
  59. package/dist/cdn/chunks/{RichTextEditorContent-LOas4rfU.js → RichTextEditorContent-DKkDQ0dc.js} +3 -3
  60. package/dist/cdn/chunks/{RichTextEditorContent-LOas4rfU.js.map → RichTextEditorContent-DKkDQ0dc.js.map} +1 -1
  61. package/dist/cdn/chunks/{SaveBlockDialog-Dx-QVQCX.js → SaveBlockDialog-BOA2RaC_.js} +6 -6
  62. package/dist/cdn/chunks/{SaveBlockDialog-Dx-QVQCX.js.map → SaveBlockDialog-BOA2RaC_.js.map} +1 -1
  63. package/dist/cdn/chunks/{SavedBlocksBrowserModal-C2RQ-JCc.js → SavedBlocksBrowserModal-DQDVek3K.js} +4 -4
  64. package/dist/cdn/chunks/{SavedBlocksBrowserModal-C2RQ-JCc.js.map → SavedBlocksBrowserModal-DQDVek3K.js.map} +1 -1
  65. package/dist/cdn/chunks/{SavedBlocksPanels-BmRbvqqL.js → SavedBlocksPanels-Lu3tJ3QA.js} +2 -2
  66. package/dist/cdn/chunks/{SavedBlocksPanels-BmRbvqqL.js.map → SavedBlocksPanels-Lu3tJ3QA.js.map} +1 -1
  67. package/dist/cdn/chunks/{SavedBlocksPickBar-BzwKojoJ.js → SavedBlocksPickBar-D7MtqG6r.js} +2 -2
  68. package/dist/cdn/chunks/{SavedBlocksPickBar-BzwKojoJ.js.map → SavedBlocksPickBar-D7MtqG6r.js.map} +1 -1
  69. package/dist/cdn/chunks/{TemplateSettings-G-yV7C1C.js → TemplateSettings-rZiHmq24.js} +5 -5
  70. package/dist/cdn/chunks/{TemplateSettings-G-yV7C1C.js.map → TemplateSettings-rZiHmq24.js.map} +1 -1
  71. package/dist/cdn/chunks/{TestEmailModal-lOeztfTN.js → TestEmailModal-DWEyHXH2.js} +6 -6
  72. package/dist/cdn/chunks/{TestEmailModal-lOeztfTN.js.map → TestEmailModal-DWEyHXH2.js.map} +1 -1
  73. package/dist/cdn/chunks/{TestEmailPanel-CZswVkk_.js → TestEmailPanel-XXMD-Lnr.js} +2 -2
  74. package/dist/cdn/chunks/{TestEmailPanel-CZswVkk_.js.map → TestEmailPanel-XXMD-Lnr.js.map} +1 -1
  75. package/dist/cdn/chunks/{TitleEditor-CnTT2Y3H.js → TitleEditor-D1F0YoE-.js} +4 -4
  76. package/dist/cdn/chunks/{TitleEditor-CnTT2Y3H.js.map → TitleEditor-D1F0YoE-.js.map} +1 -1
  77. package/dist/cdn/chunks/{ToggleSwitch-CLHteVMO.js → ToggleSwitch-B5U9cqhi.js} +2 -2
  78. package/dist/cdn/chunks/{ToggleSwitch-CLHteVMO.js.map → ToggleSwitch-B5U9cqhi.js.map} +1 -1
  79. package/dist/cdn/chunks/{Toolbar-K4tIkpG1.js → Toolbar-C_5HfUQq.js} +55 -55
  80. package/dist/cdn/chunks/{Toolbar-K4tIkpG1.js.map → Toolbar-C_5HfUQq.js.map} +1 -1
  81. package/dist/cdn/chunks/{TplModal-OOT36AjS.js → TplModal-CYBbPCHL.js} +2 -2
  82. package/dist/cdn/chunks/{TplModal-OOT36AjS.js.map → TplModal-CYBbPCHL.js.map} +1 -1
  83. package/dist/cdn/chunks/{VersionHistoryPanels-BrpYRSfW.js → VersionHistoryPanels-Dq12VsTX.js} +2 -2
  84. package/dist/cdn/chunks/{VersionHistoryPanels-BrpYRSfW.js.map → VersionHistoryPanels-Dq12VsTX.js.map} +1 -1
  85. package/dist/cdn/chunks/{WrapperBlock-DdrnwH80.js → WrapperBlock-CJ0CLqi2.js} +2 -2
  86. package/dist/cdn/chunks/{WrapperBlock-DdrnwH80.js.map → WrapperBlock-CJ0CLqi2.js.map} +1 -1
  87. package/dist/cdn/chunks/{cloud-bhW8qTnh.js → cloud-h1vaHp2p.js} +2 -2
  88. package/dist/cdn/chunks/{cloud-bhW8qTnh.js.map → cloud-h1vaHp2p.js.map} +1 -1
  89. package/dist/cdn/chunks/{createCloudRuntime-CeRJkLR2.js → createCloudRuntime-bJN9EM1H.js} +3 -3
  90. package/dist/cdn/chunks/{createCloudRuntime-CeRJkLR2.js.map → createCloudRuntime-bJN9EM1H.js.map} +1 -1
  91. package/dist/cdn/chunks/{extensions-xjRsIjMP.js → extensions-CrmXF4MW.js} +6 -6
  92. package/dist/cdn/chunks/extensions-CrmXF4MW.js.map +1 -0
  93. package/dist/{preRenderCustomBlocks-DAS48ZCp.js → cdn/chunks/preRenderCustomBlocks-CyGB3lZr.js} +5 -3
  94. package/dist/cdn/chunks/{preRenderCustomBlocks-CFwa7nP9.js.map → preRenderCustomBlocks-CyGB3lZr.js.map} +1 -1
  95. package/dist/cdn/chunks/{socialIcons-CsYnPPll.js → socialIcons-ClJVDZwt.js} +82 -101
  96. package/dist/cdn/chunks/socialIcons-ClJVDZwt.js.map +1 -0
  97. package/dist/cdn/chunks/{src-HA9F2kvk.js → src-B0pZeTYO.js} +200 -183
  98. package/dist/cdn/chunks/src-B0pZeTYO.js.map +1 -0
  99. package/dist/cdn/chunks/{src-CkXmV2I2.js → src-BMw3u-iV.js} +213 -215
  100. package/dist/cdn/chunks/src-BMw3u-iV.js.map +1 -0
  101. package/dist/cdn/chunks/{src-BcqNlDMe.js → src-Bh0MoJ67.js} +280 -187
  102. package/dist/cdn/chunks/src-Bh0MoJ67.js.map +1 -0
  103. package/dist/cdn/chunks/{useEditorCore-BF1ZhcGu.js → useEditorCore-DuC7kVti.js} +323 -319
  104. package/dist/cdn/chunks/useEditorCore-DuC7kVti.js.map +1 -0
  105. package/dist/cdn/chunks/{useLogicTag-91bO_SOi.js → useLogicTag-B3uV3XHG.js} +2 -2
  106. package/dist/cdn/chunks/{useLogicTag-91bO_SOi.js.map → useLogicTag-B3uV3XHG.js.map} +1 -1
  107. package/dist/cdn/chunks/{useMergeTag-hwifK582.js → useMergeTag-DJLM-7WQ.js} +2 -2
  108. package/dist/cdn/chunks/{useMergeTag-hwifK582.js.map → useMergeTag-DJLM-7WQ.js.map} +1 -1
  109. package/dist/cdn/chunks/{useScrollToBlock-BDNJ25X1.js → useScrollToBlock-CpmB5KxW.js} +2 -3
  110. package/dist/cdn/chunks/useScrollToBlock-CpmB5KxW.js.map +1 -0
  111. package/dist/cdn/chunks/withCurrentFont-isIyuezD.js +21 -0
  112. package/dist/cdn/chunks/withCurrentFont-isIyuezD.js.map +1 -0
  113. package/dist/cdn/editor.css +1 -1
  114. package/dist/cdn/editor.js +435 -417
  115. package/dist/cdn/editor.js.map +1 -1
  116. package/dist/{cloud-CVfwPu19.js → cloud-DPGjMGfv.js} +1 -1
  117. package/dist/{createCloudRuntime-GRv_TDb2.js → createCloudRuntime-D0RRgWab.js} +2 -2
  118. package/dist/{dist-CSaWqmWM.js → dist-BI_LeQGl.js} +271 -200
  119. package/dist/{extensions-B65sfZRk.js → extensions-CYigjb1g.js} +13 -13
  120. package/dist/index.d.ts +34 -12
  121. package/dist/{cdn/chunks/preRenderCustomBlocks-CFwa7nP9.js → preRenderCustomBlocks-DokBGA_M.js} +3 -5
  122. package/dist/{socialIcons-CvAixjj8.js → socialIcons-Ct_IoqPQ.js} +107 -126
  123. package/dist/style.css +1 -1
  124. package/dist/templatical-editor.js +456 -438
  125. package/dist/{useEditorCore-DQSeKPE9.js → useEditorCore-BJAQMvNW.js} +482 -478
  126. package/dist/{useLogicTag-BH87j1vZ.js → useLogicTag-B5gjcMzn.js} +1 -1
  127. package/dist/{useMergeTag-DfPKX2Tk.js → useMergeTag-BwsBIDzR.js} +3 -3
  128. package/dist/{useScrollToBlock-Dr7Sb6Tr.js → useScrollToBlock-JRxhT1u_.js} +1 -2
  129. package/dist/withCurrentFont-C9vqrduu.js +19 -0
  130. package/package.json +8 -8
  131. package/dist/cdn/chunks/extensions-xjRsIjMP.js.map +0 -1
  132. package/dist/cdn/chunks/socialIcons-CsYnPPll.js.map +0 -1
  133. package/dist/cdn/chunks/src-BcqNlDMe.js.map +0 -1
  134. package/dist/cdn/chunks/src-CkXmV2I2.js.map +0 -1
  135. package/dist/cdn/chunks/src-HA9F2kvk.js.map +0 -1
  136. package/dist/cdn/chunks/useEditorCore-BF1ZhcGu.js.map +0 -1
  137. package/dist/cdn/chunks/useScrollToBlock-BDNJ25X1.js.map +0 -1
  138. package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js +0 -32
  139. package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js.map +0 -1
  140. package/dist/withCurrentFont-DeCbPVaE.js +0 -30
@@ -1,13 +1,13 @@
1
1
  import { n as e } from "./rolldown-runtime-B0aSnxlc.js";
2
- import { $ as t, X as n, at as r, ct as i, et as a, lt as o, nt as s, rt as c, st as ee, tt as l, ut as te, vt as ne } from "./src-BcqNlDMe.js";
3
- import { t as u } from "./htmlparser-CDRsn-gn.js";
2
+ import { Ct as t, at as n, ct as r, ft as i, ht as a, it as o, mt as s, ot as c, pt as l, st as u, tt as d, ut as ee } from "./src-Bh0MoJ67.js";
3
+ import { t as f } from "./htmlparser-CDRsn-gn.js";
4
4
  //#region ../quality/src/types.ts
5
- var d = {
5
+ var te = {
6
6
  altMaxLength: 125,
7
7
  minFontSize: 14,
8
8
  allCapsMinLength: 20,
9
9
  minTouchTargetPx: 44
10
- }, f = [
10
+ }, ne = [
11
11
  "localhost",
12
12
  "127.0.0.1",
13
13
  "0.0.0.0",
@@ -18,21 +18,21 @@ var d = {
18
18
  //#endregion
19
19
  //#region ../quality/src/contrast.ts
20
20
  function p(e, t) {
21
- let n = m(e), r = m(t);
21
+ let n = g(e), r = g(t);
22
22
  if (!n || !r) return NaN;
23
- let i = g(n), a = g(r), o = Math.max(i, a), s = Math.min(i, a);
23
+ let i = v(n), a = v(r), o = Math.max(i, a), s = Math.min(i, a);
24
24
  return (o + .05) / (s + .05);
25
25
  }
26
- var re = /^#?([0-9a-f])([0-9a-f])([0-9a-f])$/i, ie = /^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i, ae = /^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i;
27
- function m(e) {
26
+ var re = /^#?([0-9a-f])([0-9a-f])([0-9a-f])$/i, m = /^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i, h = /^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i;
27
+ function g(e) {
28
28
  if (typeof e != "string") return null;
29
- let t = e.trim(), n = ae.exec(t);
29
+ let t = e.trim(), n = h.exec(t);
30
30
  if (n) return n[4].toLowerCase() === "ff" ? {
31
31
  r: parseInt(n[1], 16),
32
32
  g: parseInt(n[2], 16),
33
33
  b: parseInt(n[3], 16)
34
34
  } : null;
35
- let r = ie.exec(t);
35
+ let r = m.exec(t);
36
36
  if (r) return {
37
37
  r: parseInt(r[1], 16),
38
38
  g: parseInt(r[2], 16),
@@ -45,56 +45,56 @@ function m(e) {
45
45
  b: parseInt(i[3] + i[3], 16)
46
46
  } : null;
47
47
  }
48
- function h(e) {
49
- return m(e ?? "") !== null;
48
+ function _(e) {
49
+ return g(e ?? "") !== null;
50
50
  }
51
- function g({ r: e, g: t, b: n }) {
52
- let r = _(e / 255), i = _(t / 255), a = _(n / 255);
51
+ function v({ r: e, g: t, b: n }) {
52
+ let r = y(e / 255), i = y(t / 255), a = y(n / 255);
53
53
  return .2126 * r + .7152 * i + .0722 * a;
54
54
  }
55
- function _(e) {
55
+ function y(e) {
56
56
  return e <= .03928 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4;
57
57
  }
58
58
  //#endregion
59
59
  //#region ../quality/src/walk.ts
60
- var v = "#ffffff", y = "#1a1a1a";
61
- function b(e, t) {
62
- let n = h(e.settings.backgroundColor) ? e.settings.backgroundColor.toLowerCase() : v, r = h(e.settings.textColor) ? e.settings.textColor.toLowerCase() : y, i = (e, n) => {
63
- let r = e.styles?.backgroundColor, a = h(r) ? r.toLowerCase() : n.resolvedBackgroundColor;
64
- if (t(e, a === n.resolvedBackgroundColor ? n : {
60
+ var ie = "#ffffff", b = "#1a1a1a";
61
+ function x(e, t) {
62
+ let n = _(e.settings.backgroundColor) ? e.settings.backgroundColor.toLowerCase() : ie, i = _(e.settings.textColor) ? e.settings.textColor.toLowerCase() : b, o = (e, n) => {
63
+ let i = e.styles?.backgroundColor, s = _(i) ? i.toLowerCase() : n.resolvedBackgroundColor;
64
+ if (t(e, s === n.resolvedBackgroundColor ? n : {
65
65
  ...n,
66
- resolvedBackgroundColor: a
67
- }), te(e)) for (let t of e.children) i(t, {
66
+ resolvedBackgroundColor: s
67
+ }), a(e)) for (let t of e.children) o(t, {
68
68
  parent: e,
69
69
  section: n.section,
70
70
  columnIndex: null,
71
71
  depth: n.depth + 1,
72
- resolvedBackgroundColor: a,
72
+ resolvedBackgroundColor: s,
73
73
  resolvedTextColor: n.resolvedTextColor
74
74
  });
75
- else c(e) && e.children.forEach((t, r) => {
76
- t.forEach((t) => i(t, {
75
+ else r(e) && e.children.forEach((t, r) => {
76
+ t.forEach((t) => o(t, {
77
77
  parent: e,
78
78
  section: e,
79
79
  columnIndex: r,
80
80
  depth: n.depth + 1,
81
- resolvedBackgroundColor: a,
81
+ resolvedBackgroundColor: s,
82
82
  resolvedTextColor: n.resolvedTextColor
83
83
  }));
84
84
  });
85
85
  };
86
- for (let t of e.blocks) i(t, {
86
+ for (let t of e.blocks) o(t, {
87
87
  parent: null,
88
88
  section: null,
89
89
  columnIndex: null,
90
90
  depth: 0,
91
91
  resolvedBackgroundColor: n,
92
- resolvedTextColor: r
92
+ resolvedTextColor: i
93
93
  });
94
94
  }
95
95
  //#endregion
96
96
  //#region ../quality/src/run-rules.ts
97
- function x(e, t, n, r) {
97
+ function S(e, t, n, r) {
98
98
  let i = [];
99
99
  function a(e, t, i) {
100
100
  return {
@@ -105,7 +105,7 @@ function x(e, t, n, r) {
105
105
  fix: i.fix
106
106
  };
107
107
  }
108
- b(e, (e, r) => {
108
+ x(e, (e, r) => {
109
109
  for (let o of t) {
110
110
  let t = n.severity(o.meta.id);
111
111
  if (t === "off" || !o.block) continue;
@@ -121,11 +121,11 @@ function x(e, t, n, r) {
121
121
  }
122
122
  return i;
123
123
  }
124
- function S(e) {
124
+ function C(e) {
125
125
  let t = e.overrides ?? {}, n = {
126
- ...d,
126
+ ...te,
127
127
  ...e.thresholds ?? {}
128
- }, r = { nonProductionHosts: e.nonProductionHosts ?? f }, i = e.locale ?? "en", a = e.rules;
128
+ }, r = { nonProductionHosts: e.nonProductionHosts ?? ne }, i = e.locale ?? "en", a = e.rules;
129
129
  return {
130
130
  locale: i,
131
131
  rules: t,
@@ -137,8 +137,8 @@ function S(e) {
137
137
  }
138
138
  };
139
139
  }
140
- function oe(e, t, n) {
141
- return S({
140
+ function ae(e, t, n) {
141
+ return C({
142
142
  locale: e,
143
143
  rules: n,
144
144
  overrides: t.rules,
@@ -146,8 +146,8 @@ function oe(e, t, n) {
146
146
  nonProductionHosts: void 0
147
147
  });
148
148
  }
149
- function se(e, t, n) {
150
- return S({
149
+ function oe(e, t, n) {
150
+ return C({
151
151
  locale: e,
152
152
  rules: n,
153
153
  overrides: t.rules,
@@ -155,8 +155,8 @@ function se(e, t, n) {
155
155
  nonProductionHosts: void 0
156
156
  });
157
157
  }
158
- function ce(e, t, n) {
159
- return S({
158
+ function se(e, t, n) {
159
+ return C({
160
160
  locale: e,
161
161
  rules: n,
162
162
  overrides: t.rules,
@@ -166,7 +166,7 @@ function ce(e, t, n) {
166
166
  }
167
167
  //#endregion
168
168
  //#region ../quality/src/accessibility/messages/de.ts
169
- var le = /* @__PURE__ */ e({ default: () => ue }), ue = {
169
+ var ce = /* @__PURE__ */ e({ default: () => le }), le = {
170
170
  "a11y.img-missing-alt": "Bild ohne Alt-Text. Füge eine kurze Beschreibung hinzu oder markiere das Bild als dekorativ.",
171
171
  "a11y.img-alt-is-filename": "Alt-Text sieht wie ein Dateiname aus (\"{alt}\"). Beschreibe stattdessen kurz, was das Bild zeigt.",
172
172
  "a11y.img-alt-too-long": "Alt-Text ist {length} Zeichen lang; bleibe unter {max}.",
@@ -188,7 +188,7 @@ var le = /* @__PURE__ */ e({ default: () => ue }), ue = {
188
188
  "a11y.button-touch-target": "Button ist etwa {height}px hoch; mindestens {min}px verwenden, um Fehltipper auf Mobilgeräten zu vermeiden.",
189
189
  "a11y.button-low-contrast": "Buttontextkontrast beträgt {ratio}:1; WCAG AA verlangt mindestens {required}:1.",
190
190
  "a11y.missing-preheader": "Kein Preheader-Text gesetzt. Postfächer zeigen sonst Bruchstücke des ersten Blocks an."
191
- }, de = /* @__PURE__ */ e({ default: () => C }), C = {
191
+ }, ue = /* @__PURE__ */ e({ default: () => w }), w = {
192
192
  "a11y.img-missing-alt": "Image is missing alt text. Add a short description, or mark the image as decorative.",
193
193
  "a11y.img-alt-is-filename": "Alt text looks like a filename (\"{alt}\"). Replace with a short description of what the image conveys.",
194
194
  "a11y.img-alt-too-long": "Alt text is {length} characters; aim for under {max}.",
@@ -210,76 +210,76 @@ var le = /* @__PURE__ */ e({ default: () => ue }), ue = {
210
210
  "a11y.button-touch-target": "Button is roughly {height}px tall; aim for at least {min}px to avoid mis-taps on mobile.",
211
211
  "a11y.button-low-contrast": "Button text contrast is {ratio}:1; WCAG AA requires at least {required}:1.",
212
212
  "a11y.missing-preheader": "No preheader text set. Inboxes will fall back to fragments of the first block."
213
- }, w = /* #__PURE__ */ Object.assign({
214
- "./de.ts": le,
215
- "./en.ts": de
216
- }), T = {};
217
- for (let e in w) {
213
+ }, T = /* #__PURE__ */ Object.assign({
214
+ "./de.ts": ce,
215
+ "./en.ts": ue
216
+ }), E = {};
217
+ for (let e in T) {
218
218
  let t = /\.\/([^/]+)\.ts$/.exec(e);
219
219
  if (!t) continue;
220
220
  let n = t[1];
221
- n !== "index" && (T[n] = w[e].default);
221
+ n !== "index" && (E[n] = T[e].default);
222
222
  }
223
- function fe(e) {
224
- return T[e.split("-")[0]?.toLowerCase() ?? "en"] ?? T.en ?? C;
223
+ function de(e) {
224
+ return E[e.split("-")[0]?.toLowerCase() ?? "en"] ?? E.en ?? w;
225
225
  }
226
- function pe(e, t, n) {
227
- let r = fe(e)[t] ?? C[t];
226
+ function fe(e, t, n) {
227
+ let r = de(e)[t] ?? w[t];
228
228
  return n ? r.replace(/\{(\w+)\}/g, (e, t) => {
229
229
  let r = n[t];
230
230
  return r === void 0 ? `{${t}}` : String(r);
231
231
  }) : r;
232
232
  }
233
- var me = {
233
+ var pe = {
234
234
  meta: {
235
235
  id: "a11y.img-missing-alt",
236
236
  severity: "error"
237
237
  },
238
238
  block(e) {
239
- return !a(e) || e.decorative === !0 || (e.alt?.trim() ?? "") !== "" || (e.src ?? "").trim() === "" ? null : { blockId: e.id };
239
+ return !n(e) || e.decorative === !0 || (e.alt?.trim() ?? "") !== "" || (e.src ?? "").trim() === "" ? null : { blockId: e.id };
240
240
  }
241
- }, he = {
241
+ }, me = {
242
242
  id: "a11y.img-alt-is-filename",
243
243
  severity: "warning"
244
- }, ge = [
244
+ }, he = [
245
245
  /\.(jpe?g|png|gif|webp|svg)$/i,
246
246
  /^IMG[_-]?\d+/i,
247
247
  /^Untitled/i,
248
248
  /^Screen[\s_-]?Shot/i,
249
249
  /^DSC[_-]?\d+/i
250
- ], _e = {
251
- meta: he,
250
+ ], ge = {
251
+ meta: me,
252
252
  block(e) {
253
- if (!a(e) || e.decorative === !0) return null;
253
+ if (!n(e) || e.decorative === !0) return null;
254
254
  let t = e.alt?.trim() ?? "";
255
- return t === "" || !ge.some((e) => e.test(t)) ? null : {
255
+ return t === "" || !he.some((e) => e.test(t)) ? null : {
256
256
  blockId: e.id,
257
257
  params: { alt: t }
258
258
  };
259
259
  }
260
- }, ve = {
260
+ }, _e = {
261
261
  meta: {
262
262
  id: "a11y.img-alt-too-long",
263
263
  severity: "warning"
264
264
  },
265
- block(e, t, n) {
266
- if (!a(e) || e.decorative === !0) return null;
267
- let r = e.alt ?? "";
268
- return r.length <= n.thresholds.altMaxLength ? null : {
265
+ block(e, t, r) {
266
+ if (!n(e) || e.decorative === !0) return null;
267
+ let i = e.alt ?? "";
268
+ return i.length <= r.thresholds.altMaxLength ? null : {
269
269
  blockId: e.id,
270
270
  params: {
271
- length: r.length,
272
- max: n.thresholds.altMaxLength
271
+ length: i.length,
272
+ max: r.thresholds.altMaxLength
273
273
  }
274
274
  };
275
275
  }
276
- }, ye = {
276
+ }, ve = {
277
277
  meta: {
278
278
  id: "a11y.img-decorative-needs-empty-alt",
279
279
  severity: "info"
280
280
  },
281
281
  block(e) {
282
- return !a(e) || e.decorative !== !0 || (e.alt ?? "").trim() === "" ? null : {
282
+ return !n(e) || e.decorative !== !0 || (e.alt ?? "").trim() === "" ? null : {
283
283
  blockId: e.id,
284
284
  fix: {
285
285
  description: "Clear alt text",
@@ -287,7 +287,7 @@ var me = {
287
287
  }
288
288
  };
289
289
  }
290
- }, be = /* @__PURE__ */ e({ default: () => xe }), xe = {
290
+ }, ye = /* @__PURE__ */ e({ default: () => be }), be = {
291
291
  vagueLinkText: [
292
292
  "hier klicken",
293
293
  "hier",
@@ -330,7 +330,7 @@ var me = {
330
330
  "anschauen",
331
331
  "jetzt"
332
332
  ]
333
- }, Se = /* @__PURE__ */ e({ default: () => E }), E = {
333
+ }, xe = /* @__PURE__ */ e({ default: () => Se }), Se = {
334
334
  vagueLinkText: [
335
335
  "click here",
336
336
  "here",
@@ -372,8 +372,8 @@ var me = {
372
372
  "watch"
373
373
  ]
374
374
  }, D = /* #__PURE__ */ Object.assign({
375
- "./de.ts": be,
376
- "./en.ts": Se
375
+ "./de.ts": ye,
376
+ "./en.ts": xe
377
377
  }), O = {};
378
378
  for (let e in D) {
379
379
  let t = /\.\/([^/]+)\.ts$/.exec(e);
@@ -402,12 +402,12 @@ var Ce = {
402
402
  id: "a11y.img-linked-no-context",
403
403
  severity: "warning"
404
404
  },
405
- block(e, t, n) {
406
- if (!a(e) || e.decorative === !0 || !e.linkUrl || e.linkUrl.trim() === "") return null;
407
- let r = (e.alt ?? "").trim();
408
- if (r === "") return null;
409
- let i = r.toLocaleLowerCase().split(/[^\p{L}\p{N}]+/u).filter(Boolean), o = k(n.locale).linkedImageActionHints;
410
- return i.some((e) => o.includes(e)) ? null : { blockId: e.id };
405
+ block(e, t, r) {
406
+ if (!n(e) || e.decorative === !0 || !e.linkUrl || e.linkUrl.trim() === "") return null;
407
+ let i = (e.alt ?? "").trim();
408
+ if (i === "") return null;
409
+ let a = i.toLocaleLowerCase().split(/[^\p{L}\p{N}]+/u).filter(Boolean), o = k(r.locale).linkedImageActionHints;
410
+ return a.some((e) => o.includes(e)) ? null : { blockId: e.id };
411
411
  }
412
412
  };
413
413
  //#endregion
@@ -415,7 +415,7 @@ var Ce = {
415
415
  function N(e) {
416
416
  let t = [], n = null, r = "", i = () => {
417
417
  n !== null && (n.text = r.trim(), t.push(n), n = null, r = "");
418
- }, a = new u({
418
+ }, a = new f({
419
419
  onopentag(e, t) {
420
420
  e === "a" ? (i(), n = {
421
421
  href: t.href ?? "",
@@ -459,7 +459,7 @@ function Te(e) {
459
459
  return t;
460
460
  }
461
461
  function P(e) {
462
- let t = "", n = new u({ ontext(e) {
462
+ let t = "", n = new f({ ontext(e) {
463
463
  t += e;
464
464
  } });
465
465
  return n.write(e), n.end(), t.trim();
@@ -470,15 +470,15 @@ var Ee = {
470
470
  severity: "error"
471
471
  },
472
472
  block(e) {
473
- return !i(e) || P(e.content ?? "") !== "" ? null : { blockId: e.id };
473
+ return !l(e) || P(e.content ?? "") !== "" ? null : { blockId: e.id };
474
474
  }
475
475
  }, De = {
476
476
  id: "a11y.heading-skip-level",
477
477
  severity: "error"
478
478
  };
479
479
  function F(e, t) {
480
- for (let n of e) if (i(n)) t.push(n);
481
- else if (c(n)) for (let e of n.children) F(e, t);
480
+ for (let n of e) if (l(n)) t.push(n);
481
+ else if (r(n)) for (let e of n.children) F(e, t);
482
482
  }
483
483
  var Oe = {
484
484
  meta: De,
@@ -500,8 +500,8 @@ var Oe = {
500
500
  severity: "warning"
501
501
  };
502
502
  function I(e, t) {
503
- for (let n of e) if (i(n)) t.push(n);
504
- else if (c(n)) for (let e of n.children) I(e, t);
503
+ for (let n of e) if (l(n)) t.push(n);
504
+ else if (r(n)) for (let e of n.children) I(e, t);
505
505
  }
506
506
  var Ae = {
507
507
  meta: ke,
@@ -516,7 +516,7 @@ var Ae = {
516
516
  severity: "error"
517
517
  };
518
518
  function Me(e) {
519
- return s(e) || i(e) ? e.content : null;
519
+ return u(e) || l(e) ? e.content : null;
520
520
  }
521
521
  var Ne = {
522
522
  meta: je,
@@ -529,7 +529,7 @@ var Ne = {
529
529
  severity: "warning"
530
530
  };
531
531
  function Fe(e) {
532
- return s(e) || i(e) ? e.content : null;
532
+ return u(e) || l(e) ? e.content : null;
533
533
  }
534
534
  var Ie = {
535
535
  meta: Pe,
@@ -550,7 +550,7 @@ var Ie = {
550
550
  severity: "error"
551
551
  };
552
552
  function Re(e) {
553
- return s(e) || i(e) ? e.content : null;
553
+ return u(e) || l(e) ? e.content : null;
554
554
  }
555
555
  var ze = {
556
556
  meta: Le,
@@ -566,7 +566,7 @@ var ze = {
566
566
  severity: "warning"
567
567
  };
568
568
  function Ve(e) {
569
- return s(e) || i(e) ? e.content : null;
569
+ return u(e) || l(e) ? e.content : null;
570
570
  }
571
571
  function He(e) {
572
572
  if (e === null) return !1;
@@ -582,7 +582,7 @@ var Ue = {
582
582
  fix: {
583
583
  description: "Add rel=\"noopener\"",
584
584
  apply: (t) => {
585
- if (!s(e) && !i(e)) return;
585
+ if (!u(e) && !l(e)) return;
586
586
  let n = Ke(e.content ?? "");
587
587
  t.updateBlock(e.id, { content: n });
588
588
  }
@@ -624,7 +624,7 @@ var qe = {
624
624
  severity: "error"
625
625
  };
626
626
  function Je(e) {
627
- return s(e) || i(e) ? e.content : null;
627
+ return u(e) || l(e) ? e.content : null;
628
628
  }
629
629
  var Ye = {
630
630
  meta: qe,
@@ -638,7 +638,7 @@ var Ye = {
638
638
  severity: "warning"
639
639
  },
640
640
  block(e, t, n) {
641
- if (!s(e) && !i(e)) return null;
641
+ if (!u(e) && !l(e)) return null;
642
642
  let r = P(e.content ?? "").replace(/[^\p{L}]/gu, "");
643
643
  return r.length < n.thresholds.allCapsMinLength || ![...r].some((e) => e.toLocaleLowerCase() !== e.toLocaleUpperCase()) || r !== r.toLocaleUpperCase() ? null : { blockId: e.id };
644
644
  }
@@ -669,12 +669,12 @@ function tt(e) {
669
669
  var nt = {
670
670
  meta: Ze,
671
671
  block(e) {
672
- return !s(e) || !$e(e.content ?? "").some(z) ? null : {
672
+ return !u(e) || !$e(e.content ?? "").some(z) ? null : {
673
673
  blockId: e.id,
674
674
  fix: {
675
675
  description: "Remove justified alignment",
676
676
  apply: (t) => {
677
- s(e) && t.updateBlock(e.id, { content: tt(e.content ?? "") });
677
+ u(e) && t.updateBlock(e.id, { content: tt(e.content ?? "") });
678
678
  }
679
679
  }
680
680
  };
@@ -684,16 +684,16 @@ var nt = {
684
684
  id: "a11y.text-low-contrast",
685
685
  severity: "error"
686
686
  },
687
- block(e, t) {
688
- if (!i(e)) return null;
689
- let n = e.color ?? t.resolvedTextColor;
690
- if (!h(n) || !h(t.resolvedBackgroundColor)) return null;
691
- let r = ne[e.level] >= 24 ? 3 : 4.5, a = p(n, t.resolvedBackgroundColor);
692
- return Number.isNaN(a) || a >= r ? null : {
687
+ block(e, n) {
688
+ if (!l(e)) return null;
689
+ let r = e.color ?? n.resolvedTextColor;
690
+ if (!_(r) || !_(n.resolvedBackgroundColor)) return null;
691
+ let i = t[e.level] >= 24 ? 3 : 4.5, a = p(r, n.resolvedBackgroundColor);
692
+ return Number.isNaN(a) || a >= i ? null : {
693
693
  blockId: e.id,
694
694
  params: {
695
695
  ratio: a.toFixed(2),
696
- required: r
696
+ required: i
697
697
  }
698
698
  };
699
699
  }
@@ -702,15 +702,15 @@ var nt = {
702
702
  severity: "warning"
703
703
  };
704
704
  function at(e) {
705
- return l(e) || ee(e) ? e.fontSize : null;
705
+ return c(e) || i(e) ? e.fontSize : null;
706
706
  }
707
707
  //#endregion
708
708
  //#region ../quality/src/accessibility/index.ts
709
709
  var B = [
710
- me,
710
+ pe,
711
+ ge,
711
712
  _e,
712
713
  ve,
713
- ye,
714
714
  Ce,
715
715
  Ee,
716
716
  Oe,
@@ -741,10 +741,10 @@ var B = [
741
741
  id: "a11y.button-vague-label",
742
742
  severity: "warning"
743
743
  },
744
- block(e, t, r) {
745
- if (!n(e)) return null;
746
- let i = M(e.text ?? "");
747
- return i === "" || !k(r.locale).vagueButtonLabels.includes(i) ? null : {
744
+ block(e, t, n) {
745
+ if (!d(e)) return null;
746
+ let r = M(e.text ?? "");
747
+ return r === "" || !k(n.locale).vagueButtonLabels.includes(r) ? null : {
748
748
  blockId: e.id,
749
749
  params: { text: e.text }
750
750
  };
@@ -755,16 +755,16 @@ var B = [
755
755
  id: "a11y.button-touch-target",
756
756
  severity: "warning"
757
757
  },
758
- block(e, t, r) {
759
- if (!n(e)) return null;
760
- let i = e.buttonPadding;
761
- if (!i) return null;
762
- let a = e.fontSize * 1.4 + i.top + i.bottom;
763
- return a >= r.thresholds.minTouchTargetPx ? null : {
758
+ block(e, t, n) {
759
+ if (!d(e)) return null;
760
+ let r = e.buttonPadding;
761
+ if (!r) return null;
762
+ let i = e.fontSize * 1.4 + r.top + r.bottom;
763
+ return i >= n.thresholds.minTouchTargetPx ? null : {
764
764
  blockId: e.id,
765
765
  params: {
766
- height: Math.round(a),
767
- min: r.thresholds.minTouchTargetPx
766
+ height: Math.round(i),
767
+ min: n.thresholds.minTouchTargetPx
768
768
  }
769
769
  };
770
770
  }
@@ -775,15 +775,15 @@ var B = [
775
775
  severity: "error"
776
776
  },
777
777
  block(e) {
778
- if (!n(e)) return null;
778
+ if (!d(e)) return null;
779
779
  let t = p(e.textColor, e.backgroundColor);
780
780
  if (Number.isNaN(t)) return null;
781
- let r = e.fontSize >= 24 ? 3 : 4.5;
782
- return t >= r ? null : {
781
+ let n = e.fontSize >= 24 ? 3 : 4.5;
782
+ return t >= n ? null : {
783
783
  blockId: e.id,
784
784
  params: {
785
785
  ratio: t.toFixed(2),
786
- required: r
786
+ required: n
787
787
  }
788
788
  };
789
789
  }
@@ -799,7 +799,7 @@ var B = [
799
799
  }
800
800
  ];
801
801
  function ot(e, t = {}) {
802
- return t.disabled === !0 || t.accessibility === !1 ? [] : x(e, B, oe(t.locale, t.accessibility ?? {}, B), (e, t, n) => pe(e, t, n));
802
+ return t.disabled === !0 || t.accessibility === !1 ? [] : S(e, B, ae(t.locale, t.accessibility ?? {}, B), (e, t, n) => fe(e, t, n));
803
803
  }
804
804
  //#endregion
805
805
  //#region ../quality/src/structure/messages/de.ts
@@ -842,7 +842,7 @@ var ft = {
842
842
  severity: "error"
843
843
  };
844
844
  function W(e, t) {
845
- for (let n of e) if (t.set(n.id, (t.get(n.id) ?? 0) + 1), c(n)) for (let e of n.children) W(e, t);
845
+ for (let n of e) if (t.set(n.id, (t.get(n.id) ?? 0) + 1), r(n)) for (let e of n.children) W(e, t);
846
846
  }
847
847
  var pt = {
848
848
  meta: ft,
@@ -862,7 +862,7 @@ var pt = {
862
862
  };
863
863
  function G(e, t) {
864
864
  for (let n of e) {
865
- if (!c(n)) continue;
865
+ if (!r(n)) continue;
866
866
  let e = n;
867
867
  e.children.length > 1 && e.children.forEach((n, r) => {
868
868
  n.length === 0 && t.push({
@@ -889,7 +889,7 @@ function _t(e) {
889
889
  var vt = {
890
890
  meta: gt,
891
891
  block(e) {
892
- if (!c(e)) return null;
892
+ if (!r(e)) return null;
893
893
  let t = e;
894
894
  return _t(t) ? {
895
895
  blockId: t.id,
@@ -907,7 +907,7 @@ var vt = {
907
907
  severity: "error"
908
908
  },
909
909
  block(e, t) {
910
- return !c(e) || t.section === null ? null : {
910
+ return !r(e) || t.section === null ? null : {
911
911
  blockId: e.id,
912
912
  params: { parentId: t.section.id }
913
913
  };
@@ -929,21 +929,21 @@ var K = [
929
929
  {
930
930
  meta: bt,
931
931
  block(e) {
932
- if (!c(e)) return null;
933
- let t = e, n = xt(t.columns), r = t.children.length;
934
- return r === n ? null : {
932
+ if (!r(e)) return null;
933
+ let t = e, n = xt(t.columns), i = t.children.length;
934
+ return i === n ? null : {
935
935
  blockId: t.id,
936
936
  params: {
937
937
  layout: t.columns,
938
938
  expected: n,
939
- actual: r
939
+ actual: i
940
940
  }
941
941
  };
942
942
  }
943
943
  }
944
944
  ];
945
945
  function St(e, t = {}) {
946
- return t.disabled === !0 || t.structure === !1 ? [] : x(e, K, se(t.locale, t.structure ?? {}, K), (e, t, n) => dt(e, t, n));
946
+ return t.disabled === !0 || t.structure === !1 ? [] : S(e, K, oe(t.locale, t.structure ?? {}, K), (e, t, n) => dt(e, t, n));
947
947
  }
948
948
  //#endregion
949
949
  //#region ../quality/src/links/messages/de.ts
@@ -952,13 +952,15 @@ var Ct = /* @__PURE__ */ e({ default: () => wt }), wt = {
952
952
  "link.unsupported-protocol": "Die URL verwendet das Protokoll „{protocol}\", das von den meisten E-Mail-Clients nicht unterstützt wird. Verwende http, https, mailto, tel oder sms.",
953
953
  "link.malformed-mailto": "Der mailto:-Link ist fehlerhaft. Erwartet wird eine einzelne Empfängeradresse vor einer eventuellen Querystring (z. B. mailto:hallo@example.com).",
954
954
  "link.malformed-tel": "Der tel:-Link enthält Zeichen, die keine Ziffern, +, Leerzeichen, Bindestriche, Klammern oder Punkte sind.",
955
- "link.localhost-or-staging": "Der URL-Host „{host}\" entspricht einem Nicht-Produktionsmuster. Ersetze ihn vor dem Versand durch die Produktions-URL."
955
+ "link.localhost-or-staging": "Der URL-Host „{host}\" entspricht einem Nicht-Produktionsmuster. Ersetze ihn vor dem Versand durch die Produktions-URL.",
956
+ "link.relative-url": "Die URL „{url}\" ist relativ. Eine versendete E-Mail hat keine Seitenadresse, gegen die sie aufgelöst werden kann, daher funktioniert der Link nicht. Verwende eine absolute URL (https://…)."
956
957
  }, Tt = /* @__PURE__ */ e({ default: () => q }), q = {
957
958
  "link.javascript-protocol": "URL uses the \"{protocol}:\" protocol, which can execute arbitrary script and is stripped at render time for safety. Replace it with a real link or remove the URL.",
958
959
  "link.unsupported-protocol": "URL uses the \"{protocol}\" protocol, which most email clients do not support. Use http, https, mailto, tel, or sms.",
959
960
  "link.malformed-mailto": "mailto: link is malformed. Expected a single recipient address before any query string (e.g. mailto:hello@example.com).",
960
961
  "link.malformed-tel": "tel: link contains characters that are not digits, +, spaces, dashes, parentheses, or dots.",
961
- "link.localhost-or-staging": "URL host \"{host}\" matches a non-production pattern. Replace with the production URL before sending."
962
+ "link.localhost-or-staging": "URL host \"{host}\" matches a non-production pattern. Replace with the production URL before sending.",
963
+ "link.relative-url": "URL \"{url}\" is relative. A sent email has no page address to resolve it against, so the link breaks. Use an absolute URL (https://…)."
962
964
  }, J = /* #__PURE__ */ Object.assign({
963
965
  "./de.ts": Ct,
964
966
  "./en.ts": Tt
@@ -982,45 +984,45 @@ function Dt(e, t, n) {
982
984
  //#endregion
983
985
  //#region ../quality/src/url-walker.ts
984
986
  function X(e) {
985
- let c = [];
986
- return b(e, (e) => {
987
- if (i(e) || s(e) || t(e)) for (let t of N(e.content)) c.push({
988
- url: t.href,
987
+ let t = [];
988
+ return x(e, (e) => {
989
+ if (l(e) || u(e) || o(e)) for (let n of N(e.content)) t.push({
990
+ url: n.href,
989
991
  blockId: e.id,
990
992
  source: "anchor",
991
- label: t.text
993
+ label: n.text
992
994
  });
993
- else if (n(e)) c.push({
995
+ else if (d(e)) t.push({
994
996
  url: e.url,
995
997
  blockId: e.id,
996
998
  source: "button",
997
999
  label: e.text
998
1000
  });
999
- else if (a(e)) e.linkUrl && e.linkUrl !== "" && c.push({
1001
+ else if (n(e)) e.linkUrl && e.linkUrl !== "" && t.push({
1000
1002
  url: e.linkUrl,
1001
1003
  blockId: e.id,
1002
1004
  source: "image-link",
1003
1005
  label: e.alt || void 0
1004
1006
  });
1005
- else if (o(e)) c.push({
1007
+ else if (s(e)) t.push({
1006
1008
  url: e.url,
1007
1009
  blockId: e.id,
1008
1010
  source: "video",
1009
1011
  label: e.alt || void 0
1010
1012
  });
1011
- else if (l(e)) for (let t of e.items) c.push({
1012
- url: t.url,
1013
+ else if (c(e)) for (let n of e.items) t.push({
1014
+ url: n.url,
1013
1015
  blockId: e.id,
1014
1016
  source: "menu-item",
1015
- label: t.text
1017
+ label: n.text
1016
1018
  });
1017
- else if (r(e)) for (let t of e.icons) c.push({
1018
- url: t.url,
1019
+ else if (ee(e)) for (let n of e.icons) t.push({
1020
+ url: n.url,
1019
1021
  blockId: e.id,
1020
1022
  source: "social-icon",
1021
- label: t.platform
1023
+ label: n.platform
1022
1024
  });
1023
- }), c;
1025
+ }), t;
1024
1026
  }
1025
1027
  //#endregion
1026
1028
  //#region ../quality/src/links/rules/javascript-protocol.ts
@@ -1066,7 +1068,7 @@ function Pt(e) {
1066
1068
  let t = e.trim(), n = /^([a-z][a-z0-9+\-.]*):/i.exec(t);
1067
1069
  return n ? n[1].toLowerCase() : null;
1068
1070
  }
1069
- var Q = {
1071
+ var Ft = {
1070
1072
  meta: jt,
1071
1073
  template(e) {
1072
1074
  let t = [];
@@ -1079,11 +1081,11 @@ var Q = {
1079
1081
  }
1080
1082
  return t;
1081
1083
  }
1082
- }, Ft = {
1084
+ }, It = {
1083
1085
  id: "link.malformed-mailto",
1084
1086
  severity: "warning"
1085
1087
  };
1086
- function It(e) {
1088
+ function Lt(e) {
1087
1089
  let t = e.trim();
1088
1090
  if (!/^mailto:/i.test(t)) return !1;
1089
1091
  let [n] = t.slice(7).split("?", 2);
@@ -1098,30 +1100,30 @@ function It(e) {
1098
1100
  }
1099
1101
  return !1;
1100
1102
  }
1101
- var Lt = {
1102
- meta: Ft,
1103
+ var Rt = {
1104
+ meta: It,
1103
1105
  template(e) {
1104
1106
  let t = [];
1105
- for (let n of X(e)) It(n.url) && t.push({ blockId: n.blockId });
1107
+ for (let n of X(e)) Lt(n.url) && t.push({ blockId: n.blockId });
1106
1108
  return t;
1107
1109
  }
1108
- }, Rt = {
1110
+ }, zt = {
1109
1111
  id: "link.malformed-tel",
1110
1112
  severity: "warning"
1111
- }, zt = /^[+0-9\s().\-]+$/, Bt = /^[A-Za-z0-9-]+(=[^;]+)?$/;
1112
- function Vt(e) {
1113
+ }, Bt = /^[+0-9\s().\-]+$/, Vt = /^[A-Za-z0-9-]+(=[^;]+)?$/;
1114
+ function Q(e) {
1113
1115
  let t = e.trim();
1114
1116
  if (!/^tel:/i.test(t)) return !1;
1115
1117
  let n = t.slice(4).trim();
1116
1118
  if (n === "") return !0;
1117
1119
  let [r, ...i] = n.split(";");
1118
- return !zt.test(r) || i.some((e) => !Bt.test(e));
1120
+ return !Bt.test(r) || i.some((e) => !Vt.test(e));
1119
1121
  }
1120
1122
  var Ht = {
1121
- meta: Rt,
1123
+ meta: zt,
1122
1124
  template(e) {
1123
1125
  let t = [];
1124
- for (let n of X(e)) Vt(n.url) && t.push({ blockId: n.blockId });
1126
+ for (let n of X(e)) Q(n.url) && t.push({ blockId: n.blockId });
1125
1127
  return t;
1126
1128
  }
1127
1129
  }, Ut = {
@@ -1142,48 +1144,63 @@ function Gt(e) {
1142
1144
  return null;
1143
1145
  }
1144
1146
  }
1145
- //#endregion
1146
- //#region ../quality/src/links/index.ts
1147
- var $ = [
1147
+ var Kt = {
1148
+ meta: Ut,
1149
+ template(e, t) {
1150
+ let n = t.links.nonProductionHosts;
1151
+ if (n.length === 0) return [];
1152
+ let r = n.map(Wt), i = [];
1153
+ for (let t of X(e)) {
1154
+ let e = Gt(t.url);
1155
+ e !== null && r.some((t) => t.test(e)) && i.push({
1156
+ blockId: t.blockId,
1157
+ params: { host: e }
1158
+ });
1159
+ }
1160
+ return i;
1161
+ }
1162
+ }, qt = {
1163
+ id: "link.relative-url",
1164
+ severity: "warning"
1165
+ }, Jt = /^(?:\/|\.{1,2}\/|\?)/, $ = [
1148
1166
  At,
1149
- Q,
1150
- Lt,
1167
+ Ft,
1168
+ Rt,
1151
1169
  Ht,
1170
+ Kt,
1152
1171
  {
1153
- meta: Ut,
1154
- template(e, t) {
1155
- let n = t.links.nonProductionHosts;
1156
- if (n.length === 0) return [];
1157
- let r = n.map(Wt), i = [];
1158
- for (let t of X(e)) {
1159
- let e = Gt(t.url);
1160
- e !== null && r.some((t) => t.test(e)) && i.push({
1161
- blockId: t.blockId,
1162
- params: { host: e }
1172
+ meta: qt,
1173
+ template(e) {
1174
+ let t = [];
1175
+ for (let n of X(e)) {
1176
+ let e = n.url?.trim();
1177
+ e && Jt.test(e) && t.push({
1178
+ blockId: n.blockId,
1179
+ params: { url: e }
1163
1180
  });
1164
1181
  }
1165
- return i;
1182
+ return t;
1166
1183
  }
1167
1184
  }
1168
1185
  ];
1169
- function Kt(e, t = {}) {
1170
- return t.disabled === !0 || t.links === !1 ? [] : x(e, $, ce(t.locale, t.links ?? {}, $), (e, t, n) => Dt(e, t, n));
1186
+ function Yt(e, t = {}) {
1187
+ return t.disabled === !0 || t.links === !1 ? [] : S(e, $, se(t.locale, t.links ?? {}, $), (e, t, n) => Dt(e, t, n));
1171
1188
  }
1172
1189
  //#endregion
1173
1190
  //#region ../quality/src/util.ts
1174
- function qt(e) {
1191
+ function Xt(e) {
1175
1192
  return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 : !1;
1176
1193
  }
1177
1194
  //#endregion
1178
1195
  //#region ../quality/src/lint-template.ts
1179
- function Jt(e, t = {}) {
1180
- return qt(t) ? [] : [
1196
+ function Zt(e, t = {}) {
1197
+ return Xt(t) ? [] : [
1181
1198
  ...ot(e, t),
1182
1199
  ...St(e, t),
1183
- ...Kt(e, t)
1200
+ ...Yt(e, t)
1184
1201
  ];
1185
1202
  }
1186
1203
  //#endregion
1187
- export { Jt as lintTemplate };
1204
+ export { Zt as lintTemplate };
1188
1205
 
1189
- //# sourceMappingURL=src-HA9F2kvk.js.map
1206
+ //# sourceMappingURL=src-B0pZeTYO.js.map