@smart-factor/gem-ui-map-component 0.0.36 → 0.0.37

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
@@ -16,7 +16,7 @@ var As = (t, e, n, s) => ({
16
16
  import { jsx as d, jsxs as K, Fragment as Tt } from "react/jsx-runtime";
17
17
  import * as _ from "react";
18
18
  import qe, { useState as ue, forwardRef as ou, useEffect as Ke, useCallback as xt, createContext as iu, useContext as au, useRef as Qo, useMemo as Ys } from "react";
19
- import { a as Mr, g as lu, r as cu, b as uu, c as du, i as pu, t as fu, G as hu, P as r, u as mu, o as _t, d as jt, e as fr, f as ts, T as yu, h as gu, j as bu, k as De, l as Ue, s as ie, m as We, n as ke, p as Me, q as Re, v as ze, w as kl, x as Gt, y as _o, z as ki, A as sn, B as sa, C as ns, D as yt, E as Ei, F as zt, H as El, I as Oi, J as Ri, K as Ii, L as vu, N as rt, O as Pi, Q as Nt, R as Ol, S as Xs, U as xu, V as Us, W as wu, X as Js, Y as Cu, Z as Rl, _ as dn, $ as rs, a0 as Ai, a1 as Fi, a2 as Su, a3 as Tu, a4 as _u, a5 as oa, a6 as ia, a7 as aa, a8 as tn, a9 as ir, aa as Cn, ab as Ni, ac as ku, ad as la, ae as ca, af as Yo, ag as Il, ah as Oe, ai as Fs, aj as ua, ak as Ns, al as it, am as da, an as Eu, ao as Ou, ap as qs, aq as Xe, ar as He, as as eo, at as kt, au as gn, av as Et, aw as Pl, ax as Ts, ay as qn, az as Ru, aA as Pt, aB as ko, aC as Iu, aD as pa, aE as Pu, aF as Au, aG as Vo, aH as fa, aI as Xo, aJ as Fu, aK as ha, aL as Nu, aM as ma, aN as Mu, aO as ya, aP as Jo, aQ as Lu, aR as Mi, aS as Du, aT as to, aU as zu, aV as ju, aW as Vu, aX as $u, aY as Bu, aZ as Uu, a_ as ss, a$ as qu, b0 as Ws, b1 as Wu, b2 as Zu, b3 as Hu, b4 as Gu, b5 as Ku, b6 as Qu, b7 as Yu, b8 as Xu, b9 as Ju, ba as ed, bb as td, M as nd, bc as rd, bd as sd, be as od, bf as id, bg as ad } from "./MapButtons-BBrNnHVQ.js";
19
+ import { a as Mr, g as lu, r as cu, b as uu, c as du, i as pu, t as fu, G as hu, P as r, u as mu, o as _t, d as jt, e as fr, f as ts, T as yu, h as gu, j as bu, k as De, l as Ue, s as ie, m as We, n as ke, p as Me, q as Re, v as ze, w as kl, x as Gt, y as _o, z as ki, A as sn, B as sa, C as ns, D as yt, E as Ei, F as zt, H as El, I as Oi, J as Ri, K as Ii, L as vu, N as rt, O as Pi, Q as Nt, R as Ol, S as Xs, U as xu, V as Us, W as wu, X as Js, Y as Cu, Z as Rl, _ as dn, $ as rs, a0 as Ai, a1 as Fi, a2 as Su, a3 as Tu, a4 as _u, a5 as oa, a6 as ia, a7 as aa, a8 as tn, a9 as ir, aa as Cn, ab as Ni, ac as ku, ad as la, ae as ca, af as Yo, ag as Il, ah as Oe, ai as Fs, aj as ua, ak as Ns, al as it, am as da, an as Eu, ao as Ou, ap as qs, aq as Xe, ar as He, as as eo, at as kt, au as gn, av as Et, aw as Pl, ax as Ts, ay as qn, az as Ru, aA as Pt, aB as ko, aC as Iu, aD as pa, aE as Pu, aF as Au, aG as Vo, aH as fa, aI as Xo, aJ as Fu, aK as ha, aL as Nu, aM as ma, aN as Mu, aO as ya, aP as Jo, aQ as Lu, aR as Mi, aS as Du, aT as to, aU as zu, aV as ju, aW as Vu, aX as $u, aY as Bu, aZ as Uu, a_ as ss, a$ as qu, b0 as Ws, b1 as Wu, b2 as Zu, b3 as Hu, b4 as Gu, b5 as Ku, b6 as Qu, b7 as Yu, b8 as Xu, b9 as Ju, ba as ed, bb as td, M as nd, bc as rd, bd as sd, be as od, bf as id, bg as ad } from "./MapButtons-CFqTDk2i.js";
20
20
  var Lr = class {
21
21
  constructor() {
22
22
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
@@ -301,8 +301,8 @@ function Ll(t) {
301
301
  s || (s = !0, (v = t.onError) == null || v.call(t, w), o == null || o(), i.reject(w));
302
302
  }, g = () => new Promise((w) => {
303
303
  var v;
304
- o = (E) => {
305
- (s || u()) && w(E);
304
+ o = (O) => {
305
+ (s || u()) && w(O);
306
306
  }, (v = t.onPause) == null || v.call(t);
307
307
  }).then(() => {
308
308
  var w;
@@ -314,20 +314,20 @@ function Ll(t) {
314
314
  const v = n === 0 ? t.initialPromise : void 0;
315
315
  try {
316
316
  w = v ?? t.fn();
317
- } catch (E) {
318
- w = Promise.reject(E);
317
+ } catch (O) {
318
+ w = Promise.reject(O);
319
319
  }
320
- Promise.resolve(w).then(p).catch((E) => {
320
+ Promise.resolve(w).then(p).catch((O) => {
321
321
  var M;
322
322
  if (s)
323
323
  return;
324
- const T = t.retry ?? (tr ? 0 : 3), b = t.retryDelay ?? hd, k = typeof b == "function" ? b(n, E) : b, I = T === !0 || typeof T == "number" && n < T || typeof T == "function" && T(n, E);
324
+ const T = t.retry ?? (tr ? 0 : 3), b = t.retryDelay ?? hd, k = typeof b == "function" ? b(n, O) : b, I = T === !0 || typeof T == "number" && n < T || typeof T == "function" && T(n, O);
325
325
  if (e || !I) {
326
- h(E);
326
+ h(O);
327
327
  return;
328
328
  }
329
- n++, (M = t.onFail) == null || M.call(t, n, E), cd(k).then(() => u() ? void 0 : g()).then(() => {
330
- e ? h(E) : x();
329
+ n++, (M = t.onFail) == null || M.call(t, n, O), cd(k).then(() => u() ? void 0 : g()).then(() => {
330
+ e ? h(O) : x();
331
331
  });
332
332
  });
333
333
  };
@@ -817,7 +817,7 @@ var Xt, xl, jl = (xl = class extends Lr {
817
817
  this.execute(this.state.variables);
818
818
  }
819
819
  async execute(e) {
820
- var i, a, l, c, u, f, p, h, g, x, w, v, E, T, b, k, I, M, H, B;
820
+ var i, a, l, c, u, f, p, h, g, x, w, v, O, T, b, k, I, M, H, $;
821
821
  const n = () => {
822
822
  Ce(this, en, Sn).call(this, { type: "continue" });
823
823
  };
@@ -870,8 +870,8 @@ var Xt, xl, jl = (xl = class extends Lr {
870
870
  )), await ((v = (w = this.options).onSettled) == null ? void 0 : v.call(w, j, null, e, this.state.context)), Ce(this, en, Sn).call(this, { type: "success", data: j }), j;
871
871
  } catch (j) {
872
872
  try {
873
- throw await ((T = (E = y(this, gt).config).onError) == null ? void 0 : T.call(
874
- E,
873
+ throw await ((T = (O = y(this, gt).config).onError) == null ? void 0 : T.call(
874
+ O,
875
875
  j,
876
876
  e,
877
877
  this.state.context,
@@ -888,7 +888,7 @@ var Xt, xl, jl = (xl = class extends Lr {
888
888
  this.state.variables,
889
889
  this.state.context,
890
890
  this
891
- )), await ((B = (H = this.options).onSettled) == null ? void 0 : B.call(
891
+ )), await (($ = (H = this.options).onSettled) == null ? void 0 : $.call(
892
892
  H,
893
893
  void 0,
894
894
  j,
@@ -1092,7 +1092,7 @@ function wa(t) {
1092
1092
  w = !0;
1093
1093
  }), e.signal)
1094
1094
  });
1095
- }, E = Fl(e.options, e.fetchOptions), T = async (b, k, I) => {
1095
+ }, O = Fl(e.options, e.fetchOptions), T = async (b, k, I) => {
1096
1096
  if (w)
1097
1097
  return Promise.reject();
1098
1098
  if (k == null && b.pages.length)
@@ -1105,12 +1105,12 @@ function wa(t) {
1105
1105
  meta: e.options.meta
1106
1106
  };
1107
1107
  v(M);
1108
- const H = await E(
1108
+ const H = await O(
1109
1109
  M
1110
- ), { maxPages: B } = e.options, j = I ? dd : ud;
1110
+ ), { maxPages: $ } = e.options, j = I ? dd : ud;
1111
1111
  return {
1112
- pages: j(b.pages, H, B),
1113
- pageParams: j(b.pageParams, k, B)
1112
+ pages: j(b.pages, H, $),
1113
+ pageParams: j(b.pageParams, k, $)
1114
1114
  };
1115
1115
  };
1116
1116
  if (o && i.length) {
@@ -1484,10 +1484,10 @@ var et, En, On, Sr, Tr, Rn, _r, kr, Sl, Cd = (Sl = class {
1484
1484
  }
1485
1485
  let { error: x, errorUpdatedAt: w, status: v } = p;
1486
1486
  g = p.data;
1487
- let E = !1;
1487
+ let O = !1;
1488
1488
  if (n.placeholderData !== void 0 && g === void 0 && v === "pending") {
1489
1489
  let z;
1490
- i != null && i.isPlaceholderData && n.placeholderData === (l == null ? void 0 : l.placeholderData) ? (z = i.data, E = !0) : z = typeof n.placeholderData == "function" ? n.placeholderData(
1490
+ i != null && i.isPlaceholderData && n.placeholderData === (l == null ? void 0 : l.placeholderData) ? (z = i.data, O = !0) : z = typeof n.placeholderData == "function" ? n.placeholderData(
1491
1491
  (j = y(this, Rr)) == null ? void 0 : j.state.data,
1492
1492
  y(this, Rr)
1493
1493
  ) : n.placeholderData, z !== void 0 && (v = "success", g = ri(
@@ -1496,7 +1496,7 @@ var et, En, On, Sr, Tr, Rn, _r, kr, Sl, Cd = (Sl = class {
1496
1496
  n
1497
1497
  ), h = !0);
1498
1498
  }
1499
- if (n.select && g !== void 0 && !E)
1499
+ if (n.select && g !== void 0 && !O)
1500
1500
  if (i && g === (a == null ? void 0 : a.data) && n.select === y(this, Ss))
1501
1501
  g = y(this, Or);
1502
1502
  else
@@ -1506,7 +1506,7 @@ var et, En, On, Sr, Tr, Rn, _r, kr, Sl, Cd = (Sl = class {
1506
1506
  ee(this, Pn, z);
1507
1507
  }
1508
1508
  y(this, Pn) && (x = y(this, Pn), g = y(this, Or), w = Date.now(), v = "error");
1509
- const T = p.fetchStatus === "fetching", b = v === "pending", k = v === "error", I = b && T, M = g !== void 0, B = {
1509
+ const T = p.fetchStatus === "fetching", b = v === "pending", k = v === "error", I = b && T, M = g !== void 0, $ = {
1510
1510
  status: v,
1511
1511
  fetchStatus: p.fetchStatus,
1512
1512
  isPending: b,
@@ -1535,9 +1535,9 @@ var et, En, On, Sr, Tr, Rn, _r, kr, Sl, Cd = (Sl = class {
1535
1535
  };
1536
1536
  if (this.options.experimental_prefetchInRender) {
1537
1537
  const z = (F) => {
1538
- B.status === "error" ? F.reject(B.error) : B.data !== void 0 && F.resolve(B.data);
1538
+ $.status === "error" ? F.reject($.error) : $.data !== void 0 && F.resolve($.data);
1539
1539
  }, U = () => {
1540
- const F = ee(this, In, B.promise = si());
1540
+ const F = ee(this, In, $.promise = si());
1541
1541
  z(F);
1542
1542
  }, N = y(this, In);
1543
1543
  switch (N.status) {
@@ -1545,14 +1545,14 @@ var et, En, On, Sr, Tr, Rn, _r, kr, Sl, Cd = (Sl = class {
1545
1545
  e.queryHash === s.queryHash && z(N);
1546
1546
  break;
1547
1547
  case "fulfilled":
1548
- (B.status === "error" || B.data !== N.value) && U();
1548
+ ($.status === "error" || $.data !== N.value) && U();
1549
1549
  break;
1550
1550
  case "rejected":
1551
- (B.status !== "error" || B.error !== N.reason) && U();
1551
+ ($.status !== "error" || $.error !== N.reason) && U();
1552
1552
  break;
1553
1553
  }
1554
1554
  }
1555
- return B;
1555
+ return $;
1556
1556
  }
1557
1557
  updateResult() {
1558
1558
  const e = y(this, bt), n = this.createResult(y(this, Pe), this.options);
@@ -1788,8 +1788,8 @@ function zd(t, e, n) {
1788
1788
  if (_.useSyncExternalStore(
1789
1789
  _.useCallback(
1790
1790
  (v) => {
1791
- const E = f ? c.subscribe(ut.batchCalls(v)) : hi;
1792
- return c.updateResult(), E;
1791
+ const O = f ? c.subscribe(ut.batchCalls(v)) : hi;
1792
+ return c.updateResult(), O;
1793
1793
  },
1794
1794
  [c, f]
1795
1795
  ),
@@ -2068,12 +2068,12 @@ const Ql = /* @__PURE__ */ _.forwardRef(function(e, n) {
2068
2068
  };
2069
2069
  k.style.width = M.width, k.value = b.value || e.placeholder || "x", k.value.slice(-1) === `
2070
2070
  ` && (k.value += " ");
2071
- const H = M.boxSizing, B = Ls(M.paddingBottom) + Ls(M.paddingTop), j = Ls(M.borderBottomWidth) + Ls(M.borderTopWidth), z = k.scrollHeight;
2071
+ const H = M.boxSizing, $ = Ls(M.paddingBottom) + Ls(M.paddingTop), j = Ls(M.borderBottomWidth) + Ls(M.borderTopWidth), z = k.scrollHeight;
2072
2072
  k.value = "x";
2073
2073
  const U = k.scrollHeight;
2074
2074
  let N = z;
2075
2075
  i && (N = Math.max(Number(i) * U, N)), o && (N = Math.min(Number(o) * U, N)), N = Math.max(N, U);
2076
- const F = N + (H === "border-box" ? B + j : 0), L = Math.abs(N - z) <= 1;
2076
+ const F = N + (H === "border-box" ? $ + j : 0), L = Math.abs(N - z) <= 1;
2077
2077
  return {
2078
2078
  outerHeightStyle: F,
2079
2079
  overflowing: L
@@ -2090,7 +2090,7 @@ const Ql = /* @__PURE__ */ _.forwardRef(function(e, n) {
2090
2090
  return;
2091
2091
  const I = k.outerHeightStyle;
2092
2092
  h.current !== I && (h.current = I, b.style.height = `${I}px`), b.style.overflow = k.overflowing ? "hidden" : "";
2093
- }, [x]), E = _.useRef(-1);
2093
+ }, [x]), O = _.useRef(-1);
2094
2094
  ts(() => {
2095
2095
  const b = Kl(v), k = f == null ? void 0 : f.current;
2096
2096
  if (!k)
@@ -2099,11 +2099,11 @@ const Ql = /* @__PURE__ */ _.forwardRef(function(e, n) {
2099
2099
  I.addEventListener("resize", b);
2100
2100
  let M;
2101
2101
  return typeof ResizeObserver < "u" && (M = new ResizeObserver(() => {
2102
- w() && (M.unobserve(k), cancelAnimationFrame(E.current), v(), E.current = requestAnimationFrame(() => {
2102
+ w() && (M.unobserve(k), cancelAnimationFrame(O.current), v(), O.current = requestAnimationFrame(() => {
2103
2103
  M.observe(k);
2104
2104
  }));
2105
2105
  }), M.observe(k)), () => {
2106
- b.clear(), cancelAnimationFrame(E.current), I.removeEventListener("resize", b), M && M.disconnect();
2106
+ b.clear(), cancelAnimationFrame(O.current), I.removeEventListener("resize", b), M && M.disconnect();
2107
2107
  };
2108
2108
  }, [x, v, w]), ts(() => {
2109
2109
  v();
@@ -2453,14 +2453,14 @@ const Oo = (t, e) => {
2453
2453
  endAdornment: x,
2454
2454
  error: w,
2455
2455
  fullWidth: v = !1,
2456
- id: E,
2456
+ id: O,
2457
2457
  inputComponent: T = "input",
2458
2458
  inputProps: b = {},
2459
2459
  inputRef: k,
2460
2460
  margin: I,
2461
2461
  maxRows: M,
2462
2462
  minRows: H,
2463
- multiline: B = !1,
2463
+ multiline: $ = !1,
2464
2464
  name: j,
2465
2465
  onBlur: z,
2466
2466
  onChange: U,
@@ -2478,7 +2478,7 @@ const Oo = (t, e) => {
2478
2478
  startAdornment: ve,
2479
2479
  type: Ie = "text",
2480
2480
  value: D,
2481
- ...$
2481
+ ...B
2482
2482
  } = s, re = b.value != null ? b.value : D, {
2483
2483
  current: Te
2484
2484
  } = _.useRef(re != null), ye = _.useRef(), oe = _.useCallback((Q) => {
@@ -2527,7 +2527,7 @@ const Oo = (t, e) => {
2527
2527
  ye.current && Q.currentTarget === Q.target && ye.current.focus(), N && N(Q);
2528
2528
  };
2529
2529
  let R = T, P = b;
2530
- B && R === "input" && (Y ? (process.env.NODE_ENV !== "production" && (H || M) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), P = {
2530
+ $ && R === "input" && (Y ? (process.env.NODE_ENV !== "production" && (H || M) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), P = {
2531
2531
  type: void 0,
2532
2532
  minRows: Y,
2533
2533
  maxRows: Y,
@@ -2556,11 +2556,11 @@ const Oo = (t, e) => {
2556
2556
  formControl: be,
2557
2557
  fullWidth: v,
2558
2558
  hiddenLabel: je.hiddenLabel,
2559
- multiline: B,
2559
+ multiline: $,
2560
2560
  size: je.size,
2561
2561
  startAdornment: ve,
2562
2562
  type: Ie
2563
- }, O = yp(S), A = Ne.root || u.Root || Io, Z = le.root || f.root || {}, G = Ne.input || u.Input || Po;
2563
+ }, E = yp(S), A = Ne.root || u.Root || Io, Z = le.root || f.root || {}, G = Ne.input || u.Input || Po;
2564
2564
  return P = {
2565
2565
  ...P,
2566
2566
  ...le.input ?? f.input
@@ -2571,14 +2571,14 @@ const Oo = (t, e) => {
2571
2571
  ...Z,
2572
2572
  ref: n,
2573
2573
  onClick: m,
2574
- ...$,
2574
+ ...B,
2575
2575
  ...!bn(A) && {
2576
2576
  ownerState: {
2577
2577
  ...S,
2578
2578
  ...Z.ownerState
2579
2579
  }
2580
2580
  },
2581
- className: ke(O.root, Z.className, l, se && "MuiInputBase-readOnly"),
2581
+ className: ke(E.root, Z.className, l, se && "MuiInputBase-readOnly"),
2582
2582
  children: [ve, /* @__PURE__ */ d(Eo.Provider, {
2583
2583
  value: null,
2584
2584
  children: /* @__PURE__ */ d(G, {
@@ -2588,7 +2588,7 @@ const Oo = (t, e) => {
2588
2588
  autoFocus: a,
2589
2589
  defaultValue: p,
2590
2590
  disabled: je.disabled,
2591
- id: E,
2591
+ id: O,
2592
2592
  onAnimationStart: C,
2593
2593
  name: j,
2594
2594
  placeholder: V,
@@ -2608,7 +2608,7 @@ const Oo = (t, e) => {
2608
2608
  }
2609
2609
  },
2610
2610
  ref: pe,
2611
- className: ke(O.input, P.className, se && "MuiInputBase-readOnly"),
2611
+ className: ke(E.input, P.className, se && "MuiInputBase-readOnly"),
2612
2612
  onBlur: lt,
2613
2613
  onChange: Ze,
2614
2614
  onFocus: at
@@ -3319,24 +3319,24 @@ const oc = /* @__PURE__ */ _.forwardRef(function(e, n) {
3319
3319
  else if (I === "End")
3320
3320
  b.preventDefault(), jr(k, null, u, c, Ia);
3321
3321
  else if (I.length === 1) {
3322
- const B = x.current, j = I.toLowerCase(), z = performance.now();
3323
- B.keys.length > 0 && (z - B.lastTime > 500 ? (B.keys = [], B.repeating = !0, B.previousKeyMatched = !0) : B.repeating && j !== B.keys[0] && (B.repeating = !1)), B.lastTime = z, B.keys.push(j);
3324
- const U = H && !B.repeating && sc(H, B);
3325
- B.previousKeyMatched && (U || jr(k, H, !1, c, Uo, B)) ? b.preventDefault() : B.previousKeyMatched = !1;
3322
+ const $ = x.current, j = I.toLowerCase(), z = performance.now();
3323
+ $.keys.length > 0 && (z - $.lastTime > 500 ? ($.keys = [], $.repeating = !0, $.previousKeyMatched = !0) : $.repeating && j !== $.keys[0] && ($.repeating = !1)), $.lastTime = z, $.keys.push(j);
3324
+ const U = H && !$.repeating && sc(H, $);
3325
+ $.previousKeyMatched && (U || jr(k, H, !1, c, Uo, $)) ? b.preventDefault() : $.previousKeyMatched = !1;
3326
3326
  }
3327
3327
  f && f(b);
3328
3328
  }, v = jt(g, n);
3329
- let E = -1;
3329
+ let O = -1;
3330
3330
  _.Children.forEach(a, (b, k) => {
3331
3331
  if (!/* @__PURE__ */ _.isValidElement(b)) {
3332
- E === k && (E += 1, E >= a.length && (E = -1));
3332
+ O === k && (O += 1, O >= a.length && (O = -1));
3333
3333
  return;
3334
3334
  }
3335
3335
  process.env.NODE_ENV !== "production" && Ei.isFragment(b) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
3336
- `)), b.props.disabled || (p === "selectedMenu" && b.props.selected || E === -1) && (E = k), E === k && (b.props.disabled || b.props.muiSkipListHighlight || b.type.muiSkipListHighlight) && (E += 1, E >= a.length && (E = -1));
3336
+ `)), b.props.disabled || (p === "selectedMenu" && b.props.selected || O === -1) && (O = k), O === k && (b.props.disabled || b.props.muiSkipListHighlight || b.type.muiSkipListHighlight) && (O += 1, O >= a.length && (O = -1));
3337
3337
  });
3338
3338
  const T = _.Children.map(a, (b, k) => {
3339
- if (k === E) {
3339
+ if (k === O) {
3340
3340
  const I = {};
3341
3341
  return i && (I.autoFocus = !0), b.props.tabIndex === void 0 && p === "selectedMenu" && (I.tabIndex = 0), /* @__PURE__ */ _.cloneElement(b, I);
3342
3342
  }
@@ -3835,9 +3835,9 @@ const Np = {
3835
3835
  paragraph: h,
3836
3836
  variant: g,
3837
3837
  variantMapping: x
3838
- }, E = u || (h ? "p" : x[g] || Pa[g]) || "span", T = Lp(v);
3838
+ }, O = u || (h ? "p" : x[g] || Pa[g]) || "span", T = Lp(v);
3839
3839
  return /* @__PURE__ */ d(Dp, {
3840
- as: E,
3840
+ as: O,
3841
3841
  ref: n,
3842
3842
  className: ke(T.root, c),
3843
3843
  ...w,
@@ -4252,9 +4252,9 @@ function lo(t) {
4252
4252
  return;
4253
4253
  if (!g.current)
4254
4254
  return;
4255
- let B = [];
4256
- if ((b.activeElement === u.current || b.activeElement === f.current) && (B = i(x.current)), B.length > 0) {
4257
- const U = !!((j = v.current) != null && j.shiftKey && ((z = v.current) == null ? void 0 : z.key) === "Tab"), N = B[0], F = B[B.length - 1];
4255
+ let $ = [];
4256
+ if ((b.activeElement === u.current || b.activeElement === f.current) && ($ = i(x.current)), $.length > 0) {
4257
+ const U = !!((j = v.current) != null && j.shiftKey && ((z = v.current) == null ? void 0 : z.key) === "Tab"), N = $[0], F = $[$.length - 1];
4258
4258
  typeof N != "string" && typeof F != "string" && (U ? F.focus() : N.focus());
4259
4259
  } else
4260
4260
  H.focus();
@@ -4267,7 +4267,7 @@ function lo(t) {
4267
4267
  clearInterval(M), b.removeEventListener("focusin", I), b.removeEventListener("keydown", k, !0);
4268
4268
  };
4269
4269
  }, [n, s, o, a, l, i]);
4270
- const E = (b) => {
4270
+ const O = (b) => {
4271
4271
  p.current === null && (p.current = b.relatedTarget), g.current = !0, h.current = b.target;
4272
4272
  const k = e.props.onFocus;
4273
4273
  k && k(b);
@@ -4282,7 +4282,7 @@ function lo(t) {
4282
4282
  "data-testid": "sentinelStart"
4283
4283
  }), /* @__PURE__ */ _.cloneElement(e, {
4284
4284
  ref: w,
4285
- onFocus: E
4285
+ onFocus: O
4286
4286
  }), /* @__PURE__ */ d("div", {
4287
4287
  tabIndex: l ? 0 : -1,
4288
4288
  onFocus: T,
@@ -4421,7 +4421,7 @@ const Qp = (t) => {
4421
4421
  required: x = !1,
4422
4422
  size: w = "medium",
4423
4423
  variant: v = "outlined",
4424
- ...E
4424
+ ...O
4425
4425
  } = s, T = {
4426
4426
  ...s,
4427
4427
  color: a,
@@ -4447,9 +4447,9 @@ const Qp = (t) => {
4447
4447
  return o && _.Children.forEach(o, (se) => {
4448
4448
  Qr(se, ["Input", "Select"]) && (io(se.props, !0) || io(se.props.inputProps, !0)) && (V = !0);
4449
4449
  }), V;
4450
- }), [B, j] = _.useState(!1);
4451
- c && B && j(!1);
4452
- const z = f !== void 0 && !c ? f : B;
4450
+ }), [$, j] = _.useState(!1);
4451
+ c && $ && j(!1);
4452
+ const z = f !== void 0 && !c ? f : $;
4453
4453
  let U;
4454
4454
  const N = _.useRef(!1);
4455
4455
  process.env.NODE_ENV !== "production" && (U = () => (N.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(`
@@ -4490,7 +4490,7 @@ const Qp = (t) => {
4490
4490
  ownerState: T,
4491
4491
  className: ke(b.root, i),
4492
4492
  ref: n,
4493
- ...E,
4493
+ ...O,
4494
4494
  children: o
4495
4495
  })
4496
4496
  });
@@ -4680,7 +4680,7 @@ const Wr = De("MuiFormControlLabel", ["root", "labelPlacementStart", "labelPlace
4680
4680
  onChange: x,
4681
4681
  required: w,
4682
4682
  slots: v = {},
4683
- slotProps: E = {},
4683
+ slotProps: O = {},
4684
4684
  value: T,
4685
4685
  ...b
4686
4686
  } = s, k = ln(), I = c ?? l.props.disabled ?? (k == null ? void 0 : k.disabled), M = w ?? l.props.required, H = {
@@ -4690,7 +4690,7 @@ const Wr = De("MuiFormControlLabel", ["root", "labelPlacementStart", "labelPlace
4690
4690
  ["checked", "name", "onChange", "value", "inputRef"].forEach((q) => {
4691
4691
  typeof l.props[q] > "u" && typeof s[q] < "u" && (H[q] = s[q]);
4692
4692
  });
4693
- const B = jn({
4693
+ const $ = jn({
4694
4694
  props: s,
4695
4695
  muiFormControl: k,
4696
4696
  states: ["error"]
@@ -4699,12 +4699,12 @@ const Wr = De("MuiFormControlLabel", ["root", "labelPlacementStart", "labelPlace
4699
4699
  disabled: I,
4700
4700
  labelPlacement: h,
4701
4701
  required: M,
4702
- error: B.error
4702
+ error: $.error
4703
4703
  }, z = Jp(j), U = {
4704
4704
  slots: v,
4705
4705
  slotProps: {
4706
4706
  ...a,
4707
- ...E
4707
+ ...O
4708
4708
  }
4709
4709
  }, [N, F] = rt("typography", {
4710
4710
  elementType: Le,
@@ -4948,13 +4948,13 @@ const nf = (t) => {
4948
4948
  disableUnderline: o
4949
4949
  }
4950
4950
  }
4951
- }, E = f ?? a ? Pi(f ?? a, v) : v, T = p.root ?? i.Root ?? rf, b = p.input ?? i.Input ?? sf;
4951
+ }, O = f ?? a ? Pi(f ?? a, v) : v, T = p.root ?? i.Root ?? rf, b = p.input ?? i.Input ?? sf;
4952
4952
  return /* @__PURE__ */ d(Ao, {
4953
4953
  slots: {
4954
4954
  root: T,
4955
4955
  input: b
4956
4956
  },
4957
- slotProps: E,
4957
+ slotProps: O,
4958
4958
  fullWidth: l,
4959
4959
  inputComponent: c,
4960
4960
  multiline: u,
@@ -5420,14 +5420,14 @@ const of = (t) => {
5420
5420
  inputComponent: u,
5421
5421
  multiline: f,
5422
5422
  type: g
5423
- }, v = of(s), E = {
5423
+ }, v = of(s), O = {
5424
5424
  root: {
5425
5425
  ownerState: w
5426
5426
  },
5427
5427
  input: {
5428
5428
  ownerState: w
5429
5429
  }
5430
- }, T = p ?? a ? Pi(E, p ?? a) : E, b = h.root ?? i.Root ?? af, k = h.input ?? i.Input ?? lf;
5430
+ }, T = p ?? a ? Pi(O, p ?? a) : O, b = h.root ?? i.Root ?? af, k = h.input ?? i.Input ?? lf;
5431
5431
  return /* @__PURE__ */ d(Ao, {
5432
5432
  slots: {
5433
5433
  root: b,
@@ -5951,7 +5951,7 @@ const df = (t) => {
5951
5951
  props: s,
5952
5952
  muiFormControl: w,
5953
5953
  states: ["color", "disabled", "error", "focused", "hiddenLabel", "size", "required"]
5954
- }), E = {
5954
+ }), O = {
5955
5955
  ...s,
5956
5956
  color: v.color || "primary",
5957
5957
  disabled: v.disabled,
@@ -5967,7 +5967,7 @@ const df = (t) => {
5967
5967
  elementType: ff,
5968
5968
  className: x.notchedOutline,
5969
5969
  shouldForwardComponentProp: !0,
5970
- ownerState: E,
5970
+ ownerState: O,
5971
5971
  externalForwardedProps: {
5972
5972
  slots: f,
5973
5973
  slotProps: p
@@ -6264,17 +6264,17 @@ const Yr = De("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled",
6264
6264
  filled: w.filled,
6265
6265
  focused: w.focused,
6266
6266
  required: w.required
6267
- }, E = yf(v);
6267
+ }, O = yf(v);
6268
6268
  return /* @__PURE__ */ K(gf, {
6269
6269
  as: l,
6270
6270
  ownerState: v,
6271
- className: ke(E.root, i),
6271
+ className: ke(O.root, i),
6272
6272
  ref: n,
6273
6273
  ...g,
6274
6274
  children: [o, w.required && /* @__PURE__ */ K(bf, {
6275
6275
  ownerState: v,
6276
6276
  "aria-hidden": !0,
6277
- className: E.asterisk,
6277
+ className: O.asterisk,
6278
6278
  children: [" ", "*"]
6279
6279
  })]
6280
6280
  });
@@ -6672,7 +6672,7 @@ const Sf = (t) => {
6672
6672
  props: s,
6673
6673
  muiFormControl: w,
6674
6674
  states: ["variant", "size", "disabled", "error", "filled", "focused", "required"]
6675
- }), E = {
6675
+ }), O = {
6676
6676
  ...s,
6677
6677
  component: a,
6678
6678
  contained: v.variant === "filled" || v.variant === "outlined",
@@ -6684,14 +6684,14 @@ const Sf = (t) => {
6684
6684
  focused: v.focused,
6685
6685
  required: v.required
6686
6686
  };
6687
- delete E.ownerState;
6688
- const T = Sf(E);
6687
+ delete O.ownerState;
6688
+ const T = Sf(O);
6689
6689
  return /* @__PURE__ */ d(Tf, {
6690
6690
  as: a,
6691
6691
  className: ke(T.root, i),
6692
6692
  ref: n,
6693
6693
  ...x,
6694
- ownerState: E,
6694
+ ownerState: O,
6695
6695
  children: o === " " ? (
6696
6696
  // notranslate needed while Google Translate will not fix zero-width space issue
6697
6697
  Na || (Na = /* @__PURE__ */ d("span", {
@@ -6905,7 +6905,7 @@ const If = {
6905
6905
  onExited: x,
6906
6906
  onExiting: w,
6907
6907
  style: v,
6908
- timeout: E = o,
6908
+ timeout: O = o,
6909
6909
  // eslint-disable-next-line react/prop-types
6910
6910
  TransitionComponent: T = Ol,
6911
6911
  ...b
@@ -6914,11 +6914,11 @@ const If = {
6914
6914
  const V = k.current;
6915
6915
  q === void 0 ? L(V) : L(V, q);
6916
6916
  }
6917
- }, H = M(h), B = M((L, q) => {
6917
+ }, H = M(h), $ = M((L, q) => {
6918
6918
  xu(L);
6919
6919
  const V = Xs({
6920
6920
  style: v,
6921
- timeout: E,
6921
+ timeout: O,
6922
6922
  easing: c
6923
6923
  }, {
6924
6924
  mode: "enter"
@@ -6927,7 +6927,7 @@ const If = {
6927
6927
  }), j = M(p), z = M(w), U = M((L) => {
6928
6928
  const q = Xs({
6929
6929
  style: v,
6930
- timeout: E,
6930
+ timeout: O,
6931
6931
  easing: c
6932
6932
  }, {
6933
6933
  mode: "exit"
@@ -6938,7 +6938,7 @@ const If = {
6938
6938
  appear: a,
6939
6939
  in: u,
6940
6940
  nodeRef: k,
6941
- onEnter: B,
6941
+ onEnter: $,
6942
6942
  onEntered: j,
6943
6943
  onEntering: H,
6944
6944
  onExit: U,
@@ -6947,7 +6947,7 @@ const If = {
6947
6947
  addEndListener: (L) => {
6948
6948
  i && i(k.current, L);
6949
6949
  },
6950
- timeout: E,
6950
+ timeout: O,
6951
6951
  ...b,
6952
6952
  children: (L, {
6953
6953
  ownerState: q,
@@ -7101,7 +7101,7 @@ const Af = (t) => {
7101
7101
  ...s,
7102
7102
  component: a,
7103
7103
  invisible: l
7104
- }, E = Af(v), T = {
7104
+ }, O = Af(v), T = {
7105
7105
  transition: g,
7106
7106
  root: u.Root,
7107
7107
  ...h
@@ -7114,9 +7114,9 @@ const Af = (t) => {
7114
7114
  }, [I, M] = rt("root", {
7115
7115
  elementType: Ff,
7116
7116
  externalForwardedProps: k,
7117
- className: ke(E.root, i),
7117
+ className: ke(O.root, i),
7118
7118
  ownerState: v
7119
- }), [H, B] = rt("transition", {
7119
+ }), [H, $] = rt("transition", {
7120
7120
  elementType: pc,
7121
7121
  externalForwardedProps: k,
7122
7122
  ownerState: v
@@ -7125,11 +7125,11 @@ const Af = (t) => {
7125
7125
  in: c,
7126
7126
  timeout: x,
7127
7127
  ...w,
7128
- ...B,
7128
+ ...$,
7129
7129
  children: /* @__PURE__ */ d(I, {
7130
7130
  "aria-hidden": !0,
7131
7131
  ...M,
7132
- classes: E,
7132
+ classes: O,
7133
7133
  ref: n,
7134
7134
  children: o
7135
7135
  })
@@ -7245,7 +7245,7 @@ function Lf(t) {
7245
7245
  onClose: c,
7246
7246
  open: u,
7247
7247
  rootRef: f
7248
- } = t, p = _.useRef({}), h = _.useRef(null), g = _.useRef(null), x = jt(g, f), [w, v] = _.useState(!u), E = Mf(l);
7248
+ } = t, p = _.useRef({}), h = _.useRef(null), g = _.useRef(null), x = jt(g, f), [w, v] = _.useState(!u), O = Mf(l);
7249
7249
  let T = !0;
7250
7250
  (t["aria-hidden"] === "false" || t["aria-hidden"] === !1) && (T = !1);
7251
7251
  const b = () => _t(h.current), k = () => (p.current.modalRef = g.current, p.current.mount = h.current, p.current), I = () => {
@@ -7255,7 +7255,7 @@ function Lf(t) {
7255
7255
  }, M = fr(() => {
7256
7256
  const q = Nf(e) || b().body;
7257
7257
  Ds.add(k(), q), g.current && I();
7258
- }), H = () => Ds.isTopModal(k()), B = fr((q) => {
7258
+ }), H = () => Ds.isTopModal(k()), $ = fr((q) => {
7259
7259
  h.current = q, q && (u && H() ? I() : g.current && Xr(g.current, T));
7260
7260
  }), j = _.useCallback(() => {
7261
7261
  Ds.remove(k(), T);
@@ -7263,8 +7263,8 @@ function Lf(t) {
7263
7263
  _.useEffect(() => () => {
7264
7264
  j();
7265
7265
  }, [j]), _.useEffect(() => {
7266
- u ? M() : (!E || !o) && j();
7267
- }, [u, j, E, o, M]);
7266
+ u ? M() : (!O || !o) && j();
7267
+ }, [u, j, O, o, M]);
7268
7268
  const z = (q) => (V) => {
7269
7269
  var se;
7270
7270
  (se = q.onKeyDown) == null || se.call(q, V), !(V.key !== "Escape" || V.which === 229 || // Wait until IME is settled.
@@ -7315,10 +7315,10 @@ function Lf(t) {
7315
7315
  };
7316
7316
  },
7317
7317
  rootRef: x,
7318
- portalRef: B,
7318
+ portalRef: $,
7319
7319
  isTopModal: H,
7320
7320
  exited: w,
7321
- hasTransition: E
7321
+ hasTransition: O
7322
7322
  };
7323
7323
  }
7324
7324
  function Df(t) {
@@ -7384,14 +7384,14 @@ const zf = (t) => {
7384
7384
  disableAutoFocus: x = !1,
7385
7385
  disableEnforceFocus: w = !1,
7386
7386
  disableEscapeKeyDown: v = !1,
7387
- disablePortal: E = !1,
7387
+ disablePortal: O = !1,
7388
7388
  disableRestoreFocus: T = !1,
7389
7389
  disableScrollLock: b = !1,
7390
7390
  hideBackdrop: k = !1,
7391
7391
  keepMounted: I = !1,
7392
7392
  onClose: M,
7393
7393
  onTransitionEnter: H,
7394
- onTransitionExited: B,
7394
+ onTransitionExited: $,
7395
7395
  open: j,
7396
7396
  slotProps: z = {},
7397
7397
  slots: U = {},
@@ -7404,7 +7404,7 @@ const zf = (t) => {
7404
7404
  disableAutoFocus: x,
7405
7405
  disableEnforceFocus: w,
7406
7406
  disableEscapeKeyDown: v,
7407
- disablePortal: E,
7407
+ disablePortal: O,
7408
7408
  disableRestoreFocus: T,
7409
7409
  disableScrollLock: b,
7410
7410
  hideBackdrop: k,
@@ -7441,7 +7441,7 @@ const zf = (t) => {
7441
7441
  ...g,
7442
7442
  ...z
7443
7443
  }
7444
- }, [$, re] = rt("root", {
7444
+ }, [B, re] = rt("root", {
7445
7445
  ref: n,
7446
7446
  elementType: jf,
7447
7447
  externalForwardedProps: {
@@ -7470,8 +7470,8 @@ const zf = (t) => {
7470
7470
  return !I && !j && (!le || me) ? null : /* @__PURE__ */ d(wu, {
7471
7471
  ref: ne,
7472
7472
  container: f,
7473
- disablePortal: E,
7474
- children: /* @__PURE__ */ K($, {
7473
+ disablePortal: O,
7474
+ children: /* @__PURE__ */ K(B, {
7475
7475
  ...re,
7476
7476
  children: [!k && o ? /* @__PURE__ */ d(Te, {
7477
7477
  ...ye
@@ -7723,7 +7723,7 @@ const Bf = (t) => {
7723
7723
  PaperProps: w = {},
7724
7724
  // TODO: remove in v7
7725
7725
  slots: v = {},
7726
- slotProps: E = {},
7726
+ slotProps: O = {},
7727
7727
  transformOrigin: T = {
7728
7728
  vertical: "top",
7729
7729
  horizontal: "left"
@@ -7735,7 +7735,7 @@ const Bf = (t) => {
7735
7735
  // TODO: remove in v7
7736
7736
  disableScrollLock: M = !1,
7737
7737
  ...H
7738
- } = s, B = _.useRef(), j = {
7738
+ } = s, $ = _.useRef(), j = {
7739
7739
  ...s,
7740
7740
  anchorOrigin: a,
7741
7741
  anchorReference: c,
@@ -7748,7 +7748,7 @@ const Bf = (t) => {
7748
7748
  }, z = Bf(j), U = _.useCallback(() => {
7749
7749
  if (c === "anchorPosition")
7750
7750
  return process.env.NODE_ENV !== "production" && (l || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), l;
7751
- const oe = Zr(i), pe = oe && oe.nodeType === 1 ? oe : _t(B.current).body, ge = pe.getBoundingClientRect();
7751
+ const oe = Zr(i), pe = oe && oe.nodeType === 1 ? oe : _t($.current).body, ge = pe.getBoundingClientRect();
7752
7752
  if (process.env.NODE_ENV !== "production") {
7753
7753
  const we = pe.getBoundingClientRect();
7754
7754
  process.env.NODE_ENV !== "test" && we.top === 0 && we.left === 0 && we.right === 0 && we.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
@@ -7796,7 +7796,7 @@ const Bf = (t) => {
7796
7796
  transformOrigin: Va(ge)
7797
7797
  };
7798
7798
  }, [i, c, U, N, g]), [L, q] = _.useState(x), V = _.useCallback(() => {
7799
- const oe = B.current;
7799
+ const oe = $.current;
7800
7800
  if (!oe)
7801
7801
  return;
7802
7802
  const pe = F(oe);
@@ -7833,7 +7833,7 @@ const Bf = (t) => {
7833
7833
  slotProps: {
7834
7834
  transition: I,
7835
7835
  paper: w,
7836
- ...E
7836
+ ...O
7837
7837
  }
7838
7838
  }, [le, Ne] = rt("transition", {
7839
7839
  elementType: Cu,
@@ -7858,7 +7858,7 @@ const Bf = (t) => {
7858
7858
  k === "auto" && !le.muiSupportAuto && (Y = void 0);
7859
7859
  const ve = p || (i ? _t(Zr(i)).body : void 0), [Ie, {
7860
7860
  slots: D,
7861
- slotProps: $,
7861
+ slotProps: B,
7862
7862
  ...re
7863
7863
  }] = rt("root", {
7864
7864
  ref: n,
@@ -7873,7 +7873,7 @@ const Bf = (t) => {
7873
7873
  backdrop: v.backdrop
7874
7874
  },
7875
7875
  slotProps: {
7876
- backdrop: nc(typeof E.backdrop == "function" ? E.backdrop(j) : E.backdrop, {
7876
+ backdrop: nc(typeof O.backdrop == "function" ? O.backdrop(j) : O.backdrop, {
7877
7877
  invisible: !0
7878
7878
  })
7879
7879
  },
@@ -7883,7 +7883,7 @@ const Bf = (t) => {
7883
7883
  ownerState: j,
7884
7884
  className: ke(z.root, f)
7885
7885
  }), [Te, ye] = rt("paper", {
7886
- ref: B,
7886
+ ref: $,
7887
7887
  className: z.paper,
7888
7888
  elementType: hc,
7889
7889
  externalForwardedProps: me,
@@ -7900,7 +7900,7 @@ const Bf = (t) => {
7900
7900
  ...re,
7901
7901
  ...!bn(Ie) && {
7902
7902
  slots: D,
7903
- slotProps: $,
7903
+ slotProps: B,
7904
7904
  disableScrollLock: M
7905
7905
  },
7906
7906
  children: /* @__PURE__ */ d(le, {
@@ -8171,7 +8171,7 @@ const Wf = {
8171
8171
  ...w
8172
8172
  } = {},
8173
8173
  variant: v = "selectedMenu",
8174
- slots: E = {},
8174
+ slots: O = {},
8175
8175
  slotProps: T = {},
8176
8176
  ...b
8177
8177
  } = s, k = Rl(), I = {
@@ -8184,8 +8184,8 @@ const Wf = {
8184
8184
  transitionDuration: g,
8185
8185
  TransitionProps: w,
8186
8186
  variant: v
8187
- }, M = Hf(I), H = o && !l && f, B = _.useRef(null), j = (Y, me) => {
8188
- B.current && B.current.adjustStyleForScrollbar(Y, {
8187
+ }, M = Hf(I), H = o && !l && f, $ = _.useRef(null), j = (Y, me) => {
8188
+ $.current && $.current.adjustStyleForScrollbar(Y, {
8189
8189
  direction: k ? "rtl" : "ltr"
8190
8190
  }), x && x(Y, me);
8191
8191
  }, z = (Y) => {
@@ -8197,7 +8197,7 @@ const Wf = {
8197
8197
  `)), Y.props.disabled || (v === "selectedMenu" && Y.props.selected || U === -1) && (U = me));
8198
8198
  });
8199
8199
  const N = {
8200
- slots: E,
8200
+ slots: O,
8201
8201
  slotProps: {
8202
8202
  list: c,
8203
8203
  transition: w,
@@ -8205,7 +8205,7 @@ const Wf = {
8205
8205
  ...T
8206
8206
  }
8207
8207
  }, F = dn({
8208
- elementType: E.root,
8208
+ elementType: O.root,
8209
8209
  externalSlotProps: T.root,
8210
8210
  ownerState: I,
8211
8211
  className: [M.root, a]
@@ -8237,12 +8237,12 @@ const Wf = {
8237
8237
  },
8238
8238
  transformOrigin: k ? Wf : Zf,
8239
8239
  slots: {
8240
- root: E.root,
8240
+ root: O.root,
8241
8241
  paper: L,
8242
- backdrop: E.backdrop,
8243
- ...E.transition && {
8242
+ backdrop: O.backdrop,
8243
+ ...O.transition && {
8244
8244
  // TODO: pass `slots.transition` directly once `TransitionComponent` is removed from Popover
8245
- transition: E.transition
8245
+ transition: O.transition
8246
8246
  }
8247
8247
  },
8248
8248
  slotProps: {
@@ -8264,7 +8264,7 @@ const Wf = {
8264
8264
  ...b,
8265
8265
  classes: h,
8266
8266
  children: /* @__PURE__ */ d(V, {
8267
- actions: B,
8267
+ actions: $,
8268
8268
  autoFocus: o && (U === -1 || l),
8269
8269
  autoFocusItem: H,
8270
8270
  variant: v,
@@ -8702,14 +8702,14 @@ const oh = (t) => {
8702
8702
  IconComponent: x,
8703
8703
  inputRef: w,
8704
8704
  labelId: v,
8705
- MenuProps: E = {},
8705
+ MenuProps: O = {},
8706
8706
  multiple: T,
8707
8707
  name: b,
8708
8708
  onBlur: k,
8709
8709
  onChange: I,
8710
8710
  onClose: M,
8711
8711
  onFocus: H,
8712
- onOpen: B,
8712
+ onOpen: $,
8713
8713
  open: j,
8714
8714
  readOnly: z,
8715
8715
  renderValue: U,
@@ -8729,10 +8729,10 @@ const oh = (t) => {
8729
8729
  controlled: j,
8730
8730
  default: u,
8731
8731
  name: "Select"
8732
- }), ve = _.useRef(null), Ie = _.useRef(null), [D, $] = _.useState(null), {
8732
+ }), ve = _.useRef(null), Ie = _.useRef(null), [D, B] = _.useState(null), {
8733
8733
  current: re
8734
8734
  } = _.useRef(j != null), [Te, ye] = _.useState(), oe = jt(n, w), pe = _.useCallback((ce) => {
8735
- Ie.current = ce, ce && $(ce);
8735
+ Ie.current = ce, ce && B(ce);
8736
8736
  }, []), ge = D == null ? void 0 : D.parentNode;
8737
8737
  _.useImperativeHandle(oe, () => ({
8738
8738
  focus: () => {
@@ -8758,7 +8758,7 @@ const oh = (t) => {
8758
8758
  }
8759
8759
  }, [v]);
8760
8760
  const we = (ce, _e) => {
8761
- ce ? B && B(_e) : M && M(_e), re || (ye(a ? null : ge.clientWidth), Ne(ce));
8761
+ ce ? $ && $(_e) : M && M(_e), re || (ye(a ? null : ge.clientWidth), Ne(ce));
8762
8762
  }, be = (ce) => {
8763
8763
  ce.button === 0 && (ce.preventDefault(), Ie.current.focus(), we(!0, ce));
8764
8764
  }, je = (ce) => {
@@ -8812,7 +8812,7 @@ const oh = (t) => {
8812
8812
  (io({
8813
8813
  value: Y
8814
8814
  }) || h) && (U ? m = U(Y) : C = !0);
8815
- const O = Ge.map((ce) => {
8815
+ const E = Ge.map((ce) => {
8816
8816
  if (!/* @__PURE__ */ _.isValidElement(ce))
8817
8817
  return null;
8818
8818
  process.env.NODE_ENV !== "production" && Ei.isFragment(ce) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
@@ -8856,8 +8856,8 @@ const oh = (t) => {
8856
8856
  open: lt,
8857
8857
  error: g
8858
8858
  }, Ae = oh(Q), Ee = {
8859
- ...E.PaperProps,
8860
- ...(Kt = E.slotProps) == null ? void 0 : Kt.paper
8859
+ ...O.PaperProps,
8860
+ ...(Kt = O.slotProps) == null ? void 0 : Kt.paper
8861
8861
  }, Qe = Ai();
8862
8862
  return /* @__PURE__ */ K(_.Fragment, {
8863
8863
  children: [/* @__PURE__ */ d(th, {
@@ -8921,16 +8921,16 @@ const oh = (t) => {
8921
8921
  vertical: "top",
8922
8922
  horizontal: "center"
8923
8923
  },
8924
- ...E,
8924
+ ...O,
8925
8925
  slotProps: {
8926
- ...E.slotProps,
8926
+ ...O.slotProps,
8927
8927
  list: {
8928
8928
  "aria-labelledby": v,
8929
8929
  role: "listbox",
8930
8930
  "aria-multiselectable": T ? "true" : void 0,
8931
8931
  disableListWrap: !0,
8932
8932
  id: Qe,
8933
- ...E.MenuListProps
8933
+ ...O.MenuListProps
8934
8934
  },
8935
8935
  paper: {
8936
8936
  ...Ee,
@@ -8940,7 +8940,7 @@ const oh = (t) => {
8940
8940
  }
8941
8941
  }
8942
8942
  },
8943
- children: O
8943
+ children: E
8944
8944
  })]
8945
8945
  });
8946
8946
  });
@@ -9124,20 +9124,20 @@ const ih = (t) => {
9124
9124
  label: x,
9125
9125
  labelId: w,
9126
9126
  MenuProps: v,
9127
- multiple: E = !1,
9127
+ multiple: O = !1,
9128
9128
  native: T = !1,
9129
9129
  onClose: b,
9130
9130
  onOpen: k,
9131
9131
  open: I,
9132
9132
  renderValue: M,
9133
9133
  SelectDisplayProps: H,
9134
- variant: B = "outlined",
9134
+ variant: $ = "outlined",
9135
9135
  ...j
9136
9136
  } = s, z = T ? vc : wc, U = ln(), N = jn({
9137
9137
  props: s,
9138
9138
  muiFormControl: U,
9139
9139
  states: ["variant", "error"]
9140
- }), F = N.variant || B, L = {
9140
+ }), F = N.variant || $, L = {
9141
9141
  ...s,
9142
9142
  variant: F,
9143
9143
  classes: a
@@ -9168,7 +9168,7 @@ const ih = (t) => {
9168
9168
  variant: F,
9169
9169
  type: void 0,
9170
9170
  // We render a select. We can ignore the type provided by the `Input`.
9171
- multiple: E,
9171
+ multiple: O,
9172
9172
  ...T ? {
9173
9173
  id: p
9174
9174
  } : {
@@ -9190,7 +9190,7 @@ const ih = (t) => {
9190
9190
  classes: g ? Pi(se, g.classes) : se,
9191
9191
  ...h ? h.props.inputProps : {}
9192
9192
  },
9193
- ...(E && T || u) && F === "outlined" ? {
9193
+ ...(O && T || u) && F === "outlined" ? {
9194
9194
  notched: !0
9195
9195
  } : {},
9196
9196
  ref: Y,
@@ -9387,14 +9387,14 @@ const dh = {
9387
9387
  helperText: x,
9388
9388
  id: w,
9389
9389
  InputLabelProps: v,
9390
- inputProps: E,
9390
+ inputProps: O,
9391
9391
  InputProps: T,
9392
9392
  inputRef: b,
9393
9393
  label: k,
9394
9394
  maxRows: I,
9395
9395
  minRows: M,
9396
9396
  multiline: H = !1,
9397
- name: B,
9397
+ name: $,
9398
9398
  onBlur: j,
9399
9399
  onChange: z,
9400
9400
  onFocus: U,
@@ -9422,12 +9422,12 @@ const dh = {
9422
9422
  variant: le
9423
9423
  }, Ie = ph(ve);
9424
9424
  process.env.NODE_ENV !== "production" && q && !a && console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");
9425
- const D = Ai(w), $ = x && D ? `${D}-helper-text` : void 0, re = k && D ? `${D}-label` : void 0, Te = dh[le], ye = {
9425
+ const D = Ai(w), B = x && D ? `${D}-helper-text` : void 0, re = k && D ? `${D}-label` : void 0, Te = dh[le], ye = {
9426
9426
  slots: se,
9427
9427
  slotProps: {
9428
9428
  input: T,
9429
9429
  inputLabel: v,
9430
- htmlInput: E,
9430
+ htmlInput: O,
9431
9431
  formHelperText: h,
9432
9432
  select: V,
9433
9433
  ...ne
@@ -9474,13 +9474,13 @@ const dh = {
9474
9474
  externalForwardedProps: ye,
9475
9475
  ownerState: ve
9476
9476
  }), P = /* @__PURE__ */ d(be, {
9477
- "aria-describedby": $,
9477
+ "aria-describedby": B,
9478
9478
  autoComplete: o,
9479
9479
  autoFocus: i,
9480
9480
  defaultValue: u,
9481
9481
  fullWidth: g,
9482
9482
  multiline: H,
9483
- name: B,
9483
+ name: $,
9484
9484
  rows: L,
9485
9485
  maxRows: I,
9486
9486
  minRows: M,
@@ -9506,7 +9506,7 @@ const dh = {
9506
9506
  ...Ve,
9507
9507
  children: k
9508
9508
  }), q ? /* @__PURE__ */ d(m, {
9509
- "aria-describedby": $,
9509
+ "aria-describedby": B,
9510
9510
  id: D,
9511
9511
  labelId: re,
9512
9512
  value: me,
@@ -9514,7 +9514,7 @@ const dh = {
9514
9514
  ...R,
9515
9515
  children: a
9516
9516
  }) : P, x && /* @__PURE__ */ d(lt, {
9517
- id: $,
9517
+ id: B,
9518
9518
  ...Ze,
9519
9519
  children: x
9520
9520
  })]
@@ -9802,14 +9802,14 @@ const mh = (t) => {
9802
9802
  name: x,
9803
9803
  onBlur: w,
9804
9804
  onChange: v,
9805
- onFocus: E,
9805
+ onFocus: O,
9806
9806
  readOnly: T,
9807
9807
  required: b = !1,
9808
9808
  tabIndex: k,
9809
9809
  type: I,
9810
9810
  value: M,
9811
9811
  slots: H = {},
9812
- slotProps: B = {},
9812
+ slotProps: $ = {},
9813
9813
  ...j
9814
9814
  } = e, [z, U] = rs({
9815
9815
  controlled: o,
@@ -9817,14 +9817,14 @@ const mh = (t) => {
9817
9817
  name: "SwitchBase",
9818
9818
  state: "checked"
9819
9819
  }), N = ln(), F = (D) => {
9820
- E && E(D), N && N.onFocus && N.onFocus(D);
9820
+ O && O(D), N && N.onFocus && N.onFocus(D);
9821
9821
  }, L = (D) => {
9822
9822
  w && w(D), N && N.onBlur && N.onBlur(D);
9823
9823
  }, q = (D) => {
9824
9824
  if (D.nativeEvent.defaultPrevented)
9825
9825
  return;
9826
- const $ = D.target.checked;
9827
- U($), v && v(D, $);
9826
+ const B = D.target.checked;
9827
+ U(B), v && v(D, B);
9828
9828
  };
9829
9829
  let V = l;
9830
9830
  N && typeof V > "u" && (V = N.disabled);
@@ -9838,7 +9838,7 @@ const mh = (t) => {
9838
9838
  slots: H,
9839
9839
  slotProps: {
9840
9840
  input: h,
9841
- ...B
9841
+ ...$
9842
9842
  }
9843
9843
  }, [le, Ne] = rt("root", {
9844
9844
  ref: n,
@@ -9852,13 +9852,13 @@ const mh = (t) => {
9852
9852
  },
9853
9853
  getSlotProps: (D) => ({
9854
9854
  ...D,
9855
- onFocus: ($) => {
9855
+ onFocus: (B) => {
9856
9856
  var re;
9857
- (re = D.onFocus) == null || re.call(D, $), F($);
9857
+ (re = D.onFocus) == null || re.call(D, B), F(B);
9858
9858
  },
9859
- onBlur: ($) => {
9859
+ onBlur: (B) => {
9860
9860
  var re;
9861
- (re = D.onBlur) == null || re.call(D, $), L($);
9861
+ (re = D.onBlur) == null || re.call(D, B), L(B);
9862
9862
  }
9863
9863
  }),
9864
9864
  ownerState: ne,
@@ -9876,9 +9876,9 @@ const mh = (t) => {
9876
9876
  externalForwardedProps: me,
9877
9877
  getSlotProps: (D) => ({
9878
9878
  ...D,
9879
- onChange: ($) => {
9879
+ onChange: (B) => {
9880
9880
  var re;
9881
- (re = D.onChange) == null || re.call(D, $), q($);
9881
+ (re = D.onChange) == null || re.call(D, B), q(B);
9882
9882
  }
9883
9883
  }),
9884
9884
  ownerState: ne,
@@ -10125,7 +10125,7 @@ const Wo = De("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "c
10125
10125
  slots: g = {},
10126
10126
  slotProps: x = {},
10127
10127
  ...w
10128
- } = s, v = l ? c : a, E = l ? c : o, T = {
10128
+ } = s, v = l ? c : a, O = l ? c : o, T = {
10129
10129
  ...s,
10130
10130
  disableRipple: p,
10131
10131
  color: i,
@@ -10147,8 +10147,8 @@ const Wo = De("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "c
10147
10147
  icon: /* @__PURE__ */ _.cloneElement(v, {
10148
10148
  fontSize: v.props.fontSize ?? f
10149
10149
  }),
10150
- checkedIcon: /* @__PURE__ */ _.cloneElement(E, {
10151
- fontSize: E.props.fontSize ?? f
10150
+ checkedIcon: /* @__PURE__ */ _.cloneElement(O, {
10151
+ fontSize: O.props.fontSize ?? f
10152
10152
  }),
10153
10153
  disableRipple: p,
10154
10154
  slots: g,
@@ -10390,7 +10390,7 @@ const Oh = (t) => {
10390
10390
  onExit: x,
10391
10391
  onExited: w,
10392
10392
  onExiting: v,
10393
- orientation: E = "vertical",
10393
+ orientation: O = "vertical",
10394
10394
  style: T,
10395
10395
  timeout: b = Tu.standard,
10396
10396
  // eslint-disable-next-line react/prop-types
@@ -10398,16 +10398,16 @@ const Oh = (t) => {
10398
10398
  ...I
10399
10399
  } = s, M = {
10400
10400
  ...s,
10401
- orientation: E,
10401
+ orientation: O,
10402
10402
  collapsedSize: l
10403
- }, H = Oh(M), B = ki(), j = _u(), z = _.useRef(null), U = _.useRef(), N = typeof l == "number" ? `${l}px` : l, F = E === "horizontal", L = F ? "width" : "height", q = _.useRef(null), V = jt(n, q), se = ($) => (re) => {
10404
- if ($) {
10403
+ }, H = Oh(M), $ = ki(), j = _u(), z = _.useRef(null), U = _.useRef(), N = typeof l == "number" ? `${l}px` : l, F = O === "horizontal", L = F ? "width" : "height", q = _.useRef(null), V = jt(n, q), se = (B) => (re) => {
10404
+ if (B) {
10405
10405
  const Te = q.current;
10406
- re === void 0 ? $(Te) : $(Te, re);
10406
+ re === void 0 ? B(Te) : B(Te, re);
10407
10407
  }
10408
- }, ne = () => z.current ? z.current[F ? "clientWidth" : "clientHeight"] : 0, Y = se(($, re) => {
10409
- z.current && F && (z.current.style.position = "absolute"), $.style[L] = N, p && p($, re);
10410
- }), me = se(($, re) => {
10408
+ }, ne = () => z.current ? z.current[F ? "clientWidth" : "clientHeight"] : 0, Y = se((B, re) => {
10409
+ z.current && F && (z.current.style.position = "absolute"), B.style[L] = N, p && p(B, re);
10410
+ }), me = se((B, re) => {
10411
10411
  const Te = ne();
10412
10412
  z.current && F && (z.current.style.position = "");
10413
10413
  const {
@@ -10421,16 +10421,16 @@ const Oh = (t) => {
10421
10421
  mode: "enter"
10422
10422
  });
10423
10423
  if (b === "auto") {
10424
- const pe = B.transitions.getAutoHeightDuration(Te);
10425
- $.style.transitionDuration = `${pe}ms`, U.current = pe;
10424
+ const pe = $.transitions.getAutoHeightDuration(Te);
10425
+ B.style.transitionDuration = `${pe}ms`, U.current = pe;
10426
10426
  } else
10427
- $.style.transitionDuration = typeof ye == "string" ? ye : `${ye}ms`;
10428
- $.style[L] = `${Te}px`, $.style.transitionTimingFunction = oe, g && g($, re);
10429
- }), le = se(($, re) => {
10430
- $.style[L] = "auto", h && h($, re);
10431
- }), Ne = se(($) => {
10432
- $.style[L] = `${ne()}px`, x && x($);
10433
- }), ve = se(w), Ie = se(($) => {
10427
+ B.style.transitionDuration = typeof ye == "string" ? ye : `${ye}ms`;
10428
+ B.style[L] = `${Te}px`, B.style.transitionTimingFunction = oe, g && g(B, re);
10429
+ }), le = se((B, re) => {
10430
+ B.style[L] = "auto", h && h(B, re);
10431
+ }), Ne = se((B) => {
10432
+ B.style[L] = `${ne()}px`, x && x(B);
10433
+ }), ve = se(w), Ie = se((B) => {
10434
10434
  const re = ne(), {
10435
10435
  duration: Te,
10436
10436
  easing: ye
@@ -10442,11 +10442,11 @@ const Oh = (t) => {
10442
10442
  mode: "exit"
10443
10443
  });
10444
10444
  if (b === "auto") {
10445
- const oe = B.transitions.getAutoHeightDuration(re);
10446
- $.style.transitionDuration = `${oe}ms`, U.current = oe;
10445
+ const oe = $.transitions.getAutoHeightDuration(re);
10446
+ B.style.transitionDuration = `${oe}ms`, U.current = oe;
10447
10447
  } else
10448
- $.style.transitionDuration = typeof Te == "string" ? Te : `${Te}ms`;
10449
- $.style[L] = N, $.style.transitionTimingFunction = ye, v && v($);
10448
+ B.style.transitionDuration = typeof Te == "string" ? Te : `${Te}ms`;
10449
+ B.style[L] = N, B.style.transitionTimingFunction = ye, v && v(B);
10450
10450
  });
10451
10451
  return /* @__PURE__ */ d(k, {
10452
10452
  in: f,
@@ -10456,13 +10456,13 @@ const Oh = (t) => {
10456
10456
  onExit: Ne,
10457
10457
  onExited: ve,
10458
10458
  onExiting: Ie,
10459
- addEndListener: ($) => {
10460
- b === "auto" && j.start(U.current || 0, $), o && o(q.current, $);
10459
+ addEndListener: (B) => {
10460
+ b === "auto" && j.start(U.current || 0, B), o && o(q.current, B);
10461
10461
  },
10462
10462
  nodeRef: q,
10463
10463
  timeout: b === "auto" ? null : b,
10464
10464
  ...I,
10465
- children: ($, {
10465
+ children: (B, {
10466
10466
  ownerState: re,
10467
10467
  ...Te
10468
10468
  }) => /* @__PURE__ */ d(Rh, {
@@ -10470,7 +10470,7 @@ const Oh = (t) => {
10470
10470
  className: ke(H.root, a, {
10471
10471
  entered: H.entered,
10472
10472
  exited: !f && N === "0px" && H.hidden
10473
- }[$]),
10473
+ }[B]),
10474
10474
  style: {
10475
10475
  [F ? "minWidth" : "minHeight"]: N,
10476
10476
  ...T
@@ -10478,20 +10478,20 @@ const Oh = (t) => {
10478
10478
  ref: V,
10479
10479
  ownerState: {
10480
10480
  ...M,
10481
- state: $
10481
+ state: B
10482
10482
  },
10483
10483
  ...Te,
10484
10484
  children: /* @__PURE__ */ d(Ih, {
10485
10485
  ownerState: {
10486
10486
  ...M,
10487
- state: $
10487
+ state: B
10488
10488
  },
10489
10489
  className: H.wrapper,
10490
10490
  ref: z,
10491
10491
  children: /* @__PURE__ */ d(Ph, {
10492
10492
  ownerState: {
10493
10493
  ...M,
10494
- state: $
10494
+ state: B
10495
10495
  },
10496
10496
  className: H.wrapperInner,
10497
10497
  children: i
@@ -10904,7 +10904,7 @@ const Vh = (t, e) => {
10904
10904
  disableGutters: x = !1,
10905
10905
  disablePadding: w = !1,
10906
10906
  divider: v = !1,
10907
- secondaryAction: E,
10907
+ secondaryAction: O,
10908
10908
  slotProps: T = {},
10909
10909
  slots: b = {},
10910
10910
  ...k
@@ -10912,7 +10912,7 @@ const Vh = (t, e) => {
10912
10912
  dense: g || I.dense || !1,
10913
10913
  alignItems: o,
10914
10914
  disableGutters: x
10915
- }), [o, I.dense, g, x]), H = _.useRef(null), B = _.Children.toArray(i), j = B.length && Qr(B[B.length - 1], ["ListItemSecondaryAction"]), z = {
10915
+ }), [o, I.dense, g, x]), H = _.useRef(null), $ = _.Children.toArray(i), j = $.length && Qr($[$.length - 1], ["ListItemSecondaryAction"]), z = {
10916
10916
  ...s,
10917
10917
  alignItems: o,
10918
10918
  dense: M.dense,
@@ -10943,8 +10943,8 @@ const Vh = (t, e) => {
10943
10943
  }
10944
10944
  },
10945
10945
  ...q,
10946
- children: B
10947
- }), B.pop()]
10946
+ children: $
10947
+ }), $.pop()]
10948
10948
  })
10949
10949
  })) : /* @__PURE__ */ d(mr.Provider, {
10950
10950
  value: M,
@@ -10959,8 +10959,8 @@ const Vh = (t, e) => {
10959
10959
  }
10960
10960
  },
10961
10961
  ...q,
10962
- children: [B, E && /* @__PURE__ */ d(Wi, {
10963
- children: E
10962
+ children: [$, O && /* @__PURE__ */ d(Wi, {
10963
+ children: O
10964
10964
  })]
10965
10965
  })
10966
10966
  });
@@ -11262,7 +11262,7 @@ const em = /* @__PURE__ */ d(Zi, {
11262
11262
  slots: x = {},
11263
11263
  slotProps: w = {},
11264
11264
  inputProps: v,
11265
- ...E
11265
+ ...O
11266
11266
  } = s, T = ln();
11267
11267
  let b = h;
11268
11268
  T && typeof b > "u" && (b = T.disabled), b ?? (b = !1);
@@ -11274,7 +11274,7 @@ const em = /* @__PURE__ */ d(Zi, {
11274
11274
  size: f
11275
11275
  }, I = Yh(k), M = Kh();
11276
11276
  let H = o;
11277
- const B = yi(u, M && M.onChange);
11277
+ const $ = yi(u, M && M.onChange);
11278
11278
  let j = c;
11279
11279
  M && (typeof H > "u" && (H = Jh(M.value, s.value)), typeof j > "u" && (j = M.name));
11280
11280
  const z = w.input ?? v, [U, N] = rt("root", {
@@ -11285,13 +11285,13 @@ const em = /* @__PURE__ */ d(Zi, {
11285
11285
  externalForwardedProps: {
11286
11286
  slots: x,
11287
11287
  slotProps: w,
11288
- ...E
11288
+ ...O
11289
11289
  },
11290
11290
  getSlotProps: (F) => ({
11291
11291
  ...F,
11292
11292
  onChange: (L, ...q) => {
11293
11293
  var V;
11294
- (V = F.onChange) == null || V.call(F, L, ...q), B(L, ...q);
11294
+ (V = F.onChange) == null || V.call(F, L, ...q), $(L, ...q);
11295
11295
  }
11296
11296
  }),
11297
11297
  ownerState: k,
@@ -11459,7 +11459,7 @@ const rm = (t) => {
11459
11459
  T || (T = p.current.querySelector("input:not(:disabled)")), T && T.focus();
11460
11460
  }
11461
11461
  }), []);
11462
- const w = jt(n, p), v = Ai(l), E = _.useMemo(() => ({
11462
+ const w = jt(n, p), v = Ai(l), O = _.useMemo(() => ({
11463
11463
  name: v,
11464
11464
  onChange(T) {
11465
11465
  x(T.target.value), c && c(T, T.target.value);
@@ -11467,7 +11467,7 @@ const rm = (t) => {
11467
11467
  value: g
11468
11468
  }), [v, c, x, g]);
11469
11469
  return /* @__PURE__ */ d(Hi.Provider, {
11470
- value: E,
11470
+ value: O,
11471
11471
  children: /* @__PURE__ */ d(Cc, {
11472
11472
  role: "radiogroup",
11473
11473
  ref: w,
@@ -11652,13 +11652,13 @@ function pm(t) {
11652
11652
  scale: x = dm,
11653
11653
  step: w = 1,
11654
11654
  shiftStep: v = 10,
11655
- tabIndex: E,
11655
+ tabIndex: O,
11656
11656
  value: T
11657
- } = t, b = _.useRef(void 0), [k, I] = _.useState(-1), [M, H] = _.useState(-1), [B, j] = _.useState(!1), z = _.useRef(0), U = _.useRef(null), [N, F] = rs({
11657
+ } = t, b = _.useRef(void 0), [k, I] = _.useState(-1), [M, H] = _.useState(-1), [$, j] = _.useState(!1), z = _.useRef(0), U = _.useRef(null), [N, F] = rs({
11658
11658
  controlled: T,
11659
11659
  default: n ?? c,
11660
11660
  name: "Slider"
11661
- }), L = f && ((C, S, O) => {
11661
+ }), L = f && ((C, S, E) => {
11662
11662
  const A = C.nativeEvent || C, Z = new A.constructor(A.type, A);
11663
11663
  Object.defineProperty(Z, "target", {
11664
11664
  writable: !0,
@@ -11666,7 +11666,7 @@ function pm(t) {
11666
11666
  value: S,
11667
11667
  name: u
11668
11668
  }
11669
- }), U.current = S, f(Z, S, O);
11669
+ }), U.current = S, f(Z, S, E);
11670
11670
  }), q = Array.isArray(N);
11671
11671
  let V = q ? N.slice().sort(Tc) : [N];
11672
11672
  V = V.map((C) => C == null ? c : $r(C, c, l));
@@ -11674,35 +11674,35 @@ function pm(t) {
11674
11674
  value: c + w * S
11675
11675
  })) : a || [], ne = se.map((C) => C.value), [Y, me] = _.useState(-1), le = _.useRef(null), Ne = jt(g, le), ve = (C) => (S) => {
11676
11676
  var A;
11677
- const O = Number(S.currentTarget.getAttribute("data-index"));
11678
- oa(S.target) && me(O), H(O), (A = C == null ? void 0 : C.onFocus) == null || A.call(C, S);
11677
+ const E = Number(S.currentTarget.getAttribute("data-index"));
11678
+ oa(S.target) && me(E), H(E), (A = C == null ? void 0 : C.onFocus) == null || A.call(C, S);
11679
11679
  }, Ie = (C) => (S) => {
11680
- var O;
11681
- oa(S.target) || me(-1), H(-1), (O = C == null ? void 0 : C.onBlur) == null || O.call(C, S);
11680
+ var E;
11681
+ oa(S.target) || me(-1), H(-1), (E = C == null ? void 0 : C.onBlur) == null || E.call(C, S);
11682
11682
  }, D = (C, S) => {
11683
- const O = Number(C.currentTarget.getAttribute("data-index")), A = V[O], Z = ne.indexOf(A);
11683
+ const E = Number(C.currentTarget.getAttribute("data-index")), A = V[E], Z = ne.indexOf(A);
11684
11684
  let G = S;
11685
11685
  if (se && w == null) {
11686
11686
  const Q = ne[ne.length - 1];
11687
11687
  G >= Q ? G = Q : G <= ne[0] ? G = ne[0] : G = G < A ? ne[Z - 1] : ne[Z + 1];
11688
11688
  }
11689
11689
  if (G = $r(G, c, l), q) {
11690
- o && (G = $r(G, V[O - 1] || -1 / 0, V[O + 1] || 1 / 0));
11690
+ o && (G = $r(G, V[E - 1] || -1 / 0, V[E + 1] || 1 / 0));
11691
11691
  const Q = G;
11692
11692
  G = Wa({
11693
11693
  values: V,
11694
11694
  newValue: G,
11695
- index: O
11695
+ index: E
11696
11696
  });
11697
- let Ae = O;
11697
+ let Ae = E;
11698
11698
  o || (Ae = G.indexOf(Q)), js({
11699
11699
  sliderRef: le,
11700
11700
  activeIndex: Ae
11701
11701
  });
11702
11702
  }
11703
- F(G), me(O), L && !Vs(G, N) && L(C, G, O), p && p(C, U.current ?? G);
11704
- }, $ = (C) => (S) => {
11705
- var O;
11703
+ F(G), me(E), L && !Vs(G, N) && L(C, G, E), p && p(C, U.current ?? G);
11704
+ }, B = (C) => (S) => {
11705
+ var E;
11706
11706
  if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Home", "End"].includes(S.key)) {
11707
11707
  S.preventDefault();
11708
11708
  const A = Number(S.currentTarget.getAttribute("data-index")), Z = V[A];
@@ -11741,15 +11741,15 @@ function pm(t) {
11741
11741
  }
11742
11742
  G != null && D(S, G);
11743
11743
  }
11744
- (O = C == null ? void 0 : C.onKeyDown) == null || O.call(C, S);
11744
+ (E = C == null ? void 0 : C.onKeyDown) == null || E.call(C, S);
11745
11745
  };
11746
11746
  ts(() => {
11747
11747
  var C;
11748
11748
  s && le.current.contains(document.activeElement) && ((C = document.activeElement) == null || C.blur());
11749
11749
  }, [s]), s && k !== -1 && I(-1), s && Y !== -1 && me(-1);
11750
11750
  const re = (C) => (S) => {
11751
- var O;
11752
- (O = C.onChange) == null || O.call(C, S), D(S, S.target.valueAsNumber);
11751
+ var E;
11752
+ (E = C.onChange) == null || E.call(C, S), D(S, S.target.valueAsNumber);
11753
11753
  }, Te = _.useRef(void 0);
11754
11754
  let ye = h;
11755
11755
  i && h === "horizontal" && (ye += "-reverse");
@@ -11758,13 +11758,13 @@ function pm(t) {
11758
11758
  move: S = !1
11759
11759
  }) => {
11760
11760
  const {
11761
- current: O
11761
+ current: E
11762
11762
  } = le, {
11763
11763
  width: A,
11764
11764
  height: Z,
11765
11765
  bottom: G,
11766
11766
  left: Q
11767
- } = O.getBoundingClientRect();
11767
+ } = E.getBoundingClientRect();
11768
11768
  let Ae;
11769
11769
  ye.startsWith("vertical") ? Ae = (G - C.y) / Z : Ae = (C.x - Q) / A, ye.includes("-reverse") && (Ae = 1 - Ae);
11770
11770
  let Ee;
@@ -11798,7 +11798,7 @@ function pm(t) {
11798
11798
  return;
11799
11799
  }
11800
11800
  const {
11801
- newValue: O,
11801
+ newValue: E,
11802
11802
  activeIndex: A
11803
11803
  } = oe({
11804
11804
  finger: S,
@@ -11808,31 +11808,31 @@ function pm(t) {
11808
11808
  sliderRef: le,
11809
11809
  activeIndex: A,
11810
11810
  setActive: I
11811
- }), F(O), !B && z.current > im && j(!0), L && !Vs(O, N) && L(C, O, A);
11811
+ }), F(E), !$ && z.current > im && j(!0), L && !Vs(E, N) && L(C, E, A);
11812
11812
  }), ge = fr((C) => {
11813
11813
  const S = zs(C, b);
11814
11814
  if (j(!1), !S)
11815
11815
  return;
11816
11816
  const {
11817
- newValue: O
11817
+ newValue: E
11818
11818
  } = oe({
11819
11819
  finger: S,
11820
11820
  move: !0
11821
11821
  });
11822
- I(-1), C.type === "touchend" && H(-1), p && p(C, U.current ?? O), b.current = void 0, be();
11822
+ I(-1), C.type === "touchend" && H(-1), p && p(C, U.current ?? E), b.current = void 0, be();
11823
11823
  }), we = fr((C) => {
11824
11824
  if (s)
11825
11825
  return;
11826
11826
  Za() || C.preventDefault();
11827
11827
  const S = C.changedTouches[0];
11828
11828
  S != null && (b.current = S.identifier);
11829
- const O = zs(C, b);
11830
- if (O !== !1) {
11829
+ const E = zs(C, b);
11830
+ if (E !== !1) {
11831
11831
  const {
11832
11832
  newValue: Z,
11833
11833
  activeIndex: G
11834
11834
  } = oe({
11835
- finger: O
11835
+ finger: E
11836
11836
  });
11837
11837
  js({
11838
11838
  sliderRef: le,
@@ -11868,13 +11868,13 @@ function pm(t) {
11868
11868
  if ((Z = C.onMouseDown) == null || Z.call(C, S), s || S.defaultPrevented || S.button !== 0)
11869
11869
  return;
11870
11870
  S.preventDefault();
11871
- const O = zs(S, b);
11872
- if (O !== !1) {
11871
+ const E = zs(S, b);
11872
+ if (E !== !1) {
11873
11873
  const {
11874
11874
  newValue: G,
11875
11875
  activeIndex: Q
11876
11876
  } = oe({
11877
- finger: O
11877
+ finger: E
11878
11878
  });
11879
11879
  js({
11880
11880
  sliderRef: le,
@@ -11888,11 +11888,11 @@ function pm(t) {
11888
11888
  passive: !0
11889
11889
  }), A.addEventListener("mouseup", ge);
11890
11890
  }, Ge = po(q ? V[0] : c, c, l), Ve = po(V[V.length - 1], c, l) - Ge, tt = (C = {}) => {
11891
- const S = Us(C), O = {
11891
+ const S = Us(C), E = {
11892
11892
  onMouseDown: je(S || {})
11893
11893
  }, A = {
11894
11894
  ...S,
11895
- ...O
11895
+ ...E
11896
11896
  };
11897
11897
  return {
11898
11898
  ...C,
@@ -11902,20 +11902,20 @@ function pm(t) {
11902
11902
  }, at = (C) => (S) => {
11903
11903
  var A;
11904
11904
  (A = C.onMouseOver) == null || A.call(C, S);
11905
- const O = Number(S.currentTarget.getAttribute("data-index"));
11906
- H(O);
11905
+ const E = Number(S.currentTarget.getAttribute("data-index"));
11906
+ H(E);
11907
11907
  }, lt = (C) => (S) => {
11908
- var O;
11909
- (O = C.onMouseLeave) == null || O.call(C, S), H(-1);
11908
+ var E;
11909
+ (E = C.onMouseLeave) == null || E.call(C, S), H(-1);
11910
11910
  }, Ze = (C = {}) => {
11911
- const S = Us(C), O = {
11911
+ const S = Us(C), E = {
11912
11912
  onMouseOver: at(S || {}),
11913
11913
  onMouseLeave: lt(S || {})
11914
11914
  };
11915
11915
  return {
11916
11916
  ...C,
11917
11917
  ...S,
11918
- ...O
11918
+ ...E
11919
11919
  };
11920
11920
  }, m = (C) => ({
11921
11921
  // So the non active thumb doesn't show its label on hover.
@@ -11926,20 +11926,20 @@ function pm(t) {
11926
11926
  active: k,
11927
11927
  axis: ye,
11928
11928
  axisProps: um,
11929
- dragging: B,
11929
+ dragging: $,
11930
11930
  focusedThumbIndex: Y,
11931
11931
  getHiddenInputProps: (C = {}) => {
11932
- const S = Us(C), O = {
11932
+ const S = Us(C), E = {
11933
11933
  onChange: re(S || {}),
11934
11934
  onFocus: ve(S || {}),
11935
11935
  onBlur: Ie(S || {}),
11936
- onKeyDown: $(S || {})
11936
+ onKeyDown: B(S || {})
11937
11937
  }, A = {
11938
11938
  ...S,
11939
- ...O
11939
+ ...E
11940
11940
  };
11941
11941
  return {
11942
- tabIndex: E,
11942
+ tabIndex: O,
11943
11943
  "aria-labelledby": e,
11944
11944
  "aria-orientation": h,
11945
11945
  "aria-valuemax": x(l),
@@ -12557,14 +12557,14 @@ const xm = ie("span", {
12557
12557
  disableSwap: x = !1,
12558
12558
  disabled: w = !1,
12559
12559
  getAriaLabel: v,
12560
- getAriaValueText: E,
12560
+ getAriaValueText: O,
12561
12561
  marks: T = !1,
12562
12562
  max: b = 100,
12563
12563
  min: k = 0,
12564
12564
  name: I,
12565
12565
  onChange: M,
12566
12566
  onChangeCommitted: H,
12567
- orientation: B = "horizontal",
12567
+ orientation: $ = "horizontal",
12568
12568
  shiftStep: j = 10,
12569
12569
  size: z = "medium",
12570
12570
  step: U = 1,
@@ -12585,7 +12585,7 @@ const xm = ie("span", {
12585
12585
  classes: h,
12586
12586
  disabled: w,
12587
12587
  disableSwap: x,
12588
- orientation: B,
12588
+ orientation: $,
12589
12589
  marks: T,
12590
12590
  color: p,
12591
12591
  size: z,
@@ -12600,7 +12600,7 @@ const xm = ie("span", {
12600
12600
  getRootProps: ve,
12601
12601
  getHiddenInputProps: Ie,
12602
12602
  getThumbProps: D,
12603
- open: $,
12603
+ open: B,
12604
12604
  active: re,
12605
12605
  axis: Te,
12606
12606
  focusedThumbIndex: ye,
@@ -12616,7 +12616,7 @@ const xm = ie("span", {
12616
12616
  rootRef: n
12617
12617
  });
12618
12618
  le.marked = ge.length > 0 && ge.some((ot) => ot.label), le.dragging = pe, le.focusedThumbIndex = ye;
12619
- const Ve = Cm(le), tt = (L == null ? void 0 : L.root) ?? u.Root ?? ym, at = (L == null ? void 0 : L.rail) ?? u.Rail ?? gm, lt = (L == null ? void 0 : L.track) ?? u.Track ?? bm, Ze = (L == null ? void 0 : L.thumb) ?? u.Thumb ?? vm, m = (L == null ? void 0 : L.valueLabel) ?? u.ValueLabel ?? kc, R = (L == null ? void 0 : L.mark) ?? u.Mark ?? xm, P = (L == null ? void 0 : L.markLabel) ?? u.MarkLabel ?? wm, C = (L == null ? void 0 : L.input) ?? u.Input ?? "input", S = (F == null ? void 0 : F.root) ?? f.root, O = (F == null ? void 0 : F.rail) ?? f.rail, A = (F == null ? void 0 : F.track) ?? f.track, Z = (F == null ? void 0 : F.thumb) ?? f.thumb, G = (F == null ? void 0 : F.valueLabel) ?? f.valueLabel, Q = (F == null ? void 0 : F.mark) ?? f.mark, Ae = (F == null ? void 0 : F.markLabel) ?? f.markLabel, Ee = (F == null ? void 0 : F.input) ?? f.input, Qe = dn({
12619
+ const Ve = Cm(le), tt = (L == null ? void 0 : L.root) ?? u.Root ?? ym, at = (L == null ? void 0 : L.rail) ?? u.Rail ?? gm, lt = (L == null ? void 0 : L.track) ?? u.Track ?? bm, Ze = (L == null ? void 0 : L.thumb) ?? u.Thumb ?? vm, m = (L == null ? void 0 : L.valueLabel) ?? u.ValueLabel ?? kc, R = (L == null ? void 0 : L.mark) ?? u.Mark ?? xm, P = (L == null ? void 0 : L.markLabel) ?? u.MarkLabel ?? wm, C = (L == null ? void 0 : L.input) ?? u.Input ?? "input", S = (F == null ? void 0 : F.root) ?? f.root, E = (F == null ? void 0 : F.rail) ?? f.rail, A = (F == null ? void 0 : F.track) ?? f.track, Z = (F == null ? void 0 : F.thumb) ?? f.thumb, G = (F == null ? void 0 : F.valueLabel) ?? f.valueLabel, Q = (F == null ? void 0 : F.mark) ?? f.mark, Ae = (F == null ? void 0 : F.markLabel) ?? f.markLabel, Ee = (F == null ? void 0 : F.input) ?? f.input, Qe = dn({
12620
12620
  elementType: tt,
12621
12621
  getSlotProps: ve,
12622
12622
  externalSlotProps: S,
@@ -12633,7 +12633,7 @@ const xm = ie("span", {
12633
12633
  className: [Ve.root, g]
12634
12634
  }), Kt = dn({
12635
12635
  elementType: at,
12636
- externalSlotProps: O,
12636
+ externalSlotProps: E,
12637
12637
  ownerState: le,
12638
12638
  className: Ve.rail
12639
12639
  }), ce = dn({
@@ -12729,7 +12729,7 @@ const xm = ie("span", {
12729
12729
  valueLabelDisplay: ne,
12730
12730
  value: typeof Y == "function" ? Y(N(ot), dt) : Y,
12731
12731
  index: dt,
12732
- open: $ === dt || re === dt || ne === "on",
12732
+ open: B === dt || re === dt || ne === "on",
12733
12733
  disabled: w
12734
12734
  },
12735
12735
  ...Je,
@@ -12747,7 +12747,7 @@ const xm = ie("span", {
12747
12747
  "aria-label": v ? v(dt) : i,
12748
12748
  "aria-valuenow": N(ot),
12749
12749
  "aria-labelledby": l,
12750
- "aria-valuetext": E ? E(N(ot), dt) : a,
12750
+ "aria-valuetext": O ? O(N(ot), dt) : a,
12751
12751
  value: we[dt],
12752
12752
  ...nu
12753
12753
  })
@@ -13049,7 +13049,7 @@ const _m = new Tm(), km = ({
13049
13049
  }) => {
13050
13050
  const { mutate: i } = $d({
13051
13051
  onSuccess: () => {
13052
- Ns("Obiekt mapowy został przypisany do sprawy"), it.layersEventEmitters.emit("onRestartLayers"), Oe.mapEventEmitter.emit("reloadFeatures"), $(null);
13052
+ Ns("Obiekt mapowy został przypisany do sprawy"), it.layersEventEmitters.emit("onRestartLayers"), Oe.mapEventEmitter.emit("reloadFeatures"), B(null);
13053
13053
  },
13054
13054
  onError: () => {
13055
13055
  tn("Błąd podczas przypisywania obiektu mapowego do sprawy");
@@ -13061,15 +13061,15 @@ const _m = new Tm(), km = ({
13061
13061
  snapFeatures: x,
13062
13062
  mapInstance: w,
13063
13063
  isModalAccepted: v,
13064
- selectedLayerId: E,
13064
+ selectedLayerId: O,
13065
13065
  prefix: T,
13066
13066
  showInfoLayerEnabledRef: b,
13067
13067
  drawLayer: k,
13068
13068
  currentlySelectedFeatureIdsRef: I,
13069
13069
  initialSelectedFeaturesRef: M
13070
- } = ir(), [H, B] = ue(!1), [j, z] = ue(!1), [U, N] = ue(!1), [F, L] = ue(!1), [q, V] = ue(!1), [se, ne] = ue(!1), [Y, me] = ue([]), [le, Ne] = ue([]), [ve, Ie] = ue(
13070
+ } = ir(), [H, $] = ue(!1), [j, z] = ue(!1), [U, N] = ue(!1), [F, L] = ue(!1), [q, V] = ue(!1), [se, ne] = ue(!1), [Y, me] = ue([]), [le, Ne] = ue([]), [ve, Ie] = ue(
13071
13071
  e.length === 1 ? { value: e[0].layerId, label: e[0].name } : null
13072
- ), [D, $] = ue(null), re = (C) => {
13072
+ ), [D, B] = ue(null), re = (C) => {
13073
13073
  C && ge(!0), v.current = C, localStorage.setItem("isModalAccepted", String(C)), l();
13074
13074
  }, Te = async () => {
13075
13075
  if (Y.length === 0) {
@@ -13080,27 +13080,27 @@ const _m = new Tm(), km = ({
13080
13080
  coordinates: Y.flatMap(
13081
13081
  (Z) => Z.getCoordinates()
13082
13082
  )
13083
- }, O = new Eu(S.coordinates), A = new Ou().writeGeometryObject(
13084
- O
13083
+ }, E = new Eu(S.coordinates), A = new Ou().writeGeometryObject(
13084
+ E
13085
13085
  );
13086
13086
  try {
13087
13087
  await Oe.createPurposeGeometry(
13088
13088
  n,
13089
13089
  A,
13090
- E.current
13090
+ O.current
13091
13091
  ), Ns("All geometries sent successfully"), me([]);
13092
13092
  } catch {
13093
13093
  tn("Failed to send geometries");
13094
13094
  }
13095
13095
  }, ye = () => {
13096
13096
  if (p) {
13097
- B(!1);
13097
+ $(!1);
13098
13098
  const C = p.current.select.getFeatures();
13099
13099
  C.forEach((S) => {
13100
- const O = S.get("originalStyle");
13100
+ const E = S.get("originalStyle");
13101
13101
  try {
13102
- if (O)
13103
- S.setStyle(O);
13102
+ if (E)
13103
+ S.setStyle(E);
13104
13104
  else {
13105
13105
  const A = Oe.getDefaultStyle(S);
13106
13106
  S.setStyle(A);
@@ -13115,32 +13115,32 @@ const _m = new Tm(), km = ({
13115
13115
  });
13116
13116
  }, pe = async () => {
13117
13117
  const C = () => {
13118
- g.current = void 0, Fs(p == null ? void 0 : p.current), ye(), p.current.select.getFeatures().clear(), p.current.select.setActive(!0), p.current.hover.setActive(!0), N(!1), L(!1), B(!1);
13118
+ g.current = void 0, Fs(p == null ? void 0 : p.current), ye(), p.current.select.getFeatures().clear(), p.current.select.setActive(!0), p.current.hover.setActive(!0), N(!1), L(!1), $(!1);
13119
13119
  };
13120
13120
  if (p) {
13121
13121
  const S = p.current.select.getFeatures().getArray()[0];
13122
- let O = S.getId();
13123
- O = qs(O, T);
13122
+ let E = S.getId();
13123
+ E = qs(E, T);
13124
13124
  const A = S.getProperties().layerId, Z = {
13125
13125
  coordinates: S.getGeometry().getCoordinates(),
13126
13126
  type: S.getGeometry().getType()
13127
13127
  };
13128
13128
  if (h && g)
13129
13129
  if ((await Oe.validatePurposeGeometry(Z)).response)
13130
- if (O && A && n && n !== -1)
13130
+ if (E && A && n && n !== -1)
13131
13131
  try {
13132
13132
  await Oe.updatePurposeGeometry(
13133
13133
  n,
13134
- Number(O),
13134
+ Number(E),
13135
13135
  Z,
13136
13136
  A
13137
- ), O = `${T}${O}`;
13137
+ ), E = `${T}${E}`;
13138
13138
  const Q = Oe.filterLayersByFeatureId(
13139
- O,
13139
+ E,
13140
13140
  h.current
13141
13141
  );
13142
13142
  Q && Q.forEach((Ae) => {
13143
- Ae.getSource().getFeatureById(O).getGeometry().setCoordinates(
13143
+ Ae.getSource().getFeatureById(E).getGeometry().setCoordinates(
13144
13144
  Z.coordinates
13145
13145
  );
13146
13146
  }), C(), it.layersEventEmitters.emit("onRestartLayers"), Oe.mapEventEmitter.emit("reloadFeatures"), Ns("Zmiany zostały zapisane");
@@ -13174,8 +13174,8 @@ const _m = new Tm(), km = ({
13174
13174
  return a({
13175
13175
  popup: "ChooseLayer",
13176
13176
  data: {
13177
- onCollapse: (O) => {
13178
- l(), O && ge(!0, !0);
13177
+ onCollapse: (E) => {
13178
+ l(), E && ge(!0, !0);
13179
13179
  }
13180
13180
  }
13181
13181
  });
@@ -13193,16 +13193,16 @@ const _m = new Tm(), km = ({
13193
13193
  a({
13194
13194
  popup: "ConfirmDelete",
13195
13195
  data: {
13196
- onCollapse: (O) => {
13197
- O && Ge(!0), l();
13196
+ onCollapse: (E) => {
13197
+ E && Ge(!0), l();
13198
13198
  }
13199
13199
  }
13200
13200
  });
13201
13201
  else {
13202
- Fs(p.current), p.current.select.setActive(!0), p.current.hover.setActive(!0), L(!1), B(!1), N(!1);
13203
- const O = (S = p.current.select) == null ? void 0 : S.getFeatures().getArray()[0];
13204
- let A = O.getId();
13205
- if (A && A.toString().includes(T) && (A = Number(A.toString().split(T)[1])), O && h && p)
13202
+ Fs(p.current), p.current.select.setActive(!0), p.current.hover.setActive(!0), L(!1), $(!1), N(!1);
13203
+ const E = (S = p.current.select) == null ? void 0 : S.getFeatures().getArray()[0];
13204
+ let A = E.getId();
13205
+ if (A && A.toString().includes(T) && (A = Number(A.toString().split(T)[1])), E && h && p)
13206
13206
  if (p.current.select.getFeatures().clear(), typeof A == "number") {
13207
13207
  if (n && n !== -1)
13208
13208
  try {
@@ -13220,7 +13220,7 @@ const _m = new Tm(), km = ({
13220
13220
  tn("Nie udało się usunąć obiektu");
13221
13221
  }
13222
13222
  } else {
13223
- const Z = da(O), G = Oe.findLayerByUId(Z, h.current);
13223
+ const Z = da(E), G = Oe.findLayerByUId(Z, h.current);
13224
13224
  if (G) {
13225
13225
  const Q = G.getSource().getFeatureByUid(Z), Ae = G.getSource();
13226
13226
  ua(Ae, Q);
@@ -13229,7 +13229,7 @@ const _m = new Tm(), km = ({
13229
13229
  }
13230
13230
  }, P = {
13231
13231
  isSelected: H,
13232
- setIsSelected: B,
13232
+ setIsSelected: $,
13233
13233
  allowModify: j,
13234
13234
  setAllowModify: z,
13235
13235
  isDrawing: U,
@@ -13264,7 +13264,7 @@ const _m = new Tm(), km = ({
13264
13264
  });
13265
13265
  },
13266
13266
  mapRepresentationIdToAssign: D,
13267
- setMapRepresentationIdToAssign: $,
13267
+ setMapRepresentationIdToAssign: B,
13268
13268
  showLocationEnabled: se,
13269
13269
  onToggleShowLocation: () => {
13270
13270
  Oe.mapEventEmitter.emit(
@@ -13294,9 +13294,9 @@ const _m = new Tm(), km = ({
13294
13294
  const C = M.current;
13295
13295
  if (!(C != null && C.length)) return;
13296
13296
  const S = [];
13297
- if (w.current.getLayers().forEach((O) => {
13298
- if (O instanceof Yo) {
13299
- const A = O.getSource();
13297
+ if (w.current.getLayers().forEach((E) => {
13298
+ if (E instanceof Yo) {
13299
+ const A = E.getSource();
13300
13300
  A instanceof Il && A.getFeatures().forEach((Z) => {
13301
13301
  const G = Z.getId();
13302
13302
  G && C.some((Q) => Q.id === Number(G)) && S.push(Z);
@@ -13319,11 +13319,11 @@ const _m = new Tm(), km = ({
13319
13319
  const A = p.current.select.getFeatures().getArray();
13320
13320
  o(A);
13321
13321
  }
13322
- const O = ca();
13322
+ const E = ca();
13323
13323
  S.forEach((A) => {
13324
13324
  const Z = A.getGeometry();
13325
- Z && la(O, Z.getExtent());
13326
- }), w.current.getView().fit(O, {
13325
+ Z && la(E, Z.getExtent());
13326
+ }), w.current.getView().fit(E, {
13327
13327
  size: w.current.getSize(),
13328
13328
  padding: [20, 20, 20, 20],
13329
13329
  duration: 300,
@@ -13336,8 +13336,8 @@ const _m = new Tm(), km = ({
13336
13336
  const C = p.current.select.getFeatures().getArray();
13337
13337
  if (!(C != null && C.length)) return;
13338
13338
  const S = ca();
13339
- C.forEach((O) => {
13340
- const A = O.getGeometry();
13339
+ C.forEach((E) => {
13340
+ const A = E.getGeometry();
13341
13341
  A && la(S, A.getExtent());
13342
13342
  }), w.current.getView().fit(S, {
13343
13343
  size: w.current.getSize(),
@@ -13547,10 +13547,10 @@ const Om = Xe(He)`
13547
13547
  const h = {};
13548
13548
  for (const x of e) {
13549
13549
  const w = qs(x.getId(), o), v = x.getProperties().layerId;
13550
- let E = (g = s.find(
13550
+ let O = (g = s.find(
13551
13551
  (T) => T.layerId === v
13552
13552
  )) == null ? void 0 : g.name;
13553
- !E && w && (E = (await Ru(Number(w))).title), w && E && (h[w] = `${E} ID: ${qs(w, o)}`);
13553
+ !O && w && (O = (await Ru(Number(w))).title), w && O && (h[w] = `${O} ID: ${qs(w, o)}`);
13554
13554
  }
13555
13555
  c(h), f(!1);
13556
13556
  })();
@@ -14663,7 +14663,7 @@ const ft = new oy(), iy = () => {
14663
14663
  s((U) => ({ ...U, [j]: z })), p(void 0);
14664
14664
  },
14665
14665
  []
14666
- ), E = xt(() => {
14666
+ ), O = xt(() => {
14667
14667
  x.current && (ft.addPrintFrame(x.current, n), g(ft.getPrintFrameCount()));
14668
14668
  }, [n, x]), T = xt((j) => {
14669
14669
  ft.removePrintFrame(j), g(ft.getPrintFrameCount());
@@ -14770,7 +14770,7 @@ ${c.map((U) => `${U.id}: ${U.name}`).join(`
14770
14770
  }
14771
14771
  }, [n, h, w]), H = xt(() => {
14772
14772
  l((j) => !j);
14773
- }, []), B = c.map((j) => ({
14773
+ }, []), $ = c.map((j) => ({
14774
14774
  value: j.id,
14775
14775
  label: j.name
14776
14776
  }));
@@ -14781,10 +14781,10 @@ ${c.map((U) => `${U.id}: ${U.name}`).join(`
14781
14781
  additionalOptionsOpen: a,
14782
14782
  selectedTemplate: f,
14783
14783
  frameCount: h,
14784
- templateOptions: B,
14784
+ templateOptions: $,
14785
14785
  handleClose: w,
14786
14786
  updateConfig: v,
14787
- handleAddFrame: E,
14787
+ handleAddFrame: O,
14788
14788
  handleRemoveFrame: T,
14789
14789
  handleTemplateSelect: b,
14790
14790
  handleSaveTemplate: k,
@@ -15052,7 +15052,7 @@ const Ic = iu(
15052
15052
  }, gy = ({
15053
15053
  children: t
15054
15054
  }) => {
15055
- const [e, n] = ue(), [s, o] = ue(), [i, a] = ue(0), [l, c] = ue(0), [u, f] = ue(0), [p, h] = ue(0), [g, x] = ue(0), [w, v] = ue([]), [E, T] = ue([]), [b, k] = ue(), I = {
15055
+ const [e, n] = ue(), [s, o] = ue(), [i, a] = ue(0), [l, c] = ue(0), [u, f] = ue(0), [p, h] = ue(0), [g, x] = ue(0), [w, v] = ue([]), [O, T] = ue([]), [b, k] = ue(), I = {
15056
15056
  setMileageStart: c,
15057
15057
  setMileageEnd: f,
15058
15058
  setSelectedNet: o,
@@ -15068,7 +15068,7 @@ const Ic = iu(
15068
15068
  chainageValue: p,
15069
15069
  mileageValue: g,
15070
15070
  setRoads: T,
15071
- roads: E,
15071
+ roads: O,
15072
15072
  nets: w,
15073
15073
  setNets: v,
15074
15074
  prgAddressValue: b,
@@ -15107,13 +15107,13 @@ const vy = ({ onlyGemLayers: t, disableTreeConfig: e }) => {
15107
15107
  (async () => {
15108
15108
  const w = (await it.queryGEMLayers()).data.response.data;
15109
15109
  l(w);
15110
- const v = await it.querySelectedLayers("MAP_VIEW"), E = JSON.parse(
15110
+ const v = await it.querySelectedLayers("MAP_VIEW"), O = JSON.parse(
15111
15111
  v.data.response.MAP_RLO_VIEW_LAYER_SELECTED
15112
15112
  );
15113
- p.current = E.selected;
15113
+ p.current = O.selected;
15114
15114
  const T = it.queryLayersByKeys(
15115
15115
  w,
15116
- E.selected
15116
+ O.selected
15117
15117
  ), b = T.map((M) => M.id), k = it.processLayersStructure(
15118
15118
  w,
15119
15119
  b
@@ -15142,11 +15142,11 @@ const vy = ({ onlyGemLayers: t, disableTreeConfig: e }) => {
15142
15142
  s(!0);
15143
15143
  const v = it.onNodeCheck(x, w, o);
15144
15144
  i(v);
15145
- const E = it.getCheckedLayerIds(v);
15146
- p.current = E;
15145
+ const O = it.getCheckedLayerIds(v);
15146
+ p.current = O;
15147
15147
  const T = it.queryLayersByKeys(
15148
15148
  a,
15149
- E
15149
+ O
15150
15150
  );
15151
15151
  if (it.setSelectedLayers(T), !e) {
15152
15152
  const b = g(T);
@@ -15165,8 +15165,8 @@ const vy = ({ onlyGemLayers: t, disableTreeConfig: e }) => {
15165
15165
  }),
15166
15166
  vectorLayers: x.filter(
15167
15167
  (w) => {
15168
- var v, E;
15169
- return ((v = w.config) == null ? void 0 : v.type) === "VECTOR" && !((E = w.config) != null && E.url);
15168
+ var v, O;
15169
+ return ((v = w.config) == null ? void 0 : v.type) === "VECTOR" && !((O = w.config) != null && O.url);
15170
15170
  }
15171
15171
  )
15172
15172
  });
@@ -15353,8 +15353,8 @@ function Ty(t) {
15353
15353
  },
15354
15354
  type: ho.BLUR
15355
15355
  }), [n, o._formValues]), x = qe.useCallback((v) => {
15356
- const E = X(o._fields, n);
15357
- E && v && (E._f.ref = v);
15356
+ const O = X(o._fields, n);
15357
+ O && v && (O._f.ref = v);
15358
15358
  }, [o._fields, n]), w = qe.useMemo(() => ({
15359
15359
  name: n,
15360
15360
  value: l,
@@ -15369,16 +15369,16 @@ function Ty(t) {
15369
15369
  ...u.current.rules,
15370
15370
  ...At(u.current.disabled) ? { disabled: u.current.disabled } : {}
15371
15371
  });
15372
- const E = (T, b) => {
15372
+ const O = (T, b) => {
15373
15373
  const k = X(o._fields, T);
15374
15374
  k && k._f && (k._f.mount = b);
15375
15375
  };
15376
- if (E(n, !0), v) {
15376
+ if (O(n, !0), v) {
15377
15377
  const T = pt(X(o._options.defaultValues, n));
15378
15378
  $e(o._defaultValues, n, T), nt(X(o._formValues, n)) && $e(o._formValues, n, T);
15379
15379
  }
15380
15380
  return !a && o.register(n), () => {
15381
- (a ? v && !o._state.action : v) ? o.unregister(n) : E(n, !1);
15381
+ (a ? v && !o._state.action : v) ? o.unregister(n) : O(n, !1);
15382
15382
  };
15383
15383
  }, [n, o, a, i]), qe.useEffect(() => {
15384
15384
  o._setDisabledField({
@@ -15592,12 +15592,12 @@ var ur = (t) => st(t) && !go(t) ? t : {
15592
15592
  value: t,
15593
15593
  message: ""
15594
15594
  }, cl = async (t, e, n, s, o, i) => {
15595
- const { ref: a, refs: l, required: c, maxLength: u, minLength: f, min: p, max: h, pattern: g, validate: x, name: w, valueAsNumber: v, mount: E } = t._f, T = X(n, w);
15596
- if (!E || e.has(w))
15595
+ const { ref: a, refs: l, required: c, maxLength: u, minLength: f, min: p, max: h, pattern: g, validate: x, name: w, valueAsNumber: v, mount: O } = t._f, T = X(n, w);
15596
+ if (!O || e.has(w))
15597
15597
  return {};
15598
15598
  const b = l ? l[0] : a, k = (N) => {
15599
15599
  o && b.reportValidity && (b.setCustomValidity(At(N) ? "" : N || ""), b.reportValidity());
15600
- }, I = {}, M = ta(a), H = Rs(a), B = M || H, j = (v || ea(a)) && nt(a.value) && nt(T) || mo(a) && a.value === "" || T === "" || Array.isArray(T) && !T.length, z = zc.bind(null, w, s, I), U = (N, F, L, q = un.maxLength, V = un.minLength) => {
15600
+ }, I = {}, M = ta(a), H = Rs(a), $ = M || H, j = (v || ea(a)) && nt(a.value) && nt(T) || mo(a) && a.value === "" || T === "" || Array.isArray(T) && !T.length, z = zc.bind(null, w, s, I), U = (N, F, L, q = un.maxLength, V = un.minLength) => {
15601
15601
  const se = N ? F : L;
15602
15602
  I[w] = {
15603
15603
  type: N ? q : V,
@@ -15606,7 +15606,7 @@ var ur = (t) => st(t) && !go(t) ? t : {
15606
15606
  ...z(N ? q : V, se)
15607
15607
  };
15608
15608
  };
15609
- if (i ? !Array.isArray(T) || !T.length : c && (!B && (j || St(T)) || At(T) && !T || H && !Bc(l).isValid || M && !qc(l).isValid)) {
15609
+ if (i ? !Array.isArray(T) || !T.length : c && (!$ && (j || St(T)) || At(T) && !T || H && !Bc(l).isValid || M && !qc(l).isValid)) {
15610
15610
  const { value: N, message: F } = Qs(c) ? { value: !!c, message: c } : ur(c);
15611
15611
  if (N && (I[w] = {
15612
15612
  type: un.required,
@@ -15726,7 +15726,7 @@ function zy(t = {}) {
15726
15726
  state: Ja()
15727
15727
  }, g = sl(e.mode), x = sl(e.reValidateMode), w = e.criteriaMode === Ut.all, v = (m) => (R) => {
15728
15728
  clearTimeout(u), u = setTimeout(m, R);
15729
- }, E = async (m) => {
15729
+ }, O = async (m) => {
15730
15730
  if (!e.disabled && (f.isValid || p.isValid || m)) {
15731
15731
  const R = e.resolver ? vt((await j()).errors) : await U(s, !0);
15732
15732
  R !== n.isValid && h.state.next({
@@ -15740,17 +15740,17 @@ function zy(t = {}) {
15740
15740
  validatingFields: n.validatingFields,
15741
15741
  isValidating: !vt(n.validatingFields)
15742
15742
  }));
15743
- }, b = (m, R = [], P, C, S = !0, O = !0) => {
15743
+ }, b = (m, R = [], P, C, S = !0, E = !0) => {
15744
15744
  if (C && P && !e.disabled) {
15745
- if (a.action = !0, O && Array.isArray(X(s, m))) {
15745
+ if (a.action = !0, E && Array.isArray(X(s, m))) {
15746
15746
  const A = P(X(s, m), C.argA, C.argB);
15747
15747
  S && $e(s, m, A);
15748
15748
  }
15749
- if (O && Array.isArray(X(n.errors, m))) {
15749
+ if (E && Array.isArray(X(n.errors, m))) {
15750
15750
  const A = P(X(n.errors, m), C.argA, C.argB);
15751
15751
  S && $e(n.errors, m, A), My(n.errors, m);
15752
15752
  }
15753
- if ((f.touchedFields || p.touchedFields) && O && Array.isArray(X(n.touchedFields, m))) {
15753
+ if ((f.touchedFields || p.touchedFields) && E && Array.isArray(X(n.touchedFields, m))) {
15754
15754
  const A = P(X(n.touchedFields, m), C.argA, C.argB);
15755
15755
  S && $e(n.touchedFields, m, A);
15756
15756
  }
@@ -15775,33 +15775,33 @@ function zy(t = {}) {
15775
15775
  }, M = (m, R, P, C) => {
15776
15776
  const S = X(s, m);
15777
15777
  if (S) {
15778
- const O = X(i, m, nt(P) ? X(o, m) : P);
15779
- nt(O) || C && C.defaultChecked || R ? $e(i, m, R ? O : rl(S._f)) : V(m, O), a.mount && E();
15778
+ const E = X(i, m, nt(P) ? X(o, m) : P);
15779
+ nt(E) || C && C.defaultChecked || R ? $e(i, m, R ? E : rl(S._f)) : V(m, E), a.mount && O();
15780
15780
  }
15781
15781
  }, H = (m, R, P, C, S) => {
15782
- let O = !1, A = !1;
15782
+ let E = !1, A = !1;
15783
15783
  const Z = {
15784
15784
  name: m
15785
15785
  };
15786
15786
  if (!e.disabled) {
15787
15787
  if (!P || C) {
15788
- (f.isDirty || p.isDirty) && (A = n.isDirty, n.isDirty = Z.isDirty = F(), O = A !== Z.isDirty);
15788
+ (f.isDirty || p.isDirty) && (A = n.isDirty, n.isDirty = Z.isDirty = F(), E = A !== Z.isDirty);
15789
15789
  const G = Tn(X(o, m), R);
15790
- A = !!X(n.dirtyFields, m), G ? ct(n.dirtyFields, m) : $e(n.dirtyFields, m, !0), Z.dirtyFields = n.dirtyFields, O = O || (f.dirtyFields || p.dirtyFields) && A !== !G;
15790
+ A = !!X(n.dirtyFields, m), G ? ct(n.dirtyFields, m) : $e(n.dirtyFields, m, !0), Z.dirtyFields = n.dirtyFields, E = E || (f.dirtyFields || p.dirtyFields) && A !== !G;
15791
15791
  }
15792
15792
  if (P) {
15793
15793
  const G = X(n.touchedFields, m);
15794
- G || ($e(n.touchedFields, m, P), Z.touchedFields = n.touchedFields, O = O || (f.touchedFields || p.touchedFields) && G !== P);
15794
+ G || ($e(n.touchedFields, m, P), Z.touchedFields = n.touchedFields, E = E || (f.touchedFields || p.touchedFields) && G !== P);
15795
15795
  }
15796
- O && S && h.state.next(Z);
15796
+ E && S && h.state.next(Z);
15797
15797
  }
15798
- return O ? Z : {};
15799
- }, B = (m, R, P, C) => {
15800
- const S = X(n.errors, m), O = (f.isValid || p.isValid) && At(R) && n.isValid !== R;
15801
- if (e.delayError && P ? (c = v(() => k(m, P)), c(e.delayError)) : (clearTimeout(u), c = null, P ? $e(n.errors, m, P) : ct(n.errors, m)), (P ? !Tn(S, P) : S) || !vt(C) || O) {
15798
+ return E ? Z : {};
15799
+ }, $ = (m, R, P, C) => {
15800
+ const S = X(n.errors, m), E = (f.isValid || p.isValid) && At(R) && n.isValid !== R;
15801
+ if (e.delayError && P ? (c = v(() => k(m, P)), c(e.delayError)) : (clearTimeout(u), c = null, P ? $e(n.errors, m, P) : ct(n.errors, m)), (P ? !Tn(S, P) : S) || !vt(C) || E) {
15802
15802
  const A = {
15803
15803
  ...C,
15804
- ...O && At(R) ? { isValid: R } : {},
15804
+ ...E && At(R) ? { isValid: R } : {},
15805
15805
  errors: n.errors,
15806
15806
  name: m
15807
15807
  };
@@ -15830,14 +15830,14 @@ function zy(t = {}) {
15830
15830
  for (const C in m) {
15831
15831
  const S = m[C];
15832
15832
  if (S) {
15833
- const { _f: O, ...A } = S;
15834
- if (O) {
15835
- const Z = l.array.has(O.name), G = S._f && Iy(S._f);
15833
+ const { _f: E, ...A } = S;
15834
+ if (E) {
15835
+ const Z = l.array.has(E.name), G = S._f && Iy(S._f);
15836
15836
  G && f.validatingFields && T([C], !0);
15837
15837
  const Q = await cl(S, l.disabled, i, w, e.shouldUseNativeValidation && !R, Z);
15838
- if (G && f.validatingFields && T([C]), Q[O.name] && (P.valid = !1, R))
15838
+ if (G && f.validatingFields && T([C]), Q[E.name] && (P.valid = !1, R))
15839
15839
  break;
15840
- !R && (X(Q, O.name) ? Z ? Ly(n.errors, Q, O.name) : $e(n.errors, O.name, Q[O.name]) : ct(n.errors, O.name));
15840
+ !R && (X(Q, E.name) ? Z ? Ly(n.errors, Q, E.name) : $e(n.errors, E.name, Q[E.name]) : ct(n.errors, E.name));
15841
15841
  }
15842
15842
  !vt(A) && await U(A, R, P);
15843
15843
  }
@@ -15855,8 +15855,8 @@ function zy(t = {}) {
15855
15855
  const C = X(s, m);
15856
15856
  let S = R;
15857
15857
  if (C) {
15858
- const O = C._f;
15859
- O && (!O.disabled && $e(i, m, Uc(R, O)), S = mo(O.ref) && St(R) ? "" : R, jc(O.ref) ? [...O.ref.options].forEach((A) => A.selected = S.includes(A.value)) : O.refs ? Rs(O.ref) ? O.refs.length > 1 ? O.refs.forEach((A) => (!A.defaultChecked || !A.disabled) && (A.checked = Array.isArray(S) ? !!S.find((Z) => Z === A.value) : S === A.value)) : O.refs[0] && (O.refs[0].checked = !!S) : O.refs.forEach((A) => A.checked = A.value === S) : ea(O.ref) ? O.ref.value = "" : (O.ref.value = S, O.ref.type || h.state.next({
15858
+ const E = C._f;
15859
+ E && (!E.disabled && $e(i, m, Uc(R, E)), S = mo(E.ref) && St(R) ? "" : R, jc(E.ref) ? [...E.ref.options].forEach((A) => A.selected = S.includes(A.value)) : E.refs ? Rs(E.ref) ? E.refs.length > 1 ? E.refs.forEach((A) => (!A.defaultChecked || !A.disabled) && (A.checked = Array.isArray(S) ? !!S.find((Z) => Z === A.value) : S === A.value)) : E.refs[0] && (E.refs[0].checked = !!S) : E.refs.forEach((A) => A.checked = A.value === S) : ea(E.ref) ? E.ref.value = "" : (E.ref.value = S, E.ref.type || h.state.next({
15860
15860
  name: m,
15861
15861
  values: pt(i)
15862
15862
  })));
@@ -15864,19 +15864,19 @@ function zy(t = {}) {
15864
15864
  (P.shouldDirty || P.shouldTouch) && H(m, S, P.shouldTouch, P.shouldDirty, !0), P.shouldValidate && le(m);
15865
15865
  }, se = (m, R, P) => {
15866
15866
  for (const C in R) {
15867
- const S = R[C], O = `${m}.${C}`, A = X(s, O);
15868
- (l.array.has(m) || st(S) || A && !A._f) && !Wn(S) ? se(O, S, P) : V(O, S, P);
15867
+ const S = R[C], E = `${m}.${C}`, A = X(s, E);
15868
+ (l.array.has(m) || st(S) || A && !A._f) && !Wn(S) ? se(E, S, P) : V(E, S, P);
15869
15869
  }
15870
15870
  }, ne = (m, R, P = {}) => {
15871
- const C = X(s, m), S = l.array.has(m), O = pt(R);
15872
- $e(i, m, O), S ? (h.array.next({
15871
+ const C = X(s, m), S = l.array.has(m), E = pt(R);
15872
+ $e(i, m, E), S ? (h.array.next({
15873
15873
  name: m,
15874
15874
  values: pt(i)
15875
15875
  }), (f.isDirty || f.dirtyFields || p.isDirty || p.dirtyFields) && P.shouldDirty && h.state.next({
15876
15876
  name: m,
15877
15877
  dirtyFields: Br(o, i),
15878
- isDirty: F(m, O)
15879
- })) : C && !C._f && !St(O) ? se(m, O, P) : V(m, O, P), il(m, l) && h.state.next({ ...n }), h.state.next({
15878
+ isDirty: F(m, E)
15879
+ })) : C && !C._f && !St(E) ? se(m, E, P) : V(m, E, P), il(m, l) && h.state.next({ ...n }), h.state.next({
15880
15880
  name: a.mount ? m : void 0,
15881
15881
  values: pt(i)
15882
15882
  });
@@ -15884,7 +15884,7 @@ function zy(t = {}) {
15884
15884
  a.mount = !0;
15885
15885
  const R = m.target;
15886
15886
  let P = R.name, C = !0;
15887
- const S = X(s, P), O = (A) => {
15887
+ const S = X(s, P), E = (A) => {
15888
15888
  C = Number.isNaN(A) || Wn(A) && isNaN(A.getTime()) || Tn(A, X(i, P, A));
15889
15889
  };
15890
15890
  if (S) {
@@ -15897,16 +15897,16 @@ function zy(t = {}) {
15897
15897
  type: m.type,
15898
15898
  values: pt(i)
15899
15899
  }), Ae)
15900
- return (f.isValid || p.isValid) && (e.mode === "onBlur" ? Q && E() : Q || E()), Kt && h.state.next({ name: P, ...Ee ? {} : Qe });
15900
+ return (f.isValid || p.isValid) && (e.mode === "onBlur" ? Q && O() : Q || O()), Kt && h.state.next({ name: P, ...Ee ? {} : Qe });
15901
15901
  if (!Q && Ee && h.state.next({ ...n }), e.resolver) {
15902
15902
  const { errors: ce } = await j([P]);
15903
- if (O(G), C) {
15903
+ if (E(G), C) {
15904
15904
  const _e = al(n.errors, s, P), Je = al(ce, s, _e.name || P);
15905
15905
  A = Je.error, P = Je.name, Z = vt(ce);
15906
15906
  }
15907
15907
  } else
15908
- T([P], !0), A = (await cl(S, l.disabled, i, w, e.shouldUseNativeValidation))[P], T([P]), O(G), C && (A ? Z = !1 : (f.isValid || p.isValid) && (Z = await U(s, !0)));
15909
- C && (S._f.deps && le(S._f.deps), B(P, Z, A, Qe));
15908
+ T([P], !0), A = (await cl(S, l.disabled, i, w, e.shouldUseNativeValidation))[P], T([P]), E(G), C && (A ? Z = !1 : (f.isValid || p.isValid) && (Z = await U(s, !0)));
15909
+ C && (S._f.deps && le(S._f.deps), $(P, Z, A, Qe));
15910
15910
  }
15911
15911
  }, me = (m, R) => {
15912
15912
  if (X(n.errors, R) && m.focus)
@@ -15915,12 +15915,12 @@ function zy(t = {}) {
15915
15915
  let P, C;
15916
15916
  const S = Jr(m);
15917
15917
  if (e.resolver) {
15918
- const O = await z(nt(m) ? m : S);
15919
- P = vt(O), C = m ? !S.some((A) => X(O, A)) : P;
15920
- } else m ? (C = (await Promise.all(S.map(async (O) => {
15921
- const A = X(s, O);
15922
- return await U(A && A._f ? { [O]: A } : A);
15923
- }))).every(Boolean), !(!C && !n.isValid) && E()) : C = P = await U(s);
15918
+ const E = await z(nt(m) ? m : S);
15919
+ P = vt(E), C = m ? !S.some((A) => X(E, A)) : P;
15920
+ } else m ? (C = (await Promise.all(S.map(async (E) => {
15921
+ const A = X(s, E);
15922
+ return await U(A && A._f ? { [E]: A } : A);
15923
+ }))).every(Boolean), !(!C && !n.isValid) && O()) : C = P = await U(s);
15924
15924
  return h.state.next({
15925
15925
  ...!nn(m) || (f.isValid || p.isValid) && P !== n.isValid ? {} : { name: m },
15926
15926
  ...e.resolver || !m ? { isValid: P } : {},
@@ -15942,7 +15942,7 @@ function zy(t = {}) {
15942
15942
  errors: m ? n.errors : {}
15943
15943
  });
15944
15944
  }, D = (m, R, P) => {
15945
- const C = (X(s, m, { _f: {} })._f || {}).ref, S = X(n.errors, m) || {}, { ref: O, message: A, type: Z, ...G } = S;
15945
+ const C = (X(s, m, { _f: {} })._f || {}).ref, S = X(n.errors, m) || {}, { ref: E, message: A, type: Z, ...G } = S;
15946
15946
  $e(n.errors, m, {
15947
15947
  ...G,
15948
15948
  ...R,
@@ -15952,7 +15952,7 @@ function zy(t = {}) {
15952
15952
  errors: n.errors,
15953
15953
  isValid: !1
15954
15954
  }), P && P.shouldFocus && C && C.focus && C.focus();
15955
- }, $ = (m, R) => qt(m) ? h.state.subscribe({
15955
+ }, B = (m, R) => qt(m) ? h.state.subscribe({
15956
15956
  next: (P) => m(L(void 0, R), P)
15957
15957
  }) : L(m, R, !0), re = (m) => h.state.subscribe({
15958
15958
  next: (R) => {
@@ -15976,7 +15976,7 @@ function zy(t = {}) {
15976
15976
  }), h.state.next({
15977
15977
  ...n,
15978
15978
  ...R.keepDirty ? { isDirty: F() } : {}
15979
- }), !R.keepIsValid && E();
15979
+ }), !R.keepIsValid && O();
15980
15980
  }, oe = ({ disabled: m, name: R }) => {
15981
15981
  (At(m) && a.mount || m || l.disabled.has(R)) && (m ? l.disabled.add(R) : l.disabled.delete(R));
15982
15982
  }, pe = (m, R = {}) => {
@@ -16009,8 +16009,8 @@ function zy(t = {}) {
16009
16009
  ref: (S) => {
16010
16010
  if (S) {
16011
16011
  pe(m, R), P = X(s, m);
16012
- const O = nt(S.value) && S.querySelectorAll && S.querySelectorAll("input,select,textarea")[0] || S, A = ky(O), Z = P._f.refs || [];
16013
- if (A ? Z.find((G) => G === O) : O === P._f.ref)
16012
+ const E = nt(S.value) && S.querySelectorAll && S.querySelectorAll("input,select,textarea")[0] || S, A = ky(E), Z = P._f.refs || [];
16013
+ if (A ? Z.find((G) => G === E) : E === P._f.ref)
16014
16014
  return;
16015
16015
  $e(s, m, {
16016
16016
  _f: {
@@ -16018,13 +16018,13 @@ function zy(t = {}) {
16018
16018
  ...A ? {
16019
16019
  refs: [
16020
16020
  ...Z.filter(Go),
16021
- O,
16021
+ E,
16022
16022
  ...Array.isArray(X(o, m)) ? [{}] : []
16023
16023
  ],
16024
- ref: { type: O.type, name: m }
16025
- } : { ref: O }
16024
+ ref: { type: E.type, name: m }
16025
+ } : { ref: E }
16026
16026
  }
16027
- }), M(m, !1, void 0, O);
16027
+ }), M(m, !1, void 0, E);
16028
16028
  } else
16029
16029
  P = X(s, m, {}), P._f && (P._f.mount = !1), (e.shouldUnregister || R.shouldUnregister) && !(Fc(l.array, m) && a.action) && l.unMount.add(m);
16030
16030
  }
@@ -16043,21 +16043,21 @@ function zy(t = {}) {
16043
16043
  if (h.state.next({
16044
16044
  isSubmitting: !0
16045
16045
  }), e.resolver) {
16046
- const { errors: O, values: A } = await j();
16047
- n.errors = O, S = A;
16046
+ const { errors: E, values: A } = await j();
16047
+ n.errors = E, S = A;
16048
16048
  } else
16049
16049
  await U(s);
16050
16050
  if (l.disabled.size)
16051
- for (const O of l.disabled)
16052
- $e(S, O, void 0);
16051
+ for (const E of l.disabled)
16052
+ $e(S, E, void 0);
16053
16053
  if (ct(n.errors, "root"), vt(n.errors)) {
16054
16054
  h.state.next({
16055
16055
  errors: {}
16056
16056
  });
16057
16057
  try {
16058
16058
  await m(S, P);
16059
- } catch (O) {
16060
- C = O;
16059
+ } catch (E) {
16060
+ C = E;
16061
16061
  }
16062
16062
  } else
16063
16063
  R && await R({ ...n.errors }, P), ge(), setTimeout(ge);
@@ -16070,9 +16070,9 @@ function zy(t = {}) {
16070
16070
  }), C)
16071
16071
  throw C;
16072
16072
  }, je = (m, R = {}) => {
16073
- X(s, m) && (nt(R.defaultValue) ? ne(m, pt(X(o, m))) : (ne(m, R.defaultValue), $e(o, m, pt(R.defaultValue))), R.keepTouched || ct(n.touchedFields, m), R.keepDirty || (ct(n.dirtyFields, m), n.isDirty = R.defaultValue ? F(m, pt(X(o, m))) : F()), R.keepError || (ct(n.errors, m), f.isValid && E()), h.state.next({ ...n }));
16073
+ X(s, m) && (nt(R.defaultValue) ? ne(m, pt(X(o, m))) : (ne(m, R.defaultValue), $e(o, m, pt(R.defaultValue))), R.keepTouched || ct(n.touchedFields, m), R.keepDirty || (ct(n.dirtyFields, m), n.isDirty = R.defaultValue ? F(m, pt(X(o, m))) : F()), R.keepError || (ct(n.errors, m), f.isValid && O()), h.state.next({ ...n }));
16074
16074
  }, Ge = (m, R = {}) => {
16075
- const P = m ? pt(m) : o, C = pt(P), S = vt(m), O = S ? o : C;
16075
+ const P = m ? pt(m) : o, C = pt(P), S = vt(m), E = S ? o : C;
16076
16076
  if (R.keepDefaultValues || (o = P), !R.keepValues) {
16077
16077
  if (R.keepDirtyValues) {
16078
16078
  const A = /* @__PURE__ */ new Set([
@@ -16080,7 +16080,7 @@ function zy(t = {}) {
16080
16080
  ...Object.keys(Br(o, i))
16081
16081
  ]);
16082
16082
  for (const Z of Array.from(A))
16083
- X(n.dirtyFields, Z) ? $e(O, Z, X(i, Z)) : ne(Z, X(O, Z));
16083
+ X(n.dirtyFields, Z) ? $e(E, Z, X(i, Z)) : ne(Z, X(E, Z));
16084
16084
  } else {
16085
16085
  if (Qi && nt(m))
16086
16086
  for (const A of l.mount) {
@@ -16097,12 +16097,12 @@ function zy(t = {}) {
16097
16097
  }
16098
16098
  }
16099
16099
  for (const A of l.mount)
16100
- ne(A, X(O, A));
16100
+ ne(A, X(E, A));
16101
16101
  }
16102
- i = pt(O), h.array.next({
16103
- values: { ...O }
16102
+ i = pt(E), h.array.next({
16103
+ values: { ...E }
16104
16104
  }), h.state.next({
16105
- values: { ...O }
16105
+ values: { ...E }
16106
16106
  });
16107
16107
  }
16108
16108
  l = {
@@ -16145,7 +16145,7 @@ function zy(t = {}) {
16145
16145
  _runSchema: j,
16146
16146
  _getWatch: L,
16147
16147
  _getDirty: F,
16148
- _setValid: E,
16148
+ _setValid: O,
16149
16149
  _setFieldArray: b,
16150
16150
  _setDisabledField: oe,
16151
16151
  _setErrors: I,
@@ -16198,7 +16198,7 @@ function zy(t = {}) {
16198
16198
  trigger: le,
16199
16199
  register: pe,
16200
16200
  handleSubmit: be,
16201
- watch: $,
16201
+ watch: B,
16202
16202
  setValue: ne,
16203
16203
  getValues: Ne,
16204
16204
  reset: Ve,
@@ -19473,11 +19473,11 @@ const ab = Xe(He)`
19473
19473
  nets: x,
19474
19474
  setNets: w,
19475
19475
  mileageEnd: v
19476
- } = Dr(), [E, T] = ue(
19476
+ } = Dr(), [O, T] = ue(
19477
19477
  p.toString()
19478
19478
  ), [b, k] = ue(
19479
19479
  h.toString()
19480
- ), [I, M] = ue(!0), [H, B] = ue(!0), j = u.map((D) => ({
19480
+ ), [I, M] = ue(!0), [H, $] = ue(!0), j = u.map((D) => ({
19481
19481
  value: D.id,
19482
19482
  label: `[${D.road_number}] ${D.road_name}`
19483
19483
  })), z = Ys(
@@ -19491,8 +19491,8 @@ const ab = Xe(He)`
19491
19491
  ), F = async (D) => {
19492
19492
  if (a(D), D) {
19493
19493
  const {
19494
- data: { response: $ }
19495
- } = await ss.queryRoadNets(D.id), { nets: re, start_mileage: Te, end_mileage: ye } = $;
19494
+ data: { response: B }
19495
+ } = await ss.queryRoadNets(D.id), { nets: re, start_mileage: Te, end_mileage: ye } = B;
19496
19496
  w(re), t(Te), e(ye), n(re[0]), s(re[0].length), o(0), T("0"), i(Te), k(Te.toString()), Oe.mapEventEmitter.emit("drawGemRoad", {
19497
19497
  netId: re[0].id,
19498
19498
  roadId: D.id,
@@ -19510,37 +19510,37 @@ const ab = Xe(He)`
19510
19510
  }, V = () => {
19511
19511
  M(!0), c && p < c.length && (o(p + 1), T((p + 1).toString()), i(h + 1), Oe.mapEventEmitter.emit("movePointIcon", p + 1));
19512
19512
  }, se = (D) => {
19513
- const $ = parseInt(D, 10);
19514
- if (c && l && ne(c, $)) {
19515
- o($), T($.toString());
19516
- const re = c.from_mileage + $;
19517
- i(re), k(re.toString()), Oe.mapEventEmitter.emit("movePointIcon", $);
19518
- }
19519
- }, ne = (D, $) => {
19520
- const re = $ >= 0 && $ <= D.length;
19513
+ const B = parseInt(D, 10);
19514
+ if (c && l && ne(c, B)) {
19515
+ o(B), T(B.toString());
19516
+ const re = c.from_mileage + B;
19517
+ i(re), k(re.toString()), Oe.mapEventEmitter.emit("movePointIcon", B);
19518
+ }
19519
+ }, ne = (D, B) => {
19520
+ const re = B >= 0 && B <= D.length;
19521
19521
  return M(re), re;
19522
19522
  }, Y = (D) => {
19523
19523
  if (!(!l || !c) && me(D))
19524
19524
  if (D < c.from_mileage || D >= c.to_mileage) {
19525
- const $ = x.find(
19525
+ const B = x.find(
19526
19526
  (re) => D >= re.from_mileage && D < re.to_mileage
19527
19527
  );
19528
- if ($) {
19529
- const re = D - $.from_mileage;
19530
- n($), s($.length), i(D), o(re), k(D.toString()), T(re.toString()), Oe.mapEventEmitter.emit("drawGemRoad", {
19531
- netId: $.id,
19528
+ if (B) {
19529
+ const re = D - B.from_mileage;
19530
+ n(B), s(B.length), i(D), o(re), k(D.toString()), T(re.toString()), Oe.mapEventEmitter.emit("drawGemRoad", {
19531
+ netId: B.id,
19532
19532
  roadId: l.id,
19533
19533
  chainage: re
19534
19534
  });
19535
19535
  }
19536
19536
  } else {
19537
- const $ = D - c.from_mileage;
19538
- i(D), o($), k(D.toString()), T($.toString()), Oe.mapEventEmitter.emit("movePointIcon", $);
19537
+ const B = D - c.from_mileage;
19538
+ i(D), o(B), k(D.toString()), T(B.toString()), Oe.mapEventEmitter.emit("movePointIcon", B);
19539
19539
  }
19540
19540
  }, me = (D) => {
19541
19541
  if (!l) return !1;
19542
- const $ = D >= l.start_mileage && D <= l.end_mileage;
19543
- return B($), $;
19542
+ const B = D >= l.start_mileage && D <= l.end_mileage;
19543
+ return $(B), B;
19544
19544
  }, le = () => {
19545
19545
  if (!l || !c) return;
19546
19546
  const D = h + 1;
@@ -19550,11 +19550,11 @@ const ab = Xe(He)`
19550
19550
  const D = h - 1;
19551
19551
  D >= l.start_mileage && Y(D);
19552
19552
  }, ve = (D) => {
19553
- const $ = D ? Number(D) : 0;
19554
- me($) && (k($.toString()), Y($));
19553
+ const B = D ? Number(D) : 0;
19554
+ me(B) && (k(B.toString()), Y(B));
19555
19555
  }, Ie = (D) => {
19556
- const $ = D ? Number(D) : 0;
19557
- T($.toString()), se($.toString());
19556
+ const B = D ? Number(D) : 0;
19557
+ T(B.toString()), se(B.toString());
19558
19558
  };
19559
19559
  return Ke(() => {
19560
19560
  k(h.toString());
@@ -19563,8 +19563,8 @@ const ab = Xe(He)`
19563
19563
  to,
19564
19564
  {
19565
19565
  value: z || null,
19566
- onChange: (D, $) => {
19567
- $ && typeof $ != "string" && "value" in $ && F(u.find((re) => re.id === $.value));
19566
+ onChange: (D, B) => {
19567
+ B && typeof B != "string" && "value" in B && F(u.find((re) => re.id === B.value));
19568
19568
  },
19569
19569
  clearIcon: null,
19570
19570
  options: j,
@@ -19577,8 +19577,8 @@ const ab = Xe(He)`
19577
19577
  to,
19578
19578
  {
19579
19579
  value: N || null,
19580
- onChange: (D, $) => {
19581
- $ && typeof $ != "string" && "value" in $ && L(x.find((re) => re.id === $.value));
19580
+ onChange: (D, B) => {
19581
+ B && typeof B != "string" && "value" in B && L(x.find((re) => re.id === B.value));
19582
19582
  },
19583
19583
  clearIcon: null,
19584
19584
  options: U,
@@ -19599,7 +19599,7 @@ const ab = Xe(He)`
19599
19599
  /* @__PURE__ */ d(
19600
19600
  eo,
19601
19601
  {
19602
- value: E,
19602
+ value: O,
19603
19603
  label: "Pikietaż",
19604
19604
  sx: { width: "100px" },
19605
19605
  type: "number",
@@ -19670,7 +19670,7 @@ const ab = Xe(He)`
19670
19670
  data: { response: f }
19671
19671
  } = await ss.queryRoadNets((w = u[0]) == null ? void 0 : w.id), { nets: p, start_mileage: h, end_mileage: g } = f;
19672
19672
  l(p), a(
19673
- (E) => ({ ...E, start_mileage: h, end_mileage: g })
19673
+ (O) => ({ ...O, start_mileage: h, end_mileage: g })
19674
19674
  ), t(h), e(g), n(p[0]), s(p[0].length), o(0), i(h);
19675
19675
  const x = {
19676
19676
  netId: p[0].id,
@@ -19708,17 +19708,17 @@ const ab = Xe(He)`
19708
19708
  a(x);
19709
19709
  const {
19710
19710
  data: { response: w }
19711
- } = await ss.queryRoadNets(x.id), { nets: v, start_mileage: E, end_mileage: T } = w;
19711
+ } = await ss.queryRoadNets(x.id), { nets: v, start_mileage: O, end_mileage: T } = w;
19712
19712
  l(v), a((M) => ({
19713
19713
  ...M,
19714
- start_mileage: E,
19714
+ start_mileage: O,
19715
19715
  end_mileage: T
19716
19716
  }));
19717
19717
  const b = v.find((M) => M.id == p);
19718
19718
  n(b);
19719
19719
  const { from_mileage: k, length: I } = b;
19720
- t(E), e(T), s(I), o(g), i(
19721
- Number(E) + Number(k) + g
19720
+ t(O), e(T), s(I), o(g), i(
19721
+ Number(O) + Number(k) + g
19722
19722
  );
19723
19723
  }
19724
19724
  },
@@ -19974,7 +19974,7 @@ const bb = Oi`
19974
19974
  s.current
19975
19975
  ), [g, x] = ue(e.current), [w, v] = ue(
19976
19976
  i.current
19977
- ), [E, T] = ue(
19977
+ ), [O, T] = ue(
19978
19978
  t.current
19979
19979
  ), [b, k] = ue(
19980
19980
  a.current
@@ -20014,16 +20014,16 @@ const bb = Oi`
20014
20014
  ...b,
20015
20015
  [N]: F
20016
20016
  });
20017
- }, B = () => {
20017
+ }, $ = () => {
20018
20018
  f(!u);
20019
20019
  }, j = () => {
20020
20020
  h(!p);
20021
20021
  }, z = () => {
20022
20022
  x(!g);
20023
20023
  }, U = () => {
20024
- T(!E), Oe.snapEventEmitter.emit(
20024
+ T(!O), Oe.snapEventEmitter.emit(
20025
20025
  "map:snap:toggle:visualization",
20026
- !E
20026
+ !O
20027
20027
  );
20028
20028
  };
20029
20029
  return /* @__PURE__ */ K(_b, { children: [
@@ -20059,7 +20059,7 @@ const bb = Oi`
20059
20059
  {
20060
20060
  size: "medium",
20061
20061
  color: Un(u),
20062
- onClick: B,
20062
+ onClick: $,
20063
20063
  children: /* @__PURE__ */ d(Lm, {})
20064
20064
  }
20065
20065
  ) }),
@@ -20102,9 +20102,9 @@ const bb = Oi`
20102
20102
  Pt,
20103
20103
  {
20104
20104
  size: "medium",
20105
- color: Un(E),
20105
+ color: Un(O),
20106
20106
  onClick: U,
20107
- children: E ? /* @__PURE__ */ d(ko, {}) : /* @__PURE__ */ d(Zu, {})
20107
+ children: O ? /* @__PURE__ */ d(ko, {}) : /* @__PURE__ */ d(Zu, {})
20108
20108
  }
20109
20109
  ) }),
20110
20110
  /* @__PURE__ */ d(
@@ -20130,22 +20130,26 @@ const bb = Oi`
20130
20130
  initialDrawnGeometries: l,
20131
20131
  disableEditNonUserDrawnGeometries: c,
20132
20132
  enforceWithinRoad: u,
20133
- disableTreeConfig: f
20133
+ disableTreeConfig: f,
20134
+ defaultCoordinate: p,
20135
+ defaultZoom: h
20134
20136
  }) => {
20135
- const { isMeasurementHidden: p, angleValue: h, isAngleHidden: g } = Ni(), { mapLayers: x, isDrawing: w, isEditing: v, selectedGeometry: E } = Ts(), { distanceOverlayElement: T, angleOverlayElement: b, interactions: k } = ir();
20137
+ const { isMeasurementHidden: g, angleValue: x, isAngleHidden: w } = Ni(), { mapLayers: v, isDrawing: O, isEditing: T, selectedGeometry: b } = Ts(), { distanceOverlayElement: k, angleOverlayElement: I, interactions: M } = ir();
20136
20138
  Xu(
20137
20139
  t,
20138
- x,
20140
+ v,
20139
20141
  e,
20140
20142
  c,
20141
20143
  u,
20142
20144
  i,
20143
20145
  a,
20144
- l
20146
+ l,
20147
+ p,
20148
+ h
20145
20149
  );
20146
- const I = Ju(
20147
- E == null ? void 0 : E.value,
20148
- x
20150
+ const H = Ju(
20151
+ b == null ? void 0 : b.value,
20152
+ v
20149
20153
  );
20150
20154
  return /* @__PURE__ */ K(Tt, { children: [
20151
20155
  o.sidebarVisible && /* @__PURE__ */ d(
@@ -20167,33 +20171,33 @@ const bb = Oi`
20167
20171
  /* @__PURE__ */ d(
20168
20172
  rd,
20169
20173
  {
20170
- ref: T,
20171
- hidden: p
20174
+ ref: k,
20175
+ hidden: g
20172
20176
  }
20173
20177
  ),
20174
20178
  /* @__PURE__ */ d(
20175
20179
  Oc,
20176
20180
  {
20177
- angle: h ?? 0,
20178
- ref: b,
20179
- hidden: g || typeof h != "number"
20181
+ angle: x ?? 0,
20182
+ ref: I,
20183
+ hidden: w || typeof x != "number"
20180
20184
  }
20181
20185
  ),
20182
20186
  /* @__PURE__ */ d(Et, { children: /* @__PURE__ */ d(fy, {}) }),
20183
20187
  s.mapElementsVisible && /* @__PURE__ */ K(Tt, { children: [
20184
- I === "LineString" && s.items.drawCreator && /* @__PURE__ */ d(
20188
+ H === "LineString" && s.items.drawCreator && /* @__PURE__ */ d(
20185
20189
  Rm,
20186
20190
  {
20187
- addDrawCreatorPoint: (M) => {
20191
+ addDrawCreatorPoint: ($) => {
20188
20192
  sd({
20189
- ...M,
20190
- drawInteraction: k.current.draw
20193
+ ...$,
20194
+ drawInteraction: M.current.draw
20191
20195
  });
20192
20196
  },
20193
- onDrawEnd: () => k.current.draw.finishDrawing()
20197
+ onDrawEnd: () => M.current.draw.finishDrawing()
20194
20198
  }
20195
20199
  ),
20196
- (w || v) && s.items.snapBar && /* @__PURE__ */ d(Eb, {})
20200
+ (O || T) && s.items.snapBar && /* @__PURE__ */ d(Eb, {})
20197
20201
  ] })
20198
20202
  ] })
20199
20203
  }
@@ -20213,11 +20217,13 @@ const bb = Oi`
20213
20217
  initialDrawnGeometries: f,
20214
20218
  disableEditNonUserDrawnGeometries: p,
20215
20219
  enforceWithinRoad: h,
20216
- disableTreeConfig: g
20220
+ disableTreeConfig: g,
20221
+ defaultCoordinate: x,
20222
+ defaultZoom: w
20217
20223
  }) => {
20218
20224
  Hu();
20219
- const { initialized: x } = ir();
20220
- return /* @__PURE__ */ d(Tt, { children: x ? /* @__PURE__ */ d(Gu, { children: /* @__PURE__ */ d(Ku, { children: /* @__PURE__ */ d(Qu, { children: /* @__PURE__ */ d(
20225
+ const { initialized: v } = ir();
20226
+ return /* @__PURE__ */ d(Tt, { children: v ? /* @__PURE__ */ d(Gu, { children: /* @__PURE__ */ d(Ku, { children: /* @__PURE__ */ d(Qu, { children: /* @__PURE__ */ d(
20221
20227
  km,
20222
20228
  {
20223
20229
  mapLayers: Yu(e),
@@ -20237,7 +20243,9 @@ const bb = Oi`
20237
20243
  initialDrawnGeometries: f,
20238
20244
  disableEditNonUserDrawnGeometries: p,
20239
20245
  enforceWithinRoad: h,
20240
- disableTreeConfig: g
20246
+ disableTreeConfig: g,
20247
+ defaultCoordinate: x,
20248
+ defaultZoom: w
20241
20249
  }
20242
20250
  ) })
20243
20251
  }