@brucesantos/design-space 0.5.0 → 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 +41 -0
- package/README.md +69 -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 +1268 -1116
- 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 +15 -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 r =
|
|
127
|
-
e.locale && e.locale !== r &&
|
|
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
|
-
}, []), r =
|
|
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:
|
|
214
|
+
location: o,
|
|
215
|
+
controls: i,
|
|
216
|
+
viewport: g,
|
|
211
217
|
setControls: r,
|
|
212
|
-
setScenarioView:
|
|
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 [r, a] of n.entries()) {
|
|
242
|
-
if (a === "*")
|
|
243
|
-
return l["*"] = s.slice(r).join("/"), l;
|
|
244
|
-
const c = s[r];
|
|
245
|
-
if (c === void 0) return null;
|
|
246
|
-
if (a.startsWith(":")) {
|
|
247
|
-
l[a.slice(1)] = c;
|
|
248
|
-
continue;
|
|
249
|
-
}
|
|
250
|
-
if (a !== c) return null;
|
|
251
|
-
}
|
|
252
|
-
return n.length !== s.length ? null : l;
|
|
253
|
-
}
|
|
254
|
-
function Ce(e, t) {
|
|
255
|
-
const n = [...e].sort((s, l) => ne(l.path) - ne(s.path));
|
|
256
|
-
for (const s of n) {
|
|
257
|
-
const l = Me(s.path, t);
|
|
258
|
-
if (l) return { definition: s, params: l };
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
function ne(e) {
|
|
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;
|
|
242
|
+
const o = Number.parseInt(e, 10);
|
|
243
|
+
return Number.isFinite(o) && o > 0 ? o : void 0;
|
|
267
244
|
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
} catch {
|
|
273
|
-
return t;
|
|
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";
|
|
274
249
|
}
|
|
275
250
|
}
|
|
276
|
-
|
|
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 r = e.getAttribute(
|
|
456
|
-
r !== null && r !== "false" &&
|
|
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
475
|
r(
|
|
507
|
-
|
|
508
|
-
index:
|
|
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,10 +662,12 @@ 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"}.`,
|
|
670
|
+
statusLegend: "Legenda dos status",
|
|
689
671
|
withoutModule: "Sem módulo",
|
|
690
672
|
withoutModuleHint: "O prefixo do id não corresponde a nenhum módulo registrado, então estas situações não aparecem na navegação por módulo.",
|
|
691
673
|
emptyModule: "Nenhuma situação registrada neste módulo ainda.",
|
|
@@ -696,9 +678,11 @@ const L = {
|
|
|
696
678
|
shell: {
|
|
697
679
|
restoreChrome: "Mostrar controles",
|
|
698
680
|
noRoute: "Nenhuma rota para este endereço",
|
|
699
|
-
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."
|
|
700
684
|
}
|
|
701
|
-
},
|
|
685
|
+
}, Tt = {
|
|
702
686
|
status: {
|
|
703
687
|
ported: "Ported — not validated",
|
|
704
688
|
proposed: "Proposed",
|
|
@@ -812,7 +796,15 @@ const L = {
|
|
|
812
796
|
componentGroup: "Group",
|
|
813
797
|
componentFixture: "Active fixture",
|
|
814
798
|
componentFixtureDescription: "Fixture description",
|
|
815
|
-
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.",
|
|
816
808
|
situation: "State",
|
|
817
809
|
reproduction: "Reproduction",
|
|
818
810
|
id: "ID",
|
|
@@ -828,6 +820,9 @@ const L = {
|
|
|
828
820
|
actions: "Available actions",
|
|
829
821
|
expected: "Acceptance criteria",
|
|
830
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.",
|
|
831
826
|
openApproved: "Open approved version",
|
|
832
827
|
engineering: "Engineering",
|
|
833
828
|
a11yContract: "Scenario contract",
|
|
@@ -855,10 +850,12 @@ const L = {
|
|
|
855
850
|
coverage: "Coverage by status",
|
|
856
851
|
scenariosRegistered: (e) => `${e} ${e === 1 ? "scenario" : "scenarios"} registered.`,
|
|
857
852
|
scenarioContract: "Scenario contract",
|
|
858
|
-
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."
|
|
859
855
|
},
|
|
860
856
|
home: {
|
|
861
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"}.`,
|
|
858
|
+
statusLegend: "Status legend",
|
|
862
859
|
withoutModule: "No module",
|
|
863
860
|
withoutModuleHint: "The ID prefix does not match a registered module, so these states do not appear in module navigation.",
|
|
864
861
|
emptyModule: "No states have been registered in this module yet.",
|
|
@@ -869,370 +866,383 @@ const L = {
|
|
|
869
866
|
shell: {
|
|
870
867
|
restoreChrome: "Show controls",
|
|
871
868
|
noRoute: "No route for this address",
|
|
872
|
-
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."
|
|
873
872
|
}
|
|
874
873
|
};
|
|
875
|
-
function
|
|
874
|
+
function tt(e) {
|
|
876
875
|
if (!e) return L;
|
|
877
|
-
const
|
|
878
|
-
for (const
|
|
879
|
-
const
|
|
880
|
-
|
|
876
|
+
const o = { ...L };
|
|
877
|
+
for (const a of Object.keys(L)) {
|
|
878
|
+
const i = e[a];
|
|
879
|
+
i && (o[a] = { ...L[a], ...i });
|
|
881
880
|
}
|
|
882
|
-
return
|
|
881
|
+
return o;
|
|
883
882
|
}
|
|
884
|
-
const
|
|
883
|
+
const we = Se(L);
|
|
885
884
|
function P() {
|
|
886
|
-
return
|
|
885
|
+
return Ne(we);
|
|
887
886
|
}
|
|
888
|
-
const
|
|
889
|
-
function
|
|
887
|
+
const At = L.status, Pt = L.statusMeaning, Lt = L.network, Ft = L.keyboard;
|
|
888
|
+
function ot({
|
|
890
889
|
registry: e,
|
|
891
|
-
activeScenario:
|
|
892
|
-
activeComponent:
|
|
893
|
-
controls:
|
|
894
|
-
onOpenScenario:
|
|
890
|
+
activeScenario: o,
|
|
891
|
+
activeComponent: a,
|
|
892
|
+
controls: i,
|
|
893
|
+
onOpenScenario: d,
|
|
895
894
|
onOpenComponent: r,
|
|
896
|
-
onViewChange:
|
|
895
|
+
onViewChange: n
|
|
897
896
|
}) {
|
|
898
|
-
const c = P(), [h,
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
}, [
|
|
902
|
-
const
|
|
903
|
-
|
|
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());
|
|
904
903
|
};
|
|
905
|
-
return window.addEventListener("keydown",
|
|
904
|
+
return window.addEventListener("keydown", v), () => window.removeEventListener("keydown", v);
|
|
906
905
|
}, []);
|
|
907
|
-
const
|
|
908
|
-
if (
|
|
906
|
+
const E = T(() => {
|
|
907
|
+
if (g.trim())
|
|
909
908
|
return new Set(
|
|
910
|
-
e.search(
|
|
909
|
+
e.search(g, { view: s, handoff: m }).map((v) => v.id)
|
|
911
910
|
);
|
|
912
|
-
}, [m, e,
|
|
913
|
-
const
|
|
914
|
-
return
|
|
915
|
-
(
|
|
916
|
-
|
|
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
|
|
917
916
|
)
|
|
918
917
|
);
|
|
919
|
-
}, [m, e
|
|
920
|
-
view:
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
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;
|
|
934
934
|
});
|
|
935
|
-
return /* @__PURE__ */
|
|
936
|
-
/* @__PURE__ */
|
|
937
|
-
/* @__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(
|
|
938
938
|
"button",
|
|
939
939
|
{
|
|
940
940
|
type: "button",
|
|
941
941
|
role: "tab",
|
|
942
942
|
"aria-selected": h === "flows",
|
|
943
943
|
onClick: () => {
|
|
944
|
-
|
|
944
|
+
u("flows"), f("");
|
|
945
945
|
},
|
|
946
946
|
children: c.sidebar.flowsTab
|
|
947
947
|
}
|
|
948
948
|
),
|
|
949
|
-
/* @__PURE__ */
|
|
949
|
+
/* @__PURE__ */ t(
|
|
950
950
|
"button",
|
|
951
951
|
{
|
|
952
952
|
type: "button",
|
|
953
953
|
role: "tab",
|
|
954
954
|
"aria-selected": h === "components",
|
|
955
955
|
onClick: () => {
|
|
956
|
-
|
|
956
|
+
u("components"), f("");
|
|
957
957
|
},
|
|
958
958
|
children: c.sidebar.componentsTab
|
|
959
959
|
}
|
|
960
960
|
)
|
|
961
961
|
] }),
|
|
962
|
-
/* @__PURE__ */
|
|
963
|
-
/* @__PURE__ */
|
|
962
|
+
/* @__PURE__ */ l("div", { className: "ds-sidebar__search", children: [
|
|
963
|
+
/* @__PURE__ */ t(
|
|
964
964
|
"input",
|
|
965
965
|
{
|
|
966
|
-
ref:
|
|
966
|
+
ref: S,
|
|
967
967
|
className: "ds-input ds-input--search",
|
|
968
968
|
type: "search",
|
|
969
|
-
value:
|
|
969
|
+
value: g,
|
|
970
970
|
placeholder: h === "flows" ? c.sidebar.searchPlaceholder : c.sidebar.componentSearchPlaceholder,
|
|
971
971
|
"aria-label": h === "flows" ? c.sidebar.searchLabel : c.sidebar.componentSearchLabel,
|
|
972
|
-
onChange: (
|
|
973
|
-
onKeyDown:
|
|
972
|
+
onChange: (v) => f(v.target.value),
|
|
973
|
+
onKeyDown: K
|
|
974
974
|
}
|
|
975
975
|
),
|
|
976
|
-
/* @__PURE__ */
|
|
976
|
+
/* @__PURE__ */ t("kbd", { children: c.sidebar.searchShortcut })
|
|
977
977
|
] }),
|
|
978
|
-
/* @__PURE__ */
|
|
978
|
+
/* @__PURE__ */ l(
|
|
979
979
|
"div",
|
|
980
980
|
{
|
|
981
981
|
className: "ds-sidebar__tree",
|
|
982
982
|
role: "tabpanel",
|
|
983
|
-
"aria-label": h === "flows" ? c.sidebar.currentView(
|
|
983
|
+
"aria-label": h === "flows" ? c.sidebar.currentView(y) : void 0,
|
|
984
984
|
children: [
|
|
985
|
-
h === "flows" && /* @__PURE__ */
|
|
986
|
-
/* @__PURE__ */
|
|
987
|
-
|
|
985
|
+
h === "flows" && /* @__PURE__ */ l("header", { className: "ds-sidebar__view-header", children: [
|
|
986
|
+
/* @__PURE__ */ t("h2", { children: y }),
|
|
987
|
+
s === "ported" && /* @__PURE__ */ t(
|
|
988
988
|
"button",
|
|
989
989
|
{
|
|
990
990
|
type: "button",
|
|
991
991
|
className: "ds-text-action",
|
|
992
|
-
onClick: () =>
|
|
992
|
+
onClick: () => n("active"),
|
|
993
993
|
children: c.sidebar.backToActive
|
|
994
994
|
}
|
|
995
995
|
)
|
|
996
996
|
] }),
|
|
997
|
-
|
|
998
|
-
h === "flows" &&
|
|
999
|
-
/* @__PURE__ */
|
|
1000
|
-
|
|
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(
|
|
1001
1001
|
"button",
|
|
1002
1002
|
{
|
|
1003
1003
|
type: "button",
|
|
1004
1004
|
className: "ds-text-action",
|
|
1005
|
-
onClick: () =>
|
|
1006
|
-
children: c.sidebar.viewPorted(
|
|
1005
|
+
onClick: () => n("ported"),
|
|
1006
|
+
children: c.sidebar.viewPorted(k)
|
|
1007
1007
|
}
|
|
1008
1008
|
)
|
|
1009
|
-
] }) : h === "flows" ? /* @__PURE__ */
|
|
1010
|
-
|
|
1009
|
+
] }) : h === "flows" ? /* @__PURE__ */ t(
|
|
1010
|
+
at,
|
|
1011
1011
|
{
|
|
1012
|
-
nodes:
|
|
1013
|
-
orphans:
|
|
1014
|
-
matches:
|
|
1015
|
-
collapsed:
|
|
1016
|
-
activeScenario:
|
|
1012
|
+
nodes: I,
|
|
1013
|
+
orphans: B,
|
|
1014
|
+
matches: E,
|
|
1015
|
+
collapsed: p,
|
|
1016
|
+
activeScenario: o?.id,
|
|
1017
1017
|
withoutModuleLabel: c.sidebar.withoutModule,
|
|
1018
|
-
onToggle:
|
|
1019
|
-
onOpen:
|
|
1020
|
-
onKeyDown:
|
|
1021
|
-
setItemRef:
|
|
1018
|
+
onToggle: J,
|
|
1019
|
+
onOpen: d,
|
|
1020
|
+
onKeyDown: V,
|
|
1021
|
+
setItemRef: q
|
|
1022
1022
|
}
|
|
1023
|
-
) :
|
|
1024
|
-
/* @__PURE__ */
|
|
1025
|
-
/* @__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(
|
|
1026
1026
|
"button",
|
|
1027
1027
|
{
|
|
1028
|
-
ref: (
|
|
1028
|
+
ref: (C) => q(N.id, C),
|
|
1029
1029
|
type: "button",
|
|
1030
1030
|
className: "ds-component-item",
|
|
1031
|
-
"aria-current":
|
|
1032
|
-
onClick: () => r(
|
|
1033
|
-
onKeyDown: (
|
|
1031
|
+
"aria-current": N.id === a,
|
|
1032
|
+
onClick: () => r(N.id),
|
|
1033
|
+
onKeyDown: (C) => V(N.id, C),
|
|
1034
1034
|
children: [
|
|
1035
|
-
/* @__PURE__ */
|
|
1036
|
-
|
|
1035
|
+
/* @__PURE__ */ t("span", { children: N.name }),
|
|
1036
|
+
N.description && /* @__PURE__ */ t("small", { children: N.description })
|
|
1037
1037
|
]
|
|
1038
1038
|
}
|
|
1039
|
-
) },
|
|
1040
|
-
] },
|
|
1039
|
+
) }, N.id)) })
|
|
1040
|
+
] }, v))
|
|
1041
1041
|
]
|
|
1042
1042
|
}
|
|
1043
1043
|
),
|
|
1044
|
-
h === "flows" &&
|
|
1044
|
+
h === "flows" && s === "active" && M > 0 && k > 0 && /* @__PURE__ */ t("div", { className: "ds-sidebar__view-footer", children: /* @__PURE__ */ t(
|
|
1045
1045
|
"button",
|
|
1046
1046
|
{
|
|
1047
1047
|
type: "button",
|
|
1048
1048
|
className: "ds-text-action",
|
|
1049
|
-
onClick: () =>
|
|
1050
|
-
children: c.sidebar.viewPorted(
|
|
1049
|
+
onClick: () => n("ported"),
|
|
1050
|
+
children: c.sidebar.viewPorted(k)
|
|
1051
1051
|
}
|
|
1052
1052
|
) }),
|
|
1053
|
-
h === "flows" &&
|
|
1054
|
-
/* @__PURE__ */
|
|
1055
|
-
/* @__PURE__ */
|
|
1056
|
-
/* @__PURE__ */
|
|
1057
|
-
/* @__PURE__ */
|
|
1058
|
-
/* @__PURE__ */
|
|
1059
|
-
/* @__PURE__ */
|
|
1060
|
-
/* @__PURE__ */
|
|
1061
|
-
/* @__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] })
|
|
1062
1062
|
] })
|
|
1063
1063
|
] })
|
|
1064
1064
|
] });
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1067
|
-
return /* @__PURE__ */
|
|
1068
|
-
e.nodes.map((
|
|
1069
|
-
const
|
|
1070
|
-
return /* @__PURE__ */
|
|
1071
|
-
/* @__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(
|
|
1072
1072
|
"button",
|
|
1073
1073
|
{
|
|
1074
1074
|
type: "button",
|
|
1075
1075
|
className: "ds-module__header",
|
|
1076
|
-
"aria-expanded":
|
|
1077
|
-
onClick: () => e.onToggle(
|
|
1076
|
+
"aria-expanded": a,
|
|
1077
|
+
onClick: () => e.onToggle(o.module.id),
|
|
1078
1078
|
children: [
|
|
1079
|
-
/* @__PURE__ */
|
|
1080
|
-
/* @__PURE__ */
|
|
1081
|
-
/* @__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 })
|
|
1082
1082
|
]
|
|
1083
1083
|
}
|
|
1084
1084
|
),
|
|
1085
|
-
|
|
1086
|
-
] },
|
|
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);
|
|
1087
1087
|
}),
|
|
1088
|
-
e.orphans.length > 0 && /* @__PURE__ */
|
|
1089
|
-
/* @__PURE__ */
|
|
1090
|
-
/* @__PURE__ */
|
|
1091
|
-
/* @__PURE__ */
|
|
1092
|
-
/* @__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 })
|
|
1093
1093
|
] }),
|
|
1094
|
-
/* @__PURE__ */
|
|
1094
|
+
/* @__PURE__ */ t("ul", { className: "ds-module__scenarios", children: e.orphans.map((o) => /* @__PURE__ */ t(he, { scenario: o, ...e }, o.id)) })
|
|
1095
1095
|
] })
|
|
1096
1096
|
] });
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1098
|
+
function he({
|
|
1099
1099
|
scenario: e,
|
|
1100
|
-
activeScenario:
|
|
1101
|
-
onOpen:
|
|
1102
|
-
onKeyDown:
|
|
1103
|
-
setItemRef:
|
|
1100
|
+
activeScenario: o,
|
|
1101
|
+
onOpen: a,
|
|
1102
|
+
onKeyDown: i,
|
|
1103
|
+
setItemRef: d
|
|
1104
1104
|
}) {
|
|
1105
|
-
const r = P().status[e.status];
|
|
1106
|
-
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(
|
|
1107
1107
|
"button",
|
|
1108
1108
|
{
|
|
1109
|
-
ref: (
|
|
1109
|
+
ref: (h) => d(e.id, h),
|
|
1110
1110
|
type: "button",
|
|
1111
1111
|
className: "ds-scenario",
|
|
1112
|
-
"aria-current": e.id ===
|
|
1113
|
-
onClick: () =>
|
|
1114
|
-
onKeyDown: (
|
|
1112
|
+
"aria-current": e.id === o,
|
|
1113
|
+
onClick: () => a(e.id),
|
|
1114
|
+
onKeyDown: (h) => i(e.id, h),
|
|
1115
1115
|
children: [
|
|
1116
|
-
/* @__PURE__ */
|
|
1117
|
-
|
|
1118
|
-
|
|
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 })
|
|
1119
1127
|
]
|
|
1120
1128
|
}
|
|
1121
1129
|
) });
|
|
1122
1130
|
}
|
|
1123
|
-
function
|
|
1124
|
-
const
|
|
1125
|
-
for (const
|
|
1126
|
-
const
|
|
1127
|
-
|
|
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]);
|
|
1128
1136
|
}
|
|
1129
|
-
return [...
|
|
1137
|
+
return [...o.entries()];
|
|
1130
1138
|
}
|
|
1131
|
-
function
|
|
1139
|
+
function me(e) {
|
|
1132
1140
|
return e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").trim();
|
|
1133
1141
|
}
|
|
1134
|
-
function
|
|
1135
|
-
const
|
|
1136
|
-
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");
|
|
1137
1145
|
}
|
|
1138
|
-
function
|
|
1146
|
+
function st(e, o, a) {
|
|
1139
1147
|
if (e.length === 0) return;
|
|
1140
|
-
const
|
|
1141
|
-
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];
|
|
1142
1150
|
}
|
|
1143
|
-
function
|
|
1151
|
+
function it({
|
|
1144
1152
|
product: e,
|
|
1145
|
-
scenario:
|
|
1146
|
-
deploy:
|
|
1147
|
-
inspectorOpen:
|
|
1148
|
-
chromeTheme:
|
|
1153
|
+
scenario: o,
|
|
1154
|
+
deploy: a,
|
|
1155
|
+
inspectorOpen: i,
|
|
1156
|
+
chromeTheme: d,
|
|
1149
1157
|
view: r,
|
|
1150
|
-
|
|
1151
|
-
|
|
1158
|
+
handoff: n,
|
|
1159
|
+
onToggleInspector: c,
|
|
1160
|
+
onToggleChromeTheme: h
|
|
1152
1161
|
}) {
|
|
1153
|
-
const
|
|
1154
|
-
const
|
|
1155
|
-
origin:
|
|
1162
|
+
const u = P().topbar, [g, f] = F(!1), p = async () => {
|
|
1163
|
+
const _ = o ? Me(o, {
|
|
1164
|
+
origin: a.origin,
|
|
1156
1165
|
overrides: {
|
|
1157
|
-
...
|
|
1158
|
-
...r === "ported" ? { view: r } : {}
|
|
1166
|
+
...d === "light" ? { chromeTheme: d } : {},
|
|
1167
|
+
...r === "ported" ? { view: r } : {},
|
|
1168
|
+
...n ? { handoff: n } : {}
|
|
1159
1169
|
}
|
|
1160
|
-
}) : `${
|
|
1170
|
+
}) : `${a.origin}${window.location.pathname}${window.location.search}`;
|
|
1161
1171
|
try {
|
|
1162
|
-
await navigator.clipboard.writeText(
|
|
1172
|
+
await navigator.clipboard.writeText(_);
|
|
1163
1173
|
} catch {
|
|
1164
|
-
window.prompt(
|
|
1174
|
+
window.prompt(u.copyPrompt, _);
|
|
1165
1175
|
}
|
|
1166
|
-
|
|
1167
|
-
},
|
|
1168
|
-
typeof window > "u" ? `${
|
|
1169
|
-
),
|
|
1170
|
-
return /* @__PURE__ */
|
|
1171
|
-
/* @__PURE__ */
|
|
1172
|
-
/* @__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(
|
|
1173
1183
|
"a",
|
|
1174
1184
|
{
|
|
1175
1185
|
className: "ds-topbar__home",
|
|
1176
|
-
href:
|
|
1177
|
-
"aria-label":
|
|
1178
|
-
title:
|
|
1186
|
+
href: S,
|
|
1187
|
+
"aria-label": u.homeTitle(e.name),
|
|
1188
|
+
title: u.homeTitle(e.name),
|
|
1179
1189
|
children: e.name
|
|
1180
1190
|
}
|
|
1181
1191
|
),
|
|
1182
|
-
e.tagline && /* @__PURE__ */
|
|
1192
|
+
e.tagline && /* @__PURE__ */ t("span", { className: "ds-topbar__tagline", children: e.tagline })
|
|
1183
1193
|
] }),
|
|
1184
|
-
/* @__PURE__ */
|
|
1185
|
-
/* @__PURE__ */
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
/* @__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 })
|
|
1189
1199
|
] }),
|
|
1190
|
-
/* @__PURE__ */
|
|
1200
|
+
/* @__PURE__ */ t(
|
|
1191
1201
|
"button",
|
|
1192
1202
|
{
|
|
1193
1203
|
type: "button",
|
|
1194
1204
|
className: "ds-btn ds-btn--icon",
|
|
1195
|
-
"aria-pressed":
|
|
1196
|
-
"aria-label":
|
|
1197
|
-
title:
|
|
1198
|
-
onClick:
|
|
1199
|
-
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 })
|
|
1200
1210
|
}
|
|
1201
1211
|
),
|
|
1202
|
-
/* @__PURE__ */
|
|
1203
|
-
/* @__PURE__ */
|
|
1212
|
+
/* @__PURE__ */ t("button", { type: "button", className: "ds-btn", onClick: p, children: g ? u.copied : u.copyLink }),
|
|
1213
|
+
/* @__PURE__ */ t(
|
|
1204
1214
|
"a",
|
|
1205
1215
|
{
|
|
1206
1216
|
className: "ds-btn",
|
|
1207
|
-
href:
|
|
1217
|
+
href: b,
|
|
1208
1218
|
target: "_blank",
|
|
1209
1219
|
rel: "noreferrer",
|
|
1210
|
-
title:
|
|
1211
|
-
children:
|
|
1220
|
+
title: u.cleanReviewTitle,
|
|
1221
|
+
children: u.cleanReview
|
|
1212
1222
|
}
|
|
1213
1223
|
),
|
|
1214
|
-
/* @__PURE__ */
|
|
1224
|
+
/* @__PURE__ */ t(
|
|
1215
1225
|
"button",
|
|
1216
1226
|
{
|
|
1217
1227
|
type: "button",
|
|
1218
1228
|
className: "ds-btn",
|
|
1219
|
-
"aria-pressed":
|
|
1220
|
-
onClick:
|
|
1221
|
-
children:
|
|
1229
|
+
"aria-pressed": i,
|
|
1230
|
+
onClick: c,
|
|
1231
|
+
children: u.panel
|
|
1222
1232
|
}
|
|
1223
1233
|
)
|
|
1224
1234
|
] });
|
|
1225
1235
|
}
|
|
1226
|
-
function
|
|
1227
|
-
const
|
|
1228
|
-
return
|
|
1236
|
+
function ct(e) {
|
|
1237
|
+
const o = new URL(e);
|
|
1238
|
+
return o.searchParams.set(w.chrome, "0"), o.toString();
|
|
1229
1239
|
}
|
|
1230
|
-
function
|
|
1231
|
-
const
|
|
1232
|
-
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();
|
|
1233
1243
|
}
|
|
1234
|
-
function
|
|
1235
|
-
const
|
|
1244
|
+
function lt({ theme: e }) {
|
|
1245
|
+
const o = {
|
|
1236
1246
|
width: 15,
|
|
1237
1247
|
height: 15,
|
|
1238
1248
|
viewBox: "0 0 24 24",
|
|
@@ -1243,79 +1253,79 @@ function et({ theme: e }) {
|
|
|
1243
1253
|
strokeLinejoin: "round",
|
|
1244
1254
|
"aria-hidden": !0
|
|
1245
1255
|
};
|
|
1246
|
-
return e === "dark" ? /* @__PURE__ */
|
|
1247
|
-
/* @__PURE__ */
|
|
1248
|
-
/* @__PURE__ */
|
|
1249
|
-
] }) : /* @__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" }) });
|
|
1250
1260
|
}
|
|
1251
|
-
function
|
|
1261
|
+
function pt({
|
|
1252
1262
|
registry: e,
|
|
1253
|
-
controls:
|
|
1254
|
-
scenarioActive:
|
|
1255
|
-
component:
|
|
1256
|
-
componentFixture:
|
|
1263
|
+
controls: o,
|
|
1264
|
+
scenarioActive: a,
|
|
1265
|
+
component: i,
|
|
1266
|
+
componentFixture: d,
|
|
1257
1267
|
onChange: r
|
|
1258
1268
|
}) {
|
|
1259
|
-
const
|
|
1260
|
-
return /* @__PURE__ */
|
|
1261
|
-
|
|
1262
|
-
/* @__PURE__ */
|
|
1263
|
-
/* @__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(
|
|
1264
1274
|
"select",
|
|
1265
1275
|
{
|
|
1266
1276
|
id: "ds-component-fixture",
|
|
1267
1277
|
className: "ds-select",
|
|
1268
|
-
value:
|
|
1269
|
-
onChange: (
|
|
1270
|
-
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))
|
|
1271
1281
|
}
|
|
1272
1282
|
)
|
|
1273
1283
|
] }) : null,
|
|
1274
|
-
|
|
1275
|
-
/* @__PURE__ */
|
|
1276
|
-
/* @__PURE__ */
|
|
1284
|
+
a && /* @__PURE__ */ l("div", { className: "ds-field", children: [
|
|
1285
|
+
/* @__PURE__ */ t("label", { htmlFor: "ds-persona", children: c.persona }),
|
|
1286
|
+
/* @__PURE__ */ l(
|
|
1277
1287
|
"select",
|
|
1278
1288
|
{
|
|
1279
1289
|
id: "ds-persona",
|
|
1280
1290
|
className: "ds-select",
|
|
1281
|
-
value:
|
|
1282
|
-
onChange: (
|
|
1291
|
+
value: o.persona ?? "",
|
|
1292
|
+
onChange: (p) => r({ persona: p.target.value || void 0 }),
|
|
1283
1293
|
children: [
|
|
1284
|
-
/* @__PURE__ */
|
|
1285
|
-
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))
|
|
1286
1296
|
]
|
|
1287
1297
|
}
|
|
1288
1298
|
)
|
|
1289
1299
|
] }),
|
|
1290
|
-
|
|
1291
|
-
/* @__PURE__ */
|
|
1292
|
-
/* @__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(
|
|
1293
1303
|
"button",
|
|
1294
1304
|
{
|
|
1295
1305
|
type: "button",
|
|
1296
|
-
"aria-pressed":
|
|
1297
|
-
onClick: () => r({ network:
|
|
1298
|
-
children:
|
|
1306
|
+
"aria-pressed": o.network === p,
|
|
1307
|
+
onClick: () => r({ network: p }),
|
|
1308
|
+
children: n.network[p]
|
|
1299
1309
|
},
|
|
1300
|
-
|
|
1310
|
+
p
|
|
1301
1311
|
)) })
|
|
1302
1312
|
] }),
|
|
1303
|
-
/* @__PURE__ */
|
|
1304
|
-
/* @__PURE__ */
|
|
1305
|
-
/* @__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(
|
|
1306
1316
|
"button",
|
|
1307
1317
|
{
|
|
1308
1318
|
type: "button",
|
|
1309
1319
|
className: "ds-icon-button",
|
|
1310
|
-
"aria-pressed":
|
|
1311
|
-
"aria-label":
|
|
1312
|
-
title:
|
|
1313
|
-
onClick: () => r({ viewport:
|
|
1314
|
-
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 })
|
|
1315
1325
|
},
|
|
1316
|
-
|
|
1326
|
+
p.id
|
|
1317
1327
|
)) }),
|
|
1318
|
-
|
|
1328
|
+
o.viewport === "custom" && /* @__PURE__ */ t(
|
|
1319
1329
|
"input",
|
|
1320
1330
|
{
|
|
1321
1331
|
className: "ds-input",
|
|
@@ -1325,57 +1335,57 @@ function tt({
|
|
|
1325
1335
|
step: 10,
|
|
1326
1336
|
style: { width: 88 },
|
|
1327
1337
|
"aria-label": c.customWidth,
|
|
1328
|
-
value:
|
|
1329
|
-
onChange: (
|
|
1338
|
+
value: o.customWidth ?? 1024,
|
|
1339
|
+
onChange: (p) => r({ customWidth: Number(p.target.value) || void 0 })
|
|
1330
1340
|
}
|
|
1331
1341
|
)
|
|
1332
1342
|
] }),
|
|
1333
|
-
|
|
1334
|
-
/* @__PURE__ */
|
|
1335
|
-
/* @__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(
|
|
1336
1346
|
"select",
|
|
1337
1347
|
{
|
|
1338
1348
|
id: "ds-theme",
|
|
1339
1349
|
className: "ds-select",
|
|
1340
|
-
value:
|
|
1341
|
-
onChange: (
|
|
1342
|
-
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))
|
|
1343
1353
|
}
|
|
1344
1354
|
)
|
|
1345
1355
|
] }),
|
|
1346
|
-
|
|
1347
|
-
/* @__PURE__ */
|
|
1348
|
-
/* @__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(
|
|
1349
1359
|
"select",
|
|
1350
1360
|
{
|
|
1351
1361
|
id: "ds-locale",
|
|
1352
1362
|
className: "ds-select",
|
|
1353
|
-
value:
|
|
1354
|
-
onChange: (
|
|
1355
|
-
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))
|
|
1356
1366
|
}
|
|
1357
1367
|
)
|
|
1358
1368
|
] }),
|
|
1359
|
-
|
|
1360
|
-
/* @__PURE__ */
|
|
1361
|
-
/* @__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(
|
|
1362
1372
|
"select",
|
|
1363
1373
|
{
|
|
1364
1374
|
id: "ds-source",
|
|
1365
1375
|
className: "ds-select",
|
|
1366
|
-
value:
|
|
1367
|
-
onChange: (
|
|
1376
|
+
value: o.dataSource ?? "fixtures",
|
|
1377
|
+
onChange: (p) => r({ dataSource: p.target.value }),
|
|
1368
1378
|
children: [
|
|
1369
|
-
/* @__PURE__ */
|
|
1370
|
-
|
|
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))
|
|
1371
1381
|
]
|
|
1372
1382
|
}
|
|
1373
1383
|
)
|
|
1374
1384
|
] })
|
|
1375
1385
|
] });
|
|
1376
1386
|
}
|
|
1377
|
-
function
|
|
1378
|
-
const
|
|
1387
|
+
function ut({ id: e }) {
|
|
1388
|
+
const o = {
|
|
1379
1389
|
width: 16,
|
|
1380
1390
|
height: 16,
|
|
1381
1391
|
viewBox: "0 0 24 24",
|
|
@@ -1386,292 +1396,350 @@ function ot({ id: e }) {
|
|
|
1386
1396
|
strokeLinejoin: "round",
|
|
1387
1397
|
"aria-hidden": !0
|
|
1388
1398
|
};
|
|
1389
|
-
return e === "fit" ? /* @__PURE__ */
|
|
1390
|
-
/* @__PURE__ */
|
|
1391
|
-
/* @__PURE__ */
|
|
1392
|
-
] }) : e === "tablet" ? /* @__PURE__ */
|
|
1393
|
-
/* @__PURE__ */
|
|
1394
|
-
/* @__PURE__ */
|
|
1395
|
-
] }) : e === "desktop" ? /* @__PURE__ */
|
|
1396
|
-
/* @__PURE__ */
|
|
1397
|
-
/* @__PURE__ */
|
|
1398
|
-
] }) : /* @__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" }) });
|
|
1399
1409
|
}
|
|
1400
|
-
function
|
|
1410
|
+
function ht({
|
|
1401
1411
|
registry: e,
|
|
1402
|
-
scenario:
|
|
1403
|
-
component:
|
|
1404
|
-
componentFixture:
|
|
1405
|
-
controls:
|
|
1412
|
+
scenario: o,
|
|
1413
|
+
component: a,
|
|
1414
|
+
componentFixture: i,
|
|
1415
|
+
controls: d,
|
|
1406
1416
|
focusedNode: r,
|
|
1407
|
-
tabStopCount:
|
|
1417
|
+
tabStopCount: n
|
|
1408
1418
|
}) {
|
|
1409
|
-
const c = P().inspector, [h,
|
|
1410
|
-
return /* @__PURE__ */
|
|
1411
|
-
/* @__PURE__ */
|
|
1412
|
-
/* @__PURE__ */
|
|
1413
|
-
/* @__PURE__ */
|
|
1414
|
-
/* @__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 })
|
|
1415
1425
|
] }),
|
|
1416
|
-
/* @__PURE__ */
|
|
1417
|
-
h === "scenario" && /* @__PURE__ */
|
|
1418
|
-
|
|
1426
|
+
/* @__PURE__ */ l("div", { className: "ds-inspector__body", role: "tabpanel", children: [
|
|
1427
|
+
h === "scenario" && /* @__PURE__ */ t(
|
|
1428
|
+
mt,
|
|
1419
1429
|
{
|
|
1420
1430
|
registry: e,
|
|
1421
|
-
scenario:
|
|
1422
|
-
component:
|
|
1423
|
-
componentFixture:
|
|
1424
|
-
controls:
|
|
1431
|
+
scenario: o,
|
|
1432
|
+
component: a,
|
|
1433
|
+
componentFixture: i,
|
|
1434
|
+
controls: d
|
|
1425
1435
|
}
|
|
1426
1436
|
),
|
|
1427
|
-
h === "a11y" && /* @__PURE__ */
|
|
1428
|
-
|
|
1437
|
+
h === "a11y" && /* @__PURE__ */ t(
|
|
1438
|
+
ft,
|
|
1429
1439
|
{
|
|
1430
1440
|
registry: e,
|
|
1431
|
-
scenario:
|
|
1441
|
+
scenario: o,
|
|
1432
1442
|
focusedNode: r,
|
|
1433
|
-
keyboardMode:
|
|
1434
|
-
tabStopCount:
|
|
1443
|
+
keyboardMode: d.keyboardMode,
|
|
1444
|
+
tabStopCount: n
|
|
1435
1445
|
}
|
|
1436
1446
|
),
|
|
1437
|
-
h === "diagnostics" && /* @__PURE__ */
|
|
1447
|
+
h === "diagnostics" && /* @__PURE__ */ t(bt, { registry: e })
|
|
1438
1448
|
] })
|
|
1439
1449
|
] });
|
|
1440
1450
|
}
|
|
1441
|
-
function
|
|
1451
|
+
function ne({
|
|
1442
1452
|
id: e,
|
|
1443
|
-
current:
|
|
1444
|
-
onSelect:
|
|
1445
|
-
children:
|
|
1453
|
+
current: o,
|
|
1454
|
+
onSelect: a,
|
|
1455
|
+
children: i
|
|
1446
1456
|
}) {
|
|
1447
|
-
return /* @__PURE__ */
|
|
1457
|
+
return /* @__PURE__ */ t(
|
|
1448
1458
|
"button",
|
|
1449
1459
|
{
|
|
1450
1460
|
type: "button",
|
|
1451
1461
|
role: "tab",
|
|
1452
|
-
"aria-selected":
|
|
1453
|
-
onClick: () =>
|
|
1454
|
-
children:
|
|
1462
|
+
"aria-selected": o === e,
|
|
1463
|
+
onClick: () => a(e),
|
|
1464
|
+
children: i
|
|
1455
1465
|
}
|
|
1456
1466
|
);
|
|
1457
1467
|
}
|
|
1458
|
-
function
|
|
1468
|
+
function mt({
|
|
1459
1469
|
registry: e,
|
|
1460
|
-
scenario:
|
|
1461
|
-
component:
|
|
1462
|
-
componentFixture:
|
|
1463
|
-
controls:
|
|
1470
|
+
scenario: o,
|
|
1471
|
+
component: a,
|
|
1472
|
+
componentFixture: i,
|
|
1473
|
+
controls: d
|
|
1464
1474
|
}) {
|
|
1465
|
-
const r = P(),
|
|
1466
|
-
if (!
|
|
1467
|
-
return
|
|
1468
|
-
/* @__PURE__ */
|
|
1469
|
-
/* @__PURE__ */
|
|
1470
|
-
|
|
1471
|
-
/* @__PURE__ */
|
|
1472
|
-
/* @__PURE__ */
|
|
1473
|
-
/* @__PURE__ */
|
|
1474
|
-
|
|
1475
|
-
/* @__PURE__ */
|
|
1476
|
-
/* @__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 })
|
|
1477
1487
|
] }),
|
|
1478
|
-
|
|
1479
|
-
/* @__PURE__ */
|
|
1480
|
-
/* @__PURE__ */
|
|
1481
|
-
|
|
1488
|
+
i?.fixture && /* @__PURE__ */ l(A, { children: [
|
|
1489
|
+
/* @__PURE__ */ t("dt", { children: n.componentFixture }),
|
|
1490
|
+
/* @__PURE__ */ l("dd", { children: [
|
|
1491
|
+
i.fixture.label,
|
|
1482
1492
|
" ",
|
|
1483
|
-
/* @__PURE__ */
|
|
1493
|
+
/* @__PURE__ */ t("code", { children: i.fixture.id })
|
|
1484
1494
|
] }),
|
|
1485
|
-
|
|
1486
|
-
/* @__PURE__ */
|
|
1487
|
-
/* @__PURE__ */
|
|
1495
|
+
i.fixture.description && /* @__PURE__ */ l(A, { children: [
|
|
1496
|
+
/* @__PURE__ */ t("dt", { children: n.componentFixtureDescription }),
|
|
1497
|
+
/* @__PURE__ */ t("dd", { children: i.fixture.description })
|
|
1488
1498
|
] })
|
|
1489
1499
|
] })
|
|
1490
1500
|
] }),
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1501
|
+
i?.didFallback && i.fixture && /* @__PURE__ */ t("p", { className: "ds-note", "data-tone": "warn", children: n.componentFixtureFallback(
|
|
1502
|
+
i.requestedId ?? "",
|
|
1503
|
+
i.fixture.id
|
|
1494
1504
|
) })
|
|
1495
|
-
] }) : /* @__PURE__ */
|
|
1496
|
-
const c = e.persona(
|
|
1497
|
-
return /* @__PURE__ */
|
|
1498
|
-
/* @__PURE__ */
|
|
1499
|
-
|
|
1500
|
-
|
|
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
|
-
|
|
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
|
+
)
|
|
1564
1598
|
] });
|
|
1565
1599
|
}
|
|
1566
|
-
function
|
|
1600
|
+
function ft({
|
|
1567
1601
|
registry: e,
|
|
1568
|
-
scenario:
|
|
1569
|
-
focusedNode:
|
|
1570
|
-
keyboardMode:
|
|
1571
|
-
tabStopCount:
|
|
1602
|
+
scenario: o,
|
|
1603
|
+
focusedNode: a,
|
|
1604
|
+
keyboardMode: i,
|
|
1605
|
+
tabStopCount: d
|
|
1572
1606
|
}) {
|
|
1573
|
-
const r = P(),
|
|
1574
|
-
return /* @__PURE__ */
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
/* @__PURE__ */
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
/* @__PURE__ */ u("dl", { className: "ds-kv", children: [
|
|
1593
|
-
/* @__PURE__ */ o("dt", { children: a.role }),
|
|
1594
|
-
/* @__PURE__ */ o("dd", { children: n.role }),
|
|
1595
|
-
/* @__PURE__ */ o("dt", { children: a.name }),
|
|
1596
|
-
/* @__PURE__ */ o("dd", { children: n.name ? n.name : /* @__PURE__ */ o("span", { style: { color: "var(--ds-err)" }, children: a.noAccessibleName }) }),
|
|
1597
|
-
/* @__PURE__ */ o("dt", { children: a.nameFrom }),
|
|
1598
|
-
/* @__PURE__ */ o("dd", { children: n.nameFrom }),
|
|
1599
|
-
n.description ? /* @__PURE__ */ u(A, { children: [
|
|
1600
|
-
/* @__PURE__ */ o("dt", { children: a.description }),
|
|
1601
|
-
/* @__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)) })
|
|
1602
1626
|
] }) : null,
|
|
1603
|
-
/* @__PURE__ */
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
/* @__PURE__ */
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
"
|
|
1622
|
-
{
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
"
|
|
1626
|
-
}
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
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) })
|
|
1637
1707
|
] }),
|
|
1638
|
-
/* @__PURE__ */
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
color: p.passes === !0 ? "var(--ds-ok)" : p.passes === !1 ? "var(--ds-err)" : "var(--ds-warn)"
|
|
1643
|
-
},
|
|
1644
|
-
children: p.label
|
|
1645
|
-
}
|
|
1646
|
-
)
|
|
1647
|
-
] }, p.pair.name)) })
|
|
1648
|
-
] }),
|
|
1649
|
-
h.length > 0 && /* @__PURE__ */ o("p", { className: "ds-note", style: { marginTop: 8 }, children: a.pairsFailing(h.length) })
|
|
1650
|
-
] }),
|
|
1651
|
-
/* @__PURE__ */ o("p", { className: "ds-note", children: a.automatedIsFloor })
|
|
1708
|
+
/* @__PURE__ */ t("p", { className: "ds-note", children: n.automatedIsFloor })
|
|
1709
|
+
]
|
|
1710
|
+
}
|
|
1711
|
+
)
|
|
1652
1712
|
] });
|
|
1653
1713
|
}
|
|
1654
|
-
function
|
|
1655
|
-
const
|
|
1656
|
-
return /* @__PURE__ */
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
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
|
+
) });
|
|
1673
1741
|
}
|
|
1674
|
-
const
|
|
1742
|
+
const vt = {
|
|
1675
1743
|
ported: void 0,
|
|
1676
1744
|
proposed: "warn",
|
|
1677
1745
|
"in-review": "warn",
|
|
@@ -1680,227 +1748,302 @@ const it = {
|
|
|
1680
1748
|
implemented: "ok",
|
|
1681
1749
|
superseded: void 0
|
|
1682
1750
|
};
|
|
1683
|
-
function
|
|
1684
|
-
return
|
|
1751
|
+
function gt(e) {
|
|
1752
|
+
return e.status === "approved" && !e.approvedAt ? "warn" : vt[e.status];
|
|
1685
1753
|
}
|
|
1686
|
-
|
|
1687
|
-
|
|
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(
|
|
1688
1770
|
"div",
|
|
1689
1771
|
{
|
|
1690
|
-
ref:
|
|
1772
|
+
ref: n,
|
|
1691
1773
|
className: "ds-stage",
|
|
1692
|
-
"data-viewport":
|
|
1693
|
-
"data-keyboard-mode":
|
|
1694
|
-
"data-reduced-motion":
|
|
1774
|
+
"data-viewport": o.id,
|
|
1775
|
+
"data-keyboard-mode": d,
|
|
1776
|
+
"data-reduced-motion": i,
|
|
1695
1777
|
style: {
|
|
1696
|
-
width:
|
|
1697
|
-
minHeight:
|
|
1778
|
+
width: o.width ? `${o.width}px` : "100%",
|
|
1779
|
+
minHeight: o.height ? `${o.height}px` : void 0,
|
|
1698
1780
|
// A ampliação é aplicada no `font-size` do contêiner, não com
|
|
1699
1781
|
// `transform: scale`. É a diferença entre testar se o layout aguenta
|
|
1700
1782
|
// texto grande e só dar zoom na captura de tela.
|
|
1701
|
-
fontSize:
|
|
1783
|
+
fontSize: a === 1 ? void 0 : `${a * 100}%`
|
|
1702
1784
|
},
|
|
1703
1785
|
children: r
|
|
1704
1786
|
}
|
|
1705
1787
|
) });
|
|
1706
1788
|
});
|
|
1707
|
-
function
|
|
1708
|
-
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(
|
|
1709
1791
|
"span",
|
|
1710
1792
|
{
|
|
1711
1793
|
className: "ds-taborder__badge",
|
|
1712
|
-
"data-forced":
|
|
1713
|
-
style: { top:
|
|
1714
|
-
children:
|
|
1794
|
+
"data-forced": o.forcedOrder,
|
|
1795
|
+
style: { top: o.rect.top, left: o.rect.left },
|
|
1796
|
+
children: o.index
|
|
1715
1797
|
},
|
|
1716
|
-
`${
|
|
1798
|
+
`${o.index}-${o.rect.top}-${o.rect.left}`
|
|
1717
1799
|
)) });
|
|
1718
1800
|
}
|
|
1719
|
-
function
|
|
1720
|
-
return /* @__PURE__ */
|
|
1721
|
-
/* @__PURE__ */
|
|
1722
|
-
|
|
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
|
|
1723
1805
|
] });
|
|
1724
1806
|
}
|
|
1725
|
-
function
|
|
1807
|
+
function Nt({
|
|
1726
1808
|
registry: e,
|
|
1727
|
-
onOpenScenario:
|
|
1728
|
-
view:
|
|
1729
|
-
onViewChange:
|
|
1730
|
-
|
|
1809
|
+
onOpenScenario: o,
|
|
1810
|
+
view: a,
|
|
1811
|
+
onViewChange: i,
|
|
1812
|
+
handoff: d,
|
|
1813
|
+
showPorted: r = !1
|
|
1731
1814
|
}) {
|
|
1732
|
-
const
|
|
1733
|
-
return /* @__PURE__ */
|
|
1734
|
-
/* @__PURE__ */
|
|
1735
|
-
/* @__PURE__ */
|
|
1736
|
-
/* @__PURE__ */
|
|
1737
|
-
|
|
1738
|
-
/* @__PURE__ */
|
|
1739
|
-
/* @__PURE__ */
|
|
1740
|
-
|
|
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],
|
|
1741
1824
|
": ",
|
|
1742
|
-
|
|
1743
|
-
] },
|
|
1744
|
-
|
|
1825
|
+
m
|
|
1826
|
+
] }, s)) }),
|
|
1827
|
+
f > 0 && h === "active" && S > 0 && /* @__PURE__ */ t(
|
|
1745
1828
|
"button",
|
|
1746
1829
|
{
|
|
1747
1830
|
type: "button",
|
|
1748
1831
|
className: "ds-text-action ds-home__view-action",
|
|
1749
|
-
onClick: () =>
|
|
1750
|
-
children:
|
|
1832
|
+
onClick: () => i?.("ported"),
|
|
1833
|
+
children: n.sidebar.viewPorted(S)
|
|
1751
1834
|
}
|
|
1752
1835
|
),
|
|
1753
|
-
|
|
1836
|
+
h === "ported" && /* @__PURE__ */ t(
|
|
1754
1837
|
"button",
|
|
1755
1838
|
{
|
|
1756
1839
|
type: "button",
|
|
1757
1840
|
className: "ds-text-action ds-home__view-action",
|
|
1758
|
-
onClick: () =>
|
|
1759
|
-
children:
|
|
1841
|
+
onClick: () => i?.("active"),
|
|
1842
|
+
children: n.sidebar.backToActive
|
|
1760
1843
|
}
|
|
1761
1844
|
)
|
|
1762
1845
|
] }),
|
|
1763
|
-
|
|
1764
|
-
/* @__PURE__ */
|
|
1765
|
-
|
|
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] })
|
|
1853
|
+
] })
|
|
1854
|
+
] }, s)) })
|
|
1855
|
+
] }),
|
|
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(
|
|
1766
1859
|
"button",
|
|
1767
1860
|
{
|
|
1768
1861
|
type: "button",
|
|
1769
1862
|
className: "ds-text-action",
|
|
1770
|
-
onClick: () =>
|
|
1771
|
-
children:
|
|
1863
|
+
onClick: () => i?.("ported"),
|
|
1864
|
+
children: n.sidebar.viewPorted(S)
|
|
1772
1865
|
}
|
|
1773
1866
|
)
|
|
1774
1867
|
] }),
|
|
1775
|
-
|
|
1776
|
-
|
|
1868
|
+
p.map(({ module: s, scenarios: m }) => /* @__PURE__ */ t(
|
|
1869
|
+
St,
|
|
1777
1870
|
{
|
|
1778
|
-
module:
|
|
1779
|
-
scenarios:
|
|
1871
|
+
module: s,
|
|
1872
|
+
scenarios: m,
|
|
1780
1873
|
registry: e,
|
|
1781
|
-
view:
|
|
1782
|
-
|
|
1874
|
+
view: h,
|
|
1875
|
+
handoff: d,
|
|
1876
|
+
onOpenScenario: o
|
|
1783
1877
|
},
|
|
1784
|
-
|
|
1878
|
+
s.id
|
|
1785
1879
|
)),
|
|
1786
|
-
|
|
1787
|
-
/* @__PURE__ */
|
|
1788
|
-
/* @__PURE__ */
|
|
1789
|
-
/* @__PURE__ */
|
|
1790
|
-
|
|
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,
|
|
1791
1885
|
{
|
|
1792
|
-
scenarios:
|
|
1886
|
+
scenarios: b,
|
|
1793
1887
|
registry: e,
|
|
1794
|
-
onOpenScenario:
|
|
1888
|
+
onOpenScenario: o
|
|
1795
1889
|
}
|
|
1796
1890
|
)
|
|
1797
1891
|
] })
|
|
1798
1892
|
] });
|
|
1799
1893
|
}
|
|
1800
|
-
function
|
|
1894
|
+
function St({
|
|
1801
1895
|
module: e,
|
|
1802
|
-
scenarios:
|
|
1803
|
-
registry:
|
|
1804
|
-
view:
|
|
1805
|
-
|
|
1896
|
+
scenarios: o,
|
|
1897
|
+
registry: a,
|
|
1898
|
+
view: i,
|
|
1899
|
+
handoff: d,
|
|
1900
|
+
onOpenScenario: r
|
|
1806
1901
|
}) {
|
|
1807
|
-
return /* @__PURE__ */
|
|
1808
|
-
/* @__PURE__ */
|
|
1809
|
-
e.description && /* @__PURE__ */
|
|
1810
|
-
(e.flows ?? []).map((
|
|
1811
|
-
|
|
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,
|
|
1812
1907
|
{
|
|
1813
|
-
flow:
|
|
1814
|
-
registry:
|
|
1815
|
-
view:
|
|
1816
|
-
|
|
1908
|
+
flow: n,
|
|
1909
|
+
registry: a,
|
|
1910
|
+
view: i,
|
|
1911
|
+
handoff: d,
|
|
1912
|
+
onOpenScenario: r
|
|
1817
1913
|
},
|
|
1818
|
-
|
|
1914
|
+
n.id
|
|
1819
1915
|
)),
|
|
1820
|
-
/* @__PURE__ */
|
|
1916
|
+
/* @__PURE__ */ t(ke, { scenarios: o, registry: a, onOpenScenario: r })
|
|
1821
1917
|
] });
|
|
1822
1918
|
}
|
|
1823
|
-
function
|
|
1919
|
+
function xt({
|
|
1824
1920
|
flow: e,
|
|
1825
|
-
registry:
|
|
1826
|
-
view:
|
|
1827
|
-
|
|
1921
|
+
registry: o,
|
|
1922
|
+
view: a,
|
|
1923
|
+
handoff: i,
|
|
1924
|
+
onOpenScenario: d
|
|
1828
1925
|
}) {
|
|
1829
|
-
const
|
|
1830
|
-
const
|
|
1831
|
-
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");
|
|
1832
1929
|
});
|
|
1833
|
-
return
|
|
1834
|
-
/* @__PURE__ */
|
|
1835
|
-
e.description && /* @__PURE__ */
|
|
1836
|
-
/* @__PURE__ */
|
|
1837
|
-
const
|
|
1838
|
-
const
|
|
1839
|
-
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");
|
|
1840
1937
|
});
|
|
1841
|
-
return /* @__PURE__ */
|
|
1842
|
-
/* @__PURE__ */
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
/* @__PURE__ */
|
|
1846
|
-
/* @__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(
|
|
1847
1944
|
"button",
|
|
1848
1945
|
{
|
|
1849
1946
|
type: "button",
|
|
1850
1947
|
className: "ds-flow__step",
|
|
1851
|
-
onClick: () =>
|
|
1852
|
-
children:
|
|
1948
|
+
onClick: () => d(f),
|
|
1949
|
+
children: o.scenario(f)?.title ?? f
|
|
1853
1950
|
}
|
|
1854
1951
|
)
|
|
1855
|
-
] },
|
|
1856
|
-
] }, `${
|
|
1952
|
+
] }, g)) })
|
|
1953
|
+
] }, `${n.scenario}-${c}`);
|
|
1857
1954
|
}) })
|
|
1858
1955
|
] });
|
|
1859
1956
|
}
|
|
1860
|
-
function
|
|
1957
|
+
function ke({
|
|
1861
1958
|
scenarios: e,
|
|
1862
|
-
registry:
|
|
1863
|
-
onOpenScenario:
|
|
1959
|
+
registry: o,
|
|
1960
|
+
onOpenScenario: a
|
|
1864
1961
|
}) {
|
|
1865
|
-
const
|
|
1866
|
-
return /* @__PURE__ */
|
|
1867
|
-
/* @__PURE__ */
|
|
1868
|
-
/* @__PURE__ */
|
|
1869
|
-
|
|
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 })
|
|
1870
1974
|
] }),
|
|
1871
|
-
|
|
1872
|
-
/* @__PURE__ */
|
|
1873
|
-
|
|
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,
|
|
1874
1978
|
" · ",
|
|
1875
|
-
|
|
1876
|
-
|
|
1979
|
+
d.status === "approved" && !d.approvedAt ? i.inspector.approvalPendingStatus : i.status[d.status],
|
|
1980
|
+
d.a11y.keyboard === "full" ? ` · ${i.home.keyboardBadge}` : ""
|
|
1877
1981
|
] })
|
|
1878
|
-
] }) },
|
|
1982
|
+
] }) }, d.id)) });
|
|
1879
1983
|
}
|
|
1880
|
-
function
|
|
1881
|
-
const
|
|
1882
|
-
location:
|
|
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,
|
|
1883
1987
|
controls: r,
|
|
1884
|
-
viewport:
|
|
1988
|
+
viewport: n,
|
|
1885
1989
|
setControls: c,
|
|
1886
1990
|
setScenarioView: h,
|
|
1887
|
-
navigate:
|
|
1888
|
-
openScenario:
|
|
1889
|
-
openComponent:
|
|
1890
|
-
} =
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
const
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
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) {
|
|
1904
2047
|
case "K":
|
|
1905
2048
|
c({ keyboardMode: !r.keyboardMode });
|
|
1906
2049
|
break;
|
|
@@ -1910,24 +2053,24 @@ function St({ product: e }) {
|
|
|
1910
2053
|
default:
|
|
1911
2054
|
return;
|
|
1912
2055
|
}
|
|
1913
|
-
|
|
2056
|
+
C.preventDefault();
|
|
1914
2057
|
}
|
|
1915
2058
|
};
|
|
1916
|
-
return window.addEventListener("keydown",
|
|
2059
|
+
return window.addEventListener("keydown", N), () => window.removeEventListener("keydown", N);
|
|
1917
2060
|
}, [r.keyboardMode, r.inspector, c]);
|
|
1918
|
-
const
|
|
2061
|
+
const H = T(() => r.persona && r.persona !== s?.persona ? o.persona(r.persona)?.permissions ?? [] : o.permissionsOf(s), [r.persona, o, s]), j = T(
|
|
1919
2062
|
() => ({
|
|
1920
|
-
scenario:
|
|
1921
|
-
persona:
|
|
1922
|
-
permissions:
|
|
1923
|
-
can: (
|
|
1924
|
-
data:
|
|
1925
|
-
fixture:
|
|
2063
|
+
scenario: s,
|
|
2064
|
+
persona: $,
|
|
2065
|
+
permissions: H,
|
|
2066
|
+
can: (N) => H.includes(N),
|
|
2067
|
+
data: I,
|
|
2068
|
+
fixture: O,
|
|
1926
2069
|
network: r.network,
|
|
1927
|
-
isLoading:
|
|
1928
|
-
error:
|
|
1929
|
-
rules:
|
|
1930
|
-
viewport:
|
|
2070
|
+
isLoading: B,
|
|
2071
|
+
error: U,
|
|
2072
|
+
rules: o.rulesOf(s),
|
|
2073
|
+
viewport: n,
|
|
1931
2074
|
themeMode: r.themeMode,
|
|
1932
2075
|
locale: r.locale,
|
|
1933
2076
|
a11y: {
|
|
@@ -1935,34 +2078,34 @@ function St({ product: e }) {
|
|
|
1935
2078
|
reducedMotion: r.reducedMotion,
|
|
1936
2079
|
textScale: r.textScale
|
|
1937
2080
|
},
|
|
1938
|
-
navigate:
|
|
1939
|
-
openScenario:
|
|
2081
|
+
navigate: u,
|
|
2082
|
+
openScenario: g
|
|
1940
2083
|
}),
|
|
1941
2084
|
[
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
2085
|
+
s,
|
|
2086
|
+
$,
|
|
2087
|
+
H,
|
|
2088
|
+
I,
|
|
2089
|
+
O,
|
|
1947
2090
|
r.network,
|
|
1948
2091
|
r.themeMode,
|
|
1949
2092
|
r.locale,
|
|
1950
2093
|
r.keyboardMode,
|
|
1951
2094
|
r.reducedMotion,
|
|
1952
2095
|
r.textScale,
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
2096
|
+
B,
|
|
2097
|
+
U,
|
|
2098
|
+
o,
|
|
2099
|
+
n,
|
|
2100
|
+
u,
|
|
2101
|
+
g
|
|
1959
2102
|
]
|
|
1960
|
-
),
|
|
1961
|
-
|
|
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,
|
|
1962
2105
|
{
|
|
1963
|
-
fixture:
|
|
1964
|
-
data:
|
|
1965
|
-
viewport:
|
|
2106
|
+
fixture: y.fixture,
|
|
2107
|
+
data: E,
|
|
2108
|
+
viewport: n,
|
|
1966
2109
|
themeMode: r.themeMode ?? "default",
|
|
1967
2110
|
locale: r.locale ?? "default",
|
|
1968
2111
|
a11y: {
|
|
@@ -1971,174 +2114,183 @@ function St({ product: e }) {
|
|
|
1971
2114
|
textScale: r.textScale
|
|
1972
2115
|
}
|
|
1973
2116
|
}
|
|
1974
|
-
) :
|
|
1975
|
-
/* @__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 }),
|
|
1976
2119
|
" ",
|
|
1977
|
-
|
|
1978
|
-
] }) }),
|
|
1979
|
-
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(
|
|
1980
2123
|
"div",
|
|
1981
2124
|
{
|
|
1982
2125
|
className: "ds-root",
|
|
1983
2126
|
"data-chrome": r.chrome ? "visible" : "hidden",
|
|
1984
2127
|
"data-appearance": r.chromeTheme ?? "dark",
|
|
1985
2128
|
"data-inspector": r.inspector ? "open" : "closed",
|
|
1986
|
-
"data-viewport":
|
|
2129
|
+
"data-viewport": n.id,
|
|
1987
2130
|
children: [
|
|
1988
|
-
r.chrome && /* @__PURE__ */
|
|
1989
|
-
|
|
2131
|
+
r.chrome && /* @__PURE__ */ t(
|
|
2132
|
+
it,
|
|
1990
2133
|
{
|
|
1991
2134
|
product: e,
|
|
1992
|
-
scenario:
|
|
1993
|
-
deploy:
|
|
2135
|
+
scenario: s,
|
|
2136
|
+
deploy: i,
|
|
1994
2137
|
inspectorOpen: r.inspector,
|
|
1995
2138
|
chromeTheme: r.chromeTheme ?? "dark",
|
|
1996
|
-
view:
|
|
2139
|
+
view: p,
|
|
2140
|
+
handoff: r.handoff,
|
|
1997
2141
|
onToggleInspector: () => c({ inspector: !r.inspector }),
|
|
1998
2142
|
onToggleChromeTheme: () => c({ chromeTheme: r.chromeTheme === "light" ? "dark" : "light" })
|
|
1999
2143
|
}
|
|
2000
2144
|
),
|
|
2001
|
-
r.chrome && /* @__PURE__ */
|
|
2002
|
-
|
|
2145
|
+
r.chrome && /* @__PURE__ */ t(
|
|
2146
|
+
ot,
|
|
2003
2147
|
{
|
|
2004
|
-
registry:
|
|
2005
|
-
activeScenario:
|
|
2148
|
+
registry: o,
|
|
2149
|
+
activeScenario: s,
|
|
2006
2150
|
activeComponent: r.component,
|
|
2007
2151
|
controls: r,
|
|
2008
|
-
onOpenScenario:
|
|
2009
|
-
onOpenComponent:
|
|
2152
|
+
onOpenScenario: g,
|
|
2153
|
+
onOpenComponent: f,
|
|
2010
2154
|
onViewChange: h
|
|
2011
2155
|
}
|
|
2012
2156
|
),
|
|
2013
|
-
/* @__PURE__ */
|
|
2014
|
-
|
|
2015
|
-
|
|
2157
|
+
/* @__PURE__ */ l("div", { className: "ds-stage-area", children: [
|
|
2158
|
+
Y ? /* @__PURE__ */ t("div", { className: "ds-stage-scroll", children: /* @__PURE__ */ t(
|
|
2159
|
+
Nt,
|
|
2016
2160
|
{
|
|
2017
|
-
registry:
|
|
2018
|
-
view:
|
|
2161
|
+
registry: o,
|
|
2162
|
+
view: p,
|
|
2163
|
+
handoff: r.handoff,
|
|
2019
2164
|
onViewChange: h,
|
|
2020
|
-
onOpenScenario:
|
|
2165
|
+
onOpenScenario: g
|
|
2021
2166
|
}
|
|
2022
|
-
) }) : /* @__PURE__ */
|
|
2023
|
-
|
|
2167
|
+
) }) : /* @__PURE__ */ t(
|
|
2168
|
+
wt,
|
|
2024
2169
|
{
|
|
2025
|
-
ref:
|
|
2026
|
-
viewport:
|
|
2170
|
+
ref: b,
|
|
2171
|
+
viewport: n,
|
|
2027
2172
|
textScale: r.textScale,
|
|
2028
2173
|
reducedMotion: r.reducedMotion,
|
|
2029
2174
|
keyboardMode: r.keyboardMode,
|
|
2030
|
-
children:
|
|
2175
|
+
children: x
|
|
2031
2176
|
}
|
|
2032
2177
|
),
|
|
2033
|
-
r.chrome && /* @__PURE__ */
|
|
2034
|
-
|
|
2178
|
+
r.chrome && /* @__PURE__ */ t(
|
|
2179
|
+
pt,
|
|
2035
2180
|
{
|
|
2036
|
-
registry:
|
|
2181
|
+
registry: o,
|
|
2037
2182
|
controls: r,
|
|
2038
|
-
scenarioActive: !!
|
|
2039
|
-
component:
|
|
2040
|
-
componentFixture:
|
|
2183
|
+
scenarioActive: !!s,
|
|
2184
|
+
component: m,
|
|
2185
|
+
componentFixture: y,
|
|
2041
2186
|
onChange: c
|
|
2042
2187
|
}
|
|
2043
2188
|
)
|
|
2044
2189
|
] }),
|
|
2045
|
-
r.chrome && /* @__PURE__ */
|
|
2046
|
-
|
|
2190
|
+
r.chrome && /* @__PURE__ */ t(
|
|
2191
|
+
ht,
|
|
2047
2192
|
{
|
|
2048
|
-
registry:
|
|
2049
|
-
scenario:
|
|
2050
|
-
component:
|
|
2051
|
-
componentFixture:
|
|
2193
|
+
registry: o,
|
|
2194
|
+
scenario: s,
|
|
2195
|
+
component: m,
|
|
2196
|
+
componentFixture: y,
|
|
2052
2197
|
controls: r,
|
|
2053
|
-
focusedNode:
|
|
2054
|
-
tabStopCount:
|
|
2198
|
+
focusedNode: S,
|
|
2199
|
+
tabStopCount: _.length
|
|
2055
2200
|
}
|
|
2056
2201
|
),
|
|
2057
|
-
r.keyboardMode && /* @__PURE__ */
|
|
2058
|
-
!r.chrome && /* @__PURE__ */
|
|
2202
|
+
r.keyboardMode && /* @__PURE__ */ t(kt, { stops: _ }),
|
|
2203
|
+
!r.chrome && /* @__PURE__ */ t(
|
|
2059
2204
|
"button",
|
|
2060
2205
|
{
|
|
2061
2206
|
type: "button",
|
|
2062
2207
|
className: "ds-chrome ds-restore",
|
|
2063
2208
|
onClick: () => c({ chrome: !0 }),
|
|
2064
|
-
children:
|
|
2209
|
+
children: a.shell.restoreChrome
|
|
2065
2210
|
}
|
|
2066
2211
|
)
|
|
2067
2212
|
]
|
|
2068
2213
|
}
|
|
2069
2214
|
) });
|
|
2070
2215
|
}
|
|
2071
|
-
function
|
|
2216
|
+
function Z(e) {
|
|
2072
2217
|
return new Date(e.length === 10 ? `${e}T00:00:00` : e);
|
|
2073
2218
|
}
|
|
2074
|
-
function
|
|
2075
|
-
const
|
|
2076
|
-
let
|
|
2077
|
-
const r =
|
|
2078
|
-
return (r < 0 || r === 0 &&
|
|
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;
|
|
2079
2224
|
}
|
|
2080
|
-
function
|
|
2081
|
-
const
|
|
2082
|
-
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);
|
|
2083
2228
|
}
|
|
2084
2229
|
export {
|
|
2085
|
-
|
|
2230
|
+
It as CONTRAST_THRESHOLDS,
|
|
2086
2231
|
L as DEFAULT_LABELS,
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
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
|
-
|
|
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,
|
|
2139
2291
|
P as useLabels,
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2292
|
+
ze as useScenarioData,
|
|
2293
|
+
ye as validateProduct,
|
|
2294
|
+
to as validateScenario
|
|
2143
2295
|
};
|
|
2144
2296
|
//# sourceMappingURL=index.js.map
|