@dynamo-caffeina-dev/locator-frontend 0.7.0 → 0.7.2
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/{GoogleMapsProvider-DQGZSsz5.js → GoogleMapsProvider-DUQKbaQl.js} +2 -2
- package/dist/{GoogleMapsProvider-DQGZSsz5.js.map → GoogleMapsProvider-DUQKbaQl.js.map} +1 -1
- package/dist/{index-DZTdTGr2.js → index-7kTwTYmp.js} +672 -670
- package/dist/{index-DZTdTGr2.js.map → index-7kTwTYmp.js.map} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +7 -7
- package/dist/index.umd.js.map +1 -1
- package/dist/locator-frontend.css +1 -1
- package/package.json +1 -1
|
@@ -3,10 +3,10 @@ var Xl = (t, e, n) => e in t ? Ul(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var qn = (t, e, n) => Xl(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
4
|
import { jsx as b, jsxs as D, Fragment as qe } from "react/jsx-runtime";
|
|
5
5
|
import * as et from "react";
|
|
6
|
-
import K, { useContext as U, createContext as Dt, useState as X, Suspense as ql, lazy as Vr, forwardRef as J, createElement as Ge, useRef as q, useLayoutEffect as Vn, useEffect as N, useId as Gl, useCallback as vt, useMemo as ht, useInsertionEffect as Wl, Fragment as
|
|
6
|
+
import K, { useContext as U, createContext as Dt, useState as X, Suspense as ql, lazy as Vr, forwardRef as J, createElement as Ge, useRef as q, useLayoutEffect as Vn, useEffect as N, useId as Gl, useCallback as vt, useMemo as ht, useInsertionEffect as Wl, Fragment as Br, Component as vi, isValidElement as Kl, useImperativeHandle as bi, useReducer as Ci, Children as Hl, createRef as Zl } from "react";
|
|
7
7
|
import { createPortal as Mn } from "react-dom";
|
|
8
8
|
var qt = /* @__PURE__ */ ((t) => (t[t.CLUSTER = 0] = "CLUSTER", t[t.MARKER = 1] = "MARKER", t))(qt || {});
|
|
9
|
-
const
|
|
9
|
+
const _s = (t) => {
|
|
10
10
|
let e;
|
|
11
11
|
const n = /* @__PURE__ */ new Set(), r = (c, u) => {
|
|
12
12
|
const d = typeof c == "function" ? c(e) : c;
|
|
@@ -16,7 +16,7 @@ const ws = (t) => {
|
|
|
16
16
|
}
|
|
17
17
|
}, s = () => e, a = { setState: r, getState: s, getInitialState: () => l, subscribe: (c) => (n.add(c), () => n.delete(c)) }, l = e = t(r, s, a);
|
|
18
18
|
return a;
|
|
19
|
-
}, Yl = (t) => t ?
|
|
19
|
+
}, Yl = (t) => t ? _s(t) : _s, Jl = (t) => t;
|
|
20
20
|
function Ql(t, e = Jl) {
|
|
21
21
|
const n = K.useSyncExternalStore(
|
|
22
22
|
t.subscribe,
|
|
@@ -25,7 +25,7 @@ function Ql(t, e = Jl) {
|
|
|
25
25
|
);
|
|
26
26
|
return K.useDebugValue(n), n;
|
|
27
27
|
}
|
|
28
|
-
const
|
|
28
|
+
const Ts = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, dr = /* @__PURE__ */ new Map(), hn = (t) => {
|
|
29
29
|
const e = dr.get(t);
|
|
30
30
|
return e ? Object.fromEntries(
|
|
31
31
|
Object.entries(e.stores).map(([n, r]) => [n, r.getState()])
|
|
@@ -48,7 +48,7 @@ const _s = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, dr
|
|
|
48
48
|
const { enabled: o, anonymousActionType: i, store: a, ...l } = e;
|
|
49
49
|
let c;
|
|
50
50
|
try {
|
|
51
|
-
c = (o ?? (
|
|
51
|
+
c = (o ?? (Ts ? "production" : void 0) !== "production") && window.__REDUX_DEVTOOLS_EXTENSION__;
|
|
52
52
|
} catch {
|
|
53
53
|
}
|
|
54
54
|
if (!c)
|
|
@@ -85,7 +85,7 @@ const _s = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, dr
|
|
|
85
85
|
let m = !1;
|
|
86
86
|
const g = s.dispatch;
|
|
87
87
|
s.dispatch = (...y) => {
|
|
88
|
-
(
|
|
88
|
+
(Ts ? "production" : void 0) !== "production" && y[0].type === "__setState" && !m && (console.warn(
|
|
89
89
|
'[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'
|
|
90
90
|
), m = !0), g(...y);
|
|
91
91
|
};
|
|
@@ -259,18 +259,18 @@ const _s = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, dr
|
|
|
259
259
|
// Store label for Redux Dev Tools
|
|
260
260
|
{ name: `LocatorStore_${Date.now()}` }
|
|
261
261
|
)
|
|
262
|
-
),
|
|
262
|
+
), Si = Dt(null);
|
|
263
263
|
function ac({ children: t }) {
|
|
264
264
|
const [e] = X(ic);
|
|
265
|
-
return /* @__PURE__ */ b(
|
|
265
|
+
return /* @__PURE__ */ b(Si.Provider, { value: e, children: t });
|
|
266
266
|
}
|
|
267
267
|
function M(t) {
|
|
268
|
-
const e = U(
|
|
268
|
+
const e = U(Si);
|
|
269
269
|
if (e === null)
|
|
270
270
|
throw new Error("useLocatorStore must be used within LocatorStoreProvider");
|
|
271
271
|
return Ql(e, t);
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function wi(t) {
|
|
274
274
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
275
275
|
}
|
|
276
276
|
var Wn = { exports: {} };
|
|
@@ -279,9 +279,9 @@ var Wn = { exports: {} };
|
|
|
279
279
|
Licensed under the MIT License (MIT), see
|
|
280
280
|
http://jedwatson.github.io/classnames
|
|
281
281
|
*/
|
|
282
|
-
var
|
|
282
|
+
var Es;
|
|
283
283
|
function lc() {
|
|
284
|
-
return
|
|
284
|
+
return Es || (Es = 1, function(t) {
|
|
285
285
|
(function() {
|
|
286
286
|
var e = {}.hasOwnProperty;
|
|
287
287
|
function n() {
|
|
@@ -313,10 +313,10 @@ function lc() {
|
|
|
313
313
|
}(Wn)), Wn.exports;
|
|
314
314
|
}
|
|
315
315
|
var cc = lc();
|
|
316
|
-
const G = /* @__PURE__ */
|
|
316
|
+
const G = /* @__PURE__ */ wi(cc), uc = "_root_q2czu_7", dc = "_loaderContainer_q2czu_121", xi = {
|
|
317
317
|
root: uc,
|
|
318
318
|
loaderContainer: dc
|
|
319
|
-
}, hc = "_root_17v7m_1", fc = "_spinner_17v7m_25",
|
|
319
|
+
}, hc = "_root_17v7m_1", fc = "_spinner_17v7m_25", As = {
|
|
320
320
|
root: hc,
|
|
321
321
|
spinner: fc
|
|
322
322
|
};
|
|
@@ -327,7 +327,7 @@ function We({
|
|
|
327
327
|
...r
|
|
328
328
|
}) {
|
|
329
329
|
const s = G(
|
|
330
|
-
|
|
330
|
+
As.root,
|
|
331
331
|
t
|
|
332
332
|
);
|
|
333
333
|
return /* @__PURE__ */ b(
|
|
@@ -337,11 +337,11 @@ function We({
|
|
|
337
337
|
"data-size": e,
|
|
338
338
|
"data-color": n,
|
|
339
339
|
...r,
|
|
340
|
-
children: /* @__PURE__ */ b("div", { className:
|
|
340
|
+
children: /* @__PURE__ */ b("div", { className: As.spinner })
|
|
341
341
|
}
|
|
342
342
|
);
|
|
343
343
|
}
|
|
344
|
-
const pc = Vr(() => import("./GoogleMapsProvider-
|
|
344
|
+
const pc = Vr(() => import("./GoogleMapsProvider-DUQKbaQl.js")), mc = Vr(() => import("./MapboxProvider-CC8pMGki.js")), gc = Vr(() => import("./HEREMapsProvider-BO6aAVqj.js"));
|
|
345
345
|
function yc({
|
|
346
346
|
children: t,
|
|
347
347
|
mapProvider: e
|
|
@@ -349,7 +349,7 @@ function yc({
|
|
|
349
349
|
const { name: n, APIKey: r, config: s } = e ?? {};
|
|
350
350
|
if (!r || !n)
|
|
351
351
|
throw new Error("Cannot initialize MapProvider without APIKey and name.");
|
|
352
|
-
const o = /* @__PURE__ */ b("div", { className:
|
|
352
|
+
const o = /* @__PURE__ */ b("div", { className: xi.loaderContainer, children: /* @__PURE__ */ b(We, { size: "large", color: "primary" }) });
|
|
353
353
|
return /* @__PURE__ */ b(ql, { fallback: o, children: (() => {
|
|
354
354
|
switch (n) {
|
|
355
355
|
case "mapbox":
|
|
@@ -365,11 +365,11 @@ function yc({
|
|
|
365
365
|
}
|
|
366
366
|
const vc = "_container_17c19_4", bc = {
|
|
367
367
|
container: vc
|
|
368
|
-
}, Cc = "_root_3405i_4",
|
|
368
|
+
}, Cc = "_root_3405i_4", Sc = "_header_3405i_14", wc = "_icon_3405i_25", xc = "_body_3405i_47", _c = "_content_3405i_50", Le = {
|
|
369
369
|
root: Cc,
|
|
370
|
-
header:
|
|
371
|
-
icon:
|
|
372
|
-
body:
|
|
370
|
+
header: Sc,
|
|
371
|
+
icon: wc,
|
|
372
|
+
body: xc,
|
|
373
373
|
content: _c
|
|
374
374
|
};
|
|
375
375
|
/**
|
|
@@ -624,13 +624,13 @@ function ou(t) {
|
|
|
624
624
|
const e = q(null);
|
|
625
625
|
return e.current === null && (e.current = t()), e.current;
|
|
626
626
|
}
|
|
627
|
-
const
|
|
627
|
+
const Fr = typeof window < "u", iu = Fr ? Vn : N, $r = /* @__PURE__ */ Dt(null), Ai = Dt({
|
|
628
628
|
transformPagePoint: (t) => t,
|
|
629
629
|
isStatic: !1,
|
|
630
630
|
reducedMotion: "never"
|
|
631
631
|
});
|
|
632
632
|
function au(t = !0) {
|
|
633
|
-
const e = U(
|
|
633
|
+
const e = U($r);
|
|
634
634
|
if (e === null)
|
|
635
635
|
return [!0, null];
|
|
636
636
|
const { isPresent: n, onExitComplete: r, register: s } = e, o = Gl();
|
|
@@ -641,10 +641,10 @@ function au(t = !0) {
|
|
|
641
641
|
const i = vt(() => t && r && r(o), [o, r, t]);
|
|
642
642
|
return !n && r ? [!1, i] : [!0];
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function jr(t, e) {
|
|
645
645
|
t.indexOf(e) === -1 && t.push(e);
|
|
646
646
|
}
|
|
647
|
-
function
|
|
647
|
+
function zr(t, e) {
|
|
648
648
|
const n = t.indexOf(e);
|
|
649
649
|
n > -1 && t.splice(n, 1);
|
|
650
650
|
}
|
|
@@ -660,7 +660,7 @@ const lu = {
|
|
|
660
660
|
useManualTiming: !1
|
|
661
661
|
};
|
|
662
662
|
// @__NO_SIDE_EFFECTS__
|
|
663
|
-
function
|
|
663
|
+
function Ur(t) {
|
|
664
664
|
let e;
|
|
665
665
|
return () => (e === void 0 && (e = t()), e);
|
|
666
666
|
}
|
|
@@ -668,12 +668,12 @@ const _e = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
|
|
|
668
668
|
const r = e - t;
|
|
669
669
|
return r === 0 ? 1 : (n - t) / r;
|
|
670
670
|
};
|
|
671
|
-
class
|
|
671
|
+
class Xr {
|
|
672
672
|
constructor() {
|
|
673
673
|
this.subscriptions = [];
|
|
674
674
|
}
|
|
675
675
|
add(e) {
|
|
676
|
-
return
|
|
676
|
+
return jr(this.subscriptions, e), () => zr(this.subscriptions, e);
|
|
677
677
|
}
|
|
678
678
|
notify(e, n, r) {
|
|
679
679
|
const s = this.subscriptions.length;
|
|
@@ -693,15 +693,15 @@ class Ur {
|
|
|
693
693
|
this.subscriptions.length = 0;
|
|
694
694
|
}
|
|
695
695
|
}
|
|
696
|
-
const
|
|
696
|
+
const wt = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, Lt = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3;
|
|
697
697
|
function Mi(t, e) {
|
|
698
698
|
return e ? t * (1e3 / e) : 0;
|
|
699
699
|
}
|
|
700
|
-
const
|
|
700
|
+
const Ms = /* @__PURE__ */ new Set();
|
|
701
701
|
function Bn(t, e, n) {
|
|
702
|
-
t ||
|
|
702
|
+
t || Ms.has(e) || (console.warn(e), Ms.add(e));
|
|
703
703
|
}
|
|
704
|
-
const cu = /* @__PURE__ */
|
|
704
|
+
const cu = /* @__PURE__ */ Ur(() => window.ScrollTimeline !== void 0);
|
|
705
705
|
class uu {
|
|
706
706
|
constructor(e) {
|
|
707
707
|
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
|
|
@@ -777,7 +777,7 @@ class du extends uu {
|
|
|
777
777
|
return Promise.all(this.animations).then(e).catch(n);
|
|
778
778
|
}
|
|
779
779
|
}
|
|
780
|
-
function
|
|
780
|
+
function qr(t, e) {
|
|
781
781
|
return t ? t[e] || t.default || t : void 0;
|
|
782
782
|
}
|
|
783
783
|
const hr = 2e4;
|
|
@@ -789,17 +789,17 @@ function Pi(t) {
|
|
|
789
789
|
e += n, r = t.next(e);
|
|
790
790
|
return e >= hr ? 1 / 0 : e;
|
|
791
791
|
}
|
|
792
|
-
function
|
|
792
|
+
function Gr(t) {
|
|
793
793
|
return typeof t == "function";
|
|
794
794
|
}
|
|
795
|
-
function
|
|
795
|
+
function Ps(t, e) {
|
|
796
796
|
t.timeline = e, t.onfinish = null;
|
|
797
797
|
}
|
|
798
|
-
const
|
|
798
|
+
const Wr = (t) => Array.isArray(t) && typeof t[0] == "number", hu = {
|
|
799
799
|
linearEasing: void 0
|
|
800
800
|
};
|
|
801
801
|
function fu(t, e) {
|
|
802
|
-
const n = /* @__PURE__ */
|
|
802
|
+
const n = /* @__PURE__ */ Ur(t);
|
|
803
803
|
return () => {
|
|
804
804
|
var r;
|
|
805
805
|
return (r = hu[e]) !== null && r !== void 0 ? r : n();
|
|
@@ -820,7 +820,7 @@ const Pn = /* @__PURE__ */ fu(() => {
|
|
|
820
820
|
return `linear(${r.substring(0, r.length - 2)})`;
|
|
821
821
|
};
|
|
822
822
|
function Oi(t) {
|
|
823
|
-
return !!(typeof t == "function" && Pn() || !t || typeof t == "string" && (t in fr || Pn()) ||
|
|
823
|
+
return !!(typeof t == "function" && Pn() || !t || typeof t == "string" && (t in fr || Pn()) || Wr(t) || Array.isArray(t) && t.every(Oi));
|
|
824
824
|
}
|
|
825
825
|
const Ne = ([t, e, n, r]) => `cubic-bezier(${t}, ${e}, ${n}, ${r})`, fr = {
|
|
826
826
|
linear: "linear",
|
|
@@ -835,7 +835,7 @@ const Ne = ([t, e, n, r]) => `cubic-bezier(${t}, ${e}, ${n}, ${r})`, fr = {
|
|
|
835
835
|
};
|
|
836
836
|
function ki(t, e) {
|
|
837
837
|
if (t)
|
|
838
|
-
return typeof t == "function" && Pn() ? Li(t, e) :
|
|
838
|
+
return typeof t == "function" && Pn() ? Li(t, e) : Wr(t) ? Ne(t) : Array.isArray(t) ? t.map((n) => ki(n, e) || fr.easeOut) : fr[t];
|
|
839
839
|
}
|
|
840
840
|
const fn = [
|
|
841
841
|
"read",
|
|
@@ -850,7 +850,7 @@ const fn = [
|
|
|
850
850
|
// Write
|
|
851
851
|
"postRender"
|
|
852
852
|
// Compute
|
|
853
|
-
],
|
|
853
|
+
], Ls = {
|
|
854
854
|
value: null
|
|
855
855
|
};
|
|
856
856
|
function pu(t, e) {
|
|
@@ -886,7 +886,7 @@ function pu(t, e) {
|
|
|
886
886
|
o = !0;
|
|
887
887
|
return;
|
|
888
888
|
}
|
|
889
|
-
s = !0, [n, r] = [r, n], n.forEach(c), e &&
|
|
889
|
+
s = !0, [n, r] = [r, n], n.forEach(c), e && Ls.value && Ls.value.frameloop[e].push(l), l = 0, n.clear(), s = !1, o && (o = !1, u.process(d));
|
|
890
890
|
}
|
|
891
891
|
};
|
|
892
892
|
return u;
|
|
@@ -906,21 +906,21 @@ function Di(t, e) {
|
|
|
906
906
|
};
|
|
907
907
|
return { schedule: fn.reduce((y, v) => {
|
|
908
908
|
const C = i[v];
|
|
909
|
-
return y[v] = (
|
|
909
|
+
return y[v] = (w, S = !1, x = !1) => (n || p(), C.schedule(w, S, x)), y;
|
|
910
910
|
}, {}), cancel: (y) => {
|
|
911
911
|
for (let v = 0; v < fn.length; v++)
|
|
912
912
|
i[fn[v]].cancel(y);
|
|
913
913
|
}, state: s, steps: i };
|
|
914
914
|
}
|
|
915
|
-
const { schedule: F, cancel: Wt, state: st, steps: Kn } = /* @__PURE__ */ Di(typeof requestAnimationFrame < "u" ? requestAnimationFrame : ft, !0), { schedule:
|
|
916
|
-
let
|
|
915
|
+
const { schedule: F, cancel: Wt, state: st, steps: Kn } = /* @__PURE__ */ Di(typeof requestAnimationFrame < "u" ? requestAnimationFrame : ft, !0), { schedule: Kr } = /* @__PURE__ */ Di(queueMicrotask, !1);
|
|
916
|
+
let xn;
|
|
917
917
|
function gu() {
|
|
918
|
-
|
|
918
|
+
xn = void 0;
|
|
919
919
|
}
|
|
920
|
-
const
|
|
921
|
-
now: () => (
|
|
920
|
+
const xt = {
|
|
921
|
+
now: () => (xn === void 0 && xt.set(st.isProcessing || lu.useManualTiming ? st.timestamp : performance.now()), xn),
|
|
922
922
|
set: (t) => {
|
|
923
|
-
|
|
923
|
+
xn = t, queueMicrotask(gu);
|
|
924
924
|
}
|
|
925
925
|
}, yt = {
|
|
926
926
|
x: !1,
|
|
@@ -955,18 +955,18 @@ function Ni(t, e) {
|
|
|
955
955
|
};
|
|
956
956
|
return [n, s, () => r.abort()];
|
|
957
957
|
}
|
|
958
|
-
function
|
|
958
|
+
function Os(t) {
|
|
959
959
|
return !(t.pointerType === "touch" || Ri());
|
|
960
960
|
}
|
|
961
961
|
function bu(t, e, n = {}) {
|
|
962
962
|
const [r, s, o] = Ni(t, n), i = (a) => {
|
|
963
|
-
if (!
|
|
963
|
+
if (!Os(a))
|
|
964
964
|
return;
|
|
965
965
|
const { target: l } = a, c = e(l, a);
|
|
966
966
|
if (typeof c != "function" || !l)
|
|
967
967
|
return;
|
|
968
968
|
const u = (d) => {
|
|
969
|
-
|
|
969
|
+
Os(d) && (c(d), l.removeEventListener("pointerleave", u));
|
|
970
970
|
};
|
|
971
971
|
l.addEventListener("pointerleave", u, s);
|
|
972
972
|
};
|
|
@@ -974,7 +974,7 @@ function bu(t, e, n = {}) {
|
|
|
974
974
|
a.addEventListener("pointerenter", i, s);
|
|
975
975
|
}), o;
|
|
976
976
|
}
|
|
977
|
-
function
|
|
977
|
+
function ks(t, e) {
|
|
978
978
|
const n = `${e}PointerCapture`;
|
|
979
979
|
if (t.target instanceof Element && n in t.target && t.pointerId !== void 0)
|
|
980
980
|
try {
|
|
@@ -982,18 +982,18 @@ function Os(t, e) {
|
|
|
982
982
|
} catch {
|
|
983
983
|
}
|
|
984
984
|
}
|
|
985
|
-
const Ii = (t, e) => e ? t === e ? !0 : Ii(t, e.parentElement) : !1,
|
|
985
|
+
const Ii = (t, e) => e ? t === e ? !0 : Ii(t, e.parentElement) : !1, Hr = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1, Cu = /* @__PURE__ */ new Set([
|
|
986
986
|
"BUTTON",
|
|
987
987
|
"INPUT",
|
|
988
988
|
"SELECT",
|
|
989
989
|
"TEXTAREA",
|
|
990
990
|
"A"
|
|
991
991
|
]);
|
|
992
|
-
function
|
|
992
|
+
function Su(t) {
|
|
993
993
|
return Cu.has(t.tagName) || t.tabIndex !== -1;
|
|
994
994
|
}
|
|
995
995
|
const Ie = /* @__PURE__ */ new WeakSet();
|
|
996
|
-
function
|
|
996
|
+
function Ds(t) {
|
|
997
997
|
return (e) => {
|
|
998
998
|
e.key === "Enter" && t(e);
|
|
999
999
|
};
|
|
@@ -1001,32 +1001,32 @@ function ks(t) {
|
|
|
1001
1001
|
function Hn(t, e) {
|
|
1002
1002
|
t.dispatchEvent(new PointerEvent("pointer" + e, { isPrimary: !0, bubbles: !0 }));
|
|
1003
1003
|
}
|
|
1004
|
-
const
|
|
1004
|
+
const wu = (t, e) => {
|
|
1005
1005
|
const n = t.currentTarget;
|
|
1006
1006
|
if (!n)
|
|
1007
1007
|
return;
|
|
1008
|
-
const r =
|
|
1008
|
+
const r = Ds(() => {
|
|
1009
1009
|
if (Ie.has(n))
|
|
1010
1010
|
return;
|
|
1011
1011
|
Hn(n, "down");
|
|
1012
|
-
const s =
|
|
1012
|
+
const s = Ds(() => {
|
|
1013
1013
|
Hn(n, "up");
|
|
1014
1014
|
}), o = () => Hn(n, "cancel");
|
|
1015
1015
|
n.addEventListener("keyup", s, e), n.addEventListener("blur", o, e);
|
|
1016
1016
|
});
|
|
1017
1017
|
n.addEventListener("keydown", r, e), n.addEventListener("blur", () => n.removeEventListener("keydown", r), e);
|
|
1018
1018
|
};
|
|
1019
|
-
function
|
|
1020
|
-
return
|
|
1019
|
+
function Rs(t) {
|
|
1020
|
+
return Hr(t) && !Ri();
|
|
1021
1021
|
}
|
|
1022
|
-
function
|
|
1022
|
+
function xu(t, e, n = {}) {
|
|
1023
1023
|
const [r, s, o] = Ni(t, n), i = (a) => {
|
|
1024
1024
|
const l = a.currentTarget;
|
|
1025
|
-
if (!l || !
|
|
1025
|
+
if (!l || !Rs(a) || Ie.has(l))
|
|
1026
1026
|
return;
|
|
1027
|
-
Ie.add(l),
|
|
1027
|
+
Ie.add(l), ks(a, "set");
|
|
1028
1028
|
const c = e(l, a), u = (f, p) => {
|
|
1029
|
-
l.removeEventListener("pointerup", d), l.removeEventListener("pointercancel", h),
|
|
1029
|
+
l.removeEventListener("pointerup", d), l.removeEventListener("pointercancel", h), ks(f, "release"), !(!Rs(f) || !Ie.has(l)) && (Ie.delete(l), typeof c == "function" && c(f, { success: p }));
|
|
1030
1030
|
}, d = (f) => {
|
|
1031
1031
|
(f.isTrusted ? _u(f, l instanceof Element ? l.getBoundingClientRect() : {
|
|
1032
1032
|
left: 0,
|
|
@@ -1042,13 +1042,13 @@ function wu(t, e, n = {}) {
|
|
|
1042
1042
|
return r.forEach((a) => {
|
|
1043
1043
|
a = n.useGlobalTarget ? window : a;
|
|
1044
1044
|
let l = !1;
|
|
1045
|
-
a instanceof HTMLElement && (l = !0, !
|
|
1045
|
+
a instanceof HTMLElement && (l = !0, !Su(a) && a.getAttribute("tabindex") === null && (a.tabIndex = 0)), a.addEventListener("pointerdown", i, s), l && a.addEventListener("focus", (c) => wu(c, s), s);
|
|
1046
1046
|
}), o;
|
|
1047
1047
|
}
|
|
1048
1048
|
function _u(t, e) {
|
|
1049
1049
|
return t.clientX < e.left || t.clientX > e.right || t.clientY < e.top || t.clientY > e.bottom;
|
|
1050
1050
|
}
|
|
1051
|
-
const
|
|
1051
|
+
const Ns = 30, Tu = (t) => !isNaN(parseFloat(t));
|
|
1052
1052
|
class Eu {
|
|
1053
1053
|
/**
|
|
1054
1054
|
* @param init - The initiating value
|
|
@@ -1058,12 +1058,12 @@ class Eu {
|
|
|
1058
1058
|
*/
|
|
1059
1059
|
constructor(e, n = {}) {
|
|
1060
1060
|
this.version = "12.5.0", this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (r, s = !0) => {
|
|
1061
|
-
const o =
|
|
1061
|
+
const o = xt.now();
|
|
1062
1062
|
this.updatedAt !== o && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(r), this.current !== this.prev && this.events.change && this.events.change.notify(this.current), s && this.events.renderRequest && this.events.renderRequest.notify(this.current);
|
|
1063
1063
|
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = n.owner;
|
|
1064
1064
|
}
|
|
1065
1065
|
setCurrent(e) {
|
|
1066
|
-
this.current = e, this.updatedAt =
|
|
1066
|
+
this.current = e, this.updatedAt = xt.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Tu(this.current));
|
|
1067
1067
|
}
|
|
1068
1068
|
setPrevFrameValue(e = this.current) {
|
|
1069
1069
|
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
|
|
@@ -1112,7 +1112,7 @@ class Eu {
|
|
|
1112
1112
|
return process.env.NODE_ENV !== "production" && Bn(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", e);
|
|
1113
1113
|
}
|
|
1114
1114
|
on(e, n) {
|
|
1115
|
-
this.events[e] || (this.events[e] = new
|
|
1115
|
+
this.events[e] || (this.events[e] = new Xr());
|
|
1116
1116
|
const r = this.events[e].add(n);
|
|
1117
1117
|
return e === "change" ? () => {
|
|
1118
1118
|
r(), F.read(() => {
|
|
@@ -1182,10 +1182,10 @@ class Eu {
|
|
|
1182
1182
|
* @public
|
|
1183
1183
|
*/
|
|
1184
1184
|
getVelocity() {
|
|
1185
|
-
const e =
|
|
1186
|
-
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt >
|
|
1185
|
+
const e = xt.now();
|
|
1186
|
+
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > Ns)
|
|
1187
1187
|
return 0;
|
|
1188
|
-
const n = Math.min(this.updatedAt - this.prevUpdatedAt,
|
|
1188
|
+
const n = Math.min(this.updatedAt - this.prevUpdatedAt, Ns);
|
|
1189
1189
|
return Mi(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
|
|
1190
1190
|
}
|
|
1191
1191
|
/**
|
|
@@ -1240,7 +1240,7 @@ class Eu {
|
|
|
1240
1240
|
function Ke(t, e) {
|
|
1241
1241
|
return new Eu(t, e);
|
|
1242
1242
|
}
|
|
1243
|
-
const Vi = Dt({ strict: !1 }),
|
|
1243
|
+
const Vi = Dt({ strict: !1 }), Is = {
|
|
1244
1244
|
animation: [
|
|
1245
1245
|
"animate",
|
|
1246
1246
|
"variants",
|
|
@@ -1260,9 +1260,9 @@ const Vi = Dt({ strict: !1 }), Ns = {
|
|
|
1260
1260
|
inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
|
|
1261
1261
|
layout: ["layout", "layoutId"]
|
|
1262
1262
|
}, Te = {};
|
|
1263
|
-
for (const t in
|
|
1263
|
+
for (const t in Is)
|
|
1264
1264
|
Te[t] = {
|
|
1265
|
-
isEnabled: (e) =>
|
|
1265
|
+
isEnabled: (e) => Is[t].some((n) => !!e[n])
|
|
1266
1266
|
};
|
|
1267
1267
|
function Au(t) {
|
|
1268
1268
|
for (const e in t)
|
|
@@ -1341,7 +1341,7 @@ function $n(t) {
|
|
|
1341
1341
|
function He(t) {
|
|
1342
1342
|
return typeof t == "string" || Array.isArray(t);
|
|
1343
1343
|
}
|
|
1344
|
-
const
|
|
1344
|
+
const Zr = [
|
|
1345
1345
|
"animate",
|
|
1346
1346
|
"whileInView",
|
|
1347
1347
|
"whileFocus",
|
|
@@ -1349,9 +1349,9 @@ const Hr = [
|
|
|
1349
1349
|
"whileTap",
|
|
1350
1350
|
"whileDrag",
|
|
1351
1351
|
"exit"
|
|
1352
|
-
],
|
|
1352
|
+
], Yr = ["initial", ...Zr];
|
|
1353
1353
|
function jn(t) {
|
|
1354
|
-
return $n(t.animate) ||
|
|
1354
|
+
return $n(t.animate) || Yr.some((e) => He(t[e]));
|
|
1355
1355
|
}
|
|
1356
1356
|
function Fi(t) {
|
|
1357
1357
|
return !!(jn(t) || t.variants);
|
|
@@ -1368,9 +1368,9 @@ function ku(t, e) {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
function Du(t) {
|
|
1370
1370
|
const { initial: e, animate: n } = ku(t, U(Fn));
|
|
1371
|
-
return ht(() => ({ initial: e, animate: n }), [
|
|
1371
|
+
return ht(() => ({ initial: e, animate: n }), [Vs(e), Vs(n)]);
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function Vs(t) {
|
|
1374
1374
|
return Array.isArray(t) ? t.join(" ") : t;
|
|
1375
1375
|
}
|
|
1376
1376
|
const Ru = Symbol.for("motionComponentSymbol");
|
|
@@ -1390,10 +1390,10 @@ function Nu(t, e, n) {
|
|
|
1390
1390
|
[e]
|
|
1391
1391
|
);
|
|
1392
1392
|
}
|
|
1393
|
-
const
|
|
1393
|
+
const Jr = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Iu = "framerAppearId", $i = "data-" + Jr(Iu), ji = Dt({});
|
|
1394
1394
|
function Vu(t, e, n, r, s) {
|
|
1395
1395
|
var o, i;
|
|
1396
|
-
const { visualElement: a } = U(Fn), l = U(Vi), c = U(
|
|
1396
|
+
const { visualElement: a } = U(Fn), l = U(Vi), c = U($r), u = U(Ai).reducedMotion, d = q(null);
|
|
1397
1397
|
r = r || l.renderer, !d.current && r && (d.current = r(t, {
|
|
1398
1398
|
visualState: e,
|
|
1399
1399
|
parent: a,
|
|
@@ -1410,7 +1410,7 @@ function Vu(t, e, n, r, s) {
|
|
|
1410
1410
|
});
|
|
1411
1411
|
const m = n[$i], g = q(!!m && !(!((o = window.MotionHandoffIsComplete) === null || o === void 0) && o.call(window, m)) && ((i = window.MotionHasOptimisedAnimation) === null || i === void 0 ? void 0 : i.call(window, m)));
|
|
1412
1412
|
return iu(() => {
|
|
1413
|
-
h && (p.current = !0, window.MotionIsMounted = !0, h.updateFeatures(),
|
|
1413
|
+
h && (p.current = !0, window.MotionIsMounted = !0, h.updateFeatures(), Kr.render(h.render), g.current && h.animationState && h.animationState.animateChanges());
|
|
1414
1414
|
}), N(() => {
|
|
1415
1415
|
h && (!g.current && h.animationState && h.animationState.animateChanges(), g.current && (queueMicrotask(() => {
|
|
1416
1416
|
var y;
|
|
@@ -1452,7 +1452,7 @@ function Fu({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVis
|
|
|
1452
1452
|
...c,
|
|
1453
1453
|
layoutId: $u(c)
|
|
1454
1454
|
}, { isStatic: f } = h, p = Du(c), m = r(c, f);
|
|
1455
|
-
if (!f &&
|
|
1455
|
+
if (!f && Fr) {
|
|
1456
1456
|
ju(h, t);
|
|
1457
1457
|
const g = zu(h);
|
|
1458
1458
|
d = g.MeasureLayout, p.visualElement = Vu(s, m, h, e, g.ProjectionNode);
|
|
@@ -1484,10 +1484,10 @@ function zu(t) {
|
|
|
1484
1484
|
ProjectionNode: r.ProjectionNode
|
|
1485
1485
|
};
|
|
1486
1486
|
}
|
|
1487
|
-
const Ui = (t) => (e) => typeof e == "string" && e.startsWith(t),
|
|
1487
|
+
const Ui = (t) => (e) => typeof e == "string" && e.startsWith(t), Qr = /* @__PURE__ */ Ui("--"), Uu = /* @__PURE__ */ Ui("var(--"), ts = (t) => Uu(t) ? Xu.test(t.split("/*")[0].trim()) : !1, Xu = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Ze = {};
|
|
1488
1488
|
function qu(t) {
|
|
1489
1489
|
for (const e in t)
|
|
1490
|
-
Ze[e] = t[e],
|
|
1490
|
+
Ze[e] = t[e], Qr(e) && (Ze[e].isCSSVariable = !0);
|
|
1491
1491
|
}
|
|
1492
1492
|
const Me = [
|
|
1493
1493
|
"transformPerspective",
|
|
@@ -1525,7 +1525,7 @@ const it = (t) => !!(t && t.getVelocity), qi = (t, e) => e && typeof t == "numbe
|
|
|
1525
1525
|
test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
|
|
1526
1526
|
parse: parseFloat,
|
|
1527
1527
|
transform: (e) => `${e}${t}`
|
|
1528
|
-
}), $t = /* @__PURE__ */ sn("deg"), _t = /* @__PURE__ */ sn("%"), k = /* @__PURE__ */ sn("px"), Gu = /* @__PURE__ */ sn("vh"), Wu = /* @__PURE__ */ sn("vw"),
|
|
1528
|
+
}), $t = /* @__PURE__ */ sn("deg"), _t = /* @__PURE__ */ sn("%"), k = /* @__PURE__ */ sn("px"), Gu = /* @__PURE__ */ sn("vh"), Wu = /* @__PURE__ */ sn("vw"), Bs = {
|
|
1529
1529
|
..._t,
|
|
1530
1530
|
parse: (t) => _t.parse(t) / 100,
|
|
1531
1531
|
transform: (t) => _t.transform(t * 100)
|
|
@@ -1587,21 +1587,21 @@ const it = (t) => !!(t && t.getVelocity), qi = (t, e) => e && typeof t == "numbe
|
|
|
1587
1587
|
perspective: k,
|
|
1588
1588
|
transformPerspective: k,
|
|
1589
1589
|
opacity: Ye,
|
|
1590
|
-
originX:
|
|
1591
|
-
originY:
|
|
1590
|
+
originX: Bs,
|
|
1591
|
+
originY: Bs,
|
|
1592
1592
|
originZ: k
|
|
1593
|
-
},
|
|
1593
|
+
}, Fs = {
|
|
1594
1594
|
...Pe,
|
|
1595
1595
|
transform: Math.round
|
|
1596
|
-
},
|
|
1596
|
+
}, es = {
|
|
1597
1597
|
...Ku,
|
|
1598
1598
|
...Hu,
|
|
1599
|
-
zIndex:
|
|
1599
|
+
zIndex: Fs,
|
|
1600
1600
|
size: k,
|
|
1601
1601
|
// SVG
|
|
1602
1602
|
fillOpacity: Ye,
|
|
1603
1603
|
strokeOpacity: Ye,
|
|
1604
|
-
numOctaves:
|
|
1604
|
+
numOctaves: Fs
|
|
1605
1605
|
}, Zu = {
|
|
1606
1606
|
x: "translateX",
|
|
1607
1607
|
y: "translateY",
|
|
@@ -1616,7 +1616,7 @@ function Ju(t, e, n) {
|
|
|
1616
1616
|
continue;
|
|
1617
1617
|
let l = !0;
|
|
1618
1618
|
if (typeof a == "number" ? l = a === (i.startsWith("scale") ? 1 : 0) : l = parseFloat(a) === 0, !l || n) {
|
|
1619
|
-
const c = qi(a,
|
|
1619
|
+
const c = qi(a, es[i]);
|
|
1620
1620
|
if (!l) {
|
|
1621
1621
|
s = !1;
|
|
1622
1622
|
const u = Zu[i] || i;
|
|
@@ -1627,7 +1627,7 @@ function Ju(t, e, n) {
|
|
|
1627
1627
|
}
|
|
1628
1628
|
return r = r.trim(), n ? r = n(e, s ? "" : r) : s && (r = "none"), r;
|
|
1629
1629
|
}
|
|
1630
|
-
function
|
|
1630
|
+
function ns(t, e, n) {
|
|
1631
1631
|
const { style: r, vars: s, transformOrigin: o } = t;
|
|
1632
1632
|
let i = !1, a = !1;
|
|
1633
1633
|
for (const l in e) {
|
|
@@ -1635,11 +1635,11 @@ function es(t, e, n) {
|
|
|
1635
1635
|
if (he.has(l)) {
|
|
1636
1636
|
i = !0;
|
|
1637
1637
|
continue;
|
|
1638
|
-
} else if (
|
|
1638
|
+
} else if (Qr(l)) {
|
|
1639
1639
|
s[l] = c;
|
|
1640
1640
|
continue;
|
|
1641
1641
|
} else {
|
|
1642
|
-
const u = qi(c,
|
|
1642
|
+
const u = qi(c, es[l]);
|
|
1643
1643
|
l.startsWith("origin") ? (a = !0, o[l] = u) : r[l] = u;
|
|
1644
1644
|
}
|
|
1645
1645
|
}
|
|
@@ -1648,7 +1648,7 @@ function es(t, e, n) {
|
|
|
1648
1648
|
r.transformOrigin = `${l} ${c} ${u}`;
|
|
1649
1649
|
}
|
|
1650
1650
|
}
|
|
1651
|
-
const
|
|
1651
|
+
const rs = () => ({
|
|
1652
1652
|
style: {},
|
|
1653
1653
|
transform: {},
|
|
1654
1654
|
transformOrigin: {},
|
|
@@ -1660,8 +1660,8 @@ function Gi(t, e, n) {
|
|
|
1660
1660
|
}
|
|
1661
1661
|
function Qu({ transformTemplate: t }, e) {
|
|
1662
1662
|
return ht(() => {
|
|
1663
|
-
const n =
|
|
1664
|
-
return
|
|
1663
|
+
const n = rs();
|
|
1664
|
+
return ns(n, e, t), Object.assign({}, n.vars, n.style);
|
|
1665
1665
|
}, [e]);
|
|
1666
1666
|
}
|
|
1667
1667
|
function td(t, e) {
|
|
@@ -1699,7 +1699,7 @@ const nd = [
|
|
|
1699
1699
|
"use",
|
|
1700
1700
|
"view"
|
|
1701
1701
|
];
|
|
1702
|
-
function
|
|
1702
|
+
function ss(t) {
|
|
1703
1703
|
return (
|
|
1704
1704
|
/**
|
|
1705
1705
|
* If it's not a string, it's a custom React component. Currently we only support
|
|
@@ -1733,14 +1733,14 @@ function od(t, e, n = 1, r = 0, s = !0) {
|
|
|
1733
1733
|
const i = k.transform(e), a = k.transform(n);
|
|
1734
1734
|
t[o.array] = `${i} ${a}`;
|
|
1735
1735
|
}
|
|
1736
|
-
function
|
|
1736
|
+
function $s(t, e, n) {
|
|
1737
1737
|
return typeof t == "string" ? t : k.transform(e + n * t);
|
|
1738
1738
|
}
|
|
1739
1739
|
function id(t, e, n) {
|
|
1740
|
-
const r =
|
|
1740
|
+
const r = $s(e, t.x, t.width), s = $s(n, t.y, t.height);
|
|
1741
1741
|
return `${r} ${s}`;
|
|
1742
1742
|
}
|
|
1743
|
-
function
|
|
1743
|
+
function os(t, {
|
|
1744
1744
|
attrX: e,
|
|
1745
1745
|
attrY: n,
|
|
1746
1746
|
attrScale: r,
|
|
@@ -1752,7 +1752,7 @@ function ss(t, {
|
|
|
1752
1752
|
// This is object creation, which we try to avoid per-frame.
|
|
1753
1753
|
...c
|
|
1754
1754
|
}, u, d) {
|
|
1755
|
-
if (
|
|
1755
|
+
if (ns(t, c, d), u) {
|
|
1756
1756
|
t.style.viewBox && (t.attrs.viewBox = t.style.viewBox);
|
|
1757
1757
|
return;
|
|
1758
1758
|
}
|
|
@@ -1761,13 +1761,13 @@ function ss(t, {
|
|
|
1761
1761
|
h.transform && (p && (f.transform = h.transform), delete h.transform), p && (s !== void 0 || o !== void 0 || f.transform) && (f.transformOrigin = id(p, s !== void 0 ? s : 0.5, o !== void 0 ? o : 0.5)), e !== void 0 && (h.x = e), n !== void 0 && (h.y = n), r !== void 0 && (h.scale = r), i !== void 0 && od(h, i, a, l, !1);
|
|
1762
1762
|
}
|
|
1763
1763
|
const Wi = () => ({
|
|
1764
|
-
...
|
|
1764
|
+
...rs(),
|
|
1765
1765
|
attrs: {}
|
|
1766
|
-
}),
|
|
1766
|
+
}), is = (t) => typeof t == "string" && t.toLowerCase() === "svg";
|
|
1767
1767
|
function ad(t, e, n, r) {
|
|
1768
1768
|
const s = ht(() => {
|
|
1769
1769
|
const o = Wi();
|
|
1770
|
-
return
|
|
1770
|
+
return os(o, e, is(r), t.transformTemplate), {
|
|
1771
1771
|
...o.attrs,
|
|
1772
1772
|
style: { ...o.style }
|
|
1773
1773
|
};
|
|
@@ -1780,26 +1780,26 @@ function ad(t, e, n, r) {
|
|
|
1780
1780
|
}
|
|
1781
1781
|
function ld(t = !1) {
|
|
1782
1782
|
return (n, r, s, { latestValues: o }, i) => {
|
|
1783
|
-
const l = (
|
|
1783
|
+
const l = (ss(n) ? ad : ed)(r, o, i, n), c = Lu(r, typeof n == "string", t), u = n !== Br ? { ...c, ...l, ref: s } : {}, { children: d } = r, h = ht(() => it(d) ? d.get() : d, [d]);
|
|
1784
1784
|
return Ge(n, {
|
|
1785
1785
|
...u,
|
|
1786
1786
|
children: h
|
|
1787
1787
|
});
|
|
1788
1788
|
};
|
|
1789
1789
|
}
|
|
1790
|
-
function
|
|
1790
|
+
function js(t) {
|
|
1791
1791
|
const e = [{}, {}];
|
|
1792
1792
|
return t == null || t.values.forEach((n, r) => {
|
|
1793
1793
|
e[0][r] = n.get(), e[1][r] = n.getVelocity();
|
|
1794
1794
|
}), e;
|
|
1795
1795
|
}
|
|
1796
|
-
function
|
|
1796
|
+
function as(t, e, n, r) {
|
|
1797
1797
|
if (typeof e == "function") {
|
|
1798
|
-
const [s, o] =
|
|
1798
|
+
const [s, o] = js(r);
|
|
1799
1799
|
e = e(n !== void 0 ? n : t.custom, s, o);
|
|
1800
1800
|
}
|
|
1801
1801
|
if (typeof e == "string" && (e = t.variants && t.variants[e]), typeof e == "function") {
|
|
1802
|
-
const [s, o] =
|
|
1802
|
+
const [s, o] = js(r);
|
|
1803
1803
|
e = e(n !== void 0 ? n : t.custom, s, o);
|
|
1804
1804
|
}
|
|
1805
1805
|
return e;
|
|
@@ -1817,7 +1817,7 @@ function dd({ scrapeMotionValuesFromProps: t, createRenderState: e, onUpdate: n
|
|
|
1817
1817
|
return n && (i.onMount = (a) => n({ props: r, current: a, ...i }), i.onUpdate = (a) => n(a)), i;
|
|
1818
1818
|
}
|
|
1819
1819
|
const Ki = (t) => (e, n) => {
|
|
1820
|
-
const r = U(Fn), s = U(
|
|
1820
|
+
const r = U(Fn), s = U($r), o = () => dd(t, e, r, s);
|
|
1821
1821
|
return n ? o() : ou(o);
|
|
1822
1822
|
};
|
|
1823
1823
|
function hd(t, e, n, r) {
|
|
@@ -1833,14 +1833,14 @@ function hd(t, e, n, r) {
|
|
|
1833
1833
|
if (d && typeof d != "boolean" && !$n(d)) {
|
|
1834
1834
|
const h = Array.isArray(d) ? d : [d];
|
|
1835
1835
|
for (let f = 0; f < h.length; f++) {
|
|
1836
|
-
const p =
|
|
1836
|
+
const p = as(t, h[f]);
|
|
1837
1837
|
if (p) {
|
|
1838
1838
|
const { transitionEnd: m, transition: g, ...y } = p;
|
|
1839
1839
|
for (const v in y) {
|
|
1840
1840
|
let C = y[v];
|
|
1841
1841
|
if (Array.isArray(C)) {
|
|
1842
|
-
const
|
|
1843
|
-
C = C[
|
|
1842
|
+
const w = u ? C.length - 1 : 0;
|
|
1843
|
+
C = C[w];
|
|
1844
1844
|
}
|
|
1845
1845
|
C !== null && (s[v] = C);
|
|
1846
1846
|
}
|
|
@@ -1851,7 +1851,7 @@ function hd(t, e, n, r) {
|
|
|
1851
1851
|
}
|
|
1852
1852
|
return s;
|
|
1853
1853
|
}
|
|
1854
|
-
function
|
|
1854
|
+
function ls(t, e, n) {
|
|
1855
1855
|
var r;
|
|
1856
1856
|
const { style: s } = t, o = {};
|
|
1857
1857
|
for (const i in s)
|
|
@@ -1860,8 +1860,8 @@ function as(t, e, n) {
|
|
|
1860
1860
|
}
|
|
1861
1861
|
const fd = {
|
|
1862
1862
|
useVisualState: Ki({
|
|
1863
|
-
scrapeMotionValuesFromProps:
|
|
1864
|
-
createRenderState:
|
|
1863
|
+
scrapeMotionValuesFromProps: ls,
|
|
1864
|
+
createRenderState: rs
|
|
1865
1865
|
})
|
|
1866
1866
|
};
|
|
1867
1867
|
function Hi(t, e) {
|
|
@@ -1909,10 +1909,10 @@ const Yi = /* @__PURE__ */ new Set([
|
|
|
1909
1909
|
function Ji(t, e, n, r) {
|
|
1910
1910
|
Zi(t, e, void 0, r);
|
|
1911
1911
|
for (const s in e.attrs)
|
|
1912
|
-
t.setAttribute(Yi.has(s) ? s :
|
|
1912
|
+
t.setAttribute(Yi.has(s) ? s : Jr(s), e.attrs[s]);
|
|
1913
1913
|
}
|
|
1914
1914
|
function Qi(t, e, n) {
|
|
1915
|
-
const r =
|
|
1915
|
+
const r = ls(t, e, n);
|
|
1916
1916
|
for (const s in t)
|
|
1917
1917
|
if (it(t[s]) || it(e[s])) {
|
|
1918
1918
|
const o = Me.indexOf(s) !== -1 ? "attr" + s.charAt(0).toUpperCase() + s.substring(1) : s;
|
|
@@ -1920,7 +1920,7 @@ function Qi(t, e, n) {
|
|
|
1920
1920
|
}
|
|
1921
1921
|
return r;
|
|
1922
1922
|
}
|
|
1923
|
-
const
|
|
1923
|
+
const zs = ["x", "y", "width", "height", "cx", "cy", "r"], pd = {
|
|
1924
1924
|
useVisualState: Ki({
|
|
1925
1925
|
scrapeMotionValuesFromProps: Qi,
|
|
1926
1926
|
createRenderState: Wi,
|
|
@@ -1939,13 +1939,13 @@ const js = ["x", "y", "width", "height", "cx", "cy", "r"], pd = {
|
|
|
1939
1939
|
return;
|
|
1940
1940
|
let i = !e;
|
|
1941
1941
|
if (e)
|
|
1942
|
-
for (let a = 0; a <
|
|
1943
|
-
const l =
|
|
1942
|
+
for (let a = 0; a < zs.length; a++) {
|
|
1943
|
+
const l = zs[a];
|
|
1944
1944
|
t[l] !== e[l] && (i = !0);
|
|
1945
1945
|
}
|
|
1946
1946
|
i && F.read(() => {
|
|
1947
1947
|
Hi(n, r), F.render(() => {
|
|
1948
|
-
|
|
1948
|
+
os(r, s, is(n.tagName), t.transformTemplate), Ji(n, r);
|
|
1949
1949
|
});
|
|
1950
1950
|
});
|
|
1951
1951
|
}
|
|
@@ -1954,7 +1954,7 @@ const js = ["x", "y", "width", "height", "cx", "cy", "r"], pd = {
|
|
|
1954
1954
|
function md(t, e) {
|
|
1955
1955
|
return function(r, { forwardMotionProps: s } = { forwardMotionProps: !1 }) {
|
|
1956
1956
|
const i = {
|
|
1957
|
-
...
|
|
1957
|
+
...ss(r) ? pd : fd,
|
|
1958
1958
|
preloadedFeatures: t,
|
|
1959
1959
|
useRender: ld(s),
|
|
1960
1960
|
createVisualElement: e,
|
|
@@ -1965,7 +1965,7 @@ function md(t, e) {
|
|
|
1965
1965
|
}
|
|
1966
1966
|
function Je(t, e, n) {
|
|
1967
1967
|
const r = t.getProps();
|
|
1968
|
-
return
|
|
1968
|
+
return as(r, e, n !== void 0 ? n : r.custom, t);
|
|
1969
1969
|
}
|
|
1970
1970
|
const ta = /* @__PURE__ */ new Set([
|
|
1971
1971
|
"width",
|
|
@@ -2000,7 +2000,7 @@ function ea(t) {
|
|
|
2000
2000
|
return t.props[$i];
|
|
2001
2001
|
}
|
|
2002
2002
|
const na = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, bd = 1e-7, Cd = 12;
|
|
2003
|
-
function
|
|
2003
|
+
function Sd(t, e, n, r, s) {
|
|
2004
2004
|
let o, i, a = 0;
|
|
2005
2005
|
do
|
|
2006
2006
|
i = e + (n - e) / 2, o = na(i, r, s) - t, o > 0 ? n = i : e = i;
|
|
@@ -2010,21 +2010,21 @@ function xd(t, e, n, r, s) {
|
|
|
2010
2010
|
function on(t, e, n, r) {
|
|
2011
2011
|
if (t === e && n === r)
|
|
2012
2012
|
return ft;
|
|
2013
|
-
const s = (o) =>
|
|
2013
|
+
const s = (o) => Sd(o, 0, 1, t, n);
|
|
2014
2014
|
return (o) => o === 0 || o === 1 ? o : na(s(o), e, r);
|
|
2015
2015
|
}
|
|
2016
|
-
const ra = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, sa = (t) => (e) => 1 - t(1 - e), oa = /* @__PURE__ */ on(0.33, 1.53, 0.69, 0.99),
|
|
2017
|
-
function
|
|
2016
|
+
const ra = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, sa = (t) => (e) => 1 - t(1 - e), oa = /* @__PURE__ */ on(0.33, 1.53, 0.69, 0.99), cs = /* @__PURE__ */ sa(oa), ia = /* @__PURE__ */ ra(cs), aa = (t) => (t *= 2) < 1 ? 0.5 * cs(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), us = (t) => 1 - Math.sin(Math.acos(t)), la = sa(us), ca = ra(us), ua = (t) => /^0[^.\s]+$/u.test(t);
|
|
2017
|
+
function wd(t) {
|
|
2018
2018
|
return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || ua(t) : !0;
|
|
2019
2019
|
}
|
|
2020
|
-
const Be = (t) => Math.round(t * 1e5) / 1e5,
|
|
2021
|
-
function
|
|
2020
|
+
const Be = (t) => Math.round(t * 1e5) / 1e5, ds = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
2021
|
+
function xd(t) {
|
|
2022
2022
|
return t == null;
|
|
2023
2023
|
}
|
|
2024
|
-
const _d = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,
|
|
2024
|
+
const _d = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, hs = (t, e) => (n) => !!(typeof n == "string" && _d.test(n) && n.startsWith(t) || e && !xd(n) && Object.prototype.hasOwnProperty.call(n, e)), da = (t, e, n) => (r) => {
|
|
2025
2025
|
if (typeof r != "string")
|
|
2026
2026
|
return r;
|
|
2027
|
-
const [s, o, i, a] = r.match(
|
|
2027
|
+
const [s, o, i, a] = r.match(ds);
|
|
2028
2028
|
return {
|
|
2029
2029
|
[t]: parseFloat(s),
|
|
2030
2030
|
[e]: parseFloat(o),
|
|
@@ -2035,7 +2035,7 @@ const _d = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
2035
2035
|
...Pe,
|
|
2036
2036
|
transform: (t) => Math.round(Td(t))
|
|
2037
2037
|
}, ae = {
|
|
2038
|
-
test: /* @__PURE__ */
|
|
2038
|
+
test: /* @__PURE__ */ hs("rgb", "red"),
|
|
2039
2039
|
parse: /* @__PURE__ */ da("red", "green", "blue"),
|
|
2040
2040
|
transform: ({ red: t, green: e, blue: n, alpha: r = 1 }) => "rgba(" + Zn.transform(t) + ", " + Zn.transform(e) + ", " + Zn.transform(n) + ", " + Be(Ye.transform(r)) + ")"
|
|
2041
2041
|
};
|
|
@@ -2049,11 +2049,11 @@ function Ed(t) {
|
|
|
2049
2049
|
};
|
|
2050
2050
|
}
|
|
2051
2051
|
const gr = {
|
|
2052
|
-
test: /* @__PURE__ */
|
|
2052
|
+
test: /* @__PURE__ */ hs("#"),
|
|
2053
2053
|
parse: Ed,
|
|
2054
2054
|
transform: ae.transform
|
|
2055
2055
|
}, ve = {
|
|
2056
|
-
test: /* @__PURE__ */
|
|
2056
|
+
test: /* @__PURE__ */ hs("hsl", "hue"),
|
|
2057
2057
|
parse: /* @__PURE__ */ da("hue", "saturation", "lightness"),
|
|
2058
2058
|
transform: ({ hue: t, saturation: e, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(t) + ", " + _t.transform(Be(e)) + ", " + _t.transform(Be(n)) + ", " + Be(Ye.transform(r)) + ")"
|
|
2059
2059
|
}, ot = {
|
|
@@ -2063,9 +2063,9 @@ const gr = {
|
|
|
2063
2063
|
}, Ad = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
2064
2064
|
function Md(t) {
|
|
2065
2065
|
var e, n;
|
|
2066
|
-
return isNaN(t) && typeof t == "string" && (((e = t.match(
|
|
2066
|
+
return isNaN(t) && typeof t == "string" && (((e = t.match(ds)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match(Ad)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
|
|
2067
2067
|
}
|
|
2068
|
-
const ha = "number", fa = "color", Pd = "var", Ld = "var(",
|
|
2068
|
+
const ha = "number", fa = "color", Pd = "var", Ld = "var(", Us = "${}", Od = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
|
|
2069
2069
|
function Qe(t) {
|
|
2070
2070
|
const e = t.toString(), n = [], r = {
|
|
2071
2071
|
color: [],
|
|
@@ -2073,7 +2073,7 @@ function Qe(t) {
|
|
|
2073
2073
|
var: []
|
|
2074
2074
|
}, s = [];
|
|
2075
2075
|
let o = 0;
|
|
2076
|
-
const a = e.replace(Od, (l) => (ot.test(l) ? (r.color.push(o), s.push(fa), n.push(ot.parse(l))) : l.startsWith(Ld) ? (r.var.push(o), s.push(Pd), n.push(l)) : (r.number.push(o), s.push(ha), n.push(parseFloat(l))), ++o,
|
|
2076
|
+
const a = e.replace(Od, (l) => (ot.test(l) ? (r.color.push(o), s.push(fa), n.push(ot.parse(l))) : l.startsWith(Ld) ? (r.var.push(o), s.push(Pd), n.push(l)) : (r.number.push(o), s.push(ha), n.push(parseFloat(l))), ++o, Us)).split(Us);
|
|
2077
2077
|
return { values: n, split: a, indexes: r, types: s };
|
|
2078
2078
|
}
|
|
2079
2079
|
function pa(t) {
|
|
@@ -2106,7 +2106,7 @@ function Nd(t) {
|
|
|
2106
2106
|
const [e, n] = t.slice(0, -1).split("(");
|
|
2107
2107
|
if (e === "drop-shadow")
|
|
2108
2108
|
return t;
|
|
2109
|
-
const [r] = n.match(
|
|
2109
|
+
const [r] = n.match(ds) || [];
|
|
2110
2110
|
if (!r)
|
|
2111
2111
|
return t;
|
|
2112
2112
|
const s = n.replace(r, "");
|
|
@@ -2120,7 +2120,7 @@ const Id = /\b([a-z-]*)\(.*?\)/gu, yr = {
|
|
|
2120
2120
|
return e ? e.map(Nd).join(" ") : t;
|
|
2121
2121
|
}
|
|
2122
2122
|
}, Vd = {
|
|
2123
|
-
...
|
|
2123
|
+
...es,
|
|
2124
2124
|
// Color props
|
|
2125
2125
|
color: ot,
|
|
2126
2126
|
backgroundColor: ot,
|
|
@@ -2167,30 +2167,30 @@ const le = (t) => t * 180 / Math.PI, vr = (t) => {
|
|
|
2167
2167
|
skewX: (t) => le(Math.atan(t[1])),
|
|
2168
2168
|
skewY: (t) => le(Math.atan(t[2])),
|
|
2169
2169
|
skew: (t) => (Math.abs(t[1]) + Math.abs(t[2])) / 2
|
|
2170
|
-
}, br = (t) => (t = t % 360, t < 0 && (t += 360), t),
|
|
2170
|
+
}, br = (t) => (t = t % 360, t < 0 && (t += 360), t), Xs = vr, qs = (t) => Math.sqrt(t[0] * t[0] + t[1] * t[1]), Gs = (t) => Math.sqrt(t[4] * t[4] + t[5] * t[5]), jd = {
|
|
2171
2171
|
x: 12,
|
|
2172
2172
|
y: 13,
|
|
2173
2173
|
z: 14,
|
|
2174
2174
|
translateX: 12,
|
|
2175
2175
|
translateY: 13,
|
|
2176
2176
|
translateZ: 14,
|
|
2177
|
-
scaleX:
|
|
2178
|
-
scaleY:
|
|
2179
|
-
scale: (t) => (
|
|
2177
|
+
scaleX: qs,
|
|
2178
|
+
scaleY: Gs,
|
|
2179
|
+
scale: (t) => (qs(t) + Gs(t)) / 2,
|
|
2180
2180
|
rotateX: (t) => br(le(Math.atan2(t[6], t[5]))),
|
|
2181
2181
|
rotateY: (t) => br(le(Math.atan2(-t[2], t[0]))),
|
|
2182
|
-
rotateZ:
|
|
2183
|
-
rotate:
|
|
2182
|
+
rotateZ: Xs,
|
|
2183
|
+
rotate: Xs,
|
|
2184
2184
|
skewX: (t) => le(Math.atan(t[4])),
|
|
2185
2185
|
skewY: (t) => le(Math.atan(t[1])),
|
|
2186
2186
|
skew: (t) => (Math.abs(t[1]) + Math.abs(t[4])) / 2
|
|
2187
2187
|
};
|
|
2188
|
-
function
|
|
2188
|
+
function Ws(t) {
|
|
2189
2189
|
return t.includes("scale") ? 1 : 0;
|
|
2190
2190
|
}
|
|
2191
2191
|
function Cr(t, e) {
|
|
2192
2192
|
if (!t || t === "none")
|
|
2193
|
-
return
|
|
2193
|
+
return Ws(e);
|
|
2194
2194
|
const n = t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
|
|
2195
2195
|
let r, s;
|
|
2196
2196
|
if (n)
|
|
@@ -2200,7 +2200,7 @@ function Cr(t, e) {
|
|
|
2200
2200
|
r = $d, s = a;
|
|
2201
2201
|
}
|
|
2202
2202
|
if (!s)
|
|
2203
|
-
return
|
|
2203
|
+
return Ws(e);
|
|
2204
2204
|
const o = r[e], i = s[1].split(",").map(Ud);
|
|
2205
2205
|
return typeof o == "function" ? o(i) : i[o];
|
|
2206
2206
|
}
|
|
@@ -2211,7 +2211,7 @@ const zd = (t, e) => {
|
|
|
2211
2211
|
function Ud(t) {
|
|
2212
2212
|
return parseFloat(t.trim());
|
|
2213
2213
|
}
|
|
2214
|
-
const
|
|
2214
|
+
const Ks = (t) => t === Pe || t === k, Xd = /* @__PURE__ */ new Set(["x", "y", "z"]), qd = Me.filter((t) => !Xd.has(t));
|
|
2215
2215
|
function Gd(t) {
|
|
2216
2216
|
const e = [];
|
|
2217
2217
|
return qd.forEach((n) => {
|
|
@@ -2234,9 +2234,9 @@ const Ee = {
|
|
|
2234
2234
|
Ee.translateX = Ee.x;
|
|
2235
2235
|
Ee.translateY = Ee.y;
|
|
2236
2236
|
const ue = /* @__PURE__ */ new Set();
|
|
2237
|
-
let
|
|
2237
|
+
let Sr = !1, wr = !1;
|
|
2238
2238
|
function va() {
|
|
2239
|
-
if (
|
|
2239
|
+
if (wr) {
|
|
2240
2240
|
const t = Array.from(ue).filter((r) => r.needsMeasurement), e = new Set(t.map((r) => r.element)), n = /* @__PURE__ */ new Map();
|
|
2241
2241
|
e.forEach((r) => {
|
|
2242
2242
|
const s = Gd(r);
|
|
@@ -2252,22 +2252,22 @@ function va() {
|
|
|
2252
2252
|
r.suspendedScrollY !== void 0 && window.scrollTo(0, r.suspendedScrollY);
|
|
2253
2253
|
});
|
|
2254
2254
|
}
|
|
2255
|
-
|
|
2255
|
+
wr = !1, Sr = !1, ue.forEach((t) => t.complete()), ue.clear();
|
|
2256
2256
|
}
|
|
2257
2257
|
function ba() {
|
|
2258
2258
|
ue.forEach((t) => {
|
|
2259
|
-
t.readKeyframes(), t.needsMeasurement && (
|
|
2259
|
+
t.readKeyframes(), t.needsMeasurement && (wr = !0);
|
|
2260
2260
|
});
|
|
2261
2261
|
}
|
|
2262
2262
|
function Wd() {
|
|
2263
2263
|
ba(), va();
|
|
2264
2264
|
}
|
|
2265
|
-
class
|
|
2265
|
+
class fs {
|
|
2266
2266
|
constructor(e, n, r, s, o, i = !1) {
|
|
2267
2267
|
this.isComplete = !1, this.isAsync = !1, this.needsMeasurement = !1, this.isScheduled = !1, this.unresolvedKeyframes = [...e], this.onComplete = n, this.name = r, this.motionValue = s, this.element = o, this.isAsync = i;
|
|
2268
2268
|
}
|
|
2269
2269
|
scheduleResolve() {
|
|
2270
|
-
this.isScheduled = !0, this.isAsync ? (ue.add(this),
|
|
2270
|
+
this.isScheduled = !0, this.isAsync ? (ue.add(this), Sr || (Sr = !0, F.read(ba), F.resolveKeyframes(va))) : (this.readKeyframes(), this.complete());
|
|
2271
2271
|
}
|
|
2272
2272
|
readKeyframes() {
|
|
2273
2273
|
const { unresolvedKeyframes: e, name: n, element: r, motionValue: s } = this;
|
|
@@ -2315,7 +2315,7 @@ function Hd(t) {
|
|
|
2315
2315
|
return [`--${n ?? r}`, s];
|
|
2316
2316
|
}
|
|
2317
2317
|
const Zd = 4;
|
|
2318
|
-
function
|
|
2318
|
+
function Sa(t, e, n = 1) {
|
|
2319
2319
|
Gt(n <= Zd, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
|
|
2320
2320
|
const [r, s] = Hd(t);
|
|
2321
2321
|
if (!r)
|
|
@@ -2325,13 +2325,13 @@ function xa(t, e, n = 1) {
|
|
|
2325
2325
|
const i = o.trim();
|
|
2326
2326
|
return Ca(i) ? parseFloat(i) : i;
|
|
2327
2327
|
}
|
|
2328
|
-
return
|
|
2328
|
+
return ts(s) ? Sa(s, e, n + 1) : s;
|
|
2329
2329
|
}
|
|
2330
|
-
const
|
|
2330
|
+
const wa = (t) => (e) => e.test(t), Yd = {
|
|
2331
2331
|
test: (t) => t === "auto",
|
|
2332
2332
|
parse: (t) => t
|
|
2333
|
-
},
|
|
2334
|
-
class _a extends
|
|
2333
|
+
}, xa = [Pe, k, _t, $t, Wu, Gu, Yd], Hs = (t) => xa.find(wa(t));
|
|
2334
|
+
class _a extends fs {
|
|
2335
2335
|
constructor(e, n, r, s, o) {
|
|
2336
2336
|
super(e, n, r, s, o, !0);
|
|
2337
2337
|
}
|
|
@@ -2342,16 +2342,16 @@ class _a extends hs {
|
|
|
2342
2342
|
super.readKeyframes();
|
|
2343
2343
|
for (let l = 0; l < e.length; l++) {
|
|
2344
2344
|
let c = e[l];
|
|
2345
|
-
if (typeof c == "string" && (c = c.trim(),
|
|
2346
|
-
const u =
|
|
2345
|
+
if (typeof c == "string" && (c = c.trim(), ts(c))) {
|
|
2346
|
+
const u = Sa(c, n.current);
|
|
2347
2347
|
u !== void 0 && (e[l] = u), l === e.length - 1 && (this.finalKeyframe = c);
|
|
2348
2348
|
}
|
|
2349
2349
|
}
|
|
2350
2350
|
if (this.resolveNoneKeyframes(), !ta.has(r) || e.length !== 2)
|
|
2351
2351
|
return;
|
|
2352
|
-
const [s, o] = e, i =
|
|
2352
|
+
const [s, o] = e, i = Hs(s), a = Hs(o);
|
|
2353
2353
|
if (i !== a)
|
|
2354
|
-
if (
|
|
2354
|
+
if (Ks(i) && Ks(a))
|
|
2355
2355
|
for (let l = 0; l < e.length; l++) {
|
|
2356
2356
|
const c = e[l];
|
|
2357
2357
|
typeof c == "string" && (e[l] = parseFloat(c));
|
|
@@ -2362,7 +2362,7 @@ class _a extends hs {
|
|
|
2362
2362
|
resolveNoneKeyframes() {
|
|
2363
2363
|
const { unresolvedKeyframes: e, name: n } = this, r = [];
|
|
2364
2364
|
for (let s = 0; s < e.length; s++)
|
|
2365
|
-
|
|
2365
|
+
wd(e[s]) && r.push(s);
|
|
2366
2366
|
r.length && Fd(e, r, n);
|
|
2367
2367
|
}
|
|
2368
2368
|
measureInitialState() {
|
|
@@ -2386,7 +2386,7 @@ class _a extends hs {
|
|
|
2386
2386
|
}), this.resolveNoneKeyframes();
|
|
2387
2387
|
}
|
|
2388
2388
|
}
|
|
2389
|
-
const
|
|
2389
|
+
const Zs = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
|
|
2390
2390
|
(Kt.test(t) || t === "0") && // And it contains numbers and/or colors
|
|
2391
2391
|
!t.startsWith("url("));
|
|
2392
2392
|
function Jd(t) {
|
|
@@ -2403,8 +2403,8 @@ function Qd(t, e, n, r) {
|
|
|
2403
2403
|
return !1;
|
|
2404
2404
|
if (e === "display" || e === "visibility")
|
|
2405
2405
|
return !0;
|
|
2406
|
-
const o = t[t.length - 1], i =
|
|
2407
|
-
return Ae(i === a, `You are trying to animate ${e} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`), !i || !a ? !1 : Jd(t) || (n === "spring" ||
|
|
2406
|
+
const o = t[t.length - 1], i = Zs(s, e), a = Zs(o, e);
|
|
2407
|
+
return Ae(i === a, `You are trying to animate ${e} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`), !i || !a ? !1 : Jd(t) || (n === "spring" || Gr(n)) && r;
|
|
2408
2408
|
}
|
|
2409
2409
|
const th = (t) => t !== null;
|
|
2410
2410
|
function zn(t, { repeat: e, repeatType: n = "loop" }, r) {
|
|
@@ -2414,7 +2414,7 @@ function zn(t, { repeat: e, repeatType: n = "loop" }, r) {
|
|
|
2414
2414
|
const eh = 40;
|
|
2415
2415
|
class Ta {
|
|
2416
2416
|
constructor({ autoplay: e = !0, delay: n = 0, type: r = "keyframes", repeat: s = 0, repeatDelay: o = 0, repeatType: i = "loop", ...a }) {
|
|
2417
|
-
this.isStopped = !1, this.hasAttemptedResolve = !1, this.createdAt =
|
|
2417
|
+
this.isStopped = !1, this.hasAttemptedResolve = !1, this.createdAt = xt.now(), this.options = {
|
|
2418
2418
|
autoplay: e,
|
|
2419
2419
|
delay: n,
|
|
2420
2420
|
type: r,
|
|
@@ -2451,7 +2451,7 @@ class Ta {
|
|
|
2451
2451
|
* Otherwise, it will call initPlayback on the implementing class.
|
|
2452
2452
|
*/
|
|
2453
2453
|
onKeyframesResolved(e, n) {
|
|
2454
|
-
this.resolvedAt =
|
|
2454
|
+
this.resolvedAt = xt.now(), this.hasAttemptedResolve = !0;
|
|
2455
2455
|
const { name: r, type: s, velocity: o, delay: i, onComplete: a, onUpdate: l, isGenerator: c } = this.options;
|
|
2456
2456
|
if (!c && !Qd(e, r, s, o))
|
|
2457
2457
|
if (i)
|
|
@@ -2513,31 +2513,31 @@ const Jn = (t, e, n) => {
|
|
|
2513
2513
|
const r = t * t, s = n * (e * e - r) + r;
|
|
2514
2514
|
return s < 0 ? 0 : Math.sqrt(s);
|
|
2515
2515
|
}, rh = [gr, ae, ve], sh = (t) => rh.find((e) => e.test(t));
|
|
2516
|
-
function
|
|
2516
|
+
function Ys(t) {
|
|
2517
2517
|
const e = sh(t);
|
|
2518
2518
|
if (Ae(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
|
|
2519
2519
|
return !1;
|
|
2520
2520
|
let n = e.parse(t);
|
|
2521
2521
|
return e === ve && (n = nh(n)), n;
|
|
2522
2522
|
}
|
|
2523
|
-
const
|
|
2524
|
-
const n =
|
|
2523
|
+
const Js = (t, e) => {
|
|
2524
|
+
const n = Ys(t), r = Ys(e);
|
|
2525
2525
|
if (!n || !r)
|
|
2526
2526
|
return On(t, e);
|
|
2527
2527
|
const s = { ...n };
|
|
2528
2528
|
return (o) => (s.red = Jn(n.red, r.red, o), s.green = Jn(n.green, r.green, o), s.blue = Jn(n.blue, r.blue, o), s.alpha = W(n.alpha, r.alpha, o), ae.transform(s));
|
|
2529
|
-
}, oh = (t, e) => (n) => e(t(n)), an = (...t) => t.reduce(oh),
|
|
2529
|
+
}, oh = (t, e) => (n) => e(t(n)), an = (...t) => t.reduce(oh), xr = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
2530
2530
|
function ih(t, e) {
|
|
2531
|
-
return
|
|
2531
|
+
return xr.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
|
|
2532
2532
|
}
|
|
2533
2533
|
function ah(t, e) {
|
|
2534
2534
|
return (n) => W(t, e, n);
|
|
2535
2535
|
}
|
|
2536
|
-
function
|
|
2537
|
-
return typeof t == "number" ? ah : typeof t == "string" ?
|
|
2536
|
+
function ps(t) {
|
|
2537
|
+
return typeof t == "number" ? ah : typeof t == "string" ? ts(t) ? On : ot.test(t) ? Js : uh : Array.isArray(t) ? Ea : typeof t == "object" ? ot.test(t) ? Js : lh : On;
|
|
2538
2538
|
}
|
|
2539
2539
|
function Ea(t, e) {
|
|
2540
|
-
const n = [...t], r = n.length, s = t.map((o, i) =>
|
|
2540
|
+
const n = [...t], r = n.length, s = t.map((o, i) => ps(o)(o, e[i]));
|
|
2541
2541
|
return (o) => {
|
|
2542
2542
|
for (let i = 0; i < r; i++)
|
|
2543
2543
|
n[i] = s[i](o);
|
|
@@ -2547,7 +2547,7 @@ function Ea(t, e) {
|
|
|
2547
2547
|
function lh(t, e) {
|
|
2548
2548
|
const n = { ...t, ...e }, r = {};
|
|
2549
2549
|
for (const s in n)
|
|
2550
|
-
t[s] !== void 0 && e[s] !== void 0 && (r[s] =
|
|
2550
|
+
t[s] !== void 0 && e[s] !== void 0 && (r[s] = ps(t[s])(t[s], e[s]));
|
|
2551
2551
|
return (s) => {
|
|
2552
2552
|
for (const o in r)
|
|
2553
2553
|
n[o] = r[o](s);
|
|
@@ -2565,10 +2565,10 @@ function ch(t, e) {
|
|
|
2565
2565
|
}
|
|
2566
2566
|
const uh = (t, e) => {
|
|
2567
2567
|
const n = Kt.createTransformer(e), r = Qe(t), s = Qe(e);
|
|
2568
|
-
return r.indexes.var.length === s.indexes.var.length && r.indexes.color.length === s.indexes.color.length && r.indexes.number.length >= s.indexes.number.length ?
|
|
2568
|
+
return r.indexes.var.length === s.indexes.var.length && r.indexes.color.length === s.indexes.color.length && r.indexes.number.length >= s.indexes.number.length ? xr.has(t) && !s.values.length || xr.has(e) && !r.values.length ? ih(t, e) : an(Ea(ch(r, s), s.values), n) : (Ae(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), On(t, e));
|
|
2569
2569
|
};
|
|
2570
2570
|
function Aa(t, e, n) {
|
|
2571
|
-
return typeof t == "number" && typeof e == "number" && typeof n == "number" ? W(t, e, n) :
|
|
2571
|
+
return typeof t == "number" && typeof e == "number" && typeof n == "number" ? W(t, e, n) : ps(t)(t, e);
|
|
2572
2572
|
}
|
|
2573
2573
|
const dh = 5;
|
|
2574
2574
|
function Ma(t, e, n) {
|
|
@@ -2603,17 +2603,17 @@ const z = {
|
|
|
2603
2603
|
// in seconds
|
|
2604
2604
|
minDamping: 0.05,
|
|
2605
2605
|
maxDamping: 1
|
|
2606
|
-
},
|
|
2606
|
+
}, Qs = 1e-3;
|
|
2607
2607
|
function hh({ duration: t = z.duration, bounce: e = z.bounce, velocity: n = z.velocity, mass: r = z.mass }) {
|
|
2608
2608
|
let s, o;
|
|
2609
|
-
Ae(t <= /* @__PURE__ */
|
|
2609
|
+
Ae(t <= /* @__PURE__ */ wt(z.maxDuration), "Spring duration must be 10 seconds or less");
|
|
2610
2610
|
let i = 1 - e;
|
|
2611
2611
|
i = Ot(z.minDamping, z.maxDamping, i), t = Ot(z.minDuration, z.maxDuration, /* @__PURE__ */ Lt(t)), i < 1 ? (s = (c) => {
|
|
2612
2612
|
const u = c * i, d = u * t, h = u - n, f = _r(c, i), p = Math.exp(-d);
|
|
2613
|
-
return
|
|
2613
|
+
return Qs - h / f * p;
|
|
2614
2614
|
}, o = (c) => {
|
|
2615
2615
|
const d = c * i * t, h = d * n + n, f = Math.pow(i, 2) * Math.pow(c, 2) * t, p = Math.exp(-d), m = _r(Math.pow(c, 2), i);
|
|
2616
|
-
return (-s(c) +
|
|
2616
|
+
return (-s(c) + Qs > 0 ? -1 : 1) * ((h - f) * p) / m;
|
|
2617
2617
|
}) : (s = (c) => {
|
|
2618
2618
|
const u = Math.exp(-c * t), d = (c - n) * t + 1;
|
|
2619
2619
|
return -1e-3 + u * d;
|
|
@@ -2622,7 +2622,7 @@ function hh({ duration: t = z.duration, bounce: e = z.bounce, velocity: n = z.ve
|
|
|
2622
2622
|
return u * d;
|
|
2623
2623
|
});
|
|
2624
2624
|
const a = 5 / t, l = ph(s, o, a);
|
|
2625
|
-
if (t = /* @__PURE__ */
|
|
2625
|
+
if (t = /* @__PURE__ */ wt(t), isNaN(l))
|
|
2626
2626
|
return {
|
|
2627
2627
|
stiffness: z.stiffness,
|
|
2628
2628
|
damping: z.damping,
|
|
@@ -2648,7 +2648,7 @@ function _r(t, e) {
|
|
|
2648
2648
|
return t * Math.sqrt(1 - e * e);
|
|
2649
2649
|
}
|
|
2650
2650
|
const mh = ["duration", "bounce"], gh = ["stiffness", "damping", "mass"];
|
|
2651
|
-
function
|
|
2651
|
+
function to(t, e) {
|
|
2652
2652
|
return e.some((n) => t[n] !== void 0);
|
|
2653
2653
|
}
|
|
2654
2654
|
function yh(t) {
|
|
@@ -2660,7 +2660,7 @@ function yh(t) {
|
|
|
2660
2660
|
isResolvedFromDuration: !1,
|
|
2661
2661
|
...t
|
|
2662
2662
|
};
|
|
2663
|
-
if (!
|
|
2663
|
+
if (!to(t, gh) && to(t, mh))
|
|
2664
2664
|
if (t.visualDuration) {
|
|
2665
2665
|
const n = t.visualDuration, r = 2 * Math.PI / (n * 1.2), s = r * r, o = 2 * Ot(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(s);
|
|
2666
2666
|
e = {
|
|
@@ -2693,42 +2693,42 @@ function Pa(t = z.visualDuration, e = z.bounce) {
|
|
|
2693
2693
|
r || (r = v ? z.restSpeed.granular : z.restSpeed.default), s || (s = v ? z.restDelta.granular : z.restDelta.default);
|
|
2694
2694
|
let C;
|
|
2695
2695
|
if (m < 1) {
|
|
2696
|
-
const
|
|
2697
|
-
C = (
|
|
2698
|
-
const E = Math.exp(-m * y *
|
|
2699
|
-
return i - E * ((p + m * y * g) /
|
|
2696
|
+
const S = _r(y, m);
|
|
2697
|
+
C = (x) => {
|
|
2698
|
+
const E = Math.exp(-m * y * x);
|
|
2699
|
+
return i - E * ((p + m * y * g) / S * Math.sin(S * x) + g * Math.cos(S * x));
|
|
2700
2700
|
};
|
|
2701
2701
|
} else if (m === 1)
|
|
2702
|
-
C = (
|
|
2702
|
+
C = (S) => i - Math.exp(-y * S) * (g + (p + y * g) * S);
|
|
2703
2703
|
else {
|
|
2704
|
-
const
|
|
2705
|
-
C = (
|
|
2706
|
-
const E = Math.exp(-m * y *
|
|
2707
|
-
return i - E * ((p + m * y * g) * Math.sinh(T) +
|
|
2704
|
+
const S = y * Math.sqrt(m * m - 1);
|
|
2705
|
+
C = (x) => {
|
|
2706
|
+
const E = Math.exp(-m * y * x), T = Math.min(S * x, 300);
|
|
2707
|
+
return i - E * ((p + m * y * g) * Math.sinh(T) + S * g * Math.cosh(T)) / S;
|
|
2708
2708
|
};
|
|
2709
2709
|
}
|
|
2710
|
-
const
|
|
2710
|
+
const w = {
|
|
2711
2711
|
calculatedDuration: f && d || null,
|
|
2712
|
-
next: (
|
|
2713
|
-
const
|
|
2712
|
+
next: (S) => {
|
|
2713
|
+
const x = C(S);
|
|
2714
2714
|
if (f)
|
|
2715
|
-
a.done =
|
|
2715
|
+
a.done = S >= d;
|
|
2716
2716
|
else {
|
|
2717
2717
|
let E = 0;
|
|
2718
|
-
m < 1 && (E =
|
|
2719
|
-
const T = Math.abs(E) <= r, L = Math.abs(i -
|
|
2718
|
+
m < 1 && (E = S === 0 ? /* @__PURE__ */ wt(p) : Ma(C, S, x));
|
|
2719
|
+
const T = Math.abs(E) <= r, L = Math.abs(i - x) <= s;
|
|
2720
2720
|
a.done = T && L;
|
|
2721
2721
|
}
|
|
2722
|
-
return a.value = a.done ? i :
|
|
2722
|
+
return a.value = a.done ? i : x, a;
|
|
2723
2723
|
},
|
|
2724
2724
|
toString: () => {
|
|
2725
|
-
const
|
|
2726
|
-
return
|
|
2725
|
+
const S = Math.min(Pi(w), hr), x = Li((E) => w.next(S * E).value, S, 30);
|
|
2726
|
+
return S + "ms " + x;
|
|
2727
2727
|
}
|
|
2728
2728
|
};
|
|
2729
|
-
return
|
|
2729
|
+
return w;
|
|
2730
2730
|
}
|
|
2731
|
-
function
|
|
2731
|
+
function eo({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: r = 325, bounceDamping: s = 10, bounceStiffness: o = 500, modifyTarget: i, min: a, max: l, restDelta: c = 0.5, restSpeed: u }) {
|
|
2732
2732
|
const d = t[0], h = {
|
|
2733
2733
|
done: !1,
|
|
2734
2734
|
value: d
|
|
@@ -2736,13 +2736,13 @@ function to({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
2736
2736
|
let m = n * e;
|
|
2737
2737
|
const g = d + m, y = i === void 0 ? g : i(g);
|
|
2738
2738
|
y !== g && (m = y - d);
|
|
2739
|
-
const v = (T) => -m * Math.exp(-T / r), C = (T) => y + v(T),
|
|
2739
|
+
const v = (T) => -m * Math.exp(-T / r), C = (T) => y + v(T), w = (T) => {
|
|
2740
2740
|
const L = v(T), A = C(T);
|
|
2741
2741
|
h.done = Math.abs(L) <= c, h.value = h.done ? y : A;
|
|
2742
2742
|
};
|
|
2743
|
-
let
|
|
2743
|
+
let S, x;
|
|
2744
2744
|
const E = (T) => {
|
|
2745
|
-
f(h.value) && (
|
|
2745
|
+
f(h.value) && (S = T, x = Pa({
|
|
2746
2746
|
keyframes: [h.value, p(h.value)],
|
|
2747
2747
|
velocity: Ma(C, T, h.value),
|
|
2748
2748
|
// TODO: This should be passing * 1000
|
|
@@ -2756,32 +2756,32 @@ function to({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
2756
2756
|
calculatedDuration: null,
|
|
2757
2757
|
next: (T) => {
|
|
2758
2758
|
let L = !1;
|
|
2759
|
-
return !
|
|
2759
|
+
return !x && S === void 0 && (L = !0, w(T), E(T)), S !== void 0 && T >= S ? x.next(T - S) : (!L && w(T), h);
|
|
2760
2760
|
}
|
|
2761
2761
|
};
|
|
2762
2762
|
}
|
|
2763
|
-
const vh = /* @__PURE__ */ on(0.42, 0, 1, 1), bh = /* @__PURE__ */ on(0, 0, 0.58, 1), La = /* @__PURE__ */ on(0.42, 0, 0.58, 1), Ch = (t) => Array.isArray(t) && typeof t[0] != "number",
|
|
2763
|
+
const vh = /* @__PURE__ */ on(0.42, 0, 1, 1), bh = /* @__PURE__ */ on(0, 0, 0.58, 1), La = /* @__PURE__ */ on(0.42, 0, 0.58, 1), Ch = (t) => Array.isArray(t) && typeof t[0] != "number", no = {
|
|
2764
2764
|
linear: ft,
|
|
2765
2765
|
easeIn: vh,
|
|
2766
2766
|
easeInOut: La,
|
|
2767
2767
|
easeOut: bh,
|
|
2768
|
-
circIn:
|
|
2768
|
+
circIn: us,
|
|
2769
2769
|
circInOut: ca,
|
|
2770
2770
|
circOut: la,
|
|
2771
|
-
backIn:
|
|
2771
|
+
backIn: cs,
|
|
2772
2772
|
backInOut: ia,
|
|
2773
2773
|
backOut: oa,
|
|
2774
2774
|
anticipate: aa
|
|
2775
|
-
},
|
|
2776
|
-
if (
|
|
2775
|
+
}, ro = (t) => {
|
|
2776
|
+
if (Wr(t)) {
|
|
2777
2777
|
Gt(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
|
|
2778
2778
|
const [e, n, r, s] = t;
|
|
2779
2779
|
return on(e, n, r, s);
|
|
2780
2780
|
} else if (typeof t == "string")
|
|
2781
|
-
return Gt(
|
|
2781
|
+
return Gt(no[t] !== void 0, `Invalid easing type '${t}'`), no[t];
|
|
2782
2782
|
return t;
|
|
2783
2783
|
};
|
|
2784
|
-
function
|
|
2784
|
+
function Sh(t, e, n) {
|
|
2785
2785
|
const r = [], s = n || Aa, o = t.length - 1;
|
|
2786
2786
|
for (let i = 0; i < o; i++) {
|
|
2787
2787
|
let a = s(t[i], t[i + 1]);
|
|
@@ -2793,7 +2793,7 @@ function xh(t, e, n) {
|
|
|
2793
2793
|
}
|
|
2794
2794
|
return r;
|
|
2795
2795
|
}
|
|
2796
|
-
function
|
|
2796
|
+
function wh(t, e, { clamp: n = !0, ease: r, mixer: s } = {}) {
|
|
2797
2797
|
const o = t.length;
|
|
2798
2798
|
if (Gt(o === e.length, "Both input and output ranges must be the same length"), o === 1)
|
|
2799
2799
|
return () => e[0];
|
|
@@ -2801,7 +2801,7 @@ function Sh(t, e, { clamp: n = !0, ease: r, mixer: s } = {}) {
|
|
|
2801
2801
|
return () => e[1];
|
|
2802
2802
|
const i = t[0] === t[1];
|
|
2803
2803
|
t[0] > t[o - 1] && (t = [...t].reverse(), e = [...e].reverse());
|
|
2804
|
-
const a =
|
|
2804
|
+
const a = Sh(e, r, s), l = a.length, c = (u) => {
|
|
2805
2805
|
if (i && u < t[0])
|
|
2806
2806
|
return e[0];
|
|
2807
2807
|
let d = 0;
|
|
@@ -2813,7 +2813,7 @@ function Sh(t, e, { clamp: n = !0, ease: r, mixer: s } = {}) {
|
|
|
2813
2813
|
};
|
|
2814
2814
|
return n ? (u) => c(Ot(t[0], t[o - 1], u)) : c;
|
|
2815
2815
|
}
|
|
2816
|
-
function
|
|
2816
|
+
function xh(t, e) {
|
|
2817
2817
|
const n = t[t.length - 1];
|
|
2818
2818
|
for (let r = 1; r <= e; r++) {
|
|
2819
2819
|
const s = /* @__PURE__ */ _e(0, e, r);
|
|
@@ -2822,7 +2822,7 @@ function wh(t, e) {
|
|
|
2822
2822
|
}
|
|
2823
2823
|
function _h(t) {
|
|
2824
2824
|
const e = [0];
|
|
2825
|
-
return
|
|
2825
|
+
return xh(e, t.length - 1), e;
|
|
2826
2826
|
}
|
|
2827
2827
|
function Th(t, e) {
|
|
2828
2828
|
return t.map((n) => n * e);
|
|
@@ -2831,7 +2831,7 @@ function Eh(t, e) {
|
|
|
2831
2831
|
return t.map(() => e || La).splice(0, t.length - 1);
|
|
2832
2832
|
}
|
|
2833
2833
|
function Fe({ duration: t = 300, keyframes: e, times: n, ease: r = "easeInOut" }) {
|
|
2834
|
-
const s = Ch(r) ? r.map(
|
|
2834
|
+
const s = Ch(r) ? r.map(ro) : ro(r), o = {
|
|
2835
2835
|
done: !1,
|
|
2836
2836
|
value: e[0]
|
|
2837
2837
|
}, i = Th(
|
|
@@ -2839,7 +2839,7 @@ function Fe({ duration: t = 300, keyframes: e, times: n, ease: r = "easeInOut" }
|
|
|
2839
2839
|
// TODO Maybe we should warn here if there's a length mismatch
|
|
2840
2840
|
n && n.length === e.length ? n : _h(e),
|
|
2841
2841
|
t
|
|
2842
|
-
), a =
|
|
2842
|
+
), a = wh(i, e, {
|
|
2843
2843
|
ease: Array.isArray(s) ? s : Eh(e, s)
|
|
2844
2844
|
});
|
|
2845
2845
|
return {
|
|
@@ -2856,16 +2856,16 @@ const Ah = (t) => {
|
|
|
2856
2856
|
* If we're processing this frame we can use the
|
|
2857
2857
|
* framelocked timestamp to keep things in sync.
|
|
2858
2858
|
*/
|
|
2859
|
-
now: () => st.isProcessing ? st.timestamp :
|
|
2859
|
+
now: () => st.isProcessing ? st.timestamp : xt.now()
|
|
2860
2860
|
};
|
|
2861
2861
|
}, Mh = {
|
|
2862
|
-
decay:
|
|
2863
|
-
inertia:
|
|
2862
|
+
decay: eo,
|
|
2863
|
+
inertia: eo,
|
|
2864
2864
|
tween: Fe,
|
|
2865
2865
|
keyframes: Fe,
|
|
2866
2866
|
spring: Pa
|
|
2867
2867
|
}, Ph = (t) => t / 100;
|
|
2868
|
-
class
|
|
2868
|
+
class ms extends Ta {
|
|
2869
2869
|
constructor(e) {
|
|
2870
2870
|
super(e), this.holdTime = null, this.cancelTime = null, this.currentTime = 0, this.playbackSpeed = 1, this.pendingPlayState = "running", this.startTime = null, this.state = "idle", this.stop = () => {
|
|
2871
2871
|
if (this.resolver.cancel(), this.isStopped = !0, this.state === "idle")
|
|
@@ -2874,14 +2874,14 @@ class ps extends Ta {
|
|
|
2874
2874
|
const { onStop: l } = this.options;
|
|
2875
2875
|
l && l();
|
|
2876
2876
|
};
|
|
2877
|
-
const { name: n, motionValue: r, element: s, keyframes: o } = this.options, i = (s == null ? void 0 : s.KeyframeResolver) ||
|
|
2877
|
+
const { name: n, motionValue: r, element: s, keyframes: o } = this.options, i = (s == null ? void 0 : s.KeyframeResolver) || fs, a = (l, c) => this.onKeyframesResolved(l, c);
|
|
2878
2878
|
this.resolver = new i(o, a, n, r, s), this.resolver.scheduleResolve();
|
|
2879
2879
|
}
|
|
2880
2880
|
flatten() {
|
|
2881
2881
|
super.flatten(), this._resolved && Object.assign(this._resolved, this.initPlayback(this._resolved.keyframes));
|
|
2882
2882
|
}
|
|
2883
2883
|
initPlayback(e) {
|
|
2884
|
-
const { type: n = "keyframes", repeat: r = 0, repeatDelay: s = 0, repeatType: o, velocity: i = 0 } = this.options, a =
|
|
2884
|
+
const { type: n = "keyframes", repeat: r = 0, repeatDelay: s = 0, repeatType: o, velocity: i = 0 } = this.options, a = Gr(n) ? n : Mh[n] || Fe;
|
|
2885
2885
|
let l, c;
|
|
2886
2886
|
process.env.NODE_ENV !== "production" && a !== Fe && Gt(e.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), a !== Fe && typeof e[0] != "number" && (l = an(Ph, Aa(e[0], e[1])), e = [0, 100]);
|
|
2887
2887
|
const u = a({ ...this.options, keyframes: e });
|
|
@@ -2917,18 +2917,18 @@ class ps extends Ta {
|
|
|
2917
2917
|
this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - u / this.speed, this.startTime)), n ? this.currentTime = e : this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = Math.round(e - this.startTime) * this.speed;
|
|
2918
2918
|
const y = this.currentTime - h * (this.speed >= 0 ? 1 : -1), v = this.speed >= 0 ? y < 0 : y > u;
|
|
2919
2919
|
this.currentTime = Math.max(y, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = u);
|
|
2920
|
-
let C = this.currentTime,
|
|
2920
|
+
let C = this.currentTime, w = o;
|
|
2921
2921
|
if (f) {
|
|
2922
2922
|
const T = Math.min(this.currentTime, u) / d;
|
|
2923
2923
|
let L = Math.floor(T), A = T % 1;
|
|
2924
|
-
!A && T >= 1 && (A = 1), A === 1 && L--, L = Math.min(L, f + 1), !!(L % 2) && (p === "reverse" ? (A = 1 - A, m && (A -= m / d)) : p === "mirror" && (
|
|
2924
|
+
!A && T >= 1 && (A = 1), A === 1 && L--, L = Math.min(L, f + 1), !!(L % 2) && (p === "reverse" ? (A = 1 - A, m && (A -= m / d)) : p === "mirror" && (w = i)), C = Ot(0, 1, A) * d;
|
|
2925
2925
|
}
|
|
2926
|
-
const
|
|
2927
|
-
a && (
|
|
2928
|
-
let { done:
|
|
2929
|
-
!v && c !== null && (
|
|
2930
|
-
const E = this.holdTime === null && (this.state === "finished" || this.state === "running" &&
|
|
2931
|
-
return E && s !== void 0 && (
|
|
2926
|
+
const S = v ? { done: !1, value: l[0] } : w.next(C);
|
|
2927
|
+
a && (S.value = a(S.value));
|
|
2928
|
+
let { done: x } = S;
|
|
2929
|
+
!v && c !== null && (x = this.speed >= 0 ? this.currentTime >= u : this.currentTime <= 0);
|
|
2930
|
+
const E = this.holdTime === null && (this.state === "finished" || this.state === "running" && x);
|
|
2931
|
+
return E && s !== void 0 && (S.value = zn(l, this.options, s)), g && g(S.value), E && this.finish(), S;
|
|
2932
2932
|
}
|
|
2933
2933
|
get duration() {
|
|
2934
2934
|
const { resolved: e } = this;
|
|
@@ -2938,7 +2938,7 @@ class ps extends Ta {
|
|
|
2938
2938
|
return /* @__PURE__ */ Lt(this.currentTime);
|
|
2939
2939
|
}
|
|
2940
2940
|
set time(e) {
|
|
2941
|
-
e = /* @__PURE__ */
|
|
2941
|
+
e = /* @__PURE__ */ wt(e), this.currentTime = e, this.holdTime !== null || this.speed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.speed);
|
|
2942
2942
|
}
|
|
2943
2943
|
get speed() {
|
|
2944
2944
|
return this.playbackSpeed;
|
|
@@ -3010,12 +3010,12 @@ function Oh(t, e, n, { delay: r = 0, duration: s = 300, repeat: o = 0, repeatTyp
|
|
|
3010
3010
|
direction: i === "reverse" ? "alternate" : "normal"
|
|
3011
3011
|
});
|
|
3012
3012
|
}
|
|
3013
|
-
const kh = /* @__PURE__ */
|
|
3013
|
+
const kh = /* @__PURE__ */ Ur(() => Object.hasOwnProperty.call(Element.prototype, "animate")), kn = 10, Dh = 2e4;
|
|
3014
3014
|
function Rh(t) {
|
|
3015
|
-
return
|
|
3015
|
+
return Gr(t.type) || t.type === "spring" || !Oi(t.ease);
|
|
3016
3016
|
}
|
|
3017
3017
|
function Nh(t, e) {
|
|
3018
|
-
const n = new
|
|
3018
|
+
const n = new ms({
|
|
3019
3019
|
...e,
|
|
3020
3020
|
keyframes: t,
|
|
3021
3021
|
repeat: 0,
|
|
@@ -3042,7 +3042,7 @@ const Oa = {
|
|
|
3042
3042
|
function Ih(t) {
|
|
3043
3043
|
return t in Oa;
|
|
3044
3044
|
}
|
|
3045
|
-
class
|
|
3045
|
+
class so extends Ta {
|
|
3046
3046
|
constructor(e) {
|
|
3047
3047
|
super(e);
|
|
3048
3048
|
const { name: n, motionValue: r, element: s, keyframes: o } = this.options;
|
|
@@ -3057,7 +3057,7 @@ class ro extends Ta {
|
|
|
3057
3057
|
e = g.keyframes, e.length === 1 && (e[1] = e[0]), r = g.duration, s = g.times, o = g.ease, i = "keyframes";
|
|
3058
3058
|
}
|
|
3059
3059
|
const u = Oh(a.owner.current, l, e, { ...this.options, duration: r, times: s, ease: o });
|
|
3060
|
-
return u.startTime = c ?? this.calcStartTime(), this.pendingTimeline ? (
|
|
3060
|
+
return u.startTime = c ?? this.calcStartTime(), this.pendingTimeline ? (Ps(u, this.pendingTimeline), this.pendingTimeline = void 0) : u.onfinish = () => {
|
|
3061
3061
|
const { onComplete: d } = this.options;
|
|
3062
3062
|
a.set(zn(e, this.options, n)), d && d(), this.cancel(), this.resolveFinishedPromise();
|
|
3063
3063
|
}, {
|
|
@@ -3088,7 +3088,7 @@ class ro extends Ta {
|
|
|
3088
3088
|
if (!n)
|
|
3089
3089
|
return;
|
|
3090
3090
|
const { animation: r } = n;
|
|
3091
|
-
r.currentTime = /* @__PURE__ */
|
|
3091
|
+
r.currentTime = /* @__PURE__ */ wt(e);
|
|
3092
3092
|
}
|
|
3093
3093
|
get speed() {
|
|
3094
3094
|
const { resolved: e } = this;
|
|
@@ -3130,7 +3130,7 @@ class ro extends Ta {
|
|
|
3130
3130
|
if (!n)
|
|
3131
3131
|
return ft;
|
|
3132
3132
|
const { animation: r } = n;
|
|
3133
|
-
|
|
3133
|
+
Ps(r, e);
|
|
3134
3134
|
}
|
|
3135
3135
|
return ft;
|
|
3136
3136
|
}
|
|
@@ -3161,7 +3161,7 @@ class ro extends Ta {
|
|
|
3161
3161
|
if (n.playState === "idle" || n.playState === "finished")
|
|
3162
3162
|
return;
|
|
3163
3163
|
if (this.time) {
|
|
3164
|
-
const { motionValue: c, onUpdate: u, onComplete: d, element: h, ...f } = this.options, p = new
|
|
3164
|
+
const { motionValue: c, onUpdate: u, onComplete: d, element: h, ...f } = this.options, p = new ms({
|
|
3165
3165
|
...f,
|
|
3166
3166
|
keyframes: r,
|
|
3167
3167
|
duration: s,
|
|
@@ -3169,7 +3169,7 @@ class ro extends Ta {
|
|
|
3169
3169
|
ease: i,
|
|
3170
3170
|
times: a,
|
|
3171
3171
|
isGenerator: !0
|
|
3172
|
-
}), m = /* @__PURE__ */
|
|
3172
|
+
}), m = /* @__PURE__ */ wt(this.time);
|
|
3173
3173
|
c.setWithVelocity(p.sample(m - kn).value, p.sample(m).value, kn);
|
|
3174
3174
|
}
|
|
3175
3175
|
const { onStop: l } = this.options;
|
|
@@ -3216,10 +3216,10 @@ const Vh = {
|
|
|
3216
3216
|
function zh({ when: t, delay: e, delayChildren: n, staggerChildren: r, staggerDirection: s, repeat: o, repeatType: i, repeatDelay: a, from: l, elapsed: c, ...u }) {
|
|
3217
3217
|
return !!Object.keys(u).length;
|
|
3218
3218
|
}
|
|
3219
|
-
const
|
|
3220
|
-
const a =
|
|
3219
|
+
const gs = (t, e, n, r = {}, s, o) => (i) => {
|
|
3220
|
+
const a = qr(r, t) || {}, l = a.delay || r.delay || 0;
|
|
3221
3221
|
let { elapsed: c = 0 } = r;
|
|
3222
|
-
c = c - /* @__PURE__ */
|
|
3222
|
+
c = c - /* @__PURE__ */ wt(l);
|
|
3223
3223
|
let u = {
|
|
3224
3224
|
keyframes: Array.isArray(n) ? n : [null, n],
|
|
3225
3225
|
ease: "easeOut",
|
|
@@ -3239,7 +3239,7 @@ const ms = (t, e, n, r = {}, s, o) => (i) => {
|
|
|
3239
3239
|
zh(a) || (u = {
|
|
3240
3240
|
...u,
|
|
3241
3241
|
...jh(t, u)
|
|
3242
|
-
}), u.duration && (u.duration = /* @__PURE__ */
|
|
3242
|
+
}), u.duration && (u.duration = /* @__PURE__ */ wt(u.duration)), u.repeatDelay && (u.repeatDelay = /* @__PURE__ */ wt(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
|
|
3243
3243
|
let d = !1;
|
|
3244
3244
|
if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (u.duration = 0, u.delay === 0 && (d = !0)), u.allowFlatten = !a.type && !a.ease, d && !o && e.get() !== void 0) {
|
|
3245
3245
|
const h = zn(u.keyframes, a);
|
|
@@ -3248,7 +3248,7 @@ const ms = (t, e, n, r = {}, s, o) => (i) => {
|
|
|
3248
3248
|
u.onUpdate(h), u.onComplete();
|
|
3249
3249
|
}), new du([]);
|
|
3250
3250
|
}
|
|
3251
|
-
return !o &&
|
|
3251
|
+
return !o && so.supports(u) ? new so(u) : new ms(u);
|
|
3252
3252
|
};
|
|
3253
3253
|
function Uh({ protectedKeys: t, needsAnimating: e }, n) {
|
|
3254
3254
|
const r = t.hasOwnProperty(n) && e[n] !== !0;
|
|
@@ -3265,7 +3265,7 @@ function ka(t, e, { delay: n = 0, transitionOverride: r, type: s } = {}) {
|
|
|
3265
3265
|
continue;
|
|
3266
3266
|
const p = {
|
|
3267
3267
|
delay: n,
|
|
3268
|
-
...
|
|
3268
|
+
...qr(i || {}, d)
|
|
3269
3269
|
};
|
|
3270
3270
|
let m = !1;
|
|
3271
3271
|
if (window.MotionHandoffAnimation) {
|
|
@@ -3275,7 +3275,7 @@ function ka(t, e, { delay: n = 0, transitionOverride: r, type: s } = {}) {
|
|
|
3275
3275
|
v !== null && (p.startTime = v, m = !0);
|
|
3276
3276
|
}
|
|
3277
3277
|
}
|
|
3278
|
-
mr(t, d), h.start(
|
|
3278
|
+
mr(t, d), h.start(gs(d, h, f, t.shouldReduceMotion && ta.has(d) ? { type: !1 } : p, t, m));
|
|
3279
3279
|
const g = h.animation;
|
|
3280
3280
|
g && c.push(g);
|
|
3281
3281
|
}
|
|
@@ -3339,7 +3339,7 @@ function Da(t, e) {
|
|
|
3339
3339
|
return !1;
|
|
3340
3340
|
return !0;
|
|
3341
3341
|
}
|
|
3342
|
-
const Wh =
|
|
3342
|
+
const Wh = Yr.length;
|
|
3343
3343
|
function Ra(t) {
|
|
3344
3344
|
if (!t)
|
|
3345
3345
|
return;
|
|
@@ -3349,17 +3349,17 @@ function Ra(t) {
|
|
|
3349
3349
|
}
|
|
3350
3350
|
const e = {};
|
|
3351
3351
|
for (let n = 0; n < Wh; n++) {
|
|
3352
|
-
const r =
|
|
3352
|
+
const r = Yr[n], s = t.props[r];
|
|
3353
3353
|
(He(s) || s === !1) && (e[r] = s);
|
|
3354
3354
|
}
|
|
3355
3355
|
return e;
|
|
3356
3356
|
}
|
|
3357
|
-
const Kh = [...
|
|
3357
|
+
const Kh = [...Zr].reverse(), Hh = Zr.length;
|
|
3358
3358
|
function Zh(t) {
|
|
3359
3359
|
return (e) => Promise.all(e.map(({ animation: n, options: r }) => Gh(t, n, r)));
|
|
3360
3360
|
}
|
|
3361
3361
|
function Yh(t) {
|
|
3362
|
-
let e = Zh(t), n =
|
|
3362
|
+
let e = Zh(t), n = oo(), r = !0;
|
|
3363
3363
|
const s = (l) => (c, u) => {
|
|
3364
3364
|
var d;
|
|
3365
3365
|
const h = Je(t, u, l === "exit" ? (d = t.presenceContext) === null || d === void 0 ? void 0 : d.custom : void 0);
|
|
@@ -3376,21 +3376,21 @@ function Yh(t) {
|
|
|
3376
3376
|
const { props: c } = t, u = Ra(t.parent) || {}, d = [], h = /* @__PURE__ */ new Set();
|
|
3377
3377
|
let f = {}, p = 1 / 0;
|
|
3378
3378
|
for (let g = 0; g < Hh; g++) {
|
|
3379
|
-
const y = Kh[g], v = n[y], C = c[y] !== void 0 ? c[y] : u[y],
|
|
3380
|
-
|
|
3381
|
-
let
|
|
3382
|
-
if (
|
|
3383
|
-
!v.isActive &&
|
|
3379
|
+
const y = Kh[g], v = n[y], C = c[y] !== void 0 ? c[y] : u[y], w = He(C), S = y === l ? v.isActive : null;
|
|
3380
|
+
S === !1 && (p = g);
|
|
3381
|
+
let x = C === u[y] && C !== c[y] && w;
|
|
3382
|
+
if (x && r && t.manuallyAnimateOnMount && (x = !1), v.protectedKeys = { ...f }, // If it isn't active and hasn't *just* been set as inactive
|
|
3383
|
+
!v.isActive && S === null || // If we didn't and don't have any defined prop for this animation type
|
|
3384
3384
|
!C && !v.prevProp || // Or if the prop doesn't define an animation
|
|
3385
3385
|
$n(C) || typeof C == "boolean")
|
|
3386
3386
|
continue;
|
|
3387
3387
|
const E = Jh(v.prevProp, C);
|
|
3388
3388
|
let T = E || // If we're making this variant active, we want to always make it active
|
|
3389
|
-
y === l && v.isActive && !
|
|
3390
|
-
g > p &&
|
|
3389
|
+
y === l && v.isActive && !x && w || // If we removed a higher-priority variant (i is in reverse order)
|
|
3390
|
+
g > p && w, L = !1;
|
|
3391
3391
|
const A = Array.isArray(C) ? C : [C];
|
|
3392
3392
|
let V = A.reduce(s(y), {});
|
|
3393
|
-
|
|
3393
|
+
S === !1 && (V = {});
|
|
3394
3394
|
const { prevResolvedValues: H = {} } = v, lt = {
|
|
3395
3395
|
...H,
|
|
3396
3396
|
...V
|
|
@@ -3406,7 +3406,7 @@ function Yh(t) {
|
|
|
3406
3406
|
let Y = !1;
|
|
3407
3407
|
pr(R) && pr(B) ? Y = !Da(R, B) : Y = R !== B, Y ? R != null ? ct(P) : h.add(P) : R !== void 0 && h.has(P) ? ct(P) : v.protectedKeys[P] = !0;
|
|
3408
3408
|
}
|
|
3409
|
-
v.prevProp = C, v.prevResolvedValues = V, v.isActive && (f = { ...f, ...V }), r && t.blockInitialAnimation && (T = !1), T && (!(
|
|
3409
|
+
v.prevProp = C, v.prevResolvedValues = V, v.isActive && (f = { ...f, ...V }), r && t.blockInitialAnimation && (T = !1), T && (!(x && E) || L) && d.push(...A.map((P) => ({
|
|
3410
3410
|
animation: P,
|
|
3411
3411
|
options: { type: y }
|
|
3412
3412
|
})));
|
|
@@ -3444,7 +3444,7 @@ function Yh(t) {
|
|
|
3444
3444
|
setAnimateFunction: o,
|
|
3445
3445
|
getState: () => n,
|
|
3446
3446
|
reset: () => {
|
|
3447
|
-
n =
|
|
3447
|
+
n = oo(), r = !0;
|
|
3448
3448
|
}
|
|
3449
3449
|
};
|
|
3450
3450
|
}
|
|
@@ -3459,7 +3459,7 @@ function ee(t = !1) {
|
|
|
3459
3459
|
prevResolvedValues: {}
|
|
3460
3460
|
};
|
|
3461
3461
|
}
|
|
3462
|
-
function
|
|
3462
|
+
function oo() {
|
|
3463
3463
|
return {
|
|
3464
3464
|
animate: ee(!0),
|
|
3465
3465
|
whileInView: ee(),
|
|
@@ -3547,7 +3547,7 @@ function ln(t) {
|
|
|
3547
3547
|
}
|
|
3548
3548
|
};
|
|
3549
3549
|
}
|
|
3550
|
-
const rf = (t) => (e) =>
|
|
3550
|
+
const rf = (t) => (e) => Hr(e) && t(e, ln(e));
|
|
3551
3551
|
function $e(t, e, n, r) {
|
|
3552
3552
|
return tn(t, e, rf(n), r);
|
|
3553
3553
|
}
|
|
@@ -3578,35 +3578,35 @@ function dt(t) {
|
|
|
3578
3578
|
function df(t, e, n) {
|
|
3579
3579
|
return Math.abs(t - e) <= n;
|
|
3580
3580
|
}
|
|
3581
|
-
function
|
|
3581
|
+
function io(t, e, n, r = 0.5) {
|
|
3582
3582
|
t.origin = r, t.originPoint = W(e.min, e.max, t.origin), t.scale = dt(n) / dt(e), t.translate = W(n.min, n.max, t.origin) - t.originPoint, (t.scale >= af && t.scale <= lf || isNaN(t.scale)) && (t.scale = 1), (t.translate >= cf && t.translate <= uf || isNaN(t.translate)) && (t.translate = 0);
|
|
3583
3583
|
}
|
|
3584
3584
|
function je(t, e, n, r) {
|
|
3585
|
-
|
|
3585
|
+
io(t.x, e.x, n.x, r ? r.originX : void 0), io(t.y, e.y, n.y, r ? r.originY : void 0);
|
|
3586
3586
|
}
|
|
3587
|
-
function
|
|
3587
|
+
function ao(t, e, n) {
|
|
3588
3588
|
t.min = n.min + e.min, t.max = t.min + dt(e);
|
|
3589
3589
|
}
|
|
3590
3590
|
function hf(t, e, n) {
|
|
3591
|
-
|
|
3591
|
+
ao(t.x, e.x, n.x), ao(t.y, e.y, n.y);
|
|
3592
3592
|
}
|
|
3593
|
-
function
|
|
3593
|
+
function lo(t, e, n) {
|
|
3594
3594
|
t.min = e.min - n.min, t.max = t.min + dt(e);
|
|
3595
3595
|
}
|
|
3596
3596
|
function ze(t, e, n) {
|
|
3597
|
-
|
|
3597
|
+
lo(t.x, e.x, n.x), lo(t.y, e.y, n.y);
|
|
3598
3598
|
}
|
|
3599
|
-
const
|
|
3599
|
+
const co = () => ({
|
|
3600
3600
|
translate: 0,
|
|
3601
3601
|
scale: 1,
|
|
3602
3602
|
origin: 0,
|
|
3603
3603
|
originPoint: 0
|
|
3604
3604
|
}), be = () => ({
|
|
3605
|
-
x: lo(),
|
|
3606
|
-
y: lo()
|
|
3607
|
-
}), co = () => ({ min: 0, max: 0 }), Z = () => ({
|
|
3608
3605
|
x: co(),
|
|
3609
3606
|
y: co()
|
|
3607
|
+
}), uo = () => ({ min: 0, max: 0 }), Z = () => ({
|
|
3608
|
+
x: uo(),
|
|
3609
|
+
y: uo()
|
|
3610
3610
|
});
|
|
3611
3611
|
function gt(t) {
|
|
3612
3612
|
return [t("x"), t("y")];
|
|
@@ -3621,25 +3621,25 @@ function se(t) {
|
|
|
3621
3621
|
return Er(t) || Ba(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
|
|
3622
3622
|
}
|
|
3623
3623
|
function Ba(t) {
|
|
3624
|
-
return
|
|
3624
|
+
return ho(t.x) || ho(t.y);
|
|
3625
3625
|
}
|
|
3626
|
-
function
|
|
3626
|
+
function ho(t) {
|
|
3627
3627
|
return t && t !== "0%";
|
|
3628
3628
|
}
|
|
3629
3629
|
function Dn(t, e, n) {
|
|
3630
3630
|
const r = t - n, s = e * r;
|
|
3631
3631
|
return n + s;
|
|
3632
3632
|
}
|
|
3633
|
-
function
|
|
3633
|
+
function fo(t, e, n, r, s) {
|
|
3634
3634
|
return s !== void 0 && (t = Dn(t, s, r)), Dn(t, n, r) + e;
|
|
3635
3635
|
}
|
|
3636
3636
|
function Ar(t, e = 0, n = 1, r, s) {
|
|
3637
|
-
t.min =
|
|
3637
|
+
t.min = fo(t.min, e, n, r, s), t.max = fo(t.max, e, n, r, s);
|
|
3638
3638
|
}
|
|
3639
3639
|
function Fa(t, { x: e, y: n }) {
|
|
3640
3640
|
Ar(t.x, e.translate, e.scale, e.originPoint), Ar(t.y, n.translate, n.scale, n.originPoint);
|
|
3641
3641
|
}
|
|
3642
|
-
const
|
|
3642
|
+
const po = 0.999999999999, mo = 1.0000000000001;
|
|
3643
3643
|
function ff(t, e, n, r = !1) {
|
|
3644
3644
|
const s = n.length;
|
|
3645
3645
|
if (!s)
|
|
@@ -3649,22 +3649,22 @@ function ff(t, e, n, r = !1) {
|
|
|
3649
3649
|
for (let a = 0; a < s; a++) {
|
|
3650
3650
|
o = n[a], i = o.projectionDelta;
|
|
3651
3651
|
const { visualElement: l } = o.options;
|
|
3652
|
-
l && l.props.style && l.props.style.display === "contents" || (r && o.options.layoutScroll && o.scroll && o !== o.root &&
|
|
3652
|
+
l && l.props.style && l.props.style.display === "contents" || (r && o.options.layoutScroll && o.scroll && o !== o.root && Se(t, {
|
|
3653
3653
|
x: -o.scroll.offset.x,
|
|
3654
3654
|
y: -o.scroll.offset.y
|
|
3655
|
-
}), i && (e.x *= i.x.scale, e.y *= i.y.scale, Fa(t, i)), r && se(o.latestValues) &&
|
|
3655
|
+
}), i && (e.x *= i.x.scale, e.y *= i.y.scale, Fa(t, i)), r && se(o.latestValues) && Se(t, o.latestValues));
|
|
3656
3656
|
}
|
|
3657
|
-
e.x <
|
|
3657
|
+
e.x < mo && e.x > po && (e.x = 1), e.y < mo && e.y > po && (e.y = 1);
|
|
3658
3658
|
}
|
|
3659
3659
|
function Ce(t, e) {
|
|
3660
3660
|
t.min = t.min + e, t.max = t.max + e;
|
|
3661
3661
|
}
|
|
3662
|
-
function
|
|
3662
|
+
function go(t, e, n, r, s = 0.5) {
|
|
3663
3663
|
const o = W(t.min, t.max, s);
|
|
3664
3664
|
Ar(t, e, n, o, r);
|
|
3665
3665
|
}
|
|
3666
|
-
function
|
|
3667
|
-
|
|
3666
|
+
function Se(t, e) {
|
|
3667
|
+
go(t.x, e.x, e.scaleX, e.scale, e.originX), go(t.y, e.y, e.scaleY, e.scale, e.originY);
|
|
3668
3668
|
}
|
|
3669
3669
|
function $a(t, e) {
|
|
3670
3670
|
return Na(of(t.getBoundingClientRect(), e));
|
|
@@ -3673,9 +3673,9 @@ function pf(t, e, n) {
|
|
|
3673
3673
|
const r = $a(t, n), { scroll: s } = e;
|
|
3674
3674
|
return s && (Ce(r.x, s.offset.x), Ce(r.y, s.offset.y)), r;
|
|
3675
3675
|
}
|
|
3676
|
-
const ja = ({ current: t }) => t ? t.ownerDocument.defaultView : null,
|
|
3676
|
+
const ja = ({ current: t }) => t ? t.ownerDocument.defaultView : null, yo = (t, e) => Math.abs(t - e);
|
|
3677
3677
|
function mf(t, e) {
|
|
3678
|
-
const n =
|
|
3678
|
+
const n = yo(t.x, e.x), r = yo(t.y, e.y);
|
|
3679
3679
|
return Math.sqrt(n ** 2 + r ** 2);
|
|
3680
3680
|
}
|
|
3681
3681
|
class za {
|
|
@@ -3699,7 +3699,7 @@ class za {
|
|
|
3699
3699
|
return;
|
|
3700
3700
|
const g = er(d.type === "pointercancel" ? this.lastMoveEventInfo : tr(h, this.transformPagePoint), this.history);
|
|
3701
3701
|
this.startEvent && f && f(d, g), p && p(d, g);
|
|
3702
|
-
}, !
|
|
3702
|
+
}, !Hr(e))
|
|
3703
3703
|
return;
|
|
3704
3704
|
this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = r, this.contextWindow = s || window;
|
|
3705
3705
|
const i = ln(e), a = tr(i, this.transformPagePoint), { point: l } = a, { timestamp: c } = st;
|
|
@@ -3717,14 +3717,14 @@ class za {
|
|
|
3717
3717
|
function tr(t, e) {
|
|
3718
3718
|
return e ? { point: e(t.point) } : t;
|
|
3719
3719
|
}
|
|
3720
|
-
function
|
|
3720
|
+
function vo(t, e) {
|
|
3721
3721
|
return { x: t.x - e.x, y: t.y - e.y };
|
|
3722
3722
|
}
|
|
3723
3723
|
function er({ point: t }, e) {
|
|
3724
3724
|
return {
|
|
3725
3725
|
point: t,
|
|
3726
|
-
delta:
|
|
3727
|
-
offset:
|
|
3726
|
+
delta: vo(t, Ua(e)),
|
|
3727
|
+
offset: vo(t, gf(e)),
|
|
3728
3728
|
velocity: yf(e, 0.1)
|
|
3729
3729
|
};
|
|
3730
3730
|
}
|
|
@@ -3739,7 +3739,7 @@ function yf(t, e) {
|
|
|
3739
3739
|
return { x: 0, y: 0 };
|
|
3740
3740
|
let n = t.length - 1, r = null;
|
|
3741
3741
|
const s = Ua(t);
|
|
3742
|
-
for (; n >= 0 && (r = t[n], !(s.timestamp - r.timestamp > /* @__PURE__ */
|
|
3742
|
+
for (; n >= 0 && (r = t[n], !(s.timestamp - r.timestamp > /* @__PURE__ */ wt(e))); )
|
|
3743
3743
|
n--;
|
|
3744
3744
|
if (!r)
|
|
3745
3745
|
return { x: 0, y: 0 };
|
|
@@ -3755,7 +3755,7 @@ function yf(t, e) {
|
|
|
3755
3755
|
function vf(t, { min: e, max: n }, r) {
|
|
3756
3756
|
return e !== void 0 && t < e ? t = r ? W(e, t, r.min) : Math.max(t, e) : n !== void 0 && t > n && (t = r ? W(n, t, r.max) : Math.min(t, n)), t;
|
|
3757
3757
|
}
|
|
3758
|
-
function
|
|
3758
|
+
function bo(t, e, n) {
|
|
3759
3759
|
return {
|
|
3760
3760
|
min: e !== void 0 ? t.min + e : void 0,
|
|
3761
3761
|
max: n !== void 0 ? t.max + n - (t.max - t.min) : void 0
|
|
@@ -3763,43 +3763,43 @@ function vo(t, e, n) {
|
|
|
3763
3763
|
}
|
|
3764
3764
|
function bf(t, { top: e, left: n, bottom: r, right: s }) {
|
|
3765
3765
|
return {
|
|
3766
|
-
x:
|
|
3767
|
-
y:
|
|
3766
|
+
x: bo(t.x, n, s),
|
|
3767
|
+
y: bo(t.y, e, r)
|
|
3768
3768
|
};
|
|
3769
3769
|
}
|
|
3770
|
-
function
|
|
3770
|
+
function Co(t, e) {
|
|
3771
3771
|
let n = e.min - t.min, r = e.max - t.max;
|
|
3772
3772
|
return e.max - e.min < t.max - t.min && ([n, r] = [r, n]), { min: n, max: r };
|
|
3773
3773
|
}
|
|
3774
3774
|
function Cf(t, e) {
|
|
3775
3775
|
return {
|
|
3776
|
-
x:
|
|
3777
|
-
y:
|
|
3776
|
+
x: Co(t.x, e.x),
|
|
3777
|
+
y: Co(t.y, e.y)
|
|
3778
3778
|
};
|
|
3779
3779
|
}
|
|
3780
|
-
function
|
|
3780
|
+
function Sf(t, e) {
|
|
3781
3781
|
let n = 0.5;
|
|
3782
3782
|
const r = dt(t), s = dt(e);
|
|
3783
3783
|
return s > r ? n = /* @__PURE__ */ _e(e.min, e.max - r, t.min) : r > s && (n = /* @__PURE__ */ _e(t.min, t.max - s, e.min)), Ot(0, 1, n);
|
|
3784
3784
|
}
|
|
3785
|
-
function
|
|
3785
|
+
function wf(t, e) {
|
|
3786
3786
|
const n = {};
|
|
3787
3787
|
return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
|
|
3788
3788
|
}
|
|
3789
3789
|
const Mr = 0.35;
|
|
3790
|
-
function
|
|
3790
|
+
function xf(t = Mr) {
|
|
3791
3791
|
return t === !1 ? t = 0 : t === !0 && (t = Mr), {
|
|
3792
|
-
x:
|
|
3793
|
-
y:
|
|
3792
|
+
x: So(t, "left", "right"),
|
|
3793
|
+
y: So(t, "top", "bottom")
|
|
3794
3794
|
};
|
|
3795
3795
|
}
|
|
3796
|
-
function
|
|
3796
|
+
function So(t, e, n) {
|
|
3797
3797
|
return {
|
|
3798
|
-
min:
|
|
3799
|
-
max:
|
|
3798
|
+
min: wo(t, e),
|
|
3799
|
+
max: wo(t, n)
|
|
3800
3800
|
};
|
|
3801
3801
|
}
|
|
3802
|
-
function
|
|
3802
|
+
function wo(t, e) {
|
|
3803
3803
|
return typeof t == "number" ? t : t[e] || 0;
|
|
3804
3804
|
}
|
|
3805
3805
|
const _f = /* @__PURE__ */ new WeakMap();
|
|
@@ -3884,8 +3884,8 @@ class Tf {
|
|
|
3884
3884
|
resolveConstraints() {
|
|
3885
3885
|
var e;
|
|
3886
3886
|
const { dragConstraints: n, dragElastic: r } = this.getProps(), s = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (e = this.visualElement.projection) === null || e === void 0 ? void 0 : e.layout, o = this.constraints;
|
|
3887
|
-
n && ye(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && s ? this.constraints = bf(s.layoutBox, n) : this.constraints = !1, this.elastic =
|
|
3888
|
-
this.constraints !== !1 && this.getAxisMotionValue(i) && (this.constraints[i] =
|
|
3887
|
+
n && ye(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && s ? this.constraints = bf(s.layoutBox, n) : this.constraints = !1, this.elastic = xf(r), o !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && gt((i) => {
|
|
3888
|
+
this.constraints !== !1 && this.getAxisMotionValue(i) && (this.constraints[i] = wf(s.layoutBox[i], this.constraints[i]));
|
|
3889
3889
|
});
|
|
3890
3890
|
}
|
|
3891
3891
|
resolveRefConstraints() {
|
|
@@ -3928,7 +3928,7 @@ class Tf {
|
|
|
3928
3928
|
}
|
|
3929
3929
|
startAxisValueAnimation(e, n) {
|
|
3930
3930
|
const r = this.getAxisMotionValue(e);
|
|
3931
|
-
return mr(this.visualElement, e), r.start(
|
|
3931
|
+
return mr(this.visualElement, e), r.start(gs(e, r, 0, n, this.visualElement, !1));
|
|
3932
3932
|
}
|
|
3933
3933
|
stopAnimation() {
|
|
3934
3934
|
gt((e) => this.getAxisMotionValue(e).stop());
|
|
@@ -3982,7 +3982,7 @@ class Tf {
|
|
|
3982
3982
|
const a = this.getAxisMotionValue(i);
|
|
3983
3983
|
if (a && this.constraints !== !1) {
|
|
3984
3984
|
const l = a.get();
|
|
3985
|
-
s[i] =
|
|
3985
|
+
s[i] = Sf({ min: l, max: l }, this.constraints[i]);
|
|
3986
3986
|
}
|
|
3987
3987
|
});
|
|
3988
3988
|
const { transformTemplate: o } = this.visualElement.getProps();
|
|
@@ -4047,7 +4047,7 @@ class Af extends Zt {
|
|
|
4047
4047
|
this.removeGroupControls(), this.removeListeners();
|
|
4048
4048
|
}
|
|
4049
4049
|
}
|
|
4050
|
-
const
|
|
4050
|
+
const xo = (t) => (e, n) => {
|
|
4051
4051
|
t && F.postRender(() => t(e, n));
|
|
4052
4052
|
};
|
|
4053
4053
|
class Mf extends Zt {
|
|
@@ -4063,8 +4063,8 @@ class Mf extends Zt {
|
|
|
4063
4063
|
createPanHandlers() {
|
|
4064
4064
|
const { onPanSessionStart: e, onPanStart: n, onPan: r, onPanEnd: s } = this.node.getProps();
|
|
4065
4065
|
return {
|
|
4066
|
-
onSessionStart:
|
|
4067
|
-
onStart:
|
|
4066
|
+
onSessionStart: xo(e),
|
|
4067
|
+
onStart: xo(n),
|
|
4068
4068
|
onMove: r,
|
|
4069
4069
|
onEnd: (o, i) => {
|
|
4070
4070
|
delete this.session, s && F.postRender(() => s(o, i));
|
|
@@ -4093,7 +4093,7 @@ const Tn = {
|
|
|
4093
4093
|
*/
|
|
4094
4094
|
hasEverUpdated: !1
|
|
4095
4095
|
};
|
|
4096
|
-
function
|
|
4096
|
+
function _o(t, e) {
|
|
4097
4097
|
return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
|
|
4098
4098
|
}
|
|
4099
4099
|
const Oe = {
|
|
@@ -4105,7 +4105,7 @@ const Oe = {
|
|
|
4105
4105
|
t = parseFloat(t);
|
|
4106
4106
|
else
|
|
4107
4107
|
return t;
|
|
4108
|
-
const n =
|
|
4108
|
+
const n = _o(t, e.target.x), r = _o(t, e.target.y);
|
|
4109
4109
|
return `${n}% ${r}%`;
|
|
4110
4110
|
}
|
|
4111
4111
|
}, Pf = {
|
|
@@ -4143,7 +4143,7 @@ class Lf extends vi {
|
|
|
4143
4143
|
}
|
|
4144
4144
|
componentDidUpdate() {
|
|
4145
4145
|
const { projection: e } = this.props.visualElement;
|
|
4146
|
-
e && (e.root.didUpdate(),
|
|
4146
|
+
e && (e.root.didUpdate(), Kr.postRender(() => {
|
|
4147
4147
|
!e.currentAnimation && e.isLead() && this.safeToRemove();
|
|
4148
4148
|
}));
|
|
4149
4149
|
}
|
|
@@ -4181,7 +4181,7 @@ const Of = {
|
|
|
4181
4181
|
};
|
|
4182
4182
|
function kf(t, e, n) {
|
|
4183
4183
|
const r = it(t) ? t : Ke(t);
|
|
4184
|
-
return r.start(
|
|
4184
|
+
return r.start(gs("", r, e, n)), r.animation;
|
|
4185
4185
|
}
|
|
4186
4186
|
function Df(t) {
|
|
4187
4187
|
return t instanceof SVGElement && t.tagName !== "svg";
|
|
@@ -4192,23 +4192,23 @@ class Nf {
|
|
|
4192
4192
|
this.children = [], this.isDirty = !1;
|
|
4193
4193
|
}
|
|
4194
4194
|
add(e) {
|
|
4195
|
-
|
|
4195
|
+
jr(this.children, e), this.isDirty = !0;
|
|
4196
4196
|
}
|
|
4197
4197
|
remove(e) {
|
|
4198
|
-
|
|
4198
|
+
zr(this.children, e), this.isDirty = !0;
|
|
4199
4199
|
}
|
|
4200
4200
|
forEach(e) {
|
|
4201
4201
|
this.isDirty && this.children.sort(Rf), this.isDirty = !1, this.children.forEach(e);
|
|
4202
4202
|
}
|
|
4203
4203
|
}
|
|
4204
4204
|
function If(t, e) {
|
|
4205
|
-
const n =
|
|
4205
|
+
const n = xt.now(), r = ({ timestamp: s }) => {
|
|
4206
4206
|
const o = s - n;
|
|
4207
4207
|
o >= e && (Wt(r), t(o - e));
|
|
4208
4208
|
};
|
|
4209
4209
|
return F.read(r, !0), () => Wt(r);
|
|
4210
4210
|
}
|
|
4211
|
-
const qa = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Vf = qa.length,
|
|
4211
|
+
const qa = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Vf = qa.length, To = (t) => typeof t == "string" ? parseFloat(t) : t, Eo = (t) => typeof t == "number" || k.test(t);
|
|
4212
4212
|
function Bf(t, e, n, r, s, o) {
|
|
4213
4213
|
s ? (t.opacity = W(
|
|
4214
4214
|
0,
|
|
@@ -4218,67 +4218,67 @@ function Bf(t, e, n, r, s, o) {
|
|
|
4218
4218
|
), t.opacityExit = W(e.opacity !== void 0 ? e.opacity : 1, 0, $f(r))) : o && (t.opacity = W(e.opacity !== void 0 ? e.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, r));
|
|
4219
4219
|
for (let i = 0; i < Vf; i++) {
|
|
4220
4220
|
const a = `border${qa[i]}Radius`;
|
|
4221
|
-
let l =
|
|
4221
|
+
let l = Ao(e, a), c = Ao(n, a);
|
|
4222
4222
|
if (l === void 0 && c === void 0)
|
|
4223
4223
|
continue;
|
|
4224
|
-
l || (l = 0), c || (c = 0), l === 0 || c === 0 ||
|
|
4224
|
+
l || (l = 0), c || (c = 0), l === 0 || c === 0 || Eo(l) === Eo(c) ? (t[a] = Math.max(W(To(l), To(c), r), 0), (_t.test(c) || _t.test(l)) && (t[a] += "%")) : t[a] = c;
|
|
4225
4225
|
}
|
|
4226
4226
|
(e.rotate || n.rotate) && (t.rotate = W(e.rotate || 0, n.rotate || 0, r));
|
|
4227
4227
|
}
|
|
4228
|
-
function
|
|
4228
|
+
function Ao(t, e) {
|
|
4229
4229
|
return t[e] !== void 0 ? t[e] : t.borderRadius;
|
|
4230
4230
|
}
|
|
4231
4231
|
const Ff = /* @__PURE__ */ Ga(0, 0.5, la), $f = /* @__PURE__ */ Ga(0.5, 0.95, ft);
|
|
4232
4232
|
function Ga(t, e, n) {
|
|
4233
4233
|
return (r) => r < t ? 0 : r > e ? 1 : n(/* @__PURE__ */ _e(t, e, r));
|
|
4234
4234
|
}
|
|
4235
|
-
function
|
|
4235
|
+
function Mo(t, e) {
|
|
4236
4236
|
t.min = e.min, t.max = e.max;
|
|
4237
4237
|
}
|
|
4238
4238
|
function mt(t, e) {
|
|
4239
|
-
|
|
4239
|
+
Mo(t.x, e.x), Mo(t.y, e.y);
|
|
4240
4240
|
}
|
|
4241
|
-
function
|
|
4241
|
+
function Po(t, e) {
|
|
4242
4242
|
t.translate = e.translate, t.scale = e.scale, t.originPoint = e.originPoint, t.origin = e.origin;
|
|
4243
4243
|
}
|
|
4244
|
-
function
|
|
4244
|
+
function Lo(t, e, n, r, s) {
|
|
4245
4245
|
return t -= e, t = Dn(t, 1 / n, r), s !== void 0 && (t = Dn(t, 1 / s, r)), t;
|
|
4246
4246
|
}
|
|
4247
4247
|
function jf(t, e = 0, n = 1, r = 0.5, s, o = t, i = t) {
|
|
4248
4248
|
if (_t.test(e) && (e = parseFloat(e), e = W(i.min, i.max, e / 100) - i.min), typeof e != "number")
|
|
4249
4249
|
return;
|
|
4250
4250
|
let a = W(o.min, o.max, r);
|
|
4251
|
-
t === o && (a -= e), t.min =
|
|
4251
|
+
t === o && (a -= e), t.min = Lo(t.min, e, n, a, s), t.max = Lo(t.max, e, n, a, s);
|
|
4252
4252
|
}
|
|
4253
|
-
function
|
|
4253
|
+
function Oo(t, e, [n, r, s], o, i) {
|
|
4254
4254
|
jf(t, e[n], e[r], e[s], e.scale, o, i);
|
|
4255
4255
|
}
|
|
4256
4256
|
const zf = ["x", "scaleX", "originX"], Uf = ["y", "scaleY", "originY"];
|
|
4257
|
-
function
|
|
4258
|
-
|
|
4257
|
+
function ko(t, e, n, r) {
|
|
4258
|
+
Oo(t.x, e, zf, n ? n.x : void 0, r ? r.x : void 0), Oo(t.y, e, Uf, n ? n.y : void 0, r ? r.y : void 0);
|
|
4259
4259
|
}
|
|
4260
|
-
function
|
|
4260
|
+
function Do(t) {
|
|
4261
4261
|
return t.translate === 0 && t.scale === 1;
|
|
4262
4262
|
}
|
|
4263
4263
|
function Wa(t) {
|
|
4264
|
-
return
|
|
4264
|
+
return Do(t.x) && Do(t.y);
|
|
4265
4265
|
}
|
|
4266
|
-
function
|
|
4266
|
+
function Ro(t, e) {
|
|
4267
4267
|
return t.min === e.min && t.max === e.max;
|
|
4268
4268
|
}
|
|
4269
4269
|
function Xf(t, e) {
|
|
4270
|
-
return
|
|
4270
|
+
return Ro(t.x, e.x) && Ro(t.y, e.y);
|
|
4271
4271
|
}
|
|
4272
|
-
function
|
|
4272
|
+
function No(t, e) {
|
|
4273
4273
|
return Math.round(t.min) === Math.round(e.min) && Math.round(t.max) === Math.round(e.max);
|
|
4274
4274
|
}
|
|
4275
4275
|
function Ka(t, e) {
|
|
4276
|
-
return
|
|
4276
|
+
return No(t.x, e.x) && No(t.y, e.y);
|
|
4277
4277
|
}
|
|
4278
|
-
function
|
|
4278
|
+
function Io(t) {
|
|
4279
4279
|
return dt(t.x) / dt(t.y);
|
|
4280
4280
|
}
|
|
4281
|
-
function
|
|
4281
|
+
function Vo(t, e) {
|
|
4282
4282
|
return t.translate === e.translate && t.scale === e.scale && t.originPoint === e.originPoint;
|
|
4283
4283
|
}
|
|
4284
4284
|
class qf {
|
|
@@ -4286,10 +4286,10 @@ class qf {
|
|
|
4286
4286
|
this.members = [];
|
|
4287
4287
|
}
|
|
4288
4288
|
add(e) {
|
|
4289
|
-
|
|
4289
|
+
jr(this.members, e), e.scheduleRender();
|
|
4290
4290
|
}
|
|
4291
4291
|
remove(e) {
|
|
4292
|
-
if (
|
|
4292
|
+
if (zr(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
|
|
4293
4293
|
const n = this.members[this.members.length - 1];
|
|
4294
4294
|
n && this.promote(n);
|
|
4295
4295
|
}
|
|
@@ -4345,7 +4345,7 @@ function Gf(t, e, n) {
|
|
|
4345
4345
|
const a = t.x.scale * e.x, l = t.y.scale * e.y;
|
|
4346
4346
|
return (a !== 1 || l !== 1) && (r += `scale(${a}, ${l})`), r || "none";
|
|
4347
4347
|
}
|
|
4348
|
-
const nr = ["", "X", "Y", "Z"], Wf = { visibility: "hidden" },
|
|
4348
|
+
const nr = ["", "X", "Y", "Z"], Wf = { visibility: "hidden" }, Bo = 1e3;
|
|
4349
4349
|
let Kf = 0;
|
|
4350
4350
|
function rr(t, e, n, r) {
|
|
4351
4351
|
const { latestValues: s } = e;
|
|
@@ -4378,7 +4378,7 @@ function Za({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4378
4378
|
this.root === this && (this.nodes = new Nf());
|
|
4379
4379
|
}
|
|
4380
4380
|
addEventListener(i, a) {
|
|
4381
|
-
return this.eventHandlers.has(i) || this.eventHandlers.set(i, new
|
|
4381
|
+
return this.eventHandlers.has(i) || this.eventHandlers.set(i, new Xr()), this.eventHandlers.get(i).add(a);
|
|
4382
4382
|
}
|
|
4383
4383
|
notifyListeners(i, ...a) {
|
|
4384
4384
|
const l = this.eventHandlers.get(i);
|
|
@@ -4399,7 +4399,7 @@ function Za({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4399
4399
|
let d;
|
|
4400
4400
|
const h = () => this.root.updateBlockedByResize = !1;
|
|
4401
4401
|
t(i, () => {
|
|
4402
|
-
this.root.updateBlockedByResize = !0, d && d(), d = If(h, 250), Tn.hasAnimatedSinceResize && (Tn.hasAnimatedSinceResize = !1, this.nodes.forEach(
|
|
4402
|
+
this.root.updateBlockedByResize = !0, d && d(), d = If(h, 250), Tn.hasAnimatedSinceResize && (Tn.hasAnimatedSinceResize = !1, this.nodes.forEach($o));
|
|
4403
4403
|
});
|
|
4404
4404
|
}
|
|
4405
4405
|
l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: d, hasLayoutChanged: h, hasRelativeLayoutChanged: f, layout: p }) => {
|
|
@@ -4410,14 +4410,14 @@ function Za({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4410
4410
|
const m = this.options.transition || u.getDefaultTransition() || lp, { onLayoutAnimationStart: g, onLayoutAnimationComplete: y } = u.getProps(), v = !this.targetLayout || !Ka(this.targetLayout, p), C = !h && f;
|
|
4411
4411
|
if (this.options.layoutRoot || this.resumeFrom || C || h && (v || !this.currentAnimation)) {
|
|
4412
4412
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(d, C);
|
|
4413
|
-
const
|
|
4414
|
-
...
|
|
4413
|
+
const w = {
|
|
4414
|
+
...qr(m, "layout"),
|
|
4415
4415
|
onPlay: g,
|
|
4416
4416
|
onComplete: y
|
|
4417
4417
|
};
|
|
4418
|
-
(u.shouldReduceMotion || this.options.layoutRoot) && (
|
|
4418
|
+
(u.shouldReduceMotion || this.options.layoutRoot) && (w.delay = 0, w.type = !1), this.startAnimation(w);
|
|
4419
4419
|
} else
|
|
4420
|
-
h ||
|
|
4420
|
+
h || $o(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
|
|
4421
4421
|
this.targetLayout = p;
|
|
4422
4422
|
});
|
|
4423
4423
|
}
|
|
@@ -4467,15 +4467,15 @@ function Za({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4467
4467
|
}
|
|
4468
4468
|
update() {
|
|
4469
4469
|
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
|
|
4470
|
-
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(
|
|
4470
|
+
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Fo);
|
|
4471
4471
|
return;
|
|
4472
4472
|
}
|
|
4473
4473
|
this.isUpdating || this.nodes.forEach(tp), this.isUpdating = !1, this.nodes.forEach(ep), this.nodes.forEach(Hf), this.nodes.forEach(Zf), this.clearAllSnapshots();
|
|
4474
|
-
const a =
|
|
4474
|
+
const a = xt.now();
|
|
4475
4475
|
st.delta = Ot(0, 1e3 / 60, a - st.timestamp), st.timestamp = a, st.isProcessing = !0, Kn.update.process(st), Kn.preRender.process(st), Kn.render.process(st), st.isProcessing = !1;
|
|
4476
4476
|
}
|
|
4477
4477
|
didUpdate() {
|
|
4478
|
-
this.updateScheduled || (this.updateScheduled = !0,
|
|
4478
|
+
this.updateScheduled || (this.updateScheduled = !0, Kr.read(this.scheduleUpdate));
|
|
4479
4479
|
}
|
|
4480
4480
|
clearAllSnapshots() {
|
|
4481
4481
|
this.nodes.forEach(Qf), this.sharedNodes.forEach(op);
|
|
@@ -4563,12 +4563,12 @@ function Za({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4563
4563
|
mt(l, i);
|
|
4564
4564
|
for (let c = 0; c < this.path.length; c++) {
|
|
4565
4565
|
const u = this.path[c];
|
|
4566
|
-
!a && u.options.layoutScroll && u.scroll && u !== u.root &&
|
|
4566
|
+
!a && u.options.layoutScroll && u.scroll && u !== u.root && Se(l, {
|
|
4567
4567
|
x: -u.scroll.offset.x,
|
|
4568
4568
|
y: -u.scroll.offset.y
|
|
4569
|
-
}), se(u.latestValues) &&
|
|
4569
|
+
}), se(u.latestValues) && Se(l, u.latestValues);
|
|
4570
4570
|
}
|
|
4571
|
-
return se(this.latestValues) &&
|
|
4571
|
+
return se(this.latestValues) && Se(l, this.latestValues), l;
|
|
4572
4572
|
}
|
|
4573
4573
|
removeTransform(i) {
|
|
4574
4574
|
const a = Z();
|
|
@@ -4579,9 +4579,9 @@ function Za({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4579
4579
|
continue;
|
|
4580
4580
|
Er(c.latestValues) && c.updateSnapshot();
|
|
4581
4581
|
const u = Z(), d = c.measurePageBox();
|
|
4582
|
-
mt(u, d),
|
|
4582
|
+
mt(u, d), ko(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
|
|
4583
4583
|
}
|
|
4584
|
-
return se(this.latestValues) &&
|
|
4584
|
+
return se(this.latestValues) && ko(a, this.latestValues), a;
|
|
4585
4585
|
}
|
|
4586
4586
|
setTargetDelta(i) {
|
|
4587
4587
|
this.targetDelta = i, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
|
|
@@ -4643,7 +4643,7 @@ function Za({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4643
4643
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
4644
4644
|
return;
|
|
4645
4645
|
}
|
|
4646
|
-
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (
|
|
4646
|
+
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Po(this.prevProjectionDelta.x, this.projectionDelta.x), Po(this.prevProjectionDelta.y, this.projectionDelta.y)), je(this.projectionDelta, this.layoutCorrected, p, this.latestValues), (this.treeScale.x !== h || this.treeScale.y !== f || !Vo(this.projectionDelta.x, this.prevProjectionDelta.x) || !Vo(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", p));
|
|
4647
4647
|
}
|
|
4648
4648
|
hide() {
|
|
4649
4649
|
this.isVisible = !1;
|
|
@@ -4668,14 +4668,14 @@ function Za({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4668
4668
|
const h = Z(), f = l ? l.source : void 0, p = this.layout ? this.layout.source : void 0, m = f !== p, g = this.getStack(), y = !g || g.members.length <= 1, v = !!(m && !y && this.options.crossfade === !0 && !this.path.some(ap));
|
|
4669
4669
|
this.animationProgress = 0;
|
|
4670
4670
|
let C;
|
|
4671
|
-
this.mixTargetDelta = (
|
|
4672
|
-
const
|
|
4673
|
-
|
|
4671
|
+
this.mixTargetDelta = (w) => {
|
|
4672
|
+
const S = w / 1e3;
|
|
4673
|
+
jo(d.x, i.x, S), jo(d.y, i.y, S), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ze(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), ip(this.relativeTarget, this.relativeTargetOrigin, h, S), C && Xf(this.relativeTarget, C) && (this.isProjectionDirty = !1), C || (C = Z()), mt(C, this.relativeTarget)), m && (this.animationValues = u, Bf(u, c, this.latestValues, S, v, y)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = S;
|
|
4674
4674
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
4675
4675
|
}
|
|
4676
4676
|
startAnimation(i) {
|
|
4677
4677
|
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (Wt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = F.update(() => {
|
|
4678
|
-
Tn.hasAnimatedSinceResize = !0, this.currentAnimation = kf(0,
|
|
4678
|
+
Tn.hasAnimatedSinceResize = !0, this.currentAnimation = kf(0, Bo, {
|
|
4679
4679
|
...i,
|
|
4680
4680
|
onUpdate: (a) => {
|
|
4681
4681
|
this.mixTargetDelta(a), i.onUpdate && i.onUpdate(a);
|
|
@@ -4694,7 +4694,7 @@ function Za({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4694
4694
|
i && i.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
|
|
4695
4695
|
}
|
|
4696
4696
|
finishAnimation() {
|
|
4697
|
-
this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(
|
|
4697
|
+
this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Bo), this.currentAnimation.stop()), this.completeAnimation();
|
|
4698
4698
|
}
|
|
4699
4699
|
applyTransformsToTarget() {
|
|
4700
4700
|
const i = this.getLead();
|
|
@@ -4707,7 +4707,7 @@ function Za({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4707
4707
|
const h = dt(this.layout.layoutBox.y);
|
|
4708
4708
|
l.y.min = i.target.y.min, l.y.max = l.y.min + h;
|
|
4709
4709
|
}
|
|
4710
|
-
mt(a, l),
|
|
4710
|
+
mt(a, l), Se(a, u), je(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
|
|
4711
4711
|
}
|
|
4712
4712
|
}
|
|
4713
4713
|
registerSharedNode(i, a) {
|
|
@@ -4787,9 +4787,9 @@ function Za({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4787
4787
|
continue;
|
|
4788
4788
|
const { correct: g, applyTo: y, isCSSVariable: v } = Ze[m], C = c.transform === "none" ? h[m] : g(h[m], d);
|
|
4789
4789
|
if (y) {
|
|
4790
|
-
const
|
|
4791
|
-
for (let
|
|
4792
|
-
c[y[
|
|
4790
|
+
const w = y.length;
|
|
4791
|
+
for (let S = 0; S < w; S++)
|
|
4792
|
+
c[y[S]] = C;
|
|
4793
4793
|
} else
|
|
4794
4794
|
v ? this.options.visualElement.renderState.vars[m] = C : c[m] = C;
|
|
4795
4795
|
}
|
|
@@ -4803,7 +4803,7 @@ function Za({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4803
4803
|
this.root.nodes.forEach((i) => {
|
|
4804
4804
|
var a;
|
|
4805
4805
|
return (a = i.currentAnimation) === null || a === void 0 ? void 0 : a.stop();
|
|
4806
|
-
}), this.root.nodes.forEach(
|
|
4806
|
+
}), this.root.nodes.forEach(Fo), this.root.sharedNodes.clear();
|
|
4807
4807
|
}
|
|
4808
4808
|
};
|
|
4809
4809
|
}
|
|
@@ -4863,7 +4863,7 @@ function Jf(t) {
|
|
|
4863
4863
|
function Qf(t) {
|
|
4864
4864
|
t.clearSnapshot();
|
|
4865
4865
|
}
|
|
4866
|
-
function
|
|
4866
|
+
function Fo(t) {
|
|
4867
4867
|
t.clearMeasurements();
|
|
4868
4868
|
}
|
|
4869
4869
|
function tp(t) {
|
|
@@ -4873,7 +4873,7 @@ function ep(t) {
|
|
|
4873
4873
|
const { visualElement: e } = t.options;
|
|
4874
4874
|
e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
|
|
4875
4875
|
}
|
|
4876
|
-
function
|
|
4876
|
+
function $o(t) {
|
|
4877
4877
|
t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
|
|
4878
4878
|
}
|
|
4879
4879
|
function np(t) {
|
|
@@ -4888,14 +4888,14 @@ function sp(t) {
|
|
|
4888
4888
|
function op(t) {
|
|
4889
4889
|
t.removeLeadSnapshot();
|
|
4890
4890
|
}
|
|
4891
|
-
function
|
|
4891
|
+
function jo(t, e, n) {
|
|
4892
4892
|
t.translate = W(e.translate, 0, n), t.scale = W(e.scale, 1, n), t.origin = e.origin, t.originPoint = e.originPoint;
|
|
4893
4893
|
}
|
|
4894
|
-
function
|
|
4894
|
+
function zo(t, e, n, r) {
|
|
4895
4895
|
t.min = W(e.min, n.min, r), t.max = W(e.max, n.max, r);
|
|
4896
4896
|
}
|
|
4897
4897
|
function ip(t, e, n, r) {
|
|
4898
|
-
|
|
4898
|
+
zo(t.x, e.x, n.x, r), zo(t.y, e.y, n.y, r);
|
|
4899
4899
|
}
|
|
4900
4900
|
function ap(t) {
|
|
4901
4901
|
return t.animationValues && t.animationValues.opacityExit !== void 0;
|
|
@@ -4903,15 +4903,15 @@ function ap(t) {
|
|
|
4903
4903
|
const lp = {
|
|
4904
4904
|
duration: 0.45,
|
|
4905
4905
|
ease: [0.4, 0, 0.1, 1]
|
|
4906
|
-
},
|
|
4907
|
-
function
|
|
4908
|
-
t.min =
|
|
4906
|
+
}, Uo = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Xo = Uo("applewebkit/") && !Uo("chrome/") ? Math.round : ft;
|
|
4907
|
+
function qo(t) {
|
|
4908
|
+
t.min = Xo(t.min), t.max = Xo(t.max);
|
|
4909
4909
|
}
|
|
4910
4910
|
function cp(t) {
|
|
4911
|
-
|
|
4911
|
+
qo(t.x), qo(t.y);
|
|
4912
4912
|
}
|
|
4913
4913
|
function Ya(t, e, n) {
|
|
4914
|
-
return t === "position" || t === "preserve-aspect" && !df(
|
|
4914
|
+
return t === "position" || t === "preserve-aspect" && !df(Io(e), Io(n), 0.2);
|
|
4915
4915
|
}
|
|
4916
4916
|
function up(t) {
|
|
4917
4917
|
var e;
|
|
@@ -4952,7 +4952,7 @@ const dp = Za({
|
|
|
4952
4952
|
MeasureLayout: Xa
|
|
4953
4953
|
}
|
|
4954
4954
|
};
|
|
4955
|
-
function
|
|
4955
|
+
function Go(t, e, n) {
|
|
4956
4956
|
const { props: r } = t;
|
|
4957
4957
|
t.animationState && r.whileHover && t.animationState.setActive("whileHover", n === "Start");
|
|
4958
4958
|
const s = "onHover" + n, o = r[s];
|
|
@@ -4961,7 +4961,7 @@ function qo(t, e, n) {
|
|
|
4961
4961
|
class fp extends Zt {
|
|
4962
4962
|
mount() {
|
|
4963
4963
|
const { current: e } = this.node;
|
|
4964
|
-
e && (this.unmount = bu(e, (n, r) => (
|
|
4964
|
+
e && (this.unmount = bu(e, (n, r) => (Go(this.node, r, "Start"), (s) => Go(this.node, s, "End"))));
|
|
4965
4965
|
}
|
|
4966
4966
|
unmount() {
|
|
4967
4967
|
}
|
|
@@ -4988,7 +4988,7 @@ class pp extends Zt {
|
|
|
4988
4988
|
unmount() {
|
|
4989
4989
|
}
|
|
4990
4990
|
}
|
|
4991
|
-
function
|
|
4991
|
+
function Wo(t, e, n) {
|
|
4992
4992
|
const { props: r } = t;
|
|
4993
4993
|
if (t.current instanceof HTMLButtonElement && t.current.disabled)
|
|
4994
4994
|
return;
|
|
@@ -4999,7 +4999,7 @@ function Go(t, e, n) {
|
|
|
4999
4999
|
class mp extends Zt {
|
|
5000
5000
|
mount() {
|
|
5001
5001
|
const { current: e } = this.node;
|
|
5002
|
-
e && (this.unmount =
|
|
5002
|
+
e && (this.unmount = xu(e, (n, r) => (Wo(this.node, r, "Start"), (s, { success: o }) => Wo(this.node, s, o ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
|
|
5003
5003
|
}
|
|
5004
5004
|
unmount() {
|
|
5005
5005
|
}
|
|
@@ -5026,7 +5026,7 @@ const Cp = {
|
|
|
5026
5026
|
some: 0,
|
|
5027
5027
|
all: 1
|
|
5028
5028
|
};
|
|
5029
|
-
class
|
|
5029
|
+
class Sp extends Zt {
|
|
5030
5030
|
constructor() {
|
|
5031
5031
|
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
|
5032
5032
|
}
|
|
@@ -5053,17 +5053,17 @@ class xp extends Zt {
|
|
|
5053
5053
|
if (typeof IntersectionObserver > "u")
|
|
5054
5054
|
return;
|
|
5055
5055
|
const { props: e, prevProps: n } = this.node;
|
|
5056
|
-
["amount", "margin", "root"].some(
|
|
5056
|
+
["amount", "margin", "root"].some(wp(e, n)) && this.startObserver();
|
|
5057
5057
|
}
|
|
5058
5058
|
unmount() {
|
|
5059
5059
|
}
|
|
5060
5060
|
}
|
|
5061
|
-
function
|
|
5061
|
+
function wp({ viewport: t = {} }, { viewport: e = {} } = {}) {
|
|
5062
5062
|
return (n) => t[n] !== e[n];
|
|
5063
5063
|
}
|
|
5064
|
-
const
|
|
5064
|
+
const xp = {
|
|
5065
5065
|
inView: {
|
|
5066
|
-
Feature:
|
|
5066
|
+
Feature: Sp
|
|
5067
5067
|
},
|
|
5068
5068
|
tap: {
|
|
5069
5069
|
Feature: mp
|
|
@@ -5081,14 +5081,14 @@ const wp = {
|
|
|
5081
5081
|
}
|
|
5082
5082
|
}, Lr = { current: null }, Qa = { current: !1 };
|
|
5083
5083
|
function Tp() {
|
|
5084
|
-
if (Qa.current = !0, !!
|
|
5084
|
+
if (Qa.current = !0, !!Fr)
|
|
5085
5085
|
if (window.matchMedia) {
|
|
5086
5086
|
const t = window.matchMedia("(prefers-reduced-motion)"), e = () => Lr.current = t.matches;
|
|
5087
5087
|
t.addListener(e), e();
|
|
5088
5088
|
} else
|
|
5089
5089
|
Lr.current = !1;
|
|
5090
5090
|
}
|
|
5091
|
-
const Ep = [...
|
|
5091
|
+
const Ep = [...xa, ot, Kt], Ap = (t) => Ep.find(wa(t)), Mp = /* @__PURE__ */ new WeakMap();
|
|
5092
5092
|
function Pp(t, e, n) {
|
|
5093
5093
|
for (const r in e) {
|
|
5094
5094
|
const s = e[r], o = n[r];
|
|
@@ -5109,7 +5109,7 @@ function Pp(t, e, n) {
|
|
|
5109
5109
|
e[r] === void 0 && t.removeValue(r);
|
|
5110
5110
|
return e;
|
|
5111
5111
|
}
|
|
5112
|
-
const
|
|
5112
|
+
const Ko = [
|
|
5113
5113
|
"AnimationStart",
|
|
5114
5114
|
"AnimationComplete",
|
|
5115
5115
|
"Update",
|
|
@@ -5130,10 +5130,10 @@ class Lp {
|
|
|
5130
5130
|
return {};
|
|
5131
5131
|
}
|
|
5132
5132
|
constructor({ parent: e, props: n, presenceContext: r, reducedMotionConfig: s, blockInitialAnimation: o, visualState: i }, a = {}) {
|
|
5133
|
-
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver =
|
|
5133
|
+
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = fs, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
|
|
5134
5134
|
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
5135
5135
|
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
|
|
5136
|
-
const f =
|
|
5136
|
+
const f = xt.now();
|
|
5137
5137
|
this.renderScheduledAt < f && (this.renderScheduledAt = f, F.render(this.render, !1, !0));
|
|
5138
5138
|
};
|
|
5139
5139
|
const { latestValues: l, renderState: c, onUpdate: u } = i;
|
|
@@ -5208,8 +5208,8 @@ class Lp {
|
|
|
5208
5208
|
*/
|
|
5209
5209
|
update(e, n) {
|
|
5210
5210
|
(e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = n;
|
|
5211
|
-
for (let r = 0; r <
|
|
5212
|
-
const s =
|
|
5211
|
+
for (let r = 0; r < Ko.length; r++) {
|
|
5212
|
+
const s = Ko[r];
|
|
5213
5213
|
this.propEventSubscriptions[s] && (this.propEventSubscriptions[s](), delete this.propEventSubscriptions[s]);
|
|
5214
5214
|
const o = "on" + s, i = e[o];
|
|
5215
5215
|
i && (this.propEventSubscriptions[s] = this.on(s, i));
|
|
@@ -5298,7 +5298,7 @@ class Lp {
|
|
|
5298
5298
|
const { initial: r } = this.props;
|
|
5299
5299
|
let s;
|
|
5300
5300
|
if (typeof r == "string" || typeof r == "object") {
|
|
5301
|
-
const i =
|
|
5301
|
+
const i = as(this.props, r, (n = this.presenceContext) === null || n === void 0 ? void 0 : n.custom);
|
|
5302
5302
|
i && (s = i[e]);
|
|
5303
5303
|
}
|
|
5304
5304
|
if (r && s !== void 0)
|
|
@@ -5307,7 +5307,7 @@ class Lp {
|
|
|
5307
5307
|
return o !== void 0 && !it(o) ? o : this.initialValues[e] !== void 0 && s === void 0 ? void 0 : this.baseTarget[e];
|
|
5308
5308
|
}
|
|
5309
5309
|
on(e, n) {
|
|
5310
|
-
return this.events[e] || (this.events[e] = new
|
|
5310
|
+
return this.events[e] || (this.events[e] = new Xr()), this.events[e].add(n);
|
|
5311
5311
|
}
|
|
5312
5312
|
notify(e, ...n) {
|
|
5313
5313
|
this.events[e] && this.events[e].notify(...n);
|
|
@@ -5345,7 +5345,7 @@ class kp extends tl {
|
|
|
5345
5345
|
if (he.has(n))
|
|
5346
5346
|
return zd(e, n);
|
|
5347
5347
|
{
|
|
5348
|
-
const r = Op(e), s = (
|
|
5348
|
+
const r = Op(e), s = (Qr(n) ? r.getPropertyValue(n) : r[n]) || 0;
|
|
5349
5349
|
return typeof s == "string" ? s.trim() : s;
|
|
5350
5350
|
}
|
|
5351
5351
|
}
|
|
@@ -5353,10 +5353,10 @@ class kp extends tl {
|
|
|
5353
5353
|
return $a(e, n);
|
|
5354
5354
|
}
|
|
5355
5355
|
build(e, n, r) {
|
|
5356
|
-
|
|
5356
|
+
ns(e, n, r.transformTemplate);
|
|
5357
5357
|
}
|
|
5358
5358
|
scrapeMotionValuesFromProps(e, n, r) {
|
|
5359
|
-
return
|
|
5359
|
+
return ls(e, n, r);
|
|
5360
5360
|
}
|
|
5361
5361
|
}
|
|
5362
5362
|
class Dp extends tl {
|
|
@@ -5373,7 +5373,7 @@ class Dp extends tl {
|
|
|
5373
5373
|
const r = ga(n);
|
|
5374
5374
|
return r && r.default || 0;
|
|
5375
5375
|
}
|
|
5376
|
-
return n = Yi.has(n) ? n :
|
|
5376
|
+
return n = Yi.has(n) ? n : Jr(n), e.getAttribute(n);
|
|
5377
5377
|
}
|
|
5378
5378
|
scrapeMotionValuesFromProps(e, n, r) {
|
|
5379
5379
|
return Qi(e, n, r);
|
|
@@ -5382,25 +5382,25 @@ class Dp extends tl {
|
|
|
5382
5382
|
this.current && !this.renderState.dimensions && F.postRender(this.updateDimensions);
|
|
5383
5383
|
}
|
|
5384
5384
|
build(e, n, r) {
|
|
5385
|
-
|
|
5385
|
+
os(e, n, this.isSVGTag, r.transformTemplate);
|
|
5386
5386
|
}
|
|
5387
5387
|
renderInstance(e, n, r, s) {
|
|
5388
5388
|
Ji(e, n, r, s);
|
|
5389
5389
|
}
|
|
5390
5390
|
mount(e) {
|
|
5391
|
-
this.isSVGTag =
|
|
5391
|
+
this.isSVGTag = is(e.tagName), super.mount(e);
|
|
5392
5392
|
}
|
|
5393
5393
|
}
|
|
5394
|
-
const Rp = (t, e) =>
|
|
5395
|
-
allowProjection: t !==
|
|
5394
|
+
const Rp = (t, e) => ss(t) ? new Dp(e) : new kp(e, {
|
|
5395
|
+
allowProjection: t !== Br
|
|
5396
5396
|
}), Np = /* @__PURE__ */ md({
|
|
5397
5397
|
...nf,
|
|
5398
|
-
...
|
|
5398
|
+
...xp,
|
|
5399
5399
|
...hp,
|
|
5400
5400
|
..._p
|
|
5401
5401
|
}, Rp), fe = /* @__PURE__ */ Ou(Np), Ip = "_root_uup2j_1", Vp = {
|
|
5402
5402
|
root: Ip
|
|
5403
|
-
},
|
|
5403
|
+
}, Ho = {
|
|
5404
5404
|
// Colors - Corporate
|
|
5405
5405
|
bgDefault: "c-corporate-default-bg",
|
|
5406
5406
|
cBlack: "c-corporate-default-black",
|
|
@@ -5559,9 +5559,9 @@ const Rp = (t, e) => rs(t) ? new Dp(e) : new kp(e, {
|
|
|
5559
5559
|
shNone: "sh-none"
|
|
5560
5560
|
};
|
|
5561
5561
|
function Yt(t) {
|
|
5562
|
-
return t && Object.keys(t).length ? Object.keys(t).filter((e) => Object.keys(
|
|
5562
|
+
return t && Object.keys(t).length ? Object.keys(t).filter((e) => Object.keys(Ho).includes(e)).filter((e) => t[e] === !0).map((e) => Ho[e]) : null;
|
|
5563
5563
|
}
|
|
5564
|
-
const Xt = "Errore: ", Bp = "Impossibile acquisire la posizione.", gn = "Impossibile caricare i punti di mappa.", Fp = "Si è verificato un errore.", $p = "Impossibile caricare i suggerimenti.", jp = "Impossibile caricare i dettagli della location.", zp = "Impossibile caricare la mappa.", Up = "Impossibile trovare punti di mappa nell'area di ricerca.", Xp = "Ottieni indicazioni di navigazione per questa destinazione", qp = "Condividi questa destinazione", Gp = "Scarica l'evento", Wp = "dyn-locator__portal-root", el = 3e3,
|
|
5564
|
+
const Xt = "Errore: ", Bp = "Impossibile acquisire la posizione.", gn = "Impossibile caricare i punti di mappa.", Fp = "Si è verificato un errore.", $p = "Impossibile caricare i suggerimenti.", jp = "Impossibile caricare i dettagli della location.", zp = "Impossibile caricare la mappa.", Up = "Impossibile trovare punti di mappa nell'area di ricerca.", Xp = "Ottieni indicazioni di navigazione per questa destinazione", qp = "Condividi questa destinazione", Gp = "Scarica l'evento", Wp = "dyn-locator__portal-root", el = 3e3, Zo = 6, nl = 2e4, Kp = 300, Ve = {
|
|
5565
5565
|
north: 47.1,
|
|
5566
5566
|
south: 36.6,
|
|
5567
5567
|
east: 18.6,
|
|
@@ -5706,7 +5706,7 @@ function ol({
|
|
|
5706
5706
|
initial: { opacity: 0, y: 5 },
|
|
5707
5707
|
animate: { opacity: 1, y: 0 },
|
|
5708
5708
|
transition: { delay: i, duration: 0.2 }
|
|
5709
|
-
} : {},
|
|
5709
|
+
} : {}, w = c || (l === "_blank" ? { rel: "noopener noreferrer" } : {}).rel;
|
|
5710
5710
|
return /* @__PURE__ */ b(
|
|
5711
5711
|
m,
|
|
5712
5712
|
{
|
|
@@ -5729,7 +5729,7 @@ function ol({
|
|
|
5729
5729
|
ref: f,
|
|
5730
5730
|
href: a,
|
|
5731
5731
|
target: l,
|
|
5732
|
-
rel:
|
|
5732
|
+
rel: w,
|
|
5733
5733
|
...u,
|
|
5734
5734
|
children: n
|
|
5735
5735
|
}
|
|
@@ -5972,7 +5972,7 @@ const Qp = ({ title: t, titleId: e, ...n }, r) => /* @__PURE__ */ D(
|
|
|
5972
5972
|
] })
|
|
5973
5973
|
]
|
|
5974
5974
|
}
|
|
5975
|
-
),
|
|
5975
|
+
), Yo = J(cm), um = ({ title: t, titleId: e, ...n }, r) => /* @__PURE__ */ D(
|
|
5976
5976
|
"svg",
|
|
5977
5977
|
{
|
|
5978
5978
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6008,15 +6008,15 @@ const Qp = ({ title: t, titleId: e, ...n }, r) => /* @__PURE__ */ D(
|
|
|
6008
6008
|
Target: Uc,
|
|
6009
6009
|
Email: qc,
|
|
6010
6010
|
Copy: jc,
|
|
6011
|
-
X:
|
|
6012
|
-
Twitter:
|
|
6011
|
+
X: Yo,
|
|
6012
|
+
Twitter: Yo,
|
|
6013
6013
|
Facebook: tm,
|
|
6014
6014
|
Instagram: nm,
|
|
6015
6015
|
Linkedin: sm,
|
|
6016
6016
|
TikTok: im,
|
|
6017
6017
|
Whatsapp: lm,
|
|
6018
6018
|
Youtube: dm
|
|
6019
|
-
}, hm = "
|
|
6019
|
+
}, hm = "_root_6hypa_4", fm = "_header_6hypa_21", pm = "_body_6hypa_22", mm = "_cta_6hypa_23", gm = "_titleContainer_6hypa_40", ym = "_shareButton_6hypa_51", vm = "_capabilities_6hypa_59", bm = "_tagContainer_6hypa_72", Cm = "_notes_6hypa_78", Sm = "_tag_6hypa_72", Ct = {
|
|
6020
6020
|
root: hm,
|
|
6021
6021
|
header: fm,
|
|
6022
6022
|
body: pm,
|
|
@@ -6026,10 +6026,10 @@ const Qp = ({ title: t, titleId: e, ...n }, r) => /* @__PURE__ */ D(
|
|
|
6026
6026
|
capabilities: vm,
|
|
6027
6027
|
tagContainer: bm,
|
|
6028
6028
|
notes: Cm,
|
|
6029
|
-
tag:
|
|
6030
|
-
},
|
|
6031
|
-
root:
|
|
6032
|
-
container:
|
|
6029
|
+
tag: Sm
|
|
6030
|
+
}, wm = "_root_1k1dg_4", xm = "_container_1k1dg_10", _m = "_label_1k1dg_17", Tm = "_icon_1k1dg_27", ge = {
|
|
6031
|
+
root: wm,
|
|
6032
|
+
container: xm,
|
|
6033
6033
|
label: _m,
|
|
6034
6034
|
icon: Tm
|
|
6035
6035
|
}, Em = "_root_71ove_4", Am = "_icon_71ove_43", ir = {
|
|
@@ -6063,15 +6063,15 @@ function hl({
|
|
|
6063
6063
|
const f = t || "span", p = l ? fe[f] : f, { iconMap: m } = Gm();
|
|
6064
6064
|
function g(C) {
|
|
6065
6065
|
if (Pm(C)) {
|
|
6066
|
-
const
|
|
6067
|
-
return m[
|
|
6066
|
+
const w = typeof C == "string" ? C : C.name;
|
|
6067
|
+
return m[w] ? Ge(m[w], {
|
|
6068
6068
|
...n ? { ref: n } : {},
|
|
6069
6069
|
...r ? {
|
|
6070
6070
|
title: r,
|
|
6071
6071
|
titleId: r.trim().toLowerCase().replace(/[^a-z0-9\s_-]/g, "").replace(/\s+/g, "_") + "_id"
|
|
6072
6072
|
} : {},
|
|
6073
6073
|
className: ir.icon
|
|
6074
|
-
}) : 'No icon found for "' +
|
|
6074
|
+
}) : 'No icon found for "' + w + '"!';
|
|
6075
6075
|
}
|
|
6076
6076
|
return Lm(C) ? (i !== "default" && console.warn("Warning: cannot set icon stroke on a remote asset"), /* @__PURE__ */ b(
|
|
6077
6077
|
"img",
|
|
@@ -6213,7 +6213,7 @@ function gl({
|
|
|
6213
6213
|
gl.displayName = ml;
|
|
6214
6214
|
const Ht = J(
|
|
6215
6215
|
gl
|
|
6216
|
-
), Rm = "_root_1fk3z_1", Nm = "_content_1fk3z_32",
|
|
6216
|
+
), Rm = "_root_1fk3z_1", Nm = "_content_1fk3z_32", Jo = {
|
|
6217
6217
|
root: Rm,
|
|
6218
6218
|
content: Nm
|
|
6219
6219
|
}, yl = "Card";
|
|
@@ -6241,7 +6241,7 @@ function vl({
|
|
|
6241
6241
|
{
|
|
6242
6242
|
ref: u,
|
|
6243
6243
|
className: G(
|
|
6244
|
-
|
|
6244
|
+
Jo.root,
|
|
6245
6245
|
"dyn-locator__" + Nt(yl),
|
|
6246
6246
|
Rt(n),
|
|
6247
6247
|
...f
|
|
@@ -6252,7 +6252,7 @@ function vl({
|
|
|
6252
6252
|
...i ? { style: i } : {},
|
|
6253
6253
|
...p,
|
|
6254
6254
|
...c,
|
|
6255
|
-
children: r === "bare" ? e : /* @__PURE__ */ b("div", { className:
|
|
6255
|
+
children: r === "bare" ? e : /* @__PURE__ */ b("div", { className: Jo.content, children: e })
|
|
6256
6256
|
}
|
|
6257
6257
|
)
|
|
6258
6258
|
);
|
|
@@ -6263,13 +6263,13 @@ function bl(t) {
|
|
|
6263
6263
|
const { componentMap: e } = Wm();
|
|
6264
6264
|
return e[t];
|
|
6265
6265
|
}
|
|
6266
|
-
var
|
|
6266
|
+
var St = /* @__PURE__ */ ((t) => (t.FULLSCREEN_TOGGLE = "fullscreen", t.BACK_BUTTON_CLICK = "back_button", t.SEARCH = "search", t.AUTOCOMPLETE_ITEM_SELECT = "autocomplete_item_select", t.GEOLOCATION = "geolocation", t.LOCATION_CARD_CLICK = "location_card_click", t.LOCATION_CARD_PRIMARY_ACTION = "location_card_primary_action", t.LOCATION_CARD_SECONDARY_ACTION = "location_card_secondary_action", t.INFO_WINDOW_PRIMARY_ACTION = "info_window_primary_action", t.INFO_WINDOW_SECONDARY_ACTION = "info_window_secondary_action", t.CARD_LIST_TOGGLE = "card_list_toggle", t.SHARE_SHEET_OPEN = "share_sheet_open", t.SHARE_SHEET_CLOSE = "share_sheet_close", t.SHARE_SHEET_SHARE = "share_sheet_share", t.AREA_SEARCH_TOGGLE = "area_search_toggle", t.AREA_SEARCH_SUBMIT = "area_search_submit", t.AREA_SEARCH_CANCEL = "area_search_cancel", t))(St || {});
|
|
6267
6267
|
const Vm = [
|
|
6268
|
-
|
|
6269
|
-
|
|
6270
|
-
|
|
6271
|
-
|
|
6272
|
-
|
|
6268
|
+
St.LOCATION_CARD_PRIMARY_ACTION,
|
|
6269
|
+
St.LOCATION_CARD_SECONDARY_ACTION,
|
|
6270
|
+
St.AUTOCOMPLETE_ITEM_SELECT,
|
|
6271
|
+
St.INFO_WINDOW_PRIMARY_ACTION,
|
|
6272
|
+
St.INFO_WINDOW_SECONDARY_ACTION
|
|
6273
6273
|
];
|
|
6274
6274
|
class Bm {
|
|
6275
6275
|
constructor() {
|
|
@@ -6337,7 +6337,7 @@ const en = new Bm(), Cl = "LocationCard", Fm = "Prodotti disponibili in piazza";
|
|
|
6337
6337
|
function $m(t) {
|
|
6338
6338
|
return typeof t == "string" && t.trim().length > 0;
|
|
6339
6339
|
}
|
|
6340
|
-
function
|
|
6340
|
+
function Sl({
|
|
6341
6341
|
title: t,
|
|
6342
6342
|
timestamp: e,
|
|
6343
6343
|
address: n,
|
|
@@ -6358,14 +6358,14 @@ function xl({
|
|
|
6358
6358
|
markerType: m,
|
|
6359
6359
|
...g
|
|
6360
6360
|
}, y) {
|
|
6361
|
-
const v = bl("ctaButton"), C = M((L) => L.toggleShareSheet),
|
|
6361
|
+
const v = bl("ctaButton"), C = M((L) => L.toggleShareSheet), w = M((L) => L.featureFlags), S = M((L) => L.presentationPrefs), { addressFormat: x } = S ?? {};
|
|
6362
6362
|
function E() {
|
|
6363
6363
|
C(!0);
|
|
6364
6364
|
}
|
|
6365
6365
|
function T(L, A) {
|
|
6366
6366
|
return () => {
|
|
6367
6367
|
en.track(
|
|
6368
|
-
|
|
6368
|
+
St[A === 0 ? "LOCATION_CARD_PRIMARY_ACTION" : "LOCATION_CARD_SECONDARY_ACTION"],
|
|
6369
6369
|
{
|
|
6370
6370
|
cta_event_type: L.type ?? "",
|
|
6371
6371
|
cta_url: L.url ?? "",
|
|
@@ -6397,7 +6397,7 @@ function xl({
|
|
|
6397
6397
|
e ? /* @__PURE__ */ b("time", { children: e }) : null,
|
|
6398
6398
|
/* @__PURE__ */ D("div", { className: Ct.titleContainer, children: [
|
|
6399
6399
|
t ? /* @__PURE__ */ b("h4", { children: t }) : null,
|
|
6400
|
-
|
|
6400
|
+
w.share ? /* @__PURE__ */ b(
|
|
6401
6401
|
Ht,
|
|
6402
6402
|
{
|
|
6403
6403
|
className: Ct.shareButton,
|
|
@@ -6407,9 +6407,9 @@ function xl({
|
|
|
6407
6407
|
}
|
|
6408
6408
|
) : null
|
|
6409
6409
|
] }),
|
|
6410
|
-
n ? /* @__PURE__ */ b("address", { children:
|
|
6410
|
+
n ? /* @__PURE__ */ b("address", { children: x ? Rn({
|
|
6411
6411
|
fallback: n,
|
|
6412
|
-
format:
|
|
6412
|
+
format: x,
|
|
6413
6413
|
zip: r,
|
|
6414
6414
|
city: i,
|
|
6415
6415
|
province: s,
|
|
@@ -6419,20 +6419,22 @@ function xl({
|
|
|
6419
6419
|
] }),
|
|
6420
6420
|
l != null && l.length ? /* @__PURE__ */ b("div", { className: Ct.body, children: l.map((L, A) => {
|
|
6421
6421
|
const V = L.title === Fm && $m(d) ? d.trim() : null;
|
|
6422
|
-
return /* @__PURE__ */ D(
|
|
6423
|
-
/* @__PURE__ */
|
|
6424
|
-
|
|
6425
|
-
|
|
6426
|
-
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6430
|
-
|
|
6431
|
-
|
|
6432
|
-
|
|
6433
|
-
|
|
6434
|
-
|
|
6435
|
-
|
|
6422
|
+
return /* @__PURE__ */ D(Br, { children: [
|
|
6423
|
+
/* @__PURE__ */ D("div", { className: Ct.capabilities, children: [
|
|
6424
|
+
/* @__PURE__ */ b("h5", { children: L.title }),
|
|
6425
|
+
/* @__PURE__ */ b("ul", { className: Ct.tagContainer, children: (L.capabilities ?? []).map(
|
|
6426
|
+
(H, lt) => /* @__PURE__ */ b(
|
|
6427
|
+
Om,
|
|
6428
|
+
{
|
|
6429
|
+
as: "li",
|
|
6430
|
+
animationDelay: +`.${lt + 1}`,
|
|
6431
|
+
className: Ct.tag,
|
|
6432
|
+
children: H.label
|
|
6433
|
+
},
|
|
6434
|
+
lt
|
|
6435
|
+
)
|
|
6436
|
+
) })
|
|
6437
|
+
] }),
|
|
6436
6438
|
V ? /* @__PURE__ */ b("p", { className: Ct.notes, children: V }) : null
|
|
6437
6439
|
] }, A);
|
|
6438
6440
|
}) }) : null,
|
|
@@ -6454,14 +6456,14 @@ function xl({
|
|
|
6454
6456
|
}
|
|
6455
6457
|
);
|
|
6456
6458
|
}
|
|
6457
|
-
|
|
6459
|
+
Sl.displayName = Cl;
|
|
6458
6460
|
const jm = J(
|
|
6459
|
-
|
|
6460
|
-
), zm = "_root_o9d55_1", Um = "_loader_o9d55_73",
|
|
6461
|
+
Sl
|
|
6462
|
+
), zm = "_root_o9d55_1", Um = "_loader_o9d55_73", Qo = {
|
|
6461
6463
|
root: zm,
|
|
6462
6464
|
loader: Um
|
|
6463
|
-
},
|
|
6464
|
-
function
|
|
6465
|
+
}, wl = "Button";
|
|
6466
|
+
function xl({
|
|
6465
6467
|
as: t,
|
|
6466
6468
|
children: e,
|
|
6467
6469
|
className: n,
|
|
@@ -6482,7 +6484,7 @@ function wl({
|
|
|
6482
6484
|
initial: { opacity: 0, scale: 0.95 },
|
|
6483
6485
|
animate: { opacity: 1, scale: 1 },
|
|
6484
6486
|
transition: { delay: c, duration: 0.2 }
|
|
6485
|
-
} : {},
|
|
6487
|
+
} : {}, w = u ? {
|
|
6486
6488
|
href: u,
|
|
6487
6489
|
target: d,
|
|
6488
6490
|
rel: d === "_blank" ? "noopener noreferrer" : h
|
|
@@ -6492,8 +6494,8 @@ function wl({
|
|
|
6492
6494
|
{
|
|
6493
6495
|
ref: m,
|
|
6494
6496
|
className: G(
|
|
6495
|
-
|
|
6496
|
-
"dyn-locator__" + Nt(
|
|
6497
|
+
Qo.root,
|
|
6498
|
+
"dyn-locator__" + Nt(wl),
|
|
6497
6499
|
Rt(n),
|
|
6498
6500
|
...v
|
|
6499
6501
|
),
|
|
@@ -6503,23 +6505,23 @@ function wl({
|
|
|
6503
6505
|
disabled: o || i,
|
|
6504
6506
|
...f ? { style: f } : {},
|
|
6505
6507
|
...C,
|
|
6506
|
-
...
|
|
6508
|
+
...w,
|
|
6507
6509
|
...p,
|
|
6508
6510
|
children: i ? /* @__PURE__ */ D("span", { style: { display: "flex", gap: 10 }, children: [
|
|
6509
6511
|
e,
|
|
6510
|
-
/* @__PURE__ */ b("span", { className:
|
|
6512
|
+
/* @__PURE__ */ b("span", { className: Qo.loader, "aria-hidden": "true" })
|
|
6511
6513
|
] }) : e
|
|
6512
6514
|
}
|
|
6513
6515
|
);
|
|
6514
6516
|
}
|
|
6515
|
-
|
|
6516
|
-
const nn = J(
|
|
6517
|
+
xl.displayName = wl;
|
|
6518
|
+
const nn = J(xl), _l = {
|
|
6517
6519
|
locationCard: jm,
|
|
6518
6520
|
ctaButton: nn
|
|
6519
6521
|
}, Xm = {
|
|
6520
6522
|
iconMap: ul,
|
|
6521
6523
|
componentMap: _l
|
|
6522
|
-
},
|
|
6524
|
+
}, ys = Dt(Xm);
|
|
6523
6525
|
function qm({
|
|
6524
6526
|
children: t,
|
|
6525
6527
|
customIcons: e,
|
|
@@ -6530,7 +6532,7 @@ function qm({
|
|
|
6530
6532
|
...n ?? {}
|
|
6531
6533
|
};
|
|
6532
6534
|
return /* @__PURE__ */ b(
|
|
6533
|
-
|
|
6535
|
+
ys.Provider,
|
|
6534
6536
|
{
|
|
6535
6537
|
value: {
|
|
6536
6538
|
iconMap: r,
|
|
@@ -6541,14 +6543,14 @@ function qm({
|
|
|
6541
6543
|
);
|
|
6542
6544
|
}
|
|
6543
6545
|
function Gm() {
|
|
6544
|
-
const { iconMap: t } = U(
|
|
6546
|
+
const { iconMap: t } = U(ys);
|
|
6545
6547
|
return { iconMap: t };
|
|
6546
6548
|
}
|
|
6547
6549
|
function Wm() {
|
|
6548
|
-
const { componentMap: t } = U(
|
|
6550
|
+
const { componentMap: t } = U(ys);
|
|
6549
6551
|
return { componentMap: t };
|
|
6550
6552
|
}
|
|
6551
|
-
var
|
|
6553
|
+
var xe = /* @__PURE__ */ ((t) => (t.CLUSTERS = "clusters", t.MARKERS = "markers", t.FIND = "find", t.ALL_MARKERS = "allMarkers", t))(xe || {});
|
|
6552
6554
|
const Tl = Dt({
|
|
6553
6555
|
endpointMap: {},
|
|
6554
6556
|
apiUrl: ""
|
|
@@ -6591,7 +6593,7 @@ function Hm(t) {
|
|
|
6591
6593
|
}
|
|
6592
6594
|
};
|
|
6593
6595
|
}
|
|
6594
|
-
let Zm = { data: "" }, Ym = (t) => typeof window == "object" ? ((t ? t.querySelector("#_goober") : window._goober) || Object.assign((t || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : t || Zm, Jm = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, Qm = /\/\*[^]*?\*\/| +/g,
|
|
6596
|
+
let Zm = { data: "" }, Ym = (t) => typeof window == "object" ? ((t ? t.querySelector("#_goober") : window._goober) || Object.assign((t || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : t || Zm, Jm = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, Qm = /\/\*[^]*?\*\/| +/g, ti = /\n+/g, Ut = (t, e) => {
|
|
6595
6597
|
let n = "", r = "", s = "";
|
|
6596
6598
|
for (let o in t) {
|
|
6597
6599
|
let i = t[o];
|
|
@@ -6614,7 +6616,7 @@ let Zm = { data: "" }, Ym = (t) => typeof window == "object" ? ((t ? t.querySele
|
|
|
6614
6616
|
if (!At[i]) {
|
|
6615
6617
|
let l = o !== t ? t : ((c) => {
|
|
6616
6618
|
let u, d, h = [{}];
|
|
6617
|
-
for (; u = Jm.exec(c.replace(Qm, "")); ) u[4] ? h.shift() : u[3] ? (d = u[3].replace(
|
|
6619
|
+
for (; u = Jm.exec(c.replace(Qm, "")); ) u[4] ? h.shift() : u[3] ? (d = u[3].replace(ti, " ").trim(), h.unshift(h[0][d] = h[0][d] || {})) : h[0][u[1]] = u[2].replace(ti, " ").trim();
|
|
6618
6620
|
return h[0];
|
|
6619
6621
|
})(t);
|
|
6620
6622
|
At[i] = Ut(s ? { ["@keyframes " + i]: l } : l, n ? "" : "." + i);
|
|
@@ -6846,7 +6848,7 @@ from {
|
|
|
6846
6848
|
to {
|
|
6847
6849
|
transform: scale(1) rotate(45deg);
|
|
6848
6850
|
opacity: 1;
|
|
6849
|
-
}`,
|
|
6851
|
+
}`, Sg = kt`
|
|
6850
6852
|
0% {
|
|
6851
6853
|
height: 0;
|
|
6852
6854
|
width: 0;
|
|
@@ -6860,7 +6862,7 @@ to {
|
|
|
6860
6862
|
100% {
|
|
6861
6863
|
opacity: 1;
|
|
6862
6864
|
height: 10px;
|
|
6863
|
-
}`,
|
|
6865
|
+
}`, wg = Jt("div")`
|
|
6864
6866
|
width: 20px;
|
|
6865
6867
|
opacity: 0;
|
|
6866
6868
|
height: 20px;
|
|
@@ -6875,7 +6877,7 @@ to {
|
|
|
6875
6877
|
&:after {
|
|
6876
6878
|
content: '';
|
|
6877
6879
|
box-sizing: border-box;
|
|
6878
|
-
animation: ${
|
|
6880
|
+
animation: ${Sg} 0.2s ease-out forwards;
|
|
6879
6881
|
opacity: 0;
|
|
6880
6882
|
animation-delay: 200ms;
|
|
6881
6883
|
position: absolute;
|
|
@@ -6887,7 +6889,7 @@ to {
|
|
|
6887
6889
|
height: 10px;
|
|
6888
6890
|
width: 6px;
|
|
6889
6891
|
}
|
|
6890
|
-
`,
|
|
6892
|
+
`, xg = Jt("div")`
|
|
6891
6893
|
position: absolute;
|
|
6892
6894
|
`, _g = Jt("div")`
|
|
6893
6895
|
position: relative;
|
|
@@ -6913,7 +6915,7 @@ to {
|
|
|
6913
6915
|
forwards;
|
|
6914
6916
|
`, Ag = ({ toast: t }) => {
|
|
6915
6917
|
let { icon: e, type: n, iconTheme: r } = t;
|
|
6916
|
-
return e !== void 0 ? typeof e == "string" ? et.createElement(Eg, null, e) : e : n === "blank" ? null : et.createElement(_g, null, et.createElement(bg, { ...r }), n !== "loading" && et.createElement(
|
|
6918
|
+
return e !== void 0 ? typeof e == "string" ? et.createElement(Eg, null, e) : e : n === "blank" ? null : et.createElement(_g, null, et.createElement(bg, { ...r }), n !== "loading" && et.createElement(xg, null, n === "error" ? et.createElement(yg, { ...r }) : et.createElement(wg, { ...r })));
|
|
6917
6919
|
}, Mg = (t) => `
|
|
6918
6920
|
0% {transform: translate3d(0,${t * -200}%,0) scale(.6); opacity:.5;}
|
|
6919
6921
|
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
@@ -6976,7 +6978,7 @@ var Ng = ({ id: t, className: e, style: n, onHeightUpdate: r, children: s }) =>
|
|
|
6976
6978
|
const Fg = "_root_movxa_4", $g = {
|
|
6977
6979
|
root: Fg
|
|
6978
6980
|
};
|
|
6979
|
-
function
|
|
6981
|
+
function vs({
|
|
6980
6982
|
className: t,
|
|
6981
6983
|
children: e,
|
|
6982
6984
|
show: n = !0,
|
|
@@ -7136,7 +7138,7 @@ function Jg({
|
|
|
7136
7138
|
}
|
|
7137
7139
|
}
|
|
7138
7140
|
if (!t) return null;
|
|
7139
|
-
const u = /* @__PURE__ */ b(
|
|
7141
|
+
const u = /* @__PURE__ */ b(vs, { show: t, variant: "dark", onClick: e, children: /* @__PURE__ */ D(
|
|
7140
7142
|
"div",
|
|
7141
7143
|
{
|
|
7142
7144
|
className: G("dyn-locator__share-sheet", Bt.content),
|
|
@@ -7245,9 +7247,9 @@ function ty({
|
|
|
7245
7247
|
customZoomLevels: h = null,
|
|
7246
7248
|
clusteringProvider: f = oe.AIRC
|
|
7247
7249
|
}) {
|
|
7248
|
-
const p = M((O) => O.shouldRefetch), m = M((O) => O.setShouldRefetch), g = M((O) => O.isShareSheetOpen), y = M((O) => O.toggleShareSheet), v = M((O) => O.featureFlags), C = M((O) => O.setFeatureFlags),
|
|
7250
|
+
const p = M((O) => O.shouldRefetch), m = M((O) => O.setShouldRefetch), g = M((O) => O.isShareSheetOpen), y = M((O) => O.toggleShareSheet), v = M((O) => O.featureFlags), C = M((O) => O.setFeatureFlags), w = M((O) => O.setMapId), S = M(
|
|
7249
7251
|
(O) => O.setLocalizationConfig
|
|
7250
|
-
),
|
|
7252
|
+
), x = M((O) => O.setMapDetail), E = M((O) => O.setLocations), T = M((O) => O.isFullscreen), L = M((O) => O.setCustomMarkers), A = M(
|
|
7251
7253
|
(O) => O.setCustomInfoWindow
|
|
7252
7254
|
), V = M(
|
|
7253
7255
|
(O) => O.setCustomZoomLevels
|
|
@@ -7259,15 +7261,15 @@ function ty({
|
|
|
7259
7261
|
request: I,
|
|
7260
7262
|
loading: nt,
|
|
7261
7263
|
error: P
|
|
7262
|
-
} = Xe(
|
|
7264
|
+
} = Xe(xe.CLUSTERS), {
|
|
7263
7265
|
request: R,
|
|
7264
7266
|
loading: B,
|
|
7265
7267
|
error: Y
|
|
7266
|
-
} = Xe(
|
|
7268
|
+
} = Xe(xe.MARKERS), {
|
|
7267
7269
|
request: _,
|
|
7268
7270
|
loading: rt,
|
|
7269
7271
|
error: j
|
|
7270
|
-
} = Xe(
|
|
7272
|
+
} = Xe(xe.ALL_MARKERS), Q = nt || B || rt, It = !!P || !!Y || !!j;
|
|
7271
7273
|
async function Vt(O) {
|
|
7272
7274
|
try {
|
|
7273
7275
|
if (typeof O != "number" || O < 0 || isNaN(O))
|
|
@@ -7279,7 +7281,7 @@ function ty({
|
|
|
7279
7281
|
} catch (tt) {
|
|
7280
7282
|
console.warn("Error fetching markers", tt);
|
|
7281
7283
|
}
|
|
7282
|
-
E(bt),
|
|
7284
|
+
E(bt), x(qt.CLUSTER);
|
|
7283
7285
|
} catch (bt) {
|
|
7284
7286
|
console.error("Error fetching all markers: ", bt), $.error(Xt + gn), E([]);
|
|
7285
7287
|
}
|
|
@@ -7293,10 +7295,10 @@ function ty({
|
|
|
7293
7295
|
if (!tt)
|
|
7294
7296
|
throw new Error("No cluster data received from the server");
|
|
7295
7297
|
E(
|
|
7296
|
-
(bt = tt.map) == null ? void 0 : bt.call(tt, (
|
|
7297
|
-
...
|
|
7298
|
+
(bt = tt.map) == null ? void 0 : bt.call(tt, (xs) => ({
|
|
7299
|
+
...xs,
|
|
7298
7300
|
onMarkerClick: async () => {
|
|
7299
|
-
await Xn(O,
|
|
7301
|
+
await Xn(O, xs.id);
|
|
7300
7302
|
}
|
|
7301
7303
|
}))
|
|
7302
7304
|
);
|
|
@@ -7311,13 +7313,13 @@ function ty({
|
|
|
7311
7313
|
const { data: tt } = await R({ mapId: O, clusterId: bt }) ?? {};
|
|
7312
7314
|
if (!tt)
|
|
7313
7315
|
throw new Error("No marker data received from the server");
|
|
7314
|
-
E(tt),
|
|
7316
|
+
E(tt), x(qt.MARKER);
|
|
7315
7317
|
} catch (tt) {
|
|
7316
7318
|
console.error("Error fetching markers: ", tt), $.error(Xt + gn), E([]);
|
|
7317
7319
|
}
|
|
7318
7320
|
}
|
|
7319
7321
|
return N(() => {
|
|
7320
|
-
i &&
|
|
7322
|
+
i && S(i), r && C(r), s && lt(s), u.length && (r != null && r.withCustomMarkers) && L(u), d && (r != null && r.withCustomInfoWindow) && A(d), h && V(h), f && H(f), c && en.initialize(c), typeof l == "number" && l > 0 && !isNaN(l) && w(l), a != null && a.length ? E(a) : o ? o().then(
|
|
7321
7323
|
(O) => E(O)
|
|
7322
7324
|
) : (r ? r.withClusters && f === oe.AIRC : v.withClusters && f === oe.AIRC) ? te(l) : Vt(l);
|
|
7323
7325
|
}, []), N(() => {
|
|
@@ -7331,7 +7333,7 @@ function ty({
|
|
|
7331
7333
|
"div",
|
|
7332
7334
|
{
|
|
7333
7335
|
id: "dyn-locator",
|
|
7334
|
-
className: G("dyn-locator__locator",
|
|
7336
|
+
className: G("dyn-locator__locator", xi.root),
|
|
7335
7337
|
"data-fullscreen": T,
|
|
7336
7338
|
children: /* @__PURE__ */ D(
|
|
7337
7339
|
qm,
|
|
@@ -7340,7 +7342,7 @@ function ty({
|
|
|
7340
7342
|
customComponents: e,
|
|
7341
7343
|
children: [
|
|
7342
7344
|
t,
|
|
7343
|
-
/* @__PURE__ */ D(
|
|
7345
|
+
/* @__PURE__ */ D(vs, { show: Q || It, variant: "light", children: [
|
|
7344
7346
|
Q ? /* @__PURE__ */ b(We, { size: "large" }) : null,
|
|
7345
7347
|
It ? /* @__PURE__ */ b(
|
|
7346
7348
|
cl,
|
|
@@ -7381,9 +7383,9 @@ function ey({
|
|
|
7381
7383
|
return /* @__PURE__ */ b(Jp, { children: /* @__PURE__ */ b(ac, { children: /* @__PURE__ */ b(yc, { mapProvider: t, children: /* @__PURE__ */ b(Km, { endpoints: e, apiUrl: n, children: /* @__PURE__ */ b(ty, { ...s, children: r }) }) }) }) });
|
|
7382
7384
|
}
|
|
7383
7385
|
ey.displayName = "Locator";
|
|
7384
|
-
var ar,
|
|
7386
|
+
var ar, ei;
|
|
7385
7387
|
function ny() {
|
|
7386
|
-
return
|
|
7388
|
+
return ei || (ei = 1, ar = function t(e, n) {
|
|
7387
7389
|
if (e === n) return !0;
|
|
7388
7390
|
if (e && n && typeof e == "object" && typeof n == "object") {
|
|
7389
7391
|
if (e.constructor !== n.constructor) return !1;
|
|
@@ -7410,7 +7412,7 @@ function ny() {
|
|
|
7410
7412
|
}), ar;
|
|
7411
7413
|
}
|
|
7412
7414
|
var ry = ny();
|
|
7413
|
-
const sy = /* @__PURE__ */
|
|
7415
|
+
const sy = /* @__PURE__ */ wi(ry);
|
|
7414
7416
|
function Tt() {
|
|
7415
7417
|
return Tt = Object.assign ? Object.assign.bind() : function(t) {
|
|
7416
7418
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -7698,7 +7700,7 @@ function by(t, e) {
|
|
|
7698
7700
|
t && t.setOptions(n);
|
|
7699
7701
|
}, [n]);
|
|
7700
7702
|
}
|
|
7701
|
-
function
|
|
7703
|
+
function bs() {
|
|
7702
7704
|
var t;
|
|
7703
7705
|
return ((t = U(un)) == null ? void 0 : t.status) || pt.NOT_LOADED;
|
|
7704
7706
|
}
|
|
@@ -7727,13 +7729,13 @@ function Cy(t, e) {
|
|
|
7727
7729
|
});
|
|
7728
7730
|
}, [t, r]), s;
|
|
7729
7731
|
}
|
|
7730
|
-
function
|
|
7732
|
+
function Sy(t) {
|
|
7731
7733
|
return !t || typeof t != "object" || !("lat" in t && "lng" in t) ? !1 : Number.isFinite(t.lat) && Number.isFinite(t.lng);
|
|
7732
7734
|
}
|
|
7733
7735
|
function kl(t) {
|
|
7734
|
-
return
|
|
7736
|
+
return Sy(t) ? t : t.toJSON();
|
|
7735
7737
|
}
|
|
7736
|
-
function
|
|
7738
|
+
function wy(t, e, n) {
|
|
7737
7739
|
const r = n.center ? kl(n.center) : null;
|
|
7738
7740
|
let s = null, o = null;
|
|
7739
7741
|
r && Number.isFinite(r.lat) && Number.isFinite(r.lng) && (s = r.lat, o = r.lng);
|
|
@@ -7748,7 +7750,7 @@ function Sy(t, e, n) {
|
|
|
7748
7750
|
}, u = !0), i !== null && e.current.zoom !== i && (c.zoom = i, u = !0), a !== null && e.current.heading !== a && (c.heading = a, u = !0), l !== null && e.current.tilt !== l && (c.tilt = l, u = !0), u && t.moveCamera(c);
|
|
7749
7751
|
});
|
|
7750
7752
|
}
|
|
7751
|
-
const
|
|
7753
|
+
const xy = () => {
|
|
7752
7754
|
const t = {
|
|
7753
7755
|
position: "absolute",
|
|
7754
7756
|
top: 0,
|
|
@@ -7774,7 +7776,7 @@ function _y() {
|
|
|
7774
7776
|
return [t, n];
|
|
7775
7777
|
}
|
|
7776
7778
|
function Dl() {
|
|
7777
|
-
return
|
|
7779
|
+
return bs() === pt.LOADED;
|
|
7778
7780
|
}
|
|
7779
7781
|
function Ty() {
|
|
7780
7782
|
const [, t] = Ci((e) => e + 1, 0);
|
|
@@ -7836,14 +7838,14 @@ function Ly(t, e) {
|
|
|
7836
7838
|
colorScheme: g
|
|
7837
7839
|
} = t, y = de(t, My), v = t.zoom !== void 0 || t.defaultZoom !== void 0, C = t.center !== void 0 || t.defaultCenter !== void 0;
|
|
7838
7840
|
!c && (!v || !C) && 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(h) && (y.heading = h), !y.tilt && Number.isFinite(f) && (y.tilt = f);
|
|
7839
|
-
for (const
|
|
7840
|
-
const
|
|
7841
|
+
for (const S of Object.keys(y)) y[S] === void 0 && delete y[S];
|
|
7842
|
+
const w = q(void 0);
|
|
7841
7843
|
return N(
|
|
7842
7844
|
() => {
|
|
7843
7845
|
if (!o || !n) return;
|
|
7844
7846
|
const {
|
|
7845
|
-
addMapInstance:
|
|
7846
|
-
removeMapInstance:
|
|
7847
|
+
addMapInstance: S,
|
|
7848
|
+
removeMapInstance: x
|
|
7847
7849
|
} = e, {
|
|
7848
7850
|
mapId: E
|
|
7849
7851
|
} = t, T = `${E || "default"}:${m || "default"}:${g || "LIGHT"}`;
|
|
@@ -7852,7 +7854,7 @@ function Ly(t, e) {
|
|
|
7852
7854
|
renderingType: m
|
|
7853
7855
|
} : {}, g ? {
|
|
7854
7856
|
colorScheme: g
|
|
7855
|
-
} : {}))), s(A),
|
|
7857
|
+
} : {}))), s(A), S(A, l), c) {
|
|
7856
7858
|
const {
|
|
7857
7859
|
padding: V
|
|
7858
7860
|
} = c, H = de(c, Py);
|
|
@@ -7863,19 +7865,19 @@ function Ly(t, e) {
|
|
|
7863
7865
|
south: -90,
|
|
7864
7866
|
north: 90
|
|
7865
7867
|
});
|
|
7866
|
-
if (
|
|
7868
|
+
if (w.current) {
|
|
7867
7869
|
const {
|
|
7868
7870
|
mapId: V,
|
|
7869
7871
|
cameraState: H
|
|
7870
|
-
} =
|
|
7872
|
+
} = w.current;
|
|
7871
7873
|
V !== E && A.setOptions(H);
|
|
7872
7874
|
}
|
|
7873
7875
|
return () => {
|
|
7874
|
-
|
|
7876
|
+
w.current = {
|
|
7875
7877
|
mapId: E,
|
|
7876
7878
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
7877
7879
|
cameraState: a.current
|
|
7878
|
-
}, L.remove(), p ? An.push(T, A) : google.maps.event.clearInstanceListeners(A), s(null),
|
|
7880
|
+
}, L.remove(), p ? An.push(T, A) : google.maps.event.clearInstanceListeners(A), s(null), x(l);
|
|
7879
7881
|
};
|
|
7880
7882
|
},
|
|
7881
7883
|
// some dependencies are ignored in the list below:
|
|
@@ -7901,11 +7903,11 @@ const Rl = K.createContext(null), Nl = (t) => {
|
|
|
7901
7903
|
id: n,
|
|
7902
7904
|
className: r,
|
|
7903
7905
|
style: s
|
|
7904
|
-
} = t, o = U(un), i =
|
|
7906
|
+
} = t, o = U(un), i = bs();
|
|
7905
7907
|
if (!o)
|
|
7906
7908
|
throw new Error("<Map> can only be used inside an <ApiProvider> component.");
|
|
7907
7909
|
const [a, l, c] = Ly(t, o);
|
|
7908
|
-
|
|
7910
|
+
wy(a, c, t), fy(a, t), by(a, t);
|
|
7909
7911
|
const u = Cy(a, t), d = !!t.controlled;
|
|
7910
7912
|
N(() => {
|
|
7911
7913
|
if (a)
|
|
@@ -7925,15 +7927,15 @@ const Rl = K.createContext(null), Nl = (t) => {
|
|
|
7925
7927
|
let f = null, p = null;
|
|
7926
7928
|
h && Number.isFinite(h.lat) && Number.isFinite(h.lng) && (f = h.lat, p = h.lng);
|
|
7927
7929
|
const m = ht(() => {
|
|
7928
|
-
var v, C, S, x
|
|
7930
|
+
var v, C, w, S, x;
|
|
7929
7931
|
return {
|
|
7930
7932
|
center: {
|
|
7931
7933
|
lat: (v = f) != null ? v : 0,
|
|
7932
7934
|
lng: (C = p) != null ? C : 0
|
|
7933
7935
|
},
|
|
7934
|
-
zoom: (
|
|
7935
|
-
heading: (
|
|
7936
|
-
tilt: (
|
|
7936
|
+
zoom: (w = t.zoom) != null ? w : 0,
|
|
7937
|
+
heading: (S = t.heading) != null ? S : 0,
|
|
7938
|
+
tilt: (x = t.tilt) != null ? x : 0
|
|
7937
7939
|
};
|
|
7938
7940
|
}, [f, p, t.zoom, t.heading, t.tilt]);
|
|
7939
7941
|
Vn(() => {
|
|
@@ -7958,7 +7960,7 @@ const Rl = K.createContext(null), Nl = (t) => {
|
|
|
7958
7960
|
position: "relative"
|
|
7959
7961
|
}, r ? {} : g),
|
|
7960
7962
|
className: r
|
|
7961
|
-
}, /* @__PURE__ */ K.createElement(
|
|
7963
|
+
}, /* @__PURE__ */ K.createElement(xy, null)) : /* @__PURE__ */ K.createElement("div", Tt({
|
|
7962
7964
|
ref: l,
|
|
7963
7965
|
"data-testid": "map",
|
|
7964
7966
|
style: r ? void 0 : g,
|
|
@@ -7970,10 +7972,10 @@ const Rl = K.createContext(null), Nl = (t) => {
|
|
|
7970
7972
|
}, e) : null);
|
|
7971
7973
|
};
|
|
7972
7974
|
Nl.deckGLViewProps = !0;
|
|
7973
|
-
const
|
|
7975
|
+
const ni = /* @__PURE__ */ new Set();
|
|
7974
7976
|
function Oy(...t) {
|
|
7975
7977
|
const e = JSON.stringify(t);
|
|
7976
|
-
|
|
7978
|
+
ni.has(e) || (ni.add(e), console.error(...t));
|
|
7977
7979
|
}
|
|
7978
7980
|
const dn = (t = null) => {
|
|
7979
7981
|
const e = U(un), {
|
|
@@ -7992,7 +7994,7 @@ function In(t) {
|
|
|
7992
7994
|
!e || !n || n.importLibrary(t);
|
|
7993
7995
|
}, [e, n, t]), (n == null ? void 0 : n.loadedLibraries[t]) || null;
|
|
7994
7996
|
}
|
|
7995
|
-
function
|
|
7997
|
+
function we(t, e, n) {
|
|
7996
7998
|
N(() => {
|
|
7997
7999
|
if (!t || !e || !n) return;
|
|
7998
8000
|
const r = google.maps.event.addListener(t, e, n);
|
|
@@ -8004,7 +8006,7 @@ function vn(t, e, n) {
|
|
|
8004
8006
|
t && (t[e] = n);
|
|
8005
8007
|
}, [t, e, n]);
|
|
8006
8008
|
}
|
|
8007
|
-
function
|
|
8009
|
+
function ri(t, e, n) {
|
|
8008
8010
|
N(() => {
|
|
8009
8011
|
if (!(!t || !e || !n))
|
|
8010
8012
|
return t.addEventListener(e, n), () => t.removeEventListener(e, n);
|
|
@@ -8055,26 +8057,26 @@ function Vy(t) {
|
|
|
8055
8057
|
draggable: y,
|
|
8056
8058
|
position: v,
|
|
8057
8059
|
title: C,
|
|
8058
|
-
zIndex:
|
|
8059
|
-
} = t,
|
|
8060
|
+
zIndex: w
|
|
8061
|
+
} = t, S = Hl.count(a);
|
|
8060
8062
|
return N(() => {
|
|
8061
8063
|
if (!o || !i) return;
|
|
8062
|
-
const
|
|
8063
|
-
|
|
8064
|
+
const x = new i.AdvancedMarkerElement();
|
|
8065
|
+
x.map = o, n(x);
|
|
8064
8066
|
let E = null;
|
|
8065
|
-
return
|
|
8067
|
+
return S > 0 && (E = document.createElement("div"), E.isCustomMarker = !0, x.content = E, s(E)), () => {
|
|
8066
8068
|
var T;
|
|
8067
|
-
|
|
8069
|
+
x.map = null, (T = E) == null || T.remove(), n(null), s(null);
|
|
8068
8070
|
};
|
|
8069
|
-
}, [o, i,
|
|
8070
|
-
!e || !e.content ||
|
|
8071
|
-
}, [e, c,
|
|
8071
|
+
}, [o, i, S]), N(() => {
|
|
8072
|
+
!e || !e.content || S > 0 || (e.content.className = c || "");
|
|
8073
|
+
}, [e, c, S]), vn(e, "position", v), vn(e, "title", C ?? ""), vn(e, "zIndex", w), vn(e, "collisionBehavior", m), N(() => {
|
|
8072
8074
|
e && (y !== void 0 ? e.gmpDraggable = y : h || f || p ? e.gmpDraggable = !0 : e.gmpDraggable = !1);
|
|
8073
8075
|
}, [e, y, h, p, f]), N(() => {
|
|
8074
8076
|
if (!e) return;
|
|
8075
|
-
const
|
|
8076
|
-
e.gmpClickable =
|
|
8077
|
-
}, [e, g, l, u, d]),
|
|
8077
|
+
const x = g !== void 0 || !!l || !!u || !!d;
|
|
8078
|
+
e.gmpClickable = x, x && e != null && e.content && Dy(e.content) && (e.content.style.pointerEvents = "none", e.content.firstElementChild && (e.content.firstElementChild.style.pointerEvents = "all"));
|
|
8079
|
+
}, [e, g, l, u, d]), we(e, "click", l), we(e, "drag", h), we(e, "dragstart", f), we(e, "dragend", p), ri(e == null ? void 0 : e.element, "mouseenter", u), ri(e == null ? void 0 : e.element, "mouseleave", d), [e, r];
|
|
8078
8080
|
}
|
|
8079
8081
|
const By = J((t, e) => {
|
|
8080
8082
|
const {
|
|
@@ -8106,7 +8108,7 @@ function $y(t, e, n) {
|
|
|
8106
8108
|
if (n == null) {
|
|
8107
8109
|
if (e == null) return;
|
|
8108
8110
|
for (const s in e)
|
|
8109
|
-
e.hasOwnProperty(s) &&
|
|
8111
|
+
e.hasOwnProperty(s) && si(r, s, e[s]);
|
|
8110
8112
|
return;
|
|
8111
8113
|
}
|
|
8112
8114
|
for (const s in n)
|
|
@@ -8114,10 +8116,10 @@ function $y(t, e, n) {
|
|
|
8114
8116
|
if (e != null)
|
|
8115
8117
|
for (const s in e) {
|
|
8116
8118
|
const o = e[s];
|
|
8117
|
-
e.hasOwnProperty(s) && n[s] !== o &&
|
|
8119
|
+
e.hasOwnProperty(s) && n[s] !== o && si(r, s, o);
|
|
8118
8120
|
}
|
|
8119
8121
|
}
|
|
8120
|
-
function
|
|
8122
|
+
function si(t, e, n) {
|
|
8121
8123
|
const r = e.indexOf("--") === 0;
|
|
8122
8124
|
n == null || typeof n == "boolean" || n === "" ? r ? t.setProperty(e, "") : e === "float" ? t.cssFloat = "" : t[e] = "" : r ? t.setProperty(e, n) : typeof n == "number" && n !== 0 && !zy(e) ? t[e] = n + "px" : e === "float" ? t.cssFloat = n : t[e] = ("" + n).trim();
|
|
8123
8125
|
}
|
|
@@ -8195,8 +8197,8 @@ const Uy = ["children", "headerContent", "style", "className", "pixelOffset", "a
|
|
|
8195
8197
|
o && (v.pixelOffset = new google.maps.Size(o[0], o[1])), n && (v.headerContent = typeof n == "string" ? n : m.current);
|
|
8196
8198
|
const C = new google.maps.InfoWindow(u);
|
|
8197
8199
|
return C.setContent(p.current), f(C), () => {
|
|
8198
|
-
var
|
|
8199
|
-
C.setContent(null), (
|
|
8200
|
+
var w, S;
|
|
8201
|
+
C.setContent(null), (w = p.current) == null || w.remove(), (S = m.current) == null || S.remove(), p.current = null, m.current = null, f(null);
|
|
8200
8202
|
};
|
|
8201
8203
|
},
|
|
8202
8204
|
// `infoWindowOptions` and other props are missing from dependencies:
|
|
@@ -8221,7 +8223,7 @@ const Uy = ["children", "headerContent", "style", "className", "pixelOffset", "a
|
|
|
8221
8223
|
// to the constructor when a new infoWindow is created.
|
|
8222
8224
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
8223
8225
|
[u, o, n]
|
|
8224
|
-
),
|
|
8226
|
+
), we(h, "close", l), we(h, "closeclick", c);
|
|
8225
8227
|
const y = dn();
|
|
8226
8228
|
return Dr(() => {
|
|
8227
8229
|
if (!y || !h || i === null) return;
|
|
@@ -8229,10 +8231,10 @@ const Uy = ["children", "headerContent", "style", "className", "pixelOffset", "a
|
|
|
8229
8231
|
map: y
|
|
8230
8232
|
};
|
|
8231
8233
|
if (i && (C.anchor = i, ky(i) && i.content instanceof Element)) {
|
|
8232
|
-
const
|
|
8233
|
-
if (
|
|
8234
|
-
var
|
|
8235
|
-
const E = (
|
|
8234
|
+
const S = i.content, x = S == null ? void 0 : S.getBoundingClientRect();
|
|
8235
|
+
if (x && S != null && S.isCustomMarker) {
|
|
8236
|
+
var w;
|
|
8237
|
+
const E = (w = i.content.firstElementChild) == null ? void 0 : w.firstElementChild, T = E == null ? void 0 : E.getBoundingClientRect(), L = T.x - x.x + (T.width - x.width) / 2, A = T.y - x.y, V = u;
|
|
8236
8238
|
V.pixelOffset = new google.maps.Size(o ? o[0] + L : L, o ? o[1] + A : A), h.setOptions(V);
|
|
8237
8239
|
}
|
|
8238
8240
|
}
|
|
@@ -8274,7 +8276,7 @@ function Gy(t) {
|
|
|
8274
8276
|
h || !d || !e || e.setPosition(d);
|
|
8275
8277
|
}, [h, d, e]), e;
|
|
8276
8278
|
}
|
|
8277
|
-
const
|
|
8279
|
+
const Cs = J((t, e) => {
|
|
8278
8280
|
const n = Gy(t);
|
|
8279
8281
|
return bi(e, () => n, [n]), /* @__PURE__ */ K.createElement(K.Fragment, null);
|
|
8280
8282
|
});
|
|
@@ -8408,7 +8410,7 @@ function Il({
|
|
|
8408
8410
|
var ct;
|
|
8409
8411
|
const { labels: p } = M((I) => I.localizationConfig), m = M((I) => I.selectedLocation), g = M((I) => I.featureFlags), y = M((I) => I.customMarkers), v = M((I) => I.customInfoWindow), C = M(
|
|
8410
8412
|
(I) => I.setSelectedLocation
|
|
8411
|
-
),
|
|
8413
|
+
), w = M((I) => I.presentationPrefs), { addressFormat: S } = w ?? {}, [x, E] = Wy(), [T, L] = Fy(), A = g.withCustomMarkers && h && h !== "default" ? h : null, V = vt(() => {
|
|
8412
8414
|
C == null || C("");
|
|
8413
8415
|
}, [C]), H = (I) => {
|
|
8414
8416
|
const nt = y.find((R) => R.markerType === I), P = nt == null ? void 0 : nt.component;
|
|
@@ -8429,9 +8431,9 @@ function Il({
|
|
|
8429
8431
|
children: H(A)
|
|
8430
8432
|
}
|
|
8431
8433
|
) : /* @__PURE__ */ b(
|
|
8432
|
-
|
|
8434
|
+
Cs,
|
|
8433
8435
|
{
|
|
8434
|
-
ref:
|
|
8436
|
+
ref: x,
|
|
8435
8437
|
position: l,
|
|
8436
8438
|
onClick: () => {
|
|
8437
8439
|
u == null || u();
|
|
@@ -8449,9 +8451,9 @@ function Il({
|
|
|
8449
8451
|
...f,
|
|
8450
8452
|
title: e,
|
|
8451
8453
|
actions: c,
|
|
8452
|
-
address:
|
|
8454
|
+
address: S ? Rn({
|
|
8453
8455
|
fallback: n,
|
|
8454
|
-
format:
|
|
8456
|
+
format: S,
|
|
8455
8457
|
zip: r,
|
|
8456
8458
|
city: i,
|
|
8457
8459
|
province: s,
|
|
@@ -8461,9 +8463,9 @@ function Il({
|
|
|
8461
8463
|
}) : /* @__PURE__ */ D(qe, { children: [
|
|
8462
8464
|
/* @__PURE__ */ D("header", { className: bn.header, children: [
|
|
8463
8465
|
/* @__PURE__ */ b("h6", { children: e }),
|
|
8464
|
-
/* @__PURE__ */ b("address", { children:
|
|
8466
|
+
/* @__PURE__ */ b("address", { children: S ? Rn({
|
|
8465
8467
|
fallback: n,
|
|
8466
|
-
format:
|
|
8468
|
+
format: S,
|
|
8467
8469
|
zip: r,
|
|
8468
8470
|
city: i,
|
|
8469
8471
|
province: s,
|
|
@@ -8483,7 +8485,7 @@ function Il({
|
|
|
8483
8485
|
// Callback
|
|
8484
8486
|
() => {
|
|
8485
8487
|
en.track(
|
|
8486
|
-
|
|
8488
|
+
St.INFO_WINDOW_PRIMARY_ACTION,
|
|
8487
8489
|
{
|
|
8488
8490
|
cta_event_type: "cta_primary",
|
|
8489
8491
|
cta_label: p["InfoWindow.CTA_1"]
|
|
@@ -8502,7 +8504,7 @@ function Il({
|
|
|
8502
8504
|
size: "small",
|
|
8503
8505
|
onClick: () => {
|
|
8504
8506
|
en.track(
|
|
8505
|
-
|
|
8507
|
+
St.INFO_WINDOW_SECONDARY_ACTION,
|
|
8506
8508
|
{
|
|
8507
8509
|
cta_event_type: "cta_secondary",
|
|
8508
8510
|
cta_label: p["InfoWindow.CTA_2"]
|
|
@@ -8519,7 +8521,7 @@ function Il({
|
|
|
8519
8521
|
] });
|
|
8520
8522
|
}
|
|
8521
8523
|
var h0 = Object.getOwnPropertyNames, f0 = Object.getOwnPropertySymbols, p0 = Object.prototype.hasOwnProperty;
|
|
8522
|
-
function
|
|
8524
|
+
function oi(t, e) {
|
|
8523
8525
|
return function(r, s, o) {
|
|
8524
8526
|
return t(r, s, o) && e(r, s, o);
|
|
8525
8527
|
};
|
|
@@ -8536,7 +8538,7 @@ function Cn(t) {
|
|
|
8536
8538
|
return o.delete(n), o.delete(r), l;
|
|
8537
8539
|
};
|
|
8538
8540
|
}
|
|
8539
|
-
function
|
|
8541
|
+
function ii(t) {
|
|
8540
8542
|
return h0(t).concat(f0(t));
|
|
8541
8543
|
}
|
|
8542
8544
|
var m0 = Object.hasOwn || function(t, e) {
|
|
@@ -8545,7 +8547,7 @@ var m0 = Object.hasOwn || function(t, e) {
|
|
|
8545
8547
|
function me(t, e) {
|
|
8546
8548
|
return t === e || !t && !e && t !== t && e !== e;
|
|
8547
8549
|
}
|
|
8548
|
-
var g0 = "__v", y0 = "__o", v0 = "_owner",
|
|
8550
|
+
var g0 = "__v", y0 = "__o", v0 = "_owner", ai = Object.getOwnPropertyDescriptor, li = Object.keys;
|
|
8549
8551
|
function b0(t, e, n) {
|
|
8550
8552
|
var r = t.length;
|
|
8551
8553
|
if (e.length !== r)
|
|
@@ -8558,13 +8560,13 @@ function b0(t, e, n) {
|
|
|
8558
8560
|
function C0(t, e) {
|
|
8559
8561
|
return me(t.getTime(), e.getTime());
|
|
8560
8562
|
}
|
|
8561
|
-
function
|
|
8563
|
+
function S0(t, e) {
|
|
8562
8564
|
return t.name === e.name && t.message === e.message && t.cause === e.cause && t.stack === e.stack;
|
|
8563
8565
|
}
|
|
8564
|
-
function
|
|
8566
|
+
function w0(t, e) {
|
|
8565
8567
|
return t === e;
|
|
8566
8568
|
}
|
|
8567
|
-
function
|
|
8569
|
+
function ci(t, e, n) {
|
|
8568
8570
|
var r = t.size;
|
|
8569
8571
|
if (r !== e.size)
|
|
8570
8572
|
return !1;
|
|
@@ -8589,10 +8591,10 @@ function li(t, e, n) {
|
|
|
8589
8591
|
}
|
|
8590
8592
|
return !0;
|
|
8591
8593
|
}
|
|
8592
|
-
var
|
|
8594
|
+
var x0 = me;
|
|
8593
8595
|
function _0(t, e, n) {
|
|
8594
|
-
var r =
|
|
8595
|
-
if (
|
|
8596
|
+
var r = li(t), s = r.length;
|
|
8597
|
+
if (li(e).length !== s)
|
|
8596
8598
|
return !1;
|
|
8597
8599
|
for (; s-- > 0; )
|
|
8598
8600
|
if (!Vl(t, e, n, r[s]))
|
|
@@ -8600,11 +8602,11 @@ function _0(t, e, n) {
|
|
|
8600
8602
|
return !0;
|
|
8601
8603
|
}
|
|
8602
8604
|
function ke(t, e, n) {
|
|
8603
|
-
var r =
|
|
8604
|
-
if (
|
|
8605
|
+
var r = ii(t), s = r.length;
|
|
8606
|
+
if (ii(e).length !== s)
|
|
8605
8607
|
return !1;
|
|
8606
8608
|
for (var o, i, a; s-- > 0; )
|
|
8607
|
-
if (o = r[s], !Vl(t, e, n, o) || (i =
|
|
8609
|
+
if (o = r[s], !Vl(t, e, n, o) || (i = ai(t, o), a = ai(e, o), (i || a) && (!i || !a || i.configurable !== a.configurable || i.enumerable !== a.enumerable || i.writable !== a.writable)))
|
|
8608
8610
|
return !1;
|
|
8609
8611
|
return !0;
|
|
8610
8612
|
}
|
|
@@ -8614,7 +8616,7 @@ function T0(t, e) {
|
|
|
8614
8616
|
function E0(t, e) {
|
|
8615
8617
|
return t.source === e.source && t.flags === e.flags;
|
|
8616
8618
|
}
|
|
8617
|
-
function
|
|
8619
|
+
function ui(t, e, n) {
|
|
8618
8620
|
var r = t.size;
|
|
8619
8621
|
if (r !== e.size)
|
|
8620
8622
|
return !1;
|
|
@@ -8648,7 +8650,7 @@ function M0(t, e) {
|
|
|
8648
8650
|
function Vl(t, e, n, r) {
|
|
8649
8651
|
return (r === v0 || r === y0 || r === g0) && (t.$$typeof || e.$$typeof) ? !0 : m0(e, r) && n.equals(t[r], e[r], r, r, t, e, n);
|
|
8650
8652
|
}
|
|
8651
|
-
var P0 = "[object Arguments]", L0 = "[object Boolean]", O0 = "[object Date]", k0 = "[object Error]", D0 = "[object Map]", R0 = "[object Number]", N0 = "[object Object]", I0 = "[object RegExp]", V0 = "[object Set]", B0 = "[object String]", F0 = "[object URL]", $0 = Array.isArray,
|
|
8653
|
+
var P0 = "[object Arguments]", L0 = "[object Boolean]", O0 = "[object Date]", k0 = "[object Error]", D0 = "[object Map]", R0 = "[object Number]", N0 = "[object Object]", I0 = "[object RegExp]", V0 = "[object Set]", B0 = "[object String]", F0 = "[object URL]", $0 = Array.isArray, di = typeof ArrayBuffer == "function" && ArrayBuffer.isView ? ArrayBuffer.isView : null, hi = Object.assign, j0 = Object.prototype.toString.call.bind(Object.prototype.toString);
|
|
8652
8654
|
function z0(t) {
|
|
8653
8655
|
var e = t.areArraysEqual, n = t.areDatesEqual, r = t.areErrorsEqual, s = t.areFunctionsEqual, o = t.areMapsEqual, i = t.areNumbersEqual, a = t.areObjectsEqual, l = t.arePrimitiveWrappersEqual, c = t.areRegExpsEqual, u = t.areSetsEqual, d = t.areTypedArraysEqual, h = t.areUrlsEqual;
|
|
8654
8656
|
return function(p, m, g) {
|
|
@@ -8668,7 +8670,7 @@ function z0(t) {
|
|
|
8668
8670
|
return a(p, m, g);
|
|
8669
8671
|
if ($0(p))
|
|
8670
8672
|
return e(p, m, g);
|
|
8671
|
-
if (
|
|
8673
|
+
if (di != null && di(p))
|
|
8672
8674
|
return d(p, m, g);
|
|
8673
8675
|
if (v === Date)
|
|
8674
8676
|
return n(p, m, g);
|
|
@@ -8686,20 +8688,20 @@ function U0(t) {
|
|
|
8686
8688
|
var e = t.circular, n = t.createCustomConfig, r = t.strict, s = {
|
|
8687
8689
|
areArraysEqual: r ? ke : b0,
|
|
8688
8690
|
areDatesEqual: C0,
|
|
8689
|
-
areErrorsEqual:
|
|
8690
|
-
areFunctionsEqual:
|
|
8691
|
-
areMapsEqual: r ?
|
|
8692
|
-
areNumbersEqual:
|
|
8691
|
+
areErrorsEqual: S0,
|
|
8692
|
+
areFunctionsEqual: w0,
|
|
8693
|
+
areMapsEqual: r ? oi(ci, ke) : ci,
|
|
8694
|
+
areNumbersEqual: x0,
|
|
8693
8695
|
areObjectsEqual: r ? ke : _0,
|
|
8694
8696
|
arePrimitiveWrappersEqual: T0,
|
|
8695
8697
|
areRegExpsEqual: E0,
|
|
8696
|
-
areSetsEqual: r ?
|
|
8698
|
+
areSetsEqual: r ? oi(ui, ke) : ui,
|
|
8697
8699
|
areTypedArraysEqual: r ? ke : A0,
|
|
8698
8700
|
areUrlsEqual: M0
|
|
8699
8701
|
};
|
|
8700
|
-
if (n && (s =
|
|
8702
|
+
if (n && (s = hi({}, s, n(s))), e) {
|
|
8701
8703
|
var o = Cn(s.areArraysEqual), i = Cn(s.areMapsEqual), a = Cn(s.areObjectsEqual), l = Cn(s.areSetsEqual);
|
|
8702
|
-
s =
|
|
8704
|
+
s = hi({}, s, {
|
|
8703
8705
|
areArraysEqual: o,
|
|
8704
8706
|
areMapsEqual: i,
|
|
8705
8707
|
areObjectsEqual: a,
|
|
@@ -8744,7 +8746,7 @@ function q0(t) {
|
|
|
8744
8746
|
return n(l, c, i);
|
|
8745
8747
|
};
|
|
8746
8748
|
}
|
|
8747
|
-
var
|
|
8749
|
+
var fi = Qt();
|
|
8748
8750
|
Qt({ strict: !0 });
|
|
8749
8751
|
Qt({ circular: !0 });
|
|
8750
8752
|
Qt({
|
|
@@ -8780,7 +8782,7 @@ function Qt(t) {
|
|
|
8780
8782
|
var e = t.circular, n = e === void 0 ? !1 : e, r = t.createInternalComparator, s = t.createState, o = t.strict, i = o === void 0 ? !1 : o, a = U0(t), l = z0(a), c = r ? r(l) : X0(l);
|
|
8781
8783
|
return q0({ circular: n, comparator: l, createState: s, equals: c, strict: i });
|
|
8782
8784
|
}
|
|
8783
|
-
const
|
|
8785
|
+
const pi = [
|
|
8784
8786
|
Int8Array,
|
|
8785
8787
|
Uint8Array,
|
|
8786
8788
|
Uint8ClampedArray,
|
|
@@ -8791,7 +8793,7 @@ const fi = [
|
|
|
8791
8793
|
Float32Array,
|
|
8792
8794
|
Float64Array
|
|
8793
8795
|
], lr = 1, De = 8;
|
|
8794
|
-
class
|
|
8796
|
+
class Ss {
|
|
8795
8797
|
/**
|
|
8796
8798
|
* Creates an index from raw `ArrayBuffer` data.
|
|
8797
8799
|
* @param {ArrayBuffer} data
|
|
@@ -8805,11 +8807,11 @@ class Cs {
|
|
|
8805
8807
|
const s = r >> 4;
|
|
8806
8808
|
if (s !== lr)
|
|
8807
8809
|
throw new Error(`Got v${s} data when expected v${lr}.`);
|
|
8808
|
-
const o =
|
|
8810
|
+
const o = pi[r & 15];
|
|
8809
8811
|
if (!o)
|
|
8810
8812
|
throw new Error("Unrecognized array type.");
|
|
8811
8813
|
const [i] = new Uint16Array(e, 2, 1), [a] = new Uint32Array(e, 4, 1);
|
|
8812
|
-
return new
|
|
8814
|
+
return new Ss(a, i, o, e);
|
|
8813
8815
|
}
|
|
8814
8816
|
/**
|
|
8815
8817
|
* Creates an index that will hold a given number of items.
|
|
@@ -8821,7 +8823,7 @@ class Cs {
|
|
|
8821
8823
|
constructor(e, n = 64, r = Float64Array, s) {
|
|
8822
8824
|
if (isNaN(e) || e < 0) throw new Error(`Unpexpected numItems value: ${e}.`);
|
|
8823
8825
|
this.numItems = +e, this.nodeSize = Math.min(Math.max(+n, 2), 65535), this.ArrayType = r, this.IndexArrayType = e < 65536 ? Uint16Array : Uint32Array;
|
|
8824
|
-
const o =
|
|
8826
|
+
const o = pi.indexOf(this.ArrayType), i = e * 2 * this.ArrayType.BYTES_PER_ELEMENT, a = e * this.IndexArrayType.BYTES_PER_ELEMENT, l = (8 - a % 8) % 8;
|
|
8825
8827
|
if (o < 0)
|
|
8826
8828
|
throw new Error(`Unexpected typed array class: ${r}.`);
|
|
8827
8829
|
s && s instanceof ArrayBuffer ? (this.data = s, this.ids = new this.IndexArrayType(this.data, De, e), this.coords = new this.ArrayType(this.data, De + a + l, e * 2), this._pos = e * 2, this._finished = !0) : (this.data = new ArrayBuffer(De + i + a + l), this.ids = new this.IndexArrayType(this.data, De, e), this.coords = new this.ArrayType(this.data, De + a + l, e * 2), this._pos = 0, this._finished = !1, new Uint8Array(this.data, 0, 2).set([219, (lr << 4) + o]), new Uint16Array(this.data, 2, 1)[0] = n, new Uint32Array(this.data, 4, 1)[0] = e);
|
|
@@ -8884,11 +8886,11 @@ class Cs {
|
|
|
8884
8886
|
const u = a.pop() || 0, d = a.pop() || 0, h = a.pop() || 0;
|
|
8885
8887
|
if (d - h <= i) {
|
|
8886
8888
|
for (let g = h; g <= d; g++)
|
|
8887
|
-
|
|
8889
|
+
mi(o[2 * g], o[2 * g + 1], e, n) <= c && l.push(s[g]);
|
|
8888
8890
|
continue;
|
|
8889
8891
|
}
|
|
8890
8892
|
const f = h + d >> 1, p = o[2 * f], m = o[2 * f + 1];
|
|
8891
|
-
|
|
8893
|
+
mi(p, m, e, n) <= c && l.push(s[f]), (u === 0 ? e - r <= p : n - r <= m) && (a.push(h), a.push(f - 1), a.push(1 - u)), (u === 0 ? e + r >= p : n + r >= m) && (a.push(f + 1), a.push(d), a.push(1 - u));
|
|
8892
8894
|
}
|
|
8893
8895
|
return l;
|
|
8894
8896
|
}
|
|
@@ -8920,7 +8922,7 @@ function cr(t, e, n) {
|
|
|
8920
8922
|
const r = t[e];
|
|
8921
8923
|
t[e] = t[n], t[n] = r;
|
|
8922
8924
|
}
|
|
8923
|
-
function
|
|
8925
|
+
function mi(t, e, n, r) {
|
|
8924
8926
|
const s = t - n, o = e - r;
|
|
8925
8927
|
return s * s + o * o;
|
|
8926
8928
|
}
|
|
@@ -8947,7 +8949,7 @@ const G0 = {
|
|
|
8947
8949
|
// properties to use for individual points when running the reducer
|
|
8948
8950
|
map: (t) => t
|
|
8949
8951
|
// props => ({sum: props.my_value})
|
|
8950
|
-
},
|
|
8952
|
+
}, gi = Math.fround || /* @__PURE__ */ ((t) => (e) => (t[0] = +e, t[0]))(new Float32Array(1)), ne = 2, zt = 3, ur = 4, jt = 5, Fl = 6;
|
|
8951
8953
|
class W0 {
|
|
8952
8954
|
constructor(e) {
|
|
8953
8955
|
this.options = Object.assign(Object.create(G0), e), this.trees = new Array(this.options.maxZoom + 1), this.stride = this.options.reduce ? 7 : 6, this.clusterProps = [];
|
|
@@ -8961,7 +8963,7 @@ class W0 {
|
|
|
8961
8963
|
for (let l = 0; l < e.length; l++) {
|
|
8962
8964
|
const c = e[l];
|
|
8963
8965
|
if (!c.geometry) continue;
|
|
8964
|
-
const [u, d] = c.geometry.coordinates, h =
|
|
8966
|
+
const [u, d] = c.geometry.coordinates, h = gi(Sn(u)), f = gi(wn(d));
|
|
8965
8967
|
i.push(
|
|
8966
8968
|
h,
|
|
8967
8969
|
f,
|
|
@@ -8995,10 +8997,10 @@ class W0 {
|
|
|
8995
8997
|
const d = this.getClusters([r, s, 180, i], n), h = this.getClusters([-180, s, o, i], n);
|
|
8996
8998
|
return d.concat(h);
|
|
8997
8999
|
}
|
|
8998
|
-
const a = this.trees[this._limitZoom(n)], l = a.range(
|
|
9000
|
+
const a = this.trees[this._limitZoom(n)], l = a.range(Sn(r), wn(i), Sn(o), wn(s)), c = a.data, u = [];
|
|
8999
9001
|
for (const d of l) {
|
|
9000
9002
|
const h = this.stride * d;
|
|
9001
|
-
u.push(c[h + jt] > 1 ?
|
|
9003
|
+
u.push(c[h + jt] > 1 ? yi(c, h, this.clusterProps) : this.points[c[h + zt]]);
|
|
9002
9004
|
}
|
|
9003
9005
|
return u;
|
|
9004
9006
|
}
|
|
@@ -9010,7 +9012,7 @@ class W0 {
|
|
|
9010
9012
|
const a = this.options.radius / (this.options.extent * Math.pow(2, r - 1)), l = i[n * this.stride], c = i[n * this.stride + 1], u = o.within(l, c, a), d = [];
|
|
9011
9013
|
for (const h of u) {
|
|
9012
9014
|
const f = h * this.stride;
|
|
9013
|
-
i[f + ur] === e && d.push(i[f + jt] > 1 ?
|
|
9015
|
+
i[f + ur] === e && d.push(i[f + jt] > 1 ? yi(i, f, this.clusterProps) : this.points[i[f + zt]]);
|
|
9014
9016
|
}
|
|
9015
9017
|
if (d.length === 0) throw new Error(s);
|
|
9016
9018
|
return d;
|
|
@@ -9065,7 +9067,7 @@ class W0 {
|
|
|
9065
9067
|
return o;
|
|
9066
9068
|
}
|
|
9067
9069
|
_createTree(e) {
|
|
9068
|
-
const n = new
|
|
9070
|
+
const n = new Ss(e.length / this.stride | 0, this.options.nodeSize, Float32Array);
|
|
9069
9071
|
for (let r = 0; r < e.length; r += this.stride) n.add(e[r], e[r + 1]);
|
|
9070
9072
|
return n.finish(), n.data = e, n;
|
|
9071
9073
|
}
|
|
@@ -9079,7 +9081,7 @@ class W0 {
|
|
|
9079
9081
|
const m = this.points[n[l + zt]];
|
|
9080
9082
|
u = m.properties;
|
|
9081
9083
|
const [g, y] = m.geometry.coordinates;
|
|
9082
|
-
d =
|
|
9084
|
+
d = Sn(g), h = wn(y);
|
|
9083
9085
|
}
|
|
9084
9086
|
const f = {
|
|
9085
9087
|
type: 1,
|
|
@@ -9108,16 +9110,16 @@ class W0 {
|
|
|
9108
9110
|
l[v + ne] > n && (g += l[v + jt]);
|
|
9109
9111
|
}
|
|
9110
9112
|
if (g > m && g >= i) {
|
|
9111
|
-
let y = h * m, v = f * m, C,
|
|
9112
|
-
const
|
|
9113
|
-
for (const
|
|
9114
|
-
const E =
|
|
9113
|
+
let y = h * m, v = f * m, C, w = -1;
|
|
9114
|
+
const S = ((d / u | 0) << 5) + (n + 1) + this.points.length;
|
|
9115
|
+
for (const x of p) {
|
|
9116
|
+
const E = x * u;
|
|
9115
9117
|
if (l[E + ne] <= n) continue;
|
|
9116
9118
|
l[E + ne] = n;
|
|
9117
9119
|
const T = l[E + jt];
|
|
9118
|
-
y += l[E] * T, v += l[E + 1] * T, l[E + ur] =
|
|
9120
|
+
y += l[E] * T, v += l[E + 1] * T, l[E + ur] = S, o && (C || (C = this._map(l, d, !0), w = this.clusterProps.length, this.clusterProps.push(C)), o(C, this._map(l, E)));
|
|
9119
9121
|
}
|
|
9120
|
-
l[d + ur] =
|
|
9122
|
+
l[d + ur] = S, c.push(y / g, v / g, 1 / 0, S, -1, g), o && c.push(w);
|
|
9121
9123
|
} else {
|
|
9122
9124
|
for (let y = 0; y < u; y++) c.push(l[d + y]);
|
|
9123
9125
|
if (g > 1)
|
|
@@ -9149,7 +9151,7 @@ class W0 {
|
|
|
9149
9151
|
return r && o === s ? Object.assign({}, o) : o;
|
|
9150
9152
|
}
|
|
9151
9153
|
}
|
|
9152
|
-
function
|
|
9154
|
+
function yi(t, e, n) {
|
|
9153
9155
|
return {
|
|
9154
9156
|
type: "Feature",
|
|
9155
9157
|
id: t[e + zt],
|
|
@@ -9169,10 +9171,10 @@ function $l(t, e, n) {
|
|
|
9169
9171
|
point_count_abbreviated: s
|
|
9170
9172
|
});
|
|
9171
9173
|
}
|
|
9172
|
-
function
|
|
9174
|
+
function Sn(t) {
|
|
9173
9175
|
return t / 360 + 0.5;
|
|
9174
9176
|
}
|
|
9175
|
-
function
|
|
9177
|
+
function wn(t) {
|
|
9176
9178
|
const e = Math.sin(t * Math.PI / 180), n = 0.5 - 0.25 * Math.log((1 + e) / (1 - e)) / Math.PI;
|
|
9177
9179
|
return n < 0 ? 0 : n > 1 ? 1 : n;
|
|
9178
9180
|
}
|
|
@@ -9288,7 +9290,7 @@ class Q0 extends Y0 {
|
|
|
9288
9290
|
let n = !1, r = e.map.getZoom();
|
|
9289
9291
|
Ir(r), r = Math.round(r);
|
|
9290
9292
|
const s = { zoom: r };
|
|
9291
|
-
if (!
|
|
9293
|
+
if (!fi(e.markers, this.markers)) {
|
|
9292
9294
|
n = !0, this.markers = [...e.markers];
|
|
9293
9295
|
const o = this.markers.map((i) => {
|
|
9294
9296
|
const a = ut.getPosition(i);
|
|
@@ -9300,7 +9302,7 @@ class Q0 extends Y0 {
|
|
|
9300
9302
|
});
|
|
9301
9303
|
this.superCluster.load(o);
|
|
9302
9304
|
}
|
|
9303
|
-
return n || (this.state.zoom <= this.maxZoom || s.zoom <= this.maxZoom) && (n = !
|
|
9305
|
+
return n || (this.state.zoom <= this.maxZoom || s.zoom <= this.maxZoom) && (n = !fi(this.state, s)), this.state = s, e.markers.length === 0 ? (this.clusters = [], { clusters: this.clusters, changed: n }) : (n && (this.clusters = this.cluster(e)), { clusters: this.clusters, changed: n });
|
|
9304
9306
|
}
|
|
9305
9307
|
cluster({ map: e }) {
|
|
9306
9308
|
const n = e.getZoom();
|
|
@@ -9408,9 +9410,9 @@ function nv(t, e) {
|
|
|
9408
9410
|
for (let n in e.prototype)
|
|
9409
9411
|
t.prototype[n] = e.prototype[n];
|
|
9410
9412
|
}
|
|
9411
|
-
class
|
|
9413
|
+
class ws {
|
|
9412
9414
|
constructor() {
|
|
9413
|
-
nv(
|
|
9415
|
+
nv(ws, google.maps.OverlayView);
|
|
9414
9416
|
}
|
|
9415
9417
|
}
|
|
9416
9418
|
var ie;
|
|
@@ -9420,7 +9422,7 @@ var ie;
|
|
|
9420
9422
|
const rv = (t, e, n) => {
|
|
9421
9423
|
e.bounds && n.fitBounds(e.bounds);
|
|
9422
9424
|
};
|
|
9423
|
-
class sv extends
|
|
9425
|
+
class sv extends ws {
|
|
9424
9426
|
constructor({ map: e, markers: n = [], algorithmOptions: r = {}, algorithm: s = new Q0(r), renderer: o = new ev(), onClusterClick: i = rv }) {
|
|
9425
9427
|
super(), this.map = null, this.idleListener = null, this.markers = [...n], this.clusters = [], this.algorithm = s, this.renderer = o, this.onClusterClick = i, e && this.setMap(e);
|
|
9426
9428
|
}
|
|
@@ -9527,34 +9529,34 @@ function av({
|
|
|
9527
9529
|
N(() => {
|
|
9528
9530
|
if (!n) return;
|
|
9529
9531
|
const p = () => {
|
|
9530
|
-
var
|
|
9531
|
-
u.current != null && (cancelAnimationFrame(u.current), u.current = null), (
|
|
9532
|
+
var S, x;
|
|
9533
|
+
u.current != null && (cancelAnimationFrame(u.current), u.current = null), (S = i.current) == null || S.clearMarkers(), (x = i.current) == null || x.setMap(null), i.current = null, o.current.forEach((E) => E.setMap(null)), o.current = [], a.current.clear(), c(/* @__PURE__ */ new Set());
|
|
9532
9534
|
};
|
|
9533
9535
|
if (h.length === 0) {
|
|
9534
9536
|
p();
|
|
9535
9537
|
return;
|
|
9536
9538
|
}
|
|
9537
|
-
o.current = h.map((
|
|
9538
|
-
const
|
|
9539
|
-
position:
|
|
9540
|
-
title:
|
|
9539
|
+
o.current = h.map((S) => {
|
|
9540
|
+
const x = new google.maps.Marker({
|
|
9541
|
+
position: S.coords,
|
|
9542
|
+
title: S.title || "",
|
|
9541
9543
|
opacity: 0,
|
|
9542
9544
|
clickable: !1,
|
|
9543
9545
|
zIndex: f.NATIVE
|
|
9544
9546
|
});
|
|
9545
|
-
return a.current.set(
|
|
9547
|
+
return a.current.set(x, S.id), x;
|
|
9546
9548
|
});
|
|
9547
9549
|
const m = {
|
|
9548
|
-
render({ count:
|
|
9550
|
+
render({ count: S, position: x }, E, T) {
|
|
9549
9551
|
var nt, P;
|
|
9550
|
-
const L = Math.max(10, ((P = (nt = E == null ? void 0 : E.clusters) == null ? void 0 : nt.markers) == null ? void 0 : P.mean) ?? 0), A = document.querySelector("#dyn-locator") || document.documentElement, V =
|
|
9552
|
+
const L = Math.max(10, ((P = (nt = E == null ? void 0 : E.clusters) == null ? void 0 : nt.markers) == null ? void 0 : P.mean) ?? 0), A = document.querySelector("#dyn-locator") || document.documentElement, V = S > L ? getComputedStyle(A).getPropertyValue("--dyn-locator__high-density-cluster-color").trim() || "#ff0000" : getComputedStyle(A).getPropertyValue("--dyn-locator__low-density-cluster-color").trim() || "#0000ff", H = S > L ? getComputedStyle(A).getPropertyValue("--dyn-locator__high-density-cluster-text-color").trim() || "#fff" : getComputedStyle(A).getPropertyValue("--dyn-locator__low-density-cluster-text-color").trim() || "#fff";
|
|
9551
9553
|
console.log({ clusterColor: V, clusterTextColor: H });
|
|
9552
9554
|
const lt = `<svg fill="${V}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">
|
|
9553
9555
|
<circle cx="120" cy="120" opacity=".6" r="70" />
|
|
9554
9556
|
<circle cx="120" cy="120" opacity=".3" r="90" />
|
|
9555
9557
|
<circle cx="120" cy="120" opacity=".2" r="110" />
|
|
9556
|
-
<text x="50%" y="50%" style="fill:${H}" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">${
|
|
9557
|
-
</svg>`, ct = `Cluster of ${
|
|
9558
|
+
<text x="50%" y="50%" style="fill:${H}" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">${S}</text>
|
|
9559
|
+
</svg>`, ct = `Cluster of ${S} markers`, I = Number(google.maps.Marker.MAX_ZINDEX) + S;
|
|
9558
9560
|
if (ut.isAdvancedMarkerAvailable(T)) {
|
|
9559
9561
|
const B = new DOMParser().parseFromString(
|
|
9560
9562
|
lt,
|
|
@@ -9562,14 +9564,14 @@ function av({
|
|
|
9562
9564
|
).documentElement;
|
|
9563
9565
|
return B.setAttribute("transform", "translate(0 25)"), new google.maps.marker.AdvancedMarkerElement({
|
|
9564
9566
|
map: T,
|
|
9565
|
-
position:
|
|
9567
|
+
position: x,
|
|
9566
9568
|
zIndex: I,
|
|
9567
9569
|
title: ct,
|
|
9568
9570
|
content: B
|
|
9569
9571
|
});
|
|
9570
9572
|
}
|
|
9571
9573
|
return new google.maps.Marker({
|
|
9572
|
-
position:
|
|
9574
|
+
position: x,
|
|
9573
9575
|
zIndex: I,
|
|
9574
9576
|
title: ct,
|
|
9575
9577
|
icon: {
|
|
@@ -9585,13 +9587,13 @@ function av({
|
|
|
9585
9587
|
renderer: m
|
|
9586
9588
|
});
|
|
9587
9589
|
const g = () => {
|
|
9588
|
-
const
|
|
9589
|
-
for (const
|
|
9590
|
-
if (
|
|
9591
|
-
const E = a.current.get(
|
|
9592
|
-
E &&
|
|
9590
|
+
const S = /* @__PURE__ */ new Set();
|
|
9591
|
+
for (const x of o.current)
|
|
9592
|
+
if (x.getMap()) {
|
|
9593
|
+
const E = a.current.get(x);
|
|
9594
|
+
E && S.add(E);
|
|
9593
9595
|
}
|
|
9594
|
-
c(
|
|
9596
|
+
c(S);
|
|
9595
9597
|
}, y = () => {
|
|
9596
9598
|
u.current != null && cancelAnimationFrame(u.current), u.current = requestAnimationFrame(
|
|
9597
9599
|
g
|
|
@@ -9599,12 +9601,12 @@ function av({
|
|
|
9599
9601
|
};
|
|
9600
9602
|
y();
|
|
9601
9603
|
const v = n.addListener("zoom_changed", y), C = n.addListener("dragend", y);
|
|
9602
|
-
let
|
|
9603
|
-
return i.current && (
|
|
9604
|
+
let w;
|
|
9605
|
+
return i.current && (w = i.current.addListener(
|
|
9604
9606
|
"clusteringend",
|
|
9605
9607
|
y
|
|
9606
9608
|
)), () => {
|
|
9607
|
-
v == null || v.remove(), C == null || C.remove(),
|
|
9609
|
+
v == null || v.remove(), C == null || C.remove(), w == null || w.remove(), p();
|
|
9608
9610
|
};
|
|
9609
9611
|
}, [n, h]);
|
|
9610
9612
|
const f = {
|
|
@@ -9613,7 +9615,7 @@ function av({
|
|
|
9613
9615
|
};
|
|
9614
9616
|
return /* @__PURE__ */ D(qe, { children: [
|
|
9615
9617
|
d.map((p) => /* @__PURE__ */ b(
|
|
9616
|
-
|
|
9618
|
+
Cs,
|
|
9617
9619
|
{
|
|
9618
9620
|
position: p.coords,
|
|
9619
9621
|
icon: {
|
|
@@ -9640,8 +9642,8 @@ function av({
|
|
|
9640
9642
|
address: y = "No Address",
|
|
9641
9643
|
coords: v = { lat: 0, lng: 0 },
|
|
9642
9644
|
actions: C = [],
|
|
9643
|
-
markerType:
|
|
9644
|
-
...
|
|
9645
|
+
markerType: w = "default",
|
|
9646
|
+
...S
|
|
9645
9647
|
} = p;
|
|
9646
9648
|
return /* @__PURE__ */ b(
|
|
9647
9649
|
Il,
|
|
@@ -9651,10 +9653,10 @@ function av({
|
|
|
9651
9653
|
address: y,
|
|
9652
9654
|
coords: v,
|
|
9653
9655
|
actions: C,
|
|
9654
|
-
markerType:
|
|
9656
|
+
markerType: w,
|
|
9655
9657
|
onRightButtonClick: () => e(p),
|
|
9656
9658
|
onClick: () => r(m),
|
|
9657
|
-
...
|
|
9659
|
+
...S
|
|
9658
9660
|
},
|
|
9659
9661
|
m
|
|
9660
9662
|
);
|
|
@@ -9670,15 +9672,15 @@ function cv(t) {
|
|
|
9670
9672
|
function Dv() {
|
|
9671
9673
|
var Y;
|
|
9672
9674
|
const [t, e] = X({
|
|
9673
|
-
zoom:
|
|
9675
|
+
zoom: Zo
|
|
9674
9676
|
}), [n, r] = X(!1), [s, o] = X(
|
|
9675
9677
|
"inactive"
|
|
9676
9678
|
/* INACTIVE */
|
|
9677
|
-
), i = q(""), a =
|
|
9679
|
+
), i = q(""), a = bs(), { request: l, loading: c } = Xe(xe.FIND), u = M((_) => _.mapId), d = M((_) => _.featureFlags), { labels: h } = M((_) => _.localizationConfig), f = M((_) => _.locations), p = M((_) => _.setLocations), m = M((_) => _.targetLocation), g = M(
|
|
9678
9680
|
(_) => _.clearTargetLocation
|
|
9679
|
-
), y = M((_) => _.mapDetail), v = M((_) => _.setMapDetail), C = M((_) => _.isFullscreen),
|
|
9681
|
+
), y = M((_) => _.mapDetail), v = M((_) => _.setMapDetail), C = M((_) => _.isFullscreen), w = M((_) => _.setFullscreen), S = M(
|
|
9680
9682
|
(_) => _.isLocationListExpanded
|
|
9681
|
-
),
|
|
9683
|
+
), x = M(
|
|
9682
9684
|
(_) => _.setIsLocationListExpanded
|
|
9683
9685
|
), E = M((_) => _.shouldRefetch), T = M((_) => _.setShouldRefetch), L = M(
|
|
9684
9686
|
(_) => _.setSelectedLocation
|
|
@@ -9707,9 +9709,9 @@ function Dv() {
|
|
|
9707
9709
|
o(
|
|
9708
9710
|
"inactive"
|
|
9709
9711
|
/* INACTIVE */
|
|
9710
|
-
), L(""),
|
|
9712
|
+
), L(""), x(!1), v(qt.CLUSTER), e({
|
|
9711
9713
|
center: Hp,
|
|
9712
|
-
zoom: (A == null ? void 0 : A.INITIAL_ZOOM_LEVEL) ||
|
|
9714
|
+
zoom: (A == null ? void 0 : A.INITIAL_ZOOM_LEVEL) || Zo
|
|
9713
9715
|
}), T(!0);
|
|
9714
9716
|
}
|
|
9715
9717
|
const P = vt(async () => {
|
|
@@ -9746,12 +9748,12 @@ function Dv() {
|
|
|
9746
9748
|
p
|
|
9747
9749
|
]);
|
|
9748
9750
|
function R(_) {
|
|
9749
|
-
e({ center: _.coords, zoom: 20 }),
|
|
9751
|
+
e({ center: _.coords, zoom: 20 }), S || x(!0);
|
|
9750
9752
|
}
|
|
9751
9753
|
function B(_) {
|
|
9752
9754
|
if (lv(_))
|
|
9753
9755
|
return /* @__PURE__ */ b(
|
|
9754
|
-
|
|
9756
|
+
Cs,
|
|
9755
9757
|
{
|
|
9756
9758
|
position: _.coords,
|
|
9757
9759
|
icon: {
|
|
@@ -9823,7 +9825,7 @@ function Dv() {
|
|
|
9823
9825
|
"dyn-locator__map__fullscreen-button"
|
|
9824
9826
|
),
|
|
9825
9827
|
variant: "negative",
|
|
9826
|
-
onClick: () =>
|
|
9828
|
+
onClick: () => w == null ? void 0 : w(!C),
|
|
9827
9829
|
children: /* @__PURE__ */ b(Et, { size: "M", icon: C ? "Close" : "Expand" })
|
|
9828
9830
|
}
|
|
9829
9831
|
) : null,
|
|
@@ -10016,11 +10018,11 @@ function zl({
|
|
|
10016
10018
|
);
|
|
10017
10019
|
}
|
|
10018
10020
|
zl.displayName = jl;
|
|
10019
|
-
const bv = J(zl), Cv = "_root_1vbtg_7",
|
|
10021
|
+
const bv = J(zl), Cv = "_root_1vbtg_7", Sv = "_input_1vbtg_7", wv = "_clearButton_1vbtg_10", xv = "_sideOrnament_1vbtg_13", _v = "_predictionsContainer_1vbtg_18", Tv = "_predictionItem_1vbtg_29", Ev = "_loadingItem_1vbtg_47", re = {
|
|
10020
10022
|
root: Cv,
|
|
10021
|
-
input:
|
|
10022
|
-
clearButton:
|
|
10023
|
-
sideOrnament:
|
|
10023
|
+
input: Sv,
|
|
10024
|
+
clearButton: wv,
|
|
10025
|
+
sideOrnament: xv,
|
|
10024
10026
|
predictionsContainer: _v,
|
|
10025
10027
|
predictionItem: Tv,
|
|
10026
10028
|
loadingItem: Ev
|
|
@@ -10030,16 +10032,16 @@ function Rv() {
|
|
|
10030
10032
|
request: g,
|
|
10031
10033
|
loading: y
|
|
10032
10034
|
// error: findLocationsNearbyErrors,
|
|
10033
|
-
} = Xe(
|
|
10035
|
+
} = Xe(xe.FIND), v = In("places"), C = In("geocoding"), w = dn(), S = q(null), x = q(
|
|
10034
10036
|
null
|
|
10035
10037
|
), E = q(null), T = q(null);
|
|
10036
10038
|
N(() => {
|
|
10037
10039
|
C && (E.current || (E.current = new C.Geocoder()));
|
|
10038
10040
|
}, [C]), N(() => {
|
|
10039
|
-
v && (
|
|
10041
|
+
v && (S.current || (S.current = new v.AutocompleteService()), T.current || (T.current = new v.AutocompleteSessionToken()));
|
|
10040
10042
|
}, [v]), N(() => {
|
|
10041
|
-
!v || !
|
|
10042
|
-
}, [v,
|
|
10043
|
+
!v || !w || x.current || (x.current = new v.PlacesService(w));
|
|
10044
|
+
}, [v, w]);
|
|
10043
10045
|
const L = vt(
|
|
10044
10046
|
Zp(async (P) => {
|
|
10045
10047
|
var R;
|
|
@@ -10049,11 +10051,11 @@ function Rv() {
|
|
|
10049
10051
|
}
|
|
10050
10052
|
a(!0);
|
|
10051
10053
|
try {
|
|
10052
|
-
if (!v || !
|
|
10054
|
+
if (!v || !S.current)
|
|
10053
10055
|
throw new Error(
|
|
10054
10056
|
"Places library or Autocomplete Service not available"
|
|
10055
10057
|
);
|
|
10056
|
-
const B = await
|
|
10058
|
+
const B = await S.current.getPlacePredictions({
|
|
10057
10059
|
input: P,
|
|
10058
10060
|
...T.current ? { sessionToken: T.current } : {}
|
|
10059
10061
|
});
|
|
@@ -10078,18 +10080,18 @@ function Rv() {
|
|
|
10078
10080
|
var R, B, Y, _, rt;
|
|
10079
10081
|
e(P.description), o(!1);
|
|
10080
10082
|
try {
|
|
10081
|
-
if (!v || !
|
|
10083
|
+
if (!v || !x.current)
|
|
10082
10084
|
throw new Error("Places library or Places Service not available");
|
|
10083
10085
|
const j = await new Promise(
|
|
10084
10086
|
(Q, It) => {
|
|
10085
|
-
|
|
10087
|
+
x.current.getDetails(
|
|
10086
10088
|
{
|
|
10087
10089
|
placeId: P.place_id,
|
|
10088
10090
|
fields: ["geometry", "address_components", "formatted_address"],
|
|
10089
10091
|
...T.current ? { sessionToken: T.current } : {}
|
|
10090
10092
|
},
|
|
10091
10093
|
(Vt, te) => {
|
|
10092
|
-
te === v.PlacesServiceStatus.OK && Vt ? (Q(Vt), en.track(
|
|
10094
|
+
te === v.PlacesServiceStatus.OK && Vt ? (Q(Vt), en.track(St.AUTOCOMPLETE_ITEM_SELECT, {
|
|
10093
10095
|
label: P.description,
|
|
10094
10096
|
...Yp(Vt)
|
|
10095
10097
|
})) : It(
|
|
@@ -10140,7 +10142,7 @@ function Rv() {
|
|
|
10140
10142
|
lat: R.coords.latitude,
|
|
10141
10143
|
lng: R.coords.longitude
|
|
10142
10144
|
};
|
|
10143
|
-
if (await I(B), !C || !(E != null && E.current) || !
|
|
10145
|
+
if (await I(B), !C || !(E != null && E.current) || !w)
|
|
10144
10146
|
throw new Error("Geocoding library or Geocoder not available");
|
|
10145
10147
|
const Y = await new Promise(
|
|
10146
10148
|
(_, rt) => {
|
|
@@ -10211,7 +10213,7 @@ function Rv() {
|
|
|
10211
10213
|
)
|
|
10212
10214
|
}
|
|
10213
10215
|
),
|
|
10214
|
-
/* @__PURE__ */ b(
|
|
10216
|
+
/* @__PURE__ */ b(vs, { show: nt, children: /* @__PURE__ */ b(We, { size: "medium" }) })
|
|
10215
10217
|
] }) : null;
|
|
10216
10218
|
}
|
|
10217
10219
|
export {
|
|
@@ -10219,7 +10221,7 @@ export {
|
|
|
10219
10221
|
ey as L,
|
|
10220
10222
|
Dv as M,
|
|
10221
10223
|
Rv as S,
|
|
10222
|
-
|
|
10224
|
+
St as T,
|
|
10223
10225
|
en as t
|
|
10224
10226
|
};
|
|
10225
|
-
//# sourceMappingURL=index-
|
|
10227
|
+
//# sourceMappingURL=index-7kTwTYmp.js.map
|