accessibility-insights-report 4.7.3 → 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 +676 -661
- package/package.json +7 -7
package/drop/index.js
CHANGED
|
@@ -266,9 +266,12 @@ var getA11yInsightsWebRuleUrl = (ruleId) => {
|
|
|
266
266
|
var webRulesWithResources = [
|
|
267
267
|
"aria-alt",
|
|
268
268
|
"aria-allowed-attr",
|
|
269
|
+
"aria-conditional-attr",
|
|
270
|
+
"aria-deprecated-role",
|
|
269
271
|
"aria-hidden-body",
|
|
270
272
|
"aria-hidden-focus",
|
|
271
273
|
"aria-input-field-name",
|
|
274
|
+
"aria-prohibited-attr",
|
|
272
275
|
"aria-required-attr",
|
|
273
276
|
"aria-required-attr",
|
|
274
277
|
"aria-required-children",
|
|
@@ -852,7 +855,7 @@ var CombinedReportHtmlGenerator = class {
|
|
|
852
855
|
};
|
|
853
856
|
|
|
854
857
|
// src/common/components/cards/failed-instances-section.tsx
|
|
855
|
-
var
|
|
858
|
+
var React29 = __toESM(require("react"));
|
|
856
859
|
|
|
857
860
|
// src/reports/components/outcome-counter.ts
|
|
858
861
|
var countByCards = (cards) => cards.length;
|
|
@@ -871,14 +874,14 @@ var OutcomeCounter = {
|
|
|
871
874
|
var failed_instances_section_default = { "failedInstancesContainer": "failed-instances-container--3UUNb" };
|
|
872
875
|
|
|
873
876
|
// src/common/components/cards/result-section.tsx
|
|
874
|
-
var
|
|
875
|
-
var
|
|
877
|
+
var import_utilities4 = require("@fluentui/utilities");
|
|
878
|
+
var React28 = __toESM(require("react"));
|
|
876
879
|
|
|
877
880
|
// src/common/components/cards/result-section-content.tsx
|
|
878
|
-
var
|
|
881
|
+
var React26 = __toESM(require("react"));
|
|
879
882
|
|
|
880
883
|
// src/common/components/cards/rules-with-instances.tsx
|
|
881
|
-
var
|
|
884
|
+
var React25 = __toESM(require("react"));
|
|
882
885
|
|
|
883
886
|
// src/common/icons/check-icon.tsx
|
|
884
887
|
var React7 = __toESM(require("react"));
|
|
@@ -1105,412 +1108,124 @@ var MinimalRuleHeader = NamedFC("MinimalRuleHeader", (props) => {
|
|
|
1105
1108
|
});
|
|
1106
1109
|
|
|
1107
1110
|
// src/common/components/cards/rule-content.tsx
|
|
1108
|
-
var
|
|
1111
|
+
var React24 = __toESM(require("react"));
|
|
1112
|
+
|
|
1113
|
+
// src/common/configs/needs-review-rule-resources.ts
|
|
1114
|
+
var needsReviewRuleResourcesPath = "https://accessibilityinsights.io/info-examples/web/needs-review";
|
|
1115
|
+
var isOutcomeNeedsReview = (outcomeType) => {
|
|
1116
|
+
return outcomeType === "review";
|
|
1117
|
+
};
|
|
1118
|
+
var getNeedsReviewRuleResourcesUrl = (ruleId) => {
|
|
1119
|
+
return `${needsReviewRuleResourcesPath}/${ruleId}`;
|
|
1120
|
+
};
|
|
1109
1121
|
|
|
1110
1122
|
// src/common/components/cards/instance-details-group.tsx
|
|
1111
|
-
var
|
|
1123
|
+
var React20 = __toESM(require("react"));
|
|
1112
1124
|
|
|
1113
|
-
// src/common/components/cards/
|
|
1125
|
+
// src/common/components/cards/instance-details.tsx
|
|
1126
|
+
var import_classnames = __toESM(require("classnames"));
|
|
1114
1127
|
var import_lodash4 = require("lodash");
|
|
1115
|
-
var
|
|
1116
|
-
|
|
1117
|
-
// src/common/components/cards/simple-card-row.tsx
|
|
1118
|
-
var import_utilities3 = require("@fluentui/utilities");
|
|
1119
|
-
var React14 = __toESM(require("react"));
|
|
1128
|
+
var React19 = __toESM(require("react"));
|
|
1120
1129
|
|
|
1121
1130
|
// src/reports/components/instance-details.scss
|
|
1122
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" };
|
|
1123
1132
|
|
|
1124
|
-
// src/common/components/cards/
|
|
1125
|
-
var
|
|
1126
|
-
"SimpleCardRow",
|
|
1127
|
-
({ label: givenLabel, content, rowKey, contentClassName }) => {
|
|
1128
|
-
const contentStyling = (0, import_utilities3.css)(instance_details_default.rowContent, contentClassName);
|
|
1129
|
-
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));
|
|
1130
|
-
}
|
|
1131
|
-
);
|
|
1132
|
-
|
|
1133
|
-
// src/common/components/cards/get-labelled-string-property-card-row.tsx
|
|
1134
|
-
var GetLabelledStringPropertyCardRow = (label, contentClassName) => {
|
|
1135
|
-
return NamedFC("StringPropertyCardRowProps", (props) => {
|
|
1136
|
-
if ((0, import_lodash4.isEmpty)(props.propertyData)) {
|
|
1137
|
-
return null;
|
|
1138
|
-
}
|
|
1139
|
-
return /* @__PURE__ */ React15.createElement(
|
|
1140
|
-
SimpleCardRow,
|
|
1141
|
-
{
|
|
1142
|
-
label,
|
|
1143
|
-
content: props.propertyData,
|
|
1144
|
-
rowKey: `${label}-${props.index}`,
|
|
1145
|
-
contentClassName
|
|
1146
|
-
}
|
|
1147
|
-
);
|
|
1148
|
-
});
|
|
1149
|
-
};
|
|
1133
|
+
// src/common/components/cards/instance-details-footer.tsx
|
|
1134
|
+
var import_react5 = require("@fluentui/react");
|
|
1150
1135
|
|
|
1151
|
-
// src/common/components/cards/
|
|
1152
|
-
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");
|
|
1153
1139
|
|
|
1154
|
-
// src/common/
|
|
1155
|
-
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
|
+
));
|
|
1156
1158
|
|
|
1157
|
-
// src/common/components/cards/
|
|
1158
|
-
var import_lodash5 = require("lodash");
|
|
1159
|
+
// src/common/components/cards/card-footer-instance-action-buttons.tsx
|
|
1159
1160
|
var React16 = __toESM(require("react"));
|
|
1160
1161
|
|
|
1161
|
-
// src/common/components/
|
|
1162
|
-
var
|
|
1163
|
-
|
|
1164
|
-
// src/common/components/cards/related-paths-card-row.tsx
|
|
1165
|
-
var RelatedPathsCardRow = NamedFC(
|
|
1166
|
-
"RelatedPathsCardRow",
|
|
1167
|
-
({ index, propertyData }) => {
|
|
1168
|
-
if ((0, import_lodash5.isEmpty)(propertyData)) {
|
|
1169
|
-
return null;
|
|
1170
|
-
}
|
|
1171
|
-
return /* @__PURE__ */ React16.createElement(
|
|
1172
|
-
SimpleCardRow,
|
|
1173
|
-
{
|
|
1174
|
-
label: `Related paths`,
|
|
1175
|
-
content: /* @__PURE__ */ React16.createElement("ul", { className: related_paths_card_row_default.pathList }, propertyData.map((selector) => /* @__PURE__ */ React16.createElement("li", { key: selector }, selector))),
|
|
1176
|
-
rowKey: `related-paths-row-${index}`
|
|
1177
|
-
}
|
|
1178
|
-
);
|
|
1179
|
-
}
|
|
1180
|
-
);
|
|
1181
|
-
|
|
1182
|
-
// src/common/components/cards/rich-resolution-card-row.tsx
|
|
1183
|
-
var React19 = __toESM(require("react"));
|
|
1184
|
-
|
|
1185
|
-
// src/assessments/markup.tsx
|
|
1186
|
-
var React17 = __toESM(require("react"));
|
|
1187
|
-
function Term(props) {
|
|
1188
|
-
return /* @__PURE__ */ React17.createElement("strong", null, props.children);
|
|
1189
|
-
}
|
|
1190
|
-
|
|
1191
|
-
// src/common/components/cards/rich-resolution-content.tsx
|
|
1192
|
-
var React18 = __toESM(require("react"));
|
|
1162
|
+
// src/common/components/toast.tsx
|
|
1163
|
+
var import_utilities3 = require("@fluentui/utilities");
|
|
1164
|
+
var React15 = __toESM(require("react"));
|
|
1193
1165
|
|
|
1194
|
-
// src/common/components/
|
|
1195
|
-
var
|
|
1166
|
+
// src/common/components/toast.scss
|
|
1167
|
+
var toast_default = { "toastContainer": "toast-container--L-5HM", "toastContent": "toast-content--8-Mx1" };
|
|
1196
1168
|
|
|
1197
|
-
// src/common/components/
|
|
1198
|
-
var
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
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"), ".")));
|
|
1207
|
-
}
|
|
1208
|
-
case "web/th-has-data-cells": {
|
|
1209
|
-
return /* @__PURE__ */ React18.createElement("div", null, "Examine the header cell in the context of the table to verify that it has no data cells.");
|
|
1210
|
-
}
|
|
1211
|
-
case "web/label-content-name-mismatch": {
|
|
1212
|
-
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.");
|
|
1213
|
-
}
|
|
1214
|
-
case "web/p-as-heading": {
|
|
1215
|
-
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.");
|
|
1216
|
-
}
|
|
1217
|
-
default: {
|
|
1218
|
-
throw new Error(
|
|
1219
|
-
`Cannot render RichResolutionContent with unrecognized contentId ${contentId}`
|
|
1220
|
-
);
|
|
1221
|
-
}
|
|
1222
|
-
}
|
|
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 };
|
|
1223
1178
|
}
|
|
1224
|
-
)
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
({ deps, index, propertyData }) => {
|
|
1230
|
-
return /* @__PURE__ */ React19.createElement(
|
|
1231
|
-
SimpleCardRow,
|
|
1232
|
-
{
|
|
1233
|
-
label: `How to ${propertyData.labelType}`,
|
|
1234
|
-
content: /* @__PURE__ */ React19.createElement(RichResolutionContent, { deps, ...propertyData }),
|
|
1235
|
-
rowKey: `rich-resolution-row-${index}`
|
|
1236
|
-
}
|
|
1237
|
-
);
|
|
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);
|
|
1238
1184
|
}
|
|
1239
|
-
)
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
// src/common/components/cards/urls-card-row.tsx
|
|
1245
|
-
var React20 = __toESM(require("react"));
|
|
1246
|
-
|
|
1247
|
-
// src/common/components/cards/urls-card-row.scss
|
|
1248
|
-
var urls_card_row_default = { "urlsRowContent": "urls-row-content--JDdRx", "urlsRowContentNewFailure": "urls-row-content-new-Failure--oL5lS" };
|
|
1249
|
-
|
|
1250
|
-
// src/common/components/cards/urls-card-row.tsx
|
|
1251
|
-
var UrlsCardRow = NamedFC("UrlsCardRow", ({ deps, ...props }) => {
|
|
1252
|
-
const urlInfos = props.propertyData.urlInfos;
|
|
1253
|
-
const renderUrlContent = () => {
|
|
1254
|
-
return /* @__PURE__ */ React20.createElement("ul", { className: urls_card_row_default.urlsRowContent }, urlInfos.map((urlInfo, index) => getUrlListItem(urlInfo, index, deps)));
|
|
1255
|
-
};
|
|
1256
|
-
return /* @__PURE__ */ React20.createElement(
|
|
1257
|
-
SimpleCardRow,
|
|
1258
|
-
{
|
|
1259
|
-
label: "URL",
|
|
1260
|
-
content: renderUrlContent(),
|
|
1261
|
-
rowKey: `urls-row-${props.index}`
|
|
1185
|
+
componentWillUnmount() {
|
|
1186
|
+
if (this.timeoutId) {
|
|
1187
|
+
this.props.deps.windowUtils.clearTimeout(this.timeoutId);
|
|
1188
|
+
this.timeoutId = null;
|
|
1262
1189
|
}
|
|
1263
|
-
);
|
|
1264
|
-
});
|
|
1265
|
-
var isNewViolation = (urlInfo) => {
|
|
1266
|
-
return urlInfo.baselineStatus === "new";
|
|
1267
|
-
};
|
|
1268
|
-
function getUrlListItem(urlInfo, index, deps) {
|
|
1269
|
-
const key = `urls-${index}`;
|
|
1270
|
-
if (isNewViolation(urlInfo)) {
|
|
1271
|
-
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!"));
|
|
1272
1190
|
}
|
|
1273
|
-
|
|
1274
|
-
}
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
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
|
+
};
|
|
1278
1195
|
|
|
1279
|
-
// src/common/
|
|
1280
|
-
var
|
|
1281
|
-
CheckType2[CheckType2["All"] = 0] = "All";
|
|
1282
|
-
CheckType2[CheckType2["Any"] = 1] = "Any";
|
|
1283
|
-
CheckType2[CheckType2["None"] = 2] = "None";
|
|
1284
|
-
return CheckType2;
|
|
1285
|
-
})(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" };
|
|
1286
1198
|
|
|
1287
|
-
// src/common/components/
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
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();
|
|
1299
1212
|
} else {
|
|
1300
|
-
|
|
1213
|
+
(_c = this.fileIssueButtonRef) == null ? void 0 : _c.focus();
|
|
1301
1214
|
}
|
|
1302
1215
|
};
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
};
|
|
1309
|
-
if (props.checks.length === 0) {
|
|
1216
|
+
this.toastRef = React16.createRef();
|
|
1217
|
+
}
|
|
1218
|
+
render() {
|
|
1219
|
+
const menuItems = this.getMenuItems();
|
|
1220
|
+
if (menuItems.length === 0) {
|
|
1310
1221
|
return null;
|
|
1311
1222
|
}
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
var how_to_fix_card_row_default = { "howToFixContent": "how-to-fix-content--Zz96u" };
|
|
1319
|
-
|
|
1320
|
-
// src/common/components/cards/how-to-fix-card-row.tsx
|
|
1321
|
-
var HowToFixWebCardRow = NamedFC(
|
|
1322
|
-
"HowToFixWebCardRow",
|
|
1323
|
-
({ deps, ...props }) => {
|
|
1324
|
-
const { any: anyOf, all, none } = props.propertyData;
|
|
1325
|
-
const renderFixInstructionsContent = () => {
|
|
1326
|
-
return /* @__PURE__ */ React22.createElement("div", { className: how_to_fix_card_row_default.howToFixContent }, /* @__PURE__ */ React22.createElement(
|
|
1327
|
-
FixInstructionPanel,
|
|
1328
|
-
{
|
|
1329
|
-
deps,
|
|
1330
|
-
checkType: 0 /* All */,
|
|
1331
|
-
checks: all.concat(none).map(turnStringToMessageObject),
|
|
1332
|
-
renderTitleElement: renderFixInstructionsTitleElement
|
|
1333
|
-
}
|
|
1334
|
-
), /* @__PURE__ */ React22.createElement(
|
|
1335
|
-
FixInstructionPanel,
|
|
1336
|
-
{
|
|
1337
|
-
deps,
|
|
1338
|
-
checkType: 1 /* Any */,
|
|
1339
|
-
checks: anyOf.map(turnStringToMessageObject),
|
|
1340
|
-
renderTitleElement: renderFixInstructionsTitleElement
|
|
1341
|
-
}
|
|
1342
|
-
));
|
|
1343
|
-
};
|
|
1344
|
-
const turnStringToMessageObject = (s) => {
|
|
1345
|
-
return { message: s };
|
|
1346
|
-
};
|
|
1347
|
-
const renderFixInstructionsTitleElement = (titleText) => {
|
|
1348
|
-
return /* @__PURE__ */ React22.createElement("div", null, titleText);
|
|
1349
|
-
};
|
|
1350
|
-
return /* @__PURE__ */ React22.createElement(
|
|
1351
|
-
SimpleCardRow,
|
|
1352
|
-
{
|
|
1353
|
-
label: "How to fix",
|
|
1354
|
-
content: renderFixInstructionsContent(),
|
|
1355
|
-
rowKey: `how-to-fix-row-${props.index}`
|
|
1356
|
-
}
|
|
1357
|
-
);
|
|
1358
|
-
}
|
|
1359
|
-
);
|
|
1360
|
-
|
|
1361
|
-
// src/common/components/cards/path-card-row.tsx
|
|
1362
|
-
var PathCardRow = GetLabelledStringPropertyCardRow("Path");
|
|
1363
|
-
|
|
1364
|
-
// src/common/components/cards/snippet-card-row.scss
|
|
1365
|
-
var snippet_card_row_default = { "snippet": "snippet--hSNfv" };
|
|
1366
|
-
|
|
1367
|
-
// src/common/components/cards/snippet-card-row.tsx
|
|
1368
|
-
var SnippetCardRow = GetLabelledStringPropertyCardRow("Snippet", snippet_card_row_default.snippet);
|
|
1369
|
-
|
|
1370
|
-
// src/common/configs/unified-result-property-configurations.tsx
|
|
1371
|
-
var howToFixWebConfiguration = {
|
|
1372
|
-
cardRow: HowToFixWebCardRow
|
|
1373
|
-
};
|
|
1374
|
-
var richResolutionConfiguration = {
|
|
1375
|
-
cardRow: RichResolutionCardRow
|
|
1376
|
-
};
|
|
1377
|
-
var cssSelectorConfiguration = {
|
|
1378
|
-
cardRow: PathCardRow
|
|
1379
|
-
};
|
|
1380
|
-
var relatedCssSelectorsConfiguration = {
|
|
1381
|
-
cardRow: RelatedPathsCardRow
|
|
1382
|
-
};
|
|
1383
|
-
var snippetConfiguration = {
|
|
1384
|
-
cardRow: SnippetCardRow
|
|
1385
|
-
};
|
|
1386
|
-
var classNameConfiguration = {
|
|
1387
|
-
cardRow: ClassNameCardRow
|
|
1388
|
-
};
|
|
1389
|
-
var contentDescriptionConfiguration = {
|
|
1390
|
-
cardRow: ContentDescriptionCardRow
|
|
1391
|
-
};
|
|
1392
|
-
var textConfiguration = {
|
|
1393
|
-
cardRow: TextCardRow
|
|
1394
|
-
};
|
|
1395
|
-
var urlsConfiguration = {
|
|
1396
|
-
cardRow: UrlsCardRow
|
|
1397
|
-
};
|
|
1398
|
-
var propertyIdToConfigurationMap = {
|
|
1399
|
-
"css-selector": cssSelectorConfiguration,
|
|
1400
|
-
"how-to-fix-web": howToFixWebConfiguration,
|
|
1401
|
-
richResolution: richResolutionConfiguration,
|
|
1402
|
-
snippet: snippetConfiguration,
|
|
1403
|
-
className: classNameConfiguration,
|
|
1404
|
-
contentDescription: contentDescriptionConfiguration,
|
|
1405
|
-
text: textConfiguration,
|
|
1406
|
-
urls: urlsConfiguration,
|
|
1407
|
-
relatedCssSelectors: relatedCssSelectorsConfiguration
|
|
1408
|
-
};
|
|
1409
|
-
function getPropertyConfiguration(id2) {
|
|
1410
|
-
return propertyIdToConfigurationMap[id2];
|
|
1411
|
-
}
|
|
1412
|
-
|
|
1413
|
-
// src/common/components/cards/instance-details.tsx
|
|
1414
|
-
var import_classnames = __toESM(require("classnames"));
|
|
1415
|
-
var import_lodash6 = require("lodash");
|
|
1416
|
-
var React28 = __toESM(require("react"));
|
|
1417
|
-
|
|
1418
|
-
// src/common/components/cards/instance-details-footer.tsx
|
|
1419
|
-
var import_react5 = require("@fluentui/react");
|
|
1420
|
-
|
|
1421
|
-
// src/common/components/cards/card-footer-instance-action-buttons.tsx
|
|
1422
|
-
var import_react4 = require("@fluentui/react");
|
|
1423
|
-
var import_Styling = require("@fluentui/react/lib/Styling");
|
|
1424
|
-
|
|
1425
|
-
// src/common/icons/more-actions-menu-icon.tsx
|
|
1426
|
-
var React23 = __toESM(require("react"));
|
|
1427
|
-
var MoreActionsMenuIcon = NamedFC("MoreActionsMenuIcon", () => /* @__PURE__ */ React23.createElement(
|
|
1428
|
-
"svg",
|
|
1429
|
-
{
|
|
1430
|
-
width: "10",
|
|
1431
|
-
height: "16",
|
|
1432
|
-
viewBox: "0 0 10 16",
|
|
1433
|
-
fill: "none",
|
|
1434
|
-
stroke: "currentColor",
|
|
1435
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1436
|
-
role: "img",
|
|
1437
|
-
"aria-hidden": "true"
|
|
1438
|
-
},
|
|
1439
|
-
/* @__PURE__ */ React23.createElement("circle", { cx: "5", cy: "14", r: "1.5" }),
|
|
1440
|
-
/* @__PURE__ */ React23.createElement("circle", { cx: "5", cy: "8", r: "1.5" }),
|
|
1441
|
-
/* @__PURE__ */ React23.createElement("circle", { cx: "5", cy: "2", r: "1.5" })
|
|
1442
|
-
));
|
|
1443
|
-
|
|
1444
|
-
// src/common/components/cards/card-footer-instance-action-buttons.tsx
|
|
1445
|
-
var React25 = __toESM(require("react"));
|
|
1446
|
-
|
|
1447
|
-
// src/common/components/toast.tsx
|
|
1448
|
-
var import_utilities4 = require("@fluentui/utilities");
|
|
1449
|
-
var React24 = __toESM(require("react"));
|
|
1450
|
-
|
|
1451
|
-
// src/common/components/toast.scss
|
|
1452
|
-
var toast_default = { "toastContainer": "toast-container--L-5HM", "toastContent": "toast-content--8-Mx1" };
|
|
1453
|
-
|
|
1454
|
-
// src/common/components/toast.tsx
|
|
1455
|
-
var Toast = class _Toast extends React24.Component {
|
|
1456
|
-
timeoutId;
|
|
1457
|
-
static defaultProps = {
|
|
1458
|
-
timeoutLength: 6e3
|
|
1459
|
-
};
|
|
1460
|
-
constructor(props) {
|
|
1461
|
-
super(props);
|
|
1462
|
-
this.state = { toastVisible: false, content: null };
|
|
1463
|
-
}
|
|
1464
|
-
show(content) {
|
|
1465
|
-
this.setState({ toastVisible: true, content });
|
|
1466
|
-
this.timeoutId = this.props.deps.windowUtils.setTimeout(() => {
|
|
1467
|
-
this.setState({ toastVisible: false, content: null });
|
|
1468
|
-
}, this.props.timeoutLength ?? _Toast.defaultProps.timeoutLength);
|
|
1469
|
-
}
|
|
1470
|
-
componentWillUnmount() {
|
|
1471
|
-
if (this.timeoutId) {
|
|
1472
|
-
this.props.deps.windowUtils.clearTimeout(this.timeoutId);
|
|
1473
|
-
this.timeoutId = null;
|
|
1474
|
-
}
|
|
1475
|
-
}
|
|
1476
|
-
render() {
|
|
1477
|
-
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);
|
|
1478
|
-
}
|
|
1479
|
-
};
|
|
1480
|
-
|
|
1481
|
-
// src/common/components/cards/card-footer-instance-action-buttons.scss
|
|
1482
|
-
var card_footer_instance_action_buttons_default = { "kebabMenuIcon": "kebab-menu-icon--EUIj-", "kebabMenuButton": "kebab-menu-button--9Qt0a" };
|
|
1483
|
-
|
|
1484
|
-
// src/common/components/cards/card-footer-instance-action-buttons.tsx
|
|
1485
|
-
(0, import_Styling.registerIcons)({
|
|
1486
|
-
icons: {
|
|
1487
|
-
MoreActionsMenuIcon: /* @__PURE__ */ React25.createElement(MoreActionsMenuIcon, null)
|
|
1488
|
-
}
|
|
1489
|
-
});
|
|
1490
|
-
var CardFooterInstanceActionButtons = class extends React25.Component {
|
|
1491
|
-
constructor(props) {
|
|
1492
|
-
super(props);
|
|
1493
|
-
this.focusButtonAfterDialogClosed = () => {
|
|
1494
|
-
var _a, _b, _c;
|
|
1495
|
-
if ((_a = this.props.narrowModeStatus) == null ? void 0 : _a.isCardFooterCollapsed) {
|
|
1496
|
-
(_b = this.kebabButtonRef) == null ? void 0 : _b.focus();
|
|
1497
|
-
} else {
|
|
1498
|
-
(_c = this.fileIssueButtonRef) == null ? void 0 : _c.focus();
|
|
1499
|
-
}
|
|
1500
|
-
};
|
|
1501
|
-
this.toastRef = React25.createRef();
|
|
1502
|
-
}
|
|
1503
|
-
render() {
|
|
1504
|
-
const menuItems = this.getMenuItems();
|
|
1505
|
-
if (menuItems.length === 0) {
|
|
1506
|
-
return null;
|
|
1507
|
-
}
|
|
1508
|
-
return (
|
|
1509
|
-
// The wrapper has to be a real element, not a <>, because we want the placeholder elements
|
|
1510
|
-
// the dialog/toast involve to be considered as part of the button for the purposes of layout
|
|
1511
|
-
// calculation in this component's parent.
|
|
1512
|
-
/* @__PURE__ */ React25.createElement("div", { onKeyDown: (event) => event.stopPropagation() }, this.renderButtons(), this.renderCopyFailureDetailsToast())
|
|
1513
|
-
);
|
|
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
|
+
);
|
|
1514
1229
|
}
|
|
1515
1230
|
renderButtons() {
|
|
1516
1231
|
var _a;
|
|
@@ -1521,7 +1236,7 @@ var CardFooterInstanceActionButtons = class extends React25.Component {
|
|
|
1521
1236
|
}
|
|
1522
1237
|
}
|
|
1523
1238
|
renderKebabButton() {
|
|
1524
|
-
return /* @__PURE__ */
|
|
1239
|
+
return /* @__PURE__ */ React16.createElement(
|
|
1525
1240
|
import_react4.ActionButton,
|
|
1526
1241
|
{
|
|
1527
1242
|
componentRef: (ref) => this.kebabButtonRef = ref,
|
|
@@ -1540,7 +1255,7 @@ var CardFooterInstanceActionButtons = class extends React25.Component {
|
|
|
1540
1255
|
}
|
|
1541
1256
|
renderExpandedButtons() {
|
|
1542
1257
|
const menuItems = this.getMenuItems();
|
|
1543
|
-
return /* @__PURE__ */
|
|
1258
|
+
return /* @__PURE__ */ React16.createElement(React16.Fragment, null, menuItems.map((props) => /* @__PURE__ */ React16.createElement("span", { key: props.key }, /* @__PURE__ */ React16.createElement(
|
|
1544
1259
|
import_react4.ActionButton,
|
|
1545
1260
|
{
|
|
1546
1261
|
onClick: props.onClick,
|
|
@@ -1556,7 +1271,7 @@ var CardFooterInstanceActionButtons = class extends React25.Component {
|
|
|
1556
1271
|
if (!cardInteractionSupport.supportsCopyFailureDetails) {
|
|
1557
1272
|
return null;
|
|
1558
1273
|
}
|
|
1559
|
-
return /* @__PURE__ */
|
|
1274
|
+
return /* @__PURE__ */ React16.createElement(Toast, { ref: this.toastRef, deps: this.props.deps });
|
|
1560
1275
|
}
|
|
1561
1276
|
getMenuItems() {
|
|
1562
1277
|
return this.props.deps.cardFooterMenuItemsBuilder.getCardFooterMenuItems({
|
|
@@ -1569,8 +1284,8 @@ var CardFooterInstanceActionButtons = class extends React25.Component {
|
|
|
1569
1284
|
};
|
|
1570
1285
|
|
|
1571
1286
|
// src/common/icons/highlight-status-icons.tsx
|
|
1572
|
-
var
|
|
1573
|
-
var HighlightVisibleIcon = NamedFC("HighlightVisibleIcon", () => /* @__PURE__ */
|
|
1287
|
+
var React17 = __toESM(require("react"));
|
|
1288
|
+
var HighlightVisibleIcon = NamedFC("HighlightVisibleIcon", () => /* @__PURE__ */ React17.createElement(
|
|
1574
1289
|
"svg",
|
|
1575
1290
|
{
|
|
1576
1291
|
width: "34",
|
|
@@ -1580,7 +1295,7 @@ var HighlightVisibleIcon = NamedFC("HighlightVisibleIcon", () => /* @__PURE__ */
|
|
|
1580
1295
|
role: "img",
|
|
1581
1296
|
"aria-hidden": "true"
|
|
1582
1297
|
},
|
|
1583
|
-
/* @__PURE__ */
|
|
1298
|
+
/* @__PURE__ */ React17.createElement(
|
|
1584
1299
|
"path",
|
|
1585
1300
|
{
|
|
1586
1301
|
fillRule: "evenodd",
|
|
@@ -1589,7 +1304,7 @@ var HighlightVisibleIcon = NamedFC("HighlightVisibleIcon", () => /* @__PURE__ */
|
|
|
1589
1304
|
}
|
|
1590
1305
|
)
|
|
1591
1306
|
));
|
|
1592
|
-
var HighlightUnavailableIcon = NamedFC("HighlightUnavailableIcon", () => /* @__PURE__ */
|
|
1307
|
+
var HighlightUnavailableIcon = NamedFC("HighlightUnavailableIcon", () => /* @__PURE__ */ React17.createElement(
|
|
1593
1308
|
"svg",
|
|
1594
1309
|
{
|
|
1595
1310
|
width: "34",
|
|
@@ -1599,7 +1314,7 @@ var HighlightUnavailableIcon = NamedFC("HighlightUnavailableIcon", () => /* @__P
|
|
|
1599
1314
|
role: "img",
|
|
1600
1315
|
"aria-hidden": "true"
|
|
1601
1316
|
},
|
|
1602
|
-
/* @__PURE__ */
|
|
1317
|
+
/* @__PURE__ */ React17.createElement(
|
|
1603
1318
|
"path",
|
|
1604
1319
|
{
|
|
1605
1320
|
fillRule: "evenodd",
|
|
@@ -1608,7 +1323,7 @@ var HighlightUnavailableIcon = NamedFC("HighlightUnavailableIcon", () => /* @__P
|
|
|
1608
1323
|
}
|
|
1609
1324
|
)
|
|
1610
1325
|
));
|
|
1611
|
-
var HighlightHiddenIcon = NamedFC("HighlightHiddenIcon", () => /* @__PURE__ */
|
|
1326
|
+
var HighlightHiddenIcon = NamedFC("HighlightHiddenIcon", () => /* @__PURE__ */ React17.createElement(
|
|
1612
1327
|
"svg",
|
|
1613
1328
|
{
|
|
1614
1329
|
width: "34",
|
|
@@ -1618,7 +1333,7 @@ var HighlightHiddenIcon = NamedFC("HighlightHiddenIcon", () => /* @__PURE__ */ R
|
|
|
1618
1333
|
role: "img",
|
|
1619
1334
|
"aria-hidden": "true"
|
|
1620
1335
|
},
|
|
1621
|
-
/* @__PURE__ */
|
|
1336
|
+
/* @__PURE__ */ React17.createElement(
|
|
1622
1337
|
"path",
|
|
1623
1338
|
{
|
|
1624
1339
|
fillRule: "evenodd",
|
|
@@ -1629,7 +1344,7 @@ var HighlightHiddenIcon = NamedFC("HighlightHiddenIcon", () => /* @__PURE__ */ R
|
|
|
1629
1344
|
));
|
|
1630
1345
|
|
|
1631
1346
|
// src/common/components/cards/instance-details-footer.tsx
|
|
1632
|
-
var
|
|
1347
|
+
var React18 = __toESM(require("react"));
|
|
1633
1348
|
|
|
1634
1349
|
// src/common/components/cards/instance-details-footer.scss
|
|
1635
1350
|
var instance_details_footer_default = { "foot": "foot--p1DfC", "highlightStatus": "highlight-status--xJvvI" };
|
|
@@ -1651,7 +1366,7 @@ var InstanceDetailsFooter = NamedFC(
|
|
|
1651
1366
|
}
|
|
1652
1367
|
const issueDetailsData = deps.unifiedResultToIssueFilingDataConverter.convert(result, rule, targetAppInfo);
|
|
1653
1368
|
const kebabMenuAriaLabel = `More Actions for failure instance ${result.identifiers.identifier} in rule ${rule.id}`;
|
|
1654
|
-
return /* @__PURE__ */
|
|
1369
|
+
return /* @__PURE__ */ React18.createElement(
|
|
1655
1370
|
CardFooterInstanceActionButtons,
|
|
1656
1371
|
{
|
|
1657
1372
|
deps,
|
|
@@ -1669,13 +1384,13 @@ var InstanceDetailsFooter = NamedFC(
|
|
|
1669
1384
|
const highlightState = result.highlightStatus;
|
|
1670
1385
|
const label = "Highlight " + highlightState;
|
|
1671
1386
|
const icon = {
|
|
1672
|
-
unavailable: /* @__PURE__ */
|
|
1673
|
-
visible: /* @__PURE__ */
|
|
1674
|
-
hidden: /* @__PURE__ */
|
|
1387
|
+
unavailable: /* @__PURE__ */ React18.createElement(HighlightUnavailableIcon, null),
|
|
1388
|
+
visible: /* @__PURE__ */ React18.createElement(HighlightVisibleIcon, null),
|
|
1389
|
+
hidden: /* @__PURE__ */ React18.createElement(HighlightHiddenIcon, null)
|
|
1675
1390
|
}[highlightState];
|
|
1676
|
-
return /* @__PURE__ */
|
|
1391
|
+
return /* @__PURE__ */ React18.createElement("div", { className: instance_details_footer_default.highlightStatus }, icon, /* @__PURE__ */ React18.createElement(import_react5.Label, null, label));
|
|
1677
1392
|
};
|
|
1678
|
-
return /* @__PURE__ */
|
|
1393
|
+
return /* @__PURE__ */ React18.createElement("div", { className: instance_details_footer_default.foot }, renderHighlightStatus(), renderKebabMenu());
|
|
1679
1394
|
}
|
|
1680
1395
|
);
|
|
1681
1396
|
|
|
@@ -1691,7 +1406,7 @@ var InstanceDetails = NamedFC("InstanceDetails", (props) => {
|
|
|
1691
1406
|
cardSelectionMessageCreator,
|
|
1692
1407
|
narrowModeStatus
|
|
1693
1408
|
} = props;
|
|
1694
|
-
const [cardFocused, setCardFocus] =
|
|
1409
|
+
const [cardFocused, setCardFocus] = React19.useState(false);
|
|
1695
1410
|
const isHighlightSupported = deps.cardInteractionSupport.supportsHighlighting;
|
|
1696
1411
|
const instanceDetailsCardStyling = (0, import_classnames.default)({
|
|
1697
1412
|
[instance_details_default.instanceDetailsCard]: true,
|
|
@@ -1707,7 +1422,7 @@ var InstanceDetails = NamedFC("InstanceDetails", (props) => {
|
|
|
1707
1422
|
event.stopPropagation();
|
|
1708
1423
|
cardSelectionMessageCreator == null ? void 0 : cardSelectionMessageCreator.toggleCardSelection(result.ruleId, result.uid, event);
|
|
1709
1424
|
};
|
|
1710
|
-
const hiddenButton =
|
|
1425
|
+
const hiddenButton = React19.useRef(null);
|
|
1711
1426
|
const cardHighlightingProperties = isHighlightSupported ? {
|
|
1712
1427
|
onClick: (event) => {
|
|
1713
1428
|
var _a, _b;
|
|
@@ -1718,13 +1433,13 @@ var InstanceDetails = NamedFC("InstanceDetails", (props) => {
|
|
|
1718
1433
|
},
|
|
1719
1434
|
tabIndex: -1
|
|
1720
1435
|
} : {};
|
|
1721
|
-
return /* @__PURE__ */
|
|
1436
|
+
return /* @__PURE__ */ React19.createElement(
|
|
1722
1437
|
"div",
|
|
1723
1438
|
{
|
|
1724
1439
|
"data-automation-id": instanceCardAutomationId,
|
|
1725
1440
|
className: instanceDetailsCardContainerStyling
|
|
1726
1441
|
},
|
|
1727
|
-
/* @__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(
|
|
1728
1443
|
"button",
|
|
1729
1444
|
{
|
|
1730
1445
|
ref: hiddenButton,
|
|
@@ -1735,7 +1450,7 @@ var InstanceDetails = NamedFC("InstanceDetails", (props) => {
|
|
|
1735
1450
|
onFocus: (_) => setCardFocus(true),
|
|
1736
1451
|
onBlur: (_) => setCardFocus(false)
|
|
1737
1452
|
}
|
|
1738
|
-
), /* @__PURE__ */
|
|
1453
|
+
), /* @__PURE__ */ React19.createElement(
|
|
1739
1454
|
InstanceDetailsFooter,
|
|
1740
1455
|
{
|
|
1741
1456
|
deps,
|
|
@@ -1751,13 +1466,13 @@ var InstanceDetails = NamedFC("InstanceDetails", (props) => {
|
|
|
1751
1466
|
var renderCardRowsForPropertyBag = (propertyBag, props) => {
|
|
1752
1467
|
let propertyIndex = 0;
|
|
1753
1468
|
const cardRows = [];
|
|
1754
|
-
(0,
|
|
1469
|
+
(0, import_lodash4.forOwn)(propertyBag, (propertyData, propertyName) => {
|
|
1755
1470
|
const propertyConfig = props.deps.getPropertyConfigById(propertyName);
|
|
1756
|
-
if (!(0,
|
|
1471
|
+
if (!(0, import_lodash4.isEmpty)(propertyConfig)) {
|
|
1757
1472
|
const CardRow = propertyConfig.cardRow;
|
|
1758
1473
|
++propertyIndex;
|
|
1759
1474
|
cardRows.push(
|
|
1760
|
-
/* @__PURE__ */
|
|
1475
|
+
/* @__PURE__ */ React19.createElement(
|
|
1761
1476
|
CardRow,
|
|
1762
1477
|
{
|
|
1763
1478
|
deps: props.deps,
|
|
@@ -1769,7 +1484,7 @@ var renderCardRowsForPropertyBag = (propertyBag, props) => {
|
|
|
1769
1484
|
);
|
|
1770
1485
|
}
|
|
1771
1486
|
});
|
|
1772
|
-
return /* @__PURE__ */
|
|
1487
|
+
return /* @__PURE__ */ React19.createElement(React19.Fragment, null, cardRows);
|
|
1773
1488
|
};
|
|
1774
1489
|
|
|
1775
1490
|
// src/common/components/cards/instance-details-group.scss
|
|
@@ -1795,20 +1510,19 @@ var InstanceDetailsGroup = NamedFC(
|
|
|
1795
1510
|
url: rule.url,
|
|
1796
1511
|
guidance: rule.guidance
|
|
1797
1512
|
};
|
|
1798
|
-
return /* @__PURE__ */
|
|
1513
|
+
return /* @__PURE__ */ React20.createElement(
|
|
1799
1514
|
"ul",
|
|
1800
1515
|
{
|
|
1801
1516
|
"data-automation-id": ruleContentAutomationId,
|
|
1802
1517
|
className: instance_details_group_default.instanceDetailsList,
|
|
1803
1518
|
"aria-label": "instances with additional information like path, snippet and how to fix"
|
|
1804
1519
|
},
|
|
1805
|
-
nodes.map((node, index) => /* @__PURE__ */
|
|
1520
|
+
nodes.map((node, index) => /* @__PURE__ */ React20.createElement("li", { key: `instance-details-${index}` }, /* @__PURE__ */ React20.createElement(
|
|
1806
1521
|
InstanceDetails,
|
|
1807
1522
|
{
|
|
1808
1523
|
...{ index },
|
|
1809
1524
|
deps,
|
|
1810
1525
|
result: node,
|
|
1811
|
-
getPropertyConfigById: getPropertyConfiguration,
|
|
1812
1526
|
userConfigurationStoreData,
|
|
1813
1527
|
rule: unifiedRule,
|
|
1814
1528
|
targetAppInfo,
|
|
@@ -1821,11 +1535,11 @@ var InstanceDetailsGroup = NamedFC(
|
|
|
1821
1535
|
);
|
|
1822
1536
|
|
|
1823
1537
|
// src/common/components/guidance-links.tsx
|
|
1824
|
-
var
|
|
1825
|
-
var
|
|
1538
|
+
var import_lodash5 = require("lodash");
|
|
1539
|
+
var React21 = __toESM(require("react"));
|
|
1826
1540
|
var GuidanceLinks = NamedFC("GuidanceLinks", (props) => {
|
|
1827
1541
|
const { links, classNameForDiv } = props;
|
|
1828
|
-
if ((0,
|
|
1542
|
+
if ((0, import_lodash5.isEmpty)(links)) {
|
|
1829
1543
|
return null;
|
|
1830
1544
|
}
|
|
1831
1545
|
const renderLinks = () => {
|
|
@@ -1835,67 +1549,72 @@ var GuidanceLinks = NamedFC("GuidanceLinks", (props) => {
|
|
|
1835
1549
|
});
|
|
1836
1550
|
};
|
|
1837
1551
|
const getLinksWithDestinations = () => {
|
|
1838
|
-
return links.filter((link2) => !(0,
|
|
1552
|
+
return links.filter((link2) => !(0, import_lodash5.isEmpty)(link2.href));
|
|
1839
1553
|
};
|
|
1840
1554
|
const renderLink = (link2, index, length) => {
|
|
1841
1555
|
const addComma = index !== length - 1;
|
|
1842
|
-
const comma = addComma ? /* @__PURE__ */
|
|
1556
|
+
const comma = addComma ? /* @__PURE__ */ React21.createElement("span", null, ",\xA0") : null;
|
|
1843
1557
|
const LinkComponent = props.LinkComponent;
|
|
1844
|
-
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);
|
|
1845
1559
|
};
|
|
1846
1560
|
const spanClassName = classNameForDiv || "guidance-links";
|
|
1847
|
-
return /* @__PURE__ */
|
|
1561
|
+
return /* @__PURE__ */ React21.createElement("span", { className: spanClassName }, renderLinks());
|
|
1848
1562
|
});
|
|
1849
1563
|
|
|
1850
1564
|
// src/common/components/guidance-tags.tsx
|
|
1851
|
-
var
|
|
1852
|
-
var
|
|
1565
|
+
var import_lodash6 = require("lodash");
|
|
1566
|
+
var React22 = __toESM(require("react"));
|
|
1853
1567
|
var GuidanceTags = NamedFC("GuidanceTags", (props) => {
|
|
1854
1568
|
const { links, deps } = props;
|
|
1855
|
-
if ((0,
|
|
1569
|
+
if ((0, import_lodash6.isEmpty)(links)) {
|
|
1856
1570
|
return null;
|
|
1857
1571
|
}
|
|
1858
1572
|
const tags = deps.getGuidanceTagsFromGuidanceLinks(links);
|
|
1859
|
-
if ((0,
|
|
1573
|
+
if ((0, import_lodash6.isEmpty)(tags)) {
|
|
1860
1574
|
return null;
|
|
1861
1575
|
}
|
|
1862
1576
|
const tagElements = tags.map((tag, index) => {
|
|
1863
|
-
return /* @__PURE__ */
|
|
1577
|
+
return /* @__PURE__ */ React22.createElement("span", { key: index }, tag.displayText);
|
|
1864
1578
|
});
|
|
1865
|
-
return /* @__PURE__ */
|
|
1579
|
+
return /* @__PURE__ */ React22.createElement("span", { className: "guidance-tags" }, tagElements);
|
|
1866
1580
|
});
|
|
1867
1581
|
|
|
1868
1582
|
// src/common/components/cards/rule-resources.tsx
|
|
1869
|
-
var
|
|
1870
|
-
var
|
|
1583
|
+
var import_lodash7 = require("lodash");
|
|
1584
|
+
var React23 = __toESM(require("react"));
|
|
1871
1585
|
|
|
1872
1586
|
// src/common/components/cards/rule-resources.scss
|
|
1873
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" };
|
|
1874
1588
|
|
|
1875
1589
|
// src/common/components/cards/rule-resources.tsx
|
|
1876
|
-
var RuleResources = NamedFC(
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
const renderTitle = () => /* @__PURE__ */ React32.createElement("div", { className: rule_resources_default.moreResourcesTitle }, "Resources for this rule");
|
|
1881
|
-
const renderRuleLink = () => {
|
|
1882
|
-
if (rule.url == null) {
|
|
1590
|
+
var RuleResources = NamedFC(
|
|
1591
|
+
"RuleResources",
|
|
1592
|
+
({ deps, rule, outcomeType }) => {
|
|
1593
|
+
if (rule.url == null && (0, import_lodash7.isEmpty)(rule.guidance)) {
|
|
1883
1594
|
return null;
|
|
1884
1595
|
}
|
|
1885
|
-
const
|
|
1886
|
-
const
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1596
|
+
const renderTitle = () => /* @__PURE__ */ React23.createElement("div", { className: rule_resources_default.moreResourcesTitle }, "Resources for this rule");
|
|
1597
|
+
const renderRuleLink = () => {
|
|
1598
|
+
if (rule.url == null) {
|
|
1599
|
+
return null;
|
|
1600
|
+
}
|
|
1601
|
+
const ruleId = rule.id;
|
|
1602
|
+
const ruleUrl = deps.IsOutcomeNeedsReview(outcomeType) ? deps.GetNeedsReviewRuleResourcesUrl(ruleId) : rule.url;
|
|
1603
|
+
return /* @__PURE__ */ React23.createElement("span", { className: rule_resources_default.ruleDetailsId }, /* @__PURE__ */ React23.createElement(deps.LinkComponent, { href: ruleUrl }, "More information about ", ruleId));
|
|
1604
|
+
};
|
|
1605
|
+
const renderGuidanceLinks = () => {
|
|
1606
|
+
return /* @__PURE__ */ React23.createElement(GuidanceLinks, { links: rule.guidance, LinkComponent: deps.LinkComponent });
|
|
1607
|
+
};
|
|
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()));
|
|
1610
|
+
}
|
|
1611
|
+
);
|
|
1895
1612
|
|
|
1896
1613
|
// src/common/components/cards/rule-content.tsx
|
|
1897
1614
|
var RuleContent = NamedFC("RuleContent", (props) => {
|
|
1898
|
-
|
|
1615
|
+
props.deps.GetNeedsReviewRuleResourcesUrl = getNeedsReviewRuleResourcesUrl;
|
|
1616
|
+
props.deps.IsOutcomeNeedsReview = isOutcomeNeedsReview;
|
|
1617
|
+
return /* @__PURE__ */ React24.createElement(React24.Fragment, null, /* @__PURE__ */ React24.createElement(RuleResources, { ...props }), /* @__PURE__ */ React24.createElement(InstanceDetailsGroup, { ...props }));
|
|
1899
1618
|
});
|
|
1900
1619
|
|
|
1901
1620
|
// src/common/components/cards/rules-with-instances.scss
|
|
@@ -1921,7 +1640,7 @@ var RulesWithInstances = NamedFC(
|
|
|
1921
1640
|
return {
|
|
1922
1641
|
id: rule.id,
|
|
1923
1642
|
key: `summary-details-${idx + 1}`,
|
|
1924
|
-
header: /* @__PURE__ */
|
|
1643
|
+
header: /* @__PURE__ */ React25.createElement(
|
|
1925
1644
|
MinimalRuleHeader,
|
|
1926
1645
|
{
|
|
1927
1646
|
key: rule.id,
|
|
@@ -1930,12 +1649,13 @@ var RulesWithInstances = NamedFC(
|
|
|
1930
1649
|
outcomeCounter
|
|
1931
1650
|
}
|
|
1932
1651
|
),
|
|
1933
|
-
content: /* @__PURE__ */
|
|
1652
|
+
content: /* @__PURE__ */ React25.createElement(
|
|
1934
1653
|
RuleContent,
|
|
1935
1654
|
{
|
|
1936
1655
|
key: `${rule.id}-rule-group`,
|
|
1937
1656
|
deps,
|
|
1938
1657
|
rule,
|
|
1658
|
+
outcomeType,
|
|
1939
1659
|
userConfigurationStoreData,
|
|
1940
1660
|
targetAppInfo,
|
|
1941
1661
|
cardSelectionMessageCreator,
|
|
@@ -1953,7 +1673,7 @@ var RulesWithInstances = NamedFC(
|
|
|
1953
1673
|
isExpanded: rule.isExpanded
|
|
1954
1674
|
};
|
|
1955
1675
|
};
|
|
1956
|
-
return /* @__PURE__ */
|
|
1676
|
+
return /* @__PURE__ */ React25.createElement(
|
|
1957
1677
|
"div",
|
|
1958
1678
|
{
|
|
1959
1679
|
className: rules_with_instances_default.ruleDetailsGroup,
|
|
@@ -1979,7 +1699,6 @@ var ResultSectionContent = NamedFC(
|
|
|
1979
1699
|
const {
|
|
1980
1700
|
results,
|
|
1981
1701
|
outcomeType,
|
|
1982
|
-
fixInstructionProcessor,
|
|
1983
1702
|
deps,
|
|
1984
1703
|
userConfigurationStoreData,
|
|
1985
1704
|
targetAppInfo,
|
|
@@ -1991,19 +1710,18 @@ var ResultSectionContent = NamedFC(
|
|
|
1991
1710
|
if (results.length === 0) {
|
|
1992
1711
|
return null;
|
|
1993
1712
|
}
|
|
1994
|
-
return /* @__PURE__ */
|
|
1713
|
+
return /* @__PURE__ */ React26.createElement(React26.Fragment, null, cardSelectionMessageCreator !== void 0 && /* @__PURE__ */ React26.createElement(
|
|
1995
1714
|
deps.cardsVisualizationModifierButtons,
|
|
1996
1715
|
{
|
|
1997
1716
|
...props,
|
|
1998
1717
|
cardSelectionMessageCreator
|
|
1999
1718
|
}
|
|
2000
|
-
), /* @__PURE__ */
|
|
1719
|
+
), /* @__PURE__ */ React26.createElement(
|
|
2001
1720
|
RulesWithInstances,
|
|
2002
1721
|
{
|
|
2003
1722
|
deps,
|
|
2004
1723
|
rules: results,
|
|
2005
1724
|
outcomeType,
|
|
2006
|
-
fixInstructionProcessor,
|
|
2007
1725
|
userConfigurationStoreData,
|
|
2008
1726
|
targetAppInfo,
|
|
2009
1727
|
outcomeCounter,
|
|
@@ -2016,7 +1734,7 @@ var ResultSectionContent = NamedFC(
|
|
|
2016
1734
|
);
|
|
2017
1735
|
|
|
2018
1736
|
// src/common/components/cards/result-section-title.tsx
|
|
2019
|
-
var
|
|
1737
|
+
var React27 = __toESM(require("react"));
|
|
2020
1738
|
|
|
2021
1739
|
// src/common/components/cards/result-section-title.scss
|
|
2022
1740
|
var result_section_title_default = { "resultSectionTitle": "result-section-title--RGFI5", "title": "title--WBYFE", "heading": "heading--NdP4Q", "outcomeChipContainer": "outcome-chip-container--BT3j5" };
|
|
@@ -2030,8 +1748,8 @@ var ResultSectionTitle = NamedFC("ResultSectionTitle", (props) => {
|
|
|
2030
1748
|
const singularMessageSubject = props.outcomeType === "review" ? "instance to review" : "failure";
|
|
2031
1749
|
const pluralMessageSubject = props.outcomeType === "review" ? "instances to review" : "failures";
|
|
2032
1750
|
const alertTerm = props.badgeCount !== 1 ? `${pluralMessageSubject} were` : `${singularMessageSubject} was`;
|
|
2033
|
-
const alertingFailuresCount = /* @__PURE__ */
|
|
2034
|
-
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 })));
|
|
2035
1753
|
});
|
|
2036
1754
|
|
|
2037
1755
|
// src/common/components/cards/result-section.scss
|
|
@@ -2041,14 +1759,14 @@ var result_section_default = { "resultSection": "result-section--HfO9s", "titleC
|
|
|
2041
1759
|
var resultSectionAutomationId = "result-section";
|
|
2042
1760
|
var ResultSection = NamedFC("ResultSection", (props) => {
|
|
2043
1761
|
const { containerClassName, sectionHeadingLevel, deps } = props;
|
|
2044
|
-
return /* @__PURE__ */
|
|
1762
|
+
return /* @__PURE__ */ React28.createElement(
|
|
2045
1763
|
"div",
|
|
2046
1764
|
{
|
|
2047
|
-
className: (0,
|
|
1765
|
+
className: (0, import_utilities4.css)(containerClassName, result_section_default.resultSection),
|
|
2048
1766
|
"data-automation-id": resultSectionAutomationId
|
|
2049
1767
|
},
|
|
2050
|
-
/* @__PURE__ */
|
|
2051
|
-
/* @__PURE__ */
|
|
1768
|
+
/* @__PURE__ */ React28.createElement(HeadingElementForLevel, { headingLevel: sectionHeadingLevel }, /* @__PURE__ */ React28.createElement(ResultSectionTitle, { ...props, titleSize: "title" })),
|
|
1769
|
+
/* @__PURE__ */ React28.createElement(
|
|
2052
1770
|
ResultSectionContent,
|
|
2053
1771
|
{
|
|
2054
1772
|
headingLevel: deps.getNextHeadingLevel(sectionHeadingLevel),
|
|
@@ -2077,7 +1795,7 @@ var FailedInstancesSection = NamedFC(
|
|
|
2077
1795
|
const count = cardsViewData.cards.fail.reduce((total, rule) => {
|
|
2078
1796
|
return total + rule.nodes.length;
|
|
2079
1797
|
}, 0);
|
|
2080
|
-
return /* @__PURE__ */
|
|
1798
|
+
return /* @__PURE__ */ React29.createElement(
|
|
2081
1799
|
ResultSection,
|
|
2082
1800
|
{
|
|
2083
1801
|
deps,
|
|
@@ -2107,14 +1825,14 @@ var toolName = title;
|
|
|
2107
1825
|
var windowsProductName = `${brand} for Windows`;
|
|
2108
1826
|
|
|
2109
1827
|
// src/reports/components/report-sections/reporter-header-section.tsx
|
|
2110
|
-
var
|
|
1828
|
+
var React33 = __toESM(require("react"));
|
|
2111
1829
|
|
|
2112
1830
|
// src/reports/components/report-sections/header-section.tsx
|
|
2113
|
-
var
|
|
1831
|
+
var React32 = __toESM(require("react"));
|
|
2114
1832
|
|
|
2115
1833
|
// src/icons/brand/white/brand-white.tsx
|
|
2116
|
-
var
|
|
2117
|
-
var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */
|
|
1834
|
+
var React30 = __toESM(require("react"));
|
|
1835
|
+
var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React30.createElement(
|
|
2118
1836
|
"svg",
|
|
2119
1837
|
{
|
|
2120
1838
|
role: "img",
|
|
@@ -2124,7 +1842,7 @@ var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React39.createEleme
|
|
|
2124
1842
|
fill: "none",
|
|
2125
1843
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2126
1844
|
},
|
|
2127
|
-
/* @__PURE__ */
|
|
1845
|
+
/* @__PURE__ */ React30.createElement(
|
|
2128
1846
|
"mask",
|
|
2129
1847
|
{
|
|
2130
1848
|
id: "mask0",
|
|
@@ -2135,7 +1853,7 @@ var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React39.createEleme
|
|
|
2135
1853
|
height: "43",
|
|
2136
1854
|
style: { maskType: "alpha" }
|
|
2137
1855
|
},
|
|
2138
|
-
/* @__PURE__ */
|
|
1856
|
+
/* @__PURE__ */ React30.createElement(
|
|
2139
1857
|
"path",
|
|
2140
1858
|
{
|
|
2141
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",
|
|
@@ -2143,13 +1861,13 @@ var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React39.createEleme
|
|
|
2143
1861
|
}
|
|
2144
1862
|
)
|
|
2145
1863
|
),
|
|
2146
|
-
/* @__PURE__ */
|
|
1864
|
+
/* @__PURE__ */ React30.createElement("g", { mask: "url(#mask0)" }, /* @__PURE__ */ React30.createElement(
|
|
2147
1865
|
"path",
|
|
2148
1866
|
{
|
|
2149
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",
|
|
2150
1868
|
fill: "white"
|
|
2151
1869
|
}
|
|
2152
|
-
), /* @__PURE__ */
|
|
1870
|
+
), /* @__PURE__ */ React30.createElement(
|
|
2153
1871
|
"rect",
|
|
2154
1872
|
{
|
|
2155
1873
|
x: "43.9494",
|
|
@@ -2159,7 +1877,7 @@ var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React39.createEleme
|
|
|
2159
1877
|
transform: "rotate(45 43.9494 7.24556)",
|
|
2160
1878
|
fill: "#D6E9F7"
|
|
2161
1879
|
}
|
|
2162
|
-
), /* @__PURE__ */
|
|
1880
|
+
), /* @__PURE__ */ React30.createElement(
|
|
2163
1881
|
"mask",
|
|
2164
1882
|
{
|
|
2165
1883
|
id: "mask1",
|
|
@@ -2170,33 +1888,33 @@ var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React39.createEleme
|
|
|
2170
1888
|
height: "31",
|
|
2171
1889
|
style: { maskType: "alpha" }
|
|
2172
1890
|
},
|
|
2173
|
-
/* @__PURE__ */
|
|
1891
|
+
/* @__PURE__ */ React30.createElement(
|
|
2174
1892
|
"path",
|
|
2175
1893
|
{
|
|
2176
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",
|
|
2177
1895
|
fill: "#CFEBFF"
|
|
2178
1896
|
}
|
|
2179
1897
|
),
|
|
2180
|
-
/* @__PURE__ */
|
|
1898
|
+
/* @__PURE__ */ React30.createElement(
|
|
2181
1899
|
"path",
|
|
2182
1900
|
{
|
|
2183
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",
|
|
2184
1902
|
fill: "url(#paint0_linear)"
|
|
2185
1903
|
}
|
|
2186
1904
|
)
|
|
2187
|
-
), /* @__PURE__ */
|
|
1905
|
+
), /* @__PURE__ */ React30.createElement("g", { mask: "url(#mask1)" }, /* @__PURE__ */ React30.createElement(
|
|
2188
1906
|
"path",
|
|
2189
1907
|
{
|
|
2190
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",
|
|
2191
1909
|
fill: "white"
|
|
2192
1910
|
}
|
|
2193
|
-
), /* @__PURE__ */
|
|
1911
|
+
), /* @__PURE__ */ React30.createElement(
|
|
2194
1912
|
"path",
|
|
2195
1913
|
{
|
|
2196
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",
|
|
2197
1915
|
fill: "url(#paint1_linear)"
|
|
2198
1916
|
}
|
|
2199
|
-
), /* @__PURE__ */
|
|
1917
|
+
), /* @__PURE__ */ React30.createElement(
|
|
2200
1918
|
"rect",
|
|
2201
1919
|
{
|
|
2202
1920
|
x: "4.54834",
|
|
@@ -2206,7 +1924,7 @@ var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React39.createEleme
|
|
|
2206
1924
|
transform: "rotate(-45 4.54834 6.88206)",
|
|
2207
1925
|
fill: "#D6E9F7"
|
|
2208
1926
|
}
|
|
2209
|
-
), /* @__PURE__ */
|
|
1927
|
+
), /* @__PURE__ */ React30.createElement(
|
|
2210
1928
|
"rect",
|
|
2211
1929
|
{
|
|
2212
1930
|
x: "4.54834",
|
|
@@ -2216,7 +1934,7 @@ var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React39.createEleme
|
|
|
2216
1934
|
transform: "rotate(-45 4.54834 6.88206)",
|
|
2217
1935
|
fill: "url(#paint2_linear)"
|
|
2218
1936
|
}
|
|
2219
|
-
)), /* @__PURE__ */
|
|
1937
|
+
)), /* @__PURE__ */ React30.createElement("g", { filter: "url(#filter0_d)" }, /* @__PURE__ */ React30.createElement(
|
|
2220
1938
|
"path",
|
|
2221
1939
|
{
|
|
2222
1940
|
fillRule: "evenodd",
|
|
@@ -2225,7 +1943,7 @@ var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React39.createEleme
|
|
|
2225
1943
|
fill: "#004880"
|
|
2226
1944
|
}
|
|
2227
1945
|
))),
|
|
2228
|
-
/* @__PURE__ */
|
|
1946
|
+
/* @__PURE__ */ React30.createElement("defs", null, /* @__PURE__ */ React30.createElement(
|
|
2229
1947
|
"filter",
|
|
2230
1948
|
{
|
|
2231
1949
|
id: "filter0_d",
|
|
@@ -2236,8 +1954,8 @@ var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React39.createEleme
|
|
|
2236
1954
|
filterUnits: "userSpaceOnUse",
|
|
2237
1955
|
colorInterpolationFilters: "sRGB"
|
|
2238
1956
|
},
|
|
2239
|
-
/* @__PURE__ */
|
|
2240
|
-
/* @__PURE__ */
|
|
1957
|
+
/* @__PURE__ */ React30.createElement("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
1958
|
+
/* @__PURE__ */ React30.createElement(
|
|
2241
1959
|
"feColorMatrix",
|
|
2242
1960
|
{
|
|
2243
1961
|
in: "SourceAlpha",
|
|
@@ -2245,18 +1963,18 @@ var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React39.createEleme
|
|
|
2245
1963
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
2246
1964
|
}
|
|
2247
1965
|
),
|
|
2248
|
-
/* @__PURE__ */
|
|
2249
|
-
/* @__PURE__ */
|
|
2250
|
-
/* @__PURE__ */
|
|
1966
|
+
/* @__PURE__ */ React30.createElement("feOffset", { dy: "0.725705" }),
|
|
1967
|
+
/* @__PURE__ */ React30.createElement("feGaussianBlur", { stdDeviation: "0.40317" }),
|
|
1968
|
+
/* @__PURE__ */ React30.createElement(
|
|
2251
1969
|
"feColorMatrix",
|
|
2252
1970
|
{
|
|
2253
1971
|
type: "matrix",
|
|
2254
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"
|
|
2255
1973
|
}
|
|
2256
1974
|
),
|
|
2257
|
-
/* @__PURE__ */
|
|
2258
|
-
/* @__PURE__ */
|
|
2259
|
-
), /* @__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(
|
|
2260
1978
|
"linearGradient",
|
|
2261
1979
|
{
|
|
2262
1980
|
id: "paint0_linear",
|
|
@@ -2266,9 +1984,9 @@ var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React39.createEleme
|
|
|
2266
1984
|
y2: "8.23504",
|
|
2267
1985
|
gradientUnits: "userSpaceOnUse"
|
|
2268
1986
|
},
|
|
2269
|
-
/* @__PURE__ */
|
|
2270
|
-
/* @__PURE__ */
|
|
2271
|
-
), /* @__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(
|
|
2272
1990
|
"linearGradient",
|
|
2273
1991
|
{
|
|
2274
1992
|
id: "paint1_linear",
|
|
@@ -2278,9 +1996,9 @@ var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React39.createEleme
|
|
|
2278
1996
|
y2: "8.23504",
|
|
2279
1997
|
gradientUnits: "userSpaceOnUse"
|
|
2280
1998
|
},
|
|
2281
|
-
/* @__PURE__ */
|
|
2282
|
-
/* @__PURE__ */
|
|
2283
|
-
), /* @__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(
|
|
2284
2002
|
"linearGradient",
|
|
2285
2003
|
{
|
|
2286
2004
|
id: "paint2_linear",
|
|
@@ -2290,20 +2008,20 @@ var BrandWhite = NamedFC("BrandWhite", () => /* @__PURE__ */ React39.createEleme
|
|
|
2290
2008
|
y2: "11.1606",
|
|
2291
2009
|
gradientUnits: "userSpaceOnUse"
|
|
2292
2010
|
},
|
|
2293
|
-
/* @__PURE__ */
|
|
2294
|
-
/* @__PURE__ */
|
|
2011
|
+
/* @__PURE__ */ React30.createElement("stop", { offset: "0", stopColor: "#165B8E", stopOpacity: "0.29" }),
|
|
2012
|
+
/* @__PURE__ */ React30.createElement("stop", { offset: "1", stopColor: "#D6E9F7", stopOpacity: "0" })
|
|
2295
2013
|
))
|
|
2296
2014
|
));
|
|
2297
2015
|
|
|
2298
2016
|
// src/reports/components/header-bar.tsx
|
|
2299
|
-
var
|
|
2017
|
+
var React31 = __toESM(require("react"));
|
|
2300
2018
|
|
|
2301
2019
|
// src/reports/components/header-bar.scss
|
|
2302
2020
|
var header_bar_default = { "reportHeaderBar": "report-header-bar--SDV11", "headerText": "header-text--EdTxw" };
|
|
2303
2021
|
|
|
2304
2022
|
// src/reports/components/header-bar.tsx
|
|
2305
2023
|
var HeaderBar = NamedFC("HeaderBar", (props) => {
|
|
2306
|
-
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));
|
|
2307
2025
|
});
|
|
2308
2026
|
|
|
2309
2027
|
// src/reports/components/report-sections/header-section.scss
|
|
@@ -2314,7 +2032,7 @@ var reportHeaderSectionDataAutomationId = "report-header-section";
|
|
|
2314
2032
|
var HeaderSection = NamedFC(
|
|
2315
2033
|
"HeaderSection",
|
|
2316
2034
|
({ targetAppInfo, headerText }) => {
|
|
2317
|
-
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(
|
|
2318
2036
|
NewTabLinkWithConfirmationDialog,
|
|
2319
2037
|
{
|
|
2320
2038
|
href: targetAppInfo.url,
|
|
@@ -2329,22 +2047,23 @@ var HeaderSection = NamedFC(
|
|
|
2329
2047
|
var ReporterHeaderSection = NamedFC(
|
|
2330
2048
|
"AutomatedChecksHeaderSection",
|
|
2331
2049
|
({ scanMetadata }) => {
|
|
2332
|
-
return /* @__PURE__ */
|
|
2050
|
+
return /* @__PURE__ */ React33.createElement(HeaderSection, { targetAppInfo: scanMetadata.targetAppInfo, headerText: brand });
|
|
2333
2051
|
}
|
|
2334
2052
|
);
|
|
2335
2053
|
|
|
2336
2054
|
// src/reports/components/reporter-automated-check-head.tsx
|
|
2337
|
-
var
|
|
2055
|
+
var React35 = __toESM(require("react"));
|
|
2338
2056
|
|
|
2339
2057
|
// src/reports/components/head.tsx
|
|
2340
|
-
var
|
|
2058
|
+
var React34 = __toESM(require("react"));
|
|
2341
2059
|
|
|
2342
2060
|
// src/reports/automated-checks-report.styles.ts
|
|
2343
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}`;
|
|
2344
2062
|
|
|
2345
2063
|
// src/reports/components/head.tsx
|
|
2346
2064
|
var Head = NamedFC("Head", (props) => {
|
|
2347
|
-
|
|
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 } }));
|
|
2348
2067
|
});
|
|
2349
2068
|
|
|
2350
2069
|
// src/reports/bundled-reporter-styles.ts
|
|
@@ -2352,11 +2071,11 @@ var bundled_reporter_styles_exports = {};
|
|
|
2352
2071
|
__export(bundled_reporter_styles_exports, {
|
|
2353
2072
|
styleSheet: () => styleSheet2
|
|
2354
2073
|
});
|
|
2355
|
-
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`;
|
|
2356
2075
|
|
|
2357
2076
|
// src/reports/components/reporter-automated-check-head.tsx
|
|
2358
2077
|
var ReporterHead = NamedFC("ReporterHead", () => {
|
|
2359
|
-
return /* @__PURE__ */
|
|
2078
|
+
return /* @__PURE__ */ React35.createElement(
|
|
2360
2079
|
Head,
|
|
2361
2080
|
{
|
|
2362
2081
|
titlePreface: brand,
|
|
@@ -2367,11 +2086,11 @@ var ReporterHead = NamedFC("ReporterHead", () => {
|
|
|
2367
2086
|
});
|
|
2368
2087
|
|
|
2369
2088
|
// src/reports/package/footer-text-for-service.tsx
|
|
2370
|
-
var
|
|
2089
|
+
var React37 = __toESM(require("react"));
|
|
2371
2090
|
|
|
2372
2091
|
// src/reports/components/report-sections/tool-link.tsx
|
|
2373
|
-
var
|
|
2374
|
-
var ToolLink = NamedFC("ToolLink", () => /* @__PURE__ */
|
|
2092
|
+
var React36 = __toESM(require("react"));
|
|
2093
|
+
var ToolLink = NamedFC("ToolLink", () => /* @__PURE__ */ React36.createElement(
|
|
2375
2094
|
NewTabLink,
|
|
2376
2095
|
{
|
|
2377
2096
|
className: "tool-name-link",
|
|
@@ -2384,37 +2103,37 @@ var ToolLink = NamedFC("ToolLink", () => /* @__PURE__ */ React45.createElement(
|
|
|
2384
2103
|
// src/reports/package/footer-text-for-service.tsx
|
|
2385
2104
|
var FooterTextForService = NamedFC("FooterTextForService", ({ scanMetadata }) => {
|
|
2386
2105
|
const toolData = scanMetadata.toolData;
|
|
2387
|
-
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), ".");
|
|
2388
2107
|
});
|
|
2389
2108
|
|
|
2390
2109
|
// src/reports/components/report-sections/automated-checks-title-section.tsx
|
|
2391
|
-
var
|
|
2110
|
+
var React38 = __toESM(require("react"));
|
|
2392
2111
|
var AutomatedChecksTitleSection = NamedFC("AutomatedChecksTitleSection", () => {
|
|
2393
|
-
return /* @__PURE__ */
|
|
2112
|
+
return /* @__PURE__ */ React38.createElement("div", { className: "title-section" }, /* @__PURE__ */ React38.createElement("h1", null, "Automated checks results"));
|
|
2394
2113
|
});
|
|
2395
2114
|
|
|
2396
2115
|
// src/reports/components/report-sections/body-section.tsx
|
|
2397
|
-
var
|
|
2116
|
+
var React39 = __toESM(require("react"));
|
|
2398
2117
|
var BodySection = NamedFC("BodySection", ({ children }) => {
|
|
2399
|
-
return /* @__PURE__ */
|
|
2118
|
+
return /* @__PURE__ */ React39.createElement("body", null, children);
|
|
2400
2119
|
});
|
|
2401
2120
|
|
|
2402
2121
|
// src/reports/components/report-sections/content-container.tsx
|
|
2403
|
-
var
|
|
2122
|
+
var React40 = __toESM(require("react"));
|
|
2404
2123
|
var ContentContainer = NamedFC("ContentSection", ({ children }) => {
|
|
2405
|
-
return /* @__PURE__ */
|
|
2124
|
+
return /* @__PURE__ */ React40.createElement("main", { className: "outer-container" }, /* @__PURE__ */ React40.createElement("div", { className: "content-container" }, children));
|
|
2406
2125
|
});
|
|
2407
2126
|
|
|
2408
2127
|
// src/reports/components/report-sections/details-section.tsx
|
|
2409
|
-
var
|
|
2128
|
+
var React45 = __toESM(require("react"));
|
|
2410
2129
|
|
|
2411
2130
|
// src/reports/components/report-sections/make-details-section-fc.tsx
|
|
2412
|
-
var
|
|
2131
|
+
var import_utilities5 = require("@fluentui/utilities");
|
|
2413
2132
|
|
|
2414
2133
|
// src/common/icons/comment-icon.tsx
|
|
2415
|
-
var
|
|
2134
|
+
var React41 = __toESM(require("react"));
|
|
2416
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";
|
|
2417
|
-
var CommentIcon = NamedFC("CommentIcon", () => /* @__PURE__ */
|
|
2136
|
+
var CommentIcon = NamedFC("CommentIcon", () => /* @__PURE__ */ React41.createElement(
|
|
2418
2137
|
"svg",
|
|
2419
2138
|
{
|
|
2420
2139
|
width: "17",
|
|
@@ -2425,13 +2144,13 @@ var CommentIcon = NamedFC("CommentIcon", () => /* @__PURE__ */ React50.createEle
|
|
|
2425
2144
|
role: "img",
|
|
2426
2145
|
"aria-hidden": "true"
|
|
2427
2146
|
},
|
|
2428
|
-
/* @__PURE__ */
|
|
2147
|
+
/* @__PURE__ */ React41.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d, fill: "#737373" })
|
|
2429
2148
|
));
|
|
2430
2149
|
|
|
2431
2150
|
// src/common/icons/date-icon.tsx
|
|
2432
|
-
var
|
|
2151
|
+
var React42 = __toESM(require("react"));
|
|
2433
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";
|
|
2434
|
-
var DateIcon = NamedFC("DateIcon", () => /* @__PURE__ */
|
|
2153
|
+
var DateIcon = NamedFC("DateIcon", () => /* @__PURE__ */ React42.createElement(
|
|
2435
2154
|
"svg",
|
|
2436
2155
|
{
|
|
2437
2156
|
width: "17",
|
|
@@ -2442,13 +2161,13 @@ var DateIcon = NamedFC("DateIcon", () => /* @__PURE__ */ React51.createElement(
|
|
|
2442
2161
|
role: "img",
|
|
2443
2162
|
"aria-hidden": "true"
|
|
2444
2163
|
},
|
|
2445
|
-
/* @__PURE__ */
|
|
2164
|
+
/* @__PURE__ */ React42.createElement("path", { d: d2, fill: "#737373" })
|
|
2446
2165
|
));
|
|
2447
2166
|
|
|
2448
2167
|
// src/common/icons/url-icon.tsx
|
|
2449
|
-
var
|
|
2168
|
+
var React43 = __toESM(require("react"));
|
|
2450
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";
|
|
2451
|
-
var UrlIcon = NamedFC("UrlIcon", () => /* @__PURE__ */
|
|
2170
|
+
var UrlIcon = NamedFC("UrlIcon", () => /* @__PURE__ */ React43.createElement(
|
|
2452
2171
|
"svg",
|
|
2453
2172
|
{
|
|
2454
2173
|
width: "17",
|
|
@@ -2459,25 +2178,25 @@ var UrlIcon = NamedFC("UrlIcon", () => /* @__PURE__ */ React52.createElement(
|
|
|
2459
2178
|
role: "img",
|
|
2460
2179
|
"aria-hidden": "true"
|
|
2461
2180
|
},
|
|
2462
|
-
/* @__PURE__ */
|
|
2181
|
+
/* @__PURE__ */ React43.createElement("path", { d: d3, fill: "#737373" })
|
|
2463
2182
|
));
|
|
2464
2183
|
|
|
2465
2184
|
// src/reports/components/report-sections/make-details-section-fc.tsx
|
|
2466
|
-
var
|
|
2467
|
-
var
|
|
2185
|
+
var import_lodash8 = require("lodash");
|
|
2186
|
+
var React44 = __toESM(require("react"));
|
|
2468
2187
|
function makeDetailsSectionFC(getDisplayedScanTargetInfo) {
|
|
2469
2188
|
return NamedFC("DetailsSection", (props) => {
|
|
2470
2189
|
const { scanMetadata, description, toUtcString } = props;
|
|
2471
|
-
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));
|
|
2472
2191
|
const scanDateUTC = toUtcString(scanMetadata.timespan.scanComplete);
|
|
2473
|
-
const showCommentRow = !(0,
|
|
2192
|
+
const showCommentRow = !(0, import_lodash8.isEmpty)(description);
|
|
2474
2193
|
const displayedScanTargetInfo = getDisplayedScanTargetInfo(scanMetadata);
|
|
2475
|
-
return /* @__PURE__ */
|
|
2476
|
-
/* @__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),
|
|
2477
2196
|
displayedScanTargetInfo.label,
|
|
2478
2197
|
displayedScanTargetInfo.content
|
|
2479
|
-
), createListItem(/* @__PURE__ */
|
|
2480
|
-
/* @__PURE__ */
|
|
2198
|
+
), createListItem(/* @__PURE__ */ React44.createElement(DateIcon, null), "scan date:", scanDateUTC), showCommentRow && createListItem(
|
|
2199
|
+
/* @__PURE__ */ React44.createElement(CommentIcon, null),
|
|
2481
2200
|
"comment:",
|
|
2482
2201
|
description,
|
|
2483
2202
|
"description-text"
|
|
@@ -2489,7 +2208,7 @@ function makeDetailsSectionFC(getDisplayedScanTargetInfo) {
|
|
|
2489
2208
|
function getUrlItemInfo(scanMetadata) {
|
|
2490
2209
|
return {
|
|
2491
2210
|
label: "target page url:",
|
|
2492
|
-
content: /* @__PURE__ */
|
|
2211
|
+
content: /* @__PURE__ */ React45.createElement(
|
|
2493
2212
|
NewTabLinkWithConfirmationDialog,
|
|
2494
2213
|
{
|
|
2495
2214
|
href: scanMetadata.targetAppInfo.url,
|
|
@@ -2502,31 +2221,31 @@ function getUrlItemInfo(scanMetadata) {
|
|
|
2502
2221
|
var DetailsSection = makeDetailsSectionFC(getUrlItemInfo);
|
|
2503
2222
|
|
|
2504
2223
|
// src/reports/components/report-sections/not-applicable-checks-section.tsx
|
|
2505
|
-
var
|
|
2224
|
+
var React49 = __toESM(require("react"));
|
|
2506
2225
|
|
|
2507
2226
|
// src/reports/components/report-sections/collapsible-result-section.tsx
|
|
2508
|
-
var
|
|
2227
|
+
var React48 = __toESM(require("react"));
|
|
2509
2228
|
|
|
2510
2229
|
// src/reports/components/report-sections/rules-only.tsx
|
|
2511
|
-
var
|
|
2230
|
+
var React47 = __toESM(require("react"));
|
|
2512
2231
|
|
|
2513
2232
|
// src/reports/components/report-sections/full-rule-header.tsx
|
|
2514
|
-
var
|
|
2515
|
-
var
|
|
2233
|
+
var import_lodash9 = require("lodash");
|
|
2234
|
+
var React46 = __toESM(require("react"));
|
|
2516
2235
|
var FullRuleHeader = NamedFC("FullRuleHeader", (props) => {
|
|
2517
2236
|
const { outcomeType, deps, cardRuleResult: cardResult } = props;
|
|
2518
2237
|
const outcomeText = outcomeTypeSemantics[props.outcomeType].pastTense;
|
|
2519
|
-
const ariaDescribedBy = `${(0,
|
|
2238
|
+
const ariaDescribedBy = `${(0, import_lodash9.kebabCase)(outcomeText)}-rule-${cardResult.id}-description`;
|
|
2520
2239
|
const renderCountBadge = () => {
|
|
2521
2240
|
if (outcomeType !== "fail") {
|
|
2522
2241
|
return null;
|
|
2523
2242
|
}
|
|
2524
|
-
return /* @__PURE__ */
|
|
2243
|
+
return /* @__PURE__ */ React46.createElement("span", { "aria-hidden": "true" }, /* @__PURE__ */ React46.createElement(OutcomeChip, { count: cardResult.nodes.length, outcomeType }));
|
|
2525
2244
|
};
|
|
2526
2245
|
const renderRuleLink = () => {
|
|
2527
2246
|
const ruleId = cardResult.id;
|
|
2528
2247
|
const ruleUrl = cardResult.url;
|
|
2529
|
-
const displayedRule = ruleUrl ? /* @__PURE__ */
|
|
2248
|
+
const displayedRule = ruleUrl ? /* @__PURE__ */ React46.createElement(
|
|
2530
2249
|
NewTabLink,
|
|
2531
2250
|
{
|
|
2532
2251
|
href: ruleUrl,
|
|
@@ -2534,31 +2253,31 @@ var FullRuleHeader = NamedFC("FullRuleHeader", (props) => {
|
|
|
2534
2253
|
"aria-describedby": ariaDescribedBy
|
|
2535
2254
|
},
|
|
2536
2255
|
ruleId
|
|
2537
|
-
) : /* @__PURE__ */
|
|
2538
|
-
return /* @__PURE__ */
|
|
2256
|
+
) : /* @__PURE__ */ React46.createElement(React46.Fragment, null, ruleId);
|
|
2257
|
+
return /* @__PURE__ */ React46.createElement("span", { className: "rule-details-id" }, displayedRule);
|
|
2539
2258
|
};
|
|
2540
2259
|
const renderGuidanceLinks = () => {
|
|
2541
2260
|
var _a;
|
|
2542
|
-
const links = ((_a = cardResult.guidance) == null ? void 0 : _a.filter((guidanceLink) => !(0,
|
|
2543
|
-
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)) {
|
|
2544
2263
|
return null;
|
|
2545
2264
|
}
|
|
2546
|
-
return /* @__PURE__ */
|
|
2265
|
+
return /* @__PURE__ */ React46.createElement(React46.Fragment, null, "(", /* @__PURE__ */ React46.createElement(GuidanceLinks, { links, LinkComponent: deps.LinkComponent }), ")");
|
|
2547
2266
|
};
|
|
2548
2267
|
const renderDescription = () => {
|
|
2549
|
-
return /* @__PURE__ */
|
|
2268
|
+
return /* @__PURE__ */ React46.createElement("span", { className: "rule-details-description", id: ariaDescribedBy }, cardResult.description);
|
|
2550
2269
|
};
|
|
2551
2270
|
const renderGuidanceTags = () => {
|
|
2552
|
-
return /* @__PURE__ */
|
|
2271
|
+
return /* @__PURE__ */ React46.createElement(GuidanceTags, { deps, links: cardResult.guidance });
|
|
2553
2272
|
};
|
|
2554
|
-
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())));
|
|
2555
2274
|
});
|
|
2556
2275
|
|
|
2557
2276
|
// src/reports/components/report-sections/rules-only.tsx
|
|
2558
2277
|
var RulesOnly = NamedFC(
|
|
2559
2278
|
"RulesOnly",
|
|
2560
2279
|
({ outcomeType, deps, cardRuleResults: cardResults }) => {
|
|
2561
|
-
return /* @__PURE__ */
|
|
2280
|
+
return /* @__PURE__ */ React47.createElement("div", { className: rules_with_instances_default.ruleDetailsGroup }, cardResults.map((cardRuleResult) => /* @__PURE__ */ React47.createElement(
|
|
2562
2281
|
FullRuleHeader,
|
|
2563
2282
|
{
|
|
2564
2283
|
deps,
|
|
@@ -2577,16 +2296,15 @@ var CollapsibleResultSection = NamedFC(
|
|
|
2577
2296
|
const { containerClassName, containerId, deps, cardSelectionMessageCreator, testKey } = props;
|
|
2578
2297
|
const CollapsibleContent = deps.collapsibleControl({
|
|
2579
2298
|
id: containerId,
|
|
2580
|
-
header: /* @__PURE__ */
|
|
2581
|
-
content: /* @__PURE__ */
|
|
2299
|
+
header: /* @__PURE__ */ React48.createElement(ResultSectionTitle, { ...props, titleSize: "title" }),
|
|
2300
|
+
content: /* @__PURE__ */ React48.createElement(RulesOnly, { ...props }),
|
|
2582
2301
|
headingLevel: props.headingLevel,
|
|
2583
|
-
deps: null,
|
|
2584
2302
|
testKey,
|
|
2585
2303
|
onExpandToggle: (event) => {
|
|
2586
2304
|
cardSelectionMessageCreator == null ? void 0 : cardSelectionMessageCreator.toggleRuleExpandCollapse(containerId, event);
|
|
2587
2305
|
}
|
|
2588
2306
|
});
|
|
2589
|
-
return /* @__PURE__ */
|
|
2307
|
+
return /* @__PURE__ */ React48.createElement("div", { className: containerClassName }, CollapsibleContent);
|
|
2590
2308
|
}
|
|
2591
2309
|
);
|
|
2592
2310
|
|
|
@@ -2595,7 +2313,7 @@ var NotApplicableChecksSection = NamedFC(
|
|
|
2595
2313
|
"NotApplicableChecksSection",
|
|
2596
2314
|
({ deps, cardsViewData, cardSelectionMessageCreator, sectionHeadingLevel }) => {
|
|
2597
2315
|
const cardRuleResults = cardsViewData.cards.inapplicable;
|
|
2598
|
-
return /* @__PURE__ */
|
|
2316
|
+
return /* @__PURE__ */ React49.createElement(
|
|
2599
2317
|
CollapsibleResultSection,
|
|
2600
2318
|
{
|
|
2601
2319
|
deps,
|
|
@@ -2613,13 +2331,13 @@ var NotApplicableChecksSection = NamedFC(
|
|
|
2613
2331
|
);
|
|
2614
2332
|
|
|
2615
2333
|
// src/reports/components/report-sections/passed-checks-section.tsx
|
|
2616
|
-
var
|
|
2334
|
+
var React50 = __toESM(require("react"));
|
|
2617
2335
|
var PassedChecksSection = NamedFC(
|
|
2618
2336
|
"PassedChecksSection",
|
|
2619
2337
|
({ deps, cardsViewData, cardSelectionMessageCreator, testKey, sectionHeadingLevel }) => {
|
|
2620
2338
|
var _a;
|
|
2621
2339
|
const cardRuleResults = ((_a = cardsViewData == null ? void 0 : cardsViewData.cards) == null ? void 0 : _a.pass) ?? [];
|
|
2622
|
-
return /* @__PURE__ */
|
|
2340
|
+
return /* @__PURE__ */ React50.createElement(
|
|
2623
2341
|
CollapsibleResultSection,
|
|
2624
2342
|
{
|
|
2625
2343
|
deps,
|
|
@@ -2638,33 +2356,33 @@ var PassedChecksSection = NamedFC(
|
|
|
2638
2356
|
);
|
|
2639
2357
|
|
|
2640
2358
|
// src/reports/components/report-sections/report-footer.tsx
|
|
2641
|
-
var
|
|
2359
|
+
var React51 = __toESM(require("react"));
|
|
2642
2360
|
var ReportFooter = NamedFC("ReportFooter", ({ children }) => {
|
|
2643
|
-
return /* @__PURE__ */
|
|
2361
|
+
return /* @__PURE__ */ React51.createElement("div", { className: "report-footer-container" }, /* @__PURE__ */ React51.createElement("div", { className: "report-footer", role: "contentinfo" }, children));
|
|
2644
2362
|
});
|
|
2645
2363
|
|
|
2646
2364
|
// src/reports/components/report-sections/results-container.tsx
|
|
2647
|
-
var
|
|
2365
|
+
var React52 = __toESM(require("react"));
|
|
2648
2366
|
var ResultsContainer = NamedFC(
|
|
2649
2367
|
"ResultsContainer",
|
|
2650
2368
|
({ children, getCollapsibleScript }) => {
|
|
2651
|
-
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() } }));
|
|
2652
2370
|
}
|
|
2653
2371
|
);
|
|
2654
2372
|
|
|
2655
2373
|
// src/reports/components/report-sections/summary-section.tsx
|
|
2656
|
-
var
|
|
2374
|
+
var React54 = __toESM(require("react"));
|
|
2657
2375
|
|
|
2658
2376
|
// src/reports/components/outcome-summary-bar.tsx
|
|
2659
2377
|
var import_classnames2 = __toESM(require("classnames"));
|
|
2660
|
-
var
|
|
2661
|
-
var
|
|
2378
|
+
var import_lodash10 = require("lodash");
|
|
2379
|
+
var React53 = __toESM(require("react"));
|
|
2662
2380
|
var outcomeSummaryBarAutomationId = "outcome-summary-bar";
|
|
2663
2381
|
var OutcomeSummaryBar = NamedFC("OutcomeSummaryBar", (props) => {
|
|
2664
2382
|
const outcomeTypesCount = props.allOutcomeTypes.length;
|
|
2665
2383
|
const getClassNames = (outcomeType, index) => {
|
|
2666
2384
|
return (0, import_classnames2.default)({
|
|
2667
|
-
[(0,
|
|
2385
|
+
[(0, import_lodash10.kebabCase)(outcomeType)]: true,
|
|
2668
2386
|
"summary-bar-left-edge": index === 0,
|
|
2669
2387
|
"summary-bar-right-edge": index === outcomeTypesCount - 1
|
|
2670
2388
|
});
|
|
@@ -2683,9 +2401,9 @@ var OutcomeSummaryBar = NamedFC("OutcomeSummaryBar", (props) => {
|
|
|
2683
2401
|
return null;
|
|
2684
2402
|
}
|
|
2685
2403
|
const outcomePastTense = outcomeTypeSemantics[outcomeType].pastTense;
|
|
2686
|
-
return /* @__PURE__ */
|
|
2404
|
+
return /* @__PURE__ */ React53.createElement("span", { className: "label" }, ` ${outcomePastTense}`);
|
|
2687
2405
|
};
|
|
2688
|
-
return /* @__PURE__ */
|
|
2406
|
+
return /* @__PURE__ */ React53.createElement(
|
|
2689
2407
|
"div",
|
|
2690
2408
|
{
|
|
2691
2409
|
className: "outcome-summary-bar",
|
|
@@ -2698,7 +2416,7 @@ var OutcomeSummaryBar = NamedFC("OutcomeSummaryBar", (props) => {
|
|
|
2698
2416
|
const iconMap = iconStyleInverted === true ? outcomeIconMapInverted : outcomeIconMap;
|
|
2699
2417
|
const outcomeIcon = iconMap[outcomeType];
|
|
2700
2418
|
const count = props.outcomeStats[outcomeType];
|
|
2701
|
-
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)));
|
|
2702
2420
|
})
|
|
2703
2421
|
);
|
|
2704
2422
|
});
|
|
@@ -2717,7 +2435,7 @@ var BaseSummarySection = NamedFC("BaseSummarySection", (props) => {
|
|
|
2717
2435
|
review: 0
|
|
2718
2436
|
// never used
|
|
2719
2437
|
};
|
|
2720
|
-
return /* @__PURE__ */
|
|
2438
|
+
return /* @__PURE__ */ React54.createElement("div", { className: "summary-section" }, /* @__PURE__ */ React54.createElement("h2", null, "Summary"), /* @__PURE__ */ React54.createElement(
|
|
2721
2439
|
OutcomeSummaryBar,
|
|
2722
2440
|
{
|
|
2723
2441
|
outcomeStats: countSummary,
|
|
@@ -2729,13 +2447,13 @@ var BaseSummarySection = NamedFC("BaseSummarySection", (props) => {
|
|
|
2729
2447
|
var AllOutcomesSummarySection = NamedFC(
|
|
2730
2448
|
"AllOutcomesSummarySection",
|
|
2731
2449
|
(props) => {
|
|
2732
|
-
return /* @__PURE__ */
|
|
2450
|
+
return /* @__PURE__ */ React54.createElement(BaseSummarySection, { ...props, outcomeTypesShown: ["fail", "pass", "inapplicable"] });
|
|
2733
2451
|
}
|
|
2734
2452
|
);
|
|
2735
2453
|
var PassFailSummarySection = NamedFC(
|
|
2736
2454
|
"PassFailSummarySection",
|
|
2737
2455
|
(props) => {
|
|
2738
|
-
return /* @__PURE__ */
|
|
2456
|
+
return /* @__PURE__ */ React54.createElement(BaseSummarySection, { ...props, outcomeTypesShown: ["fail", "pass"] });
|
|
2739
2457
|
}
|
|
2740
2458
|
);
|
|
2741
2459
|
|
|
@@ -2788,7 +2506,7 @@ var getAddListenerForCollapsibleSection = (code) => `(${String(code)})(document)
|
|
|
2788
2506
|
var getDefaultAddListenerForCollapsibleSection = () => getAddListenerForCollapsibleSection(addEventListenerForCollapsibleSection);
|
|
2789
2507
|
|
|
2790
2508
|
// src/common/components/cards/combined-report-result-section-title.tsx
|
|
2791
|
-
var
|
|
2509
|
+
var React55 = __toESM(require("react"));
|
|
2792
2510
|
|
|
2793
2511
|
// src/common/components/cards/combined-report-result-section-title.scss
|
|
2794
2512
|
var combined_report_result_section_title_default = { "combinedReportResultSectionTitle": "combined-report-result-section-title--TqIZO", "title": "title--6WIyt", "heading": "heading--UpAHf" };
|
|
@@ -2800,14 +2518,14 @@ var CombinedReportResultSectionTitle = NamedFC(
|
|
|
2800
2518
|
const singularMessageSubject = props.outcomeType === "review" ? "instance to review" : "failure";
|
|
2801
2519
|
const pluralMessageSubject = props.outcomeType === "review" ? "instances to review" : "failures";
|
|
2802
2520
|
const alertTerm = props.outcomeCount !== 1 ? `${pluralMessageSubject} were` : `${singularMessageSubject} was`;
|
|
2803
|
-
const alertingFailuresCount = /* @__PURE__ */
|
|
2804
|
-
const titleWithInstance = /* @__PURE__ */
|
|
2805
|
-
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);
|
|
2806
2524
|
}
|
|
2807
2525
|
);
|
|
2808
2526
|
|
|
2809
2527
|
// src/reports/components/report-sections/combined-report-failed-section.tsx
|
|
2810
|
-
var
|
|
2528
|
+
var React56 = __toESM(require("react"));
|
|
2811
2529
|
var CombinedReportFailedSection = NamedFC(
|
|
2812
2530
|
"CombinedReportFailedSection",
|
|
2813
2531
|
(props) => {
|
|
@@ -2816,7 +2534,7 @@ var CombinedReportFailedSection = NamedFC(
|
|
|
2816
2534
|
const sectionId = "combined-report-failed-section";
|
|
2817
2535
|
const CollapsibleContent = deps.collapsibleControl({
|
|
2818
2536
|
id: sectionId,
|
|
2819
|
-
header: /* @__PURE__ */
|
|
2537
|
+
header: /* @__PURE__ */ React56.createElement(
|
|
2820
2538
|
CombinedReportResultSectionTitle,
|
|
2821
2539
|
{
|
|
2822
2540
|
outcomeCount: ruleCount,
|
|
@@ -2824,7 +2542,7 @@ var CombinedReportFailedSection = NamedFC(
|
|
|
2824
2542
|
title: "Failed rules"
|
|
2825
2543
|
}
|
|
2826
2544
|
),
|
|
2827
|
-
content: /* @__PURE__ */
|
|
2545
|
+
content: /* @__PURE__ */ React56.createElement(
|
|
2828
2546
|
ResultSectionContent,
|
|
2829
2547
|
{
|
|
2830
2548
|
deps,
|
|
@@ -2843,12 +2561,12 @@ var CombinedReportFailedSection = NamedFC(
|
|
|
2843
2561
|
headingLevel: 3,
|
|
2844
2562
|
deps: {}
|
|
2845
2563
|
});
|
|
2846
|
-
return /* @__PURE__ */
|
|
2564
|
+
return /* @__PURE__ */ React56.createElement("div", { className: "result-section" }, CollapsibleContent);
|
|
2847
2565
|
}
|
|
2848
2566
|
);
|
|
2849
2567
|
|
|
2850
2568
|
// src/reports/components/report-sections/combined-report-rules-only-sections.tsx
|
|
2851
|
-
var
|
|
2569
|
+
var React57 = __toESM(require("react"));
|
|
2852
2570
|
var makeCombinedReportRulesOnlySection = (options) => NamedFC(
|
|
2853
2571
|
"CombinedReportRulesOnlySection",
|
|
2854
2572
|
({ deps, cardsViewData, cardSelectionMessageCreator }) => {
|
|
@@ -2857,16 +2575,15 @@ var makeCombinedReportRulesOnlySection = (options) => NamedFC(
|
|
|
2857
2575
|
const sectionId = `${outcomeType}-checks-section`;
|
|
2858
2576
|
const CollapsibleContent = deps.collapsibleControl({
|
|
2859
2577
|
id: sectionId,
|
|
2860
|
-
header: /* @__PURE__ */
|
|
2578
|
+
header: /* @__PURE__ */ React57.createElement(
|
|
2861
2579
|
CombinedReportResultSectionTitle,
|
|
2862
2580
|
{
|
|
2863
2581
|
outcomeCount: cardRuleResults.length,
|
|
2864
2582
|
outcomeType,
|
|
2865
|
-
title: title2
|
|
2866
|
-
titleSize: "title"
|
|
2583
|
+
title: title2
|
|
2867
2584
|
}
|
|
2868
2585
|
),
|
|
2869
|
-
content: /* @__PURE__ */
|
|
2586
|
+
content: /* @__PURE__ */ React57.createElement(
|
|
2870
2587
|
RulesOnly,
|
|
2871
2588
|
{
|
|
2872
2589
|
deps,
|
|
@@ -2880,7 +2597,7 @@ var makeCombinedReportRulesOnlySection = (options) => NamedFC(
|
|
|
2880
2597
|
headingLevel: 3,
|
|
2881
2598
|
deps: null
|
|
2882
2599
|
});
|
|
2883
|
-
return /* @__PURE__ */
|
|
2600
|
+
return /* @__PURE__ */ React57.createElement("div", { className: "result-section" }, CollapsibleContent);
|
|
2884
2601
|
}
|
|
2885
2602
|
);
|
|
2886
2603
|
var CombinedReportPassedSection = makeCombinedReportRulesOnlySection({
|
|
@@ -2893,10 +2610,10 @@ var CombinedReportNotApplicableSection = makeCombinedReportRulesOnlySection({
|
|
|
2893
2610
|
});
|
|
2894
2611
|
|
|
2895
2612
|
// src/reports/components/report-sections/combined-report-summary-section.tsx
|
|
2896
|
-
var
|
|
2613
|
+
var React59 = __toESM(require("react"));
|
|
2897
2614
|
|
|
2898
2615
|
// src/reports/components/report-sections/urls-summary-section.tsx
|
|
2899
|
-
var
|
|
2616
|
+
var React58 = __toESM(require("react"));
|
|
2900
2617
|
|
|
2901
2618
|
// src/reports/components/url-outcome-type.ts
|
|
2902
2619
|
var allUrlOutcomeTypes = ["fail", "unscannable", "pass"];
|
|
@@ -2914,7 +2631,7 @@ var UrlsSummarySection = NamedFC("UrlsSummarySection", (props) => {
|
|
|
2914
2631
|
} = props;
|
|
2915
2632
|
const getTotalUrls = () => {
|
|
2916
2633
|
const totalUrls = urlsPassedCount + urlsFailedCount + urlsNotScannedCount;
|
|
2917
|
-
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");
|
|
2918
2635
|
};
|
|
2919
2636
|
const getSummaryBar = () => {
|
|
2920
2637
|
const countSummary = {
|
|
@@ -2922,7 +2639,7 @@ var UrlsSummarySection = NamedFC("UrlsSummarySection", (props) => {
|
|
|
2922
2639
|
unscannable: urlsNotScannedCount,
|
|
2923
2640
|
pass: urlsPassedCount
|
|
2924
2641
|
};
|
|
2925
|
-
return /* @__PURE__ */
|
|
2642
|
+
return /* @__PURE__ */ React58.createElement(
|
|
2926
2643
|
OutcomeSummaryBar,
|
|
2927
2644
|
{
|
|
2928
2645
|
outcomeStats: countSummary,
|
|
@@ -2933,9 +2650,9 @@ var UrlsSummarySection = NamedFC("UrlsSummarySection", (props) => {
|
|
|
2933
2650
|
);
|
|
2934
2651
|
};
|
|
2935
2652
|
const getFailedInstances = () => {
|
|
2936
|
-
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")));
|
|
2937
2654
|
};
|
|
2938
|
-
return /* @__PURE__ */
|
|
2655
|
+
return /* @__PURE__ */ React58.createElement("div", { className: urls_summary_section_default.urlsSummarySection }, getTotalUrls(), getSummaryBar(), getFailedInstances());
|
|
2939
2656
|
});
|
|
2940
2657
|
|
|
2941
2658
|
// src/reports/components/report-sections/combined-report-summary-section.tsx
|
|
@@ -2956,12 +2673,12 @@ var CombinedReportSummarySection = NamedFC(
|
|
|
2956
2673
|
notScannedUrlsCount: urlResultCounts.unscannableUrls,
|
|
2957
2674
|
failureInstancesCount: failedInstances
|
|
2958
2675
|
};
|
|
2959
|
-
return /* @__PURE__ */
|
|
2676
|
+
return /* @__PURE__ */ React59.createElement(UrlsSummarySection, { ...urlsSummarySectionProps });
|
|
2960
2677
|
}
|
|
2961
2678
|
);
|
|
2962
2679
|
|
|
2963
2680
|
// src/reports/components/report-sections/rules-results-container.tsx
|
|
2964
|
-
var
|
|
2681
|
+
var React60 = __toESM(require("react"));
|
|
2965
2682
|
|
|
2966
2683
|
// src/reports/components/report-sections/rules-results-container.scss
|
|
2967
2684
|
var rules_results_container_default = { "rulesResultsContainer": "rules-results-container--HaLDw", "resultsHeading": "results-heading--H9Puz" };
|
|
@@ -2970,13 +2687,13 @@ var rules_results_container_default = { "rulesResultsContainer": "rules-results-
|
|
|
2970
2687
|
var RulesResultsContainer = NamedFC(
|
|
2971
2688
|
"RulesResultsContainer",
|
|
2972
2689
|
({ children, getCollapsibleScript }) => {
|
|
2973
|
-
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() } }));
|
|
2974
2691
|
}
|
|
2975
2692
|
);
|
|
2976
2693
|
|
|
2977
2694
|
// src/reports/components/report-sections/summary-report-details-section.tsx
|
|
2978
2695
|
var import_react6 = require("@fluentui/react");
|
|
2979
|
-
var
|
|
2696
|
+
var React61 = __toESM(require("react"));
|
|
2980
2697
|
|
|
2981
2698
|
// src/reports/components/report-sections/summary-report-details-section.scss
|
|
2982
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" };
|
|
@@ -2987,12 +2704,12 @@ var SummaryReportDetailsSection = NamedFC(
|
|
|
2987
2704
|
(props) => {
|
|
2988
2705
|
const { scanMetadata, toUtcString, secondsToTimeString } = props;
|
|
2989
2706
|
const scanTimespan = scanMetadata.timespan;
|
|
2990
|
-
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));
|
|
2991
2708
|
const listItems = [];
|
|
2992
2709
|
listItems.push(
|
|
2993
2710
|
createListItem(
|
|
2994
2711
|
"Target site",
|
|
2995
|
-
/* @__PURE__ */
|
|
2712
|
+
/* @__PURE__ */ React61.createElement(
|
|
2996
2713
|
NewTabLinkWithConfirmationDialog,
|
|
2997
2714
|
{
|
|
2998
2715
|
href: scanMetadata.targetAppInfo.url,
|
|
@@ -3000,13 +2717,13 @@ var SummaryReportDetailsSection = NamedFC(
|
|
|
3000
2717
|
},
|
|
3001
2718
|
scanMetadata.targetAppInfo.url
|
|
3002
2719
|
),
|
|
3003
|
-
/* @__PURE__ */
|
|
2720
|
+
/* @__PURE__ */ React61.createElement(UrlIcon, null),
|
|
3004
2721
|
summary_report_details_section_default.targetSite
|
|
3005
2722
|
)
|
|
3006
2723
|
);
|
|
3007
2724
|
if (scanTimespan.scanStart != null) {
|
|
3008
2725
|
const scanStartUTC = toUtcString(scanTimespan.scanStart);
|
|
3009
|
-
listItems.push(createListItem("Scans started", scanStartUTC, /* @__PURE__ */
|
|
2726
|
+
listItems.push(createListItem("Scans started", scanStartUTC, /* @__PURE__ */ React61.createElement(DateIcon, null)));
|
|
3010
2727
|
}
|
|
3011
2728
|
const scanCompleteUTC = toUtcString(scanTimespan.scanComplete);
|
|
3012
2729
|
listItems.push(createListItem("Scans completed", scanCompleteUTC));
|
|
@@ -3014,20 +2731,21 @@ var SummaryReportDetailsSection = NamedFC(
|
|
|
3014
2731
|
const duration = secondsToTimeString(scanTimespan.durationSeconds);
|
|
3015
2732
|
listItems.push(createListItem("Duration", duration));
|
|
3016
2733
|
}
|
|
3017
|
-
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));
|
|
3018
2735
|
}
|
|
3019
2736
|
);
|
|
3020
2737
|
|
|
3021
2738
|
// src/reports/components/report-sections/summary-report-header-section.tsx
|
|
3022
|
-
var
|
|
2739
|
+
var React62 = __toESM(require("react"));
|
|
3023
2740
|
var SummaryReportHeaderSection = NamedFC("SummaryReportHeaderSection", () => {
|
|
3024
|
-
return /* @__PURE__ */
|
|
2741
|
+
return /* @__PURE__ */ React62.createElement("header", null, /* @__PURE__ */ React62.createElement(HeaderBar, { headerText: brand }));
|
|
3025
2742
|
});
|
|
3026
2743
|
|
|
3027
2744
|
// src/reports/components/summary-report-head.tsx
|
|
3028
|
-
var
|
|
2745
|
+
var React63 = __toESM(require("react"));
|
|
3029
2746
|
var SummaryReportHead = NamedFC("SummaryReportHead", () => {
|
|
3030
|
-
|
|
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 } }));
|
|
3031
2749
|
});
|
|
3032
2750
|
|
|
3033
2751
|
// src/reports/components/report-sections/combined-report-section-factory.ts
|
|
@@ -3049,10 +2767,10 @@ var CombinedReportSectionFactory = {
|
|
|
3049
2767
|
};
|
|
3050
2768
|
|
|
3051
2769
|
// src/reports/components/report-sections/failed-urls-section.tsx
|
|
3052
|
-
var
|
|
2770
|
+
var React67 = __toESM(require("react"));
|
|
3053
2771
|
|
|
3054
2772
|
// src/reports/components/report-sections/collapsible-url-result-section.tsx
|
|
3055
|
-
var
|
|
2773
|
+
var React64 = __toESM(require("react"));
|
|
3056
2774
|
|
|
3057
2775
|
// src/reports/components/report-sections/collapsible-url-result-section.scss
|
|
3058
2776
|
var collapsible_url_result_section_default = { "urlResultSection": "url-result-section--SkOlZ" };
|
|
@@ -3064,20 +2782,19 @@ var CollapsibleUrlResultSection = NamedFC(
|
|
|
3064
2782
|
const { containerId, deps, content } = props;
|
|
3065
2783
|
const CollapsibleContent = deps.collapsibleControl({
|
|
3066
2784
|
id: containerId,
|
|
3067
|
-
header: /* @__PURE__ */
|
|
2785
|
+
header: /* @__PURE__ */ React64.createElement(ResultSectionTitle, { ...props, titleSize: "heading" }),
|
|
3068
2786
|
content,
|
|
3069
|
-
headingLevel: 3
|
|
3070
|
-
deps: null
|
|
2787
|
+
headingLevel: 3
|
|
3071
2788
|
});
|
|
3072
|
-
return /* @__PURE__ */
|
|
2789
|
+
return /* @__PURE__ */ React64.createElement("div", { className: collapsible_url_result_section_default.urlResultSection }, CollapsibleContent);
|
|
3073
2790
|
}
|
|
3074
2791
|
);
|
|
3075
2792
|
|
|
3076
2793
|
// src/reports/components/report-sections/url-scan-results-table.tsx
|
|
3077
|
-
var
|
|
2794
|
+
var React66 = __toESM(require("react"));
|
|
3078
2795
|
|
|
3079
2796
|
// src/reports/components/report-sections/summary-results-table.tsx
|
|
3080
|
-
var
|
|
2797
|
+
var React65 = __toESM(require("react"));
|
|
3081
2798
|
|
|
3082
2799
|
// src/reports/components/report-sections/summary-results-table.scss
|
|
3083
2800
|
var summary_results_table_default = { "summaryResultsTable": "summary-results-table--Iezr-", "textCell": "text-cell--EaUrM", "urlCell": "url-cell--mg-3l" };
|
|
@@ -3095,8 +2812,8 @@ var SummaryResultsTable = NamedFC(
|
|
|
3095
2812
|
return `${id2}-header${colIndex}`;
|
|
3096
2813
|
};
|
|
3097
2814
|
const getTableHeaders = () => {
|
|
3098
|
-
return /* @__PURE__ */
|
|
3099
|
-
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);
|
|
3100
2817
|
}));
|
|
3101
2818
|
};
|
|
3102
2819
|
const getCellClassName = (colIndex) => {
|
|
@@ -3104,8 +2821,8 @@ var SummaryResultsTable = NamedFC(
|
|
|
3104
2821
|
return cellClassNames[contentType];
|
|
3105
2822
|
};
|
|
3106
2823
|
const getRow = (row, rowIndex) => {
|
|
3107
|
-
return /* @__PURE__ */
|
|
3108
|
-
return /* @__PURE__ */
|
|
2824
|
+
return /* @__PURE__ */ React65.createElement("tr", { key: rowIndex }, row.map((item, colIndex) => {
|
|
2825
|
+
return /* @__PURE__ */ React65.createElement(
|
|
3109
2826
|
"td",
|
|
3110
2827
|
{
|
|
3111
2828
|
key: colIndex,
|
|
@@ -3119,7 +2836,7 @@ var SummaryResultsTable = NamedFC(
|
|
|
3119
2836
|
const getTableRows = () => {
|
|
3120
2837
|
return rows.map(getRow);
|
|
3121
2838
|
};
|
|
3122
|
-
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()));
|
|
3123
2840
|
}
|
|
3124
2841
|
);
|
|
3125
2842
|
|
|
@@ -3137,11 +2854,11 @@ var UrlScanResultsTable = NamedFC(
|
|
|
3137
2854
|
];
|
|
3138
2855
|
const rows = results.map((result) => {
|
|
3139
2856
|
const { url, reportLocation } = result;
|
|
3140
|
-
const urlLink = /* @__PURE__ */
|
|
3141
|
-
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");
|
|
3142
2859
|
return [`${result.numFailures}`, urlLink, reportLink];
|
|
3143
2860
|
});
|
|
3144
|
-
return /* @__PURE__ */
|
|
2861
|
+
return /* @__PURE__ */ React66.createElement(SummaryResultsTable, { columns, rows, id: props.id });
|
|
3145
2862
|
}
|
|
3146
2863
|
);
|
|
3147
2864
|
|
|
@@ -3149,8 +2866,8 @@ var UrlScanResultsTable = NamedFC(
|
|
|
3149
2866
|
var FailedUrlsSection = NamedFC(
|
|
3150
2867
|
"FailedUrlsSection",
|
|
3151
2868
|
({ results, deps }) => {
|
|
3152
|
-
const table = /* @__PURE__ */
|
|
3153
|
-
return /* @__PURE__ */
|
|
2869
|
+
const table = /* @__PURE__ */ React67.createElement(UrlScanResultsTable, { results: results.failed, id: "failed-urls-table" });
|
|
2870
|
+
return /* @__PURE__ */ React67.createElement(
|
|
3154
2871
|
CollapsibleUrlResultSection,
|
|
3155
2872
|
{
|
|
3156
2873
|
deps,
|
|
@@ -3165,10 +2882,10 @@ var FailedUrlsSection = NamedFC(
|
|
|
3165
2882
|
);
|
|
3166
2883
|
|
|
3167
2884
|
// src/reports/components/report-sections/not-scanned-urls-section.tsx
|
|
3168
|
-
var
|
|
2885
|
+
var React69 = __toESM(require("react"));
|
|
3169
2886
|
|
|
3170
2887
|
// src/reports/components/report-sections/url-errors-table.tsx
|
|
3171
|
-
var
|
|
2888
|
+
var React68 = __toESM(require("react"));
|
|
3172
2889
|
var UrlErrorsTable = NamedFC("UrlErrorsTable", (props) => {
|
|
3173
2890
|
const errors = props.errors;
|
|
3174
2891
|
const columns = [
|
|
@@ -3178,19 +2895,19 @@ var UrlErrorsTable = NamedFC("UrlErrorsTable", (props) => {
|
|
|
3178
2895
|
];
|
|
3179
2896
|
const rows = errors.map((scanError) => {
|
|
3180
2897
|
const { errorDescription, errorType, url, errorLogLocation } = scanError;
|
|
3181
|
-
const urlLink = /* @__PURE__ */
|
|
3182
|
-
const errorLogLink = /* @__PURE__ */
|
|
2898
|
+
const urlLink = /* @__PURE__ */ React68.createElement(NewTabLink, { href: url }, url);
|
|
2899
|
+
const errorLogLink = /* @__PURE__ */ React68.createElement(NewTabLink, { href: errorLogLocation }, errorDescription);
|
|
3183
2900
|
return [errorType, urlLink, errorLogLink];
|
|
3184
2901
|
});
|
|
3185
|
-
return /* @__PURE__ */
|
|
2902
|
+
return /* @__PURE__ */ React68.createElement(SummaryResultsTable, { columns, rows, id: props.id });
|
|
3186
2903
|
});
|
|
3187
2904
|
|
|
3188
2905
|
// src/reports/components/report-sections/not-scanned-urls-section.tsx
|
|
3189
2906
|
var NotScannedUrlsSection = NamedFC(
|
|
3190
2907
|
"NotScannedUrlsSection",
|
|
3191
2908
|
({ results, deps }) => {
|
|
3192
|
-
const table = /* @__PURE__ */
|
|
3193
|
-
return /* @__PURE__ */
|
|
2909
|
+
const table = /* @__PURE__ */ React69.createElement(UrlErrorsTable, { errors: results.unscannable, id: "not-scanned-urls-table" });
|
|
2910
|
+
return /* @__PURE__ */ React69.createElement(
|
|
3194
2911
|
CollapsibleUrlResultSection,
|
|
3195
2912
|
{
|
|
3196
2913
|
deps,
|
|
@@ -3205,12 +2922,12 @@ var NotScannedUrlsSection = NamedFC(
|
|
|
3205
2922
|
);
|
|
3206
2923
|
|
|
3207
2924
|
// src/reports/components/report-sections/passed-urls-section.tsx
|
|
3208
|
-
var
|
|
2925
|
+
var React70 = __toESM(require("react"));
|
|
3209
2926
|
var PassedUrlsSection = NamedFC(
|
|
3210
2927
|
"PassedUrlsSection",
|
|
3211
2928
|
({ results, deps }) => {
|
|
3212
|
-
const table = /* @__PURE__ */
|
|
3213
|
-
return /* @__PURE__ */
|
|
2929
|
+
const table = /* @__PURE__ */ React70.createElement(UrlScanResultsTable, { results: results.passed, id: "passed-urls-table" });
|
|
2930
|
+
return /* @__PURE__ */ React70.createElement(
|
|
3214
2931
|
CollapsibleUrlResultSection,
|
|
3215
2932
|
{
|
|
3216
2933
|
deps,
|
|
@@ -3225,7 +2942,7 @@ var PassedUrlsSection = NamedFC(
|
|
|
3225
2942
|
);
|
|
3226
2943
|
|
|
3227
2944
|
// src/reports/components/report-sections/results-by-url-container.tsx
|
|
3228
|
-
var
|
|
2945
|
+
var React71 = __toESM(require("react"));
|
|
3229
2946
|
|
|
3230
2947
|
// src/reports/components/report-sections/results-by-url-container.scss
|
|
3231
2948
|
var results_by_url_container_default = { "urlResultsContainer": "url-results-container---dq9B", "resultsHeading": "results-heading--2dWBX" };
|
|
@@ -3234,12 +2951,12 @@ var results_by_url_container_default = { "urlResultsContainer": "url-results-con
|
|
|
3234
2951
|
var ResultsByUrlContainer = NamedFC(
|
|
3235
2952
|
"ResultsContainer",
|
|
3236
2953
|
({ children, getCollapsibleScript }) => {
|
|
3237
|
-
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() } }));
|
|
3238
2955
|
}
|
|
3239
2956
|
);
|
|
3240
2957
|
|
|
3241
2958
|
// src/reports/components/report-sections/summary-report-summary-section.tsx
|
|
3242
|
-
var
|
|
2959
|
+
var React72 = __toESM(require("react"));
|
|
3243
2960
|
var SummaryReportSummarySection = NamedFC(
|
|
3244
2961
|
"SummaryReportSummarySection",
|
|
3245
2962
|
(props) => {
|
|
@@ -3254,7 +2971,7 @@ var SummaryReportSummarySection = NamedFC(
|
|
|
3254
2971
|
notScannedUrlsCount: results.unscannable.length,
|
|
3255
2972
|
failureInstancesCount: failedInstances
|
|
3256
2973
|
};
|
|
3257
|
-
return /* @__PURE__ */
|
|
2974
|
+
return /* @__PURE__ */ React72.createElement(UrlsSummarySection, { ...urlsSummarySectionProps });
|
|
3258
2975
|
}
|
|
3259
2976
|
);
|
|
3260
2977
|
|
|
@@ -3277,14 +2994,14 @@ var SummaryReportSectionFactory = {
|
|
|
3277
2994
|
};
|
|
3278
2995
|
|
|
3279
2996
|
// src/common/store-data-to-scan-node-result-converter.ts
|
|
3280
|
-
var
|
|
2997
|
+
var import_lodash11 = require("lodash");
|
|
3281
2998
|
function convertUnifiedStoreDataToScanNodeResults(unifiedScanResultStoreData) {
|
|
3282
2999
|
const { rules, results } = unifiedScanResultStoreData;
|
|
3283
3000
|
if (unifiedScanResultStoreData == null || results == null) {
|
|
3284
3001
|
return null;
|
|
3285
3002
|
}
|
|
3286
3003
|
const transformedResults = results.map((unifiedResult) => {
|
|
3287
|
-
const rule = rules ? (0,
|
|
3004
|
+
const rule = rules ? (0, import_lodash11.find)(rules, (unifiedRule) => unifiedRule.id === unifiedResult.ruleId) : { id: unifiedResult.ruleId };
|
|
3288
3005
|
if (rule == null) {
|
|
3289
3006
|
throw new Error(`Got result with unknown ruleId ${unifiedResult.ruleId}`);
|
|
3290
3007
|
}
|
|
@@ -3382,7 +3099,7 @@ var CombinedResultsReport = class {
|
|
|
3382
3099
|
};
|
|
3383
3100
|
|
|
3384
3101
|
// src/reports/package/combined-results-to-cards-model-converter.ts
|
|
3385
|
-
var
|
|
3102
|
+
var import_lodash12 = require("lodash");
|
|
3386
3103
|
var CombinedResultsToCardsModelConverter = class {
|
|
3387
3104
|
constructor(mapAxeTagsToGuidanceLinks2, cardSelectionViewData, uuidGenerator, helpUrlGetter, getFixResolution2, extractRelatedSelectors2) {
|
|
3388
3105
|
this.mapAxeTagsToGuidanceLinks = mapAxeTagsToGuidanceLinks2;
|
|
@@ -3408,7 +3125,7 @@ var CombinedResultsToCardsModelConverter = class {
|
|
|
3408
3125
|
};
|
|
3409
3126
|
};
|
|
3410
3127
|
this.getCardRuleResults = (rules) => {
|
|
3411
|
-
if ((0,
|
|
3128
|
+
if ((0, import_lodash12.isNil)(rules)) {
|
|
3412
3129
|
return [];
|
|
3413
3130
|
}
|
|
3414
3131
|
return rules.map((rule) => this.getCardRuleResult(rule));
|
|
@@ -3420,7 +3137,7 @@ var CombinedResultsToCardsModelConverter = class {
|
|
|
3420
3137
|
url: this.helpUrlGetter.getHelpUrl(rule.ruleId, rule.ruleUrl),
|
|
3421
3138
|
isExpanded: false,
|
|
3422
3139
|
guidance: this.mapAxeTagsToGuidanceLinks(rule.ruleId, rule.tags),
|
|
3423
|
-
nodes: (0,
|
|
3140
|
+
nodes: (0, import_lodash12.isNil)(nodes) ? [] : nodes
|
|
3424
3141
|
};
|
|
3425
3142
|
};
|
|
3426
3143
|
this.getFailuresGroupedByRule = (groupedFailures) => {
|
|
@@ -3517,7 +3234,7 @@ var ReactStaticRenderer = class {
|
|
|
3517
3234
|
};
|
|
3518
3235
|
|
|
3519
3236
|
// src/reports/report-html-generator.tsx
|
|
3520
|
-
var
|
|
3237
|
+
var React73 = __toESM(require("react"));
|
|
3521
3238
|
var ReportHtmlGenerator = class {
|
|
3522
3239
|
constructor(sectionFactory, reactStaticRenderer, getCollapsibleScript, utcDateConverter, getGuidanceTagsFromGuidanceLinks, fixInstructionProcessor, recommendColor, getPropertyConfiguration2, getNextHeadingLevel) {
|
|
3523
3240
|
this.sectionFactory = sectionFactory;
|
|
@@ -3532,7 +3249,7 @@ var ReportHtmlGenerator = class {
|
|
|
3532
3249
|
}
|
|
3533
3250
|
generateHtml(description, cardsViewData, scanMetadata) {
|
|
3534
3251
|
const HeadSection = this.sectionFactory.HeadSection;
|
|
3535
|
-
const headMarkup = this.reactStaticRenderer.renderToStaticMarkup(/* @__PURE__ */
|
|
3252
|
+
const headMarkup = this.reactStaticRenderer.renderToStaticMarkup(/* @__PURE__ */ React73.createElement(HeadSection, null));
|
|
3536
3253
|
const detailsProps = {
|
|
3537
3254
|
description,
|
|
3538
3255
|
deps: {
|
|
@@ -3559,14 +3276,14 @@ var ReportHtmlGenerator = class {
|
|
|
3559
3276
|
sectionFactory: this.sectionFactory,
|
|
3560
3277
|
...detailsProps
|
|
3561
3278
|
};
|
|
3562
|
-
const bodyElement = /* @__PURE__ */
|
|
3279
|
+
const bodyElement = /* @__PURE__ */ React73.createElement(ReportBody, { ...props });
|
|
3563
3280
|
const bodyMarkup = this.reactStaticRenderer.renderToStaticMarkup(bodyElement);
|
|
3564
3281
|
return '<!DOCTYPE html><html lang="en">' + headMarkup + bodyMarkup + "</html>";
|
|
3565
3282
|
}
|
|
3566
3283
|
};
|
|
3567
3284
|
|
|
3568
3285
|
// src/reports/summary-report-html-generator.tsx
|
|
3569
|
-
var
|
|
3286
|
+
var React74 = __toESM(require("react"));
|
|
3570
3287
|
var SummaryReportHtmlGenerator = class {
|
|
3571
3288
|
constructor(sectionFactory, reactStaticRenderer, getCollapsibleScript, utcDateConverter, secondsToTimeStringConverter) {
|
|
3572
3289
|
this.sectionFactory = sectionFactory;
|
|
@@ -3577,7 +3294,7 @@ var SummaryReportHtmlGenerator = class {
|
|
|
3577
3294
|
}
|
|
3578
3295
|
generateHtml(scanMetadata, results) {
|
|
3579
3296
|
const HeadSection = this.sectionFactory.HeadSection;
|
|
3580
|
-
const headMarkup = this.reactStaticRenderer.renderToStaticMarkup(/* @__PURE__ */
|
|
3297
|
+
const headMarkup = this.reactStaticRenderer.renderToStaticMarkup(/* @__PURE__ */ React74.createElement(HeadSection, null));
|
|
3581
3298
|
const detailsProps = {
|
|
3582
3299
|
deps: {
|
|
3583
3300
|
collapsibleControl: ReportCollapsibleContainerControl
|
|
@@ -3592,7 +3309,7 @@ var SummaryReportHtmlGenerator = class {
|
|
|
3592
3309
|
sectionFactory: this.sectionFactory,
|
|
3593
3310
|
...detailsProps
|
|
3594
3311
|
};
|
|
3595
|
-
const bodyElement = /* @__PURE__ */
|
|
3312
|
+
const bodyElement = /* @__PURE__ */ React74.createElement(ReportBody, { ...props });
|
|
3596
3313
|
const bodyMarkup = this.reactStaticRenderer.renderToStaticMarkup(bodyElement);
|
|
3597
3314
|
return '<!DOCTYPE html><html lang="en">' + headMarkup + bodyMarkup + "</html>";
|
|
3598
3315
|
}
|
|
@@ -5420,7 +5137,7 @@ var link = {
|
|
|
5420
5137
|
};
|
|
5421
5138
|
|
|
5422
5139
|
// src/scanner/map-axe-tags-to-guidance-links.ts
|
|
5423
|
-
var
|
|
5140
|
+
var import_lodash13 = require("lodash");
|
|
5424
5141
|
var BestPractice = {
|
|
5425
5142
|
text: "",
|
|
5426
5143
|
href: "",
|
|
@@ -5431,7 +5148,7 @@ var bestPracticeToGuidanceTagOverrideMapping = {
|
|
|
5431
5148
|
"presentation-role-conflict": ["wcag131"]
|
|
5432
5149
|
};
|
|
5433
5150
|
function addGuidanceTagOverrides(resultId, currentTags) {
|
|
5434
|
-
return (0,
|
|
5151
|
+
return (0, import_lodash13.concat)(currentTags ?? [], bestPracticeToGuidanceTagOverrideMapping[resultId] ?? []);
|
|
5435
5152
|
}
|
|
5436
5153
|
function mapAxeTagToGuidanceLink(axeTag) {
|
|
5437
5154
|
if (axeTag === "best-practice") {
|
|
@@ -5447,7 +5164,7 @@ function mapAxeTagsToGuidanceLinks(resultId, axeTags) {
|
|
|
5447
5164
|
const normalizedTags = addGuidanceTagOverrides(resultId, axeTags);
|
|
5448
5165
|
const unsortedMaybeLinks = normalizedTags.map(mapAxeTagToGuidanceLink);
|
|
5449
5166
|
const unsortedLinks = unsortedMaybeLinks.filter(isNotNull);
|
|
5450
|
-
const sortedLinks = (0,
|
|
5167
|
+
const sortedLinks = (0, import_lodash13.sortBy)(unsortedLinks, (link2) => link2.text);
|
|
5451
5168
|
return sortedLinks;
|
|
5452
5169
|
}
|
|
5453
5170
|
function isNotNull(maybeInstance) {
|
|
@@ -5549,7 +5266,7 @@ var RuleProcessor = class {
|
|
|
5549
5266
|
};
|
|
5550
5267
|
|
|
5551
5268
|
// src/common/components/fix-instruction-processor.tsx
|
|
5552
|
-
var
|
|
5269
|
+
var React75 = __toESM(require("react"));
|
|
5553
5270
|
|
|
5554
5271
|
// src/common/components/cards/fix-instruction-color-box.scss
|
|
5555
5272
|
var fix_instruction_color_box_default = { "fixInstructionColorBox": "fix-instruction-color-box--DQpQE", "screenReaderOnly": "screen-reader-only--6LUiO" };
|
|
@@ -5591,7 +5308,7 @@ var FixInstructionProcessor = class {
|
|
|
5591
5308
|
return this.tryProcessAsColorContrastRecommendation(fixInstruction, recommendColor) ?? this.tryProcessAsRelatedNodesReference(fixInstruction) ?? this.processAsNoop(fixInstruction);
|
|
5592
5309
|
}
|
|
5593
5310
|
processAsNoop(fixInstruction) {
|
|
5594
|
-
return /* @__PURE__ */
|
|
5311
|
+
return /* @__PURE__ */ React75.createElement(React75.Fragment, null, fixInstruction);
|
|
5595
5312
|
}
|
|
5596
5313
|
// We perform this replacement because what axe-core exposes as a "relatedNodes" property
|
|
5597
5314
|
// is presented in our cards views as a "Related paths" row. This only comes up in practice
|
|
@@ -5602,7 +5319,7 @@ var FixInstructionProcessor = class {
|
|
|
5602
5319
|
return null;
|
|
5603
5320
|
}
|
|
5604
5321
|
const inputBody = input.slice(0, input.length - " (see related nodes)".length);
|
|
5605
|
-
return /* @__PURE__ */
|
|
5322
|
+
return /* @__PURE__ */ React75.createElement(React75.Fragment, null, inputBody, " (see ", /* @__PURE__ */ React75.createElement("em", null, "Related paths"), ")");
|
|
5606
5323
|
}
|
|
5607
5324
|
tryProcessAsColorContrastRecommendation(fixInstruction, recommendColor) {
|
|
5608
5325
|
const matches6 = this.getColorMatches(fixInstruction);
|
|
@@ -5695,14 +5412,14 @@ var FixInstructionProcessor = class {
|
|
|
5695
5412
|
}
|
|
5696
5413
|
splitFixInstruction(fixInstruction, recommendationStrings, matches6) {
|
|
5697
5414
|
if (matches6.length === 0) {
|
|
5698
|
-
return /* @__PURE__ */
|
|
5415
|
+
return /* @__PURE__ */ React75.createElement(React75.Fragment, null, fixInstruction);
|
|
5699
5416
|
}
|
|
5700
5417
|
const recommendations = [];
|
|
5701
5418
|
const howToFixMatches = matches6.slice(0, 2);
|
|
5702
5419
|
const recommendationMatches = matches6.slice(2);
|
|
5703
5420
|
const results = this.getInstructionWithAndWithoutBoxes(howToFixMatches, fixInstruction);
|
|
5704
5421
|
if (recommendationStrings.length === 0) {
|
|
5705
|
-
return /* @__PURE__ */
|
|
5422
|
+
return /* @__PURE__ */ React75.createElement(React75.Fragment, null, results);
|
|
5706
5423
|
}
|
|
5707
5424
|
const recommendationOne = this.getInstructionWithAndWithoutBoxes(
|
|
5708
5425
|
recommendationMatches.slice(0, 2),
|
|
@@ -5719,7 +5436,7 @@ var FixInstructionProcessor = class {
|
|
|
5719
5436
|
return this.addRecommendationsToResults(results, recommendations);
|
|
5720
5437
|
}
|
|
5721
5438
|
addRecommendationsToResults(results, recommendations) {
|
|
5722
|
-
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))));
|
|
5723
5440
|
}
|
|
5724
5441
|
getInstructionWithBoxes(matches6, fixInstruction) {
|
|
5725
5442
|
let insertionIndex = 0;
|
|
@@ -5728,19 +5445,19 @@ var FixInstructionProcessor = class {
|
|
|
5728
5445
|
matches6.forEach((match) => {
|
|
5729
5446
|
const endIndex = match.splitIndex - match.colorHexValue.length;
|
|
5730
5447
|
const substring = fixInstruction.substring(insertionIndex, endIndex);
|
|
5731
|
-
result.push(/* @__PURE__ */
|
|
5448
|
+
result.push(/* @__PURE__ */ React75.createElement("span", { key: `instruction-split-${keyIndex++}` }, substring));
|
|
5732
5449
|
result.push(this.createColorBox(match.colorHexValue, keyIndex++));
|
|
5733
5450
|
insertionIndex = endIndex;
|
|
5734
5451
|
});
|
|
5735
5452
|
const coda = fixInstruction.substr(insertionIndex);
|
|
5736
|
-
result.push(/* @__PURE__ */
|
|
5453
|
+
result.push(/* @__PURE__ */ React75.createElement("span", { key: `instruction-split-${keyIndex++}` }, coda));
|
|
5737
5454
|
return result;
|
|
5738
5455
|
}
|
|
5739
5456
|
getInstructionWithAndWithoutBoxes(matches6, fixInstruction) {
|
|
5740
|
-
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));
|
|
5741
5458
|
}
|
|
5742
5459
|
createColorBox(colorHexValue, keyIndex) {
|
|
5743
|
-
return /* @__PURE__ */
|
|
5460
|
+
return /* @__PURE__ */ React75.createElement(
|
|
5744
5461
|
"span",
|
|
5745
5462
|
{
|
|
5746
5463
|
"aria-hidden": true,
|
|
@@ -5752,6 +5469,304 @@ var FixInstructionProcessor = class {
|
|
|
5752
5469
|
}
|
|
5753
5470
|
};
|
|
5754
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
|
+
|
|
5755
5770
|
// src/common/date-provider.ts
|
|
5756
5771
|
var import_luxon = require("luxon");
|
|
5757
5772
|
var DateProvider = class _DateProvider {
|