@omnic/widget-locations 1.0.57 → 1.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/widget.es.js +632 -621
- package/dist/lib/widget.umd.js +18 -18
- package/package.json +1 -1
package/dist/lib/widget.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as M, jsxs as J, Fragment as Ft } from "react/jsx-runtime";
|
|
2
2
|
import * as ge from "react";
|
|
3
|
-
import ae, { useState as I, useEffect as E, Suspense as rh, useCallback as $, useRef as se, useContext as et, useDebugValue as nn, createContext as fu, memo as Be, useLayoutEffect as va, createElement as ih, useMemo as lt, useImperativeHandle as
|
|
3
|
+
import ae, { useState as I, useEffect as E, Suspense as rh, useCallback as $, useRef as se, useContext as et, useDebugValue as nn, createContext as fu, memo as Be, useLayoutEffect as va, createElement as ih, useMemo as lt, useImperativeHandle as hi, forwardRef as Bo, PureComponent as Ye, createRef as No, Children as an, isValidElement as hu, cloneElement as pu, useReducer as oh, Fragment as sh, useSyncExternalStore as ah } from "react";
|
|
4
4
|
import * as gu from "react-dom";
|
|
5
|
-
import { createPortal as
|
|
6
|
-
import { renderToString as
|
|
5
|
+
import { createPortal as pi } from "react-dom";
|
|
6
|
+
import { renderToString as qi } from "react-dom/server";
|
|
7
7
|
function ma(t) {
|
|
8
8
|
return !!(t && typeof t.then == "function");
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function Zi(t, e) {
|
|
11
11
|
return ma(t) ? Promise.resolve(t).then(e) : e(t);
|
|
12
12
|
}
|
|
13
13
|
function Ka(t) {
|
|
@@ -168,7 +168,7 @@ const bu = (t) => {
|
|
|
168
168
|
e.set(n, r);
|
|
169
169
|
}
|
|
170
170
|
}), e;
|
|
171
|
-
},
|
|
171
|
+
}, zr = (t) => {
|
|
172
172
|
const [e, ...n] = t.split(":"), r = n.join(":");
|
|
173
173
|
return { language: e, namespace: r || "" };
|
|
174
174
|
}, tn = ({ language: t, namespace: e }) => e ? `${t}:${e}` : t;
|
|
@@ -199,7 +199,7 @@ function ph(t, e, n, r, i, o, s) {
|
|
|
199
199
|
addStaticData(h) {
|
|
200
200
|
h && (l = Object.assign(Object.assign({}, l), h), Object.entries(h).forEach(([C, w]) => {
|
|
201
201
|
if (typeof w != "function") {
|
|
202
|
-
const v =
|
|
202
|
+
const v = zr(C), y = c.get(C);
|
|
203
203
|
(!y || y.version === 0) && d(v, w, 0);
|
|
204
204
|
}
|
|
205
205
|
}));
|
|
@@ -252,12 +252,12 @@ function ph(t, e, n, r, i, o, s) {
|
|
|
252
252
|
if (h === void 0)
|
|
253
253
|
return a.size > 0;
|
|
254
254
|
const C = Dt(h);
|
|
255
|
-
return !!Array.from(a.keys()).find((w) => C.includes(
|
|
255
|
+
return !!Array.from(a.keys()).find((w) => C.includes(zr(w).namespace));
|
|
256
256
|
},
|
|
257
257
|
isLoading(h, C) {
|
|
258
258
|
const w = Dt(C);
|
|
259
259
|
return !!(i() || Array.from(a.keys()).find((v) => {
|
|
260
|
-
const y =
|
|
260
|
+
const y = zr(v);
|
|
261
261
|
return (!w.length || w.includes(y.namespace)) && !g.exists({
|
|
262
262
|
namespace: y.namespace,
|
|
263
263
|
language: h
|
|
@@ -294,7 +294,7 @@ function ph(t, e, n, r, i, o, s) {
|
|
|
294
294
|
}), o.notify(), s.notify(), w.map((y) => g.getRecord(y.keyObject));
|
|
295
295
|
},
|
|
296
296
|
getAllRecords() {
|
|
297
|
-
return Array.from(c.entries()).map(([C, w]) => Object.assign(Object.assign({},
|
|
297
|
+
return Array.from(c.entries()).map(([C, w]) => Object.assign(Object.assign({}, zr(C)), { data: w.data }));
|
|
298
298
|
}
|
|
299
299
|
});
|
|
300
300
|
return g;
|
|
@@ -467,7 +467,7 @@ function yh(t, e, n, r, i, o, s, a) {
|
|
|
467
467
|
getInitialLanguage() {
|
|
468
468
|
var A;
|
|
469
469
|
const k = n(), N = (A = l.languageStorage) === null || A === void 0 ? void 0 : A.getLanguage(p());
|
|
470
|
-
return
|
|
470
|
+
return Zi(N, (z) => (!k || k.includes(z)) && z ? z : m());
|
|
471
471
|
},
|
|
472
472
|
setStoredLanguage(A) {
|
|
473
473
|
var k;
|
|
@@ -638,7 +638,7 @@ function bh(t, e, n) {
|
|
|
638
638
|
if (r.initialOptions.availableLanguages)
|
|
639
639
|
return r.initialOptions.availableLanguages;
|
|
640
640
|
if (r.initialOptions.staticData) {
|
|
641
|
-
const s = Object.keys(r.initialOptions.staticData).map((a) =>
|
|
641
|
+
const s = Object.keys(r.initialOptions.staticData).map((a) => zr(a).language);
|
|
642
642
|
return Array.from(new Set(s));
|
|
643
643
|
}
|
|
644
644
|
},
|
|
@@ -717,7 +717,7 @@ function Ch({ options: t }) {
|
|
|
717
717
|
function C(b, S) {
|
|
718
718
|
const P = h(b, S);
|
|
719
719
|
if (P.length)
|
|
720
|
-
return
|
|
720
|
+
return Zi(m.loadRecords(P), () => {
|
|
721
721
|
});
|
|
722
722
|
}
|
|
723
723
|
function w({ key: b, ns: S }) {
|
|
@@ -729,7 +729,7 @@ function Ch({ options: t }) {
|
|
|
729
729
|
return s.getTranslationFallback(O, A, b);
|
|
730
730
|
}
|
|
731
731
|
function y() {
|
|
732
|
-
const b =
|
|
732
|
+
const b = Zi(x(), () => C());
|
|
733
733
|
if (ma(b))
|
|
734
734
|
return i.setInitialLoading(!0), n.notify(), r.notify(), Promise.resolve(b).then(() => {
|
|
735
735
|
i.setInitialLoading(!1), n.notify(), r.notify(), e.onInitialLoaded.emit();
|
|
@@ -740,7 +740,7 @@ function Ch({ options: t }) {
|
|
|
740
740
|
if (i.getLanguage())
|
|
741
741
|
return;
|
|
742
742
|
const S = o.getInitialLanguage();
|
|
743
|
-
return
|
|
743
|
+
return Zi(S, (P) => {
|
|
744
744
|
const O = P || i.getInitialOptions().defaultLanguage;
|
|
745
745
|
O && i.setLanguage(O);
|
|
746
746
|
});
|
|
@@ -999,8 +999,8 @@ class Ah extends Error {
|
|
|
999
999
|
function Ja(t) {
|
|
1000
1000
|
return /\s/.test(t);
|
|
1001
1001
|
}
|
|
1002
|
-
const pn = 0, Ds = 1,
|
|
1003
|
-
|
|
1002
|
+
const pn = 0, Ds = 1, Ji = 2, es = 3, ts = 4, xh = /* @__PURE__ */ new Set([
|
|
1003
|
+
Ji,
|
|
1004
1004
|
Ds,
|
|
1005
1005
|
pn
|
|
1006
1006
|
]), Rs = "'", Oh = /* @__PURE__ */ new Set(["{", "}", Rs]), Mh = (t) => /[0-9a-zA-Z_]/.test(t);
|
|
@@ -1024,10 +1024,10 @@ function Ph(t) {
|
|
|
1024
1024
|
i === Rs ? (n += i, e = Ds) : i === "{" ? (l(), e = es) : (n += i, e = pn);
|
|
1025
1025
|
break;
|
|
1026
1026
|
case Ds:
|
|
1027
|
-
Oh.has(i) ? (n = n.slice(0, -1) + i, e =
|
|
1027
|
+
Oh.has(i) ? (n = n.slice(0, -1) + i, e = Ji) : (n += i, e = pn);
|
|
1028
1028
|
break;
|
|
1029
|
-
case
|
|
1030
|
-
i === Rs ? e = pn : (n += i, e =
|
|
1029
|
+
case Ji:
|
|
1030
|
+
i === Rs ? e = pn : (n += i, e = Ji);
|
|
1031
1031
|
break;
|
|
1032
1032
|
case es:
|
|
1033
1033
|
i === "}" ? (d(), e = pn) : Ja(i) ? r !== "" && (d(), e = ts) : (u(), e = es);
|
|
@@ -1338,7 +1338,7 @@ const Ou = () => {
|
|
|
1338
1338
|
language: t.language
|
|
1339
1339
|
}));
|
|
1340
1340
|
return ae.createElement(ae.Fragment, null, r);
|
|
1341
|
-
},
|
|
1341
|
+
}, Hn = (t) => {
|
|
1342
1342
|
const { t: e } = Pu();
|
|
1343
1343
|
return ae.createElement(op, Object.assign({ t: e }, t));
|
|
1344
1344
|
}, sp = (t) => {
|
|
@@ -1371,7 +1371,7 @@ var ap = function(t, e, n, r, i, o, s, a) {
|
|
|
1371
1371
|
throw c.framesToPop = 1, c;
|
|
1372
1372
|
}
|
|
1373
1373
|
}, lp = ap;
|
|
1374
|
-
const
|
|
1374
|
+
const Pr = /* @__PURE__ */ jo(lp);
|
|
1375
1375
|
var ku = {}, Iu = { exports: {} };
|
|
1376
1376
|
(function(t) {
|
|
1377
1377
|
var e = function(n) {
|
|
@@ -1917,11 +1917,11 @@ var Ru = { exports: {} }, Tu = {}, Bu = { exports: {} }, Nu = {};
|
|
|
1917
1917
|
* This source code is licensed under the MIT license found in the
|
|
1918
1918
|
* LICENSE file in the root directory of this source tree.
|
|
1919
1919
|
*/
|
|
1920
|
-
var
|
|
1920
|
+
var hr = ae;
|
|
1921
1921
|
function hp(t, e) {
|
|
1922
1922
|
return t === e && (t !== 0 || 1 / t === 1 / e) || t !== t && e !== e;
|
|
1923
1923
|
}
|
|
1924
|
-
var pp = typeof Object.is == "function" ? Object.is : hp, gp =
|
|
1924
|
+
var pp = typeof Object.is == "function" ? Object.is : hp, gp = hr.useState, vp = hr.useEffect, mp = hr.useLayoutEffect, yp = hr.useDebugValue;
|
|
1925
1925
|
function bp(t, e) {
|
|
1926
1926
|
var n = e(), r = gp({ inst: { value: n, getSnapshot: e } }), i = r[0].inst, o = r[1];
|
|
1927
1927
|
return mp(function() {
|
|
@@ -1946,7 +1946,7 @@ function wp(t, e) {
|
|
|
1946
1946
|
return e();
|
|
1947
1947
|
}
|
|
1948
1948
|
var Cp = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? wp : bp;
|
|
1949
|
-
Nu.useSyncExternalStore =
|
|
1949
|
+
Nu.useSyncExternalStore = hr.useSyncExternalStore !== void 0 ? hr.useSyncExternalStore : Cp;
|
|
1950
1950
|
Bu.exports = Nu;
|
|
1951
1951
|
var Ep = Bu.exports;
|
|
1952
1952
|
/**
|
|
@@ -2014,12 +2014,12 @@ const $a = (t) => {
|
|
|
2014
2014
|
const e = typeof t == "function" ? fp(t) : t, n = (r, i) => Tp(e, r, i);
|
|
2015
2015
|
return Object.assign(n, e), n;
|
|
2016
2016
|
}, An = (t) => t ? $a(t) : $a;
|
|
2017
|
-
let
|
|
2017
|
+
let Ei;
|
|
2018
2018
|
const Bp = new Uint8Array(16);
|
|
2019
2019
|
function Np() {
|
|
2020
|
-
if (!
|
|
2020
|
+
if (!Ei && (Ei = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Ei))
|
|
2021
2021
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
2022
|
-
return
|
|
2022
|
+
return Ei(Bp);
|
|
2023
2023
|
}
|
|
2024
2024
|
const ft = [];
|
|
2025
2025
|
for (let t = 0; t < 256; ++t)
|
|
@@ -2043,7 +2043,7 @@ function ju(t, e, n) {
|
|
|
2043
2043
|
}
|
|
2044
2044
|
return jp(r);
|
|
2045
2045
|
}
|
|
2046
|
-
const Bs = ju(), vo = ju(), on = [48, 66],
|
|
2046
|
+
const Bs = ju(), vo = ju(), on = [48, 66], or = [58, 80], ya = 10, Uu = 6, Ho = 20, Ns = 10, Cn = [49.3478969, 14.0983344], Hp = "en", zp = ["places", "geocoding"], Fp = {
|
|
2047
2047
|
mode: "self_pickup",
|
|
2048
2048
|
bounds: null,
|
|
2049
2049
|
blurred: !1,
|
|
@@ -2071,43 +2071,43 @@ const Bs = ju(), vo = ju(), on = [48, 66], ir = [58, 80], ya = 10, Uu = 6, Ho =
|
|
|
2071
2071
|
setBlurred(e) {
|
|
2072
2072
|
t({ blurred: e });
|
|
2073
2073
|
}
|
|
2074
|
-
})),
|
|
2074
|
+
})), Bn = {
|
|
2075
2075
|
locale: Hp,
|
|
2076
2076
|
map: {
|
|
2077
2077
|
provider: "google",
|
|
2078
2078
|
center: Cn,
|
|
2079
2079
|
initialZoom: Uu
|
|
2080
2080
|
}
|
|
2081
|
-
}, Hu = fu(
|
|
2081
|
+
}, Hu = fu(Bn), Jt = () => et(Hu), Gp = {
|
|
2082
2082
|
courierPoint: null
|
|
2083
2083
|
}, Mt = An()((t) => ({
|
|
2084
2084
|
...Gp,
|
|
2085
2085
|
setCourierPoint(e) {
|
|
2086
2086
|
t({ courierPoint: e });
|
|
2087
2087
|
}
|
|
2088
|
-
})), Vp = "Button-module__root__8NAnx6", Qp = "Button-module__primary__UsjvpK", Yp = "Button-module__secondary__VtNj8s",
|
|
2088
|
+
})), Vp = "Button-module__root__8NAnx6", Qp = "Button-module__primary__UsjvpK", Yp = "Button-module__secondary__VtNj8s", Li = {
|
|
2089
2089
|
root: Vp,
|
|
2090
2090
|
primary: Qp,
|
|
2091
2091
|
secondary: Yp
|
|
2092
2092
|
}, Rt = ({ className: t, variant: e = "primary", ...n }) => {
|
|
2093
2093
|
if (n.as === "link") {
|
|
2094
2094
|
const { as: o, ...s } = n;
|
|
2095
|
-
return /* @__PURE__ */ M("a", { className: Oe(
|
|
2095
|
+
return /* @__PURE__ */ M("a", { className: Oe(Li.root, t, Li[e]), ...s });
|
|
2096
2096
|
}
|
|
2097
2097
|
const { as: r, ...i } = n;
|
|
2098
|
-
return /* @__PURE__ */ M("button", { className: Oe(
|
|
2098
|
+
return /* @__PURE__ */ M("button", { className: Oe(Li.root, t, Li[e]), ...i });
|
|
2099
2099
|
};
|
|
2100
2100
|
Rt.defaultProps = {
|
|
2101
2101
|
as: "button"
|
|
2102
2102
|
};
|
|
2103
|
-
const Wp = (t) => /* @__PURE__ */ ge.createElement("svg", { width: 123, height: 32, viewBox: "0 0 123 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ ge.createElement("path", { d: "M6.69783 32C5.49102 32 4.3747 31.7038 3.34892 31.1112C2.32312 30.5186 1.50852 29.7186 0.905114 28.7112C0.301705 27.7038 0 26.6074 0 25.4222V6.57778C0 5.36296 0.301705 4.26666 0.905114 3.28888C1.50852 2.28148 2.32312 1.48148 3.34892 0.888888C4.3747 0.296296 5.49102 0 6.69783 0H25.8862C27.093 0 28.1942 0.296296 29.1899 0.888888C30.2156 1.48148 31.0302 2.28148 31.6338 3.28888C32.2673 4.26666 32.5841 5.36296 32.5841 6.57778V25.4222C32.5841 26.6074 32.2673 27.7038 31.6338 28.7112C31.0302 29.7186 30.2156 30.5186 29.1899 31.1112C28.1942 31.7038 27.093 32 25.8862 32H6.69783ZM7.01462 25.0666H25.4789V6.93334H7.01462V25.0666Z", fill: "currentcolor" }), /* @__PURE__ */ ge.createElement("path", { d: "M37.5678 32V0H44.8087L55.851 12.9333L66.8482 0H74.1345V32H67.0745V10.5333L55.851 23.6888L44.5824 10.5778V32H37.5678Z", fill: "currentcolor" }), /* @__PURE__ */ ge.createElement("path", { d: "M79.5533 32V0H86.7941L105.032 21.3334V0H112.137V32H104.896L86.5679 10.5778V32H79.5533Z", fill: "currentcolor" }), /* @__PURE__ */ ge.createElement("path", { d: "M116.076 32V0H123V32H116.076Z", fill: "currentcolor" })), Kp = "Header-module__root__HQYeJV", qp = "Header-module__nav__E5j1Pg", Zp = "Header-module__navItem__9yWrFL", Jp = "Header-module__logo__RE3idO",
|
|
2103
|
+
const Wp = (t) => /* @__PURE__ */ ge.createElement("svg", { width: 123, height: 32, viewBox: "0 0 123 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ ge.createElement("path", { d: "M6.69783 32C5.49102 32 4.3747 31.7038 3.34892 31.1112C2.32312 30.5186 1.50852 29.7186 0.905114 28.7112C0.301705 27.7038 0 26.6074 0 25.4222V6.57778C0 5.36296 0.301705 4.26666 0.905114 3.28888C1.50852 2.28148 2.32312 1.48148 3.34892 0.888888C4.3747 0.296296 5.49102 0 6.69783 0H25.8862C27.093 0 28.1942 0.296296 29.1899 0.888888C30.2156 1.48148 31.0302 2.28148 31.6338 3.28888C32.2673 4.26666 32.5841 5.36296 32.5841 6.57778V25.4222C32.5841 26.6074 32.2673 27.7038 31.6338 28.7112C31.0302 29.7186 30.2156 30.5186 29.1899 31.1112C28.1942 31.7038 27.093 32 25.8862 32H6.69783ZM7.01462 25.0666H25.4789V6.93334H7.01462V25.0666Z", fill: "currentcolor" }), /* @__PURE__ */ ge.createElement("path", { d: "M37.5678 32V0H44.8087L55.851 12.9333L66.8482 0H74.1345V32H67.0745V10.5333L55.851 23.6888L44.5824 10.5778V32H37.5678Z", fill: "currentcolor" }), /* @__PURE__ */ ge.createElement("path", { d: "M79.5533 32V0H86.7941L105.032 21.3334V0H112.137V32H104.896L86.5679 10.5778V32H79.5533Z", fill: "currentcolor" }), /* @__PURE__ */ ge.createElement("path", { d: "M116.076 32V0H123V32H116.076Z", fill: "currentcolor" })), Kp = "Header-module__root__HQYeJV", qp = "Header-module__nav__E5j1Pg", Zp = "Header-module__navItem__9yWrFL", Jp = "Header-module__logo__RE3idO", Fr = {
|
|
2104
2104
|
root: Kp,
|
|
2105
2105
|
nav: qp,
|
|
2106
2106
|
navItem: Zp,
|
|
2107
2107
|
logo: Jp
|
|
2108
2108
|
}, _p = () => {
|
|
2109
2109
|
const { hideLogo: t } = Jt();
|
|
2110
|
-
return t ? null : /* @__PURE__ */ M("div", { className:
|
|
2110
|
+
return t ? null : /* @__PURE__ */ M("div", { className: Fr.logo, children: /* @__PURE__ */ M(Wp, {}) });
|
|
2111
2111
|
}, Xp = (t) => /* @__PURE__ */ ge.createElement("svg", { width: 24, height: 28, viewBox: "0 0 24 28", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ ge.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M24 11.7765C24 4.05176 17.6057 0 12 0C6.39429 0 0 4.05176 0 11.7765C0 16.9153 3.99429 22.3341 12 28C20.0057 22.3341 24 16.9153 24 11.7765ZM12.0001 16C14.2093 16 16.0001 14.2091 16.0001 12C16.0001 9.79086 14.2093 8 12.0001 8C9.79098 8 8.00012 9.79086 8.00012 12C8.00012 14.2091 9.79098 16 12.0001 16Z", fill: "#1760EE" })), $p = {
|
|
2112
2112
|
open: !1
|
|
2113
2113
|
}, mo = An((t) => ({
|
|
@@ -2117,7 +2117,7 @@ const Wp = (t) => /* @__PURE__ */ ge.createElement("svg", { width: 123, height:
|
|
|
2117
2117
|
}
|
|
2118
2118
|
})), eg = {
|
|
2119
2119
|
place: null
|
|
2120
|
-
},
|
|
2120
|
+
}, Yn = An((t) => ({
|
|
2121
2121
|
...eg,
|
|
2122
2122
|
setPlace(e) {
|
|
2123
2123
|
t({ place: e });
|
|
@@ -2139,7 +2139,7 @@ const Wp = (t) => /* @__PURE__ */ ge.createElement("svg", { width: 123, height:
|
|
|
2139
2139
|
icon: ig
|
|
2140
2140
|
}, zu = ({ className: t }) => {
|
|
2141
2141
|
var l;
|
|
2142
|
-
const { t: e } = Gt("current_location"), n = mo((u) => u.toggle), r =
|
|
2142
|
+
const { t: e } = Gt("current_location"), n = mo((u) => u.toggle), r = Yn((u) => u.place), i = qe((u) => u.setDetailsOpen), o = Mt((u) => u.setCourierPoint), s = Ot((u) => u.setSelectedPoint), a = () => {
|
|
2143
2143
|
n(!0), i(!1), o(null), s(null);
|
|
2144
2144
|
}, c = (l = r == null ? void 0 : r.address_components) == null ? void 0 : l.find((u) => u.types.includes("locality"));
|
|
2145
2145
|
return /* @__PURE__ */ J("div", { className: Oe(os.root, t), onClick: a, children: [
|
|
@@ -2159,14 +2159,14 @@ const Wp = (t) => /* @__PURE__ */ ge.createElement("svg", { width: 123, height:
|
|
|
2159
2159
|
}, c = () => {
|
|
2160
2160
|
i(null), s("courier_delivery");
|
|
2161
2161
|
}, l = o === "self_pickup", u = o === "courier_delivery";
|
|
2162
|
-
return /* @__PURE__ */ J("div", { className: Oe(
|
|
2162
|
+
return /* @__PURE__ */ J("div", { className: Oe(Fr.root, t), children: [
|
|
2163
2163
|
/* @__PURE__ */ M(_p, {}),
|
|
2164
|
-
/* @__PURE__ */ J("nav", { className:
|
|
2164
|
+
/* @__PURE__ */ J("nav", { className: Fr.nav, children: [
|
|
2165
2165
|
!n && /* @__PURE__ */ M(
|
|
2166
2166
|
Rt,
|
|
2167
2167
|
{
|
|
2168
2168
|
as: "link",
|
|
2169
|
-
className:
|
|
2169
|
+
className: Fr.navItem,
|
|
2170
2170
|
variant: l ? "primary" : "secondary",
|
|
2171
2171
|
onClick: a,
|
|
2172
2172
|
children: e("self_pickup")
|
|
@@ -2176,7 +2176,7 @@ const Wp = (t) => /* @__PURE__ */ ge.createElement("svg", { width: 123, height:
|
|
|
2176
2176
|
Rt,
|
|
2177
2177
|
{
|
|
2178
2178
|
as: "link",
|
|
2179
|
-
className:
|
|
2179
|
+
className: Fr.navItem,
|
|
2180
2180
|
variant: u ? "primary" : "secondary",
|
|
2181
2181
|
onClick: c,
|
|
2182
2182
|
children: e("courier_delivery")
|
|
@@ -2187,7 +2187,7 @@ const Wp = (t) => /* @__PURE__ */ ge.createElement("svg", { width: 123, height:
|
|
|
2187
2187
|
] });
|
|
2188
2188
|
}, sg = Be(og), ag = {
|
|
2189
2189
|
open: !1
|
|
2190
|
-
},
|
|
2190
|
+
}, pr = An((t) => ({
|
|
2191
2191
|
...ag,
|
|
2192
2192
|
toggle(e) {
|
|
2193
2193
|
qe.getState().setDetailsOpen(!1), Mt.getState().setCourierPoint(null), Ot.getState().setSelectedPoint(null), t((n) => ({ open: e ?? !n.open }));
|
|
@@ -2196,7 +2196,7 @@ const Wp = (t) => /* @__PURE__ */ ge.createElement("svg", { width: 123, height:
|
|
|
2196
2196
|
root: lg,
|
|
2197
2197
|
sidebarOpen: cg
|
|
2198
2198
|
}, ug = ({ children: t }) => {
|
|
2199
|
-
const e =
|
|
2199
|
+
const e = pr((n) => n.open);
|
|
2200
2200
|
return /* @__PURE__ */ M("div", { className: Oe(tl.root, { [tl.sidebarOpen]: e }), children: t });
|
|
2201
2201
|
};
|
|
2202
2202
|
var dg = /* @__PURE__ */ fg() ? va : E;
|
|
@@ -2218,7 +2218,7 @@ var pg = function(e) {
|
|
|
2218
2218
|
s.current && s.current.ownerDocument && s.current.ownerDocument.body.removeChild(s.current);
|
|
2219
2219
|
};
|
|
2220
2220
|
}
|
|
2221
|
-
}, [i, a]), s.current ? /* @__PURE__ */
|
|
2221
|
+
}, [i, a]), s.current ? /* @__PURE__ */ pi(n, s.current) : /* @__PURE__ */ ih("span", {
|
|
2222
2222
|
ref: o
|
|
2223
2223
|
});
|
|
2224
2224
|
};
|
|
@@ -2297,19 +2297,19 @@ var Fe;
|
|
|
2297
2297
|
(function(t) {
|
|
2298
2298
|
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";
|
|
2299
2299
|
})(Fe || (Fe = {}));
|
|
2300
|
-
var
|
|
2300
|
+
var gr;
|
|
2301
2301
|
(function(t) {
|
|
2302
2302
|
t.Parent = "#_parent", t.Internal = "#_internal";
|
|
2303
|
-
})(
|
|
2304
|
-
var js = Fe.Start, wa = Fe.Stop,
|
|
2303
|
+
})(gr || (gr = {}));
|
|
2304
|
+
var js = Fe.Start, wa = Fe.Stop, gi = Fe.Raise, zo = Fe.Send, Fu = Fe.Cancel, gg = Fe.NullEvent, Ca = Fe.Assign;
|
|
2305
2305
|
Fe.After;
|
|
2306
2306
|
Fe.DoneState;
|
|
2307
2307
|
var Gu = Fe.Log, vg = Fe.Init, Us = Fe.Invoke;
|
|
2308
2308
|
Fe.ErrorExecution;
|
|
2309
|
-
var nl = Fe.ErrorPlatform, mg = Fe.ErrorCustom, Vu = Fe.Update, yg = Fe.Choose, bg = Fe.Pure, Qu = ".", rl = {}, Hs = "xstate.guard", wg = "",
|
|
2309
|
+
var nl = Fe.ErrorPlatform, mg = Fe.ErrorCustom, Vu = Fe.Update, yg = Fe.Choose, bg = Fe.Pure, Qu = ".", rl = {}, Hs = "xstate.guard", wg = "", Si;
|
|
2310
2310
|
function Ea(t, e, n) {
|
|
2311
2311
|
n === void 0 && (n = Qu);
|
|
2312
|
-
var r =
|
|
2312
|
+
var r = Kr(t, n), i = Kr(e, n);
|
|
2313
2313
|
return Ue(i) ? Ue(r) ? i === r : !1 : Ue(r) ? r in i : Object.keys(r).every(function(o) {
|
|
2314
2314
|
return o in i ? Ea(r[o], i[o]) : !1;
|
|
2315
2315
|
});
|
|
@@ -2323,7 +2323,7 @@ function Yu(t) {
|
|
|
2323
2323
|
}
|
|
2324
2324
|
function zs(t, e) {
|
|
2325
2325
|
try {
|
|
2326
|
-
return
|
|
2326
|
+
return wr(t) ? t : t.toString().split(e);
|
|
2327
2327
|
} catch {
|
|
2328
2328
|
throw new Error("'".concat(t, "' is not a valid state path."));
|
|
2329
2329
|
}
|
|
@@ -2331,10 +2331,10 @@ function zs(t, e) {
|
|
|
2331
2331
|
function Cg(t) {
|
|
2332
2332
|
return typeof t == "object" && "value" in t && "context" in t && "event" in t && "_event" in t;
|
|
2333
2333
|
}
|
|
2334
|
-
function
|
|
2334
|
+
function Kr(t, e) {
|
|
2335
2335
|
if (Cg(t))
|
|
2336
2336
|
return t.value;
|
|
2337
|
-
if (
|
|
2337
|
+
if (wr(t))
|
|
2338
2338
|
return yo(t);
|
|
2339
2339
|
if (typeof t != "string")
|
|
2340
2340
|
return t;
|
|
@@ -2348,7 +2348,7 @@ function yo(t) {
|
|
|
2348
2348
|
r === t.length - 2 ? n[t[r]] = t[r + 1] : (n[t[r]] = {}, n = n[t[r]]);
|
|
2349
2349
|
return e;
|
|
2350
2350
|
}
|
|
2351
|
-
function
|
|
2351
|
+
function Gr(t, e) {
|
|
2352
2352
|
for (var n = {}, r = Object.keys(t), i = 0; i < r.length; i++) {
|
|
2353
2353
|
var o = r[i];
|
|
2354
2354
|
n[o] = e(t[o], o, t, i);
|
|
@@ -2440,7 +2440,7 @@ function _e(t) {
|
|
|
2440
2440
|
return (e = []).concat.apply(e, We([], Te(t), !1));
|
|
2441
2441
|
}
|
|
2442
2442
|
function Wu(t) {
|
|
2443
|
-
return
|
|
2443
|
+
return wr(t) ? t : [t];
|
|
2444
2444
|
}
|
|
2445
2445
|
function jt(t) {
|
|
2446
2446
|
return t === void 0 ? [] : Wu(t);
|
|
@@ -2500,7 +2500,7 @@ function xg(t, e) {
|
|
|
2500
2500
|
return [o, s];
|
|
2501
2501
|
}
|
|
2502
2502
|
function Ku(t, e) {
|
|
2503
|
-
return
|
|
2503
|
+
return Gr(t.states, function(n, r) {
|
|
2504
2504
|
if (n) {
|
|
2505
2505
|
var i = (Ue(e) ? void 0 : e[r]) || (n ? n.current : void 0);
|
|
2506
2506
|
if (i)
|
|
@@ -2550,7 +2550,7 @@ function sl(t, e, n, r) {
|
|
|
2550
2550
|
}
|
|
2551
2551
|
var Mg = function() {
|
|
2552
2552
|
};
|
|
2553
|
-
function
|
|
2553
|
+
function wr(t) {
|
|
2554
2554
|
return Array.isArray(t);
|
|
2555
2555
|
}
|
|
2556
2556
|
function Ne(t) {
|
|
@@ -2581,12 +2581,12 @@ function Pg(t) {
|
|
|
2581
2581
|
var yn = /* @__PURE__ */ function() {
|
|
2582
2582
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
2583
2583
|
}();
|
|
2584
|
-
|
|
2584
|
+
Si = {}, Si[yn] = function() {
|
|
2585
2585
|
return this;
|
|
2586
|
-
},
|
|
2586
|
+
}, Si[Symbol.observable] = function() {
|
|
2587
2587
|
return this;
|
|
2588
2588
|
};
|
|
2589
|
-
function
|
|
2589
|
+
function vr(t) {
|
|
2590
2590
|
return !!t && "__xstatenode" in t;
|
|
2591
2591
|
}
|
|
2592
2592
|
function kg(t) {
|
|
@@ -2608,9 +2608,9 @@ function ht(t, e) {
|
|
|
2608
2608
|
type: "external"
|
|
2609
2609
|
}, e);
|
|
2610
2610
|
}
|
|
2611
|
-
function
|
|
2611
|
+
function _n(t, e) {
|
|
2612
2612
|
var n = Wu(e).map(function(r) {
|
|
2613
|
-
return typeof r > "u" || typeof r == "string" ||
|
|
2613
|
+
return typeof r > "u" || typeof r == "string" || vr(r) ? {
|
|
2614
2614
|
target: r,
|
|
2615
2615
|
event: t
|
|
2616
2616
|
} : W(W({}, r), {
|
|
@@ -2650,19 +2650,19 @@ function Xi(t, e, n) {
|
|
|
2650
2650
|
complete: ((i ? t.complete : n) || r).bind(o)
|
|
2651
2651
|
};
|
|
2652
2652
|
}
|
|
2653
|
-
function
|
|
2653
|
+
function Ai(t, e) {
|
|
2654
2654
|
return "".concat(t, ":invocation[").concat(e, "]");
|
|
2655
2655
|
}
|
|
2656
2656
|
function Fs(t) {
|
|
2657
|
-
return (t.type ===
|
|
2657
|
+
return (t.type === gi || t.type === zo && t.to === gr.Internal) && typeof t.delay != "number";
|
|
2658
2658
|
}
|
|
2659
|
-
var
|
|
2659
|
+
var cr = /* @__PURE__ */ ht({
|
|
2660
2660
|
type: vg
|
|
2661
2661
|
});
|
|
2662
2662
|
function Gs(t, e) {
|
|
2663
2663
|
return e && e[t] || void 0;
|
|
2664
2664
|
}
|
|
2665
|
-
function
|
|
2665
|
+
function li(t, e) {
|
|
2666
2666
|
var n;
|
|
2667
2667
|
if (Ue(t) || typeof t == "number") {
|
|
2668
2668
|
var r = Gs(t, e);
|
|
@@ -2698,13 +2698,13 @@ function ai(t, e) {
|
|
|
2698
2698
|
var bn = function(t, e) {
|
|
2699
2699
|
if (!t)
|
|
2700
2700
|
return [];
|
|
2701
|
-
var n =
|
|
2701
|
+
var n = wr(t) ? t : [t];
|
|
2702
2702
|
return n.map(function(r) {
|
|
2703
|
-
return
|
|
2703
|
+
return li(r, e);
|
|
2704
2704
|
});
|
|
2705
2705
|
};
|
|
2706
2706
|
function La(t) {
|
|
2707
|
-
var e =
|
|
2707
|
+
var e = li(t);
|
|
2708
2708
|
return W(W({
|
|
2709
2709
|
id: Ue(t) ? t : e.id
|
|
2710
2710
|
}, e), {
|
|
@@ -2713,7 +2713,7 @@ function La(t) {
|
|
|
2713
2713
|
}
|
|
2714
2714
|
function Dg(t, e) {
|
|
2715
2715
|
return {
|
|
2716
|
-
type:
|
|
2716
|
+
type: gi,
|
|
2717
2717
|
event: typeof t == "function" ? t : Fo(t),
|
|
2718
2718
|
delay: e ? e.delay : void 0,
|
|
2719
2719
|
id: e == null ? void 0 : e.id
|
|
@@ -2729,7 +2729,7 @@ function Rg(t, e, n, r) {
|
|
|
2729
2729
|
} else
|
|
2730
2730
|
s = Ne(t.delay) ? t.delay(e, n.data, i) : t.delay;
|
|
2731
2731
|
return W(W({}, t), {
|
|
2732
|
-
type:
|
|
2732
|
+
type: gi,
|
|
2733
2733
|
_event: o,
|
|
2734
2734
|
delay: s
|
|
2735
2735
|
});
|
|
@@ -2809,7 +2809,7 @@ function Gg(t, e) {
|
|
|
2809
2809
|
var n = e ? "#".concat(e) : "";
|
|
2810
2810
|
return "".concat(Fe.After, "(").concat(t, ")").concat(n);
|
|
2811
2811
|
}
|
|
2812
|
-
function
|
|
2812
|
+
function xi(t, e) {
|
|
2813
2813
|
var n = "".concat(Fe.DoneState, ".").concat(t), r = {
|
|
2814
2814
|
type: n,
|
|
2815
2815
|
data: e
|
|
@@ -2827,7 +2827,7 @@ function $i(t, e) {
|
|
|
2827
2827
|
return n;
|
|
2828
2828
|
}, r;
|
|
2829
2829
|
}
|
|
2830
|
-
function
|
|
2830
|
+
function Vr(t, e) {
|
|
2831
2831
|
var n = "".concat(Fe.ErrorPlatform, ".").concat(t), r = {
|
|
2832
2832
|
type: n,
|
|
2833
2833
|
data: e
|
|
@@ -2867,13 +2867,13 @@ function wo(t, e, n, r, i, o, s) {
|
|
|
2867
2867
|
function d(g, h) {
|
|
2868
2868
|
var C;
|
|
2869
2869
|
switch (h.type) {
|
|
2870
|
-
case
|
|
2870
|
+
case gi: {
|
|
2871
2871
|
var w = Rg(h, c, r, t.options.delays);
|
|
2872
2872
|
return o && typeof w.delay == "number" && o(w, c, r), w;
|
|
2873
2873
|
}
|
|
2874
2874
|
case zo:
|
|
2875
2875
|
var v = Bg(h, c, r, t.options.delays);
|
|
2876
|
-
return o && v.to !==
|
|
2876
|
+
return o && v.to !== gr.Internal && (g === "entry" ? u.push(v) : o(v, c, r)), v;
|
|
2877
2877
|
case Gu: {
|
|
2878
2878
|
var y = Ng(h, c, r);
|
|
2879
2879
|
return o == null || o(y, c, r), y;
|
|
@@ -2910,7 +2910,7 @@ function wo(t, e, n, r, i, o, s) {
|
|
|
2910
2910
|
break;
|
|
2911
2911
|
}
|
|
2912
2912
|
default:
|
|
2913
|
-
var k =
|
|
2913
|
+
var k = li(h, t.options.actions), N = k.exec;
|
|
2914
2914
|
if (o)
|
|
2915
2915
|
o(k, c, r);
|
|
2916
2916
|
else if (N && l) {
|
|
@@ -2952,7 +2952,7 @@ function wo(t, e, n, r, i, o, s) {
|
|
|
2952
2952
|
var p = _e(i.map(f));
|
|
2953
2953
|
return [p, c];
|
|
2954
2954
|
}
|
|
2955
|
-
var al = [],
|
|
2955
|
+
var al = [], ir = function(t, e) {
|
|
2956
2956
|
al.push(t);
|
|
2957
2957
|
var n = e(t);
|
|
2958
2958
|
return al.pop(), n;
|
|
@@ -2986,8 +2986,8 @@ function Qg(t, e, n, r) {
|
|
|
2986
2986
|
}
|
|
2987
2987
|
function Xu(t, e, n) {
|
|
2988
2988
|
var r = _u(e);
|
|
2989
|
-
if (r.deferred = !0,
|
|
2990
|
-
var i = r.state =
|
|
2989
|
+
if (r.deferred = !0, vr(t)) {
|
|
2990
|
+
var i = r.state = ir(void 0, function() {
|
|
2991
2991
|
return (n ? t.withContext(n) : t).initialState;
|
|
2992
2992
|
});
|
|
2993
2993
|
r.getSnapshot = function() {
|
|
@@ -3030,16 +3030,16 @@ function $u(t) {
|
|
|
3030
3030
|
return t.states[e];
|
|
3031
3031
|
});
|
|
3032
3032
|
}
|
|
3033
|
-
function
|
|
3033
|
+
function ci(t) {
|
|
3034
3034
|
return $u(t).filter(function(e) {
|
|
3035
3035
|
return e.type !== "history";
|
|
3036
3036
|
});
|
|
3037
3037
|
}
|
|
3038
3038
|
function ed(t) {
|
|
3039
3039
|
var e = [t];
|
|
3040
|
-
return Co(t) ? e : e.concat(_e(
|
|
3040
|
+
return Co(t) ? e : e.concat(_e(ci(t).map(ed)));
|
|
3041
3041
|
}
|
|
3042
|
-
function
|
|
3042
|
+
function Qr(t, e) {
|
|
3043
3043
|
var n, r, i, o, s, a, c, l, u = new Set(t), d = Vs(u), f = new Set(e);
|
|
3044
3044
|
try {
|
|
3045
3045
|
for (var p = xe(f), g = p.next(); !g.done; g = p.next())
|
|
@@ -3069,7 +3069,7 @@ function Vr(t, e) {
|
|
|
3069
3069
|
});
|
|
3070
3070
|
else if (h.type === "parallel")
|
|
3071
3071
|
try {
|
|
3072
|
-
for (var x = (s = void 0, xe(
|
|
3072
|
+
for (var x = (s = void 0, xe(ci(h))), L = x.next(); !L.done; L = x.next()) {
|
|
3073
3073
|
var m = L.value;
|
|
3074
3074
|
f.has(m) || (f.add(m), d.get(m) ? d.get(m).forEach(function(O) {
|
|
3075
3075
|
return f.add(O);
|
|
@@ -3159,10 +3159,10 @@ function Vs(t) {
|
|
|
3159
3159
|
return r;
|
|
3160
3160
|
}
|
|
3161
3161
|
function qg(t, e) {
|
|
3162
|
-
var n =
|
|
3162
|
+
var n = Qr([t], e);
|
|
3163
3163
|
return td(t, Vs(n));
|
|
3164
3164
|
}
|
|
3165
|
-
function
|
|
3165
|
+
function Yr(t, e) {
|
|
3166
3166
|
return Array.isArray(t) ? t.some(function(n) {
|
|
3167
3167
|
return n === e;
|
|
3168
3168
|
}) : t instanceof Set ? t.has(e) : !1;
|
|
@@ -3173,9 +3173,9 @@ function Zg(t) {
|
|
|
3173
3173
|
})), !1)))), !1);
|
|
3174
3174
|
}
|
|
3175
3175
|
function eo(t, e) {
|
|
3176
|
-
return e.type === "compound" ?
|
|
3177
|
-
return n.type === "final" &&
|
|
3178
|
-
}) : e.type === "parallel" ?
|
|
3176
|
+
return e.type === "compound" ? ci(e).some(function(n) {
|
|
3177
|
+
return n.type === "final" && Yr(t, n);
|
|
3178
|
+
}) : e.type === "parallel" ? ci(e).every(function(n) {
|
|
3179
3179
|
return eo(t, n);
|
|
3180
3180
|
}) : !1;
|
|
3181
3181
|
}
|
|
@@ -3244,7 +3244,7 @@ var kt = (
|
|
|
3244
3244
|
transitions: [],
|
|
3245
3245
|
children: {}
|
|
3246
3246
|
}) : e;
|
|
3247
|
-
var r =
|
|
3247
|
+
var r = cr;
|
|
3248
3248
|
return new t({
|
|
3249
3249
|
value: e,
|
|
3250
3250
|
context: n,
|
|
@@ -3266,7 +3266,7 @@ var kt = (
|
|
|
3266
3266
|
if (e instanceof t) {
|
|
3267
3267
|
if (!e.actions.length)
|
|
3268
3268
|
return e;
|
|
3269
|
-
var r =
|
|
3269
|
+
var r = cr;
|
|
3270
3270
|
return new t({
|
|
3271
3271
|
value: e.value,
|
|
3272
3272
|
context: n,
|
|
@@ -3355,7 +3355,7 @@ var kt = (
|
|
|
3355
3355
|
}
|
|
3356
3356
|
}, t;
|
|
3357
3357
|
}()
|
|
3358
|
-
), ss = /* @__PURE__ */ new Map(), ev = 0,
|
|
3358
|
+
), ss = /* @__PURE__ */ new Map(), ev = 0, kr = {
|
|
3359
3359
|
bookId: function() {
|
|
3360
3360
|
return "x:".concat(ev++);
|
|
3361
3361
|
},
|
|
@@ -3440,7 +3440,7 @@ var ov = (
|
|
|
3440
3440
|
n === void 0 && (n = t.defaultOptions);
|
|
3441
3441
|
var r = this;
|
|
3442
3442
|
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 = at.NotStarted, this.children = /* @__PURE__ */ new Map(), this.forwardTo = /* @__PURE__ */ new Set(), this._outgoingQueue = [], this.init = this.start, this.send = function(u, d) {
|
|
3443
|
-
if (
|
|
3443
|
+
if (wr(u))
|
|
3444
3444
|
return r.batch(u), r.state;
|
|
3445
3445
|
var f = ht(Fo(u, d));
|
|
3446
3446
|
if (r.status === at.Stopped)
|
|
@@ -3457,7 +3457,7 @@ Event: `
|
|
|
3457
3457
|
r.update(p, f);
|
|
3458
3458
|
}), r._state;
|
|
3459
3459
|
}, this.sendTo = function(u, d, f) {
|
|
3460
|
-
var p = r.parent && (d ===
|
|
3460
|
+
var p = r.parent && (d === gr.Parent || r.parent.id === d), g = p ? r.parent : Ue(d) ? d === gr.Internal ? r : r.children.get(d) || kr.get(d) : kg(d) ? d : void 0;
|
|
3461
3461
|
if (!g) {
|
|
3462
3462
|
if (!p)
|
|
3463
3463
|
throw new Error("Unable to send event to child '".concat(d, "' from service '").concat(r.id, "'."));
|
|
@@ -3467,7 +3467,7 @@ Event: `
|
|
|
3467
3467
|
if (r.status !== at.Stopped || r.parent !== g || // we need to send events to the parent from exit handlers of a machine that reached its final state
|
|
3468
3468
|
r.state.done) {
|
|
3469
3469
|
var h = W(W({}, u), {
|
|
3470
|
-
name: u.name === mg ? "".concat(
|
|
3470
|
+
name: u.name === mg ? "".concat(Vr(r.id)) : u.name,
|
|
3471
3471
|
origin: r.sessionId
|
|
3472
3472
|
});
|
|
3473
3473
|
!f && r.machine.config.predictableActionArguments ? r._outgoingQueue.push([g, h]) : g.send(h);
|
|
@@ -3494,7 +3494,7 @@ Event: `
|
|
|
3494
3494
|
}), z;
|
|
3495
3495
|
}
|
|
3496
3496
|
switch (u.type) {
|
|
3497
|
-
case
|
|
3497
|
+
case gi: {
|
|
3498
3498
|
var C = u;
|
|
3499
3499
|
r.defer(C);
|
|
3500
3500
|
break;
|
|
@@ -3505,7 +3505,7 @@ Event: `
|
|
|
3505
3505
|
r.defer(w);
|
|
3506
3506
|
return;
|
|
3507
3507
|
} else
|
|
3508
|
-
w.to ? r.sendTo(w._event, w.to, f ===
|
|
3508
|
+
w.to ? r.sendTo(w._event, w.to, f === cr) : r.send(w._event);
|
|
3509
3509
|
break;
|
|
3510
3510
|
case Fu:
|
|
3511
3511
|
r.cancel(u.sendId);
|
|
@@ -3534,7 +3534,7 @@ Event: `
|
|
|
3534
3534
|
if (!P)
|
|
3535
3535
|
return;
|
|
3536
3536
|
var O = void 0;
|
|
3537
|
-
|
|
3537
|
+
vr(P) && (P = S ? P.withContext(S) : P, O = {
|
|
3538
3538
|
autoForward: b
|
|
3539
3539
|
}), r.spawn(P, L, O);
|
|
3540
3540
|
} else
|
|
@@ -3554,12 +3554,12 @@ Event: `
|
|
|
3554
3554
|
var i = W(W({}, t.defaultOptions), n), o = i.clock, s = i.logger, a = i.parent, c = i.id, l = c !== void 0 ? c : e.id;
|
|
3555
3555
|
this.id = l, this.logger = s, this.clock = o, this.parent = a, this.options = i, this.scheduler = new cl({
|
|
3556
3556
|
deferEvents: this.options.deferEvents
|
|
3557
|
-
}), this.sessionId =
|
|
3557
|
+
}), this.sessionId = kr.bookId();
|
|
3558
3558
|
}
|
|
3559
3559
|
return Object.defineProperty(t.prototype, "initialState", {
|
|
3560
3560
|
get: function() {
|
|
3561
3561
|
var e = this;
|
|
3562
|
-
return this._initialState ? this._initialState :
|
|
3562
|
+
return this._initialState ? this._initialState : ir(this, function() {
|
|
3563
3563
|
return e._initialState = e.machine.initialState, e._initialState;
|
|
3564
3564
|
});
|
|
3565
3565
|
},
|
|
@@ -3597,7 +3597,7 @@ Event: `
|
|
|
3597
3597
|
var r, i, o, s, a, c, l, u, d = this;
|
|
3598
3598
|
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
|
|
3599
3599
|
// we can't just recompute it (and execute actions while doing so) because we try to preserve identity of actors created within initial assigns
|
|
3600
|
-
n ===
|
|
3600
|
+
n === cr) && this.options.execute)
|
|
3601
3601
|
this.execute(this.state);
|
|
3602
3602
|
else
|
|
3603
3603
|
for (var f = void 0; f = this._outgoingQueue.shift(); )
|
|
@@ -3678,7 +3678,7 @@ Event: `
|
|
|
3678
3678
|
throw l.error;
|
|
3679
3679
|
}
|
|
3680
3680
|
}
|
|
3681
|
-
this._stop(), this._stopChildren(),
|
|
3681
|
+
this._stop(), this._stopChildren(), kr.free(this.sessionId);
|
|
3682
3682
|
}
|
|
3683
3683
|
}, t.prototype.onTransition = function(e) {
|
|
3684
3684
|
return this.listeners.add(e), this.status === at.Running && e(this.state, this.state.event), this;
|
|
@@ -3709,12 +3709,12 @@ Event: `
|
|
|
3709
3709
|
var n = this;
|
|
3710
3710
|
if (this.status === at.Running)
|
|
3711
3711
|
return this;
|
|
3712
|
-
this.machine._init(),
|
|
3713
|
-
var r = e === void 0 ? this.initialState :
|
|
3712
|
+
this.machine._init(), kr.register(this.sessionId, this), this.initialized = !0, this.status = at.Running;
|
|
3713
|
+
var r = e === void 0 ? this.initialState : ir(this, function() {
|
|
3714
3714
|
return _g(e) ? n.machine.resolveState(e) : n.machine.resolveState(kt.from(e, n.machine.context));
|
|
3715
3715
|
});
|
|
3716
3716
|
return this.options.devTools && this.attachDev(), this.scheduler.initialize(function() {
|
|
3717
|
-
n.update(r,
|
|
3717
|
+
n.update(r, cr);
|
|
3718
3718
|
}), this;
|
|
3719
3719
|
}, t.prototype._stopChildren = function() {
|
|
3720
3720
|
this.children.forEach(function(e) {
|
|
@@ -3818,7 +3818,7 @@ Event: `
|
|
|
3818
3818
|
return this._stop(), n.schedule(function() {
|
|
3819
3819
|
var r = ht({
|
|
3820
3820
|
type: "xstate.stop"
|
|
3821
|
-
}), i =
|
|
3821
|
+
}), i = ir(e, function() {
|
|
3822
3822
|
var o = _e(We([], Te(e.state.configuration), !1).sort(function(u, d) {
|
|
3823
3823
|
return d.order - u.order;
|
|
3824
3824
|
}).map(function(u) {
|
|
@@ -3847,7 +3847,7 @@ Event: `
|
|
|
3847
3847
|
});
|
|
3848
3848
|
return l.changed = !0, l;
|
|
3849
3849
|
});
|
|
3850
|
-
e.update(i, r), e._stopChildren(),
|
|
3850
|
+
e.update(i, r), e._stopChildren(), kr.free(e.sessionId);
|
|
3851
3851
|
}), this;
|
|
3852
3852
|
}, t.prototype.batch = function(e) {
|
|
3853
3853
|
var n = this;
|
|
@@ -3863,7 +3863,7 @@ Event: `
|
|
|
3863
3863
|
this.scheduler.schedule(function() {
|
|
3864
3864
|
var i, o, s = n.state, a = !1, c = [], l = function(p) {
|
|
3865
3865
|
var g = ht(p);
|
|
3866
|
-
n.forward(g), s =
|
|
3866
|
+
n.forward(g), s = ir(n, function() {
|
|
3867
3867
|
return n.machine.transition(s, g, void 0, r || void 0);
|
|
3868
3868
|
}), c.push.apply(c, We([], Te(n.machine.config.predictableActionArguments ? s.actions : s.actions.map(function(h) {
|
|
3869
3869
|
return Xg(h, s);
|
|
@@ -3899,7 +3899,7 @@ Event: `
|
|
|
3899
3899
|
return s.indexOf(nl) === 0;
|
|
3900
3900
|
}))
|
|
3901
3901
|
throw i.data.data;
|
|
3902
|
-
var o =
|
|
3902
|
+
var o = ir(this, function() {
|
|
3903
3903
|
return r.machine.transition(r.state, i, void 0, n || void 0);
|
|
3904
3904
|
});
|
|
3905
3905
|
return o;
|
|
@@ -3952,7 +3952,7 @@ Event: `
|
|
|
3952
3952
|
return this.spawnActor(e, n);
|
|
3953
3953
|
if (Pg(e))
|
|
3954
3954
|
return this.spawnObservable(e, n);
|
|
3955
|
-
if (
|
|
3955
|
+
if (vr(e))
|
|
3956
3956
|
return this.spawnMachine(e, W(W({}, r), {
|
|
3957
3957
|
id: n
|
|
3958
3958
|
}));
|
|
@@ -3993,7 +3993,7 @@ Event: `
|
|
|
3993
3993
|
}, function(c) {
|
|
3994
3994
|
if (!o) {
|
|
3995
3995
|
i.removeChild(n);
|
|
3996
|
-
var l =
|
|
3996
|
+
var l = Vr(n, c);
|
|
3997
3997
|
try {
|
|
3998
3998
|
i.send(ht(l, {
|
|
3999
3999
|
origin: n
|
|
@@ -4047,7 +4047,7 @@ Event: `
|
|
|
4047
4047
|
s.add(f);
|
|
4048
4048
|
});
|
|
4049
4049
|
} catch (f) {
|
|
4050
|
-
this.send(
|
|
4050
|
+
this.send(Vr(n, f));
|
|
4051
4051
|
}
|
|
4052
4052
|
if (ol(u))
|
|
4053
4053
|
return this.spawnPromise(u, n);
|
|
@@ -4087,7 +4087,7 @@ Event: `
|
|
|
4087
4087
|
origin: n
|
|
4088
4088
|
}));
|
|
4089
4089
|
}, function(c) {
|
|
4090
|
-
i.removeChild(n), i.send(ht(
|
|
4090
|
+
i.removeChild(n), i.send(ht(Vr(n, c), {
|
|
4091
4091
|
origin: n
|
|
4092
4092
|
}));
|
|
4093
4093
|
}, function() {
|
|
@@ -4210,7 +4210,7 @@ function sv(t) {
|
|
|
4210
4210
|
}
|
|
4211
4211
|
return t;
|
|
4212
4212
|
}
|
|
4213
|
-
function
|
|
4213
|
+
function Oi(t) {
|
|
4214
4214
|
return W(W({
|
|
4215
4215
|
type: Us
|
|
4216
4216
|
}, t), {
|
|
@@ -4224,7 +4224,7 @@ function xi(t) {
|
|
|
4224
4224
|
}
|
|
4225
4225
|
});
|
|
4226
4226
|
}
|
|
4227
|
-
var
|
|
4227
|
+
var Mi = "", Qs = "#", as = "*", Xn = {}, $n = function(t) {
|
|
4228
4228
|
return t[0] === Qs;
|
|
4229
4229
|
}, av = function() {
|
|
4230
4230
|
return {
|
|
@@ -4249,13 +4249,13 @@ var Oi = "", Qs = "#", as = "*", _n = {}, Xn = function(t) {
|
|
|
4249
4249
|
transitions: void 0,
|
|
4250
4250
|
candidates: {},
|
|
4251
4251
|
delayedTransitions: void 0
|
|
4252
|
-
}, this.idMap = {}, this.tags = [], this.options = Object.assign(av(), n), this.parent = i == null ? void 0 : i.parent, this.key = this.config.key || (i == null ? void 0 : i.key) || this.config.id || "(machine)", this.machine = this.parent ? this.parent.machine : this, this.path = this.parent ? this.parent.path.concat(this.key) : [], this.delimiter = this.config.delimiter || (this.parent ? this.parent.delimiter : Qu), this.id = this.config.id || We([this.machine.key], Te(this.path), !1).join(this.delimiter), this.version = this.parent ? this.parent.version : this.config.version, this.type = this.config.type || (this.config.parallel ? "parallel" : this.config.states && Object.keys(this.config.states).length ? "compound" : this.config.history ? "history" : "atomic"), this.schema = this.parent ? this.machine.schema : (s = this.config.schema) !== null && s !== void 0 ? s : {}, this.description = this.config.description, this.initial = this.config.initial, this.states = this.config.states ?
|
|
4252
|
+
}, this.idMap = {}, this.tags = [], this.options = Object.assign(av(), n), this.parent = i == null ? void 0 : i.parent, this.key = this.config.key || (i == null ? void 0 : i.key) || this.config.id || "(machine)", this.machine = this.parent ? this.parent.machine : this, this.path = this.parent ? this.parent.path.concat(this.key) : [], this.delimiter = this.config.delimiter || (this.parent ? this.parent.delimiter : Qu), this.id = this.config.id || We([this.machine.key], Te(this.path), !1).join(this.delimiter), this.version = this.parent ? this.parent.version : this.config.version, this.type = this.config.type || (this.config.parallel ? "parallel" : this.config.states && Object.keys(this.config.states).length ? "compound" : this.config.history ? "history" : "atomic"), this.schema = this.parent ? this.machine.schema : (s = this.config.schema) !== null && s !== void 0 ? s : {}, this.description = this.config.description, this.initial = this.config.initial, this.states = this.config.states ? Gr(this.config.states, function(l, u) {
|
|
4253
4253
|
var d, f = new t(l, {}, void 0, {
|
|
4254
4254
|
parent: o,
|
|
4255
4255
|
key: u
|
|
4256
4256
|
});
|
|
4257
4257
|
return Object.assign(o.idMap, W((d = {}, d[f.id] = f, d), f.idMap)), f;
|
|
4258
|
-
}) :
|
|
4258
|
+
}) : Xn;
|
|
4259
4259
|
var a = 0;
|
|
4260
4260
|
function c(l) {
|
|
4261
4261
|
var u, d;
|
|
@@ -4280,36 +4280,36 @@ var Oi = "", Qs = "#", as = "*", _n = {}, Xn = function(t) {
|
|
|
4280
4280
|
}
|
|
4281
4281
|
c(this), this.history = this.config.history === !0 ? "shallow" : this.config.history || !1, this._transient = !!this.config.always || (this.config.on ? Array.isArray(this.config.on) ? this.config.on.some(function(l) {
|
|
4282
4282
|
var u = l.event;
|
|
4283
|
-
return u ===
|
|
4284
|
-
}) :
|
|
4285
|
-
return
|
|
4283
|
+
return u === Mi;
|
|
4284
|
+
}) : Mi in this.config.on : !1), this.strict = !!this.config.strict, this.onEntry = jt(this.config.entry || this.config.onEntry).map(function(l) {
|
|
4285
|
+
return li(l);
|
|
4286
4286
|
}), this.onExit = jt(this.config.exit || this.config.onExit).map(function(l) {
|
|
4287
|
-
return
|
|
4287
|
+
return li(l);
|
|
4288
4288
|
}), this.meta = this.config.meta, this.doneData = this.type === "final" ? this.config.data : void 0, this.invoke = jt(this.config.invoke).map(function(l, u) {
|
|
4289
4289
|
var d, f;
|
|
4290
|
-
if (
|
|
4291
|
-
var p =
|
|
4292
|
-
return o.machine.options.services = W((d = {}, d[p] = l, d), o.machine.options.services),
|
|
4290
|
+
if (vr(l)) {
|
|
4291
|
+
var p = Ai(o.id, u);
|
|
4292
|
+
return o.machine.options.services = W((d = {}, d[p] = l, d), o.machine.options.services), Oi({
|
|
4293
4293
|
src: p,
|
|
4294
4294
|
id: p
|
|
4295
4295
|
});
|
|
4296
4296
|
} else if (Ue(l.src)) {
|
|
4297
|
-
var p = l.id ||
|
|
4298
|
-
return
|
|
4297
|
+
var p = l.id || Ai(o.id, u);
|
|
4298
|
+
return Oi(W(W({}, l), {
|
|
4299
4299
|
id: p,
|
|
4300
4300
|
src: l.src
|
|
4301
4301
|
}));
|
|
4302
|
-
} else if (
|
|
4303
|
-
var p = l.id ||
|
|
4304
|
-
return o.machine.options.services = W((f = {}, f[p] = l.src, f), o.machine.options.services),
|
|
4302
|
+
} else if (vr(l.src) || Ne(l.src)) {
|
|
4303
|
+
var p = l.id || Ai(o.id, u);
|
|
4304
|
+
return o.machine.options.services = W((f = {}, f[p] = l.src, f), o.machine.options.services), Oi(W(W({
|
|
4305
4305
|
id: p
|
|
4306
4306
|
}, l), {
|
|
4307
4307
|
src: p
|
|
4308
4308
|
}));
|
|
4309
4309
|
} else {
|
|
4310
4310
|
var g = l.src;
|
|
4311
|
-
return
|
|
4312
|
-
id:
|
|
4311
|
+
return Oi(W(W({
|
|
4312
|
+
id: Ai(o.id, u)
|
|
4313
4313
|
}, l), {
|
|
4314
4314
|
src: g
|
|
4315
4315
|
}));
|
|
@@ -4352,7 +4352,7 @@ var Oi = "", Qs = "#", as = "*", _n = {}, Xn = function(t) {
|
|
|
4352
4352
|
type: this.type,
|
|
4353
4353
|
initial: this.initial,
|
|
4354
4354
|
history: this.history,
|
|
4355
|
-
states:
|
|
4355
|
+
states: Gr(this.states, function(e) {
|
|
4356
4356
|
return e.definition;
|
|
4357
4357
|
}),
|
|
4358
4358
|
on: this.on,
|
|
@@ -4404,7 +4404,7 @@ var Oi = "", Qs = "#", as = "*", _n = {}, Xn = function(t) {
|
|
|
4404
4404
|
}), t.prototype.getCandidates = function(e) {
|
|
4405
4405
|
if (this.__cache.candidates[e])
|
|
4406
4406
|
return this.__cache.candidates[e];
|
|
4407
|
-
var n = e ===
|
|
4407
|
+
var n = e === Mi, r = this.transitions.filter(function(i) {
|
|
4408
4408
|
var o = i.eventType === e;
|
|
4409
4409
|
return n ? o : o || i.eventType === as;
|
|
4410
4410
|
});
|
|
@@ -4418,7 +4418,7 @@ var Oi = "", Qs = "#", as = "*", _n = {}, Xn = function(t) {
|
|
|
4418
4418
|
return e.onEntry.push(Tg(c, {
|
|
4419
4419
|
delay: o
|
|
4420
4420
|
})), e.onExit.push(jg(c)), c;
|
|
4421
|
-
}, i =
|
|
4421
|
+
}, i = wr(n) ? n.map(function(o, s) {
|
|
4422
4422
|
var a = r(o.delay, s);
|
|
4423
4423
|
return W(W({}, o), {
|
|
4424
4424
|
event: a
|
|
@@ -4444,7 +4444,7 @@ var Oi = "", Qs = "#", as = "*", _n = {}, Xn = function(t) {
|
|
|
4444
4444
|
var n, r = this;
|
|
4445
4445
|
if (!e)
|
|
4446
4446
|
return [];
|
|
4447
|
-
var i = e instanceof kt ? e.value :
|
|
4447
|
+
var i = e instanceof kt ? e.value : Kr(e, this.delimiter);
|
|
4448
4448
|
if (Ue(i)) {
|
|
4449
4449
|
var o = this.getStateNode(i).initial;
|
|
4450
4450
|
return o !== void 0 ? this.getStateNodes((n = {}, n[i] = o, n)) : [this, this.states[i]];
|
|
@@ -4457,7 +4457,7 @@ var Oi = "", Qs = "#", as = "*", _n = {}, Xn = function(t) {
|
|
|
4457
4457
|
var n = Yu(e);
|
|
4458
4458
|
return this.events.includes(n);
|
|
4459
4459
|
}, t.prototype.resolveState = function(e) {
|
|
4460
|
-
var n = e instanceof kt ? e : kt.create(e), r = Array.from(
|
|
4460
|
+
var n = e instanceof kt ? e : kt.create(e), r = Array.from(Qr([], this.getStateNodes(n.value)));
|
|
4461
4461
|
return new kt(W(W({}, n), {
|
|
4462
4462
|
value: this.resolve(n.value),
|
|
4463
4463
|
configuration: r,
|
|
@@ -4524,12 +4524,12 @@ var Oi = "", Qs = "#", as = "*", _n = {}, Xn = function(t) {
|
|
|
4524
4524
|
var r, i, o = this, s = n.name, a = [], c = [], l;
|
|
4525
4525
|
try {
|
|
4526
4526
|
for (var u = xe(this.getCandidates(s)), d = u.next(); !d.done; d = u.next()) {
|
|
4527
|
-
var f = d.value, p = f.cond, g = f.in, h = e.context, C = g ? Ue(g) &&
|
|
4527
|
+
var f = d.value, p = f.cond, g = f.in, h = e.context, C = g ? Ue(g) && $n(g) ? (
|
|
4528
4528
|
// Check if in state by ID
|
|
4529
|
-
e.matches(
|
|
4529
|
+
e.matches(Kr(this.getStateNodeById(g).path, this.delimiter))
|
|
4530
4530
|
) : (
|
|
4531
4531
|
// Check if in state by relative grandparent
|
|
4532
|
-
Ea(
|
|
4532
|
+
Ea(Kr(g, this.delimiter), Eg(this.path.slice(0, -2))(e.value))
|
|
4533
4533
|
) : !0, w = !1;
|
|
4534
4534
|
try {
|
|
4535
4535
|
w = !p || Zu(this.machine, p, h, n, e);
|
|
@@ -4583,13 +4583,13 @@ var Oi = "", Qs = "#", as = "*", _n = {}, Xn = function(t) {
|
|
|
4583
4583
|
n.push(r), r = r.parent;
|
|
4584
4584
|
return r !== i ? [] : (n.push(i), n);
|
|
4585
4585
|
}, t.prototype.getActions = function(e, n, r, i, o, s, a) {
|
|
4586
|
-
var c, l, u, d, f = this, p = s ?
|
|
4586
|
+
var c, l, u, d, f = this, p = s ? Qr([], this.getStateNodes(s.value)) : [], g = /* @__PURE__ */ new Set();
|
|
4587
4587
|
try {
|
|
4588
4588
|
for (var h = xe(Array.from(e).sort(function(A, k) {
|
|
4589
4589
|
return A.order - k.order;
|
|
4590
4590
|
})), C = h.next(); !C.done; C = h.next()) {
|
|
4591
4591
|
var w = C.value;
|
|
4592
|
-
(!
|
|
4592
|
+
(!Yr(p, w) || Yr(r.exitSet, w) || w.parent && g.has(w.parent)) && g.add(w);
|
|
4593
4593
|
}
|
|
4594
4594
|
} catch (A) {
|
|
4595
4595
|
c = {
|
|
@@ -4606,7 +4606,7 @@ var Oi = "", Qs = "#", as = "*", _n = {}, Xn = function(t) {
|
|
|
4606
4606
|
try {
|
|
4607
4607
|
for (var v = xe(p), y = v.next(); !y.done; y = v.next()) {
|
|
4608
4608
|
var w = y.value;
|
|
4609
|
-
(!
|
|
4609
|
+
(!Yr(e, w) || Yr(r.exitSet, w.parent)) && r.exitSet.push(w);
|
|
4610
4610
|
}
|
|
4611
4611
|
} catch (A) {
|
|
4612
4612
|
u = {
|
|
@@ -4633,14 +4633,14 @@ var Oi = "", Qs = "#", as = "*", _n = {}, Xn = function(t) {
|
|
|
4633
4633
|
if (!N.parent)
|
|
4634
4634
|
return k;
|
|
4635
4635
|
k.push(
|
|
4636
|
-
|
|
4636
|
+
xi(A.id, A.doneData),
|
|
4637
4637
|
// TODO: deprecate - final states should not emit done events for their own state.
|
|
4638
|
-
|
|
4638
|
+
xi(N.id, A.doneData ? bo(A.doneData, i, o) : void 0)
|
|
4639
4639
|
);
|
|
4640
4640
|
var z = N.parent;
|
|
4641
|
-
return z.type === "parallel" &&
|
|
4641
|
+
return z.type === "parallel" && ci(z).every(function(Q) {
|
|
4642
4642
|
return eo(r.configuration, Q);
|
|
4643
|
-
}) && k.push(
|
|
4643
|
+
}) && k.push(xi(z.id)), k;
|
|
4644
4644
|
})), b = x.map(function(A) {
|
|
4645
4645
|
var k = A.onEntry, N = A.activities.map(function(z) {
|
|
4646
4646
|
return Ug(z);
|
|
@@ -4696,14 +4696,14 @@ var Oi = "", Qs = "#", as = "*", _n = {}, Xn = function(t) {
|
|
|
4696
4696
|
exitSet: [],
|
|
4697
4697
|
source: s,
|
|
4698
4698
|
actions: []
|
|
4699
|
-
}, u =
|
|
4699
|
+
}, u = Qr([], this.getStateNodes(s.value)), d = l.configuration.length ? Qr(u, l.configuration) : u;
|
|
4700
4700
|
return l.configuration = We([], Te(d), !1), this.resolveTransition(l, s, s.context, i, o);
|
|
4701
4701
|
}, t.prototype.resolveRaisedTransition = function(e, n, r, i) {
|
|
4702
4702
|
var o, s = e.actions;
|
|
4703
4703
|
return e = this.transition(e, n, void 0, i), e._event = r, e.event = r.data, (o = e.actions).unshift.apply(o, We([], Te(s), !1)), e;
|
|
4704
4704
|
}, t.prototype.resolveTransition = function(e, n, r, i, o) {
|
|
4705
4705
|
var s, a, c, l, u = this;
|
|
4706
|
-
o === void 0 && (o =
|
|
4706
|
+
o === void 0 && (o = cr);
|
|
4707
4707
|
var d = e.configuration, f = !n || e.transitions.length > 0, p = f ? e.configuration : n ? n.configuration : [], g = eo(p, this), h = f ? qg(this.machine, d) : void 0, C = n ? n.historyValue ? n.historyValue : e.source ? this.machine.historyValue(n.value) : void 0 : void 0, w = this.getActions(new Set(p), g, e, r, o, n, i), v = n ? W({}, n.activities) : {};
|
|
4708
4708
|
try {
|
|
4709
4709
|
for (var y = xe(w), x = y.next(); !x.done; x = y.next()) {
|
|
@@ -4767,7 +4767,7 @@ var Oi = "", Qs = "#", as = "*", _n = {}, Xn = function(t) {
|
|
|
4767
4767
|
var D = !g && (this._transient || d.some(function(Y) {
|
|
4768
4768
|
return Y._transient;
|
|
4769
4769
|
}));
|
|
4770
|
-
if (!f && (!D || o.name ===
|
|
4770
|
+
if (!f && (!D || o.name === Mi))
|
|
4771
4771
|
return V;
|
|
4772
4772
|
var R = V;
|
|
4773
4773
|
if (!g)
|
|
@@ -4780,7 +4780,7 @@ var Oi = "", Qs = "#", as = "*", _n = {}, Xn = function(t) {
|
|
|
4780
4780
|
var H = R.changed || (T ? !!R.actions.length || K || typeof T.value != typeof R.value || !nd(R.value, T.value) : void 0);
|
|
4781
4781
|
return R.changed = H, R.history = T, R;
|
|
4782
4782
|
}, t.prototype.getStateNode = function(e) {
|
|
4783
|
-
if (
|
|
4783
|
+
if ($n(e))
|
|
4784
4784
|
return this.machine.getStateNodeById(e);
|
|
4785
4785
|
if (!this.states)
|
|
4786
4786
|
throw new Error("Unable to retrieve child state '".concat(e, "' from '").concat(this.id, "'; no child states exist."));
|
|
@@ -4789,7 +4789,7 @@ var Oi = "", Qs = "#", as = "*", _n = {}, Xn = function(t) {
|
|
|
4789
4789
|
throw new Error("Child state '".concat(e, "' does not exist on '").concat(this.id, "'"));
|
|
4790
4790
|
return n;
|
|
4791
4791
|
}, t.prototype.getStateNodeById = function(e) {
|
|
4792
|
-
var n =
|
|
4792
|
+
var n = $n(e) ? e.slice(Qs.length) : e;
|
|
4793
4793
|
if (n === this.id)
|
|
4794
4794
|
return this;
|
|
4795
4795
|
var r = this.machine.idMap[n];
|
|
@@ -4797,7 +4797,7 @@ var Oi = "", Qs = "#", as = "*", _n = {}, Xn = function(t) {
|
|
|
4797
4797
|
throw new Error("Child state node '#".concat(n, "' does not exist on machine '").concat(this.id, "'"));
|
|
4798
4798
|
return r;
|
|
4799
4799
|
}, t.prototype.getStateNodeByPath = function(e) {
|
|
4800
|
-
if (typeof e == "string" &&
|
|
4800
|
+
if (typeof e == "string" && $n(e))
|
|
4801
4801
|
try {
|
|
4802
4802
|
return this.getStateNodeById(e.slice(1));
|
|
4803
4803
|
} catch {
|
|
@@ -4812,25 +4812,25 @@ var Oi = "", Qs = "#", as = "*", _n = {}, Xn = function(t) {
|
|
|
4812
4812
|
}, t.prototype.resolve = function(e) {
|
|
4813
4813
|
var n, r = this;
|
|
4814
4814
|
if (!e)
|
|
4815
|
-
return this.initialStateValue ||
|
|
4815
|
+
return this.initialStateValue || Xn;
|
|
4816
4816
|
switch (this.type) {
|
|
4817
4817
|
case "parallel":
|
|
4818
|
-
return
|
|
4819
|
-
return o ? r.getStateNode(s).resolve(e[s] || o) :
|
|
4818
|
+
return Gr(this.initialStateValue, function(o, s) {
|
|
4819
|
+
return o ? r.getStateNode(s).resolve(e[s] || o) : Xn;
|
|
4820
4820
|
});
|
|
4821
4821
|
case "compound":
|
|
4822
4822
|
if (Ue(e)) {
|
|
4823
4823
|
var i = this.getStateNode(e);
|
|
4824
4824
|
return i.type === "parallel" || i.type === "compound" ? (n = {}, n[e] = i.initialStateValue, n) : e;
|
|
4825
4825
|
}
|
|
4826
|
-
return Object.keys(e).length ?
|
|
4827
|
-
return o ? r.getStateNode(s).resolve(o) :
|
|
4826
|
+
return Object.keys(e).length ? Gr(e, function(o, s) {
|
|
4827
|
+
return o ? r.getStateNode(s).resolve(o) : Xn;
|
|
4828
4828
|
}) : this.initialStateValue || {};
|
|
4829
4829
|
default:
|
|
4830
|
-
return e ||
|
|
4830
|
+
return e || Xn;
|
|
4831
4831
|
}
|
|
4832
4832
|
}, t.prototype.getResolvedPath = function(e) {
|
|
4833
|
-
if (
|
|
4833
|
+
if ($n(e)) {
|
|
4834
4834
|
var n = this.machine.idMap[e.slice(Qs.length)];
|
|
4835
4835
|
if (!n)
|
|
4836
4836
|
throw new Error("Unable to find state node '".concat(e, "'"));
|
|
@@ -4845,7 +4845,7 @@ var Oi = "", Qs = "#", as = "*", _n = {}, Xn = function(t) {
|
|
|
4845
4845
|
var n;
|
|
4846
4846
|
if (this.type === "parallel")
|
|
4847
4847
|
n = il(this.states, function(r) {
|
|
4848
|
-
return r.initialStateValue ||
|
|
4848
|
+
return r.initialStateValue || Xn;
|
|
4849
4849
|
}, function(r) {
|
|
4850
4850
|
return r.type !== "history";
|
|
4851
4851
|
});
|
|
@@ -4891,7 +4891,7 @@ var Oi = "", Qs = "#", as = "*", _n = {}, Xn = function(t) {
|
|
|
4891
4891
|
var e;
|
|
4892
4892
|
if (this.type === "history") {
|
|
4893
4893
|
var n = this.config;
|
|
4894
|
-
Ue(n.target) ? e =
|
|
4894
|
+
Ue(n.target) ? e = $n(n.target) ? yo(this.machine.getStateNodeById(n.target).path.slice(this.path.length - 1)) : n.target : e = n.target;
|
|
4895
4895
|
}
|
|
4896
4896
|
return e;
|
|
4897
4897
|
},
|
|
@@ -5079,13 +5079,13 @@ var Oi = "", Qs = "#", as = "*", _n = {}, Xn = function(t) {
|
|
|
5079
5079
|
else {
|
|
5080
5080
|
var o = this.config.on, s = as, a = o[s], c = a === void 0 ? [] : a, l = ba(o, [typeof s == "symbol" ? s : s + ""]);
|
|
5081
5081
|
i = _e(Object.keys(l).map(function(v) {
|
|
5082
|
-
var y =
|
|
5082
|
+
var y = _n(v, l[v]);
|
|
5083
5083
|
return y;
|
|
5084
|
-
}).concat(
|
|
5084
|
+
}).concat(_n(as, c)));
|
|
5085
5085
|
}
|
|
5086
|
-
var u = this.config.always ?
|
|
5086
|
+
var u = this.config.always ? _n("", this.config.always) : [], d = this.config.onDone ? _n(String(xi(this.id)), this.config.onDone) : [], f = _e(this.invoke.map(function(v) {
|
|
5087
5087
|
var y = [];
|
|
5088
|
-
return v.onDone && y.push.apply(y, We([], Te(
|
|
5088
|
+
return v.onDone && y.push.apply(y, We([], Te(_n(String($i(v.id)), v.onDone)), !1)), v.onError && y.push.apply(y, We([], Te(_n(String(Vr(v.id)), v.onError)), !1)), y;
|
|
5089
5089
|
})), p = this.after, g = _e(We(We(We(We([], Te(d), !1), Te(f), !1), Te(i), !1), Te(u), !1).map(function(v) {
|
|
5090
5090
|
return jt(v).map(function(y) {
|
|
5091
5091
|
return r.formatTransition(y);
|
|
@@ -5119,7 +5119,7 @@ var uv = Fg, Ys;
|
|
|
5119
5119
|
(function(t) {
|
|
5120
5120
|
t[t.Effect = 1] = "Effect", t[t.LayoutEffect = 2] = "LayoutEffect";
|
|
5121
5121
|
})(Ys || (Ys = {}));
|
|
5122
|
-
var
|
|
5122
|
+
var qr = va;
|
|
5123
5123
|
function ul(t) {
|
|
5124
5124
|
var e = ge.useRef();
|
|
5125
5125
|
return e.current || (e.current = { v: t() }), e.current.v;
|
|
@@ -5174,7 +5174,7 @@ function hv(t, e) {
|
|
|
5174
5174
|
}
|
|
5175
5175
|
return [o, s];
|
|
5176
5176
|
}
|
|
5177
|
-
var
|
|
5177
|
+
var Ir = globalThis && globalThis.__read || function(t, e) {
|
|
5178
5178
|
var n = typeof Symbol == "function" && t[Symbol.iterator];
|
|
5179
5179
|
if (!n)
|
|
5180
5180
|
return t;
|
|
@@ -5209,18 +5209,18 @@ function fl(t, e) {
|
|
|
5209
5209
|
}
|
|
5210
5210
|
function pv(t) {
|
|
5211
5211
|
var e = se([]), n = se([]);
|
|
5212
|
-
|
|
5212
|
+
qr(function() {
|
|
5213
5213
|
var r = t.subscribe(function(i) {
|
|
5214
5214
|
var o, s;
|
|
5215
5215
|
if (i.actions.length) {
|
|
5216
5216
|
var a = i.actions.filter(function(d) {
|
|
5217
5217
|
return typeof d.exec == "function" && "__effect" in d.exec;
|
|
5218
|
-
}), c =
|
|
5218
|
+
}), c = Ir(hv(a, function(d) {
|
|
5219
5219
|
return d.exec.__effect === Ys.Effect;
|
|
5220
5220
|
}), 2), l = c[0], u = c[1];
|
|
5221
|
-
(o = e.current).push.apply(o, dl([],
|
|
5221
|
+
(o = e.current).push.apply(o, dl([], Ir(l.map(function(d) {
|
|
5222
5222
|
return [d, i];
|
|
5223
|
-
})), !1)), (s = n.current).push.apply(s, dl([],
|
|
5223
|
+
})), !1)), (s = n.current).push.apply(s, dl([], Ir(u.map(function(d) {
|
|
5224
5224
|
return [d, i];
|
|
5225
5225
|
})), !1));
|
|
5226
5226
|
}
|
|
@@ -5228,27 +5228,27 @@ function pv(t) {
|
|
|
5228
5228
|
return function() {
|
|
5229
5229
|
r.unsubscribe();
|
|
5230
5230
|
};
|
|
5231
|
-
}, []),
|
|
5231
|
+
}, []), qr(function() {
|
|
5232
5232
|
for (; n.current.length; ) {
|
|
5233
|
-
var r =
|
|
5233
|
+
var r = Ir(n.current.shift(), 2), i = r[0], o = r[1];
|
|
5234
5234
|
fl(i, o);
|
|
5235
5235
|
}
|
|
5236
5236
|
}), E(function() {
|
|
5237
5237
|
for (; e.current.length; ) {
|
|
5238
|
-
var r =
|
|
5238
|
+
var r = Ir(e.current.shift(), 2), i = r[0], o = r[1];
|
|
5239
5239
|
fl(i, o);
|
|
5240
5240
|
}
|
|
5241
5241
|
});
|
|
5242
5242
|
}
|
|
5243
|
-
var
|
|
5244
|
-
return
|
|
5243
|
+
var Zr = globalThis && globalThis.__assign || function() {
|
|
5244
|
+
return Zr = Object.assign || function(t) {
|
|
5245
5245
|
for (var e, n = 1, r = arguments.length; n < r; n++) {
|
|
5246
5246
|
e = arguments[n];
|
|
5247
5247
|
for (var i in e)
|
|
5248
5248
|
Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
|
|
5249
5249
|
}
|
|
5250
5250
|
return t;
|
|
5251
|
-
},
|
|
5251
|
+
}, Zr.apply(this, arguments);
|
|
5252
5252
|
}, gv = globalThis && globalThis.__rest || function(t, e) {
|
|
5253
5253
|
var n = {};
|
|
5254
5254
|
for (var r in t)
|
|
@@ -5283,20 +5283,20 @@ function mv(t, e, n) {
|
|
|
5283
5283
|
services: c,
|
|
5284
5284
|
delays: l
|
|
5285
5285
|
}, g = r.withConfig(p, function() {
|
|
5286
|
-
return
|
|
5286
|
+
return Zr(Zr({}, r.context), i);
|
|
5287
5287
|
});
|
|
5288
|
-
return rd(g,
|
|
5288
|
+
return rd(g, Zr({ deferEvents: !0 }, d));
|
|
5289
5289
|
});
|
|
5290
|
-
return
|
|
5290
|
+
return qr(function() {
|
|
5291
5291
|
var p;
|
|
5292
5292
|
return n && (p = f.subscribe(vv(n))), function() {
|
|
5293
5293
|
p == null || p.unsubscribe();
|
|
5294
5294
|
};
|
|
5295
|
-
}, [n]),
|
|
5295
|
+
}, [n]), qr(function() {
|
|
5296
5296
|
return f.start(u ? kt.create(u) : void 0), function() {
|
|
5297
5297
|
f.stop();
|
|
5298
5298
|
};
|
|
5299
|
-
}, []),
|
|
5299
|
+
}, []), qr(function() {
|
|
5300
5300
|
Object.assign(f.machine.options.actions, s), Object.assign(f.machine.options.guards, o), Object.assign(f.machine.options.activities, a), Object.assign(f.machine.options.services, c), Object.assign(f.machine.options.delays, l);
|
|
5301
5301
|
}, [s, o, a, c, l]), pv(f), f;
|
|
5302
5302
|
}
|
|
@@ -5342,7 +5342,7 @@ function Xe() {
|
|
|
5342
5342
|
return t;
|
|
5343
5343
|
}, Xe.apply(this, arguments);
|
|
5344
5344
|
}
|
|
5345
|
-
function
|
|
5345
|
+
function ur(t, e) {
|
|
5346
5346
|
if (t == null)
|
|
5347
5347
|
return {};
|
|
5348
5348
|
var n = {}, r = Object.keys(t), i, o;
|
|
@@ -5390,16 +5390,16 @@ function Cv() {
|
|
|
5390
5390
|
function Dn(t, e) {
|
|
5391
5391
|
return Le.und(t) || Le.nul(t) ? e : t;
|
|
5392
5392
|
}
|
|
5393
|
-
function
|
|
5393
|
+
function Pi(t) {
|
|
5394
5394
|
return Le.und(t) ? [] : Le.arr(t) ? t : [t];
|
|
5395
5395
|
}
|
|
5396
|
-
function
|
|
5396
|
+
function sr(t) {
|
|
5397
5397
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), r = 1; r < e; r++)
|
|
5398
5398
|
n[r - 1] = arguments[r];
|
|
5399
5399
|
return Le.fun(t) ? t(...n) : t;
|
|
5400
5400
|
}
|
|
5401
5401
|
function Ev(t) {
|
|
5402
|
-
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,
|
|
5402
|
+
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, ur(t, ["to", "from", "config", "onStart", "onRest", "onFrame", "children", "reset", "reverse", "force", "immediate", "delay", "attach", "destroyed", "interpolateTo", "ref", "lazy"]);
|
|
5403
5403
|
}
|
|
5404
5404
|
function ls(t) {
|
|
5405
5405
|
const e = Ev(t);
|
|
@@ -5500,20 +5500,20 @@ const kv = (t) => Le.fun(t) && !(t.prototype instanceof ae.Component), Iv = (t)
|
|
|
5500
5500
|
}, []);
|
|
5501
5501
|
E(() => () => {
|
|
5502
5502
|
o.current = !1, s.current && s.current.detach();
|
|
5503
|
-
}, []),
|
|
5503
|
+
}, []), hi(r, () => Ov(a)), c(n);
|
|
5504
5504
|
const l = s.current.getValue();
|
|
5505
5505
|
l.scrollTop, l.scrollLeft;
|
|
5506
|
-
const u =
|
|
5506
|
+
const u = ur(l, ["scrollTop", "scrollLeft"]), d = kv(t) ? void 0 : (f) => a.current = Lv(f, r);
|
|
5507
5507
|
return ae.createElement(t, Xe({}, u, {
|
|
5508
5508
|
ref: d
|
|
5509
5509
|
}));
|
|
5510
5510
|
});
|
|
5511
|
-
let
|
|
5512
|
-
const
|
|
5513
|
-
if (!
|
|
5511
|
+
let Jr = !1;
|
|
5512
|
+
const zn = /* @__PURE__ */ new Set(), cd = () => {
|
|
5513
|
+
if (!Jr)
|
|
5514
5514
|
return !1;
|
|
5515
5515
|
let t = ad();
|
|
5516
|
-
for (let e of
|
|
5516
|
+
for (let e of zn) {
|
|
5517
5517
|
let n = !1;
|
|
5518
5518
|
for (let r = 0; r < e.configs.length; r++) {
|
|
5519
5519
|
let i = e.configs[r], o, s;
|
|
@@ -5548,13 +5548,13 @@ const Hn = /* @__PURE__ */ new Set(), cd = () => {
|
|
|
5548
5548
|
}
|
|
5549
5549
|
e.props.onFrame && (e.values[i.name] = i.interpolation.getValue());
|
|
5550
5550
|
}
|
|
5551
|
-
e.props.onFrame && e.props.onFrame(e.values), n || (
|
|
5551
|
+
e.props.onFrame && e.props.onFrame(e.values), n || (zn.delete(e), e.stop(!0));
|
|
5552
5552
|
}
|
|
5553
|
-
return
|
|
5553
|
+
return zn.size ? sd(cd) : Jr = !1, Jr;
|
|
5554
5554
|
}, Dv = (t) => {
|
|
5555
|
-
|
|
5555
|
+
zn.has(t) || zn.add(t), Jr || (Jr = !0, sd(cd));
|
|
5556
5556
|
}, Rv = (t) => {
|
|
5557
|
-
|
|
5557
|
+
zn.has(t) && zn.delete(t);
|
|
5558
5558
|
};
|
|
5559
5559
|
function Lo(t, e, n) {
|
|
5560
5560
|
if (typeof t == "function")
|
|
@@ -5592,9 +5592,9 @@ function Bv(t, e) {
|
|
|
5592
5592
|
;
|
|
5593
5593
|
return n - 1;
|
|
5594
5594
|
}
|
|
5595
|
-
class
|
|
5595
|
+
class mr extends Ws {
|
|
5596
5596
|
constructor(e, n, r, i) {
|
|
5597
|
-
super(), this.calc = void 0, this.payload = e instanceof Ws && !(e instanceof
|
|
5597
|
+
super(), this.calc = void 0, this.payload = e instanceof Ws && !(e instanceof mr) ? e.getPayload() : Array.isArray(e) ? e : [e], this.calc = Lo(n, r, i);
|
|
5598
5598
|
}
|
|
5599
5599
|
getValue() {
|
|
5600
5600
|
return this.calc(...this.payload.map((e) => e.getValue()));
|
|
@@ -5603,10 +5603,10 @@ class vr extends Ws {
|
|
|
5603
5603
|
this.calc = Lo(e, n, r);
|
|
5604
5604
|
}
|
|
5605
5605
|
interpolate(e, n, r) {
|
|
5606
|
-
return new
|
|
5606
|
+
return new mr(this, e, n, r);
|
|
5607
5607
|
}
|
|
5608
5608
|
}
|
|
5609
|
-
const
|
|
5609
|
+
const er = (t, e, n) => t && new mr(t, e, n), Nv = {
|
|
5610
5610
|
default: {
|
|
5611
5611
|
tension: 170,
|
|
5612
5612
|
friction: 26
|
|
@@ -5652,7 +5652,7 @@ class Ks extends Ut {
|
|
|
5652
5652
|
return this.value;
|
|
5653
5653
|
}
|
|
5654
5654
|
interpolate(e, n, r) {
|
|
5655
|
-
return new
|
|
5655
|
+
return new mr(this, e, n, r);
|
|
5656
5656
|
}
|
|
5657
5657
|
}
|
|
5658
5658
|
class jv extends Ws {
|
|
@@ -5666,7 +5666,7 @@ class jv extends Ws {
|
|
|
5666
5666
|
return this.payload.map((e) => e.getValue());
|
|
5667
5667
|
}
|
|
5668
5668
|
interpolate(e, n) {
|
|
5669
|
-
return new
|
|
5669
|
+
return new mr(this, e, n);
|
|
5670
5670
|
}
|
|
5671
5671
|
}
|
|
5672
5672
|
let Uv = 0, Hv = class {
|
|
@@ -5679,7 +5679,7 @@ let Uv = 0, Hv = class {
|
|
|
5679
5679
|
update(e) {
|
|
5680
5680
|
if (!e)
|
|
5681
5681
|
return this;
|
|
5682
|
-
const n = ls(e), r = n.delay, i = r === void 0 ? 0 : r, o = n.to, s =
|
|
5682
|
+
const n = ls(e), r = n.delay, i = r === void 0 ? 0 : r, o = n.to, s = ur(n, ["delay", "to"]);
|
|
5683
5683
|
if (Le.arr(o) || Le.fun(o))
|
|
5684
5684
|
this.queue.push(Xe({}, s, {
|
|
5685
5685
|
delay: i,
|
|
@@ -5693,7 +5693,7 @@ let Uv = 0, Hv = class {
|
|
|
5693
5693
|
to: {
|
|
5694
5694
|
[l]: u
|
|
5695
5695
|
},
|
|
5696
|
-
delay:
|
|
5696
|
+
delay: sr(i, l)
|
|
5697
5697
|
}, s), f = a[d.delay] && a[d.delay].to;
|
|
5698
5698
|
a[d.delay] = Xe({}, a[d.delay], d, {
|
|
5699
5699
|
to: Xe({}, f, d.to)
|
|
@@ -5712,7 +5712,7 @@ let Uv = 0, Hv = class {
|
|
|
5712
5712
|
});
|
|
5713
5713
|
const n = this.local = ++this.guid, r = this.localQueue = this.queue;
|
|
5714
5714
|
this.queue = [], r.forEach((i, o) => {
|
|
5715
|
-
let s = i.delay, a =
|
|
5715
|
+
let s = i.delay, a = ur(i, ["delay"]);
|
|
5716
5716
|
const c = (u) => {
|
|
5717
5717
|
o === r.length - 1 && n === this.guid && u && (this.idle = !0, this.props.onRest && this.props.onRest(this.merged)), e && e();
|
|
5718
5718
|
};
|
|
@@ -5735,7 +5735,7 @@ let Uv = 0, Hv = class {
|
|
|
5735
5735
|
runAsync(e, n) {
|
|
5736
5736
|
var r = this;
|
|
5737
5737
|
e.delay;
|
|
5738
|
-
let i =
|
|
5738
|
+
let i = ur(e, ["delay"]);
|
|
5739
5739
|
const o = this.local;
|
|
5740
5740
|
let s = Promise.resolve(void 0);
|
|
5741
5741
|
if (Le.arr(i.to))
|
|
@@ -5775,9 +5775,9 @@ let Uv = 0, Hv = class {
|
|
|
5775
5775
|
if (this.animations = Object.entries(this.merged).reduce((h, C) => {
|
|
5776
5776
|
let w = C[0], v = C[1], y = h[w] || {};
|
|
5777
5777
|
const x = Le.num(v), L = Le.str(v) && !v.startsWith("#") && !/\d/.test(v) && !od[v], m = Le.arr(v), b = !x && !m && !L;
|
|
5778
|
-
let S = Le.und(i[w]) ? v : i[w], P = x || m || L ? v : 1, O =
|
|
5778
|
+
let S = Le.und(i[w]) ? v : i[w], P = x || m || L ? v : 1, O = sr(c, w);
|
|
5779
5779
|
g && (P = g.animations[w].parent);
|
|
5780
|
-
let A = y.parent, k = y.interpolation, N =
|
|
5780
|
+
let A = y.parent, k = y.interpolation, N = Pi(g ? P.getPayload() : P), z, Q = v;
|
|
5781
5781
|
b && (Q = Eo({
|
|
5782
5782
|
range: [0, 1],
|
|
5783
5783
|
output: [v, v]
|
|
@@ -5797,9 +5797,9 @@ let Uv = 0, Hv = class {
|
|
|
5797
5797
|
};
|
|
5798
5798
|
y.interpolation ? (k = y.interpolation, y.interpolation.updateConfig(H)) : k = A.interpolate(H);
|
|
5799
5799
|
}
|
|
5800
|
-
return N =
|
|
5800
|
+
return N = Pi(g ? P.getPayload() : P), z = Pi(A.getPayload()), d && !b && A.setValue(S, !1), this.hasChanged = !0, z.forEach((G) => {
|
|
5801
5801
|
G.startPosition = G.value, G.lastPosition = G.value, G.lastVelocity = K ? G.lastVelocity : void 0, G.lastTime = K ? G.lastTime : void 0, G.startTime = ad(), G.done = !1, G.animatedStyles.clear();
|
|
5802
|
-
}),
|
|
5802
|
+
}), sr(f, w) && A.setValue(b ? P : v, !1), Xe({}, h, {
|
|
5803
5803
|
[w]: Xe({}, y, {
|
|
5804
5804
|
name: w,
|
|
5805
5805
|
parent: A,
|
|
@@ -5808,8 +5808,8 @@ let Uv = 0, Hv = class {
|
|
|
5808
5808
|
toValues: N,
|
|
5809
5809
|
previous: Q,
|
|
5810
5810
|
config: O,
|
|
5811
|
-
fromValues:
|
|
5812
|
-
immediate:
|
|
5811
|
+
fromValues: Pi(A.getValue()),
|
|
5812
|
+
immediate: sr(f, w),
|
|
5813
5813
|
initialVelocity: Dn(O.velocity, 0),
|
|
5814
5814
|
clamp: Dn(O.clamp, !1),
|
|
5815
5815
|
precision: Dn(O.precision, 0.01),
|
|
@@ -5845,11 +5845,11 @@ const zv = (t, e) => {
|
|
|
5845
5845
|
r.current && (r.current.map((d) => d.destroy()), r.current = void 0);
|
|
5846
5846
|
let u;
|
|
5847
5847
|
return [new Array(t).fill().map((d, f) => {
|
|
5848
|
-
const p = new Hv(), g = i ?
|
|
5848
|
+
const p = new Hv(), g = i ? sr(e, f, p) : e[f];
|
|
5849
5849
|
return f === 0 && (u = g.ref), p.update(g), u || p.start(), p;
|
|
5850
5850
|
}), u];
|
|
5851
5851
|
}, [t]), s = o[0], a = o[1];
|
|
5852
|
-
r.current = s,
|
|
5852
|
+
r.current = s, hi(a, () => ({
|
|
5853
5853
|
start: () => Promise.all(r.current.map((u) => new Promise((d) => u.start(d)))),
|
|
5854
5854
|
stop: (u) => r.current.forEach((d) => d.stop(u)),
|
|
5855
5855
|
get controllers() {
|
|
@@ -5857,7 +5857,7 @@ const zv = (t, e) => {
|
|
|
5857
5857
|
}
|
|
5858
5858
|
}));
|
|
5859
5859
|
const c = lt(() => (u) => r.current.map((d, f) => {
|
|
5860
|
-
d.update(i ?
|
|
5860
|
+
d.update(i ? sr(u, f, d) : u[f]), a || d.start();
|
|
5861
5861
|
}), [t]);
|
|
5862
5862
|
E(() => {
|
|
5863
5863
|
n.current ? i || c(e) : a || r.current.forEach((u) => u.start());
|
|
@@ -6033,13 +6033,13 @@ function Go() {
|
|
|
6033
6033
|
const Vv = new RegExp("rgb" + Go(Ht, Ht, Ht)), Qv = new RegExp("rgba" + Go(Ht, Ht, Ht, Ht)), Yv = new RegExp("hsl" + Go(Ht, Ao, Ao)), Wv = new RegExp("hsla" + Go(Ht, Ao, Ao, Ht)), Kv = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, qv = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, Zv = /^#([0-9a-fA-F]{6})$/, Jv = /^#([0-9a-fA-F]{8})$/;
|
|
6034
6034
|
function _v(t) {
|
|
6035
6035
|
let e;
|
|
6036
|
-
return typeof t == "number" ? t >>> 0 === t && t >= 0 && t <= 4294967295 ? t : null : (e = Zv.exec(t)) ? parseInt(e[1] + "ff", 16) >>> 0 : So.hasOwnProperty(t) ? So[t] : (e = Vv.exec(t)) ? (
|
|
6037
|
-
|
|
6038
|
-
|
|
6036
|
+
return typeof t == "number" ? t >>> 0 === t && t >= 0 && t <= 4294967295 ? t : null : (e = Zv.exec(t)) ? parseInt(e[1] + "ff", 16) >>> 0 : So.hasOwnProperty(t) ? So[t] : (e = Vv.exec(t)) ? (tr(e[1]) << 24 | // r
|
|
6037
|
+
tr(e[2]) << 16 | // g
|
|
6038
|
+
tr(e[3]) << 8 | // b
|
|
6039
6039
|
255) >>> // a
|
|
6040
|
-
0 : (e = Qv.exec(t)) ? (
|
|
6041
|
-
|
|
6042
|
-
|
|
6040
|
+
0 : (e = Qv.exec(t)) ? (tr(e[1]) << 24 | // r
|
|
6041
|
+
tr(e[2]) << 16 | // g
|
|
6042
|
+
tr(e[3]) << 8 | // b
|
|
6043
6043
|
gl(e[4])) >>> // a
|
|
6044
6044
|
0 : (e = Kv.exec(t)) ? parseInt(
|
|
6045
6045
|
e[1] + e[1] + // r
|
|
@@ -6058,17 +6058,17 @@ function _v(t) {
|
|
|
6058
6058
|
) >>> 0 : (e = Yv.exec(t)) ? (hl(
|
|
6059
6059
|
pl(e[1]),
|
|
6060
6060
|
// h
|
|
6061
|
-
|
|
6061
|
+
ki(e[2]),
|
|
6062
6062
|
// s
|
|
6063
|
-
|
|
6063
|
+
ki(e[3])
|
|
6064
6064
|
// l
|
|
6065
6065
|
) | 255) >>> // a
|
|
6066
6066
|
0 : (e = Wv.exec(t)) ? (hl(
|
|
6067
6067
|
pl(e[1]),
|
|
6068
6068
|
// h
|
|
6069
|
-
|
|
6069
|
+
ki(e[2]),
|
|
6070
6070
|
// s
|
|
6071
|
-
|
|
6071
|
+
ki(e[3])
|
|
6072
6072
|
// l
|
|
6073
6073
|
) | gl(e[4])) >>> // a
|
|
6074
6074
|
0 : null;
|
|
@@ -6080,7 +6080,7 @@ function hl(t, e, n) {
|
|
|
6080
6080
|
const r = n < 0.5 ? n * (1 + e) : n + e - n * e, i = 2 * n - r, o = cs(i, r, t + 1 / 3), s = cs(i, r, t), a = cs(i, r, t - 1 / 3);
|
|
6081
6081
|
return Math.round(o * 255) << 24 | Math.round(s * 255) << 16 | Math.round(a * 255) << 8;
|
|
6082
6082
|
}
|
|
6083
|
-
function
|
|
6083
|
+
function tr(t) {
|
|
6084
6084
|
const e = parseInt(t, 10);
|
|
6085
6085
|
return e < 0 ? 0 : e > 255 ? 255 : e;
|
|
6086
6086
|
}
|
|
@@ -6091,7 +6091,7 @@ function gl(t) {
|
|
|
6091
6091
|
const e = parseFloat(t);
|
|
6092
6092
|
return e < 0 ? 0 : e > 1 ? 255 : Math.round(e * 255);
|
|
6093
6093
|
}
|
|
6094
|
-
function
|
|
6094
|
+
function ki(t) {
|
|
6095
6095
|
const e = parseFloat(t);
|
|
6096
6096
|
return e < 0 ? 0 : e > 100 ? 1 : e / 100;
|
|
6097
6097
|
}
|
|
@@ -6103,20 +6103,20 @@ function vl(t) {
|
|
|
6103
6103
|
let n = (e & 4278190080) >>> 24, r = (e & 16711680) >>> 16, i = (e & 65280) >>> 8, o = (e & 255) / 255;
|
|
6104
6104
|
return `rgba(${n}, ${r}, ${i}, ${o})`;
|
|
6105
6105
|
}
|
|
6106
|
-
const
|
|
6107
|
-
const e = t.output.map((i) => i.replace(Xv, vl)).map((i) => i.replace($v, vl)), n = e[0].match(
|
|
6106
|
+
const Ii = /[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, Xv = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi, $v = new RegExp(`(${Object.keys(So).join("|")})`, "g"), em = (t) => {
|
|
6107
|
+
const e = t.output.map((i) => i.replace(Xv, vl)).map((i) => i.replace($v, vl)), n = e[0].match(Ii).map(() => []);
|
|
6108
6108
|
e.forEach((i) => {
|
|
6109
|
-
i.match(
|
|
6109
|
+
i.match(Ii).forEach((o, s) => n[s].push(+o));
|
|
6110
6110
|
});
|
|
6111
|
-
const r = e[0].match(
|
|
6111
|
+
const r = e[0].match(Ii).map((i, o) => Lo(Xe({}, t, {
|
|
6112
6112
|
output: n[o]
|
|
6113
6113
|
})));
|
|
6114
6114
|
return (i) => {
|
|
6115
6115
|
let o = 0;
|
|
6116
|
-
return e[0].replace(
|
|
6116
|
+
return e[0].replace(Ii, () => r[o++](i)).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi, (s, a, c, l, u) => `rgba(${Math.round(a)}, ${Math.round(c)}, ${Math.round(l)}, ${u})`);
|
|
6117
6117
|
};
|
|
6118
6118
|
};
|
|
6119
|
-
let
|
|
6119
|
+
let _r = {
|
|
6120
6120
|
animationIterationCount: !0,
|
|
6121
6121
|
borderImageOutset: !0,
|
|
6122
6122
|
borderImageSlice: !0,
|
|
@@ -6161,9 +6161,9 @@ let Jr = {
|
|
|
6161
6161
|
strokeWidth: !0
|
|
6162
6162
|
};
|
|
6163
6163
|
const tm = (t, e) => t + e.charAt(0).toUpperCase() + e.substring(1), nm = ["Webkit", "Ms", "Moz", "O"];
|
|
6164
|
-
|
|
6164
|
+
_r = Object.keys(_r).reduce((t, e) => (nm.forEach((n) => t[tm(n, e)] = t[e]), t), _r);
|
|
6165
6165
|
function rm(t, e, n) {
|
|
6166
|
-
return e == null || typeof e == "boolean" || e === "" ? "" : !n && typeof e == "number" && e !== 0 && !(
|
|
6166
|
+
return e == null || typeof e == "boolean" || e === "" ? "" : !n && typeof e == "number" && e !== 0 && !(_r.hasOwnProperty(t) && _r[t]) ? e + "px" : ("" + e).trim();
|
|
6167
6167
|
}
|
|
6168
6168
|
const ml = {};
|
|
6169
6169
|
Mv((t) => new Gv(t));
|
|
@@ -6171,7 +6171,7 @@ xv(em);
|
|
|
6171
6171
|
Av(So);
|
|
6172
6172
|
Sv((t, e) => {
|
|
6173
6173
|
if (t.nodeType && t.setAttribute !== void 0) {
|
|
6174
|
-
const i = e.style, o = e.children, s = e.scrollTop, a = e.scrollLeft, c =
|
|
6174
|
+
const i = e.style, o = e.children, s = e.scrollTop, a = e.scrollLeft, c = ur(e, ["style", "children", "scrollTop", "scrollLeft"]), l = t.nodeName === "filter" || t.parentNode && t.parentNode.nodeName === "filter";
|
|
6175
6175
|
s !== void 0 && (t.scrollTop = s), a !== void 0 && (t.scrollLeft = a), o !== void 0 && (t.textContent = o);
|
|
6176
6176
|
for (let u in i)
|
|
6177
6177
|
if (i.hasOwnProperty(u)) {
|
|
@@ -6360,7 +6360,7 @@ function cm(t, e) {
|
|
|
6360
6360
|
function bl(t, e, n) {
|
|
6361
6361
|
return e === 0 || Math.abs(e) === 1 / 0 ? cm(t, n) : t * e * n / (e + n * t);
|
|
6362
6362
|
}
|
|
6363
|
-
function
|
|
6363
|
+
function Xr(t, e, n, r) {
|
|
6364
6364
|
return r === void 0 && (r = 0.15), r === 0 ? lm(t, e, n) : t < e ? -bl(e - t, n - e, r) + e : t > n ? +bl(t - n, n - e, r) + n : t;
|
|
6365
6365
|
}
|
|
6366
6366
|
function wl(t, e) {
|
|
@@ -6393,7 +6393,7 @@ function dm(t, e) {
|
|
|
6393
6393
|
i = r[o], !(e.indexOf(i) >= 0) && (n[i] = t[i]);
|
|
6394
6394
|
return n;
|
|
6395
6395
|
}
|
|
6396
|
-
function
|
|
6396
|
+
function Di(t) {
|
|
6397
6397
|
if (t === void 0)
|
|
6398
6398
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6399
6399
|
return t;
|
|
@@ -6456,7 +6456,7 @@ function wn(t, e) {
|
|
|
6456
6456
|
}
|
|
6457
6457
|
return Array.isArray(t) ? t : [t, t];
|
|
6458
6458
|
}
|
|
6459
|
-
function
|
|
6459
|
+
function Ri(t) {
|
|
6460
6460
|
if (typeof t == "function") {
|
|
6461
6461
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), r = 1; r < e; r++)
|
|
6462
6462
|
n[r - 1] = arguments[r];
|
|
@@ -6577,7 +6577,7 @@ function Lm(t) {
|
|
|
6577
6577
|
});
|
|
6578
6578
|
return s.drag = Em(o), s;
|
|
6579
6579
|
}
|
|
6580
|
-
function
|
|
6580
|
+
function Dr(t) {
|
|
6581
6581
|
return bt({
|
|
6582
6582
|
_active: !1,
|
|
6583
6583
|
_blocked: !1,
|
|
@@ -6626,7 +6626,7 @@ function vd() {
|
|
|
6626
6626
|
altKey: !1,
|
|
6627
6627
|
metaKey: !1,
|
|
6628
6628
|
ctrlKey: !1
|
|
6629
|
-
}, e =
|
|
6629
|
+
}, e = Dr({
|
|
6630
6630
|
axis: void 0,
|
|
6631
6631
|
xy: [0, 0],
|
|
6632
6632
|
vxvy: [0, 0],
|
|
@@ -6637,25 +6637,25 @@ function vd() {
|
|
|
6637
6637
|
_pointerId: void 0,
|
|
6638
6638
|
tap: !1,
|
|
6639
6639
|
swipe: [0, 0]
|
|
6640
|
-
}), n =
|
|
6640
|
+
}), n = Dr({
|
|
6641
6641
|
da: [0, 0],
|
|
6642
6642
|
vdva: [0, 0],
|
|
6643
6643
|
// @ts-ignore origin can never be passed as undefined in userland
|
|
6644
6644
|
origin: void 0,
|
|
6645
6645
|
turns: 0
|
|
6646
|
-
}), r =
|
|
6646
|
+
}), r = Dr({
|
|
6647
6647
|
axis: void 0,
|
|
6648
6648
|
xy: [0, 0],
|
|
6649
6649
|
vxvy: [0, 0],
|
|
6650
6650
|
velocity: 0,
|
|
6651
6651
|
distance: 0
|
|
6652
|
-
}), i =
|
|
6652
|
+
}), i = Dr({
|
|
6653
6653
|
axis: void 0,
|
|
6654
6654
|
xy: [0, 0],
|
|
6655
6655
|
vxvy: [0, 0],
|
|
6656
6656
|
velocity: 0,
|
|
6657
6657
|
distance: 0
|
|
6658
|
-
}), o =
|
|
6658
|
+
}), o = Dr({
|
|
6659
6659
|
axis: void 0,
|
|
6660
6660
|
xy: [0, 0],
|
|
6661
6661
|
vxvy: [0, 0],
|
|
@@ -6671,7 +6671,7 @@ function vd() {
|
|
|
6671
6671
|
scroll: o
|
|
6672
6672
|
};
|
|
6673
6673
|
}
|
|
6674
|
-
var
|
|
6674
|
+
var Nn = /* @__PURE__ */ new Map(), Sm = /* @__PURE__ */ function() {
|
|
6675
6675
|
function t(n, r) {
|
|
6676
6676
|
var i = this;
|
|
6677
6677
|
r === void 0 && (r = []), this.controller = n, this.args = r, this.debounced = !0, this.setTimeout = function(o, s) {
|
|
@@ -6713,9 +6713,9 @@ var Bn = /* @__PURE__ */ new Map(), Sm = /* @__PURE__ */ function() {
|
|
|
6713
6713
|
delta: [0, 0]
|
|
6714
6714
|
});
|
|
6715
6715
|
var x = y._intentional, L = C, m, b;
|
|
6716
|
-
if (x[0] !== !1 && p[0] === !1 && (b =
|
|
6716
|
+
if (x[0] !== !1 && p[0] === !1 && (b = Ri(o, this.state), m = Ri(s, this.state), d[0] = b[0], u[0] = m[0]), x[1] !== !1 && p[1] === !1) {
|
|
6717
6717
|
var S, P;
|
|
6718
|
-
b = (S = b) != null ? S :
|
|
6718
|
+
b = (S = b) != null ? S : Ri(o, this.state), m = (P = m) != null ? P : Ri(s, this.state), d[1] = b[1], u[1] = m[1];
|
|
6719
6719
|
}
|
|
6720
6720
|
var O = [x[0] !== !1 ? C[0] - x[0] : d[0], x[1] !== !1 ? C[1] - x[1] : d[1]], A = yl(O, g), k = f ? a : [0, 0];
|
|
6721
6721
|
return O = Ll(u, yl(O, d), k), bt({}, y, {
|
|
@@ -6759,7 +6759,7 @@ function El(t, e) {
|
|
|
6759
6759
|
}
|
|
6760
6760
|
function Ll(t, e, n) {
|
|
6761
6761
|
var r = e[0], i = e[1], o = n[0], s = n[1], a = t[0], c = a[0], l = a[1], u = t[1], d = u[0], f = u[1];
|
|
6762
|
-
return [
|
|
6762
|
+
return [Xr(r, c, l, o), Xr(i, d, f, s)];
|
|
6763
6763
|
}
|
|
6764
6764
|
function us(t, e, n) {
|
|
6765
6765
|
var r = t.state, i = t.args, o = e.timeStamp, s = e.type, a = r.values, c = n ? 0 : o - r.startTime;
|
|
@@ -6812,7 +6812,7 @@ var Om = function(e) {
|
|
|
6812
6812
|
return n.config.domTarget && n.bind(), n.clean;
|
|
6813
6813
|
}, this.clean = function() {
|
|
6814
6814
|
var r = yd(n.config), i = n.config.eventOptions;
|
|
6815
|
-
r &&
|
|
6815
|
+
r && vi(r, md(n.domListeners), i), Object.values(n.timeouts).forEach(clearTimeout), Mm(n);
|
|
6816
6816
|
}, this.state = vd(), this.timeouts = {}, this.domListeners = [], this.windowListeners = {};
|
|
6817
6817
|
};
|
|
6818
6818
|
function Mm(t) {
|
|
@@ -6820,25 +6820,25 @@ function Mm(t) {
|
|
|
6820
6820
|
if (n) {
|
|
6821
6821
|
for (var o in i) {
|
|
6822
6822
|
var s = i[o];
|
|
6823
|
-
|
|
6823
|
+
vi(n, s, r);
|
|
6824
6824
|
}
|
|
6825
6825
|
t.windowListeners = {};
|
|
6826
6826
|
}
|
|
6827
6827
|
}
|
|
6828
6828
|
function Pm(t, e) {
|
|
6829
6829
|
var n = t.config, r = t.windowListeners;
|
|
6830
|
-
n.window && (
|
|
6830
|
+
n.window && (vi(n.window, r[e], n.eventOptions), delete r[e]);
|
|
6831
6831
|
}
|
|
6832
6832
|
function km(t, e, n) {
|
|
6833
6833
|
var r = t.config, i = t.windowListeners;
|
|
6834
|
-
n === void 0 && (n = []), r.window && (
|
|
6834
|
+
n === void 0 && (n = []), r.window && (vi(r.window, i[e], r.eventOptions), bd(r.window, i[e] = n, r.eventOptions));
|
|
6835
6835
|
}
|
|
6836
6836
|
function Im(t, e) {
|
|
6837
6837
|
var n = t.config, r = t.domListeners, i = yd(n);
|
|
6838
6838
|
if (!i)
|
|
6839
6839
|
throw new Error("domTarget must be defined");
|
|
6840
6840
|
var o = n.eventOptions;
|
|
6841
|
-
|
|
6841
|
+
vi(i, md(r), o);
|
|
6842
6842
|
for (var s = 0, a = Object.entries(e); s < a.length; s++) {
|
|
6843
6843
|
var c = a[s], l = c[0], u = c[1], d = l.slice(2).toLowerCase();
|
|
6844
6844
|
r.push([d, pd.apply(void 0, u)]);
|
|
@@ -6869,7 +6869,7 @@ function bd(t, e, n) {
|
|
|
6869
6869
|
t.addEventListener(s, a, n);
|
|
6870
6870
|
}
|
|
6871
6871
|
}
|
|
6872
|
-
function
|
|
6872
|
+
function vi(t, e, n) {
|
|
6873
6873
|
e === void 0 && (e = []), n === void 0 && (n = {});
|
|
6874
6874
|
for (var r = Vo(e), i; !(i = r()).done; ) {
|
|
6875
6875
|
var o = i.value, s = o[0], a = o[1];
|
|
@@ -6887,7 +6887,7 @@ function Tm() {
|
|
|
6887
6887
|
}
|
|
6888
6888
|
function Bm(t) {
|
|
6889
6889
|
var e = /* @__PURE__ */ new Set();
|
|
6890
|
-
return t.drag && e.add(
|
|
6890
|
+
return t.drag && e.add(Nn.get("drag")), t.wheel && e.add(Nn.get("wheel")), t.scroll && e.add(Nn.get("scroll")), t.move && e.add(Nn.get("move")), t.pinch && e.add(Nn.get("pinch")), t.hover && e.add(Nn.get("hover")), e;
|
|
6891
6891
|
}
|
|
6892
6892
|
var Nm = /* @__PURE__ */ function(t) {
|
|
6893
6893
|
fd(e, t);
|
|
@@ -6965,7 +6965,7 @@ var jm = 3, Um = 220, Hm = /* @__PURE__ */ function(t) {
|
|
|
6965
6965
|
return r = t.apply(this, arguments) || this, r.ingKey = "dragging", r.stateKey = "drag", r.onDragStart = function(i) {
|
|
6966
6966
|
!r.enabled || r.state._active || (km(r.controller, r.stateKey, [["pointermove", r.onDragChange], ["pointerup", r.onDragEnd], ["pointercancel", r.onDragEnd]]), r.updateGestureState({
|
|
6967
6967
|
_pointerId: i.pointerId
|
|
6968
|
-
}), r.config.delay > 0 ? (r.state._delayedEvent = !0, "persist" in i && typeof i.persist == "function" && i.persist(), r.setTimeout(r.startDrag.bind(
|
|
6968
|
+
}), r.config.delay > 0 ? (r.state._delayedEvent = !0, "persist" in i && typeof i.persist == "function" && i.persist(), r.setTimeout(r.startDrag.bind(Di(r)), r.config.delay, i)) : r.startDrag(i));
|
|
6969
6969
|
}, r.onDragChange = function(i) {
|
|
6970
6970
|
if (!r.state.canceled && i.pointerId === r.state._pointerId) {
|
|
6971
6971
|
if (!r.state._active) {
|
|
@@ -6978,7 +6978,7 @@ var jm = 3, Um = 220, Hm = /* @__PURE__ */ function(t) {
|
|
|
6978
6978
|
return;
|
|
6979
6979
|
}
|
|
6980
6980
|
r.updateSharedState(o);
|
|
6981
|
-
var s = Al(i), a = r.getKinematics(s, i), c = us(
|
|
6981
|
+
var s = Al(i), a = r.getKinematics(s, i), c = us(Di(r), i), l = r.state._isTap, u = qs(a._movement);
|
|
6982
6982
|
l && u >= jm && (l = !1), r.updateGestureState(bt({}, c, a, {
|
|
6983
6983
|
_isTap: l
|
|
6984
6984
|
})), r.fireGestureHandler();
|
|
@@ -6990,14 +6990,14 @@ var jm = 3, Um = 220, Hm = /* @__PURE__ */ function(t) {
|
|
|
6990
6990
|
buttons: 0,
|
|
6991
6991
|
touches: 0
|
|
6992
6992
|
});
|
|
6993
|
-
var o = r.state._isTap, s = r.state.velocities, a = s[0], c = s[1], l = r.state.movement, u = l[0], d = l[1], f = r.state._intentional, p = f[0], g = f[1], h = r.config.swipeVelocity, C = h[0], w = h[1], v = r.config.swipeDistance, y = v[0], x = v[1], L = bt({}, us(
|
|
6993
|
+
var o = r.state._isTap, s = r.state.velocities, a = s[0], c = s[1], l = r.state.movement, u = l[0], d = l[1], f = r.state._intentional, p = f[0], g = f[1], h = r.config.swipeVelocity, C = h[0], w = h[1], v = r.config.swipeDistance, y = v[0], x = v[1], L = bt({}, us(Di(r), i), r.getMovement(r.state.values)), m = [0, 0];
|
|
6994
6994
|
L.elapsedTime < Um && (p !== !1 && Math.abs(a) > C && Math.abs(u) > y && (m[0] = Zs(a)), g !== !1 && Math.abs(c) > w && Math.abs(d) > x && (m[1] = Zs(c))), r.updateGestureState(bt({}, L, {
|
|
6995
6995
|
tap: o,
|
|
6996
6996
|
swipe: m
|
|
6997
6997
|
})), r.fireGestureHandler(o === !0);
|
|
6998
6998
|
}
|
|
6999
6999
|
}, r.clean = function() {
|
|
7000
|
-
t.prototype.clean.call(
|
|
7000
|
+
t.prototype.clean.call(Di(r)), r.state._delayedEvent = !1, Pm(r.controller, r.stateKey);
|
|
7001
7001
|
}, r.onCancel = function() {
|
|
7002
7002
|
r.state.canceled || (r.updateGestureState({
|
|
7003
7003
|
canceled: !0
|
|
@@ -7100,7 +7100,7 @@ function Fm(t, e) {
|
|
|
7100
7100
|
}
|
|
7101
7101
|
}
|
|
7102
7102
|
function Gm(t, e) {
|
|
7103
|
-
e === void 0 && (e = {}),
|
|
7103
|
+
e === void 0 && (e = {}), Nn.set("drag", Hm);
|
|
7104
7104
|
var n = se();
|
|
7105
7105
|
return n.current || (n.current = zm(Lm, Fm)), Rm({
|
|
7106
7106
|
drag: t
|
|
@@ -7110,14 +7110,14 @@ function Gm(t, e) {
|
|
|
7110
7110
|
* tabbable 5.3.3
|
|
7111
7111
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
7112
7112
|
*/
|
|
7113
|
-
var Cd = ["input", "select", "textarea", "a[href]", "button", "[tabindex]:not(slot)", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])', "details>summary:first-of-type", "details"], xo = /* @__PURE__ */ Cd.join(","), Ed = typeof Element > "u",
|
|
7113
|
+
var Cd = ["input", "select", "textarea", "a[href]", "button", "[tabindex]:not(slot)", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])', "details>summary:first-of-type", "details"], xo = /* @__PURE__ */ Cd.join(","), Ed = typeof Element > "u", Vn = Ed ? function() {
|
|
7114
7114
|
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, _s = !Ed && Element.prototype.getRootNode ? function(t) {
|
|
7115
7115
|
return t.getRootNode();
|
|
7116
7116
|
} : function(t) {
|
|
7117
7117
|
return t.ownerDocument;
|
|
7118
7118
|
}, Ld = function(e, n, r) {
|
|
7119
7119
|
var i = Array.prototype.slice.apply(e.querySelectorAll(xo));
|
|
7120
|
-
return n &&
|
|
7120
|
+
return n && Vn.call(e, xo) && i.unshift(e), i = i.filter(r), i;
|
|
7121
7121
|
}, Sd = function t(e, n, r) {
|
|
7122
7122
|
for (var i = [], o = Array.from(e); o.length; ) {
|
|
7123
7123
|
var s = o.shift();
|
|
@@ -7128,7 +7128,7 @@ var Cd = ["input", "select", "textarea", "a[href]", "button", "[tabindex]:not(sl
|
|
|
7128
7128
|
candidates: l
|
|
7129
7129
|
});
|
|
7130
7130
|
} else {
|
|
7131
|
-
var u =
|
|
7131
|
+
var u = Vn.call(s, xo);
|
|
7132
7132
|
u && r.filter(s) && (n || !e.includes(s)) && i.push(s);
|
|
7133
7133
|
var d = s.shadowRoot || // check for an undisclosed shadow
|
|
7134
7134
|
typeof r.getShadowRoot == "function" && r.getShadowRoot(s), f = !r.shadowRootFilter || r.shadowRootFilter(s);
|
|
@@ -7187,8 +7187,8 @@ var Cd = ["input", "select", "textarea", "a[href]", "button", "[tabindex]:not(sl
|
|
|
7187
7187
|
var r = n.displayCheck, i = n.getShadowRoot;
|
|
7188
7188
|
if (getComputedStyle(e).visibility === "hidden")
|
|
7189
7189
|
return !0;
|
|
7190
|
-
var o =
|
|
7191
|
-
if (
|
|
7190
|
+
var o = Vn.call(e, "details>summary:first-of-type"), s = o ? e.parentElement : e;
|
|
7191
|
+
if (Vn.call(s, "details:not([open]) *"))
|
|
7192
7192
|
return !0;
|
|
7193
7193
|
var a = _s(e).host, c = (a == null ? void 0 : a.ownerDocument.contains(a)) || e.ownerDocument.contains(e);
|
|
7194
7194
|
if (!r || r === "full") {
|
|
@@ -7213,7 +7213,7 @@ var Cd = ["input", "select", "textarea", "a[href]", "button", "[tabindex]:not(sl
|
|
|
7213
7213
|
for (var r = 0; r < n.children.length; r++) {
|
|
7214
7214
|
var i = n.children.item(r);
|
|
7215
7215
|
if (i.tagName === "LEGEND")
|
|
7216
|
-
return
|
|
7216
|
+
return Vn.call(n, "fieldset[disabled] *") ? !0 : !i.contains(e);
|
|
7217
7217
|
}
|
|
7218
7218
|
return !0;
|
|
7219
7219
|
}
|
|
@@ -7259,14 +7259,14 @@ var Cd = ["input", "select", "textarea", "a[href]", "button", "[tabindex]:not(sl
|
|
|
7259
7259
|
flatten: !0,
|
|
7260
7260
|
getShadowRoot: n.getShadowRoot
|
|
7261
7261
|
}) : r = Ld(e, n.includeContainer, Oo.bind(null, n)), r;
|
|
7262
|
-
},
|
|
7262
|
+
}, Ti = function(e, n) {
|
|
7263
7263
|
if (n = n || {}, !e)
|
|
7264
7264
|
throw new Error("No node provided");
|
|
7265
|
-
return
|
|
7265
|
+
return Vn.call(e, xo) === !1 ? !1 : Xs(n, e);
|
|
7266
7266
|
}, ny = /* @__PURE__ */ Cd.concat("iframe").join(","), ds = function(e, n) {
|
|
7267
7267
|
if (n = n || {}, !e)
|
|
7268
7268
|
throw new Error("No node provided");
|
|
7269
|
-
return
|
|
7269
|
+
return Vn.call(e, ny) === !1 ? !1 : Oo(n, e);
|
|
7270
7270
|
};
|
|
7271
7271
|
/*!
|
|
7272
7272
|
* focus-trap 6.9.4
|
|
@@ -7330,11 +7330,11 @@ var Pl = function() {
|
|
|
7330
7330
|
return e.every(function(i, o) {
|
|
7331
7331
|
return n(i) ? (r = o, !1) : !0;
|
|
7332
7332
|
}), r;
|
|
7333
|
-
},
|
|
7333
|
+
}, Rr = function(e) {
|
|
7334
7334
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
7335
7335
|
r[i - 1] = arguments[i];
|
|
7336
7336
|
return typeof e == "function" ? e.apply(void 0, r) : e;
|
|
7337
|
-
},
|
|
7337
|
+
}, Bi = function(e) {
|
|
7338
7338
|
return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
|
|
7339
7339
|
}, ay = function(e, n) {
|
|
7340
7340
|
var r = (n == null ? void 0 : n.document) || document, i = Ml({
|
|
@@ -7438,9 +7438,9 @@ var Pl = function() {
|
|
|
7438
7438
|
});
|
|
7439
7439
|
if (!(k < 0))
|
|
7440
7440
|
return A ? S.slice(k + 1).find(function(N) {
|
|
7441
|
-
return
|
|
7441
|
+
return Ti(N, i.tabbableOptions);
|
|
7442
7442
|
}) : S.slice(0, k).reverse().find(function(N) {
|
|
7443
|
-
return
|
|
7443
|
+
return Ti(N, i.tabbableOptions);
|
|
7444
7444
|
});
|
|
7445
7445
|
}
|
|
7446
7446
|
};
|
|
@@ -7462,9 +7462,9 @@ var Pl = function() {
|
|
|
7462
7462
|
var b = l("setReturnFocus", m);
|
|
7463
7463
|
return b || (b === !1 ? !1 : m);
|
|
7464
7464
|
}, g = function(m) {
|
|
7465
|
-
var b =
|
|
7465
|
+
var b = Bi(m);
|
|
7466
7466
|
if (!(c(b) >= 0)) {
|
|
7467
|
-
if (
|
|
7467
|
+
if (Rr(i.clickOutsideDeactivates, m)) {
|
|
7468
7468
|
s.deactivate({
|
|
7469
7469
|
// if, on deactivation, we should return focus to the node originally-focused
|
|
7470
7470
|
// when the trap was activated (or the configured `setReturnFocus` node),
|
|
@@ -7481,13 +7481,13 @@ var Pl = function() {
|
|
|
7481
7481
|
});
|
|
7482
7482
|
return;
|
|
7483
7483
|
}
|
|
7484
|
-
|
|
7484
|
+
Rr(i.allowOutsideClick, m) || m.preventDefault();
|
|
7485
7485
|
}
|
|
7486
7486
|
}, h = function(m) {
|
|
7487
|
-
var b =
|
|
7487
|
+
var b = Bi(m), S = c(b) >= 0;
|
|
7488
7488
|
S || b instanceof Document ? S && (o.mostRecentlyFocusedNode = b) : (m.stopImmediatePropagation(), f(o.mostRecentlyFocusedNode || u()));
|
|
7489
7489
|
}, C = function(m) {
|
|
7490
|
-
var b =
|
|
7490
|
+
var b = Bi(m);
|
|
7491
7491
|
d();
|
|
7492
7492
|
var S = null;
|
|
7493
7493
|
if (o.tabbableGroups.length > 0) {
|
|
@@ -7499,7 +7499,7 @@ var Pl = function() {
|
|
|
7499
7499
|
var K = V.firstTabbableNode;
|
|
7500
7500
|
return b === K;
|
|
7501
7501
|
});
|
|
7502
|
-
if (A < 0 && (O.container === b || ds(b, i.tabbableOptions) && !
|
|
7502
|
+
if (A < 0 && (O.container === b || ds(b, i.tabbableOptions) && !Ti(b, i.tabbableOptions) && !O.nextTabbableNode(b, !1)) && (A = P), A >= 0) {
|
|
7503
7503
|
var k = A === 0 ? o.tabbableGroups.length - 1 : A - 1, N = o.tabbableGroups[k];
|
|
7504
7504
|
S = N.lastTabbableNode;
|
|
7505
7505
|
}
|
|
@@ -7508,7 +7508,7 @@ var Pl = function() {
|
|
|
7508
7508
|
var K = V.lastTabbableNode;
|
|
7509
7509
|
return b === K;
|
|
7510
7510
|
});
|
|
7511
|
-
if (z < 0 && (O.container === b || ds(b, i.tabbableOptions) && !
|
|
7511
|
+
if (z < 0 && (O.container === b || ds(b, i.tabbableOptions) && !Ti(b, i.tabbableOptions) && !O.nextTabbableNode(b)) && (z = P), z >= 0) {
|
|
7512
7512
|
var Q = z === o.tabbableGroups.length - 1 ? 0 : z + 1, q = o.tabbableGroups[Q];
|
|
7513
7513
|
S = q.firstTabbableNode;
|
|
7514
7514
|
}
|
|
@@ -7517,7 +7517,7 @@ var Pl = function() {
|
|
|
7517
7517
|
S = l("fallbackFocus");
|
|
7518
7518
|
S && (m.preventDefault(), f(S));
|
|
7519
7519
|
}, w = function(m) {
|
|
7520
|
-
if (oy(m) &&
|
|
7520
|
+
if (oy(m) && Rr(i.escapeDeactivates, m) !== !1) {
|
|
7521
7521
|
m.preventDefault(), s.deactivate();
|
|
7522
7522
|
return;
|
|
7523
7523
|
}
|
|
@@ -7526,8 +7526,8 @@ var Pl = function() {
|
|
|
7526
7526
|
return;
|
|
7527
7527
|
}
|
|
7528
7528
|
}, v = function(m) {
|
|
7529
|
-
var b =
|
|
7530
|
-
c(b) >= 0 ||
|
|
7529
|
+
var b = Bi(m);
|
|
7530
|
+
c(b) >= 0 || Rr(i.clickOutsideDeactivates, m) || Rr(i.allowOutsideClick, m) || (m.preventDefault(), m.stopImmediatePropagation());
|
|
7531
7531
|
}, y = function() {
|
|
7532
7532
|
if (o.active)
|
|
7533
7533
|
return Pl.activateTrap(s), o.delayInitialFocusTimer = i.delayInitialFocus ? kl(function() {
|
|
@@ -7615,7 +7615,7 @@ if (typeof window < "u") {
|
|
|
7615
7615
|
};
|
|
7616
7616
|
window.addEventListener("testPassive", null, Dl), window.removeEventListener("testPassive", null, Dl);
|
|
7617
7617
|
}
|
|
7618
|
-
var Od = typeof window < "u" && window.navigator && window.navigator.platform && (/iP(ad|hone|od)/.test(window.navigator.platform) || window.navigator.platform === "MacIntel" && window.navigator.maxTouchPoints > 1), En = [], Mo = !1, Md = -1,
|
|
7618
|
+
var Od = typeof window < "u" && window.navigator && window.navigator.platform && (/iP(ad|hone|od)/.test(window.navigator.platform) || window.navigator.platform === "MacIntel" && window.navigator.maxTouchPoints > 1), En = [], Mo = !1, Md = -1, $r = void 0, ei = void 0, Pd = function(e) {
|
|
7619
7619
|
return En.some(function(n) {
|
|
7620
7620
|
return !!(n.options.allowTouchMove && n.options.allowTouchMove(e));
|
|
7621
7621
|
});
|
|
@@ -7623,13 +7623,13 @@ var Od = typeof window < "u" && window.navigator && window.navigator.platform &&
|
|
|
7623
7623
|
var n = e || window.event;
|
|
7624
7624
|
return Pd(n.target) || n.touches.length > 1 ? !0 : (n.preventDefault && n.preventDefault(), !1);
|
|
7625
7625
|
}, cy = function(e) {
|
|
7626
|
-
if (
|
|
7626
|
+
if (ei === void 0) {
|
|
7627
7627
|
var n = !!e && e.reserveScrollBarGap === !0, r = window.innerWidth - document.documentElement.clientWidth;
|
|
7628
|
-
n && r > 0 && (
|
|
7628
|
+
n && r > 0 && (ei = document.body.style.paddingRight, document.body.style.paddingRight = r + "px");
|
|
7629
7629
|
}
|
|
7630
|
-
|
|
7630
|
+
$r === void 0 && ($r = document.body.style.overflow, document.body.style.overflow = "hidden");
|
|
7631
7631
|
}, uy = function() {
|
|
7632
|
-
|
|
7632
|
+
ei !== void 0 && (document.body.style.paddingRight = ei, ei = void 0), $r !== void 0 && (document.body.style.overflow = $r, $r = void 0);
|
|
7633
7633
|
}, dy = function(e) {
|
|
7634
7634
|
return e ? e.scrollHeight - e.scrollTop <= e.clientHeight : !1;
|
|
7635
7635
|
}, fy = function(e, n) {
|
|
@@ -7661,12 +7661,12 @@ var Od = typeof window < "u" && window.navigator && window.navigator.platform &&
|
|
|
7661
7661
|
En = En.filter(function(n) {
|
|
7662
7662
|
return n.targetElement !== e;
|
|
7663
7663
|
}), Od ? (e.ontouchstart = null, e.ontouchmove = null, Mo && En.length === 0 && (document.removeEventListener("touchmove", Po, Oa ? { passive: !1 } : void 0), Mo = !1)) : En.length || uy();
|
|
7664
|
-
},
|
|
7665
|
-
return
|
|
7664
|
+
}, Fn = [], gy = function() {
|
|
7665
|
+
return Fn.some(function(t) {
|
|
7666
7666
|
return t.activeTargets.length > 0;
|
|
7667
7667
|
});
|
|
7668
7668
|
}, vy = function() {
|
|
7669
|
-
return
|
|
7669
|
+
return Fn.some(function(t) {
|
|
7670
7670
|
return t.skippedTargets.length > 0;
|
|
7671
7671
|
});
|
|
7672
7672
|
}, Rl = "ResizeObserver loop completed with undelivered notifications.", my = function() {
|
|
@@ -7674,20 +7674,20 @@ var Od = typeof window < "u" && window.navigator && window.navigator.platform &&
|
|
|
7674
7674
|
typeof ErrorEvent == "function" ? t = new ErrorEvent("error", {
|
|
7675
7675
|
message: Rl
|
|
7676
7676
|
}) : (t = document.createEvent("Event"), t.initEvent("error", !1, !1), t.message = Rl), window.dispatchEvent(t);
|
|
7677
|
-
},
|
|
7677
|
+
}, ui;
|
|
7678
7678
|
(function(t) {
|
|
7679
7679
|
t.BORDER_BOX = "border-box", t.CONTENT_BOX = "content-box", t.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
|
|
7680
|
-
})(
|
|
7681
|
-
var
|
|
7680
|
+
})(ui || (ui = {}));
|
|
7681
|
+
var Gn = function(t) {
|
|
7682
7682
|
return Object.freeze(t);
|
|
7683
7683
|
}, yy = function() {
|
|
7684
7684
|
function t(e, n) {
|
|
7685
|
-
this.inlineSize = e, this.blockSize = n,
|
|
7685
|
+
this.inlineSize = e, this.blockSize = n, Gn(this);
|
|
7686
7686
|
}
|
|
7687
7687
|
return t;
|
|
7688
7688
|
}(), kd = function() {
|
|
7689
7689
|
function t(e, n, r, i) {
|
|
7690
|
-
return this.x = e, this.y = n, this.width = r, this.height = i, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width,
|
|
7690
|
+
return this.x = e, this.y = n, this.width = r, this.height = i, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, Gn(this);
|
|
7691
7691
|
}
|
|
7692
7692
|
return t.prototype.toJSON = function() {
|
|
7693
7693
|
var e = this, n = e.x, r = e.y, i = e.top, o = e.right, s = e.bottom, a = e.left, c = e.width, l = e.height;
|
|
@@ -7725,33 +7725,33 @@ var Fn = function(t) {
|
|
|
7725
7725
|
return !0;
|
|
7726
7726
|
}
|
|
7727
7727
|
return !1;
|
|
7728
|
-
},
|
|
7728
|
+
}, ti = typeof window < "u" ? window : {}, Ni = /* @__PURE__ */ new WeakMap(), Bl = /auto|scroll/, wy = /^tb|vertical/, Cy = /msie|trident/i.test(ti.navigator && ti.navigator.userAgent), Qt = function(t) {
|
|
7729
7729
|
return parseFloat(t || "0");
|
|
7730
|
-
},
|
|
7730
|
+
}, dr = function(t, e, n) {
|
|
7731
7731
|
return t === void 0 && (t = 0), e === void 0 && (e = 0), n === void 0 && (n = !1), new yy((n ? e : t) || 0, (n ? t : e) || 0);
|
|
7732
|
-
}, Nl =
|
|
7733
|
-
devicePixelContentBoxSize:
|
|
7734
|
-
borderBoxSize:
|
|
7735
|
-
contentBoxSize:
|
|
7732
|
+
}, Nl = Gn({
|
|
7733
|
+
devicePixelContentBoxSize: dr(),
|
|
7734
|
+
borderBoxSize: dr(),
|
|
7735
|
+
contentBoxSize: dr(),
|
|
7736
7736
|
contentRect: new kd(0, 0, 0, 0)
|
|
7737
7737
|
}), Dd = function(t, e) {
|
|
7738
|
-
if (e === void 0 && (e = !1),
|
|
7739
|
-
return
|
|
7738
|
+
if (e === void 0 && (e = !1), Ni.has(t) && !e)
|
|
7739
|
+
return Ni.get(t);
|
|
7740
7740
|
if (Id(t))
|
|
7741
|
-
return
|
|
7742
|
-
var n = getComputedStyle(t), r = Ma(t) && t.ownerSVGElement && t.getBBox(), i = !Cy && n.boxSizing === "border-box", o = wy.test(n.writingMode || ""), s = !r && Bl.test(n.overflowY || ""), a = !r && Bl.test(n.overflowX || ""), c = r ? 0 : Qt(n.paddingTop), l = r ? 0 : Qt(n.paddingRight), u = r ? 0 : Qt(n.paddingBottom), d = r ? 0 : Qt(n.paddingLeft), f = r ? 0 : Qt(n.borderTopWidth), p = r ? 0 : Qt(n.borderRightWidth), g = r ? 0 : Qt(n.borderBottomWidth), h = r ? 0 : Qt(n.borderLeftWidth), C = d + l, w = c + u, v = h + p, y = f + g, x = a ? t.offsetHeight - y - t.clientHeight : 0, L = s ? t.offsetWidth - v - t.clientWidth : 0, m = i ? C + v : 0, b = i ? w + y : 0, S = r ? r.width : Qt(n.width) - m - L, P = r ? r.height : Qt(n.height) - b - x, O = S + C + L + v, A = P + w + x + y, k =
|
|
7743
|
-
devicePixelContentBoxSize:
|
|
7744
|
-
borderBoxSize:
|
|
7745
|
-
contentBoxSize:
|
|
7741
|
+
return Ni.set(t, Nl), Nl;
|
|
7742
|
+
var n = getComputedStyle(t), r = Ma(t) && t.ownerSVGElement && t.getBBox(), i = !Cy && n.boxSizing === "border-box", o = wy.test(n.writingMode || ""), s = !r && Bl.test(n.overflowY || ""), a = !r && Bl.test(n.overflowX || ""), c = r ? 0 : Qt(n.paddingTop), l = r ? 0 : Qt(n.paddingRight), u = r ? 0 : Qt(n.paddingBottom), d = r ? 0 : Qt(n.paddingLeft), f = r ? 0 : Qt(n.borderTopWidth), p = r ? 0 : Qt(n.borderRightWidth), g = r ? 0 : Qt(n.borderBottomWidth), h = r ? 0 : Qt(n.borderLeftWidth), C = d + l, w = c + u, v = h + p, y = f + g, x = a ? t.offsetHeight - y - t.clientHeight : 0, L = s ? t.offsetWidth - v - t.clientWidth : 0, m = i ? C + v : 0, b = i ? w + y : 0, S = r ? r.width : Qt(n.width) - m - L, P = r ? r.height : Qt(n.height) - b - x, O = S + C + L + v, A = P + w + x + y, k = Gn({
|
|
7743
|
+
devicePixelContentBoxSize: dr(Math.round(S * devicePixelRatio), Math.round(P * devicePixelRatio), o),
|
|
7744
|
+
borderBoxSize: dr(O, A, o),
|
|
7745
|
+
contentBoxSize: dr(S, P, o),
|
|
7746
7746
|
contentRect: new kd(d, c, S, P)
|
|
7747
7747
|
});
|
|
7748
|
-
return
|
|
7748
|
+
return Ni.set(t, k), k;
|
|
7749
7749
|
}, Rd = function(t, e, n) {
|
|
7750
7750
|
var r = Dd(t, n), i = r.borderBoxSize, o = r.contentBoxSize, s = r.devicePixelContentBoxSize;
|
|
7751
7751
|
switch (e) {
|
|
7752
|
-
case
|
|
7752
|
+
case ui.DEVICE_PIXEL_CONTENT_BOX:
|
|
7753
7753
|
return s;
|
|
7754
|
-
case
|
|
7754
|
+
case ui.BORDER_BOX:
|
|
7755
7755
|
return i;
|
|
7756
7756
|
default:
|
|
7757
7757
|
return o;
|
|
@@ -7759,7 +7759,7 @@ var Fn = function(t) {
|
|
|
7759
7759
|
}, Ey = function() {
|
|
7760
7760
|
function t(e) {
|
|
7761
7761
|
var n = Dd(e);
|
|
7762
|
-
this.target = e, this.contentRect = n.contentRect, this.borderBoxSize =
|
|
7762
|
+
this.target = e, this.contentRect = n.contentRect, this.borderBoxSize = Gn([n.borderBoxSize]), this.contentBoxSize = Gn([n.contentBoxSize]), this.devicePixelContentBoxSize = Gn([n.devicePixelContentBoxSize]);
|
|
7763
7763
|
}
|
|
7764
7764
|
return t;
|
|
7765
7765
|
}(), Td = function(t) {
|
|
@@ -7770,7 +7770,7 @@ var Fn = function(t) {
|
|
|
7770
7770
|
return e;
|
|
7771
7771
|
}, Ly = function() {
|
|
7772
7772
|
var t = 1 / 0, e = [];
|
|
7773
|
-
|
|
7773
|
+
Fn.forEach(function(s) {
|
|
7774
7774
|
if (s.activeTargets.length !== 0) {
|
|
7775
7775
|
var a = [];
|
|
7776
7776
|
s.activeTargets.forEach(function(l) {
|
|
@@ -7787,7 +7787,7 @@ var Fn = function(t) {
|
|
|
7787
7787
|
}
|
|
7788
7788
|
return t;
|
|
7789
7789
|
}, jl = function(t) {
|
|
7790
|
-
|
|
7790
|
+
Fn.forEach(function(n) {
|
|
7791
7791
|
n.activeTargets.splice(0, n.activeTargets.length), n.skippedTargets.splice(0, n.skippedTargets.length), n.observationTargets.forEach(function(i) {
|
|
7792
7792
|
i.isActive() && (Td(i.target) > t ? n.activeTargets.push(i) : n.skippedTargets.push(i));
|
|
7793
7793
|
});
|
|
@@ -7863,16 +7863,16 @@ var Fn = function(t) {
|
|
|
7863
7863
|
var e = this, n = function() {
|
|
7864
7864
|
return e.observer && e.observer.observe(document.body, ky);
|
|
7865
7865
|
};
|
|
7866
|
-
document.body ? n() :
|
|
7866
|
+
document.body ? n() : ti.addEventListener("DOMContentLoaded", n);
|
|
7867
7867
|
}, t.prototype.start = function() {
|
|
7868
7868
|
var e = this;
|
|
7869
7869
|
this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), Ul.forEach(function(n) {
|
|
7870
|
-
return
|
|
7870
|
+
return ti.addEventListener(n, e.listener, !0);
|
|
7871
7871
|
}));
|
|
7872
7872
|
}, t.prototype.stop = function() {
|
|
7873
7873
|
var e = this;
|
|
7874
7874
|
this.stopped || (this.observer && this.observer.disconnect(), Ul.forEach(function(n) {
|
|
7875
|
-
return
|
|
7875
|
+
return ti.removeEventListener(n, e.listener, !0);
|
|
7876
7876
|
}), this.stopped = !0);
|
|
7877
7877
|
}, t;
|
|
7878
7878
|
}(), $s = new Iy(), zl = function(t) {
|
|
@@ -7881,7 +7881,7 @@ var Fn = function(t) {
|
|
|
7881
7881
|
return !Ma(t) && !by(t) && getComputedStyle(t).display === "inline";
|
|
7882
7882
|
}, Ry = function() {
|
|
7883
7883
|
function t(e, n) {
|
|
7884
|
-
this.target = e, this.observedBox = n ||
|
|
7884
|
+
this.target = e, this.observedBox = n || ui.CONTENT_BOX, this.lastReportedSize = {
|
|
7885
7885
|
inlineSize: 0,
|
|
7886
7886
|
blockSize: 0
|
|
7887
7887
|
};
|
|
@@ -7895,25 +7895,25 @@ var Fn = function(t) {
|
|
|
7895
7895
|
this.activeTargets = [], this.skippedTargets = [], this.observationTargets = [], this.observer = e, this.callback = n;
|
|
7896
7896
|
}
|
|
7897
7897
|
return t;
|
|
7898
|
-
}(),
|
|
7898
|
+
}(), ji = /* @__PURE__ */ new WeakMap(), Fl = function(t, e) {
|
|
7899
7899
|
for (var n = 0; n < t.length; n += 1)
|
|
7900
7900
|
if (t[n].target === e)
|
|
7901
7901
|
return n;
|
|
7902
7902
|
return -1;
|
|
7903
|
-
},
|
|
7903
|
+
}, Ui = function() {
|
|
7904
7904
|
function t() {
|
|
7905
7905
|
}
|
|
7906
7906
|
return t.connect = function(e, n) {
|
|
7907
7907
|
var r = new Ty(e, n);
|
|
7908
|
-
|
|
7908
|
+
ji.set(e, r);
|
|
7909
7909
|
}, t.observe = function(e, n, r) {
|
|
7910
|
-
var i =
|
|
7911
|
-
Fl(i.observationTargets, n) < 0 && (o &&
|
|
7910
|
+
var i = ji.get(e), o = i.observationTargets.length === 0;
|
|
7911
|
+
Fl(i.observationTargets, n) < 0 && (o && Fn.push(i), i.observationTargets.push(new Ry(n, r && r.box)), zl(1), $s.schedule());
|
|
7912
7912
|
}, t.unobserve = function(e, n) {
|
|
7913
|
-
var r =
|
|
7914
|
-
i >= 0 && (o &&
|
|
7913
|
+
var r = ji.get(e), i = Fl(r.observationTargets, n), o = r.observationTargets.length === 1;
|
|
7914
|
+
i >= 0 && (o && Fn.splice(Fn.indexOf(r), 1), r.observationTargets.splice(i, 1), zl(-1));
|
|
7915
7915
|
}, t.disconnect = function(e) {
|
|
7916
|
-
var n = this, r =
|
|
7916
|
+
var n = this, r = ji.get(e);
|
|
7917
7917
|
r.observationTargets.slice().forEach(function(i) {
|
|
7918
7918
|
return n.unobserve(e, i.target);
|
|
7919
7919
|
}), r.activeTargets.splice(0, r.activeTargets.length);
|
|
@@ -7924,22 +7924,22 @@ var Fn = function(t) {
|
|
|
7924
7924
|
throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
7925
7925
|
if (typeof e != "function")
|
|
7926
7926
|
throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");
|
|
7927
|
-
|
|
7927
|
+
Ui.connect(this, e);
|
|
7928
7928
|
}
|
|
7929
7929
|
return t.prototype.observe = function(e, n) {
|
|
7930
7930
|
if (arguments.length === 0)
|
|
7931
7931
|
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
7932
7932
|
if (!Tl(e))
|
|
7933
7933
|
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
7934
|
-
|
|
7934
|
+
Ui.observe(this, e, n);
|
|
7935
7935
|
}, t.prototype.unobserve = function(e) {
|
|
7936
7936
|
if (arguments.length === 0)
|
|
7937
7937
|
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
7938
7938
|
if (!Tl(e))
|
|
7939
7939
|
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
7940
|
-
|
|
7940
|
+
Ui.unobserve(this, e);
|
|
7941
7941
|
}, t.prototype.disconnect = function() {
|
|
7942
|
-
|
|
7942
|
+
Ui.disconnect(this);
|
|
7943
7943
|
}, t.toString = function() {
|
|
7944
7944
|
return "function ResizeObserver () { [polyfill code] }";
|
|
7945
7945
|
}, t;
|
|
@@ -7962,11 +7962,11 @@ function ro(t, e) {
|
|
|
7962
7962
|
e.indexOf(n = o[r]) >= 0 || (i[n] = t[n]);
|
|
7963
7963
|
return i;
|
|
7964
7964
|
}
|
|
7965
|
-
var
|
|
7966
|
-
function
|
|
7965
|
+
var ni = typeof window < "u" ? va : E;
|
|
7966
|
+
function Tr(t, e, n) {
|
|
7967
7967
|
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;
|
|
7968
7968
|
}
|
|
7969
|
-
function
|
|
7969
|
+
function Hi(t) {
|
|
7970
7970
|
var e = Math.round(t);
|
|
7971
7971
|
if (Number.isNaN(t))
|
|
7972
7972
|
throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");
|
|
@@ -7979,7 +7979,7 @@ function ps(t, e) {
|
|
|
7979
7979
|
var c = $(function(l) {
|
|
7980
7980
|
a(l[0].borderBoxSize[0].blockSize), i.current = "element";
|
|
7981
7981
|
}, [i]);
|
|
7982
|
-
return
|
|
7982
|
+
return ni(function() {
|
|
7983
7983
|
if (t.current && r) {
|
|
7984
7984
|
var l = new By(c);
|
|
7985
7985
|
return l.observe(t.current, Ny), function() {
|
|
@@ -8123,7 +8123,7 @@ var Gl = { DRAG: { target: "#overlay.dragging", actions: "onOpenEnd" } }, Vl = {
|
|
|
8123
8123
|
return t.initialState === "CLOSED";
|
|
8124
8124
|
}, initiallyOpen: function(t) {
|
|
8125
8125
|
return t.initialState === "OPEN";
|
|
8126
|
-
} } }), Uy = ["children", "sibling", "className", "footer", "header", "open", "initialState", "lastSnapRef", "initialFocusRef", "onDismiss", "maxHeight", "defaultSnap", "snapPoints", "blocking", "scrollLocking", "style", "onSpringStart", "onSpringCancel", "onSpringEnd", "reserveScrollBarGap", "expandOnContentDrag"], Hy = ["velocity"], zy = ["onRest", "config"], Nd = Nv.default, Fy = Nd.tension,
|
|
8126
|
+
} } }), Uy = ["children", "sibling", "className", "footer", "header", "open", "initialState", "lastSnapRef", "initialFocusRef", "onDismiss", "maxHeight", "defaultSnap", "snapPoints", "blocking", "scrollLocking", "style", "onSpringStart", "onSpringCancel", "onSpringEnd", "reserveScrollBarGap", "expandOnContentDrag"], Hy = ["velocity"], zy = ["onRest", "config"], Nd = Nv.default, Fy = Nd.tension, zi = Nd.friction, Gy = ae.forwardRef(function(t, e) {
|
|
8127
8127
|
var n = t.children, r = t.sibling, i = t.className, o = t.footer, s = t.header, a = t.open, c = t.initialState, l = t.lastSnapRef, u = t.initialFocusRef, d = t.onDismiss, f = t.maxHeight, p = t.defaultSnap, g = p === void 0 ? Qy : p, h = t.snapPoints, C = h === void 0 ? Yy : h, w = t.blocking, v = w === void 0 || w, y = t.scrollLocking, x = y === void 0 || y, L = t.style, m = t.onSpringStart, b = t.onSpringCancel, S = t.onSpringEnd, P = t.reserveScrollBarGap, O = P === void 0 ? v : P, A = t.expandOnContentDrag, k = A !== void 0 && A, N = ro(t, Uy), z = function() {
|
|
8128
8128
|
var F = I(!1), ue = F[0], X = F[1], Ee = I({}), He = Ee[0], Pe = Ee[1], ze = $(function(je) {
|
|
8129
8129
|
return Pe(function(Qe) {
|
|
@@ -8235,37 +8235,37 @@ var Gl = { DRAG: { target: "#overlay.dragging", actions: "onOpenEnd" } }, Vl = {
|
|
|
8235
8235
|
}, [He, X, Ee, ue]), Pe;
|
|
8236
8236
|
}({ targetRef: U, fallbackRef: Z, initialFocusRef: u || void 0, enabled: Q && v && u !== !1 }), De = function(F) {
|
|
8237
8237
|
var ue = F.getSnapPoints, X = F.heightRef, Ee = F.lastSnapRef, He = F.ready, Pe = function(nt) {
|
|
8238
|
-
var Ct = nt.contentRef, Et = nt.controlledMaxHeight, st = nt.footerEnabled, Vt = nt.footerRef, Nt = nt.headerEnabled, Lt = nt.headerRef, ln = nt.registerReady, en = nt.resizeSourceRef,
|
|
8238
|
+
var Ct = nt.contentRef, Et = nt.controlledMaxHeight, st = nt.footerEnabled, Vt = nt.footerRef, Nt = nt.headerEnabled, Lt = nt.headerRef, ln = nt.registerReady, en = nt.resizeSourceRef, Lr = lt(function() {
|
|
8239
8239
|
return ln("contentHeight");
|
|
8240
|
-
}, [ln]),
|
|
8240
|
+
}, [ln]), Sr = function(cn, Mn, Pn) {
|
|
8241
8241
|
var kn = lt(function() {
|
|
8242
8242
|
return Mn("maxHeight");
|
|
8243
8243
|
}, [Mn]), In = I(function() {
|
|
8244
|
-
return
|
|
8245
|
-
}),
|
|
8244
|
+
return Hi(cn) || typeof window < "u" ? window.innerHeight : 0;
|
|
8245
|
+
}), Or = In[0], Mr = In[1], un = Or > 0, de = se(0);
|
|
8246
8246
|
return nn(cn ? "controlled" : "auto"), E(function() {
|
|
8247
8247
|
un && kn();
|
|
8248
|
-
}, [un, kn]),
|
|
8248
|
+
}, [un, kn]), ni(function() {
|
|
8249
8249
|
if (cn)
|
|
8250
|
-
return
|
|
8250
|
+
return Mr(Hi(cn)), void (Pn.current = "maxheightprop");
|
|
8251
8251
|
var Wa = function() {
|
|
8252
8252
|
de.current || (de.current = requestAnimationFrame(function() {
|
|
8253
|
-
|
|
8253
|
+
Mr(window.innerHeight), Pn.current = "window", de.current = 0;
|
|
8254
8254
|
}));
|
|
8255
8255
|
};
|
|
8256
|
-
return window.addEventListener("resize", Wa),
|
|
8256
|
+
return window.addEventListener("resize", Wa), Mr(window.innerHeight), Pn.current = "window", kn(), function() {
|
|
8257
8257
|
window.removeEventListener("resize", Wa), cancelAnimationFrame(de.current);
|
|
8258
8258
|
};
|
|
8259
|
-
}, [cn, kn, Pn]),
|
|
8260
|
-
}(Et, ln, en),
|
|
8259
|
+
}, [cn, kn, Pn]), Or;
|
|
8260
|
+
}(Et, ln, en), Zn = ps(Lt, { label: "headerHeight", enabled: Nt, resizeSourceRef: en }), Ar = ps(Ct, { label: "contentHeight", enabled: !0, resizeSourceRef: en }), Jn = ps(Vt, { label: "footerHeight", enabled: st, resizeSourceRef: en }), On = Math.min(Sr - Zn - Jn, Ar) + Zn + Jn;
|
|
8261
8261
|
nn("minHeight: " + On);
|
|
8262
|
-
var
|
|
8262
|
+
var xr = Ar > 0;
|
|
8263
8263
|
return E(function() {
|
|
8264
|
-
|
|
8265
|
-
}, [
|
|
8264
|
+
xr && Lr();
|
|
8265
|
+
}, [xr, Lr]), { maxHeight: Sr, minHeight: On, headerHeight: Zn, footerHeight: Jn };
|
|
8266
8266
|
}({ contentRef: F.contentRef, controlledMaxHeight: F.controlledMaxHeight, footerEnabled: F.footerEnabled, footerRef: F.footerRef, headerEnabled: F.headerEnabled, headerRef: F.headerRef, registerReady: F.registerReady, resizeSourceRef: F.resizeSourceRef }), ze = Pe.maxHeight, je = Pe.minHeight, Qe = Pe.headerHeight, be = Pe.footerHeight, Ae = function(nt, Ct) {
|
|
8267
|
-
var Et = [].concat(nt).map(
|
|
8268
|
-
return Lt.add(
|
|
8267
|
+
var Et = [].concat(nt).map(Hi).reduce(function(Lt, ln) {
|
|
8268
|
+
return Lt.add(Tr(ln, 0, Ct)), Lt;
|
|
8269
8269
|
}, /* @__PURE__ */ new Set()), st = Array.from(Et), Vt = Math.min.apply(Math, st);
|
|
8270
8270
|
if (Number.isNaN(Vt))
|
|
8271
8271
|
throw new TypeError("minSnap is NaN");
|
|
@@ -8275,19 +8275,19 @@ var Gl = { DRAG: { target: "#overlay.dragging", actions: "onOpenEnd" } }, Vl = {
|
|
|
8275
8275
|
return { snapPoints: st, minSnap: Vt, maxSnap: Nt };
|
|
8276
8276
|
}(He ? ue({ height: X.current, footerHeight: be, headerHeight: Qe, minHeight: je, maxHeight: ze }) : [0], ze), yt = Ae.snapPoints, $t = Ae.minSnap, gt = Ae.maxSnap;
|
|
8277
8277
|
return nn("minSnap: " + $t + ", maxSnap:" + gt), { minSnap: $t, maxSnap: gt, findSnap: function(nt) {
|
|
8278
|
-
var Ct =
|
|
8278
|
+
var Ct = Hi(typeof nt == "function" ? nt({ footerHeight: be, headerHeight: Qe, height: X.current, minHeight: je, maxHeight: ze, snapPoints: yt, lastSnap: Ee.current }) : nt);
|
|
8279
8279
|
return yt.reduce(function(Et, st) {
|
|
8280
8280
|
return Math.abs(st - Ct) < Math.abs(Et - Ct) ? st : Et;
|
|
8281
8281
|
}, $t);
|
|
8282
8282
|
}, maxHeight: ze };
|
|
8283
8283
|
}({ contentRef: he, controlledMaxHeight: f, footerEnabled: !!o, footerRef: B, getSnapPoints: C, headerEnabled: s !== !1, headerRef: _, heightRef: ee, lastSnapRef: l, ready: Q, registerReady: q, resizeSourceRef: le }), fe = De.minSnap, ve = De.maxSnap, Ze = De.maxHeight, it = De.findSnap, te = se(Ze), Je = se(fe), Ve = se(ve), wt = se(it), pt = se(0);
|
|
8284
|
-
|
|
8284
|
+
ni(function() {
|
|
8285
8285
|
te.current = Ze, Ve.current = ve, Je.current = fe, wt.current = it, pt.current = it(g);
|
|
8286
8286
|
}, [it, g, Ze, ve, fe]);
|
|
8287
8287
|
var me = $(function(F) {
|
|
8288
8288
|
var ue = F.onRest, X = F.config, Ee = (X = X === void 0 ? {} : X).velocity, He = Ee === void 0 ? 1 : Ee, Pe = ro(X, Hy), ze = ro(F, zy);
|
|
8289
8289
|
return new Promise(function(je) {
|
|
8290
|
-
return oe(mt({}, ze, { config: mt({ velocity: He }, Pe, { mass: 1, tension: Fy, friction: Math.max(
|
|
8290
|
+
return oe(mt({}, ze, { config: mt({ velocity: He }, Pe, { mass: 1, tension: Fy, friction: Math.max(zi, zi + (zi - zi * He)) }), onRest: function() {
|
|
8291
8291
|
var Qe = [].slice.call(arguments);
|
|
8292
8292
|
je.apply(void 0, Qe), ue == null || ue.apply(void 0, Qe);
|
|
8293
8293
|
} }));
|
|
@@ -8415,16 +8415,16 @@ var Gl = { DRAG: { target: "#overlay.dragging", actions: "onOpenEnd" } }, Vl = {
|
|
|
8415
8415
|
} catch (X) {
|
|
8416
8416
|
return Promise.reject(X);
|
|
8417
8417
|
}
|
|
8418
|
-
}, [me, ce]) } }),
|
|
8418
|
+
}, [me, ce]) } }), wi = xn[0], Bt = xn[1];
|
|
8419
8419
|
E(function() {
|
|
8420
8420
|
Q && Bt(a ? "OPEN" : "CLOSE");
|
|
8421
|
-
}, [a, Bt, Q]),
|
|
8421
|
+
}, [a, Bt, Q]), ni(function() {
|
|
8422
8422
|
(Ze || ve || fe) && Bt("RESIZE");
|
|
8423
8423
|
}, [Ze, ve, fe, Bt]), E(function() {
|
|
8424
8424
|
return function() {
|
|
8425
8425
|
pe.current.deactivate(), Ie.current.deactivate(), Me.current.deactivate();
|
|
8426
8426
|
};
|
|
8427
|
-
}, [Me, Ie, pe]),
|
|
8427
|
+
}, [Me, Ie, pe]), hi(e, function() {
|
|
8428
8428
|
return { snapTo: function(F, ue) {
|
|
8429
8429
|
var X = ue === void 0 ? {} : ue, Ee = X.velocity, He = Ee === void 0 ? 1 : Ee, Pe = X.source, ze = Pe === void 0 ? "custom" : Pe;
|
|
8430
8430
|
Bt("SNAP", { payload: { y: wt.current(F), velocity: He, source: ze } });
|
|
@@ -8456,33 +8456,33 @@ var Gl = { DRAG: { target: "#overlay.dragging", actions: "onOpenEnd" } }, Vl = {
|
|
|
8456
8456
|
var st = gt + Et, Vt = Et * Ct, Nt = Math.max(Je.current, Math.min(Ve.current, st + 2 * Vt));
|
|
8457
8457
|
if (!be && d && Qe > 0 && st + Vt < Je.current / 2)
|
|
8458
8458
|
return je(), d(), gt;
|
|
8459
|
-
var Lt = be ? d || Je.current !== Ve.current ?
|
|
8459
|
+
var Lt = be ? d || Je.current !== Ve.current ? Xr(st, d ? 0 : Je.current, Ve.current, 0.55) : st < Je.current ? Xr(st, Je.current, 2 * Ve.current, 0.55) : Xr(st, Je.current / 2, Ve.current, 0.55) : Nt;
|
|
8460
8460
|
return k && ze ? (Lt >= Ve.current && (Lt = Ve.current), gt === Ve.current && ne.current.scrollTop > 0 && (Lt = Ve.current), ye.current = Lt < Ve.current) : ye.current = !1, Ae && Bt("DRAG"), yt ? (Bt("SNAP", { payload: { y: Lt, velocity: Ct > 0.05 ? Ct : 1, source: "dragging" } }), gt) : (oe({ y: Lt, ready: 1, maxHeight: te.current, maxSnap: Ve.current, minSnap: Je.current, immediate: !0, config: { velocity: Ct } }), gt);
|
|
8461
8461
|
}, { filterTaps: !0 });
|
|
8462
8462
|
if (Number.isNaN(Ve.current))
|
|
8463
8463
|
throw new TypeError("maxSnapRef is NaN!!");
|
|
8464
8464
|
if (Number.isNaN(Je.current))
|
|
8465
8465
|
throw new TypeError("minSnapRef is NaN!!");
|
|
8466
|
-
var
|
|
8467
|
-
var ue, X = F.spring, Ee =
|
|
8468
|
-
return Math.round(
|
|
8469
|
-
}), He =
|
|
8470
|
-
return
|
|
8471
|
-
}), Pe =
|
|
8466
|
+
var Ci = function(F) {
|
|
8467
|
+
var ue, X = F.spring, Ee = er([X.y, X.maxHeight], function(be, Ae) {
|
|
8468
|
+
return Math.round(Tr(Ae - be, 0, 16)) + "px";
|
|
8469
|
+
}), He = er([X.y, X.minSnap, X.maxSnap], function(be, Ae, yt) {
|
|
8470
|
+
return Tr(be, Ae, yt) + "px";
|
|
8471
|
+
}), Pe = er([X.y, X.minSnap, X.maxSnap], function(be, Ae, yt) {
|
|
8472
8472
|
return be < Ae ? Ae - be + "px" : be > yt ? yt - be + "px" : "0px";
|
|
8473
|
-
}), ze =
|
|
8473
|
+
}), ze = er([X.y, X.maxSnap], function(be, Ae) {
|
|
8474
8474
|
return be >= Ae ? Math.ceil(be - Ae) : 0;
|
|
8475
|
-
}), je =
|
|
8475
|
+
}), je = er([X.y, X.minSnap], function(be, Ae) {
|
|
8476
8476
|
if (!Ae)
|
|
8477
8477
|
return 0;
|
|
8478
8478
|
var yt = Math.max(Ae / 2 - 45, 0);
|
|
8479
|
-
return
|
|
8480
|
-
}), Qe =
|
|
8481
|
-
return Ae ?
|
|
8479
|
+
return Tr((be - yt) * (1 / (Math.min(Ae / 2 + 45, Ae) - yt) + 0), 0, 1);
|
|
8480
|
+
}), Qe = er([X.y, X.minSnap], function(be, Ae) {
|
|
8481
|
+
return Ae ? Tr(be / Ae, 0, 1) : 0;
|
|
8482
8482
|
});
|
|
8483
8483
|
return (ue = {})["--rsbs-content-opacity"] = je, ue["--rsbs-backdrop-opacity"] = Qe, ue["--rsbs-antigap-scale-y"] = ze, ue["--rsbs-overlay-translate-y"] = Pe, ue["--rsbs-overlay-rounded"] = Ee, ue["--rsbs-overlay-h"] = He, ue;
|
|
8484
8484
|
}({ spring: Y });
|
|
8485
|
-
return ae.createElement(sm.div, mt({}, N, { "data-rsbs-root": !0, "data-rsbs-state": Vy.find(
|
|
8485
|
+
return ae.createElement(sm.div, mt({}, N, { "data-rsbs-root": !0, "data-rsbs-state": Vy.find(wi.matches), "data-rsbs-is-blocking": v, "data-rsbs-is-dismissable": !!d, "data-rsbs-has-header": !!s, "data-rsbs-has-footer": !!o, className: i, ref: U, style: mt({}, Ci, L, { opacity: Y.ready }) }), r, v && /* @__PURE__ */ ae.createElement("div", mt({ key: "backdrop", "data-rsbs-backdrop": !0 }, Xt({ closeOnTap: !0 }))), /* @__PURE__ */ ae.createElement("div", { key: "overlay", "aria-modal": "true", role: "dialog", "data-rsbs-overlay": !0, tabIndex: -1, ref: Z, onKeyDown: function(F) {
|
|
8486
8486
|
F.key === "Escape" && (F.stopPropagation(), d && d());
|
|
8487
8487
|
} }, s !== !1 && /* @__PURE__ */ ae.createElement("div", mt({ key: "header", "data-rsbs-header": !0, ref: _ }, Xt()), s), /* @__PURE__ */ ae.createElement("div", mt({ key: "scroll", "data-rsbs-scroll": !0, ref: ne }, k ? Xt({ isContentDragging: !0 }) : {}), /* @__PURE__ */ ae.createElement("div", { "data-rsbs-content": !0, ref: he }, n)), o && /* @__PURE__ */ ae.createElement("div", mt({ key: "footer", ref: B, "data-rsbs-footer": !0 }, Xt()), o)));
|
|
8488
8488
|
}), Vy = ["closed", "opening", "open", "closing", "dragging", "snapping", "resizing"];
|
|
@@ -8495,7 +8495,7 @@ function Yy(t) {
|
|
|
8495
8495
|
}
|
|
8496
8496
|
var Wy = ["onSpringStart", "onSpringEnd", "skipInitialTransition"], jd = Bo(function(t, e) {
|
|
8497
8497
|
var n = t.onSpringStart, r = t.onSpringEnd, i = t.skipInitialTransition, o = ro(t, Wy), s = I(!1), a = s[0], c = s[1], l = se(), u = se(null), d = se(i && o.open ? "OPEN" : "CLOSED");
|
|
8498
|
-
|
|
8498
|
+
ni(function() {
|
|
8499
8499
|
if (o.open)
|
|
8500
8500
|
return cancelAnimationFrame(l.current), c(!0), function() {
|
|
8501
8501
|
d.current = "CLOSED";
|
|
@@ -8522,9 +8522,9 @@ function Ud(t, e) {
|
|
|
8522
8522
|
const { toString: Ky } = Object.prototype, { getPrototypeOf: Pa } = Object, Qo = ((t) => (e) => {
|
|
8523
8523
|
const n = Ky.call(e);
|
|
8524
8524
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
8525
|
-
})(/* @__PURE__ */ Object.create(null)), _t = (t) => (t = t.toLowerCase(), (e) => Qo(e) === t), Yo = (t) => (e) => typeof e === t, { isArray:
|
|
8525
|
+
})(/* @__PURE__ */ Object.create(null)), _t = (t) => (t = t.toLowerCase(), (e) => Qo(e) === t), Yo = (t) => (e) => typeof e === t, { isArray: Cr } = Array, di = Yo("undefined");
|
|
8526
8526
|
function qy(t) {
|
|
8527
|
-
return t !== null && !
|
|
8527
|
+
return t !== null && !di(t) && t.constructor !== null && !di(t.constructor) && Tt(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
8528
8528
|
}
|
|
8529
8529
|
const Hd = _t("ArrayBuffer");
|
|
8530
8530
|
function Zy(t) {
|
|
@@ -8541,11 +8541,11 @@ const Jy = Yo("string"), Tt = Yo("function"), zd = Yo("number"), Wo = (t) => t !
|
|
|
8541
8541
|
return t && (typeof FormData == "function" && t instanceof FormData || Tt(t.append) && ((e = Qo(t)) === "formdata" || // detect form-data instance
|
|
8542
8542
|
e === "object" && Tt(t.toString) && t.toString() === "[object FormData]"));
|
|
8543
8543
|
}, i0 = _t("URLSearchParams"), o0 = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
8544
|
-
function
|
|
8544
|
+
function mi(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
8545
8545
|
if (t === null || typeof t > "u")
|
|
8546
8546
|
return;
|
|
8547
8547
|
let r, i;
|
|
8548
|
-
if (typeof t != "object" && (t = [t]),
|
|
8548
|
+
if (typeof t != "object" && (t = [t]), Cr(t))
|
|
8549
8549
|
for (r = 0, i = t.length; r < i; r++)
|
|
8550
8550
|
e.call(null, t[r], r, t);
|
|
8551
8551
|
else {
|
|
@@ -8564,17 +8564,17 @@ function Fd(t, e) {
|
|
|
8564
8564
|
return i;
|
|
8565
8565
|
return null;
|
|
8566
8566
|
}
|
|
8567
|
-
const Gd = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Vd = (t) => !
|
|
8567
|
+
const Gd = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Vd = (t) => !di(t) && t !== Gd;
|
|
8568
8568
|
function ea() {
|
|
8569
8569
|
const { caseless: t } = Vd(this) && this || {}, e = {}, n = (r, i) => {
|
|
8570
8570
|
const o = t && Fd(e, i) || i;
|
|
8571
|
-
io(e[o]) && io(r) ? e[o] = ea(e[o], r) : io(r) ? e[o] = ea({}, r) :
|
|
8571
|
+
io(e[o]) && io(r) ? e[o] = ea(e[o], r) : io(r) ? e[o] = ea({}, r) : Cr(r) ? e[o] = r.slice() : e[o] = r;
|
|
8572
8572
|
};
|
|
8573
8573
|
for (let r = 0, i = arguments.length; r < i; r++)
|
|
8574
|
-
arguments[r] &&
|
|
8574
|
+
arguments[r] && mi(arguments[r], n);
|
|
8575
8575
|
return e;
|
|
8576
8576
|
}
|
|
8577
|
-
const s0 = (t, e, n, { allOwnKeys: r } = {}) => (
|
|
8577
|
+
const s0 = (t, e, n, { allOwnKeys: r } = {}) => (mi(e, (i, o) => {
|
|
8578
8578
|
n && Tt(i) ? t[o] = Ud(i, n) : t[o] = i;
|
|
8579
8579
|
}, { allOwnKeys: r }), t), a0 = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), l0 = (t, e, n, r) => {
|
|
8580
8580
|
t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
@@ -8598,7 +8598,7 @@ const s0 = (t, e, n, { allOwnKeys: r } = {}) => (vi(e, (i, o) => {
|
|
|
8598
8598
|
}, d0 = (t) => {
|
|
8599
8599
|
if (!t)
|
|
8600
8600
|
return null;
|
|
8601
|
-
if (
|
|
8601
|
+
if (Cr(t))
|
|
8602
8602
|
return t;
|
|
8603
8603
|
let e = t.length;
|
|
8604
8604
|
if (!zd(e))
|
|
@@ -8627,7 +8627,7 @@ const s0 = (t, e, n, { allOwnKeys: r } = {}) => (vi(e, (i, o) => {
|
|
|
8627
8627
|
}
|
|
8628
8628
|
), Ql = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), m0 = _t("RegExp"), Qd = (t, e) => {
|
|
8629
8629
|
const n = Object.getOwnPropertyDescriptors(t), r = {};
|
|
8630
|
-
|
|
8630
|
+
mi(n, (i, o) => {
|
|
8631
8631
|
let s;
|
|
8632
8632
|
(s = e(i, o, t)) !== !1 && (r[o] = s || i);
|
|
8633
8633
|
}), Object.defineProperties(t, r);
|
|
@@ -8652,7 +8652,7 @@ const s0 = (t, e, n, { allOwnKeys: r } = {}) => (vi(e, (i, o) => {
|
|
|
8652
8652
|
n[o] = !0;
|
|
8653
8653
|
});
|
|
8654
8654
|
};
|
|
8655
|
-
return
|
|
8655
|
+
return Cr(t) ? r(t) : r(String(t).split(e)), n;
|
|
8656
8656
|
}, w0 = () => {
|
|
8657
8657
|
}, C0 = (t, e) => (t = +t, Number.isFinite(t) ? t : e), gs = "abcdefghijklmnopqrstuvwxyz", Yl = "0123456789", Yd = {
|
|
8658
8658
|
DIGIT: Yl,
|
|
@@ -8675,10 +8675,10 @@ const S0 = (t) => {
|
|
|
8675
8675
|
return;
|
|
8676
8676
|
if (!("toJSON" in r)) {
|
|
8677
8677
|
e[i] = r;
|
|
8678
|
-
const o =
|
|
8679
|
-
return
|
|
8678
|
+
const o = Cr(r) ? [] : {};
|
|
8679
|
+
return mi(r, (s, a) => {
|
|
8680
8680
|
const c = n(s, i + 1);
|
|
8681
|
-
!
|
|
8681
|
+
!di(c) && (o[a] = c);
|
|
8682
8682
|
}), e[i] = void 0, o;
|
|
8683
8683
|
}
|
|
8684
8684
|
}
|
|
@@ -8686,7 +8686,7 @@ const S0 = (t) => {
|
|
|
8686
8686
|
};
|
|
8687
8687
|
return n(t, 0);
|
|
8688
8688
|
}, A0 = _t("AsyncFunction"), x0 = (t) => t && (Wo(t) || Tt(t)) && Tt(t.then) && Tt(t.catch), j = {
|
|
8689
|
-
isArray:
|
|
8689
|
+
isArray: Cr,
|
|
8690
8690
|
isArrayBuffer: Hd,
|
|
8691
8691
|
isBuffer: qy,
|
|
8692
8692
|
isFormData: r0,
|
|
@@ -8696,7 +8696,7 @@ const S0 = (t) => {
|
|
|
8696
8696
|
isBoolean: _y,
|
|
8697
8697
|
isObject: Wo,
|
|
8698
8698
|
isPlainObject: io,
|
|
8699
|
-
isUndefined:
|
|
8699
|
+
isUndefined: di,
|
|
8700
8700
|
isDate: Xy,
|
|
8701
8701
|
isFile: $y,
|
|
8702
8702
|
isBlob: e0,
|
|
@@ -8706,7 +8706,7 @@ const S0 = (t) => {
|
|
|
8706
8706
|
isURLSearchParams: i0,
|
|
8707
8707
|
isTypedArray: f0,
|
|
8708
8708
|
isFileList: t0,
|
|
8709
|
-
forEach:
|
|
8709
|
+
forEach: mi,
|
|
8710
8710
|
merge: ea,
|
|
8711
8711
|
extend: s0,
|
|
8712
8712
|
trim: o0,
|
|
@@ -9121,7 +9121,7 @@ const Da = Ia, F0 = j.toObjectSet([
|
|
|
9121
9121
|
i = s.indexOf(":"), n = s.substring(0, i).trim().toLowerCase(), r = s.substring(i + 1).trim(), !(!n || e[n] && F0[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
|
|
9122
9122
|
}), e;
|
|
9123
9123
|
}, Zl = Symbol("internals");
|
|
9124
|
-
function
|
|
9124
|
+
function Br(t) {
|
|
9125
9125
|
return t && String(t).trim().toLowerCase();
|
|
9126
9126
|
}
|
|
9127
9127
|
function oo(t) {
|
|
@@ -9166,7 +9166,7 @@ class qo {
|
|
|
9166
9166
|
set(e, n, r) {
|
|
9167
9167
|
const i = this;
|
|
9168
9168
|
function o(a, c, l) {
|
|
9169
|
-
const u =
|
|
9169
|
+
const u = Br(c);
|
|
9170
9170
|
if (!u)
|
|
9171
9171
|
throw new Error("header name must be a non-empty string");
|
|
9172
9172
|
const d = j.findKey(i, u);
|
|
@@ -9176,7 +9176,7 @@ class qo {
|
|
|
9176
9176
|
return j.isPlainObject(e) || e instanceof this.constructor ? s(e, n) : j.isString(e) && (e = e.trim()) && !Q0(e) ? s(G0(e), n) : e != null && o(n, e, r), this;
|
|
9177
9177
|
}
|
|
9178
9178
|
get(e, n) {
|
|
9179
|
-
if (e =
|
|
9179
|
+
if (e = Br(e), e) {
|
|
9180
9180
|
const r = j.findKey(this, e);
|
|
9181
9181
|
if (r) {
|
|
9182
9182
|
const i = this[r];
|
|
@@ -9193,7 +9193,7 @@ class qo {
|
|
|
9193
9193
|
}
|
|
9194
9194
|
}
|
|
9195
9195
|
has(e, n) {
|
|
9196
|
-
if (e =
|
|
9196
|
+
if (e = Br(e), e) {
|
|
9197
9197
|
const r = j.findKey(this, e);
|
|
9198
9198
|
return !!(r && this[r] !== void 0 && (!n || vs(this, this[r], r, n)));
|
|
9199
9199
|
}
|
|
@@ -9203,7 +9203,7 @@ class qo {
|
|
|
9203
9203
|
const r = this;
|
|
9204
9204
|
let i = !1;
|
|
9205
9205
|
function o(s) {
|
|
9206
|
-
if (s =
|
|
9206
|
+
if (s = Br(s), s) {
|
|
9207
9207
|
const a = j.findKey(r, s);
|
|
9208
9208
|
a && (!n || vs(r, r[a], a, n)) && (delete r[a], i = !0);
|
|
9209
9209
|
}
|
|
@@ -9262,7 +9262,7 @@ class qo {
|
|
|
9262
9262
|
accessors: {}
|
|
9263
9263
|
}).accessors, i = this.prototype;
|
|
9264
9264
|
function o(s) {
|
|
9265
|
-
const a =
|
|
9265
|
+
const a = Br(s);
|
|
9266
9266
|
r[a] || (W0(i, s), r[a] = !0);
|
|
9267
9267
|
}
|
|
9268
9268
|
return j.isArray(e) ? e.forEach(o) : o(e), this;
|
|
@@ -9290,10 +9290,10 @@ function ms(t, e) {
|
|
|
9290
9290
|
function $d(t) {
|
|
9291
9291
|
return !!(t && t.__CANCEL__);
|
|
9292
9292
|
}
|
|
9293
|
-
function
|
|
9293
|
+
function yi(t, e, n) {
|
|
9294
9294
|
ke.call(this, t ?? "canceled", ke.ERR_CANCELED, e, n), this.name = "CanceledError";
|
|
9295
9295
|
}
|
|
9296
|
-
j.inherits(
|
|
9296
|
+
j.inherits(yi, ke, {
|
|
9297
9297
|
__CANCEL__: !0
|
|
9298
9298
|
});
|
|
9299
9299
|
function K0(t, e, n) {
|
|
@@ -9473,7 +9473,7 @@ const eb = typeof XMLHttpRequest < "u", tb = eb && function(t) {
|
|
|
9473
9473
|
i === void 0 && o.setContentType(null), "setRequestHeader" in l && j.forEach(o.toJSON(), function(g, h) {
|
|
9474
9474
|
l.setRequestHeader(h, g);
|
|
9475
9475
|
}), j.isUndefined(t.withCredentials) || (l.withCredentials = !!t.withCredentials), s && s !== "json" && (l.responseType = t.responseType), typeof t.onDownloadProgress == "function" && l.addEventListener("progress", Jl(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && l.upload && l.upload.addEventListener("progress", Jl(t.onUploadProgress)), (t.cancelToken || t.signal) && (a = (p) => {
|
|
9476
|
-
l && (r(!p || p.type ? new
|
|
9476
|
+
l && (r(!p || p.type ? new yi(null, t, l) : p), l.abort(), l = null);
|
|
9477
9477
|
}, t.cancelToken && t.cancelToken.subscribe(a), t.signal && (t.signal.aborted ? a() : t.signal.addEventListener("abort", a)));
|
|
9478
9478
|
const f = X0(u);
|
|
9479
9479
|
if (f && zt.protocols.indexOf(f) === -1) {
|
|
@@ -9517,7 +9517,7 @@ const tf = {
|
|
|
9517
9517
|
};
|
|
9518
9518
|
function ys(t) {
|
|
9519
9519
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
9520
|
-
throw new
|
|
9520
|
+
throw new yi(null, t);
|
|
9521
9521
|
}
|
|
9522
9522
|
function _l(t) {
|
|
9523
9523
|
return ys(t), t.headers = sn.from(t.headers), t.data = ms.call(
|
|
@@ -9538,7 +9538,7 @@ function _l(t) {
|
|
|
9538
9538
|
});
|
|
9539
9539
|
}
|
|
9540
9540
|
const Xl = (t) => t instanceof sn ? t.toJSON() : t;
|
|
9541
|
-
function
|
|
9541
|
+
function yr(t, e) {
|
|
9542
9542
|
e = e || {};
|
|
9543
9543
|
const n = {};
|
|
9544
9544
|
function r(l, u, d) {
|
|
@@ -9665,7 +9665,7 @@ class ko {
|
|
|
9665
9665
|
* @returns {Promise} The Promise to be fulfilled
|
|
9666
9666
|
*/
|
|
9667
9667
|
request(e, n) {
|
|
9668
|
-
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n =
|
|
9668
|
+
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = yr(this.defaults, n);
|
|
9669
9669
|
const { transitional: r, paramsSerializer: i, headers: o } = n;
|
|
9670
9670
|
r !== void 0 && na.assertOptions(r, {
|
|
9671
9671
|
silentJSONParsing: fn.transitional(fn.boolean),
|
|
@@ -9724,14 +9724,14 @@ class ko {
|
|
|
9724
9724
|
return u;
|
|
9725
9725
|
}
|
|
9726
9726
|
getUri(e) {
|
|
9727
|
-
e =
|
|
9727
|
+
e = yr(this.defaults, e);
|
|
9728
9728
|
const n = ef(e.baseURL, e.url);
|
|
9729
9729
|
return Jd(n, e.params, e.paramsSerializer);
|
|
9730
9730
|
}
|
|
9731
9731
|
}
|
|
9732
9732
|
j.forEach(["delete", "get", "head", "options"], function(e) {
|
|
9733
9733
|
ko.prototype[e] = function(n, r) {
|
|
9734
|
-
return this.request(
|
|
9734
|
+
return this.request(yr(r || {}, {
|
|
9735
9735
|
method: e,
|
|
9736
9736
|
url: n,
|
|
9737
9737
|
data: (r || {}).data
|
|
@@ -9741,7 +9741,7 @@ j.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
9741
9741
|
j.forEach(["post", "put", "patch"], function(e) {
|
|
9742
9742
|
function n(r) {
|
|
9743
9743
|
return function(o, s, a) {
|
|
9744
|
-
return this.request(
|
|
9744
|
+
return this.request(yr(a || {}, {
|
|
9745
9745
|
method: e,
|
|
9746
9746
|
headers: r ? {
|
|
9747
9747
|
"Content-Type": "multipart/form-data"
|
|
@@ -9779,7 +9779,7 @@ class Ta {
|
|
|
9779
9779
|
r.unsubscribe(o);
|
|
9780
9780
|
}, s;
|
|
9781
9781
|
}, e(function(o, s, a) {
|
|
9782
|
-
r.reason || (r.reason = new
|
|
9782
|
+
r.reason || (r.reason = new yi(o, s, a), n(r.reason));
|
|
9783
9783
|
});
|
|
9784
9784
|
}
|
|
9785
9785
|
/**
|
|
@@ -9903,12 +9903,12 @@ const sb = ra;
|
|
|
9903
9903
|
function rf(t) {
|
|
9904
9904
|
const e = new ao(t), n = Ud(ao.prototype.request, e);
|
|
9905
9905
|
return j.extend(n, ao.prototype, e, { allOwnKeys: !0 }), j.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(i) {
|
|
9906
|
-
return rf(
|
|
9906
|
+
return rf(yr(t, i));
|
|
9907
9907
|
}, n;
|
|
9908
9908
|
}
|
|
9909
9909
|
const rt = rf(Da);
|
|
9910
9910
|
rt.Axios = ao;
|
|
9911
|
-
rt.CanceledError =
|
|
9911
|
+
rt.CanceledError = yi;
|
|
9912
9912
|
rt.CancelToken = rb;
|
|
9913
9913
|
rt.isCancel = $d;
|
|
9914
9914
|
rt.VERSION = nf;
|
|
@@ -9920,7 +9920,7 @@ rt.all = function(e) {
|
|
|
9920
9920
|
};
|
|
9921
9921
|
rt.spread = ib;
|
|
9922
9922
|
rt.isAxiosError = ob;
|
|
9923
|
-
rt.mergeConfig =
|
|
9923
|
+
rt.mergeConfig = yr;
|
|
9924
9924
|
rt.AxiosHeaders = sn;
|
|
9925
9925
|
rt.formToJSON = (t) => Xd(j.isHTMLForm(t) ? new FormData(t) : t);
|
|
9926
9926
|
rt.getAdapter = tf.getAdapter;
|
|
@@ -9973,14 +9973,14 @@ async function* ec({ q: t, filter: e, bounds: n } = {}, { loading: r, onCancel:
|
|
|
9973
9973
|
return yield a, a;
|
|
9974
9974
|
}
|
|
9975
9975
|
const ia = /* @__PURE__ */ new WeakSet();
|
|
9976
|
-
let
|
|
9977
|
-
ia.add(
|
|
9976
|
+
let ar = new AbortController();
|
|
9977
|
+
ia.add(ar);
|
|
9978
9978
|
const db = () => {
|
|
9979
|
-
|
|
9979
|
+
ar.abort(), ia.delete(ar), ar = new AbortController(), ia.add(ar);
|
|
9980
9980
|
}, tc = (t, e, n) => async (r) => {
|
|
9981
9981
|
const i = {
|
|
9982
9982
|
loading: t,
|
|
9983
|
-
controller:
|
|
9983
|
+
controller: ar,
|
|
9984
9984
|
onCancel: db
|
|
9985
9985
|
};
|
|
9986
9986
|
if (!n) {
|
|
@@ -10081,7 +10081,7 @@ const db = () => {
|
|
|
10081
10081
|
[Kt.CheckOrder]: !1,
|
|
10082
10082
|
[Kt.DressingRoom]: !1
|
|
10083
10083
|
}
|
|
10084
|
-
},
|
|
10084
|
+
}, Wn = An((t) => ({
|
|
10085
10085
|
...hb,
|
|
10086
10086
|
setFilter(e) {
|
|
10087
10087
|
qe.getState().setDetailsOpen(!1), Mt.getState().setCourierPoint(null), Ot.getState().setSelectedPoint(null), t(e);
|
|
@@ -10089,14 +10089,14 @@ const db = () => {
|
|
|
10089
10089
|
})), pb = () => {
|
|
10090
10090
|
E(() => {
|
|
10091
10091
|
Zt.getState().loadFirst();
|
|
10092
|
-
const t =
|
|
10092
|
+
const t = Wn.subscribe((e) => {
|
|
10093
10093
|
Zt.getState().loadFirst(e);
|
|
10094
10094
|
});
|
|
10095
10095
|
return () => {
|
|
10096
10096
|
t();
|
|
10097
10097
|
};
|
|
10098
10098
|
}, []);
|
|
10099
|
-
},
|
|
10099
|
+
}, Nr = ".", Na = Symbol("target"), sf = Symbol("unsubscribe");
|
|
10100
10100
|
function sa(t) {
|
|
10101
10101
|
return t instanceof Date || t instanceof Set || t instanceof Map || t instanceof WeakSet || t instanceof WeakMap || ArrayBuffer.isView(t);
|
|
10102
10102
|
}
|
|
@@ -10109,13 +10109,13 @@ function ja(t) {
|
|
|
10109
10109
|
}
|
|
10110
10110
|
const It = {
|
|
10111
10111
|
after: (t, e) => Yt(t) ? t.slice(e.length) : e === "" ? t : t.slice(e.length + 1),
|
|
10112
|
-
concat: (t, e) => Yt(t) ? (t = [...t], e && t.push(e), t) : e && e.toString !== void 0 ? (t !== "" && (t +=
|
|
10112
|
+
concat: (t, e) => Yt(t) ? (t = [...t], e && t.push(e), t) : e && e.toString !== void 0 ? (t !== "" && (t += Nr), ja(e) ? t + e.toString() : t + e) : t,
|
|
10113
10113
|
initial: (t) => {
|
|
10114
10114
|
if (Yt(t))
|
|
10115
10115
|
return t.slice(0, -1);
|
|
10116
10116
|
if (t === "")
|
|
10117
10117
|
return t;
|
|
10118
|
-
const e = t.lastIndexOf(
|
|
10118
|
+
const e = t.lastIndexOf(Nr);
|
|
10119
10119
|
return e === -1 ? "" : t.slice(0, e);
|
|
10120
10120
|
},
|
|
10121
10121
|
last: (t) => {
|
|
@@ -10123,7 +10123,7 @@ const It = {
|
|
|
10123
10123
|
return t[t.length - 1] || "";
|
|
10124
10124
|
if (t === "")
|
|
10125
10125
|
return t;
|
|
10126
|
-
const e = t.lastIndexOf(
|
|
10126
|
+
const e = t.lastIndexOf(Nr);
|
|
10127
10127
|
return e === -1 ? t : t.slice(e + 1);
|
|
10128
10128
|
},
|
|
10129
10129
|
walk: (t, e) => {
|
|
@@ -10131,12 +10131,12 @@ const It = {
|
|
|
10131
10131
|
for (const n of t)
|
|
10132
10132
|
e(n);
|
|
10133
10133
|
else if (t !== "") {
|
|
10134
|
-
let n = 0, r = t.indexOf(
|
|
10134
|
+
let n = 0, r = t.indexOf(Nr);
|
|
10135
10135
|
if (r === -1)
|
|
10136
10136
|
e(t);
|
|
10137
10137
|
else
|
|
10138
10138
|
for (; n < t.length; )
|
|
10139
|
-
r === -1 && (r = t.length), e(t.slice(n, r)), n = r + 1, r = t.indexOf(
|
|
10139
|
+
r === -1 && (r = t.length), e(t.slice(n, r)), n = r + 1, r = t.indexOf(Nr, n);
|
|
10140
10140
|
}
|
|
10141
10141
|
},
|
|
10142
10142
|
get(t, e) {
|
|
@@ -10259,10 +10259,10 @@ class yb {
|
|
|
10259
10259
|
function aa(t) {
|
|
10260
10260
|
return toString.call(t) === "[object Object]";
|
|
10261
10261
|
}
|
|
10262
|
-
function
|
|
10262
|
+
function Fi() {
|
|
10263
10263
|
return !0;
|
|
10264
10264
|
}
|
|
10265
|
-
function
|
|
10265
|
+
function nr(t, e) {
|
|
10266
10266
|
return t.length !== e.length || t.some((n, r) => e[r] !== n);
|
|
10267
10267
|
}
|
|
10268
10268
|
const af = /* @__PURE__ */ new Set([
|
|
@@ -10280,22 +10280,22 @@ const af = /* @__PURE__ */ new Set([
|
|
|
10280
10280
|
"keys",
|
|
10281
10281
|
"lastIndexOf"
|
|
10282
10282
|
]), lf = {
|
|
10283
|
-
push:
|
|
10284
|
-
pop:
|
|
10285
|
-
shift:
|
|
10286
|
-
unshift:
|
|
10287
|
-
copyWithin:
|
|
10288
|
-
reverse:
|
|
10289
|
-
sort:
|
|
10290
|
-
splice:
|
|
10291
|
-
flat:
|
|
10292
|
-
fill:
|
|
10283
|
+
push: Fi,
|
|
10284
|
+
pop: Fi,
|
|
10285
|
+
shift: Fi,
|
|
10286
|
+
unshift: Fi,
|
|
10287
|
+
copyWithin: nr,
|
|
10288
|
+
reverse: nr,
|
|
10289
|
+
sort: nr,
|
|
10290
|
+
splice: nr,
|
|
10291
|
+
flat: nr,
|
|
10292
|
+
fill: nr
|
|
10293
10293
|
}, wb = /* @__PURE__ */ new Set([
|
|
10294
10294
|
...af,
|
|
10295
10295
|
...bb,
|
|
10296
10296
|
...Object.keys(lf)
|
|
10297
10297
|
]);
|
|
10298
|
-
function
|
|
10298
|
+
function Gi(t, e) {
|
|
10299
10299
|
if (t.size !== e.size)
|
|
10300
10300
|
return !0;
|
|
10301
10301
|
for (const n of t)
|
|
@@ -10311,16 +10311,16 @@ const cf = [
|
|
|
10311
10311
|
"has",
|
|
10312
10312
|
"toString"
|
|
10313
10313
|
]), df = {
|
|
10314
|
-
add:
|
|
10315
|
-
clear:
|
|
10316
|
-
delete:
|
|
10317
|
-
forEach:
|
|
10314
|
+
add: Gi,
|
|
10315
|
+
clear: Gi,
|
|
10316
|
+
delete: Gi,
|
|
10317
|
+
forEach: Gi
|
|
10318
10318
|
}, Cb = /* @__PURE__ */ new Set([
|
|
10319
10319
|
...uf,
|
|
10320
10320
|
...Object.keys(df),
|
|
10321
10321
|
...cf
|
|
10322
10322
|
]);
|
|
10323
|
-
function
|
|
10323
|
+
function Vi(t, e) {
|
|
10324
10324
|
if (t.size !== e.size)
|
|
10325
10325
|
return !0;
|
|
10326
10326
|
let n;
|
|
@@ -10330,10 +10330,10 @@ function Gi(t, e) {
|
|
|
10330
10330
|
return !1;
|
|
10331
10331
|
}
|
|
10332
10332
|
const Eb = /* @__PURE__ */ new Set([...uf, "get"]), ff = {
|
|
10333
|
-
set:
|
|
10334
|
-
clear:
|
|
10335
|
-
delete:
|
|
10336
|
-
forEach:
|
|
10333
|
+
set: Vi,
|
|
10334
|
+
clear: Vi,
|
|
10335
|
+
delete: Vi,
|
|
10336
|
+
forEach: Vi
|
|
10337
10337
|
}, Lb = /* @__PURE__ */ new Set([
|
|
10338
10338
|
...Eb,
|
|
10339
10339
|
...Object.keys(ff),
|
|
@@ -10447,7 +10447,7 @@ class xb extends Sn {
|
|
|
10447
10447
|
this._weakHas && !n ? e.set(this._weakKey, this._weakValue) : !this._weakHas && n ? e.delete(this._weakKey) : this._weakValue !== e.get(this._weakKey) && e.set(this._weakKey, this._weakValue);
|
|
10448
10448
|
}
|
|
10449
10449
|
}
|
|
10450
|
-
class
|
|
10450
|
+
class jn {
|
|
10451
10451
|
constructor(e) {
|
|
10452
10452
|
this._stack = [], this._hasOnValidate = e;
|
|
10453
10453
|
}
|
|
@@ -10468,7 +10468,7 @@ class Nn {
|
|
|
10468
10468
|
this._stack[this._stack.length - 1].update(e, n, r);
|
|
10469
10469
|
}
|
|
10470
10470
|
preferredThisArg(e, n, r) {
|
|
10471
|
-
const { name: i } = e, o =
|
|
10471
|
+
const { name: i } = e, o = jn.isHandledMethod(r, i);
|
|
10472
10472
|
return this._stack[this._stack.length - 1].preferredThisArg(o, i, n, r);
|
|
10473
10473
|
}
|
|
10474
10474
|
isChanged(e, n, r) {
|
|
@@ -10489,16 +10489,16 @@ const Ob = {
|
|
|
10489
10489
|
ignoreUnderscores: !1,
|
|
10490
10490
|
ignoreDetached: !1,
|
|
10491
10491
|
details: !1
|
|
10492
|
-
},
|
|
10492
|
+
}, ri = (t, e, n = {}) => {
|
|
10493
10493
|
n = {
|
|
10494
10494
|
...Ob,
|
|
10495
10495
|
...n
|
|
10496
10496
|
};
|
|
10497
|
-
const r = Symbol("ProxyTarget"), { equals: i, isShallow: o, ignoreDetached: s, details: a } = n, c = new yb(i), l = typeof n.onValidate == "function", u = new
|
|
10497
|
+
const r = Symbol("ProxyTarget"), { equals: i, isShallow: o, ignoreDetached: s, details: a } = n, c = new yb(i), l = typeof n.onValidate == "function", u = new jn(l), d = (v, y, x, L, m) => !l || u.isCloning || n.onValidate(It.concat(c.getPath(v), y), x, L, m) === !0, f = (v, y, x, L) => {
|
|
10498
10498
|
!rc(c, n, y) && !(s && c.isDetached(v, t)) && p(c.getPath(v), y, x, L);
|
|
10499
10499
|
}, p = (v, y, x, L, m) => {
|
|
10500
10500
|
u.isCloning ? u.update(v, y, L) : e(It.concat(v, y), x, L, m);
|
|
10501
|
-
}, g = (v) => v && (v[r] || v), h = (v, y, x, L) => gb(v) || x === "constructor" || o && !
|
|
10501
|
+
}, g = (v) => v && (v[r] || v), h = (v, y, x, L) => gb(v) || x === "constructor" || o && !jn.isHandledMethod(y, x) || rc(c, n, x) || c.isGetInvariant(y, x) || s && c.isDetached(y, t) ? v : (L === void 0 && (L = c.getPath(y)), c.getProxy(v, It.concat(L, x), C, r)), C = {
|
|
10502
10502
|
get(v, y, x) {
|
|
10503
10503
|
if (ja(y)) {
|
|
10504
10504
|
if (y === r || y === Na)
|
|
@@ -10534,9 +10534,9 @@ const Ob = {
|
|
|
10534
10534
|
const L = y[r] || y;
|
|
10535
10535
|
if (c.isUnsubscribed)
|
|
10536
10536
|
return Reflect.apply(v, L, x);
|
|
10537
|
-
if ((a === !1 || a !== !0 && !a.includes(v.name)) &&
|
|
10537
|
+
if ((a === !1 || a !== !0 && !a.includes(v.name)) && jn.isHandledType(L)) {
|
|
10538
10538
|
let m = It.initial(c.getPath(v));
|
|
10539
|
-
const b =
|
|
10539
|
+
const b = jn.isHandledMethod(L, v.name);
|
|
10540
10540
|
u.start(L, m, x);
|
|
10541
10541
|
let S = Reflect.apply(
|
|
10542
10542
|
v,
|
|
@@ -10544,7 +10544,7 @@ const Ob = {
|
|
|
10544
10544
|
b ? x.map((A) => g(A)) : x
|
|
10545
10545
|
);
|
|
10546
10546
|
const P = u.isChanged(L, i), O = u.stop();
|
|
10547
|
-
if (
|
|
10547
|
+
if (jn.isHandledType(S) && b && (y instanceof Map && v.name === "get" && (m = It.concat(m, x[0])), S = c.getProxy(S, m, C)), P) {
|
|
10548
10548
|
const A = {
|
|
10549
10549
|
name: v.name,
|
|
10550
10550
|
args: x,
|
|
@@ -10559,35 +10559,46 @@ const Ob = {
|
|
|
10559
10559
|
}, w = c.getProxy(t, n.pathAsArray ? [] : "", C);
|
|
10560
10560
|
return e = e.bind(w), l && (n.onValidate = n.onValidate.bind(w)), w;
|
|
10561
10561
|
};
|
|
10562
|
-
|
|
10563
|
-
|
|
10562
|
+
ri.target = (t) => t && t[Na] || t;
|
|
10563
|
+
ri.unsubscribe = (t) => t[sf] || t;
|
|
10564
10564
|
const Mb = (t) => {
|
|
10565
10565
|
const e = t ?? window.OMNIC_WIDGET_LOCATIONS_CONFIG, [n, r] = I({
|
|
10566
|
-
...
|
|
10566
|
+
...Bn,
|
|
10567
10567
|
...e,
|
|
10568
10568
|
map: {
|
|
10569
|
-
...
|
|
10569
|
+
...Bn.map,
|
|
10570
10570
|
...e == null ? void 0 : e.map
|
|
10571
10571
|
},
|
|
10572
10572
|
palette: {
|
|
10573
|
-
...
|
|
10573
|
+
...Bn.palette,
|
|
10574
10574
|
...e == null ? void 0 : e.palette
|
|
10575
10575
|
}
|
|
10576
10576
|
});
|
|
10577
10577
|
console.log(n);
|
|
10578
10578
|
const i = t && !window.OMNIC_WIDGET_LOCATIONS_CONFIG, o = !t && window.OMNIC_WIDGET_LOCATIONS_CONFIG;
|
|
10579
10579
|
return E(() => {
|
|
10580
|
-
i && r(
|
|
10580
|
+
i && r({
|
|
10581
|
+
...Bn,
|
|
10582
|
+
...t,
|
|
10583
|
+
map: {
|
|
10584
|
+
...Bn.map,
|
|
10585
|
+
...t.map
|
|
10586
|
+
},
|
|
10587
|
+
palette: {
|
|
10588
|
+
...Bn.palette,
|
|
10589
|
+
...t.palette
|
|
10590
|
+
}
|
|
10591
|
+
});
|
|
10581
10592
|
}, [t, i]), E(() => {
|
|
10582
10593
|
if (o)
|
|
10583
|
-
return window.OMNIC_WIDGET_LOCATIONS_CONFIG =
|
|
10594
|
+
return window.OMNIC_WIDGET_LOCATIONS_CONFIG = ri(
|
|
10584
10595
|
window.OMNIC_WIDGET_LOCATIONS_CONFIG,
|
|
10585
10596
|
function() {
|
|
10586
|
-
const s =
|
|
10587
|
-
s.
|
|
10597
|
+
const s = ri.target(this);
|
|
10598
|
+
s.map && (s.map = { ...s.map }), s.palette && (s.palette = { ...s.palette }), r({ ...s });
|
|
10588
10599
|
}
|
|
10589
10600
|
), () => {
|
|
10590
|
-
window.OMNIC_WIDGET_LOCATIONS_CONFIG &&
|
|
10601
|
+
window.OMNIC_WIDGET_LOCATIONS_CONFIG && ri.unsubscribe(window.OMNIC_WIDGET_LOCATIONS_CONFIG);
|
|
10591
10602
|
};
|
|
10592
10603
|
}, [o]), n;
|
|
10593
10604
|
}, Pb = (t, e) => {
|
|
@@ -11014,11 +11025,11 @@ function gf(t) {
|
|
|
11014
11025
|
var e = t.googleMapsApiKey, n = t.googleMapsClientId, r = t.version, i = r === void 0 ? "weekly" : r, o = t.language, s = t.region, a = t.libraries, c = t.channel, l = t.mapIds, u = t.authReferrerPolicy, d = [];
|
|
11015
11026
|
return tt(e && n || !(e && n), "You need to specify either googleMapsApiKey or googleMapsClientId for @react-google-maps/api load script to work. You cannot use both at the same time."), e ? d.push("key=".concat(e)) : n && d.push("client=".concat(n)), i && d.push("v=".concat(i)), o && d.push("language=".concat(o)), s && d.push("region=".concat(s)), a && a.length && d.push("libraries=".concat(a.sort().join(","))), c && d.push("channel=".concat(c)), l && l.length && d.push("map_ids=".concat(l.join(","))), u && d.push("auth_referrer_policy=".concat(u)), d.push("callback=initMap"), "https://maps.googleapis.com/maps/api/js?".concat(d.join("&"));
|
|
11016
11027
|
}
|
|
11017
|
-
var
|
|
11028
|
+
var jr = !1;
|
|
11018
11029
|
function vf() {
|
|
11019
11030
|
return M("div", { children: "Loading..." });
|
|
11020
11031
|
}
|
|
11021
|
-
var
|
|
11032
|
+
var fi = {
|
|
11022
11033
|
id: "script-loader",
|
|
11023
11034
|
version: "weekly"
|
|
11024
11035
|
};
|
|
@@ -11033,11 +11044,11 @@ var di = {
|
|
|
11033
11044
|
}, n.isCleaningUp = function() {
|
|
11034
11045
|
return Tb(n, void 0, void 0, function() {
|
|
11035
11046
|
function r(i) {
|
|
11036
|
-
if (!
|
|
11047
|
+
if (!jr)
|
|
11037
11048
|
i();
|
|
11038
11049
|
else if (Ln)
|
|
11039
11050
|
var o = window.setInterval(function() {
|
|
11040
|
-
|
|
11051
|
+
jr || (window.clearInterval(o), i());
|
|
11041
11052
|
}, 1);
|
|
11042
11053
|
}
|
|
11043
11054
|
return Bb(this, function(i) {
|
|
@@ -11045,7 +11056,7 @@ var di = {
|
|
|
11045
11056
|
});
|
|
11046
11057
|
});
|
|
11047
11058
|
}, n.cleanup = function() {
|
|
11048
|
-
|
|
11059
|
+
jr = !0;
|
|
11049
11060
|
var r = document.getElementById(n.props.id);
|
|
11050
11061
|
r && r.parentNode && r.parentNode.removeChild(r), Array.prototype.slice.call(document.getElementsByTagName("script")).filter(function(o) {
|
|
11051
11062
|
return typeof o.src == "string" && o.src.includes("maps.googleapis");
|
|
@@ -11083,7 +11094,7 @@ var di = {
|
|
|
11083
11094
|
}
|
|
11084
11095
|
return e.prototype.componentDidMount = function() {
|
|
11085
11096
|
if (Ln) {
|
|
11086
|
-
if (window.google && window.google.maps && !
|
|
11097
|
+
if (window.google && window.google.maps && !jr) {
|
|
11087
11098
|
console.error("google api is already presented");
|
|
11088
11099
|
return;
|
|
11089
11100
|
}
|
|
@@ -11102,17 +11113,17 @@ var di = {
|
|
|
11102
11113
|
if (Ln) {
|
|
11103
11114
|
this.cleanup();
|
|
11104
11115
|
var r = function() {
|
|
11105
|
-
n.check.current || (delete window.google,
|
|
11116
|
+
n.check.current || (delete window.google, jr = !1);
|
|
11106
11117
|
};
|
|
11107
11118
|
window.setTimeout(r, 1), this.props.onUnmount && this.props.onUnmount();
|
|
11108
11119
|
}
|
|
11109
11120
|
}, e.prototype.render = function() {
|
|
11110
11121
|
return J(Ft, { children: [M("div", { ref: this.check }), this.state.loaded ? this.props.children : this.props.loadingElement || M(vf, {})] });
|
|
11111
|
-
}, e.defaultProps =
|
|
11122
|
+
}, e.defaultProps = fi, e;
|
|
11112
11123
|
})(Ye);
|
|
11113
11124
|
var uc;
|
|
11114
11125
|
function Wb(t) {
|
|
11115
|
-
var e = t.id, n = e === void 0 ?
|
|
11126
|
+
var e = t.id, n = e === void 0 ? fi.id : e, r = t.version, i = r === void 0 ? fi.version : r, o = t.nonce, s = t.googleMapsApiKey, a = t.googleMapsClientId, c = t.language, l = t.region, u = t.libraries, d = t.preventGoogleFontsLoading, f = t.channel, p = t.mapIds, g = t.authReferrerPolicy, h = se(!1), C = I(!1), w = C[0], v = C[1], y = I(void 0), x = y[0], L = y[1];
|
|
11116
11127
|
E(function() {
|
|
11117
11128
|
return h.current = !0, function() {
|
|
11118
11129
|
h.current = !1;
|
|
@@ -11246,11 +11257,11 @@ var Jb = function t(e, n) {
|
|
|
11246
11257
|
return e !== e && n !== n;
|
|
11247
11258
|
};
|
|
11248
11259
|
const dc = "__googleMapsScriptId";
|
|
11249
|
-
var
|
|
11260
|
+
var lr;
|
|
11250
11261
|
(function(t) {
|
|
11251
11262
|
t[t.INITIALIZED = 0] = "INITIALIZED", t[t.LOADING = 1] = "LOADING", t[t.SUCCESS = 2] = "SUCCESS", t[t.FAILURE = 3] = "FAILURE";
|
|
11252
|
-
})(
|
|
11253
|
-
class
|
|
11263
|
+
})(lr || (lr = {}));
|
|
11264
|
+
class Un {
|
|
11254
11265
|
/**
|
|
11255
11266
|
* Creates an instance of Loader using [[LoaderOptions]]. No defaults are set
|
|
11256
11267
|
* using this library, instead the defaults are set by the Google Maps
|
|
@@ -11261,12 +11272,12 @@ class jn {
|
|
|
11261
11272
|
* ```
|
|
11262
11273
|
*/
|
|
11263
11274
|
constructor({ apiKey: e, authReferrerPolicy: n, channel: r, client: i, id: o = dc, language: s, libraries: a = [], mapIds: c, nonce: l, region: u, retries: d = 3, url: f = "https://maps.googleapis.com/maps/api/js", version: p }) {
|
|
11264
|
-
if (this.callbacks = [], this.done = !1, this.loading = !1, this.errors = [], this.apiKey = e, this.authReferrerPolicy = n, this.channel = r, this.client = i, this.id = o || dc, this.language = s, this.libraries = a, this.mapIds = c, this.nonce = l, this.region = u, this.retries = d, this.url = f, this.version = p,
|
|
11265
|
-
if (!Jb(this.options,
|
|
11266
|
-
throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(
|
|
11267
|
-
return
|
|
11275
|
+
if (this.callbacks = [], this.done = !1, this.loading = !1, this.errors = [], this.apiKey = e, this.authReferrerPolicy = n, this.channel = r, this.client = i, this.id = o || dc, this.language = s, this.libraries = a, this.mapIds = c, this.nonce = l, this.region = u, this.retries = d, this.url = f, this.version = p, Un.instance) {
|
|
11276
|
+
if (!Jb(this.options, Un.instance.options))
|
|
11277
|
+
throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Un.instance.options)}`);
|
|
11278
|
+
return Un.instance;
|
|
11268
11279
|
}
|
|
11269
|
-
|
|
11280
|
+
Un.instance = this;
|
|
11270
11281
|
}
|
|
11271
11282
|
get options() {
|
|
11272
11283
|
return {
|
|
@@ -11285,7 +11296,7 @@ class jn {
|
|
|
11285
11296
|
};
|
|
11286
11297
|
}
|
|
11287
11298
|
get status() {
|
|
11288
|
-
return this.errors.length ?
|
|
11299
|
+
return this.errors.length ? lr.FAILURE : this.done ? lr.SUCCESS : this.loading ? lr.LOADING : lr.INITIALIZED;
|
|
11289
11300
|
}
|
|
11290
11301
|
get failed() {
|
|
11291
11302
|
return this.done && !this.loading && this.errors.length >= this.retries + 1;
|
|
@@ -11415,14 +11426,14 @@ class jn {
|
|
|
11415
11426
|
}
|
|
11416
11427
|
var _b = ["maps"];
|
|
11417
11428
|
function Xb(t) {
|
|
11418
|
-
var e = t.id, n = e === void 0 ?
|
|
11429
|
+
var e = t.id, n = e === void 0 ? fi.id : e, r = t.version, i = r === void 0 ? fi.version : r, o = t.nonce, s = t.googleMapsApiKey, a = t.language, c = t.region, l = t.libraries, u = l === void 0 ? _b : l, d = t.preventGoogleFontsLoading, f = t.mapIds, p = t.authReferrerPolicy, g = se(!1), h = I(!1), C = h[0], w = h[1], v = I(void 0), y = v[0], x = v[1];
|
|
11419
11430
|
E(function() {
|
|
11420
11431
|
return g.current = !0, function() {
|
|
11421
11432
|
g.current = !1;
|
|
11422
11433
|
};
|
|
11423
11434
|
}, []);
|
|
11424
11435
|
var L = lt(function() {
|
|
11425
|
-
return new
|
|
11436
|
+
return new Un({
|
|
11426
11437
|
id: n,
|
|
11427
11438
|
apiKey: s,
|
|
11428
11439
|
version: i,
|
|
@@ -11722,7 +11733,7 @@ var vc = {
|
|
|
11722
11733
|
}
|
|
11723
11734
|
}, Do = {};
|
|
11724
11735
|
function rw(t) {
|
|
11725
|
-
var e = t.position, n = t.options, r = t.clusterer, i = t.noClustererRedraw, o = t.children, s = t.draggable, a = t.visible, c = t.animation, l = t.clickable, u = t.cursor, d = t.icon, f = t.label, p = t.opacity, g = t.shape, h = t.title, C = t.zIndex, w = t.onClick, v = t.onDblClick, y = t.onDrag, x = t.onDragEnd, L = t.onDragStart, m = t.onMouseOut, b = t.onMouseOver, S = t.onMouseUp, P = t.onMouseDown, O = t.onRightClick, A = t.onClickableChanged, k = t.onCursorChanged, N = t.onAnimationChanged, z = t.onDraggableChanged, Q = t.onFlatChanged, q = t.onIconChanged, V = t.onPositionChanged, K = t.onShapeChanged, T = t.onTitleChanged, D = t.onVisibleChanged, R = t.onZindexChanged, G = t.onLoad, H = t.onUnmount, Y = et(we), oe = I(null), U = oe[0], ne = oe[1], he = I(null), _ = he[0], B = he[1], Z = I(null), ee = Z[0], le = Z[1], ye = I(null), ce = ye[0], pe = ye[1], Me = I(null), Ie = Me[0], De = Me[1], fe = I(null), ve = fe[0], Ze = fe[1], it = I(null), te = it[0], Je = it[1], Ve = I(null), wt = Ve[0], pt = Ve[1], me = I(null), xn = me[0],
|
|
11736
|
+
var e = t.position, n = t.options, r = t.clusterer, i = t.noClustererRedraw, o = t.children, s = t.draggable, a = t.visible, c = t.animation, l = t.clickable, u = t.cursor, d = t.icon, f = t.label, p = t.opacity, g = t.shape, h = t.title, C = t.zIndex, w = t.onClick, v = t.onDblClick, y = t.onDrag, x = t.onDragEnd, L = t.onDragStart, m = t.onMouseOut, b = t.onMouseOver, S = t.onMouseUp, P = t.onMouseDown, O = t.onRightClick, A = t.onClickableChanged, k = t.onCursorChanged, N = t.onAnimationChanged, z = t.onDraggableChanged, Q = t.onFlatChanged, q = t.onIconChanged, V = t.onPositionChanged, K = t.onShapeChanged, T = t.onTitleChanged, D = t.onVisibleChanged, R = t.onZindexChanged, G = t.onLoad, H = t.onUnmount, Y = et(we), oe = I(null), U = oe[0], ne = oe[1], he = I(null), _ = he[0], B = he[1], Z = I(null), ee = Z[0], le = Z[1], ye = I(null), ce = ye[0], pe = ye[1], Me = I(null), Ie = Me[0], De = Me[1], fe = I(null), ve = fe[0], Ze = fe[1], it = I(null), te = it[0], Je = it[1], Ve = I(null), wt = Ve[0], pt = Ve[1], me = I(null), xn = me[0], wi = me[1], Bt = I(null), Xt = Bt[0], Ci = Bt[1], F = I(null), ue = F[0], X = F[1], Ee = I(null), He = Ee[0], Pe = Ee[1], ze = I(null), je = ze[0], Qe = ze[1], be = I(null), Ae = be[0], yt = be[1], $t = I(null), gt = $t[0], nt = $t[1], Ct = I(null), Et = Ct[0], st = Ct[1], Vt = I(null), Nt = Vt[0], Lt = Vt[1], ln = I(null), en = ln[0], Lr = ln[1], Sr = I(null), Zn = Sr[0], Ar = Sr[1], Jn = I(null), On = Jn[0], xr = Jn[1], cn = I(null), Mn = cn[0], Pn = cn[1], kn = I(null), In = kn[0], Or = kn[1];
|
|
11726
11737
|
E(function() {
|
|
11727
11738
|
U !== null && U.setMap(Y);
|
|
11728
11739
|
}, [Y]), E(function() {
|
|
@@ -11750,9 +11761,9 @@ function rw(t) {
|
|
|
11750
11761
|
}, [b]), E(function() {
|
|
11751
11762
|
U && S && (wt !== null && google.maps.event.removeListener(wt), pt(google.maps.event.addListener(U, "mouseup", S)));
|
|
11752
11763
|
}, [S]), E(function() {
|
|
11753
|
-
U && O && (xn !== null && google.maps.event.removeListener(xn),
|
|
11764
|
+
U && O && (xn !== null && google.maps.event.removeListener(xn), wi(google.maps.event.addListener(U, "rightclick", O)));
|
|
11754
11765
|
}, [O]), E(function() {
|
|
11755
|
-
U && w && (Xt !== null && google.maps.event.removeListener(Xt),
|
|
11766
|
+
U && w && (Xt !== null && google.maps.event.removeListener(Xt), Ci(google.maps.event.addListener(U, "click", w)));
|
|
11756
11767
|
}, [w]), E(function() {
|
|
11757
11768
|
U && y && (ue !== null && google.maps.event.removeListener(ue), X(google.maps.event.addListener(U, "drag", y)));
|
|
11758
11769
|
}, [y]), E(function() {
|
|
@@ -11768,22 +11779,22 @@ function rw(t) {
|
|
|
11768
11779
|
}, [Q]), E(function() {
|
|
11769
11780
|
U && q && (Nt !== null && google.maps.event.removeListener(Nt), Lt(google.maps.event.addListener(U, "icon_changed", q)));
|
|
11770
11781
|
}, [q]), E(function() {
|
|
11771
|
-
U && V && (en !== null && google.maps.event.removeListener(en),
|
|
11782
|
+
U && V && (en !== null && google.maps.event.removeListener(en), Lr(google.maps.event.addListener(U, "position_changed", V)));
|
|
11772
11783
|
}, [V]), E(function() {
|
|
11773
|
-
U && K && (
|
|
11784
|
+
U && K && (Zn !== null && google.maps.event.removeListener(Zn), Ar(google.maps.event.addListener(U, "shape_changed", K)));
|
|
11774
11785
|
}, [K]), E(function() {
|
|
11775
|
-
U && T && (On !== null && google.maps.event.removeListener(On),
|
|
11786
|
+
U && T && (On !== null && google.maps.event.removeListener(On), xr(google.maps.event.addListener(U, "title_changed", T)));
|
|
11776
11787
|
}, [T]), E(function() {
|
|
11777
11788
|
U && D && (Mn !== null && google.maps.event.removeListener(Mn), Pn(google.maps.event.addListener(U, "visible_changed", D)));
|
|
11778
11789
|
}, [D]), E(function() {
|
|
11779
|
-
U && R && (In !== null && google.maps.event.removeListener(In),
|
|
11790
|
+
U && R && (In !== null && google.maps.event.removeListener(In), Or(google.maps.event.addListener(U, "zindex_changed", R)));
|
|
11780
11791
|
}, [R]), E(function() {
|
|
11781
11792
|
var un = ie(ie(ie({}, n || Do), r ? Do : { map: Y }), { position: e }), de = new google.maps.Marker(un);
|
|
11782
|
-
return r ? r.addMarker(de, !!i) : de.setMap(Y), e && de.setPosition(e), typeof a < "u" && de.setVisible(a), typeof s < "u" && de.setDraggable(s), typeof l < "u" && de.setClickable(l), typeof u == "string" && de.setCursor(u), d && de.setIcon(d), typeof f < "u" && de.setLabel(f), typeof p < "u" && de.setOpacity(p), g && de.setShape(g), typeof h == "string" && de.setTitle(h), typeof C == "number" && de.setZIndex(C), v && B(google.maps.event.addListener(de, "dblclick", v)), x && le(google.maps.event.addListener(de, "dragend", x)), L && pe(google.maps.event.addListener(de, "dragstart", L)), P && De(google.maps.event.addListener(de, "mousedown", P)), m && Ze(google.maps.event.addListener(de, "mouseout", m)), b && Je(google.maps.event.addListener(de, "mouseover", b)), S && pt(google.maps.event.addListener(de, "mouseup", S)), O &&
|
|
11793
|
+
return r ? r.addMarker(de, !!i) : de.setMap(Y), e && de.setPosition(e), typeof a < "u" && de.setVisible(a), typeof s < "u" && de.setDraggable(s), typeof l < "u" && de.setClickable(l), typeof u == "string" && de.setCursor(u), d && de.setIcon(d), typeof f < "u" && de.setLabel(f), typeof p < "u" && de.setOpacity(p), g && de.setShape(g), typeof h == "string" && de.setTitle(h), typeof C == "number" && de.setZIndex(C), v && B(google.maps.event.addListener(de, "dblclick", v)), x && le(google.maps.event.addListener(de, "dragend", x)), L && pe(google.maps.event.addListener(de, "dragstart", L)), P && De(google.maps.event.addListener(de, "mousedown", P)), m && Ze(google.maps.event.addListener(de, "mouseout", m)), b && Je(google.maps.event.addListener(de, "mouseover", b)), S && pt(google.maps.event.addListener(de, "mouseup", S)), O && wi(google.maps.event.addListener(de, "rightclick", O)), w && Ci(google.maps.event.addListener(de, "click", w)), y && X(google.maps.event.addListener(de, "drag", y)), A && Pe(google.maps.event.addListener(de, "clickable_changed", A)), k && Qe(google.maps.event.addListener(de, "cursor_changed", k)), N && yt(google.maps.event.addListener(de, "animation_changed", N)), z && nt(google.maps.event.addListener(de, "draggable_changed", z)), Q && st(google.maps.event.addListener(de, "flat_changed", Q)), q && Lt(google.maps.event.addListener(de, "icon_changed", q)), V && Lr(google.maps.event.addListener(de, "position_changed", V)), K && Ar(google.maps.event.addListener(de, "shape_changed", K)), T && xr(google.maps.event.addListener(de, "title_changed", T)), D && Pn(google.maps.event.addListener(de, "visible_changed", D)), R && Or(google.maps.event.addListener(de, "zindex_changed", R)), ne(de), G && G(de), function() {
|
|
11783
11794
|
_ !== null && google.maps.event.removeListener(_), ee !== null && google.maps.event.removeListener(ee), ce !== null && google.maps.event.removeListener(ce), Ie !== null && google.maps.event.removeListener(Ie), ve !== null && google.maps.event.removeListener(ve), te !== null && google.maps.event.removeListener(te), wt !== null && google.maps.event.removeListener(wt), xn !== null && google.maps.event.removeListener(xn), Xt !== null && google.maps.event.removeListener(Xt), He !== null && google.maps.event.removeListener(He), je !== null && google.maps.event.removeListener(je), Ae !== null && google.maps.event.removeListener(Ae), gt !== null && google.maps.event.removeListener(gt), Et !== null && google.maps.event.removeListener(Et), Nt !== null && google.maps.event.removeListener(Nt), en !== null && google.maps.event.removeListener(en), On !== null && google.maps.event.removeListener(On), Mn !== null && google.maps.event.removeListener(Mn), In !== null && google.maps.event.removeListener(In), H && H(de), r ? r.removeMarker(de, !!i) : de && de.setMap(null);
|
|
11784
11795
|
};
|
|
11785
11796
|
}, []);
|
|
11786
|
-
var
|
|
11797
|
+
var Mr = lt(function() {
|
|
11787
11798
|
return o ? an.map(o, function(un) {
|
|
11788
11799
|
if (!hu(un))
|
|
11789
11800
|
return un;
|
|
@@ -11791,7 +11802,7 @@ function rw(t) {
|
|
|
11791
11802
|
return pu(de, { anchor: U });
|
|
11792
11803
|
}) : null;
|
|
11793
11804
|
}, [o, U]);
|
|
11794
|
-
return M(Ft, { children:
|
|
11805
|
+
return M(Ft, { children: Mr }) || null;
|
|
11795
11806
|
}
|
|
11796
11807
|
Be(rw);
|
|
11797
11808
|
var mf = (
|
|
@@ -12613,7 +12624,7 @@ function mw(t) {
|
|
|
12613
12624
|
return function() {
|
|
12614
12625
|
h !== null && (v && google.maps.event.removeListener(v), S && google.maps.event.removeListener(S), L && google.maps.event.removeListener(L), A && google.maps.event.removeListener(A), z && google.maps.event.removeListener(z), f && f(h), h.close());
|
|
12615
12626
|
};
|
|
12616
|
-
}, []), q.current ?
|
|
12627
|
+
}, []), q.current ? pi(an.only(e), q.current) : null;
|
|
12617
12628
|
}
|
|
12618
12629
|
Be(mw);
|
|
12619
12630
|
(function(t) {
|
|
@@ -12652,7 +12663,7 @@ Be(mw);
|
|
|
12652
12663
|
var n = this.props.onUnmount, r = this.state.infoBox;
|
|
12653
12664
|
r !== null && (n && n(r), Se(this.registeredEvents), r.close());
|
|
12654
12665
|
}, e.prototype.render = function() {
|
|
12655
|
-
return this.containerElement ?
|
|
12666
|
+
return this.containerElement ? pi(an.only(this.props.children), this.containerElement) : null;
|
|
12656
12667
|
}, e.contextType = we, e;
|
|
12657
12668
|
})(Ye);
|
|
12658
12669
|
var yw = function t(e, n) {
|
|
@@ -12700,7 +12711,7 @@ const Ec = [
|
|
|
12700
12711
|
Uint32Array,
|
|
12701
12712
|
Float32Array,
|
|
12702
12713
|
Float64Array
|
|
12703
|
-
], bs = 1,
|
|
12714
|
+
], bs = 1, Ur = 8;
|
|
12704
12715
|
class Ga {
|
|
12705
12716
|
/**
|
|
12706
12717
|
* Creates an index from raw `ArrayBuffer` data.
|
|
@@ -12735,7 +12746,7 @@ class Ga {
|
|
|
12735
12746
|
const o = Ec.indexOf(this.ArrayType), s = e * 2 * this.ArrayType.BYTES_PER_ELEMENT, a = e * this.IndexArrayType.BYTES_PER_ELEMENT, c = (8 - a % 8) % 8;
|
|
12736
12747
|
if (o < 0)
|
|
12737
12748
|
throw new Error(`Unexpected typed array class: ${r}.`);
|
|
12738
|
-
i && i instanceof ArrayBuffer ? (this.data = i, this.ids = new this.IndexArrayType(this.data,
|
|
12749
|
+
i && i instanceof ArrayBuffer ? (this.data = i, this.ids = new this.IndexArrayType(this.data, Ur, e), this.coords = new this.ArrayType(this.data, Ur + a + c, e * 2), this._pos = e * 2, this._finished = !0) : (this.data = new ArrayBuffer(Ur + s + a + c), this.ids = new this.IndexArrayType(this.data, Ur, e), this.coords = new this.ArrayType(this.data, Ur + a + c, e * 2), this._pos = 0, this._finished = !1, new Uint8Array(this.data, 0, 2).set([219, (bs << 4) + o]), new Uint16Array(this.data, 2, 1)[0] = n, new Uint32Array(this.data, 4, 1)[0] = e);
|
|
12739
12750
|
}
|
|
12740
12751
|
/**
|
|
12741
12752
|
* Add a point to the index.
|
|
@@ -12820,16 +12831,16 @@ function wf(t, e, n, r, i, o) {
|
|
|
12820
12831
|
}
|
|
12821
12832
|
const s = e[2 * n + o];
|
|
12822
12833
|
let a = r, c = i;
|
|
12823
|
-
for (
|
|
12824
|
-
for (
|
|
12834
|
+
for (Hr(t, e, r, n), e[2 * i + o] > s && Hr(t, e, r, i); a < c; ) {
|
|
12835
|
+
for (Hr(t, e, a, c), a++, c--; e[2 * a + o] < s; )
|
|
12825
12836
|
a++;
|
|
12826
12837
|
for (; e[2 * c + o] > s; )
|
|
12827
12838
|
c--;
|
|
12828
12839
|
}
|
|
12829
|
-
e[2 * r + o] === s ?
|
|
12840
|
+
e[2 * r + o] === s ? Hr(t, e, r, c) : (c++, Hr(t, e, c, i)), c <= n && (r = c + 1), n <= c && (i = c - 1);
|
|
12830
12841
|
}
|
|
12831
12842
|
}
|
|
12832
|
-
function
|
|
12843
|
+
function Hr(t, e, n, r) {
|
|
12833
12844
|
ws(t, n, r), ws(e, 2 * n, 2 * r), ws(e, 2 * n + 1, 2 * r + 1);
|
|
12834
12845
|
}
|
|
12835
12846
|
function ws(t, e, n) {
|
|
@@ -12878,7 +12889,7 @@ class ww {
|
|
|
12878
12889
|
const l = e[c];
|
|
12879
12890
|
if (!l.geometry)
|
|
12880
12891
|
continue;
|
|
12881
|
-
const [u, d] = l.geometry.coordinates, f = Sc(
|
|
12892
|
+
const [u, d] = l.geometry.coordinates, f = Sc(Qi(u)), p = Sc(Yi(d));
|
|
12882
12893
|
s.push(
|
|
12883
12894
|
f,
|
|
12884
12895
|
p,
|
|
@@ -12912,7 +12923,7 @@ class ww {
|
|
|
12912
12923
|
const d = this.getClusters([r, i, 180, s], n), f = this.getClusters([-180, i, o, s], n);
|
|
12913
12924
|
return d.concat(f);
|
|
12914
12925
|
}
|
|
12915
|
-
const a = this.trees[this._limitZoom(n)], c = a.range(
|
|
12926
|
+
const a = this.trees[this._limitZoom(n)], c = a.range(Qi(r), Yi(s), Qi(o), Yi(i)), l = a.data, u = [];
|
|
12916
12927
|
for (const d of c) {
|
|
12917
12928
|
const f = this.stride * d;
|
|
12918
12929
|
u.push(l[f + gn] > 1 ? Ac(l, f, this.clusterProps) : this.points[l[f + mn]]);
|
|
@@ -13002,7 +13013,7 @@ class ww {
|
|
|
13002
13013
|
const h = this.points[n[c + mn]];
|
|
13003
13014
|
u = h.properties;
|
|
13004
13015
|
const [C, w] = h.geometry.coordinates;
|
|
13005
|
-
d =
|
|
13016
|
+
d = Qi(C), f = Yi(w);
|
|
13006
13017
|
}
|
|
13007
13018
|
const p = {
|
|
13008
13019
|
type: 1,
|
|
@@ -13096,10 +13107,10 @@ function Ef(t, e, n) {
|
|
|
13096
13107
|
point_count_abbreviated: i
|
|
13097
13108
|
});
|
|
13098
13109
|
}
|
|
13099
|
-
function
|
|
13110
|
+
function Qi(t) {
|
|
13100
13111
|
return t / 360 + 0.5;
|
|
13101
13112
|
}
|
|
13102
|
-
function
|
|
13113
|
+
function Yi(t) {
|
|
13103
13114
|
const e = Math.sin(t * Math.PI / 180), n = 0.5 - 0.25 * Math.log((1 + e) / (1 - e)) / Math.PI;
|
|
13104
13115
|
return n < 0 ? 0 : n > 1 ? 1 : n;
|
|
13105
13116
|
}
|
|
@@ -13354,10 +13365,10 @@ class Va {
|
|
|
13354
13365
|
Pw(Va, google.maps.OverlayView);
|
|
13355
13366
|
}
|
|
13356
13367
|
}
|
|
13357
|
-
var
|
|
13368
|
+
var ii;
|
|
13358
13369
|
(function(t) {
|
|
13359
13370
|
t.CLUSTERING_BEGIN = "clusteringbegin", t.CLUSTERING_END = "clusteringend", t.CLUSTER_CLICK = "click";
|
|
13360
|
-
})(
|
|
13371
|
+
})(ii || (ii = {}));
|
|
13361
13372
|
const kw = (t, e, n) => {
|
|
13362
13373
|
n.fitBounds(e.bounds);
|
|
13363
13374
|
};
|
|
@@ -13392,7 +13403,7 @@ class Iw extends Va {
|
|
|
13392
13403
|
render() {
|
|
13393
13404
|
const e = this.getMap();
|
|
13394
13405
|
if (e instanceof google.maps.Map && e.getProjection()) {
|
|
13395
|
-
google.maps.event.trigger(this,
|
|
13406
|
+
google.maps.event.trigger(this, ii.CLUSTERING_BEGIN, this);
|
|
13396
13407
|
const { clusters: n, changed: r } = this.algorithm.calculate({
|
|
13397
13408
|
markers: this.markers,
|
|
13398
13409
|
map: e,
|
|
@@ -13407,7 +13418,7 @@ class Iw extends Va {
|
|
|
13407
13418
|
s.marker != null && (s.markers.length == 1 ? i.has(s.marker) || xt.setMap(s.marker, null) : o.push(s.marker));
|
|
13408
13419
|
this.clusters = n, this.renderClusters(), requestAnimationFrame(() => o.forEach((s) => xt.setMap(s, null)));
|
|
13409
13420
|
}
|
|
13410
|
-
google.maps.event.trigger(this,
|
|
13421
|
+
google.maps.event.trigger(this, ii.CLUSTERING_END, this);
|
|
13411
13422
|
}
|
|
13412
13423
|
}
|
|
13413
13424
|
onAdd() {
|
|
@@ -13426,7 +13437,7 @@ class Iw extends Va {
|
|
|
13426
13437
|
"click",
|
|
13427
13438
|
/* istanbul ignore next */
|
|
13428
13439
|
(i) => {
|
|
13429
|
-
google.maps.event.trigger(this,
|
|
13440
|
+
google.maps.event.trigger(this, ii.CLUSTER_CLICK, r), this.onClusterClick(i, r, n);
|
|
13430
13441
|
}
|
|
13431
13442
|
)), xt.setMap(r.marker, n);
|
|
13432
13443
|
});
|
|
@@ -13488,7 +13499,7 @@ function Tw(t) {
|
|
|
13488
13499
|
return C(V), q.current = document.createElement("div"), s && y(google.maps.event.addListener(V, "closeclick", s)), a && m(google.maps.event.addListener(V, "domready", a)), c && P(google.maps.event.addListener(V, "content_changed", c)), l && k(google.maps.event.addListener(V, "position_changed", l)), u && Q(google.maps.event.addListener(V, "zindex_changed", u)), V.setContent(q.current), i && V.setPosition(i), o && V.setZIndex(o), n ? V.open(p, n) : V.getPosition() ? V.open(p) : tt(!1, "You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>."), d && d(V), function() {
|
|
13489
13500
|
v && google.maps.event.removeListener(v), S && google.maps.event.removeListener(S), L && google.maps.event.removeListener(L), A && google.maps.event.removeListener(A), z && google.maps.event.removeListener(z), f && f(V), V.close();
|
|
13490
13501
|
};
|
|
13491
|
-
}, []), q.current ?
|
|
13502
|
+
}, []), q.current ? pi(an.only(e), q.current) : null;
|
|
13492
13503
|
}
|
|
13493
13504
|
Be(Tw);
|
|
13494
13505
|
var Lf = (
|
|
@@ -13529,7 +13540,7 @@ var Lf = (
|
|
|
13529
13540
|
}, e.prototype.componentWillUnmount = function() {
|
|
13530
13541
|
this.state.infoWindow !== null && (Se(this.registeredEvents), this.props.onUnmount && this.props.onUnmount(this.state.infoWindow), this.state.infoWindow.close());
|
|
13531
13542
|
}, e.prototype.render = function() {
|
|
13532
|
-
return this.containerElement ?
|
|
13543
|
+
return this.containerElement ? pi(an.only(this.props.children), this.containerElement) : null;
|
|
13533
13544
|
}, e.contextType = we, e;
|
|
13534
13545
|
}(Ye)
|
|
13535
13546
|
), Mc = {
|
|
@@ -14896,7 +14907,7 @@ const eC = {
|
|
|
14896
14907
|
n == null ? a : s + c + n,
|
|
14897
14908
|
l - Mf
|
|
14898
14909
|
],
|
|
14899
|
-
footer: e ? null : /* @__PURE__ */ M(Rt, { disabled: r, variant: "primary", className: ot.sheetSubmit, onClick: i, children: /* @__PURE__ */ M(
|
|
14910
|
+
footer: e ? null : /* @__PURE__ */ M(Rt, { disabled: r, variant: "primary", className: ot.sheetSubmit, onClick: i, children: /* @__PURE__ */ M(Hn, { keyName: "choose", ns: "common" }) }),
|
|
14900
14911
|
sibling: /* @__PURE__ */ M(
|
|
14901
14912
|
"div",
|
|
14902
14913
|
{
|
|
@@ -14933,7 +14944,7 @@ const eC = {
|
|
|
14933
14944
|
return () => clearTimeout(n);
|
|
14934
14945
|
}, [t]), [t, e];
|
|
14935
14946
|
}, wC = ({ map: t }) => {
|
|
14936
|
-
const e =
|
|
14947
|
+
const e = Yn((r) => r.place), n = qe((r) => r.zoom);
|
|
14937
14948
|
E(() => {
|
|
14938
14949
|
var o, s, a, c;
|
|
14939
14950
|
if (!e)
|
|
@@ -14967,7 +14978,7 @@ const eC = {
|
|
|
14967
14978
|
onDetails: o,
|
|
14968
14979
|
onClose: s
|
|
14969
14980
|
}) => {
|
|
14970
|
-
const a = e === "error", c = e === "default", l = t ? "{ courier_balloon.title }" : /* @__PURE__ */ M(
|
|
14981
|
+
const a = e === "error", c = e === "default", l = t ? "{ courier_balloon.title }" : /* @__PURE__ */ M(Hn, { keyName: "title", ns: "courier_balloon" }), u = t ? "{ courier_balloon.error_title }" : /* @__PURE__ */ M(Hn, { keyName: "error_title", ns: "courier_balloon" }), d = t ? "{ courier_balloon.error_description }" : /* @__PURE__ */ M(Hn, { keyName: "error_description", ns: "courier_balloon" });
|
|
14971
14982
|
return /* @__PURE__ */ J("div", { className: Oe(hn.root, r, hn[`${e}Variant`]), children: [
|
|
14972
14983
|
/* @__PURE__ */ J("div", { className: hn.header, children: [
|
|
14973
14984
|
/* @__PURE__ */ M(If, { className: hn.logo }),
|
|
@@ -14975,7 +14986,7 @@ const eC = {
|
|
|
14975
14986
|
i && /* @__PURE__ */ M(Zo, { onClick: s })
|
|
14976
14987
|
] }),
|
|
14977
14988
|
/* @__PURE__ */ M("div", { className: hn.description, children: a ? d : n || "{{ properties.address }}" }),
|
|
14978
|
-
c && /* @__PURE__ */ M("div", { className: hn.actions, children: /* @__PURE__ */ M(Rt, { id: vo, as: "button", variant: "primary", className: hn.details, onClick: o, children: t ? "{ details }" : /* @__PURE__ */ M(
|
|
14989
|
+
c && /* @__PURE__ */ M("div", { className: hn.actions, children: /* @__PURE__ */ M(Rt, { id: vo, as: "button", variant: "primary", className: hn.details, onClick: o, children: t ? "{ details }" : /* @__PURE__ */ M(Hn, { keyName: "details", ns: "common" }) }) })
|
|
14979
14990
|
] });
|
|
14980
14991
|
}, DC = "Chip-module__root__A1duWr", RC = "Chip-module__active__PmXa7K", eu = {
|
|
14981
14992
|
root: DC,
|
|
@@ -14994,7 +15005,7 @@ const eC = {
|
|
|
14994
15005
|
}, nu = Bo(
|
|
14995
15006
|
({ className: t, inputRef: e, onChange: n, onBlur: r, ...i }, o) => {
|
|
14996
15007
|
const s = se(null);
|
|
14997
|
-
|
|
15008
|
+
hi(
|
|
14998
15009
|
o,
|
|
14999
15010
|
() => ({
|
|
15000
15011
|
focus: () => {
|
|
@@ -15146,7 +15157,7 @@ const eC = {
|
|
|
15146
15157
|
apartment_number: ""
|
|
15147
15158
|
});
|
|
15148
15159
|
}, [t]);
|
|
15149
|
-
const [a, c] = I(null), l =
|
|
15160
|
+
const [a, c] = I(null), l = bi("screenSm"), u = {
|
|
15150
15161
|
lat: o.coords[0],
|
|
15151
15162
|
lng: o.coords[1]
|
|
15152
15163
|
}, d = () => {
|
|
@@ -15224,9 +15235,9 @@ const eC = {
|
|
|
15224
15235
|
s || "{{ properties.point.location_name }}"
|
|
15225
15236
|
] }),
|
|
15226
15237
|
/* @__PURE__ */ J("div", { className: Tn.actions, children: [
|
|
15227
|
-
/* @__PURE__ */ M(Rt, { id: Bs, variant: "primary", className: Tn.submit, onClick: r, children: t ? "{ choose }" : /* @__PURE__ */ M(
|
|
15238
|
+
/* @__PURE__ */ M(Rt, { id: Bs, variant: "primary", className: Tn.submit, onClick: r, children: t ? "{ choose }" : /* @__PURE__ */ M(Hn, { keyName: "choose", ns: "common" }) }),
|
|
15228
15239
|
/* @__PURE__ */ J(Rt, { id: vo, as: "link", variant: "primary", className: Tn.details, onClick: o, children: [
|
|
15229
|
-
t ? "{ details }" : /* @__PURE__ */ M(
|
|
15240
|
+
t ? "{ details }" : /* @__PURE__ */ M(Hn, { keyName: "details", ns: "common" }),
|
|
15230
15241
|
/* @__PURE__ */ M(_C, {})
|
|
15231
15242
|
] })
|
|
15232
15243
|
] })
|
|
@@ -15314,7 +15325,7 @@ const eC = {
|
|
|
15314
15325
|
setOpenDetails: i,
|
|
15315
15326
|
onPointSelected: o
|
|
15316
15327
|
}) => {
|
|
15317
|
-
const s =
|
|
15328
|
+
const s = bi("screenSm"), [a, c] = I(null), l = () => {
|
|
15318
15329
|
i(!1), o(t);
|
|
15319
15330
|
}, u = () => {
|
|
15320
15331
|
o(null);
|
|
@@ -15322,7 +15333,7 @@ const eC = {
|
|
|
15322
15333
|
i(!0), o(t);
|
|
15323
15334
|
}, f = () => {
|
|
15324
15335
|
n(t), i(!1), o(null);
|
|
15325
|
-
}, p = (r == null ? void 0 : r.uid) === t.uid, g = p ?
|
|
15336
|
+
}, p = (r == null ? void 0 : r.uid) === t.uid, g = p ? or : on, h = kf({ isSelectedPoint: p }), C = {
|
|
15326
15337
|
scaledSize: new google.maps.Size(...g),
|
|
15327
15338
|
url: t.type === 30 ? pa : ha
|
|
15328
15339
|
}, w = {
|
|
@@ -15393,7 +15404,7 @@ const eC = {
|
|
|
15393
15404
|
)) })
|
|
15394
15405
|
}
|
|
15395
15406
|
), EE = Be(CE), LE = ({ mounted: t, onOpenDetails: e, onPointClick: n, onPointSelected: r }) => {
|
|
15396
|
-
const { locale: i } = Jt(), o = Zt((l) => l.points), s = Ot((l) => l.location), a =
|
|
15407
|
+
const { locale: i } = Jt(), o = Zt((l) => l.points), s = Ot((l) => l.location), a = Yn((l) => l.place);
|
|
15397
15408
|
if (!t)
|
|
15398
15409
|
return null;
|
|
15399
15410
|
const c = JSON.stringify([o.length, i, a == null ? void 0 : a.place_id]);
|
|
@@ -15419,14 +15430,14 @@ const eC = {
|
|
|
15419
15430
|
});
|
|
15420
15431
|
}, OE = (t) => {
|
|
15421
15432
|
const e = document.createElement("div");
|
|
15422
|
-
e.classList.add(ot.mapControl), e.classList.add(ot.geolocationControl), e.innerHTML =
|
|
15433
|
+
e.classList.add(ot.mapControl), e.classList.add(ot.geolocationControl), e.innerHTML = qi(/* @__PURE__ */ M(AE, {})), t.controls[google.maps.ControlPosition.RIGHT_BOTTOM].push(e), e.addEventListener("click", () => {
|
|
15423
15434
|
navigator.geolocation && navigator.geolocation.getCurrentPosition((n) => {
|
|
15424
15435
|
const { latitude: r, longitude: i } = n.coords;
|
|
15425
15436
|
t.panTo({ lat: r, lng: i }), t.setZoom(ya);
|
|
15426
15437
|
});
|
|
15427
15438
|
});
|
|
15428
15439
|
}, ME = ({ className: t }) => {
|
|
15429
|
-
const e = qe((v) => v.loading), n = qe((v) => v.setDetailsOpen), r =
|
|
15440
|
+
const e = qe((v) => v.loading), n = qe((v) => v.setDetailsOpen), r = Wn(), i = Zt((v) => v.loading), o = Zt((v) => v.loadNext), s = Mt((v) => v.courierPoint), a = Mt((v) => v.setCourierPoint), c = Ot((v) => v.setSelectedPoint), { onPointClick: l } = Jt(), [u, d] = bC(), [f, p] = I(null);
|
|
15430
15441
|
wC({ map: f }), yC({
|
|
15431
15442
|
map: f,
|
|
15432
15443
|
onAttach: () => d(!1)
|
|
@@ -15476,22 +15487,22 @@ const eC = {
|
|
|
15476
15487
|
(i || e || !u) && /* @__PURE__ */ M(Ua, { className: ot.overlay, children: /* @__PURE__ */ M(Ha, {}) })
|
|
15477
15488
|
] });
|
|
15478
15489
|
}, PE = Be(ME);
|
|
15479
|
-
function
|
|
15480
|
-
return
|
|
15490
|
+
function Qn() {
|
|
15491
|
+
return Qn = Object.assign ? Object.assign.bind() : function(t) {
|
|
15481
15492
|
for (var e = 1; e < arguments.length; e++) {
|
|
15482
15493
|
var n = arguments[e];
|
|
15483
15494
|
for (var r in n)
|
|
15484
15495
|
Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]);
|
|
15485
15496
|
}
|
|
15486
15497
|
return t;
|
|
15487
|
-
},
|
|
15498
|
+
}, Qn.apply(this, arguments);
|
|
15488
15499
|
}
|
|
15489
15500
|
const jf = (t, e) => {
|
|
15490
15501
|
const n = {};
|
|
15491
15502
|
for (const r in t)
|
|
15492
15503
|
e.indexOf(r) === -1 && (n[r] = t[r]);
|
|
15493
15504
|
return n;
|
|
15494
|
-
}, Uf = /* @__PURE__ */ ae.createContext(null), Jo = /* @__PURE__ */ ae.createContext(null), Hf = (t) => (e) => /* @__PURE__ */ ae.createElement(Jo.Consumer, null, (n) => /* @__PURE__ */ ae.createElement(t,
|
|
15505
|
+
}, Uf = /* @__PURE__ */ ae.createContext(null), Jo = /* @__PURE__ */ ae.createContext(null), Hf = (t) => (e) => /* @__PURE__ */ ae.createElement(Jo.Consumer, null, (n) => /* @__PURE__ */ ae.createElement(t, Qn({ parent: n }, e))), kE = (t = []) => {
|
|
15495
15506
|
const [e, n] = I(!1), r = se(t), i = (() => {
|
|
15496
15507
|
const s = et(Uf);
|
|
15497
15508
|
if (s === null)
|
|
@@ -15506,7 +15517,7 @@ const jf = (t, e) => {
|
|
|
15506
15517
|
function Qa(t, e = !1, n = []) {
|
|
15507
15518
|
return (r) => {
|
|
15508
15519
|
const { width: i, height: o, modules: s = [], onLoad: a = IE } = r, c = kE(n.concat(s)), l = !e || !!c, u = jf(r, DE);
|
|
15509
|
-
return E(() => c ? a(c) : void 0, [c]), l ? /* @__PURE__ */ ae.createElement(t,
|
|
15520
|
+
return E(() => c ? a(c) : void 0, [c]), l ? /* @__PURE__ */ ae.createElement(t, Qn({ ymaps: c }, u)) : /* @__PURE__ */ ae.createElement("div", { style: { width: i, height: o } });
|
|
15510
15521
|
};
|
|
15511
15522
|
}
|
|
15512
15523
|
const RE = typeof window < "u", ru = { lang: "ru_RU", load: "", ns: "", mode: "release" }, TE = (t) => {
|
|
@@ -15563,15 +15574,15 @@ function Ke(t) {
|
|
|
15563
15574
|
return e;
|
|
15564
15575
|
}, { _events: {} });
|
|
15565
15576
|
}
|
|
15566
|
-
function
|
|
15577
|
+
function Kn(t, e, n) {
|
|
15567
15578
|
typeof n == "function" && t.events.add(e, n);
|
|
15568
15579
|
}
|
|
15569
|
-
function
|
|
15580
|
+
function qn(t, e, n) {
|
|
15570
15581
|
typeof n == "function" && t.events.remove(e, n);
|
|
15571
15582
|
}
|
|
15572
|
-
function
|
|
15583
|
+
function Er(t, e, n) {
|
|
15573
15584
|
Object.keys(Object.assign({}, e, n)).forEach((r) => {
|
|
15574
|
-
e[r] !== n[r] && (
|
|
15585
|
+
e[r] !== n[r] && (qn(t, r, e[r]), Kn(t, r, n[r]));
|
|
15575
15586
|
});
|
|
15576
15587
|
}
|
|
15577
15588
|
const zf = (t) => "default" + t.charAt(0).toUpperCase() + t.slice(1);
|
|
@@ -15606,28 +15617,28 @@ class BE extends ae.Component {
|
|
|
15606
15617
|
}
|
|
15607
15618
|
}
|
|
15608
15619
|
const Ya = (t) => ({ onError: e, ...n }) => /* @__PURE__ */ ae.createElement(BE, { onError: e }, /* @__PURE__ */ ae.createElement(t, n));
|
|
15609
|
-
class
|
|
15620
|
+
class oi extends ae.Component {
|
|
15610
15621
|
constructor() {
|
|
15611
15622
|
super(), this.instance = null, this.state = { instance: null }, this._parentElement = null, this._getRef = (e) => {
|
|
15612
15623
|
this._parentElement = e;
|
|
15613
15624
|
};
|
|
15614
15625
|
}
|
|
15615
15626
|
componentDidMount() {
|
|
15616
|
-
this.instance =
|
|
15627
|
+
this.instance = oi.mountObject(this._parentElement, this.props.ymaps.Map, this.props), this.setState({ instance: this.instance });
|
|
15617
15628
|
}
|
|
15618
15629
|
componentDidUpdate(e) {
|
|
15619
|
-
this.instance !== null &&
|
|
15630
|
+
this.instance !== null && oi.updateObject(this.instance, e, this.props);
|
|
15620
15631
|
}
|
|
15621
15632
|
componentWillUnmount() {
|
|
15622
|
-
|
|
15633
|
+
oi.unmountObject(this.instance, this.props);
|
|
15623
15634
|
}
|
|
15624
15635
|
render() {
|
|
15625
15636
|
const e = Ff(this.props), n = Ke(this.props), r = jf(n, ["_events", "state", "defaultState", "options", "defaultOptions", "instanceRef", "ymaps", "children", "width", "height", "style", "className"]);
|
|
15626
|
-
return ae.createElement(Jo.Provider, { value: this.state.instance }, /* @__PURE__ */ ae.createElement("div",
|
|
15637
|
+
return ae.createElement(Jo.Provider, { value: this.state.instance }, /* @__PURE__ */ ae.createElement("div", Qn({ ref: this._getRef }, e, r), this.props.children));
|
|
15627
15638
|
}
|
|
15628
15639
|
static mountObject(e, n, r) {
|
|
15629
15640
|
const { instanceRef: i, _events: o } = Ke(r), s = new n(e, re(r, "state"), re(r, "options"));
|
|
15630
|
-
return Object.keys(o).forEach((a) =>
|
|
15641
|
+
return Object.keys(o).forEach((a) => Kn(s, a, o[a])), ut(null, i, s), s;
|
|
15631
15642
|
}
|
|
15632
15643
|
static updateObject(e, n, r) {
|
|
15633
15644
|
const { _events: i, instanceRef: o } = Ke(r), { _events: s, instanceRef: a } = Ke(n);
|
|
@@ -15639,14 +15650,14 @@ class ii extends ae.Component {
|
|
|
15639
15650
|
const c = re(n, "options"), l = re(r, "options", {});
|
|
15640
15651
|
c !== l && e.options.set(l);
|
|
15641
15652
|
}
|
|
15642
|
-
re(n, "width") === re(r, "width") && re(n, "height") === re(r, "height") || e.container.fitToViewport(),
|
|
15653
|
+
re(n, "width") === re(r, "width") && re(n, "height") === re(r, "height") || e.container.fitToViewport(), Er(e, s, i), ut(a, o, e);
|
|
15643
15654
|
}
|
|
15644
15655
|
static unmountObject(e, n) {
|
|
15645
15656
|
const { instanceRef: r, _events: i } = Ke(n);
|
|
15646
|
-
e !== null && (Object.keys(i).forEach((o) =>
|
|
15657
|
+
e !== null && (Object.keys(i).forEach((o) => qn(e, o, i[o])), e.destroy(), ut(r));
|
|
15647
15658
|
}
|
|
15648
15659
|
}
|
|
15649
|
-
const Gf = Ya(Qa(
|
|
15660
|
+
const Gf = Ya(Qa(oi, !0, ["Map"]));
|
|
15650
15661
|
Gf.defaultProps = { width: 320, height: 240 };
|
|
15651
15662
|
class lo extends ae.Component {
|
|
15652
15663
|
constructor() {
|
|
@@ -15665,7 +15676,7 @@ class lo extends ae.Component {
|
|
|
15665
15676
|
}
|
|
15666
15677
|
render() {
|
|
15667
15678
|
const e = Ff(this.props);
|
|
15668
|
-
return ae.createElement("div",
|
|
15679
|
+
return ae.createElement("div", Qn({ ref: this._getRef }, e));
|
|
15669
15680
|
}
|
|
15670
15681
|
static mountObject(e, n, r) {
|
|
15671
15682
|
const { instanceRef: i, _events: o } = Ke(r), s = re(r, "point"), a = re(r, "locateOptions"), c = re(r, "options");
|
|
@@ -15673,7 +15684,7 @@ class lo extends ae.Component {
|
|
|
15673
15684
|
n.locate(s, a).done((d) => {
|
|
15674
15685
|
if (d.length > 0) {
|
|
15675
15686
|
const f = new n.Player(e, d[0], c);
|
|
15676
|
-
ut(null, i, f), Object.keys(o).forEach((p) =>
|
|
15687
|
+
ut(null, i, f), Object.keys(o).forEach((p) => Kn(f, p, o[p])), l(f);
|
|
15677
15688
|
}
|
|
15678
15689
|
}, u);
|
|
15679
15690
|
});
|
|
@@ -15688,11 +15699,11 @@ class lo extends ae.Component {
|
|
|
15688
15699
|
const c = re(r, "point"), l = re(n, "point"), u = re(r, "locateOptions");
|
|
15689
15700
|
c !== l && e.moveTo(c, u);
|
|
15690
15701
|
}
|
|
15691
|
-
|
|
15702
|
+
Er(e, s, i), ut(a, o, e);
|
|
15692
15703
|
}
|
|
15693
15704
|
static unmountObject(e, n) {
|
|
15694
15705
|
const { instanceRef: r, _events: i } = Ke(n);
|
|
15695
|
-
e !== null && (Object.keys(i).forEach((o) =>
|
|
15706
|
+
e !== null && (Object.keys(i).forEach((o) => qn(e, o, i[o])), ut(r));
|
|
15696
15707
|
}
|
|
15697
15708
|
}
|
|
15698
15709
|
class co extends ae.Component {
|
|
@@ -15714,7 +15725,7 @@ class co extends ae.Component {
|
|
|
15714
15725
|
}
|
|
15715
15726
|
static mountControl(e, n) {
|
|
15716
15727
|
const { instanceRef: r, parent: i, lazy: o, _events: s } = Ke(n), a = new e({ data: re(n, "data"), options: re(n, "options"), state: re(n, "state"), mapTypes: re(n, "mapTypes"), lazy: o });
|
|
15717
|
-
if (Object.keys(s).forEach((c) =>
|
|
15728
|
+
if (Object.keys(s).forEach((c) => Kn(a, c, s[c])), i && i.controls && typeof i.controls.add == "function")
|
|
15718
15729
|
i.controls.add(a);
|
|
15719
15730
|
else {
|
|
15720
15731
|
if (!i || !i.add || typeof i.add != "function")
|
|
@@ -15741,11 +15752,11 @@ class co extends ae.Component {
|
|
|
15741
15752
|
const c = re(n, "mapTypes"), l = re(r, "mapTypes");
|
|
15742
15753
|
c !== l && (e.removeAllMapTypes(), l.forEach((u) => e.addMapType(u)));
|
|
15743
15754
|
}
|
|
15744
|
-
|
|
15755
|
+
Er(e, s, i), ut(a, o, e);
|
|
15745
15756
|
}
|
|
15746
15757
|
static unmountControl(e, n) {
|
|
15747
15758
|
const { instanceRef: r, parent: i, _events: o } = Ke(n);
|
|
15748
|
-
e !== null && (Object.keys(o).forEach((s) =>
|
|
15759
|
+
e !== null && (Object.keys(o).forEach((s) => qn(e, s, o[s])), i.controls && typeof i.controls.remove == "function" ? i.controls.remove(e) : i.remove && typeof i.remove == "function" && i.remove(e), ut(r));
|
|
15749
15760
|
}
|
|
15750
15761
|
}
|
|
15751
15762
|
class uo extends ae.Component {
|
|
@@ -15767,7 +15778,7 @@ class uo extends ae.Component {
|
|
|
15767
15778
|
}
|
|
15768
15779
|
static mountObject(e, n) {
|
|
15769
15780
|
const { instanceRef: r, parent: i, _events: o } = Ke(n), s = new e(re(n, "options"));
|
|
15770
|
-
if (Object.keys(o).forEach((a) =>
|
|
15781
|
+
if (Object.keys(o).forEach((a) => Kn(s, a, o[a])), i.geoObjects && typeof i.geoObjects.add == "function")
|
|
15771
15782
|
i.geoObjects.add(s);
|
|
15772
15783
|
else {
|
|
15773
15784
|
if (!i.add || typeof i.add != "function")
|
|
@@ -15782,33 +15793,33 @@ class uo extends ae.Component {
|
|
|
15782
15793
|
const c = re(n, "options"), l = re(r, "options");
|
|
15783
15794
|
c !== l && e.options.set(l);
|
|
15784
15795
|
}
|
|
15785
|
-
|
|
15796
|
+
Er(e, s, i), ut(a, o, e);
|
|
15786
15797
|
}
|
|
15787
15798
|
static unmountObject(e, n) {
|
|
15788
15799
|
const { instanceRef: r, parent: i, _events: o } = Ke(n);
|
|
15789
|
-
e !== null && (Object.keys(o).forEach((s) =>
|
|
15800
|
+
e !== null && (Object.keys(o).forEach((s) => qn(e, s, o[s])), i.geoObjects && typeof i.geoObjects.remove == "function" ? i.geoObjects.remove(e) : i.remove && typeof i.remove == "function" && i.remove(e), ut(r));
|
|
15790
15801
|
}
|
|
15791
15802
|
}
|
|
15792
|
-
class
|
|
15803
|
+
class si extends ae.Component {
|
|
15793
15804
|
constructor() {
|
|
15794
15805
|
super(), this.state = { instance: null };
|
|
15795
15806
|
}
|
|
15796
15807
|
componentDidMount() {
|
|
15797
|
-
const e =
|
|
15808
|
+
const e = si.mountObject(this.props.ymaps.ObjectManager, this.props);
|
|
15798
15809
|
this.instance = e, this.setState({ instance: e });
|
|
15799
15810
|
}
|
|
15800
15811
|
componentDidUpdate(e) {
|
|
15801
|
-
this.instance !== null &&
|
|
15812
|
+
this.instance !== null && si.updateObject(this.instance, e, this.props);
|
|
15802
15813
|
}
|
|
15803
15814
|
componentWillUnmount() {
|
|
15804
|
-
|
|
15815
|
+
si.unmountObject(this.instance, this.props);
|
|
15805
15816
|
}
|
|
15806
15817
|
render() {
|
|
15807
15818
|
return null;
|
|
15808
15819
|
}
|
|
15809
15820
|
static mountObject(e, n) {
|
|
15810
15821
|
const { instanceRef: r, parent: i, _events: o } = Ke(n), s = re(n, "options", {}), a = re(n, "features", {}), c = re(n, "filter", null), l = re(n, "objects", {}), u = re(n, "clusters", {}), d = new e(s);
|
|
15811
|
-
if (d.add(a || []), d.setFilter(c), d.objects.options.set(l), d.clusters.options.set(u), Object.keys(o).forEach((f) =>
|
|
15822
|
+
if (d.add(a || []), d.setFilter(c), d.objects.options.set(l), d.clusters.options.set(u), Object.keys(o).forEach((f) => Kn(d, f, o[f])), i.geoObjects && typeof i.geoObjects.add == "function")
|
|
15812
15823
|
i.geoObjects.add(d);
|
|
15813
15824
|
else {
|
|
15814
15825
|
if (!i.add || typeof i.add != "function")
|
|
@@ -15839,34 +15850,34 @@ class oi extends ae.Component {
|
|
|
15839
15850
|
const c = re(n, "features"), l = re(r, "features");
|
|
15840
15851
|
c !== l && (e.remove(c), e.add(l));
|
|
15841
15852
|
}
|
|
15842
|
-
|
|
15853
|
+
Er(e, s, i), ut(a, o, e);
|
|
15843
15854
|
}
|
|
15844
15855
|
static unmountObject(e, n) {
|
|
15845
15856
|
const { instanceRef: r, parent: i, _events: o } = Ke(n);
|
|
15846
|
-
e !== null && (Object.keys(o).forEach((s) =>
|
|
15857
|
+
e !== null && (Object.keys(o).forEach((s) => qn(e, s, o[s])), i.geoObjects && typeof i.geoObjects.remove == "function" ? i.geoObjects.remove(e) : i.remove && typeof i.remove == "function" && i.remove(e), ut(r));
|
|
15847
15858
|
}
|
|
15848
15859
|
}
|
|
15849
|
-
var NE = Ya(Hf(Qa(
|
|
15850
|
-
class
|
|
15860
|
+
var NE = Ya(Hf(Qa(si, !0, ["ObjectManager"])));
|
|
15861
|
+
class ai extends ae.Component {
|
|
15851
15862
|
constructor() {
|
|
15852
15863
|
super(), this.state = { instance: null }, this.instance = null;
|
|
15853
15864
|
}
|
|
15854
15865
|
componentDidMount() {
|
|
15855
|
-
const { name: e, ymaps: n, dangerZone: r } = this.props, i =
|
|
15866
|
+
const { name: e, ymaps: n, dangerZone: r } = this.props, i = ai.mountObject(r && typeof r.modifyConstructor == "function" ? r.modifyConstructor(n[e]) : n[e], this.props);
|
|
15856
15867
|
this.instance = i, this.setState({ instance: i });
|
|
15857
15868
|
}
|
|
15858
15869
|
componentDidUpdate(e) {
|
|
15859
|
-
this.instance !== null &&
|
|
15870
|
+
this.instance !== null && ai.updateObject(this.instance, e, this.props);
|
|
15860
15871
|
}
|
|
15861
15872
|
componentWillUnmount() {
|
|
15862
|
-
|
|
15873
|
+
ai.unmountObject(this.instance, this.props);
|
|
15863
15874
|
}
|
|
15864
15875
|
render() {
|
|
15865
15876
|
return null;
|
|
15866
15877
|
}
|
|
15867
15878
|
static mountObject(e, n) {
|
|
15868
15879
|
const { instanceRef: r, parent: i, _events: o } = Ke(n), s = new e(re(n, "geometry"), re(n, "properties"), re(n, "options"));
|
|
15869
|
-
if (Object.keys(o).forEach((a) =>
|
|
15880
|
+
if (Object.keys(o).forEach((a) => Kn(s, a, o[a])), i && i.geoObjects && typeof i.geoObjects.add == "function")
|
|
15870
15881
|
i.geoObjects.add(s);
|
|
15871
15882
|
else {
|
|
15872
15883
|
if (!i || !i.add || typeof i.add != "function")
|
|
@@ -15889,14 +15900,14 @@ class si extends ae.Component {
|
|
|
15889
15900
|
const c = re(n, "options"), l = re(r, "options");
|
|
15890
15901
|
c !== l && e.options.set(l);
|
|
15891
15902
|
}
|
|
15892
|
-
|
|
15903
|
+
Er(e, s, i), ut(a, o, e);
|
|
15893
15904
|
}
|
|
15894
15905
|
static unmountObject(e, n) {
|
|
15895
15906
|
const { instanceRef: r, parent: i, _events: o } = Ke(n);
|
|
15896
|
-
e !== null && (Object.keys(o).forEach((s) =>
|
|
15907
|
+
e !== null && (Object.keys(o).forEach((s) => qn(e, s, o[s])), i.geoObjects && typeof i.geoObjects.remove == "function" ? i.geoObjects.remove(e) : i.remove && typeof i.remove == "function" && i.remove(e), ut(r));
|
|
15897
15908
|
}
|
|
15898
15909
|
}
|
|
15899
|
-
var ou = Ya(Hf(Qa((t) => /* @__PURE__ */ ae.createElement(
|
|
15910
|
+
var ou = Ya(Hf(Qa((t) => /* @__PURE__ */ ae.createElement(ai, Qn({}, t, { name: "Placemark" })), !0, ["Placemark"])));
|
|
15900
15911
|
const su = (t, e, n) => t == null ? void 0 : t.map((r) => {
|
|
15901
15912
|
var i;
|
|
15902
15913
|
return {
|
|
@@ -15910,11 +15921,11 @@ const su = (t, e, n) => t == null ? void 0 : t.map((r) => {
|
|
|
15910
15921
|
options: {
|
|
15911
15922
|
hideIconOnBalloonOpen: !1,
|
|
15912
15923
|
preset: fo(r.type),
|
|
15913
|
-
balloonOffset: [0, -
|
|
15924
|
+
balloonOffset: [0, -or[1]],
|
|
15914
15925
|
balloonContentLayout: (i = e == null ? void 0 : e.templateLayoutFactory) == null ? void 0 : i.createClass(n)
|
|
15915
15926
|
}
|
|
15916
15927
|
};
|
|
15917
|
-
}), fo = (t, e) => t === 30 ? `custom#pin-postmat${e ? `__${e}` : ""}` : `custom#pin-pvz${e ? `__${e}` : ""}`,
|
|
15928
|
+
}), fo = (t, e) => t === 30 ? `custom#pin-postmat${e ? `__${e}` : ""}` : `custom#pin-pvz${e ? `__${e}` : ""}`, Wr = (t) => [-(t[0] / 2), -t[1]], jE = {
|
|
15918
15929
|
en: "en_US",
|
|
15919
15930
|
ru: "ru_RU"
|
|
15920
15931
|
}, UE = {
|
|
@@ -15930,22 +15941,22 @@ const su = (t, e, n) => t == null ? void 0 : t.map((r) => {
|
|
|
15930
15941
|
hideIconOnBalloonOpen: !1,
|
|
15931
15942
|
iconImageHref: Of,
|
|
15932
15943
|
balloonOffset: [0, -on[1]],
|
|
15933
|
-
iconImageOffset:
|
|
15944
|
+
iconImageOffset: Wr(on)
|
|
15934
15945
|
}, VE = "MapYandex-module__root__r3kDJ8", QE = "MapYandex-module__overlay__f7UGYS", YE = "MapYandex-module__details__E3bDvL", Es = {
|
|
15935
15946
|
root: VE,
|
|
15936
15947
|
overlay: QE,
|
|
15937
15948
|
details: YE
|
|
15938
15949
|
}, WE = ({ className: t }) => {
|
|
15939
|
-
const { t: e } = Gt(["courier_balloon", "common"]), n = se(), r = se(null), { map: i, locale: o, disableCourierDelivery: s, hideMapUI: a, onPointClick: c } = Jt(), [l, u] = I(null), [d, f] = I([]), [p, g] = I(GE), h =
|
|
15940
|
-
() =>
|
|
15950
|
+
const { t: e } = Gt(["courier_balloon", "common"]), n = se(), r = se(null), { map: i, locale: o, disableCourierDelivery: s, hideMapUI: a, onPointClick: c } = Jt(), [l, u] = I(null), [d, f] = I([]), [p, g] = I(GE), h = Yn((B) => B.place), C = qe((B) => B.zoom), w = qe((B) => B.setLoaded), v = qe((B) => B.setDetailsOpen), y = Wn(), x = Zt((B) => B.points), L = Zt((B) => B.loading), m = Zt((B) => B.loadNext), b = Mt((B) => B.courierPoint), S = Mt((B) => B.setCourierPoint), P = Ot((B) => B.location), O = Ot((B) => B.setSelectedPoint), A = Ot((B) => B.setSelectPointHook), k = se([]), N = lt(
|
|
15951
|
+
() => qi(/* @__PURE__ */ M(Bf, { SSR: !0 })).replace("{ choose }", e("choose")).replace("{ details }", e("details")),
|
|
15941
15952
|
[e, o]
|
|
15942
15953
|
// eslint-disable-line react-hooks/exhaustive-deps
|
|
15943
15954
|
), z = lt(
|
|
15944
|
-
() =>
|
|
15955
|
+
() => qi(/* @__PURE__ */ M(fa, { SSR: !0, variant: "default" })).replace("{ details }", e("details", { ns: "common" })).replace("{ courier_balloon.title }", e("title")),
|
|
15945
15956
|
[e, o]
|
|
15946
15957
|
// eslint-disable-line react-hooks/exhaustive-deps
|
|
15947
15958
|
), Q = lt(
|
|
15948
|
-
() =>
|
|
15959
|
+
() => qi(/* @__PURE__ */ M(fa, { SSR: !0, variant: "error" })).replace("{ courier_balloon.error_title }", e("error_title")).replace("{ courier_balloon.error_description }", e("error_description")),
|
|
15949
15960
|
[e, o]
|
|
15950
15961
|
// eslint-disable-line react-hooks/exhaustive-deps
|
|
15951
15962
|
), q = lt(
|
|
@@ -15999,22 +16010,22 @@ const su = (t, e, n) => t == null ? void 0 : t.map((r) => {
|
|
|
15999
16010
|
iconImageSize: on,
|
|
16000
16011
|
iconLayout: "default#image",
|
|
16001
16012
|
iconImageHref: pa,
|
|
16002
|
-
iconImageOffset:
|
|
16013
|
+
iconImageOffset: Wr(on)
|
|
16003
16014
|
}), (ee = B == null ? void 0 : B.option) == null || ee.presetStorage.add("custom#pin-postmat__active", {
|
|
16004
16015
|
iconLayout: "default#image",
|
|
16005
16016
|
iconImageHref: pa,
|
|
16006
|
-
iconImageSize:
|
|
16007
|
-
iconImageOffset:
|
|
16017
|
+
iconImageSize: or,
|
|
16018
|
+
iconImageOffset: Wr(or)
|
|
16008
16019
|
}), (le = B == null ? void 0 : B.option) == null || le.presetStorage.add("custom#pin-pvz", {
|
|
16009
16020
|
iconImageSize: on,
|
|
16010
16021
|
iconLayout: "default#image",
|
|
16011
16022
|
iconImageHref: ha,
|
|
16012
|
-
iconImageOffset:
|
|
16023
|
+
iconImageOffset: Wr(on)
|
|
16013
16024
|
}), (ye = B == null ? void 0 : B.option) == null || ye.presetStorage.add("custom#pin-pvz__active", {
|
|
16014
16025
|
iconLayout: "default#image",
|
|
16015
16026
|
iconImageHref: ha,
|
|
16016
|
-
iconImageSize:
|
|
16017
|
-
iconImageOffset:
|
|
16027
|
+
iconImageSize: or,
|
|
16028
|
+
iconImageOffset: Wr(or)
|
|
16018
16029
|
}), g((ce) => {
|
|
16019
16030
|
const pe = window.getComputedStyle(document.getElementById(of)).getPropertyValue("--color-primary");
|
|
16020
16031
|
return {
|
|
@@ -16226,7 +16237,7 @@ const JE = "768px", _E = "1024px", XE = "1280px", $E = "1536px", eL = {
|
|
|
16226
16237
|
screenLg: XE,
|
|
16227
16238
|
screenXl: $E
|
|
16228
16239
|
};
|
|
16229
|
-
function
|
|
16240
|
+
function bi(t) {
|
|
16230
16241
|
return ZE(`(max-width: calc(${eL[t]} - 1px))`);
|
|
16231
16242
|
}
|
|
16232
16243
|
const tL = "Hr-module__root__tBRShh", nL = {
|
|
@@ -16242,23 +16253,23 @@ const tL = "Hr-module__root__tBRShh", nL = {
|
|
|
16242
16253
|
sheetContent: uL,
|
|
16243
16254
|
doneButton: dL
|
|
16244
16255
|
}, fL = () => {
|
|
16245
|
-
const { t } = Gt("common"), e =
|
|
16256
|
+
const { t } = Gt("common"), e = bi("screenSm"), n = pr((i) => i.toggle), r = () => {
|
|
16246
16257
|
n(!1);
|
|
16247
16258
|
};
|
|
16248
16259
|
return /* @__PURE__ */ J("div", { className: rn.header, children: [
|
|
16249
16260
|
e && /* @__PURE__ */ M("div", { className: rn.doneButton, onClick: r, children: t("done") }),
|
|
16250
16261
|
!e && /* @__PURE__ */ M(Zo, { className: rn.closeButton, onClick: r })
|
|
16251
16262
|
] });
|
|
16252
|
-
}, hL = "TypeFilter-module__root__FEaBBU", pL = "TypeFilter-module__button__RYOzBQ",
|
|
16263
|
+
}, hL = "TypeFilter-module__root__FEaBBU", pL = "TypeFilter-module__button__RYOzBQ", Wi = {
|
|
16253
16264
|
root: hL,
|
|
16254
16265
|
button: pL
|
|
16255
16266
|
}, gL = ({ value: t, onChange: e, className: n }) => {
|
|
16256
16267
|
const { t: r } = Gt("type_filter"), i = (o) => () => e == null ? void 0 : e(o);
|
|
16257
|
-
return /* @__PURE__ */ J("div", { className: Oe(
|
|
16268
|
+
return /* @__PURE__ */ J("div", { className: Oe(Wi.root, n), children: [
|
|
16258
16269
|
/* @__PURE__ */ M(
|
|
16259
16270
|
Rt,
|
|
16260
16271
|
{
|
|
16261
|
-
className:
|
|
16272
|
+
className: Wi.button,
|
|
16262
16273
|
variant: t === vn.All ? "primary" : "secondary",
|
|
16263
16274
|
onClick: i(vn.All),
|
|
16264
16275
|
children: r("all")
|
|
@@ -16267,7 +16278,7 @@ const tL = "Hr-module__root__tBRShh", nL = {
|
|
|
16267
16278
|
/* @__PURE__ */ M(
|
|
16268
16279
|
Rt,
|
|
16269
16280
|
{
|
|
16270
|
-
className:
|
|
16281
|
+
className: Wi.button,
|
|
16271
16282
|
variant: t === vn.PostOffice ? "primary" : "secondary",
|
|
16272
16283
|
onClick: i(vn.PostOffice),
|
|
16273
16284
|
children: r("post_office")
|
|
@@ -16276,7 +16287,7 @@ const tL = "Hr-module__root__tBRShh", nL = {
|
|
|
16276
16287
|
/* @__PURE__ */ M(
|
|
16277
16288
|
Rt,
|
|
16278
16289
|
{
|
|
16279
|
-
className:
|
|
16290
|
+
className: Wi.button,
|
|
16280
16291
|
variant: t === vn.PickPoint ? "primary" : "secondary",
|
|
16281
16292
|
onClick: i(vn.PickPoint),
|
|
16282
16293
|
children: r("pick_point")
|
|
@@ -16284,7 +16295,7 @@ const tL = "Hr-module__root__tBRShh", nL = {
|
|
|
16284
16295
|
)
|
|
16285
16296
|
] });
|
|
16286
16297
|
}, vL = ({ className: t, onChange: e }) => {
|
|
16287
|
-
const n =
|
|
16298
|
+
const n = Wn((r) => r.type);
|
|
16288
16299
|
return /* @__PURE__ */ M(gL, { value: n, className: t, onChange: e });
|
|
16289
16300
|
}, mL = Be(vL), yL = "Radio-module__root__FMbfCi", bL = "Radio-module__label__-LLJSR", cu = {
|
|
16290
16301
|
root: yL,
|
|
@@ -16295,7 +16306,7 @@ const tL = "Hr-module__root__tBRShh", nL = {
|
|
|
16295
16306
|
/* @__PURE__ */ M("input", { type: "radio", className: Oe(cu.root, e), ...r }),
|
|
16296
16307
|
t
|
|
16297
16308
|
] });
|
|
16298
|
-
},
|
|
16309
|
+
}, fr = (t) => /* @__PURE__ */ M(wL, { ...t, type: "checkbox" }), CL = "RadioGroup-module__root__wNjmrq", EL = "RadioGroup-module__body__n4Ho0-", LL = "RadioGroup-module__legend__ECksBN", Ss = {
|
|
16299
16310
|
root: CL,
|
|
16300
16311
|
body: EL,
|
|
16301
16312
|
legend: LL
|
|
@@ -16316,14 +16327,14 @@ const tL = "Hr-module__root__tBRShh", nL = {
|
|
|
16316
16327
|
})
|
|
16317
16328
|
}) : null) })
|
|
16318
16329
|
] }), SL = ({ className: t, onChange: e }) => {
|
|
16319
|
-
const { t: n } = Gt("send_filter"), r =
|
|
16330
|
+
const { t: n } = Gt("send_filter"), r = Wn((i) => i.send);
|
|
16320
16331
|
return /* @__PURE__ */ J(Qf, { className: t, value: r, label: n("title"), onChange: e, children: [
|
|
16321
|
-
/* @__PURE__ */ M(
|
|
16322
|
-
/* @__PURE__ */ M(
|
|
16323
|
-
/* @__PURE__ */ M(
|
|
16332
|
+
/* @__PURE__ */ M(fr, { name: "send", value: qt.Return, label: n("sending_returns") }),
|
|
16333
|
+
/* @__PURE__ */ M(fr, { name: "send", value: qt.Shipping, label: n("shipping") }),
|
|
16334
|
+
/* @__PURE__ */ M(fr, { name: "send", value: qt.Payment, label: n("payment") })
|
|
16324
16335
|
] });
|
|
16325
16336
|
}, AL = Be(SL), xL = ({ className: t, onChange: e }) => {
|
|
16326
|
-
const { t: n } = Gt("receive_filter"), r =
|
|
16337
|
+
const { t: n } = Gt("receive_filter"), r = Wn((i) => i.receive);
|
|
16327
16338
|
return /* @__PURE__ */ J(
|
|
16328
16339
|
Qf,
|
|
16329
16340
|
{
|
|
@@ -16332,15 +16343,15 @@ const tL = "Hr-module__root__tBRShh", nL = {
|
|
|
16332
16343
|
onChange: e,
|
|
16333
16344
|
className: t,
|
|
16334
16345
|
children: [
|
|
16335
|
-
/* @__PURE__ */ M(
|
|
16336
|
-
/* @__PURE__ */ M(
|
|
16337
|
-
/* @__PURE__ */ M(
|
|
16346
|
+
/* @__PURE__ */ M(fr, { name: "receive", value: Kt.DressingRoom, label: n("dressing_room") }),
|
|
16347
|
+
/* @__PURE__ */ M(fr, { name: "receive", value: Kt.CheckOrder, label: n("check_order") }),
|
|
16348
|
+
/* @__PURE__ */ M(fr, { name: "receive", value: Kt.PayByCash, label: n("pay_by_cash") })
|
|
16338
16349
|
]
|
|
16339
16350
|
}
|
|
16340
16351
|
);
|
|
16341
16352
|
}, OL = Be(xL);
|
|
16342
16353
|
const ML = ({ className: t }) => {
|
|
16343
|
-
const e =
|
|
16354
|
+
const e = bi("screenSm"), n = pr((u) => u.open), r = pr((u) => u.toggle), i = Wn((u) => u.setFilter), o = $((u) => i({ type: u }), [i]), s = $((u) => i({ send: u }), [i]), a = $((u) => i({ receive: u }), [i]), c = $(() => r(!1), [r]), l = /* @__PURE__ */ J(Ft, { children: [
|
|
16344
16355
|
/* @__PURE__ */ M(fL, {}),
|
|
16345
16356
|
/* @__PURE__ */ J("div", { className: rn.withRightPadding, children: [
|
|
16346
16357
|
/* @__PURE__ */ M(mL, { className: rn.typeFilter, onChange: o }),
|
|
@@ -16371,7 +16382,7 @@ const ML = ({ className: t }) => {
|
|
|
16371
16382
|
filterIcon: jL,
|
|
16372
16383
|
details: UL
|
|
16373
16384
|
}, HL = () => {
|
|
16374
|
-
const t =
|
|
16385
|
+
const t = pr((i) => i.open), e = pr((i) => i.toggle), n = bi("screenSm"), r = () => {
|
|
16375
16386
|
e(!0);
|
|
16376
16387
|
};
|
|
16377
16388
|
return /* @__PURE__ */ J(
|
|
@@ -16431,13 +16442,13 @@ var VL = function() {
|
|
|
16431
16442
|
return n.PropTypes = n, n;
|
|
16432
16443
|
};
|
|
16433
16444
|
Wf.exports = VL();
|
|
16434
|
-
var QL = Wf.exports, Xo = {},
|
|
16435
|
-
Object.defineProperty(
|
|
16445
|
+
var QL = Wf.exports, Xo = {}, br = {};
|
|
16446
|
+
Object.defineProperty(br, "__esModule", {
|
|
16436
16447
|
value: !0
|
|
16437
16448
|
});
|
|
16438
|
-
|
|
16449
|
+
br.loadGoogleMapScript = br.isBrowser = void 0;
|
|
16439
16450
|
var Zf = typeof window < "u" && window.document;
|
|
16440
|
-
|
|
16451
|
+
br.isBrowser = Zf;
|
|
16441
16452
|
var YL = function(e, n) {
|
|
16442
16453
|
if (!Zf || typeof google < "u" && google.maps && google.maps.api)
|
|
16443
16454
|
return Promise.resolve();
|
|
@@ -16457,7 +16468,7 @@ var YL = function(e, n) {
|
|
|
16457
16468
|
window.__REACT_GOOGLE_AUTOCOMPLETE_CALLBACK__ = s, document.body.appendChild(o);
|
|
16458
16469
|
});
|
|
16459
16470
|
};
|
|
16460
|
-
|
|
16471
|
+
br.loadGoogleMapScript = YL;
|
|
16461
16472
|
var $o = {};
|
|
16462
16473
|
Object.defineProperty($o, "__esModule", {
|
|
16463
16474
|
value: !0
|
|
@@ -16477,7 +16488,7 @@ Object.defineProperty(Xo, "__esModule", {
|
|
|
16477
16488
|
value: !0
|
|
16478
16489
|
});
|
|
16479
16490
|
Xo.default = XL;
|
|
16480
|
-
var At = qL(ae), As =
|
|
16491
|
+
var At = qL(ae), As = br, KL = $o;
|
|
16481
16492
|
function Jf(t) {
|
|
16482
16493
|
if (typeof WeakMap != "function")
|
|
16483
16494
|
return null;
|
|
@@ -16734,7 +16745,7 @@ _o.default = rS;
|
|
|
16734
16745
|
}
|
|
16735
16746
|
})(Yf);
|
|
16736
16747
|
var eh = Yf;
|
|
16737
|
-
const iS = (t) => /* @__PURE__ */ ge.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ ge.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.6174 16.0317C13.0777 17.2635 11.1246 18 8.99951 18C4.02895 18 -0.000488281 13.9706 -0.000488281 9C-0.000488281 4.02944 4.02895 0 8.99951 0C13.9701 0 17.9995 4.02944 17.9995 9C17.9995 11.1249 17.2631 13.0778 16.0316 14.6175L19.707 18.2929C20.0975 18.6834 20.0975 19.3166 19.707 19.7071C19.3165 20.0977 18.6833 20.0977 18.2928 19.7071L14.6174 16.0317ZM1.99951 9C1.99951 5.13401 5.13352 2 8.99951 2C12.8655 2 15.9995 5.13401 15.9995 9C15.9995 10.8866 15.2532 12.5988 14.0397 13.8577C14.006 13.8836 13.9737 13.9121 13.9428 13.9429C13.9119 13.9738 13.8835 14.0062 13.8575 14.0399C12.5986 15.2535 10.8863 16 8.99951 16C5.13352 16 1.99951 12.866 1.99951 9Z", fill: "currentcolor" })), oS = "Input-module__root__4cwtKq", sS = "Input-module__endAdornment__Tv4vyT", aS = "Input-module__input__qeMAQB", lS = "Input-module__startAdornment__4bXzn1", cS = "Input-module__label__N2eUZ2", uS = "Input-module__inputContainer__Ticemx",
|
|
16748
|
+
const iS = (t) => /* @__PURE__ */ ge.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ ge.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.6174 16.0317C13.0777 17.2635 11.1246 18 8.99951 18C4.02895 18 -0.000488281 13.9706 -0.000488281 9C-0.000488281 4.02944 4.02895 0 8.99951 0C13.9701 0 17.9995 4.02944 17.9995 9C17.9995 11.1249 17.2631 13.0778 16.0316 14.6175L19.707 18.2929C20.0975 18.6834 20.0975 19.3166 19.707 19.7071C19.3165 20.0977 18.6833 20.0977 18.2928 19.7071L14.6174 16.0317ZM1.99951 9C1.99951 5.13401 5.13352 2 8.99951 2C12.8655 2 15.9995 5.13401 15.9995 9C15.9995 10.8866 15.2532 12.5988 14.0397 13.8577C14.006 13.8836 13.9737 13.9121 13.9428 13.9429C13.9119 13.9738 13.8835 14.0062 13.8575 14.0399C12.5986 15.2535 10.8863 16 8.99951 16C5.13352 16 1.99951 12.866 1.99951 9Z", fill: "currentcolor" })), oS = "Input-module__root__4cwtKq", sS = "Input-module__endAdornment__Tv4vyT", aS = "Input-module__input__qeMAQB", lS = "Input-module__startAdornment__4bXzn1", cS = "Input-module__label__N2eUZ2", uS = "Input-module__inputContainer__Ticemx", rr = {
|
|
16738
16749
|
root: oS,
|
|
16739
16750
|
endAdornment: sS,
|
|
16740
16751
|
input: aS,
|
|
@@ -16744,7 +16755,7 @@ const iS = (t) => /* @__PURE__ */ ge.createElement("svg", { width: 20, height: 2
|
|
|
16744
16755
|
}, th = Bo(
|
|
16745
16756
|
({ label: t, className: e, startAdornment: n, endAdornment: r, onChange: i, onBlur: o, inputRef: s, ...a }, c) => {
|
|
16746
16757
|
const l = se(null);
|
|
16747
|
-
|
|
16758
|
+
hi(
|
|
16748
16759
|
c,
|
|
16749
16760
|
() => ({
|
|
16750
16761
|
focus: () => {
|
|
@@ -16770,17 +16781,17 @@ const iS = (t) => /* @__PURE__ */ ge.createElement("svg", { width: 20, height: 2
|
|
|
16770
16781
|
[o, i]
|
|
16771
16782
|
);
|
|
16772
16783
|
const u = Vf(s, l);
|
|
16773
|
-
return /* @__PURE__ */ J("label", { className: Oe(
|
|
16774
|
-
t && /* @__PURE__ */ M("span", { className:
|
|
16775
|
-
/* @__PURE__ */ J("div", { className:
|
|
16776
|
-
n && /* @__PURE__ */ M("div", { className:
|
|
16777
|
-
/* @__PURE__ */ M("input", { ...a, ref: u, className:
|
|
16778
|
-
r && /* @__PURE__ */ M("div", { className:
|
|
16784
|
+
return /* @__PURE__ */ J("label", { className: Oe(rr.root, e), children: [
|
|
16785
|
+
t && /* @__PURE__ */ M("span", { className: rr.label, children: t }),
|
|
16786
|
+
/* @__PURE__ */ J("div", { className: rr.inputContainer, children: [
|
|
16787
|
+
n && /* @__PURE__ */ M("div", { className: rr.startAdornment, children: n }),
|
|
16788
|
+
/* @__PURE__ */ M("input", { ...a, ref: u, className: rr.input, onChange: i, onBlur: o }),
|
|
16789
|
+
r && /* @__PURE__ */ M("div", { className: rr.endAdornment, children: r })
|
|
16779
16790
|
] })
|
|
16780
16791
|
] });
|
|
16781
16792
|
}
|
|
16782
16793
|
), dS = ({ className: t }) => {
|
|
16783
|
-
const { t: e } = Gt("location_selector"), { country: n, inputs: r } = Jt(), [i, o] = I(""), [s, a] = I(!1), c = qe((b) => b.setZoom), l = qe((b) => b.setBlurred), u = qe((b) => b.setDetailsOpen), d =
|
|
16794
|
+
const { t: e } = Gt("location_selector"), { country: n, inputs: r } = Jt(), [i, o] = I(""), [s, a] = I(!1), c = qe((b) => b.setZoom), l = qe((b) => b.setBlurred), u = qe((b) => b.setDetailsOpen), d = Yn((b) => b.setPlace), f = Mt((b) => b.setCourierPoint), p = Ot((b) => b.setSelectedPoint), g = [], h = n ? { componentRestrictions: { country: n }, types: g } : { types: g }, C = (b) => {
|
|
16784
16795
|
c(Ho), d(b);
|
|
16785
16796
|
}, { ref: w } = eh.usePlacesWidget({
|
|
16786
16797
|
libraries: ["places"],
|
|
@@ -16857,7 +16868,7 @@ const iS = (t) => /* @__PURE__ */ ge.createElement("svg", { width: 20, height: 2
|
|
|
16857
16868
|
/* @__PURE__ */ M("div", { className: Oe(Wt.mapWrapper, { [Wt.wrapperBlurred]: n }), children: e }),
|
|
16858
16869
|
/* @__PURE__ */ M(wS, {})
|
|
16859
16870
|
] });
|
|
16860
|
-
}, ES = Be(CS), LS = "Aside-module__root__JSqCyF", SS = "Aside-module__open__t8OMLZ", AS = "Aside-module__overlay__0UAvMb", xS = "Aside-module__container__KJNP0t",
|
|
16871
|
+
}, ES = Be(CS), LS = "Aside-module__root__JSqCyF", SS = "Aside-module__open__t8OMLZ", AS = "Aside-module__overlay__0UAvMb", xS = "Aside-module__container__KJNP0t", Ki = {
|
|
16861
16872
|
root: LS,
|
|
16862
16873
|
open: SS,
|
|
16863
16874
|
overlay: AS,
|
|
@@ -16865,12 +16876,12 @@ const iS = (t) => /* @__PURE__ */ ge.createElement("svg", { width: 20, height: 2
|
|
|
16865
16876
|
}, OS = ({ open: t, children: e, className: n }) => /* @__PURE__ */ J(
|
|
16866
16877
|
"div",
|
|
16867
16878
|
{
|
|
16868
|
-
className: Oe(
|
|
16869
|
-
[
|
|
16879
|
+
className: Oe(Ki.root, n, {
|
|
16880
|
+
[Ki.open]: t
|
|
16870
16881
|
}),
|
|
16871
16882
|
children: [
|
|
16872
|
-
/* @__PURE__ */ M("div", { className:
|
|
16873
|
-
/* @__PURE__ */ M("div", { className:
|
|
16883
|
+
/* @__PURE__ */ M("div", { className: Ki.overlay }),
|
|
16884
|
+
/* @__PURE__ */ M("div", { className: Ki.container, children: e })
|
|
16874
16885
|
]
|
|
16875
16886
|
}
|
|
16876
16887
|
), MS = "LocationAside-module__submit__hx8LTK", PS = "LocationAside-module__container__KEGf9s", kS = "LocationAside-module__selector__ogsvtz", IS = "LocationAside-module__label__-FWqoq", xs = {
|
|
@@ -16879,7 +16890,7 @@ const iS = (t) => /* @__PURE__ */ ge.createElement("svg", { width: 20, height: 2
|
|
|
16879
16890
|
selector: kS,
|
|
16880
16891
|
label: IS
|
|
16881
16892
|
}, DS = () => {
|
|
16882
|
-
const { t } = Gt(["location_aside", "common"]), { country: e, inputs: n } = Jt(), r = se(null), i = qe((h) => h.setZoom), o =
|
|
16893
|
+
const { t } = Gt(["location_aside", "common"]), { country: e, inputs: n } = Jt(), r = se(null), i = qe((h) => h.setZoom), o = Yn((h) => h.setPlace), [s, a] = I(""), c = mo((h) => h.open), l = mo((h) => h.toggle), u = (h) => {
|
|
16883
16894
|
l(!1), i(Ns), o(h), h != null && h.formatted_address && a(h == null ? void 0 : h.formatted_address);
|
|
16884
16895
|
}, d = e ? { componentRestrictions: { country: e } } : void 0, f = (h) => {
|
|
16885
16896
|
a(h.target.value);
|
|
@@ -16929,7 +16940,7 @@ const iS = (t) => /* @__PURE__ */ ge.createElement("svg", { width: 20, height: 2
|
|
|
16929
16940
|
n && e(!0);
|
|
16930
16941
|
}, [n, e]);
|
|
16931
16942
|
}, HS = (t, e, n) => {
|
|
16932
|
-
const r = qe((a) => a.setZoom), i = qe((a) => a.setLoaded), o =
|
|
16943
|
+
const r = qe((a) => a.setZoom), i = qe((a) => a.setLoaded), o = Yn((a) => a.setPlace), { isLoaded: s } = Xb({
|
|
16933
16944
|
language: e,
|
|
16934
16945
|
libraries: zp,
|
|
16935
16946
|
googleMapsApiKey: "AIzaSyBO9gABz5DPTW3DcJuNCLx6Q7GmDYDRwRA"
|
|
@@ -16971,9 +16982,9 @@ const iS = (t) => /* @__PURE__ */ ge.createElement("svg", { width: 20, height: 2
|
|
|
16971
16982
|
header: QS
|
|
16972
16983
|
}, JS = ({ config: t, options: e }) => {
|
|
16973
16984
|
const n = Mb(t), { map: r, font: i, radius: o, locale: s, palette: a, startScreen: c, INN: l } = n;
|
|
16974
|
-
|
|
16985
|
+
Pr(l, "INN is required"), Pb(l, e), Pr(r == null ? void 0 : r.provider, "Map provider is required");
|
|
16975
16986
|
const u = qE(r.provider);
|
|
16976
|
-
return pb(), jS(i), BS(a), NS(o), US(c),
|
|
16987
|
+
return pb(), jS(i), BS(a), NS(o), US(c), Pr(s, "Locale is required"), Pr(r.center, "Map center is required"), Pr(r.initialZoom, "Map initial zoom is required"), HS(r == null ? void 0 : r.center, s, r.initialZoom), /* @__PURE__ */ M(tp, { tolgee: up, fallback: /* @__PURE__ */ M(nh, {}), children: /* @__PURE__ */ M(zS, { locale: s, children: /* @__PURE__ */ M(FS, { children: /* @__PURE__ */ M(Hu.Provider, { value: n, children: /* @__PURE__ */ J(ug, { children: [
|
|
16977
16988
|
/* @__PURE__ */ M(sg, { className: Os.header }),
|
|
16978
16989
|
/* @__PURE__ */ M(ML, { className: Os.sidebar }),
|
|
16979
16990
|
/* @__PURE__ */ M(ES, { className: Os.map, children: /* @__PURE__ */ M(u, {}) }),
|