@omnic/widget-locations 1.1.81 → 1.1.82
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/lib/widget.esm.js
CHANGED
|
@@ -28,8 +28,8 @@ function ep({ baseColor: t, highlightColor: e, width: n, height: r, borderRadius
|
|
|
28
28
|
function et({ count: t = 1, wrapper: e, className: n, containerClassName: r, containerTestId: i, circle: o = !1, style: s, ...a }) {
|
|
29
29
|
var c, l, u;
|
|
30
30
|
const d = $.useContext(od), f = { ...a };
|
|
31
|
-
for (const [
|
|
32
|
-
typeof S > "u" && delete f[
|
|
31
|
+
for (const [y, S] of Object.entries(a))
|
|
32
|
+
typeof S > "u" && delete f[y];
|
|
33
33
|
const g = {
|
|
34
34
|
...d,
|
|
35
35
|
...f,
|
|
@@ -40,22 +40,22 @@ function et({ count: t = 1, wrapper: e, className: n, containerClassName: r, con
|
|
|
40
40
|
};
|
|
41
41
|
let h = "react-loading-skeleton";
|
|
42
42
|
n && (h += ` ${n}`);
|
|
43
|
-
const b = (c = g.inline) !== null && c !== void 0 ? c : !1,
|
|
44
|
-
for (let
|
|
43
|
+
const b = (c = g.inline) !== null && c !== void 0 ? c : !1, v = [], _ = Math.ceil(t);
|
|
44
|
+
for (let y = 0; y < _; y++) {
|
|
45
45
|
let S = p;
|
|
46
|
-
if (_ > t &&
|
|
46
|
+
if (_ > t && y === _ - 1) {
|
|
47
47
|
const m = (l = S.width) !== null && l !== void 0 ? l : "100%", w = t % 1, O = typeof m == "number" ? m * w : `calc(${m} * ${w})`;
|
|
48
48
|
S = { ...S, width: O };
|
|
49
49
|
}
|
|
50
|
-
const E = $.createElement("span", { className: h, style: S, key:
|
|
51
|
-
b ?
|
|
50
|
+
const E = $.createElement("span", { className: h, style: S, key: y }, "");
|
|
51
|
+
b ? v.push(E) : v.push($.createElement(
|
|
52
52
|
$.Fragment,
|
|
53
|
-
{ key:
|
|
53
|
+
{ key: y },
|
|
54
54
|
E,
|
|
55
55
|
$.createElement("br", null)
|
|
56
56
|
));
|
|
57
57
|
}
|
|
58
|
-
return $.createElement("span", { className: r, "data-testid": i, "aria-live": "polite", "aria-busy": (u = g.enableAnimation) !== null && u !== void 0 ? u : sd }, e ?
|
|
58
|
+
return $.createElement("span", { className: r, "data-testid": i, "aria-live": "polite", "aria-busy": (u = g.enableAnimation) !== null && u !== void 0 ? u : sd }, e ? v.map((y, S) => $.createElement(e, { key: S }, y)) : v);
|
|
59
59
|
}
|
|
60
60
|
function tp({ children: t, ...e }) {
|
|
61
61
|
return $.createElement(od.Provider, { value: e }, t);
|
|
@@ -652,16 +652,16 @@ function Os(t, e, n) {
|
|
|
652
652
|
return R.isArrayBuffer(p) || R.isTypedArray(p) ? c && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
653
653
|
}
|
|
654
654
|
function u(p, h, b) {
|
|
655
|
-
let
|
|
655
|
+
let v = p;
|
|
656
656
|
if (p && !b && typeof p == "object") {
|
|
657
657
|
if (R.endsWith(h, "{}"))
|
|
658
658
|
h = r ? h : h.slice(0, -2), p = JSON.stringify(p);
|
|
659
|
-
else if (R.isArray(p) && M0(p) || (R.isFileList(p) || R.endsWith(h, "[]")) && (
|
|
660
|
-
return h = xd(h),
|
|
661
|
-
!(R.isUndefined(
|
|
659
|
+
else if (R.isArray(p) && M0(p) || (R.isFileList(p) || R.endsWith(h, "[]")) && (v = R.toArray(p)))
|
|
660
|
+
return h = xd(h), v.forEach(function(y, S) {
|
|
661
|
+
!(R.isUndefined(y) || y === null) && e.append(
|
|
662
662
|
// eslint-disable-next-line no-nested-ternary
|
|
663
663
|
s === !0 ? rl([h], S, o) : s === null ? h : h + "[]",
|
|
664
|
-
l(
|
|
664
|
+
l(y)
|
|
665
665
|
);
|
|
666
666
|
}), !1;
|
|
667
667
|
}
|
|
@@ -676,14 +676,14 @@ function Os(t, e, n) {
|
|
|
676
676
|
if (!R.isUndefined(p)) {
|
|
677
677
|
if (d.indexOf(p) !== -1)
|
|
678
678
|
throw Error("Circular reference detected in " + h.join("."));
|
|
679
|
-
d.push(p), R.forEach(p, function(
|
|
680
|
-
(!(R.isUndefined(
|
|
679
|
+
d.push(p), R.forEach(p, function(v, _) {
|
|
680
|
+
(!(R.isUndefined(v) || v === null) && i.call(
|
|
681
681
|
e,
|
|
682
|
-
|
|
682
|
+
v,
|
|
683
683
|
R.isString(_) ? _.trim() : _,
|
|
684
684
|
h,
|
|
685
685
|
f
|
|
686
|
-
)) === !0 && g(
|
|
686
|
+
)) === !0 && g(v, h ? h.concat(_) : [_]);
|
|
687
687
|
}), d.pop();
|
|
688
688
|
}
|
|
689
689
|
}
|
|
@@ -1252,7 +1252,7 @@ const om = typeof XMLHttpRequest < "u", sm = om && function(t) {
|
|
|
1252
1252
|
if (Lt.hasStandardBrowserEnv || Lt.hasStandardBrowserWebWorkerEnv)
|
|
1253
1253
|
o.setContentType(!1);
|
|
1254
1254
|
else if ((u = o.getContentType()) !== !1) {
|
|
1255
|
-
const [h, ...b] = u ? u.split(";").map((
|
|
1255
|
+
const [h, ...b] = u ? u.split(";").map((v) => v.trim()).filter(Boolean) : [];
|
|
1256
1256
|
o.setContentType([h || "multipart/form-data", ...b].join("; "));
|
|
1257
1257
|
}
|
|
1258
1258
|
}
|
|
@@ -1268,7 +1268,7 @@ const om = typeof XMLHttpRequest < "u", sm = om && function(t) {
|
|
|
1268
1268
|
return;
|
|
1269
1269
|
const h = Wt.from(
|
|
1270
1270
|
"getAllResponseHeaders" in d && d.getAllResponseHeaders()
|
|
1271
|
-
),
|
|
1271
|
+
), v = {
|
|
1272
1272
|
data: !s || s === "text" || s === "json" ? d.responseText : d.response,
|
|
1273
1273
|
status: d.status,
|
|
1274
1274
|
statusText: d.statusText,
|
|
@@ -1276,11 +1276,11 @@ const om = typeof XMLHttpRequest < "u", sm = om && function(t) {
|
|
|
1276
1276
|
config: t,
|
|
1277
1277
|
request: d
|
|
1278
1278
|
};
|
|
1279
|
-
X0(function(
|
|
1280
|
-
n(
|
|
1281
|
-
}, function(
|
|
1282
|
-
r(
|
|
1283
|
-
},
|
|
1279
|
+
X0(function(y) {
|
|
1280
|
+
n(y), l();
|
|
1281
|
+
}, function(y) {
|
|
1282
|
+
r(y), l();
|
|
1283
|
+
}, v), d = null;
|
|
1284
1284
|
}
|
|
1285
1285
|
if ("onloadend" in d ? d.onloadend = g : d.onreadystatechange = function() {
|
|
1286
1286
|
!d || d.readyState !== 4 || d.status === 0 && !(d.responseURL && d.responseURL.indexOf("file:") === 0) || setTimeout(g);
|
|
@@ -1290,10 +1290,10 @@ const om = typeof XMLHttpRequest < "u", sm = om && function(t) {
|
|
|
1290
1290
|
r(new oe("Network Error", oe.ERR_NETWORK, t, d)), d = null;
|
|
1291
1291
|
}, d.ontimeout = function() {
|
|
1292
1292
|
let b = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
|
|
1293
|
-
const
|
|
1293
|
+
const v = t.transitional || Pd;
|
|
1294
1294
|
t.timeoutErrorMessage && (b = t.timeoutErrorMessage), r(new oe(
|
|
1295
1295
|
b,
|
|
1296
|
-
|
|
1296
|
+
v.clarifyTimeoutError ? oe.ETIMEDOUT : oe.ECONNABORTED,
|
|
1297
1297
|
t,
|
|
1298
1298
|
d
|
|
1299
1299
|
)), d = null;
|
|
@@ -1301,8 +1301,8 @@ const om = typeof XMLHttpRequest < "u", sm = om && function(t) {
|
|
|
1301
1301
|
const h = t.xsrfHeaderName && t.xsrfCookieName && Y0.read(t.xsrfCookieName);
|
|
1302
1302
|
h && o.set(t.xsrfHeaderName, h);
|
|
1303
1303
|
}
|
|
1304
|
-
i === void 0 && o.setContentType(null), "setRequestHeader" in d && R.forEach(o.toJSON(), function(b,
|
|
1305
|
-
d.setRequestHeader(
|
|
1304
|
+
i === void 0 && o.setContentType(null), "setRequestHeader" in d && R.forEach(o.toJSON(), function(b, v) {
|
|
1305
|
+
d.setRequestHeader(v, b);
|
|
1306
1306
|
}), R.isUndefined(t.withCredentials) || (d.withCredentials = !!t.withCredentials), s && s !== "json" && (d.responseType = t.responseType), typeof t.onDownloadProgress == "function" && d.addEventListener("progress", al(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && d.upload && d.upload.addEventListener("progress", al(t.onUploadProgress)), (t.cancelToken || t.signal) && (c = (h) => {
|
|
1307
1307
|
d && (r(!h || h.type ? new qi(null, t, d) : h), d.abort(), d = null);
|
|
1308
1308
|
}, t.cancelToken && t.cancelToken.subscribe(c), t.signal && (t.signal.aborted ? c() : t.signal.addEventListener("abort", c)));
|
|
@@ -1948,7 +1948,7 @@ var ns = {};
|
|
|
1948
1948
|
function b(m) {
|
|
1949
1949
|
s.outputFormat = m;
|
|
1950
1950
|
}
|
|
1951
|
-
function
|
|
1951
|
+
function v(m) {
|
|
1952
1952
|
s.enable_address_descriptor = m;
|
|
1953
1953
|
}
|
|
1954
1954
|
function _(m, w, O) {
|
|
@@ -1957,7 +1957,7 @@ var ns = {};
|
|
|
1957
1957
|
requestType: ${typeof m}, value: ` + typeof w);
|
|
1958
1958
|
return a(Object.assign(Object.assign(Object.assign({}, s), O), { [m]: w }));
|
|
1959
1959
|
}
|
|
1960
|
-
function
|
|
1960
|
+
function y(m, w, O, T) {
|
|
1961
1961
|
var P = { outputFormat: n.JSON };
|
|
1962
1962
|
return w && (P.key = w), O && (P.language = O), T && (P.region = T), _(e.ADDRESS, m, P);
|
|
1963
1963
|
}
|
|
@@ -1969,7 +1969,7 @@ var ns = {};
|
|
|
1969
1969
|
var A = { outputFormat: n.JSON };
|
|
1970
1970
|
return O && (A.key = O), T && (A.language = T), P && (A.region = P), L && (A.location_type = L), _(e.LATLNG, m + "," + w, A);
|
|
1971
1971
|
}
|
|
1972
|
-
t.setDefaults = c, t.setKey = l, t.setLanguage = u, t.setRegion = d, t.setComponents = f, t.setBounds = g, t.setResultType = p, t.setLocationType = h, t.setOutputFormat = b, t.enableAddressDescriptor =
|
|
1972
|
+
t.setDefaults = c, t.setKey = l, t.setLanguage = u, t.setRegion = d, t.setComponents = f, t.setBounds = g, t.setResultType = p, t.setLocationType = h, t.setOutputFormat = b, t.enableAddressDescriptor = v, t.geocode = _, t.fromAddress = y, t.fromPlaceId = S, t.fromLatLng = E;
|
|
1973
1973
|
})(ns);
|
|
1974
1974
|
const gm = (t) => typeof t == "string", pl = (t) => Array.isArray(t) && t.length === 2;
|
|
1975
1975
|
async function ml(t, e, n) {
|
|
@@ -2554,80 +2554,80 @@ const Im = {
|
|
|
2554
2554
|
...Im,
|
|
2555
2555
|
...n
|
|
2556
2556
|
};
|
|
2557
|
-
const r = Symbol("ProxyTarget"), { equals: i, isShallow: o, ignoreDetached: s, details: a } = n, c = new Tm(i), l = typeof n.onValidate == "function", u = new Ln(l), d = (
|
|
2558
|
-
!gl(c, n, S) && !(s && c.isDetached(
|
|
2559
|
-
}, g = (
|
|
2560
|
-
u.isCloning && u.isPartOfClone(
|
|
2561
|
-
}, p = (
|
|
2562
|
-
if (Em(
|
|
2563
|
-
return
|
|
2557
|
+
const r = Symbol("ProxyTarget"), { equals: i, isShallow: o, ignoreDetached: s, details: a } = n, c = new Tm(i), l = typeof n.onValidate == "function", u = new Ln(l), d = (y, S, E, m, w) => !l || u.isCloning || n.onValidate(Ke.concat(c.getPath(y), S), E, m, w) === !0, f = (y, S, E, m) => {
|
|
2558
|
+
!gl(c, n, S) && !(s && c.isDetached(y, t)) && g(c.getPath(y), S, E, m);
|
|
2559
|
+
}, g = (y, S, E, m, w) => {
|
|
2560
|
+
u.isCloning && u.isPartOfClone(y) ? u.update(y, S, m) : e(Ke.concat(y, S), E, m, w);
|
|
2561
|
+
}, p = (y) => y && (y[r] ?? y), h = (y, S, E, m) => {
|
|
2562
|
+
if (Em(y) || E === "constructor" || o && !Ln.isHandledMethod(S, E) || gl(c, n, E) || c.isGetInvariant(S, E) || s && c.isDetached(S, t))
|
|
2563
|
+
return y;
|
|
2564
2564
|
m === void 0 && (m = c.getPath(S));
|
|
2565
|
-
const w = Ke.concat(m, E), O = c.getPath(
|
|
2566
|
-
return O && b(w, O) ? c.getProxy(
|
|
2567
|
-
}, b = (
|
|
2568
|
-
if (rs(
|
|
2565
|
+
const w = Ke.concat(m, E), O = c.getPath(y);
|
|
2566
|
+
return O && b(w, O) ? c.getProxy(y, O, v, r) : c.getProxy(y, w, v, r);
|
|
2567
|
+
}, b = (y, S) => {
|
|
2568
|
+
if (rs(y) || y.length <= S.length || qe(S) && S.length === 0)
|
|
2569
2569
|
return !1;
|
|
2570
|
-
const E = qe(
|
|
2570
|
+
const E = qe(y) ? y : y.split(cn), m = qe(S) ? S : S.split(cn);
|
|
2571
2571
|
return E.length <= m.length ? !1 : !m.some((w, O) => w !== E[O]);
|
|
2572
|
-
},
|
|
2573
|
-
get(
|
|
2572
|
+
}, v = {
|
|
2573
|
+
get(y, S, E) {
|
|
2574
2574
|
if (rs(S)) {
|
|
2575
2575
|
if (S === r || S === yc)
|
|
2576
|
-
return
|
|
2577
|
-
if (S === Vd && !c.isUnsubscribed && c.getPath(
|
|
2578
|
-
return c.unsubscribe(),
|
|
2576
|
+
return y;
|
|
2577
|
+
if (S === Vd && !c.isUnsubscribed && c.getPath(y).length === 0)
|
|
2578
|
+
return c.unsubscribe(), y;
|
|
2579
2579
|
}
|
|
2580
|
-
const m = wa(
|
|
2581
|
-
return h(m,
|
|
2580
|
+
const m = wa(y) ? Reflect.get(y, S) : Reflect.get(y, S, E);
|
|
2581
|
+
return h(m, y, S);
|
|
2582
2582
|
},
|
|
2583
|
-
set(
|
|
2583
|
+
set(y, S, E, m) {
|
|
2584
2584
|
E = p(E);
|
|
2585
|
-
const w =
|
|
2586
|
-
if (i(O, E) && S in
|
|
2585
|
+
const w = y[r] ?? y, O = w[S];
|
|
2586
|
+
if (i(O, E) && S in y)
|
|
2587
2587
|
return !0;
|
|
2588
|
-
const T = d(
|
|
2589
|
-
return T && c.setProperty(w, S, E, m, O) ? (f(
|
|
2588
|
+
const T = d(y, S, E, O);
|
|
2589
|
+
return T && c.setProperty(w, S, E, m, O) ? (f(y, S, y[S], O), !0) : !T;
|
|
2590
2590
|
},
|
|
2591
|
-
defineProperty(
|
|
2592
|
-
if (!c.isSameDescriptor(E,
|
|
2593
|
-
const m =
|
|
2594
|
-
d(
|
|
2591
|
+
defineProperty(y, S, E) {
|
|
2592
|
+
if (!c.isSameDescriptor(E, y, S)) {
|
|
2593
|
+
const m = y[S];
|
|
2594
|
+
d(y, S, E.value, m) && c.defineProperty(y, S, E, m) && f(y, S, E.value, m);
|
|
2595
2595
|
}
|
|
2596
2596
|
return !0;
|
|
2597
2597
|
},
|
|
2598
|
-
deleteProperty(
|
|
2599
|
-
if (!Reflect.has(
|
|
2598
|
+
deleteProperty(y, S) {
|
|
2599
|
+
if (!Reflect.has(y, S))
|
|
2600
2600
|
return !0;
|
|
2601
|
-
const E = Reflect.get(
|
|
2602
|
-
return m && c.deleteProperty(
|
|
2601
|
+
const E = Reflect.get(y, S), m = d(y, S, void 0, E);
|
|
2602
|
+
return m && c.deleteProperty(y, S, E) ? (f(y, S, void 0, E), !0) : !m;
|
|
2603
2603
|
},
|
|
2604
|
-
apply(
|
|
2604
|
+
apply(y, S, E) {
|
|
2605
2605
|
const m = S[r] ?? S;
|
|
2606
2606
|
if (c.isUnsubscribed)
|
|
2607
|
-
return Reflect.apply(
|
|
2608
|
-
if ((a === !1 || a !== !0 && !a.includes(
|
|
2609
|
-
let w = Ke.initial(c.getPath(
|
|
2610
|
-
const O = Ln.isHandledMethod(m,
|
|
2607
|
+
return Reflect.apply(y, m, E);
|
|
2608
|
+
if ((a === !1 || a !== !0 && !a.includes(y.name)) && Ln.isHandledType(m)) {
|
|
2609
|
+
let w = Ke.initial(c.getPath(y));
|
|
2610
|
+
const O = Ln.isHandledMethod(m, y.name);
|
|
2611
2611
|
u.start(m, w, E);
|
|
2612
2612
|
let T = Reflect.apply(
|
|
2613
|
-
|
|
2614
|
-
u.preferredThisArg(
|
|
2613
|
+
y,
|
|
2614
|
+
u.preferredThisArg(y, S, m),
|
|
2615
2615
|
O ? E.map((A) => p(A)) : E
|
|
2616
2616
|
);
|
|
2617
2617
|
const P = u.isChanged(m, i), L = u.stop();
|
|
2618
|
-
if (Ln.isHandledType(T) && O && (S instanceof Map &&
|
|
2618
|
+
if (Ln.isHandledType(T) && O && (S instanceof Map && y.name === "get" && (w = Ke.concat(w, E[0])), T = c.getProxy(T, w, v)), P) {
|
|
2619
2619
|
const A = {
|
|
2620
|
-
name:
|
|
2620
|
+
name: y.name,
|
|
2621
2621
|
args: E,
|
|
2622
2622
|
result: T
|
|
2623
2623
|
}, k = u.isCloning ? Ke.initial(w) : w, F = u.isCloning ? Ke.last(w) : "";
|
|
2624
2624
|
d(Ke.get(t, k), F, m, L, A) ? g(k, F, m, L, A) : u.undo(m);
|
|
2625
2625
|
}
|
|
2626
|
-
return (S instanceof Map || S instanceof Set) && Om(T) ? xm(T,
|
|
2626
|
+
return (S instanceof Map || S instanceof Set) && Om(T) ? xm(T, y, S, w, h) : T;
|
|
2627
2627
|
}
|
|
2628
|
-
return Reflect.apply(
|
|
2628
|
+
return Reflect.apply(y, S, E);
|
|
2629
2629
|
}
|
|
2630
|
-
}, _ = c.getProxy(t, n.pathAsArray ? [] : "",
|
|
2630
|
+
}, _ = c.getProxy(t, n.pathAsArray ? [] : "", v);
|
|
2631
2631
|
return e = e.bind(_), l && (n.onValidate = n.onValidate.bind(_)), _;
|
|
2632
2632
|
};
|
|
2633
2633
|
pi.target = (t) => (t == null ? void 0 : t[yc]) ?? t;
|
|
@@ -3200,10 +3200,10 @@ function gg(t, e) {
|
|
|
3200
3200
|
reuseMaps: p,
|
|
3201
3201
|
renderingType: h,
|
|
3202
3202
|
colorScheme: b
|
|
3203
|
-
} = t,
|
|
3204
|
-
!l && (!_ || !
|
|
3205
|
-
for (const E of Object.keys(
|
|
3206
|
-
|
|
3203
|
+
} = t, v = zn(t, pg), _ = t.zoom !== void 0 || t.defaultZoom !== void 0, y = t.center !== void 0 || t.defaultCenter !== void 0;
|
|
3204
|
+
!l && (!_ || !y) && console.warn("<Map> component is missing configuration. You have to provide zoom and center (via the `zoom`/`defaultZoom` and `center`/`defaultCenter` props) or specify the region to show using `defaultBounds`. See https://visgl.github.io/react-google-maps/docs/api-reference/components/map#required"), !v.center && u && (v.center = u), !v.zoom && Number.isFinite(d) && (v.zoom = d), !v.heading && Number.isFinite(f) && (v.heading = f), !v.tilt && Number.isFinite(g) && (v.tilt = g);
|
|
3205
|
+
for (const E of Object.keys(v))
|
|
3206
|
+
v[E] === void 0 && delete v[E];
|
|
3207
3207
|
const S = B(void 0);
|
|
3208
3208
|
return j(
|
|
3209
3209
|
() => {
|
|
@@ -3216,7 +3216,7 @@ function gg(t, e) {
|
|
|
3216
3216
|
mapId: w
|
|
3217
3217
|
} = t, O = `${w || "default"}:${h || "default"}:${b || "LIGHT"}`;
|
|
3218
3218
|
let T, P;
|
|
3219
|
-
if (p && zo.has(O) ? (P = zo.pop(O), T = P.getDiv(), o.appendChild(T), P.setOptions(
|
|
3219
|
+
if (p && zo.has(O) ? (P = zo.pop(O), T = P.getDiv(), o.appendChild(T), P.setOptions(v), setTimeout(() => P.setCenter(P.getCenter()), 0)) : (T = document.createElement("div"), T.style.height = "100%", o.appendChild(T), P = new google.maps.Map(T, Nt({}, v, h ? {
|
|
3220
3220
|
renderingType: h
|
|
3221
3221
|
} : {}, b ? {
|
|
3222
3222
|
colorScheme: b
|
|
@@ -3226,7 +3226,7 @@ function gg(t, e) {
|
|
|
3226
3226
|
} = l, A = zn(l, mg);
|
|
3227
3227
|
P.fitBounds(A, L);
|
|
3228
3228
|
} else
|
|
3229
|
-
(!_ || !
|
|
3229
|
+
(!_ || !y) && P.fitBounds({
|
|
3230
3230
|
east: 180,
|
|
3231
3231
|
west: -180,
|
|
3232
3232
|
south: -90,
|
|
@@ -3294,11 +3294,11 @@ const ef = $.createContext(null), tf = (t) => {
|
|
|
3294
3294
|
let g = null, p = null;
|
|
3295
3295
|
f && Number.isFinite(f.lat) && Number.isFinite(f.lng) && (g = f.lat, p = f.lng);
|
|
3296
3296
|
const h = we(() => {
|
|
3297
|
-
var _,
|
|
3297
|
+
var _, y, S, E, m;
|
|
3298
3298
|
return {
|
|
3299
3299
|
center: {
|
|
3300
3300
|
lat: (_ = g) != null ? _ : 0,
|
|
3301
|
-
lng: (
|
|
3301
|
+
lng: (y = p) != null ? y : 0
|
|
3302
3302
|
},
|
|
3303
3303
|
zoom: (S = t.zoom) != null ? S : 0,
|
|
3304
3304
|
heading: (E = t.heading) != null ? E : 0,
|
|
@@ -3320,7 +3320,7 @@ const ef = $.createContext(null), tf = (t) => {
|
|
|
3320
3320
|
position: "relative",
|
|
3321
3321
|
// when using deckgl, the map should be sent to the back
|
|
3322
3322
|
zIndex: u ? -1 : 0
|
|
3323
|
-
}, i), [i, u]),
|
|
3323
|
+
}, i), [i, u]), v = we(() => ({
|
|
3324
3324
|
map: a
|
|
3325
3325
|
}), [a]);
|
|
3326
3326
|
return s === Gt.AUTH_FAILURE ? /* @__PURE__ */ $.createElement("div", {
|
|
@@ -3336,7 +3336,7 @@ const ef = $.createContext(null), tf = (t) => {
|
|
|
3336
3336
|
}, n ? {
|
|
3337
3337
|
id: n
|
|
3338
3338
|
} : {}), a ? /* @__PURE__ */ $.createElement(ef.Provider, {
|
|
3339
|
-
value:
|
|
3339
|
+
value: v
|
|
3340
3340
|
}, e) : null);
|
|
3341
3341
|
};
|
|
3342
3342
|
tf.deckGLViewProps = !0;
|
|
@@ -3439,9 +3439,9 @@ function Sg(t) {
|
|
|
3439
3439
|
onDragEnd: p,
|
|
3440
3440
|
collisionBehavior: h,
|
|
3441
3441
|
clickable: b,
|
|
3442
|
-
draggable:
|
|
3442
|
+
draggable: v,
|
|
3443
3443
|
position: _,
|
|
3444
|
-
title:
|
|
3444
|
+
title: y,
|
|
3445
3445
|
zIndex: S
|
|
3446
3446
|
} = t, E = Kh.count(a);
|
|
3447
3447
|
return j(() => {
|
|
@@ -3456,9 +3456,9 @@ function Sg(t) {
|
|
|
3456
3456
|
};
|
|
3457
3457
|
}, [o, s, E]), j(() => {
|
|
3458
3458
|
!(e != null && e.content) || !Sl(e.content) || E > 0 || (e.content.className = l ?? "");
|
|
3459
|
-
}, [e, l, E]), po(e, "position", _), po(e, "title",
|
|
3460
|
-
e && (
|
|
3461
|
-
}, [e,
|
|
3459
|
+
}, [e, l, E]), po(e, "position", _), po(e, "title", y ?? ""), po(e, "zIndex", S), po(e, "collisionBehavior", h), j(() => {
|
|
3460
|
+
e && (v !== void 0 ? e.gmpDraggable = v : f || g || p ? e.gmpDraggable = !0 : e.gmpDraggable = !1);
|
|
3461
|
+
}, [e, v, f, p, g]), j(() => {
|
|
3462
3462
|
if (!e)
|
|
3463
3463
|
return;
|
|
3464
3464
|
const m = b !== void 0 || !!c || !!u || !!d;
|
|
@@ -3576,8 +3576,8 @@ const xg = ["children", "headerContent", "style", "className", "pixelOffset", "a
|
|
|
3576
3576
|
if (!d)
|
|
3577
3577
|
return;
|
|
3578
3578
|
p.current = document.createElement("div"), h.current = document.createElement("div");
|
|
3579
|
-
const
|
|
3580
|
-
o && (
|
|
3579
|
+
const y = b;
|
|
3580
|
+
o && (y.pixelOffset = new google.maps.Size(o[0], o[1])), n && (y.headerContent = typeof n == "string" ? n : h.current);
|
|
3581
3581
|
const S = new google.maps.InfoWindow(b);
|
|
3582
3582
|
return S.setContent(p.current), g(S), () => {
|
|
3583
3583
|
var E, m;
|
|
@@ -3593,15 +3593,15 @@ const xg = ["children", "headerContent", "style", "className", "pixelOffset", "a
|
|
|
3593
3593
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3594
3594
|
[d]
|
|
3595
3595
|
);
|
|
3596
|
-
const
|
|
3596
|
+
const v = B(null);
|
|
3597
3597
|
j(() => {
|
|
3598
|
-
!f || !p.current || (Cg(p.current, r || null,
|
|
3598
|
+
!f || !p.current || (Cg(p.current, r || null, v.current), v.current = r || null, i !== p.current.className && (p.current.className = i || ""));
|
|
3599
3599
|
}, [f, i, r]), j(
|
|
3600
3600
|
() => {
|
|
3601
3601
|
if (!f)
|
|
3602
3602
|
return;
|
|
3603
|
-
const
|
|
3604
|
-
o ?
|
|
3603
|
+
const y = b;
|
|
3604
|
+
o ? y.pixelOffset = new google.maps.Size(o[0], o[1]) : y.pixelOffset = null, n ? y.headerContent = typeof n == "string" ? n : h.current : y.headerContent = null, f.setOptions(b);
|
|
3605
3605
|
},
|
|
3606
3606
|
// dependency `infoWindow` isn't needed since options are also passed
|
|
3607
3607
|
// to the constructor when a new infoWindow is created.
|
|
@@ -3612,7 +3612,7 @@ const xg = ["children", "headerContent", "style", "className", "pixelOffset", "a
|
|
|
3612
3612
|
return j(() => {
|
|
3613
3613
|
if (!_ || !f || s === null)
|
|
3614
3614
|
return;
|
|
3615
|
-
const
|
|
3615
|
+
const y = !!s, S = {
|
|
3616
3616
|
map: _
|
|
3617
3617
|
};
|
|
3618
3618
|
if (s && (S.anchor = s, yg(s) && s.content instanceof Element)) {
|
|
@@ -3624,7 +3624,7 @@ const xg = ["children", "headerContent", "style", "className", "pixelOffset", "a
|
|
|
3624
3624
|
}
|
|
3625
3625
|
}
|
|
3626
3626
|
return a !== void 0 && (S.shouldFocus = a), f.open(S), () => {
|
|
3627
|
-
|
|
3627
|
+
y && f.set("anchor", null), f.close();
|
|
3628
3628
|
};
|
|
3629
3629
|
}, [f, s, _, a, b, o]), /* @__PURE__ */ $.createElement($.Fragment, null, p.current && es(e, p.current), h.current !== null && es(n, h.current));
|
|
3630
3630
|
}, Tg = ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut"];
|
|
@@ -3884,38 +3884,38 @@ const uf = (t) => {
|
|
|
3884
3884
|
function jg(t, e, n, r, i, o, s) {
|
|
3885
3885
|
const a = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
|
|
3886
3886
|
let l = {}, u = 0;
|
|
3887
|
-
function d(h, b,
|
|
3887
|
+
function d(h, b, v) {
|
|
3888
3888
|
const _ = Ht(h);
|
|
3889
3889
|
c.set(_, {
|
|
3890
3890
|
data: uf(b),
|
|
3891
|
-
version:
|
|
3891
|
+
version: v
|
|
3892
3892
|
}), t.onCacheChange.emit(h);
|
|
3893
3893
|
}
|
|
3894
3894
|
function f(h) {
|
|
3895
3895
|
let b;
|
|
3896
3896
|
if (!b) {
|
|
3897
|
-
const
|
|
3898
|
-
typeof
|
|
3897
|
+
const v = l[Ht(h)];
|
|
3898
|
+
typeof v == "function" && (b = v());
|
|
3899
3899
|
}
|
|
3900
|
-
return b || (b = e(h)), Ps(b) ? b == null ? void 0 : b.catch((
|
|
3901
|
-
const _ = new Ol(h,
|
|
3900
|
+
return b || (b = e(h)), Ps(b) ? b == null ? void 0 : b.catch((v) => {
|
|
3901
|
+
const _ = new Ol(h, v);
|
|
3902
3902
|
throw t.onError.emit(_), console.error(_), _;
|
|
3903
3903
|
}) : b;
|
|
3904
3904
|
}
|
|
3905
3905
|
function g(h, b) {
|
|
3906
|
-
var
|
|
3906
|
+
var v;
|
|
3907
3907
|
let _;
|
|
3908
|
-
return b && (_ = (
|
|
3909
|
-
const S = new Ol(h,
|
|
3908
|
+
return b && (_ = (v = n(h)) === null || v === void 0 ? void 0 : v.catch((y) => {
|
|
3909
|
+
const S = new Ol(h, y, !0);
|
|
3910
3910
|
return t.onError.emit(S), console.warn(S), f(h);
|
|
3911
3911
|
})), _ || (_ = f(h)), _;
|
|
3912
3912
|
}
|
|
3913
3913
|
const p = Object.freeze({
|
|
3914
3914
|
addStaticData(h) {
|
|
3915
|
-
h && (l = Object.assign(Object.assign({}, l), h), Object.entries(h).forEach(([b,
|
|
3916
|
-
if (typeof
|
|
3917
|
-
const _ = si(b),
|
|
3918
|
-
(!
|
|
3915
|
+
h && (l = Object.assign(Object.assign({}, l), h), Object.entries(h).forEach(([b, v]) => {
|
|
3916
|
+
if (typeof v != "function") {
|
|
3917
|
+
const _ = si(b), y = c.get(b);
|
|
3918
|
+
(!y || y.version === 0) && d(_, v, 0);
|
|
3919
3919
|
}
|
|
3920
3920
|
}));
|
|
3921
3921
|
},
|
|
@@ -3926,40 +3926,40 @@ function jg(t, e, n, r, i, o, s) {
|
|
|
3926
3926
|
d(h, b, u);
|
|
3927
3927
|
},
|
|
3928
3928
|
exists(h, b = !1) {
|
|
3929
|
-
const
|
|
3930
|
-
return
|
|
3929
|
+
const v = c.get(Ht(h));
|
|
3930
|
+
return v && b ? v.version === u : !!v;
|
|
3931
3931
|
},
|
|
3932
3932
|
getRecord(h) {
|
|
3933
3933
|
var b;
|
|
3934
3934
|
return (b = c.get(Ht(r(h)))) === null || b === void 0 ? void 0 : b.data;
|
|
3935
3935
|
},
|
|
3936
3936
|
getTranslation(h, b) {
|
|
3937
|
-
var
|
|
3938
|
-
return (
|
|
3937
|
+
var v;
|
|
3938
|
+
return (v = c.get(Ht(h))) === null || v === void 0 ? void 0 : v.data.get(b);
|
|
3939
3939
|
},
|
|
3940
|
-
getTranslationNs(h, b,
|
|
3940
|
+
getTranslationNs(h, b, v) {
|
|
3941
3941
|
var _;
|
|
3942
|
-
for (const
|
|
3942
|
+
for (const y of h)
|
|
3943
3943
|
for (const S of b) {
|
|
3944
|
-
const E = (_ = c.get(Ht({ language: S, namespace:
|
|
3944
|
+
const E = (_ = c.get(Ht({ language: S, namespace: y }))) === null || _ === void 0 ? void 0 : _.data.get(v);
|
|
3945
3945
|
if (E != null)
|
|
3946
|
-
return [
|
|
3946
|
+
return [y];
|
|
3947
3947
|
}
|
|
3948
3948
|
return Sa(h);
|
|
3949
3949
|
},
|
|
3950
|
-
getTranslationFallback(h, b,
|
|
3950
|
+
getTranslationFallback(h, b, v) {
|
|
3951
3951
|
var _;
|
|
3952
|
-
for (const
|
|
3952
|
+
for (const y of h)
|
|
3953
3953
|
for (const S of b) {
|
|
3954
|
-
const E = (_ = c.get(Ht({ language: S, namespace:
|
|
3954
|
+
const E = (_ = c.get(Ht({ language: S, namespace: y }))) === null || _ === void 0 ? void 0 : _.data.get(v);
|
|
3955
3955
|
if (E != null)
|
|
3956
3956
|
return E;
|
|
3957
3957
|
}
|
|
3958
3958
|
},
|
|
3959
|
-
changeTranslation(h, b,
|
|
3959
|
+
changeTranslation(h, b, v) {
|
|
3960
3960
|
var _;
|
|
3961
|
-
const
|
|
3962
|
-
|
|
3961
|
+
const y = (_ = c.get(Ht(h))) === null || _ === void 0 ? void 0 : _.data;
|
|
3962
|
+
y == null || y.set(b, v), t.onCacheChange.emit(Object.assign(Object.assign({}, h), { key: b }));
|
|
3963
3963
|
},
|
|
3964
3964
|
isFetching(h) {
|
|
3965
3965
|
if (i())
|
|
@@ -3967,21 +3967,21 @@ function jg(t, e, n, r, i, o, s) {
|
|
|
3967
3967
|
if (h === void 0)
|
|
3968
3968
|
return a.size > 0;
|
|
3969
3969
|
const b = at(h);
|
|
3970
|
-
return !!Array.from(a.keys()).find((
|
|
3970
|
+
return !!Array.from(a.keys()).find((v) => b.includes(si(v).namespace));
|
|
3971
3971
|
},
|
|
3972
3972
|
isLoading(h, b) {
|
|
3973
|
-
const
|
|
3973
|
+
const v = at(b);
|
|
3974
3974
|
return !!(i() || Array.from(a.keys()).find((_) => {
|
|
3975
|
-
const
|
|
3976
|
-
return (!
|
|
3977
|
-
namespace:
|
|
3975
|
+
const y = si(_);
|
|
3976
|
+
return (!v.length || v.includes(y.namespace)) && !p.exists({
|
|
3977
|
+
namespace: y.namespace,
|
|
3978
3978
|
language: h
|
|
3979
3979
|
});
|
|
3980
3980
|
}));
|
|
3981
3981
|
},
|
|
3982
3982
|
async loadRecords(h, b) {
|
|
3983
|
-
const
|
|
3984
|
-
const S = r(
|
|
3983
|
+
const v = h.map((y) => {
|
|
3984
|
+
const S = r(y), E = Ht(S), m = a.get(E);
|
|
3985
3985
|
if (m)
|
|
3986
3986
|
return {
|
|
3987
3987
|
new: !1,
|
|
@@ -3998,18 +3998,18 @@ function jg(t, e, n, r, i, o, s) {
|
|
|
3998
3998
|
};
|
|
3999
3999
|
});
|
|
4000
4000
|
o.notify(), s.notify();
|
|
4001
|
-
const _ = await Promise.all(
|
|
4002
|
-
return
|
|
4003
|
-
const E = a.get(
|
|
4004
|
-
if (
|
|
4005
|
-
a.delete(
|
|
4001
|
+
const _ = await Promise.all(v.map((y) => y.promise));
|
|
4002
|
+
return v.forEach((y, S) => {
|
|
4003
|
+
const E = a.get(y.cacheKey) !== y.promise;
|
|
4004
|
+
if (y.new && !E) {
|
|
4005
|
+
a.delete(y.cacheKey);
|
|
4006
4006
|
const m = _[S];
|
|
4007
|
-
m ? p.addRecord(
|
|
4007
|
+
m ? p.addRecord(y.keyObject, m) : p.getRecord(y.keyObject) || p.addRecord(y.keyObject, {});
|
|
4008
4008
|
}
|
|
4009
|
-
}), o.notify(), s.notify(),
|
|
4009
|
+
}), o.notify(), s.notify(), v.map((y) => p.getRecord(y.keyObject));
|
|
4010
4010
|
},
|
|
4011
4011
|
getAllRecords() {
|
|
4012
|
-
return Array.from(c.entries()).map(([b,
|
|
4012
|
+
return Array.from(c.entries()).map(([b, v]) => Object.assign(Object.assign({}, si(b)), { data: v.data }));
|
|
4013
4013
|
}
|
|
4014
4014
|
});
|
|
4015
4015
|
return p;
|
|
@@ -4111,13 +4111,13 @@ function $g(t, e, n, r, i, o, s, a) {
|
|
|
4111
4111
|
function b(A) {
|
|
4112
4112
|
A && l.formatters.push(A);
|
|
4113
4113
|
}
|
|
4114
|
-
function
|
|
4114
|
+
function v(A) {
|
|
4115
4115
|
l.finalFormatter = A;
|
|
4116
4116
|
}
|
|
4117
4117
|
function _(A) {
|
|
4118
4118
|
c.ui = A;
|
|
4119
4119
|
}
|
|
4120
|
-
function
|
|
4120
|
+
function y() {
|
|
4121
4121
|
return !!c.ui;
|
|
4122
4122
|
}
|
|
4123
4123
|
function S(A) {
|
|
@@ -4149,12 +4149,12 @@ function $g(t, e, n, r, i, o, s, a) {
|
|
|
4149
4149
|
}
|
|
4150
4150
|
function P(A, k) {
|
|
4151
4151
|
const F = Object.freeze({
|
|
4152
|
-
setFinalFormatter:
|
|
4152
|
+
setFinalFormatter: v,
|
|
4153
4153
|
addFormatter: b,
|
|
4154
4154
|
setObserver: p,
|
|
4155
4155
|
hasObserver: h,
|
|
4156
4156
|
setUi: _,
|
|
4157
|
-
hasUi:
|
|
4157
|
+
hasUi: y,
|
|
4158
4158
|
setDevBackend: T,
|
|
4159
4159
|
addBackend: O,
|
|
4160
4160
|
setLanguageDetector: E,
|
|
@@ -4394,7 +4394,7 @@ const ff = (t, ...e) => {
|
|
|
4394
4394
|
return typeof t == "object" ? n = t : (n.key = t, typeof e[0] == "string" ? (n.defaultValue = e[0], r = e[1]) : typeof e[0] == "object" && (r = e[0])), r && (n = Object.assign(Object.assign({}, qg(r)), n)), n;
|
|
4395
4395
|
};
|
|
4396
4396
|
function Gg({ options: t }) {
|
|
4397
|
-
const e = Ig(c, l), n = Al(!1, () => s.isFetching(), e.onFetchingChange.emit), r = Al(!1, () => E.isLoading(), e.onLoadingChange.emit), i = zg(e.onLanguageChange, e.onPendingLanguageChange, e.onRunningChange), o = $g(i.getLanguage, i.getInitialOptions, i.getAvailableLanguages, u, b,
|
|
4397
|
+
const e = Ig(c, l), n = Al(!1, () => s.isFetching(), e.onFetchingChange.emit), r = Al(!1, () => E.isLoading(), e.onLoadingChange.emit), i = zg(e.onLanguageChange, e.onPendingLanguageChange, e.onRunningChange), o = $g(i.getLanguage, i.getInitialOptions, i.getAvailableLanguages, u, b, v, f, e), s = jg(e, o.getBackendRecord, o.getBackendDevRecord, i.withDefaultNs, i.isInitialLoading, n, r);
|
|
4398
4398
|
t && g(t);
|
|
4399
4399
|
let a;
|
|
4400
4400
|
e.onUpdate.listen(() => {
|
|
@@ -4444,19 +4444,19 @@ function Gg({ options: t }) {
|
|
|
4444
4444
|
const O = i.getFallbackLangs(), T = u(w ?? void 0);
|
|
4445
4445
|
return s.getTranslationNs(T, O, m);
|
|
4446
4446
|
}
|
|
4447
|
-
function
|
|
4447
|
+
function v({ key: m, ns: w, language: O }) {
|
|
4448
4448
|
const T = u(w ?? void 0), P = i.getFallbackLangs(O);
|
|
4449
4449
|
return s.getTranslationFallback(T, P, m);
|
|
4450
4450
|
}
|
|
4451
4451
|
function _() {
|
|
4452
|
-
const m = qo(
|
|
4452
|
+
const m = qo(y(), () => h());
|
|
4453
4453
|
if (Ps(m))
|
|
4454
4454
|
return i.setInitialLoading(!0), n.notify(), r.notify(), Promise.resolve(m).then(() => {
|
|
4455
4455
|
i.setInitialLoading(!1), n.notify(), r.notify(), e.onInitialLoaded.emit();
|
|
4456
4456
|
});
|
|
4457
4457
|
e.onInitialLoaded.emit();
|
|
4458
4458
|
}
|
|
4459
|
-
function
|
|
4459
|
+
function y() {
|
|
4460
4460
|
if (i.getLanguage())
|
|
4461
4461
|
return;
|
|
4462
4462
|
const w = o.getInitialLanguage();
|
|
@@ -4473,7 +4473,7 @@ function Gg({ options: t }) {
|
|
|
4473
4473
|
}
|
|
4474
4474
|
const E = Object.freeze(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, e), i), o), s), {
|
|
4475
4475
|
init: g,
|
|
4476
|
-
getTranslation:
|
|
4476
|
+
getTranslation: v,
|
|
4477
4477
|
changeTranslation: f,
|
|
4478
4478
|
getTranslationNs: b,
|
|
4479
4479
|
getDefaultAndFallbackNs: u,
|
|
@@ -4504,7 +4504,7 @@ function Gg({ options: t }) {
|
|
|
4504
4504
|
}), P.length === 0;
|
|
4505
4505
|
},
|
|
4506
4506
|
t: (...m) => {
|
|
4507
|
-
const w = ff(...m), O =
|
|
4507
|
+
const w = ff(...m), O = v(w);
|
|
4508
4508
|
return o.formatTranslation(Object.assign(Object.assign({}, w), { translation: O }));
|
|
4509
4509
|
},
|
|
4510
4510
|
isDev() {
|
|
@@ -4775,50 +4775,50 @@ function nv() {
|
|
|
4775
4775
|
const rv = () => (t, e) => (e.setFinalFormatter(nv()), t);
|
|
4776
4776
|
var Ws = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ll = {};
|
|
4777
4777
|
(function(t) {
|
|
4778
|
-
function e(
|
|
4779
|
-
var
|
|
4780
|
-
return
|
|
4778
|
+
function e(v, _) {
|
|
4779
|
+
var y;
|
|
4780
|
+
return v instanceof Buffer ? y = v : y = Buffer.from(v.buffer, v.byteOffset, v.byteLength), y.toString(_);
|
|
4781
4781
|
}
|
|
4782
|
-
var n = function(
|
|
4783
|
-
return Buffer.from(
|
|
4782
|
+
var n = function(v) {
|
|
4783
|
+
return Buffer.from(v);
|
|
4784
4784
|
};
|
|
4785
|
-
function r(
|
|
4786
|
-
for (var _ = 0,
|
|
4787
|
-
var w = _ <
|
|
4788
|
-
if (!w || m >=
|
|
4785
|
+
function r(v) {
|
|
4786
|
+
for (var _ = 0, y = Math.min(256 * 256, v.length + 1), S = new Uint16Array(y), E = [], m = 0; ; ) {
|
|
4787
|
+
var w = _ < v.length;
|
|
4788
|
+
if (!w || m >= y - 1) {
|
|
4789
4789
|
var O = S.subarray(0, m), T = O;
|
|
4790
4790
|
if (E.push(String.fromCharCode.apply(null, T)), !w)
|
|
4791
4791
|
return E.join("");
|
|
4792
|
-
|
|
4792
|
+
v = v.subarray(_), _ = 0, m = 0;
|
|
4793
4793
|
}
|
|
4794
|
-
var P =
|
|
4794
|
+
var P = v[_++];
|
|
4795
4795
|
if (!(P & 128))
|
|
4796
4796
|
S[m++] = P;
|
|
4797
4797
|
else if ((P & 224) === 192) {
|
|
4798
|
-
var L =
|
|
4798
|
+
var L = v[_++] & 63;
|
|
4799
4799
|
S[m++] = (P & 31) << 6 | L;
|
|
4800
4800
|
} else if ((P & 240) === 224) {
|
|
4801
|
-
var L =
|
|
4801
|
+
var L = v[_++] & 63, A = v[_++] & 63;
|
|
4802
4802
|
S[m++] = (P & 31) << 12 | L << 6 | A;
|
|
4803
4803
|
} else if ((P & 248) === 240) {
|
|
4804
|
-
var L =
|
|
4804
|
+
var L = v[_++] & 63, A = v[_++] & 63, k = v[_++] & 63, F = (P & 7) << 18 | L << 12 | A << 6 | k;
|
|
4805
4805
|
F > 65535 && (F -= 65536, S[m++] = F >>> 10 & 1023 | 55296, F = 56320 | F & 1023), S[m++] = F;
|
|
4806
4806
|
}
|
|
4807
4807
|
}
|
|
4808
4808
|
}
|
|
4809
|
-
function i(
|
|
4810
|
-
for (var _ = 0,
|
|
4811
|
-
var w =
|
|
4809
|
+
function i(v) {
|
|
4810
|
+
for (var _ = 0, y = v.length, S = 0, E = Math.max(32, y + (y >>> 1) + 7), m = new Uint8Array(E >>> 3 << 3); _ < y; ) {
|
|
4811
|
+
var w = v.charCodeAt(_++);
|
|
4812
4812
|
if (w >= 55296 && w <= 56319) {
|
|
4813
|
-
if (_ <
|
|
4814
|
-
var O =
|
|
4813
|
+
if (_ < y) {
|
|
4814
|
+
var O = v.charCodeAt(_);
|
|
4815
4815
|
(O & 64512) === 56320 && (++_, w = ((w & 1023) << 10) + (O & 1023) + 65536);
|
|
4816
4816
|
}
|
|
4817
4817
|
if (w >= 55296 && w <= 56319)
|
|
4818
4818
|
continue;
|
|
4819
4819
|
}
|
|
4820
4820
|
if (S + 4 > m.length) {
|
|
4821
|
-
E += 8, E *= 1 + _ /
|
|
4821
|
+
E += 8, E *= 1 + _ / v.length * 2, E = E >>> 3 << 3;
|
|
4822
4822
|
var T = new Uint8Array(E);
|
|
4823
4823
|
T.set(m), m = T;
|
|
4824
4824
|
}
|
|
@@ -4839,21 +4839,21 @@ var Ws = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
4839
4839
|
}
|
|
4840
4840
|
return m.slice ? m.slice(0, S) : m.subarray(0, S);
|
|
4841
4841
|
}
|
|
4842
|
-
var o = "Failed to ", s = function(
|
|
4843
|
-
if (
|
|
4844
|
-
throw new Error("".concat(o).concat(_, ": the '").concat(
|
|
4842
|
+
var o = "Failed to ", s = function(v, _, y) {
|
|
4843
|
+
if (v)
|
|
4844
|
+
throw new Error("".concat(o).concat(_, ": the '").concat(y, "' option is unsupported."));
|
|
4845
4845
|
}, a = typeof Buffer == "function" && Buffer.from, c = a ? n : i;
|
|
4846
4846
|
function l() {
|
|
4847
4847
|
this.encoding = "utf-8";
|
|
4848
4848
|
}
|
|
4849
|
-
l.prototype.encode = function(
|
|
4850
|
-
return s(_ && _.stream, "encode", "stream"), c(
|
|
4849
|
+
l.prototype.encode = function(v, _) {
|
|
4850
|
+
return s(_ && _.stream, "encode", "stream"), c(v);
|
|
4851
4851
|
};
|
|
4852
|
-
function u(
|
|
4852
|
+
function u(v) {
|
|
4853
4853
|
var _;
|
|
4854
4854
|
try {
|
|
4855
|
-
var
|
|
4856
|
-
_ = URL.createObjectURL(
|
|
4855
|
+
var y = new Blob([v], { type: "text/plain;charset=UTF-8" });
|
|
4856
|
+
_ = URL.createObjectURL(y);
|
|
4857
4857
|
var S = new XMLHttpRequest();
|
|
4858
4858
|
return S.open("GET", _, !1), S.send(), S.responseText;
|
|
4859
4859
|
} finally {
|
|
@@ -4861,25 +4861,25 @@ var Ws = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
4861
4861
|
}
|
|
4862
4862
|
}
|
|
4863
4863
|
var d = !a && typeof Blob == "function" && typeof URL == "function" && typeof URL.createObjectURL == "function", f = ["utf-8", "utf8", "unicode-1-1-utf-8"], g = r;
|
|
4864
|
-
a ? g = e : d && (g = function(
|
|
4864
|
+
a ? g = e : d && (g = function(v) {
|
|
4865
4865
|
try {
|
|
4866
|
-
return u(
|
|
4866
|
+
return u(v);
|
|
4867
4867
|
} catch {
|
|
4868
|
-
return r(
|
|
4868
|
+
return r(v);
|
|
4869
4869
|
}
|
|
4870
4870
|
});
|
|
4871
4871
|
var p = "construct 'TextDecoder'", h = "".concat(o, " ").concat(p, ": the ");
|
|
4872
|
-
function b(
|
|
4873
|
-
s(_ && _.fatal, p, "fatal"),
|
|
4874
|
-
var
|
|
4875
|
-
if (a ?
|
|
4876
|
-
throw new RangeError("".concat(h, " encoding label provided ('").concat(
|
|
4877
|
-
this.encoding =
|
|
4872
|
+
function b(v, _) {
|
|
4873
|
+
s(_ && _.fatal, p, "fatal"), v = v || "utf-8";
|
|
4874
|
+
var y;
|
|
4875
|
+
if (a ? y = Buffer.isEncoding(v) : y = f.indexOf(v.toLowerCase()) !== -1, !y)
|
|
4876
|
+
throw new RangeError("".concat(h, " encoding label provided ('").concat(v, "') is invalid."));
|
|
4877
|
+
this.encoding = v, this.fatal = !1, this.ignoreBOM = !1;
|
|
4878
4878
|
}
|
|
4879
|
-
b.prototype.decode = function(
|
|
4879
|
+
b.prototype.decode = function(v, _) {
|
|
4880
4880
|
s(_ && _.stream, "decode", "stream");
|
|
4881
|
-
var
|
|
4882
|
-
return
|
|
4881
|
+
var y;
|
|
4882
|
+
return v instanceof Uint8Array ? y = v : v.buffer instanceof ArrayBuffer ? y = new Uint8Array(v.buffer) : y = new Uint8Array(v), g(y, this.encoding);
|
|
4883
4883
|
}, t.TextEncoder = t.TextEncoder || l, t.TextDecoder = t.TextDecoder || b;
|
|
4884
4884
|
})(typeof window < "u" ? window : Ws);
|
|
4885
4885
|
var iv = /* @__PURE__ */ Lg({
|
|
@@ -5259,9 +5259,9 @@ function Yv(t) {
|
|
|
5259
5259
|
var f;
|
|
5260
5260
|
const c = new Date(Date.now()), l = c.getDay() || 7, u = c.toLocaleTimeString("en-GB"), d = (f = a.find(({ dayNumber: g }) => g === l)) == null ? void 0 : f.time;
|
|
5261
5261
|
if (d) {
|
|
5262
|
-
const g = d.split("-"), p = g[g.length - 1], b = d.split(", ").some((
|
|
5263
|
-
const [_,
|
|
5264
|
-
return
|
|
5262
|
+
const g = d.split("-"), p = g[g.length - 1], b = d.split(", ").some((v) => {
|
|
5263
|
+
const [_, y] = v.split("-");
|
|
5264
|
+
return y.trim() < _.trim() ? u >= _ || u < y : u >= _ && u < y;
|
|
5265
5265
|
});
|
|
5266
5266
|
return {
|
|
5267
5267
|
day: i[l],
|
|
@@ -5321,8 +5321,8 @@ const e1 = "LocationView-module__title__-wT0bl", t1 = "LocationView-module__logo
|
|
|
5321
5321
|
default: of,
|
|
5322
5322
|
llama: sf
|
|
5323
5323
|
}, S1 = ({ classes: t, hideActions: e, location: n, onClose: r, onSubmit: i }) => {
|
|
5324
|
-
var
|
|
5325
|
-
const [o, s] = J(!1), { t: a } = _t(["details_modal", "common"]), { isLoading: c, lmsData: l } = As(), { closes: u, isAvailable: d, statusValue: f, workSchedule: g } = Yv(n.timetable), p = (
|
|
5324
|
+
var y, S, E;
|
|
5325
|
+
const [o, s] = J(!1), { t: a } = _t(["details_modal", "common"]), { isLoading: c, lmsData: l } = As(), { closes: u, isAvailable: d, statusValue: f, workSchedule: g } = Yv(n.timetable), p = (y = l == null ? void 0 : l.location) == null ? void 0 : y.what3words, h = !!(p != null && p.id), { logo: b = "default" } = _e(), v = _1[b];
|
|
5326
5326
|
function _() {
|
|
5327
5327
|
s((m) => !m);
|
|
5328
5328
|
}
|
|
@@ -5330,7 +5330,7 @@ const e1 = "LocationView-module__title__-wT0bl", t1 = "LocationView-module__logo
|
|
|
5330
5330
|
/* @__PURE__ */ N("div", { className: ee(Ee.header, t == null ? void 0 : t.header), children: [
|
|
5331
5331
|
/* @__PURE__ */ C(Hr, { onClick: r }),
|
|
5332
5332
|
/* @__PURE__ */ N("div", { className: Ee.title, children: [
|
|
5333
|
-
/* @__PURE__ */ C("div", { className: Ee.logo, children: /* @__PURE__ */ C(
|
|
5333
|
+
/* @__PURE__ */ C("div", { className: Ee.logo, children: /* @__PURE__ */ C(v, {}) }),
|
|
5334
5334
|
/* @__PURE__ */ C("span", { children: n.name })
|
|
5335
5335
|
] })
|
|
5336
5336
|
] }),
|
|
@@ -6080,15 +6080,15 @@ function as(t, e, n, r, i, o, s) {
|
|
|
6080
6080
|
var b;
|
|
6081
6081
|
switch (h.type) {
|
|
6082
6082
|
case Zi: {
|
|
6083
|
-
var
|
|
6084
|
-
return o && typeof
|
|
6083
|
+
var v = q1(h, c, r, t.options.delays);
|
|
6084
|
+
return o && typeof v.delay == "number" && o(v, c, r), v;
|
|
6085
6085
|
}
|
|
6086
6086
|
case Ls:
|
|
6087
6087
|
var _ = W1(h, c, r, t.options.delays);
|
|
6088
6088
|
return o && _.to !== Nr.Internal && (p === "entry" ? u.push(_) : o(_, c, r)), _;
|
|
6089
6089
|
case Sf: {
|
|
6090
|
-
var
|
|
6091
|
-
return o == null || o(
|
|
6090
|
+
var y = Z1(h, c, r);
|
|
6091
|
+
return o == null || o(y, c, r), y;
|
|
6092
6092
|
}
|
|
6093
6093
|
case L1: {
|
|
6094
6094
|
var S = h, E = (b = S.conds.find(function(z) {
|
|
@@ -6114,8 +6114,8 @@ function as(t, e, n, r, i, o, s) {
|
|
|
6114
6114
|
return c = L, l == null || l.push(c), P;
|
|
6115
6115
|
}
|
|
6116
6116
|
case Sc: {
|
|
6117
|
-
var
|
|
6118
|
-
return o == null || o(
|
|
6117
|
+
var y = X1(h, c, r);
|
|
6118
|
+
return o == null || o(y, n, r), y;
|
|
6119
6119
|
}
|
|
6120
6120
|
case Cc: {
|
|
6121
6121
|
c = Vl(c, r, [h], o ? void 0 : e), l == null || l.push(c);
|
|
@@ -6139,11 +6139,11 @@ function as(t, e, n, r, i, o, s) {
|
|
|
6139
6139
|
}
|
|
6140
6140
|
}
|
|
6141
6141
|
function f(p) {
|
|
6142
|
-
var h, b,
|
|
6142
|
+
var h, b, v = [];
|
|
6143
6143
|
try {
|
|
6144
|
-
for (var _ = re(p.actions),
|
|
6145
|
-
var S =
|
|
6146
|
-
E && (
|
|
6144
|
+
for (var _ = re(p.actions), y = _.next(); !y.done; y = _.next()) {
|
|
6145
|
+
var S = y.value, E = d(p.type, S);
|
|
6146
|
+
E && (v = v.concat(E));
|
|
6147
6147
|
}
|
|
6148
6148
|
} catch (m) {
|
|
6149
6149
|
h = {
|
|
@@ -6151,7 +6151,7 @@ function as(t, e, n, r, i, o, s) {
|
|
|
6151
6151
|
};
|
|
6152
6152
|
} finally {
|
|
6153
6153
|
try {
|
|
6154
|
-
|
|
6154
|
+
y && !y.done && (b = _.return) && b.call(_);
|
|
6155
6155
|
} finally {
|
|
6156
6156
|
if (h)
|
|
6157
6157
|
throw h.error;
|
|
@@ -6159,7 +6159,7 @@ function as(t, e, n, r, i, o, s) {
|
|
|
6159
6159
|
}
|
|
6160
6160
|
return u.forEach(function(m) {
|
|
6161
6161
|
o(m, c, r);
|
|
6162
|
-
}), u.length = 0,
|
|
6162
|
+
}), u.length = 0, v;
|
|
6163
6163
|
}
|
|
6164
6164
|
var g = Oe(i.map(f));
|
|
6165
6165
|
return [g, c];
|
|
@@ -6268,11 +6268,11 @@ function li(t, e) {
|
|
|
6268
6268
|
throw n.error;
|
|
6269
6269
|
}
|
|
6270
6270
|
}
|
|
6271
|
-
var
|
|
6271
|
+
var v = Na(f);
|
|
6272
6272
|
try {
|
|
6273
|
-
for (var _ = re(f),
|
|
6274
|
-
var h =
|
|
6275
|
-
if (h.type === "compound" && (!
|
|
6273
|
+
for (var _ = re(f), y = _.next(); !y.done; y = _.next()) {
|
|
6274
|
+
var h = y.value;
|
|
6275
|
+
if (h.type === "compound" && (!v.get(h) || !v.get(h).length))
|
|
6276
6276
|
d.get(h) ? d.get(h).forEach(function(P) {
|
|
6277
6277
|
return f.add(P);
|
|
6278
6278
|
}) : h.initialStateNodes.forEach(function(P) {
|
|
@@ -6307,7 +6307,7 @@ function li(t, e) {
|
|
|
6307
6307
|
};
|
|
6308
6308
|
} finally {
|
|
6309
6309
|
try {
|
|
6310
|
-
|
|
6310
|
+
y && !y.done && (o = _.return) && o.call(_);
|
|
6311
6311
|
} finally {
|
|
6312
6312
|
if (i)
|
|
6313
6313
|
throw i.error;
|
|
@@ -6711,12 +6711,12 @@ Event: `
|
|
|
6711
6711
|
break;
|
|
6712
6712
|
}
|
|
6713
6713
|
case Ls:
|
|
6714
|
-
var
|
|
6715
|
-
if (typeof
|
|
6716
|
-
r.defer(
|
|
6714
|
+
var v = u;
|
|
6715
|
+
if (typeof v.delay == "number") {
|
|
6716
|
+
r.defer(v);
|
|
6717
6717
|
return;
|
|
6718
6718
|
} else
|
|
6719
|
-
|
|
6719
|
+
v.to ? r.sendTo(v._event, v.to, f === mr) : r.send(v._event);
|
|
6720
6720
|
break;
|
|
6721
6721
|
case _f:
|
|
6722
6722
|
r.cancel(u.sendId);
|
|
@@ -6731,7 +6731,7 @@ Event: `
|
|
|
6731
6731
|
)
|
|
6732
6732
|
break;
|
|
6733
6733
|
if (_.type === fe.Invoke) {
|
|
6734
|
-
var
|
|
6734
|
+
var y = Lf(_.src), S = r.machine.options.services ? r.machine.options.services[y.type] : void 0, E = _.id, m = _.data, w = "autoForward" in _ ? _.autoForward : !!_.forward;
|
|
6735
6735
|
if (!S)
|
|
6736
6736
|
return;
|
|
6737
6737
|
var O = m ? ss(m, d, f) : void 0;
|
|
@@ -6739,7 +6739,7 @@ Event: `
|
|
|
6739
6739
|
return;
|
|
6740
6740
|
var T = ce(S) ? S(d, f.data, {
|
|
6741
6741
|
data: O,
|
|
6742
|
-
src:
|
|
6742
|
+
src: y,
|
|
6743
6743
|
meta: _.meta
|
|
6744
6744
|
}) : S;
|
|
6745
6745
|
if (!T)
|
|
@@ -6834,8 +6834,8 @@ Event: `
|
|
|
6834
6834
|
}
|
|
6835
6835
|
}
|
|
6836
6836
|
try {
|
|
6837
|
-
for (var b = re(this.listeners),
|
|
6838
|
-
var h =
|
|
6837
|
+
for (var b = re(this.listeners), v = b.next(); !v.done; v = b.next()) {
|
|
6838
|
+
var h = v.value;
|
|
6839
6839
|
h(e, e.event);
|
|
6840
6840
|
}
|
|
6841
6841
|
} catch (T) {
|
|
@@ -6844,15 +6844,15 @@ Event: `
|
|
|
6844
6844
|
};
|
|
6845
6845
|
} finally {
|
|
6846
6846
|
try {
|
|
6847
|
-
|
|
6847
|
+
v && !v.done && (s = b.return) && s.call(b);
|
|
6848
6848
|
} finally {
|
|
6849
6849
|
if (o)
|
|
6850
6850
|
throw o.error;
|
|
6851
6851
|
}
|
|
6852
6852
|
}
|
|
6853
6853
|
try {
|
|
6854
|
-
for (var _ = re(this.contextListeners),
|
|
6855
|
-
var S =
|
|
6854
|
+
for (var _ = re(this.contextListeners), y = _.next(); !y.done; y = _.next()) {
|
|
6855
|
+
var S = y.value;
|
|
6856
6856
|
S(this.state.context, this.state.history ? this.state.history.context : void 0);
|
|
6857
6857
|
}
|
|
6858
6858
|
} catch (T) {
|
|
@@ -6861,7 +6861,7 @@ Event: `
|
|
|
6861
6861
|
};
|
|
6862
6862
|
} finally {
|
|
6863
6863
|
try {
|
|
6864
|
-
|
|
6864
|
+
y && !y.done && (c = _.return) && c.call(_);
|
|
6865
6865
|
} finally {
|
|
6866
6866
|
if (a)
|
|
6867
6867
|
throw a.error;
|
|
@@ -6968,8 +6968,8 @@ Event: `
|
|
|
6968
6968
|
}
|
|
6969
6969
|
}
|
|
6970
6970
|
try {
|
|
6971
|
-
for (var b = re(this.contextListeners),
|
|
6972
|
-
var g =
|
|
6971
|
+
for (var b = re(this.contextListeners), v = b.next(); !v.done; v = b.next()) {
|
|
6972
|
+
var g = v.value;
|
|
6973
6973
|
this.contextListeners.delete(g);
|
|
6974
6974
|
}
|
|
6975
6975
|
} catch (w) {
|
|
@@ -6978,15 +6978,15 @@ Event: `
|
|
|
6978
6978
|
};
|
|
6979
6979
|
} finally {
|
|
6980
6980
|
try {
|
|
6981
|
-
|
|
6981
|
+
v && !v.done && (s = b.return) && s.call(b);
|
|
6982
6982
|
} finally {
|
|
6983
6983
|
if (o)
|
|
6984
6984
|
throw o.error;
|
|
6985
6985
|
}
|
|
6986
6986
|
}
|
|
6987
6987
|
try {
|
|
6988
|
-
for (var _ = re(this.doneListeners),
|
|
6989
|
-
var g =
|
|
6988
|
+
for (var _ = re(this.doneListeners), y = _.next(); !y.done; y = _.next()) {
|
|
6989
|
+
var g = y.value;
|
|
6990
6990
|
this.doneListeners.delete(g);
|
|
6991
6991
|
}
|
|
6992
6992
|
} catch (w) {
|
|
@@ -6995,7 +6995,7 @@ Event: `
|
|
|
6995
6995
|
};
|
|
6996
6996
|
} finally {
|
|
6997
6997
|
try {
|
|
6998
|
-
|
|
6998
|
+
y && !y.done && (c = _.return) && c.call(_);
|
|
6999
6999
|
} finally {
|
|
7000
7000
|
if (a)
|
|
7001
7001
|
throw a.error;
|
|
@@ -7695,9 +7695,9 @@ var bo = "", Ia = "#", Xs = "*", ir = {}, or = function(t) {
|
|
|
7695
7695
|
f && (s[l] = f);
|
|
7696
7696
|
}
|
|
7697
7697
|
}
|
|
7698
|
-
} catch (
|
|
7698
|
+
} catch (v) {
|
|
7699
7699
|
i = {
|
|
7700
|
-
error:
|
|
7700
|
+
error: v
|
|
7701
7701
|
};
|
|
7702
7702
|
} finally {
|
|
7703
7703
|
try {
|
|
@@ -7707,27 +7707,27 @@ var bo = "", Ia = "#", Xs = "*", ir = {}, or = function(t) {
|
|
|
7707
7707
|
throw i.error;
|
|
7708
7708
|
}
|
|
7709
7709
|
}
|
|
7710
|
-
var g = Object.keys(s).map(function(
|
|
7711
|
-
return s[
|
|
7712
|
-
}), p = Oe(g.map(function(
|
|
7713
|
-
return
|
|
7714
|
-
})), h = g.some(function(
|
|
7715
|
-
return
|
|
7710
|
+
var g = Object.keys(s).map(function(v) {
|
|
7711
|
+
return s[v];
|
|
7712
|
+
}), p = Oe(g.map(function(v) {
|
|
7713
|
+
return v.transitions;
|
|
7714
|
+
})), h = g.some(function(v) {
|
|
7715
|
+
return v.transitions.length > 0;
|
|
7716
7716
|
});
|
|
7717
7717
|
if (!h)
|
|
7718
7718
|
return this.next(n, r);
|
|
7719
|
-
var b = Oe(Object.keys(s).map(function(
|
|
7720
|
-
return s[
|
|
7719
|
+
var b = Oe(Object.keys(s).map(function(v) {
|
|
7720
|
+
return s[v].configuration;
|
|
7721
7721
|
}));
|
|
7722
7722
|
return {
|
|
7723
7723
|
transitions: p,
|
|
7724
|
-
exitSet: Oe(g.map(function(
|
|
7725
|
-
return
|
|
7724
|
+
exitSet: Oe(g.map(function(v) {
|
|
7725
|
+
return v.exitSet;
|
|
7726
7726
|
})),
|
|
7727
7727
|
configuration: b,
|
|
7728
7728
|
source: n,
|
|
7729
|
-
actions: Oe(Object.keys(s).map(function(
|
|
7730
|
-
return s[
|
|
7729
|
+
actions: Oe(Object.keys(s).map(function(v) {
|
|
7730
|
+
return s[v].actions;
|
|
7731
7731
|
}))
|
|
7732
7732
|
};
|
|
7733
7733
|
}, t.prototype._transition = function(e, n, r) {
|
|
@@ -7744,14 +7744,14 @@ var bo = "", Ia = "#", Xs = "*", ir = {}, or = function(t) {
|
|
|
7744
7744
|
) : (
|
|
7745
7745
|
// Check if in state by relative grandparent
|
|
7746
7746
|
Ec(mi(p, this.delimiter), D1(this.path.slice(0, -2))(e.value))
|
|
7747
|
-
) : !0,
|
|
7747
|
+
) : !0, v = !1;
|
|
7748
7748
|
try {
|
|
7749
|
-
|
|
7749
|
+
v = !g || Pf(this.machine, g, h, n, e);
|
|
7750
7750
|
} catch (S) {
|
|
7751
7751
|
throw new Error("Unable to evaluate guard '".concat(g.name || g.type, "' in transition for event '").concat(s, "' in state node '").concat(this.id, `':
|
|
7752
7752
|
`).concat(S.message));
|
|
7753
7753
|
}
|
|
7754
|
-
if (
|
|
7754
|
+
if (v && b) {
|
|
7755
7755
|
f.target !== void 0 && (c = f.target), a.push.apply(a, ye([], se(f.actions), !1)), l = f;
|
|
7756
7756
|
break;
|
|
7757
7757
|
}
|
|
@@ -7779,10 +7779,10 @@ var bo = "", Ia = "#", Xs = "*", ir = {}, or = function(t) {
|
|
|
7779
7779
|
};
|
|
7780
7780
|
var _ = Oe(c.map(function(S) {
|
|
7781
7781
|
return o.getRelativeStateNodes(S, e.historyValue);
|
|
7782
|
-
})),
|
|
7782
|
+
})), y = !!l.internal;
|
|
7783
7783
|
return {
|
|
7784
7784
|
transitions: [l],
|
|
7785
|
-
exitSet:
|
|
7785
|
+
exitSet: y ? [] : Oe(c.map(function(S) {
|
|
7786
7786
|
return o.getPotentiallyReenteringNodes(S);
|
|
7787
7787
|
})),
|
|
7788
7788
|
configuration: _,
|
|
@@ -7802,8 +7802,8 @@ var bo = "", Ia = "#", Xs = "*", ir = {}, or = function(t) {
|
|
|
7802
7802
|
for (var h = re(Array.from(e).sort(function(L, A) {
|
|
7803
7803
|
return L.order - A.order;
|
|
7804
7804
|
})), b = h.next(); !b.done; b = h.next()) {
|
|
7805
|
-
var
|
|
7806
|
-
(!ui(g,
|
|
7805
|
+
var v = b.value;
|
|
7806
|
+
(!ui(g, v) || ui(r.exitSet, v) || v.parent && p.has(v.parent)) && p.add(v);
|
|
7807
7807
|
}
|
|
7808
7808
|
} catch (L) {
|
|
7809
7809
|
c = {
|
|
@@ -7818,9 +7818,9 @@ var bo = "", Ia = "#", Xs = "*", ir = {}, or = function(t) {
|
|
|
7818
7818
|
}
|
|
7819
7819
|
}
|
|
7820
7820
|
try {
|
|
7821
|
-
for (var _ = re(g),
|
|
7822
|
-
var
|
|
7823
|
-
(!ui(e,
|
|
7821
|
+
for (var _ = re(g), y = _.next(); !y.done; y = _.next()) {
|
|
7822
|
+
var v = y.value;
|
|
7823
|
+
(!ui(e, v) || ui(r.exitSet, v.parent)) && r.exitSet.push(v);
|
|
7824
7824
|
}
|
|
7825
7825
|
} catch (L) {
|
|
7826
7826
|
u = {
|
|
@@ -7828,7 +7828,7 @@ var bo = "", Ia = "#", Xs = "*", ir = {}, or = function(t) {
|
|
|
7828
7828
|
};
|
|
7829
7829
|
} finally {
|
|
7830
7830
|
try {
|
|
7831
|
-
|
|
7831
|
+
y && !y.done && (d = _.return) && d.call(_);
|
|
7832
7832
|
} finally {
|
|
7833
7833
|
if (u)
|
|
7834
7834
|
throw u.error;
|
|
@@ -7918,9 +7918,9 @@ var bo = "", Ia = "#", Xs = "*", ir = {}, or = function(t) {
|
|
|
7918
7918
|
}, t.prototype.resolveTransition = function(e, n, r, i, o) {
|
|
7919
7919
|
var s, a, c, l, u = this;
|
|
7920
7920
|
o === void 0 && (o = mr);
|
|
7921
|
-
var d = e.configuration, f = !n || e.transitions.length > 0, g = f ? e.configuration : n ? n.configuration : [], p = Qo(g, this), h = f ? sy(this.machine, d) : void 0, b = n ? n.historyValue ? n.historyValue : e.source ? this.machine.historyValue(n.value) : void 0 : void 0,
|
|
7921
|
+
var d = e.configuration, f = !n || e.transitions.length > 0, g = f ? e.configuration : n ? n.configuration : [], p = Qo(g, this), h = f ? sy(this.machine, d) : void 0, b = n ? n.historyValue ? n.historyValue : e.source ? this.machine.historyValue(n.value) : void 0 : void 0, v = this.getActions(new Set(g), p, e, r, o, n, i), _ = n ? D({}, n.activities) : {};
|
|
7922
7922
|
try {
|
|
7923
|
-
for (var
|
|
7923
|
+
for (var y = re(v), S = y.next(); !S.done; S = y.next()) {
|
|
7924
7924
|
var E = S.value;
|
|
7925
7925
|
try {
|
|
7926
7926
|
for (var m = (c = void 0, re(E.actions)), w = m.next(); !w.done; w = m.next()) {
|
|
@@ -7946,13 +7946,13 @@ var bo = "", Ia = "#", Xs = "*", ir = {}, or = function(t) {
|
|
|
7946
7946
|
};
|
|
7947
7947
|
} finally {
|
|
7948
7948
|
try {
|
|
7949
|
-
S && !S.done && (a =
|
|
7949
|
+
S && !S.done && (a = y.return) && a.call(y);
|
|
7950
7950
|
} finally {
|
|
7951
7951
|
if (s)
|
|
7952
7952
|
throw s.error;
|
|
7953
7953
|
}
|
|
7954
7954
|
}
|
|
7955
|
-
var T = se(as(this, n, r, o,
|
|
7955
|
+
var T = se(as(this, n, r, o, v, i, this.machine.config.predictableActionArguments || this.machine.config.preserveActionOrder), 2), P = T[0], L = T[1], A = se(j1(P, ka), 2), k = A[0], F = A[1], G = P.filter(function(Le) {
|
|
7956
7956
|
var Se;
|
|
7957
7957
|
return Le.type === Pa && ((Se = Le.activity) === null || Se === void 0 ? void 0 : Se.type) === La;
|
|
7958
7958
|
}), z = G.reduce(function(Le, Se) {
|
|
@@ -8293,22 +8293,22 @@ var bo = "", Ia = "#", Xs = "*", ir = {}, or = function(t) {
|
|
|
8293
8293
|
else {
|
|
8294
8294
|
var o = this.config.on, s = Xs, a = o[s], c = a === void 0 ? [] : a, l = _c(o, [typeof s == "symbol" ? s : s + ""]);
|
|
8295
8295
|
i = Oe(Object.keys(l).map(function(_) {
|
|
8296
|
-
var
|
|
8297
|
-
return
|
|
8296
|
+
var y = rr(_, l[_]);
|
|
8297
|
+
return y;
|
|
8298
8298
|
}).concat(rr(Xs, c)));
|
|
8299
8299
|
}
|
|
8300
8300
|
var u = this.config.always ? rr("", this.config.always) : [], d = this.config.onDone ? rr(String(vo(this.id)), this.config.onDone) : [], f = Oe(this.invoke.map(function(_) {
|
|
8301
|
-
var
|
|
8302
|
-
return _.onDone &&
|
|
8301
|
+
var y = [];
|
|
8302
|
+
return _.onDone && y.push.apply(y, ye([], se(rr(String(Ko(_.id)), _.onDone)), !1)), _.onError && y.push.apply(y, ye([], se(rr(String(ci(_.id)), _.onError)), !1)), y;
|
|
8303
8303
|
})), g = this.after, p = Oe(ye(ye(ye(ye([], se(d), !1), se(f), !1), se(i), !1), se(u), !1).map(function(_) {
|
|
8304
|
-
return mt(_).map(function(
|
|
8305
|
-
return r.formatTransition(
|
|
8304
|
+
return mt(_).map(function(y) {
|
|
8305
|
+
return r.formatTransition(y);
|
|
8306
8306
|
});
|
|
8307
8307
|
}));
|
|
8308
8308
|
try {
|
|
8309
8309
|
for (var h = re(g), b = h.next(); !b.done; b = h.next()) {
|
|
8310
|
-
var
|
|
8311
|
-
p.push(
|
|
8310
|
+
var v = b.value;
|
|
8311
|
+
p.push(v);
|
|
8312
8312
|
}
|
|
8313
8313
|
} catch (_) {
|
|
8314
8314
|
e = {
|
|
@@ -8750,11 +8750,11 @@ const Hn = /* @__PURE__ */ new Set(), $f = () => {
|
|
|
8750
8750
|
s = c.lastTime !== void 0 ? c.lastTime : t, g = c.lastVelocity !== void 0 ? c.lastVelocity : i.initialVelocity, t > s + 64 && (s = t);
|
|
8751
8751
|
let p = Math.floor(t - s);
|
|
8752
8752
|
for (let _ = 0; _ < p; ++_) {
|
|
8753
|
-
let
|
|
8753
|
+
let y = -i.tension * (d - u), S = -i.friction * g, E = (y + S) / i.mass;
|
|
8754
8754
|
g = g + E * 1 / 1e3, d = d + g * 1 / 1e3;
|
|
8755
8755
|
}
|
|
8756
|
-
let h = i.clamp && i.tension !== 0 ? l < u ? d > u : d < u : !1, b = Math.abs(g) <= i.precision,
|
|
8757
|
-
o = h || b &&
|
|
8756
|
+
let h = i.clamp && i.tension !== 0 ? l < u ? d > u : d < u : !1, b = Math.abs(g) <= i.precision, v = i.tension !== 0 ? Math.abs(u - d) <= i.precision : !0;
|
|
8757
|
+
o = h || b && v, c.lastVelocity = g, c.lastTime = t;
|
|
8758
8758
|
}
|
|
8759
8759
|
f && !i.toValues[a].done && (o = !1), o ? (c.value !== u && (d = u), c.done = !0) : n = !0, c.setValue(d), c.lastPosition = d;
|
|
8760
8760
|
}
|
|
@@ -8985,35 +8985,35 @@ let Qy = 0, Jy = class {
|
|
|
8985
8985
|
this.merged = Te({}, i, this.merged, s), this.hasChanged = !1;
|
|
8986
8986
|
let p = u && u(this);
|
|
8987
8987
|
if (this.animations = Object.entries(this.merged).reduce((h, b) => {
|
|
8988
|
-
let
|
|
8988
|
+
let v = b[0], _ = b[1], y = h[v] || {};
|
|
8989
8989
|
const S = Q.num(_), E = Q.str(_) && !_.startsWith("#") && !/\d/.test(_) && !Bf[_], m = Q.arr(_), w = !S && !m && !E;
|
|
8990
|
-
let O = Q.und(i[
|
|
8991
|
-
p && (T = p.animations[
|
|
8992
|
-
let L =
|
|
8990
|
+
let O = Q.und(i[v]) ? _ : i[v], T = S || m || E ? _ : 1, P = pr(c, v);
|
|
8991
|
+
p && (T = p.animations[v].parent);
|
|
8992
|
+
let L = y.parent, A = y.interpolation, k = wo(p ? T.getPayload() : T), F, G = _;
|
|
8993
8993
|
w && (G = ls({
|
|
8994
8994
|
range: [0, 1],
|
|
8995
8995
|
output: [_, _]
|
|
8996
8996
|
})(1));
|
|
8997
8997
|
let z = A && A.getValue();
|
|
8998
|
-
const X = !Q.und(L) &&
|
|
8998
|
+
const X = !Q.und(L) && y.animatedValues.some((ae) => !ae.done), he = !Q.equ(G, z), pe = !Q.equ(G, y.previous), me = !Q.equ(P, y.config);
|
|
8999
8999
|
if (d || pe && he || me) {
|
|
9000
9000
|
if (S || E)
|
|
9001
|
-
L = A =
|
|
9001
|
+
L = A = y.parent || new Ba(O);
|
|
9002
9002
|
else if (m)
|
|
9003
|
-
L = A =
|
|
9003
|
+
L = A = y.parent || new Ky(O);
|
|
9004
9004
|
else if (w) {
|
|
9005
|
-
let ae =
|
|
9006
|
-
ae = ae !== void 0 && !d ? ae : O,
|
|
9005
|
+
let ae = y.interpolation && y.interpolation.calc(y.parent.value);
|
|
9006
|
+
ae = ae !== void 0 && !d ? ae : O, y.parent ? (L = y.parent, L.setValue(0, !1)) : L = new Ba(0);
|
|
9007
9007
|
const Je = {
|
|
9008
9008
|
output: [ae, _]
|
|
9009
9009
|
};
|
|
9010
|
-
|
|
9010
|
+
y.interpolation ? (A = y.interpolation, y.interpolation.updateConfig(Je)) : A = L.interpolate(Je);
|
|
9011
9011
|
}
|
|
9012
9012
|
return k = wo(p ? T.getPayload() : T), F = wo(L.getPayload()), d && !w && L.setValue(O, !1), this.hasChanged = !0, F.forEach((ae) => {
|
|
9013
9013
|
ae.startPosition = ae.value, ae.lastPosition = ae.value, ae.lastVelocity = X ? ae.lastVelocity : void 0, ae.lastTime = X ? ae.lastTime : void 0, ae.startTime = Hf(), ae.done = !1, ae.animatedStyles.clear();
|
|
9014
|
-
}), pr(f,
|
|
9015
|
-
[
|
|
9016
|
-
name:
|
|
9014
|
+
}), pr(f, v) && L.setValue(w ? T : _, !1), Te({}, h, {
|
|
9015
|
+
[v]: Te({}, y, {
|
|
9016
|
+
name: v,
|
|
9017
9017
|
parent: L,
|
|
9018
9018
|
interpolation: A,
|
|
9019
9019
|
animatedValues: F,
|
|
@@ -9021,7 +9021,7 @@ let Qy = 0, Jy = class {
|
|
|
9021
9021
|
previous: G,
|
|
9022
9022
|
config: P,
|
|
9023
9023
|
fromValues: wo(L.getValue()),
|
|
9024
|
-
immediate: pr(f,
|
|
9024
|
+
immediate: pr(f, v),
|
|
9025
9025
|
initialVelocity: xn(P.velocity, 0),
|
|
9026
9026
|
clamp: xn(P.clamp, !1),
|
|
9027
9027
|
precision: xn(P.precision, 0.01),
|
|
@@ -9037,7 +9037,7 @@ let Qy = 0, Jy = class {
|
|
|
9037
9037
|
return he ? h : (w && (L.setValue(1, !1), A.updateConfig({
|
|
9038
9038
|
output: [G, G]
|
|
9039
9039
|
})), L.done = !0, this.hasChanged = !0, Te({}, h, {
|
|
9040
|
-
[
|
|
9040
|
+
[v]: Te({}, h[v], {
|
|
9041
9041
|
previous: G
|
|
9042
9042
|
})
|
|
9043
9043
|
}));
|
|
@@ -9918,19 +9918,19 @@ var Pn = /* @__PURE__ */ new Map(), I2 = /* @__PURE__ */ function() {
|
|
|
9918
9918
|
_blocked: !1
|
|
9919
9919
|
};
|
|
9920
9920
|
}, e.getMovement = function(r) {
|
|
9921
|
-
var i = this.config, o = i.initial, s = i.bounds, a = i.rubberband, c = i.threshold, l = this.state, u = l._bounds, d = l._initial, f = l._active, g = l._intentional, p = l.lastOffset, h = l.movement, b = this.getInternalMovement(r, this.state),
|
|
9922
|
-
if (
|
|
9923
|
-
return Ge({},
|
|
9921
|
+
var i = this.config, o = i.initial, s = i.bounds, a = i.rubberband, c = i.threshold, l = this.state, u = l._bounds, d = l._initial, f = l._active, g = l._intentional, p = l.lastOffset, h = l.movement, b = this.getInternalMovement(r, this.state), v = g[0] === !1 ? tu(b[0], c[0]) : g[0], _ = g[1] === !1 ? tu(b[1], c[1]) : g[1], y = this.checkIntentionality([v, _], b);
|
|
9922
|
+
if (y._blocked)
|
|
9923
|
+
return Ge({}, y, {
|
|
9924
9924
|
_movement: b,
|
|
9925
9925
|
delta: [0, 0]
|
|
9926
9926
|
});
|
|
9927
|
-
var S =
|
|
9927
|
+
var S = y._intentional, E = b, m, w;
|
|
9928
9928
|
if (S[0] !== !1 && g[0] === !1 && (w = Eo(o, this.state), m = Eo(s, this.state), d[0] = w[0], u[0] = m[0]), S[1] !== !1 && g[1] === !1) {
|
|
9929
9929
|
var O, T;
|
|
9930
9930
|
w = (O = w) != null ? O : Eo(o, this.state), m = (T = m) != null ? T : Eo(s, this.state), d[1] = w[1], u[1] = m[1];
|
|
9931
9931
|
}
|
|
9932
9932
|
var P = [S[0] !== !1 ? b[0] - S[0] : d[0], S[1] !== !1 ? b[1] - S[1] : d[1]], L = Jl(P, p), A = f ? a : [0, 0];
|
|
9933
|
-
return P = nu(u, Jl(P, d), A), Ge({},
|
|
9933
|
+
return P = nu(u, Jl(P, d), A), Ge({}, y, {
|
|
9934
9934
|
intentional: S[0] !== !1 || S[1] !== !1,
|
|
9935
9935
|
_initial: d,
|
|
9936
9936
|
_movement: E,
|
|
@@ -10202,8 +10202,8 @@ var K2 = 3, Q2 = 220, J2 = /* @__PURE__ */ function(t) {
|
|
|
10202
10202
|
buttons: 0,
|
|
10203
10203
|
touches: 0
|
|
10204
10204
|
});
|
|
10205
|
-
var o = r.state._isTap, s = r.state.velocities, a = s[0], c = s[1], l = r.state.movement, u = l[0], d = l[1], f = r.state._intentional, g = f[0], p = f[1], h = r.config.swipeVelocity, b = h[0],
|
|
10206
|
-
E.elapsedTime < Q2 && (g !== !1 && Math.abs(a) > b && Math.abs(u) >
|
|
10205
|
+
var o = r.state._isTap, s = r.state.velocities, a = s[0], c = s[1], l = r.state.movement, u = l[0], d = l[1], f = r.state._intentional, g = f[0], p = f[1], h = r.config.swipeVelocity, b = h[0], v = h[1], _ = r.config.swipeDistance, y = _[0], S = _[1], E = Ge({}, ta(Co(r), i), r.getMovement(r.state.values)), m = [0, 0];
|
|
10206
|
+
E.elapsedTime < Q2 && (g !== !1 && Math.abs(a) > b && Math.abs(u) > y && (m[0] = Ha(a)), p !== !1 && Math.abs(c) > v && Math.abs(d) > S && (m[1] = Ha(c))), r.updateGestureState(Ge({}, E, {
|
|
10207
10207
|
tap: o,
|
|
10208
10208
|
swipe: m
|
|
10209
10209
|
})), r.fireGestureHandler(o === !0);
|
|
@@ -10728,7 +10728,7 @@ var cu = /* @__PURE__ */ function() {
|
|
|
10728
10728
|
} else
|
|
10729
10729
|
O = l("fallbackFocus");
|
|
10730
10730
|
O && (m.preventDefault(), f(O));
|
|
10731
|
-
},
|
|
10731
|
+
}, v = function(m) {
|
|
10732
10732
|
if (v3(m) && ti(i.escapeDeactivates, m) !== !1) {
|
|
10733
10733
|
m.preventDefault(), s.deactivate();
|
|
10734
10734
|
return;
|
|
@@ -10740,7 +10740,7 @@ var cu = /* @__PURE__ */ function() {
|
|
|
10740
10740
|
}, _ = function(m) {
|
|
10741
10741
|
var w = xo(m);
|
|
10742
10742
|
c(w) >= 0 || ti(i.clickOutsideDeactivates, m) || ti(i.allowOutsideClick, m) || (m.preventDefault(), m.stopImmediatePropagation());
|
|
10743
|
-
},
|
|
10743
|
+
}, y = function() {
|
|
10744
10744
|
if (o.active)
|
|
10745
10745
|
return cu.activateTrap(s), o.delayInitialFocusTimer = i.delayInitialFocus ? lu(function() {
|
|
10746
10746
|
f(u());
|
|
@@ -10753,13 +10753,13 @@ var cu = /* @__PURE__ */ function() {
|
|
|
10753
10753
|
}), r.addEventListener("click", _, {
|
|
10754
10754
|
capture: !0,
|
|
10755
10755
|
passive: !1
|
|
10756
|
-
}), r.addEventListener("keydown",
|
|
10756
|
+
}), r.addEventListener("keydown", v, {
|
|
10757
10757
|
capture: !0,
|
|
10758
10758
|
passive: !1
|
|
10759
10759
|
}), s;
|
|
10760
10760
|
}, S = function() {
|
|
10761
10761
|
if (o.active)
|
|
10762
|
-
return r.removeEventListener("focusin", h, !0), r.removeEventListener("mousedown", p, !0), r.removeEventListener("touchstart", p, !0), r.removeEventListener("click", _, !0), r.removeEventListener("keydown",
|
|
10762
|
+
return r.removeEventListener("focusin", h, !0), r.removeEventListener("mousedown", p, !0), r.removeEventListener("touchstart", p, !0), r.removeEventListener("click", _, !0), r.removeEventListener("keydown", v, !0), s;
|
|
10763
10763
|
};
|
|
10764
10764
|
return s = {
|
|
10765
10765
|
get active() {
|
|
@@ -10774,7 +10774,7 @@ var cu = /* @__PURE__ */ function() {
|
|
|
10774
10774
|
var w = a(m, "onActivate"), O = a(m, "onPostActivate"), T = a(m, "checkCanFocusTrap");
|
|
10775
10775
|
T || d(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = r.activeElement, w && w();
|
|
10776
10776
|
var P = function() {
|
|
10777
|
-
T && d(),
|
|
10777
|
+
T && d(), y(), O && O();
|
|
10778
10778
|
};
|
|
10779
10779
|
return T ? (T(o.containers.concat()).then(P, P), this) : (P(), this);
|
|
10780
10780
|
},
|
|
@@ -10800,7 +10800,7 @@ var cu = /* @__PURE__ */ function() {
|
|
|
10800
10800
|
return o.paused || !o.active ? this : (o.paused = !0, S(), this);
|
|
10801
10801
|
},
|
|
10802
10802
|
unpause: function() {
|
|
10803
|
-
return !o.paused || !o.active ? this : (o.paused = !1, d(),
|
|
10803
|
+
return !o.paused || !o.active ? this : (o.paused = !1, d(), y(), this);
|
|
10804
10804
|
},
|
|
10805
10805
|
updateContainerElements: function(m) {
|
|
10806
10806
|
var w = [].concat(m).filter(Boolean);
|
|
@@ -10951,7 +10951,7 @@ var $n = function(t) {
|
|
|
10951
10951
|
return To.get(t);
|
|
10952
10952
|
if (dh(t))
|
|
10953
10953
|
return To.set(t, mu), mu;
|
|
10954
|
-
var n = getComputedStyle(t), r = Lc(t) && t.ownerSVGElement && t.getBBox(), i = !k3 && n.boxSizing === "border-box", o = M3.test(n.writingMode || ""), s = !r && pu.test(n.overflowY || ""), a = !r && pu.test(n.overflowX || ""), c = r ? 0 : Et(n.paddingTop), l = r ? 0 : Et(n.paddingRight), u = r ? 0 : Et(n.paddingBottom), d = r ? 0 : Et(n.paddingLeft), f = r ? 0 : Et(n.borderTopWidth), g = r ? 0 : Et(n.borderRightWidth), p = r ? 0 : Et(n.borderBottomWidth), h = r ? 0 : Et(n.borderLeftWidth), b = d + l,
|
|
10954
|
+
var n = getComputedStyle(t), r = Lc(t) && t.ownerSVGElement && t.getBBox(), i = !k3 && n.boxSizing === "border-box", o = M3.test(n.writingMode || ""), s = !r && pu.test(n.overflowY || ""), a = !r && pu.test(n.overflowX || ""), c = r ? 0 : Et(n.paddingTop), l = r ? 0 : Et(n.paddingRight), u = r ? 0 : Et(n.paddingBottom), d = r ? 0 : Et(n.paddingLeft), f = r ? 0 : Et(n.borderTopWidth), g = r ? 0 : Et(n.borderRightWidth), p = r ? 0 : Et(n.borderBottomWidth), h = r ? 0 : Et(n.borderLeftWidth), b = d + l, v = c + u, _ = h + g, y = f + p, S = a ? t.offsetHeight - y - t.clientHeight : 0, E = s ? t.offsetWidth - _ - t.clientWidth : 0, m = i ? b + _ : 0, w = i ? v + y : 0, O = r ? r.width : Et(n.width) - m - E, T = r ? r.height : Et(n.height) - w - S, P = O + b + E + _, L = T + v + S + y, A = $n({
|
|
10955
10955
|
devicePixelContentBoxSize: vr(Math.round(O * devicePixelRatio), Math.round(T * devicePixelRatio), o),
|
|
10956
10956
|
borderBoxSize: vr(P, L, o),
|
|
10957
10957
|
contentBoxSize: vr(O, T, o),
|
|
@@ -11336,7 +11336,7 @@ var _u = { DRAG: { target: "#overlay.dragging", actions: "onOpenEnd" } }, Su = {
|
|
|
11336
11336
|
}, initiallyOpen: function(t) {
|
|
11337
11337
|
return t.initialState === "OPEN";
|
|
11338
11338
|
} } }), Q3 = ["children", "sibling", "className", "footer", "header", "open", "initialState", "lastSnapRef", "initialFocusRef", "onDismiss", "maxHeight", "defaultSnap", "snapPoints", "blocking", "scrollLocking", "style", "onSpringStart", "onSpringCancel", "onSpringEnd", "reserveScrollBarGap", "expandOnContentDrag"], J3 = ["velocity"], X3 = ["onRest", "config"], gh = Zy.default, Y3 = gh.tension, Ro = gh.friction, e4 = $.forwardRef(function(t, e) {
|
|
11339
|
-
var n = t.children, r = t.sibling, i = t.className, o = t.footer, s = t.header, a = t.open, c = t.initialState, l = t.lastSnapRef, u = t.initialFocusRef, d = t.onDismiss, f = t.maxHeight, g = t.defaultSnap, p = g === void 0 ? n4 : g, h = t.snapPoints, b = h === void 0 ? r4 : h,
|
|
11339
|
+
var n = t.children, r = t.sibling, i = t.className, o = t.footer, s = t.header, a = t.open, c = t.initialState, l = t.lastSnapRef, u = t.initialFocusRef, d = t.onDismiss, f = t.maxHeight, g = t.defaultSnap, p = g === void 0 ? n4 : g, h = t.snapPoints, b = h === void 0 ? r4 : h, v = t.blocking, _ = v === void 0 || v, y = t.scrollLocking, S = y === void 0 || y, E = t.style, m = t.onSpringStart, w = t.onSpringCancel, O = t.onSpringEnd, T = t.reserveScrollBarGap, P = T === void 0 ? _ : T, L = t.expandOnContentDrag, A = L !== void 0 && L, k = Yo(t, Q3), F = function() {
|
|
11340
11340
|
var M = J(!1), W = M[0], U = M[1], ie = J({}), be = ie[0], le = ie[1], ge = H(function(ve) {
|
|
11341
11341
|
return le(function(Ce) {
|
|
11342
11342
|
var K;
|
|
@@ -12327,8 +12327,8 @@ function xh(t) {
|
|
|
12327
12327
|
r || (r = !0, (b = t.onError) == null || b.call(t, h), i == null || i(), o.reject(h));
|
|
12328
12328
|
}, g = () => new Promise((h) => {
|
|
12329
12329
|
var b;
|
|
12330
|
-
i = (
|
|
12331
|
-
(r || l()) && h(
|
|
12330
|
+
i = (v) => {
|
|
12331
|
+
(r || l()) && h(v);
|
|
12332
12332
|
}, (b = t.onPause) == null || b.call(t);
|
|
12333
12333
|
}).then(() => {
|
|
12334
12334
|
var h;
|
|
@@ -12340,20 +12340,20 @@ function xh(t) {
|
|
|
12340
12340
|
const b = n === 0 ? t.initialPromise : void 0;
|
|
12341
12341
|
try {
|
|
12342
12342
|
h = b ?? t.fn();
|
|
12343
|
-
} catch (
|
|
12344
|
-
h = Promise.reject(
|
|
12343
|
+
} catch (v) {
|
|
12344
|
+
h = Promise.reject(v);
|
|
12345
12345
|
}
|
|
12346
|
-
Promise.resolve(h).then(d).catch((
|
|
12346
|
+
Promise.resolve(h).then(d).catch((v) => {
|
|
12347
12347
|
var m;
|
|
12348
12348
|
if (r)
|
|
12349
12349
|
return;
|
|
12350
|
-
const _ = t.retry ?? (Gn ? 0 : 3),
|
|
12350
|
+
const _ = t.retry ?? (Gn ? 0 : 3), y = t.retryDelay ?? e5, S = typeof y == "function" ? y(n, v) : y, E = _ === !0 || typeof _ == "number" && n < _ || typeof _ == "function" && _(n, v);
|
|
12351
12351
|
if (e || !E) {
|
|
12352
|
-
f(
|
|
12352
|
+
f(v);
|
|
12353
12353
|
return;
|
|
12354
12354
|
}
|
|
12355
|
-
n++, (m = t.onFail) == null || m.call(t, n,
|
|
12356
|
-
e ? f(
|
|
12355
|
+
n++, (m = t.onFail) == null || m.call(t, n, v), K4(S).then(() => l() ? void 0 : g()).then(() => {
|
|
12356
|
+
e ? f(v) : p();
|
|
12357
12357
|
});
|
|
12358
12358
|
});
|
|
12359
12359
|
};
|
|
@@ -12834,7 +12834,7 @@ var xt, Yu, i5 = (Yu = class extends Qi {
|
|
|
12834
12834
|
this.execute(this.state.variables);
|
|
12835
12835
|
}
|
|
12836
12836
|
async execute(e) {
|
|
12837
|
-
var i, o, s, a, c, l, u, d, f, g, p, h, b,
|
|
12837
|
+
var i, o, s, a, c, l, u, d, f, g, p, h, b, v, _, y, S, E, m, w;
|
|
12838
12838
|
V(this, In, xh({
|
|
12839
12839
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
|
|
12840
12840
|
onFail: (O, T) => {
|
|
@@ -12884,13 +12884,13 @@ var xt, Yu, i5 = (Yu = class extends Qi {
|
|
|
12884
12884
|
)), await ((h = (p = this.options).onSettled) == null ? void 0 : h.call(p, O, null, e, this.state.context)), te(this, At, on).call(this, { type: "success", data: O }), O;
|
|
12885
12885
|
} catch (O) {
|
|
12886
12886
|
try {
|
|
12887
|
-
throw await ((
|
|
12887
|
+
throw await ((v = (b = x(this, $e).config).onError) == null ? void 0 : v.call(
|
|
12888
12888
|
b,
|
|
12889
12889
|
O,
|
|
12890
12890
|
e,
|
|
12891
12891
|
this.state.context,
|
|
12892
12892
|
this
|
|
12893
|
-
)), await ((
|
|
12893
|
+
)), await ((y = (_ = this.options).onError) == null ? void 0 : y.call(
|
|
12894
12894
|
_,
|
|
12895
12895
|
O,
|
|
12896
12896
|
e,
|
|
@@ -13079,18 +13079,18 @@ function Tu(t) {
|
|
|
13079
13079
|
let a = { pages: [], pageParams: [] }, c = 0;
|
|
13080
13080
|
const l = async () => {
|
|
13081
13081
|
let h = !1;
|
|
13082
|
-
const b = (
|
|
13083
|
-
Object.defineProperty(
|
|
13082
|
+
const b = (y) => {
|
|
13083
|
+
Object.defineProperty(y, "signal", {
|
|
13084
13084
|
enumerable: !0,
|
|
13085
13085
|
get: () => (e.signal.aborted ? h = !0 : e.signal.addEventListener("abort", () => {
|
|
13086
13086
|
h = !0;
|
|
13087
13087
|
}), e.signal)
|
|
13088
13088
|
});
|
|
13089
|
-
},
|
|
13089
|
+
}, v = Ch(e.options, e.fetchOptions), _ = async (y, S, E) => {
|
|
13090
13090
|
if (h)
|
|
13091
13091
|
return Promise.reject();
|
|
13092
|
-
if (S == null &&
|
|
13093
|
-
return Promise.resolve(
|
|
13092
|
+
if (S == null && y.pages.length)
|
|
13093
|
+
return Promise.resolve(y);
|
|
13094
13094
|
const m = {
|
|
13095
13095
|
queryKey: e.queryKey,
|
|
13096
13096
|
pageParam: S,
|
|
@@ -13098,28 +13098,28 @@ function Tu(t) {
|
|
|
13098
13098
|
meta: e.options.meta
|
|
13099
13099
|
};
|
|
13100
13100
|
b(m);
|
|
13101
|
-
const w = await
|
|
13101
|
+
const w = await v(
|
|
13102
13102
|
m
|
|
13103
13103
|
), { maxPages: O } = e.options, T = E ? J4 : Q4;
|
|
13104
13104
|
return {
|
|
13105
|
-
pages: T(
|
|
13106
|
-
pageParams: T(
|
|
13105
|
+
pages: T(y.pages, w, O),
|
|
13106
|
+
pageParams: T(y.pageParams, S, O)
|
|
13107
13107
|
};
|
|
13108
13108
|
};
|
|
13109
13109
|
if (i && o.length) {
|
|
13110
|
-
const
|
|
13110
|
+
const y = i === "backward", S = y ? c5 : Au, E = {
|
|
13111
13111
|
pages: o,
|
|
13112
13112
|
pageParams: s
|
|
13113
13113
|
}, m = S(r, E);
|
|
13114
|
-
a = await _(E, m,
|
|
13114
|
+
a = await _(E, m, y);
|
|
13115
13115
|
} else {
|
|
13116
|
-
const
|
|
13116
|
+
const y = t ?? o.length;
|
|
13117
13117
|
do {
|
|
13118
13118
|
const S = c === 0 ? s[0] ?? r.initialPageParam : Au(r, a);
|
|
13119
13119
|
if (c > 0 && S == null)
|
|
13120
13120
|
break;
|
|
13121
13121
|
a = await _(a, S), c++;
|
|
13122
|
-
} while (c <
|
|
13122
|
+
} while (c < y);
|
|
13123
13123
|
}
|
|
13124
13124
|
return a;
|
|
13125
13125
|
};
|
|
@@ -13516,12 +13516,12 @@ var xe, mn, gn, Or, xr, vn, Tr, Ar, nd, l5 = (nd = class {
|
|
|
13516
13516
|
), f = !0);
|
|
13517
13517
|
}
|
|
13518
13518
|
x(this, Pt) && (p = x(this, Pt), g = x(this, Lr), h = Date.now(), b = "error");
|
|
13519
|
-
const
|
|
13519
|
+
const v = d.fetchStatus === "fetching", _ = b === "pending", y = b === "error", S = _ && v, E = g !== void 0, w = {
|
|
13520
13520
|
status: b,
|
|
13521
13521
|
fetchStatus: d.fetchStatus,
|
|
13522
13522
|
isPending: _,
|
|
13523
13523
|
isSuccess: b === "success",
|
|
13524
|
-
isError:
|
|
13524
|
+
isError: y,
|
|
13525
13525
|
isInitialLoading: S,
|
|
13526
13526
|
isLoading: S,
|
|
13527
13527
|
data: g,
|
|
@@ -13533,12 +13533,12 @@ var xe, mn, gn, Or, xr, vn, Tr, Ar, nd, l5 = (nd = class {
|
|
|
13533
13533
|
errorUpdateCount: d.errorUpdateCount,
|
|
13534
13534
|
isFetched: d.dataUpdateCount > 0 || d.errorUpdateCount > 0,
|
|
13535
13535
|
isFetchedAfterMount: d.dataUpdateCount > l.dataUpdateCount || d.errorUpdateCount > l.errorUpdateCount,
|
|
13536
|
-
isFetching:
|
|
13537
|
-
isRefetching:
|
|
13538
|
-
isLoadingError:
|
|
13536
|
+
isFetching: v,
|
|
13537
|
+
isRefetching: v && !_,
|
|
13538
|
+
isLoadingError: y && !E,
|
|
13539
13539
|
isPaused: d.fetchStatus === "paused",
|
|
13540
13540
|
isPlaceholderData: f,
|
|
13541
|
-
isRefetchError:
|
|
13541
|
+
isRefetchError: y && E,
|
|
13542
13542
|
isStale: Nc(e, n),
|
|
13543
13543
|
refetch: this.refetch,
|
|
13544
13544
|
promise: x(this, yn)
|
|
@@ -13921,7 +13921,7 @@ function kh(t, e, n, r) {
|
|
|
13921
13921
|
var Z5 = "[object Arguments]", K5 = "[object Boolean]", Q5 = "[object Date]", J5 = "[object Error]", X5 = "[object Map]", Y5 = "[object Number]", eb = "[object Object]", tb = "[object RegExp]", nb = "[object Set]", rb = "[object String]", ib = "[object URL]", ob = Array.isArray, ju = typeof ArrayBuffer == "function" && ArrayBuffer.isView ? ArrayBuffer.isView : null, Bu = Object.assign, sb = Object.prototype.toString.call.bind(Object.prototype.toString);
|
|
13922
13922
|
function ab(t) {
|
|
13923
13923
|
var e = t.areArraysEqual, n = t.areDatesEqual, r = t.areErrorsEqual, i = t.areFunctionsEqual, o = t.areMapsEqual, s = t.areNumbersEqual, a = t.areObjectsEqual, c = t.arePrimitiveWrappersEqual, l = t.areRegExpsEqual, u = t.areSetsEqual, d = t.areTypedArraysEqual, f = t.areUrlsEqual, g = t.unknownTagComparators;
|
|
13924
|
-
return function(h, b,
|
|
13924
|
+
return function(h, b, v) {
|
|
13925
13925
|
if (h === b)
|
|
13926
13926
|
return !0;
|
|
13927
13927
|
if (h == null || b == null)
|
|
@@ -13930,43 +13930,43 @@ function ab(t) {
|
|
|
13930
13930
|
if (_ !== typeof b)
|
|
13931
13931
|
return !1;
|
|
13932
13932
|
if (_ !== "object")
|
|
13933
|
-
return _ === "number" ? s(h, b,
|
|
13934
|
-
var
|
|
13935
|
-
if (
|
|
13933
|
+
return _ === "number" ? s(h, b, v) : _ === "function" ? i(h, b, v) : !1;
|
|
13934
|
+
var y = h.constructor;
|
|
13935
|
+
if (y !== b.constructor)
|
|
13936
13936
|
return !1;
|
|
13937
|
-
if (
|
|
13938
|
-
return a(h, b,
|
|
13937
|
+
if (y === Object)
|
|
13938
|
+
return a(h, b, v);
|
|
13939
13939
|
if (ob(h))
|
|
13940
|
-
return e(h, b,
|
|
13940
|
+
return e(h, b, v);
|
|
13941
13941
|
if (ju != null && ju(h))
|
|
13942
|
-
return d(h, b,
|
|
13943
|
-
if (
|
|
13944
|
-
return n(h, b,
|
|
13945
|
-
if (
|
|
13946
|
-
return l(h, b,
|
|
13947
|
-
if (
|
|
13948
|
-
return o(h, b,
|
|
13949
|
-
if (
|
|
13950
|
-
return u(h, b,
|
|
13942
|
+
return d(h, b, v);
|
|
13943
|
+
if (y === Date)
|
|
13944
|
+
return n(h, b, v);
|
|
13945
|
+
if (y === RegExp)
|
|
13946
|
+
return l(h, b, v);
|
|
13947
|
+
if (y === Map)
|
|
13948
|
+
return o(h, b, v);
|
|
13949
|
+
if (y === Set)
|
|
13950
|
+
return u(h, b, v);
|
|
13951
13951
|
var S = sb(h);
|
|
13952
13952
|
if (S === Q5)
|
|
13953
|
-
return n(h, b,
|
|
13953
|
+
return n(h, b, v);
|
|
13954
13954
|
if (S === tb)
|
|
13955
|
-
return l(h, b,
|
|
13955
|
+
return l(h, b, v);
|
|
13956
13956
|
if (S === X5)
|
|
13957
|
-
return o(h, b,
|
|
13957
|
+
return o(h, b, v);
|
|
13958
13958
|
if (S === nb)
|
|
13959
|
-
return u(h, b,
|
|
13959
|
+
return u(h, b, v);
|
|
13960
13960
|
if (S === eb)
|
|
13961
|
-
return typeof h.then != "function" && typeof b.then != "function" && a(h, b,
|
|
13961
|
+
return typeof h.then != "function" && typeof b.then != "function" && a(h, b, v);
|
|
13962
13962
|
if (S === ib)
|
|
13963
|
-
return f(h, b,
|
|
13963
|
+
return f(h, b, v);
|
|
13964
13964
|
if (S === J5)
|
|
13965
|
-
return r(h, b,
|
|
13965
|
+
return r(h, b, v);
|
|
13966
13966
|
if (S === Z5)
|
|
13967
|
-
return a(h, b,
|
|
13967
|
+
return a(h, b, v);
|
|
13968
13968
|
if (S === K5 || S === Y5 || S === rb)
|
|
13969
|
-
return c(h, b,
|
|
13969
|
+
return c(h, b, v);
|
|
13970
13970
|
if (g) {
|
|
13971
13971
|
var E = g[S];
|
|
13972
13972
|
if (!E) {
|
|
@@ -13974,7 +13974,7 @@ function ab(t) {
|
|
|
13974
13974
|
m && (E = g[m]);
|
|
13975
13975
|
}
|
|
13976
13976
|
if (E)
|
|
13977
|
-
return E(h, b,
|
|
13977
|
+
return E(h, b, v);
|
|
13978
13978
|
}
|
|
13979
13979
|
return !1;
|
|
13980
13980
|
};
|
|
@@ -14160,8 +14160,8 @@ class Ic {
|
|
|
14160
14160
|
const u = c.pop() || 0, d = c.pop() || 0, f = c.pop() || 0;
|
|
14161
14161
|
if (d - f <= a) {
|
|
14162
14162
|
for (let b = f; b <= d; b++) {
|
|
14163
|
-
const
|
|
14164
|
-
|
|
14163
|
+
const v = s[2 * b], _ = s[2 * b + 1];
|
|
14164
|
+
v >= e && v <= r && _ >= n && _ <= i && l.push(o[b]);
|
|
14165
14165
|
}
|
|
14166
14166
|
continue;
|
|
14167
14167
|
}
|
|
@@ -14389,8 +14389,8 @@ class fb {
|
|
|
14389
14389
|
else {
|
|
14390
14390
|
const h = this.points[n[c + ln]];
|
|
14391
14391
|
u = h.properties;
|
|
14392
|
-
const [b,
|
|
14393
|
-
d = No(b), f = Io(
|
|
14392
|
+
const [b, v] = h.geometry.coordinates;
|
|
14393
|
+
d = No(b), f = Io(v);
|
|
14394
14394
|
}
|
|
14395
14395
|
const g = {
|
|
14396
14396
|
type: 1,
|
|
@@ -14415,12 +14415,12 @@ class fb {
|
|
|
14415
14415
|
c[d + Tn] = n;
|
|
14416
14416
|
const f = c[d], g = c[d + 1], p = e.within(c[d], c[d + 1], a), h = c[d + sn];
|
|
14417
14417
|
let b = h;
|
|
14418
|
-
for (const
|
|
14419
|
-
const _ =
|
|
14418
|
+
for (const v of p) {
|
|
14419
|
+
const _ = v * u;
|
|
14420
14420
|
c[_ + Tn] > n && (b += c[_ + sn]);
|
|
14421
14421
|
}
|
|
14422
14422
|
if (b > h && b >= s) {
|
|
14423
|
-
let
|
|
14423
|
+
let v = f * h, _ = g * h, y, S = -1;
|
|
14424
14424
|
const E = ((d / u | 0) << 5) + (n + 1) + this.points.length;
|
|
14425
14425
|
for (const m of p) {
|
|
14426
14426
|
const w = m * u;
|
|
@@ -14428,19 +14428,19 @@ class fb {
|
|
|
14428
14428
|
continue;
|
|
14429
14429
|
c[w + Tn] = n;
|
|
14430
14430
|
const O = c[w + sn];
|
|
14431
|
-
|
|
14431
|
+
v += c[w] * O, _ += c[w + 1] * O, c[w + la] = E, o && (y || (y = this._map(c, d, !0), S = this.clusterProps.length, this.clusterProps.push(y)), o(y, this._map(c, w)));
|
|
14432
14432
|
}
|
|
14433
|
-
c[d + la] = E, l.push(
|
|
14433
|
+
c[d + la] = E, l.push(v / b, _ / b, 1 / 0, E, -1, b), o && l.push(S);
|
|
14434
14434
|
} else {
|
|
14435
|
-
for (let
|
|
14436
|
-
l.push(c[d +
|
|
14435
|
+
for (let v = 0; v < u; v++)
|
|
14436
|
+
l.push(c[d + v]);
|
|
14437
14437
|
if (b > 1)
|
|
14438
|
-
for (const
|
|
14439
|
-
const _ =
|
|
14438
|
+
for (const v of p) {
|
|
14439
|
+
const _ = v * u;
|
|
14440
14440
|
if (!(c[_ + Tn] <= n)) {
|
|
14441
14441
|
c[_ + Tn] = n;
|
|
14442
|
-
for (let
|
|
14443
|
-
l.push(c[_ +
|
|
14442
|
+
for (let y = 0; y < u; y++)
|
|
14443
|
+
l.push(c[_ + y]);
|
|
14444
14444
|
}
|
|
14445
14445
|
}
|
|
14446
14446
|
}
|
|
@@ -14892,7 +14892,7 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
14892
14892
|
point: i,
|
|
14893
14893
|
setMarkerRef: o
|
|
14894
14894
|
}) => {
|
|
14895
|
-
const [s, a] = J(!1), { hideDetails: c, iconType: l, palette: u } = _e(), d = B(null), { closeSamePoints: f } = It(), g = ut((O) => O.location), p = (u == null ? void 0 : u.primary) || "#fc0", h = l === "omni-llama" ? Ye.PinLlama : Ye.PinOmnic, b = !!i && (g == null ? void 0 : g.uid) === i.uid,
|
|
14895
|
+
const [s, a] = J(!1), { hideDetails: c, iconType: l, palette: u } = _e(), d = B(null), { closeSamePoints: f } = It(), g = ut((O) => O.location), p = (u == null ? void 0 : u.primary) || "#fc0", h = l === "omni-llama" ? Ye.PinLlama : Ye.PinOmnic, b = !!i && (g == null ? void 0 : g.uid) === i.uid, v = Zn("screenSm"), { isIdle: _ } = Y(), y = wc({ isSelectedPoint: b }), S = _ && b && y && s;
|
|
14896
14896
|
j(() => {
|
|
14897
14897
|
d.current && a(d.current.checkVisibility() ?? !1);
|
|
14898
14898
|
}, [i]);
|
|
@@ -14939,7 +14939,7 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
14939
14939
|
},
|
|
14940
14940
|
i.uid
|
|
14941
14941
|
),
|
|
14942
|
-
S && !
|
|
14942
|
+
S && !v && /* @__PURE__ */ C(rf, { anchor: d.current || void 0, onCloseClick: t, children: /* @__PURE__ */ C(
|
|
14943
14943
|
Nb,
|
|
14944
14944
|
{
|
|
14945
14945
|
...i,
|
|
@@ -14965,10 +14965,10 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
14965
14965
|
});
|
|
14966
14966
|
if (!b.length)
|
|
14967
14967
|
return;
|
|
14968
|
-
const { lat:
|
|
14969
|
-
if (b.every((S) => S.lat ===
|
|
14968
|
+
const { lat: v, lng: _ } = b[0];
|
|
14969
|
+
if (b.every((S) => S.lat === v && S.lng === _)) {
|
|
14970
14970
|
const S = e.filter(
|
|
14971
|
-
({ location: { latitude: E, longitude: m } }) => E ===
|
|
14971
|
+
({ location: { latitude: E, longitude: m } }) => E === v && m === _
|
|
14972
14972
|
);
|
|
14973
14973
|
r(S), i == null || i(S);
|
|
14974
14974
|
return;
|
|
@@ -15017,8 +15017,8 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15017
15017
|
{
|
|
15018
15018
|
point: g,
|
|
15019
15019
|
handleCloseClick: t,
|
|
15020
|
-
setMarkerRef: (
|
|
15021
|
-
|
|
15020
|
+
setMarkerRef: (v) => {
|
|
15021
|
+
v && (l.current.push(v), b && f([...l.current]));
|
|
15022
15022
|
},
|
|
15023
15023
|
...n
|
|
15024
15024
|
},
|
|
@@ -15051,11 +15051,11 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15051
15051
|
const { onWarehouseSelect: c, warehouseSelection: l } = _e(), { setWarehousePoint: u, warehousePoint: d } = Ie(), f = a === "error", g = a === "default", p = /* @__PURE__ */ function() {
|
|
15052
15052
|
return l ? t ? "{ courier_balloon.warehouse_title }" : /* @__PURE__ */ C(zt, { keyName: "warehouse_title", ns: "courier_balloon" }) : t ? "{ courier_balloon.title }" : /* @__PURE__ */ C(zt, { keyName: "title", ns: "courier_balloon" });
|
|
15053
15053
|
}(), h = t ? "{ courier_balloon.error_title }" : /* @__PURE__ */ C(zt, { keyName: "error_title", ns: "courier_balloon" }), b = t ? "{ courier_balloon.error_description }" : /* @__PURE__ */ C(zt, { keyName: "error_description", ns: "courier_balloon" });
|
|
15054
|
-
function
|
|
15054
|
+
function v() {
|
|
15055
15055
|
d && (c == null || c(d), u(null));
|
|
15056
15056
|
}
|
|
15057
|
-
const { label: _, onClick:
|
|
15058
|
-
onClick:
|
|
15057
|
+
const { label: _, onClick: y } = l ? {
|
|
15058
|
+
onClick: v,
|
|
15059
15059
|
label: t ? "{ select }" : /* @__PURE__ */ C(zt, { keyName: "select", ns: "common" })
|
|
15060
15060
|
} : {
|
|
15061
15061
|
onClick: s,
|
|
@@ -15075,7 +15075,7 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15075
15075
|
as: "button",
|
|
15076
15076
|
variant: "primary",
|
|
15077
15077
|
className: ee(Ut.details, l ? Ut.wh : ""),
|
|
15078
|
-
onClick:
|
|
15078
|
+
onClick: y,
|
|
15079
15079
|
children: _
|
|
15080
15080
|
}
|
|
15081
15081
|
) })
|
|
@@ -15191,11 +15191,11 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15191
15191
|
}
|
|
15192
15192
|
}, [l, n.address, o, p]);
|
|
15193
15193
|
Kt(s, () => ({ submit: b }), [b]);
|
|
15194
|
-
const
|
|
15194
|
+
const v = (w) => () => {
|
|
15195
15195
|
h({ payload: w, type: "SET_DELIVERY_TIME" });
|
|
15196
15196
|
}, _ = (w) => {
|
|
15197
15197
|
h({ payload: w.target.value, type: "SET_APARTMENT_NUMBER" });
|
|
15198
|
-
},
|
|
15198
|
+
}, y = (w) => {
|
|
15199
15199
|
h({ payload: w.target.value, type: "SET_COMMENT" });
|
|
15200
15200
|
}, S = ys(c == null ? void 0 : c.apartment), E = ys(c == null ? void 0 : c.comment);
|
|
15201
15201
|
return /* @__PURE__ */ N(wt, { children: [
|
|
@@ -15220,8 +15220,8 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15220
15220
|
":"
|
|
15221
15221
|
] }),
|
|
15222
15222
|
/* @__PURE__ */ N("div", { className: We.chips, children: [
|
|
15223
|
-
/* @__PURE__ */ C(Gu, { active: p.delivery_time === "8:00-13:00", onClick:
|
|
15224
|
-
/* @__PURE__ */ C(Gu, { active: p.delivery_time === "14:00-22:00", onClick:
|
|
15223
|
+
/* @__PURE__ */ C(Gu, { active: p.delivery_time === "8:00-13:00", onClick: v("8:00-13:00"), children: "8:00 - 13:00" }),
|
|
15224
|
+
/* @__PURE__ */ C(Gu, { active: p.delivery_time === "14:00-22:00", onClick: v("14:00-22:00"), children: "14:00 - 22:00" })
|
|
15225
15225
|
] })
|
|
15226
15226
|
] }),
|
|
15227
15227
|
/* @__PURE__ */ N("section", { className: We.section, children: [
|
|
@@ -15236,7 +15236,7 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15236
15236
|
u("comment"),
|
|
15237
15237
|
":"
|
|
15238
15238
|
] }),
|
|
15239
|
-
/* @__PURE__ */ C(Wu, { ...E, className: We.comment, onChange:
|
|
15239
|
+
/* @__PURE__ */ C(Wu, { ...E, className: We.comment, onChange: y })
|
|
15240
15240
|
] })
|
|
15241
15241
|
] }),
|
|
15242
15242
|
/* @__PURE__ */ C("div", { className: ee(We.actions, { [We.actionsHidden]: e }), children: /* @__PURE__ */ C(
|
|
@@ -15269,7 +15269,7 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15269
15269
|
comment: "",
|
|
15270
15270
|
delivery_time: "",
|
|
15271
15271
|
apartment_number: ""
|
|
15272
|
-
}), f = B(null), g = B(null), { warehouseSelection: p } = _e(), { warehousePoint: h } = Ie(), b = wc({ isSelectedPoint: !0 }),
|
|
15272
|
+
}), f = B(null), g = B(null), { warehouseSelection: p } = _e(), { warehousePoint: h } = Ie(), b = wc({ isSelectedPoint: !0 }), v = ((L = f.current) == null ? void 0 : L.checkVisibility()) ?? !1;
|
|
15273
15273
|
j(() => {
|
|
15274
15274
|
setTimeout(() => {
|
|
15275
15275
|
a(!0);
|
|
@@ -15282,7 +15282,7 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15282
15282
|
apartment_number: ""
|
|
15283
15283
|
});
|
|
15284
15284
|
}, [r]);
|
|
15285
|
-
const _ = Zn("screenSm"),
|
|
15285
|
+
const _ = Zn("screenSm"), y = we(
|
|
15286
15286
|
() => ({
|
|
15287
15287
|
lat: u.coords[0],
|
|
15288
15288
|
lng: u.coords[1]
|
|
@@ -15314,9 +15314,9 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15314
15314
|
onDetails: S,
|
|
15315
15315
|
onClose: E
|
|
15316
15316
|
}
|
|
15317
|
-
), T = p ? !!h &&
|
|
15317
|
+
), T = p ? !!h && v : b && !v, P = t ? !!u.apartment_number : !!u.apartment_number && !!u.delivery_time;
|
|
15318
15318
|
return /* @__PURE__ */ N(wt, { children: [
|
|
15319
|
-
/* @__PURE__ */ C(nf, { ref: f, position:
|
|
15319
|
+
/* @__PURE__ */ C(nf, { ref: f, position: y, children: /* @__PURE__ */ C("span", { dangerouslySetInnerHTML: { __html: m } }) }),
|
|
15320
15320
|
_ && /* @__PURE__ */ N(
|
|
15321
15321
|
bh,
|
|
15322
15322
|
{
|
|
@@ -15524,7 +15524,7 @@ const Bh = cc(null), y6 = ({ children: t }) => {
|
|
|
15524
15524
|
onPointClick: p,
|
|
15525
15525
|
regionName: h,
|
|
15526
15526
|
skipPointInfo: b
|
|
15527
|
-
} = _e(),
|
|
15527
|
+
} = _e(), v = H(
|
|
15528
15528
|
(z) => {
|
|
15529
15529
|
console.debug("[OmnicLocationsWidget::loadMap]", z), Y.getState().setMap(z), Y.getState().setLoaded(), g || (C6(z), u || E6(z));
|
|
15530
15530
|
},
|
|
@@ -15534,11 +15534,11 @@ const Bh = cc(null), y6 = ({ children: t }) => {
|
|
|
15534
15534
|
}, []);
|
|
15535
15535
|
j(() => {
|
|
15536
15536
|
if (s)
|
|
15537
|
-
return
|
|
15537
|
+
return v(s), () => {
|
|
15538
15538
|
_();
|
|
15539
15539
|
};
|
|
15540
|
-
}, [s,
|
|
15541
|
-
const
|
|
15540
|
+
}, [s, v, _]);
|
|
15541
|
+
const y = H(
|
|
15542
15542
|
(z) => {
|
|
15543
15543
|
const Z = a == null ? void 0 : a.location.what3words, X = Z != null && Z.id ? Z : void 0;
|
|
15544
15544
|
p == null || p(z, X);
|
|
@@ -15577,7 +15577,7 @@ const Bh = cc(null), y6 = ({ children: t }) => {
|
|
|
15577
15577
|
console.debug("[OmnicLocationsWidget::tilesLoaded]");
|
|
15578
15578
|
}, []), P = Y.getState().setDetailsOpen, { getLMSData: L } = P5(), A = (z) => {
|
|
15579
15579
|
if (L(z.code), b) {
|
|
15580
|
-
|
|
15580
|
+
y(z);
|
|
15581
15581
|
return;
|
|
15582
15582
|
}
|
|
15583
15583
|
P(!1), O(z);
|
|
@@ -15586,7 +15586,7 @@ const Bh = cc(null), y6 = ({ children: t }) => {
|
|
|
15586
15586
|
}, F = (z) => {
|
|
15587
15587
|
P(!0), O(z);
|
|
15588
15588
|
}, G = (z) => {
|
|
15589
|
-
|
|
15589
|
+
y(z), P(!1), O(null);
|
|
15590
15590
|
};
|
|
15591
15591
|
return /* @__PURE__ */ N(wt, { children: [
|
|
15592
15592
|
/* @__PURE__ */ N("div", { className: ee(Fe.mapContainer, t), children: [
|
|
@@ -15607,7 +15607,7 @@ const Bh = cc(null), y6 = ({ children: t }) => {
|
|
|
15607
15607
|
point: o,
|
|
15608
15608
|
setOpenDetails: Y.getState().setDetailsOpen,
|
|
15609
15609
|
setDeliveryPoint: Ie.getState().setDeliverPoint,
|
|
15610
|
-
onPointClick:
|
|
15610
|
+
onPointClick: y
|
|
15611
15611
|
}
|
|
15612
15612
|
),
|
|
15613
15613
|
/* @__PURE__ */ C(
|
|
@@ -15715,16 +15715,16 @@ const Hh = Ov().use(fv()).use(rv()).init({
|
|
|
15715
15715
|
}, [t]);
|
|
15716
15716
|
}, B6 = 500, lr = [];
|
|
15717
15717
|
function Uh(t = {}) {
|
|
15718
|
-
const { country: e, globalSearch: n } = _e(), { debounceMs: r = B6, onPlaceSelect: i, types: o } = t, s = n ? void 0 : e, a = bc("places"), [c, l] = J(""), [u, d] = J(lr), [f, g] = J(!1), p = we(() => o, [JSON.stringify(o)]), h = B(null), b = B(),
|
|
15718
|
+
const { country: e, globalSearch: n } = _e(), { debounceMs: r = B6, onPlaceSelect: i, types: o } = t, s = n ? void 0 : e, a = bc("places"), [c, l] = J(""), [u, d] = J(lr), [f, g] = J(!1), p = we(() => o, [JSON.stringify(o)]), h = B(null), b = B(), v = B(!1), _ = B(i);
|
|
15719
15719
|
_.current = i;
|
|
15720
|
-
const
|
|
15720
|
+
const y = H(() => a ? (h.current || (h.current = new a.AutocompleteSessionToken()), h.current) : null, [a]), S = H(() => {
|
|
15721
15721
|
h.current = null;
|
|
15722
15722
|
}, []), E = H(() => {
|
|
15723
15723
|
d(lr);
|
|
15724
15724
|
}, []);
|
|
15725
15725
|
j(() => {
|
|
15726
|
-
if (
|
|
15727
|
-
|
|
15726
|
+
if (v.current) {
|
|
15727
|
+
v.current = !1;
|
|
15728
15728
|
return;
|
|
15729
15729
|
}
|
|
15730
15730
|
if (!a || !c.trim()) {
|
|
@@ -15734,7 +15734,7 @@ function Uh(t = {}) {
|
|
|
15734
15734
|
return clearTimeout(b.current), b.current = setTimeout(async () => {
|
|
15735
15735
|
g(!0);
|
|
15736
15736
|
try {
|
|
15737
|
-
const w =
|
|
15737
|
+
const w = y(), O = {
|
|
15738
15738
|
input: c,
|
|
15739
15739
|
...w && { sessionToken: w },
|
|
15740
15740
|
...s && { includedRegionCodes: [s] },
|
|
@@ -15756,12 +15756,12 @@ function Uh(t = {}) {
|
|
|
15756
15756
|
g(!1);
|
|
15757
15757
|
}
|
|
15758
15758
|
}, r), () => clearTimeout(b.current);
|
|
15759
|
-
}, [c, a, s, p, r,
|
|
15759
|
+
}, [c, a, s, p, r, y]);
|
|
15760
15760
|
const m = H(
|
|
15761
15761
|
async (w) => {
|
|
15762
15762
|
var O;
|
|
15763
15763
|
if (a) {
|
|
15764
|
-
|
|
15764
|
+
v.current = !0;
|
|
15765
15765
|
try {
|
|
15766
15766
|
const T = new a.Place({ id: w }), P = await bm(T);
|
|
15767
15767
|
(O = _.current) == null || O.call(_, P), S(), d(lr);
|
|
@@ -16003,47 +16003,45 @@ const V6 = {
|
|
|
16003
16003
|
n.placeId
|
|
16004
16004
|
)) }), zh = ({
|
|
16005
16005
|
autocomplete: t,
|
|
16006
|
-
|
|
16007
|
-
|
|
16008
|
-
|
|
16009
|
-
|
|
16010
|
-
|
|
16011
|
-
|
|
16012
|
-
|
|
16013
|
-
|
|
16014
|
-
|
|
16006
|
+
children: e,
|
|
16007
|
+
className: n,
|
|
16008
|
+
endAdornment: r,
|
|
16009
|
+
inputRef: i,
|
|
16010
|
+
label: o,
|
|
16011
|
+
name: s,
|
|
16012
|
+
onBlur: a,
|
|
16013
|
+
onClick: c,
|
|
16014
|
+
onFocus: l,
|
|
16015
|
+
placeholder: u
|
|
16015
16016
|
}) => {
|
|
16016
|
-
const
|
|
16017
|
-
|
|
16018
|
-
if (!
|
|
16017
|
+
const d = B(null), f = t.suggestions.length > 0, g = B(t.clearSuggestions);
|
|
16018
|
+
g.current = t.clearSuggestions, j(() => {
|
|
16019
|
+
if (!f)
|
|
16019
16020
|
return;
|
|
16020
|
-
const
|
|
16021
|
-
|
|
16021
|
+
const v = (_) => {
|
|
16022
|
+
d.current && !d.current.contains(_.target) && g.current();
|
|
16022
16023
|
};
|
|
16023
|
-
return document.addEventListener("click",
|
|
16024
|
-
}, [
|
|
16025
|
-
const
|
|
16026
|
-
t.setValue(
|
|
16027
|
-
},
|
|
16028
|
-
t.setValue(
|
|
16024
|
+
return document.addEventListener("click", v), () => document.removeEventListener("click", v);
|
|
16025
|
+
}, [f]);
|
|
16026
|
+
const p = (v) => {
|
|
16027
|
+
t.setValue(v.target.value);
|
|
16028
|
+
}, h = (v) => {
|
|
16029
|
+
t.setValue(v.description), t.clearSuggestions(), t.handleSelect(v.placeId);
|
|
16030
|
+
}, b = {
|
|
16031
|
+
value: t.value,
|
|
16032
|
+
onChange: p,
|
|
16033
|
+
inputRef: i,
|
|
16034
|
+
onFocus: l,
|
|
16035
|
+
onBlur: a,
|
|
16036
|
+
onClick: c,
|
|
16037
|
+
placeholder: u,
|
|
16038
|
+
name: s,
|
|
16039
|
+
label: o,
|
|
16040
|
+
endAdornment: r
|
|
16029
16041
|
};
|
|
16030
|
-
return /* @__PURE__ */ N("div", { ref:
|
|
16031
|
-
/* @__PURE__ */ C(
|
|
16032
|
-
|
|
16033
|
-
{
|
|
16034
|
-
inputRef: r,
|
|
16035
|
-
label: i,
|
|
16036
|
-
name: o,
|
|
16037
|
-
value: t.value,
|
|
16038
|
-
placeholder: l,
|
|
16039
|
-
endAdornment: n,
|
|
16040
|
-
onChange: g,
|
|
16041
|
-
onClick: a,
|
|
16042
|
-
onFocus: c,
|
|
16043
|
-
onBlur: s
|
|
16044
|
-
}
|
|
16045
|
-
),
|
|
16046
|
-
d && /* @__PURE__ */ C(kw, { suggestions: t.suggestions, onSelect: p })
|
|
16042
|
+
return /* @__PURE__ */ N("div", { ref: d, className: ee(fr.container, n), children: [
|
|
16043
|
+
typeof e == "function" ? e(b) : /* @__PURE__ */ C(xw, { ...b }),
|
|
16044
|
+
f && /* @__PURE__ */ C(kw, { suggestions: t.suggestions, onSelect: h })
|
|
16047
16045
|
] });
|
|
16048
16046
|
}, Dw = "LocationAside-module__submit__CSKcqi", Nw = "LocationAside-module__container__S1NejR", Iw = "LocationAside-module__selector__hl74ke", Fw = "LocationAside-module__label__0Zk8at", jw = "LocationAside-module__header__N1wgyn", Bw = "LocationAside-module__close__VsE88z", Bo = {
|
|
16049
16047
|
submit: Dw,
|
|
@@ -16422,6 +16420,7 @@ export {
|
|
|
16422
16420
|
Dt as ESendFilter,
|
|
16423
16421
|
an as ETypeFilter,
|
|
16424
16422
|
l9 as MapPlaceholder,
|
|
16423
|
+
zh as PlaceAutocomplete,
|
|
16425
16424
|
G8 as Widget,
|
|
16426
16425
|
c9 as WidgetLocationsProvider,
|
|
16427
16426
|
hl as createPointsIterator,
|
|
@@ -16440,5 +16439,6 @@ export {
|
|
|
16440
16439
|
bm as placeToPlaceResult,
|
|
16441
16440
|
hi as replaceSvgCurrentColor,
|
|
16442
16441
|
Ts as setWidgetCSSProperty,
|
|
16442
|
+
Uh as usePlaceAutocomplete,
|
|
16443
16443
|
K8 as useWidgetLocationsContext
|
|
16444
16444
|
};
|