@smart-factor/gem-ui-map-component 0.0.26 → 0.0.27

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 Yn = (t, e, r, n) => ({
16
16
  import { jsx as g, jsxs as re, Fragment as at } from "react/jsx-runtime";
17
17
  import * as B from "react";
18
18
  import ve, { useState as J, forwardRef as sl, useEffect as Re, createContext as al, useContext as il, useRef as Xs, useMemo as fs, useCallback as sn } from "react";
19
- import { a as cn, b as ol, r as Ca, i as Wi, c as Gi, t as ll, d as cl, e as ul, u as dl, P as l, f as Qi, g as et, h as Ba, j as qs, k as fl, l as hl, m as pl, n as Zt, o as Bt, p as ml, q as qa, s as qt, v as Wt, w as $e, x as _t, y as hs, z as yt, A as Ls, B as Ki, C as Ta, D as yl, T as gl, E as Ea, F as vl, G as Wa, H as bl, I as _l, J as Ga, K as Tt, L as un, N as Mr, O as Aa, Q as xl, R as Qa, S as Ka, V as Ha, U as wl, W as oe, X as Jn, Y as Ya, Z as Xn, _ as Ne, $ as Ja, a0 as Sl, a1 as kl, a2 as is, a3 as Cl, a4 as ea, a5 as Tl, a6 as mn, a7 as El, a8 as Ws, a9 as os, aa as Gs, ab as Xa, ac as Al, ad as Kt, ae as ei, af as ti, ag as Hi, ah as Ue, ai as ps, aj as Ot, ak as Nr, al as $t, am as Yi, an as Zn, ao as Ol, ap as Rl, aq as Ft, ar as Ji, as as ms, at as Il, au as Pl, av as Xi, aw as Ll, ax as Ml, ay as Sn, az as Nl, aA as ls, aB as Fl, aC as Vl, aD as Dl, aE as jl, aF as zl, aG as $l, aH as Ul, aI as Zl, aJ as Bl, aK as ql, aL as Wl, aM as Gl, M as Ql, aN as Kl, aO as Hl, aP as Yl, aQ as Jl } from "./MapButtons-DrHjsRcp.js";
19
+ import { a as cn, b as ol, r as Ca, i as Wi, c as Gi, t as ll, d as cl, e as ul, u as dl, P as l, f as Qi, g as et, h as Ba, j as qs, k as fl, l as hl, m as pl, n as Zt, o as Bt, p as ml, q as qa, s as qt, v as Wt, w as $e, x as _t, y as hs, z as yt, A as Ls, B as Ki, C as Ta, D as yl, T as gl, E as Ea, F as vl, G as Wa, H as bl, I as _l, J as Ga, K as Tt, L as un, N as Mr, O as Aa, Q as xl, R as Qa, S as Ka, V as Ha, U as wl, W as oe, X as Jn, Y as Ya, Z as Xn, _ as Ne, $ as Ja, a0 as Sl, a1 as kl, a2 as is, a3 as Cl, a4 as ea, a5 as Tl, a6 as mn, a7 as El, a8 as Ws, a9 as os, aa as Gs, ab as Xa, ac as Al, ad as Kt, ae as ei, af as ti, ag as Hi, ah as Ue, ai as ps, aj as Ot, ak as Nr, al as $t, am as Yi, an as Zn, ao as Ol, ap as Rl, aq as Ft, ar as Ji, as as ms, at as Il, au as Pl, av as Xi, aw as Ll, ax as Ml, ay as Sn, az as Nl, aA as ls, aB as Fl, aC as Vl, aD as Dl, aE as jl, aF as zl, aG as $l, aH as Ul, aI as Zl, aJ as Bl, aK as ql, aL as Wl, aM as Gl, M as Ql, aN as Kl, aO as Hl, aP as Yl, aQ as Jl } from "./MapButtons-Dv9ONWN-.js";
20
20
  var dn = class {
21
21
  constructor() {
22
22
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
@@ -107,8 +107,8 @@ function ra(t, e) {
107
107
  const n = r ? t : Object.keys(t), s = n.length, a = r ? e : Object.keys(e), i = a.length, o = r ? [] : {};
108
108
  let c = 0;
109
109
  for (let u = 0; u < i; u++) {
110
- const m = r ? u : a[u];
111
- (!r && n.includes(m) || r) && t[m] === void 0 && e[m] === void 0 ? (o[m] = void 0, c++) : (o[m] = ra(t[m], e[m]), o[m] === t[m] && t[m] !== void 0 && c++);
110
+ const p = r ? u : a[u];
111
+ (!r && n.includes(p) || r) && t[p] === void 0 && e[p] === void 0 ? (o[p] = void 0, c++) : (o[p] = ra(t[p], e[p]), o[p] === t[p] && t[p] !== void 0 && c++);
112
112
  }
113
113
  return s === i && c === s ? t : o;
114
114
  }
@@ -293,7 +293,7 @@ function so(t) {
293
293
  e = !0;
294
294
  }, c = () => {
295
295
  e = !1;
296
- }, u = () => Ra.isFocused() && (t.networkMode === "always" || vs.isOnline()) && t.canRun(), m = () => ro(t.networkMode) && t.canRun(), h = (w) => {
296
+ }, u = () => Ra.isFocused() && (t.networkMode === "always" || vs.isOnline()) && t.canRun(), p = () => ro(t.networkMode) && t.canRun(), h = (w) => {
297
297
  var C;
298
298
  n || (n = !0, (C = t.onSuccess) == null || C.call(t, w), s == null || s(), a.resolve(w));
299
299
  }, _ = (w) => {
@@ -321,12 +321,12 @@ function so(t) {
321
321
  var Q;
322
322
  if (n)
323
323
  return;
324
- const T = t.retry ?? (Ar ? 0 : 3), N = t.retryDelay ?? ac, F = typeof N == "function" ? N(r, R) : N, U = T === !0 || typeof T == "number" && r < T || typeof T == "function" && T(r, R);
324
+ const T = t.retry ?? (Ar ? 0 : 3), F = t.retryDelay ?? ac, N = typeof F == "function" ? F(r, R) : F, U = T === !0 || typeof T == "number" && r < T || typeof T == "function" && T(r, R);
325
325
  if (e || !U) {
326
326
  _(R);
327
327
  return;
328
328
  }
329
- r++, (Q = t.onFail) == null || Q.call(t, r, R), ec(F).then(() => u() ? void 0 : k()).then(() => {
329
+ r++, (Q = t.onFail) == null || Q.call(t, r, R), ec(N).then(() => u() ? void 0 : k()).then(() => {
330
330
  e ? _(R) : E();
331
331
  });
332
332
  });
@@ -337,8 +337,8 @@ function so(t) {
337
337
  continue: () => (s == null || s(), a),
338
338
  cancelRetry: o,
339
339
  continueRetry: c,
340
- canStart: m,
341
- start: () => (m() ? E() : k().then(E), a)
340
+ canStart: p,
341
+ start: () => (p() ? E() : k().then(E), a)
342
342
  };
343
343
  }
344
344
  var ic = (t) => setTimeout(t, 0);
@@ -510,7 +510,7 @@ var Fe = oc(), _r, Di, ao = (Di = class {
510
510
  this.state.isInvalidated || ae(this, dt, Mt).call(this, { type: "invalidate" });
511
511
  }
512
512
  fetch(e, r) {
513
- var c, u, m;
513
+ var c, u, p;
514
514
  if (this.state.fetchStatus !== "idle") {
515
515
  if (this.state.data !== void 0 && (r != null && r.cancelRefetch))
516
516
  this.cancel({ silent: !0 });
@@ -551,7 +551,7 @@ var Fe = oc(), _r, Di, ao = (Di = class {
551
551
  s(i), (c = this.options.behavior) == null || c.onFetch(
552
552
  i,
553
553
  this
554
- ), z(this, Kr, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((u = i.fetchOptions) == null ? void 0 : u.meta)) && ae(this, dt, Mt).call(this, { type: "fetch", meta: (m = i.fetchOptions) == null ? void 0 : m.meta });
554
+ ), z(this, Kr, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((u = i.fetchOptions) == null ? void 0 : u.meta)) && ae(this, dt, Mt).call(this, { type: "fetch", meta: (p = i.fetchOptions) == null ? void 0 : p.meta });
555
555
  const o = (h) => {
556
556
  var _, k, E, w;
557
557
  Qs(h) && h.silent || ae(this, dt, Mt).call(this, {
@@ -817,7 +817,7 @@ var St, zi, oo = (zi = class extends dn {
817
817
  this.execute(this.state.variables);
818
818
  }
819
819
  async execute(e) {
820
- var a, i, o, c, u, m, h, _, k, E, w, C, R, T, N, F, U, Q, pe, ee;
820
+ var a, i, o, c, u, p, h, _, k, E, w, C, R, T, F, N, U, Q, pe, ee;
821
821
  const r = () => {
822
822
  ae(this, Ct, Ht).call(this, { type: "continue" });
823
823
  };
@@ -854,7 +854,7 @@ var St, zi, oo = (zi = class extends dn {
854
854
  });
855
855
  }
856
856
  const K = await f(this, Sr).start();
857
- return await ((m = (u = f(this, We).config).onSuccess) == null ? void 0 : m.call(
857
+ return await ((p = (u = f(this, We).config).onSuccess) == null ? void 0 : p.call(
858
858
  u,
859
859
  K,
860
860
  e,
@@ -876,8 +876,8 @@ var St, zi, oo = (zi = class extends dn {
876
876
  e,
877
877
  this.state.context,
878
878
  this
879
- )), await ((F = (N = this.options).onError) == null ? void 0 : F.call(
880
- N,
879
+ )), await ((N = (F = this.options).onError) == null ? void 0 : N.call(
880
+ F,
881
881
  K,
882
882
  e,
883
883
  this.state.context
@@ -1080,27 +1080,27 @@ function es(t) {
1080
1080
  function ii(t) {
1081
1081
  return {
1082
1082
  onFetch: (e, r) => {
1083
- var m, h, _, k, E;
1084
- const n = e.options, s = (_ = (h = (m = e.fetchOptions) == null ? void 0 : m.meta) == null ? void 0 : h.fetchMore) == null ? void 0 : _.direction, a = ((k = e.state.data) == null ? void 0 : k.pages) || [], i = ((E = e.state.data) == null ? void 0 : E.pageParams) || [];
1083
+ var p, h, _, k, E;
1084
+ const n = e.options, s = (_ = (h = (p = e.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : h.fetchMore) == null ? void 0 : _.direction, a = ((k = e.state.data) == null ? void 0 : k.pages) || [], i = ((E = e.state.data) == null ? void 0 : E.pageParams) || [];
1085
1085
  let o = { pages: [], pageParams: [] }, c = 0;
1086
1086
  const u = async () => {
1087
1087
  let w = !1;
1088
- const C = (N) => {
1089
- Object.defineProperty(N, "signal", {
1088
+ const C = (F) => {
1089
+ Object.defineProperty(F, "signal", {
1090
1090
  enumerable: !0,
1091
1091
  get: () => (e.signal.aborted ? w = !0 : e.signal.addEventListener("abort", () => {
1092
1092
  w = !0;
1093
1093
  }), e.signal)
1094
1094
  });
1095
- }, R = to(e.options, e.fetchOptions), T = async (N, F, U) => {
1095
+ }, R = to(e.options, e.fetchOptions), T = async (F, N, U) => {
1096
1096
  if (w)
1097
1097
  return Promise.reject();
1098
- if (F == null && N.pages.length)
1099
- return Promise.resolve(N);
1098
+ if (N == null && F.pages.length)
1099
+ return Promise.resolve(F);
1100
1100
  const Q = {
1101
1101
  client: e.client,
1102
1102
  queryKey: e.queryKey,
1103
- pageParam: F,
1103
+ pageParam: N,
1104
1104
  direction: U ? "backward" : "forward",
1105
1105
  meta: e.options.meta
1106
1106
  };
@@ -1109,24 +1109,24 @@ function ii(t) {
1109
1109
  Q
1110
1110
  ), { maxPages: ee } = e.options, K = U ? rc : tc;
1111
1111
  return {
1112
- pages: K(N.pages, pe, ee),
1113
- pageParams: K(N.pageParams, F, ee)
1112
+ pages: K(F.pages, pe, ee),
1113
+ pageParams: K(F.pageParams, N, ee)
1114
1114
  };
1115
1115
  };
1116
1116
  if (s && a.length) {
1117
- const N = s === "backward", F = N ? fc : oi, U = {
1117
+ const F = s === "backward", N = F ? fc : oi, U = {
1118
1118
  pages: a,
1119
1119
  pageParams: i
1120
- }, Q = F(n, U);
1121
- o = await T(U, Q, N);
1120
+ }, Q = N(n, U);
1121
+ o = await T(U, Q, F);
1122
1122
  } else {
1123
- const N = t ?? a.length;
1123
+ const F = t ?? a.length;
1124
1124
  do {
1125
- const F = c === 0 ? i[0] ?? n.initialPageParam : oi(n, o);
1126
- if (c > 0 && F == null)
1125
+ const N = c === 0 ? i[0] ?? n.initialPageParam : oi(n, o);
1126
+ if (c > 0 && N == null)
1127
1127
  break;
1128
- o = await T(o, F), c++;
1129
- } while (c < N);
1128
+ o = await T(o, N), c++;
1129
+ } while (c < F);
1130
1130
  }
1131
1131
  return o;
1132
1132
  };
@@ -1473,13 +1473,13 @@ var Ce, er, tr, Hr, Yr, rr, Jr, Xr, Zi, hc = (Zi = class {
1473
1473
  }
1474
1474
  createResult(e, r) {
1475
1475
  var K;
1476
- const n = f(this, le), s = this.options, a = f(this, Ge), i = f(this, kr), o = f(this, en), u = e !== n ? e.state : f(this, $n), { state: m } = e;
1477
- let h = { ...m }, _ = !1, k;
1476
+ const n = f(this, le), s = this.options, a = f(this, Ge), i = f(this, kr), o = f(this, en), u = e !== n ? e.state : f(this, $n), { state: p } = e;
1477
+ let h = { ...p }, _ = !1, k;
1478
1478
  if (r._optimisticResults) {
1479
1479
  const te = this.hasListeners(), fe = !te && li(e, r), j = te && ci(e, n, r, s);
1480
1480
  (fe || j) && (h = {
1481
1481
  ...h,
1482
- ...io(m.data, e.options)
1482
+ ...io(p.data, e.options)
1483
1483
  }), r._optimisticResults === "isRestoring" && (h.fetchStatus = "idle");
1484
1484
  }
1485
1485
  let { error: E, errorUpdatedAt: w, status: C } = h;
@@ -1506,12 +1506,12 @@ var Ce, er, tr, Hr, Yr, rr, Jr, Xr, Zi, hc = (Zi = class {
1506
1506
  z(this, sr, te);
1507
1507
  }
1508
1508
  f(this, sr) && (E = f(this, sr), k = f(this, tn), w = Date.now(), C = "error");
1509
- const T = h.fetchStatus === "fetching", N = C === "pending", F = C === "error", U = N && T, Q = k !== void 0, ee = {
1509
+ const T = h.fetchStatus === "fetching", F = C === "pending", N = C === "error", U = F && T, Q = k !== void 0, ee = {
1510
1510
  status: C,
1511
1511
  fetchStatus: h.fetchStatus,
1512
- isPending: N,
1512
+ isPending: F,
1513
1513
  isSuccess: C === "success",
1514
- isError: F,
1514
+ isError: N,
1515
1515
  isInitialLoading: U,
1516
1516
  isLoading: U,
1517
1517
  data: k,
@@ -1524,11 +1524,11 @@ var Ce, er, tr, Hr, Yr, rr, Jr, Xr, Zi, hc = (Zi = class {
1524
1524
  isFetched: h.dataUpdateCount > 0 || h.errorUpdateCount > 0,
1525
1525
  isFetchedAfterMount: h.dataUpdateCount > u.dataUpdateCount || h.errorUpdateCount > u.errorUpdateCount,
1526
1526
  isFetching: T,
1527
- isRefetching: T && !N,
1528
- isLoadingError: F && !Q,
1527
+ isRefetching: T && !F,
1528
+ isLoadingError: N && !Q,
1529
1529
  isPaused: h.fetchStatus === "paused",
1530
1530
  isPlaceholderData: _,
1531
- isRefetchError: F && Q,
1531
+ isRefetchError: N && Q,
1532
1532
  isStale: Ia(e, r),
1533
1533
  refetch: this.refetch,
1534
1534
  promise: f(this, nr)
@@ -1703,17 +1703,17 @@ var ir, or, Xe, jt, zt, cs, pa, qi, gc = (qi = class extends dn {
1703
1703
  Fe.batch(() => {
1704
1704
  var r, n, s, a, i, o, c, u;
1705
1705
  if (f(this, jt) && this.hasListeners()) {
1706
- const m = f(this, or).variables, h = f(this, or).context;
1707
- (e == null ? void 0 : e.type) === "success" ? ((n = (r = f(this, jt)).onSuccess) == null || n.call(r, e.data, m, h), (a = (s = f(this, jt)).onSettled) == null || a.call(s, e.data, null, m, h)) : (e == null ? void 0 : e.type) === "error" && ((o = (i = f(this, jt)).onError) == null || o.call(i, e.error, m, h), (u = (c = f(this, jt)).onSettled) == null || u.call(
1706
+ const p = f(this, or).variables, h = f(this, or).context;
1707
+ (e == null ? void 0 : e.type) === "success" ? ((n = (r = f(this, jt)).onSuccess) == null || n.call(r, e.data, p, h), (a = (s = f(this, jt)).onSettled) == null || a.call(s, e.data, null, p, h)) : (e == null ? void 0 : e.type) === "error" && ((o = (i = f(this, jt)).onError) == null || o.call(i, e.error, p, h), (u = (c = f(this, jt)).onSettled) == null || u.call(
1708
1708
  c,
1709
1709
  void 0,
1710
1710
  e.error,
1711
- m,
1711
+ p,
1712
1712
  h
1713
1713
  ));
1714
1714
  }
1715
- this.listeners.forEach((m) => {
1716
- m(f(this, or));
1715
+ this.listeners.forEach((p) => {
1716
+ p(f(this, or));
1717
1717
  });
1718
1718
  });
1719
1719
  }, qi), uo = B.createContext(
@@ -1784,14 +1784,14 @@ function Oc(t, e, r) {
1784
1784
  n,
1785
1785
  i
1786
1786
  )
1787
- ), u = c.getOptimisticResult(i), m = !s && t.subscribed !== !1;
1787
+ ), u = c.getOptimisticResult(i), p = !s && t.subscribed !== !1;
1788
1788
  if (B.useSyncExternalStore(
1789
1789
  B.useCallback(
1790
1790
  (C) => {
1791
- const R = m ? c.subscribe(Fe.batchCalls(C)) : ma;
1791
+ const R = p ? c.subscribe(Fe.batchCalls(C)) : ma;
1792
1792
  return c.updateResult(), R;
1793
1793
  },
1794
- [c, m]
1794
+ [c, p]
1795
1795
  ),
1796
1796
  () => c.getCurrentResult(),
1797
1797
  () => c.getCurrentResult()
@@ -2163,13 +2163,13 @@ function Hu(t, e, r) {
2163
2163
  c = e ? [] : o;
2164
2164
  e:
2165
2165
  for (; ++n < a; ) {
2166
- var m = t[n], h = e ? e(m) : m;
2167
- if (m = m !== 0 ? m : 0, i && h === h) {
2166
+ var p = t[n], h = e ? e(p) : p;
2167
+ if (p = p !== 0 ? p : 0, i && h === h) {
2168
2168
  for (var _ = c.length; _--; )
2169
2169
  if (c[_] === h)
2170
2170
  continue e;
2171
- e && c.push(h), o.push(m);
2172
- } else s(c, h, r) || (c !== o && c.push(h), o.push(m));
2171
+ e && c.push(h), o.push(p);
2172
+ } else s(c, h, r) || (c !== o && c.push(h), o.push(p));
2173
2173
  }
2174
2174
  return o;
2175
2175
  }
@@ -2263,9 +2263,9 @@ const id = (t) => ({
2263
2263
  values: t.spacing,
2264
2264
  base: s
2265
2265
  });
2266
- typeof a == "object" && Object.keys(a).forEach((c, u, m) => {
2266
+ typeof a == "object" && Object.keys(a).forEach((c, u, p) => {
2267
2267
  if (!a[c]) {
2268
- const _ = u > 0 ? a[m[u - 1]] : "column";
2268
+ const _ = u > 0 ? a[p[u - 1]] : "column";
2269
2269
  a[c] = _;
2270
2270
  }
2271
2271
  }), r = hl(r, Ba({
@@ -2294,7 +2294,7 @@ function ld(t = {}) {
2294
2294
  } = t, s = () => Zt({
2295
2295
  root: ["root"]
2296
2296
  }, (c) => Bt(n, c), {}), a = e(od), i = /* @__PURE__ */ B.forwardRef(function(c, u) {
2297
- const m = r(c), h = Qi(m), {
2297
+ const p = r(c), h = Qi(p), {
2298
2298
  component: _ = "div",
2299
2299
  direction: k = "column",
2300
2300
  spacing: E = 0,
@@ -2302,18 +2302,18 @@ function ld(t = {}) {
2302
2302
  children: C,
2303
2303
  className: R,
2304
2304
  useFlexGap: T = !1,
2305
- ...N
2306
- } = h, F = {
2305
+ ...F
2306
+ } = h, N = {
2307
2307
  direction: k,
2308
2308
  spacing: E,
2309
2309
  useFlexGap: T
2310
2310
  }, U = s();
2311
2311
  return /* @__PURE__ */ g(a, {
2312
2312
  as: _,
2313
- ownerState: F,
2313
+ ownerState: N,
2314
2314
  ref: u,
2315
2315
  className: et(U.root, R),
2316
- ...N,
2316
+ ...F,
2317
2317
  children: w ? ad(C, w) : C
2318
2318
  });
2319
2319
  });
@@ -2394,7 +2394,7 @@ const hd = (t) => {
2394
2394
  dense: o = !1,
2395
2395
  disablePadding: c = !1,
2396
2396
  subheader: u,
2397
- ...m
2397
+ ...p
2398
2398
  } = n, h = B.useMemo(() => ({
2399
2399
  dense: o
2400
2400
  }), [o]), _ = {
@@ -2410,7 +2410,7 @@ const hd = (t) => {
2410
2410
  className: et(k.root, a),
2411
2411
  ref: r,
2412
2412
  ownerState: _,
2413
- ...m,
2413
+ ...p,
2414
2414
  children: [u, s]
2415
2415
  })
2416
2416
  });
@@ -2654,7 +2654,7 @@ const yd = (t) => {
2654
2654
  orientation: o = "horizontal",
2655
2655
  component: c = a || o === "vertical" ? "div" : "hr",
2656
2656
  flexItem: u = !1,
2657
- light: m = !1,
2657
+ light: p = !1,
2658
2658
  role: h = c !== "hr" ? "separator" : void 0,
2659
2659
  textAlign: _ = "center",
2660
2660
  variant: k = "fullWidth",
@@ -2664,7 +2664,7 @@ const yd = (t) => {
2664
2664
  absolute: s,
2665
2665
  component: c,
2666
2666
  flexItem: u,
2667
- light: m,
2667
+ light: p,
2668
2668
  orientation: o,
2669
2669
  role: h,
2670
2670
  textAlign: _,
@@ -2879,7 +2879,7 @@ const _d = {
2879
2879
  align: o = "inherit",
2880
2880
  className: c,
2881
2881
  component: u,
2882
- gutterBottom: m = !1,
2882
+ gutterBottom: p = !1,
2883
2883
  noWrap: h = !1,
2884
2884
  paragraph: _ = !1,
2885
2885
  variant: k = "body1",
@@ -2891,7 +2891,7 @@ const _d = {
2891
2891
  color: n,
2892
2892
  className: c,
2893
2893
  component: u,
2894
- gutterBottom: m,
2894
+ gutterBottom: p,
2895
2895
  noWrap: h,
2896
2896
  paragraph: _,
2897
2897
  variant: k,
@@ -3168,7 +3168,7 @@ const Cd = (t) => {
3168
3168
  height: o,
3169
3169
  style: c,
3170
3170
  variant: u = "text",
3171
- width: m,
3171
+ width: p,
3172
3172
  ...h
3173
3173
  } = n, _ = {
3174
3174
  ...n,
@@ -3184,7 +3184,7 @@ const Cd = (t) => {
3184
3184
  ownerState: _,
3185
3185
  ...h,
3186
3186
  style: {
3187
- width: m,
3187
+ width: p,
3188
3188
  height: o,
3189
3189
  ...c
3190
3190
  }
@@ -3259,7 +3259,7 @@ const Od = {
3259
3259
  children: o,
3260
3260
  easing: c,
3261
3261
  in: u,
3262
- onEnter: m,
3262
+ onEnter: p,
3263
3263
  onEntered: h,
3264
3264
  onEntering: _,
3265
3265
  onExit: k,
@@ -3269,10 +3269,10 @@ const Od = {
3269
3269
  timeout: R = s,
3270
3270
  // eslint-disable-next-line react/prop-types
3271
3271
  TransitionComponent: T = gl,
3272
- ...N
3273
- } = e, F = B.useRef(null), U = Ea(F, vl(o), r), Q = (O) => (ne) => {
3272
+ ...F
3273
+ } = e, N = B.useRef(null), U = Ea(N, vl(o), r), Q = (O) => (ne) => {
3274
3274
  if (O) {
3275
- const G = F.current;
3275
+ const G = N.current;
3276
3276
  ne === void 0 ? O(G) : O(G, ne);
3277
3277
  }
3278
3278
  }, pe = Q(_), ee = Q((O, ne) => {
@@ -3284,7 +3284,7 @@ const Od = {
3284
3284
  }, {
3285
3285
  mode: "enter"
3286
3286
  });
3287
- O.style.webkitTransition = n.transitions.create("opacity", G), O.style.transition = n.transitions.create("opacity", G), m && m(O, ne);
3287
+ O.style.webkitTransition = n.transitions.create("opacity", G), O.style.transition = n.transitions.create("opacity", G), p && p(O, ne);
3288
3288
  }), K = Q(h), te = Q(w), fe = Q((O) => {
3289
3289
  const ne = Wa({
3290
3290
  style: C,
@@ -3298,7 +3298,7 @@ const Od = {
3298
3298
  return /* @__PURE__ */ g(T, {
3299
3299
  appear: i,
3300
3300
  in: u,
3301
- nodeRef: F,
3301
+ nodeRef: N,
3302
3302
  onEnter: ee,
3303
3303
  onEntered: K,
3304
3304
  onEntering: pe,
@@ -3306,10 +3306,10 @@ const Od = {
3306
3306
  onExited: j,
3307
3307
  onExiting: te,
3308
3308
  addEndListener: (O) => {
3309
- a && a(F.current, O);
3309
+ a && a(N.current, O);
3310
3310
  },
3311
3311
  timeout: R,
3312
- ...N,
3312
+ ...F,
3313
3313
  children: (O, {
3314
3314
  ownerState: ne,
3315
3315
  ...G
@@ -3452,7 +3452,7 @@ const Id = (t) => {
3452
3452
  invisible: o = !1,
3453
3453
  open: c,
3454
3454
  components: u = {},
3455
- componentsProps: m = {},
3455
+ componentsProps: p = {},
3456
3456
  slotProps: h = {},
3457
3457
  slots: _ = {},
3458
3458
  TransitionComponent: k,
@@ -3466,20 +3466,20 @@ const Id = (t) => {
3466
3466
  transition: k,
3467
3467
  root: u.Root,
3468
3468
  ..._
3469
- }, N = {
3470
- ...m,
3471
- ...h
3472
3469
  }, F = {
3470
+ ...p,
3471
+ ...h
3472
+ }, N = {
3473
3473
  slots: T,
3474
- slotProps: N
3474
+ slotProps: F
3475
3475
  }, [U, Q] = Ga("root", {
3476
3476
  elementType: Pd,
3477
- externalForwardedProps: F,
3477
+ externalForwardedProps: N,
3478
3478
  className: et(R.root, a),
3479
3479
  ownerState: C
3480
3480
  }), [pe, ee] = Ga("transition", {
3481
3481
  elementType: wo,
3482
- externalForwardedProps: F,
3482
+ externalForwardedProps: N,
3483
3483
  ownerState: C
3484
3484
  });
3485
3485
  return /* @__PURE__ */ g(pe, {
@@ -3618,7 +3618,7 @@ const Md = new Ld(), Nd = ({
3618
3618
  onError: () => {
3619
3619
  Tt("Błąd podczas przypisywania obiektu mapowego do sprawy");
3620
3620
  }
3621
- }), { showPopup: i, hidePopup: o } = Mr(), { setIsMeasurementHidden: c, setIsAngleHidden: u, setAngleValue: m } = Aa(), {
3621
+ }), { showPopup: i, hidePopup: o } = Mr(), { setIsMeasurementHidden: c, setIsAngleHidden: u, setAngleValue: p } = Aa(), {
3622
3622
  interactions: h,
3623
3623
  interactLayers: _,
3624
3624
  persistedGeometry: k,
@@ -3627,14 +3627,14 @@ const Md = new Ld(), Nd = ({
3627
3627
  isModalAccepted: C,
3628
3628
  selectedLayerId: R,
3629
3629
  prefix: T,
3630
- showInfoLayerEnabledRef: N,
3631
- drawLayer: F,
3630
+ showInfoLayerEnabledRef: F,
3631
+ drawLayer: N,
3632
3632
  currentlySelectedFeatureIdsRef: U,
3633
3633
  initialSelectedFeaturesRef: Q
3634
3634
  } = un(), [pe, ee] = J(!1), [K, te] = J(!1), [fe, j] = J(!1), [I, O] = J(!1), [ne, G] = J(!1), [Se, ce] = J(!1), [ke, Ve] = J([]), [de, Ye] = J([]), [ut, xt] = J(
3635
3635
  e.length === 1 ? { value: e[0].layerId, label: e[0].name } : null
3636
- ), [L, H] = J(null), he = (p) => {
3637
- p && De(!0), C.current = p, localStorage.setItem("isModalAccepted", String(p)), o();
3636
+ ), [L, H] = J(null), he = (m) => {
3637
+ m && De(!0), C.current = m, localStorage.setItem("isModalAccepted", String(m)), o();
3638
3638
  }, qe = async () => {
3639
3639
  if (ke.length === 0) {
3640
3640
  Tt("No geometries to send");
@@ -3659,8 +3659,8 @@ const Md = new Ld(), Nd = ({
3659
3659
  }, Ie = () => {
3660
3660
  if (h) {
3661
3661
  ee(!1);
3662
- const p = h.current.select.getFeatures();
3663
- p.forEach((y) => {
3662
+ const m = h.current.select.getFeatures();
3663
+ m.forEach((y) => {
3664
3664
  const v = y.get("originalStyle");
3665
3665
  try {
3666
3666
  if (v)
@@ -3671,14 +3671,14 @@ const Md = new Ld(), Nd = ({
3671
3671
  }
3672
3672
  } catch {
3673
3673
  }
3674
- }), p.clear(), U.current.clear();
3674
+ }), m.clear(), U.current.clear();
3675
3675
  }
3676
3676
  }, tt = () => {
3677
- E.current.clear(), w.current.getLayers().getArray().forEach((p) => {
3678
- p instanceof Ha && E.current.extend(p.getSource().getFeatures());
3677
+ E.current.clear(), w.current.getLayers().getArray().forEach((m) => {
3678
+ m instanceof Ha && E.current.extend(m.getSource().getFeatures());
3679
3679
  });
3680
3680
  }, rt = async () => {
3681
- const p = () => {
3681
+ const m = () => {
3682
3682
  k.current = void 0, Jn(h == null ? void 0 : h.current), Ie(), h.current.select.getFeatures().clear(), h.current.select.setActive(!0), h.current.hover.setActive(!0), j(!1), O(!1), ee(!1);
3683
3683
  };
3684
3684
  if (h) {
@@ -3707,7 +3707,7 @@ const Md = new Ld(), Nd = ({
3707
3707
  be.getSource().getFeatureById(v).getGeometry().setCoordinates(
3708
3708
  P.coordinates
3709
3709
  );
3710
- }), p(), Ne.layersEventEmitters.emit("onRestartLayers"), oe.mapEventEmitter.emit("reloadFeatures"), Xn("Zmiany zostały zapisane");
3710
+ }), m(), Ne.layersEventEmitters.emit("onRestartLayers"), oe.mapEventEmitter.emit("reloadFeatures"), Xn("Zmiany zostały zapisane");
3711
3711
  } catch {
3712
3712
  Tt("Nie udało się zapisać zmian");
3713
3713
  }
@@ -3720,14 +3720,14 @@ const Md = new Ld(), Nd = ({
3720
3720
  ge.getSource().getFeatureByUid(q).getGeometry().setCoordinates(
3721
3721
  P.coordinates
3722
3722
  );
3723
- }), p();
3723
+ }), m();
3724
3724
  }
3725
3725
  else
3726
3726
  Tt("Błędna geometria");
3727
3727
  }
3728
- }, De = (p, y) => {
3728
+ }, De = (m, y) => {
3729
3729
  if (h) {
3730
- if (!p && !C.current)
3730
+ if (!m && !C.current)
3731
3731
  return i({
3732
3732
  popup: "ConfirmDrawing",
3733
3733
  data: {
@@ -3746,14 +3746,14 @@ const Md = new Ld(), Nd = ({
3746
3746
  Ie(), j(!0), tt(), Jn(h == null ? void 0 : h.current), h.current.draw.setActive(!0), h.current.snap.setActive(!0);
3747
3747
  }
3748
3748
  }, Pe = () => {
3749
- h.current.select.getFeatures().clear(), j(!1), e.length > 1 && xt(null), h.current.draw.setActive(!1), h.current.select.setActive(!0), h.current.hover.setActive(!0), u(!0), m(null), c(!0);
3749
+ h.current.select.getFeatures().clear(), j(!1), e.length > 1 && xt(null), h.current.draw.setActive(!1), h.current.select.setActive(!0), h.current.hover.setActive(!0), u(!0), p(null), c(!0);
3750
3750
  }, nt = () => {
3751
- h && k && (O(!1), u(!0), m(null), c(!0), j(!1), h.current.select.getFeatures().getArray()[0].setGeometry(k.current), Ie(), h.current.select.getFeatures().clear(), Jn(h == null ? void 0 : h.current), h.current.select.setActive(!0), h.current.hover.setActive(!0));
3751
+ h && k && (O(!1), u(!0), p(null), c(!0), j(!1), h.current.select.getFeatures().getArray()[0].setGeometry(k.current), Ie(), h.current.select.getFeatures().clear(), Jn(h == null ? void 0 : h.current), h.current.select.setActive(!0), h.current.hover.setActive(!0));
3752
3752
  }, hr = () => {
3753
3753
  h && k && (O(!0), tt(), h.current.modify.setActive(!0), h.current.hover.setActive(!1), k.current = h.current.select.getFeatures().getArray()[0].clone().getGeometry());
3754
- }, wt = async (p) => {
3754
+ }, wt = async (m) => {
3755
3755
  var y;
3756
- if (!p)
3756
+ if (!m)
3757
3757
  i({
3758
3758
  popup: "ConfirmDelete",
3759
3759
  data: {
@@ -3816,7 +3816,7 @@ const Md = new Ld(), Nd = ({
3816
3816
  onDeleteGeometryClicked: wt,
3817
3817
  mapLayers: e,
3818
3818
  onToggleShowInfoLayer: () => {
3819
- I && nt(), ne && (o(), Ie()), G(!ne), N.current = !ne;
3819
+ I && nt(), ne && (o(), Ie()), G(!ne), F.current = !ne;
3820
3820
  },
3821
3821
  showInfoLayerEnabled: ne,
3822
3822
  onAssignMapRepresentation: async () => {
@@ -3838,7 +3838,7 @@ const Md = new Ld(), Nd = ({
3838
3838
  },
3839
3839
  handleCollectGeometries: () => {
3840
3840
  var P;
3841
- let y = [...F.current.getSource().getFeatures()];
3841
+ let y = [...N.current.getSource().getFeatures()];
3842
3842
  ((P = y[0].getProperties()) == null ? void 0 : P.isPositionPoint) && (y = y.slice(1));
3843
3843
  const x = y.map((M) => {
3844
3844
  const q = M.getGeometry();
@@ -3855,15 +3855,15 @@ const Md = new Ld(), Nd = ({
3855
3855
  setOuterSelectedMapObjects: s,
3856
3856
  centerToInitialFeatures: () => {
3857
3857
  if (!(w != null && w.current)) return;
3858
- const p = Q.current;
3859
- if (!(p != null && p.length)) return;
3858
+ const m = Q.current;
3859
+ if (!(m != null && m.length)) return;
3860
3860
  const y = [];
3861
3861
  if (w.current.getLayers().forEach((v) => {
3862
3862
  if (v instanceof Ha) {
3863
3863
  const x = v.getSource();
3864
3864
  x instanceof wl && x.getFeatures().forEach((P) => {
3865
3865
  const M = P.getId();
3866
- M && p.some((q) => q.id === Number(M)) && y.push(P);
3866
+ M && m.some((q) => q.id === Number(M)) && y.push(P);
3867
3867
  });
3868
3868
  }
3869
3869
  }), y.length > 0) {
@@ -3897,10 +3897,10 @@ const Md = new Ld(), Nd = ({
3897
3897
  },
3898
3898
  centerToSelectedFeatures: () => {
3899
3899
  if (!(w != null && w.current)) return;
3900
- const p = h.current.select.getFeatures().getArray();
3901
- if (!(p != null && p.length)) return;
3900
+ const m = h.current.select.getFeatures().getArray();
3901
+ if (!(m != null && m.length)) return;
3902
3902
  const y = Ka();
3903
- p.forEach((v) => {
3903
+ m.forEach((v) => {
3904
3904
  const x = v.getGeometry();
3905
3905
  x && Qa(y, x.getExtent());
3906
3906
  }), w.current.getView().fit(y, {
@@ -4127,7 +4127,7 @@ const $d = (t, e) => {
4127
4127
  component: o,
4128
4128
  components: c = {},
4129
4129
  componentsProps: u = {},
4130
- ContainerComponent: m = "li",
4130
+ ContainerComponent: p = "li",
4131
4131
  ContainerProps: {
4132
4132
  className: h,
4133
4133
  ..._
@@ -4138,8 +4138,8 @@ const $d = (t, e) => {
4138
4138
  divider: C = !1,
4139
4139
  secondaryAction: R,
4140
4140
  slotProps: T = {},
4141
- slots: N = {},
4142
- ...F
4141
+ slots: F = {},
4142
+ ...N
4143
4143
  } = n, U = B.useContext(Zr), Q = B.useMemo(() => ({
4144
4144
  dense: k || U.dense || !1,
4145
4145
  alignItems: s,
@@ -4152,15 +4152,15 @@ const $d = (t, e) => {
4152
4152
  disablePadding: w,
4153
4153
  divider: C,
4154
4154
  hasSecondaryAction: K
4155
- }, fe = Ud(te), j = Ea(pe, r), I = N.root || c.Root || Zd, O = T.root || u.root || {}, ne = {
4155
+ }, fe = Ud(te), j = Ea(pe, r), I = F.root || c.Root || Zd, O = T.root || u.root || {}, ne = {
4156
4156
  className: et(fe.root, O.className, i),
4157
- ...F
4157
+ ...N
4158
4158
  };
4159
4159
  let G = o || "li";
4160
- return K ? (G = !ne.component && !o ? "div" : G, m === "li" && (G === "li" ? G = "div" : ne.component === "li" && (ne.component = "div")), /* @__PURE__ */ g(Zr.Provider, {
4160
+ return K ? (G = !ne.component && !o ? "div" : G, p === "li" && (G === "li" ? G = "div" : ne.component === "li" && (ne.component = "div")), /* @__PURE__ */ g(Zr.Provider, {
4161
4161
  value: Q,
4162
4162
  children: /* @__PURE__ */ re(Bd, {
4163
- as: m,
4163
+ as: p,
4164
4164
  className: et(fe.container, h),
4165
4165
  ref: j,
4166
4166
  ownerState: te,
@@ -4433,7 +4433,7 @@ function Jd(t) {
4433
4433
  max: o = 100,
4434
4434
  min: c = 0,
4435
4435
  name: u,
4436
- onChange: m,
4436
+ onChange: p,
4437
4437
  onChangeCommitted: h,
4438
4438
  orientation: _ = "horizontal",
4439
4439
  rootRef: k,
@@ -4442,33 +4442,33 @@ function Jd(t) {
4442
4442
  shiftStep: C = 10,
4443
4443
  tabIndex: R,
4444
4444
  value: T
4445
- } = t, N = B.useRef(void 0), [F, U] = B.useState(-1), [Q, pe] = B.useState(-1), [ee, K] = B.useState(!1), te = B.useRef(0), fe = B.useRef(null), [j, I] = Tl({
4445
+ } = t, F = B.useRef(void 0), [N, U] = B.useState(-1), [Q, pe] = B.useState(-1), [ee, K] = B.useState(!1), te = B.useRef(0), fe = B.useRef(null), [j, I] = Tl({
4446
4446
  controlled: T,
4447
4447
  default: r ?? c,
4448
4448
  name: "Slider"
4449
- }), O = m && ((p, y, v) => {
4450
- const x = p.nativeEvent || p, P = new x.constructor(x.type, x);
4449
+ }), O = p && ((m, y, v) => {
4450
+ const x = m.nativeEvent || m, P = new x.constructor(x.type, x);
4451
4451
  Object.defineProperty(P, "target", {
4452
4452
  writable: !0,
4453
4453
  value: {
4454
4454
  value: y,
4455
4455
  name: u
4456
4456
  }
4457
- }), fe.current = y, m(P, y, v);
4457
+ }), fe.current = y, p(P, y, v);
4458
4458
  }), ne = Array.isArray(j);
4459
4459
  let G = ne ? j.slice().sort(ko) : [j];
4460
- G = G.map((p) => p == null ? c : mn(p, c, o));
4461
- const Se = i === !0 && w !== null ? [...Array(Math.floor((o - c) / w) + 1)].map((p, y) => ({
4460
+ G = G.map((m) => m == null ? c : mn(m, c, o));
4461
+ const Se = i === !0 && w !== null ? [...Array(Math.floor((o - c) / w) + 1)].map((m, y) => ({
4462
4462
  value: c + w * y
4463
- })) : i || [], ce = Se.map((p) => p.value), [ke, Ve] = B.useState(-1), de = B.useRef(null), Ye = Ea(k, de), ut = (p) => (y) => {
4463
+ })) : i || [], ce = Se.map((m) => m.value), [ke, Ve] = B.useState(-1), de = B.useRef(null), Ye = Ea(k, de), ut = (m) => (y) => {
4464
4464
  var x;
4465
4465
  const v = Number(y.currentTarget.getAttribute("data-index"));
4466
- Xa(y.target) && Ve(v), pe(v), (x = p == null ? void 0 : p.onFocus) == null || x.call(p, y);
4467
- }, xt = (p) => (y) => {
4466
+ Xa(y.target) && Ve(v), pe(v), (x = m == null ? void 0 : m.onFocus) == null || x.call(m, y);
4467
+ }, xt = (m) => (y) => {
4468
4468
  var v;
4469
- Xa(y.target) || Ve(-1), pe(-1), (v = p == null ? void 0 : p.onBlur) == null || v.call(p, y);
4470
- }, L = (p, y) => {
4471
- const v = Number(p.currentTarget.getAttribute("data-index")), x = G[v], P = ce.indexOf(x);
4469
+ Xa(y.target) || Ve(-1), pe(-1), (v = m == null ? void 0 : m.onBlur) == null || v.call(m, y);
4470
+ }, L = (m, y) => {
4471
+ const v = Number(m.currentTarget.getAttribute("data-index")), x = G[v], P = ce.indexOf(x);
4472
4472
  let M = y;
4473
4473
  if (Se && w == null) {
4474
4474
  const q = ce[ce.length - 1];
@@ -4488,8 +4488,8 @@ function Jd(t) {
4488
4488
  activeIndex: be
4489
4489
  });
4490
4490
  }
4491
- I(M), Ve(v), O && !ns(M, j) && O(p, M, v), h && h(p, fe.current ?? M);
4492
- }, H = (p) => (y) => {
4491
+ I(M), Ve(v), O && !ns(M, j) && O(m, M, v), h && h(m, fe.current ?? M);
4492
+ }, H = (m) => (y) => {
4493
4493
  var v;
4494
4494
  if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Home", "End"].includes(y.key)) {
4495
4495
  y.preventDefault();
@@ -4529,20 +4529,20 @@ function Jd(t) {
4529
4529
  }
4530
4530
  M != null && L(y, M);
4531
4531
  }
4532
- (v = p == null ? void 0 : p.onKeyDown) == null || v.call(p, y);
4532
+ (v = m == null ? void 0 : m.onKeyDown) == null || v.call(m, y);
4533
4533
  };
4534
4534
  El(() => {
4535
- var p;
4536
- n && de.current.contains(document.activeElement) && ((p = document.activeElement) == null || p.blur());
4537
- }, [n]), n && F !== -1 && U(-1), n && ke !== -1 && Ve(-1);
4538
- const he = (p) => (y) => {
4535
+ var m;
4536
+ n && de.current.contains(document.activeElement) && ((m = document.activeElement) == null || m.blur());
4537
+ }, [n]), n && N !== -1 && U(-1), n && ke !== -1 && Ve(-1);
4538
+ const he = (m) => (y) => {
4539
4539
  var v;
4540
- (v = p.onChange) == null || v.call(p, y), L(y, y.target.valueAsNumber);
4540
+ (v = m.onChange) == null || v.call(m, y), L(y, y.target.valueAsNumber);
4541
4541
  }, qe = B.useRef(void 0);
4542
4542
  let Ie = _;
4543
4543
  a && _ === "horizontal" && (Ie += "-reverse");
4544
4544
  const tt = ({
4545
- finger: p,
4545
+ finger: m,
4546
4546
  move: y = !1
4547
4547
  }) => {
4548
4548
  const {
@@ -4554,7 +4554,7 @@ function Jd(t) {
4554
4554
  left: q
4555
4555
  } = v.getBoundingClientRect();
4556
4556
  let be;
4557
- Ie.startsWith("vertical") ? be = (M - p.y) / P : be = (p.x - q) / x, Ie.includes("-reverse") && (be = 1 - be);
4557
+ Ie.startsWith("vertical") ? be = (M - m.y) / P : be = (m.x - q) / x, Ie.includes("-reverse") && (be = 1 - be);
4558
4558
  let ge;
4559
4559
  if (ge = Gd(be, c, o), w)
4560
4560
  ge = Kd(ge, w, c);
@@ -4577,12 +4577,12 @@ function Jd(t) {
4577
4577
  newValue: ge,
4578
4578
  activeIndex: Ae
4579
4579
  };
4580
- }, rt = Ws((p) => {
4581
- const y = ts(p, N);
4580
+ }, rt = Ws((m) => {
4581
+ const y = ts(m, F);
4582
4582
  if (!y)
4583
4583
  return;
4584
- if (te.current += 1, p.type === "mousemove" && p.buttons === 0) {
4585
- De(p);
4584
+ if (te.current += 1, m.type === "mousemove" && m.buttons === 0) {
4585
+ De(m);
4586
4586
  return;
4587
4587
  }
4588
4588
  const {
@@ -4596,9 +4596,9 @@ function Jd(t) {
4596
4596
  sliderRef: de,
4597
4597
  activeIndex: x,
4598
4598
  setActive: U
4599
- }), I(v), !ee && te.current > Wd && K(!0), O && !ns(v, j) && O(p, v, x);
4600
- }), De = Ws((p) => {
4601
- const y = ts(p, N);
4599
+ }), I(v), !ee && te.current > Wd && K(!0), O && !ns(v, j) && O(m, v, x);
4600
+ }), De = Ws((m) => {
4601
+ const y = ts(m, F);
4602
4602
  if (K(!1), !y)
4603
4603
  return;
4604
4604
  const {
@@ -4607,14 +4607,14 @@ function Jd(t) {
4607
4607
  finger: y,
4608
4608
  move: !0
4609
4609
  });
4610
- U(-1), p.type === "touchend" && pe(-1), h && h(p, fe.current ?? v), N.current = void 0, nt();
4611
- }), Pe = Ws((p) => {
4610
+ U(-1), m.type === "touchend" && pe(-1), h && h(m, fe.current ?? v), F.current = void 0, nt();
4611
+ }), Pe = Ws((m) => {
4612
4612
  if (n)
4613
4613
  return;
4614
- mi() || p.preventDefault();
4615
- const y = p.changedTouches[0];
4616
- y != null && (N.current = y.identifier);
4617
- const v = ts(p, N);
4614
+ mi() || m.preventDefault();
4615
+ const y = m.changedTouches[0];
4616
+ y != null && (F.current = y.identifier);
4617
+ const v = ts(m, F);
4618
4618
  if (v !== !1) {
4619
4619
  const {
4620
4620
  newValue: P,
@@ -4626,7 +4626,7 @@ function Jd(t) {
4626
4626
  sliderRef: de,
4627
4627
  activeIndex: M,
4628
4628
  setActive: U
4629
- }), I(P), O && !ns(P, j) && O(p, P, M);
4629
+ }), I(P), O && !ns(P, j) && O(m, P, M);
4630
4630
  }
4631
4631
  te.current = 0;
4632
4632
  const x = os(de.current);
@@ -4636,27 +4636,27 @@ function Jd(t) {
4636
4636
  passive: !0
4637
4637
  });
4638
4638
  }), nt = B.useCallback(() => {
4639
- const p = os(de.current);
4640
- p.removeEventListener("mousemove", rt), p.removeEventListener("mouseup", De), p.removeEventListener("touchmove", rt), p.removeEventListener("touchend", De);
4639
+ const m = os(de.current);
4640
+ m.removeEventListener("mousemove", rt), m.removeEventListener("mouseup", De), m.removeEventListener("touchmove", rt), m.removeEventListener("touchend", De);
4641
4641
  }, [De, rt]);
4642
4642
  B.useEffect(() => {
4643
4643
  const {
4644
- current: p
4644
+ current: m
4645
4645
  } = de;
4646
- return p.addEventListener("touchstart", Pe, {
4646
+ return m.addEventListener("touchstart", Pe, {
4647
4647
  passive: mi()
4648
4648
  }), () => {
4649
- p.removeEventListener("touchstart", Pe), nt();
4649
+ m.removeEventListener("touchstart", Pe), nt();
4650
4650
  };
4651
4651
  }, [nt, Pe]), B.useEffect(() => {
4652
4652
  n && nt();
4653
4653
  }, [n, nt]);
4654
- const hr = (p) => (y) => {
4654
+ const hr = (m) => (y) => {
4655
4655
  var P;
4656
- if ((P = p.onMouseDown) == null || P.call(p, y), n || y.defaultPrevented || y.button !== 0)
4656
+ if ((P = m.onMouseDown) == null || P.call(m, y), n || y.defaultPrevented || y.button !== 0)
4657
4657
  return;
4658
4658
  y.preventDefault();
4659
- const v = ts(y, N);
4659
+ const v = ts(y, F);
4660
4660
  if (v !== !1) {
4661
4661
  const {
4662
4662
  newValue: M,
@@ -4675,49 +4675,49 @@ function Jd(t) {
4675
4675
  x.addEventListener("mousemove", rt, {
4676
4676
  passive: !0
4677
4677
  }), x.addEventListener("mouseup", De);
4678
- }, wt = xs(ne ? G[0] : c, c, o), Le = xs(G[G.length - 1], c, o) - wt, Gt = (p = {}) => {
4679
- const y = Gs(p), v = {
4678
+ }, wt = xs(ne ? G[0] : c, c, o), Le = xs(G[G.length - 1], c, o) - wt, Gt = (m = {}) => {
4679
+ const y = Gs(m), v = {
4680
4680
  onMouseDown: hr(y || {})
4681
4681
  }, x = {
4682
4682
  ...y,
4683
4683
  ...v
4684
4684
  };
4685
4685
  return {
4686
- ...p,
4686
+ ...m,
4687
4687
  ref: Ye,
4688
4688
  ...x
4689
4689
  };
4690
- }, pr = (p) => (y) => {
4690
+ }, pr = (m) => (y) => {
4691
4691
  var x;
4692
- (x = p.onMouseOver) == null || x.call(p, y);
4692
+ (x = m.onMouseOver) == null || x.call(m, y);
4693
4693
  const v = Number(y.currentTarget.getAttribute("data-index"));
4694
4694
  pe(v);
4695
- }, Fr = (p) => (y) => {
4695
+ }, Fr = (m) => (y) => {
4696
4696
  var v;
4697
- (v = p.onMouseLeave) == null || v.call(p, y), pe(-1);
4698
- }, Qt = (p = {}) => {
4699
- const y = Gs(p), v = {
4697
+ (v = m.onMouseLeave) == null || v.call(m, y), pe(-1);
4698
+ }, Qt = (m = {}) => {
4699
+ const y = Gs(m), v = {
4700
4700
  onMouseOver: pr(y || {}),
4701
4701
  onMouseLeave: Fr(y || {})
4702
4702
  };
4703
4703
  return {
4704
- ...p,
4704
+ ...m,
4705
4705
  ...y,
4706
4706
  ...v
4707
4707
  };
4708
- }, d = (p) => ({
4708
+ }, d = (m) => ({
4709
4709
  // So the non active thumb doesn't show its label on hover.
4710
- pointerEvents: F !== -1 && F !== p ? "none" : void 0
4710
+ pointerEvents: N !== -1 && N !== m ? "none" : void 0
4711
4711
  });
4712
4712
  let b;
4713
4713
  return _ === "vertical" && (b = a ? "vertical-rl" : "vertical-lr"), {
4714
- active: F,
4714
+ active: N,
4715
4715
  axis: Ie,
4716
4716
  axisProps: Hd,
4717
4717
  dragging: ee,
4718
4718
  focusedThumbIndex: ke,
4719
- getHiddenInputProps: (p = {}) => {
4720
- const y = Gs(p), v = {
4719
+ getHiddenInputProps: (m = {}) => {
4720
+ const y = Gs(m), v = {
4721
4721
  onChange: he(y || {}),
4722
4722
  onFocus: ut(y || {}),
4723
4723
  onBlur: xt(y || {}),
@@ -4738,7 +4738,7 @@ function Jd(t) {
4738
4738
  max: t.max,
4739
4739
  step: t.step === null && t.marks ? "any" : t.step ?? void 0,
4740
4740
  disabled: n,
4741
- ...p,
4741
+ ...m,
4742
4742
  ...x,
4743
4743
  style: {
4744
4744
  ...Ju,
@@ -5338,7 +5338,7 @@ const of = $e("span", {
5338
5338
  // eslint-disable-next-line react/prop-types
5339
5339
  component: c = "span",
5340
5340
  components: u = {},
5341
- componentsProps: m = {},
5341
+ componentsProps: p = {},
5342
5342
  color: h = "primary",
5343
5343
  classes: _,
5344
5344
  className: k,
@@ -5347,8 +5347,8 @@ const of = $e("span", {
5347
5347
  getAriaLabel: C,
5348
5348
  getAriaValueText: R,
5349
5349
  marks: T = !1,
5350
- max: N = 100,
5351
- min: F = 0,
5350
+ max: F = 100,
5351
+ min: N = 0,
5352
5352
  name: U,
5353
5353
  onChange: Q,
5354
5354
  onChangeCommitted: pe,
@@ -5368,8 +5368,8 @@ const of = $e("span", {
5368
5368
  } = n, de = {
5369
5369
  ...n,
5370
5370
  isRtl: s,
5371
- max: N,
5372
- min: F,
5371
+ max: F,
5372
+ min: N,
5373
5373
  classes: _,
5374
5374
  disabled: w,
5375
5375
  disableSwap: E,
@@ -5404,7 +5404,7 @@ const of = $e("span", {
5404
5404
  rootRef: r
5405
5405
  });
5406
5406
  de.marked = De.length > 0 && De.some((Oe) => Oe.label), de.dragging = rt, de.focusedThumbIndex = Ie;
5407
- const Le = cf(de), Gt = (O == null ? void 0 : O.root) ?? u.Root ?? rf, pr = (O == null ? void 0 : O.rail) ?? u.Rail ?? nf, Fr = (O == null ? void 0 : O.track) ?? u.Track ?? sf, Qt = (O == null ? void 0 : O.thumb) ?? u.Thumb ?? af, d = (O == null ? void 0 : O.valueLabel) ?? u.ValueLabel ?? To, b = (O == null ? void 0 : O.mark) ?? u.Mark ?? of, S = (O == null ? void 0 : O.markLabel) ?? u.MarkLabel ?? lf, p = (O == null ? void 0 : O.input) ?? u.Input ?? "input", y = (I == null ? void 0 : I.root) ?? m.root, v = (I == null ? void 0 : I.rail) ?? m.rail, x = (I == null ? void 0 : I.track) ?? m.track, P = (I == null ? void 0 : I.thumb) ?? m.thumb, M = (I == null ? void 0 : I.valueLabel) ?? m.valueLabel, q = (I == null ? void 0 : I.mark) ?? m.mark, be = (I == null ? void 0 : I.markLabel) ?? m.markLabel, ge = (I == null ? void 0 : I.input) ?? m.input, Ae = Kt({
5407
+ const Le = cf(de), Gt = (O == null ? void 0 : O.root) ?? u.Root ?? rf, pr = (O == null ? void 0 : O.rail) ?? u.Rail ?? nf, Fr = (O == null ? void 0 : O.track) ?? u.Track ?? sf, Qt = (O == null ? void 0 : O.thumb) ?? u.Thumb ?? af, d = (O == null ? void 0 : O.valueLabel) ?? u.ValueLabel ?? To, b = (O == null ? void 0 : O.mark) ?? u.Mark ?? of, S = (O == null ? void 0 : O.markLabel) ?? u.MarkLabel ?? lf, m = (O == null ? void 0 : O.input) ?? u.Input ?? "input", y = (I == null ? void 0 : I.root) ?? p.root, v = (I == null ? void 0 : I.rail) ?? p.rail, x = (I == null ? void 0 : I.track) ?? p.track, P = (I == null ? void 0 : I.thumb) ?? p.thumb, M = (I == null ? void 0 : I.valueLabel) ?? p.valueLabel, q = (I == null ? void 0 : I.mark) ?? p.mark, be = (I == null ? void 0 : I.markLabel) ?? p.markLabel, ge = (I == null ? void 0 : I.input) ?? p.input, Ae = Kt({
5408
5408
  elementType: Gt,
5409
5409
  getSlotProps: ut,
5410
5410
  externalSlotProps: y,
@@ -5466,7 +5466,7 @@ const of = $e("span", {
5466
5466
  ownerState: de,
5467
5467
  className: Le.markLabel
5468
5468
  }), tl = Kt({
5469
- elementType: p,
5469
+ elementType: m,
5470
5470
  getSlotProps: xt,
5471
5471
  externalSlotProps: ge,
5472
5472
  ownerState: de
@@ -5477,8 +5477,8 @@ const of = $e("span", {
5477
5477
  ...mr
5478
5478
  }), /* @__PURE__ */ g(Fr, {
5479
5479
  ...Qn
5480
- }), De.filter((Oe) => Oe.value >= F && Oe.value <= N).map((Oe, je) => {
5481
- const Us = xs(Oe.value, F, N), Hn = Ye[qe].offset(Us);
5480
+ }), De.filter((Oe) => Oe.value >= N && Oe.value <= F).map((Oe, je) => {
5481
+ const Us = xs(Oe.value, N, F), Hn = Ye[qe].offset(Us);
5482
5482
  let Pt;
5483
5483
  return G === !1 ? Pt = Pe.includes(Oe.value) : Pt = G === "normal" && (tt ? Oe.value >= Pe[0] && Oe.value <= Pe[Pe.length - 1] : Oe.value <= Pe[0]) || G === "inverted" && (tt ? Oe.value <= Pe[0] || Oe.value >= Pe[Pe.length - 1] : Oe.value >= Pe[0]), /* @__PURE__ */ re(B.Fragment, {
5484
5484
  children: [/* @__PURE__ */ g(b, {
@@ -5508,7 +5508,7 @@ const of = $e("span", {
5508
5508
  }) : null]
5509
5509
  }, je);
5510
5510
  }), Pe.map((Oe, je) => {
5511
- const Us = xs(Oe, F, N), Hn = Ye[qe].offset(Us), Pt = ce === "off" ? uf : d;
5511
+ const Us = xs(Oe, N, F), Hn = Ye[qe].offset(Us), Pt = ce === "off" ? uf : d;
5512
5512
  return (
5513
5513
  /* TODO v6: Change component structure. It will help in avoiding the complicated React.cloneElement API added in SliderValueLabel component. Should be: Thumb -> Input, ValueLabel. Follow Joy UI's Slider structure. */
5514
5514
  /* @__PURE__ */ g(Pt, {
@@ -5530,7 +5530,7 @@ const of = $e("span", {
5530
5530
  ...wt(je),
5531
5531
  ...pn.style
5532
5532
  },
5533
- children: /* @__PURE__ */ g(p, {
5533
+ children: /* @__PURE__ */ g(m, {
5534
5534
  "data-index": je,
5535
5535
  "aria-label": C ? C(je) : a,
5536
5536
  "aria-valuenow": j(Oe),
@@ -6038,11 +6038,11 @@ const ff = Ue(xe)`
6038
6038
  popupData: { onCollapse: i }
6039
6039
  } = Mr(), [o, c] = J(
6040
6040
  {}
6041
- ), [u, m] = J(!0);
6041
+ ), [u, p] = J(!0);
6042
6042
  Re(() => {
6043
6043
  (async () => {
6044
6044
  var k;
6045
- m(!0);
6045
+ p(!0);
6046
6046
  const _ = {};
6047
6047
  for (const E of e) {
6048
6048
  const w = is(E.getId(), s), C = E.getProperties().layerId;
@@ -6051,7 +6051,7 @@ const ff = Ue(xe)`
6051
6051
  )) == null ? void 0 : k.name;
6052
6052
  !R && w && (R = (await Rl(Number(w))).title), w && R && (_[w] = `${R} ID: ${is(w, s)}`);
6053
6053
  }
6054
- c(_), m(!1);
6054
+ c(_), p(!1);
6055
6055
  })();
6056
6056
  }, [e, n, s, r]);
6057
6057
  const h = (_) => {
@@ -6265,9 +6265,9 @@ const Oo = al(
6265
6265
  }, Of = ({
6266
6266
  children: t
6267
6267
  }) => {
6268
- const [e, r] = J(), [n, s] = J(), [a, i] = J(0), [o, c] = J(0), [u, m] = J(0), [h, _] = J(0), [k, E] = J(0), [w, C] = J([]), [R, T] = J([]), [N, F] = J(), U = {
6268
+ const [e, r] = J(), [n, s] = J(), [a, i] = J(0), [o, c] = J(0), [u, p] = J(0), [h, _] = J(0), [k, E] = J(0), [w, C] = J([]), [R, T] = J([]), [F, N] = J(), U = {
6269
6269
  setMileageStart: c,
6270
- setMileageEnd: m,
6270
+ setMileageEnd: p,
6271
6271
  setSelectedNet: s,
6272
6272
  setChainageLength: i,
6273
6273
  setChainageValue: _,
@@ -6284,8 +6284,8 @@ const Oo = al(
6284
6284
  roads: R,
6285
6285
  nets: w,
6286
6286
  setNets: C,
6287
- prgAddressValue: N,
6288
- setPrgAddressValue: F
6287
+ prgAddressValue: F,
6288
+ setPrgAddressValue: N
6289
6289
  };
6290
6290
  return /* @__PURE__ */ g(Oo.Provider, { value: U, children: t });
6291
6291
  };
@@ -6329,7 +6329,7 @@ const If = Ue(xe)`
6329
6329
  align-items: center;
6330
6330
  justify-content: center;
6331
6331
  `, Lf = ({ onlyGemLayers: t }) => {
6332
- const [e, r] = J(!0), [n, s] = J([]), [a, i] = J([]), [o, c] = J(""), u = Xs([]), m = Xs([]);
6332
+ const [e, r] = J(!0), [n, s] = J([]), [a, i] = J([]), [o, c] = J(""), u = Xs([]), p = Xs([]);
6333
6333
  Re(() => {
6334
6334
  (async () => {
6335
6335
  const E = (await Ne.queryGEMLayers()).data.response.data;
@@ -6337,16 +6337,16 @@ const If = Ue(xe)`
6337
6337
  const w = await Ne.querySelectedLayers("MAP_VIEW"), C = JSON.parse(
6338
6338
  w.data.response.MAP_RLO_VIEW_LAYER_SELECTED
6339
6339
  );
6340
- m.current = C.selected;
6340
+ p.current = C.selected;
6341
6341
  const R = Ne.queryLayersByKeys(
6342
6342
  E,
6343
6343
  C.selected
6344
- ), T = R.map((U) => U.id), N = Ne.processLayersStructure(
6344
+ ), T = R.map((U) => U.id), F = Ne.processLayersStructure(
6345
6345
  E,
6346
6346
  T
6347
6347
  );
6348
- let F = Ne.createTreeItems(N);
6349
- t && (F = F.filter((U) => U.id === "LAYER_VIEW_TYPE_GEM")[0].children), Ne.setSelectedLayers(R), r(!1), u.current = F, s(F);
6348
+ let N = Ne.createTreeItems(F);
6349
+ t && (N = N.filter((U) => U.id === "LAYER_VIEW_TYPE_GEM")[0].children), Ne.setSelectedLayers(R), r(!1), u.current = N, s(N);
6350
6350
  })();
6351
6351
  }, [t]), Re(() => {
6352
6352
  s(o === "" ? u.current : Ne.filterTree(u.current, o));
@@ -6354,7 +6354,7 @@ const If = Ue(xe)`
6354
6354
  Ne.layersEventEmitters.on("onRestartLayers", async () => {
6355
6355
  const k = Ne.queryLayersByKeys(
6356
6356
  a,
6357
- m.current
6357
+ p.current
6358
6358
  );
6359
6359
  Ne.setSelectedLayers(k);
6360
6360
  const E = _(k);
@@ -6369,7 +6369,7 @@ const If = Ue(xe)`
6369
6369
  const w = Ne.onNodeCheck(k, E, n);
6370
6370
  s(w);
6371
6371
  const C = Ne.getCheckedLayerIds(w);
6372
- m.current = C;
6372
+ p.current = C;
6373
6373
  const R = Ne.queryLayersByKeys(
6374
6374
  a,
6375
6375
  C
@@ -6519,7 +6519,7 @@ function Fo(t) {
6519
6519
  values: !0
6520
6520
  },
6521
6521
  exact: i,
6522
- callback: (m) => !a && u(No(n, r._names, m.values || r._formValues, !1, o.current))
6522
+ callback: (p) => !a && u(No(n, r._names, p.values || r._formValues, !1, o.current))
6523
6523
  }), [n, r, a, i]), ve.useEffect(() => r._removeUnmounted()), c;
6524
6524
  }
6525
6525
  function Df(t) {
@@ -6532,7 +6532,7 @@ function Df(t) {
6532
6532
  control: s,
6533
6533
  name: r,
6534
6534
  exact: !0
6535
- }), u = ve.useRef(t), m = ve.useRef(s.register(r, {
6535
+ }), u = ve.useRef(t), p = ve.useRef(s.register(r, {
6536
6536
  ...t.rules,
6537
6537
  value: o,
6538
6538
  ...st(t.disabled) ? { disabled: t.disabled } : {}
@@ -6557,13 +6557,13 @@ function Df(t) {
6557
6557
  enumerable: !0,
6558
6558
  get: () => V(c.errors, r)
6559
6559
  }
6560
- }), [c, r]), _ = ve.useCallback((C) => m.current.onChange({
6560
+ }), [c, r]), _ = ve.useCallback((C) => p.current.onChange({
6561
6561
  target: {
6562
6562
  value: Io(C),
6563
6563
  name: r
6564
6564
  },
6565
6565
  type: ws.CHANGE
6566
- }), [r]), k = ve.useCallback(() => m.current.onBlur({
6566
+ }), [r]), k = ve.useCallback(() => p.current.onBlur({
6567
6567
  target: {
6568
6568
  value: V(s._formValues, r),
6569
6569
  name: r
@@ -6586,9 +6586,9 @@ function Df(t) {
6586
6586
  ...u.current.rules,
6587
6587
  ...st(u.current.disabled) ? { disabled: u.current.disabled } : {}
6588
6588
  });
6589
- const R = (T, N) => {
6590
- const F = V(s._fields, T);
6591
- F && F._f && (F._f.mount = N);
6589
+ const R = (T, F) => {
6590
+ const N = V(s._fields, T);
6591
+ N && N._f && (N._f.mount = F);
6592
6592
  };
6593
6593
  if (R(r, !0), C) {
6594
6594
  const T = ze(V(s._options.defaultValues, r));
@@ -6809,11 +6809,11 @@ var Dr = (t) => Ee(t) && !Cs(t) ? t : {
6809
6809
  value: t,
6810
6810
  message: ""
6811
6811
  }, Oi = async (t, e, r, n, s, a) => {
6812
- const { ref: i, refs: o, required: c, maxLength: u, minLength: m, min: h, max: _, pattern: k, validate: E, name: w, valueAsNumber: C, mount: R } = t._f, T = V(r, w);
6812
+ const { ref: i, refs: o, required: c, maxLength: u, minLength: p, min: h, max: _, pattern: k, validate: E, name: w, valueAsNumber: C, mount: R } = t._f, T = V(r, w);
6813
6813
  if (!R || e.has(w))
6814
6814
  return {};
6815
- const N = o ? o[0] : i, F = (j) => {
6816
- s && N.reportValidity && (N.setCustomValidity(st(j) ? "" : j || ""), N.reportValidity());
6815
+ const F = o ? o[0] : i, N = (j) => {
6816
+ s && F.reportValidity && (F.setCustomValidity(st(j) ? "" : j || ""), F.reportValidity());
6817
6817
  }, U = {}, Q = $a(i), pe = Wn(i), ee = Q || pe, K = (C || za(i)) && Te(i.value) && Te(T) || Ss(i) && i.value === "" || T === "" || Array.isArray(T) && !T.length, te = Vo.bind(null, w, n, U), fe = (j, I, O, ne = Lt.maxLength, G = Lt.minLength) => {
6818
6818
  const Se = j ? I : O;
6819
6819
  U[w] = {
@@ -6828,10 +6828,10 @@ var Dr = (t) => Ee(t) && !Cs(t) ? t : {
6828
6828
  if (j && (U[w] = {
6829
6829
  type: Lt.required,
6830
6830
  message: I,
6831
- ref: N,
6831
+ ref: F,
6832
6832
  ...te(Lt.required, I)
6833
6833
  }, !n))
6834
- return F(I), U;
6834
+ return N(I), U;
6835
6835
  }
6836
6836
  if (!K && (!Ke(h) || !Ke(_))) {
6837
6837
  let j, I;
@@ -6844,12 +6844,12 @@ var Dr = (t) => Ee(t) && !Cs(t) ? t : {
6844
6844
  Et(O.value) && T && (j = ce ? Se(T) > Se(O.value) : ke ? T > O.value : G > new Date(O.value)), Et(ne.value) && T && (I = ce ? Se(T) < Se(ne.value) : ke ? T < ne.value : G < new Date(ne.value));
6845
6845
  }
6846
6846
  if ((j || I) && (fe(!!j, O.message, ne.message, Lt.max, Lt.min), !n))
6847
- return F(U[w].message), U;
6847
+ return N(U[w].message), U;
6848
6848
  }
6849
- if ((u || m) && !K && (Et(T) || a && Array.isArray(T))) {
6850
- const j = Dr(u), I = Dr(m), O = !Ke(j.value) && T.length > +j.value, ne = !Ke(I.value) && T.length < +I.value;
6849
+ if ((u || p) && !K && (Et(T) || a && Array.isArray(T))) {
6850
+ const j = Dr(u), I = Dr(p), O = !Ke(j.value) && T.length > +j.value, ne = !Ke(I.value) && T.length < +I.value;
6851
6851
  if ((O || ne) && (fe(O, j.message, I.message), !n))
6852
- return F(U[w].message), U;
6852
+ return N(U[w].message), U;
6853
6853
  }
6854
6854
  if (k && !K && Et(T)) {
6855
6855
  const { value: j, message: I } = Dr(k);
@@ -6859,35 +6859,35 @@ var Dr = (t) => Ee(t) && !Cs(t) ? t : {
6859
6859
  ref: i,
6860
6860
  ...te(Lt.pattern, I)
6861
6861
  }, !n))
6862
- return F(I), U;
6862
+ return N(I), U;
6863
6863
  }
6864
6864
  if (E) {
6865
6865
  if (mt(E)) {
6866
- const j = await E(T, r), I = Ai(j, N);
6866
+ const j = await E(T, r), I = Ai(j, F);
6867
6867
  if (I && (U[w] = {
6868
6868
  ...I,
6869
6869
  ...te(Lt.validate, I.message)
6870
6870
  }, !n))
6871
- return F(I.message), U;
6871
+ return N(I.message), U;
6872
6872
  } else if (Ee(E)) {
6873
6873
  let j = {};
6874
6874
  for (const I in E) {
6875
6875
  if (!Qe(j) && !n)
6876
6876
  break;
6877
- const O = Ai(await E[I](T, r), N, I);
6877
+ const O = Ai(await E[I](T, r), F, I);
6878
6878
  O && (j = {
6879
6879
  ...O,
6880
6880
  ...te(I, O.message)
6881
- }, F(O.message), n && (U[w] = j));
6881
+ }, N(O.message), n && (U[w] = j));
6882
6882
  }
6883
6883
  if (!Qe(j) && (U[w] = {
6884
- ref: N,
6884
+ ref: F,
6885
6885
  ...j
6886
6886
  }, !n))
6887
6887
  return U;
6888
6888
  }
6889
6889
  }
6890
- return F(!0), U;
6890
+ return N(!0), U;
6891
6891
  };
6892
6892
  const Yf = {
6893
6893
  mode: pt.onSubmit,
@@ -6926,7 +6926,7 @@ function Jf(t = {}) {
6926
6926
  array: /* @__PURE__ */ new Set(),
6927
6927
  watch: /* @__PURE__ */ new Set()
6928
6928
  }, c, u = 0;
6929
- const m = {
6929
+ const p = {
6930
6930
  isDirty: !1,
6931
6931
  dirtyFields: !1,
6932
6932
  validatingFields: !1,
@@ -6936,7 +6936,7 @@ function Jf(t = {}) {
6936
6936
  errors: !1
6937
6937
  };
6938
6938
  let h = {
6939
- ...m
6939
+ ...p
6940
6940
  };
6941
6941
  const _ = {
6942
6942
  array: bi(),
@@ -6944,34 +6944,34 @@ function Jf(t = {}) {
6944
6944
  }, k = ki(e.mode), E = ki(e.reValidateMode), w = e.criteriaMode === pt.all, C = (d) => (b) => {
6945
6945
  clearTimeout(u), u = setTimeout(d, b);
6946
6946
  }, R = async (d) => {
6947
- if (!e.disabled && (m.isValid || h.isValid || d)) {
6947
+ if (!e.disabled && (p.isValid || h.isValid || d)) {
6948
6948
  const b = e.resolver ? Qe((await K()).errors) : await fe(n, !0);
6949
6949
  b !== r.isValid && _.state.next({
6950
6950
  isValid: b
6951
6951
  });
6952
6952
  }
6953
6953
  }, T = (d, b) => {
6954
- !e.disabled && (m.isValidating || m.validatingFields || h.isValidating || h.validatingFields) && ((d || Array.from(o.mount)).forEach((S) => {
6954
+ !e.disabled && (p.isValidating || p.validatingFields || h.isValidating || h.validatingFields) && ((d || Array.from(o.mount)).forEach((S) => {
6955
6955
  S && (b ? me(r.validatingFields, S, b) : Me(r.validatingFields, S));
6956
6956
  }), _.state.next({
6957
6957
  validatingFields: r.validatingFields,
6958
6958
  isValidating: !Qe(r.validatingFields)
6959
6959
  }));
6960
- }, N = (d, b = [], S, p, y = !0, v = !0) => {
6961
- if (p && S && !e.disabled) {
6960
+ }, F = (d, b = [], S, m, y = !0, v = !0) => {
6961
+ if (m && S && !e.disabled) {
6962
6962
  if (i.action = !0, v && Array.isArray(V(n, d))) {
6963
- const x = S(V(n, d), p.argA, p.argB);
6963
+ const x = S(V(n, d), m.argA, m.argB);
6964
6964
  y && me(n, d, x);
6965
6965
  }
6966
6966
  if (v && Array.isArray(V(r.errors, d))) {
6967
- const x = S(V(r.errors, d), p.argA, p.argB);
6967
+ const x = S(V(r.errors, d), m.argA, m.argB);
6968
6968
  y && me(r.errors, d, x), Kf(r.errors, d);
6969
6969
  }
6970
- if ((m.touchedFields || h.touchedFields) && v && Array.isArray(V(r.touchedFields, d))) {
6971
- const x = S(V(r.touchedFields, d), p.argA, p.argB);
6970
+ if ((p.touchedFields || h.touchedFields) && v && Array.isArray(V(r.touchedFields, d))) {
6971
+ const x = S(V(r.touchedFields, d), m.argA, m.argB);
6972
6972
  y && me(r.touchedFields, d, x);
6973
6973
  }
6974
- (m.dirtyFields || h.dirtyFields) && (r.dirtyFields = yn(s, a)), _.state.next({
6974
+ (p.dirtyFields || h.dirtyFields) && (r.dirtyFields = yn(s, a)), _.state.next({
6975
6975
  name: d,
6976
6976
  isDirty: I(d, b),
6977
6977
  dirtyFields: r.dirtyFields,
@@ -6980,7 +6980,7 @@ function Jf(t = {}) {
6980
6980
  });
6981
6981
  } else
6982
6982
  me(a, d, b);
6983
- }, F = (d, b) => {
6983
+ }, N = (d, b) => {
6984
6984
  me(r.errors, d, b), _.state.next({
6985
6985
  errors: r.errors
6986
6986
  });
@@ -6989,35 +6989,35 @@ function Jf(t = {}) {
6989
6989
  errors: r.errors,
6990
6990
  isValid: !1
6991
6991
  });
6992
- }, Q = (d, b, S, p) => {
6992
+ }, Q = (d, b, S, m) => {
6993
6993
  const y = V(n, d);
6994
6994
  if (y) {
6995
6995
  const v = V(a, d, Te(S) ? V(s, d) : S);
6996
- Te(v) || p && p.defaultChecked || b ? me(a, d, b ? v : Si(y._f)) : G(d, v), i.mount && R();
6996
+ Te(v) || m && m.defaultChecked || b ? me(a, d, b ? v : Si(y._f)) : G(d, v), i.mount && R();
6997
6997
  }
6998
- }, pe = (d, b, S, p, y) => {
6998
+ }, pe = (d, b, S, m, y) => {
6999
6999
  let v = !1, x = !1;
7000
7000
  const P = {
7001
7001
  name: d
7002
7002
  };
7003
7003
  if (!e.disabled) {
7004
- if (!S || p) {
7005
- (m.isDirty || h.isDirty) && (x = r.isDirty, r.isDirty = P.isDirty = I(), v = x !== P.isDirty);
7004
+ if (!S || m) {
7005
+ (p.isDirty || h.isDirty) && (x = r.isDirty, r.isDirty = P.isDirty = I(), v = x !== P.isDirty);
7006
7006
  const M = Yt(V(s, d), b);
7007
- x = !!V(r.dirtyFields, d), M ? Me(r.dirtyFields, d) : me(r.dirtyFields, d, !0), P.dirtyFields = r.dirtyFields, v = v || (m.dirtyFields || h.dirtyFields) && x !== !M;
7007
+ x = !!V(r.dirtyFields, d), M ? Me(r.dirtyFields, d) : me(r.dirtyFields, d, !0), P.dirtyFields = r.dirtyFields, v = v || (p.dirtyFields || h.dirtyFields) && x !== !M;
7008
7008
  }
7009
7009
  if (S) {
7010
7010
  const M = V(r.touchedFields, d);
7011
- M || (me(r.touchedFields, d, S), P.touchedFields = r.touchedFields, v = v || (m.touchedFields || h.touchedFields) && M !== S);
7011
+ M || (me(r.touchedFields, d, S), P.touchedFields = r.touchedFields, v = v || (p.touchedFields || h.touchedFields) && M !== S);
7012
7012
  }
7013
7013
  v && y && _.state.next(P);
7014
7014
  }
7015
7015
  return v ? P : {};
7016
- }, ee = (d, b, S, p) => {
7017
- const y = V(r.errors, d), v = (m.isValid || h.isValid) && st(b) && r.isValid !== b;
7018
- if (e.delayError && S ? (c = C(() => F(d, S)), c(e.delayError)) : (clearTimeout(u), c = null, S ? me(r.errors, d, S) : Me(r.errors, d)), (S ? !Yt(y, S) : y) || !Qe(p) || v) {
7016
+ }, ee = (d, b, S, m) => {
7017
+ const y = V(r.errors, d), v = (p.isValid || h.isValid) && st(b) && r.isValid !== b;
7018
+ if (e.delayError && S ? (c = C(() => N(d, S)), c(e.delayError)) : (clearTimeout(u), c = null, S ? me(r.errors, d, S) : Me(r.errors, d)), (S ? !Yt(y, S) : y) || !Qe(m) || v) {
7019
7019
  const x = {
7020
- ...p,
7020
+ ...m,
7021
7021
  ...v && st(b) ? { isValid: b } : {},
7022
7022
  errors: r.errors,
7023
7023
  name: d
@@ -7035,8 +7035,8 @@ function Jf(t = {}) {
7035
7035
  const { errors: b } = await K(d);
7036
7036
  if (d)
7037
7037
  for (const S of d) {
7038
- const p = V(b, S);
7039
- p ? me(r.errors, S, p) : Me(r.errors, S);
7038
+ const m = V(b, S);
7039
+ m ? me(r.errors, S, m) : Me(r.errors, S);
7040
7040
  }
7041
7041
  else
7042
7042
  r.errors = b;
@@ -7044,15 +7044,15 @@ function Jf(t = {}) {
7044
7044
  }, fe = async (d, b, S = {
7045
7045
  valid: !0
7046
7046
  }) => {
7047
- for (const p in d) {
7048
- const y = d[p];
7047
+ for (const m in d) {
7048
+ const y = d[m];
7049
7049
  if (y) {
7050
7050
  const { _f: v, ...x } = y;
7051
7051
  if (v) {
7052
7052
  const P = o.array.has(v.name), M = y._f && Bf(y._f);
7053
- M && m.validatingFields && T([p], !0);
7053
+ M && p.validatingFields && T([m], !0);
7054
7054
  const q = await Oi(y, o.disabled, a, w, e.shouldUseNativeValidation && !b, P);
7055
- if (M && m.validatingFields && T([p]), q[v.name] && (S.valid = !1, b))
7055
+ if (M && p.validatingFields && T([m]), q[v.name] && (S.valid = !1, b))
7056
7056
  break;
7057
7057
  !b && (V(q, v.name) ? P ? Hf(r.errors, q, v.name) : me(r.errors, v.name, q[v.name]) : Me(r.errors, v.name));
7058
7058
  }
@@ -7069,10 +7069,10 @@ function Jf(t = {}) {
7069
7069
  }, I = (d, b) => !e.disabled && (d && b && me(a, d, b), !Yt(Ye(), s)), O = (d, b, S) => No(d, o, {
7070
7070
  ...i.mount ? a : Te(b) ? s : Et(d) ? { [d]: b } : b
7071
7071
  }, S, b), ne = (d) => Ds(V(i.mount ? a : s, d, e.shouldUnregister ? V(s, d, []) : [])), G = (d, b, S = {}) => {
7072
- const p = V(n, d);
7072
+ const m = V(n, d);
7073
7073
  let y = b;
7074
- if (p) {
7075
- const v = p._f;
7074
+ if (m) {
7075
+ const v = m._f;
7076
7076
  v && (!v.disabled && me(a, d, Uo(b, v)), y = Ss(v.ref) && Ke(b) ? "" : b, Do(v.ref) ? [...v.ref.options].forEach((x) => x.selected = y.includes(x.value)) : v.refs ? Wn(v.ref) ? v.refs.length > 1 ? v.refs.forEach((x) => (!x.defaultChecked || !x.disabled) && (x.checked = Array.isArray(y) ? !!y.find((P) => P === x.value) : y === x.value)) : v.refs[0] && (v.refs[0].checked = !!y) : v.refs.forEach((x) => x.checked = x.value === y) : za(v.ref) ? v.ref.value = "" : (v.ref.value = y, v.ref.type || _.state.next({
7077
7077
  name: d,
7078
7078
  values: ze(a)
@@ -7080,29 +7080,29 @@ function Jf(t = {}) {
7080
7080
  }
7081
7081
  (S.shouldDirty || S.shouldTouch) && pe(d, y, S.shouldTouch, S.shouldDirty, !0), S.shouldValidate && de(d);
7082
7082
  }, Se = (d, b, S) => {
7083
- for (const p in b) {
7084
- const y = b[p], v = `${d}.${p}`, x = V(n, v);
7083
+ for (const m in b) {
7084
+ const y = b[m], v = `${d}.${m}`, x = V(n, v);
7085
7085
  (o.array.has(d) || Ee(y) || x && !x._f) && !vr(y) ? Se(v, y, S) : G(v, y, S);
7086
7086
  }
7087
7087
  }, ce = (d, b, S = {}) => {
7088
- const p = V(n, d), y = o.array.has(d), v = ze(b);
7088
+ const m = V(n, d), y = o.array.has(d), v = ze(b);
7089
7089
  me(a, d, v), y ? (_.array.next({
7090
7090
  name: d,
7091
7091
  values: ze(a)
7092
- }), (m.isDirty || m.dirtyFields || h.isDirty || h.dirtyFields) && S.shouldDirty && _.state.next({
7092
+ }), (p.isDirty || p.dirtyFields || h.isDirty || h.dirtyFields) && S.shouldDirty && _.state.next({
7093
7093
  name: d,
7094
7094
  dirtyFields: yn(s, a),
7095
7095
  isDirty: I(d, v)
7096
- })) : p && !p._f && !Ke(v) ? Se(d, v, S) : G(d, v, S), Ti(d, o) && _.state.next({ ...r }), _.state.next({
7096
+ })) : m && !m._f && !Ke(v) ? Se(d, v, S) : G(d, v, S), Ti(d, o) && _.state.next({ ...r }), _.state.next({
7097
7097
  name: i.mount ? d : void 0,
7098
7098
  values: ze(a)
7099
7099
  });
7100
7100
  }, ke = async (d) => {
7101
7101
  i.mount = !0;
7102
7102
  const b = d.target;
7103
- let S = b.name, p = !0;
7103
+ let S = b.name, m = !0;
7104
7104
  const y = V(n, S), v = (x) => {
7105
- p = Number.isNaN(x) || vr(x) && isNaN(x.getTime()) || Yt(x, V(a, S, x));
7105
+ m = Number.isNaN(x) || vr(x) && isNaN(x.getTime()) || Yt(x, V(a, S, x));
7106
7106
  };
7107
7107
  if (y) {
7108
7108
  let x, P;
@@ -7114,35 +7114,35 @@ function Jf(t = {}) {
7114
7114
  type: d.type,
7115
7115
  values: ze(a)
7116
7116
  }), be)
7117
- return (m.isValid || h.isValid) && (e.mode === "onBlur" ? q && R() : q || R()), mr && _.state.next({ name: S, ...ge ? {} : Ae });
7117
+ return (p.isValid || h.isValid) && (e.mode === "onBlur" ? q && R() : q || R()), mr && _.state.next({ name: S, ...ge ? {} : Ae });
7118
7118
  if (!q && ge && _.state.next({ ...r }), e.resolver) {
7119
7119
  const { errors: Qn } = await K([S]);
7120
- if (v(M), p) {
7120
+ if (v(M), m) {
7121
7121
  const pn = Ei(r.errors, n, S), Kn = Ei(Qn, n, pn.name || S);
7122
7122
  x = Kn.error, S = Kn.name, P = Qe(Qn);
7123
7123
  }
7124
7124
  } else
7125
- T([S], !0), x = (await Oi(y, o.disabled, a, w, e.shouldUseNativeValidation))[S], T([S]), v(M), p && (x ? P = !1 : (m.isValid || h.isValid) && (P = await fe(n, !0)));
7126
- p && (y._f.deps && de(y._f.deps), ee(S, P, x, Ae));
7125
+ T([S], !0), x = (await Oi(y, o.disabled, a, w, e.shouldUseNativeValidation))[S], T([S]), v(M), m && (x ? P = !1 : (p.isValid || h.isValid) && (P = await fe(n, !0)));
7126
+ m && (y._f.deps && de(y._f.deps), ee(S, P, x, Ae));
7127
7127
  }
7128
7128
  }, Ve = (d, b) => {
7129
7129
  if (V(r.errors, b) && d.focus)
7130
7130
  return d.focus(), 1;
7131
7131
  }, de = async (d, b = {}) => {
7132
- let S, p;
7132
+ let S, m;
7133
7133
  const y = xn(d);
7134
7134
  if (e.resolver) {
7135
7135
  const v = await te(Te(d) ? d : y);
7136
- S = Qe(v), p = d ? !y.some((x) => V(v, x)) : S;
7137
- } else d ? (p = (await Promise.all(y.map(async (v) => {
7136
+ S = Qe(v), m = d ? !y.some((x) => V(v, x)) : S;
7137
+ } else d ? (m = (await Promise.all(y.map(async (v) => {
7138
7138
  const x = V(n, v);
7139
7139
  return await fe(x && x._f ? { [v]: x } : x);
7140
- }))).every(Boolean), !(!p && !r.isValid) && R()) : p = S = await fe(n);
7140
+ }))).every(Boolean), !(!m && !r.isValid) && R()) : m = S = await fe(n);
7141
7141
  return _.state.next({
7142
- ...!Et(d) || (m.isValid || h.isValid) && S !== r.isValid ? {} : { name: d },
7142
+ ...!Et(d) || (p.isValid || h.isValid) && S !== r.isValid ? {} : { name: d },
7143
7143
  ...e.resolver || !d ? { isValid: S } : {},
7144
7144
  errors: r.errors
7145
- }), b.shouldFocus && !p && wn(n, Ve, d ? y : o.mount), p;
7145
+ }), b.shouldFocus && !m && wn(n, Ve, d ? y : o.mount), m;
7146
7146
  }, Ye = (d) => {
7147
7147
  const b = {
7148
7148
  ...i.mount ? a : s
@@ -7159,21 +7159,21 @@ function Jf(t = {}) {
7159
7159
  errors: d ? r.errors : {}
7160
7160
  });
7161
7161
  }, L = (d, b, S) => {
7162
- const p = (V(n, d, { _f: {} })._f || {}).ref, y = V(r.errors, d) || {}, { ref: v, message: x, type: P, ...M } = y;
7162
+ const m = (V(n, d, { _f: {} })._f || {}).ref, y = V(r.errors, d) || {}, { ref: v, message: x, type: P, ...M } = y;
7163
7163
  me(r.errors, d, {
7164
7164
  ...M,
7165
7165
  ...b,
7166
- ref: p
7166
+ ref: m
7167
7167
  }), _.state.next({
7168
7168
  name: d,
7169
7169
  errors: r.errors,
7170
7170
  isValid: !1
7171
- }), S && S.shouldFocus && p && p.focus && p.focus();
7171
+ }), S && S.shouldFocus && m && m.focus && m.focus();
7172
7172
  }, H = (d, b) => mt(d) ? _.state.subscribe({
7173
7173
  next: (S) => d(O(void 0, b), S)
7174
7174
  }) : O(d, b, !0), he = (d) => _.state.subscribe({
7175
7175
  next: (b) => {
7176
- Gf(d.name, b.name, d.exact) && Wf(b, d.formState || m, pr, d.reRenderRoot) && d.callback({
7176
+ Gf(d.name, b.name, d.exact) && Wf(b, d.formState || p, pr, d.reRenderRoot) && d.callback({
7177
7177
  values: { ...a },
7178
7178
  ...r,
7179
7179
  ...b
@@ -7198,7 +7198,7 @@ function Jf(t = {}) {
7198
7198
  (st(d) && i.mount || d || o.disabled.has(b)) && (d ? o.disabled.add(b) : o.disabled.delete(b));
7199
7199
  }, rt = (d, b = {}) => {
7200
7200
  let S = V(n, d);
7201
- const p = st(b.disabled) || st(e.disabled);
7201
+ const m = st(b.disabled) || st(e.disabled);
7202
7202
  return me(n, d, {
7203
7203
  ...S || {},
7204
7204
  _f: {
@@ -7211,7 +7211,7 @@ function Jf(t = {}) {
7211
7211
  disabled: st(b.disabled) ? b.disabled : e.disabled,
7212
7212
  name: d
7213
7213
  }) : Q(d, !0, b.value), {
7214
- ...p ? { disabled: b.disabled || e.disabled } : {},
7214
+ ...m ? { disabled: b.disabled || e.disabled } : {},
7215
7215
  ...e.progressive ? {
7216
7216
  required: !!b.required,
7217
7217
  min: gn(b.min),
@@ -7248,13 +7248,13 @@ function Jf(t = {}) {
7248
7248
  };
7249
7249
  }, De = () => e.shouldFocusError && wn(n, Ve, o.mount), Pe = (d) => {
7250
7250
  st(d) && (_.state.next({ disabled: d }), wn(n, (b, S) => {
7251
- const p = V(n, S);
7252
- p && (b.disabled = p._f.disabled || d, Array.isArray(p._f.refs) && p._f.refs.forEach((y) => {
7253
- y.disabled = p._f.disabled || d;
7251
+ const m = V(n, S);
7252
+ m && (b.disabled = m._f.disabled || d, Array.isArray(m._f.refs) && m._f.refs.forEach((y) => {
7253
+ y.disabled = m._f.disabled || d;
7254
7254
  }));
7255
7255
  }, 0, !1));
7256
7256
  }, nt = (d, b) => async (S) => {
7257
- let p;
7257
+ let m;
7258
7258
  S && (S.preventDefault && S.preventDefault(), S.persist && S.persist());
7259
7259
  let y = ze(a);
7260
7260
  if (_.state.next({
@@ -7274,22 +7274,22 @@ function Jf(t = {}) {
7274
7274
  try {
7275
7275
  await d(y, S);
7276
7276
  } catch (v) {
7277
- p = v;
7277
+ m = v;
7278
7278
  }
7279
7279
  } else
7280
7280
  b && await b({ ...r.errors }, S), De(), setTimeout(De);
7281
7281
  if (_.state.next({
7282
7282
  isSubmitted: !0,
7283
7283
  isSubmitting: !1,
7284
- isSubmitSuccessful: Qe(r.errors) && !p,
7284
+ isSubmitSuccessful: Qe(r.errors) && !m,
7285
7285
  submitCount: r.submitCount + 1,
7286
7286
  errors: r.errors
7287
- }), p)
7288
- throw p;
7287
+ }), m)
7288
+ throw m;
7289
7289
  }, hr = (d, b = {}) => {
7290
- V(n, d) && (Te(b.defaultValue) ? ce(d, ze(V(s, d))) : (ce(d, b.defaultValue), me(s, d, ze(b.defaultValue))), b.keepTouched || Me(r.touchedFields, d), b.keepDirty || (Me(r.dirtyFields, d), r.isDirty = b.defaultValue ? I(d, ze(V(s, d))) : I()), b.keepError || (Me(r.errors, d), m.isValid && R()), _.state.next({ ...r }));
7290
+ V(n, d) && (Te(b.defaultValue) ? ce(d, ze(V(s, d))) : (ce(d, b.defaultValue), me(s, d, ze(b.defaultValue))), b.keepTouched || Me(r.touchedFields, d), b.keepDirty || (Me(r.dirtyFields, d), r.isDirty = b.defaultValue ? I(d, ze(V(s, d))) : I()), b.keepError || (Me(r.errors, d), p.isValid && R()), _.state.next({ ...r }));
7291
7291
  }, wt = (d, b = {}) => {
7292
- const S = d ? ze(d) : s, p = ze(S), y = Qe(d), v = y ? s : p;
7292
+ const S = d ? ze(d) : s, m = ze(S), y = Qe(d), v = y ? s : m;
7293
7293
  if (b.keepDefaultValues || (s = S), !b.keepValues) {
7294
7294
  if (b.keepDirtyValues) {
7295
7295
  const x = /* @__PURE__ */ new Set([
@@ -7330,7 +7330,7 @@ function Jf(t = {}) {
7330
7330
  watch: /* @__PURE__ */ new Set(),
7331
7331
  watchAll: !1,
7332
7332
  focus: ""
7333
- }, i.mount = !m.isValid || !!b.keepIsValid || !!b.keepDirtyValues, i.watch = !!e.shouldUnregister, _.state.next({
7333
+ }, i.mount = !p.isValid || !!b.keepIsValid || !!b.keepDirtyValues, i.watch = !!e.shouldUnregister, _.state.next({
7334
7334
  submitCount: b.keepSubmitCount ? r.submitCount : 0,
7335
7335
  isDirty: y ? !1 : b.keepDirty ? r.isDirty : !!(b.keepDefaultValues && !Yt(d, s)),
7336
7336
  isSubmitted: b.keepIsSubmitted ? r.isSubmitted : !1,
@@ -7341,9 +7341,9 @@ function Jf(t = {}) {
7341
7341
  isSubmitting: !1
7342
7342
  });
7343
7343
  }, Le = (d, b) => wt(mt(d) ? d(a) : d, b), Gt = (d, b = {}) => {
7344
- const S = V(n, d), p = S && S._f;
7345
- if (p) {
7346
- const y = p.refs ? p.refs[0] : p.ref;
7344
+ const S = V(n, d), m = S && S._f;
7345
+ if (m) {
7346
+ const y = m.refs ? m.refs[0] : m.ref;
7347
7347
  y.focus && (y.focus(), b.shouldSelect && mt(y.select) && y.select());
7348
7348
  }
7349
7349
  }, pr = (d) => {
@@ -7363,7 +7363,7 @@ function Jf(t = {}) {
7363
7363
  _getWatch: O,
7364
7364
  _getDirty: I,
7365
7365
  _setValid: R,
7366
- _setFieldArray: N,
7366
+ _setFieldArray: F,
7367
7367
  _setDisabledField: tt,
7368
7368
  _setErrors: U,
7369
7369
  _getFieldArray: ne,
@@ -7376,7 +7376,7 @@ function Jf(t = {}) {
7376
7376
  _removeUnmounted: j,
7377
7377
  _disableForm: Pe,
7378
7378
  _subjects: _,
7379
- _proxyFormState: m,
7379
+ _proxyFormState: p,
7380
7380
  get _fields() {
7381
7381
  return n;
7382
7382
  },
@@ -7837,8 +7837,8 @@ function se(t) {
7837
7837
  throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
7838
7838
  return e ? { errorMap: e, description: s } : { errorMap: (i, o) => {
7839
7839
  var c, u;
7840
- const { message: m } = t;
7841
- return i.code === "invalid_enum_value" ? { message: m ?? o.defaultError } : typeof o.data > "u" ? { message: (c = m ?? n) !== null && c !== void 0 ? c : o.defaultError } : i.code !== "invalid_type" ? { message: o.defaultError } : { message: (u = m ?? r) !== null && u !== void 0 ? u : o.defaultError };
7840
+ const { message: p } = t;
7841
+ return i.code === "invalid_enum_value" ? { message: p ?? o.defaultError } : typeof o.data > "u" ? { message: (c = p ?? n) !== null && c !== void 0 ? c : o.defaultError } : i.code !== "invalid_type" ? { message: o.defaultError } : { message: (u = p ?? r) !== null && u !== void 0 ? u : o.defaultError };
7842
7842
  }, description: s };
7843
7843
  }
7844
7844
  class ie {
@@ -9109,20 +9109,20 @@ class we extends ie {
9109
9109
  i.includes(u) || o.push(u);
9110
9110
  const c = [];
9111
9111
  for (const u of i) {
9112
- const m = a[u], h = s.data[u];
9112
+ const p = a[u], h = s.data[u];
9113
9113
  c.push({
9114
9114
  key: { status: "valid", value: u },
9115
- value: m._parse(new Rt(s, h, s.path, u)),
9115
+ value: p._parse(new Rt(s, h, s.path, u)),
9116
9116
  alwaysSet: u in s.data
9117
9117
  });
9118
9118
  }
9119
9119
  if (this._def.catchall instanceof Ut) {
9120
9120
  const u = this._def.unknownKeys;
9121
9121
  if (u === "passthrough")
9122
- for (const m of o)
9122
+ for (const p of o)
9123
9123
  c.push({
9124
- key: { status: "valid", value: m },
9125
- value: { status: "valid", value: s.data[m] }
9124
+ key: { status: "valid", value: p },
9125
+ value: { status: "valid", value: s.data[p] }
9126
9126
  });
9127
9127
  else if (u === "strict")
9128
9128
  o.length > 0 && (D(s, {
@@ -9132,26 +9132,26 @@ class we extends ie {
9132
9132
  else if (u !== "strip") throw new Error("Internal ZodObject error: invalid unknownKeys value.");
9133
9133
  } else {
9134
9134
  const u = this._def.catchall;
9135
- for (const m of o) {
9136
- const h = s.data[m];
9135
+ for (const p of o) {
9136
+ const h = s.data[p];
9137
9137
  c.push({
9138
- key: { status: "valid", value: m },
9138
+ key: { status: "valid", value: p },
9139
9139
  value: u._parse(
9140
- new Rt(s, h, s.path, m)
9140
+ new Rt(s, h, s.path, p)
9141
9141
  //, ctx.child(key), value, getParsedType(value)
9142
9142
  ),
9143
- alwaysSet: m in s.data
9143
+ alwaysSet: p in s.data
9144
9144
  });
9145
9145
  }
9146
9146
  }
9147
9147
  return s.common.async ? Promise.resolve().then(async () => {
9148
9148
  const u = [];
9149
- for (const m of c) {
9150
- const h = await m.key, _ = await m.value;
9149
+ for (const p of c) {
9150
+ const h = await p.key, _ = await p.value;
9151
9151
  u.push({
9152
9152
  key: h,
9153
9153
  value: _,
9154
- alwaysSet: m.alwaysSet
9154
+ alwaysSet: p.alwaysSet
9155
9155
  });
9156
9156
  }
9157
9157
  return u;
@@ -9417,14 +9417,14 @@ class Rn extends ie {
9417
9417
  issues: []
9418
9418
  },
9419
9419
  parent: null
9420
- }, m = c._parseSync({
9420
+ }, p = c._parseSync({
9421
9421
  data: r.data,
9422
9422
  path: r.path,
9423
9423
  parent: u
9424
9424
  });
9425
- if (m.status === "valid")
9426
- return m;
9427
- m.status === "dirty" && !a && (a = { result: m, ctx: u }), u.common.issues.length && i.push(u.common.issues);
9425
+ if (p.status === "valid")
9426
+ return p;
9427
+ p.status === "dirty" && !a && (a = { result: p, ctx: u }), u.common.issues.length && i.push(u.common.issues);
9428
9428
  }
9429
9429
  if (a)
9430
9430
  return r.common.issues.push(...a.ctx.common.issues), a.result;
@@ -9685,20 +9685,20 @@ class Is extends ie {
9685
9685
  const o = /* @__PURE__ */ new Map();
9686
9686
  return Promise.resolve().then(async () => {
9687
9687
  for (const c of i) {
9688
- const u = await c.key, m = await c.value;
9689
- if (u.status === "aborted" || m.status === "aborted")
9688
+ const u = await c.key, p = await c.value;
9689
+ if (u.status === "aborted" || p.status === "aborted")
9690
9690
  return X;
9691
- (u.status === "dirty" || m.status === "dirty") && r.dirty(), o.set(u.value, m.value);
9691
+ (u.status === "dirty" || p.status === "dirty") && r.dirty(), o.set(u.value, p.value);
9692
9692
  }
9693
9693
  return { status: r.value, value: o };
9694
9694
  });
9695
9695
  } else {
9696
9696
  const o = /* @__PURE__ */ new Map();
9697
9697
  for (const c of i) {
9698
- const u = c.key, m = c.value;
9699
- if (u.status === "aborted" || m.status === "aborted")
9698
+ const u = c.key, p = c.value;
9699
+ if (u.status === "aborted" || p.status === "aborted")
9700
9700
  return X;
9701
- (u.status === "dirty" || m.status === "dirty") && r.dirty(), o.set(u.value, m.value);
9701
+ (u.status === "dirty" || p.status === "dirty") && r.dirty(), o.set(u.value, p.value);
9702
9702
  }
9703
9703
  return { status: r.value, value: o };
9704
9704
  }
@@ -9738,10 +9738,10 @@ class Lr extends ie {
9738
9738
  const a = this._def.valueType;
9739
9739
  function i(c) {
9740
9740
  const u = /* @__PURE__ */ new Set();
9741
- for (const m of c) {
9742
- if (m.status === "aborted")
9741
+ for (const p of c) {
9742
+ if (p.status === "aborted")
9743
9743
  return X;
9744
- m.status === "dirty" && r.dirty(), u.add(m.value);
9744
+ p.status === "dirty" && r.dirty(), u.add(p.value);
9745
9745
  }
9746
9746
  return { status: r.value, value: u };
9747
9747
  }
@@ -9822,9 +9822,9 @@ class Br extends ie {
9822
9822
  if (this._def.returns instanceof ln) {
9823
9823
  const o = this;
9824
9824
  return He(async function(...c) {
9825
- const u = new it([]), m = await o._def.args.parseAsync(c, a).catch((k) => {
9825
+ const u = new it([]), p = await o._def.args.parseAsync(c, a).catch((k) => {
9826
9826
  throw u.addIssue(n(c, k)), u;
9827
- }), h = await Reflect.apply(i, this, m);
9827
+ }), h = await Reflect.apply(i, this, p);
9828
9828
  return await o._def.returns._def.type.parseAsync(h, a).catch((k) => {
9829
9829
  throw u.addIssue(s(h, k)), u;
9830
9830
  });
@@ -9835,9 +9835,9 @@ class Br extends ie {
9835
9835
  const u = o._def.args.safeParse(c, a);
9836
9836
  if (!u.success)
9837
9837
  throw new it([n(c, u.error)]);
9838
- const m = Reflect.apply(i, this, u.data), h = o._def.returns.safeParse(m, a);
9838
+ const p = Reflect.apply(i, this, u.data), h = o._def.returns.safeParse(p, a);
9839
9839
  if (!h.success)
9840
- throw new it([s(m, h.error)]);
9840
+ throw new it([s(p, h.error)]);
9841
9841
  return h.data;
9842
9842
  });
9843
9843
  }
@@ -10307,9 +10307,9 @@ function Ho(t, e = {}, r) {
10307
10307
  const o = t(n);
10308
10308
  if (o instanceof Promise)
10309
10309
  return o.then((c) => {
10310
- var u, m;
10310
+ var u, p;
10311
10311
  if (!c) {
10312
- const h = Ii(e, n), _ = (m = (u = h.fatal) !== null && u !== void 0 ? u : r) !== null && m !== void 0 ? m : !0;
10312
+ const h = Ii(e, n), _ = (p = (u = h.fatal) !== null && u !== void 0 ? u : r) !== null && p !== void 0 ? p : !0;
10313
10313
  s.addIssue({ code: "custom", ...h, fatal: _ });
10314
10314
  }
10315
10315
  });
@@ -10490,8 +10490,8 @@ var fp = function(t, e) {
10490
10490
  var o = n.unionErrors[0].errors[0];
10491
10491
  r[i] = { message: o.message, type: o.code };
10492
10492
  } else r[i] = { message: a, type: s };
10493
- if ("unionErrors" in n && n.unionErrors.forEach(function(m) {
10494
- return m.errors.forEach(function(h) {
10493
+ if ("unionErrors" in n && n.unionErrors.forEach(function(p) {
10494
+ return p.errors.forEach(function(h) {
10495
10495
  return t.push(h);
10496
10496
  });
10497
10497
  }), e) {
@@ -10553,7 +10553,7 @@ const pp = async (t, e) => (await cn.rloV2.search3(t, e)).data.response || [], m
10553
10553
  enabled: !t.disabledFetch,
10554
10554
  /* Cases can not have data from other contextuals used before */
10555
10555
  gcTime: 0
10556
- }), m = gp((_ = u.data) == null ? void 0 : _.content, n), h = () => {
10556
+ }), p = gp((_ = u.data) == null ? void 0 : _.content, n), h = () => {
10557
10557
  var k;
10558
10558
  !((k = u.data) != null && k.last) && !u.isLoading && o((E) => ({
10559
10559
  ...E,
@@ -10561,7 +10561,7 @@ const pp = async (t, e) => (await cn.rloV2.search3(t, e)).data.response || [], m
10561
10561
  }));
10562
10562
  };
10563
10563
  return {
10564
- options: m,
10564
+ options: p,
10565
10565
  isLoading: u.isLoading,
10566
10566
  onGeneralSearchTextChange: s,
10567
10567
  onLastOptionInView: h
@@ -10683,7 +10683,7 @@ const xp = Ue(xe)`
10683
10683
  selectedRoad: o,
10684
10684
  selectedNet: c,
10685
10685
  roads: u,
10686
- mileageStart: m,
10686
+ mileageStart: p,
10687
10687
  chainageValue: h,
10688
10688
  mileageValue: _,
10689
10689
  chainageLength: k,
@@ -10692,7 +10692,7 @@ const xp = Ue(xe)`
10692
10692
  mileageEnd: C
10693
10693
  } = hn(), [R, T] = J(
10694
10694
  h.toString()
10695
- ), [N, F] = J(
10695
+ ), [F, N] = J(
10696
10696
  _.toString()
10697
10697
  ), [U, Q] = J(!0), [pe, ee] = J(!0), K = u.map((L) => ({
10698
10698
  value: L.id,
@@ -10710,14 +10710,14 @@ const xp = Ue(xe)`
10710
10710
  const {
10711
10711
  data: { response: H }
10712
10712
  } = await Sn.queryRoadNets(L.id), { nets: he, start_mileage: qe, end_mileage: Ie } = H;
10713
- w(he), t(qe), e(Ie), r(he[0]), n(he[0].length), s(0), T("0"), a(qe), F(qe.toString()), oe.mapEventEmitter.emit("drawGemRoad", {
10713
+ w(he), t(qe), e(Ie), r(he[0]), n(he[0].length), s(0), T("0"), a(qe), N(qe.toString()), oe.mapEventEmitter.emit("drawGemRoad", {
10714
10714
  netId: he[0].id,
10715
10715
  roadId: L.id,
10716
10716
  chainage: 0
10717
10717
  });
10718
10718
  }
10719
10719
  }, O = async (L) => {
10720
- o && (r(L), s(0), T("0"), n(L.length), a(L.from_mileage), F(L.from_mileage.toString()), oe.mapEventEmitter.emit("drawGemRoad", {
10720
+ o && (r(L), s(0), T("0"), n(L.length), a(L.from_mileage), N(L.from_mileage.toString()), oe.mapEventEmitter.emit("drawGemRoad", {
10721
10721
  netId: L.id,
10722
10722
  roadId: o.id,
10723
10723
  chainage: 0
@@ -10731,7 +10731,7 @@ const xp = Ue(xe)`
10731
10731
  if (c && o && ce(c, H)) {
10732
10732
  s(H), T(H.toString());
10733
10733
  const he = c.from_mileage + H;
10734
- a(he), F(he.toString()), oe.mapEventEmitter.emit("movePointIcon", H);
10734
+ a(he), N(he.toString()), oe.mapEventEmitter.emit("movePointIcon", H);
10735
10735
  }
10736
10736
  }, ce = (L, H) => {
10737
10737
  const he = H >= 0 && H <= L.length;
@@ -10744,7 +10744,7 @@ const xp = Ue(xe)`
10744
10744
  );
10745
10745
  if (H) {
10746
10746
  const he = L - H.from_mileage;
10747
- r(H), n(H.length), a(L), s(he), F(L.toString()), T(he.toString()), oe.mapEventEmitter.emit("drawGemRoad", {
10747
+ r(H), n(H.length), a(L), s(he), N(L.toString()), T(he.toString()), oe.mapEventEmitter.emit("drawGemRoad", {
10748
10748
  netId: H.id,
10749
10749
  roadId: o.id,
10750
10750
  chainage: he
@@ -10752,7 +10752,7 @@ const xp = Ue(xe)`
10752
10752
  }
10753
10753
  } else {
10754
10754
  const H = L - c.from_mileage;
10755
- a(L), s(H), F(L.toString()), T(H.toString()), oe.mapEventEmitter.emit("movePointIcon", H);
10755
+ a(L), s(H), N(L.toString()), T(H.toString()), oe.mapEventEmitter.emit("movePointIcon", H);
10756
10756
  }
10757
10757
  }, Ve = (L) => {
10758
10758
  if (!o) return !1;
@@ -10768,13 +10768,13 @@ const xp = Ue(xe)`
10768
10768
  L >= o.start_mileage && ke(L);
10769
10769
  }, ut = (L) => {
10770
10770
  const H = L ? Number(L) : 0;
10771
- Ve(H) && (F(H.toString()), ke(H));
10771
+ Ve(H) && (N(H.toString()), ke(H));
10772
10772
  }, xt = (L) => {
10773
10773
  const H = L ? Number(L) : 0;
10774
10774
  T(H.toString()), Se(H.toString());
10775
10775
  };
10776
10776
  return Re(() => {
10777
- F(_.toString());
10777
+ N(_.toString());
10778
10778
  }, [_]), /* @__PURE__ */ re(at, { children: [
10779
10779
  /* @__PURE__ */ g(
10780
10780
  ms,
@@ -10837,11 +10837,11 @@ const xp = Ue(xe)`
10837
10837
  /* @__PURE__ */ g(
10838
10838
  ps,
10839
10839
  {
10840
- value: N,
10840
+ value: F,
10841
10841
  label: "Kilometraż",
10842
10842
  sx: { width: "100px" },
10843
10843
  type: "number",
10844
- onChange: (L) => F(L.target.value),
10844
+ onChange: (L) => N(L.target.value),
10845
10845
  onBlur: (L) => ut(L.target.value),
10846
10846
  errorMessage: pe ? "" : "Błędna wartość"
10847
10847
  }
@@ -10849,7 +10849,7 @@ const xp = Ue(xe)`
10849
10849
  /* @__PURE__ */ g(va, { className: "pointer", color: "primary", onClick: de }),
10850
10850
  /* @__PURE__ */ re(_e, { fontSize: 12, children: [
10851
10851
  "[",
10852
- m,
10852
+ p,
10853
10853
  " - ",
10854
10854
  C,
10855
10855
  "]"
@@ -10884,8 +10884,8 @@ const xp = Ue(xe)`
10884
10884
  return;
10885
10885
  i(u[0]);
10886
10886
  const {
10887
- data: { response: m }
10888
- } = await Sn.queryRoadNets((w = u[0]) == null ? void 0 : w.id), { nets: h, start_mileage: _, end_mileage: k } = m;
10887
+ data: { response: p }
10888
+ } = await Sn.queryRoadNets((w = u[0]) == null ? void 0 : w.id), { nets: h, start_mileage: _, end_mileage: k } = p;
10889
10889
  o(h), i(
10890
10890
  (R) => ({ ...R, start_mileage: _, end_mileage: k })
10891
10891
  ), t(_), e(k), r(h[0]), n(h[0].length), s(0), a(_);
@@ -10919,9 +10919,9 @@ const xp = Ue(xe)`
10919
10919
  setNets: o
10920
10920
  } = hn();
10921
10921
  return sn(
10922
- async (u, m) => {
10923
- if (m.length !== 0) {
10924
- const { net_id: h, road_id: _, position: k } = u, E = m.find((Q) => Q.id == _);
10922
+ async (u, p) => {
10923
+ if (p.length !== 0) {
10924
+ const { net_id: h, road_id: _, position: k } = u, E = p.find((Q) => Q.id == _);
10925
10925
  i(E);
10926
10926
  const {
10927
10927
  data: { response: w }
@@ -10931,11 +10931,11 @@ const xp = Ue(xe)`
10931
10931
  start_mileage: R,
10932
10932
  end_mileage: T
10933
10933
  }));
10934
- const N = C.find((Q) => Q.id == h);
10935
- r(N);
10936
- const { from_mileage: F, length: U } = N;
10934
+ const F = C.find((Q) => Q.id == h);
10935
+ r(F);
10936
+ const { from_mileage: N, length: U } = F;
10937
10937
  t(R), e(T), n(U), s(k), a(
10938
- Number(R) + Number(F) + k
10938
+ Number(R) + Number(N) + k
10939
10939
  );
10940
10940
  }
10941
10941
  },
@@ -11183,7 +11183,7 @@ const Pp = Ta`
11183
11183
  snapConfig: i
11184
11184
  } = un(), [o, c] = J(
11185
11185
  s.current
11186
- ), [u, m] = J(
11186
+ ), [u, p] = J(
11187
11187
  r.current
11188
11188
  ), [h, _] = J(
11189
11189
  n.current
@@ -11191,11 +11191,11 @@ const Pp = Ta`
11191
11191
  a.current
11192
11192
  ), [R, T] = J(
11193
11193
  t.current
11194
- ), [N, F] = J(
11194
+ ), [F, N] = J(
11195
11195
  i.current
11196
11196
  );
11197
11197
  Re(() => (oe.snapEventEmitter.on("map:snap:deactivate", () => {
11198
- c(!1), m(!1), _(!1), E(!1), T(!1);
11198
+ c(!1), p(!1), _(!1), E(!1), T(!1);
11199
11199
  }), oe.snapEventEmitter.on("map:snap:angle:disable", () => {
11200
11200
  C(!0);
11201
11201
  }), oe.snapEventEmitter.on("map:snap:angle:enable", () => {
@@ -11203,8 +11203,8 @@ const Pp = Ta`
11203
11203
  }), () => {
11204
11204
  oe.snapEventEmitter.off("map:snap:angle:disable"), oe.snapEventEmitter.off("map:snap:angle:enable");
11205
11205
  }), []), Re(() => {
11206
- oe.snapEventEmitter.emit("map:snap:update:config", N);
11207
- }, [N]), Re(() => {
11206
+ oe.snapEventEmitter.emit("map:snap:update:config", F);
11207
+ }, [F]), Re(() => {
11208
11208
  oe.snapEventEmitter.emit("map:snap:middle:toggle", {
11209
11209
  snapToMiddleOfLine: u
11210
11210
  });
@@ -11220,17 +11220,17 @@ const Pp = Ta`
11220
11220
  const U = () => {
11221
11221
  oe.snapEventEmitter.emit("map:snap:toggle"), c(!o);
11222
11222
  }, Q = (j) => {
11223
- F({
11224
- ...N,
11225
- [j]: !N[j]
11223
+ N({
11224
+ ...F,
11225
+ [j]: !F[j]
11226
11226
  });
11227
11227
  }, pe = (j, I) => {
11228
- F({
11229
- ...N,
11228
+ N({
11229
+ ...F,
11230
11230
  [j]: I
11231
11231
  });
11232
11232
  }, ee = () => {
11233
- m(!u);
11233
+ p(!u);
11234
11234
  }, K = () => {
11235
11235
  _(!h);
11236
11236
  }, te = () => {
@@ -11255,7 +11255,7 @@ const Pp = Ta`
11255
11255
  Ft,
11256
11256
  {
11257
11257
  size: "medium",
11258
- color: gr(N.edge),
11258
+ color: gr(F.edge),
11259
11259
  onClick: () => Q("edge"),
11260
11260
  children: /* @__PURE__ */ g(ba, {})
11261
11261
  }
@@ -11264,7 +11264,7 @@ const Pp = Ta`
11264
11264
  Ft,
11265
11265
  {
11266
11266
  size: "medium",
11267
- color: gr(N.vertex),
11267
+ color: gr(F.vertex),
11268
11268
  onClick: () => Q("vertex"),
11269
11269
  children: /* @__PURE__ */ g(pf, {})
11270
11270
  }
@@ -11325,8 +11325,8 @@ const Pp = Ta`
11325
11325
  /* @__PURE__ */ g(
11326
11326
  zp,
11327
11327
  {
11328
- value: N.pixelTolerance,
11329
- defaultValue: N.pixelTolerance,
11328
+ value: F.pixelTolerance,
11329
+ defaultValue: F.pixelTolerance,
11330
11330
  onChange: (j, I) => pe("pixelTolerance", I),
11331
11331
  getAriaValueText: Ni,
11332
11332
  valueLabelFormat: Ni,
@@ -11342,20 +11342,22 @@ const Pp = Ta`
11342
11342
  sidebarConfig: s,
11343
11343
  initialSelectedFeatures: a,
11344
11344
  multiSelectEnabled: i,
11345
- initialDrawnGeometries: o
11345
+ initialDrawnGeometries: o,
11346
+ disableEditNonUserDrawnGeometries: c
11346
11347
  }) => {
11347
- const { isMeasurementHidden: c, angleValue: u, isAngleHidden: m } = Aa(), { mapLayers: h, isDrawing: _, isEditing: k, selectedGeometry: E } = Zn(), { distanceOverlayElement: w, angleOverlayElement: C, interactions: R } = un();
11348
+ const { isMeasurementHidden: u, angleValue: p, isAngleHidden: h } = Aa(), { mapLayers: _, isDrawing: k, isEditing: E, selectedGeometry: w } = Zn(), { distanceOverlayElement: C, angleOverlayElement: R, interactions: T } = un();
11348
11349
  Bl(
11349
11350
  t,
11350
- h,
11351
+ _,
11351
11352
  e,
11352
11353
  a,
11353
11354
  i,
11354
- o
11355
+ o,
11356
+ c
11355
11357
  );
11356
- const T = ql(
11357
- E == null ? void 0 : E.value,
11358
- h
11358
+ const F = ql(
11359
+ w == null ? void 0 : w.value,
11360
+ _
11359
11361
  );
11360
11362
  return /* @__PURE__ */ re(at, { children: [
11361
11363
  s.sidebarVisible && /* @__PURE__ */ g(Dp, { sidebarConfig: s }),
@@ -11371,33 +11373,33 @@ const Pp = Ta`
11371
11373
  /* @__PURE__ */ g(
11372
11374
  Kl,
11373
11375
  {
11374
- ref: w,
11375
- hidden: c
11376
+ ref: C,
11377
+ hidden: u
11376
11378
  }
11377
11379
  ),
11378
11380
  /* @__PURE__ */ g(
11379
11381
  Ao,
11380
11382
  {
11381
- angle: u ?? 0,
11382
- ref: C,
11383
- hidden: m || typeof u != "number"
11383
+ angle: p ?? 0,
11384
+ ref: R,
11385
+ hidden: h || typeof p != "number"
11384
11386
  }
11385
11387
  ),
11386
11388
  /* @__PURE__ */ g($t, { children: /* @__PURE__ */ g(Cf, {}) }),
11387
11389
  n.mapElementsVisible && /* @__PURE__ */ re(at, { children: [
11388
- T === "LineString" && n.items.drawCreator && /* @__PURE__ */ g(
11390
+ F === "LineString" && n.items.drawCreator && /* @__PURE__ */ g(
11389
11391
  hf,
11390
11392
  {
11391
11393
  addDrawCreatorPoint: (N) => {
11392
11394
  Hl({
11393
11395
  ...N,
11394
- drawInteraction: R.current.draw
11396
+ drawInteraction: T.current.draw
11395
11397
  });
11396
11398
  },
11397
- onDrawEnd: () => R.current.draw.finishDrawing()
11399
+ onDrawEnd: () => T.current.draw.finishDrawing()
11398
11400
  }
11399
11401
  ),
11400
- (_ || k) && n.items.snapBar && /* @__PURE__ */ g($p, {})
11402
+ (k || E) && n.items.snapBar && /* @__PURE__ */ g($p, {})
11401
11403
  ] })
11402
11404
  ] })
11403
11405
  }
@@ -11414,17 +11416,19 @@ const Pp = Ta`
11414
11416
  setOuterSelectedMapObjects: o,
11415
11417
  selectedFeatures: c,
11416
11418
  multiSelectEnabled: u,
11417
- initialDrawnGeometries: m
11419
+ initialDrawnGeometries: p,
11420
+ disableEditNonUserDrawnGeometries: h
11418
11421
  }) => {
11419
11422
  jl();
11420
- const { initialized: h } = un();
11421
- return /* @__PURE__ */ g(at, { children: h ? /* @__PURE__ */ g(zl, { children: /* @__PURE__ */ g($l, { children: /* @__PURE__ */ g(Ul, { children: /* @__PURE__ */ g(
11423
+ const { initialized: _ } = un();
11424
+ return /* @__PURE__ */ g(at, { children: _ ? /* @__PURE__ */ g(zl, { children: /* @__PURE__ */ g($l, { children: /* @__PURE__ */ g(Ul, { children: /* @__PURE__ */ g(
11422
11425
  Nd,
11423
11426
  {
11424
11427
  mapLayers: Zl(e),
11425
11428
  caseObjectId: r || -1,
11426
11429
  setOuterDrawnGeometries: i,
11427
11430
  setOuterSelectedMapObjects: o,
11431
+ disableEditNonUserDrawnGeometries: h,
11428
11432
  children: /* @__PURE__ */ g(Of, { children: /* @__PURE__ */ g(
11429
11433
  Up,
11430
11434
  {
@@ -11435,7 +11439,8 @@ const Pp = Ta`
11435
11439
  caseObjectId: r || -1,
11436
11440
  multiSelectEnabled: u,
11437
11441
  initialSelectedFeatures: c,
11438
- initialDrawnGeometries: m
11442
+ initialDrawnGeometries: p,
11443
+ disableEditNonUserDrawnGeometries: h
11439
11444
  }
11440
11445
  ) })
11441
11446
  }