@brucesantos/design-space 0.5.1 → 0.6.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/CHANGELOG.md +32 -0
- package/README.md +67 -1
- package/dist/contrast-B8xa1UIu.js +389 -0
- package/dist/contrast-B8xa1UIu.js.map +1 -0
- package/dist/design-space.css +1 -1
- package/dist/handoff/index.d.ts +20 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1308 -1168
- package/dist/index.js.map +1 -1
- package/dist/registry/index.d.ts +6 -2
- package/dist/shell/Home.d.ts +3 -2
- package/dist/shell/Topbar.d.ts +4 -3
- package/dist/shell/labels.d.ts +14 -0
- package/dist/testing.js +12 -12
- package/dist/types/index.d.ts +17 -0
- package/package.json +1 -1
- package/dist/contrast-BseNi5QD.js +0 -293
- package/dist/contrast-BseNi5QD.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,356 +1,325 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { S as
|
|
4
|
-
import { C as
|
|
5
|
-
function
|
|
6
|
-
const
|
|
7
|
-
(e.components ?? []).map((
|
|
8
|
-
),
|
|
9
|
-
e.modules.flatMap((
|
|
10
|
-
), h = e.modules.map((
|
|
11
|
-
module:
|
|
12
|
-
scenarios: e.scenarios.filter((
|
|
13
|
-
})),
|
|
14
|
-
if (!(!
|
|
15
|
-
return
|
|
16
|
-
},
|
|
17
|
-
(
|
|
18
|
-
),
|
|
1
|
+
import { jsxs as l, jsx as t, Fragment as A } from "react/jsx-runtime";
|
|
2
|
+
import { useState as F, useEffect as D, useMemo as T, useCallback as R, useContext as Ne, createContext as Se, useRef as re, forwardRef as xe } from "react";
|
|
3
|
+
import { S as be, h as ee, v as ye, a as te, p as _e, P as w, b as oe, N as ve, s as Me, c as Ce, g as Te, d as Ae, r as Pe } from "./contrast-B8xa1UIu.js";
|
|
4
|
+
import { C as It, H as Bt, e as Ht, f as Wt, i as zt, j as Ut, k as jt, l as Kt, m as Vt, n as qt, o as Gt, q as Yt, t as Jt, u as Qt, w as Xt, x as Zt, y as eo, z as to } from "./contrast-B8xa1UIu.js";
|
|
5
|
+
function Le(e) {
|
|
6
|
+
const o = new Map(e.scenarios.map((s) => [s.id, s])), a = new Map(
|
|
7
|
+
(e.components ?? []).map((s) => [s.id, s])
|
|
8
|
+
), i = new Map(e.personas.map((s) => [s.id, s])), d = new Map(e.fixtures.map((s) => [s.id, s])), r = new Map((e.rules ?? []).map((s) => [s.id, s])), n = new Map(e.modules.map((s) => [s.id, s])), c = new Map(
|
|
9
|
+
e.modules.flatMap((s) => (s.flows ?? []).map((m) => [m.id, m]))
|
|
10
|
+
), h = e.modules.map((s) => ({
|
|
11
|
+
module: s,
|
|
12
|
+
scenarios: e.scenarios.filter((m) => m.id.split(".")[0] === s.id)
|
|
13
|
+
})), u = new Set(h.flatMap((s) => s.scenarios.map((m) => m.id))), g = e.scenarios.filter((s) => !u.has(s.id)), f = (s) => s ? o.get(s) : void 0, p = (s) => s ? i.get(s) : void 0, b = (s, m) => {
|
|
14
|
+
if (!(!s || !m))
|
|
15
|
+
return a.get(s)?.fixtures?.find((k) => k.id === m);
|
|
16
|
+
}, S = (s = {}) => e.scenarios.filter(
|
|
17
|
+
(m) => te(s.handoff, m.id) && (s.includePorted || (s.view === "ported" ? m.status === "ported" : m.status !== "ported") || s.view === void 0 && m.id === s.activeScenario)
|
|
18
|
+
), _ = (s) => s ? s.permissions ? s.permissions : p(s.persona)?.permissions ?? [] : [];
|
|
19
19
|
return {
|
|
20
20
|
product: e,
|
|
21
21
|
tree: h,
|
|
22
|
-
orphans:
|
|
23
|
-
issues:
|
|
24
|
-
scenario:
|
|
25
|
-
component: (
|
|
26
|
-
componentFixture:
|
|
27
|
-
resolveComponentFixture: (
|
|
28
|
-
const k =
|
|
22
|
+
orphans: g,
|
|
23
|
+
issues: ye(e),
|
|
24
|
+
scenario: f,
|
|
25
|
+
component: (s) => s ? a.get(s) : void 0,
|
|
26
|
+
componentFixture: b,
|
|
27
|
+
resolveComponentFixture: (s, m) => {
|
|
28
|
+
const k = s ? a.get(s) : void 0, M = b(s, m), y = b(s, k?.defaultFixture) ?? k?.fixtures?.[0];
|
|
29
29
|
return {
|
|
30
|
-
fixture: M ??
|
|
31
|
-
requestedId:
|
|
32
|
-
didFallback: !!(
|
|
30
|
+
fixture: M ?? y,
|
|
31
|
+
requestedId: m,
|
|
32
|
+
didFallback: !!(m && !M)
|
|
33
33
|
};
|
|
34
34
|
},
|
|
35
|
-
persona:
|
|
36
|
-
fixture: (
|
|
37
|
-
rule: (
|
|
38
|
-
module: (
|
|
39
|
-
flow: (
|
|
40
|
-
rulesOf: (
|
|
41
|
-
permissionsOf:
|
|
42
|
-
scenariosForRoute: (
|
|
43
|
-
const k =
|
|
44
|
-
return
|
|
35
|
+
persona: p,
|
|
36
|
+
fixture: (s) => s ? d.get(s) : void 0,
|
|
37
|
+
rule: (s) => s ? r.get(s) : void 0,
|
|
38
|
+
module: (s) => s ? n.get(s) : void 0,
|
|
39
|
+
flow: (s) => s ? c.get(s) : void 0,
|
|
40
|
+
rulesOf: (s) => (s?.rules ?? []).map((m) => r.get(m)).filter((m) => !!m),
|
|
41
|
+
permissionsOf: _,
|
|
42
|
+
scenariosForRoute: (s, m) => {
|
|
43
|
+
const k = s.split("?")[0];
|
|
44
|
+
return S(m).filter((M) => M.route.split("?")[0] === k);
|
|
45
45
|
},
|
|
46
|
-
activeScenarios:
|
|
47
|
-
treeFor: (
|
|
48
|
-
const
|
|
46
|
+
activeScenarios: S,
|
|
47
|
+
treeFor: (s) => {
|
|
48
|
+
const m = new Set(S(s).map((k) => k.id));
|
|
49
49
|
return h.map((k) => ({
|
|
50
50
|
...k,
|
|
51
|
-
scenarios: k.scenarios.filter((M) =>
|
|
51
|
+
scenarios: k.scenarios.filter((M) => m.has(M.id))
|
|
52
52
|
}));
|
|
53
53
|
},
|
|
54
|
-
orphansFor: (
|
|
55
|
-
const
|
|
56
|
-
return
|
|
54
|
+
orphansFor: (s) => {
|
|
55
|
+
const m = new Set(S(s).map((k) => k.id));
|
|
56
|
+
return g.filter((k) => m.has(k.id));
|
|
57
57
|
},
|
|
58
|
-
search: (
|
|
59
|
-
const k =
|
|
60
|
-
return k ? M.filter((
|
|
61
|
-
const
|
|
62
|
-
return
|
|
58
|
+
search: (s, m) => {
|
|
59
|
+
const k = pe(s), M = S(m);
|
|
60
|
+
return k ? M.filter((y) => {
|
|
61
|
+
const E = n.get(y.id.split(".")[0] ?? "")?.name ?? "";
|
|
62
|
+
return pe(
|
|
63
63
|
[
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
(
|
|
71
|
-
(
|
|
64
|
+
y.title,
|
|
65
|
+
y.id,
|
|
66
|
+
y.intent ?? "",
|
|
67
|
+
y.route,
|
|
68
|
+
E,
|
|
69
|
+
i.get(y.persona)?.name ?? "",
|
|
70
|
+
(y.tags ?? []).join(" "),
|
|
71
|
+
(y.expected ?? []).join(" ")
|
|
72
72
|
].join(" ")
|
|
73
73
|
).includes(k);
|
|
74
74
|
}) : M;
|
|
75
75
|
},
|
|
76
|
-
byStatus: (
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
byStatus: (s, m) => S({ ...m, includePorted: !0 }).filter((k) => k.status === s),
|
|
77
|
+
componentsFor: (s) => (e.components ?? []).filter(
|
|
78
|
+
(m) => ee(s, m.id)
|
|
79
|
+
),
|
|
80
|
+
coverage: (s) => {
|
|
81
|
+
const m = Object.fromEntries(
|
|
82
|
+
be.map((k) => [k, 0])
|
|
80
83
|
);
|
|
81
|
-
for (const k of
|
|
82
|
-
return
|
|
84
|
+
for (const k of S(s)) m[k.status] += 1;
|
|
85
|
+
return m;
|
|
83
86
|
}
|
|
84
87
|
};
|
|
85
88
|
}
|
|
86
|
-
function
|
|
89
|
+
function pe(e) {
|
|
87
90
|
return e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").trim();
|
|
88
91
|
}
|
|
89
|
-
const
|
|
92
|
+
const ge = [
|
|
90
93
|
{ id: "fit", label: "Ajustar" },
|
|
91
94
|
{ id: "mobile", label: "Celular", width: 390, height: 844 },
|
|
92
95
|
{ id: "tablet", label: "Tablet", width: 834, height: 1112 },
|
|
93
96
|
{ id: "desktop", label: "Desktop", width: 1440, height: 900 },
|
|
94
97
|
{ id: "custom", label: "Personalizado" }
|
|
95
|
-
],
|
|
96
|
-
function
|
|
97
|
-
const
|
|
98
|
+
], Fe = [1, 1.25, 1.5, 2];
|
|
99
|
+
function $e(e, o) {
|
|
100
|
+
const a = new URLSearchParams(e), i = _e(a), d = a.get(w.component) ?? void 0, r = ee(i, d) ? o.component(d) : void 0, n = a.get(w.scenario) ?? void 0, c = r || !te(i, n) ? void 0 : o.scenario(n), h = a.get(w.fixture) ?? void 0, u = r ? h ?? o.componentFixture(r.id, r.defaultFixture)?.id ?? r.fixtures?.[0]?.id : void 0, g = a.get(w.network), f = Number(a.get(w.textScale)), p = a.get(w.view), b = c?.status === "ported" || p === "ported" || a.get(w.showPorted) === "1" ? "ported" : "active";
|
|
98
101
|
return {
|
|
99
|
-
scenario:
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
102
|
+
scenario: c?.id,
|
|
103
|
+
handoff: i,
|
|
104
|
+
view: b,
|
|
105
|
+
showPorted: b === "ported",
|
|
106
|
+
component: r?.id,
|
|
107
|
+
persona: a.get(w.persona) ?? c?.persona,
|
|
108
|
+
fixture: r ? u : h ?? c?.fixture,
|
|
109
|
+
network: De(g) ? g : c?.network ?? "success",
|
|
110
|
+
viewport: a.get(w.viewport) ?? "fit",
|
|
111
|
+
customWidth: Ie(a.get(w.customWidth)),
|
|
112
|
+
themeMode: a.get(w.themeMode) ?? o.product.theme?.modes?.[0],
|
|
113
|
+
locale: a.get(w.locale) ?? o.product.theme?.locales?.[0],
|
|
114
|
+
dataSource: a.get(w.dataSource) ?? o.product.dataSources?.default ?? "fixtures",
|
|
115
|
+
chromeTheme: Oe(a.get(w.chromeTheme)) ? a.get(w.chromeTheme) : "dark",
|
|
112
116
|
// Chrome visível por padrão. `?chrome=0` é o modo de revisão limpa e captura
|
|
113
117
|
// de tela, então precisa ser explícito para não sumir sem pedido.
|
|
114
|
-
chrome:
|
|
115
|
-
keyboardMode:
|
|
116
|
-
reducedMotion:
|
|
117
|
-
textScale:
|
|
118
|
-
inspector:
|
|
118
|
+
chrome: a.get(w.chrome) !== "0",
|
|
119
|
+
keyboardMode: a.get(w.keyboardMode) === "1",
|
|
120
|
+
reducedMotion: a.get(w.reducedMotion) === "1",
|
|
121
|
+
textScale: Fe.includes(f) ? f : 1,
|
|
122
|
+
inspector: a.get(w.inspector) !== "0"
|
|
119
123
|
};
|
|
120
124
|
}
|
|
121
|
-
function
|
|
122
|
-
const
|
|
123
|
-
e.component ?
|
|
124
|
-
const
|
|
125
|
-
e.themeMode && e.themeMode !==
|
|
126
|
-
const
|
|
127
|
-
e.locale && e.locale !==
|
|
128
|
-
const
|
|
129
|
-
e.dataSource && e.dataSource !==
|
|
130
|
-
const c =
|
|
125
|
+
function X(e, o) {
|
|
126
|
+
const a = new URLSearchParams(), i = o.scenario(e.scenario);
|
|
127
|
+
e.component ? a.set(w.component, e.component) : e.scenario && a.set(w.scenario, e.scenario), ce(e) === "ported" && a.set(w.view, "ported"), e.persona && e.persona !== i?.persona && a.set(w.persona, e.persona), e.component && e.fixture ? a.set(w.fixture, e.fixture) : e.fixture && e.fixture !== i?.fixture && a.set(w.fixture, e.fixture), e.network !== (i?.network ?? "success") && a.set(w.network, e.network), e.viewport !== "fit" && a.set(w.viewport, e.viewport), e.viewport === "custom" && e.customWidth && a.set(w.customWidth, String(e.customWidth));
|
|
128
|
+
const d = o.product.theme?.modes?.[0];
|
|
129
|
+
e.themeMode && e.themeMode !== d && a.set(w.themeMode, e.themeMode);
|
|
130
|
+
const r = o.product.theme?.locales?.[0];
|
|
131
|
+
e.locale && e.locale !== r && a.set(w.locale, e.locale);
|
|
132
|
+
const n = o.product.dataSources?.default ?? "fixtures";
|
|
133
|
+
e.dataSource && e.dataSource !== n && a.set(w.dataSource, e.dataSource), e.chromeTheme === "light" && a.set(w.chromeTheme, "light"), e.chrome || a.set(w.chrome, "0"), e.keyboardMode && a.set(w.keyboardMode, "1"), e.reducedMotion && a.set(w.reducedMotion, "1"), e.textScale !== 1 && a.set(w.textScale, String(e.textScale)), e.inspector || a.set(w.inspector, "0"), oe(a, e.handoff);
|
|
134
|
+
const c = a.toString();
|
|
131
135
|
return c ? `?${c}` : "";
|
|
132
136
|
}
|
|
133
|
-
function
|
|
134
|
-
const [
|
|
135
|
-
|
|
136
|
-
const
|
|
137
|
-
return window.addEventListener("popstate",
|
|
137
|
+
function Ee(e) {
|
|
138
|
+
const [o, a] = F(() => ue());
|
|
139
|
+
D(() => {
|
|
140
|
+
const f = () => a(ue());
|
|
141
|
+
return window.addEventListener("popstate", f), () => window.removeEventListener("popstate", f);
|
|
138
142
|
}, []);
|
|
139
|
-
const
|
|
140
|
-
const
|
|
141
|
-
|
|
142
|
-
}, []),
|
|
143
|
-
(
|
|
144
|
-
const
|
|
145
|
-
...
|
|
146
|
-
...
|
|
147
|
-
...
|
|
143
|
+
const i = T(() => $e(o.search, e), [o.search, e]), d = R((f, p, b = !1) => {
|
|
144
|
+
const S = `${f}${p}`;
|
|
145
|
+
b ? window.history.replaceState(null, "", S) : window.history.pushState(null, "", S), a({ path: f, search: p });
|
|
146
|
+
}, []), r = R(
|
|
147
|
+
(f) => {
|
|
148
|
+
const p = f.view ?? (f.showPorted === void 0 ? void 0 : f.showPorted ? "ported" : "active"), b = {
|
|
149
|
+
...i,
|
|
150
|
+
...f,
|
|
151
|
+
...p ? { view: p, showPorted: p === "ported" } : {}
|
|
148
152
|
};
|
|
149
|
-
|
|
153
|
+
d(o.path, X(b, e), !0);
|
|
150
154
|
},
|
|
151
|
-
[
|
|
152
|
-
),
|
|
153
|
-
(
|
|
154
|
-
const
|
|
155
|
-
...
|
|
156
|
-
view:
|
|
157
|
-
showPorted:
|
|
158
|
-
...
|
|
155
|
+
[i, o.path, d, e]
|
|
156
|
+
), n = R(
|
|
157
|
+
(f) => {
|
|
158
|
+
const p = e.scenario(i.scenario), b = !p || (f === "ported" ? p.status === "ported" : p.status !== "ported"), S = {
|
|
159
|
+
...i,
|
|
160
|
+
view: f,
|
|
161
|
+
showPorted: f === "ported",
|
|
162
|
+
...b ? {} : {
|
|
159
163
|
scenario: void 0,
|
|
160
164
|
persona: void 0,
|
|
161
165
|
fixture: void 0,
|
|
162
166
|
network: "success"
|
|
163
167
|
}
|
|
164
168
|
};
|
|
165
|
-
|
|
169
|
+
d(b ? o.path : "/", X(S, e), !1);
|
|
166
170
|
},
|
|
167
|
-
[
|
|
168
|
-
), c =
|
|
169
|
-
(
|
|
170
|
-
const [
|
|
171
|
-
|
|
171
|
+
[i, o.path, d, e]
|
|
172
|
+
), c = R(
|
|
173
|
+
(f, p) => {
|
|
174
|
+
const [b, S] = f.split("?"), _ = b || "/", s = new URLSearchParams(S ?? o.search);
|
|
175
|
+
i.handoff && oe(s, i.handoff);
|
|
176
|
+
const m = s.toString(), k = m ? `?${m}` : "";
|
|
177
|
+
d(_, k, p?.replace ?? !1);
|
|
172
178
|
},
|
|
173
|
-
[
|
|
174
|
-
), h =
|
|
175
|
-
(
|
|
176
|
-
const
|
|
177
|
-
if (!i) return;
|
|
178
|
-
const
|
|
179
|
-
...
|
|
180
|
-
scenario:
|
|
181
|
-
view:
|
|
182
|
-
showPorted:
|
|
179
|
+
[i.handoff, o.search, d]
|
|
180
|
+
), h = R(
|
|
181
|
+
(f) => {
|
|
182
|
+
const p = e.scenario(f);
|
|
183
|
+
if (!p || !te(i.handoff, f)) return;
|
|
184
|
+
const b = {
|
|
185
|
+
...i,
|
|
186
|
+
scenario: p.id,
|
|
187
|
+
view: p.status === "ported" ? "ported" : "active",
|
|
188
|
+
showPorted: p.status === "ported",
|
|
183
189
|
component: void 0,
|
|
184
|
-
persona:
|
|
185
|
-
fixture:
|
|
186
|
-
network:
|
|
190
|
+
persona: p.persona,
|
|
191
|
+
fixture: p.fixture,
|
|
192
|
+
network: p.network ?? "success"
|
|
187
193
|
};
|
|
188
|
-
|
|
194
|
+
d(p.route, X(b, e), !1);
|
|
189
195
|
},
|
|
190
|
-
[
|
|
191
|
-
),
|
|
192
|
-
(
|
|
193
|
-
const
|
|
194
|
-
if (!i) return;
|
|
195
|
-
const
|
|
196
|
-
...
|
|
196
|
+
[i, d, e]
|
|
197
|
+
), u = R(
|
|
198
|
+
(f) => {
|
|
199
|
+
const p = e.component(f);
|
|
200
|
+
if (!p || !ee(i.handoff, f)) return;
|
|
201
|
+
const b = {
|
|
202
|
+
...i,
|
|
197
203
|
scenario: void 0,
|
|
198
|
-
component:
|
|
204
|
+
component: p.id,
|
|
199
205
|
persona: void 0,
|
|
200
206
|
fixture: void 0,
|
|
201
207
|
network: "success"
|
|
202
208
|
};
|
|
203
|
-
|
|
209
|
+
b.fixture = e.componentFixture(p.id, p.defaultFixture)?.id ?? p.fixtures?.[0]?.id, d("/", X(b, e), !1);
|
|
204
210
|
},
|
|
205
|
-
[
|
|
206
|
-
),
|
|
211
|
+
[i, d, e]
|
|
212
|
+
), g = T(() => Re(i), [i]);
|
|
207
213
|
return {
|
|
208
|
-
location:
|
|
209
|
-
controls:
|
|
210
|
-
viewport:
|
|
211
|
-
setControls:
|
|
212
|
-
setScenarioView:
|
|
214
|
+
location: o,
|
|
215
|
+
controls: i,
|
|
216
|
+
viewport: g,
|
|
217
|
+
setControls: r,
|
|
218
|
+
setScenarioView: n,
|
|
213
219
|
navigate: c,
|
|
214
220
|
openScenario: h,
|
|
215
|
-
openComponent:
|
|
221
|
+
openComponent: u
|
|
216
222
|
};
|
|
217
223
|
}
|
|
218
|
-
function
|
|
224
|
+
function ce(e) {
|
|
219
225
|
return e.view ?? (e.showPorted ? "ported" : "active");
|
|
220
226
|
}
|
|
221
|
-
function
|
|
222
|
-
const
|
|
223
|
-
return e.viewport === "custom" ? { id: "custom", label: "Personalizado", width: e.customWidth ?? 1024 } :
|
|
227
|
+
function Re(e) {
|
|
228
|
+
const o = ge.find((a) => a.id === e.viewport);
|
|
229
|
+
return e.viewport === "custom" ? { id: "custom", label: "Personalizado", width: e.customWidth ?? 1024 } : o ?? { id: "fit", label: "Ajustar" };
|
|
224
230
|
}
|
|
225
|
-
function
|
|
231
|
+
function ue() {
|
|
226
232
|
return typeof window > "u" ? { path: "/", search: "" } : { path: window.location.pathname, search: window.location.search };
|
|
227
233
|
}
|
|
228
|
-
function
|
|
229
|
-
return e !== null &&
|
|
234
|
+
function De(e) {
|
|
235
|
+
return e !== null && ve.includes(e);
|
|
230
236
|
}
|
|
231
|
-
function
|
|
237
|
+
function Oe(e) {
|
|
232
238
|
return e === "dark" || e === "light";
|
|
233
239
|
}
|
|
234
|
-
function
|
|
240
|
+
function Ie(e) {
|
|
235
241
|
if (!e) return;
|
|
236
|
-
const
|
|
237
|
-
return Number.isFinite(
|
|
238
|
-
}
|
|
239
|
-
function Me(e, t) {
|
|
240
|
-
const n = e.split("/").filter(Boolean), s = Te(t).split("/").filter(Boolean), l = {};
|
|
241
|
-
for (const [a, r] of n.entries()) {
|
|
242
|
-
if (r === "*")
|
|
243
|
-
return l["*"] = s.slice(a).join("/"), l;
|
|
244
|
-
const c = s[a];
|
|
245
|
-
if (c === void 0) return null;
|
|
246
|
-
if (r.startsWith(":")) {
|
|
247
|
-
l[r.slice(1)] = c;
|
|
248
|
-
continue;
|
|
249
|
-
}
|
|
250
|
-
if (r !== c) return null;
|
|
251
|
-
}
|
|
252
|
-
return n.length !== s.length ? null : l;
|
|
242
|
+
const o = Number.parseInt(e, 10);
|
|
243
|
+
return Number.isFinite(o) && o > 0 ? o : void 0;
|
|
253
244
|
}
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
if (l) return { definition: s, params: l };
|
|
245
|
+
const Be = 2500;
|
|
246
|
+
class He extends Error {
|
|
247
|
+
constructor(o) {
|
|
248
|
+
super(`Falha de rede simulada no cenário "${o}".`), this.name = "SimulatedNetworkError";
|
|
259
249
|
}
|
|
260
250
|
}
|
|
261
|
-
function
|
|
262
|
-
const t = e.split("/").filter(Boolean);
|
|
263
|
-
let n = t.length;
|
|
264
|
-
for (const s of t)
|
|
265
|
-
s === "*" ? n -= 2 : s.startsWith(":") ? n += 1 : n += 4;
|
|
266
|
-
return n;
|
|
267
|
-
}
|
|
268
|
-
function Te(e) {
|
|
269
|
-
const t = e.split("?")[0] ?? e;
|
|
270
|
-
try {
|
|
271
|
-
return decodeURI(t);
|
|
272
|
-
} catch {
|
|
273
|
-
return t;
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
const Ae = 2500;
|
|
277
|
-
class Pe extends Error {
|
|
278
|
-
constructor(t) {
|
|
279
|
-
super(`Falha de rede simulada no cenário "${t}".`), this.name = "SimulatedNetworkError";
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
function X(e) {
|
|
251
|
+
function se(e) {
|
|
283
252
|
if (e)
|
|
284
253
|
return typeof e.data == "function" ? e.data() : e.data;
|
|
285
254
|
}
|
|
286
|
-
const
|
|
255
|
+
const ie = {
|
|
287
256
|
id: "fixtures",
|
|
288
257
|
label: "Fixtures",
|
|
289
|
-
load: async ({ scenario: e, fixture:
|
|
290
|
-
switch (
|
|
258
|
+
load: async ({ scenario: e, fixture: o, network: a }) => {
|
|
259
|
+
switch (a) {
|
|
291
260
|
case "empty":
|
|
292
261
|
return null;
|
|
293
262
|
case "error":
|
|
294
|
-
throw new
|
|
263
|
+
throw new He(e.id);
|
|
295
264
|
case "loading":
|
|
296
265
|
return new Promise(() => {
|
|
297
266
|
});
|
|
298
267
|
case "slow":
|
|
299
|
-
return await
|
|
268
|
+
return await We(Be), se(o);
|
|
300
269
|
default:
|
|
301
|
-
return
|
|
270
|
+
return se(o);
|
|
302
271
|
}
|
|
303
272
|
}
|
|
304
273
|
};
|
|
305
|
-
function
|
|
306
|
-
const { id:
|
|
274
|
+
function Ct(e) {
|
|
275
|
+
const { id: o, label: a, baseUrl: i, path: d, init: r, fallbackToFixture: n = !0 } = e;
|
|
307
276
|
return {
|
|
308
|
-
id:
|
|
309
|
-
label:
|
|
277
|
+
id: o,
|
|
278
|
+
label: a,
|
|
310
279
|
load: async (c) => {
|
|
311
|
-
const h = new URL(
|
|
280
|
+
const h = new URL(d ? d(c) : c.scenario.route, i);
|
|
312
281
|
try {
|
|
313
|
-
const
|
|
314
|
-
if (!
|
|
315
|
-
return await
|
|
316
|
-
} catch (
|
|
317
|
-
if (
|
|
318
|
-
throw new Error(`Adapter "${
|
|
282
|
+
const u = await fetch(h, r);
|
|
283
|
+
if (!u.ok) throw new Error(`${u.status} ${u.statusText}`);
|
|
284
|
+
return await u.json();
|
|
285
|
+
} catch (u) {
|
|
286
|
+
if (n) return se(c.fixture);
|
|
287
|
+
throw new Error(`Adapter "${o}" falhou em ${h.toString()}`, { cause: u });
|
|
319
288
|
}
|
|
320
289
|
}
|
|
321
290
|
};
|
|
322
291
|
}
|
|
323
|
-
function
|
|
324
|
-
return new Promise((
|
|
292
|
+
function We(e) {
|
|
293
|
+
return new Promise((o) => setTimeout(o, e));
|
|
325
294
|
}
|
|
326
|
-
function
|
|
327
|
-
const { scenario:
|
|
295
|
+
function ze(e) {
|
|
296
|
+
const { scenario: o, fixture: a, network: i, adapter: d } = e, [r, n] = F({
|
|
328
297
|
data: void 0,
|
|
329
|
-
isLoading: !!
|
|
298
|
+
isLoading: !!o,
|
|
330
299
|
error: void 0
|
|
331
300
|
});
|
|
332
|
-
return
|
|
333
|
-
if (!
|
|
334
|
-
|
|
301
|
+
return D(() => {
|
|
302
|
+
if (!o) {
|
|
303
|
+
n({ data: void 0, isLoading: !1, error: void 0 });
|
|
335
304
|
return;
|
|
336
305
|
}
|
|
337
306
|
let c = !0;
|
|
338
|
-
|
|
339
|
-
const h =
|
|
340
|
-
return Promise.resolve(h.load({ scenario:
|
|
341
|
-
c &&
|
|
342
|
-
}).catch((
|
|
343
|
-
c &&
|
|
307
|
+
n({ data: void 0, isLoading: !0, error: void 0 });
|
|
308
|
+
const h = d ?? ie;
|
|
309
|
+
return Promise.resolve(h.load({ scenario: o, fixture: a, network: i })).then((u) => {
|
|
310
|
+
c && n({ data: u, isLoading: !1, error: void 0 });
|
|
311
|
+
}).catch((u) => {
|
|
312
|
+
c && n({
|
|
344
313
|
data: void 0,
|
|
345
314
|
isLoading: !1,
|
|
346
|
-
error:
|
|
315
|
+
error: u instanceof Error ? u : new Error(String(u))
|
|
347
316
|
});
|
|
348
317
|
}), () => {
|
|
349
318
|
c = !1;
|
|
350
319
|
};
|
|
351
|
-
}, [
|
|
320
|
+
}, [o, a, i, d]), r;
|
|
352
321
|
}
|
|
353
|
-
const
|
|
322
|
+
const Ue = {
|
|
354
323
|
a: "link",
|
|
355
324
|
article: "article",
|
|
356
325
|
aside: "complementary",
|
|
@@ -384,7 +353,7 @@ const Ee = {
|
|
|
384
353
|
th: "columnheader",
|
|
385
354
|
tr: "row",
|
|
386
355
|
ul: "list"
|
|
387
|
-
},
|
|
356
|
+
}, je = {
|
|
388
357
|
button: "button",
|
|
389
358
|
checkbox: "checkbox",
|
|
390
359
|
email: "textbox",
|
|
@@ -399,88 +368,88 @@ const Ee = {
|
|
|
399
368
|
text: "textbox",
|
|
400
369
|
url: "textbox"
|
|
401
370
|
};
|
|
402
|
-
function
|
|
371
|
+
function Ke(e) {
|
|
403
372
|
if (!e || !(e instanceof HTMLElement)) return;
|
|
404
|
-
const { name:
|
|
373
|
+
const { name: o, nameFrom: a } = qe(e);
|
|
405
374
|
return {
|
|
406
|
-
role:
|
|
407
|
-
name:
|
|
408
|
-
nameFrom:
|
|
409
|
-
description:
|
|
410
|
-
states:
|
|
411
|
-
selector:
|
|
375
|
+
role: Ve(e),
|
|
376
|
+
name: o,
|
|
377
|
+
nameFrom: a,
|
|
378
|
+
description: Ge(e),
|
|
379
|
+
states: Ye(e),
|
|
380
|
+
selector: Xe(e),
|
|
412
381
|
hiddenFromTabOrder: e.tabIndex < 0,
|
|
413
|
-
hiddenFromAssistiveTech:
|
|
382
|
+
hiddenFromAssistiveTech: Je(e)
|
|
414
383
|
};
|
|
415
384
|
}
|
|
416
|
-
function
|
|
417
|
-
const
|
|
418
|
-
if (
|
|
419
|
-
const
|
|
420
|
-
if (
|
|
421
|
-
const
|
|
422
|
-
return
|
|
385
|
+
function Ve(e) {
|
|
386
|
+
const o = e.getAttribute("role");
|
|
387
|
+
if (o) return o.split(/\s+/)[0] ?? o;
|
|
388
|
+
const a = e.tagName.toLowerCase();
|
|
389
|
+
if (a === "input") {
|
|
390
|
+
const i = e.type.toLowerCase();
|
|
391
|
+
return je[i] ?? "textbox";
|
|
423
392
|
}
|
|
424
|
-
return
|
|
393
|
+
return a === "a" && !e.hasAttribute("href") ? "generic" : Ue[a] ?? "generic";
|
|
425
394
|
}
|
|
426
|
-
function
|
|
427
|
-
const
|
|
428
|
-
if (
|
|
429
|
-
const
|
|
430
|
-
if (
|
|
395
|
+
function qe(e) {
|
|
396
|
+
const o = e.getAttribute("aria-labelledby");
|
|
397
|
+
if (o) {
|
|
398
|
+
const n = o.split(/\s+/).map((c) => e.ownerDocument.getElementById(c)?.textContent?.trim() ?? "").filter(Boolean).join(" ");
|
|
399
|
+
if (n) return { name: n, nameFrom: "aria-labelledby" };
|
|
431
400
|
}
|
|
432
|
-
const
|
|
433
|
-
if (
|
|
401
|
+
const a = e.getAttribute("aria-label")?.trim();
|
|
402
|
+
if (a) return { name: a, nameFrom: "aria-label" };
|
|
434
403
|
if (e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement) {
|
|
435
|
-
const
|
|
436
|
-
if (
|
|
404
|
+
const n = Array.from(e.labels ?? []).map((c) => c.textContent?.trim() ?? "").filter(Boolean);
|
|
405
|
+
if (n.length) return { name: n.join(" "), nameFrom: "label" };
|
|
437
406
|
}
|
|
438
407
|
if (e instanceof HTMLImageElement) {
|
|
439
|
-
const
|
|
440
|
-
if (
|
|
408
|
+
const n = e.getAttribute("alt");
|
|
409
|
+
if (n !== null) return { name: n, nameFrom: "alt" };
|
|
441
410
|
}
|
|
442
|
-
const
|
|
443
|
-
return
|
|
411
|
+
const i = e.getAttribute("title")?.trim(), d = Qe(e);
|
|
412
|
+
return d ? { name: d, nameFrom: "content" } : i ? { name: i, nameFrom: "title" } : e instanceof HTMLInputElement && e.value ? { name: e.value, nameFrom: "value" } : e.getAttribute("placeholder")?.trim() ? { name: "", nameFrom: "none" } : { name: "", nameFrom: "none" };
|
|
444
413
|
}
|
|
445
|
-
function
|
|
446
|
-
const
|
|
447
|
-
if (
|
|
448
|
-
const
|
|
449
|
-
if (
|
|
414
|
+
function Ge(e) {
|
|
415
|
+
const o = e.getAttribute("aria-describedby");
|
|
416
|
+
if (o) {
|
|
417
|
+
const a = o.split(/\s+/).map((i) => e.ownerDocument.getElementById(i)?.textContent?.trim() ?? "").filter(Boolean).join(" ");
|
|
418
|
+
if (a) return a;
|
|
450
419
|
}
|
|
451
420
|
return e.getAttribute("aria-description")?.trim() || void 0;
|
|
452
421
|
}
|
|
453
|
-
function
|
|
454
|
-
const
|
|
455
|
-
const
|
|
456
|
-
|
|
422
|
+
function Ye(e) {
|
|
423
|
+
const o = [], a = (i, d = i.replace("aria-", "")) => {
|
|
424
|
+
const r = e.getAttribute(i);
|
|
425
|
+
r !== null && r !== "false" && o.push(r === "true" || r === "" ? d : `${d}=${r}`);
|
|
457
426
|
};
|
|
458
|
-
return e.disabled &&
|
|
427
|
+
return e.disabled && o.push("disabled"), e.getAttribute("aria-disabled") === "true" && o.push("disabled"), e.required && o.push("required"), e.readOnly && o.push("readonly"), e.checked && o.push("checked"), a("aria-expanded"), a("aria-selected"), a("aria-checked"), a("aria-pressed"), a("aria-current"), a("aria-invalid"), a("aria-busy"), a("aria-live"), a("aria-haspopup"), a("aria-level", "level"), e.ownerDocument.activeElement === e && o.push("focused"), [...new Set(o)];
|
|
459
428
|
}
|
|
460
|
-
function
|
|
461
|
-
let
|
|
462
|
-
for (;
|
|
463
|
-
if (
|
|
464
|
-
|
|
429
|
+
function Je(e) {
|
|
430
|
+
let o = e;
|
|
431
|
+
for (; o; ) {
|
|
432
|
+
if (o.getAttribute("aria-hidden") === "true" || o.hasAttribute("hidden")) return !0;
|
|
433
|
+
o = o.parentElement;
|
|
465
434
|
}
|
|
466
435
|
return !1;
|
|
467
436
|
}
|
|
468
|
-
function
|
|
469
|
-
const
|
|
470
|
-
for (const
|
|
471
|
-
|
|
472
|
-
return (
|
|
437
|
+
function Qe(e) {
|
|
438
|
+
const o = e.cloneNode(!0);
|
|
439
|
+
for (const a of o.querySelectorAll("[aria-hidden='true'],[hidden]"))
|
|
440
|
+
a.remove();
|
|
441
|
+
return (o.textContent ?? "").replace(/\s+/g, " ").trim().slice(0, 160);
|
|
473
442
|
}
|
|
474
|
-
function
|
|
475
|
-
const
|
|
476
|
-
if (e.id) return `${
|
|
477
|
-
const
|
|
478
|
-
if (
|
|
479
|
-
const
|
|
480
|
-
return
|
|
443
|
+
function Xe(e) {
|
|
444
|
+
const o = e.tagName.toLowerCase();
|
|
445
|
+
if (e.id) return `${o}#${e.id}`;
|
|
446
|
+
const a = e.getAttribute("data-testid");
|
|
447
|
+
if (a) return `${o}[data-testid="${a}"]`;
|
|
448
|
+
const i = Array.from(e.classList).slice(0, 2);
|
|
449
|
+
return i.length ? `${o}.${i.join(".")}` : o;
|
|
481
450
|
}
|
|
482
|
-
function
|
|
483
|
-
const
|
|
451
|
+
function Ze(e = document) {
|
|
452
|
+
const o = [
|
|
484
453
|
"a[href]",
|
|
485
454
|
"button",
|
|
486
455
|
"input",
|
|
@@ -490,40 +459,40 @@ function Ke(e = document) {
|
|
|
490
459
|
"[tabindex]",
|
|
491
460
|
"[contenteditable='true']"
|
|
492
461
|
].join(",");
|
|
493
|
-
return Array.from(e.querySelectorAll(
|
|
494
|
-
if (
|
|
495
|
-
const
|
|
496
|
-
return
|
|
462
|
+
return Array.from(e.querySelectorAll(o)).filter((a) => {
|
|
463
|
+
if (a.tabIndex < 0 || a.disabled || a.getAttribute("aria-hidden") === "true") return !1;
|
|
464
|
+
const i = window.getComputedStyle(a);
|
|
465
|
+
return i.display === "none" || i.visibility === "hidden" ? !1 : a.offsetWidth > 0 || a.offsetHeight > 0 || a === document.activeElement;
|
|
497
466
|
});
|
|
498
467
|
}
|
|
499
|
-
function
|
|
500
|
-
const [
|
|
501
|
-
const c =
|
|
468
|
+
function et(e, o) {
|
|
469
|
+
const [a, i] = F(), [d, r] = F([]), n = R(() => {
|
|
470
|
+
const c = o.current;
|
|
502
471
|
if (!c) {
|
|
503
|
-
|
|
472
|
+
r([]);
|
|
504
473
|
return;
|
|
505
474
|
}
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
index:
|
|
475
|
+
r(
|
|
476
|
+
Ze(c).map((h, u) => ({
|
|
477
|
+
index: u + 1,
|
|
509
478
|
element: h,
|
|
510
479
|
rect: h.getBoundingClientRect(),
|
|
511
480
|
forcedOrder: h.tabIndex > 0
|
|
512
481
|
}))
|
|
513
482
|
);
|
|
514
|
-
}, [
|
|
515
|
-
return
|
|
483
|
+
}, [o]);
|
|
484
|
+
return D(() => {
|
|
516
485
|
if (!e) {
|
|
517
|
-
|
|
486
|
+
i(void 0), r([]);
|
|
518
487
|
return;
|
|
519
488
|
}
|
|
520
|
-
const c = () =>
|
|
521
|
-
document.addEventListener("focusin", c), window.addEventListener("resize",
|
|
522
|
-
const h =
|
|
523
|
-
return
|
|
524
|
-
document.removeEventListener("focusin", c), window.removeEventListener("resize",
|
|
489
|
+
const c = () => i(Ke(document.activeElement));
|
|
490
|
+
document.addEventListener("focusin", c), window.addEventListener("resize", n), window.addEventListener("scroll", n, !0), c(), n();
|
|
491
|
+
const h = o.current, u = h ? new MutationObserver(() => n()) : void 0;
|
|
492
|
+
return u?.observe(h, { childList: !0, subtree: !0, attributes: !0 }), () => {
|
|
493
|
+
document.removeEventListener("focusin", c), window.removeEventListener("resize", n), window.removeEventListener("scroll", n, !0), u?.disconnect();
|
|
525
494
|
};
|
|
526
|
-
}, [e,
|
|
495
|
+
}, [e, n, o]), { focused: a, tabStops: d, refresh: n };
|
|
527
496
|
}
|
|
528
497
|
const L = {
|
|
529
498
|
status: {
|
|
@@ -639,7 +608,15 @@ const L = {
|
|
|
639
608
|
componentGroup: "Grupo",
|
|
640
609
|
componentFixture: "Fixture ativa",
|
|
641
610
|
componentFixtureDescription: "Descrição da fixture",
|
|
642
|
-
componentFixtureFallback: (e,
|
|
611
|
+
componentFixtureFallback: (e, o) => `A fixture \`${e}\` não existe neste componente. Exibindo \`${o}\` como fallback.`,
|
|
612
|
+
taskScope: "Dados desta tarefa",
|
|
613
|
+
taskScopeDescription: "Contrato e estado autorizados para a situação ativa.",
|
|
614
|
+
inheritedScope: "Contexto herdado do produto e da persona",
|
|
615
|
+
inheritedScopeDescription: "Informações compartilhadas que ajudam a interpretar a tarefa, mas não pertencem só a ela.",
|
|
616
|
+
screenScope: "Inspeção da tela atual",
|
|
617
|
+
screenScopeDescription: "Leitura ao vivo do que está renderizado no palco agora.",
|
|
618
|
+
productScope: "Verificações gerais do produto",
|
|
619
|
+
productScopeDescription: "Resultados compartilhados por todo o catálogo, não só por esta tarefa.",
|
|
643
620
|
situation: "Situação",
|
|
644
621
|
reproduction: "Reprodução",
|
|
645
622
|
id: "Id",
|
|
@@ -655,6 +632,9 @@ const L = {
|
|
|
655
632
|
actions: "Ações disponíveis",
|
|
656
633
|
expected: "Critérios de aceite",
|
|
657
634
|
approval: "Aprovação",
|
|
635
|
+
approvalPendingStatus: "Aprovado — registro pendente",
|
|
636
|
+
approvalPendingMeaning: "O status foi marcado como aprovado, mas ainda não há URL de commit que registre a versão autorizada.",
|
|
637
|
+
approvalMissing: "A aprovação ainda não está completamente registrada. Preencha approvedAt com a URL imutável do commit aprovado.",
|
|
658
638
|
openApproved: "Abrir a versão aprovada",
|
|
659
639
|
engineering: "Engenharia",
|
|
660
640
|
a11yContract: "Contrato do cenário",
|
|
@@ -682,7 +662,8 @@ const L = {
|
|
|
682
662
|
coverage: "Cobertura por status",
|
|
683
663
|
scenariosRegistered: (e) => `${e} cenários registrados.`,
|
|
684
664
|
scenarioContract: "Contrato de cenário",
|
|
685
|
-
noIssues: "Nenhum problema encontrado."
|
|
665
|
+
noIssues: "Nenhum problema encontrado.",
|
|
666
|
+
diagnosticsProductNotice: "Este diagnóstico avalia o catálogo inteiro do produto, inclusive itens fora da tarefa e do handoff ativos."
|
|
686
667
|
},
|
|
687
668
|
home: {
|
|
688
669
|
lead: (e) => `Especificação executável: cada situação abaixo abre por link, com persona, dados e regras próprios. ${e} ${e === 1 ? "situação registrada" : "situações registradas"}.`,
|
|
@@ -697,9 +678,11 @@ const L = {
|
|
|
697
678
|
shell: {
|
|
698
679
|
restoreChrome: "Mostrar controles",
|
|
699
680
|
noRoute: "Nenhuma rota para este endereço",
|
|
700
|
-
noRouteHint: "não casa com nenhuma rota declarada. Escolha uma situação na navegação."
|
|
681
|
+
noRouteHint: "não casa com nenhuma rota declarada. Escolha uma situação na navegação.",
|
|
682
|
+
outsideHandoff: "Fora do escopo deste handoff",
|
|
683
|
+
outsideHandoffHint: "Este link permite revisar somente os cenários, rotas e componentes listados no handoff. Escolha um item disponível na navegação."
|
|
701
684
|
}
|
|
702
|
-
},
|
|
685
|
+
}, Tt = {
|
|
703
686
|
status: {
|
|
704
687
|
ported: "Ported — not validated",
|
|
705
688
|
proposed: "Proposed",
|
|
@@ -813,7 +796,15 @@ const L = {
|
|
|
813
796
|
componentGroup: "Group",
|
|
814
797
|
componentFixture: "Active fixture",
|
|
815
798
|
componentFixtureDescription: "Fixture description",
|
|
816
|
-
componentFixtureFallback: (e,
|
|
799
|
+
componentFixtureFallback: (e, o) => `Fixture \`${e}\` does not exist for this component. Showing \`${o}\` as fallback.`,
|
|
800
|
+
taskScope: "This task",
|
|
801
|
+
taskScopeDescription: "The contract and authorized state for the active scenario.",
|
|
802
|
+
inheritedScope: "Inherited product and persona context",
|
|
803
|
+
inheritedScopeDescription: "Shared information that helps interpret the task but does not belong only to it.",
|
|
804
|
+
screenScope: "Current screen inspection",
|
|
805
|
+
screenScopeDescription: "A live reading of what is rendered in the stage now.",
|
|
806
|
+
productScope: "Product-wide checks",
|
|
807
|
+
productScopeDescription: "Results shared across the catalog, not only this task.",
|
|
817
808
|
situation: "State",
|
|
818
809
|
reproduction: "Reproduction",
|
|
819
810
|
id: "ID",
|
|
@@ -829,6 +820,9 @@ const L = {
|
|
|
829
820
|
actions: "Available actions",
|
|
830
821
|
expected: "Acceptance criteria",
|
|
831
822
|
approval: "Approval",
|
|
823
|
+
approvalPendingStatus: "Approved — record pending",
|
|
824
|
+
approvalPendingMeaning: "The status is approved, but there is no commit URL recording the authorized version yet.",
|
|
825
|
+
approvalMissing: "Approval is not fully recorded yet. Fill approvedAt with the immutable URL of the approved commit.",
|
|
832
826
|
openApproved: "Open approved version",
|
|
833
827
|
engineering: "Engineering",
|
|
834
828
|
a11yContract: "Scenario contract",
|
|
@@ -856,7 +850,8 @@ const L = {
|
|
|
856
850
|
coverage: "Coverage by status",
|
|
857
851
|
scenariosRegistered: (e) => `${e} ${e === 1 ? "scenario" : "scenarios"} registered.`,
|
|
858
852
|
scenarioContract: "Scenario contract",
|
|
859
|
-
noIssues: "No issues found."
|
|
853
|
+
noIssues: "No issues found.",
|
|
854
|
+
diagnosticsProductNotice: "These diagnostics evaluate the entire product catalog, including items outside the active task and handoff."
|
|
860
855
|
},
|
|
861
856
|
home: {
|
|
862
857
|
lead: (e) => `Executable specification: each state below opens from a link with its own persona, data, and rules. ${e} ${e === 1 ? "state registered" : "states registered"}.`,
|
|
@@ -871,370 +866,383 @@ const L = {
|
|
|
871
866
|
shell: {
|
|
872
867
|
restoreChrome: "Show controls",
|
|
873
868
|
noRoute: "No route for this address",
|
|
874
|
-
noRouteHint: "does not match any declared route. Choose a state from the navigation."
|
|
869
|
+
noRouteHint: "does not match any declared route. Choose a state from the navigation.",
|
|
870
|
+
outsideHandoff: "Outside this handoff scope",
|
|
871
|
+
outsideHandoffHint: "This link only allows review of the scenarios, routes, and components listed in the handoff. Choose an available item from the navigation."
|
|
875
872
|
}
|
|
876
873
|
};
|
|
877
|
-
function
|
|
874
|
+
function tt(e) {
|
|
878
875
|
if (!e) return L;
|
|
879
|
-
const
|
|
880
|
-
for (const
|
|
881
|
-
const
|
|
882
|
-
|
|
876
|
+
const o = { ...L };
|
|
877
|
+
for (const a of Object.keys(L)) {
|
|
878
|
+
const i = e[a];
|
|
879
|
+
i && (o[a] = { ...L[a], ...i });
|
|
883
880
|
}
|
|
884
|
-
return
|
|
881
|
+
return o;
|
|
885
882
|
}
|
|
886
|
-
const
|
|
883
|
+
const we = Se(L);
|
|
887
884
|
function P() {
|
|
888
|
-
return
|
|
885
|
+
return Ne(we);
|
|
889
886
|
}
|
|
890
|
-
const
|
|
891
|
-
function
|
|
887
|
+
const At = L.status, Pt = L.statusMeaning, Lt = L.network, Ft = L.keyboard;
|
|
888
|
+
function ot({
|
|
892
889
|
registry: e,
|
|
893
|
-
activeScenario:
|
|
894
|
-
activeComponent:
|
|
895
|
-
controls:
|
|
896
|
-
onOpenScenario:
|
|
897
|
-
onOpenComponent:
|
|
898
|
-
onViewChange:
|
|
890
|
+
activeScenario: o,
|
|
891
|
+
activeComponent: a,
|
|
892
|
+
controls: i,
|
|
893
|
+
onOpenScenario: d,
|
|
894
|
+
onOpenComponent: r,
|
|
895
|
+
onViewChange: n
|
|
899
896
|
}) {
|
|
900
|
-
const c = P(), [h,
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
}, [
|
|
904
|
-
const
|
|
905
|
-
|
|
897
|
+
const c = P(), [h, u] = F(a ? "components" : "flows"), [g, f] = F(""), [p, b] = F(/* @__PURE__ */ new Set()), S = re(null), _ = re(/* @__PURE__ */ new Map()), s = ce(i), m = i.handoff, k = e.byStatus("ported", { handoff: m }).length, M = e.activeScenarios({ view: s, handoff: m }).length, y = s === "ported" ? c.sidebar.portedReferences(k) : c.sidebar.activeWork;
|
|
898
|
+
D(() => {
|
|
899
|
+
a ? u("components") : o && u("flows");
|
|
900
|
+
}, [a, o]), D(() => {
|
|
901
|
+
const v = (x) => {
|
|
902
|
+
rt(x) && (x.preventDefault(), S.current?.focus(), S.current?.select());
|
|
906
903
|
};
|
|
907
|
-
return window.addEventListener("keydown",
|
|
904
|
+
return window.addEventListener("keydown", v), () => window.removeEventListener("keydown", v);
|
|
908
905
|
}, []);
|
|
909
|
-
const
|
|
910
|
-
if (
|
|
906
|
+
const E = T(() => {
|
|
907
|
+
if (g.trim())
|
|
911
908
|
return new Set(
|
|
912
|
-
e.search(
|
|
909
|
+
e.search(g, { view: s, handoff: m }).map((v) => v.id)
|
|
913
910
|
);
|
|
914
|
-
}, [m, e,
|
|
915
|
-
const
|
|
916
|
-
return
|
|
917
|
-
(
|
|
918
|
-
|
|
911
|
+
}, [m, g, e, s]), $ = T(() => {
|
|
912
|
+
const v = me(g);
|
|
913
|
+
return e.componentsFor(m).filter(
|
|
914
|
+
(x) => me([x.name, x.id, x.group, x.description].join(" ")).includes(
|
|
915
|
+
v
|
|
919
916
|
)
|
|
920
917
|
);
|
|
921
|
-
}, [m, e
|
|
922
|
-
view:
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
918
|
+
}, [m, g, e]), O = (v) => E ? v.filter((x) => E.has(x.id)) : v, G = {
|
|
919
|
+
view: s,
|
|
920
|
+
handoff: m
|
|
921
|
+
}, I = e.treeFor(G).map((v) => ({ ...v, scenarios: O(v.scenarios) })).filter((v) => v.scenarios.length > 0), B = O(e.orphansFor(G)), U = I.reduce((v, x) => v + x.scenarios.length, 0) + B.length, H = nt($), j = h === "flows" ? [...I.flatMap((v) => v.scenarios), ...B].map((v) => v.id) : $.map((v) => v.id), Y = (v, x) => {
|
|
922
|
+
if (j.length === 0) return;
|
|
923
|
+
const N = st(j, v, x);
|
|
924
|
+
N && _.current.get(N)?.focus();
|
|
925
|
+
}, K = (v) => {
|
|
926
|
+
v.key === "ArrowDown" ? (v.preventDefault(), Y(void 0, 1)) : v.key === "Escape" && f("");
|
|
927
|
+
}, V = (v, x) => {
|
|
928
|
+
x.key !== "ArrowDown" && x.key !== "ArrowUp" || (x.preventDefault(), Y(v, x.key === "ArrowDown" ? 1 : -1));
|
|
929
|
+
}, q = (v, x) => {
|
|
930
|
+
x ? _.current.set(v, x) : _.current.delete(v);
|
|
931
|
+
}, J = (v) => b((x) => {
|
|
932
|
+
const N = new Set(x);
|
|
933
|
+
return N.has(v) ? N.delete(v) : N.add(v), N;
|
|
936
934
|
});
|
|
937
|
-
return /* @__PURE__ */
|
|
938
|
-
/* @__PURE__ */
|
|
939
|
-
/* @__PURE__ */
|
|
935
|
+
return /* @__PURE__ */ l("nav", { className: "ds-chrome ds-sidebar", "aria-label": c.sidebar.region, children: [
|
|
936
|
+
/* @__PURE__ */ l("div", { className: "ds-sidebar__tabs", role: "tablist", children: [
|
|
937
|
+
/* @__PURE__ */ t(
|
|
940
938
|
"button",
|
|
941
939
|
{
|
|
942
940
|
type: "button",
|
|
943
941
|
role: "tab",
|
|
944
942
|
"aria-selected": h === "flows",
|
|
945
943
|
onClick: () => {
|
|
946
|
-
|
|
944
|
+
u("flows"), f("");
|
|
947
945
|
},
|
|
948
946
|
children: c.sidebar.flowsTab
|
|
949
947
|
}
|
|
950
948
|
),
|
|
951
|
-
/* @__PURE__ */
|
|
949
|
+
/* @__PURE__ */ t(
|
|
952
950
|
"button",
|
|
953
951
|
{
|
|
954
952
|
type: "button",
|
|
955
953
|
role: "tab",
|
|
956
954
|
"aria-selected": h === "components",
|
|
957
955
|
onClick: () => {
|
|
958
|
-
|
|
956
|
+
u("components"), f("");
|
|
959
957
|
},
|
|
960
958
|
children: c.sidebar.componentsTab
|
|
961
959
|
}
|
|
962
960
|
)
|
|
963
961
|
] }),
|
|
964
|
-
/* @__PURE__ */
|
|
965
|
-
/* @__PURE__ */
|
|
962
|
+
/* @__PURE__ */ l("div", { className: "ds-sidebar__search", children: [
|
|
963
|
+
/* @__PURE__ */ t(
|
|
966
964
|
"input",
|
|
967
965
|
{
|
|
968
|
-
ref:
|
|
966
|
+
ref: S,
|
|
969
967
|
className: "ds-input ds-input--search",
|
|
970
968
|
type: "search",
|
|
971
|
-
value:
|
|
969
|
+
value: g,
|
|
972
970
|
placeholder: h === "flows" ? c.sidebar.searchPlaceholder : c.sidebar.componentSearchPlaceholder,
|
|
973
971
|
"aria-label": h === "flows" ? c.sidebar.searchLabel : c.sidebar.componentSearchLabel,
|
|
974
|
-
onChange: (
|
|
975
|
-
onKeyDown:
|
|
972
|
+
onChange: (v) => f(v.target.value),
|
|
973
|
+
onKeyDown: K
|
|
976
974
|
}
|
|
977
975
|
),
|
|
978
|
-
/* @__PURE__ */
|
|
976
|
+
/* @__PURE__ */ t("kbd", { children: c.sidebar.searchShortcut })
|
|
979
977
|
] }),
|
|
980
|
-
/* @__PURE__ */
|
|
978
|
+
/* @__PURE__ */ l(
|
|
981
979
|
"div",
|
|
982
980
|
{
|
|
983
981
|
className: "ds-sidebar__tree",
|
|
984
982
|
role: "tabpanel",
|
|
985
|
-
"aria-label": h === "flows" ? c.sidebar.currentView(
|
|
983
|
+
"aria-label": h === "flows" ? c.sidebar.currentView(y) : void 0,
|
|
986
984
|
children: [
|
|
987
|
-
h === "flows" && /* @__PURE__ */
|
|
988
|
-
/* @__PURE__ */
|
|
989
|
-
|
|
985
|
+
h === "flows" && /* @__PURE__ */ l("header", { className: "ds-sidebar__view-header", children: [
|
|
986
|
+
/* @__PURE__ */ t("h2", { children: y }),
|
|
987
|
+
s === "ported" && /* @__PURE__ */ t(
|
|
990
988
|
"button",
|
|
991
989
|
{
|
|
992
990
|
type: "button",
|
|
993
991
|
className: "ds-text-action",
|
|
994
|
-
onClick: () =>
|
|
992
|
+
onClick: () => n("active"),
|
|
995
993
|
children: c.sidebar.backToActive
|
|
996
994
|
}
|
|
997
995
|
)
|
|
998
996
|
] }),
|
|
999
|
-
|
|
1000
|
-
h === "flows" &&
|
|
1001
|
-
/* @__PURE__ */
|
|
1002
|
-
|
|
997
|
+
g.trim() !== "" && /* @__PURE__ */ t("p", { className: "ds-sidebar__empty", role: "status", children: h === "flows" ? U === 0 ? c.sidebar.noMatch(g) : c.sidebar.matchCount(U) : $.length === 0 ? c.sidebar.noComponentMatch(g) : c.sidebar.componentMatchCount($.length) }),
|
|
998
|
+
h === "flows" && g.trim() === "" && M === 0 ? /* @__PURE__ */ l("div", { className: "ds-sidebar__view-empty", children: [
|
|
999
|
+
/* @__PURE__ */ t("p", { children: s === "ported" ? c.sidebar.noPortedReferences : c.sidebar.noActiveWork }),
|
|
1000
|
+
s === "active" && k > 0 && /* @__PURE__ */ t(
|
|
1003
1001
|
"button",
|
|
1004
1002
|
{
|
|
1005
1003
|
type: "button",
|
|
1006
1004
|
className: "ds-text-action",
|
|
1007
|
-
onClick: () =>
|
|
1008
|
-
children: c.sidebar.viewPorted(
|
|
1005
|
+
onClick: () => n("ported"),
|
|
1006
|
+
children: c.sidebar.viewPorted(k)
|
|
1009
1007
|
}
|
|
1010
1008
|
)
|
|
1011
|
-
] }) : h === "flows" ? /* @__PURE__ */
|
|
1012
|
-
|
|
1009
|
+
] }) : h === "flows" ? /* @__PURE__ */ t(
|
|
1010
|
+
at,
|
|
1013
1011
|
{
|
|
1014
|
-
nodes:
|
|
1015
|
-
orphans:
|
|
1016
|
-
matches:
|
|
1017
|
-
collapsed:
|
|
1018
|
-
activeScenario:
|
|
1012
|
+
nodes: I,
|
|
1013
|
+
orphans: B,
|
|
1014
|
+
matches: E,
|
|
1015
|
+
collapsed: p,
|
|
1016
|
+
activeScenario: o?.id,
|
|
1019
1017
|
withoutModuleLabel: c.sidebar.withoutModule,
|
|
1020
|
-
onToggle:
|
|
1021
|
-
onOpen:
|
|
1022
|
-
onKeyDown:
|
|
1023
|
-
setItemRef:
|
|
1018
|
+
onToggle: J,
|
|
1019
|
+
onOpen: d,
|
|
1020
|
+
onKeyDown: V,
|
|
1021
|
+
setItemRef: q
|
|
1024
1022
|
}
|
|
1025
|
-
) :
|
|
1026
|
-
/* @__PURE__ */
|
|
1027
|
-
/* @__PURE__ */
|
|
1023
|
+
) : H.length === 0 && !g ? /* @__PURE__ */ t("p", { className: "ds-sidebar__empty", children: c.sidebar.emptyComponents }) : H.map(([v, x]) => /* @__PURE__ */ l("section", { className: "ds-component-group", children: [
|
|
1024
|
+
/* @__PURE__ */ t("h2", { children: v }),
|
|
1025
|
+
/* @__PURE__ */ t("ul", { children: x.map((N) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ l(
|
|
1028
1026
|
"button",
|
|
1029
1027
|
{
|
|
1030
|
-
ref: (
|
|
1028
|
+
ref: (C) => q(N.id, C),
|
|
1031
1029
|
type: "button",
|
|
1032
1030
|
className: "ds-component-item",
|
|
1033
|
-
"aria-current":
|
|
1034
|
-
onClick: () =>
|
|
1035
|
-
onKeyDown: (
|
|
1031
|
+
"aria-current": N.id === a,
|
|
1032
|
+
onClick: () => r(N.id),
|
|
1033
|
+
onKeyDown: (C) => V(N.id, C),
|
|
1036
1034
|
children: [
|
|
1037
|
-
/* @__PURE__ */
|
|
1038
|
-
|
|
1035
|
+
/* @__PURE__ */ t("span", { children: N.name }),
|
|
1036
|
+
N.description && /* @__PURE__ */ t("small", { children: N.description })
|
|
1039
1037
|
]
|
|
1040
1038
|
}
|
|
1041
|
-
) },
|
|
1042
|
-
] },
|
|
1039
|
+
) }, N.id)) })
|
|
1040
|
+
] }, v))
|
|
1043
1041
|
]
|
|
1044
1042
|
}
|
|
1045
1043
|
),
|
|
1046
|
-
h === "flows" &&
|
|
1044
|
+
h === "flows" && s === "active" && M > 0 && k > 0 && /* @__PURE__ */ t("div", { className: "ds-sidebar__view-footer", children: /* @__PURE__ */ t(
|
|
1047
1045
|
"button",
|
|
1048
1046
|
{
|
|
1049
1047
|
type: "button",
|
|
1050
1048
|
className: "ds-text-action",
|
|
1051
|
-
onClick: () =>
|
|
1052
|
-
children: c.sidebar.viewPorted(
|
|
1049
|
+
onClick: () => n("ported"),
|
|
1050
|
+
children: c.sidebar.viewPorted(k)
|
|
1053
1051
|
}
|
|
1054
1052
|
) }),
|
|
1055
|
-
h === "flows" &&
|
|
1056
|
-
/* @__PURE__ */
|
|
1057
|
-
/* @__PURE__ */
|
|
1058
|
-
/* @__PURE__ */
|
|
1059
|
-
/* @__PURE__ */
|
|
1060
|
-
/* @__PURE__ */
|
|
1061
|
-
/* @__PURE__ */
|
|
1062
|
-
/* @__PURE__ */
|
|
1063
|
-
/* @__PURE__ */
|
|
1053
|
+
h === "flows" && o && /* @__PURE__ */ l("aside", { className: "ds-sidebar__scope", "aria-label": c.sidebar.scope, children: [
|
|
1054
|
+
/* @__PURE__ */ t("h2", { children: c.sidebar.scope }),
|
|
1055
|
+
/* @__PURE__ */ l("dl", { children: [
|
|
1056
|
+
/* @__PURE__ */ t("dt", { children: c.sidebar.scopeData }),
|
|
1057
|
+
/* @__PURE__ */ t("dd", { children: e.fixture(i.fixture ?? o.fixture)?.label ?? c.controls.none }),
|
|
1058
|
+
/* @__PURE__ */ t("dt", { children: c.sidebar.scopePersona }),
|
|
1059
|
+
/* @__PURE__ */ t("dd", { children: e.persona(i.persona ?? o.persona)?.name ?? c.controls.none }),
|
|
1060
|
+
/* @__PURE__ */ t("dt", { children: c.sidebar.scopeNetwork }),
|
|
1061
|
+
/* @__PURE__ */ t("dd", { children: c.network[i.network] })
|
|
1064
1062
|
] })
|
|
1065
1063
|
] })
|
|
1066
1064
|
] });
|
|
1067
1065
|
}
|
|
1068
|
-
function
|
|
1069
|
-
return /* @__PURE__ */
|
|
1070
|
-
e.nodes.map((
|
|
1071
|
-
const
|
|
1072
|
-
return /* @__PURE__ */
|
|
1073
|
-
/* @__PURE__ */
|
|
1066
|
+
function at(e) {
|
|
1067
|
+
return /* @__PURE__ */ l(A, { children: [
|
|
1068
|
+
e.nodes.map((o) => {
|
|
1069
|
+
const a = !e.collapsed.has(o.module.id) || !!e.matches;
|
|
1070
|
+
return /* @__PURE__ */ l("section", { className: "ds-module", children: [
|
|
1071
|
+
/* @__PURE__ */ l(
|
|
1074
1072
|
"button",
|
|
1075
1073
|
{
|
|
1076
1074
|
type: "button",
|
|
1077
1075
|
className: "ds-module__header",
|
|
1078
|
-
"aria-expanded":
|
|
1079
|
-
onClick: () => e.onToggle(
|
|
1076
|
+
"aria-expanded": a,
|
|
1077
|
+
onClick: () => e.onToggle(o.module.id),
|
|
1080
1078
|
children: [
|
|
1081
|
-
/* @__PURE__ */
|
|
1082
|
-
/* @__PURE__ */
|
|
1083
|
-
/* @__PURE__ */
|
|
1079
|
+
/* @__PURE__ */ t("span", { className: "ds-module__chevron", "aria-hidden": "true", children: "▶" }),
|
|
1080
|
+
/* @__PURE__ */ t("span", { children: o.module.name }),
|
|
1081
|
+
/* @__PURE__ */ t("span", { className: "ds-module__count", children: o.scenarios.length })
|
|
1084
1082
|
]
|
|
1085
1083
|
}
|
|
1086
1084
|
),
|
|
1087
|
-
|
|
1088
|
-
] },
|
|
1085
|
+
a && /* @__PURE__ */ t("ul", { className: "ds-module__scenarios", children: o.scenarios.map((i) => /* @__PURE__ */ t(he, { scenario: i, ...e }, i.id)) })
|
|
1086
|
+
] }, o.module.id);
|
|
1089
1087
|
}),
|
|
1090
|
-
e.orphans.length > 0 && /* @__PURE__ */
|
|
1091
|
-
/* @__PURE__ */
|
|
1092
|
-
/* @__PURE__ */
|
|
1093
|
-
/* @__PURE__ */
|
|
1094
|
-
/* @__PURE__ */
|
|
1088
|
+
e.orphans.length > 0 && /* @__PURE__ */ l("section", { className: "ds-module", children: [
|
|
1089
|
+
/* @__PURE__ */ l("div", { className: "ds-module__header", "aria-hidden": "true", children: [
|
|
1090
|
+
/* @__PURE__ */ t("span", { className: "ds-module__chevron", children: "▶" }),
|
|
1091
|
+
/* @__PURE__ */ t("span", { children: e.withoutModuleLabel }),
|
|
1092
|
+
/* @__PURE__ */ t("span", { className: "ds-module__count", children: e.orphans.length })
|
|
1095
1093
|
] }),
|
|
1096
|
-
/* @__PURE__ */
|
|
1094
|
+
/* @__PURE__ */ t("ul", { className: "ds-module__scenarios", children: e.orphans.map((o) => /* @__PURE__ */ t(he, { scenario: o, ...e }, o.id)) })
|
|
1097
1095
|
] })
|
|
1098
1096
|
] });
|
|
1099
1097
|
}
|
|
1100
|
-
function
|
|
1098
|
+
function he({
|
|
1101
1099
|
scenario: e,
|
|
1102
|
-
activeScenario:
|
|
1103
|
-
onOpen:
|
|
1104
|
-
onKeyDown:
|
|
1105
|
-
setItemRef:
|
|
1100
|
+
activeScenario: o,
|
|
1101
|
+
onOpen: a,
|
|
1102
|
+
onKeyDown: i,
|
|
1103
|
+
setItemRef: d
|
|
1106
1104
|
}) {
|
|
1107
|
-
const
|
|
1108
|
-
return /* @__PURE__ */
|
|
1105
|
+
const r = P(), n = e.status === "approved" && !e.approvedAt, c = n ? r.inspector.approvalPendingStatus : r.status[e.status];
|
|
1106
|
+
return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ l(
|
|
1109
1107
|
"button",
|
|
1110
1108
|
{
|
|
1111
|
-
ref: (
|
|
1109
|
+
ref: (h) => d(e.id, h),
|
|
1112
1110
|
type: "button",
|
|
1113
1111
|
className: "ds-scenario",
|
|
1114
|
-
"aria-current": e.id ===
|
|
1115
|
-
onClick: () =>
|
|
1116
|
-
onKeyDown: (
|
|
1112
|
+
"aria-current": e.id === o,
|
|
1113
|
+
onClick: () => a(e.id),
|
|
1114
|
+
onKeyDown: (h) => i(e.id, h),
|
|
1117
1115
|
children: [
|
|
1118
|
-
/* @__PURE__ */
|
|
1119
|
-
|
|
1120
|
-
|
|
1116
|
+
/* @__PURE__ */ t(
|
|
1117
|
+
"span",
|
|
1118
|
+
{
|
|
1119
|
+
className: "ds-status-dot",
|
|
1120
|
+
"data-status": e.status,
|
|
1121
|
+
"data-approval": n ? "incomplete" : void 0,
|
|
1122
|
+
title: c
|
|
1123
|
+
}
|
|
1124
|
+
),
|
|
1125
|
+
/* @__PURE__ */ t("span", { className: "ds-scenario__title", children: e.title }),
|
|
1126
|
+
/* @__PURE__ */ t("span", { className: "ds-visually-hidden", children: c })
|
|
1121
1127
|
]
|
|
1122
1128
|
}
|
|
1123
1129
|
) });
|
|
1124
1130
|
}
|
|
1125
|
-
function
|
|
1126
|
-
const
|
|
1127
|
-
for (const
|
|
1128
|
-
const
|
|
1129
|
-
|
|
1131
|
+
function nt(e) {
|
|
1132
|
+
const o = /* @__PURE__ */ new Map();
|
|
1133
|
+
for (const a of e) {
|
|
1134
|
+
const i = a.group ?? "Componentes";
|
|
1135
|
+
o.set(i, [...o.get(i) ?? [], a]);
|
|
1130
1136
|
}
|
|
1131
|
-
return [...
|
|
1137
|
+
return [...o.entries()];
|
|
1132
1138
|
}
|
|
1133
|
-
function
|
|
1139
|
+
function me(e) {
|
|
1134
1140
|
return e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").trim();
|
|
1135
1141
|
}
|
|
1136
|
-
function
|
|
1137
|
-
const
|
|
1138
|
-
return (e.metaKey || e.ctrlKey) && !e.altKey && !e.shiftKey && (
|
|
1142
|
+
function rt(e) {
|
|
1143
|
+
const o = e.key.toLowerCase();
|
|
1144
|
+
return (e.metaKey || e.ctrlKey) && !e.altKey && !e.shiftKey && (o === "k" || o === "f");
|
|
1139
1145
|
}
|
|
1140
|
-
function
|
|
1146
|
+
function st(e, o, a) {
|
|
1141
1147
|
if (e.length === 0) return;
|
|
1142
|
-
const
|
|
1143
|
-
return e[
|
|
1148
|
+
const i = o ? e.indexOf(o) : -1, d = Math.max(0, Math.min(e.length - 1, i + a));
|
|
1149
|
+
return e[d];
|
|
1144
1150
|
}
|
|
1145
|
-
function
|
|
1151
|
+
function it({
|
|
1146
1152
|
product: e,
|
|
1147
|
-
scenario:
|
|
1148
|
-
deploy:
|
|
1149
|
-
inspectorOpen:
|
|
1150
|
-
chromeTheme:
|
|
1151
|
-
view:
|
|
1152
|
-
|
|
1153
|
-
|
|
1153
|
+
scenario: o,
|
|
1154
|
+
deploy: a,
|
|
1155
|
+
inspectorOpen: i,
|
|
1156
|
+
chromeTheme: d,
|
|
1157
|
+
view: r,
|
|
1158
|
+
handoff: n,
|
|
1159
|
+
onToggleInspector: c,
|
|
1160
|
+
onToggleChromeTheme: h
|
|
1154
1161
|
}) {
|
|
1155
|
-
const
|
|
1156
|
-
const
|
|
1157
|
-
origin:
|
|
1162
|
+
const u = P().topbar, [g, f] = F(!1), p = async () => {
|
|
1163
|
+
const _ = o ? Me(o, {
|
|
1164
|
+
origin: a.origin,
|
|
1158
1165
|
overrides: {
|
|
1159
|
-
...
|
|
1160
|
-
...
|
|
1166
|
+
...d === "light" ? { chromeTheme: d } : {},
|
|
1167
|
+
...r === "ported" ? { view: r } : {},
|
|
1168
|
+
...n ? { handoff: n } : {}
|
|
1161
1169
|
}
|
|
1162
|
-
}) : `${
|
|
1170
|
+
}) : `${a.origin}${window.location.pathname}${window.location.search}`;
|
|
1163
1171
|
try {
|
|
1164
|
-
await navigator.clipboard.writeText(
|
|
1172
|
+
await navigator.clipboard.writeText(_);
|
|
1165
1173
|
} catch {
|
|
1166
|
-
window.prompt(
|
|
1174
|
+
window.prompt(u.copyPrompt, _);
|
|
1167
1175
|
}
|
|
1168
|
-
|
|
1169
|
-
},
|
|
1170
|
-
typeof window > "u" ? `${
|
|
1171
|
-
),
|
|
1172
|
-
return /* @__PURE__ */
|
|
1173
|
-
/* @__PURE__ */
|
|
1174
|
-
/* @__PURE__ */
|
|
1176
|
+
f(!0), window.setTimeout(() => f(!1), 1600);
|
|
1177
|
+
}, b = ct(
|
|
1178
|
+
typeof window > "u" ? `${a.origin}/` : window.location.href
|
|
1179
|
+
), S = dt(a.origin, d, r, n);
|
|
1180
|
+
return /* @__PURE__ */ l("header", { className: "ds-chrome ds-topbar", children: [
|
|
1181
|
+
/* @__PURE__ */ l("div", { className: "ds-topbar__product", children: [
|
|
1182
|
+
/* @__PURE__ */ t(
|
|
1175
1183
|
"a",
|
|
1176
1184
|
{
|
|
1177
1185
|
className: "ds-topbar__home",
|
|
1178
|
-
href:
|
|
1179
|
-
"aria-label":
|
|
1180
|
-
title:
|
|
1186
|
+
href: S,
|
|
1187
|
+
"aria-label": u.homeTitle(e.name),
|
|
1188
|
+
title: u.homeTitle(e.name),
|
|
1181
1189
|
children: e.name
|
|
1182
1190
|
}
|
|
1183
1191
|
),
|
|
1184
|
-
e.tagline && /* @__PURE__ */
|
|
1192
|
+
e.tagline && /* @__PURE__ */ t("span", { className: "ds-topbar__tagline", children: e.tagline })
|
|
1185
1193
|
] }),
|
|
1186
|
-
/* @__PURE__ */
|
|
1187
|
-
/* @__PURE__ */
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
/* @__PURE__ */
|
|
1194
|
+
/* @__PURE__ */ t("div", { className: "ds-topbar__spacer" }),
|
|
1195
|
+
/* @__PURE__ */ l("div", { className: "ds-topbar__meta", children: [
|
|
1196
|
+
a.branch && /* @__PURE__ */ t("code", { title: u.branchTitle(a.branch), children: a.branch.length > 28 ? `${a.branch.slice(0, 27)}…` : a.branch }),
|
|
1197
|
+
a.commit && /* @__PURE__ */ t("code", { title: u.commitTitle(a.commit), children: a.shortCommit }),
|
|
1198
|
+
/* @__PURE__ */ t("code", { title: u.envTitle(a.env), children: a.env })
|
|
1191
1199
|
] }),
|
|
1192
|
-
/* @__PURE__ */
|
|
1200
|
+
/* @__PURE__ */ t(
|
|
1193
1201
|
"button",
|
|
1194
1202
|
{
|
|
1195
1203
|
type: "button",
|
|
1196
1204
|
className: "ds-btn ds-btn--icon",
|
|
1197
|
-
"aria-pressed":
|
|
1198
|
-
"aria-label":
|
|
1199
|
-
title:
|
|
1200
|
-
onClick:
|
|
1201
|
-
children: /* @__PURE__ */
|
|
1205
|
+
"aria-pressed": d === "light",
|
|
1206
|
+
"aria-label": d === "dark" ? u.lightMode : u.darkMode,
|
|
1207
|
+
title: d === "dark" ? u.lightMode : u.darkMode,
|
|
1208
|
+
onClick: h,
|
|
1209
|
+
children: /* @__PURE__ */ t(lt, { theme: d })
|
|
1202
1210
|
}
|
|
1203
1211
|
),
|
|
1204
|
-
/* @__PURE__ */
|
|
1205
|
-
/* @__PURE__ */
|
|
1212
|
+
/* @__PURE__ */ t("button", { type: "button", className: "ds-btn", onClick: p, children: g ? u.copied : u.copyLink }),
|
|
1213
|
+
/* @__PURE__ */ t(
|
|
1206
1214
|
"a",
|
|
1207
1215
|
{
|
|
1208
1216
|
className: "ds-btn",
|
|
1209
|
-
href:
|
|
1217
|
+
href: b,
|
|
1210
1218
|
target: "_blank",
|
|
1211
1219
|
rel: "noreferrer",
|
|
1212
|
-
title:
|
|
1213
|
-
children:
|
|
1220
|
+
title: u.cleanReviewTitle,
|
|
1221
|
+
children: u.cleanReview
|
|
1214
1222
|
}
|
|
1215
1223
|
),
|
|
1216
|
-
/* @__PURE__ */
|
|
1224
|
+
/* @__PURE__ */ t(
|
|
1217
1225
|
"button",
|
|
1218
1226
|
{
|
|
1219
1227
|
type: "button",
|
|
1220
1228
|
className: "ds-btn",
|
|
1221
|
-
"aria-pressed":
|
|
1222
|
-
onClick:
|
|
1223
|
-
children:
|
|
1229
|
+
"aria-pressed": i,
|
|
1230
|
+
onClick: c,
|
|
1231
|
+
children: u.panel
|
|
1224
1232
|
}
|
|
1225
1233
|
)
|
|
1226
1234
|
] });
|
|
1227
1235
|
}
|
|
1228
|
-
function
|
|
1229
|
-
const
|
|
1230
|
-
return
|
|
1236
|
+
function ct(e) {
|
|
1237
|
+
const o = new URL(e);
|
|
1238
|
+
return o.searchParams.set(w.chrome, "0"), o.toString();
|
|
1231
1239
|
}
|
|
1232
|
-
function
|
|
1233
|
-
const
|
|
1234
|
-
return
|
|
1240
|
+
function dt(e, o, a = "active", i) {
|
|
1241
|
+
const d = new URL("/", e);
|
|
1242
|
+
return o === "light" && d.searchParams.set(w.chromeTheme, o), a === "ported" && d.searchParams.set(w.view, "ported"), oe(d.searchParams, i), d.toString();
|
|
1235
1243
|
}
|
|
1236
|
-
function
|
|
1237
|
-
const
|
|
1244
|
+
function lt({ theme: e }) {
|
|
1245
|
+
const o = {
|
|
1238
1246
|
width: 15,
|
|
1239
1247
|
height: 15,
|
|
1240
1248
|
viewBox: "0 0 24 24",
|
|
@@ -1245,79 +1253,79 @@ function et({ theme: e }) {
|
|
|
1245
1253
|
strokeLinejoin: "round",
|
|
1246
1254
|
"aria-hidden": !0
|
|
1247
1255
|
};
|
|
1248
|
-
return e === "dark" ? /* @__PURE__ */
|
|
1249
|
-
/* @__PURE__ */
|
|
1250
|
-
/* @__PURE__ */
|
|
1251
|
-
] }) : /* @__PURE__ */
|
|
1256
|
+
return e === "dark" ? /* @__PURE__ */ l("svg", { ...o, children: [
|
|
1257
|
+
/* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "4" }),
|
|
1258
|
+
/* @__PURE__ */ t("path", { d: "M12 2v2M12 20v2M4.93 4.93l1.42 1.42M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.42" })
|
|
1259
|
+
] }) : /* @__PURE__ */ t("svg", { ...o, children: /* @__PURE__ */ t("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" }) });
|
|
1252
1260
|
}
|
|
1253
|
-
function
|
|
1261
|
+
function pt({
|
|
1254
1262
|
registry: e,
|
|
1255
|
-
controls:
|
|
1256
|
-
scenarioActive:
|
|
1257
|
-
component:
|
|
1258
|
-
componentFixture:
|
|
1259
|
-
onChange:
|
|
1263
|
+
controls: o,
|
|
1264
|
+
scenarioActive: a,
|
|
1265
|
+
component: i,
|
|
1266
|
+
componentFixture: d,
|
|
1267
|
+
onChange: r
|
|
1260
1268
|
}) {
|
|
1261
|
-
const
|
|
1262
|
-
return /* @__PURE__ */
|
|
1263
|
-
|
|
1264
|
-
/* @__PURE__ */
|
|
1265
|
-
/* @__PURE__ */
|
|
1269
|
+
const n = P(), c = n.controls, { product: h } = e, u = h.dataSources?.adapters ?? [], g = h.theme?.modes ?? [], f = h.theme?.locales ?? [];
|
|
1270
|
+
return /* @__PURE__ */ l("div", { className: "ds-chrome ds-controls", role: "group", "aria-label": c.region, children: [
|
|
1271
|
+
i?.fixtures?.length ? /* @__PURE__ */ l("div", { className: "ds-field", children: [
|
|
1272
|
+
/* @__PURE__ */ t("label", { htmlFor: "ds-component-fixture", children: c.componentFixture }),
|
|
1273
|
+
/* @__PURE__ */ t(
|
|
1266
1274
|
"select",
|
|
1267
1275
|
{
|
|
1268
1276
|
id: "ds-component-fixture",
|
|
1269
1277
|
className: "ds-select",
|
|
1270
|
-
value:
|
|
1271
|
-
onChange: (
|
|
1272
|
-
children:
|
|
1278
|
+
value: d?.fixture?.id ?? "",
|
|
1279
|
+
onChange: (p) => r({ fixture: p.target.value || void 0 }),
|
|
1280
|
+
children: i.fixtures.map((p) => /* @__PURE__ */ t("option", { value: p.id, children: p.label }, p.id))
|
|
1273
1281
|
}
|
|
1274
1282
|
)
|
|
1275
1283
|
] }) : null,
|
|
1276
|
-
|
|
1277
|
-
/* @__PURE__ */
|
|
1278
|
-
/* @__PURE__ */
|
|
1284
|
+
a && /* @__PURE__ */ l("div", { className: "ds-field", children: [
|
|
1285
|
+
/* @__PURE__ */ t("label", { htmlFor: "ds-persona", children: c.persona }),
|
|
1286
|
+
/* @__PURE__ */ l(
|
|
1279
1287
|
"select",
|
|
1280
1288
|
{
|
|
1281
1289
|
id: "ds-persona",
|
|
1282
1290
|
className: "ds-select",
|
|
1283
|
-
value:
|
|
1284
|
-
onChange: (
|
|
1291
|
+
value: o.persona ?? "",
|
|
1292
|
+
onChange: (p) => r({ persona: p.target.value || void 0 }),
|
|
1285
1293
|
children: [
|
|
1286
|
-
/* @__PURE__ */
|
|
1287
|
-
h.personas.map((
|
|
1294
|
+
/* @__PURE__ */ t("option", { value: "", children: c.none }),
|
|
1295
|
+
h.personas.map((p) => /* @__PURE__ */ t("option", { value: p.id, children: p.name }, p.id))
|
|
1288
1296
|
]
|
|
1289
1297
|
}
|
|
1290
1298
|
)
|
|
1291
1299
|
] }),
|
|
1292
|
-
|
|
1293
|
-
/* @__PURE__ */
|
|
1294
|
-
/* @__PURE__ */
|
|
1300
|
+
a && /* @__PURE__ */ l("div", { className: "ds-field", children: [
|
|
1301
|
+
/* @__PURE__ */ t("span", { className: "ds-field__label", id: "ds-network-label", children: c.network }),
|
|
1302
|
+
/* @__PURE__ */ t("div", { className: "ds-segmented", role: "group", "aria-labelledby": "ds-network-label", children: ve.map((p) => /* @__PURE__ */ t(
|
|
1295
1303
|
"button",
|
|
1296
1304
|
{
|
|
1297
1305
|
type: "button",
|
|
1298
|
-
"aria-pressed":
|
|
1299
|
-
onClick: () =>
|
|
1300
|
-
children:
|
|
1306
|
+
"aria-pressed": o.network === p,
|
|
1307
|
+
onClick: () => r({ network: p }),
|
|
1308
|
+
children: n.network[p]
|
|
1301
1309
|
},
|
|
1302
|
-
|
|
1310
|
+
p
|
|
1303
1311
|
)) })
|
|
1304
1312
|
] }),
|
|
1305
|
-
/* @__PURE__ */
|
|
1306
|
-
/* @__PURE__ */
|
|
1307
|
-
/* @__PURE__ */
|
|
1313
|
+
/* @__PURE__ */ l("div", { className: "ds-field", children: [
|
|
1314
|
+
/* @__PURE__ */ t("span", { className: "ds-field__label", id: "ds-viewport-label", children: c.viewport }),
|
|
1315
|
+
/* @__PURE__ */ t("div", { className: "ds-segmented", role: "group", "aria-labelledby": "ds-viewport-label", children: ge.map((p) => /* @__PURE__ */ t(
|
|
1308
1316
|
"button",
|
|
1309
1317
|
{
|
|
1310
1318
|
type: "button",
|
|
1311
1319
|
className: "ds-icon-button",
|
|
1312
|
-
"aria-pressed":
|
|
1313
|
-
"aria-label":
|
|
1314
|
-
title:
|
|
1315
|
-
onClick: () =>
|
|
1316
|
-
children: /* @__PURE__ */
|
|
1320
|
+
"aria-pressed": o.viewport === p.id,
|
|
1321
|
+
"aria-label": n.viewport[p.id] ?? p.label,
|
|
1322
|
+
title: n.viewport[p.id] ?? p.label,
|
|
1323
|
+
onClick: () => r({ viewport: p.id }),
|
|
1324
|
+
children: /* @__PURE__ */ t(ut, { id: p.id })
|
|
1317
1325
|
},
|
|
1318
|
-
|
|
1326
|
+
p.id
|
|
1319
1327
|
)) }),
|
|
1320
|
-
|
|
1328
|
+
o.viewport === "custom" && /* @__PURE__ */ t(
|
|
1321
1329
|
"input",
|
|
1322
1330
|
{
|
|
1323
1331
|
className: "ds-input",
|
|
@@ -1327,57 +1335,57 @@ function tt({
|
|
|
1327
1335
|
step: 10,
|
|
1328
1336
|
style: { width: 88 },
|
|
1329
1337
|
"aria-label": c.customWidth,
|
|
1330
|
-
value:
|
|
1331
|
-
onChange: (
|
|
1338
|
+
value: o.customWidth ?? 1024,
|
|
1339
|
+
onChange: (p) => r({ customWidth: Number(p.target.value) || void 0 })
|
|
1332
1340
|
}
|
|
1333
1341
|
)
|
|
1334
1342
|
] }),
|
|
1335
|
-
|
|
1336
|
-
/* @__PURE__ */
|
|
1337
|
-
/* @__PURE__ */
|
|
1343
|
+
g.length > 1 && /* @__PURE__ */ l("div", { className: "ds-field", children: [
|
|
1344
|
+
/* @__PURE__ */ t("label", { htmlFor: "ds-theme", children: c.theme }),
|
|
1345
|
+
/* @__PURE__ */ t(
|
|
1338
1346
|
"select",
|
|
1339
1347
|
{
|
|
1340
1348
|
id: "ds-theme",
|
|
1341
1349
|
className: "ds-select",
|
|
1342
|
-
value:
|
|
1343
|
-
onChange: (
|
|
1344
|
-
children:
|
|
1350
|
+
value: o.themeMode ?? g[0],
|
|
1351
|
+
onChange: (p) => r({ themeMode: p.target.value }),
|
|
1352
|
+
children: g.map((p) => /* @__PURE__ */ t("option", { value: p, children: p }, p))
|
|
1345
1353
|
}
|
|
1346
1354
|
)
|
|
1347
1355
|
] }),
|
|
1348
|
-
|
|
1349
|
-
/* @__PURE__ */
|
|
1350
|
-
/* @__PURE__ */
|
|
1356
|
+
f.length > 1 && /* @__PURE__ */ l("div", { className: "ds-field", children: [
|
|
1357
|
+
/* @__PURE__ */ t("label", { htmlFor: "ds-locale", children: c.locale }),
|
|
1358
|
+
/* @__PURE__ */ t(
|
|
1351
1359
|
"select",
|
|
1352
1360
|
{
|
|
1353
1361
|
id: "ds-locale",
|
|
1354
1362
|
className: "ds-select",
|
|
1355
|
-
value:
|
|
1356
|
-
onChange: (
|
|
1357
|
-
children:
|
|
1363
|
+
value: o.locale ?? f[0],
|
|
1364
|
+
onChange: (p) => r({ locale: p.target.value }),
|
|
1365
|
+
children: f.map((p) => /* @__PURE__ */ t("option", { value: p, children: p }, p))
|
|
1358
1366
|
}
|
|
1359
1367
|
)
|
|
1360
1368
|
] }),
|
|
1361
|
-
|
|
1362
|
-
/* @__PURE__ */
|
|
1363
|
-
/* @__PURE__ */
|
|
1369
|
+
a && u.length > 0 && /* @__PURE__ */ l("div", { className: "ds-field", children: [
|
|
1370
|
+
/* @__PURE__ */ t("label", { htmlFor: "ds-source", children: c.dataSource }),
|
|
1371
|
+
/* @__PURE__ */ l(
|
|
1364
1372
|
"select",
|
|
1365
1373
|
{
|
|
1366
1374
|
id: "ds-source",
|
|
1367
1375
|
className: "ds-select",
|
|
1368
|
-
value:
|
|
1369
|
-
onChange: (
|
|
1376
|
+
value: o.dataSource ?? "fixtures",
|
|
1377
|
+
onChange: (p) => r({ dataSource: p.target.value }),
|
|
1370
1378
|
children: [
|
|
1371
|
-
/* @__PURE__ */
|
|
1372
|
-
|
|
1379
|
+
/* @__PURE__ */ t("option", { value: "fixtures", children: c.fixturesOption }),
|
|
1380
|
+
u.filter((p) => p.id !== "fixtures").map((p) => /* @__PURE__ */ t("option", { value: p.id, children: p.label }, p.id))
|
|
1373
1381
|
]
|
|
1374
1382
|
}
|
|
1375
1383
|
)
|
|
1376
1384
|
] })
|
|
1377
1385
|
] });
|
|
1378
1386
|
}
|
|
1379
|
-
function
|
|
1380
|
-
const
|
|
1387
|
+
function ut({ id: e }) {
|
|
1388
|
+
const o = {
|
|
1381
1389
|
width: 16,
|
|
1382
1390
|
height: 16,
|
|
1383
1391
|
viewBox: "0 0 24 24",
|
|
@@ -1388,292 +1396,350 @@ function ot({ id: e }) {
|
|
|
1388
1396
|
strokeLinejoin: "round",
|
|
1389
1397
|
"aria-hidden": !0
|
|
1390
1398
|
};
|
|
1391
|
-
return e === "fit" ? /* @__PURE__ */
|
|
1392
|
-
/* @__PURE__ */
|
|
1393
|
-
/* @__PURE__ */
|
|
1394
|
-
] }) : e === "tablet" ? /* @__PURE__ */
|
|
1395
|
-
/* @__PURE__ */
|
|
1396
|
-
/* @__PURE__ */
|
|
1397
|
-
] }) : e === "desktop" ? /* @__PURE__ */
|
|
1398
|
-
/* @__PURE__ */
|
|
1399
|
-
/* @__PURE__ */
|
|
1400
|
-
] }) : /* @__PURE__ */
|
|
1399
|
+
return e === "fit" ? /* @__PURE__ */ t("svg", { ...o, children: /* @__PURE__ */ t("path", { d: "M8 3H5a2 2 0 0 0-2 2v3M16 3h3a2 2 0 0 1 2 2v3M8 21H5a2 2 0 0 1-2-2v-3M16 21h3a2 2 0 0 0 2-2v-3" }) }) : e === "mobile" ? /* @__PURE__ */ l("svg", { ...o, children: [
|
|
1400
|
+
/* @__PURE__ */ t("rect", { width: "14", height: "20", x: "5", y: "2", rx: "2", ry: "2" }),
|
|
1401
|
+
/* @__PURE__ */ t("path", { d: "M12 18h.01" })
|
|
1402
|
+
] }) : e === "tablet" ? /* @__PURE__ */ l("svg", { ...o, children: [
|
|
1403
|
+
/* @__PURE__ */ t("rect", { width: "16", height: "20", x: "4", y: "2", rx: "2", ry: "2" }),
|
|
1404
|
+
/* @__PURE__ */ t("path", { d: "M12 18h.01" })
|
|
1405
|
+
] }) : e === "desktop" ? /* @__PURE__ */ l("svg", { ...o, children: [
|
|
1406
|
+
/* @__PURE__ */ t("rect", { width: "20", height: "14", x: "2", y: "3", rx: "2" }),
|
|
1407
|
+
/* @__PURE__ */ t("path", { d: "M8 21h8M12 17v4" })
|
|
1408
|
+
] }) : /* @__PURE__ */ t("svg", { ...o, children: /* @__PURE__ */ t("path", { d: "M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7" }) });
|
|
1401
1409
|
}
|
|
1402
|
-
function
|
|
1410
|
+
function ht({
|
|
1403
1411
|
registry: e,
|
|
1404
|
-
scenario:
|
|
1405
|
-
component:
|
|
1406
|
-
componentFixture:
|
|
1407
|
-
controls:
|
|
1408
|
-
focusedNode:
|
|
1409
|
-
tabStopCount:
|
|
1412
|
+
scenario: o,
|
|
1413
|
+
component: a,
|
|
1414
|
+
componentFixture: i,
|
|
1415
|
+
controls: d,
|
|
1416
|
+
focusedNode: r,
|
|
1417
|
+
tabStopCount: n
|
|
1410
1418
|
}) {
|
|
1411
|
-
const c = P().inspector, [h,
|
|
1412
|
-
return /* @__PURE__ */
|
|
1413
|
-
/* @__PURE__ */
|
|
1414
|
-
/* @__PURE__ */
|
|
1415
|
-
/* @__PURE__ */
|
|
1416
|
-
/* @__PURE__ */
|
|
1419
|
+
const c = P().inspector, [h, u] = F("scenario"), g = e.issues.filter((f) => f.level === "error").length;
|
|
1420
|
+
return /* @__PURE__ */ l("aside", { className: "ds-chrome ds-inspector", "aria-label": c.region, children: [
|
|
1421
|
+
/* @__PURE__ */ l("div", { className: "ds-inspector__tabs", role: "tablist", children: [
|
|
1422
|
+
/* @__PURE__ */ t(ne, { id: "scenario", current: h, onSelect: u, children: a ? c.componentReference : c.tabScenario }),
|
|
1423
|
+
/* @__PURE__ */ t(ne, { id: "a11y", current: h, onSelect: u, children: c.tabA11y }),
|
|
1424
|
+
/* @__PURE__ */ t(ne, { id: "diagnostics", current: h, onSelect: u, children: g > 0 ? c.diagnosticsWithErrors(g) : c.tabDiagnostics })
|
|
1417
1425
|
] }),
|
|
1418
|
-
/* @__PURE__ */
|
|
1419
|
-
h === "scenario" && /* @__PURE__ */
|
|
1420
|
-
|
|
1426
|
+
/* @__PURE__ */ l("div", { className: "ds-inspector__body", role: "tabpanel", children: [
|
|
1427
|
+
h === "scenario" && /* @__PURE__ */ t(
|
|
1428
|
+
mt,
|
|
1421
1429
|
{
|
|
1422
1430
|
registry: e,
|
|
1423
|
-
scenario:
|
|
1424
|
-
component:
|
|
1425
|
-
componentFixture:
|
|
1426
|
-
controls:
|
|
1431
|
+
scenario: o,
|
|
1432
|
+
component: a,
|
|
1433
|
+
componentFixture: i,
|
|
1434
|
+
controls: d
|
|
1427
1435
|
}
|
|
1428
1436
|
),
|
|
1429
|
-
h === "a11y" && /* @__PURE__ */
|
|
1430
|
-
|
|
1437
|
+
h === "a11y" && /* @__PURE__ */ t(
|
|
1438
|
+
ft,
|
|
1431
1439
|
{
|
|
1432
1440
|
registry: e,
|
|
1433
|
-
scenario:
|
|
1434
|
-
focusedNode:
|
|
1435
|
-
keyboardMode:
|
|
1436
|
-
tabStopCount:
|
|
1441
|
+
scenario: o,
|
|
1442
|
+
focusedNode: r,
|
|
1443
|
+
keyboardMode: d.keyboardMode,
|
|
1444
|
+
tabStopCount: n
|
|
1437
1445
|
}
|
|
1438
1446
|
),
|
|
1439
|
-
h === "diagnostics" && /* @__PURE__ */
|
|
1447
|
+
h === "diagnostics" && /* @__PURE__ */ t(bt, { registry: e })
|
|
1440
1448
|
] })
|
|
1441
1449
|
] });
|
|
1442
1450
|
}
|
|
1443
|
-
function
|
|
1451
|
+
function ne({
|
|
1444
1452
|
id: e,
|
|
1445
|
-
current:
|
|
1446
|
-
onSelect:
|
|
1447
|
-
children:
|
|
1453
|
+
current: o,
|
|
1454
|
+
onSelect: a,
|
|
1455
|
+
children: i
|
|
1448
1456
|
}) {
|
|
1449
|
-
return /* @__PURE__ */
|
|
1457
|
+
return /* @__PURE__ */ t(
|
|
1450
1458
|
"button",
|
|
1451
1459
|
{
|
|
1452
1460
|
type: "button",
|
|
1453
1461
|
role: "tab",
|
|
1454
|
-
"aria-selected":
|
|
1455
|
-
onClick: () =>
|
|
1456
|
-
children:
|
|
1462
|
+
"aria-selected": o === e,
|
|
1463
|
+
onClick: () => a(e),
|
|
1464
|
+
children: i
|
|
1457
1465
|
}
|
|
1458
1466
|
);
|
|
1459
1467
|
}
|
|
1460
|
-
function
|
|
1468
|
+
function mt({
|
|
1461
1469
|
registry: e,
|
|
1462
|
-
scenario:
|
|
1463
|
-
component:
|
|
1464
|
-
componentFixture:
|
|
1465
|
-
controls:
|
|
1470
|
+
scenario: o,
|
|
1471
|
+
component: a,
|
|
1472
|
+
componentFixture: i,
|
|
1473
|
+
controls: d
|
|
1466
1474
|
}) {
|
|
1467
|
-
const
|
|
1468
|
-
if (!
|
|
1469
|
-
return
|
|
1470
|
-
/* @__PURE__ */
|
|
1471
|
-
/* @__PURE__ */
|
|
1472
|
-
|
|
1473
|
-
/* @__PURE__ */
|
|
1474
|
-
/* @__PURE__ */
|
|
1475
|
-
/* @__PURE__ */
|
|
1476
|
-
|
|
1477
|
-
/* @__PURE__ */
|
|
1478
|
-
/* @__PURE__ */
|
|
1475
|
+
const r = P(), n = r.inspector;
|
|
1476
|
+
if (!o)
|
|
1477
|
+
return a ? /* @__PURE__ */ l("div", { className: "ds-block", children: [
|
|
1478
|
+
/* @__PURE__ */ t("h2", { className: "ds-block__title", children: n.componentReference }),
|
|
1479
|
+
/* @__PURE__ */ t("p", { style: { color: "var(--ds-fg)", fontSize: 15, fontWeight: 600 }, children: a.name }),
|
|
1480
|
+
a.description && /* @__PURE__ */ t("p", { children: a.description }),
|
|
1481
|
+
/* @__PURE__ */ l("dl", { className: "ds-kv", style: { marginTop: 14 }, children: [
|
|
1482
|
+
/* @__PURE__ */ t("dt", { children: n.id }),
|
|
1483
|
+
/* @__PURE__ */ t("dd", { style: { fontFamily: "var(--ds-mono)", fontSize: 11 }, children: a.id }),
|
|
1484
|
+
a.group && /* @__PURE__ */ l(A, { children: [
|
|
1485
|
+
/* @__PURE__ */ t("dt", { children: n.componentGroup }),
|
|
1486
|
+
/* @__PURE__ */ t("dd", { children: a.group })
|
|
1479
1487
|
] }),
|
|
1480
|
-
|
|
1481
|
-
/* @__PURE__ */
|
|
1482
|
-
/* @__PURE__ */
|
|
1483
|
-
|
|
1488
|
+
i?.fixture && /* @__PURE__ */ l(A, { children: [
|
|
1489
|
+
/* @__PURE__ */ t("dt", { children: n.componentFixture }),
|
|
1490
|
+
/* @__PURE__ */ l("dd", { children: [
|
|
1491
|
+
i.fixture.label,
|
|
1484
1492
|
" ",
|
|
1485
|
-
/* @__PURE__ */
|
|
1493
|
+
/* @__PURE__ */ t("code", { children: i.fixture.id })
|
|
1486
1494
|
] }),
|
|
1487
|
-
|
|
1488
|
-
/* @__PURE__ */
|
|
1489
|
-
/* @__PURE__ */
|
|
1495
|
+
i.fixture.description && /* @__PURE__ */ l(A, { children: [
|
|
1496
|
+
/* @__PURE__ */ t("dt", { children: n.componentFixtureDescription }),
|
|
1497
|
+
/* @__PURE__ */ t("dd", { children: i.fixture.description })
|
|
1490
1498
|
] })
|
|
1491
1499
|
] })
|
|
1492
1500
|
] }),
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1501
|
+
i?.didFallback && i.fixture && /* @__PURE__ */ t("p", { className: "ds-note", "data-tone": "warn", children: n.componentFixtureFallback(
|
|
1502
|
+
i.requestedId ?? "",
|
|
1503
|
+
i.fixture.id
|
|
1496
1504
|
) })
|
|
1497
|
-
] }) : /* @__PURE__ */
|
|
1498
|
-
const c = e.persona(
|
|
1499
|
-
return /* @__PURE__ */
|
|
1500
|
-
/* @__PURE__ */
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1505
|
+
] }) : /* @__PURE__ */ t("p", { className: "ds-block", children: n.noScenario });
|
|
1506
|
+
const c = e.persona(d.persona ?? o.persona), h = d.persona ? e.persona(d.persona)?.permissions ?? [] : e.permissionsOf(o), u = e.rulesOf(o), g = e.fixture(d.fixture ?? o.fixture), f = !!(d.persona && d.persona !== o.persona), p = o.status !== "approved" || !!o.approvedAt;
|
|
1507
|
+
return /* @__PURE__ */ l(A, { children: [
|
|
1508
|
+
/* @__PURE__ */ l(
|
|
1509
|
+
z,
|
|
1510
|
+
{
|
|
1511
|
+
scope: "task",
|
|
1512
|
+
title: n.taskScope,
|
|
1513
|
+
description: n.taskScopeDescription,
|
|
1514
|
+
children: [
|
|
1515
|
+
/* @__PURE__ */ l("div", { className: "ds-block", children: [
|
|
1516
|
+
/* @__PURE__ */ t("h2", { className: "ds-block__title", children: n.situation }),
|
|
1517
|
+
/* @__PURE__ */ t("p", { style: { color: "var(--ds-fg)", fontSize: 14, fontWeight: 600 }, children: o.title }),
|
|
1518
|
+
o.intent && /* @__PURE__ */ t("p", { children: o.intent }),
|
|
1519
|
+
/* @__PURE__ */ l("div", { className: "ds-chips", children: [
|
|
1520
|
+
/* @__PURE__ */ t("span", { className: "ds-chip", "data-tone": gt(o), children: p ? r.status[o.status] : n.approvalPendingStatus }),
|
|
1521
|
+
(o.tags ?? []).map((b) => /* @__PURE__ */ t("span", { className: "ds-chip", children: b }, b))
|
|
1522
|
+
] }),
|
|
1523
|
+
/* @__PURE__ */ t("p", { style: { marginTop: 6 }, children: p ? r.statusMeaning[o.status] : n.approvalPendingMeaning })
|
|
1524
|
+
] }),
|
|
1525
|
+
/* @__PURE__ */ l("div", { className: "ds-block", children: [
|
|
1526
|
+
/* @__PURE__ */ t("h2", { className: "ds-block__title", children: n.reproduction }),
|
|
1527
|
+
/* @__PURE__ */ l("dl", { className: "ds-kv", children: [
|
|
1528
|
+
/* @__PURE__ */ t("dt", { children: n.id }),
|
|
1529
|
+
/* @__PURE__ */ t("dd", { style: { fontFamily: "var(--ds-mono)", fontSize: 11 }, children: o.id }),
|
|
1530
|
+
/* @__PURE__ */ t("dt", { children: n.route }),
|
|
1531
|
+
/* @__PURE__ */ t("dd", { style: { fontFamily: "var(--ds-mono)", fontSize: 11 }, children: o.route }),
|
|
1532
|
+
/* @__PURE__ */ t("dt", { children: n.data }),
|
|
1533
|
+
/* @__PURE__ */ t("dd", { children: g?.label ?? "—" }),
|
|
1534
|
+
/* @__PURE__ */ t("dt", { children: n.network }),
|
|
1535
|
+
/* @__PURE__ */ t("dd", { children: r.network[d.network] })
|
|
1536
|
+
] })
|
|
1537
|
+
] }),
|
|
1538
|
+
o.preconditions?.length ? /* @__PURE__ */ l("div", { className: "ds-block", children: [
|
|
1539
|
+
/* @__PURE__ */ t("h2", { className: "ds-block__title", children: n.preconditions }),
|
|
1540
|
+
/* @__PURE__ */ t("ul", { className: "ds-list", children: o.preconditions.map((b) => /* @__PURE__ */ t("li", { children: b }, b)) })
|
|
1541
|
+
] }) : null,
|
|
1542
|
+
u.length > 0 && /* @__PURE__ */ l("div", { className: "ds-block", children: [
|
|
1543
|
+
/* @__PURE__ */ t("h2", { className: "ds-block__title", children: n.rules }),
|
|
1544
|
+
u.map((b) => /* @__PURE__ */ l("div", { className: "ds-rule", children: [
|
|
1545
|
+
/* @__PURE__ */ t("span", { className: "ds-rule__id", children: b.id }),
|
|
1546
|
+
/* @__PURE__ */ t("span", { className: "ds-rule__statement", children: b.statement }),
|
|
1547
|
+
b.rationale && /* @__PURE__ */ t("p", { className: "ds-rule__rationale", children: b.rationale })
|
|
1548
|
+
] }, b.id))
|
|
1549
|
+
] }),
|
|
1550
|
+
o.actions?.length ? /* @__PURE__ */ l("div", { className: "ds-block", children: [
|
|
1551
|
+
/* @__PURE__ */ t("h2", { className: "ds-block__title", children: n.actions }),
|
|
1552
|
+
/* @__PURE__ */ t("ul", { className: "ds-list", children: o.actions.map((b) => /* @__PURE__ */ t("li", { children: b }, b)) })
|
|
1553
|
+
] }) : null,
|
|
1554
|
+
o.expected?.length ? /* @__PURE__ */ l("div", { className: "ds-block", children: [
|
|
1555
|
+
/* @__PURE__ */ t("h2", { className: "ds-block__title", children: n.expected }),
|
|
1556
|
+
/* @__PURE__ */ t("ul", { className: "ds-list", children: o.expected.map((b) => /* @__PURE__ */ t("li", { children: b }, b)) })
|
|
1557
|
+
] }) : null,
|
|
1558
|
+
(o.status === "approved" || o.approvedAt) && /* @__PURE__ */ l("div", { className: "ds-block", children: [
|
|
1559
|
+
/* @__PURE__ */ t("h2", { className: "ds-block__title", children: n.approval }),
|
|
1560
|
+
o.approvedAt ? /* @__PURE__ */ l(A, { children: [
|
|
1561
|
+
/* @__PURE__ */ l("p", { children: [
|
|
1562
|
+
o.approvedAt.date,
|
|
1563
|
+
" · ",
|
|
1564
|
+
/* @__PURE__ */ t("code", { children: o.approvedAt.commit.slice(0, 7) })
|
|
1565
|
+
] }),
|
|
1566
|
+
/* @__PURE__ */ t("a", { href: o.approvedAt.url, target: "_blank", rel: "noreferrer", children: n.openApproved })
|
|
1567
|
+
] }) : /* @__PURE__ */ t("p", { className: "ds-note", "data-tone": "warn", role: "alert", children: n.approvalMissing })
|
|
1568
|
+
] }),
|
|
1569
|
+
o.ticket && /* @__PURE__ */ l("div", { className: "ds-block", children: [
|
|
1570
|
+
/* @__PURE__ */ t("h2", { className: "ds-block__title", children: n.engineering }),
|
|
1571
|
+
/* @__PURE__ */ t("p", { children: o.ticket })
|
|
1572
|
+
] })
|
|
1573
|
+
]
|
|
1574
|
+
}
|
|
1575
|
+
),
|
|
1576
|
+
/* @__PURE__ */ l(
|
|
1577
|
+
z,
|
|
1578
|
+
{
|
|
1579
|
+
scope: "inherited",
|
|
1580
|
+
title: n.inheritedScope,
|
|
1581
|
+
description: n.inheritedScopeDescription,
|
|
1582
|
+
children: [
|
|
1583
|
+
/* @__PURE__ */ l("div", { className: "ds-block", children: [
|
|
1584
|
+
/* @__PURE__ */ t("h2", { className: "ds-block__title", children: n.persona }),
|
|
1585
|
+
/* @__PURE__ */ l("p", { style: { color: "var(--ds-fg)", fontWeight: 600 }, children: [
|
|
1586
|
+
c?.name ?? "—",
|
|
1587
|
+
f && /* @__PURE__ */ t("span", { className: "ds-chip", "data-tone": "warn", style: { marginLeft: 6 }, children: n.personaSwapped })
|
|
1588
|
+
] }),
|
|
1589
|
+
c?.goal && /* @__PURE__ */ t("p", { children: n.goal(c.goal) })
|
|
1590
|
+
] }),
|
|
1591
|
+
h.length > 0 && /* @__PURE__ */ l("div", { className: "ds-block", children: [
|
|
1592
|
+
/* @__PURE__ */ t("h2", { className: "ds-block__title", children: n.permissions }),
|
|
1593
|
+
/* @__PURE__ */ t("div", { className: "ds-chips", children: h.map((b) => /* @__PURE__ */ t("span", { className: "ds-chip", children: b }, b)) })
|
|
1594
|
+
] })
|
|
1595
|
+
]
|
|
1596
|
+
}
|
|
1597
|
+
)
|
|
1566
1598
|
] });
|
|
1567
1599
|
}
|
|
1568
|
-
function
|
|
1600
|
+
function ft({
|
|
1569
1601
|
registry: e,
|
|
1570
|
-
scenario:
|
|
1571
|
-
focusedNode:
|
|
1572
|
-
keyboardMode:
|
|
1573
|
-
tabStopCount:
|
|
1602
|
+
scenario: o,
|
|
1603
|
+
focusedNode: a,
|
|
1604
|
+
keyboardMode: i,
|
|
1605
|
+
tabStopCount: d
|
|
1574
1606
|
}) {
|
|
1575
|
-
const
|
|
1576
|
-
return /* @__PURE__ */
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
/* @__PURE__ */
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
/* @__PURE__ */ u("dl", { className: "ds-kv", children: [
|
|
1595
|
-
/* @__PURE__ */ o("dt", { children: r.role }),
|
|
1596
|
-
/* @__PURE__ */ o("dd", { children: n.role }),
|
|
1597
|
-
/* @__PURE__ */ o("dt", { children: r.name }),
|
|
1598
|
-
/* @__PURE__ */ o("dd", { children: n.name ? n.name : /* @__PURE__ */ o("span", { style: { color: "var(--ds-err)" }, children: r.noAccessibleName }) }),
|
|
1599
|
-
/* @__PURE__ */ o("dt", { children: r.nameFrom }),
|
|
1600
|
-
/* @__PURE__ */ o("dd", { children: n.nameFrom }),
|
|
1601
|
-
n.description ? /* @__PURE__ */ u(A, { children: [
|
|
1602
|
-
/* @__PURE__ */ o("dt", { children: r.description }),
|
|
1603
|
-
/* @__PURE__ */ o("dd", { children: n.description })
|
|
1607
|
+
const r = P(), n = r.inspector, c = Ce(e.product.theme?.contrastPairs), h = c.filter((u) => u.passes !== !0);
|
|
1608
|
+
return /* @__PURE__ */ l(A, { children: [
|
|
1609
|
+
o && /* @__PURE__ */ t(
|
|
1610
|
+
z,
|
|
1611
|
+
{
|
|
1612
|
+
scope: "task",
|
|
1613
|
+
title: n.taskScope,
|
|
1614
|
+
description: n.taskScopeDescription,
|
|
1615
|
+
children: /* @__PURE__ */ l("div", { className: "ds-block", children: [
|
|
1616
|
+
/* @__PURE__ */ t("h2", { className: "ds-block__title", children: n.a11yContract }),
|
|
1617
|
+
/* @__PURE__ */ l("dl", { className: "ds-kv", children: [
|
|
1618
|
+
/* @__PURE__ */ t("dt", { children: n.keyboard }),
|
|
1619
|
+
/* @__PURE__ */ t("dd", { children: r.keyboard[o.a11y.keyboard] }),
|
|
1620
|
+
/* @__PURE__ */ t("dt", { children: n.contrast }),
|
|
1621
|
+
/* @__PURE__ */ t("dd", { children: n.contrastTarget(o.a11y.contrast) })
|
|
1622
|
+
] }),
|
|
1623
|
+
o.a11y.announces?.length ? /* @__PURE__ */ l(A, { children: [
|
|
1624
|
+
/* @__PURE__ */ t("p", { style: { marginTop: 8 }, children: n.announces }),
|
|
1625
|
+
/* @__PURE__ */ t("div", { className: "ds-chips", children: o.a11y.announces.map((u) => /* @__PURE__ */ t("span", { className: "ds-chip", children: u }, u)) })
|
|
1604
1626
|
] }) : null,
|
|
1605
|
-
/* @__PURE__ */
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
/* @__PURE__ */
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
"
|
|
1624
|
-
{
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
"
|
|
1628
|
-
}
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1627
|
+
o.a11y.notes && /* @__PURE__ */ t("p", { style: { marginTop: 8 }, children: o.a11y.notes })
|
|
1628
|
+
] })
|
|
1629
|
+
}
|
|
1630
|
+
),
|
|
1631
|
+
/* @__PURE__ */ t(
|
|
1632
|
+
z,
|
|
1633
|
+
{
|
|
1634
|
+
scope: "screen",
|
|
1635
|
+
title: n.screenScope,
|
|
1636
|
+
description: n.screenScopeDescription,
|
|
1637
|
+
children: /* @__PURE__ */ l("div", { className: "ds-block", children: [
|
|
1638
|
+
/* @__PURE__ */ t("h2", { className: "ds-block__title", children: n.focusedElement }),
|
|
1639
|
+
i ? a ? /* @__PURE__ */ l(A, { children: [
|
|
1640
|
+
/* @__PURE__ */ l("dl", { className: "ds-kv", children: [
|
|
1641
|
+
/* @__PURE__ */ t("dt", { children: n.role }),
|
|
1642
|
+
/* @__PURE__ */ t("dd", { children: a.role }),
|
|
1643
|
+
/* @__PURE__ */ t("dt", { children: n.name }),
|
|
1644
|
+
/* @__PURE__ */ t("dd", { children: a.name ? a.name : /* @__PURE__ */ t("span", { style: { color: "var(--ds-err)" }, children: n.noAccessibleName }) }),
|
|
1645
|
+
/* @__PURE__ */ t("dt", { children: n.nameFrom }),
|
|
1646
|
+
/* @__PURE__ */ t("dd", { children: a.nameFrom }),
|
|
1647
|
+
a.description ? /* @__PURE__ */ l(A, { children: [
|
|
1648
|
+
/* @__PURE__ */ t("dt", { children: n.description }),
|
|
1649
|
+
/* @__PURE__ */ t("dd", { children: a.description })
|
|
1650
|
+
] }) : null,
|
|
1651
|
+
/* @__PURE__ */ t("dt", { children: n.selector }),
|
|
1652
|
+
/* @__PURE__ */ t("dd", { style: { fontFamily: "var(--ds-mono)", fontSize: 11 }, children: a.selector })
|
|
1653
|
+
] }),
|
|
1654
|
+
a.states.length > 0 && /* @__PURE__ */ t("div", { className: "ds-chips", style: { marginTop: 8 }, children: a.states.map((u) => /* @__PURE__ */ t("span", { className: "ds-chip", children: u }, u)) }),
|
|
1655
|
+
a.hiddenFromAssistiveTech && /* @__PURE__ */ t("p", { className: "ds-note", style: { marginTop: 8 }, children: n.focusableButHidden }),
|
|
1656
|
+
/* @__PURE__ */ t("p", { style: { marginTop: 8 }, children: n.tabStopsInStage(d) })
|
|
1657
|
+
] }) : /* @__PURE__ */ t("p", { children: n.pressTab(d) }) : /* @__PURE__ */ t("p", { children: n.keyboardModeOff })
|
|
1658
|
+
] })
|
|
1659
|
+
}
|
|
1660
|
+
),
|
|
1661
|
+
/* @__PURE__ */ l(
|
|
1662
|
+
z,
|
|
1663
|
+
{
|
|
1664
|
+
scope: "product",
|
|
1665
|
+
title: n.productScope,
|
|
1666
|
+
description: n.productScopeDescription,
|
|
1667
|
+
children: [
|
|
1668
|
+
/* @__PURE__ */ l("div", { className: "ds-block", children: [
|
|
1669
|
+
/* @__PURE__ */ t("h2", { className: "ds-block__title", children: n.tokenContrast }),
|
|
1670
|
+
c.length === 0 ? /* @__PURE__ */ t("p", { children: n.noContrastPairs }) : /* @__PURE__ */ l("table", { className: "ds-contrast", children: [
|
|
1671
|
+
/* @__PURE__ */ t("thead", { children: /* @__PURE__ */ l("tr", { children: [
|
|
1672
|
+
/* @__PURE__ */ t("th", { scope: "col", children: n.pair }),
|
|
1673
|
+
/* @__PURE__ */ t("th", { scope: "col", children: n.ratio })
|
|
1674
|
+
] }) }),
|
|
1675
|
+
/* @__PURE__ */ t("tbody", { children: c.map((u) => /* @__PURE__ */ l("tr", { children: [
|
|
1676
|
+
/* @__PURE__ */ l("td", { children: [
|
|
1677
|
+
/* @__PURE__ */ t(
|
|
1678
|
+
"span",
|
|
1679
|
+
{
|
|
1680
|
+
className: "ds-swatch",
|
|
1681
|
+
style: { background: u.pair.background },
|
|
1682
|
+
"aria-hidden": "true"
|
|
1683
|
+
}
|
|
1684
|
+
),
|
|
1685
|
+
/* @__PURE__ */ t(
|
|
1686
|
+
"span",
|
|
1687
|
+
{
|
|
1688
|
+
className: "ds-swatch",
|
|
1689
|
+
style: { background: u.pair.foreground },
|
|
1690
|
+
"aria-hidden": "true"
|
|
1691
|
+
}
|
|
1692
|
+
),
|
|
1693
|
+
u.pair.name
|
|
1694
|
+
] }),
|
|
1695
|
+
/* @__PURE__ */ t(
|
|
1696
|
+
"td",
|
|
1697
|
+
{
|
|
1698
|
+
style: {
|
|
1699
|
+
color: u.passes === !0 ? "var(--ds-ok)" : u.passes === !1 ? "var(--ds-err)" : "var(--ds-warn)"
|
|
1700
|
+
},
|
|
1701
|
+
children: u.label
|
|
1702
|
+
}
|
|
1703
|
+
)
|
|
1704
|
+
] }, u.pair.name)) })
|
|
1705
|
+
] }),
|
|
1706
|
+
h.length > 0 && /* @__PURE__ */ t("p", { className: "ds-note", style: { marginTop: 8 }, children: n.pairsFailing(h.length) })
|
|
1639
1707
|
] }),
|
|
1640
|
-
/* @__PURE__ */
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
color: p.passes === !0 ? "var(--ds-ok)" : p.passes === !1 ? "var(--ds-err)" : "var(--ds-warn)"
|
|
1645
|
-
},
|
|
1646
|
-
children: p.label
|
|
1647
|
-
}
|
|
1648
|
-
)
|
|
1649
|
-
] }, p.pair.name)) })
|
|
1650
|
-
] }),
|
|
1651
|
-
h.length > 0 && /* @__PURE__ */ o("p", { className: "ds-note", style: { marginTop: 8 }, children: r.pairsFailing(h.length) })
|
|
1652
|
-
] }),
|
|
1653
|
-
/* @__PURE__ */ o("p", { className: "ds-note", children: r.automatedIsFloor })
|
|
1708
|
+
/* @__PURE__ */ t("p", { className: "ds-note", children: n.automatedIsFloor })
|
|
1709
|
+
]
|
|
1710
|
+
}
|
|
1711
|
+
)
|
|
1654
1712
|
] });
|
|
1655
1713
|
}
|
|
1656
|
-
function
|
|
1657
|
-
const
|
|
1658
|
-
return /* @__PURE__ */
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1714
|
+
function bt({ registry: e }) {
|
|
1715
|
+
const o = P(), a = o.inspector, i = e.coverage({ includePorted: !0 }), { issues: d } = e;
|
|
1716
|
+
return /* @__PURE__ */ t(A, { children: /* @__PURE__ */ l(
|
|
1717
|
+
z,
|
|
1718
|
+
{
|
|
1719
|
+
scope: "product",
|
|
1720
|
+
title: a.productScope,
|
|
1721
|
+
description: a.diagnosticsProductNotice,
|
|
1722
|
+
children: [
|
|
1723
|
+
/* @__PURE__ */ l("div", { className: "ds-block", children: [
|
|
1724
|
+
/* @__PURE__ */ t("h2", { className: "ds-block__title", children: a.coverage }),
|
|
1725
|
+
/* @__PURE__ */ t("dl", { className: "ds-kv", children: Object.entries(i).filter(([, r]) => r > 0).map(([r, n]) => /* @__PURE__ */ l("div", { style: { display: "contents" }, children: [
|
|
1726
|
+
/* @__PURE__ */ t("dt", { children: o.status[r] }),
|
|
1727
|
+
/* @__PURE__ */ t("dd", { style: { fontVariantNumeric: "tabular-nums" }, children: n })
|
|
1728
|
+
] }, r)) }),
|
|
1729
|
+
/* @__PURE__ */ t("p", { style: { marginTop: 8 }, children: a.scenariosRegistered(e.product.scenarios.length) })
|
|
1730
|
+
] }),
|
|
1731
|
+
/* @__PURE__ */ l("div", { className: "ds-block", children: [
|
|
1732
|
+
/* @__PURE__ */ t("h2", { className: "ds-block__title", children: a.scenarioContract }),
|
|
1733
|
+
d.length === 0 ? /* @__PURE__ */ t("p", { children: a.noIssues }) : d.map((r, n) => /* @__PURE__ */ l("div", { className: "ds-issue", "data-level": r.level, children: [
|
|
1734
|
+
/* @__PURE__ */ t("span", { className: "ds-issue__where", children: r.where }),
|
|
1735
|
+
r.message
|
|
1736
|
+
] }, `${r.where}-${n}`))
|
|
1737
|
+
] })
|
|
1738
|
+
]
|
|
1739
|
+
}
|
|
1740
|
+
) });
|
|
1675
1741
|
}
|
|
1676
|
-
const
|
|
1742
|
+
const vt = {
|
|
1677
1743
|
ported: void 0,
|
|
1678
1744
|
proposed: "warn",
|
|
1679
1745
|
"in-review": "warn",
|
|
@@ -1682,475 +1748,549 @@ const it = {
|
|
|
1682
1748
|
implemented: "ok",
|
|
1683
1749
|
superseded: void 0
|
|
1684
1750
|
};
|
|
1685
|
-
function
|
|
1686
|
-
return
|
|
1751
|
+
function gt(e) {
|
|
1752
|
+
return e.status === "approved" && !e.approvedAt ? "warn" : vt[e.status];
|
|
1687
1753
|
}
|
|
1688
|
-
|
|
1689
|
-
|
|
1754
|
+
function z({
|
|
1755
|
+
scope: e,
|
|
1756
|
+
title: o,
|
|
1757
|
+
description: a,
|
|
1758
|
+
children: i
|
|
1759
|
+
}) {
|
|
1760
|
+
return /* @__PURE__ */ l("section", { className: "ds-scope-group", "data-scope": e, children: [
|
|
1761
|
+
/* @__PURE__ */ l("header", { className: "ds-scope-group__header", children: [
|
|
1762
|
+
/* @__PURE__ */ t("h2", { children: o }),
|
|
1763
|
+
/* @__PURE__ */ t("p", { children: a })
|
|
1764
|
+
] }),
|
|
1765
|
+
i
|
|
1766
|
+
] });
|
|
1767
|
+
}
|
|
1768
|
+
const wt = xe(function({ viewport: o, textScale: a, reducedMotion: i, keyboardMode: d, children: r }, n) {
|
|
1769
|
+
return /* @__PURE__ */ t("div", { className: "ds-stage-scroll", children: /* @__PURE__ */ t(
|
|
1690
1770
|
"div",
|
|
1691
1771
|
{
|
|
1692
|
-
ref:
|
|
1772
|
+
ref: n,
|
|
1693
1773
|
className: "ds-stage",
|
|
1694
|
-
"data-viewport":
|
|
1695
|
-
"data-keyboard-mode":
|
|
1696
|
-
"data-reduced-motion":
|
|
1774
|
+
"data-viewport": o.id,
|
|
1775
|
+
"data-keyboard-mode": d,
|
|
1776
|
+
"data-reduced-motion": i,
|
|
1697
1777
|
style: {
|
|
1698
|
-
width:
|
|
1699
|
-
minHeight:
|
|
1778
|
+
width: o.width ? `${o.width}px` : "100%",
|
|
1779
|
+
minHeight: o.height ? `${o.height}px` : void 0,
|
|
1700
1780
|
// A ampliação é aplicada no `font-size` do contêiner, não com
|
|
1701
1781
|
// `transform: scale`. É a diferença entre testar se o layout aguenta
|
|
1702
1782
|
// texto grande e só dar zoom na captura de tela.
|
|
1703
|
-
fontSize:
|
|
1783
|
+
fontSize: a === 1 ? void 0 : `${a * 100}%`
|
|
1704
1784
|
},
|
|
1705
|
-
children:
|
|
1785
|
+
children: r
|
|
1706
1786
|
}
|
|
1707
1787
|
) });
|
|
1708
1788
|
});
|
|
1709
|
-
function
|
|
1710
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
1789
|
+
function kt({ stops: e }) {
|
|
1790
|
+
return e.length === 0 ? null : /* @__PURE__ */ t("div", { className: "ds-chrome ds-taborder", "aria-hidden": "true", children: e.map((o) => /* @__PURE__ */ t(
|
|
1711
1791
|
"span",
|
|
1712
1792
|
{
|
|
1713
1793
|
className: "ds-taborder__badge",
|
|
1714
|
-
"data-forced":
|
|
1715
|
-
style: { top:
|
|
1716
|
-
children:
|
|
1794
|
+
"data-forced": o.forcedOrder,
|
|
1795
|
+
style: { top: o.rect.top, left: o.rect.left },
|
|
1796
|
+
children: o.index
|
|
1717
1797
|
},
|
|
1718
|
-
`${
|
|
1798
|
+
`${o.index}-${o.rect.top}-${o.rect.left}`
|
|
1719
1799
|
)) });
|
|
1720
1800
|
}
|
|
1721
|
-
function
|
|
1722
|
-
return /* @__PURE__ */
|
|
1723
|
-
/* @__PURE__ */
|
|
1724
|
-
|
|
1801
|
+
function fe({ title: e, children: o }) {
|
|
1802
|
+
return /* @__PURE__ */ l("div", { className: "ds-chrome ds-stage-empty", children: [
|
|
1803
|
+
/* @__PURE__ */ t("h2", { children: e }),
|
|
1804
|
+
o
|
|
1725
1805
|
] });
|
|
1726
1806
|
}
|
|
1727
|
-
function
|
|
1807
|
+
function Nt({
|
|
1728
1808
|
registry: e,
|
|
1729
|
-
onOpenScenario:
|
|
1730
|
-
view:
|
|
1731
|
-
onViewChange:
|
|
1732
|
-
|
|
1809
|
+
onOpenScenario: o,
|
|
1810
|
+
view: a,
|
|
1811
|
+
onViewChange: i,
|
|
1812
|
+
handoff: d,
|
|
1813
|
+
showPorted: r = !1
|
|
1733
1814
|
}) {
|
|
1734
|
-
const
|
|
1735
|
-
return /* @__PURE__ */
|
|
1736
|
-
/* @__PURE__ */
|
|
1737
|
-
/* @__PURE__ */
|
|
1738
|
-
/* @__PURE__ */
|
|
1739
|
-
|
|
1740
|
-
/* @__PURE__ */
|
|
1741
|
-
/* @__PURE__ */
|
|
1742
|
-
|
|
1815
|
+
const n = P(), { product: c } = e, h = a ?? (r ? "ported" : "active"), u = { view: h, handoff: d }, g = e.coverage(u), f = e.activeScenarios(u).length, p = e.treeFor(u).filter((s) => s.scenarios.length > 0), b = e.orphansFor(u), S = e.byStatus("ported", { handoff: d }).length, _ = h === "ported" ? n.sidebar.portedReferences(S) : n.sidebar.activeWork;
|
|
1816
|
+
return /* @__PURE__ */ l("div", { className: "ds-chrome ds-home", children: [
|
|
1817
|
+
/* @__PURE__ */ l("header", { className: "ds-home__header", children: [
|
|
1818
|
+
/* @__PURE__ */ t("p", { className: "ds-home__view", "aria-live": "polite", children: _ }),
|
|
1819
|
+
/* @__PURE__ */ t("h1", { children: c.name }),
|
|
1820
|
+
c.tagline && /* @__PURE__ */ t("p", { className: "ds-home__tagline", children: c.tagline }),
|
|
1821
|
+
/* @__PURE__ */ t("p", { className: "ds-home__lead", children: n.home.lead(f) }),
|
|
1822
|
+
/* @__PURE__ */ t("div", { className: "ds-chips", children: Object.entries(g).filter(([, s]) => s > 0).map(([s, m]) => /* @__PURE__ */ l("span", { className: "ds-chip", children: [
|
|
1823
|
+
n.status[s],
|
|
1743
1824
|
": ",
|
|
1744
|
-
|
|
1745
|
-
] },
|
|
1746
|
-
|
|
1825
|
+
m
|
|
1826
|
+
] }, s)) }),
|
|
1827
|
+
f > 0 && h === "active" && S > 0 && /* @__PURE__ */ t(
|
|
1747
1828
|
"button",
|
|
1748
1829
|
{
|
|
1749
1830
|
type: "button",
|
|
1750
1831
|
className: "ds-text-action ds-home__view-action",
|
|
1751
|
-
onClick: () =>
|
|
1752
|
-
children:
|
|
1832
|
+
onClick: () => i?.("ported"),
|
|
1833
|
+
children: n.sidebar.viewPorted(S)
|
|
1753
1834
|
}
|
|
1754
1835
|
),
|
|
1755
|
-
|
|
1836
|
+
h === "ported" && /* @__PURE__ */ t(
|
|
1756
1837
|
"button",
|
|
1757
1838
|
{
|
|
1758
1839
|
type: "button",
|
|
1759
1840
|
className: "ds-text-action ds-home__view-action",
|
|
1760
|
-
onClick: () =>
|
|
1761
|
-
children:
|
|
1841
|
+
onClick: () => i?.("active"),
|
|
1842
|
+
children: n.sidebar.backToActive
|
|
1762
1843
|
}
|
|
1763
1844
|
)
|
|
1764
1845
|
] }),
|
|
1765
|
-
/* @__PURE__ */
|
|
1766
|
-
/* @__PURE__ */
|
|
1767
|
-
/* @__PURE__ */
|
|
1768
|
-
/* @__PURE__ */
|
|
1769
|
-
/* @__PURE__ */
|
|
1770
|
-
/* @__PURE__ */
|
|
1771
|
-
/* @__PURE__ */
|
|
1846
|
+
/* @__PURE__ */ l("section", { className: "ds-home__legend", "aria-labelledby": "ds-status-legend-title", children: [
|
|
1847
|
+
/* @__PURE__ */ t("h2", { id: "ds-status-legend-title", children: n.home.statusLegend }),
|
|
1848
|
+
/* @__PURE__ */ t("ul", { children: be.map((s) => /* @__PURE__ */ l("li", { children: [
|
|
1849
|
+
/* @__PURE__ */ t("span", { className: "ds-status-dot", "data-status": s, "aria-hidden": "true" }),
|
|
1850
|
+
/* @__PURE__ */ l("span", { children: [
|
|
1851
|
+
/* @__PURE__ */ t("strong", { children: n.status[s] }),
|
|
1852
|
+
/* @__PURE__ */ t("small", { children: n.statusMeaning[s] })
|
|
1772
1853
|
] })
|
|
1773
|
-
] },
|
|
1854
|
+
] }, s)) })
|
|
1774
1855
|
] }),
|
|
1775
|
-
|
|
1776
|
-
/* @__PURE__ */
|
|
1777
|
-
|
|
1856
|
+
f === 0 && /* @__PURE__ */ l("section", { className: "ds-home__empty", "aria-label": n.sidebar.currentView(_), children: [
|
|
1857
|
+
/* @__PURE__ */ t("p", { children: h === "ported" ? n.home.noPortedReferences : n.home.noActiveWork }),
|
|
1858
|
+
h === "active" && S > 0 && /* @__PURE__ */ t(
|
|
1778
1859
|
"button",
|
|
1779
1860
|
{
|
|
1780
1861
|
type: "button",
|
|
1781
1862
|
className: "ds-text-action",
|
|
1782
|
-
onClick: () =>
|
|
1783
|
-
children:
|
|
1863
|
+
onClick: () => i?.("ported"),
|
|
1864
|
+
children: n.sidebar.viewPorted(S)
|
|
1784
1865
|
}
|
|
1785
1866
|
)
|
|
1786
1867
|
] }),
|
|
1787
|
-
|
|
1788
|
-
|
|
1868
|
+
p.map(({ module: s, scenarios: m }) => /* @__PURE__ */ t(
|
|
1869
|
+
St,
|
|
1789
1870
|
{
|
|
1790
|
-
module:
|
|
1791
|
-
scenarios:
|
|
1871
|
+
module: s,
|
|
1872
|
+
scenarios: m,
|
|
1792
1873
|
registry: e,
|
|
1793
|
-
view:
|
|
1794
|
-
|
|
1874
|
+
view: h,
|
|
1875
|
+
handoff: d,
|
|
1876
|
+
onOpenScenario: o
|
|
1795
1877
|
},
|
|
1796
|
-
|
|
1878
|
+
s.id
|
|
1797
1879
|
)),
|
|
1798
|
-
|
|
1799
|
-
/* @__PURE__ */
|
|
1800
|
-
/* @__PURE__ */
|
|
1801
|
-
/* @__PURE__ */
|
|
1802
|
-
|
|
1880
|
+
b.length > 0 && /* @__PURE__ */ l("section", { className: "ds-home__module", children: [
|
|
1881
|
+
/* @__PURE__ */ t("h2", { children: n.home.withoutModule }),
|
|
1882
|
+
/* @__PURE__ */ t("p", { className: "ds-home__hint", children: n.home.withoutModuleHint }),
|
|
1883
|
+
/* @__PURE__ */ t(
|
|
1884
|
+
ke,
|
|
1803
1885
|
{
|
|
1804
|
-
scenarios:
|
|
1886
|
+
scenarios: b,
|
|
1805
1887
|
registry: e,
|
|
1806
|
-
onOpenScenario:
|
|
1888
|
+
onOpenScenario: o
|
|
1807
1889
|
}
|
|
1808
1890
|
)
|
|
1809
1891
|
] })
|
|
1810
1892
|
] });
|
|
1811
1893
|
}
|
|
1812
|
-
function
|
|
1894
|
+
function St({
|
|
1813
1895
|
module: e,
|
|
1814
|
-
scenarios:
|
|
1815
|
-
registry:
|
|
1816
|
-
view:
|
|
1817
|
-
|
|
1896
|
+
scenarios: o,
|
|
1897
|
+
registry: a,
|
|
1898
|
+
view: i,
|
|
1899
|
+
handoff: d,
|
|
1900
|
+
onOpenScenario: r
|
|
1818
1901
|
}) {
|
|
1819
|
-
return /* @__PURE__ */
|
|
1820
|
-
/* @__PURE__ */
|
|
1821
|
-
e.description && /* @__PURE__ */
|
|
1822
|
-
(e.flows ?? []).map((
|
|
1823
|
-
|
|
1902
|
+
return /* @__PURE__ */ l("section", { className: "ds-home__module", children: [
|
|
1903
|
+
/* @__PURE__ */ t("h2", { children: e.name }),
|
|
1904
|
+
e.description && /* @__PURE__ */ t("p", { className: "ds-home__hint", children: e.description }),
|
|
1905
|
+
(e.flows ?? []).map((n) => /* @__PURE__ */ t(
|
|
1906
|
+
xt,
|
|
1824
1907
|
{
|
|
1825
|
-
flow:
|
|
1826
|
-
registry:
|
|
1827
|
-
view:
|
|
1828
|
-
|
|
1908
|
+
flow: n,
|
|
1909
|
+
registry: a,
|
|
1910
|
+
view: i,
|
|
1911
|
+
handoff: d,
|
|
1912
|
+
onOpenScenario: r
|
|
1829
1913
|
},
|
|
1830
|
-
|
|
1914
|
+
n.id
|
|
1831
1915
|
)),
|
|
1832
|
-
/* @__PURE__ */
|
|
1916
|
+
/* @__PURE__ */ t(ke, { scenarios: o, registry: a, onOpenScenario: r })
|
|
1833
1917
|
] });
|
|
1834
1918
|
}
|
|
1835
|
-
function
|
|
1919
|
+
function xt({
|
|
1836
1920
|
flow: e,
|
|
1837
|
-
registry:
|
|
1838
|
-
view:
|
|
1839
|
-
|
|
1921
|
+
registry: o,
|
|
1922
|
+
view: a,
|
|
1923
|
+
handoff: i,
|
|
1924
|
+
onOpenScenario: d
|
|
1840
1925
|
}) {
|
|
1841
|
-
const
|
|
1842
|
-
const
|
|
1843
|
-
return
|
|
1926
|
+
const r = e.steps.filter((n) => {
|
|
1927
|
+
const c = o.scenario(n.scenario);
|
|
1928
|
+
return c && (!i || i.scenarios?.includes(c.id)) && (a === "ported" ? c.status === "ported" : c.status !== "ported");
|
|
1844
1929
|
});
|
|
1845
|
-
return
|
|
1846
|
-
/* @__PURE__ */
|
|
1847
|
-
e.description && /* @__PURE__ */
|
|
1848
|
-
/* @__PURE__ */
|
|
1849
|
-
const
|
|
1850
|
-
const
|
|
1851
|
-
return
|
|
1930
|
+
return r.length === 0 ? null : /* @__PURE__ */ l("div", { className: "ds-flow", children: [
|
|
1931
|
+
/* @__PURE__ */ t("h3", { children: e.title }),
|
|
1932
|
+
e.description && /* @__PURE__ */ t("p", { className: "ds-home__hint", children: e.description }),
|
|
1933
|
+
/* @__PURE__ */ t("ol", { className: "ds-flow__steps", children: r.map((n, c) => {
|
|
1934
|
+
const h = o.scenario(n.scenario), u = Object.entries(n.branches ?? {}).filter(([, g]) => {
|
|
1935
|
+
const f = o.scenario(g);
|
|
1936
|
+
return f && (!i || i.scenarios?.includes(f.id)) && (a === "ported" ? f.status === "ported" : f.status !== "ported");
|
|
1852
1937
|
});
|
|
1853
|
-
return /* @__PURE__ */
|
|
1854
|
-
/* @__PURE__ */
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
/* @__PURE__ */
|
|
1858
|
-
/* @__PURE__ */
|
|
1938
|
+
return /* @__PURE__ */ l("li", { children: [
|
|
1939
|
+
/* @__PURE__ */ t("button", { type: "button", className: "ds-flow__step", onClick: () => d(n.scenario), children: n.label ?? h?.title ?? n.scenario }),
|
|
1940
|
+
n.decision && /* @__PURE__ */ t("p", { className: "ds-flow__decision", children: n.decision }),
|
|
1941
|
+
u.length > 0 && /* @__PURE__ */ t("ul", { className: "ds-flow__branches", children: u.map(([g, f]) => /* @__PURE__ */ l("li", { children: [
|
|
1942
|
+
/* @__PURE__ */ t("span", { className: "ds-flow__branch-label", children: g }),
|
|
1943
|
+
/* @__PURE__ */ t(
|
|
1859
1944
|
"button",
|
|
1860
1945
|
{
|
|
1861
1946
|
type: "button",
|
|
1862
1947
|
className: "ds-flow__step",
|
|
1863
|
-
onClick: () =>
|
|
1864
|
-
children:
|
|
1948
|
+
onClick: () => d(f),
|
|
1949
|
+
children: o.scenario(f)?.title ?? f
|
|
1865
1950
|
}
|
|
1866
1951
|
)
|
|
1867
|
-
] },
|
|
1868
|
-
] }, `${
|
|
1952
|
+
] }, g)) })
|
|
1953
|
+
] }, `${n.scenario}-${c}`);
|
|
1869
1954
|
}) })
|
|
1870
1955
|
] });
|
|
1871
1956
|
}
|
|
1872
|
-
function
|
|
1957
|
+
function ke({
|
|
1873
1958
|
scenarios: e,
|
|
1874
|
-
registry:
|
|
1875
|
-
onOpenScenario:
|
|
1959
|
+
registry: o,
|
|
1960
|
+
onOpenScenario: a
|
|
1876
1961
|
}) {
|
|
1877
|
-
const
|
|
1878
|
-
return /* @__PURE__ */
|
|
1879
|
-
/* @__PURE__ */
|
|
1880
|
-
/* @__PURE__ */
|
|
1881
|
-
|
|
1962
|
+
const i = P();
|
|
1963
|
+
return /* @__PURE__ */ t("ul", { className: "ds-home__grid", children: e.map((d) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ l("button", { type: "button", className: "ds-home__card", onClick: () => a(d.id), children: [
|
|
1964
|
+
/* @__PURE__ */ l("span", { className: "ds-home__card-head", children: [
|
|
1965
|
+
/* @__PURE__ */ t(
|
|
1966
|
+
"span",
|
|
1967
|
+
{
|
|
1968
|
+
className: "ds-status-dot",
|
|
1969
|
+
"data-status": d.status,
|
|
1970
|
+
"data-approval": d.status === "approved" && !d.approvedAt ? "incomplete" : void 0
|
|
1971
|
+
}
|
|
1972
|
+
),
|
|
1973
|
+
/* @__PURE__ */ t("span", { className: "ds-home__card-title", children: d.title })
|
|
1882
1974
|
] }),
|
|
1883
|
-
|
|
1884
|
-
/* @__PURE__ */
|
|
1885
|
-
|
|
1975
|
+
d.intent && /* @__PURE__ */ t("span", { className: "ds-home__card-intent", children: d.intent }),
|
|
1976
|
+
/* @__PURE__ */ l("span", { className: "ds-home__card-meta", children: [
|
|
1977
|
+
o.persona(d.persona)?.name ?? d.persona,
|
|
1886
1978
|
" · ",
|
|
1887
|
-
|
|
1888
|
-
|
|
1979
|
+
d.status === "approved" && !d.approvedAt ? i.inspector.approvalPendingStatus : i.status[d.status],
|
|
1980
|
+
d.a11y.keyboard === "full" ? ` · ${i.home.keyboardBadge}` : ""
|
|
1889
1981
|
] })
|
|
1890
|
-
] }) },
|
|
1982
|
+
] }) }, d.id)) });
|
|
1891
1983
|
}
|
|
1892
|
-
function
|
|
1893
|
-
const
|
|
1894
|
-
location:
|
|
1895
|
-
controls:
|
|
1896
|
-
viewport:
|
|
1984
|
+
function $t({ product: e }) {
|
|
1985
|
+
const o = T(() => Le(e), [e]), a = T(() => tt(e.theme?.labels), [e.theme?.labels]), i = T(() => Te(e.deploy), [e.deploy]), {
|
|
1986
|
+
location: d,
|
|
1987
|
+
controls: r,
|
|
1988
|
+
viewport: n,
|
|
1897
1989
|
setControls: c,
|
|
1898
1990
|
setScenarioView: h,
|
|
1899
|
-
navigate:
|
|
1900
|
-
openScenario:
|
|
1901
|
-
openComponent:
|
|
1902
|
-
} =
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
const
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1991
|
+
navigate: u,
|
|
1992
|
+
openScenario: g,
|
|
1993
|
+
openComponent: f
|
|
1994
|
+
} = Ee(o), p = ce(r), b = re(null), { focused: S, tabStops: _ } = et(r.keyboardMode, b);
|
|
1995
|
+
D(() => {
|
|
1996
|
+
const N = b.current;
|
|
1997
|
+
if (!N || !r.handoff) return;
|
|
1998
|
+
const C = () => {
|
|
1999
|
+
for (const de of N.querySelectorAll("a[href]")) {
|
|
2000
|
+
const Q = de.getAttribute("href");
|
|
2001
|
+
if (!Q || Q.startsWith("#")) continue;
|
|
2002
|
+
let W;
|
|
2003
|
+
try {
|
|
2004
|
+
W = new URL(Q, window.location.href);
|
|
2005
|
+
} catch {
|
|
2006
|
+
continue;
|
|
2007
|
+
}
|
|
2008
|
+
if (W.origin !== window.location.origin) continue;
|
|
2009
|
+
oe(W.searchParams, r.handoff);
|
|
2010
|
+
const le = `${W.pathname}${W.search}${W.hash}`;
|
|
2011
|
+
Q !== le && de.setAttribute("href", le);
|
|
2012
|
+
}
|
|
2013
|
+
};
|
|
2014
|
+
C();
|
|
2015
|
+
const ae = new MutationObserver(C);
|
|
2016
|
+
return ae.observe(N, {
|
|
2017
|
+
subtree: !0,
|
|
2018
|
+
childList: !0,
|
|
2019
|
+
attributes: !0,
|
|
2020
|
+
attributeFilter: ["href"]
|
|
2021
|
+
}), () => ae.disconnect();
|
|
2022
|
+
}, [r.handoff]);
|
|
2023
|
+
const s = o.scenario(r.scenario), m = o.component(r.component), k = T(() => {
|
|
2024
|
+
const N = new URLSearchParams(d.search);
|
|
2025
|
+
return {
|
|
2026
|
+
scenario: N.get(w.scenario) ?? void 0,
|
|
2027
|
+
component: N.get(w.component) ?? void 0
|
|
2028
|
+
};
|
|
2029
|
+
}, [d.search]), M = !!(r.handoff && (k.scenario && !te(r.handoff, k.scenario) || k.component && !ee(r.handoff, k.component) || !k.component && !Ae(
|
|
2030
|
+
r.handoff,
|
|
2031
|
+
d.path,
|
|
2032
|
+
e.scenarios
|
|
2033
|
+
))), y = T(
|
|
2034
|
+
() => o.resolveComponentFixture(m?.id, m ? r.fixture : void 0),
|
|
2035
|
+
[m, r.fixture, o]
|
|
2036
|
+
), E = T(() => {
|
|
2037
|
+
const N = y.fixture?.data;
|
|
2038
|
+
return typeof N == "function" ? N() : N;
|
|
2039
|
+
}, [y.fixture]), $ = o.persona(r.persona ?? s?.persona), O = o.fixture(r.fixture ?? s?.fixture), G = T(() => {
|
|
2040
|
+
const N = r.dataSource ?? "fixtures";
|
|
2041
|
+
return N === "fixtures" ? ie : e.dataSources?.adapters?.find((C) => C.id === N) ?? ie;
|
|
2042
|
+
}, [r.dataSource, e.dataSources?.adapters]), { data: I, isLoading: B, error: U } = ze({ scenario: s, fixture: O, network: r.network, adapter: G });
|
|
2043
|
+
D(() => {
|
|
2044
|
+
const N = (C) => {
|
|
2045
|
+
if (!(!C.shiftKey || C.metaKey || C.ctrlKey || C.altKey || C.target?.matches("input, textarea, select, [contenteditable='true']"))) {
|
|
2046
|
+
switch (C.key) {
|
|
1916
2047
|
case "K":
|
|
1917
|
-
c({ keyboardMode: !
|
|
2048
|
+
c({ keyboardMode: !r.keyboardMode });
|
|
1918
2049
|
break;
|
|
1919
2050
|
case "P":
|
|
1920
|
-
c({ inspector: !
|
|
2051
|
+
c({ inspector: !r.inspector });
|
|
1921
2052
|
break;
|
|
1922
2053
|
default:
|
|
1923
2054
|
return;
|
|
1924
2055
|
}
|
|
1925
|
-
|
|
2056
|
+
C.preventDefault();
|
|
1926
2057
|
}
|
|
1927
2058
|
};
|
|
1928
|
-
return window.addEventListener("keydown",
|
|
1929
|
-
}, [
|
|
1930
|
-
const
|
|
2059
|
+
return window.addEventListener("keydown", N), () => window.removeEventListener("keydown", N);
|
|
2060
|
+
}, [r.keyboardMode, r.inspector, c]);
|
|
2061
|
+
const H = T(() => r.persona && r.persona !== s?.persona ? o.persona(r.persona)?.permissions ?? [] : o.permissionsOf(s), [r.persona, o, s]), j = T(
|
|
1931
2062
|
() => ({
|
|
1932
|
-
scenario:
|
|
1933
|
-
persona:
|
|
1934
|
-
permissions:
|
|
1935
|
-
can: (
|
|
1936
|
-
data:
|
|
1937
|
-
fixture:
|
|
1938
|
-
network:
|
|
1939
|
-
isLoading:
|
|
1940
|
-
error:
|
|
1941
|
-
rules:
|
|
1942
|
-
viewport:
|
|
1943
|
-
themeMode:
|
|
1944
|
-
locale:
|
|
2063
|
+
scenario: s,
|
|
2064
|
+
persona: $,
|
|
2065
|
+
permissions: H,
|
|
2066
|
+
can: (N) => H.includes(N),
|
|
2067
|
+
data: I,
|
|
2068
|
+
fixture: O,
|
|
2069
|
+
network: r.network,
|
|
2070
|
+
isLoading: B,
|
|
2071
|
+
error: U,
|
|
2072
|
+
rules: o.rulesOf(s),
|
|
2073
|
+
viewport: n,
|
|
2074
|
+
themeMode: r.themeMode,
|
|
2075
|
+
locale: r.locale,
|
|
1945
2076
|
a11y: {
|
|
1946
|
-
keyboardMode:
|
|
1947
|
-
reducedMotion:
|
|
1948
|
-
textScale:
|
|
2077
|
+
keyboardMode: r.keyboardMode,
|
|
2078
|
+
reducedMotion: r.reducedMotion,
|
|
2079
|
+
textScale: r.textScale
|
|
1949
2080
|
},
|
|
1950
|
-
navigate:
|
|
1951
|
-
openScenario:
|
|
2081
|
+
navigate: u,
|
|
2082
|
+
openScenario: g
|
|
1952
2083
|
}),
|
|
1953
2084
|
[
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
2085
|
+
s,
|
|
2086
|
+
$,
|
|
2087
|
+
H,
|
|
2088
|
+
I,
|
|
2089
|
+
O,
|
|
2090
|
+
r.network,
|
|
2091
|
+
r.themeMode,
|
|
2092
|
+
r.locale,
|
|
2093
|
+
r.keyboardMode,
|
|
2094
|
+
r.reducedMotion,
|
|
2095
|
+
r.textScale,
|
|
2096
|
+
B,
|
|
2097
|
+
U,
|
|
2098
|
+
o,
|
|
2099
|
+
n,
|
|
2100
|
+
u,
|
|
2101
|
+
g
|
|
1971
2102
|
]
|
|
1972
|
-
),
|
|
1973
|
-
|
|
2103
|
+
), Y = !M && !s && !m && d.path === "/", K = Pe(e.routes, d.path), V = e.wrapper, q = e.notFound, J = m?.preview, v = M ? /* @__PURE__ */ t(fe, { title: a.shell.outsideHandoff, children: /* @__PURE__ */ t("p", { children: a.shell.outsideHandoffHint }) }) : J ? /* @__PURE__ */ t(
|
|
2104
|
+
J,
|
|
1974
2105
|
{
|
|
1975
|
-
fixture:
|
|
1976
|
-
data:
|
|
1977
|
-
viewport:
|
|
1978
|
-
themeMode:
|
|
1979
|
-
locale:
|
|
2106
|
+
fixture: y.fixture,
|
|
2107
|
+
data: E,
|
|
2108
|
+
viewport: n,
|
|
2109
|
+
themeMode: r.themeMode ?? "default",
|
|
2110
|
+
locale: r.locale ?? "default",
|
|
1980
2111
|
a11y: {
|
|
1981
|
-
keyboardMode:
|
|
1982
|
-
reducedMotion:
|
|
1983
|
-
textScale:
|
|
2112
|
+
keyboardMode: r.keyboardMode,
|
|
2113
|
+
reducedMotion: r.reducedMotion,
|
|
2114
|
+
textScale: r.textScale
|
|
1984
2115
|
}
|
|
1985
2116
|
}
|
|
1986
|
-
) :
|
|
1987
|
-
/* @__PURE__ */
|
|
2117
|
+
) : K ? /* @__PURE__ */ t(K.definition.screen, { params: K.params, context: j }) : q ? /* @__PURE__ */ t(q, { path: d.path }) : /* @__PURE__ */ t(fe, { title: a.shell.noRoute, children: /* @__PURE__ */ l("p", { children: [
|
|
2118
|
+
/* @__PURE__ */ t("code", { children: d.path }),
|
|
1988
2119
|
" ",
|
|
1989
|
-
|
|
1990
|
-
] }) }),
|
|
1991
|
-
return /* @__PURE__ */
|
|
2120
|
+
a.shell.noRouteHint
|
|
2121
|
+
] }) }), x = V && !M ? /* @__PURE__ */ t(V, { context: j, children: v }) : v;
|
|
2122
|
+
return /* @__PURE__ */ t(we.Provider, { value: a, children: /* @__PURE__ */ l(
|
|
1992
2123
|
"div",
|
|
1993
2124
|
{
|
|
1994
2125
|
className: "ds-root",
|
|
1995
|
-
"data-chrome":
|
|
1996
|
-
"data-appearance":
|
|
1997
|
-
"data-inspector":
|
|
1998
|
-
"data-viewport":
|
|
2126
|
+
"data-chrome": r.chrome ? "visible" : "hidden",
|
|
2127
|
+
"data-appearance": r.chromeTheme ?? "dark",
|
|
2128
|
+
"data-inspector": r.inspector ? "open" : "closed",
|
|
2129
|
+
"data-viewport": n.id,
|
|
1999
2130
|
children: [
|
|
2000
|
-
|
|
2001
|
-
|
|
2131
|
+
r.chrome && /* @__PURE__ */ t(
|
|
2132
|
+
it,
|
|
2002
2133
|
{
|
|
2003
2134
|
product: e,
|
|
2004
|
-
scenario:
|
|
2005
|
-
deploy:
|
|
2006
|
-
inspectorOpen:
|
|
2007
|
-
chromeTheme:
|
|
2008
|
-
view:
|
|
2009
|
-
|
|
2010
|
-
|
|
2135
|
+
scenario: s,
|
|
2136
|
+
deploy: i,
|
|
2137
|
+
inspectorOpen: r.inspector,
|
|
2138
|
+
chromeTheme: r.chromeTheme ?? "dark",
|
|
2139
|
+
view: p,
|
|
2140
|
+
handoff: r.handoff,
|
|
2141
|
+
onToggleInspector: () => c({ inspector: !r.inspector }),
|
|
2142
|
+
onToggleChromeTheme: () => c({ chromeTheme: r.chromeTheme === "light" ? "dark" : "light" })
|
|
2011
2143
|
}
|
|
2012
2144
|
),
|
|
2013
|
-
|
|
2014
|
-
|
|
2145
|
+
r.chrome && /* @__PURE__ */ t(
|
|
2146
|
+
ot,
|
|
2015
2147
|
{
|
|
2016
|
-
registry:
|
|
2017
|
-
activeScenario:
|
|
2018
|
-
activeComponent:
|
|
2019
|
-
controls:
|
|
2020
|
-
onOpenScenario:
|
|
2021
|
-
onOpenComponent:
|
|
2148
|
+
registry: o,
|
|
2149
|
+
activeScenario: s,
|
|
2150
|
+
activeComponent: r.component,
|
|
2151
|
+
controls: r,
|
|
2152
|
+
onOpenScenario: g,
|
|
2153
|
+
onOpenComponent: f,
|
|
2022
2154
|
onViewChange: h
|
|
2023
2155
|
}
|
|
2024
2156
|
),
|
|
2025
|
-
/* @__PURE__ */
|
|
2026
|
-
|
|
2027
|
-
|
|
2157
|
+
/* @__PURE__ */ l("div", { className: "ds-stage-area", children: [
|
|
2158
|
+
Y ? /* @__PURE__ */ t("div", { className: "ds-stage-scroll", children: /* @__PURE__ */ t(
|
|
2159
|
+
Nt,
|
|
2028
2160
|
{
|
|
2029
|
-
registry:
|
|
2030
|
-
view:
|
|
2161
|
+
registry: o,
|
|
2162
|
+
view: p,
|
|
2163
|
+
handoff: r.handoff,
|
|
2031
2164
|
onViewChange: h,
|
|
2032
|
-
onOpenScenario:
|
|
2165
|
+
onOpenScenario: g
|
|
2033
2166
|
}
|
|
2034
|
-
) }) : /* @__PURE__ */
|
|
2035
|
-
|
|
2167
|
+
) }) : /* @__PURE__ */ t(
|
|
2168
|
+
wt,
|
|
2036
2169
|
{
|
|
2037
|
-
ref:
|
|
2038
|
-
viewport:
|
|
2039
|
-
textScale:
|
|
2040
|
-
reducedMotion:
|
|
2041
|
-
keyboardMode:
|
|
2042
|
-
children:
|
|
2170
|
+
ref: b,
|
|
2171
|
+
viewport: n,
|
|
2172
|
+
textScale: r.textScale,
|
|
2173
|
+
reducedMotion: r.reducedMotion,
|
|
2174
|
+
keyboardMode: r.keyboardMode,
|
|
2175
|
+
children: x
|
|
2043
2176
|
}
|
|
2044
2177
|
),
|
|
2045
|
-
|
|
2046
|
-
|
|
2178
|
+
r.chrome && /* @__PURE__ */ t(
|
|
2179
|
+
pt,
|
|
2047
2180
|
{
|
|
2048
|
-
registry:
|
|
2049
|
-
controls:
|
|
2050
|
-
scenarioActive: !!
|
|
2051
|
-
component:
|
|
2052
|
-
componentFixture:
|
|
2181
|
+
registry: o,
|
|
2182
|
+
controls: r,
|
|
2183
|
+
scenarioActive: !!s,
|
|
2184
|
+
component: m,
|
|
2185
|
+
componentFixture: y,
|
|
2053
2186
|
onChange: c
|
|
2054
2187
|
}
|
|
2055
2188
|
)
|
|
2056
2189
|
] }),
|
|
2057
|
-
|
|
2058
|
-
|
|
2190
|
+
r.chrome && /* @__PURE__ */ t(
|
|
2191
|
+
ht,
|
|
2059
2192
|
{
|
|
2060
|
-
registry:
|
|
2061
|
-
scenario:
|
|
2062
|
-
component:
|
|
2063
|
-
componentFixture:
|
|
2064
|
-
controls:
|
|
2065
|
-
focusedNode:
|
|
2066
|
-
tabStopCount:
|
|
2193
|
+
registry: o,
|
|
2194
|
+
scenario: s,
|
|
2195
|
+
component: m,
|
|
2196
|
+
componentFixture: y,
|
|
2197
|
+
controls: r,
|
|
2198
|
+
focusedNode: S,
|
|
2199
|
+
tabStopCount: _.length
|
|
2067
2200
|
}
|
|
2068
2201
|
),
|
|
2069
|
-
|
|
2070
|
-
!
|
|
2202
|
+
r.keyboardMode && /* @__PURE__ */ t(kt, { stops: _ }),
|
|
2203
|
+
!r.chrome && /* @__PURE__ */ t(
|
|
2071
2204
|
"button",
|
|
2072
2205
|
{
|
|
2073
2206
|
type: "button",
|
|
2074
2207
|
className: "ds-chrome ds-restore",
|
|
2075
2208
|
onClick: () => c({ chrome: !0 }),
|
|
2076
|
-
children:
|
|
2209
|
+
children: a.shell.restoreChrome
|
|
2077
2210
|
}
|
|
2078
2211
|
)
|
|
2079
2212
|
]
|
|
2080
2213
|
}
|
|
2081
2214
|
) });
|
|
2082
2215
|
}
|
|
2083
|
-
function
|
|
2216
|
+
function Z(e) {
|
|
2084
2217
|
return new Date(e.length === 10 ? `${e}T00:00:00` : e);
|
|
2085
2218
|
}
|
|
2086
|
-
function
|
|
2087
|
-
const
|
|
2088
|
-
let
|
|
2089
|
-
const
|
|
2090
|
-
return (
|
|
2219
|
+
function Et(e, o) {
|
|
2220
|
+
const a = Z(e), i = Z(o);
|
|
2221
|
+
let d = i.getFullYear() - a.getFullYear();
|
|
2222
|
+
const r = i.getMonth() - a.getMonth();
|
|
2223
|
+
return (r < 0 || r === 0 && i.getDate() < a.getDate()) && (d -= 1), d;
|
|
2091
2224
|
}
|
|
2092
|
-
function
|
|
2093
|
-
const
|
|
2094
|
-
return Math.floor((
|
|
2225
|
+
function Rt(e, o) {
|
|
2226
|
+
const a = Z(e), i = Z(o);
|
|
2227
|
+
return Math.floor((i.getTime() - a.getTime()) / 864e5);
|
|
2095
2228
|
}
|
|
2096
2229
|
export {
|
|
2097
|
-
|
|
2230
|
+
It as CONTRAST_THRESHOLDS,
|
|
2098
2231
|
L as DEFAULT_LABELS,
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2232
|
+
$t as DesignSpace,
|
|
2233
|
+
Tt as EN_US_LABELS,
|
|
2234
|
+
Bt as HANDOFF_PARAM,
|
|
2235
|
+
Nt as Home,
|
|
2236
|
+
Ft as KEYBOARD_LABELS,
|
|
2237
|
+
Lt as NETWORK_LABELS,
|
|
2238
|
+
ve as NETWORK_STATES,
|
|
2239
|
+
w as PARAM,
|
|
2240
|
+
be as SCENARIO_STATUSES,
|
|
2241
|
+
Be as SLOW_NETWORK_DELAY_MS,
|
|
2242
|
+
At as STATUS_LABELS,
|
|
2243
|
+
Pt as STATUS_MEANING,
|
|
2244
|
+
He as SimulatedNetworkError,
|
|
2245
|
+
wt as Stage,
|
|
2246
|
+
fe as StageEmpty,
|
|
2247
|
+
Fe as TEXT_SCALES,
|
|
2248
|
+
kt as TabOrderOverlay,
|
|
2249
|
+
ge as VIEWPORTS,
|
|
2250
|
+
Et as ageInYears,
|
|
2251
|
+
oe as applyHandoffScope,
|
|
2252
|
+
Ht as applyOverrides,
|
|
2253
|
+
Wt as assertContrastPairs,
|
|
2254
|
+
zt as checkContrastPair,
|
|
2255
|
+
Ce as checkContrastPairs,
|
|
2256
|
+
Ut as commitUrl,
|
|
2257
|
+
jt as componentUrl,
|
|
2258
|
+
Ve as computeRole,
|
|
2259
|
+
Kt as contrastRatio,
|
|
2260
|
+
Ct as createHttpAdapter,
|
|
2261
|
+
Le as createRegistry,
|
|
2262
|
+
Rt as daysBetween,
|
|
2263
|
+
Ke as describeElement,
|
|
2264
|
+
ie as fixtureAdapter,
|
|
2265
|
+
Vt as flatten,
|
|
2266
|
+
qt as formatIssues,
|
|
2267
|
+
Te as getDeployContext,
|
|
2268
|
+
ee as handoffAllowsComponent,
|
|
2269
|
+
Ae as handoffAllowsPath,
|
|
2270
|
+
te as handoffAllowsScenario,
|
|
2271
|
+
Gt as hasErrors,
|
|
2272
|
+
Yt as matchPath,
|
|
2273
|
+
Jt as normalizeHandoffScope,
|
|
2274
|
+
Qt as parseColor,
|
|
2275
|
+
$e as parseControls,
|
|
2276
|
+
_e as parseHandoffScope,
|
|
2277
|
+
Z as parseIsoDate,
|
|
2278
|
+
Xt as readCssVariable,
|
|
2279
|
+
Zt as relativeLuminance,
|
|
2280
|
+
se as resolveFixture,
|
|
2281
|
+
tt as resolveLabels,
|
|
2282
|
+
Pe as resolveRoute,
|
|
2283
|
+
Re as resolveViewport,
|
|
2284
|
+
Me as scenarioUrl,
|
|
2285
|
+
X as serializeControls,
|
|
2286
|
+
eo as serializeValue,
|
|
2287
|
+
Xe as shortSelector,
|
|
2288
|
+
Ze as tabbableElements,
|
|
2289
|
+
Ee as useDesignSpaceState,
|
|
2290
|
+
et as useKeyboardMode,
|
|
2151
2291
|
P as useLabels,
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2292
|
+
ze as useScenarioData,
|
|
2293
|
+
ye as validateProduct,
|
|
2294
|
+
to as validateScenario
|
|
2155
2295
|
};
|
|
2156
2296
|
//# sourceMappingURL=index.js.map
|