@mappedin/viewer 0.35.0 → 0.35.1-488ebfa.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
CHANGED
|
@@ -17097,7 +17097,7 @@ const $n2 = function() {
|
|
|
17097
17097
|
const e = Hg(), [t, r] = i;
|
|
17098
17098
|
e.capture(t, r);
|
|
17099
17099
|
}, Nn2 = (i = {}) => {
|
|
17100
|
-
const e = "
|
|
17100
|
+
const e = "phc_vZrwt3z6JmdPnErvTgZoazTAGlCRMiz6c2NqWtBt8qz", t = "https://ph-api.mappedin.com";
|
|
17101
17101
|
gN2(i.captureEnabled ?? !0);
|
|
17102
17102
|
const r = Hg();
|
|
17103
17103
|
if (!r.__loaded && e != null && t != null) {
|
|
@@ -75699,7 +75699,7 @@ const r9e = (i, e) => (Y4 != null || (Fp == null && globalThis.OffscreenCanvas !
|
|
|
75699
75699
|
const r = {
|
|
75700
75700
|
fit: "fit",
|
|
75701
75701
|
...t
|
|
75702
|
-
}, n = "https://image-proxy.mappedin.
|
|
75702
|
+
}, n = "https://image-proxy-staging.mappedin.net", a = s9e(e, r.fit), s = encodeURIComponent(i);
|
|
75703
75703
|
return `${n}/resize:${r.fit}:${a}:${a}:0/format:webp/max_bytes:5000000/plain/${s}`.replaceAll(/\/+/g, "/").replace("https:/", "https://").replace("http:/", "http://");
|
|
75704
75704
|
}, se2 = re.div`
|
|
75705
75705
|
display: flex;
|
|
@@ -77261,7 +77261,7 @@ class P9e {
|
|
|
77261
77261
|
}
|
|
77262
77262
|
async init(e) {
|
|
77263
77263
|
this.container = e;
|
|
77264
|
-
const t = this.rootStore.startupOptions.outdoorMapsKey ?? "
|
|
77264
|
+
const t = this.rootStore.startupOptions.outdoorMapsKey ?? "f8fd42d9e1c2751f", r = {
|
|
77265
77265
|
auto: !1,
|
|
77266
77266
|
initialFloor: this.rootStore.currentFloor,
|
|
77267
77267
|
watermark: this.getWatermarkOptions(),
|
|
@@ -82171,6 +82171,7 @@ class _e2 {
|
|
|
82171
82171
|
})
|
|
82172
82172
|
), r.getByType("floor") == null)
|
|
82173
82173
|
throw new Error("Map has no floors!");
|
|
82174
|
+
this.isKioskModeEnabled && this.analyticsStore.capture("kiosk-mode");
|
|
82174
82175
|
}
|
|
82175
82176
|
/**
|
|
82176
82177
|
* Compute what the new departure mode should be based on the current URL parameters. This can be
|
|
@@ -40,6 +40,7 @@ type TAnalyticsEventPayload = {
|
|
|
40
40
|
placeId: string;
|
|
41
41
|
};
|
|
42
42
|
'click-watermark': never;
|
|
43
|
+
'kiosk-mode': never;
|
|
43
44
|
};
|
|
44
45
|
export type TAnalyticsEvent = keyof TAnalyticsEventPayload;
|
|
45
46
|
export type TCaptureParams<E extends TAnalyticsEvent> = TAnalyticsEventPayload[E] extends never ? [E] : [E, TAnalyticsEventPayload[E]];
|