@sorayasm/vietri-ds 0.3.1 → 0.3.2

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
@@ -3,31 +3,31 @@ import p from "@mui/material/Box";
3
3
  import b from "@mui/material/Stack";
4
4
  import h from "@mui/material/Typography";
5
5
  import { default as vt } from "@mui/material/Typography";
6
- import z from "@mui/material/Button";
6
+ import R from "@mui/material/Button";
7
7
  import { default as yt } from "@mui/material/Button";
8
- import A from "@mui/material/Card";
8
+ import D from "@mui/material/Card";
9
9
  import { default as St } from "@mui/material/Card";
10
- import { default as kt } from "@mui/material/CardActionArea";
11
- import { default as At } from "@mui/material/CardActions";
12
- import D from "@mui/material/CardContent";
13
- import { default as Et } from "@mui/material/CardContent";
10
+ import { default as Bt } from "@mui/material/CardActionArea";
11
+ import { default as Dt } from "@mui/material/CardActions";
12
+ import A from "@mui/material/CardContent";
13
+ import { default as It } from "@mui/material/CardContent";
14
14
  import { default as Wt } from "@mui/material/CardMedia";
15
15
  import Y from "@mui/material/Chip";
16
16
  import { default as $t } from "@mui/material/Chip";
17
- import { useState as M, useMemo as ie, useId as E, useRef as I, useEffect as q, Children as ne } from "react";
18
- import B from "@mui/material/IconButton";
17
+ import { useState as M, useMemo as ie, useId as I, useRef as E, useEffect as q, Children as ne } from "react";
18
+ import k from "@mui/material/IconButton";
19
19
  import { ArrowRight as ae, Check as J, ChevronDown as le, ChevronLeft as Q, ChevronRight as K, Clock as ce, Copy as Z, Database as de, ExternalLink as H, Globe as se, Info as pe, LayoutGrid as ue, MapPin as he, Menu as me, Music as ee, Network as fe, Play as P, Search as ge, Share2 as be, ShieldCheck as xe, Sparkles as ve, TrendingUp as Fe, Users as ye, X as L } from "lucide-react";
20
20
  import Ce from "@mui/material/Table";
21
21
  import Se from "@mui/material/TableBody";
22
22
  import T from "@mui/material/TableCell";
23
23
  import we from "@mui/material/TableContainer";
24
- import ke from "@mui/material/TableHead";
24
+ import Be from "@mui/material/TableHead";
25
25
  import O from "@mui/material/TableRow";
26
- import Be from "@mui/material/TableSortLabel";
27
- import Ae from "@mui/material/DialogActions";
28
- import De from "@mui/material/DialogContent";
29
- import Ee from "@mui/material/DialogContentText";
30
- import Ie from "@mui/material/DialogTitle";
26
+ import ke from "@mui/material/TableSortLabel";
27
+ import De from "@mui/material/DialogActions";
28
+ import Ae from "@mui/material/DialogContent";
29
+ import Ie from "@mui/material/DialogContentText";
30
+ import Ee from "@mui/material/DialogTitle";
31
31
  import We from "@mui/material/Dialog";
32
32
  import re from "@mui/material/Drawer";
33
33
  import S from "@mui/material/Link";
@@ -37,34 +37,41 @@ import { useTheme as te, alpha as w, createTheme as $e } from "@mui/material/sty
37
37
  import Te from "@mui/material/TextField";
38
38
  import { default as Ot } from "@mui/material/TextField";
39
39
  import Oe from "@mui/material/ToggleButton";
40
- import Re from "@mui/material/ToggleButtonGroup";
41
- import ze from "@mui/material/AppBar";
40
+ import ze from "@mui/material/ToggleButtonGroup";
41
+ import Re from "@mui/material/AppBar";
42
42
  import He from "@mui/material/SvgIcon";
43
43
  import Pe from "@mui/material/Toolbar";
44
44
  import Le from "@mui/material/useMediaQuery";
45
45
  import je from "@mui/material/MenuItem";
46
- import { default as zt } from "@mui/material/Tab";
46
+ import { default as Rt } from "@mui/material/Tab";
47
47
  import { default as Pt } from "@mui/material/Tabs";
48
48
  import Ne from "@mui/material/ButtonBase";
49
49
  function Ge() {
50
50
  return /* @__PURE__ */ e(He, { children: /* @__PURE__ */ e("path", { d: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" }) });
51
51
  }
52
- function _({
52
+ function U({
53
53
  link: r,
54
- onClick: t
54
+ onClick: t,
55
+ accent: o = !1
55
56
  }) {
57
+ const a = !!r.current;
56
58
  return /* @__PURE__ */ e(
57
59
  S,
58
60
  {
59
61
  href: r.href,
60
- underline: "none",
61
- "aria-current": r.current ? "page" : void 0,
62
+ underline: o ? a ? "always" : "hover" : "none",
63
+ "aria-current": a ? "page" : void 0,
62
64
  onClick: t,
63
- sx: {
64
- color: r.current ? "text.primary" : "text.secondary",
65
- fontWeight: r.current ? 600 : 500,
66
- "&:hover": { color: "text.primary" }
67
- },
65
+ sx: (n) => ({
66
+ color: o ? a ? n.palette.text.primary : n.palette.primary.main : a ? n.palette.text.primary : n.palette.text.secondary,
67
+ fontWeight: a ? 600 : 500,
68
+ ...o && a && {
69
+ textDecorationColor: n.palette.primary.main,
70
+ textDecorationThickness: 2,
71
+ textUnderlineOffset: 8
72
+ },
73
+ ...!o && { "&:hover": { color: n.palette.text.primary } }
74
+ }),
68
75
  children: r.label
69
76
  }
70
77
  );
@@ -73,15 +80,16 @@ function Gr({
73
80
  brand: r,
74
81
  brandHref: t = "/",
75
82
  links: o,
76
- actions: l,
83
+ actions: a,
77
84
  ariaLabel: n = "Main",
78
- menuLabel: a = "Menu",
85
+ menuLabel: l = "Menu",
79
86
  closeLabel: u = "Close menu",
80
- maxWidth: f = "lg"
87
+ maxWidth: f = "lg",
88
+ accentLinks: c = !1
81
89
  }) {
82
- const c = te(), i = Le(c.breakpoints.up("md"), { noSsr: !0 }), [s, m] = M(!1), g = () => m(!1);
90
+ const i = te(), s = Le(i.breakpoints.up("md"), { noSsr: !0 }), [m, g] = M(!1), v = () => g(!1);
83
91
  return /* @__PURE__ */ d(
84
- ze,
92
+ Re,
85
93
  {
86
94
  component: "header",
87
95
  position: "sticky",
@@ -114,7 +122,7 @@ function Gr({
114
122
  children: r
115
123
  }
116
124
  ),
117
- i ? /* @__PURE__ */ d(b, { direction: "row", alignItems: "center", spacing: 4, children: [
125
+ s ? /* @__PURE__ */ d(b, { direction: "row", alignItems: "center", spacing: 4, children: [
118
126
  /* @__PURE__ */ e(p, { component: "nav", "aria-label": n, children: /* @__PURE__ */ e(
119
127
  b,
120
128
  {
@@ -122,20 +130,20 @@ function Gr({
122
130
  direction: "row",
123
131
  spacing: 4,
124
132
  sx: { listStyle: "none", m: 0, p: 0 },
125
- children: o.map((x) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(_, { link: x }) }, x.href))
133
+ children: o.map((x) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(U, { link: x, accent: c }) }, x.href))
126
134
  }
127
135
  ) }),
128
- l
136
+ a
129
137
  ] }) : /* @__PURE__ */ d(b, { direction: "row", alignItems: "center", spacing: 1, children: [
130
- l,
138
+ a,
131
139
  /* @__PURE__ */ e(
132
- B,
140
+ k,
133
141
  {
134
142
  edge: "end",
135
- color: "inherit",
136
- "aria-label": a,
137
- "aria-expanded": s,
138
- onClick: () => m(!0),
143
+ color: c ? "primary" : "inherit",
144
+ "aria-label": l,
145
+ "aria-expanded": m,
146
+ onClick: () => g(!0),
139
147
  children: /* @__PURE__ */ e(Ge, {})
140
148
  }
141
149
  )
@@ -143,15 +151,15 @@ function Gr({
143
151
  ]
144
152
  }
145
153
  ) }),
146
- !i && /* @__PURE__ */ e(re, { anchor: "right", open: s, onClose: g, children: /* @__PURE__ */ d(p, { sx: { width: 280, p: 3 }, children: [
147
- /* @__PURE__ */ e(b, { alignItems: "flex-end", sx: { mb: 3 }, children: /* @__PURE__ */ e(z, { variant: "text", color: "secondary", onClick: g, children: u }) }),
154
+ !s && /* @__PURE__ */ e(re, { anchor: "right", open: m, onClose: v, children: /* @__PURE__ */ d(p, { sx: { width: 280, p: 3 }, children: [
155
+ /* @__PURE__ */ e(b, { alignItems: "flex-end", sx: { mb: 3 }, children: /* @__PURE__ */ e(R, { variant: "text", color: c ? "primary" : "secondary", onClick: v, children: u }) }),
148
156
  /* @__PURE__ */ e(p, { component: "nav", "aria-label": n, children: /* @__PURE__ */ e(
149
157
  b,
150
158
  {
151
159
  component: "ul",
152
160
  spacing: 3,
153
161
  sx: { listStyle: "none", m: 0, p: 0, fontSize: "1.25rem" },
154
- children: o.map((x) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(_, { link: x, onClick: g }) }, x.href))
162
+ children: o.map((x) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(U, { link: x, onClick: v, accent: c }) }, x.href))
155
163
  }
156
164
  ) })
157
165
  ] }) })
@@ -167,24 +175,24 @@ function Vr({
167
175
  value: r,
168
176
  onChange: t,
169
177
  options: o = Ve,
170
- ariaLabel: l = "Language"
178
+ ariaLabel: a = "Language"
171
179
  }) {
172
180
  return /* @__PURE__ */ e(
173
- Re,
181
+ ze,
174
182
  {
175
183
  exclusive: !0,
176
184
  size: "small",
177
185
  value: r,
178
- "aria-label": l,
179
- onChange: (n, a) => {
180
- a !== null && t(a);
186
+ "aria-label": a,
187
+ onChange: (n, l) => {
188
+ l !== null && t(l);
181
189
  },
182
190
  children: o.map((n) => /* @__PURE__ */ e(Oe, { value: n.value, children: n.label }, n.value))
183
191
  }
184
192
  );
185
193
  }
186
- function _r({ value: r, label: t, description: o }) {
187
- return /* @__PURE__ */ e(A, { children: /* @__PURE__ */ d(D, { children: [
194
+ function Ur({ value: r, label: t, description: o }) {
195
+ return /* @__PURE__ */ e(D, { children: /* @__PURE__ */ d(A, { children: [
188
196
  /* @__PURE__ */ e(h, { variant: "h3", component: "p", children: r }),
189
197
  /* @__PURE__ */ e(h, { variant: "body1", sx: { mt: 1 }, children: t }),
190
198
  o && /* @__PURE__ */ e(h, { variant: "body2", color: "text.secondary", sx: { mt: 1 }, children: o })
@@ -193,56 +201,56 @@ function _r({ value: r, label: t, description: o }) {
193
201
  function oe(r, t) {
194
202
  return r[t.key];
195
203
  }
196
- function U(r, t) {
204
+ function _(r, t) {
197
205
  if (t.sortValue) return t.sortValue(r);
198
206
  const o = oe(r, t);
199
207
  return typeof o == "number" ? o : String(o ?? "");
200
208
  }
201
- function _e(r, t) {
209
+ function Ue(r, t) {
202
210
  return typeof r == "number" && typeof t == "number" ? r - t : String(r).localeCompare(String(t), void 0, { numeric: !0 });
203
211
  }
204
- function Ur({
212
+ function _r({
205
213
  columns: r,
206
214
  rows: t,
207
215
  getRowKey: o,
208
- caption: l,
216
+ caption: a,
209
217
  emptyMessage: n = "No data"
210
218
  }) {
211
- const [a, u] = M(
219
+ const [l, u] = M(
212
220
  null
213
221
  ), f = ie(() => {
214
- if (!a) return t;
215
- const i = r.find((m) => m.key === a.key);
222
+ if (!l) return t;
223
+ const i = r.find((m) => m.key === l.key);
216
224
  if (!i) return t;
217
- const s = a.direction === "asc" ? 1 : -1;
225
+ const s = l.direction === "asc" ? 1 : -1;
218
226
  return [...t].sort(
219
- (m, g) => s * _e(U(m, i), U(g, i))
227
+ (m, g) => s * Ue(_(m, i), _(g, i))
220
228
  );
221
- }, [t, r, a]), c = (i) => {
229
+ }, [t, r, l]), c = (i) => {
222
230
  u(
223
231
  (s) => s?.key === i && s.direction === "asc" ? { key: i, direction: "desc" } : { key: i, direction: "asc" }
224
232
  );
225
233
  };
226
234
  return /* @__PURE__ */ e(we, { tabIndex: 0, sx: { overflowX: "auto" }, children: /* @__PURE__ */ d(Ce, { children: [
227
- l && /* @__PURE__ */ e(
235
+ a && /* @__PURE__ */ e(
228
236
  h,
229
237
  {
230
238
  component: "caption",
231
239
  variant: "body2",
232
240
  color: "text.secondary",
233
241
  sx: { captionSide: "top", textAlign: "left", pb: 2 },
234
- children: l
242
+ children: a
235
243
  }
236
244
  ),
237
- /* @__PURE__ */ e(ke, { children: /* @__PURE__ */ e(O, { children: r.map((i) => {
238
- const s = a?.key === i.key ? a.direction : void 0;
245
+ /* @__PURE__ */ e(Be, { children: /* @__PURE__ */ e(O, { children: r.map((i) => {
246
+ const s = l?.key === i.key ? l.direction : void 0;
239
247
  return /* @__PURE__ */ e(
240
248
  T,
241
249
  {
242
250
  align: i.align,
243
251
  sortDirection: s ?? !1,
244
252
  children: i.sortable ? /* @__PURE__ */ e(
245
- Be,
253
+ ke,
246
254
  {
247
255
  active: s !== void 0,
248
256
  direction: s ?? "asc",
@@ -270,9 +278,9 @@ function Xr({
270
278
  data: r,
271
279
  title: t,
272
280
  max: o,
273
- formatValue: l = String
281
+ formatValue: a = String
274
282
  }) {
275
- const n = o ?? Math.max(0, ...r.map((a) => a.value));
283
+ const n = o ?? Math.max(0, ...r.map((l) => l.value));
276
284
  return /* @__PURE__ */ d(p, { component: "figure", sx: { m: 0 }, children: [
277
285
  t && /* @__PURE__ */ e(
278
286
  h,
@@ -284,8 +292,8 @@ function Xr({
284
292
  children: t
285
293
  }
286
294
  ),
287
- /* @__PURE__ */ e(b, { component: "ul", spacing: 1.5, sx: { listStyle: "none", m: 0, p: 0 }, children: r.map((a) => {
288
- const u = n > 0 ? Math.min(100, Math.max(0, a.value / n * 100)) : 0, f = l(a.value);
295
+ /* @__PURE__ */ e(b, { component: "ul", spacing: 1.5, sx: { listStyle: "none", m: 0, p: 0 }, children: r.map((l) => {
296
+ const u = n > 0 ? Math.min(100, Math.max(0, l.value / n * 100)) : 0, f = a(l.value);
289
297
  return /* @__PURE__ */ d(
290
298
  p,
291
299
  {
@@ -297,15 +305,15 @@ function Xr({
297
305
  columnGap: 2
298
306
  },
299
307
  children: [
300
- /* @__PURE__ */ e(h, { variant: "body2", "aria-hidden": "true", children: a.label }),
308
+ /* @__PURE__ */ e(h, { variant: "body2", "aria-hidden": "true", children: l.label }),
301
309
  /* @__PURE__ */ e(
302
310
  p,
303
311
  {
304
312
  role: "meter",
305
- "aria-label": a.label,
313
+ "aria-label": l.label,
306
314
  "aria-valuemin": 0,
307
315
  "aria-valuemax": n,
308
- "aria-valuenow": a.value,
316
+ "aria-valuenow": l.value,
309
317
  "aria-valuetext": f,
310
318
  sx: {
311
319
  height: 12,
@@ -333,13 +341,13 @@ function Xr({
333
341
  )
334
342
  ]
335
343
  },
336
- a.label
344
+ l.label
337
345
  );
338
346
  }) })
339
347
  ] });
340
348
  }
341
- function C({ icon: r, label: t, size: o = 18, ...l }) {
342
- return t ? /* @__PURE__ */ e(r, { size: o, role: "img", "aria-label": t, ...l }) : /* @__PURE__ */ e(r, { size: o, "aria-hidden": "true", focusable: "false", ...l });
349
+ function C({ icon: r, label: t, size: o = 18, ...a }) {
350
+ return t ? /* @__PURE__ */ e(r, { size: o, role: "img", "aria-label": t, ...a }) : /* @__PURE__ */ e(r, { size: o, "aria-hidden": "true", focusable: "false", ...a });
343
351
  }
344
352
  const Yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
345
353
  __proto__: null,
@@ -368,7 +376,7 @@ const Yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
368
376
  Users: ye,
369
377
  X: L
370
378
  }, Symbol.toStringTag, { value: "Module" }));
371
- function Ue({ color: r, dot: t = !1, ...o }) {
379
+ function _e({ color: r, dot: t = !1, ...o }) {
372
380
  return /* @__PURE__ */ e(
373
381
  Y,
374
382
  {
@@ -415,9 +423,9 @@ function qr({
415
423
  title: r,
416
424
  description: t,
417
425
  lines: o = [],
418
- links: l = [],
426
+ links: a = [],
419
427
  linksLabel: n = "Footer links",
420
- action: a,
428
+ action: l,
421
429
  legal: u,
422
430
  externalLabel: f = "(opens in a new tab)"
423
431
  }) {
@@ -509,7 +517,7 @@ function qr({
509
517
  ))
510
518
  ] }),
511
519
  /* @__PURE__ */ d(b, { spacing: 2, alignItems: { xs: "flex-start", sm: "flex-end" }, children: [
512
- l.length > 0 && /* @__PURE__ */ e(p, { component: "nav", "aria-label": n, children: /* @__PURE__ */ e(
520
+ a.length > 0 && /* @__PURE__ */ e(p, { component: "nav", "aria-label": n, children: /* @__PURE__ */ e(
513
521
  b,
514
522
  {
515
523
  component: "ul",
@@ -518,7 +526,7 @@ function qr({
518
526
  useFlexGap: !0,
519
527
  flexWrap: "wrap",
520
528
  sx: { listStyle: "none", m: 0, p: 0 },
521
- children: l.map((i) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ d(
529
+ children: a.map((i) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ d(
522
530
  S,
523
531
  {
524
532
  href: i.href,
@@ -538,7 +546,7 @@ function qr({
538
546
  ) }, i.href))
539
547
  }
540
548
  ) }),
541
- a
549
+ l
542
550
  ] })
543
551
  ]
544
552
  }
@@ -571,10 +579,10 @@ function Jr({
571
579
  title: r,
572
580
  eyebrow: t,
573
581
  description: o,
574
- level: l = 2,
582
+ level: a = 2,
575
583
  align: n = "left"
576
584
  }) {
577
- const a = `h${l}`;
585
+ const l = `h${a}`;
578
586
  return /* @__PURE__ */ d(b, { spacing: 1, sx: { textAlign: n, alignItems: n === "center" ? "center" : "flex-start" }, children: [
579
587
  t && /* @__PURE__ */ e(
580
588
  h,
@@ -586,7 +594,7 @@ function Jr({
586
594
  children: t
587
595
  }
588
596
  ),
589
- /* @__PURE__ */ e(h, { component: a, variant: "h3", children: r }),
597
+ /* @__PURE__ */ e(h, { component: l, variant: "h3", children: r }),
590
598
  o && /* @__PURE__ */ e(h, { variant: "body1", color: "text.secondary", sx: { maxWidth: 680 }, children: o })
591
599
  ] });
592
600
  }
@@ -594,14 +602,14 @@ function Qr({
594
602
  label: r,
595
603
  value: t,
596
604
  onChange: o,
597
- options: l,
605
+ options: a,
598
606
  helperText: n,
599
- disabled: a,
607
+ disabled: l,
600
608
  fullWidth: u,
601
609
  size: f,
602
610
  id: c
603
611
  }) {
604
- const i = new Map(l.map((s) => [s.value, s]));
612
+ const i = new Map(a.map((s) => [s.value, s]));
605
613
  return /* @__PURE__ */ e(
606
614
  Te,
607
615
  {
@@ -611,7 +619,7 @@ function Qr({
611
619
  value: t,
612
620
  onChange: (s) => o(s.target.value),
613
621
  helperText: n,
614
- disabled: a,
622
+ disabled: l,
615
623
  fullWidth: u,
616
624
  size: f,
617
625
  slotProps: {
@@ -625,7 +633,7 @@ function Qr({
625
633
  }
626
634
  }
627
635
  },
628
- children: l.map((s) => /* @__PURE__ */ d(je, { value: s.value, sx: { gap: 1 }, children: [
636
+ children: a.map((s) => /* @__PURE__ */ d(je, { value: s.value, sx: { gap: 1 }, children: [
629
637
  s.adornment,
630
638
  s.label,
631
639
  s.count !== void 0 && /* @__PURE__ */ e(h, { component: "span", variant: "caption", color: "text.secondary", sx: { ml: "auto", pl: 2 }, children: s.count })
@@ -637,13 +645,13 @@ function Kr({
637
645
  open: r,
638
646
  onClose: t,
639
647
  title: o,
640
- description: l,
648
+ description: a,
641
649
  children: n,
642
- actions: a,
650
+ actions: l,
643
651
  closeLabel: u = "Close",
644
652
  maxWidth: f = "sm"
645
653
  }) {
646
- const c = E(), i = E();
654
+ const c = I(), i = I();
647
655
  return /* @__PURE__ */ d(
648
656
  We,
649
657
  {
@@ -652,11 +660,11 @@ function Kr({
652
660
  fullWidth: !0,
653
661
  maxWidth: f,
654
662
  "aria-labelledby": c,
655
- "aria-describedby": l ? i : void 0,
663
+ "aria-describedby": a ? i : void 0,
656
664
  children: [
657
- /* @__PURE__ */ e(Ie, { id: c, sx: { pr: 7 }, children: o }),
665
+ /* @__PURE__ */ e(Ee, { id: c, sx: { pr: 7 }, children: o }),
658
666
  /* @__PURE__ */ e(
659
- B,
667
+ k,
660
668
  {
661
669
  "aria-label": u,
662
670
  onClick: t,
@@ -664,11 +672,11 @@ function Kr({
664
672
  children: /* @__PURE__ */ e(C, { icon: L })
665
673
  }
666
674
  ),
667
- /* @__PURE__ */ d(De, { children: [
668
- l && /* @__PURE__ */ e(Ee, { id: i, sx: { mb: n ? 2 : 0 }, children: l }),
675
+ /* @__PURE__ */ d(Ae, { children: [
676
+ a && /* @__PURE__ */ e(Ie, { id: i, sx: { mb: n ? 2 : 0 }, children: a }),
669
677
  n
670
678
  ] }),
671
- a && /* @__PURE__ */ e(Ae, { sx: { px: 3, pb: 2 }, children: a })
679
+ l && /* @__PURE__ */ e(De, { sx: { px: 3, pb: 2 }, children: l })
672
680
  ]
673
681
  }
674
682
  );
@@ -677,14 +685,14 @@ function Zr({
677
685
  open: r,
678
686
  onClose: t,
679
687
  title: o,
680
- eyebrow: l,
688
+ eyebrow: a,
681
689
  children: n,
682
- footer: a,
690
+ footer: l,
683
691
  anchor: u = "right",
684
692
  width: f = 420,
685
693
  closeLabel: c = "Close"
686
694
  }) {
687
- const i = E();
695
+ const i = I();
688
696
  return /* @__PURE__ */ e(re, { anchor: u, open: r, onClose: t, children: /* @__PURE__ */ d(
689
697
  p,
690
698
  {
@@ -707,8 +715,8 @@ function Zr({
707
715
  alignItems: "center",
708
716
  sx: { p: 3, pb: 1 },
709
717
  children: [
710
- /* @__PURE__ */ e(h, { component: "p", variant: "overline", color: "primary.main", children: l }),
711
- /* @__PURE__ */ e(B, { "aria-label": c, onClick: t, edge: "end", children: /* @__PURE__ */ e(C, { icon: L }) })
718
+ /* @__PURE__ */ e(h, { component: "p", variant: "overline", color: "primary.main", children: a }),
719
+ /* @__PURE__ */ e(k, { "aria-label": c, onClick: t, edge: "end", children: /* @__PURE__ */ e(C, { icon: L }) })
712
720
  ]
713
721
  }
714
722
  ),
@@ -716,7 +724,7 @@ function Zr({
716
724
  /* @__PURE__ */ e(h, { id: i, component: "h2", variant: "h4", sx: { mb: 2 }, children: o }),
717
725
  n
718
726
  ] }),
719
- a && /* @__PURE__ */ e(p, { sx: { p: 3, borderTop: 1, borderColor: "divider" }, children: a })
727
+ l && /* @__PURE__ */ e(p, { sx: { p: 3, borderTop: 1, borderColor: "divider" }, children: l })
720
728
  ]
721
729
  }
722
730
  ) });
@@ -725,11 +733,11 @@ function et({
725
733
  label: r,
726
734
  value: t,
727
735
  copyLabel: o = "Copy",
728
- copiedLabel: l = "Copied!",
736
+ copiedLabel: a = "Copied!",
729
737
  errorLabel: n = "Could not copy",
730
- copiedDuration: a = 2e3
738
+ copiedDuration: l = 2e3
731
739
  }) {
732
- const [u, f] = M("idle"), c = I(void 0);
740
+ const [u, f] = M("idle"), c = E(void 0);
733
741
  q(() => () => clearTimeout(c.current), []);
734
742
  async function i() {
735
743
  try {
@@ -737,7 +745,7 @@ function et({
737
745
  } catch {
738
746
  f("error");
739
747
  }
740
- clearTimeout(c.current), c.current = setTimeout(() => f("idle"), a);
748
+ clearTimeout(c.current), c.current = setTimeout(() => f("idle"), l);
741
749
  }
742
750
  return /* @__PURE__ */ d(b, { spacing: 1.5, children: [
743
751
  /* @__PURE__ */ e(h, { component: "p", variant: "overline", color: "text.secondary", children: r }),
@@ -762,15 +770,15 @@ function et({
762
770
  }
763
771
  ),
764
772
  /* @__PURE__ */ e(
765
- z,
773
+ R,
766
774
  {
767
775
  onClick: i,
768
776
  startIcon: /* @__PURE__ */ e(C, { icon: u === "copied" ? J : Z }),
769
777
  fullWidth: !0,
770
- children: u === "copied" ? l : o
778
+ children: u === "copied" ? a : o
771
779
  }
772
780
  ),
773
- /* @__PURE__ */ e(N, { role: "status", "aria-live": "polite", children: u === "copied" ? l : u === "error" ? n : "" })
781
+ /* @__PURE__ */ e(N, { role: "status", "aria-live": "polite", children: u === "copied" ? a : u === "error" ? n : "" })
774
782
  ] });
775
783
  }
776
784
  function rt({ href: r, children: t = "Skip to content" }) {
@@ -802,19 +810,19 @@ function tt({
802
810
  title: r,
803
811
  eyebrow: t,
804
812
  description: o,
805
- actions: l,
813
+ actions: a,
806
814
  level: n = 1,
807
- align: a = "left",
815
+ align: l = "left",
808
816
  image: u,
809
817
  imagePosition: f = "center"
810
818
  }) {
811
- const c = `h${n}`, i = a === "center", s = !!u;
819
+ const c = `h${n}`, i = l === "center", s = !!u;
812
820
  return /* @__PURE__ */ e(
813
821
  p,
814
822
  {
815
823
  component: "section",
816
824
  sx: (m) => {
817
- const g = m.vietri.color.scrim, x = m.vietri.gradient.surface, v = `linear-gradient(0deg, ${g} 0%, ${w(g, 0)} 28%)`, V = `url(${JSON.stringify(u ?? "")})`;
825
+ const g = m.vietri.color.scrim, v = m.vietri.gradient.surface, x = `linear-gradient(0deg, ${g} 0%, ${w(g, 0)} 18%)`, V = `url(${JSON.stringify(u ?? "")})`;
818
826
  return {
819
827
  display: "flex",
820
828
  alignItems: "center",
@@ -824,13 +832,13 @@ function tt({
824
832
  ...s ? {
825
833
  // Layers, from top to bottom: dark layer, bottom fade, photo, surface.
826
834
  backgroundImage: {
827
- xs: `linear-gradient(${w(g, 0.88)}, ${w(g, 0.88)}), ${v}, ${V}, ${x}`,
828
- md: `linear-gradient(90deg, ${w(g, 0.92)} 0%, ${w(g, 0.86)} 62%, ${w(g, 0.25)} 100%), ${v}, ${V}, ${x}`
835
+ xs: `linear-gradient(${w(g, 0.8)}, ${w(g, 0.8)}), ${x}, ${V}, ${v}`,
836
+ md: `linear-gradient(90deg, ${w(g, 0.84)} 0%, ${w(g, 0.74)} 62%, ${w(g, 0.1)} 100%), ${x}, ${V}, ${v}`
829
837
  },
830
838
  backgroundSize: "cover",
831
839
  backgroundPosition: f,
832
840
  backgroundRepeat: "no-repeat"
833
- } : { background: x },
841
+ } : { background: v },
834
842
  // Focus ring and secondary buttons that stay visible on a dark surface.
835
843
  "& a:focus-visible, & button:focus-visible": {
836
844
  outline: "2px solid",
@@ -849,8 +857,8 @@ function tt({
849
857
  spacing: 2,
850
858
  sx: {
851
859
  alignItems: i ? "center" : "flex-start",
852
- textAlign: a,
853
- // With an image the text stays in the left 60%, where the dark layer is strongest.
860
+ textAlign: l,
861
+ // With an image the text stays in the left 60%, where the dark layer is at its strongest.
854
862
  ...s && { maxWidth: { md: "60%" }, ...i && { mx: "auto" } }
855
863
  },
856
864
  children: [
@@ -875,7 +883,7 @@ function tt({
875
883
  children: o
876
884
  }
877
885
  ),
878
- l && /* @__PURE__ */ e(
886
+ a && /* @__PURE__ */ e(
879
887
  b,
880
888
  {
881
889
  direction: "row",
@@ -883,7 +891,7 @@ function tt({
883
891
  useFlexGap: !0,
884
892
  flexWrap: "wrap",
885
893
  sx: { pt: 2, justifyContent: i ? "center" : "flex-start" },
886
- children: l
894
+ children: a
887
895
  }
888
896
  )
889
897
  ]
@@ -896,11 +904,11 @@ function ot({
896
904
  icon: r,
897
905
  title: t,
898
906
  description: o,
899
- level: l = 3,
907
+ level: a = 3,
900
908
  children: n
901
909
  }) {
902
- const a = `h${l}`;
903
- return /* @__PURE__ */ e(A, { sx: { height: "100%" }, children: /* @__PURE__ */ d(D, { children: [
910
+ const l = `h${a}`;
911
+ return /* @__PURE__ */ e(D, { sx: { height: "100%" }, children: /* @__PURE__ */ d(A, { children: [
904
912
  /* @__PURE__ */ e(
905
913
  p,
906
914
  {
@@ -917,13 +925,13 @@ function ot({
917
925
  children: /* @__PURE__ */ e(C, { icon: r, size: 22 })
918
926
  }
919
927
  ),
920
- /* @__PURE__ */ e(h, { component: a, variant: "h6", gutterBottom: !0, children: t }),
928
+ /* @__PURE__ */ e(h, { component: l, variant: "h6", gutterBottom: !0, children: t }),
921
929
  o && /* @__PURE__ */ e(h, { variant: "body2", color: "text.secondary", children: o }),
922
930
  n && /* @__PURE__ */ e(p, { sx: { mt: 2 }, children: n })
923
931
  ] }) });
924
932
  }
925
933
  function it({ steps: r, level: t = 3, ariaLabel: o }) {
926
- const l = `h${t}`;
934
+ const a = `h${t}`;
927
935
  return /* @__PURE__ */ e(
928
936
  p,
929
937
  {
@@ -941,7 +949,7 @@ function it({ steps: r, level: t = 3, ariaLabel: o }) {
941
949
  md: `repeat(${Math.max(r.length, 1)}, minmax(0, 1fr))`
942
950
  }
943
951
  },
944
- children: r.map((n, a) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ d(b, { spacing: 1, children: [
952
+ children: r.map((n, l) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ d(b, { spacing: 1, children: [
945
953
  /* @__PURE__ */ e(
946
954
  p,
947
955
  {
@@ -956,17 +964,17 @@ function it({ steps: r, level: t = 3, ariaLabel: o }) {
956
964
  bgcolor: u.palette.primary.main,
957
965
  color: u.palette.primary.contrastText
958
966
  }),
959
- children: a + 1
967
+ children: l + 1
960
968
  }
961
969
  ),
962
- /* @__PURE__ */ e(h, { component: l, variant: "h6", children: n.title }),
970
+ /* @__PURE__ */ e(h, { component: a, variant: "h6", children: n.title }),
963
971
  n.description && /* @__PURE__ */ e(h, { variant: "body2", color: "text.secondary", children: n.description })
964
972
  ] }) }, n.title))
965
973
  }
966
974
  );
967
975
  }
968
976
  function nt({ entries: r, level: t = 3, ariaLabel: o }) {
969
- const l = `h${t}`;
977
+ const a = `h${t}`;
970
978
  return /* @__PURE__ */ e(
971
979
  p,
972
980
  {
@@ -979,11 +987,11 @@ function nt({ entries: r, level: t = 3, ariaLabel: o }) {
979
987
  {
980
988
  component: "li",
981
989
  id: n.id,
982
- sx: (a) => ({
990
+ sx: (l) => ({
983
991
  position: "relative",
984
992
  pl: 4,
985
993
  pb: 5,
986
- scrollMarginTop: a.spacing(10),
994
+ scrollMarginTop: l.spacing(10),
987
995
  // Vertical line between dots.
988
996
  "&::before": {
989
997
  content: '""',
@@ -992,7 +1000,7 @@ function nt({ entries: r, level: t = 3, ariaLabel: o }) {
992
1000
  top: 14,
993
1001
  bottom: 0,
994
1002
  width: 2,
995
- bgcolor: a.palette.divider
1003
+ bgcolor: l.palette.divider
996
1004
  },
997
1005
  "&:last-of-type": { pb: 0 },
998
1006
  "&:last-of-type::before": { display: "none" }
@@ -1002,20 +1010,20 @@ function nt({ entries: r, level: t = 3, ariaLabel: o }) {
1002
1010
  p,
1003
1011
  {
1004
1012
  "aria-hidden": "true",
1005
- sx: (a) => ({
1013
+ sx: (l) => ({
1006
1014
  position: "absolute",
1007
1015
  left: 0,
1008
1016
  top: 6,
1009
1017
  width: 16,
1010
1018
  height: 16,
1011
1019
  borderRadius: "50%",
1012
- bgcolor: a.palette.primary.main,
1013
- border: `3px solid ${a.palette.background.default}`,
1020
+ bgcolor: l.palette.primary.main,
1021
+ border: `3px solid ${l.palette.background.default}`,
1014
1022
  boxSizing: "border-box"
1015
1023
  })
1016
1024
  }
1017
1025
  ),
1018
- /* @__PURE__ */ e(h, { component: l, variant: "h5", children: n.label }),
1026
+ /* @__PURE__ */ e(h, { component: a, variant: "h5", children: n.label }),
1019
1027
  n.description && /* @__PURE__ */ e(h, { variant: "body2", color: "text.secondary", sx: { mt: 0.5 }, children: n.description }),
1020
1028
  n.content && /* @__PURE__ */ e(p, { sx: { mt: 2 }, children: n.content })
1021
1029
  ]
@@ -1041,15 +1049,15 @@ function at({
1041
1049
  name: r,
1042
1050
  subtitle: t,
1043
1051
  bio: o,
1044
- tags: l = [],
1052
+ tags: a = [],
1045
1053
  href: n,
1046
- onClick: a,
1054
+ onClick: l,
1047
1055
  level: u = 3,
1048
1056
  bioLines: f = 3
1049
1057
  }) {
1050
- const c = `h${u}`, i = !!(n || a);
1058
+ const c = `h${u}`, i = !!(n || l);
1051
1059
  return /* @__PURE__ */ e(
1052
- A,
1060
+ D,
1053
1061
  {
1054
1062
  sx: (m) => ({
1055
1063
  position: "relative",
@@ -1062,8 +1070,8 @@ function at({
1062
1070
  },
1063
1071
  "& a:focus-visible, & button:focus-visible": { outline: "none" }
1064
1072
  }),
1065
- children: /* @__PURE__ */ d(D, { children: [
1066
- /* @__PURE__ */ e(h, { component: c, variant: "h6", children: n ? /* @__PURE__ */ e(S, { href: n, underline: "none", sx: X, children: r }) : a ? /* @__PURE__ */ e(S, { component: "button", type: "button", onClick: a, underline: "none", sx: X, children: r }) : r }),
1073
+ children: /* @__PURE__ */ d(A, { children: [
1074
+ /* @__PURE__ */ e(h, { component: c, variant: "h6", children: n ? /* @__PURE__ */ e(S, { href: n, underline: "none", sx: X, children: r }) : l ? /* @__PURE__ */ e(S, { component: "button", type: "button", onClick: l, underline: "none", sx: X, children: r }) : r }),
1067
1075
  t && /* @__PURE__ */ e(h, { variant: "body2", color: "text.secondary", children: t }),
1068
1076
  o && /* @__PURE__ */ e(
1069
1077
  h,
@@ -1079,8 +1087,8 @@ function at({
1079
1087
  children: o
1080
1088
  }
1081
1089
  ),
1082
- l.length > 0 && /* @__PURE__ */ e(b, { direction: "row", spacing: 1, useFlexGap: !0, flexWrap: "wrap", sx: { mt: 2 }, children: l.map(
1083
- (m) => m.color ? /* @__PURE__ */ e(Ue, { label: m.label, color: m.color }, m.label) : /* @__PURE__ */ e(Y, { label: m.label, size: "small" }, m.label)
1090
+ a.length > 0 && /* @__PURE__ */ e(b, { direction: "row", spacing: 1, useFlexGap: !0, flexWrap: "wrap", sx: { mt: 2 }, children: a.map(
1091
+ (m) => m.color ? /* @__PURE__ */ e(_e, { label: m.label, color: m.color }, m.label) : /* @__PURE__ */ e(Y, { label: m.label, size: "small" }, m.label)
1084
1092
  ) })
1085
1093
  ] })
1086
1094
  }
@@ -1108,9 +1116,9 @@ function lt({
1108
1116
  title: r,
1109
1117
  subtitle: t,
1110
1118
  meta: o,
1111
- imageUrl: l,
1119
+ imageUrl: a,
1112
1120
  duration: n,
1113
- badge: a,
1121
+ badge: l,
1114
1122
  href: u,
1115
1123
  onClick: f,
1116
1124
  level: c = 3,
@@ -1119,9 +1127,9 @@ function lt({
1119
1127
  }) {
1120
1128
  const m = `h${c}`, g = !!(u || f);
1121
1129
  return /* @__PURE__ */ d(
1122
- A,
1130
+ D,
1123
1131
  {
1124
- sx: (v) => ({
1132
+ sx: (x) => ({
1125
1133
  position: "relative",
1126
1134
  height: "100%",
1127
1135
  overflow: "hidden",
@@ -1129,30 +1137,30 @@ function lt({
1129
1137
  ...g && {
1130
1138
  "&:hover": {
1131
1139
  transform: "scale(1.03)",
1132
- boxShadow: v.vietri.shadow.lg,
1133
- borderColor: v.palette.primary.main
1140
+ boxShadow: x.vietri.shadow.lg,
1141
+ borderColor: x.palette.primary.main
1134
1142
  },
1135
1143
  "&:hover .media-card-image": { transform: "scale(1.06)" }
1136
1144
  },
1137
- ...Xe(v)
1145
+ ...Xe(x)
1138
1146
  }),
1139
1147
  children: [
1140
1148
  /* @__PURE__ */ d(
1141
1149
  p,
1142
1150
  {
1143
- sx: (v) => ({
1151
+ sx: (x) => ({
1144
1152
  position: "relative",
1145
1153
  aspectRatio: s,
1146
1154
  overflow: "hidden",
1147
- bgcolor: v.vietri.color.chip
1155
+ bgcolor: x.vietri.color.chip
1148
1156
  }),
1149
1157
  children: [
1150
- l && /* @__PURE__ */ e(
1158
+ a && /* @__PURE__ */ e(
1151
1159
  p,
1152
1160
  {
1153
1161
  component: "img",
1154
1162
  className: "media-card-image",
1155
- src: l,
1163
+ src: a,
1156
1164
  alt: "",
1157
1165
  loading: "lazy",
1158
1166
  sx: {
@@ -1184,10 +1192,10 @@ function lt({
1184
1192
  children: /* @__PURE__ */ e(C, { icon: P, size: 22 })
1185
1193
  }
1186
1194
  ),
1187
- a && /* @__PURE__ */ e(
1195
+ l && /* @__PURE__ */ e(
1188
1196
  p,
1189
1197
  {
1190
- sx: (v) => ({
1198
+ sx: (x) => ({
1191
1199
  position: "absolute",
1192
1200
  top: 8,
1193
1201
  left: 8,
@@ -1196,10 +1204,10 @@ function lt({
1196
1204
  borderRadius: 1,
1197
1205
  fontSize: "0.75rem",
1198
1206
  fontWeight: 600,
1199
- bgcolor: v.vietri.color.action[0],
1200
- color: v.vietri.color.onAction
1207
+ bgcolor: x.vietri.color.action[0],
1208
+ color: x.vietri.color.onAction
1201
1209
  }),
1202
- children: a
1210
+ children: l
1203
1211
  }
1204
1212
  ),
1205
1213
  n && /* @__PURE__ */ e(
@@ -1223,7 +1231,7 @@ function lt({
1223
1231
  ]
1224
1232
  }
1225
1233
  ),
1226
- /* @__PURE__ */ d(D, { children: [
1234
+ /* @__PURE__ */ d(A, { children: [
1227
1235
  o && /* @__PURE__ */ e(h, { component: "p", variant: "overline", color: "text.secondary", children: o }),
1228
1236
  /* @__PURE__ */ e(h, { component: m, variant: "h6", children: u ? /* @__PURE__ */ e(S, { href: u, underline: "none", sx: W, children: r }) : f ? /* @__PURE__ */ e(S, { component: "button", type: "button", onClick: f, underline: "none", sx: W, children: r }) : r }),
1229
1237
  t && /* @__PURE__ */ e(h, { variant: "body2", color: "text.secondary", children: t })
@@ -1236,19 +1244,19 @@ function ct({
1236
1244
  title: r,
1237
1245
  children: t,
1238
1246
  level: o = 2,
1239
- itemWidth: l = 280,
1247
+ itemWidth: a = 280,
1240
1248
  previousLabel: n = "Scroll left",
1241
- nextLabel: a = "Scroll right",
1249
+ nextLabel: l = "Scroll right",
1242
1250
  action: u
1243
1251
  }) {
1244
- const f = `h${o}`, c = E(), i = I(null), s = ne.toArray(t);
1252
+ const f = `h${o}`, c = I(), i = E(null), s = ne.toArray(t);
1245
1253
  function m(g) {
1246
- const x = i.current;
1247
- if (!x) return;
1248
- const v = typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
1249
- x.scrollBy?.({
1250
- left: g * x.clientWidth * 0.8,
1251
- behavior: v ? "auto" : "smooth"
1254
+ const v = i.current;
1255
+ if (!v) return;
1256
+ const x = typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
1257
+ v.scrollBy?.({
1258
+ left: g * v.clientWidth * 0.8,
1259
+ behavior: x ? "auto" : "smooth"
1252
1260
  });
1253
1261
  }
1254
1262
  return /* @__PURE__ */ d(p, { component: "section", "aria-labelledby": c, sx: { mb: 4 }, children: [
@@ -1263,8 +1271,8 @@ function ct({
1263
1271
  /* @__PURE__ */ e(h, { id: c, component: f, variant: "h5", children: r }),
1264
1272
  /* @__PURE__ */ d(b, { direction: "row", spacing: 1, alignItems: "center", children: [
1265
1273
  u,
1266
- /* @__PURE__ */ e(B, { "aria-label": n, onClick: () => m(-1), children: /* @__PURE__ */ e(C, { icon: Q }) }),
1267
- /* @__PURE__ */ e(B, { "aria-label": a, onClick: () => m(1), children: /* @__PURE__ */ e(C, { icon: K }) })
1274
+ /* @__PURE__ */ e(k, { color: "primary", "aria-label": n, onClick: () => m(-1), children: /* @__PURE__ */ e(C, { icon: Q }) }),
1275
+ /* @__PURE__ */ e(k, { color: "primary", "aria-label": l, onClick: () => m(1), children: /* @__PURE__ */ e(C, { icon: K }) })
1268
1276
  ] })
1269
1277
  ]
1270
1278
  }
@@ -1302,14 +1310,14 @@ function ct({
1302
1310
  component: "ul",
1303
1311
  role: "list",
1304
1312
  sx: { listStyle: "none", m: 0, p: 0, display: "flex", gap: 2 },
1305
- children: s.map((g, x) => /* @__PURE__ */ e(
1313
+ children: s.map((g, v) => /* @__PURE__ */ e(
1306
1314
  p,
1307
1315
  {
1308
1316
  component: "li",
1309
- sx: { flex: `0 0 ${l}px`, scrollSnapAlign: "start" },
1317
+ sx: { flex: `0 0 ${a}px`, scrollSnapAlign: "start" },
1310
1318
  children: g
1311
1319
  },
1312
- x
1320
+ v
1313
1321
  ))
1314
1322
  }
1315
1323
  )
@@ -1318,18 +1326,18 @@ function ct({
1318
1326
  ] });
1319
1327
  }
1320
1328
  function Ye(r, t, o) {
1321
- const l = new URLSearchParams({ rel: "0", modestbranding: "1" });
1322
- return t && l.set("start", String(Math.floor(t))), o && l.set("autoplay", "1"), `https://www.youtube-nocookie.com/embed/${encodeURIComponent(r)}?${l.toString()}`;
1329
+ const a = new URLSearchParams({ rel: "0", modestbranding: "1" });
1330
+ return t && a.set("start", String(Math.floor(t))), o && a.set("autoplay", "1"), `https://www.youtube-nocookie.com/embed/${encodeURIComponent(r)}?${a.toString()}`;
1323
1331
  }
1324
1332
  function dt({
1325
1333
  videoId: r,
1326
1334
  title: t,
1327
1335
  poster: o,
1328
- start: l,
1336
+ start: a,
1329
1337
  lazy: n = !0,
1330
- playLabel: a
1338
+ playLabel: l
1331
1339
  }) {
1332
- const [u, f] = M(!n), c = I(!1), i = I(null);
1340
+ const [u, f] = M(!n), c = E(!1), i = E(null);
1333
1341
  return q(() => {
1334
1342
  u && c.current && i.current?.focus();
1335
1343
  }, [u]), /* @__PURE__ */ e(
@@ -1347,7 +1355,7 @@ function dt({
1347
1355
  "iframe",
1348
1356
  {
1349
1357
  ref: i,
1350
- src: Ye(r, l, c.current),
1358
+ src: Ye(r, a, c.current),
1351
1359
  title: t,
1352
1360
  allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",
1353
1361
  allowFullScreen: !0,
@@ -1358,7 +1366,7 @@ function dt({
1358
1366
  ) : /* @__PURE__ */ d(
1359
1367
  Ne,
1360
1368
  {
1361
- "aria-label": a ?? `Play video: ${t}`,
1369
+ "aria-label": l ?? `Play video: ${t}`,
1362
1370
  onClick: () => {
1363
1371
  c.current = !0, f(!0);
1364
1372
  },
@@ -1417,12 +1425,12 @@ function st({
1417
1425
  episodes: r,
1418
1426
  currentId: t,
1419
1427
  onSelect: o,
1420
- level: l = 3,
1428
+ level: a = 3,
1421
1429
  ariaLabel: n,
1422
- episodeLabel: a = (f) => `Episode ${f}`,
1430
+ episodeLabel: l = (f) => `Episode ${f}`,
1423
1431
  currentLabel: u = "Now playing"
1424
1432
  }) {
1425
- const f = `h${l}`;
1433
+ const f = `h${a}`;
1426
1434
  return /* @__PURE__ */ e(
1427
1435
  p,
1428
1436
  {
@@ -1487,7 +1495,7 @@ function st({
1487
1495
  ),
1488
1496
  /* @__PURE__ */ d(p, { sx: { minWidth: 0 }, children: [
1489
1497
  /* @__PURE__ */ d(h, { component: "p", variant: "overline", color: "text.secondary", children: [
1490
- a(c.number),
1498
+ l(c.number),
1491
1499
  i && ` · ${u}`
1492
1500
  ] }),
1493
1501
  /* @__PURE__ */ e(h, { component: f, variant: "h6", children: m }),
@@ -1519,13 +1527,13 @@ function pt({
1519
1527
  title: r,
1520
1528
  description: t,
1521
1529
  imageUrl: o,
1522
- platforms: l,
1530
+ platforms: a,
1523
1531
  level: n = 3,
1524
- platformsLabel: a = "Listen on",
1532
+ platformsLabel: l = "Listen on",
1525
1533
  externalLabel: u = "(opens in a new tab)"
1526
1534
  }) {
1527
1535
  const f = `h${n}`;
1528
- return /* @__PURE__ */ d(A, { sx: { height: "100%" }, children: [
1536
+ return /* @__PURE__ */ d(D, { sx: { height: "100%" }, children: [
1529
1537
  /* @__PURE__ */ e(
1530
1538
  p,
1531
1539
  {
@@ -1548,22 +1556,22 @@ function pt({
1548
1556
  ) : /* @__PURE__ */ e(C, { icon: ee, size: 48 })
1549
1557
  }
1550
1558
  ),
1551
- /* @__PURE__ */ d(D, { children: [
1559
+ /* @__PURE__ */ d(A, { children: [
1552
1560
  /* @__PURE__ */ e(h, { component: f, variant: "h6", gutterBottom: !0, children: r }),
1553
1561
  t && /* @__PURE__ */ e(h, { variant: "body2", color: "text.secondary", children: t }),
1554
- l.length > 0 && /* @__PURE__ */ e(
1562
+ a.length > 0 && /* @__PURE__ */ e(
1555
1563
  b,
1556
1564
  {
1557
1565
  component: "ul",
1558
1566
  role: "list",
1559
- "aria-label": a,
1567
+ "aria-label": l,
1560
1568
  direction: "row",
1561
1569
  spacing: 1,
1562
1570
  useFlexGap: !0,
1563
1571
  flexWrap: "wrap",
1564
1572
  sx: { listStyle: "none", m: 0, mt: 2, p: 0 },
1565
- children: l.map((c) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ d(
1566
- z,
1573
+ children: a.map((c) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ d(
1574
+ R,
1567
1575
  {
1568
1576
  variant: "outlined",
1569
1577
  size: "small",
@@ -1588,14 +1596,14 @@ function pt({
1588
1596
  ] })
1589
1597
  ] });
1590
1598
  }
1591
- function R(r, t, o = 135) {
1599
+ function z(r, t, o = 135) {
1592
1600
  return `linear-gradient(${o}deg, ${r} 0%, ${t} 100%)`;
1593
1601
  }
1594
1602
  function Je(r) {
1595
1603
  return {
1596
- surface: R(...r.surface),
1597
- action: R(...r.action),
1598
- actionHover: R(...r.actionHover)
1604
+ surface: z(...r.surface),
1605
+ action: z(...r.action),
1606
+ actionHover: z(...r.actionHover)
1599
1607
  };
1600
1608
  }
1601
1609
  const y = {
@@ -1642,13 +1650,22 @@ const y = {
1642
1650
  MuiButton: {
1643
1651
  defaultProps: { disableElevation: !0 },
1644
1652
  styleOverrides: {
1645
- root: ({ theme: r }) => ({
1646
- borderRadius: y.radius.md,
1647
- "&:focus-visible": {
1648
- outline: `2px solid ${r.palette.primary.main}`,
1649
- outlineOffset: 2
1650
- }
1651
- }),
1653
+ root: ({ theme: r, ownerState: t }) => {
1654
+ const o = t.variant === "outlined" ? 1 : 0;
1655
+ return {
1656
+ borderRadius: y.radius.md,
1657
+ // A generous "large" button, for the main action of a banner.
1658
+ ...t.size === "large" && {
1659
+ minHeight: 52,
1660
+ padding: `${12 - o}px ${32 - o}px`,
1661
+ fontSize: "1rem"
1662
+ },
1663
+ "&:focus-visible": {
1664
+ outline: `2px solid ${r.palette.primary.main}`,
1665
+ outlineOffset: 2
1666
+ }
1667
+ };
1668
+ },
1652
1669
  // Primary action fill. Flat in most themes, a soft gradient in the
1653
1670
  // Observatory. The text color meets AA at both ends of the fill.
1654
1671
  containedPrimary: ({ theme: r }) => ({
@@ -1834,7 +1851,7 @@ function G(r) {
1834
1851
  }
1835
1852
  });
1836
1853
  }
1837
- const k = (r) => [r, r], rr = {
1854
+ const B = (r) => [r, r], rr = {
1838
1855
  error: "#B91C1C",
1839
1856
  warning: "#92400E",
1840
1857
  info: "#0369A1",
@@ -1850,10 +1867,10 @@ const k = (r) => [r, r], rr = {
1850
1867
  onPrimary: "#FFFFFF",
1851
1868
  secondary: "#7A5718",
1852
1869
  onSecondary: "#FFFFFF",
1853
- action: k("#DBAC5B"),
1854
- actionHover: k("#FDD07A"),
1870
+ action: B("#DBAC5B"),
1871
+ actionHover: B("#FDD07A"),
1855
1872
  onAction: "#000000",
1856
- surface: k("#000000"),
1873
+ surface: B("#000000"),
1857
1874
  scrim: "#000000",
1858
1875
  onSurface: "#FFFFFF",
1859
1876
  onSurfaceSoft: "#D4D4D4",
@@ -1882,17 +1899,21 @@ const k = (r) => [r, r], rr = {
1882
1899
  ink: "#FFFFFF",
1883
1900
  inkSoft: "#D5CAEB",
1884
1901
  line: "rgba(255, 255, 255, 0.14)",
1885
- primary: "#1CDAF3",
1902
+ // Orange as text, outline and focus ring on dark backgrounds (6.3:1 on night, 5.5:1 on cards).
1903
+ primary: "#F4793F",
1886
1904
  onPrimary: "#20123A",
1887
1905
  secondary: "#B99BFF",
1888
1906
  onSecondary: "#20123A",
1889
- action: k("#1CDAF3"),
1890
- actionHover: k("#6AE9FA"),
1891
- onAction: "#20123A",
1892
- // Violet to lavender. The lavender end is #816CB2 darkened a hair (#7A64AE):
1893
- // the exact #816CB2 gives white text 4.45:1, just under the 4.5:1 minimum.
1894
- surface: ["#693BCC", "#7A64AE"],
1895
- scrim: "#20123A",
1907
+ // Button fill: a burnt orange that holds white text at 4.8:1 (the brand orange gives 3.2:1).
1908
+ action: B("#C8460B"),
1909
+ actionHover: B("#B63F0A"),
1910
+ onAction: "#FFFFFF",
1911
+ // Deep teal to the purple of the cards: dark and calm, with 7:1 or more for white text.
1912
+ // (The earlier violet-to-lavender gradient was bright and had the lowest contrast.)
1913
+ surface: ["#0F5C66", "#2D1B50"],
1914
+ // The layer over a hero photo: a deep lilac, the lightest one that still gives
1915
+ // AA contrast to white text over a pure white photo (a deep purple was too dark).
1916
+ scrim: "#3B2562",
1896
1917
  onSurface: "#FFFFFF",
1897
1918
  onSurfaceSoft: "#F7F3FF",
1898
1919
  chip: "#3C2866",
@@ -1910,18 +1931,23 @@ const k = (r) => [r, r], rr = {
1910
1931
  night: "#20123A",
1911
1932
  violet: "#693BCC",
1912
1933
  lavender: "#816CB2",
1934
+ /** The deep teal of the footer and banners. */
1935
+ teal: "#0F5C66",
1913
1936
  magenta: "#CB1F9C",
1914
- cyan: "#1CDAF3"
1937
+ /** The brand orange. Too light for white text: use it as a decoration, not under a label. */
1938
+ orange: "#F35F1C"
1915
1939
  },
1916
1940
  derived: {
1917
- /** Lavender darkened to carry white text at 4.5:1 (the end of the surface gradient). */
1918
- lavenderDeep: "#7A64AE",
1919
1941
  /** Violet that reads as text on the night background (7.6:1). */
1920
1942
  lilac: "#B99BFF",
1921
1943
  /** Raised surface over night. */
1922
1944
  nightRaised: "#2D1B50",
1923
- /** Hovered primary action (12:1 with the dark text). */
1924
- cyanHover: "#6AE9FA"
1945
+ /** Orange for text and outlines on dark backgrounds. */
1946
+ orangeText: "#F4793F",
1947
+ /** Burnt orange of the button fill (white text at 4.8:1). */
1948
+ orangeDeep: "#C8460B",
1949
+ /** Hovered button fill, darker (white text at 5.8:1). */
1950
+ orangeHover: "#B63F0A"
1925
1951
  }
1926
1952
  }, ir = {
1927
1953
  mode: "light",
@@ -1936,10 +1962,10 @@ const k = (r) => [r, r], rr = {
1936
1962
  onPrimary: "#FFFFFF",
1937
1963
  secondary: "#4A0875",
1938
1964
  onSecondary: "#FFFFFF",
1939
- action: k("#027381"),
1940
- actionHover: k("#015C68"),
1965
+ action: B("#027381"),
1966
+ actionHover: B("#015C68"),
1941
1967
  onAction: "#FFFFFF",
1942
- surface: k("#4A0875"),
1968
+ surface: B("#4A0875"),
1943
1969
  scrim: "#2B1B3D",
1944
1970
  onSurface: "#FFFFFF",
1945
1971
  onSurfaceSoft: "#E8DCF4",
@@ -1999,7 +2025,7 @@ const k = (r) => [r, r], rr = {
1999
2025
  function ft(r, t = nr) {
2000
2026
  const o = Array.from(new Set(r));
2001
2027
  return Object.fromEntries(
2002
- o.map((l, n) => [l, t[n % t.length]])
2028
+ o.map((a, n) => [a, t[n % t.length]])
2003
2029
  );
2004
2030
  }
2005
2031
  const gt = [
@@ -2022,15 +2048,15 @@ export {
2022
2048
  Xr as BarChart,
2023
2049
  yt as Button,
2024
2050
  St as Card,
2025
- kt as CardActionArea,
2026
- At as CardActions,
2027
- Et as CardContent,
2051
+ Bt as CardActionArea,
2052
+ Dt as CardActions,
2053
+ It as CardContent,
2028
2054
  Wt as CardMedia,
2029
- Ue as CategoryChip,
2055
+ _e as CategoryChip,
2030
2056
  $t as Chip,
2031
2057
  ct as ContentRail,
2032
2058
  et as CopyField,
2033
- Ur as DataTable,
2059
+ _r as DataTable,
2034
2060
  Kr as Dialog,
2035
2061
  Zr as Drawer,
2036
2062
  st as EpisodeList,
@@ -2047,9 +2073,9 @@ export {
2047
2073
  Jr as SectionHeader,
2048
2074
  Qr as Select,
2049
2075
  rt as SkipLink,
2050
- _r as StatCard,
2076
+ Ur as StatCard,
2051
2077
  it as Steps,
2052
- zt as Tab,
2078
+ Rt as Tab,
2053
2079
  Pt as Tabs,
2054
2080
  nt as Timeline,
2055
2081
  vt as Typography,
@@ -2062,7 +2088,7 @@ export {
2062
2088
  tr as editorialColors,
2063
2089
  ut as editorialTheme,
2064
2090
  Yr as icons,
2065
- R as linearGradient,
2091
+ z as linearGradient,
2066
2092
  gt as observatoryCategoryPalette,
2067
2093
  ir as observatoryColors,
2068
2094
  mt as observatoryTheme,