@qispace/vue3-player 0.1.53 → 0.1.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  var Dt = Object.defineProperty;
2
2
  var Mt = (c, n, e) => n in c ? Dt(c, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[n] = e;
3
3
  var ne = (c, n, e) => (Mt(c, typeof n != "symbol" ? n + "" : n, e), e);
4
- import { defineComponent as P, ref as d, computed as T, openBlock as f, createElementBlock as D, watch as H, onMounted as de, onBeforeUnmount as je, withDirectives as ve, createElementVNode as i, normalizeStyle as se, vShow as fe, createVNode as w, Fragment as ce, renderList as me, createCommentVNode as U, inject as Be, resolveComponent as V, withCtx as C, toDisplayString as Q, unref as ae, createTextVNode as ee, normalizeClass as he, createBlock as R, renderSlot as K, provide as Qe, reactive as st, watchEffect as Ie, resolveDynamicComponent as ht, normalizeProps as tt, guardReactiveProps as nt, mergeProps as _e, nextTick as Se, Transition as Le, createSlots as Et, pushScopeId as it, popScopeId as rt, vModelText as Tt, createStaticVNode as gt, onBeforeUpdate as Vt } from "vue";
4
+ import { defineComponent as P, ref as d, computed as T, openBlock as v, createElementBlock as D, watch as H, onMounted as de, onBeforeUnmount as je, withDirectives as ve, createElementVNode as i, normalizeStyle as se, vShow as fe, createVNode as w, Fragment as ce, renderList as me, createCommentVNode as $, inject as Be, resolveComponent as B, withCtx as C, toDisplayString as Q, unref as ae, createTextVNode as ee, normalizeClass as he, createBlock as V, renderSlot as K, provide as Qe, reactive as it, watchEffect as Ie, resolveDynamicComponent as ht, normalizeProps as tt, guardReactiveProps as nt, mergeProps as _e, nextTick as Se, Transition as Le, createSlots as Et, pushScopeId as rt, popScopeId as ut, vModelText as Tt, createStaticVNode as gt, onBeforeUpdate as Vt } from "vue";
5
5
  import ot from "axios";
6
6
  import * as Bt from "@qispace/player-core";
7
7
  import * as Ve from "three";
@@ -48,7 +48,7 @@ const Rt = /* @__PURE__ */ P({
48
48
  const e = d(), a = T(() => window.getComputedStyle(e.value).display === "none");
49
49
  return n({
50
50
  isHoverEnabled: a
51
- }), (t, o) => (f(), D("div", {
51
+ }), (t, o) => (v(), D("div", {
52
52
  ref_key: "hoverCheck",
53
53
  ref: e,
54
54
  class: "hover-check"
@@ -76,10 +76,10 @@ const Ot = /* @__PURE__ */ P({
76
76
  },
77
77
  emits: ["selectUnit", "goToUnit", "hoverOver", "hoverOut", "pos"],
78
78
  setup(c, { emit: n }) {
79
- const e = c, a = n, t = d({ x: 0, y: 0, width: 0, height: 0 }), o = d(0), r = d(0), l = d(), m = d(), u = d(), s = d(), v = d(-1), b = d(!1), h = d(), p = d(), y = d({}), F = d("auto"), A = d(new ye()), g = d({}), $ = d(), x = d(), O = d(), I = d(), _ = d(), Y = T(() => O.value.isHoverEnabled), S = T(() => ie(
79
+ const e = c, a = n, t = d({ x: 0, y: 0, width: 0, height: 0 }), o = d(0), r = d(0), l = d(), p = d(), u = d(), s = d(), m = d(-1), b = d(!1), h = d(), f = d(), y = d({}), F = d("auto"), A = d(new ye()), g = d({}), U = d(), x = d(), O = d(), I = d(), _ = d(), Y = T(() => O.value.isHoverEnabled), S = T(() => ie(
80
80
  e.cdnFileResolver,
81
81
  `/scenedata${e.viewModel.currentScene}.png`
82
- )), j = T(() => S.value in y.value ? y.value[S.value] : null), L = T(() => v.value < 0 ? !1 : e.sceneData.find((Z) => Z.index === v.value) || !1), E = T(() => ({
82
+ )), j = T(() => S.value in y.value ? y.value[S.value] : null), L = T(() => m.value < 0 ? !1 : e.sceneData.find((Z) => Z.index === m.value) || !1), E = T(() => ({
83
83
  width: o.value + "px",
84
84
  height: r.value + "px",
85
85
  cursor: F.value
@@ -126,7 +126,7 @@ const Ot = /* @__PURE__ */ P({
126
126
  a("pos", t.value);
127
127
  }), de(() => {
128
128
  x.value = () => {
129
- clearTimeout($.value), Ce(), $.value = setTimeout(() => {
129
+ clearTimeout(U.value), Ce(), U.value = setTimeout(() => {
130
130
  Ce();
131
131
  }, 50);
132
132
  }, window.addEventListener("resize", x.value), Ce();
@@ -136,13 +136,13 @@ const Ot = /* @__PURE__ */ P({
136
136
  URL.revokeObjectURL(y.value[G]);
137
137
  });
138
138
  function W() {
139
- l.value = I.value.getContext("2d", { willReadFrequently: !0 }), m.value = new Image(), m.value.onload = () => {
139
+ l.value = I.value.getContext("2d", { willReadFrequently: !0 }), p.value = new Image(), p.value.onload = () => {
140
140
  Ee(), I.value.addEventListener("mousemove", Ke(re, 50));
141
- }, m.value.src = j.value;
141
+ }, p.value.src = j.value;
142
142
  }
143
143
  function re(G) {
144
144
  const Z = q(G.offsetX, G.offsetY);
145
- b.value = Z >= 0, v.value = Z, t.value = {
145
+ b.value = Z >= 0, m.value = Z, t.value = {
146
146
  x: G.offsetX,
147
147
  y: G.offsetY,
148
148
  width: o.value,
@@ -153,14 +153,14 @@ const Ot = /* @__PURE__ */ P({
153
153
  const Z = q(G.offsetX, G.offsetY);
154
154
  Z < 0 || Y && xe(Z);
155
155
  }
156
- function B() {
157
- if (m.value && m.value.width) {
158
- I.value.width = m.value.width, I.value.height = m.value.height, l.value.drawImage(
159
- m.value,
156
+ function R() {
157
+ if (p.value && p.value.width) {
158
+ I.value.width = p.value.width, I.value.height = p.value.height, l.value.drawImage(
159
+ p.value,
160
160
  0,
161
161
  0,
162
- m.value.width,
163
- m.value.height
162
+ p.value.width,
163
+ p.value.height
164
164
  ), s.value = l.value.getImageData(
165
165
  0,
166
166
  0,
@@ -181,7 +181,7 @@ const Ot = /* @__PURE__ */ P({
181
181
  }
182
182
  }
183
183
  function q(G, Z) {
184
- h.value = G, p.value = Z;
184
+ h.value = G, f.value = Z;
185
185
  const le = I.value.offsetWidth / I.value.width, ze = I.value.offsetHeight / I.value.height, Te = (G / le).toFixed(), De = (Z / ze).toFixed(), ge = Number(De) * (I.value.width * 4) + Number(Te) * 4, Ue = s.value.data[ge];
186
186
  return s.value.data[ge + 3] > 0 ? Ue : -1;
187
187
  }
@@ -192,7 +192,7 @@ const Ot = /* @__PURE__ */ P({
192
192
  if (le) {
193
193
  const ze = oe(Z.index);
194
194
  let Te = "idle";
195
- !L.value && e.selectedUnitId && ze === e.selectedUnitId ? Te = "selected" : L.value && v.value === Z.index && (Te = "hover");
195
+ !L.value && e.selectedUnitId && ze === e.selectedUnitId ? Te = "selected" : L.value && m.value === Z.index && (Te = "hover");
196
196
  const De = e.colorCallback(Z.unitId, Te);
197
197
  if (De)
198
198
  for (let ge = 0; ge < le.length; ge++)
@@ -239,7 +239,7 @@ const Ot = /* @__PURE__ */ P({
239
239
  o.value = _.value.offsetWidth, r.value = _.value.offsetHeight;
240
240
  }
241
241
  function Ee() {
242
- B(), Me();
242
+ R(), Me();
243
243
  }
244
244
  function Me() {
245
245
  ke(), te(), l.value && u.value && l.value.putImageData(u.value, 0, 0);
@@ -253,7 +253,7 @@ const Ot = /* @__PURE__ */ P({
253
253
  $e.value && ($e.value = !1, G.apply(this, le), setTimeout(() => $e.value = !0, Z));
254
254
  };
255
255
  }
256
- return (G, Z) => (f(), D("div", {
256
+ return (G, Z) => (v(), D("div", {
257
257
  ref_key: "container",
258
258
  ref: _,
259
259
  id: "canvas"
@@ -286,7 +286,7 @@ const Ot = /* @__PURE__ */ P({
286
286
  },
287
287
  emits: ["selectUnit", "goToUnit", "hoverOver", "hoverOut", "pos"],
288
288
  setup(c, { emit: n }) {
289
- const e = c, a = n, t = d({ x: 0, y: 0, width: 0, height: 0 }), o = d(-1), r = d({}), l = d(null), m = d(new ye()), u = d(), s = d(), v = T(() => s.value.isHoverEnabled);
289
+ const e = c, a = n, t = d({ x: 0, y: 0, width: 0, height: 0 }), o = d(-1), r = d({}), l = d(null), p = d(new ye()), u = d(), s = d(), m = T(() => s.value.isHoverEnabled);
290
290
  H(
291
291
  () => e.viewModel.currentScene,
292
292
  () => {
@@ -326,7 +326,7 @@ const Ot = /* @__PURE__ */ P({
326
326
  viewBox: "",
327
327
  svgObjects: []
328
328
  };
329
- m.value.loadJson(O).then((_) => {
329
+ p.value.loadJson(O).then((_) => {
330
330
  I.markup = _;
331
331
  const S = new DOMParser().parseFromString(_, "image/svg+xml").getElementsByTagName("svg")[0];
332
332
  I.viewBox = S.getAttribute("viewBox"), I.svgObjects = Array.from(
@@ -337,7 +337,7 @@ const Ot = /* @__PURE__ */ P({
337
337
  })), r.value = { ...r.value, [x]: I };
338
338
  });
339
339
  }
340
- u.value.addEventListener("mousemove", $(b, 50));
340
+ u.value.addEventListener("mousemove", U(b, 50));
341
341
  });
342
342
  function b(x) {
343
343
  t.value = {
@@ -353,15 +353,15 @@ const Ot = /* @__PURE__ */ P({
353
353
  (I) => I.index === (typeof x == "string" ? parseInt(x) : x)
354
354
  )) == null ? void 0 : O.unitId;
355
355
  }
356
- function p(x) {
357
- v.value && (o.value = x);
356
+ function f(x) {
357
+ m.value && (o.value = x);
358
358
  }
359
359
  function y(x) {
360
- v.value && (o.value = -1);
360
+ m.value && (o.value = -1);
361
361
  }
362
362
  function F(x) {
363
363
  const O = h(x);
364
- a("selectUnit", O), v.value && O && e.canGoToUnitCallback(O) ? a("goToUnit", O) : o.value = x;
364
+ a("selectUnit", O), m.value && O && e.canGoToUnitCallback(O) ? a("goToUnit", O) : o.value = x;
365
365
  }
366
366
  function A(x) {
367
367
  const O = h(x);
@@ -389,12 +389,12 @@ const Ot = /* @__PURE__ */ P({
389
389
  };
390
390
  }
391
391
  const g = d(!1);
392
- function $(x, O) {
392
+ function U(x, O) {
393
393
  return g.value = !0, function(...I) {
394
394
  g.value && (g.value = !1, x.apply(this, I), setTimeout(() => g.value = !0, O));
395
395
  };
396
396
  }
397
- return (x, O) => (f(), D("div", {
397
+ return (x, O) => (v(), D("div", {
398
398
  id: "container",
399
399
  ref_key: "container",
400
400
  ref: u
@@ -405,19 +405,19 @@ const Ot = /* @__PURE__ */ P({
405
405
  opacity: !l.value || !l.value.svgObjects ? 0 : 1
406
406
  })
407
407
  }, [
408
- l.value && l.value.svgObjects ? (f(), D("svg", {
408
+ l.value && l.value.svgObjects ? (v(), D("svg", {
409
409
  key: 0,
410
410
  viewBox: l.value.viewBox
411
411
  }, [
412
- (f(!0), D(ce, null, me(l.value.svgObjects, ({ index: I, svg: _ }) => (f(), D("g", {
412
+ (v(!0), D(ce, null, me(l.value.svgObjects, ({ index: I, svg: _ }) => (v(), D("g", {
413
413
  key: I,
414
414
  innerHTML: _,
415
415
  style: se(A(I)),
416
- onMouseenter: (Y) => p(I),
416
+ onMouseenter: (Y) => f(I),
417
417
  onMouseleave: (Y) => y(),
418
418
  onClick: (Y) => F(I)
419
419
  }, null, 44, Ht))), 128))
420
- ], 8, Ut)) : U("", !0)
420
+ ], 8, Ut)) : $("", !0)
421
421
  ], 4), [
422
422
  [fe, !x.viewModel.isRotating]
423
423
  ]),
@@ -444,23 +444,23 @@ const Ot = /* @__PURE__ */ P({
444
444
  setup(c, { emit: n }) {
445
445
  const e = c, a = T(() => e.selectedUnitId), t = T(() => e.nextUnitId), o = T(() => e.prevUnitId), r = n, l = Be(be);
446
446
  de(() => {
447
- window.addEventListener("keydown", m);
447
+ window.addEventListener("keydown", p);
448
448
  }), je(() => {
449
- window.removeEventListener("keydown", m);
449
+ window.removeEventListener("keydown", p);
450
450
  });
451
- function m(u) {
451
+ function p(u) {
452
452
  u.keyCode === 37 ? e.prevUnitId && r("prevUnit") : u.keyCode === 39 && e.nextUnitId && r("nextUnit");
453
453
  }
454
454
  return (u, s) => {
455
- const v = V("v-btn");
456
- return f(), D("div", null, [
457
- w(v, {
455
+ const m = B("v-btn");
456
+ return v(), D("div", null, [
457
+ w(m, {
458
458
  elevation: "1",
459
459
  icon: "mdi-rotate-right",
460
460
  class: "black darken-1",
461
461
  onClick: s[0] || (s[0] = (b) => u.viewModel.rotateClockwise())
462
462
  }),
463
- w(v, {
463
+ w(m, {
464
464
  elevation: "1",
465
465
  plain: "",
466
466
  icon: "mdi-chevron-left",
@@ -468,7 +468,7 @@ const Ot = /* @__PURE__ */ P({
468
468
  disabled: !o.value,
469
469
  onClick: s[1] || (s[1] = (b) => r("prevUnit"))
470
470
  }, null, 8, ["disabled"]),
471
- w(v, {
471
+ w(m, {
472
472
  color: "darken-2",
473
473
  elevation: "1",
474
474
  rounded: "",
@@ -477,12 +477,12 @@ const Ot = /* @__PURE__ */ P({
477
477
  onClick: s[2] || (s[2] = (b) => r("goToUnit", a.value))
478
478
  }, {
479
479
  default: C(() => [
480
- a.value && u.canGoToUnitCallback(a.value) ? (f(), D("span", jt, Q(ae(l).getLabel("seeApartment")) + "  ", 1)) : U("", !0),
480
+ a.value && u.canGoToUnitCallback(a.value) ? (v(), D("span", jt, Q(ae(l).getLabel("seeApartment")) + "  ", 1)) : $("", !0),
481
481
  i("span", Wt, Q(a.value ? e.unitRenderer(a.value) : "-"), 1)
482
482
  ]),
483
483
  _: 1
484
484
  }, 8, ["disabled"]),
485
- w(v, {
485
+ w(m, {
486
486
  elevation: "1",
487
487
  plain: "",
488
488
  icon: "mdi-chevron-right",
@@ -490,7 +490,7 @@ const Ot = /* @__PURE__ */ P({
490
490
  disabled: !t.value,
491
491
  onClick: s[3] || (s[3] = (b) => r("nextUnit"))
492
492
  }, null, 8, ["disabled"]),
493
- w(v, {
493
+ w(m, {
494
494
  elevation: "1",
495
495
  plain: "",
496
496
  icon: "mdi-rotate-left",
@@ -539,7 +539,7 @@ class lt {
539
539
  return Math.round(this._loadedCount * 100 / this._numParts);
540
540
  }
541
541
  }
542
- class ut {
542
+ class ct {
543
543
  constructor(n, e, a, t) {
544
544
  ne(this, "_rotator");
545
545
  ne(this, "_direction");
@@ -557,7 +557,7 @@ class ut {
557
557
  const n = this._rotator.clampFrameIndex(
558
558
  this._frameIndex + this._direction
559
559
  ), e = this._rotator.isCardinalFrame(n) ? this._sceneCount - 1 : this._sceneCount;
560
- return new ut(
560
+ return new ct(
561
561
  this._rotator,
562
562
  this._direction,
563
563
  n,
@@ -573,7 +573,7 @@ class Gt {
573
573
  }
574
574
  start(n, e, a) {
575
575
  const t = this.startFrameIndexForScene(e);
576
- return new ut(this, n, t, a);
576
+ return new ct(this, n, t, a);
577
577
  }
578
578
  isCardinalFrame(n) {
579
579
  return this._cardinalFrames.includes(n);
@@ -598,7 +598,7 @@ const Qt = {
598
598
  key: 2,
599
599
  id: "image-stack",
600
600
  class: "frame-container"
601
- }, en = ["alt"], tn = ["srcset"], nn = ["src"], mt = 64, Ne = 4, an = 120, on = /* @__PURE__ */ P({
601
+ }, en = ["alt"], tn = ["srcset"], nn = ["src"], pt = 64, Ne = 4, an = 120, on = /* @__PURE__ */ P({
602
602
  __name: "VApartmentChooserRotator",
603
603
  props: {
604
604
  viewModel: {},
@@ -611,31 +611,31 @@ const Qt = {
611
611
  const e = c, a = n, t = h(), o = d(
612
612
  new lt(t.length).onLoadFinished(() => a("loaded")).onLoadProgress((A) => a("progress", A)).onLoadError(() => a("error"))
613
613
  ), r = d(
614
- new Gt(e.cardinalFrames, mt)
615
- ), l = d(t), m = d(!1), u = T(() => l.value.find((A) => A.show));
614
+ new Gt(e.cardinalFrames, pt)
615
+ ), l = d(t), p = d(!1), u = T(() => l.value.find((A) => A.show));
616
616
  H(
617
617
  () => e.viewModel.currentScene,
618
618
  (A, g) => {
619
- const $ = F(g, A), x = y(g, A);
620
- s(g, $, x);
619
+ const U = F(g, A), x = y(g, A);
620
+ s(g, U, x);
621
621
  }
622
622
  ), de(() => {
623
623
  b();
624
624
  });
625
- function s(A, g, $) {
626
- e.viewModel.isRotating || (e.viewModel.isRotating = !0, v(
625
+ function s(A, g, U) {
626
+ e.viewModel.isRotating || (e.viewModel.isRotating = !0, m(
627
627
  r.value.start(
628
628
  g,
629
629
  A % Ne,
630
- $
630
+ U
631
631
  )
632
632
  ));
633
633
  }
634
- function v(A) {
634
+ function m(A) {
635
635
  setTimeout(() => {
636
636
  l.value[A.frameIndex].show = !1;
637
637
  const g = A.nextFrame();
638
- l.value[g.frameIndex].show = !0, g.atEnd ? b() : window.requestAnimationFrame(() => v(g));
638
+ l.value[g.frameIndex].show = !0, g.atEnd ? b() : window.requestAnimationFrame(() => m(g));
639
639
  }, 1e3 / an);
640
640
  }
641
641
  function b() {
@@ -646,40 +646,40 @@ const Qt = {
646
646
  }
647
647
  function h() {
648
648
  const A = [];
649
- for (let g = 0; g < mt; g++) {
650
- const { sourceSet: $, defaultPath: x } = p(g);
649
+ for (let g = 0; g < pt; g++) {
650
+ const { sourceSet: U, defaultPath: x } = f(g);
651
651
  A.push({
652
652
  index: g,
653
- sourceSet: $,
653
+ sourceSet: U,
654
654
  defaultPath: x,
655
655
  show: !1
656
656
  });
657
657
  }
658
658
  return A;
659
659
  }
660
- function p(A) {
661
- const g = ("0000" + (A + 1)).slice(-4), $ = e.build ? `?v=${e.build}` : "", x = [
660
+ function f(A) {
661
+ const g = ("0000" + (A + 1)).slice(-4), U = e.build ? `?v=${e.build}` : "", x = [
662
662
  `${ie(
663
663
  e.cdnFileResolver,
664
- `/480/${g}.jpg${$}`
664
+ `/480/${g}.jpg${U}`
665
665
  )} 480w`,
666
666
  `${ie(
667
667
  e.cdnFileResolver,
668
- `/960/${g}.jpg${$}`
668
+ `/960/${g}.jpg${U}`
669
669
  )} 960w`,
670
670
  `${ie(
671
671
  e.cdnFileResolver,
672
- `/1280/${g}.jpg${$}`
672
+ `/1280/${g}.jpg${U}`
673
673
  )} 1280w`
674
674
  ].join(","), O = ie(
675
675
  e.cdnFileResolver,
676
- `/480/${g}.jpg${$}`
676
+ `/480/${g}.jpg${U}`
677
677
  );
678
678
  return { sourceSet: x, defaultPath: O };
679
679
  }
680
680
  function y(A, g) {
681
- const $ = Ne / 2, x = Math.abs(A - g);
682
- return x > $ ? Ne - x : x;
681
+ const U = Ne / 2, x = Math.abs(A - g);
682
+ return x > U ? Ne - x : x;
683
683
  }
684
684
  function F(A, g) {
685
685
  if (A === g)
@@ -688,17 +688,17 @@ const Qt = {
688
688
  return x && A < g || !x && A > g ? 1 : -1;
689
689
  }
690
690
  return (A, g) => {
691
- const $ = V("v-icon");
692
- return f(), D("div", null, [
693
- o.value.isError ? (f(), D("div", Qt, [
694
- w($, { "x-large": "" }, {
691
+ const U = B("v-icon");
692
+ return v(), D("div", null, [
693
+ o.value.isError ? (v(), D("div", Qt, [
694
+ w(U, { "x-large": "" }, {
695
695
  default: C(() => [
696
696
  ee("mdi-alert-circle-outline")
697
697
  ]),
698
698
  _: 1
699
699
  })
700
- ])) : m.value ? (f(), D("div", Kt, [
701
- (f(!0), D(ce, null, me(l.value, (x) => (f(), D("picture", {
700
+ ])) : p.value ? (v(), D("div", Kt, [
701
+ (v(!0), D(ce, null, me(l.value, (x) => (v(), D("picture", {
702
702
  key: x.index,
703
703
  alt: x.index,
704
704
  class: he({ "frame-image": !0, show: x.show })
@@ -714,18 +714,18 @@ const Qt = {
714
714
  onError: g[3] || (g[3] = (O) => o.value.errorDetected())
715
715
  }, null, 40, nn)
716
716
  ], 10, en))), 128))
717
- ])) : (f(), D("div", qt, [
718
- u.value ? (f(), D("picture", Zt, [
717
+ ])) : (v(), D("div", qt, [
718
+ u.value ? (v(), D("picture", Zt, [
719
719
  i("source", {
720
720
  srcset: u.value.sourceSet,
721
721
  type: "image/jpeg"
722
722
  }, null, 8, Jt),
723
723
  i("img", {
724
724
  src: u.value.defaultPath,
725
- onLoad: g[0] || (g[0] = (x) => m.value = !0),
725
+ onLoad: g[0] || (g[0] = (x) => p.value = !0),
726
726
  onError: g[1] || (g[1] = (x) => o.value.errorDetected())
727
727
  }, null, 40, Xt)
728
- ])) : U("", !0)
728
+ ])) : $("", !0)
729
729
  ]))
730
730
  ]);
731
731
  };
@@ -739,16 +739,16 @@ const Qt = {
739
739
  emits: ["outside"],
740
740
  setup(c, { emit: n }) {
741
741
  const e = c, a = n, t = T(() => {
742
- let o, r, l, m;
743
- return e.pos.x <= e.pos.width / 2 ? (o = "-100%", l = "-8px") : (o = "0%", l = "8px"), e.pos.y <= e.pos.height / 2 ? (r = "-100%", m = "-8px") : (r = "0%", m = "8px"), `translate(${o}, ${r}) translate(${l}, ${m})`;
742
+ let o, r, l, p;
743
+ return e.pos.x <= e.pos.width / 2 ? (o = "-100%", l = "-8px") : (o = "0%", l = "8px"), e.pos.y <= e.pos.height / 2 ? (r = "-100%", p = "-8px") : (r = "0%", p = "8px"), `translate(${o}, ${r}) translate(${l}, ${p})`;
744
744
  });
745
745
  return (o, r) => {
746
- const l = V("v-dialog"), m = V("v-fade-transition");
747
- return f(), R(m, {
746
+ const l = B("v-dialog"), p = B("v-fade-transition");
747
+ return v(), V(p, {
748
748
  origin: `top left ${o.pos.x} ${o.pos.y}`
749
749
  }, {
750
750
  default: C(() => [
751
- o.isHoverable ? (f(), D("div", {
751
+ o.isHoverable ? (v(), D("div", {
752
752
  key: 0,
753
753
  class: "floating-card",
754
754
  style: se({
@@ -759,7 +759,7 @@ const Qt = {
759
759
  })
760
760
  }, [
761
761
  K(o.$slots, "default", { isHoverable: o.isHoverable }, void 0, !0)
762
- ], 4)) : (f(), R(l, {
762
+ ], 4)) : (v(), V(l, {
763
763
  key: 1,
764
764
  value: !0,
765
765
  width: "auto",
@@ -787,7 +787,7 @@ const Qt = {
787
787
  },
788
788
  emits: ["update"],
789
789
  setup(c, { emit: n }) {
790
- const e = c, a = n, t = d(100), o = d(0), r = d(0), l = d(!1), m = d(!1), u = d(void 0), s = d(!1), v = d(), b = T(() => `translateX(${o.value}px) translateY(${r.value}px) scale(${h.value})`), h = T(() => t.value / 100), p = T(() => e.maxScale * 100);
790
+ const e = c, a = n, t = d(100), o = d(0), r = d(0), l = d(!1), p = d(!1), u = d(void 0), s = d(!1), m = d(), b = T(() => `translateX(${o.value}px) translateY(${r.value}px) scale(${h.value})`), h = T(() => t.value / 100), f = T(() => e.maxScale * 100);
791
791
  H([h, o, r], () => {
792
792
  re();
793
793
  }), H(
@@ -806,11 +806,11 @@ const Qt = {
806
806
  e.desktop && A(), e.mobile && g();
807
807
  });
808
808
  function y() {
809
- v.value.addEventListener("wheel", $, {
809
+ m.value.addEventListener("wheel", U, {
810
810
  capture: !0
811
- }), v.value.addEventListener("mousedown", x, {
811
+ }), m.value.addEventListener("mousedown", x, {
812
812
  capture: !0
813
- }), v.value.addEventListener("mousemove", O, {
813
+ }), m.value.addEventListener("mousemove", O, {
814
814
  capture: !0
815
815
  }), window.addEventListener("mouseup", I, {
816
816
  capture: !0
@@ -819,9 +819,9 @@ const Qt = {
819
819
  });
820
820
  }
821
821
  function F() {
822
- v.value.addEventListener("touchstart", Y, {
822
+ m.value.addEventListener("touchstart", Y, {
823
823
  capture: !0
824
- }), v.value.addEventListener("touchmove", S, {
824
+ }), m.value.addEventListener("touchmove", S, {
825
825
  capture: !0
826
826
  }), window.addEventListener("touchend", j, {
827
827
  capture: !0
@@ -830,11 +830,11 @@ const Qt = {
830
830
  });
831
831
  }
832
832
  function A() {
833
- v.value.removeEventListener("wheel", $, {
833
+ m.value.removeEventListener("wheel", U, {
834
834
  capture: !0
835
- }), v.value.removeEventListener("mousedown", x, {
835
+ }), m.value.removeEventListener("mousedown", x, {
836
836
  capture: !0
837
- }), v.value.removeEventListener("mousemove", O, {
837
+ }), m.value.removeEventListener("mousemove", O, {
838
838
  capture: !0
839
839
  }), window.removeEventListener("mouseup", I, {
840
840
  capture: !0
@@ -843,9 +843,9 @@ const Qt = {
843
843
  });
844
844
  }
845
845
  function g() {
846
- v.value.removeEventListener("touchstart", Y, {
846
+ m.value.removeEventListener("touchstart", Y, {
847
847
  capture: !0
848
- }), v.value.removeEventListener("touchmove", S, {
848
+ }), m.value.removeEventListener("touchmove", S, {
849
849
  capture: !0
850
850
  }), window.removeEventListener("touchend", j, {
851
851
  capture: !0
@@ -853,17 +853,17 @@ const Qt = {
853
853
  capture: !0
854
854
  });
855
855
  }
856
- function $(M) {
857
- const { x: B, y: q } = L(M);
858
- W(-M.deltaY / 10, B, q), M.preventDefault();
856
+ function U(M) {
857
+ const { x: R, y: q } = L(M);
858
+ W(-M.deltaY / 10, R, q), M.preventDefault();
859
859
  }
860
860
  function x(M) {
861
861
  l.value = !0, s.value = !1, u.value = M;
862
862
  }
863
863
  function O(M) {
864
864
  if (l.value) {
865
- const { x: B, y: q } = L(M), { x: te, y: ue } = L(u.value), oe = {
866
- x: B - te,
865
+ const { x: R, y: q } = L(M), { x: te, y: ue } = L(u.value), oe = {
866
+ x: R - te,
867
867
  y: q - ue
868
868
  };
869
869
  E(oe.x), z(oe.y), s.value = !0, u.value = M;
@@ -876,65 +876,65 @@ const Qt = {
876
876
  l.value && (s.value && e.consumeMouseClickWhenMoved && (M.preventDefault(), M.stopImmediatePropagation()), l.value = !1);
877
877
  }
878
878
  function Y(M) {
879
- l.value = M.touches.length === 1, m.value = M.touches.length === 2, u.value = M;
879
+ l.value = M.touches.length === 1, p.value = M.touches.length === 2, u.value = M;
880
880
  }
881
881
  function S(M) {
882
882
  if (l.value) {
883
- const { x: B, y: q } = L(M.touches[0]), { x: te, y: ue } = L(u.value.touches[0]), oe = {
884
- x: B - te,
883
+ const { x: R, y: q } = L(M.touches[0]), { x: te, y: ue } = L(u.value.touches[0]), oe = {
884
+ x: R - te,
885
885
  y: q - ue
886
886
  };
887
887
  E(oe.x), z(oe.y);
888
- } else if (m.value && M.touches.length === 2) {
889
- const { x: B, y: q } = L(M.touches[0]), { x: te, y: ue } = L(u.value.touches[0]), { x: oe, y: Ae } = L(M.touches[1]), { x: xe, y: we } = L(u.value.touches[1]), ke = Math.hypot(te - xe, ue - we), Ce = Math.hypot(B - oe, q - Ae), Ee = (oe + B) / 2, Me = (Ae + q) / 2;
888
+ } else if (p.value && M.touches.length === 2) {
889
+ const { x: R, y: q } = L(M.touches[0]), { x: te, y: ue } = L(u.value.touches[0]), { x: oe, y: Ae } = L(M.touches[1]), { x: xe, y: we } = L(u.value.touches[1]), ke = Math.hypot(te - xe, ue - we), Ce = Math.hypot(R - oe, q - Ae), Ee = (oe + R) / 2, Me = (Ae + q) / 2;
890
890
  W(Ce - ke, Ee, Me);
891
891
  }
892
892
  u.value = M;
893
893
  }
894
894
  function j() {
895
- l.value = !1, m.value = !1;
895
+ l.value = !1, p.value = !1;
896
896
  }
897
897
  function L(M) {
898
- const { left: B, top: q } = v.value.getBoundingClientRect();
898
+ const { left: R, top: q } = m.value.getBoundingClientRect();
899
899
  return {
900
- x: M.clientX - B,
900
+ x: M.clientX - R,
901
901
  y: M.clientY - q
902
902
  };
903
903
  }
904
904
  function E(M) {
905
- const B = v.value.clientWidth, q = B * h.value;
905
+ const R = m.value.clientWidth, q = R * h.value;
906
906
  o.value = Math.max(
907
907
  Math.min(0, o.value + M),
908
- -(q - B)
908
+ -(q - R)
909
909
  );
910
910
  }
911
911
  function z(M) {
912
- const B = v.value.clientHeight, q = B * h.value;
912
+ const R = m.value.clientHeight, q = R * h.value;
913
913
  r.value = Math.max(
914
914
  Math.min(0, r.value + M),
915
- -(q - B)
915
+ -(q - R)
916
916
  );
917
917
  }
918
- function W(M, B, q) {
919
- const te = v.value.clientWidth, ue = v.value.clientHeight, oe = te * h.value, Ae = ue * h.value;
920
- t.value = Math.min(Math.max(100, t.value + M), p.value);
918
+ function W(M, R, q) {
919
+ const te = m.value.clientWidth, ue = m.value.clientHeight, oe = te * h.value, Ae = ue * h.value;
920
+ t.value = Math.min(Math.max(100, t.value + M), f.value);
921
921
  const xe = te * h.value, we = ue * h.value, ke = xe - oe, Ce = we - Ae;
922
- o.value -= B / te * ke, r.value -= q / ue * Ce, E(0), z(0);
922
+ o.value -= R / te * ke, r.value -= q / ue * Ce, E(0), z(0);
923
923
  }
924
924
  function re() {
925
925
  a("update", {
926
926
  scale: h.value,
927
927
  x: o.value,
928
928
  y: r.value,
929
- resolve: (M, B) => {
930
- const q = v.value.clientWidth, te = v.value.clientHeight, ue = o.value / -h.value, oe = r.value / -h.value, Ae = ue + q / h.value, xe = oe + te / h.value, we = M / q * (Ae - ue) + ue, ke = B / te * (xe - oe) + oe;
929
+ resolve: (M, R) => {
930
+ const q = m.value.clientWidth, te = m.value.clientHeight, ue = o.value / -h.value, oe = r.value / -h.value, Ae = ue + q / h.value, xe = oe + te / h.value, we = M / q * (Ae - ue) + ue, ke = R / te * (xe - oe) + oe;
931
931
  return { x: we, y: ke };
932
932
  }
933
933
  });
934
934
  }
935
- return (M, B) => (f(), D("div", {
935
+ return (M, R) => (v(), D("div", {
936
936
  ref_key: "box",
937
- ref: v,
937
+ ref: m,
938
938
  class: "zoom-box-container",
939
939
  style: se({ position: e.position })
940
940
  }, [
@@ -946,12 +946,12 @@ const Qt = {
946
946
  ], 4)
947
947
  ], 4));
948
948
  }
949
- }), Ze = /* @__PURE__ */ J(rn, [["__scopeId", "data-v-e5638bde"]]), ct = 4;
949
+ }), Ze = /* @__PURE__ */ J(rn, [["__scopeId", "data-v-e5638bde"]]), dt = 4;
950
950
  function yt(c) {
951
- return c < ct ? c + 1 : 1;
951
+ return c < dt ? c + 1 : 1;
952
952
  }
953
953
  function un(c) {
954
- return c > 1 ? c - 1 : ct;
954
+ return c > 1 ? c - 1 : dt;
955
955
  }
956
956
  class cn {
957
957
  constructor(n) {
@@ -1091,7 +1091,7 @@ const vn = { key: 0 }, mn = { class: "interactive-viewer" }, pn = { class: "fill
1091
1091
  be,
1092
1092
  a.i18nConfig ? new Fe(a.i18nConfig) : new Fe()
1093
1093
  );
1094
- const o = st({ isReady: !1, isError: !1 }), r = d(), l = d(), m = d(), u = d(), s = d({ x: 0, y: 0, width: 0, height: 0 }), v = d(), b = d(), h = d(), p = T(() => h.value.isHoverEnabled), y = T(() => a.useSvg ? Pt : $t), F = T(() => a.selectedUnitId), A = T(() => a.nextUnitId), g = T(() => a.prevUnitId);
1094
+ const o = it({ isReady: !1, isError: !1 }), r = d(), l = d(), p = d(), u = d(), s = d({ x: 0, y: 0, width: 0, height: 0 }), m = d(), b = d(), h = d(), f = T(() => h.value.isHoverEnabled), y = T(() => a.useSvg ? Pt : $t), F = T(() => a.selectedUnitId), A = T(() => a.nextUnitId), g = T(() => a.prevUnitId);
1095
1095
  Ie(() => {
1096
1096
  if (F.value && u.value) {
1097
1097
  const I = r.value[F.value];
@@ -1099,7 +1099,7 @@ const vn = { key: 0 }, mn = { class: "interactive-viewer" }, pn = { class: "fill
1099
1099
  }
1100
1100
  }), de(async () => {
1101
1101
  const I = a.apartmentChooserData && a.apartmentChooserData.startScene !== void 0 ? a.apartmentChooserData.startScene : yn;
1102
- m.value = a.apartmentChooserData && a.apartmentChooserData.scenes !== void 0 ? a.apartmentChooserData.scenes : e, l.value = a.apartmentChooserData && a.apartmentChooserData.sceneData !== void 0 ? a.apartmentChooserData.sceneData.map((S) => ({
1102
+ p.value = a.apartmentChooserData && a.apartmentChooserData.scenes !== void 0 ? a.apartmentChooserData.scenes : e, l.value = a.apartmentChooserData && a.apartmentChooserData.sceneData !== void 0 ? a.apartmentChooserData.sceneData.map((S) => ({
1103
1103
  unitId: S.apartmentID,
1104
1104
  index: S.index
1105
1105
  })) : [], r.value = a.apartmentChooserData && a.apartmentChooserData.sceneData !== void 0 ? a.apartmentChooserData.sceneData.map((S) => {
@@ -1108,13 +1108,13 @@ const vn = { key: 0 }, mn = { class: "interactive-viewer" }, pn = { class: "fill
1108
1108
  }).reduce((S, j) => ({ ...S, [j.unitId]: j.scene }), {}) : {};
1109
1109
  const _ = (S, j = "unitId") => {
1110
1110
  let L = I, E = [];
1111
- for (let z = 0; z < ct; z++)
1111
+ for (let z = 0; z < dt; z++)
1112
1112
  E.push(L), L = yt(L);
1113
1113
  return S.sort((z, W) => {
1114
1114
  const re = E.findIndex(
1115
- (B) => B === r.value[z[j]]
1115
+ (R) => R === r.value[z[j]]
1116
1116
  ), M = E.findIndex(
1117
- (B) => B === r.value[W[j]]
1117
+ (R) => R === r.value[W[j]]
1118
1118
  );
1119
1119
  return re < M ? -1 : re > M ? 1 : 0;
1120
1120
  }), S;
@@ -1123,25 +1123,25 @@ const vn = { key: 0 }, mn = { class: "interactive-viewer" }, pn = { class: "fill
1123
1123
  };
1124
1124
  t("initialized", {
1125
1125
  scene: I,
1126
- scenes: m.value,
1126
+ scenes: p.value,
1127
1127
  sceneData: l.value,
1128
1128
  scenesByApartment: r.value,
1129
1129
  unitsSceneSort: _,
1130
1130
  initialize: Y
1131
1131
  });
1132
1132
  });
1133
- function $(I) {
1133
+ function U(I) {
1134
1134
  s.value = I;
1135
1135
  }
1136
1136
  function x(I) {
1137
- b.value = I.hoverUnit, v.value = I.closeHandler, t("hoverOverUnit", I.hoverUnit);
1137
+ b.value = I.hoverUnit, m.value = I.closeHandler, t("hoverOverUnit", I.hoverUnit);
1138
1138
  }
1139
1139
  function O(I) {
1140
- b.value = null, v.value = I.closeHandler, t("hoverOutUnit", I.hoverUnit);
1140
+ b.value = null, m.value = I.closeHandler, t("hoverOutUnit", I.hoverUnit);
1141
1141
  }
1142
1142
  return (I, _) => {
1143
- const Y = V("v-progress-linear");
1144
- return u.value ? (f(), D("div", vn, [
1143
+ const Y = B("v-progress-linear");
1144
+ return u.value ? (v(), D("div", vn, [
1145
1145
  i("div", mn, [
1146
1146
  i("div", pn, [
1147
1147
  w(Ze, {
@@ -1152,14 +1152,14 @@ const vn = { key: 0 }, mn = { class: "interactive-viewer" }, pn = { class: "fill
1152
1152
  w(ln, {
1153
1153
  "cdn-file-resolver": I.cdnFileResolver,
1154
1154
  "view-model": u.value,
1155
- "cardinal-frames": m.value,
1155
+ "cardinal-frames": p.value,
1156
1156
  build: I.build,
1157
1157
  onProgress: _[0] || (_[0] = (S) => o.progress = S),
1158
1158
  onLoaded: _[1] || (_[1] = (S) => o.isReady = !0),
1159
1159
  onError: _[2] || (_[2] = (S) => o.isError = !0)
1160
1160
  }, null, 8, ["cdn-file-resolver", "view-model", "cardinal-frames", "build"]),
1161
- o.isReady ? (f(), D("div", fn, [
1162
- (f(), R(ht(y.value), {
1161
+ o.isReady ? (v(), D("div", fn, [
1162
+ (v(), V(ht(y.value), {
1163
1163
  "cdn-file-resolver": a.cdnFileResolver,
1164
1164
  "view-model": u.value,
1165
1165
  "selected-unit-id": F.value,
@@ -1171,22 +1171,22 @@ const vn = { key: 0 }, mn = { class: "interactive-viewer" }, pn = { class: "fill
1171
1171
  onGoToUnit: _[4] || (_[4] = (S) => t("goToUnit", S)),
1172
1172
  onHoverOver: x,
1173
1173
  onHoverOut: O,
1174
- onPos: $
1174
+ onPos: U
1175
1175
  }, {
1176
1176
  default: C((S) => [
1177
1177
  K(I.$slots, "default", tt(nt(S)), void 0, !0)
1178
1178
  ]),
1179
1179
  _: 3
1180
1180
  }, 40, ["cdn-file-resolver", "view-model", "selected-unit-id", "scene-data", "color-callback", "can-go-to-unit-callback", "draw-observer"]))
1181
- ])) : U("", !0)
1181
+ ])) : $("", !0)
1182
1182
  ]),
1183
1183
  _: 3
1184
1184
  }, 8, ["desktop", "mobile"]),
1185
- b.value && I.showCards ? (f(), R(qe, {
1185
+ b.value && I.showCards ? (v(), V(qe, {
1186
1186
  key: 0,
1187
- "is-hoverable": p.value,
1187
+ "is-hoverable": f.value,
1188
1188
  pos: s.value,
1189
- onOutside: v.value
1189
+ onOutside: m.value
1190
1190
  }, {
1191
1191
  default: C(() => [
1192
1192
  K(I.$slots, "default", {
@@ -1194,13 +1194,13 @@ const vn = { key: 0 }, mn = { class: "interactive-viewer" }, pn = { class: "fill
1194
1194
  canGoToUnit: I.canGoToUnitCallback(b.value),
1195
1195
  goToUnit: () => I.canGoToUnitCallback(b.value) && t("goToUnit", b.value),
1196
1196
  pos: s.value,
1197
- isHoverable: p.value,
1198
- close: v.value
1197
+ isHoverable: f.value,
1198
+ close: m.value
1199
1199
  }, void 0, !0)
1200
1200
  ]),
1201
1201
  _: 3
1202
- }, 8, ["is-hoverable", "pos", "onOutside"])) : U("", !0),
1203
- o.isReady ? (f(), D("div", hn, [
1202
+ }, 8, ["is-hoverable", "pos", "onOutside"])) : $("", !0),
1203
+ o.isReady ? (v(), D("div", hn, [
1204
1204
  w(Nt, {
1205
1205
  "can-go-to-unit-callback": a.canGoToUnitCallback,
1206
1206
  "unit-renderer": a.unitRenderer,
@@ -1212,7 +1212,7 @@ const vn = { key: 0 }, mn = { class: "interactive-viewer" }, pn = { class: "fill
1212
1212
  onPrevUnit: _[6] || (_[6] = (S) => t("navUnit", g.value)),
1213
1213
  onNextUnit: _[7] || (_[7] = (S) => t("navUnit", A.value))
1214
1214
  }, null, 8, ["can-go-to-unit-callback", "unit-renderer", "selected-unit-id", "prev-unit-id", "next-unit-id", "view-model"])
1215
- ])) : o.isError ? U("", !0) : (f(), D("div", gn, [
1215
+ ])) : o.isError ? $("", !0) : (v(), D("div", gn, [
1216
1216
  w(Y, {
1217
1217
  indeterminate: !o.progress,
1218
1218
  modelValue: o.progress,
@@ -1225,7 +1225,7 @@ const vn = { key: 0 }, mn = { class: "interactive-viewer" }, pn = { class: "fill
1225
1225
  ref_key: "hoverProbe",
1226
1226
  ref: h
1227
1227
  }, null, 512)
1228
- ])) : U("", !0);
1228
+ ])) : $("", !0);
1229
1229
  };
1230
1230
  }
1231
1231
  }), bn = /* @__PURE__ */ J(_n, [["__scopeId", "data-v-528c8f5b"]]), wn = ["src"], kn = /* @__PURE__ */ P({
@@ -1237,7 +1237,7 @@ const vn = { key: 0 }, mn = { class: "interactive-viewer" }, pn = { class: "fill
1237
1237
  },
1238
1238
  setup(c) {
1239
1239
  const n = c, e = T(() => ie(n.cdnFileResolver, n.timeSampleData.filename));
1240
- return (a, t) => ve((f(), D("img", {
1240
+ return (a, t) => ve((v(), D("img", {
1241
1241
  key: e.value,
1242
1242
  src: e.value,
1243
1243
  width: "100%"
@@ -1254,7 +1254,7 @@ const vn = { key: 0 }, mn = { class: "interactive-viewer" }, pn = { class: "fill
1254
1254
  },
1255
1255
  setup(c) {
1256
1256
  const n = c;
1257
- return (e, a) => (f(!0), D(ce, null, me(n.dayData.timeSamples, (t) => (f(), R(Cn, {
1257
+ return (e, a) => (v(!0), D(ce, null, me(n.dayData.timeSamples, (t) => (v(), V(Cn, {
1258
1258
  "time-sample-data": t,
1259
1259
  "cdn-file-resolver": n.cdnFileResolver,
1260
1260
  "current-time": e.currentTime
@@ -1269,7 +1269,7 @@ const vn = { key: 0 }, mn = { class: "interactive-viewer" }, pn = { class: "fill
1269
1269
  },
1270
1270
  setup(c) {
1271
1271
  const n = c;
1272
- return (e, a) => (f(!0), D(ce, null, me(n.cameraData.sunsimDayOfYear, (t) => (f(), R(In, {
1272
+ return (e, a) => (v(!0), D(ce, null, me(n.cameraData.sunsimDayOfYear, (t) => (v(), V(In, {
1273
1273
  "day-data": t,
1274
1274
  "cdn-file-resolver": n.cdnFileResolver,
1275
1275
  "current-time": n.currentTime
@@ -1285,7 +1285,7 @@ const vn = { key: 0 }, mn = { class: "interactive-viewer" }, pn = { class: "fill
1285
1285
  emits: ["goToBuilding", "hoverOverBuilding", "hoverOutBuilding"],
1286
1286
  setup(c, { emit: n }) {
1287
1287
  const e = c, a = T(() => ie(e.cdnFileResolver, e.transitionData.filename));
1288
- return (t, o) => ve((f(), D("img", {
1288
+ return (t, o) => ve((v(), D("img", {
1289
1289
  key: a.value,
1290
1290
  src: a.value,
1291
1291
  class: "position-absolute top-left w-100 h-100"
@@ -1297,7 +1297,7 @@ const vn = { key: 0 }, mn = { class: "interactive-viewer" }, pn = { class: "fill
1297
1297
  function _t(c) {
1298
1298
  return !("filename" in c);
1299
1299
  }
1300
- function pt(c) {
1300
+ function st(c) {
1301
1301
  return "filename" in c;
1302
1302
  }
1303
1303
  const xn = /* @__PURE__ */ P({
@@ -1329,8 +1329,8 @@ const xn = /* @__PURE__ */ P({
1329
1329
  )
1330
1330
  );
1331
1331
  }), (r, l) => {
1332
- const m = V("v-select");
1333
- return f(), R(m, {
1332
+ const p = B("v-select");
1333
+ return v(), V(p, {
1334
1334
  modelValue: t.value,
1335
1335
  "onUpdate:modelValue": l[0] || (l[0] = (u) => t.value = u),
1336
1336
  items: o.value,
@@ -1374,8 +1374,8 @@ const xn = /* @__PURE__ */ P({
1374
1374
  });
1375
1375
  }
1376
1376
  return (r, l) => {
1377
- const m = V("v-list-item"), u = V("v-select");
1378
- return f(), R(u, {
1377
+ const p = B("v-list-item"), u = B("v-select");
1378
+ return v(), V(u, {
1379
1379
  modelValue: t.value,
1380
1380
  "onUpdate:modelValue": l[0] || (l[0] = (s) => t.value = s),
1381
1381
  items: e.cameraData.sunsimDayOfYear,
@@ -1387,7 +1387,7 @@ const xn = /* @__PURE__ */ P({
1387
1387
  "hide-details": ""
1388
1388
  }, {
1389
1389
  item: C(({ props: s }) => [
1390
- w(m, _e(s, {
1390
+ w(p, _e(s, {
1391
1391
  title: o(s.title)
1392
1392
  }), null, 16, ["title"])
1393
1393
  ]),
@@ -1420,13 +1420,13 @@ const xn = /* @__PURE__ */ P({
1420
1420
  a(
1421
1421
  "onTimeChange",
1422
1422
  e.dayData.timeSamples.find(
1423
- (m) => m.timeInHours === t.value
1423
+ (p) => p.timeInHours === t.value
1424
1424
  )
1425
1425
  );
1426
1426
  });
1427
- function r(m) {
1428
- const u = m * 60, s = u / 60, v = u % 60;
1429
- return `${s.toString().padStart(2, "0")}:${v.toString().padStart(2, "0")}`;
1427
+ function r(p) {
1428
+ const u = p * 60, s = Math.floor(u / 60), m = u % 60;
1429
+ return `${s.toString().padStart(2, "0")}:${m.toString().padStart(2, "0")}`;
1430
1430
  }
1431
1431
  function l() {
1432
1432
  o.value ? (clearInterval(o.value), o.value = void 0) : (e.dayData.timeSamples.findIndex(
@@ -1438,11 +1438,11 @@ const xn = /* @__PURE__ */ P({
1438
1438
  u < e.dayData.timeSamples.length - 1 ? t.value = e.dayData.timeSamples[u + 1].timeInHours : (clearInterval(o.value), o.value = void 0);
1439
1439
  }, 200));
1440
1440
  }
1441
- return (m, u) => {
1442
- const s = V("v-icon"), v = V("v-btn"), b = V("v-slider"), h = V("v-field");
1443
- return f(), R(h, { variant: "solo" }, {
1441
+ return (p, u) => {
1442
+ const s = B("v-icon"), m = B("v-btn"), b = B("v-slider"), h = B("v-field");
1443
+ return v(), V(h, { variant: "solo" }, {
1444
1444
  default: C(() => [
1445
- m.dayData.startTime === m.dayData.endTime ? (f(), D("div", Mn, [
1445
+ p.dayData.startTime === p.dayData.endTime ? (v(), D("div", Mn, [
1446
1446
  w(s, {
1447
1447
  style: { color: "#ffab02", "vertical-align": "baseline", "font-size": "20px" },
1448
1448
  class: "py-2 ml-2 mr-2 icon"
@@ -1453,29 +1453,29 @@ const xn = /* @__PURE__ */ P({
1453
1453
  _: 1
1454
1454
  }),
1455
1455
  ee(" " + Q(r(t.value)), 1)
1456
- ])) : (f(), R(b, {
1456
+ ])) : (v(), V(b, {
1457
1457
  key: 1,
1458
1458
  class: "pa-1",
1459
1459
  modelValue: t.value,
1460
- "onUpdate:modelValue": u[0] || (u[0] = (p) => t.value = p),
1461
- min: m.dayData.startTime,
1462
- max: m.dayData.endTime,
1463
- step: m.dayData.interval,
1460
+ "onUpdate:modelValue": u[0] || (u[0] = (f) => t.value = f),
1461
+ min: p.dayData.startTime,
1462
+ max: p.dayData.endTime,
1463
+ step: p.dayData.interval,
1464
1464
  disabled: !!e.disabled,
1465
1465
  "hide-details": ""
1466
1466
  }, {
1467
1467
  prepend: C(() => [
1468
- w(v, {
1468
+ w(m, {
1469
1469
  icon: o.value ? "mdi-stop" : "mdi-play",
1470
1470
  size: "x-small",
1471
1471
  variant: "flat",
1472
1472
  onClick: l
1473
1473
  }, null, 8, ["icon"]),
1474
1474
  ee("   "),
1475
- i("span", En, Q(r(m.dayData.startTime)), 1)
1475
+ i("span", En, Q(r(p.dayData.startTime)), 1)
1476
1476
  ]),
1477
1477
  append: C(() => [
1478
- i("span", Tn, Q(r(m.dayData.endTime)), 1),
1478
+ i("span", Tn, Q(r(p.dayData.endTime)), 1),
1479
1479
  ee("   "),
1480
1480
  w(s, {
1481
1481
  style: { color: "#ffab02", "vertical-align": "baseline", "font-size": "20px" },
@@ -1495,7 +1495,7 @@ const xn = /* @__PURE__ */ P({
1495
1495
  });
1496
1496
  };
1497
1497
  }
1498
- }), Bn = /* @__PURE__ */ J(Vn, [["__scopeId", "data-v-cb62dcc2"]]), Rn = /* @__PURE__ */ P({
1498
+ }), Bn = /* @__PURE__ */ J(Vn, [["__scopeId", "data-v-f0aa5473"]]), Rn = /* @__PURE__ */ P({
1499
1499
  __name: "VApartmentChooserV5UiRotator",
1500
1500
  props: {
1501
1501
  apartmentChooserData: {},
@@ -1517,58 +1517,58 @@ const xn = /* @__PURE__ */ P({
1517
1517
  }), Ie(() => {
1518
1518
  t("onSceneChange", r.value);
1519
1519
  });
1520
- const m = T(() => o.value ? !1 : a.apartmentChooserData.loopable ? !0 : r.value !== a.apartmentChooserData.scenes[0]), u = T(() => o.value ? !1 : a.apartmentChooserData.loopable ? !0 : r.value !== a.apartmentChooserData.scenes[a.apartmentChooserData.scenes.length - 1]);
1520
+ const p = T(() => o.value ? !1 : a.apartmentChooserData.loopable ? !0 : r.value !== a.apartmentChooserData.scenes[0]), u = T(() => o.value ? !1 : a.apartmentChooserData.loopable ? !0 : r.value !== a.apartmentChooserData.scenes[a.apartmentChooserData.scenes.length - 1]);
1521
1521
  function s() {
1522
- const p = r.value;
1523
- let y = a.apartmentChooserData.scenes.findIndex((A) => A === p) + 1;
1522
+ const f = r.value;
1523
+ let y = a.apartmentChooserData.scenes.findIndex((A) => A === f) + 1;
1524
1524
  y >= a.apartmentChooserData.scenes.length && (y = 0);
1525
1525
  const F = a.apartmentChooserData.scenes[y];
1526
- a.apartmentChooserData.loopable && p > F ? h(p, F + a.apartmentChooserData.scenes.length) : h(p, F);
1526
+ a.apartmentChooserData.loopable && f > F ? h(f, F + a.apartmentChooserData.scenes.length) : h(f, F);
1527
1527
  }
1528
- async function v() {
1529
- const p = r.value;
1530
- let y = a.apartmentChooserData.scenes.findIndex((A) => A === p) - 1;
1528
+ async function m() {
1529
+ const f = r.value;
1530
+ let y = a.apartmentChooserData.scenes.findIndex((A) => A === f) - 1;
1531
1531
  y < 0 && (y = a.apartmentChooserData.scenes[a.apartmentChooserData.scenes.length - 1]);
1532
1532
  const F = a.apartmentChooserData.scenes[y];
1533
- a.apartmentChooserData.loopable && p < F ? h(p + a.apartmentChooserData.scenes.length, F) : h(p, F);
1533
+ a.apartmentChooserData.loopable && f < F ? h(f + a.apartmentChooserData.scenes.length, F) : h(f, F);
1534
1534
  }
1535
- function b(p) {
1535
+ function b(f) {
1536
1536
  const y = r.value;
1537
1537
  if (a.apartmentChooserData.loopable)
1538
- if (p < y) {
1539
- let F = y - p, A = y - (a.apartmentChooserData.cameras.length + p);
1540
- return Math.abs(F) > Math.abs(A) ? h(y, p) : h(y, a.apartmentChooserData.cameras.length + p);
1538
+ if (f < y) {
1539
+ let F = y - f, A = y - (a.apartmentChooserData.cameras.length + f);
1540
+ return Math.abs(F) > Math.abs(A) ? h(y, f) : h(y, a.apartmentChooserData.cameras.length + f);
1541
1541
  } else {
1542
- let F = y - p, A = a.apartmentChooserData.cameras.length + y - p;
1543
- return Math.abs(F) > Math.abs(A) ? h(y, p) : h(a.apartmentChooserData.cameras.length + y, p);
1542
+ let F = y - f, A = a.apartmentChooserData.cameras.length + y - f;
1543
+ return Math.abs(F) > Math.abs(A) ? h(y, f) : h(a.apartmentChooserData.cameras.length + y, f);
1544
1544
  }
1545
1545
  else
1546
- return h(y, p);
1546
+ return h(y, f);
1547
1547
  }
1548
- function h(p, y) {
1548
+ function h(f, y) {
1549
1549
  return new Promise((F) => {
1550
- o.value = !0, t("onRotateStart", { from: p, to: y });
1551
- let A, g = p;
1550
+ o.value = !0, t("onRotateStart", { from: f, to: y });
1551
+ let A, g = f;
1552
1552
  A = setInterval(() => {
1553
1553
  g < y ? (g++, r.value = Math.abs(
1554
1554
  g % a.apartmentChooserData.cameras.length
1555
1555
  )) : g > y ? (g--, r.value = Math.abs(
1556
1556
  g % a.apartmentChooserData.cameras.length
1557
- )) : (clearInterval(A), t("onRotateFinish", { from: p, to: y }), o.value = !1, F());
1557
+ )) : (clearInterval(A), t("onRotateFinish", { from: f, to: y }), o.value = !1, F());
1558
1558
  }, 50);
1559
1559
  });
1560
1560
  }
1561
- return (p, y) => {
1562
- const F = V("v-btn"), A = V("v-chip");
1563
- return f(), D(ce, null, [
1561
+ return (f, y) => {
1562
+ const F = B("v-btn"), A = B("v-chip");
1563
+ return v(), D(ce, null, [
1564
1564
  w(F, {
1565
1565
  class: "mx-2",
1566
1566
  icon: "mdi-restore",
1567
1567
  size: "small",
1568
- disabled: !m.value,
1569
- onClick: v
1568
+ disabled: !p.value,
1569
+ onClick: m
1570
1570
  }, null, 8, ["disabled"]),
1571
- p.renderDisplay && l.value ? (f(), R(A, {
1571
+ f.renderDisplay && l.value ? (v(), V(A, {
1572
1572
  key: 0,
1573
1573
  variant: "flat",
1574
1574
  color: "white",
@@ -1576,10 +1576,10 @@ const xn = /* @__PURE__ */ P({
1576
1576
  onClick: y[0] || (y[0] = (g) => t("onDisplayClick", l.value))
1577
1577
  }, {
1578
1578
  default: C(() => [
1579
- ee(Q(p.renderDisplay(l.value)), 1)
1579
+ ee(Q(f.renderDisplay(l.value)), 1)
1580
1580
  ]),
1581
1581
  _: 1
1582
- })) : U("", !0),
1582
+ })) : $("", !0),
1583
1583
  w(F, {
1584
1584
  class: "mx-2",
1585
1585
  icon: "mdi-reload",
@@ -1600,7 +1600,7 @@ const xn = /* @__PURE__ */ P({
1600
1600
  },
1601
1601
  emits: ["onClick", "onHoverOver", "onHoverOut", "updateSvgContainer"],
1602
1602
  setup(c, { emit: n }) {
1603
- const e = c, a = n, t = d(), o = d(), r = d(e.selectedId), l = st({});
1603
+ const e = c, a = n, t = d(), o = d(), r = d(e.selectedId), l = it({});
1604
1604
  H(
1605
1605
  () => e.selectedId,
1606
1606
  () => {
@@ -1608,14 +1608,14 @@ const xn = /* @__PURE__ */ P({
1608
1608
  }
1609
1609
  ), Ie(() => {
1610
1610
  for (const s in l) {
1611
- const { element: v, state: b } = l[s], { r: h, g: p, b: y, a: F, s: A } = e.colorCallback(s, b) || {
1611
+ const { element: m, state: b } = l[s], { r: h, g: f, b: y, a: F, s: A } = e.colorCallback(s, b) || {
1612
1612
  r: 0,
1613
1613
  g: 0,
1614
1614
  b: 0,
1615
1615
  a: 0,
1616
1616
  s: 0
1617
1617
  };
1618
- v.style.fill = `rgba(${h}, ${p}, ${y}, ${F / 255})`, v.style.stroke = `rgb(${h}, ${p}, ${y})`, v.style.strokeWidth = A.toString();
1618
+ m.style.fill = `rgba(${h}, ${f}, ${y}, ${F / 255})`, m.style.stroke = `rgb(${h}, ${f}, ${y})`, m.style.strokeWidth = A.toString();
1619
1619
  }
1620
1620
  }), H(r, () => {
1621
1621
  for (const s in l)
@@ -1627,18 +1627,18 @@ const xn = /* @__PURE__ */ P({
1627
1627
  }), H(
1628
1628
  () => o.value,
1629
1629
  () => {
1630
- o.value && new ResizeObserver(m).observe(o.value);
1630
+ o.value && new ResizeObserver(p).observe(o.value);
1631
1631
  }
1632
1632
  );
1633
- function m() {
1633
+ function p() {
1634
1634
  Se(() => {
1635
1635
  const s = o.value.firstChild;
1636
1636
  if (s) {
1637
1637
  if (!s.hasAttribute("viewBox")) {
1638
- const v = `0 0 ${s.getAttribute(
1638
+ const m = `0 0 ${s.getAttribute(
1639
1639
  "width"
1640
1640
  )} ${s.getAttribute("height")}`;
1641
- s.setAttribute("viewBox", v);
1641
+ s.setAttribute("viewBox", m);
1642
1642
  }
1643
1643
  s.setAttribute(
1644
1644
  "width",
@@ -1653,11 +1653,11 @@ const xn = /* @__PURE__ */ P({
1653
1653
  function u() {
1654
1654
  Se(() => {
1655
1655
  const s = o.value.firstChild;
1656
- s && (a("updateSvgContainer", s), m(), s.querySelectorAll(
1656
+ s && (a("updateSvgContainer", s), p(), s.querySelectorAll(
1657
1657
  "[data-apartment-id]"
1658
1658
  ).forEach((b) => {
1659
- b.style.strokeWidth = "0", b.style.stroke = "rgba(255,255,255,0)", b.style.fill = "rgba(255,255,255,0)", b.querySelectorAll("path").forEach((p) => {
1660
- p.style.stroke = "inherit", p.style.fill = "inherit";
1659
+ b.style.strokeWidth = "0", b.style.stroke = "rgba(255,255,255,0)", b.style.fill = "rgba(255,255,255,0)", b.querySelectorAll("path").forEach((f) => {
1660
+ f.style.stroke = "inherit", f.style.fill = "inherit";
1661
1661
  });
1662
1662
  const h = b.getAttribute("data-apartment-id");
1663
1663
  l[h] = {
@@ -1673,9 +1673,9 @@ const xn = /* @__PURE__ */ P({
1673
1673
  }));
1674
1674
  });
1675
1675
  }
1676
- return (s, v) => (f(), R(Le, null, {
1676
+ return (s, m) => (v(), V(Le, null, {
1677
1677
  default: C(() => [
1678
- (f(), D("div", {
1678
+ (v(), D("div", {
1679
1679
  ref_key: "svgContainer",
1680
1680
  ref: o,
1681
1681
  key: s.currentCamera.overlayFilename,
@@ -1698,8 +1698,8 @@ const xn = /* @__PURE__ */ P({
1698
1698
  transition: " transform 0.5s ease-in"
1699
1699
  }));
1700
1700
  return (a, t) => {
1701
- const o = V("v-img");
1702
- return f(), R(o, {
1701
+ const o = B("v-img");
1702
+ return v(), V(o, {
1703
1703
  src: ae(Hn),
1704
1704
  style: se(e.value)
1705
1705
  }, null, 8, ["src", "style"]);
@@ -1880,15 +1880,15 @@ const Nn = (c) => {
1880
1880
  })
1881
1881
  ), e = "1280", a = [4, 1, 2, 3], t = [];
1882
1882
  for (let l = 1; l <= 64; l++) {
1883
- const m = l.toString().padStart(4, "0") + ".jpg";
1884
- t.push(m);
1883
+ const p = l.toString().padStart(4, "0") + ".jpg";
1884
+ t.push(p);
1885
1885
  }
1886
1886
  const o = t.map((l) => ({
1887
1887
  filename: `/${e}/${l}`
1888
1888
  }));
1889
1889
  for (let l = 0; l < c.scenes.length; l++) {
1890
- let m = c.scenes[l], u, s;
1891
- u = o[m], s = {
1890
+ let p = c.scenes[l], u, s;
1891
+ u = o[p], s = {
1892
1892
  cameraName: `Camera ${l + 1}`,
1893
1893
  cameraPosition: {
1894
1894
  x: 0,
@@ -1918,7 +1918,7 @@ const Nn = (c) => {
1918
1918
  ]
1919
1919
  }
1920
1920
  ]
1921
- }, o[m] = s;
1921
+ }, st(o[p]) && (o[p] = s);
1922
1922
  }
1923
1923
  return {
1924
1924
  version: "5.0",
@@ -1962,26 +1962,26 @@ const Nn = (c) => {
1962
1962
  setup(c, { emit: n }) {
1963
1963
  const e = c, a = n, t = d(), o = d(), r = d(), l = d(
1964
1964
  null
1965
- ), m = d(4), u = d(), s = d(!1), v = d(!1), b = d(), h = d(), p = T(() => h.value.isHoverEnabled), y = d({ x: 0, y: 0, width: 0, height: 0 }), F = d(), A = d(), g = d(
1965
+ ), p = d(4), u = d(), s = d(!1), m = d(!1), b = d(), h = d(), f = T(() => h.value.isHoverEnabled), y = d({ x: 0, y: 0, width: 0, height: 0 }), F = d(), A = d(), g = d(
1966
1966
  e.apartmentChooserData
1967
- ), $ = d(!1);
1967
+ ), U = d(!1);
1968
1968
  de(() => s.value = !0), H(
1969
1969
  () => A.value,
1970
1970
  () => {
1971
- A.value && new ResizeObserver(([B]) => {
1972
- $.value = B.contentRect.width < e.mobileBreakpoint;
1971
+ A.value && new ResizeObserver(([R]) => {
1972
+ U.value = R.contentRect.width < e.mobileBreakpoint;
1973
1973
  }).observe(A.value);
1974
1974
  }
1975
1975
  );
1976
1976
  const x = T(
1977
1977
  () => g.value ? g.value.cameras.filter(_t) : []
1978
1978
  ), O = T(
1979
- () => g.value ? g.value.cameras.filter(pt) : []
1979
+ () => g.value ? g.value.cameras.filter(st) : []
1980
1980
  ), I = async () => {
1981
- let M, B;
1982
- return B = await ye.loadJson(
1981
+ let M, R;
1982
+ return R = await ye.loadJson(
1983
1983
  ie(e.cdnFileResolver, "/apartmentChooser.json")
1984
- ), B.version === 5 ? B : (M = Nn(B), M);
1984
+ ), R.version === 5 ? R : (M = Nn(R), M);
1985
1985
  };
1986
1986
  H(
1987
1987
  [
@@ -1992,9 +1992,9 @@ const Nn = (c) => {
1992
1992
  async () => {
1993
1993
  e.cdnFileResolver && (g.value || (g.value = await I()), e.defaultCamera ? t.value = x.value.find(
1994
1994
  (M) => M.cameraName === e.defaultCamera
1995
- ) || x.value[0] : t.value = x.value[0], m.value = g.value.cameras.findIndex(
1995
+ ) || x.value[0] : t.value = x.value[0], p.value = g.value.cameras.findIndex(
1996
1996
  (M) => M === t.value
1997
- ), m.value = Math.max(0, m.value));
1997
+ ), p.value = Math.max(0, p.value));
1998
1998
  },
1999
1999
  { immediate: !0 }
2000
2000
  ), H(
@@ -2018,34 +2018,34 @@ const Nn = (c) => {
2018
2018
  );
2019
2019
  function _(M) {
2020
2020
  t.value !== M && b.value.rotateShortestRoute(
2021
- g.value.cameras.findIndex((B) => B === M)
2021
+ g.value.cameras.findIndex((R) => R === M)
2022
2022
  );
2023
2023
  }
2024
2024
  function Y(M) {
2025
- m.value = M, pt(g.value.cameras[m.value]) ? l.value = g.value.cameras[m.value] : (Se(() => {
2025
+ p.value = M, st(g.value.cameras[p.value]) ? l.value = g.value.cameras[p.value] : (Se(() => {
2026
2026
  S(
2027
- g.value.cameras[m.value]
2027
+ g.value.cameras[p.value]
2028
2028
  );
2029
2029
  }), l.value = null);
2030
2030
  }
2031
2031
  function S(M) {
2032
- const B = o.value;
2033
- t.value = M, m.value = g.value.cameras.findIndex(
2032
+ const R = o.value;
2033
+ t.value = M, p.value = g.value.cameras.findIndex(
2034
2034
  (q) => q === t.value
2035
2035
  ), Se(() => {
2036
2036
  j(
2037
2037
  t.value.sunsimDayOfYear.find(
2038
- (q) => q.dayOfYear === B.dayOfYear
2038
+ (q) => q.dayOfYear === R.dayOfYear
2039
2039
  ) || t.value.sunsimDayOfYear[0]
2040
2040
  );
2041
2041
  });
2042
2042
  }
2043
2043
  function j(M) {
2044
- const B = r.value;
2044
+ const R = r.value;
2045
2045
  o.value = M, Se(() => {
2046
2046
  L(
2047
2047
  o.value.timeSamples.find(
2048
- (q) => q.timeInHours === B.timeInHours
2048
+ (q) => q.timeInHours === R.timeInHours
2049
2049
  ) || o.value.timeSamples.find(
2050
2050
  (q) => q.timeInHours === o.value.defaultHour
2051
2051
  ) || o.value.timeSamples[0]
@@ -2057,10 +2057,10 @@ const Nn = (c) => {
2057
2057
  }
2058
2058
  function E(M) {
2059
2059
  a("onClick", M, () => {
2060
- const B = g.value.unitData.find(
2060
+ const R = g.value.unitData.find(
2061
2061
  (q) => q.unitId === M
2062
2062
  );
2063
- B && b.value.rotateShortestRoute(B.bestScene);
2063
+ R && b.value.rotateShortestRoute(R.bestScene);
2064
2064
  });
2065
2065
  }
2066
2066
  function z(M) {
@@ -2070,7 +2070,7 @@ const Nn = (c) => {
2070
2070
  a("onHoverOut", M), u.value = void 0;
2071
2071
  }
2072
2072
  function re(M) {
2073
- const { layerX: B, layerY: q } = M;
2073
+ const { layerX: R, layerY: q } = M;
2074
2074
  let te = M.target, ue = !1;
2075
2075
  for (; te; )
2076
2076
  if (te === F.value) {
@@ -2081,7 +2081,7 @@ const Nn = (c) => {
2081
2081
  if (ue) {
2082
2082
  const oe = M.currentTarget;
2083
2083
  y.value = {
2084
- x: B,
2084
+ x: R,
2085
2085
  y: q,
2086
2086
  width: oe.clientWidth,
2087
2087
  height: oe.clientHeight
@@ -2090,9 +2090,9 @@ const Nn = (c) => {
2090
2090
  y.value = void 0;
2091
2091
  a("onMouseMove", M, y.value);
2092
2092
  }
2093
- return (M, B) => {
2094
- const q = V("v-skeleton-loader");
2095
- return f(), D(ce, null, [
2093
+ return (M, R) => {
2094
+ const q = B("v-skeleton-loader");
2095
+ return v(), D(ce, null, [
2096
2096
  w(q, {
2097
2097
  type: "image",
2098
2098
  class: "w-100 h-100 position-relative",
@@ -2104,33 +2104,36 @@ const Nn = (c) => {
2104
2104
  i("div", {
2105
2105
  ref_key: "container",
2106
2106
  ref: A,
2107
- class: he({ mobile: $.value }),
2107
+ class: he({ mobile: U.value }),
2108
2108
  onMousemove: re
2109
2109
  }, [
2110
2110
  i("div", Gn, [
2111
2111
  i("div", Qn, [
2112
- w(xn, {
2112
+ g.value.cameras.length > 1 ? (v(), V(xn, {
2113
+ key: 0,
2113
2114
  "apartment-chooser-data": g.value,
2114
2115
  "current-camera": t.value,
2115
- disabled: v.value,
2116
+ disabled: m.value,
2116
2117
  onOnCameraChange: _
2117
- }, null, 8, ["apartment-chooser-data", "current-camera", "disabled"])
2118
+ }, null, 8, ["apartment-chooser-data", "current-camera", "disabled"])) : $("", !0)
2118
2119
  ]),
2119
2120
  i("div", qn, [
2120
- w(Dn, {
2121
+ t.value.sunsimDayOfYear.length > 1 ? (v(), V(Dn, {
2122
+ key: 0,
2121
2123
  "camera-data": t.value,
2122
2124
  "current-day": o.value,
2123
- disabled: v.value,
2125
+ disabled: m.value,
2124
2126
  onOnDayChange: j
2125
- }, null, 8, ["camera-data", "current-day", "disabled"])
2127
+ }, null, 8, ["camera-data", "current-day", "disabled"])) : $("", !0)
2126
2128
  ]),
2127
2129
  i("div", Zn, [
2128
- w(Bn, {
2130
+ o.value.timeSamples.length > 1 ? (v(), V(Bn, {
2131
+ key: 0,
2129
2132
  "day-data": o.value,
2130
2133
  "current-time": r.value,
2131
- disabled: v.value,
2134
+ disabled: m.value,
2132
2135
  onOnTimeChange: L
2133
- }, null, 8, ["day-data", "current-time", "disabled"])
2136
+ }, null, 8, ["day-data", "current-time", "disabled"])) : $("", !0)
2134
2137
  ])
2135
2138
  ]),
2136
2139
  i("div", Jn, [
@@ -2138,13 +2141,13 @@ const Nn = (c) => {
2138
2141
  ref_key: "rotator",
2139
2142
  ref: b,
2140
2143
  "apartment-chooser-data": g.value,
2141
- "current-scene": m.value,
2144
+ "current-scene": p.value,
2142
2145
  "selected-id": M.selectedId,
2143
2146
  "render-display": e.renderDisplay,
2144
2147
  onOnDisplayClick: E,
2145
2148
  onOnSceneChange: Y,
2146
- onOnRotateStart: B[0] || (B[0] = (te) => v.value = !0),
2147
- onOnRotateFinish: B[1] || (B[1] = (te) => v.value = !1)
2149
+ onOnRotateStart: R[0] || (R[0] = (te) => m.value = !0),
2150
+ onOnRotateFinish: R[1] || (R[1] = (te) => m.value = !1)
2148
2151
  }, null, 8, ["apartment-chooser-data", "current-scene", "selected-id", "render-display"])
2149
2152
  ]),
2150
2153
  i("div", Xn, [
@@ -2154,23 +2157,23 @@ const Nn = (c) => {
2154
2157
  ]),
2155
2158
  w(Ze, { position: "relative" }, {
2156
2159
  default: C(() => [
2157
- (f(!0), D(ce, null, me(x.value, (te) => (f(), R(An, {
2160
+ (v(!0), D(ce, null, me(x.value, (te) => (v(), V(An, {
2158
2161
  key: te.overlayFilename,
2159
2162
  "camera-data": te,
2160
2163
  "cdn-file-resolver": e.cdnFileResolver,
2161
2164
  "current-time": r.value
2162
2165
  }, null, 8, ["camera-data", "cdn-file-resolver", "current-time"]))), 128)),
2163
- (f(!0), D(ce, null, me(O.value, (te) => (f(), R(Fn, {
2166
+ (v(!0), D(ce, null, me(O.value, (te) => (v(), V(Fn, {
2164
2167
  "transition-data": te,
2165
2168
  "cdn-file-resolver": e.cdnFileResolver,
2166
2169
  "current-transition": l.value
2167
2170
  }, null, 8, ["transition-data", "cdn-file-resolver", "current-transition"]))), 256)),
2168
- e.customOverlayContent ? (f(), D("div", {
2171
+ e.customOverlayContent ? (v(), D("div", {
2169
2172
  key: 0,
2170
2173
  class: "w-100 h-100 position-absolute top-left",
2171
2174
  style: { "z-index": "6", "pointer-events": "none" },
2172
2175
  innerHTML: e.customOverlayContent
2173
- }, null, 8, Kn)) : U("", !0),
2176
+ }, null, 8, Kn)) : $("", !0),
2174
2177
  ve(w(Un, {
2175
2178
  "cdn-file-resolver": M.cdnFileResolver,
2176
2179
  "color-callback": e.colorCallback,
@@ -2179,25 +2182,25 @@ const Nn = (c) => {
2179
2182
  onOnClick: E,
2180
2183
  onOnHoverOver: z,
2181
2184
  onOnHoverOut: W,
2182
- onUpdateSvgContainer: B[2] || (B[2] = (te) => F.value = te)
2185
+ onUpdateSvgContainer: R[2] || (R[2] = (te) => F.value = te)
2183
2186
  }, null, 8, ["cdn-file-resolver", "color-callback", "current-camera", "selected-id"]), [
2184
2187
  [fe, l.value === null]
2185
2188
  ])
2186
2189
  ]),
2187
2190
  _: 1
2188
2191
  }),
2189
- M.$slots.popup && y.value && u.value ? (f(), R(qe, {
2192
+ M.$slots.popup && y.value && u.value ? (v(), V(qe, {
2190
2193
  key: 0,
2191
- "is-hoverable": p.value,
2194
+ "is-hoverable": f.value,
2192
2195
  pos: y.value
2193
2196
  }, {
2194
2197
  default: C(() => [
2195
2198
  i("div", ea, [
2196
- K(M.$slots, "popup", tt(nt({ hoverId: u.value, hoverable: p.value })), void 0, !0)
2199
+ K(M.$slots, "popup", tt(nt({ hoverId: u.value, hoverable: f.value })), void 0, !0)
2197
2200
  ])
2198
2201
  ]),
2199
2202
  _: 3
2200
- }, 8, ["is-hoverable", "pos"])) : U("", !0)
2203
+ }, 8, ["is-hoverable", "pos"])) : $("", !0)
2201
2204
  ], 34)
2202
2205
  ]),
2203
2206
  _: 3
@@ -2212,7 +2215,7 @@ const Nn = (c) => {
2212
2215
  ], 64);
2213
2216
  };
2214
2217
  }
2215
- }), Qs = /* @__PURE__ */ J(ta, [["__scopeId", "data-v-31bf26fc"]]), na = { class: "sunsim-bar-wrapper" }, aa = { class: "sunsim-date d-flex align-center pl-5 pr-5" }, oa = {
2218
+ }), Qs = /* @__PURE__ */ J(ta, [["__scopeId", "data-v-d5f29d09"]]), na = { class: "sunsim-bar-wrapper" }, aa = { class: "sunsim-date d-flex align-center pl-5 pr-5" }, oa = {
2216
2219
  key: 1,
2217
2220
  class: "text-center text-body-1"
2218
2221
  }, la = { class: "sunsim-wrapper d-flex align-center px-3" }, sa = { class: "sunsim-time-label text-body-1 font-weight-normal ml-2" }, ia = /* @__PURE__ */ P({
@@ -2232,20 +2235,20 @@ const Nn = (c) => {
2232
2235
  });
2233
2236
  }
2234
2237
  const l = T(() => {
2235
- const s = Math.floor(t.value / 2).toString().padStart(2, "0"), v = t.value % 2 === 0 ? "00" : "30";
2236
- return `${s}:${v}`;
2237
- }), m = T(() => e.dateSelector.dates.map(r)), u = T({
2238
+ const s = Math.floor(t.value / 2).toString().padStart(2, "0"), m = t.value % 2 === 0 ? "00" : "30";
2239
+ return `${s}:${m}`;
2240
+ }), p = T(() => e.dateSelector.dates.map(r)), u = T({
2238
2241
  get() {
2239
2242
  return r(e.dateSelector.selectedDate);
2240
2243
  },
2241
2244
  set(s) {
2242
- e.dateSelector.selectIndex(m.value.indexOf(s));
2245
+ e.dateSelector.selectIndex(p.value.indexOf(s));
2243
2246
  }
2244
2247
  });
2245
2248
  return H(t, (s) => {
2246
2249
  a("update:modelValue", s);
2247
2250
  }), H(o, (s) => {
2248
- e.dateSelector.selectIndex(m.value.indexOf(s));
2251
+ e.dateSelector.selectIndex(p.value.indexOf(s));
2249
2252
  }), H(
2250
2253
  () => e.modelValue,
2251
2254
  (s) => {
@@ -2253,25 +2256,25 @@ const Nn = (c) => {
2253
2256
  }
2254
2257
  ), Ie(() => {
2255
2258
  o.value = r(e.dateSelector.selectedDate);
2256
- }), (s, v) => {
2257
- const b = V("v-icon"), h = V("v-select"), p = V("v-progress-linear"), y = V("v-slider");
2258
- return f(), D("div", na, [
2259
+ }), (s, m) => {
2260
+ const b = B("v-icon"), h = B("v-select"), f = B("v-progress-linear"), y = B("v-slider");
2261
+ return v(), D("div", na, [
2259
2262
  i("div", aa, [
2260
2263
  w(b, {
2261
2264
  color: "black",
2262
2265
  class: "mr-2",
2263
2266
  icon: "mdi-calendar-blank-outline"
2264
2267
  }),
2265
- s.dateSelector.hasMultipleDates ? (f(), R(h, {
2268
+ s.dateSelector.hasMultipleDates ? (v(), V(h, {
2266
2269
  key: 0,
2267
2270
  modelValue: o.value,
2268
- "onUpdate:modelValue": v[0] || (v[0] = (F) => o.value = F),
2269
- items: m.value,
2271
+ "onUpdate:modelValue": m[0] || (m[0] = (F) => o.value = F),
2272
+ items: p.value,
2270
2273
  density: "compact",
2271
2274
  variant: "underlined",
2272
2275
  "hide-details": "",
2273
2276
  class: "day-selector"
2274
- }, null, 8, ["modelValue", "items"])) : (f(), D("span", oa, Q(u.value), 1))
2277
+ }, null, 8, ["modelValue", "items"])) : (v(), D("span", oa, Q(u.value), 1))
2275
2278
  ]),
2276
2279
  i("div", la, [
2277
2280
  i("span", sa, Q(l.value), 1),
@@ -2284,7 +2287,7 @@ const Nn = (c) => {
2284
2287
  ]),
2285
2288
  _: 1
2286
2289
  }),
2287
- s.isLoading ? (f(), R(p, {
2290
+ s.isLoading ? (v(), V(f, {
2288
2291
  key: 0,
2289
2292
  style: { left: 0, transform: "none" },
2290
2293
  indeterminate: "",
@@ -2292,10 +2295,10 @@ const Nn = (c) => {
2292
2295
  height: "6",
2293
2296
  color: "grey lighten-1",
2294
2297
  class: "mr-2"
2295
- })) : (f(), R(y, {
2298
+ })) : (v(), V(y, {
2296
2299
  key: 1,
2297
2300
  modelValue: t.value,
2298
- "onUpdate:modelValue": v[1] || (v[1] = (F) => t.value = F),
2301
+ "onUpdate:modelValue": m[1] || (m[1] = (F) => t.value = F),
2299
2302
  min: 0,
2300
2303
  max: 47,
2301
2304
  step: 1,
@@ -2323,27 +2326,27 @@ const Nn = (c) => {
2323
2326
  H(
2324
2327
  () => e.imageUrls,
2325
2328
  (u) => {
2326
- a("reset"), m(u);
2329
+ a("reset"), p(u);
2327
2330
  }
2328
2331
  ), de(() => {
2329
- m(e.imageUrls), new ResizeObserver((u) => {
2332
+ p(e.imageUrls), new ResizeObserver((u) => {
2330
2333
  window.requestAnimationFrame(() => {
2331
- const s = u[0].contentRect.width, v = u[0].contentRect.height;
2332
- a("resize", { width: s, height: v });
2334
+ const s = u[0].contentRect.width, m = u[0].contentRect.height;
2335
+ a("resize", { width: s, height: m });
2333
2336
  });
2334
2337
  }).observe(r.value);
2335
2338
  });
2336
2339
  function l() {
2337
2340
  t.value = "preloaded", a("preloaded");
2338
2341
  }
2339
- function m(u) {
2342
+ function p(u) {
2340
2343
  t.value = "init", r.value.src = u[0], o.value = new lt(u.length).onLoadFinished(
2341
2344
  () => {
2342
2345
  t.value = "loaded", a("ready");
2343
2346
  }
2344
2347
  );
2345
2348
  }
2346
- return (u, s) => (f(), D("div", null, [
2349
+ return (u, s) => (v(), D("div", null, [
2347
2350
  i("img", {
2348
2351
  ref_key: "baseImage",
2349
2352
  ref: r,
@@ -2351,16 +2354,16 @@ const Nn = (c) => {
2351
2354
  style: { opacity: 1, borderRadius: 50 },
2352
2355
  onLoad: l
2353
2356
  }, null, 544),
2354
- t.value === "preloaded" || t.value === "loaded" ? ve((f(), D("div", ra, [
2355
- (f(!0), D(ce, null, me(u.imageUrls, (v, b) => (f(), D("img", {
2357
+ t.value === "preloaded" || t.value === "loaded" ? ve((v(), D("div", ra, [
2358
+ (v(!0), D(ce, null, me(u.imageUrls, (m, b) => (v(), D("img", {
2356
2359
  key: b,
2357
2360
  class: he({ "image-instance": !0, active: b === u.activeIndex }),
2358
- src: v,
2361
+ src: m,
2359
2362
  onLoad: s[0] || (s[0] = (h) => o.value.partLoaded())
2360
2363
  }, null, 42, ua))), 128))
2361
2364
  ], 512)), [
2362
2365
  [fe, t.value === "loaded"]
2363
- ]) : U("", !0)
2366
+ ]) : $("", !0)
2364
2367
  ]));
2365
2368
  }
2366
2369
  }), kt = /* @__PURE__ */ J(ca, [["__scopeId", "data-v-8d357c5f"]]), da = {
@@ -2394,9 +2397,9 @@ const Nn = (c) => {
2394
2397
  }), o = d({
2395
2398
  width: 0,
2396
2399
  height: 0
2397
- }), r = d({ x: 0, y: 0, width: 0, height: 0 }), l = d(), m = d(
2400
+ }), r = d({ x: 0, y: 0, width: 0, height: 0 }), l = d(), p = d(
2398
2401
  (/* @__PURE__ */ new Date()).getHours() * 2 + ((/* @__PURE__ */ new Date()).getMinutes() < 30 ? 0 : 1)
2399
- ), u = d(!1), s = d(new ye()), v = d(), b = d("0 0 0 0"), h = d(), p = d(), y = d(Ye.empty()), F = d(Pe.empty()), A = d(), g = T(() => A.value.isHoverEnabled);
2402
+ ), u = d(!1), s = d(new ye()), m = d(), b = d("0 0 0 0"), h = d(), f = d(), y = d(Ye.empty()), F = d(Pe.empty()), A = d(), g = T(() => A.value.isHoverEnabled);
2400
2403
  H(l, (L, E) => {
2401
2404
  L ? a("hoverOverBuilding", L) : a("hoverOutBuilding", E);
2402
2405
  }), Ie(() => {
@@ -2404,7 +2407,7 @@ const Nn = (c) => {
2404
2407
  const [L, E, z] = /^(\d\d):(\d\d)$/.exec(
2405
2408
  e.buildingChooserTimeOfDay
2406
2409
  ), W = parseInt(z);
2407
- m.value = parseInt(E) * 2 + (W < 15 ? 0 : W > 45 ? 2 : 1);
2410
+ p.value = parseInt(E) * 2 + (W < 15 ? 0 : W > 45 ? 2 : 1);
2408
2411
  }
2409
2412
  }), de(async () => {
2410
2413
  const E = await new bt(
@@ -2413,7 +2416,7 @@ const Nn = (c) => {
2413
2416
  e.buildingChooserData
2414
2417
  );
2415
2418
  if (E) {
2416
- F.value = new Pe(E.mapImage), y.value = new Ye(E.buildingIds), h.value = new at(E.backgrounds), p.value = {
2419
+ F.value = new Pe(E.mapImage), y.value = new Ye(E.buildingIds), h.value = new at(E.backgrounds), f.value = {
2417
2420
  buildingOverlays: E.buildingOverlays,
2418
2421
  viewLongitude: E.viewLongitude
2419
2422
  };
@@ -2426,11 +2429,11 @@ const Nn = (c) => {
2426
2429
  svg: q.innerHTML
2427
2430
  });
2428
2431
  });
2429
- v.value = z;
2432
+ m.value = z;
2430
2433
  } else
2431
2434
  u.value = !0;
2432
2435
  });
2433
- function $({ width: L, height: E }) {
2436
+ function U({ width: L, height: E }) {
2434
2437
  o.value.width = L, o.value.height = E;
2435
2438
  }
2436
2439
  function x() {
@@ -2449,9 +2452,9 @@ const Nn = (c) => {
2449
2452
  L === l.value ? "hover" : "idle"
2450
2453
  );
2451
2454
  if (E) {
2452
- const { r: z, g: W, b: re, a: M, s: B } = E;
2455
+ const { r: z, g: W, b: re, a: M, s: R } = E;
2453
2456
  return {
2454
- strokeWidth: B !== void 0 ? B : 2,
2457
+ strokeWidth: R !== void 0 ? R : 2,
2455
2458
  stroke: `rgb(${z}, ${W}, ${re})`,
2456
2459
  strokeOpacity: 1,
2457
2460
  fill: `rgb(${z}, ${W}, ${re})`,
@@ -2499,15 +2502,15 @@ const Nn = (c) => {
2499
2502
  l.value = L, g.value && l.value && e.canGoToBuildingCallback(l.value) && a("goToBuilding", l.value);
2500
2503
  }
2501
2504
  return (L, E) => {
2502
- const z = V("v-icon");
2503
- return u.value ? (f(), D("div", da, [
2505
+ const z = B("v-icon");
2506
+ return u.value ? (v(), D("div", da, [
2504
2507
  w(z, { "x-large": "" }, {
2505
2508
  default: C(() => [
2506
2509
  ee("mdi-alert-circle-outline")
2507
2510
  ]),
2508
2511
  _: 1
2509
2512
  })
2510
- ])) : p.value ? (f(), D("div", {
2513
+ ])) : f.value ? (v(), D("div", {
2511
2514
  key: 1,
2512
2515
  style: se(`height: ${o.value.height}px; position: relative`),
2513
2516
  class: "image-container"
@@ -2520,31 +2523,31 @@ const Nn = (c) => {
2520
2523
  i("div", va, [
2521
2524
  w(kt, {
2522
2525
  "image-urls": h.value.imageUrls,
2523
- "active-index": m.value,
2524
- onResize: $,
2526
+ "active-index": p.value,
2527
+ onResize: U,
2525
2528
  onPreloaded: E[0] || (E[0] = (W) => t.value.preloaded = !0),
2526
2529
  onReady: E[1] || (E[1] = (W) => t.value.ready = !0),
2527
2530
  onReset: x
2528
2531
  }, null, 8, ["image-urls", "active-index"]),
2529
- v.value ? ve((f(), D("div", ma, [
2532
+ m.value ? ve((v(), D("div", ma, [
2530
2533
  i("div", pa, [
2531
- (f(), D("svg", { viewBox: b.value }, [
2532
- (f(!0), D(ce, null, me(v.value, ({ id: W, svg: re }, M) => (f(), D("g", {
2534
+ (v(), D("svg", { viewBox: b.value }, [
2535
+ (v(!0), D(ce, null, me(m.value, ({ id: W, svg: re }, M) => (v(), D("g", {
2533
2536
  key: M,
2534
2537
  innerHTML: re,
2535
2538
  "data-building-id": W,
2536
2539
  class: he(O(W)),
2537
2540
  style: se(I(W)),
2538
- onMouseover: (B) => _(B, W),
2539
- onMouseout: (B) => Y(B, W),
2540
- onMousemove: (B) => S(B),
2541
- onClick: (B) => j(W)
2541
+ onMouseover: (R) => _(R, W),
2542
+ onMouseout: (R) => Y(R, W),
2543
+ onMousemove: (R) => S(R),
2544
+ onClick: (R) => j(W)
2542
2545
  }, null, 46, ha))), 128))
2543
2546
  ], 8, fa))
2544
2547
  ])
2545
2548
  ], 512)), [
2546
2549
  [fe, t.value.preloaded]
2547
- ]) : U("", !0),
2550
+ ]) : $("", !0),
2548
2551
  ve(i("div", {
2549
2552
  class: "custom-overlay-layer",
2550
2553
  innerHTML: L.customOverlayContent
@@ -2556,21 +2559,21 @@ const Nn = (c) => {
2556
2559
  _: 1
2557
2560
  }, 8, ["desktop", "mobile"]),
2558
2561
  ve(i("div", null, [
2559
- p.value.viewLongitude ? (f(), R(Je, {
2562
+ f.value.viewLongitude ? (v(), V(Je, {
2560
2563
  key: 0,
2561
2564
  class: "north-indicator",
2562
- longitude: p.value.viewLongitude
2563
- }, null, 8, ["longitude"])) : U("", !0),
2565
+ longitude: f.value.viewLongitude
2566
+ }, null, 8, ["longitude"])) : $("", !0),
2564
2567
  w(wt, {
2565
- modelValue: m.value,
2566
- "onUpdate:modelValue": E[2] || (E[2] = (W) => m.value = W),
2568
+ modelValue: p.value,
2569
+ "onUpdate:modelValue": E[2] || (E[2] = (W) => p.value = W),
2567
2570
  "date-selector": h.value,
2568
2571
  "is-loading": !t.value.ready
2569
2572
  }, null, 8, ["modelValue", "date-selector", "is-loading"])
2570
2573
  ], 512), [
2571
2574
  [fe, t.value.preloaded]
2572
2575
  ]),
2573
- L.showCards && l.value ? (f(), R(qe, {
2576
+ L.showCards && l.value ? (v(), V(qe, {
2574
2577
  key: 0,
2575
2578
  "is-hoverable": g.value,
2576
2579
  pos: r.value,
@@ -2587,12 +2590,12 @@ const Nn = (c) => {
2587
2590
  }, void 0, !0)
2588
2591
  ]),
2589
2592
  _: 3
2590
- }, 8, ["is-hoverable", "pos"])) : U("", !0),
2593
+ }, 8, ["is-hoverable", "pos"])) : $("", !0),
2591
2594
  w(Re, {
2592
2595
  ref_key: "hoverProbe",
2593
2596
  ref: A
2594
2597
  }, null, 512)
2595
- ], 4)) : U("", !0);
2598
+ ], 4)) : $("", !0);
2596
2599
  };
2597
2600
  }
2598
2601
  }), _a = /* @__PURE__ */ J(ya, [["__scopeId", "data-v-5e1006a9"]]), ba = /* @__PURE__ */ P({
@@ -2607,11 +2610,11 @@ const Nn = (c) => {
2607
2610
  n({
2608
2611
  setupDraw: s
2609
2612
  });
2610
- const a = d(!1), t = d(), o = d(new ye()), r = d(), l = d(), m = d([]), u = d();
2613
+ const a = d(!1), t = d(), o = d(new ye()), r = d(), l = d(), p = d([]), u = d();
2611
2614
  H(
2612
2615
  () => e.color,
2613
- (h, p) => {
2614
- (h.r !== p.r || h.g !== p.g || h.b !== p.b || h.a !== p.a) && v();
2616
+ (h, f) => {
2617
+ (h.r !== f.r || h.g !== f.g || h.b !== f.b || h.a !== f.a) && m();
2615
2618
  }
2616
2619
  ), de(async () => {
2617
2620
  t.value = await o.value.loadImage(e.imageUrl), s();
@@ -2619,25 +2622,25 @@ const Nn = (c) => {
2619
2622
  function s() {
2620
2623
  if (!t.value || !u.value)
2621
2624
  return;
2622
- const { width: h, height: p } = e.dimensions;
2623
- if (!(h === 0 || p === 0)) {
2625
+ const { width: h, height: f } = e.dimensions;
2626
+ if (!(h === 0 || f === 0)) {
2624
2627
  r.value = u.value.getContext("2d", {
2625
2628
  willReadFrequently: !0
2626
- }), r.value.drawImage(t.value, 0, 0, h, p), l.value = r.value.getImageData(0, 0, h, p);
2629
+ }), r.value.drawImage(t.value, 0, 0, h, f), l.value = r.value.getImageData(0, 0, h, f);
2627
2630
  for (let y = 3; y < l.value.data.length; y += 4)
2628
- l.value.data[y] !== 0 && m.value.push(y);
2629
- v(), a.value = !0;
2631
+ l.value.data[y] !== 0 && p.value.push(y);
2632
+ m(), a.value = !0;
2630
2633
  }
2631
2634
  }
2632
- function v() {
2635
+ function m() {
2633
2636
  r.value && l.value && (b(), r.value.putImageData(l.value, 0, 0));
2634
2637
  }
2635
2638
  function b() {
2636
2639
  if (e.color)
2637
- for (let h = 0; h < m.value.length; h++)
2638
- l.value.data[m.value[h] - 3] = e.color.r, l.value.data[m.value[h] - 2] = e.color.g, l.value.data[m.value[h] - 1] = e.color.b, l.value.data[m.value[h]] = e.color.a;
2640
+ for (let h = 0; h < p.value.length; h++)
2641
+ l.value.data[p.value[h] - 3] = e.color.r, l.value.data[p.value[h] - 2] = e.color.g, l.value.data[p.value[h] - 1] = e.color.b, l.value.data[p.value[h]] = e.color.a;
2639
2642
  }
2640
- return (h, p) => (f(), D("canvas", _e({
2643
+ return (h, f) => (v(), D("canvas", _e({
2641
2644
  ref_key: "canvas",
2642
2645
  ref: u,
2643
2646
  class: "overlay"
@@ -2674,11 +2677,11 @@ const Nn = (c) => {
2674
2677
  }), r = d({
2675
2678
  width: 0,
2676
2679
  height: 0
2677
- }), l = d({ x: 0, y: 0, width: 0, height: 0 }), m = d(), u = d(Ye.empty()), s = d(Pe.empty()), v = d(), b = d(
2680
+ }), l = d({ x: 0, y: 0, width: 0, height: 0 }), p = d(), u = d(Ye.empty()), s = d(Pe.empty()), m = d(), b = d(
2678
2681
  (/* @__PURE__ */ new Date()).getHours() * 2 + ((/* @__PURE__ */ new Date()).getMinutes() < 30 ? 0 : 1)
2679
2682
  ), h = d(
2680
2683
  (L, E) => ({ x: L, y: E })
2681
- ), p = d(!1), y = d(), F = d(), A = d(), g = T(() => {
2684
+ ), f = d(!1), y = d(), F = d(), A = d(), g = T(() => {
2682
2685
  var L;
2683
2686
  return (L = y.value) == null ? void 0 : L.isHoverEnabled;
2684
2687
  });
@@ -2689,7 +2692,7 @@ const Nn = (c) => {
2689
2692
  ), W = parseInt(z);
2690
2693
  b.value = parseInt(E) * 2 + (W < 15 ? 0 : W > 45 ? 2 : 1);
2691
2694
  }
2692
- }), H(v, (L, E) => {
2695
+ }), H(m, (L, E) => {
2693
2696
  L ? a("hoverOverBuilding", L) : a("hoverOutBuilding", E);
2694
2697
  }), de(async () => {
2695
2698
  const E = await new bt(
@@ -2697,12 +2700,12 @@ const Nn = (c) => {
2697
2700
  ).loadBuildingChooser(
2698
2701
  e.buildingChooserData
2699
2702
  );
2700
- E ? (s.value = new Pe(E.mapImage), u.value = new Ye(E.buildingIds), t.value = new at(E.backgrounds), m.value = {
2703
+ E ? (s.value = new Pe(E.mapImage), u.value = new Ye(E.buildingIds), t.value = new at(E.backgrounds), p.value = {
2701
2704
  buildingOverlays: E.buildingOverlays,
2702
2705
  viewLongitude: E.viewLongitude
2703
- }, I()) : p.value = !0;
2706
+ }, I()) : f.value = !0;
2704
2707
  });
2705
- function $({ width: L, height: E }) {
2708
+ function U({ width: L, height: E }) {
2706
2709
  r.value.width = L, r.value.height = E, Se(I);
2707
2710
  }
2708
2711
  function x() {
@@ -2723,7 +2726,7 @@ const Nn = (c) => {
2723
2726
  }
2724
2727
  function _(L) {
2725
2728
  const { layerX: E, layerY: z } = L;
2726
- g.value && (v.value = O(L), v.value !== void 0 && (l.value = {
2729
+ g.value && (m.value = O(L), m.value !== void 0 && (l.value = {
2727
2730
  x: E,
2728
2731
  y: z,
2729
2732
  width: r.value.width,
@@ -2731,29 +2734,29 @@ const Nn = (c) => {
2731
2734
  }));
2732
2735
  }
2733
2736
  function Y(L) {
2734
- v.value = O(L), g.value && v.value && a("goToBuilding", v.value);
2737
+ m.value = O(L), g.value && m.value && a("goToBuilding", m.value);
2735
2738
  }
2736
2739
  function S(L) {
2737
2740
  return e.colorCallback(
2738
2741
  L,
2739
- L === v.value ? "hover" : "idle"
2742
+ L === m.value ? "hover" : "idle"
2740
2743
  );
2741
2744
  }
2742
2745
  function j({ resolve: L }) {
2743
2746
  h.value = L;
2744
2747
  }
2745
2748
  return (L, E) => {
2746
- const z = V("v-icon");
2747
- return p.value ? (f(), D("div", ka, [
2749
+ const z = B("v-icon");
2750
+ return f.value ? (v(), D("div", ka, [
2748
2751
  w(z, { "x-large": "" }, {
2749
2752
  default: C(() => [
2750
2753
  ee("mdi-alert-circle-outline")
2751
2754
  ]),
2752
2755
  _: 1
2753
2756
  })
2754
- ])) : m.value ? (f(), D("div", {
2757
+ ])) : p.value ? (v(), D("div", {
2755
2758
  key: 1,
2756
- style: se(`cursor: ${v.value ? "pointer" : "auto"};height: ${r.value.height}px; position: relative`),
2759
+ style: se(`cursor: ${m.value ? "pointer" : "auto"};height: ${r.value.height}px; position: relative`),
2757
2760
  class: "image-container"
2758
2761
  }, [
2759
2762
  w(Ze, {
@@ -2766,13 +2769,13 @@ const Nn = (c) => {
2766
2769
  w(kt, {
2767
2770
  "image-urls": t.value.imageUrls,
2768
2771
  "active-index": b.value,
2769
- onResize: $,
2772
+ onResize: U,
2770
2773
  onPreloaded: E[0] || (E[0] = (W) => o.value.preloaded = !0),
2771
2774
  onReady: E[1] || (E[1] = (W) => o.value.ready = !0),
2772
2775
  onReset: x
2773
2776
  }, null, 8, ["image-urls", "active-index"]),
2774
2777
  ve(i("div", null, [
2775
- (f(!0), D(ce, null, me(m.value.buildingOverlays, (W) => (f(), R(wa, {
2778
+ (v(!0), D(ce, null, me(p.value.buildingOverlays, (W) => (v(), V(wa, {
2776
2779
  ref_for: !0,
2777
2780
  ref_key: "overlays",
2778
2781
  ref: A,
@@ -2788,7 +2791,7 @@ const Nn = (c) => {
2788
2791
  i("canvas", _e(r.value, {
2789
2792
  ref_key: "canvas",
2790
2793
  ref: F,
2791
- class: { hover: !!v.value },
2794
+ class: { hover: !!m.value },
2792
2795
  onClick: Y,
2793
2796
  onMousemove: _
2794
2797
  }), null, 16),
@@ -2802,11 +2805,11 @@ const Nn = (c) => {
2802
2805
  _: 1
2803
2806
  }, 8, ["desktop", "mobile"]),
2804
2807
  ve(i("div", null, [
2805
- m.value.viewLongitude ? (f(), R(Je, {
2808
+ p.value.viewLongitude ? (v(), V(Je, {
2806
2809
  key: 0,
2807
2810
  class: "north-indicator",
2808
- longitude: m.value.viewLongitude
2809
- }, null, 8, ["longitude"])) : U("", !0),
2811
+ longitude: p.value.viewLongitude
2812
+ }, null, 8, ["longitude"])) : $("", !0),
2810
2813
  w(wt, {
2811
2814
  modelValue: b.value,
2812
2815
  "onUpdate:modelValue": E[2] || (E[2] = (W) => b.value = W),
@@ -2816,29 +2819,29 @@ const Nn = (c) => {
2816
2819
  ], 512), [
2817
2820
  [fe, o.value.preloaded]
2818
2821
  ]),
2819
- L.showCards && v.value ? (f(), R(qe, {
2822
+ L.showCards && m.value ? (v(), V(qe, {
2820
2823
  key: 0,
2821
2824
  "is-hoverable": g.value,
2822
2825
  pos: l.value,
2823
- onOutside: E[3] || (E[3] = () => v.value = void 0)
2826
+ onOutside: E[3] || (E[3] = () => m.value = void 0)
2824
2827
  }, {
2825
2828
  default: C(() => [
2826
2829
  K(L.$slots, "default", {
2827
- building: v.value,
2828
- canGoToBuilding: L.canGoToBuildingCallback(v.value),
2829
- goToBuilding: () => L.canGoToBuildingCallback(v.value) && a("goToBuilding", v.value),
2830
+ building: m.value,
2831
+ canGoToBuilding: L.canGoToBuildingCallback(m.value),
2832
+ goToBuilding: () => L.canGoToBuildingCallback(m.value) && a("goToBuilding", m.value),
2830
2833
  pos: l.value,
2831
2834
  isHoverable: g.value,
2832
- close: () => v.value = void 0
2835
+ close: () => m.value = void 0
2833
2836
  }, void 0, !0)
2834
2837
  ]),
2835
2838
  _: 3
2836
- }, 8, ["is-hoverable", "pos"])) : U("", !0),
2839
+ }, 8, ["is-hoverable", "pos"])) : $("", !0),
2837
2840
  w(Re, {
2838
2841
  ref_key: "hoverProbe",
2839
2842
  ref: y
2840
2843
  }, null, 512)
2841
- ], 4)) : U("", !0);
2844
+ ], 4)) : $("", !0);
2842
2845
  };
2843
2846
  }
2844
2847
  }), Sa = /* @__PURE__ */ J(Aa, [["__scopeId", "data-v-088f521e"]]), La = /* @__PURE__ */ P({
@@ -2861,7 +2864,7 @@ const Nn = (c) => {
2861
2864
  const e = c, a = n, t = T(
2862
2865
  () => e.useSvg ? _a : Sa
2863
2866
  );
2864
- return (o, r) => (f(), R(ht(t.value), {
2867
+ return (o, r) => (v(), V(ht(t.value), {
2865
2868
  "i18n-config": e.i18nConfig,
2866
2869
  "show-cards": e.showCards,
2867
2870
  "color-callback": e.colorCallback,
@@ -2878,8 +2881,8 @@ const Nn = (c) => {
2878
2881
  }, Et({ _: 2 }, [
2879
2882
  me(Object.keys(o.$slots), (l) => ({
2880
2883
  name: l,
2881
- fn: C((m) => [
2882
- K(o.$slots, l, tt(nt(m)))
2884
+ fn: C((p) => [
2885
+ K(o.$slots, l, tt(nt(p)))
2883
2886
  ])
2884
2887
  }))
2885
2888
  ]), 1064, ["i18n-config", "show-cards", "color-callback", "cdn-file-resolver", "interactive-desktop", "interactive-mobile", "building-chooser-time-of-day", "can-go-to-building-callback", "custom-overlay-content", "building-chooser-data"]));
@@ -2893,7 +2896,7 @@ const Nn = (c) => {
2893
2896
  },
2894
2897
  setup(c) {
2895
2898
  const n = c, e = T(() => ie(n.cdnFileResolver, n.timeSampleData.filename));
2896
- return (a, t) => ve((f(), D("img", {
2899
+ return (a, t) => ve((v(), D("img", {
2897
2900
  key: e.value,
2898
2901
  src: e.value,
2899
2902
  width: "100%"
@@ -2910,7 +2913,7 @@ const Nn = (c) => {
2910
2913
  },
2911
2914
  setup(c) {
2912
2915
  const n = c;
2913
- return (e, a) => (f(!0), D(ce, null, me(n.dayData.timeSamples, (t) => (f(), R(Da, {
2916
+ return (e, a) => (v(!0), D(ce, null, me(n.dayData.timeSamples, (t) => (v(), V(Da, {
2914
2917
  "time-sample-data": t,
2915
2918
  "cdn-file-resolver": n.cdnFileResolver,
2916
2919
  "current-time": e.currentTime
@@ -2925,7 +2928,7 @@ const Nn = (c) => {
2925
2928
  },
2926
2929
  setup(c) {
2927
2930
  const n = c;
2928
- return (e, a) => (f(!0), D(ce, null, me(n.cameraData.sunsimDayOfYear, (t) => (f(), R(Ma, {
2931
+ return (e, a) => (v(!0), D(ce, null, me(n.cameraData.sunsimDayOfYear, (t) => (v(), V(Ma, {
2929
2932
  "day-data": t,
2930
2933
  "cdn-file-resolver": n.cdnFileResolver,
2931
2934
  "current-time": n.currentTime
@@ -2950,10 +2953,10 @@ const Nn = (c) => {
2950
2953
  )
2951
2954
  );
2952
2955
  }), (o, r) => {
2953
- const l = V("v-select");
2954
- return f(), R(l, {
2956
+ const l = B("v-select");
2957
+ return v(), V(l, {
2955
2958
  modelValue: t.value,
2956
- "onUpdate:modelValue": r[0] || (r[0] = (m) => t.value = m),
2959
+ "onUpdate:modelValue": r[0] || (r[0] = (p) => t.value = p),
2957
2960
  items: e.buildingChooserData.cameras,
2958
2961
  "item-title": "cameraName",
2959
2962
  "item-value": "overlayFilename",
@@ -2993,8 +2996,8 @@ const Nn = (c) => {
2993
2996
  });
2994
2997
  }
2995
2998
  return (r, l) => {
2996
- const m = V("v-list-item"), u = V("v-select");
2997
- return f(), R(u, {
2999
+ const p = B("v-list-item"), u = B("v-select");
3000
+ return v(), V(u, {
2998
3001
  modelValue: t.value,
2999
3002
  "onUpdate:modelValue": l[0] || (l[0] = (s) => t.value = s),
3000
3003
  items: e.cameraData.sunsimDayOfYear,
@@ -3005,7 +3008,7 @@ const Nn = (c) => {
3005
3008
  "hide-details": ""
3006
3009
  }, {
3007
3010
  item: C(({ props: s }) => [
3008
- w(m, _e(s, {
3011
+ w(p, _e(s, {
3009
3012
  title: o(s.title)
3010
3013
  }), null, 16, ["title"])
3011
3014
  ]),
@@ -3037,13 +3040,13 @@ const Nn = (c) => {
3037
3040
  a(
3038
3041
  "onTimeChange",
3039
3042
  e.dayData.timeSamples.find(
3040
- (m) => m.timeInHours === t.value
3043
+ (p) => p.timeInHours === t.value
3041
3044
  )
3042
3045
  );
3043
3046
  });
3044
- function r(m) {
3045
- const u = m * 60, s = u / 60, v = u % 60;
3046
- return `${s.toString().padStart(2, "0")}:${v.toString().padStart(2, "0")}`;
3047
+ function r(p) {
3048
+ const u = p * 60, s = Math.floor(u / 60), m = u % 60;
3049
+ return `${s.toString().padStart(2, "0")}:${m.toString().padStart(2, "0")}`;
3047
3050
  }
3048
3051
  function l() {
3049
3052
  o.value ? (clearInterval(o.value), o.value = void 0) : (e.dayData.timeSamples.findIndex(
@@ -3055,11 +3058,11 @@ const Nn = (c) => {
3055
3058
  u < e.dayData.timeSamples.length - 1 ? t.value = e.dayData.timeSamples[u + 1].timeInHours : (clearInterval(o.value), o.value = void 0);
3056
3059
  }, 200));
3057
3060
  }
3058
- return (m, u) => {
3059
- const s = V("v-icon"), v = V("v-btn"), b = V("v-slider"), h = V("v-field");
3060
- return f(), R(h, { variant: "solo" }, {
3061
+ return (p, u) => {
3062
+ const s = B("v-icon"), m = B("v-btn"), b = B("v-slider"), h = B("v-field");
3063
+ return v(), V(h, { variant: "solo" }, {
3061
3064
  default: C(() => [
3062
- m.dayData.startTime === m.dayData.endTime ? (f(), D("div", Ba, [
3065
+ p.dayData.startTime === p.dayData.endTime ? (v(), D("div", Ba, [
3063
3066
  w(s, {
3064
3067
  style: { color: "#ffab02", "vertical-align": "baseline", "font-size": "20px" },
3065
3068
  class: "py-2 ml-2 mr-2 icon"
@@ -3070,28 +3073,28 @@ const Nn = (c) => {
3070
3073
  _: 1
3071
3074
  }),
3072
3075
  ee(" " + Q(r(t.value)), 1)
3073
- ])) : (f(), R(b, {
3076
+ ])) : (v(), V(b, {
3074
3077
  key: 1,
3075
3078
  class: "pa-1",
3076
3079
  modelValue: t.value,
3077
- "onUpdate:modelValue": u[0] || (u[0] = (p) => t.value = p),
3078
- min: m.dayData.startTime,
3079
- max: m.dayData.endTime,
3080
- step: m.dayData.interval,
3080
+ "onUpdate:modelValue": u[0] || (u[0] = (f) => t.value = f),
3081
+ min: p.dayData.startTime,
3082
+ max: p.dayData.endTime,
3083
+ step: p.dayData.interval,
3081
3084
  "hide-details": ""
3082
3085
  }, {
3083
3086
  prepend: C(() => [
3084
- w(v, {
3087
+ w(m, {
3085
3088
  icon: o.value ? "mdi-stop" : "mdi-play",
3086
3089
  size: "x-small",
3087
3090
  variant: "flat",
3088
3091
  onClick: l
3089
3092
  }, null, 8, ["icon"]),
3090
3093
  ee("   "),
3091
- i("span", Ra, Q(r(m.dayData.startTime)), 1)
3094
+ i("span", Ra, Q(r(p.dayData.startTime)), 1)
3092
3095
  ]),
3093
3096
  append: C(() => [
3094
- i("span", Oa, Q(r(m.dayData.endTime)), 1),
3097
+ i("span", Oa, Q(r(p.dayData.endTime)), 1),
3095
3098
  ee("   "),
3096
3099
  w(s, {
3097
3100
  style: { color: "#ffab02", "vertical-align": "baseline", "font-size": "20px" },
@@ -3111,7 +3114,7 @@ const Nn = (c) => {
3111
3114
  });
3112
3115
  };
3113
3116
  }
3114
- }), Ua = /* @__PURE__ */ J($a, [["__scopeId", "data-v-2c27d93d"]]), Ha = ["innerHTML"], Ya = /* @__PURE__ */ P({
3117
+ }), Ua = /* @__PURE__ */ J($a, [["__scopeId", "data-v-99b853f4"]]), Ha = ["innerHTML"], Ya = /* @__PURE__ */ P({
3115
3118
  __name: "VBuildingChooserV5Overlay",
3116
3119
  props: {
3117
3120
  cdnFileResolver: { type: [String, Function] },
@@ -3121,17 +3124,17 @@ const Nn = (c) => {
3121
3124
  },
3122
3125
  emits: ["onClick", "onHoverOver", "onHoverOut", "updateSvgContainer"],
3123
3126
  setup(c, { emit: n }) {
3124
- const e = c, a = n, t = d(), o = d(), r = d(e.selectedId), l = st({});
3127
+ const e = c, a = n, t = d(), o = d(), r = d(e.selectedId), l = it({});
3125
3128
  Ie(() => {
3126
3129
  for (const s in l) {
3127
- const { element: v, state: b } = l[s], { r: h, g: p, b: y, a: F, s: A } = e.colorCallback(s, b) || {
3130
+ const { element: m, state: b } = l[s], { r: h, g: f, b: y, a: F, s: A } = e.colorCallback(s, b) || {
3128
3131
  r: 0,
3129
3132
  g: 0,
3130
3133
  b: 0,
3131
3134
  a: 0,
3132
3135
  s: 0
3133
3136
  };
3134
- v.style.fill = `rgba(${h}, ${p}, ${y}, ${F / 255})`, v.style.stroke = `rgb(${h}, ${p}, ${y})`, v.style.strokeWidth = A.toString();
3137
+ m.style.fill = `rgba(${h}, ${f}, ${y}, ${F / 255})`, m.style.stroke = `rgb(${h}, ${f}, ${y})`, m.style.strokeWidth = A.toString();
3135
3138
  }
3136
3139
  }), H(
3137
3140
  () => e.selectedId,
@@ -3148,17 +3151,17 @@ const Nn = (c) => {
3148
3151
  }), H(
3149
3152
  () => o.value,
3150
3153
  () => {
3151
- o.value && new ResizeObserver(m).observe(o.value);
3154
+ o.value && new ResizeObserver(p).observe(o.value);
3152
3155
  }
3153
3156
  );
3154
- function m() {
3157
+ function p() {
3155
3158
  Se(() => {
3156
3159
  const s = o.value.firstChild;
3157
3160
  if (!s.hasAttribute("viewBox")) {
3158
- const v = `0 0 ${s.getAttribute(
3161
+ const m = `0 0 ${s.getAttribute(
3159
3162
  "width"
3160
3163
  )} ${s.getAttribute("height")}`;
3161
- s.setAttribute("viewBox", v);
3164
+ s.setAttribute("viewBox", m);
3162
3165
  }
3163
3166
  s.setAttribute("width", o.value.offsetWidth.toString()), s.setAttribute(
3164
3167
  "height",
@@ -3169,9 +3172,9 @@ const Nn = (c) => {
3169
3172
  function u() {
3170
3173
  Se(() => {
3171
3174
  const s = o.value.firstChild;
3172
- s && (a("updateSvgContainer", s), m(), s.querySelectorAll("[data-building-id]").forEach((b) => {
3173
- b.style.strokeWidth = "0", b.style.stroke = "rgba(255,255,255,0)", b.style.fill = "rgba(255,255,255,0)", b.querySelectorAll("path").forEach((p) => {
3174
- p.style.stroke = "inherit", p.style.fill = "inherit";
3175
+ s && (a("updateSvgContainer", s), p(), s.querySelectorAll("[data-building-id]").forEach((b) => {
3176
+ b.style.strokeWidth = "0", b.style.stroke = "rgba(255,255,255,0)", b.style.fill = "rgba(255,255,255,0)", b.querySelectorAll("path").forEach((f) => {
3177
+ f.style.stroke = "inherit", f.style.fill = "inherit";
3175
3178
  });
3176
3179
  const h = b.getAttribute("data-building-id");
3177
3180
  l[h] = {
@@ -3187,9 +3190,9 @@ const Nn = (c) => {
3187
3190
  }));
3188
3191
  });
3189
3192
  }
3190
- return (s, v) => (f(), R(Le, null, {
3193
+ return (s, m) => (v(), V(Le, null, {
3191
3194
  default: C(() => [
3192
- (f(), D("div", {
3195
+ (v(), D("div", {
3193
3196
  ref_key: "svgContainer",
3194
3197
  ref: o,
3195
3198
  key: s.currentCamera.overlayFilename,
@@ -3271,10 +3274,10 @@ const Nn = (c) => {
3271
3274
  },
3272
3275
  emits: ["onClick", "onHoverOver", "onHoverOut", "onMouseMove"],
3273
3276
  setup(c, { emit: n }) {
3274
- const e = c, a = n, t = d(), o = d(), r = d(), l = d(), m = d(!1), u = d(), s = T(() => u.value.isHoverEnabled), v = d({ x: 0, y: 0, width: 0, height: 0 }), b = d(), h = d(), p = d(
3277
+ const e = c, a = n, t = d(), o = d(), r = d(), l = d(), p = d(!1), u = d(), s = T(() => u.value.isHoverEnabled), m = d({ x: 0, y: 0, width: 0, height: 0 }), b = d(), h = d(), f = d(
3275
3278
  e.buildingChooserData
3276
3279
  ), y = d(!1);
3277
- de(() => m.value = !0), H(
3280
+ de(() => p.value = !0), H(
3278
3281
  () => h.value,
3279
3282
  () => {
3280
3283
  h.value && new ResizeObserver(([Y]) => {
@@ -3292,25 +3295,25 @@ const Nn = (c) => {
3292
3295
  ), Y.version === 5 ? Y : (_ = ja(Y), _);
3293
3296
  };
3294
3297
  H(
3295
- [p, () => e.cdnFileResolver, () => e.defaultCamera],
3298
+ [f, () => e.cdnFileResolver, () => e.defaultCamera],
3296
3299
  async () => {
3297
- e.cdnFileResolver && (p.value || (p.value = await F()), e.defaultCamera ? t.value = p.value.cameras.find(
3300
+ e.cdnFileResolver && (f.value || (f.value = await F()), e.defaultCamera ? t.value = f.value.cameras.find(
3298
3301
  (_) => _.cameraName === e.defaultCamera
3299
- ) || p.value.cameras[0] : t.value = p.value.cameras[0]);
3302
+ ) || f.value.cameras[0] : t.value = f.value.cameras[0]);
3300
3303
  },
3301
3304
  { immediate: !0 }
3302
3305
  ), H(
3303
- [p, () => e.cdnFileResolver, () => e.defaultDay],
3306
+ [f, () => e.cdnFileResolver, () => e.defaultDay],
3304
3307
  () => {
3305
- p.value && e.cdnFileResolver && (e.defaultDay ? o.value = t.value.sunsimDayOfYear.find(
3308
+ f.value && e.cdnFileResolver && (e.defaultDay ? o.value = t.value.sunsimDayOfYear.find(
3306
3309
  (_) => _.dayOfYear === e.defaultDay
3307
3310
  ) || t.value.sunsimDayOfYear[0] : o.value = t.value.sunsimDayOfYear[0]);
3308
3311
  },
3309
3312
  { immediate: !0 }
3310
3313
  ), H(
3311
- [p, () => e.cdnFileResolver, () => e.defaultTime],
3314
+ [f, () => e.cdnFileResolver, () => e.defaultTime],
3312
3315
  () => {
3313
- p.value && e.cdnFileResolver && (e.defaultTime ? r.value = o.value.timeSamples.find(
3316
+ f.value && e.cdnFileResolver && (e.defaultTime ? r.value = o.value.timeSamples.find(
3314
3317
  (_) => _.timeInHours === e.defaultTime
3315
3318
  ) || o.value.timeSamples[0] : r.value = o.value.timeSamples.find(
3316
3319
  (_) => _.timeInHours === o.value.defaultHour
@@ -3331,7 +3334,7 @@ const Nn = (c) => {
3331
3334
  function g(_) {
3332
3335
  const Y = r.value;
3333
3336
  o.value = _, Se(() => {
3334
- $(
3337
+ U(
3335
3338
  o.value.timeSamples.find(
3336
3339
  (S) => S.timeInHours === Y.timeInHours
3337
3340
  ) || o.value.timeSamples.find(
@@ -3340,7 +3343,7 @@ const Nn = (c) => {
3340
3343
  );
3341
3344
  });
3342
3345
  }
3343
- function $(_) {
3346
+ function U(_) {
3344
3347
  r.value = _;
3345
3348
  }
3346
3349
  function x(_) {
@@ -3360,23 +3363,23 @@ const Nn = (c) => {
3360
3363
  j = j.parentElement;
3361
3364
  if (L) {
3362
3365
  const E = _.currentTarget;
3363
- v.value = {
3366
+ m.value = {
3364
3367
  x: Y,
3365
3368
  y: S,
3366
3369
  width: E.clientWidth,
3367
3370
  height: E.clientHeight
3368
3371
  };
3369
3372
  } else
3370
- v.value = void 0;
3371
- a("onMouseMove", _, v.value);
3373
+ m.value = void 0;
3374
+ a("onMouseMove", _, m.value);
3372
3375
  }
3373
3376
  return (_, Y) => {
3374
- const S = V("v-skeleton-loader");
3375
- return f(), D(ce, null, [
3377
+ const S = B("v-skeleton-loader");
3378
+ return v(), D(ce, null, [
3376
3379
  w(S, {
3377
3380
  type: "image",
3378
3381
  class: "w-100 h-100 position-relative",
3379
- loading: !m.value || !p.value
3382
+ loading: !p.value || !f.value
3380
3383
  }, {
3381
3384
  default: C(() => [
3382
3385
  w(Le, { class: "w-100 h-100" }, {
@@ -3388,26 +3391,28 @@ const Nn = (c) => {
3388
3391
  onMousemove: I
3389
3392
  }, [
3390
3393
  i("div", Wa, [
3391
- p.value.cameras.length > 1 ? (f(), D("div", za, [
3394
+ f.value.cameras.length > 1 ? (v(), D("div", za, [
3392
3395
  w(Ta, {
3393
- "building-chooser-data": p.value,
3396
+ "building-chooser-data": f.value,
3394
3397
  "current-camera": t.value,
3395
3398
  onOnCameraChange: A
3396
3399
  }, null, 8, ["building-chooser-data", "current-camera"])
3397
- ])) : U("", !0),
3400
+ ])) : $("", !0),
3398
3401
  i("div", Na, [
3399
- w(Va, {
3402
+ t.value.sunsimDayOfYear.length > 1 ? (v(), V(Va, {
3403
+ key: 0,
3400
3404
  "camera-data": t.value,
3401
3405
  "current-day": o.value,
3402
3406
  onOnDayChange: g
3403
- }, null, 8, ["camera-data", "current-day"])
3407
+ }, null, 8, ["camera-data", "current-day"])) : $("", !0)
3404
3408
  ]),
3405
3409
  i("div", Ga, [
3406
- w(Ua, {
3410
+ o.value.timeSamples.length > 1 ? (v(), V(Ua, {
3411
+ key: 0,
3407
3412
  "day-data": o.value,
3408
3413
  "current-time": r.value,
3409
- onOnTimeChange: $
3410
- }, null, 8, ["day-data", "current-time"])
3414
+ onOnTimeChange: U
3415
+ }, null, 8, ["day-data", "current-time"])) : $("", !0)
3411
3416
  ])
3412
3417
  ]),
3413
3418
  i("div", Qa, [
@@ -3417,18 +3422,18 @@ const Nn = (c) => {
3417
3422
  ]),
3418
3423
  w(Ze, { position: "relative" }, {
3419
3424
  default: C(() => [
3420
- (f(!0), D(ce, null, me(p.value.cameras, (j) => (f(), R(Ea, {
3425
+ (v(!0), D(ce, null, me(f.value.cameras, (j) => (v(), V(Ea, {
3421
3426
  key: j.overlayFilename,
3422
3427
  "camera-data": j,
3423
3428
  "cdn-file-resolver": e.cdnFileResolver,
3424
3429
  "current-time": r.value
3425
3430
  }, null, 8, ["camera-data", "cdn-file-resolver", "current-time"]))), 128)),
3426
- e.customOverlayContent ? (f(), D("div", {
3431
+ e.customOverlayContent ? (v(), D("div", {
3427
3432
  key: 0,
3428
3433
  class: "w-100 h-100 position-absolute top-left",
3429
3434
  style: { "z-index": "5", "pointer-events": "none" },
3430
3435
  innerHTML: e.customOverlayContent
3431
- }, null, 8, qa)) : U("", !0),
3436
+ }, null, 8, qa)) : $("", !0),
3432
3437
  w(Pa, {
3433
3438
  "cdn-file-resolver": _.cdnFileResolver,
3434
3439
  "color-callback": e.colorCallback,
@@ -3442,10 +3447,10 @@ const Nn = (c) => {
3442
3447
  ]),
3443
3448
  _: 1
3444
3449
  }),
3445
- _.$slots.popup && v.value && l.value ? (f(), R(qe, {
3450
+ _.$slots.popup && m.value && l.value ? (v(), V(qe, {
3446
3451
  key: 0,
3447
3452
  "is-hoverable": s.value,
3448
- pos: v.value
3453
+ pos: m.value
3449
3454
  }, {
3450
3455
  default: C(() => [
3451
3456
  i("div", Za, [
@@ -3453,7 +3458,7 @@ const Nn = (c) => {
3453
3458
  ])
3454
3459
  ]),
3455
3460
  _: 3
3456
- }, 8, ["is-hoverable", "pos"])) : U("", !0)
3461
+ }, 8, ["is-hoverable", "pos"])) : $("", !0)
3457
3462
  ], 34)
3458
3463
  ]),
3459
3464
  _: 3
@@ -3468,7 +3473,7 @@ const Nn = (c) => {
3468
3473
  ], 64);
3469
3474
  };
3470
3475
  }
3471
- }), qs = /* @__PURE__ */ J(Ja, [["__scopeId", "data-v-e5a35ed8"]]);
3476
+ }), qs = /* @__PURE__ */ J(Ja, [["__scopeId", "data-v-c770974a"]]);
3472
3477
  var We = {};
3473
3478
  Object.defineProperty(We, "__esModule", {
3474
3479
  value: !0
@@ -3522,7 +3527,7 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
3522
3527
  },
3523
3528
  emits: ["newCameraCallback", "newRotationCallback", "newFloorCallback", "newFovCallback", "playerApiCallback", "newSizeCallback"],
3524
3529
  setup(c, { emit: n }) {
3525
- const e = Bt.PlayerV2, a = c, t = n, o = d(), r = d(), l = d(0), m = d(0);
3530
+ const e = Bt.PlayerV2, a = c, t = n, o = d(), r = d(), l = d(0), p = d(0);
3526
3531
  return H(
3527
3532
  [
3528
3533
  () => a.cdnFileResolver,
@@ -3569,17 +3574,17 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
3569
3574
  const b = {
3570
3575
  initialized: () => {
3571
3576
  o.value = e.Main.getPlayerAPI();
3572
- const p = o.value.getCurrentCamera();
3573
- p && (r.value = p.id), t("newCameraCallback", r.value);
3577
+ const f = o.value.getCurrentCamera();
3578
+ f && (r.value = f.id), t("newCameraCallback", r.value);
3574
3579
  },
3575
- newCamera: (p) => {
3576
- t("newCameraCallback", p.id), t("newFloorCallback", p.floorLevel), o.value && o.value.resetMarkerBehaviour(0), r.value = p.id;
3580
+ newCamera: (f) => {
3581
+ t("newCameraCallback", f.id), t("newFloorCallback", f.floorLevel), o.value && o.value.resetMarkerBehaviour(0), r.value = f.id;
3577
3582
  },
3578
- newFOV: (p) => {
3579
- t("newFovCallback", p), m.value = p;
3583
+ newFOV: (f) => {
3584
+ t("newFovCallback", f), p.value = f;
3580
3585
  },
3581
- newRotation: (p) => {
3582
- const y = p + 0;
3586
+ newRotation: (f) => {
3587
+ const y = f + 0;
3583
3588
  t("newRotationCallback", y), l.value = y;
3584
3589
  }
3585
3590
  };
@@ -3601,7 +3606,7 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
3601
3606
  ), h.animate(), o.value = e.Main.getPlayerAPI(), o.value && o.value.setLookSensitivity(a.mouseSensitivity));
3602
3607
  }), je(() => {
3603
3608
  o.value && o.value.destroy();
3604
- }), (u, s) => (f(), D("div", lo, [
3609
+ }), (u, s) => (v(), D("div", lo, [
3605
3610
  i("div", so, [
3606
3611
  K(u.$slots, "slideshow-image", {}, void 0, !0),
3607
3612
  i("div", io, [
@@ -3655,30 +3660,30 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
3655
3660
  const e = c, a = n, t = Be(be), o = T(() => {
3656
3661
  const s = e.floorLevels;
3657
3662
  return s.sort(), s;
3658
- }), r = T(() => o.value.indexOf(e.level) + 1 <= o.value.length / 2 ? "lower" : "upper"), l = T(() => r.value === "lower"), m = T(() => r.value === "upper");
3663
+ }), r = T(() => o.value.indexOf(e.level) + 1 <= o.value.length / 2 ? "lower" : "upper"), l = T(() => r.value === "lower"), p = T(() => r.value === "upper");
3659
3664
  function u() {
3660
3665
  const s = e.level + 1;
3661
3666
  s >= o.value.length ? a("level", o.value[0]) : a("level", o.value[s]);
3662
3667
  }
3663
- return (s, v) => {
3664
- const b = V("v-btn"), h = V("v-tooltip");
3665
- return f(), R(h, {
3668
+ return (s, m) => {
3669
+ const b = B("v-btn"), h = B("v-tooltip");
3670
+ return v(), V(h, {
3666
3671
  right: "",
3667
3672
  attach: ""
3668
3673
  }, {
3669
- activator: C(({ props: p }) => [
3674
+ activator: C(({ props: f }) => [
3670
3675
  w(b, _e({
3671
3676
  style: { cursor: "pointer" },
3672
3677
  density: "comfortable",
3673
3678
  elevation: "1",
3674
3679
  icon: ""
3675
- }, p, { onClick: u }), {
3680
+ }, f, { onClick: u }), {
3676
3681
  default: C(() => [
3677
- (f(), D("svg", bo, [
3682
+ (v(), D("svg", bo, [
3678
3683
  i("path", {
3679
3684
  d: "M8.98034 10.3472L1.54055 5.8855L8.98034 1.42384L16.4201 5.8855L8.98034 10.3472Z",
3680
3685
  fill: "white",
3681
- stroke: m.value ? "black" : "#999999",
3686
+ stroke: p.value ? "black" : "#999999",
3682
3687
  "stroke-width": "1.5",
3683
3688
  "stroke-linejoin": "round"
3684
3689
  }, null, 8, wo),
@@ -3712,16 +3717,16 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
3712
3717
  setup(c, { emit: n }) {
3713
3718
  const e = c, a = n, t = Be(be);
3714
3719
  return (o, r) => {
3715
- const l = V("v-icon"), m = V("v-btn"), u = V("v-img"), s = V("v-list-item-title"), v = V("v-list-item"), b = V("v-list"), h = V("v-menu");
3716
- return f(), D("div", null, [
3720
+ const l = B("v-icon"), p = B("v-btn"), u = B("v-img"), s = B("v-list-item-title"), m = B("v-list-item"), b = B("v-list"), h = B("v-menu");
3721
+ return v(), D("div", null, [
3717
3722
  w(h, {
3718
3723
  transition: "slide-x-reverse-transition",
3719
3724
  location: "top end",
3720
3725
  origin: "end bottom",
3721
3726
  elevation: "0"
3722
3727
  }, {
3723
- activator: C(({ props: p }) => [
3724
- w(m, _e({ rounded: "" }, p), {
3728
+ activator: C(({ props: f }) => [
3729
+ w(p, _e({ rounded: "" }, f), {
3725
3730
  default: C(() => [
3726
3731
  w(l, null, {
3727
3732
  default: C(() => [
@@ -3737,10 +3742,10 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
3737
3742
  default: C(() => [
3738
3743
  w(b, { class: "interior-selector-list" }, {
3739
3744
  default: C(() => [
3740
- (f(!0), D(ce, null, me(e.availableArchetypes, (p, y) => (f(), R(v, {
3745
+ (v(!0), D(ce, null, me(e.availableArchetypes, (f, y) => (v(), V(m, {
3741
3746
  density: "compact",
3742
3747
  key: `at-menuitem-${y}`,
3743
- onClick: (F) => a("selectInterior", p.archetypeID),
3748
+ onClick: (F) => a("selectInterior", f.archetypeID),
3744
3749
  active: y === o.selectedIndex,
3745
3750
  class: "interior-selector-list-item"
3746
3751
  }, {
@@ -3749,13 +3754,13 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
3749
3754
  width: "100",
3750
3755
  "max-width": "100",
3751
3756
  height: "66",
3752
- src: p.url
3757
+ src: f.url
3753
3758
  }, null, 8, ["src"])
3754
3759
  ]),
3755
3760
  default: C(() => [
3756
3761
  w(s, { class: "text-caption py-2 px-4" }, {
3757
3762
  default: C(() => [
3758
- ee(Q(ae(t).get(p.title)), 1)
3763
+ ee(Q(ae(t).get(f.title)), 1)
3759
3764
  ]),
3760
3765
  _: 2
3761
3766
  }, 1024)
@@ -3784,8 +3789,8 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
3784
3789
  transform: `rotate(${-n.rotation + 180}deg)`
3785
3790
  }));
3786
3791
  return (o, r) => {
3787
- const l = V("v-img");
3788
- return f(), D("div", {
3792
+ const l = B("v-img");
3793
+ return v(), D("div", {
3789
3794
  style: se(a.value),
3790
3795
  class: "compass-wrapper"
3791
3796
  }, [
@@ -3809,8 +3814,8 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
3809
3814
  return ("0" + t).slice(-2);
3810
3815
  }
3811
3816
  return (t, o) => {
3812
- const r = V("v-img");
3813
- return f(), D("div", To, [
3817
+ const r = B("v-img");
3818
+ return v(), D("div", To, [
3814
3819
  i("div", Vo, [
3815
3820
  w(r, {
3816
3821
  src: ae(Eo),
@@ -3833,8 +3838,8 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
3833
3838
  return e.showStaticImage || (r = "slideShow"), r;
3834
3839
  });
3835
3840
  return (r, l) => {
3836
- const m = V("v-btn");
3837
- return f(), R(m, {
3841
+ const p = B("v-btn");
3842
+ return v(), V(p, {
3838
3843
  color: "darken-2",
3839
3844
  elevation: "1",
3840
3845
  rounded: "",
@@ -3848,7 +3853,7 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
3848
3853
  });
3849
3854
  };
3850
3855
  }
3851
- }), Oe = (c) => (it("data-v-ccf327cb"), c = c(), rt(), c), Uo = {
3856
+ }), Oe = (c) => (rt("data-v-ccf327cb"), c = c(), ut(), c), Uo = {
3852
3857
  key: 0,
3853
3858
  class: "tutorial"
3854
3859
  }, Ho = {
@@ -4390,11 +4395,11 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
4390
4395
  /iPod/i,
4391
4396
  /BlackBerry/i,
4392
4397
  /Windows Phone/i
4393
- ].some((b) => navigator.userAgent.match(b))), m = T(() => {
4394
- const v = localStorage.getItem(
4398
+ ].some((b) => navigator.userAgent.match(b))), p = T(() => {
4399
+ const m = localStorage.getItem(
4395
4400
  `${e.project}-dont-show-tutorial`
4396
4401
  );
4397
- return v && a("closeTutorial"), v;
4402
+ return m && a("closeTutorial"), m;
4398
4403
  });
4399
4404
  function u() {
4400
4405
  r.value && s(), o.value = !1, a("closeTutorial");
@@ -4402,12 +4407,12 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
4402
4407
  function s() {
4403
4408
  localStorage.setItem(`${e.project}-dont-show-tutorial`, "true");
4404
4409
  }
4405
- return (v, b) => {
4406
- const h = V("v-checkbox"), p = V("v-btn");
4407
- return f(), R(Le, { name: "fade-transition" }, {
4410
+ return (m, b) => {
4411
+ const h = B("v-checkbox"), f = B("v-btn");
4412
+ return v(), V(Le, { name: "fade-transition" }, {
4408
4413
  default: C(() => [
4409
- o.value && !m.value ? (f(), D("div", Uo, [
4410
- l.value ? U("", !0) : (f(), D("div", Ho, [
4414
+ o.value && !p.value ? (v(), D("div", Uo, [
4415
+ l.value ? $("", !0) : (v(), D("div", Ho, [
4411
4416
  i("div", Yo, [
4412
4417
  i("div", Po, [
4413
4418
  jo,
@@ -4429,7 +4434,7 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
4429
4434
  ])
4430
4435
  ])
4431
4436
  ])),
4432
- l.value ? (f(), D("div", tl, [
4437
+ l.value ? (v(), D("div", tl, [
4433
4438
  i("div", nl, [
4434
4439
  al,
4435
4440
  i("div", ol, Q(ae(t).getLabel("tapAndDragToLookAround")), 1)
@@ -4442,14 +4447,14 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
4442
4447
  ul,
4443
4448
  i("div", cl, Q(ae(t).getLabel("useTwoFingersToZoom")), 1)
4444
4449
  ])
4445
- ])) : U("", !0),
4450
+ ])) : $("", !0),
4446
4451
  i("div", dl, [
4447
4452
  w(h, {
4448
4453
  modelValue: r.value,
4449
4454
  "onUpdate:modelValue": b[0] || (b[0] = (y) => r.value = y),
4450
4455
  label: ae(t).getLabel("dontShowAgain")
4451
4456
  }, null, 8, ["modelValue", "label"]),
4452
- w(p, {
4457
+ w(f, {
4453
4458
  small: "",
4454
4459
  outlined: "",
4455
4460
  class: "mt-5",
@@ -4461,13 +4466,13 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
4461
4466
  _: 1
4462
4467
  })
4463
4468
  ])
4464
- ])) : U("", !0)
4469
+ ])) : $("", !0)
4465
4470
  ]),
4466
4471
  _: 1
4467
4472
  });
4468
4473
  };
4469
4474
  }
4470
- }), ml = /* @__PURE__ */ J(vl, [["__scopeId", "data-v-ccf327cb"]]), pl = (c) => (it("data-v-bd4f66c3"), c = c(), rt(), c), fl = { class: "player-settings-ui" }, hl = { id: "settings-ui-form" }, gl = { class: "form-inputs" }, yl = { class: "setting-label" }, _l = { class: "setting-label" }, bl = ["max", "min", "step"], wl = { class: "setting-label" }, kl = { class: "flex-grow-1 flex-shrink-0" }, Cl = ["onUpdate:modelValue"], Il = {
4475
+ }), ml = /* @__PURE__ */ J(vl, [["__scopeId", "data-v-ccf327cb"]]), pl = (c) => (rt("data-v-bd4f66c3"), c = c(), ut(), c), fl = { class: "player-settings-ui" }, hl = { id: "settings-ui-form" }, gl = { class: "form-inputs" }, yl = { class: "setting-label" }, _l = { class: "setting-label" }, bl = ["max", "min", "step"], wl = { class: "setting-label" }, kl = { class: "flex-grow-1 flex-shrink-0" }, Cl = ["onUpdate:modelValue"], Il = {
4471
4476
  key: 3,
4472
4477
  "d-block": "",
4473
4478
  class: "mt-3"
@@ -4495,40 +4500,40 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
4495
4500
  { deep: !0 }
4496
4501
  );
4497
4502
  const o = T(() => {
4498
- let p = {};
4503
+ let f = {};
4499
4504
  for (const [y, F] of Object.entries(t.value))
4500
- y === "whitePoint" ? p[y] = s(F.value) : p[y] = F.value;
4501
- return p;
4505
+ y === "whitePoint" ? f[y] = s(F.value) : f[y] = F.value;
4506
+ return f;
4502
4507
  });
4503
4508
  function r() {
4504
4509
  a("updateSettings", o.value);
4505
4510
  }
4506
4511
  function l() {
4507
- const p = document.createElement("a");
4508
- p.href = URL.createObjectURL(
4512
+ const f = document.createElement("a");
4513
+ f.href = URL.createObjectURL(
4509
4514
  new Blob([JSON.stringify(o.value, null, 2)])
4510
4515
  );
4511
4516
  const y = `player-settings-${Date.now()}.json`;
4512
- p.download = y, p.style.display = "none", document.body.appendChild(p), p.click(), document.body.removeChild(p);
4517
+ f.download = y, f.style.display = "none", document.body.appendChild(f), f.click(), document.body.removeChild(f);
4513
4518
  }
4514
- function m() {
4519
+ function p() {
4515
4520
  a("saveSettings", o.value);
4516
4521
  }
4517
4522
  function u() {
4518
4523
  t.value = h(), a("updateSettings", o.value);
4519
4524
  }
4520
- function s(p) {
4521
- const y = parseInt(p.substr(1, 2), 16) / 255, F = parseInt(p.substr(3, 2), 16) / 255, A = parseInt(p.substr(5, 2), 16) / 255;
4525
+ function s(f) {
4526
+ const y = parseInt(f.substr(1, 2), 16) / 255, F = parseInt(f.substr(3, 2), 16) / 255, A = parseInt(f.substr(5, 2), 16) / 255;
4522
4527
  return [y, F, A];
4523
4528
  }
4524
- function v(p) {
4525
- var y = p.toString(16);
4529
+ function m(f) {
4530
+ var y = f.toString(16);
4526
4531
  return y.length == 1 ? "0" + y : y;
4527
4532
  }
4528
- function b([p, y, F]) {
4529
- return "#" + v(parseInt((p * 255).toString())) + v(parseInt((y * 255).toString())) + v(parseInt((F * 255).toString()));
4533
+ function b([f, y, F]) {
4534
+ return "#" + m(parseInt((f * 255).toString())) + m(parseInt((y * 255).toString())) + m(parseInt((F * 255).toString()));
4530
4535
  }
4531
- function h(p = {}) {
4536
+ function h(f = {}) {
4532
4537
  const y = [
4533
4538
  "Cool 5",
4534
4539
  "Cool 10",
@@ -4552,7 +4557,7 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
4552
4557
  TRANSITION_MOVEMENT_SCALE: 1.3,
4553
4558
  whitePoint: [1, 1, 1],
4554
4559
  lut: "",
4555
- ...p
4560
+ ...f
4556
4561
  };
4557
4562
  return {
4558
4563
  exposureFovScale: {
@@ -4624,16 +4629,16 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
4624
4629
  }
4625
4630
  };
4626
4631
  }
4627
- return (p, y) => {
4628
- const F = V("v-text-field"), A = V("v-slider"), g = V("v-checkbox"), $ = V("v-btn"), x = V("v-select"), O = V("v-icon");
4629
- return f(), D("div", fl, [
4632
+ return (f, y) => {
4633
+ const F = B("v-text-field"), A = B("v-slider"), g = B("v-checkbox"), U = B("v-btn"), x = B("v-select"), O = B("v-icon");
4634
+ return v(), D("div", fl, [
4630
4635
  i("form", hl, [
4631
4636
  i("div", gl, [
4632
- (f(!0), D(ce, null, me(t.value, (I, _, Y) => (f(), D("div", {
4637
+ (v(!0), D(ce, null, me(t.value, (I, _, Y) => (v(), D("div", {
4633
4638
  key: Y,
4634
4639
  "d-block": ""
4635
4640
  }, [
4636
- I.type === "slider" ? (f(), R(A, {
4641
+ I.type === "slider" ? (v(), V(A, {
4637
4642
  key: 0,
4638
4643
  modelValue: t.value[_].value,
4639
4644
  "onUpdate:modelValue": (S) => t.value[_].value = S,
@@ -4663,8 +4668,8 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
4663
4668
  ])
4664
4669
  ]),
4665
4670
  _: 2
4666
- }, 1032, ["modelValue", "onUpdate:modelValue", "max", "min", "step"])) : U("", !0),
4667
- I.type === "boolean" ? (f(), R(g, {
4671
+ }, 1032, ["modelValue", "onUpdate:modelValue", "max", "min", "step"])) : $("", !0),
4672
+ I.type === "boolean" ? (v(), V(g, {
4668
4673
  key: 1,
4669
4674
  modelValue: t.value[_].value,
4670
4675
  "onUpdate:modelValue": (S) => t.value[_].value = S,
@@ -4677,8 +4682,8 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
4677
4682
  i("div", null, Q(I.value), 1)
4678
4683
  ]),
4679
4684
  _: 2
4680
- }, 1032, ["modelValue", "onUpdate:modelValue"])) : U("", !0),
4681
- I.type === "color" ? (f(), D("div", {
4685
+ }, 1032, ["modelValue", "onUpdate:modelValue"])) : $("", !0),
4686
+ I.type === "color" ? (v(), D("div", {
4682
4687
  key: 2,
4683
4688
  class: "d-flex",
4684
4689
  max: I.max,
@@ -4708,12 +4713,12 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
4708
4713
  onChange: r
4709
4714
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
4710
4715
  ])
4711
- ], 8, bl)) : U("", !0),
4712
- I.type === "lut" ? (f(), D("div", Il, [
4716
+ ], 8, bl)) : $("", !0),
4717
+ I.type === "lut" ? (v(), D("div", Il, [
4713
4718
  i("div", Al, [
4714
4719
  i("div", Sl, Q(I.label), 1),
4715
4720
  i("div", null, [
4716
- w($, {
4721
+ w(U, {
4717
4722
  class: "ml-2",
4718
4723
  "x-small": "",
4719
4724
  onClick: (S) => t.value[_].value = null
@@ -4756,11 +4761,11 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
4756
4761
  ])
4757
4762
  ])
4758
4763
  ])
4759
- ])) : U("", !0)
4764
+ ])) : $("", !0)
4760
4765
  ]))), 128))
4761
4766
  ]),
4762
4767
  i("div", Dl, [
4763
- w($, {
4768
+ w(U, {
4764
4769
  onClick: y[0] || (y[0] = (I) => u())
4765
4770
  }, {
4766
4771
  default: C(() => [
@@ -4768,7 +4773,7 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
4768
4773
  ]),
4769
4774
  _: 1
4770
4775
  }),
4771
- w($, {
4776
+ w(U, {
4772
4777
  class: "ml-2",
4773
4778
  onClick: y[1] || (y[1] = (I) => l())
4774
4779
  }, {
@@ -4783,9 +4788,9 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
4783
4788
  ]),
4784
4789
  _: 1
4785
4790
  }),
4786
- w($, {
4791
+ w(U, {
4787
4792
  class: "ml-2",
4788
- onClick: y[2] || (y[2] = (I) => m())
4793
+ onClick: y[2] || (y[2] = (I) => p())
4789
4794
  }, {
4790
4795
  default: C(() => [
4791
4796
  ee(" Save Settings "),
@@ -4803,7 +4808,7 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
4803
4808
  ]);
4804
4809
  };
4805
4810
  }
4806
- }), El = /* @__PURE__ */ J(Ml, [["__scopeId", "data-v-bd4f66c3"]]), Tl = (c) => (it("data-v-30593022"), c = c(), rt(), c), Vl = /* @__PURE__ */ Tl(() => /* @__PURE__ */ i("div", { id: "filler-div" }, null, -1)), Bl = {
4811
+ }), El = /* @__PURE__ */ J(Ml, [["__scopeId", "data-v-bd4f66c3"]]), Tl = (c) => (rt("data-v-30593022"), c = c(), ut(), c), Vl = /* @__PURE__ */ Tl(() => /* @__PURE__ */ i("div", { id: "filler-div" }, null, -1)), Bl = {
4807
4812
  class: "moveable-body",
4808
4813
  id: "moveableDivHeader"
4809
4814
  }, Rl = { class: "moveable-footer" }, Ol = /* @__PURE__ */ P({
@@ -4818,45 +4823,45 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
4818
4823
  const l = document.getElementById(r.id + "Header");
4819
4824
  if (!l)
4820
4825
  return;
4821
- let m = 0, u = 0, s = 0, v = 0;
4822
- l.addEventListener("touchstart", b, { passive: !1 }), l.addEventListener("touchend", p, { passive: !1 }), l.addEventListener("mousedown", b, { passive: !1 }), l.addEventListener("mouseup", p, { passive: !1 });
4826
+ let p = 0, u = 0, s = 0, m = 0;
4827
+ l.addEventListener("touchstart", b, { passive: !1 }), l.addEventListener("touchend", f, { passive: !1 }), l.addEventListener("mousedown", b, { passive: !1 }), l.addEventListener("mouseup", f, { passive: !1 });
4823
4828
  function b(y) {
4824
4829
  y = y || window.event, y.preventDefault();
4825
4830
  let F = y;
4826
- y.type === "touchstart" && (F = y.touches[0]), s = F.clientX, v = F.clientY, document.addEventListener("mouseup", p, { passive: !1 }), document.addEventListener("touchend", p, { passive: !1 }), document.addEventListener("mousemove", h, { passive: !1 }), document.addEventListener("touchmove", h, { passive: !1 });
4831
+ y.type === "touchstart" && (F = y.touches[0]), s = F.clientX, m = F.clientY, document.addEventListener("mouseup", f, { passive: !1 }), document.addEventListener("touchend", f, { passive: !1 }), document.addEventListener("mousemove", h, { passive: !1 }), document.addEventListener("touchmove", h, { passive: !1 });
4827
4832
  }
4828
4833
  function h(y) {
4829
4834
  y = y || window.event, y.preventDefault();
4830
4835
  let F = y;
4831
- y.type === "touchmove" && (F = y.touches[0]), m = s - F.clientX, u = v - F.clientY, s = F.clientX, v = F.clientY, r.style.top = r.offsetTop - u + "px", r.style.left = r.offsetLeft - m + "px";
4836
+ y.type === "touchmove" && (F = y.touches[0]), p = s - F.clientX, u = m - F.clientY, s = F.clientX, m = F.clientY, r.style.top = r.offsetTop - u + "px", r.style.left = r.offsetLeft - p + "px";
4832
4837
  }
4833
- function p() {
4834
- document.removeEventListener("mouseup", p, !1), document.removeEventListener("mousemove", h, !1), document.removeEventListener("touchend", p, !1), document.removeEventListener("touchmove", h, !1);
4838
+ function f() {
4839
+ document.removeEventListener("mouseup", f, !1), document.removeEventListener("mousemove", h, !1), document.removeEventListener("touchend", f, !1), document.removeEventListener("touchmove", h, !1);
4835
4840
  }
4836
4841
  }
4837
4842
  function o() {
4838
4843
  a.value === "big" ? a.value = "small" : a.value = "big";
4839
4844
  }
4840
4845
  return (r, l) => {
4841
- const m = V("v-btn");
4842
- return f(), D("div", {
4846
+ const p = B("v-btn");
4847
+ return v(), D("div", {
4843
4848
  id: "moveableDiv",
4844
4849
  class: he(["big d-flex justify-space-between flex-column align-center sizer", a.value])
4845
4850
  }, [
4846
- w(m, {
4851
+ w(p, {
4847
4852
  class: "close-icon",
4848
4853
  icon: "mdi-window-close",
4849
4854
  size: "x-small",
4850
4855
  onClick: l[0] || (l[0] = (u) => e("close"))
4851
4856
  }),
4852
- w(m, {
4857
+ w(p, {
4853
4858
  class: "resize-icon",
4854
4859
  icon: "mdi-image-size-select-small",
4855
4860
  size: "x-small",
4856
4861
  onClick: o,
4857
4862
  title: "Resize"
4858
4863
  }),
4859
- w(m, {
4864
+ w(p, {
4860
4865
  class: "rotate-icon",
4861
4866
  size: "x-small",
4862
4867
  icon: "mdi mdi-rotate-right",
@@ -4885,7 +4890,7 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
4885
4890
  rotation: {}
4886
4891
  },
4887
4892
  setup(c) {
4888
- return (n, e) => (f(), D("svg", Ul, [
4893
+ return (n, e) => (v(), D("svg", Ul, [
4889
4894
  Hl,
4890
4895
  i("g", {
4891
4896
  "transform-origin": "20 20",
@@ -4904,11 +4909,11 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
4904
4909
  transformAngle: {}
4905
4910
  },
4906
4911
  setup(c) {
4907
- const n = c, e = d(512), a = d(384), t = d(new Ve.Vector3()), o = d(new Ve.Object3D()), r = d({}), l = d(1), m = d(), u = T(() => n.allCameras), s = T(() => n.allCameras.find((_) => _.id === n.currentCamera)), v = T(() => n.rotation), b = T(() => new Ve.Vector3(
4912
+ const n = c, e = d(512), a = d(384), t = d(new Ve.Vector3()), o = d(new Ve.Object3D()), r = d({}), l = d(1), p = d(), u = T(() => n.allCameras), s = T(() => n.allCameras.find((_) => _.id === n.currentCamera)), m = T(() => n.rotation), b = T(() => new Ve.Vector3(
4908
4913
  n.storey.position.x,
4909
4914
  n.storey.position.y,
4910
4915
  n.storey.position.z
4911
- )), h = T(() => parseFloat(s.value.floor_vertical_position)), p = T(() => u.value.map((_) => {
4916
+ )), h = T(() => parseFloat(s.value.floor_vertical_position)), f = T(() => u.value.map((_) => {
4912
4917
  const Y = _.uposition.split(","), S = new Ve.Vector3(
4913
4918
  Number(Y[0]) - b.value.x,
4914
4919
  0,
@@ -4925,11 +4930,11 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
4925
4930
  de(() => {
4926
4931
  O(), g(), I();
4927
4932
  const _ = document.getElementById("moveableDiv");
4928
- _ && (m.value = new ResizeObserver(I).observe(_));
4933
+ _ && (p.value = new ResizeObserver(I).observe(_));
4929
4934
  }), Vt(() => {
4930
4935
  O(), g();
4931
4936
  }), je(() => {
4932
- m.value && m.value.unobserve(document.getElementById("moveableDiv"));
4937
+ p.value && p.value.unobserve(document.getElementById("moveableDiv"));
4933
4938
  });
4934
4939
  function A(_) {
4935
4940
  return Ve.MathUtils.degToRad(_);
@@ -4939,7 +4944,7 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
4939
4944
  transform: `rotateZ(${o.value.rotation.y}deg) rotateX(${o.value.rotation.x}deg)`
4940
4945
  };
4941
4946
  }
4942
- function $(_) {
4947
+ function U(_) {
4943
4948
  return {
4944
4949
  top: `${Math.abs(_.top)}%`,
4945
4950
  left: `${Math.abs(_.left)}%`
@@ -4967,7 +4972,7 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
4967
4972
  const Y = _.offsetHeight / 384 * 0.8, S = _.offsetWidth / 512 * 0.8;
4968
4973
  _.offsetHeight > _.offsetWidth ? l.value = S * 0.5 : l.value = Y * 0.9;
4969
4974
  }
4970
- return (_, Y) => (f(), D("div", zl, [
4975
+ return (_, Y) => (v(), D("div", zl, [
4971
4976
  i("div", Nl, [
4972
4977
  i("div", {
4973
4978
  class: "web-minimap",
@@ -4981,20 +4986,20 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
4981
4986
  class: "center-pivot",
4982
4987
  style: se(r.value)
4983
4988
  }, [
4984
- (f(!0), D(ce, null, me(p.value, (S) => (f(), D("div", {
4989
+ (v(!0), D(ce, null, me(f.value, (S) => (v(), D("div", {
4985
4990
  key: S.id
4986
4991
  }, [
4987
- s.value.floorLevel === S.floorLevel ? (f(), D("div", {
4992
+ s.value.floorLevel === S.floorLevel ? (v(), D("div", {
4988
4993
  key: 0,
4989
4994
  class: "single-camera-marker",
4990
- style: se($(S))
4991
- }, null, 4)) : U("", !0),
4992
- s.value.id === S.id && n.rotation !== null ? (f(), R(Wl, {
4995
+ style: se(U(S))
4996
+ }, null, 4)) : $("", !0),
4997
+ s.value.id === S.id && n.rotation !== null ? (v(), V(Wl, {
4993
4998
  key: 1,
4994
4999
  class: "rotation-marker-component",
4995
- rotation: v.value,
4996
- style: se({ ...$(S) })
4997
- }, null, 8, ["rotation", "style"])) : U("", !0)
5000
+ rotation: m.value,
5001
+ style: se({ ...U(S) })
5002
+ }, null, 8, ["rotation", "style"])) : $("", !0)
4998
5003
  ]))), 128))
4999
5004
  ], 4)
5000
5005
  ], 4)
@@ -5010,7 +5015,7 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
5010
5015
  },
5011
5016
  setup(c) {
5012
5017
  const n = c, e = T(() => n.rotation + n.transformAngle - 90);
5013
- return (a, t) => (f(), D("div", {
5018
+ return (a, t) => (v(), D("div", {
5014
5019
  class: "minimap-compass",
5015
5020
  style: se({ scale: a.scale })
5016
5021
  }, [
@@ -5033,7 +5038,7 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
5033
5038
  },
5034
5039
  emits: ["setBackgroundImage"],
5035
5040
  setup(c, { emit: n }) {
5036
- const e = c, a = n, t = d((/* @__PURE__ */ new Date()).getHours()), o = d(!0), r = d(!0), l = d(""), m = d(/* @__PURE__ */ new Map()), u = T(() => e.minimapJson.storeys[e.level]), s = T(() => `${Math.floor(t.value).toString().padStart(2, "0")}:00`), v = T(() => {
5041
+ const e = c, a = n, t = d((/* @__PURE__ */ new Date()).getHours()), o = d(!0), r = d(!0), l = d(""), p = d(/* @__PURE__ */ new Map()), u = T(() => e.minimapJson.storeys[e.level]), s = T(() => `${Math.floor(t.value).toString().padStart(2, "0")}:00`), m = T(() => {
5037
5042
  if (u.value.sunsimFilesTimeStamps[t.value]) {
5038
5043
  const A = u.value.sunsimFilesTimeStamps[t.value].split(" ");
5039
5044
  return `${A[0]} ${A[1]}`;
@@ -5041,11 +5046,11 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
5041
5046
  return "";
5042
5047
  });
5043
5048
  de(async () => {
5044
- l.value = await p(
5049
+ l.value = await f(
5045
5050
  u.value.sunsimFiles[t.value]
5046
5051
  ), r.value = !1;
5047
5052
  const A = await h(e.minimapJson.storeys);
5048
- m.value = A, o.value = !1, a("setBackgroundImage", b(e.level, t.value));
5053
+ p.value = A, o.value = !1, a("setBackgroundImage", b(e.level, t.value));
5049
5054
  }), H(t, () => {
5050
5055
  const A = b(e.level, t.value);
5051
5056
  a("setBackgroundImage", A);
@@ -5057,16 +5062,16 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
5057
5062
  { immediate: !0 }
5058
5063
  );
5059
5064
  function b(A, g) {
5060
- return m.value.get(`sunsim${A}_${g}`) ? m.value.get(`sunsim${A}_${g}`) : "";
5065
+ return p.value.get(`sunsim${A}_${g}`) ? p.value.get(`sunsim${A}_${g}`) : "";
5061
5066
  }
5062
5067
  async function h(A) {
5063
5068
  let g = /* @__PURE__ */ new Map();
5064
- for (let $ = 0; $ < A.length; $++) {
5065
- const x = A[$].sunsimFiles;
5069
+ for (let U = 0; U < A.length; U++) {
5070
+ const x = A[U].sunsimFiles;
5066
5071
  for (let O = 0; O < x.length; O++) {
5067
5072
  const I = x[O];
5068
5073
  try {
5069
- const _ = I, Y = I.split("."), S = await p(_);
5074
+ const _ = I, Y = I.split("."), S = await f(_);
5070
5075
  g.set(Y[0], S);
5071
5076
  } catch {
5072
5077
  continue;
@@ -5075,40 +5080,40 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
5075
5080
  }
5076
5081
  return g;
5077
5082
  }
5078
- async function p(A) {
5079
- const $ = await (await fetch(
5083
+ async function f(A) {
5084
+ const U = await (await fetch(
5080
5085
  ie(
5081
5086
  e.cdnFileResolver,
5082
5087
  `/${e.apartmentJson.type}/${e.apartmentJson.id}/minimap/${A}`
5083
5088
  )
5084
- )).blob(), x = await F($);
5089
+ )).blob(), x = await F(U);
5085
5090
  return y(x);
5086
5091
  }
5087
5092
  function y(A) {
5088
5093
  return "data:image/jpeg;base64," + A;
5089
5094
  }
5090
5095
  async function F(A) {
5091
- return new Promise((g, $) => {
5096
+ return new Promise((g, U) => {
5092
5097
  const x = new FileReader();
5093
5098
  x.onload = () => {
5094
5099
  const O = x.result.split(",")[1];
5095
5100
  g(O);
5096
- }, x.onerror = $, x.readAsDataURL(A);
5101
+ }, x.onerror = U, x.readAsDataURL(A);
5097
5102
  });
5098
5103
  }
5099
5104
  return (A, g) => {
5100
- const $ = V("v-progress-linear"), x = V("v-icon"), O = V("v-slider");
5101
- return f(), D("div", Jl, [
5105
+ const U = B("v-progress-linear"), x = B("v-icon"), O = B("v-slider");
5106
+ return v(), D("div", Jl, [
5102
5107
  i("div", Xl, [
5103
5108
  i("div", Kl, [
5104
- o.value ? (f(), R($, {
5109
+ o.value ? (v(), V(U, {
5105
5110
  key: 0,
5106
5111
  indeterminate: "",
5107
5112
  rounded: "",
5108
5113
  height: "6",
5109
5114
  color: "grey lighten-1",
5110
5115
  class: "mr-2"
5111
- })) : (f(), R(O, {
5116
+ })) : (v(), V(O, {
5112
5117
  key: 1,
5113
5118
  modelValue: t.value,
5114
5119
  "onUpdate:modelValue": g[0] || (g[0] = (I) => t.value = I),
@@ -5131,7 +5136,7 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
5131
5136
  _: 1
5132
5137
  }, 8, ["modelValue"]))
5133
5138
  ]),
5134
- o.value ? U("", !0) : (f(), D("div", es, Q(v.value) + " " + Q(s.value), 1))
5139
+ o.value ? $("", !0) : (v(), D("div", es, Q(m.value) + " " + Q(s.value), 1))
5135
5140
  ])
5136
5141
  ]);
5137
5142
  };
@@ -5160,14 +5165,14 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
5160
5165
  let s = 1;
5161
5166
  return o.value !== 0 && (Math.abs(o.value) % 180 === 0 ? s = 1 : s = -1), s;
5162
5167
  });
5163
- function m(s) {
5168
+ function p(s) {
5164
5169
  t.value = s;
5165
5170
  }
5166
5171
  function u() {
5167
5172
  o.value = o.value + 90;
5168
5173
  }
5169
- return (s, v) => (f(), R($l, {
5170
- onClose: v[0] || (v[0] = (b) => a("close")),
5174
+ return (s, m) => (v(), V($l, {
5175
+ onClose: m[0] || (m[0] = (b) => a("close")),
5171
5176
  onTransform: u
5172
5177
  }, {
5173
5178
  body: C(() => [
@@ -5193,7 +5198,7 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
5193
5198
  "minimap-json": e.minimapJson,
5194
5199
  "apartment-json": e.apartmentJson,
5195
5200
  level: e.level,
5196
- onSetBackgroundImage: m
5201
+ onSetBackgroundImage: p
5197
5202
  }, null, 8, ["cdn-file-resolver", "minimap-json", "apartment-json", "level"])
5198
5203
  ]),
5199
5204
  _: 1
@@ -5206,15 +5211,15 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
5206
5211
  __name: "VDisclaimer",
5207
5212
  setup(c) {
5208
5213
  const n = Be(be), e = d(!0);
5209
- return (a, t) => (f(), R(Le, { name: "fade-transition" }, {
5214
+ return (a, t) => (v(), V(Le, { name: "fade-transition" }, {
5210
5215
  default: C(() => [
5211
- e.value ? (f(), D("div", os, [
5216
+ e.value ? (v(), D("div", os, [
5212
5217
  ee(Q(ae(n).getLabel("allIllustrationsAreIndicativeDeviationsMayOccur")) + " ", 1),
5213
5218
  i("span", {
5214
5219
  onClick: t[0] || (t[0] = (o) => e.value = !1),
5215
5220
  class: "link-text text-decoration-underline"
5216
5221
  }, Q(ae(n).getLabel("iUnderstand")), 1)
5217
- ])) : U("", !0)
5222
+ ])) : $("", !0)
5218
5223
  ]),
5219
5224
  _: 1
5220
5225
  }));
@@ -5254,12 +5259,12 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
5254
5259
  return;
5255
5260
  }
5256
5261
  }
5257
- function m(u, s) {
5262
+ function p(u, s) {
5258
5263
  s(), a("goto", u);
5259
5264
  }
5260
5265
  return (u, s) => {
5261
- const v = V("v-btn"), b = V("v-img"), h = V("v-card"), p = V("v-slide-group-item"), y = V("v-slide-group");
5262
- return f(), D("div", is, [
5266
+ const m = B("v-btn"), b = B("v-img"), h = B("v-card"), f = B("v-slide-group-item"), y = B("v-slide-group");
5267
+ return v(), D("div", is, [
5263
5268
  w(y, {
5264
5269
  modelValue: o.value,
5265
5270
  "onUpdate:modelValue": s[2] || (s[2] = (F) => o.value = F),
@@ -5271,7 +5276,7 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
5271
5276
  mandatory: ""
5272
5277
  }, {
5273
5278
  prev: C(() => [
5274
- w(v, {
5279
+ w(m, {
5275
5280
  class: he(["carousel-button", { mobile: r.value }]),
5276
5281
  icon: "mdi-chevron-left",
5277
5282
  varient: "tonal",
@@ -5280,7 +5285,7 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
5280
5285
  }, null, 8, ["class"])
5281
5286
  ]),
5282
5287
  next: C(() => [
5283
- w(v, {
5288
+ w(m, {
5284
5289
  class: he(["carousel-button", { mobile: r.value }]),
5285
5290
  icon: "mdi-chevron-right",
5286
5291
  varient: "tonal",
@@ -5289,7 +5294,7 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
5289
5294
  }, null, 8, ["class"])
5290
5295
  ]),
5291
5296
  default: C(() => [
5292
- (f(!0), D(ce, null, me(u.thumbnails, (F) => (f(), R(p, {
5297
+ (v(!0), D(ce, null, me(u.thumbnails, (F) => (v(), V(f, {
5293
5298
  key: F.id
5294
5299
  }, {
5295
5300
  default: C(({ toggle: A, selectedClass: g }) => [
@@ -5302,7 +5307,7 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
5302
5307
  align: "center",
5303
5308
  justify: "center",
5304
5309
  style: { overflow: "hidden" },
5305
- onClick: ($) => m(F.id, A)
5310
+ onClick: (U) => p(F.id, A)
5306
5311
  }, {
5307
5312
  default: C(() => [
5308
5313
  w(b, {
@@ -5353,10 +5358,10 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
5353
5358
  function l() {
5354
5359
  navigator.clipboard.writeText(location.href);
5355
5360
  }
5356
- return (m, u) => {
5357
- const s = V("v-btn"), v = V("v-tooltip"), b = V("v-toolbar-title"), h = V("v-spacer"), p = V("v-toolbar"), y = V("v-card-text"), F = V("v-card"), A = V("v-dialog");
5358
- return f(), D("div", null, [
5359
- w(v, {
5361
+ return (p, u) => {
5362
+ const s = B("v-btn"), m = B("v-tooltip"), b = B("v-toolbar-title"), h = B("v-spacer"), f = B("v-toolbar"), y = B("v-card-text"), F = B("v-card"), A = B("v-dialog");
5363
+ return v(), D("div", null, [
5364
+ w(m, {
5360
5365
  elevation: "2",
5361
5366
  top: "",
5362
5367
  attach: ""
@@ -5366,7 +5371,7 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
5366
5371
  density: "comfortable",
5367
5372
  elevation: "1",
5368
5373
  icon: "mdi-share-variant",
5369
- onClick: u[0] || (u[0] = ($) => e.value = !e.value)
5374
+ onClick: u[0] || (u[0] = (U) => e.value = !e.value)
5370
5375
  }, g), null, 16)
5371
5376
  ]),
5372
5377
  default: C(() => [
@@ -5383,7 +5388,7 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
5383
5388
  default: C(() => [
5384
5389
  w(F, null, {
5385
5390
  default: C(() => [
5386
- w(p, { elevation: "0" }, {
5391
+ w(f, { elevation: "0" }, {
5387
5392
  default: C(() => [
5388
5393
  w(s, {
5389
5394
  size: "x-small",
@@ -5403,7 +5408,7 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
5403
5408
  w(y, { class: "mt-5" }, {
5404
5409
  default: C(() => [
5405
5410
  i("p", ds, [
5406
- w(v, { location: "top" }, {
5411
+ w(m, { location: "top" }, {
5407
5412
  activator: C(({ props: g }) => [
5408
5413
  w(s, _e({
5409
5414
  depressed: "",
@@ -5417,7 +5422,7 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
5417
5422
  ]),
5418
5423
  _: 1
5419
5424
  }),
5420
- w(v, { location: "top" }, {
5425
+ w(m, { location: "top" }, {
5421
5426
  activator: C(({ props: g }) => [
5422
5427
  w(s, _e({
5423
5428
  depressed: "",
@@ -5431,7 +5436,7 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
5431
5436
  ]),
5432
5437
  _: 1
5433
5438
  }),
5434
- w(v, { location: "top" }, {
5439
+ w(m, { location: "top" }, {
5435
5440
  activator: C(({ props: g }) => [
5436
5441
  w(s, _e({
5437
5442
  depressed: "",
@@ -5445,7 +5450,7 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
5445
5450
  ]),
5446
5451
  _: 1
5447
5452
  }),
5448
- w(v, { location: "top" }, {
5453
+ w(m, { location: "top" }, {
5449
5454
  activator: C(({ props: g }) => [
5450
5455
  w(s, _e({
5451
5456
  depressed: "",
@@ -5461,7 +5466,7 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
5461
5466
  ]),
5462
5467
  _: 1
5463
5468
  }),
5464
- w(v, { location: "top" }, {
5469
+ w(m, { location: "top" }, {
5465
5470
  activator: C(({ props: g }) => [
5466
5471
  w(s, _e({
5467
5472
  depressed: "",
@@ -5498,7 +5503,7 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
5498
5503
  },
5499
5504
  setup(c) {
5500
5505
  const n = c, e = T(() => ({ "background-image": `url("${encodeURI(n.image)}")` }));
5501
- return (a, t) => (f(), D("div", ms, [
5506
+ return (a, t) => (v(), D("div", ms, [
5502
5507
  i("div", {
5503
5508
  class: he(["img-div", [a.aspectRatio]]),
5504
5509
  style: se(e.value)
@@ -5517,8 +5522,8 @@ const lo = { id: "player-wrapper" }, so = { id: "player-sizer" }, io = {
5517
5522
  setup(c, { emit: n }) {
5518
5523
  const e = n;
5519
5524
  return (a, t) => {
5520
- const o = V("v-btn");
5521
- return f(), D("div", hs, [
5525
+ const o = B("v-btn");
5526
+ return v(), D("div", hs, [
5522
5527
  w(o, {
5523
5528
  density: "comfortable",
5524
5529
  elevation: "3",
@@ -5624,7 +5629,7 @@ const gs = {
5624
5629
  },
5625
5630
  emits: ["onSnapshot", "saveSettings", "onInteriorUpdate", "onCameraUpdate", "onError"],
5626
5631
  setup(c, { emit: n }) {
5627
- const e = c, a = n, t = d(!1), o = d(!1), r = d(), l = d(), m = d(), u = d(), s = d(), v = d(0), b = d(), h = d(), p = d(), y = d(0), F = d(0), A = d(0), g = d(!1), $ = d(!1), x = d(!1), O = d(
5632
+ const e = c, a = n, t = d(!1), o = d(!1), r = d(), l = d(), p = d(), u = d(), s = d(), m = d(0), b = d(), h = d(), f = d(), y = d(0), F = d(0), A = d(0), g = d(!1), U = d(!1), x = d(!1), O = d(
5628
5633
  new At(document, "player-wrapper")
5629
5634
  ), I = T(() => {
5630
5635
  if (l.value) {
@@ -5651,7 +5656,7 @@ const gs = {
5651
5656
  return k;
5652
5657
  }), Y = T(() => L.value.findIndex(
5653
5658
  (k) => k.archetypeID === b.value
5654
- )), S = T(() => m.value ? m.value.cameras.map((k) => ({
5659
+ )), S = T(() => p.value ? p.value.cameras.map((k) => ({
5655
5660
  ...k,
5656
5661
  thumbnailUrl: ge(
5657
5662
  `/${b.value}/${e.apartmentId}/thumbs/200/${k.id}.jpg`
@@ -5659,15 +5664,15 @@ const gs = {
5659
5664
  imageUrl: ge(
5660
5665
  `/${b.value}/${e.apartmentId}/images/1600/${k.id}.jpg`
5661
5666
  )
5662
- })) : []), j = T(() => !S.value || !S.value[v.value] ? "" : S.value[v.value].imageUrl), L = T(() => {
5667
+ })) : []), j = T(() => !S.value || !S.value[m.value] ? "" : S.value[m.value].imageUrl), L = T(() => {
5663
5668
  let k = [];
5664
5669
  return r.value && (k = r.value.archetypes), e.validInteriorIds.length ? k.filter(
5665
5670
  (N) => e.validInteriorIds.includes(N.archetypeID)
5666
5671
  ) : k;
5667
- }), E = T(() => m.value ? L.value.map((k) => ({
5672
+ }), E = T(() => p.value ? L.value.map((k) => ({
5668
5673
  ...k,
5669
5674
  url: ge(
5670
- `/${k.archetypeID}/${e.apartmentId}/thumbs/200/${S.value[v.value].id}.jpg`
5675
+ `/${k.archetypeID}/${e.apartmentId}/thumbs/200/${S.value[m.value].id}.jpg`
5671
5676
  )
5672
5677
  })) : []), z = T(() => {
5673
5678
  if (u.value)
@@ -5680,7 +5685,7 @@ const gs = {
5680
5685
  be,
5681
5686
  e.i18nConfig ? new Fe(e.i18nConfig) : new Fe()
5682
5687
  ), H([() => e.cdnFileResolver], async () => {
5683
- await M(), q(), await B();
5688
+ await M(), q(), await R();
5684
5689
  }), H(
5685
5690
  () => e.defaultViewMode,
5686
5691
  (k) => {
@@ -5689,7 +5694,7 @@ const gs = {
5689
5694
  { immediate: !0 }
5690
5695
  ), de(async () => {
5691
5696
  try {
5692
- await M(), q(), await B(), O.value.setup(), te();
5697
+ await M(), q(), await R(), O.value.setup(), te();
5693
5698
  } catch (k) {
5694
5699
  o.value = !0, a("onError", k);
5695
5700
  }
@@ -5697,16 +5702,16 @@ const gs = {
5697
5702
  async function M() {
5698
5703
  r.value = await ue();
5699
5704
  }
5700
- async function B() {
5705
+ async function R() {
5701
5706
  if (l.value = await oe(
5702
5707
  b.value,
5703
5708
  e.apartmentId
5704
- ), l.value && (h.value = l.value.cameras.find(() => !0).id), m.value = await Ae(
5709
+ ), l.value && (h.value = l.value.cameras.find(() => !0).id), p.value = await Ae(
5705
5710
  b.value,
5706
5711
  e.apartmentId
5707
- ), m.value) {
5712
+ ), p.value) {
5708
5713
  let k = e.defaultWaypointIndex !== null ? e.defaultWaypointIndex : 0;
5709
- v.value = k, h.value = m.value.cameras[k].id, p.value = m.value.cameras[k].id;
5714
+ m.value = k, h.value = p.value.cameras[k].id, f.value = p.value.cameras[k].id;
5710
5715
  }
5711
5716
  e.showMiniMap && (u.value = await xe(
5712
5717
  b.value,
@@ -5795,25 +5800,25 @@ const gs = {
5795
5800
  }
5796
5801
  }
5797
5802
  function we() {
5798
- let k = v.value + 1;
5799
- k >= S.value.length && (k = 0), v.value = k, Ee(S.value[v.value].id);
5803
+ let k = m.value + 1;
5804
+ k >= S.value.length && (k = 0), m.value = k, Ee(S.value[m.value].id);
5800
5805
  }
5801
5806
  function ke() {
5802
- let k = v.value - 1;
5803
- k < 0 && (k = S.value.length - 1), v.value = k, Ee(S.value[v.value].id);
5807
+ let k = m.value - 1;
5808
+ k < 0 && (k = S.value.length - 1), m.value = k, Ee(S.value[m.value].id);
5804
5809
  }
5805
5810
  function Ce(k, N = !0) {
5806
5811
  let X = S.value.findIndex((pe) => pe.id === k);
5807
- X != -1 && (v.value = X, N && Ee(k));
5812
+ X != -1 && (m.value = X, N && Ee(k));
5808
5813
  }
5809
5814
  function Ee(k) {
5810
5815
  h.value = k;
5811
5816
  }
5812
5817
  function Me(k) {
5813
- b.value = k, a("onInteriorUpdate", k), a("onCameraUpdate", p.value, l.value);
5818
+ b.value = k, a("onInteriorUpdate", k), a("onCameraUpdate", f.value, l.value);
5814
5819
  }
5815
5820
  function Xe(k) {
5816
- Ce(k, !1), p.value = k, a("onCameraUpdate", k, l.value);
5821
+ Ce(k, !1), f.value = k, a("onCameraUpdate", k, l.value);
5817
5822
  }
5818
5823
  function $e(k) {
5819
5824
  y.value = k;
@@ -5855,7 +5860,7 @@ const gs = {
5855
5860
  throw new Error(X);
5856
5861
  }
5857
5862
  }
5858
- function dt(k) {
5863
+ function vt(k) {
5859
5864
  s.value.updateSettings(k);
5860
5865
  }
5861
5866
  function St(k) {
@@ -5869,27 +5874,27 @@ const gs = {
5869
5874
  }
5870
5875
  const Ft = T(() => /Android|webOS|iPhone|iPad|BlackBerry|Windows Phone|Opera Mini|IEMobile|Mobile/i.test(
5871
5876
  window.navigator.userAgent
5872
- )), vt = T(() => Ft.value ? "platform-mobile" : "platform-desktop");
5877
+ )), mt = T(() => Ft.value ? "platform-mobile" : "platform-desktop");
5873
5878
  return (k, N) => {
5874
- const X = V("v-btn");
5875
- return f(), D("div", {
5876
- class: he(["virtual-tour-wrapper", [vt.value]])
5879
+ const X = B("v-btn");
5880
+ return v(), D("div", {
5881
+ class: he(["virtual-tour-wrapper", [mt.value]])
5877
5882
  }, [
5878
- o.value ? (f(), D("div", gs, "Error loading the player!!")) : U("", !0),
5883
+ o.value ? (v(), D("div", gs, "Error loading the player!!")) : $("", !0),
5879
5884
  i("div", ys, [
5880
- !O.value.isActive && u.value && p.value && z.value && b.value && $.value ? (f(), R(ft, {
5885
+ !O.value.isActive && u.value && f.value && z.value && b.value && U.value ? (v(), V(ft, {
5881
5886
  key: 0,
5882
5887
  "cdn-file-resolver": k.cdnFileResolver,
5883
5888
  "apartment-json": l.value,
5884
5889
  level: _.value,
5885
5890
  "minimap-json": u.value,
5886
5891
  rotation: y.value,
5887
- "current-camera": p.value,
5888
- onClose: N[0] || (N[0] = (pe) => $.value = !1)
5889
- }, null, 8, ["cdn-file-resolver", "apartment-json", "level", "minimap-json", "rotation", "current-camera"])) : U("", !0),
5890
- b.value && h.value ? (f(), D("div", {
5892
+ "current-camera": f.value,
5893
+ onClose: N[0] || (N[0] = (pe) => U.value = !1)
5894
+ }, null, 8, ["cdn-file-resolver", "apartment-json", "level", "minimap-json", "rotation", "current-camera"])) : $("", !0),
5895
+ b.value && h.value ? (v(), D("div", {
5891
5896
  key: 1,
5892
- class: he(["v-player", [vt.value]])
5897
+ class: he(["v-player", [mt.value]])
5893
5898
  }, [
5894
5899
  w(_o, {
5895
5900
  "cdn-file-resolver": k.cdnFileResolver,
@@ -5908,13 +5913,13 @@ const gs = {
5908
5913
  onPlayerApiCallback: le
5909
5914
  }, {
5910
5915
  "slideshow-image": C(() => [
5911
- g.value ? (f(), R(fs, {
5916
+ g.value ? (v(), V(fs, {
5912
5917
  key: 0,
5913
5918
  image: j.value
5914
- }, null, 8, ["image"])) : U("", !0)
5919
+ }, null, 8, ["image"])) : $("", !0)
5915
5920
  ]),
5916
5921
  "top-left": C(() => [
5917
- k.adminMode ? ve((f(), R(X, {
5922
+ k.adminMode ? ve((v(), V(X, {
5918
5923
  key: 0,
5919
5924
  density: "comfortable",
5920
5925
  icon: "mdi-cog-outline",
@@ -5923,67 +5928,67 @@ const gs = {
5923
5928
  onClick: N[1] || (N[1] = (pe) => t.value = !t.value)
5924
5929
  }, null, 512)), [
5925
5930
  [fe, x.value]
5926
- ]) : U("", !0),
5927
- u.value && h.value && z.value ? ve((f(), R(X, {
5931
+ ]) : $("", !0),
5932
+ u.value && h.value && z.value ? ve((v(), V(X, {
5928
5933
  key: 1,
5929
5934
  density: "comfortable",
5930
5935
  elevation: "3",
5931
5936
  icon: "mdi-floor-plan",
5932
5937
  class: "mr-2",
5933
- onClick: N[2] || (N[2] = (pe) => $.value = !$.value)
5938
+ onClick: N[2] || (N[2] = (pe) => U.value = !U.value)
5934
5939
  }, null, 512)), [
5935
5940
  [fe, x.value]
5936
- ]) : U("", !0),
5937
- x.value && k.showFloorLevel && I.value.length > 1 ? (f(), R(Ao, {
5941
+ ]) : $("", !0),
5942
+ x.value && k.showFloorLevel && I.value.length > 1 ? (v(), V(Ao, {
5938
5943
  key: 2,
5939
5944
  level: F.value,
5940
5945
  "floor-levels": I.value,
5941
5946
  onLevel: Ke
5942
- }, null, 8, ["level", "floor-levels"])) : U("", !0),
5943
- x.value && k.adminMode && t.value ? (f(), D("div", _s, [
5947
+ }, null, 8, ["level", "floor-levels"])) : $("", !0),
5948
+ x.value && k.adminMode && t.value ? (v(), D("div", _s, [
5944
5949
  w(El, {
5945
5950
  "initial-settings": k.playerSettings,
5946
- onUpdateSettings: dt,
5951
+ onUpdateSettings: vt,
5947
5952
  onSaveSettings: St
5948
5953
  }, null, 8, ["initial-settings"])
5949
- ])) : U("", !0)
5954
+ ])) : $("", !0)
5950
5955
  ]),
5951
5956
  "top-center": C(() => [
5952
- x.value ? (f(), R(ss, {
5957
+ x.value ? (v(), V(ss, {
5953
5958
  key: 0,
5954
5959
  "return-url": k.websiteUrl
5955
- }, null, 8, ["return-url"])) : U("", !0)
5960
+ }, null, 8, ["return-url"])) : $("", !0)
5956
5961
  ]),
5957
5962
  "top-right": C(() => [
5958
- l.value && k.showCompass ? ve((f(), D("div", bs, [
5963
+ l.value && k.showCompass ? ve((v(), D("div", bs, [
5959
5964
  w(Mo, { rotation: y.value }, null, 8, ["rotation"])
5960
5965
  ], 512)), [
5961
5966
  [fe, x.value]
5962
- ]) : U("", !0),
5967
+ ]) : $("", !0),
5963
5968
  i("div", {
5964
- onClick: N[3] || (N[3] = (pe) => $.value = !$.value)
5969
+ onClick: N[3] || (N[3] = (pe) => U.value = !U.value)
5965
5970
  }, [
5966
- x.value && l.value && W.value && k.showTimeOfDay ? (f(), R(Oo, {
5971
+ x.value && l.value && W.value && k.showTimeOfDay ? (v(), V(Oo, {
5967
5972
  key: 0,
5968
5973
  hours: re.value.hours,
5969
5974
  minutes: re.value.minutes,
5970
5975
  class: "time-of-day",
5971
5976
  style: se({
5972
- cursor: u.value && p.value && z.value ? "pointer" : "default"
5977
+ cursor: u.value && f.value && z.value ? "pointer" : "default"
5973
5978
  })
5974
- }, null, 8, ["hours", "minutes", "style"])) : U("", !0)
5979
+ }, null, 8, ["hours", "minutes", "style"])) : $("", !0)
5975
5980
  ])
5976
5981
  ]),
5977
5982
  "center-left": C(() => [
5978
5983
  w(Le, { name: "slide-x-transition" }, {
5979
5984
  default: C(() => [
5980
- g.value ? (f(), R(X, {
5985
+ g.value ? (v(), V(X, {
5981
5986
  key: 0,
5982
5987
  density: "comfortable",
5983
5988
  elevation: "3",
5984
5989
  icon: "mdi-chevron-left",
5985
5990
  onClick: ke
5986
- })) : U("", !0)
5991
+ })) : $("", !0)
5987
5992
  ]),
5988
5993
  _: 1
5989
5994
  })
@@ -5993,89 +5998,89 @@ const gs = {
5993
5998
  project: ae(ie)(e.cdnFileResolver, ""),
5994
5999
  onCloseTutorial: N[4] || (N[4] = (pe) => x.value = !0)
5995
6000
  }, null, 8, ["project"]),
5996
- O.value.isActive && u.value && p.value && z.value && $.value ? (f(), R(ft, {
6001
+ O.value.isActive && u.value && f.value && z.value && U.value ? (v(), V(ft, {
5997
6002
  key: 0,
5998
6003
  "cdn-file-resolver": k.cdnFileResolver,
5999
6004
  "apartment-json": l.value,
6000
6005
  "minimap-json": u.value,
6001
6006
  rotation: y.value,
6002
- "current-camera": p.value,
6007
+ "current-camera": f.value,
6003
6008
  level: _.value,
6004
- onClose: N[5] || (N[5] = (pe) => $.value = !1)
6005
- }, null, 8, ["cdn-file-resolver", "apartment-json", "minimap-json", "rotation", "current-camera", "level"])) : U("", !0)
6009
+ onClose: N[5] || (N[5] = (pe) => U.value = !1)
6010
+ }, null, 8, ["cdn-file-resolver", "apartment-json", "minimap-json", "rotation", "current-camera", "level"])) : $("", !0)
6006
6011
  ]),
6007
6012
  "center-right": C(() => [
6008
6013
  w(Le, { name: "slide-x-reverse-transition" }, {
6009
6014
  default: C(() => [
6010
- g.value ? (f(), R(X, {
6015
+ g.value ? (v(), V(X, {
6011
6016
  key: 0,
6012
6017
  density: "comfortable",
6013
6018
  elevation: "3",
6014
6019
  icon: "mdi-chevron-right",
6015
6020
  onClick: we
6016
- })) : U("", !0)
6021
+ })) : $("", !0)
6017
6022
  ]),
6018
6023
  _: 1
6019
6024
  })
6020
6025
  ]),
6021
6026
  "bottom-left": C(() => [
6022
- x.value && k.showFullScreen ? (f(), R(It, {
6027
+ x.value && k.showFullScreen ? (v(), V(It, {
6023
6028
  key: 0,
6024
6029
  "is-full-screen": O.value.isActive,
6025
6030
  class: "btn-fullscreen",
6026
6031
  onToggleFullscreen: ze
6027
- }, null, 8, ["is-full-screen"])) : U("", !0),
6028
- x.value && k.showSnapshot ? (f(), D("div", ws, [
6032
+ }, null, 8, ["is-full-screen"])) : $("", !0),
6033
+ x.value && k.showSnapshot ? (v(), D("div", ws, [
6029
6034
  w(X, {
6030
6035
  density: "comfortable",
6031
6036
  elevation: "3",
6032
6037
  icon: "mdi-camera",
6033
6038
  onClick: De
6034
6039
  })
6035
- ])) : U("", !0),
6036
- x.value && k.showShare && !O.value.isActive ? (f(), D("div", ks, [
6040
+ ])) : $("", !0),
6041
+ x.value && k.showShare && !O.value.isActive ? (v(), D("div", ks, [
6037
6042
  w(Ct)
6038
- ])) : U("", !0)
6043
+ ])) : $("", !0)
6039
6044
  ]),
6040
6045
  "bottom-center": C(() => [
6041
- x.value && k.showCarousel ? (f(), D("div", Cs, [
6042
- k.displayViewModeSwitch && x.value && !O.value.isActive ? (f(), R($o, {
6046
+ x.value && k.showCarousel ? (v(), D("div", Cs, [
6047
+ k.displayViewModeSwitch && x.value && !O.value.isActive ? (v(), V($o, {
6043
6048
  key: 0,
6044
6049
  "show-static-image": g.value,
6045
6050
  onToggle: Te
6046
- }, null, 8, ["show-static-image"])) : U("", !0),
6047
- x.value && O.value.isActive ? (f(), R(et, {
6051
+ }, null, 8, ["show-static-image"])) : $("", !0),
6052
+ x.value && O.value.isActive ? (v(), V(et, {
6048
6053
  key: 1,
6049
6054
  class: he([O.value.isActive ? "full-screen" : ""]),
6050
6055
  thumbnails: S.value,
6051
- active: v.value,
6056
+ active: m.value,
6052
6057
  onNext: we,
6053
6058
  onPrevious: ke,
6054
6059
  onGoto: Ce
6055
- }, null, 8, ["class", "thumbnails", "active"])) : U("", !0)
6056
- ])) : U("", !0)
6060
+ }, null, 8, ["class", "thumbnails", "active"])) : $("", !0)
6061
+ ])) : $("", !0)
6057
6062
  ]),
6058
6063
  "bottom-right": C(() => [
6059
- x.value && k.showInteriorOptions && E.value ? (f(), R(Fo, {
6064
+ x.value && k.showInteriorOptions && E.value ? (v(), V(Fo, {
6060
6065
  key: 0,
6061
6066
  "cdn-file-resolver": k.cdnFileResolver,
6062
6067
  "available-archetypes": E.value,
6063
6068
  "selected-index": Y.value,
6064
6069
  onSelectInterior: Me
6065
- }, null, 8, ["cdn-file-resolver", "available-archetypes", "selected-index"])) : U("", !0)
6070
+ }, null, 8, ["cdn-file-resolver", "available-archetypes", "selected-index"])) : $("", !0)
6066
6071
  ]),
6067
6072
  _: 1
6068
6073
  }, 8, ["cdn-file-resolver", "style", "show-static-image", "is-full-screen", "current-camera-id", "mouse-sensitivity", "interior-id", "apartment-id"]),
6069
- k.showCarousel && m.value ? (f(), R(et, {
6074
+ k.showCarousel && p.value ? (v(), V(et, {
6070
6075
  key: 0,
6071
6076
  class: "waypoint-carousel below-player",
6072
6077
  thumbnails: S.value,
6073
- active: v.value,
6078
+ active: m.value,
6074
6079
  onNext: we,
6075
6080
  onPrevious: ke,
6076
6081
  onGoto: Ce
6077
- }, null, 8, ["thumbnails", "active"])) : U("", !0)
6078
- ], 2)) : U("", !0)
6082
+ }, null, 8, ["thumbnails", "active"])) : $("", !0)
6083
+ ], 2)) : $("", !0)
6079
6084
  ])
6080
6085
  ], 2);
6081
6086
  };
@@ -6114,7 +6119,7 @@ const gs = {
6114
6119
  },
6115
6120
  emits: ["newSizeCallback"],
6116
6121
  setup(c, { emit: n }) {
6117
- return (e, a) => (f(), D("div", Ss, [
6122
+ return (e, a) => (v(), D("div", Ss, [
6118
6123
  i("div", Ls, [
6119
6124
  K(e.$slots, "slideshow-image", {}, void 0, !0),
6120
6125
  i("div", Fs, [
@@ -6169,8 +6174,8 @@ const gs = {
6169
6174
  const e = d(0), a = d(
6170
6175
  new At(document, "player-wrapper")
6171
6176
  ), t = T(() => n.images.map(
6172
- (s, v) => ({
6173
- id: `image-${v}`,
6177
+ (s, m) => ({
6178
+ id: `image-${m}`,
6174
6179
  thumbnailUrl: s
6175
6180
  })
6176
6181
  )), o = T(() => t.value[e.value]);
@@ -6184,19 +6189,19 @@ const gs = {
6184
6189
  let s = e.value + 1;
6185
6190
  s >= t.value.length && (s = 0), e.value = s;
6186
6191
  }
6187
- function m() {
6192
+ function p() {
6188
6193
  let s = e.value - 1;
6189
6194
  s < 0 && (s = t.value.length - 1), e.value = s;
6190
6195
  }
6191
- function u(s, v = !0) {
6196
+ function u(s, m = !0) {
6192
6197
  let b = t.value.findIndex(
6193
6198
  (h) => h.id === s
6194
6199
  );
6195
6200
  b != -1 && (e.value = b);
6196
6201
  }
6197
- return (s, v) => {
6198
- const b = V("v-img"), h = V("v-btn");
6199
- return f(), D("div", Us, [
6202
+ return (s, m) => {
6203
+ const b = B("v-img"), h = B("v-btn");
6204
+ return v(), D("div", Us, [
6200
6205
  i("div", Hs, [
6201
6206
  i("div", null, [
6202
6207
  w($s, {
@@ -6215,13 +6220,13 @@ const gs = {
6215
6220
  "center-left": C(() => [
6216
6221
  w(Le, { name: "slide-x-transition" }, {
6217
6222
  default: C(() => [
6218
- t.value.length > 1 ? (f(), R(h, {
6223
+ t.value.length > 1 ? (v(), V(h, {
6219
6224
  key: 0,
6220
6225
  density: "comfortable",
6221
6226
  elevation: "3",
6222
6227
  icon: "mdi-chevron-left",
6223
- onClick: m
6224
- })) : U("", !0)
6228
+ onClick: p
6229
+ })) : $("", !0)
6225
6230
  ]),
6226
6231
  _: 1
6227
6232
  })
@@ -6230,52 +6235,52 @@ const gs = {
6230
6235
  "center-right": C(() => [
6231
6236
  w(Le, { name: "slide-x-reverse-transition" }, {
6232
6237
  default: C(() => [
6233
- t.value.length > 1 ? (f(), R(h, {
6238
+ t.value.length > 1 ? (v(), V(h, {
6234
6239
  key: 0,
6235
6240
  density: "comfortable",
6236
6241
  elevation: "3",
6237
6242
  icon: "mdi-chevron-right",
6238
6243
  onClick: l
6239
- })) : U("", !0)
6244
+ })) : $("", !0)
6240
6245
  ]),
6241
6246
  _: 1
6242
6247
  })
6243
6248
  ]),
6244
6249
  "bottom-left": C(() => [
6245
- s.showFullScreen ? (f(), R(It, {
6250
+ s.showFullScreen ? (v(), V(It, {
6246
6251
  key: 0,
6247
6252
  "is-full-screen": a.value.isActive,
6248
6253
  class: "btn-fullscreen",
6249
6254
  onToggleFullscreen: r
6250
- }, null, 8, ["is-full-screen"])) : U("", !0),
6251
- s.showShare ? (f(), D("div", Ps, [
6255
+ }, null, 8, ["is-full-screen"])) : $("", !0),
6256
+ s.showShare ? (v(), D("div", Ps, [
6252
6257
  w(Ct)
6253
- ])) : U("", !0)
6258
+ ])) : $("", !0)
6254
6259
  ]),
6255
6260
  "bottom-center": C(() => [
6256
6261
  i("div", null, [
6257
- a.value.isActive && t.value.length > 1 ? (f(), R(et, {
6262
+ a.value.isActive && t.value.length > 1 ? (v(), V(et, {
6258
6263
  key: 0,
6259
6264
  class: he([a.value.isActive ? "full-screen" : ""]),
6260
6265
  thumbnails: t.value,
6261
6266
  active: e.value,
6262
6267
  onNext: l,
6263
- onPrevious: m,
6268
+ onPrevious: p,
6264
6269
  onGoto: u
6265
- }, null, 8, ["class", "thumbnails", "active"])) : U("", !0)
6270
+ }, null, 8, ["class", "thumbnails", "active"])) : $("", !0)
6266
6271
  ])
6267
6272
  ]),
6268
6273
  "bottom-right": C(() => []),
6269
6274
  _: 1
6270
6275
  }, 8, ["is-full-screen"]),
6271
- t.value.length > 1 ? (f(), R(et, {
6276
+ t.value.length > 1 ? (v(), V(et, {
6272
6277
  key: 0,
6273
6278
  thumbnails: t.value,
6274
6279
  active: e.value,
6275
6280
  onNext: l,
6276
- onPrevious: m,
6281
+ onPrevious: p,
6277
6282
  onGoto: u
6278
- }, null, 8, ["thumbnails", "active"])) : U("", !0)
6283
+ }, null, 8, ["thumbnails", "active"])) : $("", !0)
6279
6284
  ])
6280
6285
  ])
6281
6286
  ]);