@omnic/widget-locations 1.1.88 → 1.1.90
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/components/Input/Input.d.ts +0 -1
- package/dist/lib/style.css +1 -1
- package/dist/lib/widget.cjs.js +16 -16
- package/dist/lib/widget.esm.js +377 -380
- package/package.json +2 -2
package/dist/lib/widget.esm.js
CHANGED
|
@@ -17,7 +17,7 @@ var ao = (t, e, n, r) => ({
|
|
|
17
17
|
}), Y = (t, e, n) => (Bs(t, e, "access private method"), n);
|
|
18
18
|
import { jsx as E, jsxs as I, Fragment as Nt } from "react/jsx-runtime";
|
|
19
19
|
import * as D from "react";
|
|
20
|
-
import q, { createContext as lc, useContext as Qt, useEffect as j, useState as X, forwardRef as xn, useMemo as ve, useImperativeHandle as Jt, Children as ip, useLayoutEffect as
|
|
20
|
+
import q, { createContext as lc, useContext as Qt, useEffect as j, useState as X, forwardRef as xn, useMemo as ve, useImperativeHandle as Jt, Children as ip, useLayoutEffect as Br, useRef as H, useReducer as uc, useCallback as U, Suspense as op, memo as dt, createElement as sp, useDebugValue as on, useSyncExternalStore as ap, useId as ld } from "react";
|
|
21
21
|
import { createPortal as es } from "react-dom";
|
|
22
22
|
import { renderToString as cp } from "react-dom/server";
|
|
23
23
|
const ud = q.createContext({}), dd = !0;
|
|
@@ -147,11 +147,11 @@ var gd = { exports: {} }, vd = {}, yd = { exports: {} }, bd = {};
|
|
|
147
147
|
* This source code is licensed under the MIT license found in the
|
|
148
148
|
* LICENSE file in the root directory of this source tree.
|
|
149
149
|
*/
|
|
150
|
-
var
|
|
150
|
+
var Mr = q;
|
|
151
151
|
function _p(t, e) {
|
|
152
152
|
return t === e && (t !== 0 || 1 / t === 1 / e) || t !== t && e !== e;
|
|
153
153
|
}
|
|
154
|
-
var Cp = typeof Object.is == "function" ? Object.is : _p, Ep =
|
|
154
|
+
var Cp = typeof Object.is == "function" ? Object.is : _p, Ep = Mr.useState, Op = Mr.useEffect, xp = Mr.useLayoutEffect, Tp = Mr.useDebugValue;
|
|
155
155
|
function Pp(t, e) {
|
|
156
156
|
var n = e(), r = Ep({ inst: { value: n, getSnapshot: e } }), i = r[0].inst, o = r[1];
|
|
157
157
|
return xp(function() {
|
|
@@ -176,7 +176,7 @@ function Ap(t, e) {
|
|
|
176
176
|
return e();
|
|
177
177
|
}
|
|
178
178
|
var Lp = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? Ap : Pp;
|
|
179
|
-
bd.useSyncExternalStore =
|
|
179
|
+
bd.useSyncExternalStore = Mr.useSyncExternalStore !== void 0 ? Mr.useSyncExternalStore : Lp;
|
|
180
180
|
yd.exports = bd;
|
|
181
181
|
var Rp = yd.exports;
|
|
182
182
|
/**
|
|
@@ -322,13 +322,13 @@ const el = (t) => {
|
|
|
322
322
|
setFilter(e) {
|
|
323
323
|
se.getState().setDetailsOpen(!1), Ie.getState().setDeliverPoint(null), ut.getState().setSelectedLocation(null), t(e);
|
|
324
324
|
}
|
|
325
|
-
})),
|
|
325
|
+
})), y9 = (t) => {
|
|
326
326
|
const [e, n] = t.split(":");
|
|
327
327
|
return Number(e) * 60 + Number(n);
|
|
328
|
-
},
|
|
328
|
+
}, b9 = (t) => {
|
|
329
329
|
const e = Math.floor(t / 60), n = t % 60;
|
|
330
330
|
return `${e < 10 ? `0${e}` : e}:${n < 10 ? `0${n}` : n}`;
|
|
331
|
-
},
|
|
331
|
+
}, w9 = (t, e) => [
|
|
332
332
|
[t[0] - e, t[0] + e],
|
|
333
333
|
[t[1] - e, t[1] + e]
|
|
334
334
|
];
|
|
@@ -340,7 +340,7 @@ function Sd(t, e) {
|
|
|
340
340
|
const { toString: o0 } = Object.prototype, { getPrototypeOf: hc } = Object, _s = /* @__PURE__ */ ((t) => (e) => {
|
|
341
341
|
const n = o0.call(e);
|
|
342
342
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
343
|
-
})(/* @__PURE__ */ Object.create(null)), It = (t) => (t = t.toLowerCase(), (e) => _s(e) === t), Cs = (t) => (e) => typeof e === t, { isArray:
|
|
343
|
+
})(/* @__PURE__ */ Object.create(null)), It = (t) => (t = t.toLowerCase(), (e) => _s(e) === t), Cs = (t) => (e) => typeof e === t, { isArray: Vr } = Array, xi = Cs("undefined");
|
|
344
344
|
function s0(t) {
|
|
345
345
|
return t !== null && !xi(t) && t.constructor !== null && !xi(t.constructor) && ct(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
346
346
|
}
|
|
@@ -363,7 +363,7 @@ function qi(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
|
363
363
|
if (t === null || typeof t > "u")
|
|
364
364
|
return;
|
|
365
365
|
let r, i;
|
|
366
|
-
if (typeof t != "object" && (t = [t]),
|
|
366
|
+
if (typeof t != "object" && (t = [t]), Vr(t))
|
|
367
367
|
for (r = 0, i = t.length; r < i; r++)
|
|
368
368
|
e.call(null, t[r], r, t);
|
|
369
369
|
else {
|
|
@@ -386,7 +386,7 @@ const Od = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typ
|
|
|
386
386
|
function ga() {
|
|
387
387
|
const { caseless: t } = xd(this) && this || {}, e = {}, n = (r, i) => {
|
|
388
388
|
const o = t && Ed(e, i) || i;
|
|
389
|
-
Ho(e[o]) && Ho(r) ? e[o] = ga(e[o], r) : Ho(r) ? e[o] = ga({}, r) :
|
|
389
|
+
Ho(e[o]) && Ho(r) ? e[o] = ga(e[o], r) : Ho(r) ? e[o] = ga({}, r) : Vr(r) ? e[o] = r.slice() : e[o] = r;
|
|
390
390
|
};
|
|
391
391
|
for (let r = 0, i = arguments.length; r < i; r++)
|
|
392
392
|
arguments[r] && qi(arguments[r], n);
|
|
@@ -416,7 +416,7 @@ const y0 = (t, e, n, { allOwnKeys: r } = {}) => (qi(e, (i, o) => {
|
|
|
416
416
|
}, C0 = (t) => {
|
|
417
417
|
if (!t)
|
|
418
418
|
return null;
|
|
419
|
-
if (
|
|
419
|
+
if (Vr(t))
|
|
420
420
|
return t;
|
|
421
421
|
let e = t.length;
|
|
422
422
|
if (!Cd(e))
|
|
@@ -470,7 +470,7 @@ const y0 = (t, e, n, { allOwnKeys: r } = {}) => (qi(e, (i, o) => {
|
|
|
470
470
|
n[o] = !0;
|
|
471
471
|
});
|
|
472
472
|
};
|
|
473
|
-
return
|
|
473
|
+
return Vr(t) ? r(t) : r(String(t).split(e)), n;
|
|
474
474
|
}, k0 = () => {
|
|
475
475
|
}, M0 = (t, e) => (t = +t, Number.isFinite(t) ? t : e), Hs = "abcdefghijklmnopqrstuvwxyz", nl = "0123456789", Pd = {
|
|
476
476
|
DIGIT: nl,
|
|
@@ -493,7 +493,7 @@ const I0 = (t) => {
|
|
|
493
493
|
return;
|
|
494
494
|
if (!("toJSON" in r)) {
|
|
495
495
|
e[i] = r;
|
|
496
|
-
const o =
|
|
496
|
+
const o = Vr(r) ? [] : {};
|
|
497
497
|
return qi(r, (s, a) => {
|
|
498
498
|
const c = n(s, i + 1);
|
|
499
499
|
!xi(c) && (o[a] = c);
|
|
@@ -504,7 +504,7 @@ const I0 = (t) => {
|
|
|
504
504
|
};
|
|
505
505
|
return n(t, 0);
|
|
506
506
|
}, F0 = It("AsyncFunction"), j0 = (t) => t && (Es(t) || ct(t)) && ct(t.then) && ct(t.catch), R = {
|
|
507
|
-
isArray:
|
|
507
|
+
isArray: Vr,
|
|
508
508
|
isArrayBuffer: _d,
|
|
509
509
|
isBuffer: s0,
|
|
510
510
|
isFormData: m0,
|
|
@@ -944,7 +944,7 @@ const gc = mc, em = R.toObjectSet([
|
|
|
944
944
|
i = s.indexOf(":"), n = s.substring(0, i).trim().toLowerCase(), r = s.substring(i + 1).trim(), !(!n || e[n] && em[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
|
|
945
945
|
}), e;
|
|
946
946
|
}, sl = Symbol("internals");
|
|
947
|
-
function
|
|
947
|
+
function Kr(t) {
|
|
948
948
|
return t && String(t).trim().toLowerCase();
|
|
949
949
|
}
|
|
950
950
|
function Uo(t) {
|
|
@@ -989,7 +989,7 @@ class xs {
|
|
|
989
989
|
set(e, n, r) {
|
|
990
990
|
const i = this;
|
|
991
991
|
function o(a, c, l) {
|
|
992
|
-
const u =
|
|
992
|
+
const u = Kr(c);
|
|
993
993
|
if (!u)
|
|
994
994
|
throw new Error("header name must be a non-empty string");
|
|
995
995
|
const d = R.findKey(i, u);
|
|
@@ -999,7 +999,7 @@ class xs {
|
|
|
999
999
|
return R.isPlainObject(e) || e instanceof this.constructor ? s(e, n) : R.isString(e) && (e = e.trim()) && !rm(e) ? s(tm(e), n) : e != null && o(n, e, r), this;
|
|
1000
1000
|
}
|
|
1001
1001
|
get(e, n) {
|
|
1002
|
-
if (e =
|
|
1002
|
+
if (e = Kr(e), e) {
|
|
1003
1003
|
const r = R.findKey(this, e);
|
|
1004
1004
|
if (r) {
|
|
1005
1005
|
const i = this[r];
|
|
@@ -1016,7 +1016,7 @@ class xs {
|
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
1018
|
has(e, n) {
|
|
1019
|
-
if (e =
|
|
1019
|
+
if (e = Kr(e), e) {
|
|
1020
1020
|
const r = R.findKey(this, e);
|
|
1021
1021
|
return !!(r && this[r] !== void 0 && (!n || Us(this, this[r], r, n)));
|
|
1022
1022
|
}
|
|
@@ -1026,7 +1026,7 @@ class xs {
|
|
|
1026
1026
|
const r = this;
|
|
1027
1027
|
let i = !1;
|
|
1028
1028
|
function o(s) {
|
|
1029
|
-
if (s =
|
|
1029
|
+
if (s = Kr(s), s) {
|
|
1030
1030
|
const a = R.findKey(r, s);
|
|
1031
1031
|
a && (!n || Us(r, r[a], a, n)) && (delete r[a], i = !0);
|
|
1032
1032
|
}
|
|
@@ -1085,7 +1085,7 @@ class xs {
|
|
|
1085
1085
|
accessors: {}
|
|
1086
1086
|
}).accessors, i = this.prototype;
|
|
1087
1087
|
function o(s) {
|
|
1088
|
-
const a =
|
|
1088
|
+
const a = Kr(s);
|
|
1089
1089
|
r[a] || (om(i, s), r[a] = !0);
|
|
1090
1090
|
}
|
|
1091
1091
|
return R.isArray(e) ? e.forEach(o) : o(e), this;
|
|
@@ -1376,7 +1376,7 @@ function ll(t) {
|
|
|
1376
1376
|
});
|
|
1377
1377
|
}
|
|
1378
1378
|
const ul = (t) => t instanceof Kt ? { ...t } : t;
|
|
1379
|
-
function
|
|
1379
|
+
function Dr(t, e) {
|
|
1380
1380
|
e = e || {};
|
|
1381
1381
|
const n = {};
|
|
1382
1382
|
function r(l, u, d) {
|
|
@@ -1518,7 +1518,7 @@ class ts {
|
|
|
1518
1518
|
}
|
|
1519
1519
|
}
|
|
1520
1520
|
_request(e, n) {
|
|
1521
|
-
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n =
|
|
1521
|
+
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = Dr(this.defaults, n);
|
|
1522
1522
|
const { transitional: r, paramsSerializer: i, headers: o } = n;
|
|
1523
1523
|
r !== void 0 && ba.assertOptions(r, {
|
|
1524
1524
|
silentJSONParsing: rn.transitional(rn.boolean),
|
|
@@ -1577,14 +1577,14 @@ class ts {
|
|
|
1577
1577
|
return u;
|
|
1578
1578
|
}
|
|
1579
1579
|
getUri(e) {
|
|
1580
|
-
e =
|
|
1580
|
+
e = Dr(this.defaults, e);
|
|
1581
1581
|
const n = jd(e.baseURL, e.url);
|
|
1582
1582
|
return Md(n, e.params, e.paramsSerializer);
|
|
1583
1583
|
}
|
|
1584
1584
|
}
|
|
1585
1585
|
R.forEach(["delete", "get", "head", "options"], function(e) {
|
|
1586
1586
|
ts.prototype[e] = function(n, r) {
|
|
1587
|
-
return this.request(
|
|
1587
|
+
return this.request(Dr(r || {}, {
|
|
1588
1588
|
method: e,
|
|
1589
1589
|
url: n,
|
|
1590
1590
|
data: (r || {}).data
|
|
@@ -1594,7 +1594,7 @@ R.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
1594
1594
|
R.forEach(["post", "put", "patch"], function(e) {
|
|
1595
1595
|
function n(r) {
|
|
1596
1596
|
return function(o, s, a) {
|
|
1597
|
-
return this.request(
|
|
1597
|
+
return this.request(Dr(a || {}, {
|
|
1598
1598
|
method: e,
|
|
1599
1599
|
headers: r ? {
|
|
1600
1600
|
"Content-Type": "multipart/form-data"
|
|
@@ -1756,7 +1756,7 @@ const wm = wa;
|
|
|
1756
1756
|
function Hd(t) {
|
|
1757
1757
|
const e = new $o(t), n = Sd($o.prototype.request, e);
|
|
1758
1758
|
return R.extend(n, $o.prototype, e, { allOwnKeys: !0 }), R.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(i) {
|
|
1759
|
-
return Hd(
|
|
1759
|
+
return Hd(Dr(t, i));
|
|
1760
1760
|
}, n;
|
|
1761
1761
|
}
|
|
1762
1762
|
const Te = Hd(gc);
|
|
@@ -1773,7 +1773,7 @@ Te.all = function(e) {
|
|
|
1773
1773
|
};
|
|
1774
1774
|
Te.spread = ym;
|
|
1775
1775
|
Te.isAxiosError = bm;
|
|
1776
|
-
Te.mergeConfig =
|
|
1776
|
+
Te.mergeConfig = Dr;
|
|
1777
1777
|
Te.AxiosHeaders = Kt;
|
|
1778
1778
|
Te.formToJSON = (t) => Id(R.isHTMLForm(t) ? new FormData(t) : t);
|
|
1779
1779
|
Te.getAdapter = Bd.getAdapter;
|
|
@@ -1834,12 +1834,12 @@ async function* fl({
|
|
|
1834
1834
|
}
|
|
1835
1835
|
return yield c, c;
|
|
1836
1836
|
}
|
|
1837
|
-
const
|
|
1837
|
+
const Qr = [], hl = ({ bounds: t, loadPointsParams: e }) => {
|
|
1838
1838
|
var r;
|
|
1839
1839
|
const n = new AbortController();
|
|
1840
|
-
for (;
|
|
1841
|
-
(r =
|
|
1842
|
-
return
|
|
1840
|
+
for (; Qr.length; )
|
|
1841
|
+
(r = Qr.pop()) == null || r.abort();
|
|
1842
|
+
return Qr.push(n), async (i) => {
|
|
1843
1843
|
const o = { controller: n };
|
|
1844
1844
|
try {
|
|
1845
1845
|
if (!t) {
|
|
@@ -1854,8 +1854,8 @@ const Jr = [], hl = ({ bounds: t, loadPointsParams: e }) => {
|
|
|
1854
1854
|
return;
|
|
1855
1855
|
throw s;
|
|
1856
1856
|
} finally {
|
|
1857
|
-
const s =
|
|
1858
|
-
s >= 0 &&
|
|
1857
|
+
const s = Qr.indexOf(n);
|
|
1858
|
+
s >= 0 && Qr.splice(s, 1);
|
|
1859
1859
|
}
|
|
1860
1860
|
};
|
|
1861
1861
|
}, Ud = ":root", Ts = (t, e) => {
|
|
@@ -2035,7 +2035,7 @@ const $d = (t) => {
|
|
|
2035
2035
|
let n = t;
|
|
2036
2036
|
const r = (e.includes("--owl") ? xm(e) : e) || "";
|
|
2037
2037
|
return n = n.replaceAll("currentColor", r), n;
|
|
2038
|
-
},
|
|
2038
|
+
}, S9 = (t) => "comment" in t && "address" in t && "apartment_number" in t && "delivery_time" in t;
|
|
2039
2039
|
async function Tm(t) {
|
|
2040
2040
|
var e;
|
|
2041
2041
|
return await t.fetchFields({
|
|
@@ -3099,7 +3099,7 @@ function Sg(t, e) {
|
|
|
3099
3099
|
viewport: n,
|
|
3100
3100
|
viewState: r
|
|
3101
3101
|
} = e, i = !!n;
|
|
3102
|
-
return
|
|
3102
|
+
return Br(() => {
|
|
3103
3103
|
if (!t || !r)
|
|
3104
3104
|
return;
|
|
3105
3105
|
const {
|
|
@@ -3131,7 +3131,7 @@ function Cg(t, e, n) {
|
|
|
3131
3131
|
let i = null, o = null;
|
|
3132
3132
|
r && Number.isFinite(r.lat) && Number.isFinite(r.lng) && (i = r.lat, o = r.lng);
|
|
3133
3133
|
const s = Number.isFinite(n.zoom) ? n.zoom : null, a = Number.isFinite(n.heading) ? n.heading : null, c = Number.isFinite(n.tilt) ? n.tilt : null;
|
|
3134
|
-
|
|
3134
|
+
Br(() => {
|
|
3135
3135
|
if (!t)
|
|
3136
3136
|
return;
|
|
3137
3137
|
const l = {};
|
|
@@ -3334,7 +3334,7 @@ const sf = q.createContext(null), af = (t) => {
|
|
|
3334
3334
|
tilt: (m = t.tilt) != null ? m : 0
|
|
3335
3335
|
};
|
|
3336
3336
|
}, [g, p, t.zoom, t.heading, t.tilt]);
|
|
3337
|
-
|
|
3337
|
+
Br(() => {
|
|
3338
3338
|
if (!a || !d)
|
|
3339
3339
|
return;
|
|
3340
3340
|
a.moveCamera(f);
|
|
@@ -3391,7 +3391,7 @@ function wc(t) {
|
|
|
3391
3391
|
!e || !n || n.importLibrary(t);
|
|
3392
3392
|
}, [e, n, t]), (n == null ? void 0 : n.loadedLibraries[t]) || null;
|
|
3393
3393
|
}
|
|
3394
|
-
function
|
|
3394
|
+
function hr(t, e, n) {
|
|
3395
3395
|
j(() => {
|
|
3396
3396
|
if (!t || !e || !n)
|
|
3397
3397
|
return;
|
|
@@ -3492,7 +3492,7 @@ function Fg(t) {
|
|
|
3492
3492
|
return;
|
|
3493
3493
|
const m = b !== void 0 || !!c || !!u || !!d;
|
|
3494
3494
|
e.gmpClickable = m, m && e != null && e.content && xl(e.content) && (e.content.style.pointerEvents = "none", e.content.firstElementChild && (e.content.firstElementChild.style.pointerEvents = "all"));
|
|
3495
|
-
}, [e, b, c, u, d]),
|
|
3495
|
+
}, [e, b, c, u, d]), hr(e, "click", c), hr(e, "drag", h), hr(e, "dragstart", g), hr(e, "dragend", p), Ol(e == null ? void 0 : e.element, "mouseenter", u), Ol(e == null ? void 0 : e.element, "mouseleave", d), [e, r];
|
|
3496
3496
|
}
|
|
3497
3497
|
const Sc = xn((t, e) => {
|
|
3498
3498
|
const {
|
|
@@ -3636,7 +3636,7 @@ const Hg = ["children", "headerContent", "style", "className", "pixelOffset", "a
|
|
|
3636
3636
|
// to the constructor when a new infoWindow is created.
|
|
3637
3637
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3638
3638
|
[b, o, n]
|
|
3639
|
-
),
|
|
3639
|
+
), hr(h, "close", c), hr(h, "closeclick", l);
|
|
3640
3640
|
const w = Zi();
|
|
3641
3641
|
return j(() => {
|
|
3642
3642
|
if (!w || !h || s === null)
|
|
@@ -4281,14 +4281,14 @@ function iv(t, e, n, r, i, o, s, a) {
|
|
|
4281
4281
|
let Le = "";
|
|
4282
4282
|
V == null && (Le = e().onTranslationMissing(B));
|
|
4283
4283
|
let Se = He ?? (ie ? "" : Le);
|
|
4284
|
-
const Yt = t(), en = N || !(!((k = l.observer) === null || k === void 0) && k.outputNotFormattable),
|
|
4284
|
+
const Yt = t(), en = N || !(!((k = l.observer) === null || k === void 0) && k.outputNotFormattable), $r = (St) => l.observer && !ue ? l.observer.wrap({
|
|
4285
4285
|
key: Q,
|
|
4286
4286
|
translation: St,
|
|
4287
4287
|
defaultValue: Z,
|
|
4288
4288
|
params: re,
|
|
4289
4289
|
ns: pe
|
|
4290
4290
|
}) : St;
|
|
4291
|
-
Se =
|
|
4291
|
+
Se = $r(Se);
|
|
4292
4292
|
try {
|
|
4293
4293
|
if (He && Yt && en)
|
|
4294
4294
|
for (const St of l.formatters)
|
|
@@ -4305,7 +4305,7 @@ function iv(t, e, n, r, i, o, s, a) {
|
|
|
4305
4305
|
} catch (St) {
|
|
4306
4306
|
console.error(St);
|
|
4307
4307
|
const Xi = Zg(St) || Ea, Xn = e().onFormatError, tt = typeof Xn;
|
|
4308
|
-
tt === "string" ? Se = Xn : tt === "function" ? Se = Xn(Xi, B) : Se = Ea, Se =
|
|
4308
|
+
tt === "string" ? Se = Xn : tt === "function" ? Se = Xn(Xi, B) : Se = Ea, Se = $r(Se);
|
|
4309
4309
|
}
|
|
4310
4310
|
return Se;
|
|
4311
4311
|
}
|
|
@@ -5207,26 +5207,26 @@ const qv = () => {
|
|
|
5207
5207
|
return q.createElement(Zv, Object.assign({ t: e }, t));
|
|
5208
5208
|
}, Kv = "Spinner-module__loader__U4GVhD", Qv = {
|
|
5209
5209
|
loader: Kv
|
|
5210
|
-
}, is = ({ className: t }) => /* @__PURE__ */ E("div", { className: ne(Qv.loader, t), children: "Loading..." }), Jv = "Button-module__root__8RX49h", Xv = "Button-module__primary__st6yY9", Yv = "Button-module__secondary__j-3rjz", e1 = "Button-module__loading__QfItr2", t1 = "Button-module__spinner__kVZYqS",
|
|
5210
|
+
}, is = ({ className: t }) => /* @__PURE__ */ E("div", { className: ne(Qv.loader, t), children: "Loading..." }), Jv = "Button-module__root__8RX49h", Xv = "Button-module__primary__st6yY9", Yv = "Button-module__secondary__j-3rjz", e1 = "Button-module__loading__QfItr2", t1 = "Button-module__spinner__kVZYqS", Jr = {
|
|
5211
5211
|
root: Jv,
|
|
5212
5212
|
primary: Xv,
|
|
5213
5213
|
secondary: Yv,
|
|
5214
5214
|
loading: e1,
|
|
5215
5215
|
spinner: t1
|
|
5216
5216
|
}, lt = ({ children: t, className: e, loading: n, variant: r = "primary", ...i }) => {
|
|
5217
|
-
const o = [
|
|
5217
|
+
const o = [Jr.root, e, Jr[r], { [Jr.loading]: n }];
|
|
5218
5218
|
if (i.as === "link") {
|
|
5219
5219
|
const { as: s, disabled: a, ...c } = i;
|
|
5220
5220
|
return /* @__PURE__ */ I("a", { className: ne(o), ...c, "data-disabled": a, children: [
|
|
5221
5221
|
!n && t,
|
|
5222
|
-
n && /* @__PURE__ */ E(is, { className:
|
|
5222
|
+
n && /* @__PURE__ */ E(is, { className: Jr.spinner })
|
|
5223
5223
|
] });
|
|
5224
5224
|
}
|
|
5225
5225
|
if (i.as === "button") {
|
|
5226
5226
|
const { as: s, ...a } = i;
|
|
5227
5227
|
return /* @__PURE__ */ I("button", { type: "button", className: ne(o), ...a, children: [
|
|
5228
5228
|
!n && t,
|
|
5229
|
-
n && /* @__PURE__ */ E(is, { className:
|
|
5229
|
+
n && /* @__PURE__ */ E(is, { className: Jr.spinner })
|
|
5230
5230
|
] });
|
|
5231
5231
|
}
|
|
5232
5232
|
Lt(!1, "Invalid button type");
|
|
@@ -5238,7 +5238,7 @@ const n1 = (t) => /* @__PURE__ */ D.createElement("svg", { xmlns: "http://www.w3
|
|
|
5238
5238
|
root: r1,
|
|
5239
5239
|
absolutePositionVariant: i1,
|
|
5240
5240
|
relativePositionVariant: o1
|
|
5241
|
-
},
|
|
5241
|
+
}, Hr = ({ className: t, position: e = "absolute", ...n }) => /* @__PURE__ */ E("div", { ...n, className: ne(Il.root, t, Il[`${e}PositionVariant`]), children: /* @__PURE__ */ E(n1, {}) }), s1 = (t) => /* @__PURE__ */ D.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 13, height: 12, viewBox: "0 0 13 12", fill: "none", ...t }, /* @__PURE__ */ D.createElement("path", { d: "M6.04102 1.125C5.07683 1.125 4.1343 1.41091 3.33261 1.94659C2.53092 2.48226 1.90608 3.24363 1.53711 4.13442C1.16813 5.02521 1.07159 6.00541 1.25969 6.95107C1.44779 7.89672 1.91209 8.76536 2.59387 9.44715C3.27565 10.1289 4.1443 10.5932 5.08995 10.7813C6.03561 10.9694 7.01581 10.8729 7.9066 10.5039C8.79739 10.1349 9.55876 9.51009 10.0944 8.7084C10.6301 7.90671 10.916 6.96418 10.916 6C10.9147 4.70749 10.4006 3.46831 9.48666 2.55436C8.57271 1.64042 7.33353 1.12636 6.04102 1.125ZM6.04102 10.125C5.22517 10.125 4.42764 9.88307 3.74929 9.42981C3.07094 8.97655 2.54223 8.33231 2.23001 7.57857C1.9178 6.82482 1.83611 5.99542 1.99528 5.19525C2.15444 4.39508 2.54731 3.66008 3.1242 3.08318C3.70109 2.50629 4.4361 2.11342 5.23627 1.95426C6.03644 1.7951 6.86584 1.87679 7.61959 2.189C8.37333 2.50121 9.01757 3.02992 9.47083 3.70827C9.92409 4.38663 10.166 5.18415 10.166 6C10.1648 7.09364 9.72978 8.14213 8.95646 8.91545C8.18314 9.68876 7.13465 10.1238 6.04102 10.125ZM6.79102 8.25C6.79102 8.34946 6.75151 8.44484 6.68118 8.51517C6.61086 8.58549 6.51547 8.625 6.41602 8.625C6.21711 8.625 6.02634 8.54598 5.88569 8.40533C5.74504 8.26468 5.66602 8.07391 5.66602 7.875V6C5.56656 6 5.47118 5.96049 5.40085 5.89016C5.33053 5.81984 5.29102 5.72446 5.29102 5.625C5.29102 5.52554 5.33053 5.43016 5.40085 5.35984C5.47118 5.28951 5.56656 5.25 5.66602 5.25C5.86493 5.25 6.0557 5.32902 6.19635 5.46967C6.337 5.61032 6.41602 5.80109 6.41602 6V7.875C6.51547 7.875 6.61086 7.91451 6.68118 7.98483C6.75151 8.05516 6.79102 8.15054 6.79102 8.25ZM5.29102 3.9375C5.29102 3.82625 5.32401 3.71749 5.38582 3.62499C5.44762 3.53249 5.53547 3.46039 5.63826 3.41782C5.74104 3.37524 5.85414 3.3641 5.96326 3.38581C6.07237 3.40751 6.1726 3.46109 6.25127 3.53975C6.32993 3.61842 6.38351 3.71865 6.40521 3.82776C6.42691 3.93688 6.41577 4.04998 6.3732 4.15276C6.33063 4.25554 6.25853 4.34339 6.16603 4.4052C6.07352 4.46701 5.96477 4.5 5.85352 4.5C5.70433 4.5 5.56126 4.44074 5.45577 4.33525C5.35028 4.22976 5.29102 4.08668 5.29102 3.9375Z", fill: "black" })), a1 = "W3WLink-module__likeButton__RhAlpN", c1 = "W3WLink-module__title__eo6M7L", Fl = {
|
|
5242
5242
|
likeButton: a1,
|
|
5243
5243
|
title: c1
|
|
5244
5244
|
}, l1 = () => /* @__PURE__ */ I(
|
|
@@ -5357,7 +5357,7 @@ const m1 = "LocationView-module__title__-wT0bl", g1 = "LocationView-module__logo
|
|
|
5357
5357
|
}
|
|
5358
5358
|
return /* @__PURE__ */ I(Nt, { children: [
|
|
5359
5359
|
/* @__PURE__ */ I("div", { className: ne(Ce.header, t == null ? void 0 : t.header), children: [
|
|
5360
|
-
/* @__PURE__ */ E(
|
|
5360
|
+
/* @__PURE__ */ E(Hr, { onClick: r }),
|
|
5361
5361
|
/* @__PURE__ */ I("div", { className: Ce.title, children: [
|
|
5362
5362
|
/* @__PURE__ */ E("div", { className: Ce.logo, children: /* @__PURE__ */ E(v, {}) }),
|
|
5363
5363
|
/* @__PURE__ */ E("span", { children: n.name })
|
|
@@ -5440,7 +5440,7 @@ const m1 = "LocationView-module__title__-wT0bl", g1 = "LocationView-module__logo
|
|
|
5440
5440
|
r(t ? !e : !0);
|
|
5441
5441
|
}, [e, t]), n;
|
|
5442
5442
|
};
|
|
5443
|
-
var j1 = /* @__PURE__ */ B1() ?
|
|
5443
|
+
var j1 = /* @__PURE__ */ B1() ? Br : j;
|
|
5444
5444
|
function B1() {
|
|
5445
5445
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
5446
5446
|
}
|
|
@@ -5538,10 +5538,10 @@ var me;
|
|
|
5538
5538
|
(function(t) {
|
|
5539
5539
|
t.Start = "xstate.start", t.Stop = "xstate.stop", t.Raise = "xstate.raise", t.Send = "xstate.send", t.Cancel = "xstate.cancel", t.NullEvent = "", t.Assign = "xstate.assign", t.After = "xstate.after", t.DoneState = "done.state", t.DoneInvoke = "done.invoke", t.Log = "xstate.log", t.Init = "xstate.init", t.Invoke = "xstate.invoke", t.ErrorExecution = "error.execution", t.ErrorCommunication = "error.communication", t.ErrorPlatform = "error.platform", t.ErrorCustom = "xstate.error", t.Update = "xstate.update", t.Pure = "xstate.pure", t.Choose = "xstate.choose";
|
|
5540
5540
|
})(me || (me = {}));
|
|
5541
|
-
var
|
|
5541
|
+
var Nr;
|
|
5542
5542
|
(function(t) {
|
|
5543
5543
|
t.Parent = "#_parent", t.Internal = "#_internal";
|
|
5544
|
-
})(
|
|
5544
|
+
})(Nr || (Nr = {}));
|
|
5545
5545
|
var La = me.Start, Ec = me.Stop, Ki = me.Raise, Ls = me.Send, Of = me.Cancel, U1 = me.NullEvent, Oc = me.Assign;
|
|
5546
5546
|
me.After;
|
|
5547
5547
|
me.DoneState;
|
|
@@ -5564,7 +5564,7 @@ function Af(t) {
|
|
|
5564
5564
|
}
|
|
5565
5565
|
function Ma(t, e) {
|
|
5566
5566
|
try {
|
|
5567
|
-
return
|
|
5567
|
+
return Ur(t) ? t : t.toString().split(e);
|
|
5568
5568
|
} catch {
|
|
5569
5569
|
throw new Error("'".concat(t, "' is not a valid state path."));
|
|
5570
5570
|
}
|
|
@@ -5575,7 +5575,7 @@ function Z1(t) {
|
|
|
5575
5575
|
function gi(t, e) {
|
|
5576
5576
|
if (Z1(t))
|
|
5577
5577
|
return t.value;
|
|
5578
|
-
if (
|
|
5578
|
+
if (Ur(t))
|
|
5579
5579
|
return os(t);
|
|
5580
5580
|
if (typeof t != "string")
|
|
5581
5581
|
return t;
|
|
@@ -5681,7 +5681,7 @@ function Ee(t) {
|
|
|
5681
5681
|
return (e = []).concat.apply(e, be([], ce(t), !1));
|
|
5682
5682
|
}
|
|
5683
5683
|
function Lf(t) {
|
|
5684
|
-
return
|
|
5684
|
+
return Ur(t) ? t : [t];
|
|
5685
5685
|
}
|
|
5686
5686
|
function mt(t) {
|
|
5687
5687
|
return t === void 0 ? [] : Lf(t);
|
|
@@ -5791,7 +5791,7 @@ function zl(t, e, n, r) {
|
|
|
5791
5791
|
}
|
|
5792
5792
|
var ty = function() {
|
|
5793
5793
|
};
|
|
5794
|
-
function
|
|
5794
|
+
function Ur(t) {
|
|
5795
5795
|
return Array.isArray(t);
|
|
5796
5796
|
}
|
|
5797
5797
|
function le(t) {
|
|
@@ -5827,7 +5827,7 @@ mo = {}, mo[fn] = function() {
|
|
|
5827
5827
|
}, mo[Symbol.observable] = function() {
|
|
5828
5828
|
return this;
|
|
5829
5829
|
};
|
|
5830
|
-
function
|
|
5830
|
+
function Ir(t) {
|
|
5831
5831
|
return !!t && "__xstatenode" in t;
|
|
5832
5832
|
}
|
|
5833
5833
|
function ry(t) {
|
|
@@ -5851,7 +5851,7 @@ function De(t, e) {
|
|
|
5851
5851
|
}
|
|
5852
5852
|
function sr(t, e) {
|
|
5853
5853
|
var n = Lf(e).map(function(r) {
|
|
5854
|
-
return typeof r > "u" || typeof r == "string" ||
|
|
5854
|
+
return typeof r > "u" || typeof r == "string" || Ir(r) ? {
|
|
5855
5855
|
target: r,
|
|
5856
5856
|
event: t
|
|
5857
5857
|
} : F(F({}, r), {
|
|
@@ -5895,9 +5895,9 @@ function go(t, e) {
|
|
|
5895
5895
|
return "".concat(t, ":invocation[").concat(e, "]");
|
|
5896
5896
|
}
|
|
5897
5897
|
function Da(t) {
|
|
5898
|
-
return (t.type === Ki || t.type === Ls && t.to ===
|
|
5898
|
+
return (t.type === Ki || t.type === Ls && t.to === Nr.Internal) && typeof t.delay != "number";
|
|
5899
5899
|
}
|
|
5900
|
-
var
|
|
5900
|
+
var mr = /* @__PURE__ */ De({
|
|
5901
5901
|
type: $1
|
|
5902
5902
|
});
|
|
5903
5903
|
function Na(t, e) {
|
|
@@ -5939,7 +5939,7 @@ function Ai(t, e) {
|
|
|
5939
5939
|
var hn = function(t, e) {
|
|
5940
5940
|
if (!t)
|
|
5941
5941
|
return [];
|
|
5942
|
-
var n =
|
|
5942
|
+
var n = Ur(t) ? t : [t];
|
|
5943
5943
|
return n.map(function(r) {
|
|
5944
5944
|
return Ai(r, e);
|
|
5945
5945
|
});
|
|
@@ -6114,7 +6114,7 @@ function as(t, e, n, r, i, o, s) {
|
|
|
6114
6114
|
}
|
|
6115
6115
|
case Ls:
|
|
6116
6116
|
var w = cy(f, c, r, t.options.delays);
|
|
6117
|
-
return o && w.to !==
|
|
6117
|
+
return o && w.to !== Nr.Internal && (p === "entry" ? u.push(w) : o(w, c, r)), w;
|
|
6118
6118
|
case xf: {
|
|
6119
6119
|
var y = ly(f, c, r);
|
|
6120
6120
|
return o == null || o(y, c, r), y;
|
|
@@ -6193,7 +6193,7 @@ function as(t, e, n, r, i, o, s) {
|
|
|
6193
6193
|
var g = Ee(i.map(h));
|
|
6194
6194
|
return [g, c];
|
|
6195
6195
|
}
|
|
6196
|
-
var
|
|
6196
|
+
var fr = function(t, e) {
|
|
6197
6197
|
var n = e(t);
|
|
6198
6198
|
return n;
|
|
6199
6199
|
};
|
|
@@ -6226,8 +6226,8 @@ function vy(t, e, n, r) {
|
|
|
6226
6226
|
}
|
|
6227
6227
|
function If(t, e, n) {
|
|
6228
6228
|
var r = Nf(e);
|
|
6229
|
-
if (r.deferred = !0,
|
|
6230
|
-
var i = r.state =
|
|
6229
|
+
if (r.deferred = !0, Ir(t)) {
|
|
6230
|
+
var i = r.state = fr(void 0, function() {
|
|
6231
6231
|
return (n ? t.withContext(n) : t).initialState;
|
|
6232
6232
|
});
|
|
6233
6233
|
r.getSnapshot = function() {
|
|
@@ -6484,7 +6484,7 @@ var ot = (
|
|
|
6484
6484
|
transitions: [],
|
|
6485
6485
|
children: {}
|
|
6486
6486
|
}) : e;
|
|
6487
|
-
var r =
|
|
6487
|
+
var r = mr;
|
|
6488
6488
|
return new t({
|
|
6489
6489
|
value: e,
|
|
6490
6490
|
context: n,
|
|
@@ -6506,7 +6506,7 @@ var ot = (
|
|
|
6506
6506
|
if (e instanceof t) {
|
|
6507
6507
|
if (!e.actions.length)
|
|
6508
6508
|
return e;
|
|
6509
|
-
var r =
|
|
6509
|
+
var r = mr;
|
|
6510
6510
|
return new t({
|
|
6511
6511
|
value: e.value,
|
|
6512
6512
|
context: n,
|
|
@@ -6595,7 +6595,7 @@ var ot = (
|
|
|
6595
6595
|
}
|
|
6596
6596
|
}, t;
|
|
6597
6597
|
}()
|
|
6598
|
-
), Xs = /* @__PURE__ */ new Map(), Ty = 0,
|
|
6598
|
+
), Xs = /* @__PURE__ */ new Map(), Ty = 0, Xr = {
|
|
6599
6599
|
bookId: function() {
|
|
6600
6600
|
return "x:".concat(Ty++);
|
|
6601
6601
|
},
|
|
@@ -6680,7 +6680,7 @@ var ky = (
|
|
|
6680
6680
|
n === void 0 && (n = t.defaultOptions);
|
|
6681
6681
|
var r = this;
|
|
6682
6682
|
this.machine = e, this.delayedEventsMap = {}, this.listeners = /* @__PURE__ */ new Set(), this.contextListeners = /* @__PURE__ */ new Set(), this.stopListeners = /* @__PURE__ */ new Set(), this.doneListeners = /* @__PURE__ */ new Set(), this.eventListeners = /* @__PURE__ */ new Set(), this.sendListeners = /* @__PURE__ */ new Set(), this.initialized = !1, this.status = Re.NotStarted, this.children = /* @__PURE__ */ new Map(), this.forwardTo = /* @__PURE__ */ new Set(), this._outgoingQueue = [], this.init = this.start, this.send = function(u, d) {
|
|
6683
|
-
if (
|
|
6683
|
+
if (Ur(u))
|
|
6684
6684
|
return r.batch(u), r.state;
|
|
6685
6685
|
var h = De(Rs(u, d));
|
|
6686
6686
|
if (r.status === Re.Stopped)
|
|
@@ -6697,7 +6697,7 @@ Event: `
|
|
|
6697
6697
|
r.update(g, h);
|
|
6698
6698
|
}), r._state;
|
|
6699
6699
|
}, this.sendTo = function(u, d, h) {
|
|
6700
|
-
var g = r.parent && (d ===
|
|
6700
|
+
var g = r.parent && (d === Nr.Parent || r.parent.id === d), p = g ? r.parent : he(d) ? d === Nr.Internal ? r : r.children.get(d) || Xr.get(d) : ry(d) ? d : void 0;
|
|
6701
6701
|
if (!p) {
|
|
6702
6702
|
if (!g)
|
|
6703
6703
|
throw new Error("Unable to send event to child '".concat(d, "' from service '").concat(r.id, "'."));
|
|
@@ -6745,7 +6745,7 @@ Event: `
|
|
|
6745
6745
|
r.defer(v);
|
|
6746
6746
|
return;
|
|
6747
6747
|
} else
|
|
6748
|
-
v.to ? r.sendTo(v._event, v.to, h ===
|
|
6748
|
+
v.to ? r.sendTo(v._event, v.to, h === mr) : r.send(v._event);
|
|
6749
6749
|
break;
|
|
6750
6750
|
case Of:
|
|
6751
6751
|
r.cancel(u.sendId);
|
|
@@ -6774,7 +6774,7 @@ Event: `
|
|
|
6774
6774
|
if (!T)
|
|
6775
6775
|
return;
|
|
6776
6776
|
var A = void 0;
|
|
6777
|
-
|
|
6777
|
+
Ir(T) && (T = O ? T.withContext(O) : T, A = {
|
|
6778
6778
|
autoForward: S
|
|
6779
6779
|
}), r.spawn(T, C, A);
|
|
6780
6780
|
} else
|
|
@@ -6794,12 +6794,12 @@ Event: `
|
|
|
6794
6794
|
var i = F(F({}, t.defaultOptions), n), o = i.clock, s = i.logger, a = i.parent, c = i.id, l = c !== void 0 ? c : e.id;
|
|
6795
6795
|
this.id = l, this.logger = s, this.clock = o, this.parent = a, this.options = i, this.scheduler = new Gl({
|
|
6796
6796
|
deferEvents: this.options.deferEvents
|
|
6797
|
-
}), this.sessionId =
|
|
6797
|
+
}), this.sessionId = Xr.bookId();
|
|
6798
6798
|
}
|
|
6799
6799
|
return Object.defineProperty(t.prototype, "initialState", {
|
|
6800
6800
|
get: function() {
|
|
6801
6801
|
var e = this;
|
|
6802
|
-
return this._initialState ? this._initialState :
|
|
6802
|
+
return this._initialState ? this._initialState : fr(this, function() {
|
|
6803
6803
|
return e._initialState = e.machine.initialState, e._initialState;
|
|
6804
6804
|
});
|
|
6805
6805
|
},
|
|
@@ -6837,7 +6837,7 @@ Event: `
|
|
|
6837
6837
|
var r, i, o, s, a, c, l, u, d = this;
|
|
6838
6838
|
if (e._sessionid = this.sessionId, this._state = e, (!this.machine.config.predictableActionArguments || // this is currently required to execute initial actions as the `initialState` gets cached
|
|
6839
6839
|
// we can't just recompute it (and execute actions while doing so) because we try to preserve identity of actors created within initial assigns
|
|
6840
|
-
n ===
|
|
6840
|
+
n === mr) && this.options.execute)
|
|
6841
6841
|
this.execute(this.state);
|
|
6842
6842
|
else
|
|
6843
6843
|
for (var h = void 0; h = this._outgoingQueue.shift(); )
|
|
@@ -6918,7 +6918,7 @@ Event: `
|
|
|
6918
6918
|
throw l.error;
|
|
6919
6919
|
}
|
|
6920
6920
|
}
|
|
6921
|
-
this._stop(), this._stopChildren(),
|
|
6921
|
+
this._stop(), this._stopChildren(), Xr.free(this.sessionId);
|
|
6922
6922
|
}
|
|
6923
6923
|
}, t.prototype.onTransition = function(e) {
|
|
6924
6924
|
return this.listeners.add(e), this.status === Re.Running && e(this.state, this.state.event), this;
|
|
@@ -6949,12 +6949,12 @@ Event: `
|
|
|
6949
6949
|
var n = this;
|
|
6950
6950
|
if (this.status === Re.Running)
|
|
6951
6951
|
return this;
|
|
6952
|
-
this.machine._init(),
|
|
6953
|
-
var r = e === void 0 ? this.initialState :
|
|
6952
|
+
this.machine._init(), Xr.register(this.sessionId, this), this.initialized = !0, this.status = Re.Running;
|
|
6953
|
+
var r = e === void 0 ? this.initialState : fr(this, function() {
|
|
6954
6954
|
return Ey(e) ? n.machine.resolveState(e) : n.machine.resolveState(ot.from(e, n.machine.context));
|
|
6955
6955
|
});
|
|
6956
6956
|
return this.options.devTools && this.attachDev(), this.scheduler.initialize(function() {
|
|
6957
|
-
n.update(r,
|
|
6957
|
+
n.update(r, mr);
|
|
6958
6958
|
}), this;
|
|
6959
6959
|
}, t.prototype._stopChildren = function() {
|
|
6960
6960
|
this.children.forEach(function(e) {
|
|
@@ -7060,7 +7060,7 @@ Event: `
|
|
|
7060
7060
|
if (!(!((r = e._state) === null || r === void 0) && r.done)) {
|
|
7061
7061
|
var i = De({
|
|
7062
7062
|
type: "xstate.stop"
|
|
7063
|
-
}), o =
|
|
7063
|
+
}), o = fr(e, function() {
|
|
7064
7064
|
var s = Ee(be([], ce(e.state.configuration), !1).sort(function(d, h) {
|
|
7065
7065
|
return h.order - d.order;
|
|
7066
7066
|
}).map(function(d) {
|
|
@@ -7089,7 +7089,7 @@ Event: `
|
|
|
7089
7089
|
});
|
|
7090
7090
|
return u.changed = !0, u;
|
|
7091
7091
|
});
|
|
7092
|
-
e.update(o, i), e._stopChildren(),
|
|
7092
|
+
e.update(o, i), e._stopChildren(), Xr.free(e.sessionId);
|
|
7093
7093
|
}
|
|
7094
7094
|
}), this;
|
|
7095
7095
|
}, t.prototype.batch = function(e) {
|
|
@@ -7106,7 +7106,7 @@ Event: `
|
|
|
7106
7106
|
this.scheduler.schedule(function() {
|
|
7107
7107
|
var i, o, s = n.state, a = !1, c = [], l = function(g) {
|
|
7108
7108
|
var p = De(g);
|
|
7109
|
-
n.forward(p), s =
|
|
7109
|
+
n.forward(p), s = fr(n, function() {
|
|
7110
7110
|
return n.machine.transition(s, p, void 0, r || void 0);
|
|
7111
7111
|
}), c.push.apply(c, be([], ce(n.machine.config.predictableActionArguments ? s.actions : s.actions.map(function(f) {
|
|
7112
7112
|
return Oy(f, s);
|
|
@@ -7142,7 +7142,7 @@ Event: `
|
|
|
7142
7142
|
return s.indexOf(Vl) === 0;
|
|
7143
7143
|
}))
|
|
7144
7144
|
throw i.data.data;
|
|
7145
|
-
var o =
|
|
7145
|
+
var o = fr(this, function() {
|
|
7146
7146
|
return r.machine.transition(r.state, i, void 0, n || void 0);
|
|
7147
7147
|
});
|
|
7148
7148
|
return o;
|
|
@@ -7195,7 +7195,7 @@ Event: `
|
|
|
7195
7195
|
return this.spawnActor(e, n);
|
|
7196
7196
|
if (ny(e))
|
|
7197
7197
|
return this.spawnObservable(e, n);
|
|
7198
|
-
if (
|
|
7198
|
+
if (Ir(e))
|
|
7199
7199
|
return this.spawnMachine(e, F(F({}, r), {
|
|
7200
7200
|
id: n
|
|
7201
7201
|
}));
|
|
@@ -7530,7 +7530,7 @@ var bo = "", Fa = "#", Ys = "*", ar = {}, cr = function(t) {
|
|
|
7530
7530
|
return Ai(l);
|
|
7531
7531
|
}), this.meta = this.config.meta, this.doneData = this.type === "final" ? this.config.data : void 0, this.invoke = mt(this.config.invoke).map(function(l, u) {
|
|
7532
7532
|
var d, h;
|
|
7533
|
-
if (
|
|
7533
|
+
if (Ir(l)) {
|
|
7534
7534
|
var g = go(o.id, u);
|
|
7535
7535
|
return o.machine.options.services = F((d = {}, d[g] = l, d), o.machine.options.services), yo({
|
|
7536
7536
|
src: g,
|
|
@@ -7542,7 +7542,7 @@ var bo = "", Fa = "#", Ys = "*", ar = {}, cr = function(t) {
|
|
|
7542
7542
|
id: g,
|
|
7543
7543
|
src: l.src
|
|
7544
7544
|
}));
|
|
7545
|
-
} else if (
|
|
7545
|
+
} else if (Ir(l.src) || le(l.src)) {
|
|
7546
7546
|
var g = l.id || go(o.id, u);
|
|
7547
7547
|
return o.machine.options.services = F((h = {}, h[g] = l.src, h), o.machine.options.services), yo(F(F({
|
|
7548
7548
|
id: g
|
|
@@ -7661,7 +7661,7 @@ var bo = "", Fa = "#", Ys = "*", ar = {}, cr = function(t) {
|
|
|
7661
7661
|
return e.onEntry.push(ay(c, {
|
|
7662
7662
|
delay: o
|
|
7663
7663
|
})), e.onExit.push(uy(c)), c;
|
|
7664
|
-
}, i =
|
|
7664
|
+
}, i = Ur(n) ? n.map(function(o, s) {
|
|
7665
7665
|
var a = r(o.delay, s);
|
|
7666
7666
|
return F(F({}, o), {
|
|
7667
7667
|
event: a
|
|
@@ -7946,7 +7946,7 @@ var bo = "", Fa = "#", Ys = "*", ar = {}, cr = function(t) {
|
|
|
7946
7946
|
return e = this.transition(e, n, void 0, i), e._event = r, e.event = r.data, (o = e.actions).unshift.apply(o, be([], ce(s), !1)), e;
|
|
7947
7947
|
}, t.prototype.resolveTransition = function(e, n, r, i, o) {
|
|
7948
7948
|
var s, a, c, l, u = this;
|
|
7949
|
-
o === void 0 && (o =
|
|
7949
|
+
o === void 0 && (o = mr);
|
|
7950
7950
|
var d = e.configuration, h = !n || e.transitions.length > 0, g = h ? e.configuration : n ? n.configuration : [], p = Qo(g, this), f = h ? 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), w = n ? F({}, n.activities) : {};
|
|
7951
7951
|
try {
|
|
7952
7952
|
for (var y = te(v), _ = y.next(); !_.done; _ = y.next()) {
|
|
@@ -8362,7 +8362,7 @@ var Fy = py, ja;
|
|
|
8362
8362
|
(function(t) {
|
|
8363
8363
|
t[t.Effect = 1] = "Effect", t[t.LayoutEffect = 2] = "LayoutEffect";
|
|
8364
8364
|
})(ja || (ja = {}));
|
|
8365
|
-
var vi =
|
|
8365
|
+
var vi = Br;
|
|
8366
8366
|
function Wl(t) {
|
|
8367
8367
|
var e = D.useRef();
|
|
8368
8368
|
return e.current || (e.current = { v: t() }), e.current.v;
|
|
@@ -8417,7 +8417,7 @@ function Vy(t, e) {
|
|
|
8417
8417
|
}
|
|
8418
8418
|
return [o, s];
|
|
8419
8419
|
}
|
|
8420
|
-
var
|
|
8420
|
+
var Yr = function(t, e) {
|
|
8421
8421
|
var n = typeof Symbol == "function" && t[Symbol.iterator];
|
|
8422
8422
|
if (!n)
|
|
8423
8423
|
return t;
|
|
@@ -8458,12 +8458,12 @@ function Hy(t) {
|
|
|
8458
8458
|
if (i.actions.length) {
|
|
8459
8459
|
var a = i.actions.filter(function(d) {
|
|
8460
8460
|
return typeof d.exec == "function" && "__effect" in d.exec;
|
|
8461
|
-
}), c =
|
|
8461
|
+
}), c = Yr(Vy(a, function(d) {
|
|
8462
8462
|
return d.exec.__effect === ja.Effect;
|
|
8463
8463
|
}), 2), l = c[0], u = c[1];
|
|
8464
|
-
(o = e.current).push.apply(o, Zl([],
|
|
8464
|
+
(o = e.current).push.apply(o, Zl([], Yr(l.map(function(d) {
|
|
8465
8465
|
return [d, i];
|
|
8466
|
-
})), !1)), (s = n.current).push.apply(s, Zl([],
|
|
8466
|
+
})), !1)), (s = n.current).push.apply(s, Zl([], Yr(u.map(function(d) {
|
|
8467
8467
|
return [d, i];
|
|
8468
8468
|
})), !1));
|
|
8469
8469
|
}
|
|
@@ -8473,12 +8473,12 @@ function Hy(t) {
|
|
|
8473
8473
|
};
|
|
8474
8474
|
}, []), vi(function() {
|
|
8475
8475
|
for (; n.current.length; ) {
|
|
8476
|
-
var r =
|
|
8476
|
+
var r = Yr(n.current.shift(), 2), i = r[0], o = r[1];
|
|
8477
8477
|
Kl(i, o);
|
|
8478
8478
|
}
|
|
8479
8479
|
}), j(function() {
|
|
8480
8480
|
for (; e.current.length; ) {
|
|
8481
|
-
var r =
|
|
8481
|
+
var r = Yr(e.current.shift(), 2), i = r[0], o = r[1];
|
|
8482
8482
|
Kl(i, o);
|
|
8483
8483
|
}
|
|
8484
8484
|
});
|
|
@@ -8583,7 +8583,7 @@ function xe() {
|
|
|
8583
8583
|
return t;
|
|
8584
8584
|
}, xe.apply(this, arguments);
|
|
8585
8585
|
}
|
|
8586
|
-
function
|
|
8586
|
+
function gr(t, e) {
|
|
8587
8587
|
if (t == null)
|
|
8588
8588
|
return {};
|
|
8589
8589
|
var n = {}, r = Object.keys(t), i, o;
|
|
@@ -8634,13 +8634,13 @@ function An(t, e) {
|
|
|
8634
8634
|
function wo(t) {
|
|
8635
8635
|
return J.und(t) ? [] : J.arr(t) ? t : [t];
|
|
8636
8636
|
}
|
|
8637
|
-
function
|
|
8637
|
+
function pr(t) {
|
|
8638
8638
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), r = 1; r < e; r++)
|
|
8639
8639
|
n[r - 1] = arguments[r];
|
|
8640
8640
|
return J.fun(t) ? t(...n) : t;
|
|
8641
8641
|
}
|
|
8642
8642
|
function Ky(t) {
|
|
8643
|
-
return t.to, t.from, t.config, t.onStart, t.onRest, t.onFrame, t.children, t.reset, t.reverse, t.force, t.immediate, t.delay, t.attach, t.destroyed, t.interpolateTo, t.ref, t.lazy,
|
|
8643
|
+
return t.to, t.from, t.config, t.onStart, t.onRest, t.onFrame, t.children, t.reset, t.reverse, t.force, t.immediate, t.delay, t.attach, t.destroyed, t.interpolateTo, t.ref, t.lazy, gr(t, ["to", "from", "config", "onStart", "onRest", "onFrame", "children", "reset", "reverse", "force", "immediate", "delay", "attach", "destroyed", "interpolateTo", "ref", "lazy"]);
|
|
8644
8644
|
}
|
|
8645
8645
|
function ea(t) {
|
|
8646
8646
|
const e = Ky(t);
|
|
@@ -8744,7 +8744,7 @@ const r2 = (t) => J.fun(t) && !(t.prototype instanceof q.Component), i2 = (t) =>
|
|
|
8744
8744
|
}, []), Jt(r, () => e2(a)), c(n);
|
|
8745
8745
|
const l = s.current.getValue();
|
|
8746
8746
|
l.scrollTop, l.scrollLeft;
|
|
8747
|
-
const u =
|
|
8747
|
+
const u = gr(l, ["scrollTop", "scrollLeft"]), d = r2(t) ? void 0 : (h) => a.current = Qy(h, r);
|
|
8748
8748
|
return q.createElement(t, xe({}, u, {
|
|
8749
8749
|
ref: d
|
|
8750
8750
|
}));
|
|
@@ -8833,9 +8833,9 @@ function c2(t, e) {
|
|
|
8833
8833
|
;
|
|
8834
8834
|
return n - 1;
|
|
8835
8835
|
}
|
|
8836
|
-
class
|
|
8836
|
+
class Fr extends Ba {
|
|
8837
8837
|
constructor(e, n, r, i) {
|
|
8838
|
-
super(), this.calc = void 0, this.payload = e instanceof Ba && !(e instanceof
|
|
8838
|
+
super(), this.calc = void 0, this.payload = e instanceof Ba && !(e instanceof Fr) ? e.getPayload() : Array.isArray(e) ? e : [e], this.calc = us(n, r, i);
|
|
8839
8839
|
}
|
|
8840
8840
|
getValue() {
|
|
8841
8841
|
return this.calc(...this.payload.map((e) => e.getValue()));
|
|
@@ -8844,10 +8844,10 @@ class jr extends Ba {
|
|
|
8844
8844
|
this.calc = us(e, n, r);
|
|
8845
8845
|
}
|
|
8846
8846
|
interpolate(e, n, r) {
|
|
8847
|
-
return new
|
|
8847
|
+
return new Fr(this, e, n, r);
|
|
8848
8848
|
}
|
|
8849
8849
|
}
|
|
8850
|
-
const lr = (t, e, n) => t && new
|
|
8850
|
+
const lr = (t, e, n) => t && new Fr(t, e, n), l2 = {
|
|
8851
8851
|
default: {
|
|
8852
8852
|
tension: 170,
|
|
8853
8853
|
friction: 26
|
|
@@ -8893,7 +8893,7 @@ class Va extends yt {
|
|
|
8893
8893
|
return this.value;
|
|
8894
8894
|
}
|
|
8895
8895
|
interpolate(e, n, r) {
|
|
8896
|
-
return new
|
|
8896
|
+
return new Fr(this, e, n, r);
|
|
8897
8897
|
}
|
|
8898
8898
|
}
|
|
8899
8899
|
class u2 extends Ba {
|
|
@@ -8907,7 +8907,7 @@ class u2 extends Ba {
|
|
|
8907
8907
|
return this.payload.map((e) => e.getValue());
|
|
8908
8908
|
}
|
|
8909
8909
|
interpolate(e, n) {
|
|
8910
|
-
return new
|
|
8910
|
+
return new Fr(this, e, n);
|
|
8911
8911
|
}
|
|
8912
8912
|
}
|
|
8913
8913
|
let d2 = 0, f2 = class {
|
|
@@ -8920,7 +8920,7 @@ let d2 = 0, f2 = class {
|
|
|
8920
8920
|
update(e) {
|
|
8921
8921
|
if (!e)
|
|
8922
8922
|
return this;
|
|
8923
|
-
const n = ea(e), r = n.delay, i = r === void 0 ? 0 : r, o = n.to, s =
|
|
8923
|
+
const n = ea(e), r = n.delay, i = r === void 0 ? 0 : r, o = n.to, s = gr(n, ["delay", "to"]);
|
|
8924
8924
|
if (J.arr(o) || J.fun(o))
|
|
8925
8925
|
this.queue.push(xe({}, s, {
|
|
8926
8926
|
delay: i,
|
|
@@ -8934,7 +8934,7 @@ let d2 = 0, f2 = class {
|
|
|
8934
8934
|
to: {
|
|
8935
8935
|
[l]: u
|
|
8936
8936
|
},
|
|
8937
|
-
delay:
|
|
8937
|
+
delay: pr(i, l)
|
|
8938
8938
|
}, s), h = a[d.delay] && a[d.delay].to;
|
|
8939
8939
|
a[d.delay] = xe({}, a[d.delay], d, {
|
|
8940
8940
|
to: xe({}, h, d.to)
|
|
@@ -8953,7 +8953,7 @@ let d2 = 0, f2 = class {
|
|
|
8953
8953
|
});
|
|
8954
8954
|
const n = this.local = ++this.guid, r = this.localQueue = this.queue;
|
|
8955
8955
|
this.queue = [], r.forEach((i, o) => {
|
|
8956
|
-
let s = i.delay, a =
|
|
8956
|
+
let s = i.delay, a = gr(i, ["delay"]);
|
|
8957
8957
|
const c = (u) => {
|
|
8958
8958
|
o === r.length - 1 && n === this.guid && u && (this.idle = !0, this.props.onRest && this.props.onRest(this.merged)), e && e();
|
|
8959
8959
|
};
|
|
@@ -8976,7 +8976,7 @@ let d2 = 0, f2 = class {
|
|
|
8976
8976
|
runAsync(e, n) {
|
|
8977
8977
|
var r = this;
|
|
8978
8978
|
e.delay;
|
|
8979
|
-
let i =
|
|
8979
|
+
let i = gr(e, ["delay"]);
|
|
8980
8980
|
const o = this.local;
|
|
8981
8981
|
let s = Promise.resolve(void 0);
|
|
8982
8982
|
if (J.arr(i.to))
|
|
@@ -9016,7 +9016,7 @@ let d2 = 0, f2 = class {
|
|
|
9016
9016
|
if (this.animations = Object.entries(this.merged).reduce((f, b) => {
|
|
9017
9017
|
let v = b[0], w = b[1], y = f[v] || {};
|
|
9018
9018
|
const _ = J.num(w), C = J.str(w) && !w.startsWith("#") && !/\d/.test(w) && !$f[w], m = J.arr(w), S = !_ && !m && !C;
|
|
9019
|
-
let O = J.und(i[v]) ? w : i[v], T = _ || m || C ? w : 1, A =
|
|
9019
|
+
let O = J.und(i[v]) ? w : i[v], T = _ || m || C ? w : 1, A = pr(c, v);
|
|
9020
9020
|
p && (T = p.animations[v].parent);
|
|
9021
9021
|
let L = y.parent, P = y.interpolation, k = wo(p ? T.getPayload() : T), N, B = w;
|
|
9022
9022
|
S && (B = ls({
|
|
@@ -9040,7 +9040,7 @@ let d2 = 0, f2 = class {
|
|
|
9040
9040
|
}
|
|
9041
9041
|
return k = wo(p ? T.getPayload() : T), N = wo(L.getPayload()), d && !S && L.setValue(O, !1), this.hasChanged = !0, N.forEach((ie) => {
|
|
9042
9042
|
ie.startPosition = ie.value, ie.lastPosition = ie.value, ie.lastVelocity = Z ? ie.lastVelocity : void 0, ie.lastTime = Z ? ie.lastTime : void 0, ie.startTime = qf(), ie.done = !1, ie.animatedStyles.clear();
|
|
9043
|
-
}),
|
|
9043
|
+
}), pr(h, v) && L.setValue(S ? T : w, !1), xe({}, f, {
|
|
9044
9044
|
[v]: xe({}, y, {
|
|
9045
9045
|
name: v,
|
|
9046
9046
|
parent: L,
|
|
@@ -9050,7 +9050,7 @@ let d2 = 0, f2 = class {
|
|
|
9050
9050
|
previous: B,
|
|
9051
9051
|
config: A,
|
|
9052
9052
|
fromValues: wo(L.getValue()),
|
|
9053
|
-
immediate:
|
|
9053
|
+
immediate: pr(h, v),
|
|
9054
9054
|
initialVelocity: An(A.velocity, 0),
|
|
9055
9055
|
clamp: An(A.clamp, !1),
|
|
9056
9056
|
precision: An(A.precision, 0.01),
|
|
@@ -9086,7 +9086,7 @@ const h2 = (t, e) => {
|
|
|
9086
9086
|
r.current && (r.current.map((d) => d.destroy()), r.current = void 0);
|
|
9087
9087
|
let u;
|
|
9088
9088
|
return [new Array(t).fill().map((d, h) => {
|
|
9089
|
-
const g = new f2(), p = i ?
|
|
9089
|
+
const g = new f2(), p = i ? pr(e, h, g) : e[h];
|
|
9090
9090
|
return h === 0 && (u = p.ref), g.update(p), u || g.start(), g;
|
|
9091
9091
|
}), u];
|
|
9092
9092
|
}, [t]), s = o[0], a = o[1];
|
|
@@ -9098,7 +9098,7 @@ const h2 = (t, e) => {
|
|
|
9098
9098
|
}
|
|
9099
9099
|
}));
|
|
9100
9100
|
const c = ve(() => (u) => r.current.map((d, h) => {
|
|
9101
|
-
d.update(i ?
|
|
9101
|
+
d.update(i ? pr(u, h, d) : u[h]), a || d.start();
|
|
9102
9102
|
}), [t]);
|
|
9103
9103
|
j(() => {
|
|
9104
9104
|
n.current ? i || c(e) : a || r.current.forEach((u) => u.start());
|
|
@@ -9412,7 +9412,7 @@ Yy(T2);
|
|
|
9412
9412
|
Xy(ds);
|
|
9413
9413
|
Jy((t, e) => {
|
|
9414
9414
|
if (t.nodeType && t.setAttribute !== void 0) {
|
|
9415
|
-
const i = e.style, o = e.children, s = e.scrollTop, a = e.scrollLeft, c =
|
|
9415
|
+
const i = e.style, o = e.children, s = e.scrollTop, a = e.scrollLeft, c = gr(e, ["style", "children", "scrollTop", "scrollLeft"]), l = t.nodeName === "filter" || t.parentNode && t.parentNode.nodeName === "filter";
|
|
9416
9416
|
s !== void 0 && (t.scrollTop = s), a !== void 0 && (t.scrollLeft = a), o !== void 0 && (t.textContent = o);
|
|
9417
9417
|
for (let u in i)
|
|
9418
9418
|
if (i.hasOwnProperty(u)) {
|
|
@@ -9818,7 +9818,7 @@ function Q2(t) {
|
|
|
9818
9818
|
});
|
|
9819
9819
|
return s.drag = K2(o), s;
|
|
9820
9820
|
}
|
|
9821
|
-
function
|
|
9821
|
+
function ei(t) {
|
|
9822
9822
|
return We({
|
|
9823
9823
|
_active: !1,
|
|
9824
9824
|
_blocked: !1,
|
|
@@ -9867,7 +9867,7 @@ function eh() {
|
|
|
9867
9867
|
altKey: !1,
|
|
9868
9868
|
metaKey: !1,
|
|
9869
9869
|
ctrlKey: !1
|
|
9870
|
-
}, e =
|
|
9870
|
+
}, e = ei({
|
|
9871
9871
|
axis: void 0,
|
|
9872
9872
|
xy: [0, 0],
|
|
9873
9873
|
vxvy: [0, 0],
|
|
@@ -9878,25 +9878,25 @@ function eh() {
|
|
|
9878
9878
|
_pointerId: void 0,
|
|
9879
9879
|
tap: !1,
|
|
9880
9880
|
swipe: [0, 0]
|
|
9881
|
-
}), n =
|
|
9881
|
+
}), n = ei({
|
|
9882
9882
|
da: [0, 0],
|
|
9883
9883
|
vdva: [0, 0],
|
|
9884
9884
|
// @ts-ignore origin can never be passed as undefined in userland
|
|
9885
9885
|
origin: void 0,
|
|
9886
9886
|
turns: 0
|
|
9887
|
-
}), r =
|
|
9887
|
+
}), r = ei({
|
|
9888
9888
|
axis: void 0,
|
|
9889
9889
|
xy: [0, 0],
|
|
9890
9890
|
vxvy: [0, 0],
|
|
9891
9891
|
velocity: 0,
|
|
9892
9892
|
distance: 0
|
|
9893
|
-
}), i =
|
|
9893
|
+
}), i = ei({
|
|
9894
9894
|
axis: void 0,
|
|
9895
9895
|
xy: [0, 0],
|
|
9896
9896
|
vxvy: [0, 0],
|
|
9897
9897
|
velocity: 0,
|
|
9898
9898
|
distance: 0
|
|
9899
|
-
}), o =
|
|
9899
|
+
}), o = ei({
|
|
9900
9900
|
axis: void 0,
|
|
9901
9901
|
xy: [0, 0],
|
|
9902
9902
|
vxvy: [0, 0],
|
|
@@ -10571,7 +10571,7 @@ var fu = /* @__PURE__ */ function() {
|
|
|
10571
10571
|
return e.every(function(i, o) {
|
|
10572
10572
|
return n(i) ? (r = o, !1) : !0;
|
|
10573
10573
|
}), r;
|
|
10574
|
-
},
|
|
10574
|
+
}, ti = function(e) {
|
|
10575
10575
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
10576
10576
|
r[i - 1] = arguments[i];
|
|
10577
10577
|
return typeof e == "function" ? e.apply(void 0, r) : e;
|
|
@@ -10705,7 +10705,7 @@ var fu = /* @__PURE__ */ function() {
|
|
|
10705
10705
|
}, p = function(m) {
|
|
10706
10706
|
var S = xo(m);
|
|
10707
10707
|
if (!(c(S) >= 0)) {
|
|
10708
|
-
if (
|
|
10708
|
+
if (ti(i.clickOutsideDeactivates, m)) {
|
|
10709
10709
|
s.deactivate({
|
|
10710
10710
|
// if, on deactivation, we should return focus to the node originally-focused
|
|
10711
10711
|
// when the trap was activated (or the configured `setReturnFocus` node),
|
|
@@ -10722,7 +10722,7 @@ var fu = /* @__PURE__ */ function() {
|
|
|
10722
10722
|
});
|
|
10723
10723
|
return;
|
|
10724
10724
|
}
|
|
10725
|
-
|
|
10725
|
+
ti(i.allowOutsideClick, m) || m.preventDefault();
|
|
10726
10726
|
}
|
|
10727
10727
|
}, f = function(m) {
|
|
10728
10728
|
var S = xo(m), O = c(S) >= 0;
|
|
@@ -10758,7 +10758,7 @@ var fu = /* @__PURE__ */ function() {
|
|
|
10758
10758
|
O = l("fallbackFocus");
|
|
10759
10759
|
O && (m.preventDefault(), h(O));
|
|
10760
10760
|
}, v = function(m) {
|
|
10761
|
-
if (k3(m) &&
|
|
10761
|
+
if (k3(m) && ti(i.escapeDeactivates, m) !== !1) {
|
|
10762
10762
|
m.preventDefault(), s.deactivate();
|
|
10763
10763
|
return;
|
|
10764
10764
|
}
|
|
@@ -10768,7 +10768,7 @@ var fu = /* @__PURE__ */ function() {
|
|
|
10768
10768
|
}
|
|
10769
10769
|
}, w = function(m) {
|
|
10770
10770
|
var S = xo(m);
|
|
10771
|
-
c(S) >= 0 ||
|
|
10771
|
+
c(S) >= 0 || ti(i.clickOutsideDeactivates, m) || ti(i.allowOutsideClick, m) || (m.preventDefault(), m.stopImmediatePropagation());
|
|
10772
10772
|
}, y = function() {
|
|
10773
10773
|
if (o.active)
|
|
10774
10774
|
return fu.activateTrap(s), o.delayInitialFocusTimer = i.delayInitialFocus ? hu(function() {
|
|
@@ -10968,12 +10968,12 @@ var Gn = function(t) {
|
|
|
10968
10968
|
return !1;
|
|
10969
10969
|
}, Ei = typeof window < "u" ? window : {}, To = /* @__PURE__ */ new WeakMap(), yu = /auto|scroll/, W3 = /^tb|vertical/, Z3 = /msie|trident/i.test(Ei.navigator && Ei.navigator.userAgent), Ct = function(t) {
|
|
10970
10970
|
return parseFloat(t || "0");
|
|
10971
|
-
},
|
|
10971
|
+
}, vr = function(t, e, n) {
|
|
10972
10972
|
return t === void 0 && (t = 0), e === void 0 && (e = 0), n === void 0 && (n = !1), new q3((n ? e : t) || 0, (n ? t : e) || 0);
|
|
10973
10973
|
}, bu = Gn({
|
|
10974
|
-
devicePixelContentBoxSize:
|
|
10975
|
-
borderBoxSize:
|
|
10976
|
-
contentBoxSize:
|
|
10974
|
+
devicePixelContentBoxSize: vr(),
|
|
10975
|
+
borderBoxSize: vr(),
|
|
10976
|
+
contentBoxSize: vr(),
|
|
10977
10977
|
contentRect: new ph(0, 0, 0, 0)
|
|
10978
10978
|
}), gh = function(t, e) {
|
|
10979
10979
|
if (e === void 0 && (e = !1), To.has(t) && !e)
|
|
@@ -10981,9 +10981,9 @@ var Gn = function(t) {
|
|
|
10981
10981
|
if (mh(t))
|
|
10982
10982
|
return To.set(t, bu), bu;
|
|
10983
10983
|
var n = getComputedStyle(t), r = kc(t) && t.ownerSVGElement && t.getBBox(), i = !Z3 && n.boxSizing === "border-box", o = W3.test(n.writingMode || ""), s = !r && yu.test(n.overflowY || ""), a = !r && yu.test(n.overflowX || ""), c = r ? 0 : Ct(n.paddingTop), l = r ? 0 : Ct(n.paddingRight), u = r ? 0 : Ct(n.paddingBottom), d = r ? 0 : Ct(n.paddingLeft), h = r ? 0 : Ct(n.borderTopWidth), g = r ? 0 : Ct(n.borderRightWidth), p = r ? 0 : Ct(n.borderBottomWidth), f = r ? 0 : Ct(n.borderLeftWidth), b = d + l, v = c + u, w = f + g, y = h + p, _ = a ? t.offsetHeight - y - t.clientHeight : 0, C = s ? t.offsetWidth - w - t.clientWidth : 0, m = i ? b + w : 0, S = i ? v + y : 0, O = r ? r.width : Ct(n.width) - m - C, T = r ? r.height : Ct(n.height) - S - _, A = O + b + C + w, L = T + v + _ + y, P = Gn({
|
|
10984
|
-
devicePixelContentBoxSize:
|
|
10985
|
-
borderBoxSize:
|
|
10986
|
-
contentBoxSize:
|
|
10984
|
+
devicePixelContentBoxSize: vr(Math.round(O * devicePixelRatio), Math.round(T * devicePixelRatio), o),
|
|
10985
|
+
borderBoxSize: vr(A, L, o),
|
|
10986
|
+
contentBoxSize: vr(O, T, o),
|
|
10987
10987
|
contentRect: new ph(d, c, O, T)
|
|
10988
10988
|
});
|
|
10989
10989
|
return To.set(t, P), P;
|
|
@@ -11203,8 +11203,8 @@ function Yo(t, e) {
|
|
|
11203
11203
|
e.indexOf(n = o[r]) >= 0 || (i[n] = t[n]);
|
|
11204
11204
|
return i;
|
|
11205
11205
|
}
|
|
11206
|
-
var Oi = typeof window < "u" ?
|
|
11207
|
-
function
|
|
11206
|
+
var Oi = typeof window < "u" ? Br : j;
|
|
11207
|
+
function ni(t, e, n) {
|
|
11208
11208
|
return e = (e = +e) == e ? e : 0, n = (n = +n) == n ? n : 0, (t = +t) == t && (t = (t = t <= n ? t : n) >= e ? t : e), t;
|
|
11209
11209
|
}
|
|
11210
11210
|
function Lo(t) {
|
|
@@ -11387,7 +11387,7 @@ var Ou = { DRAG: { target: "#overlay.dragging", actions: "onOpenEnd" } }, xu = {
|
|
|
11387
11387
|
}, [S, m, O]);
|
|
11388
11388
|
var pe, ie, He = p2(function() {
|
|
11389
11389
|
return { y: 0, ready: 0, maxHeight: 0, minSnap: 0, maxSnap: 0 };
|
|
11390
|
-
}), Le = He[0], Se = He[1], Yt = H(null), en = H(null),
|
|
11390
|
+
}), Le = He[0], Se = He[1], Yt = H(null), en = H(null), $r = H(null), St = H(null), Xi = H(null), Xn = H(null), tt = H(0), Yn = H(), Ns = H(!1), tn = (pe = ve(function() {
|
|
11391
11391
|
return typeof window < "u" ? window.matchMedia("(prefers-reduced-motion: reduce)") : null;
|
|
11392
11392
|
}, []), ie = H(pe == null ? void 0 : pe.matches), on(ie.current ? "reduce" : "no-preference"), j(function() {
|
|
11393
11393
|
var M = function(W) {
|
|
@@ -11476,19 +11476,19 @@ var Ou = { DRAG: { target: "#overlay.dragging", actions: "onOpenEnd" } }, xu = {
|
|
|
11476
11476
|
}, [we, z, oe, W]), de;
|
|
11477
11477
|
}({ targetRef: Yt, fallbackRef: Xn, initialFocusRef: u || void 0, enabled: B && w && u !== !1 }), Yi = function(M) {
|
|
11478
11478
|
var W = M.getSnapPoints, z = M.heightRef, oe = M.lastSnapRef, we = M.ready, de = function(ke) {
|
|
11479
|
-
var ht = ke.contentRef, jt = ke.controlledMaxHeight, $e = ke.footerEnabled, Pn = ke.footerRef, ir = ke.headerEnabled, pt = ke.headerRef,
|
|
11480
|
-
return
|
|
11481
|
-
}, [
|
|
11479
|
+
var ht = ke.contentRef, jt = ke.controlledMaxHeight, $e = ke.footerEnabled, Pn = ke.footerRef, ir = ke.headerEnabled, pt = ke.headerRef, Wr = ke.registerReady, ro = ke.resizeSourceRef, Hc = ve(function() {
|
|
11480
|
+
return Wr("contentHeight");
|
|
11481
|
+
}, [Wr]), Uc = function(Zr, Gc, io) {
|
|
11482
11482
|
var oo = ve(function() {
|
|
11483
11483
|
return Gc("maxHeight");
|
|
11484
11484
|
}, [Gc]), Wc = X(function() {
|
|
11485
|
-
return Lo(
|
|
11485
|
+
return Lo(Zr) || typeof window < "u" ? window.innerHeight : 0;
|
|
11486
11486
|
}), Zc = Wc[0], js = Wc[1], Kc = Zc > 0, so = H(0);
|
|
11487
|
-
return on(
|
|
11487
|
+
return on(Zr ? "controlled" : "auto"), j(function() {
|
|
11488
11488
|
Kc && oo();
|
|
11489
11489
|
}, [Kc, oo]), Oi(function() {
|
|
11490
|
-
if (
|
|
11491
|
-
return js(Lo(
|
|
11490
|
+
if (Zr)
|
|
11491
|
+
return js(Lo(Zr)), void (io.current = "maxheightprop");
|
|
11492
11492
|
var Qc = function() {
|
|
11493
11493
|
so.current || (so.current = requestAnimationFrame(function() {
|
|
11494
11494
|
js(window.innerHeight), io.current = "window", so.current = 0;
|
|
@@ -11497,16 +11497,16 @@ var Ou = { DRAG: { target: "#overlay.dragging", actions: "onOpenEnd" } }, xu = {
|
|
|
11497
11497
|
return window.addEventListener("resize", Qc), js(window.innerHeight), io.current = "window", oo(), function() {
|
|
11498
11498
|
window.removeEventListener("resize", Qc), cancelAnimationFrame(so.current);
|
|
11499
11499
|
};
|
|
11500
|
-
}, [
|
|
11501
|
-
}(jt,
|
|
11500
|
+
}, [Zr, oo, io]), Zc;
|
|
11501
|
+
}(jt, Wr, ro), Is = sa(pt, { label: "headerHeight", enabled: ir, resizeSourceRef: ro }), $c = sa(ht, { label: "contentHeight", enabled: !0, resizeSourceRef: ro }), Fs = sa(Pn, { label: "footerHeight", enabled: $e, resizeSourceRef: ro }), zc = Math.min(Uc - Is - Fs, $c) + Is + Fs;
|
|
11502
11502
|
on("minHeight: " + zc);
|
|
11503
11503
|
var qc = $c > 0;
|
|
11504
11504
|
return j(function() {
|
|
11505
11505
|
qc && Hc();
|
|
11506
11506
|
}, [qc, Hc]), { maxHeight: Uc, minHeight: zc, headerHeight: Is, footerHeight: Fs };
|
|
11507
11507
|
}({ contentRef: M.contentRef, controlledMaxHeight: M.controlledMaxHeight, footerEnabled: M.footerEnabled, footerRef: M.footerRef, headerEnabled: M.headerEnabled, headerRef: M.headerRef, registerReady: M.registerReady, resizeSourceRef: M.resizeSourceRef }), ge = de.maxHeight, ye = de.minHeight, _e = de.headerHeight, K = de.footerHeight, fe = function(ke, ht) {
|
|
11508
|
-
var jt = [].concat(ke).map(Lo).reduce(function(pt,
|
|
11509
|
-
return pt.add(
|
|
11508
|
+
var jt = [].concat(ke).map(Lo).reduce(function(pt, Wr) {
|
|
11509
|
+
return pt.add(ni(Wr, 0, ht)), pt;
|
|
11510
11510
|
}, /* @__PURE__ */ new Set()), $e = Array.from(jt), Pn = Math.min.apply(Math, $e);
|
|
11511
11511
|
if (Number.isNaN(Pn))
|
|
11512
11512
|
throw new TypeError("minSnap is NaN");
|
|
@@ -11521,10 +11521,10 @@ var Ou = { DRAG: { target: "#overlay.dragging", actions: "onOpenEnd" } }, xu = {
|
|
|
11521
11521
|
return Math.abs($e - ht) < Math.abs(jt - ht) ? $e : jt;
|
|
11522
11522
|
}, rr);
|
|
11523
11523
|
}, maxHeight: ge };
|
|
11524
|
-
}({ contentRef:
|
|
11524
|
+
}({ contentRef: $r, controlledMaxHeight: h, footerEnabled: !!o, footerRef: Xi, getSnapPoints: b, headerEnabled: s !== !1, headerRef: St, heightRef: tt, lastSnapRef: l, ready: B, registerReady: Q, resizeSourceRef: Yn }), zr = Yi.minSnap, qr = Yi.maxSnap, Gr = Yi.maxHeight, eo = Yi.findSnap, Ft = H(Gr), nt = H(zr), Pe = H(qr), to = H(eo), _t = H(0);
|
|
11525
11525
|
Oi(function() {
|
|
11526
|
-
Ft.current =
|
|
11527
|
-
}, [eo, p,
|
|
11526
|
+
Ft.current = Gr, Pe.current = qr, nt.current = zr, to.current = eo, _t.current = eo(p);
|
|
11527
|
+
}, [eo, p, Gr, qr, zr]);
|
|
11528
11528
|
var Ue = U(function(M) {
|
|
11529
11529
|
var W = M.onRest, z = M.config, oe = (z = z === void 0 ? {} : z).velocity, we = oe === void 0 ? 1 : oe, de = Yo(z, f4), ge = Yo(M, h4);
|
|
11530
11530
|
return new Promise(function(ye) {
|
|
@@ -11660,8 +11660,8 @@ var Ou = { DRAG: { target: "#overlay.dragging", actions: "onOpenEnd" } }, xu = {
|
|
|
11660
11660
|
j(function() {
|
|
11661
11661
|
B && nn(a ? "OPEN" : "CLOSE");
|
|
11662
11662
|
}, [a, nn, B]), Oi(function() {
|
|
11663
|
-
(
|
|
11664
|
-
}, [
|
|
11663
|
+
(Gr || qr || zr) && nn("RESIZE");
|
|
11664
|
+
}, [Gr, qr, zr, nn]), j(function() {
|
|
11665
11665
|
return function() {
|
|
11666
11666
|
er.current.deactivate(), nr.current.deactivate(), tr.current.deactivate();
|
|
11667
11667
|
};
|
|
@@ -11706,9 +11706,9 @@ var Ou = { DRAG: { target: "#overlay.dragging", actions: "onOpenEnd" } }, xu = {
|
|
|
11706
11706
|
throw new TypeError("minSnapRef is NaN!!");
|
|
11707
11707
|
var rp = function(M) {
|
|
11708
11708
|
var W, z = M.spring, oe = lr([z.y, z.maxHeight], function(K, fe) {
|
|
11709
|
-
return Math.round(
|
|
11709
|
+
return Math.round(ni(fe - K, 0, 16)) + "px";
|
|
11710
11710
|
}), we = lr([z.y, z.minSnap, z.maxSnap], function(K, fe, rt) {
|
|
11711
|
-
return
|
|
11711
|
+
return ni(K, fe, rt) + "px";
|
|
11712
11712
|
}), de = lr([z.y, z.minSnap, z.maxSnap], function(K, fe, rt) {
|
|
11713
11713
|
return K < fe ? fe - K + "px" : K > rt ? rt - K + "px" : "0px";
|
|
11714
11714
|
}), ge = lr([z.y, z.maxSnap], function(K, fe) {
|
|
@@ -11717,15 +11717,15 @@ var Ou = { DRAG: { target: "#overlay.dragging", actions: "onOpenEnd" } }, xu = {
|
|
|
11717
11717
|
if (!fe)
|
|
11718
11718
|
return 0;
|
|
11719
11719
|
var rt = Math.max(fe / 2 - 45, 0);
|
|
11720
|
-
return
|
|
11720
|
+
return ni((K - rt) * (1 / (Math.min(fe / 2 + 45, fe) - rt) + 0), 0, 1);
|
|
11721
11721
|
}), _e = lr([z.y, z.minSnap], function(K, fe) {
|
|
11722
|
-
return fe ?
|
|
11722
|
+
return fe ? ni(K / fe, 0, 1) : 0;
|
|
11723
11723
|
});
|
|
11724
11724
|
return (W = {})["--rsbs-content-opacity"] = ye, W["--rsbs-backdrop-opacity"] = _e, W["--rsbs-antigap-scale-y"] = ge, W["--rsbs-overlay-translate-y"] = de, W["--rsbs-overlay-rounded"] = oe, W["--rsbs-overlay-h"] = we, W;
|
|
11725
11725
|
}({ spring: Le });
|
|
11726
11726
|
return q.createElement(M2.div, Ve({}, k, { "data-rsbs-root": !0, "data-rsbs-state": g4.find(np.matches), "data-rsbs-is-blocking": w, "data-rsbs-is-dismissable": !!d, "data-rsbs-has-header": !!s, "data-rsbs-has-footer": !!o, className: i, ref: Yt, style: Ve({}, rp, C, { opacity: Le.ready }) }), r, w && /* @__PURE__ */ q.createElement("div", Ve({ key: "backdrop", "data-rsbs-backdrop": !0 }, no({ closeOnTap: !0 }))), /* @__PURE__ */ q.createElement("div", { key: "overlay", "aria-modal": "true", role: "dialog", "data-rsbs-overlay": !0, tabIndex: -1, ref: Xn, onKeyDown: function(M) {
|
|
11727
11727
|
M.key === "Escape" && (M.stopPropagation(), d && d());
|
|
11728
|
-
} }, s !== !1 && /* @__PURE__ */ q.createElement("div", Ve({ key: "header", "data-rsbs-header": !0, ref: St }, no()), s), /* @__PURE__ */ q.createElement("div", Ve({ key: "scroll", "data-rsbs-scroll": !0, ref: en }, P ? no({ isContentDragging: !0 }) : {}), /* @__PURE__ */ q.createElement("div", { "data-rsbs-content": !0, ref:
|
|
11728
|
+
} }, s !== !1 && /* @__PURE__ */ q.createElement("div", Ve({ key: "header", "data-rsbs-header": !0, ref: St }, no()), s), /* @__PURE__ */ q.createElement("div", Ve({ key: "scroll", "data-rsbs-scroll": !0, ref: en }, P ? no({ isContentDragging: !0 }) : {}), /* @__PURE__ */ q.createElement("div", { "data-rsbs-content": !0, ref: $r }, n)), o && /* @__PURE__ */ q.createElement("div", Ve({ key: "footer", ref: Xi, "data-rsbs-footer": !0 }, no()), o)));
|
|
11729
11729
|
}), g4 = ["closed", "opening", "open", "closing", "dragging", "snapping", "resizing"];
|
|
11730
11730
|
function v4(t) {
|
|
11731
11731
|
var e = t.lastSnap;
|
|
@@ -12115,7 +12115,7 @@ function Wa(t) {
|
|
|
12115
12115
|
function xh(t, e) {
|
|
12116
12116
|
return Math.max(t + (e || 0) - Date.now(), 0);
|
|
12117
12117
|
}
|
|
12118
|
-
function
|
|
12118
|
+
function yr(t, e) {
|
|
12119
12119
|
return typeof t == "function" ? t(e) : t;
|
|
12120
12120
|
}
|
|
12121
12121
|
function vt(t, e) {
|
|
@@ -12227,13 +12227,13 @@ var Nc = Symbol();
|
|
|
12227
12227
|
function Ph(t, e) {
|
|
12228
12228
|
return !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === Nc ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
|
|
12229
12229
|
}
|
|
12230
|
-
var In, mn,
|
|
12230
|
+
var In, mn, wr, ed, f5 = (ed = class extends Ji {
|
|
12231
12231
|
constructor() {
|
|
12232
12232
|
super();
|
|
12233
12233
|
G(this, In, void 0);
|
|
12234
12234
|
G(this, mn, void 0);
|
|
12235
|
-
G(this,
|
|
12236
|
-
$(this,
|
|
12235
|
+
G(this, wr, void 0);
|
|
12236
|
+
$(this, wr, (e) => {
|
|
12237
12237
|
if (!Kn && window.addEventListener) {
|
|
12238
12238
|
const n = () => e();
|
|
12239
12239
|
return window.addEventListener("visibilitychange", n, !1), () => {
|
|
@@ -12243,7 +12243,7 @@ var In, mn, Sr, ed, f5 = (ed = class extends Ji {
|
|
|
12243
12243
|
});
|
|
12244
12244
|
}
|
|
12245
12245
|
onSubscribe() {
|
|
12246
|
-
x(this, mn) || this.setEventListener(x(this,
|
|
12246
|
+
x(this, mn) || this.setEventListener(x(this, wr));
|
|
12247
12247
|
}
|
|
12248
12248
|
onUnsubscribe() {
|
|
12249
12249
|
var e;
|
|
@@ -12251,7 +12251,7 @@ var In, mn, Sr, ed, f5 = (ed = class extends Ji {
|
|
|
12251
12251
|
}
|
|
12252
12252
|
setEventListener(e) {
|
|
12253
12253
|
var n;
|
|
12254
|
-
$(this,
|
|
12254
|
+
$(this, wr, e), (n = x(this, mn)) == null || n.call(this), $(this, mn, e((r) => {
|
|
12255
12255
|
typeof r == "boolean" ? this.setFocused(r) : this.onFocus();
|
|
12256
12256
|
}));
|
|
12257
12257
|
}
|
|
@@ -12268,13 +12268,13 @@ var In, mn, Sr, ed, f5 = (ed = class extends Ji {
|
|
|
12268
12268
|
var e;
|
|
12269
12269
|
return typeof x(this, In) == "boolean" ? x(this, In) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
|
|
12270
12270
|
}
|
|
12271
|
-
}, In = new WeakMap(), mn = new WeakMap(),
|
|
12271
|
+
}, In = new WeakMap(), mn = new WeakMap(), wr = new WeakMap(), ed), Ic = new f5(), Sr, gn, _r, td, h5 = (td = class extends Ji {
|
|
12272
12272
|
constructor() {
|
|
12273
12273
|
super();
|
|
12274
|
-
G(this,
|
|
12274
|
+
G(this, Sr, !0);
|
|
12275
12275
|
G(this, gn, void 0);
|
|
12276
|
-
G(this,
|
|
12277
|
-
$(this,
|
|
12276
|
+
G(this, _r, void 0);
|
|
12277
|
+
$(this, _r, (e) => {
|
|
12278
12278
|
if (!Kn && window.addEventListener) {
|
|
12279
12279
|
const n = () => e(!0), r = () => e(!1);
|
|
12280
12280
|
return window.addEventListener("online", n, !1), window.addEventListener("offline", r, !1), () => {
|
|
@@ -12284,7 +12284,7 @@ var In, mn, Sr, ed, f5 = (ed = class extends Ji {
|
|
|
12284
12284
|
});
|
|
12285
12285
|
}
|
|
12286
12286
|
onSubscribe() {
|
|
12287
|
-
x(this, gn) || this.setEventListener(x(this,
|
|
12287
|
+
x(this, gn) || this.setEventListener(x(this, _r));
|
|
12288
12288
|
}
|
|
12289
12289
|
onUnsubscribe() {
|
|
12290
12290
|
var e;
|
|
@@ -12292,17 +12292,17 @@ var In, mn, Sr, ed, f5 = (ed = class extends Ji {
|
|
|
12292
12292
|
}
|
|
12293
12293
|
setEventListener(e) {
|
|
12294
12294
|
var n;
|
|
12295
|
-
$(this,
|
|
12295
|
+
$(this, _r, e), (n = x(this, gn)) == null || n.call(this), $(this, gn, e(this.setOnline.bind(this)));
|
|
12296
12296
|
}
|
|
12297
12297
|
setOnline(e) {
|
|
12298
|
-
x(this,
|
|
12298
|
+
x(this, Sr) !== e && ($(this, Sr, e), this.listeners.forEach((r) => {
|
|
12299
12299
|
r(e);
|
|
12300
12300
|
}));
|
|
12301
12301
|
}
|
|
12302
12302
|
isOnline() {
|
|
12303
|
-
return x(this,
|
|
12303
|
+
return x(this, Sr);
|
|
12304
12304
|
}
|
|
12305
|
-
},
|
|
12305
|
+
}, Sr = new WeakMap(), gn = new WeakMap(), _r = new WeakMap(), td), vs = new h5();
|
|
12306
12306
|
function Ja() {
|
|
12307
12307
|
let t, e;
|
|
12308
12308
|
const n = new Promise((i, o) => {
|
|
@@ -12476,17 +12476,17 @@ var Ne = m5(), Fn, nd, kh = (nd = class {
|
|
|
12476
12476
|
clearGcTimeout() {
|
|
12477
12477
|
x(this, Fn) && (clearTimeout(x(this, Fn)), $(this, Fn, void 0));
|
|
12478
12478
|
}
|
|
12479
|
-
}, Fn = new WeakMap(), nd),
|
|
12479
|
+
}, Fn = new WeakMap(), nd), Cr, Er, it, Be, Di, jn, gt, $t, rd, g5 = (rd = class extends kh {
|
|
12480
12480
|
constructor(e) {
|
|
12481
12481
|
super();
|
|
12482
12482
|
G(this, gt);
|
|
12483
|
+
G(this, Cr, void 0);
|
|
12483
12484
|
G(this, Er, void 0);
|
|
12484
|
-
G(this, Or, void 0);
|
|
12485
12485
|
G(this, it, void 0);
|
|
12486
12486
|
G(this, Be, void 0);
|
|
12487
12487
|
G(this, Di, void 0);
|
|
12488
12488
|
G(this, jn, void 0);
|
|
12489
|
-
$(this, jn, !1), $(this, Di, e.defaultOptions), this.setOptions(e.options), this.observers = [], $(this, it, e.cache), this.queryKey = e.queryKey, this.queryHash = e.queryHash, $(this,
|
|
12489
|
+
$(this, jn, !1), $(this, Di, e.defaultOptions), this.setOptions(e.options), this.observers = [], $(this, it, e.cache), this.queryKey = e.queryKey, this.queryHash = e.queryHash, $(this, Cr, v5(this.options)), this.state = e.state ?? x(this, Cr), this.scheduleGc();
|
|
12490
12490
|
}
|
|
12491
12491
|
get meta() {
|
|
12492
12492
|
return this.options.meta;
|
|
@@ -12522,7 +12522,7 @@ var Ne = m5(), Fn, nd, kh = (nd = class {
|
|
|
12522
12522
|
super.destroy(), this.cancel({ silent: !0 });
|
|
12523
12523
|
}
|
|
12524
12524
|
reset() {
|
|
12525
|
-
this.destroy(), this.setState(x(this,
|
|
12525
|
+
this.destroy(), this.setState(x(this, Cr));
|
|
12526
12526
|
}
|
|
12527
12527
|
isActive() {
|
|
12528
12528
|
return this.observers.some(
|
|
@@ -12599,7 +12599,7 @@ var Ne = m5(), Fn, nd, kh = (nd = class {
|
|
|
12599
12599
|
i(s), (c = this.options.behavior) == null || c.onFetch(
|
|
12600
12600
|
s,
|
|
12601
12601
|
this
|
|
12602
|
-
), $(this,
|
|
12602
|
+
), $(this, Er, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((l = s.fetchOptions) == null ? void 0 : l.meta)) && Y(this, gt, $t).call(this, { type: "fetch", meta: (u = s.fetchOptions) == null ? void 0 : u.meta });
|
|
12603
12603
|
const a = (d) => {
|
|
12604
12604
|
var h, g, p, f;
|
|
12605
12605
|
aa(d) && d.silent || Y(this, gt, $t).call(this, {
|
|
@@ -12655,7 +12655,7 @@ var Ne = m5(), Fn, nd, kh = (nd = class {
|
|
|
12655
12655
|
canRun: () => !0
|
|
12656
12656
|
})), x(this, Be).start();
|
|
12657
12657
|
}
|
|
12658
|
-
},
|
|
12658
|
+
}, Cr = new WeakMap(), Er = new WeakMap(), it = new WeakMap(), Be = new WeakMap(), Di = new WeakMap(), jn = new WeakMap(), gt = new WeakSet(), $t = function(e) {
|
|
12659
12659
|
const n = (r) => {
|
|
12660
12660
|
switch (e.type) {
|
|
12661
12661
|
case "failed":
|
|
@@ -12697,7 +12697,7 @@ var Ne = m5(), Fn, nd, kh = (nd = class {
|
|
|
12697
12697
|
};
|
|
12698
12698
|
case "error":
|
|
12699
12699
|
const i = e.error;
|
|
12700
|
-
return aa(i) && i.revert && x(this,
|
|
12700
|
+
return aa(i) && i.revert && x(this, Er) ? { ...x(this, Er), fetchStatus: "idle" } : {
|
|
12701
12701
|
...r,
|
|
12702
12702
|
error: i,
|
|
12703
12703
|
errorUpdateCount: r.errorUpdateCount + 1,
|
|
@@ -13181,28 +13181,28 @@ function _5(t, { pages: e, pageParams: n }) {
|
|
|
13181
13181
|
var r;
|
|
13182
13182
|
return e.length > 0 ? (r = t.getPreviousPageParam) == null ? void 0 : r.call(t, e[0], e, n[0], n) : void 0;
|
|
13183
13183
|
}
|
|
13184
|
-
var Oe, vn, yn,
|
|
13184
|
+
var Oe, vn, yn, Or, xr, bn, Tr, Pr, ad, Dh = (ad = class {
|
|
13185
13185
|
constructor(t = {}) {
|
|
13186
13186
|
G(this, Oe, void 0);
|
|
13187
13187
|
G(this, vn, void 0);
|
|
13188
13188
|
G(this, yn, void 0);
|
|
13189
|
+
G(this, Or, void 0);
|
|
13189
13190
|
G(this, xr, void 0);
|
|
13190
|
-
G(this, Tr, void 0);
|
|
13191
13191
|
G(this, bn, void 0);
|
|
13192
|
+
G(this, Tr, void 0);
|
|
13192
13193
|
G(this, Pr, void 0);
|
|
13193
|
-
|
|
13194
|
-
$(this, Oe, t.queryCache || new y5()), $(this, vn, t.mutationCache || new S5()), $(this, yn, t.defaultOptions || {}), $(this, xr, /* @__PURE__ */ new Map()), $(this, Tr, /* @__PURE__ */ new Map()), $(this, bn, 0);
|
|
13194
|
+
$(this, Oe, t.queryCache || new y5()), $(this, vn, t.mutationCache || new S5()), $(this, yn, t.defaultOptions || {}), $(this, Or, /* @__PURE__ */ new Map()), $(this, xr, /* @__PURE__ */ new Map()), $(this, bn, 0);
|
|
13195
13195
|
}
|
|
13196
13196
|
mount() {
|
|
13197
|
-
ao(this, bn)._++, x(this, bn) === 1 && ($(this,
|
|
13197
|
+
ao(this, bn)._++, x(this, bn) === 1 && ($(this, Tr, Ic.subscribe(async (t) => {
|
|
13198
13198
|
t && (await this.resumePausedMutations(), x(this, Oe).onFocus());
|
|
13199
|
-
})), $(this,
|
|
13199
|
+
})), $(this, Pr, vs.subscribe(async (t) => {
|
|
13200
13200
|
t && (await this.resumePausedMutations(), x(this, Oe).onOnline());
|
|
13201
13201
|
})));
|
|
13202
13202
|
}
|
|
13203
13203
|
unmount() {
|
|
13204
13204
|
var t, e;
|
|
13205
|
-
ao(this, bn)._--, x(this, bn) === 0 && ((t = x(this,
|
|
13205
|
+
ao(this, bn)._--, x(this, bn) === 0 && ((t = x(this, Tr)) == null || t.call(this), $(this, Tr, void 0), (e = x(this, Pr)) == null || e.call(this), $(this, Pr, void 0));
|
|
13206
13206
|
}
|
|
13207
13207
|
isFetching(t) {
|
|
13208
13208
|
return x(this, Oe).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
@@ -13221,7 +13221,7 @@ var Oe, vn, yn, xr, Tr, bn, Pr, Ar, ad, Dh = (ad = class {
|
|
|
13221
13221
|
return this.fetchQuery(t);
|
|
13222
13222
|
{
|
|
13223
13223
|
const n = this.defaultQueryOptions(t), r = x(this, Oe).build(this, n);
|
|
13224
|
-
return t.revalidateIfStale && r.isStaleByTime(
|
|
13224
|
+
return t.revalidateIfStale && r.isStaleByTime(yr(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(e);
|
|
13225
13225
|
}
|
|
13226
13226
|
}
|
|
13227
13227
|
getQueriesData(t) {
|
|
@@ -13303,7 +13303,7 @@ var Oe, vn, yn, xr, Tr, bn, Pr, Ar, ad, Dh = (ad = class {
|
|
|
13303
13303
|
e.retry === void 0 && (e.retry = !1);
|
|
13304
13304
|
const n = x(this, Oe).build(this, e);
|
|
13305
13305
|
return n.isStaleByTime(
|
|
13306
|
-
|
|
13306
|
+
yr(e.staleTime, n)
|
|
13307
13307
|
) ? n.fetch(e) : Promise.resolve(n.state.data);
|
|
13308
13308
|
}
|
|
13309
13309
|
prefetchQuery(t) {
|
|
@@ -13334,26 +13334,26 @@ var Oe, vn, yn, xr, Tr, bn, Pr, Ar, ad, Dh = (ad = class {
|
|
|
13334
13334
|
$(this, yn, t);
|
|
13335
13335
|
}
|
|
13336
13336
|
setQueryDefaults(t, e) {
|
|
13337
|
-
x(this,
|
|
13337
|
+
x(this, Or).set(ki(t), {
|
|
13338
13338
|
queryKey: t,
|
|
13339
13339
|
defaultOptions: e
|
|
13340
13340
|
});
|
|
13341
13341
|
}
|
|
13342
13342
|
getQueryDefaults(t) {
|
|
13343
|
-
const e = [...x(this,
|
|
13343
|
+
const e = [...x(this, Or).values()];
|
|
13344
13344
|
let n = {};
|
|
13345
13345
|
return e.forEach((r) => {
|
|
13346
13346
|
Mi(t, r.queryKey) && (n = { ...n, ...r.defaultOptions });
|
|
13347
13347
|
}), n;
|
|
13348
13348
|
}
|
|
13349
13349
|
setMutationDefaults(t, e) {
|
|
13350
|
-
x(this,
|
|
13350
|
+
x(this, xr).set(ki(t), {
|
|
13351
13351
|
mutationKey: t,
|
|
13352
13352
|
defaultOptions: e
|
|
13353
13353
|
});
|
|
13354
13354
|
}
|
|
13355
13355
|
getMutationDefaults(t) {
|
|
13356
|
-
const e = [...x(this,
|
|
13356
|
+
const e = [...x(this, xr).values()];
|
|
13357
13357
|
let n = {};
|
|
13358
13358
|
return e.forEach((r) => {
|
|
13359
13359
|
Mi(t, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
|
|
@@ -13384,7 +13384,7 @@ var Oe, vn, yn, xr, Tr, bn, Pr, Ar, ad, Dh = (ad = class {
|
|
|
13384
13384
|
clear() {
|
|
13385
13385
|
x(this, Oe).clear(), x(this, vn).clear();
|
|
13386
13386
|
}
|
|
13387
|
-
}, Oe = new WeakMap(), vn = new WeakMap(), yn = new WeakMap(),
|
|
13387
|
+
}, Oe = new WeakMap(), vn = new WeakMap(), yn = new WeakMap(), Or = new WeakMap(), xr = new WeakMap(), bn = new WeakMap(), Tr = new WeakMap(), Pr = new WeakMap(), ad), Ke, ee, Ii, qe, Vn, Ar, wn, Pt, Fi, Lr, Rr, Hn, Un, Sn, kr, $n, fi, ji, Xa, Bi, Ya, Vi, ec, Hi, tc, Ui, nc, $i, rc, zi, ic, bs, Nh, cd, C5 = (cd = class extends Ji {
|
|
13388
13388
|
constructor(e, n) {
|
|
13389
13389
|
super();
|
|
13390
13390
|
G(this, $n);
|
|
@@ -13401,18 +13401,18 @@ var Oe, vn, yn, xr, Tr, bn, Pr, Ar, ad, Dh = (ad = class {
|
|
|
13401
13401
|
G(this, Ii, void 0);
|
|
13402
13402
|
G(this, qe, void 0);
|
|
13403
13403
|
G(this, Vn, void 0);
|
|
13404
|
-
G(this,
|
|
13404
|
+
G(this, Ar, void 0);
|
|
13405
13405
|
G(this, wn, void 0);
|
|
13406
13406
|
G(this, Pt, void 0);
|
|
13407
13407
|
G(this, Fi, void 0);
|
|
13408
|
-
G(this,
|
|
13408
|
+
G(this, Lr, void 0);
|
|
13409
13409
|
// This property keeps track of the last query with defined data.
|
|
13410
13410
|
// It will be used to pass the previous data and query to the placeholder function between renders.
|
|
13411
|
-
G(this,
|
|
13411
|
+
G(this, Rr, void 0);
|
|
13412
13412
|
G(this, Hn, void 0);
|
|
13413
13413
|
G(this, Un, void 0);
|
|
13414
13414
|
G(this, Sn, void 0);
|
|
13415
|
-
G(this,
|
|
13415
|
+
G(this, kr, /* @__PURE__ */ new Set());
|
|
13416
13416
|
this.options = n, $(this, Ke, e), $(this, Pt, null), $(this, wn, Ja()), this.options.experimental_prefetchInRender || x(this, wn).reject(
|
|
13417
13417
|
new Error("experimental_prefetchInRender feature flag is not enabled")
|
|
13418
13418
|
), this.bindMethods(), this.setOptions(n);
|
|
@@ -13460,13 +13460,13 @@ var Oe, vn, yn, xr, Tr, bn, Pr, Ar, ad, Dh = (ad = class {
|
|
|
13460
13460
|
i,
|
|
13461
13461
|
this.options,
|
|
13462
13462
|
r
|
|
13463
|
-
) && Y(this, $n, fi).call(this), this.updateResult(n), o && (x(this, ee) !== i || vt(this.options.enabled, x(this, ee)) !== vt(r.enabled, x(this, ee)) ||
|
|
13463
|
+
) && Y(this, $n, fi).call(this), this.updateResult(n), o && (x(this, ee) !== i || vt(this.options.enabled, x(this, ee)) !== vt(r.enabled, x(this, ee)) || yr(this.options.staleTime, x(this, ee)) !== yr(r.staleTime, x(this, ee))) && Y(this, ji, Xa).call(this);
|
|
13464
13464
|
const s = Y(this, Bi, Ya).call(this);
|
|
13465
13465
|
o && (x(this, ee) !== i || vt(this.options.enabled, x(this, ee)) !== vt(r.enabled, x(this, ee)) || s !== x(this, Sn)) && Y(this, Vi, ec).call(this, s);
|
|
13466
13466
|
}
|
|
13467
13467
|
getOptimisticResult(e) {
|
|
13468
13468
|
const n = x(this, Ke).getQueryCache().build(x(this, Ke), e), r = this.createResult(n, e);
|
|
13469
|
-
return O5(this, r) && ($(this, qe, r), $(this,
|
|
13469
|
+
return O5(this, r) && ($(this, qe, r), $(this, Ar, this.options), $(this, Vn, x(this, ee).state)), r;
|
|
13470
13470
|
}
|
|
13471
13471
|
getCurrentResult() {
|
|
13472
13472
|
return x(this, qe);
|
|
@@ -13482,7 +13482,7 @@ var Oe, vn, yn, xr, Tr, bn, Pr, Ar, ad, Dh = (ad = class {
|
|
|
13482
13482
|
}), r;
|
|
13483
13483
|
}
|
|
13484
13484
|
trackProp(e) {
|
|
13485
|
-
x(this,
|
|
13485
|
+
x(this, kr).add(e);
|
|
13486
13486
|
}
|
|
13487
13487
|
getCurrentQuery() {
|
|
13488
13488
|
return x(this, ee);
|
|
@@ -13504,7 +13504,7 @@ var Oe, vn, yn, xr, Tr, bn, Pr, Ar, ad, Dh = (ad = class {
|
|
|
13504
13504
|
}
|
|
13505
13505
|
createResult(e, n) {
|
|
13506
13506
|
var O;
|
|
13507
|
-
const r = x(this, ee), i = this.options, o = x(this, qe), s = x(this, Vn), a = x(this,
|
|
13507
|
+
const r = x(this, ee), i = this.options, o = x(this, qe), s = x(this, Vn), a = x(this, Ar), l = e !== r ? e.state : x(this, Ii), { state: u } = e;
|
|
13508
13508
|
let d = { ...u }, h = !1, g;
|
|
13509
13509
|
if (n._optimisticResults) {
|
|
13510
13510
|
const T = this.hasListeners(), A = !T && Mu(e, n), L = T && Du(e, r, n, i);
|
|
@@ -13516,10 +13516,10 @@ var Oe, vn, yn, xr, Tr, bn, Pr, Ar, ad, Dh = (ad = class {
|
|
|
13516
13516
|
let { error: p, errorUpdatedAt: f, status: b } = d;
|
|
13517
13517
|
if (n.select && d.data !== void 0)
|
|
13518
13518
|
if (o && d.data === (s == null ? void 0 : s.data) && n.select === x(this, Fi))
|
|
13519
|
-
g = x(this,
|
|
13519
|
+
g = x(this, Lr);
|
|
13520
13520
|
else
|
|
13521
13521
|
try {
|
|
13522
|
-
$(this, Fi, n.select), g = n.select(d.data), g = Qa(o == null ? void 0 : o.data, g, n), $(this,
|
|
13522
|
+
$(this, Fi, n.select), g = n.select(d.data), g = Qa(o == null ? void 0 : o.data, g, n), $(this, Lr, g), $(this, Pt, null);
|
|
13523
13523
|
} catch (T) {
|
|
13524
13524
|
$(this, Pt, T);
|
|
13525
13525
|
}
|
|
@@ -13530,8 +13530,8 @@ var Oe, vn, yn, xr, Tr, bn, Pr, Ar, ad, Dh = (ad = class {
|
|
|
13530
13530
|
if (o != null && o.isPlaceholderData && n.placeholderData === (a == null ? void 0 : a.placeholderData))
|
|
13531
13531
|
T = o.data;
|
|
13532
13532
|
else if (T = typeof n.placeholderData == "function" ? n.placeholderData(
|
|
13533
|
-
(O = x(this,
|
|
13534
|
-
x(this,
|
|
13533
|
+
(O = x(this, Rr)) == null ? void 0 : O.state.data,
|
|
13534
|
+
x(this, Rr)
|
|
13535
13535
|
) : n.placeholderData, n.select && T !== void 0)
|
|
13536
13536
|
try {
|
|
13537
13537
|
T = n.select(T), $(this, Pt, null);
|
|
@@ -13544,7 +13544,7 @@ var Oe, vn, yn, xr, Tr, bn, Pr, Ar, ad, Dh = (ad = class {
|
|
|
13544
13544
|
n
|
|
13545
13545
|
), h = !0);
|
|
13546
13546
|
}
|
|
13547
|
-
x(this, Pt) && (p = x(this, Pt), g = x(this,
|
|
13547
|
+
x(this, Pt) && (p = x(this, Pt), g = x(this, Lr), f = Date.now(), b = "error");
|
|
13548
13548
|
const v = d.fetchStatus === "fetching", w = b === "pending", y = b === "error", _ = w && v, C = g !== void 0, S = {
|
|
13549
13549
|
status: b,
|
|
13550
13550
|
fetchStatus: d.fetchStatus,
|
|
@@ -13595,17 +13595,17 @@ var Oe, vn, yn, xr, Tr, bn, Pr, Ar, ad, Dh = (ad = class {
|
|
|
13595
13595
|
}
|
|
13596
13596
|
updateResult(e) {
|
|
13597
13597
|
const n = x(this, qe), r = this.createResult(x(this, ee), this.options);
|
|
13598
|
-
if ($(this, Vn, x(this, ee).state), $(this,
|
|
13598
|
+
if ($(this, Vn, x(this, ee).state), $(this, Ar, this.options), x(this, Vn).data !== void 0 && $(this, Rr, x(this, ee)), Za(r, n))
|
|
13599
13599
|
return;
|
|
13600
13600
|
$(this, qe, r);
|
|
13601
13601
|
const i = {}, o = () => {
|
|
13602
13602
|
if (!n)
|
|
13603
13603
|
return !0;
|
|
13604
13604
|
const { notifyOnChangeProps: s } = this.options, a = typeof s == "function" ? s() : s;
|
|
13605
|
-
if (a === "all" || !a && !x(this,
|
|
13605
|
+
if (a === "all" || !a && !x(this, kr).size)
|
|
13606
13606
|
return !0;
|
|
13607
13607
|
const c = new Set(
|
|
13608
|
-
a ?? x(this,
|
|
13608
|
+
a ?? x(this, kr)
|
|
13609
13609
|
);
|
|
13610
13610
|
return this.options.throwOnError && c.add("error"), Object.keys(x(this, qe)).some((l) => {
|
|
13611
13611
|
const u = l;
|
|
@@ -13617,7 +13617,7 @@ var Oe, vn, yn, xr, Tr, bn, Pr, Ar, ad, Dh = (ad = class {
|
|
|
13617
13617
|
onQueryUpdate() {
|
|
13618
13618
|
this.updateResult(), this.hasListeners() && Y(this, Hi, tc).call(this);
|
|
13619
13619
|
}
|
|
13620
|
-
}, Ke = new WeakMap(), ee = new WeakMap(), Ii = new WeakMap(), qe = new WeakMap(), Vn = new WeakMap(),
|
|
13620
|
+
}, Ke = new WeakMap(), ee = new WeakMap(), Ii = new WeakMap(), qe = new WeakMap(), Vn = new WeakMap(), Ar = new WeakMap(), wn = new WeakMap(), Pt = new WeakMap(), Fi = new WeakMap(), Lr = new WeakMap(), Rr = new WeakMap(), Hn = new WeakMap(), Un = new WeakMap(), Sn = new WeakMap(), kr = new WeakMap(), $n = new WeakSet(), fi = function(e) {
|
|
13621
13621
|
Y(this, zi, ic).call(this);
|
|
13622
13622
|
let n = x(this, ee).fetch(
|
|
13623
13623
|
this.options,
|
|
@@ -13626,7 +13626,7 @@ var Oe, vn, yn, xr, Tr, bn, Pr, Ar, ad, Dh = (ad = class {
|
|
|
13626
13626
|
return e != null && e.throwOnError || (n = n.catch(st)), n;
|
|
13627
13627
|
}, ji = new WeakSet(), Xa = function() {
|
|
13628
13628
|
Y(this, Ui, nc).call(this);
|
|
13629
|
-
const e =
|
|
13629
|
+
const e = yr(
|
|
13630
13630
|
this.options.staleTime,
|
|
13631
13631
|
x(this, ee)
|
|
13632
13632
|
);
|
|
@@ -13681,7 +13681,7 @@ function Du(t, e, n, r) {
|
|
|
13681
13681
|
return (t !== e || vt(r.enabled, t) === !1) && (!n.suspense || t.state.status !== "error") && Fc(t, n);
|
|
13682
13682
|
}
|
|
13683
13683
|
function Fc(t, e) {
|
|
13684
|
-
return vt(e.enabled, t) !== !1 && t.isStaleByTime(
|
|
13684
|
+
return vt(e.enabled, t) !== !1 && t.isStaleByTime(yr(e.staleTime, t));
|
|
13685
13685
|
}
|
|
13686
13686
|
function O5(t, e) {
|
|
13687
13687
|
return !Za(t.getCurrentResult(), e);
|
|
@@ -13898,7 +13898,7 @@ function tb(t, e, n) {
|
|
|
13898
13898
|
return !1;
|
|
13899
13899
|
return !0;
|
|
13900
13900
|
}
|
|
13901
|
-
function
|
|
13901
|
+
function ri(t, e, n) {
|
|
13902
13902
|
var r = Fu(t), i = r.length;
|
|
13903
13903
|
if (Fu(e).length !== i)
|
|
13904
13904
|
return !1;
|
|
@@ -14010,17 +14010,17 @@ function bb(t) {
|
|
|
14010
14010
|
}
|
|
14011
14011
|
function wb(t) {
|
|
14012
14012
|
var e = t.circular, n = t.createCustomConfig, r = t.strict, i = {
|
|
14013
|
-
areArraysEqual: r ?
|
|
14013
|
+
areArraysEqual: r ? ri : Q5,
|
|
14014
14014
|
areDatesEqual: J5,
|
|
14015
14015
|
areErrorsEqual: X5,
|
|
14016
14016
|
areFunctionsEqual: Y5,
|
|
14017
|
-
areMapsEqual: r ? Iu(Vu,
|
|
14017
|
+
areMapsEqual: r ? Iu(Vu, ri) : Vu,
|
|
14018
14018
|
areNumbersEqual: eb,
|
|
14019
|
-
areObjectsEqual: r ?
|
|
14019
|
+
areObjectsEqual: r ? ri : tb,
|
|
14020
14020
|
arePrimitiveWrappersEqual: nb,
|
|
14021
14021
|
areRegExpsEqual: rb,
|
|
14022
|
-
areSetsEqual: r ? Iu(Hu,
|
|
14023
|
-
areTypedArraysEqual: r ?
|
|
14022
|
+
areSetsEqual: r ? Iu(Hu, ri) : Hu,
|
|
14023
|
+
areTypedArraysEqual: r ? ri : ib,
|
|
14024
14024
|
areUrlsEqual: ob,
|
|
14025
14025
|
unknownTagComparators: void 0
|
|
14026
14026
|
};
|
|
@@ -14117,7 +14117,7 @@ const qu = [
|
|
|
14117
14117
|
Uint32Array,
|
|
14118
14118
|
Float32Array,
|
|
14119
14119
|
Float64Array
|
|
14120
|
-
], ca = 1,
|
|
14120
|
+
], ca = 1, ii = 8;
|
|
14121
14121
|
class jc {
|
|
14122
14122
|
/**
|
|
14123
14123
|
* Creates an index from raw `ArrayBuffer` data.
|
|
@@ -14152,7 +14152,7 @@ class jc {
|
|
|
14152
14152
|
const o = qu.indexOf(this.ArrayType), s = e * 2 * this.ArrayType.BYTES_PER_ELEMENT, a = e * this.IndexArrayType.BYTES_PER_ELEMENT, c = (8 - a % 8) % 8;
|
|
14153
14153
|
if (o < 0)
|
|
14154
14154
|
throw new Error(`Unexpected typed array class: ${r}.`);
|
|
14155
|
-
i && i instanceof ArrayBuffer ? (this.data = i, this.ids = new this.IndexArrayType(this.data,
|
|
14155
|
+
i && i instanceof ArrayBuffer ? (this.data = i, this.ids = new this.IndexArrayType(this.data, ii, e), this.coords = new this.ArrayType(this.data, ii + a + c, e * 2), this._pos = e * 2, this._finished = !0) : (this.data = new ArrayBuffer(ii + s + a + c), this.ids = new this.IndexArrayType(this.data, ii, e), this.coords = new this.ArrayType(this.data, ii + a + c, e * 2), this._pos = 0, this._finished = !1, new Uint8Array(this.data, 0, 2).set([219, (ca << 4) + o]), new Uint16Array(this.data, 2, 1)[0] = n, new Uint32Array(this.data, 4, 1)[0] = e);
|
|
14156
14156
|
}
|
|
14157
14157
|
/**
|
|
14158
14158
|
* Add a point to the index.
|
|
@@ -14237,16 +14237,16 @@ function Hh(t, e, n, r, i, o) {
|
|
|
14237
14237
|
}
|
|
14238
14238
|
const s = e[2 * n + o];
|
|
14239
14239
|
let a = r, c = i;
|
|
14240
|
-
for (
|
|
14241
|
-
for (
|
|
14240
|
+
for (oi(t, e, r, n), e[2 * i + o] > s && oi(t, e, r, i); a < c; ) {
|
|
14241
|
+
for (oi(t, e, a, c), a++, c--; e[2 * a + o] < s; )
|
|
14242
14242
|
a++;
|
|
14243
14243
|
for (; e[2 * c + o] > s; )
|
|
14244
14244
|
c--;
|
|
14245
14245
|
}
|
|
14246
|
-
e[2 * r + o] === s ?
|
|
14246
|
+
e[2 * r + o] === s ? oi(t, e, r, c) : (c++, oi(t, e, c, i)), c <= n && (r = c + 1), n <= c && (i = c - 1);
|
|
14247
14247
|
}
|
|
14248
14248
|
}
|
|
14249
|
-
function
|
|
14249
|
+
function oi(t, e, n, r) {
|
|
14250
14250
|
la(t, n, r), la(e, 2 * n, 2 * r), la(e, 2 * n + 1, 2 * r + 1);
|
|
14251
14251
|
}
|
|
14252
14252
|
function la(t, e, n) {
|
|
@@ -14876,7 +14876,7 @@ const Ib = "LocationBalloon-module__root__GtUl6q", Fb = "LocationBalloon-module_
|
|
|
14876
14876
|
u ? /* @__PURE__ */ E(et, { circle: !0, width: 40, height: 40 }) : /* @__PURE__ */ E("div", { className: Et.icon, children: /* @__PURE__ */ E(p, {}) }),
|
|
14877
14877
|
u ? /* @__PURE__ */ E(et, { width: 200 }) : /* @__PURE__ */ E("span", { className: Et.title, children: o || "{{ properties.point.name }}" })
|
|
14878
14878
|
] }),
|
|
14879
|
-
/* @__PURE__ */ E("div", { className: Et.close, children: /* @__PURE__ */ E(
|
|
14879
|
+
/* @__PURE__ */ E("div", { className: Et.close, children: /* @__PURE__ */ E(Hr, { position: "relative", onClick: s }) })
|
|
14880
14880
|
] }),
|
|
14881
14881
|
/* @__PURE__ */ I("div", { className: Et.description, children: [
|
|
14882
14882
|
u ? /* @__PURE__ */ E(et, { width: 300 }) : (r == null ? void 0 : r.full_address) || "{{ properties.point.location.full_address }}",
|
|
@@ -15094,7 +15094,7 @@ const Ib = "LocationBalloon-module__root__GtUl6q", Fb = "LocationBalloon-module_
|
|
|
15094
15094
|
/* @__PURE__ */ I("div", { className: Ht.header, children: [
|
|
15095
15095
|
/* @__PURE__ */ E(zh, { className: Ht.logo }),
|
|
15096
15096
|
/* @__PURE__ */ E("span", { className: Ht.title, children: h ? f : p }),
|
|
15097
|
-
r && /* @__PURE__ */ E(
|
|
15097
|
+
r && /* @__PURE__ */ E(Hr, { onClick: o })
|
|
15098
15098
|
] }),
|
|
15099
15099
|
/* @__PURE__ */ E("div", { className: Ht.description, children: h ? b : e || "{{ properties.address }}" }),
|
|
15100
15100
|
g && (!i || l) && /* @__PURE__ */ E("div", { className: Ht.actions, children: /* @__PURE__ */ E(
|
|
@@ -15202,7 +15202,7 @@ const Ib = "LocationBalloon-module__root__GtUl6q", Fb = "LocationBalloon-module_
|
|
|
15202
15202
|
g(!0);
|
|
15203
15203
|
try {
|
|
15204
15204
|
Lt(n.address, "Address is required");
|
|
15205
|
-
const S = await
|
|
15205
|
+
const S = await c9({
|
|
15206
15206
|
address: n.address,
|
|
15207
15207
|
algorithm: 10,
|
|
15208
15208
|
service: 10,
|
|
@@ -15229,7 +15229,7 @@ const Ib = "LocationBalloon-module__root__GtUl6q", Fb = "LocationBalloon-module_
|
|
|
15229
15229
|
}, _ = ys(c == null ? void 0 : c.apartment), C = ys(c == null ? void 0 : c.comment);
|
|
15230
15230
|
return /* @__PURE__ */ I(Nt, { children: [
|
|
15231
15231
|
/* @__PURE__ */ I("div", { className: ne(Ze.header, t == null ? void 0 : t.header), children: [
|
|
15232
|
-
/* @__PURE__ */ E(
|
|
15232
|
+
/* @__PURE__ */ E(Hr, { onClick: i }),
|
|
15233
15233
|
/* @__PURE__ */ I("div", { className: Ze.title, children: [
|
|
15234
15234
|
/* @__PURE__ */ E(zh, { className: Ze.logo }),
|
|
15235
15235
|
/* @__PURE__ */ E("span", { children: u("title", { ns: "courier_balloon" }) })
|
|
@@ -15984,7 +15984,7 @@ const nw = {
|
|
|
15984
15984
|
] });
|
|
15985
15985
|
}, _w = dt(Sw), Cw = {
|
|
15986
15986
|
open: !1
|
|
15987
|
-
},
|
|
15987
|
+
}, jr = Xt((t) => ({
|
|
15988
15988
|
...Cw,
|
|
15989
15989
|
toggle(e) {
|
|
15990
15990
|
se.getState().setDetailsOpen(!1), Ie.getState().setDeliverPoint(null), ut.getState().setSelectedLocation(null), t((n) => ({ open: e ?? !n.open }));
|
|
@@ -15995,7 +15995,7 @@ const nw = {
|
|
|
15995
15995
|
sidebarHidden: xw,
|
|
15996
15996
|
sidebarOpen: Tw
|
|
15997
15997
|
}, Pw = ({ children: t }) => {
|
|
15998
|
-
const { hideFilters: e, hideHeader: n } = Ae(), r =
|
|
15998
|
+
const { hideFilters: e, hideHeader: n } = Ae(), r = jr((i) => i.open);
|
|
15999
15999
|
return /* @__PURE__ */ E(
|
|
16000
16000
|
"div",
|
|
16001
16001
|
{
|
|
@@ -16026,73 +16026,70 @@ const nw = {
|
|
|
16026
16026
|
/* @__PURE__ */ E("div", { className: jo.container, children: t })
|
|
16027
16027
|
]
|
|
16028
16028
|
}
|
|
16029
|
-
), Nw = "Input-module__locationSearchRoot__svh-f9", Iw = "Input-
|
|
16029
|
+
), Nw = "Input-module__locationSearchRoot__svh-f9", Iw = "Input-module__label__gmqtsf", Fw = "Input-module__inputContainer__vubIa-", jw = "Input-module__locationSearchInput__2YK1MG", Bw = "Input-module__endAdornment__m40K5R", si = {
|
|
16030
16030
|
locationSearchRoot: Nw,
|
|
16031
|
-
|
|
16032
|
-
|
|
16033
|
-
|
|
16034
|
-
|
|
16035
|
-
|
|
16036
|
-
|
|
16037
|
-
|
|
16038
|
-
({ className: t, endAdornment: e, inputRef: n, label: r, onBlur: i, onChange: o, startAdornment: s, ...a }, c) => {
|
|
16039
|
-
const l = ld(), u = H(null);
|
|
16031
|
+
label: Iw,
|
|
16032
|
+
inputContainer: Fw,
|
|
16033
|
+
locationSearchInput: jw,
|
|
16034
|
+
endAdornment: Bw
|
|
16035
|
+
}, Vw = xn(
|
|
16036
|
+
({ className: t, endAdornment: e, inputRef: n, label: r, onBlur: i, onChange: o, ...s }, a) => {
|
|
16037
|
+
const c = ld(), l = H(null);
|
|
16040
16038
|
Jt(
|
|
16041
|
-
|
|
16039
|
+
a,
|
|
16042
16040
|
() => ({
|
|
16043
16041
|
focus: () => {
|
|
16044
|
-
var
|
|
16045
|
-
(
|
|
16042
|
+
var d;
|
|
16043
|
+
(d = l.current) == null || d.focus();
|
|
16046
16044
|
},
|
|
16047
16045
|
blur: () => {
|
|
16048
|
-
var
|
|
16049
|
-
(
|
|
16046
|
+
var d;
|
|
16047
|
+
(d = l.current) == null || d.blur();
|
|
16050
16048
|
},
|
|
16051
|
-
setValue: (
|
|
16049
|
+
setValue: (d) => {
|
|
16052
16050
|
if (o) {
|
|
16053
|
-
o({ target: { value:
|
|
16051
|
+
o({ target: { value: d } });
|
|
16054
16052
|
return;
|
|
16055
16053
|
}
|
|
16056
16054
|
if (i) {
|
|
16057
|
-
i({ target: { value:
|
|
16055
|
+
i({ target: { value: d } });
|
|
16058
16056
|
return;
|
|
16059
16057
|
}
|
|
16060
|
-
|
|
16058
|
+
l.current && (l.current.value = d);
|
|
16061
16059
|
}
|
|
16062
16060
|
}),
|
|
16063
16061
|
[i, o]
|
|
16064
16062
|
);
|
|
16065
|
-
const
|
|
16066
|
-
return /* @__PURE__ */ I("label", { htmlFor:
|
|
16067
|
-
r && /* @__PURE__ */ E("span", { className:
|
|
16068
|
-
/* @__PURE__ */ I("div", { className:
|
|
16069
|
-
s && /* @__PURE__ */ E("div", { className: fr.startAdornment, children: s }),
|
|
16063
|
+
const u = Kh(n, l);
|
|
16064
|
+
return /* @__PURE__ */ I("label", { htmlFor: s.id ?? c, className: ne(si.locationSearchRoot, t), children: [
|
|
16065
|
+
r && /* @__PURE__ */ E("span", { className: si.label, children: r }),
|
|
16066
|
+
/* @__PURE__ */ I("div", { className: si.inputContainer, children: [
|
|
16070
16067
|
/* @__PURE__ */ E(
|
|
16071
16068
|
"input",
|
|
16072
16069
|
{
|
|
16073
|
-
...
|
|
16074
|
-
ref:
|
|
16075
|
-
id:
|
|
16076
|
-
className:
|
|
16070
|
+
...s,
|
|
16071
|
+
ref: u,
|
|
16072
|
+
id: s.id ?? c,
|
|
16073
|
+
className: si.locationSearchInput,
|
|
16077
16074
|
onChange: o,
|
|
16078
16075
|
onBlur: i
|
|
16079
16076
|
}
|
|
16080
16077
|
),
|
|
16081
|
-
e && /* @__PURE__ */ E("div", { className:
|
|
16078
|
+
e && /* @__PURE__ */ E("div", { className: si.endAdornment, children: e })
|
|
16082
16079
|
] })
|
|
16083
16080
|
] });
|
|
16084
16081
|
}
|
|
16085
|
-
),
|
|
16086
|
-
container:
|
|
16087
|
-
dropdown:
|
|
16088
|
-
item:
|
|
16089
|
-
itemMain:
|
|
16090
|
-
itemSecondary:
|
|
16091
|
-
itemArrow:
|
|
16092
|
-
endAdornmentGroup:
|
|
16093
|
-
clearButton:
|
|
16094
|
-
clearIcon:
|
|
16095
|
-
},
|
|
16082
|
+
), Hw = "PlaceAutocomplete-module__container__fdiqiO", Uw = "PlaceAutocomplete-module__dropdown__u-0PdK", $w = "PlaceAutocomplete-module__item__zHJqmC", zw = "PlaceAutocomplete-module__itemMain__-skwdB", qw = "PlaceAutocomplete-module__itemSecondary__sD5QDK", Gw = "PlaceAutocomplete-module__itemArrow__CtQ5GG", Ww = "PlaceAutocomplete-module__endAdornmentGroup__qV8aNt", Zw = "PlaceAutocomplete-module__clearButton__--lW5O", Kw = "PlaceAutocomplete-module__clearIcon__VlatWK", Wt = {
|
|
16083
|
+
container: Hw,
|
|
16084
|
+
dropdown: Uw,
|
|
16085
|
+
item: $w,
|
|
16086
|
+
itemMain: zw,
|
|
16087
|
+
itemSecondary: qw,
|
|
16088
|
+
itemArrow: Gw,
|
|
16089
|
+
endAdornmentGroup: Ww,
|
|
16090
|
+
clearButton: Zw,
|
|
16091
|
+
clearIcon: Kw
|
|
16092
|
+
}, Qw = ({ onSelect: t, suggestions: e }) => /* @__PURE__ */ E("div", { className: Wt.dropdown, role: "listbox", children: e.map((n) => /* @__PURE__ */ I(
|
|
16096
16093
|
"div",
|
|
16097
16094
|
{
|
|
16098
16095
|
className: Wt.item,
|
|
@@ -16163,17 +16160,17 @@ const nw = {
|
|
|
16163
16160
|
endAdornment: w
|
|
16164
16161
|
};
|
|
16165
16162
|
return /* @__PURE__ */ I("div", { ref: d, className: ne(Wt.container, n), children: [
|
|
16166
|
-
typeof e == "function" ? e(y) : /* @__PURE__ */ E(
|
|
16167
|
-
h && /* @__PURE__ */ E(
|
|
16163
|
+
typeof e == "function" ? e(y) : /* @__PURE__ */ E(Vw, { ...y }),
|
|
16164
|
+
h && /* @__PURE__ */ E(Qw, { suggestions: t.suggestions, onSelect: f })
|
|
16168
16165
|
] });
|
|
16169
|
-
},
|
|
16170
|
-
submit:
|
|
16171
|
-
container:
|
|
16172
|
-
selector:
|
|
16173
|
-
label:
|
|
16174
|
-
header:
|
|
16175
|
-
close:
|
|
16176
|
-
},
|
|
16166
|
+
}, Jw = "LocationAside-module__submit__CSKcqi", Xw = "LocationAside-module__container__S1NejR", Yw = "LocationAside-module__selector__hl74ke", e8 = "LocationAside-module__label__0Zk8at", t8 = "LocationAside-module__header__N1wgyn", n8 = "LocationAside-module__close__VsE88z", Bo = {
|
|
16167
|
+
submit: Jw,
|
|
16168
|
+
container: Xw,
|
|
16169
|
+
selector: Yw,
|
|
16170
|
+
label: e8,
|
|
16171
|
+
header: t8,
|
|
16172
|
+
close: n8
|
|
16173
|
+
}, r8 = xn((t, e) => {
|
|
16177
16174
|
const { t: n } = wt(["location_aside", "common"]), r = Nn(rw), { country: i, globalSearch: o, hideCloseButtonOnLocationScreen: s, inputs: a, onCloseLocationSelector: c, onLocationSelect: l } = Ae(), u = H(null);
|
|
16178
16175
|
Jt(
|
|
16179
16176
|
e,
|
|
@@ -16198,7 +16195,7 @@ const nw = {
|
|
|
16198
16195
|
return /* @__PURE__ */ E(Dw, { open: r, children: /* @__PURE__ */ E("div", { ref: u, className: Bo.container, children: /* @__PURE__ */ I("div", { className: Bo.selector, children: [
|
|
16199
16196
|
/* @__PURE__ */ I("div", { className: Bo.header, children: [
|
|
16200
16197
|
/* @__PURE__ */ E("div", { className: Bo.label, children: n("choose_city") }),
|
|
16201
|
-
!s && /* @__PURE__ */ E(
|
|
16198
|
+
!s && /* @__PURE__ */ E(Hr, { position: "relative", onClick: g })
|
|
16202
16199
|
] }),
|
|
16203
16200
|
/* @__PURE__ */ E(
|
|
16204
16201
|
Yh,
|
|
@@ -16211,7 +16208,7 @@ const nw = {
|
|
|
16211
16208
|
}
|
|
16212
16209
|
)
|
|
16213
16210
|
] }) }) });
|
|
16214
|
-
}),
|
|
16211
|
+
}), i8 = dt(r8), o8 = (t) => /* @__PURE__ */ D.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 20, height: 20, fill: "none", viewBox: "0 0 20 20", ...t }, /* @__PURE__ */ D.createElement("path", { fill: "currentcolor", fillRule: "evenodd", d: "M14.617 16.032a9 9 0 1 1 1.414-1.414l3.676 3.675a1 1 0 0 1-1.414 1.414l-3.676-3.675ZM2 9a7 7 0 1 1 12.04 4.858 1.005 1.005 0 0 0-.182.182A7 7 0 0 1 2 9Z", clipRule: "evenodd" })), s8 = ({ className: t }) => {
|
|
16215
16212
|
const { t: e } = wt("location_selector"), { country: n, globalSearch: r, inputs: i, onLocationSelect: o } = Ae(), s = U(
|
|
16216
16213
|
(h) => {
|
|
16217
16214
|
En.getState().setPlaceSimple(h, { withNavigation: !0 }), o == null || o(h);
|
|
@@ -16236,7 +16233,7 @@ const nw = {
|
|
|
16236
16233
|
{
|
|
16237
16234
|
autocomplete: c,
|
|
16238
16235
|
className: t,
|
|
16239
|
-
endAdornment: /* @__PURE__ */ E(
|
|
16236
|
+
endAdornment: /* @__PURE__ */ E(o8, {}),
|
|
16240
16237
|
inputRef: d.ref,
|
|
16241
16238
|
name: d.name,
|
|
16242
16239
|
placeholder: e("placeholder"),
|
|
@@ -16245,24 +16242,24 @@ const nw = {
|
|
|
16245
16242
|
onFocus: l
|
|
16246
16243
|
}
|
|
16247
16244
|
);
|
|
16248
|
-
},
|
|
16249
|
-
root:
|
|
16250
|
-
},
|
|
16251
|
-
root:
|
|
16252
|
-
},
|
|
16245
|
+
}, a8 = ({ className: t }) => se(Jp) ? /* @__PURE__ */ E(s8, { className: t }) : null, c8 = dt(a8), l8 = "DeliveryDetailsModal-module__root__qwKnjX", u8 = {
|
|
16246
|
+
root: l8
|
|
16247
|
+
}, d8 = ({ className: t, location: e, onClose: n, onSubmit: r }) => /* @__PURE__ */ E("div", { className: ne(u8.root, t), children: /* @__PURE__ */ E(qh, { location: e, onClose: n, onSubmit: r }) }), f8 = "LocationDetailsModal-module__root__PyRnLM", h8 = {
|
|
16248
|
+
root: f8
|
|
16249
|
+
}, p8 = ({ className: t, location: e, onClose: n, onSubmit: r }) => {
|
|
16253
16250
|
const i = () => {
|
|
16254
16251
|
r == null || r(e);
|
|
16255
16252
|
};
|
|
16256
|
-
return /* @__PURE__ */ E("div", { className: ne(
|
|
16257
|
-
},
|
|
16258
|
-
root:
|
|
16259
|
-
mapWrapper:
|
|
16260
|
-
locationSelector:
|
|
16261
|
-
filterButton:
|
|
16262
|
-
sidebarOpen:
|
|
16263
|
-
filterIcon:
|
|
16264
|
-
details:
|
|
16265
|
-
},
|
|
16253
|
+
return /* @__PURE__ */ E("div", { className: ne(h8.root, t), children: /* @__PURE__ */ E(Ef, { location: e, onClose: n, onSubmit: i }) });
|
|
16254
|
+
}, m8 = "MapContainer-module__root__1Os6Q-", g8 = "MapContainer-module__mapWrapper__Cwe7qC", v8 = "MapContainer-module__locationSelector__Pr1zS-", y8 = "MapContainer-module__filterButton__CW3Qv7", b8 = "MapContainer-module__sidebarOpen__lGMVrJ", w8 = "MapContainer-module__filterIcon__T01XsJ", S8 = "MapContainer-module__details__gM8LWX", Zt = {
|
|
16255
|
+
root: m8,
|
|
16256
|
+
mapWrapper: g8,
|
|
16257
|
+
locationSelector: v8,
|
|
16258
|
+
filterButton: y8,
|
|
16259
|
+
sidebarOpen: b8,
|
|
16260
|
+
filterIcon: w8,
|
|
16261
|
+
details: S8
|
|
16262
|
+
}, _8 = () => {
|
|
16266
16263
|
const { onPointClick: t } = Ae(), e = se(fc), n = ut(e0), r = Ie(dc), i = U(() => {
|
|
16267
16264
|
se.getState().setDetailsOpen(!1);
|
|
16268
16265
|
}, []), o = U(
|
|
@@ -16273,7 +16270,7 @@ const nw = {
|
|
|
16273
16270
|
);
|
|
16274
16271
|
return /* @__PURE__ */ I(Nt, { children: [
|
|
16275
16272
|
(r == null ? void 0 : r.address) && e && /* @__PURE__ */ E(
|
|
16276
|
-
|
|
16273
|
+
d8,
|
|
16277
16274
|
{
|
|
16278
16275
|
location: r,
|
|
16279
16276
|
className: Zt.details,
|
|
@@ -16282,7 +16279,7 @@ const nw = {
|
|
|
16282
16279
|
}
|
|
16283
16280
|
),
|
|
16284
16281
|
n && e && /* @__PURE__ */ E(
|
|
16285
|
-
|
|
16282
|
+
p8,
|
|
16286
16283
|
{
|
|
16287
16284
|
location: n,
|
|
16288
16285
|
className: Zt.details,
|
|
@@ -16291,8 +16288,8 @@ const nw = {
|
|
|
16291
16288
|
}
|
|
16292
16289
|
)
|
|
16293
16290
|
] });
|
|
16294
|
-
},
|
|
16295
|
-
const t =
|
|
16291
|
+
}, C8 = (t) => /* @__PURE__ */ D.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 60, height: 40, fill: "none", viewBox: "0 0 60 40", ...t }, /* @__PURE__ */ D.createElement("path", { d: "M0 0h52a8 8 0 0 1 8 8v24a8 8 0 0 1-8 8H0V0Z" }), /* @__PURE__ */ D.createElement("path", { stroke: "#fff", strokeLinecap: "round", strokeLinejoin: "round", strokeMiterlimit: 10, strokeWidth: 1.5, d: "M32.093 10h13.814c1.151 0 2.093.91 2.093 2.02v2.223c0 .808-.523 1.818-1.047 2.324l-4.5 3.839c-.627.505-1.046 1.515-1.046 2.323v4.344c0 .607-.419 1.415-.942 1.718L39 29.7c-1.36.808-3.244-.101-3.244-1.717v-5.355c0-.707-.419-1.616-.837-2.121l-3.977-4.041c-.523-.506-.942-1.415-.942-2.02V12.12c0-1.21.942-2.12 2.093-2.12Z" })), E8 = (t) => /* @__PURE__ */ D.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 28, height: 28, fill: "none", viewBox: "0 0 28 28", ...t }, /* @__PURE__ */ D.createElement("rect", { width: 28, height: 28, fill: "#333", rx: 4 }), /* @__PURE__ */ D.createElement("path", { stroke: "#fff", strokeLinecap: "round", strokeLinejoin: "round", strokeMiterlimit: 10, d: "M9.165 7h9.67c.806 0 1.465.636 1.465 1.414V9.97c0 .566-.366 1.273-.733 1.627l-3.15 2.687c-.44.353-.732 1.06-.732 1.627v3.04c0 .425-.293.99-.66 1.203L14 20.79c-.952.566-2.271-.07-2.271-1.202V15.84c0-.495-.293-1.132-.586-1.485l-2.784-2.83c-.366-.353-.659-.99-.659-1.413V8.485C7.7 7.636 8.36 7 9.165 7Z" })), O8 = () => {
|
|
16292
|
+
const t = jr((i) => i.open), e = jr((i) => i.toggle), n = Jn("screenSm"), r = () => {
|
|
16296
16293
|
e(!0);
|
|
16297
16294
|
};
|
|
16298
16295
|
return /* @__PURE__ */ I(
|
|
@@ -16303,51 +16300,51 @@ const nw = {
|
|
|
16303
16300
|
onClick: n ? void 0 : r,
|
|
16304
16301
|
children: [
|
|
16305
16302
|
n && /* @__PURE__ */ E(Xh, {}),
|
|
16306
|
-
n ? /* @__PURE__ */ E(
|
|
16303
|
+
n ? /* @__PURE__ */ E(E8, { className: Zt.filterIcon, onClick: r }) : /* @__PURE__ */ E(C8, { className: Zt.filterIcon })
|
|
16307
16304
|
]
|
|
16308
16305
|
}
|
|
16309
16306
|
);
|
|
16310
|
-
},
|
|
16307
|
+
}, x8 = ({ children: t, className: e }) => {
|
|
16311
16308
|
const { hideFilters: n, hideSearchInput: r } = Ae(), i = se(fc);
|
|
16312
16309
|
return /* @__PURE__ */ I("div", { className: ne(Zt.root, e), children: [
|
|
16313
|
-
!r && !i && /* @__PURE__ */ E(
|
|
16314
|
-
!n && /* @__PURE__ */ E(
|
|
16310
|
+
!r && !i && /* @__PURE__ */ E(c8, { className: Zt.locationSelector }),
|
|
16311
|
+
!n && /* @__PURE__ */ E(O8, {}),
|
|
16315
16312
|
/* @__PURE__ */ E("div", { className: Zt.mapWrapper, children: t }),
|
|
16316
|
-
/* @__PURE__ */ E(
|
|
16313
|
+
/* @__PURE__ */ E(_8, {})
|
|
16317
16314
|
] });
|
|
16318
|
-
},
|
|
16319
|
-
root:
|
|
16320
|
-
}, fa = ({ className: t, ...e }) => /* @__PURE__ */ E("hr", { className: ne(
|
|
16321
|
-
root:
|
|
16322
|
-
closeButton:
|
|
16323
|
-
open:
|
|
16324
|
-
header:
|
|
16325
|
-
typeFilter:
|
|
16326
|
-
separator:
|
|
16327
|
-
withRightPadding:
|
|
16328
|
-
sheetContent:
|
|
16329
|
-
doneButton:
|
|
16330
|
-
},
|
|
16331
|
-
const { t } = wt("common"), e = Jn("screenSm"), n =
|
|
16315
|
+
}, T8 = dt(x8), P8 = "Separator-module__root__eQtZey", A8 = {
|
|
16316
|
+
root: P8
|
|
16317
|
+
}, fa = ({ className: t, ...e }) => /* @__PURE__ */ E("hr", { className: ne(A8.root, t), ...e }), L8 = "Sidebar-module__root__4j1MA3", R8 = "Sidebar-module__closeButton__HLXy1c", k8 = "Sidebar-module__open__mqQXF6", M8 = "Sidebar-module__header__Afp6uz", D8 = "Sidebar-module__typeFilter__GN46u9", N8 = "Sidebar-module__separator__6I4QoJ", I8 = "Sidebar-module__withRightPadding__2u1Ina", F8 = "Sidebar-module__sheetContent__SaoncI", j8 = "Sidebar-module__doneButton__4aeaSD", qt = {
|
|
16318
|
+
root: L8,
|
|
16319
|
+
closeButton: R8,
|
|
16320
|
+
open: k8,
|
|
16321
|
+
header: M8,
|
|
16322
|
+
typeFilter: D8,
|
|
16323
|
+
separator: N8,
|
|
16324
|
+
withRightPadding: I8,
|
|
16325
|
+
sheetContent: F8,
|
|
16326
|
+
doneButton: j8
|
|
16327
|
+
}, B8 = () => {
|
|
16328
|
+
const { t } = wt("common"), e = Jn("screenSm"), n = jr((i) => i.toggle), r = () => {
|
|
16332
16329
|
n(!1);
|
|
16333
16330
|
};
|
|
16334
16331
|
return /* @__PURE__ */ I("div", { className: qt.header, children: [
|
|
16335
16332
|
e && /* @__PURE__ */ E("div", { role: "presentation", className: qt.doneButton, onClick: r, children: t("done") }),
|
|
16336
|
-
!e && /* @__PURE__ */ E(
|
|
16333
|
+
!e && /* @__PURE__ */ E(Hr, { className: qt.closeButton, onClick: r })
|
|
16337
16334
|
] });
|
|
16338
|
-
},
|
|
16339
|
-
root:
|
|
16340
|
-
label:
|
|
16341
|
-
},
|
|
16335
|
+
}, V8 = "Radio-module__root__7ElY2W", H8 = "Radio-module__label__c-sYW3", Xu = {
|
|
16336
|
+
root: V8,
|
|
16337
|
+
label: H8
|
|
16338
|
+
}, U8 = ({ className: t, label: e, labelProps: n = {}, ...r }) => {
|
|
16342
16339
|
const i = ld(), { className: o, ...s } = n;
|
|
16343
16340
|
return /* @__PURE__ */ I("label", { htmlFor: i, className: ne(Xu.label, o), ...s, children: [
|
|
16344
16341
|
/* @__PURE__ */ E("input", { id: i, type: "radio", className: ne(Xu.root, t), ...r }),
|
|
16345
16342
|
e
|
|
16346
16343
|
] });
|
|
16347
|
-
},
|
|
16348
|
-
root:
|
|
16349
|
-
body:
|
|
16350
|
-
legend:
|
|
16344
|
+
}, br = (t) => /* @__PURE__ */ E(U8, { ...t, type: "checkbox" }), $8 = "RadioGroup-module__root__ewZw-x", z8 = "RadioGroup-module__body__k8BJAs", q8 = "RadioGroup-module__legend__tcfV7q", ha = {
|
|
16345
|
+
root: $8,
|
|
16346
|
+
body: z8,
|
|
16347
|
+
legend: q8
|
|
16351
16348
|
}, ep = ({
|
|
16352
16349
|
children: t,
|
|
16353
16350
|
className: e,
|
|
@@ -16364,7 +16361,7 @@ const nw = {
|
|
|
16364
16361
|
[a.target.value]: a.target.checked
|
|
16365
16362
|
})
|
|
16366
16363
|
}) : null) })
|
|
16367
|
-
] }),
|
|
16364
|
+
] }), G8 = ({ className: t, onChange: e }) => {
|
|
16368
16365
|
const { t: n } = wt("receive_filter"), r = Cn(i0);
|
|
16369
16366
|
return /* @__PURE__ */ I(
|
|
16370
16367
|
ep,
|
|
@@ -16374,23 +16371,23 @@ const nw = {
|
|
|
16374
16371
|
className: t,
|
|
16375
16372
|
onChange: e,
|
|
16376
16373
|
children: [
|
|
16377
|
-
/* @__PURE__ */ E(
|
|
16378
|
-
/* @__PURE__ */ E(
|
|
16379
|
-
/* @__PURE__ */ E(
|
|
16374
|
+
/* @__PURE__ */ E(br, { name: "receive", value: Rt.DressingRoom, label: n("dressing_room") }),
|
|
16375
|
+
/* @__PURE__ */ E(br, { name: "receive", value: Rt.CheckOrder, label: n("check_order") }),
|
|
16376
|
+
/* @__PURE__ */ E(br, { name: "receive", value: Rt.PayByCash, label: n("pay_by_cash") })
|
|
16380
16377
|
]
|
|
16381
16378
|
}
|
|
16382
16379
|
);
|
|
16383
|
-
},
|
|
16380
|
+
}, W8 = dt(G8), Z8 = ({ className: t, onChange: e }) => {
|
|
16384
16381
|
const { t: n } = wt("send_filter"), r = Cn(r0);
|
|
16385
16382
|
return /* @__PURE__ */ I(ep, { className: t, value: r, label: n("title"), onChange: e, children: [
|
|
16386
|
-
/* @__PURE__ */ E(
|
|
16387
|
-
/* @__PURE__ */ E(
|
|
16388
|
-
/* @__PURE__ */ E(
|
|
16383
|
+
/* @__PURE__ */ E(br, { name: "send", value: kt.Return, label: n("sending_returns") }),
|
|
16384
|
+
/* @__PURE__ */ E(br, { name: "send", value: kt.Shipping, label: n("shipping") }),
|
|
16385
|
+
/* @__PURE__ */ E(br, { name: "send", value: kt.Payment, label: n("payment") })
|
|
16389
16386
|
] });
|
|
16390
|
-
},
|
|
16391
|
-
root:
|
|
16392
|
-
button:
|
|
16393
|
-
},
|
|
16387
|
+
}, K8 = dt(Z8), Q8 = "TypeFilter-module__root__WH5EQV", J8 = "TypeFilter-module__button__f0mSfo", Vo = {
|
|
16388
|
+
root: Q8,
|
|
16389
|
+
button: J8
|
|
16390
|
+
}, X8 = ({ className: t, onChange: e, value: n }) => {
|
|
16394
16391
|
const { t: r } = wt("type_filter"), i = (o) => () => e == null ? void 0 : e(o);
|
|
16395
16392
|
return /* @__PURE__ */ I("div", { className: ne(Vo.root, t), children: [
|
|
16396
16393
|
/* @__PURE__ */ E(
|
|
@@ -16421,11 +16418,11 @@ const nw = {
|
|
|
16421
16418
|
}
|
|
16422
16419
|
)
|
|
16423
16420
|
] });
|
|
16424
|
-
},
|
|
16421
|
+
}, Y8 = ({ className: t, onChange: e }) => {
|
|
16425
16422
|
const n = Cn(n0);
|
|
16426
|
-
return /* @__PURE__ */ E(
|
|
16427
|
-
},
|
|
16428
|
-
const e = Jn("screenSm"), n =
|
|
16423
|
+
return /* @__PURE__ */ E(X8, { value: n, className: t, onChange: e });
|
|
16424
|
+
}, e9 = dt(Y8), t9 = ({ className: t }) => {
|
|
16425
|
+
const e = Jn("screenSm"), n = jr((c) => c.open), r = U(
|
|
16429
16426
|
(c) => Cn.getState().setFilter({ type: c }),
|
|
16430
16427
|
[]
|
|
16431
16428
|
), i = U(
|
|
@@ -16434,14 +16431,14 @@ const nw = {
|
|
|
16434
16431
|
), o = U(
|
|
16435
16432
|
(c) => Cn.getState().setFilter({ receive: c }),
|
|
16436
16433
|
[]
|
|
16437
|
-
), s = U(() =>
|
|
16438
|
-
/* @__PURE__ */ E(
|
|
16434
|
+
), s = U(() => jr.getState().toggle(!1), []), a = /* @__PURE__ */ I(Nt, { children: [
|
|
16435
|
+
/* @__PURE__ */ E(B8, {}),
|
|
16439
16436
|
/* @__PURE__ */ I("div", { className: qt.withRightPadding, children: [
|
|
16440
|
-
/* @__PURE__ */ E(
|
|
16437
|
+
/* @__PURE__ */ E(e9, { className: qt.typeFilter, onChange: r }),
|
|
16441
16438
|
/* @__PURE__ */ E(fa, { className: qt.separator }),
|
|
16442
|
-
/* @__PURE__ */ E(
|
|
16439
|
+
/* @__PURE__ */ E(W8, { onChange: o }),
|
|
16443
16440
|
/* @__PURE__ */ E(fa, {}),
|
|
16444
|
-
/* @__PURE__ */ E(
|
|
16441
|
+
/* @__PURE__ */ E(K8, { onChange: i }),
|
|
16445
16442
|
/* @__PURE__ */ E(fa, {})
|
|
16446
16443
|
] })
|
|
16447
16444
|
] });
|
|
@@ -16455,25 +16452,25 @@ const nw = {
|
|
|
16455
16452
|
children: /* @__PURE__ */ E("div", { className: qt.sheetContent, children: a })
|
|
16456
16453
|
}
|
|
16457
16454
|
) : /* @__PURE__ */ E("div", { className: ne(qt.root, t, { [qt.open]: n }), children: a });
|
|
16458
|
-
},
|
|
16459
|
-
map:
|
|
16460
|
-
sidebar:
|
|
16461
|
-
header:
|
|
16462
|
-
},
|
|
16455
|
+
}, n9 = "App-module__map__Kf-2JS", r9 = "App-module__sidebar__ORIzGk", i9 = "App-module__header__bgP9DA", pa = {
|
|
16456
|
+
map: n9,
|
|
16457
|
+
sidebar: r9,
|
|
16458
|
+
header: i9
|
|
16459
|
+
}, o9 = new Dh(), s9 = ({ children: t }) => {
|
|
16463
16460
|
const { isFetching: e } = Zh();
|
|
16464
16461
|
return e ? /* @__PURE__ */ E(Ds, {}) : t;
|
|
16465
|
-
},
|
|
16462
|
+
}, a9 = ({ config: t, options: e, withGlobalProvider: n = !1 }) => {
|
|
16466
16463
|
const r = Xm(t), { INN: i, cityName: o, countryAbbreviation: s, hideFilters: a, hideHeader: c, map: l, regionName: u } = r;
|
|
16467
16464
|
Lt(i, "INN is required"), Ym(i, e), Lt(l == null ? void 0 : l.provider, "Map provider is required");
|
|
16468
16465
|
const d = $6(l.provider);
|
|
16469
16466
|
jm({ cityName: o, countryAbbreviation: s, regionName: u });
|
|
16470
16467
|
const h = /* @__PURE__ */ E(aw, { children: /* @__PURE__ */ E(sw, { children: /* @__PURE__ */ E(Uv, { tolgee: Qh, fallback: /* @__PURE__ */ E(Ds, {}), children: /* @__PURE__ */ E(Aw, { children: /* @__PURE__ */ I(Pw, { children: [
|
|
16471
16468
|
!c && /* @__PURE__ */ E(_w, { className: pa.header }),
|
|
16472
|
-
!a && /* @__PURE__ */ E(
|
|
16473
|
-
/* @__PURE__ */ E(
|
|
16474
|
-
/* @__PURE__ */ E(
|
|
16469
|
+
!a && /* @__PURE__ */ E(t9, { className: pa.sidebar }),
|
|
16470
|
+
/* @__PURE__ */ E(T8, { className: pa.map, children: /* @__PURE__ */ E(d, {}) }),
|
|
16471
|
+
/* @__PURE__ */ E(i8, {})
|
|
16475
16472
|
] }) }) }) }) });
|
|
16476
|
-
return /* @__PURE__ */ E(up, { baseColor: "#f3f3f3", highlightColor: "#ecebeb", children: /* @__PURE__ */ E(md.Provider, { value: r, children: n ? /* @__PURE__ */ E(
|
|
16473
|
+
return /* @__PURE__ */ E(up, { baseColor: "#f3f3f3", highlightColor: "#ecebeb", children: /* @__PURE__ */ E(md.Provider, { value: r, children: n ? /* @__PURE__ */ E(s9, { children: h }) : /* @__PURE__ */ E(Fh, { client: o9, children: /* @__PURE__ */ E(
|
|
16477
16474
|
Wh,
|
|
16478
16475
|
{
|
|
16479
16476
|
gMapId: r.gMapId,
|
|
@@ -16483,19 +16480,19 @@ const nw = {
|
|
|
16483
16480
|
children: h
|
|
16484
16481
|
}
|
|
16485
16482
|
) }) }) });
|
|
16486
|
-
},
|
|
16483
|
+
}, c9 = async (t) => Ti.request({
|
|
16487
16484
|
baseURL: "https://api.geo-data.omnic.solutions/api/1.0/",
|
|
16488
16485
|
method: "POST",
|
|
16489
16486
|
url: "normalize/address",
|
|
16490
16487
|
data: t,
|
|
16491
16488
|
// TODO: move to env
|
|
16492
16489
|
headers: { Authorization: "Token 9877f9631b2e30570cc1c5aa8c740b0c912efe99a8b6c45c21cf4bd394adc7e9" }
|
|
16493
|
-
}),
|
|
16490
|
+
}), l9 = new Dh(), tp = lc(null), Yu = (t) => JSON.stringify(t, (e, n) => typeof n == "function" ? void 0 : n), u9 = (t, e) => ({
|
|
16494
16491
|
...t,
|
|
16495
16492
|
...e,
|
|
16496
16493
|
inputs: e != null && e.inputs ? { ...t.inputs, ...e.inputs } : t.inputs,
|
|
16497
16494
|
handlers: e != null && e.handlers ? { ...t.handlers, ...e.handlers } : t.handlers
|
|
16498
|
-
}),
|
|
16495
|
+
}), E9 = ({
|
|
16499
16496
|
children: t,
|
|
16500
16497
|
launchConfig: e
|
|
16501
16498
|
}) => {
|
|
@@ -16552,7 +16549,7 @@ const nw = {
|
|
|
16552
16549
|
setLocale: r,
|
|
16553
16550
|
setMapPlaceholderConfig: d
|
|
16554
16551
|
}), [d]);
|
|
16555
|
-
return /* @__PURE__ */ E(tp.Provider, { value: g, children: a && /* @__PURE__ */ E(Fh, { client:
|
|
16552
|
+
return /* @__PURE__ */ E(tp.Provider, { value: g, children: a && /* @__PURE__ */ E(Fh, { client: l9, children: /* @__PURE__ */ I(
|
|
16556
16553
|
Wh,
|
|
16557
16554
|
{
|
|
16558
16555
|
asGlobalProvider: !0,
|
|
@@ -16571,11 +16568,11 @@ const nw = {
|
|
|
16571
16568
|
width: "100%"
|
|
16572
16569
|
},
|
|
16573
16570
|
children: /* @__PURE__ */ E(
|
|
16574
|
-
|
|
16571
|
+
a9,
|
|
16575
16572
|
{
|
|
16576
16573
|
withGlobalProvider: !0,
|
|
16577
16574
|
options: a.options,
|
|
16578
|
-
config:
|
|
16575
|
+
config: u9(a.config, {
|
|
16579
16576
|
...h,
|
|
16580
16577
|
...i,
|
|
16581
16578
|
...n && { locale: n }
|
|
@@ -16589,16 +16586,16 @@ const nw = {
|
|
|
16589
16586
|
}
|
|
16590
16587
|
) }) });
|
|
16591
16588
|
};
|
|
16592
|
-
function
|
|
16589
|
+
function d9() {
|
|
16593
16590
|
const t = Qt(tp);
|
|
16594
16591
|
if (!t)
|
|
16595
16592
|
throw new Error("Please use hook useWidgetLocationsContext inside WidgetLocationsProvider");
|
|
16596
16593
|
return t;
|
|
16597
16594
|
}
|
|
16598
|
-
const
|
|
16599
|
-
const { setMapPlaceholderConfig: e, widgetLocationsRef: n, widgetOutHolderRef: r } =
|
|
16595
|
+
const f9 = (t) => t === void 0 || typeof t == "object" && Object.keys(t).length === 0, O9 = ({ config: t }) => {
|
|
16596
|
+
const { setMapPlaceholderConfig: e, widgetLocationsRef: n, widgetOutHolderRef: r } = d9(), i = H(null);
|
|
16600
16597
|
return j(() => {
|
|
16601
|
-
const o =
|
|
16598
|
+
const o = f9(t) ? void 0 : t;
|
|
16602
16599
|
e(o);
|
|
16603
16600
|
}, [t, e]), j(() => {
|
|
16604
16601
|
const o = r.current, s = n.current, a = i.current;
|
|
@@ -16611,21 +16608,21 @@ export {
|
|
|
16611
16608
|
Rt as EReceiveFilter,
|
|
16612
16609
|
kt as ESendFilter,
|
|
16613
16610
|
ln as ETypeFilter,
|
|
16614
|
-
|
|
16611
|
+
O9 as MapPlaceholder,
|
|
16615
16612
|
Yh as PlaceAutocomplete,
|
|
16616
|
-
|
|
16617
|
-
|
|
16613
|
+
a9 as Widget,
|
|
16614
|
+
E9 as WidgetLocationsProvider,
|
|
16618
16615
|
hl as createPointsIterator,
|
|
16619
16616
|
fl as fetchPointsRequest,
|
|
16620
|
-
|
|
16621
|
-
|
|
16617
|
+
y9 as fromHoursMinutesToMinutes,
|
|
16618
|
+
b9 as fromMinutesToHoursMinutes,
|
|
16622
16619
|
ml as getAddressFormGeocode,
|
|
16623
|
-
|
|
16620
|
+
w9 as getBoundsFromPoint,
|
|
16624
16621
|
$d as getCurrentPosition,
|
|
16625
|
-
|
|
16622
|
+
c9 as getNormalizedAddress,
|
|
16626
16623
|
xm as getPropertyValue,
|
|
16627
16624
|
pl as isCoordinates,
|
|
16628
|
-
|
|
16625
|
+
S9 as isDeliveryPoint,
|
|
16629
16626
|
Om as isHttpSuccess,
|
|
16630
16627
|
Em as isPlaceId,
|
|
16631
16628
|
Dm as parseCoordinates,
|
|
@@ -16633,5 +16630,5 @@ export {
|
|
|
16633
16630
|
pi as replaceSvgCurrentColor,
|
|
16634
16631
|
Ts as setWidgetCSSProperty,
|
|
16635
16632
|
Jh as usePlaceAutocomplete,
|
|
16636
|
-
|
|
16633
|
+
d9 as useWidgetLocationsContext
|
|
16637
16634
|
};
|