@qispace/vue3-player 0.2.6 → 0.2.8

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,8 +1,8 @@
1
1
  var jt = Object.defineProperty;
2
2
  var Pt = (l, a, e) => a in l ? jt(l, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[a] = e;
3
3
  var re = (l, a, e) => (Pt(l, typeof a != "symbol" ? a + "" : a, e), e);
4
- import { defineComponent as j, ref as p, computed as O, openBlock as m, createElementBlock as A, watch as H, onMounted as ye, onBeforeUnmount as Ye, withDirectives as pe, createElementVNode as d, normalizeStyle as ue, vShow as ge, createVNode as b, Fragment as ie, renderList as ve, createCommentVNode as $, inject as Ge, resolveComponent as V, withCtx as _, toDisplayString as G, unref as T, createTextVNode as ee, normalizeClass as he, createBlock as E, renderSlot as se, provide as Qe, reactive as st, watchEffect as xe, resolveDynamicComponent as xt, normalizeProps as tt, guardReactiveProps as nt, mergeProps as Se, nextTick as ke, Transition as Ee, createSlots as Wt, pushScopeId as rt, popScopeId as it, vModelText as Nt, createStaticVNode as At, onBeforeUpdate as Gt, toRefs as Oe } from "vue";
5
- import pt from "axios";
4
+ import { defineComponent as j, ref as p, computed as O, openBlock as m, createElementBlock as A, watch as H, onMounted as ye, onBeforeUnmount as Ye, withDirectives as pe, createElementVNode as d, normalizeStyle as ie, vShow as ge, createVNode as b, Fragment as ue, renderList as ve, createCommentVNode as $, inject as Ge, resolveComponent as V, withCtx as _, toDisplayString as G, unref as T, createTextVNode as ee, normalizeClass as he, createBlock as E, renderSlot as se, provide as Qe, reactive as st, watchEffect as xe, resolveDynamicComponent as xt, normalizeProps as tt, guardReactiveProps as nt, mergeProps as Se, nextTick as ke, Transition as Ee, createSlots as Wt, pushScopeId as rt, popScopeId as it, vModelText as Nt, createStaticVNode as At, onBeforeUpdate as Gt, toRefs as Oe } from "vue";
5
+ import mt from "axios";
6
6
  import * as Qt from "@qispace/player-core";
7
7
  import * as He from "three";
8
8
  class Ce {
@@ -19,10 +19,10 @@ class Ce {
19
19
  return new Ce().loadImageData(a);
20
20
  }
21
21
  async loadText(a) {
22
- return (await pt.get(a)).data;
22
+ return (await mt.get(a)).data;
23
23
  }
24
24
  async loadJson(a) {
25
- return (await pt.get(a)).data;
25
+ return (await mt.get(a)).data;
26
26
  }
27
27
  async loadImage(a) {
28
28
  return new Promise((e, t) => {
@@ -76,20 +76,20 @@ const qt = /* @__PURE__ */ j({
76
76
  },
77
77
  emits: ["selectUnit", "goToUnit", "hoverOver", "hoverOut", "pos"],
78
78
  setup(l, { emit: a }) {
79
- const e = l, t = a, n = p({ x: 0, y: 0, width: 0, height: 0 }), o = p(0), i = p(0), s = p(), v = p(), u = p(), r = p(), h = p(-1), k = p(!1), f = p(), c = p(), g = p({}), I = p("auto"), S = p(new Ce()), y = p({}), R = p(), F = p(), Y = p(), D = p(), C = p(), W = O(() => Y.value.isHoverEnabled), L = O(() => ce(
79
+ const e = l, t = a, n = p({ x: 0, y: 0, width: 0, height: 0 }), o = p(0), i = p(0), s = p(), v = p(), u = p(), r = p(), g = p(-1), k = p(!1), h = p(), c = p(), f = p({}), S = p("auto"), I = p(new Ce()), y = p({}), R = p(), F = p(), Y = p(), D = p(), C = p(), W = O(() => Y.value.isHoverEnabled), L = O(() => ce(
80
80
  e.cdnFileResolver,
81
81
  `/scenedata${e.viewModel.currentScene}.png`
82
- )), Z = O(() => L.value in g.value ? g.value[L.value] : null), w = O(() => h.value < 0 ? !1 : e.sceneData.find((N) => N.index === h.value) || !1), M = O(() => ({
82
+ )), Z = O(() => L.value in f.value ? f.value[L.value] : null), w = O(() => g.value < 0 ? !1 : e.sceneData.find((N) => N.index === g.value) || !1), M = O(() => ({
83
83
  width: o.value + "px",
84
84
  height: i.value + "px",
85
- cursor: I.value
85
+ cursor: S.value
86
86
  })), q = O(() => `hover-${k.value ? "over" : "out"}-${w.value ? typeof w.value == "object" && "unitId" in w.value ? w.value.unitId : w.value : ""}`);
87
87
  H(
88
88
  L,
89
89
  () => {
90
- g.value[L.value] || S.value.loadImageData(L.value).then((z) => {
91
- g.value = {
92
- ...g.value,
90
+ f.value[L.value] || I.value.loadImageData(L.value).then((z) => {
91
+ f.value = {
92
+ ...f.value,
93
93
  [L.value]: z
94
94
  };
95
95
  });
@@ -113,7 +113,7 @@ const qt = /* @__PURE__ */ j({
113
113
  be();
114
114
  }
115
115
  ), H(w, () => {
116
- be(), w.value ? I.value = "pointer" : I.value = "auto";
116
+ be(), w.value ? S.value = "pointer" : S.value = "auto";
117
117
  }), H(q, () => {
118
118
  k.value ? t("hoverOver", {
119
119
  hoverUnit: w.value ? w.value.unitId : !1,
@@ -132,8 +132,8 @@ const qt = /* @__PURE__ */ j({
132
132
  }, window.addEventListener("resize", F.value), De();
133
133
  }), Ye(() => {
134
134
  window.removeEventListener("resize", F.value);
135
- for (const z in g.value)
136
- URL.revokeObjectURL(g.value[z]);
135
+ for (const z in f.value)
136
+ URL.revokeObjectURL(f.value[z]);
137
137
  });
138
138
  function Q() {
139
139
  s.value = D.value.getContext("2d", { willReadFrequently: !0 }), v.value = new Image(), v.value.onload = () => {
@@ -142,7 +142,7 @@ const qt = /* @__PURE__ */ j({
142
142
  }
143
143
  function oe(z) {
144
144
  const N = J(z.offsetX, z.offsetY);
145
- k.value = N >= 0, h.value = N, n.value = {
145
+ k.value = N >= 0, g.value = N, n.value = {
146
146
  x: z.offsetX,
147
147
  y: z.offsetY,
148
148
  width: o.value,
@@ -181,7 +181,7 @@ const qt = /* @__PURE__ */ j({
181
181
  }
182
182
  }
183
183
  function J(z, N) {
184
- f.value = z, c.value = N;
184
+ h.value = z, c.value = N;
185
185
  const ae = D.value.offsetWidth / D.value.width, $e = D.value.offsetHeight / D.value.height, Ue = (z / ae).toFixed(), Be = (N / $e).toFixed(), Ve = Number(Be) * (D.value.width * 4) + Number(Ue) * 4, ct = r.value.data[Ve];
186
186
  return r.value.data[Ve + 3] > 0 ? ct : -1;
187
187
  }
@@ -192,7 +192,7 @@ const qt = /* @__PURE__ */ j({
192
192
  if (ae) {
193
193
  const $e = me(N.index);
194
194
  let Ue = "idle";
195
- !w.value && e.selectedUnitId && $e === e.selectedUnitId ? Ue = "selected" : w.value && h.value === N.index && (Ue = "hover");
195
+ !w.value && e.selectedUnitId && $e === e.selectedUnitId ? Ue = "selected" : w.value && g.value === N.index && (Ue = "hover");
196
196
  const Be = e.colorCallback(N.unitId, Ue);
197
197
  if (Be)
198
198
  for (let Ve = 0; Ve < ae.length; Ve++)
@@ -262,7 +262,7 @@ const qt = /* @__PURE__ */ j({
262
262
  id: "canvas-mask",
263
263
  ref_key: "canvas",
264
264
  ref: D,
265
- style: ue(M.value),
265
+ style: ie(M.value),
266
266
  onClick: P
267
267
  }, null, 4), [
268
268
  [ge, !z.viewModel.isRotating]
@@ -286,7 +286,7 @@ const qt = /* @__PURE__ */ j({
286
286
  },
287
287
  emits: ["selectUnit", "goToUnit", "hoverOver", "hoverOut", "pos"],
288
288
  setup(l, { emit: a }) {
289
- const e = l, t = a, n = p({ x: 0, y: 0, width: 0, height: 0 }), o = p(-1), i = p({}), s = p(null), v = p(new Ce()), u = p(), r = p(), h = O(() => r.value.isHoverEnabled);
289
+ const e = l, t = a, n = p({ x: 0, y: 0, width: 0, height: 0 }), o = p(-1), i = p({}), s = p(null), v = p(new Ce()), u = p(), r = p(), g = O(() => r.value.isHoverEnabled);
290
290
  H(
291
291
  () => e.viewModel.currentScene,
292
292
  () => {
@@ -303,7 +303,7 @@ const qt = /* @__PURE__ */ j({
303
303
  t("pos", n.value);
304
304
  }), H(o, (F, Y) => {
305
305
  if (F >= 0) {
306
- const D = f(F);
306
+ const D = h(F);
307
307
  t("hoverOver", {
308
308
  hoverUnit: D,
309
309
  closeHandler: () => {
@@ -311,7 +311,7 @@ const qt = /* @__PURE__ */ j({
311
311
  }
312
312
  });
313
313
  } else {
314
- const D = f(Y);
314
+ const D = h(Y);
315
315
  t("hoverOut", {
316
316
  hoverUnit: D,
317
317
  closeHandler: () => {
@@ -347,24 +347,24 @@ const qt = /* @__PURE__ */ j({
347
347
  height: u.value.offsetHeight
348
348
  };
349
349
  }
350
- function f(F) {
350
+ function h(F) {
351
351
  var Y;
352
352
  return (Y = e.sceneData.find(
353
353
  (D) => D.index === (typeof F == "string" ? parseInt(F) : F)
354
354
  )) == null ? void 0 : Y.unitId;
355
355
  }
356
356
  function c(F) {
357
- h.value && (o.value = F);
358
- }
359
- function g(F) {
360
- h.value && (o.value = -1);
357
+ g.value && (o.value = F);
361
358
  }
362
- function I(F) {
363
- const Y = f(F);
364
- t("selectUnit", Y), h.value && Y && e.canGoToUnitCallback(Y) ? t("goToUnit", Y) : o.value = F;
359
+ function f(F) {
360
+ g.value && (o.value = -1);
365
361
  }
366
362
  function S(F) {
367
- const Y = f(F);
363
+ const Y = h(F);
364
+ t("selectUnit", Y), g.value && Y && e.canGoToUnitCallback(Y) ? t("goToUnit", Y) : o.value = F;
365
+ }
366
+ function I(F) {
367
+ const Y = h(F);
368
368
  let D = "idle";
369
369
  o.value < 0 && e.selectedUnitId && Y === e.selectedUnitId ? D = "selected" : o.value >= 0 && o.value === F && (D = "hover");
370
370
  const C = e.colorCallback(Y, D);
@@ -401,7 +401,7 @@ const qt = /* @__PURE__ */ j({
401
401
  }, [
402
402
  pe(d("div", {
403
403
  class: "svg-container",
404
- style: ue({
404
+ style: ie({
405
405
  opacity: !s.value || !s.value.svgObjects ? 0 : 1
406
406
  })
407
407
  }, [
@@ -409,13 +409,13 @@ const qt = /* @__PURE__ */ j({
409
409
  key: 0,
410
410
  viewBox: s.value.viewBox
411
411
  }, [
412
- (m(!0), A(ie, null, ve(s.value.svgObjects, ({ index: D, svg: C }) => (m(), A("g", {
412
+ (m(!0), A(ue, null, ve(s.value.svgObjects, ({ index: D, svg: C }) => (m(), A("g", {
413
413
  key: D,
414
414
  innerHTML: C,
415
- style: ue(S(D)),
415
+ style: ie(I(D)),
416
416
  onMouseenter: (W) => c(D),
417
- onMouseleave: (W) => g(),
418
- onClick: (W) => I(D)
417
+ onMouseleave: (W) => f(),
418
+ onClick: (W) => S(D)
419
419
  }, null, 44, Kt))), 128))
420
420
  ], 8, Xt)) : $("", !0)
421
421
  ], 4), [
@@ -452,15 +452,15 @@ const qt = /* @__PURE__ */ j({
452
452
  u.keyCode === 37 ? e.prevUnitId && i("prevUnit") : u.keyCode === 39 && e.nextUnitId && i("nextUnit");
453
453
  }
454
454
  return (u, r) => {
455
- const h = V("v-btn");
455
+ const g = V("v-btn");
456
456
  return m(), A("div", null, [
457
- b(h, {
457
+ b(g, {
458
458
  elevation: "1",
459
459
  icon: "mdi-rotate-right",
460
460
  class: "black darken-1",
461
461
  onClick: r[0] || (r[0] = (k) => u.viewModel.rotateClockwise())
462
462
  }),
463
- b(h, {
463
+ b(g, {
464
464
  elevation: "1",
465
465
  plain: "",
466
466
  icon: "mdi-chevron-left",
@@ -468,7 +468,7 @@ const qt = /* @__PURE__ */ j({
468
468
  disabled: !o.value,
469
469
  onClick: r[1] || (r[1] = (k) => i("prevUnit"))
470
470
  }, null, 8, ["disabled"]),
471
- b(h, {
471
+ b(g, {
472
472
  color: "darken-2",
473
473
  elevation: "1",
474
474
  rounded: "",
@@ -482,7 +482,7 @@ const qt = /* @__PURE__ */ j({
482
482
  ]),
483
483
  _: 1
484
484
  }, 8, ["disabled"]),
485
- b(h, {
485
+ b(g, {
486
486
  elevation: "1",
487
487
  plain: "",
488
488
  icon: "mdi-chevron-right",
@@ -490,7 +490,7 @@ const qt = /* @__PURE__ */ j({
490
490
  disabled: !n.value,
491
491
  onClick: r[3] || (r[3] = (k) => i("nextUnit"))
492
492
  }, null, 8, ["disabled"]),
493
- b(h, {
493
+ b(g, {
494
494
  elevation: "1",
495
495
  plain: "",
496
496
  icon: "mdi-rotate-left",
@@ -501,7 +501,7 @@ const qt = /* @__PURE__ */ j({
501
501
  };
502
502
  }
503
503
  }), ln = /* @__PURE__ */ K(on, [["__scopeId", "data-v-44ed308e"]]);
504
- class ft {
504
+ class pt {
505
505
  constructor(a) {
506
506
  re(this, "_numParts");
507
507
  re(this, "_loadedCount");
@@ -539,7 +539,7 @@ class ft {
539
539
  return Math.round(this._loadedCount * 100 / this._numParts);
540
540
  }
541
541
  }
542
- class yt {
542
+ class gt {
543
543
  constructor(a, e, t, n) {
544
544
  re(this, "_rotator");
545
545
  re(this, "_direction");
@@ -557,7 +557,7 @@ class yt {
557
557
  const a = this._rotator.clampFrameIndex(
558
558
  this._frameIndex + this._direction
559
559
  ), e = this._rotator.isCardinalFrame(a) ? this._sceneCount - 1 : this._sceneCount;
560
- return new yt(
560
+ return new gt(
561
561
  this._rotator,
562
562
  this._direction,
563
563
  a,
@@ -573,7 +573,7 @@ class sn {
573
573
  }
574
574
  start(a, e, t) {
575
575
  const n = this.startFrameIndexForScene(e);
576
- return new yt(this, a, n, t);
576
+ return new gt(this, a, n, t);
577
577
  }
578
578
  isCardinalFrame(a) {
579
579
  return this._cardinalFrames.includes(a);
@@ -598,7 +598,7 @@ const rn = {
598
598
  key: 2,
599
599
  id: "image-stack",
600
600
  class: "frame-container"
601
- }, pn = ["alt"], fn = ["srcset"], hn = ["src"], wt = 64, Ke = 4, gn = 120, yn = /* @__PURE__ */ j({
601
+ }, pn = ["alt"], fn = ["srcset"], hn = ["src"], kt = 64, Ke = 4, gn = 120, yn = /* @__PURE__ */ j({
602
602
  __name: "VApartmentChooserRotator",
603
603
  props: {
604
604
  viewModel: {},
@@ -608,57 +608,57 @@ const rn = {
608
608
  },
609
609
  emits: ["loaded", "error", "progress"],
610
610
  setup(l, { emit: a }) {
611
- const e = l, t = a, n = f(), o = p(
612
- new ft(n.length).onLoadFinished(() => t("loaded")).onLoadProgress((S) => t("progress", S)).onLoadError(() => t("error"))
611
+ const e = l, t = a, n = h(), o = p(
612
+ new pt(n.length).onLoadFinished(() => t("loaded")).onLoadProgress((I) => t("progress", I)).onLoadError(() => t("error"))
613
613
  ), i = p(
614
- new sn(e.cardinalFrames, wt)
615
- ), s = p(n), v = p(!1), u = O(() => s.value.find((S) => S.show));
614
+ new sn(e.cardinalFrames, kt)
615
+ ), s = p(n), v = p(!1), u = O(() => s.value.find((I) => I.show));
616
616
  H(
617
617
  () => e.viewModel.currentScene,
618
- (S, y) => {
619
- const R = I(y, S), F = g(y, S);
618
+ (I, y) => {
619
+ const R = S(y, I), F = f(y, I);
620
620
  r(y, R, F);
621
621
  }
622
622
  ), ye(() => {
623
623
  k();
624
624
  });
625
- function r(S, y, R) {
626
- e.viewModel.isRotating || (e.viewModel.isRotating = !0, h(
625
+ function r(I, y, R) {
626
+ e.viewModel.isRotating || (e.viewModel.isRotating = !0, g(
627
627
  i.value.start(
628
628
  y,
629
- S % Ke,
629
+ I % Ke,
630
630
  R
631
631
  )
632
632
  ));
633
633
  }
634
- function h(S) {
634
+ function g(I) {
635
635
  setTimeout(() => {
636
- s.value[S.frameIndex].show = !1;
637
- const y = S.nextFrame();
638
- s.value[y.frameIndex].show = !0, y.atEnd ? k() : window.requestAnimationFrame(() => h(y));
636
+ s.value[I.frameIndex].show = !1;
637
+ const y = I.nextFrame();
638
+ s.value[y.frameIndex].show = !0, y.atEnd ? k() : window.requestAnimationFrame(() => g(y));
639
639
  }, 1e3 / gn);
640
640
  }
641
641
  function k() {
642
- const S = i.value.startFrameIndexForScene(
642
+ const I = i.value.startFrameIndexForScene(
643
643
  e.viewModel.currentScene % Ke
644
644
  );
645
- S in s.value && (s.value[S].show = !0), e.viewModel.isRotating = !1;
645
+ I in s.value && (s.value[I].show = !0), e.viewModel.isRotating = !1;
646
646
  }
647
- function f() {
648
- const S = [];
649
- for (let y = 0; y < wt; y++) {
647
+ function h() {
648
+ const I = [];
649
+ for (let y = 0; y < kt; y++) {
650
650
  const { sourceSet: R, defaultPath: F } = c(y);
651
- S.push({
651
+ I.push({
652
652
  index: y,
653
653
  sourceSet: R,
654
654
  defaultPath: F,
655
655
  show: !1
656
656
  });
657
657
  }
658
- return S;
658
+ return I;
659
659
  }
660
- function c(S) {
661
- const y = ("0000" + (S + 1)).slice(-4), R = e.build ? `?v=${e.build}` : "", F = [
660
+ function c(I) {
661
+ const y = ("0000" + (I + 1)).slice(-4), R = e.build ? `?v=${e.build}` : "", F = [
662
662
  `${ce(
663
663
  e.cdnFileResolver,
664
664
  `/480/${y}.jpg${R}`
@@ -677,17 +677,17 @@ const rn = {
677
677
  );
678
678
  return { sourceSet: F, defaultPath: Y };
679
679
  }
680
- function g(S, y) {
681
- const R = Ke / 2, F = Math.abs(S - y);
680
+ function f(I, y) {
681
+ const R = Ke / 2, F = Math.abs(I - y);
682
682
  return F > R ? Ke - F : F;
683
683
  }
684
- function I(S, y) {
685
- if (S === y)
684
+ function S(I, y) {
685
+ if (I === y)
686
686
  return 0;
687
- const F = Math.abs(S - y) < Ke / 2;
688
- return F && S < y || !F && S > y ? 1 : -1;
687
+ const F = Math.abs(I - y) < Ke / 2;
688
+ return F && I < y || !F && I > y ? 1 : -1;
689
689
  }
690
- return (S, y) => {
690
+ return (I, y) => {
691
691
  const R = V("v-icon");
692
692
  return m(), A("div", null, [
693
693
  o.value.isError ? (m(), A("div", rn, [
@@ -698,7 +698,7 @@ const rn = {
698
698
  _: 1
699
699
  })
700
700
  ])) : v.value ? (m(), A("div", mn, [
701
- (m(!0), A(ie, null, ve(s.value, (F) => (m(), A("picture", {
701
+ (m(!0), A(ue, null, ve(s.value, (F) => (m(), A("picture", {
702
702
  key: F.index,
703
703
  alt: F.index,
704
704
  class: he({ "frame-image": !0, show: F.show })
@@ -751,7 +751,7 @@ const rn = {
751
751
  o.isHoverable ? (m(), A("div", {
752
752
  key: 0,
753
753
  class: "floating-card",
754
- style: ue({
754
+ style: ie({
755
755
  left: `${o.pos.x}px`,
756
756
  top: `${o.pos.y}px`,
757
757
  pointerEvents: "none",
@@ -791,7 +791,7 @@ const rn = {
791
791
  a({
792
792
  adjustZoom: oe
793
793
  });
794
- const o = p(100), i = p(0), s = p(0), v = p(!1), u = p(!1), r = p(void 0), h = p(!1), k = p(), f = O(() => `translateX(${i.value}px) translateY(${s.value}px) scale(${c.value})`), c = O(() => o.value / 100), g = O(() => t.maxScale * 100);
794
+ const o = p(100), i = p(0), s = p(0), v = p(!1), u = p(!1), r = p(void 0), g = p(!1), k = p(), h = O(() => `translateX(${i.value}px) translateY(${s.value}px) scale(${c.value})`), c = O(() => o.value / 100), f = O(() => t.maxScale * 100);
795
795
  H(
796
796
  [c, i, s],
797
797
  () => {
@@ -801,19 +801,19 @@ const rn = {
801
801
  ), H(
802
802
  () => t.desktop,
803
803
  () => {
804
- t.desktop ? I() : y();
804
+ t.desktop ? S() : y();
805
805
  }
806
806
  ), H(
807
807
  () => t.mobile,
808
808
  () => {
809
- t.mobile ? S() : R();
809
+ t.mobile ? I() : R();
810
810
  }
811
811
  ), ye(() => {
812
- t.desktop && I(), t.mobile && S();
812
+ t.desktop && S(), t.mobile && I();
813
813
  }), Ye(() => {
814
814
  t.desktop && y(), t.mobile && R();
815
815
  });
816
- function I() {
816
+ function S() {
817
817
  k.value.addEventListener("wheel", F, {
818
818
  capture: !0
819
819
  }), k.value.addEventListener("mousedown", Y, {
@@ -826,7 +826,7 @@ const rn = {
826
826
  capture: !0
827
827
  });
828
828
  }
829
- function S() {
829
+ function I() {
830
830
  k.value.addEventListener("touchstart", L, {
831
831
  capture: !0
832
832
  }), k.value.addEventListener("touchmove", Z, {
@@ -866,7 +866,7 @@ const rn = {
866
866
  oe(-B.deltaY / 10, J, ne), B.preventDefault();
867
867
  }
868
868
  function Y(B) {
869
- v.value = !0, h.value = !1, r.value = B;
869
+ v.value = !0, g.value = !1, r.value = B;
870
870
  }
871
871
  function D(B) {
872
872
  if (v.value) {
@@ -874,14 +874,14 @@ const rn = {
874
874
  x: J - fe,
875
875
  y: ne - me
876
876
  };
877
- q(de.x), Q(de.y), h.value = !0, r.value = B;
877
+ q(de.x), Q(de.y), g.value = !0, r.value = B;
878
878
  }
879
879
  }
880
880
  function C(B) {
881
- v.value && h.value && t.consumeMouseUpWhenMoved && (B.preventDefault(), B.stopImmediatePropagation());
881
+ v.value && g.value && t.consumeMouseUpWhenMoved && (B.preventDefault(), B.stopImmediatePropagation());
882
882
  }
883
883
  function W(B) {
884
- v.value && (h.value && t.consumeMouseClickWhenMoved && (B.preventDefault(), B.stopImmediatePropagation()), v.value = !1);
884
+ v.value && (g.value && t.consumeMouseClickWhenMoved && (B.preventDefault(), B.stopImmediatePropagation()), v.value = !1);
885
885
  }
886
886
  function L(B) {
887
887
  v.value = B.touches.length === 1, u.value = B.touches.length === 2, r.value = B;
@@ -931,7 +931,7 @@ const rn = {
931
931
  }
932
932
  function oe(B, J, ne) {
933
933
  const fe = J !== void 0 ? J : k.value.clientWidth / 2, me = ne !== void 0 ? ne : k.value.clientHeight / 2, de = k.value.clientWidth, we = k.value.clientHeight, Me = de * c.value, Te = we * c.value;
934
- o.value = Math.min(Math.max(100, o.value + B), g.value);
934
+ o.value = Math.min(Math.max(100, o.value + B), f.value);
935
935
  const De = de * c.value, Ae = we * c.value, be = De - Me, _e = Ae - Te;
936
936
  i.value -= fe / de * be, s.value -= me / we * _e, q(0), Q(0);
937
937
  }
@@ -940,9 +940,9 @@ const rn = {
940
940
  scale: c.value,
941
941
  x: i.value,
942
942
  y: s.value,
943
- current: Math.min(Math.max(100, o.value), g.value),
943
+ current: Math.min(Math.max(100, o.value), f.value),
944
944
  min: 100,
945
- max: g.value,
945
+ max: f.value,
946
946
  resolve: (B, J) => {
947
947
  const ne = k.value.clientWidth, fe = k.value.clientHeight, me = i.value / -c.value, de = s.value / -c.value, we = me + ne / c.value, Me = de + fe / c.value, Te = B / ne * (we - me) + me, De = J / fe * (Me - de) + de;
948
948
  return { x: Te, y: De };
@@ -953,22 +953,22 @@ const rn = {
953
953
  ref_key: "box",
954
954
  ref: k,
955
955
  class: "zoom-box-container",
956
- style: ue({ position: t.position })
956
+ style: ie({ position: t.position })
957
957
  }, [
958
958
  d("div", {
959
- style: ue({ "transform-origin": "top left", transform: f.value }),
959
+ style: ie({ "transform-origin": "top left", transform: h.value }),
960
960
  class: "zoom-box"
961
961
  }, [
962
962
  se(B.$slots, "default", {}, void 0, !0)
963
963
  ], 4)
964
964
  ], 4));
965
965
  }
966
- }), qe = /* @__PURE__ */ K(Cn, [["__scopeId", "data-v-3e334a46"]]), _t = 4;
966
+ }), qe = /* @__PURE__ */ K(Cn, [["__scopeId", "data-v-3e334a46"]]), yt = 4;
967
967
  function Ft(l) {
968
- return l < _t ? l + 1 : 1;
968
+ return l < yt ? l + 1 : 1;
969
969
  }
970
970
  function kn(l) {
971
- return l > 1 ? l - 1 : _t;
971
+ return l > 1 ? l - 1 : yt;
972
972
  }
973
973
  class wn {
974
974
  constructor(a) {
@@ -1198,10 +1198,10 @@ const Sn = { key: 0 }, Dn = { class: "interactive-viewer" }, xn = { class: "fill
1198
1198
  Le,
1199
1199
  t.i18nConfig ? new Fe(t.i18nConfig) : new Fe()
1200
1200
  );
1201
- const o = st({ isReady: !1, isError: !1 }), i = p(), s = p(), v = p(), u = p(), r = p({ x: 0, y: 0, width: 0, height: 0 }), h = p(), k = p(), f = p(), c = O(() => f.value.isHoverEnabled), g = O(() => t.useSvg ? tn : Jt), I = O(() => t.selectedUnitId), S = O(() => t.nextUnitId), y = O(() => t.prevUnitId);
1201
+ const o = st({ isReady: !1, isError: !1 }), i = p(), s = p(), v = p(), u = p(), r = p({ x: 0, y: 0, width: 0, height: 0 }), g = p(), k = p(), h = p(), c = O(() => h.value.isHoverEnabled), f = O(() => t.useSvg ? tn : Jt), S = O(() => t.selectedUnitId), I = O(() => t.nextUnitId), y = O(() => t.prevUnitId);
1202
1202
  xe(() => {
1203
- if (I.value && u.value) {
1204
- const D = i.value[I.value];
1203
+ if (S.value && u.value) {
1204
+ const D = i.value[S.value];
1205
1205
  D && (u.value.currentScene = D);
1206
1206
  }
1207
1207
  }), ye(async () => {
@@ -1215,7 +1215,7 @@ const Sn = { key: 0 }, Dn = { class: "interactive-viewer" }, xn = { class: "fill
1215
1215
  }).reduce((L, Z) => ({ ...L, [Z.unitId]: Z.scene }), {}) : {};
1216
1216
  const C = (L, Z = "unitId") => {
1217
1217
  let w = D, M = [];
1218
- for (let q = 0; q < _t; q++)
1218
+ for (let q = 0; q < yt; q++)
1219
1219
  M.push(w), w = Ft(w);
1220
1220
  return L.sort((q, Q) => {
1221
1221
  const oe = M.findIndex(
@@ -1241,10 +1241,10 @@ const Sn = { key: 0 }, Dn = { class: "interactive-viewer" }, xn = { class: "fill
1241
1241
  r.value = D;
1242
1242
  }
1243
1243
  function F(D) {
1244
- k.value = D.hoverUnit, h.value = D.closeHandler, n("hoverOverUnit", D.hoverUnit);
1244
+ k.value = D.hoverUnit, g.value = D.closeHandler, n("hoverOverUnit", D.hoverUnit);
1245
1245
  }
1246
1246
  function Y(D) {
1247
- k.value = null, h.value = D.closeHandler, n("hoverOutUnit", D.hoverUnit);
1247
+ k.value = null, g.value = D.closeHandler, n("hoverOutUnit", D.hoverUnit);
1248
1248
  }
1249
1249
  return (D, C) => {
1250
1250
  const W = V("v-progress-linear");
@@ -1266,10 +1266,10 @@ const Sn = { key: 0 }, Dn = { class: "interactive-viewer" }, xn = { class: "fill
1266
1266
  onError: C[2] || (C[2] = (L) => o.isError = !0)
1267
1267
  }, null, 8, ["cdn-file-resolver", "view-model", "cardinal-frames", "build"]),
1268
1268
  o.isReady ? (m(), A("div", An, [
1269
- (m(), E(xt(g.value), {
1269
+ (m(), E(xt(f.value), {
1270
1270
  "cdn-file-resolver": t.cdnFileResolver,
1271
1271
  "view-model": u.value,
1272
- "selected-unit-id": I.value,
1272
+ "selected-unit-id": S.value,
1273
1273
  "scene-data": s.value,
1274
1274
  "color-callback": t.colorCallback,
1275
1275
  "can-go-to-unit-callback": t.canGoToUnitCallback,
@@ -1293,7 +1293,7 @@ const Sn = { key: 0 }, Dn = { class: "interactive-viewer" }, xn = { class: "fill
1293
1293
  key: 0,
1294
1294
  "is-hoverable": c.value,
1295
1295
  pos: r.value,
1296
- onOutside: h.value
1296
+ onOutside: g.value
1297
1297
  }, {
1298
1298
  default: _(() => [
1299
1299
  se(D.$slots, "default", {
@@ -1302,7 +1302,7 @@ const Sn = { key: 0 }, Dn = { class: "interactive-viewer" }, xn = { class: "fill
1302
1302
  goToUnit: () => D.canGoToUnitCallback(k.value) && n("goToUnit", k.value),
1303
1303
  pos: r.value,
1304
1304
  isHoverable: c.value,
1305
- close: h.value
1305
+ close: g.value
1306
1306
  }, void 0, !0)
1307
1307
  ]),
1308
1308
  _: 3
@@ -1311,13 +1311,13 @@ const Sn = { key: 0 }, Dn = { class: "interactive-viewer" }, xn = { class: "fill
1311
1311
  b(ln, {
1312
1312
  "can-go-to-unit-callback": t.canGoToUnitCallback,
1313
1313
  "unit-renderer": t.unitRenderer,
1314
- "selected-unit-id": I.value,
1314
+ "selected-unit-id": S.value,
1315
1315
  "prev-unit-id": y.value,
1316
- "next-unit-id": S.value,
1316
+ "next-unit-id": I.value,
1317
1317
  "view-model": u.value,
1318
1318
  onGoToUnit: C[5] || (C[5] = (L) => n("goToUnit", L)),
1319
1319
  onPrevUnit: C[6] || (C[6] = (L) => n("navUnit", y.value)),
1320
- onNextUnit: C[7] || (C[7] = (L) => n("navUnit", S.value))
1320
+ onNextUnit: C[7] || (C[7] = (L) => n("navUnit", I.value))
1321
1321
  }, null, 8, ["can-go-to-unit-callback", "unit-renderer", "selected-unit-id", "prev-unit-id", "next-unit-id", "view-model"])
1322
1322
  ])) : o.isError ? $("", !0) : (m(), A("div", Ln, [
1323
1323
  b(W, {
@@ -1330,7 +1330,7 @@ const Sn = { key: 0 }, Dn = { class: "interactive-viewer" }, xn = { class: "fill
1330
1330
  ]),
1331
1331
  b(Re, {
1332
1332
  ref_key: "hoverProbe",
1333
- ref: f
1333
+ ref: h
1334
1334
  }, null, 512)
1335
1335
  ])) : $("", !0);
1336
1336
  };
@@ -1361,7 +1361,7 @@ const Sn = { key: 0 }, Dn = { class: "interactive-viewer" }, xn = { class: "fill
1361
1361
  },
1362
1362
  setup(l) {
1363
1363
  const a = l;
1364
- return (e, t) => (m(!0), A(ie, null, ve(a.dayData.timeSamples, (n) => (m(), E(Bn, {
1364
+ return (e, t) => (m(!0), A(ue, null, ve(a.dayData.timeSamples, (n) => (m(), E(Bn, {
1365
1365
  "time-sample-data": n,
1366
1366
  "cdn-file-resolver": a.cdnFileResolver,
1367
1367
  "current-time": e.currentTime
@@ -1376,7 +1376,7 @@ const Sn = { key: 0 }, Dn = { class: "interactive-viewer" }, xn = { class: "fill
1376
1376
  },
1377
1377
  setup(l) {
1378
1378
  const a = l;
1379
- return (e, t) => (m(!0), A(ie, null, ve(a.cameraData.sunsimDayOfYear, (n) => (m(), E($n, {
1379
+ return (e, t) => (m(!0), A(ue, null, ve(a.cameraData.sunsimDayOfYear, (n) => (m(), E($n, {
1380
1380
  "day-data": n,
1381
1381
  "cdn-file-resolver": a.cdnFileResolver,
1382
1382
  "current-time": a.currentTime
@@ -1419,10 +1419,10 @@ function zn(l) {
1419
1419
  return !1;
1420
1420
  return !0;
1421
1421
  }
1422
- function bt(l) {
1422
+ function _t(l) {
1423
1423
  return !("filename" in l);
1424
1424
  }
1425
- function ht(l) {
1425
+ function ft(l) {
1426
1426
  return "filename" in l;
1427
1427
  }
1428
1428
  const jn = /* @__PURE__ */ j({
@@ -1444,7 +1444,7 @@ const jn = /* @__PURE__ */ j({
1444
1444
  }
1445
1445
  );
1446
1446
  const o = O(
1447
- () => e.apartmentChooserData ? e.apartmentChooserData.cameras.filter(bt) : []
1447
+ () => e.apartmentChooserData ? e.apartmentChooserData.cameras.filter(_t) : []
1448
1448
  );
1449
1449
  return H(n, () => {
1450
1450
  t(
@@ -1550,8 +1550,8 @@ const jn = /* @__PURE__ */ j({
1550
1550
  );
1551
1551
  });
1552
1552
  function i(v) {
1553
- const u = v * 60, r = Math.floor(u / 60), h = u % 60;
1554
- return `${r.toString().padStart(2, "0")}:${h.toString().padStart(2, "0")}`;
1553
+ const u = v * 60, r = Math.floor(u / 60), g = u % 60;
1554
+ return `${r.toString().padStart(2, "0")}:${g.toString().padStart(2, "0")}`;
1555
1555
  }
1556
1556
  function s() {
1557
1557
  o.value ? (clearInterval(o.value), o.value = void 0) : (e.dayData.timeSamples.findIndex(
@@ -1564,8 +1564,8 @@ const jn = /* @__PURE__ */ j({
1564
1564
  }, 200));
1565
1565
  }
1566
1566
  return (v, u) => {
1567
- const r = V("v-icon"), h = V("v-btn"), k = V("v-slider"), f = V("v-field");
1568
- return m(), E(f, { variant: "solo" }, {
1567
+ const r = V("v-icon"), g = V("v-btn"), k = V("v-slider"), h = V("v-field");
1568
+ return m(), E(h, { variant: "solo" }, {
1569
1569
  default: _(() => [
1570
1570
  v.dayData.startTime === v.dayData.endTime ? (m(), A("div", Wn, [
1571
1571
  b(r, {
@@ -1590,7 +1590,7 @@ const jn = /* @__PURE__ */ j({
1590
1590
  "hide-details": ""
1591
1591
  }, {
1592
1592
  prepend: _(() => [
1593
- b(h, {
1593
+ b(g, {
1594
1594
  icon: o.value ? "mdi-stop" : "mdi-play",
1595
1595
  size: "x-small",
1596
1596
  variant: "flat",
@@ -1645,67 +1645,67 @@ const jn = /* @__PURE__ */ j({
1645
1645
  const v = O(() => o.value ? !1 : t.apartmentChooserData.loopable ? !0 : i.value !== t.apartmentChooserData.scenes[0]), u = O(() => o.value ? !1 : t.apartmentChooserData.loopable ? !0 : i.value !== t.apartmentChooserData.scenes[t.apartmentChooserData.scenes.length - 1]);
1646
1646
  function r() {
1647
1647
  const c = i.value;
1648
- let g = t.apartmentChooserData.scenes.findIndex((S) => S === c) + 1;
1649
- g >= t.apartmentChooserData.scenes.length && (g = 0);
1650
- const I = t.apartmentChooserData.scenes[g];
1651
- t.apartmentChooserData.loopable && c > I, f(c, I);
1648
+ let f = t.apartmentChooserData.scenes.findIndex((I) => I === c) + 1;
1649
+ f >= t.apartmentChooserData.scenes.length && (f = 0);
1650
+ const S = t.apartmentChooserData.scenes[f];
1651
+ t.apartmentChooserData.loopable && c > S, h(c, S);
1652
1652
  }
1653
- async function h() {
1653
+ async function g() {
1654
1654
  const c = i.value;
1655
- let g = t.apartmentChooserData.scenes.findIndex((S) => S === c) - 1;
1656
- g < 0 && (g = t.apartmentChooserData.scenes.length - 1);
1657
- const I = t.apartmentChooserData.scenes[g];
1658
- t.apartmentChooserData.loopable && c < I, f(c, I);
1655
+ let f = t.apartmentChooserData.scenes.findIndex((I) => I === c) - 1;
1656
+ f < 0 && (f = t.apartmentChooserData.scenes.length - 1);
1657
+ const S = t.apartmentChooserData.scenes[f];
1658
+ t.apartmentChooserData.loopable && c < S, h(c, S);
1659
1659
  }
1660
1660
  function k(c) {
1661
- const g = i.value;
1661
+ const f = i.value;
1662
1662
  if (t.apartmentChooserData.loopable)
1663
- if (c < g) {
1664
- let I = g - c, S = g - (t.apartmentChooserData.cameras.length + c);
1665
- return Math.abs(I) > Math.abs(S) ? f(g, c) : f(g, t.apartmentChooserData.cameras.length + c);
1663
+ if (c < f) {
1664
+ let S = f - c, I = f - (t.apartmentChooserData.cameras.length + c);
1665
+ return Math.abs(S) > Math.abs(I) ? h(f, c) : h(f, t.apartmentChooserData.cameras.length + c);
1666
1666
  } else {
1667
- let I = g - c, S = t.apartmentChooserData.cameras.length + g - c;
1668
- return Math.abs(I) > Math.abs(S) ? f(g, c) : f(t.apartmentChooserData.cameras.length + g, c);
1667
+ let S = f - c, I = t.apartmentChooserData.cameras.length + f - c;
1668
+ return Math.abs(S) > Math.abs(I) ? h(f, c) : h(t.apartmentChooserData.cameras.length + f, c);
1669
1669
  }
1670
1670
  else
1671
- return f(g, c);
1672
- }
1673
- function f(c, g) {
1674
- return new Promise((I) => {
1675
- o.value = !0, n("onRotateStart", { from: c, to: g });
1676
- let S, y = c;
1677
- S = setInterval(() => {
1678
- y < g ? (y++, i.value = Math.abs(
1671
+ return h(f, c);
1672
+ }
1673
+ function h(c, f) {
1674
+ return new Promise((S) => {
1675
+ o.value = !0, n("onRotateStart", { from: c, to: f });
1676
+ let I, y = c;
1677
+ I = setInterval(() => {
1678
+ y < f ? (y++, i.value = Math.abs(
1679
1679
  y % t.apartmentChooserData.cameras.length
1680
- )) : y > g ? (y--, i.value = Math.abs(
1680
+ )) : y > f ? (y--, i.value = Math.abs(
1681
1681
  y % t.apartmentChooserData.cameras.length
1682
- )) : (clearInterval(S), n("onRotateFinish", { from: c, to: g }), o.value = !1, I());
1682
+ )) : (clearInterval(I), n("onRotateFinish", { from: c, to: f }), o.value = !1, S());
1683
1683
  }, 50);
1684
1684
  });
1685
1685
  }
1686
- return (c, g) => {
1687
- const I = V("v-btn"), S = V("v-chip");
1688
- return m(), A(ie, null, [
1689
- b(I, {
1686
+ return (c, f) => {
1687
+ const S = V("v-btn"), I = V("v-chip");
1688
+ return m(), A(ue, null, [
1689
+ b(S, {
1690
1690
  class: "mx-2",
1691
1691
  icon: "mdi-restore",
1692
1692
  size: "small",
1693
1693
  disabled: !v.value,
1694
- onClick: h
1694
+ onClick: g
1695
1695
  }, null, 8, ["disabled"]),
1696
- c.renderDisplay && s.value ? (m(), E(S, {
1696
+ c.renderDisplay && s.value ? (m(), E(I, {
1697
1697
  key: 0,
1698
1698
  variant: "flat",
1699
1699
  color: "white",
1700
1700
  size: "large",
1701
- onClick: g[0] || (g[0] = (y) => n("onDisplayClick", s.value))
1701
+ onClick: f[0] || (f[0] = (y) => n("onDisplayClick", s.value))
1702
1702
  }, {
1703
1703
  default: _(() => [
1704
1704
  ee(G(c.renderDisplay(s.value)), 1)
1705
1705
  ]),
1706
1706
  _: 1
1707
1707
  })) : $("", !0),
1708
- b(I, {
1708
+ b(S, {
1709
1709
  class: "mx-2",
1710
1710
  icon: "mdi-reload",
1711
1711
  size: "small",
@@ -1733,14 +1733,14 @@ const jn = /* @__PURE__ */ j({
1733
1733
  }
1734
1734
  ), xe(() => {
1735
1735
  for (const r in s) {
1736
- const { element: h, state: k } = s[r], { r: f, g: c, b: g, a: I, s: S } = e.colorCallback(r, k) || {
1736
+ const { element: g, state: k } = s[r], { r: h, g: c, b: f, a: S, s: I } = e.colorCallback(r, k) || {
1737
1737
  r: 0,
1738
1738
  g: 0,
1739
1739
  b: 0,
1740
1740
  a: 0,
1741
1741
  s: 0
1742
1742
  };
1743
- h.style.fill = `rgba(${f}, ${c}, ${g}, ${I / 255})`, h.style.stroke = `rgb(${f}, ${c}, ${g})`, h.style.strokeWidth = S.toString();
1743
+ g.style.fill = `rgba(${h}, ${c}, ${f}, ${S / 255})`, g.style.stroke = `rgb(${h}, ${c}, ${f})`, g.style.strokeWidth = I.toString();
1744
1744
  }
1745
1745
  }), H(i, () => {
1746
1746
  for (const r in s)
@@ -1757,8 +1757,8 @@ const jn = /* @__PURE__ */ j({
1757
1757
  );
1758
1758
  function v() {
1759
1759
  ke(() => {
1760
- var h;
1761
- const r = (h = o.value) == null ? void 0 : h.firstChild;
1760
+ var g;
1761
+ const r = (g = o.value) == null ? void 0 : g.firstChild;
1762
1762
  if (r) {
1763
1763
  if (!r.hasAttribute("viewBox")) {
1764
1764
  const k = `0 0 ${r.getAttribute(
@@ -1778,29 +1778,29 @@ const jn = /* @__PURE__ */ j({
1778
1778
  }
1779
1779
  function u() {
1780
1780
  ke(() => {
1781
- var h;
1782
- const r = (h = o.value) == null ? void 0 : h.firstChild;
1781
+ var g;
1782
+ const r = (g = o.value) == null ? void 0 : g.firstChild;
1783
1783
  r && (t("updateSvgContainer", r), v(), r.querySelectorAll(
1784
1784
  "[data-apartment-id]"
1785
- ).forEach((f) => {
1786
- f.style.strokeWidth = "0", f.style.stroke = "rgba(255,255,255,0)", f.style.fill = "rgba(255,255,255,0)", f.querySelectorAll("path").forEach((g) => {
1787
- g.style.stroke = "inherit", g.style.fill = "inherit";
1785
+ ).forEach((h) => {
1786
+ h.style.strokeWidth = "0", h.style.stroke = "rgba(255,255,255,0)", h.style.fill = "rgba(255,255,255,0)", h.querySelectorAll("path").forEach((f) => {
1787
+ f.style.stroke = "inherit", f.style.fill = "inherit";
1788
1788
  });
1789
- const c = f.getAttribute("data-apartment-id");
1789
+ const c = h.getAttribute("data-apartment-id");
1790
1790
  s[c] = {
1791
- element: f,
1791
+ element: h,
1792
1792
  state: i.value === c ? "selected" : "idle"
1793
- }, f.addEventListener("mouseover", () => {
1793
+ }, h.addEventListener("mouseover", () => {
1794
1794
  s[c].state === "idle" && (s[c].state = "hover"), t("onHoverOver", c);
1795
- }), f.addEventListener("mouseout", () => {
1795
+ }), h.addEventListener("mouseout", () => {
1796
1796
  s[c].state === "hover" && (s[c].state = "idle"), t("onHoverOut", c);
1797
- }), f.addEventListener("click", () => {
1797
+ }), h.addEventListener("click", () => {
1798
1798
  t("onClick", c);
1799
1799
  });
1800
1800
  }));
1801
1801
  });
1802
1802
  }
1803
- return (r, h) => (m(), E(Ee, null, {
1803
+ return (r, g) => (m(), E(Ee, null, {
1804
1804
  default: _(() => [
1805
1805
  (m(), A("div", {
1806
1806
  ref_key: "svgContainer",
@@ -1828,7 +1828,7 @@ const jn = /* @__PURE__ */ j({
1828
1828
  const o = V("v-img");
1829
1829
  return m(), E(o, {
1830
1830
  src: T(ea),
1831
- style: ue(e.value)
1831
+ style: ie(e.value)
1832
1832
  }, null, 8, ["src", "style"]);
1833
1833
  };
1834
1834
  }
@@ -2040,7 +2040,7 @@ function sa(l) {
2040
2040
  ]
2041
2041
  }
2042
2042
  ]
2043
- }, ht(o[v]) && (o[v] = r);
2043
+ }, ft(o[v]) && (o[v] = r);
2044
2044
  }
2045
2045
  return {
2046
2046
  version: "5.0",
@@ -2085,7 +2085,7 @@ const ra = {
2085
2085
  setup(l, { emit: a }) {
2086
2086
  const e = l, t = a, n = p(), o = p(), i = p(), s = p(
2087
2087
  null
2088
- ), v = p(4), u = p(), r = p(!1), h = p(!1), k = p(), f = p(), c = O(() => f.value.isHoverEnabled), g = p({ x: 0, y: 0, width: 0, height: 0 }), I = p(), S = p(), y = p(
2088
+ ), v = p(4), u = p(), r = p(!1), g = p(!1), k = p(), h = p(), c = O(() => h.value.isHoverEnabled), f = p({ x: 0, y: 0, width: 0, height: 0 }), S = p(), I = p(), y = p(
2089
2089
  e.apartmentChooserData
2090
2090
  ), R = p(!1);
2091
2091
  ye(() => {
@@ -2093,17 +2093,17 @@ const ra = {
2093
2093
  }), H(r, (P) => {
2094
2094
  P && t("onInitialize");
2095
2095
  }), H(
2096
- () => S.value,
2096
+ () => I.value,
2097
2097
  () => {
2098
- S.value && new ResizeObserver(([B]) => {
2098
+ I.value && new ResizeObserver(([B]) => {
2099
2099
  R.value = B.contentRect.width < e.mobileBreakpoint;
2100
- }).observe(S.value);
2100
+ }).observe(I.value);
2101
2101
  }
2102
2102
  );
2103
2103
  const F = O(
2104
- () => y.value ? y.value.cameras.filter(bt) : []
2104
+ () => y.value ? y.value.cameras.filter(_t) : []
2105
2105
  ), Y = O(
2106
- () => y.value ? y.value.cameras.filter(ht) : []
2106
+ () => y.value ? y.value.cameras.filter(ft) : []
2107
2107
  ), D = async () => {
2108
2108
  try {
2109
2109
  let P, B;
@@ -2153,7 +2153,7 @@ const ra = {
2153
2153
  );
2154
2154
  }
2155
2155
  function W(P) {
2156
- v.value = P, ht(y.value.cameras[v.value]) ? s.value = y.value.cameras[v.value] : (ke(() => {
2156
+ v.value = P, ft(y.value.cameras[v.value]) ? s.value = y.value.cameras[v.value] : (ke(() => {
2157
2157
  L(
2158
2158
  y.value.cameras[v.value]
2159
2159
  );
@@ -2204,26 +2204,26 @@ const ra = {
2204
2204
  const { layerX: B, layerY: J } = P;
2205
2205
  let ne = P.target, fe = !1;
2206
2206
  for (; ne; )
2207
- if (ne === I.value) {
2207
+ if (ne === S.value) {
2208
2208
  fe = !0;
2209
2209
  break;
2210
2210
  } else
2211
2211
  ne = ne.parentElement;
2212
2212
  if (fe) {
2213
2213
  const me = P.currentTarget;
2214
- g.value = {
2214
+ f.value = {
2215
2215
  x: B,
2216
2216
  y: J,
2217
2217
  width: me.clientWidth,
2218
2218
  height: me.clientHeight
2219
2219
  };
2220
2220
  } else
2221
- g.value = void 0;
2222
- t("onMouseMove", P, g.value);
2221
+ f.value = void 0;
2222
+ t("onMouseMove", P, f.value);
2223
2223
  }
2224
2224
  return (P, B) => {
2225
2225
  const J = V("v-skeleton-loader");
2226
- return m(), A(ie, null, [
2226
+ return m(), A(ue, null, [
2227
2227
  b(J, {
2228
2228
  type: "image",
2229
2229
  class: "w-100 h-100 position-relative",
@@ -2234,7 +2234,7 @@ const ra = {
2234
2234
  default: _(() => [
2235
2235
  d("div", {
2236
2236
  ref_key: "container",
2237
- ref: S,
2237
+ ref: I,
2238
2238
  class: he({ mobile: R.value }),
2239
2239
  onMousemove: oe
2240
2240
  }, [
@@ -2244,7 +2244,7 @@ const ra = {
2244
2244
  key: 0,
2245
2245
  "apartment-chooser-data": y.value,
2246
2246
  "current-camera": n.value,
2247
- disabled: h.value,
2247
+ disabled: g.value,
2248
2248
  onOnCameraChange: C
2249
2249
  }, null, 8, ["apartment-chooser-data", "current-camera", "disabled"])) : $("", !0)
2250
2250
  ]),
@@ -2253,7 +2253,7 @@ const ra = {
2253
2253
  key: 0,
2254
2254
  "camera-data": n.value,
2255
2255
  "current-day": o.value,
2256
- disabled: h.value,
2256
+ disabled: g.value,
2257
2257
  onOnDayChange: Z
2258
2258
  }, null, 8, ["camera-data", "current-day", "disabled"])) : $("", !0)
2259
2259
  ]),
@@ -2262,7 +2262,7 @@ const ra = {
2262
2262
  key: 0,
2263
2263
  "day-data": o.value,
2264
2264
  "current-time": i.value,
2265
- disabled: h.value,
2265
+ disabled: g.value,
2266
2266
  onOnTimeChange: w
2267
2267
  }, null, 8, ["day-data", "current-time", "disabled"])) : $("", !0)
2268
2268
  ])
@@ -2278,8 +2278,8 @@ const ra = {
2278
2278
  "render-display": e.renderDisplay,
2279
2279
  onOnDisplayClick: M,
2280
2280
  onOnSceneChange: W,
2281
- onOnRotateStart: B[0] || (B[0] = (ne) => h.value = !0),
2282
- onOnRotateFinish: B[1] || (B[1] = (ne) => h.value = !1)
2281
+ onOnRotateStart: B[0] || (B[0] = (ne) => g.value = !0),
2282
+ onOnRotateFinish: B[1] || (B[1] = (ne) => g.value = !1)
2283
2283
  }, null, 8, ["apartment-chooser-data", "current-scene", "selected-id", "render-display"])) : $("", !0)
2284
2284
  ]),
2285
2285
  d("div", va, [
@@ -2290,13 +2290,13 @@ const ra = {
2290
2290
  ]),
2291
2291
  b(qe, { position: "relative" }, {
2292
2292
  default: _(() => [
2293
- (m(!0), A(ie, null, ve(F.value, (ne) => (m(), E(Rn, {
2293
+ (m(!0), A(ue, null, ve(F.value, (ne) => (m(), E(Rn, {
2294
2294
  key: ne.overlayFilename,
2295
2295
  "camera-data": ne,
2296
2296
  "cdn-file-resolver": e.cdnFileResolver,
2297
2297
  "current-time": i.value
2298
2298
  }, null, 8, ["camera-data", "cdn-file-resolver", "current-time"]))), 128)),
2299
- (m(!0), A(ie, null, ve(Y.value, (ne) => (m(), E(Yn, {
2299
+ (m(!0), A(ue, null, ve(Y.value, (ne) => (m(), E(Yn, {
2300
2300
  "transition-data": ne,
2301
2301
  "cdn-file-resolver": e.cdnFileResolver,
2302
2302
  "current-transition": s.value
@@ -2315,17 +2315,17 @@ const ra = {
2315
2315
  onOnClick: M,
2316
2316
  onOnHoverOver: q,
2317
2317
  onOnHoverOut: Q,
2318
- onUpdateSvgContainer: B[2] || (B[2] = (ne) => I.value = ne)
2318
+ onUpdateSvgContainer: B[2] || (B[2] = (ne) => S.value = ne)
2319
2319
  }, null, 8, ["cdn-file-resolver", "color-callback", "current-camera", "selected-id"]), [
2320
2320
  [ge, s.value === null]
2321
2321
  ])
2322
2322
  ]),
2323
2323
  _: 1
2324
2324
  }),
2325
- P.$slots.popup && g.value && u.value ? (m(), E(Ze, {
2325
+ P.$slots.popup && f.value && u.value ? (m(), E(Ze, {
2326
2326
  key: 0,
2327
2327
  "is-hoverable": c.value,
2328
- pos: g.value
2328
+ pos: f.value
2329
2329
  }, {
2330
2330
  default: _(() => [
2331
2331
  d("div", pa, [
@@ -2343,7 +2343,7 @@ const ra = {
2343
2343
  }, 8, ["loading"]),
2344
2344
  b(Re, {
2345
2345
  ref_key: "hoverProbe",
2346
- ref: f
2346
+ ref: h
2347
2347
  }, null, 512)
2348
2348
  ], 64);
2349
2349
  };
@@ -2368,8 +2368,8 @@ const ra = {
2368
2368
  });
2369
2369
  }
2370
2370
  const s = O(() => {
2371
- const r = Math.floor(n.value / 2).toString().padStart(2, "0"), h = n.value % 2 === 0 ? "00" : "30";
2372
- return `${r}:${h}`;
2371
+ const r = Math.floor(n.value / 2).toString().padStart(2, "0"), g = n.value % 2 === 0 ? "00" : "30";
2372
+ return `${r}:${g}`;
2373
2373
  }), v = O(() => e.dateSelector.dates.map(i)), u = O({
2374
2374
  get() {
2375
2375
  return i(e.dateSelector.selectedDate);
@@ -2389,8 +2389,8 @@ const ra = {
2389
2389
  }
2390
2390
  ), xe(() => {
2391
2391
  o.value = i(e.dateSelector.selectedDate);
2392
- }), (r, h) => {
2393
- const k = V("v-icon"), f = V("v-select"), c = V("v-progress-linear"), g = V("v-slider");
2392
+ }), (r, g) => {
2393
+ const k = V("v-icon"), h = V("v-select"), c = V("v-progress-linear"), f = V("v-slider");
2394
2394
  return m(), A("div", ha, [
2395
2395
  d("div", ga, [
2396
2396
  b(k, {
@@ -2398,10 +2398,10 @@ const ra = {
2398
2398
  class: "mr-2",
2399
2399
  icon: "mdi-calendar-blank-outline"
2400
2400
  }),
2401
- r.dateSelector.hasMultipleDates ? (m(), E(f, {
2401
+ r.dateSelector.hasMultipleDates ? (m(), E(h, {
2402
2402
  key: 0,
2403
2403
  modelValue: o.value,
2404
- "onUpdate:modelValue": h[0] || (h[0] = (I) => o.value = I),
2404
+ "onUpdate:modelValue": g[0] || (g[0] = (S) => o.value = S),
2405
2405
  items: v.value,
2406
2406
  density: "compact",
2407
2407
  variant: "underlined",
@@ -2428,10 +2428,10 @@ const ra = {
2428
2428
  height: "6",
2429
2429
  color: "grey lighten-1",
2430
2430
  class: "mr-2"
2431
- })) : (m(), E(g, {
2431
+ })) : (m(), E(f, {
2432
2432
  key: 1,
2433
2433
  modelValue: n.value,
2434
- "onUpdate:modelValue": h[1] || (h[1] = (I) => n.value = I),
2434
+ "onUpdate:modelValue": g[1] || (g[1] = (S) => n.value = S),
2435
2435
  min: 0,
2436
2436
  max: 47,
2437
2437
  step: 1,
@@ -2455,7 +2455,7 @@ const ra = {
2455
2455
  },
2456
2456
  emits: ["resize", "ready", "preloaded", "reset"],
2457
2457
  setup(l, { emit: a }) {
2458
- const e = l, t = a, n = p("init"), o = p(new ft(0)), i = p();
2458
+ const e = l, t = a, n = p("init"), o = p(new pt(0)), i = p();
2459
2459
  H(
2460
2460
  () => e.imageUrls,
2461
2461
  (u) => {
@@ -2464,8 +2464,8 @@ const ra = {
2464
2464
  ), ye(() => {
2465
2465
  v(e.imageUrls), new ResizeObserver((u) => {
2466
2466
  window.requestAnimationFrame(() => {
2467
- const r = u[0].contentRect.width, h = u[0].contentRect.height;
2468
- t("resize", { width: r, height: h });
2467
+ const r = u[0].contentRect.width, g = u[0].contentRect.height;
2468
+ t("resize", { width: r, height: g });
2469
2469
  });
2470
2470
  }).observe(i.value);
2471
2471
  });
@@ -2473,7 +2473,7 @@ const ra = {
2473
2473
  n.value = "preloaded", t("preloaded");
2474
2474
  }
2475
2475
  function v(u) {
2476
- n.value = "init", i.value.src = u[0], o.value = new ft(u.length).onLoadFinished(
2476
+ n.value = "init", i.value.src = u[0], o.value = new pt(u.length).onLoadFinished(
2477
2477
  () => {
2478
2478
  n.value = "loaded", t("ready");
2479
2479
  }
@@ -2488,11 +2488,11 @@ const ra = {
2488
2488
  onLoad: s
2489
2489
  }, null, 544),
2490
2490
  n.value === "preloaded" || n.value === "loaded" ? pe((m(), A("div", ka, [
2491
- (m(!0), A(ie, null, ve(u.imageUrls, (h, k) => (m(), A("img", {
2491
+ (m(!0), A(ue, null, ve(u.imageUrls, (g, k) => (m(), A("img", {
2492
2492
  key: k,
2493
2493
  class: he({ "image-instance": !0, active: k === u.activeIndex }),
2494
- src: h,
2495
- onLoad: r[0] || (r[0] = (f) => o.value.partLoaded())
2494
+ src: g,
2495
+ onLoad: r[0] || (r[0] = (h) => o.value.partLoaded())
2496
2496
  }, null, 42, wa))), 128))
2497
2497
  ], 512)), [
2498
2498
  [ge, n.value === "loaded"]
@@ -2532,7 +2532,7 @@ const ra = {
2532
2532
  height: 0
2533
2533
  }), i = p({ x: 0, y: 0, width: 0, height: 0 }), s = p(), v = p(
2534
2534
  (/* @__PURE__ */ new Date()).getHours() * 2 + ((/* @__PURE__ */ new Date()).getMinutes() < 30 ? 0 : 1)
2535
- ), u = p(!1), r = p(new Ce()), h = p(), k = p("0 0 0 0"), f = p(), c = p(), g = p(We.empty()), I = p(Ne.empty()), S = p(), y = O(() => S.value.isHoverEnabled);
2535
+ ), u = p(!1), r = p(new Ce()), g = p(), k = p("0 0 0 0"), h = p(), c = p(), f = p(We.empty()), S = p(Ne.empty()), I = p(), y = O(() => I.value.isHoverEnabled);
2536
2536
  H(s, (w, M) => {
2537
2537
  w ? t("hoverOverBuilding", w) : t("hoverOutBuilding", M);
2538
2538
  }), xe(() => {
@@ -2549,7 +2549,7 @@ const ra = {
2549
2549
  e.buildingChooserData
2550
2550
  );
2551
2551
  if (M) {
2552
- I.value = new Ne(M.mapImage), g.value = new We(M.buildingIds), f.value = new ut(M.backgrounds), c.value = {
2552
+ S.value = new Ne(M.mapImage), f.value = new We(M.buildingIds), h.value = new ut(M.backgrounds), c.value = {
2553
2553
  buildingOverlays: M.buildingOverlays,
2554
2554
  viewLongitude: M.viewLongitude
2555
2555
  };
@@ -2562,7 +2562,7 @@ const ra = {
2562
2562
  svg: J.innerHTML
2563
2563
  });
2564
2564
  });
2565
- h.value = q;
2565
+ g.value = q;
2566
2566
  } else
2567
2567
  u.value = !0;
2568
2568
  });
@@ -2645,7 +2645,7 @@ const ra = {
2645
2645
  })
2646
2646
  ])) : c.value ? (m(), A("div", {
2647
2647
  key: 1,
2648
- style: ue(`height: ${o.value.height}px; position: relative`),
2648
+ style: ie(`height: ${o.value.height}px; position: relative`),
2649
2649
  class: "image-container"
2650
2650
  }, [
2651
2651
  b(qe, {
@@ -2655,22 +2655,22 @@ const ra = {
2655
2655
  default: _(() => [
2656
2656
  d("div", Da, [
2657
2657
  b(Tt, {
2658
- "image-urls": f.value.imageUrls,
2658
+ "image-urls": h.value.imageUrls,
2659
2659
  "active-index": v.value,
2660
2660
  onResize: R,
2661
2661
  onPreloaded: M[0] || (M[0] = (Q) => n.value.preloaded = !0),
2662
2662
  onReady: M[1] || (M[1] = (Q) => n.value.ready = !0),
2663
2663
  onReset: F
2664
2664
  }, null, 8, ["image-urls", "active-index"]),
2665
- h.value ? pe((m(), A("div", xa, [
2665
+ g.value ? pe((m(), A("div", xa, [
2666
2666
  d("div", Aa, [
2667
2667
  (m(), A("svg", { viewBox: k.value }, [
2668
- (m(!0), A(ie, null, ve(h.value, ({ id: Q, svg: oe }, P) => (m(), A("g", {
2668
+ (m(!0), A(ue, null, ve(g.value, ({ id: Q, svg: oe }, P) => (m(), A("g", {
2669
2669
  key: P,
2670
2670
  innerHTML: oe,
2671
2671
  "data-building-id": Q,
2672
2672
  class: he(Y(Q)),
2673
- style: ue(D(Q)),
2673
+ style: ie(D(Q)),
2674
2674
  onMouseover: (B) => C(B, Q),
2675
2675
  onMouseout: (B) => W(B, Q),
2676
2676
  onMousemove: (B) => L(B),
@@ -2700,7 +2700,7 @@ const ra = {
2700
2700
  b(Mt, {
2701
2701
  modelValue: v.value,
2702
2702
  "onUpdate:modelValue": M[2] || (M[2] = (Q) => v.value = Q),
2703
- "date-selector": f.value,
2703
+ "date-selector": h.value,
2704
2704
  "is-loading": !n.value.ready
2705
2705
  }, null, 8, ["modelValue", "date-selector", "is-loading"])
2706
2706
  ], 512), [
@@ -2726,7 +2726,7 @@ const ra = {
2726
2726
  }, 8, ["is-hoverable", "pos"])) : $("", !0),
2727
2727
  b(Re, {
2728
2728
  ref_key: "hoverProbe",
2729
- ref: S
2729
+ ref: I
2730
2730
  }, null, 512)
2731
2731
  ], 4)) : $("", !0);
2732
2732
  };
@@ -2746,8 +2746,8 @@ const ra = {
2746
2746
  const t = p(!1), n = p(), o = p(new Ce()), i = p(), s = p(), v = p([]), u = p();
2747
2747
  H(
2748
2748
  () => e.color,
2749
- (f, c) => {
2750
- (f.r !== c.r || f.g !== c.g || f.b !== c.b || f.a !== c.a) && h();
2749
+ (h, c) => {
2750
+ (h.r !== c.r || h.g !== c.g || h.b !== c.b || h.a !== c.a) && g();
2751
2751
  }
2752
2752
  ), ye(async () => {
2753
2753
  n.value = await o.value.loadImage(e.imageUrl), r();
@@ -2755,29 +2755,29 @@ const ra = {
2755
2755
  function r() {
2756
2756
  if (!n.value || !u.value)
2757
2757
  return;
2758
- const { width: f, height: c } = e.dimensions;
2759
- if (!(f === 0 || c === 0)) {
2758
+ const { width: h, height: c } = e.dimensions;
2759
+ if (!(h === 0 || c === 0)) {
2760
2760
  i.value = u.value.getContext("2d", {
2761
2761
  willReadFrequently: !0
2762
- }), i.value.drawImage(n.value, 0, 0, f, c), s.value = i.value.getImageData(0, 0, f, c);
2763
- for (let g = 3; g < s.value.data.length; g += 4)
2764
- s.value.data[g] !== 0 && v.value.push(g);
2765
- h(), t.value = !0;
2762
+ }), i.value.drawImage(n.value, 0, 0, h, c), s.value = i.value.getImageData(0, 0, h, c);
2763
+ for (let f = 3; f < s.value.data.length; f += 4)
2764
+ s.value.data[f] !== 0 && v.value.push(f);
2765
+ g(), t.value = !0;
2766
2766
  }
2767
2767
  }
2768
- function h() {
2768
+ function g() {
2769
2769
  i.value && s.value && (k(), i.value.putImageData(s.value, 0, 0));
2770
2770
  }
2771
2771
  function k() {
2772
2772
  if (e.color)
2773
- for (let f = 0; f < v.value.length; f++)
2774
- s.value.data[v.value[f] - 3] = e.color.r, s.value.data[v.value[f] - 2] = e.color.g, s.value.data[v.value[f] - 1] = e.color.b, s.value.data[v.value[f]] = e.color.a;
2773
+ for (let h = 0; h < v.value.length; h++)
2774
+ s.value.data[v.value[h] - 3] = e.color.r, s.value.data[v.value[h] - 2] = e.color.g, s.value.data[v.value[h] - 1] = e.color.b, s.value.data[v.value[h]] = e.color.a;
2775
2775
  }
2776
- return (f, c) => (m(), A("canvas", Se({
2776
+ return (h, c) => (m(), A("canvas", Se({
2777
2777
  ref_key: "canvas",
2778
2778
  ref: u,
2779
2779
  class: "overlay"
2780
- }, f.dimensions), null, 16));
2780
+ }, h.dimensions), null, 16));
2781
2781
  }
2782
2782
  }), Oa = /* @__PURE__ */ K(Ea, [["__scopeId", "data-v-9e4cdd0e"]]), Ba = {
2783
2783
  key: 0,
@@ -2810,13 +2810,13 @@ const ra = {
2810
2810
  }), i = p({
2811
2811
  width: 0,
2812
2812
  height: 0
2813
- }), s = p({ x: 0, y: 0, width: 0, height: 0 }), v = p(), u = p(We.empty()), r = p(Ne.empty()), h = p(), k = p(
2813
+ }), s = p({ x: 0, y: 0, width: 0, height: 0 }), v = p(), u = p(We.empty()), r = p(Ne.empty()), g = p(), k = p(
2814
2814
  (/* @__PURE__ */ new Date()).getHours() * 2 + ((/* @__PURE__ */ new Date()).getMinutes() < 30 ? 0 : 1)
2815
- ), f = p(
2815
+ ), h = p(
2816
2816
  (w, M) => ({ x: w, y: M })
2817
- ), c = p(!1), g = p(), I = p(), S = p(), y = O(() => {
2817
+ ), c = p(!1), f = p(), S = p(), I = p(), y = O(() => {
2818
2818
  var w;
2819
- return (w = g.value) == null ? void 0 : w.isHoverEnabled;
2819
+ return (w = f.value) == null ? void 0 : w.isHoverEnabled;
2820
2820
  });
2821
2821
  xe(() => {
2822
2822
  if (e.buildingChooserTimeOfDay) {
@@ -2825,7 +2825,7 @@ const ra = {
2825
2825
  ), Q = parseInt(q);
2826
2826
  k.value = parseInt(M) * 2 + (Q < 15 ? 0 : Q > 45 ? 2 : 1);
2827
2827
  }
2828
- }), H(h, (w, M) => {
2828
+ }), H(g, (w, M) => {
2829
2829
  w ? t("hoverOverBuilding", w) : t("hoverOutBuilding", M);
2830
2830
  }), ye(async () => {
2831
2831
  const M = await new Lt(
@@ -2845,7 +2845,7 @@ const ra = {
2845
2845
  o.value = { preloaded: !1, ready: !1 };
2846
2846
  }
2847
2847
  function Y(w) {
2848
- const { layerX: M, layerY: q } = w, { x: Q, y: oe } = f.value(M, q);
2848
+ const { layerX: M, layerY: q } = w, { x: Q, y: oe } = h.value(M, q);
2849
2849
  return u.value.getBuildingId(
2850
2850
  r.value,
2851
2851
  Q,
@@ -2853,13 +2853,13 @@ const ra = {
2853
2853
  );
2854
2854
  }
2855
2855
  function D() {
2856
- if (I.value && (r.value.update(I.value), S.value))
2857
- for (const w of S.value)
2856
+ if (S.value && (r.value.update(S.value), I.value))
2857
+ for (const w of I.value)
2858
2858
  w.setupDraw();
2859
2859
  }
2860
2860
  function C(w) {
2861
2861
  const { layerX: M, layerY: q } = w;
2862
- y.value && (h.value = Y(w), h.value !== void 0 && (s.value = {
2862
+ y.value && (g.value = Y(w), g.value !== void 0 && (s.value = {
2863
2863
  x: M,
2864
2864
  y: q,
2865
2865
  width: i.value.width,
@@ -2867,16 +2867,16 @@ const ra = {
2867
2867
  }));
2868
2868
  }
2869
2869
  function W(w) {
2870
- h.value = Y(w), y.value && h.value && t("goToBuilding", h.value);
2870
+ g.value = Y(w), y.value && g.value && t("goToBuilding", g.value);
2871
2871
  }
2872
2872
  function L(w) {
2873
2873
  return e.colorCallback(
2874
2874
  w,
2875
- w === h.value ? "hover" : "idle"
2875
+ w === g.value ? "hover" : "idle"
2876
2876
  );
2877
2877
  }
2878
2878
  function Z({ resolve: w }) {
2879
- f.value = w;
2879
+ h.value = w;
2880
2880
  }
2881
2881
  return (w, M) => {
2882
2882
  const q = V("v-icon");
@@ -2889,7 +2889,7 @@ const ra = {
2889
2889
  })
2890
2890
  ])) : v.value ? (m(), A("div", {
2891
2891
  key: 1,
2892
- style: ue(`cursor: ${h.value ? "pointer" : "auto"};height: ${i.value.height}px; position: relative`),
2892
+ style: ie(`cursor: ${g.value ? "pointer" : "auto"};height: ${i.value.height}px; position: relative`),
2893
2893
  class: "image-container"
2894
2894
  }, [
2895
2895
  b(qe, {
@@ -2908,10 +2908,10 @@ const ra = {
2908
2908
  onReset: F
2909
2909
  }, null, 8, ["image-urls", "active-index"]),
2910
2910
  pe(d("div", null, [
2911
- (m(!0), A(ie, null, ve(v.value.buildingOverlays, (Q) => (m(), E(Oa, {
2911
+ (m(!0), A(ue, null, ve(v.value.buildingOverlays, (Q) => (m(), E(Oa, {
2912
2912
  ref_for: !0,
2913
2913
  ref_key: "overlays",
2914
- ref: S,
2914
+ ref: I,
2915
2915
  key: Q.id,
2916
2916
  "image-url": Q.url,
2917
2917
  dimensions: i.value,
@@ -2923,8 +2923,8 @@ const ra = {
2923
2923
  ]),
2924
2924
  d("canvas", Se(i.value, {
2925
2925
  ref_key: "canvas",
2926
- ref: I,
2927
- class: { hover: !!h.value },
2926
+ ref: S,
2927
+ class: { hover: !!g.value },
2928
2928
  onClick: W,
2929
2929
  onMousemove: C
2930
2930
  }), null, 16),
@@ -2952,27 +2952,27 @@ const ra = {
2952
2952
  ], 512), [
2953
2953
  [ge, o.value.preloaded]
2954
2954
  ]),
2955
- w.showCards && h.value ? (m(), E(Ze, {
2955
+ w.showCards && g.value ? (m(), E(Ze, {
2956
2956
  key: 0,
2957
2957
  "is-hoverable": y.value,
2958
2958
  pos: s.value,
2959
- onOutside: M[3] || (M[3] = () => h.value = void 0)
2959
+ onOutside: M[3] || (M[3] = () => g.value = void 0)
2960
2960
  }, {
2961
2961
  default: _(() => [
2962
2962
  se(w.$slots, "default", {
2963
- building: h.value,
2964
- canGoToBuilding: w.canGoToBuildingCallback(h.value),
2965
- goToBuilding: () => w.canGoToBuildingCallback(h.value) && t("goToBuilding", h.value),
2963
+ building: g.value,
2964
+ canGoToBuilding: w.canGoToBuildingCallback(g.value),
2965
+ goToBuilding: () => w.canGoToBuildingCallback(g.value) && t("goToBuilding", g.value),
2966
2966
  pos: s.value,
2967
2967
  isHoverable: y.value,
2968
- close: () => h.value = void 0
2968
+ close: () => g.value = void 0
2969
2969
  }, void 0, !0)
2970
2970
  ]),
2971
2971
  _: 3
2972
2972
  }, 8, ["is-hoverable", "pos"])) : $("", !0),
2973
2973
  b(Re, {
2974
2974
  ref_key: "hoverProbe",
2975
- ref: g
2975
+ ref: f
2976
2976
  }, null, 512)
2977
2977
  ], 4)) : $("", !0);
2978
2978
  };
@@ -3046,7 +3046,7 @@ const ra = {
3046
3046
  },
3047
3047
  setup(l) {
3048
3048
  const a = l;
3049
- return (e, t) => (m(!0), A(ie, null, ve(a.dayData.timeSamples, (n) => (m(), E(Pa, {
3049
+ return (e, t) => (m(!0), A(ue, null, ve(a.dayData.timeSamples, (n) => (m(), E(Pa, {
3050
3050
  "time-sample-data": n,
3051
3051
  "cdn-file-resolver": a.cdnFileResolver,
3052
3052
  "current-time": e.currentTime
@@ -3061,7 +3061,7 @@ const ra = {
3061
3061
  },
3062
3062
  setup(l) {
3063
3063
  const a = l;
3064
- return (e, t) => (m(!0), A(ie, null, ve(a.cameraData.sunsimDayOfYear, (n) => (m(), E(Wa, {
3064
+ return (e, t) => (m(!0), A(ue, null, ve(a.cameraData.sunsimDayOfYear, (n) => (m(), E(Wa, {
3065
3065
  "day-data": n,
3066
3066
  "cdn-file-resolver": a.cdnFileResolver,
3067
3067
  "current-time": a.currentTime
@@ -3178,8 +3178,8 @@ const ra = {
3178
3178
  );
3179
3179
  });
3180
3180
  function i(v) {
3181
- const u = v * 60, r = Math.floor(u / 60), h = u % 60;
3182
- return `${r.toString().padStart(2, "0")}:${h.toString().padStart(2, "0")}`;
3181
+ const u = v * 60, r = Math.floor(u / 60), g = u % 60;
3182
+ return `${r.toString().padStart(2, "0")}:${g.toString().padStart(2, "0")}`;
3183
3183
  }
3184
3184
  function s() {
3185
3185
  o.value ? (clearInterval(o.value), o.value = void 0) : (e.dayData.timeSamples.findIndex(
@@ -3192,8 +3192,8 @@ const ra = {
3192
3192
  }, 200));
3193
3193
  }
3194
3194
  return (v, u) => {
3195
- const r = V("v-icon"), h = V("v-btn"), k = V("v-slider"), f = V("v-field");
3196
- return m(), E(f, { variant: "solo" }, {
3195
+ const r = V("v-icon"), g = V("v-btn"), k = V("v-slider"), h = V("v-field");
3196
+ return m(), E(h, { variant: "solo" }, {
3197
3197
  default: _(() => [
3198
3198
  v.dayData.startTime === v.dayData.endTime ? (m(), A("div", Za, [
3199
3199
  b(r, {
@@ -3217,7 +3217,7 @@ const ra = {
3217
3217
  "hide-details": ""
3218
3218
  }, {
3219
3219
  prepend: _(() => [
3220
- b(h, {
3220
+ b(g, {
3221
3221
  icon: o.value ? "mdi-stop" : "mdi-play",
3222
3222
  size: "x-small",
3223
3223
  variant: "flat",
@@ -3260,14 +3260,14 @@ const ra = {
3260
3260
  const e = l, t = a, n = p(), o = p(), i = p(e.selectedId), s = st({});
3261
3261
  xe(() => {
3262
3262
  for (const r in s) {
3263
- const { element: h, state: k } = s[r], { r: f, g: c, b: g, a: I, s: S } = e.colorCallback(r, k) || {
3263
+ const { element: g, state: k } = s[r], { r: h, g: c, b: f, a: S, s: I } = e.colorCallback(r, k) || {
3264
3264
  r: 0,
3265
3265
  g: 0,
3266
3266
  b: 0,
3267
3267
  a: 0,
3268
3268
  s: 0
3269
3269
  };
3270
- h.style.fill = `rgba(${f}, ${c}, ${g}, ${I / 255})`, h.style.stroke = `rgb(${f}, ${c}, ${g})`, h.style.strokeWidth = S.toString();
3270
+ g.style.fill = `rgba(${h}, ${c}, ${f}, ${S / 255})`, g.style.stroke = `rgb(${h}, ${c}, ${f})`, g.style.strokeWidth = I.toString();
3271
3271
  }
3272
3272
  }), H(
3273
3273
  () => e.selectedId,
@@ -3289,8 +3289,8 @@ const ra = {
3289
3289
  );
3290
3290
  function v() {
3291
3291
  ke(() => {
3292
- var h;
3293
- const r = (h = o.value) == null ? void 0 : h.firstChild;
3292
+ var g;
3293
+ const r = (g = o.value) == null ? void 0 : g.firstChild;
3294
3294
  if (!r.hasAttribute("viewBox")) {
3295
3295
  const k = `0 0 ${r.getAttribute(
3296
3296
  "width"
@@ -3305,27 +3305,27 @@ const ra = {
3305
3305
  }
3306
3306
  function u() {
3307
3307
  ke(() => {
3308
- var h;
3309
- const r = (h = o.value) == null ? void 0 : h.firstChild;
3310
- r && (t("updateSvgContainer", r), v(), r.querySelectorAll("[data-building-id]").forEach((f) => {
3311
- f.style.strokeWidth = "0", f.style.stroke = "rgba(255,255,255,0)", f.style.fill = "rgba(255,255,255,0)", f.querySelectorAll("path").forEach((g) => {
3312
- g.style.stroke = "inherit", g.style.fill = "inherit";
3308
+ var g;
3309
+ const r = (g = o.value) == null ? void 0 : g.firstChild;
3310
+ r && (t("updateSvgContainer", r), v(), r.querySelectorAll("[data-building-id]").forEach((h) => {
3311
+ h.style.strokeWidth = "0", h.style.stroke = "rgba(255,255,255,0)", h.style.fill = "rgba(255,255,255,0)", h.querySelectorAll("path").forEach((f) => {
3312
+ f.style.stroke = "inherit", f.style.fill = "inherit";
3313
3313
  });
3314
- const c = f.getAttribute("data-building-id");
3314
+ const c = h.getAttribute("data-building-id");
3315
3315
  s[c] = {
3316
- element: f,
3316
+ element: h,
3317
3317
  state: i.value === c ? "selected" : "idle"
3318
- }, f.addEventListener("mouseover", () => {
3318
+ }, h.addEventListener("mouseover", () => {
3319
3319
  s[c].state === "idle" && (s[c].state = "hover"), t("onHoverOver", c);
3320
- }), f.addEventListener("mouseout", () => {
3320
+ }), h.addEventListener("mouseout", () => {
3321
3321
  s[c].state === "hover" && (s[c].state = "idle"), t("onHoverOut", c);
3322
- }), f.addEventListener("click", () => {
3322
+ }), h.addEventListener("click", () => {
3323
3323
  t("onClick", c);
3324
3324
  });
3325
3325
  }));
3326
3326
  });
3327
3327
  }
3328
- return (r, h) => (m(), E(Ee, null, {
3328
+ return (r, g) => (m(), E(Ee, null, {
3329
3329
  default: _(() => [
3330
3330
  (m(), A("div", {
3331
3331
  ref_key: "svgContainer",
@@ -3411,20 +3411,20 @@ const oo = {
3411
3411
  },
3412
3412
  emits: ["onClick", "onHoverOver", "onHoverOut", "onMouseMove", "onInitialize", "onError"],
3413
3413
  setup(l, { emit: a }) {
3414
- const e = l, t = a, n = p(), o = p(), i = p(), s = p(), v = p(!1), u = p(), r = O(() => u.value.isHoverEnabled), h = p({ x: 0, y: 0, width: 0, height: 0 }), k = p(), f = p(), c = p(
3414
+ const e = l, t = a, n = p(), o = p(), i = p(), s = p(), v = p(!1), u = p(), r = O(() => u.value.isHoverEnabled), g = p({ x: 0, y: 0, width: 0, height: 0 }), k = p(), h = p(), c = p(
3415
3415
  e.buildingChooserData
3416
- ), g = p(!1);
3416
+ ), f = p(!1);
3417
3417
  ye(() => v.value = !0), H(v, (C) => {
3418
3418
  C && t("onInitialize");
3419
3419
  }), H(
3420
- () => f.value,
3420
+ () => h.value,
3421
3421
  () => {
3422
- f.value && new ResizeObserver(([W]) => {
3423
- g.value = W.contentRect.width < e.mobileBreakpoint;
3424
- }).observe(f.value);
3422
+ h.value && new ResizeObserver(([W]) => {
3423
+ f.value = W.contentRect.width < e.mobileBreakpoint;
3424
+ }).observe(h.value);
3425
3425
  }
3426
3426
  );
3427
- const I = async () => {
3427
+ const S = async () => {
3428
3428
  try {
3429
3429
  let C;
3430
3430
  if (!e.cdnFileResolver)
@@ -3440,7 +3440,7 @@ const oo = {
3440
3440
  H(
3441
3441
  [c, () => e.cdnFileResolver, () => e.defaultCamera],
3442
3442
  async () => {
3443
- e.cdnFileResolver && (c.value || (c.value = await I()), e.defaultCamera ? n.value = c.value.cameras.find(
3443
+ e.cdnFileResolver && (c.value || (c.value = await S()), e.defaultCamera ? n.value = c.value.cameras.find(
3444
3444
  (C) => C.cameraName === e.defaultCamera
3445
3445
  ) || c.value.cameras[0] : n.value = c.value.cameras[0]);
3446
3446
  },
@@ -3464,7 +3464,7 @@ const oo = {
3464
3464
  },
3465
3465
  { immediate: !0 }
3466
3466
  );
3467
- function S(C) {
3467
+ function I(C) {
3468
3468
  const W = o.value;
3469
3469
  n.value = C, ke(() => {
3470
3470
  y(
@@ -3506,19 +3506,19 @@ const oo = {
3506
3506
  Z = Z.parentElement;
3507
3507
  if (w) {
3508
3508
  const M = C.currentTarget;
3509
- h.value = {
3509
+ g.value = {
3510
3510
  x: W,
3511
3511
  y: L,
3512
3512
  width: M.clientWidth,
3513
3513
  height: M.clientHeight
3514
3514
  };
3515
3515
  } else
3516
- h.value = void 0;
3517
- t("onMouseMove", C, h.value);
3516
+ g.value = void 0;
3517
+ t("onMouseMove", C, g.value);
3518
3518
  }
3519
3519
  return (C, W) => {
3520
3520
  const L = V("v-skeleton-loader");
3521
- return m(), A(ie, null, [
3521
+ return m(), A(ue, null, [
3522
3522
  b(L, {
3523
3523
  type: "image",
3524
3524
  class: "w-100 h-100 position-relative",
@@ -3529,8 +3529,8 @@ const oo = {
3529
3529
  default: _(() => [
3530
3530
  d("div", {
3531
3531
  ref_key: "container",
3532
- ref: f,
3533
- class: he({ mobile: g.value }),
3532
+ ref: h,
3533
+ class: he({ mobile: f.value }),
3534
3534
  onMousemove: D
3535
3535
  }, [
3536
3536
  d("div", oo, [
@@ -3538,7 +3538,7 @@ const oo = {
3538
3538
  b(Ga, {
3539
3539
  "building-chooser-data": c.value,
3540
3540
  "current-camera": n.value,
3541
- onOnCameraChange: S
3541
+ onOnCameraChange: I
3542
3542
  }, null, 8, ["building-chooser-data", "current-camera"])
3543
3543
  ])) : $("", !0),
3544
3544
  d("div", so, [
@@ -3566,7 +3566,7 @@ const oo = {
3566
3566
  ]),
3567
3567
  b(qe, { position: "relative" }, {
3568
3568
  default: _(() => [
3569
- (m(!0), A(ie, null, ve(c.value.cameras, (Z) => (m(), E(Na, {
3569
+ (m(!0), A(ue, null, ve(c.value.cameras, (Z) => (m(), E(Na, {
3570
3570
  key: Z.overlayFilename,
3571
3571
  "camera-data": Z,
3572
3572
  "cdn-file-resolver": e.cdnFileResolver,
@@ -3591,10 +3591,10 @@ const oo = {
3591
3591
  ]),
3592
3592
  _: 1
3593
3593
  }),
3594
- C.$slots.popup && h.value && s.value ? (m(), E(Ze, {
3594
+ C.$slots.popup && g.value && s.value ? (m(), E(Ze, {
3595
3595
  key: 0,
3596
3596
  "is-hoverable": r.value,
3597
- pos: h.value
3597
+ pos: g.value
3598
3598
  }, {
3599
3599
  default: _(() => [
3600
3600
  d("div", co, [
@@ -3713,13 +3713,13 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
3713
3713
  n("newFovCallback", c), v.value = c;
3714
3714
  },
3715
3715
  newRotation: (c) => {
3716
- const g = c + 0;
3717
- n("newRotationCallback", g), s.value = g;
3716
+ const f = c + 0;
3717
+ n("newRotationCallback", f), s.value = f;
3718
3718
  }
3719
3719
  };
3720
3720
  if (!_o)
3721
3721
  return;
3722
- const f = await new e.Main(
3722
+ const h = await new e.Main(
3723
3723
  ce(
3724
3724
  t.cdnFileResolver,
3725
3725
  `/${t.interiorId}/${t.apartmentId}`
@@ -3729,10 +3729,10 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
3729
3729
  void 0,
3730
3730
  t.currentCameraId
3731
3731
  );
3732
- f && (f.handleWindowResize(), window.addEventListener(
3732
+ h && (h.handleWindowResize(), window.addEventListener(
3733
3733
  "resize",
3734
- f.handleWindowResize.bind(f)
3735
- ), f.animate(), o.value = e.Main.getPlayerAPI(), o.value && o.value.setLookSensitivity(t.mouseSensitivity));
3734
+ h.handleWindowResize.bind(h)
3735
+ ), h.animate(), o.value = e.Main.getPlayerAPI(), o.value && o.value.setLookSensitivity(t.mouseSensitivity));
3736
3736
  }), Ye(() => {
3737
3737
  o.value && o.value.destroy();
3738
3738
  }), (u, r) => (m(), A("div", bo, [
@@ -3768,7 +3768,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
3768
3768
  d("div", Mo, [
3769
3769
  d("canvas", {
3770
3770
  id: "qpc",
3771
- style: ue(u.showStaticImage ? "visibility:hidden" : "visibility:visible")
3771
+ style: ie(u.showStaticImage ? "visibility:hidden" : "visibility:visible")
3772
3772
  }, null, 4)
3773
3773
  ])
3774
3774
  ])
@@ -3794,9 +3794,9 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
3794
3794
  const r = e.level + 1;
3795
3795
  r >= o.value.length ? t("level", o.value[0]) : t("level", o.value[r]);
3796
3796
  }
3797
- return (r, h) => {
3798
- const k = V("v-btn"), f = V("v-tooltip");
3799
- return m(), E(f, {
3797
+ return (r, g) => {
3798
+ const k = V("v-btn"), h = V("v-tooltip");
3799
+ return m(), E(h, {
3800
3800
  right: "",
3801
3801
  attach: ""
3802
3802
  }, {
@@ -3846,9 +3846,9 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
3846
3846
  setup(l, { emit: a }) {
3847
3847
  const e = l, t = a, n = Ge(Le);
3848
3848
  return (o, i) => {
3849
- const s = V("v-icon"), v = V("v-btn"), u = V("v-img"), r = V("v-list-item-title"), h = V("v-list-item"), k = V("v-list"), f = V("v-menu");
3849
+ const s = V("v-icon"), v = V("v-btn"), u = V("v-img"), r = V("v-list-item-title"), g = V("v-list-item"), k = V("v-list"), h = V("v-menu");
3850
3850
  return m(), A("div", null, [
3851
- b(f, {
3851
+ b(h, {
3852
3852
  transition: "slide-x-reverse-transition",
3853
3853
  location: "top end",
3854
3854
  origin: "end bottom",
@@ -3872,11 +3872,11 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
3872
3872
  default: _(() => [
3873
3873
  b(k, { class: "interior-selector-list" }, {
3874
3874
  default: _(() => [
3875
- (m(!0), A(ie, null, ve(e.availableArchetypes, (c, g) => (m(), E(h, {
3875
+ (m(!0), A(ue, null, ve(e.availableArchetypes, (c, f) => (m(), E(g, {
3876
3876
  density: "compact",
3877
- key: `at-menuitem-${g}`,
3878
- onClick: (I) => t("selectInterior", c.archetypeID),
3879
- active: g === o.selectedIndex,
3877
+ key: `at-menuitem-${f}`,
3878
+ onClick: (S) => t("selectInterior", c.archetypeID),
3879
+ active: f === o.selectedIndex,
3880
3880
  class: "interior-selector-list-item"
3881
3881
  }, {
3882
3882
  prepend: _(() => [
@@ -3921,13 +3921,13 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
3921
3921
  return (o, i) => {
3922
3922
  const s = V("v-img");
3923
3923
  return m(), A("div", {
3924
- style: ue(t.value),
3924
+ style: ie(t.value),
3925
3925
  class: "compass-wrapper"
3926
3926
  }, [
3927
3927
  b(s, {
3928
3928
  class: "compass-needle",
3929
3929
  src: e.value,
3930
- style: ue(n.value)
3930
+ style: ie(n.value)
3931
3931
  }, null, 8, ["src", "style"])
3932
3932
  ], 4);
3933
3933
  };
@@ -3956,16 +3956,16 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
3956
3956
  ]);
3957
3957
  };
3958
3958
  }
3959
- }), Jo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-cd73fd81"]]), Ct = (l) => (rt("data-v-f59c4942"), l = l(), it(), l), Xo = {
3959
+ }), Jo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-cd73fd81"]]), bt = (l) => (rt("data-v-f59c4942"), l = l(), it(), l), Xo = {
3960
3960
  key: 0,
3961
3961
  width: "24",
3962
3962
  height: "24",
3963
3963
  viewBox: "0 0 24 24",
3964
3964
  xmlns: "http://www.w3.org/2000/svg"
3965
- }, Ko = /* @__PURE__ */ Ct(() => /* @__PURE__ */ d("path", {
3965
+ }, Ko = /* @__PURE__ */ bt(() => /* @__PURE__ */ d("path", {
3966
3966
  d: "M5.38544 13C3.30939 13.9424 2 15.3211 2 16.8571C2 19.6975 6.47715 22 12 22C17.5228 22 22 19.6975 22 16.8571C22 15.3211 20.6906 13.9424 18.6146 13",
3967
3967
  class: "fill-grey"
3968
- }, null, -1)), el = /* @__PURE__ */ Ct(() => /* @__PURE__ */ d("path", { d: "M8 9C8 7.89543 8.89543 7 10 7H14C15.1046 7 16 7.89543 16 9V12.875C16 13.4273 15.5523 13.875 15 13.875H14V17C14 17.5523 13.5523 18 13 18H11C10.4477 18 10 17.5523 10 17V13.875H9C8.44772 13.875 8 13.4273 8 12.875V9Z" }, null, -1)), tl = /* @__PURE__ */ Ct(() => /* @__PURE__ */ d("path", { d: "M15 4C15 5.65685 13.6569 7 12 7C10.3431 7 9 5.65685 9 4C9 2.34315 10.3431 1 12 1C13.6569 1 15 2.34315 15 4Z" }, null, -1)), nl = [
3968
+ }, null, -1)), el = /* @__PURE__ */ bt(() => /* @__PURE__ */ d("path", { d: "M8 9C8 7.89543 8.89543 7 10 7H14C15.1046 7 16 7.89543 16 9V12.875C16 13.4273 15.5523 13.875 15 13.875H14V17C14 17.5523 13.5523 18 13 18H11C10.4477 18 10 17.5523 10 17V13.875H9C8.44772 13.875 8 13.4273 8 12.875V9Z" }, null, -1)), tl = /* @__PURE__ */ bt(() => /* @__PURE__ */ d("path", { d: "M15 4C15 5.65685 13.6569 7 12 7C10.3431 7 9 5.65685 9 4C9 2.34315 10.3431 1 12 1C13.6569 1 15 2.34315 15 4Z" }, null, -1)), nl = [
3969
3969
  Ko,
3970
3970
  el,
3971
3971
  tl
@@ -3983,13 +3983,13 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
3983
3983
  return (i, s) => {
3984
3984
  const v = V("v-icon"), u = V("v-btn"), r = V("v-tooltip");
3985
3985
  return m(), E(r, { location: "top" }, {
3986
- activator: _(({ props: h }) => [
3986
+ activator: _(({ props: g }) => [
3987
3987
  b(u, Se({
3988
3988
  density: "comfortable",
3989
3989
  elevation: "1",
3990
3990
  icon: "",
3991
3991
  onClick: s[0] || (s[0] = (k) => t("toggle"))
3992
- }, h), {
3992
+ }, g), {
3993
3993
  default: _(() => [
3994
3994
  o.value === "virtualTour" ? (m(), A("svg", Xo, nl)) : (m(), E(v, { key: 1 }, {
3995
3995
  default: _(() => [
@@ -4549,15 +4549,15 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
4549
4549
  e("closeTutorial", n.value);
4550
4550
  }
4551
4551
  return (v, u) => {
4552
- const r = V("v-icon"), h = V("v-card-title"), k = V("v-btn"), f = V("v-divider"), c = V("v-card-text"), g = V("v-card-actions"), I = V("v-card"), S = V("v-expand-transition"), y = V("v-checkbox");
4552
+ const r = V("v-icon"), g = V("v-card-title"), k = V("v-btn"), h = V("v-divider"), c = V("v-card-text"), f = V("v-card-actions"), S = V("v-card"), I = V("v-expand-transition"), y = V("v-checkbox");
4553
4553
  return m(), E(Ee, { name: "fade-transition" }, {
4554
4554
  default: _(() => [
4555
- b(I, {
4555
+ b(S, {
4556
4556
  class: "mx-auto",
4557
4557
  elevation: "16"
4558
4558
  }, {
4559
4559
  default: _(() => [
4560
- b(h, { class: "text-capitalize" }, {
4560
+ b(g, { class: "text-capitalize" }, {
4561
4561
  default: _(() => [
4562
4562
  b(r, { size: "x-small" }, {
4563
4563
  default: _(() => [
@@ -4589,7 +4589,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
4589
4589
  ]),
4590
4590
  _: 1
4591
4591
  }),
4592
- b(f, { class: "my-3" }),
4592
+ b(h, { class: "my-3" }),
4593
4593
  i.value ? $("", !0) : (m(), A("div", ll, [
4594
4594
  d("div", sl, [
4595
4595
  d("div", rl, [
@@ -4624,13 +4624,13 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
4624
4624
  d("div", Al, G(T(t).getLabel("useTwoFingersToZoom")), 1)
4625
4625
  ])
4626
4626
  ])) : $("", !0),
4627
- b(f, { class: "my-1" })
4627
+ b(h, { class: "my-1" })
4628
4628
  ]),
4629
4629
  _: 1
4630
4630
  }),
4631
- b(S, null, {
4631
+ b(I, null, {
4632
4632
  default: _(() => [
4633
- o.value ? (m(), E(I, {
4633
+ o.value ? (m(), E(S, {
4634
4634
  key: 0,
4635
4635
  class: "position-absolute w-100 bg-white",
4636
4636
  height: "100%",
@@ -4652,7 +4652,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
4652
4652
  ]),
4653
4653
  _: 1
4654
4654
  }),
4655
- b(g, null, {
4655
+ b(f, null, {
4656
4656
  default: _(() => [
4657
4657
  b(k, {
4658
4658
  variant: "tonal",
@@ -4693,7 +4693,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
4693
4693
  _: 1
4694
4694
  }, 8, ["modelValue"])
4695
4695
  ]),
4696
- b(g, null, {
4696
+ b(f, null, {
4697
4697
  default: _(() => [
4698
4698
  b(k, {
4699
4699
  variant: "tonal",
@@ -4734,7 +4734,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
4734
4734
  emits: ["updateSettings", "saveSettings"],
4735
4735
  setup(l, { emit: a }) {
4736
4736
  const e = l, t = a, n = p(
4737
- f(e.initialSettings)
4737
+ h(e.initialSettings)
4738
4738
  );
4739
4739
  H(
4740
4740
  n,
@@ -4745,8 +4745,8 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
4745
4745
  );
4746
4746
  const o = O(() => {
4747
4747
  let c = {};
4748
- for (const [g, I] of Object.entries(n.value))
4749
- g === "whitePoint" ? c[g] = r(I.value) : c[g] = I.value;
4748
+ for (const [f, S] of Object.entries(n.value))
4749
+ f === "whitePoint" ? c[f] = r(S.value) : c[f] = S.value;
4750
4750
  return c;
4751
4751
  });
4752
4752
  function i() {
@@ -4757,28 +4757,28 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
4757
4757
  c.href = URL.createObjectURL(
4758
4758
  new Blob([JSON.stringify(o.value, null, 2)])
4759
4759
  );
4760
- const g = `player-settings-${Date.now()}.json`;
4761
- c.download = g, c.style.display = "none", document.body.appendChild(c), c.click(), document.body.removeChild(c);
4760
+ const f = `player-settings-${Date.now()}.json`;
4761
+ c.download = f, c.style.display = "none", document.body.appendChild(c), c.click(), document.body.removeChild(c);
4762
4762
  }
4763
4763
  function v() {
4764
4764
  t("saveSettings", o.value);
4765
4765
  }
4766
4766
  function u() {
4767
- n.value = f(), t("updateSettings", o.value);
4767
+ n.value = h(), t("updateSettings", o.value);
4768
4768
  }
4769
4769
  function r(c) {
4770
- const g = parseInt(c.substr(1, 2), 16) / 255, I = parseInt(c.substr(3, 2), 16) / 255, S = parseInt(c.substr(5, 2), 16) / 255;
4771
- return [g, I, S];
4770
+ const f = parseInt(c.substr(1, 2), 16) / 255, S = parseInt(c.substr(3, 2), 16) / 255, I = parseInt(c.substr(5, 2), 16) / 255;
4771
+ return [f, S, I];
4772
4772
  }
4773
- function h(c) {
4774
- var g = c.toString(16);
4775
- return g.length == 1 ? "0" + g : g;
4773
+ function g(c) {
4774
+ var f = c.toString(16);
4775
+ return f.length == 1 ? "0" + f : f;
4776
4776
  }
4777
- function k([c, g, I]) {
4778
- return "#" + h(parseInt((c * 255).toString())) + h(parseInt((g * 255).toString())) + h(parseInt((I * 255).toString()));
4777
+ function k([c, f, S]) {
4778
+ return "#" + g(parseInt((c * 255).toString())) + g(parseInt((f * 255).toString())) + g(parseInt((S * 255).toString()));
4779
4779
  }
4780
- function f(c = {}) {
4781
- const g = [
4780
+ function h(c = {}) {
4781
+ const f = [
4782
4782
  "Cool 5",
4783
4783
  "Cool 10",
4784
4784
  "Cool 15",
@@ -4791,7 +4791,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
4791
4791
  "Warm 5",
4792
4792
  "bw"
4793
4793
  ];
4794
- let I = {
4794
+ let S = {
4795
4795
  temperature: 6500,
4796
4796
  targetLuminance: 1,
4797
4797
  exposureFovScale: 0.6,
@@ -4810,7 +4810,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
4810
4810
  min: 0,
4811
4811
  max: 1,
4812
4812
  step: 0.01,
4813
- value: I.exposureFovScale
4813
+ value: S.exposureFovScale
4814
4814
  },
4815
4815
  targetLuminance: {
4816
4816
  label: "Target Luminance",
@@ -4818,7 +4818,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
4818
4818
  min: 0,
4819
4819
  max: 15,
4820
4820
  step: 0.1,
4821
- value: I.targetLuminance
4821
+ value: S.targetLuminance
4822
4822
  },
4823
4823
  sharpenFilter_amount: {
4824
4824
  label: "Sharpen Filter Amount",
@@ -4826,12 +4826,12 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
4826
4826
  min: 0,
4827
4827
  max: 100,
4828
4828
  step: 0.1,
4829
- value: I.sharpenFilter_amount
4829
+ value: S.sharpenFilter_amount
4830
4830
  },
4831
4831
  UNREAL_BLOOM_ENABLED: {
4832
4832
  label: "Enable Bloom?",
4833
4833
  type: "boolean",
4834
- value: I.UNREAL_BLOOM_ENABLED
4834
+ value: S.UNREAL_BLOOM_ENABLED
4835
4835
  },
4836
4836
  UNREAL_BLOOM_STRENGTH: {
4837
4837
  label: "Bloom Strength",
@@ -4839,7 +4839,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
4839
4839
  min: 0,
4840
4840
  max: 1,
4841
4841
  step: 0.01,
4842
- value: I.UNREAL_BLOOM_STRENGTH
4842
+ value: S.UNREAL_BLOOM_STRENGTH
4843
4843
  },
4844
4844
  TRANSITION_MOVEMENT_SCALE: {
4845
4845
  label: "Transition Movement Speed",
@@ -4847,7 +4847,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
4847
4847
  min: 0.2,
4848
4848
  max: 25,
4849
4849
  step: 0.1,
4850
- value: I.TRANSITION_MOVEMENT_SCALE
4850
+ value: S.TRANSITION_MOVEMENT_SCALE
4851
4851
  },
4852
4852
  temperature: {
4853
4853
  label: "Temperature / White Balance",
@@ -4855,34 +4855,34 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
4855
4855
  min: 1e3,
4856
4856
  max: 12e3,
4857
4857
  step: 1,
4858
- value: I.temperature
4858
+ value: S.temperature
4859
4859
  },
4860
4860
  whitePoint: {
4861
4861
  label: "White Point",
4862
4862
  type: "color",
4863
- value: k(I.whitePoint)
4863
+ value: k(S.whitePoint)
4864
4864
  },
4865
4865
  lut: {
4866
4866
  label: "Lut",
4867
4867
  type: "lut",
4868
- items: g.map((S) => ({
4869
- text: S,
4870
- value: `https://cdn.visuado.com/luts/${S}.png`
4868
+ items: f.map((I) => ({
4869
+ text: I,
4870
+ value: `https://cdn.visuado.com/luts/${I}.png`
4871
4871
  })),
4872
- value: I.lut
4872
+ value: S.lut
4873
4873
  }
4874
4874
  };
4875
4875
  }
4876
- return (c, g) => {
4877
- const I = V("v-text-field"), S = V("v-slider"), y = V("v-checkbox"), R = V("v-btn"), F = V("v-select"), Y = V("v-icon");
4876
+ return (c, f) => {
4877
+ const S = V("v-text-field"), I = V("v-slider"), y = V("v-checkbox"), R = V("v-btn"), F = V("v-select"), Y = V("v-icon");
4878
4878
  return m(), A("div", Bl, [
4879
4879
  d("form", $l, [
4880
4880
  d("div", Rl, [
4881
- (m(!0), A(ie, null, ve(n.value, (D, C, W) => (m(), A("div", {
4881
+ (m(!0), A(ue, null, ve(n.value, (D, C, W) => (m(), A("div", {
4882
4882
  key: W,
4883
4883
  "d-block": ""
4884
4884
  }, [
4885
- D.type === "slider" ? (m(), E(S, {
4885
+ D.type === "slider" ? (m(), E(I, {
4886
4886
  key: 0,
4887
4887
  modelValue: n.value[C].value,
4888
4888
  "onUpdate:modelValue": (L) => n.value[C].value = L,
@@ -4896,7 +4896,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
4896
4896
  ]),
4897
4897
  append: _(() => [
4898
4898
  d("div", null, [
4899
- b(I, {
4899
+ b(S, {
4900
4900
  modelValue: n.value[C].value,
4901
4901
  "onUpdate:modelValue": (L) => n.value[C].value = L,
4902
4902
  "hide-details": "",
@@ -4945,7 +4945,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
4945
4945
  ])
4946
4946
  ]),
4947
4947
  d("div", null, [
4948
- b(I, {
4948
+ b(S, {
4949
4949
  modelValue: n.value[C].value,
4950
4950
  "onUpdate:modelValue": (L) => n.value[C].value = L,
4951
4951
  "hide-details": "",
@@ -4993,7 +4993,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
4993
4993
  Zl,
4994
4994
  d("div", ql, [
4995
4995
  d("div", null, [
4996
- b(I, {
4996
+ b(S, {
4997
4997
  modelValue: n.value[C].value,
4998
4998
  "onUpdate:modelValue": (L) => n.value[C].value = L,
4999
4999
  "hide-details": "",
@@ -5010,7 +5010,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5010
5010
  ]),
5011
5011
  d("div", Jl, [
5012
5012
  b(R, {
5013
- onClick: g[0] || (g[0] = (D) => u())
5013
+ onClick: f[0] || (f[0] = (D) => u())
5014
5014
  }, {
5015
5015
  default: _(() => [
5016
5016
  ee("Reset")
@@ -5019,7 +5019,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5019
5019
  }),
5020
5020
  b(R, {
5021
5021
  class: "ml-2",
5022
- onClick: g[1] || (g[1] = (D) => s())
5022
+ onClick: f[1] || (f[1] = (D) => s())
5023
5023
  }, {
5024
5024
  default: _(() => [
5025
5025
  ee(" Download Json "),
@@ -5034,7 +5034,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5034
5034
  }),
5035
5035
  b(R, {
5036
5036
  class: "ml-2",
5037
- onClick: g[2] || (g[2] = (D) => v())
5037
+ onClick: f[2] || (f[2] = (D) => v())
5038
5038
  }, {
5039
5039
  default: _(() => [
5040
5040
  ee(" Save Settings "),
@@ -5067,20 +5067,20 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5067
5067
  const s = document.getElementById(i.id + "Header");
5068
5068
  if (!s)
5069
5069
  return;
5070
- let v = 0, u = 0, r = 0, h = 0;
5070
+ let v = 0, u = 0, r = 0, g = 0;
5071
5071
  s.addEventListener("touchstart", k, { passive: !1 }), s.addEventListener("touchend", c, { passive: !1 }), s.addEventListener("mousedown", k, { passive: !1 }), s.addEventListener("mouseup", c, { passive: !1 });
5072
- function k(g) {
5073
- g = g || window.event, g.preventDefault();
5074
- let I = g;
5075
- g.type === "touchstart" && (I = g.touches[0]), r = I.clientX, h = I.clientY, document.addEventListener("mouseup", c, { passive: !1 }), document.addEventListener("touchend", c, { passive: !1 }), document.addEventListener("mousemove", f, { passive: !1 }), document.addEventListener("touchmove", f, { passive: !1 });
5072
+ function k(f) {
5073
+ f = f || window.event, f.preventDefault();
5074
+ let S = f;
5075
+ f.type === "touchstart" && (S = f.touches[0]), r = S.clientX, g = S.clientY, document.addEventListener("mouseup", c, { passive: !1 }), document.addEventListener("touchend", c, { passive: !1 }), document.addEventListener("mousemove", h, { passive: !1 }), document.addEventListener("touchmove", h, { passive: !1 });
5076
5076
  }
5077
- function f(g) {
5078
- g = g || window.event, g.preventDefault();
5079
- let I = g;
5080
- g.type === "touchmove" && (I = g.touches[0]), v = r - I.clientX, u = h - I.clientY, r = I.clientX, h = I.clientY, i.style.top = i.offsetTop - u + "px", i.style.left = i.offsetLeft - v + "px";
5077
+ function h(f) {
5078
+ f = f || window.event, f.preventDefault();
5079
+ let S = f;
5080
+ f.type === "touchmove" && (S = f.touches[0]), v = r - S.clientX, u = g - S.clientY, r = S.clientX, g = S.clientY, i.style.top = i.offsetTop - u + "px", i.style.left = i.offsetLeft - v + "px";
5081
5081
  }
5082
5082
  function c() {
5083
- document.removeEventListener("mouseup", c, !1), document.removeEventListener("mousemove", f, !1), document.removeEventListener("touchend", c, !1), document.removeEventListener("touchmove", f, !1);
5083
+ document.removeEventListener("mouseup", c, !1), document.removeEventListener("mousemove", h, !1), document.removeEventListener("touchend", c, !1), document.removeEventListener("touchmove", h, !1);
5084
5084
  }
5085
5085
  }
5086
5086
  function o() {
@@ -5153,11 +5153,11 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5153
5153
  transformAngle: {}
5154
5154
  },
5155
5155
  setup(l) {
5156
- const a = l, e = p(512), t = p(384), n = p(new He.Vector3()), o = p(new He.Object3D()), i = p({}), s = p(1), v = p(), u = O(() => a.allCameras), r = O(() => a.allCameras.find((C) => C.id === a.currentCamera)), h = O(() => a.rotation), k = O(() => new He.Vector3(
5156
+ const a = l, e = p(512), t = p(384), n = p(new He.Vector3()), o = p(new He.Object3D()), i = p({}), s = p(1), v = p(), u = O(() => a.allCameras), r = O(() => a.allCameras.find((C) => C.id === a.currentCamera)), g = O(() => a.rotation), k = O(() => new He.Vector3(
5157
5157
  a.storey.position.x,
5158
5158
  a.storey.position.y,
5159
5159
  a.storey.position.z
5160
- )), f = O(() => parseFloat(r.value.floor_vertical_position)), c = O(() => u.value.map((C) => {
5160
+ )), h = O(() => parseFloat(r.value.floor_vertical_position)), c = O(() => u.value.map((C) => {
5161
5161
  const W = C.uposition.split(","), L = new He.Vector3(
5162
5162
  Number(W[0]) - k.value.x,
5163
5163
  0,
@@ -5167,7 +5167,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5167
5167
  ...C,
5168
5168
  ...F(n.value, L)
5169
5169
  };
5170
- })), g = O(() => `background-image: url(${a.backgroundImage});`), I = O(() => {
5170
+ })), f = O(() => `background-image: url(${a.backgroundImage});`), S = O(() => {
5171
5171
  let C = s.value > 1 ? 1 : s.value;
5172
5172
  return C < 0.8 && (C = 0.4), `scale: ${C > 1 ? 1 : C}; transform: rotate(${a.transformAngle}deg);`;
5173
5173
  });
@@ -5180,7 +5180,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5180
5180
  }), Ye(() => {
5181
5181
  v.value && v.value.unobserve(document.getElementById("moveableDiv"));
5182
5182
  });
5183
- function S(C) {
5183
+ function I(C) {
5184
5184
  return He.MathUtils.degToRad(C);
5185
5185
  }
5186
5186
  function y() {
@@ -5204,8 +5204,8 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5204
5204
  };
5205
5205
  }
5206
5206
  function Y() {
5207
- const C = a.storey.position.y - f.value;
5208
- t.value = 2 * (C * Math.tan(S(a.storey.fovY / 2))), e.value = 512 / 384 * t.value;
5207
+ const C = a.storey.position.y - h.value;
5208
+ t.value = 2 * (C * Math.tan(I(a.storey.fovY / 2))), e.value = 512 / 384 * t.value;
5209
5209
  const W = t.value / 2, L = e.value / 2, Z = new He.Vector3(L * -1, 0, W * -1);
5210
5210
  n.value = Z;
5211
5211
  }
@@ -5220,29 +5220,29 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5220
5220
  d("div", ms, [
5221
5221
  d("div", {
5222
5222
  class: "web-minimap",
5223
- style: ue(I.value)
5223
+ style: ie(S.value)
5224
5224
  }, [
5225
5225
  d("div", {
5226
5226
  class: "minimap-background-image",
5227
- style: ue(g.value)
5227
+ style: ie(f.value)
5228
5228
  }, null, 4),
5229
5229
  d("div", {
5230
5230
  class: "center-pivot",
5231
- style: ue(i.value)
5231
+ style: ie(i.value)
5232
5232
  }, [
5233
- (m(!0), A(ie, null, ve(c.value, (L) => (m(), A("div", {
5233
+ (m(!0), A(ue, null, ve(c.value, (L) => (m(), A("div", {
5234
5234
  key: L.id
5235
5235
  }, [
5236
5236
  r.value.floorLevel === L.floorLevel ? (m(), A("div", {
5237
5237
  key: 0,
5238
5238
  class: "single-camera-marker",
5239
- style: ue(R(L))
5239
+ style: ie(R(L))
5240
5240
  }, null, 4)) : $("", !0),
5241
5241
  r.value.id === L.id && a.rotation !== null ? (m(), E(ds, {
5242
5242
  key: 1,
5243
5243
  class: "rotation-marker-component",
5244
- rotation: h.value,
5245
- style: ue({ ...R(L) })
5244
+ rotation: g.value,
5245
+ style: ie({ ...R(L) })
5246
5246
  }, null, 8, ["rotation", "style"])) : $("", !0)
5247
5247
  ]))), 128))
5248
5248
  ], 4)
@@ -5261,7 +5261,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5261
5261
  const a = l, e = O(() => a.rotation + a.transformAngle - 90);
5262
5262
  return (t, n) => (m(), A("div", {
5263
5263
  class: "minimap-compass",
5264
- style: ue({ scale: t.scale })
5264
+ style: ie({ scale: t.scale })
5265
5265
  }, [
5266
5266
  b(Je, {
5267
5267
  class: "north-indicator",
@@ -5282,10 +5282,10 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5282
5282
  },
5283
5283
  emits: ["setBackgroundImage"],
5284
5284
  setup(l, { emit: a }) {
5285
- const e = l, t = a, n = p((/* @__PURE__ */ new Date()).getHours()), o = p(!0), i = p(!0), s = p(""), v = p(/* @__PURE__ */ new Map()), u = O(() => e.minimapJson.storeys[e.level]), r = O(() => `${Math.floor(n.value).toString().padStart(2, "0")}:00`), h = O(() => {
5285
+ const e = l, t = a, n = p((/* @__PURE__ */ new Date()).getHours()), o = p(!0), i = p(!0), s = p(""), v = p(/* @__PURE__ */ new Map()), u = O(() => e.minimapJson.storeys[e.level]), r = O(() => `${Math.floor(n.value).toString().padStart(2, "0")}:00`), g = O(() => {
5286
5286
  if (u.value.sunsimFilesTimeStamps[n.value]) {
5287
- const S = u.value.sunsimFilesTimeStamps[n.value].split(" ");
5288
- return `${S[0]} ${S[1]}`;
5287
+ const I = u.value.sunsimFilesTimeStamps[n.value].split(" ");
5288
+ return `${I[0]} ${I[1]}`;
5289
5289
  }
5290
5290
  return "";
5291
5291
  });
@@ -5293,11 +5293,11 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5293
5293
  s.value = await c(
5294
5294
  u.value.sunsimFiles[n.value]
5295
5295
  ), i.value = !1;
5296
- const S = await f(e.minimapJson.storeys);
5297
- v.value = S, o.value = !1, t("setBackgroundImage", k(e.level, n.value));
5296
+ const I = await h(e.minimapJson.storeys);
5297
+ v.value = I, o.value = !1, t("setBackgroundImage", k(e.level, n.value));
5298
5298
  }), H(n, () => {
5299
- const S = k(e.level, n.value);
5300
- t("setBackgroundImage", S);
5299
+ const I = k(e.level, n.value);
5300
+ t("setBackgroundImage", I);
5301
5301
  }), H(
5302
5302
  () => e.level,
5303
5303
  () => {
@@ -5305,13 +5305,13 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5305
5305
  },
5306
5306
  { immediate: !0 }
5307
5307
  );
5308
- function k(S, y) {
5309
- return v.value.get(`sunsim${S}_${y}`) ? v.value.get(`sunsim${S}_${y}`) : "";
5308
+ function k(I, y) {
5309
+ return v.value.get(`sunsim${I}_${y}`) ? v.value.get(`sunsim${I}_${y}`) : "";
5310
5310
  }
5311
- async function f(S) {
5311
+ async function h(I) {
5312
5312
  let y = /* @__PURE__ */ new Map();
5313
- for (let R = 0; R < S.length; R++) {
5314
- const F = S[R].sunsimFiles;
5313
+ for (let R = 0; R < I.length; R++) {
5314
+ const F = I[R].sunsimFiles;
5315
5315
  for (let Y = 0; Y < F.length; Y++) {
5316
5316
  const D = F[Y];
5317
5317
  try {
@@ -5324,28 +5324,28 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5324
5324
  }
5325
5325
  return y;
5326
5326
  }
5327
- async function c(S) {
5327
+ async function c(I) {
5328
5328
  const R = await (await fetch(
5329
5329
  ce(
5330
5330
  e.cdnFileResolver,
5331
- `/${e.apartmentJson.type}/${e.apartmentJson.id}/minimap/${S}`
5331
+ `/${e.apartmentJson.type}/${e.apartmentJson.id}/minimap/${I}`
5332
5332
  )
5333
- )).blob(), F = await I(R);
5334
- return g(F);
5333
+ )).blob(), F = await S(R);
5334
+ return f(F);
5335
5335
  }
5336
- function g(S) {
5337
- return "data:image/jpeg;base64," + S;
5336
+ function f(I) {
5337
+ return "data:image/jpeg;base64," + I;
5338
5338
  }
5339
- async function I(S) {
5339
+ async function S(I) {
5340
5340
  return new Promise((y, R) => {
5341
5341
  const F = new FileReader();
5342
5342
  F.onload = () => {
5343
5343
  const Y = F.result.split(",")[1];
5344
5344
  y(Y);
5345
- }, F.onerror = R, F.readAsDataURL(S);
5345
+ }, F.onerror = R, F.readAsDataURL(I);
5346
5346
  });
5347
5347
  }
5348
- return (S, y) => {
5348
+ return (I, y) => {
5349
5349
  const R = V("v-progress-linear"), F = V("v-icon"), Y = V("v-slider");
5350
5350
  return m(), A("div", ys, [
5351
5351
  d("div", _s, [
@@ -5380,7 +5380,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5380
5380
  _: 1
5381
5381
  }, 8, ["modelValue"]))
5382
5382
  ]),
5383
- o.value ? $("", !0) : (m(), A("div", Cs, G(h.value) + " " + G(r.value), 1))
5383
+ o.value ? $("", !0) : (m(), A("div", Cs, G(g.value) + " " + G(r.value), 1))
5384
5384
  ])
5385
5385
  ]);
5386
5386
  };
@@ -5415,8 +5415,8 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5415
5415
  function u() {
5416
5416
  o.value = o.value + 90;
5417
5417
  }
5418
- return (r, h) => (m(), E(ls, {
5419
- onClose: h[0] || (h[0] = (k) => t("close")),
5418
+ return (r, g) => (m(), E(ls, {
5419
+ onClose: g[0] || (g[0] = (k) => t("close")),
5420
5420
  onTransform: u
5421
5421
  }, {
5422
5422
  body: _(() => [
@@ -5448,7 +5448,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5448
5448
  _: 1
5449
5449
  }));
5450
5450
  }
5451
- }), It = /* @__PURE__ */ K(Is, [["__scopeId", "data-v-898e645b"]]), Ss = 37, Ds = 39, xs = /* @__PURE__ */ j({
5451
+ }), wt = /* @__PURE__ */ K(Is, [["__scopeId", "data-v-898e645b"]]), Ss = 37, Ds = 39, xs = /* @__PURE__ */ j({
5452
5452
  __name: "VWaypointCarousel",
5453
5453
  props: {
5454
5454
  thumbnails: {},
@@ -5487,7 +5487,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5487
5487
  r(), t("goto", u);
5488
5488
  }
5489
5489
  return (u, r) => {
5490
- const h = V("v-btn"), k = V("v-img"), f = V("v-card"), c = V("v-slide-group-item"), g = V("v-slide-group");
5490
+ const g = V("v-btn"), k = V("v-img"), h = V("v-card"), c = V("v-slide-group-item"), f = V("v-slide-group");
5491
5491
  return m(), A("div", {
5492
5492
  class: he({
5493
5493
  mobileWaypointWrapper: i.value,
@@ -5495,9 +5495,9 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5495
5495
  " waypoint-carousel": !0
5496
5496
  })
5497
5497
  }, [
5498
- b(g, {
5498
+ b(f, {
5499
5499
  modelValue: o.value,
5500
- "onUpdate:modelValue": r[2] || (r[2] = (I) => o.value = I),
5500
+ "onUpdate:modelValue": r[2] || (r[2] = (S) => o.value = S),
5501
5501
  class: he({ mobileWaypoint: i.value }),
5502
5502
  "active-class": "active-apt",
5503
5503
  "selected-class": "active-apt",
@@ -5506,29 +5506,29 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5506
5506
  mandatory: ""
5507
5507
  }, {
5508
5508
  prev: _(() => [
5509
- b(h, {
5509
+ b(g, {
5510
5510
  class: he(["carousel-button", { mobile: i.value }]),
5511
5511
  icon: "mdi-chevron-left",
5512
5512
  varient: "tonal",
5513
5513
  size: "small",
5514
- onClick: r[0] || (r[0] = (I) => t("previous"))
5514
+ onClick: r[0] || (r[0] = (S) => t("previous"))
5515
5515
  }, null, 8, ["class"])
5516
5516
  ]),
5517
5517
  next: _(() => [
5518
- b(h, {
5518
+ b(g, {
5519
5519
  class: he(["carousel-button", { mobile: i.value }]),
5520
5520
  icon: "mdi-chevron-right",
5521
5521
  varient: "tonal",
5522
5522
  size: "small",
5523
- onClick: r[1] || (r[1] = (I) => t("next"))
5523
+ onClick: r[1] || (r[1] = (S) => t("next"))
5524
5524
  }, null, 8, ["class"])
5525
5525
  ]),
5526
5526
  default: _(() => [
5527
- (m(!0), A(ie, null, ve(u.thumbnails, (I) => (m(), E(c, {
5528
- key: I.id
5527
+ (m(!0), A(ue, null, ve(u.thumbnails, (S) => (m(), E(c, {
5528
+ key: S.id
5529
5529
  }, {
5530
- default: _(({ toggle: S, selectedClass: y }) => [
5531
- b(f, {
5530
+ default: _(({ toggle: I, selectedClass: y }) => [
5531
+ b(h, {
5532
5532
  class: he([
5533
5533
  i.value ? "ma-0" : "ma-1",
5534
5534
  y,
@@ -5537,13 +5537,13 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5537
5537
  align: "center",
5538
5538
  justify: "center",
5539
5539
  style: { overflow: "hidden" },
5540
- onClick: (R) => v(I.id, S)
5540
+ onClick: (R) => v(S.id, I)
5541
5541
  }, {
5542
5542
  default: _(() => [
5543
5543
  b(k, {
5544
5544
  cover: "",
5545
5545
  "aspect-ratio": 1,
5546
- src: I.thumbnailUrl
5546
+ src: S.thumbnailUrl
5547
5547
  }, null, 8, ["src"])
5548
5548
  ]),
5549
5549
  _: 2
@@ -5589,9 +5589,9 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5589
5589
  navigator.clipboard.writeText(location.href);
5590
5590
  }
5591
5591
  return (v, u) => {
5592
- const r = V("v-btn"), h = V("v-tooltip"), k = V("v-toolbar-title"), f = V("v-spacer"), c = V("v-toolbar"), g = V("v-card-text"), I = V("v-card"), S = V("v-dialog");
5592
+ const r = V("v-btn"), g = V("v-tooltip"), k = V("v-toolbar-title"), h = V("v-spacer"), c = V("v-toolbar"), f = V("v-card-text"), S = V("v-card"), I = V("v-dialog");
5593
5593
  return m(), A("div", null, [
5594
- b(h, {
5594
+ b(g, {
5595
5595
  elevation: "2",
5596
5596
  top: "",
5597
5597
  attach: ""
@@ -5609,14 +5609,14 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5609
5609
  ]),
5610
5610
  _: 1
5611
5611
  }),
5612
- b(S, {
5612
+ b(I, {
5613
5613
  id: "share-box",
5614
5614
  width: "400",
5615
5615
  modelValue: e.value,
5616
5616
  "onUpdate:modelValue": u[2] || (u[2] = (y) => e.value = y)
5617
5617
  }, {
5618
5618
  default: _(() => [
5619
- b(I, null, {
5619
+ b(S, null, {
5620
5620
  default: _(() => [
5621
5621
  b(c, { elevation: "0" }, {
5622
5622
  default: _(() => [
@@ -5631,14 +5631,14 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5631
5631
  ]),
5632
5632
  _: 1
5633
5633
  }),
5634
- b(f)
5634
+ b(h)
5635
5635
  ]),
5636
5636
  _: 1
5637
5637
  }),
5638
- b(g, { class: "mt-5" }, {
5638
+ b(f, { class: "mt-5" }, {
5639
5639
  default: _(() => [
5640
5640
  d("p", As, [
5641
- b(h, { location: "top" }, {
5641
+ b(g, { location: "top" }, {
5642
5642
  activator: _(({ props: y }) => [
5643
5643
  b(r, Se({
5644
5644
  depressed: "",
@@ -5652,7 +5652,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5652
5652
  ]),
5653
5653
  _: 1
5654
5654
  }),
5655
- b(h, { location: "top" }, {
5655
+ b(g, { location: "top" }, {
5656
5656
  activator: _(({ props: y }) => [
5657
5657
  b(r, Se({
5658
5658
  depressed: "",
@@ -5666,7 +5666,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5666
5666
  ]),
5667
5667
  _: 1
5668
5668
  }),
5669
- b(h, { location: "top" }, {
5669
+ b(g, { location: "top" }, {
5670
5670
  activator: _(({ props: y }) => [
5671
5671
  b(r, Se({
5672
5672
  depressed: "",
@@ -5680,7 +5680,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5680
5680
  ]),
5681
5681
  _: 1
5682
5682
  }),
5683
- b(h, { location: "top" }, {
5683
+ b(g, { location: "top" }, {
5684
5684
  activator: _(({ props: y }) => [
5685
5685
  b(r, Se({
5686
5686
  depressed: "",
@@ -5696,7 +5696,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5696
5696
  ]),
5697
5697
  _: 1
5698
5698
  }),
5699
- b(h, { location: "top" }, {
5699
+ b(g, { location: "top" }, {
5700
5700
  activator: _(({ props: y }) => [
5701
5701
  b(r, Se({
5702
5702
  depressed: "",
@@ -5711,7 +5711,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5711
5711
  ]),
5712
5712
  _: 1
5713
5713
  }),
5714
- b(f)
5714
+ b(h)
5715
5715
  ])
5716
5716
  ]),
5717
5717
  _: 1
@@ -5736,7 +5736,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
5736
5736
  return (t, n) => (m(), A("div", Ls, [
5737
5737
  d("div", {
5738
5738
  class: he(["img-div", [t.aspectRatio]]),
5739
- style: ue(e.value)
5739
+ style: ie(e.value)
5740
5740
  }, null, 6)
5741
5741
  ]));
5742
5742
  }
@@ -5870,7 +5870,7 @@ const Es = {
5870
5870
  takeSnapshot: dt,
5871
5871
  setCurrentCamera: U
5872
5872
  });
5873
- const o = p(!1), i = p(!1), s = p(!1), v = p(), u = p(), r = p(), h = p(), k = p(), f = p(0), c = p(), g = p(), I = p(), S = p(0), y = p(0), R = p(0), F = p(!1), Y = p(!1), D = p(!1), C = p(
5873
+ const o = p(!1), i = p(!1), s = p(!1), v = p(), u = p(), r = p(), g = p(), k = p(), h = p(0), c = p(), f = p(), S = p(), I = p(0), y = p(0), R = p(0), F = p(!1), Y = p(!1), D = p(!1), C = p(
5874
5874
  new Ot(document, "player-wrapper")
5875
5875
  ), W = O(() => {
5876
5876
  if (u.value) {
@@ -5905,7 +5905,7 @@ const Es = {
5905
5905
  imageUrl: at(
5906
5906
  `/${c.value}/${t.apartmentId}/images/1600/${x.id}.jpg`
5907
5907
  )
5908
- })) : []), M = O(() => !w.value || !w.value[f.value] ? "" : w.value[f.value].imageUrl), q = O(() => {
5908
+ })) : []), M = O(() => !w.value || !w.value[h.value] ? "" : w.value[h.value].imageUrl), q = O(() => {
5909
5909
  let x = [];
5910
5910
  return v.value && (x = v.value.archetypes), t.validInteriorIds.length ? x.filter(
5911
5911
  (X) => t.validInteriorIds.includes(X.archetypeID)
@@ -5913,11 +5913,11 @@ const Es = {
5913
5913
  }), Q = O(() => r.value ? q.value.map((x) => ({
5914
5914
  ...x,
5915
5915
  url: at(
5916
- `/${x.archetypeID}/${t.apartmentId}/thumbs/200/${w.value[f.value].id}.jpg`
5916
+ `/${x.archetypeID}/${t.apartmentId}/thumbs/200/${w.value[h.value].id}.jpg`
5917
5917
  )
5918
5918
  })) : []), oe = O(() => {
5919
- if (h.value && h.value.storeys && L.value in h.value.storeys)
5920
- return h.value.storeys[L.value];
5919
+ if (g.value && g.value.storeys && L.value in g.value.storeys)
5920
+ return g.value.storeys[L.value];
5921
5921
  }), P = O(() => u.value && u.value.timeInHours), B = O(() => {
5922
5922
  if (u.value && u.value.timeInHours && t.showTimeOfDay)
5923
5923
  return Rt(u.value.timeInHours);
@@ -5949,14 +5949,14 @@ const Es = {
5949
5949
  if (u.value = await Me(
5950
5950
  c.value,
5951
5951
  t.apartmentId
5952
- ), u.value && (g.value = u.value.cameras.find(() => !0).id), r.value = await Te(
5952
+ ), u.value && (f.value = u.value.cameras.find(() => !0).id), r.value = await Te(
5953
5953
  c.value,
5954
5954
  t.apartmentId
5955
5955
  ), r.value) {
5956
5956
  let x = t.defaultWaypointIndex !== null ? t.defaultWaypointIndex : 0;
5957
- f.value = x, g.value = r.value.cameras[x].id, I.value = r.value.cameras[x].id;
5957
+ h.value = x, f.value = r.value.cameras[x].id, S.value = r.value.cameras[x].id;
5958
5958
  }
5959
- t.showMiniMap && (h.value = await De(
5959
+ t.showMiniMap && (g.value = await De(
5960
5960
  c.value,
5961
5961
  t.apartmentId
5962
5962
  ));
@@ -6043,28 +6043,28 @@ const Es = {
6043
6043
  }
6044
6044
  }
6045
6045
  function Ae() {
6046
- let x = f.value + 1;
6047
- x >= w.value.length && (x = 0), f.value = x, U(w.value[f.value].id);
6046
+ let x = h.value + 1;
6047
+ x >= w.value.length && (x = 0), h.value = x, U(w.value[h.value].id);
6048
6048
  }
6049
6049
  function be() {
6050
- let x = f.value - 1;
6051
- x < 0 && (x = w.value.length - 1), f.value = x, U(w.value[f.value].id);
6050
+ let x = h.value - 1;
6051
+ x < 0 && (x = w.value.length - 1), h.value = x, U(w.value[h.value].id);
6052
6052
  }
6053
6053
  function _e(x, X = !0) {
6054
6054
  let le = w.value.findIndex((Ie) => Ie.id === x);
6055
- le != -1 && (f.value = le, X && U(x));
6055
+ le != -1 && (h.value = le, X && U(x));
6056
6056
  }
6057
6057
  function U(x) {
6058
- g.value = x;
6058
+ f.value = x;
6059
6059
  }
6060
6060
  function te(x) {
6061
- c.value = x, n("onInteriorUpdate", x), n("onCameraUpdate", I.value, u.value);
6061
+ c.value = x, n("onInteriorUpdate", x), n("onCameraUpdate", S.value, u.value);
6062
6062
  }
6063
6063
  function z(x) {
6064
- _e(x, !1), I.value = x, n("onCameraUpdate", x, u.value);
6064
+ _e(x, !1), S.value = x, n("onCameraUpdate", x, u.value);
6065
6065
  }
6066
6066
  function N(x) {
6067
- S.value = x;
6067
+ I.value = x;
6068
6068
  }
6069
6069
  function ae(x) {
6070
6070
  y.value = x;
@@ -6098,7 +6098,7 @@ const Es = {
6098
6098
  async function ot(x) {
6099
6099
  const X = at(x);
6100
6100
  try {
6101
- return (await pt.get(X)).data;
6101
+ return (await mt.get(X)).data;
6102
6102
  } catch (le) {
6103
6103
  throw new Error(le);
6104
6104
  }
@@ -6117,7 +6117,7 @@ const Es = {
6117
6117
  }
6118
6118
  const vt = O(() => /Android|webOS|iPhone|iPad|BlackBerry|Windows Phone|Opera Mini|IEMobile|Mobile/i.test(
6119
6119
  window.navigator.userAgent
6120
- )), kt = O(() => vt.value ? "platform-mobile" : "platform-desktop"), Ut = (x = !1) => {
6120
+ )), Ct = O(() => vt.value ? "platform-mobile" : "platform-desktop"), Ut = (x = !1) => {
6121
6121
  D.value = !0, o.value = !1, x && Ht();
6122
6122
  }, Ht = () => {
6123
6123
  const x = ce(
@@ -6137,30 +6137,30 @@ const Es = {
6137
6137
  return (x, X) => {
6138
6138
  const le = V("v-btn");
6139
6139
  return m(), A("div", {
6140
- class: he(["virtual-tour-wrapper", [kt.value]])
6140
+ class: he(["virtual-tour-wrapper", [Ct.value]])
6141
6141
  }, [
6142
6142
  s.value ? (m(), A("div", Es, "Error loading the player!!")) : $("", !0),
6143
6143
  d("div", Os, [
6144
- !C.value.isActive && h.value && I.value && oe.value && c.value && Y.value ? (m(), E(It, {
6144
+ !C.value.isActive && g.value && S.value && oe.value && c.value && Y.value ? (m(), E(wt, {
6145
6145
  key: 0,
6146
6146
  "cdn-file-resolver": x.cdnFileResolver,
6147
6147
  "apartment-json": u.value,
6148
6148
  level: L.value,
6149
- "minimap-json": h.value,
6150
- rotation: S.value,
6151
- "current-camera": I.value,
6149
+ "minimap-json": g.value,
6150
+ rotation: I.value,
6151
+ "current-camera": S.value,
6152
6152
  onClose: X[0] || (X[0] = (Ie) => Y.value = !1)
6153
6153
  }, null, 8, ["cdn-file-resolver", "apartment-json", "level", "minimap-json", "rotation", "current-camera"])) : $("", !0),
6154
- c.value && g.value ? (m(), A("div", {
6154
+ c.value && f.value ? (m(), A("div", {
6155
6155
  key: 1,
6156
- class: he(["v-player", [kt.value]])
6156
+ class: he(["v-player", [Ct.value]])
6157
6157
  }, [
6158
6158
  b(Vo, {
6159
6159
  "cdn-file-resolver": x.cdnFileResolver,
6160
- style: ue({ zIndex: F.value ? 1 : 2 }),
6160
+ style: ie({ zIndex: F.value ? 1 : 2 }),
6161
6161
  "show-static-image": F.value,
6162
6162
  "is-full-screen": C.value.isActive,
6163
- "current-camera-id": g.value,
6163
+ "current-camera-id": f.value,
6164
6164
  "mouse-sensitivity": x.mouseSensitivity,
6165
6165
  "interior-id": c.value,
6166
6166
  "apartment-id": t.apartmentId,
@@ -6197,7 +6197,7 @@ const Es = {
6197
6197
  }, null, 512), [
6198
6198
  [ge, D.value]
6199
6199
  ]),
6200
- h.value && g.value && oe.value ? pe((m(), E(le, {
6200
+ g.value && f.value && oe.value ? pe((m(), E(le, {
6201
6201
  key: 1,
6202
6202
  density: "comfortable",
6203
6203
  elevation: "3",
@@ -6224,7 +6224,7 @@ const Es = {
6224
6224
  "top-center": _(() => []),
6225
6225
  "top-right": _(() => [
6226
6226
  u.value && x.showCompass ? pe((m(), A("div", $s, [
6227
- b(Wo, { rotation: S.value }, null, 8, ["rotation"])
6227
+ b(Wo, { rotation: I.value }, null, 8, ["rotation"])
6228
6228
  ], 512)), [
6229
6229
  [ge, D.value]
6230
6230
  ]) : $("", !0),
@@ -6236,8 +6236,8 @@ const Es = {
6236
6236
  hours: B.value.hours,
6237
6237
  minutes: B.value.minutes,
6238
6238
  class: "time-of-day",
6239
- style: ue({
6240
- cursor: h.value && I.value && oe.value ? "pointer" : "default"
6239
+ style: ie({
6240
+ cursor: g.value && S.value && oe.value ? "pointer" : "default"
6241
6241
  })
6242
6242
  }, null, 8, ["hours", "minutes", "style"])) : $("", !0)
6243
6243
  ])
@@ -6261,13 +6261,13 @@ const Es = {
6261
6261
  key: 0,
6262
6262
  onCloseTutorial: X[5] || (X[5] = (Ie) => Ut(Ie))
6263
6263
  })) : $("", !0),
6264
- C.value.isActive && h.value && I.value && oe.value && Y.value ? (m(), E(It, {
6264
+ C.value.isActive && g.value && S.value && oe.value && Y.value ? (m(), E(wt, {
6265
6265
  key: 1,
6266
6266
  "cdn-file-resolver": x.cdnFileResolver,
6267
6267
  "apartment-json": u.value,
6268
- "minimap-json": h.value,
6269
- rotation: S.value,
6270
- "current-camera": I.value,
6268
+ "minimap-json": g.value,
6269
+ rotation: I.value,
6270
+ "current-camera": S.value,
6271
6271
  level: L.value,
6272
6272
  onClose: X[6] || (X[6] = (Ie) => Y.value = !1)
6273
6273
  }, null, 8, ["cdn-file-resolver", "apartment-json", "minimap-json", "rotation", "current-camera", "level"])) : $("", !0)
@@ -6318,7 +6318,7 @@ const Es = {
6318
6318
  key: 0,
6319
6319
  class: he([C.value.isActive ? "full-screen" : ""]),
6320
6320
  thumbnails: w.value,
6321
- active: f.value,
6321
+ active: h.value,
6322
6322
  onNext: Ae,
6323
6323
  onPrevious: be,
6324
6324
  onGoto: _e
@@ -6342,7 +6342,7 @@ const Es = {
6342
6342
  key: 0,
6343
6343
  class: "waypoint-carousel below-player",
6344
6344
  thumbnails: w.value,
6345
- active: f.value,
6345
+ active: h.value,
6346
6346
  onNext: Ae,
6347
6347
  onPrevious: be,
6348
6348
  onGoto: _e
@@ -6442,8 +6442,8 @@ const Es = {
6442
6442
  const e = p(0), t = p(
6443
6443
  new Ot(document, "player-wrapper")
6444
6444
  ), n = O(() => a.images.map(
6445
- (r, h) => ({
6446
- id: `image-${h}`,
6445
+ (r, g) => ({
6446
+ id: `image-${g}`,
6447
6447
  thumbnailUrl: r
6448
6448
  })
6449
6449
  )), o = O(() => n.value[e.value]);
@@ -6461,14 +6461,14 @@ const Es = {
6461
6461
  let r = e.value - 1;
6462
6462
  r < 0 && (r = n.value.length - 1), e.value = r;
6463
6463
  }
6464
- function u(r, h = !0) {
6464
+ function u(r, g = !0) {
6465
6465
  let k = n.value.findIndex(
6466
- (f) => f.id === r
6466
+ (h) => h.id === r
6467
6467
  );
6468
6468
  k != -1 && (e.value = k);
6469
6469
  }
6470
- return (r, h) => {
6471
- const k = V("v-img"), f = V("v-btn");
6470
+ return (r, g) => {
6471
+ const k = V("v-img"), h = V("v-btn");
6472
6472
  return m(), A("div", lr, [
6473
6473
  d("div", sr, [
6474
6474
  d("div", null, [
@@ -6488,7 +6488,7 @@ const Es = {
6488
6488
  "center-left": _(() => [
6489
6489
  b(Ee, { name: "slide-x-transition" }, {
6490
6490
  default: _(() => [
6491
- n.value.length > 1 ? (m(), E(f, {
6491
+ n.value.length > 1 ? (m(), E(h, {
6492
6492
  key: 0,
6493
6493
  density: "comfortable",
6494
6494
  elevation: "3",
@@ -6503,7 +6503,7 @@ const Es = {
6503
6503
  "center-right": _(() => [
6504
6504
  b(Ee, { name: "slide-x-reverse-transition" }, {
6505
6505
  default: _(() => [
6506
- n.value.length > 1 ? (m(), E(f, {
6506
+ n.value.length > 1 ? (m(), E(h, {
6507
6507
  key: 0,
6508
6508
  density: "comfortable",
6509
6509
  elevation: "3",
@@ -6581,7 +6581,7 @@ const Es = {
6581
6581
  },
6582
6582
  setup(l) {
6583
6583
  const a = l, { dayData: e, cdnFileResolver: t, currentTime: n } = Oe(a);
6584
- return (o, i) => (m(!0), A(ie, null, ve(T(e).timeSamples, (s) => (m(), E(mr, {
6584
+ return (o, i) => (m(!0), A(ue, null, ve(T(e).timeSamples, (s) => (m(), E(mr, {
6585
6585
  key: s.filename,
6586
6586
  "time-sample-data": s,
6587
6587
  "cdn-file-resolver": T(t),
@@ -6602,7 +6602,7 @@ const Es = {
6602
6602
  t.value,
6603
6603
  n.value.defaultFilename
6604
6604
  ));
6605
- return (s, v) => T(e).sunsimDayOfYear ? (m(!0), A(ie, { key: 0 }, ve(T(e).sunsimDayOfYear, (u) => (m(), E(pr, {
6605
+ return (s, v) => T(e).sunsimDayOfYear ? (m(!0), A(ue, { key: 0 }, ve(T(e).sunsimDayOfYear, (u) => (m(), E(pr, {
6606
6606
  key: u.dayOfYear,
6607
6607
  "day-data": u,
6608
6608
  "cdn-file-resolver": T(t),
@@ -6634,7 +6634,7 @@ const Es = {
6634
6634
  ]);
6635
6635
  }
6636
6636
  }), _r = /* @__PURE__ */ K(yr, [["__scopeId", "data-v-a7a18237"]]);
6637
- function mt(l) {
6637
+ function It(l) {
6638
6638
  const a = /* @__PURE__ */ new Date(0);
6639
6639
  return a.setUTCDate(l), a.toLocaleString("en-no", {
6640
6640
  month: "short",
@@ -6642,6 +6642,7 @@ function mt(l) {
6642
6642
  });
6643
6643
  }
6644
6644
  const br = {
6645
+ key: 0,
6645
6646
  class: "d-inline-block",
6646
6647
  style: { "vertical-align": "top" }
6647
6648
  }, Cr = /* @__PURE__ */ j({
@@ -6665,18 +6666,17 @@ const br = {
6665
6666
  )
6666
6667
  );
6667
6668
  }), (u, r) => {
6668
- const h = V("v-btn"), k = V("v-field"), f = V("v-list-item-title"), c = V("v-list-item"), g = V("v-list"), I = V("v-menu"), S = V("v-text-field");
6669
- return m(), A("div", br, [
6670
- T(n).sunsimDayOfYear.length > 1 ? (m(), E(I, { key: 0 }, {
6671
- activator: _(({ props: y }) => [
6669
+ const g = V("v-btn"), k = V("v-field"), h = V("v-list-item-title"), c = V("v-list-item"), f = V("v-list"), S = V("v-menu");
6670
+ return T(n).sunsimDayOfYear.length > 0 ? (m(), A("div", br, [
6671
+ b(S, null, {
6672
+ activator: _(({ props: I }) => [
6672
6673
  b(k, {
6673
6674
  variant: "solo-filled",
6674
6675
  rounded: "",
6675
6676
  flat: ""
6676
6677
  }, {
6677
6678
  default: _(() => [
6678
- T(n).sunsimDayOfYear.length > 0 ? (m(), E(h, Se({
6679
- key: 0,
6679
+ b(g, Se({
6680
6680
  variant: "text",
6681
6681
  rounded: "",
6682
6682
  flat: "",
@@ -6685,28 +6685,28 @@ const br = {
6685
6685
  "append-icon": T(n).sunsimDayOfYear.length > 1 ? "mdi-menu-down" : void 0,
6686
6686
  disabled: T(i),
6687
6687
  size: T(t) ? "small" : void 0
6688
- }, y), {
6688
+ }, I), {
6689
6689
  default: _(() => [
6690
- ee(G(T(mt)(v.value)), 1)
6690
+ ee(G(T(It)(v.value)), 1)
6691
6691
  ]),
6692
6692
  _: 2
6693
- }, 1040, ["readonly", "append-icon", "disabled", "size"])) : $("", !0)
6693
+ }, 1040, ["readonly", "append-icon", "disabled", "size"])
6694
6694
  ]),
6695
6695
  _: 2
6696
6696
  }, 1024)
6697
6697
  ]),
6698
6698
  default: _(() => [
6699
- b(g, null, {
6699
+ b(f, null, {
6700
6700
  default: _(() => [
6701
- (m(!0), A(ie, null, ve(T(n).sunsimDayOfYear, (y, R) => (m(), E(c, {
6702
- key: R,
6703
- value: R,
6704
- onClick: (F) => v.value = y.dayOfYear
6701
+ (m(!0), A(ue, null, ve(T(n).sunsimDayOfYear, (I, y) => (m(), E(c, {
6702
+ key: y,
6703
+ value: y,
6704
+ onClick: (R) => v.value = I.dayOfYear
6705
6705
  }, {
6706
6706
  default: _(() => [
6707
- b(f, null, {
6707
+ b(h, null, {
6708
6708
  default: _(() => [
6709
- ee(G(T(mt)(y.dayOfYear)), 1)
6709
+ ee(G(T(It)(I.dayOfYear)), 1)
6710
6710
  ]),
6711
6711
  _: 2
6712
6712
  }, 1024)
@@ -6718,21 +6718,11 @@ const br = {
6718
6718
  })
6719
6719
  ]),
6720
6720
  _: 1
6721
- })) : T(n).sunsimDayOfYear.length === 1 ? (m(), E(S, {
6722
- key: 1,
6723
- readonly: "",
6724
- value: T(mt)(T(n).sunsimDayOfYear[0].dayOfYear),
6725
- variant: "solo-filled",
6726
- flat: "",
6727
- rounded: "",
6728
- density: "compact",
6729
- "hide-details": "",
6730
- "prepend-inner-icon": "mdi-calendar"
6731
- }, null, 8, ["value"])) : $("", !0)
6732
- ]);
6721
+ })
6722
+ ])) : $("", !0);
6733
6723
  };
6734
6724
  }
6735
- }), kr = /* @__PURE__ */ K(Cr, [["__scopeId", "data-v-199c0fef"]]), wr = ["onClick"], Ir = {
6725
+ }), kr = /* @__PURE__ */ K(Cr, [["__scopeId", "data-v-a04625cf"]]), wr = ["onClick"], Ir = {
6736
6726
  key: 1,
6737
6727
  class: "icon-wrapper"
6738
6728
  }, Sr = /* @__PURE__ */ j({
@@ -6756,14 +6746,14 @@ const br = {
6756
6746
  H(v, () => {
6757
6747
  u(
6758
6748
  "onCameraChange",
6759
- n.value.find((h) => h === v.value)
6749
+ n.value.find((g) => g === v.value)
6760
6750
  );
6761
6751
  });
6762
- function r(h) {
6763
- s.value || (v.value = h);
6752
+ function r(g) {
6753
+ s.value || (v.value = g);
6764
6754
  }
6765
- return (h, k) => {
6766
- const f = V("v-chip"), c = V("v-icon");
6755
+ return (g, k) => {
6756
+ const h = V("v-chip"), c = V("v-icon");
6767
6757
  return m(), A("div", {
6768
6758
  class: he({
6769
6759
  "d-flex": !0,
@@ -6775,18 +6765,18 @@ const br = {
6775
6765
  enabled: !T(s)
6776
6766
  })
6777
6767
  }, [
6778
- (m(!0), A(ie, null, ve(T(n), (g, I) => (m(), A("div", {
6779
- key: I,
6768
+ (m(!0), A(ue, null, ve(T(n), (f, S) => (m(), A("div", {
6769
+ key: S,
6780
6770
  class: "still-camera",
6781
- style: ue({
6771
+ style: ie({
6782
6772
  backgroundImage: `url(${T(ce)(
6783
6773
  T(i),
6784
- g.defaultFilename
6774
+ f.defaultFilename
6785
6775
  )})`
6786
6776
  }),
6787
- onClick: (S) => r(g)
6777
+ onClick: (I) => r(f)
6788
6778
  }, [
6789
- !T(t) && g.cameraName ? (m(), E(f, {
6779
+ !T(t) && f.cameraName ? (m(), E(h, {
6790
6780
  key: 0,
6791
6781
  variant: "flat",
6792
6782
  size: "small",
@@ -6794,11 +6784,11 @@ const br = {
6794
6784
  color: "white"
6795
6785
  }, {
6796
6786
  default: _(() => [
6797
- ee(G(g.cameraName), 1)
6787
+ ee(G(f.cameraName), 1)
6798
6788
  ]),
6799
6789
  _: 2
6800
6790
  }, 1024)) : $("", !0),
6801
- g.sunsimDayOfYear && g.sunsimDayOfYear.length > 1 ? (m(), A("div", Ir, [
6791
+ f.sunsimDayOfYear && f.sunsimDayOfYear.length > 1 ? (m(), A("div", Ir, [
6802
6792
  b(c, {
6803
6793
  size: "x-small",
6804
6794
  color: "warning",
@@ -6840,13 +6830,16 @@ const xr = { class: "small" }, Ar = { class: "small" }, Fr = /* @__PURE__ */ j({
6840
6830
  )
6841
6831
  );
6842
6832
  }), (u, r) => {
6843
- const h = V("v-icon"), k = V("v-slider"), f = V("v-field");
6833
+ const g = V("v-icon"), k = V("v-slider"), h = V("v-field");
6844
6834
  return m(), A("div", {
6845
6835
  class: he({ "d-inline-block": !0, mobile: T(t) }),
6846
- style: { flex: "1", "vertical-align": "top" }
6836
+ style: ie({
6837
+ flex: T(t) && T(n).timeSamples.length > 1 ? 1 : void 0,
6838
+ verticalAlign: "top"
6839
+ })
6847
6840
  }, [
6848
- b(f, {
6849
- style: ue(
6841
+ b(h, {
6842
+ style: ie(
6850
6843
  T(n).timeSamples.length > 1 ? {
6851
6844
  width: T(t) ? "100%" : "300px",
6852
6845
  height: T(t) ? "28px" : "36px"
@@ -6878,7 +6871,7 @@ const xr = { class: "small" }, Ar = { class: "small" }, Fr = /* @__PURE__ */ j({
6878
6871
  "hide-details": ""
6879
6872
  }, {
6880
6873
  prepend: _(() => [
6881
- b(h, {
6874
+ b(g, {
6882
6875
  style: { "vertical-align": "baseline", "font-size": "20px" },
6883
6876
  class: "mr-2 icon",
6884
6877
  color: "warning"
@@ -6891,8 +6884,8 @@ const xr = { class: "small" }, Ar = { class: "small" }, Fr = /* @__PURE__ */ j({
6891
6884
  d("span", xr, G(T(St)(v.value)), 1)
6892
6885
  ]),
6893
6886
  _: 1
6894
- }, 8, ["modelValue", "min", "max", "step", "disabled"])) : (m(), A(ie, { key: 1 }, [
6895
- b(h, {
6887
+ }, 8, ["modelValue", "min", "max", "step", "disabled"])) : (m(), A(ue, { key: 1 }, [
6888
+ b(g, {
6896
6889
  style: { "vertical-align": "baseline", "font-size": "20px", "margin-top": "-1px", opacity: "0.6" },
6897
6890
  class: "mr-2 icon",
6898
6891
  color: "warning"
@@ -6907,10 +6900,10 @@ const xr = { class: "small" }, Ar = { class: "small" }, Fr = /* @__PURE__ */ j({
6907
6900
  ]),
6908
6901
  _: 1
6909
6902
  }, 8, ["style"])
6910
- ], 2);
6903
+ ], 6);
6911
6904
  };
6912
6905
  }
6913
- }), Lr = /* @__PURE__ */ K(Fr, [["__scopeId", "data-v-3e7bf49c"]]), Mr = {
6906
+ }), Lr = /* @__PURE__ */ K(Fr, [["__scopeId", "data-v-75ca9b95"]]), Mr = {
6914
6907
  class: "d-inline-block",
6915
6908
  style: { "vertical-align": "top" }
6916
6909
  }, Tr = /* @__PURE__ */ d("hr", { style: { "border-top": "1px solid #999" } }, null, -1), Vr = /* @__PURE__ */ j({
@@ -6932,7 +6925,7 @@ const xr = { class: "small" }, Ar = { class: "small" }, Fr = /* @__PURE__ */ j({
6932
6925
  size: T(t) ? "x-small" : "small",
6933
6926
  flat: "",
6934
6927
  icon: "mdi-plus",
6935
- onClick: u[0] || (u[0] = (h) => s("onZoomIn")),
6928
+ onClick: u[0] || (u[0] = (g) => s("onZoomIn")),
6936
6929
  style: { "border-bottom-left-radius": "0", "border-bottom-right-radius": "0" }
6937
6930
  }, null, 8, ["disabled", "size"]),
6938
6931
  Tr,
@@ -6941,7 +6934,7 @@ const xr = { class: "small" }, Ar = { class: "small" }, Fr = /* @__PURE__ */ j({
6941
6934
  size: T(t) ? "x-small" : "small",
6942
6935
  flat: "",
6943
6936
  icon: "mdi-minus",
6944
- onClick: u[1] || (u[1] = (h) => s("onZoomOut")),
6937
+ onClick: u[1] || (u[1] = (g) => s("onZoomOut")),
6945
6938
  style: { "border-top-left-radius": "0", "border-top-right-radius": "0" }
6946
6939
  }, null, 8, ["disabled", "size"])
6947
6940
  ]);
@@ -6959,19 +6952,19 @@ const xr = { class: "small" }, Ar = { class: "small" }, Fr = /* @__PURE__ */ j({
6959
6952
  setup(l, { emit: a }) {
6960
6953
  const e = l, { cdnFileResolver: t, colorCallback: n, currentCamera: o, selectedId: i } = Oe(e), s = a, v = p(), u = p(), r = st({});
6961
6954
  xe(() => {
6962
- for (const f in r) {
6963
- const { element: c, state: g } = r[f], { r: I, g: S, b: y, a: R, s: F } = n.value(f, g) || {
6955
+ for (const h in r) {
6956
+ const { element: c, state: f } = r[h], { r: S, g: I, b: y, a: R, s: F } = n.value(h, f) || {
6964
6957
  r: 0,
6965
6958
  g: 0,
6966
6959
  b: 0,
6967
6960
  a: 0,
6968
6961
  s: 0
6969
6962
  };
6970
- c.style.fill = `rgba(${I}, ${S}, ${y}, ${R / 255})`, c.style.stroke = `rgb(${I}, ${S}, ${y})`, c.style.strokeWidth = F.toString();
6963
+ c.style.fill = `rgba(${S}, ${I}, ${y}, ${R / 255})`, c.style.stroke = `rgb(${S}, ${I}, ${y})`, c.style.strokeWidth = F.toString();
6971
6964
  }
6972
6965
  }), H(i, () => {
6973
- for (const f in r)
6974
- r[f].state === "selected" && f !== i.value ? r[f].state = "idle" : r[f].state !== "selected" && f === i.value && (r[f].state = "selected");
6966
+ for (const h in r)
6967
+ r[h].state === "selected" && h !== i.value ? r[h].state = "idle" : r[h].state !== "selected" && h === i.value && (r[h].state = "selected");
6975
6968
  }), xe(async () => {
6976
6969
  v.value = await Ce.loadText(
6977
6970
  ce(t.value, o.value.overlayFilename)
@@ -6979,24 +6972,24 @@ const xr = { class: "small" }, Ar = { class: "small" }, Fr = /* @__PURE__ */ j({
6979
6972
  }), H(
6980
6973
  () => u.value,
6981
6974
  () => {
6982
- u.value && new ResizeObserver(h).observe(u.value);
6975
+ u.value && new ResizeObserver(g).observe(u.value);
6983
6976
  }
6984
6977
  );
6985
- function h() {
6978
+ function g() {
6986
6979
  ke(() => {
6987
6980
  var c;
6988
- const f = (c = u.value) == null ? void 0 : c.firstChild;
6989
- if (f) {
6990
- if (!f.hasAttribute("viewBox")) {
6991
- const g = `0 0 ${f.getAttribute(
6981
+ const h = (c = u.value) == null ? void 0 : c.firstChild;
6982
+ if (h) {
6983
+ if (!h.hasAttribute("viewBox")) {
6984
+ const f = `0 0 ${h.getAttribute(
6992
6985
  "width"
6993
- )} ${f.getAttribute("height")}`;
6994
- f.setAttribute("viewBox", g);
6986
+ )} ${h.getAttribute("height")}`;
6987
+ h.setAttribute("viewBox", f);
6995
6988
  }
6996
- f.setAttribute(
6989
+ h.setAttribute(
6997
6990
  "width",
6998
6991
  u.value.offsetWidth.toString()
6999
- ), f.setAttribute(
6992
+ ), h.setAttribute(
7000
6993
  "height",
7001
6994
  u.value.offsetHeight.toString()
7002
6995
  );
@@ -7006,30 +6999,30 @@ const xr = { class: "small" }, Ar = { class: "small" }, Fr = /* @__PURE__ */ j({
7006
6999
  function k() {
7007
7000
  ke(() => {
7008
7001
  var c;
7009
- const f = (c = u.value) == null ? void 0 : c.firstChild;
7010
- if (f) {
7011
- s("updateSvgContainer", f), h();
7012
- let g, I = "data-structure-id";
7013
- g = f.querySelectorAll(`[${I}]`), g.length === 0 && (I = "data-apartment-id", g = f.querySelectorAll(`[${I}]`), g.length === 0 && (I = "data-building-id", g = f.querySelectorAll(`[${I}]`))), g.forEach((S) => {
7014
- S.style.strokeWidth = "0", S.style.stroke = "rgba(255,255,255,0)", S.style.fill = "rgba(255,255,255,0)", S.querySelectorAll("path").forEach((R) => {
7002
+ const h = (c = u.value) == null ? void 0 : c.firstChild;
7003
+ if (h) {
7004
+ s("updateSvgContainer", h), g();
7005
+ let f, S = "data-structure-id";
7006
+ f = h.querySelectorAll(`[${S}]`), f.length === 0 && (S = "data-apartment-id", f = h.querySelectorAll(`[${S}]`), f.length === 0 && (S = "data-building-id", f = h.querySelectorAll(`[${S}]`))), f.forEach((I) => {
7007
+ I.style.strokeWidth = "0", I.style.stroke = "rgba(255,255,255,0)", I.style.fill = "rgba(255,255,255,0)", I.querySelectorAll("path").forEach((R) => {
7015
7008
  R.style.stroke = "inherit", R.style.fill = "inherit";
7016
7009
  });
7017
- const y = S.getAttribute(I);
7010
+ const y = I.getAttribute(S);
7018
7011
  r[y] = {
7019
- element: S,
7012
+ element: I,
7020
7013
  state: i.value === y ? "selected" : "idle"
7021
- }, S.addEventListener("mouseover", () => {
7014
+ }, I.addEventListener("mouseover", () => {
7022
7015
  r[y].state === "idle" && (r[y].state = "hover"), s("onHoverOver", y);
7023
- }), S.addEventListener("mouseout", () => {
7016
+ }), I.addEventListener("mouseout", () => {
7024
7017
  r[y].state === "hover" && (r[y].state = "idle"), s("onHoverOut", y);
7025
- }), S.addEventListener("click", () => {
7018
+ }), I.addEventListener("click", () => {
7026
7019
  s("onClick", y);
7027
7020
  });
7028
7021
  });
7029
7022
  }
7030
7023
  });
7031
7024
  }
7032
- return (f, c) => (m(), E(Ee, null, {
7025
+ return (h, c) => (m(), E(Ee, null, {
7033
7026
  default: _(() => [
7034
7027
  (m(), A("div", {
7035
7028
  ref_key: "svgContainer",
@@ -7065,7 +7058,7 @@ function $r(l) {
7065
7058
  function Rr(l) {
7066
7059
  return !("filename" in l) && "defaultFilename" in l;
7067
7060
  }
7068
- function gt(l) {
7061
+ function ht(l) {
7069
7062
  return "filename" in l;
7070
7063
  }
7071
7064
  function Ur(l) {
@@ -7228,7 +7221,7 @@ function zr(l) {
7228
7221
  loopable: l.loopable,
7229
7222
  cameras: l.cameras.map((o) => {
7230
7223
  var i;
7231
- if (bt(o)) {
7224
+ if (_t(o)) {
7232
7225
  if (o.sunsimDayOfYear) {
7233
7226
  if (o.sunsimDayOfYear.length === 0)
7234
7227
  throw new Error(
@@ -7281,8 +7274,8 @@ function zr(l) {
7281
7274
  u = o[v].filename, r = {
7282
7275
  cameraName: `Camera ${s + 1}`,
7283
7276
  cameraPosition: void 0,
7284
- cameraRotation: l.sceneCameras && (t = l.sceneCameras.find((h) => h.scene === s)) != null && t.cameraRotation ? Dt(
7285
- (n = l.sceneCameras.find((h) => h.scene === s)) == null ? void 0 : n.cameraRotation
7277
+ cameraRotation: l.sceneCameras && (t = l.sceneCameras.find((g) => g.scene === s)) != null && t.cameraRotation ? Dt(
7278
+ (n = l.sceneCameras.find((g) => g.scene === s)) == null ? void 0 : n.cameraRotation
7286
7279
  ) : void 0,
7287
7280
  cameraFov: 0,
7288
7281
  overlayFilename: `/scenedata${i[s]}V5Overlay.svg`,
@@ -7303,7 +7296,7 @@ function zr(l) {
7303
7296
  // ],
7304
7297
  // },
7305
7298
  // ],
7306
- }, gt(o[v]) && (o[v] = r);
7299
+ }, ht(o[v]) && (o[v] = r);
7307
7300
  }
7308
7301
  return {
7309
7302
  version: "5.0",
@@ -7337,7 +7330,7 @@ function Dt({ x: l, y: a, z: e }) {
7337
7330
  };
7338
7331
  }
7339
7332
  const jr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, Wr = {
7340
- key: 2,
7333
+ key: 3,
7341
7334
  class: "render-version"
7342
7335
  }, Nr = /* @__PURE__ */ j({
7343
7336
  __name: "VStructureChooser",
@@ -7366,14 +7359,14 @@ const jr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, Wr = {
7366
7359
  selectedId: v,
7367
7360
  defaultCamera: u,
7368
7361
  defaultDay: r,
7369
- defaultTime: h,
7362
+ defaultTime: g,
7370
7363
  mobileBreakpoint: k
7371
- } = Oe(e), f = a;
7364
+ } = Oe(e), h = a;
7372
7365
  Qe(
7373
7366
  Le,
7374
7367
  i.value ? new Fe(i.value) : new Fe()
7375
7368
  );
7376
- const c = p(), g = p(), I = p(), S = p(null), y = p(4), R = p(), F = p(!1), Y = p(!1), D = p(), C = O(() => D.value.isHoverEnabled), W = p({ x: 0, y: 0, width: 0, height: 0 }), L = p(), Z = p(), w = p(), M = p(!1), q = p(), Q = p({
7369
+ const c = p(), f = p(), S = p(), I = p(null), y = p(4), R = p(), F = p(!1), Y = p(!1), D = p(), C = O(() => D.value.isHoverEnabled), W = p({ x: 0, y: 0, width: 0, height: 0 }), L = p(), Z = p(), w = p(), M = p(!1), q = p(), Q = p({
7377
7370
  current: 100,
7378
7371
  min: 100,
7379
7372
  max: 1e3
@@ -7386,14 +7379,14 @@ const jr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, Wr = {
7386
7379
  try {
7387
7380
  w.value = zr(U);
7388
7381
  } catch (te) {
7389
- f("onError", te);
7382
+ h("onError", te);
7390
7383
  }
7391
7384
  },
7392
7385
  {
7393
7386
  immediate: !0
7394
7387
  }
7395
7388
  ), H(F, (U) => {
7396
- U && f("onInitialize");
7389
+ U && h("onInitialize");
7397
7390
  }), H(
7398
7391
  () => Z.value,
7399
7392
  () => {
@@ -7405,7 +7398,7 @@ const jr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, Wr = {
7405
7398
  const oe = O(
7406
7399
  () => w.value ? w.value.cameras.filter(Rr) : []
7407
7400
  ), P = O(
7408
- () => w.value ? w.value.cameras.filter(gt) : []
7401
+ () => w.value ? w.value.cameras.filter(ht) : []
7409
7402
  );
7410
7403
  H(
7411
7404
  [w, n, u],
@@ -7420,19 +7413,19 @@ const jr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, Wr = {
7420
7413
  ), H(
7421
7414
  [w, n, r],
7422
7415
  () => {
7423
- w.value && n.value && c.value && c.value.sunsimDayOfYear && c.value.sunsimDayOfYear.length > 0 && (r.value ? g.value = c.value.sunsimDayOfYear.find(
7416
+ w.value && n.value && c.value && c.value.sunsimDayOfYear && c.value.sunsimDayOfYear.length > 0 && (r.value ? f.value = c.value.sunsimDayOfYear.find(
7424
7417
  (U) => U.dayOfYear === r.value
7425
- ) || c.value.sunsimDayOfYear[0] : g.value = c.value.sunsimDayOfYear[0]);
7418
+ ) || c.value.sunsimDayOfYear[0] : f.value = c.value.sunsimDayOfYear[0]);
7426
7419
  },
7427
7420
  { immediate: !0 }
7428
7421
  ), H(
7429
- [w, n, h],
7422
+ [w, n, g],
7430
7423
  () => {
7431
- w.value && n.value && g.value && g.value.timeSamples && g.value.timeSamples.length > 0 && (h.value ? I.value = g.value.timeSamples.find(
7432
- (U) => U.timeInHours === h.value
7433
- ) || g.value.timeSamples[0] : I.value = g.value.timeSamples.find(
7434
- (U) => U.timeInHours === g.value.defaultHour
7435
- ) || g.value.timeSamples[0]);
7424
+ w.value && n.value && f.value && f.value.timeSamples && f.value.timeSamples.length > 0 && (g.value ? S.value = f.value.timeSamples.find(
7425
+ (U) => U.timeInHours === g.value
7426
+ ) || f.value.timeSamples[0] : S.value = f.value.timeSamples.find(
7427
+ (U) => U.timeInHours === f.value.defaultHour
7428
+ ) || f.value.timeSamples[0]);
7436
7429
  },
7437
7430
  { immediate: !0 }
7438
7431
  );
@@ -7442,14 +7435,14 @@ const jr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, Wr = {
7442
7435
  );
7443
7436
  }
7444
7437
  function J(U) {
7445
- y.value = U, gt(w.value.cameras[y.value]) ? S.value = w.value.cameras[y.value] : (ke(() => {
7438
+ y.value = U, ht(w.value.cameras[y.value]) ? I.value = w.value.cameras[y.value] : (ke(() => {
7446
7439
  ne(
7447
7440
  w.value.cameras[y.value]
7448
7441
  );
7449
- }), S.value = null);
7442
+ }), I.value = null);
7450
7443
  }
7451
7444
  function ne(U) {
7452
- const te = g.value;
7445
+ const te = f.value;
7453
7446
  c.value = U, y.value = w.value.cameras.findIndex(
7454
7447
  (z) => z === c.value
7455
7448
  ), ke(() => {
@@ -7461,22 +7454,22 @@ const jr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, Wr = {
7461
7454
  });
7462
7455
  }
7463
7456
  function fe(U) {
7464
- const te = I.value;
7465
- g.value = U, ke(() => {
7457
+ const te = S.value;
7458
+ f.value = U, ke(() => {
7466
7459
  me(
7467
- g.value.timeSamples.find(
7460
+ f.value.timeSamples.find(
7468
7461
  (z) => z.timeInHours === te.timeInHours
7469
- ) || g.value.timeSamples.find(
7470
- (z) => z.timeInHours === g.value.defaultHour
7471
- ) || g.value.timeSamples[0]
7462
+ ) || f.value.timeSamples.find(
7463
+ (z) => z.timeInHours === f.value.defaultHour
7464
+ ) || f.value.timeSamples[0]
7472
7465
  );
7473
7466
  });
7474
7467
  }
7475
7468
  function me(U) {
7476
- I.value = U;
7469
+ S.value = U;
7477
7470
  }
7478
7471
  function de(U) {
7479
- f("onClick", U, () => {
7472
+ h("onClick", U, () => {
7480
7473
  const te = w.value.stillCameraData.find(
7481
7474
  (z) => z.id === U
7482
7475
  );
@@ -7484,10 +7477,10 @@ const jr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, Wr = {
7484
7477
  });
7485
7478
  }
7486
7479
  function we(U) {
7487
- f("onHoverOver", U), R.value = U;
7480
+ h("onHoverOver", U), R.value = U;
7488
7481
  }
7489
7482
  function Me(U) {
7490
- f("onHoverOut", U), R.value = void 0;
7483
+ h("onHoverOut", U), R.value = void 0;
7491
7484
  }
7492
7485
  function Te(U) {
7493
7486
  const { layerX: te, layerY: z } = U;
@@ -7508,7 +7501,7 @@ const jr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, Wr = {
7508
7501
  };
7509
7502
  } else
7510
7503
  W.value = void 0;
7511
- f("onMouseMove", U, W.value);
7504
+ h("onMouseMove", U, W.value);
7512
7505
  }
7513
7506
  function De({
7514
7507
  min: U,
@@ -7548,7 +7541,7 @@ const jr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, Wr = {
7548
7541
  }
7549
7542
  return (U, te) => {
7550
7543
  const z = V("v-skeleton-loader");
7551
- return m(), A(ie, null, [
7544
+ return m(), A(ue, null, [
7552
7545
  b(z, {
7553
7546
  type: "image",
7554
7547
  class: "w-100 h-100 position-relative",
@@ -7566,7 +7559,7 @@ const jr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, Wr = {
7566
7559
  }, [
7567
7560
  d("div", {
7568
7561
  class: "persistent actions-bar top-right pa-1",
7569
- style: ue({
7562
+ style: ie({
7570
7563
  zIndex: 7,
7571
7564
  top: M.value && oe.value.length > 1 ? "51px" : 0
7572
7565
  })
@@ -7574,7 +7567,7 @@ const jr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, Wr = {
7574
7567
  c.value.cameraRotation ? (m(), E(Je, {
7575
7568
  key: 0,
7576
7569
  class: "mb-1",
7577
- style: ue({
7570
+ style: ie({
7578
7571
  zIndex: 7,
7579
7572
  width: M.value ? 32 : 40,
7580
7573
  height: M.value ? 32 : 40
@@ -7614,19 +7607,19 @@ const jr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, Wr = {
7614
7607
  onUpdate: De
7615
7608
  }, {
7616
7609
  default: _(() => [
7617
- (m(!0), A(ie, null, ve(oe.value, (N, ae) => (m(), E(hr, {
7610
+ (m(!0), A(ue, null, ve(oe.value, (N, ae) => (m(), E(hr, {
7618
7611
  key: `camera${ae}`,
7619
7612
  "camera-data": N,
7620
7613
  "cdn-file-resolver": T(n),
7621
7614
  "current-camera": c.value,
7622
- "current-day": g.value,
7623
- "current-time": I.value
7615
+ "current-day": f.value,
7616
+ "current-time": S.value
7624
7617
  }, null, 8, ["camera-data", "cdn-file-resolver", "current-camera", "current-day", "current-time"]))), 128)),
7625
- (m(!0), A(ie, null, ve(P.value, (N, ae) => (m(), E(_r, {
7618
+ (m(!0), A(ue, null, ve(P.value, (N, ae) => (m(), E(_r, {
7626
7619
  key: `transition${ae}`,
7627
7620
  "transition-data": N,
7628
7621
  "cdn-file-resolver": T(n),
7629
- "current-transition": S.value
7622
+ "current-transition": I.value
7630
7623
  }, null, 8, ["transition-data", "cdn-file-resolver", "current-transition"]))), 128)),
7631
7624
  T(s) ? (m(), A("div", {
7632
7625
  key: 0,
@@ -7645,12 +7638,13 @@ const jr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, Wr = {
7645
7638
  onOnHoverOut: Me,
7646
7639
  onUpdateSvgContainer: te[2] || (te[2] = (N) => L.value = N)
7647
7640
  }, null, 8, ["cdn-file-resolver", "color-callback", "current-camera", "selected-id"])), [
7648
- [ge, S.value === null]
7641
+ [ge, I.value === null]
7649
7642
  ]) : $("", !0)
7650
7643
  ]),
7651
7644
  _: 1
7652
7645
  }, 512),
7653
- d("div", {
7646
+ f.value.timeSamples && f.value.timeSamples.length > 0 || c.value.sunsimDayOfYear && c.value.sunsimDayOfYear.length > 0 ? (m(), A("div", {
7647
+ key: 1,
7654
7648
  class: he({
7655
7649
  "actions-bar top-left pa-1 d-flex": !0,
7656
7650
  "px-0": M.value
@@ -7661,20 +7655,20 @@ const jr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, Wr = {
7661
7655
  class: "pr-1",
7662
7656
  "is-mobile-sized": M.value,
7663
7657
  "current-camera": c.value,
7664
- "current-day": g.value,
7658
+ "current-day": f.value,
7665
7659
  disabled: Y.value,
7666
7660
  onOnDayChange: fe
7667
7661
  }, null, 8, ["is-mobile-sized", "current-camera", "current-day", "disabled"]),
7668
7662
  b(Lr, {
7669
7663
  "is-mobile-sized": M.value,
7670
- "current-day": g.value,
7671
- "current-time": I.value,
7664
+ "current-day": f.value,
7665
+ "current-time": S.value,
7672
7666
  disabled: Y.value,
7673
7667
  onOnTimeChange: me
7674
7668
  }, null, 8, ["is-mobile-sized", "current-day", "current-time", "disabled"])
7675
- ], 2),
7669
+ ], 2)) : $("", !0),
7676
7670
  U.$slots.popup && W.value && R.value ? (m(), E(Ze, {
7677
- key: 1,
7671
+ key: 2,
7678
7672
  "is-hoverable": C.value,
7679
7673
  pos: W.value
7680
7674
  }, {
@@ -7700,7 +7694,7 @@ const jr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, Wr = {
7700
7694
  ], 64);
7701
7695
  };
7702
7696
  }
7703
- }), Gr = /* @__PURE__ */ K(Nr, [["__scopeId", "data-v-17ef8fd2"]]), Kr = {
7697
+ }), Gr = /* @__PURE__ */ K(Nr, [["__scopeId", "data-v-09e20b12"]]), Kr = {
7704
7698
  install: function(a) {
7705
7699
  a.component("VApartmentChooser", Vn), a.component("VBuildingChooser", Ya), a.component("VVirtualTour", Ws), a.component("VManualSlideShow", cr), a.component("VStructureChooser", Gr);
7706
7700
  }