@smart-factor/gem-ui-map-component 0.0.20 → 0.0.21
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/{MapButtons-jqCWr3CL.js → MapButtons-S-jADkgq.js} +11626 -11602
- package/dist/components/Map/Map.d.ts +1 -1
- package/dist/components/Map/types.d.ts +5 -0
- package/dist/components/MapButtons/index.js +1 -1
- package/dist/hooks/useSetupMap.d.ts +2 -2
- package/dist/main.js +210 -206
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -16,7 +16,7 @@ var Yn = (t, e, r, n) => ({
|
|
|
16
16
|
import { jsx as v, jsxs as re, Fragment as at } from "react/jsx-runtime";
|
|
17
17
|
import * as B from "react";
|
|
18
18
|
import ge, { useState as Y, forwardRef as rl, useEffect as Oe, createContext as nl, useContext as sl, useRef as Xs, useMemo as fs, useCallback as sn } from "react";
|
|
19
|
-
import { a as cn, b as al, r as Ca, i as Bi, c as qi, t as il, d as ol, e as ll, u as cl, P as l, f as Wi, g as et, h as Ba, j as qs, k as ul, l as dl, m as fl, n as Zt, o as Bt, p as hl, q as qa, s as qt, v as Wt, w as ze, x as _t, y as hs, z as yt, A as Ls, B as Gi, C as Ta, D as pl, T as ml, E as Ea, F as yl, G as Wa, H as gl, I as vl, J as Ga, K as Tt, L as un, N as Mr, O as Aa, Q as bl, V as Qa, R as _l, S as oe, U as xl, W as wl, X as Jn, Y as Ka, Z as Xn, _ as Me, $ as Ha, 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 Ya, ac as Al, ad as Kt, ae as Ja, af as Xa, ag as Qi, ah as $e, ai as ps, aj as Ot, ak as Nr, al as $t, am as Ki, an as Zn, ao as Ol, ap as Rl, aq as Vt, ar as Hi, as as ms, at as Il, au as Pl, av as Yi, aw as Ll, ax as Ml, ay as Sn, az as Nl, aA as ls, aB as Vl, aC as Fl, 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-
|
|
19
|
+
import { a as cn, b as al, r as Ca, i as Bi, c as qi, t as il, d as ol, e as ll, u as cl, P as l, f as Wi, g as et, h as Ba, j as qs, k as ul, l as dl, m as fl, n as Zt, o as Bt, p as hl, q as qa, s as qt, v as Wt, w as ze, x as _t, y as hs, z as yt, A as Ls, B as Gi, C as Ta, D as pl, T as ml, E as Ea, F as yl, G as Wa, H as gl, I as vl, J as Ga, K as Tt, L as un, N as Mr, O as Aa, Q as bl, V as Qa, R as _l, S as oe, U as xl, W as wl, X as Jn, Y as Ka, Z as Xn, _ as Me, $ as Ha, 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 Ya, ac as Al, ad as Kt, ae as Ja, af as Xa, ag as Qi, ah as $e, ai as ps, aj as Ot, ak as Nr, al as $t, am as Ki, an as Zn, ao as Ol, ap as Rl, aq as Vt, ar as Hi, as as ms, at as Il, au as Pl, av as Yi, aw as Ll, ax as Ml, ay as Sn, az as Nl, aA as ls, aB as Vl, aC as Fl, 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-S-jADkgq.js";
|
|
20
20
|
var dn = class {
|
|
21
21
|
constructor() {
|
|
22
22
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
@@ -321,12 +321,12 @@ function ro(t) {
|
|
|
321
321
|
var G;
|
|
322
322
|
if (n)
|
|
323
323
|
return;
|
|
324
|
-
const T = t.retry ?? (Ar ? 0 : 3),
|
|
324
|
+
const T = t.retry ?? (Ar ? 0 : 3), M = t.retryDelay ?? ac, N = typeof M == "function" ? M(r, I) : M, U = T === !0 || typeof T == "number" && r < T || typeof T == "function" && T(r, I);
|
|
325
325
|
if (e || !U) {
|
|
326
326
|
x(I);
|
|
327
327
|
return;
|
|
328
328
|
}
|
|
329
|
-
r++, (G = t.onFail) == null || G.call(t, r, I), ec(
|
|
329
|
+
r++, (G = t.onFail) == null || G.call(t, r, I), ec(N).then(() => u() ? void 0 : S()).then(() => {
|
|
330
330
|
e ? x(I) : E();
|
|
331
331
|
});
|
|
332
332
|
});
|
|
@@ -817,7 +817,7 @@ var St, Di, ao = (Di = class extends dn {
|
|
|
817
817
|
this.execute(this.state.variables);
|
|
818
818
|
}
|
|
819
819
|
async execute(e) {
|
|
820
|
-
var a, i, o, c, u, p, h, x, S, E, w, C, I, T,
|
|
820
|
+
var a, i, o, c, u, p, h, x, S, E, w, C, I, T, M, N, U, G, pe, X;
|
|
821
821
|
const r = () => {
|
|
822
822
|
ae(this, Ct, Ht).call(this, { type: "continue" });
|
|
823
823
|
};
|
|
@@ -876,8 +876,8 @@ var St, Di, ao = (Di = class extends dn {
|
|
|
876
876
|
e,
|
|
877
877
|
this.state.context,
|
|
878
878
|
this
|
|
879
|
-
)), await ((
|
|
880
|
-
|
|
879
|
+
)), await ((N = (M = this.options).onError) == null ? void 0 : N.call(
|
|
880
|
+
M,
|
|
881
881
|
Q,
|
|
882
882
|
e,
|
|
883
883
|
this.state.context
|
|
@@ -1085,22 +1085,22 @@ function si(t) {
|
|
|
1085
1085
|
let o = { pages: [], pageParams: [] }, c = 0;
|
|
1086
1086
|
const u = async () => {
|
|
1087
1087
|
let w = !1;
|
|
1088
|
-
const C = (
|
|
1089
|
-
Object.defineProperty(
|
|
1088
|
+
const C = (M) => {
|
|
1089
|
+
Object.defineProperty(M, "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
|
-
}, I = Xi(e.options, e.fetchOptions), T = async (
|
|
1095
|
+
}, I = Xi(e.options, e.fetchOptions), T = async (M, N, U) => {
|
|
1096
1096
|
if (w)
|
|
1097
1097
|
return Promise.reject();
|
|
1098
|
-
if (
|
|
1099
|
-
return Promise.resolve(
|
|
1098
|
+
if (N == null && M.pages.length)
|
|
1099
|
+
return Promise.resolve(M);
|
|
1100
1100
|
const G = {
|
|
1101
1101
|
client: e.client,
|
|
1102
1102
|
queryKey: e.queryKey,
|
|
1103
|
-
pageParam:
|
|
1103
|
+
pageParam: N,
|
|
1104
1104
|
direction: U ? "backward" : "forward",
|
|
1105
1105
|
meta: e.options.meta
|
|
1106
1106
|
};
|
|
@@ -1109,24 +1109,24 @@ function si(t) {
|
|
|
1109
1109
|
G
|
|
1110
1110
|
), { maxPages: X } = e.options, Q = U ? rc : tc;
|
|
1111
1111
|
return {
|
|
1112
|
-
pages: Q(
|
|
1113
|
-
pageParams: Q(
|
|
1112
|
+
pages: Q(M.pages, pe, X),
|
|
1113
|
+
pageParams: Q(M.pageParams, N, X)
|
|
1114
1114
|
};
|
|
1115
1115
|
};
|
|
1116
1116
|
if (s && a.length) {
|
|
1117
|
-
const
|
|
1117
|
+
const M = s === "backward", N = M ? fc : ai, U = {
|
|
1118
1118
|
pages: a,
|
|
1119
1119
|
pageParams: i
|
|
1120
|
-
}, G =
|
|
1121
|
-
o = await T(U, G,
|
|
1120
|
+
}, G = N(n, U);
|
|
1121
|
+
o = await T(U, G, M);
|
|
1122
1122
|
} else {
|
|
1123
|
-
const
|
|
1123
|
+
const M = t ?? a.length;
|
|
1124
1124
|
do {
|
|
1125
|
-
const
|
|
1126
|
-
if (c > 0 &&
|
|
1125
|
+
const N = c === 0 ? i[0] ?? n.initialPageParam : ai(n, o);
|
|
1126
|
+
if (c > 0 && N == null)
|
|
1127
1127
|
break;
|
|
1128
|
-
o = await T(o,
|
|
1129
|
-
} while (c <
|
|
1128
|
+
o = await T(o, N), c++;
|
|
1129
|
+
} while (c < M);
|
|
1130
1130
|
}
|
|
1131
1131
|
return o;
|
|
1132
1132
|
};
|
|
@@ -1506,12 +1506,12 @@ var Ce, er, tr, Hr, Yr, rr, Jr, Xr, $i, hc = ($i = class {
|
|
|
1506
1506
|
z(this, sr, ee);
|
|
1507
1507
|
}
|
|
1508
1508
|
f(this, sr) && (E = f(this, sr), S = f(this, tn), w = Date.now(), C = "error");
|
|
1509
|
-
const T = h.fetchStatus === "fetching",
|
|
1509
|
+
const T = h.fetchStatus === "fetching", M = C === "pending", N = C === "error", U = M && T, G = S !== void 0, X = {
|
|
1510
1510
|
status: C,
|
|
1511
1511
|
fetchStatus: h.fetchStatus,
|
|
1512
|
-
isPending:
|
|
1512
|
+
isPending: M,
|
|
1513
1513
|
isSuccess: C === "success",
|
|
1514
|
-
isError:
|
|
1514
|
+
isError: N,
|
|
1515
1515
|
isInitialLoading: U,
|
|
1516
1516
|
isLoading: U,
|
|
1517
1517
|
data: S,
|
|
@@ -1524,11 +1524,11 @@ var Ce, er, tr, Hr, Yr, rr, Jr, Xr, $i, hc = ($i = 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 && !
|
|
1528
|
-
isLoadingError:
|
|
1527
|
+
isRefetching: T && !M,
|
|
1528
|
+
isLoadingError: N && !G,
|
|
1529
1529
|
isPaused: h.fetchStatus === "paused",
|
|
1530
1530
|
isPlaceholderData: x,
|
|
1531
|
-
isRefetchError:
|
|
1531
|
+
isRefetchError: N && G,
|
|
1532
1532
|
isStale: Ia(e, r),
|
|
1533
1533
|
refetch: this.refetch,
|
|
1534
1534
|
promise: f(this, nr)
|
|
@@ -2302,18 +2302,18 @@ function ld(t = {}) {
|
|
|
2302
2302
|
children: C,
|
|
2303
2303
|
className: I,
|
|
2304
2304
|
useFlexGap: T = !1,
|
|
2305
|
-
...
|
|
2306
|
-
} = h,
|
|
2305
|
+
...M
|
|
2306
|
+
} = h, N = {
|
|
2307
2307
|
direction: S,
|
|
2308
2308
|
spacing: E,
|
|
2309
2309
|
useFlexGap: T
|
|
2310
2310
|
}, U = s();
|
|
2311
2311
|
return /* @__PURE__ */ v(a, {
|
|
2312
2312
|
as: x,
|
|
2313
|
-
ownerState:
|
|
2313
|
+
ownerState: N,
|
|
2314
2314
|
ref: u,
|
|
2315
2315
|
className: et(U.root, I),
|
|
2316
|
-
...
|
|
2316
|
+
...M,
|
|
2317
2317
|
children: w ? ad(C, w) : C
|
|
2318
2318
|
});
|
|
2319
2319
|
});
|
|
@@ -3269,10 +3269,10 @@ const Od = {
|
|
|
3269
3269
|
timeout: I = s,
|
|
3270
3270
|
// eslint-disable-next-line react/prop-types
|
|
3271
3271
|
TransitionComponent: T = ml,
|
|
3272
|
-
...
|
|
3273
|
-
} = e,
|
|
3272
|
+
...M
|
|
3273
|
+
} = e, N = B.useRef(null), U = Ea(N, yl(o), r), G = (R) => (ne) => {
|
|
3274
3274
|
if (R) {
|
|
3275
|
-
const W =
|
|
3275
|
+
const W = N.current;
|
|
3276
3276
|
ne === void 0 ? R(W) : R(W, ne);
|
|
3277
3277
|
}
|
|
3278
3278
|
}, pe = G(x), X = G((R, ne) => {
|
|
@@ -3298,7 +3298,7 @@ const Od = {
|
|
|
3298
3298
|
return /* @__PURE__ */ v(T, {
|
|
3299
3299
|
appear: i,
|
|
3300
3300
|
in: u,
|
|
3301
|
-
nodeRef:
|
|
3301
|
+
nodeRef: N,
|
|
3302
3302
|
onEnter: X,
|
|
3303
3303
|
onEntered: Q,
|
|
3304
3304
|
onEntering: pe,
|
|
@@ -3306,10 +3306,10 @@ const Od = {
|
|
|
3306
3306
|
onExited: j,
|
|
3307
3307
|
onExiting: ee,
|
|
3308
3308
|
addEndListener: (R) => {
|
|
3309
|
-
a && a(
|
|
3309
|
+
a && a(N.current, R);
|
|
3310
3310
|
},
|
|
3311
3311
|
timeout: I,
|
|
3312
|
-
...
|
|
3312
|
+
...M,
|
|
3313
3313
|
children: (R, {
|
|
3314
3314
|
ownerState: ne,
|
|
3315
3315
|
...W
|
|
@@ -3466,20 +3466,20 @@ const Id = (t) => {
|
|
|
3466
3466
|
transition: S,
|
|
3467
3467
|
root: u.Root,
|
|
3468
3468
|
...x
|
|
3469
|
-
},
|
|
3469
|
+
}, M = {
|
|
3470
3470
|
...p,
|
|
3471
3471
|
...h
|
|
3472
|
-
},
|
|
3472
|
+
}, N = {
|
|
3473
3473
|
slots: T,
|
|
3474
|
-
slotProps:
|
|
3474
|
+
slotProps: M
|
|
3475
3475
|
}, [U, G] = Ga("root", {
|
|
3476
3476
|
elementType: Pd,
|
|
3477
|
-
externalForwardedProps:
|
|
3477
|
+
externalForwardedProps: N,
|
|
3478
3478
|
className: et(I.root, a),
|
|
3479
3479
|
ownerState: C
|
|
3480
3480
|
}), [pe, X] = Ga("transition", {
|
|
3481
3481
|
elementType: _o,
|
|
3482
|
-
externalForwardedProps:
|
|
3482
|
+
externalForwardedProps: N,
|
|
3483
3483
|
ownerState: C
|
|
3484
3484
|
});
|
|
3485
3485
|
return /* @__PURE__ */ v(pe, {
|
|
@@ -3627,8 +3627,8 @@ const Md = new Ld(), Nd = ({
|
|
|
3627
3627
|
isModalAccepted: C,
|
|
3628
3628
|
selectedLayerId: I,
|
|
3629
3629
|
prefix: T,
|
|
3630
|
-
showInfoLayerEnabledRef:
|
|
3631
|
-
drawLayer:
|
|
3630
|
+
showInfoLayerEnabledRef: M,
|
|
3631
|
+
drawLayer: N,
|
|
3632
3632
|
currentlySelectedFeatureIdsRef: U,
|
|
3633
3633
|
initialSelectedFeaturesRef: G
|
|
3634
3634
|
} = un(), [pe, X] = Y(!1), [Q, ee] = Y(!1), [fe, j] = Y(!1), [P, R] = Y(!1), [ne, W] = Y(!1), [Se, ce] = Y(!1), [ke, Ve] = Y([]), [de, Ye] = Y([]), [ut, xt] = Y(
|
|
@@ -3816,7 +3816,7 @@ const Md = new Ld(), Nd = ({
|
|
|
3816
3816
|
onDeleteGeometryClicked: wt,
|
|
3817
3817
|
mapLayers: e,
|
|
3818
3818
|
onToggleShowInfoLayer: () => {
|
|
3819
|
-
P && nt(), ne && (o(), Re()), W(!ne),
|
|
3819
|
+
P && nt(), ne && (o(), Re()), W(!ne), M.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 k;
|
|
3841
|
-
let m = [...
|
|
3841
|
+
let m = [...N.current.getSource().getFeatures()];
|
|
3842
3842
|
((k = m[0].getProperties()) == null ? void 0 : k.isPositionPoint) && (m = m.slice(1));
|
|
3843
3843
|
const g = m.map((D) => {
|
|
3844
3844
|
const O = D.getGeometry();
|
|
@@ -4123,8 +4123,8 @@ const $d = (t, e) => {
|
|
|
4123
4123
|
divider: C = !1,
|
|
4124
4124
|
secondaryAction: I,
|
|
4125
4125
|
slotProps: T = {},
|
|
4126
|
-
slots:
|
|
4127
|
-
...
|
|
4126
|
+
slots: M = {},
|
|
4127
|
+
...N
|
|
4128
4128
|
} = n, U = B.useContext(Zr), G = B.useMemo(() => ({
|
|
4129
4129
|
dense: S || U.dense || !1,
|
|
4130
4130
|
alignItems: s,
|
|
@@ -4137,9 +4137,9 @@ const $d = (t, e) => {
|
|
|
4137
4137
|
disablePadding: w,
|
|
4138
4138
|
divider: C,
|
|
4139
4139
|
hasSecondaryAction: Q
|
|
4140
|
-
}, fe = Ud(ee), j = Ea(pe, r), P =
|
|
4140
|
+
}, fe = Ud(ee), j = Ea(pe, r), P = M.root || c.Root || Zd, R = T.root || u.root || {}, ne = {
|
|
4141
4141
|
className: et(fe.root, R.className, i),
|
|
4142
|
-
...
|
|
4142
|
+
...N
|
|
4143
4143
|
};
|
|
4144
4144
|
let W = o || "li";
|
|
4145
4145
|
return Q ? (W = !ne.component && !o ? "div" : W, p === "li" && (W === "li" ? W = "div" : ne.component === "li" && (ne.component = "div")), /* @__PURE__ */ v(Zr.Provider, {
|
|
@@ -4427,7 +4427,7 @@ function Jd(t) {
|
|
|
4427
4427
|
shiftStep: C = 10,
|
|
4428
4428
|
tabIndex: I,
|
|
4429
4429
|
value: T
|
|
4430
|
-
} = t,
|
|
4430
|
+
} = t, M = B.useRef(void 0), [N, U] = B.useState(-1), [G, pe] = B.useState(-1), [X, Q] = B.useState(!1), ee = B.useRef(0), fe = B.useRef(null), [j, P] = Tl({
|
|
4431
4431
|
controlled: T,
|
|
4432
4432
|
default: r ?? c,
|
|
4433
4433
|
name: "Slider"
|
|
@@ -4519,7 +4519,7 @@ function Jd(t) {
|
|
|
4519
4519
|
El(() => {
|
|
4520
4520
|
var m;
|
|
4521
4521
|
n && de.current.contains(document.activeElement) && ((m = document.activeElement) == null || m.blur());
|
|
4522
|
-
}, [n]), n &&
|
|
4522
|
+
}, [n]), n && N !== -1 && U(-1), n && ke !== -1 && Ve(-1);
|
|
4523
4523
|
const he = (m) => (y) => {
|
|
4524
4524
|
var g;
|
|
4525
4525
|
(g = m.onChange) == null || g.call(m, y), L(y, y.target.valueAsNumber);
|
|
@@ -4563,7 +4563,7 @@ function Jd(t) {
|
|
|
4563
4563
|
activeIndex: Ue
|
|
4564
4564
|
};
|
|
4565
4565
|
}, rt = Ws((m) => {
|
|
4566
|
-
const y = ts(m,
|
|
4566
|
+
const y = ts(m, M);
|
|
4567
4567
|
if (!y)
|
|
4568
4568
|
return;
|
|
4569
4569
|
if (ee.current += 1, m.type === "mousemove" && m.buttons === 0) {
|
|
@@ -4583,7 +4583,7 @@ function Jd(t) {
|
|
|
4583
4583
|
setActive: U
|
|
4584
4584
|
}), P(g), !X && ee.current > Wd && Q(!0), R && !ns(g, j) && R(m, g, k);
|
|
4585
4585
|
}), Fe = Ws((m) => {
|
|
4586
|
-
const y = ts(m,
|
|
4586
|
+
const y = ts(m, M);
|
|
4587
4587
|
if (Q(!1), !y)
|
|
4588
4588
|
return;
|
|
4589
4589
|
const {
|
|
@@ -4592,14 +4592,14 @@ function Jd(t) {
|
|
|
4592
4592
|
finger: y,
|
|
4593
4593
|
move: !0
|
|
4594
4594
|
});
|
|
4595
|
-
U(-1), m.type === "touchend" && pe(-1), h && h(m, fe.current ?? g),
|
|
4595
|
+
U(-1), m.type === "touchend" && pe(-1), h && h(m, fe.current ?? g), M.current = void 0, nt();
|
|
4596
4596
|
}), Ie = Ws((m) => {
|
|
4597
4597
|
if (n)
|
|
4598
4598
|
return;
|
|
4599
4599
|
hi() || m.preventDefault();
|
|
4600
4600
|
const y = m.changedTouches[0];
|
|
4601
|
-
y != null && (
|
|
4602
|
-
const g = ts(m,
|
|
4601
|
+
y != null && (M.current = y.identifier);
|
|
4602
|
+
const g = ts(m, M);
|
|
4603
4603
|
if (g !== !1) {
|
|
4604
4604
|
const {
|
|
4605
4605
|
newValue: D,
|
|
@@ -4641,7 +4641,7 @@ function Jd(t) {
|
|
|
4641
4641
|
if ((D = m.onMouseDown) == null || D.call(m, y), n || y.defaultPrevented || y.button !== 0)
|
|
4642
4642
|
return;
|
|
4643
4643
|
y.preventDefault();
|
|
4644
|
-
const g = ts(y,
|
|
4644
|
+
const g = ts(y, M);
|
|
4645
4645
|
if (g !== !1) {
|
|
4646
4646
|
const {
|
|
4647
4647
|
newValue: O,
|
|
@@ -4692,11 +4692,11 @@ function Jd(t) {
|
|
|
4692
4692
|
};
|
|
4693
4693
|
}, d = (m) => ({
|
|
4694
4694
|
// So the non active thumb doesn't show its label on hover.
|
|
4695
|
-
pointerEvents:
|
|
4695
|
+
pointerEvents: N !== -1 && N !== m ? "none" : void 0
|
|
4696
4696
|
});
|
|
4697
4697
|
let b;
|
|
4698
4698
|
return x === "vertical" && (b = a ? "vertical-rl" : "vertical-lr"), {
|
|
4699
|
-
active:
|
|
4699
|
+
active: N,
|
|
4700
4700
|
axis: Re,
|
|
4701
4701
|
axisProps: Hd,
|
|
4702
4702
|
dragging: X,
|
|
@@ -5332,8 +5332,8 @@ const of = ze("span", {
|
|
|
5332
5332
|
getAriaLabel: C,
|
|
5333
5333
|
getAriaValueText: I,
|
|
5334
5334
|
marks: T = !1,
|
|
5335
|
-
max:
|
|
5336
|
-
min:
|
|
5335
|
+
max: M = 100,
|
|
5336
|
+
min: N = 0,
|
|
5337
5337
|
name: U,
|
|
5338
5338
|
onChange: G,
|
|
5339
5339
|
onChangeCommitted: pe,
|
|
@@ -5353,8 +5353,8 @@ const of = ze("span", {
|
|
|
5353
5353
|
} = n, de = {
|
|
5354
5354
|
...n,
|
|
5355
5355
|
isRtl: s,
|
|
5356
|
-
max:
|
|
5357
|
-
min:
|
|
5356
|
+
max: M,
|
|
5357
|
+
min: N,
|
|
5358
5358
|
classes: x,
|
|
5359
5359
|
disabled: w,
|
|
5360
5360
|
disableSwap: E,
|
|
@@ -5462,8 +5462,8 @@ const of = ze("span", {
|
|
|
5462
5462
|
...mr
|
|
5463
5463
|
}), /* @__PURE__ */ v(Vr, {
|
|
5464
5464
|
...Qn
|
|
5465
|
-
}), Fe.filter((Ae) => Ae.value >=
|
|
5466
|
-
const Us = xs(Ae.value,
|
|
5465
|
+
}), Fe.filter((Ae) => Ae.value >= N && Ae.value <= M).map((Ae, De) => {
|
|
5466
|
+
const Us = xs(Ae.value, N, M), Hn = Ye[qe].offset(Us);
|
|
5467
5467
|
let Pt;
|
|
5468
5468
|
return W === !1 ? Pt = Ie.includes(Ae.value) : Pt = W === "normal" && (tt ? Ae.value >= Ie[0] && Ae.value <= Ie[Ie.length - 1] : Ae.value <= Ie[0]) || W === "inverted" && (tt ? Ae.value <= Ie[0] || Ae.value >= Ie[Ie.length - 1] : Ae.value >= Ie[0]), /* @__PURE__ */ re(B.Fragment, {
|
|
5469
5469
|
children: [/* @__PURE__ */ v(b, {
|
|
@@ -5493,7 +5493,7 @@ const of = ze("span", {
|
|
|
5493
5493
|
}) : null]
|
|
5494
5494
|
}, De);
|
|
5495
5495
|
}), Ie.map((Ae, De) => {
|
|
5496
|
-
const Us = xs(Ae,
|
|
5496
|
+
const Us = xs(Ae, N, M), Hn = Ye[qe].offset(Us), Pt = ce === "off" ? uf : d;
|
|
5497
5497
|
return (
|
|
5498
5498
|
/* 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. */
|
|
5499
5499
|
/* @__PURE__ */ v(Pt, {
|
|
@@ -6250,7 +6250,7 @@ const Eo = nl(
|
|
|
6250
6250
|
}, Of = ({
|
|
6251
6251
|
children: t
|
|
6252
6252
|
}) => {
|
|
6253
|
-
const [e, r] = Y(), [n, s] = Y(), [a, i] = Y(0), [o, c] = Y(0), [u, p] = Y(0), [h, x] = Y(0), [S, E] = Y(0), [w, C] = Y([]), [I, T] = Y([]), [
|
|
6253
|
+
const [e, r] = Y(), [n, s] = Y(), [a, i] = Y(0), [o, c] = Y(0), [u, p] = Y(0), [h, x] = Y(0), [S, E] = Y(0), [w, C] = Y([]), [I, T] = Y([]), [M, N] = Y(), U = {
|
|
6254
6254
|
setMileageStart: c,
|
|
6255
6255
|
setMileageEnd: p,
|
|
6256
6256
|
setSelectedNet: s,
|
|
@@ -6269,8 +6269,8 @@ const Eo = nl(
|
|
|
6269
6269
|
roads: I,
|
|
6270
6270
|
nets: w,
|
|
6271
6271
|
setNets: C,
|
|
6272
|
-
prgAddressValue:
|
|
6273
|
-
setPrgAddressValue:
|
|
6272
|
+
prgAddressValue: M,
|
|
6273
|
+
setPrgAddressValue: N
|
|
6274
6274
|
};
|
|
6275
6275
|
return /* @__PURE__ */ v(Eo.Provider, { value: U, children: t });
|
|
6276
6276
|
};
|
|
@@ -6326,12 +6326,12 @@ const If = $e(_e)`
|
|
|
6326
6326
|
const I = Me.queryLayersByKeys(
|
|
6327
6327
|
E,
|
|
6328
6328
|
C.selected
|
|
6329
|
-
), T = I.map((U) => U.id),
|
|
6329
|
+
), T = I.map((U) => U.id), M = Me.processLayersStructure(
|
|
6330
6330
|
E,
|
|
6331
6331
|
T
|
|
6332
6332
|
);
|
|
6333
|
-
let
|
|
6334
|
-
t && (
|
|
6333
|
+
let N = Me.createTreeItems(M);
|
|
6334
|
+
t && (N = N.filter((U) => U.id === "LAYER_VIEW_TYPE_GEM")[0].children), Me.setSelectedLayers(I), r(!1), u.current = N, s(N);
|
|
6335
6335
|
})();
|
|
6336
6336
|
}, [t]), Oe(() => {
|
|
6337
6337
|
s(o === "" ? u.current : Me.filterTree(u.current, o));
|
|
@@ -6417,7 +6417,7 @@ function je(t) {
|
|
|
6417
6417
|
return t;
|
|
6418
6418
|
return e;
|
|
6419
6419
|
}
|
|
6420
|
-
var Ds = (t) => Array.isArray(t) ? t.filter(Boolean) : [], Te = (t) => t === void 0,
|
|
6420
|
+
var Ds = (t) => Array.isArray(t) ? t.filter(Boolean) : [], Te = (t) => t === void 0, V = (t, e, r) => {
|
|
6421
6421
|
if (!e || !Ee(t))
|
|
6422
6422
|
return r;
|
|
6423
6423
|
const n = Ds(e.split(/[,[\].]+?/)).reduce((s, a) => Ke(s) ? s : s[a], t);
|
|
@@ -6495,7 +6495,7 @@ function Ff(t) {
|
|
|
6495
6495
|
c.current.isValid && r._setValid(!0);
|
|
6496
6496
|
}, [r]), ge.useMemo(() => Po(i, r, c.current, !1), [i, r]);
|
|
6497
6497
|
}
|
|
6498
|
-
var Et = (t) => typeof t == "string", Lo = (t, e, r, n, s) => Et(t) ? (n && e.watch.add(t),
|
|
6498
|
+
var Et = (t) => typeof t == "string", Lo = (t, e, r, n, s) => Et(t) ? (n && e.watch.add(t), V(r, t, s)) : Array.isArray(t) ? t.map((a) => (n && e.watch.add(a), V(r, a))) : (n && (e.watchAll = !0), r);
|
|
6499
6499
|
function Mo(t) {
|
|
6500
6500
|
const e = Da(), { control: r = e.control, name: n, defaultValue: s, disabled: a, exact: i } = t || {}, o = ge.useRef(s), [c, u] = ge.useState(r._getWatch(n, o.current));
|
|
6501
6501
|
return ja(() => r._subscribe({
|
|
@@ -6511,7 +6511,7 @@ function Df(t) {
|
|
|
6511
6511
|
const e = Da(), { name: r, disabled: n, control: s = e.control, shouldUnregister: a } = t, i = Ro(s._names.array, r), o = Mo({
|
|
6512
6512
|
control: s,
|
|
6513
6513
|
name: r,
|
|
6514
|
-
defaultValue:
|
|
6514
|
+
defaultValue: V(s._formValues, r, V(s._defaultValues, r, t.defaultValue)),
|
|
6515
6515
|
exact: !0
|
|
6516
6516
|
}), c = Ff({
|
|
6517
6517
|
control: s,
|
|
@@ -6524,23 +6524,23 @@ function Df(t) {
|
|
|
6524
6524
|
})), h = ge.useMemo(() => Object.defineProperties({}, {
|
|
6525
6525
|
invalid: {
|
|
6526
6526
|
enumerable: !0,
|
|
6527
|
-
get: () => !!
|
|
6527
|
+
get: () => !!V(c.errors, r)
|
|
6528
6528
|
},
|
|
6529
6529
|
isDirty: {
|
|
6530
6530
|
enumerable: !0,
|
|
6531
|
-
get: () => !!
|
|
6531
|
+
get: () => !!V(c.dirtyFields, r)
|
|
6532
6532
|
},
|
|
6533
6533
|
isTouched: {
|
|
6534
6534
|
enumerable: !0,
|
|
6535
|
-
get: () => !!
|
|
6535
|
+
get: () => !!V(c.touchedFields, r)
|
|
6536
6536
|
},
|
|
6537
6537
|
isValidating: {
|
|
6538
6538
|
enumerable: !0,
|
|
6539
|
-
get: () => !!
|
|
6539
|
+
get: () => !!V(c.validatingFields, r)
|
|
6540
6540
|
},
|
|
6541
6541
|
error: {
|
|
6542
6542
|
enumerable: !0,
|
|
6543
|
-
get: () =>
|
|
6543
|
+
get: () => V(c.errors, r)
|
|
6544
6544
|
}
|
|
6545
6545
|
}), [c, r]), x = ge.useCallback((C) => p.current.onChange({
|
|
6546
6546
|
target: {
|
|
@@ -6550,12 +6550,12 @@ function Df(t) {
|
|
|
6550
6550
|
type: ws.CHANGE
|
|
6551
6551
|
}), [r]), S = ge.useCallback(() => p.current.onBlur({
|
|
6552
6552
|
target: {
|
|
6553
|
-
value:
|
|
6553
|
+
value: V(s._formValues, r),
|
|
6554
6554
|
name: r
|
|
6555
6555
|
},
|
|
6556
6556
|
type: ws.BLUR
|
|
6557
6557
|
}), [r, s._formValues]), E = ge.useCallback((C) => {
|
|
6558
|
-
const I =
|
|
6558
|
+
const I = V(s._fields, r);
|
|
6559
6559
|
I && C && (I._f.ref = C);
|
|
6560
6560
|
}, [s._fields, r]), w = ge.useMemo(() => ({
|
|
6561
6561
|
name: r,
|
|
@@ -6571,13 +6571,13 @@ function Df(t) {
|
|
|
6571
6571
|
...u.current.rules,
|
|
6572
6572
|
...st(u.current.disabled) ? { disabled: u.current.disabled } : {}
|
|
6573
6573
|
});
|
|
6574
|
-
const I = (T,
|
|
6575
|
-
const
|
|
6576
|
-
|
|
6574
|
+
const I = (T, M) => {
|
|
6575
|
+
const N = V(s._fields, T);
|
|
6576
|
+
N && N._f && (N._f.mount = M);
|
|
6577
6577
|
};
|
|
6578
6578
|
if (I(r, !0), C) {
|
|
6579
|
-
const T = je(
|
|
6580
|
-
me(s._defaultValues, r, T), Te(
|
|
6579
|
+
const T = je(V(s._options.defaultValues, r));
|
|
6580
|
+
me(s._defaultValues, r, T), Te(V(s._formValues, r)) && me(s._formValues, r, T);
|
|
6581
6581
|
}
|
|
6582
6582
|
return !i && s.register(r), () => {
|
|
6583
6583
|
(i ? C && !s._state.action : C) ? s.unregister(r) : I(r, !1);
|
|
@@ -6716,7 +6716,7 @@ function xi(t) {
|
|
|
6716
6716
|
var Zf = (t, e, r, n) => {
|
|
6717
6717
|
const s = {};
|
|
6718
6718
|
for (const a of t) {
|
|
6719
|
-
const i =
|
|
6719
|
+
const i = V(e, a);
|
|
6720
6720
|
i && me(s, a, i._f);
|
|
6721
6721
|
}
|
|
6722
6722
|
return {
|
|
@@ -6736,7 +6736,7 @@ const Si = "AsyncFunction";
|
|
|
6736
6736
|
var Bf = (t) => !!t && !!t.validate && !!(mt(t.validate) && t.validate.constructor.name === Si || Ee(t.validate) && Object.values(t.validate).find((e) => e.constructor.name === Si)), qf = (t) => t.mount && (t.required || t.min || t.max || t.maxLength || t.minLength || t.pattern || t.validate), ki = (t, e, r) => !r && (e.watchAll || e.watch.has(t) || [...e.watch].some((n) => t.startsWith(n) && /^\.\w+/.test(t.slice(n.length))));
|
|
6737
6737
|
const wn = (t, e, r, n) => {
|
|
6738
6738
|
for (const s of r || Object.keys(t)) {
|
|
6739
|
-
const a =
|
|
6739
|
+
const a = V(t, s);
|
|
6740
6740
|
if (a) {
|
|
6741
6741
|
const { _f: i, ...o } = a;
|
|
6742
6742
|
if (i) {
|
|
@@ -6752,7 +6752,7 @@ const wn = (t, e, r, n) => {
|
|
|
6752
6752
|
}
|
|
6753
6753
|
};
|
|
6754
6754
|
function Ci(t, e, r) {
|
|
6755
|
-
const n =
|
|
6755
|
+
const n = V(t, r);
|
|
6756
6756
|
if (n || Fa(r))
|
|
6757
6757
|
return {
|
|
6758
6758
|
error: n,
|
|
@@ -6760,7 +6760,7 @@ function Ci(t, e, r) {
|
|
|
6760
6760
|
};
|
|
6761
6761
|
const s = r.split(".");
|
|
6762
6762
|
for (; s.length; ) {
|
|
6763
|
-
const a = s.join("."), i =
|
|
6763
|
+
const a = s.join("."), i = V(e, a), o = V(t, a);
|
|
6764
6764
|
if (i && !Array.isArray(i) && r !== a)
|
|
6765
6765
|
return { name: r };
|
|
6766
6766
|
if (o && o.type)
|
|
@@ -6778,8 +6778,8 @@ var Wf = (t, e, r, n) => {
|
|
|
6778
6778
|
r(t);
|
|
6779
6779
|
const { name: s, ...a } = t;
|
|
6780
6780
|
return Qe(a) || Object.keys(a).length >= Object.keys(e).length || Object.keys(a).find((i) => e[i] === (!n || pt.all));
|
|
6781
|
-
}, Gf = (t, e, r) => !t || !e || t === e || xn(t).some((n) => n && (r ? n === e : n.startsWith(e) || e.startsWith(n))), Qf = (t, e, r, n, s) => s.isOnAll ? !1 : !r && s.isOnTouch ? !(e || t) : (r ? n.isOnBlur : s.isOnBlur) ? !t : (r ? n.isOnChange : s.isOnChange) ? t : !0, Kf = (t, e) => !Ds(
|
|
6782
|
-
const n = xn(
|
|
6781
|
+
}, Gf = (t, e, r) => !t || !e || t === e || xn(t).some((n) => n && (r ? n === e : n.startsWith(e) || e.startsWith(n))), Qf = (t, e, r, n, s) => s.isOnAll ? !1 : !r && s.isOnTouch ? !(e || t) : (r ? n.isOnBlur : s.isOnBlur) ? !t : (r ? n.isOnChange : s.isOnChange) ? t : !0, Kf = (t, e) => !Ds(V(t, e)).length && Le(t, e), Hf = (t, e, r) => {
|
|
6782
|
+
const n = xn(V(t, r));
|
|
6783
6783
|
return me(n, "root", e[r]), me(t, r, n), t;
|
|
6784
6784
|
}, ds = (t) => Et(t);
|
|
6785
6785
|
function Ti(t, e, r = "validate") {
|
|
@@ -6794,11 +6794,11 @@ var Dr = (t) => Ee(t) && !Cs(t) ? t : {
|
|
|
6794
6794
|
value: t,
|
|
6795
6795
|
message: ""
|
|
6796
6796
|
}, Ei = async (t, e, r, n, s, a) => {
|
|
6797
|
-
const { ref: i, refs: o, required: c, maxLength: u, minLength: p, min: h, max: x, pattern: S, validate: E, name: w, valueAsNumber: C, mount: I } = t._f, T =
|
|
6797
|
+
const { ref: i, refs: o, required: c, maxLength: u, minLength: p, min: h, max: x, pattern: S, validate: E, name: w, valueAsNumber: C, mount: I } = t._f, T = V(r, w);
|
|
6798
6798
|
if (!I || e.has(w))
|
|
6799
6799
|
return {};
|
|
6800
|
-
const
|
|
6801
|
-
s &&
|
|
6800
|
+
const M = o ? o[0] : i, N = (j) => {
|
|
6801
|
+
s && M.reportValidity && (M.setCustomValidity(st(j) ? "" : j || ""), M.reportValidity());
|
|
6802
6802
|
}, U = {}, G = $a(i), pe = Wn(i), X = G || pe, Q = (C || za(i)) && Te(i.value) && Te(T) || Ss(i) && i.value === "" || T === "" || Array.isArray(T) && !T.length, ee = No.bind(null, w, n, U), fe = (j, P, R, ne = Lt.maxLength, W = Lt.minLength) => {
|
|
6803
6803
|
const Se = j ? P : R;
|
|
6804
6804
|
U[w] = {
|
|
@@ -6813,10 +6813,10 @@ var Dr = (t) => Ee(t) && !Cs(t) ? t : {
|
|
|
6813
6813
|
if (j && (U[w] = {
|
|
6814
6814
|
type: Lt.required,
|
|
6815
6815
|
message: P,
|
|
6816
|
-
ref:
|
|
6816
|
+
ref: M,
|
|
6817
6817
|
...ee(Lt.required, P)
|
|
6818
6818
|
}, !n))
|
|
6819
|
-
return
|
|
6819
|
+
return N(P), U;
|
|
6820
6820
|
}
|
|
6821
6821
|
if (!Q && (!Ke(h) || !Ke(x))) {
|
|
6822
6822
|
let j, P;
|
|
@@ -6829,12 +6829,12 @@ var Dr = (t) => Ee(t) && !Cs(t) ? t : {
|
|
|
6829
6829
|
Et(R.value) && T && (j = ce ? Se(T) > Se(R.value) : ke ? T > R.value : W > new Date(R.value)), Et(ne.value) && T && (P = ce ? Se(T) < Se(ne.value) : ke ? T < ne.value : W < new Date(ne.value));
|
|
6830
6830
|
}
|
|
6831
6831
|
if ((j || P) && (fe(!!j, R.message, ne.message, Lt.max, Lt.min), !n))
|
|
6832
|
-
return
|
|
6832
|
+
return N(U[w].message), U;
|
|
6833
6833
|
}
|
|
6834
6834
|
if ((u || p) && !Q && (Et(T) || a && Array.isArray(T))) {
|
|
6835
6835
|
const j = Dr(u), P = Dr(p), R = !Ke(j.value) && T.length > +j.value, ne = !Ke(P.value) && T.length < +P.value;
|
|
6836
6836
|
if ((R || ne) && (fe(R, j.message, P.message), !n))
|
|
6837
|
-
return
|
|
6837
|
+
return N(U[w].message), U;
|
|
6838
6838
|
}
|
|
6839
6839
|
if (S && !Q && Et(T)) {
|
|
6840
6840
|
const { value: j, message: P } = Dr(S);
|
|
@@ -6844,35 +6844,35 @@ var Dr = (t) => Ee(t) && !Cs(t) ? t : {
|
|
|
6844
6844
|
ref: i,
|
|
6845
6845
|
...ee(Lt.pattern, P)
|
|
6846
6846
|
}, !n))
|
|
6847
|
-
return
|
|
6847
|
+
return N(P), U;
|
|
6848
6848
|
}
|
|
6849
6849
|
if (E) {
|
|
6850
6850
|
if (mt(E)) {
|
|
6851
|
-
const j = await E(T, r), P = Ti(j,
|
|
6851
|
+
const j = await E(T, r), P = Ti(j, M);
|
|
6852
6852
|
if (P && (U[w] = {
|
|
6853
6853
|
...P,
|
|
6854
6854
|
...ee(Lt.validate, P.message)
|
|
6855
6855
|
}, !n))
|
|
6856
|
-
return
|
|
6856
|
+
return N(P.message), U;
|
|
6857
6857
|
} else if (Ee(E)) {
|
|
6858
6858
|
let j = {};
|
|
6859
6859
|
for (const P in E) {
|
|
6860
6860
|
if (!Qe(j) && !n)
|
|
6861
6861
|
break;
|
|
6862
|
-
const R = Ti(await E[P](T, r),
|
|
6862
|
+
const R = Ti(await E[P](T, r), M, P);
|
|
6863
6863
|
R && (j = {
|
|
6864
6864
|
...R,
|
|
6865
6865
|
...ee(P, R.message)
|
|
6866
|
-
},
|
|
6866
|
+
}, N(R.message), n && (U[w] = j));
|
|
6867
6867
|
}
|
|
6868
6868
|
if (!Qe(j) && (U[w] = {
|
|
6869
|
-
ref:
|
|
6869
|
+
ref: M,
|
|
6870
6870
|
...j
|
|
6871
6871
|
}, !n))
|
|
6872
6872
|
return U;
|
|
6873
6873
|
}
|
|
6874
6874
|
}
|
|
6875
|
-
return
|
|
6875
|
+
return N(!0), U;
|
|
6876
6876
|
};
|
|
6877
6877
|
const Yf = {
|
|
6878
6878
|
mode: pt.onSubmit,
|
|
@@ -6942,18 +6942,18 @@ function Jf(t = {}) {
|
|
|
6942
6942
|
validatingFields: r.validatingFields,
|
|
6943
6943
|
isValidating: !Qe(r.validatingFields)
|
|
6944
6944
|
}));
|
|
6945
|
-
},
|
|
6945
|
+
}, M = (d, b = [], _, m, y = !0, g = !0) => {
|
|
6946
6946
|
if (m && _ && !e.disabled) {
|
|
6947
|
-
if (i.action = !0, g && Array.isArray(
|
|
6948
|
-
const k = _(
|
|
6947
|
+
if (i.action = !0, g && Array.isArray(V(n, d))) {
|
|
6948
|
+
const k = _(V(n, d), m.argA, m.argB);
|
|
6949
6949
|
y && me(n, d, k);
|
|
6950
6950
|
}
|
|
6951
|
-
if (g && Array.isArray(
|
|
6952
|
-
const k = _(
|
|
6951
|
+
if (g && Array.isArray(V(r.errors, d))) {
|
|
6952
|
+
const k = _(V(r.errors, d), m.argA, m.argB);
|
|
6953
6953
|
y && me(r.errors, d, k), Kf(r.errors, d);
|
|
6954
6954
|
}
|
|
6955
|
-
if ((p.touchedFields || h.touchedFields) && g && Array.isArray(
|
|
6956
|
-
const k = _(
|
|
6955
|
+
if ((p.touchedFields || h.touchedFields) && g && Array.isArray(V(r.touchedFields, d))) {
|
|
6956
|
+
const k = _(V(r.touchedFields, d), m.argA, m.argB);
|
|
6957
6957
|
y && me(r.touchedFields, d, k);
|
|
6958
6958
|
}
|
|
6959
6959
|
(p.dirtyFields || h.dirtyFields) && (r.dirtyFields = yn(s, a)), x.state.next({
|
|
@@ -6965,7 +6965,7 @@ function Jf(t = {}) {
|
|
|
6965
6965
|
});
|
|
6966
6966
|
} else
|
|
6967
6967
|
me(a, d, b);
|
|
6968
|
-
},
|
|
6968
|
+
}, N = (d, b) => {
|
|
6969
6969
|
me(r.errors, d, b), x.state.next({
|
|
6970
6970
|
errors: r.errors
|
|
6971
6971
|
});
|
|
@@ -6975,9 +6975,9 @@ function Jf(t = {}) {
|
|
|
6975
6975
|
isValid: !1
|
|
6976
6976
|
});
|
|
6977
6977
|
}, G = (d, b, _, m) => {
|
|
6978
|
-
const y =
|
|
6978
|
+
const y = V(n, d);
|
|
6979
6979
|
if (y) {
|
|
6980
|
-
const g =
|
|
6980
|
+
const g = V(a, d, Te(_) ? V(s, d) : _);
|
|
6981
6981
|
Te(g) || m && m.defaultChecked || b ? me(a, d, b ? g : xi(y._f)) : W(d, g), i.mount && I();
|
|
6982
6982
|
}
|
|
6983
6983
|
}, pe = (d, b, _, m, y) => {
|
|
@@ -6988,19 +6988,19 @@ function Jf(t = {}) {
|
|
|
6988
6988
|
if (!e.disabled) {
|
|
6989
6989
|
if (!_ || m) {
|
|
6990
6990
|
(p.isDirty || h.isDirty) && (k = r.isDirty, r.isDirty = D.isDirty = P(), g = k !== D.isDirty);
|
|
6991
|
-
const O = Yt(
|
|
6992
|
-
k = !!
|
|
6991
|
+
const O = Yt(V(s, d), b);
|
|
6992
|
+
k = !!V(r.dirtyFields, d), O ? Le(r.dirtyFields, d) : me(r.dirtyFields, d, !0), D.dirtyFields = r.dirtyFields, g = g || (p.dirtyFields || h.dirtyFields) && k !== !O;
|
|
6993
6993
|
}
|
|
6994
6994
|
if (_) {
|
|
6995
|
-
const O =
|
|
6995
|
+
const O = V(r.touchedFields, d);
|
|
6996
6996
|
O || (me(r.touchedFields, d, _), D.touchedFields = r.touchedFields, g = g || (p.touchedFields || h.touchedFields) && O !== _);
|
|
6997
6997
|
}
|
|
6998
6998
|
g && y && x.state.next(D);
|
|
6999
6999
|
}
|
|
7000
7000
|
return g ? D : {};
|
|
7001
7001
|
}, X = (d, b, _, m) => {
|
|
7002
|
-
const y =
|
|
7003
|
-
if (e.delayError && _ ? (c = C(() =>
|
|
7002
|
+
const y = V(r.errors, d), g = (p.isValid || h.isValid) && st(b) && r.isValid !== b;
|
|
7003
|
+
if (e.delayError && _ ? (c = C(() => N(d, _)), c(e.delayError)) : (clearTimeout(u), c = null, _ ? me(r.errors, d, _) : Le(r.errors, d)), (_ ? !Yt(y, _) : y) || !Qe(m) || g) {
|
|
7004
7004
|
const k = {
|
|
7005
7005
|
...m,
|
|
7006
7006
|
...g && st(b) ? { isValid: b } : {},
|
|
@@ -7020,7 +7020,7 @@ function Jf(t = {}) {
|
|
|
7020
7020
|
const { errors: b } = await Q(d);
|
|
7021
7021
|
if (d)
|
|
7022
7022
|
for (const _ of d) {
|
|
7023
|
-
const m =
|
|
7023
|
+
const m = V(b, _);
|
|
7024
7024
|
m ? me(r.errors, _, m) : Le(r.errors, _);
|
|
7025
7025
|
}
|
|
7026
7026
|
else
|
|
@@ -7039,7 +7039,7 @@ function Jf(t = {}) {
|
|
|
7039
7039
|
const te = await Ei(y, o.disabled, a, w, e.shouldUseNativeValidation && !b, D);
|
|
7040
7040
|
if (O && p.validatingFields && T([m]), te[g.name] && (_.valid = !1, b))
|
|
7041
7041
|
break;
|
|
7042
|
-
!b && (
|
|
7042
|
+
!b && (V(te, g.name) ? D ? Hf(r.errors, te, g.name) : me(r.errors, g.name, te[g.name]) : Le(r.errors, g.name));
|
|
7043
7043
|
}
|
|
7044
7044
|
!Qe(k) && await fe(k, b, _);
|
|
7045
7045
|
}
|
|
@@ -7047,14 +7047,14 @@ function Jf(t = {}) {
|
|
|
7047
7047
|
return _.valid;
|
|
7048
7048
|
}, j = () => {
|
|
7049
7049
|
for (const d of o.unMount) {
|
|
7050
|
-
const b =
|
|
7050
|
+
const b = V(n, d);
|
|
7051
7051
|
b && (b._f.refs ? b._f.refs.every((_) => !Ys(_)) : !Ys(b._f.ref)) && Re(d);
|
|
7052
7052
|
}
|
|
7053
7053
|
o.unMount = /* @__PURE__ */ new Set();
|
|
7054
7054
|
}, P = (d, b) => !e.disabled && (d && b && me(a, d, b), !Yt(Ye(), s)), R = (d, b, _) => Lo(d, o, {
|
|
7055
7055
|
...i.mount ? a : Te(b) ? s : Et(d) ? { [d]: b } : b
|
|
7056
|
-
}, _, b), ne = (d) => Ds(
|
|
7057
|
-
const m =
|
|
7056
|
+
}, _, b), ne = (d) => Ds(V(i.mount ? a : s, d, e.shouldUnregister ? V(s, d, []) : [])), W = (d, b, _ = {}) => {
|
|
7057
|
+
const m = V(n, d);
|
|
7058
7058
|
let y = b;
|
|
7059
7059
|
if (m) {
|
|
7060
7060
|
const g = m._f;
|
|
@@ -7066,11 +7066,11 @@ function Jf(t = {}) {
|
|
|
7066
7066
|
(_.shouldDirty || _.shouldTouch) && pe(d, y, _.shouldTouch, _.shouldDirty, !0), _.shouldValidate && de(d);
|
|
7067
7067
|
}, Se = (d, b, _) => {
|
|
7068
7068
|
for (const m in b) {
|
|
7069
|
-
const y = b[m], g = `${d}.${m}`, k =
|
|
7069
|
+
const y = b[m], g = `${d}.${m}`, k = V(n, g);
|
|
7070
7070
|
(o.array.has(d) || Ee(y) || k && !k._f) && !vr(y) ? Se(g, y, _) : W(g, y, _);
|
|
7071
7071
|
}
|
|
7072
7072
|
}, ce = (d, b, _ = {}) => {
|
|
7073
|
-
const m =
|
|
7073
|
+
const m = V(n, d), y = o.array.has(d), g = je(b);
|
|
7074
7074
|
me(a, d, g), y ? (x.array.next({
|
|
7075
7075
|
name: d,
|
|
7076
7076
|
values: je(a)
|
|
@@ -7086,12 +7086,12 @@ function Jf(t = {}) {
|
|
|
7086
7086
|
i.mount = !0;
|
|
7087
7087
|
const b = d.target;
|
|
7088
7088
|
let _ = b.name, m = !0;
|
|
7089
|
-
const y =
|
|
7090
|
-
m = Number.isNaN(k) || vr(k) && isNaN(k.getTime()) || Yt(k,
|
|
7089
|
+
const y = V(n, _), g = (k) => {
|
|
7090
|
+
m = Number.isNaN(k) || vr(k) && isNaN(k.getTime()) || Yt(k, V(a, _, k));
|
|
7091
7091
|
};
|
|
7092
7092
|
if (y) {
|
|
7093
7093
|
let k, D;
|
|
7094
|
-
const O = b.type ? xi(y._f) : Oo(d), te = d.type === ws.BLUR || d.type === ws.FOCUS_OUT, xe = !qf(y._f) && !e.resolver && !
|
|
7094
|
+
const O = b.type ? xi(y._f) : Oo(d), te = d.type === ws.BLUR || d.type === ws.FOCUS_OUT, xe = !qf(y._f) && !e.resolver && !V(r.errors, _) && !y._f.deps || Qf(te, V(r.touchedFields, _), r.isSubmitted, E, S), ve = ki(_, o, te);
|
|
7095
7095
|
me(a, _, O), te ? (y._f.onBlur && y._f.onBlur(d), c && c(0)) : y._f.onChange && y._f.onChange(d);
|
|
7096
7096
|
const Ue = pe(_, O, te), mr = !Qe(Ue) || ve;
|
|
7097
7097
|
if (!te && x.state.next({
|
|
@@ -7111,16 +7111,16 @@ function Jf(t = {}) {
|
|
|
7111
7111
|
m && (y._f.deps && de(y._f.deps), X(_, D, k, Ue));
|
|
7112
7112
|
}
|
|
7113
7113
|
}, Ve = (d, b) => {
|
|
7114
|
-
if (
|
|
7114
|
+
if (V(r.errors, b) && d.focus)
|
|
7115
7115
|
return d.focus(), 1;
|
|
7116
7116
|
}, de = async (d, b = {}) => {
|
|
7117
7117
|
let _, m;
|
|
7118
7118
|
const y = xn(d);
|
|
7119
7119
|
if (e.resolver) {
|
|
7120
7120
|
const g = await ee(Te(d) ? d : y);
|
|
7121
|
-
_ = Qe(g), m = d ? !y.some((k) =>
|
|
7121
|
+
_ = Qe(g), m = d ? !y.some((k) => V(g, k)) : _;
|
|
7122
7122
|
} else d ? (m = (await Promise.all(y.map(async (g) => {
|
|
7123
|
-
const k =
|
|
7123
|
+
const k = V(n, g);
|
|
7124
7124
|
return await fe(k && k._f ? { [g]: k } : k);
|
|
7125
7125
|
}))).every(Boolean), !(!m && !r.isValid) && I()) : m = _ = await fe(n);
|
|
7126
7126
|
return x.state.next({
|
|
@@ -7132,19 +7132,19 @@ function Jf(t = {}) {
|
|
|
7132
7132
|
const b = {
|
|
7133
7133
|
...i.mount ? a : s
|
|
7134
7134
|
};
|
|
7135
|
-
return Te(d) ? b : Et(d) ?
|
|
7135
|
+
return Te(d) ? b : Et(d) ? V(b, d) : d.map((_) => V(b, _));
|
|
7136
7136
|
}, ut = (d, b) => ({
|
|
7137
|
-
invalid: !!
|
|
7138
|
-
isDirty: !!
|
|
7139
|
-
error:
|
|
7140
|
-
isValidating: !!
|
|
7141
|
-
isTouched: !!
|
|
7137
|
+
invalid: !!V((b || r).errors, d),
|
|
7138
|
+
isDirty: !!V((b || r).dirtyFields, d),
|
|
7139
|
+
error: V((b || r).errors, d),
|
|
7140
|
+
isValidating: !!V(r.validatingFields, d),
|
|
7141
|
+
isTouched: !!V((b || r).touchedFields, d)
|
|
7142
7142
|
}), xt = (d) => {
|
|
7143
7143
|
d && xn(d).forEach((b) => Le(r.errors, b)), x.state.next({
|
|
7144
7144
|
errors: d ? r.errors : {}
|
|
7145
7145
|
});
|
|
7146
7146
|
}, L = (d, b, _) => {
|
|
7147
|
-
const m = (
|
|
7147
|
+
const m = (V(n, d, { _f: {} })._f || {}).ref, y = V(r.errors, d) || {}, { ref: g, message: k, type: D, ...O } = y;
|
|
7148
7148
|
me(r.errors, d, {
|
|
7149
7149
|
...O,
|
|
7150
7150
|
...b,
|
|
@@ -7182,7 +7182,7 @@ function Jf(t = {}) {
|
|
|
7182
7182
|
}, tt = ({ disabled: d, name: b }) => {
|
|
7183
7183
|
(st(d) && i.mount || d || o.disabled.has(b)) && (d ? o.disabled.add(b) : o.disabled.delete(b));
|
|
7184
7184
|
}, rt = (d, b = {}) => {
|
|
7185
|
-
let _ =
|
|
7185
|
+
let _ = V(n, d);
|
|
7186
7186
|
const m = st(b.disabled) || st(e.disabled);
|
|
7187
7187
|
return me(n, d, {
|
|
7188
7188
|
..._ || {},
|
|
@@ -7210,7 +7210,7 @@ function Jf(t = {}) {
|
|
|
7210
7210
|
onBlur: ke,
|
|
7211
7211
|
ref: (y) => {
|
|
7212
7212
|
if (y) {
|
|
7213
|
-
rt(d, b), _ =
|
|
7213
|
+
rt(d, b), _ = V(n, d);
|
|
7214
7214
|
const g = Te(y.value) && y.querySelectorAll && y.querySelectorAll("input,select,textarea")[0] || y, k = zf(g), D = _._f.refs || [];
|
|
7215
7215
|
if (k ? D.find((O) => O === g) : g === _._f.ref)
|
|
7216
7216
|
return;
|
|
@@ -7221,19 +7221,19 @@ function Jf(t = {}) {
|
|
|
7221
7221
|
refs: [
|
|
7222
7222
|
...D.filter(Ys),
|
|
7223
7223
|
g,
|
|
7224
|
-
...Array.isArray(
|
|
7224
|
+
...Array.isArray(V(s, d)) ? [{}] : []
|
|
7225
7225
|
],
|
|
7226
7226
|
ref: { type: g.type, name: d }
|
|
7227
7227
|
} : { ref: g }
|
|
7228
7228
|
}
|
|
7229
7229
|
}), G(d, !1, void 0, g);
|
|
7230
7230
|
} else
|
|
7231
|
-
_ =
|
|
7231
|
+
_ = V(n, d, {}), _._f && (_._f.mount = !1), (e.shouldUnregister || b.shouldUnregister) && !(Ro(o.array, d) && i.action) && o.unMount.add(d);
|
|
7232
7232
|
}
|
|
7233
7233
|
};
|
|
7234
7234
|
}, Fe = () => e.shouldFocusError && wn(n, Ve, o.mount), Ie = (d) => {
|
|
7235
7235
|
st(d) && (x.state.next({ disabled: d }), wn(n, (b, _) => {
|
|
7236
|
-
const m =
|
|
7236
|
+
const m = V(n, _);
|
|
7237
7237
|
m && (b.disabled = m._f.disabled || d, Array.isArray(m._f.refs) && m._f.refs.forEach((y) => {
|
|
7238
7238
|
y.disabled = m._f.disabled || d;
|
|
7239
7239
|
}));
|
|
@@ -7272,7 +7272,7 @@ function Jf(t = {}) {
|
|
|
7272
7272
|
}), m)
|
|
7273
7273
|
throw m;
|
|
7274
7274
|
}, hr = (d, b = {}) => {
|
|
7275
|
-
|
|
7275
|
+
V(n, d) && (Te(b.defaultValue) ? ce(d, je(V(s, d))) : (ce(d, b.defaultValue), me(s, d, je(b.defaultValue))), b.keepTouched || Le(r.touchedFields, d), b.keepDirty || (Le(r.dirtyFields, d), r.isDirty = b.defaultValue ? P(d, je(V(s, d))) : P()), b.keepError || (Le(r.errors, d), p.isValid && I()), x.state.next({ ...r }));
|
|
7276
7276
|
}, wt = (d, b = {}) => {
|
|
7277
7277
|
const _ = d ? je(d) : s, m = je(_), y = Qe(d), g = y ? s : m;
|
|
7278
7278
|
if (b.keepDefaultValues || (s = _), !b.keepValues) {
|
|
@@ -7282,11 +7282,11 @@ function Jf(t = {}) {
|
|
|
7282
7282
|
...Object.keys(yn(s, a))
|
|
7283
7283
|
]);
|
|
7284
7284
|
for (const D of Array.from(k))
|
|
7285
|
-
|
|
7285
|
+
V(r.dirtyFields, D) ? me(g, D, V(a, D)) : ce(D, V(g, D));
|
|
7286
7286
|
} else {
|
|
7287
7287
|
if (Va && Te(d))
|
|
7288
7288
|
for (const k of o.mount) {
|
|
7289
|
-
const D =
|
|
7289
|
+
const D = V(n, k);
|
|
7290
7290
|
if (D && D._f) {
|
|
7291
7291
|
const O = Array.isArray(D._f.refs) ? D._f.refs[0] : D._f.ref;
|
|
7292
7292
|
if (Ss(O)) {
|
|
@@ -7299,7 +7299,7 @@ function Jf(t = {}) {
|
|
|
7299
7299
|
}
|
|
7300
7300
|
}
|
|
7301
7301
|
for (const k of o.mount)
|
|
7302
|
-
ce(k,
|
|
7302
|
+
ce(k, V(g, k));
|
|
7303
7303
|
}
|
|
7304
7304
|
a = je(g), x.array.next({
|
|
7305
7305
|
values: { ...g }
|
|
@@ -7326,7 +7326,7 @@ function Jf(t = {}) {
|
|
|
7326
7326
|
isSubmitting: !1
|
|
7327
7327
|
});
|
|
7328
7328
|
}, Pe = (d, b) => wt(mt(d) ? d(a) : d, b), Gt = (d, b = {}) => {
|
|
7329
|
-
const _ =
|
|
7329
|
+
const _ = V(n, d), m = _ && _._f;
|
|
7330
7330
|
if (m) {
|
|
7331
7331
|
const y = m.refs ? m.refs[0] : m.ref;
|
|
7332
7332
|
y.focus && (y.focus(), b.shouldSelect && mt(y.select) && y.select());
|
|
@@ -7348,7 +7348,7 @@ function Jf(t = {}) {
|
|
|
7348
7348
|
_getWatch: R,
|
|
7349
7349
|
_getDirty: P,
|
|
7350
7350
|
_setValid: I,
|
|
7351
|
-
_setFieldArray:
|
|
7351
|
+
_setFieldArray: M,
|
|
7352
7352
|
_setDisabledField: tt,
|
|
7353
7353
|
_setErrors: U,
|
|
7354
7354
|
_getFieldArray: ne,
|
|
@@ -10448,7 +10448,7 @@ const lp = async (t, e) => (await cn.rloV2.queryMapRepresentationsByCaseNumber(
|
|
|
10448
10448
|
queryFn: () => lp(t, r)
|
|
10449
10449
|
}), Ii = (t, e, r) => {
|
|
10450
10450
|
if (t && "reportValidity" in t) {
|
|
10451
|
-
const n =
|
|
10451
|
+
const n = V(r, e);
|
|
10452
10452
|
t.setCustomValidity(n && n.message || ""), t.reportValidity();
|
|
10453
10453
|
}
|
|
10454
10454
|
}, Jo = (t, e) => {
|
|
@@ -10460,9 +10460,9 @@ const lp = async (t, e) => (await cn.rloV2.queryMapRepresentationsByCaseNumber(
|
|
|
10460
10460
|
e.shouldUseNativeValidation && Jo(t, e);
|
|
10461
10461
|
const r = {};
|
|
10462
10462
|
for (const n in t) {
|
|
10463
|
-
const s =
|
|
10463
|
+
const s = V(e.fields, n), a = Object.assign(t[n] || {}, { ref: s && s.ref });
|
|
10464
10464
|
if (dp(e.names || Object.keys(t), n)) {
|
|
10465
|
-
const i = Object.assign({},
|
|
10465
|
+
const i = Object.assign({}, V(r, n));
|
|
10466
10466
|
me(i, "root", a), me(r, n, i);
|
|
10467
10467
|
} else me(r, n, a);
|
|
10468
10468
|
}
|
|
@@ -10677,7 +10677,7 @@ const xp = $e(_e)`
|
|
|
10677
10677
|
mileageEnd: C
|
|
10678
10678
|
} = hn(), [I, T] = Y(
|
|
10679
10679
|
h.toString()
|
|
10680
|
-
), [
|
|
10680
|
+
), [M, N] = Y(
|
|
10681
10681
|
x.toString()
|
|
10682
10682
|
), [U, G] = Y(!0), [pe, X] = Y(!0), Q = u.map((L) => ({
|
|
10683
10683
|
value: L.id,
|
|
@@ -10695,14 +10695,14 @@ const xp = $e(_e)`
|
|
|
10695
10695
|
const {
|
|
10696
10696
|
data: { response: K }
|
|
10697
10697
|
} = await Sn.queryRoadNets(L.id), { nets: he, start_mileage: qe, end_mileage: Re } = K;
|
|
10698
|
-
w(he), t(qe), e(Re), r(he[0]), n(he[0].length), s(0), T("0"), a(qe),
|
|
10698
|
+
w(he), t(qe), e(Re), r(he[0]), n(he[0].length), s(0), T("0"), a(qe), N(qe.toString()), oe.mapEventEmitter.emit("drawGemRoad", {
|
|
10699
10699
|
netId: he[0].id,
|
|
10700
10700
|
roadId: L.id,
|
|
10701
10701
|
chainage: 0
|
|
10702
10702
|
});
|
|
10703
10703
|
}
|
|
10704
10704
|
}, R = async (L) => {
|
|
10705
|
-
o && (r(L), s(0), T("0"), n(L.length), a(L.from_mileage),
|
|
10705
|
+
o && (r(L), s(0), T("0"), n(L.length), a(L.from_mileage), N(L.from_mileage.toString()), oe.mapEventEmitter.emit("drawGemRoad", {
|
|
10706
10706
|
netId: L.id,
|
|
10707
10707
|
roadId: o.id,
|
|
10708
10708
|
chainage: 0
|
|
@@ -10716,7 +10716,7 @@ const xp = $e(_e)`
|
|
|
10716
10716
|
if (c && o && ce(c, K)) {
|
|
10717
10717
|
s(K), T(K.toString());
|
|
10718
10718
|
const he = c.from_mileage + K;
|
|
10719
|
-
a(he),
|
|
10719
|
+
a(he), N(he.toString()), oe.mapEventEmitter.emit("movePointIcon", K);
|
|
10720
10720
|
}
|
|
10721
10721
|
}, ce = (L, K) => {
|
|
10722
10722
|
const he = K >= 0 && K <= L.length;
|
|
@@ -10729,7 +10729,7 @@ const xp = $e(_e)`
|
|
|
10729
10729
|
);
|
|
10730
10730
|
if (K) {
|
|
10731
10731
|
const he = L - K.from_mileage;
|
|
10732
|
-
r(K), n(K.length), a(L), s(he),
|
|
10732
|
+
r(K), n(K.length), a(L), s(he), N(L.toString()), T(he.toString()), oe.mapEventEmitter.emit("drawGemRoad", {
|
|
10733
10733
|
netId: K.id,
|
|
10734
10734
|
roadId: o.id,
|
|
10735
10735
|
chainage: he
|
|
@@ -10737,7 +10737,7 @@ const xp = $e(_e)`
|
|
|
10737
10737
|
}
|
|
10738
10738
|
} else {
|
|
10739
10739
|
const K = L - c.from_mileage;
|
|
10740
|
-
a(L), s(K),
|
|
10740
|
+
a(L), s(K), N(L.toString()), T(K.toString()), oe.mapEventEmitter.emit("movePointIcon", K);
|
|
10741
10741
|
}
|
|
10742
10742
|
}, Ve = (L) => {
|
|
10743
10743
|
if (!o) return !1;
|
|
@@ -10753,13 +10753,13 @@ const xp = $e(_e)`
|
|
|
10753
10753
|
L >= o.start_mileage && ke(L);
|
|
10754
10754
|
}, ut = (L) => {
|
|
10755
10755
|
const K = L ? Number(L) : 0;
|
|
10756
|
-
Ve(K) && (
|
|
10756
|
+
Ve(K) && (N(K.toString()), ke(K));
|
|
10757
10757
|
}, xt = (L) => {
|
|
10758
10758
|
const K = L ? Number(L) : 0;
|
|
10759
10759
|
T(K.toString()), Se(K.toString());
|
|
10760
10760
|
};
|
|
10761
10761
|
return Oe(() => {
|
|
10762
|
-
|
|
10762
|
+
N(x.toString());
|
|
10763
10763
|
}, [x]), /* @__PURE__ */ re(at, { children: [
|
|
10764
10764
|
/* @__PURE__ */ v(
|
|
10765
10765
|
ms,
|
|
@@ -10822,11 +10822,11 @@ const xp = $e(_e)`
|
|
|
10822
10822
|
/* @__PURE__ */ v(
|
|
10823
10823
|
ps,
|
|
10824
10824
|
{
|
|
10825
|
-
value:
|
|
10825
|
+
value: M,
|
|
10826
10826
|
label: "Kilometraż",
|
|
10827
10827
|
sx: { width: "100px" },
|
|
10828
10828
|
type: "number",
|
|
10829
|
-
onChange: (L) =>
|
|
10829
|
+
onChange: (L) => N(L.target.value),
|
|
10830
10830
|
onBlur: (L) => ut(L.target.value),
|
|
10831
10831
|
errorMessage: pe ? "" : "Błędna wartość"
|
|
10832
10832
|
}
|
|
@@ -10916,11 +10916,11 @@ const xp = $e(_e)`
|
|
|
10916
10916
|
start_mileage: I,
|
|
10917
10917
|
end_mileage: T
|
|
10918
10918
|
}));
|
|
10919
|
-
const
|
|
10920
|
-
r(
|
|
10921
|
-
const { from_mileage:
|
|
10919
|
+
const M = C.find((G) => G.id == h);
|
|
10920
|
+
r(M);
|
|
10921
|
+
const { from_mileage: N, length: U } = M;
|
|
10922
10922
|
t(I), e(T), n(U), s(S), a(
|
|
10923
|
-
Number(I) + Number(
|
|
10923
|
+
Number(I) + Number(N) + S
|
|
10924
10924
|
);
|
|
10925
10925
|
}
|
|
10926
10926
|
},
|
|
@@ -11176,7 +11176,7 @@ const Pp = Ta`
|
|
|
11176
11176
|
a.current
|
|
11177
11177
|
), [I, T] = Y(
|
|
11178
11178
|
t.current
|
|
11179
|
-
), [
|
|
11179
|
+
), [M, N] = Y(
|
|
11180
11180
|
i.current
|
|
11181
11181
|
);
|
|
11182
11182
|
Oe(() => (oe.snapEventEmitter.on("map:snap:deactivate", () => {
|
|
@@ -11188,8 +11188,8 @@ const Pp = Ta`
|
|
|
11188
11188
|
}), () => {
|
|
11189
11189
|
oe.snapEventEmitter.off("map:snap:angle:disable"), oe.snapEventEmitter.off("map:snap:angle:enable");
|
|
11190
11190
|
}), []), Oe(() => {
|
|
11191
|
-
oe.snapEventEmitter.emit("map:snap:update:config",
|
|
11192
|
-
}, [
|
|
11191
|
+
oe.snapEventEmitter.emit("map:snap:update:config", M);
|
|
11192
|
+
}, [M]), Oe(() => {
|
|
11193
11193
|
oe.snapEventEmitter.emit("map:snap:middle:toggle", {
|
|
11194
11194
|
snapToMiddleOfLine: u
|
|
11195
11195
|
});
|
|
@@ -11205,13 +11205,13 @@ const Pp = Ta`
|
|
|
11205
11205
|
const U = () => {
|
|
11206
11206
|
oe.snapEventEmitter.emit("map:snap:toggle"), c(!o);
|
|
11207
11207
|
}, G = (j) => {
|
|
11208
|
-
|
|
11209
|
-
...
|
|
11210
|
-
[j]: !
|
|
11208
|
+
N({
|
|
11209
|
+
...M,
|
|
11210
|
+
[j]: !M[j]
|
|
11211
11211
|
});
|
|
11212
11212
|
}, pe = (j, P) => {
|
|
11213
|
-
|
|
11214
|
-
...
|
|
11213
|
+
N({
|
|
11214
|
+
...M,
|
|
11215
11215
|
[j]: P
|
|
11216
11216
|
});
|
|
11217
11217
|
}, X = () => {
|
|
@@ -11240,7 +11240,7 @@ const Pp = Ta`
|
|
|
11240
11240
|
Vt,
|
|
11241
11241
|
{
|
|
11242
11242
|
size: "medium",
|
|
11243
|
-
color: gr(
|
|
11243
|
+
color: gr(M.edge),
|
|
11244
11244
|
onClick: () => G("edge"),
|
|
11245
11245
|
children: /* @__PURE__ */ v(ba, {})
|
|
11246
11246
|
}
|
|
@@ -11249,7 +11249,7 @@ const Pp = Ta`
|
|
|
11249
11249
|
Vt,
|
|
11250
11250
|
{
|
|
11251
11251
|
size: "medium",
|
|
11252
|
-
color: gr(
|
|
11252
|
+
color: gr(M.vertex),
|
|
11253
11253
|
onClick: () => G("vertex"),
|
|
11254
11254
|
children: /* @__PURE__ */ v(pf, {})
|
|
11255
11255
|
}
|
|
@@ -11310,8 +11310,8 @@ const Pp = Ta`
|
|
|
11310
11310
|
/* @__PURE__ */ v(
|
|
11311
11311
|
zp,
|
|
11312
11312
|
{
|
|
11313
|
-
value:
|
|
11314
|
-
defaultValue:
|
|
11313
|
+
value: M.pixelTolerance,
|
|
11314
|
+
defaultValue: M.pixelTolerance,
|
|
11315
11315
|
onChange: (j, P) => pe("pixelTolerance", P),
|
|
11316
11316
|
getAriaValueText: Li,
|
|
11317
11317
|
valueLabelFormat: Li,
|
|
@@ -11326,19 +11326,21 @@ const Pp = Ta`
|
|
|
11326
11326
|
mapElementsConfig: n,
|
|
11327
11327
|
sidebarConfig: s,
|
|
11328
11328
|
initialSelectedFeatures: a,
|
|
11329
|
-
multiSelectEnabled: i
|
|
11329
|
+
multiSelectEnabled: i,
|
|
11330
|
+
initialDrawnGeometries: o
|
|
11330
11331
|
}) => {
|
|
11331
|
-
const { isMeasurementHidden:
|
|
11332
|
+
const { isMeasurementHidden: c, angleValue: u, isAngleHidden: p } = Aa(), { mapLayers: h, isDrawing: x, isEditing: S, selectedGeometry: E } = Zn(), { distanceOverlayElement: w, angleOverlayElement: C, interactions: I } = un();
|
|
11332
11333
|
Bl(
|
|
11333
11334
|
t,
|
|
11334
|
-
|
|
11335
|
+
h,
|
|
11335
11336
|
e,
|
|
11336
11337
|
a,
|
|
11337
|
-
i
|
|
11338
|
+
i,
|
|
11339
|
+
o
|
|
11338
11340
|
);
|
|
11339
|
-
const
|
|
11340
|
-
|
|
11341
|
-
|
|
11341
|
+
const T = ql(
|
|
11342
|
+
E == null ? void 0 : E.value,
|
|
11343
|
+
h
|
|
11342
11344
|
);
|
|
11343
11345
|
return /* @__PURE__ */ re(at, { children: [
|
|
11344
11346
|
s.sidebarVisible && /* @__PURE__ */ v(Dp, { sidebarConfig: s }),
|
|
@@ -11354,33 +11356,33 @@ const Pp = Ta`
|
|
|
11354
11356
|
/* @__PURE__ */ v(
|
|
11355
11357
|
Kl,
|
|
11356
11358
|
{
|
|
11357
|
-
ref:
|
|
11358
|
-
hidden:
|
|
11359
|
+
ref: w,
|
|
11360
|
+
hidden: c
|
|
11359
11361
|
}
|
|
11360
11362
|
),
|
|
11361
11363
|
/* @__PURE__ */ v(
|
|
11362
11364
|
To,
|
|
11363
11365
|
{
|
|
11364
|
-
angle:
|
|
11365
|
-
ref:
|
|
11366
|
-
hidden:
|
|
11366
|
+
angle: u ?? 0,
|
|
11367
|
+
ref: C,
|
|
11368
|
+
hidden: p || typeof u != "number"
|
|
11367
11369
|
}
|
|
11368
11370
|
),
|
|
11369
11371
|
/* @__PURE__ */ v($t, { children: /* @__PURE__ */ v(Cf, {}) }),
|
|
11370
11372
|
n.mapElementsVisible && /* @__PURE__ */ re(at, { children: [
|
|
11371
|
-
|
|
11373
|
+
T === "LineString" && n.items.drawCreator && /* @__PURE__ */ v(
|
|
11372
11374
|
hf,
|
|
11373
11375
|
{
|
|
11374
|
-
addDrawCreatorPoint: (
|
|
11376
|
+
addDrawCreatorPoint: (M) => {
|
|
11375
11377
|
Hl({
|
|
11376
|
-
...
|
|
11377
|
-
drawInteraction:
|
|
11378
|
+
...M,
|
|
11379
|
+
drawInteraction: I.current.draw
|
|
11378
11380
|
});
|
|
11379
11381
|
},
|
|
11380
|
-
onDrawEnd: () =>
|
|
11382
|
+
onDrawEnd: () => I.current.draw.finishDrawing()
|
|
11381
11383
|
}
|
|
11382
11384
|
),
|
|
11383
|
-
(
|
|
11385
|
+
(x || S) && n.items.snapBar && /* @__PURE__ */ v($p, {})
|
|
11384
11386
|
] })
|
|
11385
11387
|
] })
|
|
11386
11388
|
}
|
|
@@ -11396,11 +11398,12 @@ const Pp = Ta`
|
|
|
11396
11398
|
setOuterDrawnGeometries: i,
|
|
11397
11399
|
setOuterSelectedMapObjects: o,
|
|
11398
11400
|
selectedFeatures: c,
|
|
11399
|
-
multiSelectEnabled: u
|
|
11401
|
+
multiSelectEnabled: u,
|
|
11402
|
+
initialDrawnGeometries: p
|
|
11400
11403
|
}) => {
|
|
11401
11404
|
jl();
|
|
11402
|
-
const { initialized:
|
|
11403
|
-
return /* @__PURE__ */ v(at, { children:
|
|
11405
|
+
const { initialized: h } = un();
|
|
11406
|
+
return /* @__PURE__ */ v(at, { children: h ? /* @__PURE__ */ v(zl, { children: /* @__PURE__ */ v($l, { children: /* @__PURE__ */ v(Ul, { children: /* @__PURE__ */ v(
|
|
11404
11407
|
Nd,
|
|
11405
11408
|
{
|
|
11406
11409
|
mapLayers: Zl(e),
|
|
@@ -11416,7 +11419,8 @@ const Pp = Ta`
|
|
|
11416
11419
|
mapElementsConfig: a,
|
|
11417
11420
|
caseObjectId: r || -1,
|
|
11418
11421
|
multiSelectEnabled: u,
|
|
11419
|
-
initialSelectedFeatures: c
|
|
11422
|
+
initialSelectedFeatures: c,
|
|
11423
|
+
initialDrawnGeometries: p
|
|
11420
11424
|
}
|
|
11421
11425
|
) })
|
|
11422
11426
|
}
|