@brucesantos/design-space 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { jsxs as u, jsx as o, Fragment as A } from "react/jsx-runtime";
2
- import { useState as $, useEffect as I, useMemo as C, useCallback as E, useContext as le, createContext as ue, useRef as Q, forwardRef as he } from "react";
3
- import { S as pe, v as me, P as g, N as se, s as fe, c as be, g as ve } from "./contrast-BseNi5QD.js";
2
+ import { useState as $, useEffect as I, useMemo as C, useCallback as E, useContext as ue, createContext as he, useRef as Q, forwardRef as pe } from "react";
3
+ import { S as se, v as me, P as g, N as ie, s as fe, c as be, g as ve } from "./contrast-BseNi5QD.js";
4
4
  import { C as At, a as Pt, b as Lt, d as $t, e as Et, f as Ft, h as Rt, i as Dt, j as Ot, k as It, p as Bt, r as Wt, l as jt, m as Ht, n as Kt } from "./contrast-BseNi5QD.js";
5
5
  function ge(e) {
6
6
  const t = new Map(e.scenarios.map((d) => [d.id, d])), n = new Map(
7
7
  (e.components ?? []).map((d) => [d.id, d])
8
- ), s = new Map(e.personas.map((d) => [d.id, d])), l = new Map(e.fixtures.map((d) => [d.id, d])), r = new Map((e.rules ?? []).map((d) => [d.id, d])), a = new Map(e.modules.map((d) => [d.id, d])), c = new Map(
8
+ ), s = new Map(e.personas.map((d) => [d.id, d])), l = new Map(e.fixtures.map((d) => [d.id, d])), a = new Map((e.rules ?? []).map((d) => [d.id, d])), r = new Map(e.modules.map((d) => [d.id, d])), c = new Map(
9
9
  e.modules.flatMap((d) => (d.flows ?? []).map((f) => [f.id, f]))
10
10
  ), h = e.modules.map((d) => ({
11
11
  module: d,
@@ -34,10 +34,10 @@ function ge(e) {
34
34
  },
35
35
  persona: i,
36
36
  fixture: (d) => d ? l.get(d) : void 0,
37
- rule: (d) => d ? r.get(d) : void 0,
38
- module: (d) => d ? a.get(d) : void 0,
37
+ rule: (d) => d ? a.get(d) : void 0,
38
+ module: (d) => d ? r.get(d) : void 0,
39
39
  flow: (d) => d ? c.get(d) : void 0,
40
- rulesOf: (d) => (d?.rules ?? []).map((f) => r.get(f)).filter((f) => !!f),
40
+ rulesOf: (d) => (d?.rules ?? []).map((f) => a.get(f)).filter((f) => !!f),
41
41
  permissionsOf: S,
42
42
  scenariosForRoute: (d, f) => {
43
43
  const k = d.split("?")[0];
@@ -58,7 +58,7 @@ function ge(e) {
58
58
  search: (d, f) => {
59
59
  const k = te(d), M = x(f);
60
60
  return k ? M.filter((_) => {
61
- const T = a.get(_.id.split(".")[0] ?? "")?.name ?? "";
61
+ const T = r.get(_.id.split(".")[0] ?? "")?.name ?? "";
62
62
  return te(
63
63
  [
64
64
  _.title,
@@ -76,7 +76,7 @@ function ge(e) {
76
76
  byStatus: (d) => e.scenarios.filter((f) => f.status === d),
77
77
  coverage: (d) => {
78
78
  const f = Object.fromEntries(
79
- pe.map((k) => [k, 0])
79
+ se.map((k) => [k, 0])
80
80
  );
81
81
  for (const k of x(d)) f[k.status] += 1;
82
82
  return f;
@@ -86,7 +86,7 @@ function ge(e) {
86
86
  function te(e) {
87
87
  return e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").trim();
88
88
  }
89
- const ie = [
89
+ const ce = [
90
90
  { id: "fit", label: "Ajustar" },
91
91
  { id: "mobile", label: "Celular", width: 390, height: 844 },
92
92
  { id: "tablet", label: "Tablet", width: 834, height: 1112 },
@@ -94,15 +94,15 @@ const ie = [
94
94
  { id: "custom", label: "Personalizado" }
95
95
  ], we = [1, 1.25, 1.5, 2];
96
96
  function ke(e, t) {
97
- const n = new URLSearchParams(e), s = n.get(g.component) ?? void 0, l = t.component(s), r = n.get(g.scenario) ?? void 0, a = l ? void 0 : t.scenario(r), c = n.get(g.fixture) ?? void 0, h = l ? c ?? t.componentFixture(l.id, l.defaultFixture)?.id ?? l.fixtures?.[0]?.id : void 0, p = n.get(g.network), m = Number(n.get(g.textScale)), v = n.get(g.view), i = a?.status === "ported" || v === "ported" || n.get(g.showPorted) === "1" ? "ported" : "active";
97
+ const n = new URLSearchParams(e), s = n.get(g.component) ?? void 0, l = t.component(s), a = n.get(g.scenario) ?? void 0, r = l ? void 0 : t.scenario(a), c = n.get(g.fixture) ?? void 0, h = l ? c ?? t.componentFixture(l.id, l.defaultFixture)?.id ?? l.fixtures?.[0]?.id : void 0, p = n.get(g.network), m = Number(n.get(g.textScale)), v = n.get(g.view), i = r?.status === "ported" || v === "ported" || n.get(g.showPorted) === "1" ? "ported" : "active";
98
98
  return {
99
- scenario: a?.id,
99
+ scenario: r?.id,
100
100
  view: i,
101
101
  showPorted: i === "ported",
102
102
  component: l?.id,
103
- persona: n.get(g.persona) ?? a?.persona,
104
- fixture: l ? h : c ?? a?.fixture,
105
- network: ye(p) ? p : a?.network ?? "success",
103
+ persona: n.get(g.persona) ?? r?.persona,
104
+ fixture: l ? h : c ?? r?.fixture,
105
+ network: ye(p) ? p : r?.network ?? "success",
106
106
  viewport: n.get(g.viewport) ?? "fit",
107
107
  customWidth: _e(n.get(g.customWidth)),
108
108
  themeMode: n.get(g.themeMode) ?? t.product.theme?.modes?.[0],
@@ -123,10 +123,10 @@ function q(e, t) {
123
123
  e.component ? n.set(g.component, e.component) : e.scenario && n.set(g.scenario, e.scenario), ee(e) === "ported" && n.set(g.view, "ported"), e.persona && e.persona !== s?.persona && n.set(g.persona, e.persona), e.component && e.fixture ? n.set(g.fixture, e.fixture) : e.fixture && e.fixture !== s?.fixture && n.set(g.fixture, e.fixture), e.network !== (s?.network ?? "success") && n.set(g.network, e.network), e.viewport !== "fit" && n.set(g.viewport, e.viewport), e.viewport === "custom" && e.customWidth && n.set(g.customWidth, String(e.customWidth));
124
124
  const l = t.product.theme?.modes?.[0];
125
125
  e.themeMode && e.themeMode !== l && n.set(g.themeMode, e.themeMode);
126
- const r = t.product.theme?.locales?.[0];
127
- e.locale && e.locale !== r && n.set(g.locale, e.locale);
128
- const a = t.product.dataSources?.default ?? "fixtures";
129
- e.dataSource && e.dataSource !== a && n.set(g.dataSource, e.dataSource), e.chromeTheme === "light" && n.set(g.chromeTheme, "light"), e.chrome || n.set(g.chrome, "0"), e.keyboardMode && n.set(g.keyboardMode, "1"), e.reducedMotion && n.set(g.reducedMotion, "1"), e.textScale !== 1 && n.set(g.textScale, String(e.textScale)), e.inspector || n.set(g.inspector, "0");
126
+ const a = t.product.theme?.locales?.[0];
127
+ e.locale && e.locale !== a && n.set(g.locale, e.locale);
128
+ const r = t.product.dataSources?.default ?? "fixtures";
129
+ e.dataSource && e.dataSource !== r && n.set(g.dataSource, e.dataSource), e.chromeTheme === "light" && n.set(g.chromeTheme, "light"), e.chrome || n.set(g.chrome, "0"), e.keyboardMode && n.set(g.keyboardMode, "1"), e.reducedMotion && n.set(g.reducedMotion, "1"), e.textScale !== 1 && n.set(g.textScale, String(e.textScale)), e.inspector || n.set(g.inspector, "0");
130
130
  const c = n.toString();
131
131
  return c ? `?${c}` : "";
132
132
  }
@@ -139,7 +139,7 @@ function Ne(e) {
139
139
  const s = C(() => ke(t.search, e), [t.search, e]), l = E((v, i, N = !1) => {
140
140
  const x = `${v}${i}`;
141
141
  N ? window.history.replaceState(null, "", x) : window.history.pushState(null, "", x), n({ path: v, search: i });
142
- }, []), r = E(
142
+ }, []), a = E(
143
143
  (v) => {
144
144
  const i = v.view ?? (v.showPorted === void 0 ? void 0 : v.showPorted ? "ported" : "active"), N = {
145
145
  ...s,
@@ -149,7 +149,7 @@ function Ne(e) {
149
149
  l(t.path, q(N, e), !0);
150
150
  },
151
151
  [s, t.path, l, e]
152
- ), a = E(
152
+ ), r = E(
153
153
  (v) => {
154
154
  const i = e.scenario(s.scenario), N = !i || (v === "ported" ? i.status === "ported" : i.status !== "ported"), x = {
155
155
  ...s,
@@ -208,8 +208,8 @@ function Ne(e) {
208
208
  location: t,
209
209
  controls: s,
210
210
  viewport: m,
211
- setControls: r,
212
- setScenarioView: a,
211
+ setControls: a,
212
+ setScenarioView: r,
213
213
  navigate: c,
214
214
  openScenario: h,
215
215
  openComponent: p
@@ -219,14 +219,14 @@ function ee(e) {
219
219
  return e.view ?? (e.showPorted ? "ported" : "active");
220
220
  }
221
221
  function xe(e) {
222
- const t = ie.find((n) => n.id === e.viewport);
222
+ const t = ce.find((n) => n.id === e.viewport);
223
223
  return e.viewport === "custom" ? { id: "custom", label: "Personalizado", width: e.customWidth ?? 1024 } : t ?? { id: "fit", label: "Ajustar" };
224
224
  }
225
225
  function oe() {
226
226
  return typeof window > "u" ? { path: "/", search: "" } : { path: window.location.pathname, search: window.location.search };
227
227
  }
228
228
  function ye(e) {
229
- return e !== null && se.includes(e);
229
+ return e !== null && ie.includes(e);
230
230
  }
231
231
  function Se(e) {
232
232
  return e === "dark" || e === "light";
@@ -238,16 +238,16 @@ function _e(e) {
238
238
  }
239
239
  function Me(e, t) {
240
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];
241
+ for (const [a, r] of n.entries()) {
242
+ if (r === "*")
243
+ return l["*"] = s.slice(a).join("/"), l;
244
+ const c = s[a];
245
245
  if (c === void 0) return null;
246
- if (a.startsWith(":")) {
247
- l[a.slice(1)] = c;
246
+ if (r.startsWith(":")) {
247
+ l[r.slice(1)] = c;
248
248
  continue;
249
249
  }
250
- if (a !== c) return null;
250
+ if (r !== c) return null;
251
251
  }
252
252
  return n.length !== s.length ? null : l;
253
253
  }
@@ -303,18 +303,18 @@ const Z = {
303
303
  }
304
304
  };
305
305
  function gt(e) {
306
- const { id: t, label: n, baseUrl: s, path: l, init: r, fallbackToFixture: a = !0 } = e;
306
+ const { id: t, label: n, baseUrl: s, path: l, init: a, fallbackToFixture: r = !0 } = e;
307
307
  return {
308
308
  id: t,
309
309
  label: n,
310
310
  load: async (c) => {
311
311
  const h = new URL(l ? l(c) : c.scenario.route, s);
312
312
  try {
313
- const p = await fetch(h, r);
313
+ const p = await fetch(h, a);
314
314
  if (!p.ok) throw new Error(`${p.status} ${p.statusText}`);
315
315
  return await p.json();
316
316
  } catch (p) {
317
- if (a) return X(c.fixture);
317
+ if (r) return X(c.fixture);
318
318
  throw new Error(`Adapter "${t}" falhou em ${h.toString()}`, { cause: p });
319
319
  }
320
320
  }
@@ -324,23 +324,23 @@ function Le(e) {
324
324
  return new Promise((t) => setTimeout(t, e));
325
325
  }
326
326
  function $e(e) {
327
- const { scenario: t, fixture: n, network: s, adapter: l } = e, [r, a] = $({
327
+ const { scenario: t, fixture: n, network: s, adapter: l } = e, [a, r] = $({
328
328
  data: void 0,
329
329
  isLoading: !!t,
330
330
  error: void 0
331
331
  });
332
332
  return I(() => {
333
333
  if (!t) {
334
- a({ data: void 0, isLoading: !1, error: void 0 });
334
+ r({ data: void 0, isLoading: !1, error: void 0 });
335
335
  return;
336
336
  }
337
337
  let c = !0;
338
- a({ data: void 0, isLoading: !0, error: void 0 });
338
+ r({ data: void 0, isLoading: !0, error: void 0 });
339
339
  const h = l ?? Z;
340
340
  return Promise.resolve(h.load({ scenario: t, fixture: n, network: s })).then((p) => {
341
- c && a({ data: p, isLoading: !1, error: void 0 });
341
+ c && r({ data: p, isLoading: !1, error: void 0 });
342
342
  }).catch((p) => {
343
- c && a({
343
+ c && r({
344
344
  data: void 0,
345
345
  isLoading: !1,
346
346
  error: p instanceof Error ? p : new Error(String(p))
@@ -348,7 +348,7 @@ function $e(e) {
348
348
  }), () => {
349
349
  c = !1;
350
350
  };
351
- }, [t, n, s, l]), r;
351
+ }, [t, n, s, l]), a;
352
352
  }
353
353
  const Ee = {
354
354
  a: "link",
@@ -426,18 +426,18 @@ function De(e) {
426
426
  function Oe(e) {
427
427
  const t = e.getAttribute("aria-labelledby");
428
428
  if (t) {
429
- const a = t.split(/\s+/).map((c) => e.ownerDocument.getElementById(c)?.textContent?.trim() ?? "").filter(Boolean).join(" ");
430
- if (a) return { name: a, nameFrom: "aria-labelledby" };
429
+ const r = t.split(/\s+/).map((c) => e.ownerDocument.getElementById(c)?.textContent?.trim() ?? "").filter(Boolean).join(" ");
430
+ if (r) return { name: r, nameFrom: "aria-labelledby" };
431
431
  }
432
432
  const n = e.getAttribute("aria-label")?.trim();
433
433
  if (n) return { name: n, nameFrom: "aria-label" };
434
434
  if (e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement) {
435
- const a = Array.from(e.labels ?? []).map((c) => c.textContent?.trim() ?? "").filter(Boolean);
436
- if (a.length) return { name: a.join(" "), nameFrom: "label" };
435
+ const r = Array.from(e.labels ?? []).map((c) => c.textContent?.trim() ?? "").filter(Boolean);
436
+ if (r.length) return { name: r.join(" "), nameFrom: "label" };
437
437
  }
438
438
  if (e instanceof HTMLImageElement) {
439
- const a = e.getAttribute("alt");
440
- if (a !== null) return { name: a, nameFrom: "alt" };
439
+ const r = e.getAttribute("alt");
440
+ if (r !== null) return { name: r, nameFrom: "alt" };
441
441
  }
442
442
  const s = e.getAttribute("title")?.trim(), l = je(e);
443
443
  return l ? { name: l, nameFrom: "content" } : s ? { name: s, nameFrom: "title" } : e instanceof HTMLInputElement && e.value ? { name: e.value, nameFrom: "value" } : e.getAttribute("placeholder")?.trim() ? { name: "", nameFrom: "none" } : { name: "", nameFrom: "none" };
@@ -452,8 +452,8 @@ function Ie(e) {
452
452
  }
453
453
  function Be(e) {
454
454
  const t = [], n = (s, l = s.replace("aria-", "")) => {
455
- const r = e.getAttribute(s);
456
- r !== null && r !== "false" && t.push(r === "true" || r === "" ? l : `${l}=${r}`);
455
+ const a = e.getAttribute(s);
456
+ a !== null && a !== "false" && t.push(a === "true" || a === "" ? l : `${l}=${a}`);
457
457
  };
458
458
  return e.disabled && t.push("disabled"), e.getAttribute("aria-disabled") === "true" && t.push("disabled"), e.required && t.push("required"), e.readOnly && t.push("readonly"), e.checked && t.push("checked"), n("aria-expanded"), n("aria-selected"), n("aria-checked"), n("aria-pressed"), n("aria-current"), n("aria-invalid"), n("aria-busy"), n("aria-live"), n("aria-haspopup"), n("aria-level", "level"), e.ownerDocument.activeElement === e && t.push("focused"), [...new Set(t)];
459
459
  }
@@ -497,13 +497,13 @@ function Ke(e = document) {
497
497
  });
498
498
  }
499
499
  function ze(e, t) {
500
- const [n, s] = $(), [l, r] = $([]), a = E(() => {
500
+ const [n, s] = $(), [l, a] = $([]), r = E(() => {
501
501
  const c = t.current;
502
502
  if (!c) {
503
- r([]);
503
+ a([]);
504
504
  return;
505
505
  }
506
- r(
506
+ a(
507
507
  Ke(c).map((h, p) => ({
508
508
  index: p + 1,
509
509
  element: h,
@@ -514,16 +514,16 @@ function ze(e, t) {
514
514
  }, [t]);
515
515
  return I(() => {
516
516
  if (!e) {
517
- s(void 0), r([]);
517
+ s(void 0), a([]);
518
518
  return;
519
519
  }
520
520
  const c = () => s(Re(document.activeElement));
521
- document.addEventListener("focusin", c), window.addEventListener("resize", a), window.addEventListener("scroll", a, !0), c(), a();
522
- const h = t.current, p = h ? new MutationObserver(() => a()) : void 0;
521
+ document.addEventListener("focusin", c), window.addEventListener("resize", r), window.addEventListener("scroll", r, !0), c(), r();
522
+ const h = t.current, p = h ? new MutationObserver(() => r()) : void 0;
523
523
  return p?.observe(h, { childList: !0, subtree: !0, attributes: !0 }), () => {
524
- document.removeEventListener("focusin", c), window.removeEventListener("resize", a), window.removeEventListener("scroll", a, !0), p?.disconnect();
524
+ document.removeEventListener("focusin", c), window.removeEventListener("resize", r), window.removeEventListener("scroll", r, !0), p?.disconnect();
525
525
  };
526
- }, [e, a, t]), { focused: n, tabStops: l, refresh: a };
526
+ }, [e, r, t]), { focused: n, tabStops: l, refresh: r };
527
527
  }
528
528
  const L = {
529
529
  status: {
@@ -686,6 +686,7 @@ const L = {
686
686
  },
687
687
  home: {
688
688
  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"}.`,
689
+ statusLegend: "Legenda dos status",
689
690
  withoutModule: "Sem módulo",
690
691
  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
692
  emptyModule: "Nenhuma situação registrada neste módulo ainda.",
@@ -859,6 +860,7 @@ const L = {
859
860
  },
860
861
  home: {
861
862
  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"}.`,
863
+ statusLegend: "Status legend",
862
864
  withoutModule: "No module",
863
865
  withoutModuleHint: "The ID prefix does not match a registered module, so these states do not appear in module navigation.",
864
866
  emptyModule: "No states have been registered in this module yet.",
@@ -881,9 +883,9 @@ function Ue(e) {
881
883
  }
882
884
  return t;
883
885
  }
884
- const ce = ue(L);
886
+ const de = he(L);
885
887
  function P() {
886
- return le(ce);
888
+ return ue(de);
887
889
  }
888
890
  const kt = L.status, Nt = L.statusMeaning, xt = L.network, yt = L.keyboard;
889
891
  function Ve({
@@ -892,8 +894,8 @@ function Ve({
892
894
  activeComponent: n,
893
895
  controls: s,
894
896
  onOpenScenario: l,
895
- onOpenComponent: r,
896
- onViewChange: a
897
+ onOpenComponent: a,
898
+ onViewChange: r
897
899
  }) {
898
900
  const c = P(), [h, p] = $(n ? "components" : "flows"), [m, v] = $(""), [i, N] = $(/* @__PURE__ */ new Set()), x = Q(null), S = Q(/* @__PURE__ */ new Map()), d = ee(s), f = e.byStatus("ported").length, k = e.activeScenarios({ view: d }).length, M = d === "ported" ? c.sidebar.portedReferences(f) : c.sidebar.activeWork;
899
901
  I(() => {
@@ -910,9 +912,9 @@ function Ve({
910
912
  e.search(m, { view: d }).map((b) => b.id)
911
913
  );
912
914
  }, [m, e, d]), T = C(() => {
913
- const b = ae(m);
915
+ const b = re(m);
914
916
  return (e.product.components ?? []).filter(
915
- (w) => ae([w.name, w.id, w.group, w.description].join(" ")).includes(
917
+ (w) => re([w.name, w.id, w.group, w.description].join(" ")).includes(
916
918
  b
917
919
  )
918
920
  );
@@ -989,7 +991,7 @@ function Ve({
989
991
  {
990
992
  type: "button",
991
993
  className: "ds-text-action",
992
- onClick: () => a("active"),
994
+ onClick: () => r("active"),
993
995
  children: c.sidebar.backToActive
994
996
  }
995
997
  )
@@ -1002,7 +1004,7 @@ function Ve({
1002
1004
  {
1003
1005
  type: "button",
1004
1006
  className: "ds-text-action",
1005
- onClick: () => a("ported"),
1007
+ onClick: () => r("ported"),
1006
1008
  children: c.sidebar.viewPorted(f)
1007
1009
  }
1008
1010
  )
@@ -1029,7 +1031,7 @@ function Ve({
1029
1031
  type: "button",
1030
1032
  className: "ds-component-item",
1031
1033
  "aria-current": y.id === n,
1032
- onClick: () => r(y.id),
1034
+ onClick: () => a(y.id),
1033
1035
  onKeyDown: (G) => H(y.id, G),
1034
1036
  children: [
1035
1037
  /* @__PURE__ */ o("span", { children: y.name }),
@@ -1046,7 +1048,7 @@ function Ve({
1046
1048
  {
1047
1049
  type: "button",
1048
1050
  className: "ds-text-action",
1049
- onClick: () => a("ported"),
1051
+ onClick: () => r("ported"),
1050
1052
  children: c.sidebar.viewPorted(f)
1051
1053
  }
1052
1054
  ) }),
@@ -1082,7 +1084,7 @@ function Ge(e) {
1082
1084
  ]
1083
1085
  }
1084
1086
  ),
1085
- n && /* @__PURE__ */ o("ul", { className: "ds-module__scenarios", children: t.scenarios.map((s) => /* @__PURE__ */ o(re, { scenario: s, ...e }, s.id)) })
1087
+ n && /* @__PURE__ */ o("ul", { className: "ds-module__scenarios", children: t.scenarios.map((s) => /* @__PURE__ */ o(ae, { scenario: s, ...e }, s.id)) })
1086
1088
  ] }, t.module.id);
1087
1089
  }),
1088
1090
  e.orphans.length > 0 && /* @__PURE__ */ u("section", { className: "ds-module", children: [
@@ -1091,31 +1093,31 @@ function Ge(e) {
1091
1093
  /* @__PURE__ */ o("span", { children: e.withoutModuleLabel }),
1092
1094
  /* @__PURE__ */ o("span", { className: "ds-module__count", children: e.orphans.length })
1093
1095
  ] }),
1094
- /* @__PURE__ */ o("ul", { className: "ds-module__scenarios", children: e.orphans.map((t) => /* @__PURE__ */ o(re, { scenario: t, ...e }, t.id)) })
1096
+ /* @__PURE__ */ o("ul", { className: "ds-module__scenarios", children: e.orphans.map((t) => /* @__PURE__ */ o(ae, { scenario: t, ...e }, t.id)) })
1095
1097
  ] })
1096
1098
  ] });
1097
1099
  }
1098
- function re({
1100
+ function ae({
1099
1101
  scenario: e,
1100
1102
  activeScenario: t,
1101
1103
  onOpen: n,
1102
1104
  onKeyDown: s,
1103
1105
  setItemRef: l
1104
1106
  }) {
1105
- const r = P().status[e.status];
1107
+ const a = P().status[e.status];
1106
1108
  return /* @__PURE__ */ o("li", { children: /* @__PURE__ */ u(
1107
1109
  "button",
1108
1110
  {
1109
- ref: (a) => l(e.id, a),
1111
+ ref: (r) => l(e.id, r),
1110
1112
  type: "button",
1111
1113
  className: "ds-scenario",
1112
1114
  "aria-current": e.id === t,
1113
1115
  onClick: () => n(e.id),
1114
- onKeyDown: (a) => s(e.id, a),
1116
+ onKeyDown: (r) => s(e.id, r),
1115
1117
  children: [
1116
- /* @__PURE__ */ o("span", { className: "ds-status-dot", "data-status": e.status, title: r }),
1118
+ /* @__PURE__ */ o("span", { className: "ds-status-dot", "data-status": e.status, title: a }),
1117
1119
  /* @__PURE__ */ o("span", { className: "ds-scenario__title", children: e.title }),
1118
- /* @__PURE__ */ o("span", { className: "ds-visually-hidden", children: r })
1120
+ /* @__PURE__ */ o("span", { className: "ds-visually-hidden", children: a })
1119
1121
  ]
1120
1122
  }
1121
1123
  ) });
@@ -1128,7 +1130,7 @@ function qe(e) {
1128
1130
  }
1129
1131
  return [...t.entries()];
1130
1132
  }
1131
- function ae(e) {
1133
+ function re(e) {
1132
1134
  return e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").trim();
1133
1135
  }
1134
1136
  function Ye(e) {
@@ -1146,8 +1148,8 @@ function Qe({
1146
1148
  deploy: n,
1147
1149
  inspectorOpen: s,
1148
1150
  chromeTheme: l,
1149
- view: r,
1150
- onToggleInspector: a,
1151
+ view: a,
1152
+ onToggleInspector: r,
1151
1153
  onToggleChromeTheme: c
1152
1154
  }) {
1153
1155
  const h = P().topbar, [p, m] = $(!1), v = async () => {
@@ -1155,7 +1157,7 @@ function Qe({
1155
1157
  origin: n.origin,
1156
1158
  overrides: {
1157
1159
  ...l === "light" ? { chromeTheme: l } : {},
1158
- ...r === "ported" ? { view: r } : {}
1160
+ ...a === "ported" ? { view: a } : {}
1159
1161
  }
1160
1162
  }) : `${n.origin}${window.location.pathname}${window.location.search}`;
1161
1163
  try {
@@ -1166,7 +1168,7 @@ function Qe({
1166
1168
  m(!0), window.setTimeout(() => m(!1), 1600);
1167
1169
  }, i = Xe(
1168
1170
  typeof window > "u" ? `${n.origin}/` : window.location.href
1169
- ), N = Ze(n.origin, l, r);
1171
+ ), N = Ze(n.origin, l, a);
1170
1172
  return /* @__PURE__ */ u("header", { className: "ds-chrome ds-topbar", children: [
1171
1173
  /* @__PURE__ */ u("div", { className: "ds-topbar__product", children: [
1172
1174
  /* @__PURE__ */ o(
@@ -1217,7 +1219,7 @@ function Qe({
1217
1219
  type: "button",
1218
1220
  className: "ds-btn",
1219
1221
  "aria-pressed": s,
1220
- onClick: a,
1222
+ onClick: r,
1221
1223
  children: h.panel
1222
1224
  }
1223
1225
  )
@@ -1254,9 +1256,9 @@ function tt({
1254
1256
  scenarioActive: n,
1255
1257
  component: s,
1256
1258
  componentFixture: l,
1257
- onChange: r
1259
+ onChange: a
1258
1260
  }) {
1259
- const a = P(), c = a.controls, { product: h } = e, p = h.dataSources?.adapters ?? [], m = h.theme?.modes ?? [], v = h.theme?.locales ?? [];
1261
+ const r = P(), c = r.controls, { product: h } = e, p = h.dataSources?.adapters ?? [], m = h.theme?.modes ?? [], v = h.theme?.locales ?? [];
1260
1262
  return /* @__PURE__ */ u("div", { className: "ds-chrome ds-controls", role: "group", "aria-label": c.region, children: [
1261
1263
  s?.fixtures?.length ? /* @__PURE__ */ u("div", { className: "ds-field", children: [
1262
1264
  /* @__PURE__ */ o("label", { htmlFor: "ds-component-fixture", children: c.componentFixture }),
@@ -1266,7 +1268,7 @@ function tt({
1266
1268
  id: "ds-component-fixture",
1267
1269
  className: "ds-select",
1268
1270
  value: l?.fixture?.id ?? "",
1269
- onChange: (i) => r({ fixture: i.target.value || void 0 }),
1271
+ onChange: (i) => a({ fixture: i.target.value || void 0 }),
1270
1272
  children: s.fixtures.map((i) => /* @__PURE__ */ o("option", { value: i.id, children: i.label }, i.id))
1271
1273
  }
1272
1274
  )
@@ -1279,7 +1281,7 @@ function tt({
1279
1281
  id: "ds-persona",
1280
1282
  className: "ds-select",
1281
1283
  value: t.persona ?? "",
1282
- onChange: (i) => r({ persona: i.target.value || void 0 }),
1284
+ onChange: (i) => a({ persona: i.target.value || void 0 }),
1283
1285
  children: [
1284
1286
  /* @__PURE__ */ o("option", { value: "", children: c.none }),
1285
1287
  h.personas.map((i) => /* @__PURE__ */ o("option", { value: i.id, children: i.name }, i.id))
@@ -1289,28 +1291,28 @@ function tt({
1289
1291
  ] }),
1290
1292
  n && /* @__PURE__ */ u("div", { className: "ds-field", children: [
1291
1293
  /* @__PURE__ */ o("span", { className: "ds-field__label", id: "ds-network-label", children: c.network }),
1292
- /* @__PURE__ */ o("div", { className: "ds-segmented", role: "group", "aria-labelledby": "ds-network-label", children: se.map((i) => /* @__PURE__ */ o(
1294
+ /* @__PURE__ */ o("div", { className: "ds-segmented", role: "group", "aria-labelledby": "ds-network-label", children: ie.map((i) => /* @__PURE__ */ o(
1293
1295
  "button",
1294
1296
  {
1295
1297
  type: "button",
1296
1298
  "aria-pressed": t.network === i,
1297
- onClick: () => r({ network: i }),
1298
- children: a.network[i]
1299
+ onClick: () => a({ network: i }),
1300
+ children: r.network[i]
1299
1301
  },
1300
1302
  i
1301
1303
  )) })
1302
1304
  ] }),
1303
1305
  /* @__PURE__ */ u("div", { className: "ds-field", children: [
1304
1306
  /* @__PURE__ */ o("span", { className: "ds-field__label", id: "ds-viewport-label", children: c.viewport }),
1305
- /* @__PURE__ */ o("div", { className: "ds-segmented", role: "group", "aria-labelledby": "ds-viewport-label", children: ie.map((i) => /* @__PURE__ */ o(
1307
+ /* @__PURE__ */ o("div", { className: "ds-segmented", role: "group", "aria-labelledby": "ds-viewport-label", children: ce.map((i) => /* @__PURE__ */ o(
1306
1308
  "button",
1307
1309
  {
1308
1310
  type: "button",
1309
1311
  className: "ds-icon-button",
1310
1312
  "aria-pressed": t.viewport === i.id,
1311
- "aria-label": a.viewport[i.id] ?? i.label,
1312
- title: a.viewport[i.id] ?? i.label,
1313
- onClick: () => r({ viewport: i.id }),
1313
+ "aria-label": r.viewport[i.id] ?? i.label,
1314
+ title: r.viewport[i.id] ?? i.label,
1315
+ onClick: () => a({ viewport: i.id }),
1314
1316
  children: /* @__PURE__ */ o(ot, { id: i.id })
1315
1317
  },
1316
1318
  i.id
@@ -1326,7 +1328,7 @@ function tt({
1326
1328
  style: { width: 88 },
1327
1329
  "aria-label": c.customWidth,
1328
1330
  value: t.customWidth ?? 1024,
1329
- onChange: (i) => r({ customWidth: Number(i.target.value) || void 0 })
1331
+ onChange: (i) => a({ customWidth: Number(i.target.value) || void 0 })
1330
1332
  }
1331
1333
  )
1332
1334
  ] }),
@@ -1338,7 +1340,7 @@ function tt({
1338
1340
  id: "ds-theme",
1339
1341
  className: "ds-select",
1340
1342
  value: t.themeMode ?? m[0],
1341
- onChange: (i) => r({ themeMode: i.target.value }),
1343
+ onChange: (i) => a({ themeMode: i.target.value }),
1342
1344
  children: m.map((i) => /* @__PURE__ */ o("option", { value: i, children: i }, i))
1343
1345
  }
1344
1346
  )
@@ -1351,7 +1353,7 @@ function tt({
1351
1353
  id: "ds-locale",
1352
1354
  className: "ds-select",
1353
1355
  value: t.locale ?? v[0],
1354
- onChange: (i) => r({ locale: i.target.value }),
1356
+ onChange: (i) => a({ locale: i.target.value }),
1355
1357
  children: v.map((i) => /* @__PURE__ */ o("option", { value: i, children: i }, i))
1356
1358
  }
1357
1359
  )
@@ -1364,7 +1366,7 @@ function tt({
1364
1366
  id: "ds-source",
1365
1367
  className: "ds-select",
1366
1368
  value: t.dataSource ?? "fixtures",
1367
- onChange: (i) => r({ dataSource: i.target.value }),
1369
+ onChange: (i) => a({ dataSource: i.target.value }),
1368
1370
  children: [
1369
1371
  /* @__PURE__ */ o("option", { value: "fixtures", children: c.fixturesOption }),
1370
1372
  p.filter((i) => i.id !== "fixtures").map((i) => /* @__PURE__ */ o("option", { value: i.id, children: i.label }, i.id))
@@ -1403,8 +1405,8 @@ function nt({
1403
1405
  component: n,
1404
1406
  componentFixture: s,
1405
1407
  controls: l,
1406
- focusedNode: r,
1407
- tabStopCount: a
1408
+ focusedNode: a,
1409
+ tabStopCount: r
1408
1410
  }) {
1409
1411
  const c = P().inspector, [h, p] = $("scenario"), m = e.issues.filter((v) => v.level === "error").length;
1410
1412
  return /* @__PURE__ */ u("aside", { className: "ds-chrome ds-inspector", "aria-label": c.region, children: [
@@ -1415,7 +1417,7 @@ function nt({
1415
1417
  ] }),
1416
1418
  /* @__PURE__ */ u("div", { className: "ds-inspector__body", role: "tabpanel", children: [
1417
1419
  h === "scenario" && /* @__PURE__ */ o(
1418
- rt,
1420
+ at,
1419
1421
  {
1420
1422
  registry: e,
1421
1423
  scenario: t,
@@ -1425,13 +1427,13 @@ function nt({
1425
1427
  }
1426
1428
  ),
1427
1429
  h === "a11y" && /* @__PURE__ */ o(
1428
- at,
1430
+ rt,
1429
1431
  {
1430
1432
  registry: e,
1431
1433
  scenario: t,
1432
- focusedNode: r,
1434
+ focusedNode: a,
1433
1435
  keyboardMode: l.keyboardMode,
1434
- tabStopCount: a
1436
+ tabStopCount: r
1435
1437
  }
1436
1438
  ),
1437
1439
  h === "diagnostics" && /* @__PURE__ */ o(st, { registry: e })
@@ -1455,85 +1457,85 @@ function J({
1455
1457
  }
1456
1458
  );
1457
1459
  }
1458
- function rt({
1460
+ function at({
1459
1461
  registry: e,
1460
1462
  scenario: t,
1461
1463
  component: n,
1462
1464
  componentFixture: s,
1463
1465
  controls: l
1464
1466
  }) {
1465
- const r = P(), a = r.inspector;
1467
+ const a = P(), r = a.inspector;
1466
1468
  if (!t)
1467
1469
  return n ? /* @__PURE__ */ u("div", { className: "ds-block", children: [
1468
- /* @__PURE__ */ o("h2", { className: "ds-block__title", children: a.componentReference }),
1470
+ /* @__PURE__ */ o("h2", { className: "ds-block__title", children: r.componentReference }),
1469
1471
  /* @__PURE__ */ o("p", { style: { color: "var(--ds-fg)", fontSize: 15, fontWeight: 600 }, children: n.name }),
1470
1472
  n.description && /* @__PURE__ */ o("p", { children: n.description }),
1471
1473
  /* @__PURE__ */ u("dl", { className: "ds-kv", style: { marginTop: 14 }, children: [
1472
- /* @__PURE__ */ o("dt", { children: a.id }),
1474
+ /* @__PURE__ */ o("dt", { children: r.id }),
1473
1475
  /* @__PURE__ */ o("dd", { style: { fontFamily: "var(--ds-mono)", fontSize: 11 }, children: n.id }),
1474
1476
  n.group && /* @__PURE__ */ u(A, { children: [
1475
- /* @__PURE__ */ o("dt", { children: a.componentGroup }),
1477
+ /* @__PURE__ */ o("dt", { children: r.componentGroup }),
1476
1478
  /* @__PURE__ */ o("dd", { children: n.group })
1477
1479
  ] }),
1478
1480
  s?.fixture && /* @__PURE__ */ u(A, { children: [
1479
- /* @__PURE__ */ o("dt", { children: a.componentFixture }),
1481
+ /* @__PURE__ */ o("dt", { children: r.componentFixture }),
1480
1482
  /* @__PURE__ */ u("dd", { children: [
1481
1483
  s.fixture.label,
1482
1484
  " ",
1483
1485
  /* @__PURE__ */ o("code", { children: s.fixture.id })
1484
1486
  ] }),
1485
1487
  s.fixture.description && /* @__PURE__ */ u(A, { children: [
1486
- /* @__PURE__ */ o("dt", { children: a.componentFixtureDescription }),
1488
+ /* @__PURE__ */ o("dt", { children: r.componentFixtureDescription }),
1487
1489
  /* @__PURE__ */ o("dd", { children: s.fixture.description })
1488
1490
  ] })
1489
1491
  ] })
1490
1492
  ] }),
1491
- s?.didFallback && s.fixture && /* @__PURE__ */ o("p", { className: "ds-note", "data-tone": "warn", children: a.componentFixtureFallback(
1493
+ s?.didFallback && s.fixture && /* @__PURE__ */ o("p", { className: "ds-note", "data-tone": "warn", children: r.componentFixtureFallback(
1492
1494
  s.requestedId ?? "",
1493
1495
  s.fixture.id
1494
1496
  ) })
1495
- ] }) : /* @__PURE__ */ o("p", { className: "ds-block", children: a.noScenario });
1497
+ ] }) : /* @__PURE__ */ o("p", { className: "ds-block", children: r.noScenario });
1496
1498
  const c = e.persona(l.persona ?? t.persona), h = l.persona ? e.persona(l.persona)?.permissions ?? [] : e.permissionsOf(t), p = e.rulesOf(t), m = e.fixture(l.fixture ?? t.fixture), v = !!(l.persona && l.persona !== t.persona);
1497
1499
  return /* @__PURE__ */ u(A, { children: [
1498
1500
  /* @__PURE__ */ u("div", { className: "ds-block", children: [
1499
- /* @__PURE__ */ o("h2", { className: "ds-block__title", children: a.situation }),
1501
+ /* @__PURE__ */ o("h2", { className: "ds-block__title", children: r.situation }),
1500
1502
  /* @__PURE__ */ o("p", { style: { color: "var(--ds-fg)", fontSize: 14, fontWeight: 600 }, children: t.title }),
1501
1503
  t.intent && /* @__PURE__ */ o("p", { children: t.intent }),
1502
1504
  /* @__PURE__ */ u("div", { className: "ds-chips", children: [
1503
- /* @__PURE__ */ o("span", { className: "ds-chip", "data-tone": ct(t.status), children: r.status[t.status] }),
1505
+ /* @__PURE__ */ o("span", { className: "ds-chip", "data-tone": ct(t.status), children: a.status[t.status] }),
1504
1506
  (t.tags ?? []).map((i) => /* @__PURE__ */ o("span", { className: "ds-chip", children: i }, i))
1505
1507
  ] }),
1506
- /* @__PURE__ */ o("p", { style: { marginTop: 6 }, children: r.statusMeaning[t.status] })
1508
+ /* @__PURE__ */ o("p", { style: { marginTop: 6 }, children: a.statusMeaning[t.status] })
1507
1509
  ] }),
1508
1510
  /* @__PURE__ */ u("div", { className: "ds-block", children: [
1509
- /* @__PURE__ */ o("h2", { className: "ds-block__title", children: a.reproduction }),
1511
+ /* @__PURE__ */ o("h2", { className: "ds-block__title", children: r.reproduction }),
1510
1512
  /* @__PURE__ */ u("dl", { className: "ds-kv", children: [
1511
- /* @__PURE__ */ o("dt", { children: a.id }),
1513
+ /* @__PURE__ */ o("dt", { children: r.id }),
1512
1514
  /* @__PURE__ */ o("dd", { style: { fontFamily: "var(--ds-mono)", fontSize: 11 }, children: t.id }),
1513
- /* @__PURE__ */ o("dt", { children: a.route }),
1515
+ /* @__PURE__ */ o("dt", { children: r.route }),
1514
1516
  /* @__PURE__ */ o("dd", { style: { fontFamily: "var(--ds-mono)", fontSize: 11 }, children: t.route }),
1515
- /* @__PURE__ */ o("dt", { children: a.persona }),
1517
+ /* @__PURE__ */ o("dt", { children: r.persona }),
1516
1518
  /* @__PURE__ */ u("dd", { children: [
1517
1519
  c?.name ?? "—",
1518
- v && /* @__PURE__ */ o("span", { className: "ds-chip", "data-tone": "warn", style: { marginLeft: 6 }, children: a.personaSwapped })
1520
+ v && /* @__PURE__ */ o("span", { className: "ds-chip", "data-tone": "warn", style: { marginLeft: 6 }, children: r.personaSwapped })
1519
1521
  ] }),
1520
- /* @__PURE__ */ o("dt", { children: a.data }),
1522
+ /* @__PURE__ */ o("dt", { children: r.data }),
1521
1523
  /* @__PURE__ */ o("dd", { children: m?.label ?? "—" }),
1522
- /* @__PURE__ */ o("dt", { children: a.network }),
1523
- /* @__PURE__ */ o("dd", { children: r.network[l.network] })
1524
+ /* @__PURE__ */ o("dt", { children: r.network }),
1525
+ /* @__PURE__ */ o("dd", { children: a.network[l.network] })
1524
1526
  ] }),
1525
- c?.goal && /* @__PURE__ */ o("p", { style: { marginTop: 8 }, children: a.goal(c.goal) })
1527
+ c?.goal && /* @__PURE__ */ o("p", { style: { marginTop: 8 }, children: r.goal(c.goal) })
1526
1528
  ] }),
1527
1529
  h.length > 0 && /* @__PURE__ */ u("div", { className: "ds-block", children: [
1528
- /* @__PURE__ */ o("h2", { className: "ds-block__title", children: a.permissions }),
1530
+ /* @__PURE__ */ o("h2", { className: "ds-block__title", children: r.permissions }),
1529
1531
  /* @__PURE__ */ o("div", { className: "ds-chips", children: h.map((i) => /* @__PURE__ */ o("span", { className: "ds-chip", children: i }, i)) })
1530
1532
  ] }),
1531
1533
  t.preconditions?.length ? /* @__PURE__ */ u("div", { className: "ds-block", children: [
1532
- /* @__PURE__ */ o("h2", { className: "ds-block__title", children: a.preconditions }),
1534
+ /* @__PURE__ */ o("h2", { className: "ds-block__title", children: r.preconditions }),
1533
1535
  /* @__PURE__ */ o("ul", { className: "ds-list", children: t.preconditions.map((i) => /* @__PURE__ */ o("li", { children: i }, i)) })
1534
1536
  ] }) : null,
1535
1537
  p.length > 0 && /* @__PURE__ */ u("div", { className: "ds-block", children: [
1536
- /* @__PURE__ */ o("h2", { className: "ds-block__title", children: a.rules }),
1538
+ /* @__PURE__ */ o("h2", { className: "ds-block__title", children: r.rules }),
1537
1539
  p.map((i) => /* @__PURE__ */ u("div", { className: "ds-rule", children: [
1538
1540
  /* @__PURE__ */ o("span", { className: "ds-rule__id", children: i.id }),
1539
1541
  /* @__PURE__ */ o("span", { className: "ds-rule__statement", children: i.statement }),
@@ -1541,79 +1543,79 @@ function rt({
1541
1543
  ] }, i.id))
1542
1544
  ] }),
1543
1545
  t.actions?.length ? /* @__PURE__ */ u("div", { className: "ds-block", children: [
1544
- /* @__PURE__ */ o("h2", { className: "ds-block__title", children: a.actions }),
1546
+ /* @__PURE__ */ o("h2", { className: "ds-block__title", children: r.actions }),
1545
1547
  /* @__PURE__ */ o("ul", { className: "ds-list", children: t.actions.map((i) => /* @__PURE__ */ o("li", { children: i }, i)) })
1546
1548
  ] }) : null,
1547
1549
  t.expected?.length ? /* @__PURE__ */ u("div", { className: "ds-block", children: [
1548
- /* @__PURE__ */ o("h2", { className: "ds-block__title", children: a.expected }),
1550
+ /* @__PURE__ */ o("h2", { className: "ds-block__title", children: r.expected }),
1549
1551
  /* @__PURE__ */ o("ul", { className: "ds-list", children: t.expected.map((i) => /* @__PURE__ */ o("li", { children: i }, i)) })
1550
1552
  ] }) : null,
1551
1553
  t.approvedAt && /* @__PURE__ */ u("div", { className: "ds-block", children: [
1552
- /* @__PURE__ */ o("h2", { className: "ds-block__title", children: a.approval }),
1554
+ /* @__PURE__ */ o("h2", { className: "ds-block__title", children: r.approval }),
1553
1555
  /* @__PURE__ */ u("p", { children: [
1554
1556
  t.approvedAt.date,
1555
1557
  " · ",
1556
1558
  /* @__PURE__ */ o("code", { children: t.approvedAt.commit.slice(0, 7) })
1557
1559
  ] }),
1558
- /* @__PURE__ */ o("a", { href: t.approvedAt.url, target: "_blank", rel: "noreferrer", children: a.openApproved })
1560
+ /* @__PURE__ */ o("a", { href: t.approvedAt.url, target: "_blank", rel: "noreferrer", children: r.openApproved })
1559
1561
  ] }),
1560
1562
  t.ticket && /* @__PURE__ */ u("div", { className: "ds-block", children: [
1561
- /* @__PURE__ */ o("h2", { className: "ds-block__title", children: a.engineering }),
1563
+ /* @__PURE__ */ o("h2", { className: "ds-block__title", children: r.engineering }),
1562
1564
  /* @__PURE__ */ o("p", { children: t.ticket })
1563
1565
  ] })
1564
1566
  ] });
1565
1567
  }
1566
- function at({
1568
+ function rt({
1567
1569
  registry: e,
1568
1570
  scenario: t,
1569
1571
  focusedNode: n,
1570
1572
  keyboardMode: s,
1571
1573
  tabStopCount: l
1572
1574
  }) {
1573
- const r = P(), a = r.inspector, c = be(e.product.theme?.contrastPairs), h = c.filter((p) => p.passes !== !0);
1575
+ const a = P(), r = a.inspector, c = be(e.product.theme?.contrastPairs), h = c.filter((p) => p.passes !== !0);
1574
1576
  return /* @__PURE__ */ u(A, { children: [
1575
1577
  t && /* @__PURE__ */ u("div", { className: "ds-block", children: [
1576
- /* @__PURE__ */ o("h2", { className: "ds-block__title", children: a.a11yContract }),
1578
+ /* @__PURE__ */ o("h2", { className: "ds-block__title", children: r.a11yContract }),
1577
1579
  /* @__PURE__ */ u("dl", { className: "ds-kv", children: [
1578
- /* @__PURE__ */ o("dt", { children: a.keyboard }),
1579
- /* @__PURE__ */ o("dd", { children: r.keyboard[t.a11y.keyboard] }),
1580
- /* @__PURE__ */ o("dt", { children: a.contrast }),
1581
- /* @__PURE__ */ o("dd", { children: a.contrastTarget(t.a11y.contrast) })
1580
+ /* @__PURE__ */ o("dt", { children: r.keyboard }),
1581
+ /* @__PURE__ */ o("dd", { children: a.keyboard[t.a11y.keyboard] }),
1582
+ /* @__PURE__ */ o("dt", { children: r.contrast }),
1583
+ /* @__PURE__ */ o("dd", { children: r.contrastTarget(t.a11y.contrast) })
1582
1584
  ] }),
1583
1585
  t.a11y.announces?.length ? /* @__PURE__ */ u(A, { children: [
1584
- /* @__PURE__ */ o("p", { style: { marginTop: 8 }, children: a.announces }),
1586
+ /* @__PURE__ */ o("p", { style: { marginTop: 8 }, children: r.announces }),
1585
1587
  /* @__PURE__ */ o("div", { className: "ds-chips", children: t.a11y.announces.map((p) => /* @__PURE__ */ o("span", { className: "ds-chip", children: p }, p)) })
1586
1588
  ] }) : null,
1587
1589
  t.a11y.notes && /* @__PURE__ */ o("p", { style: { marginTop: 8 }, children: t.a11y.notes })
1588
1590
  ] }),
1589
1591
  /* @__PURE__ */ u("div", { className: "ds-block", children: [
1590
- /* @__PURE__ */ o("h2", { className: "ds-block__title", children: a.focusedElement }),
1592
+ /* @__PURE__ */ o("h2", { className: "ds-block__title", children: r.focusedElement }),
1591
1593
  s ? n ? /* @__PURE__ */ u(A, { children: [
1592
1594
  /* @__PURE__ */ u("dl", { className: "ds-kv", children: [
1593
- /* @__PURE__ */ o("dt", { children: a.role }),
1595
+ /* @__PURE__ */ o("dt", { children: r.role }),
1594
1596
  /* @__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 }),
1597
+ /* @__PURE__ */ o("dt", { children: r.name }),
1598
+ /* @__PURE__ */ o("dd", { children: n.name ? n.name : /* @__PURE__ */ o("span", { style: { color: "var(--ds-err)" }, children: r.noAccessibleName }) }),
1599
+ /* @__PURE__ */ o("dt", { children: r.nameFrom }),
1598
1600
  /* @__PURE__ */ o("dd", { children: n.nameFrom }),
1599
1601
  n.description ? /* @__PURE__ */ u(A, { children: [
1600
- /* @__PURE__ */ o("dt", { children: a.description }),
1602
+ /* @__PURE__ */ o("dt", { children: r.description }),
1601
1603
  /* @__PURE__ */ o("dd", { children: n.description })
1602
1604
  ] }) : null,
1603
- /* @__PURE__ */ o("dt", { children: a.selector }),
1605
+ /* @__PURE__ */ o("dt", { children: r.selector }),
1604
1606
  /* @__PURE__ */ o("dd", { style: { fontFamily: "var(--ds-mono)", fontSize: 11 }, children: n.selector })
1605
1607
  ] }),
1606
1608
  n.states.length > 0 && /* @__PURE__ */ o("div", { className: "ds-chips", style: { marginTop: 8 }, children: n.states.map((p) => /* @__PURE__ */ o("span", { className: "ds-chip", children: p }, p)) }),
1607
- n.hiddenFromAssistiveTech && /* @__PURE__ */ o("p", { className: "ds-note", style: { marginTop: 8 }, children: a.focusableButHidden }),
1608
- /* @__PURE__ */ o("p", { style: { marginTop: 8 }, children: a.tabStopsInStage(l) })
1609
- ] }) : /* @__PURE__ */ o("p", { children: a.pressTab(l) }) : /* @__PURE__ */ o("p", { children: a.keyboardModeOff })
1609
+ n.hiddenFromAssistiveTech && /* @__PURE__ */ o("p", { className: "ds-note", style: { marginTop: 8 }, children: r.focusableButHidden }),
1610
+ /* @__PURE__ */ o("p", { style: { marginTop: 8 }, children: r.tabStopsInStage(l) })
1611
+ ] }) : /* @__PURE__ */ o("p", { children: r.pressTab(l) }) : /* @__PURE__ */ o("p", { children: r.keyboardModeOff })
1610
1612
  ] }),
1611
1613
  /* @__PURE__ */ u("div", { className: "ds-block", children: [
1612
- /* @__PURE__ */ o("h2", { className: "ds-block__title", children: a.tokenContrast }),
1613
- c.length === 0 ? /* @__PURE__ */ o("p", { children: a.noContrastPairs }) : /* @__PURE__ */ u("table", { className: "ds-contrast", children: [
1614
+ /* @__PURE__ */ o("h2", { className: "ds-block__title", children: r.tokenContrast }),
1615
+ c.length === 0 ? /* @__PURE__ */ o("p", { children: r.noContrastPairs }) : /* @__PURE__ */ u("table", { className: "ds-contrast", children: [
1614
1616
  /* @__PURE__ */ o("thead", { children: /* @__PURE__ */ u("tr", { children: [
1615
- /* @__PURE__ */ o("th", { scope: "col", children: a.pair }),
1616
- /* @__PURE__ */ o("th", { scope: "col", children: a.ratio })
1617
+ /* @__PURE__ */ o("th", { scope: "col", children: r.pair }),
1618
+ /* @__PURE__ */ o("th", { scope: "col", children: r.ratio })
1617
1619
  ] }) }),
1618
1620
  /* @__PURE__ */ o("tbody", { children: c.map((p) => /* @__PURE__ */ u("tr", { children: [
1619
1621
  /* @__PURE__ */ u("td", { children: [
@@ -1646,9 +1648,9 @@ function at({
1646
1648
  )
1647
1649
  ] }, p.pair.name)) })
1648
1650
  ] }),
1649
- h.length > 0 && /* @__PURE__ */ o("p", { className: "ds-note", style: { marginTop: 8 }, children: a.pairsFailing(h.length) })
1651
+ h.length > 0 && /* @__PURE__ */ o("p", { className: "ds-note", style: { marginTop: 8 }, children: r.pairsFailing(h.length) })
1650
1652
  ] }),
1651
- /* @__PURE__ */ o("p", { className: "ds-note", children: a.automatedIsFloor })
1653
+ /* @__PURE__ */ o("p", { className: "ds-note", children: r.automatedIsFloor })
1652
1654
  ] });
1653
1655
  }
1654
1656
  function st({ registry: e }) {
@@ -1656,18 +1658,18 @@ function st({ registry: e }) {
1656
1658
  return /* @__PURE__ */ u(A, { children: [
1657
1659
  /* @__PURE__ */ u("div", { className: "ds-block", children: [
1658
1660
  /* @__PURE__ */ o("h2", { className: "ds-block__title", children: n.coverage }),
1659
- /* @__PURE__ */ o("dl", { className: "ds-kv", children: Object.entries(s).filter(([, r]) => r > 0).map(([r, a]) => /* @__PURE__ */ u("div", { style: { display: "contents" }, children: [
1660
- /* @__PURE__ */ o("dt", { children: t.status[r] }),
1661
- /* @__PURE__ */ o("dd", { style: { fontVariantNumeric: "tabular-nums" }, children: a })
1662
- ] }, r)) }),
1661
+ /* @__PURE__ */ o("dl", { className: "ds-kv", children: Object.entries(s).filter(([, a]) => a > 0).map(([a, r]) => /* @__PURE__ */ u("div", { style: { display: "contents" }, children: [
1662
+ /* @__PURE__ */ o("dt", { children: t.status[a] }),
1663
+ /* @__PURE__ */ o("dd", { style: { fontVariantNumeric: "tabular-nums" }, children: r })
1664
+ ] }, a)) }),
1663
1665
  /* @__PURE__ */ o("p", { style: { marginTop: 8 }, children: n.scenariosRegistered(e.product.scenarios.length) })
1664
1666
  ] }),
1665
1667
  /* @__PURE__ */ u("div", { className: "ds-block", children: [
1666
1668
  /* @__PURE__ */ o("h2", { className: "ds-block__title", children: n.scenarioContract }),
1667
- l.length === 0 ? /* @__PURE__ */ o("p", { children: n.noIssues }) : l.map((r, a) => /* @__PURE__ */ u("div", { className: "ds-issue", "data-level": r.level, children: [
1668
- /* @__PURE__ */ o("span", { className: "ds-issue__where", children: r.where }),
1669
- r.message
1670
- ] }, `${r.where}-${a}`))
1669
+ l.length === 0 ? /* @__PURE__ */ o("p", { children: n.noIssues }) : l.map((a, r) => /* @__PURE__ */ u("div", { className: "ds-issue", "data-level": a.level, children: [
1670
+ /* @__PURE__ */ o("span", { className: "ds-issue__where", children: a.where }),
1671
+ a.message
1672
+ ] }, `${a.where}-${r}`))
1671
1673
  ] })
1672
1674
  ] });
1673
1675
  }
@@ -1683,11 +1685,11 @@ const it = {
1683
1685
  function ct(e) {
1684
1686
  return it[e];
1685
1687
  }
1686
- const dt = he(function({ viewport: t, textScale: n, reducedMotion: s, keyboardMode: l, children: r }, a) {
1688
+ const dt = pe(function({ viewport: t, textScale: n, reducedMotion: s, keyboardMode: l, children: a }, r) {
1687
1689
  return /* @__PURE__ */ o("div", { className: "ds-stage-scroll", children: /* @__PURE__ */ o(
1688
1690
  "div",
1689
1691
  {
1690
- ref: a,
1692
+ ref: r,
1691
1693
  className: "ds-stage",
1692
1694
  "data-viewport": t.id,
1693
1695
  "data-keyboard-mode": l,
@@ -1700,7 +1702,7 @@ const dt = he(function({ viewport: t, textScale: n, reducedMotion: s, keyboardMo
1700
1702
  // texto grande e só dar zoom na captura de tela.
1701
1703
  fontSize: n === 1 ? void 0 : `${n * 100}%`
1702
1704
  },
1703
- children: r
1705
+ children: a
1704
1706
  }
1705
1707
  ) });
1706
1708
  });
@@ -1729,15 +1731,15 @@ function ht({
1729
1731
  onViewChange: s,
1730
1732
  showPorted: l = !1
1731
1733
  }) {
1732
- const r = P(), { product: a } = e, c = n ?? (l ? "ported" : "active"), h = { view: c }, p = e.coverage(h), m = e.activeScenarios(h).length, v = e.treeFor(h).filter((S) => S.scenarios.length > 0), i = e.orphansFor(h), N = e.byStatus("ported").length, x = c === "ported" ? r.sidebar.portedReferences(N) : r.sidebar.activeWork;
1734
+ const a = P(), { product: r } = e, c = n ?? (l ? "ported" : "active"), h = { view: c }, p = e.coverage(h), m = e.activeScenarios(h).length, v = e.treeFor(h).filter((S) => S.scenarios.length > 0), i = e.orphansFor(h), N = e.byStatus("ported").length, x = c === "ported" ? a.sidebar.portedReferences(N) : a.sidebar.activeWork;
1733
1735
  return /* @__PURE__ */ u("div", { className: "ds-chrome ds-home", children: [
1734
1736
  /* @__PURE__ */ u("header", { className: "ds-home__header", children: [
1735
1737
  /* @__PURE__ */ o("p", { className: "ds-home__view", "aria-live": "polite", children: x }),
1736
- /* @__PURE__ */ o("h1", { children: a.name }),
1737
- a.tagline && /* @__PURE__ */ o("p", { className: "ds-home__tagline", children: a.tagline }),
1738
- /* @__PURE__ */ o("p", { className: "ds-home__lead", children: r.home.lead(m) }),
1738
+ /* @__PURE__ */ o("h1", { children: r.name }),
1739
+ r.tagline && /* @__PURE__ */ o("p", { className: "ds-home__tagline", children: r.tagline }),
1740
+ /* @__PURE__ */ o("p", { className: "ds-home__lead", children: a.home.lead(m) }),
1739
1741
  /* @__PURE__ */ o("div", { className: "ds-chips", children: Object.entries(p).filter(([, S]) => S > 0).map(([S, d]) => /* @__PURE__ */ u("span", { className: "ds-chip", children: [
1740
- r.status[S],
1742
+ a.status[S],
1741
1743
  ": ",
1742
1744
  d
1743
1745
  ] }, S)) }),
@@ -1747,7 +1749,7 @@ function ht({
1747
1749
  type: "button",
1748
1750
  className: "ds-text-action ds-home__view-action",
1749
1751
  onClick: () => s?.("ported"),
1750
- children: r.sidebar.viewPorted(N)
1752
+ children: a.sidebar.viewPorted(N)
1751
1753
  }
1752
1754
  ),
1753
1755
  c === "ported" && /* @__PURE__ */ o(
@@ -1756,19 +1758,29 @@ function ht({
1756
1758
  type: "button",
1757
1759
  className: "ds-text-action ds-home__view-action",
1758
1760
  onClick: () => s?.("active"),
1759
- children: r.sidebar.backToActive
1761
+ children: a.sidebar.backToActive
1760
1762
  }
1761
1763
  )
1762
1764
  ] }),
1763
- m === 0 && /* @__PURE__ */ u("section", { className: "ds-home__empty", "aria-label": r.sidebar.currentView(x), children: [
1764
- /* @__PURE__ */ o("p", { children: c === "ported" ? r.home.noPortedReferences : r.home.noActiveWork }),
1765
+ /* @__PURE__ */ u("section", { className: "ds-home__legend", "aria-labelledby": "ds-status-legend-title", children: [
1766
+ /* @__PURE__ */ o("h2", { id: "ds-status-legend-title", children: a.home.statusLegend }),
1767
+ /* @__PURE__ */ o("ul", { children: se.map((S) => /* @__PURE__ */ u("li", { children: [
1768
+ /* @__PURE__ */ o("span", { className: "ds-status-dot", "data-status": S, "aria-hidden": "true" }),
1769
+ /* @__PURE__ */ u("span", { children: [
1770
+ /* @__PURE__ */ o("strong", { children: a.status[S] }),
1771
+ /* @__PURE__ */ o("small", { children: a.statusMeaning[S] })
1772
+ ] })
1773
+ ] }, S)) })
1774
+ ] }),
1775
+ m === 0 && /* @__PURE__ */ u("section", { className: "ds-home__empty", "aria-label": a.sidebar.currentView(x), children: [
1776
+ /* @__PURE__ */ o("p", { children: c === "ported" ? a.home.noPortedReferences : a.home.noActiveWork }),
1765
1777
  c === "active" && N > 0 && /* @__PURE__ */ o(
1766
1778
  "button",
1767
1779
  {
1768
1780
  type: "button",
1769
1781
  className: "ds-text-action",
1770
1782
  onClick: () => s?.("ported"),
1771
- children: r.sidebar.viewPorted(N)
1783
+ children: a.sidebar.viewPorted(N)
1772
1784
  }
1773
1785
  )
1774
1786
  ] }),
@@ -1784,10 +1796,10 @@ function ht({
1784
1796
  S.id
1785
1797
  )),
1786
1798
  i.length > 0 && /* @__PURE__ */ u("section", { className: "ds-home__module", children: [
1787
- /* @__PURE__ */ o("h2", { children: r.home.withoutModule }),
1788
- /* @__PURE__ */ o("p", { className: "ds-home__hint", children: r.home.withoutModuleHint }),
1799
+ /* @__PURE__ */ o("h2", { children: a.home.withoutModule }),
1800
+ /* @__PURE__ */ o("p", { className: "ds-home__hint", children: a.home.withoutModuleHint }),
1789
1801
  /* @__PURE__ */ o(
1790
- de,
1802
+ le,
1791
1803
  {
1792
1804
  scenarios: i,
1793
1805
  registry: e,
@@ -1807,17 +1819,17 @@ function pt({
1807
1819
  return /* @__PURE__ */ u("section", { className: "ds-home__module", children: [
1808
1820
  /* @__PURE__ */ o("h2", { children: e.name }),
1809
1821
  e.description && /* @__PURE__ */ o("p", { className: "ds-home__hint", children: e.description }),
1810
- (e.flows ?? []).map((r) => /* @__PURE__ */ o(
1822
+ (e.flows ?? []).map((a) => /* @__PURE__ */ o(
1811
1823
  mt,
1812
1824
  {
1813
- flow: r,
1825
+ flow: a,
1814
1826
  registry: n,
1815
1827
  view: s,
1816
1828
  onOpenScenario: l
1817
1829
  },
1818
- r.id
1830
+ a.id
1819
1831
  )),
1820
- /* @__PURE__ */ o(de, { scenarios: t, registry: n, onOpenScenario: l })
1832
+ /* @__PURE__ */ o(le, { scenarios: t, registry: n, onOpenScenario: l })
1821
1833
  ] });
1822
1834
  }
1823
1835
  function mt({
@@ -1826,21 +1838,21 @@ function mt({
1826
1838
  view: n,
1827
1839
  onOpenScenario: s
1828
1840
  }) {
1829
- const l = e.steps.filter((r) => {
1830
- const a = t.scenario(r.scenario);
1831
- return a && (n === "ported" ? a.status === "ported" : a.status !== "ported");
1841
+ const l = e.steps.filter((a) => {
1842
+ const r = t.scenario(a.scenario);
1843
+ return r && (n === "ported" ? r.status === "ported" : r.status !== "ported");
1832
1844
  });
1833
1845
  return l.length === 0 ? null : /* @__PURE__ */ u("div", { className: "ds-flow", children: [
1834
1846
  /* @__PURE__ */ o("h3", { children: e.title }),
1835
1847
  e.description && /* @__PURE__ */ o("p", { className: "ds-home__hint", children: e.description }),
1836
- /* @__PURE__ */ o("ol", { className: "ds-flow__steps", children: l.map((r, a) => {
1837
- const c = t.scenario(r.scenario), h = Object.entries(r.branches ?? {}).filter(([, p]) => {
1848
+ /* @__PURE__ */ o("ol", { className: "ds-flow__steps", children: l.map((a, r) => {
1849
+ const c = t.scenario(a.scenario), h = Object.entries(a.branches ?? {}).filter(([, p]) => {
1838
1850
  const m = t.scenario(p);
1839
1851
  return m && (n === "ported" ? m.status === "ported" : m.status !== "ported");
1840
1852
  });
1841
1853
  return /* @__PURE__ */ u("li", { children: [
1842
- /* @__PURE__ */ o("button", { type: "button", className: "ds-flow__step", onClick: () => s(r.scenario), children: r.label ?? c?.title ?? r.scenario }),
1843
- r.decision && /* @__PURE__ */ o("p", { className: "ds-flow__decision", children: r.decision }),
1854
+ /* @__PURE__ */ o("button", { type: "button", className: "ds-flow__step", onClick: () => s(a.scenario), children: a.label ?? c?.title ?? a.scenario }),
1855
+ a.decision && /* @__PURE__ */ o("p", { className: "ds-flow__decision", children: a.decision }),
1844
1856
  h.length > 0 && /* @__PURE__ */ o("ul", { className: "ds-flow__branches", children: h.map(([p, m]) => /* @__PURE__ */ u("li", { children: [
1845
1857
  /* @__PURE__ */ o("span", { className: "ds-flow__branch-label", children: p }),
1846
1858
  /* @__PURE__ */ o(
@@ -1853,11 +1865,11 @@ function mt({
1853
1865
  }
1854
1866
  )
1855
1867
  ] }, p)) })
1856
- ] }, `${r.scenario}-${a}`);
1868
+ ] }, `${a.scenario}-${r}`);
1857
1869
  }) })
1858
1870
  ] });
1859
1871
  }
1860
- function de({
1872
+ function le({
1861
1873
  scenarios: e,
1862
1874
  registry: t,
1863
1875
  onOpenScenario: n
@@ -1880,32 +1892,32 @@ function de({
1880
1892
  function St({ product: e }) {
1881
1893
  const t = C(() => ge(e), [e]), n = C(() => Ue(e.theme?.labels), [e.theme?.labels]), s = C(() => ve(e.deploy), [e.deploy]), {
1882
1894
  location: l,
1883
- controls: r,
1884
- viewport: a,
1895
+ controls: a,
1896
+ viewport: r,
1885
1897
  setControls: c,
1886
1898
  setScenarioView: h,
1887
1899
  navigate: p,
1888
1900
  openScenario: m,
1889
1901
  openComponent: v
1890
- } = Ne(t), i = ee(r), N = Q(null), { focused: x, tabStops: S } = ze(r.keyboardMode, N), d = t.scenario(r.scenario), f = t.component(r.component), k = C(
1891
- () => t.resolveComponentFixture(f?.id, f ? r.fixture : void 0),
1892
- [f, r.fixture, t]
1902
+ } = Ne(t), i = ee(a), N = Q(null), { focused: x, tabStops: S } = ze(a.keyboardMode, N), d = t.scenario(a.scenario), f = t.component(a.component), k = C(
1903
+ () => t.resolveComponentFixture(f?.id, f ? a.fixture : void 0),
1904
+ [f, a.fixture, t]
1893
1905
  ), M = C(() => {
1894
1906
  const w = k.fixture?.data;
1895
1907
  return typeof w == "function" ? w() : w;
1896
- }, [k.fixture]), _ = t.persona(r.persona ?? d?.persona), T = t.fixture(r.fixture ?? d?.fixture), B = C(() => {
1897
- const w = r.dataSource ?? "fixtures";
1908
+ }, [k.fixture]), _ = t.persona(a.persona ?? d?.persona), T = t.fixture(a.fixture ?? d?.fixture), B = C(() => {
1909
+ const w = a.dataSource ?? "fixtures";
1898
1910
  return w === "fixtures" ? Z : e.dataSources?.adapters?.find((y) => y.id === w) ?? Z;
1899
- }, [r.dataSource, e.dataSources?.adapters]), { data: W, isLoading: F, error: R } = $e({ scenario: d, fixture: T, network: r.network, adapter: B });
1911
+ }, [a.dataSource, e.dataSources?.adapters]), { data: W, isLoading: F, error: R } = $e({ scenario: d, fixture: T, network: a.network, adapter: B });
1900
1912
  I(() => {
1901
1913
  const w = (y) => {
1902
1914
  if (!(!y.shiftKey || y.metaKey || y.ctrlKey || y.altKey || y.target?.matches("input, textarea, select, [contenteditable='true']"))) {
1903
1915
  switch (y.key) {
1904
1916
  case "K":
1905
- c({ keyboardMode: !r.keyboardMode });
1917
+ c({ keyboardMode: !a.keyboardMode });
1906
1918
  break;
1907
1919
  case "P":
1908
- c({ inspector: !r.inspector });
1920
+ c({ inspector: !a.inspector });
1909
1921
  break;
1910
1922
  default:
1911
1923
  return;
@@ -1914,8 +1926,8 @@ function St({ product: e }) {
1914
1926
  }
1915
1927
  };
1916
1928
  return window.addEventListener("keydown", w), () => window.removeEventListener("keydown", w);
1917
- }, [r.keyboardMode, r.inspector, c]);
1918
- const D = C(() => r.persona && r.persona !== d?.persona ? t.persona(r.persona)?.permissions ?? [] : t.permissionsOf(d), [r.persona, t, d]), j = C(
1929
+ }, [a.keyboardMode, a.inspector, c]);
1930
+ const D = C(() => a.persona && a.persona !== d?.persona ? t.persona(a.persona)?.permissions ?? [] : t.permissionsOf(d), [a.persona, t, d]), j = C(
1919
1931
  () => ({
1920
1932
  scenario: d,
1921
1933
  persona: _,
@@ -1923,17 +1935,17 @@ function St({ product: e }) {
1923
1935
  can: (w) => D.includes(w),
1924
1936
  data: W,
1925
1937
  fixture: T,
1926
- network: r.network,
1938
+ network: a.network,
1927
1939
  isLoading: F,
1928
1940
  error: R,
1929
1941
  rules: t.rulesOf(d),
1930
- viewport: a,
1931
- themeMode: r.themeMode,
1932
- locale: r.locale,
1942
+ viewport: r,
1943
+ themeMode: a.themeMode,
1944
+ locale: a.locale,
1933
1945
  a11y: {
1934
- keyboardMode: r.keyboardMode,
1935
- reducedMotion: r.reducedMotion,
1936
- textScale: r.textScale
1946
+ keyboardMode: a.keyboardMode,
1947
+ reducedMotion: a.reducedMotion,
1948
+ textScale: a.textScale
1937
1949
  },
1938
1950
  navigate: p,
1939
1951
  openScenario: m
@@ -1944,16 +1956,16 @@ function St({ product: e }) {
1944
1956
  D,
1945
1957
  W,
1946
1958
  T,
1947
- r.network,
1948
- r.themeMode,
1949
- r.locale,
1950
- r.keyboardMode,
1951
- r.reducedMotion,
1952
- r.textScale,
1959
+ a.network,
1960
+ a.themeMode,
1961
+ a.locale,
1962
+ a.keyboardMode,
1963
+ a.reducedMotion,
1964
+ a.textScale,
1953
1965
  F,
1954
1966
  R,
1955
1967
  t,
1956
- a,
1968
+ r,
1957
1969
  p,
1958
1970
  m
1959
1971
  ]
@@ -1962,13 +1974,13 @@ function St({ product: e }) {
1962
1974
  {
1963
1975
  fixture: k.fixture,
1964
1976
  data: M,
1965
- viewport: a,
1966
- themeMode: r.themeMode ?? "default",
1967
- locale: r.locale ?? "default",
1977
+ viewport: r,
1978
+ themeMode: a.themeMode ?? "default",
1979
+ locale: a.locale ?? "default",
1968
1980
  a11y: {
1969
- keyboardMode: r.keyboardMode,
1970
- reducedMotion: r.reducedMotion,
1971
- textScale: r.textScale
1981
+ keyboardMode: a.keyboardMode,
1982
+ reducedMotion: a.reducedMotion,
1983
+ textScale: a.textScale
1972
1984
  }
1973
1985
  }
1974
1986
  ) : O ? /* @__PURE__ */ o(O.definition.screen, { params: O.params, context: j }) : H ? /* @__PURE__ */ o(H, { path: l.path }) : /* @__PURE__ */ o(ut, { title: n.shell.noRoute, children: /* @__PURE__ */ u("p", { children: [
@@ -1976,35 +1988,35 @@ function St({ product: e }) {
1976
1988
  " ",
1977
1989
  n.shell.noRouteHint
1978
1990
  ] }) }), b = U ? /* @__PURE__ */ o(U, { context: j, children: V }) : V;
1979
- return /* @__PURE__ */ o(ce.Provider, { value: n, children: /* @__PURE__ */ u(
1991
+ return /* @__PURE__ */ o(de.Provider, { value: n, children: /* @__PURE__ */ u(
1980
1992
  "div",
1981
1993
  {
1982
1994
  className: "ds-root",
1983
- "data-chrome": r.chrome ? "visible" : "hidden",
1984
- "data-appearance": r.chromeTheme ?? "dark",
1985
- "data-inspector": r.inspector ? "open" : "closed",
1986
- "data-viewport": a.id,
1995
+ "data-chrome": a.chrome ? "visible" : "hidden",
1996
+ "data-appearance": a.chromeTheme ?? "dark",
1997
+ "data-inspector": a.inspector ? "open" : "closed",
1998
+ "data-viewport": r.id,
1987
1999
  children: [
1988
- r.chrome && /* @__PURE__ */ o(
2000
+ a.chrome && /* @__PURE__ */ o(
1989
2001
  Qe,
1990
2002
  {
1991
2003
  product: e,
1992
2004
  scenario: d,
1993
2005
  deploy: s,
1994
- inspectorOpen: r.inspector,
1995
- chromeTheme: r.chromeTheme ?? "dark",
2006
+ inspectorOpen: a.inspector,
2007
+ chromeTheme: a.chromeTheme ?? "dark",
1996
2008
  view: i,
1997
- onToggleInspector: () => c({ inspector: !r.inspector }),
1998
- onToggleChromeTheme: () => c({ chromeTheme: r.chromeTheme === "light" ? "dark" : "light" })
2009
+ onToggleInspector: () => c({ inspector: !a.inspector }),
2010
+ onToggleChromeTheme: () => c({ chromeTheme: a.chromeTheme === "light" ? "dark" : "light" })
1999
2011
  }
2000
2012
  ),
2001
- r.chrome && /* @__PURE__ */ o(
2013
+ a.chrome && /* @__PURE__ */ o(
2002
2014
  Ve,
2003
2015
  {
2004
2016
  registry: t,
2005
2017
  activeScenario: d,
2006
- activeComponent: r.component,
2007
- controls: r,
2018
+ activeComponent: a.component,
2019
+ controls: a,
2008
2020
  onOpenScenario: m,
2009
2021
  onOpenComponent: v,
2010
2022
  onViewChange: h
@@ -2023,18 +2035,18 @@ function St({ product: e }) {
2023
2035
  dt,
2024
2036
  {
2025
2037
  ref: N,
2026
- viewport: a,
2027
- textScale: r.textScale,
2028
- reducedMotion: r.reducedMotion,
2029
- keyboardMode: r.keyboardMode,
2038
+ viewport: r,
2039
+ textScale: a.textScale,
2040
+ reducedMotion: a.reducedMotion,
2041
+ keyboardMode: a.keyboardMode,
2030
2042
  children: b
2031
2043
  }
2032
2044
  ),
2033
- r.chrome && /* @__PURE__ */ o(
2045
+ a.chrome && /* @__PURE__ */ o(
2034
2046
  tt,
2035
2047
  {
2036
2048
  registry: t,
2037
- controls: r,
2049
+ controls: a,
2038
2050
  scenarioActive: !!d,
2039
2051
  component: f,
2040
2052
  componentFixture: k,
@@ -2042,20 +2054,20 @@ function St({ product: e }) {
2042
2054
  }
2043
2055
  )
2044
2056
  ] }),
2045
- r.chrome && /* @__PURE__ */ o(
2057
+ a.chrome && /* @__PURE__ */ o(
2046
2058
  nt,
2047
2059
  {
2048
2060
  registry: t,
2049
2061
  scenario: d,
2050
2062
  component: f,
2051
2063
  componentFixture: k,
2052
- controls: r,
2064
+ controls: a,
2053
2065
  focusedNode: x,
2054
2066
  tabStopCount: S.length
2055
2067
  }
2056
2068
  ),
2057
- r.keyboardMode && /* @__PURE__ */ o(lt, { stops: S }),
2058
- !r.chrome && /* @__PURE__ */ o(
2069
+ a.keyboardMode && /* @__PURE__ */ o(lt, { stops: S }),
2070
+ !a.chrome && /* @__PURE__ */ o(
2059
2071
  "button",
2060
2072
  {
2061
2073
  type: "button",
@@ -2074,8 +2086,8 @@ function Y(e) {
2074
2086
  function _t(e, t) {
2075
2087
  const n = Y(e), s = Y(t);
2076
2088
  let l = s.getFullYear() - n.getFullYear();
2077
- const r = s.getMonth() - n.getMonth();
2078
- return (r < 0 || r === 0 && s.getDate() < n.getDate()) && (l -= 1), l;
2089
+ const a = s.getMonth() - n.getMonth();
2090
+ return (a < 0 || a === 0 && s.getDate() < n.getDate()) && (l -= 1), l;
2079
2091
  }
2080
2092
  function Mt(e, t) {
2081
2093
  const n = Y(e), s = Y(t);
@@ -2089,9 +2101,9 @@ export {
2089
2101
  ht as Home,
2090
2102
  yt as KEYBOARD_LABELS,
2091
2103
  xt as NETWORK_LABELS,
2092
- se as NETWORK_STATES,
2104
+ ie as NETWORK_STATES,
2093
2105
  g as PARAM,
2094
- pe as SCENARIO_STATUSES,
2106
+ se as SCENARIO_STATUSES,
2095
2107
  Ae as SLOW_NETWORK_DELAY_MS,
2096
2108
  kt as STATUS_LABELS,
2097
2109
  Nt as STATUS_MEANING,
@@ -2100,7 +2112,7 @@ export {
2100
2112
  ut as StageEmpty,
2101
2113
  we as TEXT_SCALES,
2102
2114
  lt as TabOrderOverlay,
2103
- ie as VIEWPORTS,
2115
+ ce as VIEWPORTS,
2104
2116
  _t as ageInYears,
2105
2117
  Pt as applyOverrides,
2106
2118
  Lt as assertContrastPairs,