@abyss-project/commons-front-core 13.0.0 → 13.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/catalog/pages/ToolIcon.tsx +48 -48
  2. package/dist/{AbyssCookieConsentProvider-D5jeL5KA.js → AbyssCookieConsentProvider-DJTKl58k.js} +142 -138
  3. package/dist/{CookieConsentSettings.component-C69wpa-v.js → CookieConsentSettings.component-ZF6umBSH.js} +1 -1
  4. package/dist/{Tabs-CwVEV4SO.js → Tabs-CYy30PTc.js} +308 -308
  5. package/dist/assets/logo/index.d.ts +1 -0
  6. package/dist/components/layers/ProductTour/product-tour-geometry.d.ts +6 -3
  7. package/dist/cookie-consent.js +2 -2
  8. package/dist/{design-theme-DkGGYH91.js → design-theme-jAV6pBoh.js} +1476 -1471
  9. package/dist/{editors-DkiY6BfJ.js → editors-Cs01hAfK.js} +26 -26
  10. package/dist/editors.js +1 -1
  11. package/dist/hooks/use-rich-intl.hook.d.ts +12 -0
  12. package/dist/hooks/use-service-tour.hook.d.ts +6 -5
  13. package/dist/{index-DVsMyd7m.js → index-B4BTrYji.js} +2 -2
  14. package/dist/{index-B52OKB4p.js → index-BB97MmlB.js} +3 -3
  15. package/dist/{index-BoCgQirm.js → index-BG_7wul8.js} +2 -2
  16. package/dist/{index-CgIjHnfl.js → index-BJ-WRVfA.js} +2 -2
  17. package/dist/{index-DW0z3W_H.js → index-BLWFMNK1.js} +1 -1
  18. package/dist/{index-PHSTFO70.js → index-BOB-FVdo.js} +3 -3
  19. package/dist/{index-CXGI5k75.js → index-BQ-RHsS9.js} +4 -4
  20. package/dist/{index-Cl1BSx17.js → index-BSpED9Jn.js} +2 -2
  21. package/dist/{index-CtMx42h6.js → index-BYymsRFa.js} +2 -2
  22. package/dist/{index-DMiPquK5.js → index-Bw9dFzxv.js} +2 -2
  23. package/dist/{index-orVFXDIv.js → index-BxEgyF6L.js} +3 -3
  24. package/dist/{index-Bh7buNbj.js → index-C64fovtn.js} +2 -2
  25. package/dist/{index-Cg6Mv7QT.js → index-C918Bygt.js} +2 -2
  26. package/dist/{index-DSjH42Mo.js → index-CHGLrOHZ.js} +3 -3
  27. package/dist/{index-CwdirjZn.js → index-CQIcz4k-.js} +2 -2
  28. package/dist/{index-CvRSR1eE.js → index-CQhfq-e2.js} +2 -2
  29. package/dist/{index-DmCRAN1O.js → index-CWzTvLyx.js} +2 -2
  30. package/dist/{index-D1YeCKtd.js → index-Ce0hJGR7.js} +4 -4
  31. package/dist/{index-2l12Iu8k.js → index-CgdrkQAf.js} +2 -2
  32. package/dist/{index-BacMl_If.js → index-DfzHovEF.js} +2 -2
  33. package/dist/{index-KH3KmoUw.js → index-YnJVcsc6.js} +4 -4
  34. package/dist/index.js +2923 -2881
  35. package/dist/legacy.js +622 -617
  36. package/dist/theme/tokens/domain.d.ts +1 -0
  37. package/dist/translations/en.d.ts +2 -0
  38. package/dist/translations/fr.d.ts +2 -0
  39. package/package.json +3 -3
@@ -1,54 +1,54 @@
1
1
  import { jsx as i, jsxs as v, Fragment as ne } from "react/jsx-runtime";
2
- import { useId as E, useRef as j, useState as I, cloneElement as Ct, useMemo as ye, useCallback as Q, useEffect as G, forwardRef as St, createContext as Be, useContext as Ne, useLayoutEffect as _e } from "react";
3
- import { alpha as It, styled as a, useTheme as Ve, getContrastRatio as $e } from "@mui/material/styles";
2
+ import { useId as E, useRef as j, useState as I, cloneElement as St, useMemo as ye, useCallback as Q, useEffect as G, forwardRef as It, createContext as Be, useContext as Ne, useLayoutEffect as _e } from "react";
3
+ import { alpha as Tt, styled as a, useTheme as Ve, getContrastRatio as $e } from "@mui/material/styles";
4
4
  import ce from "@mui/material/FormControl";
5
5
  import de from "@mui/material/FormHelperText";
6
6
  import je from "@mui/material/InputLabel";
7
7
  import Fe from "@mui/material/MenuItem";
8
- import Tt from "@mui/material/Select";
9
- import { visuallyHidden as $t } from "@mui/utils";
8
+ import $t from "@mui/material/Select";
9
+ import { visuallyHidden as Ft } from "@mui/utils";
10
10
  import { useIntl as z } from "react-intl";
11
- import { b as Me, S as Ft, f as M, i as Mt, a as Rt, r as Wt, u as Ot, A as At, E as Et } from "./AbyssCloud-IuD91X6C.js";
11
+ import { b as Me, S as Mt, f as M, i as Rt, a as Wt, r as Ot, u as At, A as Et, E as zt } from "./AbyssCloud-IuD91X6C.js";
12
12
  import Ge from "@mui/material/ButtonBase";
13
13
  import ve from "@mui/material/OutlinedInput";
14
- import zt from "@mui/material/InputAdornment";
14
+ import Dt from "@mui/material/InputAdornment";
15
15
  import Z from "@mui/material/Button";
16
- import { byteSizeIEC as Dt } from "@abyss-project/main";
17
- import Lt from "@mui/icons-material/FileUploadOutlined";
18
- import Pt, { autocompleteClasses as Re } from "@mui/material/Autocomplete";
16
+ import { byteSizeIEC as Lt } from "@abyss-project/main";
17
+ import Pt from "@mui/icons-material/FileUploadOutlined";
18
+ import Ht, { autocompleteClasses as Re } from "@mui/material/Autocomplete";
19
19
  import We from "@mui/material/CircularProgress";
20
20
  import ee from "@mui/material/IconButton";
21
21
  import Oe from "@mui/material/Tooltip";
22
22
  import Ae from "@mui/icons-material/CloudOutlined";
23
- import Ht from "@mui/icons-material/CloudOffOutlined";
24
- import Bt from "@mui/icons-material/FileDownloadOutlined";
23
+ import Bt from "@mui/icons-material/CloudOffOutlined";
24
+ import Nt from "@mui/icons-material/FileDownloadOutlined";
25
25
  import Ue from "@mui/icons-material/FolderOpenOutlined";
26
- import Nt from "@mui/icons-material/OpenInNewRounded";
27
- import _t from "@mui/icons-material/RefreshRounded";
28
- import Vt from "@mui/material/FormLabel";
29
- import { isMuiElement as jt } from "@mui/material/utils";
30
- import Gt from "@mui/icons-material/CheckCircleOutline";
26
+ import _t from "@mui/icons-material/OpenInNewRounded";
27
+ import Vt from "@mui/icons-material/RefreshRounded";
28
+ import jt from "@mui/material/FormLabel";
29
+ import { isMuiElement as Gt } from "@mui/material/utils";
30
+ import Ut from "@mui/icons-material/CheckCircleOutline";
31
31
  import ue from "@mui/icons-material/Close";
32
- import Ut from "@mui/icons-material/ErrorOutline";
33
- import qt from "@mui/icons-material/InfoOutlined";
34
- import Kt from "@mui/icons-material/WarningAmber";
35
- import Yt from "@mui/material/Checkbox";
36
- import Xt from "@mui/icons-material/DescriptionOutlined";
37
- import Qt from "@mui/icons-material/FolderOutlined";
38
- import Zt from "@mui/icons-material/ChevronRightRounded";
39
- import Jt from "@mui/material/Popover";
40
- import en from "@mui/material/Alert";
41
- import tn from "@mui/material/TextField";
42
- import nn from "@mui/material/Dialog";
32
+ import qt from "@mui/icons-material/ErrorOutline";
33
+ import Kt from "@mui/icons-material/InfoOutlined";
34
+ import Yt from "@mui/icons-material/WarningAmber";
35
+ import Xt from "@mui/material/Checkbox";
36
+ import Qt from "@mui/icons-material/DescriptionOutlined";
37
+ import Zt from "@mui/icons-material/FolderOutlined";
38
+ import Jt from "@mui/icons-material/ChevronRightRounded";
39
+ import en from "@mui/material/Popover";
40
+ import tn from "@mui/material/Alert";
41
+ import nn from "@mui/material/TextField";
42
+ import on from "@mui/material/Dialog";
43
43
  import Ee from "@mui/material/useMediaQuery";
44
- import on from "@mui/material/Modal";
45
- import rn from "@mui/material/Slide";
46
- import { Link as sn } from "react-router-dom";
44
+ import rn from "@mui/material/Modal";
45
+ import sn from "@mui/material/Slide";
46
+ import { Link as an } from "react-router-dom";
47
47
  var $ = /* @__PURE__ */ ((e) => (e.Mobile = "mobile", e.Tablet = "tablet", e.Desktop = "desktop", e))($ || {});
48
48
  const qe = {
49
49
  tablet: Me.md,
50
50
  desktop: Me.lg
51
- }, an = 0.05, fe = (e) => `(min-width:${qe[e]}px)`, me = (e) => `(max-width:${qe[e] - an}px)`, B = {
51
+ }, ln = 0.05, fe = (e) => `(min-width:${qe[e]}px)`, me = (e) => `(max-width:${qe[e] - ln}px)`, B = {
52
52
  /** From the start of `tier` up. */
53
53
  up: (e) => `@media ${fe(e)}`,
54
54
  /** Below the start of `tier`. */
@@ -76,21 +76,21 @@ const qe = {
76
76
  )}`;
77
77
  }
78
78
  }
79
- }, o = (e) => `${e}px`, R = (e) => `1px solid ${e}`, ge = (e) => It(e, Ft), te = (e) => ({
79
+ }, o = (e) => `${e}px`, R = (e) => `1px solid ${e}`, ge = (e) => Tt(e, Mt), te = (e) => ({
80
80
  outline: `2px solid ${e.design.tokens["focus.ring"]}`,
81
81
  outlineOffset: "2px"
82
- }), Qr = (e, t) => t === "small" ? e.design.densityValues.compact.control : e.design.densityValues[e.design.density].control, Zr = (e) => e.design.densityValues[e.design.density].row, Ke = (e) => ({
82
+ }), Zr = (e, t) => t === "small" ? e.design.densityValues.compact.control : e.design.densityValues[e.design.density].control, Jr = (e) => e.design.densityValues[e.design.density].row, Ke = (e) => ({
83
83
  [B.down($.Tablet)]: {
84
84
  minHeight: o(e.design.densityValues.touchTarget)
85
85
  }
86
- }), ln = (e) => ({
86
+ }), Ye = (e) => ({
87
87
  [B.down($.Tablet)]: {
88
88
  minWidth: o(e.design.densityValues.touchTarget),
89
89
  minHeight: o(e.design.densityValues.touchTarget)
90
90
  }
91
91
  }), oe = (e, t, n = "fast") => t.map(
92
92
  (r) => `${r} ${e.design.durations[n]}ms ${e.design.easings.standard}`
93
- ).join(", "), Ye = () => {
93
+ ).join(", "), Xe = () => {
94
94
  const e = Ee(B.up($.Desktop), {
95
95
  noSsr: !0
96
96
  }), t = Ee(B.down($.Tablet), {
@@ -134,7 +134,7 @@ const se = (e, t) => `calc(${o(t)} + env(safe-area-inset-${e}))`, dn = 0.3, cn =
134
134
  position: "absolute",
135
135
  top: o(e.design.space[1]),
136
136
  right: se(J.Right, e.design.space[2]),
137
- ...ln(e)
137
+ ...Ye(e)
138
138
  })), pn = a("div")(({ theme: e }) => {
139
139
  const { space: t, densityValues: n } = e.design;
140
140
  return {
@@ -174,7 +174,7 @@ const se = (e, t) => `calc(${o(t)} + env(safe-area-inset-${e}))`, dn = 0.3, cn =
174
174
  overflowY: "auto",
175
175
  overscrollBehavior: "contain"
176
176
  });
177
- function Xe({
177
+ function Qe({
178
178
  open: e,
179
179
  onClose: t,
180
180
  title: n,
@@ -194,8 +194,8 @@ function Xe({
194
194
  }, k = () => {
195
195
  m.current = null, b(!1), h(0);
196
196
  };
197
- return /* @__PURE__ */ i(on, { open: e, onClose: () => t(), children: /* @__PURE__ */ i(
198
- rn,
197
+ return /* @__PURE__ */ i(rn, { open: e, onClose: () => t(), children: /* @__PURE__ */ i(
198
+ sn,
199
199
  {
200
200
  in: e,
201
201
  direction: "up",
@@ -238,7 +238,7 @@ function Xe({
238
238
  ) });
239
239
  }
240
240
  var xe = /* @__PURE__ */ ((e) => (e.Small = "sm", e.Medium = "md", e.Large = "lg", e))(xe || {});
241
- const bn = a(nn)(({ theme: e }) => {
241
+ const bn = a(on)(({ theme: e }) => {
242
242
  const { tokens: t, fonts: n, space: r } = e.design;
243
243
  return {
244
244
  "& .MuiDialog-paper": {
@@ -307,7 +307,7 @@ const bn = a(nn)(({ theme: e }) => {
307
307
  marginTop: o(e.design.space[4]),
308
308
  "& > *": { flex: "1 1 0" }
309
309
  }));
310
- function Qe({
310
+ function Ze({
311
311
  open: e,
312
312
  onClose: t,
313
313
  title: n,
@@ -316,9 +316,9 @@ function Qe({
316
316
  actions: c,
317
317
  children: l
318
318
  }) {
319
- const d = z(), g = Ye() === $.Mobile, m = E(), p = E();
319
+ const d = z(), g = Xe() === $.Mobile, m = E(), p = E();
320
320
  return g ? /* @__PURE__ */ v(
321
- Xe,
321
+ Qe,
322
322
  {
323
323
  open: e,
324
324
  onClose: t,
@@ -360,7 +360,7 @@ function Qe({
360
360
  }
361
361
  );
362
362
  }
363
- const Tn = a(Vt)(({ theme: e }) => ({
363
+ const Tn = a(jt)(({ theme: e }) => ({
364
364
  display: "block",
365
365
  maxWidth: "100%",
366
366
  marginBottom: o(e.design.space[2]),
@@ -372,17 +372,17 @@ const Tn = a(Vt)(({ theme: e }) => ({
372
372
  "&.Mui-error": { color: e.design.tokens["status.danger"] },
373
373
  "&.Mui-disabled": { color: e.design.tokens["text.muted"] }
374
374
  }));
375
- function Ze({
375
+ function Je({
376
376
  label: e,
377
377
  help: t,
378
378
  error: n,
379
379
  required: r = !1,
380
380
  children: s
381
381
  }) {
382
- const c = E(), l = s.props.id ?? c, d = `${l}-label`, g = t !== void 0 ? `${l}-help` : void 0, m = n !== void 0 ? `${l}-error` : void 0, p = [s.props["aria-describedby"], g, m].filter((y) => y !== void 0 && y !== "").join(" ") || void 0, h = Ct(s, {
382
+ const c = E(), l = s.props.id ?? c, d = `${l}-label`, g = t !== void 0 ? `${l}-help` : void 0, m = n !== void 0 ? `${l}-error` : void 0, p = [s.props["aria-describedby"], g, m].filter((y) => y !== void 0 && y !== "").join(" ") || void 0, h = St(s, {
383
383
  id: l,
384
384
  "aria-describedby": p,
385
- ...jt(s, ["Select"]) && { labelId: d }
385
+ ...Gt(s, ["Select"]) && { labelId: d }
386
386
  });
387
387
  return /* @__PURE__ */ v(ce, { fullWidth: !0, error: n !== void 0, required: r, children: [
388
388
  /* @__PURE__ */ i(Tn, { id: d, htmlFor: l, children: e }),
@@ -391,8 +391,8 @@ function Ze({
391
391
  n !== void 0 && /* @__PURE__ */ i(de, { id: m, children: n })
392
392
  ] });
393
393
  }
394
- var Je = /* @__PURE__ */ ((e) => (e.Info = "info", e.Success = "success", e.Warning = "warning", e.Danger = "danger", e))(Je || {});
395
- const et = {
394
+ var et = /* @__PURE__ */ ((e) => (e.Info = "info", e.Success = "success", e.Warning = "warning", e.Danger = "danger", e))(et || {});
395
+ const tt = {
396
396
  info: { solid: "status.info", soft: "status.info.soft" },
397
397
  success: {
398
398
  solid: "status.success",
@@ -407,14 +407,14 @@ const et = {
407
407
  soft: "status.danger.soft"
408
408
  }
409
409
  }, $n = {
410
- info: qt,
411
- success: Gt,
412
- warning: Kt,
413
- danger: Ut
410
+ info: Kt,
411
+ success: Ut,
412
+ warning: Yt,
413
+ danger: qt
414
414
  }, Fn = a("div", {
415
415
  shouldForwardProp: (e) => e !== "severity"
416
416
  })(({ theme: e, severity: t }) => {
417
- const { tokens: n, space: r, radii: s, fonts: c, typeScale: l } = e.design, { solid: d, soft: g } = et[t];
417
+ const { tokens: n, space: r, radii: s, fonts: c, typeScale: l } = e.design, { solid: d, soft: g } = tt[t];
418
418
  return {
419
419
  display: "flex",
420
420
  alignItems: "flex-start",
@@ -438,7 +438,7 @@ const et = {
438
438
  flex: "none",
439
439
  // Centered on the first line of text.
440
440
  paddingTop: o(r[1] / 2),
441
- color: n[et[t].solid],
441
+ color: n[tt[t].solid],
442
442
  "& svg": {
443
443
  width: o(r[4] + r[1]),
444
444
  height: o(r[4] + r[1])
@@ -472,8 +472,8 @@ const et = {
472
472
  display: "flex",
473
473
  flex: "none",
474
474
  alignItems: "center"
475
- });
476
- function En({
475
+ }), En = a(ee)(({ theme: e }) => Ye(e));
476
+ function zn({
477
477
  severity: e,
478
478
  title: t,
479
479
  children: n,
@@ -499,7 +499,7 @@ function En({
499
499
  r !== void 0 && /* @__PURE__ */ i(An, { children: r })
500
500
  ] }),
501
501
  s !== void 0 && /* @__PURE__ */ i(
502
- ee,
502
+ En,
503
503
  {
504
504
  size: "small",
505
505
  "aria-label": l.formatMessage({ id: "ds.states.callout.close" }),
@@ -511,12 +511,12 @@ function En({
511
511
  }
512
512
  );
513
513
  }
514
- const X = (e) => e.id ?? e.name, tt = (e, t, n) => (t === void 0 || e.sizeOctet <= t) && Mt(e, n), nt = (e, t, n) => [
514
+ const X = (e) => e.id ?? e.name, nt = (e, t, n) => (t === void 0 || e.sizeOctet <= t) && Rt(e, n), ot = (e, t, n) => [
515
515
  ...(e.childFile ?? []).filter(
516
- (r) => tt(r, t, n)
516
+ (r) => nt(r, t, n)
517
517
  ),
518
518
  ...(e.childFolder ?? []).flatMap(
519
- (r) => nt(r, t, n)
519
+ (r) => ot(r, t, n)
520
520
  )
521
521
  ], he = a("div", {
522
522
  shouldForwardProp: (e) => e !== "selected"
@@ -533,7 +533,7 @@ const X = (e) => e.id ?? e.name, tt = (e, t, n) => (t === void 0 || e.sizeOctet
533
533
  color: n["text.primary"],
534
534
  ...Ke(e)
535
535
  };
536
- }), ot = (e) => {
536
+ }), rt = (e) => {
537
537
  const { tokens: t, space: n, radii: r, fonts: s } = e.design;
538
538
  return {
539
539
  flex: "1 1 auto",
@@ -556,7 +556,7 @@ const X = (e) => e.id ?? e.name, tt = (e, t, n) => (t === void 0 || e.sizeOctet
556
556
  "&:hover": { backgroundColor: t["bg.hover"] },
557
557
  "&:focus-visible": te(e)
558
558
  };
559
- }, rt = a("button")(({ theme: e }) => ot(e)), zn = a("label")(({ theme: e }) => ot(e)), it = a("span", {
559
+ }, it = a("button")(({ theme: e }) => rt(e)), Dn = a("label")(({ theme: e }) => rt(e)), st = a("span", {
560
560
  shouldForwardProp: (e) => e !== "strong"
561
561
  })(({ strong: e }) => ({
562
562
  flex: "1 1 auto",
@@ -565,7 +565,7 @@ const X = (e) => e.id ?? e.name, tt = (e, t, n) => (t === void 0 || e.sizeOctet
565
565
  textOverflow: "ellipsis",
566
566
  whiteSpace: "nowrap",
567
567
  fontWeight: e ? M.medium : M.regular
568
- })), st = a("span")(({ theme: e }) => {
568
+ })), at = a("span")(({ theme: e }) => {
569
569
  const { tokens: t, space: n, radii: r } = e.design;
570
570
  return {
571
571
  display: "inline-flex",
@@ -580,7 +580,7 @@ const X = (e) => e.id ?? e.name, tt = (e, t, n) => (t === void 0 || e.sizeOctet
580
580
  "& svg": { width: o(n[5]), height: o(n[5]) },
581
581
  "& img": { width: "100%", height: "100%", objectFit: "cover" }
582
582
  };
583
- }), Dn = a(Zt, {
583
+ }), Ln = a(Jt, {
584
584
  shouldForwardProp: (e) => e !== "open"
585
585
  })(({ theme: e, open: t }) => ({
586
586
  flex: "none",
@@ -589,35 +589,35 @@ const X = (e) => e.id ?? e.name, tt = (e, t, n) => (t === void 0 || e.sizeOctet
589
589
  color: e.design.tokens["text.muted"],
590
590
  transform: t ? "rotate(90deg)" : "none",
591
591
  transition: oe(e, ["transform"])
592
- })), at = a(Yt)(({ theme: e }) => ({
592
+ })), lt = a(Xt)(({ theme: e }) => ({
593
593
  [B.down($.Tablet)]: {
594
594
  padding: o(
595
595
  (e.design.densityValues.touchTarget - e.design.space[5]) / 2
596
596
  )
597
597
  }
598
- })), Ln = a("ul")(({ theme: e }) => ({
598
+ })), Pn = a("ul")(({ theme: e }) => ({
599
599
  margin: 0,
600
600
  padding: 0,
601
601
  listStyle: "none",
602
602
  borderLeft: R(e.design.tokens["border.subtle"]),
603
603
  marginLeft: o(e.design.space[3])
604
604
  })), ze = a("li")({ listStyle: "none" });
605
- function lt({
605
+ function dt({
606
606
  folders: e,
607
607
  files: t,
608
608
  context: n
609
609
  }) {
610
610
  return /* @__PURE__ */ v(ne, { children: [
611
- e.map((r) => /* @__PURE__ */ i(ze, { children: /* @__PURE__ */ i(Bn, { folder: r, context: n }) }, r.id ?? r.name)),
612
- t.filter((r) => tt(r, n.maxSize, n.accept)).map((r) => /* @__PURE__ */ i(ze, { children: /* @__PURE__ */ i(Hn, { file: r, context: n }) }, X(r)))
611
+ e.map((r) => /* @__PURE__ */ i(ze, { children: /* @__PURE__ */ i(Nn, { folder: r, context: n }) }, r.id ?? r.name)),
612
+ t.filter((r) => nt(r, n.maxSize, n.accept)).map((r) => /* @__PURE__ */ i(ze, { children: /* @__PURE__ */ i(Bn, { file: r, context: n }) }, X(r)))
613
613
  ] });
614
614
  }
615
- function Pn({
615
+ function Hn({
616
616
  file: e,
617
617
  getFileThumbnailUrl: t
618
618
  }) {
619
619
  const [n, r] = I(!1), s = e.thumbnailPublicAccessId !== null && !e.isEncrypt && !n ? t(e.thumbnailPublicAccessId) : null;
620
- return /* @__PURE__ */ i(st, { "aria-hidden": !0, children: s !== null ? /* @__PURE__ */ i(
620
+ return /* @__PURE__ */ i(at, { "aria-hidden": !0, children: s !== null ? /* @__PURE__ */ i(
621
621
  "img",
622
622
  {
623
623
  src: s,
@@ -625,25 +625,25 @@ function Pn({
625
625
  draggable: !1,
626
626
  onError: () => r(!0)
627
627
  }
628
- ) : /* @__PURE__ */ i(Xt, {}) });
628
+ ) : /* @__PURE__ */ i(Qt, {}) });
629
629
  }
630
- function Hn({
630
+ function Bn({
631
631
  file: e,
632
632
  context: t
633
633
  }) {
634
634
  const n = E(), r = t.selectedIds.has(X(e)), s = () => r ? t.unselect([e]) : t.select([e]), c = /* @__PURE__ */ v(ne, { children: [
635
635
  /* @__PURE__ */ i(
636
- Pn,
636
+ Hn,
637
637
  {
638
638
  file: e,
639
639
  getFileThumbnailUrl: t.getFileThumbnailUrl
640
640
  }
641
641
  ),
642
- /* @__PURE__ */ i(it, { strong: r, title: e.name, children: e.name })
642
+ /* @__PURE__ */ i(st, { strong: r, title: e.name, children: e.name })
643
643
  ] });
644
644
  return t.multiple ? /* @__PURE__ */ v(he, { selected: r, children: [
645
645
  /* @__PURE__ */ i(
646
- at,
646
+ lt,
647
647
  {
648
648
  id: n,
649
649
  size: "small",
@@ -651,20 +651,20 @@ function Hn({
651
651
  onChange: s
652
652
  }
653
653
  ),
654
- /* @__PURE__ */ i(zn, { htmlFor: n, children: c })
655
- ] }) : /* @__PURE__ */ i(he, { selected: r, children: /* @__PURE__ */ i(rt, { type: "button", "aria-pressed": r, onClick: s, children: c }) });
654
+ /* @__PURE__ */ i(Dn, { htmlFor: n, children: c })
655
+ ] }) : /* @__PURE__ */ i(he, { selected: r, children: /* @__PURE__ */ i(it, { type: "button", "aria-pressed": r, onClick: s, children: c }) });
656
656
  }
657
- function Bn({
657
+ function Nn({
658
658
  folder: e,
659
659
  context: t
660
660
  }) {
661
- const n = z(), r = E(), [s, c] = I(!1), l = nt(e, t.maxSize, t.accept), d = l.filter(
661
+ const n = z(), r = E(), [s, c] = I(!1), l = ot(e, t.maxSize, t.accept), d = l.filter(
662
662
  (m) => t.selectedIds.has(X(m))
663
663
  ).length, g = l.length > 0 && d === l.length;
664
664
  return /* @__PURE__ */ v(ne, { children: [
665
665
  /* @__PURE__ */ v(he, { selected: g, children: [
666
666
  t.multiple && /* @__PURE__ */ i(
667
- at,
667
+ lt,
668
668
  {
669
669
  size: "small",
670
670
  checked: g,
@@ -680,22 +680,22 @@ function Bn({
680
680
  }
681
681
  ),
682
682
  /* @__PURE__ */ v(
683
- rt,
683
+ it,
684
684
  {
685
685
  type: "button",
686
686
  "aria-expanded": s,
687
687
  "aria-controls": s ? r : void 0,
688
688
  onClick: () => c(!s),
689
689
  children: [
690
- /* @__PURE__ */ i(Dn, { open: s, "aria-hidden": !0 }),
691
- /* @__PURE__ */ i(st, { "aria-hidden": !0, children: s ? /* @__PURE__ */ i(Ue, {}) : /* @__PURE__ */ i(Qt, {}) }),
692
- /* @__PURE__ */ i(it, { strong: g, title: e.name, children: e.name })
690
+ /* @__PURE__ */ i(Ln, { open: s, "aria-hidden": !0 }),
691
+ /* @__PURE__ */ i(at, { "aria-hidden": !0, children: s ? /* @__PURE__ */ i(Ue, {}) : /* @__PURE__ */ i(Zt, {}) }),
692
+ /* @__PURE__ */ i(st, { strong: g, title: e.name, children: e.name })
693
693
  ]
694
694
  }
695
695
  )
696
696
  ] }),
697
- s && /* @__PURE__ */ i(Ln, { id: r, children: /* @__PURE__ */ i(
698
- lt,
697
+ s && /* @__PURE__ */ i(Pn, { id: r, children: /* @__PURE__ */ i(
698
+ dt,
699
699
  {
700
700
  folders: e.childFolder ?? [],
701
701
  files: e.childFile ?? [],
@@ -709,12 +709,12 @@ const De = "shared", Le = {
709
709
  "perso-in-org": 1,
710
710
  project: 2,
711
711
  personal: 3
712
- }, Nn = a("div")(({ theme: e }) => ({
712
+ }, _n = a("div")(({ theme: e }) => ({
713
713
  display: "flex",
714
714
  flexDirection: "column",
715
715
  gap: o(e.design.space[3]),
716
716
  minWidth: 0
717
- })), _n = a("div")(({ theme: e }) => ({
717
+ })), Vn = a("div")(({ theme: e }) => ({
718
718
  display: "flex",
719
719
  alignItems: "flex-end",
720
720
  gap: o(e.design.space[2]),
@@ -722,11 +722,11 @@ const De = "shared", Le = {
722
722
  // The Space field takes the room the two icon buttons leave.
723
723
  [`& > .${Re.root}`]: { flex: "1 1 auto", minWidth: 0 },
724
724
  [`& > :not(.${Re.root})`]: { flex: "none" }
725
- })), Vn = a("p")(({ theme: e }) => ({
725
+ })), jn = a("p")(({ theme: e }) => ({
726
726
  margin: 0,
727
727
  fontSize: o(e.design.typeScale.small),
728
728
  color: e.design.tokens["text.muted"]
729
- })), jn = a("ul")(({ theme: e }) => {
729
+ })), Gn = a("ul")(({ theme: e }) => {
730
730
  const { tokens: t, space: n, radii: r } = e.design;
731
731
  return {
732
732
  margin: 0,
@@ -755,7 +755,7 @@ const De = "shared", Le = {
755
755
  color: t["text.muted"]
756
756
  }
757
757
  };
758
- }), Gn = a("span")(({ theme: e }) => {
758
+ }), Un = a("span")(({ theme: e }) => {
759
759
  const { tokens: t, space: n, radii: r } = e.design;
760
760
  return {
761
761
  display: "inline-flex",
@@ -768,38 +768,38 @@ const De = "shared", Le = {
768
768
  color: t["status.warning"],
769
769
  "& svg": { width: o(n[6]), height: o(n[6]) }
770
770
  };
771
- }), Un = a("p")(({ theme: e }) => ({
771
+ }), qn = a("p")(({ theme: e }) => ({
772
772
  margin: 0,
773
773
  fontWeight: M.semibold,
774
774
  color: e.design.tokens["text.primary"]
775
- })), qn = a("p")({ margin: 0 }), Kn = a("div")(({ theme: e }) => ({
775
+ })), Kn = a("p")({ margin: 0 }), Yn = a("div")(({ theme: e }) => ({
776
776
  display: "flex",
777
777
  flexWrap: "wrap",
778
778
  alignItems: "center",
779
779
  justifyContent: "space-between",
780
780
  gap: o(e.design.space[3])
781
- })), Yn = a("span")(({ theme: e }) => ({
781
+ })), Xn = a("span")(({ theme: e }) => ({
782
782
  fontSize: o(e.design.typeScale.body),
783
783
  color: e.design.tokens["text.secondary"]
784
- })), Xn = a("li")(({ theme: e }) => ({
784
+ })), Qn = a("li")(({ theme: e }) => ({
785
785
  display: "flex",
786
786
  alignItems: "center",
787
787
  gap: o(e.design.space[2]),
788
788
  ...Ke(e)
789
- })), Qn = a("span")({
789
+ })), Zn = a("span")({
790
790
  display: "flex",
791
791
  flexDirection: "column",
792
792
  minWidth: 0
793
- }), Zn = a("span")({
793
+ }), Jn = a("span")({
794
794
  overflow: "hidden",
795
795
  textOverflow: "ellipsis",
796
796
  whiteSpace: "nowrap"
797
- }), Jn = a("span")(({ theme: e }) => ({
797
+ }), eo = a("span")(({ theme: e }) => ({
798
798
  fontSize: o(e.design.typeScale.caption),
799
799
  color: e.design.tokens["text.muted"],
800
800
  // A narrow screen wraps it: the scope and the organization tell same-named Spaces apart.
801
801
  overflowWrap: "anywhere"
802
- })), dt = a("span")(({ theme: e }) => {
802
+ })), ct = a("span")(({ theme: e }) => {
803
803
  const { tokens: t, space: n, radii: r } = e.design;
804
804
  return {
805
805
  display: "inline-flex",
@@ -812,9 +812,9 @@ const De = "shared", Le = {
812
812
  color: t["accent.text"],
813
813
  "& > svg": { width: o(n[4]), height: o(n[4]) }
814
814
  };
815
- }), eo = a(dt)(({ theme: e }) => ({
815
+ }), to = a(ct)(({ theme: e }) => ({
816
816
  marginRight: o(e.design.space[2])
817
- })), to = a("li")({ listStyle: "none" }), no = a("div")(({ theme: e }) => {
817
+ })), no = a("li")({ listStyle: "none" }), oo = a("div")(({ theme: e }) => {
818
818
  const { space: t, tokens: n, typeScale: r } = e.design;
819
819
  return {
820
820
  padding: `${o(t[2])} ${o(t[3])} ${o(t[1])}`,
@@ -824,8 +824,8 @@ const De = "shared", Le = {
824
824
  textTransform: "uppercase",
825
825
  color: n["text.muted"]
826
826
  };
827
- }), oo = a("ul")({ margin: 0, padding: 0 });
828
- function ro({
827
+ }), ro = a("ul")({ margin: 0, padding: 0 });
828
+ function io({
829
829
  cloudPicker: e,
830
830
  onImport: t,
831
831
  multiple: n = !1,
@@ -873,7 +873,7 @@ function ro({
873
873
  space: V,
874
874
  sectionKey: O,
875
875
  sectionLabel: H,
876
- label: (L == null ? void 0 : L.label) ?? Wt(V, u),
876
+ label: (L == null ? void 0 : L.label) ?? Ot(V, u),
877
877
  subtitle: L == null ? void 0 : L.subtitle,
878
878
  avatar: L == null ? void 0 : L.avatar
879
879
  };
@@ -919,9 +919,9 @@ function ro({
919
919
  /* Failed */
920
920
  );
921
921
  }
922
- }, []), bt = j(y);
922
+ }, []), yt = j(y);
923
923
  G(() => {
924
- bt.current();
924
+ yt.current();
925
925
  }, []), G(() => {
926
926
  if (x && q.some((S) => S.space.id === x.id))
927
927
  return;
@@ -932,20 +932,20 @@ function ro({
932
932
  }, [q, x]), G(() => {
933
933
  x && le(x);
934
934
  }, [x, le]);
935
- const yt = async () => {
935
+ const vt = async () => {
936
936
  if (_(!1), !await y()) {
937
937
  _(!0);
938
938
  return;
939
939
  }
940
940
  x && await le(x);
941
- }, vt = async () => {
941
+ }, xt = async () => {
942
942
  re(!0);
943
943
  try {
944
944
  await b();
945
945
  } finally {
946
946
  re(!1);
947
947
  }
948
- }, xt = {
948
+ }, wt = {
949
949
  multiple: n,
950
950
  maxSize: r,
951
951
  accept: s,
@@ -966,7 +966,7 @@ function ro({
966
966
  (S) => S.filter((N) => !T.has(X(N)))
967
967
  );
968
968
  }
969
- }, wt = g !== null && m !== null, ke = /* @__PURE__ */ i(ie, { children: /* @__PURE__ */ i(
969
+ }, kt = g !== null && m !== null, ke = /* @__PURE__ */ i(ie, { children: /* @__PURE__ */ i(
970
970
  We,
971
971
  {
972
972
  size: 32,
@@ -975,15 +975,15 @@ function ro({
975
975
  })
976
976
  }
977
977
  ) });
978
- if (!wt && (p || !h))
978
+ if (!kt && (p || !h))
979
979
  return ke;
980
980
  if (q.length === 0)
981
981
  return /* @__PURE__ */ v(ie, { children: [
982
- /* @__PURE__ */ i(Gn, { "aria-hidden": !0, children: /* @__PURE__ */ i(Ht, {}) }),
983
- /* @__PURE__ */ i(Un, { children: u.formatMessage({
982
+ /* @__PURE__ */ i(Un, { "aria-hidden": !0, children: /* @__PURE__ */ i(Bt, {}) }),
983
+ /* @__PURE__ */ i(qn, { children: u.formatMessage({
984
984
  id: "ds.business.cloud-import.create-error.title"
985
985
  }) }),
986
- /* @__PURE__ */ i(qn, { children: u.formatMessage({
986
+ /* @__PURE__ */ i(Kn, { children: u.formatMessage({
987
987
  id: "ds.business.cloud-import.create-error.description"
988
988
  }) }),
989
989
  /* @__PURE__ */ i(
@@ -992,7 +992,7 @@ function ro({
992
992
  variant: "contained",
993
993
  startIcon: /* @__PURE__ */ i(Ae, { "aria-hidden": !0 }),
994
994
  loading: W || p,
995
- onClick: () => void vt(),
995
+ onClick: () => void xt(),
996
996
  children: u.formatMessage({
997
997
  id: "ds.business.cloud-import.create-error.create-button"
998
998
  })
@@ -1001,7 +1001,7 @@ function ro({
1001
1001
  ] });
1002
1002
  if (K === null)
1003
1003
  return ke;
1004
- const kt = Rt(
1004
+ const Ct = Wt(
1005
1005
  c,
1006
1006
  K.space,
1007
1007
  K.sectionKey === De
@@ -1010,18 +1010,18 @@ function ro({
1010
1010
  }), Se = u.formatMessage({
1011
1011
  id: "ds.business.cloud-import.open-in-cloud"
1012
1012
  }), Ie = (w) => w.avatar ?? /* @__PURE__ */ i(Ae, {});
1013
- return /* @__PURE__ */ v(Nn, { children: [
1013
+ return /* @__PURE__ */ v(_n, { children: [
1014
1014
  ae && /* @__PURE__ */ i(
1015
- En,
1015
+ zn,
1016
1016
  {
1017
- severity: Je.Danger,
1017
+ severity: et.Danger,
1018
1018
  onClose: () => _(!1),
1019
1019
  children: u.formatMessage({ id: "ds.business.cloud-import.refresh-error" })
1020
1020
  }
1021
1021
  ),
1022
- /* @__PURE__ */ v(_n, { children: [
1022
+ /* @__PURE__ */ v(Vn, { children: [
1023
1023
  /* @__PURE__ */ i(
1024
- Pt,
1024
+ Ht,
1025
1025
  {
1026
1026
  fullWidth: !0,
1027
1027
  disableClearable: !0,
@@ -1039,19 +1039,19 @@ function ro({
1039
1039
  )
1040
1040
  );
1041
1041
  },
1042
- renderGroup: (w) => /* @__PURE__ */ v(to, { children: [
1043
- /* @__PURE__ */ i(no, { children: w.group }),
1044
- /* @__PURE__ */ i(oo, { children: w.children })
1042
+ renderGroup: (w) => /* @__PURE__ */ v(no, { children: [
1043
+ /* @__PURE__ */ i(oo, { children: w.group }),
1044
+ /* @__PURE__ */ i(ro, { children: w.children })
1045
1045
  ] }, w.key),
1046
- renderOption: ({ key: w, ...T }, S) => /* @__PURE__ */ v(Xn, { ...T, children: [
1047
- /* @__PURE__ */ i(dt, { "aria-hidden": !0, children: Ie(S) }),
1048
- /* @__PURE__ */ v(Qn, { children: [
1049
- /* @__PURE__ */ i(Zn, { children: S.label }),
1050
- S.subtitle !== void 0 && /* @__PURE__ */ i(Jn, { children: S.subtitle })
1046
+ renderOption: ({ key: w, ...T }, S) => /* @__PURE__ */ v(Qn, { ...T, children: [
1047
+ /* @__PURE__ */ i(ct, { "aria-hidden": !0, children: Ie(S) }),
1048
+ /* @__PURE__ */ v(Zn, { children: [
1049
+ /* @__PURE__ */ i(Jn, { children: S.label }),
1050
+ S.subtitle !== void 0 && /* @__PURE__ */ i(eo, { children: S.subtitle })
1051
1051
  ] })
1052
1052
  ] }, w),
1053
1053
  renderInput: (w) => /* @__PURE__ */ i(
1054
- Ze,
1054
+ Je,
1055
1055
  {
1056
1056
  label: u.formatMessage({
1057
1057
  id: "ds.business.cloud-import.space-label"
@@ -1063,7 +1063,7 @@ function ro({
1063
1063
  id: w.id,
1064
1064
  fullWidth: !0,
1065
1065
  inputProps: w.inputProps,
1066
- startAdornment: /* @__PURE__ */ i(eo, { "aria-hidden": !0, children: Ie(K) })
1066
+ startAdornment: /* @__PURE__ */ i(to, { "aria-hidden": !0, children: Ie(K) })
1067
1067
  }
1068
1068
  )
1069
1069
  }
@@ -1075,23 +1075,23 @@ function ro({
1075
1075
  {
1076
1076
  "aria-label": Ce,
1077
1077
  disabled: F === "loading" || p,
1078
- onClick: () => void yt(),
1079
- children: /* @__PURE__ */ i(_t, { "aria-hidden": !0 })
1078
+ onClick: () => void vt(),
1079
+ children: /* @__PURE__ */ i(Vt, { "aria-hidden": !0 })
1080
1080
  }
1081
1081
  ) }) }),
1082
1082
  /* @__PURE__ */ i(Oe, { title: Se, children: /* @__PURE__ */ i(
1083
1083
  ee,
1084
1084
  {
1085
1085
  component: "a",
1086
- href: kt,
1086
+ href: Ct,
1087
1087
  target: "_blank",
1088
1088
  rel: "noreferrer",
1089
1089
  "aria-label": Se,
1090
- children: /* @__PURE__ */ i(Nt, { "aria-hidden": !0 })
1090
+ children: /* @__PURE__ */ i(_t, { "aria-hidden": !0 })
1091
1091
  }
1092
1092
  ) })
1093
1093
  ] }),
1094
- /* @__PURE__ */ i(Vn, { children: u.formatMessage({ id: "ds.business.cloud-import.filtered-hint" }) }),
1094
+ /* @__PURE__ */ i(jn, { children: u.formatMessage({ id: "ds.business.cloud-import.filtered-hint" }) }),
1095
1095
  F === "loading" && /* @__PURE__ */ i(ie, { children: /* @__PURE__ */ i(
1096
1096
  We,
1097
1097
  {
@@ -1116,23 +1116,23 @@ function ro({
1116
1116
  /* @__PURE__ */ i(Ue, { "aria-hidden": !0 }),
1117
1117
  u.formatMessage({ id: "ds.business.cloud-import.empty-space" })
1118
1118
  ] }) : /* @__PURE__ */ i(
1119
- jn,
1119
+ Gn,
1120
1120
  {
1121
1121
  "aria-label": u.formatMessage({
1122
1122
  id: "ds.business.cloud-import.tree-label"
1123
1123
  }),
1124
1124
  children: /* @__PURE__ */ i(
1125
- lt,
1125
+ dt,
1126
1126
  {
1127
1127
  folders: C.folders,
1128
1128
  files: C.files,
1129
- context: xt
1129
+ context: wt
1130
1130
  }
1131
1131
  )
1132
1132
  }
1133
1133
  )),
1134
- /* @__PURE__ */ v(Kn, { children: [
1135
- /* @__PURE__ */ i(Yn, { role: "status", children: u.formatMessage(
1134
+ /* @__PURE__ */ v(Yn, { children: [
1135
+ /* @__PURE__ */ i(Xn, { role: "status", children: u.formatMessage(
1136
1136
  { id: "ds.business.cloud-import.selected" },
1137
1137
  { count: U.length }
1138
1138
  ) }),
@@ -1140,7 +1140,7 @@ function ro({
1140
1140
  Z,
1141
1141
  {
1142
1142
  variant: "contained",
1143
- startIcon: /* @__PURE__ */ i(Bt, { "aria-hidden": !0 }),
1143
+ startIcon: /* @__PURE__ */ i(Nt, { "aria-hidden": !0 }),
1144
1144
  disabled: U.length === 0,
1145
1145
  onClick: () => t(K.space, U),
1146
1146
  children: u.formatMessage({ id: "ds.business.cloud-import.import" })
@@ -1149,7 +1149,7 @@ function ro({
1149
1149
  ] })
1150
1150
  ] });
1151
1151
  }
1152
- function io({
1152
+ function so({
1153
1153
  open: e,
1154
1154
  onClose: t,
1155
1155
  onImport: n,
@@ -1160,14 +1160,14 @@ function io({
1160
1160
  }) {
1161
1161
  const d = z();
1162
1162
  return /* @__PURE__ */ i(
1163
- Qe,
1163
+ Ze,
1164
1164
  {
1165
1165
  open: e,
1166
1166
  onClose: t,
1167
1167
  size: xe.Medium,
1168
1168
  title: d.formatMessage({ id: "ds.business.cloud-import.title" }),
1169
1169
  children: e && /* @__PURE__ */ i(
1170
- ro,
1170
+ io,
1171
1171
  {
1172
1172
  cloudPicker: r,
1173
1173
  multiple: s,
@@ -1181,7 +1181,7 @@ function io({
1181
1181
  }
1182
1182
  );
1183
1183
  }
1184
- const so = /* @__PURE__ */ new Set(["a", "button"]), ao = a("div", {
1184
+ const ao = /* @__PURE__ */ new Set(["a", "button"]), lo = a("div", {
1185
1185
  shouldForwardProp: (e) => e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as"
1186
1186
  })(({ theme: e, ownerState: t }) => {
1187
1187
  const { tokens: n, radii: r, space: s } = e.design;
@@ -1205,7 +1205,7 @@ const so = /* @__PURE__ */ new Set(["a", "button"]), ao = a("div", {
1205
1205
  "&:focus-visible": te(e)
1206
1206
  }
1207
1207
  };
1208
- }), Jr = St(function({
1208
+ }), ei = It(function({
1209
1209
  interactive: t = !1,
1210
1210
  padding: n = 4,
1211
1211
  component: r = "div",
@@ -1215,14 +1215,14 @@ const so = /* @__PURE__ */ new Set(["a", "button"]), ao = a("div", {
1215
1215
  tabIndex: d,
1216
1216
  ...g
1217
1217
  }, m) {
1218
- const p = t && typeof r == "string" && !so.has(r), h = Q(
1218
+ const p = t && typeof r == "string" && !ao.has(r), h = Q(
1219
1219
  (b) => {
1220
1220
  typeof m == "function" ? m(b) : m !== null && (m.current = b);
1221
1221
  },
1222
1222
  [m]
1223
1223
  );
1224
1224
  return /* @__PURE__ */ i(
1225
- ao,
1225
+ lo,
1226
1226
  {
1227
1227
  ref: h,
1228
1228
  as: r,
@@ -1237,15 +1237,15 @@ const so = /* @__PURE__ */ new Set(["a", "button"]), ao = a("div", {
1237
1237
  }
1238
1238
  );
1239
1239
  });
1240
- var ct = /* @__PURE__ */ ((e) => (e.Medium = "medium", e.Compact = "compact", e))(ct || {});
1241
- const lo = Be(
1240
+ var ut = /* @__PURE__ */ ((e) => (e.Medium = "medium", e.Compact = "compact", e))(ut || {});
1241
+ const co = Be(
1242
1242
  "medium"
1243
1243
  /* Medium */
1244
- ), co = a(ce)(({ theme: e }) => ({
1244
+ ), uo = a(ce)(({ theme: e }) => ({
1245
1245
  // Three times the largest spacing step: room for a label and the arrow.
1246
1246
  minWidth: o(e.design.space[10] * 3),
1247
1247
  maxWidth: "100%"
1248
- })), uo = a(je)(({ theme: e }) => ({
1248
+ })), go = a(je)(({ theme: e }) => ({
1249
1249
  position: "relative",
1250
1250
  transform: "none",
1251
1251
  maxWidth: "100%",
@@ -1258,12 +1258,12 @@ const lo = Be(
1258
1258
  "&.Mui-focused": { color: e.design.tokens["text.secondary"] },
1259
1259
  "&.Mui-error": { color: e.design.tokens["status.danger"] },
1260
1260
  "&.Mui-disabled": { color: e.design.tokens["text.muted"] }
1261
- })), go = a("span")(({ theme: e }) => ({
1261
+ })), po = a("span")(({ theme: e }) => ({
1262
1262
  display: "flex",
1263
1263
  alignItems: "center",
1264
1264
  gap: o(e.design.space[2]),
1265
1265
  minWidth: 0
1266
- })), po = a("i", {
1266
+ })), fo = a("i", {
1267
1267
  shouldForwardProp: (e) => e !== "token"
1268
1268
  })(({ theme: e, token: t }) => ({
1269
1269
  flex: "none",
@@ -1271,11 +1271,11 @@ const lo = Be(
1271
1271
  height: o(e.design.space[2]),
1272
1272
  borderRadius: o(e.design.radii.sm / 2),
1273
1273
  backgroundColor: e.design.tokens[t]
1274
- })), fo = a("span")({
1274
+ })), mo = a("span")({
1275
1275
  display: "flex",
1276
1276
  flexDirection: "column",
1277
1277
  minWidth: 0
1278
- }), mo = a("span")(({ theme: e }) => ({
1278
+ }), ho = a("span")(({ theme: e }) => ({
1279
1279
  fontSize: o(e.design.typeScale.caption),
1280
1280
  color: e.design.tokens["text.muted"],
1281
1281
  whiteSpace: "normal"
@@ -1283,10 +1283,10 @@ const lo = Be(
1283
1283
  overflow: "hidden",
1284
1284
  textOverflow: "ellipsis",
1285
1285
  whiteSpace: "nowrap"
1286
- }), ho = a(be)(({ theme: e }) => ({
1286
+ }), bo = a(be)(({ theme: e }) => ({
1287
1287
  color: e.design.tokens["text.muted"]
1288
1288
  }));
1289
- function ei({
1289
+ function ti({
1290
1290
  label: e,
1291
1291
  options: t,
1292
1292
  value: n,
@@ -1296,19 +1296,19 @@ function ei({
1296
1296
  error: l,
1297
1297
  size: d
1298
1298
  }) {
1299
- const g = z(), m = Ne(lo), p = (d ?? m) === ct.Compact, h = p ? co : ce, y = E(), b = `${y}-label`, f = `${y}-helper`, u = new Map(t.map((k) => [k.value, k]));
1299
+ const g = z(), m = Ne(co), p = (d ?? m) === ut.Compact, h = p ? uo : ce, y = E(), b = `${y}-label`, f = `${y}-helper`, u = new Map(t.map((k) => [k.value, k]));
1300
1300
  return /* @__PURE__ */ v(h, { fullWidth: !p, disabled: c, error: !!l, children: [
1301
1301
  /* @__PURE__ */ i(
1302
- uo,
1302
+ go,
1303
1303
  {
1304
1304
  id: b,
1305
1305
  shrink: !0,
1306
- style: p ? $t : void 0,
1306
+ style: p ? Ft : void 0,
1307
1307
  children: e
1308
1308
  }
1309
1309
  ),
1310
1310
  /* @__PURE__ */ v(
1311
- Tt,
1311
+ $t,
1312
1312
  {
1313
1313
  labelId: b,
1314
1314
  multiple: s,
@@ -1316,7 +1316,7 @@ function ei({
1316
1316
  displayEmpty: !0,
1317
1317
  renderValue: (k) => {
1318
1318
  const C = Array.isArray(k) ? k : [k];
1319
- return p && C.length === 0 ? /* @__PURE__ */ i(ho, { "aria-hidden": !0, children: e }) : /* @__PURE__ */ i(be, { children: C.map((P) => {
1319
+ return p && C.length === 0 ? /* @__PURE__ */ i(bo, { "aria-hidden": !0, children: e }) : /* @__PURE__ */ i(be, { children: C.map((P) => {
1320
1320
  var F;
1321
1321
  return ((F = u.get(P)) == null ? void 0 : F.label) ?? P;
1322
1322
  }).join(", ") });
@@ -1325,12 +1325,12 @@ function ei({
1325
1325
  onChange: (k) => r(k.target.value),
1326
1326
  children: [
1327
1327
  t.length === 0 && /* @__PURE__ */ i(Fe, { disabled: !0, value: "", children: g.formatMessage({ id: "ds.inputs.rich-select.empty" }) }),
1328
- t.map((k) => /* @__PURE__ */ i(Fe, { value: k.value, children: /* @__PURE__ */ v(go, { children: [
1329
- k.tone && /* @__PURE__ */ i(po, { token: k.tone }),
1328
+ t.map((k) => /* @__PURE__ */ i(Fe, { value: k.value, children: /* @__PURE__ */ v(po, { children: [
1329
+ k.tone && /* @__PURE__ */ i(fo, { token: k.tone }),
1330
1330
  k.icon,
1331
- /* @__PURE__ */ v(fo, { children: [
1331
+ /* @__PURE__ */ v(mo, { children: [
1332
1332
  /* @__PURE__ */ i(be, { children: k.label }),
1333
- k.description && /* @__PURE__ */ i(mo, { children: k.description })
1333
+ k.description && /* @__PURE__ */ i(ho, { children: k.description })
1334
1334
  ] })
1335
1335
  ] }) }, k.value))
1336
1336
  ]
@@ -1339,7 +1339,7 @@ function ei({
1339
1339
  l && /* @__PURE__ */ i(de, { id: f, children: l })
1340
1340
  ] });
1341
1341
  }
1342
- const ti = { l: 0.72, c: 0.12 }, ni = [
1342
+ const ni = { l: 0.72, c: 0.12 }, oi = [
1343
1343
  266,
1344
1344
  296,
1345
1345
  326,
@@ -1352,7 +1352,7 @@ const ti = { l: 0.72, c: 0.12 }, ni = [
1352
1352
  176,
1353
1353
  206,
1354
1354
  236
1355
- ], ut = [
1355
+ ], gt = [
1356
1356
  "#81a2f0",
1357
1357
  "#ab94e7",
1358
1358
  "#cb89cd",
@@ -1365,25 +1365,25 @@ const ti = { l: 0.72, c: 0.12 }, ni = [
1365
1365
  "#37bda2",
1366
1366
  "#18b9c9",
1367
1367
  "#4eb0e5"
1368
- ], oi = "#767676", ri = ut[6], ii = "#111a2f", si = "#5674be", bo = /^#?([0-9a-f]{6})$/i, Y = (e) => {
1369
- const t = bo.exec(e.trim());
1368
+ ], ri = "#767676", ii = gt[6], si = "#111a2f", ai = "#5674be", yo = /^#?([0-9a-f]{6})$/i, Y = (e) => {
1369
+ const t = yo.exec(e.trim());
1370
1370
  return t ? `#${t[1].toLowerCase()}` : null;
1371
- }, yo = a("div")(({ theme: e }) => ({
1371
+ }, vo = a("div")(({ theme: e }) => ({
1372
1372
  display: "flex",
1373
1373
  alignItems: "center",
1374
1374
  gap: o(e.design.space[3])
1375
- })), vo = a("span")(({ theme: e }) => ({
1375
+ })), xo = a("span")(({ theme: e }) => ({
1376
1376
  flex: "none",
1377
1377
  width: o(e.design.densityValues[e.design.density].control),
1378
1378
  height: o(e.design.densityValues[e.design.density].control),
1379
1379
  borderRadius: o(e.design.radii.md),
1380
1380
  border: R(e.design.tokens["border.control"])
1381
- })), xo = a("div")(({ theme: e }) => ({
1381
+ })), wo = a("div")(({ theme: e }) => ({
1382
1382
  display: "flex",
1383
1383
  flexWrap: "wrap",
1384
1384
  gap: o(e.design.space[2]),
1385
1385
  marginTop: o(e.design.space[2])
1386
- })), wo = a(Ge)(({ theme: e }) => {
1386
+ })), ko = a(Ge)(({ theme: e }) => {
1387
1387
  const { densityValues: t, density: n, space: r } = e.design, s = t[n].control - r[2];
1388
1388
  return {
1389
1389
  width: o(s),
@@ -1399,11 +1399,11 @@ const ti = { l: 0.72, c: 0.12 }, ni = [
1399
1399
  }
1400
1400
  };
1401
1401
  });
1402
- function ai({
1402
+ function li({
1403
1403
  label: e,
1404
1404
  value: t,
1405
1405
  onChange: n,
1406
- swatches: r = ut
1406
+ swatches: r = gt
1407
1407
  }) {
1408
1408
  const s = z(), c = E(), [l, d] = I(t), g = l !== "" && Y(l) === null;
1409
1409
  G(() => {
@@ -1418,9 +1418,9 @@ function ai({
1418
1418
  }, p = Y(t);
1419
1419
  return /* @__PURE__ */ v(ce, { fullWidth: !0, error: g, children: [
1420
1420
  /* @__PURE__ */ i(je, { htmlFor: `${c}-hex`, children: e }),
1421
- /* @__PURE__ */ v(yo, { children: [
1421
+ /* @__PURE__ */ v(vo, { children: [
1422
1422
  /* @__PURE__ */ i(
1423
- vo,
1423
+ xo,
1424
1424
  {
1425
1425
  "aria-hidden": "true",
1426
1426
  style: { backgroundColor: p ?? void 0 }
@@ -1444,12 +1444,12 @@ function ai({
1444
1444
  ] }),
1445
1445
  g && /* @__PURE__ */ i(de, { id: `${c}-error`, children: s.formatMessage({ id: "ds.inputs.color.invalid" }) }),
1446
1446
  /* @__PURE__ */ i(
1447
- xo,
1447
+ wo,
1448
1448
  {
1449
1449
  role: "group",
1450
1450
  "aria-label": s.formatMessage({ id: "ds.inputs.color.swatches" }),
1451
1451
  children: r.map((h) => /* @__PURE__ */ i(
1452
- wo,
1452
+ ko,
1453
1453
  {
1454
1454
  "aria-pressed": Y(h) === p,
1455
1455
  "aria-label": h,
@@ -1462,10 +1462,10 @@ function ai({
1462
1462
  )
1463
1463
  ] });
1464
1464
  }
1465
- const ko = 6, Co = a("div", {
1465
+ const Co = 6, So = a("div", {
1466
1466
  shouldForwardProp: (e) => e !== "edges"
1467
1467
  })(({ theme: e, edges: t }) => {
1468
- const { tokens: n, radii: r, space: s } = e.design, c = o(s[1] * ko), l = n["text.primary"], d = t.start ? `transparent, ${l} ${c}` : l, g = t.end ? `${l} calc(100% - ${c}), transparent` : l;
1468
+ const { tokens: n, radii: r, space: s } = e.design, c = o(s[1] * Co), l = n["text.primary"], d = t.start ? `transparent, ${l} ${c}` : l, g = t.end ? `${l} calc(100% - ${c}), transparent` : l;
1469
1469
  return {
1470
1470
  maskImage: t.start || t.end ? `linear-gradient(to right, ${d}, ${g})` : "none",
1471
1471
  display: "inline-flex",
@@ -1490,7 +1490,7 @@ const ko = 6, Co = a("div", {
1490
1490
  backgroundColor: "transparent"
1491
1491
  }
1492
1492
  };
1493
- }), So = a(Ge)(({ theme: e }) => {
1493
+ }), Io = a(Ge)(({ theme: e }) => {
1494
1494
  const { tokens: t, space: n, typeScale: r, fonts: s, densityValues: c, radii: l } = e.design;
1495
1495
  return {
1496
1496
  flex: "none",
@@ -1522,12 +1522,12 @@ const ko = 6, Co = a("div", {
1522
1522
  '&[aria-checked="true"]': { backgroundColor: t["bg.raised"] }
1523
1523
  }
1524
1524
  };
1525
- }), Io = a("span")(({ theme: e }) => ({
1525
+ }), To = a("span")(({ theme: e }) => ({
1526
1526
  fontFamily: e.design.fonts.mono,
1527
1527
  fontSize: o(e.design.typeScale.caption),
1528
1528
  color: e.design.tokens["text.muted"]
1529
1529
  }));
1530
- function li({
1530
+ function di({
1531
1531
  options: e,
1532
1532
  value: t,
1533
1533
  onChange: n,
@@ -1571,7 +1571,7 @@ function li({
1571
1571
  0
1572
1572
  );
1573
1573
  return /* @__PURE__ */ i(
1574
- Co,
1574
+ So,
1575
1575
  {
1576
1576
  ref: s,
1577
1577
  role: "radiogroup",
@@ -1582,7 +1582,7 @@ function li({
1582
1582
  children: e.map((p, h) => {
1583
1583
  const y = p.value === t;
1584
1584
  return /* @__PURE__ */ v(
1585
- So,
1585
+ Io,
1586
1586
  {
1587
1587
  role: "radio",
1588
1588
  "aria-checked": y,
@@ -1590,7 +1590,7 @@ function li({
1590
1590
  onClick: () => n(p.value),
1591
1591
  children: [
1592
1592
  p.label,
1593
- p.count !== void 0 && /* @__PURE__ */ i(Io, { children: p.count })
1593
+ p.count !== void 0 && /* @__PURE__ */ i(To, { children: p.count })
1594
1594
  ]
1595
1595
  },
1596
1596
  p.value
@@ -1599,9 +1599,9 @@ function li({
1599
1599
  }
1600
1600
  );
1601
1601
  }
1602
- const To = [32, 160, 8239, 8201].map(
1602
+ const $o = [32, 160, 8239, 8201].map(
1603
1603
  (e) => String.fromCharCode(e)
1604
- ), $o = (e) => {
1604
+ ), Fo = (e) => {
1605
1605
  var n, r;
1606
1606
  const t = new Intl.NumberFormat(e).formatToParts(11111.1);
1607
1607
  return {
@@ -1609,7 +1609,7 @@ const To = [32, 160, 8239, 8201].map(
1609
1609
  decimal: ((r = t.find((s) => s.type === "decimal")) == null ? void 0 : r.value) ?? "."
1610
1610
  };
1611
1611
  }, Pe = (e, t) => {
1612
- const r = [t.group, ...To].reduce(
1612
+ const r = [t.group, ...$o].reduce(
1613
1613
  (c, l) => c.split(l).join(""),
1614
1614
  e.trim()
1615
1615
  ).replace(",", ".");
@@ -1618,7 +1618,7 @@ const To = [32, 160, 8239, 8201].map(
1618
1618
  const s = Number.parseFloat(r);
1619
1619
  return Number.isFinite(s) ? s : null;
1620
1620
  };
1621
- function di({
1621
+ function ci({
1622
1622
  label: e,
1623
1623
  value: t,
1624
1624
  onChange: n,
@@ -1628,7 +1628,7 @@ function di({
1628
1628
  adornment: l
1629
1629
  }) {
1630
1630
  const d = z(), g = ye(
1631
- () => $o(d.locale),
1631
+ () => Fo(d.locale),
1632
1632
  [d.locale]
1633
1633
  ), m = Q(
1634
1634
  (u) => u === null ? "" : d.formatNumber(u, {
@@ -1639,7 +1639,7 @@ function di({
1639
1639
  ), [p, h] = I(!1), [y, b] = I(() => m(t));
1640
1640
  return G(() => {
1641
1641
  p || b(m(t));
1642
- }, [t, p, m]), /* @__PURE__ */ i(Ze, { label: e, children: /* @__PURE__ */ i(
1642
+ }, [t, p, m]), /* @__PURE__ */ i(Je, { label: e, children: /* @__PURE__ */ i(
1643
1643
  ve,
1644
1644
  {
1645
1645
  disabled: c,
@@ -1658,20 +1658,20 @@ function di({
1658
1658
  let u = Pe(y, g);
1659
1659
  u !== null && (u = Number.parseFloat(Math.max(u, s).toFixed(r))), n(u), b(m(u));
1660
1660
  },
1661
- endAdornment: l ? /* @__PURE__ */ i(zt, { position: "end", children: l }) : void 0
1661
+ endAdornment: l ? /* @__PURE__ */ i(Dt, { position: "end", children: l }) : void 0
1662
1662
  }
1663
1663
  ) });
1664
1664
  }
1665
- const Fo = a("div")(({ theme: e }) => ({
1665
+ const Mo = a("div")(({ theme: e }) => ({
1666
1666
  display: "flex",
1667
1667
  flexDirection: "column",
1668
1668
  gap: o(e.design.space[2]),
1669
1669
  minWidth: 0
1670
- })), Mo = a("span")(({ theme: e }) => ({
1670
+ })), Ro = a("span")(({ theme: e }) => ({
1671
1671
  fontSize: o(e.design.typeScale.small),
1672
1672
  fontWeight: M.medium,
1673
1673
  color: e.design.tokens["text.secondary"]
1674
- })), Ro = a("div", {
1674
+ })), Wo = a("div", {
1675
1675
  shouldForwardProp: (e) => e !== "active"
1676
1676
  })(({ theme: e, active: t }) => {
1677
1677
  const { tokens: n, space: r, radii: s } = e.design;
@@ -1693,7 +1693,7 @@ const Fo = a("div")(({ theme: e }) => ({
1693
1693
  transition: oe(e, ["border-color", "background-color"]),
1694
1694
  "&:hover": { borderColor: n.accent }
1695
1695
  };
1696
- }), Wo = a("span")(({ theme: e }) => {
1696
+ }), Oo = a("span")(({ theme: e }) => {
1697
1697
  const { tokens: t, space: n } = e.design;
1698
1698
  return {
1699
1699
  display: "inline-flex",
@@ -1706,30 +1706,30 @@ const Fo = a("div")(({ theme: e }) => ({
1706
1706
  color: t["accent.text"],
1707
1707
  "& svg": { width: o(n[5]), height: o(n[5]) }
1708
1708
  };
1709
- }), Oo = a("span")(({ theme: e }) => ({
1709
+ }), Ao = a("span")(({ theme: e }) => ({
1710
1710
  fontSize: o(e.design.typeScale.body),
1711
1711
  [B.down($.Tablet)]: { display: "none" }
1712
- })), Ao = a("div")(({ theme: e }) => ({
1712
+ })), Eo = a("div")(({ theme: e }) => ({
1713
1713
  display: "flex",
1714
1714
  flexWrap: "wrap",
1715
1715
  alignItems: "center",
1716
1716
  justifyContent: "space-between",
1717
1717
  gap: o(e.design.space[2])
1718
- })), Eo = a("span")(({ theme: e }) => ({
1718
+ })), zo = a("span")(({ theme: e }) => ({
1719
1719
  fontSize: o(e.design.typeScale.small),
1720
1720
  color: e.design.tokens["text.muted"]
1721
- })), zo = a("p")(({ theme: e }) => ({
1721
+ })), Do = a("p")(({ theme: e }) => ({
1722
1722
  margin: 0,
1723
1723
  fontSize: o(e.design.typeScale.small),
1724
1724
  color: e.design.tokens["status.danger"]
1725
- })), Do = a("img")(({ theme: e }) => ({
1725
+ })), Lo = a("img")(({ theme: e }) => ({
1726
1726
  width: o(e.design.space[4]),
1727
1727
  height: o(e.design.space[4])
1728
- })), Lo = (e) => {
1729
- const { value: t, unit: n } = Dt(e);
1728
+ })), Po = (e) => {
1729
+ const { value: t, unit: n } = Lt(e);
1730
1730
  return `${t} ${n}`;
1731
1731
  };
1732
- function ci({
1732
+ function ui({
1733
1733
  onDrop: e,
1734
1734
  multiple: t = !0,
1735
1735
  accept: n,
@@ -1739,13 +1739,13 @@ function ci({
1739
1739
  cloudImport: l,
1740
1740
  children: d
1741
1741
  }) {
1742
- const g = z(), m = E(), p = E(), [h, y] = I(null), [b, f] = I(!1), u = r === void 0 ? null : Lo(r), x = s ?? (u === null ? null : g.formatMessage(
1742
+ const g = z(), m = E(), p = E(), [h, y] = I(null), [b, f] = I(!1), u = r === void 0 ? null : Po(r), x = s ?? (u === null ? null : g.formatMessage(
1743
1743
  { id: "ds.inputs.drop-zone.max-size" },
1744
1744
  { size: u, multiple: String(t) }
1745
1745
  )), k = (A, W) => {
1746
1746
  const re = r === void 0 ? [] : A.filter((_) => _.size > r), ae = A.filter((_) => !re.includes(_));
1747
1747
  W.some(
1748
- (_) => _.errors.some((q) => q.code === Et.TooManyFiles)
1748
+ (_) => _.errors.some((q) => q.code === zt.TooManyFiles)
1749
1749
  ) ? y(
1750
1750
  "too-many"
1751
1751
  /* TooMany */
@@ -1756,7 +1756,7 @@ function ci({
1756
1756
  A.length === 1 ? "too-big" : "some-too-big"
1757
1757
  /* SomeTooBig */
1758
1758
  ) : y(null), ae.length > 0 && e(ae);
1759
- }, { getRootProps: C, getInputProps: P, isDragActive: F, open: D } = Ot({
1759
+ }, { getRootProps: C, getInputProps: P, isDragActive: F, open: D } = At({
1760
1760
  onDrop: k,
1761
1761
  multiple: t,
1762
1762
  accept: n,
@@ -1768,18 +1768,18 @@ function ci({
1768
1768
  { multiple: String(t) }
1769
1769
  );
1770
1770
  return /* @__PURE__ */ v(
1771
- Fo,
1771
+ Mo,
1772
1772
  {
1773
1773
  role: "group",
1774
1774
  "aria-labelledby": c !== void 0 ? m : void 0,
1775
1775
  "aria-describedby": x !== null ? p : void 0,
1776
1776
  children: [
1777
- c !== void 0 && /* @__PURE__ */ i(Mo, { id: m, children: c }),
1778
- /* @__PURE__ */ v(Ro, { ...C({ onClick: D }), active: F, children: [
1777
+ c !== void 0 && /* @__PURE__ */ i(Ro, { id: m, children: c }),
1778
+ /* @__PURE__ */ v(Wo, { ...C({ onClick: D }), active: F, children: [
1779
1779
  /* @__PURE__ */ i("input", { ...P({ "aria-hidden": !0 }) }),
1780
1780
  d ?? /* @__PURE__ */ v(ne, { children: [
1781
- /* @__PURE__ */ i(Wo, { "aria-hidden": !0, children: /* @__PURE__ */ i(Lt, {}) }),
1782
- /* @__PURE__ */ i(Oo, { children: g.formatMessage(
1781
+ /* @__PURE__ */ i(Oo, { "aria-hidden": !0, children: /* @__PURE__ */ i(Pt, {}) }),
1782
+ /* @__PURE__ */ i(Ao, { children: g.formatMessage(
1783
1783
  {
1784
1784
  id: F ? "ds.inputs.drop-zone.release" : "ds.inputs.drop-zone.prompt"
1785
1785
  },
@@ -1797,24 +1797,24 @@ function ci({
1797
1797
  }
1798
1798
  )
1799
1799
  ] }),
1800
- (l !== void 0 || x !== null) && /* @__PURE__ */ v(Ao, { children: [
1800
+ (l !== void 0 || x !== null) && /* @__PURE__ */ v(Eo, { children: [
1801
1801
  l !== void 0 && /* @__PURE__ */ i(
1802
1802
  Z,
1803
1803
  {
1804
1804
  variant: "text",
1805
- startIcon: /* @__PURE__ */ i(Do, { src: At, alt: "" }),
1805
+ startIcon: /* @__PURE__ */ i(Lo, { src: Et, alt: "" }),
1806
1806
  onClick: () => f(!0),
1807
1807
  children: g.formatMessage({ id: "ds.inputs.drop-zone.cloud" })
1808
1808
  }
1809
1809
  ),
1810
- x !== null && /* @__PURE__ */ i(Eo, { id: p, children: x })
1810
+ x !== null && /* @__PURE__ */ i(zo, { id: p, children: x })
1811
1811
  ] }),
1812
- /* @__PURE__ */ i(zo, { role: "alert", children: h !== null && g.formatMessage(
1812
+ /* @__PURE__ */ i(Do, { role: "alert", children: h !== null && g.formatMessage(
1813
1813
  { id: `ds.inputs.drop-zone.${h}` },
1814
1814
  { size: u ?? "" }
1815
1815
  ) }),
1816
1816
  l !== void 0 && /* @__PURE__ */ i(
1817
- io,
1817
+ so,
1818
1818
  {
1819
1819
  open: b,
1820
1820
  onClose: () => f(!1),
@@ -1832,22 +1832,22 @@ function ci({
1832
1832
  }
1833
1833
  );
1834
1834
  }
1835
- var Po = /* @__PURE__ */ ((e) => (e.Default = "default", e.Danger = "danger", e.Warning = "warning", e))(Po || {});
1836
- const Ho = a("form")(({ theme: e }) => ({
1835
+ var Ho = /* @__PURE__ */ ((e) => (e.Default = "default", e.Danger = "danger", e.Warning = "warning", e))(Ho || {});
1836
+ const Bo = a("form")(({ theme: e }) => ({
1837
1837
  display: "flex",
1838
1838
  flexDirection: "column",
1839
1839
  gap: o(e.design.space[4]),
1840
1840
  color: e.design.tokens["text.secondary"],
1841
1841
  overflowWrap: "anywhere"
1842
- })), Bo = (e, t) => {
1842
+ })), No = (e, t) => {
1843
1843
  const { paper: n } = e.design.tokens, r = e.design.tokens["paper.on"];
1844
1844
  return $e(t, n) >= $e(t, r) ? n : r;
1845
- }, No = {
1845
+ }, _o = {
1846
1846
  default: "primary",
1847
1847
  danger: "error",
1848
1848
  warning: "warning"
1849
1849
  };
1850
- function _o({
1850
+ function Vo({
1851
1851
  open: e,
1852
1852
  title: t,
1853
1853
  body: n,
@@ -1882,7 +1882,7 @@ function _o({
1882
1882
  W.preventDefault(), U();
1883
1883
  };
1884
1884
  return /* @__PURE__ */ i(
1885
- Qe,
1885
+ Ze,
1886
1886
  {
1887
1887
  open: e,
1888
1888
  onClose: D,
@@ -1905,13 +1905,13 @@ function _o({
1905
1905
  type: "submit",
1906
1906
  form: p,
1907
1907
  variant: "contained",
1908
- color: No[s],
1908
+ color: _o[s],
1909
1909
  disabled: !P,
1910
1910
  loading: b,
1911
1911
  autoFocus: c === void 0 && !F,
1912
1912
  sx: s === "warning" ? {
1913
1913
  "&:not(.Mui-disabled)": {
1914
- color: Bo(
1914
+ color: No(
1915
1915
  m,
1916
1916
  m.design.tokens["status.warning"]
1917
1917
  )
@@ -1921,10 +1921,10 @@ function _o({
1921
1921
  }
1922
1922
  )
1923
1923
  ] }),
1924
- children: /* @__PURE__ */ v(Ho, { id: p, onSubmit: A, noValidate: !0, children: [
1924
+ children: /* @__PURE__ */ v(Bo, { id: p, onSubmit: A, noValidate: !0, children: [
1925
1925
  /* @__PURE__ */ i("div", { children: n }),
1926
1926
  c !== void 0 && /* @__PURE__ */ i(
1927
- tn,
1927
+ nn,
1928
1928
  {
1929
1929
  label: g.formatMessage(
1930
1930
  { id: "ds.layers.confirm-dialog.type-to-confirm" },
@@ -1938,13 +1938,13 @@ function _o({
1938
1938
  fullWidth: !0
1939
1939
  }
1940
1940
  ),
1941
- u && /* @__PURE__ */ i(en, { severity: "error", children: g.formatMessage({ id: "ds.layers.confirm-dialog.failed" }) })
1941
+ u && /* @__PURE__ */ i(tn, { severity: "error", children: g.formatMessage({ id: "ds.layers.confirm-dialog.failed" }) })
1942
1942
  ] })
1943
1943
  }
1944
1944
  );
1945
1945
  }
1946
- var Vo = /* @__PURE__ */ ((e) => (e.BottomStart = "bottom-start", e.BottomEnd = "bottom-end", e))(Vo || {});
1947
- const jo = 320, Go = a("div")(({ theme: e }) => {
1946
+ var jo = /* @__PURE__ */ ((e) => (e.BottomStart = "bottom-start", e.BottomEnd = "bottom-end", e))(jo || {});
1947
+ const Go = 320, Uo = a("div")(({ theme: e }) => {
1948
1948
  const { tokens: t, space: n } = e.design;
1949
1949
  return {
1950
1950
  flex: "none",
@@ -1955,47 +1955,47 @@ const jo = 320, Go = a("div")(({ theme: e }) => {
1955
1955
  padding: `${o(n[2])} ${o(n[2])} ${o(n[2])} ${o(n[4])}`,
1956
1956
  borderBottom: R(t["border.subtle"])
1957
1957
  };
1958
- }), Uo = a("h2")(({ theme: e }) => ({
1958
+ }), qo = a("h2")(({ theme: e }) => ({
1959
1959
  margin: 0,
1960
1960
  minWidth: 0,
1961
1961
  color: e.design.tokens["text.primary"],
1962
1962
  fontSize: o(e.design.typeScale.body),
1963
1963
  fontWeight: M.semibold,
1964
1964
  overflowWrap: "anywhere"
1965
- })), gt = a("div")(({ theme: e }) => ({
1965
+ })), pt = a("div")(({ theme: e }) => ({
1966
1966
  display: "flex",
1967
1967
  flexDirection: "column",
1968
1968
  gap: o(e.design.space[3]),
1969
1969
  fontSize: o(e.design.typeScale.body)
1970
- })), qo = a(gt)(({ theme: e }) => ({
1970
+ })), Ko = a(pt)(({ theme: e }) => ({
1971
1971
  padding: o(e.design.space[4])
1972
1972
  }));
1973
- function ui({
1973
+ function gi({
1974
1974
  anchorEl: e,
1975
1975
  open: t,
1976
1976
  onClose: n,
1977
1977
  title: r,
1978
1978
  placement: s = "bottom-start",
1979
- width: c = jo,
1979
+ width: c = Go,
1980
1980
  children: l
1981
1981
  }) {
1982
- const d = z(), g = E(), m = Ye() === $.Mobile, p = d.formatMessage({
1982
+ const d = z(), g = E(), m = Xe() === $.Mobile, p = d.formatMessage({
1983
1983
  id: "ds.layers.anchored-panel.close"
1984
1984
  }), h = t && e !== null;
1985
1985
  if (m)
1986
1986
  return /* @__PURE__ */ i(
1987
- Xe,
1987
+ Qe,
1988
1988
  {
1989
1989
  open: h,
1990
1990
  onClose: n,
1991
1991
  title: r,
1992
1992
  closeLabel: p,
1993
- children: /* @__PURE__ */ i(gt, { children: l })
1993
+ children: /* @__PURE__ */ i(pt, { children: l })
1994
1994
  }
1995
1995
  );
1996
1996
  const y = s === "bottom-end" ? "right" : "left";
1997
1997
  return /* @__PURE__ */ v(
1998
- Jt,
1998
+ en,
1999
1999
  {
2000
2000
  anchorEl: e,
2001
2001
  open: h,
@@ -2017,17 +2017,17 @@ function ui({
2017
2017
  }
2018
2018
  },
2019
2019
  children: [
2020
- /* @__PURE__ */ v(Go, { children: [
2021
- /* @__PURE__ */ i(Uo, { id: g, children: r }),
2020
+ /* @__PURE__ */ v(Uo, { children: [
2021
+ /* @__PURE__ */ i(qo, { id: g, children: r }),
2022
2022
  /* @__PURE__ */ i(ee, { "aria-label": p, onClick: n, children: /* @__PURE__ */ i(ue, { "aria-hidden": !0 }) })
2023
2023
  ] }),
2024
- /* @__PURE__ */ i(qo, { children: l })
2024
+ /* @__PURE__ */ i(Ko, { children: l })
2025
2025
  ]
2026
2026
  }
2027
2027
  );
2028
2028
  }
2029
- const pt = Be(null);
2030
- function gi({ children: e }) {
2029
+ const ft = Be(null);
2030
+ function pi({ children: e }) {
2031
2031
  const [t, n] = I([]), [r, s] = I(null), c = j(0), l = j([]);
2032
2032
  l.current = t;
2033
2033
  const d = t.length > 0 ? t[0] : null;
@@ -2047,11 +2047,11 @@ function gi({ children: e }) {
2047
2047
  ), m = (h) => {
2048
2048
  d !== null && (d.resolve(h), n((y) => y.filter((b) => b !== d)));
2049
2049
  }, p = ye(() => ({ confirm: g }), [g]);
2050
- return /* @__PURE__ */ v(pt.Provider, { value: p, children: [
2050
+ return /* @__PURE__ */ v(ft.Provider, { value: p, children: [
2051
2051
  e,
2052
2052
  r !== null && // A new key per request: each one starts from an empty confirmation field.
2053
2053
  /* @__PURE__ */ i(
2054
- _o,
2054
+ Vo,
2055
2055
  {
2056
2056
  open: d === r,
2057
2057
  ...r.options,
@@ -2062,18 +2062,18 @@ function gi({ children: e }) {
2062
2062
  )
2063
2063
  ] });
2064
2064
  }
2065
- function pi() {
2066
- const e = Ne(pt);
2065
+ function fi() {
2066
+ const e = Ne(ft);
2067
2067
  if (e === null)
2068
2068
  throw new Error(
2069
2069
  "useConfirmDialog must be called inside a ConfirmDialogProvider"
2070
2070
  );
2071
2071
  return e;
2072
2072
  }
2073
- const Ko = 1, Yo = (e, t) => t === "vertical" ? e.scrollHeight - e.clientHeight - e.scrollTop : e.scrollWidth - e.clientWidth - e.scrollLeft, Xo = (e, t, n) => {
2073
+ const Yo = 1, Xo = (e, t) => t === "vertical" ? e.scrollHeight - e.clientHeight - e.scrollTop : e.scrollWidth - e.clientWidth - e.scrollLeft, Qo = (e, t, n) => {
2074
2074
  const [r, s] = I(!1), c = Q(() => {
2075
2075
  const l = e.current;
2076
- l !== null && s(Yo(l, t) > Ko);
2076
+ l !== null && s(Xo(l, t) > Yo);
2077
2077
  }, [e, t]);
2078
2078
  return _e(c, [c, n]), G(() => {
2079
2079
  const l = e.current;
@@ -2086,19 +2086,19 @@ const Ko = 1, Yo = (e, t) => t === "vertical" ? e.scrollHeight - e.clientHeight
2086
2086
  };
2087
2087
  }, [e, c, n]), r;
2088
2088
  };
2089
- var Qo = /* @__PURE__ */ ((e) => (e.Primary = "primary", e.Secondary = "secondary", e))(Qo || {});
2090
- const Zo = 2, Jo = /* @__PURE__ */ new Set(["Enter", " "]), er = a("div", {
2089
+ var Zo = /* @__PURE__ */ ((e) => (e.Primary = "primary", e.Secondary = "secondary", e))(Zo || {});
2090
+ const Jo = 2, er = /* @__PURE__ */ new Set(["Enter", " "]), tr = a("div", {
2091
2091
  shouldForwardProp: (e) => e !== "variant"
2092
2092
  })(({ theme: e, variant: t }) => ({
2093
2093
  minWidth: 0,
2094
2094
  ...t === "primary" && {
2095
2095
  borderBottom: R(e.design.tokens["border.subtle"])
2096
2096
  }
2097
- })), ft = 32, tr = a("div", {
2097
+ })), mt = 32, nr = a("div", {
2098
2098
  shouldForwardProp: (e) => e !== "variant" && e !== "fade"
2099
2099
  })(({ theme: e, variant: t, fade: n }) => {
2100
2100
  const s = `linear-gradient(to right, ${e.design.tokens["text.primary"]} calc(100% - ${o(
2101
- ft
2101
+ mt
2102
2102
  )}), transparent)`;
2103
2103
  return {
2104
2104
  position: "relative",
@@ -2110,7 +2110,7 @@ const Zo = 2, Jo = /* @__PURE__ */ new Set(["Enter", " "]), er = a("div", {
2110
2110
  "&::-webkit-scrollbar": { display: "none" },
2111
2111
  ...n && { maskImage: s, WebkitMaskImage: s }
2112
2112
  };
2113
- }), mt = (e, t) => {
2113
+ }), ht = (e, t) => {
2114
2114
  const { tokens: n, space: r, radii: s, typeScale: c, fonts: l, densityValues: d, density: g } = e.design, m = {
2115
2115
  position: "relative",
2116
2116
  display: "inline-flex",
@@ -2150,7 +2150,7 @@ const Zo = 2, Jo = /* @__PURE__ */ new Set(["Enter", " "]), er = a("div", {
2150
2150
  left: 0,
2151
2151
  right: 0,
2152
2152
  bottom: 0,
2153
- height: o(Zo),
2153
+ height: o(Jo),
2154
2154
  backgroundColor: n.accent
2155
2155
  },
2156
2156
  ...p
@@ -2171,7 +2171,7 @@ const Zo = 2, Jo = /* @__PURE__ */ new Set(["Enter", " "]), er = a("div", {
2171
2171
  },
2172
2172
  ...p
2173
2173
  };
2174
- }, ht = (e) => e !== "variant", nr = a(sn, { shouldForwardProp: ht })(({ theme: e, variant: t }) => mt(e, t)), or = a("button", { shouldForwardProp: ht })(({ theme: e, variant: t }) => mt(e, t)), rr = a("span")(({ theme: e }) => {
2174
+ }, bt = (e) => e !== "variant", or = a(an, { shouldForwardProp: bt })(({ theme: e, variant: t }) => ht(e, t)), rr = a("button", { shouldForwardProp: bt })(({ theme: e, variant: t }) => ht(e, t)), ir = a("span")(({ theme: e }) => {
2175
2175
  const { tokens: t, space: n, radii: r, fonts: s, typeScale: c } = e.design;
2176
2176
  return {
2177
2177
  display: "inline-flex",
@@ -2186,17 +2186,17 @@ const Zo = 2, Jo = /* @__PURE__ */ new Set(["Enter", " "]), er = a("div", {
2186
2186
  color: t["text.muted"]
2187
2187
  };
2188
2188
  }), He = (e, t) => {
2189
- const n = t.offsetLeft, r = n + t.offsetWidth + ft;
2189
+ const n = t.offsetLeft, r = n + t.offsetWidth + mt;
2190
2190
  n < e.scrollLeft ? e.scrollLeft = n : r > e.scrollLeft + e.clientWidth && (e.scrollLeft = r - e.clientWidth);
2191
2191
  };
2192
- function fi({
2192
+ function mi({
2193
2193
  items: e,
2194
2194
  value: t,
2195
2195
  onChange: n,
2196
2196
  variant: r,
2197
2197
  "aria-label": s
2198
2198
  }) {
2199
- const c = z(), l = j(null), d = e.filter((f) => f.hidden !== !0), g = Xo(l, "horizontal", d.length), m = Q(
2199
+ const c = z(), l = j(null), d = e.filter((f) => f.hidden !== !0), g = Qo(l, "horizontal", d.length), m = Q(
2200
2200
  () => {
2201
2201
  var f;
2202
2202
  return Array.from(
@@ -2221,7 +2221,7 @@ function fi({
2221
2221
  const u = m(), x = u.findIndex((C) => C === document.activeElement);
2222
2222
  if (x < 0)
2223
2223
  return;
2224
- if (Jo.has(f.key)) {
2224
+ if (er.has(f.key)) {
2225
2225
  f.key === " " && u[x] instanceof HTMLAnchorElement && (f.preventDefault(), u[x].click());
2226
2226
  return;
2227
2227
  }
@@ -2247,8 +2247,8 @@ function fi({
2247
2247
  d.findIndex((f) => f.value === t),
2248
2248
  0
2249
2249
  );
2250
- return /* @__PURE__ */ i(er, { variant: r, children: /* @__PURE__ */ i(
2251
- tr,
2250
+ return /* @__PURE__ */ i(tr, { variant: r, children: /* @__PURE__ */ i(
2251
+ nr,
2252
2252
  {
2253
2253
  ref: l,
2254
2254
  role: "tablist",
@@ -2260,7 +2260,7 @@ function fi({
2260
2260
  children: d.map((f, u) => {
2261
2261
  const x = f.value === t, k = /* @__PURE__ */ v(ne, { children: [
2262
2262
  f.label,
2263
- f.badge !== void 0 && /* @__PURE__ */ i(rr, { children: typeof f.badge == "number" ? c.formatNumber(f.badge) : f.badge })
2263
+ f.badge !== void 0 && /* @__PURE__ */ i(ir, { children: typeof f.badge == "number" ? c.formatNumber(f.badge) : f.badge })
2264
2264
  ] }), C = {
2265
2265
  role: "tab",
2266
2266
  "aria-selected": x,
@@ -2270,7 +2270,7 @@ function fi({
2270
2270
  onClick: () => n == null ? void 0 : n(f.value)
2271
2271
  };
2272
2272
  return f.to !== void 0 ? /* @__PURE__ */ i(
2273
- nr,
2273
+ or,
2274
2274
  {
2275
2275
  to: f.to,
2276
2276
  "aria-current": x ? "page" : void 0,
@@ -2278,58 +2278,58 @@ function fi({
2278
2278
  children: k
2279
2279
  },
2280
2280
  f.value
2281
- ) : /* @__PURE__ */ i(or, { type: "button", ...C, children: k }, f.value);
2281
+ ) : /* @__PURE__ */ i(rr, { type: "button", ...C, children: k }, f.value);
2282
2282
  })
2283
2283
  }
2284
2284
  ) });
2285
2285
  }
2286
2286
  export {
2287
- Vo as A,
2288
- Xe as B,
2289
- En as C,
2287
+ jo as A,
2288
+ Qe as B,
2289
+ zn as C,
2290
2290
  $ as D,
2291
- ui as E,
2292
- Ze as F,
2293
- gi as G,
2294
- pi as H,
2295
- io as I,
2296
- fi as J,
2297
- ti as K,
2298
- ni as L,
2299
- Qe as M,
2300
- di as N,
2301
- ut as O,
2302
- oi as P,
2303
- ri as Q,
2304
- lo as R,
2291
+ gi as E,
2292
+ Je as F,
2293
+ pi as G,
2294
+ fi as H,
2295
+ so as I,
2296
+ mi as J,
2297
+ ni as K,
2298
+ oi as L,
2299
+ Ze as M,
2300
+ ci as N,
2301
+ gt as O,
2302
+ ri as P,
2303
+ ii as Q,
2304
+ co as R,
2305
2305
  J as S,
2306
- Qo as T,
2307
- ii as U,
2308
- si as V,
2306
+ Zo as T,
2307
+ si as U,
2308
+ ai as V,
2309
2309
  xe as a,
2310
2310
  dn as b,
2311
2311
  oe as c,
2312
2312
  B as d,
2313
- Je as e,
2313
+ et as e,
2314
2314
  te as f,
2315
- Jr as g,
2315
+ ei as g,
2316
2316
  R as h,
2317
- Qr as i,
2318
- ln as j,
2319
- Xo as k,
2320
- ct as l,
2321
- ro as m,
2322
- ei as n,
2317
+ Ye as i,
2318
+ Zr as j,
2319
+ Qo as k,
2320
+ ut as l,
2321
+ io as m,
2322
+ ti as n,
2323
2323
  Y as o,
2324
2324
  o as p,
2325
- ai as q,
2326
- Zr as r,
2325
+ li as q,
2326
+ Jr as r,
2327
2327
  ge as s,
2328
2328
  Ke as t,
2329
- Ye as u,
2330
- li as v,
2329
+ Xe as u,
2330
+ di as v,
2331
2331
  se as w,
2332
- ci as x,
2333
- Po as y,
2334
- _o as z
2332
+ ui as x,
2333
+ Ho as y,
2334
+ Vo as z
2335
2335
  };