accessibility-insights-report 4.8.0 → 5.0.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/drop/index.js +645 -647
- package/package.json +5 -5
package/drop/index.js
CHANGED
|
@@ -855,7 +855,7 @@ var CombinedReportHtmlGenerator = class {
|
|
|
855
855
|
};
|
|
856
856
|
|
|
857
857
|
// src/common/components/cards/failed-instances-section.tsx
|
|
858
|
-
var
|
|
858
|
+
var React29 = __toESM(require("react"));
|
|
859
859
|
|
|
860
860
|
// src/reports/components/outcome-counter.ts
|
|
861
861
|
var countByCards = (cards) => cards.length;
|
|
@@ -874,14 +874,14 @@ var OutcomeCounter = {
|
|
|
874
874
|
var failed_instances_section_default = { "failedInstancesContainer": "failed-instances-container--3UUNb" };
|
|
875
875
|
|
|
876
876
|
// src/common/components/cards/result-section.tsx
|
|
877
|
-
var
|
|
878
|
-
var
|
|
877
|
+
var import_utilities4 = require("@fluentui/utilities");
|
|
878
|
+
var React28 = __toESM(require("react"));
|
|
879
879
|
|
|
880
880
|
// src/common/components/cards/result-section-content.tsx
|
|
881
|
-
var
|
|
881
|
+
var React26 = __toESM(require("react"));
|
|
882
882
|
|
|
883
883
|
// src/common/components/cards/rules-with-instances.tsx
|
|
884
|
-
var
|
|
884
|
+
var React25 = __toESM(require("react"));
|
|
885
885
|
|
|
886
886
|
// src/common/icons/check-icon.tsx
|
|
887
887
|
var React7 = __toESM(require("react"));
|
|
@@ -1108,7 +1108,7 @@ var MinimalRuleHeader = NamedFC("MinimalRuleHeader", (props) => {
|
|
|
1108
1108
|
});
|
|
1109
1109
|
|
|
1110
1110
|
// src/common/components/cards/rule-content.tsx
|
|
1111
|
-
var
|
|
1111
|
+
var React24 = __toESM(require("react"));
|
|
1112
1112
|
|
|
1113
1113
|
// src/common/configs/needs-review-rule-resources.ts
|
|
1114
1114
|
var needsReviewRuleResourcesPath = "https://accessibilityinsights.io/info-examples/web/needs-review";
|
|
@@ -1120,412 +1120,112 @@ var getNeedsReviewRuleResourcesUrl = (ruleId) => {
|
|
|
1120
1120
|
};
|
|
1121
1121
|
|
|
1122
1122
|
// src/common/components/cards/instance-details-group.tsx
|
|
1123
|
-
var
|
|
1123
|
+
var React20 = __toESM(require("react"));
|
|
1124
1124
|
|
|
1125
|
-
// src/common/components/cards/
|
|
1125
|
+
// src/common/components/cards/instance-details.tsx
|
|
1126
|
+
var import_classnames = __toESM(require("classnames"));
|
|
1126
1127
|
var import_lodash4 = require("lodash");
|
|
1127
|
-
var
|
|
1128
|
-
|
|
1129
|
-
// src/common/components/cards/simple-card-row.tsx
|
|
1130
|
-
var import_utilities3 = require("@fluentui/utilities");
|
|
1131
|
-
var React14 = __toESM(require("react"));
|
|
1128
|
+
var React19 = __toESM(require("react"));
|
|
1132
1129
|
|
|
1133
1130
|
// src/reports/components/instance-details.scss
|
|
1134
1131
|
var instance_details_default = { "hiddenHighlightButton": "hidden-highlight-button--vu3B3", "instanceDetailsCard": "instance-details-card--owGQF", "instanceDetailsCardContainer": "instance-details-card-container--KLHTp", "selected": "selected--wEA4l", "focused": "focused--pvBWq", "interactive": "interactive--an0ab", "reportInstanceTable": "report-instance-table--3VoZX", "row": "row---3i35", "rowLabel": "row-label--FlVZl", "rowContent": "row-content--07KUh" };
|
|
1135
1132
|
|
|
1136
|
-
// src/common/components/cards/
|
|
1137
|
-
var
|
|
1138
|
-
"SimpleCardRow",
|
|
1139
|
-
({ label: givenLabel, content, rowKey, contentClassName }) => {
|
|
1140
|
-
const contentStyling = (0, import_utilities3.css)(instance_details_default.rowContent, contentClassName);
|
|
1141
|
-
return /* @__PURE__ */ React14.createElement("tr", { className: instance_details_default.row, key: rowKey }, /* @__PURE__ */ React14.createElement("th", { className: instance_details_default.rowLabel }, givenLabel), /* @__PURE__ */ React14.createElement("td", { className: contentStyling }, content));
|
|
1142
|
-
}
|
|
1143
|
-
);
|
|
1144
|
-
|
|
1145
|
-
// src/common/components/cards/get-labelled-string-property-card-row.tsx
|
|
1146
|
-
var GetLabelledStringPropertyCardRow = (label, contentClassName) => {
|
|
1147
|
-
return NamedFC("StringPropertyCardRowProps", (props) => {
|
|
1148
|
-
if ((0, import_lodash4.isEmpty)(props.propertyData)) {
|
|
1149
|
-
return null;
|
|
1150
|
-
}
|
|
1151
|
-
return /* @__PURE__ */ React15.createElement(
|
|
1152
|
-
SimpleCardRow,
|
|
1153
|
-
{
|
|
1154
|
-
label,
|
|
1155
|
-
content: props.propertyData,
|
|
1156
|
-
rowKey: `${label}-${props.index}`,
|
|
1157
|
-
contentClassName
|
|
1158
|
-
}
|
|
1159
|
-
);
|
|
1160
|
-
});
|
|
1161
|
-
};
|
|
1133
|
+
// src/common/components/cards/instance-details-footer.tsx
|
|
1134
|
+
var import_react5 = require("@fluentui/react");
|
|
1162
1135
|
|
|
1163
|
-
// src/common/components/cards/
|
|
1164
|
-
var
|
|
1136
|
+
// src/common/components/cards/card-footer-instance-action-buttons.tsx
|
|
1137
|
+
var import_react4 = require("@fluentui/react");
|
|
1138
|
+
var import_Styling = require("@fluentui/react/lib/Styling");
|
|
1165
1139
|
|
|
1166
|
-
// src/common/
|
|
1167
|
-
var
|
|
1140
|
+
// src/common/icons/more-actions-menu-icon.tsx
|
|
1141
|
+
var React14 = __toESM(require("react"));
|
|
1142
|
+
var MoreActionsMenuIcon = NamedFC("MoreActionsMenuIcon", () => /* @__PURE__ */ React14.createElement(
|
|
1143
|
+
"svg",
|
|
1144
|
+
{
|
|
1145
|
+
width: "10",
|
|
1146
|
+
height: "16",
|
|
1147
|
+
viewBox: "0 0 10 16",
|
|
1148
|
+
fill: "none",
|
|
1149
|
+
stroke: "currentColor",
|
|
1150
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1151
|
+
role: "img",
|
|
1152
|
+
"aria-hidden": "true"
|
|
1153
|
+
},
|
|
1154
|
+
/* @__PURE__ */ React14.createElement("circle", { cx: "5", cy: "14", r: "1.5" }),
|
|
1155
|
+
/* @__PURE__ */ React14.createElement("circle", { cx: "5", cy: "8", r: "1.5" }),
|
|
1156
|
+
/* @__PURE__ */ React14.createElement("circle", { cx: "5", cy: "2", r: "1.5" })
|
|
1157
|
+
));
|
|
1168
1158
|
|
|
1169
|
-
// src/common/components/cards/
|
|
1170
|
-
var import_lodash5 = require("lodash");
|
|
1159
|
+
// src/common/components/cards/card-footer-instance-action-buttons.tsx
|
|
1171
1160
|
var React16 = __toESM(require("react"));
|
|
1172
1161
|
|
|
1173
|
-
// src/common/components/
|
|
1174
|
-
var
|
|
1175
|
-
|
|
1176
|
-
// src/common/components/cards/related-paths-card-row.tsx
|
|
1177
|
-
var RelatedPathsCardRow = NamedFC(
|
|
1178
|
-
"RelatedPathsCardRow",
|
|
1179
|
-
({ index, propertyData }) => {
|
|
1180
|
-
if ((0, import_lodash5.isEmpty)(propertyData)) {
|
|
1181
|
-
return null;
|
|
1182
|
-
}
|
|
1183
|
-
return /* @__PURE__ */ React16.createElement(
|
|
1184
|
-
SimpleCardRow,
|
|
1185
|
-
{
|
|
1186
|
-
label: `Related paths`,
|
|
1187
|
-
content: /* @__PURE__ */ React16.createElement("ul", { className: related_paths_card_row_default.pathList }, propertyData.map((selector) => /* @__PURE__ */ React16.createElement("li", { key: selector }, selector))),
|
|
1188
|
-
rowKey: `related-paths-row-${index}`
|
|
1189
|
-
}
|
|
1190
|
-
);
|
|
1191
|
-
}
|
|
1192
|
-
);
|
|
1193
|
-
|
|
1194
|
-
// src/common/components/cards/rich-resolution-card-row.tsx
|
|
1195
|
-
var React19 = __toESM(require("react"));
|
|
1196
|
-
|
|
1197
|
-
// src/assessments/markup.tsx
|
|
1198
|
-
var React17 = __toESM(require("react"));
|
|
1199
|
-
function Term(props) {
|
|
1200
|
-
return /* @__PURE__ */ React17.createElement("strong", null, props.children);
|
|
1201
|
-
}
|
|
1202
|
-
|
|
1203
|
-
// src/common/components/cards/rich-resolution-content.tsx
|
|
1204
|
-
var React18 = __toESM(require("react"));
|
|
1162
|
+
// src/common/components/toast.tsx
|
|
1163
|
+
var import_utilities3 = require("@fluentui/utilities");
|
|
1164
|
+
var React15 = __toESM(require("react"));
|
|
1205
1165
|
|
|
1206
|
-
// src/common/components/
|
|
1207
|
-
var
|
|
1166
|
+
// src/common/components/toast.scss
|
|
1167
|
+
var toast_default = { "toastContainer": "toast-container--L-5HM", "toastContent": "toast-content--8-Mx1" };
|
|
1208
1168
|
|
|
1209
|
-
// src/common/components/
|
|
1210
|
-
var
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
return /* @__PURE__ */ React18.createElement("div", { className: rich_resolution_content_default.combinationLists }, /* @__PURE__ */ React18.createElement("ul", { className: rich_resolution_content_default.multiLineTextYesBullet }, /* @__PURE__ */ React18.createElement("li", null, "If the instance is an icon or other non-text content, ignore it. This rule applies only to text."), /* @__PURE__ */ React18.createElement("li", null, "If the instance is text, use", " ", /* @__PURE__ */ React18.createElement(LinkComponent, { href: "https://go.microsoft.com/fwlink/?linkid=2075365" }, "Accessibility Insights for Windows"), " ", "(or the", " ", /* @__PURE__ */ React18.createElement(LinkComponent, { href: "https://developer.paciellogroup.com/resources/contrastanalyser/" }, "Colour Contrast Analyser"), " ", "if you're testing on a Mac) to manually verify that it has sufficient contrast compared to the background. If the background is an image or gradient, test an area where contrast appears to be lowest.")), /* @__PURE__ */ React18.createElement("ul", { className: rich_resolution_content_default.multiLineTextNoBullet }, /* @__PURE__ */ React18.createElement("li", null, "For detailed test instructions, see", " ", /* @__PURE__ */ React18.createElement(Term, null, "Assessment ", ">", " Adaptable content ", ">", " Contrast"), ".")));
|
|
1219
|
-
}
|
|
1220
|
-
case "web/duplicate-id-aria": {
|
|
1221
|
-
return /* @__PURE__ */ React18.createElement("div", null, "Document has multiple elements referenced with ARIA with the same id attribute. Examine any duplicate ID values and rename them. Duplicate IDs are common validation errors that may break the accessibility of labels, e.g., form fields, table header cells.");
|
|
1222
|
-
}
|
|
1223
|
-
case "web/th-has-data-cells": {
|
|
1224
|
-
return /* @__PURE__ */ React18.createElement("div", null, "Examine the header cell in the context of the table to verify that it has no data cells.");
|
|
1225
|
-
}
|
|
1226
|
-
case "web/label-content-name-mismatch": {
|
|
1227
|
-
return /* @__PURE__ */ React18.createElement("span", null, "Inspect the element using the Accessibility pane in the browser Developer tools and verify that the element\u2019s accessible name contains its visible text.");
|
|
1228
|
-
}
|
|
1229
|
-
case "web/p-as-heading": {
|
|
1230
|
-
return /* @__PURE__ */ React18.createElement("span", null, "Inspect the ", `<p>`, " element and verify that the element is not used as a heading through visual styling with bold, italic text or font-size. If headings are needed, use the appropriate heading tags.");
|
|
1231
|
-
}
|
|
1232
|
-
default: {
|
|
1233
|
-
throw new Error(
|
|
1234
|
-
`Cannot render RichResolutionContent with unrecognized contentId ${contentId}`
|
|
1235
|
-
);
|
|
1236
|
-
}
|
|
1237
|
-
}
|
|
1169
|
+
// src/common/components/toast.tsx
|
|
1170
|
+
var Toast = class _Toast extends React15.Component {
|
|
1171
|
+
timeoutId;
|
|
1172
|
+
static defaultProps = {
|
|
1173
|
+
timeoutLength: 6e3
|
|
1174
|
+
};
|
|
1175
|
+
constructor(props) {
|
|
1176
|
+
super(props);
|
|
1177
|
+
this.state = { toastVisible: false, content: null };
|
|
1238
1178
|
}
|
|
1239
|
-
)
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
({ deps, index, propertyData }) => {
|
|
1245
|
-
return /* @__PURE__ */ React19.createElement(
|
|
1246
|
-
SimpleCardRow,
|
|
1247
|
-
{
|
|
1248
|
-
label: `How to ${propertyData.labelType}`,
|
|
1249
|
-
content: /* @__PURE__ */ React19.createElement(RichResolutionContent, { deps, ...propertyData }),
|
|
1250
|
-
rowKey: `rich-resolution-row-${index}`
|
|
1251
|
-
}
|
|
1252
|
-
);
|
|
1179
|
+
show(content) {
|
|
1180
|
+
this.setState({ toastVisible: true, content });
|
|
1181
|
+
this.timeoutId = this.props.deps.windowUtils.setTimeout(() => {
|
|
1182
|
+
this.setState({ toastVisible: false, content: null });
|
|
1183
|
+
}, this.props.timeoutLength ?? _Toast.defaultProps.timeoutLength);
|
|
1253
1184
|
}
|
|
1254
|
-
)
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
// src/common/components/cards/urls-card-row.tsx
|
|
1260
|
-
var React20 = __toESM(require("react"));
|
|
1261
|
-
|
|
1262
|
-
// src/common/components/cards/urls-card-row.scss
|
|
1263
|
-
var urls_card_row_default = { "urlsRowContent": "urls-row-content--JDdRx", "urlsRowContentNewFailure": "urls-row-content-new-Failure--oL5lS" };
|
|
1264
|
-
|
|
1265
|
-
// src/common/components/cards/urls-card-row.tsx
|
|
1266
|
-
var UrlsCardRow = NamedFC("UrlsCardRow", ({ deps, ...props }) => {
|
|
1267
|
-
const urlInfos = props.propertyData.urlInfos;
|
|
1268
|
-
const renderUrlContent = () => {
|
|
1269
|
-
return /* @__PURE__ */ React20.createElement("ul", { className: urls_card_row_default.urlsRowContent }, urlInfos.map((urlInfo, index) => getUrlListItem(urlInfo, index, deps)));
|
|
1270
|
-
};
|
|
1271
|
-
return /* @__PURE__ */ React20.createElement(
|
|
1272
|
-
SimpleCardRow,
|
|
1273
|
-
{
|
|
1274
|
-
label: "URL",
|
|
1275
|
-
content: renderUrlContent(),
|
|
1276
|
-
rowKey: `urls-row-${props.index}`
|
|
1185
|
+
componentWillUnmount() {
|
|
1186
|
+
if (this.timeoutId) {
|
|
1187
|
+
this.props.deps.windowUtils.clearTimeout(this.timeoutId);
|
|
1188
|
+
this.timeoutId = null;
|
|
1277
1189
|
}
|
|
1278
|
-
);
|
|
1279
|
-
});
|
|
1280
|
-
var isNewViolation = (urlInfo) => {
|
|
1281
|
-
return urlInfo.baselineStatus === "new";
|
|
1282
|
-
};
|
|
1283
|
-
function getUrlListItem(urlInfo, index, deps) {
|
|
1284
|
-
const key = `urls-${index}`;
|
|
1285
|
-
if (isNewViolation(urlInfo)) {
|
|
1286
|
-
return /* @__PURE__ */ React20.createElement("li", { key }, /* @__PURE__ */ React20.createElement(deps.LinkComponent, { "aria-label": `NEW. ${urlInfo.url}`, href: urlInfo.url }, urlInfo.url), /* @__PURE__ */ React20.createElement("span", { key: "new", "aria-hidden": "true", className: urls_card_row_default.urlsRowContentNewFailure }, " NEW!"));
|
|
1287
1190
|
}
|
|
1288
|
-
|
|
1289
|
-
}
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
var React22 = __toESM(require("react"));
|
|
1191
|
+
render() {
|
|
1192
|
+
return /* @__PURE__ */ React15.createElement("div", { className: toast_default.toastContainer, "aria-live": "polite" }, this.state.toastVisible ? /* @__PURE__ */ React15.createElement("div", { className: (0, import_utilities3.css)("ms-fadeIn100", toast_default.toastContent) }, this.state.content) : null);
|
|
1193
|
+
}
|
|
1194
|
+
};
|
|
1293
1195
|
|
|
1294
|
-
// src/common/
|
|
1295
|
-
var
|
|
1296
|
-
CheckType2[CheckType2["All"] = 0] = "All";
|
|
1297
|
-
CheckType2[CheckType2["Any"] = 1] = "Any";
|
|
1298
|
-
CheckType2[CheckType2["None"] = 2] = "None";
|
|
1299
|
-
return CheckType2;
|
|
1300
|
-
})(CheckType || {});
|
|
1196
|
+
// src/common/components/cards/card-footer-instance-action-buttons.scss
|
|
1197
|
+
var card_footer_instance_action_buttons_default = { "kebabMenuIcon": "kebab-menu-icon--EUIj-", "kebabMenuButton": "kebab-menu-button--9Qt0a" };
|
|
1301
1198
|
|
|
1302
|
-
// src/common/components/
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1199
|
+
// src/common/components/cards/card-footer-instance-action-buttons.tsx
|
|
1200
|
+
(0, import_Styling.registerIcons)({
|
|
1201
|
+
icons: {
|
|
1202
|
+
MoreActionsMenuIcon: /* @__PURE__ */ React16.createElement(MoreActionsMenuIcon, null)
|
|
1203
|
+
}
|
|
1204
|
+
});
|
|
1205
|
+
var CardFooterInstanceActionButtons = class extends React16.Component {
|
|
1206
|
+
constructor(props) {
|
|
1207
|
+
super(props);
|
|
1208
|
+
this.focusButtonAfterDialogClosed = () => {
|
|
1209
|
+
var _a, _b, _c;
|
|
1210
|
+
if ((_a = this.props.narrowModeStatus) == null ? void 0 : _a.isCardFooterCollapsed) {
|
|
1211
|
+
(_b = this.kebabButtonRef) == null ? void 0 : _b.focus();
|
|
1314
1212
|
} else {
|
|
1315
|
-
|
|
1213
|
+
(_c = this.fileIssueButtonRef) == null ? void 0 : _c.focus();
|
|
1316
1214
|
}
|
|
1317
1215
|
};
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
};
|
|
1324
|
-
if (props.checks.length === 0) {
|
|
1216
|
+
this.toastRef = React16.createRef();
|
|
1217
|
+
}
|
|
1218
|
+
render() {
|
|
1219
|
+
const menuItems = this.getMenuItems();
|
|
1220
|
+
if (menuItems.length === 0) {
|
|
1325
1221
|
return null;
|
|
1326
1222
|
}
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
var how_to_fix_card_row_default = { "howToFixContent": "how-to-fix-content--Zz96u" };
|
|
1334
|
-
|
|
1335
|
-
// src/common/components/cards/how-to-fix-card-row.tsx
|
|
1336
|
-
var HowToFixWebCardRow = NamedFC(
|
|
1337
|
-
"HowToFixWebCardRow",
|
|
1338
|
-
({ deps, ...props }) => {
|
|
1339
|
-
const { any: anyOf, all, none } = props.propertyData;
|
|
1340
|
-
const renderFixInstructionsContent = () => {
|
|
1341
|
-
return /* @__PURE__ */ React22.createElement("div", { className: how_to_fix_card_row_default.howToFixContent }, /* @__PURE__ */ React22.createElement(
|
|
1342
|
-
FixInstructionPanel,
|
|
1343
|
-
{
|
|
1344
|
-
deps,
|
|
1345
|
-
checkType: 0 /* All */,
|
|
1346
|
-
checks: all.concat(none).map(turnStringToMessageObject),
|
|
1347
|
-
renderTitleElement: renderFixInstructionsTitleElement
|
|
1348
|
-
}
|
|
1349
|
-
), /* @__PURE__ */ React22.createElement(
|
|
1350
|
-
FixInstructionPanel,
|
|
1351
|
-
{
|
|
1352
|
-
deps,
|
|
1353
|
-
checkType: 1 /* Any */,
|
|
1354
|
-
checks: anyOf.map(turnStringToMessageObject),
|
|
1355
|
-
renderTitleElement: renderFixInstructionsTitleElement
|
|
1356
|
-
}
|
|
1357
|
-
));
|
|
1358
|
-
};
|
|
1359
|
-
const turnStringToMessageObject = (s) => {
|
|
1360
|
-
return { message: s };
|
|
1361
|
-
};
|
|
1362
|
-
const renderFixInstructionsTitleElement = (titleText) => {
|
|
1363
|
-
return /* @__PURE__ */ React22.createElement("div", null, titleText);
|
|
1364
|
-
};
|
|
1365
|
-
return /* @__PURE__ */ React22.createElement(
|
|
1366
|
-
SimpleCardRow,
|
|
1367
|
-
{
|
|
1368
|
-
label: "How to fix",
|
|
1369
|
-
content: renderFixInstructionsContent(),
|
|
1370
|
-
rowKey: `how-to-fix-row-${props.index}`
|
|
1371
|
-
}
|
|
1372
|
-
);
|
|
1373
|
-
}
|
|
1374
|
-
);
|
|
1375
|
-
|
|
1376
|
-
// src/common/components/cards/path-card-row.tsx
|
|
1377
|
-
var PathCardRow = GetLabelledStringPropertyCardRow("Path");
|
|
1378
|
-
|
|
1379
|
-
// src/common/components/cards/snippet-card-row.scss
|
|
1380
|
-
var snippet_card_row_default = { "snippet": "snippet--hSNfv" };
|
|
1381
|
-
|
|
1382
|
-
// src/common/components/cards/snippet-card-row.tsx
|
|
1383
|
-
var SnippetCardRow = GetLabelledStringPropertyCardRow("Snippet", snippet_card_row_default.snippet);
|
|
1384
|
-
|
|
1385
|
-
// src/common/configs/unified-result-property-configurations.tsx
|
|
1386
|
-
var howToFixWebConfiguration = {
|
|
1387
|
-
cardRow: HowToFixWebCardRow
|
|
1388
|
-
};
|
|
1389
|
-
var richResolutionConfiguration = {
|
|
1390
|
-
cardRow: RichResolutionCardRow
|
|
1391
|
-
};
|
|
1392
|
-
var cssSelectorConfiguration = {
|
|
1393
|
-
cardRow: PathCardRow
|
|
1394
|
-
};
|
|
1395
|
-
var relatedCssSelectorsConfiguration = {
|
|
1396
|
-
cardRow: RelatedPathsCardRow
|
|
1397
|
-
};
|
|
1398
|
-
var snippetConfiguration = {
|
|
1399
|
-
cardRow: SnippetCardRow
|
|
1400
|
-
};
|
|
1401
|
-
var classNameConfiguration = {
|
|
1402
|
-
cardRow: ClassNameCardRow
|
|
1403
|
-
};
|
|
1404
|
-
var contentDescriptionConfiguration = {
|
|
1405
|
-
cardRow: ContentDescriptionCardRow
|
|
1406
|
-
};
|
|
1407
|
-
var textConfiguration = {
|
|
1408
|
-
cardRow: TextCardRow
|
|
1409
|
-
};
|
|
1410
|
-
var urlsConfiguration = {
|
|
1411
|
-
cardRow: UrlsCardRow
|
|
1412
|
-
};
|
|
1413
|
-
var propertyIdToConfigurationMap = {
|
|
1414
|
-
"css-selector": cssSelectorConfiguration,
|
|
1415
|
-
"how-to-fix-web": howToFixWebConfiguration,
|
|
1416
|
-
richResolution: richResolutionConfiguration,
|
|
1417
|
-
snippet: snippetConfiguration,
|
|
1418
|
-
className: classNameConfiguration,
|
|
1419
|
-
contentDescription: contentDescriptionConfiguration,
|
|
1420
|
-
text: textConfiguration,
|
|
1421
|
-
urls: urlsConfiguration,
|
|
1422
|
-
relatedCssSelectors: relatedCssSelectorsConfiguration
|
|
1423
|
-
};
|
|
1424
|
-
function getPropertyConfiguration(id2) {
|
|
1425
|
-
return propertyIdToConfigurationMap[id2];
|
|
1426
|
-
}
|
|
1427
|
-
|
|
1428
|
-
// src/common/components/cards/instance-details.tsx
|
|
1429
|
-
var import_classnames = __toESM(require("classnames"));
|
|
1430
|
-
var import_lodash6 = require("lodash");
|
|
1431
|
-
var React28 = __toESM(require("react"));
|
|
1432
|
-
|
|
1433
|
-
// src/common/components/cards/instance-details-footer.tsx
|
|
1434
|
-
var import_react5 = require("@fluentui/react");
|
|
1435
|
-
|
|
1436
|
-
// src/common/components/cards/card-footer-instance-action-buttons.tsx
|
|
1437
|
-
var import_react4 = require("@fluentui/react");
|
|
1438
|
-
var import_Styling = require("@fluentui/react/lib/Styling");
|
|
1439
|
-
|
|
1440
|
-
// src/common/icons/more-actions-menu-icon.tsx
|
|
1441
|
-
var React23 = __toESM(require("react"));
|
|
1442
|
-
var MoreActionsMenuIcon = NamedFC("MoreActionsMenuIcon", () => /* @__PURE__ */ React23.createElement(
|
|
1443
|
-
"svg",
|
|
1444
|
-
{
|
|
1445
|
-
width: "10",
|
|
1446
|
-
height: "16",
|
|
1447
|
-
viewBox: "0 0 10 16",
|
|
1448
|
-
fill: "none",
|
|
1449
|
-
stroke: "currentColor",
|
|
1450
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1451
|
-
role: "img",
|
|
1452
|
-
"aria-hidden": "true"
|
|
1453
|
-
},
|
|
1454
|
-
/* @__PURE__ */ React23.createElement("circle", { cx: "5", cy: "14", r: "1.5" }),
|
|
1455
|
-
/* @__PURE__ */ React23.createElement("circle", { cx: "5", cy: "8", r: "1.5" }),
|
|
1456
|
-
/* @__PURE__ */ React23.createElement("circle", { cx: "5", cy: "2", r: "1.5" })
|
|
1457
|
-
));
|
|
1458
|
-
|
|
1459
|
-
// src/common/components/cards/card-footer-instance-action-buttons.tsx
|
|
1460
|
-
var React25 = __toESM(require("react"));
|
|
1461
|
-
|
|
1462
|
-
// src/common/components/toast.tsx
|
|
1463
|
-
var import_utilities4 = require("@fluentui/utilities");
|
|
1464
|
-
var React24 = __toESM(require("react"));
|
|
1465
|
-
|
|
1466
|
-
// src/common/components/toast.scss
|
|
1467
|
-
var toast_default = { "toastContainer": "toast-container--L-5HM", "toastContent": "toast-content--8-Mx1" };
|
|
1468
|
-
|
|
1469
|
-
// src/common/components/toast.tsx
|
|
1470
|
-
var Toast = class _Toast extends React24.Component {
|
|
1471
|
-
timeoutId;
|
|
1472
|
-
static defaultProps = {
|
|
1473
|
-
timeoutLength: 6e3
|
|
1474
|
-
};
|
|
1475
|
-
constructor(props) {
|
|
1476
|
-
super(props);
|
|
1477
|
-
this.state = { toastVisible: false, content: null };
|
|
1478
|
-
}
|
|
1479
|
-
show(content) {
|
|
1480
|
-
this.setState({ toastVisible: true, content });
|
|
1481
|
-
this.timeoutId = this.props.deps.windowUtils.setTimeout(() => {
|
|
1482
|
-
this.setState({ toastVisible: false, content: null });
|
|
1483
|
-
}, this.props.timeoutLength ?? _Toast.defaultProps.timeoutLength);
|
|
1484
|
-
}
|
|
1485
|
-
componentWillUnmount() {
|
|
1486
|
-
if (this.timeoutId) {
|
|
1487
|
-
this.props.deps.windowUtils.clearTimeout(this.timeoutId);
|
|
1488
|
-
this.timeoutId = null;
|
|
1489
|
-
}
|
|
1490
|
-
}
|
|
1491
|
-
render() {
|
|
1492
|
-
return /* @__PURE__ */ React24.createElement("div", { className: toast_default.toastContainer, "aria-live": "polite" }, this.state.toastVisible ? /* @__PURE__ */ React24.createElement("div", { className: (0, import_utilities4.css)("ms-fadeIn100", toast_default.toastContent) }, this.state.content) : null);
|
|
1493
|
-
}
|
|
1494
|
-
};
|
|
1495
|
-
|
|
1496
|
-
// src/common/components/cards/card-footer-instance-action-buttons.scss
|
|
1497
|
-
var card_footer_instance_action_buttons_default = { "kebabMenuIcon": "kebab-menu-icon--EUIj-", "kebabMenuButton": "kebab-menu-button--9Qt0a" };
|
|
1498
|
-
|
|
1499
|
-
// src/common/components/cards/card-footer-instance-action-buttons.tsx
|
|
1500
|
-
(0, import_Styling.registerIcons)({
|
|
1501
|
-
icons: {
|
|
1502
|
-
MoreActionsMenuIcon: /* @__PURE__ */ React25.createElement(MoreActionsMenuIcon, null)
|
|
1503
|
-
}
|
|
1504
|
-
});
|
|
1505
|
-
var CardFooterInstanceActionButtons = class extends React25.Component {
|
|
1506
|
-
constructor(props) {
|
|
1507
|
-
super(props);
|
|
1508
|
-
this.focusButtonAfterDialogClosed = () => {
|
|
1509
|
-
var _a, _b, _c;
|
|
1510
|
-
if ((_a = this.props.narrowModeStatus) == null ? void 0 : _a.isCardFooterCollapsed) {
|
|
1511
|
-
(_b = this.kebabButtonRef) == null ? void 0 : _b.focus();
|
|
1512
|
-
} else {
|
|
1513
|
-
(_c = this.fileIssueButtonRef) == null ? void 0 : _c.focus();
|
|
1514
|
-
}
|
|
1515
|
-
};
|
|
1516
|
-
this.toastRef = React25.createRef();
|
|
1517
|
-
}
|
|
1518
|
-
render() {
|
|
1519
|
-
const menuItems = this.getMenuItems();
|
|
1520
|
-
if (menuItems.length === 0) {
|
|
1521
|
-
return null;
|
|
1522
|
-
}
|
|
1523
|
-
return (
|
|
1524
|
-
// The wrapper has to be a real element, not a <>, because we want the placeholder elements
|
|
1525
|
-
// the dialog/toast involve to be considered as part of the button for the purposes of layout
|
|
1526
|
-
// calculation in this component's parent.
|
|
1527
|
-
/* @__PURE__ */ React25.createElement("div", { onKeyDown: (event) => event.stopPropagation() }, this.renderButtons(), this.renderCopyFailureDetailsToast())
|
|
1528
|
-
);
|
|
1223
|
+
return (
|
|
1224
|
+
// The wrapper has to be a real element, not a <>, because we want the placeholder elements
|
|
1225
|
+
// the dialog/toast involve to be considered as part of the button for the purposes of layout
|
|
1226
|
+
// calculation in this component's parent.
|
|
1227
|
+
/* @__PURE__ */ React16.createElement("div", { onKeyDown: (event) => event.stopPropagation() }, this.renderButtons(), this.renderCopyFailureDetailsToast())
|
|
1228
|
+
);
|
|
1529
1229
|
}
|
|
1530
1230
|
renderButtons() {
|
|
1531
1231
|
var _a;
|
|
@@ -1536,7 +1236,7 @@ var CardFooterInstanceActionButtons = class extends React25.Component {
|
|
|
1536
1236
|
}
|
|
1537
1237
|
}
|
|
1538
1238
|
renderKebabButton() {
|
|
1539
|
-
return /* @__PURE__ */
|
|
1239
|
+
return /* @__PURE__ */ React16.createElement(
|
|
1540
1240
|
import_react4.ActionButton,
|
|
1541
1241
|
{
|
|
1542
1242
|
componentRef: (ref) => this.kebabButtonRef = ref,
|
|
@@ -1555,7 +1255,7 @@ var CardFooterInstanceActionButtons = class extends React25.Component {
|
|
|
1555
1255
|
}
|
|
1556
1256
|
renderExpandedButtons() {
|
|
1557
1257
|
const menuItems = this.getMenuItems();
|
|
1558
|
-
return /* @__PURE__ */
|
|
1258
|
+
return /* @__PURE__ */ React16.createElement(React16.Fragment, null, menuItems.map((props) => /* @__PURE__ */ React16.createElement("span", { key: props.key }, /* @__PURE__ */ React16.createElement(
|
|
1559
1259
|
import_react4.ActionButton,
|
|
1560
1260
|
{
|
|
1561
1261
|
onClick: props.onClick,
|
|
@@ -1571,7 +1271,7 @@ var CardFooterInstanceActionButtons = class extends React25.Component {
|
|
|
1571
1271
|
if (!cardInteractionSupport.supportsCopyFailureDetails) {
|
|
1572
1272
|
return null;
|
|
1573
1273
|
}
|
|
1574
|
-
return /* @__PURE__ */
|
|
1274
|
+
return /* @__PURE__ */ React16.createElement(Toast, { ref: this.toastRef, deps: this.props.deps });
|
|
1575
1275
|
}
|
|
1576
1276
|
getMenuItems() {
|
|
1577
1277
|
return this.props.deps.cardFooterMenuItemsBuilder.getCardFooterMenuItems({
|
|
@@ -1584,8 +1284,8 @@ var CardFooterInstanceActionButtons = class extends React25.Component {
|
|
|
1584
1284
|
};
|
|
1585
1285
|
|
|
1586
1286
|
// src/common/icons/highlight-status-icons.tsx
|
|
1587
|
-
var
|
|
1588
|
-
var HighlightVisibleIcon = NamedFC("HighlightVisibleIcon", () => /* @__PURE__ */
|
|
1287
|
+
var React17 = __toESM(require("react"));
|
|
1288
|
+
var HighlightVisibleIcon = NamedFC("HighlightVisibleIcon", () => /* @__PURE__ */ React17.createElement(
|
|
1589
1289
|
"svg",
|
|
1590
1290
|
{
|
|
1591
1291
|
width: "34",
|
|
@@ -1595,7 +1295,7 @@ var HighlightVisibleIcon = NamedFC("HighlightVisibleIcon", () => /* @__PURE__ */
|
|
|
1595
1295
|
role: "img",
|
|
1596
1296
|
"aria-hidden": "true"
|
|
1597
1297
|
},
|
|
1598
|
-
/* @__PURE__ */
|
|
1298
|
+
/* @__PURE__ */ React17.createElement(
|
|
1599
1299
|
"path",
|
|
1600
1300
|
{
|
|
1601
1301
|
fillRule: "evenodd",
|
|
@@ -1604,7 +1304,7 @@ var HighlightVisibleIcon = NamedFC("HighlightVisibleIcon", () => /* @__PURE__ */
|
|
|
1604
1304
|
}
|
|
1605
1305
|
)
|
|
1606
1306
|
));
|
|
1607
|
-
var HighlightUnavailableIcon = NamedFC("HighlightUnavailableIcon", () => /* @__PURE__ */
|
|
1307
|
+
var HighlightUnavailableIcon = NamedFC("HighlightUnavailableIcon", () => /* @__PURE__ */ React17.createElement(
|
|
1608
1308
|
"svg",
|
|
1609
1309
|
{
|
|
1610
1310
|
width: "34",
|
|
@@ -1614,7 +1314,7 @@ var HighlightUnavailableIcon = NamedFC("HighlightUnavailableIcon", () => /* @__P
|
|
|
1614
1314
|
role: "img",
|
|
1615
1315
|
"aria-hidden": "true"
|
|
1616
1316
|
},
|
|
1617
|
-
/* @__PURE__ */
|
|
1317
|
+
/* @__PURE__ */ React17.createElement(
|
|
1618
1318
|
"path",
|
|
1619
1319
|
{
|
|
1620
1320
|
fillRule: "evenodd",
|
|
@@ -1623,7 +1323,7 @@ var HighlightUnavailableIcon = NamedFC("HighlightUnavailableIcon", () => /* @__P
|
|
|
1623
1323
|
}
|
|
1624
1324
|
)
|
|
1625
1325
|
));
|
|
1626
|
-
var HighlightHiddenIcon = NamedFC("HighlightHiddenIcon", () => /* @__PURE__ */
|
|
1326
|
+
var HighlightHiddenIcon = NamedFC("HighlightHiddenIcon", () => /* @__PURE__ */ React17.createElement(
|
|
1627
1327
|
"svg",
|
|
1628
1328
|
{
|
|
1629
1329
|
width: "34",
|
|
@@ -1633,7 +1333,7 @@ var HighlightHiddenIcon = NamedFC("HighlightHiddenIcon", () => /* @__PURE__ */ R
|
|
|
1633
1333
|
role: "img",
|
|
1634
1334
|
"aria-hidden": "true"
|
|
1635
1335
|
},
|
|
1636
|
-
/* @__PURE__ */
|
|
1336
|
+
/* @__PURE__ */ React17.createElement(
|
|
1637
1337
|
"path",
|
|
1638
1338
|
{
|
|
1639
1339
|
fillRule: "evenodd",
|
|
@@ -1644,7 +1344,7 @@ var HighlightHiddenIcon = NamedFC("HighlightHiddenIcon", () => /* @__PURE__ */ R
|
|
|
1644
1344
|
));
|
|
1645
1345
|
|
|
1646
1346
|
// src/common/components/cards/instance-details-footer.tsx
|
|
1647
|
-
var
|
|
1347
|
+
var React18 = __toESM(require("react"));
|
|
1648
1348
|
|
|
1649
1349
|
// src/common/components/cards/instance-details-footer.scss
|
|
1650
1350
|
var instance_details_footer_default = { "foot": "foot--p1DfC", "highlightStatus": "highlight-status--xJvvI" };
|
|
@@ -1666,7 +1366,7 @@ var InstanceDetailsFooter = NamedFC(
|
|
|
1666
1366
|
}
|
|
1667
1367
|
const issueDetailsData = deps.unifiedResultToIssueFilingDataConverter.convert(result, rule, targetAppInfo);
|
|
1668
1368
|
const kebabMenuAriaLabel = `More Actions for failure instance ${result.identifiers.identifier} in rule ${rule.id}`;
|
|
1669
|
-
return /* @__PURE__ */
|
|
1369
|
+
return /* @__PURE__ */ React18.createElement(
|
|
1670
1370
|
CardFooterInstanceActionButtons,
|
|
1671
1371
|
{
|
|
1672
1372
|
deps,
|
|
@@ -1684,13 +1384,13 @@ var InstanceDetailsFooter = NamedFC(
|
|
|
1684
1384
|
const highlightState = result.highlightStatus;
|
|
1685
1385
|
const label = "Highlight " + highlightState;
|
|
1686
1386
|
const icon = {
|
|
1687
|
-
unavailable: /* @__PURE__ */
|
|
1688
|
-
visible: /* @__PURE__ */
|
|
1689
|
-
hidden: /* @__PURE__ */
|
|
1387
|
+
unavailable: /* @__PURE__ */ React18.createElement(HighlightUnavailableIcon, null),
|
|
1388
|
+
visible: /* @__PURE__ */ React18.createElement(HighlightVisibleIcon, null),
|
|
1389
|
+
hidden: /* @__PURE__ */ React18.createElement(HighlightHiddenIcon, null)
|
|
1690
1390
|
}[highlightState];
|
|
1691
|
-
return /* @__PURE__ */
|
|
1391
|
+
return /* @__PURE__ */ React18.createElement("div", { className: instance_details_footer_default.highlightStatus }, icon, /* @__PURE__ */ React18.createElement(import_react5.Label, null, label));
|
|
1692
1392
|
};
|
|
1693
|
-
return /* @__PURE__ */
|
|
1393
|
+
return /* @__PURE__ */ React18.createElement("div", { className: instance_details_footer_default.foot }, renderHighlightStatus(), renderKebabMenu());
|
|
1694
1394
|
}
|
|
1695
1395
|
);
|
|
1696
1396
|
|
|
@@ -1706,7 +1406,7 @@ var InstanceDetails = NamedFC("InstanceDetails", (props) => {
|
|
|
1706
1406
|
cardSelectionMessageCreator,
|
|
1707
1407
|
narrowModeStatus
|
|
1708
1408
|
} = props;
|
|
1709
|
-
const [cardFocused, setCardFocus] =
|
|
1409
|
+
const [cardFocused, setCardFocus] = React19.useState(false);
|
|
1710
1410
|
const isHighlightSupported = deps.cardInteractionSupport.supportsHighlighting;
|
|
1711
1411
|
const instanceDetailsCardStyling = (0, import_classnames.default)({
|
|
1712
1412
|
[instance_details_default.instanceDetailsCard]: true,
|
|
@@ -1722,7 +1422,7 @@ var InstanceDetails = NamedFC("InstanceDetails", (props) => {
|
|
|
1722
1422
|
event.stopPropagation();
|
|
1723
1423
|
cardSelectionMessageCreator == null ? void 0 : cardSelectionMessageCreator.toggleCardSelection(result.ruleId, result.uid, event);
|
|
1724
1424
|
};
|
|
1725
|
-
const hiddenButton =
|
|
1425
|
+
const hiddenButton = React19.useRef(null);
|
|
1726
1426
|
const cardHighlightingProperties = isHighlightSupported ? {
|
|
1727
1427
|
onClick: (event) => {
|
|
1728
1428
|
var _a, _b;
|
|
@@ -1733,13 +1433,13 @@ var InstanceDetails = NamedFC("InstanceDetails", (props) => {
|
|
|
1733
1433
|
},
|
|
1734
1434
|
tabIndex: -1
|
|
1735
1435
|
} : {};
|
|
1736
|
-
return /* @__PURE__ */
|
|
1436
|
+
return /* @__PURE__ */ React19.createElement(
|
|
1737
1437
|
"div",
|
|
1738
1438
|
{
|
|
1739
1439
|
"data-automation-id": instanceCardAutomationId,
|
|
1740
1440
|
className: instanceDetailsCardContainerStyling
|
|
1741
1441
|
},
|
|
1742
|
-
/* @__PURE__ */
|
|
1442
|
+
/* @__PURE__ */ React19.createElement("div", { className: instanceDetailsCardStyling, ...cardHighlightingProperties }, /* @__PURE__ */ React19.createElement("div", null, /* @__PURE__ */ React19.createElement("table", { className: instance_details_default.reportInstanceTable }, /* @__PURE__ */ React19.createElement("tbody", null, renderCardRowsForPropertyBag(result.identifiers, props), renderCardRowsForPropertyBag(result.descriptors, props), renderCardRowsForPropertyBag(result.resolution, props))), isHighlightSupported && cardSelectionMessageCreator !== void 0 && /* @__PURE__ */ React19.createElement(
|
|
1743
1443
|
"button",
|
|
1744
1444
|
{
|
|
1745
1445
|
ref: hiddenButton,
|
|
@@ -1750,7 +1450,7 @@ var InstanceDetails = NamedFC("InstanceDetails", (props) => {
|
|
|
1750
1450
|
onFocus: (_) => setCardFocus(true),
|
|
1751
1451
|
onBlur: (_) => setCardFocus(false)
|
|
1752
1452
|
}
|
|
1753
|
-
), /* @__PURE__ */
|
|
1453
|
+
), /* @__PURE__ */ React19.createElement(
|
|
1754
1454
|
InstanceDetailsFooter,
|
|
1755
1455
|
{
|
|
1756
1456
|
deps,
|
|
@@ -1766,13 +1466,13 @@ var InstanceDetails = NamedFC("InstanceDetails", (props) => {
|
|
|
1766
1466
|
var renderCardRowsForPropertyBag = (propertyBag, props) => {
|
|
1767
1467
|
let propertyIndex = 0;
|
|
1768
1468
|
const cardRows = [];
|
|
1769
|
-
(0,
|
|
1469
|
+
(0, import_lodash4.forOwn)(propertyBag, (propertyData, propertyName) => {
|
|
1770
1470
|
const propertyConfig = props.deps.getPropertyConfigById(propertyName);
|
|
1771
|
-
if (!(0,
|
|
1471
|
+
if (!(0, import_lodash4.isEmpty)(propertyConfig)) {
|
|
1772
1472
|
const CardRow = propertyConfig.cardRow;
|
|
1773
1473
|
++propertyIndex;
|
|
1774
1474
|
cardRows.push(
|
|
1775
|
-
/* @__PURE__ */
|
|
1475
|
+
/* @__PURE__ */ React19.createElement(
|
|
1776
1476
|
CardRow,
|
|
1777
1477
|
{
|
|
1778
1478
|
deps: props.deps,
|
|
@@ -1784,7 +1484,7 @@ var renderCardRowsForPropertyBag = (propertyBag, props) => {
|
|
|
1784
1484
|
);
|
|
1785
1485
|
}
|
|
1786
1486
|
});
|
|
1787
|
-
return /* @__PURE__ */
|
|
1487
|
+
return /* @__PURE__ */ React19.createElement(React19.Fragment, null, cardRows);
|
|
1788
1488
|
};
|
|
1789
1489
|
|
|
1790
1490
|
// src/common/components/cards/instance-details-group.scss
|
|
@@ -1810,20 +1510,19 @@ var InstanceDetailsGroup = NamedFC(
|
|
|
1810
1510
|
url: rule.url,
|
|
1811
1511
|
guidance: rule.guidance
|
|
1812
1512
|
};
|
|
1813
|
-
return /* @__PURE__ */
|
|
1513
|
+
return /* @__PURE__ */ React20.createElement(
|
|
1814
1514
|
"ul",
|
|
1815
1515
|
{
|
|
1816
1516
|
"data-automation-id": ruleContentAutomationId,
|
|
1817
1517
|
className: instance_details_group_default.instanceDetailsList,
|
|
1818
1518
|
"aria-label": "instances with additional information like path, snippet and how to fix"
|
|
1819
1519
|
},
|
|
1820
|
-
nodes.map((node, index) => /* @__PURE__ */
|
|
1520
|
+
nodes.map((node, index) => /* @__PURE__ */ React20.createElement("li", { key: `instance-details-${index}` }, /* @__PURE__ */ React20.createElement(
|
|
1821
1521
|
InstanceDetails,
|
|
1822
1522
|
{
|
|
1823
1523
|
...{ index },
|
|
1824
1524
|
deps,
|
|
1825
1525
|
result: node,
|
|
1826
|
-
getPropertyConfigById: getPropertyConfiguration,
|
|
1827
1526
|
userConfigurationStoreData,
|
|
1828
1527
|
rule: unifiedRule,
|
|
1829
1528
|
targetAppInfo,
|
|
@@ -1836,11 +1535,11 @@ var InstanceDetailsGroup = NamedFC(
|
|
|
1836
1535
|
);
|
|
1837
1536
|
|
|
1838
1537
|
// src/common/components/guidance-links.tsx
|
|
1839
|
-
var
|
|
1840
|
-
var
|
|
1538
|
+
var import_lodash5 = require("lodash");
|
|
1539
|
+
var React21 = __toESM(require("react"));
|
|
1841
1540
|
var GuidanceLinks = NamedFC("GuidanceLinks", (props) => {
|
|
1842
1541
|
const { links, classNameForDiv } = props;
|
|
1843
|
-
if ((0,
|
|
1542
|
+
if ((0, import_lodash5.isEmpty)(links)) {
|
|
1844
1543
|
return null;
|
|
1845
1544
|
}
|
|
1846
1545
|
const renderLinks = () => {
|
|
@@ -1850,39 +1549,39 @@ var GuidanceLinks = NamedFC("GuidanceLinks", (props) => {
|
|
|
1850
1549
|
});
|
|
1851
1550
|
};
|
|
1852
1551
|
const getLinksWithDestinations = () => {
|
|
1853
|
-
return links.filter((link2) => !(0,
|
|
1552
|
+
return links.filter((link2) => !(0, import_lodash5.isEmpty)(link2.href));
|
|
1854
1553
|
};
|
|
1855
1554
|
const renderLink = (link2, index, length) => {
|
|
1856
1555
|
const addComma = index !== length - 1;
|
|
1857
|
-
const comma = addComma ? /* @__PURE__ */
|
|
1556
|
+
const comma = addComma ? /* @__PURE__ */ React21.createElement("span", null, ",\xA0") : null;
|
|
1858
1557
|
const LinkComponent = props.LinkComponent;
|
|
1859
|
-
return /* @__PURE__ */
|
|
1558
|
+
return /* @__PURE__ */ React21.createElement(React21.Fragment, { key: `guidance-link-${index}` }, /* @__PURE__ */ React21.createElement(LinkComponent, { href: link2.href, onClick: (event) => event.stopPropagation() }, link2.text.toUpperCase()), comma);
|
|
1860
1559
|
};
|
|
1861
1560
|
const spanClassName = classNameForDiv || "guidance-links";
|
|
1862
|
-
return /* @__PURE__ */
|
|
1561
|
+
return /* @__PURE__ */ React21.createElement("span", { className: spanClassName }, renderLinks());
|
|
1863
1562
|
});
|
|
1864
1563
|
|
|
1865
1564
|
// src/common/components/guidance-tags.tsx
|
|
1866
|
-
var
|
|
1867
|
-
var
|
|
1565
|
+
var import_lodash6 = require("lodash");
|
|
1566
|
+
var React22 = __toESM(require("react"));
|
|
1868
1567
|
var GuidanceTags = NamedFC("GuidanceTags", (props) => {
|
|
1869
1568
|
const { links, deps } = props;
|
|
1870
|
-
if ((0,
|
|
1569
|
+
if ((0, import_lodash6.isEmpty)(links)) {
|
|
1871
1570
|
return null;
|
|
1872
1571
|
}
|
|
1873
1572
|
const tags = deps.getGuidanceTagsFromGuidanceLinks(links);
|
|
1874
|
-
if ((0,
|
|
1573
|
+
if ((0, import_lodash6.isEmpty)(tags)) {
|
|
1875
1574
|
return null;
|
|
1876
1575
|
}
|
|
1877
1576
|
const tagElements = tags.map((tag, index) => {
|
|
1878
|
-
return /* @__PURE__ */
|
|
1577
|
+
return /* @__PURE__ */ React22.createElement("span", { key: index }, tag.displayText);
|
|
1879
1578
|
});
|
|
1880
|
-
return /* @__PURE__ */
|
|
1579
|
+
return /* @__PURE__ */ React22.createElement("span", { className: "guidance-tags" }, tagElements);
|
|
1881
1580
|
});
|
|
1882
1581
|
|
|
1883
1582
|
// src/common/components/cards/rule-resources.tsx
|
|
1884
|
-
var
|
|
1885
|
-
var
|
|
1583
|
+
var import_lodash7 = require("lodash");
|
|
1584
|
+
var React23 = __toESM(require("react"));
|
|
1886
1585
|
|
|
1887
1586
|
// src/common/components/cards/rule-resources.scss
|
|
1888
1587
|
var rule_resources_default = { "ruleMoreResources": "rule-more-resources--uw9mc", "moreResourcesTitle": "more-resources-title--jOuUL", "ruleDetailsId": "rule-details-id--s-TpO", "ruleGuidance": "rule-guidance--TIQgm" };
|
|
@@ -1891,23 +1590,23 @@ var rule_resources_default = { "ruleMoreResources": "rule-more-resources--uw9mc"
|
|
|
1891
1590
|
var RuleResources = NamedFC(
|
|
1892
1591
|
"RuleResources",
|
|
1893
1592
|
({ deps, rule, outcomeType }) => {
|
|
1894
|
-
if (rule.url == null && (0,
|
|
1593
|
+
if (rule.url == null && (0, import_lodash7.isEmpty)(rule.guidance)) {
|
|
1895
1594
|
return null;
|
|
1896
1595
|
}
|
|
1897
|
-
const renderTitle = () => /* @__PURE__ */
|
|
1596
|
+
const renderTitle = () => /* @__PURE__ */ React23.createElement("div", { className: rule_resources_default.moreResourcesTitle }, "Resources for this rule");
|
|
1898
1597
|
const renderRuleLink = () => {
|
|
1899
1598
|
if (rule.url == null) {
|
|
1900
1599
|
return null;
|
|
1901
1600
|
}
|
|
1902
1601
|
const ruleId = rule.id;
|
|
1903
1602
|
const ruleUrl = deps.IsOutcomeNeedsReview(outcomeType) ? deps.GetNeedsReviewRuleResourcesUrl(ruleId) : rule.url;
|
|
1904
|
-
return /* @__PURE__ */
|
|
1603
|
+
return /* @__PURE__ */ React23.createElement("span", { className: rule_resources_default.ruleDetailsId }, /* @__PURE__ */ React23.createElement(deps.LinkComponent, { href: ruleUrl }, "More information about ", ruleId));
|
|
1905
1604
|
};
|
|
1906
1605
|
const renderGuidanceLinks = () => {
|
|
1907
|
-
return /* @__PURE__ */
|
|
1606
|
+
return /* @__PURE__ */ React23.createElement(GuidanceLinks, { links: rule.guidance, LinkComponent: deps.LinkComponent });
|
|
1908
1607
|
};
|
|
1909
|
-
const renderGuidanceTags = () => /* @__PURE__ */
|
|
1910
|
-
return /* @__PURE__ */
|
|
1608
|
+
const renderGuidanceTags = () => /* @__PURE__ */ React23.createElement(GuidanceTags, { deps, links: rule.guidance });
|
|
1609
|
+
return /* @__PURE__ */ React23.createElement("div", { className: rule_resources_default.ruleMoreResources }, renderTitle(), renderRuleLink(), /* @__PURE__ */ React23.createElement("span", { className: rule_resources_default.ruleGuidance }, renderGuidanceLinks(), renderGuidanceTags()));
|
|
1911
1610
|
}
|
|
1912
1611
|
);
|
|
1913
1612
|
|
|
@@ -1915,7 +1614,7 @@ var RuleResources = NamedFC(
|
|
|
1915
1614
|
var RuleContent = NamedFC("RuleContent", (props) => {
|
|
1916
1615
|
props.deps.GetNeedsReviewRuleResourcesUrl = getNeedsReviewRuleResourcesUrl;
|
|
1917
1616
|
props.deps.IsOutcomeNeedsReview = isOutcomeNeedsReview;
|
|
1918
|
-
return /* @__PURE__ */
|
|
1617
|
+
return /* @__PURE__ */ React24.createElement(React24.Fragment, null, /* @__PURE__ */ React24.createElement(RuleResources, { ...props }), /* @__PURE__ */ React24.createElement(InstanceDetailsGroup, { ...props }));
|
|
1919
1618
|
});
|
|
1920
1619
|
|
|
1921
1620
|
// src/common/components/cards/rules-with-instances.scss
|
|
@@ -1941,7 +1640,7 @@ var RulesWithInstances = NamedFC(
|
|
|
1941
1640
|
return {
|
|
1942
1641
|
id: rule.id,
|
|
1943
1642
|
key: `summary-details-${idx + 1}`,
|
|
1944
|
-
header: /* @__PURE__ */
|
|
1643
|
+
header: /* @__PURE__ */ React25.createElement(
|
|
1945
1644
|
MinimalRuleHeader,
|
|
1946
1645
|
{
|
|
1947
1646
|
key: rule.id,
|
|
@@ -1950,7 +1649,7 @@ var RulesWithInstances = NamedFC(
|
|
|
1950
1649
|
outcomeCounter
|
|
1951
1650
|
}
|
|
1952
1651
|
),
|
|
1953
|
-
content: /* @__PURE__ */
|
|
1652
|
+
content: /* @__PURE__ */ React25.createElement(
|
|
1954
1653
|
RuleContent,
|
|
1955
1654
|
{
|
|
1956
1655
|
key: `${rule.id}-rule-group`,
|
|
@@ -1974,7 +1673,7 @@ var RulesWithInstances = NamedFC(
|
|
|
1974
1673
|
isExpanded: rule.isExpanded
|
|
1975
1674
|
};
|
|
1976
1675
|
};
|
|
1977
|
-
return /* @__PURE__ */
|
|
1676
|
+
return /* @__PURE__ */ React25.createElement(
|
|
1978
1677
|
"div",
|
|
1979
1678
|
{
|
|
1980
1679
|
className: rules_with_instances_default.ruleDetailsGroup,
|
|
@@ -2011,13 +1710,13 @@ var ResultSectionContent = NamedFC(
|
|
|
2011
1710
|
if (results.length === 0) {
|
|
2012
1711
|
return null;
|
|
2013
1712
|
}
|
|
2014
|
-
return /* @__PURE__ */
|
|
1713
|
+
return /* @__PURE__ */ React26.createElement(React26.Fragment, null, cardSelectionMessageCreator !== void 0 && /* @__PURE__ */ React26.createElement(
|
|
2015
1714
|
deps.cardsVisualizationModifierButtons,
|
|
2016
1715
|
{
|
|
2017
1716
|
...props,
|
|
2018
1717
|
cardSelectionMessageCreator
|
|
2019
1718
|
}
|
|
2020
|
-
), /* @__PURE__ */
|
|
1719
|
+
), /* @__PURE__ */ React26.createElement(
|
|
2021
1720
|
RulesWithInstances,
|
|
2022
1721
|
{
|
|
2023
1722
|
deps,
|
|
@@ -2035,7 +1734,7 @@ var ResultSectionContent = NamedFC(
|
|
|
2035
1734
|
);
|
|
2036
1735
|
|
|
2037
1736
|
// src/common/components/cards/result-section-title.tsx
|
|
2038
|
-
var
|
|
1737
|
+
var React27 = __toESM(require("react"));
|
|
2039
1738
|
|
|
2040
1739
|
// src/common/components/cards/result-section-title.scss
|
|
2041
1740
|
var result_section_title_default = { "resultSectionTitle": "result-section-title--RGFI5", "title": "title--WBYFE", "heading": "heading--NdP4Q", "outcomeChipContainer": "outcome-chip-container--BT3j5" };
|
|
@@ -2049,8 +1748,8 @@ var ResultSectionTitle = NamedFC("ResultSectionTitle", (props) => {
|
|
|
2049
1748
|
const singularMessageSubject = props.outcomeType === "review" ? "instance to review" : "failure";
|
|
2050
1749
|
const pluralMessageSubject = props.outcomeType === "review" ? "instances to review" : "failures";
|
|
2051
1750
|
const alertTerm = props.badgeCount !== 1 ? `${pluralMessageSubject} were` : `${singularMessageSubject} was`;
|
|
2052
|
-
const alertingFailuresCount = /* @__PURE__ */
|
|
2053
|
-
return /* @__PURE__ */
|
|
1751
|
+
const alertingFailuresCount = /* @__PURE__ */ React27.createElement("span", { role: "alert" }, props.badgeCount, " ", alertTerm, " detected.");
|
|
1752
|
+
return /* @__PURE__ */ React27.createElement("span", { className: result_section_title_default.resultSectionTitle }, /* @__PURE__ */ React27.createElement("span", { className: "screen-reader-only" }, props.title, " ", props.shouldAlertFailuresCount ? alertingFailuresCount : props.badgeCount), /* @__PURE__ */ React27.createElement("span", { className: titleClassNames[props.titleSize], "aria-hidden": "true" }, props.title), /* @__PURE__ */ React27.createElement("span", { className: result_section_title_default.outcomeChipContainer, "aria-hidden": "true" }, /* @__PURE__ */ React27.createElement(OutcomeChip, { outcomeType: props.outcomeType, count: props.badgeCount })));
|
|
2054
1753
|
});
|
|
2055
1754
|
|
|
2056
1755
|
// src/common/components/cards/result-section.scss
|
|
@@ -2060,14 +1759,14 @@ var result_section_default = { "resultSection": "result-section--HfO9s", "titleC
|
|
|
2060
1759
|
var resultSectionAutomationId = "result-section";
|
|
2061
1760
|
var ResultSection = NamedFC("ResultSection", (props) => {
|
|
2062
1761
|
const { containerClassName, sectionHeadingLevel, deps } = props;
|
|
2063
|
-
return /* @__PURE__ */
|
|
1762
|
+
return /* @__PURE__ */ React28.createElement(
|
|
2064
1763
|
"div",
|
|
2065
1764
|
{
|
|
2066
|
-
className: (0,
|
|
1765
|
+
className: (0, import_utilities4.css)(containerClassName, result_section_default.resultSection),
|
|
2067
1766
|
"data-automation-id": resultSectionAutomationId
|
|
2068
1767
|
},
|
|
2069
|
-
/* @__PURE__ */
|
|
2070
|
-
/* @__PURE__ */
|
|
1768
|
+
/* @__PURE__ */ React28.createElement(HeadingElementForLevel, { headingLevel: sectionHeadingLevel }, /* @__PURE__ */ React28.createElement(ResultSectionTitle, { ...props, titleSize: "title" })),
|
|
1769
|
+
/* @__PURE__ */ React28.createElement(
|
|
2071
1770
|
ResultSectionContent,
|
|
2072
1771
|
{
|
|
2073
1772
|
headingLevel: deps.getNextHeadingLevel(sectionHeadingLevel),
|
|
@@ -2096,7 +1795,7 @@ var FailedInstancesSection = NamedFC(
|
|
|
2096
1795
|
const count = cardsViewData.cards.fail.reduce((total, rule) => {
|
|
2097
1796
|
return total + rule.nodes.length;
|
|
2098
1797
|
}, 0);
|
|
2099
|
-
return /* @__PURE__ */
|
|
1798
|
+
return /* @__PURE__ */ React29.createElement(
|
|
2100
1799
|
ResultSection,
|
|
2101
1800
|
{
|
|
2102
1801
|
deps,
|
|
@@ -2126,14 +1825,14 @@ var toolName = title;
|
|
|
2126
1825
|
var windowsProductName = `${brand} for Windows`;
|
|
2127
1826
|
|
|
2128
1827
|
// src/reports/components/report-sections/reporter-header-section.tsx
|
|
2129
|
-
var
|
|
1828
|
+
var React33 = __toESM(require("react"));
|
|
2130
1829
|
|
|
2131
1830
|
// src/reports/components/report-sections/header-section.tsx
|
|
2132
|
-
var
|
|
1831
|
+
var React32 = __toESM(require("react"));
|
|
2133
1832
|
|
|
2134
1833
|
// src/icons/brand/white/brand-white.tsx
|
|
2135
|
-
var
|
|
2136
|
-
var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */
|
|
1834
|
+
var React30 = __toESM(require("react"));
|
|
1835
|
+
var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React30.createElement(
|
|
2137
1836
|
"svg",
|
|
2138
1837
|
{
|
|
2139
1838
|
role: "img",
|
|
@@ -2143,7 +1842,7 @@ var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React39.createEleme
|
|
|
2143
1842
|
fill: "none",
|
|
2144
1843
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2145
1844
|
},
|
|
2146
|
-
/* @__PURE__ */
|
|
1845
|
+
/* @__PURE__ */ React30.createElement(
|
|
2147
1846
|
"mask",
|
|
2148
1847
|
{
|
|
2149
1848
|
id: "mask0",
|
|
@@ -2154,7 +1853,7 @@ var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React39.createEleme
|
|
|
2154
1853
|
height: "43",
|
|
2155
1854
|
style: { maskType: "alpha" }
|
|
2156
1855
|
},
|
|
2157
|
-
/* @__PURE__ */
|
|
1856
|
+
/* @__PURE__ */ React30.createElement(
|
|
2158
1857
|
"path",
|
|
2159
1858
|
{
|
|
2160
1859
|
d: "M43.8309 27.1383C49.3148 21.6544 49.3148 12.7633 43.8309 7.27934C38.347 1.79544 29.4558 1.79543 23.9719 7.27934C18.488 1.79544 9.59684 1.79544 4.11293 7.27934C-1.37098 12.7633 -1.37098 21.6544 4.11293 27.1383L21.986 45.0114C23.0828 46.1082 24.861 46.1082 25.9578 45.0114L43.8309 27.1383Z",
|
|
@@ -2162,13 +1861,13 @@ var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React39.createEleme
|
|
|
2162
1861
|
}
|
|
2163
1862
|
)
|
|
2164
1863
|
),
|
|
2165
|
-
/* @__PURE__ */
|
|
1864
|
+
/* @__PURE__ */ React30.createElement("g", { mask: "url(#mask0)" }, /* @__PURE__ */ React30.createElement(
|
|
2166
1865
|
"path",
|
|
2167
1866
|
{
|
|
2168
1867
|
d: "M43.8309 27.1383C49.3148 21.6544 49.3148 12.7633 43.8309 7.27934C38.347 1.79544 29.4558 1.79543 23.9719 7.27934C18.488 1.79544 9.59684 1.79544 4.11293 7.27934C-1.37098 12.7633 -1.37098 21.6544 4.11293 27.1383L21.986 45.0114C23.0828 46.1082 24.861 46.1082 25.9578 45.0114L43.8309 27.1383Z",
|
|
2169
1868
|
fill: "white"
|
|
2170
1869
|
}
|
|
2171
|
-
), /* @__PURE__ */
|
|
1870
|
+
), /* @__PURE__ */ React30.createElement(
|
|
2172
1871
|
"rect",
|
|
2173
1872
|
{
|
|
2174
1873
|
x: "43.9494",
|
|
@@ -2178,7 +1877,7 @@ var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React39.createEleme
|
|
|
2178
1877
|
transform: "rotate(45 43.9494 7.24556)",
|
|
2179
1878
|
fill: "#D6E9F7"
|
|
2180
1879
|
}
|
|
2181
|
-
), /* @__PURE__ */
|
|
1880
|
+
), /* @__PURE__ */ React30.createElement(
|
|
2182
1881
|
"mask",
|
|
2183
1882
|
{
|
|
2184
1883
|
id: "mask1",
|
|
@@ -2189,33 +1888,33 @@ var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React39.createEleme
|
|
|
2189
1888
|
height: "31",
|
|
2190
1889
|
style: { maskType: "alpha" }
|
|
2191
1890
|
},
|
|
2192
|
-
/* @__PURE__ */
|
|
1891
|
+
/* @__PURE__ */ React30.createElement(
|
|
2193
1892
|
"path",
|
|
2194
1893
|
{
|
|
2195
1894
|
d: "M23.9718 7.27863L4.11284 27.1376C-1.37106 21.6537 -1.37106 12.7625 4.11284 7.27863C9.59675 1.79472 18.4879 1.79472 23.9718 7.27863Z",
|
|
2196
1895
|
fill: "#CFEBFF"
|
|
2197
1896
|
}
|
|
2198
1897
|
),
|
|
2199
|
-
/* @__PURE__ */
|
|
1898
|
+
/* @__PURE__ */ React30.createElement(
|
|
2200
1899
|
"path",
|
|
2201
1900
|
{
|
|
2202
1901
|
d: "M23.9718 7.27863L4.11284 27.1376C-1.37106 21.6537 -1.37106 12.7625 4.11284 7.27863C9.59675 1.79472 18.4879 1.79472 23.9718 7.27863Z",
|
|
2203
1902
|
fill: "url(#paint0_linear)"
|
|
2204
1903
|
}
|
|
2205
1904
|
)
|
|
2206
|
-
), /* @__PURE__ */
|
|
1905
|
+
), /* @__PURE__ */ React30.createElement("g", { mask: "url(#mask1)" }, /* @__PURE__ */ React30.createElement(
|
|
2207
1906
|
"path",
|
|
2208
1907
|
{
|
|
2209
1908
|
d: "M23.9718 7.27863L4.11284 27.1376C-1.37106 21.6537 -1.37106 12.7625 4.11284 7.27863C9.59675 1.79472 18.4879 1.79472 23.9718 7.27863Z",
|
|
2210
1909
|
fill: "white"
|
|
2211
1910
|
}
|
|
2212
|
-
), /* @__PURE__ */
|
|
1911
|
+
), /* @__PURE__ */ React30.createElement(
|
|
2213
1912
|
"path",
|
|
2214
1913
|
{
|
|
2215
1914
|
d: "M23.9718 7.27863L4.11284 27.1376C-1.37106 21.6537 -1.37106 12.7625 4.11284 7.27863C9.59675 1.79472 18.4879 1.79472 23.9718 7.27863Z",
|
|
2216
1915
|
fill: "url(#paint1_linear)"
|
|
2217
1916
|
}
|
|
2218
|
-
), /* @__PURE__ */
|
|
1917
|
+
), /* @__PURE__ */ React30.createElement(
|
|
2219
1918
|
"rect",
|
|
2220
1919
|
{
|
|
2221
1920
|
x: "4.54834",
|
|
@@ -2225,7 +1924,7 @@ var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React39.createEleme
|
|
|
2225
1924
|
transform: "rotate(-45 4.54834 6.88206)",
|
|
2226
1925
|
fill: "#D6E9F7"
|
|
2227
1926
|
}
|
|
2228
|
-
), /* @__PURE__ */
|
|
1927
|
+
), /* @__PURE__ */ React30.createElement(
|
|
2229
1928
|
"rect",
|
|
2230
1929
|
{
|
|
2231
1930
|
x: "4.54834",
|
|
@@ -2235,7 +1934,7 @@ var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React39.createEleme
|
|
|
2235
1934
|
transform: "rotate(-45 4.54834 6.88206)",
|
|
2236
1935
|
fill: "url(#paint2_linear)"
|
|
2237
1936
|
}
|
|
2238
|
-
)), /* @__PURE__ */
|
|
1937
|
+
)), /* @__PURE__ */ React30.createElement("g", { filter: "url(#filter0_d)" }, /* @__PURE__ */ React30.createElement(
|
|
2239
1938
|
"path",
|
|
2240
1939
|
{
|
|
2241
1940
|
fillRule: "evenodd",
|
|
@@ -2244,7 +1943,7 @@ var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React39.createEleme
|
|
|
2244
1943
|
fill: "#004880"
|
|
2245
1944
|
}
|
|
2246
1945
|
))),
|
|
2247
|
-
/* @__PURE__ */
|
|
1946
|
+
/* @__PURE__ */ React30.createElement("defs", null, /* @__PURE__ */ React30.createElement(
|
|
2248
1947
|
"filter",
|
|
2249
1948
|
{
|
|
2250
1949
|
id: "filter0_d",
|
|
@@ -2255,8 +1954,8 @@ var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React39.createEleme
|
|
|
2255
1954
|
filterUnits: "userSpaceOnUse",
|
|
2256
1955
|
colorInterpolationFilters: "sRGB"
|
|
2257
1956
|
},
|
|
2258
|
-
/* @__PURE__ */
|
|
2259
|
-
/* @__PURE__ */
|
|
1957
|
+
/* @__PURE__ */ React30.createElement("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
1958
|
+
/* @__PURE__ */ React30.createElement(
|
|
2260
1959
|
"feColorMatrix",
|
|
2261
1960
|
{
|
|
2262
1961
|
in: "SourceAlpha",
|
|
@@ -2264,18 +1963,18 @@ var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React39.createEleme
|
|
|
2264
1963
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
2265
1964
|
}
|
|
2266
1965
|
),
|
|
2267
|
-
/* @__PURE__ */
|
|
2268
|
-
/* @__PURE__ */
|
|
2269
|
-
/* @__PURE__ */
|
|
1966
|
+
/* @__PURE__ */ React30.createElement("feOffset", { dy: "0.725705" }),
|
|
1967
|
+
/* @__PURE__ */ React30.createElement("feGaussianBlur", { stdDeviation: "0.40317" }),
|
|
1968
|
+
/* @__PURE__ */ React30.createElement(
|
|
2270
1969
|
"feColorMatrix",
|
|
2271
1970
|
{
|
|
2272
1971
|
type: "matrix",
|
|
2273
1972
|
values: "0 0 0 0 0.0447352 0 0 0 0 0.305769 0 0 0 0 0.492222 0 0 0 0.51 0"
|
|
2274
1973
|
}
|
|
2275
1974
|
),
|
|
2276
|
-
/* @__PURE__ */
|
|
2277
|
-
/* @__PURE__ */
|
|
2278
|
-
), /* @__PURE__ */
|
|
1975
|
+
/* @__PURE__ */ React30.createElement("feBlend", { mode: "normal", in2: "BackgroundImageFix", result: "effect1_dropShadow" }),
|
|
1976
|
+
/* @__PURE__ */ React30.createElement("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_dropShadow", result: "shape" })
|
|
1977
|
+
), /* @__PURE__ */ React30.createElement(
|
|
2279
1978
|
"linearGradient",
|
|
2280
1979
|
{
|
|
2281
1980
|
id: "paint0_linear",
|
|
@@ -2285,9 +1984,9 @@ var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React39.createEleme
|
|
|
2285
1984
|
y2: "8.23504",
|
|
2286
1985
|
gradientUnits: "userSpaceOnUse"
|
|
2287
1986
|
},
|
|
2288
|
-
/* @__PURE__ */
|
|
2289
|
-
/* @__PURE__ */
|
|
2290
|
-
), /* @__PURE__ */
|
|
1987
|
+
/* @__PURE__ */ React30.createElement("stop", { offset: "0", stopColor: "#073A5F", stopOpacity: "0.3" }),
|
|
1988
|
+
/* @__PURE__ */ React30.createElement("stop", { offset: "1", stopColor: "#CFEBFF", stopOpacity: "0" })
|
|
1989
|
+
), /* @__PURE__ */ React30.createElement(
|
|
2291
1990
|
"linearGradient",
|
|
2292
1991
|
{
|
|
2293
1992
|
id: "paint1_linear",
|
|
@@ -2297,9 +1996,9 @@ var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React39.createEleme
|
|
|
2297
1996
|
y2: "8.23504",
|
|
2298
1997
|
gradientUnits: "userSpaceOnUse"
|
|
2299
1998
|
},
|
|
2300
|
-
/* @__PURE__ */
|
|
2301
|
-
/* @__PURE__ */
|
|
2302
|
-
), /* @__PURE__ */
|
|
1999
|
+
/* @__PURE__ */ React30.createElement("stop", { offset: "0", stopColor: "#165B8E", stopOpacity: "0.29" }),
|
|
2000
|
+
/* @__PURE__ */ React30.createElement("stop", { offset: "1", stopColor: "white", stopOpacity: "0" })
|
|
2001
|
+
), /* @__PURE__ */ React30.createElement(
|
|
2303
2002
|
"linearGradient",
|
|
2304
2003
|
{
|
|
2305
2004
|
id: "paint2_linear",
|
|
@@ -2309,20 +2008,20 @@ var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React39.createEleme
|
|
|
2309
2008
|
y2: "11.1606",
|
|
2310
2009
|
gradientUnits: "userSpaceOnUse"
|
|
2311
2010
|
},
|
|
2312
|
-
/* @__PURE__ */
|
|
2313
|
-
/* @__PURE__ */
|
|
2011
|
+
/* @__PURE__ */ React30.createElement("stop", { offset: "0", stopColor: "#165B8E", stopOpacity: "0.29" }),
|
|
2012
|
+
/* @__PURE__ */ React30.createElement("stop", { offset: "1", stopColor: "#D6E9F7", stopOpacity: "0" })
|
|
2314
2013
|
))
|
|
2315
2014
|
));
|
|
2316
2015
|
|
|
2317
2016
|
// src/reports/components/header-bar.tsx
|
|
2318
|
-
var
|
|
2017
|
+
var React31 = __toESM(require("react"));
|
|
2319
2018
|
|
|
2320
2019
|
// src/reports/components/header-bar.scss
|
|
2321
2020
|
var header_bar_default = { "reportHeaderBar": "report-header-bar--SDV11", "headerText": "header-text--EdTxw" };
|
|
2322
2021
|
|
|
2323
2022
|
// src/reports/components/header-bar.tsx
|
|
2324
2023
|
var HeaderBar = NamedFC("HeaderBar", (props) => {
|
|
2325
|
-
return /* @__PURE__ */
|
|
2024
|
+
return /* @__PURE__ */ React31.createElement("div", { className: header_bar_default.reportHeaderBar }, /* @__PURE__ */ React31.createElement(BrandWhite, null), /* @__PURE__ */ React31.createElement("div", { className: header_bar_default.headerText }, props.headerText));
|
|
2326
2025
|
});
|
|
2327
2026
|
|
|
2328
2027
|
// src/reports/components/report-sections/header-section.scss
|
|
@@ -2333,7 +2032,7 @@ var reportHeaderSectionDataAutomationId = "report-header-section";
|
|
|
2333
2032
|
var HeaderSection = NamedFC(
|
|
2334
2033
|
"HeaderSection",
|
|
2335
2034
|
({ targetAppInfo, headerText }) => {
|
|
2336
|
-
return /* @__PURE__ */
|
|
2035
|
+
return /* @__PURE__ */ React32.createElement("header", { "data-automation-id": reportHeaderSectionDataAutomationId }, /* @__PURE__ */ React32.createElement(HeaderBar, { headerText }), /* @__PURE__ */ React32.createElement("div", { className: header_section_default.reportHeaderCommandBar }, /* @__PURE__ */ React32.createElement("div", { className: header_section_default.targetPage }, "Target page:\xA0", /* @__PURE__ */ React32.createElement(
|
|
2337
2036
|
NewTabLinkWithConfirmationDialog,
|
|
2338
2037
|
{
|
|
2339
2038
|
href: targetAppInfo.url,
|
|
@@ -2348,22 +2047,23 @@ var HeaderSection = NamedFC(
|
|
|
2348
2047
|
var ReporterHeaderSection = NamedFC(
|
|
2349
2048
|
"AutomatedChecksHeaderSection",
|
|
2350
2049
|
({ scanMetadata }) => {
|
|
2351
|
-
return /* @__PURE__ */
|
|
2050
|
+
return /* @__PURE__ */ React33.createElement(HeaderSection, { targetAppInfo: scanMetadata.targetAppInfo, headerText: brand });
|
|
2352
2051
|
}
|
|
2353
2052
|
);
|
|
2354
2053
|
|
|
2355
2054
|
// src/reports/components/reporter-automated-check-head.tsx
|
|
2356
|
-
var
|
|
2055
|
+
var React35 = __toESM(require("react"));
|
|
2357
2056
|
|
|
2358
2057
|
// src/reports/components/head.tsx
|
|
2359
|
-
var
|
|
2058
|
+
var React34 = __toESM(require("react"));
|
|
2360
2059
|
|
|
2361
2060
|
// src/reports/automated-checks-report.styles.ts
|
|
2362
2061
|
var styleSheet = `:root {\n --black: #000;\n --light-black: #161616;\n --white: #fff;\n --brand-blue: #004880;\n --grey: #333;\n --ada-brand-color: var(--brand-blue);\n --primary-text: rgb(0 0 0 / 90%);\n --secondary-text: rgb(0 0 0 / 70%);\n --disabled-text: rgb(0 0 0 / 38%);\n --communication-primary: #106ebe;\n --communication-tint-40: #eff6fc;\n --communication-tint-30: #deecf9;\n --communication-tint-20: #c7e0f4;\n --communication-tint-10: #2b88d8;\n --communication-shade-20: #004578;\n --neutral-0: var(--white);\n --neutral-2: #f8f8f8;\n --neutral-3: #f6f6f6;\n --neutral-4: #f4f4f4;\n --neutral-6: #f2f2f2;\n --neutral-6-5: #f1f1f1;\n --neutral-8: #ebebeb;\n --neutral-10: #dedede;\n --neutral-20: #c8c8c8;\n --neutral-30: #a6a6a6;\n --neutral-55: #6e6e6e;\n --neutral-60: #666;\n --neutral-70: #3c3c3c;\n --neutral-80: var(--grey);\n --neutral-100: var(--black);\n --neutral-alpha-2: rgb(0 0 0 / 2%);\n --neutral-alpha-4: rgb(0 0 0 / 4%);\n --neutral-alpha-6: rgb(0 0 0 / 6%);\n --neutral-alpha-8: rgb(0 0 0 / 8%);\n --neutral-alpha-10: rgb(0 0 0 / 10%);\n --neutral-alpha-20: rgb(0 0 0 / 20%);\n --neutral-alpha-30: rgb(0 0 0 / 30%);\n --neutral-alpha-60: rgb(0 0 0 / 60%);\n --neutral-alpha-70: rgb(0 0 0 / 70%);\n --neutral-alpha-80: rgb(0 0 0 / 80%);\n --neutral-alpha-90: rgb(0 0 0 / 90%);\n --positive-outcome: #228722;\n --negative-outcome: #e81123;\n --neutral-outcome: var(--neutral-60);\n --box-shadow-108: rgb(0 0 0 / 10.8%);\n --box-shadow-132: rgb(0 0 0 / 13.2%);\n --box-shadow-27: rgb(0 0 0 / 27%);\n --screenshot-image-outline: #8b8b8b;\n --card-border: transparent;\n --card-footer-border: var(--neutral-10);\n --header-bar-title-color: var(--neutral-0);\n --help-links-section-background: var(--neutral-4);\n --help-links-section-border: var(--neutral-4);\n --index-circle-background: var(--communication-primary);\n --link-hover: var(--communication-shade-20);\n --link: var(--communication-primary);\n --menu-border: var(--neutral-3);\n --menu-item-background-active: var(--neutral-alpha-8);\n --menu-item-background-hover: var(--neutral-alpha-4);\n --left-nav-icon: var(--neutral-55);\n --pill-background: var(--neutral-alpha-8);\n --pill: var(--primary-text);\n --spinner-text: var(--communication-primary);\n --nav-link-hover: var(--neutral-alpha-8);\n --nav-link-selected: var(--communication-tint-20);\n --nav-link-expanded: var(--communication-tint-40);\n --insights-button-hover: #0179d4;\n --report-footer-text: #222;\n --landmark-contentinfo: #00a88c;\n --landmark-main: #cb2e6d;\n --landmark-complementary: #6b9d1a;\n --landmark-banner: #d08311;\n --landmark-region: #2560e0;\n --landmark-navigation: #9b38e6;\n --landmark-search: #d363d8;\n --landmark-form: #0298c7;\n}\n:root .high-contrast-theme {\n --ada-brand-color: var(--white);\n --secondary-text: var(--white);\n --primary-text: var(--white);\n --disabled-text: #c285ff;\n --communication-tint-40: #38a9ff;\n --communication-tint-30: var(--communication-tint-10);\n --neutral-0: var(--light-black);\n --neutral-2: var(--light-black);\n --neutral-3: var(--light-black);\n --neutral-4: var(--light-black);\n --neutral-6: var(--light-black);\n --neutral-6-5: var(--light-black);\n --neutral-8: var(--white);\n --neutral-10: var(--light-black);\n --neutral-20: var(--white);\n --neutral-30: var(--white);\n --neutral-55: var(--white);\n --neutral-60: var(--white);\n --neutral-70: var(--white);\n --neutral-80: var(--white);\n --neutral-100: var(--white);\n --neutral-alpha-8: var(--white);\n --neutral-alpha-90: var(--white);\n --positive-outcome: #4ac94a;\n --negative-outcome: #fc7ab1;\n --neutral-outcome: var(--neutral-0);\n --card-border: var(--white);\n --card-footer-border: var(--white);\n --header-bar-title-color: var(--brand-blue);\n --help-links-section-background: transparent;\n --help-links-section-border: var(--white);\n --index-circle-background: var(--communication-tint-40);\n --link-hover: #ff0;\n --link: #ff0;\n --menu-border: var(--grey);\n --menu-item-background-active: var(--communication-tint-40);\n --menu-item-background-hover: var(--grey);\n --left-nav-icon: var(--black);\n --pill-background: var(--white);\n --pill: var(--black);\n --screenshot-image-outline: var(--white);\n --spinner-text: var(--communication-tint-40);\n --nav-link-hover: #2a2a2a;\n --nav-link-selected: var(--communication-tint-40);\n --nav-link-expanded: transparent;\n}\n\n.ms-Fabric.is-focusVisible .ms-Nav-group .ms-nav-linkButton:focus::after {\n border: 1px solid var(--neutral-100);\n}\n@media screen and (forced-colors: active) {\n .ms-Fabric.is-focusVisible .ms-Nav-group .ms-nav-linkButton:focus::after {\n border: 1px dashed windowtext !important;\n }\n}\n\nbutton::after {\n content: \"\";\n position: absolute;\n}\n\n.ms-fontColor-neutralPrimary,\n.ms-fontColor-neutralPrimary--hover:hover {\n color: var(--neutral-100) !important;\n}\n\n.ms-Fabric {\n color: var(--neutral-100);\n}\n\n.insights-link {\n color: var(--link) !important;\n text-decoration: none;\n}\n@media screen and (forced-colors: active) {\n .insights-link {\n forced-color-adjust: unset;\n }\n}\n.insights-link:hover {\n color: var(--link-hover) !important;\n text-decoration: underline;\n}\n\n.high-contrast-theme .insights-link:hover {\n text-decoration: underline;\n}\n.high-contrast-theme .is-selected .status-icon {\n color: var(--black) !important;\n}\n\n.insights-code {\n font-family: menlo, consolas, courier new, monospace;\n}\n\n.ms-Spinner .ms-Spinner-circle {\n border-top-color: var(--spinner-text);\n}\n.ms-Spinner .ms-Spinner-label {\n color: var(--spinner-text);\n}\n\n@media screen and (forced-colors: active) {\n .ms-ContextualMenu button:hover .ms-ContextualMenu-itemText,\n .ms-ContextualMenu button:hover .ms-ContextualMenu-linkText {\n color: highlight;\n }\n}\n\n.guidance-tags span {\n font-size: 12px;\n font-weight: normal;\n padding-top: 2px;\n padding-right: 12px;\n padding-bottom: 2px;\n padding-left: 12px;\n color: var(--pill);\n background-color: var(--pill-background);\n border-radius: 120px;\n}\n\n.hidden-highlight-button {\n opacity: 0;\n margin: 0;\n padding: 0;\n border: none;\n}\n\n.instance-details-card {\n border-radius: 4px;\n border: 1px solid var(--card-border);\n outline-style: \"border-style\";\n box-shadow: 0 0.6px 1.8px var(--box-shadow-108), 0 3.2px 7.2px var(--box-shadow-132);\n margin-bottom: 16px;\n width: -moz-available;\n width: -webkit-fill-available;\n width: stretch;\n}\n\n.instance-details-card-container.selected {\n outline: 5px solid var(--communication-tint-10);\n}\n\n.instance-details-card.selected {\n border: 1px solid transparent;\n}\n\n.instance-details-card.focused,\n.instance-details-card:focus {\n outline: 2px solid var(--primary-text);\n outline-offset: 2px;\n}\n\n.instance-details-card.selected.focused,\n.instance-details-card.selected:focus {\n outline-offset: 8px;\n}\n\n.instance-details-card.interactive {\n cursor: pointer;\n}\n\n.instance-details-card.interactive:hover {\n box-shadow: 0 8px 10px var(--box-shadow-108), 0 8px 10px var(--box-shadow-132);\n}\n\n.report-instance-table {\n background: var(--neutral-0);\n display: table;\n table-layout: fixed;\n width: -moz-available;\n width: -webkit-fill-available;\n width: stretch;\n border-radius: inherit;\n border-collapse: collapse;\n overflow-wrap: break-word;\n word-break: break-word;\n}\n.report-instance-table .row {\n display: flex;\n flex-wrap: wrap;\n padding-top: 2px;\n padding-bottom: 14px;\n padding-left: 0;\n padding-right: 20px;\n border-bottom: 0.5px solid var(--neutral-10);\n}\n.report-instance-table .row > * {\n margin-top: 12px;\n margin-bottom: 0;\n margin-left: 20px;\n margin-right: 0;\n padding: 0;\n}\n.report-instance-table .row:last-child {\n border-bottom: none;\n}\n.report-instance-table .row-label {\n flex-basis: 90px;\n flex-shrink: 1;\n flex-grow: 0;\n font-size: 14px;\n line-height: 20px;\n font-weight: 600;\n color: var(--primary-text);\n text-align: left;\n}\n.report-instance-table .row-content {\n flex-basis: 200px;\n flex-shrink: 1;\n flex-grow: 1;\n color: var(--secondary-text);\n font-size: 14px;\n line-height: 20px;\n align-items: flex-end;\n display: flex;\n}\n\n.outcome-summary-bar {\n display: flex;\n flex-grow: 0;\n flex-shrink: 0;\n flex-direction: row;\n flex-wrap: wrap;\n align-items: center;\n margin-top: 16px;\n margin-bottom: 0;\n line-height: 24px;\n font-size: 17px;\n font-weight: 600;\n white-space: pre-wrap;\n}\n.outcome-summary-bar .block,\n.outcome-summary-bar .incomplete,\n.outcome-summary-bar .inapplicable,\n.outcome-summary-bar .unscannable,\n.outcome-summary-bar .pass,\n.outcome-summary-bar .fail {\n font-family: 'Segoe UI Web (West European)','Segoe UI','-apple-system',BlinkMacSystemFont,Roboto,'Helvetica Neue',Helvetica,Ubuntu,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';\n line-height: 20px;\n font-size: 16px;\n color: var(--neutral-0);\n padding-top: 8px;\n padding-right: 8px;\n padding-bottom: 10px;\n padding-left: 10px;\n height: 16px;\n display: flex;\n align-items: center;\n margin-right: 4px;\n}\n.outcome-summary-bar .count {\n font-weight: 600;\n}\n.outcome-summary-bar .fail {\n background-color: var(--negative-outcome);\n}\n.outcome-summary-bar .fail .check-container {\n position: relative;\n width: 16px;\n height: 16px;\n display: inline-block;\n border-radius: 50%;\n border: 0 solid var(--neutral-0);\n}\n.outcome-summary-bar .fail .check-container svg circle {\n fill: var(--negative-outcome);\n}\n.outcome-summary-bar .fail .check-container {\n bottom: -1px;\n margin-right: 8px;\n}\n.outcome-summary-bar .pass {\n background-color: var(--positive-outcome);\n}\n.outcome-summary-bar .pass .check-container {\n position: relative;\n width: 16px;\n height: 16px;\n display: inline-block;\n border-radius: 50%;\n border: 0 solid var(--neutral-0);\n}\n.outcome-summary-bar .pass .check-container svg circle {\n fill: var(--positive-outcome);\n}\n.outcome-summary-bar .pass .check-container {\n bottom: -1px;\n margin-right: 8px;\n margin-left: 4px;\n}\n.outcome-summary-bar .inapplicable,\n.outcome-summary-bar .unscannable {\n background-color: var(--neutral-outcome);\n}\n.outcome-summary-bar .inapplicable .check-container,\n.outcome-summary-bar .unscannable .check-container {\n position: relative;\n width: 16px;\n height: 16px;\n display: inline-block;\n border-radius: 50%;\n border: 0 solid var(--neutral-0);\n}\n.outcome-summary-bar .inapplicable .check-container,\n.outcome-summary-bar .unscannable .check-container {\n bottom: -1px;\n margin-right: 8px;\n margin-left: 4px;\n}\n.outcome-summary-bar .incomplete {\n background-color: var(--neutral-outcome);\n color: var(--white);\n border: 2px var(--neutral-60) solid;\n height: 12px;\n}\n.outcome-summary-bar .incomplete .check-container {\n position: relative;\n width: 8px;\n height: 8px;\n display: inline-block;\n border-radius: 50%;\n border: 3px solid var(--neutral-0);\n}\n.outcome-summary-bar .incomplete .check-container {\n margin-right: 6px;\n border-color: var(--white);\n}\n.outcome-summary-bar .summary-bar-left-edge {\n border-top-left-radius: 2px;\n border-bottom-left-radius: 2px;\n}\n.outcome-summary-bar .summary-bar-right-edge {\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n margin-right: 0;\n}\n.outcome-summary-bar .label {\n font-weight: normal;\n}\n\n.screen-reader-only {\n position: absolute;\n left: -10000px;\n top: auto;\n height: 1px;\n overflow: hidden;\n clip-path: inset(100% 100% 100% 100%);\n}\n\n.check-container svg {\n width: 100%;\n height: 100%;\n}\n\n.outcome-chip {\n height: 16px;\n color: var(--primary-text);\n border-radius: 0 8px 8px 0;\n margin-right: 4px;\n margin-bottom: -3px;\n margin-left: 4px;\n display: inline-flex;\n align-items: center;\n}\n.outcome-chip .icon {\n border-radius: 50%;\n width: 16px;\n height: 16px;\n}\n.outcome-chip .count {\n font-family: 'Segoe UI Web (West European)','Segoe UI','-apple-system',BlinkMacSystemFont,Roboto,'Helvetica Neue',Helvetica,Ubuntu,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';\n line-height: 13px;\n font-size: 11px;\n border-radius: 0 8px 8px 0;\n padding-right: 6px;\n padding-left: 10px;\n font-weight: 700;\n margin-left: -8px;\n height: 13px;\n}\n@media screen and (forced-colors: active) {\n .outcome-chip .count {\n forced-color-adjust: none;\n border-color: canvastext !important;\n color: canvastext;\n }\n}\n.outcome-chip.outcome-chip-pass .check-container {\n position: relative;\n width: 16px;\n height: 16px;\n display: inline-block;\n border-radius: 50%;\n border: 0 solid var(--neutral-0);\n}\n.outcome-chip.outcome-chip-pass .check-container svg circle {\n fill: var(--positive-outcome);\n}\n.outcome-chip.outcome-chip-pass .check-container {\n background-color: var(--positive-outcome);\n}\n.outcome-chip.outcome-chip-pass .count {\n background-color: transparent;\n border: 1.5px solid var(--positive-outcome);\n width: max-content;\n}\n.outcome-chip.outcome-chip-incomplete .check-container, .outcome-chip.outcome-chip-review .check-container {\n position: relative;\n width: 14px;\n height: 14px;\n display: inline-block;\n border-radius: 50%;\n border: 1px solid var(--neutral-0);\n}\n.outcome-chip.outcome-chip-incomplete .check-container, .outcome-chip.outcome-chip-review .check-container {\n background-color: var(--neutral-60);\n}\n.outcome-chip.outcome-chip-incomplete .count, .outcome-chip.outcome-chip-review .count {\n background-color: transparent;\n border: 1.5px solid var(--neutral-60);\n width: max-content;\n}\n.outcome-chip.outcome-chip-fail .check-container {\n position: relative;\n width: 16px;\n height: 16px;\n display: inline-block;\n border-radius: 50%;\n border: 0 solid var(--neutral-0);\n}\n.outcome-chip.outcome-chip-fail .check-container svg circle {\n fill: var(--negative-outcome);\n}\n.outcome-chip.outcome-chip-fail .check-container {\n background-color: var(--negative-outcome);\n}\n.outcome-chip.outcome-chip-fail .count {\n background-color: transparent;\n border: 1.5px solid var(--negative-outcome);\n width: max-content;\n}\n.outcome-chip.outcome-chip-inapplicable .check-container, .outcome-chip.outcome-chip-unscannable .check-container {\n position: relative;\n width: 16px;\n height: 16px;\n display: inline-block;\n border-radius: 50%;\n border: 0 solid var(--neutral-0);\n}\n.outcome-chip.outcome-chip-inapplicable .check-container, .outcome-chip.outcome-chip-unscannable .check-container {\n background-color: var(--neutral-outcome);\n}\n.outcome-chip.outcome-chip-inapplicable .count, .outcome-chip.outcome-chip-unscannable .count {\n background-color: transparent;\n border: 1.5px solid var(--neutral-outcome);\n width: max-content;\n}\n\n.outcome-icon-set .outcome-icon {\n margin-left: 4px;\n border-radius: 50%;\n}\n.outcome-icon-set .outcome-icon-pass .check-container {\n position: relative;\n width: 14px;\n height: 14px;\n display: inline-block;\n border-radius: 50%;\n border: 0 solid var(--neutral-0);\n}\n.outcome-icon-set .outcome-icon-pass .check-container svg circle {\n fill: var(--positive-outcome);\n}\n.outcome-icon-set .outcome-icon-incomplete .check-container {\n position: relative;\n width: 12px;\n height: 12px;\n display: inline-block;\n border-radius: 50%;\n border: 1px solid var(--neutral-0);\n}\n.outcome-icon-set .outcome-icon-incomplete .check-container {\n border-color: var(--neutral-60);\n}\n.outcome-icon-set .outcome-icon-fail .check-container {\n position: relative;\n width: 14px;\n height: 14px;\n display: inline-block;\n border-radius: 50%;\n border: 0 solid var(--neutral-0);\n}\n.outcome-icon-set .outcome-icon-fail .check-container svg circle {\n fill: var(--negative-outcome);\n}\n\nbody {\n font-size: 14px;\n margin: auto;\n background-color: var(--neutral-2);\n color: black;\n font-family: 'Segoe UI Web (West European)','Segoe UI','-apple-system',BlinkMacSystemFont,Roboto,'Helvetica Neue',Helvetica,Ubuntu,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';\n}\n\n.outer-container {\n box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);\n}\n.outer-container .content-container {\n max-width: 960px;\n margin-right: auto;\n margin-left: auto;\n margin-top: 24px;\n}\n.outer-container .content-container h2 {\n margin: 0;\n font-size: 17px;\n line-height: 24px;\n}\n@media only screen and (width <= 1000px) {\n .outer-container .content-container {\n margin-top: 24px;\n margin-right: 16px;\n margin-left: 16px;\n }\n}\n\n.scan-details-section {\n box-shadow: 0 0.3px 0.9px rgba(0, 0, 0, 0.108), 0 1.6px 3.6px rgba(0, 0, 0, 0.132);\n border-radius: 4px;\n background-color: var(--neutral-0);\n padding: 20px;\n margin-bottom: 22px;\n}\n.scan-details-section .details-section-list {\n list-style: none;\n font-size: 14px;\n line-height: 16px;\n padding-left: 0;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n flex-direction: column;\n}\n.scan-details-section h3 {\n margin: 0;\n font-size: 17px;\n line-height: 24px;\n}\n.scan-details-section li {\n display: inline-block;\n padding-top: 12px;\n}\n.scan-details-section li .icon {\n padding-right: 12px;\n position: relative;\n top: 3px;\n}\n.scan-details-section .text {\n word-break: break-all;\n}\n.scan-details-section .description-text {\n white-space: pre-wrap;\n}\n.scan-details-section .screen-reader-only {\n position: absolute;\n left: -10000px;\n top: auto;\n height: 1px;\n overflow: hidden;\n clip-path: inset(100% 100% 100% 100%);\n}\n\n.report-footer-container {\n max-width: 960px;\n margin-right: auto;\n margin-left: auto;\n margin-bottom: 68px;\n margin-top: 24px;\n}\n.report-footer-container .report-footer {\n line-height: 20px;\n color: var(--report-footer-text);\n}\n@media only screen and (width <= 1000px) {\n .report-footer-container {\n margin-right: 16px;\n margin-left: 16px;\n }\n}\n\n.report-header-command-bar {\n height: 40px;\n width: 100%;\n display: flex;\n justify-content: end;\n min-height: fit-content;\n align-items: center;\n background-color: var(--neutral-0);\n box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);\n}\n.report-header-command-bar .target-page {\n white-space: nowrap;\n margin-left: 16px;\n display: flex;\n color: var(--primary-text);\n font-family: 'Segoe UI Web (West European)','Segoe UI','-apple-system',BlinkMacSystemFont,Roboto,'Helvetica Neue',Helvetica,Ubuntu,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';\n font-size: 14px;\n line-height: 20px;\n font-weight: normal;\n min-width: 0;\n}\n.report-header-command-bar .target-page a {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.report-congrats-message {\n word-break: break-word;\n overflow-wrap: break-word;\n}\n\n.report-congrats-head {\n font-size: 16px;\n font-weight: 600;\n color: var(--primary-text);\n padding-top: 10px;\n padding-right: 0;\n padding-bottom: 10px;\n padding-left: 0;\n}\n\n.report-congrats-info {\n font-size: 14px;\n color: var(--secondary-text);\n padding-top: 10px;\n padding-right: 0;\n padding-bottom: 10px;\n padding-left: 0;\n}\n\n.sleeping-ada {\n height: 100px;\n}\n\n.title-section {\n margin-top: 56px;\n}\n.title-section h1 {\n font-weight: 600;\n margin-bottom: 24px;\n font-size: 21px;\n line-height: 32px;\n letter-spacing: -0.02em;\n}\n\n.results-container {\n margin-top: 56px;\n}\n.results-container .title-container :is(h1, h2, h3, h4, h5, h6) {\n font-weight: unset;\n margin-block: 0;\n margin-inline: 0;\n}\n\n@media screen and (width <= 640px) {\n .outcome-past-tense {\n display: none;\n }\n}\n.collapsible-container .collapsible-control[aria-expanded=true]::before, .collapsible-container .collapsible-control[aria-expanded=false]::before {\n display: inline-block;\n border-right: 1px solid var(--secondary-text);\n border-bottom: 1px solid var(--secondary-text);\n min-width: 7px;\n width: 7px;\n height: 7px;\n content: \"\";\n transform-origin: 50% 50%;\n transition: transform 0.1s linear 0s;\n}\n\n.summary-section {\n box-shadow: 0 0.3px 0.9px rgba(0, 0, 0, 0.108), 0 1.6px 3.6px rgba(0, 0, 0, 0.132);\n border-radius: 4px;\n background-color: var(--neutral-0);\n padding: 20px;\n margin-bottom: 24px;\n}\n\n.result-section {\n padding-bottom: 24px;\n}\n.result-section .title-container .collapsible-control::before {\n position: relative;\n bottom: 2px;\n margin-right: 14px;\n}\n.result-section .collapsible-content {\n margin-left: 16px;\n}\n\n.collapsible-container .collapsible-control {\n font-family: \"Segoe UI Web (West European)\", \"Segoe UI\", -apple-system, BlinkMacSystemFont, Roboto, \"Helvetica Neue\", Helvetica, Ubuntu, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n background-color: transparent;\n cursor: pointer;\n border: none;\n display: flex;\n align-items: baseline;\n width: 100%;\n}\n.collapsible-container .collapsible-control:hover {\n background-color: var(--neutral-alpha-4);\n}\n.collapsible-container:not(.collapsible-rule-details-group) .collapsible-control {\n padding-left: 2px;\n padding-right: 16px;\n position: relative;\n}\n.collapsible-container .collapsible-control[aria-expanded=false]::before {\n transform: rotate(-45deg);\n}\n.collapsible-container .collapsible-control[aria-expanded=true]::before {\n transform: rotate(45deg);\n}\n.collapsible-container .collapsible-content[aria-hidden=true] {\n display: none;\n}\n\nul.instance-details-list {\n list-style-type: none;\n padding-inline-start: unset;\n margin-block-start: unset;\n margin-block-end: unset;\n}\nul.instance-details-list li {\n margin-bottom: 16px;\n}\nul.instance-details-list li:last-child {\n margin-bottom: unset;\n}`;
|
|
2363
2062
|
|
|
2364
2063
|
// src/reports/components/head.tsx
|
|
2365
2064
|
var Head = NamedFC("Head", (props) => {
|
|
2366
|
-
|
|
2065
|
+
const titleValue = `${props.titlePreface} ${props.title}`;
|
|
2066
|
+
return /* @__PURE__ */ React34.createElement("head", null, /* @__PURE__ */ React34.createElement("meta", { charSet: "UTF-8" }), /* @__PURE__ */ React34.createElement("title", null, titleValue), /* @__PURE__ */ React34.createElement("style", { dangerouslySetInnerHTML: { __html: styleSheet } }), /* @__PURE__ */ React34.createElement("style", { dangerouslySetInnerHTML: { __html: props.bundledStyles.styleSheet } }));
|
|
2367
2067
|
});
|
|
2368
2068
|
|
|
2369
2069
|
// src/reports/bundled-reporter-styles.ts
|
|
@@ -2371,11 +2071,11 @@ var bundled_reporter_styles_exports = {};
|
|
|
2371
2071
|
__export(bundled_reporter_styles_exports, {
|
|
2372
2072
|
styleSheet: () => styleSheet2
|
|
2373
2073
|
});
|
|
2374
|
-
var styleSheet2 = `/* css-modules:src/common/components/heading-element-for-level */\n.heading-element-for-level--ifVX6 {\n margin-block-start: unset;\n margin-block-end: unset;\n}\n\n/* css-modules:src/common/components/cards/failed-instances-section */\n.failed-instances-container--3UUNb .collapsible-content {\n margin-left: 24px;\n}\n\n/* css-modules:src/reports/components/report-sections/minimal-rule-header */\n.outcome-chip-container--G5Dfr {\n min-width: 50px;\n}\n\n/* css-modules:src/reports/components/instance-details */\n.hidden-highlight-button--vu3B3 {\n opacity: 0;\n margin: 0;\n padding: 0;\n border: none;\n}\n.instance-details-card--owGQF {\n border-radius: 4px;\n border: 1px solid var(--card-border);\n outline-style: \"border-style\";\n box-shadow: 0 0.6px 1.8px var(--box-shadow-108), 0 3.2px 7.2px var(--box-shadow-132);\n margin-bottom: 16px;\n width: -moz-available;\n width: -webkit-fill-available;\n width: stretch;\n}\n.instance-details-card-container--KLHTp.selected--wEA4l {\n outline: 5px solid var(--communication-tint-10);\n}\n.instance-details-card--owGQF.selected--wEA4l {\n border: 1px solid transparent;\n}\n.instance-details-card--owGQF.focused--pvBWq,\n.instance-details-card--owGQF:focus {\n outline: 2px solid var(--primary-text);\n outline-offset: 2px;\n}\n.instance-details-card--owGQF.selected--wEA4l.focused--pvBWq,\n.instance-details-card--owGQF.selected--wEA4l:focus {\n outline-offset: 8px;\n}\n.instance-details-card--owGQF.interactive--an0ab {\n cursor: pointer;\n}\n.instance-details-card--owGQF.interactive--an0ab:hover {\n box-shadow: 0 8px 10px var(--box-shadow-108), 0 8px 10px var(--box-shadow-132);\n}\n.report-instance-table--3VoZX {\n background: var(--neutral-0);\n display: table;\n table-layout: fixed;\n width: -moz-available;\n width: -webkit-fill-available;\n width: stretch;\n border-radius: inherit;\n border-collapse: collapse;\n overflow-wrap: break-word;\n word-break: break-word;\n}\n.report-instance-table--3VoZX .row---3i35 {\n display: flex;\n flex-wrap: wrap;\n padding-top: 2px;\n padding-bottom: 14px;\n padding-left: 0;\n padding-right: 20px;\n border-bottom: 0.5px solid var(--neutral-10);\n}\n.report-instance-table--3VoZX .row---3i35 > * {\n margin-top: 12px;\n margin-bottom: 0;\n margin-left: 20px;\n margin-right: 0;\n padding: 0;\n}\n.report-instance-table--3VoZX .row---3i35:last-child {\n border-bottom: none;\n}\n.report-instance-table--3VoZX .row-label--FlVZl {\n flex-basis: 90px;\n flex-shrink: 1;\n flex-grow: 0;\n font-size: 14px;\n line-height: 20px;\n font-weight: 600;\n color: var(--primary-text);\n text-align: left;\n}\n.report-instance-table--3VoZX .row-content--07KUh {\n flex-basis: 200px;\n flex-shrink: 1;\n flex-grow: 1;\n color: var(--secondary-text);\n font-size: 14px;\n line-height: 20px;\n align-items: flex-end;\n display: flex;\n}\n\n/* css-modules:src/common/components/cards/related-paths-card-row */\n.path-list--MxxKM {\n padding-left: 16px;\n list-style-type: disc;\n}\n\n/* css-modules:src/common/components/cards/rich-resolution-content */\n.multi-line-text-yes-bullet--TXyX- {\n padding-left: 16px;\n}\n.multi-line-text-yes-bullet--TXyX- li {\n list-style-type: disc;\n margin-bottom: 4px;\n}\n.multi-line-text-no-bullet--AUXXt {\n padding-left: 0;\n list-style: none;\n}\n.multi-line-text-no-bullet--AUXXt li:not(:last-child) {\n margin-bottom: 4px;\n}\n.combination-lists--boK5y {\n flex-direction: column;\n display: flex;\n}\n\n/* css-modules:src/common/components/cards/urls-card-row */\n.urls-row-content--JDdRx {\n padding-left: 16px;\n}\n.urls-row-content--JDdRx li {\n list-style-type: disc;\n margin-bottom: 4px;\n}\n.urls-row-content-new-Failure--oL5lS {\n color: var(--negative-outcome);\n font-weight: bold;\n}\n\n/* css-modules:src/common/components/cards/how-to-fix-card-row */\n.how-to-fix-content--Zz96u {\n margin-bottom: 16px;\n}\n.how-to-fix-content--Zz96u ul {\n padding-left: 16px;\n}\n.how-to-fix-content--Zz96u ul li {\n list-style-type: disc;\n margin-bottom: 4px;\n}\n\n/* css-modules:src/common/components/cards/snippet-card-row */\n.snippet--hSNfv {\n font-family:\n menlo,\n consolas,\n courier new,\n monospace;\n white-space: normal;\n}\n\n/* css-modules:src/common/components/toast */\n.toast-container--L-5HM {\n display: inline-block;\n}\n.toast-content--8-Mx1 {\n background: var(--neutral-70);\n border-radius: 4px;\n color: var(--neutral-0);\n padding-left: 20px;\n padding-top: 14px;\n padding-bottom: 14px;\n padding-right: 20px;\n width: 316px;\n margin-left: calc(316px / -2 - 20px);\n left: 50%;\n bottom: 20px;\n z-index: 1000;\n position: absolute;\n}\n\n/* css-modules:src/common/components/cards/card-footer-instance-action-buttons */\n.kebab-menu-icon--EUIj- {\n flex-grow: 1;\n padding-left: 9px !important;\n padding-right: 9px !important;\n padding-top: 6px !important;\n padding-bottom: 6px !important;\n}\n@media screen and (forced-colors: active) {\n .kebab-menu-icon--EUIj- {\n color: buttontext !important;\n }\n}\n.kebab-menu-icon--EUIj-:hover {\n border-style: solid !important;\n border-width: 1px;\n padding-left: 8px !important;\n padding-right: 8px !important;\n padding-top: 5px !important;\n padding-bottom: 5px !important;\n}\n.kebab-menu-button--9Qt0a {\n margin-right: 8px;\n width: 32px;\n height: 32px;\n}\n.kebab-menu-button--9Qt0a:hover {\n background-color: var(--menu-item-background-hover);\n}\n.kebab-menu-button--9Qt0a.is-expanded {\n background-color: var(--menu-item-background-active);\n}\n@media screen and (forced-colors: active) {\n .kebab-menu-button--9Qt0a.is-expanded .kebab-menu-icon--EUIj-,\n .kebab-menu-button--9Qt0a:hover .kebab-menu-icon--EUIj- {\n color: highlight;\n }\n}\n\n/* css-modules:src/common/components/cards/instance-details-footer */\n.foot--p1DfC {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: var(--neutral-2);\n min-height: 48px;\n padding-left: 12px;\n border-top: 0.5px solid var(--card-footer-border);\n border-bottom-left-radius: inherit;\n border-bottom-right-radius: inherit;\n}\n.foot--p1DfC .highlight-status--xJvvI {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background: transparent;\n}\n.foot--p1DfC .highlight-status--xJvvI svg {\n fill: var(--secondary-text);\n}\n@media screen and (forced-colors: active) {\n .foot--p1DfC .highlight-status--xJvvI svg {\n fill: ButtonFace !important;\n stroke: ButtonText !important;\n }\n}\n.foot--p1DfC .highlight-status--xJvvI label {\n color: var(--secondary-text);\n font-size: 14px;\n overflow-wrap: break-word;\n word-break: break-word;\n}\n\n/* css-modules:src/common/components/cards/instance-details-group */\nul.instance-details-list--YfkRy {\n list-style-type: none;\n padding-inline-start: unset;\n margin-block-start: unset;\n margin-block-end: unset;\n}\nul.instance-details-list--YfkRy > li {\n margin-bottom: 16px;\n}\nul.instance-details-list--YfkRy > li:last-child {\n margin-bottom: unset;\n}\n\n/* css-modules:src/common/components/cards/rule-resources */\n.rule-more-resources--uw9mc {\n display: flex;\n flex-direction: column;\n margin-bottom: 16px;\n padding-top: 14px;\n padding-right: 20px;\n padding-bottom: 14px;\n padding-left: 20px;\n background-color: var(--neutral-0);\n box-shadow: 0 0.3px 0.9px rgba(0, 0, 0, 0.108), 0 1.6px 3.6px rgba(0, 0, 0, 0.132);\n border-radius: 4px;\n border: 1px solid var(--card-border);\n line-height: 20px;\n overflow-wrap: break-word;\n word-break: break-word;\n}\n.rule-more-resources--uw9mc .more-resources-title--jOuUL {\n font-weight: 600;\n}\n.rule-more-resources--uw9mc .rule-details-id--s-TpO {\n padding-top: 12px;\n padding-bottom: 12px;\n}\n.rule-more-resources--uw9mc .rule-guidance--TIQgm > :not(span:first-of-type) {\n margin-left: 8px;\n}\n\n/* css-modules:src/common/components/cards/rules-with-instances */\n.rule-details-group--Tb-LW .rule-detail {\n font-size: 14px;\n padding-top: 16px;\n padding-right: 8px;\n padding-bottom: 16px;\n padding-left: 8px;\n display: flex;\n align-items: baseline;\n text-align: left;\n}\n.rule-details-group--Tb-LW .rule-detail .outcome-chip {\n vertical-align: middle;\n margin-bottom: 2px;\n}\n.rule-details-group--Tb-LW .rule-detail .rule-details-id {\n font-weight: 600;\n color: var(--primary-text);\n word-break: break-all;\n}\n.rule-details-group--Tb-LW .rule-detail .rule-details-id a {\n font-weight: 600;\n color: var(--primary-text) !important;\n}\n.rule-details-group--Tb-LW .rule-detail .rule-details-id strong {\n font-weight: 600;\n}\n.rule-details-group--Tb-LW .rule-detail .rule-detail-description {\n color: var(--secondary-text) !important;\n word-break: break-all;\n}\n.collapsible-rule-details-group--V-HWh {\n box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);\n}\n.collapsible-rule-details-group--V-HWh .rule-detail {\n box-shadow: unset;\n}\n.collapsible-rule-details-group--V-HWh:not(.collapsed) {\n box-shadow: unset;\n}\n\n/* css-modules:src/common/components/cards/result-section-title */\n.result-section-title--RGFI5 {\n display: flex;\n flex-wrap: nowrap;\n justify-content: flex-start;\n align-items: center;\n margin-top: 8px;\n margin-bottom: 8px;\n}\n.result-section-title--RGFI5 .outcome-chip.outcome-chip-fail .count {\n line-height: 11px;\n}\n.result-section-title--RGFI5 .outcome-chip.outcome-chip-fail svg {\n margin-bottom: 3px;\n}\n.result-section-title--RGFI5 .title--WBYFE {\n font-weight: 600;\n font-size: 17px;\n line-height: 24px;\n margin-right: 6px;\n color: var(--primary-text);\n}\n.result-section-title--RGFI5 .heading--NdP4Q {\n font-weight: 600;\n font-size: 15px;\n line-height: 20px;\n margin-right: 6px;\n color: var(--primary-text);\n}\n.result-section-title--RGFI5 .outcome-chip-container--BT3j5 {\n display: flex;\n height: 16px;\n}\n\n/* css-modules:src/common/components/cards/result-section */\n.result-section--HfO9s {\n padding-bottom: 24px;\n}\n.result-section--HfO9s .title-container--JzN4A .collapsible-control--e42Z7::before {\n position: relative;\n bottom: 2px;\n}\n.result-section--HfO9s > h2 {\n margin: 0;\n font-size: 17px;\n line-height: 24px;\n}\n\n/* css-modules:src/reports/components/header-bar */\n.report-header-bar--SDV11 {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n flex-wrap: nowrap;\n background-color: var(--ada-brand-color);\n height: 40px;\n width: 100%;\n}\n.report-header-bar--SDV11 .header-icon {\n flex-shrink: 0;\n margin-left: 16px;\n height: 22px;\n width: 22px;\n}\n.report-header-bar--SDV11 .header-text--EdTxw {\n margin-left: 8px;\n color: var(--header-bar-title-color);\n flex-shrink: 1;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-family:\n \"Segoe UI Web (West European)\",\n \"Segoe UI\",\n \"-apple-system\",\n BlinkMacSystemFont,\n Roboto,\n \"Helvetica Neue\",\n Helvetica,\n Ubuntu,\n Arial,\n sans-serif,\n \"Apple Color Emoji\",\n \"Segoe UI Emoji\",\n \"Segoe UI Symbol\";\n font-weight: normal;\n font-size: 17px;\n line-height: 24px;\n}\n\n/* css-modules:src/reports/components/report-sections/header-section */\n.report-header-command-bar--NJWdl {\n height: 40px;\n width: 100%;\n display: flex;\n justify-content: end;\n min-height: fit-content;\n align-items: center;\n background-color: var(--neutral-0);\n box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);\n}\n.report-header-command-bar--NJWdl .target-page--hjh44 {\n white-space: nowrap;\n margin-left: 16px;\n display: flex;\n color: var(--primary-text);\n font-family:\n \"Segoe UI Web (West European)\",\n \"Segoe UI\",\n \"-apple-system\",\n BlinkMacSystemFont,\n Roboto,\n \"Helvetica Neue\",\n Helvetica,\n Ubuntu,\n Arial,\n sans-serif,\n \"Apple Color Emoji\",\n \"Segoe UI Emoji\",\n \"Segoe UI Symbol\";\n font-size: 14px;\n line-height: 20px;\n font-weight: normal;\n min-width: 0;\n}\n.report-header-command-bar--NJWdl .target-page--hjh44 a {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n/* css-modules:src/common/components/cards/combined-report-result-section-title */\n.combined-report-result-section-title--TqIZO {\n display: flex;\n flex-wrap: nowrap;\n justify-content: flex-start;\n align-items: center;\n margin-top: 8px;\n margin-bottom: 8px;\n}\n.combined-report-result-section-title--TqIZO .title--6WIyt {\n font-weight: 600;\n font-size: 17px;\n line-height: 24px;\n margin-right: 6px;\n color: var(--primary-text);\n}\n.combined-report-result-section-title--TqIZO .heading--UpAHf {\n font-weight: 600;\n font-size: 15px;\n line-height: 20px;\n margin-right: 6px;\n color: var(--primary-text);\n}\n\n/* css-modules:src/reports/components/report-sections/urls-summary-section */\n.urls-summary-section--jNa-v {\n box-shadow: 0 0.3px 0.9px rgba(0, 0, 0, 0.108), 0 1.6px 3.6px rgba(0, 0, 0, 0.132);\n border-radius: 4px;\n background-color: var(--neutral-0);\n padding: 20px;\n margin-bottom: 24px;\n}\n.urls-summary-section--jNa-v h2 {\n margin-bottom: 16px !important;\n}\n.urls-summary-section--jNa-v .total-urls--95-ge {\n font-weight: 600;\n}\n.urls-summary-section--jNa-v .failure-instances--2WDtT {\n margin-top: 40px;\n}\n.urls-summary-section--jNa-v .failure-outcome-chip--JF-lj {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n}\n\n/* css-modules:src/reports/components/report-sections/rules-results-container */\n.rules-results-container--HaLDw {\n margin-top: 56px;\n}\n.rules-results-container--HaLDw .results-heading--H9Puz {\n margin-top: 32px;\n margin-bottom: 32px;\n font-weight: 600;\n font-size: 17px;\n line-height: 24px;\n}\n\n/* css-modules:src/reports/components/report-sections/summary-report-details-section */\n.crawl-details-section--a6evz {\n box-shadow: 0 0.3px 0.9px rgba(0, 0, 0, 0.108), 0 1.6px 3.6px rgba(0, 0, 0, 0.132);\n border-radius: 4px;\n background-color: var(--neutral-0);\n padding: 20px;\n margin-bottom: 22px;\n}\n.crawl-details-section--a6evz .crawl-details-section-list--WV1Di {\n list-style: none;\n font-size: 14px;\n line-height: 16px;\n padding-left: 0;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n flex-direction: column;\n}\n.crawl-details-section--a6evz .crawl-details-section-list--WV1Di li {\n display: inline-block;\n}\n.crawl-details-section--a6evz .crawl-details-section-list--WV1Di li .icon--APJEn {\n padding-right: 12px;\n position: relative;\n top: 3px;\n}\n.crawl-details-section--a6evz .crawl-details-section-list--WV1Di li.targetSite--wBJT- {\n margin-bottom: 6px;\n}\n.crawl-details-section--a6evz .text--rViTo,\n.crawl-details-section--a6evz .label--DUNYf {\n word-break: break-all;\n color: var(--neutral-55);\n font-family:\n \"Segoe UI Web (West European)\",\n \"Segoe UI\",\n \"-apple-system\",\n BlinkMacSystemFont,\n Roboto,\n \"Helvetica Neue\",\n Helvetica,\n Ubuntu,\n Arial,\n sans-serif,\n \"Apple Color Emoji\",\n \"Segoe UI Emoji\",\n \"Segoe UI Symbol\";\n font-weight: normal;\n font-size: 14px;\n line-height: 20px;\n}\n.crawl-details-section--a6evz .label--DUNYf {\n font-weight: 600;\n}\n.crawl-details-section--a6evz .label--DUNYf.no-icon--VrSr5 {\n padding-left: 29px;\n}\n\n/* css-modules:src/reports/components/report-sections/collapsible-url-result-section */\n.url-result-section--SkOlZ {\n padding-bottom: 31px;\n}\n.url-result-section--SkOlZ .title-container[aria-level=\"3\"] .collapsible-control::before {\n position: relative;\n bottom: 2px;\n margin-right: 14px;\n}\n.url-result-section--SkOlZ .collapsible-content {\n margin-top: 19px;\n}\n\n/* css-modules:src/reports/components/report-sections/summary-results-table */\n.summary-results-table--Iezr- {\n width: 100%;\n margin: 0;\n text-align: left;\n border-spacing: 0;\n border-collapse: collapse;\n font-size: 14px;\n line-height: 20px;\n}\n.summary-results-table--Iezr- th,\n.summary-results-table--Iezr- td {\n border: 1px solid var(--neutral-20);\n padding-top: 16px;\n padding-right: 8px;\n padding-bottom: 16px;\n padding-left: 8px;\n}\n.summary-results-table--Iezr- th {\n font-weight: 600;\n background-color: var(--neutral-6);\n}\n.summary-results-table--Iezr- thead tr :first-child {\n width: 172px;\n}\n.summary-results-table--Iezr- td {\n background-color: var(--neutral-0);\n}\n.summary-results-table--Iezr- td.text-cell--EaUrM {\n overflow-wrap: break-word;\n}\n.summary-results-table--Iezr- td.url-cell--mg-3l {\n overflow-wrap: anywhere;\n}\n\n/* css-modules:src/reports/components/report-sections/results-by-url-container */\n.url-results-container---dq9B {\n margin-top: 56px;\n}\n.url-results-container---dq9B .results-heading--2dWBX {\n margin-top: 32px;\n margin-bottom: 32px;\n}\n\n/* css-modules:src/common/components/cards/fix-instruction-color-box */\n.fix-instruction-color-box--DQpQE {\n width: 14px;\n height: 14px;\n display: inline-block;\n vertical-align: -5%;\n margin-right: 2px;\n margin-left: 2px;\n border: 1px solid var(--light-black);\n}\n@media screen and (forced-colors: active) {\n .fix-instruction-color-box--DQpQE {\n forced-color-adjust: none;\n }\n}\n.screen-reader-only--6LUiO {\n position: absolute;\n left: -10000px;\n top: auto;\n height: 1px;\n overflow: hidden;\n clip-path: inset(100% 100% 100% 100%);\n}\n/*# sourceMappingURL=report.css.map */\n`;
|
|
2074
|
+
var styleSheet2 = `/* css-modules:src/common/components/heading-element-for-level */\n.heading-element-for-level--ifVX6 {\n margin-block-start: unset;\n margin-block-end: unset;\n}\n\n/* css-modules:src/common/components/cards/failed-instances-section */\n.failed-instances-container--3UUNb .collapsible-content {\n margin-left: 24px;\n}\n\n/* css-modules:src/reports/components/report-sections/minimal-rule-header */\n.outcome-chip-container--G5Dfr {\n min-width: 50px;\n}\n\n/* css-modules:src/reports/components/instance-details */\n.hidden-highlight-button--vu3B3 {\n opacity: 0;\n margin: 0;\n padding: 0;\n border: none;\n}\n.instance-details-card--owGQF {\n border-radius: 4px;\n border: 1px solid var(--card-border);\n outline-style: \"border-style\";\n box-shadow: 0 0.6px 1.8px var(--box-shadow-108), 0 3.2px 7.2px var(--box-shadow-132);\n margin-bottom: 16px;\n width: -moz-available;\n width: -webkit-fill-available;\n width: stretch;\n}\n.instance-details-card-container--KLHTp.selected--wEA4l {\n outline: 5px solid var(--communication-tint-10);\n}\n.instance-details-card--owGQF.selected--wEA4l {\n border: 1px solid transparent;\n}\n.instance-details-card--owGQF.focused--pvBWq,\n.instance-details-card--owGQF:focus {\n outline: 2px solid var(--primary-text);\n outline-offset: 2px;\n}\n.instance-details-card--owGQF.selected--wEA4l.focused--pvBWq,\n.instance-details-card--owGQF.selected--wEA4l:focus {\n outline-offset: 8px;\n}\n.instance-details-card--owGQF.interactive--an0ab {\n cursor: pointer;\n}\n.instance-details-card--owGQF.interactive--an0ab:hover {\n box-shadow: 0 8px 10px var(--box-shadow-108), 0 8px 10px var(--box-shadow-132);\n}\n.report-instance-table--3VoZX {\n background: var(--neutral-0);\n display: table;\n table-layout: fixed;\n width: -moz-available;\n width: -webkit-fill-available;\n width: stretch;\n border-radius: inherit;\n border-collapse: collapse;\n overflow-wrap: break-word;\n word-break: break-word;\n}\n.report-instance-table--3VoZX .row---3i35 {\n display: flex;\n flex-wrap: wrap;\n padding-top: 2px;\n padding-bottom: 14px;\n padding-left: 0;\n padding-right: 20px;\n border-bottom: 0.5px solid var(--neutral-10);\n}\n.report-instance-table--3VoZX .row---3i35 > * {\n margin-top: 12px;\n margin-bottom: 0;\n margin-left: 20px;\n margin-right: 0;\n padding: 0;\n}\n.report-instance-table--3VoZX .row---3i35:last-child {\n border-bottom: none;\n}\n.report-instance-table--3VoZX .row-label--FlVZl {\n flex-basis: 90px;\n flex-shrink: 1;\n flex-grow: 0;\n font-size: 14px;\n line-height: 20px;\n font-weight: 600;\n color: var(--primary-text);\n text-align: left;\n}\n.report-instance-table--3VoZX .row-content--07KUh {\n flex-basis: 200px;\n flex-shrink: 1;\n flex-grow: 1;\n color: var(--secondary-text);\n font-size: 14px;\n line-height: 20px;\n align-items: flex-end;\n display: flex;\n}\n\n/* css-modules:src/common/components/toast */\n.toast-container--L-5HM {\n display: inline-block;\n}\n.toast-content--8-Mx1 {\n background: var(--neutral-70);\n border-radius: 4px;\n color: var(--neutral-0);\n padding-left: 20px;\n padding-top: 14px;\n padding-bottom: 14px;\n padding-right: 20px;\n width: 316px;\n margin-left: calc(316px / -2 - 20px);\n left: 50%;\n bottom: 20px;\n z-index: 1000;\n position: absolute;\n}\n\n/* css-modules:src/common/components/cards/card-footer-instance-action-buttons */\n.kebab-menu-icon--EUIj- {\n flex-grow: 1;\n padding-left: 9px !important;\n padding-right: 9px !important;\n padding-top: 6px !important;\n padding-bottom: 6px !important;\n}\n@media screen and (forced-colors: active) {\n .kebab-menu-icon--EUIj- {\n color: buttontext !important;\n }\n}\n.kebab-menu-icon--EUIj-:hover {\n border-style: solid !important;\n border-width: 1px;\n padding-left: 8px !important;\n padding-right: 8px !important;\n padding-top: 5px !important;\n padding-bottom: 5px !important;\n}\n.kebab-menu-button--9Qt0a {\n margin-right: 8px;\n width: 32px;\n height: 32px;\n}\n.kebab-menu-button--9Qt0a:hover {\n background-color: var(--menu-item-background-hover);\n}\n.kebab-menu-button--9Qt0a.is-expanded {\n background-color: var(--menu-item-background-active);\n}\n@media screen and (forced-colors: active) {\n .kebab-menu-button--9Qt0a.is-expanded .kebab-menu-icon--EUIj-,\n .kebab-menu-button--9Qt0a:hover .kebab-menu-icon--EUIj- {\n color: highlight;\n }\n}\n\n/* css-modules:src/common/components/cards/instance-details-footer */\n.foot--p1DfC {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: var(--neutral-2);\n min-height: 48px;\n padding-left: 12px;\n border-top: 0.5px solid var(--card-footer-border);\n border-bottom-left-radius: inherit;\n border-bottom-right-radius: inherit;\n}\n.foot--p1DfC .highlight-status--xJvvI {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background: transparent;\n}\n.foot--p1DfC .highlight-status--xJvvI svg {\n fill: var(--secondary-text);\n}\n@media screen and (forced-colors: active) {\n .foot--p1DfC .highlight-status--xJvvI svg {\n fill: ButtonFace !important;\n stroke: ButtonText !important;\n }\n}\n.foot--p1DfC .highlight-status--xJvvI label {\n color: var(--secondary-text);\n font-size: 14px;\n overflow-wrap: break-word;\n word-break: break-word;\n}\n\n/* css-modules:src/common/components/cards/instance-details-group */\nul.instance-details-list--YfkRy {\n list-style-type: none;\n padding-inline-start: unset;\n margin-block-start: unset;\n margin-block-end: unset;\n}\nul.instance-details-list--YfkRy > li {\n margin-bottom: 16px;\n}\nul.instance-details-list--YfkRy > li:last-child {\n margin-bottom: unset;\n}\n\n/* css-modules:src/common/components/cards/rule-resources */\n.rule-more-resources--uw9mc {\n display: flex;\n flex-direction: column;\n margin-bottom: 16px;\n padding-top: 14px;\n padding-right: 20px;\n padding-bottom: 14px;\n padding-left: 20px;\n background-color: var(--neutral-0);\n box-shadow: 0 0.3px 0.9px rgba(0, 0, 0, 0.108), 0 1.6px 3.6px rgba(0, 0, 0, 0.132);\n border-radius: 4px;\n border: 1px solid var(--card-border);\n line-height: 20px;\n overflow-wrap: break-word;\n word-break: break-word;\n}\n.rule-more-resources--uw9mc .more-resources-title--jOuUL {\n font-weight: 600;\n}\n.rule-more-resources--uw9mc .rule-details-id--s-TpO {\n padding-top: 12px;\n padding-bottom: 12px;\n}\n.rule-more-resources--uw9mc .rule-guidance--TIQgm > :not(span:first-of-type) {\n margin-left: 8px;\n}\n\n/* css-modules:src/common/components/cards/rules-with-instances */\n.rule-details-group--Tb-LW .rule-detail {\n font-size: 14px;\n padding-top: 16px;\n padding-right: 8px;\n padding-bottom: 16px;\n padding-left: 8px;\n display: flex;\n align-items: baseline;\n text-align: left;\n}\n.rule-details-group--Tb-LW .rule-detail .outcome-chip {\n vertical-align: middle;\n margin-bottom: 2px;\n}\n.rule-details-group--Tb-LW .rule-detail .rule-details-id {\n font-weight: 600;\n color: var(--primary-text);\n word-break: break-all;\n}\n.rule-details-group--Tb-LW .rule-detail .rule-details-id a {\n font-weight: 600;\n color: var(--primary-text) !important;\n}\n.rule-details-group--Tb-LW .rule-detail .rule-details-id strong {\n font-weight: 600;\n}\n.rule-details-group--Tb-LW .rule-detail .rule-detail-description {\n color: var(--secondary-text) !important;\n word-break: break-all;\n}\n.collapsible-rule-details-group--V-HWh {\n box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);\n}\n.collapsible-rule-details-group--V-HWh .rule-detail {\n box-shadow: unset;\n}\n.collapsible-rule-details-group--V-HWh:not(.collapsed) {\n box-shadow: unset;\n}\n\n/* css-modules:src/common/components/cards/result-section-title */\n.result-section-title--RGFI5 {\n display: flex;\n flex-wrap: nowrap;\n justify-content: flex-start;\n align-items: center;\n margin-top: 8px;\n margin-bottom: 8px;\n}\n.result-section-title--RGFI5 .outcome-chip.outcome-chip-fail .count {\n line-height: 11px;\n}\n.result-section-title--RGFI5 .outcome-chip.outcome-chip-fail svg {\n margin-bottom: 3px;\n}\n.result-section-title--RGFI5 .title--WBYFE {\n font-weight: 600;\n font-size: 17px;\n line-height: 24px;\n margin-right: 6px;\n color: var(--primary-text);\n}\n.result-section-title--RGFI5 .heading--NdP4Q {\n font-weight: 600;\n font-size: 15px;\n line-height: 20px;\n margin-right: 6px;\n color: var(--primary-text);\n}\n.result-section-title--RGFI5 .outcome-chip-container--BT3j5 {\n display: flex;\n height: 16px;\n}\n\n/* css-modules:src/common/components/cards/result-section */\n.result-section--HfO9s {\n padding-bottom: 24px;\n}\n.result-section--HfO9s .title-container--JzN4A .collapsible-control--e42Z7::before {\n position: relative;\n bottom: 2px;\n}\n.result-section--HfO9s > h2 {\n margin: 0;\n font-size: 17px;\n line-height: 24px;\n}\n\n/* css-modules:src/reports/components/header-bar */\n.report-header-bar--SDV11 {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n flex-wrap: nowrap;\n background-color: var(--ada-brand-color);\n height: 40px;\n width: 100%;\n}\n.report-header-bar--SDV11 .header-icon {\n flex-shrink: 0;\n margin-left: 16px;\n height: 22px;\n width: 22px;\n}\n.report-header-bar--SDV11 .header-text--EdTxw {\n margin-left: 8px;\n color: var(--header-bar-title-color);\n flex-shrink: 1;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-family:\n \"Segoe UI Web (West European)\",\n \"Segoe UI\",\n \"-apple-system\",\n BlinkMacSystemFont,\n Roboto,\n \"Helvetica Neue\",\n Helvetica,\n Ubuntu,\n Arial,\n sans-serif,\n \"Apple Color Emoji\",\n \"Segoe UI Emoji\",\n \"Segoe UI Symbol\";\n font-weight: normal;\n font-size: 17px;\n line-height: 24px;\n}\n\n/* css-modules:src/reports/components/report-sections/header-section */\n.report-header-command-bar--NJWdl {\n height: 40px;\n width: 100%;\n display: flex;\n justify-content: end;\n min-height: fit-content;\n align-items: center;\n background-color: var(--neutral-0);\n box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);\n}\n.report-header-command-bar--NJWdl .target-page--hjh44 {\n white-space: nowrap;\n margin-left: 16px;\n display: flex;\n color: var(--primary-text);\n font-family:\n \"Segoe UI Web (West European)\",\n \"Segoe UI\",\n \"-apple-system\",\n BlinkMacSystemFont,\n Roboto,\n \"Helvetica Neue\",\n Helvetica,\n Ubuntu,\n Arial,\n sans-serif,\n \"Apple Color Emoji\",\n \"Segoe UI Emoji\",\n \"Segoe UI Symbol\";\n font-size: 14px;\n line-height: 20px;\n font-weight: normal;\n min-width: 0;\n}\n.report-header-command-bar--NJWdl .target-page--hjh44 a {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n/* css-modules:src/common/components/cards/combined-report-result-section-title */\n.combined-report-result-section-title--TqIZO {\n display: flex;\n flex-wrap: nowrap;\n justify-content: flex-start;\n align-items: center;\n margin-top: 8px;\n margin-bottom: 8px;\n}\n.combined-report-result-section-title--TqIZO .title--6WIyt {\n font-weight: 600;\n font-size: 17px;\n line-height: 24px;\n margin-right: 6px;\n color: var(--primary-text);\n}\n.combined-report-result-section-title--TqIZO .heading--UpAHf {\n font-weight: 600;\n font-size: 15px;\n line-height: 20px;\n margin-right: 6px;\n color: var(--primary-text);\n}\n\n/* css-modules:src/reports/components/report-sections/urls-summary-section */\n.urls-summary-section--jNa-v {\n box-shadow: 0 0.3px 0.9px rgba(0, 0, 0, 0.108), 0 1.6px 3.6px rgba(0, 0, 0, 0.132);\n border-radius: 4px;\n background-color: var(--neutral-0);\n padding: 20px;\n margin-bottom: 24px;\n}\n.urls-summary-section--jNa-v h2 {\n margin-bottom: 16px !important;\n}\n.urls-summary-section--jNa-v .total-urls--95-ge {\n font-weight: 600;\n}\n.urls-summary-section--jNa-v .failure-instances--2WDtT {\n margin-top: 40px;\n}\n.urls-summary-section--jNa-v .failure-outcome-chip--JF-lj {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n}\n\n/* css-modules:src/reports/components/report-sections/rules-results-container */\n.rules-results-container--HaLDw {\n margin-top: 56px;\n}\n.rules-results-container--HaLDw .results-heading--H9Puz {\n margin-top: 32px;\n margin-bottom: 32px;\n font-weight: 600;\n font-size: 17px;\n line-height: 24px;\n}\n\n/* css-modules:src/reports/components/report-sections/summary-report-details-section */\n.crawl-details-section--a6evz {\n box-shadow: 0 0.3px 0.9px rgba(0, 0, 0, 0.108), 0 1.6px 3.6px rgba(0, 0, 0, 0.132);\n border-radius: 4px;\n background-color: var(--neutral-0);\n padding: 20px;\n margin-bottom: 22px;\n}\n.crawl-details-section--a6evz .crawl-details-section-list--WV1Di {\n list-style: none;\n font-size: 14px;\n line-height: 16px;\n padding-left: 0;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n flex-direction: column;\n}\n.crawl-details-section--a6evz .crawl-details-section-list--WV1Di li {\n display: inline-block;\n}\n.crawl-details-section--a6evz .crawl-details-section-list--WV1Di li .icon--APJEn {\n padding-right: 12px;\n position: relative;\n top: 3px;\n}\n.crawl-details-section--a6evz .crawl-details-section-list--WV1Di li.targetSite--wBJT- {\n margin-bottom: 6px;\n}\n.crawl-details-section--a6evz .text--rViTo,\n.crawl-details-section--a6evz .label--DUNYf {\n word-break: break-all;\n color: var(--neutral-55);\n font-family:\n \"Segoe UI Web (West European)\",\n \"Segoe UI\",\n \"-apple-system\",\n BlinkMacSystemFont,\n Roboto,\n \"Helvetica Neue\",\n Helvetica,\n Ubuntu,\n Arial,\n sans-serif,\n \"Apple Color Emoji\",\n \"Segoe UI Emoji\",\n \"Segoe UI Symbol\";\n font-weight: normal;\n font-size: 14px;\n line-height: 20px;\n}\n.crawl-details-section--a6evz .label--DUNYf {\n font-weight: 600;\n}\n.crawl-details-section--a6evz .label--DUNYf.no-icon--VrSr5 {\n padding-left: 29px;\n}\n\n/* css-modules:src/reports/components/report-sections/collapsible-url-result-section */\n.url-result-section--SkOlZ {\n padding-bottom: 31px;\n}\n.url-result-section--SkOlZ .title-container[aria-level=\"3\"] .collapsible-control::before {\n position: relative;\n bottom: 2px;\n margin-right: 14px;\n}\n.url-result-section--SkOlZ .collapsible-content {\n margin-top: 19px;\n}\n\n/* css-modules:src/reports/components/report-sections/summary-results-table */\n.summary-results-table--Iezr- {\n width: 100%;\n margin: 0;\n text-align: left;\n border-spacing: 0;\n border-collapse: collapse;\n font-size: 14px;\n line-height: 20px;\n}\n.summary-results-table--Iezr- th,\n.summary-results-table--Iezr- td {\n border: 1px solid var(--neutral-20);\n padding-top: 16px;\n padding-right: 8px;\n padding-bottom: 16px;\n padding-left: 8px;\n}\n.summary-results-table--Iezr- th {\n font-weight: 600;\n background-color: var(--neutral-6);\n}\n.summary-results-table--Iezr- thead tr :first-child {\n width: 172px;\n}\n.summary-results-table--Iezr- td {\n background-color: var(--neutral-0);\n}\n.summary-results-table--Iezr- td.text-cell--EaUrM {\n overflow-wrap: break-word;\n}\n.summary-results-table--Iezr- td.url-cell--mg-3l {\n overflow-wrap: anywhere;\n}\n\n/* css-modules:src/reports/components/report-sections/results-by-url-container */\n.url-results-container---dq9B {\n margin-top: 56px;\n}\n.url-results-container---dq9B .results-heading--2dWBX {\n margin-top: 32px;\n margin-bottom: 32px;\n}\n\n/* css-modules:src/common/components/cards/fix-instruction-color-box */\n.fix-instruction-color-box--DQpQE {\n width: 14px;\n height: 14px;\n display: inline-block;\n vertical-align: -5%;\n margin-right: 2px;\n margin-left: 2px;\n border: 1px solid var(--light-black);\n}\n@media screen and (forced-colors: active) {\n .fix-instruction-color-box--DQpQE {\n forced-color-adjust: none;\n }\n}\n.screen-reader-only--6LUiO {\n position: absolute;\n left: -10000px;\n top: auto;\n height: 1px;\n overflow: hidden;\n clip-path: inset(100% 100% 100% 100%);\n}\n\n/* css-modules:src/common/components/cards/related-paths-card-row */\n.path-list--MxxKM {\n padding-left: 16px;\n list-style-type: disc;\n}\n\n/* css-modules:src/common/components/cards/rich-resolution-content */\n.multi-line-text-yes-bullet--TXyX- {\n padding-left: 16px;\n}\n.multi-line-text-yes-bullet--TXyX- li {\n list-style-type: disc;\n margin-bottom: 4px;\n}\n.multi-line-text-no-bullet--AUXXt {\n padding-left: 0;\n list-style: none;\n}\n.multi-line-text-no-bullet--AUXXt li:not(:last-child) {\n margin-bottom: 4px;\n}\n.combination-lists--boK5y {\n flex-direction: column;\n display: flex;\n}\n\n/* css-modules:src/common/components/cards/urls-card-row */\n.urls-row-content--JDdRx {\n padding-left: 16px;\n}\n.urls-row-content--JDdRx li {\n list-style-type: disc;\n margin-bottom: 4px;\n}\n.urls-row-content-new-Failure--oL5lS {\n color: var(--negative-outcome);\n font-weight: bold;\n}\n\n/* css-modules:src/common/components/cards/how-to-fix-card-row */\n.how-to-fix-content--Zz96u {\n margin-bottom: 16px;\n}\n.how-to-fix-content--Zz96u ul {\n padding-left: 16px;\n}\n.how-to-fix-content--Zz96u ul li {\n list-style-type: disc;\n margin-bottom: 4px;\n}\n\n/* css-modules:src/common/components/cards/snippet-card-row */\n.snippet--hSNfv {\n font-family:\n menlo,\n consolas,\n courier new,\n monospace;\n white-space: normal;\n}\n/*# sourceMappingURL=report.css.map */\n`;
|
|
2375
2075
|
|
|
2376
2076
|
// src/reports/components/reporter-automated-check-head.tsx
|
|
2377
2077
|
var ReporterHead = NamedFC("ReporterHead", () => {
|
|
2378
|
-
return /* @__PURE__ */
|
|
2078
|
+
return /* @__PURE__ */ React35.createElement(
|
|
2379
2079
|
Head,
|
|
2380
2080
|
{
|
|
2381
2081
|
titlePreface: brand,
|
|
@@ -2386,11 +2086,11 @@ var ReporterHead = NamedFC("ReporterHead", () => {
|
|
|
2386
2086
|
});
|
|
2387
2087
|
|
|
2388
2088
|
// src/reports/package/footer-text-for-service.tsx
|
|
2389
|
-
var
|
|
2089
|
+
var React37 = __toESM(require("react"));
|
|
2390
2090
|
|
|
2391
2091
|
// src/reports/components/report-sections/tool-link.tsx
|
|
2392
|
-
var
|
|
2393
|
-
var ToolLink = NamedFC("ToolLink", () => /* @__PURE__ */
|
|
2092
|
+
var React36 = __toESM(require("react"));
|
|
2093
|
+
var ToolLink = NamedFC("ToolLink", () => /* @__PURE__ */ React36.createElement(
|
|
2394
2094
|
NewTabLink,
|
|
2395
2095
|
{
|
|
2396
2096
|
className: "tool-name-link",
|
|
@@ -2403,37 +2103,37 @@ var ToolLink = NamedFC("ToolLink", () => /* @__PURE__ */ React45.createElement(
|
|
|
2403
2103
|
// src/reports/package/footer-text-for-service.tsx
|
|
2404
2104
|
var FooterTextForService = NamedFC("FooterTextForService", ({ scanMetadata }) => {
|
|
2405
2105
|
const toolData = scanMetadata.toolData;
|
|
2406
|
-
return /* @__PURE__ */
|
|
2106
|
+
return /* @__PURE__ */ React37.createElement(React37.Fragment, null, "This automated checks result was generated using the ", toolData.applicationProperties.name, " ", "that helps find some of the most common accessibility issues. The scan was", " ", "performed in a clean browser environment, using ", toolData.scanEngineProperties.name, " ", toolData.scanEngineProperties.version, " and ", toolData.applicationProperties.environmentName, " ", "with a display resolution of ", toolData.applicationProperties.resolution, ". For a complete", " ", "WCAG 2.1 compliance assessment please visit", " ", /* @__PURE__ */ React37.createElement(ToolLink, null), ".");
|
|
2407
2107
|
});
|
|
2408
2108
|
|
|
2409
2109
|
// src/reports/components/report-sections/automated-checks-title-section.tsx
|
|
2410
|
-
var
|
|
2110
|
+
var React38 = __toESM(require("react"));
|
|
2411
2111
|
var AutomatedChecksTitleSection = NamedFC("AutomatedChecksTitleSection", () => {
|
|
2412
|
-
return /* @__PURE__ */
|
|
2112
|
+
return /* @__PURE__ */ React38.createElement("div", { className: "title-section" }, /* @__PURE__ */ React38.createElement("h1", null, "Automated checks results"));
|
|
2413
2113
|
});
|
|
2414
2114
|
|
|
2415
2115
|
// src/reports/components/report-sections/body-section.tsx
|
|
2416
|
-
var
|
|
2116
|
+
var React39 = __toESM(require("react"));
|
|
2417
2117
|
var BodySection = NamedFC("BodySection", ({ children }) => {
|
|
2418
|
-
return /* @__PURE__ */
|
|
2118
|
+
return /* @__PURE__ */ React39.createElement("body", null, children);
|
|
2419
2119
|
});
|
|
2420
2120
|
|
|
2421
2121
|
// src/reports/components/report-sections/content-container.tsx
|
|
2422
|
-
var
|
|
2122
|
+
var React40 = __toESM(require("react"));
|
|
2423
2123
|
var ContentContainer = NamedFC("ContentSection", ({ children }) => {
|
|
2424
|
-
return /* @__PURE__ */
|
|
2124
|
+
return /* @__PURE__ */ React40.createElement("main", { className: "outer-container" }, /* @__PURE__ */ React40.createElement("div", { className: "content-container" }, children));
|
|
2425
2125
|
});
|
|
2426
2126
|
|
|
2427
2127
|
// src/reports/components/report-sections/details-section.tsx
|
|
2428
|
-
var
|
|
2128
|
+
var React45 = __toESM(require("react"));
|
|
2429
2129
|
|
|
2430
2130
|
// src/reports/components/report-sections/make-details-section-fc.tsx
|
|
2431
|
-
var
|
|
2131
|
+
var import_utilities5 = require("@fluentui/utilities");
|
|
2432
2132
|
|
|
2433
2133
|
// src/common/icons/comment-icon.tsx
|
|
2434
|
-
var
|
|
2134
|
+
var React41 = __toESM(require("react"));
|
|
2435
2135
|
var d = "M16 11.2891V0.289062H-7.62939e-06V11.2891H1.99999V15L5.71093 11.2891H16ZM1 1.28906H15L15 10.2891H5.28906L3 12.5781V10.2891H1V1.28906ZM9.99999 6.28906H8.99999V4.28906H11V6.28906C11 6.42969 10.974 6.55859 10.9219 6.67969C10.8698 6.80078 10.7982 6.90625 10.707 6.99609C10.6159 7.08594 10.5104 7.16016 10.3906 7.21094C10.2708 7.26172 10.1406 7.28906 9.99999 7.28906V6.28906ZM4.99999 6.28906H5.99999V7.28906C6.14062 7.28906 6.27083 7.26172 6.39062 7.21094C6.51041 7.16016 6.61588 7.08594 6.70702 6.99609C6.79817 6.90625 6.86978 6.80078 6.92187 6.67969C6.97395 6.55859 6.99999 6.42969 6.99999 6.28906V4.28906H4.99999V6.28906Z";
|
|
2436
|
-
var CommentIcon = NamedFC("CommentIcon", () => /* @__PURE__ */
|
|
2136
|
+
var CommentIcon = NamedFC("CommentIcon", () => /* @__PURE__ */ React41.createElement(
|
|
2437
2137
|
"svg",
|
|
2438
2138
|
{
|
|
2439
2139
|
width: "17",
|
|
@@ -2444,13 +2144,13 @@ var CommentIcon = NamedFC("CommentIcon", () => /* @__PURE__ */ React50.createEle
|
|
|
2444
2144
|
role: "img",
|
|
2445
2145
|
"aria-hidden": "true"
|
|
2446
2146
|
},
|
|
2447
|
-
/* @__PURE__ */
|
|
2147
|
+
/* @__PURE__ */ React41.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d, fill: "#737373" })
|
|
2448
2148
|
));
|
|
2449
2149
|
|
|
2450
2150
|
// src/common/icons/date-icon.tsx
|
|
2451
|
-
var
|
|
2151
|
+
var React42 = __toESM(require("react"));
|
|
2452
2152
|
var d2 = "M8.82353 16C8.09697 16 7.39677 15.9062 6.72294 15.7188C6.05497 15.5312 5.42802 15.2676 4.84208 14.9277C4.26201 14.582 3.73173 14.1719 3.25126 13.6973C2.77665 13.2168 2.3665 12.6865 2.02079 12.1064C1.68095 11.5205 1.41728 10.8936 1.22978 10.2256C1.04228 9.55176 0.948529 8.85156 0.948529 8.125C0.948529 7.39844 1.04228 6.70117 1.22978 6.0332C1.41728 5.35937 1.68095 4.73242 2.02079 4.15234C2.3665 3.56641 2.77665 3.03613 3.25126 2.56152C3.73173 2.08105 4.26201 1.6709 4.84208 1.33105C5.42802 0.985352 6.05497 0.71875 6.72294 0.53125C7.39677 0.34375 8.09697 0.25 8.82353 0.25C9.55009 0.25 10.2474 0.34375 10.9153 0.53125C11.5892 0.71875 12.2161 0.985352 12.7962 1.33105C13.3821 1.6709 13.9124 2.08105 14.387 2.56152C14.8675 3.03613 15.2776 3.56641 15.6175 4.15234C15.9632 4.73242 16.2298 5.35937 16.4173 6.0332C16.6048 6.70117 16.6985 7.39844 16.6985 8.125C16.6985 8.85156 16.6048 9.55176 16.4173 10.2256C16.2298 10.8936 15.9632 11.5205 15.6175 12.1064C15.2776 12.6865 14.8675 13.2168 14.387 13.6973C13.9124 14.1719 13.3821 14.582 12.7962 14.9277C12.2161 15.2676 11.5892 15.5312 10.9153 15.7188C10.2474 15.9062 9.55009 16 8.82353 16ZM8.82353 1.375C7.89189 1.375 7.01591 1.55371 6.1956 1.91113C5.38115 2.2627 4.6663 2.74609 4.05107 3.36133C3.44169 3.9707 2.95829 4.68555 2.60087 5.50586C2.24931 6.32031 2.07353 7.19336 2.07353 8.125C2.07353 9.05664 2.24931 9.93262 2.60087 10.7529C2.95829 11.5674 3.44169 12.2822 4.05107 12.8975C4.6663 13.5068 5.38115 13.9902 6.1956 14.3477C7.01591 14.6992 7.89189 14.875 8.82353 14.875C9.75517 14.875 10.6282 14.6992 11.4427 14.3477C12.263 13.9902 12.9778 13.5068 13.5872 12.8975C14.2024 12.2822 14.6858 11.5674 15.0374 10.7529C15.3948 9.93262 15.5735 9.05664 15.5735 8.125C15.5735 7.19336 15.3948 6.32031 15.0374 5.50586C14.6858 4.68555 14.2024 3.9707 13.5872 3.36133C12.9778 2.74609 12.263 2.2627 11.4427 1.91113C10.6282 1.55371 9.75517 1.375 8.82353 1.375ZM8.82353 8.125V3.625H7.69853V9.25H12.1985V8.125H8.82353Z";
|
|
2453
|
-
var DateIcon = NamedFC("DateIcon", () => /* @__PURE__ */
|
|
2153
|
+
var DateIcon = NamedFC("DateIcon", () => /* @__PURE__ */ React42.createElement(
|
|
2454
2154
|
"svg",
|
|
2455
2155
|
{
|
|
2456
2156
|
width: "17",
|
|
@@ -2461,13 +2161,13 @@ var DateIcon = NamedFC("DateIcon", () => /* @__PURE__ */ React51.createElement(
|
|
|
2461
2161
|
role: "img",
|
|
2462
2162
|
"aria-hidden": "true"
|
|
2463
2163
|
},
|
|
2464
|
-
/* @__PURE__ */
|
|
2164
|
+
/* @__PURE__ */ React42.createElement("path", { d: d2, fill: "#737373" })
|
|
2465
2165
|
));
|
|
2466
2166
|
|
|
2467
2167
|
// src/common/icons/url-icon.tsx
|
|
2468
|
-
var
|
|
2168
|
+
var React43 = __toESM(require("react"));
|
|
2469
2169
|
var d3 = "M8.82353 0C9.5579 0 10.2662 0.0963542 10.9485 0.289062C11.6308 0.476562 12.2688 0.744792 12.8626 1.09375C13.4563 1.4375 13.9954 1.85417 14.4798 2.34375C14.9694 2.82812 15.386 3.36719 15.7298 3.96094C16.0787 4.55469 16.347 5.19271 16.5345 5.875C16.7272 6.55729 16.8235 7.26562 16.8235 8C16.8235 8.73438 16.7272 9.44271 16.5345 10.125C16.347 10.8073 16.0787 11.4453 15.7298 12.0391C15.386 12.6328 14.9694 13.1745 14.4798 13.6641C13.9954 14.1484 13.4563 14.5651 12.8626 14.9141C12.2688 15.2578 11.6308 15.526 10.9485 15.7188C10.2662 15.9062 9.5579 16 8.82353 16C8.08915 16 7.38082 15.9062 6.69853 15.7188C6.01624 15.526 5.37822 15.2578 4.78447 14.9141C4.19072 14.5651 3.64905 14.1484 3.15947 13.6641C2.67509 13.1745 2.25843 12.6328 1.90947 12.0391C1.56572 11.4453 1.29749 10.8099 1.10478 10.1328C0.917279 9.45052 0.823529 8.73958 0.823529 8C0.823529 7.26562 0.917279 6.55729 1.10478 5.875C1.29749 5.19271 1.56572 4.55469 1.90947 3.96094C2.25843 3.36719 2.67509 2.82812 3.15947 2.34375C3.64905 1.85417 4.19072 1.4375 4.78447 1.09375C5.37822 0.744792 6.01363 0.476562 6.69072 0.289062C7.37301 0.0963542 8.08395 0 8.82353 0ZM15.1438 5C14.9459 4.57812 14.7063 4.18229 14.4251 3.8125C14.1438 3.4375 13.8313 3.09635 13.4876 2.78906C13.1438 2.48177 12.7714 2.20833 12.3704 1.96875C11.9694 1.72917 11.5501 1.53385 11.1126 1.38281C11.3001 1.64323 11.4694 1.91927 11.6204 2.21094C11.7714 2.5026 11.9043 2.80469 12.0188 3.11719C12.1386 3.42448 12.2402 3.73698 12.3235 4.05469C12.4069 4.3724 12.4798 4.6875 12.5423 5H15.1438ZM15.8235 8C15.8235 7.30729 15.7272 6.64062 15.5345 6H12.6985C12.7402 6.33333 12.7714 6.66667 12.7923 7C12.8131 7.32812 12.8235 7.66146 12.8235 8C12.8235 8.33854 12.8131 8.67448 12.7923 9.00781C12.7714 9.33594 12.7402 9.66667 12.6985 10H15.5345C15.7272 9.35938 15.8235 8.69271 15.8235 8ZM8.82353 15C9.07874 15 9.31572 14.9297 9.53447 14.7891C9.75843 14.6484 9.96415 14.4635 10.1517 14.2344C10.3392 14.0052 10.5058 13.7474 10.6517 13.4609C10.8027 13.1693 10.9355 12.875 11.0501 12.5781C11.1647 12.2812 11.261 11.9948 11.3392 11.7188C11.4173 11.4427 11.4772 11.2031 11.5188 11H6.12822C6.16988 11.2031 6.22978 11.4427 6.3079 11.7188C6.38603 11.9948 6.48238 12.2812 6.59697 12.5781C6.71155 12.875 6.84176 13.1693 6.98759 13.4609C7.13863 13.7474 7.3079 14.0052 7.4954 14.2344C7.6829 14.4635 7.88603 14.6484 8.10478 14.7891C8.32874 14.9297 8.56832 15 8.82353 15ZM11.6907 10C11.7324 9.66667 11.7636 9.33594 11.7845 9.00781C11.8105 8.67448 11.8235 8.33854 11.8235 8C11.8235 7.66146 11.8105 7.32812 11.7845 7C11.7636 6.66667 11.7324 6.33333 11.6907 6H5.95634C5.91468 6.33333 5.88082 6.66667 5.85478 7C5.83395 7.32812 5.82353 7.66146 5.82353 8C5.82353 8.33854 5.83395 8.67448 5.85478 9.00781C5.88082 9.33594 5.91468 9.66667 5.95634 10H11.6907ZM1.82353 8C1.82353 8.69271 1.91988 9.35938 2.11259 10H4.94853C4.90686 9.66667 4.87561 9.33594 4.85478 9.00781C4.83395 8.67448 4.82353 8.33854 4.82353 8C4.82353 7.66146 4.83395 7.32812 4.85478 7C4.87561 6.66667 4.90686 6.33333 4.94853 6H2.11259C1.91988 6.64062 1.82353 7.30729 1.82353 8ZM8.82353 1C8.56832 1 8.32874 1.07031 8.10478 1.21094C7.88603 1.35156 7.6829 1.53646 7.4954 1.76562C7.3079 1.99479 7.13863 2.25521 6.98759 2.54688C6.84176 2.83333 6.71155 3.125 6.59697 3.42188C6.48238 3.71875 6.38603 4.00521 6.3079 4.28125C6.22978 4.55729 6.16988 4.79688 6.12822 5H11.5188C11.4772 4.79688 11.4173 4.55729 11.3392 4.28125C11.261 4.00521 11.1647 3.71875 11.0501 3.42188C10.9355 3.125 10.8027 2.83333 10.6517 2.54688C10.5058 2.25521 10.3392 1.99479 10.1517 1.76562C9.96415 1.53646 9.75843 1.35156 9.53447 1.21094C9.31572 1.07031 9.07874 1 8.82353 1ZM6.53447 1.38281C6.09697 1.53385 5.6777 1.72917 5.27665 1.96875C4.87561 2.20833 4.50322 2.48177 4.15947 2.78906C3.81572 3.09635 3.50322 3.4375 3.22197 3.8125C2.94072 4.18229 2.70113 4.57812 2.50322 5H5.10478C5.16728 4.6875 5.2402 4.3724 5.32353 4.05469C5.40686 3.73698 5.50582 3.42448 5.6204 3.11719C5.7402 2.80469 5.87561 2.5026 6.02665 2.21094C6.1777 1.91927 6.34697 1.64323 6.53447 1.38281ZM2.50322 11C2.70113 11.4219 2.94072 11.8203 3.22197 12.1953C3.50322 12.5651 3.81572 12.9036 4.15947 13.2109C4.50322 13.5182 4.87561 13.7917 5.27665 14.0312C5.6777 14.2708 6.09697 14.4661 6.53447 14.6172C6.34697 14.3568 6.1777 14.0807 6.02665 13.7891C5.87561 13.4974 5.7402 13.1979 5.6204 12.8906C5.50582 12.5781 5.40686 12.263 5.32353 11.9453C5.2402 11.6276 5.16728 11.3125 5.10478 11H2.50322ZM11.1126 14.6172C11.5501 14.4661 11.9694 14.2708 12.3704 14.0312C12.7714 13.7917 13.1438 13.5182 13.4876 13.2109C13.8313 12.9036 14.1438 12.5651 14.4251 12.1953C14.7063 11.8203 14.9459 11.4219 15.1438 11H12.5423C12.4798 11.3125 12.4069 11.6276 12.3235 11.9453C12.2402 12.263 12.1386 12.5781 12.0188 12.8906C11.9043 13.1979 11.7714 13.4974 11.6204 13.7891C11.4694 14.0807 11.3001 14.3568 11.1126 14.6172Z";
|
|
2470
|
-
var UrlIcon = NamedFC("UrlIcon", () => /* @__PURE__ */
|
|
2170
|
+
var UrlIcon = NamedFC("UrlIcon", () => /* @__PURE__ */ React43.createElement(
|
|
2471
2171
|
"svg",
|
|
2472
2172
|
{
|
|
2473
2173
|
width: "17",
|
|
@@ -2478,25 +2178,25 @@ var UrlIcon = NamedFC("UrlIcon", () => /* @__PURE__ */ React52.createElement(
|
|
|
2478
2178
|
role: "img",
|
|
2479
2179
|
"aria-hidden": "true"
|
|
2480
2180
|
},
|
|
2481
|
-
/* @__PURE__ */
|
|
2181
|
+
/* @__PURE__ */ React43.createElement("path", { d: d3, fill: "#737373" })
|
|
2482
2182
|
));
|
|
2483
2183
|
|
|
2484
2184
|
// src/reports/components/report-sections/make-details-section-fc.tsx
|
|
2485
|
-
var
|
|
2486
|
-
var
|
|
2185
|
+
var import_lodash8 = require("lodash");
|
|
2186
|
+
var React44 = __toESM(require("react"));
|
|
2487
2187
|
function makeDetailsSectionFC(getDisplayedScanTargetInfo) {
|
|
2488
2188
|
return NamedFC("DetailsSection", (props) => {
|
|
2489
2189
|
const { scanMetadata, description, toUtcString } = props;
|
|
2490
|
-
const createListItem = (icon, label, content, contentClassName) => /* @__PURE__ */
|
|
2190
|
+
const createListItem = (icon, label, content, contentClassName) => /* @__PURE__ */ React44.createElement("li", null, /* @__PURE__ */ React44.createElement("span", { className: "icon" }, icon), /* @__PURE__ */ React44.createElement("span", { className: "screen-reader-only" }, label), /* @__PURE__ */ React44.createElement("span", { className: (0, import_utilities5.css)("text", contentClassName) }, content));
|
|
2491
2191
|
const scanDateUTC = toUtcString(scanMetadata.timespan.scanComplete);
|
|
2492
|
-
const showCommentRow = !(0,
|
|
2192
|
+
const showCommentRow = !(0, import_lodash8.isEmpty)(description);
|
|
2493
2193
|
const displayedScanTargetInfo = getDisplayedScanTargetInfo(scanMetadata);
|
|
2494
|
-
return /* @__PURE__ */
|
|
2495
|
-
/* @__PURE__ */
|
|
2194
|
+
return /* @__PURE__ */ React44.createElement("div", { className: "scan-details-section" }, /* @__PURE__ */ React44.createElement("h2", null, "Scan details"), /* @__PURE__ */ React44.createElement("ul", { className: "details-section-list" }, createListItem(
|
|
2195
|
+
/* @__PURE__ */ React44.createElement(UrlIcon, null),
|
|
2496
2196
|
displayedScanTargetInfo.label,
|
|
2497
2197
|
displayedScanTargetInfo.content
|
|
2498
|
-
), createListItem(/* @__PURE__ */
|
|
2499
|
-
/* @__PURE__ */
|
|
2198
|
+
), createListItem(/* @__PURE__ */ React44.createElement(DateIcon, null), "scan date:", scanDateUTC), showCommentRow && createListItem(
|
|
2199
|
+
/* @__PURE__ */ React44.createElement(CommentIcon, null),
|
|
2500
2200
|
"comment:",
|
|
2501
2201
|
description,
|
|
2502
2202
|
"description-text"
|
|
@@ -2508,7 +2208,7 @@ function makeDetailsSectionFC(getDisplayedScanTargetInfo) {
|
|
|
2508
2208
|
function getUrlItemInfo(scanMetadata) {
|
|
2509
2209
|
return {
|
|
2510
2210
|
label: "target page url:",
|
|
2511
|
-
content: /* @__PURE__ */
|
|
2211
|
+
content: /* @__PURE__ */ React45.createElement(
|
|
2512
2212
|
NewTabLinkWithConfirmationDialog,
|
|
2513
2213
|
{
|
|
2514
2214
|
href: scanMetadata.targetAppInfo.url,
|
|
@@ -2521,31 +2221,31 @@ function getUrlItemInfo(scanMetadata) {
|
|
|
2521
2221
|
var DetailsSection = makeDetailsSectionFC(getUrlItemInfo);
|
|
2522
2222
|
|
|
2523
2223
|
// src/reports/components/report-sections/not-applicable-checks-section.tsx
|
|
2524
|
-
var
|
|
2224
|
+
var React49 = __toESM(require("react"));
|
|
2525
2225
|
|
|
2526
2226
|
// src/reports/components/report-sections/collapsible-result-section.tsx
|
|
2527
|
-
var
|
|
2227
|
+
var React48 = __toESM(require("react"));
|
|
2528
2228
|
|
|
2529
2229
|
// src/reports/components/report-sections/rules-only.tsx
|
|
2530
|
-
var
|
|
2230
|
+
var React47 = __toESM(require("react"));
|
|
2531
2231
|
|
|
2532
2232
|
// src/reports/components/report-sections/full-rule-header.tsx
|
|
2533
|
-
var
|
|
2534
|
-
var
|
|
2233
|
+
var import_lodash9 = require("lodash");
|
|
2234
|
+
var React46 = __toESM(require("react"));
|
|
2535
2235
|
var FullRuleHeader = NamedFC("FullRuleHeader", (props) => {
|
|
2536
2236
|
const { outcomeType, deps, cardRuleResult: cardResult } = props;
|
|
2537
2237
|
const outcomeText = outcomeTypeSemantics[props.outcomeType].pastTense;
|
|
2538
|
-
const ariaDescribedBy = `${(0,
|
|
2238
|
+
const ariaDescribedBy = `${(0, import_lodash9.kebabCase)(outcomeText)}-rule-${cardResult.id}-description`;
|
|
2539
2239
|
const renderCountBadge = () => {
|
|
2540
2240
|
if (outcomeType !== "fail") {
|
|
2541
2241
|
return null;
|
|
2542
2242
|
}
|
|
2543
|
-
return /* @__PURE__ */
|
|
2243
|
+
return /* @__PURE__ */ React46.createElement("span", { "aria-hidden": "true" }, /* @__PURE__ */ React46.createElement(OutcomeChip, { count: cardResult.nodes.length, outcomeType }));
|
|
2544
2244
|
};
|
|
2545
2245
|
const renderRuleLink = () => {
|
|
2546
2246
|
const ruleId = cardResult.id;
|
|
2547
2247
|
const ruleUrl = cardResult.url;
|
|
2548
|
-
const displayedRule = ruleUrl ? /* @__PURE__ */
|
|
2248
|
+
const displayedRule = ruleUrl ? /* @__PURE__ */ React46.createElement(
|
|
2549
2249
|
NewTabLink,
|
|
2550
2250
|
{
|
|
2551
2251
|
href: ruleUrl,
|
|
@@ -2553,31 +2253,31 @@ var FullRuleHeader = NamedFC("FullRuleHeader", (props) => {
|
|
|
2553
2253
|
"aria-describedby": ariaDescribedBy
|
|
2554
2254
|
},
|
|
2555
2255
|
ruleId
|
|
2556
|
-
) : /* @__PURE__ */
|
|
2557
|
-
return /* @__PURE__ */
|
|
2256
|
+
) : /* @__PURE__ */ React46.createElement(React46.Fragment, null, ruleId);
|
|
2257
|
+
return /* @__PURE__ */ React46.createElement("span", { className: "rule-details-id" }, displayedRule);
|
|
2558
2258
|
};
|
|
2559
2259
|
const renderGuidanceLinks = () => {
|
|
2560
2260
|
var _a;
|
|
2561
|
-
const links = ((_a = cardResult.guidance) == null ? void 0 : _a.filter((guidanceLink) => !(0,
|
|
2562
|
-
if ((0,
|
|
2261
|
+
const links = ((_a = cardResult.guidance) == null ? void 0 : _a.filter((guidanceLink) => !(0, import_lodash9.isEmpty)(guidanceLink.href))) || [];
|
|
2262
|
+
if ((0, import_lodash9.isEmpty)(links)) {
|
|
2563
2263
|
return null;
|
|
2564
2264
|
}
|
|
2565
|
-
return /* @__PURE__ */
|
|
2265
|
+
return /* @__PURE__ */ React46.createElement(React46.Fragment, null, "(", /* @__PURE__ */ React46.createElement(GuidanceLinks, { links, LinkComponent: deps.LinkComponent }), ")");
|
|
2566
2266
|
};
|
|
2567
2267
|
const renderDescription = () => {
|
|
2568
|
-
return /* @__PURE__ */
|
|
2268
|
+
return /* @__PURE__ */ React46.createElement("span", { className: "rule-details-description", id: ariaDescribedBy }, cardResult.description);
|
|
2569
2269
|
};
|
|
2570
2270
|
const renderGuidanceTags = () => {
|
|
2571
|
-
return /* @__PURE__ */
|
|
2271
|
+
return /* @__PURE__ */ React46.createElement(GuidanceTags, { deps, links: cardResult.guidance });
|
|
2572
2272
|
};
|
|
2573
|
-
return /* @__PURE__ */
|
|
2273
|
+
return /* @__PURE__ */ React46.createElement(React46.Fragment, null, /* @__PURE__ */ React46.createElement("div", { className: "rule-detail" }, /* @__PURE__ */ React46.createElement("div", null, renderCountBadge(), " ", renderRuleLink(), ": ", renderDescription(), renderGuidanceLinks(), renderGuidanceTags())));
|
|
2574
2274
|
});
|
|
2575
2275
|
|
|
2576
2276
|
// src/reports/components/report-sections/rules-only.tsx
|
|
2577
2277
|
var RulesOnly = NamedFC(
|
|
2578
2278
|
"RulesOnly",
|
|
2579
2279
|
({ outcomeType, deps, cardRuleResults: cardResults }) => {
|
|
2580
|
-
return /* @__PURE__ */
|
|
2280
|
+
return /* @__PURE__ */ React47.createElement("div", { className: rules_with_instances_default.ruleDetailsGroup }, cardResults.map((cardRuleResult) => /* @__PURE__ */ React47.createElement(
|
|
2581
2281
|
FullRuleHeader,
|
|
2582
2282
|
{
|
|
2583
2283
|
deps,
|
|
@@ -2596,16 +2296,15 @@ var CollapsibleResultSection = NamedFC(
|
|
|
2596
2296
|
const { containerClassName, containerId, deps, cardSelectionMessageCreator, testKey } = props;
|
|
2597
2297
|
const CollapsibleContent = deps.collapsibleControl({
|
|
2598
2298
|
id: containerId,
|
|
2599
|
-
header: /* @__PURE__ */
|
|
2600
|
-
content: /* @__PURE__ */
|
|
2299
|
+
header: /* @__PURE__ */ React48.createElement(ResultSectionTitle, { ...props, titleSize: "title" }),
|
|
2300
|
+
content: /* @__PURE__ */ React48.createElement(RulesOnly, { ...props }),
|
|
2601
2301
|
headingLevel: props.headingLevel,
|
|
2602
|
-
deps: null,
|
|
2603
2302
|
testKey,
|
|
2604
2303
|
onExpandToggle: (event) => {
|
|
2605
2304
|
cardSelectionMessageCreator == null ? void 0 : cardSelectionMessageCreator.toggleRuleExpandCollapse(containerId, event);
|
|
2606
2305
|
}
|
|
2607
2306
|
});
|
|
2608
|
-
return /* @__PURE__ */
|
|
2307
|
+
return /* @__PURE__ */ React48.createElement("div", { className: containerClassName }, CollapsibleContent);
|
|
2609
2308
|
}
|
|
2610
2309
|
);
|
|
2611
2310
|
|
|
@@ -2614,7 +2313,7 @@ var NotApplicableChecksSection = NamedFC(
|
|
|
2614
2313
|
"NotApplicableChecksSection",
|
|
2615
2314
|
({ deps, cardsViewData, cardSelectionMessageCreator, sectionHeadingLevel }) => {
|
|
2616
2315
|
const cardRuleResults = cardsViewData.cards.inapplicable;
|
|
2617
|
-
return /* @__PURE__ */
|
|
2316
|
+
return /* @__PURE__ */ React49.createElement(
|
|
2618
2317
|
CollapsibleResultSection,
|
|
2619
2318
|
{
|
|
2620
2319
|
deps,
|
|
@@ -2632,13 +2331,13 @@ var NotApplicableChecksSection = NamedFC(
|
|
|
2632
2331
|
);
|
|
2633
2332
|
|
|
2634
2333
|
// src/reports/components/report-sections/passed-checks-section.tsx
|
|
2635
|
-
var
|
|
2334
|
+
var React50 = __toESM(require("react"));
|
|
2636
2335
|
var PassedChecksSection = NamedFC(
|
|
2637
2336
|
"PassedChecksSection",
|
|
2638
2337
|
({ deps, cardsViewData, cardSelectionMessageCreator, testKey, sectionHeadingLevel }) => {
|
|
2639
2338
|
var _a;
|
|
2640
2339
|
const cardRuleResults = ((_a = cardsViewData == null ? void 0 : cardsViewData.cards) == null ? void 0 : _a.pass) ?? [];
|
|
2641
|
-
return /* @__PURE__ */
|
|
2340
|
+
return /* @__PURE__ */ React50.createElement(
|
|
2642
2341
|
CollapsibleResultSection,
|
|
2643
2342
|
{
|
|
2644
2343
|
deps,
|
|
@@ -2657,33 +2356,33 @@ var PassedChecksSection = NamedFC(
|
|
|
2657
2356
|
);
|
|
2658
2357
|
|
|
2659
2358
|
// src/reports/components/report-sections/report-footer.tsx
|
|
2660
|
-
var
|
|
2359
|
+
var React51 = __toESM(require("react"));
|
|
2661
2360
|
var ReportFooter = NamedFC("ReportFooter", ({ children }) => {
|
|
2662
|
-
return /* @__PURE__ */
|
|
2361
|
+
return /* @__PURE__ */ React51.createElement("div", { className: "report-footer-container" }, /* @__PURE__ */ React51.createElement("div", { className: "report-footer", role: "contentinfo" }, children));
|
|
2663
2362
|
});
|
|
2664
2363
|
|
|
2665
2364
|
// src/reports/components/report-sections/results-container.tsx
|
|
2666
|
-
var
|
|
2365
|
+
var React52 = __toESM(require("react"));
|
|
2667
2366
|
var ResultsContainer = NamedFC(
|
|
2668
2367
|
"ResultsContainer",
|
|
2669
2368
|
({ children, getCollapsibleScript }) => {
|
|
2670
|
-
return /* @__PURE__ */
|
|
2369
|
+
return /* @__PURE__ */ React52.createElement(React52.Fragment, null, /* @__PURE__ */ React52.createElement("div", { className: "results-container" }, children), /* @__PURE__ */ React52.createElement("script", { dangerouslySetInnerHTML: { __html: getCollapsibleScript() } }));
|
|
2671
2370
|
}
|
|
2672
2371
|
);
|
|
2673
2372
|
|
|
2674
2373
|
// src/reports/components/report-sections/summary-section.tsx
|
|
2675
|
-
var
|
|
2374
|
+
var React54 = __toESM(require("react"));
|
|
2676
2375
|
|
|
2677
2376
|
// src/reports/components/outcome-summary-bar.tsx
|
|
2678
2377
|
var import_classnames2 = __toESM(require("classnames"));
|
|
2679
|
-
var
|
|
2680
|
-
var
|
|
2378
|
+
var import_lodash10 = require("lodash");
|
|
2379
|
+
var React53 = __toESM(require("react"));
|
|
2681
2380
|
var outcomeSummaryBarAutomationId = "outcome-summary-bar";
|
|
2682
2381
|
var OutcomeSummaryBar = NamedFC("OutcomeSummaryBar", (props) => {
|
|
2683
2382
|
const outcomeTypesCount = props.allOutcomeTypes.length;
|
|
2684
2383
|
const getClassNames = (outcomeType, index) => {
|
|
2685
2384
|
return (0, import_classnames2.default)({
|
|
2686
|
-
[(0,
|
|
2385
|
+
[(0, import_lodash10.kebabCase)(outcomeType)]: true,
|
|
2687
2386
|
"summary-bar-left-edge": index === 0,
|
|
2688
2387
|
"summary-bar-right-edge": index === outcomeTypesCount - 1
|
|
2689
2388
|
});
|
|
@@ -2702,9 +2401,9 @@ var OutcomeSummaryBar = NamedFC("OutcomeSummaryBar", (props) => {
|
|
|
2702
2401
|
return null;
|
|
2703
2402
|
}
|
|
2704
2403
|
const outcomePastTense = outcomeTypeSemantics[outcomeType].pastTense;
|
|
2705
|
-
return /* @__PURE__ */
|
|
2404
|
+
return /* @__PURE__ */ React53.createElement("span", { className: "label" }, ` ${outcomePastTense}`);
|
|
2706
2405
|
};
|
|
2707
|
-
return /* @__PURE__ */
|
|
2406
|
+
return /* @__PURE__ */ React53.createElement(
|
|
2708
2407
|
"div",
|
|
2709
2408
|
{
|
|
2710
2409
|
className: "outcome-summary-bar",
|
|
@@ -2717,7 +2416,7 @@ var OutcomeSummaryBar = NamedFC("OutcomeSummaryBar", (props) => {
|
|
|
2717
2416
|
const iconMap = iconStyleInverted === true ? outcomeIconMapInverted : outcomeIconMap;
|
|
2718
2417
|
const outcomeIcon = iconMap[outcomeType];
|
|
2719
2418
|
const count = props.outcomeStats[outcomeType];
|
|
2720
|
-
return /* @__PURE__ */
|
|
2419
|
+
return /* @__PURE__ */ React53.createElement("div", { key: outcomeType, style: { flexGrow: count } }, /* @__PURE__ */ React53.createElement("span", { className: getClassNames(outcomeType, index) }, outcomeIcon, count, countSuffix, getTextLabel(outcomeType)));
|
|
2721
2420
|
})
|
|
2722
2421
|
);
|
|
2723
2422
|
});
|
|
@@ -2736,7 +2435,7 @@ var BaseSummarySection = NamedFC("BaseSummarySection", (props) => {
|
|
|
2736
2435
|
review: 0
|
|
2737
2436
|
// never used
|
|
2738
2437
|
};
|
|
2739
|
-
return /* @__PURE__ */
|
|
2438
|
+
return /* @__PURE__ */ React54.createElement("div", { className: "summary-section" }, /* @__PURE__ */ React54.createElement("h2", null, "Summary"), /* @__PURE__ */ React54.createElement(
|
|
2740
2439
|
OutcomeSummaryBar,
|
|
2741
2440
|
{
|
|
2742
2441
|
outcomeStats: countSummary,
|
|
@@ -2748,13 +2447,13 @@ var BaseSummarySection = NamedFC("BaseSummarySection", (props) => {
|
|
|
2748
2447
|
var AllOutcomesSummarySection = NamedFC(
|
|
2749
2448
|
"AllOutcomesSummarySection",
|
|
2750
2449
|
(props) => {
|
|
2751
|
-
return /* @__PURE__ */
|
|
2450
|
+
return /* @__PURE__ */ React54.createElement(BaseSummarySection, { ...props, outcomeTypesShown: ["fail", "pass", "inapplicable"] });
|
|
2752
2451
|
}
|
|
2753
2452
|
);
|
|
2754
2453
|
var PassFailSummarySection = NamedFC(
|
|
2755
2454
|
"PassFailSummarySection",
|
|
2756
2455
|
(props) => {
|
|
2757
|
-
return /* @__PURE__ */
|
|
2456
|
+
return /* @__PURE__ */ React54.createElement(BaseSummarySection, { ...props, outcomeTypesShown: ["fail", "pass"] });
|
|
2758
2457
|
}
|
|
2759
2458
|
);
|
|
2760
2459
|
|
|
@@ -2807,7 +2506,7 @@ var getAddListenerForCollapsibleSection = (code) => `(${String(code)})(document)
|
|
|
2807
2506
|
var getDefaultAddListenerForCollapsibleSection = () => getAddListenerForCollapsibleSection(addEventListenerForCollapsibleSection);
|
|
2808
2507
|
|
|
2809
2508
|
// src/common/components/cards/combined-report-result-section-title.tsx
|
|
2810
|
-
var
|
|
2509
|
+
var React55 = __toESM(require("react"));
|
|
2811
2510
|
|
|
2812
2511
|
// src/common/components/cards/combined-report-result-section-title.scss
|
|
2813
2512
|
var combined_report_result_section_title_default = { "combinedReportResultSectionTitle": "combined-report-result-section-title--TqIZO", "title": "title--6WIyt", "heading": "heading--UpAHf" };
|
|
@@ -2819,14 +2518,14 @@ var CombinedReportResultSectionTitle = NamedFC(
|
|
|
2819
2518
|
const singularMessageSubject = props.outcomeType === "review" ? "instance to review" : "failure";
|
|
2820
2519
|
const pluralMessageSubject = props.outcomeType === "review" ? "instances to review" : "failures";
|
|
2821
2520
|
const alertTerm = props.outcomeCount !== 1 ? `${pluralMessageSubject} were` : `${singularMessageSubject} was`;
|
|
2822
|
-
const alertingFailuresCount = /* @__PURE__ */
|
|
2823
|
-
const titleWithInstance = /* @__PURE__ */
|
|
2824
|
-
return /* @__PURE__ */
|
|
2521
|
+
const alertingFailuresCount = /* @__PURE__ */ React55.createElement("span", { role: "alert" }, props.outcomeCount, " ", alertTerm, " detected.");
|
|
2522
|
+
const titleWithInstance = /* @__PURE__ */ React55.createElement("span", { className: combined_report_result_section_title_default.heading, "aria-hidden": "true" }, props.title, " (", props.outcomeCount, ")");
|
|
2523
|
+
return /* @__PURE__ */ React55.createElement("span", { className: combined_report_result_section_title_default.combinedReportResultSectionTitle }, /* @__PURE__ */ React55.createElement("span", { className: "screen-reader-only" }, props.title, " ", props.shouldAlertFailuresCount ? alertingFailuresCount : props.outcomeCount), titleWithInstance);
|
|
2825
2524
|
}
|
|
2826
2525
|
);
|
|
2827
2526
|
|
|
2828
2527
|
// src/reports/components/report-sections/combined-report-failed-section.tsx
|
|
2829
|
-
var
|
|
2528
|
+
var React56 = __toESM(require("react"));
|
|
2830
2529
|
var CombinedReportFailedSection = NamedFC(
|
|
2831
2530
|
"CombinedReportFailedSection",
|
|
2832
2531
|
(props) => {
|
|
@@ -2835,7 +2534,7 @@ var CombinedReportFailedSection = NamedFC(
|
|
|
2835
2534
|
const sectionId = "combined-report-failed-section";
|
|
2836
2535
|
const CollapsibleContent = deps.collapsibleControl({
|
|
2837
2536
|
id: sectionId,
|
|
2838
|
-
header: /* @__PURE__ */
|
|
2537
|
+
header: /* @__PURE__ */ React56.createElement(
|
|
2839
2538
|
CombinedReportResultSectionTitle,
|
|
2840
2539
|
{
|
|
2841
2540
|
outcomeCount: ruleCount,
|
|
@@ -2843,7 +2542,7 @@ var CombinedReportFailedSection = NamedFC(
|
|
|
2843
2542
|
title: "Failed rules"
|
|
2844
2543
|
}
|
|
2845
2544
|
),
|
|
2846
|
-
content: /* @__PURE__ */
|
|
2545
|
+
content: /* @__PURE__ */ React56.createElement(
|
|
2847
2546
|
ResultSectionContent,
|
|
2848
2547
|
{
|
|
2849
2548
|
deps,
|
|
@@ -2862,12 +2561,12 @@ var CombinedReportFailedSection = NamedFC(
|
|
|
2862
2561
|
headingLevel: 3,
|
|
2863
2562
|
deps: {}
|
|
2864
2563
|
});
|
|
2865
|
-
return /* @__PURE__ */
|
|
2564
|
+
return /* @__PURE__ */ React56.createElement("div", { className: "result-section" }, CollapsibleContent);
|
|
2866
2565
|
}
|
|
2867
2566
|
);
|
|
2868
2567
|
|
|
2869
2568
|
// src/reports/components/report-sections/combined-report-rules-only-sections.tsx
|
|
2870
|
-
var
|
|
2569
|
+
var React57 = __toESM(require("react"));
|
|
2871
2570
|
var makeCombinedReportRulesOnlySection = (options) => NamedFC(
|
|
2872
2571
|
"CombinedReportRulesOnlySection",
|
|
2873
2572
|
({ deps, cardsViewData, cardSelectionMessageCreator }) => {
|
|
@@ -2876,7 +2575,7 @@ var makeCombinedReportRulesOnlySection = (options) => NamedFC(
|
|
|
2876
2575
|
const sectionId = `${outcomeType}-checks-section`;
|
|
2877
2576
|
const CollapsibleContent = deps.collapsibleControl({
|
|
2878
2577
|
id: sectionId,
|
|
2879
|
-
header: /* @__PURE__ */
|
|
2578
|
+
header: /* @__PURE__ */ React57.createElement(
|
|
2880
2579
|
CombinedReportResultSectionTitle,
|
|
2881
2580
|
{
|
|
2882
2581
|
outcomeCount: cardRuleResults.length,
|
|
@@ -2884,7 +2583,7 @@ var makeCombinedReportRulesOnlySection = (options) => NamedFC(
|
|
|
2884
2583
|
title: title2
|
|
2885
2584
|
}
|
|
2886
2585
|
),
|
|
2887
|
-
content: /* @__PURE__ */
|
|
2586
|
+
content: /* @__PURE__ */ React57.createElement(
|
|
2888
2587
|
RulesOnly,
|
|
2889
2588
|
{
|
|
2890
2589
|
deps,
|
|
@@ -2898,7 +2597,7 @@ var makeCombinedReportRulesOnlySection = (options) => NamedFC(
|
|
|
2898
2597
|
headingLevel: 3,
|
|
2899
2598
|
deps: null
|
|
2900
2599
|
});
|
|
2901
|
-
return /* @__PURE__ */
|
|
2600
|
+
return /* @__PURE__ */ React57.createElement("div", { className: "result-section" }, CollapsibleContent);
|
|
2902
2601
|
}
|
|
2903
2602
|
);
|
|
2904
2603
|
var CombinedReportPassedSection = makeCombinedReportRulesOnlySection({
|
|
@@ -2911,10 +2610,10 @@ var CombinedReportNotApplicableSection = makeCombinedReportRulesOnlySection({
|
|
|
2911
2610
|
});
|
|
2912
2611
|
|
|
2913
2612
|
// src/reports/components/report-sections/combined-report-summary-section.tsx
|
|
2914
|
-
var
|
|
2613
|
+
var React59 = __toESM(require("react"));
|
|
2915
2614
|
|
|
2916
2615
|
// src/reports/components/report-sections/urls-summary-section.tsx
|
|
2917
|
-
var
|
|
2616
|
+
var React58 = __toESM(require("react"));
|
|
2918
2617
|
|
|
2919
2618
|
// src/reports/components/url-outcome-type.ts
|
|
2920
2619
|
var allUrlOutcomeTypes = ["fail", "unscannable", "pass"];
|
|
@@ -2932,7 +2631,7 @@ var UrlsSummarySection = NamedFC("UrlsSummarySection", (props) => {
|
|
|
2932
2631
|
} = props;
|
|
2933
2632
|
const getTotalUrls = () => {
|
|
2934
2633
|
const totalUrls = urlsPassedCount + urlsFailedCount + urlsNotScannedCount;
|
|
2935
|
-
return /* @__PURE__ */
|
|
2634
|
+
return /* @__PURE__ */ React58.createElement(React58.Fragment, null, /* @__PURE__ */ React58.createElement("h2", null, "URLs"), /* @__PURE__ */ React58.createElement("span", { className: urls_summary_section_default.totalUrls }, totalUrls), " total URLs scanned");
|
|
2936
2635
|
};
|
|
2937
2636
|
const getSummaryBar = () => {
|
|
2938
2637
|
const countSummary = {
|
|
@@ -2940,7 +2639,7 @@ var UrlsSummarySection = NamedFC("UrlsSummarySection", (props) => {
|
|
|
2940
2639
|
unscannable: urlsNotScannedCount,
|
|
2941
2640
|
pass: urlsPassedCount
|
|
2942
2641
|
};
|
|
2943
|
-
return /* @__PURE__ */
|
|
2642
|
+
return /* @__PURE__ */ React58.createElement(
|
|
2944
2643
|
OutcomeSummaryBar,
|
|
2945
2644
|
{
|
|
2946
2645
|
outcomeStats: countSummary,
|
|
@@ -2951,9 +2650,9 @@ var UrlsSummarySection = NamedFC("UrlsSummarySection", (props) => {
|
|
|
2951
2650
|
);
|
|
2952
2651
|
};
|
|
2953
2652
|
const getFailedInstances = () => {
|
|
2954
|
-
return /* @__PURE__ */
|
|
2653
|
+
return /* @__PURE__ */ React58.createElement("div", { className: urls_summary_section_default.failureInstances }, /* @__PURE__ */ React58.createElement("h2", null, "Failure Instances"), /* @__PURE__ */ React58.createElement("span", { className: urls_summary_section_default.failureOutcomeChip }, /* @__PURE__ */ React58.createElement(OutcomeChip, { count: failureInstancesCount, outcomeType: "fail" }), /* @__PURE__ */ React58.createElement("span", null, "Failure instances were detected")));
|
|
2955
2654
|
};
|
|
2956
|
-
return /* @__PURE__ */
|
|
2655
|
+
return /* @__PURE__ */ React58.createElement("div", { className: urls_summary_section_default.urlsSummarySection }, getTotalUrls(), getSummaryBar(), getFailedInstances());
|
|
2957
2656
|
});
|
|
2958
2657
|
|
|
2959
2658
|
// src/reports/components/report-sections/combined-report-summary-section.tsx
|
|
@@ -2974,12 +2673,12 @@ var CombinedReportSummarySection = NamedFC(
|
|
|
2974
2673
|
notScannedUrlsCount: urlResultCounts.unscannableUrls,
|
|
2975
2674
|
failureInstancesCount: failedInstances
|
|
2976
2675
|
};
|
|
2977
|
-
return /* @__PURE__ */
|
|
2676
|
+
return /* @__PURE__ */ React59.createElement(UrlsSummarySection, { ...urlsSummarySectionProps });
|
|
2978
2677
|
}
|
|
2979
2678
|
);
|
|
2980
2679
|
|
|
2981
2680
|
// src/reports/components/report-sections/rules-results-container.tsx
|
|
2982
|
-
var
|
|
2681
|
+
var React60 = __toESM(require("react"));
|
|
2983
2682
|
|
|
2984
2683
|
// src/reports/components/report-sections/rules-results-container.scss
|
|
2985
2684
|
var rules_results_container_default = { "rulesResultsContainer": "rules-results-container--HaLDw", "resultsHeading": "results-heading--H9Puz" };
|
|
@@ -2988,13 +2687,13 @@ var rules_results_container_default = { "rulesResultsContainer": "rules-results-
|
|
|
2988
2687
|
var RulesResultsContainer = NamedFC(
|
|
2989
2688
|
"RulesResultsContainer",
|
|
2990
2689
|
({ children, getCollapsibleScript }) => {
|
|
2991
|
-
return /* @__PURE__ */
|
|
2690
|
+
return /* @__PURE__ */ React60.createElement(React60.Fragment, null, /* @__PURE__ */ React60.createElement("div", { className: rules_results_container_default.rulesResultsContainer }, /* @__PURE__ */ React60.createElement("div", { className: rules_results_container_default.resultsHeading }, /* @__PURE__ */ React60.createElement("h2", null, "Rules")), children), /* @__PURE__ */ React60.createElement("script", { dangerouslySetInnerHTML: { __html: getCollapsibleScript() } }));
|
|
2992
2691
|
}
|
|
2993
2692
|
);
|
|
2994
2693
|
|
|
2995
2694
|
// src/reports/components/report-sections/summary-report-details-section.tsx
|
|
2996
2695
|
var import_react6 = require("@fluentui/react");
|
|
2997
|
-
var
|
|
2696
|
+
var React61 = __toESM(require("react"));
|
|
2998
2697
|
|
|
2999
2698
|
// src/reports/components/report-sections/summary-report-details-section.scss
|
|
3000
2699
|
var summary_report_details_section_default = { "crawlDetailsSection": "crawl-details-section--a6evz", "crawlDetailsSectionList": "crawl-details-section-list--WV1Di", "icon": "icon--APJEn", "targetSite": "targetSite--wBJT-", "text": "text--rViTo", "label": "label--DUNYf", "noIcon": "no-icon--VrSr5" };
|
|
@@ -3005,12 +2704,12 @@ var SummaryReportDetailsSection = NamedFC(
|
|
|
3005
2704
|
(props) => {
|
|
3006
2705
|
const { scanMetadata, toUtcString, secondsToTimeString } = props;
|
|
3007
2706
|
const scanTimespan = scanMetadata.timespan;
|
|
3008
|
-
const createListItem = (label, content, icon, className) => icon ? /* @__PURE__ */
|
|
2707
|
+
const createListItem = (label, content, icon, className) => icon ? /* @__PURE__ */ React61.createElement("li", { key: label, className }, /* @__PURE__ */ React61.createElement("span", { className: summary_report_details_section_default.icon }, icon), /* @__PURE__ */ React61.createElement("span", { className: summary_report_details_section_default.label }, `${label} `), /* @__PURE__ */ React61.createElement("span", { className: summary_report_details_section_default.text }, content)) : /* @__PURE__ */ React61.createElement("li", { key: label, className }, /* @__PURE__ */ React61.createElement("span", { className: (0, import_react6.css)(summary_report_details_section_default.noIcon, summary_report_details_section_default.label) }, `${label} `), /* @__PURE__ */ React61.createElement("span", { className: summary_report_details_section_default.text }, content));
|
|
3009
2708
|
const listItems = [];
|
|
3010
2709
|
listItems.push(
|
|
3011
2710
|
createListItem(
|
|
3012
2711
|
"Target site",
|
|
3013
|
-
/* @__PURE__ */
|
|
2712
|
+
/* @__PURE__ */ React61.createElement(
|
|
3014
2713
|
NewTabLinkWithConfirmationDialog,
|
|
3015
2714
|
{
|
|
3016
2715
|
href: scanMetadata.targetAppInfo.url,
|
|
@@ -3018,13 +2717,13 @@ var SummaryReportDetailsSection = NamedFC(
|
|
|
3018
2717
|
},
|
|
3019
2718
|
scanMetadata.targetAppInfo.url
|
|
3020
2719
|
),
|
|
3021
|
-
/* @__PURE__ */
|
|
2720
|
+
/* @__PURE__ */ React61.createElement(UrlIcon, null),
|
|
3022
2721
|
summary_report_details_section_default.targetSite
|
|
3023
2722
|
)
|
|
3024
2723
|
);
|
|
3025
2724
|
if (scanTimespan.scanStart != null) {
|
|
3026
2725
|
const scanStartUTC = toUtcString(scanTimespan.scanStart);
|
|
3027
|
-
listItems.push(createListItem("Scans started", scanStartUTC, /* @__PURE__ */
|
|
2726
|
+
listItems.push(createListItem("Scans started", scanStartUTC, /* @__PURE__ */ React61.createElement(DateIcon, null)));
|
|
3028
2727
|
}
|
|
3029
2728
|
const scanCompleteUTC = toUtcString(scanTimespan.scanComplete);
|
|
3030
2729
|
listItems.push(createListItem("Scans completed", scanCompleteUTC));
|
|
@@ -3032,20 +2731,21 @@ var SummaryReportDetailsSection = NamedFC(
|
|
|
3032
2731
|
const duration = secondsToTimeString(scanTimespan.durationSeconds);
|
|
3033
2732
|
listItems.push(createListItem("Duration", duration));
|
|
3034
2733
|
}
|
|
3035
|
-
return /* @__PURE__ */
|
|
2734
|
+
return /* @__PURE__ */ React61.createElement("div", { className: summary_report_details_section_default.crawlDetailsSection }, /* @__PURE__ */ React61.createElement("h2", null, "Scan details"), /* @__PURE__ */ React61.createElement("ul", { className: summary_report_details_section_default.crawlDetailsSectionList }, listItems));
|
|
3036
2735
|
}
|
|
3037
2736
|
);
|
|
3038
2737
|
|
|
3039
2738
|
// src/reports/components/report-sections/summary-report-header-section.tsx
|
|
3040
|
-
var
|
|
2739
|
+
var React62 = __toESM(require("react"));
|
|
3041
2740
|
var SummaryReportHeaderSection = NamedFC("SummaryReportHeaderSection", () => {
|
|
3042
|
-
return /* @__PURE__ */
|
|
2741
|
+
return /* @__PURE__ */ React62.createElement("header", null, /* @__PURE__ */ React62.createElement(HeaderBar, { headerText: brand }));
|
|
3043
2742
|
});
|
|
3044
2743
|
|
|
3045
2744
|
// src/reports/components/summary-report-head.tsx
|
|
3046
|
-
var
|
|
2745
|
+
var React63 = __toESM(require("react"));
|
|
3047
2746
|
var SummaryReportHead = NamedFC("SummaryReportHead", () => {
|
|
3048
|
-
|
|
2747
|
+
const titleValue = `${brand} automated checks result`;
|
|
2748
|
+
return /* @__PURE__ */ React63.createElement("head", null, /* @__PURE__ */ React63.createElement("meta", { charSet: "UTF-8" }), /* @__PURE__ */ React63.createElement("title", null, titleValue), /* @__PURE__ */ React63.createElement("style", { dangerouslySetInnerHTML: { __html: styleSheet } }), /* @__PURE__ */ React63.createElement("style", { dangerouslySetInnerHTML: { __html: styleSheet2 } }));
|
|
3049
2749
|
});
|
|
3050
2750
|
|
|
3051
2751
|
// src/reports/components/report-sections/combined-report-section-factory.ts
|
|
@@ -3067,10 +2767,10 @@ var CombinedReportSectionFactory = {
|
|
|
3067
2767
|
};
|
|
3068
2768
|
|
|
3069
2769
|
// src/reports/components/report-sections/failed-urls-section.tsx
|
|
3070
|
-
var
|
|
2770
|
+
var React67 = __toESM(require("react"));
|
|
3071
2771
|
|
|
3072
2772
|
// src/reports/components/report-sections/collapsible-url-result-section.tsx
|
|
3073
|
-
var
|
|
2773
|
+
var React64 = __toESM(require("react"));
|
|
3074
2774
|
|
|
3075
2775
|
// src/reports/components/report-sections/collapsible-url-result-section.scss
|
|
3076
2776
|
var collapsible_url_result_section_default = { "urlResultSection": "url-result-section--SkOlZ" };
|
|
@@ -3082,19 +2782,19 @@ var CollapsibleUrlResultSection = NamedFC(
|
|
|
3082
2782
|
const { containerId, deps, content } = props;
|
|
3083
2783
|
const CollapsibleContent = deps.collapsibleControl({
|
|
3084
2784
|
id: containerId,
|
|
3085
|
-
header: /* @__PURE__ */
|
|
2785
|
+
header: /* @__PURE__ */ React64.createElement(ResultSectionTitle, { ...props, titleSize: "heading" }),
|
|
3086
2786
|
content,
|
|
3087
2787
|
headingLevel: 3
|
|
3088
2788
|
});
|
|
3089
|
-
return /* @__PURE__ */
|
|
2789
|
+
return /* @__PURE__ */ React64.createElement("div", { className: collapsible_url_result_section_default.urlResultSection }, CollapsibleContent);
|
|
3090
2790
|
}
|
|
3091
2791
|
);
|
|
3092
2792
|
|
|
3093
2793
|
// src/reports/components/report-sections/url-scan-results-table.tsx
|
|
3094
|
-
var
|
|
2794
|
+
var React66 = __toESM(require("react"));
|
|
3095
2795
|
|
|
3096
2796
|
// src/reports/components/report-sections/summary-results-table.tsx
|
|
3097
|
-
var
|
|
2797
|
+
var React65 = __toESM(require("react"));
|
|
3098
2798
|
|
|
3099
2799
|
// src/reports/components/report-sections/summary-results-table.scss
|
|
3100
2800
|
var summary_results_table_default = { "summaryResultsTable": "summary-results-table--Iezr-", "textCell": "text-cell--EaUrM", "urlCell": "url-cell--mg-3l" };
|
|
@@ -3112,8 +2812,8 @@ var SummaryResultsTable = NamedFC(
|
|
|
3112
2812
|
return `${id2}-header${colIndex}`;
|
|
3113
2813
|
};
|
|
3114
2814
|
const getTableHeaders = () => {
|
|
3115
|
-
return /* @__PURE__ */
|
|
3116
|
-
return /* @__PURE__ */
|
|
2815
|
+
return /* @__PURE__ */ React65.createElement("tr", null, columns.map((column, index) => {
|
|
2816
|
+
return /* @__PURE__ */ React65.createElement("th", { key: index, id: getHeaderId(index) }, column.header);
|
|
3117
2817
|
}));
|
|
3118
2818
|
};
|
|
3119
2819
|
const getCellClassName = (colIndex) => {
|
|
@@ -3121,8 +2821,8 @@ var SummaryResultsTable = NamedFC(
|
|
|
3121
2821
|
return cellClassNames[contentType];
|
|
3122
2822
|
};
|
|
3123
2823
|
const getRow = (row, rowIndex) => {
|
|
3124
|
-
return /* @__PURE__ */
|
|
3125
|
-
return /* @__PURE__ */
|
|
2824
|
+
return /* @__PURE__ */ React65.createElement("tr", { key: rowIndex }, row.map((item, colIndex) => {
|
|
2825
|
+
return /* @__PURE__ */ React65.createElement(
|
|
3126
2826
|
"td",
|
|
3127
2827
|
{
|
|
3128
2828
|
key: colIndex,
|
|
@@ -3136,7 +2836,7 @@ var SummaryResultsTable = NamedFC(
|
|
|
3136
2836
|
const getTableRows = () => {
|
|
3137
2837
|
return rows.map(getRow);
|
|
3138
2838
|
};
|
|
3139
|
-
return /* @__PURE__ */
|
|
2839
|
+
return /* @__PURE__ */ React65.createElement("table", { className: summary_results_table_default.summaryResultsTable, id: id2 }, /* @__PURE__ */ React65.createElement("thead", null, getTableHeaders()), /* @__PURE__ */ React65.createElement("tbody", null, getTableRows()));
|
|
3140
2840
|
}
|
|
3141
2841
|
);
|
|
3142
2842
|
|
|
@@ -3154,11 +2854,11 @@ var UrlScanResultsTable = NamedFC(
|
|
|
3154
2854
|
];
|
|
3155
2855
|
const rows = results.map((result) => {
|
|
3156
2856
|
const { url, reportLocation } = result;
|
|
3157
|
-
const urlLink = /* @__PURE__ */
|
|
3158
|
-
const reportLink = /* @__PURE__ */
|
|
2857
|
+
const urlLink = /* @__PURE__ */ React66.createElement(NewTabLink, { href: url }, url);
|
|
2858
|
+
const reportLink = /* @__PURE__ */ React66.createElement(NewTabLink, { href: reportLocation, "aria-label": `Report for ${url}` }, "Report");
|
|
3159
2859
|
return [`${result.numFailures}`, urlLink, reportLink];
|
|
3160
2860
|
});
|
|
3161
|
-
return /* @__PURE__ */
|
|
2861
|
+
return /* @__PURE__ */ React66.createElement(SummaryResultsTable, { columns, rows, id: props.id });
|
|
3162
2862
|
}
|
|
3163
2863
|
);
|
|
3164
2864
|
|
|
@@ -3166,8 +2866,8 @@ var UrlScanResultsTable = NamedFC(
|
|
|
3166
2866
|
var FailedUrlsSection = NamedFC(
|
|
3167
2867
|
"FailedUrlsSection",
|
|
3168
2868
|
({ results, deps }) => {
|
|
3169
|
-
const table = /* @__PURE__ */
|
|
3170
|
-
return /* @__PURE__ */
|
|
2869
|
+
const table = /* @__PURE__ */ React67.createElement(UrlScanResultsTable, { results: results.failed, id: "failed-urls-table" });
|
|
2870
|
+
return /* @__PURE__ */ React67.createElement(
|
|
3171
2871
|
CollapsibleUrlResultSection,
|
|
3172
2872
|
{
|
|
3173
2873
|
deps,
|
|
@@ -3182,10 +2882,10 @@ var FailedUrlsSection = NamedFC(
|
|
|
3182
2882
|
);
|
|
3183
2883
|
|
|
3184
2884
|
// src/reports/components/report-sections/not-scanned-urls-section.tsx
|
|
3185
|
-
var
|
|
2885
|
+
var React69 = __toESM(require("react"));
|
|
3186
2886
|
|
|
3187
2887
|
// src/reports/components/report-sections/url-errors-table.tsx
|
|
3188
|
-
var
|
|
2888
|
+
var React68 = __toESM(require("react"));
|
|
3189
2889
|
var UrlErrorsTable = NamedFC("UrlErrorsTable", (props) => {
|
|
3190
2890
|
const errors = props.errors;
|
|
3191
2891
|
const columns = [
|
|
@@ -3195,19 +2895,19 @@ var UrlErrorsTable = NamedFC("UrlErrorsTable", (props) => {
|
|
|
3195
2895
|
];
|
|
3196
2896
|
const rows = errors.map((scanError) => {
|
|
3197
2897
|
const { errorDescription, errorType, url, errorLogLocation } = scanError;
|
|
3198
|
-
const urlLink = /* @__PURE__ */
|
|
3199
|
-
const errorLogLink = /* @__PURE__ */
|
|
2898
|
+
const urlLink = /* @__PURE__ */ React68.createElement(NewTabLink, { href: url }, url);
|
|
2899
|
+
const errorLogLink = /* @__PURE__ */ React68.createElement(NewTabLink, { href: errorLogLocation }, errorDescription);
|
|
3200
2900
|
return [errorType, urlLink, errorLogLink];
|
|
3201
2901
|
});
|
|
3202
|
-
return /* @__PURE__ */
|
|
2902
|
+
return /* @__PURE__ */ React68.createElement(SummaryResultsTable, { columns, rows, id: props.id });
|
|
3203
2903
|
});
|
|
3204
2904
|
|
|
3205
2905
|
// src/reports/components/report-sections/not-scanned-urls-section.tsx
|
|
3206
2906
|
var NotScannedUrlsSection = NamedFC(
|
|
3207
2907
|
"NotScannedUrlsSection",
|
|
3208
2908
|
({ results, deps }) => {
|
|
3209
|
-
const table = /* @__PURE__ */
|
|
3210
|
-
return /* @__PURE__ */
|
|
2909
|
+
const table = /* @__PURE__ */ React69.createElement(UrlErrorsTable, { errors: results.unscannable, id: "not-scanned-urls-table" });
|
|
2910
|
+
return /* @__PURE__ */ React69.createElement(
|
|
3211
2911
|
CollapsibleUrlResultSection,
|
|
3212
2912
|
{
|
|
3213
2913
|
deps,
|
|
@@ -3222,12 +2922,12 @@ var NotScannedUrlsSection = NamedFC(
|
|
|
3222
2922
|
);
|
|
3223
2923
|
|
|
3224
2924
|
// src/reports/components/report-sections/passed-urls-section.tsx
|
|
3225
|
-
var
|
|
2925
|
+
var React70 = __toESM(require("react"));
|
|
3226
2926
|
var PassedUrlsSection = NamedFC(
|
|
3227
2927
|
"PassedUrlsSection",
|
|
3228
2928
|
({ results, deps }) => {
|
|
3229
|
-
const table = /* @__PURE__ */
|
|
3230
|
-
return /* @__PURE__ */
|
|
2929
|
+
const table = /* @__PURE__ */ React70.createElement(UrlScanResultsTable, { results: results.passed, id: "passed-urls-table" });
|
|
2930
|
+
return /* @__PURE__ */ React70.createElement(
|
|
3231
2931
|
CollapsibleUrlResultSection,
|
|
3232
2932
|
{
|
|
3233
2933
|
deps,
|
|
@@ -3242,7 +2942,7 @@ var PassedUrlsSection = NamedFC(
|
|
|
3242
2942
|
);
|
|
3243
2943
|
|
|
3244
2944
|
// src/reports/components/report-sections/results-by-url-container.tsx
|
|
3245
|
-
var
|
|
2945
|
+
var React71 = __toESM(require("react"));
|
|
3246
2946
|
|
|
3247
2947
|
// src/reports/components/report-sections/results-by-url-container.scss
|
|
3248
2948
|
var results_by_url_container_default = { "urlResultsContainer": "url-results-container---dq9B", "resultsHeading": "results-heading--2dWBX" };
|
|
@@ -3251,12 +2951,12 @@ var results_by_url_container_default = { "urlResultsContainer": "url-results-con
|
|
|
3251
2951
|
var ResultsByUrlContainer = NamedFC(
|
|
3252
2952
|
"ResultsContainer",
|
|
3253
2953
|
({ children, getCollapsibleScript }) => {
|
|
3254
|
-
return /* @__PURE__ */
|
|
2954
|
+
return /* @__PURE__ */ React71.createElement(React71.Fragment, null, /* @__PURE__ */ React71.createElement("div", { className: results_by_url_container_default.urlResultsContainer }, /* @__PURE__ */ React71.createElement("div", { className: results_by_url_container_default.resultsHeading }, /* @__PURE__ */ React71.createElement("h2", null, "Results by URL")), children), /* @__PURE__ */ React71.createElement("script", { dangerouslySetInnerHTML: { __html: getCollapsibleScript() } }));
|
|
3255
2955
|
}
|
|
3256
2956
|
);
|
|
3257
2957
|
|
|
3258
2958
|
// src/reports/components/report-sections/summary-report-summary-section.tsx
|
|
3259
|
-
var
|
|
2959
|
+
var React72 = __toESM(require("react"));
|
|
3260
2960
|
var SummaryReportSummarySection = NamedFC(
|
|
3261
2961
|
"SummaryReportSummarySection",
|
|
3262
2962
|
(props) => {
|
|
@@ -3271,7 +2971,7 @@ var SummaryReportSummarySection = NamedFC(
|
|
|
3271
2971
|
notScannedUrlsCount: results.unscannable.length,
|
|
3272
2972
|
failureInstancesCount: failedInstances
|
|
3273
2973
|
};
|
|
3274
|
-
return /* @__PURE__ */
|
|
2974
|
+
return /* @__PURE__ */ React72.createElement(UrlsSummarySection, { ...urlsSummarySectionProps });
|
|
3275
2975
|
}
|
|
3276
2976
|
);
|
|
3277
2977
|
|
|
@@ -3294,14 +2994,14 @@ var SummaryReportSectionFactory = {
|
|
|
3294
2994
|
};
|
|
3295
2995
|
|
|
3296
2996
|
// src/common/store-data-to-scan-node-result-converter.ts
|
|
3297
|
-
var
|
|
2997
|
+
var import_lodash11 = require("lodash");
|
|
3298
2998
|
function convertUnifiedStoreDataToScanNodeResults(unifiedScanResultStoreData) {
|
|
3299
2999
|
const { rules, results } = unifiedScanResultStoreData;
|
|
3300
3000
|
if (unifiedScanResultStoreData == null || results == null) {
|
|
3301
3001
|
return null;
|
|
3302
3002
|
}
|
|
3303
3003
|
const transformedResults = results.map((unifiedResult) => {
|
|
3304
|
-
const rule = rules ? (0,
|
|
3004
|
+
const rule = rules ? (0, import_lodash11.find)(rules, (unifiedRule) => unifiedRule.id === unifiedResult.ruleId) : { id: unifiedResult.ruleId };
|
|
3305
3005
|
if (rule == null) {
|
|
3306
3006
|
throw new Error(`Got result with unknown ruleId ${unifiedResult.ruleId}`);
|
|
3307
3007
|
}
|
|
@@ -3399,7 +3099,7 @@ var CombinedResultsReport = class {
|
|
|
3399
3099
|
};
|
|
3400
3100
|
|
|
3401
3101
|
// src/reports/package/combined-results-to-cards-model-converter.ts
|
|
3402
|
-
var
|
|
3102
|
+
var import_lodash12 = require("lodash");
|
|
3403
3103
|
var CombinedResultsToCardsModelConverter = class {
|
|
3404
3104
|
constructor(mapAxeTagsToGuidanceLinks2, cardSelectionViewData, uuidGenerator, helpUrlGetter, getFixResolution2, extractRelatedSelectors2) {
|
|
3405
3105
|
this.mapAxeTagsToGuidanceLinks = mapAxeTagsToGuidanceLinks2;
|
|
@@ -3425,7 +3125,7 @@ var CombinedResultsToCardsModelConverter = class {
|
|
|
3425
3125
|
};
|
|
3426
3126
|
};
|
|
3427
3127
|
this.getCardRuleResults = (rules) => {
|
|
3428
|
-
if ((0,
|
|
3128
|
+
if ((0, import_lodash12.isNil)(rules)) {
|
|
3429
3129
|
return [];
|
|
3430
3130
|
}
|
|
3431
3131
|
return rules.map((rule) => this.getCardRuleResult(rule));
|
|
@@ -3437,7 +3137,7 @@ var CombinedResultsToCardsModelConverter = class {
|
|
|
3437
3137
|
url: this.helpUrlGetter.getHelpUrl(rule.ruleId, rule.ruleUrl),
|
|
3438
3138
|
isExpanded: false,
|
|
3439
3139
|
guidance: this.mapAxeTagsToGuidanceLinks(rule.ruleId, rule.tags),
|
|
3440
|
-
nodes: (0,
|
|
3140
|
+
nodes: (0, import_lodash12.isNil)(nodes) ? [] : nodes
|
|
3441
3141
|
};
|
|
3442
3142
|
};
|
|
3443
3143
|
this.getFailuresGroupedByRule = (groupedFailures) => {
|
|
@@ -3534,7 +3234,7 @@ var ReactStaticRenderer = class {
|
|
|
3534
3234
|
};
|
|
3535
3235
|
|
|
3536
3236
|
// src/reports/report-html-generator.tsx
|
|
3537
|
-
var
|
|
3237
|
+
var React73 = __toESM(require("react"));
|
|
3538
3238
|
var ReportHtmlGenerator = class {
|
|
3539
3239
|
constructor(sectionFactory, reactStaticRenderer, getCollapsibleScript, utcDateConverter, getGuidanceTagsFromGuidanceLinks, fixInstructionProcessor, recommendColor, getPropertyConfiguration2, getNextHeadingLevel) {
|
|
3540
3240
|
this.sectionFactory = sectionFactory;
|
|
@@ -3549,7 +3249,7 @@ var ReportHtmlGenerator = class {
|
|
|
3549
3249
|
}
|
|
3550
3250
|
generateHtml(description, cardsViewData, scanMetadata) {
|
|
3551
3251
|
const HeadSection = this.sectionFactory.HeadSection;
|
|
3552
|
-
const headMarkup = this.reactStaticRenderer.renderToStaticMarkup(/* @__PURE__ */
|
|
3252
|
+
const headMarkup = this.reactStaticRenderer.renderToStaticMarkup(/* @__PURE__ */ React73.createElement(HeadSection, null));
|
|
3553
3253
|
const detailsProps = {
|
|
3554
3254
|
description,
|
|
3555
3255
|
deps: {
|
|
@@ -3576,14 +3276,14 @@ var ReportHtmlGenerator = class {
|
|
|
3576
3276
|
sectionFactory: this.sectionFactory,
|
|
3577
3277
|
...detailsProps
|
|
3578
3278
|
};
|
|
3579
|
-
const bodyElement = /* @__PURE__ */
|
|
3279
|
+
const bodyElement = /* @__PURE__ */ React73.createElement(ReportBody, { ...props });
|
|
3580
3280
|
const bodyMarkup = this.reactStaticRenderer.renderToStaticMarkup(bodyElement);
|
|
3581
3281
|
return '<!DOCTYPE html><html lang="en">' + headMarkup + bodyMarkup + "</html>";
|
|
3582
3282
|
}
|
|
3583
3283
|
};
|
|
3584
3284
|
|
|
3585
3285
|
// src/reports/summary-report-html-generator.tsx
|
|
3586
|
-
var
|
|
3286
|
+
var React74 = __toESM(require("react"));
|
|
3587
3287
|
var SummaryReportHtmlGenerator = class {
|
|
3588
3288
|
constructor(sectionFactory, reactStaticRenderer, getCollapsibleScript, utcDateConverter, secondsToTimeStringConverter) {
|
|
3589
3289
|
this.sectionFactory = sectionFactory;
|
|
@@ -3594,7 +3294,7 @@ var SummaryReportHtmlGenerator = class {
|
|
|
3594
3294
|
}
|
|
3595
3295
|
generateHtml(scanMetadata, results) {
|
|
3596
3296
|
const HeadSection = this.sectionFactory.HeadSection;
|
|
3597
|
-
const headMarkup = this.reactStaticRenderer.renderToStaticMarkup(/* @__PURE__ */
|
|
3297
|
+
const headMarkup = this.reactStaticRenderer.renderToStaticMarkup(/* @__PURE__ */ React74.createElement(HeadSection, null));
|
|
3598
3298
|
const detailsProps = {
|
|
3599
3299
|
deps: {
|
|
3600
3300
|
collapsibleControl: ReportCollapsibleContainerControl
|
|
@@ -3609,7 +3309,7 @@ var SummaryReportHtmlGenerator = class {
|
|
|
3609
3309
|
sectionFactory: this.sectionFactory,
|
|
3610
3310
|
...detailsProps
|
|
3611
3311
|
};
|
|
3612
|
-
const bodyElement = /* @__PURE__ */
|
|
3312
|
+
const bodyElement = /* @__PURE__ */ React74.createElement(ReportBody, { ...props });
|
|
3613
3313
|
const bodyMarkup = this.reactStaticRenderer.renderToStaticMarkup(bodyElement);
|
|
3614
3314
|
return '<!DOCTYPE html><html lang="en">' + headMarkup + bodyMarkup + "</html>";
|
|
3615
3315
|
}
|
|
@@ -5437,7 +5137,7 @@ var link = {
|
|
|
5437
5137
|
};
|
|
5438
5138
|
|
|
5439
5139
|
// src/scanner/map-axe-tags-to-guidance-links.ts
|
|
5440
|
-
var
|
|
5140
|
+
var import_lodash13 = require("lodash");
|
|
5441
5141
|
var BestPractice = {
|
|
5442
5142
|
text: "",
|
|
5443
5143
|
href: "",
|
|
@@ -5448,7 +5148,7 @@ var bestPracticeToGuidanceTagOverrideMapping = {
|
|
|
5448
5148
|
"presentation-role-conflict": ["wcag131"]
|
|
5449
5149
|
};
|
|
5450
5150
|
function addGuidanceTagOverrides(resultId, currentTags) {
|
|
5451
|
-
return (0,
|
|
5151
|
+
return (0, import_lodash13.concat)(currentTags ?? [], bestPracticeToGuidanceTagOverrideMapping[resultId] ?? []);
|
|
5452
5152
|
}
|
|
5453
5153
|
function mapAxeTagToGuidanceLink(axeTag) {
|
|
5454
5154
|
if (axeTag === "best-practice") {
|
|
@@ -5464,7 +5164,7 @@ function mapAxeTagsToGuidanceLinks(resultId, axeTags) {
|
|
|
5464
5164
|
const normalizedTags = addGuidanceTagOverrides(resultId, axeTags);
|
|
5465
5165
|
const unsortedMaybeLinks = normalizedTags.map(mapAxeTagToGuidanceLink);
|
|
5466
5166
|
const unsortedLinks = unsortedMaybeLinks.filter(isNotNull);
|
|
5467
|
-
const sortedLinks = (0,
|
|
5167
|
+
const sortedLinks = (0, import_lodash13.sortBy)(unsortedLinks, (link2) => link2.text);
|
|
5468
5168
|
return sortedLinks;
|
|
5469
5169
|
}
|
|
5470
5170
|
function isNotNull(maybeInstance) {
|
|
@@ -5566,7 +5266,7 @@ var RuleProcessor = class {
|
|
|
5566
5266
|
};
|
|
5567
5267
|
|
|
5568
5268
|
// src/common/components/fix-instruction-processor.tsx
|
|
5569
|
-
var
|
|
5269
|
+
var React75 = __toESM(require("react"));
|
|
5570
5270
|
|
|
5571
5271
|
// src/common/components/cards/fix-instruction-color-box.scss
|
|
5572
5272
|
var fix_instruction_color_box_default = { "fixInstructionColorBox": "fix-instruction-color-box--DQpQE", "screenReaderOnly": "screen-reader-only--6LUiO" };
|
|
@@ -5608,7 +5308,7 @@ var FixInstructionProcessor = class {
|
|
|
5608
5308
|
return this.tryProcessAsColorContrastRecommendation(fixInstruction, recommendColor) ?? this.tryProcessAsRelatedNodesReference(fixInstruction) ?? this.processAsNoop(fixInstruction);
|
|
5609
5309
|
}
|
|
5610
5310
|
processAsNoop(fixInstruction) {
|
|
5611
|
-
return /* @__PURE__ */
|
|
5311
|
+
return /* @__PURE__ */ React75.createElement(React75.Fragment, null, fixInstruction);
|
|
5612
5312
|
}
|
|
5613
5313
|
// We perform this replacement because what axe-core exposes as a "relatedNodes" property
|
|
5614
5314
|
// is presented in our cards views as a "Related paths" row. This only comes up in practice
|
|
@@ -5619,7 +5319,7 @@ var FixInstructionProcessor = class {
|
|
|
5619
5319
|
return null;
|
|
5620
5320
|
}
|
|
5621
5321
|
const inputBody = input.slice(0, input.length - " (see related nodes)".length);
|
|
5622
|
-
return /* @__PURE__ */
|
|
5322
|
+
return /* @__PURE__ */ React75.createElement(React75.Fragment, null, inputBody, " (see ", /* @__PURE__ */ React75.createElement("em", null, "Related paths"), ")");
|
|
5623
5323
|
}
|
|
5624
5324
|
tryProcessAsColorContrastRecommendation(fixInstruction, recommendColor) {
|
|
5625
5325
|
const matches6 = this.getColorMatches(fixInstruction);
|
|
@@ -5712,14 +5412,14 @@ var FixInstructionProcessor = class {
|
|
|
5712
5412
|
}
|
|
5713
5413
|
splitFixInstruction(fixInstruction, recommendationStrings, matches6) {
|
|
5714
5414
|
if (matches6.length === 0) {
|
|
5715
|
-
return /* @__PURE__ */
|
|
5415
|
+
return /* @__PURE__ */ React75.createElement(React75.Fragment, null, fixInstruction);
|
|
5716
5416
|
}
|
|
5717
5417
|
const recommendations = [];
|
|
5718
5418
|
const howToFixMatches = matches6.slice(0, 2);
|
|
5719
5419
|
const recommendationMatches = matches6.slice(2);
|
|
5720
5420
|
const results = this.getInstructionWithAndWithoutBoxes(howToFixMatches, fixInstruction);
|
|
5721
5421
|
if (recommendationStrings.length === 0) {
|
|
5722
|
-
return /* @__PURE__ */
|
|
5422
|
+
return /* @__PURE__ */ React75.createElement(React75.Fragment, null, results);
|
|
5723
5423
|
}
|
|
5724
5424
|
const recommendationOne = this.getInstructionWithAndWithoutBoxes(
|
|
5725
5425
|
recommendationMatches.slice(0, 2),
|
|
@@ -5736,7 +5436,7 @@ var FixInstructionProcessor = class {
|
|
|
5736
5436
|
return this.addRecommendationsToResults(results, recommendations);
|
|
5737
5437
|
}
|
|
5738
5438
|
addRecommendationsToResults(results, recommendations) {
|
|
5739
|
-
return /* @__PURE__ */
|
|
5439
|
+
return /* @__PURE__ */ React75.createElement(React75.Fragment, null, results, /* @__PURE__ */ React75.createElement("ul", { key: "recommendations-list", "data-automation-id": recommendationsAutomationId }, recommendations.map((rec, idx) => /* @__PURE__ */ React75.createElement("li", { key: `recommendation-${idx}` }, rec))));
|
|
5740
5440
|
}
|
|
5741
5441
|
getInstructionWithBoxes(matches6, fixInstruction) {
|
|
5742
5442
|
let insertionIndex = 0;
|
|
@@ -5745,19 +5445,19 @@ var FixInstructionProcessor = class {
|
|
|
5745
5445
|
matches6.forEach((match) => {
|
|
5746
5446
|
const endIndex = match.splitIndex - match.colorHexValue.length;
|
|
5747
5447
|
const substring = fixInstruction.substring(insertionIndex, endIndex);
|
|
5748
|
-
result.push(/* @__PURE__ */
|
|
5448
|
+
result.push(/* @__PURE__ */ React75.createElement("span", { key: `instruction-split-${keyIndex++}` }, substring));
|
|
5749
5449
|
result.push(this.createColorBox(match.colorHexValue, keyIndex++));
|
|
5750
5450
|
insertionIndex = endIndex;
|
|
5751
5451
|
});
|
|
5752
5452
|
const coda = fixInstruction.substr(insertionIndex);
|
|
5753
|
-
result.push(/* @__PURE__ */
|
|
5453
|
+
result.push(/* @__PURE__ */ React75.createElement("span", { key: `instruction-split-${keyIndex++}` }, coda));
|
|
5754
5454
|
return result;
|
|
5755
5455
|
}
|
|
5756
5456
|
getInstructionWithAndWithoutBoxes(matches6, fixInstruction) {
|
|
5757
|
-
return /* @__PURE__ */
|
|
5457
|
+
return /* @__PURE__ */ React75.createElement(React75.Fragment, null, /* @__PURE__ */ React75.createElement("span", { "aria-hidden": "true" }, this.getInstructionWithBoxes(matches6, fixInstruction)), /* @__PURE__ */ React75.createElement("span", { className: fix_instruction_color_box_default.screenReaderOnly }, fixInstruction));
|
|
5758
5458
|
}
|
|
5759
5459
|
createColorBox(colorHexValue, keyIndex) {
|
|
5760
|
-
return /* @__PURE__ */
|
|
5460
|
+
return /* @__PURE__ */ React75.createElement(
|
|
5761
5461
|
"span",
|
|
5762
5462
|
{
|
|
5763
5463
|
"aria-hidden": true,
|
|
@@ -5769,6 +5469,304 @@ var FixInstructionProcessor = class {
|
|
|
5769
5469
|
}
|
|
5770
5470
|
};
|
|
5771
5471
|
|
|
5472
|
+
// src/common/components/cards/get-labelled-string-property-card-row.tsx
|
|
5473
|
+
var import_lodash14 = require("lodash");
|
|
5474
|
+
var React77 = __toESM(require("react"));
|
|
5475
|
+
|
|
5476
|
+
// src/common/components/cards/simple-card-row.tsx
|
|
5477
|
+
var import_utilities6 = require("@fluentui/utilities");
|
|
5478
|
+
var React76 = __toESM(require("react"));
|
|
5479
|
+
var SimpleCardRow = NamedFC(
|
|
5480
|
+
"SimpleCardRow",
|
|
5481
|
+
({ label: givenLabel, content, rowKey, contentClassName }) => {
|
|
5482
|
+
const contentStyling = (0, import_utilities6.css)(instance_details_default.rowContent, contentClassName);
|
|
5483
|
+
return /* @__PURE__ */ React76.createElement("tr", { className: instance_details_default.row, key: rowKey }, /* @__PURE__ */ React76.createElement("th", { className: instance_details_default.rowLabel }, givenLabel), /* @__PURE__ */ React76.createElement("td", { className: contentStyling }, content));
|
|
5484
|
+
}
|
|
5485
|
+
);
|
|
5486
|
+
|
|
5487
|
+
// src/common/components/cards/get-labelled-string-property-card-row.tsx
|
|
5488
|
+
var GetLabelledStringPropertyCardRow = (label, contentClassName) => {
|
|
5489
|
+
return NamedFC("StringPropertyCardRowProps", (props) => {
|
|
5490
|
+
if ((0, import_lodash14.isEmpty)(props.propertyData)) {
|
|
5491
|
+
return null;
|
|
5492
|
+
}
|
|
5493
|
+
return /* @__PURE__ */ React77.createElement(
|
|
5494
|
+
SimpleCardRow,
|
|
5495
|
+
{
|
|
5496
|
+
label,
|
|
5497
|
+
content: props.propertyData,
|
|
5498
|
+
rowKey: `${label}-${props.index}`,
|
|
5499
|
+
contentClassName
|
|
5500
|
+
}
|
|
5501
|
+
);
|
|
5502
|
+
});
|
|
5503
|
+
};
|
|
5504
|
+
|
|
5505
|
+
// src/common/components/cards/class-name-card-row.ts
|
|
5506
|
+
var ClassNameCardRow = GetLabelledStringPropertyCardRow("Class name");
|
|
5507
|
+
|
|
5508
|
+
// src/common/components/cards/content-description-card-row.ts
|
|
5509
|
+
var ContentDescriptionCardRow = GetLabelledStringPropertyCardRow("Content description");
|
|
5510
|
+
|
|
5511
|
+
// src/common/components/cards/related-paths-card-row.tsx
|
|
5512
|
+
var import_lodash15 = require("lodash");
|
|
5513
|
+
var React78 = __toESM(require("react"));
|
|
5514
|
+
|
|
5515
|
+
// src/common/components/cards/related-paths-card-row.scss
|
|
5516
|
+
var related_paths_card_row_default = { "pathList": "path-list--MxxKM" };
|
|
5517
|
+
|
|
5518
|
+
// src/common/components/cards/related-paths-card-row.tsx
|
|
5519
|
+
var RelatedPathsCardRow = NamedFC(
|
|
5520
|
+
"RelatedPathsCardRow",
|
|
5521
|
+
({ index, propertyData }) => {
|
|
5522
|
+
if ((0, import_lodash15.isEmpty)(propertyData)) {
|
|
5523
|
+
return null;
|
|
5524
|
+
}
|
|
5525
|
+
return /* @__PURE__ */ React78.createElement(
|
|
5526
|
+
SimpleCardRow,
|
|
5527
|
+
{
|
|
5528
|
+
label: `Related paths`,
|
|
5529
|
+
content: /* @__PURE__ */ React78.createElement("ul", { className: related_paths_card_row_default.pathList }, propertyData.map((selector) => /* @__PURE__ */ React78.createElement("li", { key: selector }, selector))),
|
|
5530
|
+
rowKey: `related-paths-row-${index}`
|
|
5531
|
+
}
|
|
5532
|
+
);
|
|
5533
|
+
}
|
|
5534
|
+
);
|
|
5535
|
+
|
|
5536
|
+
// src/common/components/cards/rich-resolution-card-row.tsx
|
|
5537
|
+
var React81 = __toESM(require("react"));
|
|
5538
|
+
|
|
5539
|
+
// src/assessments/markup.tsx
|
|
5540
|
+
var React79 = __toESM(require("react"));
|
|
5541
|
+
function Term(props) {
|
|
5542
|
+
return /* @__PURE__ */ React79.createElement("strong", null, props.children);
|
|
5543
|
+
}
|
|
5544
|
+
|
|
5545
|
+
// src/common/components/cards/rich-resolution-content.tsx
|
|
5546
|
+
var React80 = __toESM(require("react"));
|
|
5547
|
+
|
|
5548
|
+
// src/common/components/cards/rich-resolution-content.scss
|
|
5549
|
+
var rich_resolution_content_default = { "multiLineTextYesBullet": "multi-line-text-yes-bullet--TXyX-", "multiLineTextNoBullet": "multi-line-text-no-bullet--AUXXt", "combinationLists": "combination-lists--boK5y" };
|
|
5550
|
+
|
|
5551
|
+
// src/common/components/cards/rich-resolution-content.tsx
|
|
5552
|
+
var RichResolutionContent = NamedFC(
|
|
5553
|
+
"RichResolutionContent",
|
|
5554
|
+
({ deps: { LinkComponent }, contentId, contentVariables }) => {
|
|
5555
|
+
switch (contentId) {
|
|
5556
|
+
case "web/aria-input-field-name": {
|
|
5557
|
+
return /* @__PURE__ */ React80.createElement("div", null, "Inspect the element using the", " ", /* @__PURE__ */ React80.createElement(LinkComponent, { href: "https://developers.google.com/web/updates/2018/01/devtools" }, "Accessibility pane in the browser Developer Tools"), " ", "to verify that the field's accessible name is complete without its associated", " ", /* @__PURE__ */ React80.createElement("b", null, "<", "label", ">"), ".");
|
|
5558
|
+
}
|
|
5559
|
+
case "web/color-contrast": {
|
|
5560
|
+
return /* @__PURE__ */ React80.createElement("div", { className: rich_resolution_content_default.combinationLists }, /* @__PURE__ */ React80.createElement("ul", { className: rich_resolution_content_default.multiLineTextYesBullet }, /* @__PURE__ */ React80.createElement("li", null, "If the instance is an icon or other non-text content, ignore it. This rule applies only to text."), /* @__PURE__ */ React80.createElement("li", null, "If the instance is text, use", " ", /* @__PURE__ */ React80.createElement(LinkComponent, { href: "https://go.microsoft.com/fwlink/?linkid=2075365" }, "Accessibility Insights for Windows"), " ", "(or the", " ", /* @__PURE__ */ React80.createElement(LinkComponent, { href: "https://developer.paciellogroup.com/resources/contrastanalyser/" }, "Colour Contrast Analyser"), " ", "if you're testing on a Mac) to manually verify that it has sufficient contrast compared to the background. If the background is an image or gradient, test an area where contrast appears to be lowest.")), /* @__PURE__ */ React80.createElement("ul", { className: rich_resolution_content_default.multiLineTextNoBullet }, /* @__PURE__ */ React80.createElement("li", null, "For detailed test instructions, see", " ", /* @__PURE__ */ React80.createElement(Term, null, "Assessment ", ">", " Adaptable content ", ">", " Contrast"), ".")));
|
|
5561
|
+
}
|
|
5562
|
+
case "web/duplicate-id-aria": {
|
|
5563
|
+
return /* @__PURE__ */ React80.createElement("div", null, "Document has multiple elements referenced with ARIA with the same id attribute. Examine any duplicate ID values and rename them. Duplicate IDs are common validation errors that may break the accessibility of labels, e.g., form fields, table header cells.");
|
|
5564
|
+
}
|
|
5565
|
+
case "web/th-has-data-cells": {
|
|
5566
|
+
return /* @__PURE__ */ React80.createElement("div", null, "Examine the header cell in the context of the table to verify that it has no data cells.");
|
|
5567
|
+
}
|
|
5568
|
+
case "web/label-content-name-mismatch": {
|
|
5569
|
+
return /* @__PURE__ */ React80.createElement("span", null, "Inspect the element using the Accessibility pane in the browser Developer tools and verify that the element\u2019s accessible name contains its visible text.");
|
|
5570
|
+
}
|
|
5571
|
+
case "web/p-as-heading": {
|
|
5572
|
+
return /* @__PURE__ */ React80.createElement("span", null, "Inspect the ", `<p>`, " element and verify that the element is not used as a heading through visual styling with bold, italic text or font-size. If headings are needed, use the appropriate heading tags.");
|
|
5573
|
+
}
|
|
5574
|
+
default: {
|
|
5575
|
+
throw new Error(
|
|
5576
|
+
`Cannot render RichResolutionContent with unrecognized contentId ${contentId}`
|
|
5577
|
+
);
|
|
5578
|
+
}
|
|
5579
|
+
}
|
|
5580
|
+
}
|
|
5581
|
+
);
|
|
5582
|
+
|
|
5583
|
+
// src/common/components/cards/rich-resolution-card-row.tsx
|
|
5584
|
+
var RichResolutionCardRow = NamedFC(
|
|
5585
|
+
"RichResolutionCardRow",
|
|
5586
|
+
({ deps, index, propertyData }) => {
|
|
5587
|
+
return /* @__PURE__ */ React81.createElement(
|
|
5588
|
+
SimpleCardRow,
|
|
5589
|
+
{
|
|
5590
|
+
label: `How to ${propertyData.labelType}`,
|
|
5591
|
+
content: /* @__PURE__ */ React81.createElement(RichResolutionContent, { deps, ...propertyData }),
|
|
5592
|
+
rowKey: `rich-resolution-row-${index}`
|
|
5593
|
+
}
|
|
5594
|
+
);
|
|
5595
|
+
}
|
|
5596
|
+
);
|
|
5597
|
+
|
|
5598
|
+
// src/common/components/cards/text-card-row.ts
|
|
5599
|
+
var TextCardRow = GetLabelledStringPropertyCardRow("Text");
|
|
5600
|
+
|
|
5601
|
+
// src/common/components/cards/urls-card-row.tsx
|
|
5602
|
+
var React82 = __toESM(require("react"));
|
|
5603
|
+
|
|
5604
|
+
// src/common/components/cards/urls-card-row.scss
|
|
5605
|
+
var urls_card_row_default = { "urlsRowContent": "urls-row-content--JDdRx", "urlsRowContentNewFailure": "urls-row-content-new-Failure--oL5lS" };
|
|
5606
|
+
|
|
5607
|
+
// src/common/components/cards/urls-card-row.tsx
|
|
5608
|
+
var UrlsCardRow = NamedFC("UrlsCardRow", ({ deps, ...props }) => {
|
|
5609
|
+
const urlInfos = props.propertyData.urlInfos;
|
|
5610
|
+
const renderUrlContent = () => {
|
|
5611
|
+
return /* @__PURE__ */ React82.createElement("ul", { className: urls_card_row_default.urlsRowContent }, urlInfos.map((urlInfo, index) => getUrlListItem(urlInfo, index, deps)));
|
|
5612
|
+
};
|
|
5613
|
+
return /* @__PURE__ */ React82.createElement(
|
|
5614
|
+
SimpleCardRow,
|
|
5615
|
+
{
|
|
5616
|
+
label: "URL",
|
|
5617
|
+
content: renderUrlContent(),
|
|
5618
|
+
rowKey: `urls-row-${props.index}`
|
|
5619
|
+
}
|
|
5620
|
+
);
|
|
5621
|
+
});
|
|
5622
|
+
var isNewViolation = (urlInfo) => {
|
|
5623
|
+
return urlInfo.baselineStatus === "new";
|
|
5624
|
+
};
|
|
5625
|
+
function getUrlListItem(urlInfo, index, deps) {
|
|
5626
|
+
const key = `urls-${index}`;
|
|
5627
|
+
if (isNewViolation(urlInfo)) {
|
|
5628
|
+
return /* @__PURE__ */ React82.createElement("li", { key }, /* @__PURE__ */ React82.createElement(deps.LinkComponent, { "aria-label": `NEW. ${urlInfo.url}`, href: urlInfo.url }, urlInfo.url), /* @__PURE__ */ React82.createElement("span", { key: "new", "aria-hidden": "true", className: urls_card_row_default.urlsRowContentNewFailure }, " NEW!"));
|
|
5629
|
+
}
|
|
5630
|
+
return /* @__PURE__ */ React82.createElement("li", { key }, /* @__PURE__ */ React82.createElement(deps.LinkComponent, { href: urlInfo.url }, urlInfo.url));
|
|
5631
|
+
}
|
|
5632
|
+
|
|
5633
|
+
// src/common/components/cards/how-to-fix-card-row.tsx
|
|
5634
|
+
var React84 = __toESM(require("react"));
|
|
5635
|
+
|
|
5636
|
+
// src/common/types/check-type.ts
|
|
5637
|
+
var CheckType = /* @__PURE__ */ ((CheckType2) => {
|
|
5638
|
+
CheckType2[CheckType2["All"] = 0] = "All";
|
|
5639
|
+
CheckType2[CheckType2["Any"] = 1] = "Any";
|
|
5640
|
+
CheckType2[CheckType2["None"] = 2] = "None";
|
|
5641
|
+
return CheckType2;
|
|
5642
|
+
})(CheckType || {});
|
|
5643
|
+
|
|
5644
|
+
// src/common/components/fix-instruction-panel.tsx
|
|
5645
|
+
var React83 = __toESM(require("react"));
|
|
5646
|
+
var FixInstructionPanel = NamedFC(
|
|
5647
|
+
"FixInstructionPanel",
|
|
5648
|
+
(props) => {
|
|
5649
|
+
const { fixInstructionProcessor } = props.deps;
|
|
5650
|
+
const getPanelTitle = (checkType, checkCount) => {
|
|
5651
|
+
if (checkCount === 1) {
|
|
5652
|
+
return "Fix the following:";
|
|
5653
|
+
}
|
|
5654
|
+
if (checkType === 1 /* Any */) {
|
|
5655
|
+
return "Fix ONE of the following:";
|
|
5656
|
+
} else {
|
|
5657
|
+
return "Fix ALL of the following:";
|
|
5658
|
+
}
|
|
5659
|
+
};
|
|
5660
|
+
const renderInstructions = (checkType) => {
|
|
5661
|
+
const instructionList = props.checks.map((check, checkIndex) => {
|
|
5662
|
+
return /* @__PURE__ */ React83.createElement("li", { key: `instruction-${CheckType[checkType]}-${checkIndex + 1}` }, fixInstructionProcessor.process(check.message, props.deps.recommendColor));
|
|
5663
|
+
});
|
|
5664
|
+
return instructionList;
|
|
5665
|
+
};
|
|
5666
|
+
if (props.checks.length === 0) {
|
|
5667
|
+
return null;
|
|
5668
|
+
}
|
|
5669
|
+
const title2 = getPanelTitle(props.checkType, props.checks.length);
|
|
5670
|
+
return /* @__PURE__ */ React83.createElement("div", null, props.renderTitleElement(title2), /* @__PURE__ */ React83.createElement("ul", null, renderInstructions(props.checkType)));
|
|
5671
|
+
}
|
|
5672
|
+
);
|
|
5673
|
+
|
|
5674
|
+
// src/common/components/cards/how-to-fix-card-row.scss
|
|
5675
|
+
var how_to_fix_card_row_default = { "howToFixContent": "how-to-fix-content--Zz96u" };
|
|
5676
|
+
|
|
5677
|
+
// src/common/components/cards/how-to-fix-card-row.tsx
|
|
5678
|
+
var HowToFixWebCardRow = NamedFC(
|
|
5679
|
+
"HowToFixWebCardRow",
|
|
5680
|
+
({ deps, ...props }) => {
|
|
5681
|
+
const { any: anyOf, all, none } = props.propertyData;
|
|
5682
|
+
const renderFixInstructionsContent = () => {
|
|
5683
|
+
return /* @__PURE__ */ React84.createElement("div", { className: how_to_fix_card_row_default.howToFixContent }, /* @__PURE__ */ React84.createElement(
|
|
5684
|
+
FixInstructionPanel,
|
|
5685
|
+
{
|
|
5686
|
+
deps,
|
|
5687
|
+
checkType: 0 /* All */,
|
|
5688
|
+
checks: all.concat(none).map(turnStringToMessageObject),
|
|
5689
|
+
renderTitleElement: renderFixInstructionsTitleElement
|
|
5690
|
+
}
|
|
5691
|
+
), /* @__PURE__ */ React84.createElement(
|
|
5692
|
+
FixInstructionPanel,
|
|
5693
|
+
{
|
|
5694
|
+
deps,
|
|
5695
|
+
checkType: 1 /* Any */,
|
|
5696
|
+
checks: anyOf.map(turnStringToMessageObject),
|
|
5697
|
+
renderTitleElement: renderFixInstructionsTitleElement
|
|
5698
|
+
}
|
|
5699
|
+
));
|
|
5700
|
+
};
|
|
5701
|
+
const turnStringToMessageObject = (s) => {
|
|
5702
|
+
return { message: s };
|
|
5703
|
+
};
|
|
5704
|
+
const renderFixInstructionsTitleElement = (titleText) => {
|
|
5705
|
+
return /* @__PURE__ */ React84.createElement("div", null, titleText);
|
|
5706
|
+
};
|
|
5707
|
+
return /* @__PURE__ */ React84.createElement(
|
|
5708
|
+
SimpleCardRow,
|
|
5709
|
+
{
|
|
5710
|
+
label: "How to fix",
|
|
5711
|
+
content: renderFixInstructionsContent(),
|
|
5712
|
+
rowKey: `how-to-fix-row-${props.index}`
|
|
5713
|
+
}
|
|
5714
|
+
);
|
|
5715
|
+
}
|
|
5716
|
+
);
|
|
5717
|
+
|
|
5718
|
+
// src/common/components/cards/path-card-row.tsx
|
|
5719
|
+
var PathCardRow = GetLabelledStringPropertyCardRow("Path");
|
|
5720
|
+
|
|
5721
|
+
// src/common/components/cards/snippet-card-row.scss
|
|
5722
|
+
var snippet_card_row_default = { "snippet": "snippet--hSNfv" };
|
|
5723
|
+
|
|
5724
|
+
// src/common/components/cards/snippet-card-row.tsx
|
|
5725
|
+
var SnippetCardRow = GetLabelledStringPropertyCardRow("Snippet", snippet_card_row_default.snippet);
|
|
5726
|
+
|
|
5727
|
+
// src/common/configs/unified-result-property-configurations.tsx
|
|
5728
|
+
var howToFixWebConfiguration = {
|
|
5729
|
+
cardRow: HowToFixWebCardRow
|
|
5730
|
+
};
|
|
5731
|
+
var richResolutionConfiguration = {
|
|
5732
|
+
cardRow: RichResolutionCardRow
|
|
5733
|
+
};
|
|
5734
|
+
var cssSelectorConfiguration = {
|
|
5735
|
+
cardRow: PathCardRow
|
|
5736
|
+
};
|
|
5737
|
+
var relatedCssSelectorsConfiguration = {
|
|
5738
|
+
cardRow: RelatedPathsCardRow
|
|
5739
|
+
};
|
|
5740
|
+
var snippetConfiguration = {
|
|
5741
|
+
cardRow: SnippetCardRow
|
|
5742
|
+
};
|
|
5743
|
+
var classNameConfiguration = {
|
|
5744
|
+
cardRow: ClassNameCardRow
|
|
5745
|
+
};
|
|
5746
|
+
var contentDescriptionConfiguration = {
|
|
5747
|
+
cardRow: ContentDescriptionCardRow
|
|
5748
|
+
};
|
|
5749
|
+
var textConfiguration = {
|
|
5750
|
+
cardRow: TextCardRow
|
|
5751
|
+
};
|
|
5752
|
+
var urlsConfiguration = {
|
|
5753
|
+
cardRow: UrlsCardRow
|
|
5754
|
+
};
|
|
5755
|
+
var propertyIdToConfigurationMap = {
|
|
5756
|
+
"css-selector": cssSelectorConfiguration,
|
|
5757
|
+
"how-to-fix-web": howToFixWebConfiguration,
|
|
5758
|
+
richResolution: richResolutionConfiguration,
|
|
5759
|
+
snippet: snippetConfiguration,
|
|
5760
|
+
className: classNameConfiguration,
|
|
5761
|
+
contentDescription: contentDescriptionConfiguration,
|
|
5762
|
+
text: textConfiguration,
|
|
5763
|
+
urls: urlsConfiguration,
|
|
5764
|
+
relatedCssSelectors: relatedCssSelectorsConfiguration
|
|
5765
|
+
};
|
|
5766
|
+
function getPropertyConfiguration(id2) {
|
|
5767
|
+
return propertyIdToConfigurationMap[id2];
|
|
5768
|
+
}
|
|
5769
|
+
|
|
5772
5770
|
// src/common/date-provider.ts
|
|
5773
5771
|
var import_luxon = require("luxon");
|
|
5774
5772
|
var DateProvider = class _DateProvider {
|