@mappedin/viewer 0.27.0 → 0.27.1-e5997a2.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/index.js +10 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16454,7 +16454,7 @@ const m5 = { current: fJ, captureEnabled: !0 }, GE2 = (i) => {
|
|
|
16454
16454
|
const e = zd(), [t, r] = i;
|
|
16455
16455
|
e.capture(t, r);
|
|
16456
16456
|
}, gJ = (i = {}) => {
|
|
16457
|
-
const e = "
|
|
16457
|
+
const e = "phc_vZrwt3z6JmdPnErvTgZoazTAGlCRMiz6c2NqWtBt8qz", t = "https://ph-api.mappedin.com";
|
|
16458
16458
|
WE2(i.captureEnabled ?? !0);
|
|
16459
16459
|
const r = zd();
|
|
16460
16460
|
if (!r.__loaded && e != null && t != null) {
|
|
@@ -67105,7 +67105,7 @@ const yf2 = async (i, e) => {
|
|
|
67105
67105
|
const r = performance.now(), n = await zG2(t);
|
|
67106
67106
|
return Pe.log("Hydrated map data in", performance.now() - r, "ms"), n;
|
|
67107
67107
|
};
|
|
67108
|
-
var WG2 = { BASE_URL: "/map", MODE: "production", DEV: !1, PROD: !0, SSR: !1, APP_VERSION: "0.27.0", OUTDOOR_MAPS_KEY: "f8fd42d9e1c2751f", POSTHOG_KEY: "
|
|
67108
|
+
var WG2 = { BASE_URL: "/map", MODE: "production", DEV: !1, PROD: !0, SSR: !1, APP_VERSION: "0.27.0", OUTDOOR_MAPS_KEY: "f8fd42d9e1c2751f", POSTHOG_KEY: "phc_vZrwt3z6JmdPnErvTgZoazTAGlCRMiz6c2NqWtBt8qz", POSTHOG_HOST: "https://ph-api.mappedin.com", IMAGE_PROXY_HOST: "https://image-proxy-staging.mappedin.net" };
|
|
67109
67109
|
const qG2 = async (i, e, t) => {
|
|
67110
67110
|
const r = `${e ?? WG2.FETCH_MVF_AZURE_FUNCTION_HOST}?venue=${i}&version=2.0.0`, { url: n } = await fetch(r).then((c) => c.json()), a = await fetch(n).then((c) => c.arrayBuffer()), o = new Uint8Array(a), s = await Uw(o), l = Zw(s);
|
|
67111
67111
|
return typeof (t == null ? void 0 : t.onMVFParsed) == "function" && t.onMVFParsed(l), yf2(l, t);
|
|
@@ -72780,7 +72780,7 @@ const GQ2 = (i, e) => (K8 != null || (Cc == null && globalThis.OffscreenCanvas !
|
|
|
72780
72780
|
const r = {
|
|
72781
72781
|
fit: "fit",
|
|
72782
72782
|
...t
|
|
72783
|
-
}, n = "https://image-proxy.mappedin.
|
|
72783
|
+
}, n = "https://image-proxy-staging.mappedin.net", a = qQ2[e], o = encodeURIComponent(i);
|
|
72784
72784
|
return `${n}/resize:${r.fit}:${a}:${a}:0/plain/${o}`.replaceAll(/\/+/g, "/").replace("/", "//");
|
|
72785
72785
|
}, Hm2 = l8`
|
|
72786
72786
|
cursor: pointer;
|
|
@@ -76289,8 +76289,12 @@ class DG {
|
|
|
76289
76289
|
}) ?? n[0];
|
|
76290
76290
|
}
|
|
76291
76291
|
getShareableUrl() {
|
|
76292
|
-
|
|
76293
|
-
|
|
76292
|
+
try {
|
|
76293
|
+
const e = new URL(this.routerStore.toString());
|
|
76294
|
+
return e.searchParams.delete(bl), e.toString();
|
|
76295
|
+
} catch {
|
|
76296
|
+
return window.location.href;
|
|
76297
|
+
}
|
|
76294
76298
|
}
|
|
76295
76299
|
cleanup() {
|
|
76296
76300
|
this.routerStore.cleanup(), this.mapStore.cleanup(), this.uiStore.cleanup(), this.searchStore.cleanup();
|
|
@@ -77155,7 +77159,7 @@ class w00 {
|
|
|
77155
77159
|
this.history.back(), e && !this.isAppEmbedded && this.go(this.path, { [bl]: "true" }, { replace: !0 });
|
|
77156
77160
|
}
|
|
77157
77161
|
toString() {
|
|
77158
|
-
return window.location.
|
|
77162
|
+
return window.location.origin + this.getPath(this.base, this.path) + this.encodeParams(this.params);
|
|
77159
77163
|
}
|
|
77160
77164
|
cleanup() {
|
|
77161
77165
|
this.disposer();
|