@carto/meridian-ds 0.1.0 → 0.1.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,45 +1,29 @@
1
- import { j as e } from "../jsx-runtime-B6kdoens.js";
2
- import { Button as W, styled as c, Box as C, TextField as U, InputAdornment as R, IconButton as F, Select as X, MenuItem as O, FormControl as tt, InputLabel as et, FormHelperText as nt, ToggleButtonGroup as ot, Menu as rt, MenuList as it, Link as at, Checkbox as q, ListItemText as N, Tooltip as lt, CircularProgress as st, Accordion as ct, AccordionSummary as dt, AccordionDetails as ut, createFilterOptions as pt, Autocomplete as gt, Divider as D, ListItemIcon as V, Avatar as xt, alpha as ft, AppBar as mt, Toolbar as ht } from "@mui/material";
3
- import * as z from "react";
4
- import { forwardRef as P, useState as w, useEffect as Y, useMemo as Z, useRef as Mt, Fragment as yt } from "react";
5
- import { T, u as k } from "../Alert-Dd9Op7y8.js";
6
- import { A as tn, a as en } from "../Alert-Dd9Op7y8.js";
7
- import { q as bt, T as vt, t as jt, n as S, s as G, A as Tt } from "../createSvgIcon-CcKa-Sbo.js";
8
- import { VisibilityOutlined as It, VisibilityOffOutlined as Bt, Cancel as J, AddCircleOutlineOutlined as At, MenuOutlined as St } from "@mui/icons-material";
9
- import { useIntl as L } from "react-intl";
10
- import { ThemeContext as Ct } from "@emotion/react";
11
- function Ft(t) {
12
- return Object.keys(t).length === 0;
1
+ import { jsx as o, jsxs as y, Fragment as G } from "react/jsx-runtime";
2
+ import { Button as q, styled as d, Box as w, TextField as z, InputAdornment as _, IconButton as P, Select as tt, MenuItem as V, FormControl as et, InputLabel as nt, FormHelperText as ot, ToggleButtonGroup as rt, Menu as it, MenuList as at, Link as lt, Checkbox as N, ListItemText as Y, Tooltip as st, CircularProgress as dt, Accordion as ct, AccordionSummary as ut, AccordionDetails as pt, createFilterOptions as gt, Autocomplete as ft, Divider as D, ListItemIcon as U, Avatar as mt, alpha as ht, AppBar as Mt, Toolbar as yt } from "@mui/material";
3
+ import { forwardRef as k, useState as L, useEffect as Z, useMemo as J, useRef as bt, Fragment as vt } from "react";
4
+ import { T, u as $ } from "../Alert-BawVDNyY.js";
5
+ import { A as Ne, a as Ye } from "../Alert-BawVDNyY.js";
6
+ import { b as F, A as xt } from "../theme-constants-DL1946wP.js";
7
+ import { VisibilityOutlined as It, VisibilityOffOutlined as Bt, Cancel as K, AddCircleOutlineOutlined as Tt, MenuOutlined as At } from "@mui/icons-material";
8
+ import { useIntl as E } from "react-intl";
9
+ import { styled as H, useTheme as Q } from "@mui/material/styles";
10
+ function St({ children: t, ...e }, n) {
11
+ return /* @__PURE__ */ o(q, { ...e, ref: n, children: /* @__PURE__ */ o(T, { variant: "inherit", color: "inherit", noWrap: !0, component: "span", children: t }) });
13
12
  }
14
- function wt(t = null) {
15
- const n = z.useContext(Ct);
16
- return !n || Ft(n) ? t : n;
17
- }
18
- const Pt = bt();
19
- function kt(t = Pt) {
20
- return wt(t);
21
- }
22
- function K() {
23
- const t = kt(jt);
24
- return process.env.NODE_ENV !== "production" && z.useDebugValue(t), t[vt] || t;
25
- }
26
- function Lt({ children: t, ...n }, o) {
27
- return /* @__PURE__ */ e.jsx(W, { ...n, ref: o, children: /* @__PURE__ */ e.jsx(T, { variant: "inherit", color: "inherit", noWrap: !0, component: "span", children: t }) });
28
- }
29
- const Ge = P(Lt), $t = c(C)(({ theme: t }) => ({
13
+ const ke = k(St), Ct = d(w)(({ theme: t }) => ({
30
14
  display: "flex",
31
15
  alignItems: "center",
32
16
  gap: t.spacing(0.5)
33
- })), Et = c(T)(({ theme: t }) => ({
17
+ })), Ft = d(T)(({ theme: t }) => ({
34
18
  ".Mui-disabled &": {
35
19
  color: t.palette.text.disabled
36
20
  }
37
- })), Dt = c(C)(({ theme: t }) => ({
21
+ })), wt = d(w)(({ theme: t }) => ({
38
22
  display: "flex",
39
23
  svg: {
40
- width: S,
41
- height: S,
42
- fontSize: S,
24
+ width: F,
25
+ height: F,
26
+ fontSize: F,
43
27
  path: {
44
28
  fill: t.palette.text.secondary,
45
29
  ".Mui-disabled &": {
@@ -48,50 +32,50 @@ const Ge = P(Lt), $t = c(C)(({ theme: t }) => ({
48
32
  }
49
33
  }
50
34
  }));
51
- function _e({
35
+ function $e({
52
36
  label: t,
53
- type: n,
54
- icon: o,
37
+ type: e,
38
+ icon: n,
55
39
  inheritSize: r
56
40
  }) {
57
- return /* @__PURE__ */ e.jsxs($t, { children: [
41
+ return /* @__PURE__ */ y(Ct, { children: [
58
42
  t,
59
- n && /* @__PURE__ */ e.jsx(
60
- Et,
43
+ e && /* @__PURE__ */ o(
44
+ Ft,
61
45
  {
62
46
  component: "span",
63
47
  variant: r ? "inherit" : "caption",
64
48
  color: "textSecondary",
65
49
  weight: "regular",
66
- children: n === "required" ? "(required)" : "(optional)"
50
+ children: e === "required" ? "(required)" : "(optional)"
67
51
  }
68
52
  ),
69
- o && /* @__PURE__ */ e.jsx(Dt, { children: o })
53
+ n && /* @__PURE__ */ o(wt, { children: n })
70
54
  ] });
71
55
  }
72
- function Rt({ InputProps: t, size: n = "small", ...o }, r) {
73
- const [i, l] = w(!1), s = () => l(!i);
74
- return /* @__PURE__ */ e.jsx(
75
- U,
56
+ function Pt({ InputProps: t, size: e = "small", ...n }, r) {
57
+ const [i, l] = L(!1);
58
+ return /* @__PURE__ */ o(
59
+ z,
76
60
  {
77
- ...o,
61
+ ...n,
78
62
  ref: r,
79
63
  type: i ? "text" : "password",
80
- size: n,
64
+ size: e,
81
65
  InputProps: {
82
66
  ...t,
83
- endAdornment: /* @__PURE__ */ e.jsx(R, { position: "end", children: /* @__PURE__ */ e.jsx(F, { size: n, onClick: s, children: i ? /* @__PURE__ */ e.jsx(It, {}) : /* @__PURE__ */ e.jsx(Bt, {}) }) })
67
+ endAdornment: /* @__PURE__ */ o(_, { position: "end", children: /* @__PURE__ */ o(P, { size: e, onClick: () => l(!i), children: i ? /* @__PURE__ */ o(It, {}) : /* @__PURE__ */ o(Bt, {}) }) })
84
68
  }
85
69
  }
86
70
  );
87
71
  }
88
- const Ve = P(Rt), E = {};
89
- function Ot(t = "$lodash$") {
90
- E[t] || (E[t] = 0);
91
- const n = ++E[t];
92
- return t === "$lodash$" ? `${n}` : `${t}${n}`;
72
+ const Ee = k(Pt), O = {};
73
+ function Lt(t = "$lodash$") {
74
+ O[t] || (O[t] = 0);
75
+ const e = ++O[t];
76
+ return t === "$lodash$" ? `${e}` : `${t}${e}`;
93
77
  }
94
- const Gt = c(X)(({ theme: t }) => ({
78
+ const kt = d(tt)(({ theme: t }) => ({
95
79
  "& .MuiInputAdornment-positionStart": {
96
80
  paddingLeft: t.spacing(2),
97
81
  "&.MuiInputAdornment-sizeSmall": {
@@ -107,54 +91,54 @@ const Gt = c(X)(({ theme: t }) => ({
107
91
  "&.MuiInputBase-root .MuiSelect-select.MuiSelect-multiple": {
108
92
  paddingRight: t.spacing(7)
109
93
  }
110
- })), _t = c(O)(() => ({
94
+ })), $t = d(V)(() => ({
111
95
  display: "none"
112
96
  }));
113
- function Vt({
97
+ function Et({
114
98
  children: t,
115
- placeholder: n,
116
- size: o = "small",
99
+ placeholder: e,
100
+ size: n = "small",
117
101
  displayEmpty: r,
118
102
  menuProps: i,
119
103
  inputProps: l,
120
104
  labelId: s,
121
105
  label: g,
122
- labelSecondary: y,
123
- helperText: b,
106
+ labelSecondary: b,
107
+ helperText: v,
124
108
  name: u,
125
109
  error: p,
126
- focused: x,
127
- disabled: M,
128
- fullWidth: f,
129
- required: m,
110
+ focused: h,
111
+ disabled: x,
112
+ fullWidth: M,
113
+ required: f,
130
114
  "aria-label": a,
131
- ...B
132
- }, h) {
133
- const j = o === "small", [d] = w(() => Ot("select-label-")), v = g ? s ?? d : void 0;
134
- return /* @__PURE__ */ e.jsxs(
135
- tt,
115
+ ...S
116
+ }, m) {
117
+ const B = n === "small", [c] = L(() => Lt("select-label-")), I = g ? s ?? c : void 0;
118
+ return /* @__PURE__ */ y(
119
+ et,
136
120
  {
137
- size: o,
121
+ size: n,
138
122
  error: p,
139
- focused: x,
140
- disabled: M,
141
- fullWidth: f,
142
- required: m,
123
+ focused: h,
124
+ disabled: x,
125
+ fullWidth: M,
126
+ required: f,
143
127
  children: [
144
- /* @__PURE__ */ e.jsxs(C, { display: "flex", alignItems: "center", justifyContent: "space-between", children: [
145
- g && /* @__PURE__ */ e.jsx(et, { shrink: !0, id: v, children: g }),
146
- y && /* @__PURE__ */ e.jsx(C, { display: "flex", alignItems: "center", ml: 2, mb: 0.5, children: y })
128
+ /* @__PURE__ */ y(w, { display: "flex", alignItems: "center", justifyContent: "space-between", children: [
129
+ g && /* @__PURE__ */ o(nt, { shrink: !0, id: I, children: g }),
130
+ b && /* @__PURE__ */ o(w, { display: "flex", alignItems: "center", ml: 2, mb: 0.5, children: b })
147
131
  ] }),
148
- /* @__PURE__ */ e.jsxs(
149
- Gt,
132
+ /* @__PURE__ */ y(
133
+ kt,
150
134
  {
151
- ...B,
152
- labelId: v,
135
+ ...S,
136
+ labelId: I,
153
137
  name: u,
154
- ref: h,
155
- size: o,
156
- fullWidth: f,
157
- displayEmpty: r ?? !!n,
138
+ ref: m,
139
+ size: n,
140
+ fullWidth: M,
141
+ displayEmpty: r ?? !!e,
158
142
  inputProps: {
159
143
  ...l,
160
144
  "aria-label": a
@@ -162,7 +146,7 @@ function Vt({
162
146
  MenuProps: {
163
147
  ...i,
164
148
  PopoverClasses: {
165
- paper: j ? "MuiMenu-paper-sizeSmall" : void 0
149
+ paper: B ? "MuiMenu-paper-sizeSmall" : void 0
166
150
  },
167
151
  anchorOrigin: {
168
152
  vertical: "bottom",
@@ -174,43 +158,43 @@ function Vt({
174
158
  }
175
159
  },
176
160
  children: [
177
- n && /* @__PURE__ */ e.jsx(_t, { disabled: !0, value: "", children: /* @__PURE__ */ e.jsx(
161
+ e && /* @__PURE__ */ o($t, { disabled: !0, value: "", children: /* @__PURE__ */ o(
178
162
  T,
179
163
  {
180
- variant: j ? "body2" : "body1",
164
+ variant: B ? "body2" : "body1",
181
165
  color: "text.hint",
182
166
  component: "span",
183
- children: n
167
+ children: e
184
168
  }
185
169
  ) }),
186
170
  t
187
171
  ]
188
172
  }
189
173
  ),
190
- b && /* @__PURE__ */ e.jsx(nt, { "aria-label": `${u}-helper`, children: b })
174
+ v && /* @__PURE__ */ o(ot, { "aria-label": `${u}-helper`, children: v })
191
175
  ]
192
176
  }
193
177
  );
194
178
  }
195
- const Ht = P(Vt), Wt = c(ot, {
179
+ const Rt = k(Et), Ot = d(rt, {
196
180
  shouldForwardProp: (t) => t !== "variant" && t !== "backgroundColor"
197
- })(({ variant: t, backgroundColor: n, theme: o }) => ({
181
+ })(({ variant: t, backgroundColor: e, theme: n }) => ({
198
182
  // Variants
199
183
  ...t === "contained" && {
200
184
  boxShadow: "none"
201
185
  },
202
186
  ...t === "unbounded" && {
203
187
  boxShadow: "none",
204
- borderRadius: o.spacing(0.5),
188
+ borderRadius: n.spacing(0.5),
205
189
  "& .MuiDivider-root": {
206
- height: o.spacing(4),
190
+ height: n.spacing(4),
207
191
  "&.MuiToggleButtonGroup-groupedHorizontal": {
208
- height: o.spacing(4)
192
+ height: n.spacing(4)
209
193
  },
210
194
  "&.MuiToggleButtonGroup-groupedVertical": {
211
195
  height: "auto",
212
- width: o.spacing(4),
213
- margin: `${o.spacing(0.5, 0, 1)} !important`,
196
+ width: n.spacing(4),
197
+ margin: `${n.spacing(0.5, 0, 1)} !important`,
214
198
  borderRadius: "0 !important"
215
199
  }
216
200
  },
@@ -220,11 +204,11 @@ const Ht = P(Vt), Wt = c(ot, {
220
204
  margin: 0
221
205
  },
222
206
  "& + .MuiDivider-root.MuiToggleButtonGroup-groupedHorizontal": {
223
- height: o.spacing(3)
207
+ height: n.spacing(3)
224
208
  },
225
209
  "& + .MuiDivider-root.MuiToggleButtonGroup-groupedVertical": {
226
210
  height: "auto",
227
- width: o.spacing(3)
211
+ width: n.spacing(3)
228
212
  }
229
213
  },
230
214
  ".MuiToggleButtonGroup-grouped:not(.MuiDivider-root)": {
@@ -233,17 +217,17 @@ const Ht = P(Vt), Wt = c(ot, {
233
217
  marginLeft: 0
234
218
  },
235
219
  "&:not(:last-of-type)": {
236
- marginRight: o.spacing(0.5)
220
+ marginRight: n.spacing(0.5)
237
221
  }
238
222
  },
239
223
  "&.MuiToggleButtonGroup-horizontal:not(.MuiDivider-root)": {
240
224
  ".MuiToggleButtonGroup-grouped": {
241
- margin: o.spacing(0, 0.5)
225
+ margin: n.spacing(0, 0.5)
242
226
  }
243
227
  },
244
228
  "&.MuiToggleButtonGroup-vertical:not(.MuiDivider-root)": {
245
229
  ".MuiToggleButtonGroup-grouped": {
246
- margin: o.spacing(0, 0, 0.5),
230
+ margin: n.spacing(0, 0, 0.5),
247
231
  "&:not(:last-of-type)": {
248
232
  marginRight: 0
249
233
  },
@@ -254,45 +238,44 @@ const Ht = P(Vt), Wt = c(ot, {
254
238
  }
255
239
  },
256
240
  // Colors
257
- ...n === "primary" && {
258
- backgroundColor: o.palette.background.paper
241
+ ...e === "primary" && {
242
+ backgroundColor: n.palette.background.paper
259
243
  },
260
- ...n === "secondary" && {
261
- backgroundColor: o.palette.background.default
244
+ ...e === "secondary" && {
245
+ backgroundColor: n.palette.background.default
262
246
  },
263
- ...n === "transparent" && {
247
+ ...e === "transparent" && {
264
248
  backgroundColor: "transparent"
265
249
  }
266
250
  }));
267
- function He({
251
+ function Re({
268
252
  children: t,
269
- variant: n = "floating",
270
- backgroundColor: o,
253
+ variant: e = "floating",
254
+ backgroundColor: n,
271
255
  ...r
272
256
  }) {
273
- const l = n === "unbounded" ? "transparent" : "primary";
274
- return /* @__PURE__ */ e.jsx(
275
- Wt,
257
+ return /* @__PURE__ */ o(
258
+ Ot,
276
259
  {
277
260
  ...r,
278
- variant: n,
279
- backgroundColor: o ?? l,
261
+ variant: e,
262
+ backgroundColor: n ?? (e === "unbounded" ? "transparent" : "primary"),
280
263
  children: t
281
264
  }
282
265
  );
283
266
  }
284
- const Ut = c(rt, {
267
+ const Dt = d(it, {
285
268
  shouldForwardProp: (t) => !["extended", "width", "height"].includes(t)
286
- })(({ theme: t, extended: n, width: o, height: r }) => ({
287
- ...n && {
269
+ })(({ theme: t, extended: e, width: n, height: r }) => ({
270
+ ...e && {
288
271
  ".MuiMenuItem-root": {
289
272
  minHeight: t.spacing(6)
290
273
  }
291
274
  },
292
- ...o && {
275
+ ...n && {
293
276
  ".MuiList-root": {
294
- width: o,
295
- minWidth: o
277
+ width: n,
278
+ minWidth: n
296
279
  }
297
280
  },
298
281
  ...r && {
@@ -304,24 +287,24 @@ const Ut = c(rt, {
304
287
  }
305
288
  }
306
289
  }));
307
- function We(t) {
308
- return /* @__PURE__ */ e.jsx(Ut, { ...t });
290
+ function Oe(t) {
291
+ return /* @__PURE__ */ o(Dt, { ...t });
309
292
  }
310
- const qt = c(O, {
293
+ const Gt = d(V, {
311
294
  shouldForwardProp: (t) => !["subtitle", "destructive", "extended", "fixed", "iconColor"].includes(
312
295
  t
313
296
  )
314
297
  })(
315
298
  ({
316
299
  theme: t,
317
- dense: n,
318
- subtitle: o,
300
+ dense: e,
301
+ subtitle: n,
319
302
  destructive: r,
320
303
  extended: i,
321
304
  fixed: l,
322
305
  iconColor: s = "primary"
323
306
  }) => ({
324
- ...o && {
307
+ ...n && {
325
308
  pointerEvents: "none",
326
309
  columnGap: 0,
327
310
  ...t.typography.caption,
@@ -423,7 +406,7 @@ const qt = c(O, {
423
406
  marginTop: t.spacing(1)
424
407
  }
425
408
  },
426
- ...n && {
409
+ ...e && {
427
410
  "&.MuiButtonBase-root.MuiMenuItem-root": {
428
411
  minHeight: t.spacing(3),
429
412
  padding: t.spacing(0.25, 1.5)
@@ -431,37 +414,37 @@ const qt = c(O, {
431
414
  }
432
415
  })
433
416
  );
434
- function Q(t) {
435
- return /* @__PURE__ */ e.jsx(qt, { ...t });
417
+ function X(t) {
418
+ return /* @__PURE__ */ o(Gt, { ...t });
436
419
  }
437
- const Nt = c(it, {
420
+ const _t = d(at, {
438
421
  shouldForwardProp: (t) => !["extended", "width", "height"].includes(t)
439
- })(({ theme: t, extended: n, width: o, height: r }) => ({
440
- ...n && {
422
+ })(({ theme: t, extended: e, width: n, height: r }) => ({
423
+ ...e && {
441
424
  ".MuiMenuItem-root": {
442
425
  minHeight: t.spacing(6)
443
426
  }
444
427
  },
445
428
  "&.MuiList-root": {
446
- ...o && {
447
- width: o,
448
- minWidth: o
429
+ ...n && {
430
+ width: n,
431
+ minWidth: n
449
432
  },
450
433
  ...r && {
451
434
  maxHeight: r
452
435
  }
453
436
  }
454
437
  }));
455
- function Ue(t) {
456
- return /* @__PURE__ */ e.jsx(Nt, { ...t });
438
+ function De(t) {
439
+ return /* @__PURE__ */ o(_t, { ...t });
457
440
  }
458
- function zt({
441
+ function Vt({
459
442
  selectedOptions: t,
460
- options: n,
461
- onChange: o
443
+ options: e,
444
+ onChange: n
462
445
  }) {
463
- const [r, i] = w(t || []), l = n.length === r.length, s = r.length > 0;
464
- return Y(() => {
446
+ const [r, i] = L(t || []), l = e.length === r.length, s = r.length > 0;
447
+ return Z(() => {
465
448
  r !== t && i(r);
466
449
  }, [t]), {
467
450
  areAllSelected: l,
@@ -470,56 +453,56 @@ function zt({
470
453
  handleChange: (u) => {
471
454
  const {
472
455
  target: { value: p }
473
- } = u, x = typeof p == "string" ? p.split(",") : p.filter((M) => M !== void 0);
474
- i(x), o(x);
456
+ } = u, h = typeof p == "string" ? p.split(",") : p.filter((x) => x !== void 0);
457
+ i(h), n(h);
475
458
  },
476
459
  selectAll: () => {
477
- const u = n == null ? void 0 : n.filter(({ disabled: p }) => !p).map(({ value: p }) => p);
460
+ const u = e == null ? void 0 : e.filter(({ disabled: p }) => !p).map(({ value: p }) => p);
478
461
  u && (u.every(
479
- (x) => r.includes(x)
480
- ) ? (i([]), o([])) : (i(u), o(u)));
462
+ (h) => r.includes(h)
463
+ ) ? (i([]), n([])) : (i(u), n(u)));
481
464
  },
482
465
  unselectAll: () => {
483
- i([]), o([]);
466
+ i([]), n([]);
484
467
  }
485
468
  };
486
469
  }
487
- const Yt = c(at)(
488
- ({ disabled: t, theme: n }) => ({
470
+ const Ht = d(lt)(
471
+ ({ disabled: t, theme: e }) => ({
489
472
  display: "flex",
490
473
  alignItems: "center",
491
- gap: n.spacing(1),
474
+ gap: e.spacing(1),
492
475
  width: "100%",
493
476
  textAlign: "initial",
494
477
  ...t && {
495
478
  pointerEvents: "none",
496
- color: n.palette.text.disabled
479
+ color: e.palette.text.disabled
497
480
  }
498
481
  })
499
482
  );
500
- function Zt({
483
+ function Wt({
501
484
  areAllSelected: t,
502
- areAnySelected: n,
503
- selectAll: o,
485
+ areAnySelected: e,
486
+ selectAll: n,
504
487
  selectAllDisabled: r
505
488
  }) {
506
- const i = L(), l = k(i);
507
- return /* @__PURE__ */ e.jsx(Q, { fixed: !0, children: /* @__PURE__ */ e.jsxs(
508
- Yt,
489
+ const i = E(), l = $(i);
490
+ return /* @__PURE__ */ o(X, { fixed: !0, children: /* @__PURE__ */ y(
491
+ Ht,
509
492
  {
510
493
  variant: "body2",
511
494
  color: "textPrimary",
512
495
  component: "button",
513
496
  underline: "none",
514
497
  disabled: !!r,
515
- onClick: o,
498
+ onClick: n,
516
499
  tabIndex: 0,
517
500
  children: [
518
- /* @__PURE__ */ e.jsx(
519
- q,
501
+ /* @__PURE__ */ o(
502
+ N,
520
503
  {
521
504
  checked: t,
522
- indeterminate: n && !t,
505
+ indeterminate: e && !t,
523
506
  disabled: r
524
507
  }
525
508
  ),
@@ -528,14 +511,14 @@ function Zt({
528
511
  }
529
512
  ) });
530
513
  }
531
- const Jt = c(O)(({ theme: t }) => ({
514
+ const Ut = d(V)(({ theme: t }) => ({
532
515
  "&.Mui-disabled": {
533
516
  pointerEvents: "auto",
534
517
  "&:hover": {
535
518
  backgroundColor: `${t.palette.background.default} !important`
536
519
  }
537
520
  }
538
- })), Kt = c(R)(({ theme: t }) => ({
521
+ })), jt = d(_)(({ theme: t }) => ({
539
522
  display: "none",
540
523
  position: "absolute",
541
524
  top: t.spacing(2),
@@ -546,86 +529,86 @@ const Jt = c(O)(({ theme: t }) => ({
546
529
  ".MuiSvgIcon-root": {
547
530
  color: t.palette.text.hint
548
531
  }
549
- })), Qt = [], Xt = () => {
532
+ })), qt = [], zt = () => {
550
533
  };
551
- function te({
552
- options: t = Qt,
553
- selectedOptions: n,
554
- size: o = "small",
534
+ function Nt({
535
+ options: t = qt,
536
+ selectedOptions: e,
537
+ size: n = "small",
555
538
  placeholder: r,
556
539
  showCounter: i,
557
540
  showFilters: l = !0,
558
- onChange: s = Xt,
541
+ onChange: s = zt,
559
542
  selectAllDisabled: g,
560
- tooltipPlacement: y,
561
- variant: b,
543
+ tooltipPlacement: b,
544
+ variant: v,
562
545
  ...u
563
546
  }, p) {
564
547
  const {
565
- areAllSelected: x,
566
- areAnySelected: M,
567
- currentOptions: f,
568
- handleChange: m,
548
+ areAllSelected: h,
549
+ areAnySelected: x,
550
+ currentOptions: M,
551
+ handleChange: f,
569
552
  selectAll: a,
570
- unselectAll: B
571
- } = zt({
553
+ unselectAll: S
554
+ } = Vt({
572
555
  options: t,
573
- selectedOptions: n,
556
+ selectedOptions: e,
574
557
  onChange: s
575
- }), h = o === "small", j = h || b === "standard" ? 0 : 2, d = L(), v = k(d), I = `${f.length} ${v.formatMessage({
558
+ }), m = n === "small", B = m || v === "standard" ? 0 : 2, c = E(), I = $(c), A = `${M.length} ${I.formatMessage({
576
559
  id: "c4r.form.selected"
577
- })}`, $ = Z(() => x ? /* @__PURE__ */ e.jsx(
560
+ })}`, R = J(() => h ? /* @__PURE__ */ o(
578
561
  T,
579
562
  {
580
563
  component: "span",
581
- variant: h ? "body2" : "body1",
564
+ variant: m ? "body2" : "body1",
582
565
  color: "textPrimary",
583
- ml: j,
584
- children: v.formatMessage({ id: "c4r.form.allSelected" })
566
+ ml: B,
567
+ children: I.formatMessage({ id: "c4r.form.allSelected" })
585
568
  }
586
- ) : M ? /* @__PURE__ */ e.jsx(
569
+ ) : x ? /* @__PURE__ */ o(
587
570
  T,
588
571
  {
589
572
  component: "span",
590
- variant: h ? "body2" : "body1",
573
+ variant: m ? "body2" : "body1",
591
574
  color: "textPrimary",
592
- ml: j,
593
- children: i && f.length > 1 ? I : f.join(", ")
575
+ ml: B,
576
+ children: i && M.length > 1 ? A : M.join(", ")
594
577
  }
595
- ) : /* @__PURE__ */ e.jsx(
578
+ ) : /* @__PURE__ */ o(
596
579
  T,
597
580
  {
598
581
  component: "span",
599
- variant: h ? "body2" : "body1",
582
+ variant: m ? "body2" : "body1",
600
583
  color: "text.hint",
601
- ml: j,
602
- children: r ?? v.formatMessage({ id: "c4r.form.noneSelected" })
584
+ ml: B,
585
+ children: r ?? I.formatMessage({ id: "c4r.form.noneSelected" })
603
586
  }
604
587
  ), [
588
+ h,
605
589
  x,
590
+ A,
606
591
  M,
607
592
  I,
608
- f,
609
- v,
610
- h,
611
- j,
593
+ m,
594
+ B,
612
595
  r,
613
596
  i
614
597
  ]);
615
- return /* @__PURE__ */ e.jsxs(
616
- Ht,
598
+ return /* @__PURE__ */ y(
599
+ Rt,
617
600
  {
618
601
  ...u,
619
602
  ref: p,
620
603
  multiple: !0,
621
604
  displayEmpty: !0,
622
605
  placeholder: r,
623
- value: f,
624
- renderValue: () => $,
625
- onChange: m,
626
- size: o,
627
- variant: b,
628
- endAdornment: l && M && /* @__PURE__ */ e.jsx(Kt, { position: "end", children: /* @__PURE__ */ e.jsx(F, { onClick: B, size: "small", children: /* @__PURE__ */ e.jsx(J, {}) }) }),
606
+ value: M,
607
+ renderValue: () => R,
608
+ onChange: f,
609
+ size: n,
610
+ variant: v,
611
+ endAdornment: l && x && /* @__PURE__ */ o(jt, { position: "end", children: /* @__PURE__ */ o(P, { onClick: S, size: "small", children: /* @__PURE__ */ o(K, {}) }) }),
629
612
  menuProps: {
630
613
  PaperProps: {
631
614
  sx: {
@@ -636,67 +619,67 @@ function te({
636
619
  }
637
620
  },
638
621
  children: [
639
- l && /* @__PURE__ */ e.jsx(
640
- Zt,
622
+ l && /* @__PURE__ */ o(
623
+ Wt,
641
624
  {
642
- areAllSelected: x,
643
- areAnySelected: M,
625
+ areAllSelected: h,
626
+ areAnySelected: x,
644
627
  selectAll: a,
645
628
  selectAllDisabled: g
646
629
  }
647
630
  ),
648
- t == null ? void 0 : t.map((A) => {
649
- const _ = /* @__PURE__ */ e.jsxs(
650
- Jt,
631
+ t == null ? void 0 : t.map((C) => {
632
+ const W = /* @__PURE__ */ y(
633
+ Ut,
651
634
  {
652
- value: A.value,
653
- disabled: A.disabled,
635
+ value: C.value,
636
+ disabled: C.disabled,
654
637
  tabIndex: 0,
655
638
  children: [
656
- /* @__PURE__ */ e.jsx(
657
- q,
639
+ /* @__PURE__ */ o(
640
+ N,
658
641
  {
659
- disabled: A.disabled,
660
- checked: f.includes(A.value)
642
+ disabled: C.disabled,
643
+ checked: M.includes(C.value)
661
644
  }
662
645
  ),
663
- /* @__PURE__ */ e.jsx(N, { primary: A.label })
646
+ /* @__PURE__ */ o(Y, { primary: C.label })
664
647
  ]
665
648
  },
666
- A.value
649
+ C.value
667
650
  );
668
- return A.tooltip ? /* @__PURE__ */ e.jsx(
669
- lt,
651
+ return C.tooltip ? /* @__PURE__ */ o(
652
+ st,
670
653
  {
671
- title: A.tooltip,
672
- placement: y,
673
- children: _
654
+ title: C.tooltip,
655
+ placement: b,
656
+ children: W
674
657
  },
675
- A.value
676
- ) : _;
658
+ C.value
659
+ ) : W;
677
660
  })
678
661
  ]
679
662
  }
680
663
  );
681
664
  }
682
- const qe = P(te), ee = G(U, {
665
+ const Ge = k(Nt), Yt = H(z, {
683
666
  shouldForwardProp: (t) => t !== "cursor"
684
667
  })(
685
- ({ cursor: t, theme: n }) => ({
668
+ ({ cursor: t, theme: e }) => ({
686
669
  "&.MuiTextField-root .MuiInputBase-root": {
687
670
  cursor: t,
688
- paddingRight: n.spacing(1),
671
+ paddingRight: e.spacing(1),
689
672
  "& input": {
690
673
  cursor: t
691
674
  },
692
675
  "&.Mui-disabled": {
693
676
  pointerEvents: "none",
694
677
  "& .MuiButtonBase-root": {
695
- color: n.palette.text.disabled
678
+ color: e.palette.text.disabled
696
679
  }
697
680
  },
698
681
  "&.MuiInputBase-sizeSmall": {
699
- paddingRight: n.spacing(0.5)
682
+ paddingRight: e.spacing(0.5)
700
683
  }
701
684
  },
702
685
  "& .MuiFormLabel-root": {
@@ -707,30 +690,30 @@ const qe = P(te), ee = G(U, {
707
690
  }
708
691
  })
709
692
  );
710
- function ne({
693
+ function Zt({
711
694
  buttonText: t,
712
- hasFiles: n,
713
- size: o,
695
+ hasFiles: e,
696
+ size: n,
714
697
  error: r,
715
698
  disabled: i,
716
699
  handleReset: l,
717
700
  handleOpen: s,
718
701
  inProgress: g
719
702
  }) {
720
- return /* @__PURE__ */ e.jsx(R, { position: "end", children: g ? /* @__PURE__ */ e.jsx(F, { "aria-label": "loading", disabled: !0, size: o, children: /* @__PURE__ */ e.jsx(st, { size: 18 }) }) : n ? /* @__PURE__ */ e.jsx(
721
- F,
703
+ return /* @__PURE__ */ o(_, { position: "end", children: g ? /* @__PURE__ */ o(P, { "aria-label": "loading", disabled: !0, size: n, children: /* @__PURE__ */ o(dt, { size: 18 }) }) : e ? /* @__PURE__ */ o(
704
+ P,
722
705
  {
723
706
  onClick: l,
724
- size: o,
707
+ size: n,
725
708
  "aria-label": "delete",
726
709
  disabled: i,
727
- children: /* @__PURE__ */ e.jsx(J, {})
710
+ children: /* @__PURE__ */ o(K, {})
728
711
  }
729
- ) : /* @__PURE__ */ e.jsx(
730
- W,
712
+ ) : /* @__PURE__ */ o(
713
+ q,
731
714
  {
732
715
  onClick: s,
733
- size: o,
716
+ size: n,
734
717
  variant: "text",
735
718
  color: r ? "default" : "primary",
736
719
  disabled: i,
@@ -738,356 +721,356 @@ function ne({
738
721
  }
739
722
  ) });
740
723
  }
741
- function oe({
724
+ function Jt({
742
725
  name: t,
743
726
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
744
- multiple: n,
727
+ multiple: e,
745
728
  // multiple prop defined here for compatibility with cloud-native but not used in the component
746
- handleReset: o,
729
+ handleReset: n,
747
730
  handleOpen: r,
748
731
  dragOver: i,
749
732
  error: l,
750
733
  placeholder: s,
751
734
  focused: g,
752
- buttonText: y = "Browse",
753
- inProgress: b,
735
+ buttonText: b = "Browse",
736
+ inProgress: v,
754
737
  InputProps: u,
755
738
  size: p = "small",
756
- hasFiles: x,
757
- cursor: M = "pointer",
758
- ...f
739
+ hasFiles: h,
740
+ cursor: x = "pointer",
741
+ ...M
759
742
  }) {
760
- return /* @__PURE__ */ e.jsx(
761
- ee,
743
+ return /* @__PURE__ */ o(
744
+ Yt,
762
745
  {
763
- ...f,
746
+ ...M,
764
747
  size: p,
765
748
  error: l,
766
749
  placeholder: s,
767
750
  focused: g ?? i,
768
- cursor: M,
751
+ cursor: x,
769
752
  InputProps: {
770
753
  ...u,
771
754
  name: t,
772
755
  // multiple prop cannot be used here because it is not a valid prop for TextField InputProps
773
756
  // not used for any UI logic
774
757
  readOnly: !0,
775
- endAdornment: /* @__PURE__ */ e.jsx(
776
- ne,
758
+ endAdornment: /* @__PURE__ */ o(
759
+ Zt,
777
760
  {
778
- buttonText: y,
779
- hasFiles: x,
761
+ buttonText: b,
762
+ hasFiles: h,
780
763
  size: p,
781
764
  error: l,
782
765
  disabled: !!i,
783
- handleReset: o,
766
+ handleReset: n,
784
767
  handleOpen: r,
785
- inProgress: b
768
+ inProgress: v
786
769
  }
787
770
  )
788
771
  }
789
772
  }
790
773
  );
791
774
  }
792
- function re({
775
+ function Kt({
793
776
  onChange: t,
794
- files: n,
795
- multiple: o,
777
+ files: e,
778
+ multiple: n,
796
779
  placeholder: r,
797
780
  uploadInputRef: i
798
781
  }) {
799
- const l = L(), s = k(l), [g, y] = w(""), [b, u] = w(!1);
800
- Y(() => {
801
- !n || n.length === 0 ? y("") : n.length === 1 ? y(n[0].name) : y(
782
+ const l = E(), s = $(l), [g, b] = L(""), [v, u] = L(!1);
783
+ Z(() => {
784
+ !e || e.length === 0 ? b("") : e.length === 1 ? b(e[0].name) : b(
802
785
  s.formatMessage(
803
786
  { id: "c4r.form.filesSelected" },
804
- { count: n.length }
787
+ { count: e.length }
805
788
  )
806
789
  );
807
- }, [n, s]);
790
+ }, [e, s]);
808
791
  const p = () => {
809
- var d;
810
- (d = i.current) == null || d.click();
811
- }, x = (d) => {
812
- d.preventDefault(), u(!0);
813
- }, M = (d) => {
814
- d.preventDefault(), u(!1);
815
- }, f = (d) => {
816
- d.preventDefault(), u(!1);
817
- const v = d.dataTransfer.items, I = m(v);
818
- t == null || t(I);
819
- }, m = (d) => {
820
- const v = [];
821
- for (const I of Array.from(d))
822
- if (I.kind === "file") {
823
- const $ = I.getAsFile();
824
- v.push($);
792
+ var c;
793
+ (c = i.current) == null || c.click();
794
+ }, h = (c) => {
795
+ c.preventDefault(), u(!0);
796
+ }, x = (c) => {
797
+ c.preventDefault(), u(!1);
798
+ }, M = (c) => {
799
+ c.preventDefault(), u(!1);
800
+ const I = c.dataTransfer.items, A = f(I);
801
+ t == null || t(A);
802
+ }, f = (c) => {
803
+ const I = [];
804
+ for (const A of Array.from(c))
805
+ if (A.kind === "file") {
806
+ const R = A.getAsFile();
807
+ I.push(R);
825
808
  }
826
- return v;
827
- }, a = (d) => {
828
- const v = Array.from(d.target.files);
829
- t == null || t(v);
830
- }, B = (d) => {
831
- d.stopPropagation(), y("");
832
- }, h = Z(() => {
833
- const d = s.formatMessage(
809
+ return I;
810
+ }, a = (c) => {
811
+ const I = Array.from(c.target.files);
812
+ t == null || t(I);
813
+ }, S = (c) => {
814
+ c.stopPropagation(), b("");
815
+ }, m = J(() => {
816
+ const c = s.formatMessage(
834
817
  { id: "c4r.form.dragPlaceholder" },
835
- { count: o ? 0 : 1 }
836
- ), v = s.formatMessage(
818
+ { count: n ? 0 : 1 }
819
+ ), I = s.formatMessage(
837
820
  { id: "c4r.form.dragActivePlaceholder" },
838
- { count: o ? 0 : 1 }
821
+ { count: n ? 0 : 1 }
839
822
  );
840
- let I = "";
841
- return b ? I = v : I = r ?? d, I;
842
- }, [b, o, r, s]);
823
+ let A = "";
824
+ return v ? A = I : A = r ?? c, A;
825
+ }, [v, n, r, s]);
843
826
  return {
844
827
  filesText: g,
845
- getPlaceholder: h,
846
- dragOver: b,
828
+ getPlaceholder: m,
829
+ dragOver: v,
847
830
  inputEvents: {
848
- onDragOver: x,
849
- onDragLeave: M,
850
- onDrop: f,
831
+ onDragOver: h,
832
+ onDragLeave: x,
833
+ onDrop: M,
851
834
  onClick: p
852
835
  },
853
836
  handleFiles: a,
854
- handleReset: B
837
+ handleReset: S
855
838
  };
856
839
  }
857
- const ie = ["application/JSON"];
858
- function Ne({
840
+ const Qt = ["application/JSON"];
841
+ function _e({
859
842
  name: t,
860
- buttonText: n,
861
- accept: o,
843
+ buttonText: e,
844
+ accept: n,
862
845
  files: r,
863
846
  inProgress: i,
864
847
  onChange: l,
865
848
  multiple: s,
866
849
  placeholder: g,
867
- error: y,
868
- focused: b,
850
+ error: b,
851
+ focused: v,
869
852
  nativeInputProps: u,
870
853
  ...p
871
854
  }) {
872
- const x = o ?? ie, M = Mt(null), {
873
- filesText: f,
874
- getPlaceholder: m,
855
+ const h = n ?? Qt, x = bt(null), {
856
+ filesText: M,
857
+ getPlaceholder: f,
875
858
  dragOver: a,
876
- inputEvents: B,
877
- handleFiles: h,
878
- handleReset: j
879
- } = re({
880
- uploadInputRef: M,
859
+ inputEvents: S,
860
+ handleFiles: m,
861
+ handleReset: B
862
+ } = Kt({
863
+ uploadInputRef: x,
881
864
  files: r,
882
865
  onChange: l,
883
866
  multiple: s,
884
867
  placeholder: g
885
868
  });
886
- return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
887
- /* @__PURE__ */ e.jsx(
888
- oe,
869
+ return /* @__PURE__ */ y(G, { children: [
870
+ /* @__PURE__ */ o(
871
+ Jt,
889
872
  {
890
873
  ...p,
891
- placeholder: m,
892
- value: f,
893
- error: y,
894
- focused: b ?? a,
895
- handleReset: j,
874
+ placeholder: f,
875
+ value: M,
876
+ error: b,
877
+ focused: v ?? a,
878
+ handleReset: B,
896
879
  dragOver: a,
897
880
  inProgress: i,
898
- hasFiles: !!f,
899
- InputProps: B,
900
- buttonText: n
881
+ hasFiles: !!M,
882
+ InputProps: S,
883
+ buttonText: e
901
884
  }
902
885
  ),
903
- /* @__PURE__ */ e.jsx(
886
+ /* @__PURE__ */ o(
904
887
  "input",
905
888
  {
906
889
  ...u,
907
- ref: M,
890
+ ref: x,
908
891
  style: { display: "none" },
909
892
  type: "file",
910
893
  "aria-label": t,
911
894
  name: t,
912
- accept: String(x),
895
+ accept: String(h),
913
896
  multiple: s,
914
- onChange: h
897
+ onChange: m
915
898
  }
916
899
  )
917
900
  ] });
918
901
  }
919
- const ae = c("div", {
902
+ const Xt = d("div", {
920
903
  shouldForwardProp: (t) => t !== "variant"
921
- })(({ variant: t, theme: n }) => ({
904
+ })(({ variant: t, theme: e }) => ({
922
905
  width: "100%",
923
- borderRadius: n.spacing(0.5),
906
+ borderRadius: e.spacing(0.5),
924
907
  ...t === "outlined" && {
925
- backgroundColor: n.palette.background.paper,
926
- boxShadow: `inset 0 0 0 1px ${n.palette.divider}`
908
+ backgroundColor: e.palette.background.paper,
909
+ boxShadow: `inset 0 0 0 1px ${e.palette.divider}`
927
910
  }
928
911
  }));
929
- function ze({
912
+ function Ve({
930
913
  variant: t = "standard",
931
- items: n,
932
- ...o
914
+ items: e,
915
+ ...n
933
916
  }) {
934
- return /* @__PURE__ */ e.jsx(ae, { ...o, variant: t, children: n.map((r, i) => /* @__PURE__ */ e.jsxs(
917
+ return /* @__PURE__ */ o(Xt, { ...n, variant: t, children: e.map((r, i) => /* @__PURE__ */ y(
935
918
  ct,
936
919
  {
937
920
  disabled: r.disabled,
938
921
  defaultExpanded: r.defaultExpanded,
939
922
  onChange: r.onChange,
940
923
  children: [
941
- /* @__PURE__ */ e.jsx(
942
- dt,
924
+ /* @__PURE__ */ o(
925
+ ut,
943
926
  {
944
927
  "aria-controls": `${i}-content`,
945
928
  id: `${i}-header`,
946
929
  children: r.summary
947
930
  }
948
931
  ),
949
- /* @__PURE__ */ e.jsx(ut, { children: r.content })
932
+ /* @__PURE__ */ o(pt, { children: r.content })
950
933
  ]
951
934
  },
952
935
  i
953
936
  )) });
954
937
  }
955
- const le = pt(), se = "c4r.form.add";
956
- function ce(t) {
938
+ const te = gt(), ee = "c4r.form.add";
939
+ function ne(t) {
957
940
  return t && typeof t == "object" ? t.title ?? String(t) : String(t);
958
941
  }
959
- function de({
942
+ function oe({
960
943
  creatable: t,
961
- newItemLabel: n = se,
962
- newItemIcon: o,
944
+ newItemLabel: e = ee,
945
+ newItemIcon: n,
963
946
  freeSolo: r,
964
947
  renderOption: i,
965
948
  forcePopupIcon: l,
966
949
  filterOptions: s,
967
- getOptionLabel: g = ce,
968
- ...y
969
- }, b) {
970
- const u = L(), p = k(u), x = (m, a) => {
971
- const B = le(
972
- m,
973
- a
974
- ), { inputValue: h } = a, j = m.some(
975
- (d) => h === g(d)
976
- );
977
- return h.length > 1 && h !== "" && !j && B.push({
978
- inputValue: h,
979
- title: typeof n == "function" ? n(h) : `${p.formatMessage({ id: n })} "${h}"`
980
- }), B;
981
- }, M = (m) => typeof m == "string" ? m : m.inputValue ? m.inputValue : g(m), f = (m, a) => /* @__PURE__ */ e.jsx(yt, { children: a.divider ? /* @__PURE__ */ e.jsx(D, {}) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
982
- a.inputValue && /* @__PURE__ */ e.jsx(D, {}),
983
- /* @__PURE__ */ e.jsxs(
984
- Q,
985
- {
986
- ...m,
987
- fixed: a.fixed,
988
- extended: a.extended,
989
- dense: a.dense,
990
- destructive: a.destructive,
991
- disabled: a.disabled,
992
- subtitle: a.subtitle,
993
- iconColor: a.iconColor,
994
- children: [
995
- a.inputValue && /* @__PURE__ */ e.jsx(V, { children: o ?? /* @__PURE__ */ e.jsx(At, {}) }),
996
- a.startAdornment && !a.inputValue && /* @__PURE__ */ e.jsx(V, { children: a.startAdornment }),
997
- /* @__PURE__ */ e.jsxs(N, { children: [
998
- a.alternativeTitle ?? a.title,
999
- a.secondaryText && /* @__PURE__ */ e.jsx(
1000
- T,
1001
- {
1002
- component: "p",
1003
- variant: "caption",
1004
- color: "text.secondary",
1005
- children: a.secondaryText
1006
- }
1007
- )
1008
- ] }),
1009
- a.endAdornment
1010
- ]
1011
- }
1012
- )
1013
- ] }) }, a.inputValue ?? a.title);
1014
- return /* @__PURE__ */ e.jsx(
1015
- gt,
950
+ getOptionLabel: g = ne,
951
+ ...b
952
+ }, v) {
953
+ const u = E(), p = $(u);
954
+ return /* @__PURE__ */ o(
955
+ ft,
1016
956
  {
1017
- ...y,
1018
- ref: b,
1019
- filterOptions: t ? x : s,
1020
- getOptionLabel: t ? M : g,
1021
- renderOption: t ? f : i,
957
+ ...b,
958
+ ref: v,
959
+ filterOptions: t ? (f, a) => {
960
+ const S = te(
961
+ f,
962
+ a
963
+ ), { inputValue: m } = a, B = f.some(
964
+ (c) => m === g(c)
965
+ );
966
+ return m.length > 1 && m !== "" && !B && S.push({
967
+ inputValue: m,
968
+ title: typeof e == "function" ? e(m) : `${p.formatMessage({ id: e })} "${m}"`
969
+ }), S;
970
+ } : s,
971
+ getOptionLabel: t ? (f) => typeof f == "string" ? f : f.inputValue ? f.inputValue : g(f) : g,
972
+ renderOption: t ? (f, a) => /* @__PURE__ */ o(vt, { children: a.divider ? /* @__PURE__ */ o(D, {}) : /* @__PURE__ */ y(G, { children: [
973
+ a.inputValue && /* @__PURE__ */ o(D, {}),
974
+ /* @__PURE__ */ y(
975
+ X,
976
+ {
977
+ ...f,
978
+ fixed: a.fixed,
979
+ extended: a.extended,
980
+ dense: a.dense,
981
+ destructive: a.destructive,
982
+ disabled: a.disabled,
983
+ subtitle: a.subtitle,
984
+ iconColor: a.iconColor,
985
+ children: [
986
+ a.inputValue && /* @__PURE__ */ o(U, { children: n ?? /* @__PURE__ */ o(Tt, {}) }),
987
+ a.startAdornment && !a.inputValue && /* @__PURE__ */ o(U, { children: a.startAdornment }),
988
+ /* @__PURE__ */ y(Y, { children: [
989
+ a.alternativeTitle ?? a.title,
990
+ a.secondaryText && /* @__PURE__ */ o(
991
+ T,
992
+ {
993
+ component: "p",
994
+ variant: "caption",
995
+ color: "text.secondary",
996
+ children: a.secondaryText
997
+ }
998
+ )
999
+ ] }),
1000
+ a.endAdornment
1001
+ ]
1002
+ }
1003
+ )
1004
+ ] }) }, a.inputValue ?? a.title) : i,
1022
1005
  freeSolo: t || r,
1023
1006
  forcePopupIcon: t || l
1024
1007
  }
1025
1008
  );
1026
1009
  }
1027
- const Ye = P(de), H = {
1010
+ const He = k(oe), j = {
1028
1011
  large: 5,
1029
1012
  medium: 4,
1030
1013
  small: 3,
1031
1014
  xsmall: 2.25
1032
- }, ue = c(xt, {
1015
+ }, re = d(mt, {
1033
1016
  shouldForwardProp: (t) => t !== "size"
1034
- })(({ theme: t, size: n = "medium" }) => ({
1035
- width: t.spacing(H[n]),
1036
- height: t.spacing(H[n]),
1017
+ })(({ theme: t, size: e = "medium" }) => ({
1018
+ width: t.spacing(j[e]),
1019
+ height: t.spacing(j[e]),
1037
1020
  ...t.typography.subtitle1,
1038
- ...n === "large" && {
1021
+ ...e === "large" && {
1039
1022
  ...t.typography.h6
1040
1023
  },
1041
- ...n === "small" && {
1024
+ ...e === "small" && {
1042
1025
  ...t.typography.caption,
1043
1026
  fontWeight: 500
1044
1027
  },
1045
- ...n === "xsmall" && {
1028
+ ...e === "xsmall" && {
1046
1029
  ...t.typography.caption,
1047
1030
  fontWeight: 500,
1048
1031
  svg: {
1049
- width: S,
1050
- height: S
1032
+ width: F,
1033
+ height: F
1051
1034
  }
1052
1035
  }
1053
1036
  }));
1054
- function Ze(t) {
1055
- return /* @__PURE__ */ e.jsx(ue, { ...t });
1037
+ function We(t) {
1038
+ return /* @__PURE__ */ o(re, { ...t });
1056
1039
  }
1057
- const pe = c("div")(({ theme: t }) => ({
1040
+ const ie = d("div")(({ theme: t }) => ({
1058
1041
  display: "flex",
1059
1042
  alignItems: "center",
1060
- height: Tt,
1043
+ height: xt,
1061
1044
  marginRight: t.spacing(1.5)
1062
- })), ge = c(F)(({ theme: t }) => ({
1045
+ })), ae = d(P)(({ theme: t }) => ({
1063
1046
  marginRight: t.spacing(1),
1064
1047
  "&.MuiButtonBase-root svg path": {
1065
1048
  fill: t.palette.brand.appBarContrastText
1066
1049
  }
1067
- })), xe = c(D)(({ theme: t }) => ({
1068
- borderColor: ft(t.palette.brand.appBarContrastText, 0.12)
1050
+ })), le = d(D)(({ theme: t }) => ({
1051
+ borderColor: ht(t.palette.brand.appBarContrastText, 0.12)
1069
1052
  }));
1070
- function fe({
1053
+ function se({
1071
1054
  onClickMenu: t
1072
1055
  }) {
1073
1056
  return (
1074
1057
  // replacing deprecated `<Hidden />` with sx following this MUI5 guide:
1075
1058
  // https://mui.com/material-ui/migration/v5-component-changes/#hidden
1076
- /* @__PURE__ */ e.jsx(
1077
- C,
1059
+ /* @__PURE__ */ o(
1060
+ w,
1078
1061
  {
1079
1062
  sx: {
1080
1063
  display: { md: "none", xs: "block" }
1081
1064
  },
1082
- children: /* @__PURE__ */ e.jsxs(pe, { children: [
1083
- /* @__PURE__ */ e.jsx(ge, { onClick: t, children: /* @__PURE__ */ e.jsx(St, {}) }),
1084
- /* @__PURE__ */ e.jsx(xe, { orientation: "vertical", flexItem: !0 })
1065
+ children: /* @__PURE__ */ y(ie, { children: [
1066
+ /* @__PURE__ */ o(ae, { onClick: t, children: /* @__PURE__ */ o(At, {}) }),
1067
+ /* @__PURE__ */ o(le, { orientation: "vertical", flexItem: !0 })
1085
1068
  ] })
1086
1069
  }
1087
1070
  )
1088
1071
  );
1089
1072
  }
1090
- const me = c("div")(({ theme: t }) => ({
1073
+ const de = d("div")(({ theme: t }) => ({
1091
1074
  display: "flex",
1092
1075
  marginRight: t.spacing(1.5),
1093
1076
  "& a": {
@@ -1098,27 +1081,27 @@ const me = c("div")(({ theme: t }) => ({
1098
1081
  height: t.spacing(4)
1099
1082
  }
1100
1083
  }));
1101
- function he({ logo: t }) {
1102
- return /* @__PURE__ */ e.jsx(me, { children: t });
1084
+ function ce({ logo: t }) {
1085
+ return /* @__PURE__ */ o(de, { children: t });
1103
1086
  }
1104
- const Me = G(T)({
1087
+ const ue = H(T)({
1105
1088
  display: "flex",
1106
1089
  alignItems: "center",
1107
1090
  whiteSpace: "nowrap"
1108
1091
  });
1109
- function ye({ text: t }) {
1110
- const n = K();
1111
- return /* @__PURE__ */ e.jsx(
1112
- Me,
1092
+ function pe({ text: t }) {
1093
+ const e = Q();
1094
+ return /* @__PURE__ */ o(
1095
+ ue,
1113
1096
  {
1114
1097
  component: "span",
1115
1098
  variant: "subtitle1",
1116
- color: n.palette.brand.appBarContrastText,
1099
+ color: e.palette.brand.appBarContrastText,
1117
1100
  children: t
1118
1101
  }
1119
1102
  );
1120
1103
  }
1121
- const be = G(T)(({ theme: t }) => ({
1104
+ const ge = H(T)(({ theme: t }) => ({
1122
1105
  display: "flex",
1123
1106
  alignItems: "center",
1124
1107
  "&::before": {
@@ -1128,20 +1111,20 @@ const be = G(T)(({ theme: t }) => ({
1128
1111
  color: t.palette.brand.appBarContrastText
1129
1112
  }
1130
1113
  }));
1131
- function ve({ text: t }) {
1132
- const n = K();
1133
- return /* @__PURE__ */ e.jsx(
1134
- be,
1114
+ function fe({ text: t }) {
1115
+ const e = Q();
1116
+ return /* @__PURE__ */ o(
1117
+ ge,
1135
1118
  {
1136
1119
  component: "span",
1137
1120
  variant: "body2",
1138
1121
  weight: "strong",
1139
- color: n.palette.brand.appBarContrastText,
1122
+ color: e.palette.brand.appBarContrastText,
1140
1123
  children: t
1141
1124
  }
1142
1125
  );
1143
1126
  }
1144
- const je = c(mt)(({ theme: t }) => ({
1127
+ const me = d(Mt)(({ theme: t }) => ({
1145
1128
  backgroundColor: t.palette.brand.appBarMain,
1146
1129
  "& .MuiTypography-root": {
1147
1130
  color: t.palette.brand.appBarContrastText
@@ -1149,7 +1132,7 @@ const je = c(mt)(({ theme: t }) => ({
1149
1132
  "& .MuiIconButton-root path": {
1150
1133
  fill: t.palette.brand.appBarContrastText
1151
1134
  }
1152
- })), Te = c("div")(({ theme: t }) => ({
1135
+ })), he = d("div")(({ theme: t }) => ({
1153
1136
  display: "flex",
1154
1137
  alignItems: "center",
1155
1138
  maxWidth: "calc(100% - 300px)",
@@ -1157,93 +1140,93 @@ const je = c(mt)(({ theme: t }) => ({
1157
1140
  [t.breakpoints.down("sm")]: {
1158
1141
  minWidth: "192px"
1159
1142
  }
1160
- })), Ie = c("div")(({ theme: t }) => ({
1143
+ })), Me = d("div")(({ theme: t }) => ({
1161
1144
  display: "flex",
1162
1145
  alignItems: "center",
1163
1146
  justifyContent: "space-between",
1164
1147
  flex: 1,
1165
1148
  marginLeft: t.spacing(1)
1166
1149
  }));
1167
- function Je({
1150
+ function Ue({
1168
1151
  children: t,
1169
- brandLogo: n,
1170
- brandText: o,
1152
+ brandLogo: e,
1153
+ brandText: n,
1171
1154
  secondaryText: r,
1172
1155
  showBurgerMenu: i = !1,
1173
1156
  onClickMenu: l,
1174
1157
  ...s
1175
1158
  }) {
1176
- return /* @__PURE__ */ e.jsx(je, { ...s, children: /* @__PURE__ */ e.jsxs(ht, { children: [
1177
- /* @__PURE__ */ e.jsxs(Te, { children: [
1178
- i && /* @__PURE__ */ e.jsx(fe, { onClickMenu: l }),
1179
- n && /* @__PURE__ */ e.jsx(he, { logo: n }),
1180
- o && /* @__PURE__ */ e.jsx(ye, { text: o }),
1181
- r && /* @__PURE__ */ e.jsx(ve, { text: r })
1159
+ return /* @__PURE__ */ o(me, { ...s, children: /* @__PURE__ */ y(yt, { children: [
1160
+ /* @__PURE__ */ y(he, { children: [
1161
+ i && /* @__PURE__ */ o(se, { onClickMenu: l }),
1162
+ e && /* @__PURE__ */ o(ce, { logo: e }),
1163
+ n && /* @__PURE__ */ o(pe, { text: n }),
1164
+ r && /* @__PURE__ */ o(fe, { text: r })
1182
1165
  ] }),
1183
- /* @__PURE__ */ e.jsx(Ie, { children: t })
1166
+ /* @__PURE__ */ o(Me, { children: t })
1184
1167
  ] }) });
1185
1168
  }
1186
- const Be = [{ outlinedBullet: !1, value: "" }], Ae = c("ul")(({ theme: t }) => ({
1169
+ const ye = [{ outlinedBullet: !1, value: "" }], be = d("ul")(({ theme: t }) => ({
1187
1170
  listStyle: "none",
1188
1171
  paddingLeft: 0,
1189
1172
  margin: t.spacing(0.5, 0, 0, 0)
1190
- })), Se = c("li")(({ theme: t }) => ({
1173
+ })), ve = d("li")(({ theme: t }) => ({
1191
1174
  display: "flex",
1192
1175
  alignItems: "center",
1193
1176
  justifyContent: "space-between",
1194
1177
  "&:not(:last-child)": {
1195
1178
  marginBottom: t.spacing(0.5)
1196
1179
  }
1197
- })), Ce = c("span")(({ theme: t }) => ({
1180
+ })), xe = d("span")(({ theme: t }) => ({
1198
1181
  width: t.spacing(1),
1199
1182
  height: t.spacing(1),
1200
1183
  marginRight: t.spacing(0.5),
1201
1184
  border: `2px solid ${t.palette.qualitative.bold[1]}`,
1202
1185
  borderRadius: "50%",
1203
1186
  backgroundColor: t.palette.qualitative.bold[1]
1204
- })), Fe = c(T)(({ theme: t }) => ({
1187
+ })), Ie = d(T)(({ theme: t }) => ({
1205
1188
  minWidth: t.spacing(10),
1206
1189
  marginRight: t.spacing(1.5)
1207
1190
  }));
1208
- function Ke({
1209
- items: t = Be,
1210
- title: n
1191
+ function je({
1192
+ items: t = ye,
1193
+ title: e
1211
1194
  }) {
1212
- return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1213
- n && /* @__PURE__ */ e.jsx(T, { color: "inherit", variant: "caption", weight: "medium", children: n }),
1214
- /* @__PURE__ */ e.jsx(Ae, { children: t.map((o, r) => /* @__PURE__ */ e.jsxs(Se, { children: [
1215
- /* @__PURE__ */ e.jsx(
1216
- Ce,
1195
+ return /* @__PURE__ */ y(G, { children: [
1196
+ e && /* @__PURE__ */ o(T, { color: "inherit", variant: "caption", weight: "medium", children: e }),
1197
+ /* @__PURE__ */ o(be, { children: t.map((n, r) => /* @__PURE__ */ y(ve, { children: [
1198
+ /* @__PURE__ */ o(
1199
+ xe,
1217
1200
  {
1218
1201
  style: {
1219
- backgroundColor: `${o.outlinedBullet ? "transparent" : o.color}`,
1220
- borderColor: o.color
1202
+ backgroundColor: `${n.outlinedBullet ? "transparent" : n.color}`,
1203
+ borderColor: n.color
1221
1204
  }
1222
1205
  }
1223
1206
  ),
1224
- o.category && /* @__PURE__ */ e.jsx(Fe, { color: "inherit", variant: "caption", children: o.category }),
1225
- /* @__PURE__ */ e.jsx(T, { color: "inherit", variant: "caption", weight: "medium", children: o.value })
1207
+ n.category && /* @__PURE__ */ o(Ie, { color: "inherit", variant: "caption", children: n.category }),
1208
+ /* @__PURE__ */ o(T, { color: "inherit", variant: "caption", weight: "medium", children: n.value })
1226
1209
  ] }, r)) })
1227
1210
  ] });
1228
1211
  }
1229
1212
  export {
1230
- ze as AccordionGroup,
1231
- tn as Alert,
1232
- Je as AppBar,
1233
- Ye as Autocomplete,
1234
- Ze as Avatar,
1235
- Ge as Button,
1236
- _e as LabelWithIndicator,
1237
- We as Menu,
1238
- Q as MenuItem,
1239
- Ue as MenuList,
1240
- qe as MultipleSelectField,
1241
- Ve as PasswordField,
1242
- Ht as SelectField,
1243
- en as TablePaginationActions,
1244
- He as ToggleButtonGroup,
1245
- Ke as TooltipData,
1213
+ Ve as AccordionGroup,
1214
+ Ne as Alert,
1215
+ Ue as AppBar,
1216
+ He as Autocomplete,
1217
+ We as Avatar,
1218
+ ke as Button,
1219
+ $e as LabelWithIndicator,
1220
+ Oe as Menu,
1221
+ X as MenuItem,
1222
+ De as MenuList,
1223
+ Ge as MultipleSelectField,
1224
+ Ee as PasswordField,
1225
+ Rt as SelectField,
1226
+ Ye as TablePaginationActions,
1227
+ Re as ToggleButtonGroup,
1228
+ je as TooltipData,
1246
1229
  T as Typography,
1247
- Ne as UploadField,
1248
- oe as UploadFieldBase
1230
+ _e as UploadField,
1231
+ Jt as UploadFieldBase
1249
1232
  };