@expofp/floorplan 3.0.3 → 3.1.0
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/browser/{CookieConsent-CqkxkIwX.js → CookieConsent-Dmv0fV6C.js} +1608 -1604
- package/dist/browser/{Debug-Dks0egsG.js → Debug-Bcinws3Z.js} +11 -10
- package/dist/browser/{Demo-DBNmcPwz.js → Demo-DS47GBXP.js} +14 -13
- package/dist/browser/Free-rMJSKekB.js +63 -0
- package/dist/browser/{Gallery-D9sKC8mp.js → Gallery-DfAH39db.js} +28 -27
- package/dist/browser/{GpsLoader-Dfum4xB9.js → GpsLoader-g5ZbaNN8.js} +40 -39
- package/dist/browser/{KioskStore-DnhZo-Ov.js → KioskStore-BkI0W5G_.js} +44 -44
- package/dist/browser/{Mapbox-BWK98Zf_.js → Mapbox-U0Xp-dJy.js} +18 -18
- package/dist/browser/{SetKioskMode-DPOCqSzq.js → SetKioskMode-Mtfet5Gv.js} +19 -19
- package/dist/browser/ShowKiosk-S_x_8I5m.js +26 -0
- package/dist/browser/{ThreeComponent-COgPMNab.js → ThreeComponent-Cn-bMeXV.js} +282 -281
- package/dist/browser/{TouchHand-Ky80pfba.js → TouchHand-CkxqOSSr.js} +5 -5
- package/dist/browser/{ViewerMenuPanel-DJ6pZIMD.js → ViewerMenuPanel-1IlAn-bB.js} +27 -26
- package/dist/browser/{add-debug-secret-listener-CXd4jWZG.js → add-debug-secret-listener-DRPQKt-Q.js} +1 -1
- package/dist/browser/{boolean-editor-SHR1RkFd.js → boolean-editor-B4geQ7PH.js} +7 -7
- package/dist/browser/bundle.json +51 -39
- package/dist/browser/{chunk-DFRW9JAK.js → chunk-BRl5Kkpd.js} +1 -1
- package/dist/browser/{classnames-D5RYoiaD.js → classnames-CCxYAYKJ.js} +2 -2
- package/dist/browser/{client-B-AFqibD.js → client-B7XtGJWm.js} +5 -5
- package/dist/browser/{data-BPNnd1Ub.js → data-C-4ggWJI.js} +565 -565
- package/dist/browser/{debug-overlay-Dm7tnN3s.js → debug-overlay-BygOMeRE.js} +9 -9
- package/dist/browser/{debug-ui-T7mEy9PT.js → debug-ui-CMv0d865.js} +7 -7
- package/dist/browser/{dist-Bxi6YEB1.js → dist-waqn7yPH.js} +6 -6
- package/dist/browser/exports-DNYbSw5O.js +1495 -0
- package/dist/browser/{favicon-CDOxAL2U.js → favicon-DzIGribB.js} +1 -1
- package/dist/browser/{fetch-retry.umd-BBS0NAgY.js → fetch-retry.umd-BU4QgqQf.js} +5 -5
- package/dist/browser/{flex-CjUXae7J.js → flex-DV5_d5uA.js} +7 -7
- package/dist/browser/floorplan.loader-C6blBYy5.js +2885 -0
- package/dist/browser/{floorplan.ready-Vi6d8S_t.js → floorplan.ready-m2MeP7t6.js} +148 -145
- package/dist/browser/{fuse-B9KABHXb.js → fuse-eB0NJP2Y.js} +2 -2
- package/dist/browser/index.js +61 -10535
- package/dist/browser/is-debug-DNx7lu9r.js +5901 -0
- package/dist/browser/{jsx-runtime-EyUcoQPo.js → jsx-runtime-Dx6Zx-sv.js} +2 -2
- package/dist/browser/{lib-DCBNlykb.js → lib-BqFjGC1G.js} +5 -5
- package/dist/browser/{main-DoISipn5.js → main-6qqL0RDN.js} +1 -1
- package/dist/browser/mobx-DSw3E2kR.js +24 -0
- package/dist/browser/{particles.min-CBF3r8H5.js → particles.min-Ba1191wA.js} +2 -2
- package/dist/browser/{prop-types-bwVnWQ95.js → prop-types-Cq4o6XvT.js} +2 -2
- package/dist/browser/react-DgeLxkYu.js +301 -0
- package/dist/browser/{react-dom-DNErX4mG.js → react-dom-Beeufw5z.js} +4 -4
- package/dist/browser/{reset-all-settings-BP45RcR6.js → reset-all-settings-D5a3_fuL.js} +1 -1
- package/dist/browser/{settings-Dbk4UG1-.js → settings-R89Rs7v3.js} +7 -7
- package/dist/browser/{src-C46xGkrC.js → src-Cq6JROJE.js} +5 -5
- package/dist/browser/{store-COH1sU9Z.js → store-Csjg3ohh.js} +3047 -3017
- package/dist/browser/{ui-CmIShfKe.js → ui-DZGXCYdz.js} +7 -7
- package/dist/esm/components/Controls.js +1 -1
- package/dist/esm/components/CookieConsent.js +1 -1
- package/dist/esm/components/Free.js +1 -1
- package/dist/esm/components/Layout.js +1 -1
- package/dist/esm/components/LogoOverlay.js +1 -1
- package/dist/esm/components/PermissionNotice/PermissionNotice.d.ts +1 -0
- package/dist/esm/components/PermissionNotice/PermissionNotice.js +1 -1
- package/dist/esm/floorplan.loader.js +1 -1
- package/dist/esm/store/UIState.d.ts +1 -0
- package/dist/esm/store/UIState.js +1 -1
- package/dist/esm/tools/expofpUrl.d.ts +7 -0
- package/dist/esm/tools/expofpUrl.js +1 -0
- package/dist/esm/tools/freeBanner.d.ts +5 -0
- package/dist/esm/tools/freeBanner.js +1 -0
- package/dist/esm/tools/intercom.d.ts +12 -0
- package/dist/esm/tools/intercom.js +19 -0
- package/package.json +3 -3
- package/dist/browser/Free-BnsFOhog.js +0 -65
- package/dist/browser/ShowKiosk-CWHtQFiJ.js +0 -25
- package/dist/browser/mobx-DezH6kY5.js +0 -23
|
@@ -2,19 +2,20 @@ function __vite_inject_css__(css, id){ if (typeof document==='undefined') retur
|
|
|
2
2
|
(function() {
|
|
3
3
|
try {
|
|
4
4
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
5
|
-
e.SENTRY_RELEASE = { id: "3.0
|
|
5
|
+
e.SENTRY_RELEASE = { id: "3.1.0" };
|
|
6
6
|
var t = new e.Error().stack;
|
|
7
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
7
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "01bb3e48-0ee2-49f2-9848-14b7cf9ac31d", e._sentryDebugIdIdentifier = "sentry-dbid-01bb3e48-0ee2-49f2-9848-14b7cf9ac31d");
|
|
8
8
|
} catch {}
|
|
9
9
|
})();
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
import { t
|
|
13
|
-
import {
|
|
14
|
-
|
|
10
|
+
import "./chunk-BRl5Kkpd.js";
|
|
11
|
+
import { u as e } from "./is-debug-DNx7lu9r.js";
|
|
12
|
+
import { t } from "./react-DgeLxkYu.js";
|
|
13
|
+
import { t as n } from "./jsx-runtime-Dx6Zx-sv.js";
|
|
14
|
+
import { Yn as r, a as i, o as a } from "./store-Csjg3ohh.js";
|
|
15
|
+
t();
|
|
15
16
|
var o = [], s = n();
|
|
16
17
|
function c() {
|
|
17
|
-
let
|
|
18
|
+
let t = o.map((e) => e.width * e.height).reduce((e, t) => e += t, 0), n = o.map((e) => /* @__PURE__ */ (0, s.jsxs)("div", {
|
|
18
19
|
className: "debug__canvas",
|
|
19
20
|
id: e.toDataURL(),
|
|
20
21
|
children: [
|
|
@@ -36,9 +37,9 @@ function c() {
|
|
|
36
37
|
children: [
|
|
37
38
|
/* @__PURE__ */ (0, s.jsx)("button", {
|
|
38
39
|
onClick: () => i.searchStore.selectSearch(""),
|
|
39
|
-
children:
|
|
40
|
+
children: e("Close")
|
|
40
41
|
}),
|
|
41
|
-
/* @__PURE__ */ (0, s.jsxs)("div", { children: ["Total square: ",
|
|
42
|
+
/* @__PURE__ */ (0, s.jsxs)("div", { children: ["Total square: ", t] }),
|
|
42
43
|
n
|
|
43
44
|
]
|
|
44
45
|
});
|
|
@@ -2,21 +2,22 @@ function __vite_inject_css__(css, id){ if (typeof document==='undefined') retur
|
|
|
2
2
|
(function() {
|
|
3
3
|
try {
|
|
4
4
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
5
|
-
e.SENTRY_RELEASE = { id: "3.0
|
|
5
|
+
e.SENTRY_RELEASE = { id: "3.1.0" };
|
|
6
6
|
var t = new e.Error().stack;
|
|
7
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
7
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "92ca4a2d-214e-4426-8a66-742f77bece38", e._sentryDebugIdIdentifier = "sentry-dbid-92ca4a2d-214e-4426-8a66-742f77bece38");
|
|
8
8
|
} catch {}
|
|
9
9
|
})();
|
|
10
|
-
import { n as e, r as t } from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
n
|
|
10
|
+
import { n as e, r as t } from "./chunk-BRl5Kkpd.js";
|
|
11
|
+
import { u as n } from "./is-debug-DNx7lu9r.js";
|
|
12
|
+
import { t as r } from "./react-DgeLxkYu.js";
|
|
13
|
+
import { t as i } from "./jsx-runtime-Dx6Zx-sv.js";
|
|
14
|
+
import { t as a } from "./classnames-CCxYAYKJ.js";
|
|
15
|
+
import { Jn as o, Yn as s, o as c } from "./store-Csjg3ohh.js";
|
|
16
|
+
import { n as l } from "./mobx-DSw3E2kR.js";
|
|
17
|
+
r();
|
|
17
18
|
var u = /* @__PURE__ */ t(a(), 1), d = /* @__PURE__ */ e({ default: () => m }), f = i(), p = "note-dismissed5";
|
|
18
19
|
function m() {
|
|
19
|
-
let e =
|
|
20
|
+
let e = o(() => ({
|
|
20
21
|
hidden: !0,
|
|
21
22
|
get top() {
|
|
22
23
|
return c.screenSize.width <= 820;
|
|
@@ -33,12 +34,12 @@ function m() {
|
|
|
33
34
|
sessionStorage.getItem(p) || window.setTimeout(() => {
|
|
34
35
|
e.hidden = !1;
|
|
35
36
|
}, 2e3);
|
|
36
|
-
}),
|
|
37
|
+
}), s(() => /* @__PURE__ */ (0, f.jsx)("div", {
|
|
37
38
|
className: e.classes,
|
|
38
39
|
children: /* @__PURE__ */ (0, f.jsxs)("section", { children: [/* @__PURE__ */ (0, f.jsx)("div", {
|
|
39
40
|
className: "demo__message",
|
|
40
41
|
children: /* @__PURE__ */ (0, f.jsxs)("span", { children: [
|
|
41
|
-
|
|
42
|
+
n("Get your free floor plan at"),
|
|
42
43
|
"\xA0",
|
|
43
44
|
/* @__PURE__ */ (0, f.jsx)("a", {
|
|
44
45
|
href: "https://expofp.com/",
|
|
@@ -51,7 +52,7 @@ function m() {
|
|
|
51
52
|
href: "/",
|
|
52
53
|
onClick: t,
|
|
53
54
|
className: "demo__dismiss",
|
|
54
|
-
children:
|
|
55
|
+
children: n("Dismiss")
|
|
55
56
|
})] })
|
|
56
57
|
}));
|
|
57
58
|
function t(t) {
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
function __vite_inject_css__(css, id){ if (typeof document==='undefined') return; var parent=(typeof window!=='undefined'&&window.__efpShadowDOMStyleParent)||document.head; var s=document.createElement('style'); s.setAttribute('data-chunk-style', id); s.appendChild(document.createTextNode(css)); parent.appendChild(s);}
|
|
2
|
+
(function() {
|
|
3
|
+
try {
|
|
4
|
+
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
5
|
+
e.SENTRY_RELEASE = { id: "3.1.0" };
|
|
6
|
+
var t = new e.Error().stack;
|
|
7
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "2fab5f17-97fc-49c1-932b-644719897a2d", e._sentryDebugIdIdentifier = "sentry-dbid-2fab5f17-97fc-49c1-932b-644719897a2d");
|
|
8
|
+
} catch {}
|
|
9
|
+
})();
|
|
10
|
+
import { r as e } from "./chunk-BRl5Kkpd.js";
|
|
11
|
+
import { u as t } from "./is-debug-DNx7lu9r.js";
|
|
12
|
+
import { t as n } from "./react-DgeLxkYu.js";
|
|
13
|
+
import { t as r } from "./jsx-runtime-Dx6Zx-sv.js";
|
|
14
|
+
import { t as i } from "./classnames-CCxYAYKJ.js";
|
|
15
|
+
import { Jn as a, Yn as o, c as s, l as c, o as l } from "./store-Csjg3ohh.js";
|
|
16
|
+
import { n as u } from "./mobx-DSw3E2kR.js";
|
|
17
|
+
n();
|
|
18
|
+
var d = /* @__PURE__ */ e(i(), 1), f = r();
|
|
19
|
+
function p() {
|
|
20
|
+
let e = a(() => ({
|
|
21
|
+
hidden: !0,
|
|
22
|
+
get classes() {
|
|
23
|
+
return (0, d.default)("free", { hidden: this.hidden });
|
|
24
|
+
}
|
|
25
|
+
}));
|
|
26
|
+
return u(() => {
|
|
27
|
+
l.freeBannerDismissed || window.setTimeout(() => {
|
|
28
|
+
e.hidden = !1;
|
|
29
|
+
}, 2e3);
|
|
30
|
+
}), o(() => /* @__PURE__ */ (0, f.jsx)("div", {
|
|
31
|
+
className: e.classes,
|
|
32
|
+
children: /* @__PURE__ */ (0, f.jsxs)("section", { children: [/* @__PURE__ */ (0, f.jsx)("div", {
|
|
33
|
+
className: "free__message",
|
|
34
|
+
children: /* @__PURE__ */ (0, f.jsxs)("span", { children: [
|
|
35
|
+
t("Create a free floor plan at"),
|
|
36
|
+
"\xA0",
|
|
37
|
+
/* @__PURE__ */ (0, f.jsx)("a", {
|
|
38
|
+
href: s(),
|
|
39
|
+
target: "_blank",
|
|
40
|
+
rel: "noopener noreferrer",
|
|
41
|
+
children: "ExpoFP.com"
|
|
42
|
+
})
|
|
43
|
+
] })
|
|
44
|
+
}), /* @__PURE__ */ (0, f.jsx)("button", {
|
|
45
|
+
type: "button",
|
|
46
|
+
className: "free__dismiss",
|
|
47
|
+
onClick: n,
|
|
48
|
+
"aria-label": t("Dismiss"),
|
|
49
|
+
children: /* @__PURE__ */ (0, f.jsx)("i", {
|
|
50
|
+
className: "icon-close",
|
|
51
|
+
"aria-hidden": "true"
|
|
52
|
+
})
|
|
53
|
+
})] })
|
|
54
|
+
}));
|
|
55
|
+
function n() {
|
|
56
|
+
e.hidden = !0, c(sessionStorage), l.freeBannerDismissed = !0;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
//#endregion
|
|
60
|
+
export { p as default };
|
|
61
|
+
|
|
62
|
+
;/* vite-per-chunk-css */
|
|
63
|
+
__vite_inject_css__(".free{opacity:1;background:linear-gradient(90deg,#e5175c,#5c17e5);justify-content:center;width:100%;min-height:2.5rem;transition:all .5s;display:flex;position:absolute;top:0}.free>section{-webkit-user-select:none;user-select:none;padding:.2rem .5rem;font-size:.8rem;display:flex}.free__message{color:#fff;align-items:center;display:flex}.free__message a{color:#fff;text-decoration:underline}.free__dismiss{opacity:.8;color:#fff;cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;padding:0;font-size:1rem;line-height:1;transition:opacity .2s;display:flex;position:absolute;top:50%;transform:translateY(-50%)}.free__dismiss:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:.5rem}.free__dismiss:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){right:.5rem}.free__dismiss:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:.5rem}.free__dismiss:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:.5rem}.free__dismiss:hover{opacity:1}@media print{.free__dismiss{display:none}}@media (min-width:768px){.free{min-height:3.25rem}.free>section{padding:.5rem}.free .free__message{color:#ffffffe6;font-size:1.5rem;font-weight:300}.free .free__dismiss{font-size:1.5rem}}.free.hidden{transform:translateY(-100%)}\n/*$vite$:1*/", "Free.css");
|
|
@@ -2,19 +2,20 @@ function __vite_inject_css__(css, id){ if (typeof document==='undefined') retur
|
|
|
2
2
|
(function() {
|
|
3
3
|
try {
|
|
4
4
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
5
|
-
e.SENTRY_RELEASE = { id: "3.0
|
|
5
|
+
e.SENTRY_RELEASE = { id: "3.1.0" };
|
|
6
6
|
var t = new e.Error().stack;
|
|
7
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
7
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "b85747d7-6d57-4199-876f-a070f35dc72c", e._sentryDebugIdIdentifier = "sentry-dbid-b85747d7-6d57-4199-876f-a070f35dc72c");
|
|
8
8
|
} catch {}
|
|
9
9
|
})();
|
|
10
|
-
import { n as e, r as t } from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import {
|
|
10
|
+
import { n as e, r as t } from "./chunk-BRl5Kkpd.js";
|
|
11
|
+
import { u as n } from "./is-debug-DNx7lu9r.js";
|
|
12
|
+
import { t as r } from "./react-DgeLxkYu.js";
|
|
13
|
+
import { t as i } from "./react-dom-Beeufw5z.js";
|
|
14
|
+
import { t as a } from "./jsx-runtime-Dx6Zx-sv.js";
|
|
15
|
+
import { t as o } from "./classnames-CCxYAYKJ.js";
|
|
16
|
+
import { o as s, qn as c } from "./store-Csjg3ohh.js";
|
|
16
17
|
//#region src/utils/getRenderTargetFromRoot.ts
|
|
17
|
-
var l = /* @__PURE__ */ t(
|
|
18
|
+
var l = /* @__PURE__ */ t(r(), 1), u = /* @__PURE__ */ t(i(), 1), d = a(), f = /* @__PURE__ */ t(o(), 1);
|
|
18
19
|
function p(e) {
|
|
19
20
|
var t;
|
|
20
21
|
if (!e) return console.error("[getRenderTargetFromRoot] rootElement is null"), null;
|
|
@@ -28,16 +29,16 @@ function p(e) {
|
|
|
28
29
|
//#endregion
|
|
29
30
|
//#region src/utils/useRenderTarget.ts
|
|
30
31
|
var m = () => {
|
|
31
|
-
let [e, t] = (0, l.useState)(() => p(
|
|
32
|
+
let [e, t] = (0, l.useState)(() => p(s.rootElement));
|
|
32
33
|
return (0, l.useEffect)(() => {
|
|
33
34
|
var e, n;
|
|
34
|
-
if (typeof window > "u" || !
|
|
35
|
+
if (typeof window > "u" || !s.rootElement) return;
|
|
35
36
|
let r = !1, i = null, a = () => {
|
|
36
|
-
let e = p(
|
|
37
|
+
let e = p(s.rootElement);
|
|
37
38
|
return e && !r ? (t((t) => t === e ? t : e), !0) : !1;
|
|
38
39
|
};
|
|
39
40
|
if (a()) return;
|
|
40
|
-
let o = (e = (n =
|
|
41
|
+
let o = (e = (n = s.rootElement.firstElementChild) == null ? void 0 : n.shadowRoot) == null ? s.rootElement : e;
|
|
41
42
|
return i = new MutationObserver(() => {
|
|
42
43
|
a() && i && i.disconnect();
|
|
43
44
|
}), i.observe(o, {
|
|
@@ -46,7 +47,7 @@ var m = () => {
|
|
|
46
47
|
}), () => {
|
|
47
48
|
r = !0, i && i.disconnect();
|
|
48
49
|
};
|
|
49
|
-
}, [
|
|
50
|
+
}, [s.rootElement]), e;
|
|
50
51
|
}, h = ({ count: e, onFullscreen: t }) => /* @__PURE__ */ (0, d.jsxs)(d.Fragment, { children: [/* @__PURE__ */ (0, d.jsxs)("div", {
|
|
51
52
|
className: "gallery__badge gallery__badge-count",
|
|
52
53
|
children: [/* @__PURE__ */ (0, d.jsx)("i", { className: "icon-image" }), /* @__PURE__ */ (0, d.jsx)("span", { children: e })]
|
|
@@ -3095,14 +3096,14 @@ var Ar = function(e) {
|
|
|
3095
3096
|
r(), n == null || n();
|
|
3096
3097
|
};
|
|
3097
3098
|
}, [e, t]);
|
|
3098
|
-
}, Nr =
|
|
3099
|
+
}, Nr = c(({ zoomIn: e, zoomOut: t, onClose: r }) => /* @__PURE__ */ (0, d.jsxs)("div", {
|
|
3099
3100
|
className: "gallery-slider__controls",
|
|
3100
3101
|
children: [
|
|
3101
3102
|
/* @__PURE__ */ (0, d.jsx)("button", {
|
|
3102
3103
|
className: "gallery-slider__btn close",
|
|
3103
|
-
title:
|
|
3104
|
-
"aria-label":
|
|
3105
|
-
onClick:
|
|
3104
|
+
title: n("Close"),
|
|
3105
|
+
"aria-label": n("Close"),
|
|
3106
|
+
onClick: r,
|
|
3106
3107
|
children: /* @__PURE__ */ (0, d.jsx)("i", {
|
|
3107
3108
|
className: "icon-close",
|
|
3108
3109
|
"aria-hidden": "true"
|
|
@@ -3110,8 +3111,8 @@ var Ar = function(e) {
|
|
|
3110
3111
|
}),
|
|
3111
3112
|
/* @__PURE__ */ (0, d.jsx)("button", {
|
|
3112
3113
|
className: "gallery-slider__btn zoom-in",
|
|
3113
|
-
title:
|
|
3114
|
-
"aria-label":
|
|
3114
|
+
title: n("Zoom In"),
|
|
3115
|
+
"aria-label": n("Zoom In"),
|
|
3115
3116
|
onClick: () => e(),
|
|
3116
3117
|
children: /* @__PURE__ */ (0, d.jsx)("i", {
|
|
3117
3118
|
className: "icon-zoom-in",
|
|
@@ -3120,8 +3121,8 @@ var Ar = function(e) {
|
|
|
3120
3121
|
}),
|
|
3121
3122
|
/* @__PURE__ */ (0, d.jsx)("button", {
|
|
3122
3123
|
className: "gallery-slider__btn zoom-out",
|
|
3123
|
-
title:
|
|
3124
|
-
"aria-label":
|
|
3124
|
+
title: n("Zoom Out"),
|
|
3125
|
+
"aria-label": n("Zoom Out"),
|
|
3125
3126
|
onClick: () => t(),
|
|
3126
3127
|
children: /* @__PURE__ */ (0, d.jsx)("i", {
|
|
3127
3128
|
className: "icon-zoom-out",
|
|
@@ -3139,8 +3140,8 @@ var Ar = function(e) {
|
|
|
3139
3140
|
leading: t,
|
|
3140
3141
|
url: n
|
|
3141
3142
|
})
|
|
3142
|
-
})), Fr =
|
|
3143
|
-
let { images: t, leading:
|
|
3143
|
+
})), Fr = c((e) => {
|
|
3144
|
+
let { images: t, leading: r, initialSlideIndex: i, onClose: a, className: o } = e, s = m(), [c, p] = (0, l.useState)(i), [h, g] = (0, l.useState)([]), _ = (0, l.useRef)(null), v = (0, l.useRef)(null), y = (0, l.useRef)(null), b = {
|
|
3144
3145
|
initialSlide: i,
|
|
3145
3146
|
draggable: !1,
|
|
3146
3147
|
modules: [Nt],
|
|
@@ -3169,14 +3170,14 @@ var Ar = function(e) {
|
|
|
3169
3170
|
}) : null,
|
|
3170
3171
|
t.length > 1 && /* @__PURE__ */ (0, d.jsx)("button", {
|
|
3171
3172
|
ref: y,
|
|
3172
|
-
title:
|
|
3173
|
+
title: n("Next slide"),
|
|
3173
3174
|
"aria-label": "˃",
|
|
3174
3175
|
className: "gallery-slider__btn next",
|
|
3175
3176
|
children: /* @__PURE__ */ (0, d.jsx)("i", { className: "icon-chevron-right" })
|
|
3176
3177
|
}),
|
|
3177
3178
|
t.length > 1 && /* @__PURE__ */ (0, d.jsx)("button", {
|
|
3178
3179
|
ref: v,
|
|
3179
|
-
title:
|
|
3180
|
+
title: n("Prev slide"),
|
|
3180
3181
|
"aria-label": "˂",
|
|
3181
3182
|
className: "gallery-slider__btn prev",
|
|
3182
3183
|
children: /* @__PURE__ */ (0, d.jsx)("i", { className: "icon-chevron-left" })
|
|
@@ -3191,7 +3192,7 @@ var Ar = function(e) {
|
|
|
3191
3192
|
g((t) => [...t, e]);
|
|
3192
3193
|
},
|
|
3193
3194
|
children: /* @__PURE__ */ (0, d.jsx)(Pr, {
|
|
3194
|
-
leading:
|
|
3195
|
+
leading: r,
|
|
3195
3196
|
swiperRef: _,
|
|
3196
3197
|
url: e
|
|
3197
3198
|
})
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.0
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.1.0" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
6
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "c88bffff-4176-438e-9059-9a3ba1992d06", e._sentryDebugIdIdentifier = "sentry-dbid-c88bffff-4176-438e-9059-9a3ba1992d06");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
9
|
+
import { r as e } from "./chunk-BRl5Kkpd.js";
|
|
10
|
+
import { Tt as t, u as n, ut as r } from "./is-debug-DNx7lu9r.js";
|
|
11
|
+
import { t as i } from "./react-DgeLxkYu.js";
|
|
12
|
+
import { t as a } from "./jsx-runtime-Dx6Zx-sv.js";
|
|
13
|
+
import { M as o, a as s, et as c, gt as l, qn as u } from "./store-Csjg3ohh.js";
|
|
14
|
+
import { n as d } from "./CookieConsent-Dmv0fV6C.js";
|
|
15
|
+
import { r as f } from "./mobx-DSw3E2kR.js";
|
|
15
16
|
//#region src/components/gps/utils.ts
|
|
16
|
-
var p = /* @__PURE__ */ e(
|
|
17
|
+
var p = /* @__PURE__ */ e(i(), 1);
|
|
17
18
|
function m(e) {
|
|
18
19
|
return Math.floor(e);
|
|
19
20
|
}
|
|
@@ -24,7 +25,7 @@ function h(e, t) {
|
|
|
24
25
|
//#region src/components/gps/useUserLocationAndHeading.ts
|
|
25
26
|
var g = 120, _ = 3e3, v = 360;
|
|
26
27
|
function y(e) {
|
|
27
|
-
let
|
|
28
|
+
let n = (0, p.useRef)(null), r = (0, p.useRef)(null), i = (0, p.useRef)(0), a = (0, p.useRef)(null), o = (0, p.useRef)(!1), s = (0, p.useRef)(null), l = (0, p.useRef)(!1), u = (0, p.useRef)(null), d = (t) => e(t), f = (e) => {
|
|
28
29
|
let t = Date.now();
|
|
29
30
|
if (t - i.current < g) return;
|
|
30
31
|
let n = a.current;
|
|
@@ -52,13 +53,13 @@ function y(e) {
|
|
|
52
53
|
}, [e]);
|
|
53
54
|
return {
|
|
54
55
|
startGeolocation: () => {
|
|
55
|
-
|
|
56
|
+
n.current == null && (n.current = navigator.geolocation.watchPosition((e) => {
|
|
56
57
|
f({
|
|
57
58
|
lat: e.coords.latitude,
|
|
58
59
|
lng: e.coords.longitude,
|
|
59
60
|
heading: r.current
|
|
60
61
|
});
|
|
61
|
-
}, (e) =>
|
|
62
|
+
}, (e) => t.warn("Geolocation watch error:", e), {
|
|
62
63
|
enableHighAccuracy: !0,
|
|
63
64
|
maximumAge: 0
|
|
64
65
|
}));
|
|
@@ -67,7 +68,7 @@ function y(e) {
|
|
|
67
68
|
o.current || (o.current = !0, window.addEventListener("deviceorientation", y, !0));
|
|
68
69
|
},
|
|
69
70
|
stopGeolocation: () => {
|
|
70
|
-
|
|
71
|
+
n.current != null && (navigator.geolocation.clearWatch(n.current), n.current = null), s.current = null, l.current = !1;
|
|
71
72
|
},
|
|
72
73
|
stopOrientation: () => {
|
|
73
74
|
o.current = !1, window.removeEventListener("deviceorientation", y, !0);
|
|
@@ -76,38 +77,38 @@ function y(e) {
|
|
|
76
77
|
}
|
|
77
78
|
//#endregion
|
|
78
79
|
//#region src/components/gps/GpsPermissionRequest.tsx
|
|
79
|
-
var b = a(), x =
|
|
80
|
+
var b = a(), x = u(function({ isOpen: e, onAllow: t, onCancel: r }) {
|
|
80
81
|
return e ? /* @__PURE__ */ (0, b.jsx)(d, {
|
|
81
|
-
title:
|
|
82
|
-
acceptText:
|
|
83
|
-
rejectText:
|
|
82
|
+
title: n("Show your position on the map"),
|
|
83
|
+
acceptText: n("Allow compass access"),
|
|
84
|
+
rejectText: n("Not now"),
|
|
84
85
|
onClickAccept: t,
|
|
85
|
-
onClickReject:
|
|
86
|
-
children:
|
|
86
|
+
onClickReject: r,
|
|
87
|
+
children: n("To display your current position and orient the map around you, we’ll ask for permission to access your device orientation")
|
|
87
88
|
}) : null;
|
|
88
89
|
});
|
|
89
90
|
//#endregion
|
|
90
91
|
//#region src/components/gps/GpsManager.tsx
|
|
91
|
-
function S({ onPositionUpdate: e, onAllowCompass:
|
|
92
|
-
let { startOrientation: s, startGeolocation: c, stopOrientation:
|
|
92
|
+
function S({ onPositionUpdate: e, onAllowCompass: n, onRejectCompass: r, orientationStorageKey: i = "compass-permission-granted", requestCompass: a = !0, requestCompassAllowed: o = !0 }) {
|
|
93
|
+
let { startOrientation: s, startGeolocation: c, stopOrientation: u, stopGeolocation: d } = y(e), [f, m] = (0, p.useState)(!1), [h, g] = (0, p.useState)(!1);
|
|
93
94
|
(0, p.useEffect)(() => (navigator.geolocation.getCurrentPosition(() => {
|
|
94
95
|
m(!0), c();
|
|
95
96
|
}, (e) => {
|
|
96
|
-
|
|
97
|
+
t.warn("Geolocation error:", e), m(!1);
|
|
97
98
|
}), () => {
|
|
98
|
-
|
|
99
|
+
u(), d();
|
|
99
100
|
}), [
|
|
100
101
|
c,
|
|
101
102
|
d,
|
|
102
|
-
|
|
103
|
+
u
|
|
103
104
|
]);
|
|
104
105
|
let _ = async () => {
|
|
105
|
-
typeof DeviceOrientationEvent < "u" && typeof DeviceOrientationEvent.requestPermission == "function" && await DeviceOrientationEvent.requestPermission() !== "granted" || (localStorage.setItem(i, "true"), s(), g(!1),
|
|
106
|
+
typeof DeviceOrientationEvent < "u" && typeof DeviceOrientationEvent.requestPermission == "function" && await DeviceOrientationEvent.requestPermission() !== "granted" || (localStorage.setItem(i, "true"), s(), g(!1), n == null || n());
|
|
106
107
|
}, v = (0, p.useCallback)(() => {
|
|
107
108
|
localStorage.setItem(i, "false"), g(!1), r == null || r();
|
|
108
109
|
}, [r]);
|
|
109
110
|
return (0, p.useEffect)(() => {
|
|
110
|
-
if (!f || !o || typeof navigator > "u" || !
|
|
111
|
+
if (!f || !o || typeof navigator > "u" || !l) return;
|
|
111
112
|
let e = localStorage.getItem(i);
|
|
112
113
|
if (!e || a) {
|
|
113
114
|
g(!0);
|
|
@@ -128,23 +129,23 @@ function S({ onPositionUpdate: e, onAllowCompass: t, onRejectCompass: r, orienta
|
|
|
128
129
|
//#endregion
|
|
129
130
|
//#region src/components/GpsLoader.tsx
|
|
130
131
|
function C({ requestCompassAllowed: e }) {
|
|
131
|
-
let [
|
|
132
|
-
|
|
132
|
+
let [t, n] = (0, p.useState)(!1), i = (0, p.useCallback)(({ lat: e, lng: t, angle: n, heading: r }) => {
|
|
133
|
+
s.routeStore.selectCurrentPosition(new o(0, 0, 0, n || r, e, t), !1);
|
|
133
134
|
}, []), a = (0, p.useCallback)(() => {
|
|
134
|
-
|
|
135
|
-
}, [
|
|
136
|
-
|
|
137
|
-
}, [
|
|
138
|
-
return f(() =>
|
|
139
|
-
|
|
140
|
-
}), f(() =>
|
|
141
|
-
|
|
135
|
+
s.routeStore.requestCompass = void 0, n(!1);
|
|
136
|
+
}, [n]), c = (0, p.useCallback)(() => {
|
|
137
|
+
s.routeStore.requestCompass = void 0, n(!1);
|
|
138
|
+
}, [n]);
|
|
139
|
+
return f(() => s.uiState.hideCookieConsent, (e) => {
|
|
140
|
+
n(e);
|
|
141
|
+
}), f(() => s.routeStore.requestCompass, (e) => {
|
|
142
|
+
n(e);
|
|
142
143
|
}), /* @__PURE__ */ (0, b.jsx)(S, {
|
|
143
|
-
requestCompass:
|
|
144
|
+
requestCompass: t,
|
|
144
145
|
requestCompassAllowed: e,
|
|
145
146
|
onRejectCompass: a,
|
|
146
|
-
onAllowCompass:
|
|
147
|
-
orientationStorageKey:
|
|
147
|
+
onAllowCompass: c,
|
|
148
|
+
orientationStorageKey: r,
|
|
148
149
|
onPositionUpdate: i
|
|
149
150
|
});
|
|
150
151
|
}
|