@tracktor/design-system 4.7.2 → 4.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -86,7 +86,7 @@ function Pr() {
86
86
  function A(f) {
87
87
  if (f == null) return null;
88
88
  if (typeof f == "function")
89
- return f.$$typeof === rA ? null : f.displayName || f.name || null;
89
+ return f.$$typeof === X ? null : f.displayName || f.name || null;
90
90
  if (typeof f == "string") return f;
91
91
  switch (f) {
92
92
  case u:
@@ -158,7 +158,7 @@ function Pr() {
158
158
  }
159
159
  }
160
160
  function o() {
161
- var f = N.A;
161
+ var f = Z.A;
162
162
  return f === null ? null : f.getOwner();
163
163
  }
164
164
  function i() {
@@ -173,7 +173,7 @@ function Pr() {
173
173
  }
174
174
  function a(f, x) {
175
175
  function M() {
176
- X || (X = !0, console.error(
176
+ _ || (_ = !0, console.error(
177
177
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
178
178
  x
179
179
  ));
@@ -185,7 +185,7 @@ function Pr() {
185
185
  }
186
186
  function c() {
187
187
  var f = A(this.type);
188
- return Z[f] || (Z[f] = !0, console.error(
188
+ return V[f] || (V[f] = !0, console.error(
189
189
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
190
190
  )), f = this.props.ref, f !== void 0 ? f : null;
191
191
  }
@@ -225,7 +225,7 @@ function Pr() {
225
225
  var Y = x.children;
226
226
  if (Y !== void 0)
227
227
  if (L)
228
- if ($(Y)) {
228
+ if (K(Y)) {
229
229
  for (L = 0; L < Y.length; L++)
230
230
  g(Y[L]);
231
231
  Object.freeze && Object.freeze(Y);
@@ -239,7 +239,7 @@ function Pr() {
239
239
  var vA = Object.keys(x).filter(function(me) {
240
240
  return me !== "key";
241
241
  });
242
- L = 0 < vA.length ? "{key: someKey, " + vA.join(": ..., ") + ": ...}" : "{key: someKey}", AA[Y + L] || (vA = 0 < vA.length ? "{" + vA.join(": ..., ") + ": ...}" : "{}", console.error(
242
+ L = 0 < vA.length ? "{key: someKey, " + vA.join(": ..., ") + ": ...}" : "{key: someKey}", eA[Y + L] || (vA = 0 < vA.length ? "{" + vA.join(": ..., ") + ": ...}" : "{}", console.error(
243
243
  `A props object containing a "key" prop is being spread into JSX:
244
244
  let props = %s;
245
245
  <%s {...props} />
@@ -250,7 +250,7 @@ React keys must be passed directly to JSX without using spread:
250
250
  Y,
251
251
  vA,
252
252
  Y
253
- ), AA[Y + L] = !0);
253
+ ), eA[Y + L] = !0);
254
254
  }
255
255
  if (Y = null, M !== void 0 && (r(M), Y = "" + M), s(x) && (r(x.key), Y = "" + x.key), "key" in x) {
256
256
  M = {};
@@ -274,7 +274,7 @@ React keys must be passed directly to JSX without using spread:
274
274
  function g(f) {
275
275
  typeof f == "object" && f !== null && f.$$typeof === w && f._store && (f._store.validated = 1);
276
276
  }
277
- var v = Er, w = Symbol.for("react.transitional.element"), C = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), h = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), T = Symbol.for("react.activity"), rA = Symbol.for("react.client.reference"), N = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, $ = Array.isArray, K = console.createTask ? console.createTask : function() {
277
+ var v = Er, w = Symbol.for("react.transitional.element"), C = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), h = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), T = Symbol.for("react.activity"), X = Symbol.for("react.client.reference"), Z = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, K = Array.isArray, AA = console.createTask ? console.createTask : function() {
278
278
  return null;
279
279
  };
280
280
  v = {
@@ -282,12 +282,12 @@ React keys must be passed directly to JSX without using spread:
282
282
  return f();
283
283
  }
284
284
  };
285
- var X, Z = {}, q = v["react-stack-bottom-frame"].bind(
285
+ var _, V = {}, q = v["react-stack-bottom-frame"].bind(
286
286
  v,
287
287
  i
288
- )(), U = K(n(i)), AA = {};
288
+ )(), U = AA(n(i)), eA = {};
289
289
  QA.Fragment = u, QA.jsx = function(f, x, M, L, P) {
290
- var tA = 1e4 > N.recentlyCreatedOwnerStacks++;
290
+ var tA = 1e4 > Z.recentlyCreatedOwnerStacks++;
291
291
  return p(
292
292
  f,
293
293
  x,
@@ -296,10 +296,10 @@ React keys must be passed directly to JSX without using spread:
296
296
  L,
297
297
  P,
298
298
  tA ? Error("react-stack-top-frame") : q,
299
- tA ? K(n(f)) : U
299
+ tA ? AA(n(f)) : U
300
300
  );
301
301
  }, QA.jsxs = function(f, x, M, L, P) {
302
- var tA = 1e4 > N.recentlyCreatedOwnerStacks++;
302
+ var tA = 1e4 > Z.recentlyCreatedOwnerStacks++;
303
303
  return p(
304
304
  f,
305
305
  x,
@@ -308,7 +308,7 @@ React keys must be passed directly to JSX without using spread:
308
308
  L,
309
309
  P,
310
310
  tA ? Error("react-stack-top-frame") : q,
311
- tA ? K(n(f)) : U
311
+ tA ? AA(n(f)) : U
312
312
  );
313
313
  };
314
314
  }()), QA;
@@ -360,7 +360,7 @@ var Hr = /* @__PURE__ */ function() {
360
360
  }, A;
361
361
  }(), nA = "-ms-", se = "-moz-", H = "-webkit-", D1 = "comm", _e = "rule", $e = "decl", Or = "@import", H1 = "@keyframes", Qr = "@layer", Vr = Math.abs, ge = String.fromCharCode, Fr = Object.assign;
362
362
  function Nr(A, e) {
363
- return eA(A, 0) ^ 45 ? (((e << 2 ^ eA(A, 0)) << 2 ^ eA(A, 1)) << 2 ^ eA(A, 2)) << 2 ^ eA(A, 3) : 0;
363
+ return rA(A, 0) ^ 45 ? (((e << 2 ^ rA(A, 0)) << 2 ^ rA(A, 1)) << 2 ^ rA(A, 2)) << 2 ^ rA(A, 3) : 0;
364
364
  }
365
365
  function O1(A) {
366
366
  return A.trim();
@@ -374,7 +374,7 @@ function O(A, e, r) {
374
374
  function De(A, e) {
375
375
  return A.indexOf(e);
376
376
  }
377
- function eA(A, e) {
377
+ function rA(A, e) {
378
378
  return A.charCodeAt(e) | 0;
379
379
  }
380
380
  function GA(A, e, r) {
@@ -403,13 +403,13 @@ function zr() {
403
403
  return W;
404
404
  }
405
405
  function Jr() {
406
- return W = lA > 0 ? eA(LA, --lA) : 0, TA--, W === 10 && (TA = 1, he--), W;
406
+ return W = lA > 0 ? rA(LA, --lA) : 0, TA--, W === 10 && (TA = 1, he--), W;
407
407
  }
408
408
  function dA() {
409
- return W = lA < Q1 ? eA(LA, lA++) : 0, TA++, W === 10 && (TA = 1, he++), W;
409
+ return W = lA < Q1 ? rA(LA, lA++) : 0, TA++, W === 10 && (TA = 1, he++), W;
410
410
  }
411
411
  function xA() {
412
- return eA(LA, lA);
412
+ return rA(LA, lA);
413
413
  }
414
414
  function re() {
415
415
  return lA;
@@ -515,7 +515,7 @@ function ne(A, e, r, n, o, i, s, a, c) {
515
515
  switch (C = S, S = dA()) {
516
516
  // (
517
517
  case 40:
518
- if (C != 108 && eA(E, g - 1) == 58) {
518
+ if (C != 108 && rA(E, g - 1) == 58) {
519
519
  De(E += O(te(S), "&", "&\f"), "&\f") != -1 && (I = -1);
520
520
  break;
521
521
  }
@@ -572,7 +572,7 @@ function ne(A, e, r, n, o, i, s, a, c) {
572
572
  if (p === 0)
573
573
  ne(E, e, k, k, y, i, g, a, l);
574
574
  else
575
- switch (v === 99 && eA(E, 3) === 110 ? 100 : v) {
575
+ switch (v === 99 && rA(E, 3) === 110 ? 100 : v) {
576
576
  // d l m s
577
577
  case 100:
578
578
  case 108:
@@ -815,13 +815,13 @@ function N1(A, e) {
815
815
  case 5789:
816
816
  case 5021:
817
817
  case 4765:
818
- if (hA(A) - 1 - e > 6) switch (eA(A, e + 1)) {
818
+ if (hA(A) - 1 - e > 6) switch (rA(A, e + 1)) {
819
819
  // (m)ax-content, (m)in-content
820
820
  case 109:
821
- if (eA(A, e + 4) !== 45) break;
821
+ if (rA(A, e + 4) !== 45) break;
822
822
  // (f)ill-available, (f)it-content
823
823
  case 102:
824
- return O(A, /(.+:)(.+)-([^]+)/, "$1" + H + "$2-$3$1" + se + (eA(A, e + 3) == 108 ? "$3" : "$2-$3")) + A;
824
+ return O(A, /(.+:)(.+)-([^]+)/, "$1" + H + "$2-$3$1" + se + (rA(A, e + 3) == 108 ? "$3" : "$2-$3")) + A;
825
825
  // (s)tretch
826
826
  case 115:
827
827
  return ~De(A, "stretch") ? N1(O(A, "stretch", "fill-available"), e) + A : A;
@@ -829,21 +829,21 @@ function N1(A, e) {
829
829
  break;
830
830
  // position: sticky
831
831
  case 4949:
832
- if (eA(A, e + 1) !== 115) break;
832
+ if (rA(A, e + 1) !== 115) break;
833
833
  // display: (flex|inline-flex)
834
834
  case 6444:
835
- switch (eA(A, hA(A) - 3 - (~De(A, "!important") && 10))) {
835
+ switch (rA(A, hA(A) - 3 - (~De(A, "!important") && 10))) {
836
836
  // stic(k)y
837
837
  case 107:
838
838
  return O(A, ":", ":" + H) + A;
839
839
  // (inline-)?fl(e)x
840
840
  case 101:
841
- return O(A, /(.+:)([^;!]+)(;|!.+)?/, "$1" + H + (eA(A, 14) === 45 ? "inline-" : "") + "box$3$1" + H + "$2$3$1" + nA + "$2box$3") + A;
841
+ return O(A, /(.+:)([^;!]+)(;|!.+)?/, "$1" + H + (rA(A, 14) === 45 ? "inline-" : "") + "box$3$1" + H + "$2$3$1" + nA + "$2box$3") + A;
842
842
  }
843
843
  break;
844
844
  // writing-mode
845
845
  case 5936:
846
- switch (eA(A, e + 11)) {
846
+ switch (rA(A, e + 11)) {
847
847
  // vertical-l(r)
848
848
  case 114:
849
849
  return H + A + nA + O(A, /[svh]\w+-[tblr]{2}/, "tb") + A;
@@ -936,7 +936,7 @@ var it = function(e, r, n, o) {
936
936
  insert: c
937
937
  };
938
938
  return C.sheet.hydrate(a), C;
939
- }, ee = { exports: {} }, V = {};
939
+ }, ee = { exports: {} }, F = {};
940
940
  /** @license React v16.13.1
941
941
  * react-is.production.min.js
942
942
  *
@@ -947,7 +947,7 @@ var it = function(e, r, n, o) {
947
947
  */
948
948
  var c1;
949
949
  function lt() {
950
- if (c1) return V;
950
+ if (c1) return F;
951
951
  c1 = 1;
952
952
  var A = typeof Symbol == "function" && Symbol.for, e = A ? Symbol.for("react.element") : 60103, r = A ? Symbol.for("react.portal") : 60106, n = A ? Symbol.for("react.fragment") : 60107, o = A ? Symbol.for("react.strict_mode") : 60108, i = A ? Symbol.for("react.profiler") : 60114, s = A ? Symbol.for("react.provider") : 60109, a = A ? Symbol.for("react.context") : 60110, c = A ? Symbol.for("react.async_mode") : 60111, d = A ? Symbol.for("react.concurrent_mode") : 60111, p = A ? Symbol.for("react.forward_ref") : 60112, g = A ? Symbol.for("react.suspense") : 60113, v = A ? Symbol.for("react.suspense_list") : 60120, w = A ? Symbol.for("react.memo") : 60115, C = A ? Symbol.for("react.lazy") : 60116, u = A ? Symbol.for("react.block") : 60121, b = A ? Symbol.for("react.fundamental") : 60117, I = A ? Symbol.for("react.responder") : 60118, S = A ? Symbol.for("react.scope") : 60119;
953
953
  function h(l) {
@@ -983,35 +983,35 @@ function lt() {
983
983
  function y(l) {
984
984
  return h(l) === d;
985
985
  }
986
- return V.AsyncMode = c, V.ConcurrentMode = d, V.ContextConsumer = a, V.ContextProvider = s, V.Element = e, V.ForwardRef = p, V.Fragment = n, V.Lazy = C, V.Memo = w, V.Portal = r, V.Profiler = i, V.StrictMode = o, V.Suspense = g, V.isAsyncMode = function(l) {
986
+ return F.AsyncMode = c, F.ConcurrentMode = d, F.ContextConsumer = a, F.ContextProvider = s, F.Element = e, F.ForwardRef = p, F.Fragment = n, F.Lazy = C, F.Memo = w, F.Portal = r, F.Profiler = i, F.StrictMode = o, F.Suspense = g, F.isAsyncMode = function(l) {
987
987
  return y(l) || h(l) === c;
988
- }, V.isConcurrentMode = y, V.isContextConsumer = function(l) {
988
+ }, F.isConcurrentMode = y, F.isContextConsumer = function(l) {
989
989
  return h(l) === a;
990
- }, V.isContextProvider = function(l) {
990
+ }, F.isContextProvider = function(l) {
991
991
  return h(l) === s;
992
- }, V.isElement = function(l) {
992
+ }, F.isElement = function(l) {
993
993
  return typeof l == "object" && l !== null && l.$$typeof === e;
994
- }, V.isForwardRef = function(l) {
994
+ }, F.isForwardRef = function(l) {
995
995
  return h(l) === p;
996
- }, V.isFragment = function(l) {
996
+ }, F.isFragment = function(l) {
997
997
  return h(l) === n;
998
- }, V.isLazy = function(l) {
998
+ }, F.isLazy = function(l) {
999
999
  return h(l) === C;
1000
- }, V.isMemo = function(l) {
1000
+ }, F.isMemo = function(l) {
1001
1001
  return h(l) === w;
1002
- }, V.isPortal = function(l) {
1002
+ }, F.isPortal = function(l) {
1003
1003
  return h(l) === r;
1004
- }, V.isProfiler = function(l) {
1004
+ }, F.isProfiler = function(l) {
1005
1005
  return h(l) === i;
1006
- }, V.isStrictMode = function(l) {
1006
+ }, F.isStrictMode = function(l) {
1007
1007
  return h(l) === o;
1008
- }, V.isSuspense = function(l) {
1008
+ }, F.isSuspense = function(l) {
1009
1009
  return h(l) === g;
1010
- }, V.isValidElementType = function(l) {
1010
+ }, F.isValidElementType = function(l) {
1011
1011
  return typeof l == "string" || typeof l == "function" || l === n || l === d || l === i || l === o || l === g || l === v || typeof l == "object" && l !== null && (l.$$typeof === C || l.$$typeof === w || l.$$typeof === s || l.$$typeof === a || l.$$typeof === p || l.$$typeof === b || l.$$typeof === I || l.$$typeof === S || l.$$typeof === u);
1012
- }, V.typeOf = h, V;
1012
+ }, F.typeOf = h, F;
1013
1013
  }
1014
- var F = {};
1014
+ var N = {};
1015
1015
  /** @license React v16.13.1
1016
1016
  * react-is.development.js
1017
1017
  *
@@ -1060,8 +1060,8 @@ function ct() {
1060
1060
  }
1061
1061
  }
1062
1062
  }
1063
- var l = c, k = d, E = a, D = s, T = e, rA = p, N = n, J = C, $ = w, K = r, X = i, Z = o, q = g, U = !1;
1064
- function AA(B) {
1063
+ var l = c, k = d, E = a, D = s, T = e, X = p, Z = n, J = C, K = w, AA = r, _ = i, V = o, q = g, U = !1;
1064
+ function eA(B) {
1065
1065
  return U || (U = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), f(B) || y(B) === c;
1066
1066
  }
1067
1067
  function f(B) {
@@ -1100,8 +1100,8 @@ function ct() {
1100
1100
  function me(B) {
1101
1101
  return y(B) === g;
1102
1102
  }
1103
- F.AsyncMode = l, F.ConcurrentMode = k, F.ContextConsumer = E, F.ContextProvider = D, F.Element = T, F.ForwardRef = rA, F.Fragment = N, F.Lazy = J, F.Memo = $, F.Portal = K, F.Profiler = X, F.StrictMode = Z, F.Suspense = q, F.isAsyncMode = AA, F.isConcurrentMode = f, F.isContextConsumer = x, F.isContextProvider = M, F.isElement = L, F.isForwardRef = P, F.isFragment = tA, F.isLazy = aA, F.isMemo = bA, F.isPortal = Y, F.isProfiler = vA, F.isStrictMode = HA, F.isSuspense = me, F.isValidElementType = h, F.typeOf = y;
1104
- }()), F;
1103
+ N.AsyncMode = l, N.ConcurrentMode = k, N.ContextConsumer = E, N.ContextProvider = D, N.Element = T, N.ForwardRef = X, N.Fragment = Z, N.Lazy = J, N.Memo = K, N.Portal = AA, N.Profiler = _, N.StrictMode = V, N.Suspense = q, N.isAsyncMode = eA, N.isConcurrentMode = f, N.isContextConsumer = x, N.isContextProvider = M, N.isElement = L, N.isForwardRef = P, N.isFragment = tA, N.isLazy = aA, N.isMemo = bA, N.isPortal = Y, N.isProfiler = vA, N.isStrictMode = HA, N.isSuspense = me, N.isValidElementType = h, N.typeOf = y;
1104
+ }()), N;
1105
1105
  }
1106
1106
  var p1;
1107
1107
  function dt() {
@@ -2533,7 +2533,7 @@ const C1 = 32, Mt = 24, Rt = 105, Pt = 24, Tt = 195, Lt = 44, Dt = 147, Ht = ()
2533
2533
  emptyText: r,
2534
2534
  typographyProps: n = { color: "text.secondary", variant: "body2" },
2535
2535
  skeletonProps: o
2536
- }) => A ? /* @__PURE__ */ t(z, { ...n, children: /* @__PURE__ */ t(cA, { ...o }) }) : e ? /* @__PURE__ */ t(z, { ...n, children: e }) : /* @__PURE__ */ t(z, { ...n, color: "text.disabled", children: r }), _ = {
2536
+ }) => A ? /* @__PURE__ */ t(z, { ...n, children: /* @__PURE__ */ t(cA, { ...o }) }) : e ? /* @__PURE__ */ t(z, { ...n, children: e }) : /* @__PURE__ */ t(z, { ...n, color: "text.disabled", children: r }), $ = {
2537
2537
  large: {
2538
2538
  primary: 40,
2539
2539
  secondary: 32
@@ -2547,32 +2547,32 @@ const C1 = 32, Mt = 24, Rt = 105, Pt = 24, Tt = 195, Lt = 44, Dt = 147, Ht = ()
2547
2547
  secondary: 16
2548
2548
  }
2549
2549
  }, Ve = (A) => A !== void 0 && typeof A == "object" && !Array.isArray(A), de = (A) => {
2550
- if (A === void 0) return _.medium.primary;
2550
+ if (A === void 0) return $.medium.primary;
2551
2551
  if (typeof A == "number")
2552
2552
  return A;
2553
2553
  const e = parseFloat(A);
2554
- return Number.isNaN(e) ? _.medium.primary : e;
2554
+ return Number.isNaN(e) ? $.medium.primary : e;
2555
2555
  }, tn = (A, e) => {
2556
2556
  if (e)
2557
2557
  return {
2558
- height: _[e].secondary,
2559
- width: _[e].secondary
2558
+ height: $[e].secondary,
2559
+ width: $[e].secondary
2560
2560
  };
2561
2561
  if (Ve(A)) {
2562
2562
  const { height: r, width: n } = A;
2563
2563
  return {
2564
- height: Math.max(de(r) - (_.medium.primary - _.medium.secondary), _.small.secondary),
2565
- width: Math.max(de(n) - (_.medium.primary - _.medium.secondary), _.small.secondary)
2564
+ height: Math.max(de(r) - ($.medium.primary - $.medium.secondary), $.small.secondary),
2565
+ width: Math.max(de(n) - ($.medium.primary - $.medium.secondary), $.small.secondary)
2566
2566
  };
2567
2567
  }
2568
2568
  return {
2569
- height: _.medium.secondary,
2570
- width: _.medium.secondary
2569
+ height: $.medium.secondary,
2570
+ width: $.medium.secondary
2571
2571
  };
2572
2572
  }, G1 = iA(
2573
2573
  ({ secondarySrc: A, secondaryAvatarProps: e, size: r, ...n }, o) => {
2574
2574
  if (A || e) {
2575
- const i = r ? _[r].primary : de(Ve(n.sx) ? n.sx.width : void 0), s = r ? _[r].primary : de(Ve(n.sx) ? n.sx.height : void 0), a = tn(n?.sx, r), c = a.width / 3, d = a.height / 3;
2575
+ const i = r ? $[r].primary : de(Ve(n.sx) ? n.sx.width : void 0), s = r ? $[r].primary : de(Ve(n.sx) ? n.sx.height : void 0), a = tn(n?.sx, r), c = a.width / 3, d = a.height / 3;
2576
2576
  return /* @__PURE__ */ m(
2577
2577
  R,
2578
2578
  {
@@ -2590,8 +2590,8 @@ const C1 = 32, Mt = 24, Rt = 105, Pt = 24, Tt = 195, Lt = 44, Dt = 147, Ht = ()
2590
2590
  ref: o,
2591
2591
  sx: {
2592
2592
  ...r && {
2593
- height: _[r].primary,
2594
- width: _[r].primary
2593
+ height: $[r].primary,
2594
+ width: $[r].primary
2595
2595
  },
2596
2596
  ...n.sx
2597
2597
  }
@@ -2623,7 +2623,7 @@ const C1 = 32, Mt = 24, Rt = 105, Pt = 24, Tt = 195, Lt = 44, Dt = 147, Ht = ()
2623
2623
  ...n,
2624
2624
  ref: o,
2625
2625
  sx: {
2626
- ...r && { height: _[r].primary, width: _[r].primary },
2626
+ ...r && { height: $[r].primary, width: $[r].primary },
2627
2627
  ...n.sx
2628
2628
  }
2629
2629
  }
@@ -2801,30 +2801,30 @@ const nn = (A, e) => {
2801
2801
  height: C = 152,
2802
2802
  width: u = 220
2803
2803
  }) => {
2804
- const [b, I] = G(!1), [S, h] = G(!1), [y, l] = G(!0), k = A?.toLowerCase(), E = !k?.endsWith(".pdf") && !k?.startsWith("blob:") && !k?.endsWith(".eml"), D = k?.endsWith(".pdf"), T = c ? 1 : 0.8, rA = d ? !0 : !y, N = Fe(A) || Fe(e), J = (E || D) && !N && rA && !S && !c && A, $ = A?.split(".").pop()?.toLowerCase(), K = r || A?.split("/").pop()?.split("?")[0] || "", X = () => N ? q1 : S ? an : e || A || void 0, Z = () => {
2804
+ const [b, I] = G(!1), [S, h] = G(!1), [y, l] = G(!0), k = A?.toLowerCase(), E = !k?.endsWith(".pdf") && !k?.startsWith("blob:") && !k?.endsWith(".eml"), D = k?.endsWith(".pdf"), T = c ? 1 : 0.8, X = d ? !0 : !y, Z = Fe(A) || Fe(e), J = (E || D) && !Z && X && !S && !c && A, K = A?.split(".").pop()?.toLowerCase(), AA = r || A?.split("/").pop()?.split("?")[0] || "", _ = () => Z ? q1 : S ? an : e || A || void 0, V = () => {
2805
2805
  I((x) => !x);
2806
2806
  }, q = () => {
2807
2807
  I(!1), g?.();
2808
2808
  }, U = () => {
2809
2809
  h(!0);
2810
- }, AA = () => {
2810
+ }, eA = () => {
2811
2811
  l(!1);
2812
2812
  };
2813
2813
  return /* @__PURE__ */ m(mA, { children: [
2814
- !d && !n && /* @__PURE__ */ t(Be, { title: N ? K : "", children: /* @__PURE__ */ m(
2814
+ !d && !n && /* @__PURE__ */ t(Be, { title: Z ? AA : "", children: /* @__PURE__ */ m(
2815
2815
  R,
2816
2816
  {
2817
2817
  "data-test": "fileViewer",
2818
2818
  width: u,
2819
2819
  height: C,
2820
2820
  onClick: async () => {
2821
- if (N && A) {
2821
+ if (Z && A) {
2822
2822
  const M = await (await fetch(A)).blob(), L = window.URL.createObjectURL(M), P = document.createElement("a");
2823
- P.href = L, P.download = K, P.target = "_blank", document.body.appendChild(P), P.click(), setTimeout(() => {
2823
+ P.href = L, P.download = AA, P.target = "_blank", document.body.appendChild(P), P.click(), setTimeout(() => {
2824
2824
  document.body.removeChild(P), window.URL.revokeObjectURL(L);
2825
2825
  }, 100);
2826
2826
  }
2827
- v?.(), Z();
2827
+ v?.(), V();
2828
2828
  },
2829
2829
  sx: {
2830
2830
  ...FA.container,
@@ -2842,18 +2842,18 @@ const nn = (A, e) => {
2842
2842
  width: "100%",
2843
2843
  component: E ? "img" : "iframe",
2844
2844
  height: E ? "100%" : "auto",
2845
- src: X(),
2845
+ src: _(),
2846
2846
  onError: U,
2847
- onLoad: AA,
2847
+ onLoad: eA,
2848
2848
  sx: {
2849
2849
  ...FA.thumb,
2850
- objectFit: N ? "contain" : "cover",
2851
- padding: N ? "15%" : 0
2850
+ objectFit: Z ? "contain" : "cover",
2851
+ padding: Z ? "15%" : 0
2852
2852
  }
2853
2853
  },
2854
- X()
2854
+ _()
2855
2855
  ),
2856
- N && /* @__PURE__ */ t(z, { sx: FA.extension, variant: "body3", color: "black", children: $ })
2856
+ Z && /* @__PURE__ */ t(z, { sx: FA.extension, variant: "body3", color: "black", children: K })
2857
2857
  ]
2858
2858
  }
2859
2859
  ) }),
@@ -2873,7 +2873,7 @@ const nn = (A, e) => {
2873
2873
  n && /* @__PURE__ */ t(
2874
2874
  R,
2875
2875
  {
2876
- onClick: Z,
2876
+ onClick: V,
2877
2877
  sx: {
2878
2878
  ":hover": { opacity: T },
2879
2879
  cursor: "pointer"
@@ -3619,17 +3619,17 @@ const nn = (A, e) => {
3619
3619
  }
3620
3620
  }
3621
3621
  },
3622
- children: h?.map((T, rA) => {
3622
+ children: h?.map((T, X) => {
3623
3623
  if (UA(T)) {
3624
3624
  if (T.key)
3625
3625
  return T;
3626
- const N = `${h}-${rA}`;
3627
- return Xe(T, { key: N });
3626
+ const Z = `${h}-${X}`;
3627
+ return Xe(T, { key: Z });
3628
3628
  }
3629
3629
  if (T && typeof T == "object" && "url" in T) {
3630
- const { url: N, label: J, icon: $, active: K, end: X, state: Z } = T, q = `${N}-${J}-${rA}`;
3631
- return /* @__PURE__ */ t(lr, { sx: D.menuItem, onClick: u, children: /* @__PURE__ */ m(A1, { url: N, component: o, active: K, end: X, state: Z, children: [
3632
- $ && /* @__PURE__ */ t(cr, { children: $ }),
3630
+ const { url: Z, label: J, icon: K, active: AA, end: _, state: V } = T, q = `${Z}-${J}-${X}`;
3631
+ return /* @__PURE__ */ t(lr, { sx: D.menuItem, onClick: u, children: /* @__PURE__ */ m(A1, { url: Z, component: o, active: AA, end: _, state: V, children: [
3632
+ K && /* @__PURE__ */ t(cr, { children: K }),
3633
3633
  J && /* @__PURE__ */ t(BA, { children: J })
3634
3634
  ] }, q) }, q);
3635
3635
  }
@@ -4790,28 +4790,30 @@ const nn = (A, e) => {
4790
4790
  value: b,
4791
4791
  variant: I = "vertical"
4792
4792
  }, S) => {
4793
- const [h, y] = G(null), { t: l } = Ar(), { palette: k } = uA(), E = I === "vertical", D = a || e, T = Te(null), rA = Te(null), N = b !== void 0 ? b : h, J = Bn(N);
4794
- kr(S, () => ({
4795
- input: rA.current,
4796
- reset: () => y(null)
4797
- }));
4798
- const $ = (Z) => {
4799
- v?.(Z), y(Z.target.files);
4793
+ const [h, y] = G(null), { t: l } = Ar(), { palette: k } = uA(), E = I === "vertical", D = a || e, T = Te(null), X = Te(null), Z = b !== void 0 ? b : h, J = Bn(Z);
4794
+ kr(S, () => {
4795
+ const V = X.current;
4796
+ return V.reset = () => {
4797
+ y(null), X.current && (X.current.value = "");
4798
+ }, V;
4799
+ });
4800
+ const K = (V) => {
4801
+ v?.(V), y(V.target.files);
4800
4802
  };
4801
4803
  return /* @__PURE__ */ m(
4802
4804
  ur,
4803
4805
  {
4804
4806
  ref: T,
4805
4807
  htmlFor: D,
4806
- onDragOver: (Z) => {
4807
- Z.preventDefault();
4808
+ onDragOver: (V) => {
4809
+ V.preventDefault();
4808
4810
  },
4809
- onDrop: (Z) => {
4810
- if (Z.preventDefault(), Z.dataTransfer.files.length > 0) {
4811
- const q = rA.current, U = Z.dataTransfer.files;
4811
+ onDrop: (V) => {
4812
+ if (V.preventDefault(), V.dataTransfer.files.length > 0) {
4813
+ const q = X.current, U = V.dataTransfer.files;
4812
4814
  y(U);
4813
- const AA = new DataTransfer();
4814
- Array.from(U).forEach((f) => AA.items.add(f)), q && (q.files = AA.files), q?.focus(), q?.blur(), v?.({ ...Z, target: q }), Z.dataTransfer.clearData();
4815
+ const eA = new DataTransfer();
4816
+ Array.from(U).forEach((f) => eA.items.add(f)), q && (q.files = eA.files), q?.focus(), q?.blur(), v?.({ ...V, target: q }), V.dataTransfer.clearData();
4815
4817
  }
4816
4818
  },
4817
4819
  sx: {
@@ -4842,7 +4844,7 @@ const nn = (A, e) => {
4842
4844
  g || /* @__PURE__ */ t(xn, { sx: { height: 40, width: 40 } }),
4843
4845
  J ? /* @__PURE__ */ m(mA, { children: [
4844
4846
  /* @__PURE__ */ m(z, { variant: "body2", color: "textSecondary", children: [
4845
- N?.length,
4847
+ Z?.length,
4846
4848
  " ",
4847
4849
  i?.files || l("files")
4848
4850
  ] }),
@@ -4870,7 +4872,7 @@ const nn = (A, e) => {
4870
4872
  "input",
4871
4873
  {
4872
4874
  id: D,
4873
- ref: rA,
4875
+ ref: X,
4874
4876
  type: "file",
4875
4877
  title: u,
4876
4878
  disabled: r,
@@ -4879,7 +4881,7 @@ const nn = (A, e) => {
4879
4881
  multiple: s,
4880
4882
  accept: A,
4881
4883
  pattern: C,
4882
- onChange: $,
4884
+ onChange: K,
4883
4885
  style: {
4884
4886
  left: "50%",
4885
4887
  opacity: 0,
@@ -4956,22 +4958,22 @@ const nn = (A, e) => {
4956
4958
  children: [
4957
4959
  r?.map(
4958
4960
  ({ id: g, title: v, subtitle: w, image: C, thumbnail: u, secondaryAction: b, chipLabel: I, chipColor: S, onClick: h, icon: y, Avatar: l }, k) => {
4959
- const E = `key-${k}-${v}-${g}`, D = !!C?.toLowerCase()?.endsWith(".pdf"), T = B1(C), rA = B1(u), N = Fe(C), J = h ? "none" : void 0, $ = a || !!y || !T || N, K = !!h || !!(!h && !a && (u || C)), X = d === E, U = (rA ? u : "") || (T ? C : "") || "";
4961
+ const E = `key-${k}-${v}-${g}`, D = !!C?.toLowerCase()?.endsWith(".pdf"), T = B1(C), X = B1(u), Z = Fe(C), J = h ? "none" : void 0, K = a || !!y || !T || Z, AA = !!h || !!(!h && !a && (u || C)), _ = d === E, U = (X ? u : "") || (T ? C : "") || "";
4960
4962
  return /* @__PURE__ */ m(
4961
4963
  EA,
4962
4964
  {
4963
4965
  secondaryAction: b,
4964
- onClick: (AA) => {
4965
- h?.(AA, {
4966
+ onClick: (eA) => {
4967
+ h?.(eA, {
4966
4968
  ...y && { icon: y },
4967
4969
  ...g && { id: g },
4968
4970
  ...C && { image: C },
4969
4971
  ...w && { subtitle: w },
4970
4972
  ...u && { thumbnail: u },
4971
4973
  ...v && { thumbnail: u },
4972
- isFile: N,
4974
+ isFile: Z,
4973
4975
  isPdf: D
4974
- }), K && !X && !h && p(E);
4976
+ }), AA && !_ && !h && p(E);
4975
4977
  },
4976
4978
  sx: {
4977
4979
  ...ZA.listItem,
@@ -4981,16 +4983,16 @@ const nn = (A, e) => {
4981
4983
  justifyContent: "center",
4982
4984
  opacity: i ? 1 : 0,
4983
4985
  position: "static",
4984
- right: ({ spacing: AA }) => AA(0.5),
4986
+ right: ({ spacing: eA }) => eA(0.5),
4985
4987
  transform: "none"
4986
4988
  },
4987
4989
  "&:hover": {
4988
4990
  "& .MuiListItemSecondaryAction-root": {
4989
4991
  opacity: 1
4990
4992
  },
4991
- backgroundColor: ({ palette: AA }) => K ? AA.action.hover : "transparent"
4993
+ backgroundColor: ({ palette: eA }) => AA ? eA.action.hover : "transparent"
4992
4994
  },
4993
- cursor: K ? "pointer" : "default"
4995
+ cursor: AA ? "pointer" : "default"
4994
4996
  },
4995
4997
  children: [
4996
4998
  l !== void 0 && /* @__PURE__ */ t(R, { marginRight: NA, children: l }),
@@ -5003,7 +5005,7 @@ const nn = (A, e) => {
5003
5005
  height: 40,
5004
5006
  sx: { borderRadius: 1, marginRight: NA },
5005
5007
  disableLightbox: a,
5006
- open: X,
5008
+ open: _,
5007
5009
  onClose: () => p("")
5008
5010
  }
5009
5011
  ),
@@ -5013,23 +5015,23 @@ const nn = (A, e) => {
5013
5015
  disableThumb: !0,
5014
5016
  src: C,
5015
5017
  srcThumb: u,
5016
- disableLightbox: $,
5017
- open: X,
5018
+ disableLightbox: K,
5019
+ open: _,
5018
5020
  onClose: () => p(""),
5019
5021
  children: /* @__PURE__ */ t(
5020
5022
  kA,
5021
5023
  {
5022
- src: N ? q1 : U,
5024
+ src: Z ? q1 : U,
5023
5025
  variant: "rounded",
5024
5026
  sx: { marginRight: NA },
5025
5027
  slotProps: {
5026
5028
  img: {
5027
5029
  sx: {
5028
- ...N && { padding: "15%" }
5030
+ ...Z && { padding: "15%" }
5029
5031
  }
5030
5032
  }
5031
5033
  },
5032
- children: !N && (y || typeof v == "string" && (v || "")?.charAt(0).toUpperCase())
5034
+ children: !Z && (y || typeof v == "string" && (v || "")?.charAt(0).toUpperCase())
5033
5035
  }
5034
5036
  )
5035
5037
  }
@@ -5227,19 +5229,19 @@ const nn = (A, e) => {
5227
5229
  multiple: E = !0,
5228
5230
  options: D = [],
5229
5231
  slotProps: T,
5230
- ...rA
5231
- }, N) => {
5232
- const [J, $] = G(!1), [K, X] = G(""), Z = w || K, q = A === "chip", U = Array.isArray(a) ? !!a.length : a != null, AA = Rn(a, E);
5232
+ ...X
5233
+ }, Z) => {
5234
+ const [J, K] = G(!1), [AA, _] = G(""), V = w || AA, q = A === "chip", U = Array.isArray(a) ? !!a.length : a != null, eA = Rn(a, E);
5233
5235
  return /* @__PURE__ */ t(
5234
5236
  gr,
5235
5237
  {
5236
5238
  freeSolo: !1,
5237
5239
  multiple: E,
5238
5240
  disableClearable: C,
5239
- value: AA,
5241
+ value: eA,
5240
5242
  options: D,
5241
5243
  loading: u,
5242
- ref: N,
5244
+ ref: Z,
5243
5245
  size: l,
5244
5246
  disableCloseOnSelect: k,
5245
5247
  onChange: (x, M, L, P) => {
@@ -5247,12 +5249,12 @@ const nn = (A, e) => {
5247
5249
  e?.(x, E ? [] : null, L, P);
5248
5250
  return;
5249
5251
  }
5250
- e?.(x, M, L, P), (!k || !E) && $(!1);
5252
+ e?.(x, M, L, P), (!k || !E) && K(!1);
5251
5253
  },
5252
5254
  getLimitTagsText: Pn(A),
5253
- inputValue: Z,
5255
+ inputValue: V,
5254
5256
  open: p || J,
5255
- onOpen: () => $(!0),
5257
+ onOpen: () => K(!0),
5256
5258
  sx: {
5257
5259
  width: h,
5258
5260
  ...y
@@ -5276,13 +5278,13 @@ const nn = (A, e) => {
5276
5278
  }
5277
5279
  },
5278
5280
  onInputChange: (x, M, L) => {
5279
- L === "reset" && J && !b || L === "selectOption" && !b || L === "removeOption" && !b || (w || X(M), v?.(x, M, L));
5281
+ L === "reset" && J && !b || L === "selectOption" && !b || L === "removeOption" && !b || (w || _(M), v?.(x, M, L));
5280
5282
  },
5281
5283
  onFocus: (x) => {
5282
- $(!0), c?.(x);
5284
+ K(!0), c?.(x);
5283
5285
  },
5284
5286
  onBlur: (x) => {
5285
- $(!1), d?.(x);
5287
+ K(!1), d?.(x);
5286
5288
  },
5287
5289
  getOptionLabel: g || ((x) => {
5288
5290
  const M = typeof x == "object" && "label" in x ? x.label : x;
@@ -5328,12 +5330,12 @@ const nn = (A, e) => {
5328
5330
  transition: "transform 0.2s ease-in-out"
5329
5331
  },
5330
5332
  children: [
5331
- (Z || U) && !C && /* @__PURE__ */ t(
5333
+ (V || U) && !C && /* @__PURE__ */ t(
5332
5334
  gA,
5333
5335
  {
5334
5336
  size: "small",
5335
5337
  onClick: (P) => {
5336
- P.preventDefault(), P.stopPropagation(), X(""), v?.(P, "", "clear"), U && e?.(P, E ? [] : null, "clear");
5338
+ P.preventDefault(), P.stopPropagation(), _(""), v?.(P, "", "clear"), U && e?.(P, E ? [] : null, "clear");
5337
5339
  },
5338
5340
  onMouseDown: (P) => {
5339
5341
  P.preventDefault(), P.stopPropagation();
@@ -5368,7 +5370,7 @@ const nn = (A, e) => {
5368
5370
  sx: {
5369
5371
  cursor: "pointer",
5370
5372
  transition: "opacity 0.2s ease-in-out",
5371
- ...(Z || U) && !C && {
5373
+ ...(V || U) && !C && {
5372
5374
  ".MuiTextField-root:hover &": {
5373
5375
  opacity: 0
5374
5376
  }
@@ -5387,12 +5389,12 @@ const nn = (A, e) => {
5387
5389
  right: 8
5388
5390
  },
5389
5391
  children: [
5390
- Z && !C && /* @__PURE__ */ t(
5392
+ V && !C && /* @__PURE__ */ t(
5391
5393
  gA,
5392
5394
  {
5393
5395
  size: "small",
5394
5396
  onClick: (P) => {
5395
- X(""), v?.(P, "", "clear");
5397
+ _(""), v?.(P, "", "clear");
5396
5398
  },
5397
5399
  sx: { marginRight: "-3px" },
5398
5400
  children: /* @__PURE__ */ t(le, { sx: { fontSize: j(20) } })
@@ -5407,7 +5409,7 @@ const nn = (A, e) => {
5407
5409
  {
5408
5410
  sx: {
5409
5411
  "& .MuiInputBase-root .MuiInputBase-input": {
5410
- flex: !E || !J && !Z || J ? 1 : 0,
5412
+ flex: !E || !J && !V || J ? 1 : 0,
5411
5413
  minWidth: 0
5412
5414
  },
5413
5415
  ...q && {
@@ -5444,7 +5446,7 @@ const nn = (A, e) => {
5444
5446
  }
5445
5447
  );
5446
5448
  },
5447
- ...rA
5449
+ ...X
5448
5450
  }
5449
5451
  );
5450
5452
  }, io = iA(Ln), Dn = ({