@abyss-project/commons-front-core 18.1.2 → 18.1.4

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.
Files changed (64) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +4 -0
  3. package/catalog/catalog-entries.ts +4 -0
  4. package/catalog/pages/Callout.tsx +9 -0
  5. package/catalog/pages/CodeEditor.tsx +52 -0
  6. package/catalog/pages/DeliveryHistory.tsx +79 -79
  7. package/catalog/pages/DeliverySubscriptions.tsx +127 -127
  8. package/catalog/pages/LineChart.tsx +21 -0
  9. package/catalog/pages/MarkdownEditor.tsx +1 -1
  10. package/catalog/pages/ScheduledTasks.tsx +117 -117
  11. package/catalog/pages/SessionErrorScreen.tsx +20 -0
  12. package/catalog/pages/Toast.tsx +59 -1
  13. package/catalog/pages/index.ts +4 -0
  14. package/catalog/playwright.ci.config.ts +2 -2
  15. package/catalog/specs/captures.spec.ts +145 -145
  16. package/catalog/specs/global-review-captures.spec.ts +154 -0
  17. package/catalog/specs/markdown-editor.spec.ts +107 -0
  18. package/catalog/specs/toast-dialog-foot.spec.ts +83 -0
  19. package/catalog/specs/write-capture-index.ts +81 -81
  20. package/dist/{CookieConsentSettings-CLB1Mlv5.js → CookieConsentSettings-D97TY138.js} +53 -53
  21. package/dist/{Surface-B_wIEB3b.js → Surface-CN1zQYLJ.js} +144 -121
  22. package/dist/{Tabs-MVmpclcZ.js → Tabs-CxD9y18t.js} +245 -237
  23. package/dist/components/CodeEditor/CodeEditor.component.spec.d.ts +1 -0
  24. package/dist/components/business/CookieConsent/use-banner-portal.d.ts +0 -17
  25. package/dist/components/data/LineChart/LineChart.d.ts +21 -2
  26. package/dist/components/data/LineChart/line-chart-ticks.d.ts +5 -2
  27. package/dist/components/editors/MarkdownEditor/crepe-styles.d.ts +7 -0
  28. package/dist/components/editors/MarkdownEditor/crepe-styles.spec.d.ts +1 -0
  29. package/dist/components/layers/Modal/active-modal.d.ts +14 -0
  30. package/dist/components/layers/Toast/Toast.d.ts +1 -0
  31. package/dist/components/layers/Toast/dialog-foot-clearance.d.ts +19 -0
  32. package/dist/components/layers/Toast/toast-clearance.d.ts +11 -0
  33. package/dist/cookie-consent.js +2 -2
  34. package/dist/{design-theme-Bcu3EMIB.js → design-theme-GGVSCauN.js} +1 -1
  35. package/dist/{editors-D0JP2AdM.js → editors-CJ_6PXoL.js} +30129 -30094
  36. package/dist/editors.js +1 -1
  37. package/dist/hooks/use-rich-intl.hook.d.ts +18 -0
  38. package/dist/{index-CVRa0oBj.js → index-4MsOXuOU.js} +2 -2
  39. package/dist/{index-P3mYGVW9.js → index-5BCfqxIs.js} +2 -2
  40. package/dist/{index-CTbeT-N0.js → index-5HFSSrP-.js} +1 -1
  41. package/dist/{index-tTzlUmYK.js → index-7M2xC_9h.js} +2 -2
  42. package/dist/{index-B7TbdCxd.js → index-8o9jiKS2.js} +2 -2
  43. package/dist/{index-DHwatinf.js → index-B6QYagVk.js} +2 -2
  44. package/dist/{index-DOniqiUF.js → index-BQFouU9U.js} +2 -2
  45. package/dist/{index-BXwVo31B.js → index-BQLAeM_n.js} +2 -2
  46. package/dist/{index-CxQaYgoB.js → index-BbbyRlLu.js} +2 -2
  47. package/dist/{index-BhfgX3oc.js → index-Bbc0SjAt.js} +2 -2
  48. package/dist/{index-CTmmM3bQ.js → index-BcsTtdwQ.js} +4 -4
  49. package/dist/{index-BiBtwp14.js → index-Berc0QsZ.js} +4 -4
  50. package/dist/{index-CorW4VOJ.js → index-ByRUmH_4.js} +3 -3
  51. package/dist/{index-DWOXLAjk.js → index-CXUHmTse.js} +2 -2
  52. package/dist/{index-WnQHBsCS.js → index-Cl1UafyM.js} +2 -2
  53. package/dist/{index-WbhbeBj8.js → index-DQgpUR1S.js} +3 -3
  54. package/dist/{index-DB03r0_G.js → index-Dh1lFi8d.js} +2 -2
  55. package/dist/{index-BgK7ZufI.js → index-Drwqi2Fr.js} +2 -2
  56. package/dist/{index-BTQOcRMg.js → index-Dtfo8fKg.js} +4 -4
  57. package/dist/{index-DS7PaGaq.js → index-VLxkKEWK.js} +3 -3
  58. package/dist/{index-COEwfkxf.js → index-p3G-JM7E.js} +3 -3
  59. package/dist/index.js +5852 -5767
  60. package/dist/legacy.js +6 -6
  61. package/dist/translations/en.d.ts +9 -0
  62. package/dist/translations/fr.d.ts +9 -0
  63. package/package.json +1 -1
  64. package/dist/commons-front-core.css +0 -1
@@ -1,5 +1,5 @@
1
1
  import { jsxs as x, jsx as i, Fragment as J } from "react/jsx-runtime";
2
- import { useId as N, cloneElement as mn, useState as F, useMemo as ge, useRef as Y, useCallback as Q, useEffect as V, createContext as ze, useContext as Ae, useLayoutEffect as Le } from "react";
2
+ import { useId as N, cloneElement as mn, useState as F, useMemo as ge, useRef as X, useCallback as Q, useEffect as V, createContext as ze, useContext as Ae, useLayoutEffect as Le } from "react";
3
3
  import le from "@mui/material/FormControl";
4
4
  import se from "@mui/material/FormHelperText";
5
5
  import $e from "@mui/material/InputLabel";
@@ -8,17 +8,17 @@ import hn from "@mui/material/Select";
8
8
  import { styled as l, useTheme as bn, getContrastRatio as ke } from "@mui/material/styles";
9
9
  import { visuallyHidden as fe } from "@mui/utils";
10
10
  import { useIntl as P } from "react-intl";
11
- import { a as A, p as o, h as D, d as Z, D as K, e as yn, t as De, s as de, g as oe, i as te, M as Pe, c as He, j as vn, B as wn } from "./Surface-B_wIEB3b.js";
11
+ import { a as A, p as o, h as D, d as Z, D as K, g as yn, t as De, s as de, i as oe, j as te, c as Pe, e as He, k as vn, B as wn } from "./Surface-CN1zQYLJ.js";
12
12
  import { i as xn, b as Cn, r as kn, u as Sn, A as In, E as Fn } from "./index-C27b790L.js";
13
- import X from "@mui/material/Button";
14
- import { byteSizeIEC as Mn } from "@abyss-project/main";
15
- import On from "@mui/icons-material/FileUploadOutlined";
16
- import Wn, { autocompleteClasses as Se } from "@mui/material/Autocomplete";
13
+ import Y from "@mui/material/Button";
14
+ import { byteSizeIEC as Wn } from "@abyss-project/main";
15
+ import Mn from "@mui/icons-material/FileUploadOutlined";
16
+ import On, { autocompleteClasses as Se } from "@mui/material/Autocomplete";
17
17
  import Ie from "@mui/material/CircularProgress";
18
18
  import ae from "@mui/material/IconButton";
19
19
  import me from "@mui/material/OutlinedInput";
20
20
  import Fe from "@mui/material/Tooltip";
21
- import Me from "@mui/icons-material/CloudOutlined";
21
+ import We from "@mui/icons-material/CloudOutlined";
22
22
  import Tn from "@mui/icons-material/CloudOffOutlined";
23
23
  import Rn from "@mui/icons-material/FileDownloadOutlined";
24
24
  import Ne from "@mui/icons-material/FolderOpenOutlined";
@@ -40,8 +40,8 @@ import Gn, { formLabelClasses as qn } from "@mui/material/FormLabel";
40
40
  import Un from "@mui/material/InputAdornment";
41
41
  import { isMuiElement as Kn } from "@mui/material/utils";
42
42
  import Be from "@mui/material/ButtonBase";
43
- import { Link as Yn } from "react-router-dom";
44
- const Xn = l(Gn)(({ theme: e }) => ({
43
+ import { Link as Xn } from "react-router-dom";
44
+ const Yn = l(Gn)(({ theme: e }) => ({
45
45
  display: "block",
46
46
  maxWidth: "100%",
47
47
  marginBottom: o(e.design.space[2]),
@@ -66,7 +66,7 @@ function Ve({
66
66
  ...Kn(s, ["Select"]) && { labelId: c }
67
67
  });
68
68
  return /* @__PURE__ */ x(le, { fullWidth: !0, error: C, required: r, children: [
69
- /* @__PURE__ */ i(Xn, { id: c, htmlFor: a, children: e }),
69
+ /* @__PURE__ */ i(Yn, { id: c, htmlFor: a, children: e }),
70
70
  m,
71
71
  n !== void 0 && /* @__PURE__ */ i(se, { id: g, error: !1, children: n }),
72
72
  y && /* @__PURE__ */ i(se, { id: u, children: t })
@@ -143,18 +143,26 @@ const Ge = {
143
143
  gap: o(e.design.space[1]),
144
144
  flex: "1 1 auto",
145
145
  minWidth: 0,
146
+ // In the column layout of a narrow screen, `alignItems: flex-start` sizes the text to its content.
147
+ maxWidth: "100%",
146
148
  paddingTop: o(e.design.space[1] / 2),
147
149
  lineHeight: e.typography.body2.lineHeight,
148
150
  overflowWrap: "anywhere"
149
- })), tt = l("strong")({
151
+ })), tt = l("div")({
152
+ minWidth: 0,
153
+ "& pre": {
154
+ maxWidth: "100%",
155
+ overflowX: "auto"
156
+ }
157
+ }), ot = l("strong")({
150
158
  display: "block",
151
159
  fontWeight: A.semibold
152
- }), ot = l("div")({
160
+ }), rt = l("div")({
153
161
  display: "flex",
154
162
  flex: "none",
155
163
  alignItems: "center"
156
- }), rt = l(ae)(({ theme: e }) => yn(e));
157
- function it({
164
+ }), it = l(ae)(({ theme: e }) => yn(e));
165
+ function st({
158
166
  severity: e,
159
167
  title: n,
160
168
  children: t,
@@ -174,13 +182,13 @@ function it({
174
182
  /* @__PURE__ */ i(Jn, { severity: e, "aria-hidden": !0, children: d ?? /* @__PURE__ */ i(g, {}) }),
175
183
  /* @__PURE__ */ x(et, { children: [
176
184
  /* @__PURE__ */ x(nt, { children: [
177
- n !== void 0 && /* @__PURE__ */ i(tt, { id: c, children: n }),
178
- /* @__PURE__ */ i("div", { children: t })
185
+ n !== void 0 && /* @__PURE__ */ i(ot, { id: c, children: n }),
186
+ /* @__PURE__ */ i(tt, { children: t })
179
187
  ] }),
180
- r !== void 0 && /* @__PURE__ */ i(ot, { children: r })
188
+ r !== void 0 && /* @__PURE__ */ i(rt, { children: r })
181
189
  ] }),
182
190
  s !== void 0 && /* @__PURE__ */ i(
183
- rt,
191
+ it,
184
192
  {
185
193
  size: "small",
186
194
  "aria-label": a.formatMessage({ id: "ds.states.callout.close" }),
@@ -237,7 +245,7 @@ const U = (e) => e.id ?? e.name, qe = (e, n, t) => (n === void 0 || e.sizeOctet
237
245
  "&:hover": { backgroundColor: n["bg.hover"] },
238
246
  "&:focus-visible": te(e)
239
247
  };
240
- }, Ye = l("button")(({ theme: e }) => Ke(e)), st = l("label")(({ theme: e }) => Ke(e)), Xe = l("span", {
248
+ }, Xe = l("button")(({ theme: e }) => Ke(e)), at = l("label")(({ theme: e }) => Ke(e)), Ye = l("span", {
241
249
  shouldForwardProp: (e) => e !== "strong"
242
250
  })(({ strong: e }) => ({
243
251
  flex: "1 1 auto",
@@ -261,7 +269,7 @@ const U = (e) => e.id ?? e.name, qe = (e, n, t) => (n === void 0 || e.sizeOctet
261
269
  "& svg": { width: o(t[5]), height: o(t[5]) },
262
270
  "& img": { width: "100%", height: "100%", objectFit: "cover" }
263
271
  };
264
- }), at = l(_n, {
272
+ }), lt = l(_n, {
265
273
  shouldForwardProp: (e) => e !== "open"
266
274
  })(({ theme: e, open: n }) => ({
267
275
  flex: "none",
@@ -276,24 +284,24 @@ const U = (e) => e.id ?? e.name, qe = (e, n, t) => (n === void 0 || e.sizeOctet
276
284
  (e.design.densityValues.touchTarget - e.design.space[5]) / 2
277
285
  )
278
286
  }
279
- })), lt = l("ul")(({ theme: e }) => ({
287
+ })), dt = l("ul")(({ theme: e }) => ({
280
288
  margin: 0,
281
289
  padding: 0,
282
290
  listStyle: "none",
283
291
  borderLeft: D(e.design.tokens["border.subtle"]),
284
292
  marginLeft: o(e.design.space[3])
285
- })), Oe = l("li")({ listStyle: "none" });
293
+ })), Me = l("li")({ listStyle: "none" });
286
294
  function Je({
287
295
  folders: e,
288
296
  files: n,
289
297
  context: t
290
298
  }) {
291
299
  return /* @__PURE__ */ x(J, { children: [
292
- e.map((r) => /* @__PURE__ */ i(Oe, { children: /* @__PURE__ */ i(ut, { folder: r, context: t }) }, r.id ?? r.name)),
293
- n.filter((r) => qe(r, t.maxSize, t.accept)).map((r) => /* @__PURE__ */ i(Oe, { children: /* @__PURE__ */ i(ct, { file: r, context: t }) }, U(r)))
300
+ e.map((r) => /* @__PURE__ */ i(Me, { children: /* @__PURE__ */ i(pt, { folder: r, context: t }) }, r.id ?? r.name)),
301
+ n.filter((r) => qe(r, t.maxSize, t.accept)).map((r) => /* @__PURE__ */ i(Me, { children: /* @__PURE__ */ i(ut, { file: r, context: t }) }, U(r)))
294
302
  ] });
295
303
  }
296
- function dt({
304
+ function ct({
297
305
  file: e,
298
306
  getFileThumbnailUrl: n
299
307
  }) {
@@ -308,19 +316,19 @@ function dt({
308
316
  }
309
317
  ) : /* @__PURE__ */ i(Hn, {}) });
310
318
  }
311
- function ct({
319
+ function ut({
312
320
  file: e,
313
321
  context: n
314
322
  }) {
315
323
  const t = N(), r = n.selectedIds.has(U(e)), s = () => r ? n.unselect([e]) : n.select([e]), d = /* @__PURE__ */ x(J, { children: [
316
324
  /* @__PURE__ */ i(
317
- dt,
325
+ ct,
318
326
  {
319
327
  file: e,
320
328
  getFileThumbnailUrl: n.getFileThumbnailUrl
321
329
  }
322
330
  ),
323
- /* @__PURE__ */ i(Xe, { strong: r, title: e.name, children: e.name })
331
+ /* @__PURE__ */ i(Ye, { strong: r, title: e.name, children: e.name })
324
332
  ] });
325
333
  return n.multiple ? /* @__PURE__ */ x(ue, { selected: r, children: [
326
334
  /* @__PURE__ */ i(
@@ -332,10 +340,10 @@ function ct({
332
340
  onChange: s
333
341
  }
334
342
  ),
335
- /* @__PURE__ */ i(st, { htmlFor: t, children: d })
336
- ] }) : /* @__PURE__ */ i(ue, { selected: r, children: /* @__PURE__ */ i(Ye, { type: "button", "aria-pressed": r, onClick: s, children: d }) });
343
+ /* @__PURE__ */ i(at, { htmlFor: t, children: d })
344
+ ] }) : /* @__PURE__ */ i(ue, { selected: r, children: /* @__PURE__ */ i(Xe, { type: "button", "aria-pressed": r, onClick: s, children: d }) });
337
345
  }
338
- function ut({
346
+ function pt({
339
347
  folder: e,
340
348
  context: n
341
349
  }) {
@@ -361,21 +369,21 @@ function ut({
361
369
  }
362
370
  ),
363
371
  /* @__PURE__ */ x(
364
- Ye,
372
+ Xe,
365
373
  {
366
374
  type: "button",
367
375
  "aria-expanded": s,
368
376
  "aria-controls": s ? r : void 0,
369
377
  onClick: () => d(!s),
370
378
  children: [
371
- /* @__PURE__ */ i(at, { open: s, "aria-hidden": !0 }),
379
+ /* @__PURE__ */ i(lt, { open: s, "aria-hidden": !0 }),
372
380
  /* @__PURE__ */ i(Qe, { "aria-hidden": !0, children: s ? /* @__PURE__ */ i(Ne, {}) : /* @__PURE__ */ i(Nn, {}) }),
373
- /* @__PURE__ */ i(Xe, { strong: g, title: e.name, children: e.name })
381
+ /* @__PURE__ */ i(Ye, { strong: g, title: e.name, children: e.name })
374
382
  ]
375
383
  }
376
384
  )
377
385
  ] }),
378
- s && /* @__PURE__ */ i(lt, { id: r, children: /* @__PURE__ */ i(
386
+ s && /* @__PURE__ */ i(dt, { id: r, children: /* @__PURE__ */ i(
379
387
  Je,
380
388
  {
381
389
  folders: e.childFolder ?? [],
@@ -385,17 +393,17 @@ function ut({
385
393
  ) })
386
394
  ] });
387
395
  }
388
- const We = "shared", Te = {
396
+ const Oe = "shared", Te = {
389
397
  "org-common": 0,
390
398
  "perso-in-org": 1,
391
399
  project: 2,
392
400
  personal: 3
393
- }, pt = l("div")(({ theme: e }) => ({
401
+ }, gt = l("div")(({ theme: e }) => ({
394
402
  display: "flex",
395
403
  flexDirection: "column",
396
404
  gap: o(e.design.space[3]),
397
405
  minWidth: 0
398
- })), gt = l("div")(({ theme: e }) => ({
406
+ })), ft = l("div")(({ theme: e }) => ({
399
407
  display: "flex",
400
408
  alignItems: "flex-end",
401
409
  gap: o(e.design.space[2]),
@@ -403,11 +411,11 @@ const We = "shared", Te = {
403
411
  // The Space field takes the room the two icon buttons leave.
404
412
  [`& > .${Se.root}`]: { flex: "1 1 auto", minWidth: 0 },
405
413
  [`& > :not(.${Se.root})`]: { flex: "none" }
406
- })), ft = l("p")(({ theme: e }) => ({
414
+ })), mt = l("p")(({ theme: e }) => ({
407
415
  margin: 0,
408
416
  fontSize: o(e.design.typeScale.small),
409
417
  color: e.design.tokens["text.muted"]
410
- })), mt = l("ul")(({ theme: e }) => {
418
+ })), ht = l("ul")(({ theme: e }) => {
411
419
  const { tokens: n, space: t, radii: r } = e.design;
412
420
  return {
413
421
  margin: 0,
@@ -436,7 +444,7 @@ const We = "shared", Te = {
436
444
  color: n["text.muted"]
437
445
  }
438
446
  };
439
- }), ht = l("span")(({ theme: e }) => {
447
+ }), bt = l("span")(({ theme: e }) => {
440
448
  const { tokens: n, space: t, radii: r } = e.design;
441
449
  return {
442
450
  display: "inline-flex",
@@ -449,33 +457,33 @@ const We = "shared", Te = {
449
457
  color: n["status.warning"],
450
458
  "& svg": { width: o(t[6]), height: o(t[6]) }
451
459
  };
452
- }), bt = l("p")(({ theme: e }) => ({
460
+ }), yt = l("p")(({ theme: e }) => ({
453
461
  margin: 0,
454
462
  fontWeight: A.semibold,
455
463
  color: e.design.tokens["text.primary"]
456
- })), yt = l("p")({ margin: 0 }), vt = l("div")(({ theme: e }) => ({
464
+ })), vt = l("p")({ margin: 0 }), wt = l("div")(({ theme: e }) => ({
457
465
  display: "flex",
458
466
  flexWrap: "wrap",
459
467
  alignItems: "center",
460
468
  justifyContent: "space-between",
461
469
  gap: o(e.design.space[3])
462
- })), wt = l("span")(({ theme: e }) => ({
470
+ })), xt = l("span")(({ theme: e }) => ({
463
471
  fontSize: o(e.design.typeScale.body),
464
472
  color: e.design.tokens["text.secondary"]
465
- })), xt = l("li")(({ theme: e }) => ({
473
+ })), Ct = l("li")(({ theme: e }) => ({
466
474
  display: "flex",
467
475
  alignItems: "center",
468
476
  gap: o(e.design.space[2]),
469
477
  ...De(e)
470
- })), Ct = l("span")({
478
+ })), kt = l("span")({
471
479
  display: "flex",
472
480
  flexDirection: "column",
473
481
  minWidth: 0
474
- }), kt = l("span")({
482
+ }), St = l("span")({
475
483
  overflow: "hidden",
476
484
  textOverflow: "ellipsis",
477
485
  whiteSpace: "nowrap"
478
- }), St = l("span")(({ theme: e }) => ({
486
+ }), It = l("span")(({ theme: e }) => ({
479
487
  fontSize: o(e.design.typeScale.caption),
480
488
  color: e.design.tokens["text.muted"],
481
489
  // A narrow screen wraps it: the scope and the organization tell same-named Spaces apart.
@@ -493,9 +501,9 @@ const We = "shared", Te = {
493
501
  color: n["accent.text"],
494
502
  "& > svg": { width: o(t[4]), height: o(t[4]) }
495
503
  };
496
- }), It = l(en)(({ theme: e }) => ({
504
+ }), Ft = l(en)(({ theme: e }) => ({
497
505
  marginRight: o(e.design.space[2])
498
- })), Ft = l("li")({ listStyle: "none" }), Mt = l("div")(({ theme: e }) => {
506
+ })), Wt = l("li")({ listStyle: "none" }), Mt = l("div")(({ theme: e }) => {
499
507
  const { space: n, tokens: t, typeScale: r } = e.design;
500
508
  return {
501
509
  padding: `${o(n[2])} ${o(n[3])} ${o(n[1])}`,
@@ -506,7 +514,7 @@ const We = "shared", Te = {
506
514
  color: t["text.muted"]
507
515
  };
508
516
  }), Ot = l("ul")({ margin: 0, padding: 0 });
509
- function Wt({
517
+ function Tt({
510
518
  cloudPicker: e,
511
519
  onImport: n,
512
520
  multiple: t = !1,
@@ -524,7 +532,7 @@ function Wt({
524
532
  refresh: h,
525
533
  onCreateCloud: m,
526
534
  fetchCloudRepository: p
527
- } = e, f = P(), [b, v] = F(null), [M, O] = F(null), [W, S] = F(
535
+ } = e, f = P(), [b, v] = F(null), [W, M] = F(null), [O, S] = F(
528
536
  "loading"
529
537
  /* Loading */
530
538
  ), [T, z] = F([]), [R, ee] = F(!1), [re, _] = F(!1), j = ge(() => {
@@ -573,12 +581,12 @@ function Wt({
573
581
  ),
574
582
  ...(C ?? []).map(
575
583
  H(
576
- We,
584
+ Oe,
577
585
  f.formatMessage({ id: "ds.business.cloud-import.section-shared" })
578
586
  )
579
587
  )
580
588
  ];
581
- }, [g, C, c, f]), G = j.find((w) => w.space.id === (b == null ? void 0 : b.id)) ?? null, ce = Y(0), he = Y(p);
589
+ }, [g, C, c, f]), G = j.find((w) => w.space.id === (b == null ? void 0 : b.id)) ?? null, ce = X(0), he = X(p);
582
590
  he.current = p;
583
591
  const ie = Q(async (w) => {
584
592
  const I = ++ce.current;
@@ -590,7 +598,7 @@ function Wt({
590
598
  if (w.id === void 0)
591
599
  throw new Error("A Space without an id has no tree");
592
600
  const k = await he.current(w.id);
593
- I === ce.current && (O(k), S(
601
+ I === ce.current && (M(k), S(
594
602
  "ready"
595
603
  /* Ready */
596
604
  ));
@@ -600,7 +608,7 @@ function Wt({
600
608
  /* Failed */
601
609
  );
602
610
  }
603
- }, []), dn = Y(h);
611
+ }, []), dn = X(h);
604
612
  V(() => {
605
613
  dn.current();
606
614
  }, []), V(() => {
@@ -660,18 +668,18 @@ function Wt({
660
668
  return be;
661
669
  if (j.length === 0)
662
670
  return /* @__PURE__ */ x(ne, { children: [
663
- /* @__PURE__ */ i(ht, { "aria-hidden": !0, children: /* @__PURE__ */ i(Tn, {}) }),
664
- /* @__PURE__ */ i(bt, { children: f.formatMessage({
671
+ /* @__PURE__ */ i(bt, { "aria-hidden": !0, children: /* @__PURE__ */ i(Tn, {}) }),
672
+ /* @__PURE__ */ i(yt, { children: f.formatMessage({
665
673
  id: "ds.business.cloud-import.create-error.title"
666
674
  }) }),
667
- /* @__PURE__ */ i(yt, { children: f.formatMessage({
675
+ /* @__PURE__ */ i(vt, { children: f.formatMessage({
668
676
  id: "ds.business.cloud-import.create-error.description"
669
677
  }) }),
670
678
  /* @__PURE__ */ i(
671
- X,
679
+ Y,
672
680
  {
673
681
  variant: "contained",
674
- startIcon: /* @__PURE__ */ i(Me, { "aria-hidden": !0 }),
682
+ startIcon: /* @__PURE__ */ i(We, { "aria-hidden": !0 }),
675
683
  loading: R || y,
676
684
  onClick: () => void un(),
677
685
  children: f.formatMessage({
@@ -685,24 +693,24 @@ function Wt({
685
693
  const fn = Cn(
686
694
  d,
687
695
  G.space,
688
- G.sectionKey === We
696
+ G.sectionKey === Oe
689
697
  ), ye = f.formatMessage({
690
698
  id: "ds.business.cloud-import.refresh"
691
699
  }), ve = f.formatMessage({
692
700
  id: "ds.business.cloud-import.open-in-cloud"
693
- }), we = (w) => w.avatar ?? /* @__PURE__ */ i(Me, {});
694
- return /* @__PURE__ */ x(pt, { children: [
701
+ }), we = (w) => w.avatar ?? /* @__PURE__ */ i(We, {});
702
+ return /* @__PURE__ */ x(gt, { children: [
695
703
  re && /* @__PURE__ */ i(
696
- it,
704
+ st,
697
705
  {
698
706
  severity: je.Danger,
699
707
  onClose: () => _(!1),
700
708
  children: f.formatMessage({ id: "ds.business.cloud-import.refresh-error" })
701
709
  }
702
710
  ),
703
- /* @__PURE__ */ x(gt, { children: [
711
+ /* @__PURE__ */ x(ft, { children: [
704
712
  /* @__PURE__ */ i(
705
- Wn,
713
+ On,
706
714
  {
707
715
  fullWidth: !0,
708
716
  disableClearable: !0,
@@ -720,15 +728,15 @@ function Wt({
720
728
  )
721
729
  );
722
730
  },
723
- renderGroup: (w) => /* @__PURE__ */ x(Ft, { children: [
731
+ renderGroup: (w) => /* @__PURE__ */ x(Wt, { children: [
724
732
  /* @__PURE__ */ i(Mt, { children: w.group }),
725
733
  /* @__PURE__ */ i(Ot, { children: w.children })
726
734
  ] }, w.key),
727
- renderOption: ({ key: w, ...I }, k) => /* @__PURE__ */ x(xt, { ...I, children: [
735
+ renderOption: ({ key: w, ...I }, k) => /* @__PURE__ */ x(Ct, { ...I, children: [
728
736
  /* @__PURE__ */ i(en, { "aria-hidden": !0, children: we(k) }),
729
- /* @__PURE__ */ x(Ct, { children: [
730
- /* @__PURE__ */ i(kt, { children: k.label }),
731
- k.subtitle !== void 0 && /* @__PURE__ */ i(St, { children: k.subtitle })
737
+ /* @__PURE__ */ x(kt, { children: [
738
+ /* @__PURE__ */ i(St, { children: k.label }),
739
+ k.subtitle !== void 0 && /* @__PURE__ */ i(It, { children: k.subtitle })
732
740
  ] })
733
741
  ] }, w),
734
742
  renderInput: (w) => /* @__PURE__ */ i(
@@ -744,7 +752,7 @@ function Wt({
744
752
  id: w.id,
745
753
  fullWidth: !0,
746
754
  inputProps: w.inputProps,
747
- startAdornment: /* @__PURE__ */ i(It, { "aria-hidden": !0, children: we(G) })
755
+ startAdornment: /* @__PURE__ */ i(Ft, { "aria-hidden": !0, children: we(G) })
748
756
  }
749
757
  )
750
758
  }
@@ -755,7 +763,7 @@ function Wt({
755
763
  ae,
756
764
  {
757
765
  "aria-label": ye,
758
- disabled: W === "loading" || y,
766
+ disabled: O === "loading" || y,
759
767
  onClick: () => void cn(),
760
768
  children: /* @__PURE__ */ i(zn, { "aria-hidden": !0 })
761
769
  }
@@ -772,8 +780,8 @@ function Wt({
772
780
  }
773
781
  ) })
774
782
  ] }),
775
- /* @__PURE__ */ i(ft, { children: f.formatMessage({ id: "ds.business.cloud-import.filtered-hint" }) }),
776
- W === "loading" && /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ i(
783
+ /* @__PURE__ */ i(mt, { children: f.formatMessage({ id: "ds.business.cloud-import.filtered-hint" }) }),
784
+ O === "loading" && /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ i(
777
785
  Ie,
778
786
  {
779
787
  size: 24,
@@ -782,10 +790,10 @@ function Wt({
782
790
  })
783
791
  }
784
792
  ) }),
785
- W === "failed" && /* @__PURE__ */ x(ne, { role: "alert", children: [
793
+ O === "failed" && /* @__PURE__ */ x(ne, { role: "alert", children: [
786
794
  f.formatMessage({ id: "ds.business.cloud-import.tree-error" }),
787
795
  /* @__PURE__ */ i(
788
- X,
796
+ Y,
789
797
  {
790
798
  variant: "outlined",
791
799
  onClick: () => void ie(G.space),
@@ -793,11 +801,11 @@ function Wt({
793
801
  }
794
802
  )
795
803
  ] }),
796
- W === "ready" && M !== null && (M.folders.length === 0 && M.files.length === 0 ? /* @__PURE__ */ x(ne, { children: [
804
+ O === "ready" && W !== null && (W.folders.length === 0 && W.files.length === 0 ? /* @__PURE__ */ x(ne, { children: [
797
805
  /* @__PURE__ */ i(Ne, { "aria-hidden": !0 }),
798
806
  f.formatMessage({ id: "ds.business.cloud-import.empty-space" })
799
807
  ] }) : /* @__PURE__ */ i(
800
- mt,
808
+ ht,
801
809
  {
802
810
  "aria-label": f.formatMessage({
803
811
  id: "ds.business.cloud-import.tree-label"
@@ -805,20 +813,20 @@ function Wt({
805
813
  children: /* @__PURE__ */ i(
806
814
  Je,
807
815
  {
808
- folders: M.folders,
809
- files: M.files,
816
+ folders: W.folders,
817
+ files: W.files,
810
818
  context: pn
811
819
  }
812
820
  )
813
821
  }
814
822
  )),
815
- /* @__PURE__ */ x(vt, { children: [
816
- /* @__PURE__ */ i(wt, { role: "status", children: f.formatMessage(
823
+ /* @__PURE__ */ x(wt, { children: [
824
+ /* @__PURE__ */ i(xt, { role: "status", children: f.formatMessage(
817
825
  { id: "ds.business.cloud-import.selected" },
818
826
  { count: T.length }
819
827
  ) }),
820
828
  /* @__PURE__ */ i(
821
- X,
829
+ Y,
822
830
  {
823
831
  variant: "contained",
824
832
  startIcon: /* @__PURE__ */ i(Rn, { "aria-hidden": !0 }),
@@ -830,7 +838,7 @@ function Wt({
830
838
  ] })
831
839
  ] });
832
840
  }
833
- function Tt({
841
+ function Rt({
834
842
  open: e,
835
843
  onClose: n,
836
844
  onImport: t,
@@ -848,7 +856,7 @@ function Tt({
848
856
  size: He.Medium,
849
857
  title: c.formatMessage({ id: "ds.business.cloud-import.title" }),
850
858
  children: e && /* @__PURE__ */ i(
851
- Wt,
859
+ Tt,
852
860
  {
853
861
  cloudPicker: r,
854
862
  multiple: s,
@@ -863,14 +871,14 @@ function Tt({
863
871
  );
864
872
  }
865
873
  var nn = /* @__PURE__ */ ((e) => (e.Medium = "medium", e.Compact = "compact", e))(nn || {});
866
- const Rt = ze(
874
+ const Et = ze(
867
875
  "medium"
868
876
  /* Medium */
869
- ), Et = l(le)(({ theme: e }) => ({
877
+ ), zt = l(le)(({ theme: e }) => ({
870
878
  // Three times the largest spacing step: room for a label and the arrow.
871
879
  minWidth: o(e.design.space[10] * 3),
872
880
  maxWidth: "100%"
873
- })), zt = l($e)(({ theme: e }) => ({
881
+ })), At = l($e)(({ theme: e }) => ({
874
882
  position: "relative",
875
883
  transform: "none",
876
884
  maxWidth: "100%",
@@ -883,12 +891,12 @@ const Rt = ze(
883
891
  "&.Mui-focused": { color: e.design.tokens["text.secondary"] },
884
892
  "&.Mui-error": { color: e.design.tokens["status.danger"] },
885
893
  "&.Mui-disabled": { color: e.design.tokens["text.muted"] }
886
- })), At = l("span")(({ theme: e }) => ({
894
+ })), Lt = l("span")(({ theme: e }) => ({
887
895
  display: "flex",
888
896
  alignItems: "center",
889
897
  gap: o(e.design.space[2]),
890
898
  minWidth: 0
891
- })), Lt = l("i", {
899
+ })), $t = l("i", {
892
900
  shouldForwardProp: (e) => e !== "token"
893
901
  })(({ theme: e, token: n }) => ({
894
902
  flex: "none",
@@ -896,11 +904,11 @@ const Rt = ze(
896
904
  height: o(e.design.space[2]),
897
905
  borderRadius: o(e.design.radii.sm / 2),
898
906
  backgroundColor: e.design.tokens[n]
899
- })), $t = l("span")({
907
+ })), Dt = l("span")({
900
908
  display: "flex",
901
909
  flexDirection: "column",
902
910
  minWidth: 0
903
- }), Dt = l("span")(({ theme: e }) => ({
911
+ }), Pt = l("span")(({ theme: e }) => ({
904
912
  fontSize: o(e.design.typeScale.caption),
905
913
  color: e.design.tokens["text.muted"],
906
914
  whiteSpace: "normal"
@@ -908,10 +916,10 @@ const Rt = ze(
908
916
  overflow: "hidden",
909
917
  textOverflow: "ellipsis",
910
918
  whiteSpace: "nowrap"
911
- }), Pt = l(pe)(({ theme: e }) => ({
919
+ }), Ht = l(pe)(({ theme: e }) => ({
912
920
  color: e.design.tokens["text.muted"]
913
921
  }));
914
- function wr({
922
+ function xr({
915
923
  label: e,
916
924
  options: n,
917
925
  value: t,
@@ -921,10 +929,10 @@ function wr({
921
929
  error: a,
922
930
  size: c
923
931
  }) {
924
- const g = P(), C = Ae(Rt), y = (c ?? C) === nn.Compact, u = y ? Et : le, h = N(), m = `${h}-label`, p = `${h}-helper`, f = new Map(n.map((v) => [v.value, v]));
932
+ const g = P(), C = Ae(Et), y = (c ?? C) === nn.Compact, u = y ? zt : le, h = N(), m = `${h}-label`, p = `${h}-helper`, f = new Map(n.map((v) => [v.value, v]));
925
933
  return /* @__PURE__ */ x(u, { fullWidth: !y, disabled: d, error: !!a, children: [
926
934
  /* @__PURE__ */ i(
927
- zt,
935
+ At,
928
936
  {
929
937
  id: m,
930
938
  shrink: !0,
@@ -940,22 +948,22 @@ function wr({
940
948
  value: t,
941
949
  displayEmpty: !0,
942
950
  renderValue: (v) => {
943
- const M = Array.isArray(v) ? v : [v];
944
- return y && M.length === 0 ? /* @__PURE__ */ i(Pt, { "aria-hidden": !0, children: e }) : /* @__PURE__ */ i(pe, { children: M.map((O) => {
945
- var W;
946
- return ((W = f.get(O)) == null ? void 0 : W.label) ?? O;
951
+ const W = Array.isArray(v) ? v : [v];
952
+ return y && W.length === 0 ? /* @__PURE__ */ i(Ht, { "aria-hidden": !0, children: e }) : /* @__PURE__ */ i(pe, { children: W.map((M) => {
953
+ var O;
954
+ return ((O = f.get(M)) == null ? void 0 : O.label) ?? M;
947
955
  }).join(", ") });
948
956
  },
949
957
  "aria-describedby": a ? p : void 0,
950
958
  onChange: (v) => r(v.target.value),
951
959
  children: [
952
960
  n.length === 0 && /* @__PURE__ */ i(Ce, { disabled: !0, value: "", children: g.formatMessage({ id: "ds.inputs.rich-select.empty" }) }),
953
- n.map((v) => /* @__PURE__ */ i(Ce, { value: v.value, children: /* @__PURE__ */ x(At, { children: [
954
- v.tone && /* @__PURE__ */ i(Lt, { token: v.tone }),
961
+ n.map((v) => /* @__PURE__ */ i(Ce, { value: v.value, children: /* @__PURE__ */ x(Lt, { children: [
962
+ v.tone && /* @__PURE__ */ i($t, { token: v.tone }),
955
963
  v.icon,
956
- /* @__PURE__ */ x($t, { children: [
964
+ /* @__PURE__ */ x(Dt, { children: [
957
965
  /* @__PURE__ */ i(pe, { children: v.label }),
958
- v.description && /* @__PURE__ */ i(Dt, { children: v.description })
966
+ v.description && /* @__PURE__ */ i(Pt, { children: v.description })
959
967
  ] })
960
968
  ] }) }, v.value))
961
969
  ]
@@ -964,16 +972,16 @@ function wr({
964
972
  a && /* @__PURE__ */ i(se, { id: p, children: a })
965
973
  ] });
966
974
  }
967
- const Ht = l("div")(({ theme: e }) => ({
975
+ const Nt = l("div")(({ theme: e }) => ({
968
976
  display: "flex",
969
977
  flexDirection: "column",
970
978
  gap: o(e.design.space[2]),
971
979
  minWidth: 0
972
- })), Nt = l("span")(({ theme: e }) => ({
980
+ })), _t = l("span")(({ theme: e }) => ({
973
981
  fontSize: o(e.design.typeScale.small),
974
982
  fontWeight: A.medium,
975
983
  color: e.design.tokens["text.secondary"]
976
- })), _t = l("div", {
984
+ })), Bt = l("div", {
977
985
  shouldForwardProp: (e) => e !== "active"
978
986
  })(({ theme: e, active: n }) => {
979
987
  const { tokens: t, space: r, radii: s } = e.design;
@@ -995,7 +1003,7 @@ const Ht = l("div")(({ theme: e }) => ({
995
1003
  transition: oe(e, ["border-color", "background-color"]),
996
1004
  "&:hover": { borderColor: t.accent }
997
1005
  };
998
- }), Bt = l("span")(({ theme: e }) => {
1006
+ }), Vt = l("span")(({ theme: e }) => {
999
1007
  const { tokens: n, space: t } = e.design;
1000
1008
  return {
1001
1009
  display: "inline-flex",
@@ -1008,30 +1016,30 @@ const Ht = l("div")(({ theme: e }) => ({
1008
1016
  color: n["accent.text"],
1009
1017
  "& svg": { width: o(t[5]), height: o(t[5]) }
1010
1018
  };
1011
- }), Vt = l("span")(({ theme: e }) => ({
1019
+ }), jt = l("span")(({ theme: e }) => ({
1012
1020
  fontSize: o(e.design.typeScale.body),
1013
1021
  [Z.down(K.Tablet)]: { display: "none" }
1014
- })), jt = l("div")(({ theme: e }) => ({
1022
+ })), Gt = l("div")(({ theme: e }) => ({
1015
1023
  display: "flex",
1016
1024
  flexWrap: "wrap",
1017
1025
  alignItems: "center",
1018
1026
  justifyContent: "space-between",
1019
1027
  gap: o(e.design.space[2])
1020
- })), Gt = l("span")(({ theme: e }) => ({
1028
+ })), qt = l("span")(({ theme: e }) => ({
1021
1029
  fontSize: o(e.design.typeScale.small),
1022
1030
  color: e.design.tokens["text.muted"]
1023
- })), qt = l("p")(({ theme: e }) => ({
1031
+ })), Ut = l("p")(({ theme: e }) => ({
1024
1032
  margin: 0,
1025
1033
  fontSize: o(e.design.typeScale.small),
1026
1034
  color: e.design.tokens["status.danger"]
1027
- })), Ut = l("img")(({ theme: e }) => ({
1035
+ })), Kt = l("img")(({ theme: e }) => ({
1028
1036
  width: o(e.design.space[4]),
1029
1037
  height: o(e.design.space[4])
1030
- })), Kt = (e) => {
1031
- const { value: n, unit: t } = Mn(e);
1038
+ })), Xt = (e) => {
1039
+ const { value: n, unit: t } = Wn(e);
1032
1040
  return `${n} ${t}`;
1033
1041
  };
1034
- function xr({
1042
+ function Cr({
1035
1043
  onDrop: e,
1036
1044
  multiple: n = !0,
1037
1045
  accept: t,
@@ -1041,7 +1049,7 @@ function xr({
1041
1049
  cloudImport: a,
1042
1050
  children: c
1043
1051
  }) {
1044
- const g = P(), C = N(), y = N(), [u, h] = F(null), [m, p] = F(!1), f = r === void 0 ? null : Kt(r), b = s ?? (f === null ? null : g.formatMessage(
1052
+ const g = P(), C = N(), y = N(), [u, h] = F(null), [m, p] = F(!1), f = r === void 0 ? null : Xt(r), b = s ?? (f === null ? null : g.formatMessage(
1045
1053
  { id: "ds.inputs.drop-zone.max-size" },
1046
1054
  { size: f, multiple: String(n) }
1047
1055
  )), v = (z, R) => {
@@ -1058,7 +1066,7 @@ function xr({
1058
1066
  z.length === 1 ? "too-big" : "some-too-big"
1059
1067
  /* SomeTooBig */
1060
1068
  ) : h(null), re.length > 0 && e(re);
1061
- }, { getRootProps: M, getInputProps: O, isDragActive: W, open: S } = Sn({
1069
+ }, { getRootProps: W, getInputProps: M, isDragActive: O, open: S } = Sn({
1062
1070
  onDrop: v,
1063
1071
  multiple: n,
1064
1072
  accept: t,
@@ -1070,26 +1078,26 @@ function xr({
1070
1078
  { multiple: String(n) }
1071
1079
  );
1072
1080
  return /* @__PURE__ */ x(
1073
- Ht,
1081
+ Nt,
1074
1082
  {
1075
1083
  role: "group",
1076
1084
  "aria-labelledby": d !== void 0 ? C : void 0,
1077
1085
  "aria-describedby": b !== null ? y : void 0,
1078
1086
  children: [
1079
- d !== void 0 && /* @__PURE__ */ i(Nt, { id: C, children: d }),
1080
- /* @__PURE__ */ x(_t, { ...M({ onClick: S }), active: W, children: [
1081
- /* @__PURE__ */ i("input", { ...O({ "aria-hidden": !0 }) }),
1087
+ d !== void 0 && /* @__PURE__ */ i(_t, { id: C, children: d }),
1088
+ /* @__PURE__ */ x(Bt, { ...W({ onClick: S }), active: O, children: [
1089
+ /* @__PURE__ */ i("input", { ...M({ "aria-hidden": !0 }) }),
1082
1090
  c ?? /* @__PURE__ */ x(J, { children: [
1083
- /* @__PURE__ */ i(Bt, { "aria-hidden": !0, children: /* @__PURE__ */ i(On, {}) }),
1084
- /* @__PURE__ */ i(Vt, { children: g.formatMessage(
1091
+ /* @__PURE__ */ i(Vt, { "aria-hidden": !0, children: /* @__PURE__ */ i(Mn, {}) }),
1092
+ /* @__PURE__ */ i(jt, { children: g.formatMessage(
1085
1093
  {
1086
- id: W ? "ds.inputs.drop-zone.release" : "ds.inputs.drop-zone.prompt"
1094
+ id: O ? "ds.inputs.drop-zone.release" : "ds.inputs.drop-zone.prompt"
1087
1095
  },
1088
1096
  { multiple: String(n) }
1089
1097
  ) })
1090
1098
  ] }),
1091
1099
  /* @__PURE__ */ i(
1092
- X,
1100
+ Y,
1093
1101
  {
1094
1102
  variant: "outlined",
1095
1103
  onClick: (z) => {
@@ -1099,24 +1107,24 @@ function xr({
1099
1107
  }
1100
1108
  )
1101
1109
  ] }),
1102
- (a !== void 0 || b !== null) && /* @__PURE__ */ x(jt, { children: [
1110
+ (a !== void 0 || b !== null) && /* @__PURE__ */ x(Gt, { children: [
1103
1111
  a !== void 0 && /* @__PURE__ */ i(
1104
- X,
1112
+ Y,
1105
1113
  {
1106
1114
  variant: "text",
1107
- startIcon: /* @__PURE__ */ i(Ut, { src: In, alt: "" }),
1115
+ startIcon: /* @__PURE__ */ i(Kt, { src: In, alt: "" }),
1108
1116
  onClick: () => p(!0),
1109
1117
  children: g.formatMessage({ id: "ds.inputs.drop-zone.cloud" })
1110
1118
  }
1111
1119
  ),
1112
- b !== null && /* @__PURE__ */ i(Gt, { id: y, children: b })
1120
+ b !== null && /* @__PURE__ */ i(qt, { id: y, children: b })
1113
1121
  ] }),
1114
- u !== null && /* @__PURE__ */ i(qt, { role: "alert", children: g.formatMessage(
1122
+ u !== null && /* @__PURE__ */ i(Ut, { role: "alert", children: g.formatMessage(
1115
1123
  { id: `ds.inputs.drop-zone.${u}` },
1116
1124
  { size: f ?? "" }
1117
1125
  ) }),
1118
1126
  a !== void 0 && /* @__PURE__ */ i(
1119
- Tt,
1127
+ Rt,
1120
1128
  {
1121
1129
  open: m,
1122
1130
  onClose: () => p(!1),
@@ -1135,21 +1143,21 @@ function xr({
1135
1143
  );
1136
1144
  }
1137
1145
  var Yt = /* @__PURE__ */ ((e) => (e.Default = "default", e.Danger = "danger", e.Warning = "warning", e))(Yt || {});
1138
- const Xt = l("form")(({ theme: e }) => ({
1146
+ const Qt = l("form")(({ theme: e }) => ({
1139
1147
  display: "flex",
1140
1148
  flexDirection: "column",
1141
1149
  gap: o(e.design.space[4]),
1142
1150
  color: e.design.tokens["text.secondary"],
1143
1151
  overflowWrap: "anywhere"
1144
- })), Qt = (e, n) => {
1152
+ })), Zt = (e, n) => {
1145
1153
  const { paper: t } = e.design.tokens, r = e.design.tokens["paper.on"];
1146
1154
  return ke(n, t) >= ke(n, r) ? t : r;
1147
- }, Zt = {
1155
+ }, Jt = {
1148
1156
  default: "primary",
1149
1157
  danger: "error",
1150
1158
  warning: "warning"
1151
1159
  };
1152
- function Jt({
1160
+ function eo({
1153
1161
  open: e,
1154
1162
  title: n,
1155
1163
  body: t,
@@ -1159,12 +1167,12 @@ function Jt({
1159
1167
  onConfirm: a,
1160
1168
  onCancel: c
1161
1169
  }) {
1162
- const g = P(), C = bn(), y = N(), [u, h] = F(""), [m, p] = F(!1), [f, b] = F(!1), [v, M] = F(e);
1163
- e !== v && (M(e), e && (h(""), b(!1)));
1164
- const O = !m && (d === void 0 || u === d), W = s !== "default", S = () => {
1170
+ const g = P(), C = bn(), y = N(), [u, h] = F(""), [m, p] = F(!1), [f, b] = F(!1), [v, W] = F(e);
1171
+ e !== v && (W(e), e && (h(""), b(!1)));
1172
+ const M = !m && (d === void 0 || u === d), O = s !== "default", S = () => {
1165
1173
  m || c();
1166
1174
  }, T = () => {
1167
- if (!O)
1175
+ if (!M)
1168
1176
  return;
1169
1177
  b(!1);
1170
1178
  let R;
@@ -1192,28 +1200,28 @@ function Jt({
1192
1200
  title: n,
1193
1201
  actions: /* @__PURE__ */ x(J, { children: [
1194
1202
  /* @__PURE__ */ i(
1195
- X,
1203
+ Y,
1196
1204
  {
1197
1205
  variant: "outlined",
1198
1206
  disabled: m,
1199
- autoFocus: d === void 0 && W,
1207
+ autoFocus: d === void 0 && O,
1200
1208
  onClick: S,
1201
1209
  children: g.formatMessage({ id: "ds.layers.confirm-dialog.cancel" })
1202
1210
  }
1203
1211
  ),
1204
1212
  /* @__PURE__ */ i(
1205
- X,
1213
+ Y,
1206
1214
  {
1207
1215
  type: "submit",
1208
1216
  form: y,
1209
1217
  variant: "contained",
1210
- color: Zt[s],
1211
- disabled: !O,
1218
+ color: Jt[s],
1219
+ disabled: !M,
1212
1220
  loading: m,
1213
- autoFocus: d === void 0 && !W,
1221
+ autoFocus: d === void 0 && !O,
1214
1222
  sx: s === "warning" ? {
1215
1223
  "&:not(.Mui-disabled)": {
1216
- color: Qt(
1224
+ color: Zt(
1217
1225
  C,
1218
1226
  C.design.tokens["status.warning"]
1219
1227
  )
@@ -1223,7 +1231,7 @@ function Jt({
1223
1231
  }
1224
1232
  )
1225
1233
  ] }),
1226
- children: /* @__PURE__ */ x(Xt, { id: y, onSubmit: z, noValidate: !0, children: [
1234
+ children: /* @__PURE__ */ x(Qt, { id: y, onSubmit: z, noValidate: !0, children: [
1227
1235
  /* @__PURE__ */ i("div", { children: t }),
1228
1236
  d !== void 0 && /* @__PURE__ */ i(
1229
1237
  Vn,
@@ -1246,8 +1254,8 @@ function Jt({
1246
1254
  );
1247
1255
  }
1248
1256
  const tn = ze(null);
1249
- function Cr({ children: e }) {
1250
- const [n, t] = F([]), [r, s] = F(null), d = Y(0), a = Y([]);
1257
+ function kr({ children: e }) {
1258
+ const [n, t] = F([]), [r, s] = F(null), d = X(0), a = X([]);
1251
1259
  a.current = n;
1252
1260
  const c = n.length > 0 ? n[0] : null;
1253
1261
  c !== null && c !== r && s(c), V(
@@ -1270,7 +1278,7 @@ function Cr({ children: e }) {
1270
1278
  e,
1271
1279
  r !== null && // A new key per request: each one starts from an empty confirmation field.
1272
1280
  /* @__PURE__ */ i(
1273
- Jt,
1281
+ eo,
1274
1282
  {
1275
1283
  open: c === r,
1276
1284
  ...r.options,
@@ -1281,7 +1289,7 @@ function Cr({ children: e }) {
1281
1289
  )
1282
1290
  ] });
1283
1291
  }
1284
- function kr() {
1292
+ function Sr() {
1285
1293
  const e = Ae(tn);
1286
1294
  if (e === null)
1287
1295
  throw new Error(
@@ -1289,8 +1297,8 @@ function kr() {
1289
1297
  );
1290
1298
  return e;
1291
1299
  }
1292
- var eo = /* @__PURE__ */ ((e) => (e.BottomStart = "bottom-start", e.BottomEnd = "bottom-end", e))(eo || {});
1293
- const no = 320, to = l("div")(({ theme: e }) => {
1300
+ var no = /* @__PURE__ */ ((e) => (e.BottomStart = "bottom-start", e.BottomEnd = "bottom-end", e))(no || {});
1301
+ const to = 320, oo = l("div")(({ theme: e }) => {
1294
1302
  const { tokens: n, space: t } = e.design;
1295
1303
  return {
1296
1304
  flex: "none",
@@ -1301,7 +1309,7 @@ const no = 320, to = l("div")(({ theme: e }) => {
1301
1309
  padding: `${o(t[2])} ${o(t[2])} ${o(t[2])} ${o(t[4])}`,
1302
1310
  borderBottom: D(n["border.subtle"])
1303
1311
  };
1304
- }), oo = l("h2")(({ theme: e }) => ({
1312
+ }), ro = l("h2")(({ theme: e }) => ({
1305
1313
  margin: 0,
1306
1314
  minWidth: 0,
1307
1315
  color: e.design.tokens["text.primary"],
@@ -1313,16 +1321,16 @@ const no = 320, to = l("div")(({ theme: e }) => {
1313
1321
  flexDirection: "column",
1314
1322
  gap: o(e.design.space[3]),
1315
1323
  fontSize: o(e.design.typeScale.body)
1316
- })), ro = l(on)(({ theme: e }) => ({
1324
+ })), io = l(on)(({ theme: e }) => ({
1317
1325
  padding: o(e.design.space[4])
1318
1326
  }));
1319
- function Sr({
1327
+ function Ir({
1320
1328
  anchorEl: e,
1321
1329
  open: n,
1322
1330
  onClose: t,
1323
1331
  title: r,
1324
1332
  placement: s = "bottom-start",
1325
- width: d = no,
1333
+ width: d = to,
1326
1334
  children: a
1327
1335
  }) {
1328
1336
  const c = P(), g = N(), C = vn() === K.Mobile, y = c.formatMessage({
@@ -1363,18 +1371,18 @@ function Sr({
1363
1371
  }
1364
1372
  },
1365
1373
  children: [
1366
- /* @__PURE__ */ x(to, { children: [
1367
- /* @__PURE__ */ i(oo, { id: g, children: r }),
1374
+ /* @__PURE__ */ x(oo, { children: [
1375
+ /* @__PURE__ */ i(ro, { id: g, children: r }),
1368
1376
  /* @__PURE__ */ i(ae, { "aria-label": y, onClick: t, children: /* @__PURE__ */ i(_e, { "aria-hidden": !0 }) })
1369
1377
  ] }),
1370
- /* @__PURE__ */ i(ro, { children: a })
1378
+ /* @__PURE__ */ i(io, { children: a })
1371
1379
  ]
1372
1380
  }
1373
1381
  );
1374
1382
  }
1375
- const io = [32, 160, 8239, 8201].map(
1383
+ const so = [32, 160, 8239, 8201].map(
1376
1384
  (e) => String.fromCharCode(e)
1377
- ), so = (e) => {
1385
+ ), ao = (e) => {
1378
1386
  var t, r;
1379
1387
  const n = new Intl.NumberFormat(e).formatToParts(11111.1);
1380
1388
  return {
@@ -1382,7 +1390,7 @@ const io = [32, 160, 8239, 8201].map(
1382
1390
  decimal: ((r = n.find((s) => s.type === "decimal")) == null ? void 0 : r.value) ?? "."
1383
1391
  };
1384
1392
  }, Re = (e, n) => {
1385
- const r = [n.group, ...io].reduce(
1393
+ const r = [n.group, ...so].reduce(
1386
1394
  (d, a) => d.split(a).join(""),
1387
1395
  e.trim()
1388
1396
  ).replace(",", ".");
@@ -1390,12 +1398,12 @@ const io = [32, 160, 8239, 8201].map(
1390
1398
  return null;
1391
1399
  const s = Number.parseFloat(r);
1392
1400
  return Number.isFinite(s) ? s : null;
1393
- }, ao = l("div", {
1401
+ }, lo = l("div", {
1394
1402
  shouldForwardProp: (e) => e !== "labelHidden"
1395
1403
  })(({ labelHidden: e }) => ({
1396
1404
  ...e && { [`& .${qn.root}`]: fe }
1397
1405
  }));
1398
- function Ir({
1406
+ function Fr({
1399
1407
  label: e,
1400
1408
  value: n,
1401
1409
  onChange: t,
@@ -1411,7 +1419,7 @@ function Ir({
1411
1419
  adornment: h
1412
1420
  }) {
1413
1421
  const m = P(), p = ge(
1414
- () => so(m.locale),
1422
+ () => ao(m.locale),
1415
1423
  [m.locale]
1416
1424
  ), f = Q(
1417
1425
  (S) => S === null ? "" : m.formatNumber(S, {
@@ -1419,30 +1427,30 @@ function Ir({
1419
1427
  maximumFractionDigits: r
1420
1428
  }),
1421
1429
  [m, r]
1422
- ), [b, v] = F(!1), [M, O] = F(() => f(n));
1430
+ ), [b, v] = F(!1), [W, M] = F(() => f(n));
1423
1431
  return V(() => {
1424
- b || O(f(n));
1425
- }, [n, b, f]), /* @__PURE__ */ i(ao, { labelHidden: a, children: /* @__PURE__ */ i(Ve, { label: e, help: g, error: C, children: /* @__PURE__ */ i(
1432
+ b || M(f(n));
1433
+ }, [n, b, f]), /* @__PURE__ */ i(lo, { labelHidden: a, children: /* @__PURE__ */ i(Ve, { label: e, help: g, error: C, children: /* @__PURE__ */ i(
1426
1434
  me,
1427
1435
  {
1428
1436
  disabled: u,
1429
- value: M,
1437
+ value: W,
1430
1438
  inputProps: {
1431
1439
  inputMode: "decimal",
1432
1440
  "aria-label": c,
1433
1441
  "data-testid": y
1434
1442
  },
1435
1443
  onFocus: () => {
1436
- v(!0), n !== null && O(String(n).replace(".", p.decimal));
1444
+ v(!0), n !== null && M(String(n).replace(".", p.decimal));
1437
1445
  },
1438
1446
  onChange: (S) => {
1439
- O(S.target.value);
1447
+ M(S.target.value);
1440
1448
  const T = Re(S.target.value, p);
1441
1449
  T !== null ? t(T) : S.target.value === "" && t(null);
1442
1450
  },
1443
1451
  onBlur: () => {
1444
1452
  v(!1);
1445
- let S = Re(M, p);
1453
+ let S = Re(W, p);
1446
1454
  if (S !== null) {
1447
1455
  const T = Math.max(S, s);
1448
1456
  S = Number.parseFloat(
@@ -1451,13 +1459,13 @@ function Ir({
1451
1459
  )
1452
1460
  );
1453
1461
  }
1454
- t(S), O(f(S));
1462
+ t(S), M(f(S));
1455
1463
  },
1456
1464
  endAdornment: h ? /* @__PURE__ */ i(Un, { position: "end", children: h }) : void 0
1457
1465
  }
1458
1466
  ) }) });
1459
1467
  }
1460
- const Fr = { l: 0.72, c: 0.12 }, Mr = [
1468
+ const Wr = { l: 0.72, c: 0.12 }, Mr = [
1461
1469
  266,
1462
1470
  296,
1463
1471
  326,
@@ -1483,25 +1491,25 @@ const Fr = { l: 0.72, c: 0.12 }, Mr = [
1483
1491
  "#37bda2",
1484
1492
  "#18b9c9",
1485
1493
  "#4eb0e5"
1486
- ], Or = "#767676", Wr = rn[6], Tr = "#111a2f", Rr = "#5674be", lo = /^#?([0-9a-f]{6})$/i, q = (e) => {
1487
- const n = lo.exec(e.trim());
1494
+ ], Or = "#767676", Tr = rn[6], Rr = "#111a2f", Er = "#5674be", co = /^#?([0-9a-f]{6})$/i, q = (e) => {
1495
+ const n = co.exec(e.trim());
1488
1496
  return n ? `#${n[1].toLowerCase()}` : null;
1489
- }, co = l("div")(({ theme: e }) => ({
1497
+ }, uo = l("div")(({ theme: e }) => ({
1490
1498
  display: "flex",
1491
1499
  alignItems: "center",
1492
1500
  gap: o(e.design.space[3])
1493
- })), uo = l("span")(({ theme: e }) => ({
1501
+ })), po = l("span")(({ theme: e }) => ({
1494
1502
  flex: "none",
1495
1503
  width: o(e.design.densityValues[e.design.density].control),
1496
1504
  height: o(e.design.densityValues[e.design.density].control),
1497
1505
  borderRadius: o(e.design.radii.md),
1498
1506
  border: D(e.design.tokens["border.control"])
1499
- })), po = l("div")(({ theme: e }) => ({
1507
+ })), go = l("div")(({ theme: e }) => ({
1500
1508
  display: "flex",
1501
1509
  flexWrap: "wrap",
1502
1510
  gap: o(e.design.space[2]),
1503
1511
  marginTop: o(e.design.space[2])
1504
- })), go = l(Be)(({ theme: e }) => {
1512
+ })), fo = l(Be)(({ theme: e }) => {
1505
1513
  const { densityValues: n, density: t, space: r } = e.design, s = n[t].control - r[2];
1506
1514
  return {
1507
1515
  width: o(s),
@@ -1517,7 +1525,7 @@ const Fr = { l: 0.72, c: 0.12 }, Mr = [
1517
1525
  }
1518
1526
  };
1519
1527
  });
1520
- function Er({
1528
+ function zr({
1521
1529
  label: e,
1522
1530
  value: n,
1523
1531
  onChange: t,
@@ -1536,9 +1544,9 @@ function Er({
1536
1544
  }, y = q(n);
1537
1545
  return /* @__PURE__ */ x(le, { fullWidth: !0, error: g, children: [
1538
1546
  /* @__PURE__ */ i($e, { htmlFor: `${d}-hex`, children: e }),
1539
- /* @__PURE__ */ x(co, { children: [
1547
+ /* @__PURE__ */ x(uo, { children: [
1540
1548
  /* @__PURE__ */ i(
1541
- uo,
1549
+ po,
1542
1550
  {
1543
1551
  "aria-hidden": "true",
1544
1552
  style: { backgroundColor: y ?? void 0 }
@@ -1562,12 +1570,12 @@ function Er({
1562
1570
  ] }),
1563
1571
  g && /* @__PURE__ */ i(se, { id: `${d}-error`, children: s.formatMessage({ id: "ds.inputs.color.invalid" }) }),
1564
1572
  /* @__PURE__ */ i(
1565
- po,
1573
+ go,
1566
1574
  {
1567
1575
  role: "group",
1568
1576
  "aria-label": s.formatMessage({ id: "ds.inputs.color.swatches" }),
1569
1577
  children: r.map((u) => /* @__PURE__ */ i(
1570
- go,
1578
+ fo,
1571
1579
  {
1572
1580
  "aria-pressed": q(u) === y,
1573
1581
  "aria-label": u,
@@ -1580,10 +1588,10 @@ function Er({
1580
1588
  )
1581
1589
  ] });
1582
1590
  }
1583
- const fo = 6, mo = l("div", {
1591
+ const mo = 6, ho = l("div", {
1584
1592
  shouldForwardProp: (e) => e !== "edges"
1585
1593
  })(({ theme: e, edges: n }) => {
1586
- const { tokens: t, radii: r, space: s } = e.design, d = o(s[1] * fo), a = t["text.primary"], c = n.start ? `transparent, ${a} ${d}` : a, g = n.end ? `${a} calc(100% - ${d}), transparent` : a;
1594
+ const { tokens: t, radii: r, space: s } = e.design, d = o(s[1] * mo), a = t["text.primary"], c = n.start ? `transparent, ${a} ${d}` : a, g = n.end ? `${a} calc(100% - ${d}), transparent` : a;
1587
1595
  return {
1588
1596
  maskImage: n.start || n.end ? `linear-gradient(to right, ${c}, ${g})` : "none",
1589
1597
  display: "inline-flex",
@@ -1608,7 +1616,7 @@ const fo = 6, mo = l("div", {
1608
1616
  backgroundColor: "transparent"
1609
1617
  }
1610
1618
  };
1611
- }), ho = l(Be)(({ theme: e }) => {
1619
+ }), bo = l(Be)(({ theme: e }) => {
1612
1620
  const { tokens: n, space: t, typeScale: r, fonts: s, densityValues: d, radii: a } = e.design;
1613
1621
  return {
1614
1622
  flex: "none",
@@ -1640,26 +1648,26 @@ const fo = 6, mo = l("div", {
1640
1648
  '&[aria-checked="true"]': { backgroundColor: n["bg.raised"] }
1641
1649
  }
1642
1650
  };
1643
- }), bo = l("span")(({ theme: e }) => ({
1651
+ }), yo = l("span")(({ theme: e }) => ({
1644
1652
  display: "inline-flex",
1645
1653
  flex: "none",
1646
1654
  "& svg": {
1647
1655
  width: o(e.design.space[4]),
1648
1656
  height: o(e.design.space[4])
1649
1657
  }
1650
- })), yo = l("span")(fe), vo = l("span")(({ theme: e }) => ({
1658
+ })), vo = l("span")(fe), wo = l("span")(({ theme: e }) => ({
1651
1659
  fontFamily: e.design.fonts.mono,
1652
1660
  fontSize: o(e.design.typeScale.caption),
1653
1661
  color: e.design.tokens["text.muted"]
1654
1662
  }));
1655
- function zr({
1663
+ function Ar({
1656
1664
  options: e,
1657
1665
  value: n,
1658
1666
  onChange: t,
1659
1667
  ariaLabel: r,
1660
1668
  testId: s
1661
1669
  }) {
1662
- const d = Y(null), [a, c] = F({ start: !1, end: !1 }), g = Q(() => {
1670
+ const d = X(null), [a, c] = F({ start: !1, end: !1 }), g = Q(() => {
1663
1671
  const u = d.current;
1664
1672
  if (!u)
1665
1673
  return;
@@ -1697,7 +1705,7 @@ function zr({
1697
1705
  0
1698
1706
  );
1699
1707
  return /* @__PURE__ */ i(
1700
- mo,
1708
+ ho,
1701
1709
  {
1702
1710
  ref: d,
1703
1711
  role: "radiogroup",
@@ -1709,7 +1717,7 @@ function zr({
1709
1717
  children: e.map((u, h) => {
1710
1718
  const m = u.value === n;
1711
1719
  return /* @__PURE__ */ x(
1712
- ho,
1720
+ bo,
1713
1721
  {
1714
1722
  role: "radio",
1715
1723
  "aria-checked": m,
@@ -1719,9 +1727,9 @@ function zr({
1719
1727
  tabIndex: h === y ? 0 : -1,
1720
1728
  onClick: () => t(u.value),
1721
1729
  children: [
1722
- u.icon !== void 0 && /* @__PURE__ */ i(bo, { "aria-hidden": !0, children: u.icon }),
1723
- u.icon !== void 0 && u.iconOnly ? /* @__PURE__ */ i(yo, { children: u.label }) : u.label,
1724
- u.count !== void 0 && /* @__PURE__ */ i(vo, { children: u.count })
1730
+ u.icon !== void 0 && /* @__PURE__ */ i(yo, { "aria-hidden": !0, children: u.icon }),
1731
+ u.icon !== void 0 && u.iconOnly ? /* @__PURE__ */ i(vo, { children: u.label }) : u.label,
1732
+ u.count !== void 0 && /* @__PURE__ */ i(wo, { children: u.count })
1725
1733
  ]
1726
1734
  },
1727
1735
  u.value
@@ -1730,10 +1738,10 @@ function zr({
1730
1738
  }
1731
1739
  );
1732
1740
  }
1733
- const wo = 1, xo = (e, n) => n === "vertical" ? e.scrollHeight - e.clientHeight - e.scrollTop : e.scrollWidth - e.clientWidth - e.scrollLeft, Co = (e, n, t) => {
1741
+ const xo = 1, Co = (e, n) => n === "vertical" ? e.scrollHeight - e.clientHeight - e.scrollTop : e.scrollWidth - e.clientWidth - e.scrollLeft, ko = (e, n, t) => {
1734
1742
  const [r, s] = F(!1), d = Q(() => {
1735
1743
  const a = e.current;
1736
- a !== null && s(xo(a, n) > wo);
1744
+ a !== null && s(Co(a, n) > xo);
1737
1745
  }, [e, n]);
1738
1746
  return Le(d, [d, t]), V(() => {
1739
1747
  const a = e.current;
@@ -1746,8 +1754,8 @@ const wo = 1, xo = (e, n) => n === "vertical" ? e.scrollHeight - e.clientHeight
1746
1754
  };
1747
1755
  }, [e, d, t]), r;
1748
1756
  };
1749
- var ko = /* @__PURE__ */ ((e) => (e.Primary = "primary", e.Secondary = "secondary", e))(ko || {});
1750
- const So = 2, Io = /* @__PURE__ */ new Set(["Enter", " "]), Fo = l("div", {
1757
+ var So = /* @__PURE__ */ ((e) => (e.Primary = "primary", e.Secondary = "secondary", e))(So || {});
1758
+ const Io = 2, Fo = /* @__PURE__ */ new Set(["Enter", " "]), Wo = l("div", {
1751
1759
  shouldForwardProp: (e) => e !== "variant"
1752
1760
  })(({ theme: e, variant: n }) => ({
1753
1761
  minWidth: 0,
@@ -1810,7 +1818,7 @@ const So = 2, Io = /* @__PURE__ */ new Set(["Enter", " "]), Fo = l("div", {
1810
1818
  left: 0,
1811
1819
  right: 0,
1812
1820
  bottom: 0,
1813
- height: o(So),
1821
+ height: o(Io),
1814
1822
  backgroundColor: t.accent
1815
1823
  },
1816
1824
  ...y
@@ -1831,7 +1839,7 @@ const So = 2, Io = /* @__PURE__ */ new Set(["Enter", " "]), Fo = l("div", {
1831
1839
  },
1832
1840
  ...y
1833
1841
  };
1834
- }, ln = (e) => e !== "variant", Oo = l(Yn, { shouldForwardProp: ln })(({ theme: e, variant: n }) => an(e, n)), Wo = l("button", { shouldForwardProp: ln })(({ theme: e, variant: n }) => an(e, n)), To = l("span")(({ theme: e }) => {
1842
+ }, ln = (e) => e !== "variant", Oo = l(Xn, { shouldForwardProp: ln })(({ theme: e, variant: n }) => an(e, n)), To = l("button", { shouldForwardProp: ln })(({ theme: e, variant: n }) => an(e, n)), Ro = l("span")(({ theme: e }) => {
1835
1843
  const { tokens: n, space: t, radii: r, fonts: s, typeScale: d } = e.design;
1836
1844
  return {
1837
1845
  display: "inline-flex",
@@ -1849,14 +1857,14 @@ const So = 2, Io = /* @__PURE__ */ new Set(["Enter", " "]), Fo = l("div", {
1849
1857
  const t = n.offsetLeft, r = t + n.offsetWidth + sn;
1850
1858
  t < e.scrollLeft ? e.scrollLeft = t : r > e.scrollLeft + e.clientWidth && (e.scrollLeft = r - e.clientWidth);
1851
1859
  };
1852
- function Ar({
1860
+ function Lr({
1853
1861
  items: e,
1854
1862
  value: n,
1855
1863
  onChange: t,
1856
1864
  variant: r,
1857
1865
  "aria-label": s
1858
1866
  }) {
1859
- const d = P(), a = Y(null), c = e.filter((p) => p.hidden !== !0), g = Co(a, "horizontal", c.length), C = Q(
1867
+ const d = P(), a = X(null), c = e.filter((p) => p.hidden !== !0), g = ko(a, "horizontal", c.length), C = Q(
1860
1868
  () => {
1861
1869
  var p;
1862
1870
  return Array.from(
@@ -1878,10 +1886,10 @@ function Ar({
1878
1886
  return f.observe(p), Array.from(p.children).forEach((b) => f.observe(b)), () => f.disconnect();
1879
1887
  }, [y, u]);
1880
1888
  const h = (p) => {
1881
- const f = C(), b = f.findIndex((M) => M === document.activeElement);
1889
+ const f = C(), b = f.findIndex((W) => W === document.activeElement);
1882
1890
  if (b < 0)
1883
1891
  return;
1884
- if (Io.has(p.key)) {
1892
+ if (Fo.has(p.key)) {
1885
1893
  p.key === " " && f[b] instanceof HTMLAnchorElement && (p.preventDefault(), f[b].click());
1886
1894
  return;
1887
1895
  }
@@ -1907,7 +1915,7 @@ function Ar({
1907
1915
  c.findIndex((p) => p.value === n),
1908
1916
  0
1909
1917
  );
1910
- return /* @__PURE__ */ i(Fo, { variant: r, children: /* @__PURE__ */ i(
1918
+ return /* @__PURE__ */ i(Wo, { variant: r, children: /* @__PURE__ */ i(
1911
1919
  Mo,
1912
1920
  {
1913
1921
  ref: a,
@@ -1920,8 +1928,8 @@ function Ar({
1920
1928
  children: c.map((p, f) => {
1921
1929
  const b = p.value === n, v = /* @__PURE__ */ x(J, { children: [
1922
1930
  p.label,
1923
- p.badge !== void 0 && /* @__PURE__ */ i(To, { children: typeof p.badge == "number" ? d.formatNumber(p.badge) : p.badge })
1924
- ] }), M = {
1931
+ p.badge !== void 0 && /* @__PURE__ */ i(Ro, { children: typeof p.badge == "number" ? d.formatNumber(p.badge) : p.badge })
1932
+ ] }), W = {
1925
1933
  role: "tab",
1926
1934
  "aria-selected": b,
1927
1935
  tabIndex: f === m ? 0 : -1,
@@ -1934,43 +1942,43 @@ function Ar({
1934
1942
  {
1935
1943
  to: p.to,
1936
1944
  "aria-current": b ? "page" : void 0,
1937
- ...M,
1945
+ ...W,
1938
1946
  children: v
1939
1947
  },
1940
1948
  p.value
1941
- ) : /* @__PURE__ */ i(Wo, { type: "button", ...M, children: v }, p.value);
1949
+ ) : /* @__PURE__ */ i(To, { type: "button", ...W, children: v }, p.value);
1942
1950
  })
1943
1951
  }
1944
1952
  ) });
1945
1953
  }
1946
1954
  export {
1947
- Sr as A,
1948
- it as C,
1949
- xr as D,
1955
+ Ir as A,
1956
+ st as C,
1957
+ Cr as D,
1950
1958
  Ve as F,
1951
- Tt as I,
1952
- Ir as N,
1953
- wr as R,
1954
- zr as S,
1955
- ko as T,
1959
+ Rt as I,
1960
+ Fr as N,
1961
+ xr as R,
1962
+ Ar as S,
1963
+ So as T,
1956
1964
  je as a,
1957
- Rt as b,
1965
+ Et as b,
1958
1966
  nn as c,
1959
1967
  Yt as d,
1960
- Jt as e,
1961
- Co as f,
1962
- Wt as g,
1963
- Er as h,
1964
- eo as i,
1965
- Cr as j,
1966
- Ar as k,
1967
- Fr as l,
1968
+ eo as e,
1969
+ ko as f,
1970
+ Tt as g,
1971
+ zr as h,
1972
+ no as i,
1973
+ kr as j,
1974
+ Lr as k,
1975
+ Wr as l,
1968
1976
  Mr as m,
1969
1977
  q as n,
1970
1978
  rn as o,
1971
1979
  Or as p,
1972
- Wr as q,
1973
- Tr as r,
1974
- Rr as s,
1975
- kr as u
1980
+ Tr as q,
1981
+ Rr as r,
1982
+ Er as s,
1983
+ Sr as u
1976
1984
  };