@omnic/widget-locations 1.1.79 → 1.1.81
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/README.md +7 -3
- package/dist/lib/context/WidgetLocations/components/MapPlaceholder/MapPlaceholder.d.ts +3 -1
- package/dist/lib/context/WidgetLocations/components/MapPlaceholder/index.d.ts +1 -0
- package/dist/lib/context/WidgetLocations/components/MapPlaceholder/types.d.ts +4 -0
- package/dist/lib/context/WidgetLocations/type.d.ts +4 -2
- package/dist/lib/hooks/usePlaceAutocomplete.d.ts +0 -1
- package/dist/lib/types/config.d.ts +1 -0
- package/dist/lib/widget.cjs.js +18 -18
- package/dist/lib/widget.esm.js +686 -677
- package/package.json +2 -2
package/dist/lib/widget.esm.js
CHANGED
|
@@ -6,18 +6,18 @@ var x = (t, e, n) => (js(t, e, "read from private field"), n ? n.call(t) : e.get
|
|
|
6
6
|
if (e.has(t))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
e instanceof WeakSet ? e.add(t) : e.set(t, n);
|
|
9
|
-
},
|
|
9
|
+
}, V = (t, e, n, r) => (js(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
|
|
10
10
|
var ao = (t, e, n, r) => ({
|
|
11
11
|
set _(i) {
|
|
12
|
-
|
|
12
|
+
V(t, e, i, n);
|
|
13
13
|
},
|
|
14
14
|
get _() {
|
|
15
15
|
return x(t, e, r);
|
|
16
16
|
}
|
|
17
17
|
}), te = (t, e, n) => (js(t, e, "access private method"), n);
|
|
18
|
-
import { jsx as
|
|
18
|
+
import { jsx as C, jsxs as N, Fragment as wt } from "react/jsx-runtime";
|
|
19
19
|
import * as I from "react";
|
|
20
|
-
import $, { createContext as cc, useContext as Zt, useEffect as j, useState as
|
|
20
|
+
import $, { createContext as cc, useContext as Zt, useEffect as j, useState as J, forwardRef as Cn, useMemo as we, useImperativeHandle as Kt, Children as Kh, useLayoutEffect as Br, useRef as B, useReducer as lc, useCallback as H, Suspense as Qh, memo as dt, createElement as Jh, useDebugValue as nn, useSyncExternalStore as Xh, useId as id } from "react";
|
|
21
21
|
import { createPortal as es } from "react-dom";
|
|
22
22
|
import { renderToString as Yh } from "react-dom/server";
|
|
23
23
|
const od = $.createContext({}), sd = !0;
|
|
@@ -47,11 +47,11 @@ function et({ count: t = 1, wrapper: e, className: n, containerClassName: r, con
|
|
|
47
47
|
const m = (l = S.width) !== null && l !== void 0 ? l : "100%", w = t % 1, O = typeof m == "number" ? m * w : `calc(${m} * ${w})`;
|
|
48
48
|
S = { ...S, width: O };
|
|
49
49
|
}
|
|
50
|
-
const
|
|
51
|
-
b ? y.push(
|
|
50
|
+
const E = $.createElement("span", { className: h, style: S, key: v }, "");
|
|
51
|
+
b ? y.push(E) : y.push($.createElement(
|
|
52
52
|
$.Fragment,
|
|
53
53
|
{ key: v },
|
|
54
|
-
|
|
54
|
+
E,
|
|
55
55
|
$.createElement("br", null)
|
|
56
56
|
));
|
|
57
57
|
}
|
|
@@ -120,7 +120,7 @@ const cp = ad(), cd = ad(), lp = 6, pa = [49.3478969, 14.0983344], ld = "en", up
|
|
|
120
120
|
center: pa,
|
|
121
121
|
initialZoom: lp
|
|
122
122
|
}
|
|
123
|
-
}, ud = cc(An),
|
|
123
|
+
}, ud = cc(An), _e = () => Zt(ud);
|
|
124
124
|
var an = /* @__PURE__ */ ((t) => (t[t.All = 0] = "All", t[t.PickPoint = 20] = "PickPoint", t[t.PostOffice = 30] = "PostOffice", t))(an || {}), kt = /* @__PURE__ */ ((t) => (t[t.PayByCash = 0] = "PayByCash", t[t.DressingRoom = 1] = "DressingRoom", t[t.CheckOrder = 2] = "CheckOrder", t))(kt || {}), Dt = /* @__PURE__ */ ((t) => (t[t.Return = 0] = "Return", t[t.Payment = 1] = "Payment", t[t.Shipping = 2] = "Shipping", t))(Dt || {}), dp = { VITE_API_BASE_URL: "https://ecomgate.omnic.solutions/api/1.0.0/type-1/public/", VITE_GEO_API_BASE_URL: "https://api.geo-data.omnic.solutions/api/1.0/", VITE_YMAPS_KEY: "5298a725-4baa-457a-a2a7-c3abac81db20", VITE_GMAP_KEY: "AIzaSyDsI0AO8VsUrTPoyR9fF7T31FKx1a9TLO0", VITE_GMAP_ID: "e130cd87a3f1b9cbe3cb5de4", VITE_TOKEN: "fa812020-3197-401a-9b39-345999046111", VITE_TOLGEE_API_URL: "https://tms.omnic.solutions", VITE_TOLGEE_API_KEY: "tgpak_gfpwentkga2g4zdngbzwozdinvztezlknu4xmnlpnbrgc", VITE_CJS_IGNORE_WARNING: "true", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
125
125
|
const Xc = (t) => {
|
|
126
126
|
let e;
|
|
@@ -273,7 +273,7 @@ const el = (t) => {
|
|
|
273
273
|
loading: !0,
|
|
274
274
|
detailsOpen: !1,
|
|
275
275
|
isIdle: !1
|
|
276
|
-
}, Bp = (t) => t.map, Vp = (t) => t.mode, Hp = (t) => t.bounds, Up = (t) => t.blurred, $p = (t) => t.loaded, zp = (t) => t.loading, dc = (t) => t.detailsOpen,
|
|
276
|
+
}, Bp = (t) => t.map, Vp = (t) => t.mode, Hp = (t) => t.bounds, Up = (t) => t.blurred, $p = (t) => t.loaded, zp = (t) => t.loading, dc = (t) => t.detailsOpen, Y = Qt()((t) => ({
|
|
277
277
|
...jp,
|
|
278
278
|
setLoaded() {
|
|
279
279
|
t({ loaded: !0, loading: !1 });
|
|
@@ -324,15 +324,15 @@ const el = (t) => {
|
|
|
324
324
|
}, Zp = (t) => t.type, Kp = (t) => t.send, Qp = (t) => t.receive, _n = Qt((t) => ({
|
|
325
325
|
...Wp,
|
|
326
326
|
setFilter(e) {
|
|
327
|
-
|
|
327
|
+
Y.getState().setDetailsOpen(!1), Ie.getState().setDeliverPoint(null), ut.getState().setSelectedLocation(null), t(e);
|
|
328
328
|
}
|
|
329
|
-
})),
|
|
329
|
+
})), n9 = (t) => {
|
|
330
330
|
const [e, n] = t.split(":");
|
|
331
331
|
return Number(e) * 60 + Number(n);
|
|
332
|
-
},
|
|
332
|
+
}, r9 = (t) => {
|
|
333
333
|
const e = Math.floor(t / 60), n = t % 60;
|
|
334
334
|
return `${e < 10 ? `0${e}` : e}:${n < 10 ? `0${n}` : n}`;
|
|
335
|
-
},
|
|
335
|
+
}, i9 = (t, e) => [
|
|
336
336
|
[t[0] - e, t[0] + e],
|
|
337
337
|
[t[1] - e, t[1] + e]
|
|
338
338
|
];
|
|
@@ -1965,11 +1965,11 @@ var ns = {};
|
|
|
1965
1965
|
var P = { outputFormat: n.JSON };
|
|
1966
1966
|
return w && (P.key = w), O && (P.language = O), T && (P.region = T), _(e.PLACE_ID, m, P);
|
|
1967
1967
|
}
|
|
1968
|
-
function
|
|
1968
|
+
function E(m, w, O, T, P, L) {
|
|
1969
1969
|
var A = { outputFormat: n.JSON };
|
|
1970
1970
|
return O && (A.key = O), T && (A.language = T), P && (A.region = P), L && (A.location_type = L), _(e.LATLNG, m + "," + w, A);
|
|
1971
1971
|
}
|
|
1972
|
-
t.setDefaults = c, t.setKey = l, t.setLanguage = u, t.setRegion = d, t.setComponents = f, t.setBounds = g, t.setResultType = p, t.setLocationType = h, t.setOutputFormat = b, t.enableAddressDescriptor = y, t.geocode = _, t.fromAddress = v, t.fromPlaceId = S, t.fromLatLng =
|
|
1972
|
+
t.setDefaults = c, t.setKey = l, t.setLanguage = u, t.setRegion = d, t.setComponents = f, t.setBounds = g, t.setResultType = p, t.setLocationType = h, t.setOutputFormat = b, t.enableAddressDescriptor = y, t.geocode = _, t.fromAddress = v, t.fromPlaceId = S, t.fromLatLng = E;
|
|
1973
1973
|
})(ns);
|
|
1974
1974
|
const gm = (t) => typeof t == "string", pl = (t) => Array.isArray(t) && t.length === 2;
|
|
1975
1975
|
async function ml(t, e, n) {
|
|
@@ -2007,7 +2007,7 @@ async function ml(t, e, n) {
|
|
|
2007
2007
|
}
|
|
2008
2008
|
const jd = (t) => {
|
|
2009
2009
|
var n;
|
|
2010
|
-
const e =
|
|
2010
|
+
const e = Y.getState().map;
|
|
2011
2011
|
if (!e) {
|
|
2012
2012
|
console.error("Map is not initialized");
|
|
2013
2013
|
return;
|
|
@@ -2039,7 +2039,7 @@ const jd = (t) => {
|
|
|
2039
2039
|
let n = t;
|
|
2040
2040
|
const r = (e.includes("--owl") ? ym(e) : e) || "";
|
|
2041
2041
|
return n = n.replaceAll("currentColor", r), n;
|
|
2042
|
-
},
|
|
2042
|
+
}, o9 = (t) => "comment" in t && "address" in t && "apartment_number" in t && "delivery_time" in t;
|
|
2043
2043
|
async function bm(t) {
|
|
2044
2044
|
var e;
|
|
2045
2045
|
return await t.fetchFields({
|
|
@@ -2082,7 +2082,7 @@ const wm = {
|
|
|
2082
2082
|
error: !1,
|
|
2083
2083
|
reloading: !0,
|
|
2084
2084
|
requestId: o
|
|
2085
|
-
}),
|
|
2085
|
+
}), Y.getState().setBounds(n);
|
|
2086
2086
|
let s = 0;
|
|
2087
2087
|
try {
|
|
2088
2088
|
await hl({ bounds: n, loadPointsParams: r })((c) => {
|
|
@@ -2095,7 +2095,7 @@ const wm = {
|
|
|
2095
2095
|
}
|
|
2096
2096
|
},
|
|
2097
2097
|
async loadFirst(n) {
|
|
2098
|
-
const { requestId: r } = e(), i = Hp(
|
|
2098
|
+
const { requestId: r } = e(), i = Hp(Y.getState()), o = r + 1;
|
|
2099
2099
|
t({
|
|
2100
2100
|
error: !1,
|
|
2101
2101
|
loading: !0,
|
|
@@ -2554,78 +2554,78 @@ const Im = {
|
|
|
2554
2554
|
...Im,
|
|
2555
2555
|
...n
|
|
2556
2556
|
};
|
|
2557
|
-
const r = Symbol("ProxyTarget"), { equals: i, isShallow: o, ignoreDetached: s, details: a } = n, c = new Tm(i), l = typeof n.onValidate == "function", u = new Ln(l), d = (v, S,
|
|
2558
|
-
!gl(c, n, S) && !(s && c.isDetached(v, t)) && g(c.getPath(v), S,
|
|
2559
|
-
}, g = (v, S,
|
|
2560
|
-
u.isCloning && u.isPartOfClone(v) ? u.update(v, S, m) : e(Ke.concat(v, S),
|
|
2561
|
-
}, p = (v) => v && (v[r] ?? v), h = (v, S,
|
|
2562
|
-
if (Em(v) ||
|
|
2557
|
+
const r = Symbol("ProxyTarget"), { equals: i, isShallow: o, ignoreDetached: s, details: a } = n, c = new Tm(i), l = typeof n.onValidate == "function", u = new Ln(l), d = (v, S, E, m, w) => !l || u.isCloning || n.onValidate(Ke.concat(c.getPath(v), S), E, m, w) === !0, f = (v, S, E, m) => {
|
|
2558
|
+
!gl(c, n, S) && !(s && c.isDetached(v, t)) && g(c.getPath(v), S, E, m);
|
|
2559
|
+
}, g = (v, S, E, m, w) => {
|
|
2560
|
+
u.isCloning && u.isPartOfClone(v) ? u.update(v, S, m) : e(Ke.concat(v, S), E, m, w);
|
|
2561
|
+
}, p = (v) => v && (v[r] ?? v), h = (v, S, E, m) => {
|
|
2562
|
+
if (Em(v) || E === "constructor" || o && !Ln.isHandledMethod(S, E) || gl(c, n, E) || c.isGetInvariant(S, E) || s && c.isDetached(S, t))
|
|
2563
2563
|
return v;
|
|
2564
2564
|
m === void 0 && (m = c.getPath(S));
|
|
2565
|
-
const w = Ke.concat(m,
|
|
2565
|
+
const w = Ke.concat(m, E), O = c.getPath(v);
|
|
2566
2566
|
return O && b(w, O) ? c.getProxy(v, O, y, r) : c.getProxy(v, w, y, r);
|
|
2567
2567
|
}, b = (v, S) => {
|
|
2568
2568
|
if (rs(v) || v.length <= S.length || qe(S) && S.length === 0)
|
|
2569
2569
|
return !1;
|
|
2570
|
-
const
|
|
2571
|
-
return
|
|
2570
|
+
const E = qe(v) ? v : v.split(cn), m = qe(S) ? S : S.split(cn);
|
|
2571
|
+
return E.length <= m.length ? !1 : !m.some((w, O) => w !== E[O]);
|
|
2572
2572
|
}, y = {
|
|
2573
|
-
get(v, S,
|
|
2573
|
+
get(v, S, E) {
|
|
2574
2574
|
if (rs(S)) {
|
|
2575
2575
|
if (S === r || S === yc)
|
|
2576
2576
|
return v;
|
|
2577
2577
|
if (S === Vd && !c.isUnsubscribed && c.getPath(v).length === 0)
|
|
2578
2578
|
return c.unsubscribe(), v;
|
|
2579
2579
|
}
|
|
2580
|
-
const m = wa(v) ? Reflect.get(v, S) : Reflect.get(v, S,
|
|
2580
|
+
const m = wa(v) ? Reflect.get(v, S) : Reflect.get(v, S, E);
|
|
2581
2581
|
return h(m, v, S);
|
|
2582
2582
|
},
|
|
2583
|
-
set(v, S,
|
|
2584
|
-
|
|
2583
|
+
set(v, S, E, m) {
|
|
2584
|
+
E = p(E);
|
|
2585
2585
|
const w = v[r] ?? v, O = w[S];
|
|
2586
|
-
if (i(O,
|
|
2586
|
+
if (i(O, E) && S in v)
|
|
2587
2587
|
return !0;
|
|
2588
|
-
const T = d(v, S,
|
|
2589
|
-
return T && c.setProperty(w, S,
|
|
2588
|
+
const T = d(v, S, E, O);
|
|
2589
|
+
return T && c.setProperty(w, S, E, m, O) ? (f(v, S, v[S], O), !0) : !T;
|
|
2590
2590
|
},
|
|
2591
|
-
defineProperty(v, S,
|
|
2592
|
-
if (!c.isSameDescriptor(
|
|
2591
|
+
defineProperty(v, S, E) {
|
|
2592
|
+
if (!c.isSameDescriptor(E, v, S)) {
|
|
2593
2593
|
const m = v[S];
|
|
2594
|
-
d(v, S,
|
|
2594
|
+
d(v, S, E.value, m) && c.defineProperty(v, S, E, m) && f(v, S, E.value, m);
|
|
2595
2595
|
}
|
|
2596
2596
|
return !0;
|
|
2597
2597
|
},
|
|
2598
2598
|
deleteProperty(v, S) {
|
|
2599
2599
|
if (!Reflect.has(v, S))
|
|
2600
2600
|
return !0;
|
|
2601
|
-
const
|
|
2602
|
-
return m && c.deleteProperty(v, S,
|
|
2601
|
+
const E = Reflect.get(v, S), m = d(v, S, void 0, E);
|
|
2602
|
+
return m && c.deleteProperty(v, S, E) ? (f(v, S, void 0, E), !0) : !m;
|
|
2603
2603
|
},
|
|
2604
|
-
apply(v, S,
|
|
2604
|
+
apply(v, S, E) {
|
|
2605
2605
|
const m = S[r] ?? S;
|
|
2606
2606
|
if (c.isUnsubscribed)
|
|
2607
|
-
return Reflect.apply(v, m,
|
|
2607
|
+
return Reflect.apply(v, m, E);
|
|
2608
2608
|
if ((a === !1 || a !== !0 && !a.includes(v.name)) && Ln.isHandledType(m)) {
|
|
2609
2609
|
let w = Ke.initial(c.getPath(v));
|
|
2610
2610
|
const O = Ln.isHandledMethod(m, v.name);
|
|
2611
|
-
u.start(m, w,
|
|
2611
|
+
u.start(m, w, E);
|
|
2612
2612
|
let T = Reflect.apply(
|
|
2613
2613
|
v,
|
|
2614
2614
|
u.preferredThisArg(v, S, m),
|
|
2615
|
-
O ?
|
|
2615
|
+
O ? E.map((A) => p(A)) : E
|
|
2616
2616
|
);
|
|
2617
2617
|
const P = u.isChanged(m, i), L = u.stop();
|
|
2618
|
-
if (Ln.isHandledType(T) && O && (S instanceof Map && v.name === "get" && (w = Ke.concat(w,
|
|
2618
|
+
if (Ln.isHandledType(T) && O && (S instanceof Map && v.name === "get" && (w = Ke.concat(w, E[0])), T = c.getProxy(T, w, y)), P) {
|
|
2619
2619
|
const A = {
|
|
2620
2620
|
name: v.name,
|
|
2621
|
-
args:
|
|
2621
|
+
args: E,
|
|
2622
2622
|
result: T
|
|
2623
2623
|
}, k = u.isCloning ? Ke.initial(w) : w, F = u.isCloning ? Ke.last(w) : "";
|
|
2624
2624
|
d(Ke.get(t, k), F, m, L, A) ? g(k, F, m, L, A) : u.undo(m);
|
|
2625
2625
|
}
|
|
2626
2626
|
return (S instanceof Map || S instanceof Set) && Om(T) ? xm(T, v, S, w, h) : T;
|
|
2627
2627
|
}
|
|
2628
|
-
return Reflect.apply(v, S,
|
|
2628
|
+
return Reflect.apply(v, S, E);
|
|
2629
2629
|
}
|
|
2630
2630
|
}, _ = c.getProxy(t, n.pathAsArray ? [] : "", y);
|
|
2631
2631
|
return e = e.bind(_), l && (n.onValidate = n.onValidate.bind(_)), _;
|
|
@@ -2633,7 +2633,7 @@ const Im = {
|
|
|
2633
2633
|
pi.target = (t) => (t == null ? void 0 : t[yc]) ?? t;
|
|
2634
2634
|
pi.unsubscribe = (t) => (t == null ? void 0 : t[Vd]) ?? t;
|
|
2635
2635
|
const Fm = (t) => {
|
|
2636
|
-
const e = t ?? window.OMNIC_WIDGET_LOCATIONS_CONFIG, [n, r] =
|
|
2636
|
+
const e = t ?? window.OMNIC_WIDGET_LOCATIONS_CONFIG, [n, r] = J({
|
|
2637
2637
|
...An,
|
|
2638
2638
|
...e,
|
|
2639
2639
|
map: {
|
|
@@ -2716,7 +2716,7 @@ var Wd = { exports: {} };
|
|
|
2716
2716
|
})();
|
|
2717
2717
|
})(Wd);
|
|
2718
2718
|
var Bm = Wd.exports;
|
|
2719
|
-
const
|
|
2719
|
+
const ee = /* @__PURE__ */ ws(Bm), Vm = {
|
|
2720
2720
|
lmsData: null,
|
|
2721
2721
|
isLoading: !1
|
|
2722
2722
|
}, As = Qt()((t) => ({
|
|
@@ -2875,7 +2875,7 @@ Ti.serializedApiParams = void 0;
|
|
|
2875
2875
|
Ti.listeners = [];
|
|
2876
2876
|
const qm = ["onLoad", "onError", "apiKey", "version", "libraries"], Gm = ["children"], Wm = "GMP_visgl_rgmlibrary_v1_default", Gi = $.createContext(null);
|
|
2877
2877
|
function Zm() {
|
|
2878
|
-
const [t, e] =
|
|
2878
|
+
const [t, e] = J({});
|
|
2879
2879
|
return {
|
|
2880
2880
|
mapInstances: t,
|
|
2881
2881
|
addMapInstance: (o, s = "default") => {
|
|
@@ -2898,7 +2898,7 @@ function Km(t) {
|
|
|
2898
2898
|
apiKey: r,
|
|
2899
2899
|
version: i,
|
|
2900
2900
|
libraries: o = []
|
|
2901
|
-
} = t, s = zn(t, qm), [a, c] =
|
|
2901
|
+
} = t, s = zn(t, qm), [a, c] = J(Ti.loadingStatus), [l, u] = lc((p, h) => p[h.name] ? p : Nt({}, p, {
|
|
2902
2902
|
[h.name]: h.value
|
|
2903
2903
|
}), {}), d = we(() => o == null ? void 0 : o.join(","), [o]), f = we(() => JSON.stringify(Nt({
|
|
2904
2904
|
apiKey: r,
|
|
@@ -3043,7 +3043,7 @@ const Kd = {
|
|
|
3043
3043
|
onCameraChanged: "bounds_changed"
|
|
3044
3044
|
}, Ym = ["bounds_changed", "center_changed", "heading_changed", "tilt_changed", "zoom_changed"], eg = ["click", "contextmenu", "dblclick", "mousemove", "mouseout", "mouseover"], tg = Object.keys(Kd);
|
|
3045
3045
|
function Qd(t, e) {
|
|
3046
|
-
const n =
|
|
3046
|
+
const n = B(t);
|
|
3047
3047
|
return e(t, n.current) || (n.current = t), n.current;
|
|
3048
3048
|
}
|
|
3049
3049
|
function ng(t, e, n) {
|
|
@@ -3135,7 +3135,7 @@ const lg = () => {
|
|
|
3135
3135
|
}, /* @__PURE__ */ $.createElement("h2", null, "Error: AuthFailure"), /* @__PURE__ */ $.createElement("p", null, "A problem with your API key prevents the map from rendering correctly. Please make sure the value of the ", /* @__PURE__ */ $.createElement("code", null, "APIProvider.apiKey"), " prop is correct. Check the error-message in the console for further details."));
|
|
3136
3136
|
};
|
|
3137
3137
|
function ug() {
|
|
3138
|
-
const [t, e] =
|
|
3138
|
+
const [t, e] = J(null), n = H((r) => e(r), [e]);
|
|
3139
3139
|
return [t, n];
|
|
3140
3140
|
}
|
|
3141
3141
|
function Yd() {
|
|
@@ -3158,7 +3158,7 @@ function fg(t, e) {
|
|
|
3158
3158
|
});
|
|
3159
3159
|
}
|
|
3160
3160
|
function hg(t) {
|
|
3161
|
-
const e = dg(), n =
|
|
3161
|
+
const e = dg(), n = B({
|
|
3162
3162
|
center: {
|
|
3163
3163
|
lat: 0,
|
|
3164
3164
|
lng: 0
|
|
@@ -3190,7 +3190,7 @@ class zo {
|
|
|
3190
3190
|
}
|
|
3191
3191
|
zo.entries = {};
|
|
3192
3192
|
function gg(t, e) {
|
|
3193
|
-
const n = Yd(), [r, i] =
|
|
3193
|
+
const n = Yd(), [r, i] = J(null), [o, s] = ug(), a = hg(r), {
|
|
3194
3194
|
id: c,
|
|
3195
3195
|
defaultBounds: l,
|
|
3196
3196
|
defaultCenter: u,
|
|
@@ -3202,15 +3202,15 @@ function gg(t, e) {
|
|
|
3202
3202
|
colorScheme: b
|
|
3203
3203
|
} = t, y = zn(t, pg), _ = t.zoom !== void 0 || t.defaultZoom !== void 0, v = t.center !== void 0 || t.defaultCenter !== void 0;
|
|
3204
3204
|
!l && (!_ || !v) && console.warn("<Map> component is missing configuration. You have to provide zoom and center (via the `zoom`/`defaultZoom` and `center`/`defaultCenter` props) or specify the region to show using `defaultBounds`. See https://visgl.github.io/react-google-maps/docs/api-reference/components/map#required"), !y.center && u && (y.center = u), !y.zoom && Number.isFinite(d) && (y.zoom = d), !y.heading && Number.isFinite(f) && (y.heading = f), !y.tilt && Number.isFinite(g) && (y.tilt = g);
|
|
3205
|
-
for (const
|
|
3206
|
-
y[
|
|
3207
|
-
const S =
|
|
3205
|
+
for (const E of Object.keys(y))
|
|
3206
|
+
y[E] === void 0 && delete y[E];
|
|
3207
|
+
const S = B(void 0);
|
|
3208
3208
|
return j(
|
|
3209
3209
|
() => {
|
|
3210
3210
|
if (!o || !n)
|
|
3211
3211
|
return;
|
|
3212
3212
|
const {
|
|
3213
|
-
addMapInstance:
|
|
3213
|
+
addMapInstance: E,
|
|
3214
3214
|
removeMapInstance: m
|
|
3215
3215
|
} = e, {
|
|
3216
3216
|
mapId: w
|
|
@@ -3220,7 +3220,7 @@ function gg(t, e) {
|
|
|
3220
3220
|
renderingType: h
|
|
3221
3221
|
} : {}, b ? {
|
|
3222
3222
|
colorScheme: b
|
|
3223
|
-
} : {}))), i(P),
|
|
3223
|
+
} : {}))), i(P), E(P, c), l) {
|
|
3224
3224
|
const {
|
|
3225
3225
|
padding: L
|
|
3226
3226
|
} = l, A = zn(l, mg);
|
|
@@ -3294,14 +3294,14 @@ const ef = $.createContext(null), tf = (t) => {
|
|
|
3294
3294
|
let g = null, p = null;
|
|
3295
3295
|
f && Number.isFinite(f.lat) && Number.isFinite(f.lng) && (g = f.lat, p = f.lng);
|
|
3296
3296
|
const h = we(() => {
|
|
3297
|
-
var _, v, S,
|
|
3297
|
+
var _, v, S, E, m;
|
|
3298
3298
|
return {
|
|
3299
3299
|
center: {
|
|
3300
3300
|
lat: (_ = g) != null ? _ : 0,
|
|
3301
3301
|
lng: (v = p) != null ? v : 0
|
|
3302
3302
|
},
|
|
3303
3303
|
zoom: (S = t.zoom) != null ? S : 0,
|
|
3304
|
-
heading: (
|
|
3304
|
+
heading: (E = t.heading) != null ? E : 0,
|
|
3305
3305
|
tilt: (m = t.tilt) != null ? m : 0
|
|
3306
3306
|
};
|
|
3307
3307
|
}, [g, p, t.zoom, t.heading, t.tilt]);
|
|
@@ -3428,7 +3428,7 @@ const bg = $.createContext(null), wg = {
|
|
|
3428
3428
|
);
|
|
3429
3429
|
};
|
|
3430
3430
|
function Sg(t) {
|
|
3431
|
-
const [e, n] =
|
|
3431
|
+
const [e, n] = J(null), [r, i] = J(null), o = Wi(), s = bc("marker"), {
|
|
3432
3432
|
children: a,
|
|
3433
3433
|
onClick: c,
|
|
3434
3434
|
className: l,
|
|
@@ -3443,20 +3443,20 @@ function Sg(t) {
|
|
|
3443
3443
|
position: _,
|
|
3444
3444
|
title: v,
|
|
3445
3445
|
zIndex: S
|
|
3446
|
-
} = t,
|
|
3446
|
+
} = t, E = Kh.count(a);
|
|
3447
3447
|
return j(() => {
|
|
3448
3448
|
if (!o || !s)
|
|
3449
3449
|
return;
|
|
3450
3450
|
const m = new s.AdvancedMarkerElement();
|
|
3451
3451
|
m.map = o, n(m);
|
|
3452
3452
|
let w = null;
|
|
3453
|
-
return
|
|
3453
|
+
return E > 0 && (w = document.createElement("div"), w.isCustomMarker = !0, m.content = w, i(w)), () => {
|
|
3454
3454
|
var O;
|
|
3455
3455
|
m.map = null, (O = w) == null || O.remove(), n(null), i(null);
|
|
3456
3456
|
};
|
|
3457
|
-
}, [o, s,
|
|
3458
|
-
!(e != null && e.content) || !Sl(e.content) ||
|
|
3459
|
-
}, [e, l,
|
|
3457
|
+
}, [o, s, E]), j(() => {
|
|
3458
|
+
!(e != null && e.content) || !Sl(e.content) || E > 0 || (e.content.className = l ?? "");
|
|
3459
|
+
}, [e, l, E]), po(e, "position", _), po(e, "title", v ?? ""), po(e, "zIndex", S), po(e, "collisionBehavior", h), j(() => {
|
|
3460
3460
|
e && (y !== void 0 ? e.gmpDraggable = y : f || g || p ? e.gmpDraggable = !0 : e.gmpDraggable = !1);
|
|
3461
3461
|
}, [e, y, f, p, g]), j(() => {
|
|
3462
3462
|
if (!e)
|
|
@@ -3570,7 +3570,7 @@ const xg = ["children", "headerContent", "style", "className", "pixelOffset", "a
|
|
|
3570
3570
|
onClose: c,
|
|
3571
3571
|
onCloseClick: l
|
|
3572
3572
|
// other options
|
|
3573
|
-
} = t, u = zn(t, xg), d = bc("maps"), [f, g] =
|
|
3573
|
+
} = t, u = zn(t, xg), d = bc("maps"), [f, g] = J(null), p = B(null), h = B(null), b = Qd(u, Zd);
|
|
3574
3574
|
j(
|
|
3575
3575
|
() => {
|
|
3576
3576
|
if (!d)
|
|
@@ -3580,8 +3580,8 @@ const xg = ["children", "headerContent", "style", "className", "pixelOffset", "a
|
|
|
3580
3580
|
o && (v.pixelOffset = new google.maps.Size(o[0], o[1])), n && (v.headerContent = typeof n == "string" ? n : h.current);
|
|
3581
3581
|
const S = new google.maps.InfoWindow(b);
|
|
3582
3582
|
return S.setContent(p.current), g(S), () => {
|
|
3583
|
-
var
|
|
3584
|
-
S.setContent(null), (
|
|
3583
|
+
var E, m;
|
|
3584
|
+
S.setContent(null), (E = p.current) == null || E.remove(), (m = h.current) == null || m.remove(), p.current = null, h.current = null, g(null);
|
|
3585
3585
|
};
|
|
3586
3586
|
},
|
|
3587
3587
|
// `infoWindowOptions` and other props are missing from dependencies:
|
|
@@ -3593,7 +3593,7 @@ const xg = ["children", "headerContent", "style", "className", "pixelOffset", "a
|
|
|
3593
3593
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3594
3594
|
[d]
|
|
3595
3595
|
);
|
|
3596
|
-
const y =
|
|
3596
|
+
const y = B(null);
|
|
3597
3597
|
j(() => {
|
|
3598
3598
|
!f || !p.current || (Cg(p.current, r || null, y.current), y.current = r || null, i !== p.current.className && (p.current.className = i || ""));
|
|
3599
3599
|
}, [f, i, r]), j(
|
|
@@ -3618,8 +3618,8 @@ const xg = ["children", "headerContent", "style", "className", "pixelOffset", "a
|
|
|
3618
3618
|
if (s && (S.anchor = s, yg(s) && s.content instanceof Element)) {
|
|
3619
3619
|
const m = s.content, w = m == null ? void 0 : m.getBoundingClientRect();
|
|
3620
3620
|
if (w && m != null && m.isCustomMarker) {
|
|
3621
|
-
var
|
|
3622
|
-
const O = (
|
|
3621
|
+
var E;
|
|
3622
|
+
const O = (E = s.content.firstElementChild) == null ? void 0 : E.firstElementChild, T = O == null ? void 0 : O.getBoundingClientRect(), P = T.x - w.x + (T.width - w.width) / 2, L = T.y - w.y, A = b;
|
|
3623
3623
|
A.pixelOffset = new google.maps.Size(o ? o[0] + P : P, o ? o[1] + L : L), f.setOptions(A);
|
|
3624
3624
|
}
|
|
3625
3625
|
}
|
|
@@ -3629,7 +3629,7 @@ const xg = ["children", "headerContent", "style", "className", "pixelOffset", "a
|
|
|
3629
3629
|
}, [f, s, _, a, b, o]), /* @__PURE__ */ $.createElement($.Fragment, null, p.current && es(e, p.current), h.current !== null && es(n, h.current));
|
|
3630
3630
|
}, Tg = ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut"];
|
|
3631
3631
|
function Ag(t) {
|
|
3632
|
-
const [e, n] =
|
|
3632
|
+
const [e, n] = J(null), r = Wi(), {
|
|
3633
3633
|
onClick: i,
|
|
3634
3634
|
onDrag: o,
|
|
3635
3635
|
onDragStart: s,
|
|
@@ -3941,8 +3941,8 @@ function jg(t, e, n, r, i, o, s) {
|
|
|
3941
3941
|
var _;
|
|
3942
3942
|
for (const v of h)
|
|
3943
3943
|
for (const S of b) {
|
|
3944
|
-
const
|
|
3945
|
-
if (
|
|
3944
|
+
const E = (_ = c.get(Ht({ language: S, namespace: v }))) === null || _ === void 0 ? void 0 : _.data.get(y);
|
|
3945
|
+
if (E != null)
|
|
3946
3946
|
return [v];
|
|
3947
3947
|
}
|
|
3948
3948
|
return Sa(h);
|
|
@@ -3951,9 +3951,9 @@ function jg(t, e, n, r, i, o, s) {
|
|
|
3951
3951
|
var _;
|
|
3952
3952
|
for (const v of h)
|
|
3953
3953
|
for (const S of b) {
|
|
3954
|
-
const
|
|
3955
|
-
if (
|
|
3956
|
-
return
|
|
3954
|
+
const E = (_ = c.get(Ht({ language: S, namespace: v }))) === null || _ === void 0 ? void 0 : _.data.get(y);
|
|
3955
|
+
if (E != null)
|
|
3956
|
+
return E;
|
|
3957
3957
|
}
|
|
3958
3958
|
},
|
|
3959
3959
|
changeTranslation(h, b, y) {
|
|
@@ -3981,27 +3981,27 @@ function jg(t, e, n, r, i, o, s) {
|
|
|
3981
3981
|
},
|
|
3982
3982
|
async loadRecords(h, b) {
|
|
3983
3983
|
const y = h.map((v) => {
|
|
3984
|
-
const S = r(v),
|
|
3984
|
+
const S = r(v), E = Ht(S), m = a.get(E);
|
|
3985
3985
|
if (m)
|
|
3986
3986
|
return {
|
|
3987
3987
|
new: !1,
|
|
3988
3988
|
promise: m,
|
|
3989
3989
|
keyObject: S,
|
|
3990
|
-
cacheKey:
|
|
3990
|
+
cacheKey: E
|
|
3991
3991
|
};
|
|
3992
3992
|
const w = g(S, b) || Promise.resolve(void 0);
|
|
3993
|
-
return a.set(
|
|
3993
|
+
return a.set(E, w), {
|
|
3994
3994
|
new: !0,
|
|
3995
3995
|
promise: w,
|
|
3996
3996
|
keyObject: S,
|
|
3997
|
-
cacheKey:
|
|
3997
|
+
cacheKey: E
|
|
3998
3998
|
};
|
|
3999
3999
|
});
|
|
4000
4000
|
o.notify(), s.notify();
|
|
4001
4001
|
const _ = await Promise.all(y.map((v) => v.promise));
|
|
4002
4002
|
return y.forEach((v, S) => {
|
|
4003
|
-
const
|
|
4004
|
-
if (v.new && !
|
|
4003
|
+
const E = a.get(v.cacheKey) !== v.promise;
|
|
4004
|
+
if (v.new && !E) {
|
|
4005
4005
|
a.delete(v.cacheKey);
|
|
4006
4006
|
const m = _[S];
|
|
4007
4007
|
m ? p.addRecord(v.keyObject, m) : p.getRecord(v.keyObject) || p.addRecord(v.keyObject, {});
|
|
@@ -4077,9 +4077,9 @@ function $g(t, e, n, r, i, o, s, a) {
|
|
|
4077
4077
|
languageStorage: void 0
|
|
4078
4078
|
}, u = async ({ keysAndDefaults: A, event: k }) => {
|
|
4079
4079
|
var F;
|
|
4080
|
-
const G = A.map(({ key: z, ns: Z, defaultValue:
|
|
4080
|
+
const G = A.map(({ key: z, ns: Z, defaultValue: X }) => ({
|
|
4081
4081
|
key: z,
|
|
4082
|
-
defaultValue:
|
|
4082
|
+
defaultValue: X,
|
|
4083
4083
|
fallbackNamespaces: r(Z),
|
|
4084
4084
|
namespace: i({ key: z, ns: Z })[0],
|
|
4085
4085
|
translation: o({
|
|
@@ -4123,7 +4123,7 @@ function $g(t, e, n, r, i, o, s, a) {
|
|
|
4123
4123
|
function S(A) {
|
|
4124
4124
|
l.languageStorage = A;
|
|
4125
4125
|
}
|
|
4126
|
-
function
|
|
4126
|
+
function E(A) {
|
|
4127
4127
|
l.languageDetector = A;
|
|
4128
4128
|
}
|
|
4129
4129
|
function m() {
|
|
@@ -4157,7 +4157,7 @@ function $g(t, e, n, r, i, o, s, a) {
|
|
|
4157
4157
|
hasUi: v,
|
|
4158
4158
|
setDevBackend: T,
|
|
4159
4159
|
addBackend: O,
|
|
4160
|
-
setLanguageDetector:
|
|
4160
|
+
setLanguageDetector: E,
|
|
4161
4161
|
setLanguageStorage: S
|
|
4162
4162
|
});
|
|
4163
4163
|
k(A, F);
|
|
@@ -4174,7 +4174,7 @@ function $g(t, e, n, r, i, o, s, a) {
|
|
|
4174
4174
|
highlight: L.highlight,
|
|
4175
4175
|
changeTranslation: s,
|
|
4176
4176
|
findPositions: d,
|
|
4177
|
-
onPermanentChange: (
|
|
4177
|
+
onPermanentChange: (X) => a.onPermanentChange.emit(X)
|
|
4178
4178
|
}), (k = l.observer) === null || k === void 0 || k.run({
|
|
4179
4179
|
mouseHighlight: !0,
|
|
4180
4180
|
options: Z,
|
|
@@ -4248,37 +4248,37 @@ function $g(t, e, n, r, i, o, s, a) {
|
|
|
4248
4248
|
},
|
|
4249
4249
|
formatTranslation(A) {
|
|
4250
4250
|
var k, { formatEnabled: F } = A, G = df(A, ["formatEnabled"]);
|
|
4251
|
-
const { key: z, translation: Z, defaultValue:
|
|
4251
|
+
const { key: z, translation: Z, defaultValue: X, noWrap: he, params: pe, ns: me, orEmpty: ae } = G, Je = Z ?? X;
|
|
4252
4252
|
let Le = "";
|
|
4253
4253
|
Z == null && (Le = e().onTranslationMissing(G));
|
|
4254
|
-
let
|
|
4254
|
+
let Se = Je ?? (ae ? "" : Le);
|
|
4255
4255
|
const Jt = t(), Xt = F || !(!((k = l.observer) === null || k === void 0) && k.outputNotFormattable), $r = (St) => l.observer && !he ? l.observer.wrap({
|
|
4256
4256
|
key: z,
|
|
4257
4257
|
translation: St,
|
|
4258
|
-
defaultValue:
|
|
4258
|
+
defaultValue: X,
|
|
4259
4259
|
params: pe,
|
|
4260
4260
|
ns: me
|
|
4261
4261
|
}) : St;
|
|
4262
|
-
|
|
4262
|
+
Se = $r(Se);
|
|
4263
4263
|
try {
|
|
4264
4264
|
if (Je && Jt && Xt)
|
|
4265
4265
|
for (const St of l.formatters)
|
|
4266
|
-
|
|
4267
|
-
translation:
|
|
4266
|
+
Se = St.format({
|
|
4267
|
+
translation: Se,
|
|
4268
4268
|
language: Jt,
|
|
4269
4269
|
params: pe
|
|
4270
4270
|
});
|
|
4271
|
-
l.finalFormatter && Je && Jt && Xt && (
|
|
4272
|
-
translation:
|
|
4271
|
+
l.finalFormatter && Je && Jt && Xt && (Se = l.finalFormatter.format({
|
|
4272
|
+
translation: Se,
|
|
4273
4273
|
language: Jt,
|
|
4274
4274
|
params: pe
|
|
4275
4275
|
}));
|
|
4276
4276
|
} catch (St) {
|
|
4277
4277
|
console.error(St);
|
|
4278
4278
|
const Xi = kg(St) || Ca, Kn = e().onFormatError, tt = typeof Kn;
|
|
4279
|
-
tt === "string" ?
|
|
4279
|
+
tt === "string" ? Se = Kn : tt === "function" ? Se = Kn(Xi, G) : Se = Ca, Se = $r(Se);
|
|
4280
4280
|
}
|
|
4281
|
-
return
|
|
4281
|
+
return Se;
|
|
4282
4282
|
}
|
|
4283
4283
|
});
|
|
4284
4284
|
return L;
|
|
@@ -4394,7 +4394,7 @@ const ff = (t, ...e) => {
|
|
|
4394
4394
|
return typeof t == "object" ? n = t : (n.key = t, typeof e[0] == "string" ? (n.defaultValue = e[0], r = e[1]) : typeof e[0] == "object" && (r = e[0])), r && (n = Object.assign(Object.assign({}, qg(r)), n)), n;
|
|
4395
4395
|
};
|
|
4396
4396
|
function Gg({ options: t }) {
|
|
4397
|
-
const e = Ig(c, l), n = Al(!1, () => s.isFetching(), e.onFetchingChange.emit), r = Al(!1, () =>
|
|
4397
|
+
const e = Ig(c, l), n = Al(!1, () => s.isFetching(), e.onFetchingChange.emit), r = Al(!1, () => E.isLoading(), e.onLoadingChange.emit), i = zg(e.onLanguageChange, e.onPendingLanguageChange, e.onRunningChange), o = $g(i.getLanguage, i.getInitialOptions, i.getAvailableLanguages, u, b, y, f, e), s = jg(e, o.getBackendRecord, o.getBackendDevRecord, i.withDefaultNs, i.isInitialLoading, n, r);
|
|
4398
4398
|
t && g(t);
|
|
4399
4399
|
let a;
|
|
4400
4400
|
e.onUpdate.listen(() => {
|
|
@@ -4437,7 +4437,7 @@ function Gg({ options: t }) {
|
|
|
4437
4437
|
function h(m, w) {
|
|
4438
4438
|
const O = p(m, w);
|
|
4439
4439
|
if (O.length)
|
|
4440
|
-
return qo(
|
|
4440
|
+
return qo(E.loadRecords(O), () => {
|
|
4441
4441
|
});
|
|
4442
4442
|
}
|
|
4443
4443
|
function b({ key: m, ns: w }) {
|
|
@@ -4471,7 +4471,7 @@ function Gg({ options: t }) {
|
|
|
4471
4471
|
if (!i.getLanguage() && !i.getInitialOptions().defaultLanguage)
|
|
4472
4472
|
throw new Error(El(["defaultLanguage", "language"]));
|
|
4473
4473
|
}
|
|
4474
|
-
const
|
|
4474
|
+
const E = Object.freeze(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, e), i), o), s), {
|
|
4475
4475
|
init: g,
|
|
4476
4476
|
getTranslation: y,
|
|
4477
4477
|
changeTranslation: f,
|
|
@@ -4484,10 +4484,10 @@ function Gg({ options: t }) {
|
|
|
4484
4484
|
w || i.addActiveNs(m), i.isRunning() && await h(void 0, m);
|
|
4485
4485
|
},
|
|
4486
4486
|
loadRecords(m) {
|
|
4487
|
-
return s.loadRecords(m,
|
|
4487
|
+
return s.loadRecords(m, E.isDev());
|
|
4488
4488
|
},
|
|
4489
4489
|
async loadRecord(m) {
|
|
4490
|
-
return (await
|
|
4490
|
+
return (await E.loadRecords([m]))[0];
|
|
4491
4491
|
},
|
|
4492
4492
|
isLoading(m) {
|
|
4493
4493
|
return s.isLoading(i.getLanguage(), m);
|
|
@@ -4517,7 +4517,7 @@ function Gg({ options: t }) {
|
|
|
4517
4517
|
i.isRunning() && (o.stop(), i.setRunning(!1));
|
|
4518
4518
|
}
|
|
4519
4519
|
}));
|
|
4520
|
-
return
|
|
4520
|
+
return E;
|
|
4521
4521
|
}
|
|
4522
4522
|
function Wg(t) {
|
|
4523
4523
|
const e = Gg({
|
|
@@ -4783,12 +4783,12 @@ var Ws = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
4783
4783
|
return Buffer.from(y);
|
|
4784
4784
|
};
|
|
4785
4785
|
function r(y) {
|
|
4786
|
-
for (var _ = 0, v = Math.min(256 * 256, y.length + 1), S = new Uint16Array(v),
|
|
4786
|
+
for (var _ = 0, v = Math.min(256 * 256, y.length + 1), S = new Uint16Array(v), E = [], m = 0; ; ) {
|
|
4787
4787
|
var w = _ < y.length;
|
|
4788
4788
|
if (!w || m >= v - 1) {
|
|
4789
4789
|
var O = S.subarray(0, m), T = O;
|
|
4790
|
-
if (
|
|
4791
|
-
return
|
|
4790
|
+
if (E.push(String.fromCharCode.apply(null, T)), !w)
|
|
4791
|
+
return E.join("");
|
|
4792
4792
|
y = y.subarray(_), _ = 0, m = 0;
|
|
4793
4793
|
}
|
|
4794
4794
|
var P = y[_++];
|
|
@@ -4807,7 +4807,7 @@ var Ws = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
4807
4807
|
}
|
|
4808
4808
|
}
|
|
4809
4809
|
function i(y) {
|
|
4810
|
-
for (var _ = 0, v = y.length, S = 0,
|
|
4810
|
+
for (var _ = 0, v = y.length, S = 0, E = Math.max(32, v + (v >>> 1) + 7), m = new Uint8Array(E >>> 3 << 3); _ < v; ) {
|
|
4811
4811
|
var w = y.charCodeAt(_++);
|
|
4812
4812
|
if (w >= 55296 && w <= 56319) {
|
|
4813
4813
|
if (_ < v) {
|
|
@@ -4818,8 +4818,8 @@ var Ws = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
4818
4818
|
continue;
|
|
4819
4819
|
}
|
|
4820
4820
|
if (S + 4 > m.length) {
|
|
4821
|
-
|
|
4822
|
-
var T = new Uint8Array(
|
|
4821
|
+
E += 8, E *= 1 + _ / y.length * 2, E = E >>> 3 << 3;
|
|
4822
|
+
var T = new Uint8Array(E);
|
|
4823
4823
|
T.set(m), m = T;
|
|
4824
4824
|
}
|
|
4825
4825
|
if (w & 4294967168)
|
|
@@ -5094,7 +5094,7 @@ const xv = {
|
|
|
5094
5094
|
};
|
|
5095
5095
|
let Qs;
|
|
5096
5096
|
const vf = () => (Qs || (Qs = $.createContext(void 0)), Qs), Tv = ({ tolgee: t, options: e, children: n, fallback: r }) => {
|
|
5097
|
-
const [i, o] =
|
|
5097
|
+
const [i, o] = J(!t.isLoaded());
|
|
5098
5098
|
j(() => {
|
|
5099
5099
|
t.run().catch((c) => {
|
|
5100
5100
|
console.error(c);
|
|
@@ -5115,12 +5115,12 @@ const Lv = () => {
|
|
|
5115
5115
|
throw new Error("Couldn't find tolgee instance, did you forgot to use `TolgeeProvider`?");
|
|
5116
5116
|
return e;
|
|
5117
5117
|
}, Rv = () => {
|
|
5118
|
-
const [t, e] =
|
|
5118
|
+
const [t, e] = J(0), n = H(() => {
|
|
5119
5119
|
e((r) => r + 1);
|
|
5120
5120
|
}, [e]);
|
|
5121
5121
|
return { instance: t, rerender: n };
|
|
5122
5122
|
}, yf = (t, e) => {
|
|
5123
|
-
const { tolgee: n, options: r } = Lv(), i = af(t), o = at(i).join(":"), s = Object.assign(Object.assign({}, r), e), { rerender: a, instance: c } = Rv(), l =
|
|
5123
|
+
const { tolgee: n, options: r } = Lv(), i = af(t), o = at(i).join(":"), s = Object.assign(Object.assign({}, r), e), { rerender: a, instance: c } = Rv(), l = B(), u = B([]);
|
|
5124
5124
|
u.current = [];
|
|
5125
5125
|
const d = (p) => {
|
|
5126
5126
|
var h;
|
|
@@ -5178,7 +5178,7 @@ const Lv = () => {
|
|
|
5178
5178
|
return $.createElement(kv, Object.assign({ t: e }, t));
|
|
5179
5179
|
}, Dv = "Spinner-module__loader__U4GVhD", Nv = {
|
|
5180
5180
|
loader: Dv
|
|
5181
|
-
}, is = ({ className: t }) => /* @__PURE__ */
|
|
5181
|
+
}, is = ({ className: t }) => /* @__PURE__ */ C("div", { className: ee(Nv.loader, t), children: "Loading..." }), Iv = "Button-module__root__8RX49h", Fv = "Button-module__primary__st6yY9", jv = "Button-module__secondary__j-3rjz", Bv = "Button-module__loading__QfItr2", Vv = "Button-module__spinner__kVZYqS", Jr = {
|
|
5182
5182
|
root: Iv,
|
|
5183
5183
|
primary: Fv,
|
|
5184
5184
|
secondary: jv,
|
|
@@ -5188,16 +5188,16 @@ const Lv = () => {
|
|
|
5188
5188
|
const o = [Jr.root, e, Jr[r], { [Jr.loading]: n }];
|
|
5189
5189
|
if (i.as === "link") {
|
|
5190
5190
|
const { as: s, disabled: a, ...c } = i;
|
|
5191
|
-
return /* @__PURE__ */ N("a", { className:
|
|
5191
|
+
return /* @__PURE__ */ N("a", { className: ee(o), ...c, "data-disabled": a, children: [
|
|
5192
5192
|
!n && t,
|
|
5193
|
-
n && /* @__PURE__ */
|
|
5193
|
+
n && /* @__PURE__ */ C(is, { className: Jr.spinner })
|
|
5194
5194
|
] });
|
|
5195
5195
|
}
|
|
5196
5196
|
if (i.as === "button") {
|
|
5197
5197
|
const { as: s, ...a } = i;
|
|
5198
|
-
return /* @__PURE__ */ N("button", { type: "button", className:
|
|
5198
|
+
return /* @__PURE__ */ N("button", { type: "button", className: ee(o), ...a, children: [
|
|
5199
5199
|
!n && t,
|
|
5200
|
-
n && /* @__PURE__ */
|
|
5200
|
+
n && /* @__PURE__ */ C(is, { className: Jr.spinner })
|
|
5201
5201
|
] });
|
|
5202
5202
|
}
|
|
5203
5203
|
Mt(!1, "Invalid button type");
|
|
@@ -5209,7 +5209,7 @@ const Hv = (t) => /* @__PURE__ */ I.createElement("svg", { xmlns: "http://www.w3
|
|
|
5209
5209
|
root: Uv,
|
|
5210
5210
|
absolutePositionVariant: $v,
|
|
5211
5211
|
relativePositionVariant: zv
|
|
5212
|
-
}, Hr = ({ className: t, position: e = "absolute", ...n }) => /* @__PURE__ */
|
|
5212
|
+
}, Hr = ({ className: t, position: e = "absolute", ...n }) => /* @__PURE__ */ C("div", { ...n, className: ee(Ml.root, t, Ml[`${e}PositionVariant`]), children: /* @__PURE__ */ C(Hv, {}) }), qv = (t) => /* @__PURE__ */ I.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 13, height: 12, viewBox: "0 0 13 12", fill: "none", ...t }, /* @__PURE__ */ I.createElement("path", { d: "M6.04102 1.125C5.07683 1.125 4.1343 1.41091 3.33261 1.94659C2.53092 2.48226 1.90608 3.24363 1.53711 4.13442C1.16813 5.02521 1.07159 6.00541 1.25969 6.95107C1.44779 7.89672 1.91209 8.76536 2.59387 9.44715C3.27565 10.1289 4.1443 10.5932 5.08995 10.7813C6.03561 10.9694 7.01581 10.8729 7.9066 10.5039C8.79739 10.1349 9.55876 9.51009 10.0944 8.7084C10.6301 7.90671 10.916 6.96418 10.916 6C10.9147 4.70749 10.4006 3.46831 9.48666 2.55436C8.57271 1.64042 7.33353 1.12636 6.04102 1.125ZM6.04102 10.125C5.22517 10.125 4.42764 9.88307 3.74929 9.42981C3.07094 8.97655 2.54223 8.33231 2.23001 7.57857C1.9178 6.82482 1.83611 5.99542 1.99528 5.19525C2.15444 4.39508 2.54731 3.66008 3.1242 3.08318C3.70109 2.50629 4.4361 2.11342 5.23627 1.95426C6.03644 1.7951 6.86584 1.87679 7.61959 2.189C8.37333 2.50121 9.01757 3.02992 9.47083 3.70827C9.92409 4.38663 10.166 5.18415 10.166 6C10.1648 7.09364 9.72978 8.14213 8.95646 8.91545C8.18314 9.68876 7.13465 10.1238 6.04102 10.125ZM6.79102 8.25C6.79102 8.34946 6.75151 8.44484 6.68118 8.51517C6.61086 8.58549 6.51547 8.625 6.41602 8.625C6.21711 8.625 6.02634 8.54598 5.88569 8.40533C5.74504 8.26468 5.66602 8.07391 5.66602 7.875V6C5.56656 6 5.47118 5.96049 5.40085 5.89016C5.33053 5.81984 5.29102 5.72446 5.29102 5.625C5.29102 5.52554 5.33053 5.43016 5.40085 5.35984C5.47118 5.28951 5.56656 5.25 5.66602 5.25C5.86493 5.25 6.0557 5.32902 6.19635 5.46967C6.337 5.61032 6.41602 5.80109 6.41602 6V7.875C6.51547 7.875 6.61086 7.91451 6.68118 7.98483C6.75151 8.05516 6.79102 8.15054 6.79102 8.25ZM5.29102 3.9375C5.29102 3.82625 5.32401 3.71749 5.38582 3.62499C5.44762 3.53249 5.53547 3.46039 5.63826 3.41782C5.74104 3.37524 5.85414 3.3641 5.96326 3.38581C6.07237 3.40751 6.1726 3.46109 6.25127 3.53975C6.32993 3.61842 6.38351 3.71865 6.40521 3.82776C6.42691 3.93688 6.41577 4.04998 6.3732 4.15276C6.33063 4.25554 6.25853 4.34339 6.16603 4.4052C6.07352 4.46701 5.96477 4.5 5.85352 4.5C5.70433 4.5 5.56126 4.44074 5.45577 4.33525C5.35028 4.22976 5.29102 4.08668 5.29102 3.9375Z", fill: "black" })), Gv = "W3WLink-module__likeButton__RhAlpN", Wv = "W3WLink-module__title__eo6M7L", kl = {
|
|
5213
5213
|
likeButton: Gv,
|
|
5214
5214
|
title: Wv
|
|
5215
5215
|
}, Zv = () => /* @__PURE__ */ N(
|
|
@@ -5221,8 +5221,8 @@ const Hv = (t) => /* @__PURE__ */ I.createElement("svg", { xmlns: "http://www.w3
|
|
|
5221
5221
|
target: "_blank",
|
|
5222
5222
|
rel: "noreferrer",
|
|
5223
5223
|
children: [
|
|
5224
|
-
/* @__PURE__ */
|
|
5225
|
-
/* @__PURE__ */
|
|
5224
|
+
/* @__PURE__ */ C("span", { className: kl.title, children: "what3words" }),
|
|
5225
|
+
/* @__PURE__ */ C(qv, {})
|
|
5226
5226
|
]
|
|
5227
5227
|
}
|
|
5228
5228
|
), Kv = (t) => /* @__PURE__ */ I.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", ...t }, /* @__PURE__ */ I.createElement("path", { d: "M10 1.25C8.17727 1.25207 6.42979 1.97706 5.14092 3.26592C3.85206 4.55479 3.12707 6.30227 3.125 8.125C3.125 14.0078 9.375 18.4508 9.64141 18.6367C9.74649 18.7103 9.87169 18.7498 10 18.7498C10.1283 18.7498 10.2535 18.7103 10.3586 18.6367C10.625 18.4508 16.875 14.0078 16.875 8.125C16.8729 6.30227 16.1479 4.55479 14.8591 3.26592C13.5702 1.97706 11.8227 1.25207 10 1.25ZM10 5.625C10.4945 5.625 10.9778 5.77162 11.3889 6.04633C11.8 6.32103 12.1205 6.71148 12.3097 7.16829C12.4989 7.62511 12.5484 8.12777 12.452 8.61273C12.3555 9.09768 12.1174 9.54314 11.7678 9.89277C11.4181 10.2424 10.9727 10.4805 10.4877 10.577C10.0028 10.6734 9.50011 10.6239 9.04329 10.4347C8.58648 10.2455 8.19603 9.92505 7.92133 9.51393C7.64662 9.1028 7.5 8.61945 7.5 8.125C7.5 7.46196 7.76339 6.82607 8.23223 6.35723C8.70107 5.88839 9.33696 5.625 10 5.625Z", fill: "black" })), Qv = (t) => /* @__PURE__ */ I.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", ...t }, /* @__PURE__ */ I.createElement("path", { d: "M20 0H0V20H20V0Z", fill: "black" }), /* @__PURE__ */ I.createElement("path", { d: "M8.79664 14.3751C8.69766 14.3749 8.60012 14.3513 8.51204 14.3061C8.42396 14.261 8.34785 14.1956 8.28997 14.1153C8.2321 14.0349 8.1941 13.9421 8.1791 13.8442C8.1641 13.7464 8.17253 13.6464 8.2037 13.5524L10.7037 6.05231C10.7561 5.89505 10.8689 5.76506 11.0172 5.69095C11.1655 5.61683 11.3371 5.60466 11.4944 5.65711C11.6517 5.70956 11.7817 5.82233 11.8558 5.97061C11.9299 6.1189 11.9421 6.29055 11.8896 6.44782L9.38961 13.9479C9.34809 14.0723 9.26848 14.1805 9.16206 14.2572C9.05564 14.3338 8.9278 14.3751 8.79664 14.3751Z", fill: "white" }), /* @__PURE__ */ I.createElement("path", { d: "M5.04666 14.3751C4.94767 14.3749 4.85013 14.3513 4.76205 14.3061C4.67397 14.261 4.59787 14.1955 4.53999 14.1152C4.48211 14.0349 4.4441 13.942 4.4291 13.8442C4.4141 13.7464 4.42253 13.6464 4.45369 13.5524L6.95369 6.05229C7.00645 5.89542 7.11927 5.76587 7.26741 5.69206C7.41554 5.61825 7.58691 5.60621 7.74391 5.65857C7.90092 5.71093 8.03075 5.82343 8.10493 5.97138C8.17911 6.11933 8.19159 6.29066 8.13962 6.4478L5.6396 13.9479C5.59808 14.0723 5.51848 14.1805 5.41206 14.2571C5.30565 14.3338 5.17781 14.3751 5.04666 14.3751Z", fill: "white" }), /* @__PURE__ */ I.createElement("path", { d: "M12.5467 14.3751C12.4477 14.3749 12.3501 14.3513 12.2621 14.3061C12.174 14.261 12.0979 14.1955 12.04 14.1152C11.9821 14.0349 11.9441 13.942 11.9291 13.8442C11.9141 13.7464 11.9225 13.6464 11.9537 13.5524L14.4537 6.05229C14.5064 5.89542 14.6193 5.76587 14.7674 5.69206C14.9155 5.61825 15.0869 5.60621 15.2439 5.65857C15.4009 5.71093 15.5308 5.82343 15.6049 5.97138C15.6791 6.11933 15.6916 6.29066 15.6396 6.4478L13.1396 13.9479C13.0981 14.0723 13.0185 14.1805 12.9121 14.2571C12.8057 14.3338 12.6778 14.3751 12.5467 14.3751Z", fill: "white" })), Jv = "W3WLink-module__mainWrapper__BeGCpA", Xv = "W3WLink-module__link__yq50q-", Dl = {
|
|
@@ -5231,9 +5231,9 @@ const Hv = (t) => /* @__PURE__ */ I.createElement("svg", { xmlns: "http://www.w3
|
|
|
5231
5231
|
}, bf = ({ what3words: t }) => {
|
|
5232
5232
|
const { id: e, link: n } = t;
|
|
5233
5233
|
return /* @__PURE__ */ N("div", { className: Dl.mainWrapper, children: [
|
|
5234
|
-
/* @__PURE__ */
|
|
5235
|
-
/* @__PURE__ */
|
|
5236
|
-
/* @__PURE__ */
|
|
5234
|
+
/* @__PURE__ */ C(Qv, {}),
|
|
5235
|
+
/* @__PURE__ */ C("a", { className: Dl.link, href: n, title: "w3w link", target: "_blank", rel: "noreferrer", children: e }),
|
|
5236
|
+
/* @__PURE__ */ C(Kv, {})
|
|
5237
5237
|
] });
|
|
5238
5238
|
}, Nl = {
|
|
5239
5239
|
day: "",
|
|
@@ -5242,7 +5242,7 @@ const Hv = (t) => /* @__PURE__ */ I.createElement("svg", { xmlns: "http://www.w3
|
|
|
5242
5242
|
closes: ""
|
|
5243
5243
|
};
|
|
5244
5244
|
function Yv(t) {
|
|
5245
|
-
const [e, n] =
|
|
5245
|
+
const [e, n] = J({
|
|
5246
5246
|
...Nl,
|
|
5247
5247
|
workSchedule: []
|
|
5248
5248
|
}), { t: r } = _t(["details_modal", "common"]), i = {
|
|
@@ -5295,7 +5295,7 @@ function Yv(t) {
|
|
|
5295
5295
|
});
|
|
5296
5296
|
}, [t]), e;
|
|
5297
5297
|
}
|
|
5298
|
-
const e1 = "LocationView-module__title__-wT0bl", t1 = "LocationView-module__logo__jDjNMt", n1 = "LocationView-module__header__K0gBYX", r1 = "LocationView-module__content__wtOPjm", i1 = "LocationView-module__sectionTitle__cNIgnC", o1 = "LocationView-module__scheduleContainer__Qbb9sE", s1 = "LocationView-module__workStatus__9yJNqr", a1 = "LocationView-module__scheduleButton__RQPquM", c1 = "LocationView-module__scheduleList__lPVLXP", l1 = "LocationView-module__scheduleListItem__gcCPSg", u1 = "LocationView-module__svgWrapper__zKM438", d1 = "LocationView-module__section__2J1zAJ", f1 = "LocationView-module__w3wSection__PdU7j4", h1 = "LocationView-module__chips__ALwJDx", p1 = "LocationView-module__services__IgJ4ba", m1 = "LocationView-module__images__-wKmRM", g1 = "LocationView-module__image__T1E-gt", v1 = "LocationView-module__actions__NuafMj", y1 = "LocationView-module__actionsHidden__-vX5kK", b1 = "LocationView-module__submit__c-Hc8u", w1 = "LocationView-module__scheduleItem__RhAgat",
|
|
5298
|
+
const e1 = "LocationView-module__title__-wT0bl", t1 = "LocationView-module__logo__jDjNMt", n1 = "LocationView-module__header__K0gBYX", r1 = "LocationView-module__content__wtOPjm", i1 = "LocationView-module__sectionTitle__cNIgnC", o1 = "LocationView-module__scheduleContainer__Qbb9sE", s1 = "LocationView-module__workStatus__9yJNqr", a1 = "LocationView-module__scheduleButton__RQPquM", c1 = "LocationView-module__scheduleList__lPVLXP", l1 = "LocationView-module__scheduleListItem__gcCPSg", u1 = "LocationView-module__svgWrapper__zKM438", d1 = "LocationView-module__section__2J1zAJ", f1 = "LocationView-module__w3wSection__PdU7j4", h1 = "LocationView-module__chips__ALwJDx", p1 = "LocationView-module__services__IgJ4ba", m1 = "LocationView-module__images__-wKmRM", g1 = "LocationView-module__image__T1E-gt", v1 = "LocationView-module__actions__NuafMj", y1 = "LocationView-module__actionsHidden__-vX5kK", b1 = "LocationView-module__submit__c-Hc8u", w1 = "LocationView-module__scheduleItem__RhAgat", Ee = {
|
|
5299
5299
|
title: e1,
|
|
5300
5300
|
logo: t1,
|
|
5301
5301
|
header: n1,
|
|
@@ -5321,92 +5321,92 @@ const e1 = "LocationView-module__title__-wT0bl", t1 = "LocationView-module__logo
|
|
|
5321
5321
|
default: of,
|
|
5322
5322
|
llama: sf
|
|
5323
5323
|
}, S1 = ({ classes: t, hideActions: e, location: n, onClose: r, onSubmit: i }) => {
|
|
5324
|
-
var v, S,
|
|
5325
|
-
const [o, s] =
|
|
5324
|
+
var v, S, E;
|
|
5325
|
+
const [o, s] = J(!1), { t: a } = _t(["details_modal", "common"]), { isLoading: c, lmsData: l } = As(), { closes: u, isAvailable: d, statusValue: f, workSchedule: g } = Yv(n.timetable), p = (v = l == null ? void 0 : l.location) == null ? void 0 : v.what3words, h = !!(p != null && p.id), { logo: b = "default" } = _e(), y = _1[b];
|
|
5326
5326
|
function _() {
|
|
5327
5327
|
s((m) => !m);
|
|
5328
5328
|
}
|
|
5329
5329
|
return /* @__PURE__ */ N(wt, { children: [
|
|
5330
|
-
/* @__PURE__ */ N("div", { className:
|
|
5331
|
-
/* @__PURE__ */
|
|
5332
|
-
/* @__PURE__ */ N("div", { className:
|
|
5333
|
-
/* @__PURE__ */
|
|
5334
|
-
/* @__PURE__ */
|
|
5330
|
+
/* @__PURE__ */ N("div", { className: ee(Ee.header, t == null ? void 0 : t.header), children: [
|
|
5331
|
+
/* @__PURE__ */ C(Hr, { onClick: r }),
|
|
5332
|
+
/* @__PURE__ */ N("div", { className: Ee.title, children: [
|
|
5333
|
+
/* @__PURE__ */ C("div", { className: Ee.logo, children: /* @__PURE__ */ C(y, {}) }),
|
|
5334
|
+
/* @__PURE__ */ C("span", { children: n.name })
|
|
5335
5335
|
] })
|
|
5336
5336
|
] }),
|
|
5337
|
-
/* @__PURE__ */ N("div", { className:
|
|
5338
|
-
/* @__PURE__ */ N("section", { className:
|
|
5337
|
+
/* @__PURE__ */ N("div", { className: ee(Ee.content, t == null ? void 0 : t.content), children: [
|
|
5338
|
+
/* @__PURE__ */ N("section", { className: Ee.section, children: [
|
|
5339
5339
|
/* @__PURE__ */ N("span", { children: [
|
|
5340
5340
|
a("address"),
|
|
5341
5341
|
":"
|
|
5342
5342
|
] }),
|
|
5343
|
-
c ? /* @__PURE__ */
|
|
5343
|
+
c ? /* @__PURE__ */ C(et, { width: 200 }) : /* @__PURE__ */ C("p", { children: (S = n.location) == null ? void 0 : S.full_address })
|
|
5344
5344
|
] }),
|
|
5345
|
-
c ? /* @__PURE__ */
|
|
5346
|
-
/* @__PURE__ */
|
|
5347
|
-
/* @__PURE__ */
|
|
5345
|
+
c ? /* @__PURE__ */ C(et, {}) : h && /* @__PURE__ */ N("section", { className: Ee.w3wSection, children: [
|
|
5346
|
+
/* @__PURE__ */ C(bf, { what3words: p }),
|
|
5347
|
+
/* @__PURE__ */ C(Zv, {})
|
|
5348
5348
|
] }),
|
|
5349
|
-
/* @__PURE__ */ N("div", { className:
|
|
5350
|
-
/* @__PURE__ */ N("span", { className:
|
|
5349
|
+
/* @__PURE__ */ N("div", { className: Ee.scheduleContainer, children: [
|
|
5350
|
+
/* @__PURE__ */ N("span", { className: Ee.sectionTitle, children: [
|
|
5351
5351
|
a("schedule"),
|
|
5352
5352
|
":"
|
|
5353
5353
|
] }),
|
|
5354
|
-
/* @__PURE__ */ N("button", { type: "button", "aria-label": "open schedule", className:
|
|
5355
|
-
/* @__PURE__ */
|
|
5354
|
+
/* @__PURE__ */ N("button", { type: "button", "aria-label": "open schedule", className: Ee.scheduleButton, onClick: _, children: [
|
|
5355
|
+
/* @__PURE__ */ C("span", { className: Ee.workStatus, "data-available": d, children: f }),
|
|
5356
5356
|
u && /* @__PURE__ */ N("span", { children: [
|
|
5357
5357
|
a("closes"),
|
|
5358
5358
|
" ",
|
|
5359
5359
|
u
|
|
5360
5360
|
] }),
|
|
5361
|
-
/* @__PURE__ */
|
|
5361
|
+
/* @__PURE__ */ C("span", { className: Ee.svgWrapper, "data-open": o, children: /* @__PURE__ */ C(Pg, {}) })
|
|
5362
5362
|
] }),
|
|
5363
|
-
/* @__PURE__ */
|
|
5363
|
+
/* @__PURE__ */ C("ul", { className: Ee.scheduleList, "data-open": o, children: g.map(({ dayName: m, time: w }) => {
|
|
5364
5364
|
const T = !w ? a("weekend") : w;
|
|
5365
|
-
return /* @__PURE__ */ N("li", { className:
|
|
5365
|
+
return /* @__PURE__ */ N("li", { className: Ee.scheduleListItem, children: [
|
|
5366
5366
|
/* @__PURE__ */ N("span", { children: [
|
|
5367
5367
|
m,
|
|
5368
5368
|
":"
|
|
5369
5369
|
] }),
|
|
5370
|
-
/* @__PURE__ */
|
|
5370
|
+
/* @__PURE__ */ C("span", { children: T })
|
|
5371
5371
|
] }, m);
|
|
5372
5372
|
}) })
|
|
5373
5373
|
] }),
|
|
5374
|
-
(n.pay_by_card || n.pay_by_card) && /* @__PURE__ */ N("section", { className:
|
|
5374
|
+
(n.pay_by_card || n.pay_by_card) && /* @__PURE__ */ N("section", { className: Ee.section, children: [
|
|
5375
5375
|
/* @__PURE__ */ N("span", { children: [
|
|
5376
5376
|
a("payment_method"),
|
|
5377
5377
|
":"
|
|
5378
5378
|
] }),
|
|
5379
|
-
c ? /* @__PURE__ */
|
|
5379
|
+
c ? /* @__PURE__ */ C(et, { width: 300 }) : /* @__PURE__ */ N("div", { className: Ee.chips, children: [
|
|
5380
5380
|
n.pay_by_cash && a("pay_by_cash"),
|
|
5381
5381
|
n.pay_by_card && n.pay_by_cash && ", ",
|
|
5382
5382
|
n.pay_by_card && a("pay_by_card")
|
|
5383
5383
|
] })
|
|
5384
5384
|
] }),
|
|
5385
|
-
/* @__PURE__ */ N("section", { className:
|
|
5385
|
+
/* @__PURE__ */ N("section", { className: Ee.section, children: [
|
|
5386
5386
|
/* @__PURE__ */ N("span", { children: [
|
|
5387
5387
|
a("services"),
|
|
5388
5388
|
":"
|
|
5389
5389
|
] }),
|
|
5390
|
-
/* @__PURE__ */ N("div", { className:
|
|
5391
|
-
n.is_pickup && (c ? /* @__PURE__ */
|
|
5392
|
-
n.is_delivery && (c ? /* @__PURE__ */
|
|
5393
|
-
n.is_dressing_room && (c ? /* @__PURE__ */
|
|
5394
|
-
n.is_check_order && (c ? /* @__PURE__ */
|
|
5390
|
+
/* @__PURE__ */ N("div", { className: Ee.services, children: [
|
|
5391
|
+
n.is_pickup && (c ? /* @__PURE__ */ C(et, { width: 150 }) : /* @__PURE__ */ C("p", { children: a("is_pickup") })),
|
|
5392
|
+
n.is_delivery && (c ? /* @__PURE__ */ C(et, { width: 150 }) : /* @__PURE__ */ C("p", { children: a("is_delivery") })),
|
|
5393
|
+
n.is_dressing_room && (c ? /* @__PURE__ */ C(et, { width: 150 }) : /* @__PURE__ */ C("p", { children: a("is_dressing_room") })),
|
|
5394
|
+
n.is_check_order && (c ? /* @__PURE__ */ C(et, { width: 150 }) : /* @__PURE__ */ C("p", { children: a("is_check_order") }))
|
|
5395
5395
|
] })
|
|
5396
5396
|
] }),
|
|
5397
|
-
/* @__PURE__ */ N("section", { className:
|
|
5397
|
+
/* @__PURE__ */ N("section", { className: Ee.section, children: [
|
|
5398
5398
|
/* @__PURE__ */ N("span", { children: [
|
|
5399
5399
|
a("location"),
|
|
5400
5400
|
":"
|
|
5401
5401
|
] }),
|
|
5402
|
-
c ? /* @__PURE__ */
|
|
5402
|
+
c ? /* @__PURE__ */ C(et, { width: 100 }) : /* @__PURE__ */ C("p", { children: n.location_name })
|
|
5403
5403
|
] }),
|
|
5404
|
-
((
|
|
5404
|
+
((E = n.images) == null ? void 0 : E.length) > 0 && /* @__PURE__ */ C("section", { className: Ee.images, children: n.images.map((m) => /* @__PURE__ */ C("img", { src: m, alt: n.name, className: Ee.image }, m)) })
|
|
5405
5405
|
] }),
|
|
5406
|
-
/* @__PURE__ */
|
|
5406
|
+
/* @__PURE__ */ C("div", { className: ee(Ee.actions, { [Ee.actionsHidden]: e }), children: /* @__PURE__ */ C(lt, { variant: "primary", className: Ee.submit, disabled: c, onClick: i, children: a("choose", { ns: "common" }) }) })
|
|
5407
5407
|
] });
|
|
5408
5408
|
}, wf = dt(S1), wc = ({ isSelectedPoint: t }) => {
|
|
5409
|
-
const e =
|
|
5409
|
+
const e = Y(dc), [n, r] = J(!0);
|
|
5410
5410
|
return j(() => {
|
|
5411
5411
|
r(t ? !e : !0);
|
|
5412
5412
|
}, [e, t]), n;
|
|
@@ -5416,13 +5416,13 @@ function E1() {
|
|
|
5416
5416
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
5417
5417
|
}
|
|
5418
5418
|
function O1() {
|
|
5419
|
-
var t =
|
|
5419
|
+
var t = J(/* @__PURE__ */ Object.create(null)), e = t[1];
|
|
5420
5420
|
return H(function() {
|
|
5421
5421
|
e(/* @__PURE__ */ Object.create(null));
|
|
5422
5422
|
}, []);
|
|
5423
5423
|
}
|
|
5424
5424
|
var x1 = function(e) {
|
|
5425
|
-
var n = e.children, r = e.type, i = r === void 0 ? "reach-portal" : r, o =
|
|
5425
|
+
var n = e.children, r = e.type, i = r === void 0 ? "reach-portal" : r, o = B(null), s = B(null), a = O1();
|
|
5426
5426
|
return C1(function() {
|
|
5427
5427
|
if (o.current) {
|
|
5428
5428
|
var c = o.current.ownerDocument;
|
|
@@ -5639,7 +5639,7 @@ function Wo(t) {
|
|
|
5639
5639
|
return [[]];
|
|
5640
5640
|
if (de(t))
|
|
5641
5641
|
return [[t]];
|
|
5642
|
-
var e =
|
|
5642
|
+
var e = Oe(Object.keys(t).map(function(n) {
|
|
5643
5643
|
var r = t[n];
|
|
5644
5644
|
return typeof r != "string" && (!r || !Object.keys(r).length) ? [[n]] : Wo(t[n]).map(function(i) {
|
|
5645
5645
|
return [n].concat(i);
|
|
@@ -5647,7 +5647,7 @@ function Wo(t) {
|
|
|
5647
5647
|
}));
|
|
5648
5648
|
return e;
|
|
5649
5649
|
}
|
|
5650
|
-
function
|
|
5650
|
+
function Oe(t) {
|
|
5651
5651
|
var e;
|
|
5652
5652
|
return (e = []).concat.apply(e, ye([], se(t), !1));
|
|
5653
5653
|
}
|
|
@@ -6091,25 +6091,25 @@ function as(t, e, n, r, i, o, s) {
|
|
|
6091
6091
|
return o == null || o(v, c, r), v;
|
|
6092
6092
|
}
|
|
6093
6093
|
case L1: {
|
|
6094
|
-
var S = h,
|
|
6094
|
+
var S = h, E = (b = S.conds.find(function(z) {
|
|
6095
6095
|
var Z = Af(z.cond, t.options.guards);
|
|
6096
6096
|
return !Z || Pf(t, Z, c, r, o ? void 0 : e);
|
|
6097
6097
|
})) === null || b === void 0 ? void 0 : b.actions;
|
|
6098
|
-
if (!
|
|
6098
|
+
if (!E)
|
|
6099
6099
|
return [];
|
|
6100
6100
|
var m = se(as(t, e, c, r, [{
|
|
6101
6101
|
type: p,
|
|
6102
|
-
actions: dn(mt(
|
|
6102
|
+
actions: dn(mt(E), t.options.actions)
|
|
6103
6103
|
}], o, s), 2), w = m[0], O = m[1];
|
|
6104
6104
|
return c = O, l == null || l.push(c), w;
|
|
6105
6105
|
}
|
|
6106
6106
|
case R1: {
|
|
6107
|
-
var
|
|
6108
|
-
if (!
|
|
6107
|
+
var E = h.get(c, r.data);
|
|
6108
|
+
if (!E)
|
|
6109
6109
|
return [];
|
|
6110
6110
|
var T = se(as(t, e, c, r, [{
|
|
6111
6111
|
type: p,
|
|
6112
|
-
actions: dn(mt(
|
|
6112
|
+
actions: dn(mt(E), t.options.actions)
|
|
6113
6113
|
}], o, s), 2), P = T[0], L = T[1];
|
|
6114
6114
|
return c = L, l == null || l.push(c), P;
|
|
6115
6115
|
}
|
|
@@ -6128,8 +6128,8 @@ function as(t, e, n, r, i, o, s) {
|
|
|
6128
6128
|
else if (k && l) {
|
|
6129
6129
|
var F = l.length - 1, G = D(D({}, A), {
|
|
6130
6130
|
exec: function(z) {
|
|
6131
|
-
for (var Z = [],
|
|
6132
|
-
Z[
|
|
6131
|
+
for (var Z = [], X = 1; X < arguments.length; X++)
|
|
6132
|
+
Z[X - 1] = arguments[X];
|
|
6133
6133
|
k.apply(void 0, ye([l[F]], se(Z), !1));
|
|
6134
6134
|
}
|
|
6135
6135
|
});
|
|
@@ -6142,8 +6142,8 @@ function as(t, e, n, r, i, o, s) {
|
|
|
6142
6142
|
var h, b, y = [];
|
|
6143
6143
|
try {
|
|
6144
6144
|
for (var _ = re(p.actions), v = _.next(); !v.done; v = _.next()) {
|
|
6145
|
-
var S = v.value,
|
|
6146
|
-
|
|
6145
|
+
var S = v.value, E = d(p.type, S);
|
|
6146
|
+
E && (y = y.concat(E));
|
|
6147
6147
|
}
|
|
6148
6148
|
} catch (m) {
|
|
6149
6149
|
h = {
|
|
@@ -6161,7 +6161,7 @@ function as(t, e, n, r, i, o, s) {
|
|
|
6161
6161
|
o(m, c, r);
|
|
6162
6162
|
}), u.length = 0, y;
|
|
6163
6163
|
}
|
|
6164
|
-
var g =
|
|
6164
|
+
var g = Oe(i.map(f));
|
|
6165
6165
|
return [g, c];
|
|
6166
6166
|
}
|
|
6167
6167
|
var dr = function(t, e) {
|
|
@@ -6248,7 +6248,7 @@ function Pi(t) {
|
|
|
6248
6248
|
}
|
|
6249
6249
|
function Df(t) {
|
|
6250
6250
|
var e = [t];
|
|
6251
|
-
return cs(t) ? e : e.concat(
|
|
6251
|
+
return cs(t) ? e : e.concat(Oe(Pi(t).map(Df)));
|
|
6252
6252
|
}
|
|
6253
6253
|
function li(t, e) {
|
|
6254
6254
|
var n, r, i, o, s, a, c, l, u = new Set(t), d = Na(u), f = new Set(e);
|
|
@@ -6280,8 +6280,8 @@ function li(t, e) {
|
|
|
6280
6280
|
});
|
|
6281
6281
|
else if (h.type === "parallel")
|
|
6282
6282
|
try {
|
|
6283
|
-
for (var S = (s = void 0, re(Pi(h))),
|
|
6284
|
-
var m =
|
|
6283
|
+
for (var S = (s = void 0, re(Pi(h))), E = S.next(); !E.done; E = S.next()) {
|
|
6284
|
+
var m = E.value;
|
|
6285
6285
|
f.has(m) || (f.add(m), d.get(m) ? d.get(m).forEach(function(P) {
|
|
6286
6286
|
return f.add(P);
|
|
6287
6287
|
}) : m.initialStateNodes.forEach(function(P) {
|
|
@@ -6294,7 +6294,7 @@ function li(t, e) {
|
|
|
6294
6294
|
};
|
|
6295
6295
|
} finally {
|
|
6296
6296
|
try {
|
|
6297
|
-
|
|
6297
|
+
E && !E.done && (a = S.return) && a.call(S);
|
|
6298
6298
|
} finally {
|
|
6299
6299
|
if (s)
|
|
6300
6300
|
throw s.error;
|
|
@@ -6379,7 +6379,7 @@ function ui(t, e) {
|
|
|
6379
6379
|
}) : t instanceof Set ? t.has(e) : !1;
|
|
6380
6380
|
}
|
|
6381
6381
|
function ay(t) {
|
|
6382
|
-
return ye([], se(new Set(
|
|
6382
|
+
return ye([], se(new Set(Oe(ye([], se(t.map(function(e) {
|
|
6383
6383
|
return e.ownEvents;
|
|
6384
6384
|
})), !1)))), !1);
|
|
6385
6385
|
}
|
|
@@ -6396,7 +6396,7 @@ function cy(t) {
|
|
|
6396
6396
|
}, {});
|
|
6397
6397
|
}
|
|
6398
6398
|
function Hl(t) {
|
|
6399
|
-
return new Set(
|
|
6399
|
+
return new Set(Oe(t.map(function(e) {
|
|
6400
6400
|
return e.tags;
|
|
6401
6401
|
})));
|
|
6402
6402
|
}
|
|
@@ -6731,7 +6731,7 @@ Event: `
|
|
|
6731
6731
|
)
|
|
6732
6732
|
break;
|
|
6733
6733
|
if (_.type === fe.Invoke) {
|
|
6734
|
-
var v = Lf(_.src), S = r.machine.options.services ? r.machine.options.services[v.type] : void 0,
|
|
6734
|
+
var v = Lf(_.src), S = r.machine.options.services ? r.machine.options.services[v.type] : void 0, E = _.id, m = _.data, w = "autoForward" in _ ? _.autoForward : !!_.forward;
|
|
6735
6735
|
if (!S)
|
|
6736
6736
|
return;
|
|
6737
6737
|
var O = m ? ss(m, d, f) : void 0;
|
|
@@ -6747,7 +6747,7 @@ Event: `
|
|
|
6747
6747
|
var P = void 0;
|
|
6748
6748
|
Ir(T) && (T = O ? T.withContext(O) : T, P = {
|
|
6749
6749
|
autoForward: w
|
|
6750
|
-
}), r.spawn(T,
|
|
6750
|
+
}), r.spawn(T, E, P);
|
|
6751
6751
|
} else
|
|
6752
6752
|
r.spawnActivity(_);
|
|
6753
6753
|
break;
|
|
@@ -6868,9 +6868,9 @@ Event: `
|
|
|
6868
6868
|
}
|
|
6869
6869
|
}
|
|
6870
6870
|
if (this.state.done) {
|
|
6871
|
-
var
|
|
6871
|
+
var E = e.configuration.find(function(T) {
|
|
6872
6872
|
return T.type === "final" && T.parent === d.machine;
|
|
6873
|
-
}), m =
|
|
6873
|
+
}), m = E && E.doneData ? ss(E.doneData, e.context, n) : void 0;
|
|
6874
6874
|
this._doneEvent = Ko(this.id, m);
|
|
6875
6875
|
try {
|
|
6876
6876
|
for (var w = re(this.doneListeners), O = w.next(); !O.done; O = w.next()) {
|
|
@@ -7005,8 +7005,8 @@ Event: `
|
|
|
7005
7005
|
return this;
|
|
7006
7006
|
this.initialized = !1, this.status = Re.Stopped, this._initialState = void 0;
|
|
7007
7007
|
try {
|
|
7008
|
-
for (var S = re(Object.keys(this.delayedEventsMap)),
|
|
7009
|
-
var m =
|
|
7008
|
+
for (var S = re(Object.keys(this.delayedEventsMap)), E = S.next(); !E.done; E = S.next()) {
|
|
7009
|
+
var m = E.value;
|
|
7010
7010
|
this.clock.clearTimeout(this.delayedEventsMap[m]);
|
|
7011
7011
|
}
|
|
7012
7012
|
} catch (w) {
|
|
@@ -7015,7 +7015,7 @@ Event: `
|
|
|
7015
7015
|
};
|
|
7016
7016
|
} finally {
|
|
7017
7017
|
try {
|
|
7018
|
-
|
|
7018
|
+
E && !E.done && (u = S.return) && u.call(S);
|
|
7019
7019
|
} finally {
|
|
7020
7020
|
if (l)
|
|
7021
7021
|
throw l.error;
|
|
@@ -7032,7 +7032,7 @@ Event: `
|
|
|
7032
7032
|
var i = De({
|
|
7033
7033
|
type: "xstate.stop"
|
|
7034
7034
|
}), o = dr(e, function() {
|
|
7035
|
-
var s =
|
|
7035
|
+
var s = Oe(ye([], se(e.state.configuration), !1).sort(function(d, f) {
|
|
7036
7036
|
return f.order - d.order;
|
|
7037
7037
|
}).map(function(d) {
|
|
7038
7038
|
return dn(d.onExit, e.machine.options.actions);
|
|
@@ -7637,7 +7637,7 @@ var bo = "", Ia = "#", Xs = "*", ir = {}, or = function(t) {
|
|
|
7637
7637
|
return D(D({}, o), {
|
|
7638
7638
|
event: a
|
|
7639
7639
|
});
|
|
7640
|
-
}) :
|
|
7640
|
+
}) : Oe(Object.keys(n).map(function(o, s) {
|
|
7641
7641
|
var a = n[o], c = de(a) ? {
|
|
7642
7642
|
target: a
|
|
7643
7643
|
} : a, l = isNaN(+o) ? o : +o, u = r(l, s);
|
|
@@ -7664,7 +7664,7 @@ var bo = "", Ia = "#", Xs = "*", ir = {}, or = function(t) {
|
|
|
7664
7664
|
return o !== void 0 ? this.getStateNodes((n = {}, n[i] = o, n)) : [this, this.states[i]];
|
|
7665
7665
|
}
|
|
7666
7666
|
var s = Object.keys(i), a = [this];
|
|
7667
|
-
return a.push.apply(a, ye([], se(
|
|
7667
|
+
return a.push.apply(a, ye([], se(Oe(s.map(function(c) {
|
|
7668
7668
|
return r.getStateNode(c).getStateNodes(i[c]);
|
|
7669
7669
|
}))), !1)), a;
|
|
7670
7670
|
}, t.prototype.handles = function(e) {
|
|
@@ -7709,24 +7709,24 @@ var bo = "", Ia = "#", Xs = "*", ir = {}, or = function(t) {
|
|
|
7709
7709
|
}
|
|
7710
7710
|
var g = Object.keys(s).map(function(y) {
|
|
7711
7711
|
return s[y];
|
|
7712
|
-
}), p =
|
|
7712
|
+
}), p = Oe(g.map(function(y) {
|
|
7713
7713
|
return y.transitions;
|
|
7714
7714
|
})), h = g.some(function(y) {
|
|
7715
7715
|
return y.transitions.length > 0;
|
|
7716
7716
|
});
|
|
7717
7717
|
if (!h)
|
|
7718
7718
|
return this.next(n, r);
|
|
7719
|
-
var b =
|
|
7719
|
+
var b = Oe(Object.keys(s).map(function(y) {
|
|
7720
7720
|
return s[y].configuration;
|
|
7721
7721
|
}));
|
|
7722
7722
|
return {
|
|
7723
7723
|
transitions: p,
|
|
7724
|
-
exitSet:
|
|
7724
|
+
exitSet: Oe(g.map(function(y) {
|
|
7725
7725
|
return y.exitSet;
|
|
7726
7726
|
})),
|
|
7727
7727
|
configuration: b,
|
|
7728
7728
|
source: n,
|
|
7729
|
-
actions:
|
|
7729
|
+
actions: Oe(Object.keys(s).map(function(y) {
|
|
7730
7730
|
return s[y].actions;
|
|
7731
7731
|
}))
|
|
7732
7732
|
};
|
|
@@ -7777,12 +7777,12 @@ var bo = "", Ia = "#", Xs = "*", ir = {}, or = function(t) {
|
|
|
7777
7777
|
source: e,
|
|
7778
7778
|
actions: a
|
|
7779
7779
|
};
|
|
7780
|
-
var _ =
|
|
7780
|
+
var _ = Oe(c.map(function(S) {
|
|
7781
7781
|
return o.getRelativeStateNodes(S, e.historyValue);
|
|
7782
7782
|
})), v = !!l.internal;
|
|
7783
7783
|
return {
|
|
7784
7784
|
transitions: [l],
|
|
7785
|
-
exitSet: v ? [] :
|
|
7785
|
+
exitSet: v ? [] : Oe(c.map(function(S) {
|
|
7786
7786
|
return o.getPotentiallyReenteringNodes(S);
|
|
7787
7787
|
})),
|
|
7788
7788
|
configuration: _,
|
|
@@ -7839,7 +7839,7 @@ var bo = "", Ia = "#", Xs = "*", ir = {}, or = function(t) {
|
|
|
7839
7839
|
});
|
|
7840
7840
|
var S = Array.from(p).sort(function(L, A) {
|
|
7841
7841
|
return L.order - A.order;
|
|
7842
|
-
}),
|
|
7842
|
+
}), E = new Set(r.exitSet), m = Oe(S.map(function(L) {
|
|
7843
7843
|
var A = [];
|
|
7844
7844
|
if (L.type !== "final")
|
|
7845
7845
|
return A;
|
|
@@ -7868,7 +7868,7 @@ var bo = "", Ia = "#", Xs = "*", ir = {}, or = function(t) {
|
|
|
7868
7868
|
actions: m.map(function(L) {
|
|
7869
7869
|
return z1(L);
|
|
7870
7870
|
})
|
|
7871
|
-
}), O = Array.from(
|
|
7871
|
+
}), O = Array.from(E).map(function(L) {
|
|
7872
7872
|
return {
|
|
7873
7873
|
type: "exit",
|
|
7874
7874
|
actions: dn(ye(ye([], se(L.onExit), !1), se(L.activities.map(function(A) {
|
|
@@ -7880,7 +7880,7 @@ var bo = "", Ia = "#", Xs = "*", ir = {}, or = function(t) {
|
|
|
7880
7880
|
actions: dn(r.actions, this.machine.options.actions)
|
|
7881
7881
|
}).concat(w);
|
|
7882
7882
|
if (n) {
|
|
7883
|
-
var P = dn(
|
|
7883
|
+
var P = dn(Oe(ye([], se(e), !1).sort(function(L, A) {
|
|
7884
7884
|
return A.order - L.order;
|
|
7885
7885
|
}).map(function(L) {
|
|
7886
7886
|
return L.onExit;
|
|
@@ -7921,9 +7921,9 @@ var bo = "", Ia = "#", Xs = "*", ir = {}, or = function(t) {
|
|
|
7921
7921
|
var d = e.configuration, f = !n || e.transitions.length > 0, g = f ? e.configuration : n ? n.configuration : [], p = Qo(g, this), h = f ? sy(this.machine, d) : void 0, b = n ? n.historyValue ? n.historyValue : e.source ? this.machine.historyValue(n.value) : void 0 : void 0, y = this.getActions(new Set(g), p, e, r, o, n, i), _ = n ? D({}, n.activities) : {};
|
|
7922
7922
|
try {
|
|
7923
7923
|
for (var v = re(y), S = v.next(); !S.done; S = v.next()) {
|
|
7924
|
-
var
|
|
7924
|
+
var E = S.value;
|
|
7925
7925
|
try {
|
|
7926
|
-
for (var m = (c = void 0, re(
|
|
7926
|
+
for (var m = (c = void 0, re(E.actions)), w = m.next(); !w.done; w = m.next()) {
|
|
7927
7927
|
var O = w.value;
|
|
7928
7928
|
O.type === Pa ? _[O.activity.id || O.activity.type] = O : O.type === Sc && (_[O.activity.id || O.activity.type] = !1);
|
|
7929
7929
|
}
|
|
@@ -7953,10 +7953,10 @@ var bo = "", Ia = "#", Xs = "*", ir = {}, or = function(t) {
|
|
|
7953
7953
|
}
|
|
7954
7954
|
}
|
|
7955
7955
|
var T = se(as(this, n, r, o, y, i, this.machine.config.predictableActionArguments || this.machine.config.preserveActionOrder), 2), P = T[0], L = T[1], A = se(j1(P, ka), 2), k = A[0], F = A[1], G = P.filter(function(Le) {
|
|
7956
|
-
var
|
|
7957
|
-
return Le.type === Pa && ((
|
|
7958
|
-
}), z = G.reduce(function(Le,
|
|
7959
|
-
return Le[
|
|
7956
|
+
var Se;
|
|
7957
|
+
return Le.type === Pa && ((Se = Le.activity) === null || Se === void 0 ? void 0 : Se.type) === La;
|
|
7958
|
+
}), z = G.reduce(function(Le, Se) {
|
|
7959
|
+
return Le[Se.activity.id] = ny(Se.activity, u.machine, L, o), Le;
|
|
7960
7960
|
}, n ? D({}, n.children) : {}), Z = new ot({
|
|
7961
7961
|
value: h || n.value,
|
|
7962
7962
|
context: L,
|
|
@@ -7974,8 +7974,8 @@ var bo = "", Ia = "#", Xs = "*", ir = {}, or = function(t) {
|
|
|
7974
7974
|
done: p,
|
|
7975
7975
|
tags: Hl(g),
|
|
7976
7976
|
machine: this
|
|
7977
|
-
}),
|
|
7978
|
-
Z.changed = o.name === Cf ||
|
|
7977
|
+
}), X = r !== L;
|
|
7978
|
+
Z.changed = o.name === Cf || X;
|
|
7979
7979
|
var he = Z.history;
|
|
7980
7980
|
he && delete he.history;
|
|
7981
7981
|
var pe = !p && (this._transient || d.some(function(Le) {
|
|
@@ -7991,7 +7991,7 @@ var bo = "", Ia = "#", Xs = "*", ir = {}, or = function(t) {
|
|
|
7991
7991
|
var ae = k.shift();
|
|
7992
7992
|
me = this.resolveRaisedTransition(me, ae._event, o, i);
|
|
7993
7993
|
}
|
|
7994
|
-
var Je = me.changed || (he ? !!me.actions.length ||
|
|
7994
|
+
var Je = me.changed || (he ? !!me.actions.length || X || typeof he.value != typeof me.value || !If(me.value, he.value) : void 0);
|
|
7995
7995
|
return me.changed = Je, me.history = he, me;
|
|
7996
7996
|
}, t.prototype.getStateNode = function(e) {
|
|
7997
7997
|
if (or(e))
|
|
@@ -8121,7 +8121,7 @@ var bo = "", Ia = "#", Xs = "*", ir = {}, or = function(t) {
|
|
|
8121
8121
|
if (this.type === "compound" && !this.initial)
|
|
8122
8122
|
return [this];
|
|
8123
8123
|
var n = Wo(this.initialStateValue);
|
|
8124
|
-
return
|
|
8124
|
+
return Oe(n.map(function(r) {
|
|
8125
8125
|
return e.getFromRelativePath(r);
|
|
8126
8126
|
}));
|
|
8127
8127
|
},
|
|
@@ -8159,12 +8159,12 @@ var bo = "", Ia = "#", Xs = "*", ir = {}, or = function(t) {
|
|
|
8159
8159
|
var r = this.parent;
|
|
8160
8160
|
if (!e) {
|
|
8161
8161
|
var i = this.target;
|
|
8162
|
-
return i ?
|
|
8162
|
+
return i ? Oe(Wo(i).map(function(s) {
|
|
8163
8163
|
return r.getFromRelativePath(s);
|
|
8164
8164
|
})) : r.initialStateNodes;
|
|
8165
8165
|
}
|
|
8166
8166
|
var o = N1(r.path, "states")(e).current;
|
|
8167
|
-
return de(o) ? [r.getStateNode(o)] :
|
|
8167
|
+
return de(o) ? [r.getStateNode(o)] : Oe(Wo(o).map(function(s) {
|
|
8168
8168
|
return n.history === "deep" ? r.getFromRelativePath(s) : [r.states[s[0]]];
|
|
8169
8169
|
}));
|
|
8170
8170
|
}, Object.defineProperty(t.prototype, "stateIds", {
|
|
@@ -8172,7 +8172,7 @@ var bo = "", Ia = "#", Xs = "*", ir = {}, or = function(t) {
|
|
|
8172
8172
|
* All the state node IDs of this state node and its descendant state nodes.
|
|
8173
8173
|
*/
|
|
8174
8174
|
get: function() {
|
|
8175
|
-
var e = this, n =
|
|
8175
|
+
var e = this, n = Oe(Object.keys(this.states).map(function(r) {
|
|
8176
8176
|
return e.states[r].stateIds;
|
|
8177
8177
|
}));
|
|
8178
8178
|
return [this.id].concat(n);
|
|
@@ -8292,15 +8292,15 @@ var bo = "", Ia = "#", Xs = "*", ir = {}, or = function(t) {
|
|
|
8292
8292
|
i = this.config.on;
|
|
8293
8293
|
else {
|
|
8294
8294
|
var o = this.config.on, s = Xs, a = o[s], c = a === void 0 ? [] : a, l = _c(o, [typeof s == "symbol" ? s : s + ""]);
|
|
8295
|
-
i =
|
|
8295
|
+
i = Oe(Object.keys(l).map(function(_) {
|
|
8296
8296
|
var v = rr(_, l[_]);
|
|
8297
8297
|
return v;
|
|
8298
8298
|
}).concat(rr(Xs, c)));
|
|
8299
8299
|
}
|
|
8300
|
-
var u = this.config.always ? rr("", this.config.always) : [], d = this.config.onDone ? rr(String(vo(this.id)), this.config.onDone) : [], f =
|
|
8300
|
+
var u = this.config.always ? rr("", this.config.always) : [], d = this.config.onDone ? rr(String(vo(this.id)), this.config.onDone) : [], f = Oe(this.invoke.map(function(_) {
|
|
8301
8301
|
var v = [];
|
|
8302
8302
|
return _.onDone && v.push.apply(v, ye([], se(rr(String(Ko(_.id)), _.onDone)), !1)), _.onError && v.push.apply(v, ye([], se(rr(String(ci(_.id)), _.onError)), !1)), v;
|
|
8303
|
-
})), g = this.after, p =
|
|
8303
|
+
})), g = this.after, p = Oe(ye(ye(ye(ye([], se(d), !1), se(f), !1), se(i), !1), se(u), !1).map(function(_) {
|
|
8304
8304
|
return mt(_).map(function(v) {
|
|
8305
8305
|
return r.formatTransition(v);
|
|
8306
8306
|
});
|
|
@@ -8422,7 +8422,7 @@ function ql(t, e) {
|
|
|
8422
8422
|
r();
|
|
8423
8423
|
}
|
|
8424
8424
|
function xy(t) {
|
|
8425
|
-
var e =
|
|
8425
|
+
var e = B([]), n = B([]);
|
|
8426
8426
|
gi(function() {
|
|
8427
8427
|
var r = t.subscribe(function(i) {
|
|
8428
8428
|
var o, s;
|
|
@@ -8538,7 +8538,7 @@ function Ry(t, e) {
|
|
|
8538
8538
|
var n = H(function(a) {
|
|
8539
8539
|
var c = a.changed === void 0 && Object.keys(a.children).length;
|
|
8540
8540
|
(a.changed || c) && s(a);
|
|
8541
|
-
}, []), r = Py(t, e, n), i = Ly(
|
|
8541
|
+
}, []), r = Py(t, e, n), i = Ly(J(function() {
|
|
8542
8542
|
var a = r.machine.initialState;
|
|
8543
8543
|
return e.state ? ot.create(e.state) : a;
|
|
8544
8544
|
}), 2), o = i[0], s = i[1];
|
|
@@ -8596,7 +8596,7 @@ function My(t, e) {
|
|
|
8596
8596
|
}, t);
|
|
8597
8597
|
}
|
|
8598
8598
|
function ky() {
|
|
8599
|
-
const t =
|
|
8599
|
+
const t = J(!1), e = t[1];
|
|
8600
8600
|
return H(() => e((r) => !r), []);
|
|
8601
8601
|
}
|
|
8602
8602
|
function xn(t, e) {
|
|
@@ -8703,7 +8703,7 @@ class Hy extends jf {
|
|
|
8703
8703
|
}
|
|
8704
8704
|
}
|
|
8705
8705
|
const Uy = (t) => Q.fun(t) && !(t.prototype instanceof $.Component), $y = (t) => Cn((n, r) => {
|
|
8706
|
-
const i = ky(), o =
|
|
8706
|
+
const i = ky(), o = B(!0), s = B(null), a = B(null), c = H((f) => {
|
|
8707
8707
|
const g = s.current, p = () => {
|
|
8708
8708
|
let h = !1;
|
|
8709
8709
|
a.current && (h = Tc.fn(a.current, s.current.getAnimatedValue())), (!a.current || h === !1) && i();
|
|
@@ -8750,8 +8750,8 @@ const Hn = /* @__PURE__ */ new Set(), $f = () => {
|
|
|
8750
8750
|
s = c.lastTime !== void 0 ? c.lastTime : t, g = c.lastVelocity !== void 0 ? c.lastVelocity : i.initialVelocity, t > s + 64 && (s = t);
|
|
8751
8751
|
let p = Math.floor(t - s);
|
|
8752
8752
|
for (let _ = 0; _ < p; ++_) {
|
|
8753
|
-
let v = -i.tension * (d - u), S = -i.friction * g,
|
|
8754
|
-
g = g +
|
|
8753
|
+
let v = -i.tension * (d - u), S = -i.friction * g, E = (v + S) / i.mass;
|
|
8754
|
+
g = g + E * 1 / 1e3, d = d + g * 1 / 1e3;
|
|
8755
8755
|
}
|
|
8756
8756
|
let h = i.clamp && i.tension !== 0 ? l < u ? d > u : d < u : !1, b = Math.abs(g) <= i.precision, y = i.tension !== 0 ? Math.abs(u - d) <= i.precision : !0;
|
|
8757
8757
|
o = h || b && y, c.lastVelocity = g, c.lastTime = t;
|
|
@@ -8986,8 +8986,8 @@ let Qy = 0, Jy = class {
|
|
|
8986
8986
|
let p = u && u(this);
|
|
8987
8987
|
if (this.animations = Object.entries(this.merged).reduce((h, b) => {
|
|
8988
8988
|
let y = b[0], _ = b[1], v = h[y] || {};
|
|
8989
|
-
const S = Q.num(_),
|
|
8990
|
-
let O = Q.und(i[y]) ? _ : i[y], T = S || m ||
|
|
8989
|
+
const S = Q.num(_), E = Q.str(_) && !_.startsWith("#") && !/\d/.test(_) && !Bf[_], m = Q.arr(_), w = !S && !m && !E;
|
|
8990
|
+
let O = Q.und(i[y]) ? _ : i[y], T = S || m || E ? _ : 1, P = pr(c, y);
|
|
8991
8991
|
p && (T = p.animations[y].parent);
|
|
8992
8992
|
let L = v.parent, A = v.interpolation, k = wo(p ? T.getPayload() : T), F, G = _;
|
|
8993
8993
|
w && (G = ls({
|
|
@@ -8995,9 +8995,9 @@ let Qy = 0, Jy = class {
|
|
|
8995
8995
|
output: [_, _]
|
|
8996
8996
|
})(1));
|
|
8997
8997
|
let z = A && A.getValue();
|
|
8998
|
-
const
|
|
8998
|
+
const X = !Q.und(L) && v.animatedValues.some((ae) => !ae.done), he = !Q.equ(G, z), pe = !Q.equ(G, v.previous), me = !Q.equ(P, v.config);
|
|
8999
8999
|
if (d || pe && he || me) {
|
|
9000
|
-
if (S ||
|
|
9000
|
+
if (S || E)
|
|
9001
9001
|
L = A = v.parent || new Ba(O);
|
|
9002
9002
|
else if (m)
|
|
9003
9003
|
L = A = v.parent || new Ky(O);
|
|
@@ -9010,7 +9010,7 @@ let Qy = 0, Jy = class {
|
|
|
9010
9010
|
v.interpolation ? (A = v.interpolation, v.interpolation.updateConfig(Je)) : A = L.interpolate(Je);
|
|
9011
9011
|
}
|
|
9012
9012
|
return k = wo(p ? T.getPayload() : T), F = wo(L.getPayload()), d && !w && L.setValue(O, !1), this.hasChanged = !0, F.forEach((ae) => {
|
|
9013
|
-
ae.startPosition = ae.value, ae.lastPosition = ae.value, ae.lastVelocity =
|
|
9013
|
+
ae.startPosition = ae.value, ae.lastPosition = ae.value, ae.lastVelocity = X ? ae.lastVelocity : void 0, ae.lastTime = X ? ae.lastTime : void 0, ae.startTime = Hf(), ae.done = !1, ae.animatedStyles.clear();
|
|
9014
9014
|
}), pr(f, y) && L.setValue(w ? T : _, !1), Te({}, h, {
|
|
9015
9015
|
[y]: Te({}, v, {
|
|
9016
9016
|
name: y,
|
|
@@ -9053,7 +9053,7 @@ let Qy = 0, Jy = class {
|
|
|
9053
9053
|
}
|
|
9054
9054
|
};
|
|
9055
9055
|
const Xy = (t, e) => {
|
|
9056
|
-
const n =
|
|
9056
|
+
const n = B(!1), r = B(), i = Q.fun(e), o = we(() => {
|
|
9057
9057
|
r.current && (r.current.map((d) => d.destroy()), r.current = void 0);
|
|
9058
9058
|
let u;
|
|
9059
9059
|
return [new Array(t).fill().map((d, f) => {
|
|
@@ -9924,7 +9924,7 @@ var Pn = /* @__PURE__ */ new Map(), I2 = /* @__PURE__ */ function() {
|
|
|
9924
9924
|
_movement: b,
|
|
9925
9925
|
delta: [0, 0]
|
|
9926
9926
|
});
|
|
9927
|
-
var S = v._intentional,
|
|
9927
|
+
var S = v._intentional, E = b, m, w;
|
|
9928
9928
|
if (S[0] !== !1 && g[0] === !1 && (w = Eo(o, this.state), m = Eo(s, this.state), d[0] = w[0], u[0] = m[0]), S[1] !== !1 && g[1] === !1) {
|
|
9929
9929
|
var O, T;
|
|
9930
9930
|
w = (O = w) != null ? O : Eo(o, this.state), m = (T = m) != null ? T : Eo(s, this.state), d[1] = w[1], u[1] = m[1];
|
|
@@ -9933,7 +9933,7 @@ var Pn = /* @__PURE__ */ new Map(), I2 = /* @__PURE__ */ function() {
|
|
|
9933
9933
|
return P = nu(u, Jl(P, d), A), Ge({}, v, {
|
|
9934
9934
|
intentional: S[0] !== !1 || S[1] !== !1,
|
|
9935
9935
|
_initial: d,
|
|
9936
|
-
_movement:
|
|
9936
|
+
_movement: E,
|
|
9937
9937
|
movement: P,
|
|
9938
9938
|
values: r,
|
|
9939
9939
|
offset: nu(u, L, A),
|
|
@@ -10202,8 +10202,8 @@ var K2 = 3, Q2 = 220, J2 = /* @__PURE__ */ function(t) {
|
|
|
10202
10202
|
buttons: 0,
|
|
10203
10203
|
touches: 0
|
|
10204
10204
|
});
|
|
10205
|
-
var o = r.state._isTap, s = r.state.velocities, a = s[0], c = s[1], l = r.state.movement, u = l[0], d = l[1], f = r.state._intentional, g = f[0], p = f[1], h = r.config.swipeVelocity, b = h[0], y = h[1], _ = r.config.swipeDistance, v = _[0], S = _[1],
|
|
10206
|
-
|
|
10205
|
+
var o = r.state._isTap, s = r.state.velocities, a = s[0], c = s[1], l = r.state.movement, u = l[0], d = l[1], f = r.state._intentional, g = f[0], p = f[1], h = r.config.swipeVelocity, b = h[0], y = h[1], _ = r.config.swipeDistance, v = _[0], S = _[1], E = Ge({}, ta(Co(r), i), r.getMovement(r.state.values)), m = [0, 0];
|
|
10206
|
+
E.elapsedTime < Q2 && (g !== !1 && Math.abs(a) > b && Math.abs(u) > v && (m[0] = Ha(a)), p !== !1 && Math.abs(c) > y && Math.abs(d) > S && (m[1] = Ha(c))), r.updateGestureState(Ge({}, E, {
|
|
10207
10207
|
tap: o,
|
|
10208
10208
|
swipe: m
|
|
10209
10209
|
})), r.fireGestureHandler(o === !0);
|
|
@@ -10313,7 +10313,7 @@ function Y2(t, e) {
|
|
|
10313
10313
|
}
|
|
10314
10314
|
function e3(t, e) {
|
|
10315
10315
|
e === void 0 && (e = {}), Pn.set("drag", J2);
|
|
10316
|
-
var n =
|
|
10316
|
+
var n = B();
|
|
10317
10317
|
return n.current || (n.current = X2(N2, Y2)), q2({
|
|
10318
10318
|
drag: t
|
|
10319
10319
|
}, n.current(e));
|
|
@@ -10660,10 +10660,10 @@ var cu = /* @__PURE__ */ function() {
|
|
|
10660
10660
|
return m.tabbableNodes.length > 0;
|
|
10661
10661
|
}), o.tabbableGroups.length <= 0 && !l("fallbackFocus"))
|
|
10662
10662
|
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
10663
|
-
}, f = function
|
|
10663
|
+
}, f = function E(m) {
|
|
10664
10664
|
if (m !== !1 && m !== r.activeElement) {
|
|
10665
10665
|
if (!m || !m.focus) {
|
|
10666
|
-
|
|
10666
|
+
E(u());
|
|
10667
10667
|
return;
|
|
10668
10668
|
}
|
|
10669
10669
|
m.focus({
|
|
@@ -10708,8 +10708,8 @@ var cu = /* @__PURE__ */ function() {
|
|
|
10708
10708
|
m.shiftKey ? O = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : O = o.tabbableGroups[0].firstTabbableNode;
|
|
10709
10709
|
else if (m.shiftKey) {
|
|
10710
10710
|
var L = uu(o.tabbableGroups, function(Z) {
|
|
10711
|
-
var
|
|
10712
|
-
return w ===
|
|
10711
|
+
var X = Z.firstTabbableNode;
|
|
10712
|
+
return w === X;
|
|
10713
10713
|
});
|
|
10714
10714
|
if (L < 0 && (P.container === w || na(w, i.tabbableOptions) && !Oo(w, i.tabbableOptions) && !P.nextTabbableNode(w, !1)) && (L = T), L >= 0) {
|
|
10715
10715
|
var A = L === 0 ? o.tabbableGroups.length - 1 : L - 1, k = o.tabbableGroups[A];
|
|
@@ -10717,8 +10717,8 @@ var cu = /* @__PURE__ */ function() {
|
|
|
10717
10717
|
}
|
|
10718
10718
|
} else {
|
|
10719
10719
|
var F = uu(o.tabbableGroups, function(Z) {
|
|
10720
|
-
var
|
|
10721
|
-
return w ===
|
|
10720
|
+
var X = Z.lastTabbableNode;
|
|
10721
|
+
return w === X;
|
|
10722
10722
|
});
|
|
10723
10723
|
if (F < 0 && (P.container === w || na(w, i.tabbableOptions) && !Oo(w, i.tabbableOptions) && !P.nextTabbableNode(w)) && (F = T), F >= 0) {
|
|
10724
10724
|
var G = F === o.tabbableGroups.length - 1 ? 0 : F + 1, z = o.tabbableGroups[G];
|
|
@@ -10951,7 +10951,7 @@ var $n = function(t) {
|
|
|
10951
10951
|
return To.get(t);
|
|
10952
10952
|
if (dh(t))
|
|
10953
10953
|
return To.set(t, mu), mu;
|
|
10954
|
-
var n = getComputedStyle(t), r = Lc(t) && t.ownerSVGElement && t.getBBox(), i = !k3 && n.boxSizing === "border-box", o = M3.test(n.writingMode || ""), s = !r && pu.test(n.overflowY || ""), a = !r && pu.test(n.overflowX || ""), c = r ? 0 : Et(n.paddingTop), l = r ? 0 : Et(n.paddingRight), u = r ? 0 : Et(n.paddingBottom), d = r ? 0 : Et(n.paddingLeft), f = r ? 0 : Et(n.borderTopWidth), g = r ? 0 : Et(n.borderRightWidth), p = r ? 0 : Et(n.borderBottomWidth), h = r ? 0 : Et(n.borderLeftWidth), b = d + l, y = c + u, _ = h + g, v = f + p, S = a ? t.offsetHeight - v - t.clientHeight : 0,
|
|
10954
|
+
var n = getComputedStyle(t), r = Lc(t) && t.ownerSVGElement && t.getBBox(), i = !k3 && n.boxSizing === "border-box", o = M3.test(n.writingMode || ""), s = !r && pu.test(n.overflowY || ""), a = !r && pu.test(n.overflowX || ""), c = r ? 0 : Et(n.paddingTop), l = r ? 0 : Et(n.paddingRight), u = r ? 0 : Et(n.paddingBottom), d = r ? 0 : Et(n.paddingLeft), f = r ? 0 : Et(n.borderTopWidth), g = r ? 0 : Et(n.borderRightWidth), p = r ? 0 : Et(n.borderBottomWidth), h = r ? 0 : Et(n.borderLeftWidth), b = d + l, y = c + u, _ = h + g, v = f + p, S = a ? t.offsetHeight - v - t.clientHeight : 0, E = s ? t.offsetWidth - _ - t.clientWidth : 0, m = i ? b + _ : 0, w = i ? y + v : 0, O = r ? r.width : Et(n.width) - m - E, T = r ? r.height : Et(n.height) - w - S, P = O + b + E + _, L = T + y + S + v, A = $n({
|
|
10955
10955
|
devicePixelContentBoxSize: vr(Math.round(O * devicePixelRatio), Math.round(T * devicePixelRatio), o),
|
|
10956
10956
|
borderBoxSize: vr(P, L, o),
|
|
10957
10957
|
contentBoxSize: vr(O, T, o),
|
|
@@ -11186,7 +11186,7 @@ function Lo(t) {
|
|
|
11186
11186
|
}
|
|
11187
11187
|
var Z3 = { box: "border-box" };
|
|
11188
11188
|
function oa(t, e) {
|
|
11189
|
-
var n = e.label, r = e.enabled, i = e.resizeSourceRef, o =
|
|
11189
|
+
var n = e.label, r = e.enabled, i = e.resizeSourceRef, o = J(0), s = o[0], a = o[1];
|
|
11190
11190
|
nn(n + ": " + s);
|
|
11191
11191
|
var c = H(function(l) {
|
|
11192
11192
|
a(l[0].borderBoxSize[0].blockSize), i.current = "element";
|
|
@@ -11336,15 +11336,15 @@ var _u = { DRAG: { target: "#overlay.dragging", actions: "onOpenEnd" } }, Su = {
|
|
|
11336
11336
|
}, initiallyOpen: function(t) {
|
|
11337
11337
|
return t.initialState === "OPEN";
|
|
11338
11338
|
} } }), Q3 = ["children", "sibling", "className", "footer", "header", "open", "initialState", "lastSnapRef", "initialFocusRef", "onDismiss", "maxHeight", "defaultSnap", "snapPoints", "blocking", "scrollLocking", "style", "onSpringStart", "onSpringCancel", "onSpringEnd", "reserveScrollBarGap", "expandOnContentDrag"], J3 = ["velocity"], X3 = ["onRest", "config"], gh = Zy.default, Y3 = gh.tension, Ro = gh.friction, e4 = $.forwardRef(function(t, e) {
|
|
11339
|
-
var n = t.children, r = t.sibling, i = t.className, o = t.footer, s = t.header, a = t.open, c = t.initialState, l = t.lastSnapRef, u = t.initialFocusRef, d = t.onDismiss, f = t.maxHeight, g = t.defaultSnap, p = g === void 0 ? n4 : g, h = t.snapPoints, b = h === void 0 ? r4 : h, y = t.blocking, _ = y === void 0 || y, v = t.scrollLocking, S = v === void 0 || v,
|
|
11340
|
-
var M =
|
|
11341
|
-
return le(function(
|
|
11339
|
+
var n = t.children, r = t.sibling, i = t.className, o = t.footer, s = t.header, a = t.open, c = t.initialState, l = t.lastSnapRef, u = t.initialFocusRef, d = t.onDismiss, f = t.maxHeight, g = t.defaultSnap, p = g === void 0 ? n4 : g, h = t.snapPoints, b = h === void 0 ? r4 : h, y = t.blocking, _ = y === void 0 || y, v = t.scrollLocking, S = v === void 0 || v, E = t.style, m = t.onSpringStart, w = t.onSpringCancel, O = t.onSpringEnd, T = t.reserveScrollBarGap, P = T === void 0 ? _ : T, L = t.expandOnContentDrag, A = L !== void 0 && L, k = Yo(t, Q3), F = function() {
|
|
11340
|
+
var M = J(!1), W = M[0], U = M[1], ie = J({}), be = ie[0], le = ie[1], ge = H(function(ve) {
|
|
11341
|
+
return le(function(Ce) {
|
|
11342
11342
|
var K;
|
|
11343
|
-
return Ve({},
|
|
11343
|
+
return Ve({}, Ce, ((K = {})[ve] = !1, K));
|
|
11344
11344
|
}), function() {
|
|
11345
|
-
le(function(
|
|
11345
|
+
le(function(Ce) {
|
|
11346
11346
|
var K;
|
|
11347
|
-
return Ve({},
|
|
11347
|
+
return Ve({}, Ce, ((K = {})[ve] = !0, K));
|
|
11348
11348
|
});
|
|
11349
11349
|
};
|
|
11350
11350
|
}, []);
|
|
@@ -11352,15 +11352,15 @@ var _u = { DRAG: { target: "#overlay.dragging", actions: "onOpenEnd" } }, Su = {
|
|
|
11352
11352
|
var ve = Object.values(be);
|
|
11353
11353
|
ve.length !== 0 && ve.every(Boolean) && U(!0);
|
|
11354
11354
|
}, [be]), { ready: W, registerReady: ge };
|
|
11355
|
-
}(), G = F.ready, z = F.registerReady, Z =
|
|
11355
|
+
}(), G = F.ready, z = F.registerReady, Z = B(!1), X = B(m), he = B(w), pe = B(O);
|
|
11356
11356
|
j(function() {
|
|
11357
|
-
|
|
11357
|
+
X.current = m, he.current = w, pe.current = O;
|
|
11358
11358
|
}, [w, m, O]);
|
|
11359
11359
|
var me, ae, Je = Yy(function() {
|
|
11360
11360
|
return { y: 0, ready: 0, maxHeight: 0, minSnap: 0, maxSnap: 0 };
|
|
11361
|
-
}), Le = Je[0],
|
|
11361
|
+
}), Le = Je[0], Se = Je[1], Jt = B(null), Xt = B(null), $r = B(null), St = B(null), Xi = B(null), Kn = B(null), tt = B(0), Qn = B(), Ds = B(!1), Yt = (me = we(function() {
|
|
11362
11362
|
return typeof window < "u" ? window.matchMedia("(prefers-reduced-motion: reduce)") : null;
|
|
11363
|
-
}, []), ae =
|
|
11363
|
+
}, []), ae = B(me == null ? void 0 : me.matches), nn(ae.current ? "reduce" : "no-preference"), j(function() {
|
|
11364
11364
|
var M = function(W) {
|
|
11365
11365
|
ae.current = W.matches;
|
|
11366
11366
|
};
|
|
@@ -11368,7 +11368,7 @@ var _u = { DRAG: { target: "#overlay.dragging", actions: "onOpenEnd" } }, Su = {
|
|
|
11368
11368
|
return me == null ? void 0 : me.removeListener(M);
|
|
11369
11369
|
};
|
|
11370
11370
|
}, [me]), ae), Jn = function(M) {
|
|
11371
|
-
var W = M.targetRef, U = M.enabled, ie = M.reserveScrollBarGap, be =
|
|
11371
|
+
var W = M.targetRef, U = M.enabled, ie = M.reserveScrollBarGap, be = B({ activate: function() {
|
|
11372
11372
|
throw new TypeError("Tried to activate scroll lock too early");
|
|
11373
11373
|
}, deactivate: function() {
|
|
11374
11374
|
} });
|
|
@@ -11387,7 +11387,7 @@ var _u = { DRAG: { target: "#overlay.dragging", actions: "onOpenEnd" } }, Su = {
|
|
|
11387
11387
|
} };
|
|
11388
11388
|
}, [U, W, ie]), be;
|
|
11389
11389
|
}({ targetRef: Xt, enabled: G && S, reserveScrollBarGap: P }), Xn = function(M) {
|
|
11390
|
-
var W = M.targetRef, U = M.enabled, ie =
|
|
11390
|
+
var W = M.targetRef, U = M.enabled, ie = B({ activate: function() {
|
|
11391
11391
|
throw new TypeError("Tried to activate aria hider too early");
|
|
11392
11392
|
}, deactivate: function() {
|
|
11393
11393
|
} });
|
|
@@ -11400,23 +11400,23 @@ var _u = { DRAG: { target: "#overlay.dragging", actions: "onOpenEnd" } }, Su = {
|
|
|
11400
11400
|
ie.current = { activate: function() {
|
|
11401
11401
|
if (!le) {
|
|
11402
11402
|
le = !0;
|
|
11403
|
-
var
|
|
11403
|
+
var Ce = be.parentNode;
|
|
11404
11404
|
document.querySelectorAll("body > *").forEach(function(K) {
|
|
11405
|
-
if (K !==
|
|
11405
|
+
if (K !== Ce) {
|
|
11406
11406
|
var ue = K.getAttribute("aria-hidden");
|
|
11407
11407
|
ue !== null && ue !== "false" || (ge.push(ue), ve.push(K), K.setAttribute("aria-hidden", "true"));
|
|
11408
11408
|
}
|
|
11409
11409
|
});
|
|
11410
11410
|
}
|
|
11411
11411
|
}, deactivate: function() {
|
|
11412
|
-
le && (le = !1, ve.forEach(function(
|
|
11412
|
+
le && (le = !1, ve.forEach(function(Ce, K) {
|
|
11413
11413
|
var ue = ge[K];
|
|
11414
|
-
ue === null ?
|
|
11414
|
+
ue === null ? Ce.removeAttribute("aria-hidden") : Ce.setAttribute("aria-hidden", ue);
|
|
11415
11415
|
}), ge = [], ve = []);
|
|
11416
11416
|
} };
|
|
11417
11417
|
}, [W, U]), ie;
|
|
11418
11418
|
}({ targetRef: Jt, enabled: G && _ }), Yn = function(M) {
|
|
11419
|
-
var W = M.targetRef, U = M.fallbackRef, ie = M.initialFocusRef, be = M.enabled, le =
|
|
11419
|
+
var W = M.targetRef, U = M.fallbackRef, ie = M.initialFocusRef, be = M.enabled, le = B({ activate: function() {
|
|
11420
11420
|
throw new TypeError("Tried to activate focus trap too early");
|
|
11421
11421
|
}, deactivate: function() {
|
|
11422
11422
|
} });
|
|
@@ -11427,10 +11427,10 @@ var _u = { DRAG: { target: "#overlay.dragging", actions: "onOpenEnd" } }, Su = {
|
|
|
11427
11427
|
} });
|
|
11428
11428
|
var ge = U.current, ve = b3(W.current, { onActivate: void 0, initialFocus: ie ? function() {
|
|
11429
11429
|
return (ie == null ? void 0 : ie.current) || ge;
|
|
11430
|
-
} : void 0, fallbackFocus: ge, escapeDeactivates: !1, clickOutsideDeactivates: !1 }),
|
|
11430
|
+
} : void 0, fallbackFocus: ge, escapeDeactivates: !1, clickOutsideDeactivates: !1 }), Ce = !1;
|
|
11431
11431
|
le.current = { activate: function() {
|
|
11432
11432
|
try {
|
|
11433
|
-
return
|
|
11433
|
+
return Ce ? Promise.resolve() : (Ce = !0, Promise.resolve(ve.activate()).then(function() {
|
|
11434
11434
|
return Promise.resolve(new Promise(function(K) {
|
|
11435
11435
|
return setTimeout(function() {
|
|
11436
11436
|
return K(void 0);
|
|
@@ -11442,7 +11442,7 @@ var _u = { DRAG: { target: "#overlay.dragging", actions: "onOpenEnd" } }, Su = {
|
|
|
11442
11442
|
return Promise.reject(K);
|
|
11443
11443
|
}
|
|
11444
11444
|
}, deactivate: function() {
|
|
11445
|
-
|
|
11445
|
+
Ce && (Ce = !1, ve.deactivate());
|
|
11446
11446
|
} };
|
|
11447
11447
|
}, [be, U, ie, W]), le;
|
|
11448
11448
|
}({ targetRef: Jt, fallbackRef: Kn, initialFocusRef: u || void 0, enabled: G && _ && u !== !1 }), Yi = function(M) {
|
|
@@ -11452,9 +11452,9 @@ var _u = { DRAG: { target: "#overlay.dragging", actions: "onOpenEnd" } }, Su = {
|
|
|
11452
11452
|
}, [Wr]), Uc = function(Zr, Gc, io) {
|
|
11453
11453
|
var oo = we(function() {
|
|
11454
11454
|
return Gc("maxHeight");
|
|
11455
|
-
}, [Gc]), Wc =
|
|
11455
|
+
}, [Gc]), Wc = J(function() {
|
|
11456
11456
|
return Lo(Zr) || typeof window < "u" ? window.innerHeight : 0;
|
|
11457
|
-
}), Zc = Wc[0], Fs = Wc[1], Kc = Zc > 0, so =
|
|
11457
|
+
}), Zc = Wc[0], Fs = Wc[1], Kc = Zc > 0, so = B(0);
|
|
11458
11458
|
return nn(Zr ? "controlled" : "auto"), j(function() {
|
|
11459
11459
|
Kc && oo();
|
|
11460
11460
|
}, [Kc, oo]), Ei(function() {
|
|
@@ -11475,7 +11475,7 @@ var _u = { DRAG: { target: "#overlay.dragging", actions: "onOpenEnd" } }, Su = {
|
|
|
11475
11475
|
return j(function() {
|
|
11476
11476
|
qc && Hc();
|
|
11477
11477
|
}, [qc, Hc]), { maxHeight: Uc, minHeight: zc, headerHeight: Ns, footerHeight: Is };
|
|
11478
|
-
}({ contentRef: M.contentRef, controlledMaxHeight: M.controlledMaxHeight, footerEnabled: M.footerEnabled, footerRef: M.footerRef, headerEnabled: M.headerEnabled, headerRef: M.headerRef, registerReady: M.registerReady, resizeSourceRef: M.resizeSourceRef }), ge = le.maxHeight, ve = le.minHeight,
|
|
11478
|
+
}({ contentRef: M.contentRef, controlledMaxHeight: M.controlledMaxHeight, footerEnabled: M.footerEnabled, footerRef: M.footerRef, headerEnabled: M.headerEnabled, headerRef: M.headerRef, registerReady: M.registerReady, resizeSourceRef: M.resizeSourceRef }), ge = le.maxHeight, ve = le.minHeight, Ce = le.headerHeight, K = le.footerHeight, ue = function(Me, ht) {
|
|
11479
11479
|
var Bt = [].concat(Me).map(Lo).reduce(function(pt, Wr) {
|
|
11480
11480
|
return pt.add(ni(Wr, 0, ht)), pt;
|
|
11481
11481
|
}, /* @__PURE__ */ new Set()), Ue = Array.from(Bt), On = Math.min.apply(Math, Ue);
|
|
@@ -11485,26 +11485,26 @@ var _u = { DRAG: { target: "#overlay.dragging", actions: "onOpenEnd" } }, Su = {
|
|
|
11485
11485
|
if (Number.isNaN(tr))
|
|
11486
11486
|
throw new TypeError("maxSnap is NaN");
|
|
11487
11487
|
return { snapPoints: Ue, minSnap: On, maxSnap: tr };
|
|
11488
|
-
}(be ? W({ height: U.current, footerHeight: K, headerHeight:
|
|
11488
|
+
}(be ? W({ height: U.current, footerHeight: K, headerHeight: Ce, minHeight: ve, maxHeight: ge }) : [0], ge), rt = ue.snapPoints, er = ue.minSnap, ft = ue.maxSnap;
|
|
11489
11489
|
return nn("minSnap: " + er + ", maxSnap:" + ft), { minSnap: er, maxSnap: ft, findSnap: function(Me) {
|
|
11490
|
-
var ht = Lo(typeof Me == "function" ? Me({ footerHeight: K, headerHeight:
|
|
11490
|
+
var ht = Lo(typeof Me == "function" ? Me({ footerHeight: K, headerHeight: Ce, height: U.current, minHeight: ve, maxHeight: ge, snapPoints: rt, lastSnap: ie.current }) : Me);
|
|
11491
11491
|
return rt.reduce(function(Bt, Ue) {
|
|
11492
11492
|
return Math.abs(Ue - ht) < Math.abs(Bt - ht) ? Ue : Bt;
|
|
11493
11493
|
}, er);
|
|
11494
11494
|
}, maxHeight: ge };
|
|
11495
|
-
}({ contentRef: $r, controlledMaxHeight: f, footerEnabled: !!o, footerRef: Xi, getSnapPoints: b, headerEnabled: s !== !1, headerRef: St, heightRef: tt, lastSnapRef: l, ready: G, registerReady: z, resizeSourceRef: Qn }), zr = Yi.minSnap, qr = Yi.maxSnap, Gr = Yi.maxHeight, eo = Yi.findSnap, jt =
|
|
11495
|
+
}({ contentRef: $r, controlledMaxHeight: f, footerEnabled: !!o, footerRef: Xi, getSnapPoints: b, headerEnabled: s !== !1, headerRef: St, heightRef: tt, lastSnapRef: l, ready: G, registerReady: z, resizeSourceRef: Qn }), zr = Yi.minSnap, qr = Yi.maxSnap, Gr = Yi.maxHeight, eo = Yi.findSnap, jt = B(Gr), nt = B(zr), Pe = B(qr), to = B(eo), Ct = B(0);
|
|
11496
11496
|
Ei(function() {
|
|
11497
11497
|
jt.current = Gr, Pe.current = qr, nt.current = zr, to.current = eo, Ct.current = eo(p);
|
|
11498
11498
|
}, [eo, p, Gr, qr, zr]);
|
|
11499
11499
|
var He = H(function(M) {
|
|
11500
11500
|
var W = M.onRest, U = M.config, ie = (U = U === void 0 ? {} : U).velocity, be = ie === void 0 ? 1 : ie, le = Yo(U, J3), ge = Yo(M, X3);
|
|
11501
11501
|
return new Promise(function(ve) {
|
|
11502
|
-
return
|
|
11503
|
-
var
|
|
11504
|
-
ve.apply(void 0,
|
|
11502
|
+
return Se(Ve({}, ge, { config: Ve({ velocity: be }, le, { mass: 1, tension: Y3, friction: Math.max(Ro, Ro + (Ro - Ro * be)) }), onRest: function() {
|
|
11503
|
+
var Ce = [].slice.call(arguments);
|
|
11504
|
+
ve.apply(void 0, Ce), W == null || W.apply(void 0, Ce);
|
|
11505
11505
|
} }));
|
|
11506
11506
|
});
|
|
11507
|
-
}, [
|
|
11507
|
+
}, [Se]), Vc = Ry(K3, { devTools: !1, actions: { onOpenCancel: H(function() {
|
|
11508
11508
|
return he.current == null ? void 0 : he.current({ type: "OPEN" });
|
|
11509
11509
|
}, []), onSnapCancel: H(function(M) {
|
|
11510
11510
|
return he.current == null ? void 0 : he.current({ type: "SNAP", source: M.snapSource });
|
|
@@ -11520,25 +11520,25 @@ var _u = { DRAG: { target: "#overlay.dragging", actions: "onOpenEnd" } }, Su = {
|
|
|
11520
11520
|
return pe.current == null ? void 0 : pe.current({ type: "RESIZE", source: Qn.current });
|
|
11521
11521
|
}, []) }, context: { initialState: c }, services: { onSnapStart: H(function(M, W) {
|
|
11522
11522
|
try {
|
|
11523
|
-
return Promise.resolve(
|
|
11523
|
+
return Promise.resolve(X.current == null ? void 0 : X.current({ type: "SNAP", source: W.payload.source || "custom" }));
|
|
11524
11524
|
} catch (U) {
|
|
11525
11525
|
return Promise.reject(U);
|
|
11526
11526
|
}
|
|
11527
11527
|
}, []), onOpenStart: H(function() {
|
|
11528
11528
|
try {
|
|
11529
|
-
return Promise.resolve(
|
|
11529
|
+
return Promise.resolve(X.current == null ? void 0 : X.current({ type: "OPEN" }));
|
|
11530
11530
|
} catch (M) {
|
|
11531
11531
|
return Promise.reject(M);
|
|
11532
11532
|
}
|
|
11533
11533
|
}, []), onCloseStart: H(function() {
|
|
11534
11534
|
try {
|
|
11535
|
-
return Promise.resolve(
|
|
11535
|
+
return Promise.resolve(X.current == null ? void 0 : X.current({ type: "CLOSE" }));
|
|
11536
11536
|
} catch (M) {
|
|
11537
11537
|
return Promise.reject(M);
|
|
11538
11538
|
}
|
|
11539
11539
|
}, []), onResizeStart: H(function() {
|
|
11540
11540
|
try {
|
|
11541
|
-
return Promise.resolve(
|
|
11541
|
+
return Promise.resolve(X.current == null ? void 0 : X.current({ type: "RESIZE", source: Qn.current }));
|
|
11542
11542
|
} catch (M) {
|
|
11543
11543
|
return Promise.reject(M);
|
|
11544
11544
|
}
|
|
@@ -11656,7 +11656,7 @@ var _u = { DRAG: { target: "#overlay.dragging", actions: "onOpenEnd" } }, Su = {
|
|
|
11656
11656
|
};
|
|
11657
11657
|
}, [A, Xt]);
|
|
11658
11658
|
var no = e3(function(M) {
|
|
11659
|
-
var W = M.args, U = (W = W === void 0 ? [] : W)[0], ie = (U = U === void 0 ? {} : U).closeOnTap, be = ie !== void 0 && ie, le = U.isContentDragging, ge = le !== void 0 && le, ve = M.cancel,
|
|
11659
|
+
var W = M.args, U = (W = W === void 0 ? [] : W)[0], ie = (U = U === void 0 ? {} : U).closeOnTap, be = ie !== void 0 && ie, le = U.isContentDragging, ge = le !== void 0 && le, ve = M.cancel, Ce = M.direction[1], K = M.down, ue = M.first, rt = M.last, er = M.memo, ft = er === void 0 ? Le.y.getValue() : er, Me = M.tap, ht = M.velocity, Bt = -1 * M.movement[1];
|
|
11660
11660
|
if (!Z.current)
|
|
11661
11661
|
return ve(), ft;
|
|
11662
11662
|
if (d && be && Me)
|
|
@@ -11666,10 +11666,10 @@ var _u = { DRAG: { target: "#overlay.dragging", actions: "onOpenEnd" } }, Su = {
|
|
|
11666
11666
|
if (Me)
|
|
11667
11667
|
return ft;
|
|
11668
11668
|
var Ue = ft + Bt, On = Bt * ht, tr = Math.max(nt.current, Math.min(Pe.current, Ue + 2 * On));
|
|
11669
|
-
if (!K && d &&
|
|
11669
|
+
if (!K && d && Ce > 0 && Ue + On < nt.current / 2)
|
|
11670
11670
|
return ve(), d(), ft;
|
|
11671
11671
|
var pt = K ? d || nt.current !== Pe.current ? wi(Ue, d ? 0 : nt.current, Pe.current, 0.55) : Ue < nt.current ? wi(Ue, nt.current, 2 * Pe.current, 0.55) : wi(Ue, nt.current / 2, Pe.current, 0.55) : tr;
|
|
11672
|
-
return A && ge ? (pt >= Pe.current && (pt = Pe.current), ft === Pe.current && Xt.current.scrollTop > 0 && (pt = Pe.current), Ds.current = pt < Pe.current) : Ds.current = !1, ue && en("DRAG"), rt ? (en("SNAP", { payload: { y: pt, velocity: ht > 0.05 ? ht : 1, source: "dragging" } }), ft) : (
|
|
11672
|
+
return A && ge ? (pt >= Pe.current && (pt = Pe.current), ft === Pe.current && Xt.current.scrollTop > 0 && (pt = Pe.current), Ds.current = pt < Pe.current) : Ds.current = !1, ue && en("DRAG"), rt ? (en("SNAP", { payload: { y: pt, velocity: ht > 0.05 ? ht : 1, source: "dragging" } }), ft) : (Se({ y: pt, ready: 1, maxHeight: jt.current, maxSnap: Pe.current, minSnap: nt.current, immediate: !0, config: { velocity: ht } }), ft);
|
|
11673
11673
|
}, { filterTaps: !0 });
|
|
11674
11674
|
if (Number.isNaN(Pe.current))
|
|
11675
11675
|
throw new TypeError("maxSnapRef is NaN!!");
|
|
@@ -11689,12 +11689,12 @@ var _u = { DRAG: { target: "#overlay.dragging", actions: "onOpenEnd" } }, Su = {
|
|
|
11689
11689
|
return 0;
|
|
11690
11690
|
var rt = Math.max(ue / 2 - 45, 0);
|
|
11691
11691
|
return ni((K - rt) * (1 / (Math.min(ue / 2 + 45, ue) - rt) + 0), 0, 1);
|
|
11692
|
-
}),
|
|
11692
|
+
}), Ce = sr([U.y, U.minSnap], function(K, ue) {
|
|
11693
11693
|
return ue ? ni(K / ue, 0, 1) : 0;
|
|
11694
11694
|
});
|
|
11695
|
-
return (W = {})["--rsbs-content-opacity"] = ve, W["--rsbs-backdrop-opacity"] =
|
|
11695
|
+
return (W = {})["--rsbs-content-opacity"] = ve, W["--rsbs-backdrop-opacity"] = Ce, W["--rsbs-antigap-scale-y"] = ge, W["--rsbs-overlay-translate-y"] = le, W["--rsbs-overlay-rounded"] = ie, W["--rsbs-overlay-h"] = be, W;
|
|
11696
11696
|
}({ spring: Le });
|
|
11697
|
-
return $.createElement(y2.div, Ve({}, k, { "data-rsbs-root": !0, "data-rsbs-state": t4.find(Wh.matches), "data-rsbs-is-blocking": _, "data-rsbs-is-dismissable": !!d, "data-rsbs-has-header": !!s, "data-rsbs-has-footer": !!o, className: i, ref: Jt, style: Ve({}, Zh,
|
|
11697
|
+
return $.createElement(y2.div, Ve({}, k, { "data-rsbs-root": !0, "data-rsbs-state": t4.find(Wh.matches), "data-rsbs-is-blocking": _, "data-rsbs-is-dismissable": !!d, "data-rsbs-has-header": !!s, "data-rsbs-has-footer": !!o, className: i, ref: Jt, style: Ve({}, Zh, E, { opacity: Le.ready }) }), r, _ && /* @__PURE__ */ $.createElement("div", Ve({ key: "backdrop", "data-rsbs-backdrop": !0 }, no({ closeOnTap: !0 }))), /* @__PURE__ */ $.createElement("div", { key: "overlay", "aria-modal": "true", role: "dialog", "data-rsbs-overlay": !0, tabIndex: -1, ref: Kn, onKeyDown: function(M) {
|
|
11698
11698
|
M.key === "Escape" && (M.stopPropagation(), d && d());
|
|
11699
11699
|
} }, s !== !1 && /* @__PURE__ */ $.createElement("div", Ve({ key: "header", "data-rsbs-header": !0, ref: St }, no()), s), /* @__PURE__ */ $.createElement("div", Ve({ key: "scroll", "data-rsbs-scroll": !0, ref: Xt }, A ? no({ isContentDragging: !0 }) : {}), /* @__PURE__ */ $.createElement("div", { "data-rsbs-content": !0, ref: $r }, n)), o && /* @__PURE__ */ $.createElement("div", Ve({ key: "footer", ref: Xi, "data-rsbs-footer": !0 }, no()), o)));
|
|
11700
11700
|
}), t4 = ["closed", "opening", "open", "closing", "dragging", "snapping", "resizing"];
|
|
@@ -11706,7 +11706,7 @@ function r4(t) {
|
|
|
11706
11706
|
return t.minHeight;
|
|
11707
11707
|
}
|
|
11708
11708
|
var i4 = ["onSpringStart", "onSpringEnd", "skipInitialTransition"], vh = Cn(function(t, e) {
|
|
11709
|
-
var n = t.onSpringStart, r = t.onSpringEnd, i = t.skipInitialTransition, o = Yo(t, i4), s =
|
|
11709
|
+
var n = t.onSpringStart, r = t.onSpringEnd, i = t.skipInitialTransition, o = Yo(t, i4), s = J(!1), a = s[0], c = s[1], l = B(), u = B(null), d = B(i && o.open ? "OPEN" : "CLOSED");
|
|
11710
11710
|
Ei(function() {
|
|
11711
11711
|
if (o.open)
|
|
11712
11712
|
return cancelAnimationFrame(l.current), c(!0), function() {
|
|
@@ -11752,7 +11752,7 @@ const yh = 28, o4 = "MapGoogle-module__root__Vi-sMl", s4 = "MapGoogle-module__ma
|
|
|
11752
11752
|
submitLoading: s,
|
|
11753
11753
|
...a
|
|
11754
11754
|
}) => {
|
|
11755
|
-
const [c, l] =
|
|
11755
|
+
const [c, l] = J(!1);
|
|
11756
11756
|
return j(() => {
|
|
11757
11757
|
let u;
|
|
11758
11758
|
return i ? u = setTimeout(() => {
|
|
@@ -11760,7 +11760,7 @@ const yh = 28, o4 = "MapGoogle-module__root__Vi-sMl", s4 = "MapGoogle-module__ma
|
|
|
11760
11760
|
}, 400) : l(i), () => {
|
|
11761
11761
|
clearTimeout(u);
|
|
11762
11762
|
};
|
|
11763
|
-
}, [i]), /* @__PURE__ */
|
|
11763
|
+
}, [i]), /* @__PURE__ */ C(
|
|
11764
11764
|
vh,
|
|
11765
11765
|
{
|
|
11766
11766
|
expandOnContentDrag: !0,
|
|
@@ -11772,7 +11772,7 @@ const yh = 28, o4 = "MapGoogle-module__root__Vi-sMl", s4 = "MapGoogle-module__ma
|
|
|
11772
11772
|
n == null ? g : d + u + n,
|
|
11773
11773
|
f - yh
|
|
11774
11774
|
],
|
|
11775
|
-
footer: e ? null : /* @__PURE__ */
|
|
11775
|
+
footer: e ? null : /* @__PURE__ */ C(
|
|
11776
11776
|
lt,
|
|
11777
11777
|
{
|
|
11778
11778
|
disabled: o,
|
|
@@ -11780,10 +11780,10 @@ const yh = 28, o4 = "MapGoogle-module__root__Vi-sMl", s4 = "MapGoogle-module__ma
|
|
|
11780
11780
|
variant: "primary",
|
|
11781
11781
|
className: Fe.sheetSubmit,
|
|
11782
11782
|
onClick: r,
|
|
11783
|
-
children: /* @__PURE__ */
|
|
11783
|
+
children: /* @__PURE__ */ C(zt, { keyName: "choose", ns: "common" })
|
|
11784
11784
|
}
|
|
11785
11785
|
),
|
|
11786
|
-
sibling: /* @__PURE__ */
|
|
11786
|
+
sibling: /* @__PURE__ */ C(
|
|
11787
11787
|
"div",
|
|
11788
11788
|
{
|
|
11789
11789
|
role: "presentation",
|
|
@@ -11794,27 +11794,27 @@ const yh = 28, o4 = "MapGoogle-module__root__Vi-sMl", s4 = "MapGoogle-module__ma
|
|
|
11794
11794
|
}
|
|
11795
11795
|
}
|
|
11796
11796
|
),
|
|
11797
|
-
children: /* @__PURE__ */
|
|
11797
|
+
children: /* @__PURE__ */ C("div", { className: Fe.bottomSheet, children: t })
|
|
11798
11798
|
}
|
|
11799
11799
|
);
|
|
11800
11800
|
}, w4 = {
|
|
11801
11801
|
header: Fe.locationViewHeader,
|
|
11802
11802
|
content: Fe.locationViewContent
|
|
11803
11803
|
}, _4 = ({ handleCloseClick: t, handleSubmitClick: e }) => {
|
|
11804
|
-
const n = Zn("screenSm"), r = ut((c) => c.location), i = !!r, o = wc({ isSelectedPoint: i }), { isIdle: s } =
|
|
11805
|
-
return n && r ? /* @__PURE__ */
|
|
11804
|
+
const n = Zn("screenSm"), r = ut((c) => c.location), i = !!r, o = wc({ isSelectedPoint: i }), { isIdle: s } = Y();
|
|
11805
|
+
return n && r ? /* @__PURE__ */ C(
|
|
11806
11806
|
bh,
|
|
11807
11807
|
{
|
|
11808
11808
|
minSnapHeight: 300,
|
|
11809
11809
|
open: !!(s && i && o),
|
|
11810
11810
|
onDismiss: t,
|
|
11811
11811
|
onSubmitClick: () => e(r),
|
|
11812
|
-
children: /* @__PURE__ */
|
|
11812
|
+
children: /* @__PURE__ */ C(wf, { hideActions: !0, classes: w4, location: r, onClose: t })
|
|
11813
11813
|
}
|
|
11814
11814
|
) : null;
|
|
11815
11815
|
}, S4 = "Overlay-module__root__3qTsUC", C4 = {
|
|
11816
11816
|
root: S4
|
|
11817
|
-
}, wh = ({ children: t, className: e }) => /* @__PURE__ */
|
|
11817
|
+
}, wh = ({ children: t, className: e }) => /* @__PURE__ */ C("div", { className: ee(C4.root, e), children: t }), E4 = (t) => /* @__PURE__ */ I.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 32, height: 32, viewBox: "0 0 32 32", fill: "none", ...t }, /* @__PURE__ */ I.createElement("path", { d: "M25.7074 24.2926C25.8004 24.3855 25.8741 24.4958 25.9243 24.6172C25.9746 24.7386 26.0005 24.8687 26.0005 25.0001C26.0005 25.1315 25.9746 25.2616 25.9243 25.383C25.8741 25.5044 25.8004 25.6147 25.7074 25.7076C25.6145 25.8005 25.5042 25.8742 25.3828 25.9245C25.2614 25.9747 25.1313 26.0006 24.9999 26.0006C24.8686 26.0006 24.7384 25.9747 24.6171 25.9245C24.4957 25.8742 24.3854 25.8005 24.2924 25.7076L15.9999 17.4138L7.70745 25.7076C7.5198 25.8952 7.26531 26.0006 6.99995 26.0006C6.73458 26.0006 6.48009 25.8952 6.29245 25.7076C6.1048 25.5199 5.99939 25.2654 5.99939 25.0001C5.99939 24.7347 6.10481 24.4802 6.29245 24.2926L14.5862 16.0001L6.29245 7.70757C6.1048 7.51993 5.99939 7.26543 5.99939 7.00007C5.99939 6.7347 6.1048 6.48021 6.29245 6.29257C6.48009 6.10493 6.73458 5.99951 6.99995 5.99951C7.26531 5.99951 7.5198 6.10493 7.70745 6.29257L15.9999 14.5863L24.2924 6.29257C24.4801 6.10493 24.7346 5.99951 24.9999 5.99951C25.2653 5.99951 25.5198 6.10493 25.7074 6.29257C25.8951 6.48021 26.0005 6.7347 26.0005 7.00007C26.0005 7.26543 25.8951 7.51993 25.7074 7.70757L17.4137 16.0001L25.7074 24.2926Z", fill: "#000000" })), O4 = '<svg xmlns="http://www.w3.org/2000/svg" width="48" height="66" fill="none" viewBox="0 0 48 66"><path fill="url(#a)" fill-opacity=".4" d="M23.999 66C35.045 66 44 63.314 44 60s-8.955-6-20.001-6C12.955 54 4 56.686 4 60s8.955 6 19.999 6Z" style="mix-blend-mode:darken"/><g filter="url(#b)"><path fill="currentColor" fill-opacity=".8" fill-rule="evenodd" d="M24 0c11.211 0 24 8.288 24 24.088C48 34.6 40.011 48.411 24 60 7.989 48.41 0 34.6 0 24.088 0 8.288 12.789 0 24 0Z" clip-rule="evenodd"/></g><path fill="#fff" fill-rule="evenodd" d="M36.503 33.501V19.625a3 3 0 0 0-1.583-2.645l-9.502-5.091a3 3 0 0 0-2.834 0l-9.501 5.091a3 3 0 0 0-1.583 2.645V33.5a3 3 0 0 0 3 3h19.003a3 3 0 0 0 3-3Zm-7.752 1h4.752a1 1 0 0 0 1-1V19.625a1 1 0 0 0-.528-.882l-9.501-5.091a1 1 0 0 0-.945 0l-9.501 5.091a1 1 0 0 0-.528.882V33.5a1 1 0 0 0 1 1h4.75a2.516 2.516 0 0 1-.05-.5V23.747a2.5 2.5 0 0 1 2.5-2.5h4.602a2.5 2.5 0 0 1 2.5 2.5V34c0 .172-.018.339-.05.5Zm-2.434 0a.5.5 0 0 0 .485-.5V23.747a.5.5 0 0 0-.5-.5H21.7a.5.5 0 0 0-.5.5V34a.5.5 0 0 0 .484.5h4.632Z" clip-rule="evenodd"/><defs><radialGradient id="a" cx="0" cy="0" r="1" gradientTransform="matrix(0 6 -20 0 24 60)" gradientUnits="userSpaceOnUse"><stop/><stop offset="1" stop-opacity="0"/></radialGradient><filter id="b" width="56" height="68" x="-4" y="-4" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feGaussianBlur in="BackgroundImageFix" stdDeviation="2"/><feComposite in2="SourceAlpha" operator="in" result="effect1_backgroundBlur_1068_16960"/><feBlend in="SourceGraphic" in2="effect1_backgroundBlur_1068_16960" result="shape"/></filter></defs></svg>', x4 = `<svg xmlns="http://www.w3.org/2000/svg" width="48" height="66" viewBox="0 0 48 66" fill="none">
|
|
11818
11818
|
<path
|
|
11819
11819
|
d="M23.999 66C35.0452 66 44 63.3137 44 59.9999C44 56.6863 35.0452 54 23.999 54C12.9548 54 4 56.6863 4 59.9999C4 63.3137 12.9548 66 23.999 66Z"
|
|
11820
11820
|
fill="url(#paint0_radial_10036_91741)" fill-opacity="0.4" />
|
|
@@ -12008,7 +12008,7 @@ const yh = 28, o4 = "MapGoogle-module__root__Vi-sMl", s4 = "MapGoogle-module__ma
|
|
|
12008
12008
|
address: V4,
|
|
12009
12009
|
arrow: H4
|
|
12010
12010
|
}, U4 = ({ handleDetailsClick: t, handlePointClick: e, point: n }) => {
|
|
12011
|
-
const { iconType: r, palette: i, skipPointInfo: o } =
|
|
12011
|
+
const { iconType: r, palette: i, skipPointInfo: o } = _e(), s = Zn("screenSm"), a = (i == null ? void 0 : i.primary) || "#fc0", c = function() {
|
|
12012
12012
|
switch (r) {
|
|
12013
12013
|
case "omni-llama":
|
|
12014
12014
|
return Ye.PointLlama;
|
|
@@ -12021,8 +12021,8 @@ const yh = 28, o4 = "MapGoogle-module__root__Vi-sMl", s4 = "MapGoogle-module__ma
|
|
|
12021
12021
|
function l() {
|
|
12022
12022
|
e(n), !o && !s && t(n);
|
|
12023
12023
|
}
|
|
12024
|
-
return /* @__PURE__ */
|
|
12025
|
-
/* @__PURE__ */
|
|
12024
|
+
return /* @__PURE__ */ C("li", { className: cr.point, children: /* @__PURE__ */ N("button", { className: cr.pointButton, type: "button", tabIndex: 0, onClick: l, children: [
|
|
12025
|
+
/* @__PURE__ */ C(
|
|
12026
12026
|
"div",
|
|
12027
12027
|
{
|
|
12028
12028
|
dangerouslySetInnerHTML: {
|
|
@@ -12031,10 +12031,10 @@ const yh = 28, o4 = "MapGoogle-module__root__Vi-sMl", s4 = "MapGoogle-module__ma
|
|
|
12031
12031
|
}
|
|
12032
12032
|
),
|
|
12033
12033
|
/* @__PURE__ */ N("div", { className: cr.pointData, children: [
|
|
12034
|
-
/* @__PURE__ */
|
|
12035
|
-
/* @__PURE__ */
|
|
12034
|
+
/* @__PURE__ */ C("h3", { className: cr.title, children: n.name }),
|
|
12035
|
+
/* @__PURE__ */ C("p", { className: cr.address, children: n.location.full_address })
|
|
12036
12036
|
] }),
|
|
12037
|
-
/* @__PURE__ */
|
|
12037
|
+
/* @__PURE__ */ C("span", { className: cr.arrow, children: /* @__PURE__ */ C(Rc, {}) })
|
|
12038
12038
|
] }) }, n.uid);
|
|
12039
12039
|
}, $4 = "SamePoints-module__container__oYvAF2", z4 = "SamePoints-module__header__nnMDp4", q4 = "SamePoints-module__closeButton__gd1RzT", G4 = "SamePoints-module__sameList__GhS89e", Mo = {
|
|
12040
12040
|
container: $4,
|
|
@@ -12042,9 +12042,9 @@ const yh = 28, o4 = "MapGoogle-module__root__Vi-sMl", s4 = "MapGoogle-module__ma
|
|
|
12042
12042
|
closeButton: q4,
|
|
12043
12043
|
sameList: G4
|
|
12044
12044
|
}, W4 = (t) => {
|
|
12045
|
-
const { closeSamePoints: e, samePoints: n } = It(), { hideSearchInput: r } =
|
|
12045
|
+
const { closeSamePoints: e, samePoints: n } = It(), { hideSearchInput: r } = _e(), i = !!n.length;
|
|
12046
12046
|
return /* @__PURE__ */ N("div", { className: Mo.container, "data-visible": i, "data-hide-search-input": r, children: [
|
|
12047
|
-
/* @__PURE__ */
|
|
12047
|
+
/* @__PURE__ */ C("div", { className: Mo.header, children: /* @__PURE__ */ C(
|
|
12048
12048
|
"button",
|
|
12049
12049
|
{
|
|
12050
12050
|
className: Mo.closeButton,
|
|
@@ -12052,10 +12052,10 @@ const yh = 28, o4 = "MapGoogle-module__root__Vi-sMl", s4 = "MapGoogle-module__ma
|
|
|
12052
12052
|
"aria-label": "Close points",
|
|
12053
12053
|
tabIndex: 0,
|
|
12054
12054
|
onClick: e,
|
|
12055
|
-
children: /* @__PURE__ */
|
|
12055
|
+
children: /* @__PURE__ */ C(E4, {})
|
|
12056
12056
|
}
|
|
12057
12057
|
) }),
|
|
12058
|
-
/* @__PURE__ */
|
|
12058
|
+
/* @__PURE__ */ C("ul", { className: Mo.sameList, children: n.map((o) => /* @__PURE__ */ C(U4, { point: o, ...t }, o.uid)) })
|
|
12059
12059
|
] });
|
|
12060
12060
|
};
|
|
12061
12061
|
var Qi = class {
|
|
@@ -12204,7 +12204,7 @@ var kn, hn, wr, Ku, X4 = (Ku = class extends Qi {
|
|
|
12204
12204
|
q(this, kn, void 0);
|
|
12205
12205
|
q(this, hn, void 0);
|
|
12206
12206
|
q(this, wr, void 0);
|
|
12207
|
-
|
|
12207
|
+
V(this, wr, (e) => {
|
|
12208
12208
|
if (!Gn && window.addEventListener) {
|
|
12209
12209
|
const n = () => e();
|
|
12210
12210
|
return window.addEventListener("visibilitychange", n, !1), () => {
|
|
@@ -12218,16 +12218,16 @@ var kn, hn, wr, Ku, X4 = (Ku = class extends Qi {
|
|
|
12218
12218
|
}
|
|
12219
12219
|
onUnsubscribe() {
|
|
12220
12220
|
var e;
|
|
12221
|
-
this.hasListeners() || ((e = x(this, hn)) == null || e.call(this),
|
|
12221
|
+
this.hasListeners() || ((e = x(this, hn)) == null || e.call(this), V(this, hn, void 0));
|
|
12222
12222
|
}
|
|
12223
12223
|
setEventListener(e) {
|
|
12224
12224
|
var n;
|
|
12225
|
-
|
|
12225
|
+
V(this, wr, e), (n = x(this, hn)) == null || n.call(this), V(this, hn, e((r) => {
|
|
12226
12226
|
typeof r == "boolean" ? this.setFocused(r) : this.onFocus();
|
|
12227
12227
|
}));
|
|
12228
12228
|
}
|
|
12229
12229
|
setFocused(e) {
|
|
12230
|
-
x(this, kn) !== e && (
|
|
12230
|
+
x(this, kn) !== e && (V(this, kn, e), this.onFocus());
|
|
12231
12231
|
}
|
|
12232
12232
|
onFocus() {
|
|
12233
12233
|
const e = this.isFocused();
|
|
@@ -12245,7 +12245,7 @@ var kn, hn, wr, Ku, X4 = (Ku = class extends Qi {
|
|
|
12245
12245
|
q(this, _r, !0);
|
|
12246
12246
|
q(this, pn, void 0);
|
|
12247
12247
|
q(this, Sr, void 0);
|
|
12248
|
-
|
|
12248
|
+
V(this, Sr, (e) => {
|
|
12249
12249
|
if (!Gn && window.addEventListener) {
|
|
12250
12250
|
const n = () => e(!0), r = () => e(!1);
|
|
12251
12251
|
return window.addEventListener("online", n, !1), window.addEventListener("offline", r, !1), () => {
|
|
@@ -12259,14 +12259,14 @@ var kn, hn, wr, Ku, X4 = (Ku = class extends Qi {
|
|
|
12259
12259
|
}
|
|
12260
12260
|
onUnsubscribe() {
|
|
12261
12261
|
var e;
|
|
12262
|
-
this.hasListeners() || ((e = x(this, pn)) == null || e.call(this),
|
|
12262
|
+
this.hasListeners() || ((e = x(this, pn)) == null || e.call(this), V(this, pn, void 0));
|
|
12263
12263
|
}
|
|
12264
12264
|
setEventListener(e) {
|
|
12265
12265
|
var n;
|
|
12266
|
-
|
|
12266
|
+
V(this, Sr, e), (n = x(this, pn)) == null || n.call(this), V(this, pn, e(this.setOnline.bind(this)));
|
|
12267
12267
|
}
|
|
12268
12268
|
setOnline(e) {
|
|
12269
|
-
x(this, _r) !== e && (
|
|
12269
|
+
x(this, _r) !== e && (V(this, _r, e), this.listeners.forEach((r) => {
|
|
12270
12270
|
r(e);
|
|
12271
12271
|
}));
|
|
12272
12272
|
}
|
|
@@ -12347,8 +12347,8 @@ function xh(t) {
|
|
|
12347
12347
|
var m;
|
|
12348
12348
|
if (r)
|
|
12349
12349
|
return;
|
|
12350
|
-
const _ = t.retry ?? (Gn ? 0 : 3), v = t.retryDelay ?? e5, S = typeof v == "function" ? v(n, y) : v,
|
|
12351
|
-
if (e || !
|
|
12350
|
+
const _ = t.retry ?? (Gn ? 0 : 3), v = t.retryDelay ?? e5, S = typeof v == "function" ? v(n, y) : v, E = _ === !0 || typeof _ == "number" && n < _ || typeof _ == "function" && _(n, y);
|
|
12351
|
+
if (e || !E) {
|
|
12352
12352
|
f(y);
|
|
12353
12353
|
return;
|
|
12354
12354
|
}
|
|
@@ -12434,7 +12434,7 @@ var Ne = t5(), Dn, Ju, Th = (Ju = class {
|
|
|
12434
12434
|
this.clearGcTimeout();
|
|
12435
12435
|
}
|
|
12436
12436
|
scheduleGc() {
|
|
12437
|
-
this.clearGcTimeout(), Ga(this.gcTime) &&
|
|
12437
|
+
this.clearGcTimeout(), Ga(this.gcTime) && V(this, Dn, setTimeout(() => {
|
|
12438
12438
|
this.optionalRemove();
|
|
12439
12439
|
}, this.gcTime));
|
|
12440
12440
|
}
|
|
@@ -12445,7 +12445,7 @@ var Ne = t5(), Dn, Ju, Th = (Ju = class {
|
|
|
12445
12445
|
);
|
|
12446
12446
|
}
|
|
12447
12447
|
clearGcTimeout() {
|
|
12448
|
-
x(this, Dn) && (clearTimeout(x(this, Dn)),
|
|
12448
|
+
x(this, Dn) && (clearTimeout(x(this, Dn)), V(this, Dn, void 0));
|
|
12449
12449
|
}
|
|
12450
12450
|
}, Dn = new WeakMap(), Ju), Cr, Er, it, Be, ki, Nn, gt, $t, Xu, n5 = (Xu = class extends Th {
|
|
12451
12451
|
constructor(e) {
|
|
@@ -12457,7 +12457,7 @@ var Ne = t5(), Dn, Ju, Th = (Ju = class {
|
|
|
12457
12457
|
q(this, Be, void 0);
|
|
12458
12458
|
q(this, ki, void 0);
|
|
12459
12459
|
q(this, Nn, void 0);
|
|
12460
|
-
|
|
12460
|
+
V(this, Nn, !1), V(this, ki, e.defaultOptions), this.setOptions(e.options), this.observers = [], V(this, it, e.cache), this.queryKey = e.queryKey, this.queryHash = e.queryHash, V(this, Cr, r5(this.options)), this.state = e.state ?? x(this, Cr), this.scheduleGc();
|
|
12461
12461
|
}
|
|
12462
12462
|
get meta() {
|
|
12463
12463
|
return this.options.meta;
|
|
@@ -12548,14 +12548,14 @@ var Ne = t5(), Dn, Ju, Th = (Ju = class {
|
|
|
12548
12548
|
const r = new AbortController(), i = (d) => {
|
|
12549
12549
|
Object.defineProperty(d, "signal", {
|
|
12550
12550
|
enumerable: !0,
|
|
12551
|
-
get: () => (
|
|
12551
|
+
get: () => (V(this, Nn, !0), r.signal)
|
|
12552
12552
|
});
|
|
12553
12553
|
}, o = () => {
|
|
12554
12554
|
const d = Ch(this.options, n), f = {
|
|
12555
12555
|
queryKey: this.queryKey,
|
|
12556
12556
|
meta: this.meta
|
|
12557
12557
|
};
|
|
12558
|
-
return i(f),
|
|
12558
|
+
return i(f), V(this, Nn, !1), this.options.persister ? this.options.persister(
|
|
12559
12559
|
d,
|
|
12560
12560
|
f,
|
|
12561
12561
|
this
|
|
@@ -12570,7 +12570,7 @@ var Ne = t5(), Dn, Ju, Th = (Ju = class {
|
|
|
12570
12570
|
i(s), (c = this.options.behavior) == null || c.onFetch(
|
|
12571
12571
|
s,
|
|
12572
12572
|
this
|
|
12573
|
-
),
|
|
12573
|
+
), V(this, Er, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((l = s.fetchOptions) == null ? void 0 : l.meta)) && te(this, gt, $t).call(this, { type: "fetch", meta: (u = s.fetchOptions) == null ? void 0 : u.meta });
|
|
12574
12574
|
const a = (d) => {
|
|
12575
12575
|
var f, g, p, h;
|
|
12576
12576
|
sa(d) && d.silent || te(this, gt, $t).call(this, {
|
|
@@ -12587,7 +12587,7 @@ var Ne = t5(), Dn, Ju, Th = (Ju = class {
|
|
|
12587
12587
|
this
|
|
12588
12588
|
)), this.scheduleGc();
|
|
12589
12589
|
};
|
|
12590
|
-
return
|
|
12590
|
+
return V(this, Be, xh({
|
|
12591
12591
|
initialPromise: n == null ? void 0 : n.initialPromise,
|
|
12592
12592
|
fn: s.fetchFn,
|
|
12593
12593
|
abort: r.abort.bind(r),
|
|
@@ -12728,7 +12728,7 @@ var xt, Yu, i5 = (Yu = class extends Qi {
|
|
|
12728
12728
|
constructor(e = {}) {
|
|
12729
12729
|
super();
|
|
12730
12730
|
q(this, xt, void 0);
|
|
12731
|
-
this.config = e,
|
|
12731
|
+
this.config = e, V(this, xt, /* @__PURE__ */ new Map());
|
|
12732
12732
|
}
|
|
12733
12733
|
build(e, n, r) {
|
|
12734
12734
|
const i = n.queryKey, o = n.queryHash ?? Mc(i, n);
|
|
@@ -12803,7 +12803,7 @@ var xt, Yu, i5 = (Yu = class extends Qi {
|
|
|
12803
12803
|
q(this, Tt, void 0);
|
|
12804
12804
|
q(this, $e, void 0);
|
|
12805
12805
|
q(this, In, void 0);
|
|
12806
|
-
this.mutationId = e.mutationId,
|
|
12806
|
+
this.mutationId = e.mutationId, V(this, $e, e.mutationCache), V(this, Tt, []), this.state = e.state || s5(), this.setOptions(e.options), this.scheduleGc();
|
|
12807
12807
|
}
|
|
12808
12808
|
setOptions(e) {
|
|
12809
12809
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -12819,7 +12819,7 @@ var xt, Yu, i5 = (Yu = class extends Qi {
|
|
|
12819
12819
|
}));
|
|
12820
12820
|
}
|
|
12821
12821
|
removeObserver(e) {
|
|
12822
|
-
|
|
12822
|
+
V(this, Tt, x(this, Tt).filter((n) => n !== e)), this.scheduleGc(), x(this, $e).notify({
|
|
12823
12823
|
type: "observerRemoved",
|
|
12824
12824
|
mutation: this,
|
|
12825
12825
|
observer: e
|
|
@@ -12834,8 +12834,8 @@ var xt, Yu, i5 = (Yu = class extends Qi {
|
|
|
12834
12834
|
this.execute(this.state.variables);
|
|
12835
12835
|
}
|
|
12836
12836
|
async execute(e) {
|
|
12837
|
-
var i, o, s, a, c, l, u, d, f, g, p, h, b, y, _, v, S,
|
|
12838
|
-
|
|
12837
|
+
var i, o, s, a, c, l, u, d, f, g, p, h, b, y, _, v, S, E, m, w;
|
|
12838
|
+
V(this, In, xh({
|
|
12839
12839
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
|
|
12840
12840
|
onFail: (O, T) => {
|
|
12841
12841
|
te(this, At, on).call(this, { type: "failed", failureCount: O, error: T });
|
|
@@ -12895,7 +12895,7 @@ var xt, Yu, i5 = (Yu = class extends Qi {
|
|
|
12895
12895
|
O,
|
|
12896
12896
|
e,
|
|
12897
12897
|
this.state.context
|
|
12898
|
-
)), await ((
|
|
12898
|
+
)), await ((E = (S = x(this, $e).config).onSettled) == null ? void 0 : E.call(
|
|
12899
12899
|
S,
|
|
12900
12900
|
void 0,
|
|
12901
12901
|
O,
|
|
@@ -12998,7 +12998,7 @@ var Xe, Di, td, a5 = (td = class extends Qi {
|
|
|
12998
12998
|
super();
|
|
12999
12999
|
q(this, Xe, void 0);
|
|
13000
13000
|
q(this, Di, void 0);
|
|
13001
|
-
this.config = e,
|
|
13001
|
+
this.config = e, V(this, Xe, /* @__PURE__ */ new Map()), V(this, Di, Date.now());
|
|
13002
13002
|
}
|
|
13003
13003
|
build(e, n, r) {
|
|
13004
13004
|
const i = new o5({
|
|
@@ -13086,7 +13086,7 @@ function Tu(t) {
|
|
|
13086
13086
|
h = !0;
|
|
13087
13087
|
}), e.signal)
|
|
13088
13088
|
});
|
|
13089
|
-
}, y = Ch(e.options, e.fetchOptions), _ = async (v, S,
|
|
13089
|
+
}, y = Ch(e.options, e.fetchOptions), _ = async (v, S, E) => {
|
|
13090
13090
|
if (h)
|
|
13091
13091
|
return Promise.reject();
|
|
13092
13092
|
if (S == null && v.pages.length)
|
|
@@ -13094,24 +13094,24 @@ function Tu(t) {
|
|
|
13094
13094
|
const m = {
|
|
13095
13095
|
queryKey: e.queryKey,
|
|
13096
13096
|
pageParam: S,
|
|
13097
|
-
direction:
|
|
13097
|
+
direction: E ? "backward" : "forward",
|
|
13098
13098
|
meta: e.options.meta
|
|
13099
13099
|
};
|
|
13100
13100
|
b(m);
|
|
13101
13101
|
const w = await y(
|
|
13102
13102
|
m
|
|
13103
|
-
), { maxPages: O } = e.options, T =
|
|
13103
|
+
), { maxPages: O } = e.options, T = E ? J4 : Q4;
|
|
13104
13104
|
return {
|
|
13105
13105
|
pages: T(v.pages, w, O),
|
|
13106
13106
|
pageParams: T(v.pageParams, S, O)
|
|
13107
13107
|
};
|
|
13108
13108
|
};
|
|
13109
13109
|
if (i && o.length) {
|
|
13110
|
-
const v = i === "backward", S = v ? c5 : Au,
|
|
13110
|
+
const v = i === "backward", S = v ? c5 : Au, E = {
|
|
13111
13111
|
pages: o,
|
|
13112
13112
|
pageParams: s
|
|
13113
|
-
}, m = S(r,
|
|
13114
|
-
a = await _(
|
|
13113
|
+
}, m = S(r, E);
|
|
13114
|
+
a = await _(E, m, v);
|
|
13115
13115
|
} else {
|
|
13116
13116
|
const v = t ?? o.length;
|
|
13117
13117
|
do {
|
|
@@ -13162,18 +13162,18 @@ var xe, mn, gn, Or, xr, vn, Tr, Ar, nd, l5 = (nd = class {
|
|
|
13162
13162
|
q(this, vn, void 0);
|
|
13163
13163
|
q(this, Tr, void 0);
|
|
13164
13164
|
q(this, Ar, void 0);
|
|
13165
|
-
|
|
13165
|
+
V(this, xe, t.queryCache || new i5()), V(this, mn, t.mutationCache || new a5()), V(this, gn, t.defaultOptions || {}), V(this, Or, /* @__PURE__ */ new Map()), V(this, xr, /* @__PURE__ */ new Map()), V(this, vn, 0);
|
|
13166
13166
|
}
|
|
13167
13167
|
mount() {
|
|
13168
|
-
ao(this, vn)._++, x(this, vn) === 1 && (
|
|
13168
|
+
ao(this, vn)._++, x(this, vn) === 1 && (V(this, Tr, Dc.subscribe(async (t) => {
|
|
13169
13169
|
t && (await this.resumePausedMutations(), x(this, xe).onFocus());
|
|
13170
|
-
})),
|
|
13170
|
+
})), V(this, Ar, vs.subscribe(async (t) => {
|
|
13171
13171
|
t && (await this.resumePausedMutations(), x(this, xe).onOnline());
|
|
13172
13172
|
})));
|
|
13173
13173
|
}
|
|
13174
13174
|
unmount() {
|
|
13175
13175
|
var t, e;
|
|
13176
|
-
ao(this, vn)._--, x(this, vn) === 0 && ((t = x(this, Tr)) == null || t.call(this),
|
|
13176
|
+
ao(this, vn)._--, x(this, vn) === 0 && ((t = x(this, Tr)) == null || t.call(this), V(this, Tr, void 0), (e = x(this, Ar)) == null || e.call(this), V(this, Ar, void 0));
|
|
13177
13177
|
}
|
|
13178
13178
|
isFetching(t) {
|
|
13179
13179
|
return x(this, xe).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
@@ -13302,7 +13302,7 @@ var xe, mn, gn, Or, xr, vn, Tr, Ar, nd, l5 = (nd = class {
|
|
|
13302
13302
|
return x(this, gn);
|
|
13303
13303
|
}
|
|
13304
13304
|
setDefaultOptions(t) {
|
|
13305
|
-
|
|
13305
|
+
V(this, gn, t);
|
|
13306
13306
|
}
|
|
13307
13307
|
setQueryDefaults(t, e) {
|
|
13308
13308
|
x(this, Or).set(Ri(t), {
|
|
@@ -13384,7 +13384,7 @@ var xe, mn, gn, Or, xr, vn, Tr, Ar, nd, l5 = (nd = class {
|
|
|
13384
13384
|
q(this, Bn, void 0);
|
|
13385
13385
|
q(this, bn, void 0);
|
|
13386
13386
|
q(this, Mr, /* @__PURE__ */ new Set());
|
|
13387
|
-
this.options = n,
|
|
13387
|
+
this.options = n, V(this, Ze, e), V(this, Pt, null), V(this, yn, Qa()), this.options.experimental_prefetchInRender || x(this, yn).reject(
|
|
13388
13388
|
new Error("experimental_prefetchInRender feature flag is not enabled")
|
|
13389
13389
|
), this.bindMethods(), this.setOptions(n);
|
|
13390
13390
|
}
|
|
@@ -13437,7 +13437,7 @@ var xe, mn, gn, Or, xr, vn, Tr, Ar, nd, l5 = (nd = class {
|
|
|
13437
13437
|
}
|
|
13438
13438
|
getOptimisticResult(e) {
|
|
13439
13439
|
const n = x(this, Ze).getQueryCache().build(x(this, Ze), e), r = this.createResult(n, e);
|
|
13440
|
-
return f5(this, r) && (
|
|
13440
|
+
return f5(this, r) && (V(this, ze, r), V(this, Pr, this.options), V(this, Fn, x(this, ne).state)), r;
|
|
13441
13441
|
}
|
|
13442
13442
|
getCurrentResult() {
|
|
13443
13443
|
return x(this, ze);
|
|
@@ -13490,9 +13490,9 @@ var xe, mn, gn, Or, xr, vn, Tr, Ar, nd, l5 = (nd = class {
|
|
|
13490
13490
|
g = x(this, Lr);
|
|
13491
13491
|
else
|
|
13492
13492
|
try {
|
|
13493
|
-
|
|
13493
|
+
V(this, Ii, n.select), g = n.select(d.data), g = Ka(o == null ? void 0 : o.data, g, n), V(this, Lr, g), V(this, Pt, null);
|
|
13494
13494
|
} catch (T) {
|
|
13495
|
-
|
|
13495
|
+
V(this, Pt, T);
|
|
13496
13496
|
}
|
|
13497
13497
|
else
|
|
13498
13498
|
g = d.data;
|
|
@@ -13505,9 +13505,9 @@ var xe, mn, gn, Or, xr, vn, Tr, Ar, nd, l5 = (nd = class {
|
|
|
13505
13505
|
x(this, Rr)
|
|
13506
13506
|
) : n.placeholderData, n.select && T !== void 0)
|
|
13507
13507
|
try {
|
|
13508
|
-
T = n.select(T),
|
|
13508
|
+
T = n.select(T), V(this, Pt, null);
|
|
13509
13509
|
} catch (P) {
|
|
13510
|
-
|
|
13510
|
+
V(this, Pt, P);
|
|
13511
13511
|
}
|
|
13512
13512
|
T !== void 0 && (b = "success", g = Ka(
|
|
13513
13513
|
o == null ? void 0 : o.data,
|
|
@@ -13516,7 +13516,7 @@ var xe, mn, gn, Or, xr, vn, Tr, Ar, nd, l5 = (nd = class {
|
|
|
13516
13516
|
), f = !0);
|
|
13517
13517
|
}
|
|
13518
13518
|
x(this, Pt) && (p = x(this, Pt), g = x(this, Lr), h = Date.now(), b = "error");
|
|
13519
|
-
const y = d.fetchStatus === "fetching", _ = b === "pending", v = b === "error", S = _ && y,
|
|
13519
|
+
const y = d.fetchStatus === "fetching", _ = b === "pending", v = b === "error", S = _ && y, E = g !== void 0, w = {
|
|
13520
13520
|
status: b,
|
|
13521
13521
|
fetchStatus: d.fetchStatus,
|
|
13522
13522
|
isPending: _,
|
|
@@ -13535,10 +13535,10 @@ var xe, mn, gn, Or, xr, vn, Tr, Ar, nd, l5 = (nd = class {
|
|
|
13535
13535
|
isFetchedAfterMount: d.dataUpdateCount > l.dataUpdateCount || d.errorUpdateCount > l.errorUpdateCount,
|
|
13536
13536
|
isFetching: y,
|
|
13537
13537
|
isRefetching: y && !_,
|
|
13538
|
-
isLoadingError: v && !
|
|
13538
|
+
isLoadingError: v && !E,
|
|
13539
13539
|
isPaused: d.fetchStatus === "paused",
|
|
13540
13540
|
isPlaceholderData: f,
|
|
13541
|
-
isRefetchError: v &&
|
|
13541
|
+
isRefetchError: v && E,
|
|
13542
13542
|
isStale: Nc(e, n),
|
|
13543
13543
|
refetch: this.refetch,
|
|
13544
13544
|
promise: x(this, yn)
|
|
@@ -13547,7 +13547,7 @@ var xe, mn, gn, Or, xr, vn, Tr, Ar, nd, l5 = (nd = class {
|
|
|
13547
13547
|
const T = (A) => {
|
|
13548
13548
|
w.status === "error" ? A.reject(w.error) : w.data !== void 0 && A.resolve(w.data);
|
|
13549
13549
|
}, P = () => {
|
|
13550
|
-
const A =
|
|
13550
|
+
const A = V(this, yn, w.promise = Qa());
|
|
13551
13551
|
T(A);
|
|
13552
13552
|
}, L = x(this, yn);
|
|
13553
13553
|
switch (L.status) {
|
|
@@ -13566,9 +13566,9 @@ var xe, mn, gn, Or, xr, vn, Tr, Ar, nd, l5 = (nd = class {
|
|
|
13566
13566
|
}
|
|
13567
13567
|
updateResult(e) {
|
|
13568
13568
|
const n = x(this, ze), r = this.createResult(x(this, ne), this.options);
|
|
13569
|
-
if (
|
|
13569
|
+
if (V(this, Fn, x(this, ne).state), V(this, Pr, this.options), x(this, Fn).data !== void 0 && V(this, Rr, x(this, ne)), Wa(r, n))
|
|
13570
13570
|
return;
|
|
13571
|
-
|
|
13571
|
+
V(this, ze, r);
|
|
13572
13572
|
const i = {}, o = () => {
|
|
13573
13573
|
if (!n)
|
|
13574
13574
|
return !0;
|
|
@@ -13604,27 +13604,27 @@ var xe, mn, gn, Or, xr, vn, Tr, Ar, nd, l5 = (nd = class {
|
|
|
13604
13604
|
if (Gn || x(this, ze).isStale || !Ga(e))
|
|
13605
13605
|
return;
|
|
13606
13606
|
const r = _h(x(this, ze).dataUpdatedAt, e) + 1;
|
|
13607
|
-
|
|
13607
|
+
V(this, jn, setTimeout(() => {
|
|
13608
13608
|
x(this, ze).isStale || this.updateResult();
|
|
13609
13609
|
}, r));
|
|
13610
13610
|
}, ji = new WeakSet(), Xa = function() {
|
|
13611
13611
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(x(this, ne)) : this.options.refetchInterval) ?? !1;
|
|
13612
13612
|
}, Bi = new WeakSet(), Ya = function(e) {
|
|
13613
|
-
te(this, Ui, nc).call(this),
|
|
13613
|
+
te(this, Ui, nc).call(this), V(this, bn, e), !(Gn || vt(this.options.enabled, x(this, ne)) === !1 || !Ga(x(this, bn)) || x(this, bn) === 0) && V(this, Bn, setInterval(() => {
|
|
13614
13614
|
(this.options.refetchIntervalInBackground || Dc.isFocused()) && te(this, Vn, di).call(this);
|
|
13615
13615
|
}, x(this, bn)));
|
|
13616
13616
|
}, Vi = new WeakSet(), ec = function() {
|
|
13617
13617
|
te(this, Fi, Ja).call(this), te(this, Bi, Ya).call(this, te(this, ji, Xa).call(this));
|
|
13618
13618
|
}, Hi = new WeakSet(), tc = function() {
|
|
13619
|
-
x(this, jn) && (clearTimeout(x(this, jn)),
|
|
13619
|
+
x(this, jn) && (clearTimeout(x(this, jn)), V(this, jn, void 0));
|
|
13620
13620
|
}, Ui = new WeakSet(), nc = function() {
|
|
13621
|
-
x(this, Bn) && (clearInterval(x(this, Bn)),
|
|
13621
|
+
x(this, Bn) && (clearInterval(x(this, Bn)), V(this, Bn, void 0));
|
|
13622
13622
|
}, $i = new WeakSet(), rc = function() {
|
|
13623
13623
|
const e = x(this, Ze).getQueryCache().build(x(this, Ze), this.options);
|
|
13624
13624
|
if (e === x(this, ne))
|
|
13625
13625
|
return;
|
|
13626
13626
|
const n = x(this, ne);
|
|
13627
|
-
|
|
13627
|
+
V(this, ne, e), V(this, Ni, e.state), this.hasListeners() && (n == null || n.removeObserver(this), e.addObserver(this));
|
|
13628
13628
|
}, bs = new WeakSet(), Ph = function(e) {
|
|
13629
13629
|
Ne.batch(() => {
|
|
13630
13630
|
e.listeners && this.listeners.forEach((n) => {
|
|
@@ -13671,7 +13671,7 @@ var Lh = I.createContext(
|
|
|
13671
13671
|
children: e
|
|
13672
13672
|
}) => (I.useEffect(() => (t.mount(), () => {
|
|
13673
13673
|
t.unmount();
|
|
13674
|
-
}), [t]), /* @__PURE__ */
|
|
13674
|
+
}), [t]), /* @__PURE__ */ C(Lh.Provider, { value: t, children: e })), Rh = I.createContext(!1), m5 = () => I.useContext(Rh);
|
|
13675
13675
|
Rh.Provider;
|
|
13676
13676
|
function g5() {
|
|
13677
13677
|
let t = !1;
|
|
@@ -13771,7 +13771,7 @@ async function A5(t) {
|
|
|
13771
13771
|
})).data.data;
|
|
13772
13772
|
}
|
|
13773
13773
|
function P5() {
|
|
13774
|
-
const [t, e] =
|
|
13774
|
+
const [t, e] = J(""), { setLMSData: n, setLoading: r } = As(), { data: i, isLoading: o } = Mh({
|
|
13775
13775
|
queryKey: ["lms-data", t],
|
|
13776
13776
|
queryFn: () => A5(t),
|
|
13777
13777
|
enabled: !!t,
|
|
@@ -13968,13 +13968,13 @@ function ab(t) {
|
|
|
13968
13968
|
if (S === K5 || S === Y5 || S === rb)
|
|
13969
13969
|
return c(h, b, y);
|
|
13970
13970
|
if (g) {
|
|
13971
|
-
var
|
|
13972
|
-
if (!
|
|
13971
|
+
var E = g[S];
|
|
13972
|
+
if (!E) {
|
|
13973
13973
|
var m = k5(h);
|
|
13974
|
-
m && (
|
|
13974
|
+
m && (E = g[m]);
|
|
13975
13975
|
}
|
|
13976
|
-
if (
|
|
13977
|
-
return
|
|
13976
|
+
if (E)
|
|
13977
|
+
return E(h, b, y);
|
|
13978
13978
|
}
|
|
13979
13979
|
return !1;
|
|
13980
13980
|
};
|
|
@@ -14421,16 +14421,16 @@ class fb {
|
|
|
14421
14421
|
}
|
|
14422
14422
|
if (b > h && b >= s) {
|
|
14423
14423
|
let y = f * h, _ = g * h, v, S = -1;
|
|
14424
|
-
const
|
|
14424
|
+
const E = ((d / u | 0) << 5) + (n + 1) + this.points.length;
|
|
14425
14425
|
for (const m of p) {
|
|
14426
14426
|
const w = m * u;
|
|
14427
14427
|
if (c[w + Tn] <= n)
|
|
14428
14428
|
continue;
|
|
14429
14429
|
c[w + Tn] = n;
|
|
14430
14430
|
const O = c[w + sn];
|
|
14431
|
-
y += c[w] * O, _ += c[w + 1] * O, c[w + la] =
|
|
14431
|
+
y += c[w] * O, _ += c[w + 1] * O, c[w + la] = E, o && (v || (v = this._map(c, d, !0), S = this.clusterProps.length, this.clusterProps.push(v)), o(v, this._map(c, w)));
|
|
14432
14432
|
}
|
|
14433
|
-
c[d + la] =
|
|
14433
|
+
c[d + la] = E, l.push(y / b, _ / b, 1 / 0, E, -1, b), o && l.push(S);
|
|
14434
14434
|
} else {
|
|
14435
14435
|
for (let y = 0; y < u; y++)
|
|
14436
14436
|
l.push(c[d + y]);
|
|
@@ -14840,23 +14840,23 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
14840
14840
|
onSubmit: c
|
|
14841
14841
|
}) => {
|
|
14842
14842
|
var h;
|
|
14843
|
-
const { logo: l = "default" } =
|
|
14844
|
-
return /* @__PURE__ */ N("div", { className:
|
|
14843
|
+
const { logo: l = "default" } = _e(), { isLoading: u, lmsData: d } = As(), f = (h = d == null ? void 0 : d.location) == null ? void 0 : h.what3words, g = !!(f != null && f.id), p = Db[l];
|
|
14844
|
+
return /* @__PURE__ */ N("div", { className: ee(Ot.root, e), children: [
|
|
14845
14845
|
/* @__PURE__ */ N("div", { className: Ot.header, children: [
|
|
14846
14846
|
/* @__PURE__ */ N("div", { className: Ot.titleContainer, children: [
|
|
14847
|
-
u ? /* @__PURE__ */
|
|
14848
|
-
u ? /* @__PURE__ */
|
|
14847
|
+
u ? /* @__PURE__ */ C(et, { circle: !0, width: 40, height: 40 }) : /* @__PURE__ */ C("div", { className: Ot.icon, children: /* @__PURE__ */ C(p, {}) }),
|
|
14848
|
+
u ? /* @__PURE__ */ C(et, { width: 200 }) : /* @__PURE__ */ C("span", { className: Ot.title, children: o || "{{ properties.point.name }}" })
|
|
14849
14849
|
] }),
|
|
14850
|
-
/* @__PURE__ */
|
|
14850
|
+
/* @__PURE__ */ C("div", { className: Ot.close, children: /* @__PURE__ */ C(Hr, { position: "relative", onClick: s }) })
|
|
14851
14851
|
] }),
|
|
14852
14852
|
/* @__PURE__ */ N("div", { className: Ot.description, children: [
|
|
14853
|
-
u ? /* @__PURE__ */
|
|
14853
|
+
u ? /* @__PURE__ */ C(et, { width: 300 }) : (r == null ? void 0 : r.full_address) || "{{ properties.point.location.full_address }}",
|
|
14854
14854
|
" ",
|
|
14855
|
-
u ? /* @__PURE__ */
|
|
14855
|
+
u ? /* @__PURE__ */ C(et, { width: 300 }) : i || "{{ properties.point.location_name }}"
|
|
14856
14856
|
] }),
|
|
14857
|
-
u ? /* @__PURE__ */
|
|
14857
|
+
u ? /* @__PURE__ */ C(et, { width: 150 }) : g && /* @__PURE__ */ C(bf, { what3words: f }),
|
|
14858
14858
|
/* @__PURE__ */ N("div", { className: Ot.actions, children: [
|
|
14859
|
-
/* @__PURE__ */
|
|
14859
|
+
/* @__PURE__ */ C(
|
|
14860
14860
|
lt,
|
|
14861
14861
|
{
|
|
14862
14862
|
id: cp,
|
|
@@ -14864,7 +14864,7 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
14864
14864
|
className: Ot.submit,
|
|
14865
14865
|
disabled: u,
|
|
14866
14866
|
onClick: c,
|
|
14867
|
-
children: t ? "{ choose }" : /* @__PURE__ */
|
|
14867
|
+
children: t ? "{ choose }" : /* @__PURE__ */ C(zt, { keyName: "choose", ns: "common" })
|
|
14868
14868
|
}
|
|
14869
14869
|
),
|
|
14870
14870
|
!n && /* @__PURE__ */ N(
|
|
@@ -14877,8 +14877,8 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
14877
14877
|
disabled: u,
|
|
14878
14878
|
onClick: a,
|
|
14879
14879
|
children: [
|
|
14880
|
-
t ? "{ details }" : /* @__PURE__ */
|
|
14881
|
-
/* @__PURE__ */
|
|
14880
|
+
t ? "{ details }" : /* @__PURE__ */ C(zt, { keyName: "details", ns: "common" }),
|
|
14881
|
+
/* @__PURE__ */ C(Rc, {})
|
|
14882
14882
|
]
|
|
14883
14883
|
}
|
|
14884
14884
|
)
|
|
@@ -14892,11 +14892,11 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
14892
14892
|
point: i,
|
|
14893
14893
|
setMarkerRef: o
|
|
14894
14894
|
}) => {
|
|
14895
|
-
const [s, a] =
|
|
14895
|
+
const [s, a] = J(!1), { hideDetails: c, iconType: l, palette: u } = _e(), d = B(null), { closeSamePoints: f } = It(), g = ut((O) => O.location), p = (u == null ? void 0 : u.primary) || "#fc0", h = l === "omni-llama" ? Ye.PinLlama : Ye.PinOmnic, b = !!i && (g == null ? void 0 : g.uid) === i.uid, y = Zn("screenSm"), { isIdle: _ } = Y(), v = wc({ isSelectedPoint: b }), S = _ && b && v && s;
|
|
14896
14896
|
j(() => {
|
|
14897
14897
|
d.current && a(d.current.checkVisibility() ?? !1);
|
|
14898
14898
|
}, [i]);
|
|
14899
|
-
const
|
|
14899
|
+
const E = we(() => {
|
|
14900
14900
|
let O;
|
|
14901
14901
|
if (i.type === 30)
|
|
14902
14902
|
switch (l) {
|
|
@@ -14924,7 +14924,7 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
14924
14924
|
[i.location.latitude, i.location.longitude]
|
|
14925
14925
|
);
|
|
14926
14926
|
return /* @__PURE__ */ N(wt, { children: [
|
|
14927
|
-
/* @__PURE__ */
|
|
14927
|
+
/* @__PURE__ */ C(
|
|
14928
14928
|
nf,
|
|
14929
14929
|
{
|
|
14930
14930
|
ref: (O) => {
|
|
@@ -14935,11 +14935,11 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
14935
14935
|
onClick: () => {
|
|
14936
14936
|
f(), n(i);
|
|
14937
14937
|
},
|
|
14938
|
-
children: /* @__PURE__ */
|
|
14938
|
+
children: /* @__PURE__ */ C("span", { dangerouslySetInnerHTML: { __html: E } })
|
|
14939
14939
|
},
|
|
14940
14940
|
i.uid
|
|
14941
14941
|
),
|
|
14942
|
-
S && !y && /* @__PURE__ */
|
|
14942
|
+
S && !y && /* @__PURE__ */ C(rf, { anchor: d.current || void 0, onCloseClick: t, children: /* @__PURE__ */ C(
|
|
14943
14943
|
Nb,
|
|
14944
14944
|
{
|
|
14945
14945
|
...i,
|
|
@@ -14952,15 +14952,15 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
14952
14952
|
) })
|
|
14953
14953
|
] });
|
|
14954
14954
|
}, Fb = ({ handleCloseClick: t, points: e, ...n }) => {
|
|
14955
|
-
const { setSamePoints: r } = It(), { onSamePointsClusterClick: i } =
|
|
14955
|
+
const { setSamePoints: r } = It(), { onSamePointsClusterClick: i } = _e(), o = Wi(), s = we(() => (g, p) => {
|
|
14956
14956
|
if (!p)
|
|
14957
14957
|
return;
|
|
14958
14958
|
t();
|
|
14959
14959
|
const h = p.markers ?? [], b = h.map((S) => {
|
|
14960
|
-
const
|
|
14961
|
-
if (!
|
|
14960
|
+
const E = S.position;
|
|
14961
|
+
if (!E)
|
|
14962
14962
|
return { lat: NaN, lng: NaN };
|
|
14963
|
-
const m = typeof
|
|
14963
|
+
const m = typeof E.lat == "number" ? E.lat : E.lat(), w = typeof E.lng == "number" ? E.lng : E.lng();
|
|
14964
14964
|
return { lat: m, lng: w };
|
|
14965
14965
|
});
|
|
14966
14966
|
if (!b.length)
|
|
@@ -14968,15 +14968,15 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
14968
14968
|
const { lat: y, lng: _ } = b[0];
|
|
14969
14969
|
if (b.every((S) => S.lat === y && S.lng === _)) {
|
|
14970
14970
|
const S = e.filter(
|
|
14971
|
-
({ location: { latitude:
|
|
14971
|
+
({ location: { latitude: E, longitude: m } }) => E === y && m === _
|
|
14972
14972
|
);
|
|
14973
14973
|
r(S), i == null || i(S);
|
|
14974
14974
|
return;
|
|
14975
14975
|
}
|
|
14976
14976
|
if (o instanceof google.maps.Map) {
|
|
14977
14977
|
const S = new google.maps.LatLngBounds();
|
|
14978
|
-
for (const
|
|
14979
|
-
const m =
|
|
14978
|
+
for (const E of h) {
|
|
14979
|
+
const m = E.position;
|
|
14980
14980
|
if (!m)
|
|
14981
14981
|
continue;
|
|
14982
14982
|
const w = (typeof m.lat == "number", m);
|
|
@@ -14993,13 +14993,13 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
14993
14993
|
zIndex: g
|
|
14994
14994
|
});
|
|
14995
14995
|
}
|
|
14996
|
-
}), []), c =
|
|
14996
|
+
}), []), c = B(
|
|
14997
14997
|
new Cb({
|
|
14998
14998
|
renderer: a,
|
|
14999
14999
|
map: null,
|
|
15000
15000
|
onClusterClick: s
|
|
15001
15001
|
})
|
|
15002
|
-
), l =
|
|
15002
|
+
), l = B([]), [u, d] = J([]);
|
|
15003
15003
|
j(() => {
|
|
15004
15004
|
d([]), c.current.clearMarkers();
|
|
15005
15005
|
}, [e, o]), j(() => {
|
|
@@ -15010,9 +15010,9 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15010
15010
|
function f(g) {
|
|
15011
15011
|
u.length || d(g);
|
|
15012
15012
|
}
|
|
15013
|
-
return /* @__PURE__ */
|
|
15013
|
+
return /* @__PURE__ */ C(wt, { children: e.map((g, p) => {
|
|
15014
15014
|
const h = p === 0, b = p === e.length - 1;
|
|
15015
|
-
return h && (l.current = []), /* @__PURE__ */
|
|
15015
|
+
return h && (l.current = []), /* @__PURE__ */ C(
|
|
15016
15016
|
Ib,
|
|
15017
15017
|
{
|
|
15018
15018
|
point: g,
|
|
@@ -15027,7 +15027,7 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15027
15027
|
}) });
|
|
15028
15028
|
}, jb = dt(Fb), Bb = (t) => {
|
|
15029
15029
|
const e = It(_m);
|
|
15030
|
-
return /* @__PURE__ */
|
|
15030
|
+
return /* @__PURE__ */ C(jb, { points: e, ...t });
|
|
15031
15031
|
}, Vb = dt(Bb), Fh = (t) => /* @__PURE__ */ I.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 42, height: 42, fill: "none", viewBox: "0 0 42 42", ...t }, /* @__PURE__ */ I.createElement("rect", { width: 42, height: 42, fill: "#fff", rx: 21 }), /* @__PURE__ */ I.createElement("path", { fill: "currentcolor", fillRule: "evenodd", d: "M31.003 28V17.766a3 3 0 0 0-1.579-2.643l-7.003-3.765a3 3 0 0 0-2.842 0l-7.003 3.765a3 3 0 0 0-1.58 2.643V28a3 3 0 0 0 3 3h14.008a3 3 0 0 0 3-3Zm-5.919 1h2.92a1 1 0 0 0 1-1V17.766a1 1 0 0 0-.527-.881l-7.003-3.766a1 1 0 0 0-.948 0l-7.003 3.766a1 1 0 0 0-.527.88v10.237a1 1 0 0 0 1 1h2.92a2.513 2.513 0 0 1-.05-.5v-7.606a2.5 2.5 0 0 1 2.5-2.5h3.268a2.5 2.5 0 0 1 2.5 2.5V28.5c0 .171-.017.338-.05.5Zm-2.426 0a.5.5 0 0 0 .476-.499v-7.606a.5.5 0 0 0-.5-.5h-3.269a.5.5 0 0 0-.5.5V28.5a.5.5 0 0 0 .476.5h3.317Z", clipRule: "evenodd" }), /* @__PURE__ */ I.createElement("rect", { width: 41, height: 41, x: 0.5, y: 0.5, stroke: "#1D3665", strokeOpacity: 0.1, rx: 20.5 })), Hb = "DeliveryBalloon-module__root__Nu90iy", Ub = "DeliveryBalloon-module__details__eqUTaI", $b = "DeliveryBalloon-module__wh__1lJtLN", zb = "DeliveryBalloon-module__header__JVdyxN", qb = "DeliveryBalloon-module__title__-zKKCt", Gb = "DeliveryBalloon-module__description__no5-ki", Wb = "DeliveryBalloon-module__actions__C-N0H-", Zb = "DeliveryBalloon-module__errorVariant__e6uhZl", Kb = "DeliveryBalloon-module__logo__62gC5h", Ut = {
|
|
15032
15032
|
root: Hb,
|
|
15033
15033
|
details: Ub,
|
|
@@ -15048,33 +15048,33 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15048
15048
|
onDetails: s,
|
|
15049
15049
|
variant: a
|
|
15050
15050
|
}) => {
|
|
15051
|
-
const { onWarehouseSelect: c, warehouseSelection: l } =
|
|
15052
|
-
return l ? t ? "{ courier_balloon.warehouse_title }" : /* @__PURE__ */
|
|
15053
|
-
}(), h = t ? "{ courier_balloon.error_title }" : /* @__PURE__ */
|
|
15051
|
+
const { onWarehouseSelect: c, warehouseSelection: l } = _e(), { setWarehousePoint: u, warehousePoint: d } = Ie(), f = a === "error", g = a === "default", p = /* @__PURE__ */ function() {
|
|
15052
|
+
return l ? t ? "{ courier_balloon.warehouse_title }" : /* @__PURE__ */ C(zt, { keyName: "warehouse_title", ns: "courier_balloon" }) : t ? "{ courier_balloon.title }" : /* @__PURE__ */ C(zt, { keyName: "title", ns: "courier_balloon" });
|
|
15053
|
+
}(), h = t ? "{ courier_balloon.error_title }" : /* @__PURE__ */ C(zt, { keyName: "error_title", ns: "courier_balloon" }), b = t ? "{ courier_balloon.error_description }" : /* @__PURE__ */ C(zt, { keyName: "error_description", ns: "courier_balloon" });
|
|
15054
15054
|
function y() {
|
|
15055
15055
|
d && (c == null || c(d), u(null));
|
|
15056
15056
|
}
|
|
15057
15057
|
const { label: _, onClick: v } = l ? {
|
|
15058
15058
|
onClick: y,
|
|
15059
|
-
label: t ? "{ select }" : /* @__PURE__ */
|
|
15059
|
+
label: t ? "{ select }" : /* @__PURE__ */ C(zt, { keyName: "select", ns: "common" })
|
|
15060
15060
|
} : {
|
|
15061
15061
|
onClick: s,
|
|
15062
|
-
label: t ? "{ details }" : /* @__PURE__ */
|
|
15062
|
+
label: t ? "{ details }" : /* @__PURE__ */ C(zt, { keyName: "details", ns: "common" })
|
|
15063
15063
|
};
|
|
15064
|
-
return /* @__PURE__ */ N("div", { className:
|
|
15064
|
+
return /* @__PURE__ */ N("div", { className: ee(Ut.root, n, Ut[`${a}Variant`]), children: [
|
|
15065
15065
|
/* @__PURE__ */ N("div", { className: Ut.header, children: [
|
|
15066
|
-
/* @__PURE__ */
|
|
15067
|
-
/* @__PURE__ */
|
|
15068
|
-
r && /* @__PURE__ */
|
|
15066
|
+
/* @__PURE__ */ C(Fh, { className: Ut.logo }),
|
|
15067
|
+
/* @__PURE__ */ C("span", { className: Ut.title, children: f ? h : p }),
|
|
15068
|
+
r && /* @__PURE__ */ C(Hr, { onClick: o })
|
|
15069
15069
|
] }),
|
|
15070
|
-
/* @__PURE__ */
|
|
15071
|
-
g && (!i || l) && /* @__PURE__ */
|
|
15070
|
+
/* @__PURE__ */ C("div", { className: Ut.description, children: f ? b : e || "{{ properties.address }}" }),
|
|
15071
|
+
g && (!i || l) && /* @__PURE__ */ C("div", { className: Ut.actions, children: /* @__PURE__ */ C(
|
|
15072
15072
|
lt,
|
|
15073
15073
|
{
|
|
15074
15074
|
id: cd,
|
|
15075
15075
|
as: "button",
|
|
15076
15076
|
variant: "primary",
|
|
15077
|
-
className:
|
|
15077
|
+
className: ee(Ut.details, l ? Ut.wh : ""),
|
|
15078
15078
|
onClick: v,
|
|
15079
15079
|
children: _
|
|
15080
15080
|
}
|
|
@@ -15083,11 +15083,11 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15083
15083
|
}, Jb = "Chip-module__root__zsoSyP", Xb = "Chip-module__active__BlTSFB", qu = {
|
|
15084
15084
|
root: Jb,
|
|
15085
15085
|
active: Xb
|
|
15086
|
-
}, Gu = ({ active: t, children: e, className: n, ...r }) => /* @__PURE__ */
|
|
15086
|
+
}, Gu = ({ active: t, children: e, className: n, ...r }) => /* @__PURE__ */ C(
|
|
15087
15087
|
"div",
|
|
15088
15088
|
{
|
|
15089
15089
|
...r,
|
|
15090
|
-
className:
|
|
15090
|
+
className: ee(qu.root, n, {
|
|
15091
15091
|
[qu.active]: t
|
|
15092
15092
|
}),
|
|
15093
15093
|
children: e
|
|
@@ -15096,7 +15096,7 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15096
15096
|
root: Yb
|
|
15097
15097
|
}, Wu = Cn(
|
|
15098
15098
|
({ className: t, inputRef: e, onBlur: n, onChange: r, onFocus: i, ...o }, s) => {
|
|
15099
|
-
const a =
|
|
15099
|
+
const a = B(null);
|
|
15100
15100
|
Kt(
|
|
15101
15101
|
s,
|
|
15102
15102
|
() => ({
|
|
@@ -15115,12 +15115,12 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15115
15115
|
[n, r, i]
|
|
15116
15116
|
);
|
|
15117
15117
|
const c = Vh(e, a);
|
|
15118
|
-
return /* @__PURE__ */
|
|
15118
|
+
return /* @__PURE__ */ C(
|
|
15119
15119
|
"textarea",
|
|
15120
15120
|
{
|
|
15121
15121
|
...o,
|
|
15122
15122
|
ref: c,
|
|
15123
|
-
className:
|
|
15123
|
+
className: ee(e6.root, t),
|
|
15124
15124
|
onBlur: n,
|
|
15125
15125
|
onFocus: i,
|
|
15126
15126
|
onChange: r
|
|
@@ -15162,7 +15162,7 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15162
15162
|
}, h6 = Cn(
|
|
15163
15163
|
({ classes: t, hideActions: e, location: n, onChange: r, onClose: i, onSubmit: o }, s) => {
|
|
15164
15164
|
var m;
|
|
15165
|
-
const { hideDeliveryTime: a, inputs: c, locale: l } =
|
|
15165
|
+
const { hideDeliveryTime: a, inputs: c, locale: l } = _e(), { t: u } = _t(["details_modal", "courier_balloon", "common"]), d = we(() => t6({ set: r, hideDeliveryTime: a }), [a, r]), [f, g] = J(!1), [p, h] = lc(d, {
|
|
15166
15166
|
comment: "",
|
|
15167
15167
|
delivery_time: "",
|
|
15168
15168
|
apartment_number: "",
|
|
@@ -15197,22 +15197,22 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15197
15197
|
h({ payload: w.target.value, type: "SET_APARTMENT_NUMBER" });
|
|
15198
15198
|
}, v = (w) => {
|
|
15199
15199
|
h({ payload: w.target.value, type: "SET_COMMENT" });
|
|
15200
|
-
}, S = ys(c == null ? void 0 : c.apartment),
|
|
15200
|
+
}, S = ys(c == null ? void 0 : c.apartment), E = ys(c == null ? void 0 : c.comment);
|
|
15201
15201
|
return /* @__PURE__ */ N(wt, { children: [
|
|
15202
|
-
/* @__PURE__ */ N("div", { className:
|
|
15203
|
-
/* @__PURE__ */
|
|
15202
|
+
/* @__PURE__ */ N("div", { className: ee(We.header, t == null ? void 0 : t.header), children: [
|
|
15203
|
+
/* @__PURE__ */ C(Hr, { onClick: i }),
|
|
15204
15204
|
/* @__PURE__ */ N("div", { className: We.title, children: [
|
|
15205
|
-
/* @__PURE__ */
|
|
15206
|
-
/* @__PURE__ */
|
|
15205
|
+
/* @__PURE__ */ C(Fh, { className: We.logo }),
|
|
15206
|
+
/* @__PURE__ */ C("span", { children: u("title", { ns: "courier_balloon" }) })
|
|
15207
15207
|
] })
|
|
15208
15208
|
] }),
|
|
15209
|
-
/* @__PURE__ */ N("div", { className:
|
|
15209
|
+
/* @__PURE__ */ N("div", { className: ee(We.content, t == null ? void 0 : t.content), children: [
|
|
15210
15210
|
/* @__PURE__ */ N("section", { className: We.section, children: [
|
|
15211
15211
|
/* @__PURE__ */ N("span", { children: [
|
|
15212
15212
|
u("address"),
|
|
15213
15213
|
":"
|
|
15214
15214
|
] }),
|
|
15215
|
-
/* @__PURE__ */
|
|
15215
|
+
/* @__PURE__ */ C("p", { children: n.address })
|
|
15216
15216
|
] }),
|
|
15217
15217
|
!a && /* @__PURE__ */ N("section", { className: We.section, children: [
|
|
15218
15218
|
/* @__PURE__ */ N("span", { children: [
|
|
@@ -15220,8 +15220,8 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15220
15220
|
":"
|
|
15221
15221
|
] }),
|
|
15222
15222
|
/* @__PURE__ */ N("div", { className: We.chips, children: [
|
|
15223
|
-
/* @__PURE__ */
|
|
15224
|
-
/* @__PURE__ */
|
|
15223
|
+
/* @__PURE__ */ C(Gu, { active: p.delivery_time === "8:00-13:00", onClick: y("8:00-13:00"), children: "8:00 - 13:00" }),
|
|
15224
|
+
/* @__PURE__ */ C(Gu, { active: p.delivery_time === "14:00-22:00", onClick: y("14:00-22:00"), children: "14:00 - 22:00" })
|
|
15225
15225
|
] })
|
|
15226
15226
|
] }),
|
|
15227
15227
|
/* @__PURE__ */ N("section", { className: We.section, children: [
|
|
@@ -15229,17 +15229,17 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15229
15229
|
u("apartment_number"),
|
|
15230
15230
|
":"
|
|
15231
15231
|
] }),
|
|
15232
|
-
/* @__PURE__ */
|
|
15232
|
+
/* @__PURE__ */ C(Wu, { ...S, rows: 1, onChange: _ })
|
|
15233
15233
|
] }),
|
|
15234
|
-
/* @__PURE__ */ N("section", { className:
|
|
15234
|
+
/* @__PURE__ */ N("section", { className: ee(We.section, We.commentSection), children: [
|
|
15235
15235
|
/* @__PURE__ */ N("span", { children: [
|
|
15236
15236
|
u("comment"),
|
|
15237
15237
|
":"
|
|
15238
15238
|
] }),
|
|
15239
|
-
/* @__PURE__ */
|
|
15239
|
+
/* @__PURE__ */ C(Wu, { ...E, className: We.comment, onChange: v })
|
|
15240
15240
|
] })
|
|
15241
15241
|
] }),
|
|
15242
|
-
/* @__PURE__ */
|
|
15242
|
+
/* @__PURE__ */ C("div", { className: ee(We.actions, { [We.actionsHidden]: e }), children: /* @__PURE__ */ C(
|
|
15243
15243
|
lt,
|
|
15244
15244
|
{
|
|
15245
15245
|
loading: f,
|
|
@@ -15264,12 +15264,12 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15264
15264
|
setOpenDetails: o
|
|
15265
15265
|
}) => {
|
|
15266
15266
|
var L;
|
|
15267
|
-
const [s, a] =
|
|
15267
|
+
const [s, a] = J(!1), [c, l] = J(!1), [u, d] = J({
|
|
15268
15268
|
...r,
|
|
15269
15269
|
comment: "",
|
|
15270
15270
|
delivery_time: "",
|
|
15271
15271
|
apartment_number: ""
|
|
15272
|
-
}), f =
|
|
15272
|
+
}), f = B(null), g = B(null), { warehouseSelection: p } = _e(), { warehousePoint: h } = Ie(), b = wc({ isSelectedPoint: !0 }), y = ((L = f.current) == null ? void 0 : L.checkVisibility()) ?? !1;
|
|
15273
15273
|
j(() => {
|
|
15274
15274
|
setTimeout(() => {
|
|
15275
15275
|
a(!0);
|
|
@@ -15290,7 +15290,7 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15290
15290
|
[u.coords]
|
|
15291
15291
|
), S = () => {
|
|
15292
15292
|
o == null || o(!0);
|
|
15293
|
-
},
|
|
15293
|
+
}, E = () => {
|
|
15294
15294
|
i == null || i(null);
|
|
15295
15295
|
}, m = we(() => hi(Ye.PinHome, "--owl-color-success"), []), w = async () => {
|
|
15296
15296
|
var A;
|
|
@@ -15303,7 +15303,7 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15303
15303
|
} finally {
|
|
15304
15304
|
l(!1);
|
|
15305
15305
|
}
|
|
15306
|
-
}, O = /* @__PURE__ */
|
|
15306
|
+
}, O = /* @__PURE__ */ C(
|
|
15307
15307
|
Qb,
|
|
15308
15308
|
{
|
|
15309
15309
|
...u,
|
|
@@ -15312,11 +15312,11 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15312
15312
|
variant: u.address ? "default" : "error",
|
|
15313
15313
|
className: Fe.balloon,
|
|
15314
15314
|
onDetails: S,
|
|
15315
|
-
onClose:
|
|
15315
|
+
onClose: E
|
|
15316
15316
|
}
|
|
15317
15317
|
), T = p ? !!h && y : b && !y, P = t ? !!u.apartment_number : !!u.apartment_number && !!u.delivery_time;
|
|
15318
15318
|
return /* @__PURE__ */ N(wt, { children: [
|
|
15319
|
-
/* @__PURE__ */
|
|
15319
|
+
/* @__PURE__ */ C(nf, { ref: f, position: v, children: /* @__PURE__ */ C("span", { dangerouslySetInnerHTML: { __html: m } }) }),
|
|
15320
15320
|
_ && /* @__PURE__ */ N(
|
|
15321
15321
|
bh,
|
|
15322
15322
|
{
|
|
@@ -15325,10 +15325,10 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15325
15325
|
submitLoading: c,
|
|
15326
15326
|
hideFooter: !u.address,
|
|
15327
15327
|
open: T,
|
|
15328
|
-
onDismiss:
|
|
15328
|
+
onDismiss: E,
|
|
15329
15329
|
onSubmitClick: w,
|
|
15330
15330
|
children: [
|
|
15331
|
-
u.address && /* @__PURE__ */
|
|
15331
|
+
u.address && /* @__PURE__ */ C(
|
|
15332
15332
|
jh,
|
|
15333
15333
|
{
|
|
15334
15334
|
ref: g,
|
|
@@ -15336,16 +15336,16 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15336
15336
|
classes: p6,
|
|
15337
15337
|
location: r,
|
|
15338
15338
|
onChange: d,
|
|
15339
|
-
onClose:
|
|
15339
|
+
onClose: E
|
|
15340
15340
|
}
|
|
15341
15341
|
),
|
|
15342
15342
|
u.address ? null : O
|
|
15343
15343
|
]
|
|
15344
15344
|
}
|
|
15345
15345
|
),
|
|
15346
|
-
!_ && T && /* @__PURE__ */
|
|
15346
|
+
!_ && T && /* @__PURE__ */ C(rf, { anchor: f.current || void 0, onCloseClick: E, children: O })
|
|
15347
15347
|
] });
|
|
15348
|
-
}, jc = () => /* @__PURE__ */
|
|
15348
|
+
}, jc = () => /* @__PURE__ */ C(wh, { children: /* @__PURE__ */ C(is, {}) });
|
|
15349
15349
|
async function g6() {
|
|
15350
15350
|
return (await Ae.request({
|
|
15351
15351
|
method: "GET",
|
|
@@ -15366,7 +15366,7 @@ function v6(t) {
|
|
|
15366
15366
|
});
|
|
15367
15367
|
}
|
|
15368
15368
|
const Bh = cc(null), y6 = ({ children: t }) => {
|
|
15369
|
-
const { gMapId: e, gMapKey: n, mapTheme: r } =
|
|
15369
|
+
const { gMapId: e, gMapKey: n, mapTheme: r } = _e(), i = !n || !e, { data: o, isFetching: s } = v6(i), a = o == null ? void 0 : o.key;
|
|
15370
15370
|
function c() {
|
|
15371
15371
|
var f, g, p;
|
|
15372
15372
|
switch (r) {
|
|
@@ -15387,7 +15387,7 @@ const Bh = cc(null), y6 = ({ children: t }) => {
|
|
|
15387
15387
|
}),
|
|
15388
15388
|
[u, l]
|
|
15389
15389
|
);
|
|
15390
|
-
return /* @__PURE__ */
|
|
15390
|
+
return /* @__PURE__ */ C(Bh.Provider, { value: d, children: s ? /* @__PURE__ */ C(jc, {}) : t });
|
|
15391
15391
|
}, Bc = () => {
|
|
15392
15392
|
const t = Zt(Bh);
|
|
15393
15393
|
if (!t)
|
|
@@ -15407,7 +15407,7 @@ const Bh = cc(null), y6 = ({ children: t }) => {
|
|
|
15407
15407
|
// TODO: Possibly deprecate this method
|
|
15408
15408
|
async setPlace(n, r, i) {
|
|
15409
15409
|
var c, l, u, d, f, g;
|
|
15410
|
-
const { map: o } =
|
|
15410
|
+
const { map: o } = Y.getState();
|
|
15411
15411
|
let s, a;
|
|
15412
15412
|
if (console.debug("[OmnicWidgetLocations::setDeliveryAdressPlace]", { value: n, types: r }), pl(n)) {
|
|
15413
15413
|
const p = await ml(n, e().mapKey, r);
|
|
@@ -15438,7 +15438,7 @@ const Bh = cc(null), y6 = ({ children: t }) => {
|
|
|
15438
15438
|
setPlaceSimple(n, r) {
|
|
15439
15439
|
var i, o;
|
|
15440
15440
|
if (r != null && r.withNavigation) {
|
|
15441
|
-
const { map: s } =
|
|
15441
|
+
const { map: s } = Y.getState();
|
|
15442
15442
|
Mt(s, "Map is not defined");
|
|
15443
15443
|
let a;
|
|
15444
15444
|
(i = n == null ? void 0 : n.geometry) != null && i.viewport ? a = n.geometry.viewport : (o = n == null ? void 0 : n.geometry) != null && o.location && (a = new google.maps.LatLngBounds(), a.extend(n.geometry.location)), a && (s.fitBounds(a), s.setZoom(12));
|
|
@@ -15446,7 +15446,7 @@ const Bh = cc(null), y6 = ({ children: t }) => {
|
|
|
15446
15446
|
t({ place: n });
|
|
15447
15447
|
}
|
|
15448
15448
|
})), _6 = ({ children: t, className: e, ...n }) => {
|
|
15449
|
-
const { disableDelivery: r, map: i, warehouseSelection: o } =
|
|
15449
|
+
const { disableDelivery: r, map: i, warehouseSelection: o } = _e(), { mapId: s } = Bc(), a = we(
|
|
15450
15450
|
() => {
|
|
15451
15451
|
var l, u;
|
|
15452
15452
|
return {
|
|
@@ -15460,7 +15460,7 @@ const Bh = cc(null), y6 = ({ children: t }) => {
|
|
|
15460
15460
|
const u = l.detail.latLng;
|
|
15461
15461
|
if (!u || r && !o)
|
|
15462
15462
|
return;
|
|
15463
|
-
|
|
15463
|
+
Y.getState().setDetailsOpen(!1), ut.getState().setSelectedLocation(null);
|
|
15464
15464
|
const d = [u.lat, u.lng];
|
|
15465
15465
|
console.debug("[OmnicLocationsWidget::mapClick]", d);
|
|
15466
15466
|
try {
|
|
@@ -15474,14 +15474,14 @@ const Bh = cc(null), y6 = ({ children: t }) => {
|
|
|
15474
15474
|
},
|
|
15475
15475
|
[r, o]
|
|
15476
15476
|
);
|
|
15477
|
-
return /* @__PURE__ */
|
|
15477
|
+
return /* @__PURE__ */ C(
|
|
15478
15478
|
tf,
|
|
15479
15479
|
{
|
|
15480
15480
|
disableDefaultUI: !0,
|
|
15481
15481
|
mapId: s,
|
|
15482
15482
|
defaultZoom: i == null ? void 0 : i.initialZoom,
|
|
15483
15483
|
defaultCenter: a,
|
|
15484
|
-
className:
|
|
15484
|
+
className: ee(Fe.root, e),
|
|
15485
15485
|
clickableIcons: !1,
|
|
15486
15486
|
minZoom: 4,
|
|
15487
15487
|
maxZoom: 20,
|
|
@@ -15510,11 +15510,11 @@ const Bh = cc(null), y6 = ({ children: t }) => {
|
|
|
15510
15510
|
});
|
|
15511
15511
|
}, E6 = (t) => {
|
|
15512
15512
|
const e = document.createElement("div");
|
|
15513
|
-
e.classList.add(Fe.mapControl), e.classList.add(Fe.geolocationControl), e.innerHTML = Yh(/* @__PURE__ */
|
|
15513
|
+
e.classList.add(Fe.mapControl), e.classList.add(Fe.geolocationControl), e.innerHTML = Yh(/* @__PURE__ */ C(S6, {})), t.controls[google.maps.ControlPosition.RIGHT_BOTTOM].push(e), e.addEventListener("click", () => {
|
|
15514
15514
|
jd();
|
|
15515
15515
|
});
|
|
15516
15516
|
}, O6 = ({ className: t }) => {
|
|
15517
|
-
const e = _n(), n =
|
|
15517
|
+
const e = _n(), n = Y(Bp), r = Y(zp), i = It(Bd), o = Ie(uc), s = Wi(), { lmsData: a } = As(), {
|
|
15518
15518
|
cityName: c,
|
|
15519
15519
|
countryAbbreviation: l,
|
|
15520
15520
|
disableGeolocation: u,
|
|
@@ -15524,13 +15524,13 @@ const Bh = cc(null), y6 = ({ children: t }) => {
|
|
|
15524
15524
|
onPointClick: p,
|
|
15525
15525
|
regionName: h,
|
|
15526
15526
|
skipPointInfo: b
|
|
15527
|
-
} =
|
|
15527
|
+
} = _e(), y = H(
|
|
15528
15528
|
(z) => {
|
|
15529
|
-
console.debug("[OmnicLocationsWidget::loadMap]", z),
|
|
15529
|
+
console.debug("[OmnicLocationsWidget::loadMap]", z), Y.getState().setMap(z), Y.getState().setLoaded(), g || (C6(z), u || E6(z));
|
|
15530
15530
|
},
|
|
15531
15531
|
[u, g]
|
|
15532
15532
|
), _ = H(() => {
|
|
15533
|
-
console.debug("[OmnicLocationsWidget::unmountMap]"),
|
|
15533
|
+
console.debug("[OmnicLocationsWidget::unmountMap]"), Y.getState().setMap(null);
|
|
15534
15534
|
}, []);
|
|
15535
15535
|
j(() => {
|
|
15536
15536
|
if (s)
|
|
@@ -15540,23 +15540,23 @@ const Bh = cc(null), y6 = ({ children: t }) => {
|
|
|
15540
15540
|
}, [s, y, _]);
|
|
15541
15541
|
const v = H(
|
|
15542
15542
|
(z) => {
|
|
15543
|
-
const Z = a == null ? void 0 : a.location.what3words,
|
|
15544
|
-
p == null || p(z,
|
|
15543
|
+
const Z = a == null ? void 0 : a.location.what3words, X = Z != null && Z.id ? Z : void 0;
|
|
15544
|
+
p == null || p(z, X);
|
|
15545
15545
|
},
|
|
15546
15546
|
[p, a]
|
|
15547
|
-
), S =
|
|
15547
|
+
), S = B(null), E = B(null), m = H(
|
|
15548
15548
|
(z) => {
|
|
15549
|
-
const Z = z.getSouthWest(),
|
|
15549
|
+
const Z = z.getSouthWest(), X = z.getNorthEast(), he = (ae) => Math.round(ae * 1e3) / 1e3, pe = `${he(Z.lat())}:${he(Z.lng())}:${he(X.lat())}:${he(X.lng())}`, me = JSON.stringify(e ?? {});
|
|
15550
15550
|
return `${pe}|${me}|${c ?? ""}|${l ?? ""}|${h ?? ""}`;
|
|
15551
15551
|
},
|
|
15552
15552
|
[c, l, e, h]
|
|
15553
15553
|
), w = H(() => {
|
|
15554
|
-
|
|
15554
|
+
Y.getState().setIdle(!0), n && (S.current && window.clearTimeout(S.current), S.current = window.setTimeout(() => {
|
|
15555
15555
|
const z = n.getBounds();
|
|
15556
15556
|
if (!z)
|
|
15557
15557
|
return;
|
|
15558
15558
|
const Z = m(z);
|
|
15559
|
-
|
|
15559
|
+
E.current !== Z && (E.current = Z, console.debug("[OmnicLocationsWidget::changeBounds]", z), It.getState().loadNext({
|
|
15560
15560
|
bounds: [
|
|
15561
15561
|
[z.getSouthWest().lat(), z.getNorthEast().lat()],
|
|
15562
15562
|
[z.getSouthWest().lng(), z.getNorthEast().lng()]
|
|
@@ -15575,7 +15575,7 @@ const Bh = cc(null), y6 = ({ children: t }) => {
|
|
|
15575
15575
|
Ie.getState().setDeliverPoint(null), ut.getState().setSelectedLocation(z);
|
|
15576
15576
|
}, []), T = H(() => {
|
|
15577
15577
|
console.debug("[OmnicLocationsWidget::tilesLoaded]");
|
|
15578
|
-
}, []), P =
|
|
15578
|
+
}, []), P = Y.getState().setDetailsOpen, { getLMSData: L } = P5(), A = (z) => {
|
|
15579
15579
|
if (L(z.code), b) {
|
|
15580
15580
|
v(z);
|
|
15581
15581
|
return;
|
|
@@ -15589,28 +15589,28 @@ const Bh = cc(null), y6 = ({ children: t }) => {
|
|
|
15589
15589
|
v(z), P(!1), O(null);
|
|
15590
15590
|
};
|
|
15591
15591
|
return /* @__PURE__ */ N(wt, { children: [
|
|
15592
|
-
/* @__PURE__ */ N("div", { className:
|
|
15592
|
+
/* @__PURE__ */ N("div", { className: ee(Fe.mapContainer, t), children: [
|
|
15593
15593
|
/* @__PURE__ */ N(
|
|
15594
15594
|
_6,
|
|
15595
15595
|
{
|
|
15596
15596
|
onIdle: w,
|
|
15597
15597
|
onTilesLoaded: T,
|
|
15598
15598
|
onBoundsChanged: () => {
|
|
15599
|
-
|
|
15599
|
+
Y.getState().setIdle(!1);
|
|
15600
15600
|
},
|
|
15601
15601
|
children: [
|
|
15602
|
-
o && /* @__PURE__ */
|
|
15602
|
+
o && /* @__PURE__ */ C(
|
|
15603
15603
|
m6,
|
|
15604
15604
|
{
|
|
15605
15605
|
hideDeliveryTime: d,
|
|
15606
15606
|
hideDetails: f,
|
|
15607
15607
|
point: o,
|
|
15608
|
-
setOpenDetails:
|
|
15608
|
+
setOpenDetails: Y.getState().setDetailsOpen,
|
|
15609
15609
|
setDeliveryPoint: Ie.getState().setDeliverPoint,
|
|
15610
15610
|
onPointClick: v
|
|
15611
15611
|
}
|
|
15612
15612
|
),
|
|
15613
|
-
/* @__PURE__ */
|
|
15613
|
+
/* @__PURE__ */ C(
|
|
15614
15614
|
Vb,
|
|
15615
15615
|
{
|
|
15616
15616
|
handleCloseClick: k,
|
|
@@ -15622,10 +15622,10 @@ const Bh = cc(null), y6 = ({ children: t }) => {
|
|
|
15622
15622
|
]
|
|
15623
15623
|
}
|
|
15624
15624
|
),
|
|
15625
|
-
(i || r) && /* @__PURE__ */
|
|
15625
|
+
(i || r) && /* @__PURE__ */ C(wh, { className: Fe.overlay, children: /* @__PURE__ */ C(is, {}) })
|
|
15626
15626
|
] }),
|
|
15627
|
-
/* @__PURE__ */
|
|
15628
|
-
/* @__PURE__ */
|
|
15627
|
+
/* @__PURE__ */ C(W4, { handleDetailsClick: F, handlePointClick: A }),
|
|
15628
|
+
/* @__PURE__ */ C(_4, { handleCloseClick: k, handleSubmitClick: G })
|
|
15629
15629
|
] });
|
|
15630
15630
|
}, x6 = dt(O6), T6 = (t) => ({
|
|
15631
15631
|
google: x6
|
|
@@ -15715,67 +15715,73 @@ const Hh = Ov().use(fv()).use(rv()).init({
|
|
|
15715
15715
|
}, [t]);
|
|
15716
15716
|
}, B6 = 500, lr = [];
|
|
15717
15717
|
function Uh(t = {}) {
|
|
15718
|
-
const { country: e,
|
|
15719
|
-
|
|
15720
|
-
const
|
|
15721
|
-
|
|
15722
|
-
}, []),
|
|
15723
|
-
|
|
15718
|
+
const { country: e, globalSearch: n } = _e(), { debounceMs: r = B6, onPlaceSelect: i, types: o } = t, s = n ? void 0 : e, a = bc("places"), [c, l] = J(""), [u, d] = J(lr), [f, g] = J(!1), p = we(() => o, [JSON.stringify(o)]), h = B(null), b = B(), y = B(!1), _ = B(i);
|
|
15719
|
+
_.current = i;
|
|
15720
|
+
const v = H(() => a ? (h.current || (h.current = new a.AutocompleteSessionToken()), h.current) : null, [a]), S = H(() => {
|
|
15721
|
+
h.current = null;
|
|
15722
|
+
}, []), E = H(() => {
|
|
15723
|
+
d(lr);
|
|
15724
15724
|
}, []);
|
|
15725
15725
|
j(() => {
|
|
15726
|
-
if (
|
|
15727
|
-
|
|
15726
|
+
if (y.current) {
|
|
15727
|
+
y.current = !1;
|
|
15728
15728
|
return;
|
|
15729
15729
|
}
|
|
15730
|
-
|
|
15731
|
-
d(
|
|
15730
|
+
if (!a || !c.trim()) {
|
|
15731
|
+
d((w) => w.length > 0 ? lr : w);
|
|
15732
|
+
return;
|
|
15733
|
+
}
|
|
15734
|
+
return clearTimeout(b.current), b.current = setTimeout(async () => {
|
|
15735
|
+
g(!0);
|
|
15732
15736
|
try {
|
|
15733
|
-
const
|
|
15734
|
-
input:
|
|
15735
|
-
...
|
|
15736
|
-
...
|
|
15737
|
-
...(
|
|
15738
|
-
}, { suggestions:
|
|
15739
|
-
var
|
|
15740
|
-
const
|
|
15737
|
+
const w = v(), O = {
|
|
15738
|
+
input: c,
|
|
15739
|
+
...w && { sessionToken: w },
|
|
15740
|
+
...s && { includedRegionCodes: [s] },
|
|
15741
|
+
...(p == null ? void 0 : p.length) && { includedPrimaryTypes: p }
|
|
15742
|
+
}, { suggestions: T } = await a.AutocompleteSuggestion.fetchAutocompleteSuggestions(O), P = T.filter((L) => L.placePrediction !== null).map((L) => {
|
|
15743
|
+
var k, F;
|
|
15744
|
+
const A = L.placePrediction;
|
|
15741
15745
|
return {
|
|
15742
|
-
placeId:
|
|
15743
|
-
mainText: ((
|
|
15744
|
-
secondaryText: ((
|
|
15745
|
-
description:
|
|
15746
|
+
placeId: A.placeId,
|
|
15747
|
+
mainText: ((k = A.mainText) == null ? void 0 : k.text) ?? "",
|
|
15748
|
+
secondaryText: ((F = A.secondaryText) == null ? void 0 : F.text) ?? "",
|
|
15749
|
+
description: A.text.text
|
|
15746
15750
|
};
|
|
15747
15751
|
});
|
|
15748
|
-
|
|
15749
|
-
} catch (
|
|
15750
|
-
console.error("[usePlaceAutocomplete] Failed to fetch suggestions:",
|
|
15752
|
+
d(P.length > 0 ? P : lr);
|
|
15753
|
+
} catch (w) {
|
|
15754
|
+
console.error("[usePlaceAutocomplete] Failed to fetch suggestions:", w), d(lr);
|
|
15751
15755
|
} finally {
|
|
15752
|
-
|
|
15756
|
+
g(!1);
|
|
15753
15757
|
}
|
|
15754
|
-
},
|
|
15755
|
-
}, [
|
|
15756
|
-
const
|
|
15757
|
-
async (
|
|
15758
|
-
var
|
|
15759
|
-
if (
|
|
15758
|
+
}, r), () => clearTimeout(b.current);
|
|
15759
|
+
}, [c, a, s, p, r, v]);
|
|
15760
|
+
const m = H(
|
|
15761
|
+
async (w) => {
|
|
15762
|
+
var O;
|
|
15763
|
+
if (a) {
|
|
15764
|
+
y.current = !0;
|
|
15760
15765
|
try {
|
|
15761
|
-
const
|
|
15762
|
-
(
|
|
15763
|
-
} catch (
|
|
15764
|
-
console.error("[usePlaceAutocomplete] Failed to fetch place details:",
|
|
15766
|
+
const T = new a.Place({ id: w }), P = await bm(T);
|
|
15767
|
+
(O = _.current) == null || O.call(_, P), S(), d(lr);
|
|
15768
|
+
} catch (T) {
|
|
15769
|
+
console.error("[usePlaceAutocomplete] Failed to fetch place details:", T);
|
|
15765
15770
|
}
|
|
15771
|
+
}
|
|
15766
15772
|
},
|
|
15767
|
-
[
|
|
15773
|
+
[a, S]
|
|
15768
15774
|
);
|
|
15769
15775
|
return we(
|
|
15770
15776
|
() => ({
|
|
15771
|
-
value:
|
|
15772
|
-
setValue:
|
|
15773
|
-
suggestions:
|
|
15774
|
-
isLoading:
|
|
15775
|
-
clearSuggestions:
|
|
15776
|
-
handleSelect:
|
|
15777
|
+
value: c,
|
|
15778
|
+
setValue: l,
|
|
15779
|
+
suggestions: u,
|
|
15780
|
+
isLoading: f,
|
|
15781
|
+
clearSuggestions: E,
|
|
15782
|
+
handleSelect: m
|
|
15777
15783
|
}),
|
|
15778
|
-
[
|
|
15784
|
+
[c, u, f, E, m]
|
|
15779
15785
|
);
|
|
15780
15786
|
}
|
|
15781
15787
|
const V6 = {
|
|
@@ -15795,10 +15801,10 @@ const V6 = {
|
|
|
15795
15801
|
t === "sharp" && Ts("--owl-radius", "0");
|
|
15796
15802
|
}, [t]);
|
|
15797
15803
|
}, z6 = ({ children: t }) => {
|
|
15798
|
-
const { cornersVariant: e, font: n, locale: r, palette: i, radius: o, startScreen: s } =
|
|
15799
|
-
return j6(n), N6(r), I6(i), F6(o), U6(s), $6(e), /* @__PURE__ */
|
|
15804
|
+
const { cornersVariant: e, font: n, locale: r, palette: i, radius: o, startScreen: s } = _e();
|
|
15805
|
+
return j6(n), N6(r), I6(i), F6(o), U6(s), $6(e), /* @__PURE__ */ C(wt, { children: t });
|
|
15800
15806
|
}, q6 = ({ children: t }) => {
|
|
15801
|
-
const { disableGeolocation: e, map: n } =
|
|
15807
|
+
const { disableGeolocation: e, map: n } = _e(), [r, i] = J(e), { loaded: o } = Y();
|
|
15802
15808
|
return Mt(n == null ? void 0 : n.center, "Map center is required"), Mt(n == null ? void 0 : n.initialZoom, "Map initial zoom is required"), j(() => {
|
|
15803
15809
|
!o || e || r || jd({
|
|
15804
15810
|
success: (s) => {
|
|
@@ -15810,16 +15816,16 @@ const V6 = {
|
|
|
15810
15816
|
});
|
|
15811
15817
|
}, [e, r, o, n]), t;
|
|
15812
15818
|
}, G6 = (t) => /* @__PURE__ */ I.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 28, fill: "none", viewBox: "0 0 24 28", ...t }, /* @__PURE__ */ I.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M24 11.777C24 4.052 17.606 0 12 0S0 4.052 0 11.777C0 16.915 3.994 22.334 12 28c8.006-5.666 12-11.085 12-16.224ZM12 16a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z", clipRule: "evenodd" })), W6 = () => {
|
|
15813
|
-
Mn.getState().toggle(!0),
|
|
15819
|
+
Mn.getState().toggle(!0), Y.getState().setDetailsOpen(!1), Ie.getState().setDeliverPoint(null), ut.getState().setSelectedLocation(null);
|
|
15814
15820
|
}, Z6 = "CurrentLocation-module__root__AeQCGT", K6 = "CurrentLocation-module__icon__459m9q", Q6 = "CurrentLocation-module__text__w-9v28", ua = {
|
|
15815
15821
|
root: Z6,
|
|
15816
15822
|
icon: K6,
|
|
15817
15823
|
text: Q6
|
|
15818
15824
|
}, $h = ({ className: t }) => {
|
|
15819
15825
|
const { t: e } = _t("current_location"), n = Ji(w6), { location: r } = ut(), o = (r == null ? void 0 : r.location.full_address) ?? (n == null ? void 0 : n.long_name) ?? e("choose_from_map");
|
|
15820
|
-
return /* @__PURE__ */ N("div", { role: "presentation", className:
|
|
15821
|
-
/* @__PURE__ */
|
|
15822
|
-
/* @__PURE__ */
|
|
15826
|
+
return /* @__PURE__ */ N("div", { role: "presentation", className: ee(ua.root, t), onClick: W6, children: [
|
|
15827
|
+
/* @__PURE__ */ C(G6, { className: ua.icon }),
|
|
15828
|
+
/* @__PURE__ */ C("span", { className: ua.text, children: o })
|
|
15823
15829
|
] });
|
|
15824
15830
|
}, J6 = (t) => /* @__PURE__ */ I.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 123, height: 32, fill: "none", viewBox: "0 0 123 32", ...t }, /* @__PURE__ */ I.createElement("path", { fill: "currentcolor", d: "M6.698 32a6.579 6.579 0 0 1-3.35-.889 6.718 6.718 0 0 1-2.443-2.4A6.285 6.285 0 0 1 0 25.422V6.578c0-1.215.302-2.311.905-3.29A6.718 6.718 0 0 1 3.35.889 6.579 6.579 0 0 1 6.698 0h19.188c1.207 0 2.308.296 3.304.889a6.72 6.72 0 0 1 2.444 2.4c.633.978.95 2.074.95 3.289v18.844a6.061 6.061 0 0 1-.95 3.29 6.72 6.72 0 0 1-2.444 2.4c-.996.592-2.097.888-3.304.888H6.698Zm.317-6.933h18.464V6.933H7.015v18.134ZM37.568 32V0h7.24l11.043 12.933L66.848 0h7.287v32h-7.06V10.533L55.85 23.69 44.582 10.578V32h-7.014Zm41.985 0V0h7.241l18.238 21.333V0h7.105v32h-7.241L86.568 10.578V32h-7.015Zm36.523 0V0H123v32h-6.924Z" })), X6 = (t) => /* @__PURE__ */ I.createElement("svg", { width: 119, height: 44, viewBox: "0 0 119 44", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ I.createElement("path", { d: "M4.70489 0.199253H0V13.4418H10.7452V10.0105H4.70489V0.199253Z", fill: "black" }), /* @__PURE__ */ I.createElement("path", { d: "M16.9359 0.199253H12.2287V13.4418H22.974V10.0105H16.9359V0.199253Z", fill: "black" }), /* @__PURE__ */ I.createElement("path", { d: "M27.9807 0.199253L23.6569 13.4418H28.3442L28.9701 10.913H32.5644L33.1703 13.4418H37.9766L33.6354 0.199253H27.9807ZM29.6775 8.00558L30.7881 3.41028L31.879 8.00558H29.6775Z", fill: "black" }), /* @__PURE__ */ I.createElement("path", { d: "M48.1266 6.0777L47.5404 8.54701H47.5008L46.9146 6.0777L45.3786 0.199253H38.7936V13.4418H42.9146V8.84631L42.8551 4.39405H42.9345L45.48 13.4418H49.2373L51.8222 4.39405H51.8817L51.8222 8.84631V13.4418H55.9233V0.199253H49.6626L48.1266 6.0777Z", fill: "black" }), /* @__PURE__ */ I.createElement("path", { d: "M61.057 0.199253L56.7333 13.4418H61.4206L62.0465 10.913H65.6429L66.2489 13.4418H71.0552L66.7139 0.199253H61.057ZM62.7539 8.00558L63.8645 3.41028L64.9553 8.00558H62.7539Z", fill: "black" }), /* @__PURE__ */ I.createElement("path", { d: "M85.656 6.77975C86.6916 6.6323 87.4541 6.28455 87.9389 5.73657C88.4238 5.18853 88.6662 4.51949 88.6662 3.72939C88.6662 2.55195 88.2562 1.67601 87.4344 1.1016C86.6145 0.513972 85.3607 0.212458 83.677 0.199253H76.0413V13.4418H84.2015C85.8301 13.4418 87.0354 13.1533 87.8177 12.5789C88.611 11.9913 89.0099 11.1132 89.0099 9.95118C89.0099 9.09505 88.7411 8.38636 88.2011 7.82518C87.6612 7.26393 86.8151 6.9228 85.656 6.80175V6.77975ZM80.5455 3.41028H82.6457C83.4545 3.41028 83.8577 3.7316 83.8577 4.37425C83.8577 5.01689 83.4545 5.33822 82.6457 5.33822H80.5455V3.41028ZM83.8797 10.1492C83.677 10.312 83.3685 10.3913 82.952 10.3913H80.5499V8.46561H82.952C83.3685 8.46561 83.6792 8.54701 83.8797 8.70549C84.0957 8.86619 84.2015 9.09945 84.2015 9.40754C84.2015 9.71567 84.0935 9.97757 83.8797 10.1492Z", fill: "black" }), /* @__PURE__ */ I.createElement("path", { d: "M114.374 6.72035L118.616 0.199253H113.485L111.91 3.51152L110.354 0.199253H104.801L109.063 6.8414L104.638 13.4418H109.951L111.566 10.0105L113.325 13.4418H118.999L114.374 6.72035Z", fill: "black" }), /* @__PURE__ */ I.createElement("path", { d: "M102.472 0.378544C102.053 0.125449 101.59 0 101.086 0H93.0312C92.5242 0 92.0549 0.127649 91.6252 0.378544C91.1931 0.631642 90.8517 0.972769 90.5982 1.40194C90.3448 1.8201 90.217 2.28667 90.217 2.80386V10.8369C90.217 11.3432 90.3448 11.8097 90.5982 12.2388C90.8517 12.6681 91.1931 13.0092 91.6252 13.2622C92.0549 13.5152 92.5242 13.6407 93.0312 13.6407H101.086C101.593 13.6407 102.053 13.513 102.472 13.2622C102.902 13.0092 103.245 12.6681 103.497 12.2388C103.763 11.8097 103.895 11.341 103.895 10.8369V2.80606C103.895 2.28667 103.761 1.8201 103.497 1.40414C103.243 0.974969 102.902 0.633842 102.472 0.380745V0.378544ZM100.116 9.89279H93.9611V3.75243H100.116V9.89279Z", fill: "black" }), /* @__PURE__ */ I.createElement("path", { d: "M43.3879 27.3704C42.6166 26.8512 41.7372 26.4993 40.7478 26.3145L44.9726 21.5605H40.8226L36.1199 26.794V30.7935C37.0917 30.4415 37.9887 30.2655 38.8107 30.2655C39.5644 30.2655 40.2101 30.4085 40.7478 30.6923C41.6204 31.1455 42.0569 31.8319 42.0569 32.7559V32.8307C42.0569 33.1827 41.973 33.4269 41.8056 33.5611C41.6558 33.6953 41.3692 33.7635 40.9505 33.7635H32.8715C32.2345 33.7635 31.7983 33.6469 31.5625 33.4115C31.3444 33.1607 31.2363 32.6987 31.2363 32.0277V26.3431L27.0866 28.532V32.6569C27.0866 33.0925 27.0117 33.3873 26.8595 33.5369C26.7075 33.6887 26.4144 33.7635 25.9803 33.7635H23.7412C23.305 33.7635 23.0118 33.6887 22.8619 33.5369C22.7121 33.3851 22.6349 33.0925 22.6349 32.6569V26.8468L18.4852 29.0357V32.6591C18.4852 33.0947 18.4103 33.3895 18.2583 33.5391C18.1084 33.6909 17.8131 33.7657 17.379 33.7657H15.1664C14.73 33.7657 14.4369 33.6909 14.2871 33.5391C14.1372 33.3873 14.06 33.0947 14.06 32.6591V27.3506L9.91037 29.5395V35.9282C9.91037 37.6727 8.92967 38.5439 6.96835 38.5439C6.02952 38.5439 5.28242 38.2073 4.72931 37.5386C4.17615 36.8522 3.89848 35.9458 3.89848 34.8216C3.89848 33.6975 4.18276 32.5161 4.75355 31.4249L0.830824 32.2543C0.277676 33.2113 0 34.3091 0 35.5498C0 37.2944 0.50246 38.8033 1.50958 40.0771C2.801 41.7381 4.61911 42.5674 6.96835 42.5674C8.6454 42.5674 10.0779 42.1736 11.2701 41.3861C12.5946 40.5149 13.4497 39.2895 13.8353 37.7123C14.1372 37.7629 14.4568 37.7871 14.7917 37.7871H18.0114C19.0009 37.7365 19.8559 37.4858 20.5767 37.0326C21.3655 37.5364 22.2956 37.7871 23.3689 37.7871H26.5885C27.7125 37.7365 28.6513 37.4352 29.405 36.8808C30.3262 37.4836 31.4259 37.7871 32.6996 37.7871H41.3581C42.7157 37.7871 43.8309 37.4022 44.7036 36.63C45.7107 35.7566 46.2132 34.5334 46.2132 32.9561V32.7053C46.2132 30.3909 45.2745 28.6134 43.3967 27.3726L43.3879 27.3704Z", fill: "#6A4A9D" }), /* @__PURE__ */ I.createElement("path", { d: "M66.0266 39.8246C65.4051 39.8246 64.9026 40.0094 64.517 40.3789C64.1313 40.7639 63.9397 41.2677 63.9397 41.8881C63.9397 42.5084 64.1335 43.0123 64.517 43.3973C64.9026 43.7998 65.4051 44 66.0266 44C66.648 44 67.1416 43.8064 67.5097 43.4215C67.8953 43.0365 68.0869 42.5238 68.0869 41.8881C68.0869 41.2523 67.8931 40.7639 67.5097 40.3789C67.1416 40.0094 66.6458 39.8246 66.0266 39.8246Z", fill: "#6A4A9D" }), /* @__PURE__ */ I.createElement("path", { d: "M65.0208 32.6578C65.0208 33.0933 64.9459 33.3881 64.7938 33.5377C64.6418 33.6896 64.3487 33.7644 63.9124 33.7644H59.5733V30.6954C59.5733 29.3205 59.1788 28.2051 58.3922 27.3495C57.4864 26.3441 56.2038 25.8403 54.5444 25.8403C53.002 25.8403 51.752 26.3353 50.7956 27.3253C49.74 28.4165 49.2111 29.9079 49.2111 31.802C49.2111 33.1109 49.6143 34.2835 50.4187 35.3241C51.3751 36.5494 52.6666 37.2862 54.2932 37.5372C54.745 37.6032 55.124 37.6472 55.4259 37.6626C55.3599 37.997 55.124 38.283 54.7207 38.5182C54.3351 38.769 53.9076 38.8946 53.4382 38.8946C52.532 38.8946 51.5339 38.5754 50.4452 37.9398V41.5366C51.5691 42.2229 52.6841 42.5683 53.7908 42.5683C55.1835 42.5683 56.3979 42.1987 57.438 41.4619C58.6962 40.5731 59.3993 39.3478 59.5513 37.788H64.2936C65.6691 37.788 66.793 37.3942 67.6635 36.6044C68.6684 35.6981 69.173 34.4485 69.173 32.8558V26.3397L65.0235 28.5285V32.6534L65.0208 32.6578ZM55.4259 33.6896C55.3599 33.672 55.2674 33.6654 55.1484 33.6654C54.864 33.6147 54.6612 33.573 54.5444 33.5399C53.707 33.3221 53.2861 32.693 53.2861 31.6524C53.2861 30.3787 53.7048 29.7407 54.5444 29.7407C55.1306 29.7407 55.4237 30.0597 55.4237 30.6977V33.6918L55.4259 33.6896Z", fill: "#6A4A9D" }), /* @__PURE__ */ I.createElement("path", { d: "M95.419 25.837C94.0615 25.837 92.9465 26.2221 92.0734 26.9942C91.0839 27.883 90.5903 29.1149 90.5903 30.6923V32.6547C90.5903 33.0903 90.5155 33.3851 90.3633 33.5347C90.2135 33.6865 89.9182 33.7613 89.4839 33.7613H85.3124C84.8761 33.7613 84.583 33.6865 84.431 33.5347C84.2811 33.3829 84.204 33.0903 84.204 32.6547V21.5605L80.0544 23.7495V32.8571C80.0544 34.2497 80.4489 35.3892 81.2357 36.278C82.1237 37.2834 83.3556 37.7871 84.9334 37.7871H89.8587C90.8305 37.7871 91.6943 37.5782 92.4507 37.158C93.2726 37.5782 94.3282 37.7871 95.6196 37.7871C97.0608 37.7871 98.2354 37.2922 99.1411 36.3022C100.181 35.1956 100.701 33.6953 100.701 31.7989C100.701 30.1731 100.292 28.8224 99.4694 27.7489C98.513 26.4751 97.1644 25.837 95.419 25.837ZM95.3948 33.7613C94.9584 33.7613 94.7403 33.5853 94.7403 33.2333V30.5427C94.7403 30.0059 94.9673 29.7375 95.419 29.7375C96.2234 29.7375 96.6267 30.3755 96.6267 31.6493C96.6267 33.0573 96.2168 33.7635 95.3948 33.7635V33.7613Z", fill: "#6A4A9D" }), /* @__PURE__ */ I.createElement("path", { d: "M114.85 32.0277C114.85 32.6987 114.734 33.1607 114.498 33.4115C114.28 33.6469 113.852 33.7635 113.215 33.7635H112.31V24.8317L108.159 27.0448V33.7613H105.167L103.08 37.7871H113.392C115.036 37.7871 116.36 37.2921 117.365 36.3021C118.456 35.2462 119 33.8295 119 32.0497V21.5605L114.85 23.7737V32.0277Z", fill: "#6A4A9D" })), Y6 = "Header-module__root__Pe4MYp", ew = "Header-module__nav__wtnkmT", tw = "Header-module__navItem__-Fy63Z", nw = "Header-module__logo__xO2bWO", fi = {
|
|
15825
15831
|
root: Y6,
|
|
@@ -15830,25 +15836,25 @@ const V6 = {
|
|
|
15830
15836
|
llama: X6,
|
|
15831
15837
|
default: J6
|
|
15832
15838
|
}, iw = () => {
|
|
15833
|
-
const { hideLogo: t, logo: e = "default" } =
|
|
15839
|
+
const { hideLogo: t, logo: e = "default" } = _e();
|
|
15834
15840
|
if (t)
|
|
15835
15841
|
return null;
|
|
15836
15842
|
const n = rw[e];
|
|
15837
|
-
return /* @__PURE__ */
|
|
15843
|
+
return /* @__PURE__ */ C("div", { className: fi.logo, children: /* @__PURE__ */ C(n, {}) });
|
|
15838
15844
|
}, ow = ({ className: t }) => {
|
|
15839
|
-
const { t: e } = _t("header"), { disableDelivery: n } =
|
|
15845
|
+
const { t: e } = _t("header"), { disableDelivery: n } = _e(), r = Y(Vp), i = Ie(uc);
|
|
15840
15846
|
j(() => {
|
|
15841
|
-
i ?
|
|
15847
|
+
i ? Y.getState().setMode("location_delivery") : Y.getState().setMode("self_pickup");
|
|
15842
15848
|
}, [i]);
|
|
15843
15849
|
const o = () => {
|
|
15844
|
-
Ie.getState().setDeliverPoint(null),
|
|
15850
|
+
Ie.getState().setDeliverPoint(null), Y.getState().setMode("self_pickup");
|
|
15845
15851
|
}, s = () => {
|
|
15846
|
-
Ie.getState().setDeliverPoint(null),
|
|
15852
|
+
Ie.getState().setDeliverPoint(null), Y.getState().setMode("location_delivery");
|
|
15847
15853
|
}, a = r === "self_pickup", c = r === "location_delivery";
|
|
15848
|
-
return /* @__PURE__ */ N("div", { className:
|
|
15849
|
-
/* @__PURE__ */
|
|
15854
|
+
return /* @__PURE__ */ N("div", { className: ee(fi.root, t), children: [
|
|
15855
|
+
/* @__PURE__ */ C(iw, {}),
|
|
15850
15856
|
/* @__PURE__ */ N("nav", { className: fi.nav, children: [
|
|
15851
|
-
!n && /* @__PURE__ */
|
|
15857
|
+
!n && /* @__PURE__ */ C(
|
|
15852
15858
|
lt,
|
|
15853
15859
|
{
|
|
15854
15860
|
as: "link",
|
|
@@ -15858,7 +15864,7 @@ const V6 = {
|
|
|
15858
15864
|
children: e("self_pickup")
|
|
15859
15865
|
}
|
|
15860
15866
|
),
|
|
15861
|
-
!n && /* @__PURE__ */
|
|
15867
|
+
!n && /* @__PURE__ */ C(
|
|
15862
15868
|
lt,
|
|
15863
15869
|
{
|
|
15864
15870
|
as: "link",
|
|
@@ -15868,7 +15874,7 @@ const V6 = {
|
|
|
15868
15874
|
children: e("courier_delivery")
|
|
15869
15875
|
}
|
|
15870
15876
|
),
|
|
15871
|
-
/* @__PURE__ */
|
|
15877
|
+
/* @__PURE__ */ C($h, {})
|
|
15872
15878
|
] })
|
|
15873
15879
|
] });
|
|
15874
15880
|
}, sw = dt(ow), aw = {
|
|
@@ -15876,7 +15882,7 @@ const V6 = {
|
|
|
15876
15882
|
}, jr = Qt((t) => ({
|
|
15877
15883
|
...aw,
|
|
15878
15884
|
toggle(e) {
|
|
15879
|
-
|
|
15885
|
+
Y.getState().setDetailsOpen(!1), Ie.getState().setDeliverPoint(null), ut.getState().setSelectedLocation(null), t((n) => ({ open: e ?? !n.open }));
|
|
15880
15886
|
}
|
|
15881
15887
|
})), cw = "Layout-module__root__qzPL-f", lw = "Layout-module__headerHidden__JEN-d0", uw = "Layout-module__sidebarHidden__x017O3", dw = "Layout-module__sidebarOpen__IZnIjs", Fo = {
|
|
15882
15888
|
root: cw,
|
|
@@ -15884,11 +15890,11 @@ const V6 = {
|
|
|
15884
15890
|
sidebarHidden: uw,
|
|
15885
15891
|
sidebarOpen: dw
|
|
15886
15892
|
}, fw = ({ children: t }) => {
|
|
15887
|
-
const { hideFilters: e, hideHeader: n } =
|
|
15888
|
-
return /* @__PURE__ */
|
|
15893
|
+
const { hideFilters: e, hideHeader: n } = _e(), r = jr((i) => i.open);
|
|
15894
|
+
return /* @__PURE__ */ C(
|
|
15889
15895
|
"div",
|
|
15890
15896
|
{
|
|
15891
|
-
className:
|
|
15897
|
+
className: ee(Fo.root, {
|
|
15892
15898
|
[Fo.sidebarOpen]: r,
|
|
15893
15899
|
[Fo.headerHidden]: n,
|
|
15894
15900
|
[Fo.sidebarHidden]: e
|
|
@@ -15898,7 +15904,7 @@ const V6 = {
|
|
|
15898
15904
|
);
|
|
15899
15905
|
}, hw = ({ children: t }) => {
|
|
15900
15906
|
const e = It(Sm);
|
|
15901
|
-
return It(Bd) && !e ? /* @__PURE__ */
|
|
15907
|
+
return It(Bd) && !e ? /* @__PURE__ */ C(jc, {}) : /* @__PURE__ */ C(wt, { children: t });
|
|
15902
15908
|
}, pw = "Aside-module__root__EotK2f", mw = "Aside-module__open__Zwmbs5", gw = "Aside-module__overlay__slLdHF", vw = "Aside-module__container__28P4wq", jo = {
|
|
15903
15909
|
root: pw,
|
|
15904
15910
|
open: mw,
|
|
@@ -15907,12 +15913,12 @@ const V6 = {
|
|
|
15907
15913
|
}, yw = ({ children: t, className: e, open: n }) => /* @__PURE__ */ N(
|
|
15908
15914
|
"div",
|
|
15909
15915
|
{
|
|
15910
|
-
className:
|
|
15916
|
+
className: ee(jo.root, e, {
|
|
15911
15917
|
[jo.open]: n
|
|
15912
15918
|
}),
|
|
15913
15919
|
children: [
|
|
15914
|
-
/* @__PURE__ */
|
|
15915
|
-
/* @__PURE__ */
|
|
15920
|
+
/* @__PURE__ */ C("div", { className: jo.overlay }),
|
|
15921
|
+
/* @__PURE__ */ C("div", { className: jo.container, children: t })
|
|
15916
15922
|
]
|
|
15917
15923
|
}
|
|
15918
15924
|
), bw = "Input-module__locationSearchRoot__svh-f9", ww = "Input-module__endAdornment__m40K5R", _w = "Input-module__input__505b7i", Sw = "Input-module__startAdornment__D-sJ0N", Cw = "Input-module__locationSearchInput__2YK1MG", Ew = "Input-module__label__gmqtsf", Ow = "Input-module__inputContainer__vubIa-", ur = {
|
|
@@ -15925,7 +15931,7 @@ const V6 = {
|
|
|
15925
15931
|
inputContainer: Ow
|
|
15926
15932
|
}, xw = Cn(
|
|
15927
15933
|
({ className: t, endAdornment: e, inputRef: n, label: r, onBlur: i, onChange: o, startAdornment: s, ...a }, c) => {
|
|
15928
|
-
const l = id(), u =
|
|
15934
|
+
const l = id(), u = B(null);
|
|
15929
15935
|
Kt(
|
|
15930
15936
|
c,
|
|
15931
15937
|
() => ({
|
|
@@ -15952,11 +15958,11 @@ const V6 = {
|
|
|
15952
15958
|
[i, o]
|
|
15953
15959
|
);
|
|
15954
15960
|
const d = Vh(n, u);
|
|
15955
|
-
return /* @__PURE__ */ N("label", { htmlFor: a.id ?? l, className:
|
|
15956
|
-
r && /* @__PURE__ */
|
|
15961
|
+
return /* @__PURE__ */ N("label", { htmlFor: a.id ?? l, className: ee(ur.locationSearchRoot, t), children: [
|
|
15962
|
+
r && /* @__PURE__ */ C("span", { className: ur.label, children: r }),
|
|
15957
15963
|
/* @__PURE__ */ N("div", { className: ur.inputContainer, children: [
|
|
15958
|
-
s && /* @__PURE__ */
|
|
15959
|
-
/* @__PURE__ */
|
|
15964
|
+
s && /* @__PURE__ */ C("div", { className: ur.startAdornment, children: s }),
|
|
15965
|
+
/* @__PURE__ */ C(
|
|
15960
15966
|
"input",
|
|
15961
15967
|
{
|
|
15962
15968
|
...a,
|
|
@@ -15967,7 +15973,7 @@ const V6 = {
|
|
|
15967
15973
|
onBlur: i
|
|
15968
15974
|
}
|
|
15969
15975
|
),
|
|
15970
|
-
e && /* @__PURE__ */
|
|
15976
|
+
e && /* @__PURE__ */ C("div", { className: ur.endAdornment, children: e })
|
|
15971
15977
|
] })
|
|
15972
15978
|
] });
|
|
15973
15979
|
}
|
|
@@ -15978,7 +15984,7 @@ const V6 = {
|
|
|
15978
15984
|
itemMain: Lw,
|
|
15979
15985
|
itemSecondary: Rw,
|
|
15980
15986
|
itemArrow: Mw
|
|
15981
|
-
}, kw = ({ onSelect: t, suggestions: e }) => /* @__PURE__ */
|
|
15987
|
+
}, kw = ({ onSelect: t, suggestions: e }) => /* @__PURE__ */ C("div", { className: fr.dropdown, role: "listbox", children: e.map((n) => /* @__PURE__ */ N(
|
|
15982
15988
|
"div",
|
|
15983
15989
|
{
|
|
15984
15990
|
className: fr.item,
|
|
@@ -15989,9 +15995,9 @@ const V6 = {
|
|
|
15989
15995
|
r.key === "Enter" && t(n);
|
|
15990
15996
|
},
|
|
15991
15997
|
children: [
|
|
15992
|
-
/* @__PURE__ */
|
|
15993
|
-
n.secondaryText && /* @__PURE__ */
|
|
15994
|
-
/* @__PURE__ */
|
|
15998
|
+
/* @__PURE__ */ C("span", { className: fr.itemMain, children: n.mainText }),
|
|
15999
|
+
n.secondaryText && /* @__PURE__ */ C("span", { className: fr.itemSecondary, children: n.secondaryText }),
|
|
16000
|
+
/* @__PURE__ */ C(Rc, { className: fr.itemArrow })
|
|
15995
16001
|
]
|
|
15996
16002
|
},
|
|
15997
16003
|
n.placeId
|
|
@@ -16007,7 +16013,7 @@ const V6 = {
|
|
|
16007
16013
|
onFocus: c,
|
|
16008
16014
|
placeholder: l
|
|
16009
16015
|
}) => {
|
|
16010
|
-
const u =
|
|
16016
|
+
const u = B(null), d = t.suggestions.length > 0, f = B(t.clearSuggestions);
|
|
16011
16017
|
f.current = t.clearSuggestions, j(() => {
|
|
16012
16018
|
if (!d)
|
|
16013
16019
|
return;
|
|
@@ -16019,10 +16025,10 @@ const V6 = {
|
|
|
16019
16025
|
const g = (h) => {
|
|
16020
16026
|
t.setValue(h.target.value);
|
|
16021
16027
|
}, p = (h) => {
|
|
16022
|
-
t.setValue(h.description), t.handleSelect(h.placeId);
|
|
16028
|
+
t.setValue(h.description), t.clearSuggestions(), t.handleSelect(h.placeId);
|
|
16023
16029
|
};
|
|
16024
|
-
return /* @__PURE__ */ N("div", { ref: u, className:
|
|
16025
|
-
/* @__PURE__ */
|
|
16030
|
+
return /* @__PURE__ */ N("div", { ref: u, className: ee(fr.container, e), children: [
|
|
16031
|
+
/* @__PURE__ */ C(
|
|
16026
16032
|
xw,
|
|
16027
16033
|
{
|
|
16028
16034
|
inputRef: r,
|
|
@@ -16037,7 +16043,7 @@ const V6 = {
|
|
|
16037
16043
|
onBlur: s
|
|
16038
16044
|
}
|
|
16039
16045
|
),
|
|
16040
|
-
d && /* @__PURE__ */
|
|
16046
|
+
d && /* @__PURE__ */ C(kw, { suggestions: t.suggestions, onSelect: p })
|
|
16041
16047
|
] });
|
|
16042
16048
|
}, Dw = "LocationAside-module__submit__CSKcqi", Nw = "LocationAside-module__container__S1NejR", Iw = "LocationAside-module__selector__hl74ke", Fw = "LocationAside-module__label__0Zk8at", jw = "LocationAside-module__header__N1wgyn", Bw = "LocationAside-module__close__VsE88z", Bo = {
|
|
16043
16049
|
submit: Dw,
|
|
@@ -16047,7 +16053,7 @@ const V6 = {
|
|
|
16047
16053
|
header: jw,
|
|
16048
16054
|
close: Bw
|
|
16049
16055
|
}, Vw = Cn((t, e) => {
|
|
16050
|
-
const { t: n } = _t(["location_aside", "common"]), r = Mn(H6), {
|
|
16056
|
+
const { t: n } = _t(["location_aside", "common"]), r = Mn(H6), { hideCloseButtonOnLocationScreen: i, inputs: o, onCloseLocationSelector: s, onLocationSelect: a } = _e(), c = B(null);
|
|
16051
16057
|
Kt(
|
|
16052
16058
|
e,
|
|
16053
16059
|
() => ({
|
|
@@ -16056,82 +16062,80 @@ const V6 = {
|
|
|
16056
16062
|
}),
|
|
16057
16063
|
[]
|
|
16058
16064
|
);
|
|
16059
|
-
const
|
|
16060
|
-
(
|
|
16061
|
-
Mn.getState().toggle(!1), Ji.getState().setPlaceSimple(
|
|
16065
|
+
const l = H(
|
|
16066
|
+
(g) => {
|
|
16067
|
+
Mn.getState().toggle(!1), Ji.getState().setPlaceSimple(g, { withNavigation: !0 }), a == null || a(g);
|
|
16062
16068
|
},
|
|
16063
|
-
[
|
|
16064
|
-
),
|
|
16065
|
-
|
|
16066
|
-
|
|
16067
|
-
|
|
16068
|
-
|
|
16069
|
-
|
|
16070
|
-
return /* @__PURE__ */ E(yw, { open: r, children: /* @__PURE__ */ E("div", { ref: l, className: Bo.container, children: /* @__PURE__ */ N("div", { className: Bo.selector, children: [
|
|
16069
|
+
[a]
|
|
16070
|
+
), u = Uh({
|
|
16071
|
+
onPlaceSelect: l
|
|
16072
|
+
}), d = () => {
|
|
16073
|
+
Mn.getState().toggle(!1), s == null || s();
|
|
16074
|
+
}, f = ys(o == null ? void 0 : o.city);
|
|
16075
|
+
return /* @__PURE__ */ C(yw, { open: r, children: /* @__PURE__ */ C("div", { ref: c, className: Bo.container, children: /* @__PURE__ */ N("div", { className: Bo.selector, children: [
|
|
16071
16076
|
/* @__PURE__ */ N("div", { className: Bo.header, children: [
|
|
16072
|
-
/* @__PURE__ */
|
|
16073
|
-
!
|
|
16077
|
+
/* @__PURE__ */ C("div", { className: Bo.label, children: n("choose_city") }),
|
|
16078
|
+
!i && /* @__PURE__ */ C(Hr, { position: "relative", onClick: d })
|
|
16074
16079
|
] }),
|
|
16075
|
-
/* @__PURE__ */
|
|
16080
|
+
/* @__PURE__ */ C(
|
|
16076
16081
|
zh,
|
|
16077
16082
|
{
|
|
16078
|
-
autocomplete:
|
|
16079
|
-
inputRef:
|
|
16080
|
-
name:
|
|
16083
|
+
autocomplete: u,
|
|
16084
|
+
inputRef: f.ref,
|
|
16085
|
+
name: f.name,
|
|
16081
16086
|
placeholder: n("placeholder"),
|
|
16082
|
-
onClick:
|
|
16087
|
+
onClick: f.onClick
|
|
16083
16088
|
}
|
|
16084
16089
|
)
|
|
16085
16090
|
] }) }) });
|
|
16086
16091
|
}), Hw = dt(Vw), Uw = ({ children: t }) => {
|
|
16087
|
-
const { locale: e } =
|
|
16092
|
+
const { locale: e } = _e(), { mapKey: n } = Bc(), r = B(e);
|
|
16088
16093
|
return (
|
|
16089
16094
|
// TODO: Add to widget global context
|
|
16090
|
-
/* @__PURE__ */
|
|
16095
|
+
/* @__PURE__ */ C(Qm, { apiKey: n, language: r.current, libraries: up, children: t })
|
|
16091
16096
|
);
|
|
16092
16097
|
}, $w = ({ children: t }) => {
|
|
16093
|
-
const { disableGoogleInit: e } =
|
|
16098
|
+
const { disableGoogleInit: e } = _e(), { mapKey: n } = Bc(), { setMapKey: r } = Ji();
|
|
16094
16099
|
return j(() => {
|
|
16095
16100
|
r(n);
|
|
16096
|
-
}, [n, r]), e ? /* @__PURE__ */
|
|
16101
|
+
}, [n, r]), e ? /* @__PURE__ */ C(wt, { children: t }) : /* @__PURE__ */ C(Uw, { children: t });
|
|
16097
16102
|
}, zw = (t) => /* @__PURE__ */ I.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 20, height: 20, fill: "none", viewBox: "0 0 20 20", ...t }, /* @__PURE__ */ I.createElement("path", { fill: "currentcolor", fillRule: "evenodd", d: "M14.617 16.032a9 9 0 1 1 1.414-1.414l3.676 3.675a1 1 0 0 1-1.414 1.414l-3.676-3.675ZM2 9a7 7 0 1 1 12.04 4.858 1.005 1.005 0 0 0-.182.182A7 7 0 0 1 2 9Z", clipRule: "evenodd" })), qw = ({ className: t }) => {
|
|
16098
|
-
const { t: e } = _t("location_selector"), {
|
|
16099
|
-
(
|
|
16100
|
-
Ji.getState().setPlaceSimple(
|
|
16103
|
+
const { t: e } = _t("location_selector"), { inputs: n, onLocationSelect: r } = _e(), i = H(
|
|
16104
|
+
(l) => {
|
|
16105
|
+
Ji.getState().setPlaceSimple(l, { withNavigation: !0 }), r == null || r(l);
|
|
16101
16106
|
},
|
|
16102
|
-
[
|
|
16103
|
-
),
|
|
16104
|
-
country: n,
|
|
16107
|
+
[r]
|
|
16108
|
+
), o = Uh({
|
|
16105
16109
|
types: [],
|
|
16106
|
-
onPlaceSelect:
|
|
16107
|
-
}),
|
|
16108
|
-
|
|
16109
|
-
},
|
|
16110
|
-
|
|
16111
|
-
},
|
|
16112
|
-
return /* @__PURE__ */
|
|
16110
|
+
onPlaceSelect: i
|
|
16111
|
+
}), s = () => {
|
|
16112
|
+
o.value && Y.getState().setBlurred(!0), Y.getState().setDetailsOpen(!1), Ie.getState().setDeliverPoint(null), ut.getState().setSelectedLocation(null);
|
|
16113
|
+
}, a = () => {
|
|
16114
|
+
Y.getState().setBlurred(!1);
|
|
16115
|
+
}, c = ys(n == null ? void 0 : n.address);
|
|
16116
|
+
return /* @__PURE__ */ C(
|
|
16113
16117
|
zh,
|
|
16114
16118
|
{
|
|
16115
|
-
autocomplete:
|
|
16119
|
+
autocomplete: o,
|
|
16116
16120
|
className: t,
|
|
16117
|
-
endAdornment: /* @__PURE__ */
|
|
16118
|
-
inputRef:
|
|
16119
|
-
name:
|
|
16121
|
+
endAdornment: /* @__PURE__ */ C(zw, {}),
|
|
16122
|
+
inputRef: c.ref,
|
|
16123
|
+
name: c.name,
|
|
16120
16124
|
placeholder: e("placeholder"),
|
|
16121
|
-
onBlur:
|
|
16122
|
-
onClick:
|
|
16123
|
-
onFocus:
|
|
16125
|
+
onBlur: a,
|
|
16126
|
+
onClick: c.onClick,
|
|
16127
|
+
onFocus: s
|
|
16124
16128
|
}
|
|
16125
16129
|
);
|
|
16126
|
-
}, Gw = ({ className: t }) =>
|
|
16130
|
+
}, Gw = ({ className: t }) => Y($p) ? /* @__PURE__ */ C(qw, { className: t }) : null, Ww = dt(Gw), Zw = "DeliveryDetailsModal-module__root__qwKnjX", Kw = {
|
|
16127
16131
|
root: Zw
|
|
16128
|
-
}, Qw = ({ className: t, location: e, onClose: n, onSubmit: r }) => /* @__PURE__ */
|
|
16132
|
+
}, Qw = ({ className: t, location: e, onClose: n, onSubmit: r }) => /* @__PURE__ */ C("div", { className: ee(Kw.root, t), children: /* @__PURE__ */ C(jh, { location: e, onClose: n, onSubmit: r }) }), Jw = "LocationDetailsModal-module__root__PyRnLM", Xw = {
|
|
16129
16133
|
root: Jw
|
|
16130
16134
|
}, Yw = ({ className: t, location: e, onClose: n, onSubmit: r }) => {
|
|
16131
16135
|
const i = () => {
|
|
16132
16136
|
r == null || r(e);
|
|
16133
16137
|
};
|
|
16134
|
-
return /* @__PURE__ */
|
|
16138
|
+
return /* @__PURE__ */ C("div", { className: ee(Xw.root, t), children: /* @__PURE__ */ C(wf, { location: e, onClose: n, onSubmit: i }) });
|
|
16135
16139
|
}, e8 = "MapContainer-module__root__1Os6Q-", t8 = "MapContainer-module__mapWrapper__Cwe7qC", n8 = "MapContainer-module__wrapperBlurred__04NN2L", r8 = "MapContainer-module__locationSelector__Pr1zS-", i8 = "MapContainer-module__filterButton__CW3Qv7", o8 = "MapContainer-module__sidebarOpen__lGMVrJ", s8 = "MapContainer-module__filterIcon__T01XsJ", a8 = "MapContainer-module__details__gM8LWX", Rt = {
|
|
16136
16140
|
root: e8,
|
|
16137
16141
|
mapWrapper: t8,
|
|
@@ -16142,16 +16146,16 @@ const V6 = {
|
|
|
16142
16146
|
filterIcon: s8,
|
|
16143
16147
|
details: a8
|
|
16144
16148
|
}, c8 = () => {
|
|
16145
|
-
const { onPointClick: t } =
|
|
16146
|
-
|
|
16149
|
+
const { onPointClick: t } = _e(), e = Y(dc), n = ut(Gp), r = Ie(uc), i = H(() => {
|
|
16150
|
+
Y.getState().setDetailsOpen(!1);
|
|
16147
16151
|
}, []), o = H(
|
|
16148
16152
|
(s) => {
|
|
16149
|
-
t == null || t(s),
|
|
16153
|
+
t == null || t(s), Y.getState().setDetailsOpen(!1), ut.getState().setSelectedLocation(null), Ie.getState().setDeliverPoint(null);
|
|
16150
16154
|
},
|
|
16151
16155
|
[t]
|
|
16152
16156
|
);
|
|
16153
16157
|
return /* @__PURE__ */ N(wt, { children: [
|
|
16154
|
-
(r == null ? void 0 : r.address) && e && /* @__PURE__ */
|
|
16158
|
+
(r == null ? void 0 : r.address) && e && /* @__PURE__ */ C(
|
|
16155
16159
|
Qw,
|
|
16156
16160
|
{
|
|
16157
16161
|
location: r,
|
|
@@ -16160,7 +16164,7 @@ const V6 = {
|
|
|
16160
16164
|
onSubmit: o
|
|
16161
16165
|
}
|
|
16162
16166
|
),
|
|
16163
|
-
n && e && /* @__PURE__ */
|
|
16167
|
+
n && e && /* @__PURE__ */ C(
|
|
16164
16168
|
Yw,
|
|
16165
16169
|
{
|
|
16166
16170
|
location: n,
|
|
@@ -16178,25 +16182,25 @@ const V6 = {
|
|
|
16178
16182
|
"div",
|
|
16179
16183
|
{
|
|
16180
16184
|
role: "presentation",
|
|
16181
|
-
className:
|
|
16185
|
+
className: ee(Rt.filterButton, { [Rt.sidebarOpen]: t }),
|
|
16182
16186
|
onClick: n ? void 0 : r,
|
|
16183
16187
|
children: [
|
|
16184
|
-
n && /* @__PURE__ */
|
|
16185
|
-
n ? /* @__PURE__ */
|
|
16188
|
+
n && /* @__PURE__ */ C($h, {}),
|
|
16189
|
+
n ? /* @__PURE__ */ C(u8, { className: Rt.filterIcon, onClick: r }) : /* @__PURE__ */ C(l8, { className: Rt.filterIcon })
|
|
16186
16190
|
]
|
|
16187
16191
|
}
|
|
16188
16192
|
);
|
|
16189
16193
|
}, f8 = ({ children: t, className: e }) => {
|
|
16190
|
-
const { hideFilters: n, hideSearchInput: r } =
|
|
16191
|
-
return /* @__PURE__ */ N("div", { className:
|
|
16192
|
-
!r && !o && /* @__PURE__ */
|
|
16193
|
-
!n && /* @__PURE__ */
|
|
16194
|
-
/* @__PURE__ */
|
|
16195
|
-
/* @__PURE__ */
|
|
16194
|
+
const { hideFilters: n, hideSearchInput: r } = _e(), i = Y(Up), o = Y(dc);
|
|
16195
|
+
return /* @__PURE__ */ N("div", { className: ee(Rt.root, e), children: [
|
|
16196
|
+
!r && !o && /* @__PURE__ */ C(Ww, { className: Rt.locationSelector }),
|
|
16197
|
+
!n && /* @__PURE__ */ C(d8, {}),
|
|
16198
|
+
/* @__PURE__ */ C("div", { className: ee(Rt.mapWrapper, { [Rt.wrapperBlurred]: i }), children: t }),
|
|
16199
|
+
/* @__PURE__ */ C(c8, {})
|
|
16196
16200
|
] });
|
|
16197
16201
|
}, h8 = dt(f8), p8 = "Separator-module__root__eQtZey", m8 = {
|
|
16198
16202
|
root: p8
|
|
16199
|
-
}, da = ({ className: t, ...e }) => /* @__PURE__ */
|
|
16203
|
+
}, da = ({ className: t, ...e }) => /* @__PURE__ */ C("hr", { className: ee(m8.root, t), ...e }), g8 = "Sidebar-module__root__4j1MA3", v8 = "Sidebar-module__closeButton__HLXy1c", y8 = "Sidebar-module__open__mqQXF6", b8 = "Sidebar-module__header__Afp6uz", w8 = "Sidebar-module__typeFilter__GN46u9", _8 = "Sidebar-module__separator__6I4QoJ", S8 = "Sidebar-module__withRightPadding__2u1Ina", C8 = "Sidebar-module__sheetContent__SaoncI", E8 = "Sidebar-module__doneButton__4aeaSD", qt = {
|
|
16200
16204
|
root: g8,
|
|
16201
16205
|
closeButton: v8,
|
|
16202
16206
|
open: y8,
|
|
@@ -16211,19 +16215,19 @@ const V6 = {
|
|
|
16211
16215
|
n(!1);
|
|
16212
16216
|
};
|
|
16213
16217
|
return /* @__PURE__ */ N("div", { className: qt.header, children: [
|
|
16214
|
-
e && /* @__PURE__ */
|
|
16215
|
-
!e && /* @__PURE__ */
|
|
16218
|
+
e && /* @__PURE__ */ C("div", { role: "presentation", className: qt.doneButton, onClick: r, children: t("done") }),
|
|
16219
|
+
!e && /* @__PURE__ */ C(Hr, { className: qt.closeButton, onClick: r })
|
|
16216
16220
|
] });
|
|
16217
16221
|
}, x8 = "Radio-module__root__7ElY2W", T8 = "Radio-module__label__c-sYW3", Zu = {
|
|
16218
16222
|
root: x8,
|
|
16219
16223
|
label: T8
|
|
16220
16224
|
}, A8 = ({ className: t, label: e, labelProps: n = {}, ...r }) => {
|
|
16221
16225
|
const i = id(), { className: o, ...s } = n;
|
|
16222
|
-
return /* @__PURE__ */ N("label", { htmlFor: i, className:
|
|
16223
|
-
/* @__PURE__ */
|
|
16226
|
+
return /* @__PURE__ */ N("label", { htmlFor: i, className: ee(Zu.label, o), ...s, children: [
|
|
16227
|
+
/* @__PURE__ */ C("input", { id: i, type: "radio", className: ee(Zu.root, t), ...r }),
|
|
16224
16228
|
e
|
|
16225
16229
|
] });
|
|
16226
|
-
}, br = (t) => /* @__PURE__ */
|
|
16230
|
+
}, br = (t) => /* @__PURE__ */ C(A8, { ...t, type: "checkbox" }), P8 = "RadioGroup-module__root__ewZw-x", L8 = "RadioGroup-module__body__k8BJAs", R8 = "RadioGroup-module__legend__tcfV7q", fa = {
|
|
16227
16231
|
root: P8,
|
|
16228
16232
|
body: L8,
|
|
16229
16233
|
legend: R8
|
|
@@ -16234,9 +16238,9 @@ const V6 = {
|
|
|
16234
16238
|
onChange: r,
|
|
16235
16239
|
value: i,
|
|
16236
16240
|
...o
|
|
16237
|
-
}) => /* @__PURE__ */ N("div", { className:
|
|
16238
|
-
n && /* @__PURE__ */
|
|
16239
|
-
/* @__PURE__ */
|
|
16241
|
+
}) => /* @__PURE__ */ N("div", { className: ee(fa.root, e), ...o, children: [
|
|
16242
|
+
n && /* @__PURE__ */ C("span", { className: fa.legend, children: n }),
|
|
16243
|
+
/* @__PURE__ */ C("div", { className: fa.body, children: $.Children.map(t, (s) => $.isValidElement(s) ? $.cloneElement(s, {
|
|
16240
16244
|
checked: !!(i != null && i[s.props.value]),
|
|
16241
16245
|
onChange: (a) => r == null ? void 0 : r({
|
|
16242
16246
|
...i,
|
|
@@ -16253,26 +16257,26 @@ const V6 = {
|
|
|
16253
16257
|
className: t,
|
|
16254
16258
|
onChange: e,
|
|
16255
16259
|
children: [
|
|
16256
|
-
/* @__PURE__ */
|
|
16257
|
-
/* @__PURE__ */
|
|
16258
|
-
/* @__PURE__ */
|
|
16260
|
+
/* @__PURE__ */ C(br, { name: "receive", value: kt.DressingRoom, label: n("dressing_room") }),
|
|
16261
|
+
/* @__PURE__ */ C(br, { name: "receive", value: kt.CheckOrder, label: n("check_order") }),
|
|
16262
|
+
/* @__PURE__ */ C(br, { name: "receive", value: kt.PayByCash, label: n("pay_by_cash") })
|
|
16259
16263
|
]
|
|
16260
16264
|
}
|
|
16261
16265
|
);
|
|
16262
16266
|
}, k8 = dt(M8), D8 = ({ className: t, onChange: e }) => {
|
|
16263
16267
|
const { t: n } = _t("send_filter"), r = _n(Kp);
|
|
16264
16268
|
return /* @__PURE__ */ N(qh, { className: t, value: r, label: n("title"), onChange: e, children: [
|
|
16265
|
-
/* @__PURE__ */
|
|
16266
|
-
/* @__PURE__ */
|
|
16267
|
-
/* @__PURE__ */
|
|
16269
|
+
/* @__PURE__ */ C(br, { name: "send", value: Dt.Return, label: n("sending_returns") }),
|
|
16270
|
+
/* @__PURE__ */ C(br, { name: "send", value: Dt.Shipping, label: n("shipping") }),
|
|
16271
|
+
/* @__PURE__ */ C(br, { name: "send", value: Dt.Payment, label: n("payment") })
|
|
16268
16272
|
] });
|
|
16269
16273
|
}, N8 = dt(D8), I8 = "TypeFilter-module__root__WH5EQV", F8 = "TypeFilter-module__button__f0mSfo", Vo = {
|
|
16270
16274
|
root: I8,
|
|
16271
16275
|
button: F8
|
|
16272
16276
|
}, j8 = ({ className: t, onChange: e, value: n }) => {
|
|
16273
16277
|
const { t: r } = _t("type_filter"), i = (o) => () => e == null ? void 0 : e(o);
|
|
16274
|
-
return /* @__PURE__ */ N("div", { className:
|
|
16275
|
-
/* @__PURE__ */
|
|
16278
|
+
return /* @__PURE__ */ N("div", { className: ee(Vo.root, t), children: [
|
|
16279
|
+
/* @__PURE__ */ C(
|
|
16276
16280
|
lt,
|
|
16277
16281
|
{
|
|
16278
16282
|
className: Vo.button,
|
|
@@ -16281,7 +16285,7 @@ const V6 = {
|
|
|
16281
16285
|
children: r("all")
|
|
16282
16286
|
}
|
|
16283
16287
|
),
|
|
16284
|
-
/* @__PURE__ */
|
|
16288
|
+
/* @__PURE__ */ C(
|
|
16285
16289
|
lt,
|
|
16286
16290
|
{
|
|
16287
16291
|
className: Vo.button,
|
|
@@ -16290,7 +16294,7 @@ const V6 = {
|
|
|
16290
16294
|
children: r("post_office")
|
|
16291
16295
|
}
|
|
16292
16296
|
),
|
|
16293
|
-
/* @__PURE__ */
|
|
16297
|
+
/* @__PURE__ */ C(
|
|
16294
16298
|
lt,
|
|
16295
16299
|
{
|
|
16296
16300
|
className: Vo.button,
|
|
@@ -16302,7 +16306,7 @@ const V6 = {
|
|
|
16302
16306
|
] });
|
|
16303
16307
|
}, B8 = ({ className: t, onChange: e }) => {
|
|
16304
16308
|
const n = _n(Zp);
|
|
16305
|
-
return /* @__PURE__ */
|
|
16309
|
+
return /* @__PURE__ */ C(j8, { value: n, className: t, onChange: e });
|
|
16306
16310
|
}, V8 = dt(B8), H8 = ({ className: t }) => {
|
|
16307
16311
|
const e = Zn("screenSm"), n = jr((c) => c.open), r = H(
|
|
16308
16312
|
(c) => _n.getState().setFilter({ type: c }),
|
|
@@ -16314,26 +16318,26 @@ const V6 = {
|
|
|
16314
16318
|
(c) => _n.getState().setFilter({ receive: c }),
|
|
16315
16319
|
[]
|
|
16316
16320
|
), s = H(() => jr.getState().toggle(!1), []), a = /* @__PURE__ */ N(wt, { children: [
|
|
16317
|
-
/* @__PURE__ */
|
|
16321
|
+
/* @__PURE__ */ C(O8, {}),
|
|
16318
16322
|
/* @__PURE__ */ N("div", { className: qt.withRightPadding, children: [
|
|
16319
|
-
/* @__PURE__ */
|
|
16320
|
-
/* @__PURE__ */
|
|
16321
|
-
/* @__PURE__ */
|
|
16322
|
-
/* @__PURE__ */
|
|
16323
|
-
/* @__PURE__ */
|
|
16324
|
-
/* @__PURE__ */
|
|
16323
|
+
/* @__PURE__ */ C(V8, { className: qt.typeFilter, onChange: r }),
|
|
16324
|
+
/* @__PURE__ */ C(da, { className: qt.separator }),
|
|
16325
|
+
/* @__PURE__ */ C(k8, { onChange: o }),
|
|
16326
|
+
/* @__PURE__ */ C(da, {}),
|
|
16327
|
+
/* @__PURE__ */ C(N8, { onChange: i }),
|
|
16328
|
+
/* @__PURE__ */ C(da, {})
|
|
16325
16329
|
] })
|
|
16326
16330
|
] });
|
|
16327
|
-
return e ? /* @__PURE__ */
|
|
16331
|
+
return e ? /* @__PURE__ */ C(
|
|
16328
16332
|
vh,
|
|
16329
16333
|
{
|
|
16330
16334
|
initialFocusRef: !1,
|
|
16331
16335
|
open: n,
|
|
16332
16336
|
snapPoints: ({ maxHeight: c }) => c - yh,
|
|
16333
16337
|
onDismiss: s,
|
|
16334
|
-
children: /* @__PURE__ */
|
|
16338
|
+
children: /* @__PURE__ */ C("div", { className: qt.sheetContent, children: a })
|
|
16335
16339
|
}
|
|
16336
|
-
) : /* @__PURE__ */
|
|
16340
|
+
) : /* @__PURE__ */ C("div", { className: ee(qt.root, t, { [qt.open]: n }), children: a });
|
|
16337
16341
|
}, U8 = "App-module__map__Kf-2JS", $8 = "App-module__sidebar__ORIzGk", z8 = "App-module__header__bgP9DA", ha = {
|
|
16338
16342
|
map: U8,
|
|
16339
16343
|
sidebar: $8,
|
|
@@ -16342,11 +16346,11 @@ const V6 = {
|
|
|
16342
16346
|
const n = Fm(t), { INN: r, cityName: i, countryAbbreviation: o, hideFilters: s, hideHeader: a, map: c, regionName: l } = n;
|
|
16343
16347
|
Mt(r, "INN is required"), jm(r, e), Mt(c == null ? void 0 : c.provider, "Map provider is required");
|
|
16344
16348
|
const u = T6(c.provider);
|
|
16345
|
-
return Cm({ cityName: i, countryAbbreviation: o, regionName: l }), /* @__PURE__ */
|
|
16346
|
-
!a && /* @__PURE__ */
|
|
16347
|
-
!s && /* @__PURE__ */
|
|
16348
|
-
/* @__PURE__ */
|
|
16349
|
-
/* @__PURE__ */
|
|
16349
|
+
return Cm({ cityName: i, countryAbbreviation: o, regionName: l }), /* @__PURE__ */ C(tp, { baseColor: "#f3f3f3", highlightColor: "#ecebeb", children: /* @__PURE__ */ C(p5, { client: q8, children: /* @__PURE__ */ C(ud.Provider, { value: n, children: /* @__PURE__ */ C(y6, { children: /* @__PURE__ */ C(q6, { children: /* @__PURE__ */ C(z6, { children: /* @__PURE__ */ C(Tv, { tolgee: Hh, fallback: /* @__PURE__ */ C(jc, {}), children: /* @__PURE__ */ C($w, { children: /* @__PURE__ */ C(hw, { children: /* @__PURE__ */ N(fw, { children: [
|
|
16350
|
+
!a && /* @__PURE__ */ C(sw, { className: ha.header }),
|
|
16351
|
+
!s && /* @__PURE__ */ C(H8, { className: ha.sidebar }),
|
|
16352
|
+
/* @__PURE__ */ C(h8, { className: ha.map, children: /* @__PURE__ */ C(u, {}) }),
|
|
16353
|
+
/* @__PURE__ */ C(Hw, {})
|
|
16350
16354
|
] }) }) }) }) }) }) }) }) }) });
|
|
16351
16355
|
}, W8 = async (t) => xi.request({
|
|
16352
16356
|
baseURL: "https://api.geo-data.omnic.solutions/api/1.0/",
|
|
@@ -16358,36 +16362,39 @@ const V6 = {
|
|
|
16358
16362
|
}), Gh = cc(null), Z8 = (t, e) => ({
|
|
16359
16363
|
...t,
|
|
16360
16364
|
...e,
|
|
16361
|
-
palette: {
|
|
16362
|
-
...t.palette,
|
|
16363
|
-
...e == null ? void 0 : e.palette
|
|
16364
|
-
},
|
|
16365
16365
|
inputs: e != null && e.inputs ? { ...t.inputs, ...e.inputs } : t.inputs,
|
|
16366
16366
|
handlers: e != null && e.handlers ? { ...t.handlers, ...e.handlers } : t.handlers
|
|
16367
|
-
}),
|
|
16368
|
-
const [e, n] =
|
|
16369
|
-
if (
|
|
16367
|
+
}), c9 = ({ children: t }) => {
|
|
16368
|
+
const [e, n] = J(), [r, i] = J(), [o, s] = J(), a = B(null), c = B(null), l = B(!1), u = H((f) => {
|
|
16369
|
+
if (l.current) {
|
|
16370
16370
|
console.warn("Widget already launched");
|
|
16371
16371
|
return;
|
|
16372
16372
|
}
|
|
16373
|
-
|
|
16374
|
-
}, []),
|
|
16375
|
-
widgetOutHolderRef:
|
|
16376
|
-
widgetLocationsRef:
|
|
16377
|
-
launchWidget:
|
|
16378
|
-
|
|
16379
|
-
|
|
16380
|
-
|
|
16381
|
-
|
|
16373
|
+
l.current = !0, n(f);
|
|
16374
|
+
}, []), d = we(() => ({
|
|
16375
|
+
widgetOutHolderRef: a,
|
|
16376
|
+
widgetLocationsRef: c,
|
|
16377
|
+
launchWidget: u,
|
|
16378
|
+
setLocale: i,
|
|
16379
|
+
setMapPlaceholderConfig: s
|
|
16380
|
+
}), [u]);
|
|
16381
|
+
return /* @__PURE__ */ N(Gh.Provider, { value: d, children: [
|
|
16382
|
+
/* @__PURE__ */ C("div", { ref: a, style: { position: "fixed", left: "-9999px", top: "-9999px" }, children: /* @__PURE__ */ C(
|
|
16382
16383
|
"div",
|
|
16383
16384
|
{
|
|
16384
|
-
ref:
|
|
16385
|
+
ref: c,
|
|
16385
16386
|
id: "@omnic/widget-locations",
|
|
16386
16387
|
style: {
|
|
16387
16388
|
height: "100%",
|
|
16388
16389
|
width: "100%"
|
|
16389
16390
|
},
|
|
16390
|
-
children: e && /* @__PURE__ */
|
|
16391
|
+
children: e && /* @__PURE__ */ C(
|
|
16392
|
+
G8,
|
|
16393
|
+
{
|
|
16394
|
+
options: e.options,
|
|
16395
|
+
config: Z8(e.config, { ...o, ...r && { locale: r } })
|
|
16396
|
+
}
|
|
16397
|
+
)
|
|
16391
16398
|
}
|
|
16392
16399
|
) }),
|
|
16393
16400
|
t
|
|
@@ -16399,33 +16406,35 @@ function K8() {
|
|
|
16399
16406
|
throw new Error("Please use hook useWidgetLocationsContext inside WidgetLocationsProvider");
|
|
16400
16407
|
return t;
|
|
16401
16408
|
}
|
|
16402
|
-
const
|
|
16403
|
-
const { widgetLocationsRef:
|
|
16404
|
-
return j(() => {
|
|
16405
|
-
|
|
16406
|
-
|
|
16407
|
-
|
|
16409
|
+
const Q8 = (t) => t === void 0 || typeof t == "object" && Object.keys(t).length === 0, l9 = ({ config: t }) => {
|
|
16410
|
+
const { setMapPlaceholderConfig: e, widgetLocationsRef: n, widgetOutHolderRef: r } = K8(), i = B(null);
|
|
16411
|
+
return j(() => (e(Q8(t) ? void 0 : t), () => {
|
|
16412
|
+
e(void 0);
|
|
16413
|
+
}), [t, e]), j(() => {
|
|
16414
|
+
const o = r.current, s = n.current, a = i.current;
|
|
16415
|
+
return s && a && a.appendChild(s), () => {
|
|
16416
|
+
s && o && o.appendChild(s);
|
|
16408
16417
|
};
|
|
16409
|
-
}, [
|
|
16418
|
+
}, [n, r]), /* @__PURE__ */ C("div", { ref: i, style: { width: "100%", height: "100%" } });
|
|
16410
16419
|
};
|
|
16411
16420
|
export {
|
|
16412
16421
|
kt as EReceiveFilter,
|
|
16413
16422
|
Dt as ESendFilter,
|
|
16414
16423
|
an as ETypeFilter,
|
|
16415
|
-
|
|
16424
|
+
l9 as MapPlaceholder,
|
|
16416
16425
|
G8 as Widget,
|
|
16417
|
-
|
|
16426
|
+
c9 as WidgetLocationsProvider,
|
|
16418
16427
|
hl as createPointsIterator,
|
|
16419
16428
|
fl as fetchPointsRequest,
|
|
16420
|
-
|
|
16421
|
-
|
|
16429
|
+
n9 as fromHoursMinutesToMinutes,
|
|
16430
|
+
r9 as fromMinutesToHoursMinutes,
|
|
16422
16431
|
ml as getAddressFormGeocode,
|
|
16423
|
-
|
|
16432
|
+
i9 as getBoundsFromPoint,
|
|
16424
16433
|
jd as getCurrentPosition,
|
|
16425
16434
|
W8 as getNormalizedAddress,
|
|
16426
16435
|
ym as getPropertyValue,
|
|
16427
16436
|
pl as isCoordinates,
|
|
16428
|
-
|
|
16437
|
+
o9 as isDeliveryPoint,
|
|
16429
16438
|
vm as isHttpSuccess,
|
|
16430
16439
|
gm as isPlaceId,
|
|
16431
16440
|
bm as placeToPlaceResult,
|