@qispace/vue3-player 0.4.22 → 0.4.23

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.
@@ -1,7 +1,7 @@
1
1
  var Cn = Object.defineProperty;
2
2
  var Sn = (t, a, n) => a in t ? Cn(t, a, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[a] = n;
3
3
  var Ue = (t, a, n) => (Sn(t, typeof a != "symbol" ? a + "" : a, n), n);
4
- import { defineComponent as J, computed as D, resolveComponent as L, openBlock as u, createBlock as T, withCtx as v, createElementBlock as E, normalizeStyle as le, renderSlot as K, ref as y, unref as p, watch as H, onMounted as Re, onBeforeUnmount as ot, createElementVNode as e, toRefs as Ce, nextTick as $e, inject as Ie, createVNode as _, mergeProps as Ee, toDisplayString as W, createTextVNode as ae, Fragment as xe, renderList as Me, normalizeClass as me, pushScopeId as vt, popScopeId as mt, Transition as Ve, createCommentVNode as F, withDirectives as tt, vModelText as An, createStaticVNode as Yt, onBeforeUpdate as xn, withModifiers as In, provide as nt, vShow as it, reactive as Ln, watchEffect as Ft, normalizeProps as En, guardReactiveProps as Mn } from "vue";
4
+ import { defineComponent as J, computed as D, resolveComponent as L, openBlock as u, createBlock as T, withCtx as v, createElementBlock as E, normalizeStyle as le, renderSlot as K, ref as y, unref as p, watch as H, onMounted as Re, onBeforeUnmount as ot, createElementVNode as e, toRefs as Ce, nextTick as $e, inject as Ie, createVNode as _, mergeProps as Ee, toDisplayString as P, createTextVNode as ae, Fragment as xe, renderList as Me, normalizeClass as me, pushScopeId as vt, popScopeId as mt, Transition as Ve, createCommentVNode as F, withDirectives as tt, vModelText as An, createStaticVNode as Yt, onBeforeUpdate as xn, withModifiers as In, provide as nt, vShow as it, reactive as Ln, watchEffect as Ft, normalizeProps as En, guardReactiveProps as Mn } from "vue";
5
5
  import ut from "axios";
6
6
  import * as Fn from "@qispace/player-core";
7
7
  import { Vector3 as Ke, Object3D as Vn, MathUtils as Dn } from "three";
@@ -101,7 +101,7 @@ const Bn = /* @__PURE__ */ J({
101
101
  a({
102
102
  adjustZoom: se
103
103
  });
104
- const o = y(100), s = y(0), i = y(0), f = y(!1), h = y(!1), g = y(void 0), C = y(!1), w = y(), V = D(() => `translateX(${s.value}px) translateY(${i.value}px) scale(${S.value})`), S = D(() => o.value / 100), c = D(() => l.maxScale * 100);
104
+ const o = y(100), s = y(0), i = y(0), f = y(!1), h = y(!1), g = y(void 0), k = y(!1), C = y(), V = D(() => `translateX(${s.value}px) translateY(${i.value}px) scale(${S.value})`), S = D(() => o.value / 100), c = D(() => l.maxScale * 100);
105
105
  H(
106
106
  [S, s, i],
107
107
  () => {
@@ -116,19 +116,19 @@ const Bn = /* @__PURE__ */ J({
116
116
  ), H(
117
117
  () => l.mobile,
118
118
  () => {
119
- l.mobile ? k() : x();
119
+ l.mobile ? w() : x();
120
120
  }
121
121
  ), Re(() => {
122
- l.desktop && m(), l.mobile && k();
122
+ l.desktop && m(), l.mobile && w();
123
123
  }), ot(() => {
124
124
  l.desktop && A(), l.mobile && x();
125
125
  });
126
126
  function m() {
127
- w.value.addEventListener("wheel", $, {
127
+ C.value.addEventListener("wheel", $, {
128
128
  capture: !0
129
- }), w.value.addEventListener("mousedown", X, {
129
+ }), C.value.addEventListener("mousedown", X, {
130
130
  capture: !0
131
- }), w.value.addEventListener("mousemove", R, {
131
+ }), C.value.addEventListener("mousemove", R, {
132
132
  capture: !0
133
133
  }), window.addEventListener("mouseup", te, {
134
134
  capture: !0
@@ -136,10 +136,10 @@ const Bn = /* @__PURE__ */ J({
136
136
  capture: !0
137
137
  });
138
138
  }
139
- function k() {
140
- w.value.addEventListener("touchstart", Y, {
139
+ function w() {
140
+ C.value.addEventListener("touchstart", Y, {
141
141
  capture: !0
142
- }), w.value.addEventListener("touchmove", Se, {
142
+ }), C.value.addEventListener("touchmove", Se, {
143
143
  capture: !0
144
144
  }), window.addEventListener("touchend", ye, {
145
145
  capture: !0
@@ -148,11 +148,11 @@ const Bn = /* @__PURE__ */ J({
148
148
  });
149
149
  }
150
150
  function A() {
151
- w.value.removeEventListener("wheel", $, {
151
+ C.value.removeEventListener("wheel", $, {
152
152
  capture: !0
153
- }), w.value.removeEventListener("mousedown", X, {
153
+ }), C.value.removeEventListener("mousedown", X, {
154
154
  capture: !0
155
- }), w.value.removeEventListener("mousemove", R, {
155
+ }), C.value.removeEventListener("mousemove", R, {
156
156
  capture: !0
157
157
  }), window.removeEventListener("mouseup", te, {
158
158
  capture: !0
@@ -161,9 +161,9 @@ const Bn = /* @__PURE__ */ J({
161
161
  });
162
162
  }
163
163
  function x() {
164
- w.value.removeEventListener("touchstart", Y, {
164
+ C.value.removeEventListener("touchstart", Y, {
165
165
  capture: !0
166
- }), w.value.removeEventListener("touchmove", Se, {
166
+ }), C.value.removeEventListener("touchmove", Se, {
167
167
  capture: !0
168
168
  }), window.removeEventListener("touchend", ye, {
169
169
  capture: !0
@@ -176,7 +176,7 @@ const Bn = /* @__PURE__ */ J({
176
176
  se(-M.deltaY / 10, q, Q), M.preventDefault();
177
177
  }
178
178
  function X(M) {
179
- f.value = !0, C.value = !1, g.value = M;
179
+ f.value = !0, k.value = !1, g.value = M;
180
180
  }
181
181
  function R(M) {
182
182
  if (f.value) {
@@ -184,14 +184,14 @@ const Bn = /* @__PURE__ */ J({
184
184
  x: q - z,
185
185
  y: Q - oe
186
186
  };
187
- ie(Z.x), N(Z.y), C.value = !0, g.value = M;
187
+ ie(Z.x), N(Z.y), k.value = !0, g.value = M;
188
188
  }
189
189
  }
190
190
  function te(M) {
191
- f.value && C.value && l.consumeMouseUpWhenMoved && (M.preventDefault(), M.stopImmediatePropagation());
191
+ f.value && k.value && l.consumeMouseUpWhenMoved && (M.preventDefault(), M.stopImmediatePropagation());
192
192
  }
193
193
  function de(M) {
194
- f.value && (C.value && l.consumeMouseClickWhenMoved && (M.preventDefault(), M.stopImmediatePropagation()), f.value = !1);
194
+ f.value && (k.value && l.consumeMouseClickWhenMoved && (M.preventDefault(), M.stopImmediatePropagation()), f.value = !1);
195
195
  }
196
196
  function Y(M) {
197
197
  f.value = M.touches.length === 1, h.value = M.touches.length === 2, g.value = M;
@@ -208,9 +208,9 @@ const Bn = /* @__PURE__ */ J({
208
208
  } else if (h.value && M.touches.length === 2) {
209
209
  const { x: q, y: Q } = O(M.touches[0]), { x: z, y: oe } = O(
210
210
  g.value.touches[0]
211
- ), { x: Z, y: re } = O(M.touches[1]), { x: P, y: pe } = O(
211
+ ), { x: Z, y: re } = O(M.touches[1]), { x: W, y: pe } = O(
212
212
  g.value.touches[1]
213
- ), he = Math.hypot(z - P, oe - pe), ve = Math.hypot(q - Z, Q - re), be = (Z + q) / 2, we = (re + Q) / 2;
213
+ ), he = Math.hypot(z - W, oe - pe), ve = Math.hypot(q - Z, Q - re), be = (Z + q) / 2, we = (re + Q) / 2;
214
214
  se(ve - he, be, we);
215
215
  }
216
216
  g.value = M;
@@ -219,30 +219,30 @@ const Bn = /* @__PURE__ */ J({
219
219
  f.value = !1, h.value = !1;
220
220
  }
221
221
  function O(M) {
222
- const { left: q, top: Q } = w.value.getBoundingClientRect();
222
+ const { left: q, top: Q } = C.value.getBoundingClientRect();
223
223
  return {
224
224
  x: M.clientX - q,
225
225
  y: M.clientY - Q
226
226
  };
227
227
  }
228
228
  function ie(M) {
229
- const q = w.value.clientWidth, Q = q * S.value;
229
+ const q = C.value.clientWidth, Q = q * S.value;
230
230
  s.value = Math.max(
231
231
  Math.min(0, s.value + M),
232
232
  -(Q - q)
233
233
  );
234
234
  }
235
235
  function N(M) {
236
- const q = w.value.clientHeight, Q = q * S.value;
236
+ const q = C.value.clientHeight, Q = q * S.value;
237
237
  i.value = Math.max(
238
238
  Math.min(0, i.value + M),
239
239
  -(Q - q)
240
240
  );
241
241
  }
242
242
  function se(M, q, Q) {
243
- const z = q !== void 0 ? q : w.value.clientWidth / 2, oe = Q !== void 0 ? Q : w.value.clientHeight / 2, Z = w.value.clientWidth, re = w.value.clientHeight, P = Z * S.value, pe = re * S.value;
243
+ const z = q !== void 0 ? q : C.value.clientWidth / 2, oe = Q !== void 0 ? Q : C.value.clientHeight / 2, Z = C.value.clientWidth, re = C.value.clientHeight, W = Z * S.value, pe = re * S.value;
244
244
  o.value = Math.min(Math.max(100, o.value + M), c.value);
245
- const he = Z * S.value, ve = re * S.value, be = he - P, we = ve - pe;
245
+ const he = Z * S.value, ve = re * S.value, be = he - W, we = ve - pe;
246
246
  s.value -= z / Z * be, i.value -= oe / re * we, ie(0), N(0);
247
247
  }
248
248
  function U() {
@@ -254,14 +254,14 @@ const Bn = /* @__PURE__ */ J({
254
254
  min: 100,
255
255
  max: c.value,
256
256
  resolve: (M, q) => {
257
- const Q = w.value.clientWidth, z = w.value.clientHeight, oe = s.value / -S.value, Z = i.value / -S.value, re = oe + Q / S.value, P = Z + z / S.value, pe = M / Q * (re - oe) + oe, he = q / z * (P - Z) + Z;
257
+ const Q = C.value.clientWidth, z = C.value.clientHeight, oe = s.value / -S.value, Z = i.value / -S.value, re = oe + Q / S.value, W = Z + z / S.value, pe = M / Q * (re - oe) + oe, he = q / z * (W - Z) + Z;
258
258
  return { x: pe, y: he };
259
259
  }
260
260
  });
261
261
  }
262
262
  return (M, q) => (u(), E("div", {
263
263
  ref_key: "box",
264
- ref: w,
264
+ ref: C,
265
265
  class: "zoom-box-container",
266
266
  style: le({ position: l.position })
267
267
  }, [
@@ -282,10 +282,10 @@ var Un = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? fun
282
282
  return typeof t;
283
283
  } : function(t) {
284
284
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
285
- }, zn = typeof window < "u" && typeof window.document < "u", jn = typeof process < "u" && process.versions != null && process.versions.node != null, Pn = (typeof self > "u" ? "undefined" : Un(self)) === "object" && self.constructor && self.constructor.name === "DedicatedWorkerGlobalScope", Wn = typeof window < "u" && window.name === "nodejs" || typeof navigator < "u" && (navigator.userAgent.includes("Node.js") || navigator.userAgent.includes("jsdom")), Nn = typeof Deno < "u" && typeof Deno.version < "u" && typeof Deno.version.deno < "u", Qn = qe.isBrowser = zn;
286
- qe.isWebWorker = Pn;
285
+ }, zn = typeof window < "u" && typeof window.document < "u", jn = typeof process < "u" && process.versions != null && process.versions.node != null, Wn = (typeof self > "u" ? "undefined" : Un(self)) === "object" && self.constructor && self.constructor.name === "DedicatedWorkerGlobalScope", Pn = typeof window < "u" && window.name === "nodejs" || typeof navigator < "u" && (navigator.userAgent.includes("Node.js") || navigator.userAgent.includes("jsdom")), Nn = typeof Deno < "u" && typeof Deno.version < "u" && typeof Deno.version.deno < "u", Qn = qe.isBrowser = zn;
286
+ qe.isWebWorker = Wn;
287
287
  qe.isNode = jn;
288
- qe.isJsDom = Wn;
288
+ qe.isJsDom = Pn;
289
289
  qe.isDeno = Nn;
290
290
  function _e(t, a) {
291
291
  return typeof t == "string" ? `${t}${a}` : t(a);
@@ -332,7 +332,7 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
332
332
  const l = Fn.PlayerV2;
333
333
  a({
334
334
  updateFrontendMarkers: (x) => {
335
- w.value && m.value ? w.value.updateFrontendMarkers(x) : console.warn(
335
+ C.value && m.value ? C.value.updateFrontendMarkers(x) : console.warn(
336
336
  "Player API not initialized or not available. Cannot update frontend markers."
337
337
  );
338
338
  }
@@ -344,11 +344,11 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
344
344
  currentCameraId: f,
345
345
  showStaticImage: h,
346
346
  mouseSensitivity: g
347
- } = Ce(r), C = n, w = y(), V = y(f.value), S = y(0), c = y(0), m = y(!1);
347
+ } = Ce(r), k = n, C = y(), V = y(f.value), S = y(0), c = y(0), m = y(!1);
348
348
  H(f, () => {
349
349
  V.value = f.value;
350
350
  }), H([s, i], async () => {
351
- w.value && (w.value.updateSettings({ ACTIVE_TONEMAPPER: "AgXTonemap" }), await w.value.loadInterior(
351
+ C.value && (C.value.updateSettings({ ACTIVE_TONEMAPPER: "AgXTonemap" }), await C.value.loadInterior(
352
352
  (x) => _e(
353
353
  o.value,
354
354
  `/${s.value}/${i.value}${x}`
@@ -359,44 +359,44 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
359
359
  }), H(
360
360
  V,
361
361
  () => {
362
- w.value && (w.value.updateSettings({ ACTIVE_TONEMAPPER: "AgXTonemap" }), w.value.goToCamera(V.value, !0)), C("newCameraCallback", V.value);
362
+ C.value && C.value.goToCamera(V.value, !0), k("newCameraCallback", V.value);
363
363
  },
364
364
  { immediate: !0 }
365
365
  ), H(
366
366
  [o],
367
367
  async () => {
368
368
  await A(), $e(async () => {
369
- await k();
369
+ await w();
370
370
  });
371
371
  },
372
372
  { immediate: !0, deep: !0 }
373
- ), H(w, () => {
374
- if (w.value) {
375
- C("playerApiCallback", w.value);
376
- const x = w.value.getCurrentCamera();
377
- x && (V.value = x.id, C("sunsimCallback", x.sunsimDayOfYear));
373
+ ), H(C, () => {
374
+ if (C.value) {
375
+ k("playerApiCallback", C.value);
376
+ const x = C.value.getCurrentCamera();
377
+ x && (V.value = x.id, k("sunsimCallback", x.sunsimDayOfYear));
378
378
  }
379
379
  });
380
- async function k() {
380
+ async function w() {
381
381
  A();
382
382
  const te = {
383
383
  initialized: () => {
384
- w.value = l.Main.getPlayerAPI();
385
- const Y = w.value.getCurrentCamera();
384
+ C.value = l.Main.getPlayerAPI();
385
+ const Y = C.value.getCurrentCamera();
386
386
  Y && (V.value = Y.id), m.value = !0;
387
387
  },
388
388
  newCamera: (Y) => {
389
- C("newFloorCallback", Y.floorLevel), C("sunsimCallback", Y.sunsimDayOfYear), w.value && w.value.resetMarkerBehaviour(0), V.value = Y.id;
389
+ k("newFloorCallback", Y.floorLevel), k("sunsimCallback", Y.sunsimDayOfYear), C.value && C.value.resetMarkerBehaviour(0), V.value = Y.id;
390
390
  },
391
391
  newFOV: (Y) => {
392
- C("newFovCallback", Y), c.value = Y;
392
+ k("newFovCallback", Y), c.value = Y;
393
393
  },
394
394
  newRotation: (Y) => {
395
395
  const Se = Y + 0;
396
- C("newRotationCallback", Se), S.value = Se;
396
+ k("newRotationCallback", Se), S.value = Se;
397
397
  },
398
398
  onFrontendMarkersUpdate: (Y) => {
399
- C("frontendMarkersUpdate", Y);
399
+ k("frontendMarkersUpdate", Y);
400
400
  }
401
401
  };
402
402
  if (!Qn)
@@ -414,10 +414,10 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
414
414
  de && (de.handleWindowResize(), window.addEventListener(
415
415
  "resize",
416
416
  de.handleWindowResize.bind(de)
417
- ), de.animate(), w.value = l.Main.getPlayerAPI(), w.value && w.value.setLookSensitivity(g.value));
417
+ ), de.animate(), C.value = l.Main.getPlayerAPI(), C.value && C.value.setLookSensitivity(g.value));
418
418
  }
419
419
  async function A() {
420
- w.value && (w.value.updateSettings({ ACTIVE_TONEMAPPER: "AgXTonemap" }), await w.value.destroy(), w.value = void 0);
420
+ C.value && (await C.value.destroy(), C.value = void 0);
421
421
  }
422
422
  return ot(() => {
423
423
  A();
@@ -460,7 +460,7 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
460
460
  ])
461
461
  ]));
462
462
  }
463
- }), ro = /* @__PURE__ */ ne(so, [["__scopeId", "data-v-78638f36"]]), De = Symbol(), io = {
463
+ }), ro = /* @__PURE__ */ ne(so, [["__scopeId", "data-v-2739a9ee"]]), De = Symbol(), io = {
464
464
  style: { width: "24px", height: "24px" },
465
465
  viewBox: "0 0 18 16",
466
466
  xmlns: "http://www.w3.org/2000/svg"
@@ -480,14 +480,14 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
480
480
  const g = n.level + 1;
481
481
  g >= o.value.length ? l("level", o.value[0]) : l("level", o.value[g]);
482
482
  }
483
- return (g, C) => {
484
- const w = L("v-btn"), V = L("v-tooltip");
483
+ return (g, k) => {
484
+ const C = L("v-btn"), V = L("v-tooltip");
485
485
  return u(), T(V, {
486
486
  right: "",
487
487
  attach: ""
488
488
  }, {
489
489
  activator: v(({ props: S }) => [
490
- _(w, Ee({
490
+ _(C, Ee({
491
491
  style: { cursor: "pointer" },
492
492
  density: "comfortable",
493
493
  elevation: "1",
@@ -515,7 +515,7 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
515
515
  }, 1040)
516
516
  ]),
517
517
  default: v(() => [
518
- e("span", vo, W(p(r).getLabel(s.value)) + " " + W(p(r).getLabel("floor")), 1)
518
+ e("span", vo, P(p(r).getLabel(s.value)) + " " + P(p(r).getLabel("floor")), 1)
519
519
  ]),
520
520
  _: 1
521
521
  });
@@ -541,8 +541,8 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
541
541
  elevation: "0",
542
542
  attach: ""
543
543
  }, {
544
- activator: v(({ props: C }) => [
545
- _(f, Ee({ rounded: "" }, C, { class: "text-capitalize" }), {
544
+ activator: v(({ props: k }) => [
545
+ _(f, Ee({ rounded: "" }, k, { class: "text-capitalize" }), {
546
546
  default: v(() => [
547
547
  _(i, null, {
548
548
  default: v(() => [
@@ -550,18 +550,18 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
550
550
  ]),
551
551
  _: 1
552
552
  }),
553
- e("span", fo, W(p(r).getLabel("interior")), 1)
553
+ e("span", fo, P(p(r).getLabel("interior")), 1)
554
554
  ]),
555
555
  _: 2
556
556
  }, 1040)
557
557
  ]),
558
558
  default: v(() => [
559
559
  e("div", ho, [
560
- (u(!0), E(xe, null, Me(n.availableArchetypes, (C, w) => (u(), E("div", {
561
- key: `at-menuitem-${w}`,
562
- onClick: (V) => l("selectInterior", C.archetypeID),
560
+ (u(!0), E(xe, null, Me(n.availableArchetypes, (k, C) => (u(), E("div", {
561
+ key: `at-menuitem-${C}`,
562
+ onClick: (V) => l("selectInterior", k.archetypeID),
563
563
  class: me(["interior-selector-list-item", {
564
- active: w === o.selectedIndex
564
+ active: C === o.selectedIndex
565
565
  }])
566
566
  }, [
567
567
  e("div", yo, [
@@ -570,11 +570,11 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
570
570
  width: "100",
571
571
  "max-width": "100",
572
572
  height: "66",
573
- src: C.url,
573
+ src: k.url,
574
574
  class: "pa-0 ma-0"
575
575
  }, null, 8, ["src"])
576
576
  ]),
577
- e("div", bo, W(p(r).get(C.title)), 1)
577
+ e("div", bo, P(p(r).get(k.title)), 1)
578
578
  ])
579
579
  ], 10, go))), 128))
580
580
  ])
@@ -630,7 +630,7 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
630
630
  "aspect-ratio": "1"
631
631
  }, null, 8, ["src"])
632
632
  ]),
633
- e("div", Eo, W(n.value), 1)
633
+ e("div", Eo, P(n.value), 1)
634
634
  ]);
635
635
  };
636
636
  }
@@ -661,13 +661,13 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
661
661
  return (s, i) => {
662
662
  const f = L("v-icon"), h = L("v-btn"), g = L("v-tooltip");
663
663
  return u(), T(g, { location: "top" }, {
664
- activator: v(({ props: C }) => [
664
+ activator: v(({ props: k }) => [
665
665
  _(h, Ee({
666
666
  density: "comfortable",
667
667
  elevation: "1",
668
668
  icon: "",
669
- onClick: i[0] || (i[0] = (w) => l("toggle"))
670
- }, C), {
669
+ onClick: i[0] || (i[0] = (C) => l("toggle"))
670
+ }, k), {
671
671
  default: v(() => [
672
672
  o.value === "virtualTour" ? (u(), E("svg", Vo, Oo)) : (u(), T(f, { key: 1 }, {
673
673
  default: v(() => [
@@ -680,7 +680,7 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
680
680
  }, 1040)
681
681
  ]),
682
682
  default: v(() => [
683
- e("span", null, W(p(r).getLabel(o.value)), 1)
683
+ e("span", null, P(p(r).getLabel(o.value)), 1)
684
684
  ]),
685
685
  _: 1
686
686
  });
@@ -736,7 +736,7 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
736
736
  "stroke-width": "1.5"
737
737
  })
738
738
  ])
739
- ], -1)), jo = { class: "text-div text-center text mt-2" }, Po = { class: "box col d-flex flex-column align-bottom justify-center" }, Wo = /* @__PURE__ */ ze(() => /* @__PURE__ */ e("div", { class: "tutorial-icon justify-center" }, [
739
+ ], -1)), jo = { class: "text-div text-center text mt-2" }, Wo = { class: "box col d-flex flex-column align-bottom justify-center" }, Po = /* @__PURE__ */ ze(() => /* @__PURE__ */ e("div", { class: "tutorial-icon justify-center" }, [
740
740
  /* @__PURE__ */ e("svg", {
741
741
  width: "50",
742
742
  height: "32.5",
@@ -1227,7 +1227,7 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
1227
1227
  n("closeTutorial", r.value);
1228
1228
  }
1229
1229
  return (f, h) => {
1230
- const g = L("v-icon"), C = L("v-card-title"), w = L("v-btn"), V = L("v-divider"), S = L("v-card-text"), c = L("v-card-actions"), m = L("v-card"), k = L("v-expand-transition"), A = L("v-checkbox");
1230
+ const g = L("v-icon"), k = L("v-card-title"), C = L("v-btn"), V = L("v-divider"), S = L("v-card-text"), c = L("v-card-actions"), m = L("v-card"), w = L("v-expand-transition"), A = L("v-checkbox");
1231
1231
  return u(), T(Ve, { name: "fade-transition" }, {
1232
1232
  default: v(() => [
1233
1233
  _(m, {
@@ -1235,7 +1235,7 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
1235
1235
  elevation: "16"
1236
1236
  }, {
1237
1237
  default: v(() => [
1238
- _(C, { class: "text-capitalize" }, {
1238
+ _(k, { class: "text-capitalize" }, {
1239
1239
  default: v(() => [
1240
1240
  _(g, { size: "x-small" }, {
1241
1241
  default: v(() => [
@@ -1243,21 +1243,21 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
1243
1243
  ]),
1244
1244
  _: 1
1245
1245
  }),
1246
- ae(" " + W(p(l).getLabel("disclaimer")), 1)
1246
+ ae(" " + P(p(l).getLabel("disclaimer")), 1)
1247
1247
  ]),
1248
1248
  _: 1
1249
1249
  }),
1250
1250
  _(S, { class: "pb-0" }, {
1251
1251
  default: v(() => [
1252
- e("p", null, W(p(l).getLabel("disclaimerTextShort")), 1),
1253
- _(w, {
1252
+ e("p", null, P(p(l).getLabel("disclaimerTextShort")), 1),
1253
+ _(C, {
1254
1254
  variant: "tonal",
1255
1255
  size: "small",
1256
1256
  onClick: h[0] || (h[0] = (x) => o.value = !0),
1257
1257
  class: "text-capitalize mt-2"
1258
1258
  }, {
1259
1259
  default: v(() => [
1260
- ae(W(p(l).getLabel("learnMore")) + " ", 1),
1260
+ ae(P(p(l).getLabel("learnMore")) + " ", 1),
1261
1261
  _(g, null, {
1262
1262
  default: v(() => [
1263
1263
  ae("mdi-chevron-right")
@@ -1272,41 +1272,41 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
1272
1272
  e("div", Ho, [
1273
1273
  e("div", Uo, [
1274
1274
  zo,
1275
- e("div", jo, W(p(l).getLabel("clickAndDragToLookAround")), 1)
1275
+ e("div", jo, P(p(l).getLabel("clickAndDragToLookAround")), 1)
1276
1276
  ]),
1277
- e("div", Po, [
1278
- Wo,
1279
- e("div", No, W(p(l).getLabel("clickOnTheCirclesToMoveAround")), 1)
1277
+ e("div", Wo, [
1278
+ Po,
1279
+ e("div", No, P(p(l).getLabel("clickOnTheCirclesToMoveAround")), 1)
1280
1280
  ]),
1281
1281
  e("div", Qo, [
1282
1282
  Zo,
1283
- e("div", qo, W(p(l).getLabel("useTheMouseWheelToZoom")), 1)
1283
+ e("div", qo, P(p(l).getLabel("useTheMouseWheelToZoom")), 1)
1284
1284
  ]),
1285
1285
  e("div", Jo, [
1286
1286
  Xo,
1287
- e("div", Go, W(p(l).getLabel("youCanAlsoUseTheArrowKeysToMoveAround")), 1)
1287
+ e("div", Go, P(p(l).getLabel("youCanAlsoUseTheArrowKeysToMoveAround")), 1)
1288
1288
  ])
1289
1289
  ])
1290
1290
  ])),
1291
1291
  s.value ? (u(), E("div", Ko, [
1292
1292
  e("div", ea, [
1293
1293
  ta,
1294
- e("div", na, W(p(l).getLabel("tapAndDragToLookAround")), 1)
1294
+ e("div", na, P(p(l).getLabel("tapAndDragToLookAround")), 1)
1295
1295
  ]),
1296
1296
  e("div", oa, [
1297
1297
  aa,
1298
- e("div", la, W(p(l).getLabel("tapOnTheCirclesToMoveAround")), 1)
1298
+ e("div", la, P(p(l).getLabel("tapOnTheCirclesToMoveAround")), 1)
1299
1299
  ]),
1300
1300
  e("div", sa, [
1301
1301
  ra,
1302
- e("div", ia, W(p(l).getLabel("useTwoFingersToZoom")), 1)
1302
+ e("div", ia, P(p(l).getLabel("useTwoFingersToZoom")), 1)
1303
1303
  ])
1304
1304
  ])) : F("", !0),
1305
1305
  _(V, { class: "my-1" })
1306
1306
  ]),
1307
1307
  _: 1
1308
1308
  }),
1309
- _(k, null, {
1309
+ _(w, null, {
1310
1310
  default: v(() => [
1311
1311
  o.value ? (u(), T(m, {
1312
1312
  key: 0,
@@ -1324,15 +1324,15 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
1324
1324
  ]),
1325
1325
  _: 1
1326
1326
  }),
1327
- ae(" " + W(p(l).getLabel("disclaimer")), 1)
1327
+ ae(" " + P(p(l).getLabel("disclaimer")), 1)
1328
1328
  ]),
1329
- e("p", ca, W(p(l).getLabel("disclaimerText")), 1)
1329
+ e("p", ca, P(p(l).getLabel("disclaimerText")), 1)
1330
1330
  ]),
1331
1331
  _: 1
1332
1332
  }),
1333
1333
  _(c, null, {
1334
1334
  default: v(() => [
1335
- _(w, {
1335
+ _(C, {
1336
1336
  variant: "tonal",
1337
1337
  size: "small",
1338
1338
  onClick: h[1] || (h[1] = (x) => o.value = !1),
@@ -1345,7 +1345,7 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
1345
1345
  ]),
1346
1346
  _: 1
1347
1347
  }),
1348
- ae(" " + W(p(l).getLabel("back")), 1)
1348
+ ae(" " + P(p(l).getLabel("back")), 1)
1349
1349
  ]),
1350
1350
  _: 1
1351
1351
  })
@@ -1366,20 +1366,20 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
1366
1366
  "hide-details": ""
1367
1367
  }, {
1368
1368
  label: v(() => [
1369
- e("span", va, W(p(l).getLabel("dontShowAgain")), 1)
1369
+ e("span", va, P(p(l).getLabel("dontShowAgain")), 1)
1370
1370
  ]),
1371
1371
  _: 1
1372
1372
  }, 8, ["modelValue"])
1373
1373
  ]),
1374
1374
  _(c, null, {
1375
1375
  default: v(() => [
1376
- _(w, {
1376
+ _(C, {
1377
1377
  variant: "tonal",
1378
1378
  onClick: h[3] || (h[3] = (x) => i()),
1379
1379
  block: ""
1380
1380
  }, {
1381
1381
  default: v(() => [
1382
- ae(W(p(l).getLabel("iUnderstand")), 1)
1382
+ ae(P(p(l).getLabel("iUnderstand")), 1)
1383
1383
  ]),
1384
1384
  _: 1
1385
1385
  })
@@ -1445,15 +1445,15 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
1445
1445
  r.value = V(), l("updateSettings", o.value);
1446
1446
  }
1447
1447
  function g(S) {
1448
- const c = parseInt(S.substr(1, 2), 16) / 255, m = parseInt(S.substr(3, 2), 16) / 255, k = parseInt(S.substr(5, 2), 16) / 255;
1449
- return [c, m, k];
1448
+ const c = parseInt(S.substr(1, 2), 16) / 255, m = parseInt(S.substr(3, 2), 16) / 255, w = parseInt(S.substr(5, 2), 16) / 255;
1449
+ return [c, m, w];
1450
1450
  }
1451
- function C(S) {
1451
+ function k(S) {
1452
1452
  var c = S.toString(16);
1453
1453
  return c.length == 1 ? "0" + c : c;
1454
1454
  }
1455
- function w([S, c, m]) {
1456
- return "#" + C(parseInt((S * 255).toString())) + C(parseInt((c * 255).toString())) + C(parseInt((m * 255).toString()));
1455
+ function C([S, c, m]) {
1456
+ return "#" + k(parseInt((S * 255).toString())) + k(parseInt((c * 255).toString())) + k(parseInt((m * 255).toString()));
1457
1457
  }
1458
1458
  function V(S = {}) {
1459
1459
  const c = [
@@ -1538,21 +1538,21 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
1538
1538
  whitePoint: {
1539
1539
  label: "White Point",
1540
1540
  type: "color",
1541
- value: w(m.whitePoint)
1541
+ value: C(m.whitePoint)
1542
1542
  },
1543
1543
  lut: {
1544
1544
  label: "Lut",
1545
1545
  type: "lut",
1546
- items: c.map((k) => ({
1547
- text: k,
1548
- value: `https://cdn.visuado.com/luts/${k}.png`
1546
+ items: c.map((w) => ({
1547
+ text: w,
1548
+ value: `https://cdn.visuado.com/luts/${w}.png`
1549
1549
  })),
1550
1550
  value: m.lut
1551
1551
  }
1552
1552
  };
1553
1553
  }
1554
1554
  return (S, c) => {
1555
- const m = L("v-text-field"), k = L("v-slider"), A = L("v-checkbox"), x = L("v-btn"), $ = L("v-select"), X = L("v-icon");
1555
+ const m = L("v-text-field"), w = L("v-slider"), A = L("v-checkbox"), x = L("v-btn"), $ = L("v-select"), X = L("v-icon");
1556
1556
  return u(), E("div", ha, [
1557
1557
  e("form", ga, [
1558
1558
  e("div", ya, [
@@ -1560,7 +1560,7 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
1560
1560
  key: de,
1561
1561
  "d-block": ""
1562
1562
  }, [
1563
- R.type === "slider" ? (u(), T(k, {
1563
+ R.type === "slider" ? (u(), T(w, {
1564
1564
  key: 0,
1565
1565
  modelValue: r.value[te].value,
1566
1566
  "onUpdate:modelValue": (Y) => r.value[te].value = Y,
@@ -1570,7 +1570,7 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
1570
1570
  step: R.step
1571
1571
  }, {
1572
1572
  prepend: v(() => [
1573
- e("div", _a, W(R.label), 1)
1573
+ e("div", _a, P(R.label), 1)
1574
1574
  ]),
1575
1575
  append: v(() => [
1576
1576
  e("div", null, [
@@ -1598,10 +1598,10 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
1598
1598
  onChange: s
1599
1599
  }, {
1600
1600
  prepend: v(() => [
1601
- e("div", ba, W(R.label), 1)
1601
+ e("div", ba, P(R.label), 1)
1602
1602
  ]),
1603
1603
  append: v(() => [
1604
- e("div", null, W(R.value), 1)
1604
+ e("div", null, P(R.value), 1)
1605
1605
  ]),
1606
1606
  _: 2
1607
1607
  }, 1032, ["modelValue", "onUpdate:modelValue"])) : F("", !0),
@@ -1612,7 +1612,7 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
1612
1612
  min: R.min,
1613
1613
  step: R.step
1614
1614
  }, [
1615
- e("div", ka, W(R.label), 1),
1615
+ e("div", ka, P(R.label), 1),
1616
1616
  e("div", Ca, [
1617
1617
  tt(e("input", {
1618
1618
  "onUpdate:modelValue": (Y) => r.value[te].value = Y,
@@ -1638,7 +1638,7 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
1638
1638
  ], 8, wa)) : F("", !0),
1639
1639
  R.type === "lut" ? (u(), E("div", Aa, [
1640
1640
  e("div", xa, [
1641
- e("div", Ia, W(R.label), 1),
1641
+ e("div", Ia, P(R.label), 1),
1642
1642
  e("div", null, [
1643
1643
  _(x, {
1644
1644
  class: "ml-2",
@@ -1755,18 +1755,18 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
1755
1755
  const i = document.getElementsByClassName("anchor");
1756
1756
  for (let c = 0; c < i.length; c++) {
1757
1757
  const m = i[c];
1758
- m.addEventListener("touchstart", w, { passive: !1 }), m.addEventListener("touchend", S, { passive: !1 }), m.addEventListener("mousedown", w, { passive: !1 }), m.addEventListener("mouseup", S, { passive: !1 });
1758
+ m.addEventListener("touchstart", C, { passive: !1 }), m.addEventListener("touchend", S, { passive: !1 }), m.addEventListener("mousedown", C, { passive: !1 }), m.addEventListener("mouseup", S, { passive: !1 });
1759
1759
  }
1760
- let f = 0, h = 0, g = 0, C = 0;
1761
- function w(c) {
1760
+ let f = 0, h = 0, g = 0, k = 0;
1761
+ function C(c) {
1762
1762
  c = c || window.event, c.preventDefault();
1763
1763
  let m = c;
1764
- c.type === "touchstart" && (m = c.touches[0]), g = m.clientX, C = m.clientY, document.addEventListener("mouseup", S, { passive: !1 }), document.addEventListener("touchend", S, { passive: !1 }), document.addEventListener("mousemove", V, { passive: !1 }), document.addEventListener("touchmove", V, { passive: !1 });
1764
+ c.type === "touchstart" && (m = c.touches[0]), g = m.clientX, k = m.clientY, document.addEventListener("mouseup", S, { passive: !1 }), document.addEventListener("touchend", S, { passive: !1 }), document.addEventListener("mousemove", V, { passive: !1 }), document.addEventListener("touchmove", V, { passive: !1 });
1765
1765
  }
1766
1766
  function V(c) {
1767
1767
  c = c || window.event, c.preventDefault();
1768
1768
  let m = c;
1769
- c.type === "touchmove" && (m = c.touches[0]), f = g - m.clientX, h = C - m.clientY, g = m.clientX, C = m.clientY, s.style.top = s.offsetTop - h + "px", s.style.left = s.offsetLeft - f + "px";
1769
+ c.type === "touchmove" && (m = c.touches[0]), f = g - m.clientX, h = k - m.clientY, g = m.clientX, k = m.clientY, s.style.top = s.offsetTop - h + "px", s.style.left = s.offsetLeft - f + "px";
1770
1770
  }
1771
1771
  function S() {
1772
1772
  document.removeEventListener("mouseup", S, !1), document.removeEventListener("mousemove", V, !1), document.removeEventListener("touchend", S, !1), document.removeEventListener("touchmove", V, !1);
@@ -1797,8 +1797,8 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
1797
1797
  class: "rotation-marker-svg",
1798
1798
  viewBox: "0 0 40 40",
1799
1799
  xmlns: "http://www.w3.org/2000/svg"
1800
- }, za = /* @__PURE__ */ Yt('<defs><radialGradient id="Gradient" cx="0" cy="0" r="0.9" fx="0" fy="0"><stop offset="0%" class="stop1"></stop><stop offset="60%" class="stop2"></stop><stop offset="90%" class="stop3"></stop></radialGradient><linearGradient id="LineGradient" gradientTransform="rotate(90)"><stop offset="0%" class="stop1"></stop><stop offset="75%" class="stop2"></stop><stop offset="100%" class="stop3"></stop></linearGradient></defs>', 1), ja = ["transform"], Pa = /* @__PURE__ */ Yt('<rect id="field-of-view-gradient" x="20" y="20" width="38" height="38" transform="rotate(0)" transform-origin="20 20" fill="url(#Gradient)"></rect><rect class="field-of-view-border" x="20" y="20" width="1" height="25" fill="url(#LineGradient)" transform="rotate(0)" transform-origin="20 20"></rect><rect class="field-of-view-border" x="19" y="19" width="1" height="25" fill="url(#LineGradient)" transform="rotate(-90)" transform-origin="20 20"></rect><circle cx="20" cy="20" r="5" fill="white"></circle><circle cx="20" cy="20" r="3" fill="red"></circle>', 5), Wa = [
1801
- Pa
1800
+ }, za = /* @__PURE__ */ Yt('<defs><radialGradient id="Gradient" cx="0" cy="0" r="0.9" fx="0" fy="0"><stop offset="0%" class="stop1"></stop><stop offset="60%" class="stop2"></stop><stop offset="90%" class="stop3"></stop></radialGradient><linearGradient id="LineGradient" gradientTransform="rotate(90)"><stop offset="0%" class="stop1"></stop><stop offset="75%" class="stop2"></stop><stop offset="100%" class="stop3"></stop></linearGradient></defs>', 1), ja = ["transform"], Wa = /* @__PURE__ */ Yt('<rect id="field-of-view-gradient" x="20" y="20" width="38" height="38" transform="rotate(0)" transform-origin="20 20" fill="url(#Gradient)"></rect><rect class="field-of-view-border" x="20" y="20" width="1" height="25" fill="url(#LineGradient)" transform="rotate(0)" transform-origin="20 20"></rect><rect class="field-of-view-border" x="19" y="19" width="1" height="25" fill="url(#LineGradient)" transform="rotate(-90)" transform-origin="20 20"></rect><circle cx="20" cy="20" r="5" fill="white"></circle><circle cx="20" cy="20" r="3" fill="red"></circle>', 5), Pa = [
1801
+ Wa
1802
1802
  ], Na = /* @__PURE__ */ J({
1803
1803
  __name: "VRotationMarker",
1804
1804
  props: {
@@ -1810,7 +1810,7 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
1810
1810
  e("g", {
1811
1811
  "transform-origin": "20 20",
1812
1812
  transform: `rotate(${45 + a.rotation})`
1813
- }, Wa, 8, ja)
1813
+ }, Pa, 8, ja)
1814
1814
  ]));
1815
1815
  }
1816
1816
  }), Qa = { class: "minimap-wrapper" }, Za = { class: "minimap-container" }, qa = ["id"], Ja = /* @__PURE__ */ J({
@@ -1828,11 +1828,11 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
1828
1828
  },
1829
1829
  emits: ["goToCamera"],
1830
1830
  setup(t, { emit: a }) {
1831
- const n = t, l = a, r = y(512), o = y(384), s = y(512), i = y(384), f = y(new Ke()), h = y(new Vn()), g = y({}), C = y(1), w = y(), V = r.value / r.value, S = D(() => {
1831
+ const n = t, l = a, r = y(512), o = y(384), s = y(512), i = y(384), f = y(new Ke()), h = y(new Vn()), g = y({}), k = y(1), C = y(), V = r.value / r.value, S = D(() => {
1832
1832
  const N = n.containerWidth / n.containerHeight;
1833
1833
  let se;
1834
1834
  return N > V ? se = n.containerHeight / o.value : se = n.containerWidth / r.value, se;
1835
- }), c = D(() => n.allCameras), m = D(() => n.allCameras.find((N) => N.id === n.currentCamera)), k = D(() => n.rotation), A = D(() => new Ke(
1835
+ }), c = D(() => n.allCameras), m = D(() => n.allCameras.find((N) => N.id === n.currentCamera)), w = D(() => n.rotation), A = D(() => new Ke(
1836
1836
  n.storey.position.x,
1837
1837
  n.storey.position.y,
1838
1838
  n.storey.position.z
@@ -1855,11 +1855,11 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
1855
1855
  Re(() => {
1856
1856
  ye(), de(), O();
1857
1857
  const N = document.getElementById("moveableDiv");
1858
- N && (w.value = new ResizeObserver(O).observe(N));
1858
+ N && (C.value = new ResizeObserver(O).observe(N));
1859
1859
  }), xn(() => {
1860
1860
  ye(), de();
1861
1861
  }), ot(() => {
1862
- w.value && w.value.unobserve(document.getElementById("moveableDiv"));
1862
+ C.value && C.value.unobserve(document.getElementById("moveableDiv"));
1863
1863
  });
1864
1864
  function te(N) {
1865
1865
  return Dn.degToRad(N);
@@ -1895,21 +1895,21 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
1895
1895
  if (!N)
1896
1896
  return;
1897
1897
  const se = N.offsetHeight / 384 * 0.8, U = N.offsetWidth / 512 * 0.8;
1898
- N.offsetHeight > N.offsetWidth ? C.value = U * 0.5 : C.value = se * 0.9;
1898
+ N.offsetHeight > N.offsetWidth ? k.value = U * 0.5 : k.value = se * 0.9;
1899
1899
  }
1900
1900
  function ie(N) {
1901
1901
  const U = N.currentTarget.getBoundingClientRect(), M = N.clientX - U.left, q = N.clientY - U.top, Q = document.querySelectorAll(".single-camera-marker");
1902
1902
  let z = null, oe = 1 / 0;
1903
1903
  if (Q.forEach((Z) => {
1904
- const re = Z, P = re.getBoundingClientRect(), pe = P.left + P.width / 2 - U.left, he = P.top + P.height / 2 - U.top, ve = Math.sqrt(
1904
+ const re = Z, W = re.getBoundingClientRect(), pe = W.left + W.width / 2 - U.left, he = W.top + W.height / 2 - U.top, ve = Math.sqrt(
1905
1905
  (M - pe) ** 2 + (q - he) ** 2
1906
1906
  );
1907
1907
  ve < oe && (oe = ve, z = re);
1908
1908
  }), z) {
1909
- const Z = z.getBoundingClientRect(), re = Z.left + Z.width / 2, P = Z.top + Z.height / 2;
1909
+ const Z = z.getBoundingClientRect(), re = Z.left + Z.width / 2, W = Z.top + Z.height / 2;
1910
1910
  for (let he = 0; he < 3; he++) {
1911
1911
  const ve = document.createElement("div");
1912
- ve.className = "ripple-effect", ve.style.position = "fixed", ve.style.left = `${re}px`, ve.style.top = `${P}px`, ve.style.pointerEvents = "none", ve.style.animationDelay = `${he * 0.5}s`, document.body.appendChild(ve), setTimeout(() => {
1912
+ ve.className = "ripple-effect", ve.style.position = "fixed", ve.style.left = `${re}px`, ve.style.top = `${W}px`, ve.style.pointerEvents = "none", ve.style.animationDelay = `${he * 0.5}s`, document.body.appendChild(ve), setTimeout(() => {
1913
1913
  ve.remove();
1914
1914
  }, 500 + he * 500);
1915
1915
  }
@@ -1954,7 +1954,7 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
1954
1954
  m.value.id === U.id && n.rotation !== null ? (u(), T(Na, {
1955
1955
  key: 0,
1956
1956
  class: "rotation-marker-component-base rotation-marker-component",
1957
- rotation: k.value,
1957
+ rotation: w.value,
1958
1958
  style: le({ ...Y(U) })
1959
1959
  }, null, 8, ["rotation", "style"])) : F("", !0)
1960
1960
  ], !0)
@@ -1996,10 +1996,10 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
1996
1996
  },
1997
1997
  emits: ["setBackgroundImage"],
1998
1998
  setup(t, { emit: a }) {
1999
- const n = t, l = a, r = y((/* @__PURE__ */ new Date()).getHours()), o = y(!0), s = y(!0), i = y(""), f = y(/* @__PURE__ */ new Map()), h = D(() => n.minimapJson.storeys[n.level]), g = D(() => `${Math.floor(r.value).toString().padStart(2, "0")}:00`), C = D(() => {
1999
+ const n = t, l = a, r = y((/* @__PURE__ */ new Date()).getHours()), o = y(!0), s = y(!0), i = y(""), f = y(/* @__PURE__ */ new Map()), h = D(() => n.minimapJson.storeys[n.level]), g = D(() => `${Math.floor(r.value).toString().padStart(2, "0")}:00`), k = D(() => {
2000
2000
  if (h.value.sunsimFilesTimeStamps[r.value]) {
2001
- const k = h.value.sunsimFilesTimeStamps[r.value].split(" ");
2002
- return `${k[0]} ${k[1]}`;
2001
+ const w = h.value.sunsimFilesTimeStamps[r.value].split(" ");
2002
+ return `${w[0]} ${w[1]}`;
2003
2003
  }
2004
2004
  return "";
2005
2005
  });
@@ -2007,25 +2007,25 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
2007
2007
  i.value = await S(
2008
2008
  h.value.sunsimFiles[r.value]
2009
2009
  ), l("setBackgroundImage", i.value), s.value = !1;
2010
- const k = await V(n.minimapJson.storeys);
2011
- f.value = k, o.value = !1, l("setBackgroundImage", w(n.level, r.value));
2010
+ const w = await V(n.minimapJson.storeys);
2011
+ f.value = w, o.value = !1, l("setBackgroundImage", C(n.level, r.value));
2012
2012
  }), H(r, () => {
2013
- const k = w(n.level, r.value);
2014
- l("setBackgroundImage", k);
2013
+ const w = C(n.level, r.value);
2014
+ l("setBackgroundImage", w);
2015
2015
  }), H(
2016
2016
  () => n.level,
2017
2017
  () => {
2018
- l("setBackgroundImage", w(n.level, r.value));
2018
+ l("setBackgroundImage", C(n.level, r.value));
2019
2019
  },
2020
2020
  { immediate: !0 }
2021
2021
  );
2022
- function w(k, A) {
2023
- return f.value.get(`sunsim${k}_${A}`) ? f.value.get(`sunsim${k}_${A}`) : "";
2022
+ function C(w, A) {
2023
+ return f.value.get(`sunsim${w}_${A}`) ? f.value.get(`sunsim${w}_${A}`) : "";
2024
2024
  }
2025
- async function V(k) {
2025
+ async function V(w) {
2026
2026
  let A = /* @__PURE__ */ new Map();
2027
- for (let x = 0; x < k.length; x++) {
2028
- const $ = k[x].sunsimFiles;
2027
+ for (let x = 0; x < w.length; x++) {
2028
+ const $ = w[x].sunsimFiles;
2029
2029
  for (let X = 0; X < $.length; X++) {
2030
2030
  const R = $[X];
2031
2031
  try {
@@ -2038,28 +2038,28 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
2038
2038
  }
2039
2039
  return A;
2040
2040
  }
2041
- async function S(k) {
2041
+ async function S(w) {
2042
2042
  const x = await (await fetch(
2043
2043
  _e(
2044
2044
  n.cdnFileResolver,
2045
- `/${n.apartmentJson.type}/${n.apartmentJson.id}/minimap/${k}`
2045
+ `/${n.apartmentJson.type}/${n.apartmentJson.id}/minimap/${w}`
2046
2046
  )
2047
2047
  )).blob(), $ = await m(x);
2048
2048
  return c($);
2049
2049
  }
2050
- function c(k) {
2051
- return "data:image/jpeg;base64," + k;
2050
+ function c(w) {
2051
+ return "data:image/jpeg;base64," + w;
2052
2052
  }
2053
- async function m(k) {
2053
+ async function m(w) {
2054
2054
  return new Promise((A, x) => {
2055
2055
  const $ = new FileReader();
2056
2056
  $.onload = () => {
2057
2057
  const X = $.result.split(",")[1];
2058
2058
  A(X);
2059
- }, $.onerror = x, $.readAsDataURL(k);
2059
+ }, $.onerror = x, $.readAsDataURL(w);
2060
2060
  });
2061
2061
  }
2062
- return (k, A) => {
2062
+ return (w, A) => {
2063
2063
  const x = L("v-progress-linear"), $ = L("v-icon"), X = L("v-slider");
2064
2064
  return u(), E("div", Ga, [
2065
2065
  e("div", Ka, [
@@ -2092,11 +2092,11 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
2092
2092
  ]),
2093
2093
  _: 1
2094
2094
  }),
2095
- e("span", null, W(C.value), 1)
2095
+ e("span", null, P(k.value), 1)
2096
2096
  ])
2097
2097
  ]),
2098
2098
  "thumb-label": v(() => [
2099
- ae(W(g.value), 1)
2099
+ ae(P(g.value), 1)
2100
2100
  ]),
2101
2101
  _: 1
2102
2102
  }, 8, ["modelValue"]))
@@ -2134,16 +2134,16 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
2134
2134
  { immediate: !0, once: !0 }
2135
2135
  );
2136
2136
  const h = D(() => {
2137
- let k = 1;
2138
- return s.value !== 0 && (Math.abs(s.value) % 180 === 0 ? k = 1 : k = -1), V.value === "small" && (k = 0.6), k;
2137
+ let w = 1;
2138
+ return s.value !== 0 && (Math.abs(s.value) % 180 === 0 ? w = 1 : w = -1), V.value === "small" && (w = 0.6), w;
2139
2139
  });
2140
- function g(k) {
2141
- o.value = k;
2140
+ function g(w) {
2141
+ o.value = w;
2142
2142
  }
2143
- const C = ["big", "bigger", "small"];
2144
- function w() {
2145
- const A = (C.indexOf(V.value) + 1) % C.length;
2146
- V.value = C[A];
2143
+ const k = ["big", "bigger", "small"];
2144
+ function C() {
2145
+ const A = (k.indexOf(V.value) + 1) % k.length;
2146
+ V.value = k[A];
2147
2147
  }
2148
2148
  const V = y("big");
2149
2149
  function S() {
@@ -2152,10 +2152,10 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
2152
2152
  const c = () => {
2153
2153
  r("close");
2154
2154
  };
2155
- function m(k) {
2156
- r("goToCamera", k);
2155
+ function m(w) {
2156
+ r("goToCamera", w);
2157
2157
  }
2158
- return (k, A) => {
2158
+ return (w, A) => {
2159
2159
  const x = L("v-btn");
2160
2160
  return u(), T(Ha, {
2161
2161
  ref_key: "minimapMoveable",
@@ -2184,7 +2184,7 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
2184
2184
  class: "resize-icon ml-1",
2185
2185
  icon: "mdi-image-size-select-small",
2186
2186
  size: "x-small",
2187
- onClick: w,
2187
+ onClick: C,
2188
2188
  title: "Resize"
2189
2189
  })
2190
2190
  ])
@@ -2201,10 +2201,10 @@ const Zn = { id: "player-wrapper" }, qn = { id: "player-sizer" }, Jn = {
2201
2201
  e("div", il, [
2202
2202
  _(Ut, {
2203
2203
  "transform-angle": s.value,
2204
- "all-cameras": k.apartmentJson.cameras,
2204
+ "all-cameras": w.apartmentJson.cameras,
2205
2205
  "background-image": o.value,
2206
- rotation: k.rotation,
2207
- "current-camera": k.currentCamera,
2206
+ rotation: w.rotation,
2207
+ "current-camera": w.currentCamera,
2208
2208
  storey: i.value,
2209
2209
  containerWidth: n.value && n.value.bodyWidth || 512,
2210
2210
  containerHeight: n.value && n.value.bodyHeight || 384,
@@ -2255,10 +2255,10 @@ const cl = { class: "d-flex align-center" }, dl = { class: "d-block mr-1" }, vl
2255
2255
  },
2256
2256
  { immediate: !0 }
2257
2257
  ), (f, h) => {
2258
- const g = L("v-icon"), C = L("v-slider"), w = L("v-field"), V = L("v-btn");
2258
+ const g = L("v-icon"), k = L("v-slider"), C = L("v-field"), V = L("v-btn");
2259
2259
  return u(), E("div", cl, [
2260
2260
  e("div", dl, [
2261
- _(w, {
2261
+ _(C, {
2262
2262
  class: "ss-slider-field",
2263
2263
  style: {},
2264
2264
  variant: "solo-filled",
@@ -2266,7 +2266,7 @@ const cl = { class: "d-flex align-center" }, dl = { class: "d-block mr-1" }, vl
2266
2266
  flat: ""
2267
2267
  }, {
2268
2268
  default: v(() => [
2269
- p(l).timeSamples.length > 1 ? (u(), T(C, {
2269
+ p(l).timeSamples.length > 1 ? (u(), T(k, {
2270
2270
  key: 0,
2271
2271
  class: "pa-2 pr-2",
2272
2272
  modelValue: i.value,
@@ -2291,7 +2291,7 @@ const cl = { class: "d-flex align-center" }, dl = { class: "d-block mr-1" }, vl
2291
2291
  ]),
2292
2292
  _: 1
2293
2293
  }),
2294
- e("span", vl, W(p(ct)(i.value)), 1)
2294
+ e("span", vl, P(p(ct)(i.value)), 1)
2295
2295
  ]),
2296
2296
  _: 1
2297
2297
  }, 8, ["modelValue", "min", "max", "step", "disabled"])) : (u(), E(xe, { key: 1 }, [
@@ -2305,7 +2305,7 @@ const cl = { class: "d-flex align-center" }, dl = { class: "d-block mr-1" }, vl
2305
2305
  ]),
2306
2306
  _: 1
2307
2307
  }),
2308
- e("span", ml, W(p(ct)(i.value)), 1)
2308
+ e("span", ml, P(p(ct)(i.value)), 1)
2309
2309
  ], 64))
2310
2310
  ]),
2311
2311
  _: 1
@@ -2342,7 +2342,7 @@ const cl = { class: "d-flex align-center" }, dl = { class: "d-block mr-1" }, vl
2342
2342
  onClick: o[0] || (o[0] = (i) => n("toggleSunStudy"))
2343
2343
  }, {
2344
2344
  default: v(() => [
2345
- ae(W(p(l).getLabel("openSunStudy")), 1)
2345
+ ae(P(p(l).getLabel("openSunStudy")), 1)
2346
2346
  ]),
2347
2347
  _: 1
2348
2348
  })) : F("", !0);
@@ -2419,7 +2419,7 @@ const cl = { class: "d-flex align-center" }, dl = { class: "d-block mr-1" }, vl
2419
2419
  g(), l("goto", h);
2420
2420
  }
2421
2421
  return (h, g) => {
2422
- const C = L("v-btn"), w = L("v-img"), V = L("v-icon"), S = L("v-card"), c = L("v-slide-group-item"), m = L("v-slide-group");
2422
+ const k = L("v-btn"), C = L("v-img"), V = L("v-icon"), S = L("v-card"), c = L("v-slide-group-item"), m = L("v-slide-group");
2423
2423
  return u(), E("div", {
2424
2424
  class: me(["d-flex align-center justify-center", {
2425
2425
  mobileWaypointWrapper: s.value,
@@ -2430,7 +2430,7 @@ const cl = { class: "d-flex align-center" }, dl = { class: "d-block mr-1" }, vl
2430
2430
  K(h.$slots, "before", {}, void 0, !0),
2431
2431
  _(m, {
2432
2432
  modelValue: o.value,
2433
- "onUpdate:modelValue": g[2] || (g[2] = (k) => o.value = k),
2433
+ "onUpdate:modelValue": g[2] || (g[2] = (w) => o.value = w),
2434
2434
  class: me({ mobileWaypoint: s.value }),
2435
2435
  "active-class": "active-apt",
2436
2436
  "selected-class": "active-apt",
@@ -2439,28 +2439,28 @@ const cl = { class: "d-flex align-center" }, dl = { class: "d-block mr-1" }, vl
2439
2439
  mandatory: ""
2440
2440
  }, {
2441
2441
  prev: v(() => [
2442
- s.value ? F("", !0) : (u(), T(C, {
2442
+ s.value ? F("", !0) : (u(), T(k, {
2443
2443
  key: 0,
2444
2444
  class: me(["carousel-button", { mobile: s.value }]),
2445
2445
  icon: "mdi-chevron-left",
2446
2446
  varient: "tonal",
2447
2447
  size: "small",
2448
- onClick: g[0] || (g[0] = (k) => l("previous"))
2448
+ onClick: g[0] || (g[0] = (w) => l("previous"))
2449
2449
  }, null, 8, ["class"]))
2450
2450
  ]),
2451
2451
  next: v(() => [
2452
- s.value ? F("", !0) : (u(), T(C, {
2452
+ s.value ? F("", !0) : (u(), T(k, {
2453
2453
  key: 0,
2454
2454
  class: me(["carousel-button", { mobile: s.value }]),
2455
2455
  icon: "mdi-chevron-right",
2456
2456
  varient: "tonal",
2457
2457
  size: "small",
2458
- onClick: g[1] || (g[1] = (k) => l("next"))
2458
+ onClick: g[1] || (g[1] = (w) => l("next"))
2459
2459
  }, null, 8, ["class"]))
2460
2460
  ]),
2461
2461
  default: v(() => [
2462
- (u(!0), E(xe, null, Me(h.thumbnails, (k) => (u(), T(c, {
2463
- key: k.id
2462
+ (u(!0), E(xe, null, Me(h.thumbnails, (w) => (u(), T(c, {
2463
+ key: w.id
2464
2464
  }, {
2465
2465
  default: v(({ toggle: A, selectedClass: x }) => [
2466
2466
  _(S, {
@@ -2472,15 +2472,15 @@ const cl = { class: "d-flex align-center" }, dl = { class: "d-block mr-1" }, vl
2472
2472
  align: "center",
2473
2473
  justify: "center",
2474
2474
  style: { overflow: "hidden" },
2475
- onClick: ($) => f(k.id, A)
2475
+ onClick: ($) => f(w.id, A)
2476
2476
  }, {
2477
2477
  default: v(() => [
2478
- _(w, {
2478
+ _(C, {
2479
2479
  cover: "",
2480
2480
  "aspect-ratio": 1,
2481
- src: k.thumbnailUrl
2481
+ src: w.thumbnailUrl
2482
2482
  }, null, 8, ["src"]),
2483
- n.cameraHasSunStudy(k.id) ? (u(), E("div", gl, [
2483
+ n.cameraHasSunStudy(w.id) ? (u(), E("div", gl, [
2484
2484
  _(V, {
2485
2485
  class: "sun-icon",
2486
2486
  icon: "mdi-white-balance-sunny"
@@ -2531,9 +2531,9 @@ const cl = { class: "d-flex align-center" }, dl = { class: "d-block mr-1" }, vl
2531
2531
  navigator.clipboard.writeText(location.href);
2532
2532
  }
2533
2533
  return (f, h) => {
2534
- const g = L("v-btn"), C = L("v-tooltip"), w = L("v-toolbar-title"), V = L("v-spacer"), S = L("v-toolbar"), c = L("v-card-text"), m = L("v-card"), k = L("v-dialog");
2534
+ const g = L("v-btn"), k = L("v-tooltip"), C = L("v-toolbar-title"), V = L("v-spacer"), S = L("v-toolbar"), c = L("v-card-text"), m = L("v-card"), w = L("v-dialog");
2535
2535
  return u(), E("div", null, [
2536
- _(C, {
2536
+ _(k, {
2537
2537
  elevation: "2",
2538
2538
  top: "",
2539
2539
  attach: ""
@@ -2547,11 +2547,11 @@ const cl = { class: "d-flex align-center" }, dl = { class: "d-block mr-1" }, vl
2547
2547
  }, A), null, 16)
2548
2548
  ]),
2549
2549
  default: v(() => [
2550
- e("span", null, W(p(a).getLabel("share")), 1)
2550
+ e("span", null, P(p(a).getLabel("share")), 1)
2551
2551
  ]),
2552
2552
  _: 1
2553
2553
  }),
2554
- _(k, {
2554
+ _(w, {
2555
2555
  id: "share-box",
2556
2556
  width: "400",
2557
2557
  modelValue: n.value,
@@ -2567,9 +2567,9 @@ const cl = { class: "d-flex align-center" }, dl = { class: "d-block mr-1" }, vl
2567
2567
  icon: "mdi-close",
2568
2568
  onClick: h[1] || (h[1] = (A) => n.value = !1)
2569
2569
  }),
2570
- _(w, null, {
2570
+ _(C, null, {
2571
2571
  default: v(() => [
2572
- ae(W(p(a).getLabel("share")), 1)
2572
+ ae(P(p(a).getLabel("share")), 1)
2573
2573
  ]),
2574
2574
  _: 1
2575
2575
  }),
@@ -2580,7 +2580,7 @@ const cl = { class: "d-flex align-center" }, dl = { class: "d-block mr-1" }, vl
2580
2580
  _(c, { class: "mt-5" }, {
2581
2581
  default: v(() => [
2582
2582
  e("p", wl, [
2583
- _(C, { location: "top" }, {
2583
+ _(k, { location: "top" }, {
2584
2584
  activator: v(({ props: A }) => [
2585
2585
  _(g, Ee({
2586
2586
  depressed: "",
@@ -2590,11 +2590,11 @@ const cl = { class: "d-flex align-center" }, dl = { class: "d-block mr-1" }, vl
2590
2590
  }, A, { onClick: r }), null, 16)
2591
2591
  ]),
2592
2592
  default: v(() => [
2593
- e("span", null, W(p(a).getLabel("shareToFacebook")), 1)
2593
+ e("span", null, P(p(a).getLabel("shareToFacebook")), 1)
2594
2594
  ]),
2595
2595
  _: 1
2596
2596
  }),
2597
- _(C, { location: "top" }, {
2597
+ _(k, { location: "top" }, {
2598
2598
  activator: v(({ props: A }) => [
2599
2599
  _(g, Ee({
2600
2600
  depressed: "",
@@ -2604,11 +2604,11 @@ const cl = { class: "d-flex align-center" }, dl = { class: "d-block mr-1" }, vl
2604
2604
  }, A, { onClick: s }), null, 16)
2605
2605
  ]),
2606
2606
  default: v(() => [
2607
- e("span", null, W(p(a).getLabel("shareToLinkedin")), 1)
2607
+ e("span", null, P(p(a).getLabel("shareToLinkedin")), 1)
2608
2608
  ]),
2609
2609
  _: 1
2610
2610
  }),
2611
- _(C, { location: "top" }, {
2611
+ _(k, { location: "top" }, {
2612
2612
  activator: v(({ props: A }) => [
2613
2613
  _(g, Ee({
2614
2614
  depressed: "",
@@ -2618,11 +2618,11 @@ const cl = { class: "d-flex align-center" }, dl = { class: "d-block mr-1" }, vl
2618
2618
  }, A, { onClick: o }), null, 16)
2619
2619
  ]),
2620
2620
  default: v(() => [
2621
- e("span", null, W(p(a).getLabel("shareToTwitter")), 1)
2621
+ e("span", null, P(p(a).getLabel("shareToTwitter")), 1)
2622
2622
  ]),
2623
2623
  _: 1
2624
2624
  }),
2625
- _(C, { location: "top" }, {
2625
+ _(k, { location: "top" }, {
2626
2626
  activator: v(({ props: A }) => [
2627
2627
  _(g, Ee({
2628
2628
  depressed: "",
@@ -2634,11 +2634,11 @@ const cl = { class: "d-flex align-center" }, dl = { class: "d-block mr-1" }, vl
2634
2634
  }, A), null, 16, ["href"])
2635
2635
  ]),
2636
2636
  default: v(() => [
2637
- e("span", null, W(p(a).getLabel("shareViaEmail")), 1)
2637
+ e("span", null, P(p(a).getLabel("shareViaEmail")), 1)
2638
2638
  ]),
2639
2639
  _: 1
2640
2640
  }),
2641
- _(C, { location: "top" }, {
2641
+ _(k, { location: "top" }, {
2642
2642
  activator: v(({ props: A }) => [
2643
2643
  _(g, Ee({
2644
2644
  depressed: "",
@@ -2649,7 +2649,7 @@ const cl = { class: "d-flex align-center" }, dl = { class: "d-block mr-1" }, vl
2649
2649
  }, A), null, 16)
2650
2650
  ]),
2651
2651
  default: v(() => [
2652
- e("span", null, W(p(a).getLabel("copyLink")), 1)
2652
+ e("span", null, P(p(a).getLabel("copyLink")), 1)
2653
2653
  ]),
2654
2654
  _: 1
2655
2655
  }),
@@ -2667,7 +2667,7 @@ const cl = { class: "d-flex align-center" }, dl = { class: "d-block mr-1" }, vl
2667
2667
  ]);
2668
2668
  };
2669
2669
  }
2670
- }), Pt = /* @__PURE__ */ ne(kl, [["__scopeId", "data-v-bb7d0a99"]]), Cl = { class: "static-image-wrapper" }, Sl = /* @__PURE__ */ J({
2670
+ }), Wt = /* @__PURE__ */ ne(kl, [["__scopeId", "data-v-bb7d0a99"]]), Cl = { class: "static-image-wrapper" }, Sl = /* @__PURE__ */ J({
2671
2671
  __name: "VSingleImage",
2672
2672
  props: {
2673
2673
  image: {},
@@ -2685,7 +2685,7 @@ const cl = { class: "d-flex align-center" }, dl = { class: "d-block mr-1" }, vl
2685
2685
  }), Al = /* @__PURE__ */ ne(Sl, [["__scopeId", "data-v-31489804"]]), xl = {
2686
2686
  id: "btn-fullscreen",
2687
2687
  class: "btn-placeholder mr-2"
2688
- }, Wt = /* @__PURE__ */ J({
2688
+ }, Pt = /* @__PURE__ */ J({
2689
2689
  __name: "VFullScreenButton",
2690
2690
  props: {
2691
2691
  isFullScreen: { type: Boolean }
@@ -2888,13 +2888,13 @@ const El = {
2888
2888
  // websiteUrl,
2889
2889
  i18nConfig: h,
2890
2890
  showCarousel: g,
2891
- showTimeOfDay: C,
2892
- showCompass: w,
2891
+ showTimeOfDay: k,
2892
+ showCompass: C,
2893
2893
  showFullScreen: V,
2894
2894
  showSnapshot: S,
2895
2895
  showShare: c,
2896
2896
  showInteriorOptions: m,
2897
- showMiniMap: k,
2897
+ showMiniMap: w,
2898
2898
  showFloorLevel: A,
2899
2899
  defaultWaypointIndex: x,
2900
2900
  defaultViewMode: $,
@@ -2906,7 +2906,7 @@ const El = {
2906
2906
  dynamicMarkers: Y,
2907
2907
  version: Se,
2908
2908
  showVersion: ye
2909
- } = Ce(l), O = n, ie = y(!1), N = y(!1), se = y(!1), U = y(), M = y(), q = y(), Q = y(), z = y(), oe = y(0), Z = y(), re = y(), P = y(), pe = y(0), he = y(0), ve = y(0), be = y(!1), we = y(!1), Be = y(), ke = y(!1), ce = y(!1), Te = y({
2909
+ } = Ce(l), O = n, ie = y(!1), N = y(!1), se = y(!1), U = y(), M = y(), q = y(), Q = y(), z = y(), oe = y(0), Z = y(), re = y(), W = y(), pe = y(0), he = y(0), ve = y(0), be = y(!1), we = y(!1), Be = y(), ke = y(!1), ce = y(!1), Te = y({
2910
2910
  startTime: 0,
2911
2911
  startX: 0,
2912
2912
  startY: 0
@@ -2940,12 +2940,12 @@ const El = {
2940
2940
  let d = 0;
2941
2941
  if (M.value) {
2942
2942
  const I = M.value.cameras.map(
2943
- (We) => We.floorLevel
2943
+ (Pe) => Pe.floorLevel
2944
2944
  );
2945
2945
  let j = [...new Set(I)];
2946
2946
  j = j.sort();
2947
2947
  const fe = j.findIndex(
2948
- (We) => We === he.value
2948
+ (Pe) => Pe === he.value
2949
2949
  );
2950
2950
  fe !== -1 && (d = fe);
2951
2951
  }
@@ -2978,7 +2978,7 @@ const El = {
2978
2978
  if (Q.value && Q.value.storeys && Ye.value in Q.value.storeys)
2979
2979
  return Q.value.storeys[Ye.value];
2980
2980
  }), ee = D(() => M.value && M.value.timeInHours), ue = D(() => {
2981
- if (M.value && M.value.timeInHours && C.value)
2981
+ if (M.value && M.value.timeInHours && k.value)
2982
2982
  return wn(M.value.timeInHours);
2983
2983
  });
2984
2984
  nt(
@@ -3017,7 +3017,7 @@ const El = {
3017
3017
  ), H(ke, () => {
3018
3018
  if (ke.value) {
3019
3019
  ce.value = !1;
3020
- const d = Pe(P.value);
3020
+ const d = We(W.value);
3021
3021
  Be.value = d[0].timeSamples.find(
3022
3022
  (I) => I.timeInHours === d[0].defaultHour
3023
3023
  );
@@ -3057,9 +3057,9 @@ const El = {
3057
3057
  o.value
3058
3058
  ), q.value) {
3059
3059
  const I = x.value !== null ? x.value : 0;
3060
- oe.value = I, re.value = q.value.cameras[I].id, P.value = q.value.cameras[I].id;
3060
+ oe.value = I, re.value = q.value.cameras[I].id, W.value = q.value.cameras[I].id;
3061
3061
  }
3062
- k.value && (Q.value = await St(
3062
+ w.value && (Q.value = await St(
3063
3063
  Z.value,
3064
3064
  o.value
3065
3065
  ));
@@ -3187,7 +3187,7 @@ const El = {
3187
3187
  ke.value = !1, re.value = d;
3188
3188
  }
3189
3189
  function At(d) {
3190
- Z.value = d, on(), O("onInteriorUpdate", d), O("onCameraUpdate", P.value, M.value);
3190
+ Z.value = d, on(), O("onInteriorUpdate", d), O("onCameraUpdate", W.value, M.value);
3191
3191
  }
3192
3192
  async function on() {
3193
3193
  M.value = await kt(
@@ -3196,18 +3196,18 @@ const El = {
3196
3196
  ), q.value = await Ct(
3197
3197
  Z.value,
3198
3198
  o.value
3199
- ), k.value && (Q.value = await St(
3199
+ ), w.value && (Q.value = await St(
3200
3200
  Z.value,
3201
3201
  o.value
3202
3202
  ));
3203
3203
  }
3204
3204
  function an(d) {
3205
- P.value = d, P.value && (yt(P.value, !1), O("onCameraUpdate", P.value, M.value));
3205
+ W.value = d, W.value && (yt(W.value, !1), O("onCameraUpdate", W.value, M.value));
3206
3206
  }
3207
3207
  const He = D(() => (d) => {
3208
- const I = Pe(d);
3208
+ const I = We(d);
3209
3209
  return !I || !I[0] || !I[0].timeSamples ? !1 : I[0].timeSamples.length > 1;
3210
- }), Pe = (d) => {
3210
+ }), We = (d) => {
3211
3211
  const I = M.value.cameras.find((j) => j.id === d);
3212
3212
  return I == null ? void 0 : I.sunsimDayOfYear;
3213
3213
  };
@@ -3257,12 +3257,12 @@ const El = {
3257
3257
  be.value = !be.value;
3258
3258
  }
3259
3259
  async function Lt() {
3260
- const d = 180 / Math.PI, I = await z.value.takePhoto(), j = z.value.getRotationEuler(), fe = z.value.getCurrentCamera(), We = new Tt(I, fe), kn = [
3260
+ const d = 180 / Math.PI, I = await z.value.takePhoto(), j = z.value.getRotationEuler(), fe = z.value.getCurrentCamera(), Pe = new Tt(I, fe), kn = [
3261
3261
  j.x * -d,
3262
3262
  j.y * -d,
3263
3263
  j.z * d
3264
3264
  ];
3265
- return O("onSnapshot", We, kn), We;
3265
+ return O("onSnapshot", Pe, kn), Pe;
3266
3266
  }
3267
3267
  async function yn() {
3268
3268
  console.log("Here onVisuadoCreateButtonClicked");
@@ -3310,14 +3310,14 @@ const El = {
3310
3310
  }, [
3311
3311
  se.value ? (u(), E("div", Fl, "Error loading the player!!")) : F("", !0),
3312
3312
  e("div", Vl, [
3313
- !Fe.value.isActive && Q.value && P.value && B.value && Z.value && we.value ? (u(), T(Vt, {
3313
+ !Fe.value.isActive && Q.value && W.value && B.value && Z.value && we.value ? (u(), T(Vt, {
3314
3314
  key: 0,
3315
3315
  "cdn-file-resolver": p(r),
3316
3316
  "apartment-json": M.value,
3317
3317
  level: Ye.value,
3318
3318
  "minimap-json": Q.value,
3319
3319
  rotation: pe.value,
3320
- "current-camera": P.value,
3320
+ "current-camera": W.value,
3321
3321
  onGoToCamera: je,
3322
3322
  onClose: I[0] || (I[0] = (fe) => we.value = !1)
3323
3323
  }, null, 8, ["cdn-file-resolver", "apartment-json", "level", "minimap-json", "rotation", "current-camera"])) : F("", !0),
@@ -3394,7 +3394,7 @@ const El = {
3394
3394
  ]),
3395
3395
  "top-center": v(() => []),
3396
3396
  "top-right": v(() => [
3397
- M.value && p(w) ? tt((u(), E("div", Bl, [
3397
+ M.value && p(C) ? tt((u(), E("div", Bl, [
3398
3398
  _(Ao, { rotation: pe.value }, null, 8, ["rotation"])
3399
3399
  ], 512)), [
3400
3400
  [it, ce.value]
@@ -3402,13 +3402,13 @@ const El = {
3402
3402
  e("div", {
3403
3403
  onClick: I[4] || (I[4] = (fe) => we.value = !we.value)
3404
3404
  }, [
3405
- ce.value && M.value && ee.value && p(C) ? (u(), T(Fo, {
3405
+ ce.value && M.value && ee.value && p(k) ? (u(), T(Fo, {
3406
3406
  key: 0,
3407
3407
  hours: ue.value.hours,
3408
3408
  minutes: ue.value.minutes,
3409
3409
  class: "time-of-day",
3410
3410
  style: le({
3411
- cursor: Q.value && P.value && B.value ? "pointer" : "default"
3411
+ cursor: Q.value && W.value && B.value ? "pointer" : "default"
3412
3412
  })
3413
3413
  }, null, 8, ["hours", "minutes", "style"])) : F("", !0)
3414
3414
  ])
@@ -3432,13 +3432,13 @@ const El = {
3432
3432
  key: 0,
3433
3433
  onCloseTutorial: I[5] || (I[5] = (fe) => Le(fe))
3434
3434
  })) : F("", !0),
3435
- Fe.value.isActive && Q.value && P.value && B.value && we.value ? (u(), T(Vt, {
3435
+ Fe.value.isActive && Q.value && W.value && B.value && we.value ? (u(), T(Vt, {
3436
3436
  key: 1,
3437
3437
  "cdn-file-resolver": p(r),
3438
3438
  "apartment-json": M.value,
3439
3439
  "minimap-json": Q.value,
3440
3440
  rotation: pe.value,
3441
- "current-camera": P.value,
3441
+ "current-camera": W.value,
3442
3442
  level: Ye.value,
3443
3443
  onClose: I[6] || (I[6] = (fe) => we.value = !1),
3444
3444
  onGoToCamera: je
@@ -3459,7 +3459,7 @@ const El = {
3459
3459
  })
3460
3460
  ]),
3461
3461
  "bottom-left": v(() => [
3462
- p(V) ? (u(), T(Wt, {
3462
+ p(V) ? (u(), T(Pt, {
3463
3463
  key: 0,
3464
3464
  "is-full-screen": Fe.value.isActive,
3465
3465
  class: "btn-fullscreen",
@@ -3481,7 +3481,7 @@ const El = {
3481
3481
  }, null, 8, ["show-static-image"])) : F("", !0)
3482
3482
  ]),
3483
3483
  ce.value && p(c) && !Fe.value.isActive ? (u(), E("div", $l, [
3484
- _(Pt)
3484
+ _(Wt)
3485
3485
  ])) : F("", !0),
3486
3486
  ce.value && d.showVisuadoCreateButton ? (u(), E("div", Rl, [
3487
3487
  _(Ml, { onOnSnapshot: yn })
@@ -3496,7 +3496,7 @@ const El = {
3496
3496
  "mb-2": !G.value
3497
3497
  }])
3498
3498
  }, [
3499
- !Oe.value && He.value(P.value) ? (u(), T(fl, {
3499
+ !Oe.value && He.value(W.value) ? (u(), T(fl, {
3500
3500
  key: 0,
3501
3501
  class: "ml-2",
3502
3502
  displaySunsim: ke.value,
@@ -3504,10 +3504,10 @@ const El = {
3504
3504
  onToggleSunStudy: I[7] || (I[7] = (fe) => ke.value = !ke.value)
3505
3505
  }, null, 8, ["displaySunsim", "showUI"])) : F("", !0)
3506
3506
  ], 2),
3507
- !G.value && !Oe.value && re.value && ke.value && He.value(P.value) && Pe(P.value)[0] && Be.value ? (u(), T(Dt, {
3507
+ !G.value && !Oe.value && re.value && ke.value && He.value(W.value) && We(W.value)[0] && Be.value ? (u(), T(Dt, {
3508
3508
  key: 0,
3509
3509
  class: "sunsim-slider-desktop",
3510
- "current-day": He.value(P.value) ? Pe(P.value)[0] : void 0,
3510
+ "current-day": He.value(W.value) ? We(W.value)[0] : void 0,
3511
3511
  "current-time": Be.value,
3512
3512
  onOnTimeChange: xt,
3513
3513
  onToggleSunStudy: I[8] || (I[8] = (fe) => ke.value = !ke.value)
@@ -3574,22 +3574,22 @@ const El = {
3574
3574
  _: 1
3575
3575
  }),
3576
3576
  G.value ? (u(), E("div", Hl, [
3577
- !Oe.value && re.value && ke.value && He.value(P.value) && Pe(P.value)[0] && Be.value ? (u(), T(Dt, {
3577
+ !Oe.value && re.value && ke.value && He.value(W.value) && We(W.value)[0] && Be.value ? (u(), T(Dt, {
3578
3578
  key: 0,
3579
3579
  class: "mt-1",
3580
- "current-day": He.value(P.value) ? Pe(P.value)[0] : void 0,
3580
+ "current-day": He.value(W.value) ? We(W.value)[0] : void 0,
3581
3581
  "current-time": Be.value,
3582
3582
  onOnTimeChange: xt,
3583
3583
  onToggleSunStudy: I[11] || (I[11] = (fe) => ke.value = !ke.value)
3584
3584
  }, null, 8, ["current-day", "current-time"])) : F("", !0)
3585
3585
  ])) : F("", !0)
3586
3586
  ], 2)) : F("", !0),
3587
- p(Se) && p(ye) ? (u(), E("div", Ul, " version: " + W(p(Se)), 1)) : F("", !0)
3587
+ p(Se) && p(ye) ? (u(), E("div", Ul, " version: " + P(p(Se)), 1)) : F("", !0)
3588
3588
  ])
3589
3589
  ], 2);
3590
3590
  };
3591
3591
  }
3592
- }), jl = /* @__PURE__ */ ne(zl, [["__scopeId", "data-v-3cc488e5"]]), Pl = { id: "player-wrapper" }, Wl = { id: "player-sizer" }, Nl = {
3592
+ }), jl = /* @__PURE__ */ ne(zl, [["__scopeId", "data-v-3cc488e5"]]), Wl = { id: "player-wrapper" }, Pl = { id: "player-sizer" }, Nl = {
3593
3593
  class: "player-control",
3594
3594
  id: "controls-top-left"
3595
3595
  }, Ql = {
@@ -3623,8 +3623,8 @@ const El = {
3623
3623
  },
3624
3624
  emits: ["newSizeCallback"],
3625
3625
  setup(t, { emit: a }) {
3626
- return (n, l) => (u(), E("div", Pl, [
3627
- e("div", Wl, [
3626
+ return (n, l) => (u(), E("div", Wl, [
3627
+ e("div", Pl, [
3628
3628
  K(n.$slots, "slideshow-image", {}, void 0, !0),
3629
3629
  e("div", Nl, [
3630
3630
  K(n.$slots, "top-left", {}, void 0, !0)
@@ -3678,8 +3678,8 @@ const El = {
3678
3678
  const n = y(0), l = y(
3679
3679
  new Nt(document, "player-wrapper")
3680
3680
  ), r = D(() => a.images.map(
3681
- (g, C) => ({
3682
- id: `image-${C}`,
3681
+ (g, k) => ({
3682
+ id: `image-${k}`,
3683
3683
  thumbnailUrl: g
3684
3684
  })
3685
3685
  )), o = D(() => r.value[n.value]);
@@ -3697,14 +3697,14 @@ const El = {
3697
3697
  let g = n.value - 1;
3698
3698
  g < 0 && (g = r.value.length - 1), n.value = g;
3699
3699
  }
3700
- function h(g, C = !0) {
3701
- let w = r.value.findIndex(
3700
+ function h(g, k = !0) {
3701
+ let C = r.value.findIndex(
3702
3702
  (V) => V.id === g
3703
3703
  );
3704
- w != -1 && (n.value = w);
3704
+ C != -1 && (n.value = C);
3705
3705
  }
3706
- return (g, C) => {
3707
- const w = L("v-img"), V = L("v-btn");
3706
+ return (g, k) => {
3707
+ const C = L("v-img"), V = L("v-btn");
3708
3708
  return u(), E("div", os, [
3709
3709
  e("div", as, [
3710
3710
  e("div", null, [
@@ -3713,7 +3713,7 @@ const El = {
3713
3713
  }, {
3714
3714
  "slideshow-image": v(() => [
3715
3715
  e("div", ls, [
3716
- _(w, {
3716
+ _(C, {
3717
3717
  src: o.value.thumbnailUrl
3718
3718
  }, null, 8, ["src"])
3719
3719
  ])
@@ -3751,14 +3751,14 @@ const El = {
3751
3751
  })
3752
3752
  ]),
3753
3753
  "bottom-left": v(() => [
3754
- g.showFullScreen ? (u(), T(Wt, {
3754
+ g.showFullScreen ? (u(), T(Pt, {
3755
3755
  key: 0,
3756
3756
  "is-full-screen": l.value.isActive,
3757
3757
  class: "btn-fullscreen",
3758
3758
  onToggleFullscreen: s
3759
3759
  }, null, 8, ["is-full-screen"])) : F("", !0),
3760
3760
  g.showShare ? (u(), E("div", ss, [
3761
- _(Pt)
3761
+ _(Wt)
3762
3762
  ])) : F("", !0)
3763
3763
  ]),
3764
3764
  "bottom-center": v(() => [
@@ -3803,24 +3803,24 @@ const El = {
3803
3803
  },
3804
3804
  emits: ["apartmentJsonLoaded", "minimapJsonLoaded", "cameraSet"],
3805
3805
  setup(t, { emit: a }) {
3806
- const l = Ce(t), r = a, o = y(), s = y(), i = y(), f = y(0), h = y(), g = y(1), C = D(() => l.currentCamera.value ? l.currentCamera.value : o.value ? o.value.cameras[0].id : null), w = D(() => ({
3806
+ const l = Ce(t), r = a, o = y(), s = y(), i = y(), f = y(0), h = y(), g = y(1), k = D(() => l.currentCamera.value ? l.currentCamera.value : o.value ? o.value.cameras[0].id : null), C = D(() => ({
3807
3807
  transformOrigin: "top left",
3808
3808
  transform: `scale(${g.value})`
3809
3809
  }));
3810
3810
  H(h, () => {
3811
- h.value && new ResizeObserver(([k]) => {
3812
- const A = k.target.parentElement, x = A.parentElement;
3813
- g.value = x.clientWidth / 512, A.style.height = `${k.contentRect.height * g.value}px`;
3811
+ h.value && new ResizeObserver(([w]) => {
3812
+ const A = w.target.parentElement, x = A.parentElement;
3813
+ g.value = x.clientWidth / 512, A.style.height = `${w.contentRect.height * g.value}px`;
3814
3814
  }).observe(h.value);
3815
- }), H(C, () => {
3816
- r("cameraSet", C.value);
3815
+ }), H(k, () => {
3816
+ r("cameraSet", k.value);
3817
3817
  });
3818
3818
  const V = D(() => {
3819
- const k = _e(l.cdnFileResolver.value, "").replace(
3819
+ const w = _e(l.cdnFileResolver.value, "").replace(
3820
3820
  `/${o.value.type}/${o.value.id}`,
3821
3821
  ""
3822
3822
  );
3823
- return (A) => `${k}${A}`;
3823
+ return (A) => `${w}${A}`;
3824
3824
  }), S = D(() => {
3825
3825
  var m;
3826
3826
  return (m = s.value) == null ? void 0 : m.storeys[l.level.value || 0];
@@ -3848,7 +3848,7 @@ const El = {
3848
3848
  function c(m) {
3849
3849
  i.value = m;
3850
3850
  }
3851
- return (m, k) => {
3851
+ return (m, w) => {
3852
3852
  const A = L("v-skeleton-loader");
3853
3853
  return u(), T(A, {
3854
3854
  loading: !o.value || !s.value
@@ -3856,7 +3856,7 @@ const El = {
3856
3856
  default: v(() => [
3857
3857
  e("div", null, [
3858
3858
  e("div", {
3859
- style: le({ ...w.value, position: "relative" }),
3859
+ style: le({ ...C.value, position: "relative" }),
3860
3860
  ref_key: "fitContainer",
3861
3861
  ref: h
3862
3862
  }, [
@@ -3871,7 +3871,7 @@ const El = {
3871
3871
  "all-cameras": o.value.cameras,
3872
3872
  "background-image": i.value,
3873
3873
  rotation: m.rotation || 0,
3874
- "current-camera": C.value,
3874
+ "current-camera": k.value,
3875
3875
  storey: S.value,
3876
3876
  containerWidth: 512,
3877
3877
  containerHeight: 384,
@@ -3964,9 +3964,9 @@ const El = {
3964
3964
  });
3965
3965
  });
3966
3966
  const h = D(() => _e(l.value, n.value.defaultFilename));
3967
- return (g, C) => p(n).sunsimDayOfYear ? (u(!0), E(xe, { key: 0 }, Me(p(n).sunsimDayOfYear, (w, V) => (u(), T(ms, {
3967
+ return (g, k) => p(n).sunsimDayOfYear ? (u(!0), E(xe, { key: 0 }, Me(p(n).sunsimDayOfYear, (C, V) => (u(), T(ms, {
3968
3968
  key: V,
3969
- "day-data": w,
3969
+ "day-data": C,
3970
3970
  "cdn-file-resolver": p(l),
3971
3971
  "current-day": g.currentDay,
3972
3972
  "current-time": p(o)
@@ -4037,17 +4037,17 @@ const bs = {
4037
4037
  )
4038
4038
  );
4039
4039
  }), (h, g) => {
4040
- const C = L("v-btn"), w = L("v-field"), V = L("v-list-item-title"), S = L("v-list-item"), c = L("v-list"), m = L("v-menu");
4040
+ const k = L("v-btn"), C = L("v-field"), V = L("v-list-item-title"), S = L("v-list-item"), c = L("v-list"), m = L("v-menu");
4041
4041
  return p(r).sunsimDayOfYear && p(r).sunsimDayOfYear.length > 0 ? (u(), E("div", bs, [
4042
4042
  _(m, null, {
4043
- activator: v(({ props: k }) => [
4044
- _(w, {
4043
+ activator: v(({ props: w }) => [
4044
+ _(C, {
4045
4045
  variant: "solo-filled",
4046
4046
  rounded: "",
4047
4047
  flat: ""
4048
4048
  }, {
4049
4049
  default: v(() => [
4050
- _(C, Ee({
4050
+ _(k, Ee({
4051
4051
  variant: "text",
4052
4052
  rounded: "",
4053
4053
  flat: "",
@@ -4056,9 +4056,9 @@ const bs = {
4056
4056
  "append-icon": p(r).sunsimDayOfYear.length > 1 ? "mdi-menu-down" : void 0,
4057
4057
  disabled: p(s),
4058
4058
  size: p(l) ? "small" : void 0
4059
- }, k), {
4059
+ }, w), {
4060
4060
  default: v(() => [
4061
- ae(W(p(Ot)(f.value)), 1)
4061
+ ae(P(p(Ot)(f.value)), 1)
4062
4062
  ]),
4063
4063
  _: 2
4064
4064
  }, 1040, ["readonly", "append-icon", "disabled", "size"])
@@ -4069,15 +4069,15 @@ const bs = {
4069
4069
  default: v(() => [
4070
4070
  _(c, null, {
4071
4071
  default: v(() => [
4072
- (u(!0), E(xe, null, Me(p(r).sunsimDayOfYear, (k, A) => (u(), T(S, {
4072
+ (u(!0), E(xe, null, Me(p(r).sunsimDayOfYear, (w, A) => (u(), T(S, {
4073
4073
  key: A,
4074
4074
  value: A,
4075
- onClick: (x) => f.value = k.dayOfYear
4075
+ onClick: (x) => f.value = w.dayOfYear
4076
4076
  }, {
4077
4077
  default: v(() => [
4078
4078
  _(V, null, {
4079
4079
  default: v(() => [
4080
- ae(W(p(Ot)(k.dayOfYear)), 1)
4080
+ ae(P(p(Ot)(w.dayOfYear)), 1)
4081
4081
  ]),
4082
4082
  _: 2
4083
4083
  }, 1024)
@@ -4116,14 +4116,14 @@ const bs = {
4116
4116
  currentCamera: o,
4117
4117
  cdnFileResolver: s,
4118
4118
  disabled: i
4119
- } = Ce(n), f = y(o.value), h = y(), g = y(), C = y(!1), w = a;
4119
+ } = Ce(n), f = y(o.value), h = y(), g = y(), k = y(!1), C = a;
4120
4120
  H(
4121
4121
  [h, g],
4122
4122
  () => {
4123
4123
  if (h.value && g.value) {
4124
4124
  const S = new ResizeObserver(([c, m]) => {
4125
- var k, A;
4126
- C.value = ((k = m == null ? void 0 : m.contentRect) == null ? void 0 : k.width) > ((A = c == null ? void 0 : c.contentRect) == null ? void 0 : A.width);
4125
+ var w, A;
4126
+ k.value = ((w = m == null ? void 0 : m.contentRect) == null ? void 0 : w.width) > ((A = c == null ? void 0 : c.contentRect) == null ? void 0 : A.width);
4127
4127
  });
4128
4128
  S.observe(h.value), S.observe(g.value);
4129
4129
  }
@@ -4136,7 +4136,7 @@ const bs = {
4136
4136
  },
4137
4137
  { immediate: !0 }
4138
4138
  ), H(f, () => {
4139
- w(
4139
+ C(
4140
4140
  "onCameraChange",
4141
4141
  r.value.find((S) => S === f.value)
4142
4142
  );
@@ -4145,7 +4145,7 @@ const bs = {
4145
4145
  i.value || (f.value = S);
4146
4146
  }
4147
4147
  return (S, c) => {
4148
- const m = L("v-btn"), k = L("v-icon");
4148
+ const m = L("v-btn"), w = L("v-icon");
4149
4149
  return u(), E("div", {
4150
4150
  ref_key: "parent",
4151
4151
  ref: h,
@@ -4156,7 +4156,7 @@ const bs = {
4156
4156
  enabled: !p(i)
4157
4157
  })
4158
4158
  }, [
4159
- C.value ? (u(), T(m, {
4159
+ k.value ? (u(), T(m, {
4160
4160
  key: 0,
4161
4161
  style: { left: "0" },
4162
4162
  class: "thumbnail-nav-button",
@@ -4172,8 +4172,8 @@ const bs = {
4172
4172
  ref: g,
4173
4173
  class: "still-camera-thumbnails-wrapper d-flex justify-center",
4174
4174
  style: le({
4175
- paddingLeft: C.value ? "28px" : 0,
4176
- paddingRight: C.value ? "28px" : 0
4175
+ paddingLeft: k.value ? "28px" : 0,
4176
+ paddingRight: k.value ? "28px" : 0
4177
4177
  })
4178
4178
  }, [
4179
4179
  (u(!0), E(xe, null, Me(p(r), (A, x) => (u(), E("div", {
@@ -4193,9 +4193,9 @@ const bs = {
4193
4193
  )})`
4194
4194
  })
4195
4195
  }, null, 4),
4196
- A.cameraName ? (u(), E("div", Ss, W(A.cameraName), 1)) : F("", !0),
4196
+ A.cameraName ? (u(), E("div", Ss, P(A.cameraName), 1)) : F("", !0),
4197
4197
  A.sunsimDayOfYear && A.sunsimDayOfYear.length > 1 ? (u(), E("div", As, [
4198
- _(k, {
4198
+ _(w, {
4199
4199
  size: "x-small",
4200
4200
  color: "warning",
4201
4201
  style: { opacity: "0.6" }
@@ -4208,7 +4208,7 @@ const bs = {
4208
4208
  ])) : F("", !0)
4209
4209
  ], 10, Cs))), 128))
4210
4210
  ], 4),
4211
- C.value ? (u(), T(m, {
4211
+ k.value ? (u(), T(m, {
4212
4212
  key: 1,
4213
4213
  style: { right: "0" },
4214
4214
  class: "thumbnail-nav-button",
@@ -4243,7 +4243,7 @@ const bs = {
4243
4243
  )
4244
4244
  );
4245
4245
  }), (h, g) => {
4246
- const C = L("v-icon"), w = L("v-slider"), V = L("v-field");
4246
+ const k = L("v-icon"), C = L("v-slider"), V = L("v-field");
4247
4247
  return u(), E("div", {
4248
4248
  class: me({ "d-inline-block": !0, mobile: p(l) }),
4249
4249
  style: le({
@@ -4269,7 +4269,7 @@ const bs = {
4269
4269
  flat: ""
4270
4270
  }, {
4271
4271
  default: v(() => [
4272
- p(r).timeSamples.length > 1 ? (u(), T(w, {
4272
+ p(r).timeSamples.length > 1 ? (u(), T(C, {
4273
4273
  key: 0,
4274
4274
  class: "pa-2 pr-2",
4275
4275
  modelValue: f.value,
@@ -4284,7 +4284,7 @@ const bs = {
4284
4284
  "hide-details": ""
4285
4285
  }, {
4286
4286
  prepend: v(() => [
4287
- _(C, {
4287
+ _(k, {
4288
4288
  style: { "vertical-align": "baseline", "font-size": "20px" },
4289
4289
  class: "mr-2 icon",
4290
4290
  color: "warning"
@@ -4294,11 +4294,11 @@ const bs = {
4294
4294
  ]),
4295
4295
  _: 1
4296
4296
  }),
4297
- e("span", Ls, W(p(ct)(f.value)), 1)
4297
+ e("span", Ls, P(p(ct)(f.value)), 1)
4298
4298
  ]),
4299
4299
  _: 1
4300
4300
  }, 8, ["modelValue", "min", "max", "step", "disabled"])) : (u(), E(xe, { key: 1 }, [
4301
- _(C, {
4301
+ _(k, {
4302
4302
  style: { "vertical-align": "baseline", "font-size": "20px", "margin-top": "-1px", opacity: "0.6" },
4303
4303
  class: "mr-2 icon",
4304
4304
  color: "warning"
@@ -4308,7 +4308,7 @@ const bs = {
4308
4308
  ]),
4309
4309
  _: 1
4310
4310
  }),
4311
- e("span", Es, W(p(ct)(f.value)), 1)
4311
+ e("span", Es, P(p(ct)(f.value)), 1)
4312
4312
  ], 64))
4313
4313
  ]),
4314
4314
  _: 1
@@ -4338,7 +4338,7 @@ const bs = {
4338
4338
  size: p(l) ? "x-small" : "small",
4339
4339
  flat: "",
4340
4340
  icon: "mdi-plus",
4341
- onClick: h[0] || (h[0] = (C) => i("onZoomIn")),
4341
+ onClick: h[0] || (h[0] = (k) => i("onZoomIn")),
4342
4342
  style: { "border-bottom-left-radius": "0", "border-bottom-right-radius": "0" }
4343
4343
  }, null, 8, ["disabled", "size"]),
4344
4344
  Ds,
@@ -4347,7 +4347,7 @@ const bs = {
4347
4347
  size: p(l) ? "x-small" : "small",
4348
4348
  flat: "",
4349
4349
  icon: "mdi-minus",
4350
- onClick: h[1] || (h[1] = (C) => i("onZoomOut")),
4350
+ onClick: h[1] || (h[1] = (k) => i("onZoomOut")),
4351
4351
  style: { "border-top-left-radius": "0", "border-top-right-radius": "0" }
4352
4352
  }, null, 8, ["disabled", "size"])
4353
4353
  ]);
@@ -4408,13 +4408,13 @@ const Ts = ["innerHTML"], Os = /* @__PURE__ */ J({
4408
4408
  },
4409
4409
  emits: ["onClick", "onHoverOver", "onHoverOut", "updateSvgContainer", "onError", "onBoundingBoxesUpdate"],
4410
4410
  setup(t, { emit: a }) {
4411
- const n = t, { cdnFileResolver: l, colorCallback: r, currentCamera: o, selectedId: s } = Ce(n), i = a, f = y(!0), h = y({}), g = y(), C = Ln({}), w = D(() => _e(
4411
+ const n = t, { cdnFileResolver: l, colorCallback: r, currentCamera: o, selectedId: s } = Ce(n), i = a, f = y(!0), h = y({}), g = y(), k = Ln({}), C = D(() => _e(
4412
4412
  l.value,
4413
4413
  o.value.overlayFilename
4414
4414
  ));
4415
4415
  Ft(() => {
4416
- for (const c in C) {
4417
- const { element: m, state: k } = C[c], { r: A, g: x, b: $, a: X, s: R } = r.value(c, k) || {
4416
+ for (const c in k) {
4417
+ const { element: m, state: w } = k[c], { r: A, g: x, b: $, a: X, s: R } = r.value(c, w) || {
4418
4418
  r: 0,
4419
4419
  g: 0,
4420
4420
  b: 0,
@@ -4424,11 +4424,11 @@ const Ts = ["innerHTML"], Os = /* @__PURE__ */ J({
4424
4424
  m.style.fill = `rgba(${A}, ${x}, ${$}, ${X / 255})`, m.style.stroke = `rgb(${A}, ${x}, ${$})`, m.style.strokeWidth = R.toString(), m.style.cursor = "pointer";
4425
4425
  }
4426
4426
  }), H(s, () => {
4427
- for (const c in C)
4428
- C[c].state === "selected" && c !== s.value ? C[c].state = "idle" : C[c].state !== "selected" && c === s.value && (C[c].state = "selected");
4427
+ for (const c in k)
4428
+ k[c].state === "selected" && c !== s.value ? k[c].state = "idle" : k[c].state !== "selected" && c === s.value && (k[c].state = "selected");
4429
4429
  }), Ft(async () => {
4430
4430
  try {
4431
- f.value = !1, h.value[w.value] || (h.value[w.value] = await Qe.loadText(w.value)), S();
4431
+ f.value = !1, h.value[C.value] || (h.value[C.value] = await Qe.loadText(C.value)), S();
4432
4432
  } catch (c) {
4433
4433
  i("onError", c);
4434
4434
  } finally {
@@ -4446,10 +4446,10 @@ const Ts = ["innerHTML"], Os = /* @__PURE__ */ J({
4446
4446
  const c = (m = g.value) == null ? void 0 : m.firstChild;
4447
4447
  if (c) {
4448
4448
  if (!c.hasAttribute("viewBox")) {
4449
- const k = `0 0 ${c.getAttribute(
4449
+ const w = `0 0 ${c.getAttribute(
4450
4450
  "width"
4451
4451
  )} ${c.getAttribute("height")}`;
4452
- c.setAttribute("viewBox", k);
4452
+ c.setAttribute("viewBox", w);
4453
4453
  }
4454
4454
  c.setAttribute(
4455
4455
  "width",
@@ -4474,8 +4474,8 @@ const Ts = ["innerHTML"], Os = /* @__PURE__ */ J({
4474
4474
  const c = (m = g.value) == null ? void 0 : m.firstChild;
4475
4475
  if (c) {
4476
4476
  i("updateSvgContainer", c), V();
4477
- let k, A = "data-structure-id";
4478
- k = c.querySelectorAll(`[${A}]`), k.length === 0 && (A = "data-apartment-id", k = c.querySelectorAll(`[${A}]`), k.length === 0 && (A = "data-building-id", k = c.querySelectorAll(`[${A}]`))), k.forEach((x) => {
4477
+ let w, A = "data-structure-id";
4478
+ w = c.querySelectorAll(`[${A}]`), w.length === 0 && (A = "data-apartment-id", w = c.querySelectorAll(`[${A}]`), w.length === 0 && (A = "data-building-id", w = c.querySelectorAll(`[${A}]`))), w.forEach((x) => {
4479
4479
  const $ = x.cloneNode(
4480
4480
  !0
4481
4481
  );
@@ -4483,20 +4483,20 @@ const Ts = ["innerHTML"], Os = /* @__PURE__ */ J({
4483
4483
  R.style.stroke = "inherit", R.style.fill = "inherit";
4484
4484
  });
4485
4485
  const X = $.getAttribute(A);
4486
- C[X] = {
4486
+ k[X] = {
4487
4487
  element: $,
4488
4488
  state: s.value === X ? "selected" : "idle",
4489
4489
  boundingBox: $.getBoundingClientRect().toJSON()
4490
4490
  }, n.activeStructureIds && !n.activeStructureIds.includes(X) && ($.style.display = "none"), $.addEventListener("mouseover", () => {
4491
- C[X].state === "idle" && (C[X].state = "hover"), i("onHoverOver", X);
4491
+ k[X].state === "idle" && (k[X].state = "hover"), i("onHoverOver", X);
4492
4492
  }), $.addEventListener("mouseout", () => {
4493
- C[X].state === "hover" && (C[X].state = "idle"), i("onHoverOut", X);
4493
+ k[X].state === "hover" && (k[X].state = "idle"), i("onHoverOut", X);
4494
4494
  }), $.addEventListener("click", () => {
4495
4495
  i("onClick", X);
4496
4496
  });
4497
4497
  }), i(
4498
4498
  "onBoundingBoxesUpdate",
4499
- Object.entries(C).map(([x, $]) => ({
4499
+ Object.entries(k).map(([x, $]) => ({
4500
4500
  id: x,
4501
4501
  boundingBox: $.boundingBox
4502
4502
  }))
@@ -4513,7 +4513,7 @@ const Ts = ["innerHTML"], Os = /* @__PURE__ */ J({
4513
4513
  visibility: f.value ? "visible" : "hidden"
4514
4514
  }, { "z-index": "5" }]),
4515
4515
  class: "w-100 h-100 position-absolute top-left structure-chooser-overlay-svg",
4516
- innerHTML: h.value[w.value]
4516
+ innerHTML: h.value[C.value]
4517
4517
  }, null, 12, Ts)
4518
4518
  ]),
4519
4519
  _: 1
@@ -4580,7 +4580,7 @@ function Ne(t) {
4580
4580
  function js(t) {
4581
4581
  return t ? "version" in t : !1;
4582
4582
  }
4583
- function Ps(t) {
4583
+ function Ws(t) {
4584
4584
  if (!t)
4585
4585
  return !1;
4586
4586
  const a = [
@@ -4596,7 +4596,7 @@ function Ps(t) {
4596
4596
  return !1;
4597
4597
  return !0;
4598
4598
  }
4599
- function Ws(t) {
4599
+ function Ps(t) {
4600
4600
  var a, n, l, r;
4601
4601
  if (Rs(t))
4602
4602
  return t;
@@ -4656,7 +4656,7 @@ function Ws(t) {
4656
4656
  }
4657
4657
  )
4658
4658
  };
4659
- } else if (Ps(t)) {
4659
+ } else if (Ws(t)) {
4660
4660
  if (!t.days && !t.timeSamples)
4661
4661
  throw new Error(
4662
4662
  "cannot convert BuildingChooserDataLegacy to StructureChooser: 'days' and 'timeSamples' are empty"
@@ -4780,8 +4780,8 @@ function Ws(t) {
4780
4780
  h = o[f].filename, g = {
4781
4781
  cameraName: `Camera ${i + 1}`,
4782
4782
  cameraPosition: void 0,
4783
- cameraRotation: t.sceneCameras && (l = t.sceneCameras.find((C) => C.scene === i)) != null && l.cameraRotation ? $t(
4784
- (r = t.sceneCameras.find((C) => C.scene === i)) == null ? void 0 : r.cameraRotation
4783
+ cameraRotation: t.sceneCameras && (l = t.sceneCameras.find((k) => k.scene === i)) != null && l.cameraRotation ? $t(
4784
+ (r = t.sceneCameras.find((k) => k.scene === i)) == null ? void 0 : r.cameraRotation
4785
4785
  ) : void 0,
4786
4786
  cameraFov: 0,
4787
4787
  overlayFilename: `/scenedata${s[i]}V5Overlay.svg`,
@@ -4870,10 +4870,10 @@ const Ns = {
4870
4870
  customOverlayContent: f,
4871
4871
  selectedId: h,
4872
4872
  defaultCamera: g,
4873
- defaultDay: C,
4874
- defaultTime: w,
4873
+ defaultDay: k,
4874
+ defaultTime: C,
4875
4875
  mobileBreakpoint: V
4876
- } = Ce(l), S = n, c = y(), m = y(), k = y(), A = y(null), x = y(4), $ = y(), X = y(!1), R = y(!1), te = y(), de = D(() => te.value.isHoverEnabled), Y = y({ x: 0, y: 0, width: 0, height: 0 }), Se = y(), ye = y(), O = y(), ie = y(!1), N = y(1), se = y(0), U = y([]), M = y(), q = y({
4876
+ } = Ce(l), S = n, c = y(), m = y(), w = y(), A = y(null), x = y(4), $ = y(), X = y(!1), R = y(!1), te = y(), de = D(() => te.value.isHoverEnabled), Y = y({ x: 0, y: 0, width: 0, height: 0 }), Se = y(), ye = y(), O = y(), ie = y(!1), N = y(1), se = y(0), U = y([]), M = y(), q = y({
4877
4877
  current: 100,
4878
4878
  min: 100,
4879
4879
  max: 1e3
@@ -4892,11 +4892,11 @@ const Ns = {
4892
4892
  });
4893
4893
  }), a({
4894
4894
  getState: () => ({
4895
- currentCameraIndex: c.value ? P.value.findIndex((b) => b === c.value) : null,
4895
+ currentCameraIndex: c.value ? W.value.findIndex((b) => b === c.value) : null,
4896
4896
  currentDayIndex: m.value ? c.value.sunsimDayOfYear.findIndex(
4897
4897
  (b) => b === m.value
4898
4898
  ) : null,
4899
- currentTimeIndex: k.value ? m.value.timeSamples.findIndex((b) => b === k.value) : null,
4899
+ currentTimeIndex: w.value ? m.value.timeSamples.findIndex((b) => b === w.value) : null,
4900
4900
  currentTransitionIndex: A.value ? pe.value.findIndex(
4901
4901
  (b) => b === A.value
4902
4902
  ) : null,
@@ -4909,7 +4909,7 @@ const Ns = {
4909
4909
  currentTransitionIndex: ue,
4910
4910
  currentScene: G
4911
4911
  }) => {
4912
- typeof b == "number" && (c.value = P.value[b]), typeof B == "number" && (m.value = c.value.sunsimDayOfYear[B]), typeof ee == "number" && (k.value = m.value.timeSamples[ee]), typeof ue == "number" && (A.value = pe.value[ue]), typeof G == "number" && (x.value = G);
4912
+ typeof b == "number" && (c.value = W.value[b]), typeof B == "number" && (m.value = c.value.sunsimDayOfYear[B]), typeof ee == "number" && (w.value = m.value.timeSamples[ee]), typeof ue == "number" && (A.value = pe.value[ue]), typeof G == "number" && (x.value = G);
4913
4913
  },
4914
4914
  resolveCoordinates: (b, B) => z.value ? z.value(b, B) : { x: 0, y: 0 }
4915
4915
  }), Re(() => {
@@ -4932,7 +4932,7 @@ const Ns = {
4932
4932
  r,
4933
4933
  (b) => {
4934
4934
  try {
4935
- Q.value = !1, O.value = Ws(b);
4935
+ Q.value = !1, O.value = Ps(b);
4936
4936
  } catch (B) {
4937
4937
  Q.value = !0, S("onError", B);
4938
4938
  }
@@ -4961,7 +4961,7 @@ const Ns = {
4961
4961
  }).observe(ye.value);
4962
4962
  }
4963
4963
  );
4964
- const P = D(
4964
+ const W = D(
4965
4965
  () => O.value ? O.value.cameras.filter(Ys) : []
4966
4966
  ), pe = D(
4967
4967
  () => O.value ? O.value.cameras.filter(bt) : []
@@ -4975,27 +4975,27 @@ const Ns = {
4975
4975
  ), H(
4976
4976
  [O, o, g],
4977
4977
  async () => {
4978
- o.value && P.value.length > 0 && (g.value ? c.value = P.value.find(
4978
+ o.value && W.value.length > 0 && (g.value ? c.value = W.value.find(
4979
4979
  (b) => b.cameraName === g.value
4980
- ) || P.value[0] : c.value = P.value[0], x.value = O.value.cameras.findIndex(
4980
+ ) || W.value[0] : c.value = W.value[0], x.value = O.value.cameras.findIndex(
4981
4981
  (b) => b === c.value
4982
4982
  ), x.value = Math.max(0, x.value));
4983
4983
  },
4984
4984
  { immediate: !0 }
4985
4985
  ), H(
4986
- [O, o, C],
4986
+ [O, o, k],
4987
4987
  () => {
4988
- O.value && o.value && c.value && c.value.sunsimDayOfYear && c.value.sunsimDayOfYear.length > 0 && (C.value ? m.value = c.value.sunsimDayOfYear.find(
4989
- (b) => b.dayOfYear === C.value
4988
+ O.value && o.value && c.value && c.value.sunsimDayOfYear && c.value.sunsimDayOfYear.length > 0 && (k.value ? m.value = c.value.sunsimDayOfYear.find(
4989
+ (b) => b.dayOfYear === k.value
4990
4990
  ) || c.value.sunsimDayOfYear[0] : m.value = c.value.sunsimDayOfYear[0]);
4991
4991
  },
4992
4992
  { immediate: !0 }
4993
4993
  ), H(
4994
- [O, o, w],
4994
+ [O, o, C],
4995
4995
  () => {
4996
- O.value && o.value && m.value && m.value.timeSamples && m.value.timeSamples.length > 0 && (w.value ? k.value = m.value.timeSamples.find(
4997
- (b) => b.timeInHours === w.value
4998
- ) || m.value.timeSamples[0] : k.value = m.value.timeSamples.find(
4996
+ O.value && o.value && m.value && m.value.timeSamples && m.value.timeSamples.length > 0 && (C.value ? w.value = m.value.timeSamples.find(
4997
+ (b) => b.timeInHours === C.value
4998
+ ) || m.value.timeSamples[0] : w.value = m.value.timeSamples.find(
4999
4999
  (b) => b.timeInHours === m.value.defaultHour
5000
5000
  ) || m.value.timeSamples[0]);
5001
5001
  },
@@ -5026,7 +5026,7 @@ const Ns = {
5026
5026
  });
5027
5027
  }
5028
5028
  function we(b) {
5029
- const B = k.value;
5029
+ const B = w.value;
5030
5030
  m.value = b, $e(() => {
5031
5031
  Be(
5032
5032
  m.value.timeSamples.find(
@@ -5038,7 +5038,7 @@ const Ns = {
5038
5038
  });
5039
5039
  }
5040
5040
  function Be(b) {
5041
- k.value = b;
5041
+ w.value = b;
5042
5042
  }
5043
5043
  function ke(b) {
5044
5044
  S("onClick", b, () => {
@@ -5162,7 +5162,7 @@ const Ns = {
5162
5162
  class: "persistent actions-bar top-right pa-2",
5163
5163
  style: le({
5164
5164
  zIndex: 7,
5165
- top: ie.value && P.value.length > 1 ? "60px" : 0
5165
+ top: ie.value && W.value.length > 1 ? "60px" : 0
5166
5166
  })
5167
5167
  }, [
5168
5168
  c.value.cameraRotation ? (u(), T(Ht, {
@@ -5184,7 +5184,7 @@ const Ns = {
5184
5184
  onOnZoomOut: B[1] || (B[1] = (G) => Je(!1))
5185
5185
  }, null, 8, ["is-mobile-sized", "can-zoom-out", "can-zoom-in", "disabled"])
5186
5186
  ], 4)) : F("", !0),
5187
- b.showUi && P.value.length > 1 ? (u(), E("div", {
5187
+ b.showUi && W.value.length > 1 ? (u(), E("div", {
5188
5188
  key: 1,
5189
5189
  class: me([{
5190
5190
  "actions-bar bottom-center pb-2": !0,
@@ -5194,7 +5194,7 @@ const Ns = {
5194
5194
  }, [
5195
5195
  _(Is, {
5196
5196
  "is-mobile-sized": ie.value,
5197
- "still-cameras": P.value,
5197
+ "still-cameras": W.value,
5198
5198
  "current-camera": c.value,
5199
5199
  disabled: R.value,
5200
5200
  "cdn-file-resolver": p(o),
@@ -5212,13 +5212,13 @@ const Ns = {
5212
5212
  class: "w-100 position-relative",
5213
5213
  style: le({ height: `${se.value}px` })
5214
5214
  }, [
5215
- (u(!0), E(xe, null, Me(P.value, (G, Ae) => (u(), T(hs, {
5215
+ (u(!0), E(xe, null, Me(W.value, (G, Ae) => (u(), T(hs, {
5216
5216
  key: `camera${Ae}`,
5217
5217
  "camera-data": G,
5218
5218
  "cdn-file-resolver": p(o),
5219
5219
  "current-camera": c.value,
5220
5220
  "current-day": m.value,
5221
- "current-time": k.value
5221
+ "current-time": w.value
5222
5222
  }, null, 8, ["camera-data", "cdn-file-resolver", "current-camera", "current-day", "current-time"]))), 128)),
5223
5223
  (u(!0), E(xe, null, Me(pe.value, (G, Ae) => (u(), T(_s, {
5224
5224
  key: `transition${Ae}`,
@@ -5272,7 +5272,7 @@ const Ns = {
5272
5272
  _(Fs, {
5273
5273
  "is-mobile-sized": ie.value,
5274
5274
  "current-day": m.value,
5275
- "current-time": k.value,
5275
+ "current-time": w.value,
5276
5276
  disabled: R.value,
5277
5277
  onOnTimeChange: Be
5278
5278
  }, null, 8, ["is-mobile-sized", "current-day", "current-time", "disabled"])
@@ -5289,7 +5289,7 @@ const Ns = {
5289
5289
  ]),
5290
5290
  _: 3
5291
5291
  }, 8, ["is-hoverable", "pos"])) : F("", !0),
5292
- b.version && b.showVersion ? (u(), E("div", qs, " version: " + W(b.version), 1)) : F("", !0)
5292
+ b.version && b.showVersion ? (u(), E("div", qs, " version: " + P(b.version), 1)) : F("", !0)
5293
5293
  ], 34)
5294
5294
  ]),
5295
5295
  _: 3
@@ -5319,6 +5319,6 @@ export {
5319
5319
  Rt as VStructureChooser,
5320
5320
  jl as VVirtualTour,
5321
5321
  Hn as VZoomBox,
5322
- Ws as convertStructureChooserDataLegacyToV5,
5322
+ Ps as convertStructureChooserDataLegacyToV5,
5323
5323
  nr as default
5324
5324
  };