@qispace/vue3-player 0.1.21 → 0.1.22

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 At = Object.defineProperty;
2
2
  var Lt = (v, t, e) => t in v ? At(v, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : v[t] = e;
3
3
  var te = (v, t, e) => (Lt(v, typeof t != "symbol" ? t + "" : t, e), e);
4
- import { defineComponent as j, ref as u, computed as T, openBlock as m, createElementBlock as S, watch as H, onMounted as ue, onBeforeUnmount as Pe, withDirectives as de, createElementVNode as i, normalizeStyle as le, vShow as pe, createVNode as w, Fragment as ie, renderList as ve, createCommentVNode as Y, inject as Be, resolveComponent as B, withCtx as A, toDisplayString as N, unref as ne, createTextVNode as X, normalizeClass as xe, createBlock as $, renderSlot as oe, provide as Ke, reactive as lt, watchEffect as ke, resolveDynamicComponent as ft, normalizeProps as et, guardReactiveProps as tt, mergeProps as ye, nextTick as Fe, Transition as Se, createSlots as xt, pushScopeId as st, popScopeId as rt, vModelText as Dt, createStaticVNode as ht, onBeforeUpdate as Ft } from "vue";
4
+ import { defineComponent as j, ref as u, computed as T, openBlock as m, createElementBlock as S, watch as H, onMounted as ue, onBeforeUnmount as Pe, withDirectives as de, createElementVNode as i, normalizeStyle as le, vShow as pe, createVNode as w, Fragment as ie, renderList as ve, createCommentVNode as Y, inject as Be, resolveComponent as B, withCtx as A, toDisplayString as N, unref as ne, createTextVNode as X, normalizeClass as xe, createBlock as $, renderSlot as oe, provide as Ke, reactive as lt, watchEffect as ke, resolveDynamicComponent as ft, normalizeProps as et, guardReactiveProps as tt, mergeProps as ye, nextTick as De, Transition as Se, createSlots as xt, pushScopeId as st, popScopeId as rt, vModelText as Ft, createStaticVNode as ht, onBeforeUpdate as Dt } from "vue";
5
5
  import at from "axios";
6
6
  import * as St from "@qispace/player-core";
7
7
  import * as Ve from "three";
@@ -76,21 +76,21 @@ const Et = /* @__PURE__ */ j({
76
76
  },
77
77
  emits: ["selectUnit", "goToUnit", "hoverOver", "hoverOut", "pos"],
78
78
  setup(v, { emit: t }) {
79
- const e = v, a = t, n = u({ x: 0, y: 0, width: 0, height: 0 }), o = u(0), r = u(0), s = u(), p = u(), l = u(), d = u(), c = u(-1), b = u(!1), h = u(), f = u(), _ = u({}), D = u("auto"), k = u(new ge()), g = u({}), U = u(), y = u(), V = u(), C = u(), L = u(), G = T(() => V.value.isHoverEnabled), F = T(() => se(
79
+ const e = v, a = t, n = u({ x: 0, y: 0, width: 0, height: 0 }), o = u(0), r = u(0), s = u(), p = u(), l = u(), d = u(), c = u(-1), b = u(!1), h = u(), f = u(), _ = u({}), F = u("auto"), k = u(new ge()), g = u({}), U = u(), y = u(), V = u(), C = u(), L = u(), G = T(() => V.value.isHoverEnabled), D = T(() => se(
80
80
  e.cdnFileResolver,
81
81
  `/scenedata${e.viewModel.currentScene}.png`
82
- )), Z = T(() => F.value in _.value ? _.value[F.value] : null), x = T(() => c.value < 0 ? !1 : e.sceneData.find((Q) => Q.index === c.value) || !1), E = T(() => ({
82
+ )), Z = T(() => D.value in _.value ? _.value[D.value] : null), x = T(() => c.value < 0 ? !1 : e.sceneData.find((Q) => Q.index === c.value) || !1), E = T(() => ({
83
83
  width: o.value + "px",
84
84
  height: r.value + "px",
85
- cursor: D.value
85
+ cursor: F.value
86
86
  })), M = T(() => `hover-${b.value ? "over" : "out"}-${x.value ? typeof x.value == "object" && "unitId" in x.value ? x.value.unitId : x.value : ""}`);
87
87
  H(
88
- F,
88
+ D,
89
89
  () => {
90
- _.value[F.value] || k.value.loadImageData(F.value).then((W) => {
90
+ _.value[D.value] || k.value.loadImageData(D.value).then((W) => {
91
91
  _.value = {
92
92
  ..._.value,
93
- [F.value]: W
93
+ [D.value]: W
94
94
  };
95
95
  });
96
96
  },
@@ -100,7 +100,7 @@ const Et = /* @__PURE__ */ j({
100
100
  }), H(
101
101
  () => e.viewModel.currentScene,
102
102
  () => {
103
- De();
103
+ Fe();
104
104
  },
105
105
  { immediate: !0 }
106
106
  ), H(
@@ -110,10 +110,10 @@ const Et = /* @__PURE__ */ j({
110
110
  () => e.selectedUnitId
111
111
  ],
112
112
  () => {
113
- De();
113
+ Fe();
114
114
  }
115
115
  ), H(x, () => {
116
- De(), x.value ? D.value = "pointer" : D.value = "auto";
116
+ Fe(), x.value ? F.value = "pointer" : F.value = "auto";
117
117
  }), H(M, () => {
118
118
  b.value ? a("hoverOver", {
119
119
  hoverUnit: x.value ? x.value.unitId : !1,
@@ -239,9 +239,9 @@ const Et = /* @__PURE__ */ j({
239
239
  o.value = L.value.offsetWidth, r.value = L.value.offsetHeight;
240
240
  }
241
241
  function Ee() {
242
- P(), De();
242
+ P(), Fe();
243
243
  }
244
- function De() {
244
+ function Fe() {
245
245
  be(), me(), s.value && l.value && s.value.putImageData(l.value, 0, 0);
246
246
  }
247
247
  function Xe() {
@@ -328,9 +328,9 @@ const Et = /* @__PURE__ */ j({
328
328
  };
329
329
  p.value.loadJson(V).then((L) => {
330
330
  C.markup = L;
331
- const F = new DOMParser().parseFromString(L, "image/svg+xml").getElementsByTagName("svg")[0];
332
- C.viewBox = F.getAttribute("viewBox"), C.svgObjects = Array.from(
333
- F.querySelectorAll("*[data-index]")
331
+ const D = new DOMParser().parseFromString(L, "image/svg+xml").getElementsByTagName("svg")[0];
332
+ C.viewBox = D.getAttribute("viewBox"), C.svgObjects = Array.from(
333
+ D.querySelectorAll("*[data-index]")
334
334
  ).map((Z) => ({
335
335
  index: parseInt(Z.getAttribute("data-index")),
336
336
  svg: Z.innerHTML
@@ -359,7 +359,7 @@ const Et = /* @__PURE__ */ j({
359
359
  function _(y) {
360
360
  c.value && (o.value = -1);
361
361
  }
362
- function D(y) {
362
+ function F(y) {
363
363
  const V = h(y);
364
364
  a("selectUnit", V), c.value && V && e.canGoToUnitCallback(V) ? a("goToUnit", V) : o.value = y;
365
365
  }
@@ -369,12 +369,12 @@ const Et = /* @__PURE__ */ j({
369
369
  o.value < 0 && e.selectedUnitId && V === e.selectedUnitId ? C = "selected" : o.value >= 0 && o.value === y && (C = "hover");
370
370
  const L = e.colorCallback(V, C);
371
371
  if (L) {
372
- const { r: G, g: F, b: Z, a: x, s: E } = L;
372
+ const { r: G, g: D, b: Z, a: x, s: E } = L;
373
373
  return {
374
374
  strokeWidth: E !== void 0 ? E : 2,
375
- stroke: `rgb(${G}, ${F}, ${Z})`,
375
+ stroke: `rgb(${G}, ${D}, ${Z})`,
376
376
  strokeOpacity: 1,
377
- fill: `rgb(${G}, ${F}, ${Z})`,
377
+ fill: `rgb(${G}, ${D}, ${Z})`,
378
378
  fillOpacity: x / 255,
379
379
  cursor: `${e.canGoToUnitCallback(V) ? "cursor" : "default"} !important`
380
380
  };
@@ -415,7 +415,7 @@ const Et = /* @__PURE__ */ j({
415
415
  style: le(k(C)),
416
416
  onMouseenter: (G) => f(C),
417
417
  onMouseleave: (G) => _(),
418
- onClick: (G) => D(C)
418
+ onClick: (G) => F(C)
419
419
  }, null, 44, Bt))), 128))
420
420
  ], 8, Vt)) : Y("", !0)
421
421
  ], 4), [
@@ -616,7 +616,7 @@ const Pt = {
616
616
  H(
617
617
  () => e.viewModel.currentScene,
618
618
  (k, g) => {
619
- const U = D(g, k), y = _(g, k);
619
+ const U = F(g, k), y = _(g, k);
620
620
  d(g, U, y);
621
621
  }
622
622
  ), ue(() => {
@@ -681,7 +681,7 @@ const Pt = {
681
681
  const U = ze / 2, y = Math.abs(k - g);
682
682
  return y > U ? ze - y : y;
683
683
  }
684
- function D(k, g) {
684
+ function F(k, g) {
685
685
  if (k === g)
686
686
  return 0;
687
687
  const y = Math.abs(k - g) < ze / 2;
@@ -798,10 +798,10 @@ const Pt = {
798
798
  ), H(
799
799
  () => e.mobile,
800
800
  () => {
801
- e.mobile ? D() : g();
801
+ e.mobile ? F() : g();
802
802
  }
803
803
  ), ue(() => {
804
- e.desktop && _(), e.mobile && D();
804
+ e.desktop && _(), e.mobile && F();
805
805
  }), Pe(() => {
806
806
  e.desktop && k(), e.mobile && g();
807
807
  });
@@ -818,10 +818,10 @@ const Pt = {
818
818
  capture: !0
819
819
  });
820
820
  }
821
- function D() {
821
+ function F() {
822
822
  c.value.addEventListener("touchstart", G, {
823
823
  capture: !0
824
- }), c.value.addEventListener("touchmove", F, {
824
+ }), c.value.addEventListener("touchmove", D, {
825
825
  capture: !0
826
826
  }), window.addEventListener("touchend", Z, {
827
827
  capture: !0
@@ -845,7 +845,7 @@ const Pt = {
845
845
  function g() {
846
846
  c.value.removeEventListener("touchstart", G, {
847
847
  capture: !0
848
- }), c.value.removeEventListener("touchmove", F, {
848
+ }), c.value.removeEventListener("touchmove", D, {
849
849
  capture: !0
850
850
  }), window.removeEventListener("touchend", Z, {
851
851
  capture: !0
@@ -878,7 +878,7 @@ const Pt = {
878
878
  function G(R) {
879
879
  s.value = R.touches.length === 1, p.value = R.touches.length === 2, l.value = R;
880
880
  }
881
- function F(R) {
881
+ function D(R) {
882
882
  if (s.value) {
883
883
  const { x: P, y: ee } = x(R.touches[0]), { x: me, y: ce } = x(l.value.touches[0]), re = {
884
884
  x: P - me,
@@ -886,8 +886,8 @@ const Pt = {
886
886
  };
887
887
  E(re.x), M(re.y);
888
888
  } else if (p.value && R.touches.length === 2) {
889
- const { x: P, y: ee } = x(R.touches[0]), { x: me, y: ce } = x(l.value.touches[0]), { x: re, y: Ie } = x(R.touches[1]), { x: Ae, y: _e } = x(l.value.touches[1]), be = Math.hypot(me - Ae, ce - _e), we = Math.hypot(P - re, ee - Ie), Ee = (re + P) / 2, De = (Ie + ee) / 2;
890
- O(we - be, Ee, De);
889
+ const { x: P, y: ee } = x(R.touches[0]), { x: me, y: ce } = x(l.value.touches[0]), { x: re, y: Ie } = x(R.touches[1]), { x: Ae, y: _e } = x(l.value.touches[1]), be = Math.hypot(me - Ae, ce - _e), we = Math.hypot(P - re, ee - Ie), Ee = (re + P) / 2, Fe = (Ie + ee) / 2;
890
+ O(we - be, Ee, Fe);
891
891
  }
892
892
  l.value = R;
893
893
  }
@@ -1091,35 +1091,35 @@ const sn = { key: 0 }, rn = { class: "interactive-viewer" }, un = { class: "fill
1091
1091
  Ce,
1092
1092
  a.i18nConfig ? new Me(a.i18nConfig) : new Me()
1093
1093
  );
1094
- const o = lt({ isReady: !1, isError: !1 }), r = u(), s = u(), p = u(), l = u(), d = u({ x: 0, y: 0, width: 0, height: 0 }), c = u(), b = u(), h = u(), f = T(() => h.value.isHoverEnabled), _ = T(() => a.useSvg ? Ot : Tt), D = T(() => a.selectedUnitId), k = T(() => a.nextUnitId), g = T(() => a.prevUnitId);
1094
+ const o = lt({ isReady: !1, isError: !1 }), r = u(), s = u(), p = u(), l = u(), d = u({ x: 0, y: 0, width: 0, height: 0 }), c = u(), b = u(), h = u(), f = T(() => h.value.isHoverEnabled), _ = T(() => a.useSvg ? Ot : Tt), F = T(() => a.selectedUnitId), k = T(() => a.nextUnitId), g = T(() => a.prevUnitId);
1095
1095
  ke(() => {
1096
- if (D.value && l.value) {
1097
- const C = r.value[D.value];
1096
+ if (F.value && l.value) {
1097
+ const C = r.value[F.value];
1098
1098
  C && (l.value.currentScene = C);
1099
1099
  }
1100
1100
  }), ue(async () => {
1101
1101
  const C = a.apartmentChooserData && a.apartmentChooserData.startScene !== void 0 ? a.apartmentChooserData.startScene : mn;
1102
- p.value = a.apartmentChooserData && a.apartmentChooserData.scenes !== void 0 ? a.apartmentChooserData.scenes : e, s.value = a.apartmentChooserData && a.apartmentChooserData.sceneData !== void 0 ? a.apartmentChooserData.sceneData.map((F) => ({
1103
- unitId: F.apartmentID,
1104
- index: F.index
1105
- })) : [], r.value = a.apartmentChooserData && a.apartmentChooserData.sceneData !== void 0 ? a.apartmentChooserData.sceneData.map((F) => {
1106
- const Z = F.bestScene === 0 ? 4 : F.bestScene;
1107
- return { unitId: F.apartmentID, scene: Z };
1108
- }).reduce((F, Z) => ({ ...F, [Z.unitId]: Z.scene }), {}) : {};
1109
- const L = (F, Z = "unitId") => {
1102
+ p.value = a.apartmentChooserData && a.apartmentChooserData.scenes !== void 0 ? a.apartmentChooserData.scenes : e, s.value = a.apartmentChooserData && a.apartmentChooserData.sceneData !== void 0 ? a.apartmentChooserData.sceneData.map((D) => ({
1103
+ unitId: D.apartmentID,
1104
+ index: D.index
1105
+ })) : [], r.value = a.apartmentChooserData && a.apartmentChooserData.sceneData !== void 0 ? a.apartmentChooserData.sceneData.map((D) => {
1106
+ const Z = D.bestScene === 0 ? 4 : D.bestScene;
1107
+ return { unitId: D.apartmentID, scene: Z };
1108
+ }).reduce((D, Z) => ({ ...D, [Z.unitId]: Z.scene }), {}) : {};
1109
+ const L = (D, Z = "unitId") => {
1110
1110
  let x = C, E = [];
1111
1111
  for (let M = 0; M < ut; M++)
1112
1112
  E.push(x), x = gt(x);
1113
- return F.sort((M, O) => {
1113
+ return D.sort((M, O) => {
1114
1114
  const K = E.findIndex(
1115
1115
  (P) => P === r.value[M[Z]]
1116
1116
  ), R = E.findIndex(
1117
1117
  (P) => P === r.value[O[Z]]
1118
1118
  );
1119
1119
  return K < R ? -1 : K > R ? 1 : 0;
1120
- }), F;
1121
- }, G = (F) => {
1122
- l.value = new on(F);
1120
+ }), D;
1121
+ }, G = (D) => {
1122
+ l.value = new on(D);
1123
1123
  };
1124
1124
  n("initialized", {
1125
1125
  scene: C,
@@ -1154,27 +1154,27 @@ const sn = { key: 0 }, rn = { class: "interactive-viewer" }, un = { class: "fill
1154
1154
  "view-model": l.value,
1155
1155
  "cardinal-frames": p.value,
1156
1156
  build: C.build,
1157
- onProgress: L[0] || (L[0] = (F) => o.progress = F),
1158
- onLoaded: L[1] || (L[1] = (F) => o.isReady = !0),
1159
- onError: L[2] || (L[2] = (F) => o.isError = !0)
1157
+ onProgress: L[0] || (L[0] = (D) => o.progress = D),
1158
+ onLoaded: L[1] || (L[1] = (D) => o.isReady = !0),
1159
+ onError: L[2] || (L[2] = (D) => o.isError = !0)
1160
1160
  }, null, 8, ["cdn-file-resolver", "view-model", "cardinal-frames", "build"]),
1161
1161
  o.isReady ? (m(), S("div", cn, [
1162
1162
  (m(), $(ft(_.value), {
1163
1163
  "cdn-file-resolver": a.cdnFileResolver,
1164
1164
  "view-model": l.value,
1165
- "selected-unit-id": D.value,
1165
+ "selected-unit-id": F.value,
1166
1166
  "scene-data": s.value,
1167
1167
  "color-callback": a.colorCallback,
1168
1168
  "can-go-to-unit-callback": a.canGoToUnitCallback,
1169
1169
  "draw-observer": a.drawObserver,
1170
- onSelectUnit: L[3] || (L[3] = (F) => n("selectUnit", F)),
1171
- onGoToUnit: L[4] || (L[4] = (F) => n("goToUnit", F)),
1170
+ onSelectUnit: L[3] || (L[3] = (D) => n("selectUnit", D)),
1171
+ onGoToUnit: L[4] || (L[4] = (D) => n("goToUnit", D)),
1172
1172
  onHoverOver: y,
1173
1173
  onHoverOut: V,
1174
1174
  onPos: U
1175
1175
  }, {
1176
- default: A((F) => [
1177
- oe(C.$slots, "default", et(tt(F)), void 0, !0)
1176
+ default: A((D) => [
1177
+ oe(C.$slots, "default", et(tt(D)), 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"]))
@@ -1204,19 +1204,19 @@ const sn = { key: 0 }, rn = { class: "interactive-viewer" }, un = { class: "fill
1204
1204
  w(Yt, {
1205
1205
  "can-go-to-unit-callback": a.canGoToUnitCallback,
1206
1206
  "unit-renderer": a.unitRenderer,
1207
- "selected-unit-id": D.value,
1207
+ "selected-unit-id": F.value,
1208
1208
  "prev-unit-id": g.value,
1209
1209
  "next-unit-id": k.value,
1210
1210
  "view-model": l.value,
1211
- onGoToUnit: L[5] || (L[5] = (F) => n("goToUnit", F)),
1212
- onPrevUnit: L[6] || (L[6] = (F) => n("navUnit", g.value)),
1213
- onNextUnit: L[7] || (L[7] = (F) => n("navUnit", k.value))
1211
+ onGoToUnit: L[5] || (L[5] = (D) => n("goToUnit", D)),
1212
+ onPrevUnit: L[6] || (L[6] = (D) => n("navUnit", g.value)),
1213
+ onNextUnit: L[7] || (L[7] = (D) => n("navUnit", k.value))
1214
1214
  }, null, 8, ["can-go-to-unit-callback", "unit-renderer", "selected-unit-id", "prev-unit-id", "next-unit-id", "view-model"])
1215
1215
  ])) : o.isError ? Y("", !0) : (m(), S("div", vn, [
1216
1216
  w(G, {
1217
1217
  indeterminate: !o.progress,
1218
1218
  modelValue: o.progress,
1219
- "onUpdate:modelValue": L[8] || (L[8] = (F) => o.progress = F)
1219
+ "onUpdate:modelValue": L[8] || (L[8] = (D) => o.progress = D)
1220
1220
  }, null, 8, ["indeterminate", "modelValue"])
1221
1221
  ]))
1222
1222
  ])
@@ -1406,7 +1406,7 @@ const In = /* @__PURE__ */ j({
1406
1406
  }), Ln = {
1407
1407
  key: 0,
1408
1408
  class: "py-2"
1409
- }, xn = { class: "small" }, Dn = { class: "small" }, Fn = /* @__PURE__ */ j({
1409
+ }, xn = { class: "small" }, Fn = { class: "small" }, Dn = /* @__PURE__ */ j({
1410
1410
  __name: "VApartmentChooserV5UiTimeSample",
1411
1411
  props: {
1412
1412
  dayData: {},
@@ -1480,7 +1480,7 @@ const In = /* @__PURE__ */ j({
1480
1480
  i("span", xn, N(r(p.dayData.startTime)), 1)
1481
1481
  ]),
1482
1482
  append: A(() => [
1483
- i("span", Dn, N(r(p.dayData.endTime)), 1),
1483
+ i("span", Fn, N(r(p.dayData.endTime)), 1),
1484
1484
  X("   "),
1485
1485
  w(d, {
1486
1486
  style: { color: "#ffab02", "vertical-align": "baseline", "font-size": "20px" },
@@ -1500,7 +1500,7 @@ const In = /* @__PURE__ */ j({
1500
1500
  });
1501
1501
  };
1502
1502
  }
1503
- }), Sn = /* @__PURE__ */ q(Fn, [["__scopeId", "data-v-cb62dcc2"]]), Mn = /* @__PURE__ */ j({
1503
+ }), Sn = /* @__PURE__ */ q(Dn, [["__scopeId", "data-v-cb62dcc2"]]), Mn = /* @__PURE__ */ j({
1504
1504
  __name: "VApartmentChooserV5UiRotator",
1505
1505
  props: {
1506
1506
  apartmentChooserData: {},
@@ -1527,31 +1527,31 @@ const In = /* @__PURE__ */ j({
1527
1527
  const f = r.value;
1528
1528
  let _ = a.apartmentChooserData.scenes.findIndex((k) => k === f) + 1;
1529
1529
  _ >= a.apartmentChooserData.scenes.length && (_ = 0);
1530
- const D = a.apartmentChooserData.scenes[_];
1531
- a.apartmentChooserData.loopable && f > D ? h(f, D + a.apartmentChooserData.scenes.length) : h(f, D);
1530
+ const F = a.apartmentChooserData.scenes[_];
1531
+ a.apartmentChooserData.loopable && f > F ? h(f, F + a.apartmentChooserData.scenes.length) : h(f, F);
1532
1532
  }
1533
1533
  async function c() {
1534
1534
  const f = r.value;
1535
1535
  let _ = a.apartmentChooserData.scenes.findIndex((k) => k === f) - 1;
1536
1536
  _ < 0 && (_ = a.apartmentChooserData.scenes[a.apartmentChooserData.scenes.length - 1]);
1537
- const D = a.apartmentChooserData.scenes[_];
1538
- a.apartmentChooserData.loopable && f < D ? h(f + a.apartmentChooserData.scenes.length, D) : h(f, D);
1537
+ const F = a.apartmentChooserData.scenes[_];
1538
+ a.apartmentChooserData.loopable && f < F ? h(f + a.apartmentChooserData.scenes.length, F) : h(f, F);
1539
1539
  }
1540
1540
  function b(f) {
1541
1541
  const _ = r.value;
1542
1542
  if (a.apartmentChooserData.loopable)
1543
1543
  if (f < _) {
1544
- let D = _ - f, k = _ - (a.apartmentChooserData.cameras.length + f);
1545
- return Math.abs(D) > Math.abs(k) ? h(_, f) : h(_, a.apartmentChooserData.cameras.length + f);
1544
+ let F = _ - f, k = _ - (a.apartmentChooserData.cameras.length + f);
1545
+ return Math.abs(F) > Math.abs(k) ? h(_, f) : h(_, a.apartmentChooserData.cameras.length + f);
1546
1546
  } else {
1547
- let D = _ - f, k = a.apartmentChooserData.cameras.length + _ - f;
1548
- return Math.abs(D) > Math.abs(k) ? h(_, f) : h(a.apartmentChooserData.cameras.length + _, f);
1547
+ let F = _ - f, k = a.apartmentChooserData.cameras.length + _ - f;
1548
+ return Math.abs(F) > Math.abs(k) ? h(_, f) : h(a.apartmentChooserData.cameras.length + _, f);
1549
1549
  }
1550
1550
  else
1551
1551
  return h(_, f);
1552
1552
  }
1553
1553
  function h(f, _) {
1554
- return new Promise((D) => {
1554
+ return new Promise((F) => {
1555
1555
  o.value = !0, n("onRotateStart", { from: f, to: _ });
1556
1556
  let k, g = f;
1557
1557
  k = setInterval(() => {
@@ -1559,14 +1559,14 @@ const In = /* @__PURE__ */ j({
1559
1559
  g % a.apartmentChooserData.cameras.length
1560
1560
  )) : g > _ ? (g--, r.value = Math.abs(
1561
1561
  g % a.apartmentChooserData.cameras.length
1562
- )) : (clearInterval(k), n("onRotateFinish", { from: f, to: _ }), o.value = !1, D());
1562
+ )) : (clearInterval(k), n("onRotateFinish", { from: f, to: _ }), o.value = !1, F());
1563
1563
  }, 50);
1564
1564
  });
1565
1565
  }
1566
1566
  return (f, _) => {
1567
- const D = B("v-btn"), k = B("v-chip");
1567
+ const F = B("v-btn"), k = B("v-chip");
1568
1568
  return m(), S(ie, null, [
1569
- w(D, {
1569
+ w(F, {
1570
1570
  class: "mx-2",
1571
1571
  icon: "mdi-restore",
1572
1572
  disabled: !p.value,
@@ -1584,7 +1584,7 @@ const In = /* @__PURE__ */ j({
1584
1584
  ]),
1585
1585
  _: 1
1586
1586
  })) : Y("", !0),
1587
- w(D, {
1587
+ w(F, {
1588
1588
  class: "mx-2",
1589
1589
  icon: "mdi-reload",
1590
1590
  disabled: !l.value,
@@ -1611,14 +1611,14 @@ const In = /* @__PURE__ */ j({
1611
1611
  }
1612
1612
  ), ke(() => {
1613
1613
  for (const l in s) {
1614
- const { element: d, state: c } = s[l], { r: b, g: h, b: f, a: _, s: D } = e.colorCallback(l, c) || {
1614
+ const { element: d, state: c } = s[l], { r: b, g: h, b: f, a: _, s: F } = e.colorCallback(l, c) || {
1615
1615
  r: 0,
1616
1616
  g: 0,
1617
1617
  b: 0,
1618
1618
  a: 0,
1619
1619
  s: 0
1620
1620
  };
1621
- d.style.fill = `rgba(${b}, ${h}, ${f}, ${_ / 255})`, d.style.stroke = `rgb(${b}, ${h}, ${f})`, d.style.strokeWidth = D.toString();
1621
+ d.style.fill = `rgba(${b}, ${h}, ${f}, ${_ / 255})`, d.style.stroke = `rgb(${b}, ${h}, ${f})`, d.style.strokeWidth = F.toString();
1622
1622
  }
1623
1623
  }), H(r, () => {
1624
1624
  for (const l in s)
@@ -1634,7 +1634,7 @@ const In = /* @__PURE__ */ j({
1634
1634
  }
1635
1635
  );
1636
1636
  function p() {
1637
- Fe(() => {
1637
+ De(() => {
1638
1638
  const l = o.value.firstChild;
1639
1639
  if (l) {
1640
1640
  if (a("updateSvgContainer", l), !l.hasAttribute("viewBox")) {
@@ -1905,7 +1905,7 @@ const Yn = {
1905
1905
  setup(v, { emit: t }) {
1906
1906
  const e = v, a = t, n = u(), o = u(), r = u(), s = u(
1907
1907
  null
1908
- ), p = u(), l = u(), d = u(!1), c = u(!1), b = u(), h = u(), f = T(() => h.value.isHoverEnabled), _ = u({ x: 0, y: 0, width: 0, height: 0 }), D = u(), k = u(
1908
+ ), p = u(), l = u(), d = u(!1), c = u(!1), b = u(), h = u(), f = T(() => h.value.isHoverEnabled), _ = u({ x: 0, y: 0, width: 0, height: 0 }), F = u(), k = u(
1909
1909
  e.apartmentChooserData
1910
1910
  );
1911
1911
  ue(() => d.value = !0);
@@ -1955,7 +1955,7 @@ const Yn = {
1955
1955
  );
1956
1956
  }
1957
1957
  function V(M) {
1958
- p.value = M, vt(k.value.cameras[p.value]) ? s.value = k.value.cameras[p.value] : (Fe(() => {
1958
+ p.value = M, vt(k.value.cameras[p.value]) ? s.value = k.value.cameras[p.value] : (De(() => {
1959
1959
  C(
1960
1960
  k.value.cameras[p.value]
1961
1961
  );
@@ -1965,7 +1965,7 @@ const Yn = {
1965
1965
  const O = o.value;
1966
1966
  n.value = M, p.value = k.value.cameras.findIndex(
1967
1967
  (K) => K === n.value
1968
- ), Fe(() => {
1968
+ ), De(() => {
1969
1969
  L(
1970
1970
  n.value.sunsimDayOfYear.find(
1971
1971
  (K) => K.dayOfYear === O.dayOfYear
@@ -1975,7 +1975,7 @@ const Yn = {
1975
1975
  }
1976
1976
  function L(M) {
1977
1977
  const O = r.value;
1978
- o.value = M, Fe(() => {
1978
+ o.value = M, De(() => {
1979
1979
  G(
1980
1980
  o.value.timeSamples.find(
1981
1981
  (K) => K.timeInHours === O.timeInHours
@@ -1988,7 +1988,7 @@ const Yn = {
1988
1988
  function G(M) {
1989
1989
  r.value = M;
1990
1990
  }
1991
- function F(M) {
1991
+ function D(M) {
1992
1992
  a("onClick", M, () => {
1993
1993
  const O = k.value.unitData.find(
1994
1994
  (K) => K.unitId === M
@@ -2006,7 +2006,7 @@ const Yn = {
2006
2006
  const { layerX: O, layerY: K } = M;
2007
2007
  let R = M.target, P = !1;
2008
2008
  for (; R; )
2009
- if (R === D.value) {
2009
+ if (R === F.value) {
2010
2010
  P = !0;
2011
2011
  break;
2012
2012
  } else
@@ -2064,7 +2064,7 @@ const Yn = {
2064
2064
  "current-scene": p.value,
2065
2065
  "selected-id": M.selectedId,
2066
2066
  "render-display": e.renderDisplay,
2067
- onOnDisplayClick: F,
2067
+ onOnDisplayClick: D,
2068
2068
  onOnSceneChange: V,
2069
2069
  onOnRotateStart: O[0] || (O[0] = (R) => c.value = !0),
2070
2070
  onOnRotateFinish: O[1] || (O[1] = (R) => c.value = !1)
@@ -2100,10 +2100,10 @@ const Yn = {
2100
2100
  "color-callback": e.colorCallback,
2101
2101
  "current-camera": n.value,
2102
2102
  "selected-id": e.selectedId,
2103
- onOnClick: F,
2103
+ onOnClick: D,
2104
2104
  onOnHoverOver: Z,
2105
2105
  onOnHoverOut: x,
2106
- onUpdateSvgContainer: O[2] || (O[2] = (R) => D.value = R)
2106
+ onUpdateSvgContainer: O[2] || (O[2] = (R) => F.value = R)
2107
2107
  }, null, 8, ["cdn-file-resolver", "color-callback", "current-camera", "selected-id"]), [
2108
2108
  [pe, s.value === null]
2109
2109
  ])
@@ -2189,7 +2189,7 @@ const Yn = {
2189
2189
  d.dateSelector.hasMultipleDates ? (m(), $(h, {
2190
2190
  key: 0,
2191
2191
  modelValue: o.value,
2192
- "onUpdate:modelValue": c[0] || (c[0] = (D) => o.value = D),
2192
+ "onUpdate:modelValue": c[0] || (c[0] = (F) => o.value = F),
2193
2193
  items: p.value,
2194
2194
  density: "compact",
2195
2195
  variant: "underlined",
@@ -2219,7 +2219,7 @@ const Yn = {
2219
2219
  })) : (m(), $(_, {
2220
2220
  key: 1,
2221
2221
  modelValue: n.value,
2222
- "onUpdate:modelValue": c[1] || (c[1] = (D) => n.value = D),
2222
+ "onUpdate:modelValue": c[1] || (c[1] = (F) => n.value = F),
2223
2223
  min: 0,
2224
2224
  max: 47,
2225
2225
  step: 1,
@@ -2320,7 +2320,7 @@ const Yn = {
2320
2320
  height: 0
2321
2321
  }), r = u({ x: 0, y: 0, width: 0, height: 0 }), s = u(), p = u(
2322
2322
  (/* @__PURE__ */ new Date()).getHours() * 2 + ((/* @__PURE__ */ new Date()).getMinutes() < 30 ? 0 : 1)
2323
- ), l = u(!1), d = u(new ge()), c = u(), b = u("0 0 0 0"), h = u(), f = u(), _ = u(Ye.empty()), D = u(je.empty()), k = u(), g = T(() => k.value.isHoverEnabled);
2323
+ ), l = u(!1), d = u(new ge()), c = u(), b = u("0 0 0 0"), h = u(), f = u(), _ = u(Ye.empty()), F = u(je.empty()), k = u(), g = T(() => k.value.isHoverEnabled);
2324
2324
  H(s, (x, E) => {
2325
2325
  x ? a("hoverOverBuilding", x) : a("hoverOutBuilding", E);
2326
2326
  }), ke(() => {
@@ -2337,7 +2337,7 @@ const Yn = {
2337
2337
  e.buildingChooserData
2338
2338
  );
2339
2339
  if (E) {
2340
- D.value = new je(E.mapImage), _.value = new Ye(E.buildingIds), h.value = new nt(E.backgrounds), f.value = {
2340
+ F.value = new je(E.mapImage), _.value = new Ye(E.buildingIds), h.value = new nt(E.backgrounds), f.value = {
2341
2341
  buildingOverlays: E.buildingOverlays,
2342
2342
  viewLongitude: E.viewLongitude
2343
2343
  };
@@ -2410,7 +2410,7 @@ const Yn = {
2410
2410
  height: o.value.height
2411
2411
  }, s.value = void 0, a("hoverOutBuilding", E));
2412
2412
  }
2413
- function F(x, E) {
2413
+ function D(x, E) {
2414
2414
  const { layerX: M, layerY: O } = x;
2415
2415
  g.value && (r.value = {
2416
2416
  x: M,
@@ -2461,7 +2461,7 @@ const Yn = {
2461
2461
  style: le(C(O)),
2462
2462
  onMouseover: (P) => L(P, O),
2463
2463
  onMouseout: (P) => G(P, O),
2464
- onMousemove: (P) => F(P),
2464
+ onMousemove: (P) => D(P),
2465
2465
  onClick: (P) => Z(O)
2466
2466
  }, null, 46, ca))), 128))
2467
2467
  ], 8, ua))
@@ -2602,7 +2602,7 @@ const Yn = {
2602
2602
  (/* @__PURE__ */ new Date()).getHours() * 2 + ((/* @__PURE__ */ new Date()).getMinutes() < 30 ? 0 : 1)
2603
2603
  ), h = u(
2604
2604
  (x, E) => ({ x, y: E })
2605
- ), f = u(!1), _ = u(), D = u(), k = u(), g = T(() => {
2605
+ ), f = u(!1), _ = u(), F = u(), k = u(), g = T(() => {
2606
2606
  var x;
2607
2607
  return (x = _.value) == null ? void 0 : x.isHoverEnabled;
2608
2608
  });
@@ -2627,7 +2627,7 @@ const Yn = {
2627
2627
  }, C()) : f.value = !0;
2628
2628
  });
2629
2629
  function U({ width: x, height: E }) {
2630
- r.value.width = x, r.value.height = E, Fe(C);
2630
+ r.value.width = x, r.value.height = E, De(C);
2631
2631
  }
2632
2632
  function y() {
2633
2633
  o.value = { preloaded: !1, ready: !1 };
@@ -2641,7 +2641,7 @@ const Yn = {
2641
2641
  );
2642
2642
  }
2643
2643
  function C() {
2644
- if (D.value && (d.value.update(D.value), k.value))
2644
+ if (F.value && (d.value.update(F.value), k.value))
2645
2645
  for (const x of k.value)
2646
2646
  x.setupDraw();
2647
2647
  }
@@ -2657,7 +2657,7 @@ const Yn = {
2657
2657
  function G(x) {
2658
2658
  c.value = V(x), g.value && c.value && a("goToBuilding", c.value);
2659
2659
  }
2660
- function F(x) {
2660
+ function D(x) {
2661
2661
  return e.colorCallback(
2662
2662
  x,
2663
2663
  x === c.value ? "hover" : "idle"
@@ -2703,7 +2703,7 @@ const Yn = {
2703
2703
  key: O.id,
2704
2704
  "image-url": O.url,
2705
2705
  dimensions: r.value,
2706
- color: F(O.id)
2706
+ color: D(O.id)
2707
2707
  }, null, 8, ["image-url", "dimensions", "color"]))), 128))
2708
2708
  ], 512), [
2709
2709
  [pe, o.value.preloaded]
@@ -2711,7 +2711,7 @@ const Yn = {
2711
2711
  ]),
2712
2712
  i("canvas", ye(r.value, {
2713
2713
  ref_key: "canvas",
2714
- ref: D,
2714
+ ref: F,
2715
2715
  class: { hover: !!c.value },
2716
2716
  onClick: G,
2717
2717
  onMousemove: L
@@ -2892,7 +2892,7 @@ const Yn = {
2892
2892
  }, null, 8, ["modelValue", "items"]);
2893
2893
  };
2894
2894
  }
2895
- }), Da = /* @__PURE__ */ j({
2895
+ }), Fa = /* @__PURE__ */ j({
2896
2896
  __name: "VBuildingChooserV5UiDay",
2897
2897
  props: {
2898
2898
  cameraData: {},
@@ -2945,7 +2945,7 @@ const Yn = {
2945
2945
  }, 8, ["modelValue", "items"]);
2946
2946
  };
2947
2947
  }
2948
- }), Fa = {
2948
+ }), Da = {
2949
2949
  key: 0,
2950
2950
  class: "py-2"
2951
2951
  }, Sa = { class: "small" }, Ma = { class: "small" }, Ea = /* @__PURE__ */ j({
@@ -2988,7 +2988,7 @@ const Yn = {
2988
2988
  const d = B("v-icon"), c = B("v-btn"), b = B("v-slider"), h = B("v-field");
2989
2989
  return m(), $(h, { variant: "solo" }, {
2990
2990
  default: A(() => [
2991
- p.dayData.startTime === p.dayData.endTime ? (m(), S("div", Fa, [
2991
+ p.dayData.startTime === p.dayData.endTime ? (m(), S("div", Da, [
2992
2992
  w(d, {
2993
2993
  style: { color: "#ffab02", "vertical-align": "baseline", "font-size": "20px" },
2994
2994
  class: "py-2 ml-2 mr-2 icon"
@@ -3053,14 +3053,14 @@ const Yn = {
3053
3053
  const e = v, a = t, n = u(), o = u(), r = u(e.selectedId), s = lt({});
3054
3054
  ke(() => {
3055
3055
  for (const l in s) {
3056
- const { element: d, state: c } = s[l], { r: b, g: h, b: f, a: _, s: D } = e.colorCallback(l, c) || {
3056
+ const { element: d, state: c } = s[l], { r: b, g: h, b: f, a: _, s: F } = e.colorCallback(l, c) || {
3057
3057
  r: 0,
3058
3058
  g: 0,
3059
3059
  b: 0,
3060
3060
  a: 0,
3061
3061
  s: 0
3062
3062
  };
3063
- d.style.fill = `rgba(${b}, ${h}, ${f}, ${_ / 255})`, d.style.stroke = `rgb(${b}, ${h}, ${f})`, d.style.strokeWidth = D.toString();
3063
+ d.style.fill = `rgba(${b}, ${h}, ${f}, ${_ / 255})`, d.style.stroke = `rgb(${b}, ${h}, ${f})`, d.style.strokeWidth = F.toString();
3064
3064
  }
3065
3065
  }), H(
3066
3066
  () => e.selectedId,
@@ -3081,7 +3081,7 @@ const Yn = {
3081
3081
  }
3082
3082
  );
3083
3083
  function p() {
3084
- Fe(() => {
3084
+ De(() => {
3085
3085
  const l = o.value.firstChild;
3086
3086
  if (l) {
3087
3087
  if (a("updateSvgContainer", l), !l.hasAttribute("viewBox")) {
@@ -3164,8 +3164,10 @@ const Yn = {
3164
3164
  );
3165
3165
  ue(() => p.value = !0), H(
3166
3166
  [h, () => e.cdnFileResolver, () => e.defaultCamera],
3167
- () => {
3168
- e.cdnFileResolver && (e.defaultCamera ? n.value = h.value.cameras.find(
3167
+ async () => {
3168
+ e.cdnFileResolver && (h.value || (h.value = await ge.loadJson(
3169
+ se(e.cdnFileResolver, "/buildingChooser.json")
3170
+ )), e.defaultCamera ? n.value = h.value.cameras.find(
3169
3171
  (y) => y.cameraName === e.defaultCamera
3170
3172
  ) || h.value.cameras[0] : n.value = h.value.cameras[0]);
3171
3173
  },
@@ -3173,7 +3175,7 @@ const Yn = {
3173
3175
  ), H(
3174
3176
  [h, () => e.cdnFileResolver, () => e.defaultDay],
3175
3177
  () => {
3176
- e.cdnFileResolver && (e.defaultDay ? o.value = n.value.sunsimDayOfYear.find(
3178
+ h.value && e.cdnFileResolver && (e.defaultDay ? o.value = n.value.sunsimDayOfYear.find(
3177
3179
  (y) => y.dayOfYear === e.defaultDay
3178
3180
  ) || n.value.sunsimDayOfYear[0] : o.value = n.value.sunsimDayOfYear[0]);
3179
3181
  },
@@ -3181,7 +3183,7 @@ const Yn = {
3181
3183
  ), H(
3182
3184
  [h, () => e.cdnFileResolver, () => e.defaultTime],
3183
3185
  () => {
3184
- e.cdnFileResolver && (e.defaultTime ? r.value = o.value.timeSamples.find(
3186
+ h.value && e.cdnFileResolver && (e.defaultTime ? r.value = o.value.timeSamples.find(
3185
3187
  (y) => y.timeInHours === e.defaultTime
3186
3188
  ) || o.value.timeSamples[0] : r.value = o.value.timeSamples.find(
3187
3189
  (y) => y.timeInHours === o.value.defaultHour
@@ -3191,7 +3193,7 @@ const Yn = {
3191
3193
  );
3192
3194
  function f(y) {
3193
3195
  const V = o.value;
3194
- n.value = y, Fe(() => {
3196
+ n.value = y, De(() => {
3195
3197
  _(
3196
3198
  n.value.sunsimDayOfYear.find(
3197
3199
  (C) => C.dayOfYear === V.dayOfYear
@@ -3201,8 +3203,8 @@ const Yn = {
3201
3203
  }
3202
3204
  function _(y) {
3203
3205
  const V = r.value;
3204
- o.value = y, Fe(() => {
3205
- D(
3206
+ o.value = y, De(() => {
3207
+ F(
3206
3208
  o.value.timeSamples.find(
3207
3209
  (C) => C.timeInHours === V.timeInHours
3208
3210
  ) || o.value.timeSamples.find(
@@ -3211,7 +3213,7 @@ const Yn = {
3211
3213
  );
3212
3214
  });
3213
3215
  }
3214
- function D(y) {
3216
+ function F(y) {
3215
3217
  r.value = y;
3216
3218
  }
3217
3219
  function k(y) {
@@ -3260,7 +3262,7 @@ const Yn = {
3260
3262
  }, null, 8, ["building-chooser-data", "current-camera"])
3261
3263
  ]),
3262
3264
  i("div", $a, [
3263
- w(Da, {
3265
+ w(Fa, {
3264
3266
  "camera-data": n.value,
3265
3267
  "current-day": o.value,
3266
3268
  onOnDayChange: _
@@ -3270,7 +3272,7 @@ const Yn = {
3270
3272
  w(Ta, {
3271
3273
  "day-data": o.value,
3272
3274
  "current-time": r.value,
3273
- onOnTimeChange: D
3275
+ onOnTimeChange: F
3274
3276
  }, null, 8, ["day-data", "current-time"])
3275
3277
  ])
3276
3278
  ]),
@@ -3333,7 +3335,7 @@ const Yn = {
3333
3335
  ], 64);
3334
3336
  };
3335
3337
  }
3336
- }), xs = /* @__PURE__ */ q(Wa, [["__scopeId", "data-v-fd8e0124"]]);
3338
+ }), xs = /* @__PURE__ */ q(Wa, [["__scopeId", "data-v-a992e23a"]]);
3337
3339
  var We = {};
3338
3340
  Object.defineProperty(We, "__esModule", {
3339
3341
  value: !0
@@ -3658,7 +3660,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
3658
3660
  ], 4);
3659
3661
  };
3660
3662
  }
3661
- }), Io = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAMAAADyHTlpAAAAllBMVEUAAAD/rwD/rwD/qgP/qwL/qAL/qwP/qwH/rAL/rAL/qwL/qQD/qwL/qwD/qQD/qwL/pQD/qgH/nwD/pwD/qQL/rAL/qwD/qwT/rAP/qwL/rAL/rAD/rAL/qgD/qwL/qQP/rAP/rAH/qgH/qwL/qwD/qgL/rwD/qgD/qwH/qgD/qgL/rAD/qgD/qgD/qwH/rAP/qgX/qwA+O5E+AAAAMnRSTlMAECBg/3C/v5Dff4+PT1/PMN8QII9vf0CfgO9vnzDvUF+vr3BA3zA/z2+fX59g71AwcDsf6p0AAAFGSURBVHicvdRtT8MgEABgaM9hu1aHXV/cpm6zWt829f//OYEK9qC3NDF6HxYCTw5GuWPsd8GjqTIGOJtIZwDi/ymnKPflOSTub6cAcwdnkHk5AQY2v3Dzl2phga1EFkl5hScLbZc+LbUs/FltK5OpLpsmrS0NpbLLSu3Er1dgIsn0cdabEdlHlICL5IZSRq5gELcn7DCnsfQL24AX5PeNfAlAHSEOaYrFXaNiqwa7kO7V9L1dt9u25kX58cBY7dbZYz/MKdr2o06nrZ6klNX4AYRdf8aHzkL6QtxAG9KculjhS0nJMO0rSVmF5ZyWnn2jFC+36vcgLTzq+3lPRx6XrjjTqQ7iqJxY6+KLydp0ZWhrVHWE0JoqHq1NSHBxF0h+1Mh6LUMM5LC/Kht8h+5nG9zeTtbt37Ti3XT6+d29pkTXTZVEfAEKARRF2iiwhQAAAB10RVh0U29mdHdhcmUAQGx1bmFwYWludC9wbmctY29kZWP1QxkeAAAAAElFTkSuQmCC", Ao = { class: "d-flex flex-column align-center justify-center clock-face" }, Lo = { class: "clock-icon" }, xo = { class: "clock-value grey--text text--darken-3" }, Do = /* @__PURE__ */ j({
3663
+ }), Io = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAMAAADyHTlpAAAAllBMVEUAAAD/rwD/rwD/qgP/qwL/qAL/qwP/qwH/rAL/rAL/qwL/qQD/qwL/qwD/qQD/qwL/pQD/qgH/nwD/pwD/qQL/rAL/qwD/qwT/rAP/qwL/rAL/rAD/rAL/qgD/qwL/qQP/rAP/rAH/qgH/qwL/qwD/qgL/rwD/qgD/qwH/qgD/qgL/rAD/qgD/qgD/qwH/rAP/qgX/qwA+O5E+AAAAMnRSTlMAECBg/3C/v5Dff4+PT1/PMN8QII9vf0CfgO9vnzDvUF+vr3BA3zA/z2+fX59g71AwcDsf6p0AAAFGSURBVHicvdRtT8MgEABgaM9hu1aHXV/cpm6zWt829f//OYEK9qC3NDF6HxYCTw5GuWPsd8GjqTIGOJtIZwDi/ymnKPflOSTub6cAcwdnkHk5AQY2v3Dzl2phga1EFkl5hScLbZc+LbUs/FltK5OpLpsmrS0NpbLLSu3Er1dgIsn0cdabEdlHlICL5IZSRq5gELcn7DCnsfQL24AX5PeNfAlAHSEOaYrFXaNiqwa7kO7V9L1dt9u25kX58cBY7dbZYz/MKdr2o06nrZ6klNX4AYRdf8aHzkL6QtxAG9KculjhS0nJMO0rSVmF5ZyWnn2jFC+36vcgLTzq+3lPRx6XrjjTqQ7iqJxY6+KLydp0ZWhrVHWE0JoqHq1NSHBxF0h+1Mh6LUMM5LC/Kht8h+5nG9zeTtbt37Ti3XT6+d29pkTXTZVEfAEKARRF2iiwhQAAAB10RVh0U29mdHdhcmUAQGx1bmFwYWludC9wbmctY29kZWP1QxkeAAAAAElFTkSuQmCC", Ao = { class: "d-flex flex-column align-center justify-center clock-face" }, Lo = { class: "clock-icon" }, xo = { class: "clock-value grey--text text--darken-3" }, Fo = /* @__PURE__ */ j({
3662
3664
  __name: "VTimeOfDay",
3663
3665
  props: {
3664
3666
  hours: { default: 0 },
@@ -3682,7 +3684,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
3682
3684
  ]);
3683
3685
  };
3684
3686
  }
3685
- }), Fo = /* @__PURE__ */ q(Do, [["__scopeId", "data-v-9a5f102b"]]), So = /* @__PURE__ */ j({
3687
+ }), Do = /* @__PURE__ */ q(Fo, [["__scopeId", "data-v-9a5f102b"]]), So = /* @__PURE__ */ j({
3686
3688
  __name: "VViewModeToggle",
3687
3689
  props: {
3688
3690
  showStaticImage: { type: Boolean }
@@ -4357,8 +4359,8 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
4357
4359
  );
4358
4360
  const o = T(() => {
4359
4361
  let f = {};
4360
- for (const [_, D] of Object.entries(n.value))
4361
- _ === "whitePoint" ? f[_] = d(D.value) : f[_] = D.value;
4362
+ for (const [_, F] of Object.entries(n.value))
4363
+ _ === "whitePoint" ? f[_] = d(F.value) : f[_] = F.value;
4362
4364
  return f;
4363
4365
  });
4364
4366
  function r() {
@@ -4379,15 +4381,15 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
4379
4381
  n.value = h(), a("updateSettings", o.value);
4380
4382
  }
4381
4383
  function d(f) {
4382
- const _ = parseInt(f.substr(1, 2), 16) / 255, D = parseInt(f.substr(3, 2), 16) / 255, k = parseInt(f.substr(5, 2), 16) / 255;
4383
- return [_, D, k];
4384
+ const _ = parseInt(f.substr(1, 2), 16) / 255, F = parseInt(f.substr(3, 2), 16) / 255, k = parseInt(f.substr(5, 2), 16) / 255;
4385
+ return [_, F, k];
4384
4386
  }
4385
4387
  function c(f) {
4386
4388
  var _ = f.toString(16);
4387
4389
  return _.length == 1 ? "0" + _ : _;
4388
4390
  }
4389
- function b([f, _, D]) {
4390
- return "#" + c(parseInt((f * 255).toString())) + c(parseInt((_ * 255).toString())) + c(parseInt((D * 255).toString()));
4391
+ function b([f, _, F]) {
4392
+ return "#" + c(parseInt((f * 255).toString())) + c(parseInt((_ * 255).toString())) + c(parseInt((F * 255).toString()));
4391
4393
  }
4392
4394
  function h(f = {}) {
4393
4395
  const _ = [
@@ -4403,7 +4405,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
4403
4405
  "Warm 5",
4404
4406
  "bw"
4405
4407
  ];
4406
- let D = {
4408
+ let F = {
4407
4409
  temperature: 6500,
4408
4410
  targetLuminance: 1,
4409
4411
  exposureFovScale: 0.6,
@@ -4422,7 +4424,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
4422
4424
  min: 0,
4423
4425
  max: 1,
4424
4426
  step: 0.01,
4425
- value: D.exposureFovScale
4427
+ value: F.exposureFovScale
4426
4428
  },
4427
4429
  targetLuminance: {
4428
4430
  label: "Target Luminance",
@@ -4430,7 +4432,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
4430
4432
  min: 0,
4431
4433
  max: 15,
4432
4434
  step: 0.1,
4433
- value: D.targetLuminance
4435
+ value: F.targetLuminance
4434
4436
  },
4435
4437
  sharpenFilter_amount: {
4436
4438
  label: "Sharpen Filter Amount",
@@ -4438,12 +4440,12 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
4438
4440
  min: 0,
4439
4441
  max: 100,
4440
4442
  step: 0.1,
4441
- value: D.sharpenFilter_amount
4443
+ value: F.sharpenFilter_amount
4442
4444
  },
4443
4445
  UNREAL_BLOOM_ENABLED: {
4444
4446
  label: "Enable Bloom?",
4445
4447
  type: "boolean",
4446
- value: D.UNREAL_BLOOM_ENABLED
4448
+ value: F.UNREAL_BLOOM_ENABLED
4447
4449
  },
4448
4450
  UNREAL_BLOOM_STRENGTH: {
4449
4451
  label: "Bloom Strength",
@@ -4451,7 +4453,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
4451
4453
  min: 0,
4452
4454
  max: 1,
4453
4455
  step: 0.01,
4454
- value: D.UNREAL_BLOOM_STRENGTH
4456
+ value: F.UNREAL_BLOOM_STRENGTH
4455
4457
  },
4456
4458
  TRANSITION_MOVEMENT_SCALE: {
4457
4459
  label: "Transition Movement Speed",
@@ -4459,7 +4461,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
4459
4461
  min: 0.2,
4460
4462
  max: 25,
4461
4463
  step: 0.1,
4462
- value: D.TRANSITION_MOVEMENT_SCALE
4464
+ value: F.TRANSITION_MOVEMENT_SCALE
4463
4465
  },
4464
4466
  temperature: {
4465
4467
  label: "Temperature / White Balance",
@@ -4467,12 +4469,12 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
4467
4469
  min: 1e3,
4468
4470
  max: 12e3,
4469
4471
  step: 1,
4470
- value: D.temperature
4472
+ value: F.temperature
4471
4473
  },
4472
4474
  whitePoint: {
4473
4475
  label: "White Point",
4474
4476
  type: "color",
4475
- value: b(D.whitePoint)
4477
+ value: b(F.whitePoint)
4476
4478
  },
4477
4479
  lut: {
4478
4480
  label: "Lut",
@@ -4481,12 +4483,12 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
4481
4483
  text: k,
4482
4484
  value: `https://cdn.visuado.com/luts/${k}.png`
4483
4485
  })),
4484
- value: D.lut
4486
+ value: F.lut
4485
4487
  }
4486
4488
  };
4487
4489
  }
4488
4490
  return (f, _) => {
4489
- const D = B("v-text-field"), k = B("v-slider"), g = B("v-checkbox"), U = B("v-btn"), y = B("v-select"), V = B("v-icon");
4491
+ const F = B("v-text-field"), k = B("v-slider"), g = B("v-checkbox"), U = B("v-btn"), y = B("v-select"), V = B("v-icon");
4490
4492
  return m(), S("div", rl, [
4491
4493
  i("form", il, [
4492
4494
  i("div", ul, [
@@ -4497,7 +4499,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
4497
4499
  C.type === "slider" ? (m(), $(k, {
4498
4500
  key: 0,
4499
4501
  modelValue: n.value[L].value,
4500
- "onUpdate:modelValue": (F) => n.value[L].value = F,
4502
+ "onUpdate:modelValue": (D) => n.value[L].value = D,
4501
4503
  onChange: r,
4502
4504
  max: C.max,
4503
4505
  min: C.min,
@@ -4508,9 +4510,9 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
4508
4510
  ]),
4509
4511
  append: A(() => [
4510
4512
  i("div", null, [
4511
- w(D, {
4513
+ w(F, {
4512
4514
  modelValue: n.value[L].value,
4513
- "onUpdate:modelValue": (F) => n.value[L].value = F,
4515
+ "onUpdate:modelValue": (D) => n.value[L].value = D,
4514
4516
  "hide-details": "",
4515
4517
  dense: "",
4516
4518
  outlined: "",
@@ -4528,7 +4530,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
4528
4530
  C.type === "boolean" ? (m(), $(g, {
4529
4531
  key: 1,
4530
4532
  modelValue: n.value[L].value,
4531
- "onUpdate:modelValue": (F) => n.value[L].value = F,
4533
+ "onUpdate:modelValue": (D) => n.value[L].value = D,
4532
4534
  onChange: r
4533
4535
  }, {
4534
4536
  prepend: A(() => [
@@ -4549,17 +4551,17 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
4549
4551
  i("div", ml, N(C.label), 1),
4550
4552
  i("div", pl, [
4551
4553
  de(i("input", {
4552
- "onUpdate:modelValue": (F) => n.value[L].value = F,
4554
+ "onUpdate:modelValue": (D) => n.value[L].value = D,
4553
4555
  type: "color",
4554
4556
  onChange: r
4555
4557
  }, null, 40, fl), [
4556
- [Dt, n.value[L].value]
4558
+ [Ft, n.value[L].value]
4557
4559
  ])
4558
4560
  ]),
4559
4561
  i("div", null, [
4560
- w(D, {
4562
+ w(F, {
4561
4563
  modelValue: n.value[L].value,
4562
- "onUpdate:modelValue": (F) => n.value[L].value = F,
4564
+ "onUpdate:modelValue": (D) => n.value[L].value = D,
4563
4565
  "hide-details": "",
4564
4566
  dense: "",
4565
4567
  outlined: "",
@@ -4577,7 +4579,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
4577
4579
  w(U, {
4578
4580
  class: "ml-2",
4579
4581
  "x-small": "",
4580
- onClick: (F) => n.value[L].value = null
4582
+ onClick: (D) => n.value[L].value = null
4581
4583
  }, {
4582
4584
  default: A(() => [
4583
4585
  X(" Clear Lut ")
@@ -4591,7 +4593,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
4591
4593
  i("div", null, [
4592
4594
  w(y, {
4593
4595
  modelValue: n.value[L].value,
4594
- "onUpdate:modelValue": (F) => n.value[L].value = F,
4596
+ "onUpdate:modelValue": (D) => n.value[L].value = D,
4595
4597
  items: C.items,
4596
4598
  "item-title": "title",
4597
4599
  "item-value": "value",
@@ -4605,9 +4607,9 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
4605
4607
  bl,
4606
4608
  i("div", wl, [
4607
4609
  i("div", null, [
4608
- w(D, {
4610
+ w(F, {
4609
4611
  modelValue: n.value[L].value,
4610
- "onUpdate:modelValue": (F) => n.value[L].value = F,
4612
+ "onUpdate:modelValue": (D) => n.value[L].value = D,
4611
4613
  "hide-details": "",
4612
4614
  dense: "",
4613
4615
  type: "url",
@@ -4667,7 +4669,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
4667
4669
  }), Il = /* @__PURE__ */ q(Cl, [["__scopeId", "data-v-bd4f66c3"]]), Al = (v) => (st("data-v-30593022"), v = v(), rt(), v), Ll = /* @__PURE__ */ Al(() => /* @__PURE__ */ i("div", { id: "filler-div" }, null, -1)), xl = {
4668
4670
  class: "moveable-body",
4669
4671
  id: "moveableDivHeader"
4670
- }, Dl = { class: "moveable-footer" }, Fl = /* @__PURE__ */ j({
4672
+ }, Fl = { class: "moveable-footer" }, Dl = /* @__PURE__ */ j({
4671
4673
  __name: "VMoveable",
4672
4674
  emits: ["close", "transform"],
4673
4675
  setup(v, { emit: t }) {
@@ -4683,13 +4685,13 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
4683
4685
  s.addEventListener("touchstart", b, { passive: !1 }), s.addEventListener("touchend", f, { passive: !1 }), s.addEventListener("mousedown", b, { passive: !1 }), s.addEventListener("mouseup", f, { passive: !1 });
4684
4686
  function b(_) {
4685
4687
  _ = _ || window.event, _.preventDefault();
4686
- let D = _;
4687
- _.type === "touchstart" && (D = _.touches[0]), d = D.clientX, c = D.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 });
4688
+ let F = _;
4689
+ _.type === "touchstart" && (F = _.touches[0]), d = F.clientX, c = 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 });
4688
4690
  }
4689
4691
  function h(_) {
4690
4692
  _ = _ || window.event, _.preventDefault();
4691
- let D = _;
4692
- _.type === "touchmove" && (D = _.touches[0]), p = d - D.clientX, l = c - D.clientY, d = D.clientX, c = D.clientY, r.style.top = r.offsetTop - l + "px", r.style.left = r.offsetLeft - p + "px";
4693
+ let F = _;
4694
+ _.type === "touchmove" && (F = _.touches[0]), p = d - F.clientX, l = c - F.clientY, d = F.clientX, c = F.clientY, r.style.top = r.offsetTop - l + "px", r.style.left = r.offsetLeft - p + "px";
4693
4695
  }
4694
4696
  function f() {
4695
4697
  document.removeEventListener("mouseup", f, !1), document.removeEventListener("mousemove", h, !1), document.removeEventListener("touchend", f, !1), document.removeEventListener("touchmove", h, !1);
@@ -4728,13 +4730,13 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
4728
4730
  i("div", xl, [
4729
4731
  oe(r.$slots, "body", { class: "slot" }, void 0, !0)
4730
4732
  ]),
4731
- i("div", Dl, [
4733
+ i("div", Fl, [
4732
4734
  oe(r.$slots, "footer", {}, void 0, !0)
4733
4735
  ])
4734
4736
  ], 2);
4735
4737
  };
4736
4738
  }
4737
- }), Sl = /* @__PURE__ */ q(Fl, [["__scopeId", "data-v-30593022"]]), Ml = {
4739
+ }), Sl = /* @__PURE__ */ q(Dl, [["__scopeId", "data-v-30593022"]]), Ml = {
4738
4740
  class: "rotation-marker-svg",
4739
4741
  viewBox: "0 0 40 40",
4740
4742
  xmlns: "http://www.w3.org/2000/svg"
@@ -4770,16 +4772,16 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
4770
4772
  t.storey.position.y,
4771
4773
  t.storey.position.z
4772
4774
  )), h = T(() => parseFloat(d.value.floor_vertical_position)), f = T(() => l.value.map((L) => {
4773
- const G = L.uposition.split(","), F = new Ve.Vector3(
4775
+ const G = L.uposition.split(","), D = new Ve.Vector3(
4774
4776
  Number(G[0]) - b.value.x,
4775
4777
  0,
4776
4778
  Number(G[2]) - b.value.z
4777
4779
  );
4778
4780
  return {
4779
4781
  ...L,
4780
- ...y(n.value, F)
4782
+ ...y(n.value, D)
4781
4783
  };
4782
- })), _ = T(() => `background-image: url(${t.backgroundImage});`), D = T(() => {
4784
+ })), _ = T(() => `background-image: url(${t.backgroundImage});`), F = T(() => {
4783
4785
  let L = s.value > 1 ? 1 : s.value;
4784
4786
  return L < 0.8 && (L = 0.4), `scale: ${L > 1 ? 1 : L}; transform: rotate(${t.transformAngle}deg);`;
4785
4787
  });
@@ -4787,7 +4789,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
4787
4789
  V(), g(), C();
4788
4790
  const L = document.getElementById("moveableDiv");
4789
4791
  L && (p.value = new ResizeObserver(C).observe(L));
4790
- }), Ft(() => {
4792
+ }), Dt(() => {
4791
4793
  V(), g();
4792
4794
  }), Pe(() => {
4793
4795
  p.value && p.value.unobserve(document.getElementById("moveableDiv"));
@@ -4807,8 +4809,8 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
4807
4809
  };
4808
4810
  }
4809
4811
  function y(L, G) {
4810
- var F = new Ve.Vector3();
4811
- const Z = F.subVectors(L, G);
4812
+ var D = new Ve.Vector3();
4813
+ const Z = D.subVectors(L, G);
4812
4814
  return {
4813
4815
  relativePosition: Z,
4814
4816
  left: Z.x / e.value * 100,
@@ -4818,21 +4820,21 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
4818
4820
  function V() {
4819
4821
  const L = t.storey.position.y - h.value;
4820
4822
  a.value = 2 * (L * Math.tan(k(t.storey.fovY / 2))), e.value = 512 / 384 * a.value;
4821
- const G = a.value / 2, F = e.value / 2, Z = new Ve.Vector3(F * -1, 0, G * -1);
4823
+ const G = a.value / 2, D = e.value / 2, Z = new Ve.Vector3(D * -1, 0, G * -1);
4822
4824
  n.value = Z;
4823
4825
  }
4824
4826
  function C() {
4825
4827
  const L = document.getElementById("moveableDiv");
4826
4828
  if (!L)
4827
4829
  return;
4828
- const G = L.offsetHeight / 384 * 0.8, F = L.offsetWidth / 512 * 0.8;
4829
- L.offsetHeight > L.offsetWidth ? s.value = F * 0.5 : s.value = G * 0.9;
4830
+ const G = L.offsetHeight / 384 * 0.8, D = L.offsetWidth / 512 * 0.8;
4831
+ L.offsetHeight > L.offsetWidth ? s.value = D * 0.5 : s.value = G * 0.9;
4830
4832
  }
4831
4833
  return (L, G) => (m(), S("div", Ol, [
4832
4834
  i("div", Ul, [
4833
4835
  i("div", {
4834
4836
  class: "web-minimap",
4835
- style: le(D.value)
4837
+ style: le(F.value)
4836
4838
  }, [
4837
4839
  i("div", {
4838
4840
  class: "minimap-background-image",
@@ -4842,19 +4844,19 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
4842
4844
  class: "center-pivot",
4843
4845
  style: le(r.value)
4844
4846
  }, [
4845
- (m(!0), S(ie, null, ve(f.value, (F) => (m(), S("div", {
4846
- key: F.id
4847
+ (m(!0), S(ie, null, ve(f.value, (D) => (m(), S("div", {
4848
+ key: D.id
4847
4849
  }, [
4848
- d.value.floorLevel === F.floorLevel ? (m(), S("div", {
4850
+ d.value.floorLevel === D.floorLevel ? (m(), S("div", {
4849
4851
  key: 0,
4850
4852
  class: "single-camera-marker",
4851
- style: le(U(F))
4853
+ style: le(U(D))
4852
4854
  }, null, 4)) : Y("", !0),
4853
- d.value.id === F.id && t.rotation !== null ? (m(), $(Rl, {
4855
+ d.value.id === D.id && t.rotation !== null ? (m(), $(Rl, {
4854
4856
  key: 1,
4855
4857
  class: "rotation-marker-component",
4856
4858
  rotation: c.value,
4857
- style: le({ ...U(F) })
4859
+ style: le({ ...U(D) })
4858
4860
  }, null, 8, ["rotation", "style"])) : Y("", !0)
4859
4861
  ]))), 128))
4860
4862
  ], 4)
@@ -4927,8 +4929,8 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
4927
4929
  for (let V = 0; V < y.length; V++) {
4928
4930
  const C = y[V];
4929
4931
  try {
4930
- const L = C, G = C.split("."), F = await f(L);
4931
- g.set(G[0], F);
4932
+ const L = C, G = C.split("."), D = await f(L);
4933
+ g.set(G[0], D);
4932
4934
  } catch {
4933
4935
  continue;
4934
4936
  }
@@ -4942,13 +4944,13 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
4942
4944
  e.cdnFileResolver,
4943
4945
  `/${e.apartmentJson.type}/${e.apartmentJson.id}/minimap/${k}`
4944
4946
  )
4945
- )).blob(), y = await D(U);
4947
+ )).blob(), y = await F(U);
4946
4948
  return _(y);
4947
4949
  }
4948
4950
  function _(k) {
4949
4951
  return "data:image/jpeg;base64," + k;
4950
4952
  }
4951
- async function D(k) {
4953
+ async function F(k) {
4952
4954
  return new Promise((g, U) => {
4953
4955
  const y = new FileReader();
4954
4956
  y.onload = () => {
@@ -5119,7 +5121,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
5119
5121
  d(), a("goto", l);
5120
5122
  }
5121
5123
  return (l, d) => {
5122
- const c = B("v-icon"), b = B("v-btn"), h = B("v-hover"), f = B("v-img"), _ = B("v-card"), D = B("v-slide-group-item"), k = B("v-slide-group");
5124
+ const c = B("v-icon"), b = B("v-btn"), h = B("v-hover"), f = B("v-img"), _ = B("v-card"), F = B("v-slide-group-item"), k = B("v-slide-group");
5123
5125
  return m(), S("div", Kl, [
5124
5126
  w(k, {
5125
5127
  modelValue: o.value,
@@ -5181,7 +5183,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
5181
5183
  })
5182
5184
  ]),
5183
5185
  default: A(() => [
5184
- (m(!0), S(ie, null, ve(l.thumbnails, (g) => (m(), $(D, {
5186
+ (m(!0), S(ie, null, ve(l.thumbnails, (g) => (m(), $(F, {
5185
5187
  key: g.id
5186
5188
  }, {
5187
5189
  default: A(({ toggle: U, selectedClass: y }) => [
@@ -5246,7 +5248,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
5246
5248
  navigator.clipboard.writeText(location.href);
5247
5249
  }
5248
5250
  return (p, l) => {
5249
- const d = B("v-btn"), c = B("v-tooltip"), b = B("v-toolbar-title"), h = B("v-spacer"), f = B("v-toolbar"), _ = B("v-card-text"), D = B("v-card"), k = B("v-dialog");
5251
+ const d = B("v-btn"), c = B("v-tooltip"), b = B("v-toolbar-title"), h = B("v-spacer"), f = B("v-toolbar"), _ = B("v-card-text"), F = B("v-card"), k = B("v-dialog");
5250
5252
  return m(), S("div", null, [
5251
5253
  w(c, {
5252
5254
  elevation: "2",
@@ -5273,7 +5275,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
5273
5275
  "onUpdate:modelValue": l[2] || (l[2] = (g) => e.value = g)
5274
5276
  }, {
5275
5277
  default: A(() => [
5276
- w(D, null, {
5278
+ w(F, null, {
5277
5279
  default: A(() => [
5278
5280
  w(f, { elevation: "0" }, {
5279
5281
  default: A(() => [
@@ -5517,7 +5519,7 @@ const vs = { class: "virtual-tour-wrapper" }, ms = {
5517
5519
  },
5518
5520
  emits: ["onSnapshot", "saveSettings", "onInteriorUpdate", "onCameraUpdate"],
5519
5521
  setup(v, { emit: t }) {
5520
- const e = v, a = t, n = u(!1), o = u(!1), r = u(), s = u(), p = u(), l = u(), d = u(), c = u(0), b = u(), h = u(), f = u(), _ = u(0), D = u(0), k = u(0), g = u(!1), U = u(!1), y = u(!1), V = u(
5522
+ const e = v, a = t, n = u(!1), o = u(!1), r = u(), s = u(), p = u(), l = u(), d = u(), c = u(0), b = u(), h = u(), f = u(), _ = u(0), F = u(0), k = u(0), g = u(!1), U = u(!1), y = u(!1), V = u(
5521
5523
  new ds(document, "player-wrapper")
5522
5524
  ), C = T(() => {
5523
5525
  if (s.value) {
@@ -5537,14 +5539,14 @@ const vs = { class: "virtual-tour-wrapper" }, ms = {
5537
5539
  let J = [...new Set(z)];
5538
5540
  J = J.sort();
5539
5541
  const fe = J.findIndex(
5540
- (He) => He === D.value
5542
+ (He) => He === F.value
5541
5543
  );
5542
5544
  fe !== -1 && (I = fe);
5543
5545
  }
5544
5546
  return I;
5545
5547
  }), G = T(() => x.value.findIndex(
5546
5548
  (I) => I.archetypeID === b.value
5547
- )), F = T(() => p.value ? p.value.cameras.map((I) => ({
5549
+ )), D = T(() => p.value ? p.value.cameras.map((I) => ({
5548
5550
  ...I,
5549
5551
  thumbnailUrl: he(
5550
5552
  `/${b.value}/${e.apartmentId}/thumbs/200/${I.id}.jpg`
@@ -5552,7 +5554,7 @@ const vs = { class: "virtual-tour-wrapper" }, ms = {
5552
5554
  imageUrl: he(
5553
5555
  `/${b.value}/${e.apartmentId}/images/1600/${I.id}.jpg`
5554
5556
  )
5555
- })) : []), Z = T(() => !F.value || !F.value[c.value] ? "" : F.value[c.value].imageUrl), x = T(() => {
5557
+ })) : []), Z = T(() => !D.value || !D.value[c.value] ? "" : D.value[c.value].imageUrl), x = T(() => {
5556
5558
  let I = [];
5557
5559
  return r.value && (I = r.value.archetypes), e.validInteriorIds.length ? I.filter(
5558
5560
  (z) => e.validInteriorIds.includes(z.archetypeID)
@@ -5560,7 +5562,7 @@ const vs = { class: "virtual-tour-wrapper" }, ms = {
5560
5562
  }), E = T(() => p.value ? x.value.map((I) => ({
5561
5563
  ...I,
5562
5564
  url: he(
5563
- `/${I.archetypeID}/${e.apartmentId}/thumbs/200/${F.value[c.value].id}.jpg`
5565
+ `/${I.archetypeID}/${e.apartmentId}/thumbs/200/${D.value[c.value].id}.jpg`
5564
5566
  )
5565
5567
  })) : []), M = T(() => {
5566
5568
  if (l.value)
@@ -5689,20 +5691,20 @@ const vs = { class: "virtual-tour-wrapper" }, ms = {
5689
5691
  }
5690
5692
  function _e() {
5691
5693
  let I = c.value + 1;
5692
- I >= F.value.length && (I = 0), c.value = I, Ee(F.value[c.value].id);
5694
+ I >= D.value.length && (I = 0), c.value = I, Ee(D.value[c.value].id);
5693
5695
  }
5694
5696
  function be() {
5695
5697
  let I = c.value - 1;
5696
- I < 0 && (I = F.value.length - 1), c.value = I, Ee(F.value[c.value].id);
5698
+ I < 0 && (I = D.value.length - 1), c.value = I, Ee(D.value[c.value].id);
5697
5699
  }
5698
5700
  function we(I, z = !0) {
5699
- let J = F.value.findIndex((fe) => fe.id === I);
5701
+ let J = D.value.findIndex((fe) => fe.id === I);
5700
5702
  J != -1 && (c.value = J, z && Ee(I));
5701
5703
  }
5702
5704
  function Ee(I) {
5703
5705
  h.value = I;
5704
5706
  }
5705
- function De(I) {
5707
+ function Fe(I) {
5706
5708
  b.value = I, a("onInteriorUpdate", I), a("onCameraUpdate", f.value, s.value);
5707
5709
  }
5708
5710
  function Xe(I) {
@@ -5712,7 +5714,7 @@ const vs = { class: "virtual-tour-wrapper" }, ms = {
5712
5714
  _.value = I;
5713
5715
  }
5714
5716
  function Je(I) {
5715
- D.value = I;
5717
+ F.value = I;
5716
5718
  }
5717
5719
  function W(I) {
5718
5720
  k.value = I;
@@ -5821,7 +5823,7 @@ const vs = { class: "virtual-tour-wrapper" }, ms = {
5821
5823
  ]) : Y("", !0),
5822
5824
  y.value && I.showFloorLevel && C.value.length > 1 ? (m(), $(yo, {
5823
5825
  key: 2,
5824
- level: D.value,
5826
+ level: F.value,
5825
5827
  "floor-levels": C.value,
5826
5828
  onLevel: Je
5827
5829
  }, null, 8, ["level", "floor-levels"])) : Y("", !0),
@@ -5845,7 +5847,7 @@ const vs = { class: "virtual-tour-wrapper" }, ms = {
5845
5847
  ], 512)), [
5846
5848
  [pe, y.value]
5847
5849
  ]) : Y("", !0),
5848
- y.value && s.value && O.value && I.showTimeOfDay ? (m(), $(Fo, {
5850
+ y.value && s.value && O.value && I.showTimeOfDay ? (m(), $(Do, {
5849
5851
  key: 1,
5850
5852
  hours: K.value.hours,
5851
5853
  minutes: K.value.minutes
@@ -5924,7 +5926,7 @@ const vs = { class: "virtual-tour-wrapper" }, ms = {
5924
5926
  y.value && V.value.isActive ? (m(), $(pt, {
5925
5927
  key: 1,
5926
5928
  class: xe([V.value.isActive ? "full-screen" : ""]),
5927
- thumbnails: F.value,
5929
+ thumbnails: D.value,
5928
5930
  active: c.value,
5929
5931
  onNext: _e,
5930
5932
  onPrevious: be,
@@ -5938,7 +5940,7 @@ const vs = { class: "virtual-tour-wrapper" }, ms = {
5938
5940
  "cdn-file-resolver": I.cdnFileResolver,
5939
5941
  "available-archetypes": E.value,
5940
5942
  "selected-index": G.value,
5941
- onSelectInterior: De
5943
+ onSelectInterior: Fe
5942
5944
  }, null, 8, ["cdn-file-resolver", "available-archetypes", "selected-index"])) : Y("", !0)
5943
5945
  ]),
5944
5946
  _: 1
@@ -5946,7 +5948,7 @@ const vs = { class: "virtual-tour-wrapper" }, ms = {
5946
5948
  I.showCarousel && p.value ? (m(), $(pt, {
5947
5949
  key: 0,
5948
5950
  class: "waypoint-carousel below-player",
5949
- thumbnails: F.value,
5951
+ thumbnails: D.value,
5950
5952
  active: c.value,
5951
5953
  onNext: _e,
5952
5954
  onPrevious: be,
@@ -5957,7 +5959,7 @@ const vs = { class: "virtual-tour-wrapper" }, ms = {
5957
5959
  ]);
5958
5960
  };
5959
5961
  }
5960
- }), ks = /* @__PURE__ */ q(ws, [["__scopeId", "data-v-26ecf6ea"]]), Ds = {
5962
+ }), ks = /* @__PURE__ */ q(ws, [["__scopeId", "data-v-26ecf6ea"]]), Fs = {
5961
5963
  install: function(t) {
5962
5964
  t.component("VApartmentChooser", fn), t.component("VBuildingChooser", wa), t.component("VVirtualTour", ks);
5963
5965
  }
@@ -5973,5 +5975,5 @@ export {
5973
5975
  Ze as VNorthDirection,
5974
5976
  ks as VVirtualTour,
5975
5977
  qe as VZoomBox,
5976
- Ds as default
5978
+ Fs as default
5977
5979
  };