@smart-factor/gem-ui-map-component 0.0.12 → 0.0.13

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
@@ -15,9 +15,9 @@ var ts = (t, e, r, n) => ({
15
15
  });
16
16
  import { jsx as m, jsxs as se, Fragment as ft } from "react/jsx-runtime";
17
17
  import * as Y from "react";
18
- import Se, { useState as re, forwardRef as Ml, useEffect as Ve, createContext as Vl, useContext as Fl, useRef as ya, useMemo as gs, useCallback as En } from "react";
19
- import { a as mn, b as Dl, r as $a, i as ho, c as po, t as $l, d as mo, e as jl, _ as tt, s as zl, f as A, g as et, h as Ul, j as Zl, k as Bl, l as ql, u as Wl, m as li, n as Br, P as l, o as yo, p as qe, q as ci, v as aa, w as Gl, x as Hl, y as Ql, z as $t, A as jt, B as ui, C as zt, D as Ut, E as $e, F as kr, G as vs, H as Hn, I as Kl, T as Yl, J as bs, K as Jl, L as di, N as Xl, O as ec, Q as _s, R as Pt, S as yn, U as jr, V as ja, W as tc, X as me, Y as rs, Z as fi, $ as ns, a0 as Ue, a1 as hi, a2 as rc, a3 as nc, a4 as go, a5 as sc, a6 as vo, a7 as Hr, a8 as ac, a9 as ic, aa as oc, ab as lc, ac as ia, ad as ds, ae as oa, af as cc, ag as rr, ah as pi, ai as mi, aj as bo, ak as We, al as xs, am as Vt, an as zr, ao as Xt, ap as _o, aq as Qn, ar as uc, as as dc, at as Ht, au as xo, av as ws, aw as fc, ax as hc, ay as pc, az as mc, aA as On, aB as yc, aC as fs, aD as gc, aE as vc, aF as bc, aG as _c, aH as xc, aI as wc, aJ as kc, aK as Sc, aL as Cc, aM as Tc, aN as Ec, aO as Oc, M as Ac, aP as Rc, aQ as Ic, aR as Pc, aS as Nc } from "./MapButtons-iZJLA9V4.js";
20
- var gn = class {
18
+ import Se, { useState as re, forwardRef as Ml, useEffect as De, createContext as Vl, useContext as Fl, useRef as ya, useMemo as gs, useCallback as fn } from "react";
19
+ import { a as yn, b as Dl, r as $a, i as ho, c as po, t as $l, d as mo, e as jl, _ as tt, s as zl, f as A, g as et, h as Ul, j as Zl, k as Bl, l as ql, u as Wl, m as li, n as Br, P as l, o as yo, p as qe, q as ci, v as aa, w as Gl, x as Hl, y as Ql, z as $t, A as jt, B as ui, C as zt, D as Ut, E as $e, F as kr, G as vs, H as Hn, I as Kl, T as Yl, J as bs, K as Jl, L as di, N as Xl, O as ec, Q as _s, R as Pt, S as gn, U as jr, V as ja, W as tc, X as me, Y as rs, Z as fi, $ as ns, a0 as Ue, a1 as hi, a2 as rc, a3 as nc, a4 as go, a5 as sc, a6 as vo, a7 as Hr, a8 as ac, a9 as ic, aa as oc, ab as lc, ac as ia, ad as ds, ae as oa, af as cc, ag as rr, ah as pi, ai as mi, aj as bo, ak as We, al as xs, am as Vt, an as zr, ao as Xt, ap as _o, aq as Qn, ar as uc, as as dc, at as Ht, au as xo, av as ws, aw as fc, ax as hc, ay as pc, az as mc, aA as On, aB as yc, aC as fs, aD as gc, aE as vc, aF as bc, aG as _c, aH as xc, aI as wc, aJ as kc, aK as Sc, aL as Cc, aM as Tc, aN as Ec, aO as Oc, M as Ac, aP as Rc, aQ as Ic, aR as Pc, aS as Nc } from "./MapButtons-B39RePbv.js";
20
+ var vn = class {
21
21
  constructor() {
22
22
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
23
23
  }
@@ -172,7 +172,7 @@ function ko(t, e) {
172
172
  `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`
173
173
  ), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === Ss ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
174
174
  }
175
- var Cr, ir, Jr, ro, Dc = (ro = class extends gn {
175
+ var Cr, ir, Jr, ro, Dc = (ro = class extends vn {
176
176
  constructor() {
177
177
  super();
178
178
  J(this, Cr);
@@ -213,7 +213,7 @@ var Cr, ir, Jr, ro, Dc = (ro = class extends gn {
213
213
  var e;
214
214
  return typeof h(this, Cr) == "boolean" ? h(this, Cr) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
215
215
  }
216
- }, Cr = new WeakMap(), ir = new WeakMap(), Jr = new WeakMap(), ro), Ua = new Dc(), Xr, or, en, no, $c = (no = class extends gn {
216
+ }, Cr = new WeakMap(), ir = new WeakMap(), Jr = new WeakMap(), ro), Ua = new Dc(), Xr, or, en, no, $c = (no = class extends vn {
217
217
  constructor() {
218
218
  super();
219
219
  J(this, Xr, !0);
@@ -706,7 +706,7 @@ function Zc(t) {
706
706
  fetchStatus: "idle"
707
707
  };
708
708
  }
709
- var Ot, io, Ao = (io = class extends gn {
709
+ var Ot, io, Ao = (io = class extends vn {
710
710
  constructor(e = {}) {
711
711
  super();
712
712
  J(this, Ot);
@@ -975,7 +975,7 @@ function Ro() {
975
975
  submittedAt: 0
976
976
  };
977
977
  }
978
- var Kt, xt, qn, lo, qc = (lo = class extends gn {
978
+ var Kt, xt, qn, lo, qc = (lo = class extends vn {
979
979
  constructor(e = {}) {
980
980
  super();
981
981
  J(this, Kt);
@@ -1355,7 +1355,7 @@ var Pe, lr, cr, nn, sn, ur, an, on, co, Gc = (co = class {
1355
1355
  clear() {
1356
1356
  h(this, Pe).clear(), h(this, lr).clear();
1357
1357
  }
1358
- }, Pe = new WeakMap(), lr = new WeakMap(), cr = new WeakMap(), nn = new WeakMap(), sn = new WeakMap(), ur = new WeakMap(), an = new WeakMap(), on = new WeakMap(), co), at, pe, Wn, Je, Rr, ln, dr, It, Gn, cn, un, Ir, Pr, fr, dn, we, wn, wa, ka, Sa, Ca, Ta, Ea, Oa, Io, uo, Hc = (uo = class extends gn {
1358
+ }, Pe = new WeakMap(), lr = new WeakMap(), cr = new WeakMap(), nn = new WeakMap(), sn = new WeakMap(), ur = new WeakMap(), an = new WeakMap(), on = new WeakMap(), co), at, pe, Wn, Je, Rr, ln, dr, It, Gn, cn, un, Ir, Pr, fr, dn, we, kn, wa, ka, Sa, Ca, Ta, Ea, Oa, Io, uo, Hc = (uo = class extends vn {
1359
1359
  constructor(e, r) {
1360
1360
  super();
1361
1361
  J(this, we);
@@ -1384,7 +1384,7 @@ var Pe, lr, cr, nn, sn, ur, an, on, co, Gc = (co = class {
1384
1384
  this.refetch = this.refetch.bind(this);
1385
1385
  }
1386
1386
  onSubscribe() {
1387
- this.listeners.size === 1 && (h(this, pe).addObserver(this), wi(h(this, pe), this.options) ? le(this, we, wn).call(this) : this.updateResult(), le(this, we, Ca).call(this));
1387
+ this.listeners.size === 1 && (h(this, pe).addObserver(this), wi(h(this, pe), this.options) ? le(this, we, kn).call(this) : this.updateResult(), le(this, we, Ca).call(this));
1388
1388
  }
1389
1389
  onUnsubscribe() {
1390
1390
  this.hasListeners() || this.destroy();
@@ -1423,7 +1423,7 @@ var Pe, lr, cr, nn, sn, ur, an, on, co, Gc = (co = class {
1423
1423
  s,
1424
1424
  this.options,
1425
1425
  n
1426
- ) && le(this, we, wn).call(this), this.updateResult(r), a && (h(this, pe) !== s || wt(this.options.enabled, h(this, pe)) !== wt(n.enabled, h(this, pe)) || Qr(this.options.staleTime, h(this, pe)) !== Qr(n.staleTime, h(this, pe))) && le(this, we, wa).call(this);
1426
+ ) && le(this, we, kn).call(this), this.updateResult(r), a && (h(this, pe) !== s || wt(this.options.enabled, h(this, pe)) !== wt(n.enabled, h(this, pe)) || Qr(this.options.staleTime, h(this, pe)) !== Qr(n.staleTime, h(this, pe))) && le(this, we, wa).call(this);
1427
1427
  const i = le(this, we, ka).call(this);
1428
1428
  a && (h(this, pe) !== s || wt(this.options.enabled, h(this, pe)) !== wt(n.enabled, h(this, pe)) || i !== h(this, fr)) && le(this, we, Sa).call(this, i);
1429
1429
  }
@@ -1460,7 +1460,7 @@ var Pe, lr, cr, nn, sn, ur, an, on, co, Gc = (co = class {
1460
1460
  return n.fetch().then(() => this.createResult(n, r));
1461
1461
  }
1462
1462
  fetch(e) {
1463
- return le(this, we, wn).call(this, {
1463
+ return le(this, we, kn).call(this, {
1464
1464
  ...e,
1465
1465
  cancelRefetch: e.cancelRefetch ?? !0
1466
1466
  }).then(() => (this.updateResult(), h(this, Je)));
@@ -1580,7 +1580,7 @@ var Pe, lr, cr, nn, sn, ur, an, on, co, Gc = (co = class {
1580
1580
  onQueryUpdate() {
1581
1581
  this.updateResult(), this.hasListeners() && le(this, we, Ca).call(this);
1582
1582
  }
1583
- }, at = new WeakMap(), pe = new WeakMap(), Wn = new WeakMap(), Je = new WeakMap(), Rr = new WeakMap(), ln = new WeakMap(), dr = new WeakMap(), It = new WeakMap(), Gn = new WeakMap(), cn = new WeakMap(), un = new WeakMap(), Ir = new WeakMap(), Pr = new WeakMap(), fr = new WeakMap(), dn = new WeakMap(), we = new WeakSet(), wn = function(e) {
1583
+ }, at = new WeakMap(), pe = new WeakMap(), Wn = new WeakMap(), Je = new WeakMap(), Rr = new WeakMap(), ln = new WeakMap(), dr = new WeakMap(), It = new WeakMap(), Gn = new WeakMap(), cn = new WeakMap(), un = new WeakMap(), Ir = new WeakMap(), Pr = new WeakMap(), fr = new WeakMap(), dn = new WeakMap(), we = new WeakSet(), kn = function(e) {
1584
1584
  le(this, we, Oa).call(this);
1585
1585
  let r = h(this, pe).fetch(
1586
1586
  this.options,
@@ -1603,7 +1603,7 @@ var Pe, lr, cr, nn, sn, ur, an, on, co, Gc = (co = class {
1603
1603
  return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(h(this, pe)) : this.options.refetchInterval) ?? !1;
1604
1604
  }, Sa = function(e) {
1605
1605
  le(this, we, Ea).call(this), D(this, fr, e), !(Lr || wt(this.options.enabled, h(this, pe)) === !1 || !ga(h(this, fr)) || h(this, fr) === 0) && D(this, Pr, setInterval(() => {
1606
- (this.options.refetchIntervalInBackground || Ua.isFocused()) && le(this, we, wn).call(this);
1606
+ (this.options.refetchIntervalInBackground || Ua.isFocused()) && le(this, we, kn).call(this);
1607
1607
  }, h(this, fr)));
1608
1608
  }, Ca = function() {
1609
1609
  le(this, we, wa).call(this), le(this, we, Sa).call(this, le(this, we, ka).call(this));
@@ -1649,7 +1649,7 @@ function Za(t, e) {
1649
1649
  function Kc(t, e) {
1650
1650
  return !ks(t.getCurrentResult(), e);
1651
1651
  }
1652
- var hr, pr, it, Yt, Jt, hs, Ra, fo, Yc = (fo = class extends gn {
1652
+ var hr, pr, it, Yt, Jt, hs, Ra, fo, Yc = (fo = class extends vn {
1653
1653
  constructor(e, r) {
1654
1654
  super();
1655
1655
  J(this, Jt);
@@ -1857,7 +1857,7 @@ function uu(t, e) {
1857
1857
  }
1858
1858
  const du = async (t) => {
1859
1859
  const { id: e, mapRepresentationId: r } = t;
1860
- return (await mn.rloV2.assignExistingMapRepresentation(
1860
+ return (await yn.rloV2.assignExistingMapRepresentation(
1861
1861
  e,
1862
1862
  r
1863
1863
  )).data.response;
@@ -2014,23 +2014,23 @@ function nd(t, e) {
2014
2014
  var r = this.__data__, n = js(r, t);
2015
2015
  return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this;
2016
2016
  }
2017
- function vn(t) {
2017
+ function bn(t) {
2018
2018
  var e = -1, r = t == null ? 0 : t.length;
2019
2019
  for (this.clear(); ++e < r; ) {
2020
2020
  var n = t[e];
2021
2021
  this.set(n[0], n[1]);
2022
2022
  }
2023
2023
  }
2024
- vn.prototype.clear = Yu;
2025
- vn.prototype.delete = ed;
2026
- vn.prototype.get = td;
2027
- vn.prototype.has = rd;
2028
- vn.prototype.set = nd;
2024
+ bn.prototype.clear = Yu;
2025
+ bn.prototype.delete = ed;
2026
+ bn.prototype.get = td;
2027
+ bn.prototype.has = rd;
2028
+ bn.prototype.set = nd;
2029
2029
  var sd = Ba($a, "Map");
2030
2030
  function ad() {
2031
2031
  this.size = 0, this.__data__ = {
2032
2032
  hash: new Vr(),
2033
- map: new (sd || vn)(),
2033
+ map: new (sd || bn)(),
2034
2034
  string: new Vr()
2035
2035
  };
2036
2036
  }
@@ -3804,7 +3804,7 @@ class jf {
3804
3804
  na(this, "syncCoordinates", () => {
3805
3805
  if (localStorage.getItem("GEM_UI_MAP_VISIBLE") !== "true")
3806
3806
  return Pt("Mapa SmartGEM niedostępna");
3807
- const { mapInstance: e } = yn();
3807
+ const { mapInstance: e } = gn();
3808
3808
  this.channel.postMessage({
3809
3809
  target: "GEM_UI",
3810
3810
  type: "SYNC_COORDINATES",
@@ -3840,7 +3840,7 @@ const zf = new jf(), Uf = ({
3840
3840
  prefix: R,
3841
3841
  showInfoLayerEnabledRef: O,
3842
3842
  drawLayer: M
3843
- } = yn(), [$, I] = re(!1), [q, ae] = re(!1), [X, G] = re(!1), [ie, H] = re(!1), [L, U] = re(!1), [B, Q] = re(!1), [ye, ue] = re([]), [Ce, Ne] = re([]), [Re, je] = re(
3843
+ } = gn(), [$, I] = re(!1), [q, ae] = re(!1), [X, G] = re(!1), [ie, H] = re(!1), [L, U] = re(!1), [B, Q] = re(!1), [ye, ue] = re([]), [Ce, Ne] = re([]), [Re, je] = re(
3844
3844
  e.length === 1 ? { value: e[0].layerId, label: e[0].name } : null
3845
3845
  ), [pt, nt] = re(null), Le = (y) => {
3846
3846
  y && lt(!0), _.current = y, localStorage.setItem("isModalAccepted", String(y)), i();
@@ -5508,7 +5508,7 @@ const hh = $e("span", {
5508
5508
  } = lh(A({}, y, {
5509
5509
  rootRef: r
5510
5510
  }));
5511
- y.marked = he.length > 0 && he.some((De) => De.label), y.dragging = W, y.focusedThumbIndex = E;
5511
+ y.marked = he.length > 0 && he.some((Fe) => Fe.label), y.dragging = W, y.focusedThumbIndex = E;
5512
5512
  const ke = _h(y), mt = (n = (s = Ae == null ? void 0 : Ae.root) != null ? s : ue.Root) != null ? n : hh, Ur = (a = (i = Ae == null ? void 0 : Ae.rail) != null ? i : ue.Rail) != null ? a : ph, ni = (o = (c = Ae == null ? void 0 : Ae.track) != null ? c : ue.Track) != null ? o : mh, si = (u = (d = Ae == null ? void 0 : Ae.thumb) != null ? d : ue.Thumb) != null ? u : yh, ai = (p = (v = Ae == null ? void 0 : Ae.valueLabel) != null ? v : ue.ValueLabel) != null ? p : gh, Gs = (b = (k = Ae == null ? void 0 : Ae.mark) != null ? k : ue.Mark) != null ? b : vh, Hs = (_ = (w = Ae == null ? void 0 : Ae.markLabel) != null ? w : ue.MarkLabel) != null ? _ : bh, ii = (R = (O = Ae == null ? void 0 : Ae.input) != null ? O : ue.Input) != null ? R : "input", Qs = (M = Te == null ? void 0 : Te.root) != null ? M : Ce.root, Sl = ($ = Te == null ? void 0 : Te.rail) != null ? $ : Ce.rail, Ks = (I = Te == null ? void 0 : Te.track) != null ? I : Ce.track, Ys = (q = Te == null ? void 0 : Te.thumb) != null ? q : Ce.thumb, Js = (ae = Te == null ? void 0 : Te.valueLabel) != null ? ae : Ce.valueLabel, Cl = (X = Te == null ? void 0 : Te.mark) != null ? X : Ce.mark, Tl = (G = Te == null ? void 0 : Te.markLabel) != null ? G : Ce.markLabel, El = (ie = Te == null ? void 0 : Te.input) != null ? ie : Ce.input, Ol = rr({
5513
5513
  elementType: mt,
5514
5514
  getSlotProps: S,
@@ -5560,10 +5560,10 @@ const hh = $e("span", {
5560
5560
  ownerState: y
5561
5561
  });
5562
5562
  return /* @__PURE__ */ se(mt, A({}, Ol, {
5563
- children: [/* @__PURE__ */ m(Ur, A({}, Al)), /* @__PURE__ */ m(ni, A({}, Rl)), he.filter((De) => De.value >= Ge && De.value <= ge).map((De, Be) => {
5564
- const ra = Os(De.value, Ge, ge), es = C[_e].offset(ra);
5563
+ children: [/* @__PURE__ */ m(Ur, A({}, Al)), /* @__PURE__ */ m(ni, A({}, Rl)), he.filter((Fe) => Fe.value >= Ge && Fe.value <= ge).map((Fe, Be) => {
5564
+ const ra = Os(Fe.value, Ge, ge), es = C[_e].offset(ra);
5565
5565
  let Bt;
5566
- return ct === !1 ? Bt = be.indexOf(De.value) !== -1 : Bt = ct === "normal" && (j ? De.value >= be[0] && De.value <= be[be.length - 1] : De.value <= be[0]) || ct === "inverted" && (j ? De.value <= be[0] || De.value >= be[be.length - 1] : De.value >= be[0]), /* @__PURE__ */ se(Y.Fragment, {
5566
+ return ct === !1 ? Bt = be.indexOf(Fe.value) !== -1 : Bt = ct === "normal" && (j ? Fe.value >= be[0] && Fe.value <= be[be.length - 1] : Fe.value <= be[0]) || ct === "inverted" && (j ? Fe.value <= be[0] || Fe.value >= be[be.length - 1] : Fe.value >= be[0]), /* @__PURE__ */ se(Y.Fragment, {
5567
5567
  children: [/* @__PURE__ */ m(Gs, A({
5568
5568
  "data-index": Be
5569
5569
  }, ea, !Hr(Gs) && {
@@ -5571,7 +5571,7 @@ const hh = $e("span", {
5571
5571
  }, {
5572
5572
  style: A({}, es, ea.style),
5573
5573
  className: qe(ea.className, Bt && ke.markActive)
5574
- })), De.label != null ? /* @__PURE__ */ m(Hs, A({
5574
+ })), Fe.label != null ? /* @__PURE__ */ m(Hs, A({
5575
5575
  "aria-hidden": !0,
5576
5576
  "data-index": Be
5577
5577
  }, ta, !Hr(Hs) && {
@@ -5579,17 +5579,17 @@ const hh = $e("span", {
5579
5579
  }, {
5580
5580
  style: A({}, es, ta.style),
5581
5581
  className: qe(ke.markLabel, ta.className, Bt && ke.markLabelActive),
5582
- children: De.label
5582
+ children: Fe.label
5583
5583
  })) : null]
5584
5584
  }, Be);
5585
- }), be.map((De, Be) => {
5586
- const ra = Os(De, Ge, ge), es = C[_e].offset(ra), Bt = Et === "off" ? xh : ai;
5585
+ }), be.map((Fe, Be) => {
5586
+ const ra = Os(Fe, Ge, ge), es = C[_e].offset(ra), Bt = Et === "off" ? xh : ai;
5587
5587
  return (
5588
5588
  /* 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. */
5589
5589
  /* @__PURE__ */ m(Bt, A({}, !Hr(Bt) && {
5590
5590
  valueLabelFormat: f,
5591
5591
  valueLabelDisplay: Et,
5592
- value: typeof f == "function" ? f(Ke(De), Be) : f,
5592
+ value: typeof f == "function" ? f(Ke(Fe), Be) : f,
5593
5593
  index: Be,
5594
5594
  open: ee === Be || de === Be || Et === "on",
5595
5595
  disabled: nt
@@ -5602,9 +5602,9 @@ const hh = $e("span", {
5602
5602
  children: /* @__PURE__ */ m(ii, A({
5603
5603
  "data-index": Be,
5604
5604
  "aria-label": Le ? Le(Be) : U,
5605
- "aria-valuenow": Ke(De),
5605
+ "aria-valuenow": Ke(Fe),
5606
5606
  "aria-labelledby": Q,
5607
- "aria-valuetext": P ? P(Ke(De), Be) : B,
5607
+ "aria-valuetext": P ? P(Ke(Fe), Be) : B,
5608
5608
  value: be[Be]
5609
5609
  }, Pl))
5610
5610
  }))
@@ -5904,7 +5904,7 @@ const kh = We(Oe)`
5904
5904
  z-index: 4;
5905
5905
  `, Sh = ({ addDrawCreatorPoint: t, onDrawEnd: e }) => {
5906
5906
  const [r, n] = re(0), [s, a] = re(1);
5907
- Ve(() => (document.addEventListener("keydown", i), () => document.removeEventListener("keydown", i)), []);
5907
+ De(() => (document.addEventListener("keydown", i), () => document.removeEventListener("keydown", i)), []);
5908
5908
  const i = (o) => {
5909
5909
  o.key === "s" && o.ctrlKey && !o.altKey && (o.preventDefault(), e());
5910
5910
  };
@@ -6048,12 +6048,12 @@ const kh = We(Oe)`
6048
6048
  ] })
6049
6049
  ] });
6050
6050
  }, Ph = () => {
6051
- const t = _o(), { overlappingFeature: e, deselectAllFeatures: r, mapLayers: n } = Qn(), { prefix: s } = yn(), {
6051
+ const t = _o(), { overlappingFeature: e, deselectAllFeatures: r, mapLayers: n } = Qn(), { prefix: s } = gn(), {
6052
6052
  popupData: { onCollapse: a }
6053
6053
  } = jr(), [i, o] = re(
6054
6054
  {}
6055
6055
  ), [c, u] = re(!0);
6056
- Ve(() => {
6056
+ De(() => {
6057
6057
  (async () => {
6058
6058
  var v;
6059
6059
  u(!0);
@@ -6189,7 +6189,7 @@ const kh = We(Oe)`
6189
6189
  popupData: { onCollapse: t },
6190
6190
  isOpen: e
6191
6191
  } = jr(), { infoLayersContent: r } = ja(), { deselectAllFeatures: n } = Qn();
6192
- return Ve(() => {
6192
+ return De(() => {
6193
6193
  r.title === "" && (t(), n());
6194
6194
  }, [r, t, n]), /* @__PURE__ */ m(ft, { children: /* @__PURE__ */ se(Rh, { open: e, children: [
6195
6195
  /* @__PURE__ */ se(
@@ -6240,7 +6240,7 @@ const kh = We(Oe)`
6240
6240
  };
6241
6241
  function Fh(t, e, r) {
6242
6242
  const [n, s] = re(t);
6243
- return Ve(() => {
6243
+ return De(() => {
6244
6244
  let a;
6245
6245
  return t ? a = setTimeout(() => {
6246
6246
  s(!0);
@@ -6257,7 +6257,7 @@ const Yn = {
6257
6257
  mapRepresentation: "map-representation",
6258
6258
  plots: "plots",
6259
6259
  roads: "roads"
6260
- }, Dh = async (t, e) => (await mn.instance.get(
6260
+ }, Dh = async (t, e) => (await yn.instance.get(
6261
6261
  `/prg/pointAddresses/pattern?pattern=${t}`,
6262
6262
  e
6263
6263
  )).data.response || [], $h = (t, e, r) => Kn({
@@ -6267,7 +6267,7 @@ const Yn = {
6267
6267
  });
6268
6268
  function Qa(t, e, r) {
6269
6269
  const [n, s] = re(t);
6270
- return Ve(() => {
6270
+ return De(() => {
6271
6271
  const a = setTimeout(() => {
6272
6272
  s(t);
6273
6273
  }, e);
@@ -6278,7 +6278,7 @@ function Qa(t, e, r) {
6278
6278
  }
6279
6279
  const Ko = Vl(
6280
6280
  void 0
6281
- ), bn = () => {
6281
+ ), _n = () => {
6282
6282
  const t = Fl(Ko);
6283
6283
  if (!t)
6284
6284
  throw new Error("useNavigation must be used within a NavigationProvider");
@@ -6311,7 +6311,7 @@ const Ko = Vl(
6311
6311
  return /* @__PURE__ */ m(Ko.Provider, { value: I, children: t });
6312
6312
  };
6313
6313
  function zh() {
6314
- const [t, e] = re(""), r = Qa(t || "", 300), { prgAddressValue: n, setPrgAddressValue: s } = bn(), { data: a } = $h(r, {
6314
+ const [t, e] = re(""), r = Qa(t || "", 300), { prgAddressValue: n, setPrgAddressValue: s } = _n(), { data: a } = $h(r, {
6315
6315
  enabled: !!t && !!r
6316
6316
  });
6317
6317
  return /* @__PURE__ */ m(Oe, { mb: "10px", children: /* @__PURE__ */ m(
@@ -6351,7 +6351,7 @@ const Uh = We(Oe)`
6351
6351
  justify-content: center;
6352
6352
  `, Bh = () => {
6353
6353
  const [t, e] = re(!0), [r, n] = re([]), [s, a] = re([]), [i, o] = re(""), c = ya([]), u = ya([]);
6354
- Ve(() => {
6354
+ De(() => {
6355
6355
  (async () => {
6356
6356
  const b = (await Ue.queryGEMLayers()).data.response.data;
6357
6357
  a(b);
@@ -6368,9 +6368,9 @@ const Uh = We(Oe)`
6368
6368
  ), M = Ue.createTreeItems(O);
6369
6369
  Ue.setSelectedLayers(w), e(!1), c.current = M, n(M);
6370
6370
  })();
6371
- }, []), Ve(() => {
6371
+ }, []), De(() => {
6372
6372
  n(i === "" ? c.current : Ue.filterTree(c.current, i));
6373
- }, [i]), Ve(() => {
6373
+ }, [i]), De(() => {
6374
6374
  Ue.layersEventEmitters.on("onRestartLayers", async () => {
6375
6375
  const v = Ue.queryLayersByKeys(
6376
6376
  s,
@@ -6431,9 +6431,9 @@ const Uh = We(Oe)`
6431
6431
  };
6432
6432
  var Jn = (t) => t.type === "checkbox", Sr = (t) => t instanceof Date, Xe = (t) => t == null;
6433
6433
  const Yo = (t) => typeof t == "object";
6434
- var Fe = (t) => !Xe(t) && !Array.isArray(t) && Yo(t) && !Sr(t), Jo = (t) => Fe(t) && t.target ? Jn(t.target) ? t.target.checked : t.target.value : t, qh = (t) => t.substring(0, t.search(/\.\d+(\.|$)/)) || t, Xo = (t, e) => t.has(qh(e)), Wh = (t) => {
6434
+ var Ve = (t) => !Xe(t) && !Array.isArray(t) && Yo(t) && !Sr(t), Jo = (t) => Ve(t) && t.target ? Jn(t.target) ? t.target.checked : t.target.value : t, qh = (t) => t.substring(0, t.search(/\.\d+(\.|$)/)) || t, Xo = (t, e) => t.has(qh(e)), Wh = (t) => {
6435
6435
  const e = t.constructor && t.constructor.prototype;
6436
- return Fe(e) && e.hasOwnProperty("isPrototypeOf");
6436
+ return Ve(e) && e.hasOwnProperty("isPrototypeOf");
6437
6437
  }, Ka = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
6438
6438
  function st(t) {
6439
6439
  let e;
@@ -6442,7 +6442,7 @@ function st(t) {
6442
6442
  e = new Date(t);
6443
6443
  else if (t instanceof Set)
6444
6444
  e = new Set(t);
6445
- else if (!(Ka && (t instanceof Blob || n)) && (r || Fe(t)))
6445
+ else if (!(Ka && (t instanceof Blob || n)) && (r || Ve(t)))
6446
6446
  if (e = r ? [] : {}, !r && !Wh(t))
6447
6447
  e = t;
6448
6448
  else
@@ -6453,7 +6453,7 @@ function st(t) {
6453
6453
  return e;
6454
6454
  }
6455
6455
  var qs = (t) => Array.isArray(t) ? t.filter(Boolean) : [], Me = (t) => t === void 0, N = (t, e, r) => {
6456
- if (!e || !Fe(t))
6456
+ if (!e || !Ve(t))
6457
6457
  return r;
6458
6458
  const n = qs(e.split(/[,[\].]+?/)).reduce((s, a) => Xe(s) ? s : s[a], t);
6459
6459
  return Me(n) || n === t ? Me(t[e]) ? r : t[e] : n;
@@ -6465,7 +6465,7 @@ var qs = (t) => Array.isArray(t) ? t.filter(Boolean) : [], Me = (t) => t === voi
6465
6465
  let c = r;
6466
6466
  if (n !== i) {
6467
6467
  const u = t[o];
6468
- c = Fe(u) || Array.isArray(u) ? u : isNaN(+s[n + 1]) ? {} : [];
6468
+ c = Ve(u) || Array.isArray(u) ? u : isNaN(+s[n + 1]) ? {} : [];
6469
6469
  }
6470
6470
  if (o === "__proto__" || o === "constructor" || o === "prototype")
6471
6471
  return;
@@ -6504,11 +6504,11 @@ var tl = (t, e, r, n = !0) => {
6504
6504
  }
6505
6505
  });
6506
6506
  return s;
6507
- }, ot = (t) => Fe(t) && !Object.keys(t).length, rl = (t, e, r, n) => {
6507
+ }, ot = (t) => Ve(t) && !Object.keys(t).length, rl = (t, e, r, n) => {
6508
6508
  r(t);
6509
6509
  const { name: s, ...a } = t;
6510
6510
  return ot(a) || Object.keys(a).length >= Object.keys(e).length || Object.keys(a).find((i) => e[i] === (!n || kt.all));
6511
- }, Cn = (t) => Array.isArray(t) ? t : [t], nl = (t, e, r) => !t || !e || t === e || Cn(t).some((n) => n && (r ? n === e : n.startsWith(e) || e.startsWith(n)));
6511
+ }, Tn = (t) => Array.isArray(t) ? t : [t], nl = (t, e, r) => !t || !e || t === e || Tn(t).some((n) => n && (r ? n === e : n.startsWith(e) || e.startsWith(n)));
6512
6512
  function Xa(t) {
6513
6513
  const e = Se.useRef(t);
6514
6514
  e.current = t, Se.useEffect(() => {
@@ -6663,7 +6663,7 @@ var il = (t, e, r, n, s) => e ? {
6663
6663
  isOnAll: t === kt.all,
6664
6664
  isOnTouch: t === kt.onTouched
6665
6665
  }), Zi = (t, e, r) => !r && (e.watchAll || e.watch.has(t) || [...e.watch].some((n) => t.startsWith(n) && /^\.\w+/.test(t.slice(n.length))));
6666
- const Tn = (t, e, r, n) => {
6666
+ const En = (t, e, r, n) => {
6667
6667
  for (const s of r || Object.keys(t)) {
6668
6668
  const a = N(t, s);
6669
6669
  if (a) {
@@ -6673,15 +6673,15 @@ const Tn = (t, e, r, n) => {
6673
6673
  return !0;
6674
6674
  if (i.ref && e(i.ref, i.name) && !n)
6675
6675
  return !0;
6676
- if (Tn(o, e))
6676
+ if (En(o, e))
6677
6677
  break;
6678
- } else if (Fe(o) && Tn(o, e))
6678
+ } else if (Ve(o) && En(o, e))
6679
6679
  break;
6680
6680
  }
6681
6681
  }
6682
6682
  };
6683
6683
  var Yh = (t, e, r) => {
6684
- const n = Cn(N(t, r));
6684
+ const n = Tn(N(t, r));
6685
6685
  return xe(n, "root", e[r]), xe(t, r, n), t;
6686
6686
  }, ei = (t) => t.type === "file", Nt = (t) => typeof t == "function", Rs = (t) => {
6687
6687
  if (!Ka)
@@ -6722,7 +6722,7 @@ function Gi(t, e, r = "validate") {
6722
6722
  ref: e
6723
6723
  };
6724
6724
  }
6725
- var Zr = (t) => Fe(t) && !Is(t) ? t : {
6725
+ var Zr = (t) => Ve(t) && !Is(t) ? t : {
6726
6726
  value: t,
6727
6727
  message: ""
6728
6728
  }, Hi = async (t, e, r, n, s, a) => {
@@ -6786,7 +6786,7 @@ var Zr = (t) => Fe(t) && !Is(t) ? t : {
6786
6786
  ...ie(qt.validate, U.message)
6787
6787
  }, !n))
6788
6788
  return $(U.message), I;
6789
- } else if (Fe(k)) {
6789
+ } else if (Ve(k)) {
6790
6790
  let L = {};
6791
6791
  for (const U in k) {
6792
6792
  if (!ot(L) && !n)
@@ -6821,7 +6821,7 @@ function Xh(t) {
6821
6821
  }
6822
6822
  function ze(t, e) {
6823
6823
  const r = Array.isArray(e) ? e : Ya(e) ? [e] : el(e), n = r.length === 1 ? t : Jh(t, r), s = r.length - 1, a = r[s];
6824
- return n && delete n[a], s !== 0 && (Fe(n) && ot(n) || Array.isArray(n) && Xh(n)) && ze(t, r.slice(0, -1)), t;
6824
+ return n && delete n[a], s !== 0 && (Ve(n) && ot(n) || Array.isArray(n) && Xh(n)) && ze(t, r.slice(0, -1)), t;
6825
6825
  }
6826
6826
  var fa = () => {
6827
6827
  let t = [];
@@ -6857,7 +6857,7 @@ function ar(t, e) {
6857
6857
  return !1;
6858
6858
  if (s !== "ref") {
6859
6859
  const i = e[s];
6860
- if (Sr(a) && Sr(i) || Fe(a) && Fe(i) || Array.isArray(a) && Array.isArray(i) ? !ar(a, i) : a !== i)
6860
+ if (Sr(a) && Sr(i) || Ve(a) && Ve(i) || Array.isArray(a) && Array.isArray(i) ? !ar(a, i) : a !== i)
6861
6861
  return !1;
6862
6862
  }
6863
6863
  }
@@ -6871,19 +6871,19 @@ var cl = (t) => t.type === "select-multiple", ep = (t) => ti(t) || Jn(t), ha = (
6871
6871
  };
6872
6872
  function Ps(t, e = {}) {
6873
6873
  const r = Array.isArray(t);
6874
- if (Fe(t) || r)
6874
+ if (Ve(t) || r)
6875
6875
  for (const n in t)
6876
- Array.isArray(t[n]) || Fe(t[n]) && !ul(t[n]) ? (e[n] = Array.isArray(t[n]) ? [] : {}, Ps(t[n], e[n])) : Xe(t[n]) || (e[n] = !0);
6876
+ Array.isArray(t[n]) || Ve(t[n]) && !ul(t[n]) ? (e[n] = Array.isArray(t[n]) ? [] : {}, Ps(t[n], e[n])) : Xe(t[n]) || (e[n] = !0);
6877
6877
  return e;
6878
6878
  }
6879
6879
  function dl(t, e, r) {
6880
6880
  const n = Array.isArray(t);
6881
- if (Fe(t) || n)
6881
+ if (Ve(t) || n)
6882
6882
  for (const s in t)
6883
- Array.isArray(t[s]) || Fe(t[s]) && !ul(t[s]) ? Me(e) || La(r[s]) ? r[s] = Array.isArray(t[s]) ? Ps(t[s], []) : { ...Ps(t[s]) } : dl(t[s], Xe(e) ? {} : e[s], r[s]) : r[s] = !ar(t[s], e[s]);
6883
+ Array.isArray(t[s]) || Ve(t[s]) && !ul(t[s]) ? Me(e) || La(r[s]) ? r[s] = Array.isArray(t[s]) ? Ps(t[s], []) : { ...Ps(t[s]) } : dl(t[s], Xe(e) ? {} : e[s], r[s]) : r[s] = !ar(t[s], e[s]);
6884
6884
  return r;
6885
6885
  }
6886
- var _n = (t, e) => dl(t, e, Ps(e)), fl = (t, { valueAsNumber: e, valueAsDate: r, setValueAs: n }) => Me(t) ? t : e ? t === "" ? NaN : t && +t : r && Lt(t) ? new Date(t) : n ? n(t) : t;
6886
+ var xn = (t, e) => dl(t, e, Ps(e)), fl = (t, { valueAsNumber: e, valueAsDate: r, setValueAs: n }) => Me(t) ? t : e ? t === "" ? NaN : t && +t : r && Lt(t) ? new Date(t) : n ? n(t) : t;
6887
6887
  function pa(t) {
6888
6888
  const e = t.ref;
6889
6889
  return ei(e) ? e.files : ti(e) ? ll(t.refs).value : cl(e) ? [...e.selectedOptions].map(({ value: r }) => r) : Jn(e) ? ol(t.refs).value : fl(Me(e.value) ? t.ref.value : e.value, t);
@@ -6900,9 +6900,9 @@ var tp = (t, e, r, n) => {
6900
6900
  fields: s,
6901
6901
  shouldUseNativeValidation: n
6902
6902
  };
6903
- }, xn = (t) => Me(t) ? t : Is(t) ? t.source : Fe(t) ? Is(t.value) ? t.value.source : t.value : t;
6903
+ }, wn = (t) => Me(t) ? t : Is(t) ? t.source : Ve(t) ? Is(t.value) ? t.value.source : t.value : t;
6904
6904
  const Qi = "AsyncFunction";
6905
- var rp = (t) => !!t && !!t.validate && !!(Nt(t.validate) && t.validate.constructor.name === Qi || Fe(t.validate) && Object.values(t.validate).find((e) => e.constructor.name === Qi)), np = (t) => t.mount && (t.required || t.min || t.max || t.maxLength || t.minLength || t.pattern || t.validate);
6905
+ var rp = (t) => !!t && !!t.validate && !!(Nt(t.validate) && t.validate.constructor.name === Qi || Ve(t.validate) && Object.values(t.validate).find((e) => e.constructor.name === Qi)), np = (t) => t.mount && (t.required || t.min || t.max || t.maxLength || t.minLength || t.pattern || t.validate);
6906
6906
  function Ki(t, e, r) {
6907
6907
  const n = N(t, r);
6908
6908
  if (n || Ya(r))
@@ -6950,7 +6950,7 @@ function op(t = {}) {
6950
6950
  validatingFields: {},
6951
6951
  errors: e.errors || {},
6952
6952
  disabled: e.disabled || !1
6953
- }, n = {}, s = Fe(e.defaultValues) || Fe(e.values) ? st(e.defaultValues || e.values) || {} : {}, a = e.shouldUnregister ? {} : st(s), i = {
6953
+ }, n = {}, s = Ve(e.defaultValues) || Ve(e.values) ? st(e.defaultValues || e.values) || {} : {}, a = e.shouldUnregister ? {} : st(s), i = {
6954
6954
  action: !1,
6955
6955
  mount: !1,
6956
6956
  watch: !1
@@ -7003,7 +7003,7 @@ function op(t = {}) {
7003
7003
  const F = y(N(r.touchedFields, f), C.argA, C.argB);
7004
7004
  S && xe(r.touchedFields, f, F);
7005
7005
  }
7006
- d.dirtyFields && (r.dirtyFields = _n(s, a)), p.state.next({
7006
+ d.dirtyFields && (r.dirtyFields = xn(s, a)), p.state.next({
7007
7007
  name: f,
7008
7008
  isDirty: L(f, g),
7009
7009
  dirtyFields: r.dirtyFields,
@@ -7115,7 +7115,7 @@ function op(t = {}) {
7115
7115
  }, ye = (f, g, y) => {
7116
7116
  for (const C in g) {
7117
7117
  const S = g[C], x = `${f}.${C}`, F = N(n, x);
7118
- (o.array.has(f) || Fe(S) || F && !F._f) && !Sr(S) ? ye(x, S, y) : Q(x, S, y);
7118
+ (o.array.has(f) || Ve(S) || F && !F._f) && !Sr(S) ? ye(x, S, y) : Q(x, S, y);
7119
7119
  }
7120
7120
  }, ue = (f, g, y = {}) => {
7121
7121
  const C = N(n, f), S = o.array.has(f), x = st(g);
@@ -7124,7 +7124,7 @@ function op(t = {}) {
7124
7124
  values: { ...a }
7125
7125
  }), (d.isDirty || d.dirtyFields) && y.shouldDirty && p.state.next({
7126
7126
  name: f,
7127
- dirtyFields: _n(s, a),
7127
+ dirtyFields: xn(s, a),
7128
7128
  isDirty: L(f, x)
7129
7129
  })) : C && !C._f && !Xe(x) ? ye(f, x, y) : Q(f, x, y), Zi(f, o) && p.state.next({ ...r }), p.values.next({
7130
7130
  name: i.mount ? f : void 0,
@@ -7163,7 +7163,7 @@ function op(t = {}) {
7163
7163
  return f.focus(), 1;
7164
7164
  }, Re = async (f, g = {}) => {
7165
7165
  let y, C;
7166
- const S = Cn(f);
7166
+ const S = Tn(f);
7167
7167
  if (e.resolver) {
7168
7168
  const x = await G(Me(f) ? f : S);
7169
7169
  y = ot(x), C = f ? !S.some((F) => N(x, F)) : y;
@@ -7175,7 +7175,7 @@ function op(t = {}) {
7175
7175
  ...!Lt(f) || d.isValid && y !== r.isValid ? {} : { name: f },
7176
7176
  ...e.resolver || !f ? { isValid: y } : {},
7177
7177
  errors: r.errors
7178
- }), g.shouldFocus && !C && Tn(n, Ne, f ? S : o.mount), C;
7178
+ }), g.shouldFocus && !C && En(n, Ne, f ? S : o.mount), C;
7179
7179
  }, je = (f) => {
7180
7180
  const g = {
7181
7181
  ...i.mount ? a : s
@@ -7188,7 +7188,7 @@ function op(t = {}) {
7188
7188
  isValidating: !!N(r.validatingFields, f),
7189
7189
  isTouched: !!N((g || r).touchedFields, f)
7190
7190
  }), nt = (f) => {
7191
- f && Cn(f).forEach((g) => ze(r.errors, g)), p.state.next({
7191
+ f && Tn(f).forEach((g) => ze(r.errors, g)), p.state.next({
7192
7192
  errors: f ? r.errors : {}
7193
7193
  });
7194
7194
  }, Le = (f, g, y) => {
@@ -7205,7 +7205,7 @@ function op(t = {}) {
7205
7205
  }, P = (f, g) => Nt(f) ? p.values.subscribe({
7206
7206
  next: (y) => f(U(void 0, g), y)
7207
7207
  }) : U(f, g, !0), K = (f, g = {}) => {
7208
- for (const y of f ? Cn(f) : o.mount)
7208
+ for (const y of f ? Tn(f) : o.mount)
7209
7209
  o.mount.delete(y), o.array.delete(y), g.keepValue || (ze(n, y), ze(a, y)), !g.keepError && ze(r.errors, y), !g.keepDirty && ze(r.dirtyFields, y), !g.keepTouched && ze(r.touchedFields, y), !g.keepIsValidating && ze(r.validatingFields, y), !e.shouldUnregister && !g.keepDefaultValue && ze(s, y);
7210
7210
  p.values.next({
7211
7211
  values: { ...a }
@@ -7234,11 +7234,11 @@ function op(t = {}) {
7234
7234
  ...C ? { disabled: g.disabled || e.disabled } : {},
7235
7235
  ...e.progressive ? {
7236
7236
  required: !!g.required,
7237
- min: xn(g.min),
7238
- max: xn(g.max),
7239
- minLength: xn(g.minLength),
7240
- maxLength: xn(g.maxLength),
7241
- pattern: xn(g.pattern)
7237
+ min: wn(g.min),
7238
+ max: wn(g.max),
7239
+ minLength: wn(g.minLength),
7240
+ maxLength: wn(g.maxLength),
7241
+ pattern: wn(g.pattern)
7242
7242
  } : {},
7243
7243
  name: f,
7244
7244
  onChange: Ce,
@@ -7266,8 +7266,8 @@ function op(t = {}) {
7266
7266
  y = N(n, f, {}), y._f && (y._f.mount = !1), (e.shouldUnregister || g.shouldUnregister) && !(Xo(o.array, f) && i.action) && o.unMount.add(f);
7267
7267
  }
7268
7268
  };
7269
- }, lt = () => e.shouldFocusError && Tn(n, Ne, o.mount), _r = (f) => {
7270
- vt(f) && (p.state.next({ disabled: f }), Tn(n, (g, y) => {
7269
+ }, lt = () => e.shouldFocusError && En(n, Ne, o.mount), _r = (f) => {
7270
+ vt(f) && (p.state.next({ disabled: f }), En(n, (g, y) => {
7271
7271
  const C = N(n, y);
7272
7272
  C && (g.disabled = C._f.disabled || f, Array.isArray(C._f.refs) && C._f.refs.forEach((S) => {
7273
7273
  S.disabled = C._f.disabled || f;
@@ -7314,7 +7314,7 @@ function op(t = {}) {
7314
7314
  if (g.keepDirtyValues) {
7315
7315
  const F = /* @__PURE__ */ new Set([
7316
7316
  ...o.mount,
7317
- ...Object.keys(_n(s, a))
7317
+ ...Object.keys(xn(s, a))
7318
7318
  ]);
7319
7319
  for (const ee of Array.from(F))
7320
7320
  N(r.dirtyFields, ee) ? xe(x, ee, N(a, ee)) : ue(ee, N(x, ee));
@@ -7353,7 +7353,7 @@ function op(t = {}) {
7353
7353
  submitCount: g.keepSubmitCount ? r.submitCount : 0,
7354
7354
  isDirty: S ? !1 : g.keepDirty ? r.isDirty : !!(g.keepDefaultValues && !ar(f, s)),
7355
7355
  isSubmitted: g.keepIsSubmitted ? r.isSubmitted : !1,
7356
- dirtyFields: S ? {} : g.keepDirtyValues ? g.keepDefaultValues && a ? _n(s, a) : r.dirtyFields : g.keepDefaultValues && f ? _n(s, f) : g.keepDirty ? r.dirtyFields : {},
7356
+ dirtyFields: S ? {} : g.keepDirtyValues ? g.keepDefaultValues && a ? xn(s, a) : r.dirtyFields : g.keepDefaultValues && f ? xn(s, f) : g.keepDirty ? r.dirtyFields : {},
7357
7357
  touchedFields: g.keepTouched ? r.touchedFields : {},
7358
7358
  errors: g.keepErrors ? r.errors : {},
7359
7359
  isSubmitSuccessful: g.keepIsSubmitSuccessful ? r.isSubmitSuccessful : !1,
@@ -7659,7 +7659,7 @@ class ht extends Error {
7659
7659
  }
7660
7660
  }
7661
7661
  ht.create = (t) => new ht(t);
7662
- const fn = (t, e) => {
7662
+ const hn = (t, e) => {
7663
7663
  let r;
7664
7664
  switch (t.code) {
7665
7665
  case T.invalid_type:
@@ -7715,7 +7715,7 @@ const fn = (t, e) => {
7715
7715
  }
7716
7716
  return { message: r };
7717
7717
  };
7718
- let hl = fn;
7718
+ let hl = hn;
7719
7719
  function up(t) {
7720
7720
  hl = t;
7721
7721
  }
@@ -7755,7 +7755,7 @@ function V(t, e) {
7755
7755
  // then schema-bound map if available
7756
7756
  r,
7757
7757
  // then global override map
7758
- r === fn ? void 0 : fn
7758
+ r === hn ? void 0 : hn
7759
7759
  // then global default map
7760
7760
  ].filter((s) => !!s)
7761
7761
  });
@@ -7817,7 +7817,7 @@ var Z;
7817
7817
  (function(t) {
7818
7818
  t.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, t.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
7819
7819
  })(Z || (Z = {}));
7820
- var kn, Sn;
7820
+ var Sn, Cn;
7821
7821
  class Ft {
7822
7822
  constructor(e, r, n, s) {
7823
7823
  this._cachedPath = [], this.parent = e, this.data = r, this._path = n, this._key = s;
@@ -8012,7 +8012,7 @@ class ce {
8012
8012
  return Ct.create(this);
8013
8013
  }
8014
8014
  promise() {
8015
- return pn.create(this, this._def);
8015
+ return mn.create(this, this._def);
8016
8016
  }
8017
8017
  or(e) {
8018
8018
  return Mn.create([this, e], this._def);
@@ -8950,7 +8950,7 @@ Ln.create = (t) => new Ln({
8950
8950
  typeName: te.ZodNull,
8951
8951
  ...oe(t)
8952
8952
  });
8953
- class hn extends ce {
8953
+ class pn extends ce {
8954
8954
  constructor() {
8955
8955
  super(...arguments), this._any = !0;
8956
8956
  }
@@ -8958,7 +8958,7 @@ class hn extends ce {
8958
8958
  return rt(e.data);
8959
8959
  }
8960
8960
  }
8961
- hn.create = (t) => new hn({
8961
+ pn.create = (t) => new pn({
8962
8962
  typeName: te.ZodAny,
8963
8963
  ...oe(t)
8964
8964
  });
@@ -9804,7 +9804,7 @@ class Yr extends ce {
9804
9804
  r.common.contextualErrorMap,
9805
9805
  r.schemaErrorMap,
9806
9806
  Ns(),
9807
- fn
9807
+ hn
9808
9808
  ].filter((u) => !!u),
9809
9809
  issueData: {
9810
9810
  code: T.invalid_arguments,
@@ -9820,7 +9820,7 @@ class Yr extends ce {
9820
9820
  r.common.contextualErrorMap,
9821
9821
  r.schemaErrorMap,
9822
9822
  Ns(),
9823
- fn
9823
+ hn
9824
9824
  ].filter((u) => !!u),
9825
9825
  issueData: {
9826
9826
  code: T.invalid_return_type,
@@ -9829,7 +9829,7 @@ class Yr extends ce {
9829
9829
  });
9830
9830
  }
9831
9831
  const a = { errorMap: r.common.contextualErrorMap }, i = r.data;
9832
- if (this._def.returns instanceof pn) {
9832
+ if (this._def.returns instanceof mn) {
9833
9833
  const o = this;
9834
9834
  return rt(async function(...c) {
9835
9835
  const u = new ht([]), d = await o._def.args.parseAsync(c, a).catch((b) => {
@@ -9929,7 +9929,7 @@ function vl(t, e) {
9929
9929
  }
9930
9930
  class gr extends ce {
9931
9931
  constructor() {
9932
- super(...arguments), kn.set(this, void 0);
9932
+ super(...arguments), Sn.set(this, void 0);
9933
9933
  }
9934
9934
  _parse(e) {
9935
9935
  if (typeof e.data != "string") {
@@ -9940,7 +9940,7 @@ class gr extends ce {
9940
9940
  code: T.invalid_type
9941
9941
  }), ne;
9942
9942
  }
9943
- if (Ms(this, kn) || pl(this, kn, new Set(this._def.values)), !Ms(this, kn).has(e.data)) {
9943
+ if (Ms(this, Sn) || pl(this, Sn, new Set(this._def.values)), !Ms(this, Sn).has(e.data)) {
9944
9944
  const r = this._getOrReturnCtx(e), n = this._def.values;
9945
9945
  return V(r, {
9946
9946
  received: r.data,
@@ -9984,11 +9984,11 @@ class gr extends ce {
9984
9984
  });
9985
9985
  }
9986
9986
  }
9987
- kn = /* @__PURE__ */ new WeakMap();
9987
+ Sn = /* @__PURE__ */ new WeakMap();
9988
9988
  gr.create = vl;
9989
9989
  class jn extends ce {
9990
9990
  constructor() {
9991
- super(...arguments), Sn.set(this, void 0);
9991
+ super(...arguments), Cn.set(this, void 0);
9992
9992
  }
9993
9993
  _parse(e) {
9994
9994
  const r = ve.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(e);
@@ -10000,7 +10000,7 @@ class jn extends ce {
10000
10000
  code: T.invalid_type
10001
10001
  }), ne;
10002
10002
  }
10003
- if (Ms(this, Sn) || pl(this, Sn, new Set(ve.getValidEnumValues(this._def.values))), !Ms(this, Sn).has(e.data)) {
10003
+ if (Ms(this, Cn) || pl(this, Cn, new Set(ve.getValidEnumValues(this._def.values))), !Ms(this, Cn).has(e.data)) {
10004
10004
  const s = ve.objectValues(r);
10005
10005
  return V(n, {
10006
10006
  received: n.data,
@@ -10014,13 +10014,13 @@ class jn extends ce {
10014
10014
  return this._def.values;
10015
10015
  }
10016
10016
  }
10017
- Sn = /* @__PURE__ */ new WeakMap();
10017
+ Cn = /* @__PURE__ */ new WeakMap();
10018
10018
  jn.create = (t, e) => new jn({
10019
10019
  values: t,
10020
10020
  typeName: te.ZodNativeEnum,
10021
10021
  ...oe(e)
10022
10022
  });
10023
- class pn extends ce {
10023
+ class mn extends ce {
10024
10024
  unwrap() {
10025
10025
  return this._def.type;
10026
10026
  }
@@ -10039,7 +10039,7 @@ class pn extends ce {
10039
10039
  })));
10040
10040
  }
10041
10041
  }
10042
- pn.create = (t, e) => new pn({
10042
+ mn.create = (t, e) => new mn({
10043
10043
  type: t,
10044
10044
  typeName: te.ZodPromise,
10045
10045
  ...oe(e)
@@ -10308,13 +10308,13 @@ Zn.create = (t, e) => new Zn({
10308
10308
  ...oe(e)
10309
10309
  });
10310
10310
  function bl(t, e = {}, r) {
10311
- return t ? hn.create().superRefine((n, s) => {
10311
+ return t ? pn.create().superRefine((n, s) => {
10312
10312
  var a, i;
10313
10313
  if (!t(n)) {
10314
10314
  const o = typeof e == "function" ? e(n) : typeof e == "string" ? { message: e } : e, c = (i = (a = o.fatal) !== null && a !== void 0 ? a : r) !== null && i !== void 0 ? i : !0, u = typeof o == "string" ? { message: o } : o;
10315
10315
  s.addIssue({ code: "custom", ...u, fatal: c });
10316
10316
  }
10317
- }) : hn.create();
10317
+ }) : pn.create();
10318
10318
  }
10319
10319
  const Lp = {
10320
10320
  object: Ie.lazycreate
@@ -10325,7 +10325,7 @@ var te;
10325
10325
  })(te || (te = {}));
10326
10326
  const Mp = (t, e = {
10327
10327
  message: `Input not instance of ${t.name}`
10328
- }) => bl((r) => r instanceof t, e), _l = St.create, xl = mr.create, Vp = $s.create, Fp = yr.create, wl = Pn.create, Dp = Dr.create, $p = Vs.create, jp = Nn.create, zp = Ln.create, Up = hn.create, Zp = Nr.create, Bp = er.create, qp = Fs.create, Wp = Ct.create, Gp = Ie.create, Hp = Ie.strictCreate, Qp = Mn.create, Kp = Ws.create, Yp = Vn.create, Jp = Dt.create, Xp = Fn.create, em = Ds.create, tm = $r.create, rm = Yr.create, nm = Dn.create, sm = $n.create, am = gr.create, im = jn.create, om = pn.create, Ji = Tt.create, lm = Mt.create, cm = vr.create, um = Tt.createWithPreprocess, dm = Xn.create, fm = () => _l().optional(), hm = () => xl().optional(), pm = () => wl().optional(), mm = {
10328
+ }) => bl((r) => r instanceof t, e), _l = St.create, xl = mr.create, Vp = $s.create, Fp = yr.create, wl = Pn.create, Dp = Dr.create, $p = Vs.create, jp = Nn.create, zp = Ln.create, Up = pn.create, Zp = Nr.create, Bp = er.create, qp = Fs.create, Wp = Ct.create, Gp = Ie.create, Hp = Ie.strictCreate, Qp = Mn.create, Kp = Ws.create, Yp = Vn.create, Jp = Dt.create, Xp = Fn.create, em = Ds.create, tm = $r.create, rm = Yr.create, nm = Dn.create, sm = $n.create, am = gr.create, im = jn.create, om = mn.create, Ji = Tt.create, lm = Mt.create, cm = vr.create, um = Tt.createWithPreprocess, dm = Xn.create, fm = () => _l().optional(), hm = () => xl().optional(), pm = () => wl().optional(), mm = {
10329
10329
  string: (t) => St.create({ ...t, coerce: !0 }),
10330
10330
  number: (t) => mr.create({ ...t, coerce: !0 }),
10331
10331
  boolean: (t) => Pn.create({
@@ -10337,7 +10337,7 @@ const Mp = (t, e = {
10337
10337
  }, ym = ne;
10338
10338
  var us = /* @__PURE__ */ Object.freeze({
10339
10339
  __proto__: null,
10340
- defaultErrorMap: fn,
10340
+ defaultErrorMap: hn,
10341
10341
  setErrorMap: up,
10342
10342
  getErrorMap: Ns,
10343
10343
  makeIssue: Ls,
@@ -10369,7 +10369,7 @@ var us = /* @__PURE__ */ Object.freeze({
10369
10369
  ZodSymbol: Vs,
10370
10370
  ZodUndefined: Nn,
10371
10371
  ZodNull: Ln,
10372
- ZodAny: hn,
10372
+ ZodAny: pn,
10373
10373
  ZodUnknown: Nr,
10374
10374
  ZodNever: er,
10375
10375
  ZodVoid: Fs,
@@ -10387,7 +10387,7 @@ var us = /* @__PURE__ */ Object.freeze({
10387
10387
  ZodLiteral: $n,
10388
10388
  ZodEnum: gr,
10389
10389
  ZodNativeEnum: jn,
10390
- ZodPromise: pn,
10390
+ ZodPromise: mn,
10391
10391
  ZodEffects: Tt,
10392
10392
  ZodTransformer: Tt,
10393
10393
  ZodOptional: Mt,
@@ -10451,7 +10451,7 @@ var us = /* @__PURE__ */ Object.freeze({
10451
10451
  quotelessJson: cp,
10452
10452
  ZodError: ht
10453
10453
  });
10454
- const gm = async (t, e) => (await mn.rloV2.queryMapRepresentationsByCaseNumber(
10454
+ const gm = async (t, e) => (await yn.rloV2.queryMapRepresentationsByCaseNumber(
10455
10455
  t,
10456
10456
  e
10457
10457
  )).data.response || [], vm = (t, e, r) => Kn({
@@ -10521,7 +10521,7 @@ var xm = function(t, e) {
10521
10521
  }
10522
10522
  };
10523
10523
  };
10524
- const km = async (t, e) => (await mn.rloV2.search3(t, e)).data.response || [], Sm = (t, e, r) => Kn({
10524
+ const km = async (t, e) => (await yn.rloV2.search3(t, e)).data.response || [], Sm = (t, e, r) => Kn({
10525
10525
  ...e,
10526
10526
  queryKey: [Yn.cases, t],
10527
10527
  queryFn: () => km(t, r)
@@ -10539,7 +10539,7 @@ const km = async (t, e) => (await mn.rloV2.search3(t, e)).data.response || [], S
10539
10539
  }),
10540
10540
  [i, a]
10541
10541
  );
10542
- Ve(() => {
10542
+ De(() => {
10543
10543
  o((b) => ({
10544
10544
  ...b,
10545
10545
  generalSearchText: n,
@@ -10566,7 +10566,7 @@ const km = async (t, e) => (await mn.rloV2.search3(t, e)).data.response || [], S
10566
10566
  };
10567
10567
  function Tm(t, e) {
10568
10568
  const [r, n] = re([]);
10569
- return Ve(() => {
10569
+ return De(() => {
10570
10570
  n(
10571
10571
  (a) => Id([...a, ...t || []], "id")
10572
10572
  );
@@ -10637,7 +10637,7 @@ function Am() {
10637
10637
  enabled: !!(e != null && e.number)
10638
10638
  }
10639
10639
  );
10640
- return Ve(() => {
10640
+ return De(() => {
10641
10641
  (async () => {
10642
10642
  if (e != null && e.number) {
10643
10643
  const n = await r();
@@ -10687,7 +10687,7 @@ const Rm = We(Oe)`
10687
10687
  nets: k,
10688
10688
  setNets: _,
10689
10689
  mileageEnd: w
10690
- } = bn(), [R, O] = re(
10690
+ } = _n(), [R, O] = re(
10691
10691
  p.toString()
10692
10692
  ), [M, $] = re(
10693
10693
  v.toString()
@@ -10770,7 +10770,7 @@ const Rm = We(Oe)`
10770
10770
  const K = P ? Number(P) : 0;
10771
10771
  O(K.toString()), ue(K.toString());
10772
10772
  };
10773
- return Ve(() => {
10773
+ return De(() => {
10774
10774
  $(v.toString());
10775
10775
  }, [v]), /* @__PURE__ */ se(ft, { children: [
10776
10776
  /* @__PURE__ */ m(
@@ -10853,16 +10853,16 @@ const Rm = We(Oe)`
10853
10853
  ] })
10854
10854
  ] })
10855
10855
  ] });
10856
- }, Pm = async (t) => (await mn.road.queryRoads(t)).data.response, Nm = (t, e) => Kn({
10856
+ }, Pm = async (t) => (await yn.road.queryRoads(t)).data.response, Nm = (t, e) => Kn({
10857
10857
  ...t,
10858
10858
  experimental_prefetchInRender: !0,
10859
10859
  queryKey: [Yn.roads],
10860
10860
  queryFn: () => Pm(e)
10861
10861
  }), Lm = () => {
10862
- const { promise: t, data: e } = Nm(), { setRoads: r } = bn();
10863
- return Ve(() => {
10862
+ const { promise: t, data: e } = Nm(), { setRoads: r } = _n();
10863
+ return De(() => {
10864
10864
  e && r(e);
10865
- }, [e, r]), En(() => t, [t]);
10865
+ }, [e, r]), fn(() => t, [t]);
10866
10866
  }, Mm = () => {
10867
10867
  const {
10868
10868
  setMileageStart: t,
@@ -10873,8 +10873,8 @@ const Rm = We(Oe)`
10873
10873
  setMileageValue: a,
10874
10874
  setSelectedRoad: i,
10875
10875
  setNets: o
10876
- } = bn();
10877
- return En(
10876
+ } = _n();
10877
+ return fn(
10878
10878
  async (u) => {
10879
10879
  var _, w;
10880
10880
  if (!u.length)
@@ -10914,8 +10914,8 @@ const Rm = We(Oe)`
10914
10914
  setMileageValue: a,
10915
10915
  setSelectedRoad: i,
10916
10916
  setNets: o
10917
- } = bn();
10918
- return En(
10917
+ } = _n();
10918
+ return fn(
10919
10919
  async (u, d) => {
10920
10920
  if (d.length !== 0) {
10921
10921
  const { net_id: p, road_id: v, position: b } = u, k = d.find((q) => q.id == v);
@@ -10948,7 +10948,7 @@ const Rm = We(Oe)`
10948
10948
  ]
10949
10949
  );
10950
10950
  }, Fm = () => {
10951
- const { setSelectedNet: t, setSelectedRoad: e } = bn(), r = Lm(), n = ya(!1), s = Mm(), a = Vm(), i = En(
10951
+ const { setSelectedNet: t, setSelectedRoad: e } = _n(), r = Lm(), n = ya(!1), s = Mm(), a = Vm(), i = fn(
10952
10952
  async (c) => {
10953
10953
  n.current = !0;
10954
10954
  const u = await r();
@@ -10956,7 +10956,7 @@ const Rm = We(Oe)`
10956
10956
  },
10957
10957
  [r, a]
10958
10958
  );
10959
- Ve(() => (On.navigationEventEmitter.on(
10959
+ De(() => (On.navigationEventEmitter.on(
10960
10960
  "updateNavigationInfo",
10961
10961
  i
10962
10962
  ), () => {
@@ -10965,59 +10965,70 @@ const Rm = We(Oe)`
10965
10965
  i
10966
10966
  );
10967
10967
  }), [i]);
10968
- const o = En(async () => {
10968
+ const o = fn(async () => {
10969
10969
  e(void 0), t(void 0);
10970
10970
  const c = await r();
10971
10971
  n.current || await s(c);
10972
10972
  }, [e, t, r, s]);
10973
- return Ve(() => {
10973
+ return De(() => {
10974
10974
  o();
10975
10975
  }, [o]), /* @__PURE__ */ m(Rm, { gap: "15px", children: /* @__PURE__ */ m(Im, {}) });
10976
- }, Dm = async (t, e) => mn.instance.get(`/gugik/geometry?parcelNumber=${t}`, e), $m = (t, e, r) => Kn({
10976
+ }, Dm = async (t, e) => yn.instance.get(`/gugik/geometry?parcelNumber=${t}`, e), $m = (t, e, r) => Kn({
10977
10977
  ...e,
10978
10978
  queryKey: [Yn.plots, t],
10979
10979
  queryFn: () => Dm(t, r)
10980
10980
  });
10981
10981
  function jm() {
10982
- const [t, e] = re(""), r = Qa(t || "", 300), [n, s] = re(""), { refetch: a } = $m(
10982
+ const [t, e] = re(""), r = Qa(t || "", 300), [n, s] = re(!1), { refetch: a } = $m(
10983
10983
  r,
10984
10984
  {
10985
10985
  enabled: !1
10986
10986
  }
10987
- );
10988
- return Ve(() => {
10989
- (async () => {
10990
- if (n)
10987
+ ), i = fn(
10988
+ async (c) => {
10989
+ if (c)
10991
10990
  try {
10992
- const { data: i } = await a();
10993
- i && me.mapEventEmitter.emit("drawGeometry", {
10991
+ const { data: u } = await a();
10992
+ u && me.mapEventEmitter.emit("drawGeometry", {
10994
10993
  geometries: [
10995
10994
  {
10996
10995
  id: -1,
10997
- geometry: i.data.response.geometry
10996
+ geometry: u.data.response.geometry
10998
10997
  }
10999
10998
  ]
11000
10999
  });
11001
11000
  } catch {
11002
11001
  Pt("Błąd pobierania danych o działce");
11003
11002
  }
11004
- })();
11005
- }, [a, n]), /* @__PURE__ */ m(
11003
+ },
11004
+ [a]
11005
+ ), o = (c) => {
11006
+ i(c), s(!1);
11007
+ };
11008
+ return /* @__PURE__ */ m(
11006
11009
  ws,
11007
11010
  {
11008
11011
  value: { label: t },
11009
- onChange: (i, o) => {
11010
- typeof o != "string" && o && "label" in o && s(o.label);
11012
+ onChange: (c, u) => {
11013
+ typeof u != "string" && u && "label" in u && o(u.label);
11011
11014
  },
11012
11015
  inputValue: t,
11013
- onInputChange: (i, o) => e(o),
11016
+ onInputChange: (c, u) => e(u),
11014
11017
  options: r ? [{ label: r }] : [],
11015
11018
  size: "small",
11016
11019
  freeSolo: !0,
11017
- filterOptions: (i) => i,
11020
+ filterOptions: (c) => c,
11018
11021
  label: "Działka",
11019
11022
  placeholder: "Wpisz działkę",
11020
- getOptionLabel: (i) => typeof i == "string" ? i : i.label
11023
+ getOptionLabel: (c) => typeof c == "string" ? c : c.label,
11024
+ onKeyDown: (c) => {
11025
+ c.key === "Enter" && r && (c.preventDefault(), o(r));
11026
+ },
11027
+ open: n,
11028
+ onOpen: () => s(!0),
11029
+ onClose: () => s(!1),
11030
+ blurOnSelect: !0,
11031
+ disableCloseOnSelect: !1
11021
11032
  }
11022
11033
  );
11023
11034
  }
@@ -11162,7 +11173,7 @@ const zm = Hn`
11162
11173
  isSnapActive: s,
11163
11174
  isSnapToAngleDisabled: a,
11164
11175
  snapConfig: i
11165
- } = yn(), [o, c] = re(
11176
+ } = gn(), [o, c] = re(
11166
11177
  s.current
11167
11178
  ), [u, d] = re(
11168
11179
  r.current
@@ -11175,7 +11186,7 @@ const zm = Hn`
11175
11186
  ), [M, $] = re(
11176
11187
  i.current
11177
11188
  );
11178
- Ve(() => (me.snapEventEmitter.on("map:snap:deactivate", () => {
11189
+ De(() => (me.snapEventEmitter.on("map:snap:deactivate", () => {
11179
11190
  c(!1), d(!1), v(!1), k(!1), O(!1);
11180
11191
  }), me.snapEventEmitter.on("map:snap:angle:disable", () => {
11181
11192
  w(!0);
@@ -11183,17 +11194,17 @@ const zm = Hn`
11183
11194
  w(!1);
11184
11195
  }), () => {
11185
11196
  me.snapEventEmitter.off("map:snap:angle:disable"), me.snapEventEmitter.off("map:snap:angle:enable");
11186
- }), []), Ve(() => {
11197
+ }), []), De(() => {
11187
11198
  me.snapEventEmitter.emit("map:snap:update:config", M);
11188
- }, [M]), Ve(() => {
11199
+ }, [M]), De(() => {
11189
11200
  me.snapEventEmitter.emit("map:snap:middle:toggle", {
11190
11201
  snapToMiddleOfLine: u
11191
11202
  });
11192
- }, [u]), Ve(() => {
11203
+ }, [u]), De(() => {
11193
11204
  me.snapEventEmitter.emit("map:snap:center:toggle", {
11194
11205
  snapToCenter: p
11195
11206
  });
11196
- }, [p]), Ve(() => {
11207
+ }, [p]), De(() => {
11197
11208
  me.snapEventEmitter.emit("map:snap:angle:toggle", {
11198
11209
  snapToAngle: b
11199
11210
  });
@@ -11321,7 +11332,7 @@ const zm = Hn`
11321
11332
  mapElementsConfig: r,
11322
11333
  sidebarConfig: n
11323
11334
  }) => {
11324
- const { isMeasurementHidden: s, angleValue: a, isAngleHidden: i } = ja(), { mapLayers: o, isDrawing: c, isEditing: u, selectedGeometry: d } = Qn(), { distanceOverlayElement: p, angleOverlayElement: v, interactions: b } = yn();
11335
+ const { isMeasurementHidden: s, angleValue: a, isAngleHidden: i } = ja(), { mapLayers: o, isDrawing: c, isEditing: u, selectedGeometry: d } = Qn(), { distanceOverlayElement: p, angleOverlayElement: v, interactions: b } = gn();
11325
11336
  Cc(o, t);
11326
11337
  const k = Tc(
11327
11338
  d == null ? void 0 : d.value,
@@ -11382,7 +11393,7 @@ const zm = Hn`
11382
11393
  setOuterDrawnGeometries: a
11383
11394
  }) => {
11384
11395
  _c();
11385
- const { initialized: i } = yn();
11396
+ const { initialized: i } = gn();
11386
11397
  return /* @__PURE__ */ m(ft, { children: i ? /* @__PURE__ */ m(xc, { children: /* @__PURE__ */ m(wc, { children: /* @__PURE__ */ m(kc, { children: /* @__PURE__ */ m(
11387
11398
  Uf,
11388
11399
  {