@templatical/editor 0.22.0 → 0.24.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.
- package/dist/{AiChatSidebar-K_AehWc-.js → AiChatSidebar-Nq-jrGaf.js} +2 -2
- package/dist/{AiFeatureMenu-CcqjRMFW.js → AiFeatureMenu-tg_zMKMK.js} +3 -3
- package/dist/{BlockIssueBadge-Dmj9rVra.js → BlockIssueBadge-Bd94kIiw.js} +2 -2
- package/dist/BlockPreviewCanvas-B34aMhHe.js +117 -0
- package/dist/{CloudEditor-BVH7D1Ka.js → CloudEditor-DjN_9Yso.js} +285 -284
- package/dist/{CollaboratorBar-C_1SF7Xf.js → CollaboratorBar-Bhazzcg-.js} +2 -2
- package/dist/{ColorPicker-s9GHXjZs.js → ColorPicker-DXGrcJxJ.js} +5 -5
- package/dist/{CommentsSidebar-DvNEdugN.js → CommentsSidebar-ku1kt10u.js} +3 -3
- package/dist/{CountdownBlock-J_Q9JRQM.js → CountdownBlock-CN9Lc23W.js} +1 -1
- package/dist/{CountdownToolbar-DPRcv3Fu.js → CountdownToolbar-VEsIyKV6.js} +3 -3
- package/dist/{DesignReferenceSidebar-DNmK3dxp.js → DesignReferenceSidebar-C4pTMzQE.js} +3 -3
- package/dist/{IssuesPanel-CEnEGFtd.js → IssuesPanel-CEfzOpS_.js} +2 -2
- package/dist/MergeTagModeToggle-C3V2xGAg.js +180 -0
- package/dist/{MergeTagSuggestion-D9eCryMC.js → MergeTagSuggestion-Dn8ww9nV.js} +2 -2
- package/dist/{NumberWithSuffix-CCPN_oCh.js → NumberWithSuffix-BGocZkj9.js} +1 -1
- package/dist/{ParagraphEditor-MKJYyWN9.js → ParagraphEditor-D-fz0kUb.js} +19 -19
- package/dist/{RichTextEditorContent-FbnWsh46.js → RichTextEditorContent-DydrqFts.js} +5 -5
- package/dist/{SaveBlockDialog-B_5KBaXW.js → SaveBlockDialog-BDDFbAWF.js} +100 -99
- package/dist/{SavedBlocksBrowserModal-DoJBoYPk.js → SavedBlocksBrowserModal-Djik_fJh.js} +6 -6
- package/dist/{SavedBlocksPanels-3Af5dMaf.js → SavedBlocksPanels-CxemyPxL.js} +1 -1
- package/dist/{SavedBlocksPickBar-C1FTJP-I.js → SavedBlocksPickBar-Dlhipmob.js} +2 -2
- package/dist/{SnapshotHistory-DWlQ3Eh0.js → SnapshotHistory-DPbM4ons.js} +4 -4
- package/dist/{TemplateScoringPanel-ifGGGWs5.js → TemplateScoringPanel-BFYgweDX.js} +2 -2
- package/dist/TestEmailModal-IZfwgya-.js +174 -0
- package/dist/TestEmailPanel-QEEx_PkN.js +33 -0
- package/dist/{TitleEditor-DzsPxKv4.js → TitleEditor-BB4YlIBF.js} +10 -10
- package/dist/{TplModal-CykwWFhF.js → TplModal-DPH4vV8M.js} +3 -3
- package/dist/{blockTypeIcons-CpKkI47V.js → blockTypeIcons-Wzd7W_2x.js} +1 -1
- package/dist/bundle-stats.json +7 -7
- package/dist/{ca-BBgad6y5.js → ca-CO4nq6TX.js} +22 -1
- package/dist/cdn/chunks/{AiChatSidebar-A1CuWGY0.js → AiChatSidebar-CN-0DIuA.js} +11 -11
- package/dist/cdn/chunks/{AiChatSidebar-A1CuWGY0.js.map → AiChatSidebar-CN-0DIuA.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-hWgWQg11.js → AiFeatureMenu-B5pV6Iux.js} +8 -8
- package/dist/cdn/chunks/{AiFeatureMenu-hWgWQg11.js.map → AiFeatureMenu-B5pV6Iux.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-Da4yR-mh.js → BlockIssueBadge-aanOjeyi.js} +4 -4
- package/dist/cdn/chunks/{BlockIssueBadge-Da4yR-mh.js.map → BlockIssueBadge-aanOjeyi.js.map} +1 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-Dc4F4HzY.js +119 -0
- package/dist/cdn/chunks/BlockPreviewCanvas-Dc4F4HzY.js.map +1 -0
- package/dist/cdn/chunks/{CloudEditor-FCS53UcZ.js → CloudEditor-CeKaWWO5.js} +264 -263
- package/dist/cdn/chunks/CloudEditor-CeKaWWO5.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-mkJVAkSh.js → CollaboratorBar-CEdKr0A2.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-mkJVAkSh.js.map → CollaboratorBar-CEdKr0A2.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-DZSzZ5ZP.js → ColorPicker-BckwEfcN.js} +7 -7
- package/dist/cdn/chunks/{ColorPicker-DZSzZ5ZP.js.map → ColorPicker-BckwEfcN.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-DHdRiGPX.js → CommentsSidebar-6PfpJKh-.js} +18 -18
- package/dist/cdn/chunks/{CommentsSidebar-DHdRiGPX.js.map → CommentsSidebar-6PfpJKh-.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-Bffpoppw.js → CountdownBlock-CoBmvQKv.js} +2 -2
- package/dist/cdn/chunks/{CountdownBlock-Bffpoppw.js.map → CountdownBlock-CoBmvQKv.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-DAnmIZjq.js → CountdownToolbar-CdV8RTQu.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-DAnmIZjq.js.map → CountdownToolbar-CdV8RTQu.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-Dre99DTH.js → DesignReferenceSidebar-BjlaP69l.js} +90 -90
- package/dist/cdn/chunks/{DesignReferenceSidebar-Dre99DTH.js.map → DesignReferenceSidebar-BjlaP69l.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-D80JedOj.js → IssuesPanel-CkkEnhxZ.js} +9 -9
- package/dist/cdn/chunks/{IssuesPanel-D80JedOj.js.map → IssuesPanel-CkkEnhxZ.js.map} +1 -1
- package/dist/cdn/chunks/MergeTagModeToggle-DmtR300G.js +127 -0
- package/dist/cdn/chunks/MergeTagModeToggle-DmtR300G.js.map +1 -0
- package/dist/cdn/chunks/{MergeTagSuggestion-BM349_QH.js → MergeTagSuggestion-Cvlkw_PM.js} +2 -2
- package/dist/cdn/chunks/{MergeTagSuggestion-BM349_QH.js.map → MergeTagSuggestion-Cvlkw_PM.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-CjlVNIEe.js → NumberWithSuffix-BOcMN26z.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-CjlVNIEe.js.map → NumberWithSuffix-BOcMN26z.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-J-1RLyi7.js → ParagraphEditor-CX1yks4N.js} +35 -35
- package/dist/cdn/chunks/{ParagraphEditor-J-1RLyi7.js.map → ParagraphEditor-CX1yks4N.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-BbdgJqWM.js → RichTextEditorContent-z9s7qxs3.js} +7 -7
- package/dist/cdn/chunks/{RichTextEditorContent-BbdgJqWM.js.map → RichTextEditorContent-z9s7qxs3.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CSeD3gn9.js → SaveBlockDialog-D2CtW4lC.js} +100 -99
- package/dist/cdn/chunks/SaveBlockDialog-D2CtW4lC.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-B2x5WRPN.js → SavedBlocksBrowserModal-DdUKJzzF.js} +8 -8
- package/dist/cdn/chunks/SavedBlocksBrowserModal-DdUKJzzF.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksPanels-BzMTZxf2.js → SavedBlocksPanels-1kVbqdpc.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-BzMTZxf2.js.map → SavedBlocksPanels-1kVbqdpc.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-CduR1Cpb.js → SavedBlocksPickBar--noDJIyN.js} +6 -6
- package/dist/cdn/chunks/{SavedBlocksPickBar-CduR1Cpb.js.map → SavedBlocksPickBar--noDJIyN.js.map} +1 -1
- package/dist/cdn/chunks/{SnapshotHistory-DO-gzr3i.js → SnapshotHistory-DFuNJRc9.js} +8 -8
- package/dist/cdn/chunks/{SnapshotHistory-DO-gzr3i.js.map → SnapshotHistory-DFuNJRc9.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-CTk8WwxU.js → TemplateScoringPanel-DG1dAjQk.js} +52 -52
- package/dist/cdn/chunks/{TemplateScoringPanel-CTk8WwxU.js.map → TemplateScoringPanel-DG1dAjQk.js.map} +1 -1
- package/dist/cdn/chunks/TestEmailModal-CiPfOn2v.js +174 -0
- package/dist/cdn/chunks/TestEmailModal-CiPfOn2v.js.map +1 -0
- package/dist/cdn/chunks/TestEmailPanel-saOfnpjz.js +35 -0
- package/dist/cdn/chunks/TestEmailPanel-saOfnpjz.js.map +1 -0
- package/dist/cdn/chunks/{TitleEditor-J1vgU_J6.js → TitleEditor-08KM_VzZ.js} +18 -18
- package/dist/cdn/chunks/{TitleEditor-J1vgU_J6.js.map → TitleEditor-08KM_VzZ.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-BN53d9Se.js → TplModal-Cu4tBBnF.js} +4 -4
- package/dist/cdn/chunks/{TplModal-BN53d9Se.js.map → TplModal-Cu4tBBnF.js.map} +1 -1
- package/dist/cdn/chunks/blockTypeIcons-DvohkXqi.js +21 -0
- package/dist/cdn/chunks/{blockTypeIcons-etMMQoVv.js.map → blockTypeIcons-DvohkXqi.js.map} +1 -1
- package/dist/cdn/chunks/{ca-BBgad6y5.js → ca-CO4nq6TX.js} +23 -2
- package/dist/cdn/chunks/{ca-BBgad6y5.js.map → ca-CO4nq6TX.js.map} +1 -1
- package/dist/cdn/chunks/{cloud-BJlbXGTJ.js → cloud-C2I0P9qj.js} +46 -42
- package/dist/cdn/chunks/cloud-C2I0P9qj.js.map +1 -0
- package/dist/{de-D7WbpFBR.js → cdn/chunks/de-CUeaFJph.js} +24 -1
- package/dist/cdn/chunks/{de-D7WbpFBR.js.map → de-CUeaFJph.js.map} +1 -1
- package/dist/{de-Bw6fB5JU.js → cdn/chunks/de-uVoSP1xF.js} +2 -9
- package/dist/cdn/chunks/de-uVoSP1xF.js.map +1 -0
- package/dist/cdn/chunks/emailFrameWidth-BmFCN2dp.js +8 -0
- package/dist/cdn/chunks/emailFrameWidth-BmFCN2dp.js.map +1 -0
- package/dist/{en-DAdHJz7h.js → cdn/chunks/en-CjhsJxb-.js} +2 -9
- package/dist/cdn/chunks/en-CjhsJxb-.js.map +1 -0
- package/dist/{en-BrZ0uGK2.js → cdn/chunks/en-zCYIPAL5.js} +24 -1
- package/dist/cdn/chunks/{en-BrZ0uGK2.js.map → en-zCYIPAL5.js.map} +1 -1
- package/dist/{es-tLSLysPs.js → cdn/chunks/es-BSiH7YkP.js} +24 -1
- package/dist/cdn/chunks/{es-tLSLysPs.js.map → es-BSiH7YkP.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-C49c51P1.js → extensions-DBWF_lxx.js} +16 -16
- package/dist/cdn/chunks/{extensions-C49c51P1.js.map → extensions-DBWF_lxx.js.map} +1 -1
- package/dist/{fr-BMWOPztQ.js → cdn/chunks/fr-DTVJ3det.js} +24 -1
- package/dist/cdn/chunks/fr-DTVJ3det.js.map +1 -0
- package/dist/cdn/chunks/{icons-CYWw8Xfp.js → icons-Cqxvwgz7.js} +35 -14
- package/dist/cdn/chunks/icons-Cqxvwgz7.js.map +1 -0
- package/dist/cdn/chunks/keys-B5uoP9P7.js +12 -0
- package/dist/cdn/chunks/keys-B5uoP9P7.js.map +1 -0
- package/dist/{nl-Dhctu7JL.js → cdn/chunks/nl-BqSquFS3.js} +24 -1
- package/dist/cdn/chunks/nl-BqSquFS3.js.map +1 -0
- package/dist/cdn/chunks/{pt-BR-BWFokdTU.js → pt-BR-CMljK37h.js} +23 -2
- package/dist/cdn/chunks/{pt-BR-BWFokdTU.js.map → pt-BR-CMljK37h.js.map} +1 -1
- package/dist/{pt-BR-w2sGzHNX.js → cdn/chunks/pt-BR-CTzHTqJD.js} +2 -9
- package/dist/cdn/chunks/pt-BR-CTzHTqJD.js.map +1 -0
- package/dist/cdn/chunks/{src-BKI1x1k7.js → src-BCJna-6p.js} +183 -165
- package/dist/cdn/chunks/{src-BKI1x1k7.js.map → src-BCJna-6p.js.map} +1 -1
- package/dist/cdn/chunks/{src-MA8DWI8O.js → src-C45kfA2t.js} +17 -17
- package/dist/cdn/chunks/{src-MA8DWI8O.js.map → src-C45kfA2t.js.map} +1 -1
- package/dist/cdn/chunks/{src-ByWL5K1f.js → src-XQmI_Xs1.js} +48 -48
- package/dist/cdn/chunks/{src-ByWL5K1f.js.map → src-XQmI_Xs1.js.map} +1 -1
- package/dist/cdn/chunks/{src-CM0gCvAS.js → src-YVsPFLNJ.js} +251 -251
- package/dist/cdn/chunks/{src-CM0gCvAS.js.map → src-YVsPFLNJ.js.map} +1 -1
- package/dist/cdn/chunks/{styles-BkXzQ4-n.js → styles-BohMfIBd.js} +785 -746
- package/dist/cdn/chunks/styles-BohMfIBd.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-DUTbZTeR.js → tiptap-DRKu__AX.js} +5 -5
- package/dist/cdn/chunks/{tiptap-DUTbZTeR.js.map → tiptap-DRKu__AX.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-BjNENqkM.js → useCloudI18n-Bem8DUjH.js} +2 -2
- package/dist/cdn/chunks/{useCloudI18n-BjNENqkM.js.map → useCloudI18n-Bem8DUjH.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-CzMhD6Gd.js → useEditorCore-B_vwuKdI.js} +434 -414
- package/dist/cdn/chunks/useEditorCore-B_vwuKdI.js.map +1 -0
- package/dist/cdn/chunks/{useI18n-8Wd7G-cq.js → useI18n-graz19nI.js} +2 -2
- package/dist/cdn/chunks/{useI18n-8Wd7G-cq.js.map → useI18n-graz19nI.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-C7G31KV-.js → useMergeTag-rTzAFMlr.js} +4 -4
- package/dist/cdn/chunks/{useMergeTag-C7G31KV-.js.map → useMergeTag-rTzAFMlr.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-Bx0QewTv.js → usePopoverPosition-BaFxLP3w.js} +2 -2
- package/dist/cdn/chunks/{usePopoverPosition-Bx0QewTv.js.map → usePopoverPosition-BaFxLP3w.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +172 -150
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{cloud-Du7mnkz2.js → cloud-DsUct4Zq.js} +42 -40
- package/dist/{cdn/chunks/de-D7WbpFBR.js → de-CUeaFJph.js} +22 -3
- package/dist/{cdn/chunks/de-Bw6fB5JU.js → de-uVoSP1xF.js} +0 -11
- package/dist/{dist-CL_CfQ3Q.js → dist-9uhI32Q4.js} +2 -2
- package/dist/{dist-3DHaYEiT.js → dist-BAkGuPYm.js} +2 -2
- package/dist/dist-BIYm-U9x.js +5 -0
- package/dist/{dist-3HenmYIg.js → dist-ByJVlKWy.js} +1 -1
- package/dist/{dist-DKWoZJAV.js → dist-C5tigvDF.js} +2 -2
- package/dist/{dist-bivrM-nS.js → dist-CQiAZlTt.js} +2 -2
- package/dist/{dist-Ih7ejWzn.js → dist-C_kAE1sC.js} +2 -2
- package/dist/{dist-CclnU_v0.js → dist-CkCVlKj_.js} +2 -2
- package/dist/{dist-B_etKYyh.js → dist-DFO896yT.js} +5 -5
- package/dist/{dist-BJbqgyPn.js → dist-DPHqs0Yh.js} +105 -87
- package/dist/{dist-DOtLGnLr.js → dist-DWu9QWFl.js} +2 -2
- package/dist/{dist-BCnJcAQc.js → dist-IGetXrbO.js} +2 -2
- package/dist/dist-JXOq1hib.js +5 -0
- package/dist/emailFrameWidth-BmFCN2dp.js +6 -0
- package/dist/{cdn/chunks/en-DAdHJz7h.js → en-CjhsJxb-.js} +0 -11
- package/dist/{cdn/chunks/en-BrZ0uGK2.js → en-zCYIPAL5.js} +22 -3
- package/dist/{cdn/chunks/es-tLSLysPs.js → es-BSiH7YkP.js} +22 -3
- package/dist/{extensions-3870a_3R.js → extensions-C0DXnYdA.js} +13 -13
- package/dist/{cdn/chunks/fr-BMWOPztQ.js → fr-DTVJ3det.js} +22 -3
- package/dist/index.d.ts +74 -0
- package/dist/keys-BVlG5Ozc.js +10 -0
- package/dist/{cdn/chunks/nl-Dhctu7JL.js → nl-BqSquFS3.js} +22 -3
- package/dist/{pt-BR-BWFokdTU.js → pt-BR-CMljK37h.js} +22 -1
- package/dist/{cdn/chunks/pt-BR-w2sGzHNX.js → pt-BR-CTzHTqJD.js} +0 -11
- package/dist/style.css +1 -1
- package/dist/{styles-AxBd7CgB.js → styles-BTTD0Je4.js} +941 -935
- package/dist/templatical-editor.js +112 -89
- package/dist/{useCloudI18n-BmiygEM4.js → useCloudI18n-DGr3b2SX.js} +1 -1
- package/dist/{useEditorCore-CuMMIfiS.js → useEditorCore-DOrGex_t.js} +917 -897
- package/dist/{useI18n-D2L9Mkik.js → useI18n-BhAejA-x.js} +1 -1
- package/dist/{useMergeTag-BTdDq5DC.js → useMergeTag-Ce95YIOO.js} +3 -3
- package/dist/{usePopoverPosition-BO2LNy5n.js → usePopoverPosition-vjKJaqJf.js} +1 -1
- package/package.json +20 -20
- package/dist/SavedBlockPreviewCanvas-DXkGDYph.js +0 -109
- package/dist/TestEmailModal-DComAFpR.js +0 -95
- package/dist/cdn/chunks/CloudEditor-FCS53UcZ.js.map +0 -1
- package/dist/cdn/chunks/SaveBlockDialog-CSeD3gn9.js.map +0 -1
- package/dist/cdn/chunks/SavedBlockPreviewCanvas-DgLOKtR_.js +0 -111
- package/dist/cdn/chunks/SavedBlockPreviewCanvas-DgLOKtR_.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-B2x5WRPN.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-DT37w7i_.js +0 -96
- package/dist/cdn/chunks/TestEmailModal-DT37w7i_.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-etMMQoVv.js +0 -21
- package/dist/cdn/chunks/cloud-BJlbXGTJ.js.map +0 -1
- package/dist/cdn/chunks/de-Bw6fB5JU.js.map +0 -1
- package/dist/cdn/chunks/en-DAdHJz7h.js.map +0 -1
- package/dist/cdn/chunks/fr-BMWOPztQ.js.map +0 -1
- package/dist/cdn/chunks/icons-CYWw8Xfp.js.map +0 -1
- package/dist/cdn/chunks/keys-D7kUmfpE.js +0 -12
- package/dist/cdn/chunks/keys-D7kUmfpE.js.map +0 -1
- package/dist/cdn/chunks/nl-Dhctu7JL.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-w2sGzHNX.js.map +0 -1
- package/dist/cdn/chunks/styles-BkXzQ4-n.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-CzMhD6Gd.js.map +0 -1
- package/dist/dist-CcQLJeWV.js +0 -5
- package/dist/dist-DerdmERj.js +0 -5
- package/dist/keys-CHPcp-Nz.js +0 -10
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-Dqa2HsxW.js";
|
|
2
|
-
import {
|
|
2
|
+
import { G as t, H as n, J as r, K as i, Q as a, R as o, U as s, V as c, W as l, X as ee, Y as u } from "./src-BCJna-6p.js";
|
|
3
3
|
import { t as d } from "./htmlparser-CZa2V5cF.js";
|
|
4
4
|
//#region ../quality/src/types.ts
|
|
5
|
-
var
|
|
5
|
+
var te = {
|
|
6
6
|
altMaxLength: 125,
|
|
7
7
|
minFontSize: 14,
|
|
8
8
|
allCapsMinLength: 20,
|
|
9
9
|
minTouchTargetPx: 44
|
|
10
|
-
},
|
|
10
|
+
}, ne = [
|
|
11
11
|
"localhost",
|
|
12
12
|
"127.0.0.1",
|
|
13
13
|
"0.0.0.0",
|
|
@@ -17,16 +17,16 @@ var f = {
|
|
|
17
17
|
];
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region ../quality/src/contrast.ts
|
|
20
|
-
function
|
|
21
|
-
let n =
|
|
20
|
+
function f(e, t) {
|
|
21
|
+
let n = h(e), r = h(t);
|
|
22
22
|
if (!n || !r) return NaN;
|
|
23
|
-
let i =
|
|
23
|
+
let i = _(n), a = _(r), o = Math.max(i, a), s = Math.min(i, a);
|
|
24
24
|
return (o + .05) / (s + .05);
|
|
25
25
|
}
|
|
26
|
-
var
|
|
27
|
-
function
|
|
26
|
+
var p = /^#?([0-9a-f])([0-9a-f])([0-9a-f])$/i, m = /^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i, re = /^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i;
|
|
27
|
+
function h(e) {
|
|
28
28
|
if (typeof e != "string") return null;
|
|
29
|
-
let t = e.trim(), n =
|
|
29
|
+
let t = e.trim(), n = re.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),
|
|
@@ -38,55 +38,55 @@ function g(e) {
|
|
|
38
38
|
g: parseInt(r[2], 16),
|
|
39
39
|
b: parseInt(r[3], 16)
|
|
40
40
|
};
|
|
41
|
-
let i =
|
|
41
|
+
let i = p.exec(t);
|
|
42
42
|
return i ? {
|
|
43
43
|
r: parseInt(i[1] + i[1], 16),
|
|
44
44
|
g: parseInt(i[2] + i[2], 16),
|
|
45
45
|
b: parseInt(i[3] + i[3], 16)
|
|
46
46
|
} : null;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
return
|
|
48
|
+
function g(e) {
|
|
49
|
+
return h(e ?? "") !== null;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
let r =
|
|
51
|
+
function _({ r: e, g: t, b: n }) {
|
|
52
|
+
let r = v(e / 255), i = v(t / 255), a = v(n / 255);
|
|
53
53
|
return .2126 * r + .7152 * i + .0722 * a;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function v(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
|
|
61
|
-
function
|
|
62
|
-
let
|
|
63
|
-
let
|
|
64
|
-
|
|
65
|
-
...
|
|
66
|
-
resolvedBackgroundColor:
|
|
67
|
-
}),
|
|
68
|
-
t.forEach((t) =>
|
|
60
|
+
var y = "#ffffff", b = "#1a1a1a";
|
|
61
|
+
function x(e, n) {
|
|
62
|
+
let r = g(e.settings.backgroundColor) ? e.settings.backgroundColor.toLowerCase() : y, i = g(e.settings.textColor) ? e.settings.textColor.toLowerCase() : b, a = (e, r) => {
|
|
63
|
+
let i = e.styles?.backgroundColor, o = g(i) ? i.toLowerCase() : r.resolvedBackgroundColor;
|
|
64
|
+
n(e, o === r.resolvedBackgroundColor ? r : {
|
|
65
|
+
...r,
|
|
66
|
+
resolvedBackgroundColor: o
|
|
67
|
+
}), t(e) && e.children.forEach((t, n) => {
|
|
68
|
+
t.forEach((t) => a(t, {
|
|
69
69
|
parent: e,
|
|
70
70
|
section: e,
|
|
71
|
-
columnIndex:
|
|
72
|
-
depth:
|
|
73
|
-
resolvedBackgroundColor:
|
|
74
|
-
resolvedTextColor:
|
|
71
|
+
columnIndex: n,
|
|
72
|
+
depth: r.depth + 1,
|
|
73
|
+
resolvedBackgroundColor: o,
|
|
74
|
+
resolvedTextColor: r.resolvedTextColor
|
|
75
75
|
}));
|
|
76
76
|
});
|
|
77
77
|
};
|
|
78
|
-
for (let t of e.blocks)
|
|
78
|
+
for (let t of e.blocks) a(t, {
|
|
79
79
|
parent: null,
|
|
80
80
|
section: null,
|
|
81
81
|
columnIndex: null,
|
|
82
82
|
depth: 0,
|
|
83
|
-
resolvedBackgroundColor:
|
|
84
|
-
resolvedTextColor:
|
|
83
|
+
resolvedBackgroundColor: r,
|
|
84
|
+
resolvedTextColor: i
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
//#endregion
|
|
88
88
|
//#region ../quality/src/run-rules.ts
|
|
89
|
-
function
|
|
89
|
+
function S(e, t, n, r) {
|
|
90
90
|
let i = [];
|
|
91
91
|
function a(e, t, i) {
|
|
92
92
|
return {
|
|
@@ -97,7 +97,7 @@ function C(e, t, n, r) {
|
|
|
97
97
|
fix: i.fix
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
|
-
|
|
100
|
+
x(e, (e, r) => {
|
|
101
101
|
for (let o of t) {
|
|
102
102
|
let t = n.severity(o.meta.id);
|
|
103
103
|
if (t === "off" || !o.block) continue;
|
|
@@ -113,11 +113,11 @@ function C(e, t, n, r) {
|
|
|
113
113
|
}
|
|
114
114
|
return i;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function C(e) {
|
|
117
117
|
let t = e.overrides ?? {}, n = {
|
|
118
|
-
...
|
|
118
|
+
...te,
|
|
119
119
|
...e.thresholds ?? {}
|
|
120
|
-
}, r = { nonProductionHosts: e.nonProductionHosts ??
|
|
120
|
+
}, r = { nonProductionHosts: e.nonProductionHosts ?? ne }, i = e.locale ?? "en", a = e.rules;
|
|
121
121
|
return {
|
|
122
122
|
locale: i,
|
|
123
123
|
rules: t,
|
|
@@ -129,8 +129,8 @@ function w(e) {
|
|
|
129
129
|
}
|
|
130
130
|
};
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
return
|
|
132
|
+
function ie(e, t, n) {
|
|
133
|
+
return C({
|
|
134
134
|
locale: e,
|
|
135
135
|
rules: n,
|
|
136
136
|
overrides: t.rules,
|
|
@@ -138,8 +138,8 @@ function re(e, t, n) {
|
|
|
138
138
|
nonProductionHosts: void 0
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
return
|
|
141
|
+
function ae(e, t, n) {
|
|
142
|
+
return C({
|
|
143
143
|
locale: e,
|
|
144
144
|
rules: n,
|
|
145
145
|
overrides: t.rules,
|
|
@@ -147,8 +147,8 @@ function ie(e, t, n) {
|
|
|
147
147
|
nonProductionHosts: void 0
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
|
-
function
|
|
151
|
-
return
|
|
150
|
+
function oe(e, t, n) {
|
|
151
|
+
return C({
|
|
152
152
|
locale: e,
|
|
153
153
|
rules: n,
|
|
154
154
|
overrides: t.rules,
|
|
@@ -158,7 +158,7 @@ function ae(e, t, n) {
|
|
|
158
158
|
}
|
|
159
159
|
//#endregion
|
|
160
160
|
//#region ../quality/src/accessibility/messages/de.ts
|
|
161
|
-
var
|
|
161
|
+
var se = /* @__PURE__ */ e({ default: () => ce }), ce = {
|
|
162
162
|
"a11y.img-missing-alt": "Bild ohne Alt-Text. Füge eine kurze Beschreibung hinzu oder markiere das Bild als dekorativ.",
|
|
163
163
|
"a11y.img-alt-is-filename": "Alt-Text sieht wie ein Dateiname aus (\"{alt}\"). Beschreibe stattdessen kurz, was das Bild zeigt.",
|
|
164
164
|
"a11y.img-alt-too-long": "Alt-Text ist {length} Zeichen lang; bleibe unter {max}.",
|
|
@@ -179,7 +179,7 @@ var oe = /* @__PURE__ */ e({ default: () => se }), se = {
|
|
|
179
179
|
"a11y.button-touch-target": "Button ist etwa {height}px hoch; mindestens {min}px verwenden, um Fehltipper auf Mobilgeräten zu vermeiden.",
|
|
180
180
|
"a11y.button-low-contrast": "Buttontextkontrast beträgt {ratio}:1; WCAG AA verlangt mindestens {required}:1.",
|
|
181
181
|
"a11y.missing-preheader": "Kein Preheader-Text gesetzt. Postfächer zeigen sonst Bruchstücke des ersten Blocks an."
|
|
182
|
-
},
|
|
182
|
+
}, le = /* @__PURE__ */ e({ default: () => w }), w = {
|
|
183
183
|
"a11y.img-missing-alt": "Image is missing alt text. Add a short description, or mark the image as decorative.",
|
|
184
184
|
"a11y.img-alt-is-filename": "Alt text looks like a filename (\"{alt}\"). Replace with a short description of what the image conveys.",
|
|
185
185
|
"a11y.img-alt-too-long": "Alt text is {length} characters; aim for under {max}.",
|
|
@@ -200,76 +200,76 @@ var oe = /* @__PURE__ */ e({ default: () => se }), se = {
|
|
|
200
200
|
"a11y.button-touch-target": "Button is roughly {height}px tall; aim for at least {min}px to avoid mis-taps on mobile.",
|
|
201
201
|
"a11y.button-low-contrast": "Button text contrast is {ratio}:1; WCAG AA requires at least {required}:1.",
|
|
202
202
|
"a11y.missing-preheader": "No preheader text set. Inboxes will fall back to fragments of the first block."
|
|
203
|
-
},
|
|
204
|
-
"./de.ts":
|
|
205
|
-
"./en.ts":
|
|
206
|
-
}),
|
|
207
|
-
for (let e in
|
|
203
|
+
}, T = /* #__PURE__ */ Object.assign({
|
|
204
|
+
"./de.ts": se,
|
|
205
|
+
"./en.ts": le
|
|
206
|
+
}), E = {};
|
|
207
|
+
for (let e in T) {
|
|
208
208
|
let t = /\.\/([^/]+)\.ts$/.exec(e);
|
|
209
209
|
if (!t) continue;
|
|
210
210
|
let n = t[1];
|
|
211
|
-
n !== "index" && (
|
|
211
|
+
n !== "index" && (E[n] = T[e].default);
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
return
|
|
213
|
+
function ue(e) {
|
|
214
|
+
return E[e.split("-")[0]?.toLowerCase() ?? "en"] ?? E.en ?? w;
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
let r =
|
|
216
|
+
function de(e, t, n) {
|
|
217
|
+
let r = ue(e)[t] ?? w[t];
|
|
218
218
|
return n ? r.replace(/\{(\w+)\}/g, (e, t) => {
|
|
219
219
|
let r = n[t];
|
|
220
220
|
return r === void 0 ? `{${t}}` : String(r);
|
|
221
221
|
}) : r;
|
|
222
222
|
}
|
|
223
|
-
var
|
|
223
|
+
var fe = {
|
|
224
224
|
meta: {
|
|
225
225
|
id: "a11y.img-missing-alt",
|
|
226
226
|
severity: "error"
|
|
227
227
|
},
|
|
228
228
|
block(e) {
|
|
229
|
-
return !
|
|
229
|
+
return !n(e) || e.decorative === !0 || (e.alt?.trim() ?? "") !== "" || (e.src ?? "").trim() === "" ? null : { blockId: e.id };
|
|
230
230
|
}
|
|
231
|
-
},
|
|
231
|
+
}, pe = {
|
|
232
232
|
id: "a11y.img-alt-is-filename",
|
|
233
233
|
severity: "warning"
|
|
234
|
-
},
|
|
234
|
+
}, me = [
|
|
235
235
|
/\.(jpe?g|png|gif|webp|svg)$/i,
|
|
236
236
|
/^IMG[_-]?\d+/i,
|
|
237
237
|
/^Untitled/i,
|
|
238
238
|
/^Screen[\s_-]?Shot/i,
|
|
239
239
|
/^DSC[_-]?\d+/i
|
|
240
|
-
],
|
|
241
|
-
meta:
|
|
240
|
+
], he = {
|
|
241
|
+
meta: pe,
|
|
242
242
|
block(e) {
|
|
243
|
-
if (!
|
|
243
|
+
if (!n(e) || e.decorative === !0) return null;
|
|
244
244
|
let t = e.alt?.trim() ?? "";
|
|
245
|
-
return t === "" || !
|
|
245
|
+
return t === "" || !me.some((e) => e.test(t)) ? null : {
|
|
246
246
|
blockId: e.id,
|
|
247
247
|
params: { alt: t }
|
|
248
248
|
};
|
|
249
249
|
}
|
|
250
|
-
},
|
|
250
|
+
}, ge = {
|
|
251
251
|
meta: {
|
|
252
252
|
id: "a11y.img-alt-too-long",
|
|
253
253
|
severity: "warning"
|
|
254
254
|
},
|
|
255
|
-
block(e, t,
|
|
256
|
-
if (!
|
|
257
|
-
let
|
|
258
|
-
return
|
|
255
|
+
block(e, t, r) {
|
|
256
|
+
if (!n(e) || e.decorative === !0) return null;
|
|
257
|
+
let i = e.alt ?? "";
|
|
258
|
+
return i.length <= r.thresholds.altMaxLength ? null : {
|
|
259
259
|
blockId: e.id,
|
|
260
260
|
params: {
|
|
261
|
-
length:
|
|
262
|
-
max:
|
|
261
|
+
length: i.length,
|
|
262
|
+
max: r.thresholds.altMaxLength
|
|
263
263
|
}
|
|
264
264
|
};
|
|
265
265
|
}
|
|
266
|
-
},
|
|
266
|
+
}, _e = {
|
|
267
267
|
meta: {
|
|
268
268
|
id: "a11y.img-decorative-needs-empty-alt",
|
|
269
269
|
severity: "info"
|
|
270
270
|
},
|
|
271
271
|
block(e) {
|
|
272
|
-
return !
|
|
272
|
+
return !n(e) || e.decorative !== !0 || (e.alt ?? "").trim() === "" ? null : {
|
|
273
273
|
blockId: e.id,
|
|
274
274
|
fix: {
|
|
275
275
|
description: "Clear alt text",
|
|
@@ -277,7 +277,7 @@ var de = {
|
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
279
|
}
|
|
280
|
-
},
|
|
280
|
+
}, ve = /* @__PURE__ */ e({ default: () => ye }), ye = {
|
|
281
281
|
vagueLinkText: [
|
|
282
282
|
"hier klicken",
|
|
283
283
|
"hier",
|
|
@@ -320,7 +320,7 @@ var de = {
|
|
|
320
320
|
"anschauen",
|
|
321
321
|
"jetzt"
|
|
322
322
|
]
|
|
323
|
-
},
|
|
323
|
+
}, D = /* @__PURE__ */ e({ default: () => O }), O = {
|
|
324
324
|
vagueLinkText: [
|
|
325
325
|
"click here",
|
|
326
326
|
"here",
|
|
@@ -362,8 +362,8 @@ var de = {
|
|
|
362
362
|
"watch"
|
|
363
363
|
]
|
|
364
364
|
}, k = /* #__PURE__ */ Object.assign({
|
|
365
|
-
"./de.ts":
|
|
366
|
-
"./en.ts":
|
|
365
|
+
"./de.ts": ve,
|
|
366
|
+
"./en.ts": D
|
|
367
367
|
}), A = {};
|
|
368
368
|
for (let e in k) {
|
|
369
369
|
let t = /\.\/([^/]+)\.ts$/.exec(e);
|
|
@@ -392,12 +392,12 @@ var be = {
|
|
|
392
392
|
id: "a11y.img-linked-no-context",
|
|
393
393
|
severity: "warning"
|
|
394
394
|
},
|
|
395
|
-
block(e, t,
|
|
396
|
-
if (!
|
|
397
|
-
let
|
|
398
|
-
if (
|
|
399
|
-
let
|
|
400
|
-
return
|
|
395
|
+
block(e, t, r) {
|
|
396
|
+
if (!n(e) || e.decorative === !0 || !e.linkUrl || e.linkUrl.trim() === "") return null;
|
|
397
|
+
let i = (e.alt ?? "").trim();
|
|
398
|
+
if (i === "") return null;
|
|
399
|
+
let a = i.toLocaleLowerCase().split(/[^\p{L}\p{N}]+/u).filter(Boolean), o = j(r.locale).linkedImageActionHints;
|
|
400
|
+
return a.some((e) => o.includes(e)) ? null : { blockId: e.id };
|
|
401
401
|
}
|
|
402
402
|
};
|
|
403
403
|
//#endregion
|
|
@@ -467,19 +467,19 @@ var Ce = {
|
|
|
467
467
|
severity: "error"
|
|
468
468
|
},
|
|
469
469
|
block(e) {
|
|
470
|
-
return !
|
|
470
|
+
return !u(e) || I(e.content ?? "") !== "" ? null : { blockId: e.id };
|
|
471
471
|
}
|
|
472
472
|
}, we = {
|
|
473
473
|
id: "a11y.heading-skip-level",
|
|
474
474
|
severity: "error"
|
|
475
475
|
};
|
|
476
|
-
function L(e,
|
|
476
|
+
function L(e, n) {
|
|
477
477
|
for (let r of e) {
|
|
478
|
-
if (
|
|
479
|
-
|
|
478
|
+
if (u(r)) {
|
|
479
|
+
n.push(r);
|
|
480
480
|
continue;
|
|
481
481
|
}
|
|
482
|
-
if (
|
|
482
|
+
if (t(r)) for (let e of r.children) L(e, n);
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
485
|
var Te = {
|
|
@@ -501,13 +501,13 @@ var Te = {
|
|
|
501
501
|
id: "a11y.heading-multiple-h1",
|
|
502
502
|
severity: "warning"
|
|
503
503
|
};
|
|
504
|
-
function R(e,
|
|
504
|
+
function R(e, n) {
|
|
505
505
|
for (let r of e) {
|
|
506
|
-
if (
|
|
507
|
-
|
|
506
|
+
if (u(r)) {
|
|
507
|
+
n.push(r);
|
|
508
508
|
continue;
|
|
509
509
|
}
|
|
510
|
-
if (
|
|
510
|
+
if (t(r)) for (let e of r.children) R(e, n);
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
513
|
var De = {
|
|
@@ -523,7 +523,7 @@ var De = {
|
|
|
523
523
|
severity: "error"
|
|
524
524
|
};
|
|
525
525
|
function ke(e) {
|
|
526
|
-
return
|
|
526
|
+
return l(e) || u(e) ? e.content : null;
|
|
527
527
|
}
|
|
528
528
|
var Ae = {
|
|
529
529
|
meta: Oe,
|
|
@@ -536,7 +536,7 @@ var Ae = {
|
|
|
536
536
|
severity: "warning"
|
|
537
537
|
};
|
|
538
538
|
function Me(e) {
|
|
539
|
-
return
|
|
539
|
+
return l(e) || u(e) ? e.content : null;
|
|
540
540
|
}
|
|
541
541
|
var Ne = {
|
|
542
542
|
meta: je,
|
|
@@ -557,7 +557,7 @@ var Ne = {
|
|
|
557
557
|
severity: "error"
|
|
558
558
|
};
|
|
559
559
|
function Fe(e) {
|
|
560
|
-
return
|
|
560
|
+
return l(e) || u(e) ? e.content : null;
|
|
561
561
|
}
|
|
562
562
|
var Ie = {
|
|
563
563
|
meta: Pe,
|
|
@@ -573,7 +573,7 @@ var Ie = {
|
|
|
573
573
|
severity: "warning"
|
|
574
574
|
};
|
|
575
575
|
function Re(e) {
|
|
576
|
-
return
|
|
576
|
+
return l(e) || u(e) ? e.content : null;
|
|
577
577
|
}
|
|
578
578
|
function ze(e) {
|
|
579
579
|
if (e === null) return !1;
|
|
@@ -583,15 +583,15 @@ function ze(e) {
|
|
|
583
583
|
var Be = {
|
|
584
584
|
meta: Le,
|
|
585
585
|
block(e) {
|
|
586
|
-
let
|
|
587
|
-
return
|
|
586
|
+
let t = Re(e);
|
|
587
|
+
return t === null || !F(t).find((e) => e.target === "_blank" && !ze(e.rel)) ? null : {
|
|
588
588
|
blockId: e.id,
|
|
589
589
|
fix: {
|
|
590
590
|
description: "Add rel=\"noopener\"",
|
|
591
|
-
apply: (
|
|
592
|
-
if (!
|
|
593
|
-
let
|
|
594
|
-
|
|
591
|
+
apply: (t) => {
|
|
592
|
+
if (!l(e) && !u(e)) return;
|
|
593
|
+
let n = Ue(e.content ?? "");
|
|
594
|
+
t.updateBlock(e.id, { content: n });
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
597
|
};
|
|
@@ -631,56 +631,56 @@ var We = {
|
|
|
631
631
|
severity: "error"
|
|
632
632
|
};
|
|
633
633
|
function Ge(e) {
|
|
634
|
-
return
|
|
634
|
+
return l(e) || u(e) ? e.content : null;
|
|
635
635
|
}
|
|
636
|
-
var
|
|
636
|
+
var B = {
|
|
637
637
|
meta: We,
|
|
638
638
|
block(e) {
|
|
639
639
|
let t = Ge(e);
|
|
640
640
|
return t === null || !xe(t) ? null : { blockId: e.id };
|
|
641
641
|
}
|
|
642
|
-
},
|
|
642
|
+
}, Ke = {
|
|
643
643
|
meta: {
|
|
644
644
|
id: "a11y.text-all-caps",
|
|
645
645
|
severity: "warning"
|
|
646
646
|
},
|
|
647
|
-
block(e,
|
|
648
|
-
if (!
|
|
649
|
-
let
|
|
650
|
-
return
|
|
647
|
+
block(e, t, n) {
|
|
648
|
+
if (!l(e) && !u(e)) return null;
|
|
649
|
+
let r = I(e.content ?? "").replace(/[^\p{L}]/gu, "");
|
|
650
|
+
return r.length < n.thresholds.allCapsMinLength || r !== r.toLocaleUpperCase() ? null : { blockId: e.id };
|
|
651
651
|
}
|
|
652
|
-
},
|
|
652
|
+
}, qe = {
|
|
653
653
|
meta: {
|
|
654
654
|
id: "a11y.text-low-contrast",
|
|
655
655
|
severity: "error"
|
|
656
656
|
},
|
|
657
657
|
block(e, t) {
|
|
658
|
-
if (!
|
|
659
|
-
let
|
|
660
|
-
if (!
|
|
661
|
-
let
|
|
662
|
-
return Number.isNaN(
|
|
658
|
+
if (!u(e)) return null;
|
|
659
|
+
let n = e.color ?? t.resolvedTextColor;
|
|
660
|
+
if (!g(n) || !g(t.resolvedBackgroundColor)) return null;
|
|
661
|
+
let r = a[e.level] >= 24 ? 3 : 4.5, i = f(n, t.resolvedBackgroundColor);
|
|
662
|
+
return Number.isNaN(i) || i >= r ? null : {
|
|
663
663
|
blockId: e.id,
|
|
664
664
|
params: {
|
|
665
|
-
ratio:
|
|
666
|
-
required:
|
|
665
|
+
ratio: i.toFixed(2),
|
|
666
|
+
required: r
|
|
667
667
|
}
|
|
668
668
|
};
|
|
669
669
|
}
|
|
670
|
-
},
|
|
670
|
+
}, Je = {
|
|
671
671
|
id: "a11y.text-too-small",
|
|
672
672
|
severity: "warning"
|
|
673
673
|
};
|
|
674
|
-
function
|
|
675
|
-
return
|
|
674
|
+
function Ye(e) {
|
|
675
|
+
return s(e) || r(e) ? e.fontSize : null;
|
|
676
676
|
}
|
|
677
677
|
//#endregion
|
|
678
678
|
//#region ../quality/src/accessibility/index.ts
|
|
679
|
-
var
|
|
680
|
-
|
|
681
|
-
me,
|
|
679
|
+
var V = [
|
|
680
|
+
fe,
|
|
682
681
|
he,
|
|
683
682
|
ge,
|
|
683
|
+
_e,
|
|
684
684
|
be,
|
|
685
685
|
Ce,
|
|
686
686
|
Te,
|
|
@@ -689,13 +689,13 @@ var B = [
|
|
|
689
689
|
Ne,
|
|
690
690
|
Ie,
|
|
691
691
|
Be,
|
|
692
|
+
B,
|
|
692
693
|
Ke,
|
|
693
694
|
qe,
|
|
694
|
-
Je,
|
|
695
695
|
{
|
|
696
|
-
meta:
|
|
696
|
+
meta: Je,
|
|
697
697
|
block(e, t, n) {
|
|
698
|
-
let r =
|
|
698
|
+
let r = Ye(e);
|
|
699
699
|
return r === null || r >= n.thresholds.minFontSize ? null : {
|
|
700
700
|
blockId: e.id,
|
|
701
701
|
params: {
|
|
@@ -711,7 +711,7 @@ var B = [
|
|
|
711
711
|
severity: "warning"
|
|
712
712
|
},
|
|
713
713
|
block(e, t, n) {
|
|
714
|
-
if (!
|
|
714
|
+
if (!o(e)) return null;
|
|
715
715
|
let r = P(e.text ?? "");
|
|
716
716
|
return r === "" || !j(n.locale).vagueButtonLabels.includes(r) ? null : {
|
|
717
717
|
blockId: e.id,
|
|
@@ -725,7 +725,7 @@ var B = [
|
|
|
725
725
|
severity: "warning"
|
|
726
726
|
},
|
|
727
727
|
block(e, t, n) {
|
|
728
|
-
if (!
|
|
728
|
+
if (!o(e)) return null;
|
|
729
729
|
let r = e.buttonPadding;
|
|
730
730
|
if (!r) return null;
|
|
731
731
|
let i = e.fontSize * 1.4 + r.top + r.bottom;
|
|
@@ -744,8 +744,8 @@ var B = [
|
|
|
744
744
|
severity: "error"
|
|
745
745
|
},
|
|
746
746
|
block(e) {
|
|
747
|
-
if (!
|
|
748
|
-
let t =
|
|
747
|
+
if (!o(e)) return null;
|
|
748
|
+
let t = f(e.textColor, e.backgroundColor);
|
|
749
749
|
if (Number.isNaN(t)) return null;
|
|
750
750
|
let n = e.fontSize >= 24 ? 3 : 4.5;
|
|
751
751
|
return t >= n ? null : {
|
|
@@ -767,38 +767,38 @@ var B = [
|
|
|
767
767
|
}
|
|
768
768
|
}
|
|
769
769
|
];
|
|
770
|
-
function
|
|
771
|
-
return t.disabled === !0 || t.accessibility === !1 ? [] :
|
|
770
|
+
function Xe(e, t = {}) {
|
|
771
|
+
return t.disabled === !0 || t.accessibility === !1 ? [] : S(e, V, ie(t.locale, t.accessibility ?? {}, V), (e, t, n) => de(e, t, n));
|
|
772
772
|
}
|
|
773
773
|
//#endregion
|
|
774
774
|
//#region ../quality/src/structure/messages/de.ts
|
|
775
|
-
var
|
|
775
|
+
var Ze = /* @__PURE__ */ e({ default: () => Qe }), Qe = {
|
|
776
776
|
"structure.duplicate-block-id": "Block-ID erscheint {count}-mal im Baum. Jeder Block muss eine eindeutige ID haben.",
|
|
777
777
|
"structure.section-column-mismatch": "Sektion verwendet Layout „{layout}\" (erwartet {expected} Spalten), hat aber {actual}. Deutet auf beschädigten Zustand hin.",
|
|
778
778
|
"structure.nested-section": "Sektion ist in einer anderen Sektion verschachtelt. Sektionen können nicht verschachtelt werden – der Renderer wird sich falsch verhalten.",
|
|
779
779
|
"structure.empty-section": "Sektion enthält keine Blöcke. Entferne sie oder füge Inhalt hinzu.",
|
|
780
780
|
"structure.empty-column": "Spalte {columnIndex} dieser Sektion ist leer. Füge Inhalt hinzu oder reduziere die Spaltenanzahl."
|
|
781
|
-
},
|
|
781
|
+
}, $e = /* @__PURE__ */ e({ default: () => H }), H = {
|
|
782
782
|
"structure.duplicate-block-id": "Block id appears {count} times in the tree. Each block must have a unique id.",
|
|
783
783
|
"structure.section-column-mismatch": "Section uses layout \"{layout}\" (expects {expected} columns) but has {actual}. Indicates corrupted state.",
|
|
784
784
|
"structure.nested-section": "Section is nested inside another section. Sections cannot nest — the renderer will misbehave.",
|
|
785
785
|
"structure.empty-section": "Section has no blocks. Remove it or add content.",
|
|
786
786
|
"structure.empty-column": "Column {columnIndex} of this section is empty. Add content or reduce the column count."
|
|
787
|
-
},
|
|
788
|
-
"./de.ts":
|
|
789
|
-
"./en.ts":
|
|
790
|
-
}),
|
|
791
|
-
for (let e in
|
|
787
|
+
}, U = /* #__PURE__ */ Object.assign({
|
|
788
|
+
"./de.ts": Ze,
|
|
789
|
+
"./en.ts": $e
|
|
790
|
+
}), W = {};
|
|
791
|
+
for (let e in U) {
|
|
792
792
|
let t = /\.\/([^/]+)\.ts$/.exec(e);
|
|
793
793
|
if (!t) continue;
|
|
794
794
|
let n = t[1];
|
|
795
|
-
n !== "index" && (
|
|
795
|
+
n !== "index" && (W[n] = U[e].default);
|
|
796
796
|
}
|
|
797
|
-
function
|
|
798
|
-
return
|
|
797
|
+
function et(e) {
|
|
798
|
+
return W[e.split("-")[0]?.toLowerCase() ?? "en"] ?? W.en ?? H;
|
|
799
799
|
}
|
|
800
|
-
function
|
|
801
|
-
let r =
|
|
800
|
+
function tt(e, t, n) {
|
|
801
|
+
let r = et(e)[t] ?? H[t];
|
|
802
802
|
return n ? r.replace(/\{(\w+)\}/g, (e, t) => {
|
|
803
803
|
let r = n[t];
|
|
804
804
|
return r === void 0 ? `{${t}}` : String(r);
|
|
@@ -806,18 +806,18 @@ function nt(e, t, n) {
|
|
|
806
806
|
}
|
|
807
807
|
//#endregion
|
|
808
808
|
//#region ../quality/src/structure/rules/duplicate-block-id.ts
|
|
809
|
-
var
|
|
809
|
+
var nt = {
|
|
810
810
|
id: "structure.duplicate-block-id",
|
|
811
811
|
severity: "error"
|
|
812
812
|
};
|
|
813
|
-
function
|
|
814
|
-
for (let
|
|
813
|
+
function G(e, n) {
|
|
814
|
+
for (let r of e) if (n.set(r.id, (n.get(r.id) ?? 0) + 1), t(r)) for (let e of r.children) G(e, n);
|
|
815
815
|
}
|
|
816
|
-
var
|
|
817
|
-
meta:
|
|
816
|
+
var rt = {
|
|
817
|
+
meta: nt,
|
|
818
818
|
template(e) {
|
|
819
819
|
let t = /* @__PURE__ */ new Map();
|
|
820
|
-
|
|
820
|
+
G(e.blocks, t);
|
|
821
821
|
let n = [];
|
|
822
822
|
for (let [e, r] of t) r > 1 && n.push({
|
|
823
823
|
blockId: e,
|
|
@@ -825,124 +825,124 @@ var it = {
|
|
|
825
825
|
});
|
|
826
826
|
return n;
|
|
827
827
|
}
|
|
828
|
-
},
|
|
828
|
+
}, it = {
|
|
829
829
|
id: "structure.empty-column",
|
|
830
830
|
severity: "warning"
|
|
831
831
|
};
|
|
832
|
-
function
|
|
833
|
-
for (let
|
|
834
|
-
if (!
|
|
835
|
-
let e =
|
|
836
|
-
e.children.length > 1 && e.children.forEach((
|
|
837
|
-
|
|
832
|
+
function K(e, n) {
|
|
833
|
+
for (let r of e) {
|
|
834
|
+
if (!t(r)) continue;
|
|
835
|
+
let e = r;
|
|
836
|
+
e.children.length > 1 && e.children.forEach((t, r) => {
|
|
837
|
+
t.length === 0 && n.push({
|
|
838
838
|
blockId: e.id,
|
|
839
839
|
params: { columnIndex: r + 1 }
|
|
840
840
|
});
|
|
841
841
|
});
|
|
842
|
-
for (let
|
|
842
|
+
for (let t of e.children) K(t, n);
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
|
-
var
|
|
846
|
-
meta:
|
|
845
|
+
var at = {
|
|
846
|
+
meta: it,
|
|
847
847
|
template(e) {
|
|
848
848
|
let t = [];
|
|
849
|
-
return
|
|
849
|
+
return K(e.blocks, t), t;
|
|
850
850
|
}
|
|
851
|
-
},
|
|
851
|
+
}, ot = {
|
|
852
852
|
id: "structure.empty-section",
|
|
853
853
|
severity: "warning"
|
|
854
854
|
};
|
|
855
|
-
function
|
|
855
|
+
function st(e) {
|
|
856
856
|
return e.children.length === 0 || e.children.every((e) => e.length === 0);
|
|
857
857
|
}
|
|
858
|
-
var
|
|
859
|
-
meta:
|
|
858
|
+
var ct = {
|
|
859
|
+
meta: ot,
|
|
860
860
|
block(e) {
|
|
861
|
-
if (!
|
|
862
|
-
let
|
|
863
|
-
return
|
|
864
|
-
blockId:
|
|
861
|
+
if (!t(e)) return null;
|
|
862
|
+
let n = e;
|
|
863
|
+
return st(n) ? {
|
|
864
|
+
blockId: n.id,
|
|
865
865
|
fix: {
|
|
866
866
|
description: "Remove the empty section",
|
|
867
867
|
apply: (e) => {
|
|
868
|
-
e.removeBlock(
|
|
868
|
+
e.removeBlock(n.id);
|
|
869
869
|
}
|
|
870
870
|
}
|
|
871
871
|
} : null;
|
|
872
872
|
}
|
|
873
|
-
},
|
|
873
|
+
}, lt = {
|
|
874
874
|
meta: {
|
|
875
875
|
id: "structure.nested-section",
|
|
876
876
|
severity: "error"
|
|
877
877
|
},
|
|
878
|
-
block(e,
|
|
879
|
-
return !
|
|
878
|
+
block(e, n) {
|
|
879
|
+
return !t(e) || n.section === null ? null : {
|
|
880
880
|
blockId: e.id,
|
|
881
|
-
params: { parentId:
|
|
881
|
+
params: { parentId: n.section.id }
|
|
882
882
|
};
|
|
883
883
|
}
|
|
884
|
-
},
|
|
884
|
+
}, ut = {
|
|
885
885
|
id: "structure.section-column-mismatch",
|
|
886
886
|
severity: "error"
|
|
887
887
|
};
|
|
888
|
-
function
|
|
888
|
+
function dt(e) {
|
|
889
889
|
return e === "1" ? 1 : e === "3" ? 3 : 2;
|
|
890
890
|
}
|
|
891
891
|
//#endregion
|
|
892
892
|
//#region ../quality/src/structure/index.ts
|
|
893
|
-
var
|
|
894
|
-
|
|
893
|
+
var q = [
|
|
894
|
+
rt,
|
|
895
|
+
ct,
|
|
896
|
+
at,
|
|
895
897
|
lt,
|
|
896
|
-
ot,
|
|
897
|
-
ut,
|
|
898
898
|
{
|
|
899
|
-
meta:
|
|
899
|
+
meta: ut,
|
|
900
900
|
block(e) {
|
|
901
|
-
if (!
|
|
902
|
-
let
|
|
903
|
-
return
|
|
904
|
-
blockId:
|
|
901
|
+
if (!t(e)) return null;
|
|
902
|
+
let n = e, r = dt(n.columns), i = n.children.length;
|
|
903
|
+
return i === r ? null : {
|
|
904
|
+
blockId: n.id,
|
|
905
905
|
params: {
|
|
906
|
-
layout:
|
|
907
|
-
expected:
|
|
908
|
-
actual:
|
|
906
|
+
layout: n.columns,
|
|
907
|
+
expected: r,
|
|
908
|
+
actual: i
|
|
909
909
|
}
|
|
910
910
|
};
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
913
|
];
|
|
914
|
-
function
|
|
915
|
-
return t.disabled === !0 || t.structure === !1 ? [] :
|
|
914
|
+
function ft(e, t = {}) {
|
|
915
|
+
return t.disabled === !0 || t.structure === !1 ? [] : S(e, q, ae(t.locale, t.structure ?? {}, q), (e, t, n) => tt(e, t, n));
|
|
916
916
|
}
|
|
917
917
|
//#endregion
|
|
918
918
|
//#region ../quality/src/links/messages/de.ts
|
|
919
|
-
var
|
|
919
|
+
var pt = /* @__PURE__ */ e({ default: () => mt }), mt = {
|
|
920
920
|
"link.javascript-protocol": "Die URL verwendet das Protokoll „{protocol}:\", das beliebigen Skriptcode ausführen kann und aus Sicherheitsgründen beim Rendern entfernt wird. Ersetze sie durch eine echte URL oder entferne sie.",
|
|
921
921
|
"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.",
|
|
922
922
|
"link.malformed-mailto": "Der mailto:-Link ist fehlerhaft. Erwartet wird eine einzelne Empfängeradresse vor einer eventuellen Querystring (z. B. mailto:hallo@example.com).",
|
|
923
923
|
"link.malformed-tel": "Der tel:-Link enthält Zeichen, die keine Ziffern, +, Leerzeichen, Bindestriche, Klammern oder Punkte sind.",
|
|
924
924
|
"link.localhost-or-staging": "Der URL-Host „{host}\" entspricht einem Nicht-Produktionsmuster. Ersetze ihn vor dem Versand durch die Produktions-URL."
|
|
925
|
-
},
|
|
925
|
+
}, ht = /* @__PURE__ */ e({ default: () => J }), J = {
|
|
926
926
|
"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.",
|
|
927
927
|
"link.unsupported-protocol": "URL uses the \"{protocol}\" protocol, which most email clients do not support. Use http, https, mailto, tel, or sms.",
|
|
928
928
|
"link.malformed-mailto": "mailto: link is malformed. Expected a single recipient address before any query string (e.g. mailto:hello@example.com).",
|
|
929
929
|
"link.malformed-tel": "tel: link contains characters that are not digits, +, spaces, dashes, parentheses, or dots.",
|
|
930
930
|
"link.localhost-or-staging": "URL host \"{host}\" matches a non-production pattern. Replace with the production URL before sending."
|
|
931
|
-
},
|
|
932
|
-
"./de.ts":
|
|
933
|
-
"./en.ts":
|
|
934
|
-
}),
|
|
935
|
-
for (let e in
|
|
931
|
+
}, Y = /* #__PURE__ */ Object.assign({
|
|
932
|
+
"./de.ts": pt,
|
|
933
|
+
"./en.ts": ht
|
|
934
|
+
}), X = {};
|
|
935
|
+
for (let e in Y) {
|
|
936
936
|
let t = /\.\/([^/]+)\.ts$/.exec(e);
|
|
937
937
|
if (!t) continue;
|
|
938
938
|
let n = t[1];
|
|
939
|
-
n !== "index" && (
|
|
939
|
+
n !== "index" && (X[n] = Y[e].default);
|
|
940
940
|
}
|
|
941
|
-
function
|
|
942
|
-
return
|
|
941
|
+
function gt(e) {
|
|
942
|
+
return X[e.split("-")[0]?.toLowerCase() ?? "en"] ?? X.en ?? J;
|
|
943
943
|
}
|
|
944
|
-
function
|
|
945
|
-
let r =
|
|
944
|
+
function _t(e, t, n) {
|
|
945
|
+
let r = gt(e)[t] ?? J[t];
|
|
946
946
|
return n ? r.replace(/\{(\w+)\}/g, (e, t) => {
|
|
947
947
|
let r = n[t];
|
|
948
948
|
return r === void 0 ? `{${t}}` : String(r);
|
|
@@ -950,20 +950,20 @@ function vt(e, t, n) {
|
|
|
950
950
|
}
|
|
951
951
|
//#endregion
|
|
952
952
|
//#region ../quality/src/url-walker.ts
|
|
953
|
-
function
|
|
954
|
-
let
|
|
955
|
-
return
|
|
956
|
-
if (
|
|
957
|
-
for (let
|
|
958
|
-
url:
|
|
953
|
+
function Z(e) {
|
|
954
|
+
let t = [];
|
|
955
|
+
return x(e, (e) => {
|
|
956
|
+
if (u(e) || l(e) || c(e)) {
|
|
957
|
+
for (let n of F(e.content)) t.push({
|
|
958
|
+
url: n.href,
|
|
959
959
|
blockId: e.id,
|
|
960
960
|
source: "anchor",
|
|
961
|
-
label:
|
|
961
|
+
label: n.text
|
|
962
962
|
});
|
|
963
963
|
return;
|
|
964
964
|
}
|
|
965
|
-
if (
|
|
966
|
-
|
|
965
|
+
if (o(e)) {
|
|
966
|
+
t.push({
|
|
967
967
|
url: e.url,
|
|
968
968
|
blockId: e.id,
|
|
969
969
|
source: "button",
|
|
@@ -971,8 +971,8 @@ function X(e) {
|
|
|
971
971
|
});
|
|
972
972
|
return;
|
|
973
973
|
}
|
|
974
|
-
if (
|
|
975
|
-
e.linkUrl && e.linkUrl !== "" &&
|
|
974
|
+
if (n(e)) {
|
|
975
|
+
e.linkUrl && e.linkUrl !== "" && t.push({
|
|
976
976
|
url: e.linkUrl,
|
|
977
977
|
blockId: e.id,
|
|
978
978
|
source: "image-link",
|
|
@@ -980,8 +980,8 @@ function X(e) {
|
|
|
980
980
|
});
|
|
981
981
|
return;
|
|
982
982
|
}
|
|
983
|
-
if (
|
|
984
|
-
|
|
983
|
+
if (ee(e)) {
|
|
984
|
+
t.push({
|
|
985
985
|
url: e.url,
|
|
986
986
|
blockId: e.id,
|
|
987
987
|
source: "video",
|
|
@@ -989,48 +989,48 @@ function X(e) {
|
|
|
989
989
|
});
|
|
990
990
|
return;
|
|
991
991
|
}
|
|
992
|
-
if (
|
|
993
|
-
for (let
|
|
994
|
-
url:
|
|
992
|
+
if (s(e)) {
|
|
993
|
+
for (let n of e.items) t.push({
|
|
994
|
+
url: n.url,
|
|
995
995
|
blockId: e.id,
|
|
996
996
|
source: "menu-item",
|
|
997
|
-
label:
|
|
997
|
+
label: n.text
|
|
998
998
|
});
|
|
999
999
|
return;
|
|
1000
1000
|
}
|
|
1001
|
-
if (
|
|
1002
|
-
for (let
|
|
1003
|
-
url:
|
|
1001
|
+
if (i(e)) {
|
|
1002
|
+
for (let n of e.icons) t.push({
|
|
1003
|
+
url: n.url,
|
|
1004
1004
|
blockId: e.id,
|
|
1005
1005
|
source: "social-icon",
|
|
1006
|
-
label:
|
|
1006
|
+
label: n.platform
|
|
1007
1007
|
});
|
|
1008
1008
|
return;
|
|
1009
1009
|
}
|
|
1010
|
-
}),
|
|
1010
|
+
}), t;
|
|
1011
1011
|
}
|
|
1012
1012
|
//#endregion
|
|
1013
1013
|
//#region ../quality/src/links/rules/javascript-protocol.ts
|
|
1014
|
-
var
|
|
1014
|
+
var vt = {
|
|
1015
1015
|
id: "link.javascript-protocol",
|
|
1016
1016
|
severity: "error"
|
|
1017
|
-
},
|
|
1017
|
+
}, Q = [
|
|
1018
1018
|
"javascript",
|
|
1019
1019
|
"data",
|
|
1020
1020
|
"vbscript"
|
|
1021
1021
|
];
|
|
1022
|
-
function
|
|
1022
|
+
function yt(e) {
|
|
1023
1023
|
if (!e) return null;
|
|
1024
1024
|
let t = e.replace(/\s+/g, "");
|
|
1025
|
-
for (let e of
|
|
1025
|
+
for (let e of Q) if (RegExp(`^${e}:`, "i").test(t)) return e;
|
|
1026
1026
|
return null;
|
|
1027
1027
|
}
|
|
1028
|
-
var
|
|
1029
|
-
meta:
|
|
1028
|
+
var bt = {
|
|
1029
|
+
meta: vt,
|
|
1030
1030
|
template(e) {
|
|
1031
1031
|
let t = [];
|
|
1032
|
-
for (let n of
|
|
1033
|
-
let e =
|
|
1032
|
+
for (let n of Z(e)) {
|
|
1033
|
+
let e = yt(n.url);
|
|
1034
1034
|
e !== null && t.push({
|
|
1035
1035
|
blockId: n.blockId,
|
|
1036
1036
|
params: { protocol: e }
|
|
@@ -1038,39 +1038,39 @@ var xt = {
|
|
|
1038
1038
|
}
|
|
1039
1039
|
return t;
|
|
1040
1040
|
}
|
|
1041
|
-
},
|
|
1041
|
+
}, xt = {
|
|
1042
1042
|
id: "link.unsupported-protocol",
|
|
1043
1043
|
severity: "warning"
|
|
1044
|
-
},
|
|
1044
|
+
}, St = /* @__PURE__ */ new Set([
|
|
1045
1045
|
"http",
|
|
1046
1046
|
"https",
|
|
1047
1047
|
"mailto",
|
|
1048
1048
|
"tel",
|
|
1049
1049
|
"sms"
|
|
1050
|
-
]),
|
|
1051
|
-
function
|
|
1050
|
+
]), Ct = new Set(Q);
|
|
1051
|
+
function wt(e) {
|
|
1052
1052
|
if (!e) return null;
|
|
1053
1053
|
let t = e.trim(), n = /^([a-z][a-z0-9+\-.]*):/i.exec(t);
|
|
1054
1054
|
return n ? n[1].toLowerCase() : null;
|
|
1055
1055
|
}
|
|
1056
|
-
var
|
|
1057
|
-
meta:
|
|
1056
|
+
var Tt = {
|
|
1057
|
+
meta: xt,
|
|
1058
1058
|
template(e) {
|
|
1059
1059
|
let t = [];
|
|
1060
|
-
for (let n of
|
|
1061
|
-
let e =
|
|
1062
|
-
e !== null && (
|
|
1060
|
+
for (let n of Z(e)) {
|
|
1061
|
+
let e = wt(n.url);
|
|
1062
|
+
e !== null && (Ct.has(e) || St.has(e) || t.push({
|
|
1063
1063
|
blockId: n.blockId,
|
|
1064
1064
|
params: { protocol: e }
|
|
1065
1065
|
}));
|
|
1066
1066
|
}
|
|
1067
1067
|
return t;
|
|
1068
1068
|
}
|
|
1069
|
-
},
|
|
1069
|
+
}, Et = {
|
|
1070
1070
|
id: "link.malformed-mailto",
|
|
1071
1071
|
severity: "warning"
|
|
1072
1072
|
};
|
|
1073
|
-
function
|
|
1073
|
+
function Dt(e) {
|
|
1074
1074
|
let t = e.trim();
|
|
1075
1075
|
if (!/^mailto:/i.test(t)) return !1;
|
|
1076
1076
|
let [n] = t.slice(7).split("?", 2);
|
|
@@ -1086,10 +1086,10 @@ function Q(e) {
|
|
|
1086
1086
|
return !1;
|
|
1087
1087
|
}
|
|
1088
1088
|
var Ot = {
|
|
1089
|
-
meta:
|
|
1089
|
+
meta: Et,
|
|
1090
1090
|
template(e) {
|
|
1091
1091
|
let t = [];
|
|
1092
|
-
for (let n of
|
|
1092
|
+
for (let n of Z(e)) Dt(n.url) && t.push({ blockId: n.blockId });
|
|
1093
1093
|
return t;
|
|
1094
1094
|
}
|
|
1095
1095
|
}, kt = {
|
|
@@ -1108,7 +1108,7 @@ var Nt = {
|
|
|
1108
1108
|
meta: kt,
|
|
1109
1109
|
template(e) {
|
|
1110
1110
|
let t = [];
|
|
1111
|
-
for (let n of
|
|
1111
|
+
for (let n of Z(e)) Mt(n.url) && t.push({ blockId: n.blockId });
|
|
1112
1112
|
return t;
|
|
1113
1113
|
}
|
|
1114
1114
|
}, Pt = {
|
|
@@ -1132,8 +1132,8 @@ function It(e) {
|
|
|
1132
1132
|
//#endregion
|
|
1133
1133
|
//#region ../quality/src/links/index.ts
|
|
1134
1134
|
var $ = [
|
|
1135
|
-
|
|
1136
|
-
|
|
1135
|
+
bt,
|
|
1136
|
+
Tt,
|
|
1137
1137
|
Ot,
|
|
1138
1138
|
Nt,
|
|
1139
1139
|
{
|
|
@@ -1142,7 +1142,7 @@ var $ = [
|
|
|
1142
1142
|
let n = t.links.nonProductionHosts;
|
|
1143
1143
|
if (n.length === 0) return [];
|
|
1144
1144
|
let r = n.map(Ft), i = [];
|
|
1145
|
-
for (let t of
|
|
1145
|
+
for (let t of Z(e)) {
|
|
1146
1146
|
let e = It(t.url);
|
|
1147
1147
|
e !== null && r.some((t) => t.test(e)) && i.push({
|
|
1148
1148
|
blockId: t.blockId,
|
|
@@ -1154,7 +1154,7 @@ var $ = [
|
|
|
1154
1154
|
}
|
|
1155
1155
|
];
|
|
1156
1156
|
function Lt(e, t = {}) {
|
|
1157
|
-
return t.disabled === !0 || t.links === !1 ? [] :
|
|
1157
|
+
return t.disabled === !0 || t.links === !1 ? [] : S(e, $, oe(t.locale, t.links ?? {}, $), (e, t, n) => _t(e, t, n));
|
|
1158
1158
|
}
|
|
1159
1159
|
//#endregion
|
|
1160
1160
|
//#region ../quality/src/util.ts
|
|
@@ -1165,12 +1165,12 @@ function Rt(e) {
|
|
|
1165
1165
|
//#region ../quality/src/lint-template.ts
|
|
1166
1166
|
function zt(e, t = {}) {
|
|
1167
1167
|
return Rt(t) ? [] : [
|
|
1168
|
-
...
|
|
1169
|
-
...
|
|
1168
|
+
...Xe(e, t),
|
|
1169
|
+
...ft(e, t),
|
|
1170
1170
|
...Lt(e, t)
|
|
1171
1171
|
];
|
|
1172
1172
|
}
|
|
1173
1173
|
//#endregion
|
|
1174
1174
|
export { zt as lintTemplate };
|
|
1175
1175
|
|
|
1176
|
-
//# sourceMappingURL=src-
|
|
1176
|
+
//# sourceMappingURL=src-YVsPFLNJ.js.map
|