@mapsindoors/map-template 1.90.0 → 1.90.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/{GoogleMapsMap-440ae0aa.mjs → GoogleMapsMap-bcdb9da1.mjs} +2 -2
- package/dist/{MapboxMap-f4e7f42d.mjs → MapboxMap-cdeb43d4.mjs} +2 -2
- package/dist/{combo-box-item.entry-0439c8e8.mjs → combo-box-item.entry-83b62c1a.mjs} +2 -2
- package/dist/mapsindoors-react.es.js +1 -1
- package/dist/mapsindoors-react.umd.js +39 -39
- package/dist/mapsindoors-webcomponent.es.js +2041 -2037
- package/dist/mapsindoors-webcomponent.umd.js +37 -37
- package/dist/{mi-card_2.entry-7507e5db.mjs → mi-card_2.entry-98e24fc1.mjs} +2 -2
- package/dist/{mi-chip.entry-feb51f2a.mjs → mi-chip.entry-0e024d93.mjs} +2 -2
- package/dist/{mi-column.entry-376362d8.mjs → mi-column.entry-ea24ed19.mjs} +2 -2
- package/dist/{mi-combo-box.entry-613ea41e.mjs → mi-combo-box.entry-70920c70.mjs} +2 -2
- package/dist/{mi-data-table.entry-133320eb.mjs → mi-data-table.entry-f744b2b0.mjs} +2 -2
- package/dist/{mi-distance_2.entry-b65d5fb6.mjs → mi-distance_2.entry-7a927902.mjs} +2 -2
- package/dist/{mi-dropdown-item.entry-872939fd.mjs → mi-dropdown-item.entry-375d34be.mjs} +2 -2
- package/dist/{mi-dropdown.entry-e88f60a7.mjs → mi-dropdown.entry-09b573ed.mjs} +2 -2
- package/dist/{mi-floor-selector.entry-18835ce9.mjs → mi-floor-selector.entry-554875da.mjs} +2 -2
- package/dist/{mi-keyboard.entry-c21c13cb.mjs → mi-keyboard.entry-b52f9f9a.mjs} +2 -2
- package/dist/{mi-list-item-category.entry-2ffc3b1a.mjs → mi-list-item-category.entry-7afd1c89.mjs} +2 -2
- package/dist/{mi-list-item-location.entry-907bba69.mjs → mi-list-item-location.entry-39970cf2.mjs} +2 -2
- package/dist/{mi-list.entry-0310d7d7.mjs → mi-list.entry-40e9a8be.mjs} +2 -2
- package/dist/{mi-location-booking.entry-f9e864c4.mjs → mi-location-booking.entry-d0482a06.mjs} +2 -2
- package/dist/{mi-location-info.entry-2d453975.mjs → mi-location-info.entry-6155ea6f.mjs} +2 -2
- package/dist/{mi-map-googlemaps.entry-8144d7b8.mjs → mi-map-googlemaps.entry-9cb43f9c.mjs} +2 -2
- package/dist/{mi-map-mapbox.entry-3c75116f.mjs → mi-map-mapbox.entry-e4a62317.mjs} +2 -2
- package/dist/{mi-metric-card.entry-52755baf.mjs → mi-metric-card.entry-7952cdc3.mjs} +2 -2
- package/dist/{mi-my-position.entry-80244ce9.mjs → mi-my-position.entry-481a9fa2.mjs} +2 -2
- package/dist/{mi-notification.entry-76dd57e6.mjs → mi-notification.entry-2a9b40c6.mjs} +2 -2
- package/dist/{mi-route-instructions-heading.entry-98e2aeca.mjs → mi-route-instructions-heading.entry-5afa50d6.mjs} +2 -2
- package/dist/{mi-route-instructions-maneuver-legacy.entry-58ca8249.mjs → mi-route-instructions-maneuver-legacy.entry-92303487.mjs} +2 -2
- package/dist/{mi-route-instructions-maneuver.entry-1fcc1904.mjs → mi-route-instructions-maneuver.entry-80edfa32.mjs} +2 -2
- package/dist/{mi-route-instructions-step-legacy.entry-62216228.mjs → mi-route-instructions-step-legacy.entry-fd9a1683.mjs} +2 -2
- package/dist/{mi-route-instructions-step.entry-3b387d6d.mjs → mi-route-instructions-step.entry-9130ff01.mjs} +2 -2
- package/dist/{mi-route-instructions.entry-f2bfa9b3.mjs → mi-route-instructions.entry-0c3cc55d.mjs} +2 -2
- package/dist/{mi-scroll-buttons.entry-4db35d18.mjs → mi-scroll-buttons.entry-8b58568e.mjs} +2 -2
- package/dist/{mi-search.entry-c8922c71.mjs → mi-search.entry-cf951261.mjs} +2 -2
- package/dist/{mi-share-sms.entry-be14af40.mjs → mi-share-sms.entry-2677405d.mjs} +2 -2
- package/dist/{mi-step-switcher.entry-c5e13aab.mjs → mi-step-switcher.entry-88c1d052.mjs} +2 -2
- package/dist/{mi-tab-panel.entry-efcde8d8.mjs → mi-tab-panel.entry-fdccecad.mjs} +2 -2
- package/dist/{mi-tab.entry-d825cb3c.mjs → mi-tab.entry-ef18c2cd.mjs} +2 -2
- package/dist/{mi-tabs.entry-c81143d6.mjs → mi-tabs.entry-d223ff6e.mjs} +2 -2
- package/dist/{mi-time.entry-89470b8c.mjs → mi-time.entry-6f958c69.mjs} +2 -2
- package/dist/{reactcomponent-757cc2ae.mjs → reactcomponent-c954508d.mjs} +573 -569
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as re from "react";
|
|
2
|
-
import Pe, { createContext as ql, useContext as Zl, useState as ee, useRef as ge, useEffect as D, useCallback as Kt, memo as Ql, useMemo as vn, lazy as Xl, Suspense as Ca, forwardRef as
|
|
2
|
+
import Pe, { createContext as ql, useContext as Zl, useState as ee, useRef as ge, useEffect as D, useCallback as Kt, memo as Ql, useMemo as vn, lazy as Xl, Suspense as Ca, forwardRef as yo, useImperativeHandle as So, cloneElement as Jl, useLayoutEffect as Sf, Fragment as bf } from "react";
|
|
3
3
|
import cr, { createPortal as Sr } from "react-dom";
|
|
4
4
|
var wf = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5
5
|
function ec(e) {
|
|
@@ -117,7 +117,7 @@ function Ef() {
|
|
|
117
117
|
function Y(_) {
|
|
118
118
|
return _.displayName || "Context";
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function P(_) {
|
|
121
121
|
if (_ == null)
|
|
122
122
|
return null;
|
|
123
123
|
if (typeof _.tag == "number" && h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof _ == "function")
|
|
@@ -150,11 +150,11 @@ function Ef() {
|
|
|
150
150
|
return F(_, _.render, "ForwardRef");
|
|
151
151
|
case f:
|
|
152
152
|
var be = _.displayName || null;
|
|
153
|
-
return be !== null ? be :
|
|
153
|
+
return be !== null ? be : P(_.type) || "Memo";
|
|
154
154
|
case d: {
|
|
155
155
|
var Oe = _, De = Oe._payload, ke = Oe._init;
|
|
156
156
|
try {
|
|
157
|
-
return
|
|
157
|
+
return P(ke(De));
|
|
158
158
|
} catch {
|
|
159
159
|
return null;
|
|
160
160
|
}
|
|
@@ -224,7 +224,7 @@ function Ef() {
|
|
|
224
224
|
fe < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
-
var
|
|
227
|
+
var A = R.ReactCurrentDispatcher, V;
|
|
228
228
|
function W(_, Z, le) {
|
|
229
229
|
{
|
|
230
230
|
if (V === void 0)
|
|
@@ -256,7 +256,7 @@ function Ef() {
|
|
|
256
256
|
var Oe = Error.prepareStackTrace;
|
|
257
257
|
Error.prepareStackTrace = void 0;
|
|
258
258
|
var De;
|
|
259
|
-
De =
|
|
259
|
+
De = A.current, A.current = null, j();
|
|
260
260
|
try {
|
|
261
261
|
if (Z) {
|
|
262
262
|
var ke = function() {
|
|
@@ -309,10 +309,10 @@ function Ef() {
|
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
} finally {
|
|
312
|
-
z = !1,
|
|
312
|
+
z = !1, A.current = De, B(), Error.prepareStackTrace = Oe;
|
|
313
313
|
}
|
|
314
|
-
var en = _ ? _.displayName || _.name : "",
|
|
315
|
-
return typeof _ == "function" && J.set(_,
|
|
314
|
+
var en = _ ? _.displayName || _.name : "", Br = en ? W(en) : "";
|
|
315
|
+
return typeof _ == "function" && J.set(_, Br), Br;
|
|
316
316
|
}
|
|
317
317
|
function Se(_, Z, le) {
|
|
318
318
|
return K(_, !1);
|
|
@@ -350,13 +350,13 @@ function Ef() {
|
|
|
350
350
|
}
|
|
351
351
|
return "";
|
|
352
352
|
}
|
|
353
|
-
var Fe = Object.prototype.hasOwnProperty, Ne = {},
|
|
354
|
-
function
|
|
353
|
+
var Fe = Object.prototype.hasOwnProperty, Ne = {}, Ze = R.ReactDebugCurrentFrame;
|
|
354
|
+
function Qe(_) {
|
|
355
355
|
if (_) {
|
|
356
356
|
var Z = _._owner, le = Ke(_.type, _._source, Z ? Z.type : null);
|
|
357
|
-
|
|
357
|
+
Ze.setExtraStackFrame(le);
|
|
358
358
|
} else
|
|
359
|
-
|
|
359
|
+
Ze.setExtraStackFrame(null);
|
|
360
360
|
}
|
|
361
361
|
function dt(_, Z, le, be, Oe) {
|
|
362
362
|
{
|
|
@@ -373,7 +373,7 @@ function Ef() {
|
|
|
373
373
|
} catch (Ae) {
|
|
374
374
|
Ee = Ae;
|
|
375
375
|
}
|
|
376
|
-
Ee && !(Ee instanceof Error) && (
|
|
376
|
+
Ee && !(Ee instanceof Error) && (Qe(Oe), h("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", be || "React class", le, ke, typeof Ee), Qe(null)), Ee instanceof Error && !(Ee.message in Ne) && (Ne[Ee.message] = !0, Qe(Oe), h("Failed %s type: %s", le, Ee.message), Qe(null));
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
379
|
}
|
|
@@ -426,8 +426,8 @@ function Ef() {
|
|
|
426
426
|
}
|
|
427
427
|
function er(_, Z) {
|
|
428
428
|
if (typeof _.ref == "string" && Q.current && Z && Q.current.stateNode !== Z) {
|
|
429
|
-
var le =
|
|
430
|
-
Ut[le] || (h('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',
|
|
429
|
+
var le = P(Q.current.type);
|
|
430
|
+
Ut[le] || (h('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', P(Q.current.type), _.ref), Ut[le] = !0);
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
433
|
function I(_, Z) {
|
|
@@ -515,7 +515,7 @@ function Ef() {
|
|
|
515
515
|
function xe() {
|
|
516
516
|
{
|
|
517
517
|
if (se.current) {
|
|
518
|
-
var _ =
|
|
518
|
+
var _ = P(se.current.type);
|
|
519
519
|
if (_)
|
|
520
520
|
return `
|
|
521
521
|
|
|
@@ -536,7 +536,7 @@ Check your code at ` + Z + ":" + le + ".";
|
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
var rt = {};
|
|
539
|
-
function
|
|
539
|
+
function Xe(_) {
|
|
540
540
|
{
|
|
541
541
|
var Z = xe();
|
|
542
542
|
if (!Z) {
|
|
@@ -553,12 +553,12 @@ Check the top-level render call using <` + le + ">.");
|
|
|
553
553
|
if (!_._store || _._store.validated || _.key != null)
|
|
554
554
|
return;
|
|
555
555
|
_._store.validated = !0;
|
|
556
|
-
var le =
|
|
556
|
+
var le = Xe(Z);
|
|
557
557
|
if (rt[le])
|
|
558
558
|
return;
|
|
559
559
|
rt[le] = !0;
|
|
560
560
|
var be = "";
|
|
561
|
-
_ && _._owner && _._owner !== se.current && (be = " It was passed a child from " +
|
|
561
|
+
_ && _._owner && _._owner !== se.current && (be = " It was passed a child from " + P(_._owner.type) + "."), me(_), h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', le, be), me(null);
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
564
|
function ht(_, Z) {
|
|
@@ -595,11 +595,11 @@ Check the top-level render call using <` + le + ">.");
|
|
|
595
595
|
else
|
|
596
596
|
return;
|
|
597
597
|
if (le) {
|
|
598
|
-
var be =
|
|
598
|
+
var be = P(Z);
|
|
599
599
|
dt(le, _.props, "prop", be, _);
|
|
600
600
|
} else if (Z.PropTypes !== void 0 && !ye) {
|
|
601
601
|
ye = !0;
|
|
602
|
-
var Oe =
|
|
602
|
+
var Oe = P(Z);
|
|
603
603
|
h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Oe || "Unknown");
|
|
604
604
|
}
|
|
605
605
|
typeof Z.getDefaultProps == "function" && !Z.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -626,7 +626,7 @@ Check the top-level render call using <` + le + ">.");
|
|
|
626
626
|
var it = Ue(Oe);
|
|
627
627
|
it ? Ee += it : Ee += xe();
|
|
628
628
|
var Ae;
|
|
629
|
-
_ === null ? Ae = "null" : Le(_) ? Ae = "array" : _ !== void 0 && _.$$typeof === t ? (Ae = "<" + (
|
|
629
|
+
_ === null ? Ae = "null" : Le(_) ? Ae = "array" : _ !== void 0 && _.$$typeof === t ? (Ae = "<" + (P(_.type) || "Unknown") + " />", Ee = " Did you accidentally export a JSX literal instead of a component?") : Ae = typeof _, h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ae, Ee);
|
|
630
630
|
}
|
|
631
631
|
var Ye = ae(_, Z, le, Oe, De);
|
|
632
632
|
if (Ye == null)
|
|
@@ -687,7 +687,7 @@ function Te(e, t, n) {
|
|
|
687
687
|
writable: !0
|
|
688
688
|
}) : e[t] = n, e;
|
|
689
689
|
}
|
|
690
|
-
class
|
|
690
|
+
class bo {
|
|
691
691
|
getValue() {
|
|
692
692
|
throw Re("BaseLoadable");
|
|
693
693
|
}
|
|
@@ -719,7 +719,7 @@ class So {
|
|
|
719
719
|
throw Re("BaseLoadable");
|
|
720
720
|
}
|
|
721
721
|
}
|
|
722
|
-
class Lf extends
|
|
722
|
+
class Lf extends bo {
|
|
723
723
|
constructor(t) {
|
|
724
724
|
super(), Te(this, "state", "hasValue"), Te(this, "contents", void 0), this.contents = t;
|
|
725
725
|
}
|
|
@@ -749,11 +749,11 @@ class Lf extends So {
|
|
|
749
749
|
// errors and subsequent retries will be handled in 'loading' case
|
|
750
750
|
// $FlowFixMe[prop-missing]
|
|
751
751
|
Sn(n.next(() => this.map(t)))
|
|
752
|
-
) :
|
|
752
|
+
) : wo(n);
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
755
|
}
|
|
756
|
-
class Nf extends
|
|
756
|
+
class Nf extends bo {
|
|
757
757
|
constructor(t) {
|
|
758
758
|
super(), Te(this, "state", "hasError"), Te(this, "contents", void 0), this.contents = t;
|
|
759
759
|
}
|
|
@@ -777,7 +777,7 @@ class Nf extends So {
|
|
|
777
777
|
return this;
|
|
778
778
|
}
|
|
779
779
|
}
|
|
780
|
-
class tc extends
|
|
780
|
+
class tc extends bo {
|
|
781
781
|
constructor(t) {
|
|
782
782
|
super(), Te(this, "state", "loading"), Te(this, "contents", void 0), this.contents = t;
|
|
783
783
|
}
|
|
@@ -822,7 +822,7 @@ class tc extends So {
|
|
|
822
822
|
function br(e) {
|
|
823
823
|
return Object.freeze(new Lf(e));
|
|
824
824
|
}
|
|
825
|
-
function
|
|
825
|
+
function wo(e) {
|
|
826
826
|
return Object.freeze(new Nf(e));
|
|
827
827
|
}
|
|
828
828
|
function Sn(e) {
|
|
@@ -833,7 +833,7 @@ function nc() {
|
|
|
833
833
|
})));
|
|
834
834
|
}
|
|
835
835
|
function kf(e) {
|
|
836
|
-
return e.every((t) => t.state === "hasValue") ? br(e.map((t) => t.contents)) : e.some((t) => t.state === "hasError") ?
|
|
836
|
+
return e.every((t) => t.state === "hasValue") ? br(e.map((t) => t.contents)) : e.some((t) => t.state === "hasError") ? wo(Ge(e.find((t) => t.state === "hasError"), "Invalid loadable passed to loadableAll").contents) : Sn(Promise.all(e.map((t) => t.contents)));
|
|
837
837
|
}
|
|
838
838
|
function rc(e) {
|
|
839
839
|
const n = (Array.isArray(e) ? e : Object.getOwnPropertyNames(e).map((o) => e[o])).map((o) => Fn(o) ? o : He(o) ? Sn(o) : br(o)), r = kf(n);
|
|
@@ -854,11 +854,11 @@ function rc(e) {
|
|
|
854
854
|
);
|
|
855
855
|
}
|
|
856
856
|
function Fn(e) {
|
|
857
|
-
return e instanceof
|
|
857
|
+
return e instanceof bo;
|
|
858
858
|
}
|
|
859
859
|
const Af = {
|
|
860
860
|
of: (e) => He(e) ? Sn(e) : Fn(e) ? e : br(e),
|
|
861
|
-
error: (e) =>
|
|
861
|
+
error: (e) => wo(e),
|
|
862
862
|
// $FlowIssue[incompatible-return]
|
|
863
863
|
loading: () => nc(),
|
|
864
864
|
// $FlowIssue[unclear-type]
|
|
@@ -867,7 +867,7 @@ const Af = {
|
|
|
867
867
|
};
|
|
868
868
|
var Cn = {
|
|
869
869
|
loadableWithValue: br,
|
|
870
|
-
loadableWithError:
|
|
870
|
+
loadableWithError: wo,
|
|
871
871
|
loadableWithPromise: Sn,
|
|
872
872
|
loadableLoading: nc,
|
|
873
873
|
loadableAll: rc,
|
|
@@ -914,19 +914,19 @@ function Ff() {
|
|
|
914
914
|
}
|
|
915
915
|
Ff();
|
|
916
916
|
var qn = Hs;
|
|
917
|
-
function
|
|
917
|
+
function Co(e) {
|
|
918
918
|
return qn.RECOIL_GKS_ENABLED.has(e);
|
|
919
919
|
}
|
|
920
|
-
|
|
920
|
+
Co.setPass = (e) => {
|
|
921
921
|
qn.RECOIL_GKS_ENABLED.add(e);
|
|
922
922
|
};
|
|
923
|
-
|
|
923
|
+
Co.setFail = (e) => {
|
|
924
924
|
qn.RECOIL_GKS_ENABLED.delete(e);
|
|
925
925
|
};
|
|
926
|
-
|
|
926
|
+
Co.clear = () => {
|
|
927
927
|
qn.RECOIL_GKS_ENABLED.clear();
|
|
928
928
|
};
|
|
929
|
-
var ze =
|
|
929
|
+
var ze = Co;
|
|
930
930
|
function Uf(e, t, {
|
|
931
931
|
error: n
|
|
932
932
|
} = {}) {
|
|
@@ -1015,12 +1015,12 @@ class ic extends Si {
|
|
|
1015
1015
|
function Yf(e) {
|
|
1016
1016
|
return e instanceof sc || e instanceof ic;
|
|
1017
1017
|
}
|
|
1018
|
-
var
|
|
1018
|
+
var Eo = {
|
|
1019
1019
|
AbstractRecoilValue: Si,
|
|
1020
1020
|
RecoilState: sc,
|
|
1021
1021
|
RecoilValueReadOnly: ic,
|
|
1022
1022
|
isRecoilValue: Yf
|
|
1023
|
-
}, qf =
|
|
1023
|
+
}, qf = Eo.AbstractRecoilValue, Zf = Eo.RecoilState, Qf = Eo.RecoilValueReadOnly, Xf = Eo.isRecoilValue, bn = /* @__PURE__ */ Object.freeze({
|
|
1024
1024
|
__proto__: null,
|
|
1025
1025
|
AbstractRecoilValue: qf,
|
|
1026
1026
|
RecoilState: Zf,
|
|
@@ -1038,7 +1038,7 @@ function th(e, ...t) {
|
|
|
1038
1038
|
r.name = "Expectation Violation", console.error(r);
|
|
1039
1039
|
}
|
|
1040
1040
|
}
|
|
1041
|
-
var nh = th,
|
|
1041
|
+
var nh = th, Ro = nh;
|
|
1042
1042
|
function rh(e, t) {
|
|
1043
1043
|
return function* () {
|
|
1044
1044
|
let n = 0;
|
|
@@ -1046,7 +1046,7 @@ function rh(e, t) {
|
|
|
1046
1046
|
yield t(r, n++);
|
|
1047
1047
|
}();
|
|
1048
1048
|
}
|
|
1049
|
-
var
|
|
1049
|
+
var _o = rh;
|
|
1050
1050
|
const {
|
|
1051
1051
|
isFastRefreshEnabled: oh
|
|
1052
1052
|
} = Zn;
|
|
@@ -1054,14 +1054,14 @@ class ac {
|
|
|
1054
1054
|
}
|
|
1055
1055
|
const sh = new ac(), wn = /* @__PURE__ */ new Map(), bi = /* @__PURE__ */ new Map();
|
|
1056
1056
|
function ih(e) {
|
|
1057
|
-
return
|
|
1057
|
+
return _o(e, (t) => Ge(bi.get(t)));
|
|
1058
1058
|
}
|
|
1059
1059
|
function ah(e) {
|
|
1060
1060
|
if (wn.has(e)) {
|
|
1061
1061
|
const t = `Duplicate atom key "${e}". This is a FATAL ERROR in
|
|
1062
1062
|
production. But it is safe to ignore this warning if it occurred because of
|
|
1063
1063
|
hot module replacement.`;
|
|
1064
|
-
process.env.NODE_ENV !== "production" ? oh() ||
|
|
1064
|
+
process.env.NODE_ENV !== "production" ? oh() || Ro(t, "recoil") : console.warn(t);
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
1067
|
function lh(e) {
|
|
@@ -1080,7 +1080,7 @@ function ch(e) {
|
|
|
1080
1080
|
function uh(e) {
|
|
1081
1081
|
return wn.get(e);
|
|
1082
1082
|
}
|
|
1083
|
-
const
|
|
1083
|
+
const Jr = /* @__PURE__ */ new Map();
|
|
1084
1084
|
function dh(e) {
|
|
1085
1085
|
var t;
|
|
1086
1086
|
if (!ze("recoil_memory_managament_2020"))
|
|
@@ -1088,14 +1088,14 @@ function dh(e) {
|
|
|
1088
1088
|
const n = wn.get(e);
|
|
1089
1089
|
if (n != null && (t = n.shouldDeleteConfigOnRelease) !== null && t !== void 0 && t.call(n)) {
|
|
1090
1090
|
var r;
|
|
1091
|
-
wn.delete(e), (r = cc(e)) === null || r === void 0 || r(),
|
|
1091
|
+
wn.delete(e), (r = cc(e)) === null || r === void 0 || r(), Jr.delete(e);
|
|
1092
1092
|
}
|
|
1093
1093
|
}
|
|
1094
1094
|
function fh(e, t) {
|
|
1095
|
-
ze("recoil_memory_managament_2020") && (t === void 0 ?
|
|
1095
|
+
ze("recoil_memory_managament_2020") && (t === void 0 ? Jr.delete(e) : Jr.set(e, t));
|
|
1096
1096
|
}
|
|
1097
1097
|
function cc(e) {
|
|
1098
|
-
return
|
|
1098
|
+
return Jr.get(e);
|
|
1099
1099
|
}
|
|
1100
1100
|
var bt = {
|
|
1101
1101
|
nodes: wn,
|
|
@@ -1217,7 +1217,7 @@ var mh = gh(function(e) {
|
|
|
1217
1217
|
};
|
|
1218
1218
|
}, Y = function(L) {
|
|
1219
1219
|
return L === C || L.type === h || L.type === v;
|
|
1220
|
-
},
|
|
1220
|
+
}, P = function(L, q, ae, se, ue) {
|
|
1221
1221
|
for (var me = [], ye = se, ve = 0, xe = 0; ye; ++xe)
|
|
1222
1222
|
ye & 1 && (me[xe] = ue[ve++]), ye >>>= 1;
|
|
1223
1223
|
return me[q] = ae, F(L, ve + 1, me);
|
|
@@ -1237,8 +1237,8 @@ var mh = gh(function(e) {
|
|
|
1237
1237
|
for (var xe = ue.length, Ue = 0; Ue < xe; ++Ue) {
|
|
1238
1238
|
var rt = ue[Ue];
|
|
1239
1239
|
if (ae(ye, rt.key)) {
|
|
1240
|
-
var
|
|
1241
|
-
return st ===
|
|
1240
|
+
var Xe = rt.value, st = me(Xe);
|
|
1241
|
+
return st === Xe ? ue : st === l ? (--ve.value, E(L, Ue, ue)) : b(L, Ue, N(q, se, ye, st), ue);
|
|
1242
1242
|
}
|
|
1243
1243
|
}
|
|
1244
1244
|
var ht = me();
|
|
@@ -1260,36 +1260,36 @@ var mh = gh(function(e) {
|
|
|
1260
1260
|
var Ue = se();
|
|
1261
1261
|
return Ue === l ? this : (++ye.value, fe(L, ae, this.hash, this, ue, N(L, ue, me, Ue)));
|
|
1262
1262
|
}, $ = function(L, q, ae, se, ue, me, ye) {
|
|
1263
|
-
var ve = this.mask, xe = this.children, Ue = d(ae, ue), rt = p(Ue),
|
|
1263
|
+
var ve = this.mask, xe = this.children, Ue = d(ae, ue), rt = p(Ue), Xe = g(ve, rt), st = ve & rt, ht = st ? xe[Xe] : C, Lt = ht._modify(L, q, ae + r, se, ue, me, ye);
|
|
1264
1264
|
if (ht === Lt)
|
|
1265
1265
|
return this;
|
|
1266
1266
|
var Jt = oe(L, this), Nt = ve, X = void 0;
|
|
1267
1267
|
if (st && T(Lt)) {
|
|
1268
1268
|
if (Nt &= ~rt, !Nt)
|
|
1269
1269
|
return C;
|
|
1270
|
-
if (xe.length <= 2 && Y(xe[
|
|
1271
|
-
return xe[
|
|
1272
|
-
X = E(Jt,
|
|
1270
|
+
if (xe.length <= 2 && Y(xe[Xe ^ 1]))
|
|
1271
|
+
return xe[Xe ^ 1];
|
|
1272
|
+
X = E(Jt, Xe, xe);
|
|
1273
1273
|
} else if (!st && !T(Lt)) {
|
|
1274
1274
|
if (xe.length >= i)
|
|
1275
|
-
return
|
|
1276
|
-
Nt |= rt, X = R(Jt,
|
|
1275
|
+
return P(L, Ue, Lt, ve, xe);
|
|
1276
|
+
Nt |= rt, X = R(Jt, Xe, Lt, xe);
|
|
1277
1277
|
} else
|
|
1278
|
-
X = b(Jt,
|
|
1278
|
+
X = b(Jt, Xe, Lt, xe);
|
|
1279
1279
|
return Jt ? (this.mask = Nt, this.children = X, this) : M(L, Nt, X);
|
|
1280
1280
|
}, U = function(L, q, ae, se, ue, me, ye) {
|
|
1281
|
-
var ve = this.size, xe = this.children, Ue = d(ae, ue), rt = xe[Ue],
|
|
1282
|
-
if (rt ===
|
|
1281
|
+
var ve = this.size, xe = this.children, Ue = d(ae, ue), rt = xe[Ue], Xe = (rt || C)._modify(L, q, ae + r, se, ue, me, ye);
|
|
1282
|
+
if (rt === Xe)
|
|
1283
1283
|
return this;
|
|
1284
1284
|
var st = oe(L, this), ht = void 0;
|
|
1285
|
-
if (T(rt) && !T(
|
|
1286
|
-
++ve, ht = b(st, Ue,
|
|
1287
|
-
else if (!T(rt) && T(
|
|
1285
|
+
if (T(rt) && !T(Xe))
|
|
1286
|
+
++ve, ht = b(st, Ue, Xe, xe);
|
|
1287
|
+
else if (!T(rt) && T(Xe)) {
|
|
1288
1288
|
if (--ve, ve <= a)
|
|
1289
1289
|
return G(L, ve, Ue, xe);
|
|
1290
1290
|
ht = b(st, Ue, C, xe);
|
|
1291
1291
|
} else
|
|
1292
|
-
ht = b(st, Ue,
|
|
1292
|
+
ht = b(st, Ue, Xe, xe);
|
|
1293
1293
|
return st ? (this.size = ve, this.children = ht, this) : F(L, ve, ht);
|
|
1294
1294
|
};
|
|
1295
1295
|
C._modify = function(I, L, q, ae, se, ue, me) {
|
|
@@ -1317,9 +1317,9 @@ var mh = gh(function(e) {
|
|
|
1317
1317
|
return I;
|
|
1318
1318
|
}
|
|
1319
1319
|
case y: {
|
|
1320
|
-
var rt = d(ue, L),
|
|
1321
|
-
if (se.mask &
|
|
1322
|
-
se = se.children[g(se.mask,
|
|
1320
|
+
var rt = d(ue, L), Xe = p(rt);
|
|
1321
|
+
if (se.mask & Xe) {
|
|
1322
|
+
se = se.children[g(se.mask, Xe)], ue += r;
|
|
1323
1323
|
break;
|
|
1324
1324
|
}
|
|
1325
1325
|
return I;
|
|
@@ -1354,14 +1354,14 @@ var mh = gh(function(e) {
|
|
|
1354
1354
|
}, x.prototype.get = function(I, L) {
|
|
1355
1355
|
return j(L, I, this);
|
|
1356
1356
|
};
|
|
1357
|
-
var
|
|
1357
|
+
var A = n.has = function(I, L, q) {
|
|
1358
1358
|
return k(l, I, L, q) !== l;
|
|
1359
1359
|
};
|
|
1360
1360
|
x.prototype.hasHash = function(I, L) {
|
|
1361
|
-
return
|
|
1361
|
+
return A(I, L, this);
|
|
1362
1362
|
};
|
|
1363
1363
|
var V = n.has = function(I, L) {
|
|
1364
|
-
return
|
|
1364
|
+
return A(L._config.hash(I), I, L);
|
|
1365
1365
|
};
|
|
1366
1366
|
x.prototype.has = function(I) {
|
|
1367
1367
|
return V(I, this);
|
|
@@ -1426,18 +1426,18 @@ var mh = gh(function(e) {
|
|
|
1426
1426
|
x.prototype.beginMutation = function() {
|
|
1427
1427
|
return Ne(this);
|
|
1428
1428
|
};
|
|
1429
|
-
var
|
|
1429
|
+
var Ze = n.endMutation = function(I) {
|
|
1430
1430
|
return I._editable = I._editable && I._editable - 1, I;
|
|
1431
1431
|
};
|
|
1432
1432
|
x.prototype.endMutation = function() {
|
|
1433
|
-
return
|
|
1433
|
+
return Ze(this);
|
|
1434
1434
|
};
|
|
1435
|
-
var
|
|
1435
|
+
var Qe = n.mutate = function(I, L) {
|
|
1436
1436
|
var q = Ne(L);
|
|
1437
|
-
return I(q),
|
|
1437
|
+
return I(q), Ze(q);
|
|
1438
1438
|
};
|
|
1439
1439
|
x.prototype.mutate = function(I) {
|
|
1440
|
-
return
|
|
1440
|
+
return Qe(I, this);
|
|
1441
1441
|
};
|
|
1442
1442
|
var dt = function(L) {
|
|
1443
1443
|
return L && yt(L[0], L[1], L[2], L[3], L[4]);
|
|
@@ -1627,7 +1627,7 @@ function Ch(e, t) {
|
|
|
1627
1627
|
n.set(o, t(r, o));
|
|
1628
1628
|
}), n;
|
|
1629
1629
|
}
|
|
1630
|
-
var
|
|
1630
|
+
var eo = Ch;
|
|
1631
1631
|
function Eh() {
|
|
1632
1632
|
return {
|
|
1633
1633
|
nodeDeps: /* @__PURE__ */ new Map(),
|
|
@@ -1636,8 +1636,8 @@ function Eh() {
|
|
|
1636
1636
|
}
|
|
1637
1637
|
function Rh(e) {
|
|
1638
1638
|
return {
|
|
1639
|
-
nodeDeps:
|
|
1640
|
-
nodeToNodeSubscriptions:
|
|
1639
|
+
nodeDeps: eo(e.nodeDeps, (t) => new Set(t)),
|
|
1640
|
+
nodeToNodeSubscriptions: eo(e.nodeToNodeSubscriptions, (t) => new Set(t))
|
|
1641
1641
|
};
|
|
1642
1642
|
}
|
|
1643
1643
|
function Ss(e, t, n, r) {
|
|
@@ -1690,7 +1690,7 @@ let Lh = 0;
|
|
|
1690
1690
|
const Nh = () => Lh++;
|
|
1691
1691
|
let kh = 0;
|
|
1692
1692
|
const Ah = () => kh++;
|
|
1693
|
-
var
|
|
1693
|
+
var xo = {
|
|
1694
1694
|
getNextTreeStateVersion: Th,
|
|
1695
1695
|
getNextStoreID: Nh,
|
|
1696
1696
|
getNextComponentID: Ah
|
|
@@ -1701,7 +1701,7 @@ const {
|
|
|
1701
1701
|
graph: Ph
|
|
1702
1702
|
} = Cr, {
|
|
1703
1703
|
getNextTreeStateVersion: uc
|
|
1704
|
-
} =
|
|
1704
|
+
} = xo;
|
|
1705
1705
|
function dc() {
|
|
1706
1706
|
const e = uc();
|
|
1707
1707
|
return {
|
|
@@ -1746,7 +1746,7 @@ class hc {
|
|
|
1746
1746
|
function Ih() {
|
|
1747
1747
|
return new hc();
|
|
1748
1748
|
}
|
|
1749
|
-
var
|
|
1749
|
+
var To = {
|
|
1750
1750
|
RetentionZone: hc,
|
|
1751
1751
|
retentionZone: Ih
|
|
1752
1752
|
};
|
|
@@ -1803,7 +1803,7 @@ const {
|
|
|
1803
1803
|
recoilValuesForKeys: Ta
|
|
1804
1804
|
} = bt, {
|
|
1805
1805
|
RetentionZone: La
|
|
1806
|
-
} =
|
|
1806
|
+
} = To, {
|
|
1807
1807
|
setByAddingToSet: zh
|
|
1808
1808
|
} = pc, Gh = Object.freeze(/* @__PURE__ */ new Set());
|
|
1809
1809
|
class Kh extends Error {
|
|
@@ -1903,7 +1903,7 @@ function Jh(e, t, n) {
|
|
|
1903
1903
|
var i, a;
|
|
1904
1904
|
return {
|
|
1905
1905
|
nodes: Ta(Ei(vc(e, t, /* @__PURE__ */ new Set([n])), (l) => l !== n)),
|
|
1906
|
-
components:
|
|
1906
|
+
components: _o((i = (a = r.nodeToComponentSubscriptions.get(n)) === null || a === void 0 ? void 0 : a.values()) !== null && i !== void 0 ? i : [], ([l]) => ({
|
|
1907
1907
|
name: l
|
|
1908
1908
|
}))
|
|
1909
1909
|
};
|
|
@@ -1949,7 +1949,7 @@ const {
|
|
|
1949
1949
|
setNodeValue: r1
|
|
1950
1950
|
} = on, {
|
|
1951
1951
|
getNextComponentID: o1
|
|
1952
|
-
} =
|
|
1952
|
+
} = xo, {
|
|
1953
1953
|
getNode: s1,
|
|
1954
1954
|
getNodeMaybe: wc
|
|
1955
1955
|
} = bt, {
|
|
@@ -2040,7 +2040,7 @@ function Cc(e, t) {
|
|
|
2040
2040
|
return Rc(e, r), d1(), r;
|
|
2041
2041
|
});
|
|
2042
2042
|
}
|
|
2043
|
-
function
|
|
2043
|
+
function Lo(e, t) {
|
|
2044
2044
|
if (fr.length) {
|
|
2045
2045
|
const n = fr[fr.length - 1];
|
|
2046
2046
|
let r = n.get(e);
|
|
@@ -2073,7 +2073,7 @@ function Rc(e, t) {
|
|
|
2073
2073
|
}
|
|
2074
2074
|
}
|
|
2075
2075
|
function _c(e, t, n) {
|
|
2076
|
-
|
|
2076
|
+
Lo(e, {
|
|
2077
2077
|
type: "set",
|
|
2078
2078
|
recoilValue: t,
|
|
2079
2079
|
valueOrUpdater: n
|
|
@@ -2082,20 +2082,20 @@ function _c(e, t, n) {
|
|
|
2082
2082
|
function v1(e, t, n) {
|
|
2083
2083
|
if (n instanceof _i)
|
|
2084
2084
|
return _c(e, t, n);
|
|
2085
|
-
|
|
2085
|
+
Lo(e, {
|
|
2086
2086
|
type: "setLoadable",
|
|
2087
2087
|
recoilValue: t,
|
|
2088
2088
|
loadable: n
|
|
2089
2089
|
});
|
|
2090
2090
|
}
|
|
2091
2091
|
function y1(e, t) {
|
|
2092
|
-
|
|
2092
|
+
Lo(e, {
|
|
2093
2093
|
type: "markModified",
|
|
2094
2094
|
recoilValue: t
|
|
2095
2095
|
});
|
|
2096
2096
|
}
|
|
2097
2097
|
function S1(e, t, n) {
|
|
2098
|
-
|
|
2098
|
+
Lo(e, {
|
|
2099
2099
|
type: "setUnvalidated",
|
|
2100
2100
|
recoilValue: t,
|
|
2101
2101
|
unvalidatedValue: n
|
|
@@ -2167,7 +2167,7 @@ const {
|
|
|
2167
2167
|
getNode: xc
|
|
2168
2168
|
} = bt, {
|
|
2169
2169
|
RetentionZone: Tc
|
|
2170
|
-
} =
|
|
2170
|
+
} = To, x1 = 12e4, Lc = /* @__PURE__ */ new Set();
|
|
2171
2171
|
function Nc(e, t) {
|
|
2172
2172
|
const n = e.getState(), r = n.currentTree;
|
|
2173
2173
|
if (n.nextTree) {
|
|
@@ -2344,7 +2344,7 @@ const F1 = (e) => {
|
|
|
2344
2344
|
}
|
|
2345
2345
|
});
|
|
2346
2346
|
};
|
|
2347
|
-
var
|
|
2347
|
+
var No = {
|
|
2348
2348
|
getBatcher: U1,
|
|
2349
2349
|
setBatcher: F1,
|
|
2350
2350
|
batchUpdates: H1
|
|
@@ -2396,14 +2396,14 @@ var Z1 = {
|
|
|
2396
2396
|
};
|
|
2397
2397
|
const {
|
|
2398
2398
|
batchUpdates: Gs
|
|
2399
|
-
} =
|
|
2399
|
+
} = No, {
|
|
2400
2400
|
initializeNode: Q1,
|
|
2401
2401
|
peekNodeInfo: X1
|
|
2402
2402
|
} = on, {
|
|
2403
2403
|
graph: J1
|
|
2404
2404
|
} = Cr, {
|
|
2405
2405
|
getNextStoreID: ep
|
|
2406
|
-
} =
|
|
2406
|
+
} = xo, {
|
|
2407
2407
|
DEFAULT_VALUE: tp,
|
|
2408
2408
|
recoilValues: Na,
|
|
2409
2409
|
recoilValuesForKeys: ka
|
|
@@ -2413,7 +2413,7 @@ const {
|
|
|
2413
2413
|
setRecoilValue: Aa,
|
|
2414
2414
|
setUnvalidatedRecoilValue: op
|
|
2415
2415
|
} = Dt, {
|
|
2416
|
-
updateRetainCount:
|
|
2416
|
+
updateRetainCount: Qr
|
|
2417
2417
|
} = En, {
|
|
2418
2418
|
setInvalidateMemoizedSnapshot: sp
|
|
2419
2419
|
} = Sc, {
|
|
@@ -2435,7 +2435,7 @@ Recoil Snapshots only last for the duration of the callback they are provided to
|
|
|
2435
2435
|
|
|
2436
2436
|
This is currently a DEV-only warning but will become a thrown exception in the next release of Recoil.
|
|
2437
2437
|
`;
|
|
2438
|
-
class
|
|
2438
|
+
class ko {
|
|
2439
2439
|
// eslint-disable-next-line fb-www/no-uninitialized-properties
|
|
2440
2440
|
constructor(t, n) {
|
|
2441
2441
|
Te(this, "_store", void 0), Te(this, "_refCount", 1), Te(this, "getLoadable", (r) => (this.checkRefCount_INTERNAL(), rp(this._store, r))), Te(this, "getPromise", (r) => (this.checkRefCount_INTERNAL(), this.getLoadable(r).toPromise())), Te(this, "getNodes_UNSTABLE", (r) => {
|
|
@@ -2482,7 +2482,7 @@ class No {
|
|
|
2482
2482
|
}
|
|
2483
2483
|
};
|
|
2484
2484
|
for (const r of this._store.getState().knownAtoms)
|
|
2485
|
-
Q1(this._store, r, "get"),
|
|
2485
|
+
Q1(this._store, r, "get"), Qr(this._store, r, 1);
|
|
2486
2486
|
this.autoRelease_INTERNAL();
|
|
2487
2487
|
}
|
|
2488
2488
|
retain() {
|
|
@@ -2570,12 +2570,12 @@ function Ic(e, t, n = !1) {
|
|
|
2570
2570
|
// FIXME here's a copy
|
|
2571
2571
|
// Create blank cleanup handlers for atoms so snapshots don't re-run
|
|
2572
2572
|
// atom effects.
|
|
2573
|
-
nodeCleanupFunctions: new Map(
|
|
2573
|
+
nodeCleanupFunctions: new Map(_o(r.nodeCleanupFunctions.entries(), ([s]) => [s, () => {
|
|
2574
2574
|
}]))
|
|
2575
2575
|
};
|
|
2576
2576
|
}
|
|
2577
2577
|
function dp(e) {
|
|
2578
|
-
const t = new
|
|
2578
|
+
const t = new ko(ap());
|
|
2579
2579
|
return e != null ? t.map(e) : t;
|
|
2580
2580
|
}
|
|
2581
2581
|
const [Pa, Oc] = cp(
|
|
@@ -2583,7 +2583,7 @@ const [Pa, Oc] = cp(
|
|
|
2583
2583
|
(e, t) => {
|
|
2584
2584
|
var n;
|
|
2585
2585
|
const r = e.getState(), o = t === "latest" ? (n = r.nextTree) !== null && n !== void 0 ? n : r.currentTree : Ge(r.previousTree);
|
|
2586
|
-
return new
|
|
2586
|
+
return new ko(Ic(e, o), e.storeID);
|
|
2587
2587
|
},
|
|
2588
2588
|
(e, t) => {
|
|
2589
2589
|
var n, r;
|
|
@@ -2595,36 +2595,36 @@ function fp(e, t = "latest") {
|
|
|
2595
2595
|
const n = Pa(e, t);
|
|
2596
2596
|
return n.isRetained() ? n : (Oc(), Pa(e, t));
|
|
2597
2597
|
}
|
|
2598
|
-
class Ks extends
|
|
2598
|
+
class Ks extends ko {
|
|
2599
2599
|
constructor(t, n) {
|
|
2600
2600
|
super(Ic(t.getStore_INTERNAL(), t.getStore_INTERNAL().getState().currentTree, !0), t.getStoreID()), Te(this, "_batch", void 0), Te(this, "set", (r, o) => {
|
|
2601
2601
|
this.checkRefCount_INTERNAL();
|
|
2602
2602
|
const s = this.getStore_INTERNAL();
|
|
2603
2603
|
this._batch(() => {
|
|
2604
|
-
|
|
2604
|
+
Qr(s, r.key, 1), Aa(this.getStore_INTERNAL(), r, o);
|
|
2605
2605
|
});
|
|
2606
2606
|
}), Te(this, "reset", (r) => {
|
|
2607
2607
|
this.checkRefCount_INTERNAL();
|
|
2608
2608
|
const o = this.getStore_INTERNAL();
|
|
2609
2609
|
this._batch(() => {
|
|
2610
|
-
|
|
2610
|
+
Qr(o, r.key, 1), Aa(this.getStore_INTERNAL(), r, tp);
|
|
2611
2611
|
});
|
|
2612
2612
|
}), Te(this, "setUnvalidatedAtomValues_DEPRECATED", (r) => {
|
|
2613
2613
|
this.checkRefCount_INTERNAL();
|
|
2614
2614
|
const o = this.getStore_INTERNAL();
|
|
2615
2615
|
Gs(() => {
|
|
2616
2616
|
for (const [s, i] of r.entries())
|
|
2617
|
-
|
|
2617
|
+
Qr(o, s, 1), op(o, new np(s), i);
|
|
2618
2618
|
});
|
|
2619
2619
|
}), this._batch = n;
|
|
2620
2620
|
}
|
|
2621
2621
|
}
|
|
2622
|
-
var
|
|
2623
|
-
Snapshot:
|
|
2622
|
+
var Ao = {
|
|
2623
|
+
Snapshot: ko,
|
|
2624
2624
|
MutableSnapshot: Ks,
|
|
2625
2625
|
freshSnapshot: dp,
|
|
2626
2626
|
cloneSnapshot: fp
|
|
2627
|
-
}, hp =
|
|
2627
|
+
}, hp = Ao.Snapshot, pp = Ao.MutableSnapshot, gp = Ao.freshSnapshot, mp = Ao.cloneSnapshot, Po = /* @__PURE__ */ Object.freeze({
|
|
2628
2628
|
__proto__: null,
|
|
2629
2629
|
Snapshot: hp,
|
|
2630
2630
|
MutableSnapshot: pp,
|
|
@@ -2662,7 +2662,7 @@ const {
|
|
|
2662
2662
|
cloneGraph: Lp
|
|
2663
2663
|
} = Cr, {
|
|
2664
2664
|
getNextStoreID: Dc
|
|
2665
|
-
} =
|
|
2665
|
+
} = xo, {
|
|
2666
2666
|
createMutableSource: bs,
|
|
2667
2667
|
reactMode: jc
|
|
2668
2668
|
} = Zn, {
|
|
@@ -2671,7 +2671,7 @@ const {
|
|
|
2671
2671
|
releaseScheduledRetainablesNow: Bc
|
|
2672
2672
|
} = En, {
|
|
2673
2673
|
freshSnapshot: kp
|
|
2674
|
-
} =
|
|
2674
|
+
} = Po, {
|
|
2675
2675
|
useCallback: Ap,
|
|
2676
2676
|
useContext: Vc,
|
|
2677
2677
|
useEffect: Ws,
|
|
@@ -2709,10 +2709,10 @@ function Ia(e) {
|
|
|
2709
2709
|
}
|
|
2710
2710
|
const Uc = Pe.createContext({
|
|
2711
2711
|
current: Fc
|
|
2712
|
-
}),
|
|
2712
|
+
}), Mo = () => Vc(Uc), Hc = Pe.createContext(null);
|
|
2713
2713
|
function Op() {
|
|
2714
2714
|
const e = Vc(Hc);
|
|
2715
|
-
return e == null &&
|
|
2715
|
+
return e == null && Ro("Attempted to use a Recoil hook outside of a <RecoilRoot>. <RecoilRoot> must be an ancestor of any component that uses Recoil hooks."), e;
|
|
2716
2716
|
}
|
|
2717
2717
|
function Ti(e, t, n) {
|
|
2718
2718
|
const r = Ep(e, n, n.dirtyAtoms);
|
|
@@ -2753,7 +2753,7 @@ function $p(e) {
|
|
|
2753
2753
|
function Dp({
|
|
2754
2754
|
setNotifyBatcherOfChange: e
|
|
2755
2755
|
}) {
|
|
2756
|
-
const t =
|
|
2756
|
+
const t = Mo(), [, n] = Ip([]);
|
|
2757
2757
|
return e(() => n({})), Ws(() => (e(() => n({})), () => {
|
|
2758
2758
|
e(() => {
|
|
2759
2759
|
});
|
|
@@ -2874,15 +2874,15 @@ function Fp(e) {
|
|
|
2874
2874
|
const {
|
|
2875
2875
|
override: t,
|
|
2876
2876
|
...n
|
|
2877
|
-
} = e, r =
|
|
2877
|
+
} = e, r = Mo();
|
|
2878
2878
|
return t === !1 && r.current !== Fc ? e.children : /* @__PURE__ */ Pe.createElement(Vp, n);
|
|
2879
2879
|
}
|
|
2880
2880
|
function Up() {
|
|
2881
|
-
return
|
|
2881
|
+
return Mo().current.storeID;
|
|
2882
2882
|
}
|
|
2883
2883
|
var qt = {
|
|
2884
2884
|
RecoilRoot: Fp,
|
|
2885
|
-
useStoreRef:
|
|
2885
|
+
useStoreRef: Mo,
|
|
2886
2886
|
useRecoilMutableSource: Op,
|
|
2887
2887
|
useRecoilStoreID: Up,
|
|
2888
2888
|
notifyComponents_FOR_TESTING: Ti,
|
|
@@ -2918,7 +2918,7 @@ const {
|
|
|
2918
2918
|
updateRetainCount: or
|
|
2919
2919
|
} = En, {
|
|
2920
2920
|
RetentionZone: Zp
|
|
2921
|
-
} =
|
|
2921
|
+
} = To, {
|
|
2922
2922
|
useEffect: Qp,
|
|
2923
2923
|
useRef: Xp
|
|
2924
2924
|
} = Pe, {
|
|
@@ -2966,7 +2966,7 @@ function tg() {
|
|
|
2966
2966
|
var _r = tg;
|
|
2967
2967
|
const {
|
|
2968
2968
|
batchUpdates: ng
|
|
2969
|
-
} =
|
|
2969
|
+
} = No, {
|
|
2970
2970
|
DEFAULT_VALUE: Kc
|
|
2971
2971
|
} = bt, {
|
|
2972
2972
|
currentRendererSupportsUseSyncExternalStore: rg,
|
|
@@ -2981,7 +2981,7 @@ const {
|
|
|
2981
2981
|
} = bn, {
|
|
2982
2982
|
AbstractRecoilValue: qs,
|
|
2983
2983
|
getRecoilValueAsLoadable: xr,
|
|
2984
|
-
setRecoilValue:
|
|
2984
|
+
setRecoilValue: to,
|
|
2985
2985
|
setUnvalidatedRecoilValue: lg,
|
|
2986
2986
|
subscribeToRecoilValue: Un
|
|
2987
2987
|
} = Dt, {
|
|
@@ -3022,7 +3022,7 @@ function dg() {
|
|
|
3022
3022
|
const l = t.current;
|
|
3023
3023
|
dr(r.current, o.current).forEach((c) => {
|
|
3024
3024
|
if (s.current.has(c)) {
|
|
3025
|
-
|
|
3025
|
+
Ro(`Double subscription to RecoilValue "${c}"`);
|
|
3026
3026
|
return;
|
|
3027
3027
|
}
|
|
3028
3028
|
const u = Un(l, new qs(c), (d) => a(d, c), e);
|
|
@@ -3041,11 +3041,11 @@ function dg() {
|
|
|
3041
3041
|
}, [e, t, i, a]), Wc(() => {
|
|
3042
3042
|
function l(g) {
|
|
3043
3043
|
return process.env.NODE_ENV !== "production" && vt(g, "useSetRecoilState"), (b) => {
|
|
3044
|
-
|
|
3044
|
+
to(t.current, g, b);
|
|
3045
3045
|
};
|
|
3046
3046
|
}
|
|
3047
3047
|
function c(g) {
|
|
3048
|
-
return process.env.NODE_ENV !== "production" && vt(g, "useResetRecoilState"), () =>
|
|
3048
|
+
return process.env.NODE_ENV !== "production" && vt(g, "useResetRecoilState"), () => to(t.current, g, Kc);
|
|
3049
3049
|
}
|
|
3050
3050
|
function u(g) {
|
|
3051
3051
|
var b;
|
|
@@ -3199,25 +3199,25 @@ function Yc(e) {
|
|
|
3199
3199
|
const t = jt(), n = Ai(e);
|
|
3200
3200
|
return ki(n, e, t);
|
|
3201
3201
|
}
|
|
3202
|
-
function
|
|
3202
|
+
function Io(e) {
|
|
3203
3203
|
process.env.NODE_ENV !== "production" && vt(e, "useSetRecoilState");
|
|
3204
3204
|
const t = jt();
|
|
3205
3205
|
return St((n) => {
|
|
3206
|
-
|
|
3206
|
+
to(t.current, e, n);
|
|
3207
3207
|
}, [t, e]);
|
|
3208
3208
|
}
|
|
3209
3209
|
function gg(e) {
|
|
3210
3210
|
process.env.NODE_ENV !== "production" && vt(e, "useResetRecoilState");
|
|
3211
3211
|
const t = jt();
|
|
3212
3212
|
return St(() => {
|
|
3213
|
-
|
|
3213
|
+
to(t.current, e, Kc);
|
|
3214
3214
|
}, [t, e]);
|
|
3215
3215
|
}
|
|
3216
3216
|
function mg(e) {
|
|
3217
|
-
return process.env.NODE_ENV !== "production" && vt(e, "useRecoilState"), [Yc(e),
|
|
3217
|
+
return process.env.NODE_ENV !== "production" && vt(e, "useRecoilState"), [Yc(e), Io(e)];
|
|
3218
3218
|
}
|
|
3219
3219
|
function vg(e) {
|
|
3220
|
-
return process.env.NODE_ENV !== "production" && vt(e, "useRecoilStateLoadable"), [Ai(e),
|
|
3220
|
+
return process.env.NODE_ENV !== "production" && vt(e, "useRecoilStateLoadable"), [Ai(e), Io(e)];
|
|
3221
3221
|
}
|
|
3222
3222
|
function yg() {
|
|
3223
3223
|
const e = jt();
|
|
@@ -3236,7 +3236,7 @@ function Zc(e) {
|
|
|
3236
3236
|
return ki(n, e, t);
|
|
3237
3237
|
}
|
|
3238
3238
|
function Sg(e) {
|
|
3239
|
-
return process.env.NODE_ENV !== "production" && vt(e, "useRecoilState_TRANSITION_SUPPORT_UNSTABLE"), [Zc(e),
|
|
3239
|
+
return process.env.NODE_ENV !== "production" && vt(e, "useRecoilState_TRANSITION_SUPPORT_UNSTABLE"), [Zc(e), Io(e)];
|
|
3240
3240
|
}
|
|
3241
3241
|
var bg = {
|
|
3242
3242
|
recoilComponentGetRecoilValueCount_FOR_TESTING: Tr,
|
|
@@ -3246,7 +3246,7 @@ var bg = {
|
|
|
3246
3246
|
useRecoilValue: Yc,
|
|
3247
3247
|
useRecoilValueLoadable: Ai,
|
|
3248
3248
|
useResetRecoilState: gg,
|
|
3249
|
-
useSetRecoilState:
|
|
3249
|
+
useSetRecoilState: Io,
|
|
3250
3250
|
useSetUnvalidatedAtomValues: yg,
|
|
3251
3251
|
useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE: qc,
|
|
3252
3252
|
useRecoilValue_TRANSITION_SUPPORT_UNSTABLE: Zc,
|
|
@@ -3279,7 +3279,7 @@ function _g(...e) {
|
|
|
3279
3279
|
var xg = _g;
|
|
3280
3280
|
const {
|
|
3281
3281
|
batchUpdates: Tg
|
|
3282
|
-
} =
|
|
3282
|
+
} = No, {
|
|
3283
3283
|
DEFAULT_VALUE: Lg,
|
|
3284
3284
|
getNode: Qc,
|
|
3285
3285
|
nodes: Ng
|
|
@@ -3291,32 +3291,32 @@ const {
|
|
|
3291
3291
|
} = Dt, {
|
|
3292
3292
|
SUSPENSE_TIMEOUT_MS: Pg
|
|
3293
3293
|
} = En, {
|
|
3294
|
-
cloneSnapshot:
|
|
3295
|
-
} =
|
|
3296
|
-
useCallback:
|
|
3294
|
+
cloneSnapshot: no
|
|
3295
|
+
} = Po, {
|
|
3296
|
+
useCallback: Oo,
|
|
3297
3297
|
useEffect: Xc,
|
|
3298
3298
|
useRef: Da,
|
|
3299
3299
|
useState: Mg
|
|
3300
3300
|
} = Pe, {
|
|
3301
3301
|
isSSR: ja
|
|
3302
3302
|
} = Rr;
|
|
3303
|
-
function
|
|
3303
|
+
function $o(e) {
|
|
3304
3304
|
const t = Pi();
|
|
3305
3305
|
Xc(() => t.current.subscribeToTransactions(e).release, [e, t]);
|
|
3306
3306
|
}
|
|
3307
3307
|
function Ba(e) {
|
|
3308
|
-
const t = e.atomValues.toMap(), n =
|
|
3308
|
+
const t = e.atomValues.toMap(), n = eo(Cg(t, (r, o) => {
|
|
3309
3309
|
const i = Qc(o).persistence_UNSTABLE;
|
|
3310
3310
|
return i != null && i.type !== "none" && r.state === "hasValue";
|
|
3311
3311
|
}), (r) => r.contents);
|
|
3312
3312
|
return xg(e.nonvalidatedAtoms.toMap(), n);
|
|
3313
3313
|
}
|
|
3314
3314
|
function Ig(e) {
|
|
3315
|
-
Oo(
|
|
3315
|
+
$o(Oo((t) => {
|
|
3316
3316
|
let n = t.getState().previousTree;
|
|
3317
3317
|
const r = t.getState().currentTree;
|
|
3318
3318
|
n || (lt("Transaction subscribers notified without a previous tree being present -- this is a bug in Recoil"), n = t.getState().currentTree);
|
|
3319
|
-
const o = Ba(r), s = Ba(n), i =
|
|
3319
|
+
const o = Ba(r), s = Ba(n), i = eo(Ng, (l) => {
|
|
3320
3320
|
var c, u, f, d;
|
|
3321
3321
|
return {
|
|
3322
3322
|
persistence_UNSTABLE: {
|
|
@@ -3337,8 +3337,8 @@ function Ig(e) {
|
|
|
3337
3337
|
}, [e]));
|
|
3338
3338
|
}
|
|
3339
3339
|
function Og(e) {
|
|
3340
|
-
Oo(
|
|
3341
|
-
const n =
|
|
3340
|
+
$o(Oo((t) => {
|
|
3341
|
+
const n = no(t, "latest"), r = no(t, "previous");
|
|
3342
3342
|
e({
|
|
3343
3343
|
snapshot: n,
|
|
3344
3344
|
previousSnapshot: r
|
|
@@ -3346,8 +3346,8 @@ function Og(e) {
|
|
|
3346
3346
|
}, [e]));
|
|
3347
3347
|
}
|
|
3348
3348
|
function $g() {
|
|
3349
|
-
const e = Pi(), [t, n] = Mg(() =>
|
|
3350
|
-
if (Oo(
|
|
3349
|
+
const e = Pi(), [t, n] = Mg(() => no(e.current)), r = Gc(t), o = Da(), s = Da();
|
|
3350
|
+
if ($o(Oo((a) => n(no(a)), [])), Xc(() => {
|
|
3351
3351
|
const a = t.retain();
|
|
3352
3352
|
if (o.current && !ja) {
|
|
3353
3353
|
var l;
|
|
@@ -3388,7 +3388,7 @@ function Jc(e, t) {
|
|
|
3388
3388
|
}
|
|
3389
3389
|
function Dg() {
|
|
3390
3390
|
const e = Pi();
|
|
3391
|
-
return
|
|
3391
|
+
return Oo((t) => Jc(e.current, t), [e]);
|
|
3392
3392
|
}
|
|
3393
3393
|
var eu = {
|
|
3394
3394
|
useRecoilSnapshot: $g,
|
|
@@ -3396,7 +3396,7 @@ var eu = {
|
|
|
3396
3396
|
useGotoRecoilSnapshot: Dg,
|
|
3397
3397
|
useRecoilTransactionObserver: Og,
|
|
3398
3398
|
useTransactionObservation_DEPRECATED: Ig,
|
|
3399
|
-
useTransactionSubscription_DEPRECATED:
|
|
3399
|
+
useTransactionSubscription_DEPRECATED: $o
|
|
3400
3400
|
};
|
|
3401
3401
|
const {
|
|
3402
3402
|
peekNodeInfo: jg
|
|
@@ -3506,7 +3506,7 @@ const {
|
|
|
3506
3506
|
atomicUpdater: lm
|
|
3507
3507
|
} = tu, {
|
|
3508
3508
|
batchUpdates: cm
|
|
3509
|
-
} =
|
|
3509
|
+
} = No, {
|
|
3510
3510
|
DEFAULT_VALUE: um
|
|
3511
3511
|
} = bt, {
|
|
3512
3512
|
useStoreRef: dm
|
|
@@ -3515,7 +3515,7 @@ const {
|
|
|
3515
3515
|
setRecoilValue: Fa
|
|
3516
3516
|
} = Dt, {
|
|
3517
3517
|
cloneSnapshot: hm
|
|
3518
|
-
} =
|
|
3518
|
+
} = Po, {
|
|
3519
3519
|
gotoSnapshot: pm
|
|
3520
3520
|
} = eu, {
|
|
3521
3521
|
useCallback: gm
|
|
@@ -3868,19 +3868,19 @@ function Um(e, t = {
|
|
|
3868
3868
|
}
|
|
3869
3869
|
return xt(e, t);
|
|
3870
3870
|
}
|
|
3871
|
-
var
|
|
3871
|
+
var Do = Um;
|
|
3872
3872
|
const {
|
|
3873
3873
|
TreeCache: Hm
|
|
3874
|
-
} = iu,
|
|
3874
|
+
} = iu, Vr = {
|
|
3875
3875
|
equality: "reference",
|
|
3876
3876
|
eviction: "keep-all",
|
|
3877
3877
|
maxSize: 1 / 0
|
|
3878
3878
|
};
|
|
3879
3879
|
function zm({
|
|
3880
|
-
equality: e =
|
|
3881
|
-
eviction: t =
|
|
3882
|
-
maxSize: n =
|
|
3883
|
-
} =
|
|
3880
|
+
equality: e = Vr.equality,
|
|
3881
|
+
eviction: t = Vr.eviction,
|
|
3882
|
+
maxSize: n = Vr.maxSize
|
|
3883
|
+
} = Vr, r) {
|
|
3884
3884
|
const o = Gm(e);
|
|
3885
3885
|
return Km(t, n, o, r);
|
|
3886
3886
|
}
|
|
@@ -3889,7 +3889,7 @@ function Gm(e) {
|
|
|
3889
3889
|
case "reference":
|
|
3890
3890
|
return (t) => t;
|
|
3891
3891
|
case "value":
|
|
3892
|
-
return (t) =>
|
|
3892
|
+
return (t) => Do(t);
|
|
3893
3893
|
}
|
|
3894
3894
|
throw Re(`Unrecognized equality policy ${e}`);
|
|
3895
3895
|
}
|
|
@@ -3959,13 +3959,13 @@ var e0 = {
|
|
|
3959
3959
|
};
|
|
3960
3960
|
const {
|
|
3961
3961
|
isLoadable: t0,
|
|
3962
|
-
loadableWithError:
|
|
3962
|
+
loadableWithError: Fr,
|
|
3963
3963
|
loadableWithPromise: n0,
|
|
3964
3964
|
loadableWithValue: ws
|
|
3965
3965
|
} = wr, {
|
|
3966
3966
|
WrappedValue: cu
|
|
3967
3967
|
} = su, {
|
|
3968
|
-
getNodeLoadable:
|
|
3968
|
+
getNodeLoadable: Ur,
|
|
3969
3969
|
peekNodeLoadable: r0,
|
|
3970
3970
|
setNodeValue: o0
|
|
3971
3971
|
} = on, {
|
|
@@ -3988,7 +3988,7 @@ const {
|
|
|
3988
3988
|
} = e0;
|
|
3989
3989
|
class uu {
|
|
3990
3990
|
}
|
|
3991
|
-
const sr = new uu(), ir = [],
|
|
3991
|
+
const sr = new uu(), ir = [], Hr = /* @__PURE__ */ new Map(), h0 = (() => {
|
|
3992
3992
|
let e = 0;
|
|
3993
3993
|
return () => e++;
|
|
3994
3994
|
})();
|
|
@@ -4021,76 +4021,76 @@ function du(e) {
|
|
|
4021
4021
|
function p() {
|
|
4022
4022
|
return a0(n) !== void 0 && !f();
|
|
4023
4023
|
}
|
|
4024
|
-
function g(x, k, j, B,
|
|
4025
|
-
ce(k, B,
|
|
4024
|
+
function g(x, k, j, B, A) {
|
|
4025
|
+
ce(k, B, A), b(x, j);
|
|
4026
4026
|
}
|
|
4027
4027
|
function b(x, k) {
|
|
4028
|
-
G(x, k) &&
|
|
4028
|
+
G(x, k) && P(x), R(k, !0);
|
|
4029
4029
|
}
|
|
4030
4030
|
function E(x, k) {
|
|
4031
4031
|
G(x, k) && (Ge(M(x)).stateVersions.clear(), R(k, !1));
|
|
4032
4032
|
}
|
|
4033
4033
|
function R(x, k) {
|
|
4034
|
-
const j =
|
|
4034
|
+
const j = Hr.get(x);
|
|
4035
4035
|
if (j != null) {
|
|
4036
4036
|
for (const B of j)
|
|
4037
4037
|
Ga(B, Ge(t));
|
|
4038
|
-
k &&
|
|
4038
|
+
k && Hr.delete(x);
|
|
4039
4039
|
}
|
|
4040
4040
|
}
|
|
4041
4041
|
function h(x, k) {
|
|
4042
|
-
let j =
|
|
4043
|
-
j == null &&
|
|
4042
|
+
let j = Hr.get(k);
|
|
4043
|
+
j == null && Hr.set(k, j = /* @__PURE__ */ new Set()), j.add(x);
|
|
4044
4044
|
}
|
|
4045
|
-
function v(x, k, j, B,
|
|
4045
|
+
function v(x, k, j, B, A, V) {
|
|
4046
4046
|
return k.then((W) => {
|
|
4047
4047
|
if (!f())
|
|
4048
|
-
throw
|
|
4048
|
+
throw P(x), sr;
|
|
4049
4049
|
const z = ws(W);
|
|
4050
|
-
return g(x, j,
|
|
4050
|
+
return g(x, j, A, z, B), W;
|
|
4051
4051
|
}).catch((W) => {
|
|
4052
4052
|
if (!f())
|
|
4053
|
-
throw
|
|
4053
|
+
throw P(x), sr;
|
|
4054
4054
|
if (He(W))
|
|
4055
|
-
return y(x, W, j, B,
|
|
4056
|
-
const z =
|
|
4057
|
-
throw g(x, j,
|
|
4055
|
+
return y(x, W, j, B, A, V);
|
|
4056
|
+
const z = Fr(W);
|
|
4057
|
+
throw g(x, j, A, z, B), W;
|
|
4058
4058
|
});
|
|
4059
4059
|
}
|
|
4060
|
-
function y(x, k, j, B,
|
|
4060
|
+
function y(x, k, j, B, A, V) {
|
|
4061
4061
|
return k.then((W) => {
|
|
4062
4062
|
if (!f())
|
|
4063
|
-
throw
|
|
4063
|
+
throw P(x), sr;
|
|
4064
4064
|
V.loadingDepKey != null && V.loadingDepPromise === k ? j.atomValues.set(V.loadingDepKey, ws(W)) : x.getState().knownSelectors.forEach((K) => {
|
|
4065
4065
|
j.atomValues.delete(K);
|
|
4066
4066
|
});
|
|
4067
4067
|
const z = T(x, j);
|
|
4068
4068
|
if (z && z.state !== "loading") {
|
|
4069
|
-
if ((G(x,
|
|
4069
|
+
if ((G(x, A) || M(x) == null) && b(x, A), z.state === "hasValue")
|
|
4070
4070
|
return z.contents;
|
|
4071
4071
|
throw z.contents;
|
|
4072
4072
|
}
|
|
4073
|
-
if (!G(x,
|
|
4073
|
+
if (!G(x, A)) {
|
|
4074
4074
|
const K = O(x, j);
|
|
4075
4075
|
if (K != null)
|
|
4076
4076
|
return K.loadingLoadable.contents;
|
|
4077
4077
|
}
|
|
4078
|
-
const [J, he] = C(x, j,
|
|
4079
|
-
if (J.state !== "loading" && g(x, j,
|
|
4078
|
+
const [J, he] = C(x, j, A);
|
|
4079
|
+
if (J.state !== "loading" && g(x, j, A, J, he), J.state === "hasError")
|
|
4080
4080
|
throw J.contents;
|
|
4081
4081
|
return J.contents;
|
|
4082
4082
|
}).catch((W) => {
|
|
4083
4083
|
if (W instanceof uu)
|
|
4084
4084
|
throw sr;
|
|
4085
4085
|
if (!f())
|
|
4086
|
-
throw
|
|
4087
|
-
const z =
|
|
4088
|
-
throw g(x, j,
|
|
4086
|
+
throw P(x), sr;
|
|
4087
|
+
const z = Fr(W);
|
|
4088
|
+
throw g(x, j, A, z, B), W;
|
|
4089
4089
|
});
|
|
4090
4090
|
}
|
|
4091
4091
|
function S(x, k, j, B) {
|
|
4092
|
-
var
|
|
4093
|
-
if (G(x, B) || k.version === ((
|
|
4092
|
+
var A, V, W, z;
|
|
4093
|
+
if (G(x, B) || k.version === ((A = x.getState()) === null || A === void 0 || (V = A.currentTree) === null || V === void 0 ? void 0 : V.version) || k.version === ((W = x.getState()) === null || W === void 0 || (z = W.nextTree) === null || z === void 0 ? void 0 : z.version)) {
|
|
4094
4094
|
var J, he, K;
|
|
4095
4095
|
s0(n, j, x, (J = (he = x.getState()) === null || he === void 0 || (K = he.nextTree) === null || K === void 0 ? void 0 : K.version) !== null && J !== void 0 ? J : x.getState().currentTree.version);
|
|
4096
4096
|
}
|
|
@@ -4099,7 +4099,7 @@ function du(e) {
|
|
|
4099
4099
|
}
|
|
4100
4100
|
function C(x, k, j) {
|
|
4101
4101
|
const B = f0(n);
|
|
4102
|
-
let
|
|
4102
|
+
let A = !0, V = !0;
|
|
4103
4103
|
const W = () => {
|
|
4104
4104
|
B(), V = !1;
|
|
4105
4105
|
};
|
|
@@ -4111,8 +4111,8 @@ function du(e) {
|
|
|
4111
4111
|
function Ie({
|
|
4112
4112
|
key: Fe
|
|
4113
4113
|
}) {
|
|
4114
|
-
const Ne =
|
|
4115
|
-
switch (Se.set(Fe, Ne),
|
|
4114
|
+
const Ne = Ur(x, k, Fe);
|
|
4115
|
+
switch (Se.set(Fe, Ne), A || (S(x, k, new Set(Se.keys()), j), E(x, j)), Ne.state) {
|
|
4116
4116
|
case "hasValue":
|
|
4117
4117
|
return Ne.contents;
|
|
4118
4118
|
case "hasError":
|
|
@@ -4143,7 +4143,7 @@ function du(e) {
|
|
|
4143
4143
|
} catch (Fe) {
|
|
4144
4144
|
z = Fe, He(z) ? z = y(x, z, k, Se, j, K).finally(W) : (J = !0, W());
|
|
4145
4145
|
}
|
|
4146
|
-
return J ? he =
|
|
4146
|
+
return J ? he = Fr(z) : He(z) ? he = n0(z) : he = ws(z), A = !1, Y(x, j, Se), S(x, k, new Set(Se.keys()), j), [he, Se];
|
|
4147
4147
|
}
|
|
4148
4148
|
function T(x, k) {
|
|
4149
4149
|
let j = k.atomValues.get(n);
|
|
@@ -4151,7 +4151,7 @@ function du(e) {
|
|
|
4151
4151
|
return j;
|
|
4152
4152
|
const B = /* @__PURE__ */ new Set();
|
|
4153
4153
|
try {
|
|
4154
|
-
j = a.get((V) => (typeof V != "string" && (process.env.NODE_ENV !== "production" ? It(!1, "Cache nodeKey is type string") : It(!1)),
|
|
4154
|
+
j = a.get((V) => (typeof V != "string" && (process.env.NODE_ENV !== "production" ? It(!1, "Cache nodeKey is type string") : It(!1)), Ur(x, k, V).contents), {
|
|
4155
4155
|
onNodeVisit: (V) => {
|
|
4156
4156
|
V.type === "branch" && V.nodeKey !== n && B.add(V.nodeKey);
|
|
4157
4157
|
}
|
|
@@ -4160,51 +4160,51 @@ function du(e) {
|
|
|
4160
4160
|
throw Re(`Problem with cache lookup for selector "${n}": ${V.message}`);
|
|
4161
4161
|
}
|
|
4162
4162
|
if (j) {
|
|
4163
|
-
var
|
|
4164
|
-
k.atomValues.set(n, j), S(x, k, B, (
|
|
4163
|
+
var A;
|
|
4164
|
+
k.atomValues.set(n, j), S(x, k, B, (A = M(x)) === null || A === void 0 ? void 0 : A.executionID);
|
|
4165
4165
|
}
|
|
4166
4166
|
return j;
|
|
4167
4167
|
}
|
|
4168
4168
|
function N(x, k) {
|
|
4169
4169
|
const j = T(x, k);
|
|
4170
4170
|
if (j != null)
|
|
4171
|
-
return
|
|
4171
|
+
return P(x), j;
|
|
4172
4172
|
const B = O(x, k);
|
|
4173
4173
|
if (B != null) {
|
|
4174
|
-
var
|
|
4175
|
-
return ((
|
|
4174
|
+
var A;
|
|
4175
|
+
return ((A = B.loadingLoadable) === null || A === void 0 ? void 0 : A.state) === "loading" && h(x, B.executionID), B.loadingLoadable;
|
|
4176
4176
|
}
|
|
4177
4177
|
const V = h0(), [W, z] = C(x, k, V);
|
|
4178
|
-
return W.state === "loading" ? (F(x, V, W, z, k), h(x, V)) : (
|
|
4178
|
+
return W.state === "loading" ? (F(x, V, W, z, k), h(x, V)) : (P(x), ce(k, W, z)), W;
|
|
4179
4179
|
}
|
|
4180
4180
|
function O(x, k) {
|
|
4181
|
-
const j = Pc([c.has(x) ? [Ge(c.get(x))] : [],
|
|
4182
|
-
function B(
|
|
4183
|
-
for (const [V, W] of
|
|
4184
|
-
if (!
|
|
4181
|
+
const j = Pc([c.has(x) ? [Ge(c.get(x))] : [], _o(Ei(c, ([A]) => A !== x), ([, A]) => A)]);
|
|
4182
|
+
function B(A) {
|
|
4183
|
+
for (const [V, W] of A)
|
|
4184
|
+
if (!Ur(x, k, V).is(W))
|
|
4185
4185
|
return !0;
|
|
4186
4186
|
return !1;
|
|
4187
4187
|
}
|
|
4188
|
-
for (const
|
|
4188
|
+
for (const A of j) {
|
|
4189
4189
|
if (
|
|
4190
4190
|
// If this execution was already checked to be valid with this version
|
|
4191
4191
|
// of state, then let's use it!
|
|
4192
|
-
|
|
4193
|
-
!B(
|
|
4192
|
+
A.stateVersions.get(k.version) || // If the deps for the execution match our current state, then it's valid
|
|
4193
|
+
!B(A.depValuesDiscoveredSoFarDuringAsyncWork)
|
|
4194
4194
|
)
|
|
4195
|
-
return
|
|
4196
|
-
|
|
4195
|
+
return A.stateVersions.set(k.version, !0), A;
|
|
4196
|
+
A.stateVersions.set(k.version, !1);
|
|
4197
4197
|
}
|
|
4198
4198
|
}
|
|
4199
4199
|
function M(x) {
|
|
4200
4200
|
return c.get(x);
|
|
4201
4201
|
}
|
|
4202
|
-
function F(x, k, j, B,
|
|
4202
|
+
function F(x, k, j, B, A) {
|
|
4203
4203
|
c.set(x, {
|
|
4204
4204
|
depValuesDiscoveredSoFarDuringAsyncWork: B,
|
|
4205
4205
|
executionID: k,
|
|
4206
4206
|
loadingLoadable: j,
|
|
4207
|
-
stateVersions: /* @__PURE__ */ new Map([[
|
|
4207
|
+
stateVersions: /* @__PURE__ */ new Map([[A.version, !0]])
|
|
4208
4208
|
});
|
|
4209
4209
|
}
|
|
4210
4210
|
function Y(x, k, j) {
|
|
@@ -4213,7 +4213,7 @@ function du(e) {
|
|
|
4213
4213
|
B != null && (B.depValuesDiscoveredSoFarDuringAsyncWork = j);
|
|
4214
4214
|
}
|
|
4215
4215
|
}
|
|
4216
|
-
function
|
|
4216
|
+
function P(x) {
|
|
4217
4217
|
c.delete(x);
|
|
4218
4218
|
}
|
|
4219
4219
|
function G(x, k) {
|
|
@@ -4234,7 +4234,7 @@ function du(e) {
|
|
|
4234
4234
|
function oe(x) {
|
|
4235
4235
|
if (ir.includes(n)) {
|
|
4236
4236
|
const k = `Recoil selector has circular dependencies: ${ir.slice(ir.indexOf(n)).join(" → ")}`;
|
|
4237
|
-
return
|
|
4237
|
+
return Fr(Re(k));
|
|
4238
4238
|
}
|
|
4239
4239
|
ir.push(n);
|
|
4240
4240
|
try {
|
|
@@ -4246,8 +4246,8 @@ function du(e) {
|
|
|
4246
4246
|
function de(x, k) {
|
|
4247
4247
|
const j = k.atomValues.get(n);
|
|
4248
4248
|
return j ?? a.get((B) => {
|
|
4249
|
-
var
|
|
4250
|
-
return typeof B != "string" && (process.env.NODE_ENV !== "production" ? It(!1, "Cache nodeKey is type string") : It(!1)), (
|
|
4249
|
+
var A;
|
|
4250
|
+
return typeof B != "string" && (process.env.NODE_ENV !== "production" ? It(!1, "Cache nodeKey is type string") : It(!1)), (A = r0(x, k, B)) === null || A === void 0 ? void 0 : A.contents;
|
|
4251
4251
|
});
|
|
4252
4252
|
}
|
|
4253
4253
|
function we(x, k) {
|
|
@@ -4260,8 +4260,8 @@ function du(e) {
|
|
|
4260
4260
|
t == null && (process.env.NODE_ENV !== "production" ? It(!1, "Recoil Value can never be null") : It(!1));
|
|
4261
4261
|
for (const B of i) {
|
|
4262
4262
|
var j;
|
|
4263
|
-
const
|
|
4264
|
-
(j =
|
|
4263
|
+
const A = l0(B);
|
|
4264
|
+
(j = A.clearCache) === null || j === void 0 || j.call(A, x, k);
|
|
4265
4265
|
}
|
|
4266
4266
|
i.clear(), $(k), a.clear(), Ga(x, t);
|
|
4267
4267
|
}
|
|
@@ -4271,14 +4271,14 @@ function du(e) {
|
|
|
4271
4271
|
peek: de,
|
|
4272
4272
|
get: we,
|
|
4273
4273
|
set: (k, j, B) => {
|
|
4274
|
-
let
|
|
4274
|
+
let A = !1;
|
|
4275
4275
|
const V = /* @__PURE__ */ new Map();
|
|
4276
4276
|
function W({
|
|
4277
4277
|
key: K
|
|
4278
4278
|
}) {
|
|
4279
|
-
if (
|
|
4279
|
+
if (A)
|
|
4280
4280
|
throw Re("Recoil: Async selector sets are not currently supported.");
|
|
4281
|
-
const Se =
|
|
4281
|
+
const Se = Ur(k, j, K);
|
|
4282
4282
|
if (Se.state === "hasValue")
|
|
4283
4283
|
return Se.contents;
|
|
4284
4284
|
if (Se.state === "loading") {
|
|
@@ -4288,7 +4288,7 @@ function du(e) {
|
|
|
4288
4288
|
throw Se.contents;
|
|
4289
4289
|
}
|
|
4290
4290
|
function z(K, Se) {
|
|
4291
|
-
if (
|
|
4291
|
+
if (A) {
|
|
4292
4292
|
const Fe = "Recoil: Async selector sets are not currently supported.";
|
|
4293
4293
|
throw lt(Fe), Re(Fe);
|
|
4294
4294
|
}
|
|
@@ -4309,7 +4309,7 @@ function du(e) {
|
|
|
4309
4309
|
}, B);
|
|
4310
4310
|
if (he !== void 0)
|
|
4311
4311
|
throw He(he) ? Re("Recoil: Async selector sets are not currently supported.") : Re("Recoil: selector set should be a void function.");
|
|
4312
|
-
return
|
|
4312
|
+
return A = !0, V;
|
|
4313
4313
|
},
|
|
4314
4314
|
init: d,
|
|
4315
4315
|
invalidate: $,
|
|
@@ -4428,21 +4428,21 @@ function E0(e) {
|
|
|
4428
4428
|
isSet: !0,
|
|
4429
4429
|
loadable: G($)
|
|
4430
4430
|
} : x;
|
|
4431
|
-
}, M = gn, F = !0, Y = !1,
|
|
4431
|
+
}, M = gn, F = !0, Y = !1, P = null;
|
|
4432
4432
|
const oe = ($) => (U) => {
|
|
4433
4433
|
if (F) {
|
|
4434
4434
|
const x = G(R), k = x.state === "hasValue" ? x.contents : gn;
|
|
4435
4435
|
M = typeof U == "function" ? (
|
|
4436
4436
|
// cast to any because we can't restrict T from being a function without losing support for opaque types
|
|
4437
4437
|
U(k)
|
|
4438
|
-
) : U, He(M) && (M = M.then((j) => (
|
|
4438
|
+
) : U, He(M) && (M = M.then((j) => (P = {
|
|
4439
4439
|
effect: $,
|
|
4440
4440
|
value: j
|
|
4441
4441
|
}, j)));
|
|
4442
4442
|
} else {
|
|
4443
4443
|
if (He(U))
|
|
4444
4444
|
throw Re("Setting atoms to async values is not implemented.");
|
|
4445
|
-
typeof U != "function" && (
|
|
4445
|
+
typeof U != "function" && (P = {
|
|
4446
4446
|
effect: $,
|
|
4447
4447
|
value: ar(U)
|
|
4448
4448
|
}), Ka(h, R, typeof U == "function" ? (x) => {
|
|
@@ -4451,7 +4451,7 @@ function E0(e) {
|
|
|
4451
4451
|
U(x)
|
|
4452
4452
|
// flowlint-line unclear-type:off
|
|
4453
4453
|
);
|
|
4454
|
-
return
|
|
4454
|
+
return P = {
|
|
4455
4455
|
effect: $,
|
|
4456
4456
|
value: k
|
|
4457
4457
|
}, k;
|
|
@@ -4464,15 +4464,15 @@ function E0(e) {
|
|
|
4464
4464
|
} = h.subscribeToTransactions((j) => {
|
|
4465
4465
|
var B;
|
|
4466
4466
|
let {
|
|
4467
|
-
currentTree:
|
|
4467
|
+
currentTree: A,
|
|
4468
4468
|
previousTree: V
|
|
4469
4469
|
} = j.getState();
|
|
4470
|
-
V || (lt("Transaction subscribers notified without a next tree being present -- this is a bug in Recoil"), V =
|
|
4471
|
-
const W = (B =
|
|
4470
|
+
V || (lt("Transaction subscribers notified without a next tree being present -- this is a bug in Recoil"), V = A);
|
|
4471
|
+
const W = (B = A.atomValues.get(t)) !== null && B !== void 0 ? B : i;
|
|
4472
4472
|
if (W.state === "hasValue") {
|
|
4473
4473
|
var z, J, he, K;
|
|
4474
4474
|
const Se = W.contents, Ie = (z = V.atomValues.get(t)) !== null && z !== void 0 ? z : i, Ke = Ie.state === "hasValue" ? Ie.contents : gn;
|
|
4475
|
-
((J =
|
|
4475
|
+
((J = P) === null || J === void 0 ? void 0 : J.effect) !== $ || ((he = P) === null || he === void 0 ? void 0 : he.value) !== Se ? U(Se, Ke, !A.atomValues.has(t)) : ((K = P) === null || K === void 0 ? void 0 : K.effect) === $ && (P = null);
|
|
4476
4476
|
}
|
|
4477
4477
|
}, t);
|
|
4478
4478
|
l.set(h, [...(x = l.get(h)) !== null && x !== void 0 ? x : [], k]);
|
|
@@ -4517,7 +4517,7 @@ function E0(e) {
|
|
|
4517
4517
|
if (a != null)
|
|
4518
4518
|
return a;
|
|
4519
4519
|
if (n == null)
|
|
4520
|
-
return
|
|
4520
|
+
return Ro(`Tried to restore a persisted value for atom ${t} but it has no persistence settings.`), i;
|
|
4521
4521
|
const y = v.nonvalidatedAtoms.get(t), S = n.validator(y, gn);
|
|
4522
4522
|
return a = S instanceof tn ? i : Tn(S), a;
|
|
4523
4523
|
} else
|
|
@@ -4648,16 +4648,16 @@ const {
|
|
|
4648
4648
|
LRUCache: Wa
|
|
4649
4649
|
} = au, {
|
|
4650
4650
|
MapCache: N0
|
|
4651
|
-
} = L0,
|
|
4651
|
+
} = L0, zr = {
|
|
4652
4652
|
equality: "reference",
|
|
4653
4653
|
eviction: "none",
|
|
4654
4654
|
maxSize: 1 / 0
|
|
4655
4655
|
};
|
|
4656
4656
|
function k0({
|
|
4657
|
-
equality: e =
|
|
4658
|
-
eviction: t =
|
|
4659
|
-
maxSize: n =
|
|
4660
|
-
} =
|
|
4657
|
+
equality: e = zr.equality,
|
|
4658
|
+
eviction: t = zr.eviction,
|
|
4659
|
+
maxSize: n = zr.maxSize
|
|
4660
|
+
} = zr) {
|
|
4661
4661
|
const r = A0(e);
|
|
4662
4662
|
return P0(t, n, r);
|
|
4663
4663
|
}
|
|
@@ -4666,7 +4666,7 @@ function A0(e) {
|
|
|
4666
4666
|
case "reference":
|
|
4667
4667
|
return (t) => t;
|
|
4668
4668
|
case "value":
|
|
4669
|
-
return (t) =>
|
|
4669
|
+
return (t) => Do(t);
|
|
4670
4670
|
}
|
|
4671
4671
|
throw Re(`Unrecognized equality policy ${e}`);
|
|
4672
4672
|
}
|
|
@@ -4713,7 +4713,7 @@ function I0(e) {
|
|
|
4713
4713
|
) : new Promise(() => {
|
|
4714
4714
|
}), f = pu({
|
|
4715
4715
|
...c,
|
|
4716
|
-
key: `${e.key}__${(s =
|
|
4716
|
+
key: `${e.key}__${(s = Do(o)) !== null && s !== void 0 ? s : "void"}`,
|
|
4717
4717
|
default: typeof u == "function" ? (
|
|
4718
4718
|
// The default was parameterized
|
|
4719
4719
|
// Flow doesn't know that T isn't a function, so we need to case to any
|
|
@@ -4757,7 +4757,7 @@ function j0(e) {
|
|
|
4757
4757
|
}
|
|
4758
4758
|
if (i != null)
|
|
4759
4759
|
return i;
|
|
4760
|
-
const a = `${e.key}__selectorFamily/${(s =
|
|
4760
|
+
const a = `${e.key}__selectorFamily/${(s = Do(o, {
|
|
4761
4761
|
// It is possible to use functions in parameters if the user uses
|
|
4762
4762
|
// a cache with reference equality thanks to the incrementing index.
|
|
4763
4763
|
allowFunctions: !0
|
|
@@ -4821,7 +4821,7 @@ const {
|
|
|
4821
4821
|
loadableWithPromise: vu,
|
|
4822
4822
|
loadableWithValue: yu
|
|
4823
4823
|
} = wr;
|
|
4824
|
-
function
|
|
4824
|
+
function jo(e, t) {
|
|
4825
4825
|
const n = Array(t.length).fill(void 0), r = Array(t.length).fill(void 0);
|
|
4826
4826
|
for (const [o, s] of t.entries())
|
|
4827
4827
|
try {
|
|
@@ -4834,7 +4834,7 @@ function Do(e, t) {
|
|
|
4834
4834
|
function W0(e) {
|
|
4835
4835
|
return e != null && !He(e);
|
|
4836
4836
|
}
|
|
4837
|
-
function
|
|
4837
|
+
function Bo(e) {
|
|
4838
4838
|
return Array.isArray(e) ? e : Object.getOwnPropertyNames(e).map((t) => e[t]);
|
|
4839
4839
|
}
|
|
4840
4840
|
function Xs(e, t) {
|
|
@@ -4867,7 +4867,7 @@ const q0 = sn({
|
|
|
4867
4867
|
get: (e) => ({
|
|
4868
4868
|
get: t
|
|
4869
4869
|
}) => {
|
|
4870
|
-
const n =
|
|
4870
|
+
const n = Bo(e), [r, o] = jo(t, n);
|
|
4871
4871
|
return Vn(e, r, o);
|
|
4872
4872
|
},
|
|
4873
4873
|
dangerouslyAllowMutability: !0
|
|
@@ -4876,7 +4876,7 @@ const q0 = sn({
|
|
|
4876
4876
|
get: (e) => ({
|
|
4877
4877
|
get: t
|
|
4878
4878
|
}) => {
|
|
4879
|
-
const n =
|
|
4879
|
+
const n = Bo(e), [r, o] = jo(t, n);
|
|
4880
4880
|
return o.some((s) => !He(s)) ? Vn(e, r, o) : new Promise((s) => {
|
|
4881
4881
|
for (const [i, a] of o.entries())
|
|
4882
4882
|
He(a) && a.then((l) => {
|
|
@@ -4892,7 +4892,7 @@ const q0 = sn({
|
|
|
4892
4892
|
get: (e) => ({
|
|
4893
4893
|
get: t
|
|
4894
4894
|
}) => {
|
|
4895
|
-
const n =
|
|
4895
|
+
const n = Bo(e), [r, o] = jo(t, n);
|
|
4896
4896
|
if (o.every((i) => i == null))
|
|
4897
4897
|
return Xs(e, r);
|
|
4898
4898
|
const s = o.find(W0);
|
|
@@ -4906,7 +4906,7 @@ const q0 = sn({
|
|
|
4906
4906
|
get: (e) => ({
|
|
4907
4907
|
get: t
|
|
4908
4908
|
}) => {
|
|
4909
|
-
const n =
|
|
4909
|
+
const n = Bo(e), [r, o] = jo(t, n);
|
|
4910
4910
|
return o.every((s) => !He(s)) ? Vn(e, r, o) : Promise.all(o.map((s, i) => He(s) ? s.then((a) => {
|
|
4911
4911
|
r[i] = a, o[i] = void 0;
|
|
4912
4912
|
}).catch((a) => {
|
|
@@ -4945,9 +4945,9 @@ const {
|
|
|
4945
4945
|
isRecoilValue: sv
|
|
4946
4946
|
} = bn, {
|
|
4947
4947
|
retentionZone: iv
|
|
4948
|
-
} =
|
|
4948
|
+
} = To, {
|
|
4949
4949
|
freshSnapshot: av
|
|
4950
|
-
} =
|
|
4950
|
+
} = Po, {
|
|
4951
4951
|
useRecoilState: lv,
|
|
4952
4952
|
useRecoilState_TRANSITION_SUPPORT_UNSTABLE: cv,
|
|
4953
4953
|
useRecoilStateLoadable: uv,
|
|
@@ -5019,14 +5019,14 @@ var Qn = {
|
|
|
5019
5019
|
// Memory Management
|
|
5020
5020
|
useRetain: Li,
|
|
5021
5021
|
retentionZone: iv
|
|
5022
|
-
}, xv = Qn.RecoilRoot, pe = Qn.atom,
|
|
5022
|
+
}, xv = Qn.RecoilRoot, pe = Qn.atom, Vo = Qn.selector, H = Qn.useRecoilValue, te = Qn.useRecoilState, qe = Qn.useResetRecoilState;
|
|
5023
5023
|
const Tv = (e, t) => {
|
|
5024
5024
|
const n = e[t];
|
|
5025
5025
|
return n ? typeof n == "function" ? n() : Promise.resolve(n) : new Promise((r, o) => {
|
|
5026
5026
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(o.bind(null, new Error("Unknown variable dynamic import: " + t)));
|
|
5027
5027
|
});
|
|
5028
5028
|
}, Lv = "mi-components";
|
|
5029
|
-
let
|
|
5029
|
+
let Xr, Su, Ct = !1, Js = !1;
|
|
5030
5030
|
const Wt = (e, t = "") => () => {
|
|
5031
5031
|
}, Nv = (e, t) => () => {
|
|
5032
5032
|
}, kv = "{visibility:hidden}.hydrated{visibility:inherit}", Ya = "http://www.w3.org/1999/xlink", qa = {}, Av = "http://www.w3.org/2000/svg", Pv = "http://www.w3.org/1999/xhtml", Mv = (e) => e != null, Ii = (e) => (e = typeof e, e === "object" || e === "function");
|
|
@@ -5072,12 +5072,12 @@ const Iv = (e, t, ...n) => {
|
|
|
5072
5072
|
const r = at.ce(t, n);
|
|
5073
5073
|
return e.dispatchEvent(r), r;
|
|
5074
5074
|
}, Za = /* @__PURE__ */ new WeakMap(), Bv = (e, t, n) => {
|
|
5075
|
-
let r =
|
|
5076
|
-
iy && n ? (r = r || new CSSStyleSheet(), typeof r == "string" ? r = t : r.replaceSync(t)) : r = t,
|
|
5075
|
+
let r = oo.get(e);
|
|
5076
|
+
iy && n ? (r = r || new CSSStyleSheet(), typeof r == "string" ? r = t : r.replaceSync(t)) : r = t, oo.set(e, r);
|
|
5077
5077
|
}, Vv = (e, t, n, r) => {
|
|
5078
5078
|
var o;
|
|
5079
5079
|
let s = Cu(t);
|
|
5080
|
-
const i =
|
|
5080
|
+
const i = oo.get(s);
|
|
5081
5081
|
if (e = e.nodeType === 11 ? e : Ot, i)
|
|
5082
5082
|
if (typeof i == "string") {
|
|
5083
5083
|
e = e.head || e;
|
|
@@ -5134,22 +5134,22 @@ const Iv = (e, t, ...n) => {
|
|
|
5134
5134
|
r in i || Qa(o, r, s[r], void 0, n, t.$flags$);
|
|
5135
5135
|
for (r in i)
|
|
5136
5136
|
Qa(o, r, s[r], i[r], n, t.$flags$);
|
|
5137
|
-
},
|
|
5137
|
+
}, ro = (e, t, n, r) => {
|
|
5138
5138
|
const o = t.$children$[n];
|
|
5139
5139
|
let s = 0, i, a;
|
|
5140
5140
|
if (o.$text$ !== null)
|
|
5141
5141
|
i = o.$elm$ = Ot.createTextNode(o.$text$);
|
|
5142
5142
|
else {
|
|
5143
|
-
if (Ct || (Ct = o.$tag$ === "svg"), i = o.$elm$ = Ot.createElementNS(Ct ? Av : Pv, o.$tag$), Ct && o.$tag$ === "foreignObject" && (Ct = !1), Eu(null, o, Ct), Mv(
|
|
5143
|
+
if (Ct || (Ct = o.$tag$ === "svg"), i = o.$elm$ = Ot.createElementNS(Ct ? Av : Pv, o.$tag$), Ct && o.$tag$ === "foreignObject" && (Ct = !1), Eu(null, o, Ct), Mv(Xr) && i["s-si"] !== Xr && i.classList.add(i["s-si"] = Xr), o.$children$)
|
|
5144
5144
|
for (s = 0; s < o.$children$.length; ++s)
|
|
5145
|
-
a =
|
|
5145
|
+
a = ro(e, o, s), a && i.appendChild(a);
|
|
5146
5146
|
o.$tag$ === "svg" ? Ct = !1 : i.tagName === "foreignObject" && (Ct = !0);
|
|
5147
5147
|
}
|
|
5148
5148
|
return i;
|
|
5149
5149
|
}, Ru = (e, t, n, r, o, s) => {
|
|
5150
5150
|
let i = e, a;
|
|
5151
5151
|
for (i.shadowRoot && i.tagName === Su && (i = i.shadowRoot); o <= s; ++o)
|
|
5152
|
-
r[o] && (a =
|
|
5152
|
+
r[o] && (a = ro(null, n, o), a && (r[o].$elm$ = a, i.insertBefore(a, t)));
|
|
5153
5153
|
}, _u = (e, t, n, r, o) => {
|
|
5154
5154
|
for (; t <= n; ++t)
|
|
5155
5155
|
(r = e[t]) && (o = r.$elm$, xu(r), o.remove());
|
|
@@ -5164,13 +5164,13 @@ const Iv = (e, t, ...n) => {
|
|
|
5164
5164
|
d = r[++s];
|
|
5165
5165
|
else if (p == null)
|
|
5166
5166
|
p = r[--f];
|
|
5167
|
-
else if (
|
|
5167
|
+
else if (Gr(c, d))
|
|
5168
5168
|
In(c, d), c = t[++o], d = r[++s];
|
|
5169
|
-
else if (
|
|
5169
|
+
else if (Gr(u, p))
|
|
5170
5170
|
In(u, p), u = t[--l], p = r[--f];
|
|
5171
|
-
else if (
|
|
5171
|
+
else if (Gr(c, p))
|
|
5172
5172
|
In(c, p), e.insertBefore(c.$elm$, u.$elm$.nextSibling), c = t[++o], p = r[--f];
|
|
5173
|
-
else if (
|
|
5173
|
+
else if (Gr(u, d))
|
|
5174
5174
|
In(u, d), e.insertBefore(u.$elm$, c.$elm$), u = t[--l], d = r[++s];
|
|
5175
5175
|
else {
|
|
5176
5176
|
for (i = -1, a = o; a <= l; ++a)
|
|
@@ -5178,20 +5178,20 @@ const Iv = (e, t, ...n) => {
|
|
|
5178
5178
|
i = a;
|
|
5179
5179
|
break;
|
|
5180
5180
|
}
|
|
5181
|
-
i >= 0 ? (b = t[i], b.$tag$ !== d.$tag$ ? g =
|
|
5181
|
+
i >= 0 ? (b = t[i], b.$tag$ !== d.$tag$ ? g = ro(t && t[s], n, i) : (In(b, d), t[i] = void 0, g = b.$elm$), d = r[++s]) : (g = ro(t && t[s], n, s), d = r[++s]), g && c.$elm$.parentNode.insertBefore(g, c.$elm$);
|
|
5182
5182
|
}
|
|
5183
5183
|
o > l ? Ru(e, r[f + 1] == null ? null : r[f + 1].$elm$, n, r, s, f) : s > f && _u(t, o, l);
|
|
5184
|
-
},
|
|
5184
|
+
}, Gr = (e, t) => e.$tag$ === t.$tag$ ? e.$key$ === t.$key$ : !1, In = (e, t) => {
|
|
5185
5185
|
const n = t.$elm$ = e.$elm$, r = e.$children$, o = t.$children$, s = t.$tag$, i = t.$text$;
|
|
5186
5186
|
i === null ? (Ct = s === "svg" ? !0 : s === "foreignObject" ? !1 : Ct, s === "slot" || Eu(e, t, Ct), r !== null && o !== null ? Hv(n, r, t, o) : o !== null ? (e.$text$ !== null && (n.textContent = ""), Ru(n, null, t, o, 0, o.length - 1)) : r !== null && _u(r, 0, r.length - 1), Ct && s === "svg" && (Ct = !1)) : e.$text$ !== i && (n.data = i);
|
|
5187
5187
|
}, xu = (e) => {
|
|
5188
5188
|
e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(xu);
|
|
5189
5189
|
}, zv = (e, t) => {
|
|
5190
5190
|
const n = e.$hostElement$, r = e.$cmpMeta$, o = e.$vnode$ || ei(null, null), s = $v(t) ? t : Iv(null, null, t);
|
|
5191
|
-
Su = n.tagName, r.$attrsToReflect$ && (s.$attrs$ = s.$attrs$ || {}, r.$attrsToReflect$.map(([i, a]) => s.$attrs$[a] = n[i])), s.$tag$ = null, s.$flags$ |= 4, e.$vnode$ = s, s.$elm$ = o.$elm$ = n.shadowRoot || n,
|
|
5191
|
+
Su = n.tagName, r.$attrsToReflect$ && (s.$attrs$ = s.$attrs$ || {}, r.$attrsToReflect$.map(([i, a]) => s.$attrs$[a] = n[i])), s.$tag$ = null, s.$flags$ |= 4, e.$vnode$ = s, s.$elm$ = o.$elm$ = n.shadowRoot || n, Xr = n["s-sc"], In(o, s);
|
|
5192
5192
|
}, Tu = (e, t) => {
|
|
5193
5193
|
t && !e.$onRenderResolve$ && t["s-p"] && t["s-p"].push(new Promise((n) => e.$onRenderResolve$ = n));
|
|
5194
|
-
},
|
|
5194
|
+
}, Fo = (e, t) => {
|
|
5195
5195
|
if (e.$flags$ |= 16, e.$flags$ & 4) {
|
|
5196
5196
|
e.$flags$ |= 512;
|
|
5197
5197
|
return;
|
|
@@ -5219,11 +5219,11 @@ const Iv = (e, t, ...n) => {
|
|
|
5219
5219
|
return null;
|
|
5220
5220
|
}, Yv = (e) => {
|
|
5221
5221
|
const t = e.$cmpMeta$.$tagName$, n = e.$hostElement$, r = Wt("postUpdate", t), o = e.$lazyInstance$, s = e.$ancestorComponent$;
|
|
5222
|
-
yn(o, "componentDidRender"), e.$flags$ & 64 ? r() : (e.$flags$ |= 64, Nu(n), yn(o, "componentDidLoad"), r(), e.$onReadyResolve$(n), s || Lu()), e.$onInstanceResolve$(n), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && $i(() =>
|
|
5222
|
+
yn(o, "componentDidRender"), e.$flags$ & 64 ? r() : (e.$flags$ |= 64, Nu(n), yn(o, "componentDidLoad"), r(), e.$onReadyResolve$(n), s || Lu()), e.$onInstanceResolve$(n), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && $i(() => Fo(e, !1)), e.$flags$ &= -517;
|
|
5223
5223
|
}, p3 = (e) => {
|
|
5224
5224
|
{
|
|
5225
5225
|
const t = an(e), n = t.$hostElement$.isConnected;
|
|
5226
|
-
return n && (t.$flags$ & 18) === 2 &&
|
|
5226
|
+
return n && (t.$flags$ & 18) === 2 && Fo(t, !1), n;
|
|
5227
5227
|
}
|
|
5228
5228
|
}, Lu = (e) => {
|
|
5229
5229
|
Nu(Ot.documentElement), $i(() => wu(Lr, "appload", { detail: { namespace: Lv } }));
|
|
@@ -5249,7 +5249,7 @@ const Iv = (e, t, ...n) => {
|
|
|
5249
5249
|
}
|
|
5250
5250
|
});
|
|
5251
5251
|
}
|
|
5252
|
-
(a & 18) === 2 &&
|
|
5252
|
+
(a & 18) === 2 && Fo(o, !1);
|
|
5253
5253
|
}
|
|
5254
5254
|
}, ku = (e, t, n) => {
|
|
5255
5255
|
if (t.$members$) {
|
|
@@ -5317,13 +5317,13 @@ const Iv = (e, t, ...n) => {
|
|
|
5317
5317
|
if (o.style) {
|
|
5318
5318
|
let a = o.style;
|
|
5319
5319
|
const l = Cu(n);
|
|
5320
|
-
if (!
|
|
5320
|
+
if (!oo.has(l)) {
|
|
5321
5321
|
const c = Wt("registerStyles", n.$tagName$);
|
|
5322
5322
|
Bv(l, a, !!(n.$flags$ & 1)), c();
|
|
5323
5323
|
}
|
|
5324
5324
|
}
|
|
5325
5325
|
}
|
|
5326
|
-
const s = t.$ancestorComponent$, i = () =>
|
|
5326
|
+
const s = t.$ancestorComponent$, i = () => Fo(t, !0);
|
|
5327
5327
|
s && s["s-rc"] ? s["s-rc"].push(i) : i();
|
|
5328
5328
|
}, Au = (e) => {
|
|
5329
5329
|
yn(e, "connectedCallback");
|
|
@@ -5422,8 +5422,8 @@ const Iv = (e, t, ...n) => {
|
|
|
5422
5422
|
if (s)
|
|
5423
5423
|
return s[r];
|
|
5424
5424
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
5425
|
-
return Tv(/* @__PURE__ */ Object.assign({ "./combo-box-item.entry.js": () => import("./combo-box-item.entry-
|
|
5426
|
-
},
|
|
5425
|
+
return Tv(/* @__PURE__ */ Object.assign({ "./combo-box-item.entry.js": () => import("./combo-box-item.entry-83b62c1a.mjs"), "./mi-card_2.entry.js": () => import("./mi-card_2.entry-98e24fc1.mjs"), "./mi-chip.entry.js": () => import("./mi-chip.entry-0e024d93.mjs"), "./mi-column.entry.js": () => import("./mi-column.entry-ea24ed19.mjs"), "./mi-combo-box.entry.js": () => import("./mi-combo-box.entry-70920c70.mjs"), "./mi-data-table.entry.js": () => import("./mi-data-table.entry-f744b2b0.mjs"), "./mi-distance_2.entry.js": () => import("./mi-distance_2.entry-7a927902.mjs"), "./mi-dropdown-item.entry.js": () => import("./mi-dropdown-item.entry-375d34be.mjs"), "./mi-dropdown.entry.js": () => import("./mi-dropdown.entry-09b573ed.mjs"), "./mi-floor-selector.entry.js": () => import("./mi-floor-selector.entry-554875da.mjs"), "./mi-keyboard.entry.js": () => import("./mi-keyboard.entry-b52f9f9a.mjs"), "./mi-list-item-category.entry.js": () => import("./mi-list-item-category.entry-7afd1c89.mjs"), "./mi-list-item-location.entry.js": () => import("./mi-list-item-location.entry-39970cf2.mjs"), "./mi-list.entry.js": () => import("./mi-list.entry-40e9a8be.mjs"), "./mi-location-booking.entry.js": () => import("./mi-location-booking.entry-d0482a06.mjs"), "./mi-location-info.entry.js": () => import("./mi-location-info.entry-6155ea6f.mjs"), "./mi-map-googlemaps.entry.js": () => import("./mi-map-googlemaps.entry-9cb43f9c.mjs"), "./mi-map-mapbox.entry.js": () => import("./mi-map-mapbox.entry-e4a62317.mjs"), "./mi-metric-card.entry.js": () => import("./mi-metric-card.entry-7952cdc3.mjs"), "./mi-my-position.entry.js": () => import("./mi-my-position.entry-481a9fa2.mjs"), "./mi-notification.entry.js": () => import("./mi-notification.entry-2a9b40c6.mjs"), "./mi-route-instructions-heading.entry.js": () => import("./mi-route-instructions-heading.entry-5afa50d6.mjs"), "./mi-route-instructions-maneuver-legacy.entry.js": () => import("./mi-route-instructions-maneuver-legacy.entry-92303487.mjs"), "./mi-route-instructions-maneuver.entry.js": () => import("./mi-route-instructions-maneuver.entry-80edfa32.mjs"), "./mi-route-instructions-step-legacy.entry.js": () => import("./mi-route-instructions-step-legacy.entry-fd9a1683.mjs"), "./mi-route-instructions-step.entry.js": () => import("./mi-route-instructions-step.entry-9130ff01.mjs"), "./mi-route-instructions.entry.js": () => import("./mi-route-instructions.entry-0c3cc55d.mjs"), "./mi-scroll-buttons.entry.js": () => import("./mi-scroll-buttons.entry-8b58568e.mjs"), "./mi-search.entry.js": () => import("./mi-search.entry-cf951261.mjs"), "./mi-share-sms.entry.js": () => import("./mi-share-sms.entry-2677405d.mjs"), "./mi-step-switcher.entry.js": () => import("./mi-step-switcher.entry-88c1d052.mjs"), "./mi-tab-panel.entry.js": () => import("./mi-tab-panel.entry-fdccecad.mjs"), "./mi-tab.entry.js": () => import("./mi-tab.entry-ef18c2cd.mjs"), "./mi-tabs.entry.js": () => import("./mi-tabs.entry-d223ff6e.mjs"), "./mi-time.entry.js": () => import("./mi-time.entry-6f958c69.mjs") }), `./${o}.entry.js`).then((i) => (tl.set(o, i), i[r]), _n);
|
|
5426
|
+
}, oo = /* @__PURE__ */ new Map(), Lr = typeof window < "u" ? window : {}, Ot = Lr.document || { head: {} }, at = {
|
|
5427
5427
|
$flags$: 0,
|
|
5428
5428
|
$resourcesUrl$: "",
|
|
5429
5429
|
jmp: (e) => e(),
|
|
@@ -5464,7 +5464,7 @@ const Iv = (e, t, ...n) => {
|
|
|
5464
5464
|
console && console[e] && console[e].apply(console, t);
|
|
5465
5465
|
}
|
|
5466
5466
|
};
|
|
5467
|
-
class
|
|
5467
|
+
class so {
|
|
5468
5468
|
constructor(t) {
|
|
5469
5469
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5470
5470
|
this.init(t, n);
|
|
@@ -5497,17 +5497,17 @@ class oo {
|
|
|
5497
5497
|
return o && !this.debug ? null : (typeof t[0] == "string" && (t[0] = `${r}${this.prefix} ${t[0]}`), this.logger[n](t));
|
|
5498
5498
|
}
|
|
5499
5499
|
create(t) {
|
|
5500
|
-
return new
|
|
5500
|
+
return new so(this.logger, {
|
|
5501
5501
|
prefix: `${this.prefix}:${t}:`,
|
|
5502
5502
|
...this.options
|
|
5503
5503
|
});
|
|
5504
5504
|
}
|
|
5505
5505
|
clone(t) {
|
|
5506
|
-
return t = t || this.options, t.prefix = t.prefix || this.prefix, new
|
|
5506
|
+
return t = t || this.options, t.prefix = t.prefix || this.prefix, new so(this.logger, t);
|
|
5507
5507
|
}
|
|
5508
5508
|
}
|
|
5509
|
-
var $t = new
|
|
5510
|
-
class
|
|
5509
|
+
var $t = new so();
|
|
5510
|
+
class Uo {
|
|
5511
5511
|
constructor() {
|
|
5512
5512
|
this.observers = {};
|
|
5513
5513
|
}
|
|
@@ -5583,7 +5583,7 @@ function fy(e, t, n, r) {
|
|
|
5583
5583
|
} = Di(e, t, Object);
|
|
5584
5584
|
o[s] = o[s] || [], r && (o[s] = o[s].concat(n)), r || o[s].push(n);
|
|
5585
5585
|
}
|
|
5586
|
-
function
|
|
5586
|
+
function io(e, t) {
|
|
5587
5587
|
const {
|
|
5588
5588
|
obj: n,
|
|
5589
5589
|
k: r
|
|
@@ -5592,8 +5592,8 @@ function so(e, t) {
|
|
|
5592
5592
|
return n[r];
|
|
5593
5593
|
}
|
|
5594
5594
|
function hy(e, t, n) {
|
|
5595
|
-
const r =
|
|
5596
|
-
return r !== void 0 ? r :
|
|
5595
|
+
const r = io(e, n);
|
|
5596
|
+
return r !== void 0 ? r : io(t, n);
|
|
5597
5597
|
}
|
|
5598
5598
|
function $u(e, t, n) {
|
|
5599
5599
|
for (const r in t)
|
|
@@ -5628,7 +5628,7 @@ function vy(e, t, n) {
|
|
|
5628
5628
|
}
|
|
5629
5629
|
return s;
|
|
5630
5630
|
}
|
|
5631
|
-
function
|
|
5631
|
+
function ao(e, t) {
|
|
5632
5632
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
|
5633
5633
|
if (!e)
|
|
5634
5634
|
return;
|
|
@@ -5654,16 +5654,16 @@ function io(e, t) {
|
|
|
5654
5654
|
return l[a];
|
|
5655
5655
|
}
|
|
5656
5656
|
const c = r.slice(s + i).join(n);
|
|
5657
|
-
return c ?
|
|
5657
|
+
return c ? ao(l, c, n) : void 0;
|
|
5658
5658
|
}
|
|
5659
5659
|
o = o[r[s]];
|
|
5660
5660
|
}
|
|
5661
5661
|
return o;
|
|
5662
5662
|
}
|
|
5663
|
-
function
|
|
5663
|
+
function lo(e) {
|
|
5664
5664
|
return e && e.indexOf("_") > 0 ? e.replace("_", "-") : e;
|
|
5665
5665
|
}
|
|
5666
|
-
class il extends
|
|
5666
|
+
class il extends Uo {
|
|
5667
5667
|
constructor(t) {
|
|
5668
5668
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
5669
5669
|
ns: ["translation"],
|
|
@@ -5683,8 +5683,8 @@ class il extends Fo {
|
|
|
5683
5683
|
const s = o.keySeparator !== void 0 ? o.keySeparator : this.options.keySeparator, i = o.ignoreJSONStructure !== void 0 ? o.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
5684
5684
|
let a = [t, n];
|
|
5685
5685
|
r && typeof r != "string" && (a = a.concat(r)), r && typeof r == "string" && (a = a.concat(s ? r.split(s) : r)), t.indexOf(".") > -1 && (a = t.split("."));
|
|
5686
|
-
const l =
|
|
5687
|
-
return l || !i || typeof r != "string" ? l :
|
|
5686
|
+
const l = io(this.data, a);
|
|
5687
|
+
return l || !i || typeof r != "string" ? l : ao(this.data && this.data[t] && this.data[t][n], r, s);
|
|
5688
5688
|
}
|
|
5689
5689
|
addResource(t, n, r, o) {
|
|
5690
5690
|
let s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
@@ -5709,7 +5709,7 @@ class il extends Fo {
|
|
|
5709
5709
|
silent: !1
|
|
5710
5710
|
}, a = [t, n];
|
|
5711
5711
|
t.indexOf(".") > -1 && (a = t.split("."), o = r, r = n, n = a[1]), this.addNamespaces(n);
|
|
5712
|
-
let l =
|
|
5712
|
+
let l = io(this.data, a) || {};
|
|
5713
5713
|
o ? $u(l, r, s) : l = {
|
|
5714
5714
|
...l,
|
|
5715
5715
|
...r
|
|
@@ -5749,7 +5749,7 @@ var Du = {
|
|
|
5749
5749
|
}
|
|
5750
5750
|
};
|
|
5751
5751
|
const al = {};
|
|
5752
|
-
class
|
|
5752
|
+
class co extends Uo {
|
|
5753
5753
|
constructor(t) {
|
|
5754
5754
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5755
5755
|
super(), dy(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], t, this), this.options = n, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = $t.create("translator");
|
|
@@ -5847,13 +5847,13 @@ class lo extends Fo {
|
|
|
5847
5847
|
d = d.join(R), d && (d = this.extendTranslation(d, t, n, r));
|
|
5848
5848
|
else {
|
|
5849
5849
|
let y = !1, S = !1;
|
|
5850
|
-
const C = n.count !== void 0 && typeof n.count != "string", T =
|
|
5850
|
+
const C = n.count !== void 0 && typeof n.count != "string", T = co.hasDefaultValue(n), N = C ? this.pluralResolver.getSuffix(c, n.count, n) : "", O = n.ordinal && C ? this.pluralResolver.getSuffix(c, n.count, {
|
|
5851
5851
|
ordinal: !1
|
|
5852
5852
|
}) : "", M = n[`defaultValue${N}`] || n[`defaultValue${O}`] || n.defaultValue;
|
|
5853
5853
|
!this.isValidLookup(d) && T && (y = !0, d = M), this.isValidLookup(d) || (S = !0, d = i);
|
|
5854
|
-
const Y = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && S ? void 0 : d,
|
|
5855
|
-
if (S || y ||
|
|
5856
|
-
if (this.logger.log(
|
|
5854
|
+
const Y = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && S ? void 0 : d, P = T && M !== d && this.options.updateMissing;
|
|
5855
|
+
if (S || y || P) {
|
|
5856
|
+
if (this.logger.log(P ? "updateKey" : "missingKey", c, l, i, P ? M : d), s) {
|
|
5857
5857
|
const oe = this.resolve(i, {
|
|
5858
5858
|
...n,
|
|
5859
5859
|
keySeparator: !1
|
|
@@ -5869,7 +5869,7 @@ class lo extends Fo {
|
|
|
5869
5869
|
this.options.saveMissingTo === "all" ? G = this.languageUtils.toResolveHierarchy(n.lng || this.language) : G.push(n.lng || this.language);
|
|
5870
5870
|
const ce = (oe, de, we) => {
|
|
5871
5871
|
const $ = T && we !== d ? we : Y;
|
|
5872
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(oe, l, de, $,
|
|
5872
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(oe, l, de, $, P, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(oe, l, de, $, P, n), this.emit("missingKey", oe, l, de, d);
|
|
5873
5873
|
};
|
|
5874
5874
|
this.options.saveMissing && (this.options.saveMissingPlurals && C ? G.forEach((oe) => {
|
|
5875
5875
|
this.pluralResolver.getSuffixes(oe, n).forEach((de) => {
|
|
@@ -6006,13 +6006,13 @@ class ll {
|
|
|
6006
6006
|
this.options = t, this.supportedLngs = this.options.supportedLngs || !1, this.logger = $t.create("languageUtils");
|
|
6007
6007
|
}
|
|
6008
6008
|
getScriptPartFromCode(t) {
|
|
6009
|
-
if (t =
|
|
6009
|
+
if (t = lo(t), !t || t.indexOf("-") < 0)
|
|
6010
6010
|
return null;
|
|
6011
6011
|
const n = t.split("-");
|
|
6012
6012
|
return n.length === 2 || (n.pop(), n[n.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(n.join("-"));
|
|
6013
6013
|
}
|
|
6014
6014
|
getLanguagePartFromCode(t) {
|
|
6015
|
-
if (t =
|
|
6015
|
+
if (t = lo(t), !t || t.indexOf("-") < 0)
|
|
6016
6016
|
return t;
|
|
6017
6017
|
const n = t.split("-");
|
|
6018
6018
|
return this.formatLanguageCode(n[0]);
|
|
@@ -6261,7 +6261,7 @@ class Ey {
|
|
|
6261
6261
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6262
6262
|
if (this.shouldUseIntlApi())
|
|
6263
6263
|
try {
|
|
6264
|
-
return new Intl.PluralRules(
|
|
6264
|
+
return new Intl.PluralRules(lo(t), {
|
|
6265
6265
|
type: n.ordinal ? "ordinal" : "cardinal"
|
|
6266
6266
|
});
|
|
6267
6267
|
} catch {
|
|
@@ -6301,7 +6301,7 @@ class Ey {
|
|
|
6301
6301
|
}
|
|
6302
6302
|
function ul(e, t, n) {
|
|
6303
6303
|
let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s = hy(e, t, n);
|
|
6304
|
-
return !s && o && typeof n == "string" && (s =
|
|
6304
|
+
return !s && o && typeof n == "string" && (s = ao(e, n, r), s === void 0 && (s = ao(t, n, r))), s;
|
|
6305
6305
|
}
|
|
6306
6306
|
class Ry {
|
|
6307
6307
|
constructor() {
|
|
@@ -6444,7 +6444,7 @@ function Nn(e) {
|
|
|
6444
6444
|
return function(r, o, s) {
|
|
6445
6445
|
const i = o + JSON.stringify(s);
|
|
6446
6446
|
let a = t[i];
|
|
6447
|
-
return a || (a = e(
|
|
6447
|
+
return a || (a = e(lo(o), s), t[i] = a), a(r);
|
|
6448
6448
|
};
|
|
6449
6449
|
}
|
|
6450
6450
|
class xy {
|
|
@@ -6525,7 +6525,7 @@ class xy {
|
|
|
6525
6525
|
function Ty(e, t) {
|
|
6526
6526
|
e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
|
|
6527
6527
|
}
|
|
6528
|
-
class Ly extends
|
|
6528
|
+
class Ly extends Uo {
|
|
6529
6529
|
constructor(t, n, r) {
|
|
6530
6530
|
let o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
6531
6531
|
super(), this.backend = t, this.store = n, this.services = r, this.languageUtils = r.languageUtils, this.options = o, this.logger = $t.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = o.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = o.maxRetries >= 0 ? o.maxRetries : 5, this.retryTimeout = o.retryTimeout >= 1 ? o.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(r, o.backend, o);
|
|
@@ -6721,14 +6721,14 @@ function dl() {
|
|
|
6721
6721
|
function fl(e) {
|
|
6722
6722
|
return typeof e.ns == "string" && (e.ns = [e.ns]), typeof e.fallbackLng == "string" && (e.fallbackLng = [e.fallbackLng]), typeof e.fallbackNS == "string" && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs && e.supportedLngs.indexOf("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), e;
|
|
6723
6723
|
}
|
|
6724
|
-
function
|
|
6724
|
+
function Kr() {
|
|
6725
6725
|
}
|
|
6726
6726
|
function Ny(e) {
|
|
6727
6727
|
Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((n) => {
|
|
6728
6728
|
typeof e[n] == "function" && (e[n] = e[n].bind(e));
|
|
6729
6729
|
});
|
|
6730
6730
|
}
|
|
6731
|
-
class gr extends
|
|
6731
|
+
class gr extends Uo {
|
|
6732
6732
|
constructor() {
|
|
6733
6733
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
|
6734
6734
|
if (super(), this.options = fl(t), this.services = {}, this.logger = $t, this.modules = {
|
|
@@ -6774,7 +6774,7 @@ class gr extends Fo {
|
|
|
6774
6774
|
for (var g = arguments.length, b = new Array(g > 1 ? g - 1 : 0), E = 1; E < g; E++)
|
|
6775
6775
|
b[E - 1] = arguments[E];
|
|
6776
6776
|
t.emit(p, ...b);
|
|
6777
|
-
}), this.modules.languageDetector && (d.languageDetector = s(this.modules.languageDetector), d.languageDetector.init && d.languageDetector.init(d, this.options.detection, this.options)), this.modules.i18nFormat && (d.i18nFormat = s(this.modules.i18nFormat), d.i18nFormat.init && d.i18nFormat.init(this)), this.translator = new
|
|
6777
|
+
}), this.modules.languageDetector && (d.languageDetector = s(this.modules.languageDetector), d.languageDetector.init && d.languageDetector.init(d, this.options.detection, this.options)), this.modules.i18nFormat && (d.i18nFormat = s(this.modules.i18nFormat), d.i18nFormat.init && d.i18nFormat.init(this)), this.translator = new co(this.services, this.options), this.translator.on("*", function(p) {
|
|
6778
6778
|
for (var g = arguments.length, b = new Array(g > 1 ? g - 1 : 0), E = 1; E < g; E++)
|
|
6779
6779
|
b[E - 1] = arguments[E];
|
|
6780
6780
|
t.emit(p, ...b);
|
|
@@ -6782,7 +6782,7 @@ class gr extends Fo {
|
|
|
6782
6782
|
p.init && p.init(this);
|
|
6783
6783
|
});
|
|
6784
6784
|
}
|
|
6785
|
-
if (this.format = this.options.interpolation.format, r || (r =
|
|
6785
|
+
if (this.format = this.options.interpolation.format, r || (r = Kr), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
6786
6786
|
const u = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
6787
6787
|
u.length > 0 && u[0] !== "dev" && (this.options.lng = u[0]);
|
|
6788
6788
|
}
|
|
@@ -6806,7 +6806,7 @@ class gr extends Fo {
|
|
|
6806
6806
|
return this.options.resources || !this.options.initImmediate ? c() : setTimeout(c, 0), l;
|
|
6807
6807
|
}
|
|
6808
6808
|
loadResources(t) {
|
|
6809
|
-
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
6809
|
+
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Kr;
|
|
6810
6810
|
const o = typeof t == "string" ? t : this.language;
|
|
6811
6811
|
if (typeof t == "function" && (r = t), !this.options.resources || this.options.partialBundledLanguages) {
|
|
6812
6812
|
if (o && o.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0))
|
|
@@ -6826,7 +6826,7 @@ class gr extends Fo {
|
|
|
6826
6826
|
}
|
|
6827
6827
|
reloadResources(t, n, r) {
|
|
6828
6828
|
const o = lr();
|
|
6829
|
-
return t || (t = this.languages), n || (n = this.options.ns), r || (r =
|
|
6829
|
+
return t || (t = this.languages), n || (n = this.options.ns), r || (r = Kr), this.services.backendConnector.reload(t, n, (s) => {
|
|
6830
6830
|
o.resolve(), r(s);
|
|
6831
6831
|
}), o;
|
|
6832
6832
|
}
|
|
@@ -6944,7 +6944,7 @@ class gr extends Fo {
|
|
|
6944
6944
|
return new gr(t, n);
|
|
6945
6945
|
}
|
|
6946
6946
|
cloneInstance() {
|
|
6947
|
-
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
6947
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Kr;
|
|
6948
6948
|
const r = t.forkResourceStore;
|
|
6949
6949
|
r && delete t.forkResourceStore;
|
|
6950
6950
|
const o = {
|
|
@@ -6958,7 +6958,7 @@ class gr extends Fo {
|
|
|
6958
6958
|
...this.services
|
|
6959
6959
|
}, s.services.utils = {
|
|
6960
6960
|
hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
|
|
6961
|
-
}, r && (s.store = new il(this.store.data, o), s.services.resourceStore = s.store), s.translator = new
|
|
6961
|
+
}, r && (s.store = new il(this.store.data, o), s.services.resourceStore = s.store), s.translator = new co(s.services, o), s.translator.on("*", function(a) {
|
|
6962
6962
|
for (var l = arguments.length, c = new Array(l > 1 ? l - 1 : 0), u = 1; u < l; u++)
|
|
6963
6963
|
c[u - 1] = arguments[u];
|
|
6964
6964
|
s.emit(a, ...c);
|
|
@@ -6992,15 +6992,15 @@ tt.setDefaultNamespace;
|
|
|
6992
6992
|
tt.hasLoadedNamespace;
|
|
6993
6993
|
tt.loadNamespaces;
|
|
6994
6994
|
tt.loadLanguages;
|
|
6995
|
-
function
|
|
6996
|
-
return
|
|
6995
|
+
function uo() {
|
|
6996
|
+
return uo = Object.assign ? Object.assign.bind() : function(e) {
|
|
6997
6997
|
for (var t = 1; t < arguments.length; t++) {
|
|
6998
6998
|
var n = arguments[t];
|
|
6999
6999
|
for (var r in n)
|
|
7000
7000
|
({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
7001
7001
|
}
|
|
7002
7002
|
return e;
|
|
7003
|
-
},
|
|
7003
|
+
}, uo.apply(null, arguments);
|
|
7004
7004
|
}
|
|
7005
7005
|
function ky() {
|
|
7006
7006
|
if (console && console.warn) {
|
|
@@ -8001,7 +8001,7 @@ const kn = {
|
|
|
8001
8001
|
SetWayfindingLocation: "setWayfindingLocation",
|
|
8002
8002
|
None: "none"
|
|
8003
8003
|
};
|
|
8004
|
-
var oi = { exports: {} },
|
|
8004
|
+
var oi = { exports: {} }, Wr = { exports: {} }, Be = {};
|
|
8005
8005
|
/** @license React v16.13.1
|
|
8006
8006
|
* react-is.production.min.js
|
|
8007
8007
|
*
|
|
@@ -8126,7 +8126,7 @@ function t2() {
|
|
|
8126
8126
|
}
|
|
8127
8127
|
}
|
|
8128
8128
|
}
|
|
8129
|
-
var S = l, C = c, T = a, N = i, O = t, M = u, F = r, Y = g,
|
|
8129
|
+
var S = l, C = c, T = a, N = i, O = t, M = u, F = r, Y = g, P = p, G = n, fe = s, ce = o, oe = f, de = !1;
|
|
8130
8130
|
function we(K) {
|
|
8131
8131
|
return de || (de = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), $(K) || y(K) === l;
|
|
8132
8132
|
}
|
|
@@ -8148,7 +8148,7 @@ function t2() {
|
|
|
8148
8148
|
function B(K) {
|
|
8149
8149
|
return y(K) === r;
|
|
8150
8150
|
}
|
|
8151
|
-
function
|
|
8151
|
+
function A(K) {
|
|
8152
8152
|
return y(K) === g;
|
|
8153
8153
|
}
|
|
8154
8154
|
function V(K) {
|
|
@@ -8166,12 +8166,12 @@ function t2() {
|
|
|
8166
8166
|
function he(K) {
|
|
8167
8167
|
return y(K) === f;
|
|
8168
8168
|
}
|
|
8169
|
-
Ve.AsyncMode = S, Ve.ConcurrentMode = C, Ve.ContextConsumer = T, Ve.ContextProvider = N, Ve.Element = O, Ve.ForwardRef = M, Ve.Fragment = F, Ve.Lazy = Y, Ve.Memo =
|
|
8169
|
+
Ve.AsyncMode = S, Ve.ConcurrentMode = C, Ve.ContextConsumer = T, Ve.ContextProvider = N, Ve.Element = O, Ve.ForwardRef = M, Ve.Fragment = F, Ve.Lazy = Y, Ve.Memo = P, Ve.Portal = G, Ve.Profiler = fe, Ve.StrictMode = ce, Ve.Suspense = oe, Ve.isAsyncMode = we, Ve.isConcurrentMode = $, Ve.isContextConsumer = U, Ve.isContextProvider = x, Ve.isElement = k, Ve.isForwardRef = j, Ve.isFragment = B, Ve.isLazy = A, Ve.isMemo = V, Ve.isPortal = W, Ve.isProfiler = z, Ve.isStrictMode = J, Ve.isSuspense = he, Ve.isValidElementType = v, Ve.typeOf = y;
|
|
8170
8170
|
}()), Ve;
|
|
8171
8171
|
}
|
|
8172
8172
|
var Sl;
|
|
8173
8173
|
function Fu() {
|
|
8174
|
-
return Sl || (Sl = 1, process.env.NODE_ENV === "production" ?
|
|
8174
|
+
return Sl || (Sl = 1, process.env.NODE_ENV === "production" ? Wr.exports = e2() : Wr.exports = t2()), Wr.exports;
|
|
8175
8175
|
}
|
|
8176
8176
|
/*
|
|
8177
8177
|
object-assign
|
|
@@ -8331,7 +8331,7 @@ function o2() {
|
|
|
8331
8331
|
oneOf: T,
|
|
8332
8332
|
oneOfType: O,
|
|
8333
8333
|
shape: Y,
|
|
8334
|
-
exact:
|
|
8334
|
+
exact: P
|
|
8335
8335
|
};
|
|
8336
8336
|
function g($, U) {
|
|
8337
8337
|
return $ === U ? $ !== 0 || 1 / $ === 1 / U : $ !== $ && U !== U;
|
|
@@ -8343,7 +8343,7 @@ function o2() {
|
|
|
8343
8343
|
function E($) {
|
|
8344
8344
|
if (process.env.NODE_ENV !== "production")
|
|
8345
8345
|
var U = {}, x = 0;
|
|
8346
|
-
function k(B,
|
|
8346
|
+
function k(B, A, V, W, z, J, he) {
|
|
8347
8347
|
if (W = W || d, J = J || V, he !== n) {
|
|
8348
8348
|
if (l) {
|
|
8349
8349
|
var K = new Error(
|
|
@@ -8358,18 +8358,18 @@ function o2() {
|
|
|
8358
8358
|
), U[Se] = !0, x++);
|
|
8359
8359
|
}
|
|
8360
8360
|
}
|
|
8361
|
-
return
|
|
8361
|
+
return A[V] == null ? B ? A[V] === null ? new b("The " + z + " `" + J + "` is marked as required " + ("in `" + W + "`, but its value is `null`.")) : new b("The " + z + " `" + J + "` is marked as required in " + ("`" + W + "`, but its value is `undefined`.")) : null : $(A, V, W, z, J);
|
|
8362
8362
|
}
|
|
8363
8363
|
var j = k.bind(null, !1);
|
|
8364
8364
|
return j.isRequired = k.bind(null, !0), j;
|
|
8365
8365
|
}
|
|
8366
8366
|
function R($) {
|
|
8367
|
-
function U(x, k, j, B,
|
|
8367
|
+
function U(x, k, j, B, A, V) {
|
|
8368
8368
|
var W = x[k], z = ce(W);
|
|
8369
8369
|
if (z !== $) {
|
|
8370
8370
|
var J = oe(W);
|
|
8371
8371
|
return new b(
|
|
8372
|
-
"Invalid " + B + " `" +
|
|
8372
|
+
"Invalid " + B + " `" + A + "` of type " + ("`" + J + "` supplied to `" + j + "`, expected ") + ("`" + $ + "`."),
|
|
8373
8373
|
{ expectedType: $ }
|
|
8374
8374
|
);
|
|
8375
8375
|
}
|
|
@@ -8381,16 +8381,16 @@ function o2() {
|
|
|
8381
8381
|
return E(i);
|
|
8382
8382
|
}
|
|
8383
8383
|
function v($) {
|
|
8384
|
-
function U(x, k, j, B,
|
|
8384
|
+
function U(x, k, j, B, A) {
|
|
8385
8385
|
if (typeof $ != "function")
|
|
8386
|
-
return new b("Property `" +
|
|
8386
|
+
return new b("Property `" + A + "` of component `" + j + "` has invalid PropType notation inside arrayOf.");
|
|
8387
8387
|
var V = x[k];
|
|
8388
8388
|
if (!Array.isArray(V)) {
|
|
8389
8389
|
var W = ce(V);
|
|
8390
|
-
return new b("Invalid " + B + " `" +
|
|
8390
|
+
return new b("Invalid " + B + " `" + A + "` of type " + ("`" + W + "` supplied to `" + j + "`, expected an array."));
|
|
8391
8391
|
}
|
|
8392
8392
|
for (var z = 0; z < V.length; z++) {
|
|
8393
|
-
var J = $(V, z, j, B,
|
|
8393
|
+
var J = $(V, z, j, B, A + "[" + z + "]", n);
|
|
8394
8394
|
if (J instanceof Error)
|
|
8395
8395
|
return J;
|
|
8396
8396
|
}
|
|
@@ -8400,9 +8400,9 @@ function o2() {
|
|
|
8400
8400
|
}
|
|
8401
8401
|
function y() {
|
|
8402
8402
|
function $(U, x, k, j, B) {
|
|
8403
|
-
var
|
|
8404
|
-
if (!a(
|
|
8405
|
-
var V = ce(
|
|
8403
|
+
var A = U[x];
|
|
8404
|
+
if (!a(A)) {
|
|
8405
|
+
var V = ce(A);
|
|
8406
8406
|
return new b("Invalid " + j + " `" + B + "` of type " + ("`" + V + "` supplied to `" + k + "`, expected a single ReactElement."));
|
|
8407
8407
|
}
|
|
8408
8408
|
return null;
|
|
@@ -8411,9 +8411,9 @@ function o2() {
|
|
|
8411
8411
|
}
|
|
8412
8412
|
function S() {
|
|
8413
8413
|
function $(U, x, k, j, B) {
|
|
8414
|
-
var
|
|
8415
|
-
if (!e.isValidElementType(
|
|
8416
|
-
var V = ce(
|
|
8414
|
+
var A = U[x];
|
|
8415
|
+
if (!e.isValidElementType(A)) {
|
|
8416
|
+
var V = ce(A);
|
|
8417
8417
|
return new b("Invalid " + j + " `" + B + "` of type " + ("`" + V + "` supplied to `" + k + "`, expected a single ReactElement type."));
|
|
8418
8418
|
}
|
|
8419
8419
|
return null;
|
|
@@ -8421,10 +8421,10 @@ function o2() {
|
|
|
8421
8421
|
return E($);
|
|
8422
8422
|
}
|
|
8423
8423
|
function C($) {
|
|
8424
|
-
function U(x, k, j, B,
|
|
8424
|
+
function U(x, k, j, B, A) {
|
|
8425
8425
|
if (!(x[k] instanceof $)) {
|
|
8426
8426
|
var V = $.name || d, W = we(x[k]);
|
|
8427
|
-
return new b("Invalid " + B + " `" +
|
|
8427
|
+
return new b("Invalid " + B + " `" + A + "` of type " + ("`" + W + "` supplied to `" + j + "`, expected ") + ("instance of `" + V + "`."));
|
|
8428
8428
|
}
|
|
8429
8429
|
return null;
|
|
8430
8430
|
}
|
|
@@ -8435,7 +8435,7 @@ function o2() {
|
|
|
8435
8435
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
|
|
8436
8436
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
8437
8437
|
) : s("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
8438
|
-
function U(x, k, j, B,
|
|
8438
|
+
function U(x, k, j, B, A) {
|
|
8439
8439
|
for (var V = x[k], W = 0; W < $.length; W++)
|
|
8440
8440
|
if (g(V, $[W]))
|
|
8441
8441
|
return null;
|
|
@@ -8443,20 +8443,20 @@ function o2() {
|
|
|
8443
8443
|
var Se = oe(K);
|
|
8444
8444
|
return Se === "symbol" ? String(K) : K;
|
|
8445
8445
|
});
|
|
8446
|
-
return new b("Invalid " + B + " `" +
|
|
8446
|
+
return new b("Invalid " + B + " `" + A + "` of value `" + String(V) + "` " + ("supplied to `" + j + "`, expected one of " + z + "."));
|
|
8447
8447
|
}
|
|
8448
8448
|
return E(U);
|
|
8449
8449
|
}
|
|
8450
8450
|
function N($) {
|
|
8451
|
-
function U(x, k, j, B,
|
|
8451
|
+
function U(x, k, j, B, A) {
|
|
8452
8452
|
if (typeof $ != "function")
|
|
8453
|
-
return new b("Property `" +
|
|
8453
|
+
return new b("Property `" + A + "` of component `" + j + "` has invalid PropType notation inside objectOf.");
|
|
8454
8454
|
var V = x[k], W = ce(V);
|
|
8455
8455
|
if (W !== "object")
|
|
8456
|
-
return new b("Invalid " + B + " `" +
|
|
8456
|
+
return new b("Invalid " + B + " `" + A + "` of type " + ("`" + W + "` supplied to `" + j + "`, expected an object."));
|
|
8457
8457
|
for (var z in V)
|
|
8458
8458
|
if (r(V, z)) {
|
|
8459
|
-
var J = $(V, z, j, B,
|
|
8459
|
+
var J = $(V, z, j, B, A + "." + z, n);
|
|
8460
8460
|
if (J instanceof Error)
|
|
8461
8461
|
return J;
|
|
8462
8462
|
}
|
|
@@ -8474,15 +8474,15 @@ function o2() {
|
|
|
8474
8474
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + de(x) + " at index " + U + "."
|
|
8475
8475
|
), i;
|
|
8476
8476
|
}
|
|
8477
|
-
function k(j, B,
|
|
8477
|
+
function k(j, B, A, V, W) {
|
|
8478
8478
|
for (var z = [], J = 0; J < $.length; J++) {
|
|
8479
|
-
var he = $[J], K = he(j, B,
|
|
8479
|
+
var he = $[J], K = he(j, B, A, V, W, n);
|
|
8480
8480
|
if (K == null)
|
|
8481
8481
|
return null;
|
|
8482
8482
|
K.data && r(K.data, "expectedType") && z.push(K.data.expectedType);
|
|
8483
8483
|
}
|
|
8484
8484
|
var Se = z.length > 0 ? ", expected one of type [" + z.join(", ") + "]" : "";
|
|
8485
|
-
return new b("Invalid " + V + " `" + W + "` supplied to " + ("`" +
|
|
8485
|
+
return new b("Invalid " + V + " `" + W + "` supplied to " + ("`" + A + "`" + Se + "."));
|
|
8486
8486
|
}
|
|
8487
8487
|
return E(k);
|
|
8488
8488
|
}
|
|
@@ -8498,15 +8498,15 @@ function o2() {
|
|
|
8498
8498
|
);
|
|
8499
8499
|
}
|
|
8500
8500
|
function Y($) {
|
|
8501
|
-
function U(x, k, j, B,
|
|
8501
|
+
function U(x, k, j, B, A) {
|
|
8502
8502
|
var V = x[k], W = ce(V);
|
|
8503
8503
|
if (W !== "object")
|
|
8504
|
-
return new b("Invalid " + B + " `" +
|
|
8504
|
+
return new b("Invalid " + B + " `" + A + "` of type `" + W + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
8505
8505
|
for (var z in $) {
|
|
8506
8506
|
var J = $[z];
|
|
8507
8507
|
if (typeof J != "function")
|
|
8508
|
-
return F(j, B,
|
|
8509
|
-
var he = J(V, z, j, B,
|
|
8508
|
+
return F(j, B, A, z, oe(J));
|
|
8509
|
+
var he = J(V, z, j, B, A + "." + z, n);
|
|
8510
8510
|
if (he)
|
|
8511
8511
|
return he;
|
|
8512
8512
|
}
|
|
@@ -8514,22 +8514,22 @@ function o2() {
|
|
|
8514
8514
|
}
|
|
8515
8515
|
return E(U);
|
|
8516
8516
|
}
|
|
8517
|
-
function
|
|
8518
|
-
function U(x, k, j, B,
|
|
8517
|
+
function P($) {
|
|
8518
|
+
function U(x, k, j, B, A) {
|
|
8519
8519
|
var V = x[k], W = ce(V);
|
|
8520
8520
|
if (W !== "object")
|
|
8521
|
-
return new b("Invalid " + B + " `" +
|
|
8521
|
+
return new b("Invalid " + B + " `" + A + "` of type `" + W + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
8522
8522
|
var z = t({}, x[k], $);
|
|
8523
8523
|
for (var J in z) {
|
|
8524
8524
|
var he = $[J];
|
|
8525
8525
|
if (r($, J) && typeof he != "function")
|
|
8526
|
-
return F(j, B,
|
|
8526
|
+
return F(j, B, A, J, oe(he));
|
|
8527
8527
|
if (!he)
|
|
8528
8528
|
return new b(
|
|
8529
|
-
"Invalid " + B + " `" +
|
|
8529
|
+
"Invalid " + B + " `" + A + "` key `" + J + "` supplied to `" + j + "`.\nBad object: " + JSON.stringify(x[k], null, " ") + `
|
|
8530
8530
|
Valid keys: ` + JSON.stringify(Object.keys($), null, " ")
|
|
8531
8531
|
);
|
|
8532
|
-
var K = he(V, J, j, B,
|
|
8532
|
+
var K = he(V, J, j, B, A + "." + J, n);
|
|
8533
8533
|
if (K)
|
|
8534
8534
|
return K;
|
|
8535
8535
|
}
|
|
@@ -8842,7 +8842,7 @@ function Hu({ mapsIndoorsInstance: e }) {
|
|
|
8842
8842
|
}
|
|
8843
8843
|
) : null;
|
|
8844
8844
|
}
|
|
8845
|
-
const
|
|
8845
|
+
const Yr = {
|
|
8846
8846
|
venueSelector: { key: "venue-selector", className: "venue-selector-portal" },
|
|
8847
8847
|
viewSelector: { key: "view-selector", className: "view-selector-portal" },
|
|
8848
8848
|
languageSelector: { key: "language-selector", className: "language-selector-portal" },
|
|
@@ -8869,7 +8869,7 @@ zu.propTypes = {
|
|
|
8869
8869
|
function zu({ mapType: e, mapsIndoorsInstance: t, mapInstance: n, onPositionControl: r, brandingColor: o, devicePosition: s, excludedElements: i = "", isKiosk: a, enableAccessibilityKioskControls: l = !1 }) {
|
|
8870
8870
|
const c = Bi(), u = ge(null), f = ge(null), d = Kt((b) => !i || typeof i != "string" ? !0 : !i.split(",").map((R) => R.trim()).includes(b), [i]), p = vn(() => {
|
|
8871
8871
|
const b = {};
|
|
8872
|
-
for (const [E, R] of Object.entries(
|
|
8872
|
+
for (const [E, R] of Object.entries(Yr))
|
|
8873
8873
|
b[E] = /* @__PURE__ */ m.jsx("div", { className: R.className }, R.key);
|
|
8874
8874
|
return b;
|
|
8875
8875
|
}, []), g = (b) => {
|
|
@@ -8906,10 +8906,10 @@ function zu({ mapType: e, mapsIndoorsInstance: t, mapInstance: n, onPositionCont
|
|
|
8906
8906
|
h && !h.contains(E) && (E.remove(), h.appendChild(E));
|
|
8907
8907
|
};
|
|
8908
8908
|
requestAnimationFrame(() => {
|
|
8909
|
-
d("floorSelector") && b(u.current,
|
|
8909
|
+
d("floorSelector") && b(u.current, Yr.floorSelector.className), d("myPosition") && b(f.current, Yr.myPosition.className);
|
|
8910
8910
|
});
|
|
8911
8911
|
}, [c, a, d]), D(() => {
|
|
8912
|
-
Object.entries(
|
|
8912
|
+
Object.entries(Yr).forEach(([b, E]) => {
|
|
8913
8913
|
if (!E.className)
|
|
8914
8914
|
return;
|
|
8915
8915
|
const R = document.querySelector(`.${E.className}`);
|
|
@@ -8965,7 +8965,7 @@ function zu({ mapType: e, mapsIndoorsInstance: t, mapInstance: n, onPositionCont
|
|
|
8965
8965
|
] });
|
|
8966
8966
|
}
|
|
8967
8967
|
const p2 = Ql(zu);
|
|
8968
|
-
const g2 = Xl(() => import("./MapboxMap-
|
|
8968
|
+
const g2 = Xl(() => import("./MapboxMap-cdeb43d4.mjs")), m2 = Xl(() => import("./GoogleMapsMap-bcdb9da1.mjs")), An = {
|
|
8969
8969
|
Google: "google",
|
|
8970
8970
|
Mapbox: "mapbox"
|
|
8971
8971
|
};
|
|
@@ -9000,7 +9000,7 @@ function Gu({ apiKey: e, gmApiKey: t, mapboxAccessToken: n, center: r, zoom: o,
|
|
|
9000
9000
|
O(ce);
|
|
9001
9001
|
})));
|
|
9002
9002
|
}, [e, g]);
|
|
9003
|
-
const
|
|
9003
|
+
const P = (ce) => {
|
|
9004
9004
|
F(ce);
|
|
9005
9005
|
const oe = new window.mapsindoors.MapsIndoors({
|
|
9006
9006
|
mapView: ce
|
|
@@ -9026,7 +9026,7 @@ function Gu({ apiKey: e, gmApiKey: t, mapboxAccessToken: n, center: r, zoom: o,
|
|
|
9026
9026
|
{
|
|
9027
9027
|
mapsIndoorsInstance: E,
|
|
9028
9028
|
apiKey: t,
|
|
9029
|
-
onInitialized:
|
|
9029
|
+
onInitialized: P,
|
|
9030
9030
|
center: r,
|
|
9031
9031
|
zoom: o,
|
|
9032
9032
|
mapOptions: c,
|
|
@@ -9041,7 +9041,7 @@ function Gu({ apiKey: e, gmApiKey: t, mapboxAccessToken: n, center: r, zoom: o,
|
|
|
9041
9041
|
{
|
|
9042
9042
|
mapsIndoorsInstance: E,
|
|
9043
9043
|
accessToken: n,
|
|
9044
|
-
onInitialized:
|
|
9044
|
+
onInitialized: P,
|
|
9045
9045
|
center: r,
|
|
9046
9046
|
zoom: o,
|
|
9047
9047
|
mapOptions: c,
|
|
@@ -9092,7 +9092,7 @@ const ut = {
|
|
|
9092
9092
|
}
|
|
9093
9093
|
})();
|
|
9094
9094
|
}, [e, t]);
|
|
9095
|
-
},
|
|
9095
|
+
}, Nr = pe({
|
|
9096
9096
|
key: "userPosition",
|
|
9097
9097
|
default: null
|
|
9098
9098
|
}), Vi = pe({
|
|
@@ -9135,7 +9135,7 @@ const ut = {
|
|
|
9135
9135
|
default: null,
|
|
9136
9136
|
dangerouslyAllowMutability: !0
|
|
9137
9137
|
// Solution info needs mutability since it contains methods.
|
|
9138
|
-
}),
|
|
9138
|
+
}), kr = pe({
|
|
9139
9139
|
key: "notificationMessage",
|
|
9140
9140
|
default: null
|
|
9141
9141
|
});
|
|
@@ -9153,7 +9153,7 @@ function Yo() {
|
|
|
9153
9153
|
}
|
|
9154
9154
|
});
|
|
9155
9155
|
}
|
|
9156
|
-
const
|
|
9156
|
+
const Ar = pe({
|
|
9157
9157
|
key: "categories",
|
|
9158
9158
|
default: []
|
|
9159
9159
|
}), zi = pe({
|
|
@@ -9168,7 +9168,7 @@ const kr = pe({
|
|
|
9168
9168
|
}), ln = pe({
|
|
9169
9169
|
key: "currentVenueName",
|
|
9170
9170
|
default: null
|
|
9171
|
-
}),
|
|
9171
|
+
}), Pr = pe({
|
|
9172
9172
|
key: "venues",
|
|
9173
9173
|
default: []
|
|
9174
9174
|
}), Gi = pe({
|
|
@@ -9241,7 +9241,7 @@ const y2 = (e) => {
|
|
|
9241
9241
|
initial3D: 1,
|
|
9242
9242
|
clicked3D: 2,
|
|
9243
9243
|
clicked2D: 3
|
|
9244
|
-
}), S2 =
|
|
9244
|
+
}), S2 = Vo({
|
|
9245
9245
|
key: "currentPitch",
|
|
9246
9246
|
get: ({ get: e }) => {
|
|
9247
9247
|
const t = e(Wo), n = e(Xu);
|
|
@@ -9346,7 +9346,7 @@ function kt(e, t, n) {
|
|
|
9346
9346
|
throw new Error("coordinates must be an Array");
|
|
9347
9347
|
if (e.length < 2)
|
|
9348
9348
|
throw new Error("coordinates must be at least 2 numbers long");
|
|
9349
|
-
if (!
|
|
9349
|
+
if (!fo(e[0]) || !fo(e[1]))
|
|
9350
9350
|
throw new Error("coordinates must contain numbers");
|
|
9351
9351
|
var r = {
|
|
9352
9352
|
type: "Point",
|
|
@@ -9482,7 +9482,7 @@ function A2(e, t, n) {
|
|
|
9482
9482
|
throw new Error("invalid final units");
|
|
9483
9483
|
return e / r * o;
|
|
9484
9484
|
}
|
|
9485
|
-
function
|
|
9485
|
+
function fo(e) {
|
|
9486
9486
|
return !isNaN(e) && e !== null && !Array.isArray(e);
|
|
9487
9487
|
}
|
|
9488
9488
|
function Zi(e) {
|
|
@@ -9496,7 +9496,7 @@ function P2(e) {
|
|
|
9496
9496
|
if (e.length !== 4 && e.length !== 6)
|
|
9497
9497
|
throw new Error("bbox must be an Array of 4 or 6 numbers");
|
|
9498
9498
|
e.forEach(function(t) {
|
|
9499
|
-
if (!
|
|
9499
|
+
if (!fo(t))
|
|
9500
9500
|
throw new Error("bbox must only contain numbers");
|
|
9501
9501
|
});
|
|
9502
9502
|
}
|
|
@@ -9519,7 +9519,7 @@ const I2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9519
9519
|
featureCollection: rn,
|
|
9520
9520
|
geometry: w2,
|
|
9521
9521
|
geometryCollection: _2,
|
|
9522
|
-
isNumber:
|
|
9522
|
+
isNumber: fo,
|
|
9523
9523
|
isObject: Zi,
|
|
9524
9524
|
lengthToDegrees: T2,
|
|
9525
9525
|
lengthToRadians: qi,
|
|
@@ -9661,7 +9661,7 @@ function $2(e, t, n) {
|
|
|
9661
9661
|
s === 0 && n === void 0 ? r = o : r = t(r, o, s);
|
|
9662
9662
|
}), r;
|
|
9663
9663
|
}
|
|
9664
|
-
function
|
|
9664
|
+
function ho(e, t) {
|
|
9665
9665
|
if (e.type === "Feature")
|
|
9666
9666
|
t(e, 0);
|
|
9667
9667
|
else if (e.type === "FeatureCollection")
|
|
@@ -9670,7 +9670,7 @@ function fo(e, t) {
|
|
|
9670
9670
|
}
|
|
9671
9671
|
function D2(e, t, n) {
|
|
9672
9672
|
var r = n;
|
|
9673
|
-
return
|
|
9673
|
+
return ho(e, function(o, s) {
|
|
9674
9674
|
s === 0 && n === void 0 ? r = o : r = t(r, o, s);
|
|
9675
9675
|
}), r;
|
|
9676
9676
|
}
|
|
@@ -10004,7 +10004,7 @@ const G2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10004
10004
|
coordAll: j2,
|
|
10005
10005
|
coordEach: Xn,
|
|
10006
10006
|
coordReduce: O2,
|
|
10007
|
-
featureEach:
|
|
10007
|
+
featureEach: ho,
|
|
10008
10008
|
featureReduce: D2,
|
|
10009
10009
|
findPoint: z2,
|
|
10010
10010
|
findSegment: H2,
|
|
@@ -10019,16 +10019,16 @@ const G2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10019
10019
|
segmentEach: sd,
|
|
10020
10020
|
segmentReduce: F2
|
|
10021
10021
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
10022
|
-
function
|
|
10022
|
+
function po(e) {
|
|
10023
10023
|
var t = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
10024
10024
|
return Xn(e, function(n) {
|
|
10025
10025
|
t[0] > n[0] && (t[0] = n[0]), t[1] > n[1] && (t[1] = n[1]), t[2] < n[0] && (t[2] = n[0]), t[3] < n[1] && (t[3] = n[1]);
|
|
10026
10026
|
}), t;
|
|
10027
10027
|
}
|
|
10028
|
-
|
|
10028
|
+
po.default = po;
|
|
10029
10029
|
const K2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10030
10030
|
__proto__: null,
|
|
10031
|
-
default:
|
|
10031
|
+
default: po
|
|
10032
10032
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
10033
10033
|
function W2(e) {
|
|
10034
10034
|
if (!e)
|
|
@@ -10090,7 +10090,7 @@ function Y2(e, t) {
|
|
|
10090
10090
|
}
|
|
10091
10091
|
function q2(e, t) {
|
|
10092
10092
|
t === void 0 && (t = {});
|
|
10093
|
-
var n =
|
|
10093
|
+
var n = po(e), r = (n[0] + n[2]) / 2, o = (n[1] + n[3]) / 2;
|
|
10094
10094
|
return kt([r, o], t.properties, t);
|
|
10095
10095
|
}
|
|
10096
10096
|
function Tl(e) {
|
|
@@ -10139,7 +10139,7 @@ var Xi = { exports: {} }, ad = { exports: {} };
|
|
|
10139
10139
|
(function T(N, O, M, F, Y) {
|
|
10140
10140
|
for (; F > M; ) {
|
|
10141
10141
|
if (F - M > 600) {
|
|
10142
|
-
var
|
|
10142
|
+
var P = F - M + 1, G = O - M + 1, fe = Math.log(P), ce = 0.5 * Math.exp(2 * fe / 3), oe = 0.5 * Math.sqrt(fe * ce * (P - ce) / P) * (G - P / 2 < 0 ? -1 : 1), de = Math.max(M, Math.floor(O - G * ce / P + oe)), we = Math.min(F, Math.floor(O + (P - G) * ce / P + oe));
|
|
10143
10143
|
T(N, O, de, we, Y);
|
|
10144
10144
|
}
|
|
10145
10145
|
var $ = N[O], U = M, x = F;
|
|
@@ -10305,21 +10305,21 @@ var Xi = { exports: {} }, ad = { exports: {} };
|
|
|
10305
10305
|
for (var F = v; F <= y; F += M) {
|
|
10306
10306
|
var Y = Math.min(F + M - 1, y);
|
|
10307
10307
|
R(h, F, Y, O, this.compareMinY);
|
|
10308
|
-
for (var
|
|
10309
|
-
var G = Math.min(
|
|
10310
|
-
C.children.push(this._build(h,
|
|
10308
|
+
for (var P = F; P <= Y; P += O) {
|
|
10309
|
+
var G = Math.min(P + O - 1, Y);
|
|
10310
|
+
C.children.push(this._build(h, P, G, S - 1));
|
|
10311
10311
|
}
|
|
10312
10312
|
}
|
|
10313
10313
|
return a(C, this.toBBox), C;
|
|
10314
10314
|
}, s.prototype._chooseSubtree = function(h, v, y, S) {
|
|
10315
10315
|
for (; S.push(v), !v.leaf && S.length - 1 !== y; ) {
|
|
10316
10316
|
for (var C = 1 / 0, T = 1 / 0, N = void 0, O = 0; O < v.children.length; O++) {
|
|
10317
|
-
var M = v.children[O], F = d(M), Y = (
|
|
10317
|
+
var M = v.children[O], F = d(M), Y = (P = h, G = M, (Math.max(G.maxX, P.maxX) - Math.min(G.minX, P.minX)) * (Math.max(G.maxY, P.maxY) - Math.min(G.minY, P.minY)) - F);
|
|
10318
10318
|
Y < T ? (T = Y, C = F < C ? F : C, N = M) : Y === T && F < C && (C = F, N = M);
|
|
10319
10319
|
}
|
|
10320
10320
|
v = N || v.children[0];
|
|
10321
10321
|
}
|
|
10322
|
-
var
|
|
10322
|
+
var P, G;
|
|
10323
10323
|
return v;
|
|
10324
10324
|
}, s.prototype._insert = function(h, v, y) {
|
|
10325
10325
|
var S = y ? h : this.toBBox(h), C = [], T = this._chooseSubtree(S, this.data, v, C);
|
|
@@ -10334,9 +10334,9 @@ var Xi = { exports: {} }, ad = { exports: {} };
|
|
|
10334
10334
|
}, s.prototype._splitRoot = function(h, v) {
|
|
10335
10335
|
this.data = E([h, v]), this.data.height = h.height + 1, this.data.leaf = !1, a(this.data, this.toBBox);
|
|
10336
10336
|
}, s.prototype._chooseSplitIndex = function(h, v, y) {
|
|
10337
|
-
for (var S, C, T, N, O, M, F, Y = 1 / 0,
|
|
10337
|
+
for (var S, C, T, N, O, M, F, Y = 1 / 0, P = 1 / 0, G = v; G <= y - v; G++) {
|
|
10338
10338
|
var fe = l(h, 0, G, this.toBBox), ce = l(h, G, y, this.toBBox), oe = (C = fe, T = ce, N = void 0, O = void 0, M = void 0, F = void 0, N = Math.max(C.minX, T.minX), O = Math.max(C.minY, T.minY), M = Math.min(C.maxX, T.maxX), F = Math.min(C.maxY, T.maxY), Math.max(0, M - N) * Math.max(0, F - O)), de = d(fe) + d(ce);
|
|
10339
|
-
oe < Y ? (Y = oe, S = G,
|
|
10339
|
+
oe < Y ? (Y = oe, S = G, P = de < P ? de : P) : oe === Y && de < P && (P = de, S = G);
|
|
10340
10340
|
}
|
|
10341
10341
|
return S || y - v;
|
|
10342
10342
|
}, s.prototype._chooseSplitAxis = function(h, v, y) {
|
|
@@ -10349,8 +10349,8 @@ var Xi = { exports: {} }, ad = { exports: {} };
|
|
|
10349
10349
|
c(T, h.leaf ? C(F) : F), O += p(T);
|
|
10350
10350
|
}
|
|
10351
10351
|
for (var Y = y - v - 1; Y >= v; Y--) {
|
|
10352
|
-
var
|
|
10353
|
-
c(N, h.leaf ? C(
|
|
10352
|
+
var P = h.children[Y];
|
|
10353
|
+
c(N, h.leaf ? C(P) : P), O += p(N);
|
|
10354
10354
|
}
|
|
10355
10355
|
return O;
|
|
10356
10356
|
}, s.prototype._adjustParentBBoxes = function(h, v, y) {
|
|
@@ -10436,8 +10436,8 @@ function Ji(e, t) {
|
|
|
10436
10436
|
return o && r.push(o), rn(r);
|
|
10437
10437
|
}
|
|
10438
10438
|
var s = sS();
|
|
10439
|
-
return s.load(Tl(t)),
|
|
10440
|
-
|
|
10439
|
+
return s.load(Tl(t)), ho(Tl(e), function(i) {
|
|
10440
|
+
ho(s.search(i), function(a) {
|
|
10441
10441
|
var l = Nl(i, a);
|
|
10442
10442
|
if (l) {
|
|
10443
10443
|
var c = mr(l).join(",");
|
|
@@ -10584,41 +10584,41 @@ function pS(e, t) {
|
|
|
10584
10584
|
}), n;
|
|
10585
10585
|
}
|
|
10586
10586
|
const gS = () => {
|
|
10587
|
-
const [e, t] = ee(!1), [n, r] = ee(!1), o = Pt(), s = Qu(), i = H(Hi), a = H(
|
|
10587
|
+
const [e, t] = ee(!1), [n, r] = ee(!1), o = Pt(), s = Qu(), i = H(Hi), a = H(Ar), l = H(zi), c = H(qo), u = H(Et), f = H(Wo), d = H(qu), p = H(Pr), g = H(S2), b = H(Gi), [E, R] = ee(!1), [h, v] = te(ln), y = te(Zo), [S] = te(Ju), [C, T] = ee({ id: null, originalRule: null });
|
|
10588
10588
|
D(() => {
|
|
10589
10589
|
s && N();
|
|
10590
10590
|
}, [s]), D(() => {
|
|
10591
10591
|
N();
|
|
10592
10592
|
}, [u, h, c, l, f, i, d, a, S]);
|
|
10593
10593
|
function N() {
|
|
10594
|
-
const Y = p.find((
|
|
10595
|
-
if (!l && C.id && u && E && (window.mapsindoors.services.LocationsService.getLocation(C.id).then((
|
|
10596
|
-
|
|
10594
|
+
const Y = p.find((P) => P.name.toLowerCase() === h.toLowerCase());
|
|
10595
|
+
if (!l && C.id && u && E && (window.mapsindoors.services.LocationsService.getLocation(C.id).then((P) => {
|
|
10596
|
+
P && (u.setDisplayRule(P.id, C.originalRule || null), R(!1));
|
|
10597
10597
|
}), T({ id: null, originalRule: null })), u && Y) {
|
|
10598
10598
|
if (t(!0), l && o)
|
|
10599
|
-
T((
|
|
10600
|
-
if (
|
|
10601
|
-
const G =
|
|
10599
|
+
T((P) => ({ ...P, id: l })), window.mapsindoors.services.LocationsService.getLocation(l).then((P) => {
|
|
10600
|
+
if (P) {
|
|
10601
|
+
const G = P.properties.floor;
|
|
10602
10602
|
u.setFloor(G);
|
|
10603
|
-
const fe = u.getDisplayRule(
|
|
10604
|
-
T((ce) => ({ ...ce, originalRule: { ...fe } })), O(
|
|
10605
|
-
r(
|
|
10603
|
+
const fe = u.getDisplayRule(P);
|
|
10604
|
+
T((ce) => ({ ...ce, originalRule: { ...fe } })), O(P), Yo().then((ce) => {
|
|
10605
|
+
r(P.geometry), _t(P.geometry, u, ce, 0, d ? F(d) : void 0, g, i);
|
|
10606
10606
|
});
|
|
10607
10607
|
}
|
|
10608
10608
|
});
|
|
10609
10609
|
else if (c && !b)
|
|
10610
|
-
mt(S) ? window.mapsindoors.services.LocationsService.getLocation(c).then((
|
|
10611
|
-
if (
|
|
10612
|
-
const G =
|
|
10610
|
+
mt(S) ? window.mapsindoors.services.LocationsService.getLocation(c).then((P) => {
|
|
10611
|
+
if (P) {
|
|
10612
|
+
const G = P.properties.floor;
|
|
10613
10613
|
u.setFloor(G), o ? mn().then((fe) => {
|
|
10614
|
-
r(
|
|
10614
|
+
r(P.geometry), _t(P.geometry, u, 0, fe, d ? F(d) : void 0, g, i);
|
|
10615
10615
|
}) : On().then((fe) => {
|
|
10616
|
-
r(
|
|
10616
|
+
r(P.geometry), _t(P.geometry, u, fe, 0, d ? F(d) : void 0, g, i);
|
|
10617
10617
|
});
|
|
10618
10618
|
}
|
|
10619
|
-
}) : window.mapsindoors.services.LocationsService.getLocation(c).then((
|
|
10620
|
-
if (
|
|
10621
|
-
const G =
|
|
10619
|
+
}) : window.mapsindoors.services.LocationsService.getLocation(c).then((P) => {
|
|
10620
|
+
if (P) {
|
|
10621
|
+
const G = P.properties.floor;
|
|
10622
10622
|
u.setFloor(G), o ? mn().then((fe) => {
|
|
10623
10623
|
r(M().geometry), _t(M().geometry, u, 0, fe, F(d), g, i);
|
|
10624
10624
|
}) : On().then((fe) => {
|
|
@@ -10628,12 +10628,12 @@ const gS = () => {
|
|
|
10628
10628
|
});
|
|
10629
10629
|
else if (Y)
|
|
10630
10630
|
if (b)
|
|
10631
|
-
o ? (r(Y.geometry), _t(Y.geometry, u, 0, 0, F(d), g, i)) : On().then((
|
|
10632
|
-
r(Y.geometry), _t(Y.geometry, u,
|
|
10631
|
+
o ? (r(Y.geometry), _t(Y.geometry, u, 0, 0, F(d), g, i)) : On().then((P) => {
|
|
10632
|
+
r(Y.geometry), _t(Y.geometry, u, P, 0, F(d), g, i);
|
|
10633
10633
|
});
|
|
10634
10634
|
else {
|
|
10635
|
-
const
|
|
10636
|
-
mt(S) ? (r(Y.geometry), _t(Y.geometry, u, 0, 0, F(d), g, i)) : mt(
|
|
10635
|
+
const P = p.find((G) => pS(G.geometry, M().geometry));
|
|
10636
|
+
mt(S) ? (r(Y.geometry), _t(Y.geometry, u, 0, 0, F(d), g, i)) : mt(P) ? o ? mn().then((G) => {
|
|
10637
10637
|
r(M().geometry), _t(M().geometry, u, 0, G, F(d), g, i);
|
|
10638
10638
|
}) : On().then((G) => {
|
|
10639
10639
|
r(M().geometry), _t(M().geometry, u, G, 0, F(d), g, i);
|
|
@@ -10641,19 +10641,19 @@ const gS = () => {
|
|
|
10641
10641
|
r(M().geometry), _t(M().geometry, u, 0, G, F(d), g, i);
|
|
10642
10642
|
}) : On().then((G) => {
|
|
10643
10643
|
r(M().geometry), _t(M().geometry, u, G, 0, F(d), g, i);
|
|
10644
|
-
}), y && v(
|
|
10644
|
+
}), y && v(P.name));
|
|
10645
10645
|
}
|
|
10646
10646
|
}
|
|
10647
10647
|
}
|
|
10648
10648
|
function O(Y) {
|
|
10649
10649
|
if (E)
|
|
10650
10650
|
return;
|
|
10651
|
-
const
|
|
10652
|
-
|
|
10651
|
+
const P = u.getDisplayRule(Y);
|
|
10652
|
+
P.visible = !0, P.iconSize = { width: P.iconSize.width * 2, height: P.iconSize.height * 2 }, P.iconVisible = !0, P.zoomFrom = 0, P.zoomTo = 999, P.clickable = !1, u.setDisplayRule(Y.id, P), R(!0);
|
|
10653
10653
|
}
|
|
10654
10654
|
function M() {
|
|
10655
|
-
const [Y,
|
|
10656
|
-
return { geometry: { type: "Point", coordinates: [Y,
|
|
10655
|
+
const [Y, P] = S ? S.split(",").map(Number) : [void 0, void 0];
|
|
10656
|
+
return { geometry: { type: "Point", coordinates: [Y, P] } };
|
|
10657
10657
|
}
|
|
10658
10658
|
function F(Y) {
|
|
10659
10659
|
return mt(Y) ? 18 : Y;
|
|
@@ -10683,7 +10683,7 @@ const fd = pe({
|
|
|
10683
10683
|
fill: "#666666",
|
|
10684
10684
|
fill: "color(display-p3 0.4000 0.4000 0.4000)",
|
|
10685
10685
|
fillOpacity: 1
|
|
10686
|
-
} })),
|
|
10686
|
+
} })), Mr = (e) => /* @__PURE__ */ re.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ re.createElement("path", { d: "M6 6L18 18", stroke: "#636971", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ re.createElement("path", { d: "M18 6L6 18", stroke: "#636971", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
10687
10687
|
hd.propTypes = {
|
|
10688
10688
|
isViewSelectorDisabled: w.bool,
|
|
10689
10689
|
isViewSelectorVisible: w.bool
|
|
@@ -10776,7 +10776,7 @@ function hd({ isViewSelectorDisabled: e, isViewSelectorVisible: t }) {
|
|
|
10776
10776
|
className: "mobile-overlay__exit-button",
|
|
10777
10777
|
onClick: () => o(!1),
|
|
10778
10778
|
"aria-label": n("Close view selector"),
|
|
10779
|
-
children: /* @__PURE__ */ m.jsx(
|
|
10779
|
+
children: /* @__PURE__ */ m.jsx(Mr, {})
|
|
10780
10780
|
}
|
|
10781
10781
|
),
|
|
10782
10782
|
/* @__PURE__ */ m.jsx("span", { children: n("Go to view") })
|
|
@@ -10990,15 +10990,15 @@ md.propTypes = {
|
|
|
10990
10990
|
};
|
|
10991
10991
|
let Ps;
|
|
10992
10992
|
function md({ onLocationClick: e, onMapPositionKnown: t, useMapProviderModule: n, onMapPositionInvestigating: r, onViewModeSwitchKnown: o, resetCount: s, mapOptions: i, gmMapId: a, isWayfindingOrDirections: l, currentLanguage: c, setLanguage: u, devicePosition: f }) {
|
|
10993
|
-
const d = H(Fi), p = H(Ui), g = H(zo), [b, E] = te(Ho), [R, h] = te(Et), [, v] = te(
|
|
10993
|
+
const d = H(Fi), p = H(Ui), g = H(zo), [b, E] = te(Ho), [R, h] = te(Et), [, v] = te(Nr), [, y] = te(Vi), S = H(Go), C = H(Ko), T = H(Ku), N = H(Hi), O = H(Wo), [, M] = te(Wu), F = H(Yu), [, Y] = te(kr), P = H(fd), G = H(cn), [fe, ce] = ee(!1), [oe, de] = ee(!1), we = un();
|
|
10994
10994
|
v2(d);
|
|
10995
10995
|
const [$, U] = gS();
|
|
10996
10996
|
D(() => {
|
|
10997
10997
|
if (!F || p === null && g === null)
|
|
10998
10998
|
return;
|
|
10999
10999
|
let B;
|
|
11000
|
-
const
|
|
11001
|
-
n ?
|
|
11000
|
+
const A = F.modules.map((V) => V.toLowerCase()).includes("mapbox");
|
|
11001
|
+
n ? A ? g && (B = ut.Mapbox) : p && (B = ut.Google) : g ? B = ut.Mapbox : B = ut.Google, B ? E(B) : (Y({ text: "Please provide a Mapbox Access Token or Google Maps API key to show a map.", type: "error" }), E(void 0));
|
|
11002
11002
|
}, [p, g, F]), D(() => {
|
|
11003
11003
|
$ && r();
|
|
11004
11004
|
}, [$]), D(() => {
|
|
@@ -11009,23 +11009,23 @@ function md({ onLocationClick: e, onMapPositionKnown: t, useMapProviderModule: n
|
|
|
11009
11009
|
const B = S || C;
|
|
11010
11010
|
if (!B)
|
|
11011
11011
|
return;
|
|
11012
|
-
const
|
|
11013
|
-
|
|
11014
|
-
}, [S, C, R,
|
|
11012
|
+
const A = B.map((V) => V.id);
|
|
11013
|
+
P || !R.highlight ? R.filter(A) : R.highlight(A);
|
|
11014
|
+
}, [S, C, R, P]), D(() => {
|
|
11015
11015
|
R && (isNaN(parseInt(O)) || R.getMapView().tilt(parseInt(O)), isNaN(parseInt(N)) || R.getMapView().rotate(parseInt(N)));
|
|
11016
11016
|
}, [N, O, R]);
|
|
11017
11017
|
const x = (B) => {
|
|
11018
11018
|
k(B);
|
|
11019
11019
|
}, k = (B) => {
|
|
11020
11020
|
if (B && Ps) {
|
|
11021
|
-
let
|
|
11022
|
-
if (
|
|
11023
|
-
|
|
11024
|
-
const V =
|
|
11021
|
+
let A = B.getTileURL();
|
|
11022
|
+
if (A) {
|
|
11023
|
+
A = B.getTileURL().replace("default", Ps);
|
|
11024
|
+
const V = A == null ? void 0 : A.replace("{floor}", B.getFloor());
|
|
11025
11025
|
B.getMapView().setMapsIndoorsTileURL(V);
|
|
11026
11026
|
}
|
|
11027
11027
|
}
|
|
11028
|
-
}, j = (B,
|
|
11028
|
+
}, j = (B, A, V) => {
|
|
11029
11029
|
B.on("mouseenter", () => {
|
|
11030
11030
|
var K;
|
|
11031
11031
|
const he = B.getHoveredLocation();
|
|
@@ -11036,17 +11036,21 @@ function md({ onLocationClick: e, onMapPositionKnown: t, useMapProviderModule: n
|
|
|
11036
11036
|
let z;
|
|
11037
11037
|
b === ut.Google ? z = new window.mapsindoors.directions.GoogleMapsProvider() : b === ut.Mapbox && (z = new window.mapsindoors.directions.MapboxProvider(g));
|
|
11038
11038
|
const J = new window.mapsindoors.services.DirectionsService(z);
|
|
11039
|
-
y(J), h(B),
|
|
11039
|
+
y(J), h(B), A.nodeName === "MI-MY-POSITION" ? (A.addEventListener("position_received", (he) => {
|
|
11040
11040
|
he.detail.accurate === !0 && v(he.detail.position);
|
|
11041
|
-
})
|
|
11041
|
+
}), A.addEventListener("position_error", () => {
|
|
11042
|
+
v(null);
|
|
11043
|
+
})) : (A.on("position_received", (he) => {
|
|
11042
11044
|
he.accurate === !0 && v(he.position);
|
|
11043
|
-
}),
|
|
11045
|
+
}), A.on("position_error", () => {
|
|
11046
|
+
v(null);
|
|
11047
|
+
})), M(A), o(V);
|
|
11044
11048
|
};
|
|
11045
11049
|
return D(() => {
|
|
11046
11050
|
Ps = T || "default", k(R);
|
|
11047
11051
|
}, [T]), D(() => {
|
|
11048
|
-
var B,
|
|
11049
|
-
G && (mt((B = G == null ? void 0 : G.appSettings) == null ? void 0 : B.viewSelector) ? ce(!1) : ce(((
|
|
11052
|
+
var B, A, V, W;
|
|
11053
|
+
G && (mt((B = G == null ? void 0 : G.appSettings) == null ? void 0 : B.viewSelector) ? ce(!1) : ce(((A = G == null ? void 0 : G.appSettings) == null ? void 0 : A.viewSelector.trim().toLowerCase()) === "true"), mt((V = G == null ? void 0 : G.appSettings) == null ? void 0 : V.languageSelector) ? de(!1) : de(((W = G == null ? void 0 : G.appSettings) == null ? void 0 : W.languageSelector.trim().toLowerCase()) === "true"));
|
|
11050
11054
|
}, [G]), /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
11051
11055
|
d && /* @__PURE__ */ m.jsx(
|
|
11052
11056
|
Gu,
|
|
@@ -11532,7 +11536,7 @@ var _S = function(t, n) {
|
|
|
11532
11536
|
var o = this.props;
|
|
11533
11537
|
o.classNames;
|
|
11534
11538
|
var s = vd(o, ["classNames"]);
|
|
11535
|
-
return /* @__PURE__ */ Pe.createElement(wd,
|
|
11539
|
+
return /* @__PURE__ */ Pe.createElement(wd, uo({}, s, {
|
|
11536
11540
|
onEnter: this.onEnter,
|
|
11537
11541
|
onEntered: this.onEntered,
|
|
11538
11542
|
onEntering: this.onEntering,
|
|
@@ -11545,7 +11549,7 @@ var _S = function(t, n) {
|
|
|
11545
11549
|
ta.defaultProps = {
|
|
11546
11550
|
classNames: ""
|
|
11547
11551
|
};
|
|
11548
|
-
ta.propTypes = process.env.NODE_ENV !== "production" ?
|
|
11552
|
+
ta.propTypes = process.env.NODE_ENV !== "production" ? uo({}, wd.propTypes, {
|
|
11549
11553
|
/**
|
|
11550
11554
|
* The animation classNames applied to the component as it appears, enters,
|
|
11551
11555
|
* exits or has finished the transition. A single name can be provided, which
|
|
@@ -11701,7 +11705,7 @@ Ed.propTypes = {
|
|
|
11701
11705
|
active: w.bool
|
|
11702
11706
|
};
|
|
11703
11707
|
function Ed({ onOpen: e, onClose: t, active: n }) {
|
|
11704
|
-
const { t: r } = nt(), o = ge(null), s = H(
|
|
11708
|
+
const { t: r } = nt(), o = ge(null), s = H(Pr), [, i] = te(Gi), [a, l] = te(ln), [, c] = te(Xo), u = document.querySelector(".venue-selector-portal"), f = (g) => {
|
|
11705
11709
|
i(!0), l(g.name), d();
|
|
11706
11710
|
}, d = () => {
|
|
11707
11711
|
n ? t() : e();
|
|
@@ -11725,7 +11729,7 @@ function Ed({ onOpen: e, onClose: t, active: n }) {
|
|
|
11725
11729
|
children: /* @__PURE__ */ m.jsxs("div", { className: "venue-selector__content", ref: o, children: [
|
|
11726
11730
|
/* @__PURE__ */ m.jsxs("div", { className: "venue-selector__header", children: [
|
|
11727
11731
|
/* @__PURE__ */ m.jsx("h1", { children: r("Select venue") }),
|
|
11728
|
-
/* @__PURE__ */ m.jsx("button", { className: "venue-selector__button", onClick: () => t(), "aria-label": r("Close"), children: /* @__PURE__ */ m.jsx(
|
|
11732
|
+
/* @__PURE__ */ m.jsx("button", { className: "venue-selector__button", onClick: () => t(), "aria-label": r("Close"), children: /* @__PURE__ */ m.jsx(Mr, {}) })
|
|
11729
11733
|
] }),
|
|
11730
11734
|
/* @__PURE__ */ m.jsx("div", { className: "venue-selector__list", children: s.map((g) => /* @__PURE__ */ m.jsx(
|
|
11731
11735
|
Cd,
|
|
@@ -11873,9 +11877,9 @@ const Ce = {
|
|
|
11873
11877
|
MAX: "MAX"
|
|
11874
11878
|
// Sheet height is of maximum height (height of container element)
|
|
11875
11879
|
};
|
|
11876
|
-
const Dn =
|
|
11880
|
+
const Dn = yo(function({ children: t, isOpen: n, initialSnapPoint: r, minimizedHeight: o }, s) {
|
|
11877
11881
|
const i = ge(), a = ge(), l = ge(), c = ge(), u = ge(), [f, d] = ee({}), [p, g] = ee(!1), [b, E] = ee(null), R = Zl(Rd), h = ge();
|
|
11878
|
-
|
|
11882
|
+
So(s, () => ({
|
|
11879
11883
|
/**
|
|
11880
11884
|
* Set the height of the sheet to the given snap point.
|
|
11881
11885
|
*
|
|
@@ -12004,7 +12008,7 @@ function Bl(e) {
|
|
|
12004
12008
|
const t = e.geometry.type === "Point" ? e.geometry.coordinates : e.properties.anchor.coordinates;
|
|
12005
12009
|
return { lat: t[1], lng: t[0], floor: e.properties.floor };
|
|
12006
12010
|
}
|
|
12007
|
-
const
|
|
12011
|
+
const Ir = pe({
|
|
12008
12012
|
key: "directionsResponse",
|
|
12009
12013
|
default: null
|
|
12010
12014
|
}), Jo = pe({
|
|
@@ -12014,7 +12018,7 @@ const Mr = pe({
|
|
|
12014
12018
|
key: "shuttleBusOn",
|
|
12015
12019
|
default: !1
|
|
12016
12020
|
}), xd = (e, t, n, r, o) => {
|
|
12017
|
-
const [s, i] = ee(), [a, l] = ee(), [c, u] = te(Jo), [, f] = te(
|
|
12021
|
+
const [s, i] = ee(), [a, l] = ee(), [c, u] = te(Jo), [, f] = te(Ir), [d, p] = ee(), g = H(na);
|
|
12018
12022
|
return D(() => {
|
|
12019
12023
|
p(!1);
|
|
12020
12024
|
let b = !0;
|
|
@@ -12047,10 +12051,10 @@ const Mr = pe({
|
|
|
12047
12051
|
WALKING: "WALKING",
|
|
12048
12052
|
DRIVING: "DRIVING",
|
|
12049
12053
|
BICYCLING: "BICYCLING"
|
|
12050
|
-
},
|
|
12054
|
+
}, Or = pe({
|
|
12051
12055
|
key: "travelMode",
|
|
12052
12056
|
default: pn.WALKING
|
|
12053
|
-
}),
|
|
12057
|
+
}), $r = pe({
|
|
12054
12058
|
key: "accessibilityOn",
|
|
12055
12059
|
default: !1
|
|
12056
12060
|
}), es = pe({
|
|
@@ -12242,7 +12246,7 @@ const ts = pe({
|
|
|
12242
12246
|
}), ra = pe({
|
|
12243
12247
|
key: "searchExternalLocations",
|
|
12244
12248
|
default: !0
|
|
12245
|
-
}), kd =
|
|
12249
|
+
}), kd = Vo({
|
|
12246
12250
|
key: "baseLink",
|
|
12247
12251
|
get: ({ get: e }) => {
|
|
12248
12252
|
const t = e(Ui), n = e(zo), r = e(Fi), o = e(Vt), s = e(xn), i = e(ts), a = e(ra), l = e(ea), c = window.location.origin + window.location.pathname.replace(/\/$/, ""), u = new URLSearchParams(window.location.search), f = new URLSearchParams();
|
|
@@ -12396,8 +12400,8 @@ oa.propTypes = {
|
|
|
12396
12400
|
snapPointSwipedByUser: w.string
|
|
12397
12401
|
};
|
|
12398
12402
|
function oa({ onBack: e, onStartWayfinding: t, onSetSize: n, onStartDirections: r, isOpen: o, snapPointSwipedByUser: s }) {
|
|
12399
|
-
var
|
|
12400
|
-
const { t: i } = nt(), a = ge(null), l = ge(null), c = ge(null), u = ge(null), f = ge(null), [d, p] = ee(!1), [g, b] = ee(!1), [E, R] = ee(!1), h = ge(!1), [v, y] = ee(null), S = H(Et), C = H(Qt), T = (
|
|
12403
|
+
var Ze, Qe, dt, yt;
|
|
12404
|
+
const { t: i } = nt(), a = ge(null), l = ge(null), c = ge(null), u = ge(null), f = ge(null), [d, p] = ee(!1), [g, b] = ee(!1), [E, R] = ee(!1), h = ge(!1), [v, y] = ee(null), S = H(Et), C = H(Qt), T = (Ze = C == null ? void 0 : C.properties) == null ? void 0 : Ze.additionalDetails, N = (Qe = T == null ? void 0 : T.find((Le) => Le.key.toLowerCase().includes("openinghours") && Le.active === !0)) == null ? void 0 : Qe.openingHours, [O, M] = VS(C, c), F = Jn(), Y = H(Vt), P = H(Bt), G = H(Vi), [fe, ce] = ee(), [oe, de] = ee(), [we, $] = ee(!0), U = Pt(), x = H(Or), k = H($r), [, , j] = xd(oe, fe, G, x, k), B = H(es), A = Td(S, o), V = H(cn), W = (yt = (dt = V == null ? void 0 : V.appSettings) == null ? void 0 : dt.excludeFromUI) == null ? void 0 : yt.includes("wayfindingDisabled");
|
|
12401
12405
|
D(() => {
|
|
12402
12406
|
(() => {
|
|
12403
12407
|
if (S && C)
|
|
@@ -12450,12 +12454,12 @@ function oa({ onBack: e, onStartWayfinding: t, onSetSize: n, onStartDirections:
|
|
|
12450
12454
|
p(!1), b(!1), R(!1), J(Ce.FIT), r();
|
|
12451
12455
|
}
|
|
12452
12456
|
return D(() => {
|
|
12453
|
-
|
|
12454
|
-
}, [
|
|
12457
|
+
A && e();
|
|
12458
|
+
}, [A]), D(() => () => {
|
|
12455
12459
|
y(null), ce(), de();
|
|
12456
12460
|
}, []), D(() => {
|
|
12457
|
-
p(!1), b(!1), R(!1), y(null), C && (a.current.location = C, y(S.getDisplayRule(C)), ce(C)),
|
|
12458
|
-
}, [C, S,
|
|
12461
|
+
p(!1), b(!1), R(!1), y(null), C && (a.current.location = C, y(S.getDisplayRule(C)), ce(C)), P && de(P);
|
|
12462
|
+
}, [C, S, P]), D(() => {
|
|
12459
12463
|
const Le = (T == null ? void 0 : T.length) > 0;
|
|
12460
12464
|
J(C && o && Le ? Ce.FIT : Ce.MIN);
|
|
12461
12465
|
}, [C, o, T]), D(() => {
|
|
@@ -12485,10 +12489,10 @@ function oa({ onBack: e, onStartWayfinding: t, onSetSize: n, onStartDirections:
|
|
|
12485
12489
|
] }),
|
|
12486
12490
|
/* @__PURE__ */ m.jsxs("div", { className: "location-info__actions", children: [
|
|
12487
12491
|
/* @__PURE__ */ m.jsx(Md, { buttonClassName: "location-info__button", location: C }),
|
|
12488
|
-
/* @__PURE__ */ m.jsx("button", { className: "location-info__button", onClick: () => z(), "aria-label": i("Close"), children: /* @__PURE__ */ m.jsx(
|
|
12492
|
+
/* @__PURE__ */ m.jsx("button", { className: "location-info__button", onClick: () => z(), "aria-label": i("Close"), children: /* @__PURE__ */ m.jsx(Mr, {}) })
|
|
12489
12493
|
] })
|
|
12490
12494
|
] }),
|
|
12491
|
-
!W && (
|
|
12495
|
+
!W && (P && U ? /* @__PURE__ */ m.jsx(
|
|
12492
12496
|
"button",
|
|
12493
12497
|
{
|
|
12494
12498
|
disabled: !j,
|
|
@@ -12589,12 +12593,12 @@ const qS = () => {
|
|
|
12589
12593
|
}, sa = pe({
|
|
12590
12594
|
key: "searchInput",
|
|
12591
12595
|
default: void 0
|
|
12592
|
-
}),
|
|
12593
|
-
const { placeholder: r, mapsindoors: o, results: s, clicked: i, cleared: a, changed: l, category: c, google: u, mapbox: f, disabled: d = !1 } = t, p = ge(), g = H(
|
|
12596
|
+
}), go = yo(function(t, n) {
|
|
12597
|
+
const { placeholder: r, mapsindoors: o, results: s, clicked: i, cleared: a, changed: l, category: c, google: u, mapbox: f, disabled: d = !1 } = t, p = ge(), g = H(Nr), b = H(xn), [, E] = te(sa), R = sessionStorage.getItem("mapboxPlacesSessionToken"), h = {
|
|
12594
12598
|
longitude: g == null ? void 0 : g.coords.longitude,
|
|
12595
12599
|
latitude: g == null ? void 0 : g.coords.latitude
|
|
12596
12600
|
}, v = qS(), y = H(ln), S = H(ts);
|
|
12597
|
-
return
|
|
12601
|
+
return So(n, () => ({
|
|
12598
12602
|
triggerSearch() {
|
|
12599
12603
|
p.current.triggerSearch();
|
|
12600
12604
|
},
|
|
@@ -12641,7 +12645,7 @@ const qS = () => {
|
|
|
12641
12645
|
}
|
|
12642
12646
|
);
|
|
12643
12647
|
});
|
|
12644
|
-
|
|
12648
|
+
go.propTypes = {
|
|
12645
12649
|
placeholder: w.string,
|
|
12646
12650
|
mapsindoors: w.bool,
|
|
12647
12651
|
results: w.func,
|
|
@@ -12706,7 +12710,7 @@ function JS(e, t) {
|
|
|
12706
12710
|
});
|
|
12707
12711
|
});
|
|
12708
12712
|
}
|
|
12709
|
-
const eb =
|
|
12713
|
+
const eb = Vo({
|
|
12710
12714
|
key: "unitSystem",
|
|
12711
12715
|
get: ({ get: e }) => e(xn) === "en-US" ? "imperial" : "metric"
|
|
12712
12716
|
});
|
|
@@ -12714,7 +12718,7 @@ ia.propTypes = {
|
|
|
12714
12718
|
onAccessibilityChanged: w.func
|
|
12715
12719
|
};
|
|
12716
12720
|
function ia({ onAccessibilityChanged: e }) {
|
|
12717
|
-
const t = H(Vt), [n, r] = te(
|
|
12721
|
+
const t = H(Vt), [n, r] = te($r);
|
|
12718
12722
|
function o(s) {
|
|
12719
12723
|
r(s.target.checked), e && e();
|
|
12720
12724
|
}
|
|
@@ -12770,7 +12774,7 @@ aa.propTypes = {
|
|
|
12770
12774
|
};
|
|
12771
12775
|
function aa({ onStartDirections: e, onBack: t, directionsToLocation: n, directionsFromLocation: r, onSetSize: o, isActive: s }) {
|
|
12772
12776
|
var ft, ie;
|
|
12773
|
-
const { t: i } = nt(), a = ge(), l = ge(), c = ge(), u = ge(), f = H(Vi), d = H(
|
|
12777
|
+
const { t: i } = nt(), a = ge(), l = ge(), c = ge(), u = ge(), f = H(Vi), d = H(Nr), p = H(Qt), g = H(Ho), b = H(Vt), [E, R] = te(Dd), [h, v] = ee(), [, y] = te(Jo), [S, C] = ee(!0), [T, N] = ee(!1), [O, M] = ee([]), [F, Y] = ee(), [P, G] = ee(), fe = H($r), ce = Jn(), [oe, de] = ee(!1), [we, $] = te(Or), [U, x] = ee(!1), k = H(zo), j = H(eb), [B, A, V, W] = xd(P, F, f, we, fe), z = H(ra), J = H(cn);
|
|
12774
12778
|
function he(Q) {
|
|
12775
12779
|
return g === ut.Google && Q.properties.type === "google_places" ? ZS(Q) : g === ut.Mapbox && Q.properties.type === "mapbox_places" ? JS(Q, k) : Promise.resolve(Q);
|
|
12776
12780
|
}
|
|
@@ -12798,15 +12802,15 @@ function aa({ onStartDirections: e, onBack: t, directionsToLocation: n, directio
|
|
|
12798
12802
|
h === Je.TO ? (c.current.setDisplayText(Q.properties.name), Y(Q)) : h === Je.FROM && (u.current.setDisplayText(Q.properties.name), G(Q)), M([]), y(!0), C(!0), de(!1), N(!1), x(!1);
|
|
12799
12803
|
}
|
|
12800
12804
|
function Fe(Q) {
|
|
12801
|
-
(
|
|
12805
|
+
(P == null ? void 0 : P.id) === "USER_POSITION" && Q === Je.TO || (F == null ? void 0 : F.id) === "USER_POSITION" && Q === Je.FROM ? x(!1) : x(!0);
|
|
12802
12806
|
}
|
|
12803
12807
|
function Ne(Q) {
|
|
12804
12808
|
Fe(Q);
|
|
12805
12809
|
}
|
|
12806
|
-
function
|
|
12810
|
+
function Ze(Q) {
|
|
12807
12811
|
v(Q), yt(Q), y(!0), de(!1), Fe(Q);
|
|
12808
12812
|
}
|
|
12809
|
-
function
|
|
12813
|
+
function Qe(Q) {
|
|
12810
12814
|
x(!0), v(Q), dt(Q), M([]), y(!0), de(!1), C(!0);
|
|
12811
12815
|
}
|
|
12812
12816
|
function dt(Q) {
|
|
@@ -12816,7 +12820,7 @@ function aa({ onStartDirections: e, onBack: t, directionsToLocation: n, directio
|
|
|
12816
12820
|
Q === Je.TO ? (M([]), c.current.getValue() && (N(!0), c.current.triggerSearch())) : Q === Je.FROM && (M([]), u.current.getValue() && (N(!0), u.current.triggerSearch()));
|
|
12817
12821
|
}
|
|
12818
12822
|
function Le() {
|
|
12819
|
-
(F ||
|
|
12823
|
+
(F || P) && (P ? c.current.setDisplayText(P.properties.name) : c.current.clear(), F ? u.current.setDisplayText(F.properties.name) : u.current.clear(), Y(P), G(F));
|
|
12820
12824
|
}
|
|
12821
12825
|
function We() {
|
|
12822
12826
|
G(), u.current.setDisplayText(""), t();
|
|
@@ -12840,7 +12844,7 @@ function aa({ onStartDirections: e, onBack: t, directionsToLocation: n, directio
|
|
|
12840
12844
|
var _e;
|
|
12841
12845
|
Ie(Ce.FIT);
|
|
12842
12846
|
let Q = !1;
|
|
12843
|
-
if ((r == null ? void 0 : r.id) === "USER_POSITION" && (n == null ? void 0 : n.id) === "USER_POSITION" && (n = void 0), n != null && n.properties && !p && (c.current.setDisplayText(n.properties.name), Y(n)), r != null && r.properties ?
|
|
12847
|
+
if ((r == null ? void 0 : r.id) === "USER_POSITION" && (n == null ? void 0 : n.id) === "USER_POSITION" && (n = void 0), n != null && n.properties && !p && (c.current.setDisplayText(n.properties.name), Y(n)), r != null && r.properties ? P || (u.current.setDisplayText(r.properties.name), G(r), Q = !0) : v(Je.FROM), s && !((_e = u.current) != null && _e.getValue()) && d && !P && (n == null ? void 0 : n.id) !== "USER_POSITION" && !Q) {
|
|
12844
12848
|
const Me = di(d);
|
|
12845
12849
|
u.current.setDisplayText(Me.properties.name), G(Me), y(!0), C(!0), M([]);
|
|
12846
12850
|
}
|
|
@@ -12857,14 +12861,14 @@ function aa({ onStartDirections: e, onBack: t, directionsToLocation: n, directio
|
|
|
12857
12861
|
className: "wayfinding__close",
|
|
12858
12862
|
onClick: () => We(),
|
|
12859
12863
|
"aria-label": "Close",
|
|
12860
|
-
children: /* @__PURE__ */ m.jsx(
|
|
12864
|
+
children: /* @__PURE__ */ m.jsx(Mr, {})
|
|
12861
12865
|
}
|
|
12862
12866
|
),
|
|
12863
12867
|
/* @__PURE__ */ m.jsxs("div", { className: "wayfinding__locations", children: [
|
|
12864
12868
|
/* @__PURE__ */ m.jsxs("label", { className: "wayfinding__label", children: [
|
|
12865
12869
|
/* @__PURE__ */ m.jsx("span", { children: i("Choose departure") }),
|
|
12866
12870
|
/* @__PURE__ */ m.jsx(
|
|
12867
|
-
|
|
12871
|
+
go,
|
|
12868
12872
|
{
|
|
12869
12873
|
ref: u,
|
|
12870
12874
|
mapsindoors: !0,
|
|
@@ -12872,8 +12876,8 @@ function aa({ onStartDirections: e, onBack: t, directionsToLocation: n, directio
|
|
|
12872
12876
|
mapbox: g === ut.Mapbox && z,
|
|
12873
12877
|
placeholder: i("Choose departure"),
|
|
12874
12878
|
results: (Q) => Se(Q, Je.FROM),
|
|
12875
|
-
clicked: () =>
|
|
12876
|
-
cleared: () =>
|
|
12879
|
+
clicked: () => Ze(Je.FROM),
|
|
12880
|
+
cleared: () => Qe(Je.FROM),
|
|
12877
12881
|
changed: () => Ne(Je.FROM)
|
|
12878
12882
|
}
|
|
12879
12883
|
)
|
|
@@ -12890,7 +12894,7 @@ function aa({ onStartDirections: e, onBack: t, directionsToLocation: n, directio
|
|
|
12890
12894
|
/* @__PURE__ */ m.jsxs("label", { className: "wayfinding__label", children: [
|
|
12891
12895
|
/* @__PURE__ */ m.jsx("span", { children: i("Choose destination") }),
|
|
12892
12896
|
/* @__PURE__ */ m.jsx(
|
|
12893
|
-
|
|
12897
|
+
go,
|
|
12894
12898
|
{
|
|
12895
12899
|
ref: c,
|
|
12896
12900
|
mapsindoors: !0,
|
|
@@ -12898,8 +12902,8 @@ function aa({ onStartDirections: e, onBack: t, directionsToLocation: n, directio
|
|
|
12898
12902
|
mapbox: g === ut.Mapbox && z,
|
|
12899
12903
|
placeholder: i("Choose destination"),
|
|
12900
12904
|
results: (Q) => Se(Q, Je.TO),
|
|
12901
|
-
clicked: () =>
|
|
12902
|
-
cleared: () =>
|
|
12905
|
+
clicked: () => Ze(Je.TO),
|
|
12906
|
+
cleared: () => Qe(Je.TO),
|
|
12903
12907
|
changed: () => Ne(Je.TO)
|
|
12904
12908
|
}
|
|
12905
12909
|
)
|
|
@@ -12926,7 +12930,7 @@ function aa({ onStartDirections: e, onBack: t, directionsToLocation: n, directio
|
|
|
12926
12930
|
),
|
|
12927
12931
|
oe && /* @__PURE__ */ m.jsx("img", { className: "wayfinding__google", alt: "Powered by Google", src: QS })
|
|
12928
12932
|
] }) }),
|
|
12929
|
-
!T && !U && V && !oe &&
|
|
12933
|
+
!T && !U && V && !oe && P && F && /* @__PURE__ */ m.jsxs("div", { className: "wayfinding__details", ref: l, children: [
|
|
12930
12934
|
/* @__PURE__ */ m.jsxs("div", { className: "wayfinding__settings", children: [
|
|
12931
12935
|
/* @__PURE__ */ m.jsxs("div", { className: "wayfinding__toggles", children: [
|
|
12932
12936
|
/* @__PURE__ */ m.jsx(ia, {}),
|
|
@@ -12965,7 +12969,7 @@ function aa({ onStartDirections: e, onBack: t, directionsToLocation: n, directio
|
|
|
12965
12969
|
i("Estimated time"),
|
|
12966
12970
|
":"
|
|
12967
12971
|
] }),
|
|
12968
|
-
/* @__PURE__ */ m.jsx("div", { className: "wayfinding__minutes", children:
|
|
12972
|
+
/* @__PURE__ */ m.jsx("div", { className: "wayfinding__minutes", children: A && W && /* @__PURE__ */ m.jsx("mi-time", { translations: JSON.stringify({ days: i("d"), hours: i("h"), minutes: i("min") }), seconds: A }) })
|
|
12969
12973
|
] })
|
|
12970
12974
|
] }),
|
|
12971
12975
|
/* @__PURE__ */ m.jsx("button", { className: "wayfinding__button", style: { background: b }, onClick: () => e(), disabled: !W, children: i("Go!") })
|
|
@@ -12981,10 +12985,10 @@ const nb = (e) => /* @__PURE__ */ re.createElement("svg", { width: 24, height: 2
|
|
|
12981
12985
|
}), ob = pe({
|
|
12982
12986
|
key: "triggerSubsteps",
|
|
12983
12987
|
default: !1
|
|
12984
|
-
}), jd =
|
|
12988
|
+
}), jd = yo(function(t, n) {
|
|
12985
12989
|
var b;
|
|
12986
12990
|
const { totalSteps: r, activeStep: o, previous: s, originLocation: i, directions: a } = t, l = ge(), { t: c } = nt(), [u, f] = te(ss), [, d] = te(ob), p = un();
|
|
12987
|
-
|
|
12991
|
+
So(n, () => ({
|
|
12988
12992
|
openSubsteps() {
|
|
12989
12993
|
l.current.openSubsteps();
|
|
12990
12994
|
},
|
|
@@ -13067,7 +13071,7 @@ Vd.propTypes = {
|
|
|
13067
13071
|
isOpen: w.bool
|
|
13068
13072
|
};
|
|
13069
13073
|
function Vd({ steps: e, onNextStep: t, onPreviousStep: n, originLocation: r, isOpen: o }) {
|
|
13070
|
-
const { t: s } = nt(), i = Jn(), a = ge(), [l, c] = ee(), [u, f] = te(os), [d, p] = ee(), g = H(
|
|
13074
|
+
const { t: s } = nt(), i = Jn(), a = ge(), [l, c] = ee(), [u, f] = te(os), [d, p] = ee(), g = H(Ir), b = H(ss), [, E] = te(Bd), R = un();
|
|
13071
13075
|
D(() => {
|
|
13072
13076
|
p(e);
|
|
13073
13077
|
}, [e]), D(() => {
|
|
@@ -13130,22 +13134,22 @@ la.propTypes = {
|
|
|
13130
13134
|
};
|
|
13131
13135
|
function la({ isOpen: e, onBack: t, onSetSize: n, onRouteFinished: r, snapPointSwipedByUser: o }) {
|
|
13132
13136
|
var B;
|
|
13133
|
-
const { t: s } = nt(), i = ge(), [a, l] = ee(null), c = ge(null), [u, f] = ee(), d = H(Et), p = H(
|
|
13137
|
+
const { t: s } = nt(), i = ge(), [a, l] = ee(null), c = ge(null), [u, f] = ee(), d = H(Et), p = H(Or), g = H(Ir), [, b] = te(os), [E, R] = te(ss), h = H(Bt), v = Pt(), [, y] = te(ns), S = H(Bd), C = H(Vt), T = un(), N = H(es), O = H(kd), M = H(Qt), F = H(Ho), Y = H(na), P = H(cn);
|
|
13134
13138
|
D(() => () => {
|
|
13135
13139
|
l(null);
|
|
13136
13140
|
}, []), D(() => {
|
|
13137
13141
|
if (l(null), e && g) {
|
|
13138
13142
|
f(g.totalTime);
|
|
13139
|
-
const
|
|
13140
|
-
pt == null || pt.setRoute(null), pt = null, Promise.all([G(
|
|
13143
|
+
const A = Math.min(window.innerHeight, window.innerWidth) * 0.06;
|
|
13144
|
+
pt == null || pt.setRoute(null), pt = null, Promise.all([G(A), fe(A)]).then(([V, W]) => {
|
|
13141
13145
|
pt = new window.mapsindoors.directions.DirectionsRenderer({
|
|
13142
13146
|
mapsIndoors: d,
|
|
13143
13147
|
fitBounds: !T,
|
|
13144
13148
|
fitBoundsPadding: T ? void 0 : {
|
|
13145
|
-
top:
|
|
13149
|
+
top: A,
|
|
13146
13150
|
bottom: V,
|
|
13147
13151
|
left: W,
|
|
13148
|
-
right:
|
|
13152
|
+
right: A
|
|
13149
13153
|
}
|
|
13150
13154
|
}), pt.setRoute(g.directionsResult).then(() => {
|
|
13151
13155
|
pt.setStepIndex(0);
|
|
@@ -13153,29 +13157,29 @@ function la({ isOpen: e, onBack: t, onSetSize: n, onRouteFinished: r, snapPointS
|
|
|
13153
13157
|
});
|
|
13154
13158
|
}
|
|
13155
13159
|
}, [e, g, d, p, Y]);
|
|
13156
|
-
function G(
|
|
13160
|
+
function G(A) {
|
|
13157
13161
|
return new Promise((V) => {
|
|
13158
13162
|
if (v)
|
|
13159
|
-
h ? Yo().then((W) => V(W)) : V(
|
|
13163
|
+
h ? Yo().then((W) => V(W)) : V(A);
|
|
13160
13164
|
else
|
|
13161
13165
|
return On().then((W) => V(W));
|
|
13162
13166
|
});
|
|
13163
13167
|
}
|
|
13164
|
-
function fe(
|
|
13168
|
+
function fe(A) {
|
|
13165
13169
|
return new Promise((V) => {
|
|
13166
|
-
v ? h ? V(
|
|
13170
|
+
v ? h ? V(A) : mn().then((W) => V(W)) : V(A);
|
|
13167
13171
|
});
|
|
13168
13172
|
}
|
|
13169
13173
|
D(() => {
|
|
13170
13174
|
!e && pt && (we(), U(Fd.minZoom));
|
|
13171
13175
|
}, [e]);
|
|
13172
13176
|
function ce() {
|
|
13173
|
-
return g ? g.directionsResult.legs.reduce((
|
|
13177
|
+
return g ? g.directionsResult.legs.reduce((A, V) => {
|
|
13174
13178
|
for (const W in V.steps) {
|
|
13175
13179
|
const z = V.steps[W];
|
|
13176
|
-
|
|
13180
|
+
A.push(z);
|
|
13177
13181
|
}
|
|
13178
|
-
return
|
|
13182
|
+
return A;
|
|
13179
13183
|
}, []) : [];
|
|
13180
13184
|
}
|
|
13181
13185
|
function oe() {
|
|
@@ -13190,18 +13194,18 @@ function la({ isOpen: e, onBack: t, onSetSize: n, onRouteFinished: r, snapPointS
|
|
|
13190
13194
|
function $() {
|
|
13191
13195
|
b(0), R(!1), k(Ce.FIT);
|
|
13192
13196
|
}
|
|
13193
|
-
function U(
|
|
13194
|
-
F === "mapbox" ? d.getMapView().getMap().setMinZoom(
|
|
13197
|
+
function U(A) {
|
|
13198
|
+
F === "mapbox" ? d.getMapView().getMap().setMinZoom(A) : F === "google" && d.getMapView().getMap().setOptions({ minZoom: A });
|
|
13195
13199
|
}
|
|
13196
13200
|
function x() {
|
|
13197
13201
|
$(), we(), t();
|
|
13198
13202
|
}
|
|
13199
|
-
function k(
|
|
13200
|
-
typeof n == "function" && n(
|
|
13203
|
+
function k(A) {
|
|
13204
|
+
typeof n == "function" && n(A);
|
|
13201
13205
|
}
|
|
13202
13206
|
function j() {
|
|
13203
|
-
const
|
|
13204
|
-
y(
|
|
13207
|
+
const A = `${O}&directionsFrom=${h.id}&directionsTo=${M.id}`;
|
|
13208
|
+
y(A);
|
|
13205
13209
|
}
|
|
13206
13210
|
return D(() => (i.current = requestAnimationFrame(() => {
|
|
13207
13211
|
k(E ? Ce.MAX : Ce.FIT);
|
|
@@ -13227,7 +13231,7 @@ function la({ isOpen: e, onBack: t, onSetSize: n, onRouteFinished: r, snapPointS
|
|
|
13227
13231
|
/* @__PURE__ */ m.jsx("hr", {}),
|
|
13228
13232
|
/* @__PURE__ */ m.jsxs("div", { className: "directions__kiosk", children: [
|
|
13229
13233
|
/* @__PURE__ */ m.jsx(ia, { onAccessibilityChanged: () => $() }),
|
|
13230
|
-
((B =
|
|
13234
|
+
((B = P == null ? void 0 : P.appSettings) == null ? void 0 : B.includeTransitSelection) === "true" && /* @__PURE__ */ m.jsx($d, {}),
|
|
13231
13235
|
/* @__PURE__ */ m.jsxs("button", { className: "directions__qr-code", onClick: () => j(), "aria-label": s("Scan QR code to view route on phone"), children: [
|
|
13232
13236
|
/* @__PURE__ */ m.jsx(Ad, {}),
|
|
13233
13237
|
s("Scan QR code")
|
|
@@ -13249,9 +13253,9 @@ function la({ isOpen: e, onBack: t, onSetSize: n, onRouteFinished: r, snapPointS
|
|
|
13249
13253
|
const Ud = pe({
|
|
13250
13254
|
key: "useKeyboard",
|
|
13251
13255
|
default: !1
|
|
13252
|
-
}), Hd =
|
|
13256
|
+
}), Hd = yo(function(t, n) {
|
|
13253
13257
|
const { searchInputElement: r } = t, o = ge(), s = H(xn);
|
|
13254
|
-
return
|
|
13258
|
+
return So(n, () => ({
|
|
13255
13259
|
clearInputField() {
|
|
13256
13260
|
o.current.clearInputField();
|
|
13257
13261
|
}
|
|
@@ -13302,15 +13306,15 @@ fi.propTypes = {
|
|
|
13302
13306
|
categoryOrientation: w.oneOf(["horizontal", "vertical"])
|
|
13303
13307
|
};
|
|
13304
13308
|
function fi({ onSetSize: e, getFilteredLocations: t, searchFieldRef: n, isOpen: r, topLevelCategory: o, handleBack: s, selectedCategoriesArray: i, categoryOrientation: a }) {
|
|
13305
|
-
const l = H(
|
|
13309
|
+
const l = H(Ar), c = Pt(), [u, f] = te(ca), [, d] = te(is), [, p] = te(Go), g = Jn(), [b, E] = ee(), R = H(ib), h = H(zd), v = H(Et), y = Td(v, r), [S, C] = ee([]), [T, N] = ee([]), { t: O } = nt(), M = un(), F = ge(null), [Y, P] = ee(!1), [G, fe] = ee(!1), ce = (k) => {
|
|
13306
13310
|
we && F.current && F.current.scrollBy({
|
|
13307
13311
|
left: k === "left" ? -200 : 200,
|
|
13308
13312
|
behavior: "smooth"
|
|
13309
13313
|
});
|
|
13310
13314
|
}, oe = () => {
|
|
13311
13315
|
if (F.current) {
|
|
13312
|
-
const { scrollLeft: k, scrollWidth: j, clientWidth: B } = F.current,
|
|
13313
|
-
|
|
13316
|
+
const { scrollLeft: k, scrollWidth: j, clientWidth: B } = F.current, A = k <= 0, V = k >= j - B - 1;
|
|
13317
|
+
P(!A), fe(!V);
|
|
13314
13318
|
}
|
|
13315
13319
|
}, de = !o && S.length === 0, we = M && a === "horizontal" && !de;
|
|
13316
13320
|
D(() => {
|
|
@@ -13337,7 +13341,7 @@ function fi({ onSetSize: e, getFilteredLocations: t, searchFieldRef: n, isOpen:
|
|
|
13337
13341
|
}, [u]), D(() => {
|
|
13338
13342
|
b && h !== void 0 && (c || !c && R) && b.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "center" });
|
|
13339
13343
|
}, [b, h, R]), D(() => {
|
|
13340
|
-
var B,
|
|
13344
|
+
var B, A, V;
|
|
13341
13345
|
let k = [];
|
|
13342
13346
|
if (o) {
|
|
13343
13347
|
const W = l.flatMap(([, z]) => z.childKeys || []);
|
|
@@ -13347,7 +13351,7 @@ function fi({ onSetSize: e, getFilteredLocations: t, searchFieldRef: n, isOpen:
|
|
|
13347
13351
|
k = l.filter(([J]) => z.includes(J));
|
|
13348
13352
|
}
|
|
13349
13353
|
C(k);
|
|
13350
|
-
const j = (V = (
|
|
13354
|
+
const j = (V = (A = l.find(([W]) => W === u)) == null ? void 0 : A[1]) == null ? void 0 : V.displayName;
|
|
13351
13355
|
N(j);
|
|
13352
13356
|
}, [l]), /* @__PURE__ */ m.jsx("div", { className: $, ...g, children: l.length > 0 && /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
13353
13357
|
!o && /* @__PURE__ */ m.jsxs("div", { className: "categories__nav", children: [
|
|
@@ -13408,7 +13412,7 @@ const lb = (e) => /* @__PURE__ */ re.createElement("svg", { width: 24, height: 2
|
|
|
13408
13412
|
}, strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), as = pe({
|
|
13409
13413
|
key: "isLegendDialogVisible",
|
|
13410
13414
|
default: !1
|
|
13411
|
-
}), Gd =
|
|
13415
|
+
}), Gd = Vo({
|
|
13412
13416
|
key: "legendFields",
|
|
13413
13417
|
get: ({ get: e }) => {
|
|
13414
13418
|
const t = e(Bt);
|
|
@@ -13443,10 +13447,10 @@ da.propTypes = {
|
|
|
13443
13447
|
isOpen: w.bool
|
|
13444
13448
|
};
|
|
13445
13449
|
function da({ onSetSize: e, isOpen: t }) {
|
|
13446
|
-
const n = H(cn), { t: r } = nt(), o = ge(), s = ge(), i = ge(), a = ge(), l = ge(), c = 100, [u, f] = te(is), d = H(
|
|
13450
|
+
const n = H(cn), { t: r } = nt(), o = ge(), s = ge(), i = ge(), a = ge(), l = ge(), c = 100, [u, f] = te(is), d = H(Ar), p = H(Ud), [g, b] = ee(!1), [E, R] = te(ca), h = Jn(), [v, y] = ee(), S = H(Et), [, C] = te(Go), [, T] = te(Qt), [, N] = te(Xo), [O, M] = te(ln), F = H(xn), Y = Pt(), P = H(Bt), [G, fe] = ee(!1), ce = H(sa), oe = un(), [, de] = te(as), [we, $] = ee(!1), U = H(Gd), x = H(ts), k = H(Pr), j = H(ua), [B, A] = ee(!1), V = ge([]), [W, z] = ee([]), [J, he] = ee(!1);
|
|
13447
13451
|
function K() {
|
|
13448
13452
|
var ie, Q, _e;
|
|
13449
|
-
V.current.length === 1 ? (R(null), f([]), C([]), Ie(Ce.FIT),
|
|
13453
|
+
V.current.length === 1 ? (R(null), f([]), C([]), Ie(Ce.FIT), A(!0), ((Q = (ie = a.current) == null ? void 0 : ie.getValue()) == null ? void 0 : Q.trim()) ? a.current.triggerSearch() : (_e = a.current) == null || _e.clear(), V.current.pop()) : (V.current.pop(), R(V.current[0]));
|
|
13450
13454
|
}
|
|
13451
13455
|
function Se(ie) {
|
|
13452
13456
|
var Q;
|
|
@@ -13490,15 +13494,15 @@ function da({ onSetSize: e, isOpen: t }) {
|
|
|
13490
13494
|
});
|
|
13491
13495
|
});
|
|
13492
13496
|
}
|
|
13493
|
-
function
|
|
13497
|
+
function Ze() {
|
|
13494
13498
|
f([]), b(!1), E && Se(E), C([]), mt(l.current) || l.current.clearInputField();
|
|
13495
13499
|
}
|
|
13496
|
-
function
|
|
13500
|
+
function Qe() {
|
|
13497
13501
|
a.current.getInputField();
|
|
13498
13502
|
const ie = o.current.closest(".sheet");
|
|
13499
13503
|
ie ? ie.addEventListener("transitionend", () => {
|
|
13500
|
-
a.current.focusInput(),
|
|
13501
|
-
}, { once: !0 }) : (a.current.focusInput(),
|
|
13504
|
+
a.current.focusInput(), A(!0);
|
|
13505
|
+
}, { once: !0 }) : (a.current.focusInput(), A(!0));
|
|
13502
13506
|
}
|
|
13503
13507
|
function dt(ie) {
|
|
13504
13508
|
y(ie);
|
|
@@ -13515,12 +13519,12 @@ function da({ onSetSize: e, isOpen: t }) {
|
|
|
13515
13519
|
}
|
|
13516
13520
|
function Le() {
|
|
13517
13521
|
return new Promise((ie) => {
|
|
13518
|
-
Y ?
|
|
13522
|
+
Y ? P ? Yo().then((Q) => ie(Q)) : ie(0) : ie(200);
|
|
13519
13523
|
});
|
|
13520
13524
|
}
|
|
13521
13525
|
function We() {
|
|
13522
13526
|
return new Promise((ie) => {
|
|
13523
|
-
Y ?
|
|
13527
|
+
Y ? P ? ie(0) : mn().then((Q) => ie(Q)) : ie(0);
|
|
13524
13528
|
});
|
|
13525
13529
|
}
|
|
13526
13530
|
function ot() {
|
|
@@ -13540,8 +13544,8 @@ function da({ onSetSize: e, isOpen: t }) {
|
|
|
13540
13544
|
(Ht) => Me.target.closest(Ht)
|
|
13541
13545
|
), Xt = Me.target.closest(".search__results");
|
|
13542
13546
|
et ? (Ie(Ce.MAX), i.current = requestAnimationFrame(() => {
|
|
13543
|
-
|
|
13544
|
-
})) : !Xt && !Ut && (
|
|
13547
|
+
A(!0);
|
|
13548
|
+
})) : !Xt && !Ut && (A(!1), Ie(Ce.MIN), R(null), f([]), C([]), V.current = []);
|
|
13545
13549
|
};
|
|
13546
13550
|
return t ? i.current = requestAnimationFrame(() => {
|
|
13547
13551
|
document.addEventListener("click", _e);
|
|
@@ -13577,8 +13581,8 @@ function da({ onSetSize: e, isOpen: t }) {
|
|
|
13577
13581
|
}, [p]), D(() => {
|
|
13578
13582
|
E && Se(E);
|
|
13579
13583
|
}, [E]), D(() => {
|
|
13580
|
-
|
|
13581
|
-
}, [
|
|
13584
|
+
P && $(U.length > 0);
|
|
13585
|
+
}, [P]), D(() => {
|
|
13582
13586
|
var Q, _e;
|
|
13583
13587
|
const ie = ((_e = (Q = d.find(([Me]) => Me === E)) == null ? void 0 : Q[1]) == null ? void 0 : _e.childKeys) || [];
|
|
13584
13588
|
z(ie);
|
|
@@ -13597,14 +13601,14 @@ function da({ onSetSize: e, isOpen: t }) {
|
|
|
13597
13601
|
/* @__PURE__ */ m.jsxs("label", { className: "search__label", children: [
|
|
13598
13602
|
/* @__PURE__ */ m.jsx("span", { children: r("Search by name, category, building...") }),
|
|
13599
13603
|
/* @__PURE__ */ m.jsx(
|
|
13600
|
-
|
|
13604
|
+
go,
|
|
13601
13605
|
{
|
|
13602
13606
|
ref: a,
|
|
13603
13607
|
mapsindoors: !0,
|
|
13604
13608
|
placeholder: r("Search by name, category, building..."),
|
|
13605
13609
|
results: (ie) => Fe(ie),
|
|
13606
|
-
clicked: () =>
|
|
13607
|
-
cleared: () =>
|
|
13610
|
+
clicked: () => Qe(),
|
|
13611
|
+
cleared: () => Ze(),
|
|
13608
13612
|
category: E,
|
|
13609
13613
|
disabled: !t
|
|
13610
13614
|
}
|
|
@@ -13680,7 +13684,7 @@ function fa({ onBack: e, onLocationClick: t, locations: n, onSetSize: r }) {
|
|
|
13680
13684
|
" ",
|
|
13681
13685
|
o("Locations")
|
|
13682
13686
|
] }),
|
|
13683
|
-
/* @__PURE__ */ m.jsx("button", { className: "locations-list__close", onClick: () => e(), "aria-label": o("Close"), children: /* @__PURE__ */ m.jsx(
|
|
13687
|
+
/* @__PURE__ */ m.jsx("button", { className: "locations-list__close", onClick: () => e(), "aria-label": o("Close"), children: /* @__PURE__ */ m.jsx(Mr, {}) })
|
|
13684
13688
|
] }),
|
|
13685
13689
|
/* @__PURE__ */ m.jsx("div", { className: "locations-list__scrollable prevent-scroll", ...s, children: /* @__PURE__ */ m.jsx("div", { className: "locations-list__list", children: n == null ? void 0 : n.map(
|
|
13686
13690
|
(a) => /* @__PURE__ */ m.jsx(
|
|
@@ -13850,9 +13854,9 @@ const cb = {
|
|
|
13850
13854
|
default: !1
|
|
13851
13855
|
});
|
|
13852
13856
|
function fb() {
|
|
13853
|
-
const e = H(ua), [, t] = te(ln), n =
|
|
13857
|
+
const e = H(ua), [, t] = te(ln), n = qe(os), r = qe(Qt), o = qe(Ir), s = qe(Jo), i = qe(Xo), a = qe(kr), l = qe(db), c = qe(ss), u = qe(Or), f = qe(is), d = qe($r), p = qe(as), g = qe(Xu), b = qe(Gi), E = qe(Nr);
|
|
13854
13858
|
return () => {
|
|
13855
|
-
n(), r(), o(), s(), i(), a(), l(), c(), u(), f(), d(), p(), g(), b(), e && t(e);
|
|
13859
|
+
n(), r(), o(), s(), i(), a(), l(), c(), u(), f(), d(), p(), g(), b(), E(), e && t(e);
|
|
13856
13860
|
};
|
|
13857
13861
|
}
|
|
13858
13862
|
jn.propTypes = {
|
|
@@ -13945,7 +13949,7 @@ function Wd({ directionsFromLocation: e, directionsToLocation: t, pushAppView: n
|
|
|
13945
13949
|
return /* @__PURE__ */ m.jsx("div", { children: b });
|
|
13946
13950
|
}
|
|
13947
13951
|
const Gl = (e) => {
|
|
13948
|
-
const [t, n] = ee(), r = H(
|
|
13952
|
+
const [t, n] = ee(), r = H(Nr), o = H(Wu);
|
|
13949
13953
|
return D(() => {
|
|
13950
13954
|
o && e && (e === "USER_POSITION" && !r ? (n("USER_POSITION_PENDING"), o.watchPosition()) : e !== "USER_POSITION" && window.mapsindoors.services.LocationsService.getLocation(e).then((s) => n(s)), r && e === "USER_POSITION" && n(di(r)));
|
|
13951
13955
|
}, [e, r, o]), t;
|
|
@@ -13954,13 +13958,13 @@ const Gl = (e) => {
|
|
|
13954
13958
|
default: null
|
|
13955
13959
|
});
|
|
13956
13960
|
function pb() {
|
|
13957
|
-
const e = H(
|
|
13961
|
+
const e = H(kr), t = ge();
|
|
13958
13962
|
return D(() => {
|
|
13959
13963
|
var n;
|
|
13960
13964
|
(n = t.current) == null || n.classList.add("notification"), e ? t.current.push(e.text, e.type, !0) : t.current.clearAll();
|
|
13961
13965
|
}, [e]), /* @__PURE__ */ m.jsx("mi-notification", { ref: t, position: "top-center" });
|
|
13962
13966
|
}
|
|
13963
|
-
var
|
|
13967
|
+
var Dr = {}, gb = function() {
|
|
13964
13968
|
return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
|
|
13965
13969
|
}, Yd = {}, Rt = {};
|
|
13966
13970
|
let ha;
|
|
@@ -14091,25 +14095,25 @@ qd.prototype = {
|
|
|
14091
14095
|
}
|
|
14092
14096
|
};
|
|
14093
14097
|
var vb = qd;
|
|
14094
|
-
function
|
|
14098
|
+
function jr(e) {
|
|
14095
14099
|
if (!e || e < 1)
|
|
14096
14100
|
throw new Error("BitMatrix size must be defined and greater than 0");
|
|
14097
14101
|
this.size = e, this.data = new Uint8Array(e * e), this.reservedBit = new Uint8Array(e * e);
|
|
14098
14102
|
}
|
|
14099
|
-
|
|
14103
|
+
jr.prototype.set = function(e, t, n, r) {
|
|
14100
14104
|
const o = e * this.size + t;
|
|
14101
14105
|
this.data[o] = n, r && (this.reservedBit[o] = !0);
|
|
14102
14106
|
};
|
|
14103
|
-
|
|
14107
|
+
jr.prototype.get = function(e, t) {
|
|
14104
14108
|
return this.data[e * this.size + t];
|
|
14105
14109
|
};
|
|
14106
|
-
|
|
14110
|
+
jr.prototype.xor = function(e, t, n) {
|
|
14107
14111
|
this.data[e * this.size + t] ^= n;
|
|
14108
14112
|
};
|
|
14109
|
-
|
|
14113
|
+
jr.prototype.isReserved = function(e, t) {
|
|
14110
14114
|
return this.reservedBit[e * this.size + t];
|
|
14111
14115
|
};
|
|
14112
|
-
var yb =
|
|
14116
|
+
var yb = jr, Zd = {};
|
|
14113
14117
|
(function(e) {
|
|
14114
14118
|
const t = Rt.getSymbolSize;
|
|
14115
14119
|
e.getRowColCoords = function(r) {
|
|
@@ -14240,7 +14244,7 @@ var Xd = {};
|
|
|
14240
14244
|
};
|
|
14241
14245
|
})(Xd);
|
|
14242
14246
|
var cs = {};
|
|
14243
|
-
const nn = ls,
|
|
14247
|
+
const nn = ls, qr = [
|
|
14244
14248
|
// L M Q H
|
|
14245
14249
|
1,
|
|
14246
14250
|
1,
|
|
@@ -14402,7 +14406,7 @@ const nn = ls, Yr = [
|
|
|
14402
14406
|
49,
|
|
14403
14407
|
68,
|
|
14404
14408
|
81
|
|
14405
|
-
],
|
|
14409
|
+
], Zr = [
|
|
14406
14410
|
// L M Q H
|
|
14407
14411
|
7,
|
|
14408
14412
|
10,
|
|
@@ -14568,13 +14572,13 @@ const nn = ls, Yr = [
|
|
|
14568
14572
|
cs.getBlocksCount = function(t, n) {
|
|
14569
14573
|
switch (n) {
|
|
14570
14574
|
case nn.L:
|
|
14571
|
-
return
|
|
14575
|
+
return qr[(t - 1) * 4 + 0];
|
|
14572
14576
|
case nn.M:
|
|
14573
|
-
return
|
|
14577
|
+
return qr[(t - 1) * 4 + 1];
|
|
14574
14578
|
case nn.Q:
|
|
14575
|
-
return
|
|
14579
|
+
return qr[(t - 1) * 4 + 2];
|
|
14576
14580
|
case nn.H:
|
|
14577
|
-
return
|
|
14581
|
+
return qr[(t - 1) * 4 + 3];
|
|
14578
14582
|
default:
|
|
14579
14583
|
return;
|
|
14580
14584
|
}
|
|
@@ -14582,36 +14586,36 @@ cs.getBlocksCount = function(t, n) {
|
|
|
14582
14586
|
cs.getTotalCodewordsCount = function(t, n) {
|
|
14583
14587
|
switch (n) {
|
|
14584
14588
|
case nn.L:
|
|
14585
|
-
return
|
|
14589
|
+
return Zr[(t - 1) * 4 + 0];
|
|
14586
14590
|
case nn.M:
|
|
14587
|
-
return
|
|
14591
|
+
return Zr[(t - 1) * 4 + 1];
|
|
14588
14592
|
case nn.Q:
|
|
14589
|
-
return
|
|
14593
|
+
return Zr[(t - 1) * 4 + 2];
|
|
14590
14594
|
case nn.H:
|
|
14591
|
-
return
|
|
14595
|
+
return Zr[(t - 1) * 4 + 3];
|
|
14592
14596
|
default:
|
|
14593
14597
|
return;
|
|
14594
14598
|
}
|
|
14595
14599
|
};
|
|
14596
14600
|
var Jd = {}, us = {};
|
|
14597
|
-
const pr = new Uint8Array(512),
|
|
14601
|
+
const pr = new Uint8Array(512), mo = new Uint8Array(256);
|
|
14598
14602
|
(function() {
|
|
14599
14603
|
let t = 1;
|
|
14600
14604
|
for (let n = 0; n < 255; n++)
|
|
14601
|
-
pr[n] = t,
|
|
14605
|
+
pr[n] = t, mo[t] = n, t <<= 1, t & 256 && (t ^= 285);
|
|
14602
14606
|
for (let n = 255; n < 512; n++)
|
|
14603
14607
|
pr[n] = pr[n - 255];
|
|
14604
14608
|
})();
|
|
14605
14609
|
us.log = function(t) {
|
|
14606
14610
|
if (t < 1)
|
|
14607
14611
|
throw new Error("log(" + t + ")");
|
|
14608
|
-
return
|
|
14612
|
+
return mo[t];
|
|
14609
14613
|
};
|
|
14610
14614
|
us.exp = function(t) {
|
|
14611
14615
|
return pr[t];
|
|
14612
14616
|
};
|
|
14613
14617
|
us.mul = function(t, n) {
|
|
14614
|
-
return t === 0 || n === 0 ? 0 : pr[
|
|
14618
|
+
return t === 0 || n === 0 ? 0 : pr[mo[t] + mo[n]];
|
|
14615
14619
|
};
|
|
14616
14620
|
(function(e) {
|
|
14617
14621
|
const t = us;
|
|
@@ -15137,8 +15141,8 @@ var jb = af.exports;
|
|
|
15137
15141
|
const M = T[O], F = "" + C + O;
|
|
15138
15142
|
N.push(F), v[F] = { node: M, lastCount: 0 }, y[F] = {};
|
|
15139
15143
|
for (let Y = 0; Y < S.length; Y++) {
|
|
15140
|
-
const
|
|
15141
|
-
v[
|
|
15144
|
+
const P = S[Y];
|
|
15145
|
+
v[P] && v[P].node.mode === M.mode ? (y[P][F] = d(v[P].lastCount + M.length, M.mode) - d(v[P].lastCount, M.mode), v[P].lastCount += M.length) : (v[P] && (v[P].lastCount = M.length), y[P][F] = d(M.length, M.mode) + 4 + t.getCharCountIndicator(M.mode, h));
|
|
15142
15146
|
}
|
|
15143
15147
|
}
|
|
15144
15148
|
S = N;
|
|
@@ -15179,7 +15183,7 @@ var jb = af.exports;
|
|
|
15179
15183
|
);
|
|
15180
15184
|
};
|
|
15181
15185
|
})(sf);
|
|
15182
|
-
const ds = Rt, js = ls, Bb = vb, Vb = yb, Fb = Zd, Ub = Qd, pi = Xd, gi = cs, Hb = bb,
|
|
15186
|
+
const ds = Rt, js = ls, Bb = vb, Vb = yb, Fb = Zd, Ub = Qd, pi = Xd, gi = cs, Hb = bb, vo = tf, zb = rf, Gb = dn, Bs = sf;
|
|
15183
15187
|
function Kb(e, t) {
|
|
15184
15188
|
const n = e.size, r = Ub.getPositions(t);
|
|
15185
15189
|
for (let o = 0; o < r.length; o++) {
|
|
@@ -15207,7 +15211,7 @@ function Yb(e, t) {
|
|
|
15207
15211
|
}
|
|
15208
15212
|
}
|
|
15209
15213
|
function qb(e, t) {
|
|
15210
|
-
const n = e.size, r =
|
|
15214
|
+
const n = e.size, r = vo.getEncodedBits(t);
|
|
15211
15215
|
let o, s, i;
|
|
15212
15216
|
for (let a = 0; a < 18; a++)
|
|
15213
15217
|
o = Math.floor(a / 3), s = a % 3 + n - 8 - 3, i = (r >> a & 1) === 1, e.set(o, s, i, !0), e.set(s, o, i, !0);
|
|
@@ -15276,12 +15280,12 @@ function Jb(e, t, n, r) {
|
|
|
15276
15280
|
let c = t;
|
|
15277
15281
|
if (!c) {
|
|
15278
15282
|
const u = Bs.rawSplit(e);
|
|
15279
|
-
c =
|
|
15283
|
+
c = vo.getBestVersionForData(u, n);
|
|
15280
15284
|
}
|
|
15281
15285
|
o = Bs.fromString(e, c || 40);
|
|
15282
15286
|
} else
|
|
15283
15287
|
throw new Error("Invalid data");
|
|
15284
|
-
const s =
|
|
15288
|
+
const s = vo.getBestVersionForData(o, n);
|
|
15285
15289
|
if (!s)
|
|
15286
15290
|
throw new Error("The amount of data is too big to be stored in a QR Code");
|
|
15287
15291
|
if (!t)
|
|
@@ -15309,7 +15313,7 @@ Yd.create = function(t, n) {
|
|
|
15309
15313
|
if (typeof t > "u" || t === "")
|
|
15310
15314
|
throw new Error("No input text");
|
|
15311
15315
|
let r = js.M, o, s;
|
|
15312
|
-
return typeof n < "u" && (r = js.from(n.errorCorrectionLevel, js.M), o =
|
|
15316
|
+
return typeof n < "u" && (r = js.from(n.errorCorrectionLevel, js.M), o = vo.from(n.version), s = pi.from(n.maskPattern), n.toSJISFunc && ds.setToSJISFunction(n.toSJISFunc)), Jb(t, o, r, s);
|
|
15313
15317
|
};
|
|
15314
15318
|
var lf = {}, ma = {};
|
|
15315
15319
|
(function(e) {
|
|
@@ -15438,10 +15442,10 @@ function va(e, t, n, r, o) {
|
|
|
15438
15442
|
o(l);
|
|
15439
15443
|
}
|
|
15440
15444
|
}
|
|
15441
|
-
|
|
15442
|
-
|
|
15443
|
-
|
|
15444
|
-
|
|
15445
|
+
Dr.create = mi.create;
|
|
15446
|
+
Dr.toCanvas = va.bind(null, uf.render);
|
|
15447
|
+
Dr.toDataURL = va.bind(null, uf.renderToDataURL);
|
|
15448
|
+
Dr.toString = va.bind(null, function(e, t, n) {
|
|
15445
15449
|
return r3.render(e, n);
|
|
15446
15450
|
});
|
|
15447
15451
|
function o3() {
|
|
@@ -15452,7 +15456,7 @@ function o3() {
|
|
|
15452
15456
|
margin: 0,
|
|
15453
15457
|
width: "225"
|
|
15454
15458
|
};
|
|
15455
|
-
|
|
15459
|
+
Dr.toDataURL(t, s).then((i) => {
|
|
15456
15460
|
r.current.src = i;
|
|
15457
15461
|
});
|
|
15458
15462
|
}, [o, t]), /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
@@ -15499,7 +15503,7 @@ function i3() {
|
|
|
15499
15503
|
] });
|
|
15500
15504
|
}
|
|
15501
15505
|
const a3 = () => {
|
|
15502
|
-
const [e, t] = te(ln), n = H(
|
|
15506
|
+
const [e, t] = te(ln), n = H(Pr), r = H(Et), o = H(cn), [, s] = te(Ar), [, i] = te(is), a = H(sa), [l, c] = te(ua);
|
|
15503
15507
|
D(() => {
|
|
15504
15508
|
var d;
|
|
15505
15509
|
!e && n.length && t((d = u()) == null ? void 0 : d.name);
|
|
@@ -15524,13 +15528,13 @@ const a3 = () => {
|
|
|
15524
15528
|
const M = Object.keys(O.properties.categories);
|
|
15525
15529
|
for (const F of M)
|
|
15526
15530
|
if (p) {
|
|
15527
|
-
const Y = b.find((
|
|
15531
|
+
const Y = b.find((P) => P.categoryKey === F);
|
|
15528
15532
|
Y && T.set(Y.categoryKey, { displayName: O.properties.categories[F], iconUrl: Y == null ? void 0 : Y.iconUrl, childKeys: (Y == null ? void 0 : Y.childKeys) ?? [] });
|
|
15529
15533
|
}
|
|
15530
15534
|
}
|
|
15531
15535
|
const N = Array.from(T).sort((O, M) => {
|
|
15532
|
-
var
|
|
15533
|
-
const F = (G = (
|
|
15536
|
+
var P, G, fe, ce;
|
|
15537
|
+
const F = (G = (P = o.menuInfo) == null ? void 0 : P.mainmenu) == null ? void 0 : G.findIndex((oe) => oe.categoryKey === O[0]), Y = (ce = (fe = o.menuInfo) == null ? void 0 : fe.mainmenu) == null ? void 0 : ce.findIndex((oe) => oe.categoryKey === M[0]);
|
|
15534
15538
|
return F - Y;
|
|
15535
15539
|
});
|
|
15536
15540
|
s(N);
|
|
@@ -15542,7 +15546,7 @@ const a3 = () => {
|
|
|
15542
15546
|
default: !0
|
|
15543
15547
|
});
|
|
15544
15548
|
function c3() {
|
|
15545
|
-
const e =
|
|
15549
|
+
const e = qe(os), t = qe(Qt), n = qe(Ir), r = qe(Jo), o = qe(Xo), s = qe(kr), i = qe(Or), a = qe($r);
|
|
15546
15550
|
return () => {
|
|
15547
15551
|
e(), t(), n(), r(), o(), s(), i(), a();
|
|
15548
15552
|
};
|
|
@@ -15584,22 +15588,22 @@ df.propTypes = {
|
|
|
15584
15588
|
mapboxMapStyle: w.string,
|
|
15585
15589
|
devicePosition: w.object
|
|
15586
15590
|
};
|
|
15587
|
-
function df({ apiKey: e, gmApiKey: t, mapboxAccessToken: n, venue: r, locationId: o, primaryColor: s, logo: i, appUserRoles: a, directionsFrom: l, directionsTo: c, externalIDs: u, tileStyle: f, startZoomLevel: d, bearing: p, pitch: g, gmMapId: b, useMapProviderModule: E, kioskOriginLocationId: R, language: h, supportsUrlParameters: v, useKeyboard: y, timeout: S, miTransitionLevel: C, category: T, searchAllVenues: N, hideNonMatches: O, showRoadNames: M, showExternalIDs: F, searchExternalLocations: Y, center:
|
|
15588
|
-
const [de, we] = ee(!1), [$, U] = ee({ brandingColor: s }), [, x] = te(Fi), [, k] = te(Ui), [, j] = te(zo), [B,
|
|
15591
|
+
function df({ apiKey: e, gmApiKey: t, mapboxAccessToken: n, venue: r, locationId: o, primaryColor: s, logo: i, appUserRoles: a, directionsFrom: l, directionsTo: c, externalIDs: u, tileStyle: f, startZoomLevel: d, bearing: p, pitch: g, gmMapId: b, useMapProviderModule: E, kioskOriginLocationId: R, language: h, supportsUrlParameters: v, useKeyboard: y, timeout: S, miTransitionLevel: C, category: T, searchAllVenues: N, hideNonMatches: O, showRoadNames: M, showExternalIDs: F, searchExternalLocations: Y, center: P, useAppTitle: G, showMapMarkers: fe, mapboxMapStyle: ce, devicePosition: oe }) {
|
|
15592
|
+
const [de, we] = ee(!1), [$, U] = ee({ brandingColor: s }), [, x] = te(Fi), [, k] = te(Ui), [, j] = te(zo), [B, A] = te(Zo), [V, W] = te(Pr), [z, J] = te(Qt), he = H(Ar), [, K] = te(qo), [Se, Ie] = te(Vt), [, Ke] = te(ea), [, Fe] = te(hb), Ne = H(Et), [Ze, Qe] = te(xn), [, dt] = te(Bt), [, yt] = te(zi), [, Le] = te(Zu), We = Qu(), [, ot] = te(Pd), [, ft] = te(Ud), [, ie] = te(s3), [, Q] = te(ca), [, _e] = te(ts), [, Me] = te(zd), [, et] = te(fd), [, Ut] = te(es), [, Xt] = te(l3), [, Ht] = te(ra), [, er] = te(Ju), [I, L] = ee(), q = ge(), [, ae] = te(Dd), se = H(ns), [ue, me] = ee(!0), [ye, ve] = ee(!0), xe = Gl(l), Ue = Gl(c), [rt, Xe] = ee(!1), [, st] = te(Ko), [ht, Lt] = te(Go), [Jt, Nt] = ee(), [X, fs] = te(cn), [, hs] = te(Yu), [, ps] = te(Ku), [, _] = te(qu), [, Z] = te(Hi), [, le] = te(Wo), be = Pt(), Oe = fb(), [De, ke, Ee, it, Ae, Ye] = ub(), [$e, en] = ee(!1), Br = H(as), [wt, ya] = ee(0), [gs, ff] = a3(), hf = c3(), [, pf] = te(kr);
|
|
15589
15593
|
function gf() {
|
|
15590
15594
|
return new Promise((ne) => {
|
|
15591
15595
|
if (window.mapsindoors !== void 0)
|
|
15592
15596
|
return ne();
|
|
15593
15597
|
const je = document.createElement("script");
|
|
15594
|
-
je.setAttribute("type", "text/javascript"), je.setAttribute("src", "https://app.mapsindoors.com/mapsindoors/js/sdk/4.48.
|
|
15598
|
+
je.setAttribute("type", "text/javascript"), je.setAttribute("src", "https://app.mapsindoors.com/mapsindoors/js/sdk/4.48.1/mapsindoors-4.48.1.js.gz"), je.setAttribute("integrity", "sha384-QleVPH01UjtrNxWRxk39zPCAhP3kiI/+DoOUPHLyoXj1a02NHeQtfTtAOT7FArzt"), je.setAttribute("crossorigin", "anonymous"), document.body.appendChild(je), je.onload = () => {
|
|
15595
15599
|
ne();
|
|
15596
15600
|
};
|
|
15597
15601
|
});
|
|
15598
15602
|
}
|
|
15599
15603
|
D(() => {
|
|
15600
15604
|
var ne;
|
|
15601
|
-
|
|
15602
|
-
}, [h, X,
|
|
15605
|
+
Ze || (h ? Qe(h) : (ne = X == null ? void 0 : X.appSettings) != null && ne.language && Qe(X.appSettings.language));
|
|
15606
|
+
}, [h, X, Ze, Qe]), D(() => {
|
|
15603
15607
|
We && yf();
|
|
15604
15608
|
}, [We]), D(() => (gf().then(() => {
|
|
15605
15609
|
en(!0);
|
|
@@ -15608,15 +15612,15 @@ function df({ apiKey: e, gmApiKey: t, mapboxAccessToken: n, venue: r, locationId
|
|
|
15608
15612
|
}), []), D(() => {
|
|
15609
15613
|
var ne;
|
|
15610
15614
|
if ($e) {
|
|
15611
|
-
const je =
|
|
15615
|
+
const je = Ze ?? h ?? ((ne = X == null ? void 0 : X.appSettings) == null ? void 0 : ne.language) ?? navigator.language;
|
|
15612
15616
|
window.mapsindoors.MapsIndoors.setLanguage(je.split("-")[0]), window.mapsindoors.services.LocationsService.once("update_completed", () => {
|
|
15613
15617
|
he.length > 0 && ff(), V.length > 0 && window.mapsindoors.services.VenuesService.getVenues().then((ct) => {
|
|
15614
15618
|
ct = ct.map((zt) => (zt.image = X.venueImages[zt.name.toLowerCase()], zt)), W(ct);
|
|
15615
15619
|
}), z && window.mapsindoors.services.LocationsService.getLocation(z.id).then((ct) => J(ct));
|
|
15616
15620
|
}), (!tt.language || tt.language !== je) && (tt.isInitialized ? tt.changeLanguage(je) : Jy(je));
|
|
15617
15621
|
}
|
|
15618
|
-
}, [
|
|
15619
|
-
$e && (x(e),
|
|
15622
|
+
}, [Ze, h, $e, X]), D(() => {
|
|
15623
|
+
$e && (x(e), A(!1), window.mapsindoors.MapsIndoors.setMapsIndoorsApiKey(e), Promise.all([
|
|
15620
15624
|
// Fetch all Venues in the Solution
|
|
15621
15625
|
window.mapsindoors.services.VenuesService.getVenues(),
|
|
15622
15626
|
// Fetch the App Config belonging to the given API key. This is needed for checking access tokens and Venue images.
|
|
@@ -15627,7 +15631,7 @@ function df({ apiKey: e, gmApiKey: t, mapboxAccessToken: n, venue: r, locationId
|
|
|
15627
15631
|
new Promise((ne) => setTimeout(ne, 3e3))
|
|
15628
15632
|
]).then(([ne, je]) => {
|
|
15629
15633
|
ne = ne.map((ct) => (ct.image = je.venueImages[ct.name.toLowerCase()], ct)), W(ne);
|
|
15630
|
-
}),
|
|
15634
|
+
}), A(!1));
|
|
15631
15635
|
}, [e, $e]), D(() => {
|
|
15632
15636
|
var ne, je, ct, zt;
|
|
15633
15637
|
$e && X && (mt(n) && mt(t) && mt((ne = X == null ? void 0 : X.appSettings) == null ? void 0 : ne.mapboxAccessToken) && mt((je = X == null ? void 0 : X.appSettings) == null ? void 0 : je.gmKey) ? pf({ text: "Please provide a Mapbox Access Token or Google Maps API key to show a map.", type: "error" }) : (j(n || ((ct = X.appSettings) == null ? void 0 : ct.mapboxAccessToken)), k(t || ((zt = X.appSettings) == null ? void 0 : zt.gmKey))));
|
|
@@ -15730,13 +15734,13 @@ function df({ apiKey: e, gmApiKey: t, mapboxAccessToken: n, venue: r, locationId
|
|
|
15730
15734
|
Ht(Y);
|
|
15731
15735
|
}, [Y]), D(() => {
|
|
15732
15736
|
var ne;
|
|
15733
|
-
er(
|
|
15734
|
-
}, [
|
|
15737
|
+
er(P ?? ((ne = X == null ? void 0 : X.appSettings) == null ? void 0 : ne.center));
|
|
15738
|
+
}, [P, X]), D(() => {
|
|
15735
15739
|
var ne;
|
|
15736
15740
|
G === !0 && !mt((ne = X == null ? void 0 : X.appSettings) == null ? void 0 : ne.title) && (document.title = X.appSettings.title);
|
|
15737
15741
|
}, [G, X]);
|
|
15738
15742
|
function mf() {
|
|
15739
|
-
B === !1 &&
|
|
15743
|
+
B === !1 && A(!0);
|
|
15740
15744
|
}
|
|
15741
15745
|
function vf(ne) {
|
|
15742
15746
|
switch (q.current) {
|
|
@@ -15758,8 +15762,8 @@ function df({ apiKey: e, gmApiKey: t, mapboxAccessToken: n, venue: r, locationId
|
|
|
15758
15762
|
$e && T && he.find((ne) => ne[0] === T) && (Q(T), Me(T));
|
|
15759
15763
|
}, [T, he, $e]), D(() => {
|
|
15760
15764
|
var ne;
|
|
15761
|
-
de || (h &&
|
|
15762
|
-
}, [h, X,
|
|
15765
|
+
de || (h && Ze !== h ? Qe(h) : !h && ((ne = X == null ? void 0 : X.appSettings) != null && ne.language) && Ze !== X.appSettings.language && Qe(X.appSettings.language));
|
|
15766
|
+
}, [h, X, Ze, Qe, de]), /* @__PURE__ */ m.jsxs("div", { className: `mapsindoors-map
|
|
15763
15767
|
${Ee === Ae.DIRECTIONS ? "mapsindoors-map--hide-elements" : "mapsindoors-map--show-elements"}
|
|
15764
15768
|
${V.length > 1 && ue ? "" : "mapsindoors-map--hide-venue-selector"}
|
|
15765
15769
|
${ye ? "mapsindoors-map--show-my-position" : "mapsindoors-map--hide-my-position"}`, children: [
|
|
@@ -15774,7 +15778,7 @@ function df({ apiKey: e, gmApiKey: t, mapboxAccessToken: n, venue: r, locationId
|
|
|
15774
15778
|
}
|
|
15775
15779
|
),
|
|
15776
15780
|
se && /* @__PURE__ */ m.jsx(o3, {}),
|
|
15777
|
-
|
|
15781
|
+
Br && /* @__PURE__ */ m.jsx(i3, {}),
|
|
15778
15782
|
rt && /* @__PURE__ */ m.jsxs(bf, { children: [
|
|
15779
15783
|
be && /* @__PURE__ */ m.jsx(
|
|
15780
15784
|
Wd,
|
|
@@ -15804,16 +15808,16 @@ function df({ apiKey: e, gmApiKey: t, mapboxAccessToken: n, venue: r, locationId
|
|
|
15804
15808
|
{
|
|
15805
15809
|
useMapProviderModule: E,
|
|
15806
15810
|
onMapPositionKnown: () => mf(),
|
|
15807
|
-
onMapPositionInvestigating: () =>
|
|
15811
|
+
onMapPositionInvestigating: () => Xe(!0),
|
|
15808
15812
|
onLocationClick: (ne) => vf(ne),
|
|
15809
15813
|
onViewModeSwitchKnown: (ne) => L(ne),
|
|
15810
15814
|
resetCount: wt,
|
|
15811
15815
|
mapOptions: $,
|
|
15812
15816
|
gmMapId: b,
|
|
15813
15817
|
isWayfindingOrDirections: Ee === Ae.WAYFINDING || Ee === Ae.DIRECTIONS,
|
|
15814
|
-
currentLanguage:
|
|
15818
|
+
currentLanguage: Ze,
|
|
15815
15819
|
setLanguage: (ne) => {
|
|
15816
|
-
|
|
15820
|
+
Qe(ne), we(!0);
|
|
15817
15821
|
},
|
|
15818
15822
|
devicePosition: oe
|
|
15819
15823
|
}
|
|
@@ -15873,7 +15877,7 @@ function u3(e) {
|
|
|
15873
15877
|
showExternalIDs: !1,
|
|
15874
15878
|
hideNonMatches: !1,
|
|
15875
15879
|
useAppTitle: !1
|
|
15876
|
-
}, i = o.get("apiKey"), a = o.get("venue"), l = o.get("locationId"), c = o.get("logo"), u = o.get("directionsFrom"), f = o.get("directionsTo"), d = o.get("tileStyle"), p = Number(o.get("startZoomLevel")), g = Number(o.get("pitch")), b = Number(o.get("bearing")), E = o.get("gmApiKey"), R = o.get("mapboxAccessToken"), h = o.get("primaryColor"), v = (j = o.get("appUserRoles")) == null ? void 0 : j.split(","), y = (B = o.get("externalIDs")) == null ? void 0 : B.split(","), S = o.get("gmMapId"), C = o.get("kioskOriginLocationId"), T = Number(o.get("timeout")), N = o.get("language"), O = Number(o.get("miTransitionLevel")), M = o.get("category"), F = o.get("useMapProviderModule"), Y = o.get("useKeyboard"),
|
|
15880
|
+
}, i = o.get("apiKey"), a = o.get("venue"), l = o.get("locationId"), c = o.get("logo"), u = o.get("directionsFrom"), f = o.get("directionsTo"), d = o.get("tileStyle"), p = Number(o.get("startZoomLevel")), g = Number(o.get("pitch")), b = Number(o.get("bearing")), E = o.get("gmApiKey"), R = o.get("mapboxAccessToken"), h = o.get("primaryColor"), v = (j = o.get("appUserRoles")) == null ? void 0 : j.split(","), y = (B = o.get("externalIDs")) == null ? void 0 : B.split(","), S = o.get("gmMapId"), C = o.get("kioskOriginLocationId"), T = Number(o.get("timeout")), N = o.get("language"), O = Number(o.get("miTransitionLevel")), M = o.get("category"), F = o.get("useMapProviderModule"), Y = o.get("useKeyboard"), P = o.get("searchAllVenues"), G = o.get("hideNonMatches"), fe = o.get("showExternalIDs"), ce = o.get("showRoadNames"), oe = o.get("searchExternalLocations"), de = o.get("center"), we = o.get("useAppTitle"), $ = o.get("showMapMarkers"), U = o.get("mapboxMapStyle"), x = e.supportsUrlParameters && i ? i : e.apiKey || s.apiKey;
|
|
15877
15881
|
let k = e.supportsUrlParameters && a ? a : e.venue || s.venue;
|
|
15878
15882
|
x === "mapspeople3d" && !k && (k = "AUSTINOFFICE"), n({
|
|
15879
15883
|
apiKey: x,
|
|
@@ -15902,7 +15906,7 @@ function u3(e) {
|
|
|
15902
15906
|
// Handle boolean values
|
|
15903
15907
|
useKeyboard: Gt(e.supportsUrlParameters, s.useKeyboard, e.useKeyboard, Y),
|
|
15904
15908
|
useMapProviderModule: Gt(e.supportsUrlParameters, s.useMapProviderModule, e.useMapProviderModule, F),
|
|
15905
|
-
searchAllVenues: Gt(e.supportsUrlParameters, s.searchAllVenues, e.searchAllVenues,
|
|
15909
|
+
searchAllVenues: Gt(e.supportsUrlParameters, s.searchAllVenues, e.searchAllVenues, P),
|
|
15906
15910
|
hideNonMatches: Gt(e.supportsUrlParameters, s.hideNonMatches, e.hideNonMatches, G),
|
|
15907
15911
|
showRoadNames: Gt(e.supportsUrlParameters, s.showRoadNames, e.showRoadNames, ce),
|
|
15908
15912
|
showExternalIDs: Gt(e.supportsUrlParameters, s.showExternalIDs, e.showExternalIDs, fe),
|
|
@@ -15928,4 +15932,4 @@ export {
|
|
|
15928
15932
|
m as j,
|
|
15929
15933
|
g3 as r
|
|
15930
15934
|
};
|
|
15931
|
-
//# sourceMappingURL=reactcomponent-
|
|
15935
|
+
//# sourceMappingURL=reactcomponent-c954508d.mjs.map
|