@qispace/vue3-player 0.3.38 → 0.3.40

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 Ba = Object.defineProperty;
2
2
  var Ra = (s, t, e) => t in s ? Ba(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
3
3
  var pe = (s, t, e) => (Ra(s, typeof t != "symbol" ? t + "" : t, e), e);
4
- import { defineComponent as W, ref as d, computed as $, openBlock as v, createElementBlock as D, watch as U, onMounted as Ie, onBeforeUnmount as Qe, withDirectives as Ce, createElementVNode as u, normalizeStyle as ce, vShow as ke, createVNode as C, Fragment as me, renderList as _e, createCommentVNode as R, inject as Ze, resolveComponent as E, withCtx as b, toDisplayString as Z, unref as A, createTextVNode as ae, normalizeClass as ge, createBlock as V, renderSlot as ne, provide as at, reactive as bt, watchEffect as Ve, resolveDynamicComponent as Jt, normalizeProps as dt, guardReactiveProps as vt, mergeProps as Oe, nextTick as Ae, Transition as Ee, createSlots as Ua, toRefs as Te, pushScopeId as Ct, popScopeId as wt, vModelText as Ha, createStaticVNode as Xt, onBeforeUpdate as Ya, withModifiers as za } from "vue";
4
+ import { defineComponent as W, ref as d, computed as $, openBlock as v, createElementBlock as D, watch as U, onMounted as Ie, onBeforeUnmount as Qe, withDirectives as Ce, createElementVNode as u, normalizeStyle as de, vShow as ke, createVNode as C, Fragment as me, renderList as _e, createCommentVNode as R, inject as Ze, resolveComponent as E, withCtx as b, toDisplayString as Z, unref as A, createTextVNode as ae, normalizeClass as ge, createBlock as V, renderSlot as ne, provide as at, reactive as bt, watchEffect as $e, resolveDynamicComponent as Jt, normalizeProps as dt, guardReactiveProps as vt, mergeProps as Oe, nextTick as Ae, Transition as Ve, createSlots as Ua, toRefs as Te, pushScopeId as Ct, popScopeId as wt, vModelText as Ha, createStaticVNode as Xt, onBeforeUpdate as Ya, withModifiers as za } from "vue";
5
5
  import gt from "axios";
6
6
  import * as ja from "@qispace/player-core";
7
7
  import { Vector3 as it, Object3D as Pa, MathUtils as Wa } from "three";
@@ -66,7 +66,7 @@ const Na = /* @__PURE__ */ W({
66
66
  e[n] = a;
67
67
  return e;
68
68
  }, We = /* @__PURE__ */ ee(Na, [["__scopeId", "data-v-eb9b348d"]]);
69
- function ue(s, t) {
69
+ function ce(s, t) {
70
70
  return typeof s == "string" ? `${s}${t}` : s(t);
71
71
  }
72
72
  const Ga = /* @__PURE__ */ W({
@@ -82,14 +82,14 @@ const Ga = /* @__PURE__ */ W({
82
82
  },
83
83
  emits: ["selectUnit", "goToUnit", "hoverOver", "hoverOut", "pos"],
84
84
  setup(s, { emit: t }) {
85
- const e = s, n = t, a = d({ x: 0, y: 0, width: 0, height: 0 }), o = d(0), r = d(0), l = d(), m = d(), p = d(), i = d(), f = d(-1), w = d(!1), k = d(), c = d(), h = d({}), _ = d("auto"), y = d(new Me()), g = d({}), T = d(), M = d(), P = d(), I = d(), L = d(), X = $(() => P.value.isHoverEnabled), B = $(() => ue(
85
+ const e = s, n = t, a = d({ x: 0, y: 0, width: 0, height: 0 }), o = d(0), r = d(0), l = d(), m = d(), p = d(), i = d(), f = d(-1), w = d(!1), k = d(), c = d(), h = d({}), _ = d("auto"), y = d(new Me()), g = d({}), T = d(), M = d(), P = d(), I = d(), L = d(), X = $(() => P.value.isHoverEnabled), B = $(() => ce(
86
86
  e.cdnFileResolver,
87
87
  `/scenedata${e.viewModel.currentScene}.png`
88
88
  )), te = $(() => B.value in h.value ? h.value[B.value] : null), x = $(() => f.value < 0 ? !1 : e.sceneData.find((K) => K.index === f.value) || !1), S = $(() => ({
89
89
  width: o.value + "px",
90
90
  height: r.value + "px",
91
91
  cursor: _.value
92
- })), H = $(() => `hover-${w.value ? "over" : "out"}-${x.value ? typeof x.value == "object" && "unitId" in x.value ? x.value.unitId : x.value : ""}`);
92
+ })), Y = $(() => `hover-${w.value ? "over" : "out"}-${x.value ? typeof x.value == "object" && "unitId" in x.value ? x.value.unitId : x.value : ""}`);
93
93
  U(
94
94
  B,
95
95
  () => {
@@ -120,7 +120,7 @@ const Ga = /* @__PURE__ */ W({
120
120
  }
121
121
  ), U(x, () => {
122
122
  we(), x.value ? _.value = "pointer" : _.value = "auto";
123
- }), U(H, () => {
123
+ }), U(Y, () => {
124
124
  w.value ? n("hoverOver", {
125
125
  hoverUnit: x.value ? x.value.unitId : !1,
126
126
  closeHandler: () => xe()
@@ -143,10 +143,10 @@ const Ga = /* @__PURE__ */ W({
143
143
  });
144
144
  function G() {
145
145
  l.value = I.value.getContext("2d", { willReadFrequently: !0 }), m.value = new Image(), m.value.onload = () => {
146
- ze(), I.value.addEventListener("mousemove", De(de, 50));
146
+ ze(), I.value.addEventListener("mousemove", De(ue, 50));
147
147
  }, m.value.src = te.value;
148
148
  }
149
- function de(N) {
149
+ function ue(N) {
150
150
  const K = J(N.offsetX, N.offsetY);
151
151
  w.value = K >= 0, f.value = K, a.value = {
152
152
  x: N.offsetX,
@@ -188,7 +188,7 @@ const Ga = /* @__PURE__ */ W({
188
188
  }
189
189
  function J(N, K) {
190
190
  k.value = N, c.value = K;
191
- const ve = I.value.offsetWidth / I.value.width, je = I.value.offsetHeight / I.value.height, Re = (N / ve).toFixed(), Y = (K / je).toFixed(), Q = Number(Y) * (I.value.width * 4) + Number(Re) * 4, fe = i.value.data[Q];
191
+ const ve = I.value.offsetWidth / I.value.width, je = I.value.offsetHeight / I.value.height, Ue = (N / ve).toFixed(), H = (K / je).toFixed(), Q = Number(H) * (I.value.width * 4) + Number(Ue) * 4, fe = i.value.data[Q];
192
192
  return i.value.data[Q + 3] > 0 ? fe : -1;
193
193
  }
194
194
  function q() {
@@ -197,12 +197,12 @@ const Ga = /* @__PURE__ */ W({
197
197
  const ve = oe(K.index);
198
198
  if (ve) {
199
199
  const je = re(K.index);
200
- let Re = "idle";
201
- !x.value && e.selectedUnitId && je === e.selectedUnitId ? Re = "selected" : x.value && f.value === K.index && (Re = "hover");
202
- const Y = e.colorCallback(K.unitId, Re);
203
- if (Y)
200
+ let Ue = "idle";
201
+ !x.value && e.selectedUnitId && je === e.selectedUnitId ? Ue = "selected" : x.value && f.value === K.index && (Ue = "hover");
202
+ const H = e.colorCallback(K.unitId, Ue);
203
+ if (H)
204
204
  for (let Q = 0; Q < ve.length; Q++)
205
- p.value.data[ve[Q]] = Y.r, p.value.data[ve[Q] + 1] = Y.g, p.value.data[ve[Q] + 2] = Y.b, p.value.data[ve[Q] + 3] = Y.a;
205
+ p.value.data[ve[Q]] = H.r, p.value.data[ve[Q] + 1] = H.g, p.value.data[ve[Q] + 2] = H.b, p.value.data[ve[Q] + 3] = H.a;
206
206
  }
207
207
  }
208
208
  });
@@ -253,10 +253,10 @@ const Ga = /* @__PURE__ */ W({
253
253
  function xe() {
254
254
  w.value = !1;
255
255
  }
256
- const Be = d(!1);
256
+ const Re = d(!1);
257
257
  function De(N, K) {
258
- return Be.value = !0, function(...ve) {
259
- Be.value && (Be.value = !1, N.apply(this, ve), setTimeout(() => Be.value = !0, K));
258
+ return Re.value = !0, function(...ve) {
259
+ Re.value && (Re.value = !1, N.apply(this, ve), setTimeout(() => Re.value = !0, K));
260
260
  };
261
261
  }
262
262
  return (N, K) => (v(), D("div", {
@@ -268,7 +268,7 @@ const Ga = /* @__PURE__ */ W({
268
268
  id: "canvas-mask",
269
269
  ref_key: "canvas",
270
270
  ref: I,
271
- style: ce(S.value),
271
+ style: de(S.value),
272
272
  onClick: j
273
273
  }, null, 4), [
274
274
  [ke, !N.viewModel.isRotating]
@@ -327,7 +327,7 @@ const Ga = /* @__PURE__ */ W({
327
327
  }
328
328
  }), Ie(() => {
329
329
  for (let M = 1; M <= 4; M++) {
330
- const P = ue(e.cdnFileResolver, `/scenedata${M}.svg`), I = {
330
+ const P = ce(e.cdnFileResolver, `/scenedata${M}.svg`), I = {
331
331
  markup: "",
332
332
  viewBox: "",
333
333
  svgObjects: []
@@ -407,7 +407,7 @@ const Ga = /* @__PURE__ */ W({
407
407
  }, [
408
408
  Ce(u("div", {
409
409
  class: "svg-container",
410
- style: ce({
410
+ style: de({
411
411
  opacity: !l.value || !l.value.svgObjects ? 0 : 1
412
412
  })
413
413
  }, [
@@ -418,7 +418,7 @@ const Ga = /* @__PURE__ */ W({
418
418
  (v(!0), D(me, null, _e(l.value.svgObjects, ({ index: I, svg: L }) => (v(), D("g", {
419
419
  key: I,
420
420
  innerHTML: L,
421
- style: ce(y(I)),
421
+ style: de(y(I)),
422
422
  onMouseenter: (X) => c(I),
423
423
  onMouseleave: (X) => h(),
424
424
  onClick: (X) => _(I)
@@ -433,7 +433,7 @@ const Ga = /* @__PURE__ */ W({
433
433
  }, null, 512)
434
434
  ], 512));
435
435
  }
436
- }), Xa = /* @__PURE__ */ ee(Ja, [["__scopeId", "data-v-e6c054c7"]]), $e = Symbol(), Ka = {
436
+ }), Xa = /* @__PURE__ */ ee(Ja, [["__scopeId", "data-v-e6c054c7"]]), Be = Symbol(), Ka = {
437
437
  key: 0,
438
438
  class: "text-success d-none d-md-flex"
439
439
  }, en = { class: "text-success" }, tn = /* @__PURE__ */ W({
@@ -448,7 +448,7 @@ const Ga = /* @__PURE__ */ W({
448
448
  },
449
449
  emits: ["prevUnit", "nextUnit", "goToUnit"],
450
450
  setup(s, { emit: t }) {
451
- const e = s, n = $(() => e.selectedUnitId), a = $(() => e.nextUnitId), o = $(() => e.prevUnitId), r = t, l = Ze($e);
451
+ const e = s, n = $(() => e.selectedUnitId), a = $(() => e.nextUnitId), o = $(() => e.prevUnitId), r = t, l = Ze(Be);
452
452
  Ie(() => {
453
453
  window.addEventListener("keydown", m);
454
454
  }), Qe(() => {
@@ -665,19 +665,19 @@ const on = {
665
665
  }
666
666
  function c(y) {
667
667
  const g = ("0000" + (y + 1)).slice(-4), T = e.build ? `?v=${e.build}` : "", M = [
668
- `${ue(
668
+ `${ce(
669
669
  e.cdnFileResolver,
670
670
  `/480/${g}.jpg${T}`
671
671
  )} 480w`,
672
- `${ue(
672
+ `${ce(
673
673
  e.cdnFileResolver,
674
674
  `/960/${g}.jpg${T}`
675
675
  )} 960w`,
676
- `${ue(
676
+ `${ce(
677
677
  e.cdnFileResolver,
678
678
  `/1280/${g}.jpg${T}`
679
679
  )} 1280w`
680
- ].join(","), P = ue(
680
+ ].join(","), P = ce(
681
681
  e.cdnFileResolver,
682
682
  `/480/${g}.jpg${T}`
683
683
  );
@@ -757,7 +757,7 @@ const on = {
757
757
  o.isHoverable ? (v(), D("div", {
758
758
  key: 0,
759
759
  class: "floating-card",
760
- style: ce({
760
+ style: de({
761
761
  left: `${o.pos.x}px`,
762
762
  top: `${o.pos.y}px`,
763
763
  pointerEvents: "none",
@@ -795,7 +795,7 @@ const on = {
795
795
  setup(s, { expose: t, emit: e }) {
796
796
  const n = s, a = e;
797
797
  t({
798
- adjustZoom: de
798
+ adjustZoom: ue
799
799
  });
800
800
  const o = d(100), r = d(0), l = d(0), m = d(!1), p = d(!1), i = d(void 0), f = d(!1), w = d(), k = $(() => `translateX(${r.value}px) translateY(${l.value}px) scale(${c.value})`), c = $(() => o.value / 100), h = $(() => n.maxScale * 100);
801
801
  U(
@@ -869,7 +869,7 @@ const on = {
869
869
  }
870
870
  function M(O) {
871
871
  const { x: J, y: q } = S(O);
872
- de(-O.deltaY / 10, J, q), O.preventDefault();
872
+ ue(-O.deltaY / 10, J, q), O.preventDefault();
873
873
  }
874
874
  function P(O) {
875
875
  m.value = !0, f.value = !1, i.value = O;
@@ -880,7 +880,7 @@ const on = {
880
880
  x: J - oe,
881
881
  y: q - re
882
882
  };
883
- H(se.x), G(se.y), f.value = !0, i.value = O;
883
+ Y(se.x), G(se.y), f.value = !0, i.value = O;
884
884
  }
885
885
  }
886
886
  function L(O) {
@@ -900,14 +900,14 @@ const on = {
900
900
  x: J - oe,
901
901
  y: q - re
902
902
  };
903
- H(se.x), G(se.y);
903
+ Y(se.x), G(se.y);
904
904
  } else if (p.value && O.touches.length === 2) {
905
905
  const { x: J, y: q } = S(O.touches[0]), { x: oe, y: re } = S(
906
906
  i.value.touches[0]
907
907
  ), { x: se, y: be } = S(O.touches[1]), { x: ie, y: Fe } = S(
908
908
  i.value.touches[1]
909
909
  ), Le = Math.hypot(oe - ie, re - Fe), ze = Math.hypot(J - se, q - be), we = (se + J) / 2, xe = (be + q) / 2;
910
- de(ze - Le, we, xe);
910
+ ue(ze - Le, we, xe);
911
911
  }
912
912
  i.value = O;
913
913
  }
@@ -921,7 +921,7 @@ const on = {
921
921
  y: O.clientY - q
922
922
  };
923
923
  }
924
- function H(O) {
924
+ function Y(O) {
925
925
  const J = w.value.clientWidth, q = J * c.value;
926
926
  r.value = Math.max(
927
927
  Math.min(0, r.value + O),
@@ -935,11 +935,11 @@ const on = {
935
935
  -(q - J)
936
936
  );
937
937
  }
938
- function de(O, J, q) {
938
+ function ue(O, J, q) {
939
939
  const oe = J !== void 0 ? J : w.value.clientWidth / 2, re = q !== void 0 ? q : w.value.clientHeight / 2, se = w.value.clientWidth, be = w.value.clientHeight, ie = se * c.value, Fe = be * c.value;
940
940
  o.value = Math.min(Math.max(100, o.value + O), h.value);
941
941
  const Le = se * c.value, ze = be * c.value, we = Le - ie, xe = ze - Fe;
942
- r.value -= oe / se * we, l.value -= re / be * xe, H(0), G(0);
942
+ r.value -= oe / se * we, l.value -= re / be * xe, Y(0), G(0);
943
943
  }
944
944
  function j() {
945
945
  a("update", {
@@ -959,10 +959,10 @@ const on = {
959
959
  ref_key: "box",
960
960
  ref: w,
961
961
  class: "zoom-box-container",
962
- style: ce({ position: n.position })
962
+ style: de({ position: n.position })
963
963
  }, [
964
964
  u("div", {
965
- style: ce({ "transform-origin": "top left", transform: k.value }),
965
+ style: de({ "transform-origin": "top left", transform: k.value }),
966
966
  class: "zoom-box"
967
967
  }, [
968
968
  ne(O.$slots, "default", {}, void 0, !0)
@@ -1010,7 +1010,7 @@ class bn {
1010
1010
  });
1011
1011
  }
1012
1012
  }
1013
- class He {
1013
+ class Ye {
1014
1014
  constructor({ labels: t, language: e } = { labels: null, language: null }) {
1015
1015
  pe(this, "_labels");
1016
1016
  pe(this, "_language");
@@ -1051,11 +1051,11 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
1051
1051
  setup(s, { emit: t }) {
1052
1052
  const e = [0, 16, 32, 48], n = s, a = t;
1053
1053
  at(
1054
- $e,
1055
- n.i18nConfig ? new He(n.i18nConfig) : new He()
1054
+ Be,
1055
+ n.i18nConfig ? new Ye(n.i18nConfig) : new Ye()
1056
1056
  );
1057
1057
  const o = bt({ isReady: !1, isError: !1 }), r = d(), l = d(), m = d(), p = d(), i = d({ x: 0, y: 0, width: 0, height: 0 }), f = d(), w = d(), k = d(), c = $(() => k.value.isHoverEnabled), h = $(() => n.useSvg ? Xa : Qa), _ = $(() => n.selectedUnitId), y = $(() => n.nextUnitId), g = $(() => n.prevUnitId);
1058
- Ve(() => {
1058
+ $e(() => {
1059
1059
  if (_.value && p.value) {
1060
1060
  const I = r.value[_.value];
1061
1061
  I && (p.value.currentScene = I);
@@ -1071,15 +1071,15 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
1071
1071
  }).reduce((B, te) => ({ ...B, [te.unitId]: te.scene }), {}) : {};
1072
1072
  const L = (B, te = "unitId") => {
1073
1073
  let x = I, S = [];
1074
- for (let H = 0; H < Ot; H++)
1074
+ for (let Y = 0; Y < Ot; Y++)
1075
1075
  S.push(x), x = Kt(x);
1076
- return B.sort((H, G) => {
1077
- const de = S.findIndex(
1078
- (O) => O === r.value[H[te]]
1076
+ return B.sort((Y, G) => {
1077
+ const ue = S.findIndex(
1078
+ (O) => O === r.value[Y[te]]
1079
1079
  ), j = S.findIndex(
1080
1080
  (O) => O === r.value[G[te]]
1081
1081
  );
1082
- return de < j ? -1 : de > j ? 1 : 0;
1082
+ return ue < j ? -1 : ue > j ? 1 : 0;
1083
1083
  }), B;
1084
1084
  }, X = (B) => {
1085
1085
  p.value = new bn(B);
@@ -1199,7 +1199,7 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
1199
1199
  currentTime: {}
1200
1200
  },
1201
1201
  setup(s) {
1202
- const t = s, e = $(() => ue(t.cdnFileResolver, t.timeSampleData.filename));
1202
+ const t = s, e = $(() => ce(t.cdnFileResolver, t.timeSampleData.filename));
1203
1203
  return (n, a) => Ce((v(), D("img", {
1204
1204
  key: e.value,
1205
1205
  src: e.value,
@@ -1247,7 +1247,7 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
1247
1247
  },
1248
1248
  emits: ["goToBuilding", "hoverOverBuilding", "hoverOutBuilding"],
1249
1249
  setup(s, { emit: t }) {
1250
- const e = s, n = $(() => ue(e.cdnFileResolver, e.transitionData.filename));
1250
+ const e = s, n = $(() => ce(e.cdnFileResolver, e.transitionData.filename));
1251
1251
  return (a, o) => Ce((v(), D("img", {
1252
1252
  key: n.value,
1253
1253
  src: n.value,
@@ -1491,11 +1491,11 @@ const Un = /* @__PURE__ */ W({
1491
1491
  rotateShortestRoute: w
1492
1492
  });
1493
1493
  const o = d(!1), r = d(n.currentScene), l = d(n.selectedId);
1494
- Ve(() => {
1494
+ $e(() => {
1495
1495
  r.value = n.currentScene;
1496
- }), Ve(() => {
1496
+ }), $e(() => {
1497
1497
  l.value = n.selectedId;
1498
- }), Ve(() => {
1498
+ }), $e(() => {
1499
1499
  a("onSceneChange", r.value);
1500
1500
  });
1501
1501
  const m = $(() => o.value ? !1 : n.apartmentChooserData.loopable ? !0 : r.value !== n.apartmentChooserData.scenes[0]), p = $(() => o.value ? !1 : n.apartmentChooserData.loopable ? !0 : r.value !== n.apartmentChooserData.scenes[n.apartmentChooserData.scenes.length - 1]);
@@ -1587,7 +1587,7 @@ const Un = /* @__PURE__ */ W({
1587
1587
  () => {
1588
1588
  r.value = e.selectedId;
1589
1589
  }
1590
- ), Ve(() => {
1590
+ ), $e(() => {
1591
1591
  for (const i in l) {
1592
1592
  const { element: f, state: w } = l[i], { r: k, g: c, b: h, a: _, s: y } = e.colorCallback(i, w) || {
1593
1593
  r: 0,
@@ -1601,9 +1601,9 @@ const Un = /* @__PURE__ */ W({
1601
1601
  }), U(r, () => {
1602
1602
  for (const i in l)
1603
1603
  l[i].state === "selected" && i !== r.value ? l[i].state = "idle" : l[i].state !== "selected" && i === r.value && (l[i].state = "selected");
1604
- }), Ve(async () => {
1604
+ }), $e(async () => {
1605
1605
  a.value = await Me.loadText(
1606
- ue(e.cdnFileResolver, e.currentCamera.overlayFilename)
1606
+ ce(e.cdnFileResolver, e.currentCamera.overlayFilename)
1607
1607
  ), p();
1608
1608
  }), U(
1609
1609
  () => o.value,
@@ -1656,7 +1656,7 @@ const Un = /* @__PURE__ */ W({
1656
1656
  }));
1657
1657
  });
1658
1658
  }
1659
- return (i, f) => (v(), V(Ee, null, {
1659
+ return (i, f) => (v(), V(Ve, null, {
1660
1660
  default: b(() => [
1661
1661
  (v(), D("div", {
1662
1662
  ref_key: "svgContainer",
@@ -1684,7 +1684,7 @@ const Un = /* @__PURE__ */ W({
1684
1684
  const o = E("v-img");
1685
1685
  return v(), V(o, {
1686
1686
  src: A(qn),
1687
- style: ce(e.value)
1687
+ style: de(e.value)
1688
1688
  }, null, 8, ["src", "style"]);
1689
1689
  };
1690
1690
  }
@@ -1716,7 +1716,7 @@ class ea {
1716
1716
  this._cdnFileResolver = t, this._resourceLoader = new Me();
1717
1717
  }
1718
1718
  constructFileUrl(t) {
1719
- return this._cdnFileResolver ? ue(this._cdnFileResolver, `/${t}`) : null;
1719
+ return this._cdnFileResolver ? ce(this._cdnFileResolver, `/${t}`) : null;
1720
1720
  }
1721
1721
  loadBuildingMapImage(t) {
1722
1722
  const e = this.constructFileUrl(t.lookupFilename);
@@ -1964,7 +1964,7 @@ const no = {
1964
1964
  try {
1965
1965
  let j, O;
1966
1966
  return O = await Me.loadJson(
1967
- ue(e.cdnFileResolver, "/apartmentChooser.json")
1967
+ ce(e.cdnFileResolver, "/apartmentChooser.json")
1968
1968
  ), parseInt(O.version) === 5 ? O : (j = ao(O), j);
1969
1969
  } catch (j) {
1970
1970
  i.value = !1, n("onError", j);
@@ -2050,13 +2050,13 @@ const no = {
2050
2050
  O && w.value.rotateShortestRoute(O.bestScene);
2051
2051
  });
2052
2052
  }
2053
- function H(j) {
2053
+ function Y(j) {
2054
2054
  n("onHoverOver", j), p.value = j;
2055
2055
  }
2056
2056
  function G(j) {
2057
2057
  n("onHoverOut", j), p.value = void 0;
2058
2058
  }
2059
- function de(j) {
2059
+ function ue(j) {
2060
2060
  const { layerX: O, layerY: J } = j;
2061
2061
  let q = j.target, oe = !1;
2062
2062
  for (; q; )
@@ -2086,13 +2086,13 @@ const no = {
2086
2086
  loading: !i.value || !g.value
2087
2087
  }, {
2088
2088
  default: b(() => [
2089
- C(Ee, { class: "w-100 h-100" }, {
2089
+ C(Ve, { class: "w-100 h-100" }, {
2090
2090
  default: b(() => [
2091
2091
  u("div", {
2092
2092
  ref_key: "container",
2093
2093
  ref: y,
2094
2094
  class: ge({ mobile: T.value }),
2095
- onMousemove: de
2095
+ onMousemove: ue
2096
2096
  }, [
2097
2097
  u("div", no, [
2098
2098
  u("div", oo, [
@@ -2169,7 +2169,7 @@ const no = {
2169
2169
  "current-camera": a.value,
2170
2170
  "selected-id": e.selectedId,
2171
2171
  onOnClick: S,
2172
- onOnHoverOver: H,
2172
+ onOnHoverOver: Y,
2173
2173
  onOnHoverOut: G,
2174
2174
  onUpdateSvgContainer: O[2] || (O[2] = (q) => _.value = q)
2175
2175
  }, null, 8, ["cdn-file-resolver", "color-callback", "current-camera", "selected-id"]), [
@@ -2243,7 +2243,7 @@ const no = {
2243
2243
  (i) => {
2244
2244
  a.value = Math.floor(i);
2245
2245
  }
2246
- ), Ve(() => {
2246
+ ), $e(() => {
2247
2247
  o.value = r(e.dateSelector.selectedDate);
2248
2248
  }), (i, f) => {
2249
2249
  const w = E("v-icon"), k = E("v-select"), c = E("v-progress-linear"), h = E("v-slider");
@@ -2377,8 +2377,8 @@ const no = {
2377
2377
  setup(s, { emit: t }) {
2378
2378
  const e = s, n = t;
2379
2379
  at(
2380
- $e,
2381
- e.i18nConfig ? new He(e.i18nConfig) : new He()
2380
+ Be,
2381
+ e.i18nConfig ? new Ye(e.i18nConfig) : new Ye()
2382
2382
  );
2383
2383
  const a = d({
2384
2384
  preloaded: !1,
@@ -2391,11 +2391,11 @@ const no = {
2391
2391
  ), p = d(!1), i = d(new Me()), f = d(), w = d("0 0 0 0"), k = d(), c = d(), h = d(et.empty()), _ = d(tt.empty()), y = d(), g = $(() => y.value.isHoverEnabled);
2392
2392
  U(l, (x, S) => {
2393
2393
  x ? n("hoverOverBuilding", x) : n("hoverOutBuilding", S);
2394
- }), Ve(() => {
2394
+ }), $e(() => {
2395
2395
  if (e.buildingChooserTimeOfDay) {
2396
- const [x, S, H] = /^(\d\d):(\d\d)$/.exec(
2396
+ const [x, S, Y] = /^(\d\d):(\d\d)$/.exec(
2397
2397
  e.buildingChooserTimeOfDay
2398
- ), G = parseInt(H);
2398
+ ), G = parseInt(Y);
2399
2399
  m.value = parseInt(S) * 2 + (G < 15 ? 0 : G > 45 ? 2 : 1);
2400
2400
  }
2401
2401
  }), Ie(async () => {
@@ -2409,16 +2409,16 @@ const no = {
2409
2409
  buildingOverlays: S.buildingOverlays,
2410
2410
  viewLongitude: S.viewLongitude
2411
2411
  };
2412
- const H = [];
2413
- for (let { id: G, url: de } of S.buildingOverlays)
2414
- i.value.loadJson(de.replace(".png", ".svg")).then((j) => {
2412
+ const Y = [];
2413
+ for (let { id: G, url: ue } of S.buildingOverlays)
2414
+ i.value.loadJson(ue.replace(".png", ".svg")).then((j) => {
2415
2415
  const J = new DOMParser().parseFromString(j, "image/svg+xml").getElementsByTagName("svg")[0];
2416
- w.value = J.getAttribute("viewBox"), H.push({
2416
+ w.value = J.getAttribute("viewBox"), Y.push({
2417
2417
  id: G,
2418
2418
  svg: J.innerHTML
2419
2419
  });
2420
2420
  });
2421
- f.value = H;
2421
+ f.value = Y;
2422
2422
  } else
2423
2423
  p.value = !0;
2424
2424
  });
@@ -2432,8 +2432,8 @@ const no = {
2432
2432
  const S = e.colorCallback(
2433
2433
  x,
2434
2434
  x === l.value ? "hover" : "idle"
2435
- ), H = [];
2436
- return x === l.value ? H.push("hover") : H.push("idle"), S && e.canGoToBuildingCallback(x) ? H.push("clickable") : H.push("restricted"), H.join(" ");
2435
+ ), Y = [];
2436
+ return x === l.value ? Y.push("hover") : Y.push("idle"), S && e.canGoToBuildingCallback(x) ? Y.push("clickable") : Y.push("restricted"), Y.join(" ");
2437
2437
  }
2438
2438
  function I(x) {
2439
2439
  const S = e.colorCallback(
@@ -2441,12 +2441,12 @@ const no = {
2441
2441
  x === l.value ? "hover" : "idle"
2442
2442
  );
2443
2443
  if (S) {
2444
- const { r: H, g: G, b: de, a: j, s: O } = S;
2444
+ const { r: Y, g: G, b: ue, a: j, s: O } = S;
2445
2445
  return {
2446
2446
  strokeWidth: O !== void 0 ? O : 2,
2447
- stroke: `rgb(${H}, ${G}, ${de})`,
2447
+ stroke: `rgb(${Y}, ${G}, ${ue})`,
2448
2448
  strokeOpacity: 1,
2449
- fill: `rgb(${H}, ${G}, ${de})`,
2449
+ fill: `rgb(${Y}, ${G}, ${ue})`,
2450
2450
  fillOpacity: j / 255,
2451
2451
  cursor: `${e.canGoToBuildingCallback(x) ? "cursor" : "default"} !important`
2452
2452
  };
@@ -2461,27 +2461,27 @@ const no = {
2461
2461
  };
2462
2462
  }
2463
2463
  function L(x, S) {
2464
- const { layerX: H, layerY: G } = x;
2464
+ const { layerX: Y, layerY: G } = x;
2465
2465
  g.value && (r.value = {
2466
- x: H,
2466
+ x: Y,
2467
2467
  y: G,
2468
2468
  width: o.value.width,
2469
2469
  height: o.value.height
2470
2470
  }, l.value = S, n("hoverOverBuilding", S));
2471
2471
  }
2472
2472
  function X(x, S) {
2473
- const { layerX: H, layerY: G } = x;
2473
+ const { layerX: Y, layerY: G } = x;
2474
2474
  g.value && (r.value = {
2475
- x: H,
2475
+ x: Y,
2476
2476
  y: G,
2477
2477
  width: o.value.width,
2478
2478
  height: o.value.height
2479
2479
  }, l.value = void 0, n("hoverOutBuilding", S));
2480
2480
  }
2481
2481
  function B(x, S) {
2482
- const { layerX: H, layerY: G } = x;
2482
+ const { layerX: Y, layerY: G } = x;
2483
2483
  g.value && (r.value = {
2484
- x: H,
2484
+ x: Y,
2485
2485
  y: G,
2486
2486
  width: o.value.width,
2487
2487
  height: o.value.height
@@ -2491,9 +2491,9 @@ const no = {
2491
2491
  l.value = x, g.value && l.value && e.canGoToBuildingCallback(l.value) && n("goToBuilding", l.value);
2492
2492
  }
2493
2493
  return (x, S) => {
2494
- const H = E("v-icon");
2494
+ const Y = E("v-icon");
2495
2495
  return p.value ? (v(), D("div", wo, [
2496
- C(H, { "x-large": "" }, {
2496
+ C(Y, { "x-large": "" }, {
2497
2497
  default: b(() => [
2498
2498
  ae("mdi-alert-circle-outline")
2499
2499
  ]),
@@ -2501,7 +2501,7 @@ const no = {
2501
2501
  })
2502
2502
  ])) : c.value ? (v(), D("div", {
2503
2503
  key: 1,
2504
- style: ce(`height: ${o.value.height}px; position: relative`),
2504
+ style: de(`height: ${o.value.height}px; position: relative`),
2505
2505
  class: "image-container"
2506
2506
  }, [
2507
2507
  C(ot, {
@@ -2521,12 +2521,12 @@ const no = {
2521
2521
  f.value ? Ce((v(), D("div", So, [
2522
2522
  u("div", Io, [
2523
2523
  (v(), D("svg", { viewBox: w.value }, [
2524
- (v(!0), D(me, null, _e(f.value, ({ id: G, svg: de }, j) => (v(), D("g", {
2524
+ (v(!0), D(me, null, _e(f.value, ({ id: G, svg: ue }, j) => (v(), D("g", {
2525
2525
  key: j,
2526
- innerHTML: de,
2526
+ innerHTML: ue,
2527
2527
  "data-building-id": G,
2528
2528
  class: ge(P(G)),
2529
- style: ce(I(G)),
2529
+ style: de(I(G)),
2530
2530
  onMouseover: (O) => L(O, G),
2531
2531
  onMouseout: (O) => X(O, G),
2532
2532
  onMousemove: (O) => B(O),
@@ -2657,8 +2657,8 @@ const no = {
2657
2657
  setup(s, { emit: t }) {
2658
2658
  const e = s, n = t;
2659
2659
  at(
2660
- $e,
2661
- e.i18nConfig ? new He(e.i18nConfig) : new He()
2660
+ Be,
2661
+ e.i18nConfig ? new Ye(e.i18nConfig) : new Ye()
2662
2662
  );
2663
2663
  const a = d(), o = d({
2664
2664
  preloaded: !1,
@@ -2674,11 +2674,11 @@ const no = {
2674
2674
  var x;
2675
2675
  return (x = h.value) == null ? void 0 : x.isHoverEnabled;
2676
2676
  });
2677
- Ve(() => {
2677
+ $e(() => {
2678
2678
  if (e.buildingChooserTimeOfDay) {
2679
- const [x, S, H] = /^(\d\d):(\d\d)$/.exec(
2679
+ const [x, S, Y] = /^(\d\d):(\d\d)$/.exec(
2680
2680
  e.buildingChooserTimeOfDay
2681
- ), G = parseInt(H);
2681
+ ), G = parseInt(Y);
2682
2682
  w.value = parseInt(S) * 2 + (G < 15 ? 0 : G > 45 ? 2 : 1);
2683
2683
  }
2684
2684
  }), U(f, (x, S) => {
@@ -2701,11 +2701,11 @@ const no = {
2701
2701
  o.value = { preloaded: !1, ready: !1 };
2702
2702
  }
2703
2703
  function P(x) {
2704
- const { layerX: S, layerY: H } = x, { x: G, y: de } = k.value(S, H);
2704
+ const { layerX: S, layerY: Y } = x, { x: G, y: ue } = k.value(S, Y);
2705
2705
  return p.value.getBuildingId(
2706
2706
  i.value,
2707
2707
  G,
2708
- de
2708
+ ue
2709
2709
  );
2710
2710
  }
2711
2711
  function I() {
@@ -2714,10 +2714,10 @@ const no = {
2714
2714
  x.setupDraw();
2715
2715
  }
2716
2716
  function L(x) {
2717
- const { layerX: S, layerY: H } = x;
2717
+ const { layerX: S, layerY: Y } = x;
2718
2718
  g.value && (f.value = P(x), f.value !== void 0 && (l.value = {
2719
2719
  x: S,
2720
- y: H,
2720
+ y: Y,
2721
2721
  width: r.value.width,
2722
2722
  height: r.value.height
2723
2723
  }));
@@ -2735,9 +2735,9 @@ const no = {
2735
2735
  k.value = x;
2736
2736
  }
2737
2737
  return (x, S) => {
2738
- const H = E("v-icon");
2738
+ const Y = E("v-icon");
2739
2739
  return c.value ? (v(), D("div", To, [
2740
- C(H, { "x-large": "" }, {
2740
+ C(Y, { "x-large": "" }, {
2741
2741
  default: b(() => [
2742
2742
  ae("mdi-alert-circle-outline")
2743
2743
  ]),
@@ -2745,7 +2745,7 @@ const no = {
2745
2745
  })
2746
2746
  ])) : m.value ? (v(), D("div", {
2747
2747
  key: 1,
2748
- style: ce(`cursor: ${f.value ? "pointer" : "auto"};height: ${r.value.height}px; position: relative`),
2748
+ style: de(`cursor: ${f.value ? "pointer" : "auto"};height: ${r.value.height}px; position: relative`),
2749
2749
  class: "image-container"
2750
2750
  }, [
2751
2751
  C(ot, {
@@ -2884,7 +2884,7 @@ const no = {
2884
2884
  currentTime: {}
2885
2885
  },
2886
2886
  setup(s) {
2887
- const t = s, e = $(() => ue(t.cdnFileResolver, t.timeSampleData.filename));
2887
+ const t = s, e = $(() => ce(t.cdnFileResolver, t.timeSampleData.filename));
2888
2888
  return (n, a) => Ce((v(), D("img", {
2889
2889
  key: e.value,
2890
2890
  src: e.value,
@@ -3114,7 +3114,7 @@ const no = {
3114
3114
  emits: ["onClick", "onHoverOver", "onHoverOut", "updateSvgContainer"],
3115
3115
  setup(s, { emit: t }) {
3116
3116
  const e = s, n = t, a = d(), o = d(), r = d(e.selectedId), l = bt({});
3117
- Ve(() => {
3117
+ $e(() => {
3118
3118
  for (const i in l) {
3119
3119
  const { element: f, state: w } = l[i], { r: k, g: c, b: h, a: _, s: y } = e.colorCallback(i, w) || {
3120
3120
  r: 0,
@@ -3133,9 +3133,9 @@ const no = {
3133
3133
  ), U(r, () => {
3134
3134
  for (const i in l)
3135
3135
  l[i].state === "selected" && i !== r.value ? l[i].state = "idle" : l[i].state !== "selected" && i === r.value && (l[i].state = "selected");
3136
- }), Ve(async () => {
3136
+ }), $e(async () => {
3137
3137
  a.value = await Me.loadText(
3138
- ue(e.cdnFileResolver, e.currentCamera.overlayFilename)
3138
+ ce(e.cdnFileResolver, e.currentCamera.overlayFilename)
3139
3139
  ), p();
3140
3140
  }), U(
3141
3141
  () => o.value,
@@ -3181,7 +3181,7 @@ const no = {
3181
3181
  }));
3182
3182
  });
3183
3183
  }
3184
- return (i, f) => (v(), V(Ee, null, {
3184
+ return (i, f) => (v(), V(Ve, null, {
3185
3185
  default: b(() => [
3186
3186
  (v(), D("div", {
3187
3187
  ref_key: "svgContainer",
@@ -3287,7 +3287,7 @@ const tl = {
3287
3287
  return L;
3288
3288
  let X;
3289
3289
  return X = await Me.loadJson(
3290
- ue(e.cdnFileResolver, "/buildingChooser.json")
3290
+ ce(e.cdnFileResolver, "/buildingChooser.json")
3291
3291
  ), parseInt(X.version) === 5 ? X : (L = el(X), L);
3292
3292
  } catch (L) {
3293
3293
  m.value = !1, n("onError", L);
@@ -3381,7 +3381,7 @@ const tl = {
3381
3381
  loading: !m.value || !c.value
3382
3382
  }, {
3383
3383
  default: b(() => [
3384
- C(Ee, { class: "w-100 h-100" }, {
3384
+ C(Ve, { class: "w-100 h-100" }, {
3385
3385
  default: b(() => [
3386
3386
  u("div", {
3387
3387
  ref_key: "container",
@@ -3538,7 +3538,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
3538
3538
  w.value = l.value;
3539
3539
  }), U([o, r], async () => {
3540
3540
  f.value && await f.value.loadInterior(
3541
- (y) => ue(
3541
+ (y) => ce(
3542
3542
  a.value,
3543
3543
  `/${o.value}/${r.value}${y}`
3544
3544
  ),
@@ -3588,7 +3588,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
3588
3588
  if (!fl)
3589
3589
  return;
3590
3590
  const P = await new e.Main(
3591
- (I) => ue(
3591
+ (I) => ce(
3592
3592
  a.value,
3593
3593
  `/${o.value}/${r.value}${I}`
3594
3594
  ),
@@ -3640,7 +3640,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
3640
3640
  u("div", Dl, [
3641
3641
  u("canvas", {
3642
3642
  id: "qpc",
3643
- style: ce(A(m) ? "visibility:hidden" : "visibility:visible")
3643
+ style: de(A(m) ? "visibility:hidden" : "visibility:visible")
3644
3644
  }, null, 4)
3645
3645
  ])
3646
3646
  ])
@@ -3658,7 +3658,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
3658
3658
  },
3659
3659
  emits: ["level"],
3660
3660
  setup(s, { emit: t }) {
3661
- const e = s, n = t, a = Ze($e), o = $(() => {
3661
+ const e = s, n = t, a = Ze(Be), o = $(() => {
3662
3662
  const i = e.floorLevels;
3663
3663
  return i.sort(), i;
3664
3664
  }), r = $(() => o.value.indexOf(e.level) + 1 <= o.value.length / 2 ? "lower" : "upper"), l = $(() => r.value === "lower"), m = $(() => r.value === "upper");
@@ -3716,7 +3716,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
3716
3716
  },
3717
3717
  emits: ["selectInterior"],
3718
3718
  setup(s, { emit: t }) {
3719
- const e = s, n = t, a = Ze($e);
3719
+ const e = s, n = t, a = Ze(Be);
3720
3720
  return (o, r) => {
3721
3721
  const l = E("v-icon"), m = E("v-btn"), p = E("v-img"), i = E("v-menu");
3722
3722
  return v(), D("div", null, [
@@ -3785,13 +3785,13 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
3785
3785
  return (o, r) => {
3786
3786
  const l = E("v-img");
3787
3787
  return v(), D("div", {
3788
- style: ce(n.value),
3788
+ style: de(n.value),
3789
3789
  class: "compass-wrapper"
3790
3790
  }, [
3791
3791
  C(l, {
3792
3792
  class: "compass-needle",
3793
3793
  src: e.value,
3794
- style: ce(a.value)
3794
+ style: de(a.value)
3795
3795
  }, null, 8, ["src", "style"])
3796
3796
  ], 4);
3797
3797
  };
@@ -3840,7 +3840,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
3840
3840
  },
3841
3841
  emits: ["toggle"],
3842
3842
  setup(s, { emit: t }) {
3843
- const e = s, n = t, a = Ze($e), o = $(() => {
3843
+ const e = s, n = t, a = Ze(Be), o = $(() => {
3844
3844
  let r = "virtualTour";
3845
3845
  return e.showStaticImage || (r = "slideShow"), r;
3846
3846
  });
@@ -4400,7 +4400,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
4400
4400
  __name: "VTutorial",
4401
4401
  emits: ["closeTutorial"],
4402
4402
  setup(s, { emit: t }) {
4403
- const e = t, n = Ze($e), a = d(!1), o = d(!1), r = $(() => [
4403
+ const e = t, n = Ze(Be), a = d(!1), o = d(!1), r = $(() => [
4404
4404
  /Android/i,
4405
4405
  /webOS/i,
4406
4406
  /iPhone/i,
@@ -4414,7 +4414,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
4414
4414
  }
4415
4415
  return (m, p) => {
4416
4416
  const i = E("v-icon"), f = E("v-card-title"), w = E("v-btn"), k = E("v-divider"), c = E("v-card-text"), h = E("v-card-actions"), _ = E("v-card"), y = E("v-expand-transition"), g = E("v-checkbox");
4417
- return v(), V(Ee, { name: "fade-transition" }, {
4417
+ return v(), V(Ve, { name: "fade-transition" }, {
4418
4418
  default: b(() => [
4419
4419
  C(_, {
4420
4420
  class: "mx-auto",
@@ -5022,14 +5022,14 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
5022
5022
  t.storey.position.y,
5023
5023
  t.storey.position.z
5024
5024
  )), y = $(() => parseFloat(c.value.floor_vertical_position)), g = $(() => k.value.map((x) => {
5025
- const S = x.uposition.split(","), H = new it(
5025
+ const S = x.uposition.split(","), Y = new it(
5026
5026
  Number(S[0]) - _.value.x,
5027
5027
  0,
5028
5028
  Number(S[2]) - _.value.z
5029
5029
  );
5030
5030
  return {
5031
5031
  ...x,
5032
- ...X(r.value, H)
5032
+ ...X(r.value, Y)
5033
5033
  };
5034
5034
  })), T = $(() => ({
5035
5035
  backgroundImage: `url(${t.backgroundImage})`,
@@ -5061,8 +5061,8 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
5061
5061
  };
5062
5062
  }
5063
5063
  function X(x, S) {
5064
- var H = new it();
5065
- const G = H.subVectors(x, S);
5064
+ var Y = new it();
5065
+ const G = Y.subVectors(x, S);
5066
5066
  return {
5067
5067
  relativePosition: G,
5068
5068
  left: G.x / a.value * 100,
@@ -5072,53 +5072,53 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
5072
5072
  function B() {
5073
5073
  const x = t.storey.position.y - y.value;
5074
5074
  o.value = 2 * (x * Math.tan(P(t.storey.fovY / 2))), a.value = 512 / 384 * o.value;
5075
- const S = o.value / 2, H = a.value / 2, G = new it(H * -1, 0, S * -1);
5075
+ const S = o.value / 2, Y = a.value / 2, G = new it(Y * -1, 0, S * -1);
5076
5076
  r.value = G;
5077
5077
  }
5078
5078
  function te() {
5079
5079
  const x = document.getElementById("moveableDiv");
5080
5080
  if (!x)
5081
5081
  return;
5082
- const S = x.offsetHeight / 384 * 0.8, H = x.offsetWidth / 512 * 0.8;
5083
- x.offsetHeight > x.offsetWidth ? p.value = H * 0.5 : p.value = S * 0.9;
5082
+ const S = x.offsetHeight / 384 * 0.8, Y = x.offsetWidth / 512 * 0.8;
5083
+ x.offsetHeight > x.offsetWidth ? p.value = Y * 0.5 : p.value = S * 0.9;
5084
5084
  }
5085
5085
  return (x, S) => (v(), D("div", pr, [
5086
5086
  u("div", fr, [
5087
5087
  u("div", {
5088
5088
  class: "web-minimap",
5089
- style: ce(M.value)
5089
+ style: de(M.value)
5090
5090
  }, [
5091
5091
  u("div", {
5092
5092
  class: "minimap-background-image",
5093
- style: ce(T.value)
5093
+ style: de(T.value)
5094
5094
  }, null, 4),
5095
5095
  u("div", {
5096
5096
  class: "center-pivot",
5097
- style: ce(m.value)
5097
+ style: de(m.value)
5098
5098
  }, [
5099
- (v(!0), D(me, null, _e(g.value, (H) => (v(), D("div", {
5100
- key: H.id
5099
+ (v(!0), D(me, null, _e(g.value, (Y) => (v(), D("div", {
5100
+ key: Y.id
5101
5101
  }, [
5102
- c.value.floorLevel === H.floorLevel ? (v(), D("div", {
5102
+ c.value.floorLevel === Y.floorLevel ? (v(), D("div", {
5103
5103
  key: 0,
5104
5104
  class: "single-camera-marker",
5105
- style: ce(L(H))
5105
+ style: de(L(Y))
5106
5106
  }, null, 4)) : R("", !0),
5107
5107
  ne(x.$slots, "default", {
5108
- id: H.id,
5109
- camera: H,
5110
- active: c.value.id === H.id,
5111
- style: ce({
5112
- ...L(H),
5108
+ id: Y.id,
5109
+ camera: Y,
5110
+ active: c.value.id === Y.id,
5111
+ style: de({
5112
+ ...L(Y),
5113
5113
  position: "absolute",
5114
5114
  zIndex: "3"
5115
5115
  })
5116
5116
  }, () => [
5117
- c.value.id === H.id && t.rotation !== null ? (v(), V(mr, {
5117
+ c.value.id === Y.id && t.rotation !== null ? (v(), V(mr, {
5118
5118
  key: 0,
5119
5119
  class: "rotation-marker-component-base rotation-marker-component",
5120
5120
  rotation: h.value,
5121
- style: ce({ ...L(H) })
5121
+ style: de({ ...L(Y) })
5122
5122
  }, null, 8, ["rotation", "style"])) : R("", !0)
5123
5123
  ], !0)
5124
5124
  ]))), 128))
@@ -5138,7 +5138,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
5138
5138
  const t = s, e = $(() => t.rotation + t.transformAngle - 90);
5139
5139
  return (n, a) => (v(), D("div", {
5140
5140
  class: "minimap-compass elevation-5",
5141
- style: ce({ scale: n.scale })
5141
+ style: de({ scale: n.scale })
5142
5142
  }, [
5143
5143
  C(lt, {
5144
5144
  class: "north-indicator",
@@ -5203,7 +5203,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
5203
5203
  }
5204
5204
  async function c(y) {
5205
5205
  const T = await (await fetch(
5206
- ue(
5206
+ ce(
5207
5207
  e.cdnFileResolver,
5208
5208
  `/${e.apartmentJson.type}/${e.apartmentJson.id}/minimap/${y}`
5209
5209
  )
@@ -5483,7 +5483,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
5483
5483
  },
5484
5484
  emits: ["toggleSunStudy"],
5485
5485
  setup(s, { emit: t }) {
5486
- const e = t, n = Ze($e);
5486
+ const e = t, n = Ze(Be);
5487
5487
  return (a, o) => {
5488
5488
  const r = E("v-btn");
5489
5489
  return !a.displaySunsim && a.showUI ? (v(), V(r, {
@@ -5658,7 +5658,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
5658
5658
  }, Yr = /* @__PURE__ */ W({
5659
5659
  __name: "VSocialShare",
5660
5660
  setup(s) {
5661
- const t = Ze($e), e = d(!1), n = d(location.href);
5661
+ const t = Ze(Be), e = d(!1), n = d(location.href);
5662
5662
  function a() {
5663
5663
  return window.open(
5664
5664
  "https://www.facebook.com/sharer/sharer.php?u=" + encodeURIComponent(location.href),
@@ -5831,7 +5831,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
5831
5831
  return (n, a) => (v(), D("div", zr, [
5832
5832
  u("div", {
5833
5833
  class: ge(["img-div", [n.aspectRatio]]),
5834
- style: ce(e.value)
5834
+ style: de(e.value)
5835
5835
  }, null, 6)
5836
5836
  ]));
5837
5837
  }
@@ -6003,7 +6003,7 @@ const Nr = {
6003
6003
  screenToWorld: La,
6004
6004
  clearCurrentMarkerLayer: Aa
6005
6005
  });
6006
- const H = d(!1), G = d(!1), de = d(!1), j = d(), O = d(), J = d(), q = d(), oe = d(), re = d(0), se = d(), be = d(), ie = d(), Fe = d(0), Le = d(0), ze = d(0), we = d(!1), xe = d(!1), Be = d(), De = d(!1), N = d(!1), K = d(
6006
+ const Y = d(!1), G = d(!1), ue = d(!1), j = d(), O = d(), J = d(), q = d(), oe = d(), re = d(0), se = d(), be = d(), ie = d(), Fe = d(0), Le = d(0), ze = d(0), we = d(!1), xe = d(!1), Re = d(), De = d(!1), N = d(!1), K = d(
6007
6007
  new ia(document, "player-wrapper")
6008
6008
  ), ve = d(), je = $(() => {
6009
6009
  if (O.value) {
@@ -6014,7 +6014,7 @@ const Nr = {
6014
6014
  return z = z.sort(), z;
6015
6015
  } else
6016
6016
  return [];
6017
- }), Re = $(() => {
6017
+ }), Ue = $(() => {
6018
6018
  let F = 0;
6019
6019
  if (O.value) {
6020
6020
  const z = O.value.cameras.map(
@@ -6028,7 +6028,7 @@ const Nr = {
6028
6028
  Se !== -1 && (F = Se);
6029
6029
  }
6030
6030
  return F;
6031
- }), Y = $(() => he.value.findIndex(
6031
+ }), H = $(() => he.value.findIndex(
6032
6032
  (F) => F.archetypeID === se.value
6033
6033
  )), Q = $(() => J.value ? J.value.cameras.map((F) => ({
6034
6034
  ...F,
@@ -6052,21 +6052,21 @@ const Nr = {
6052
6052
  `/${F.archetypeID}/${o.value}/thumbs/200/${z}.jpg`
6053
6053
  )
6054
6054
  };
6055
- }) : []), Ye = $(() => {
6056
- if (q.value && q.value.storeys && Re.value in q.value.storeys)
6057
- return q.value.storeys[Re.value];
6058
- }), rt = $(() => O.value && O.value.timeInHours), Ue = $(() => {
6055
+ }) : []), Ee = $(() => {
6056
+ if (q.value && q.value.storeys && Ue.value in q.value.storeys)
6057
+ return q.value.storeys[Ue.value];
6058
+ }), rt = $(() => O.value && O.value.timeInHours), He = $(() => {
6059
6059
  if (O.value && O.value.timeInHours && f.value)
6060
6060
  return Va(O.value.timeInHours);
6061
6061
  });
6062
6062
  at(
6063
- $e,
6064
- p.value ? new He(p.value) : new He()
6063
+ Be,
6064
+ p.value ? new Ye(p.value) : new Ye()
6065
6065
  );
6066
6066
  const Ne = $(() => /Android|webOS|iPhone|iPad|BlackBerry|Windows Phone|Opera Mini|IEMobile|Mobile/i.test(
6067
6067
  window.navigator.userAgent
6068
6068
  )), Vt = $(() => Ne.value ? "platform-mobile" : "platform-desktop"), ua = $(() => {
6069
- const F = ue(
6069
+ const F = ce(
6070
6070
  a.value,
6071
6071
  "/config.json"
6072
6072
  );
@@ -6082,7 +6082,7 @@ const Nr = {
6082
6082
  try {
6083
6083
  be.value = void 0, await va(), pa(), await ma(), K.value.setup(), fa();
6084
6084
  } catch (F) {
6085
- de.value = !0, S("onError", F);
6085
+ ue.value = !0, S("onError", F);
6086
6086
  }
6087
6087
  },
6088
6088
  { immediate: !0 }
@@ -6096,27 +6096,27 @@ const Nr = {
6096
6096
  if (De.value) {
6097
6097
  N.value = !1;
6098
6098
  const F = Je(ie.value);
6099
- Be.value = F[0].timeSamples.find(
6099
+ Re.value = F[0].timeSamples.find(
6100
6100
  (z) => z.timeInHours === F[0].defaultHour
6101
6101
  );
6102
6102
  } else
6103
6103
  N.value = !0, oe.value.unloadSunSim();
6104
6104
  }), Ie(async () => {
6105
6105
  try {
6106
- ua.value ? (H.value = !1, N.value = !0) : setTimeout(() => {
6107
- H.value = !0;
6106
+ ua.value ? (Y.value = !1, N.value = !0) : setTimeout(() => {
6107
+ Y.value = !0;
6108
6108
  }, 1e3);
6109
6109
  } catch (F) {
6110
- de.value = !0, S("onError", F);
6110
+ ue.value = !0, S("onError", F);
6111
6111
  }
6112
6112
  }), Qe(() => {
6113
6113
  document.removeEventListener("wheel", St);
6114
6114
  });
6115
6115
  function ca(F = !1) {
6116
- N.value = !0, H.value = !1, F && da();
6116
+ N.value = !0, Y.value = !1, F && da();
6117
6117
  }
6118
6118
  function da() {
6119
- const F = ue(
6119
+ const F = ce(
6120
6120
  a.value,
6121
6121
  "/config.json"
6122
6122
  );
@@ -6177,7 +6177,7 @@ const Nr = {
6177
6177
  } catch (F) {
6178
6178
  console.error(
6179
6179
  "Error loading config.json - ",
6180
- ue(a.value, "/config.json"),
6180
+ ce(a.value, "/config.json"),
6181
6181
  F
6182
6182
  );
6183
6183
  return;
@@ -6319,7 +6319,7 @@ const Nr = {
6319
6319
  return S("onSnapshot", Xe, $a), Xe;
6320
6320
  }
6321
6321
  function ft(F) {
6322
- let z = ue(a.value, F);
6322
+ let z = ce(a.value, F);
6323
6323
  return z && I.value && !z.startsWith("blob:") && (z = z + `?v=${Date.now()}`), z;
6324
6324
  }
6325
6325
  async function ht(F) {
@@ -6357,13 +6357,13 @@ const Nr = {
6357
6357
  return v(), D("div", {
6358
6358
  class: ge(["virtual-tour-wrapper", [Vt.value]])
6359
6359
  }, [
6360
- de.value ? (v(), D("div", Nr, "Error loading the player!!")) : R("", !0),
6360
+ ue.value ? (v(), D("div", Nr, "Error loading the player!!")) : R("", !0),
6361
6361
  u("div", Gr, [
6362
- !K.value.isActive && q.value && ie.value && Ye.value && se.value && xe.value ? (v(), V(Nt, {
6362
+ !K.value.isActive && q.value && ie.value && Ee.value && se.value && xe.value ? (v(), V(Nt, {
6363
6363
  key: 0,
6364
6364
  "cdn-file-resolver": A(a),
6365
6365
  "apartment-json": O.value,
6366
- level: Re.value,
6366
+ level: Ue.value,
6367
6367
  "minimap-json": q.value,
6368
6368
  rotation: Fe.value,
6369
6369
  "current-camera": ie.value,
@@ -6377,7 +6377,7 @@ const Nr = {
6377
6377
  ref_key: "vPlayerInstance",
6378
6378
  ref: ve,
6379
6379
  "cdn-file-resolver": A(a),
6380
- style: ce({ zIndex: we.value ? 1 : 2 }),
6380
+ style: de({ zIndex: we.value ? 1 : 2 }),
6381
6381
  "show-static-image": we.value,
6382
6382
  "current-camera-id": be.value,
6383
6383
  "mouse-sensitivity": A(P),
@@ -6411,11 +6411,11 @@ const Nr = {
6411
6411
  icon: "mdi-alert-outline",
6412
6412
  elevation: "3",
6413
6413
  class: "mr-2",
6414
- onClick: z[2] || (z[2] = (Se) => H.value = !H.value)
6414
+ onClick: z[2] || (z[2] = (Se) => Y.value = !Y.value)
6415
6415
  }, null, 512), [
6416
6416
  [ke, N.value]
6417
6417
  ]),
6418
- q.value && be.value && Ye.value ? Ce((v(), V(le, {
6418
+ q.value && be.value && Ee.value ? Ce((v(), V(le, {
6419
6419
  key: 1,
6420
6420
  density: "comfortable",
6421
6421
  elevation: "3",
@@ -6451,17 +6451,17 @@ const Nr = {
6451
6451
  }, [
6452
6452
  N.value && O.value && rt.value && A(f) ? (v(), V(Xl, {
6453
6453
  key: 0,
6454
- hours: Ue.value.hours,
6455
- minutes: Ue.value.minutes,
6454
+ hours: He.value.hours,
6455
+ minutes: He.value.minutes,
6456
6456
  class: "time-of-day",
6457
- style: ce({
6458
- cursor: q.value && ie.value && Ye.value ? "pointer" : "default"
6457
+ style: de({
6458
+ cursor: q.value && ie.value && Ee.value ? "pointer" : "default"
6459
6459
  })
6460
6460
  }, null, 8, ["hours", "minutes", "style"])) : R("", !0)
6461
6461
  ])
6462
6462
  ]),
6463
6463
  "center-left": b(() => [
6464
- C(Ee, { name: "slide-x-transition" }, {
6464
+ C(Ve, { name: "slide-x-transition" }, {
6465
6465
  default: b(() => [
6466
6466
  we.value ? (v(), V(le, {
6467
6467
  key: 0,
@@ -6475,23 +6475,23 @@ const Nr = {
6475
6475
  })
6476
6476
  ]),
6477
6477
  "center-center": b(() => [
6478
- H.value ? (v(), V(Vs, {
6478
+ Y.value ? (v(), V(Vs, {
6479
6479
  key: 0,
6480
6480
  onCloseTutorial: z[5] || (z[5] = (Se) => ca(Se))
6481
6481
  })) : R("", !0),
6482
- K.value.isActive && q.value && ie.value && Ye.value && xe.value ? (v(), V(Nt, {
6482
+ K.value.isActive && q.value && ie.value && Ee.value && xe.value ? (v(), V(Nt, {
6483
6483
  key: 1,
6484
6484
  "cdn-file-resolver": A(a),
6485
6485
  "apartment-json": O.value,
6486
6486
  "minimap-json": q.value,
6487
6487
  rotation: Fe.value,
6488
6488
  "current-camera": ie.value,
6489
- level: Re.value,
6489
+ level: Ue.value,
6490
6490
  onClose: z[6] || (z[6] = (Se) => xe.value = !1)
6491
6491
  }, null, 8, ["cdn-file-resolver", "apartment-json", "minimap-json", "rotation", "current-camera", "level"])) : R("", !0)
6492
6492
  ]),
6493
6493
  "center-right": b(() => [
6494
- C(Ee, { name: "slide-x-reverse-transition" }, {
6494
+ C(Ve, { name: "slide-x-reverse-transition" }, {
6495
6495
  default: b(() => [
6496
6496
  we.value ? (v(), V(le, {
6497
6497
  key: 0,
@@ -6531,7 +6531,7 @@ const Nr = {
6531
6531
  ])) : R("", !0)
6532
6532
  ]),
6533
6533
  "bottom-center": b(() => [
6534
- C(Ee, null, {
6534
+ C(Ve, null, {
6535
6535
  default: b(() => [
6536
6536
  u("div", null, [
6537
6537
  u("div", {
@@ -6547,11 +6547,11 @@ const Nr = {
6547
6547
  onToggleSunStudy: z[7] || (z[7] = (Se) => De.value = !De.value)
6548
6548
  }, null, 8, ["displaySunsim", "showUI"])) : R("", !0)
6549
6549
  ], 2),
6550
- !Ne.value && !Pe.value && be.value && De.value && Ge.value(ie.value) && Je(ie.value)[0] && Be.value ? (v(), V(Gt, {
6550
+ !Ne.value && !Pe.value && be.value && De.value && Ge.value(ie.value) && Je(ie.value)[0] && Re.value ? (v(), V(Gt, {
6551
6551
  key: 0,
6552
6552
  class: "sunsim-slider-desktop",
6553
6553
  "current-day": Ge.value(ie.value) ? Je(ie.value)[0] : void 0,
6554
- "current-time": Be.value,
6554
+ "current-time": Re.value,
6555
6555
  onOnTimeChange: Ht,
6556
6556
  onToggleSunStudy: z[8] || (z[8] = (Se) => De.value = !De.value)
6557
6557
  }, null, 8, ["current-day", "current-time"])) : R("", !0),
@@ -6585,14 +6585,14 @@ const Nr = {
6585
6585
  key: 0,
6586
6586
  "cdn-file-resolver": A(a),
6587
6587
  "available-archetypes": ye.value,
6588
- "selected-index": Y.value,
6588
+ "selected-index": H.value,
6589
6589
  onSelectInterior: Ut
6590
6590
  }, null, 8, ["cdn-file-resolver", "available-archetypes", "selected-index"])) : R("", !0)
6591
6591
  ])
6592
6592
  ]),
6593
6593
  _: 1
6594
6594
  }, 8, ["cdn-file-resolver", "style", "show-static-image", "current-camera-id", "mouse-sensitivity", "interior-id", "apartment-id"]),
6595
- C(Ee, null, {
6595
+ C(Ve, null, {
6596
6596
  default: b(() => [
6597
6597
  A(i) && J.value && Ne.value && N.value ? (v(), V(_t, {
6598
6598
  key: 0,
@@ -6617,11 +6617,11 @@ const Nr = {
6617
6617
  _: 1
6618
6618
  }),
6619
6619
  Ne.value ? (v(), D("div", ei, [
6620
- !Pe.value && be.value && De.value && Ge.value(ie.value) && Je(ie.value)[0] && Be.value ? (v(), V(Gt, {
6620
+ !Pe.value && be.value && De.value && Ge.value(ie.value) && Je(ie.value)[0] && Re.value ? (v(), V(Gt, {
6621
6621
  key: 0,
6622
6622
  class: "mt-1",
6623
6623
  "current-day": Ge.value(ie.value) ? Je(ie.value)[0] : void 0,
6624
- "current-time": Be.value,
6624
+ "current-time": Re.value,
6625
6625
  onOnTimeChange: Ht,
6626
6626
  onToggleSunStudy: z[11] || (z[11] = (Se) => De.value = !De.value)
6627
6627
  }, null, 8, ["current-day", "current-time"])) : R("", !0)
@@ -6715,8 +6715,8 @@ const Nr = {
6715
6715
  setup(s) {
6716
6716
  const t = s;
6717
6717
  at(
6718
- $e,
6719
- t.i18nConfig ? new He(t.i18nConfig) : new He()
6718
+ Be,
6719
+ t.i18nConfig ? new Ye(t.i18nConfig) : new Ye()
6720
6720
  );
6721
6721
  const e = d(0), n = d(
6722
6722
  new ia(document, "player-wrapper")
@@ -6765,7 +6765,7 @@ const Nr = {
6765
6765
  "top-center": b(() => []),
6766
6766
  "top-right": b(() => []),
6767
6767
  "center-left": b(() => [
6768
- C(Ee, { name: "slide-x-transition" }, {
6768
+ C(Ve, { name: "slide-x-transition" }, {
6769
6769
  default: b(() => [
6770
6770
  a.value.length > 1 ? (v(), V(k, {
6771
6771
  key: 0,
@@ -6780,7 +6780,7 @@ const Nr = {
6780
6780
  ]),
6781
6781
  "center-center": b(() => []),
6782
6782
  "center-right": b(() => [
6783
- C(Ee, { name: "slide-x-reverse-transition" }, {
6783
+ C(Ve, { name: "slide-x-reverse-transition" }, {
6784
6784
  default: b(() => [
6785
6785
  a.value.length > 1 ? (v(), V(k, {
6786
6786
  key: 0,
@@ -6859,7 +6859,7 @@ const Nr = {
6859
6859
  a("cameraSet", f.value);
6860
6860
  });
6861
6861
  const k = $(() => {
6862
- const y = ue(n.cdnFileResolver.value, "").replace(
6862
+ const y = ce(n.cdnFileResolver.value, "").replace(
6863
6863
  `/${o.value.type}/${o.value.id}`,
6864
6864
  ""
6865
6865
  );
@@ -6872,16 +6872,16 @@ const Nr = {
6872
6872
  n.cdnFileResolver,
6873
6873
  async () => {
6874
6874
  o.value = await (await fetch(
6875
- ue(n.cdnFileResolver.value, "/apartment.json")
6875
+ ce(n.cdnFileResolver.value, "/apartment.json")
6876
6876
  )).json(), a("apartmentJsonLoaded", o.value), r.value = await (await fetch(
6877
- ue(n.cdnFileResolver.value, "/minimap/minimap.json")
6877
+ ce(n.cdnFileResolver.value, "/minimap/minimap.json")
6878
6878
  )).json(), a("minimapJsonLoaded", r.value);
6879
6879
  },
6880
6880
  { immediate: !0 }
6881
6881
  ), U(
6882
6882
  [c, n.cdnFileResolver],
6883
6883
  () => {
6884
- n.cdnFileResolver.value && c.value && (l.value = c.value.defaultSunsimFile ? ue(n.cdnFileResolver.value, "/minimap/sunsim0_13.jpg") : ue(
6884
+ n.cdnFileResolver.value && c.value && (l.value = c.value.defaultSunsimFile ? ce(n.cdnFileResolver.value, "/minimap/sunsim0_13.jpg") : ce(
6885
6885
  n.cdnFileResolver.value,
6886
6886
  `/minimap/${c.value.defaultSunsimFile}`
6887
6887
  ));
@@ -6899,7 +6899,7 @@ const Nr = {
6899
6899
  default: b(() => [
6900
6900
  u("div", null, [
6901
6901
  u("div", {
6902
- style: ce({ ...w.value, position: "relative" }),
6902
+ style: de({ ...w.value, position: "relative" }),
6903
6903
  ref_key: "fitContainer",
6904
6904
  ref: p
6905
6905
  }, [
@@ -6925,7 +6925,7 @@ const Nr = {
6925
6925
  id: T,
6926
6926
  camera: M,
6927
6927
  active: P,
6928
- style: ce(I)
6928
+ style: de(I)
6929
6929
  }, void 0, !0)
6930
6930
  ]),
6931
6931
  _: 3
@@ -6953,7 +6953,7 @@ const Nr = {
6953
6953
  currentTime: {}
6954
6954
  },
6955
6955
  setup(s) {
6956
- const t = s, { timeSampleData: e, cdnFileResolver: n, currentTime: a } = Te(t), o = $(() => ue(n.value, e.value.filename));
6956
+ const t = s, { timeSampleData: e, cdnFileResolver: n, currentTime: a } = Te(t), o = $(() => ce(n.value, e.value.filename));
6957
6957
  return (r, l) => Ce((v(), D("img", {
6958
6958
  key: o.value,
6959
6959
  src: o.value,
@@ -6989,7 +6989,7 @@ const Nr = {
6989
6989
  currentTime: {}
6990
6990
  },
6991
6991
  setup(s) {
6992
- const t = s, { cameraData: e, cdnFileResolver: n, currentCamera: a, currentTime: o } = Te(t), r = $(() => ue(
6992
+ const t = s, { cameraData: e, cdnFileResolver: n, currentCamera: a, currentTime: o } = Te(t), r = $(() => ce(
6993
6993
  n.value,
6994
6994
  a.value.defaultFilename
6995
6995
  ));
@@ -7015,7 +7015,7 @@ const Nr = {
7015
7015
  currentTransition: {}
7016
7016
  },
7017
7017
  setup(s) {
7018
- const t = s, { transitionData: e, cdnFileResolver: n, currentTransition: a } = Te(t), o = $(() => ue(n.value, e.value.filename));
7018
+ const t = s, { transitionData: e, cdnFileResolver: n, currentTransition: a } = Te(t), o = $(() => ce(n.value, e.value.filename));
7019
7019
  return (r, l) => Ce((v(), D("img", {
7020
7020
  key: o.value,
7021
7021
  src: o.value,
@@ -7170,8 +7170,8 @@ const Ti = {
7170
7170
  c.cameraName ? (v(), D("div", Ri, Z(c.cameraName), 1)) : R("", !0),
7171
7171
  u("div", {
7172
7172
  class: "camera-thumbnail-image",
7173
- style: ce({
7174
- backgroundImage: `url(${A(ue)(
7173
+ style: de({
7174
+ backgroundImage: `url(${A(ce)(
7175
7175
  A(r),
7176
7176
  c.defaultFilename
7177
7177
  )})`
@@ -7218,13 +7218,13 @@ const Ti = {
7218
7218
  const f = E("v-icon"), w = E("v-slider"), k = E("v-field");
7219
7219
  return v(), D("div", {
7220
7220
  class: ge({ "d-inline-block": !0, mobile: A(n) }),
7221
- style: ce({
7221
+ style: de({
7222
7222
  flex: A(n) && A(a).timeSamples.length > 1 ? 1 : void 0,
7223
7223
  verticalAlign: "top"
7224
7224
  })
7225
7225
  }, [
7226
7226
  C(k, {
7227
- style: ce(
7227
+ style: de(
7228
7228
  A(a).timeSamples.length > 1 ? {
7229
7229
  width: A(n) ? "100%" : "300px",
7230
7230
  height: A(n) ? "28px" : "36px"
@@ -7337,7 +7337,7 @@ const Ti = {
7337
7337
  emits: ["onClick", "onHoverOver", "onHoverOut", "updateSvgContainer", "onError"],
7338
7338
  setup(s, { emit: t }) {
7339
7339
  const e = s, { cdnFileResolver: n, colorCallback: a, currentCamera: o, selectedId: r } = Te(e), l = t, m = d(!0), p = d(), i = d(), f = bt({});
7340
- Ve(() => {
7340
+ $e(() => {
7341
7341
  for (const c in f) {
7342
7342
  const { element: h, state: _ } = f[c], { r: y, g, b: T, a: M, s: P } = a.value(c, _) || {
7343
7343
  r: 0,
@@ -7351,10 +7351,10 @@ const Ti = {
7351
7351
  }), U(r, () => {
7352
7352
  for (const c in f)
7353
7353
  f[c].state === "selected" && c !== r.value ? f[c].state = "idle" : f[c].state !== "selected" && c === r.value && (f[c].state = "selected");
7354
- }), Ve(async () => {
7354
+ }), $e(async () => {
7355
7355
  try {
7356
7356
  m.value = !1, p.value = await Me.loadText(
7357
- ue(n.value, o.value.overlayFilename)
7357
+ ce(n.value, o.value.overlayFilename)
7358
7358
  ), k();
7359
7359
  } catch (c) {
7360
7360
  l("onError", c);
@@ -7421,7 +7421,7 @@ const Ti = {
7421
7421
  }
7422
7422
  });
7423
7423
  }
7424
- return (c, h) => (v(), V(Ee, null, {
7424
+ return (c, h) => (v(), V(Ve, null, {
7425
7425
  default: b(() => [
7426
7426
  Ce((v(), D("div", {
7427
7427
  ref_key: "svgContainer",
@@ -7766,10 +7766,10 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
7766
7766
  mobileBreakpoint: k
7767
7767
  } = Te(n), c = e;
7768
7768
  at(
7769
- $e,
7770
- l.value ? new He(l.value) : new He()
7769
+ Be,
7770
+ l.value ? new Ye(l.value) : new Ye()
7771
7771
  );
7772
- const h = d(), _ = d(), y = d(), g = d(null), T = d(4), M = d(), P = d(!1), I = d(!1), L = d(), X = $(() => L.value.isHoverEnabled), B = d({ x: 0, y: 0, width: 0, height: 0 }), te = d(), x = d(), S = d(), H = d(!1), G = d(), de = d({
7772
+ const h = d(), _ = d(), y = d(), g = d(null), T = d(4), M = d(), P = d(!1), I = d(!1), L = d(), X = $(() => L.value.isHoverEnabled), B = d({ x: 0, y: 0, width: 0, height: 0 }), te = d(), x = d(), S = d(), Y = d(!1), G = d(), ue = d({
7773
7773
  current: 100,
7774
7774
  min: 100,
7775
7775
  max: 1e3
@@ -7780,24 +7780,26 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
7780
7780
  currentDay: _.value,
7781
7781
  currentTime: y.value,
7782
7782
  currentTransition: g.value,
7783
- currentScene: T.value
7783
+ currentScene: T.value,
7784
+ currentZoom: ue.value.current
7784
7785
  }),
7785
7786
  setState: ({
7786
- currentCamera: Y,
7787
+ currentCamera: H,
7787
7788
  currentDay: Q,
7788
7789
  currentTime: fe,
7789
7790
  currentTransition: he,
7790
- currentScene: ye
7791
+ currentScene: ye,
7792
+ currentZoom: Ee
7791
7793
  }) => {
7792
- h.value = Y, _.value = Q, y.value = fe, g.value = he, T.value = ye;
7794
+ h.value = H, _.value = Q, y.value = fe, g.value = he, T.value = ye, ue.value.current = Ee;
7793
7795
  }
7794
7796
  }), Ie(() => {
7795
7797
  P.value = !0, j.value = !1;
7796
7798
  }), U(
7797
7799
  a,
7798
- (Y) => {
7800
+ (H) => {
7799
7801
  try {
7800
- j.value = !1, S.value = nu(Y);
7802
+ j.value = !1, S.value = nu(H);
7801
7803
  } catch (Q) {
7802
7804
  j.value = !0, c("onError", Q);
7803
7805
  }
@@ -7805,8 +7807,8 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
7805
7807
  {
7806
7808
  immediate: !0
7807
7809
  }
7808
- ), U(P, (Y) => {
7809
- Y && c("onInitialize");
7810
+ ), U(P, (H) => {
7811
+ H && c("onInitialize");
7810
7812
  });
7811
7813
  const O = d(), J = d(0);
7812
7814
  U(
@@ -7822,7 +7824,7 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
7822
7824
  () => x.value,
7823
7825
  () => {
7824
7826
  x.value && new ResizeObserver(([Q]) => {
7825
- H.value = Q.contentRect.width < k.value;
7827
+ Y.value = Q.contentRect.width < k.value;
7826
7828
  }).observe(x.value);
7827
7829
  }
7828
7830
  );
@@ -7835,9 +7837,9 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
7835
7837
  [S, o, i],
7836
7838
  async () => {
7837
7839
  o.value && q.value.length > 0 && (i.value ? h.value = q.value.find(
7838
- (Y) => Y.cameraName === i.value
7840
+ (H) => H.cameraName === i.value
7839
7841
  ) || q.value[0] : h.value = q.value[0], T.value = S.value.cameras.findIndex(
7840
- (Y) => Y === h.value
7842
+ (H) => H === h.value
7841
7843
  ), T.value = Math.max(0, T.value));
7842
7844
  },
7843
7845
  { immediate: !0 }
@@ -7845,7 +7847,7 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
7845
7847
  [S, o, f],
7846
7848
  () => {
7847
7849
  S.value && o.value && h.value && h.value.sunsimDayOfYear && h.value.sunsimDayOfYear.length > 0 && (f.value ? _.value = h.value.sunsimDayOfYear.find(
7848
- (Y) => Y.dayOfYear === f.value
7850
+ (H) => H.dayOfYear === f.value
7849
7851
  ) || h.value.sunsimDayOfYear[0] : _.value = h.value.sunsimDayOfYear[0]);
7850
7852
  },
7851
7853
  { immediate: !0 }
@@ -7853,28 +7855,28 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
7853
7855
  [S, o, w],
7854
7856
  () => {
7855
7857
  S.value && o.value && _.value && _.value.timeSamples && _.value.timeSamples.length > 0 && (w.value ? y.value = _.value.timeSamples.find(
7856
- (Y) => Y.timeInHours === w.value
7858
+ (H) => H.timeInHours === w.value
7857
7859
  ) || _.value.timeSamples[0] : y.value = _.value.timeSamples.find(
7858
- (Y) => Y.timeInHours === _.value.defaultHour
7860
+ (H) => H.timeInHours === _.value.defaultHour
7859
7861
  ) || _.value.timeSamples[0]);
7860
7862
  },
7861
7863
  { immediate: !0 }
7862
7864
  );
7863
- function re(Y) {
7864
- h.value !== Y && K(
7865
- S.value.cameras.findIndex((Q) => Q === Y)
7865
+ function re(H) {
7866
+ h.value !== H && K(
7867
+ S.value.cameras.findIndex((Q) => Q === H)
7866
7868
  );
7867
7869
  }
7868
- function se(Y) {
7869
- T.value = Y, Lt(S.value.cameras[T.value]) ? g.value = S.value.cameras[T.value] : (Ae(() => {
7870
+ function se(H) {
7871
+ T.value = H, Lt(S.value.cameras[T.value]) ? g.value = S.value.cameras[T.value] : (Ae(() => {
7870
7872
  be(
7871
7873
  S.value.cameras[T.value]
7872
7874
  );
7873
7875
  }), g.value = null);
7874
7876
  }
7875
- function be(Y) {
7877
+ function be(H) {
7876
7878
  const Q = _.value;
7877
- h.value = Y, T.value = S.value.cameras.findIndex(
7879
+ h.value = H, T.value = S.value.cameras.findIndex(
7878
7880
  (fe) => fe === h.value
7879
7881
  ), Ae(() => {
7880
7882
  h.value.sunsimDayOfYear && h.value.sunsimDayOfYear.length > 0 && ie(
@@ -7884,9 +7886,9 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
7884
7886
  );
7885
7887
  });
7886
7888
  }
7887
- function ie(Y) {
7889
+ function ie(H) {
7888
7890
  const Q = y.value;
7889
- _.value = Y, Ae(() => {
7891
+ _.value = H, Ae(() => {
7890
7892
  Fe(
7891
7893
  _.value.timeSamples.find(
7892
7894
  (fe) => fe.timeInHours === Q.timeInHours
@@ -7896,26 +7898,26 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
7896
7898
  );
7897
7899
  });
7898
7900
  }
7899
- function Fe(Y) {
7900
- y.value = Y;
7901
+ function Fe(H) {
7902
+ y.value = H;
7901
7903
  }
7902
- function Le(Y) {
7903
- c("onClick", Y, () => {
7904
+ function Le(H) {
7905
+ c("onClick", H, () => {
7904
7906
  const Q = S.value.stillCameraData.find(
7905
- (fe) => fe.id === Y
7907
+ (fe) => fe.id === H
7906
7908
  );
7907
7909
  Q && K(Q.bestIndex);
7908
7910
  });
7909
7911
  }
7910
- function ze(Y) {
7911
- c("onHoverOver", Y), M.value = Y;
7912
+ function ze(H) {
7913
+ c("onHoverOver", H), M.value = H;
7912
7914
  }
7913
- function we(Y) {
7914
- c("onHoverOut", Y), M.value = void 0;
7915
+ function we(H) {
7916
+ c("onHoverOut", H), M.value = void 0;
7915
7917
  }
7916
- function xe(Y) {
7917
- const { layerX: Q, layerY: fe } = Y;
7918
- let he = Y.target, ye = !1;
7918
+ function xe(H) {
7919
+ const { layerX: Q, layerY: fe } = H;
7920
+ let he = H.target, ye = !1;
7919
7921
  for (; he; )
7920
7922
  if (he === te.value) {
7921
7923
  ye = !0;
@@ -7923,49 +7925,49 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
7923
7925
  } else
7924
7926
  he = he.parentElement;
7925
7927
  if (ye) {
7926
- const Ye = Y.currentTarget;
7928
+ const Ee = H.currentTarget;
7927
7929
  B.value = {
7928
7930
  x: Q,
7929
7931
  y: fe,
7930
- width: Ye.clientWidth,
7931
- height: Ye.clientHeight
7932
+ width: Ee.clientWidth,
7933
+ height: Ee.clientHeight
7932
7934
  };
7933
7935
  } else
7934
7936
  B.value = void 0;
7935
- c("onMouseMove", Y, B.value);
7937
+ c("onMouseMove", H, B.value);
7936
7938
  }
7937
- function Be({
7938
- min: Y,
7939
+ function Re({
7940
+ min: H,
7939
7941
  max: Q,
7940
7942
  current: fe
7941
7943
  }) {
7942
- de.value = { min: Y, max: Q, current: fe };
7944
+ ue.value = { min: H, max: Q, current: fe };
7943
7945
  }
7944
- function De(Y) {
7945
- G.value.adjustZoom(Y ? 10 : -10);
7946
+ function De(H) {
7947
+ G.value.adjustZoom(H ? 10 : -10);
7946
7948
  }
7947
- function N(Y) {
7949
+ function N(H) {
7948
7950
  return S.value.stillCameraIndices.findIndex(
7949
- (Q) => Q === Y
7951
+ (Q) => Q === H
7950
7952
  );
7951
7953
  }
7952
- async function K(Y) {
7954
+ async function K(H) {
7953
7955
  const Q = T.value;
7954
7956
  if (S.value.loopable) {
7955
- const fe = S.value.stillCameraIndices.length, he = N(Q), ye = N(Y);
7956
- let Ye = 0, rt = 0, Ue = he;
7957
- for (; Ue++, Ue >= fe && (Ue = 0), Ue !== ye; )
7958
- Ye++;
7959
- for (Ue = he; Ue--, Ue < 0 && (Ue += fe), Ue !== ye; )
7957
+ const fe = S.value.stillCameraIndices.length, he = N(Q), ye = N(H);
7958
+ let Ee = 0, rt = 0, He = he;
7959
+ for (; He++, He >= fe && (He = 0), He !== ye; )
7960
+ Ee++;
7961
+ for (He = he; He--, He < 0 && (He += fe), He !== ye; )
7960
7962
  rt++;
7961
- Ye === rt ? ve(Q, Y) : Ye < rt ? he < ye ? ve(Q, Y) : ve(Q, Y + S.value.cameras.length) : he >= ye ? ve(Q, Y) : ve(Q + S.value.cameras.length, Y);
7963
+ Ee === rt ? ve(Q, H) : Ee < rt ? he < ye ? ve(Q, H) : ve(Q, H + S.value.cameras.length) : he >= ye ? ve(Q, H) : ve(Q + S.value.cameras.length, H);
7962
7964
  } else
7963
- ve(Q, Y);
7965
+ ve(Q, H);
7964
7966
  }
7965
- function ve(Y, Q) {
7967
+ function ve(H, Q) {
7966
7968
  return new Promise((fe) => {
7967
7969
  I.value = !0;
7968
- let he, ye = Y;
7970
+ let he, ye = H;
7969
7971
  he = setInterval(() => {
7970
7972
  ye < Q ? (ye++, T.value = Math.abs(
7971
7973
  ye % S.value.cameras.length
@@ -7975,11 +7977,11 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
7975
7977
  }, 12);
7976
7978
  });
7977
7979
  }
7978
- function je(Y) {
7979
- j.value = !0, c("onError", Y);
7980
+ function je(H) {
7981
+ j.value = !0, c("onError", H);
7980
7982
  }
7981
- const Re = (Y) => Y * (180 / Math.PI);
7982
- return (Y, Q) => {
7983
+ const Ue = (H) => H * (180 / Math.PI);
7984
+ return (H, Q) => {
7983
7985
  const fe = E("v-skeleton-loader");
7984
7986
  return v(), D(me, null, [
7985
7987
  C(fe, {
@@ -7988,52 +7990,52 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
7988
7990
  loading: !P.value || !S.value
7989
7991
  }, {
7990
7992
  default: b(() => [
7991
- C(Ee, { class: "w-100 h-100" }, {
7993
+ C(Ve, { class: "w-100 h-100" }, {
7992
7994
  default: b(() => [
7993
7995
  u("div", {
7994
7996
  ref_key: "container",
7995
7997
  ref: x,
7996
- class: ge({ mobile: H.value }),
7998
+ class: ge({ mobile: Y.value }),
7997
7999
  style: { "min-height": "104px" },
7998
8000
  onMousemove: xe
7999
8001
  }, [
8000
- Y.showUi ? (v(), D("div", {
8002
+ H.showUi ? (v(), D("div", {
8001
8003
  key: 0,
8002
8004
  class: "persistent actions-bar top-right pa-2",
8003
- style: ce({
8005
+ style: de({
8004
8006
  zIndex: 7,
8005
- top: H.value && q.value.length > 1 ? "60px" : 0
8007
+ top: Y.value && q.value.length > 1 ? "60px" : 0
8006
8008
  })
8007
8009
  }, [
8008
8010
  h.value.cameraRotation ? (v(), V(lt, {
8009
8011
  key: 0,
8010
8012
  class: "mb-2",
8011
- style: ce({
8013
+ style: de({
8012
8014
  zIndex: 7,
8013
- width: H.value ? 32 : 40,
8014
- height: H.value ? 32 : 40
8015
+ width: Y.value ? 32 : 40,
8016
+ height: Y.value ? 32 : 40
8015
8017
  }),
8016
- longitude: Re(h.value.cameraRotation.y) + 270
8018
+ longitude: Ue(h.value.cameraRotation.y) + 270
8017
8019
  }, null, 8, ["style", "longitude"])) : R("", !0),
8018
8020
  C(Qi, {
8019
- "is-mobile-sized": H.value,
8020
- "can-zoom-out": de.value.min < de.value.current,
8021
- "can-zoom-in": de.value.max > de.value.current,
8021
+ "is-mobile-sized": Y.value,
8022
+ "can-zoom-out": ue.value.min < ue.value.current,
8023
+ "can-zoom-in": ue.value.max > ue.value.current,
8022
8024
  disabled: I.value,
8023
8025
  onOnZoomIn: Q[0] || (Q[0] = (he) => De(!0)),
8024
8026
  onOnZoomOut: Q[1] || (Q[1] = (he) => De(!1))
8025
8027
  }, null, 8, ["is-mobile-sized", "can-zoom-out", "can-zoom-in", "disabled"])
8026
8028
  ], 4)) : R("", !0),
8027
- Y.showUi && q.value.length > 1 ? (v(), D("div", {
8029
+ H.showUi && q.value.length > 1 ? (v(), D("div", {
8028
8030
  key: 1,
8029
8031
  class: ge([{
8030
8032
  "actions-bar bottom-center pb-2": !0,
8031
- "px-0": H.value
8033
+ "px-0": Y.value
8032
8034
  }, "still-cameras-wrapper"]),
8033
8035
  style: { "z-index": "7" }
8034
8036
  }, [
8035
8037
  C(Yi, {
8036
- "is-mobile-sized": H.value,
8038
+ "is-mobile-sized": Y.value,
8037
8039
  "still-cameras": q.value,
8038
8040
  "current-camera": h.value,
8039
8041
  disabled: I.value,
@@ -8045,7 +8047,7 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
8045
8047
  ref_key: "zoomBox",
8046
8048
  ref: G,
8047
8049
  position: "relative",
8048
- onUpdate: Be
8050
+ onUpdate: Re
8049
8051
  }, {
8050
8052
  default: b(() => [
8051
8053
  (v(!0), D(me, null, _e(q.value, (he, ye) => (v(), V(Fi, {
@@ -8082,47 +8084,48 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
8082
8084
  onOnError: je
8083
8085
  }, null, 8, ["cdn-file-resolver", "color-callback", "current-camera", "selected-id", "activeStructureIds"])), [
8084
8086
  [ke, g.value === null]
8085
- ]) : R("", !0)
8087
+ ]) : R("", !0),
8088
+ ne(H.$slots, "default", {}, void 0, !0)
8086
8089
  ]),
8087
- _: 1
8090
+ _: 3
8088
8091
  }, 512),
8089
- Y.showUi && (_.value && _.value.timeSamples && _.value.timeSamples.length > 1 || h.value.sunsimDayOfYear && h.value.sunsimDayOfYear.length > 1) ? (v(), D("div", {
8092
+ H.showUi && (_.value && _.value.timeSamples && _.value.timeSamples.length > 1 || h.value.sunsimDayOfYear && h.value.sunsimDayOfYear.length > 1) ? (v(), D("div", {
8090
8093
  key: 2,
8091
8094
  class: ge({
8092
8095
  "actions-bar top-left pa-2 d-flex": !0,
8093
- "px-0": H.value
8096
+ "px-0": Y.value
8094
8097
  }),
8095
8098
  style: { "z-index": "7" }
8096
8099
  }, [
8097
8100
  C(Vi, {
8098
8101
  class: "pr-2",
8099
- "is-mobile-sized": H.value,
8102
+ "is-mobile-sized": Y.value,
8100
8103
  "current-camera": h.value,
8101
8104
  "current-day": _.value,
8102
8105
  disabled: I.value,
8103
8106
  onOnDayChange: ie
8104
8107
  }, null, 8, ["is-mobile-sized", "current-camera", "current-day", "disabled"]),
8105
8108
  C(Wi, {
8106
- "is-mobile-sized": H.value,
8109
+ "is-mobile-sized": Y.value,
8107
8110
  "current-day": _.value,
8108
8111
  "current-time": y.value,
8109
8112
  disabled: I.value,
8110
8113
  onOnTimeChange: Fe
8111
8114
  }, null, 8, ["is-mobile-sized", "current-day", "current-time", "disabled"])
8112
8115
  ], 2)) : R("", !0),
8113
- Y.$slots.popup && B.value && M.value ? (v(), V(nt, {
8116
+ H.$slots.popup && B.value && M.value ? (v(), V(nt, {
8114
8117
  key: 3,
8115
8118
  "is-hoverable": X.value,
8116
8119
  pos: B.value
8117
8120
  }, {
8118
8121
  default: b(() => [
8119
8122
  u("div", lu, [
8120
- ne(Y.$slots, "popup", dt(vt({ hoverId: M.value, hoverable: X.value })), void 0, !0)
8123
+ ne(H.$slots, "popup", dt(vt({ hoverId: M.value, hoverable: X.value })), void 0, !0)
8121
8124
  ])
8122
8125
  ]),
8123
8126
  _: 3
8124
8127
  }, 8, ["is-hoverable", "pos"])) : R("", !0),
8125
- Y.version && Y.showVersion ? (v(), D("div", su, " version: " + Z(Y.version), 1)) : R("", !0)
8128
+ H.version && H.showVersion ? (v(), D("div", su, " version: " + Z(H.version), 1)) : R("", !0)
8126
8129
  ], 34)
8127
8130
  ]),
8128
8131
  _: 3
@@ -8137,7 +8140,7 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
8137
8140
  ], 64);
8138
8141
  };
8139
8142
  }
8140
- }), iu = /* @__PURE__ */ ee(ru, [["__scopeId", "data-v-3c195477"]]), hu = {
8143
+ }), iu = /* @__PURE__ */ ee(ru, [["__scopeId", "data-v-7d1794db"]]), hu = {
8141
8144
  install: function(t) {
8142
8145
  t.component("VApartmentChooser", Fn), t.component("VBuildingChooser", Ro), t.component("VVirtualTour", ni), t.component("VManualSlideShow", wi), t.component("VStructureChooser", iu);
8143
8146
  }