@omnic/widget-locations 1.1.80 → 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/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/widget.cjs.js +18 -18
- package/dist/lib/widget.esm.js +160 -155
- package/package.json +2 -2
package/dist/lib/widget.esm.js
CHANGED
|
@@ -17,7 +17,7 @@ var ao = (t, e, n, r) => ({
|
|
|
17
17
|
}), te = (t, e, n) => (js(t, e, "access private method"), n);
|
|
18
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;
|
|
@@ -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
|
];
|
|
@@ -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,
|
|
@@ -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,
|
|
@@ -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() {
|
|
@@ -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,
|
|
@@ -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,
|
|
@@ -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)
|
|
@@ -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,
|
|
@@ -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({
|
|
@@ -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,14 +4248,14 @@ 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
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;
|
|
@@ -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,7 +5115,7 @@ 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 };
|
|
@@ -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__ */ C("div", { className:
|
|
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,14 +5188,14 @@ 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
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
5200
|
n && /* @__PURE__ */ C(is, { className: Jr.spinner })
|
|
5201
5201
|
] });
|
|
@@ -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__ */ C("div", { ...n, className:
|
|
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(
|
|
@@ -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 = {
|
|
@@ -5322,19 +5322,19 @@ const e1 = "LocationView-module__title__-wT0bl", t1 = "LocationView-module__logo
|
|
|
5322
5322
|
llama: sf
|
|
5323
5323
|
}, S1 = ({ classes: t, hideActions: e, location: n, onClose: r, onSubmit: i }) => {
|
|
5324
5324
|
var v, S, E;
|
|
5325
|
-
const [o, s] =
|
|
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:
|
|
5330
|
+
/* @__PURE__ */ N("div", { className: ee(Ee.header, t == null ? void 0 : t.header), children: [
|
|
5331
5331
|
/* @__PURE__ */ C(Hr, { onClick: r }),
|
|
5332
5332
|
/* @__PURE__ */ N("div", { className: Ee.title, children: [
|
|
5333
5333
|
/* @__PURE__ */ C("div", { className: Ee.logo, children: /* @__PURE__ */ C(y, {}) }),
|
|
5334
5334
|
/* @__PURE__ */ C("span", { children: n.name })
|
|
5335
5335
|
] })
|
|
5336
5336
|
] }),
|
|
5337
|
-
/* @__PURE__ */ N("div", { className:
|
|
5337
|
+
/* @__PURE__ */ N("div", { className: ee(Ee.content, t == null ? void 0 : t.content), children: [
|
|
5338
5338
|
/* @__PURE__ */ N("section", { className: Ee.section, children: [
|
|
5339
5339
|
/* @__PURE__ */ N("span", { children: [
|
|
5340
5340
|
a("address"),
|
|
@@ -5403,10 +5403,10 @@ const e1 = "LocationView-module__title__-wT0bl", t1 = "LocationView-module__logo
|
|
|
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__ */ C("div", { className:
|
|
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,7 +5416,7 @@ 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
|
}, []);
|
|
@@ -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
|
});
|
|
@@ -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))
|
|
@@ -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) {
|
|
@@ -8995,7 +8995,7 @@ 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
9000
|
if (S || E)
|
|
9001
9001
|
L = A = v.parent || new Ba(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,
|
|
@@ -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];
|
|
@@ -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";
|
|
@@ -11337,7 +11337,7 @@ var _u = { DRAG: { target: "#overlay.dragging", actions: "onOpenEnd" } }, Su = {
|
|
|
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
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 =
|
|
11340
|
+
var M = J(!1), W = M[0], U = M[1], ie = J({}), be = ie[0], le = ie[1], ge = H(function(ve) {
|
|
11341
11341
|
return le(function(Ce) {
|
|
11342
11342
|
var K;
|
|
11343
11343
|
return Ve({}, Ce, ((K = {})[ve] = !1, K));
|
|
@@ -11352,9 +11352,9 @@ 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 = B(!1),
|
|
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 };
|
|
@@ -11452,7 +11452,7 @@ 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
11457
|
}), Zc = Wc[0], Fs = Wc[1], Kc = Zc > 0, so = B(0);
|
|
11458
11458
|
return nn(Zr ? "controlled" : "auto"), j(function() {
|
|
@@ -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
|
}
|
|
@@ -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(() => {
|
|
@@ -11801,7 +11801,7 @@ const yh = 28, o4 = "MapGoogle-module__root__Vi-sMl", s4 = "MapGoogle-module__ma
|
|
|
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 } =
|
|
11804
|
+
const n = Zn("screenSm"), r = ut((c) => c.location), i = !!r, o = wc({ isSelectedPoint: i }), { isIdle: s } = Y();
|
|
11805
11805
|
return n && r ? /* @__PURE__ */ C(
|
|
11806
11806
|
bh,
|
|
11807
11807
|
{
|
|
@@ -11814,7 +11814,7 @@ const yh = 28, o4 = "MapGoogle-module__root__Vi-sMl", s4 = "MapGoogle-module__ma
|
|
|
11814
11814
|
) : null;
|
|
11815
11815
|
}, S4 = "Overlay-module__root__3qTsUC", C4 = {
|
|
11816
11816
|
root: S4
|
|
11817
|
-
}, wh = ({ children: t, className: e }) => /* @__PURE__ */ C("div", { className:
|
|
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" />
|
|
@@ -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,
|
|
@@ -14841,7 +14841,7 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
14841
14841
|
}) => {
|
|
14842
14842
|
var h;
|
|
14843
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:
|
|
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
14847
|
u ? /* @__PURE__ */ C(et, { circle: !0, width: 40, height: 40 }) : /* @__PURE__ */ C("div", { className: Ot.icon, children: /* @__PURE__ */ C(p, {}) }),
|
|
@@ -14892,7 +14892,7 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
14892
14892
|
point: i,
|
|
14893
14893
|
setMarkerRef: o
|
|
14894
14894
|
}) => {
|
|
14895
|
-
const [s, a] =
|
|
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]);
|
|
@@ -14999,7 +14999,7 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
14999
14999
|
map: null,
|
|
15000
15000
|
onClusterClick: s
|
|
15001
15001
|
})
|
|
15002
|
-
), l = B([]), [u, d] =
|
|
15002
|
+
), l = B([]), [u, d] = J([]);
|
|
15003
15003
|
j(() => {
|
|
15004
15004
|
d([]), c.current.clearMarkers();
|
|
15005
15005
|
}, [e, o]), j(() => {
|
|
@@ -15061,7 +15061,7 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15061
15061
|
onClick: s,
|
|
15062
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
15066
|
/* @__PURE__ */ C(Fh, { className: Ut.logo }),
|
|
15067
15067
|
/* @__PURE__ */ C("span", { className: Ut.title, children: f ? h : p }),
|
|
@@ -15074,7 +15074,7 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
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
|
}
|
|
@@ -15087,7 +15087,7 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
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
|
|
@@ -15120,7 +15120,7 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
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 } = _e(), { t: u } = _t(["details_modal", "courier_balloon", "common"]), d = we(() => t6({ set: r, hideDeliveryTime: a }), [a, r]), [f, g] =
|
|
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: "",
|
|
@@ -15199,14 +15199,14 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15199
15199
|
h({ payload: w.target.value, type: "SET_COMMENT" });
|
|
15200
15200
|
}, S = ys(c == null ? void 0 : c.apartment), E = ys(c == null ? void 0 : c.comment);
|
|
15201
15201
|
return /* @__PURE__ */ N(wt, { children: [
|
|
15202
|
-
/* @__PURE__ */ N("div", { className:
|
|
15202
|
+
/* @__PURE__ */ N("div", { className: ee(We.header, t == null ? void 0 : t.header), children: [
|
|
15203
15203
|
/* @__PURE__ */ C(Hr, { onClick: i }),
|
|
15204
15204
|
/* @__PURE__ */ N("div", { className: We.title, children: [
|
|
15205
15205
|
/* @__PURE__ */ C(Fh, { className: We.logo }),
|
|
15206
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"),
|
|
@@ -15231,7 +15231,7 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15231
15231
|
] }),
|
|
15232
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
|
":"
|
|
@@ -15239,7 +15239,7 @@ const Eb = "LocationBalloon-module__root__GtUl6q", Ob = "LocationBalloon-module_
|
|
|
15239
15239
|
/* @__PURE__ */ C(Wu, { ...E, className: We.comment, onChange: v })
|
|
15240
15240
|
] })
|
|
15241
15241
|
] }),
|
|
15242
|
-
/* @__PURE__ */ C("div", { className:
|
|
15242
|
+
/* @__PURE__ */ C("div", { className: ee(We.actions, { [We.actionsHidden]: e }), children: /* @__PURE__ */ C(
|
|
15243
15243
|
lt,
|
|
15244
15244
|
{
|
|
15245
15245
|
loading: f,
|
|
@@ -15264,7 +15264,7 @@ 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: "",
|
|
@@ -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));
|
|
@@ -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 {
|
|
@@ -15481,7 +15481,7 @@ const Bh = cc(null), y6 = ({ children: t }) => {
|
|
|
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,
|
|
@@ -15514,7 +15514,7 @@ const Bh = cc(null), y6 = ({ children: t }) => {
|
|
|
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,
|
|
@@ -15526,11 +15526,11 @@ const Bh = cc(null), y6 = ({ children: t }) => {
|
|
|
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,18 +15540,18 @@ 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
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;
|
|
@@ -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,14 +15589,14 @@ 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
15602
|
o && /* @__PURE__ */ C(
|
|
@@ -15605,7 +15605,7 @@ const Bh = cc(null), y6 = ({ children: t }) => {
|
|
|
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
|
}
|
|
@@ -15715,7 +15715,7 @@ const Hh = Ov().use(fv()).use(rv()).init({
|
|
|
15715
15715
|
}, [t]);
|
|
15716
15716
|
}, B6 = 500, lr = [];
|
|
15717
15717
|
function Uh(t = {}) {
|
|
15718
|
-
const { country: e, globalSearch: n } = _e(), { debounceMs: r = B6, onPlaceSelect: i, types: o } = t, s = n ? void 0 : e, a = bc("places"), [c, l] =
|
|
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
15719
|
_.current = i;
|
|
15720
15720
|
const v = H(() => a ? (h.current || (h.current = new a.AutocompleteSessionToken()), h.current) : null, [a]), S = H(() => {
|
|
15721
15721
|
h.current = null;
|
|
@@ -15804,7 +15804,7 @@ const V6 = {
|
|
|
15804
15804
|
const { cornersVariant: e, font: n, locale: r, palette: i, radius: o, startScreen: s } = _e();
|
|
15805
15805
|
return j6(n), N6(r), I6(i), F6(o), U6(s), $6(e), /* @__PURE__ */ C(wt, { children: t });
|
|
15806
15806
|
}, q6 = ({ children: t }) => {
|
|
15807
|
-
const { disableGeolocation: e, map: n } = _e(), [r, i] =
|
|
15807
|
+
const { disableGeolocation: e, map: n } = _e(), [r, i] = J(e), { loaded: o } = Y();
|
|
15808
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(() => {
|
|
15809
15809
|
!o || e || r || jd({
|
|
15810
15810
|
success: (s) => {
|
|
@@ -15816,14 +15816,14 @@ const V6 = {
|
|
|
15816
15816
|
});
|
|
15817
15817
|
}, [e, r, o, n]), t;
|
|
15818
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 = () => {
|
|
15819
|
-
Mn.getState().toggle(!0),
|
|
15819
|
+
Mn.getState().toggle(!0), Y.getState().setDetailsOpen(!1), Ie.getState().setDeliverPoint(null), ut.getState().setSelectedLocation(null);
|
|
15820
15820
|
}, Z6 = "CurrentLocation-module__root__AeQCGT", K6 = "CurrentLocation-module__icon__459m9q", Q6 = "CurrentLocation-module__text__w-9v28", ua = {
|
|
15821
15821
|
root: Z6,
|
|
15822
15822
|
icon: K6,
|
|
15823
15823
|
text: Q6
|
|
15824
15824
|
}, $h = ({ className: t }) => {
|
|
15825
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");
|
|
15826
|
-
return /* @__PURE__ */ N("div", { role: "presentation", className:
|
|
15826
|
+
return /* @__PURE__ */ N("div", { role: "presentation", className: ee(ua.root, t), onClick: W6, children: [
|
|
15827
15827
|
/* @__PURE__ */ C(G6, { className: ua.icon }),
|
|
15828
15828
|
/* @__PURE__ */ C("span", { className: ua.text, children: o })
|
|
15829
15829
|
] });
|
|
@@ -15842,16 +15842,16 @@ const V6 = {
|
|
|
15842
15842
|
const n = rw[e];
|
|
15843
15843
|
return /* @__PURE__ */ C("div", { className: fi.logo, children: /* @__PURE__ */ C(n, {}) });
|
|
15844
15844
|
}, ow = ({ className: t }) => {
|
|
15845
|
-
const { t: e } = _t("header"), { disableDelivery: n } = _e(), r =
|
|
15845
|
+
const { t: e } = _t("header"), { disableDelivery: n } = _e(), r = Y(Vp), i = Ie(uc);
|
|
15846
15846
|
j(() => {
|
|
15847
|
-
i ?
|
|
15847
|
+
i ? Y.getState().setMode("location_delivery") : Y.getState().setMode("self_pickup");
|
|
15848
15848
|
}, [i]);
|
|
15849
15849
|
const o = () => {
|
|
15850
|
-
Ie.getState().setDeliverPoint(null),
|
|
15850
|
+
Ie.getState().setDeliverPoint(null), Y.getState().setMode("self_pickup");
|
|
15851
15851
|
}, s = () => {
|
|
15852
|
-
Ie.getState().setDeliverPoint(null),
|
|
15852
|
+
Ie.getState().setDeliverPoint(null), Y.getState().setMode("location_delivery");
|
|
15853
15853
|
}, a = r === "self_pickup", c = r === "location_delivery";
|
|
15854
|
-
return /* @__PURE__ */ N("div", { className:
|
|
15854
|
+
return /* @__PURE__ */ N("div", { className: ee(fi.root, t), children: [
|
|
15855
15855
|
/* @__PURE__ */ C(iw, {}),
|
|
15856
15856
|
/* @__PURE__ */ N("nav", { className: fi.nav, children: [
|
|
15857
15857
|
!n && /* @__PURE__ */ C(
|
|
@@ -15882,7 +15882,7 @@ const V6 = {
|
|
|
15882
15882
|
}, jr = Qt((t) => ({
|
|
15883
15883
|
...aw,
|
|
15884
15884
|
toggle(e) {
|
|
15885
|
-
|
|
15885
|
+
Y.getState().setDetailsOpen(!1), Ie.getState().setDeliverPoint(null), ut.getState().setSelectedLocation(null), t((n) => ({ open: e ?? !n.open }));
|
|
15886
15886
|
}
|
|
15887
15887
|
})), cw = "Layout-module__root__qzPL-f", lw = "Layout-module__headerHidden__JEN-d0", uw = "Layout-module__sidebarHidden__x017O3", dw = "Layout-module__sidebarOpen__IZnIjs", Fo = {
|
|
15888
15888
|
root: cw,
|
|
@@ -15894,7 +15894,7 @@ const V6 = {
|
|
|
15894
15894
|
return /* @__PURE__ */ C(
|
|
15895
15895
|
"div",
|
|
15896
15896
|
{
|
|
15897
|
-
className:
|
|
15897
|
+
className: ee(Fo.root, {
|
|
15898
15898
|
[Fo.sidebarOpen]: r,
|
|
15899
15899
|
[Fo.headerHidden]: n,
|
|
15900
15900
|
[Fo.sidebarHidden]: e
|
|
@@ -15913,7 +15913,7 @@ const V6 = {
|
|
|
15913
15913
|
}, yw = ({ children: t, className: e, open: n }) => /* @__PURE__ */ N(
|
|
15914
15914
|
"div",
|
|
15915
15915
|
{
|
|
15916
|
-
className:
|
|
15916
|
+
className: ee(jo.root, e, {
|
|
15917
15917
|
[jo.open]: n
|
|
15918
15918
|
}),
|
|
15919
15919
|
children: [
|
|
@@ -15958,7 +15958,7 @@ const V6 = {
|
|
|
15958
15958
|
[i, o]
|
|
15959
15959
|
);
|
|
15960
15960
|
const d = Vh(n, u);
|
|
15961
|
-
return /* @__PURE__ */ N("label", { htmlFor: a.id ?? l, className:
|
|
15961
|
+
return /* @__PURE__ */ N("label", { htmlFor: a.id ?? l, className: ee(ur.locationSearchRoot, t), children: [
|
|
15962
15962
|
r && /* @__PURE__ */ C("span", { className: ur.label, children: r }),
|
|
15963
15963
|
/* @__PURE__ */ N("div", { className: ur.inputContainer, children: [
|
|
15964
15964
|
s && /* @__PURE__ */ C("div", { className: ur.startAdornment, children: s }),
|
|
@@ -16027,7 +16027,7 @@ const V6 = {
|
|
|
16027
16027
|
}, p = (h) => {
|
|
16028
16028
|
t.setValue(h.description), t.clearSuggestions(), t.handleSelect(h.placeId);
|
|
16029
16029
|
};
|
|
16030
|
-
return /* @__PURE__ */ N("div", { ref: u, className:
|
|
16030
|
+
return /* @__PURE__ */ N("div", { ref: u, className: ee(fr.container, e), children: [
|
|
16031
16031
|
/* @__PURE__ */ C(
|
|
16032
16032
|
xw,
|
|
16033
16033
|
{
|
|
@@ -16109,9 +16109,9 @@ const V6 = {
|
|
|
16109
16109
|
types: [],
|
|
16110
16110
|
onPlaceSelect: i
|
|
16111
16111
|
}), s = () => {
|
|
16112
|
-
o.value &&
|
|
16112
|
+
o.value && Y.getState().setBlurred(!0), Y.getState().setDetailsOpen(!1), Ie.getState().setDeliverPoint(null), ut.getState().setSelectedLocation(null);
|
|
16113
16113
|
}, a = () => {
|
|
16114
|
-
|
|
16114
|
+
Y.getState().setBlurred(!1);
|
|
16115
16115
|
}, c = ys(n == null ? void 0 : n.address);
|
|
16116
16116
|
return /* @__PURE__ */ C(
|
|
16117
16117
|
zh,
|
|
@@ -16127,15 +16127,15 @@ const V6 = {
|
|
|
16127
16127
|
onFocus: s
|
|
16128
16128
|
}
|
|
16129
16129
|
);
|
|
16130
|
-
}, Gw = ({ className: t }) =>
|
|
16130
|
+
}, Gw = ({ className: t }) => Y($p) ? /* @__PURE__ */ C(qw, { className: t }) : null, Ww = dt(Gw), Zw = "DeliveryDetailsModal-module__root__qwKnjX", Kw = {
|
|
16131
16131
|
root: Zw
|
|
16132
|
-
}, Qw = ({ className: t, location: e, onClose: n, onSubmit: r }) => /* @__PURE__ */ C("div", { className:
|
|
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 = {
|
|
16133
16133
|
root: Jw
|
|
16134
16134
|
}, Yw = ({ className: t, location: e, onClose: n, onSubmit: r }) => {
|
|
16135
16135
|
const i = () => {
|
|
16136
16136
|
r == null || r(e);
|
|
16137
16137
|
};
|
|
16138
|
-
return /* @__PURE__ */ C("div", { className:
|
|
16138
|
+
return /* @__PURE__ */ C("div", { className: ee(Xw.root, t), children: /* @__PURE__ */ C(wf, { location: e, onClose: n, onSubmit: i }) });
|
|
16139
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 = {
|
|
16140
16140
|
root: e8,
|
|
16141
16141
|
mapWrapper: t8,
|
|
@@ -16146,11 +16146,11 @@ const V6 = {
|
|
|
16146
16146
|
filterIcon: s8,
|
|
16147
16147
|
details: a8
|
|
16148
16148
|
}, c8 = () => {
|
|
16149
|
-
const { onPointClick: t } = _e(), e =
|
|
16150
|
-
|
|
16149
|
+
const { onPointClick: t } = _e(), e = Y(dc), n = ut(Gp), r = Ie(uc), i = H(() => {
|
|
16150
|
+
Y.getState().setDetailsOpen(!1);
|
|
16151
16151
|
}, []), o = H(
|
|
16152
16152
|
(s) => {
|
|
16153
|
-
t == null || t(s),
|
|
16153
|
+
t == null || t(s), Y.getState().setDetailsOpen(!1), ut.getState().setSelectedLocation(null), Ie.getState().setDeliverPoint(null);
|
|
16154
16154
|
},
|
|
16155
16155
|
[t]
|
|
16156
16156
|
);
|
|
@@ -16182,7 +16182,7 @@ const V6 = {
|
|
|
16182
16182
|
"div",
|
|
16183
16183
|
{
|
|
16184
16184
|
role: "presentation",
|
|
16185
|
-
className:
|
|
16185
|
+
className: ee(Rt.filterButton, { [Rt.sidebarOpen]: t }),
|
|
16186
16186
|
onClick: n ? void 0 : r,
|
|
16187
16187
|
children: [
|
|
16188
16188
|
n && /* @__PURE__ */ C($h, {}),
|
|
@@ -16191,16 +16191,16 @@ const V6 = {
|
|
|
16191
16191
|
}
|
|
16192
16192
|
);
|
|
16193
16193
|
}, f8 = ({ children: t, className: e }) => {
|
|
16194
|
-
const { hideFilters: n, hideSearchInput: r } = _e(), i =
|
|
16195
|
-
return /* @__PURE__ */ N("div", { className:
|
|
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
16196
|
!r && !o && /* @__PURE__ */ C(Ww, { className: Rt.locationSelector }),
|
|
16197
16197
|
!n && /* @__PURE__ */ C(d8, {}),
|
|
16198
|
-
/* @__PURE__ */ C("div", { className:
|
|
16198
|
+
/* @__PURE__ */ C("div", { className: ee(Rt.mapWrapper, { [Rt.wrapperBlurred]: i }), children: t }),
|
|
16199
16199
|
/* @__PURE__ */ C(c8, {})
|
|
16200
16200
|
] });
|
|
16201
16201
|
}, h8 = dt(f8), p8 = "Separator-module__root__eQtZey", m8 = {
|
|
16202
16202
|
root: p8
|
|
16203
|
-
}, da = ({ className: t, ...e }) => /* @__PURE__ */ C("hr", { className:
|
|
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 = {
|
|
16204
16204
|
root: g8,
|
|
16205
16205
|
closeButton: v8,
|
|
16206
16206
|
open: y8,
|
|
@@ -16223,8 +16223,8 @@ const V6 = {
|
|
|
16223
16223
|
label: T8
|
|
16224
16224
|
}, A8 = ({ className: t, label: e, labelProps: n = {}, ...r }) => {
|
|
16225
16225
|
const i = id(), { className: o, ...s } = n;
|
|
16226
|
-
return /* @__PURE__ */ N("label", { htmlFor: i, className:
|
|
16227
|
-
/* @__PURE__ */ C("input", { id: i, type: "radio", className:
|
|
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 }),
|
|
16228
16228
|
e
|
|
16229
16229
|
] });
|
|
16230
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 = {
|
|
@@ -16238,7 +16238,7 @@ const V6 = {
|
|
|
16238
16238
|
onChange: r,
|
|
16239
16239
|
value: i,
|
|
16240
16240
|
...o
|
|
16241
|
-
}) => /* @__PURE__ */ N("div", { className:
|
|
16241
|
+
}) => /* @__PURE__ */ N("div", { className: ee(fa.root, e), ...o, children: [
|
|
16242
16242
|
n && /* @__PURE__ */ C("span", { className: fa.legend, children: n }),
|
|
16243
16243
|
/* @__PURE__ */ C("div", { className: fa.body, children: $.Children.map(t, (s) => $.isValidElement(s) ? $.cloneElement(s, {
|
|
16244
16244
|
checked: !!(i != null && i[s.props.value]),
|
|
@@ -16275,7 +16275,7 @@ const V6 = {
|
|
|
16275
16275
|
button: F8
|
|
16276
16276
|
}, j8 = ({ className: t, onChange: e, value: n }) => {
|
|
16277
16277
|
const { t: r } = _t("type_filter"), i = (o) => () => e == null ? void 0 : e(o);
|
|
16278
|
-
return /* @__PURE__ */ N("div", { className:
|
|
16278
|
+
return /* @__PURE__ */ N("div", { className: ee(Vo.root, t), children: [
|
|
16279
16279
|
/* @__PURE__ */ C(
|
|
16280
16280
|
lt,
|
|
16281
16281
|
{
|
|
@@ -16337,7 +16337,7 @@ const V6 = {
|
|
|
16337
16337
|
onDismiss: s,
|
|
16338
16338
|
children: /* @__PURE__ */ C("div", { className: qt.sheetContent, children: a })
|
|
16339
16339
|
}
|
|
16340
|
-
) : /* @__PURE__ */ C("div", { className:
|
|
16340
|
+
) : /* @__PURE__ */ C("div", { className: ee(qt.root, t, { [qt.open]: n }), children: a });
|
|
16341
16341
|
}, U8 = "App-module__map__Kf-2JS", $8 = "App-module__sidebar__ORIzGk", z8 = "App-module__header__bgP9DA", ha = {
|
|
16342
16342
|
map: U8,
|
|
16343
16343
|
sidebar: $8,
|
|
@@ -16362,36 +16362,39 @@ const V6 = {
|
|
|
16362
16362
|
}), Gh = cc(null), Z8 = (t, e) => ({
|
|
16363
16363
|
...t,
|
|
16364
16364
|
...e,
|
|
16365
|
-
palette: {
|
|
16366
|
-
...t.palette,
|
|
16367
|
-
...e == null ? void 0 : e.palette
|
|
16368
|
-
},
|
|
16369
16365
|
inputs: e != null && e.inputs ? { ...t.inputs, ...e.inputs } : t.inputs,
|
|
16370
16366
|
handlers: e != null && e.handlers ? { ...t.handlers, ...e.handlers } : t.handlers
|
|
16371
|
-
}),
|
|
16372
|
-
const [e, n] =
|
|
16373
|
-
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) {
|
|
16374
16370
|
console.warn("Widget already launched");
|
|
16375
16371
|
return;
|
|
16376
16372
|
}
|
|
16377
|
-
|
|
16378
|
-
}, []),
|
|
16379
|
-
widgetOutHolderRef:
|
|
16380
|
-
widgetLocationsRef:
|
|
16381
|
-
launchWidget:
|
|
16382
|
-
|
|
16383
|
-
|
|
16384
|
-
|
|
16385
|
-
|
|
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(
|
|
16386
16383
|
"div",
|
|
16387
16384
|
{
|
|
16388
|
-
ref:
|
|
16385
|
+
ref: c,
|
|
16389
16386
|
id: "@omnic/widget-locations",
|
|
16390
16387
|
style: {
|
|
16391
16388
|
height: "100%",
|
|
16392
16389
|
width: "100%"
|
|
16393
16390
|
},
|
|
16394
|
-
children: e && /* @__PURE__ */ C(
|
|
16391
|
+
children: e && /* @__PURE__ */ C(
|
|
16392
|
+
G8,
|
|
16393
|
+
{
|
|
16394
|
+
options: e.options,
|
|
16395
|
+
config: Z8(e.config, { ...o, ...r && { locale: r } })
|
|
16396
|
+
}
|
|
16397
|
+
)
|
|
16395
16398
|
}
|
|
16396
16399
|
) }),
|
|
16397
16400
|
t
|
|
@@ -16403,33 +16406,35 @@ function K8() {
|
|
|
16403
16406
|
throw new Error("Please use hook useWidgetLocationsContext inside WidgetLocationsProvider");
|
|
16404
16407
|
return t;
|
|
16405
16408
|
}
|
|
16406
|
-
const
|
|
16407
|
-
const { widgetLocationsRef:
|
|
16408
|
-
return j(() => {
|
|
16409
|
-
|
|
16410
|
-
|
|
16411
|
-
|
|
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);
|
|
16412
16417
|
};
|
|
16413
|
-
}, [
|
|
16418
|
+
}, [n, r]), /* @__PURE__ */ C("div", { ref: i, style: { width: "100%", height: "100%" } });
|
|
16414
16419
|
};
|
|
16415
16420
|
export {
|
|
16416
16421
|
kt as EReceiveFilter,
|
|
16417
16422
|
Dt as ESendFilter,
|
|
16418
16423
|
an as ETypeFilter,
|
|
16419
|
-
|
|
16424
|
+
l9 as MapPlaceholder,
|
|
16420
16425
|
G8 as Widget,
|
|
16421
|
-
|
|
16426
|
+
c9 as WidgetLocationsProvider,
|
|
16422
16427
|
hl as createPointsIterator,
|
|
16423
16428
|
fl as fetchPointsRequest,
|
|
16424
|
-
|
|
16425
|
-
|
|
16429
|
+
n9 as fromHoursMinutesToMinutes,
|
|
16430
|
+
r9 as fromMinutesToHoursMinutes,
|
|
16426
16431
|
ml as getAddressFormGeocode,
|
|
16427
|
-
|
|
16432
|
+
i9 as getBoundsFromPoint,
|
|
16428
16433
|
jd as getCurrentPosition,
|
|
16429
16434
|
W8 as getNormalizedAddress,
|
|
16430
16435
|
ym as getPropertyValue,
|
|
16431
16436
|
pl as isCoordinates,
|
|
16432
|
-
|
|
16437
|
+
o9 as isDeliveryPoint,
|
|
16433
16438
|
vm as isHttpSuccess,
|
|
16434
16439
|
gm as isPlaceId,
|
|
16435
16440
|
bm as placeToPlaceResult,
|