@qispace/vue3-player 0.3.47 → 0.3.48

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, a, e) => a in s ? Ba(s, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[a] = e;
3
3
  var he = (s, a, e) => (Ra(s, typeof a != "symbol" ? a + "" : a, e), e);
4
- import { defineComponent as W, ref as c, computed as B, openBlock as v, createElementBlock as D, watch as U, onMounted as Se, onBeforeUnmount as Xe, withDirectives as De, createElementVNode as u, normalizeStyle as ie, vShow as Ae, createVNode as C, Fragment as pe, renderList as Ce, createCommentVNode as R, inject as Ue, resolveComponent as V, withCtx as b, toDisplayString as Q, unref as A, createTextVNode as ae, normalizeClass as ge, createBlock as $, renderSlot as oe, provide as Ze, reactive as St, watchEffect as Re, resolveDynamicComponent as ea, normalizeProps as pt, guardReactiveProps as ft, mergeProps as Te, nextTick as xe, Transition as Be, createSlots as Ua, toRefs as Ee, pushScopeId as It, popScopeId as xt, vModelText as Ha, createStaticVNode as ta, onBeforeUpdate as Ya, withModifiers as za } from "vue";
4
+ import { defineComponent as W, ref as c, computed as B, openBlock as v, createElementBlock as D, watch as U, onMounted as Se, onBeforeUnmount as Xe, withDirectives as De, createElementVNode as u, normalizeStyle as ie, vShow as Ae, createVNode as C, Fragment as pe, renderList as Ce, createCommentVNode as R, inject as Ue, resolveComponent as V, withCtx as b, toDisplayString as Q, unref as A, createTextVNode as ae, normalizeClass as ge, createBlock as $, renderSlot as oe, provide as Ze, reactive as St, watchEffect as Re, resolveDynamicComponent as ea, normalizeProps as pt, guardReactiveProps as ft, mergeProps as Ee, nextTick as xe, Transition as Be, createSlots as Ua, toRefs as Te, pushScopeId as It, popScopeId as xt, vModelText as Ha, createStaticVNode as ta, onBeforeUpdate as Ya, withModifiers as za } from "vue";
5
5
  import Ct from "axios";
6
6
  import * as ja from "@qispace/player-core";
7
7
  import { Vector3 as dt, Object3D as Pa, MathUtils as Wa } from "three";
@@ -82,7 +82,7 @@ const Ga = /* @__PURE__ */ W({
82
82
  },
83
83
  emits: ["selectUnit", "goToUnit", "hoverOver", "hoverOut", "pos"],
84
84
  setup(s, { emit: a }) {
85
- const e = s, o = a, n = c({ x: 0, y: 0, width: 0, height: 0 }), t = c(0), r = c(0), l = c(), d = c(), m = c(), i = c(), p = c(-1), w = c(!1), k = c(), f = c(), h = c({}), g = c("auto"), _ = c(new Oe()), y = c({}), E = c(), L = c(), P = c(), x = c(), M = c(), K = B(() => P.value.isHoverEnabled), H = B(() => ce(
85
+ const e = s, o = a, n = c({ x: 0, y: 0, width: 0, height: 0 }), t = c(0), r = c(0), l = c(), d = c(), m = c(), i = c(), p = c(-1), w = c(!1), k = c(), f = c(), h = c({}), g = c("auto"), _ = c(new Oe()), y = c({}), T = c(), L = c(), P = c(), x = c(), M = c(), K = B(() => P.value.isHoverEnabled), H = B(() => ce(
86
86
  e.cdnFileResolver,
87
87
  `/scenedata${e.viewModel.currentScene}.png`
88
88
  )), te = B(() => H.value in h.value ? h.value[H.value] : null), I = B(() => p.value < 0 ? !1 : e.sceneData.find((ee) => ee.index === p.value) || !1), S = B(() => ({
@@ -132,7 +132,7 @@ const Ga = /* @__PURE__ */ W({
132
132
  o("pos", n.value);
133
133
  }), Se(() => {
134
134
  L.value = () => {
135
- clearTimeout(E.value), Me(), E.value = setTimeout(() => {
135
+ clearTimeout(T.value), Me(), T.value = setTimeout(() => {
136
136
  Me();
137
137
  }, 50);
138
138
  }, window.addEventListener("resize", L.value), Me();
@@ -343,7 +343,7 @@ const Ga = /* @__PURE__ */ W({
343
343
  })), r.value = { ...r.value, [L]: x };
344
344
  });
345
345
  }
346
- m.value.addEventListener("mousemove", E(w, 50));
346
+ m.value.addEventListener("mousemove", T(w, 50));
347
347
  });
348
348
  function w(L) {
349
349
  n.value = {
@@ -395,7 +395,7 @@ const Ga = /* @__PURE__ */ W({
395
395
  };
396
396
  }
397
397
  const y = c(!1);
398
- function E(L, P) {
398
+ function T(L, P) {
399
399
  return y.value = !0, function(...x) {
400
400
  y.value && (y.value = !1, L.apply(this, x), setTimeout(() => y.value = !0, P));
401
401
  };
@@ -622,18 +622,18 @@ const on = {
622
622
  U(
623
623
  () => e.viewModel.currentScene,
624
624
  (_, y) => {
625
- const E = g(y, _), L = h(y, _);
626
- i(y, E, L);
625
+ const T = g(y, _), L = h(y, _);
626
+ i(y, T, L);
627
627
  }
628
628
  ), Se(() => {
629
629
  w();
630
630
  });
631
- function i(_, y, E) {
631
+ function i(_, y, T) {
632
632
  e.viewModel.isRotating || (e.viewModel.isRotating = !0, p(
633
633
  r.value.start(
634
634
  y,
635
635
  _ % vt,
636
- E
636
+ T
637
637
  )
638
638
  ));
639
639
  }
@@ -653,10 +653,10 @@ const on = {
653
653
  function k() {
654
654
  const _ = [];
655
655
  for (let y = 0; y < Qt; y++) {
656
- const { sourceSet: E, defaultPath: L } = f(y);
656
+ const { sourceSet: T, defaultPath: L } = f(y);
657
657
  _.push({
658
658
  index: y,
659
- sourceSet: E,
659
+ sourceSet: T,
660
660
  defaultPath: L,
661
661
  show: !1
662
662
  });
@@ -664,28 +664,28 @@ const on = {
664
664
  return _;
665
665
  }
666
666
  function f(_) {
667
- const y = ("0000" + (_ + 1)).slice(-4), E = e.build ? `?v=${e.build}` : "", L = [
667
+ const y = ("0000" + (_ + 1)).slice(-4), T = e.build ? `?v=${e.build}` : "", L = [
668
668
  `${ce(
669
669
  e.cdnFileResolver,
670
- `/480/${y}.jpg${E}`
670
+ `/480/${y}.jpg${T}`
671
671
  )} 480w`,
672
672
  `${ce(
673
673
  e.cdnFileResolver,
674
- `/960/${y}.jpg${E}`
674
+ `/960/${y}.jpg${T}`
675
675
  )} 960w`,
676
676
  `${ce(
677
677
  e.cdnFileResolver,
678
- `/1280/${y}.jpg${E}`
678
+ `/1280/${y}.jpg${T}`
679
679
  )} 1280w`
680
680
  ].join(","), P = ce(
681
681
  e.cdnFileResolver,
682
- `/480/${y}.jpg${E}`
682
+ `/480/${y}.jpg${T}`
683
683
  );
684
684
  return { sourceSet: L, defaultPath: P };
685
685
  }
686
686
  function h(_, y) {
687
- const E = vt / 2, L = Math.abs(_ - y);
688
- return L > E ? vt - L : L;
687
+ const T = vt / 2, L = Math.abs(_ - y);
688
+ return L > T ? vt - L : L;
689
689
  }
690
690
  function g(_, y) {
691
691
  if (_ === y)
@@ -694,10 +694,10 @@ const on = {
694
694
  return L && _ < y || !L && _ > y ? 1 : -1;
695
695
  }
696
696
  return (_, y) => {
697
- const E = V("v-icon");
697
+ const T = V("v-icon");
698
698
  return v(), D("div", null, [
699
699
  t.value.isError ? (v(), D("div", on, [
700
- C(E, { "x-large": "" }, {
700
+ C(T, { "x-large": "" }, {
701
701
  default: b(() => [
702
702
  ae("mdi-alert-circle-outline")
703
703
  ]),
@@ -812,12 +812,12 @@ const on = {
812
812
  ), U(
813
813
  () => o.mobile,
814
814
  () => {
815
- o.mobile ? _() : E();
815
+ o.mobile ? _() : T();
816
816
  }
817
817
  ), Se(() => {
818
818
  o.desktop && g(), o.mobile && _();
819
819
  }), Xe(() => {
820
- o.desktop && y(), o.mobile && E();
820
+ o.desktop && y(), o.mobile && T();
821
821
  });
822
822
  function g() {
823
823
  w.value.addEventListener("wheel", L, {
@@ -856,7 +856,7 @@ const on = {
856
856
  capture: !0
857
857
  });
858
858
  }
859
- function E() {
859
+ function T() {
860
860
  w.value.removeEventListener("touchstart", H, {
861
861
  capture: !0
862
862
  }), w.value.removeEventListener("touchmove", te, {
@@ -1093,7 +1093,7 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
1093
1093
  initialize: K
1094
1094
  });
1095
1095
  });
1096
- function E(x) {
1096
+ function T(x) {
1097
1097
  i.value = x;
1098
1098
  }
1099
1099
  function L(x) {
@@ -1134,7 +1134,7 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
1134
1134
  onGoToUnit: M[4] || (M[4] = (H) => n("goToUnit", H)),
1135
1135
  onHoverOver: L,
1136
1136
  onHoverOut: P,
1137
- onPos: E
1137
+ onPos: T
1138
1138
  }, {
1139
1139
  default: b((H) => [
1140
1140
  oe(x.$slots, "default", pt(ft(H)), void 0, !0)
@@ -1208,7 +1208,7 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
1208
1208
  [Ae, o.timeSampleData === o.currentTime]
1209
1209
  ]);
1210
1210
  }
1211
- }), On = /* @__PURE__ */ X(Mn, [["__scopeId", "data-v-dbbdc1e0"]]), Tn = /* @__PURE__ */ W({
1211
+ }), On = /* @__PURE__ */ X(Mn, [["__scopeId", "data-v-dbbdc1e0"]]), En = /* @__PURE__ */ W({
1212
1212
  __name: "VApartmentChooserV5CameraDay",
1213
1213
  props: {
1214
1214
  dayData: {},
@@ -1223,7 +1223,7 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
1223
1223
  "current-time": e.currentTime
1224
1224
  }, null, 8, ["time-sample-data", "cdn-file-resolver", "current-time"]))), 256));
1225
1225
  }
1226
- }), En = /* @__PURE__ */ W({
1226
+ }), Tn = /* @__PURE__ */ W({
1227
1227
  __name: "VApartmentChooserV5Camera",
1228
1228
  props: {
1229
1229
  cameraData: {},
@@ -1232,7 +1232,7 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
1232
1232
  },
1233
1233
  setup(s) {
1234
1234
  const a = s;
1235
- return (e, o) => (v(!0), D(pe, null, Ce(a.cameraData.sunsimDayOfYear, (n) => (v(), $(Tn, {
1235
+ return (e, o) => (v(!0), D(pe, null, Ce(a.cameraData.sunsimDayOfYear, (n) => (v(), $(En, {
1236
1236
  "day-data": n,
1237
1237
  "cdn-file-resolver": a.cdnFileResolver,
1238
1238
  "current-time": a.currentTime
@@ -1278,7 +1278,7 @@ function Rn(s) {
1278
1278
  function Bt(s) {
1279
1279
  return !("filename" in s);
1280
1280
  }
1281
- function Tt(s) {
1281
+ function Et(s) {
1282
1282
  return "filename" in s;
1283
1283
  }
1284
1284
  const Un = /* @__PURE__ */ W({
@@ -1368,7 +1368,7 @@ const Un = /* @__PURE__ */ W({
1368
1368
  "hide-details": ""
1369
1369
  }, {
1370
1370
  item: b(({ props: i }) => [
1371
- C(d, Te(i, {
1371
+ C(d, Ee(i, {
1372
1372
  title: t(i.title)
1373
1373
  }), null, 16, ["title"])
1374
1374
  ]),
@@ -1896,7 +1896,7 @@ function ao(s) {
1896
1896
  ]
1897
1897
  }
1898
1898
  ]
1899
- }, Tt(t[d]) && (t[d] = i);
1899
+ }, Et(t[d]) && (t[d] = i);
1900
1900
  }
1901
1901
  return {
1902
1902
  version: "5.0",
@@ -1943,7 +1943,7 @@ const no = {
1943
1943
  null
1944
1944
  ), d = c(4), m = c(), i = c(!1), p = c(!1), w = c(), k = c(), f = B(() => k.value.isHoverEnabled), h = c({ x: 0, y: 0, width: 0, height: 0 }), g = c(), _ = c(), y = c(
1945
1945
  e.apartmentChooserData
1946
- ), E = c(!1);
1946
+ ), T = c(!1);
1947
1947
  Se(() => {
1948
1948
  i.value = !0;
1949
1949
  }), U(i, (Y) => {
@@ -1952,14 +1952,14 @@ const no = {
1952
1952
  () => _.value,
1953
1953
  () => {
1954
1954
  _.value && new ResizeObserver(([O]) => {
1955
- E.value = O.contentRect.width < e.mobileBreakpoint;
1955
+ T.value = O.contentRect.width < e.mobileBreakpoint;
1956
1956
  }).observe(_.value);
1957
1957
  }
1958
1958
  );
1959
1959
  const L = B(
1960
1960
  () => y.value ? y.value.cameras.filter(Bt) : []
1961
1961
  ), P = B(
1962
- () => y.value ? y.value.cameras.filter(Tt) : []
1962
+ () => y.value ? y.value.cameras.filter(Et) : []
1963
1963
  ), x = async () => {
1964
1964
  try {
1965
1965
  let Y, O;
@@ -2009,7 +2009,7 @@ const no = {
2009
2009
  );
2010
2010
  }
2011
2011
  function K(Y) {
2012
- d.value = Y, Tt(y.value.cameras[d.value]) ? l.value = y.value.cameras[d.value] : (xe(() => {
2012
+ d.value = Y, Et(y.value.cameras[d.value]) ? l.value = y.value.cameras[d.value] : (xe(() => {
2013
2013
  H(
2014
2014
  y.value.cameras[d.value]
2015
2015
  );
@@ -2091,7 +2091,7 @@ const no = {
2091
2091
  u("div", {
2092
2092
  ref_key: "container",
2093
2093
  ref: _,
2094
- class: ge({ mobile: E.value }),
2094
+ class: ge({ mobile: T.value }),
2095
2095
  onMousemove: ve
2096
2096
  }, [
2097
2097
  u("div", no, [
@@ -2146,7 +2146,7 @@ const no = {
2146
2146
  ]),
2147
2147
  C(st, { position: "relative" }, {
2148
2148
  default: b(() => [
2149
- (v(!0), D(pe, null, Ce(L.value, (q) => (v(), $(En, {
2149
+ (v(!0), D(pe, null, Ce(L.value, (q) => (v(), $(Tn, {
2150
2150
  key: q.overlayFilename,
2151
2151
  "camera-data": q,
2152
2152
  "cdn-file-resolver": e.cdnFileResolver,
@@ -2422,7 +2422,7 @@ const no = {
2422
2422
  } else
2423
2423
  m.value = !0;
2424
2424
  });
2425
- function E({ width: I, height: S }) {
2425
+ function T({ width: I, height: S }) {
2426
2426
  t.value.width = I, t.value.height = S;
2427
2427
  }
2428
2428
  function L() {
@@ -2513,7 +2513,7 @@ const no = {
2513
2513
  C(la, {
2514
2514
  "image-urls": k.value.imageUrls,
2515
2515
  "active-index": d.value,
2516
- onResize: E,
2516
+ onResize: T,
2517
2517
  onPreloaded: S[0] || (S[0] = (G) => n.value.preloaded = !0),
2518
2518
  onReady: S[1] || (S[1] = (G) => n.value.ready = !0),
2519
2519
  onReset: L
@@ -2629,17 +2629,17 @@ const no = {
2629
2629
  for (let k = 0; k < d.value.length; k++)
2630
2630
  l.value.data[d.value[k] - 3] = e.color.r, l.value.data[d.value[k] - 2] = e.color.g, l.value.data[d.value[k] - 1] = e.color.b, l.value.data[d.value[k]] = e.color.a;
2631
2631
  }
2632
- return (k, f) => (v(), D("canvas", Te({
2632
+ return (k, f) => (v(), D("canvas", Ee({
2633
2633
  ref_key: "canvas",
2634
2634
  ref: m,
2635
2635
  class: "overlay"
2636
2636
  }, k.dimensions), null, 16));
2637
2637
  }
2638
- }), Oo = /* @__PURE__ */ X(Mo, [["__scopeId", "data-v-9e4cdd0e"]]), To = {
2638
+ }), Oo = /* @__PURE__ */ X(Mo, [["__scopeId", "data-v-9e4cdd0e"]]), Eo = {
2639
2639
  key: 0,
2640
2640
  style: { height: "50vh" },
2641
2641
  class: "d-flex justify-center align-center blue-grey lighten-5"
2642
- }, Eo = { class: "image-instances" }, Vo = ["innerHTML"], $o = /* @__PURE__ */ W({
2642
+ }, To = { class: "image-instances" }, Vo = ["innerHTML"], $o = /* @__PURE__ */ W({
2643
2643
  __name: "VBuildingChooserRaster",
2644
2644
  props: {
2645
2645
  showCards: { type: Boolean, default: !0 },
@@ -2694,7 +2694,7 @@ const no = {
2694
2694
  viewLongitude: S.viewLongitude
2695
2695
  }, x()) : f.value = !0;
2696
2696
  });
2697
- function E({ width: I, height: S }) {
2697
+ function T({ width: I, height: S }) {
2698
2698
  r.value.width = I, r.value.height = S, xe(x);
2699
2699
  }
2700
2700
  function L() {
@@ -2736,7 +2736,7 @@ const no = {
2736
2736
  }
2737
2737
  return (I, S) => {
2738
2738
  const z = V("v-icon");
2739
- return f.value ? (v(), D("div", To, [
2739
+ return f.value ? (v(), D("div", Eo, [
2740
2740
  C(z, { "x-large": "" }, {
2741
2741
  default: b(() => [
2742
2742
  ae("mdi-alert-circle-outline")
@@ -2754,11 +2754,11 @@ const no = {
2754
2754
  onUpdate: te
2755
2755
  }, {
2756
2756
  default: b(() => [
2757
- u("div", Eo, [
2757
+ u("div", To, [
2758
2758
  C(la, {
2759
2759
  "image-urls": n.value.imageUrls,
2760
2760
  "active-index": w.value,
2761
- onResize: E,
2761
+ onResize: T,
2762
2762
  onPreloaded: S[0] || (S[0] = (G) => t.value.preloaded = !0),
2763
2763
  onReady: S[1] || (S[1] = (G) => t.value.ready = !0),
2764
2764
  onReset: L
@@ -2777,7 +2777,7 @@ const no = {
2777
2777
  [Ae, t.value.preloaded]
2778
2778
  ])
2779
2779
  ]),
2780
- u("canvas", Te(r.value, {
2780
+ u("canvas", Ee(r.value, {
2781
2781
  ref_key: "canvas",
2782
2782
  ref: g,
2783
2783
  class: { hover: !!p.value },
@@ -2997,7 +2997,7 @@ const no = {
2997
2997
  "hide-details": ""
2998
2998
  }, {
2999
2999
  item: b(({ props: i }) => [
3000
- C(d, Te(i, {
3000
+ C(d, Ee(i, {
3001
3001
  title: t(i.title)
3002
3002
  }), null, 16, ["title"])
3003
3003
  ]),
@@ -3333,7 +3333,7 @@ const tl = {
3333
3333
  function y(M) {
3334
3334
  const K = r.value;
3335
3335
  t.value = M, xe(() => {
3336
- E(
3336
+ T(
3337
3337
  t.value.timeSamples.find(
3338
3338
  (H) => H.timeInHours === K.timeInHours
3339
3339
  ) || t.value.timeSamples.find(
@@ -3342,7 +3342,7 @@ const tl = {
3342
3342
  );
3343
3343
  });
3344
3344
  }
3345
- function E(M) {
3345
+ function T(M) {
3346
3346
  r.value = M;
3347
3347
  }
3348
3348
  function L(M) {
@@ -3410,7 +3410,7 @@ const tl = {
3410
3410
  key: 0,
3411
3411
  "day-data": t.value,
3412
3412
  "current-time": r.value,
3413
- onOnTimeChange: E
3413
+ onOnTimeChange: T
3414
3414
  }, null, 8, ["day-data", "current-time"])) : R("", !0)
3415
3415
  ])
3416
3416
  ]),
@@ -3533,7 +3533,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
3533
3533
  currentCameraId: l,
3534
3534
  showStaticImage: d,
3535
3535
  mouseSensitivity: m
3536
- } = Ee(o), i = a, p = c(), w = c(l.value), k = c(0), f = c(0);
3536
+ } = Te(o), i = a, p = c(), w = c(l.value), k = c(0), f = c(0);
3537
3537
  U(l, () => {
3538
3538
  w.value = l.value;
3539
3539
  }), U([t, r], async () => {
@@ -3650,7 +3650,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
3650
3650
  style: { width: "24px", height: "24px" },
3651
3651
  viewBox: "0 0 18 16",
3652
3652
  xmlns: "http://www.w3.org/2000/svg"
3653
- }, Ml = ["stroke"], Ol = ["stroke"], Tl = { class: "floor-level-label" }, El = /* @__PURE__ */ W({
3653
+ }, Ml = ["stroke"], Ol = ["stroke"], El = { class: "floor-level-label" }, Tl = /* @__PURE__ */ W({
3654
3654
  __name: "VFloorLevel",
3655
3655
  props: {
3656
3656
  level: { default: 0 },
@@ -3673,7 +3673,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
3673
3673
  attach: ""
3674
3674
  }, {
3675
3675
  activator: b(({ props: f }) => [
3676
- C(w, Te({
3676
+ C(w, Ee({
3677
3677
  style: { cursor: "pointer" },
3678
3678
  density: "comfortable",
3679
3679
  elevation: "1",
@@ -3701,13 +3701,13 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
3701
3701
  }, 1040)
3702
3702
  ]),
3703
3703
  default: b(() => [
3704
- u("span", Tl, Q(A(n).getLabel(r.value)) + " " + Q(A(n).getLabel("floor")), 1)
3704
+ u("span", El, Q(A(n).getLabel(r.value)) + " " + Q(A(n).getLabel("floor")), 1)
3705
3705
  ]),
3706
3706
  _: 1
3707
3707
  });
3708
3708
  };
3709
3709
  }
3710
- }), Vl = /* @__PURE__ */ X(El, [["__scopeId", "data-v-5ce91d8e"]]), $l = { class: "d-none d-md-inline" }, Bl = { class: "interior-selector-list" }, Rl = ["onClick"], Ul = { class: "d-flex align-center justify-left pa-0 ma-0" }, Hl = { class: "pa-0 ma-0" }, Yl = { class: "text-caption ma-2 no-wrap" }, zl = /* @__PURE__ */ W({
3710
+ }), Vl = /* @__PURE__ */ X(Tl, [["__scopeId", "data-v-5ce91d8e"]]), $l = { class: "d-none d-md-inline" }, Bl = { class: "interior-selector-list" }, Rl = ["onClick"], Ul = { class: "d-flex align-center justify-left pa-0 ma-0" }, Hl = { class: "pa-0 ma-0" }, Yl = { class: "text-caption ma-2 no-wrap" }, zl = /* @__PURE__ */ W({
3711
3711
  __name: "VInteriorSelector",
3712
3712
  props: {
3713
3713
  cdnFileResolver: { type: [String, Function] },
@@ -3728,7 +3728,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
3728
3728
  attach: ""
3729
3729
  }, {
3730
3730
  activator: b(({ props: p }) => [
3731
- C(d, Te({ rounded: "" }, p, { class: "text-capitalize" }), {
3731
+ C(d, Ee({ rounded: "" }, p, { class: "text-capitalize" }), {
3732
3732
  default: b(() => [
3733
3733
  C(l, null, {
3734
3734
  default: b(() => [
@@ -3848,7 +3848,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
3848
3848
  const d = V("v-icon"), m = V("v-btn"), i = V("v-tooltip");
3849
3849
  return v(), $(i, { location: "top" }, {
3850
3850
  activator: b(({ props: p }) => [
3851
- C(m, Te({
3851
+ C(m, Ee({
3852
3852
  density: "comfortable",
3853
3853
  elevation: "1",
3854
3854
  icon: "",
@@ -4396,7 +4396,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
4396
4396
  "stroke-linejoin": "round"
4397
4397
  })
4398
4398
  ])
4399
- ], -1)), Fs = { class: "text text-col text-center" }, Ls = { class: "text-h6 text-capitalize" }, Ms = { class: "mt-2" }, Os = { class: "d-flex justify-center align-center checkbox-container" }, Ts = { class: "text-caption" }, Es = /* @__PURE__ */ W({
4399
+ ], -1)), Fs = { class: "text text-col text-center" }, Ls = { class: "text-h6 text-capitalize" }, Ms = { class: "mt-2" }, Os = { class: "d-flex justify-center align-center checkbox-container" }, Es = { class: "text-caption" }, Ts = /* @__PURE__ */ W({
4400
4400
  __name: "VTutorial",
4401
4401
  emits: ["closeTutorial"],
4402
4402
  setup(s, { emit: a }) {
@@ -4439,7 +4439,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
4439
4439
  C(w, {
4440
4440
  variant: "tonal",
4441
4441
  size: "small",
4442
- onClick: m[0] || (m[0] = (E) => t.value = !0),
4442
+ onClick: m[0] || (m[0] = (T) => t.value = !0),
4443
4443
  class: "text-capitalize mt-2"
4444
4444
  }, {
4445
4445
  default: b(() => [
@@ -4521,7 +4521,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
4521
4521
  C(w, {
4522
4522
  variant: "tonal",
4523
4523
  size: "small",
4524
- onClick: m[1] || (m[1] = (E) => t.value = !1),
4524
+ onClick: m[1] || (m[1] = (T) => t.value = !1),
4525
4525
  class: "text-capitalize"
4526
4526
  }, {
4527
4527
  default: b(() => [
@@ -4548,11 +4548,11 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
4548
4548
  C(y, {
4549
4549
  density: "compact",
4550
4550
  modelValue: n.value,
4551
- "onUpdate:modelValue": m[2] || (m[2] = (E) => n.value = E),
4551
+ "onUpdate:modelValue": m[2] || (m[2] = (T) => n.value = T),
4552
4552
  "hide-details": ""
4553
4553
  }, {
4554
4554
  label: b(() => [
4555
- u("span", Ts, Q(A(o).getLabel("dontShowAgain")), 1)
4555
+ u("span", Es, Q(A(o).getLabel("dontShowAgain")), 1)
4556
4556
  ]),
4557
4557
  _: 1
4558
4558
  }, 8, ["modelValue"])
@@ -4561,7 +4561,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
4561
4561
  default: b(() => [
4562
4562
  C(w, {
4563
4563
  variant: "tonal",
4564
- onClick: m[3] || (m[3] = (E) => l()),
4564
+ onClick: m[3] || (m[3] = (T) => l()),
4565
4565
  block: ""
4566
4566
  }, {
4567
4567
  default: b(() => [
@@ -4580,7 +4580,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
4580
4580
  });
4581
4581
  };
4582
4582
  }
4583
- }), Vs = /* @__PURE__ */ X(Es, [["__scopeId", "data-v-a5e7f474"]]), $s = (s) => (It("data-v-bd4f66c3"), s = s(), xt(), s), Bs = { class: "player-settings-ui" }, Rs = { id: "settings-ui-form" }, Us = { class: "form-inputs" }, Hs = { class: "setting-label" }, Ys = { class: "setting-label" }, zs = ["max", "min", "step"], js = { class: "setting-label" }, Ps = { class: "flex-grow-1 flex-shrink-0" }, Ws = ["onUpdate:modelValue"], Ns = {
4583
+ }), Vs = /* @__PURE__ */ X(Ts, [["__scopeId", "data-v-a5e7f474"]]), $s = (s) => (It("data-v-bd4f66c3"), s = s(), xt(), s), Bs = { class: "player-settings-ui" }, Rs = { id: "settings-ui-form" }, Us = { class: "form-inputs" }, Hs = { class: "setting-label" }, Ys = { class: "setting-label" }, zs = ["max", "min", "step"], js = { class: "setting-label" }, Ps = { class: "flex-grow-1 flex-shrink-0" }, Ws = ["onUpdate:modelValue"], Ns = {
4584
4584
  key: 3,
4585
4585
  "d-block": "",
4586
4586
  class: "mt-3"
@@ -4738,7 +4738,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
4738
4738
  };
4739
4739
  }
4740
4740
  return (f, h) => {
4741
- const g = V("v-text-field"), _ = V("v-slider"), y = V("v-checkbox"), E = V("v-btn"), L = V("v-select"), P = V("v-icon");
4741
+ const g = V("v-text-field"), _ = V("v-slider"), y = V("v-checkbox"), T = V("v-btn"), L = V("v-select"), P = V("v-icon");
4742
4742
  return v(), D("div", Bs, [
4743
4743
  u("form", Rs, [
4744
4744
  u("div", Us, [
@@ -4826,7 +4826,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
4826
4826
  u("div", Gs, [
4827
4827
  u("div", Qs, Q(x.label), 1),
4828
4828
  u("div", null, [
4829
- C(E, {
4829
+ C(T, {
4830
4830
  class: "ml-2",
4831
4831
  "x-small": "",
4832
4832
  onClick: (H) => n.value[M].value = null
@@ -4873,7 +4873,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
4873
4873
  ]))), 128))
4874
4874
  ]),
4875
4875
  u("div", Xs, [
4876
- C(E, {
4876
+ C(T, {
4877
4877
  onClick: h[0] || (h[0] = (x) => m())
4878
4878
  }, {
4879
4879
  default: b(() => [
@@ -4881,7 +4881,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
4881
4881
  ]),
4882
4882
  _: 1
4883
4883
  }),
4884
- C(E, {
4884
+ C(T, {
4885
4885
  class: "ml-2",
4886
4886
  onClick: h[1] || (h[1] = (x) => l())
4887
4887
  }, {
@@ -4896,7 +4896,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
4896
4896
  ]),
4897
4897
  _: 1
4898
4898
  }),
4899
- C(E, {
4899
+ C(T, {
4900
4900
  class: "ml-2",
4901
4901
  onClick: h[2] || (h[2] = (x) => d())
4902
4902
  }, {
@@ -5031,7 +5031,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
5031
5031
  ...I,
5032
5032
  ...K(r.value, z)
5033
5033
  };
5034
- })), E = B(() => ({
5034
+ })), T = B(() => ({
5035
5035
  backgroundImage: `url(${a.backgroundImage})`,
5036
5036
  backgroundSize: "contain"
5037
5037
  })), L = B(() => ({
@@ -5090,7 +5090,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
5090
5090
  }, [
5091
5091
  u("div", {
5092
5092
  class: "minimap-background-image",
5093
- style: ie(E.value)
5093
+ style: ie(T.value)
5094
5094
  }, null, 4),
5095
5095
  u("div", {
5096
5096
  class: "center-pivot",
@@ -5187,8 +5187,8 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
5187
5187
  }
5188
5188
  async function k(_) {
5189
5189
  let y = /* @__PURE__ */ new Map();
5190
- for (let E = 0; E < _.length; E++) {
5191
- const L = _[E].sunsimFiles;
5190
+ for (let T = 0; T < _.length; T++) {
5191
+ const L = _[T].sunsimFiles;
5192
5192
  for (let P = 0; P < L.length; P++) {
5193
5193
  const x = L[P];
5194
5194
  try {
@@ -5202,32 +5202,32 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
5202
5202
  return y;
5203
5203
  }
5204
5204
  async function f(_) {
5205
- const E = await (await fetch(
5205
+ const T = await (await fetch(
5206
5206
  ce(
5207
5207
  e.cdnFileResolver,
5208
5208
  `/${e.apartmentJson.type}/${e.apartmentJson.id}/minimap/${_}`
5209
5209
  )
5210
- )).blob(), L = await g(E);
5210
+ )).blob(), L = await g(T);
5211
5211
  return h(L);
5212
5212
  }
5213
5213
  function h(_) {
5214
5214
  return "data:image/jpeg;base64," + _;
5215
5215
  }
5216
5216
  async function g(_) {
5217
- return new Promise((y, E) => {
5217
+ return new Promise((y, T) => {
5218
5218
  const L = new FileReader();
5219
5219
  L.onload = () => {
5220
5220
  const P = L.result.split(",")[1];
5221
5221
  y(P);
5222
- }, L.onerror = E, L.readAsDataURL(_);
5222
+ }, L.onerror = T, L.readAsDataURL(_);
5223
5223
  });
5224
5224
  }
5225
5225
  return (_, y) => {
5226
- const E = V("v-progress-linear"), L = V("v-icon"), P = V("v-slider");
5226
+ const T = V("v-progress-linear"), L = V("v-icon"), P = V("v-slider");
5227
5227
  return v(), D("div", yr, [
5228
5228
  u("div", _r, [
5229
5229
  u("div", br, [
5230
- t.value ? (v(), $(E, {
5230
+ t.value ? (v(), $(T, {
5231
5231
  key: 0,
5232
5232
  indeterminate: "",
5233
5233
  rounded: "",
@@ -5390,7 +5390,7 @@ function wt(s) {
5390
5390
  const a = s * 60, e = Math.floor(a / 60), o = a % 60;
5391
5391
  return `${e.toString().padStart(2, "0")}:${o.toString().padStart(2, "0")}`;
5392
5392
  }
5393
- const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr = { class: "small" }, Or = { class: "small" }, Tr = /* @__PURE__ */ W({
5393
+ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr = { class: "small" }, Or = { class: "small" }, Er = /* @__PURE__ */ W({
5394
5394
  __name: "VSunsimSlider",
5395
5395
  props: {
5396
5396
  currentDay: {},
@@ -5399,7 +5399,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
5399
5399
  },
5400
5400
  emits: ["onTimeChange", "toggleSunStudy"],
5401
5401
  setup(s, { emit: a }) {
5402
- const e = s, { currentDay: o, currentTime: n, disabled: t } = Ee(e), r = a, l = c(n.value.timeInHours);
5402
+ const e = s, { currentDay: o, currentTime: n, disabled: t } = Te(e), r = a, l = c(n.value.timeInHours);
5403
5403
  return U(n, () => {
5404
5404
  l.value = n.value.timeInHours;
5405
5405
  }), U(
@@ -5481,7 +5481,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
5481
5481
  ]);
5482
5482
  };
5483
5483
  }
5484
- }), qt = /* @__PURE__ */ X(Tr, [["__scopeId", "data-v-c06c753d"]]), Er = /* @__PURE__ */ W({
5484
+ }), qt = /* @__PURE__ */ X(Er, [["__scopeId", "data-v-c06c753d"]]), Tr = /* @__PURE__ */ W({
5485
5485
  __name: "VSunStudyToggle",
5486
5486
  props: {
5487
5487
  displaySunsim: { type: Boolean },
@@ -5621,11 +5621,11 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
5621
5621
  (v(!0), D(pe, null, Ce(m.thumbnails, (_) => (v(), $(h, {
5622
5622
  key: _.id
5623
5623
  }, {
5624
- default: b(({ toggle: y, selectedClass: E }) => [
5624
+ default: b(({ toggle: y, selectedClass: T }) => [
5625
5625
  C(f, {
5626
5626
  class: ge(["position-relative", [
5627
5627
  r.value ? "ma-0" : "ma-1",
5628
- E,
5628
+ T,
5629
5629
  "single-waypoint"
5630
5630
  ]]),
5631
5631
  align: "center",
@@ -5698,11 +5698,11 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
5698
5698
  attach: ""
5699
5699
  }, {
5700
5700
  activator: b(({ props: y }) => [
5701
- C(i, Te({
5701
+ C(i, Ee({
5702
5702
  density: "comfortable",
5703
5703
  elevation: "1",
5704
5704
  icon: "mdi-share-variant",
5705
- onClick: m[0] || (m[0] = (E) => e.value = !e.value)
5705
+ onClick: m[0] || (m[0] = (T) => e.value = !e.value)
5706
5706
  }, y), null, 16)
5707
5707
  ]),
5708
5708
  default: b(() => [
@@ -5741,7 +5741,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
5741
5741
  u("p", Hr, [
5742
5742
  C(p, { location: "top" }, {
5743
5743
  activator: b(({ props: y }) => [
5744
- C(i, Te({
5744
+ C(i, Ee({
5745
5745
  depressed: "",
5746
5746
  fab: "",
5747
5747
  light: "",
@@ -5755,7 +5755,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
5755
5755
  }),
5756
5756
  C(p, { location: "top" }, {
5757
5757
  activator: b(({ props: y }) => [
5758
- C(i, Te({
5758
+ C(i, Ee({
5759
5759
  depressed: "",
5760
5760
  fab: "",
5761
5761
  light: "",
@@ -5769,7 +5769,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
5769
5769
  }),
5770
5770
  C(p, { location: "top" }, {
5771
5771
  activator: b(({ props: y }) => [
5772
- C(i, Te({
5772
+ C(i, Ee({
5773
5773
  depressed: "",
5774
5774
  fab: "",
5775
5775
  light: "",
@@ -5783,7 +5783,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
5783
5783
  }),
5784
5784
  C(p, { location: "top" }, {
5785
5785
  activator: b(({ props: y }) => [
5786
- C(i, Te({
5786
+ C(i, Ee({
5787
5787
  depressed: "",
5788
5788
  fab: "",
5789
5789
  light: "",
@@ -5799,7 +5799,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
5799
5799
  }),
5800
5800
  C(p, { location: "top" }, {
5801
5801
  activator: b(({ props: y }) => [
5802
- C(i, Te({
5802
+ C(i, Ee({
5803
5803
  depressed: "",
5804
5804
  fab: "",
5805
5805
  light: "",
@@ -5986,7 +5986,7 @@ const Nr = {
5986
5986
  showInteriorOptions: g,
5987
5987
  showMiniMap: _,
5988
5988
  showFloorLevel: y,
5989
- defaultWaypointIndex: E,
5989
+ defaultWaypointIndex: T,
5990
5990
  defaultViewMode: L,
5991
5991
  mouseSensitivity: P,
5992
5992
  // isInIframe,
@@ -5996,7 +5996,7 @@ const Nr = {
5996
5996
  dynamicMarkers: H,
5997
5997
  version: te,
5998
5998
  showVersion: I
5999
- } = Ee(o), S = e;
5999
+ } = Te(o), S = e;
6000
6000
  a({
6001
6001
  updateSelectedInterior: zt,
6002
6002
  takeSnapshot: Wt,
@@ -6058,7 +6058,7 @@ const Nr = {
6058
6058
  `/${F.archetypeID}/${t.value}/thumbs/200/${j}.jpg`
6059
6059
  )
6060
6060
  };
6061
- }) : []), T = B(() => {
6061
+ }) : []), E = B(() => {
6062
6062
  if (q.value && q.value.storeys && $e.value in q.value.storeys)
6063
6063
  return q.value.storeys[$e.value];
6064
6064
  }), J = B(() => O.value && O.value.timeInHours), de = B(() => {
@@ -6140,7 +6140,7 @@ const Nr = {
6140
6140
  re.value,
6141
6141
  t.value
6142
6142
  ), Z.value) {
6143
- const j = E.value !== null ? E.value : 0;
6143
+ const j = T.value !== null ? T.value : 0;
6144
6144
  ue.value = j, be.value = Z.value.cameras[j].id, le.value = Z.value.cameras[j].id;
6145
6145
  }
6146
6146
  _.value && (q.value = await Yt(
@@ -6336,10 +6336,10 @@ const Nr = {
6336
6336
  throw new Error(se);
6337
6337
  }
6338
6338
  }
6339
- function Ta(F) {
6339
+ function Ea(F) {
6340
6340
  ne.value.updateSettings(F);
6341
6341
  }
6342
- function Ea(F) {
6342
+ function Ta(F) {
6343
6343
  S("saveSettings", F);
6344
6344
  }
6345
6345
  function Va(F) {
@@ -6365,7 +6365,7 @@ const Nr = {
6365
6365
  }, [
6366
6366
  ve.value ? (v(), D("div", Nr, "Error loading the player!!")) : R("", !0),
6367
6367
  u("div", Gr, [
6368
- !ee.value.isActive && q.value && le.value && T.value && re.value && Ie.value ? (v(), $(Zt, {
6368
+ !ee.value.isActive && q.value && le.value && E.value && re.value && Ie.value ? (v(), $(Zt, {
6369
6369
  key: 0,
6370
6370
  "cdn-file-resolver": A(n),
6371
6371
  "apartment-json": O.value,
@@ -6421,7 +6421,7 @@ const Nr = {
6421
6421
  }, null, 512), [
6422
6422
  [Ae, N.value]
6423
6423
  ]),
6424
- q.value && be.value && T.value ? De((v(), $(se, {
6424
+ q.value && be.value && E.value ? De((v(), $(se, {
6425
6425
  key: 1,
6426
6426
  density: "comfortable",
6427
6427
  elevation: "3",
@@ -6440,8 +6440,8 @@ const Nr = {
6440
6440
  A(x) && G.value ? (v(), D("div", Qr, [
6441
6441
  C(er, {
6442
6442
  "initial-settings": A(M),
6443
- onUpdateSettings: Ta,
6444
- onSaveSettings: Ea
6443
+ onUpdateSettings: Ea,
6444
+ onSaveSettings: Ta
6445
6445
  }, null, 8, ["initial-settings"])
6446
6446
  ])) : R("", !0)
6447
6447
  ]),
@@ -6461,7 +6461,7 @@ const Nr = {
6461
6461
  minutes: de.value.minutes,
6462
6462
  class: "time-of-day",
6463
6463
  style: ie({
6464
- cursor: q.value && le.value && T.value ? "pointer" : "default"
6464
+ cursor: q.value && le.value && E.value ? "pointer" : "default"
6465
6465
  })
6466
6466
  }, null, 8, ["hours", "minutes", "style"])) : R("", !0)
6467
6467
  ])
@@ -6485,7 +6485,7 @@ const Nr = {
6485
6485
  key: 0,
6486
6486
  onCloseTutorial: j[5] || (j[5] = (ke) => ct(ke))
6487
6487
  })) : R("", !0),
6488
- ee.value.isActive && q.value && le.value && T.value && Ie.value ? (v(), $(Zt, {
6488
+ ee.value.isActive && q.value && le.value && E.value && Ie.value ? (v(), $(Zt, {
6489
6489
  key: 1,
6490
6490
  "cdn-file-resolver": A(n),
6491
6491
  "apartment-json": O.value,
@@ -6545,7 +6545,7 @@ const Nr = {
6545
6545
  "mb-2": !fe.value
6546
6546
  }])
6547
6547
  }, [
6548
- !Qe.value && Je.value(le.value) ? (v(), $(Er, {
6548
+ !Qe.value && Je.value(le.value) ? (v(), $(Tr, {
6549
6549
  key: 0,
6550
6550
  class: "ml-2",
6551
6551
  displaySunsim: Le.value,
@@ -6852,14 +6852,14 @@ const Nr = {
6852
6852
  },
6853
6853
  emits: ["apartmentJsonLoaded", "minimapJsonLoaded", "cameraSet"],
6854
6854
  setup(s, { emit: a }) {
6855
- const o = Ee(s), n = a, t = c(), r = c(), l = c(), d = c(0), m = c(), i = c(1), p = B(() => o.currentCamera.value ? o.currentCamera.value : t.value ? t.value.cameras[0].id : null), w = B(() => ({
6855
+ const o = Te(s), n = a, t = c(), r = c(), l = c(), d = c(0), m = c(), i = c(1), p = B(() => o.currentCamera.value ? o.currentCamera.value : t.value ? t.value.cameras[0].id : null), w = B(() => ({
6856
6856
  transformOrigin: "top left",
6857
6857
  transform: `scale(${i.value})`
6858
6858
  }));
6859
6859
  U(m, () => {
6860
6860
  m.value && new ResizeObserver(([_]) => {
6861
- const y = _.target.parentElement, E = y.parentElement;
6862
- i.value = E.clientWidth / 512, y.style.height = `${_.contentRect.height * i.value}px`;
6861
+ const y = _.target.parentElement, T = y.parentElement;
6862
+ i.value = T.clientWidth / 512, y.style.height = `${_.contentRect.height * i.value}px`;
6863
6863
  }).observe(m.value);
6864
6864
  }), U(p, () => {
6865
6865
  n("cameraSet", p.value);
@@ -6926,9 +6926,9 @@ const Nr = {
6926
6926
  containerHeight: 384,
6927
6927
  fit: ""
6928
6928
  }, {
6929
- default: b(({ id: E, camera: L, active: P, style: x }) => [
6929
+ default: b(({ id: T, camera: L, active: P, style: x }) => [
6930
6930
  oe(g.$slots, "default", {
6931
- id: E,
6931
+ id: T,
6932
6932
  camera: L,
6933
6933
  active: P,
6934
6934
  style: ie(x)
@@ -6959,7 +6959,7 @@ const Nr = {
6959
6959
  currentTime: {}
6960
6960
  },
6961
6961
  setup(s) {
6962
- const a = s, { timeSampleData: e, cdnFileResolver: o, currentTime: n } = Ee(a), t = c(), r = Ue("registerImage"), l = Ue("completeImage");
6962
+ const a = s, { timeSampleData: e, cdnFileResolver: o, currentTime: n } = Te(a), t = c(), r = Ue("registerImage"), l = Ue("completeImage");
6963
6963
  U(t, () => {
6964
6964
  t.value && (r(t.value), t.value.onload = () => {
6965
6965
  l(t.value);
@@ -6986,7 +6986,7 @@ const Nr = {
6986
6986
  currentTime: {}
6987
6987
  },
6988
6988
  setup(s) {
6989
- const a = s, { dayData: e, cdnFileResolver: o, currentTime: n } = Ee(a);
6989
+ const a = s, { dayData: e, cdnFileResolver: o, currentTime: n } = Te(a);
6990
6990
  return (t, r) => (v(!0), D(pe, null, Ce(A(e).timeSamples, (l, d) => (v(), $(xi, {
6991
6991
  key: d,
6992
6992
  "time-sample-data": l,
@@ -7004,7 +7004,7 @@ const Nr = {
7004
7004
  currentTime: {}
7005
7005
  },
7006
7006
  setup(s) {
7007
- const a = s, { cameraData: e, cdnFileResolver: o, currentCamera: n, currentTime: t } = Ee(a), r = c(), l = Ue("registerImage"), d = Ue("completeImage");
7007
+ const a = s, { cameraData: e, cdnFileResolver: o, currentCamera: n, currentTime: t } = Te(a), r = c(), l = Ue("registerImage"), d = Ue("completeImage");
7008
7008
  U(r, () => {
7009
7009
  r.value && (l(r.value), r.value.onload = () => {
7010
7010
  d(r.value);
@@ -7038,7 +7038,7 @@ const Nr = {
7038
7038
  currentTransition: {}
7039
7039
  },
7040
7040
  setup(s) {
7041
- const a = s, { transitionData: e, cdnFileResolver: o, currentTransition: n } = Ee(a), t = c(), r = Ue("registerImage"), l = Ue("completeImage");
7041
+ const a = s, { transitionData: e, cdnFileResolver: o, currentTransition: n } = Te(a), t = c(), r = Ue("registerImage"), l = Ue("completeImage");
7042
7042
  U(t, () => {
7043
7043
  t.value && (r(t.value), t.value.onload = () => {
7044
7044
  l(t.value);
@@ -7056,7 +7056,7 @@ const Nr = {
7056
7056
  src: d.value
7057
7057
  }, null, 12, Mi));
7058
7058
  }
7059
- }), Ti = /* @__PURE__ */ X(Oi, [["__scopeId", "data-v-d592c198"]]);
7059
+ }), Ei = /* @__PURE__ */ X(Oi, [["__scopeId", "data-v-d592c198"]]);
7060
7060
  function Xt(s) {
7061
7061
  const a = /* @__PURE__ */ new Date(0);
7062
7062
  return a.setUTCDate(s), a.toLocaleString("en-no", {
@@ -7064,7 +7064,7 @@ function Xt(s) {
7064
7064
  day: "numeric"
7065
7065
  });
7066
7066
  }
7067
- const Ei = {
7067
+ const Ti = {
7068
7068
  key: 0,
7069
7069
  class: "d-inline-block",
7070
7070
  style: { "vertical-align": "top" }
@@ -7078,7 +7078,7 @@ const Ei = {
7078
7078
  },
7079
7079
  emits: ["onDayChange"],
7080
7080
  setup(s, { emit: a }) {
7081
- const e = s, { isMobileSized: o, currentCamera: n, currentDay: t, disabled: r } = Ee(e), l = a, d = c(t.value.dayOfYear);
7081
+ const e = s, { isMobileSized: o, currentCamera: n, currentDay: t, disabled: r } = Te(e), l = a, d = c(t.value.dayOfYear);
7082
7082
  return U(t, () => {
7083
7083
  d.value = t.value.dayOfYear;
7084
7084
  }), U(d, () => {
@@ -7090,7 +7090,7 @@ const Ei = {
7090
7090
  );
7091
7091
  }), (m, i) => {
7092
7092
  const p = V("v-btn"), w = V("v-field"), k = V("v-list-item-title"), f = V("v-list-item"), h = V("v-list"), g = V("v-menu");
7093
- return A(n).sunsimDayOfYear && A(n).sunsimDayOfYear.length > 0 ? (v(), D("div", Ei, [
7093
+ return A(n).sunsimDayOfYear && A(n).sunsimDayOfYear.length > 0 ? (v(), D("div", Ti, [
7094
7094
  C(g, null, {
7095
7095
  activator: b(({ props: _ }) => [
7096
7096
  C(w, {
@@ -7099,7 +7099,7 @@ const Ei = {
7099
7099
  flat: ""
7100
7100
  }, {
7101
7101
  default: b(() => [
7102
- C(p, Te({
7102
+ C(p, Ee({
7103
7103
  variant: "text",
7104
7104
  rounded: "",
7105
7105
  flat: "",
@@ -7124,7 +7124,7 @@ const Ei = {
7124
7124
  (v(!0), D(pe, null, Ce(A(n).sunsimDayOfYear, (_, y) => (v(), $(f, {
7125
7125
  key: y,
7126
7126
  value: y,
7127
- onClick: (E) => d.value = _.dayOfYear
7127
+ onClick: (T) => d.value = _.dayOfYear
7128
7128
  }, {
7129
7129
  default: b(() => [
7130
7130
  C(k, null, {
@@ -7168,7 +7168,7 @@ const Ei = {
7168
7168
  currentCamera: t,
7169
7169
  cdnFileResolver: r,
7170
7170
  disabled: l
7171
- } = Ee(e), d = c(t.value), m = a;
7171
+ } = Te(e), d = c(t.value), m = a;
7172
7172
  U(
7173
7173
  t,
7174
7174
  () => {
@@ -7242,7 +7242,7 @@ const Ei = {
7242
7242
  },
7243
7243
  emits: ["onTimeChange"],
7244
7244
  setup(s, { emit: a }) {
7245
- const e = s, { isMobileSized: o, currentDay: n, currentTime: t, disabled: r } = Ee(e), l = a, d = c(t.value.timeInHours);
7245
+ const e = s, { isMobileSized: o, currentDay: n, currentTime: t, disabled: r } = Te(e), l = a, d = c(t.value.timeInHours);
7246
7246
  return U(t, () => {
7247
7247
  d.value = t.value.timeInHours;
7248
7248
  }), U(d, () => {
@@ -7339,7 +7339,7 @@ const Ei = {
7339
7339
  },
7340
7340
  emits: ["onZoomIn", "onZoomOut"],
7341
7341
  setup(s, { emit: a }) {
7342
- const e = s, { isMobileSized: o, canZoomIn: n, canZoomOut: t, disabled: r } = Ee(e), l = a;
7342
+ const e = s, { isMobileSized: o, canZoomIn: n, canZoomOut: t, disabled: r } = Te(e), l = a;
7343
7343
  return (d, m) => {
7344
7344
  const i = V("v-btn");
7345
7345
  return v(), D("div", Gi, [
@@ -7374,20 +7374,20 @@ const Ei = {
7374
7374
  },
7375
7375
  emits: ["onClick", "onHoverOver", "onHoverOut", "updateSvgContainer", "onError"],
7376
7376
  setup(s, { emit: a }) {
7377
- const e = s, { cdnFileResolver: o, colorCallback: n, currentCamera: t, selectedId: r } = Ee(e), l = a, d = c(!0), m = c({}), i = c(), p = St({}), w = B(() => ce(
7377
+ const e = s, { cdnFileResolver: o, colorCallback: n, currentCamera: t, selectedId: r } = Te(e), l = a, d = c(!0), m = c({}), i = c(), p = St({}), w = B(() => ce(
7378
7378
  o.value,
7379
7379
  t.value.overlayFilename
7380
7380
  ));
7381
7381
  Re(() => {
7382
7382
  for (const h in p) {
7383
- const { element: g, state: _ } = p[h], { r: y, g: E, b: L, a: P, s: x } = n.value(h, _) || {
7383
+ const { element: g, state: _ } = p[h], { r: y, g: T, b: L, a: P, s: x } = n.value(h, _) || {
7384
7384
  r: 0,
7385
7385
  g: 0,
7386
7386
  b: 0,
7387
7387
  a: 0,
7388
7388
  s: 0
7389
7389
  };
7390
- g.style.fill = `rgba(${y}, ${E}, ${L}, ${P / 255})`, g.style.stroke = `rgb(${y}, ${E}, ${L})`, g.style.strokeWidth = x.toString(), g.style.cursor = "pointer";
7390
+ g.style.fill = `rgba(${y}, ${T}, ${L}, ${P / 255})`, g.style.stroke = `rgb(${y}, ${T}, ${L})`, g.style.strokeWidth = x.toString(), g.style.cursor = "pointer";
7391
7391
  }
7392
7392
  }), U(r, () => {
7393
7393
  for (const h in p)
@@ -7441,19 +7441,19 @@ const Ei = {
7441
7441
  if (h) {
7442
7442
  l("updateSvgContainer", h), k();
7443
7443
  let _, y = "data-structure-id";
7444
- _ = h.querySelectorAll(`[${y}]`), _.length === 0 && (y = "data-apartment-id", _ = h.querySelectorAll(`[${y}]`), _.length === 0 && (y = "data-building-id", _ = h.querySelectorAll(`[${y}]`))), _.forEach((E) => {
7445
- E.style.strokeWidth = "0", E.style.stroke = "rgba(255,255,255,0)", E.style.fill = "rgba(255,255,255,0)", E.querySelectorAll("path").forEach((P) => {
7444
+ _ = h.querySelectorAll(`[${y}]`), _.length === 0 && (y = "data-apartment-id", _ = h.querySelectorAll(`[${y}]`), _.length === 0 && (y = "data-building-id", _ = h.querySelectorAll(`[${y}]`))), _.forEach((T) => {
7445
+ T.style.strokeWidth = "0", T.style.stroke = "rgba(255,255,255,0)", T.style.fill = "rgba(255,255,255,0)", T.querySelectorAll("path").forEach((P) => {
7446
7446
  P.style.stroke = "inherit", P.style.fill = "inherit";
7447
7447
  });
7448
- const L = E.getAttribute(y);
7448
+ const L = T.getAttribute(y);
7449
7449
  p[L] = {
7450
- element: E,
7450
+ element: T,
7451
7451
  state: r.value === L ? "selected" : "idle"
7452
- }, e.activeStructureIds && !e.activeStructureIds.includes(L) && (E.style.display = "none"), E.addEventListener("mouseover", () => {
7452
+ }, e.activeStructureIds && !e.activeStructureIds.includes(L) && (T.style.display = "none"), T.addEventListener("mouseover", () => {
7453
7453
  p[L].state === "idle" && (p[L].state = "hover"), l("onHoverOver", L);
7454
- }), E.addEventListener("mouseout", () => {
7454
+ }), T.addEventListener("mouseout", () => {
7455
7455
  p[L].state === "hover" && (p[L].state = "idle"), l("onHoverOut", L);
7456
- }), E.addEventListener("click", () => {
7456
+ }), T.addEventListener("click", () => {
7457
7457
  l("onClick", L);
7458
7458
  });
7459
7459
  });
@@ -7497,7 +7497,7 @@ function Ki(s) {
7497
7497
  function eu(s) {
7498
7498
  return !("filename" in s) && "defaultFilename" in s;
7499
7499
  }
7500
- function Et(s) {
7500
+ function Tt(s) {
7501
7501
  return "filename" in s;
7502
7502
  }
7503
7503
  function tu(s) {
@@ -7735,7 +7735,7 @@ function ou(s) {
7735
7735
  // ],
7736
7736
  // },
7737
7737
  // ],
7738
- }, Et(t[d]) && (t[d] = i);
7738
+ }, Tt(t[d]) && (t[d] = i);
7739
7739
  }
7740
7740
  return {
7741
7741
  version: "5.0",
@@ -7806,7 +7806,7 @@ const lu = {
7806
7806
  defaultDay: p,
7807
7807
  defaultTime: w,
7808
7808
  mobileBreakpoint: k
7809
- } = Ee(o), f = e, h = c(), g = c(), _ = c(), y = c(null), E = c(4), L = c(), P = c(!1), x = c(!1), M = c(), K = B(() => M.value.isHoverEnabled), H = c({ x: 0, y: 0, width: 0, height: 0 }), te = c(), I = c(), S = c(), z = c(!1), G = c(1), ve = c(0), Y = c([]), O = c(), Z = c({
7809
+ } = Te(o), f = e, h = c(), g = c(), _ = c(), y = c(null), T = c(4), L = c(), P = c(!1), x = c(!1), M = c(), K = B(() => M.value.isHoverEnabled), H = c({ x: 0, y: 0, width: 0, height: 0 }), te = c(), I = c(), S = c(), z = c(!1), G = c(1), ve = c(0), Y = c([]), O = c(), Z = c({
7810
7810
  current: 100,
7811
7811
  min: 100,
7812
7812
  max: 1e3
@@ -7814,47 +7814,37 @@ const lu = {
7814
7814
  Ze(
7815
7815
  He,
7816
7816
  l.value ? new je(l.value) : new je()
7817
- ), Ze("registerImage", (T) => {
7817
+ ), Ze("registerImage", (E) => {
7818
7818
  xe(() => {
7819
- Y.value.find((J) => J.image === T) || (Y.value = [...Y.value, { image: T, loaded: !1 }]);
7819
+ Y.value.find((J) => J.image === E) || (Y.value = [...Y.value, { image: E, loaded: !1 }]);
7820
7820
  });
7821
- }), Ze("completeImage", (T) => {
7821
+ }), Ze("completeImage", (E) => {
7822
7822
  xe(() => {
7823
- const J = Y.value.findIndex((de) => de.image === T);
7823
+ const J = Y.value.findIndex((de) => de.image === E);
7824
7824
  J >= 0 && (Y.value[J].loaded = !0, Y.value = [...Y.value]);
7825
7825
  });
7826
7826
  }), a({
7827
7827
  getState: () => ({
7828
- currentCameraIndex: h.value ? le.value.findIndex((T) => T === h.value) : null,
7828
+ currentCameraIndex: h.value ? le.value.findIndex((E) => E === h.value) : null,
7829
7829
  currentDayIndex: g.value ? h.value.sunsimDayOfYear.findIndex(
7830
- (T) => T === g.value
7830
+ (E) => E === g.value
7831
7831
  ) : null,
7832
- currentTimeIndex: _.value ? g.value.timeSamples.findIndex((T) => T === _.value) : null,
7832
+ currentTimeIndex: _.value ? g.value.timeSamples.findIndex((E) => E === _.value) : null,
7833
7833
  currentTransitionIndex: y.value ? Fe.value.findIndex(
7834
- (T) => T === y.value
7834
+ (E) => E === y.value
7835
7835
  ) : null,
7836
- currentScene: E.value
7836
+ currentScene: T.value
7837
7837
  }),
7838
7838
  setState: ({
7839
- currentCameraIndex: T,
7839
+ currentCameraIndex: E,
7840
7840
  currentDayIndex: J,
7841
7841
  currentTimeIndex: de,
7842
7842
  currentTransitionIndex: fe,
7843
7843
  currentScene: me
7844
7844
  }) => {
7845
- setTimeout(() => {
7846
- typeof T == "number" && (h.value = le.value[T]), setTimeout(() => {
7847
- typeof J == "number" && (g.value = h.value.sunsimDayOfYear[J]), setTimeout(() => {
7848
- typeof de == "number" && (_.value = g.value.timeSamples[de]), setTimeout(() => {
7849
- typeof fe == "number" && (y.value = Fe.value[fe]), setTimeout(() => {
7850
- typeof me == "number" && (E.value = me);
7851
- }, 100);
7852
- }, 100);
7853
- }, 100);
7854
- }, 100);
7855
- }, 100);
7845
+ typeof E == "number" && (h.value = le.value[E]), typeof J == "number" && (g.value = h.value.sunsimDayOfYear[J]), typeof de == "number" && (_.value = g.value.timeSamples[de]), typeof fe == "number" && (y.value = Fe.value[fe]), typeof me == "number" && (T.value = me);
7856
7846
  },
7857
- resolveCoordinates: (T, J) => ne.value ? ne.value(T, J) : { x: 0, y: 0 }
7847
+ resolveCoordinates: (E, J) => ne.value ? ne.value(E, J) : { x: 0, y: 0 }
7858
7848
  }), Se(() => {
7859
7849
  P.value = !0, q.value = !1;
7860
7850
  }), U(I, () => {
@@ -7864,18 +7854,18 @@ const lu = {
7864
7854
  }).observe(I.value);
7865
7855
  }), U(Y, () => {
7866
7856
  if (ve.value === 0) {
7867
- const T = Y.value.find((J) => J.loaded);
7868
- T && (G.value = T.image.naturalWidth / T.image.naturalHeight, ve.value = T.image.width / G.value);
7857
+ const E = Y.value.find((J) => J.loaded);
7858
+ E && (G.value = E.image.naturalWidth / E.image.naturalHeight, ve.value = E.image.width / G.value);
7869
7859
  }
7870
7860
  });
7871
- const ue = B(() => Y.value.every((T) => T.loaded)), re = B(() => Math.round(
7872
- Y.value.filter((T) => T.loaded).length / Y.value.length * 100
7861
+ const ue = B(() => Y.value.every((E) => E.loaded)), re = B(() => Math.round(
7862
+ Y.value.filter((E) => E.loaded).length / Y.value.length * 100
7873
7863
  ));
7874
7864
  U(
7875
7865
  n,
7876
- (T) => {
7866
+ (E) => {
7877
7867
  try {
7878
- q.value = !1, S.value = ou(T);
7868
+ q.value = !1, S.value = ou(E);
7879
7869
  } catch (J) {
7880
7870
  q.value = !0, f("onError", J);
7881
7871
  }
@@ -7883,8 +7873,8 @@ const lu = {
7883
7873
  {
7884
7874
  immediate: !0
7885
7875
  }
7886
- ), U(P, (T) => {
7887
- T && f("onInitialize");
7876
+ ), U(P, (E) => {
7877
+ E && f("onInitialize");
7888
7878
  });
7889
7879
  const be = c();
7890
7880
  U(
@@ -7907,7 +7897,7 @@ const lu = {
7907
7897
  const le = B(
7908
7898
  () => S.value ? S.value.cameras.filter(eu) : []
7909
7899
  ), Fe = B(
7910
- () => S.value ? S.value.cameras.filter(Et) : []
7900
+ () => S.value ? S.value.cameras.filter(Tt) : []
7911
7901
  );
7912
7902
  U(
7913
7903
  [S, t],
@@ -7919,17 +7909,17 @@ const lu = {
7919
7909
  [S, t, i],
7920
7910
  async () => {
7921
7911
  t.value && le.value.length > 0 && (i.value ? h.value = le.value.find(
7922
- (T) => T.cameraName === i.value
7923
- ) || le.value[0] : h.value = le.value[0], E.value = S.value.cameras.findIndex(
7924
- (T) => T === h.value
7925
- ), E.value = Math.max(0, E.value));
7912
+ (E) => E.cameraName === i.value
7913
+ ) || le.value[0] : h.value = le.value[0], T.value = S.value.cameras.findIndex(
7914
+ (E) => E === h.value
7915
+ ), T.value = Math.max(0, T.value));
7926
7916
  },
7927
7917
  { immediate: !0 }
7928
7918
  ), U(
7929
7919
  [S, t, p],
7930
7920
  () => {
7931
7921
  S.value && t.value && h.value && h.value.sunsimDayOfYear && h.value.sunsimDayOfYear.length > 0 && (p.value ? g.value = h.value.sunsimDayOfYear.find(
7932
- (T) => T.dayOfYear === p.value
7922
+ (E) => E.dayOfYear === p.value
7933
7923
  ) || h.value.sunsimDayOfYear[0] : g.value = h.value.sunsimDayOfYear[0]);
7934
7924
  },
7935
7925
  { immediate: !0 }
@@ -7937,28 +7927,28 @@ const lu = {
7937
7927
  [S, t, w],
7938
7928
  () => {
7939
7929
  S.value && t.value && g.value && g.value.timeSamples && g.value.timeSamples.length > 0 && (w.value ? _.value = g.value.timeSamples.find(
7940
- (T) => T.timeInHours === w.value
7930
+ (E) => E.timeInHours === w.value
7941
7931
  ) || g.value.timeSamples[0] : _.value = g.value.timeSamples.find(
7942
- (T) => T.timeInHours === g.value.defaultHour
7932
+ (E) => E.timeInHours === g.value.defaultHour
7943
7933
  ) || g.value.timeSamples[0]);
7944
7934
  },
7945
7935
  { immediate: !0 }
7946
7936
  );
7947
- function Me(T) {
7948
- h.value !== T && _e(
7949
- S.value.cameras.findIndex((J) => J === T)
7937
+ function Me(E) {
7938
+ h.value !== E && _e(
7939
+ S.value.cameras.findIndex((J) => J === E)
7950
7940
  );
7951
7941
  }
7952
- function We(T) {
7953
- E.value = T, Et(S.value.cameras[E.value]) ? y.value = S.value.cameras[E.value] : (xe(() => {
7942
+ function We(E) {
7943
+ T.value = E, Tt(S.value.cameras[T.value]) ? y.value = S.value.cameras[T.value] : (xe(() => {
7954
7944
  we(
7955
- S.value.cameras[E.value]
7945
+ S.value.cameras[T.value]
7956
7946
  );
7957
7947
  }), y.value = null);
7958
7948
  }
7959
- function we(T) {
7949
+ function we(E) {
7960
7950
  const J = g.value;
7961
- h.value = T, E.value = S.value.cameras.findIndex(
7951
+ h.value = E, T.value = S.value.cameras.findIndex(
7962
7952
  (de) => de === h.value
7963
7953
  ), xe(() => {
7964
7954
  h.value.sunsimDayOfYear && h.value.sunsimDayOfYear.length > 0 && Ie(
@@ -7968,9 +7958,9 @@ const lu = {
7968
7958
  );
7969
7959
  });
7970
7960
  }
7971
- function Ie(T) {
7961
+ function Ie(E) {
7972
7962
  const J = _.value;
7973
- g.value = T, xe(() => {
7963
+ g.value = E, xe(() => {
7974
7964
  Ve(
7975
7965
  g.value.timeSamples.find(
7976
7966
  (de) => de.timeInHours === J.timeInHours
@@ -7980,26 +7970,26 @@ const lu = {
7980
7970
  );
7981
7971
  });
7982
7972
  }
7983
- function Ve(T) {
7984
- _.value = T;
7973
+ function Ve(E) {
7974
+ _.value = E;
7985
7975
  }
7986
- function Le(T) {
7987
- f("onClick", T, () => {
7976
+ function Le(E) {
7977
+ f("onClick", E, () => {
7988
7978
  const J = S.value.stillCameraData.find(
7989
- (de) => de.id === T
7979
+ (de) => de.id === E
7990
7980
  );
7991
7981
  J && _e(J.bestIndex);
7992
7982
  });
7993
7983
  }
7994
- function N(T) {
7995
- f("onHoverOver", T), L.value = T;
7984
+ function N(E) {
7985
+ f("onHoverOver", E), L.value = E;
7996
7986
  }
7997
- function ee(T) {
7998
- f("onHoverOut", T), L.value = void 0;
7987
+ function ee(E) {
7988
+ f("onHoverOut", E), L.value = void 0;
7999
7989
  }
8000
- function ye(T) {
8001
- const { layerX: J, layerY: de } = T;
8002
- let fe = T.target, me = !1;
7990
+ function ye(E) {
7991
+ const { layerX: J, layerY: de } = E;
7992
+ let fe = E.target, me = !1;
8003
7993
  for (; fe; )
8004
7994
  if (fe === te.value) {
8005
7995
  me = !0;
@@ -8007,7 +7997,7 @@ const lu = {
8007
7997
  } else
8008
7998
  fe = fe.parentElement;
8009
7999
  if (me) {
8010
- const ze = T.currentTarget;
8000
+ const ze = E.currentTarget;
8011
8001
  H.value = {
8012
8002
  x: J,
8013
8003
  y: de,
@@ -8016,55 +8006,55 @@ const lu = {
8016
8006
  };
8017
8007
  } else
8018
8008
  H.value = void 0;
8019
- f("onMouseMove", T, H.value);
8009
+ f("onMouseMove", E, H.value);
8020
8010
  }
8021
8011
  function Ge({
8022
- min: T,
8012
+ min: E,
8023
8013
  max: J,
8024
8014
  current: de,
8025
8015
  resolve: fe
8026
8016
  }) {
8027
- ne.value = fe, Z.value = { min: T, max: J, current: de };
8017
+ ne.value = fe, Z.value = { min: E, max: J, current: de };
8028
8018
  }
8029
- function $e(T) {
8030
- O.value.adjustZoom(T ? 10 : -10);
8019
+ function $e(E) {
8020
+ O.value.adjustZoom(E ? 10 : -10);
8031
8021
  }
8032
- function Ye(T) {
8022
+ function Ye(E) {
8033
8023
  return S.value.stillCameraIndices.findIndex(
8034
- (J) => J === T
8024
+ (J) => J === E
8035
8025
  );
8036
8026
  }
8037
- async function _e(T) {
8038
- const J = E.value;
8027
+ async function _e(E) {
8028
+ const J = T.value;
8039
8029
  if (S.value.loopable) {
8040
- const de = S.value.stillCameraIndices.length, fe = Ye(J), me = Ye(T);
8030
+ const de = S.value.stillCameraIndices.length, fe = Ye(J), me = Ye(E);
8041
8031
  let ze = 0, ct = 0, Pe = fe;
8042
8032
  for (; Pe++, Pe >= de && (Pe = 0), Pe !== me; )
8043
8033
  ze++;
8044
8034
  for (Pe = fe; Pe--, Pe < 0 && (Pe += de), Pe !== me; )
8045
8035
  ct++;
8046
- ze === ct ? Ne(J, T) : ze < ct ? fe < me ? Ne(J, T) : Ne(J, T + S.value.cameras.length) : fe >= me ? Ne(J, T) : Ne(J + S.value.cameras.length, T);
8036
+ ze === ct ? Ne(J, E) : ze < ct ? fe < me ? Ne(J, E) : Ne(J, E + S.value.cameras.length) : fe >= me ? Ne(J, E) : Ne(J + S.value.cameras.length, E);
8047
8037
  } else
8048
- Ne(J, T);
8038
+ Ne(J, E);
8049
8039
  }
8050
- function Ne(T, J) {
8040
+ function Ne(E, J) {
8051
8041
  return new Promise((de) => {
8052
8042
  x.value = !0;
8053
- let fe, me = T;
8043
+ let fe, me = E;
8054
8044
  fe = setInterval(() => {
8055
- me < J ? (me++, E.value = Math.abs(
8045
+ me < J ? (me++, T.value = Math.abs(
8056
8046
  me % S.value.cameras.length
8057
- ), We(E.value)) : me > J ? (me--, E.value = Math.abs(
8047
+ ), We(T.value)) : me > J ? (me--, T.value = Math.abs(
8058
8048
  me % S.value.cameras.length
8059
- ), We(E.value)) : (clearInterval(fe), x.value = !1, de());
8049
+ ), We(T.value)) : (clearInterval(fe), x.value = !1, de());
8060
8050
  }, 12);
8061
8051
  });
8062
8052
  }
8063
- function ut(T) {
8064
- q.value = !0, f("onError", T);
8053
+ function ut(E) {
8054
+ q.value = !0, f("onError", E);
8065
8055
  }
8066
- const ht = (T) => T * (180 / Math.PI);
8067
- return (T, J) => {
8056
+ const ht = (E) => E * (180 / Math.PI);
8057
+ return (E, J) => {
8068
8058
  const de = V("v-progress-circular"), fe = V("v-skeleton-loader");
8069
8059
  return v(), D(pe, null, [
8070
8060
  C(fe, {
@@ -8089,7 +8079,7 @@ const lu = {
8089
8079
  style: { "min-height": "160px" },
8090
8080
  onMousemove: ye
8091
8081
  }, [
8092
- T.showUi ? (v(), D("div", {
8082
+ E.showUi ? (v(), D("div", {
8093
8083
  key: 0,
8094
8084
  class: "persistent actions-bar top-right pa-2",
8095
8085
  style: ie({
@@ -8116,7 +8106,7 @@ const lu = {
8116
8106
  onOnZoomOut: J[1] || (J[1] = (me) => $e(!1))
8117
8107
  }, null, 8, ["is-mobile-sized", "can-zoom-out", "can-zoom-in", "disabled"])
8118
8108
  ], 4)) : R("", !0),
8119
- T.showUi && le.value.length > 1 ? (v(), D("div", {
8109
+ E.showUi && le.value.length > 1 ? (v(), D("div", {
8120
8110
  key: 1,
8121
8111
  class: ge([{
8122
8112
  "actions-bar bottom-center pb-2": !0,
@@ -8152,7 +8142,7 @@ const lu = {
8152
8142
  "current-day": g.value,
8153
8143
  "current-time": _.value
8154
8144
  }, null, 8, ["camera-data", "cdn-file-resolver", "current-camera", "current-day", "current-time"]))), 128)),
8155
- (v(!0), D(pe, null, Ce(Fe.value, (me, ze) => (v(), $(Ti, {
8145
+ (v(!0), D(pe, null, Ce(Fe.value, (me, ze) => (v(), $(Ei, {
8156
8146
  key: `transition${ze}`,
8157
8147
  "transition-data": me,
8158
8148
  "cdn-file-resolver": A(t),
@@ -8179,12 +8169,12 @@ const lu = {
8179
8169
  }, null, 8, ["cdn-file-resolver", "color-callback", "current-camera", "selected-id", "activeStructureIds"])), [
8180
8170
  [Ae, y.value === null]
8181
8171
  ]) : R("", !0),
8182
- oe(T.$slots, "default", {}, void 0, !0)
8172
+ oe(E.$slots, "default", {}, void 0, !0)
8183
8173
  ], 4)
8184
8174
  ]),
8185
8175
  _: 3
8186
8176
  }, 512),
8187
- T.showUi && (g.value && g.value.timeSamples && g.value.timeSamples.length > 1 || h.value.sunsimDayOfYear && h.value.sunsimDayOfYear.length > 1) ? (v(), D("div", {
8177
+ E.showUi && (g.value && g.value.timeSamples && g.value.timeSamples.length > 1 || h.value.sunsimDayOfYear && h.value.sunsimDayOfYear.length > 1) ? (v(), D("div", {
8188
8178
  key: 2,
8189
8179
  class: ge({
8190
8180
  "actions-bar top-left pa-2 d-flex": !0,
@@ -8208,19 +8198,19 @@ const lu = {
8208
8198
  onOnTimeChange: Ve
8209
8199
  }, null, 8, ["is-mobile-sized", "current-day", "current-time", "disabled"])
8210
8200
  ], 2)) : R("", !0),
8211
- T.$slots.popup && H.value && L.value ? (v(), $(lt, {
8201
+ E.$slots.popup && H.value && L.value ? (v(), $(lt, {
8212
8202
  key: 3,
8213
8203
  "is-hoverable": K.value,
8214
8204
  pos: H.value
8215
8205
  }, {
8216
8206
  default: b(() => [
8217
8207
  u("div", ru, [
8218
- oe(T.$slots, "popup", pt(ft({ hoverId: L.value, hoverable: K.value })), void 0, !0)
8208
+ oe(E.$slots, "popup", pt(ft({ hoverId: L.value, hoverable: K.value })), void 0, !0)
8219
8209
  ])
8220
8210
  ]),
8221
8211
  _: 3
8222
8212
  }, 8, ["is-hoverable", "pos"])) : R("", !0),
8223
- T.version && T.showVersion ? (v(), D("div", iu, " version: " + Q(T.version), 1)) : R("", !0)
8213
+ E.version && E.showVersion ? (v(), D("div", iu, " version: " + Q(E.version), 1)) : R("", !0)
8224
8214
  ], 34)
8225
8215
  ]),
8226
8216
  _: 3
@@ -8235,7 +8225,7 @@ const lu = {
8235
8225
  ], 64);
8236
8226
  };
8237
8227
  }
8238
- }), cu = /* @__PURE__ */ X(uu, [["__scopeId", "data-v-3a797603"]]), yu = {
8228
+ }), cu = /* @__PURE__ */ X(uu, [["__scopeId", "data-v-df80f47c"]]), yu = {
8239
8229
  install: function(a) {
8240
8230
  a.component("VApartmentChooser", Fn), a.component("VBuildingChooser", Ro), a.component("VVirtualTour", ni), a.component("VManualSlideShow", wi), a.component("VStructureChooser", cu);
8241
8231
  }