@qispace/vue3-player 0.3.43 → 0.3.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Ba = Object.defineProperty;
|
|
2
2
|
var Ra = (s, t, e) => t in s ? Ba(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
|
|
3
3
|
var pe = (s, t, e) => (Ra(s, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
-
import { defineComponent as W, ref as d, computed as B, openBlock as v, createElementBlock as D, watch as H, onMounted as xe, onBeforeUnmount as Qe, withDirectives as Ce, createElementVNode as u, normalizeStyle as de, vShow as Se, createVNode as C, Fragment as ve, renderList as be, createCommentVNode as U, inject as Ze, resolveComponent as
|
|
4
|
+
import { defineComponent as W, ref as d, computed as B, openBlock as v, createElementBlock as D, watch as H, onMounted as xe, onBeforeUnmount as Qe, withDirectives as Ce, createElementVNode as u, normalizeStyle as de, vShow as Se, createVNode as C, Fragment as ve, renderList as be, createCommentVNode as U, inject as Ze, resolveComponent as V, withCtx as b, toDisplayString as Q, unref as A, createTextVNode as te, normalizeClass as ye, createBlock as E, renderSlot as oe, provide as nt, reactive as bt, watchEffect as Be, resolveDynamicComponent as Jt, normalizeProps as dt, guardReactiveProps as vt, mergeProps as Te, nextTick as ke, Transition as $e, createSlots as Ua, toRefs as Ee, pushScopeId as Ct, popScopeId as wt, vModelText as Ha, createStaticVNode as Xt, onBeforeUpdate as Ya, withModifiers as za } from "vue";
|
|
5
5
|
import gt from "axios";
|
|
6
6
|
import * as ja from "@qispace/player-core";
|
|
7
7
|
import { Vector3 as it, Object3D as Pa, MathUtils as Wa } from "three";
|
|
@@ -82,18 +82,18 @@ const Ga = /* @__PURE__ */ W({
|
|
|
82
82
|
},
|
|
83
83
|
emits: ["selectUnit", "goToUnit", "hoverOver", "hoverOut", "pos"],
|
|
84
84
|
setup(s, { emit: t }) {
|
|
85
|
-
const e = s, n = t, a = d({ x: 0, y: 0, width: 0, height: 0 }), o = d(0), r = d(0), l = d(), m = d(), p = d(), i = d(), f = d(-1),
|
|
85
|
+
const e = s, n = t, a = d({ x: 0, y: 0, width: 0, height: 0 }), o = d(0), r = d(0), l = d(), m = d(), p = d(), i = d(), f = d(-1), k = d(!1), w = d(), c = d(), h = d({}), y = d("auto"), _ = d(new Oe()), g = d({}), T = d(), O = d(), P = d(), I = d(), L = d(), J = B(() => P.value.isHoverEnabled), R = B(() => ue(
|
|
86
86
|
e.cdnFileResolver,
|
|
87
87
|
`/scenedata${e.viewModel.currentScene}.png`
|
|
88
88
|
)), ee = B(() => R.value in h.value ? h.value[R.value] : null), x = B(() => f.value < 0 ? !1 : e.sceneData.find((X) => X.index === f.value) || !1), S = B(() => ({
|
|
89
89
|
width: o.value + "px",
|
|
90
90
|
height: r.value + "px",
|
|
91
|
-
cursor:
|
|
92
|
-
})), Y = B(() => `hover-${
|
|
91
|
+
cursor: y.value
|
|
92
|
+
})), Y = B(() => `hover-${k.value ? "over" : "out"}-${x.value ? typeof x.value == "object" && "unitId" in x.value ? x.value.unitId : x.value : ""}`);
|
|
93
93
|
H(
|
|
94
94
|
R,
|
|
95
95
|
() => {
|
|
96
|
-
h.value[R.value] ||
|
|
96
|
+
h.value[R.value] || _.value.loadImageData(R.value).then((N) => {
|
|
97
97
|
h.value = {
|
|
98
98
|
...h.value,
|
|
99
99
|
[R.value]: N
|
|
@@ -119,9 +119,9 @@ const Ga = /* @__PURE__ */ W({
|
|
|
119
119
|
we();
|
|
120
120
|
}
|
|
121
121
|
), H(x, () => {
|
|
122
|
-
we(), x.value ?
|
|
122
|
+
we(), x.value ? y.value = "pointer" : y.value = "auto";
|
|
123
123
|
}), H(Y, () => {
|
|
124
|
-
|
|
124
|
+
k.value ? n("hoverOver", {
|
|
125
125
|
hoverUnit: x.value ? x.value.unitId : !1,
|
|
126
126
|
closeHandler: () => De()
|
|
127
127
|
}) : n("hoverOut", {
|
|
@@ -148,7 +148,7 @@ const Ga = /* @__PURE__ */ W({
|
|
|
148
148
|
}
|
|
149
149
|
function ce(N) {
|
|
150
150
|
const X = Z(N.offsetX, N.offsetY);
|
|
151
|
-
|
|
151
|
+
k.value = X >= 0, f.value = X, a.value = {
|
|
152
152
|
x: N.offsetX,
|
|
153
153
|
y: N.offsetY,
|
|
154
154
|
width: o.value,
|
|
@@ -187,7 +187,7 @@ const Ga = /* @__PURE__ */ W({
|
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
function Z(N, X) {
|
|
190
|
-
|
|
190
|
+
w.value = N, c.value = X;
|
|
191
191
|
const he = I.value.offsetWidth / I.value.width, Ve = I.value.offsetHeight / I.value.height, He = (N / he).toFixed(), ze = (X / Ve).toFixed(), $ = Number(ze) * (I.value.width * 4) + Number(He) * 4, ne = i.value.data[$];
|
|
192
192
|
return i.value.data[$ + 3] > 0 ? ne : -1;
|
|
193
193
|
}
|
|
@@ -251,7 +251,7 @@ const Ga = /* @__PURE__ */ W({
|
|
|
251
251
|
Me(), q(), l.value && p.value && l.value.putImageData(p.value, 0, 0);
|
|
252
252
|
}
|
|
253
253
|
function De() {
|
|
254
|
-
|
|
254
|
+
k.value = !1;
|
|
255
255
|
}
|
|
256
256
|
const Ue = d(!1);
|
|
257
257
|
function Le(N, X) {
|
|
@@ -309,7 +309,7 @@ const Ga = /* @__PURE__ */ W({
|
|
|
309
309
|
n("pos", a.value);
|
|
310
310
|
}), H(o, (O, P) => {
|
|
311
311
|
if (O >= 0) {
|
|
312
|
-
const I =
|
|
312
|
+
const I = w(O);
|
|
313
313
|
n("hoverOver", {
|
|
314
314
|
hoverUnit: I,
|
|
315
315
|
closeHandler: () => {
|
|
@@ -317,7 +317,7 @@ const Ga = /* @__PURE__ */ W({
|
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
319
|
} else {
|
|
320
|
-
const I =
|
|
320
|
+
const I = w(P);
|
|
321
321
|
n("hoverOut", {
|
|
322
322
|
hoverUnit: I,
|
|
323
323
|
closeHandler: () => {
|
|
@@ -343,9 +343,9 @@ const Ga = /* @__PURE__ */ W({
|
|
|
343
343
|
})), r.value = { ...r.value, [O]: I };
|
|
344
344
|
});
|
|
345
345
|
}
|
|
346
|
-
p.value.addEventListener("mousemove", T(
|
|
346
|
+
p.value.addEventListener("mousemove", T(k, 50));
|
|
347
347
|
});
|
|
348
|
-
function
|
|
348
|
+
function k(O) {
|
|
349
349
|
a.value = {
|
|
350
350
|
x: O.offsetX,
|
|
351
351
|
y: O.offsetY,
|
|
@@ -353,7 +353,7 @@ const Ga = /* @__PURE__ */ W({
|
|
|
353
353
|
height: p.value.offsetHeight
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function w(O) {
|
|
357
357
|
var P;
|
|
358
358
|
return (P = e.sceneData.find(
|
|
359
359
|
(I) => I.index === (typeof O == "string" ? parseInt(O) : O)
|
|
@@ -365,12 +365,12 @@ const Ga = /* @__PURE__ */ W({
|
|
|
365
365
|
function h(O) {
|
|
366
366
|
f.value && (o.value = -1);
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
const P =
|
|
368
|
+
function y(O) {
|
|
369
|
+
const P = w(O);
|
|
370
370
|
n("selectUnit", P), f.value && P && e.canGoToUnitCallback(P) ? n("goToUnit", P) : o.value = O;
|
|
371
371
|
}
|
|
372
|
-
function
|
|
373
|
-
const P =
|
|
372
|
+
function _(O) {
|
|
373
|
+
const P = w(O);
|
|
374
374
|
let I = "idle";
|
|
375
375
|
o.value < 0 && e.selectedUnitId && P === e.selectedUnitId ? I = "selected" : o.value >= 0 && o.value === O && (I = "hover");
|
|
376
376
|
const L = e.colorCallback(P, I);
|
|
@@ -418,10 +418,10 @@ const Ga = /* @__PURE__ */ W({
|
|
|
418
418
|
(v(!0), D(ve, null, be(l.value.svgObjects, ({ index: I, svg: L }) => (v(), D("g", {
|
|
419
419
|
key: I,
|
|
420
420
|
innerHTML: L,
|
|
421
|
-
style: de(
|
|
421
|
+
style: de(_(I)),
|
|
422
422
|
onMouseenter: (J) => c(I),
|
|
423
423
|
onMouseleave: (J) => h(),
|
|
424
|
-
onClick: (J) =>
|
|
424
|
+
onClick: (J) => y(I)
|
|
425
425
|
}, null, 44, qa))), 128))
|
|
426
426
|
], 8, Za)) : U("", !0)
|
|
427
427
|
], 4), [
|
|
@@ -458,13 +458,13 @@ const Ga = /* @__PURE__ */ W({
|
|
|
458
458
|
p.keyCode === 37 ? e.prevUnitId && r("prevUnit") : p.keyCode === 39 && e.nextUnitId && r("nextUnit");
|
|
459
459
|
}
|
|
460
460
|
return (p, i) => {
|
|
461
|
-
const f =
|
|
461
|
+
const f = V("v-btn");
|
|
462
462
|
return v(), D("div", null, [
|
|
463
463
|
C(f, {
|
|
464
464
|
elevation: "1",
|
|
465
465
|
icon: "mdi-rotate-right",
|
|
466
466
|
class: "black darken-1",
|
|
467
|
-
onClick: i[0] || (i[0] = (
|
|
467
|
+
onClick: i[0] || (i[0] = (k) => p.viewModel.rotateClockwise())
|
|
468
468
|
}),
|
|
469
469
|
C(f, {
|
|
470
470
|
elevation: "1",
|
|
@@ -472,7 +472,7 @@ const Ga = /* @__PURE__ */ W({
|
|
|
472
472
|
icon: "mdi-chevron-left",
|
|
473
473
|
class: "mr-sm-4 ml-sm-8 mr-3 ml-3 black darken-1",
|
|
474
474
|
disabled: !o.value,
|
|
475
|
-
onClick: i[1] || (i[1] = (
|
|
475
|
+
onClick: i[1] || (i[1] = (k) => r("prevUnit"))
|
|
476
476
|
}, null, 8, ["disabled"]),
|
|
477
477
|
C(f, {
|
|
478
478
|
color: "darken-2",
|
|
@@ -480,7 +480,7 @@ const Ga = /* @__PURE__ */ W({
|
|
|
480
480
|
rounded: "",
|
|
481
481
|
plain: "",
|
|
482
482
|
disabled: !n.value || !p.canGoToUnitCallback(n.value),
|
|
483
|
-
onClick: i[2] || (i[2] = (
|
|
483
|
+
onClick: i[2] || (i[2] = (k) => r("goToUnit", n.value))
|
|
484
484
|
}, {
|
|
485
485
|
default: b(() => [
|
|
486
486
|
n.value && p.canGoToUnitCallback(n.value) ? (v(), D("span", Ka, Q(A(l).getLabel("seeApartment")) + " ", 1)) : U("", !0),
|
|
@@ -494,14 +494,14 @@ const Ga = /* @__PURE__ */ W({
|
|
|
494
494
|
icon: "mdi-chevron-right",
|
|
495
495
|
class: "mr-sm-8 ml-sm-4 mr-3 ml-3 black darken-1",
|
|
496
496
|
disabled: !a.value,
|
|
497
|
-
onClick: i[3] || (i[3] = (
|
|
497
|
+
onClick: i[3] || (i[3] = (k) => r("nextUnit"))
|
|
498
498
|
}, null, 8, ["disabled"]),
|
|
499
499
|
C(f, {
|
|
500
500
|
elevation: "1",
|
|
501
501
|
plain: "",
|
|
502
502
|
icon: "mdi-rotate-left",
|
|
503
503
|
class: "black darken-1",
|
|
504
|
-
onClick: i[4] || (i[4] = (
|
|
504
|
+
onClick: i[4] || (i[4] = (k) => p.viewModel.rotateCounterClockwise())
|
|
505
505
|
})
|
|
506
506
|
]);
|
|
507
507
|
};
|
|
@@ -614,57 +614,57 @@ const on = {
|
|
|
614
614
|
},
|
|
615
615
|
emits: ["loaded", "error", "progress"],
|
|
616
616
|
setup(s, { emit: t }) {
|
|
617
|
-
const e = s, n = t, a =
|
|
618
|
-
new At(a.length).onLoadFinished(() => n("loaded")).onLoadProgress((
|
|
617
|
+
const e = s, n = t, a = w(), o = d(
|
|
618
|
+
new At(a.length).onLoadFinished(() => n("loaded")).onLoadProgress((_) => n("progress", _)).onLoadError(() => n("error"))
|
|
619
619
|
), r = d(
|
|
620
620
|
new nn(e.cardinalFrames, Wt)
|
|
621
|
-
), l = d(a), m = d(!1), p = B(() => l.value.find((
|
|
621
|
+
), l = d(a), m = d(!1), p = B(() => l.value.find((_) => _.show));
|
|
622
622
|
H(
|
|
623
623
|
() => e.viewModel.currentScene,
|
|
624
|
-
(
|
|
625
|
-
const T =
|
|
624
|
+
(_, g) => {
|
|
625
|
+
const T = y(g, _), O = h(g, _);
|
|
626
626
|
i(g, T, O);
|
|
627
627
|
}
|
|
628
628
|
), xe(() => {
|
|
629
|
-
|
|
629
|
+
k();
|
|
630
630
|
});
|
|
631
|
-
function i(
|
|
631
|
+
function i(_, g, T) {
|
|
632
632
|
e.viewModel.isRotating || (e.viewModel.isRotating = !0, f(
|
|
633
633
|
r.value.start(
|
|
634
634
|
g,
|
|
635
|
-
|
|
635
|
+
_ % ut,
|
|
636
636
|
T
|
|
637
637
|
)
|
|
638
638
|
));
|
|
639
639
|
}
|
|
640
|
-
function f(
|
|
640
|
+
function f(_) {
|
|
641
641
|
setTimeout(() => {
|
|
642
|
-
l.value[
|
|
643
|
-
const g =
|
|
644
|
-
l.value[g.frameIndex].show = !0, g.atEnd ?
|
|
642
|
+
l.value[_.frameIndex].show = !1;
|
|
643
|
+
const g = _.nextFrame();
|
|
644
|
+
l.value[g.frameIndex].show = !0, g.atEnd ? k() : window.requestAnimationFrame(() => f(g));
|
|
645
645
|
}, 1e3 / pn);
|
|
646
646
|
}
|
|
647
|
-
function
|
|
648
|
-
const
|
|
647
|
+
function k() {
|
|
648
|
+
const _ = r.value.startFrameIndexForScene(
|
|
649
649
|
e.viewModel.currentScene % ut
|
|
650
650
|
);
|
|
651
|
-
|
|
651
|
+
_ in l.value && (l.value[_].show = !0), e.viewModel.isRotating = !1;
|
|
652
652
|
}
|
|
653
|
-
function
|
|
654
|
-
const
|
|
653
|
+
function w() {
|
|
654
|
+
const _ = [];
|
|
655
655
|
for (let g = 0; g < Wt; g++) {
|
|
656
656
|
const { sourceSet: T, defaultPath: O } = c(g);
|
|
657
|
-
|
|
657
|
+
_.push({
|
|
658
658
|
index: g,
|
|
659
659
|
sourceSet: T,
|
|
660
660
|
defaultPath: O,
|
|
661
661
|
show: !1
|
|
662
662
|
});
|
|
663
663
|
}
|
|
664
|
-
return
|
|
664
|
+
return _;
|
|
665
665
|
}
|
|
666
|
-
function c(
|
|
667
|
-
const g = ("0000" + (
|
|
666
|
+
function c(_) {
|
|
667
|
+
const g = ("0000" + (_ + 1)).slice(-4), T = e.build ? `?v=${e.build}` : "", O = [
|
|
668
668
|
`${ue(
|
|
669
669
|
e.cdnFileResolver,
|
|
670
670
|
`/480/${g}.jpg${T}`
|
|
@@ -683,18 +683,18 @@ const on = {
|
|
|
683
683
|
);
|
|
684
684
|
return { sourceSet: O, defaultPath: P };
|
|
685
685
|
}
|
|
686
|
-
function h(
|
|
687
|
-
const T = ut / 2, O = Math.abs(
|
|
686
|
+
function h(_, g) {
|
|
687
|
+
const T = ut / 2, O = Math.abs(_ - g);
|
|
688
688
|
return O > T ? ut - O : O;
|
|
689
689
|
}
|
|
690
|
-
function _
|
|
691
|
-
if (
|
|
690
|
+
function y(_, g) {
|
|
691
|
+
if (_ === g)
|
|
692
692
|
return 0;
|
|
693
|
-
const O = Math.abs(
|
|
694
|
-
return O &&
|
|
693
|
+
const O = Math.abs(_ - g) < ut / 2;
|
|
694
|
+
return O && _ < g || !O && _ > g ? 1 : -1;
|
|
695
695
|
}
|
|
696
|
-
return (
|
|
697
|
-
const T =
|
|
696
|
+
return (_, g) => {
|
|
697
|
+
const T = V("v-icon");
|
|
698
698
|
return v(), D("div", null, [
|
|
699
699
|
o.value.isError ? (v(), D("div", on, [
|
|
700
700
|
C(T, { "x-large": "" }, {
|
|
@@ -749,8 +749,8 @@ const on = {
|
|
|
749
749
|
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})`;
|
|
750
750
|
});
|
|
751
751
|
return (o, r) => {
|
|
752
|
-
const l =
|
|
753
|
-
return v(),
|
|
752
|
+
const l = V("v-dialog"), m = V("v-fade-transition");
|
|
753
|
+
return v(), E(m, {
|
|
754
754
|
origin: `top left ${o.pos.x} ${o.pos.y}`
|
|
755
755
|
}, {
|
|
756
756
|
default: b(() => [
|
|
@@ -765,7 +765,7 @@ const on = {
|
|
|
765
765
|
})
|
|
766
766
|
}, [
|
|
767
767
|
oe(o.$slots, "default", { isHoverable: o.isHoverable }, void 0, !0)
|
|
768
|
-
], 4)) : (v(),
|
|
768
|
+
], 4)) : (v(), E(l, {
|
|
769
769
|
key: 1,
|
|
770
770
|
value: !0,
|
|
771
771
|
width: "auto",
|
|
@@ -797,7 +797,7 @@ const on = {
|
|
|
797
797
|
t({
|
|
798
798
|
adjustZoom: ce
|
|
799
799
|
});
|
|
800
|
-
const o = d(100), r = d(0), l = d(0), m = d(!1), p = d(!1), i = d(void 0), f = d(!1),
|
|
800
|
+
const o = d(100), r = d(0), l = d(0), m = d(!1), p = d(!1), i = d(void 0), f = d(!1), k = d(), w = B(() => `translateX(${r.value}px) translateY(${l.value}px) scale(${c.value})`), c = B(() => o.value / 100), h = B(() => n.maxScale * 100);
|
|
801
801
|
H(
|
|
802
802
|
[c, r, l],
|
|
803
803
|
() => {
|
|
@@ -807,24 +807,24 @@ const on = {
|
|
|
807
807
|
), H(
|
|
808
808
|
() => n.desktop,
|
|
809
809
|
() => {
|
|
810
|
-
n.desktop ?
|
|
810
|
+
n.desktop ? y() : g();
|
|
811
811
|
}
|
|
812
812
|
), H(
|
|
813
813
|
() => n.mobile,
|
|
814
814
|
() => {
|
|
815
|
-
n.mobile ?
|
|
815
|
+
n.mobile ? _() : T();
|
|
816
816
|
}
|
|
817
817
|
), xe(() => {
|
|
818
|
-
n.desktop &&
|
|
818
|
+
n.desktop && y(), n.mobile && _();
|
|
819
819
|
}), Qe(() => {
|
|
820
820
|
n.desktop && g(), n.mobile && T();
|
|
821
821
|
});
|
|
822
|
-
function
|
|
823
|
-
|
|
822
|
+
function y() {
|
|
823
|
+
k.value.addEventListener("wheel", O, {
|
|
824
824
|
capture: !0
|
|
825
|
-
}),
|
|
825
|
+
}), k.value.addEventListener("mousedown", P, {
|
|
826
826
|
capture: !0
|
|
827
|
-
}),
|
|
827
|
+
}), k.value.addEventListener("mousemove", I, {
|
|
828
828
|
capture: !0
|
|
829
829
|
}), window.addEventListener("mouseup", L, {
|
|
830
830
|
capture: !0
|
|
@@ -832,10 +832,10 @@ const on = {
|
|
|
832
832
|
capture: !0
|
|
833
833
|
});
|
|
834
834
|
}
|
|
835
|
-
function
|
|
836
|
-
|
|
835
|
+
function _() {
|
|
836
|
+
k.value.addEventListener("touchstart", R, {
|
|
837
837
|
capture: !0
|
|
838
|
-
}),
|
|
838
|
+
}), k.value.addEventListener("touchmove", ee, {
|
|
839
839
|
capture: !0
|
|
840
840
|
}), window.addEventListener("touchend", x, {
|
|
841
841
|
capture: !0
|
|
@@ -844,11 +844,11 @@ const on = {
|
|
|
844
844
|
});
|
|
845
845
|
}
|
|
846
846
|
function g() {
|
|
847
|
-
|
|
847
|
+
k.value.removeEventListener("wheel", O, {
|
|
848
848
|
capture: !0
|
|
849
|
-
}),
|
|
849
|
+
}), k.value.removeEventListener("mousedown", P, {
|
|
850
850
|
capture: !0
|
|
851
|
-
}),
|
|
851
|
+
}), k.value.removeEventListener("mousemove", I, {
|
|
852
852
|
capture: !0
|
|
853
853
|
}), window.removeEventListener("mouseup", L, {
|
|
854
854
|
capture: !0
|
|
@@ -857,9 +857,9 @@ const on = {
|
|
|
857
857
|
});
|
|
858
858
|
}
|
|
859
859
|
function T() {
|
|
860
|
-
|
|
860
|
+
k.value.removeEventListener("touchstart", R, {
|
|
861
861
|
capture: !0
|
|
862
|
-
}),
|
|
862
|
+
}), k.value.removeEventListener("touchmove", ee, {
|
|
863
863
|
capture: !0
|
|
864
864
|
}), window.removeEventListener("touchend", x, {
|
|
865
865
|
capture: !0
|
|
@@ -915,28 +915,28 @@ const on = {
|
|
|
915
915
|
m.value = !1, p.value = !1;
|
|
916
916
|
}
|
|
917
917
|
function S(M) {
|
|
918
|
-
const { left: Z, top: q } =
|
|
918
|
+
const { left: Z, top: q } = k.value.getBoundingClientRect();
|
|
919
919
|
return {
|
|
920
920
|
x: M.clientX - Z,
|
|
921
921
|
y: M.clientY - q
|
|
922
922
|
};
|
|
923
923
|
}
|
|
924
924
|
function Y(M) {
|
|
925
|
-
const Z =
|
|
925
|
+
const Z = k.value.clientWidth, q = Z * c.value;
|
|
926
926
|
r.value = Math.max(
|
|
927
927
|
Math.min(0, r.value + M),
|
|
928
928
|
-(q - Z)
|
|
929
929
|
);
|
|
930
930
|
}
|
|
931
931
|
function G(M) {
|
|
932
|
-
const Z =
|
|
932
|
+
const Z = k.value.clientHeight, q = Z * c.value;
|
|
933
933
|
l.value = Math.max(
|
|
934
934
|
Math.min(0, l.value + M),
|
|
935
935
|
-(q - Z)
|
|
936
936
|
);
|
|
937
937
|
}
|
|
938
938
|
function ce(M, Z, q) {
|
|
939
|
-
const ae = Z !== void 0 ? Z :
|
|
939
|
+
const ae = Z !== void 0 ? Z : k.value.clientWidth / 2, re = q !== void 0 ? q : k.value.clientHeight / 2, se = k.value.clientWidth, _e = k.value.clientHeight, ie = se * c.value, Me = _e * c.value;
|
|
940
940
|
o.value = Math.min(Math.max(100, o.value + M), h.value);
|
|
941
941
|
const Fe = se * c.value, je = _e * c.value, we = Fe - ie, De = je - Me;
|
|
942
942
|
r.value -= ae / se * we, l.value -= re / _e * De, Y(0), G(0);
|
|
@@ -950,19 +950,19 @@ const on = {
|
|
|
950
950
|
min: 100,
|
|
951
951
|
max: h.value,
|
|
952
952
|
resolve: (M, Z) => {
|
|
953
|
-
const q =
|
|
953
|
+
const q = k.value.clientWidth, ae = k.value.clientHeight, re = r.value / -c.value, se = l.value / -c.value, _e = re + q / c.value, ie = se + ae / c.value, Me = M / q * (_e - re) + re, Fe = Z / ae * (ie - se) + se;
|
|
954
954
|
return { x: Me, y: Fe };
|
|
955
955
|
}
|
|
956
956
|
});
|
|
957
957
|
}
|
|
958
958
|
return (M, Z) => (v(), D("div", {
|
|
959
959
|
ref_key: "box",
|
|
960
|
-
ref:
|
|
960
|
+
ref: k,
|
|
961
961
|
class: "zoom-box-container",
|
|
962
962
|
style: de({ position: n.position })
|
|
963
963
|
}, [
|
|
964
964
|
u("div", {
|
|
965
|
-
style: de({ "transform-origin": "top left", transform:
|
|
965
|
+
style: de({ "transform-origin": "top left", transform: w.value }),
|
|
966
966
|
class: "zoom-box"
|
|
967
967
|
}, [
|
|
968
968
|
oe(M.$slots, "default", {}, void 0, !0)
|
|
@@ -1054,10 +1054,10 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
|
|
|
1054
1054
|
Re,
|
|
1055
1055
|
n.i18nConfig ? new Ye(n.i18nConfig) : new Ye()
|
|
1056
1056
|
);
|
|
1057
|
-
const o = bt({ isReady: !1, isError: !1 }), r = d(), l = d(), m = d(), p = d(), i = d({ x: 0, y: 0, width: 0, height: 0 }), f = d(),
|
|
1057
|
+
const o = bt({ isReady: !1, isError: !1 }), r = d(), l = d(), m = d(), p = d(), i = d({ x: 0, y: 0, width: 0, height: 0 }), f = d(), k = d(), w = d(), c = B(() => w.value.isHoverEnabled), h = B(() => n.useSvg ? Xa : Qa), y = B(() => n.selectedUnitId), _ = B(() => n.nextUnitId), g = B(() => n.prevUnitId);
|
|
1058
1058
|
Be(() => {
|
|
1059
|
-
if (
|
|
1060
|
-
const I = r.value[
|
|
1059
|
+
if (y.value && p.value) {
|
|
1060
|
+
const I = r.value[y.value];
|
|
1061
1061
|
I && (p.value.currentScene = I);
|
|
1062
1062
|
}
|
|
1063
1063
|
}), xe(async () => {
|
|
@@ -1097,13 +1097,13 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
|
|
|
1097
1097
|
i.value = I;
|
|
1098
1098
|
}
|
|
1099
1099
|
function O(I) {
|
|
1100
|
-
|
|
1100
|
+
k.value = I.hoverUnit, f.value = I.closeHandler, a("hoverOverUnit", I.hoverUnit);
|
|
1101
1101
|
}
|
|
1102
1102
|
function P(I) {
|
|
1103
|
-
|
|
1103
|
+
k.value = null, f.value = I.closeHandler, a("hoverOutUnit", I.hoverUnit);
|
|
1104
1104
|
}
|
|
1105
1105
|
return (I, L) => {
|
|
1106
|
-
const J =
|
|
1106
|
+
const J = V("v-progress-linear");
|
|
1107
1107
|
return p.value ? (v(), D("div", Cn, [
|
|
1108
1108
|
u("div", wn, [
|
|
1109
1109
|
u("div", kn, [
|
|
@@ -1122,10 +1122,10 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
|
|
|
1122
1122
|
onError: L[2] || (L[2] = (R) => o.isError = !0)
|
|
1123
1123
|
}, null, 8, ["cdn-file-resolver", "view-model", "cardinal-frames", "build"]),
|
|
1124
1124
|
o.isReady ? (v(), D("div", Sn, [
|
|
1125
|
-
(v(),
|
|
1125
|
+
(v(), E(Jt(h.value), {
|
|
1126
1126
|
"cdn-file-resolver": n.cdnFileResolver,
|
|
1127
1127
|
"view-model": p.value,
|
|
1128
|
-
"selected-unit-id":
|
|
1128
|
+
"selected-unit-id": y.value,
|
|
1129
1129
|
"scene-data": l.value,
|
|
1130
1130
|
"color-callback": n.colorCallback,
|
|
1131
1131
|
"can-go-to-unit-callback": n.canGoToUnitCallback,
|
|
@@ -1145,7 +1145,7 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
|
|
|
1145
1145
|
]),
|
|
1146
1146
|
_: 3
|
|
1147
1147
|
}, 8, ["desktop", "mobile"]),
|
|
1148
|
-
|
|
1148
|
+
k.value && I.showCards ? (v(), E(ot, {
|
|
1149
1149
|
key: 0,
|
|
1150
1150
|
"is-hoverable": c.value,
|
|
1151
1151
|
pos: i.value,
|
|
@@ -1153,9 +1153,9 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
|
|
|
1153
1153
|
}, {
|
|
1154
1154
|
default: b(() => [
|
|
1155
1155
|
oe(I.$slots, "default", {
|
|
1156
|
-
unit:
|
|
1157
|
-
canGoToUnit: I.canGoToUnitCallback(
|
|
1158
|
-
goToUnit: () => I.canGoToUnitCallback(
|
|
1156
|
+
unit: k.value,
|
|
1157
|
+
canGoToUnit: I.canGoToUnitCallback(k.value),
|
|
1158
|
+
goToUnit: () => I.canGoToUnitCallback(k.value) && a("goToUnit", k.value),
|
|
1159
1159
|
pos: i.value,
|
|
1160
1160
|
isHoverable: c.value,
|
|
1161
1161
|
close: f.value
|
|
@@ -1167,13 +1167,13 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
|
|
|
1167
1167
|
C(an, {
|
|
1168
1168
|
"can-go-to-unit-callback": n.canGoToUnitCallback,
|
|
1169
1169
|
"unit-renderer": n.unitRenderer,
|
|
1170
|
-
"selected-unit-id":
|
|
1170
|
+
"selected-unit-id": y.value,
|
|
1171
1171
|
"prev-unit-id": g.value,
|
|
1172
|
-
"next-unit-id":
|
|
1172
|
+
"next-unit-id": _.value,
|
|
1173
1173
|
"view-model": p.value,
|
|
1174
1174
|
onGoToUnit: L[5] || (L[5] = (R) => a("goToUnit", R)),
|
|
1175
1175
|
onPrevUnit: L[6] || (L[6] = (R) => a("navUnit", g.value)),
|
|
1176
|
-
onNextUnit: L[7] || (L[7] = (R) => a("navUnit",
|
|
1176
|
+
onNextUnit: L[7] || (L[7] = (R) => a("navUnit", _.value))
|
|
1177
1177
|
}, null, 8, ["can-go-to-unit-callback", "unit-renderer", "selected-unit-id", "prev-unit-id", "next-unit-id", "view-model"])
|
|
1178
1178
|
])) : o.isError ? U("", !0) : (v(), D("div", xn, [
|
|
1179
1179
|
C(J, {
|
|
@@ -1186,7 +1186,7 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
|
|
|
1186
1186
|
]),
|
|
1187
1187
|
C(Ne, {
|
|
1188
1188
|
ref_key: "hoverProbe",
|
|
1189
|
-
ref:
|
|
1189
|
+
ref: w
|
|
1190
1190
|
}, null, 512)
|
|
1191
1191
|
])) : U("", !0);
|
|
1192
1192
|
};
|
|
@@ -1217,7 +1217,7 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
|
|
|
1217
1217
|
},
|
|
1218
1218
|
setup(s) {
|
|
1219
1219
|
const t = s;
|
|
1220
|
-
return (e, n) => (v(!0), D(ve, null, be(t.dayData.timeSamples, (a) => (v(),
|
|
1220
|
+
return (e, n) => (v(!0), D(ve, null, be(t.dayData.timeSamples, (a) => (v(), E(On, {
|
|
1221
1221
|
"time-sample-data": a,
|
|
1222
1222
|
"cdn-file-resolver": t.cdnFileResolver,
|
|
1223
1223
|
"current-time": e.currentTime
|
|
@@ -1232,7 +1232,7 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
|
|
|
1232
1232
|
},
|
|
1233
1233
|
setup(s) {
|
|
1234
1234
|
const t = s;
|
|
1235
|
-
return (e, n) => (v(!0), D(ve, null, be(t.cameraData.sunsimDayOfYear, (a) => (v(),
|
|
1235
|
+
return (e, n) => (v(!0), D(ve, null, be(t.cameraData.sunsimDayOfYear, (a) => (v(), E(Tn, {
|
|
1236
1236
|
"day-data": a,
|
|
1237
1237
|
"cdn-file-resolver": t.cdnFileResolver,
|
|
1238
1238
|
"current-time": t.currentTime
|
|
@@ -1310,8 +1310,8 @@ const Un = /* @__PURE__ */ W({
|
|
|
1310
1310
|
)
|
|
1311
1311
|
);
|
|
1312
1312
|
}), (r, l) => {
|
|
1313
|
-
const m =
|
|
1314
|
-
return v(),
|
|
1313
|
+
const m = V("v-select");
|
|
1314
|
+
return v(), E(m, {
|
|
1315
1315
|
modelValue: a.value,
|
|
1316
1316
|
"onUpdate:modelValue": l[0] || (l[0] = (p) => a.value = p),
|
|
1317
1317
|
items: o.value,
|
|
@@ -1355,8 +1355,8 @@ const Un = /* @__PURE__ */ W({
|
|
|
1355
1355
|
});
|
|
1356
1356
|
}
|
|
1357
1357
|
return (r, l) => {
|
|
1358
|
-
const m =
|
|
1359
|
-
return v(),
|
|
1358
|
+
const m = V("v-list-item"), p = V("v-select");
|
|
1359
|
+
return v(), E(p, {
|
|
1360
1360
|
modelValue: a.value,
|
|
1361
1361
|
"onUpdate:modelValue": l[0] || (l[0] = (i) => a.value = i),
|
|
1362
1362
|
items: e.cameraData.sunsimDayOfYear,
|
|
@@ -1420,8 +1420,8 @@ const Un = /* @__PURE__ */ W({
|
|
|
1420
1420
|
}, 200));
|
|
1421
1421
|
}
|
|
1422
1422
|
return (m, p) => {
|
|
1423
|
-
const i =
|
|
1424
|
-
return v(),
|
|
1423
|
+
const i = V("v-icon"), f = V("v-btn"), k = V("v-slider"), w = V("v-field");
|
|
1424
|
+
return v(), E(w, { variant: "solo" }, {
|
|
1425
1425
|
default: b(() => [
|
|
1426
1426
|
m.dayData.startTime === m.dayData.endTime ? (v(), D("div", Yn, [
|
|
1427
1427
|
C(i, {
|
|
@@ -1434,7 +1434,7 @@ const Un = /* @__PURE__ */ W({
|
|
|
1434
1434
|
_: 1
|
|
1435
1435
|
}),
|
|
1436
1436
|
te(" " + Q(r(a.value)), 1)
|
|
1437
|
-
])) : (v(),
|
|
1437
|
+
])) : (v(), E(k, {
|
|
1438
1438
|
key: 1,
|
|
1439
1439
|
class: "pa-1",
|
|
1440
1440
|
modelValue: a.value,
|
|
@@ -1488,7 +1488,7 @@ const Un = /* @__PURE__ */ W({
|
|
|
1488
1488
|
setup(s, { expose: t, emit: e }) {
|
|
1489
1489
|
const n = s, a = e;
|
|
1490
1490
|
t({
|
|
1491
|
-
rotateShortestRoute:
|
|
1491
|
+
rotateShortestRoute: k
|
|
1492
1492
|
});
|
|
1493
1493
|
const o = d(!1), r = d(n.currentScene), l = d(n.selectedId);
|
|
1494
1494
|
Be(() => {
|
|
@@ -1501,55 +1501,55 @@ const Un = /* @__PURE__ */ W({
|
|
|
1501
1501
|
const m = B(() => o.value ? !1 : n.apartmentChooserData.loopable ? !0 : r.value !== n.apartmentChooserData.scenes[0]), p = B(() => o.value ? !1 : n.apartmentChooserData.loopable ? !0 : r.value !== n.apartmentChooserData.scenes[n.apartmentChooserData.scenes.length - 1]);
|
|
1502
1502
|
function i() {
|
|
1503
1503
|
const c = r.value;
|
|
1504
|
-
let h = n.apartmentChooserData.scenes.findIndex((
|
|
1504
|
+
let h = n.apartmentChooserData.scenes.findIndex((_) => _ === c) + 1;
|
|
1505
1505
|
h >= n.apartmentChooserData.scenes.length && (h = 0);
|
|
1506
|
-
const
|
|
1507
|
-
n.apartmentChooserData.loopable && c >
|
|
1506
|
+
const y = n.apartmentChooserData.scenes[h];
|
|
1507
|
+
n.apartmentChooserData.loopable && c > y, w(c, y);
|
|
1508
1508
|
}
|
|
1509
1509
|
async function f() {
|
|
1510
1510
|
const c = r.value;
|
|
1511
|
-
let h = n.apartmentChooserData.scenes.findIndex((
|
|
1511
|
+
let h = n.apartmentChooserData.scenes.findIndex((_) => _ === c) - 1;
|
|
1512
1512
|
h < 0 && (h = n.apartmentChooserData.scenes.length - 1);
|
|
1513
|
-
const
|
|
1514
|
-
n.apartmentChooserData.loopable && c <
|
|
1513
|
+
const y = n.apartmentChooserData.scenes[h];
|
|
1514
|
+
n.apartmentChooserData.loopable && c < y, w(c, y);
|
|
1515
1515
|
}
|
|
1516
|
-
function
|
|
1516
|
+
function k(c) {
|
|
1517
1517
|
const h = r.value;
|
|
1518
1518
|
if (n.apartmentChooserData.loopable)
|
|
1519
1519
|
if (c < h) {
|
|
1520
|
-
let
|
|
1521
|
-
return Math.abs(
|
|
1520
|
+
let y = h - c, _ = h - (n.apartmentChooserData.cameras.length + c);
|
|
1521
|
+
return Math.abs(y) > Math.abs(_) ? w(h, c) : w(h, n.apartmentChooserData.cameras.length + c);
|
|
1522
1522
|
} else {
|
|
1523
|
-
let
|
|
1524
|
-
return Math.abs(
|
|
1523
|
+
let y = h - c, _ = n.apartmentChooserData.cameras.length + h - c;
|
|
1524
|
+
return Math.abs(y) > Math.abs(_) ? w(h, c) : w(n.apartmentChooserData.cameras.length + h, c);
|
|
1525
1525
|
}
|
|
1526
1526
|
else
|
|
1527
|
-
return
|
|
1527
|
+
return w(h, c);
|
|
1528
1528
|
}
|
|
1529
|
-
function
|
|
1530
|
-
return new Promise((
|
|
1529
|
+
function w(c, h) {
|
|
1530
|
+
return new Promise((y) => {
|
|
1531
1531
|
o.value = !0, a("onRotateStart", { from: c, to: h });
|
|
1532
|
-
let
|
|
1533
|
-
|
|
1532
|
+
let _, g = c;
|
|
1533
|
+
_ = setInterval(() => {
|
|
1534
1534
|
g < h ? (g++, r.value = Math.abs(
|
|
1535
1535
|
g % n.apartmentChooserData.cameras.length
|
|
1536
1536
|
)) : g > h ? (g--, r.value = Math.abs(
|
|
1537
1537
|
g % n.apartmentChooserData.cameras.length
|
|
1538
|
-
)) : (clearInterval(
|
|
1538
|
+
)) : (clearInterval(_), a("onRotateFinish", { from: c, to: h }), o.value = !1, y());
|
|
1539
1539
|
}, 50);
|
|
1540
1540
|
});
|
|
1541
1541
|
}
|
|
1542
1542
|
return (c, h) => {
|
|
1543
|
-
const
|
|
1543
|
+
const y = V("v-btn"), _ = V("v-chip");
|
|
1544
1544
|
return v(), D(ve, null, [
|
|
1545
|
-
C(
|
|
1545
|
+
C(y, {
|
|
1546
1546
|
class: "mx-2",
|
|
1547
1547
|
icon: "mdi-restore",
|
|
1548
1548
|
size: "small",
|
|
1549
1549
|
disabled: !m.value,
|
|
1550
1550
|
onClick: f
|
|
1551
1551
|
}, null, 8, ["disabled"]),
|
|
1552
|
-
c.renderDisplay && l.value ? (v(),
|
|
1552
|
+
c.renderDisplay && l.value ? (v(), E(_, {
|
|
1553
1553
|
key: 0,
|
|
1554
1554
|
variant: "flat",
|
|
1555
1555
|
color: "white",
|
|
@@ -1561,7 +1561,7 @@ const Un = /* @__PURE__ */ W({
|
|
|
1561
1561
|
]),
|
|
1562
1562
|
_: 1
|
|
1563
1563
|
})) : U("", !0),
|
|
1564
|
-
C(
|
|
1564
|
+
C(y, {
|
|
1565
1565
|
class: "mx-2",
|
|
1566
1566
|
icon: "mdi-reload",
|
|
1567
1567
|
size: "small",
|
|
@@ -1589,14 +1589,14 @@ const Un = /* @__PURE__ */ W({
|
|
|
1589
1589
|
}
|
|
1590
1590
|
), Be(() => {
|
|
1591
1591
|
for (const i in l) {
|
|
1592
|
-
const { element: f, state:
|
|
1592
|
+
const { element: f, state: k } = l[i], { r: w, g: c, b: h, a: y, s: _ } = e.colorCallback(i, k) || {
|
|
1593
1593
|
r: 0,
|
|
1594
1594
|
g: 0,
|
|
1595
1595
|
b: 0,
|
|
1596
1596
|
a: 0,
|
|
1597
1597
|
s: 0
|
|
1598
1598
|
};
|
|
1599
|
-
f.style.fill = `rgba(${
|
|
1599
|
+
f.style.fill = `rgba(${w}, ${c}, ${h}, ${y / 255})`, f.style.stroke = `rgb(${w}, ${c}, ${h})`, f.style.strokeWidth = _.toString();
|
|
1600
1600
|
}
|
|
1601
1601
|
}), H(r, () => {
|
|
1602
1602
|
for (const i in l)
|
|
@@ -1617,10 +1617,10 @@ const Un = /* @__PURE__ */ W({
|
|
|
1617
1617
|
const i = (f = o.value) == null ? void 0 : f.firstChild;
|
|
1618
1618
|
if (i) {
|
|
1619
1619
|
if (!i.hasAttribute("viewBox")) {
|
|
1620
|
-
const
|
|
1620
|
+
const k = `0 0 ${i.getAttribute(
|
|
1621
1621
|
"width"
|
|
1622
1622
|
)} ${i.getAttribute("height")}`;
|
|
1623
|
-
i.setAttribute("viewBox",
|
|
1623
|
+
i.setAttribute("viewBox", k);
|
|
1624
1624
|
}
|
|
1625
1625
|
i.setAttribute(
|
|
1626
1626
|
"width",
|
|
@@ -1638,25 +1638,25 @@ const Un = /* @__PURE__ */ W({
|
|
|
1638
1638
|
const i = (f = o.value) == null ? void 0 : f.firstChild;
|
|
1639
1639
|
i && (n("updateSvgContainer", i), m(), i.querySelectorAll(
|
|
1640
1640
|
"[data-apartment-id]"
|
|
1641
|
-
).forEach((
|
|
1642
|
-
|
|
1641
|
+
).forEach((w) => {
|
|
1642
|
+
w.style.strokeWidth = "0", w.style.stroke = "rgba(255,255,255,0)", w.style.fill = "rgba(255,255,255,0)", w.querySelectorAll("path").forEach((h) => {
|
|
1643
1643
|
h.style.stroke = "inherit", h.style.fill = "inherit";
|
|
1644
1644
|
});
|
|
1645
|
-
const c =
|
|
1645
|
+
const c = w.getAttribute("data-apartment-id");
|
|
1646
1646
|
l[c] = {
|
|
1647
|
-
element:
|
|
1647
|
+
element: w,
|
|
1648
1648
|
state: r.value === c ? "selected" : "idle"
|
|
1649
|
-
},
|
|
1649
|
+
}, w.addEventListener("mouseover", () => {
|
|
1650
1650
|
l[c].state === "idle" && (l[c].state = "hover"), n("onHoverOver", c);
|
|
1651
|
-
}),
|
|
1651
|
+
}), w.addEventListener("mouseout", () => {
|
|
1652
1652
|
l[c].state === "hover" && (l[c].state = "idle"), n("onHoverOut", c);
|
|
1653
|
-
}),
|
|
1653
|
+
}), w.addEventListener("click", () => {
|
|
1654
1654
|
n("onClick", c);
|
|
1655
1655
|
});
|
|
1656
1656
|
}));
|
|
1657
1657
|
});
|
|
1658
1658
|
}
|
|
1659
|
-
return (i, f) => (v(),
|
|
1659
|
+
return (i, f) => (v(), E($e, null, {
|
|
1660
1660
|
default: b(() => [
|
|
1661
1661
|
(v(), D("div", {
|
|
1662
1662
|
ref_key: "svgContainer",
|
|
@@ -1681,8 +1681,8 @@ const Un = /* @__PURE__ */ W({
|
|
|
1681
1681
|
transition: " transform 0.5s ease-in"
|
|
1682
1682
|
}));
|
|
1683
1683
|
return (n, a) => {
|
|
1684
|
-
const o =
|
|
1685
|
-
return v(),
|
|
1684
|
+
const o = V("v-img");
|
|
1685
|
+
return v(), E(o, {
|
|
1686
1686
|
src: A(qn),
|
|
1687
1687
|
style: de(e.value)
|
|
1688
1688
|
}, null, 8, ["src", "style"]);
|
|
@@ -1941,7 +1941,7 @@ const no = {
|
|
|
1941
1941
|
setup(s, { emit: t }) {
|
|
1942
1942
|
const e = s, n = t, a = d(), o = d(), r = d(), l = d(
|
|
1943
1943
|
null
|
|
1944
|
-
), m = d(4), p = d(), i = d(!1), f = d(!1),
|
|
1944
|
+
), m = d(4), p = d(), i = d(!1), f = d(!1), k = d(), w = d(), c = B(() => w.value.isHoverEnabled), h = d({ x: 0, y: 0, width: 0, height: 0 }), y = d(), _ = d(), g = d(
|
|
1945
1945
|
e.apartmentChooserData
|
|
1946
1946
|
), T = d(!1);
|
|
1947
1947
|
xe(() => {
|
|
@@ -1949,11 +1949,11 @@ const no = {
|
|
|
1949
1949
|
}), H(i, (j) => {
|
|
1950
1950
|
j && n("onInitialize");
|
|
1951
1951
|
}), H(
|
|
1952
|
-
() =>
|
|
1952
|
+
() => _.value,
|
|
1953
1953
|
() => {
|
|
1954
|
-
|
|
1954
|
+
_.value && new ResizeObserver(([M]) => {
|
|
1955
1955
|
T.value = M.contentRect.width < e.mobileBreakpoint;
|
|
1956
|
-
}).observe(
|
|
1956
|
+
}).observe(_.value);
|
|
1957
1957
|
}
|
|
1958
1958
|
);
|
|
1959
1959
|
const O = B(
|
|
@@ -2004,7 +2004,7 @@ const no = {
|
|
|
2004
2004
|
{ immediate: !0 }
|
|
2005
2005
|
);
|
|
2006
2006
|
function L(j) {
|
|
2007
|
-
a.value !== j &&
|
|
2007
|
+
a.value !== j && k.value.rotateShortestRoute(
|
|
2008
2008
|
g.value.cameras.findIndex((M) => M === j)
|
|
2009
2009
|
);
|
|
2010
2010
|
}
|
|
@@ -2047,7 +2047,7 @@ const no = {
|
|
|
2047
2047
|
const M = g.value.unitData.find(
|
|
2048
2048
|
(Z) => Z.unitId === j
|
|
2049
2049
|
);
|
|
2050
|
-
M &&
|
|
2050
|
+
M && k.value.rotateShortestRoute(M.bestScene);
|
|
2051
2051
|
});
|
|
2052
2052
|
}
|
|
2053
2053
|
function Y(j) {
|
|
@@ -2060,7 +2060,7 @@ const no = {
|
|
|
2060
2060
|
const { layerX: M, layerY: Z } = j;
|
|
2061
2061
|
let q = j.target, ae = !1;
|
|
2062
2062
|
for (; q; )
|
|
2063
|
-
if (q ===
|
|
2063
|
+
if (q === y.value) {
|
|
2064
2064
|
ae = !0;
|
|
2065
2065
|
break;
|
|
2066
2066
|
} else
|
|
@@ -2078,7 +2078,7 @@ const no = {
|
|
|
2078
2078
|
n("onMouseMove", j, h.value);
|
|
2079
2079
|
}
|
|
2080
2080
|
return (j, M) => {
|
|
2081
|
-
const Z =
|
|
2081
|
+
const Z = V("v-skeleton-loader");
|
|
2082
2082
|
return v(), D(ve, null, [
|
|
2083
2083
|
C(Z, {
|
|
2084
2084
|
type: "image",
|
|
@@ -2090,13 +2090,13 @@ const no = {
|
|
|
2090
2090
|
default: b(() => [
|
|
2091
2091
|
u("div", {
|
|
2092
2092
|
ref_key: "container",
|
|
2093
|
-
ref:
|
|
2093
|
+
ref: _,
|
|
2094
2094
|
class: ye({ mobile: T.value }),
|
|
2095
2095
|
onMousemove: ce
|
|
2096
2096
|
}, [
|
|
2097
2097
|
u("div", no, [
|
|
2098
2098
|
u("div", oo, [
|
|
2099
|
-
g.value.cameras.length > 1 ? (v(),
|
|
2099
|
+
g.value.cameras.length > 1 ? (v(), E(Un, {
|
|
2100
2100
|
key: 0,
|
|
2101
2101
|
"apartment-chooser-data": g.value,
|
|
2102
2102
|
"current-camera": a.value,
|
|
@@ -2105,7 +2105,7 @@ const no = {
|
|
|
2105
2105
|
}, null, 8, ["apartment-chooser-data", "current-camera", "disabled"])) : U("", !0)
|
|
2106
2106
|
]),
|
|
2107
2107
|
u("div", lo, [
|
|
2108
|
-
a.value.sunsimDayOfYear.length > 1 ? (v(),
|
|
2108
|
+
a.value.sunsimDayOfYear.length > 1 ? (v(), E(Hn, {
|
|
2109
2109
|
key: 0,
|
|
2110
2110
|
"camera-data": a.value,
|
|
2111
2111
|
"current-day": o.value,
|
|
@@ -2114,7 +2114,7 @@ const no = {
|
|
|
2114
2114
|
}, null, 8, ["camera-data", "current-day", "disabled"])) : U("", !0)
|
|
2115
2115
|
]),
|
|
2116
2116
|
u("div", so, [
|
|
2117
|
-
o.value.timeSamples.length > 1 ? (v(),
|
|
2117
|
+
o.value.timeSamples.length > 1 ? (v(), E(Wn, {
|
|
2118
2118
|
key: 0,
|
|
2119
2119
|
"day-data": o.value,
|
|
2120
2120
|
"current-time": r.value,
|
|
@@ -2124,10 +2124,10 @@ const no = {
|
|
|
2124
2124
|
])
|
|
2125
2125
|
]),
|
|
2126
2126
|
u("div", ro, [
|
|
2127
|
-
g.value.cameras.length > 1 ? (v(),
|
|
2127
|
+
g.value.cameras.length > 1 ? (v(), E(Nn, {
|
|
2128
2128
|
key: 0,
|
|
2129
2129
|
ref_key: "rotator",
|
|
2130
|
-
ref:
|
|
2130
|
+
ref: k,
|
|
2131
2131
|
"apartment-chooser-data": g.value,
|
|
2132
2132
|
"current-scene": m.value,
|
|
2133
2133
|
"selected-id": j.selectedId,
|
|
@@ -2139,20 +2139,20 @@ const no = {
|
|
|
2139
2139
|
}, null, 8, ["apartment-chooser-data", "current-scene", "selected-id", "render-display"])) : U("", !0)
|
|
2140
2140
|
]),
|
|
2141
2141
|
u("div", io, [
|
|
2142
|
-
a.value.cameraRotation ? (v(),
|
|
2142
|
+
a.value.cameraRotation ? (v(), E(st, {
|
|
2143
2143
|
key: 0,
|
|
2144
2144
|
longitude: a.value.cameraRotation.y + 270
|
|
2145
2145
|
}, null, 8, ["longitude"])) : U("", !0)
|
|
2146
2146
|
]),
|
|
2147
2147
|
C(lt, { position: "relative" }, {
|
|
2148
2148
|
default: b(() => [
|
|
2149
|
-
(v(!0), D(ve, null, be(O.value, (q) => (v(),
|
|
2149
|
+
(v(!0), D(ve, null, be(O.value, (q) => (v(), E(En, {
|
|
2150
2150
|
key: q.overlayFilename,
|
|
2151
2151
|
"camera-data": q,
|
|
2152
2152
|
"cdn-file-resolver": e.cdnFileResolver,
|
|
2153
2153
|
"current-time": r.value
|
|
2154
2154
|
}, null, 8, ["camera-data", "cdn-file-resolver", "current-time"]))), 128)),
|
|
2155
|
-
(v(!0), D(ve, null, be(P.value, (q) => (v(),
|
|
2155
|
+
(v(!0), D(ve, null, be(P.value, (q) => (v(), E(Bn, {
|
|
2156
2156
|
"transition-data": q,
|
|
2157
2157
|
"cdn-file-resolver": e.cdnFileResolver,
|
|
2158
2158
|
"current-transition": l.value
|
|
@@ -2171,14 +2171,14 @@ const no = {
|
|
|
2171
2171
|
onOnClick: S,
|
|
2172
2172
|
onOnHoverOver: Y,
|
|
2173
2173
|
onOnHoverOut: G,
|
|
2174
|
-
onUpdateSvgContainer: M[2] || (M[2] = (q) =>
|
|
2174
|
+
onUpdateSvgContainer: M[2] || (M[2] = (q) => y.value = q)
|
|
2175
2175
|
}, null, 8, ["cdn-file-resolver", "color-callback", "current-camera", "selected-id"]), [
|
|
2176
2176
|
[Se, l.value === null]
|
|
2177
2177
|
])
|
|
2178
2178
|
]),
|
|
2179
2179
|
_: 1
|
|
2180
2180
|
}),
|
|
2181
|
-
j.$slots.popup && h.value && p.value ? (v(),
|
|
2181
|
+
j.$slots.popup && h.value && p.value ? (v(), E(ot, {
|
|
2182
2182
|
key: 0,
|
|
2183
2183
|
"is-hoverable": c.value,
|
|
2184
2184
|
pos: h.value
|
|
@@ -2199,7 +2199,7 @@ const no = {
|
|
|
2199
2199
|
}, 8, ["loading"]),
|
|
2200
2200
|
C(Ne, {
|
|
2201
2201
|
ref_key: "hoverProbe",
|
|
2202
|
-
ref:
|
|
2202
|
+
ref: w
|
|
2203
2203
|
}, null, 512)
|
|
2204
2204
|
], 64);
|
|
2205
2205
|
};
|
|
@@ -2246,18 +2246,18 @@ const no = {
|
|
|
2246
2246
|
), Be(() => {
|
|
2247
2247
|
o.value = r(e.dateSelector.selectedDate);
|
|
2248
2248
|
}), (i, f) => {
|
|
2249
|
-
const
|
|
2249
|
+
const k = V("v-icon"), w = V("v-select"), c = V("v-progress-linear"), h = V("v-slider");
|
|
2250
2250
|
return v(), D("div", mo, [
|
|
2251
2251
|
u("div", po, [
|
|
2252
|
-
C(
|
|
2252
|
+
C(k, {
|
|
2253
2253
|
color: "black",
|
|
2254
2254
|
class: "mr-2",
|
|
2255
2255
|
icon: "mdi-calendar-blank-outline"
|
|
2256
2256
|
}),
|
|
2257
|
-
i.dateSelector.hasMultipleDates ? (v(),
|
|
2257
|
+
i.dateSelector.hasMultipleDates ? (v(), E(w, {
|
|
2258
2258
|
key: 0,
|
|
2259
2259
|
modelValue: o.value,
|
|
2260
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
2260
|
+
"onUpdate:modelValue": f[0] || (f[0] = (y) => o.value = y),
|
|
2261
2261
|
items: m.value,
|
|
2262
2262
|
density: "compact",
|
|
2263
2263
|
variant: "underlined",
|
|
@@ -2267,7 +2267,7 @@ const no = {
|
|
|
2267
2267
|
]),
|
|
2268
2268
|
u("div", ho, [
|
|
2269
2269
|
u("span", go, Q(l.value), 1),
|
|
2270
|
-
C(
|
|
2270
|
+
C(k, {
|
|
2271
2271
|
medium: "",
|
|
2272
2272
|
class: "ml-2 mr-2 icon"
|
|
2273
2273
|
}, {
|
|
@@ -2276,7 +2276,7 @@ const no = {
|
|
|
2276
2276
|
]),
|
|
2277
2277
|
_: 1
|
|
2278
2278
|
}),
|
|
2279
|
-
i.isLoading ? (v(),
|
|
2279
|
+
i.isLoading ? (v(), E(c, {
|
|
2280
2280
|
key: 0,
|
|
2281
2281
|
style: { left: 0, transform: "none" },
|
|
2282
2282
|
indeterminate: "",
|
|
@@ -2284,10 +2284,10 @@ const no = {
|
|
|
2284
2284
|
height: "6",
|
|
2285
2285
|
color: "grey lighten-1",
|
|
2286
2286
|
class: "mr-2"
|
|
2287
|
-
})) : (v(),
|
|
2287
|
+
})) : (v(), E(h, {
|
|
2288
2288
|
key: 1,
|
|
2289
2289
|
modelValue: a.value,
|
|
2290
|
-
"onUpdate:modelValue": f[1] || (f[1] = (
|
|
2290
|
+
"onUpdate:modelValue": f[1] || (f[1] = (y) => a.value = y),
|
|
2291
2291
|
min: 0,
|
|
2292
2292
|
max: 47,
|
|
2293
2293
|
step: 1,
|
|
@@ -2344,11 +2344,11 @@ const no = {
|
|
|
2344
2344
|
onLoad: l
|
|
2345
2345
|
}, null, 544),
|
|
2346
2346
|
a.value === "preloaded" || a.value === "loaded" ? Ce((v(), D("div", _o, [
|
|
2347
|
-
(v(!0), D(ve, null, be(p.imageUrls, (f,
|
|
2348
|
-
key:
|
|
2349
|
-
class: ye({ "image-instance": !0, active:
|
|
2347
|
+
(v(!0), D(ve, null, be(p.imageUrls, (f, k) => (v(), D("img", {
|
|
2348
|
+
key: k,
|
|
2349
|
+
class: ye({ "image-instance": !0, active: k === p.activeIndex }),
|
|
2350
2350
|
src: f,
|
|
2351
|
-
onLoad: i[0] || (i[0] = (
|
|
2351
|
+
onLoad: i[0] || (i[0] = (w) => o.value.partLoaded())
|
|
2352
2352
|
}, null, 42, bo))), 128))
|
|
2353
2353
|
], 512)), [
|
|
2354
2354
|
[Se, a.value === "loaded"]
|
|
@@ -2388,7 +2388,7 @@ const no = {
|
|
|
2388
2388
|
height: 0
|
|
2389
2389
|
}), r = d({ x: 0, y: 0, width: 0, height: 0 }), l = d(), m = d(
|
|
2390
2390
|
(/* @__PURE__ */ new Date()).getHours() * 2 + ((/* @__PURE__ */ new Date()).getMinutes() < 30 ? 0 : 1)
|
|
2391
|
-
), p = d(!1), i = d(new Oe()), f = d(),
|
|
2391
|
+
), p = d(!1), i = d(new Oe()), f = d(), k = d("0 0 0 0"), w = d(), c = d(), h = d(tt.empty()), y = d(at.empty()), _ = d(), g = B(() => _.value.isHoverEnabled);
|
|
2392
2392
|
H(l, (x, S) => {
|
|
2393
2393
|
x ? n("hoverOverBuilding", x) : n("hoverOutBuilding", S);
|
|
2394
2394
|
}), Be(() => {
|
|
@@ -2405,7 +2405,7 @@ const no = {
|
|
|
2405
2405
|
e.buildingChooserData
|
|
2406
2406
|
);
|
|
2407
2407
|
if (S) {
|
|
2408
|
-
|
|
2408
|
+
y.value = new at(S.mapImage), h.value = new tt(S.buildingIds), w.value = new kt(S.backgrounds), c.value = {
|
|
2409
2409
|
buildingOverlays: S.buildingOverlays,
|
|
2410
2410
|
viewLongitude: S.viewLongitude
|
|
2411
2411
|
};
|
|
@@ -2413,7 +2413,7 @@ const no = {
|
|
|
2413
2413
|
for (let { id: G, url: ce } of S.buildingOverlays)
|
|
2414
2414
|
i.value.loadJson(ce.replace(".png", ".svg")).then((j) => {
|
|
2415
2415
|
const Z = new DOMParser().parseFromString(j, "image/svg+xml").getElementsByTagName("svg")[0];
|
|
2416
|
-
|
|
2416
|
+
k.value = Z.getAttribute("viewBox"), Y.push({
|
|
2417
2417
|
id: G,
|
|
2418
2418
|
svg: Z.innerHTML
|
|
2419
2419
|
});
|
|
@@ -2491,7 +2491,7 @@ const no = {
|
|
|
2491
2491
|
l.value = x, g.value && l.value && e.canGoToBuildingCallback(l.value) && n("goToBuilding", l.value);
|
|
2492
2492
|
}
|
|
2493
2493
|
return (x, S) => {
|
|
2494
|
-
const Y =
|
|
2494
|
+
const Y = V("v-icon");
|
|
2495
2495
|
return p.value ? (v(), D("div", wo, [
|
|
2496
2496
|
C(Y, { "x-large": "" }, {
|
|
2497
2497
|
default: b(() => [
|
|
@@ -2511,7 +2511,7 @@ const no = {
|
|
|
2511
2511
|
default: b(() => [
|
|
2512
2512
|
u("div", ko, [
|
|
2513
2513
|
C(aa, {
|
|
2514
|
-
"image-urls":
|
|
2514
|
+
"image-urls": w.value.imageUrls,
|
|
2515
2515
|
"active-index": m.value,
|
|
2516
2516
|
onResize: T,
|
|
2517
2517
|
onPreloaded: S[0] || (S[0] = (G) => a.value.preloaded = !0),
|
|
@@ -2520,7 +2520,7 @@ const no = {
|
|
|
2520
2520
|
}, null, 8, ["image-urls", "active-index"]),
|
|
2521
2521
|
f.value ? Ce((v(), D("div", So, [
|
|
2522
2522
|
u("div", Io, [
|
|
2523
|
-
(v(), D("svg", { viewBox:
|
|
2523
|
+
(v(), D("svg", { viewBox: k.value }, [
|
|
2524
2524
|
(v(!0), D(ve, null, be(f.value, ({ id: G, svg: ce }, j) => (v(), D("g", {
|
|
2525
2525
|
key: j,
|
|
2526
2526
|
innerHTML: ce,
|
|
@@ -2548,7 +2548,7 @@ const no = {
|
|
|
2548
2548
|
_: 1
|
|
2549
2549
|
}, 8, ["desktop", "mobile"]),
|
|
2550
2550
|
Ce(u("div", null, [
|
|
2551
|
-
c.value.viewLongitude ? (v(),
|
|
2551
|
+
c.value.viewLongitude ? (v(), E(st, {
|
|
2552
2552
|
key: 0,
|
|
2553
2553
|
class: "north-indicator",
|
|
2554
2554
|
longitude: c.value.viewLongitude
|
|
@@ -2556,13 +2556,13 @@ const no = {
|
|
|
2556
2556
|
C(ta, {
|
|
2557
2557
|
modelValue: m.value,
|
|
2558
2558
|
"onUpdate:modelValue": S[2] || (S[2] = (G) => m.value = G),
|
|
2559
|
-
"date-selector":
|
|
2559
|
+
"date-selector": w.value,
|
|
2560
2560
|
"is-loading": !a.value.ready
|
|
2561
2561
|
}, null, 8, ["modelValue", "date-selector", "is-loading"])
|
|
2562
2562
|
], 512), [
|
|
2563
2563
|
[Se, a.value.preloaded]
|
|
2564
2564
|
]),
|
|
2565
|
-
x.showCards && l.value ? (v(),
|
|
2565
|
+
x.showCards && l.value ? (v(), E(ot, {
|
|
2566
2566
|
key: 0,
|
|
2567
2567
|
"is-hoverable": g.value,
|
|
2568
2568
|
pos: r.value,
|
|
@@ -2582,7 +2582,7 @@ const no = {
|
|
|
2582
2582
|
}, 8, ["is-hoverable", "pos"])) : U("", !0),
|
|
2583
2583
|
C(Ne, {
|
|
2584
2584
|
ref_key: "hoverProbe",
|
|
2585
|
-
ref:
|
|
2585
|
+
ref: _
|
|
2586
2586
|
}, null, 512)
|
|
2587
2587
|
], 4)) : U("", !0);
|
|
2588
2588
|
};
|
|
@@ -2602,8 +2602,8 @@ const no = {
|
|
|
2602
2602
|
const n = d(!1), a = d(), o = d(new Oe()), r = d(), l = d(), m = d([]), p = d();
|
|
2603
2603
|
H(
|
|
2604
2604
|
() => e.color,
|
|
2605
|
-
(
|
|
2606
|
-
(
|
|
2605
|
+
(w, c) => {
|
|
2606
|
+
(w.r !== c.r || w.g !== c.g || w.b !== c.b || w.a !== c.a) && f();
|
|
2607
2607
|
}
|
|
2608
2608
|
), xe(async () => {
|
|
2609
2609
|
a.value = await o.value.loadImage(e.imageUrl), i();
|
|
@@ -2611,29 +2611,29 @@ const no = {
|
|
|
2611
2611
|
function i() {
|
|
2612
2612
|
if (!a.value || !p.value)
|
|
2613
2613
|
return;
|
|
2614
|
-
const { width:
|
|
2615
|
-
if (!(
|
|
2614
|
+
const { width: w, height: c } = e.dimensions;
|
|
2615
|
+
if (!(w === 0 || c === 0)) {
|
|
2616
2616
|
r.value = p.value.getContext("2d", {
|
|
2617
2617
|
willReadFrequently: !0
|
|
2618
|
-
}), r.value.drawImage(a.value, 0, 0,
|
|
2618
|
+
}), r.value.drawImage(a.value, 0, 0, w, c), l.value = r.value.getImageData(0, 0, w, c);
|
|
2619
2619
|
for (let h = 3; h < l.value.data.length; h += 4)
|
|
2620
2620
|
l.value.data[h] !== 0 && m.value.push(h);
|
|
2621
2621
|
f(), n.value = !0;
|
|
2622
2622
|
}
|
|
2623
2623
|
}
|
|
2624
2624
|
function f() {
|
|
2625
|
-
r.value && l.value && (
|
|
2625
|
+
r.value && l.value && (k(), r.value.putImageData(l.value, 0, 0));
|
|
2626
2626
|
}
|
|
2627
|
-
function
|
|
2627
|
+
function k() {
|
|
2628
2628
|
if (e.color)
|
|
2629
|
-
for (let
|
|
2630
|
-
l.value.data[m.value[
|
|
2629
|
+
for (let w = 0; w < m.value.length; w++)
|
|
2630
|
+
l.value.data[m.value[w] - 3] = e.color.r, l.value.data[m.value[w] - 2] = e.color.g, l.value.data[m.value[w] - 1] = e.color.b, l.value.data[m.value[w]] = e.color.a;
|
|
2631
2631
|
}
|
|
2632
|
-
return (
|
|
2632
|
+
return (w, c) => (v(), D("canvas", Te({
|
|
2633
2633
|
ref_key: "canvas",
|
|
2634
2634
|
ref: p,
|
|
2635
2635
|
class: "overlay"
|
|
2636
|
-
},
|
|
2636
|
+
}, w.dimensions), null, 16));
|
|
2637
2637
|
}
|
|
2638
2638
|
}), Oo = /* @__PURE__ */ K(Mo, [["__scopeId", "data-v-9e4cdd0e"]]), To = {
|
|
2639
2639
|
key: 0,
|
|
@@ -2666,11 +2666,11 @@ const no = {
|
|
|
2666
2666
|
}), r = d({
|
|
2667
2667
|
width: 0,
|
|
2668
2668
|
height: 0
|
|
2669
|
-
}), l = d({ x: 0, y: 0, width: 0, height: 0 }), m = d(), p = d(tt.empty()), i = d(at.empty()), f = d(),
|
|
2669
|
+
}), l = d({ x: 0, y: 0, width: 0, height: 0 }), m = d(), p = d(tt.empty()), i = d(at.empty()), f = d(), k = d(
|
|
2670
2670
|
(/* @__PURE__ */ new Date()).getHours() * 2 + ((/* @__PURE__ */ new Date()).getMinutes() < 30 ? 0 : 1)
|
|
2671
|
-
),
|
|
2671
|
+
), w = d(
|
|
2672
2672
|
(x, S) => ({ x, y: S })
|
|
2673
|
-
), c = d(!1), h = d(),
|
|
2673
|
+
), c = d(!1), h = d(), y = d(), _ = d(), g = B(() => {
|
|
2674
2674
|
var x;
|
|
2675
2675
|
return (x = h.value) == null ? void 0 : x.isHoverEnabled;
|
|
2676
2676
|
});
|
|
@@ -2679,7 +2679,7 @@ const no = {
|
|
|
2679
2679
|
const [x, S, Y] = /^(\d\d):(\d\d)$/.exec(
|
|
2680
2680
|
e.buildingChooserTimeOfDay
|
|
2681
2681
|
), G = parseInt(Y);
|
|
2682
|
-
|
|
2682
|
+
k.value = parseInt(S) * 2 + (G < 15 ? 0 : G > 45 ? 2 : 1);
|
|
2683
2683
|
}
|
|
2684
2684
|
}), H(f, (x, S) => {
|
|
2685
2685
|
x ? n("hoverOverBuilding", x) : n("hoverOutBuilding", S);
|
|
@@ -2701,7 +2701,7 @@ const no = {
|
|
|
2701
2701
|
o.value = { preloaded: !1, ready: !1 };
|
|
2702
2702
|
}
|
|
2703
2703
|
function P(x) {
|
|
2704
|
-
const { layerX: S, layerY: Y } = x, { x: G, y: ce } =
|
|
2704
|
+
const { layerX: S, layerY: Y } = x, { x: G, y: ce } = w.value(S, Y);
|
|
2705
2705
|
return p.value.getBuildingId(
|
|
2706
2706
|
i.value,
|
|
2707
2707
|
G,
|
|
@@ -2709,8 +2709,8 @@ const no = {
|
|
|
2709
2709
|
);
|
|
2710
2710
|
}
|
|
2711
2711
|
function I() {
|
|
2712
|
-
if (
|
|
2713
|
-
for (const x of
|
|
2712
|
+
if (y.value && (i.value.update(y.value), _.value))
|
|
2713
|
+
for (const x of _.value)
|
|
2714
2714
|
x.setupDraw();
|
|
2715
2715
|
}
|
|
2716
2716
|
function L(x) {
|
|
@@ -2732,10 +2732,10 @@ const no = {
|
|
|
2732
2732
|
);
|
|
2733
2733
|
}
|
|
2734
2734
|
function ee({ resolve: x }) {
|
|
2735
|
-
|
|
2735
|
+
w.value = x;
|
|
2736
2736
|
}
|
|
2737
2737
|
return (x, S) => {
|
|
2738
|
-
const Y =
|
|
2738
|
+
const Y = V("v-icon");
|
|
2739
2739
|
return c.value ? (v(), D("div", To, [
|
|
2740
2740
|
C(Y, { "x-large": "" }, {
|
|
2741
2741
|
default: b(() => [
|
|
@@ -2757,17 +2757,17 @@ const no = {
|
|
|
2757
2757
|
u("div", Eo, [
|
|
2758
2758
|
C(aa, {
|
|
2759
2759
|
"image-urls": a.value.imageUrls,
|
|
2760
|
-
"active-index":
|
|
2760
|
+
"active-index": k.value,
|
|
2761
2761
|
onResize: T,
|
|
2762
2762
|
onPreloaded: S[0] || (S[0] = (G) => o.value.preloaded = !0),
|
|
2763
2763
|
onReady: S[1] || (S[1] = (G) => o.value.ready = !0),
|
|
2764
2764
|
onReset: O
|
|
2765
2765
|
}, null, 8, ["image-urls", "active-index"]),
|
|
2766
2766
|
Ce(u("div", null, [
|
|
2767
|
-
(v(!0), D(ve, null, be(m.value.buildingOverlays, (G) => (v(),
|
|
2767
|
+
(v(!0), D(ve, null, be(m.value.buildingOverlays, (G) => (v(), E(Oo, {
|
|
2768
2768
|
ref_for: !0,
|
|
2769
2769
|
ref_key: "overlays",
|
|
2770
|
-
ref:
|
|
2770
|
+
ref: _,
|
|
2771
2771
|
key: G.id,
|
|
2772
2772
|
"image-url": G.url,
|
|
2773
2773
|
dimensions: r.value,
|
|
@@ -2779,7 +2779,7 @@ const no = {
|
|
|
2779
2779
|
]),
|
|
2780
2780
|
u("canvas", Te(r.value, {
|
|
2781
2781
|
ref_key: "canvas",
|
|
2782
|
-
ref:
|
|
2782
|
+
ref: y,
|
|
2783
2783
|
class: { hover: !!f.value },
|
|
2784
2784
|
onClick: J,
|
|
2785
2785
|
onMousemove: L
|
|
@@ -2794,21 +2794,21 @@ const no = {
|
|
|
2794
2794
|
_: 1
|
|
2795
2795
|
}, 8, ["desktop", "mobile"]),
|
|
2796
2796
|
Ce(u("div", null, [
|
|
2797
|
-
m.value.viewLongitude ? (v(),
|
|
2797
|
+
m.value.viewLongitude ? (v(), E(st, {
|
|
2798
2798
|
key: 0,
|
|
2799
2799
|
class: "north-indicator",
|
|
2800
2800
|
longitude: m.value.viewLongitude
|
|
2801
2801
|
}, null, 8, ["longitude"])) : U("", !0),
|
|
2802
2802
|
C(ta, {
|
|
2803
|
-
modelValue:
|
|
2804
|
-
"onUpdate:modelValue": S[2] || (S[2] = (G) =>
|
|
2803
|
+
modelValue: k.value,
|
|
2804
|
+
"onUpdate:modelValue": S[2] || (S[2] = (G) => k.value = G),
|
|
2805
2805
|
"date-selector": a.value,
|
|
2806
2806
|
"is-loading": !o.value.ready
|
|
2807
2807
|
}, null, 8, ["modelValue", "date-selector", "is-loading"])
|
|
2808
2808
|
], 512), [
|
|
2809
2809
|
[Se, o.value.preloaded]
|
|
2810
2810
|
]),
|
|
2811
|
-
x.showCards && f.value ? (v(),
|
|
2811
|
+
x.showCards && f.value ? (v(), E(ot, {
|
|
2812
2812
|
key: 0,
|
|
2813
2813
|
"is-hoverable": g.value,
|
|
2814
2814
|
pos: l.value,
|
|
@@ -2853,7 +2853,7 @@ const no = {
|
|
|
2853
2853
|
const e = s, n = t, a = B(
|
|
2854
2854
|
() => e.useSvg ? Lo : Bo
|
|
2855
2855
|
);
|
|
2856
|
-
return (o, r) => (v(),
|
|
2856
|
+
return (o, r) => (v(), E(Jt(a.value), {
|
|
2857
2857
|
"i18n-config": e.i18nConfig,
|
|
2858
2858
|
"show-cards": e.showCards,
|
|
2859
2859
|
"color-callback": e.colorCallback,
|
|
@@ -2902,7 +2902,7 @@ const no = {
|
|
|
2902
2902
|
},
|
|
2903
2903
|
setup(s) {
|
|
2904
2904
|
const t = s;
|
|
2905
|
-
return (e, n) => (v(!0), D(ve, null, be(t.dayData.timeSamples, (a) => (v(),
|
|
2905
|
+
return (e, n) => (v(!0), D(ve, null, be(t.dayData.timeSamples, (a) => (v(), E(Yo, {
|
|
2906
2906
|
"time-sample-data": a,
|
|
2907
2907
|
"cdn-file-resolver": t.cdnFileResolver,
|
|
2908
2908
|
"current-time": e.currentTime
|
|
@@ -2917,7 +2917,7 @@ const no = {
|
|
|
2917
2917
|
},
|
|
2918
2918
|
setup(s) {
|
|
2919
2919
|
const t = s;
|
|
2920
|
-
return (e, n) => (v(!0), D(ve, null, be(t.cameraData.sunsimDayOfYear, (a) => (v(),
|
|
2920
|
+
return (e, n) => (v(!0), D(ve, null, be(t.cameraData.sunsimDayOfYear, (a) => (v(), E(zo, {
|
|
2921
2921
|
"day-data": a,
|
|
2922
2922
|
"cdn-file-resolver": t.cdnFileResolver,
|
|
2923
2923
|
"current-time": t.currentTime
|
|
@@ -2942,8 +2942,8 @@ const no = {
|
|
|
2942
2942
|
)
|
|
2943
2943
|
);
|
|
2944
2944
|
}), (o, r) => {
|
|
2945
|
-
const l =
|
|
2946
|
-
return v(),
|
|
2945
|
+
const l = V("v-select");
|
|
2946
|
+
return v(), E(l, {
|
|
2947
2947
|
modelValue: a.value,
|
|
2948
2948
|
"onUpdate:modelValue": r[0] || (r[0] = (m) => a.value = m),
|
|
2949
2949
|
items: e.buildingChooserData.cameras,
|
|
@@ -2985,8 +2985,8 @@ const no = {
|
|
|
2985
2985
|
});
|
|
2986
2986
|
}
|
|
2987
2987
|
return (r, l) => {
|
|
2988
|
-
const m =
|
|
2989
|
-
return v(),
|
|
2988
|
+
const m = V("v-list-item"), p = V("v-select");
|
|
2989
|
+
return v(), E(p, {
|
|
2990
2990
|
modelValue: a.value,
|
|
2991
2991
|
"onUpdate:modelValue": l[0] || (l[0] = (i) => a.value = i),
|
|
2992
2992
|
items: e.cameraData.sunsimDayOfYear,
|
|
@@ -3048,8 +3048,8 @@ const no = {
|
|
|
3048
3048
|
}, 200));
|
|
3049
3049
|
}
|
|
3050
3050
|
return (m, p) => {
|
|
3051
|
-
const i =
|
|
3052
|
-
return v(),
|
|
3051
|
+
const i = V("v-icon"), f = V("v-btn"), k = V("v-slider"), w = V("v-field");
|
|
3052
|
+
return v(), E(w, { variant: "solo" }, {
|
|
3053
3053
|
default: b(() => [
|
|
3054
3054
|
m.dayData.startTime === m.dayData.endTime ? (v(), D("div", No, [
|
|
3055
3055
|
C(i, {
|
|
@@ -3062,7 +3062,7 @@ const no = {
|
|
|
3062
3062
|
_: 1
|
|
3063
3063
|
}),
|
|
3064
3064
|
te(" " + Q(r(a.value)), 1)
|
|
3065
|
-
])) : (v(),
|
|
3065
|
+
])) : (v(), E(k, {
|
|
3066
3066
|
key: 1,
|
|
3067
3067
|
class: "pa-1",
|
|
3068
3068
|
modelValue: a.value,
|
|
@@ -3116,14 +3116,14 @@ const no = {
|
|
|
3116
3116
|
const e = s, n = t, a = d(), o = d(), r = d(e.selectedId), l = bt({});
|
|
3117
3117
|
Be(() => {
|
|
3118
3118
|
for (const i in l) {
|
|
3119
|
-
const { element: f, state:
|
|
3119
|
+
const { element: f, state: k } = l[i], { r: w, g: c, b: h, a: y, s: _ } = e.colorCallback(i, k) || {
|
|
3120
3120
|
r: 0,
|
|
3121
3121
|
g: 0,
|
|
3122
3122
|
b: 0,
|
|
3123
3123
|
a: 0,
|
|
3124
3124
|
s: 0
|
|
3125
3125
|
};
|
|
3126
|
-
f.style.fill = `rgba(${
|
|
3126
|
+
f.style.fill = `rgba(${w}, ${c}, ${h}, ${y / 255})`, f.style.stroke = `rgb(${w}, ${c}, ${h})`, f.style.strokeWidth = _.toString();
|
|
3127
3127
|
}
|
|
3128
3128
|
}), H(
|
|
3129
3129
|
() => e.selectedId,
|
|
@@ -3148,10 +3148,10 @@ const no = {
|
|
|
3148
3148
|
var f;
|
|
3149
3149
|
const i = (f = o.value) == null ? void 0 : f.firstChild;
|
|
3150
3150
|
if (!i.hasAttribute("viewBox")) {
|
|
3151
|
-
const
|
|
3151
|
+
const k = `0 0 ${i.getAttribute(
|
|
3152
3152
|
"width"
|
|
3153
3153
|
)} ${i.getAttribute("height")}`;
|
|
3154
|
-
i.setAttribute("viewBox",
|
|
3154
|
+
i.setAttribute("viewBox", k);
|
|
3155
3155
|
}
|
|
3156
3156
|
i.setAttribute("width", o.value.offsetWidth.toString()), i.setAttribute(
|
|
3157
3157
|
"height",
|
|
@@ -3163,25 +3163,25 @@ const no = {
|
|
|
3163
3163
|
ke(() => {
|
|
3164
3164
|
var f;
|
|
3165
3165
|
const i = (f = o.value) == null ? void 0 : f.firstChild;
|
|
3166
|
-
i && (n("updateSvgContainer", i), m(), i.querySelectorAll("[data-building-id]").forEach((
|
|
3167
|
-
|
|
3166
|
+
i && (n("updateSvgContainer", i), m(), i.querySelectorAll("[data-building-id]").forEach((w) => {
|
|
3167
|
+
w.style.strokeWidth = "0", w.style.stroke = "rgba(255,255,255,0)", w.style.fill = "rgba(255,255,255,0)", w.querySelectorAll("path").forEach((h) => {
|
|
3168
3168
|
h.style.stroke = "inherit", h.style.fill = "inherit";
|
|
3169
3169
|
});
|
|
3170
|
-
const c =
|
|
3170
|
+
const c = w.getAttribute("data-building-id");
|
|
3171
3171
|
l[c] = {
|
|
3172
|
-
element:
|
|
3172
|
+
element: w,
|
|
3173
3173
|
state: r.value === c ? "selected" : "idle"
|
|
3174
|
-
},
|
|
3174
|
+
}, w.addEventListener("mouseover", () => {
|
|
3175
3175
|
l[c].state === "idle" && (l[c].state = "hover"), n("onHoverOver", c);
|
|
3176
|
-
}),
|
|
3176
|
+
}), w.addEventListener("mouseout", () => {
|
|
3177
3177
|
l[c].state === "hover" && (l[c].state = "idle"), n("onHoverOut", c);
|
|
3178
|
-
}),
|
|
3178
|
+
}), w.addEventListener("click", () => {
|
|
3179
3179
|
n("onClick", c);
|
|
3180
3180
|
});
|
|
3181
3181
|
}));
|
|
3182
3182
|
});
|
|
3183
3183
|
}
|
|
3184
|
-
return (i, f) => (v(),
|
|
3184
|
+
return (i, f) => (v(), E($e, null, {
|
|
3185
3185
|
default: b(() => [
|
|
3186
3186
|
(v(), D("div", {
|
|
3187
3187
|
ref_key: "svgContainer",
|
|
@@ -3267,20 +3267,20 @@ const tl = {
|
|
|
3267
3267
|
},
|
|
3268
3268
|
emits: ["onClick", "onHoverOver", "onHoverOut", "onMouseMove", "onInitialize", "onError"],
|
|
3269
3269
|
setup(s, { emit: t }) {
|
|
3270
|
-
const e = s, n = t, a = d(), o = d(), r = d(), l = d(), m = d(!1), p = d(), i = B(() => p.value.isHoverEnabled), f = d({ x: 0, y: 0, width: 0, height: 0 }),
|
|
3270
|
+
const e = s, n = t, a = d(), o = d(), r = d(), l = d(), m = d(!1), p = d(), i = B(() => p.value.isHoverEnabled), f = d({ x: 0, y: 0, width: 0, height: 0 }), k = d(), w = d(), c = d(
|
|
3271
3271
|
e.buildingChooserData
|
|
3272
3272
|
), h = d(!1);
|
|
3273
3273
|
xe(() => m.value = !0), H(m, (L) => {
|
|
3274
3274
|
L && n("onInitialize");
|
|
3275
3275
|
}), H(
|
|
3276
|
-
() =>
|
|
3276
|
+
() => w.value,
|
|
3277
3277
|
() => {
|
|
3278
|
-
|
|
3278
|
+
w.value && new ResizeObserver(([J]) => {
|
|
3279
3279
|
h.value = J.contentRect.width < e.mobileBreakpoint;
|
|
3280
|
-
}).observe(
|
|
3280
|
+
}).observe(w.value);
|
|
3281
3281
|
}
|
|
3282
3282
|
);
|
|
3283
|
-
const
|
|
3283
|
+
const y = async () => {
|
|
3284
3284
|
try {
|
|
3285
3285
|
let L;
|
|
3286
3286
|
if (!e.cdnFileResolver)
|
|
@@ -3296,7 +3296,7 @@ const tl = {
|
|
|
3296
3296
|
H(
|
|
3297
3297
|
[c, () => e.cdnFileResolver, () => e.defaultCamera],
|
|
3298
3298
|
async () => {
|
|
3299
|
-
e.cdnFileResolver && (c.value || (c.value = await
|
|
3299
|
+
e.cdnFileResolver && (c.value || (c.value = await y()), e.defaultCamera ? a.value = c.value.cameras.find(
|
|
3300
3300
|
(L) => L.cameraName === e.defaultCamera
|
|
3301
3301
|
) || c.value.cameras[0] : a.value = c.value.cameras[0]);
|
|
3302
3302
|
},
|
|
@@ -3320,7 +3320,7 @@ const tl = {
|
|
|
3320
3320
|
},
|
|
3321
3321
|
{ immediate: !0 }
|
|
3322
3322
|
);
|
|
3323
|
-
function
|
|
3323
|
+
function _(L) {
|
|
3324
3324
|
const J = o.value;
|
|
3325
3325
|
a.value = L, ke(() => {
|
|
3326
3326
|
g(
|
|
@@ -3355,7 +3355,7 @@ const tl = {
|
|
|
3355
3355
|
const { layerX: J, layerY: R } = L;
|
|
3356
3356
|
let ee = L.target, x = !1;
|
|
3357
3357
|
for (; ee; )
|
|
3358
|
-
if (ee ===
|
|
3358
|
+
if (ee === k.value) {
|
|
3359
3359
|
x = !0;
|
|
3360
3360
|
break;
|
|
3361
3361
|
} else
|
|
@@ -3373,7 +3373,7 @@ const tl = {
|
|
|
3373
3373
|
n("onMouseMove", L, f.value);
|
|
3374
3374
|
}
|
|
3375
3375
|
return (L, J) => {
|
|
3376
|
-
const R =
|
|
3376
|
+
const R = V("v-skeleton-loader");
|
|
3377
3377
|
return v(), D(ve, null, [
|
|
3378
3378
|
C(R, {
|
|
3379
3379
|
type: "image",
|
|
@@ -3385,7 +3385,7 @@ const tl = {
|
|
|
3385
3385
|
default: b(() => [
|
|
3386
3386
|
u("div", {
|
|
3387
3387
|
ref_key: "container",
|
|
3388
|
-
ref:
|
|
3388
|
+
ref: w,
|
|
3389
3389
|
class: ye({ mobile: h.value }),
|
|
3390
3390
|
onMousemove: I
|
|
3391
3391
|
}, [
|
|
@@ -3394,11 +3394,11 @@ const tl = {
|
|
|
3394
3394
|
C(Po, {
|
|
3395
3395
|
"building-chooser-data": c.value,
|
|
3396
3396
|
"current-camera": a.value,
|
|
3397
|
-
onOnCameraChange:
|
|
3397
|
+
onOnCameraChange: _
|
|
3398
3398
|
}, null, 8, ["building-chooser-data", "current-camera"])
|
|
3399
3399
|
])) : U("", !0),
|
|
3400
3400
|
u("div", nl, [
|
|
3401
|
-
a.value.sunsimDayOfYear.length > 1 ? (v(),
|
|
3401
|
+
a.value.sunsimDayOfYear.length > 1 ? (v(), E(Wo, {
|
|
3402
3402
|
key: 0,
|
|
3403
3403
|
"camera-data": a.value,
|
|
3404
3404
|
"current-day": o.value,
|
|
@@ -3406,7 +3406,7 @@ const tl = {
|
|
|
3406
3406
|
}, null, 8, ["camera-data", "current-day"])) : U("", !0)
|
|
3407
3407
|
]),
|
|
3408
3408
|
u("div", ol, [
|
|
3409
|
-
o.value.timeSamples.length > 1 ? (v(),
|
|
3409
|
+
o.value.timeSamples.length > 1 ? (v(), E(qo, {
|
|
3410
3410
|
key: 0,
|
|
3411
3411
|
"day-data": o.value,
|
|
3412
3412
|
"current-time": r.value,
|
|
@@ -3415,14 +3415,14 @@ const tl = {
|
|
|
3415
3415
|
])
|
|
3416
3416
|
]),
|
|
3417
3417
|
u("div", ll, [
|
|
3418
|
-
a.value.cameraRotation ? (v(),
|
|
3418
|
+
a.value.cameraRotation ? (v(), E(st, {
|
|
3419
3419
|
key: 0,
|
|
3420
3420
|
longitude: a.value.cameraRotation.y + 270
|
|
3421
3421
|
}, null, 8, ["longitude"])) : U("", !0)
|
|
3422
3422
|
]),
|
|
3423
3423
|
C(lt, { position: "relative" }, {
|
|
3424
3424
|
default: b(() => [
|
|
3425
|
-
(v(!0), D(ve, null, be(c.value.cameras, (ee) => (v(),
|
|
3425
|
+
(v(!0), D(ve, null, be(c.value.cameras, (ee) => (v(), E(jo, {
|
|
3426
3426
|
key: ee.overlayFilename,
|
|
3427
3427
|
"camera-data": ee,
|
|
3428
3428
|
"cdn-file-resolver": e.cdnFileResolver,
|
|
@@ -3442,12 +3442,12 @@ const tl = {
|
|
|
3442
3442
|
onOnClick: J[0] || (J[0] = (ee) => n("onClick", ee)),
|
|
3443
3443
|
onOnHoverOver: O,
|
|
3444
3444
|
onOnHoverOut: P,
|
|
3445
|
-
onUpdateSvgContainer: J[1] || (J[1] = (ee) =>
|
|
3445
|
+
onUpdateSvgContainer: J[1] || (J[1] = (ee) => k.value = ee)
|
|
3446
3446
|
}, null, 8, ["cdn-file-resolver", "color-callback", "current-camera", "selected-id"])
|
|
3447
3447
|
]),
|
|
3448
3448
|
_: 1
|
|
3449
3449
|
}),
|
|
3450
|
-
L.$slots.popup && f.value && l.value ? (v(),
|
|
3450
|
+
L.$slots.popup && f.value && l.value ? (v(), E(ot, {
|
|
3451
3451
|
key: 0,
|
|
3452
3452
|
"is-hoverable": i.value,
|
|
3453
3453
|
pos: f.value
|
|
@@ -3533,28 +3533,28 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
3533
3533
|
currentCameraId: l,
|
|
3534
3534
|
showStaticImage: m,
|
|
3535
3535
|
mouseSensitivity: p
|
|
3536
|
-
} = Ee(n), i = t, f = d(),
|
|
3536
|
+
} = Ee(n), i = t, f = d(), k = d(l.value), w = d(0), c = d(0);
|
|
3537
3537
|
H(l, () => {
|
|
3538
|
-
|
|
3538
|
+
k.value = l.value;
|
|
3539
3539
|
}), H([o, r], async () => {
|
|
3540
3540
|
f.value && await f.value.loadInterior(
|
|
3541
|
-
(
|
|
3541
|
+
(_) => ue(
|
|
3542
3542
|
a.value,
|
|
3543
|
-
`/${o.value}/${r.value}${
|
|
3543
|
+
`/${o.value}/${r.value}${_}`
|
|
3544
3544
|
),
|
|
3545
|
-
|
|
3545
|
+
k.value,
|
|
3546
3546
|
!1
|
|
3547
3547
|
);
|
|
3548
3548
|
}), H(
|
|
3549
|
-
|
|
3549
|
+
k,
|
|
3550
3550
|
() => {
|
|
3551
|
-
f.value && f.value.goToCamera(
|
|
3551
|
+
f.value && f.value.goToCamera(k.value, !0), i("newCameraCallback", k.value);
|
|
3552
3552
|
},
|
|
3553
3553
|
{ immediate: !0 }
|
|
3554
3554
|
), H(
|
|
3555
3555
|
[a],
|
|
3556
3556
|
async () => {
|
|
3557
|
-
await
|
|
3557
|
+
await y(), ke(async () => {
|
|
3558
3558
|
await h();
|
|
3559
3559
|
});
|
|
3560
3560
|
},
|
|
@@ -3562,27 +3562,27 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
3562
3562
|
), H(f, () => {
|
|
3563
3563
|
if (f.value) {
|
|
3564
3564
|
i("playerApiCallback", f.value);
|
|
3565
|
-
const
|
|
3566
|
-
|
|
3565
|
+
const _ = f.value.getCurrentCamera();
|
|
3566
|
+
_ && (k.value = _.id, i("sunsimCallback", _.sunsimDayOfYear));
|
|
3567
3567
|
}
|
|
3568
3568
|
});
|
|
3569
3569
|
async function h() {
|
|
3570
|
-
|
|
3570
|
+
y();
|
|
3571
3571
|
const O = {
|
|
3572
3572
|
initialized: () => {
|
|
3573
3573
|
f.value = e.Main.getPlayerAPI();
|
|
3574
3574
|
const I = f.value.getCurrentCamera();
|
|
3575
|
-
I && (
|
|
3575
|
+
I && (k.value = I.id);
|
|
3576
3576
|
},
|
|
3577
3577
|
newCamera: (I) => {
|
|
3578
|
-
i("newFloorCallback", I.floorLevel), i("sunsimCallback", I.sunsimDayOfYear), f.value && f.value.resetMarkerBehaviour(0),
|
|
3578
|
+
i("newFloorCallback", I.floorLevel), i("sunsimCallback", I.sunsimDayOfYear), f.value && f.value.resetMarkerBehaviour(0), k.value = I.id;
|
|
3579
3579
|
},
|
|
3580
3580
|
newFOV: (I) => {
|
|
3581
3581
|
i("newFovCallback", I), c.value = I;
|
|
3582
3582
|
},
|
|
3583
3583
|
newRotation: (I) => {
|
|
3584
3584
|
const L = I + 0;
|
|
3585
|
-
i("newRotationCallback", L),
|
|
3585
|
+
i("newRotationCallback", L), w.value = L;
|
|
3586
3586
|
}
|
|
3587
3587
|
};
|
|
3588
3588
|
if (!fl)
|
|
@@ -3595,47 +3595,47 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
3595
3595
|
"qpc",
|
|
3596
3596
|
O,
|
|
3597
3597
|
void 0,
|
|
3598
|
-
|
|
3598
|
+
k.value
|
|
3599
3599
|
);
|
|
3600
3600
|
P && (P.handleWindowResize(), window.addEventListener(
|
|
3601
3601
|
"resize",
|
|
3602
3602
|
P.handleWindowResize.bind(P)
|
|
3603
3603
|
), P.animate(), f.value = e.Main.getPlayerAPI(), f.value && f.value.setLookSensitivity(p.value));
|
|
3604
3604
|
}
|
|
3605
|
-
async function
|
|
3605
|
+
async function y() {
|
|
3606
3606
|
f.value && (await f.value.destroy(), f.value = void 0);
|
|
3607
3607
|
}
|
|
3608
3608
|
return Qe(() => {
|
|
3609
|
-
|
|
3610
|
-
}), (
|
|
3609
|
+
y();
|
|
3610
|
+
}), (_, g) => (v(), D("div", hl, [
|
|
3611
3611
|
u("div", gl, [
|
|
3612
|
-
oe(
|
|
3612
|
+
oe(_.$slots, "slideshow-image", {}, void 0, !0),
|
|
3613
3613
|
u("div", yl, [
|
|
3614
|
-
oe(
|
|
3614
|
+
oe(_.$slots, "top-left", {}, void 0, !0)
|
|
3615
3615
|
]),
|
|
3616
3616
|
u("div", _l, [
|
|
3617
|
-
oe(
|
|
3617
|
+
oe(_.$slots, "top-center", {}, void 0, !0)
|
|
3618
3618
|
]),
|
|
3619
3619
|
u("div", bl, [
|
|
3620
|
-
oe(
|
|
3620
|
+
oe(_.$slots, "top-right", {}, void 0, !0)
|
|
3621
3621
|
]),
|
|
3622
3622
|
u("div", Cl, [
|
|
3623
|
-
oe(
|
|
3623
|
+
oe(_.$slots, "center-left", {}, void 0, !0)
|
|
3624
3624
|
]),
|
|
3625
3625
|
u("div", wl, [
|
|
3626
|
-
oe(
|
|
3626
|
+
oe(_.$slots, "center-center", {}, void 0, !0)
|
|
3627
3627
|
]),
|
|
3628
3628
|
u("div", kl, [
|
|
3629
|
-
oe(
|
|
3629
|
+
oe(_.$slots, "center-right", {}, void 0, !0)
|
|
3630
3630
|
]),
|
|
3631
3631
|
u("div", Sl, [
|
|
3632
|
-
oe(
|
|
3632
|
+
oe(_.$slots, "bottom-left", {}, void 0, !0)
|
|
3633
3633
|
]),
|
|
3634
3634
|
u("div", Il, [
|
|
3635
|
-
oe(
|
|
3635
|
+
oe(_.$slots, "bottom-center", {}, void 0, !0)
|
|
3636
3636
|
]),
|
|
3637
3637
|
u("div", xl, [
|
|
3638
|
-
oe(
|
|
3638
|
+
oe(_.$slots, "bottom-right", {}, void 0, !0)
|
|
3639
3639
|
]),
|
|
3640
3640
|
u("div", Dl, [
|
|
3641
3641
|
u("canvas", {
|
|
@@ -3667,13 +3667,13 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
3667
3667
|
i >= o.value.length ? n("level", o.value[0]) : n("level", o.value[i]);
|
|
3668
3668
|
}
|
|
3669
3669
|
return (i, f) => {
|
|
3670
|
-
const
|
|
3671
|
-
return v(),
|
|
3670
|
+
const k = V("v-btn"), w = V("v-tooltip");
|
|
3671
|
+
return v(), E(w, {
|
|
3672
3672
|
right: "",
|
|
3673
3673
|
attach: ""
|
|
3674
3674
|
}, {
|
|
3675
3675
|
activator: b(({ props: c }) => [
|
|
3676
|
-
C(
|
|
3676
|
+
C(k, Te({
|
|
3677
3677
|
style: { cursor: "pointer" },
|
|
3678
3678
|
density: "comfortable",
|
|
3679
3679
|
elevation: "1",
|
|
@@ -3718,7 +3718,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
3718
3718
|
setup(s, { emit: t }) {
|
|
3719
3719
|
const e = s, n = t, a = Ze(Re);
|
|
3720
3720
|
return (o, r) => {
|
|
3721
|
-
const l =
|
|
3721
|
+
const l = V("v-icon"), m = V("v-btn"), p = V("v-img"), i = V("v-menu");
|
|
3722
3722
|
return v(), D("div", null, [
|
|
3723
3723
|
C(i, {
|
|
3724
3724
|
transition: "slide-x-reverse-transition",
|
|
@@ -3743,11 +3743,11 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
3743
3743
|
]),
|
|
3744
3744
|
default: b(() => [
|
|
3745
3745
|
u("div", Bl, [
|
|
3746
|
-
(v(!0), D(ve, null, be(e.availableArchetypes, (f,
|
|
3747
|
-
key: `at-menuitem-${
|
|
3748
|
-
onClick: (
|
|
3746
|
+
(v(!0), D(ve, null, be(e.availableArchetypes, (f, k) => (v(), D("div", {
|
|
3747
|
+
key: `at-menuitem-${k}`,
|
|
3748
|
+
onClick: (w) => n("selectInterior", f.archetypeID),
|
|
3749
3749
|
class: ye(["interior-selector-list-item", {
|
|
3750
|
-
active:
|
|
3750
|
+
active: k === o.selectedIndex
|
|
3751
3751
|
}])
|
|
3752
3752
|
}, [
|
|
3753
3753
|
u("div", Ul, [
|
|
@@ -3783,7 +3783,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
3783
3783
|
transform: `rotate(${-t.rotation + 180}deg)`
|
|
3784
3784
|
}));
|
|
3785
3785
|
return (o, r) => {
|
|
3786
|
-
const l =
|
|
3786
|
+
const l = V("v-img");
|
|
3787
3787
|
return v(), D("div", {
|
|
3788
3788
|
style: de(n.value),
|
|
3789
3789
|
class: "compass-wrapper"
|
|
@@ -3808,7 +3808,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
3808
3808
|
return ("0" + a).slice(-2);
|
|
3809
3809
|
}
|
|
3810
3810
|
return (a, o) => {
|
|
3811
|
-
const r =
|
|
3811
|
+
const r = V("v-img");
|
|
3812
3812
|
return v(), D("div", Ql, [
|
|
3813
3813
|
u("div", Zl, [
|
|
3814
3814
|
C(r, {
|
|
@@ -3845,17 +3845,17 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
3845
3845
|
return e.showStaticImage || (r = "slideShow"), r;
|
|
3846
3846
|
});
|
|
3847
3847
|
return (r, l) => {
|
|
3848
|
-
const m =
|
|
3849
|
-
return v(),
|
|
3848
|
+
const m = V("v-icon"), p = V("v-btn"), i = V("v-tooltip");
|
|
3849
|
+
return v(), E(i, { location: "top" }, {
|
|
3850
3850
|
activator: b(({ props: f }) => [
|
|
3851
3851
|
C(p, Te({
|
|
3852
3852
|
density: "comfortable",
|
|
3853
3853
|
elevation: "1",
|
|
3854
3854
|
icon: "",
|
|
3855
|
-
onClick: l[0] || (l[0] = (
|
|
3855
|
+
onClick: l[0] || (l[0] = (k) => n("toggle"))
|
|
3856
3856
|
}, f), {
|
|
3857
3857
|
default: b(() => [
|
|
3858
|
-
o.value === "virtualTour" ? (v(), D("svg", Kl, ns)) : (v(),
|
|
3858
|
+
o.value === "virtualTour" ? (v(), D("svg", Kl, ns)) : (v(), E(m, { key: 1 }, {
|
|
3859
3859
|
default: b(() => [
|
|
3860
3860
|
te("mdi-image-multiple")
|
|
3861
3861
|
]),
|
|
@@ -4413,10 +4413,10 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4413
4413
|
e("closeTutorial", a.value);
|
|
4414
4414
|
}
|
|
4415
4415
|
return (m, p) => {
|
|
4416
|
-
const i =
|
|
4417
|
-
return v(),
|
|
4416
|
+
const i = V("v-icon"), f = V("v-card-title"), k = V("v-btn"), w = V("v-divider"), c = V("v-card-text"), h = V("v-card-actions"), y = V("v-card"), _ = V("v-expand-transition"), g = V("v-checkbox");
|
|
4417
|
+
return v(), E($e, { name: "fade-transition" }, {
|
|
4418
4418
|
default: b(() => [
|
|
4419
|
-
C(
|
|
4419
|
+
C(y, {
|
|
4420
4420
|
class: "mx-auto",
|
|
4421
4421
|
elevation: "16"
|
|
4422
4422
|
}, {
|
|
@@ -4436,7 +4436,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4436
4436
|
C(c, { class: "pb-0" }, {
|
|
4437
4437
|
default: b(() => [
|
|
4438
4438
|
u("p", null, Q(A(n).getLabel("disclaimerTextShort")), 1),
|
|
4439
|
-
C(
|
|
4439
|
+
C(k, {
|
|
4440
4440
|
variant: "tonal",
|
|
4441
4441
|
size: "small",
|
|
4442
4442
|
onClick: p[0] || (p[0] = (T) => o.value = !0),
|
|
@@ -4453,7 +4453,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4453
4453
|
]),
|
|
4454
4454
|
_: 1
|
|
4455
4455
|
}),
|
|
4456
|
-
C(
|
|
4456
|
+
C(w, { class: "my-3" }),
|
|
4457
4457
|
r.value ? U("", !0) : (v(), D("div", ss, [
|
|
4458
4458
|
u("div", rs, [
|
|
4459
4459
|
u("div", is, [
|
|
@@ -4488,13 +4488,13 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4488
4488
|
u("div", Fs, Q(A(n).getLabel("useTwoFingersToZoom")), 1)
|
|
4489
4489
|
])
|
|
4490
4490
|
])) : U("", !0),
|
|
4491
|
-
C(
|
|
4491
|
+
C(w, { class: "my-1" })
|
|
4492
4492
|
]),
|
|
4493
4493
|
_: 1
|
|
4494
4494
|
}),
|
|
4495
|
-
C(
|
|
4495
|
+
C(_, null, {
|
|
4496
4496
|
default: b(() => [
|
|
4497
|
-
o.value ? (v(),
|
|
4497
|
+
o.value ? (v(), E(y, {
|
|
4498
4498
|
key: 0,
|
|
4499
4499
|
class: "position-absolute w-100 bg-white",
|
|
4500
4500
|
height: "100%",
|
|
@@ -4518,7 +4518,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4518
4518
|
}),
|
|
4519
4519
|
C(h, null, {
|
|
4520
4520
|
default: b(() => [
|
|
4521
|
-
C(
|
|
4521
|
+
C(k, {
|
|
4522
4522
|
variant: "tonal",
|
|
4523
4523
|
size: "small",
|
|
4524
4524
|
onClick: p[1] || (p[1] = (T) => o.value = !1),
|
|
@@ -4559,7 +4559,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4559
4559
|
]),
|
|
4560
4560
|
C(h, null, {
|
|
4561
4561
|
default: b(() => [
|
|
4562
|
-
C(
|
|
4562
|
+
C(k, {
|
|
4563
4563
|
variant: "tonal",
|
|
4564
4564
|
onClick: p[3] || (p[3] = (T) => l()),
|
|
4565
4565
|
block: ""
|
|
@@ -4598,7 +4598,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4598
4598
|
emits: ["updateSettings", "saveSettings"],
|
|
4599
4599
|
setup(s, { emit: t }) {
|
|
4600
4600
|
const e = s, n = t, a = d(
|
|
4601
|
-
|
|
4601
|
+
w(e.initialSettings)
|
|
4602
4602
|
);
|
|
4603
4603
|
H(
|
|
4604
4604
|
a,
|
|
@@ -4609,8 +4609,8 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4609
4609
|
);
|
|
4610
4610
|
const o = B(() => {
|
|
4611
4611
|
let c = {};
|
|
4612
|
-
for (const [h,
|
|
4613
|
-
h === "whitePoint" ? c[h] = i(
|
|
4612
|
+
for (const [h, y] of Object.entries(a.value))
|
|
4613
|
+
h === "whitePoint" ? c[h] = i(y.value) : c[h] = y.value;
|
|
4614
4614
|
return c;
|
|
4615
4615
|
});
|
|
4616
4616
|
function r() {
|
|
@@ -4628,20 +4628,20 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4628
4628
|
n("saveSettings", o.value);
|
|
4629
4629
|
}
|
|
4630
4630
|
function p() {
|
|
4631
|
-
a.value =
|
|
4631
|
+
a.value = w(), n("updateSettings", o.value);
|
|
4632
4632
|
}
|
|
4633
4633
|
function i(c) {
|
|
4634
|
-
const h = parseInt(c.substr(1, 2), 16) / 255,
|
|
4635
|
-
return [h,
|
|
4634
|
+
const h = parseInt(c.substr(1, 2), 16) / 255, y = parseInt(c.substr(3, 2), 16) / 255, _ = parseInt(c.substr(5, 2), 16) / 255;
|
|
4635
|
+
return [h, y, _];
|
|
4636
4636
|
}
|
|
4637
4637
|
function f(c) {
|
|
4638
4638
|
var h = c.toString(16);
|
|
4639
4639
|
return h.length == 1 ? "0" + h : h;
|
|
4640
4640
|
}
|
|
4641
|
-
function
|
|
4642
|
-
return "#" + f(parseInt((c * 255).toString())) + f(parseInt((h * 255).toString())) + f(parseInt((
|
|
4641
|
+
function k([c, h, y]) {
|
|
4642
|
+
return "#" + f(parseInt((c * 255).toString())) + f(parseInt((h * 255).toString())) + f(parseInt((y * 255).toString()));
|
|
4643
4643
|
}
|
|
4644
|
-
function
|
|
4644
|
+
function w(c = {}) {
|
|
4645
4645
|
const h = [
|
|
4646
4646
|
"Cool 5",
|
|
4647
4647
|
"Cool 10",
|
|
@@ -4655,7 +4655,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4655
4655
|
"Warm 5",
|
|
4656
4656
|
"bw"
|
|
4657
4657
|
];
|
|
4658
|
-
let
|
|
4658
|
+
let y = {
|
|
4659
4659
|
temperature: 6500,
|
|
4660
4660
|
targetLuminance: 1,
|
|
4661
4661
|
exposureFovScale: 0.6,
|
|
@@ -4674,7 +4674,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4674
4674
|
min: 0,
|
|
4675
4675
|
max: 1,
|
|
4676
4676
|
step: 0.01,
|
|
4677
|
-
value:
|
|
4677
|
+
value: y.exposureFovScale
|
|
4678
4678
|
},
|
|
4679
4679
|
targetLuminance: {
|
|
4680
4680
|
label: "Target Luminance",
|
|
@@ -4682,7 +4682,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4682
4682
|
min: 0,
|
|
4683
4683
|
max: 15,
|
|
4684
4684
|
step: 0.1,
|
|
4685
|
-
value:
|
|
4685
|
+
value: y.targetLuminance
|
|
4686
4686
|
},
|
|
4687
4687
|
sharpenFilter_amount: {
|
|
4688
4688
|
label: "Sharpen Filter Amount",
|
|
@@ -4690,12 +4690,12 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4690
4690
|
min: 0,
|
|
4691
4691
|
max: 100,
|
|
4692
4692
|
step: 0.1,
|
|
4693
|
-
value:
|
|
4693
|
+
value: y.sharpenFilter_amount
|
|
4694
4694
|
},
|
|
4695
4695
|
UNREAL_BLOOM_ENABLED: {
|
|
4696
4696
|
label: "Enable Bloom?",
|
|
4697
4697
|
type: "boolean",
|
|
4698
|
-
value:
|
|
4698
|
+
value: y.UNREAL_BLOOM_ENABLED
|
|
4699
4699
|
},
|
|
4700
4700
|
UNREAL_BLOOM_STRENGTH: {
|
|
4701
4701
|
label: "Bloom Strength",
|
|
@@ -4703,7 +4703,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4703
4703
|
min: 0,
|
|
4704
4704
|
max: 1,
|
|
4705
4705
|
step: 0.01,
|
|
4706
|
-
value:
|
|
4706
|
+
value: y.UNREAL_BLOOM_STRENGTH
|
|
4707
4707
|
},
|
|
4708
4708
|
TRANSITION_MOVEMENT_SCALE: {
|
|
4709
4709
|
label: "Transition Movement Speed",
|
|
@@ -4711,7 +4711,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4711
4711
|
min: 0.2,
|
|
4712
4712
|
max: 25,
|
|
4713
4713
|
step: 0.1,
|
|
4714
|
-
value:
|
|
4714
|
+
value: y.TRANSITION_MOVEMENT_SCALE
|
|
4715
4715
|
},
|
|
4716
4716
|
temperature: {
|
|
4717
4717
|
label: "Temperature / White Balance",
|
|
@@ -4719,26 +4719,26 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4719
4719
|
min: 1e3,
|
|
4720
4720
|
max: 12e3,
|
|
4721
4721
|
step: 1,
|
|
4722
|
-
value:
|
|
4722
|
+
value: y.temperature
|
|
4723
4723
|
},
|
|
4724
4724
|
whitePoint: {
|
|
4725
4725
|
label: "White Point",
|
|
4726
4726
|
type: "color",
|
|
4727
|
-
value:
|
|
4727
|
+
value: k(y.whitePoint)
|
|
4728
4728
|
},
|
|
4729
4729
|
lut: {
|
|
4730
4730
|
label: "Lut",
|
|
4731
4731
|
type: "lut",
|
|
4732
|
-
items: h.map((
|
|
4733
|
-
text:
|
|
4734
|
-
value: `https://cdn.visuado.com/luts/${
|
|
4732
|
+
items: h.map((_) => ({
|
|
4733
|
+
text: _,
|
|
4734
|
+
value: `https://cdn.visuado.com/luts/${_}.png`
|
|
4735
4735
|
})),
|
|
4736
|
-
value:
|
|
4736
|
+
value: y.lut
|
|
4737
4737
|
}
|
|
4738
4738
|
};
|
|
4739
4739
|
}
|
|
4740
4740
|
return (c, h) => {
|
|
4741
|
-
const
|
|
4741
|
+
const y = V("v-text-field"), _ = V("v-slider"), g = V("v-checkbox"), T = V("v-btn"), O = V("v-select"), P = V("v-icon");
|
|
4742
4742
|
return v(), D("div", Bs, [
|
|
4743
4743
|
u("form", Rs, [
|
|
4744
4744
|
u("div", Us, [
|
|
@@ -4746,7 +4746,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4746
4746
|
key: J,
|
|
4747
4747
|
"d-block": ""
|
|
4748
4748
|
}, [
|
|
4749
|
-
I.type === "slider" ? (v(),
|
|
4749
|
+
I.type === "slider" ? (v(), E(_, {
|
|
4750
4750
|
key: 0,
|
|
4751
4751
|
modelValue: a.value[L].value,
|
|
4752
4752
|
"onUpdate:modelValue": (R) => a.value[L].value = R,
|
|
@@ -4760,7 +4760,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4760
4760
|
]),
|
|
4761
4761
|
append: b(() => [
|
|
4762
4762
|
u("div", null, [
|
|
4763
|
-
C(
|
|
4763
|
+
C(y, {
|
|
4764
4764
|
modelValue: a.value[L].value,
|
|
4765
4765
|
"onUpdate:modelValue": (R) => a.value[L].value = R,
|
|
4766
4766
|
"hide-details": "",
|
|
@@ -4777,7 +4777,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4777
4777
|
]),
|
|
4778
4778
|
_: 2
|
|
4779
4779
|
}, 1032, ["modelValue", "onUpdate:modelValue", "max", "min", "step"])) : U("", !0),
|
|
4780
|
-
I.type === "boolean" ? (v(),
|
|
4780
|
+
I.type === "boolean" ? (v(), E(g, {
|
|
4781
4781
|
key: 1,
|
|
4782
4782
|
modelValue: a.value[L].value,
|
|
4783
4783
|
"onUpdate:modelValue": (R) => a.value[L].value = R,
|
|
@@ -4809,7 +4809,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4809
4809
|
])
|
|
4810
4810
|
]),
|
|
4811
4811
|
u("div", null, [
|
|
4812
|
-
C(
|
|
4812
|
+
C(y, {
|
|
4813
4813
|
modelValue: a.value[L].value,
|
|
4814
4814
|
"onUpdate:modelValue": (R) => a.value[L].value = R,
|
|
4815
4815
|
"hide-details": "",
|
|
@@ -4857,7 +4857,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4857
4857
|
qs,
|
|
4858
4858
|
u("div", Js, [
|
|
4859
4859
|
u("div", null, [
|
|
4860
|
-
C(
|
|
4860
|
+
C(y, {
|
|
4861
4861
|
modelValue: a.value[L].value,
|
|
4862
4862
|
"onUpdate:modelValue": (R) => a.value[L].value = R,
|
|
4863
4863
|
"hide-details": "",
|
|
@@ -4940,22 +4940,22 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4940
4940
|
}, o = (r) => {
|
|
4941
4941
|
const l = document.getElementsByClassName("anchor");
|
|
4942
4942
|
for (let h = 0; h < l.length; h++) {
|
|
4943
|
-
const
|
|
4944
|
-
|
|
4943
|
+
const y = l[h];
|
|
4944
|
+
y.addEventListener("touchstart", k, { passive: !1 }), y.addEventListener("touchend", c, { passive: !1 }), y.addEventListener("mousedown", k, { passive: !1 }), y.addEventListener("mouseup", c, { passive: !1 });
|
|
4945
4945
|
}
|
|
4946
4946
|
let m = 0, p = 0, i = 0, f = 0;
|
|
4947
|
-
function
|
|
4947
|
+
function k(h) {
|
|
4948
4948
|
h = h || window.event, h.preventDefault();
|
|
4949
|
-
let
|
|
4950
|
-
h.type === "touchstart" && (
|
|
4949
|
+
let y = h;
|
|
4950
|
+
h.type === "touchstart" && (y = h.touches[0]), i = y.clientX, f = y.clientY, document.addEventListener("mouseup", c, { passive: !1 }), document.addEventListener("touchend", c, { passive: !1 }), document.addEventListener("mousemove", w, { passive: !1 }), document.addEventListener("touchmove", w, { passive: !1 });
|
|
4951
4951
|
}
|
|
4952
|
-
function
|
|
4952
|
+
function w(h) {
|
|
4953
4953
|
h = h || window.event, h.preventDefault();
|
|
4954
|
-
let
|
|
4955
|
-
h.type === "touchmove" && (
|
|
4954
|
+
let y = h;
|
|
4955
|
+
h.type === "touchmove" && (y = h.touches[0]), m = i - y.clientX, p = f - y.clientY, i = y.clientX, f = y.clientY, r.style.top = r.offsetTop - p + "px", r.style.left = r.offsetLeft - m + "px";
|
|
4956
4956
|
}
|
|
4957
4957
|
function c() {
|
|
4958
|
-
document.removeEventListener("mouseup", c, !1), document.removeEventListener("mousemove",
|
|
4958
|
+
document.removeEventListener("mouseup", c, !1), document.removeEventListener("mousemove", w, !1), document.removeEventListener("touchend", c, !1), document.removeEventListener("touchmove", w, !1);
|
|
4959
4959
|
}
|
|
4960
4960
|
};
|
|
4961
4961
|
return (r, l) => (v(), D("div", {
|
|
@@ -5013,19 +5013,19 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
5013
5013
|
fit: { type: Boolean }
|
|
5014
5014
|
},
|
|
5015
5015
|
setup(s) {
|
|
5016
|
-
const t = s, e = d(512), n = d(384), a = d(512), o = d(384), r = d(new it()), l = d(new Pa()), m = d({}), p = d(1), i = d(), f = e.value / e.value,
|
|
5016
|
+
const t = s, e = d(512), n = d(384), a = d(512), o = d(384), r = d(new it()), l = d(new Pa()), m = d({}), p = d(1), i = d(), f = e.value / e.value, k = B(() => {
|
|
5017
5017
|
const x = t.containerWidth / t.containerHeight;
|
|
5018
5018
|
let S;
|
|
5019
5019
|
return x > f ? S = t.containerHeight / n.value : S = t.containerWidth / e.value, S;
|
|
5020
|
-
}),
|
|
5020
|
+
}), w = B(() => t.allCameras), c = B(() => t.allCameras.find((x) => x.id === t.currentCamera)), h = B(() => t.rotation), y = B(() => new it(
|
|
5021
5021
|
t.storey.position.x,
|
|
5022
5022
|
t.storey.position.y,
|
|
5023
5023
|
t.storey.position.z
|
|
5024
|
-
)),
|
|
5024
|
+
)), _ = B(() => parseFloat(c.value.floor_vertical_position)), g = B(() => w.value.map((x) => {
|
|
5025
5025
|
const S = x.uposition.split(","), Y = new it(
|
|
5026
|
-
Number(S[0]) -
|
|
5026
|
+
Number(S[0]) - y.value.x,
|
|
5027
5027
|
0,
|
|
5028
|
-
Number(S[2]) -
|
|
5028
|
+
Number(S[2]) - y.value.z
|
|
5029
5029
|
);
|
|
5030
5030
|
return {
|
|
5031
5031
|
...x,
|
|
@@ -5035,7 +5035,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
5035
5035
|
backgroundImage: `url(${t.backgroundImage})`,
|
|
5036
5036
|
backgroundSize: "contain"
|
|
5037
5037
|
})), O = B(() => ({
|
|
5038
|
-
transform: `scale(${t.fit ? 1 :
|
|
5038
|
+
transform: `scale(${t.fit ? 1 : k.value * 0.75}) rotate(${t.transformAngle}deg)`
|
|
5039
5039
|
}));
|
|
5040
5040
|
xe(() => {
|
|
5041
5041
|
R(), I(), ee();
|
|
@@ -5070,7 +5070,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
5070
5070
|
};
|
|
5071
5071
|
}
|
|
5072
5072
|
function R() {
|
|
5073
|
-
const x = t.storey.position.y -
|
|
5073
|
+
const x = t.storey.position.y - _.value;
|
|
5074
5074
|
o.value = 2 * (x * Math.tan(P(t.storey.fovY / 2))), a.value = 512 / 384 * o.value;
|
|
5075
5075
|
const S = o.value / 2, Y = a.value / 2, G = new it(Y * -1, 0, S * -1);
|
|
5076
5076
|
r.value = G;
|
|
@@ -5114,7 +5114,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
5114
5114
|
zIndex: "3"
|
|
5115
5115
|
})
|
|
5116
5116
|
}, () => [
|
|
5117
|
-
c.value.id === Y.id && t.rotation !== null ? (v(),
|
|
5117
|
+
c.value.id === Y.id && t.rotation !== null ? (v(), E(mr, {
|
|
5118
5118
|
key: 0,
|
|
5119
5119
|
class: "rotation-marker-component-base rotation-marker-component",
|
|
5120
5120
|
rotation: h.value,
|
|
@@ -5161,8 +5161,8 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
5161
5161
|
setup(s, { emit: t }) {
|
|
5162
5162
|
const e = s, n = t, a = d((/* @__PURE__ */ new Date()).getHours()), o = d(!0), r = d(!0), l = d(""), m = d(/* @__PURE__ */ new Map()), p = B(() => e.minimapJson.storeys[e.level]), i = B(() => `${Math.floor(a.value).toString().padStart(2, "0")}:00`), f = B(() => {
|
|
5163
5163
|
if (p.value.sunsimFilesTimeStamps[a.value]) {
|
|
5164
|
-
const
|
|
5165
|
-
return `${
|
|
5164
|
+
const _ = p.value.sunsimFilesTimeStamps[a.value].split(" ");
|
|
5165
|
+
return `${_[0]} ${_[1]}`;
|
|
5166
5166
|
}
|
|
5167
5167
|
return "";
|
|
5168
5168
|
});
|
|
@@ -5170,25 +5170,25 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
5170
5170
|
l.value = await c(
|
|
5171
5171
|
p.value.sunsimFiles[a.value]
|
|
5172
5172
|
), n("setBackgroundImage", l.value), r.value = !1;
|
|
5173
|
-
const
|
|
5174
|
-
m.value =
|
|
5173
|
+
const _ = await w(e.minimapJson.storeys);
|
|
5174
|
+
m.value = _, o.value = !1, n("setBackgroundImage", k(e.level, a.value));
|
|
5175
5175
|
}), H(a, () => {
|
|
5176
|
-
const
|
|
5177
|
-
n("setBackgroundImage",
|
|
5176
|
+
const _ = k(e.level, a.value);
|
|
5177
|
+
n("setBackgroundImage", _);
|
|
5178
5178
|
}), H(
|
|
5179
5179
|
() => e.level,
|
|
5180
5180
|
() => {
|
|
5181
|
-
n("setBackgroundImage",
|
|
5181
|
+
n("setBackgroundImage", k(e.level, a.value));
|
|
5182
5182
|
},
|
|
5183
5183
|
{ immediate: !0 }
|
|
5184
5184
|
);
|
|
5185
|
-
function
|
|
5186
|
-
return m.value.get(`sunsim${
|
|
5185
|
+
function k(_, g) {
|
|
5186
|
+
return m.value.get(`sunsim${_}_${g}`) ? m.value.get(`sunsim${_}_${g}`) : "";
|
|
5187
5187
|
}
|
|
5188
|
-
async function
|
|
5188
|
+
async function w(_) {
|
|
5189
5189
|
let g = /* @__PURE__ */ new Map();
|
|
5190
|
-
for (let T = 0; T <
|
|
5191
|
-
const O =
|
|
5190
|
+
for (let T = 0; T < _.length; T++) {
|
|
5191
|
+
const O = _[T].sunsimFiles;
|
|
5192
5192
|
for (let P = 0; P < O.length; P++) {
|
|
5193
5193
|
const I = O[P];
|
|
5194
5194
|
try {
|
|
@@ -5201,40 +5201,40 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
5201
5201
|
}
|
|
5202
5202
|
return g;
|
|
5203
5203
|
}
|
|
5204
|
-
async function c(
|
|
5204
|
+
async function c(_) {
|
|
5205
5205
|
const T = await (await fetch(
|
|
5206
5206
|
ue(
|
|
5207
5207
|
e.cdnFileResolver,
|
|
5208
|
-
`/${e.apartmentJson.type}/${e.apartmentJson.id}/minimap/${
|
|
5208
|
+
`/${e.apartmentJson.type}/${e.apartmentJson.id}/minimap/${_}`
|
|
5209
5209
|
)
|
|
5210
|
-
)).blob(), O = await
|
|
5210
|
+
)).blob(), O = await y(T);
|
|
5211
5211
|
return h(O);
|
|
5212
5212
|
}
|
|
5213
|
-
function h(
|
|
5214
|
-
return "data:image/jpeg;base64," +
|
|
5213
|
+
function h(_) {
|
|
5214
|
+
return "data:image/jpeg;base64," + _;
|
|
5215
5215
|
}
|
|
5216
|
-
async function _
|
|
5216
|
+
async function y(_) {
|
|
5217
5217
|
return new Promise((g, T) => {
|
|
5218
5218
|
const O = new FileReader();
|
|
5219
5219
|
O.onload = () => {
|
|
5220
5220
|
const P = O.result.split(",")[1];
|
|
5221
5221
|
g(P);
|
|
5222
|
-
}, O.onerror = T, O.readAsDataURL(
|
|
5222
|
+
}, O.onerror = T, O.readAsDataURL(_);
|
|
5223
5223
|
});
|
|
5224
5224
|
}
|
|
5225
|
-
return (
|
|
5226
|
-
const T =
|
|
5225
|
+
return (_, g) => {
|
|
5226
|
+
const T = V("v-progress-linear"), O = V("v-icon"), P = V("v-slider");
|
|
5227
5227
|
return v(), D("div", yr, [
|
|
5228
5228
|
u("div", _r, [
|
|
5229
5229
|
u("div", br, [
|
|
5230
|
-
o.value ? (v(),
|
|
5230
|
+
o.value ? (v(), E(T, {
|
|
5231
5231
|
key: 0,
|
|
5232
5232
|
indeterminate: "",
|
|
5233
5233
|
rounded: "",
|
|
5234
5234
|
height: "6",
|
|
5235
5235
|
color: "grey lighten-1",
|
|
5236
5236
|
class: "mr-2"
|
|
5237
|
-
})) : (v(),
|
|
5237
|
+
})) : (v(), E(P, {
|
|
5238
5238
|
key: 1,
|
|
5239
5239
|
modelValue: a.value,
|
|
5240
5240
|
"onUpdate:modelValue": g[0] || (g[0] = (I) => a.value = I),
|
|
@@ -5269,7 +5269,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
5269
5269
|
]);
|
|
5270
5270
|
};
|
|
5271
5271
|
}
|
|
5272
|
-
}), la = /* @__PURE__ */ K(kr, [["__scopeId", "data-v-52f122f2"]]), Sr = (s) => (Ct("data-v-
|
|
5272
|
+
}), la = /* @__PURE__ */ K(kr, [["__scopeId", "data-v-52f122f2"]]), Sr = (s) => (Ct("data-v-578a7915"), s = s(), wt(), s), Ir = { class: "left" }, xr = { class: "right" }, Dr = /* @__PURE__ */ Sr(() => /* @__PURE__ */ u("div", { class: "d-flex justify-space-between pa-1" }, [
|
|
5273
5273
|
/* @__PURE__ */ u("div", { class: "center" }, " ")
|
|
5274
5274
|
], -1)), Ar = /* @__PURE__ */ W({
|
|
5275
5275
|
__name: "VMiniMap",
|
|
@@ -5283,63 +5283,68 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
5283
5283
|
},
|
|
5284
5284
|
emits: ["close"],
|
|
5285
5285
|
setup(s, { emit: t }) {
|
|
5286
|
-
const e = d(null), n = s, a = t, o = d(), r = d(0), l = B(() => n.minimapJson.storeys[n.level]);
|
|
5286
|
+
const e = d(null), n = s, a = t, o = d(), r = d(0), l = B(() => n.minimapJson.storeys[n.level]), m = d(0);
|
|
5287
5287
|
H(
|
|
5288
|
+
() => n.apartmentJson,
|
|
5289
|
+
() => {
|
|
5290
|
+
m.value = m.value + 1;
|
|
5291
|
+
}
|
|
5292
|
+
), H(
|
|
5288
5293
|
l,
|
|
5289
5294
|
() => {
|
|
5290
5295
|
o.value = l.value.defaultSunsimFile ? `/${n.apartmentJson.type}/${n.apartmentJson.id}/minimap/sunsim0_13.jpg` : `/${n.apartmentJson.type}/${n.apartmentJson.id}/minimap/${l.value.defaultSunsimFile}`;
|
|
5291
5296
|
},
|
|
5292
5297
|
{ immediate: !0, once: !0 }
|
|
5293
5298
|
);
|
|
5294
|
-
const
|
|
5295
|
-
let
|
|
5296
|
-
return r.value !== 0 && (Math.abs(r.value) % 180 === 0 ?
|
|
5299
|
+
const p = B(() => {
|
|
5300
|
+
let y = 1;
|
|
5301
|
+
return r.value !== 0 && (Math.abs(r.value) % 180 === 0 ? y = 1 : y = -1), w.value === "small" && (y = 0.6), y;
|
|
5297
5302
|
});
|
|
5298
|
-
function
|
|
5299
|
-
o.value =
|
|
5303
|
+
function i(y) {
|
|
5304
|
+
o.value = y;
|
|
5300
5305
|
}
|
|
5301
|
-
const
|
|
5302
|
-
function
|
|
5303
|
-
const _ = (
|
|
5304
|
-
w.value =
|
|
5306
|
+
const f = ["big", "bigger", "small"];
|
|
5307
|
+
function k() {
|
|
5308
|
+
const _ = (f.indexOf(w.value) + 1) % f.length;
|
|
5309
|
+
w.value = f[_];
|
|
5305
5310
|
}
|
|
5306
5311
|
const w = d("big");
|
|
5307
|
-
function
|
|
5312
|
+
function c() {
|
|
5308
5313
|
r.value = r.value + 90;
|
|
5309
5314
|
}
|
|
5310
|
-
const
|
|
5315
|
+
const h = () => {
|
|
5311
5316
|
a("close");
|
|
5312
5317
|
};
|
|
5313
|
-
return (
|
|
5314
|
-
const
|
|
5315
|
-
return v(),
|
|
5318
|
+
return (y, _) => {
|
|
5319
|
+
const g = V("v-btn");
|
|
5320
|
+
return v(), E(rr, {
|
|
5316
5321
|
ref_key: "minimapMoveable",
|
|
5317
5322
|
ref: e,
|
|
5318
5323
|
size: w.value
|
|
5319
5324
|
}, {
|
|
5320
5325
|
"top-left": b(() => [
|
|
5321
5326
|
u("div", Ir, [
|
|
5322
|
-
C(
|
|
5327
|
+
C(g, {
|
|
5323
5328
|
icon: "mdi-window-close",
|
|
5324
5329
|
size: "x-small",
|
|
5325
|
-
onClick:
|
|
5330
|
+
onClick: h
|
|
5326
5331
|
})
|
|
5327
5332
|
])
|
|
5328
5333
|
]),
|
|
5329
5334
|
"top-right": b(() => [
|
|
5330
5335
|
u("div", xr, [
|
|
5331
|
-
C(
|
|
5336
|
+
C(g, {
|
|
5332
5337
|
class: "rotate-icon",
|
|
5333
5338
|
size: "x-small",
|
|
5334
5339
|
icon: "mdi mdi-rotate-right",
|
|
5335
|
-
onClick: za(
|
|
5340
|
+
onClick: za(c, ["stop"]),
|
|
5336
5341
|
title: "Rotate"
|
|
5337
5342
|
}),
|
|
5338
|
-
C(
|
|
5343
|
+
C(g, {
|
|
5339
5344
|
class: "resize-icon ml-1",
|
|
5340
5345
|
icon: "mdi-image-size-select-small",
|
|
5341
5346
|
size: "x-small",
|
|
5342
|
-
onClick:
|
|
5347
|
+
onClick: k,
|
|
5343
5348
|
title: "Resize"
|
|
5344
5349
|
})
|
|
5345
5350
|
])
|
|
@@ -5349,17 +5354,17 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
5349
5354
|
]),
|
|
5350
5355
|
body: b(() => [
|
|
5351
5356
|
C(oa, {
|
|
5352
|
-
scale:
|
|
5357
|
+
scale: p.value,
|
|
5353
5358
|
rotation: l.value.rotation.y,
|
|
5354
5359
|
"transform-angle": r.value
|
|
5355
5360
|
}, null, 8, ["scale", "rotation", "transform-angle"]),
|
|
5356
5361
|
u("div", null, [
|
|
5357
5362
|
C(na, {
|
|
5358
5363
|
"transform-angle": r.value,
|
|
5359
|
-
"all-cameras":
|
|
5364
|
+
"all-cameras": y.apartmentJson.cameras,
|
|
5360
5365
|
"background-image": o.value,
|
|
5361
|
-
rotation:
|
|
5362
|
-
"current-camera":
|
|
5366
|
+
rotation: y.rotation,
|
|
5367
|
+
"current-camera": y.currentCamera,
|
|
5363
5368
|
storey: l.value,
|
|
5364
5369
|
containerWidth: e.value && e.value.bodyWidth || 512,
|
|
5365
5370
|
containerHeight: e.value && e.value.bodyHeight || 384
|
|
@@ -5367,19 +5372,20 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
5367
5372
|
])
|
|
5368
5373
|
]),
|
|
5369
5374
|
footer: b(() => [
|
|
5370
|
-
|
|
5375
|
+
(v(), E(la, {
|
|
5376
|
+
key: m.value,
|
|
5371
5377
|
"cdn-file-resolver": n.cdnFileResolver,
|
|
5372
5378
|
"minimap-json": n.minimapJson,
|
|
5373
5379
|
"apartment-json": n.apartmentJson,
|
|
5374
5380
|
level: n.level,
|
|
5375
|
-
onSetBackgroundImage:
|
|
5376
|
-
}, null, 8, ["cdn-file-resolver", "minimap-json", "apartment-json", "level"])
|
|
5381
|
+
onSetBackgroundImage: i
|
|
5382
|
+
}, null, 8, ["cdn-file-resolver", "minimap-json", "apartment-json", "level"]))
|
|
5377
5383
|
]),
|
|
5378
5384
|
_: 1
|
|
5379
5385
|
}, 8, ["size"]);
|
|
5380
5386
|
};
|
|
5381
5387
|
}
|
|
5382
|
-
}), Nt = /* @__PURE__ */ K(Ar, [["__scopeId", "data-v-
|
|
5388
|
+
}), Nt = /* @__PURE__ */ K(Ar, [["__scopeId", "data-v-578a7915"]]);
|
|
5383
5389
|
function yt(s) {
|
|
5384
5390
|
const t = s * 60, e = Math.floor(t / 60), n = t % 60;
|
|
5385
5391
|
return `${e.toString().padStart(2, "0")}:${n.toString().padStart(2, "0")}`;
|
|
@@ -5408,10 +5414,10 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5408
5414
|
},
|
|
5409
5415
|
{ immediate: !0 }
|
|
5410
5416
|
), (m, p) => {
|
|
5411
|
-
const i =
|
|
5417
|
+
const i = V("v-icon"), f = V("v-slider"), k = V("v-field"), w = V("v-btn");
|
|
5412
5418
|
return v(), D("div", Fr, [
|
|
5413
5419
|
u("div", Lr, [
|
|
5414
|
-
C(
|
|
5420
|
+
C(k, {
|
|
5415
5421
|
class: "ss-slider-field",
|
|
5416
5422
|
style: {},
|
|
5417
5423
|
variant: "solo-filled",
|
|
@@ -5419,7 +5425,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5419
5425
|
flat: ""
|
|
5420
5426
|
}, {
|
|
5421
5427
|
default: b(() => [
|
|
5422
|
-
A(n).timeSamples.length > 1 ? (v(),
|
|
5428
|
+
A(n).timeSamples.length > 1 ? (v(), E(f, {
|
|
5423
5429
|
key: 0,
|
|
5424
5430
|
class: "pa-2 pr-2",
|
|
5425
5431
|
modelValue: l.value,
|
|
@@ -5465,7 +5471,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5465
5471
|
})
|
|
5466
5472
|
]),
|
|
5467
5473
|
u("div", null, [
|
|
5468
|
-
C(
|
|
5474
|
+
C(w, {
|
|
5469
5475
|
size: "small",
|
|
5470
5476
|
class: "sun-study-toggle text-capitalize rounded-xl",
|
|
5471
5477
|
icon: "mdi-close",
|
|
@@ -5485,8 +5491,8 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5485
5491
|
setup(s, { emit: t }) {
|
|
5486
5492
|
const e = t, n = Ze(Re);
|
|
5487
5493
|
return (a, o) => {
|
|
5488
|
-
const r =
|
|
5489
|
-
return !a.displaySunsim && a.showUI ? (v(),
|
|
5494
|
+
const r = V("v-btn");
|
|
5495
|
+
return !a.displaySunsim && a.showUI ? (v(), E(r, {
|
|
5490
5496
|
key: 0,
|
|
5491
5497
|
size: "small",
|
|
5492
5498
|
varient: "tonal",
|
|
@@ -5512,8 +5518,8 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5512
5518
|
window.navigator.userAgent
|
|
5513
5519
|
));
|
|
5514
5520
|
return (a, o) => {
|
|
5515
|
-
const r =
|
|
5516
|
-
return v(),
|
|
5521
|
+
const r = V("v-icon"), l = V("v-btn");
|
|
5522
|
+
return v(), E(l, {
|
|
5517
5523
|
size: "x-small",
|
|
5518
5524
|
class: ye(["autoplay-btn", { mobile: n.value, "mt-1": n.value, "mx-1": n.value }]),
|
|
5519
5525
|
onClick: o[0] || (o[0] = (m) => e("toggleAutoPlay"))
|
|
@@ -5572,7 +5578,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5572
5578
|
i(), n("goto", p);
|
|
5573
5579
|
}
|
|
5574
5580
|
return (p, i) => {
|
|
5575
|
-
const f =
|
|
5581
|
+
const f = V("v-btn"), k = V("v-img"), w = V("v-icon"), c = V("v-card"), h = V("v-slide-group-item"), y = V("v-slide-group");
|
|
5576
5582
|
return v(), D("div", {
|
|
5577
5583
|
class: ye(["d-flex align-center justify-center", {
|
|
5578
5584
|
mobileWaypointWrapper: r.value,
|
|
@@ -5581,9 +5587,9 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5581
5587
|
}])
|
|
5582
5588
|
}, [
|
|
5583
5589
|
oe(p.$slots, "before", {}, void 0, !0),
|
|
5584
|
-
C(
|
|
5590
|
+
C(y, {
|
|
5585
5591
|
modelValue: o.value,
|
|
5586
|
-
"onUpdate:modelValue": i[2] || (i[2] = (
|
|
5592
|
+
"onUpdate:modelValue": i[2] || (i[2] = (_) => o.value = _),
|
|
5587
5593
|
class: ye({ mobileWaypoint: r.value }),
|
|
5588
5594
|
"active-class": "active-apt",
|
|
5589
5595
|
"selected-class": "active-apt",
|
|
@@ -5592,28 +5598,28 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5592
5598
|
mandatory: ""
|
|
5593
5599
|
}, {
|
|
5594
5600
|
prev: b(() => [
|
|
5595
|
-
r.value ? U("", !0) : (v(),
|
|
5601
|
+
r.value ? U("", !0) : (v(), E(f, {
|
|
5596
5602
|
key: 0,
|
|
5597
5603
|
class: ye(["carousel-button", { mobile: r.value }]),
|
|
5598
5604
|
icon: "mdi-chevron-left",
|
|
5599
5605
|
varient: "tonal",
|
|
5600
5606
|
size: "small",
|
|
5601
|
-
onClick: i[0] || (i[0] = (
|
|
5607
|
+
onClick: i[0] || (i[0] = (_) => n("previous"))
|
|
5602
5608
|
}, null, 8, ["class"]))
|
|
5603
5609
|
]),
|
|
5604
5610
|
next: b(() => [
|
|
5605
|
-
r.value ? U("", !0) : (v(),
|
|
5611
|
+
r.value ? U("", !0) : (v(), E(f, {
|
|
5606
5612
|
key: 0,
|
|
5607
5613
|
class: ye(["carousel-button", { mobile: r.value }]),
|
|
5608
5614
|
icon: "mdi-chevron-right",
|
|
5609
5615
|
varient: "tonal",
|
|
5610
5616
|
size: "small",
|
|
5611
|
-
onClick: i[1] || (i[1] = (
|
|
5617
|
+
onClick: i[1] || (i[1] = (_) => n("next"))
|
|
5612
5618
|
}, null, 8, ["class"]))
|
|
5613
5619
|
]),
|
|
5614
5620
|
default: b(() => [
|
|
5615
|
-
(v(!0), D(ve, null, be(p.thumbnails, (
|
|
5616
|
-
key:
|
|
5621
|
+
(v(!0), D(ve, null, be(p.thumbnails, (_) => (v(), E(h, {
|
|
5622
|
+
key: _.id
|
|
5617
5623
|
}, {
|
|
5618
5624
|
default: b(({ toggle: g, selectedClass: T }) => [
|
|
5619
5625
|
C(c, {
|
|
@@ -5625,16 +5631,16 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5625
5631
|
align: "center",
|
|
5626
5632
|
justify: "center",
|
|
5627
5633
|
style: { overflow: "hidden" },
|
|
5628
|
-
onClick: (O) => m(
|
|
5634
|
+
onClick: (O) => m(_.id, g)
|
|
5629
5635
|
}, {
|
|
5630
5636
|
default: b(() => [
|
|
5631
|
-
C(
|
|
5637
|
+
C(k, {
|
|
5632
5638
|
cover: "",
|
|
5633
5639
|
"aspect-ratio": 1,
|
|
5634
|
-
src:
|
|
5640
|
+
src: _.thumbnailUrl
|
|
5635
5641
|
}, null, 8, ["src"]),
|
|
5636
|
-
e.cameraHasSunStudy(
|
|
5637
|
-
C(
|
|
5642
|
+
e.cameraHasSunStudy(_.id) ? (v(), D("div", $r, [
|
|
5643
|
+
C(w, {
|
|
5638
5644
|
class: "sun-icon",
|
|
5639
5645
|
icon: "mdi-white-balance-sunny"
|
|
5640
5646
|
})
|
|
@@ -5684,7 +5690,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5684
5690
|
navigator.clipboard.writeText(location.href);
|
|
5685
5691
|
}
|
|
5686
5692
|
return (m, p) => {
|
|
5687
|
-
const i =
|
|
5693
|
+
const i = V("v-btn"), f = V("v-tooltip"), k = V("v-toolbar-title"), w = V("v-spacer"), c = V("v-toolbar"), h = V("v-card-text"), y = V("v-card"), _ = V("v-dialog");
|
|
5688
5694
|
return v(), D("div", null, [
|
|
5689
5695
|
C(f, {
|
|
5690
5696
|
elevation: "2",
|
|
@@ -5704,14 +5710,14 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5704
5710
|
]),
|
|
5705
5711
|
_: 1
|
|
5706
5712
|
}),
|
|
5707
|
-
C(
|
|
5713
|
+
C(_, {
|
|
5708
5714
|
id: "share-box",
|
|
5709
5715
|
width: "400",
|
|
5710
5716
|
modelValue: e.value,
|
|
5711
5717
|
"onUpdate:modelValue": p[2] || (p[2] = (g) => e.value = g)
|
|
5712
5718
|
}, {
|
|
5713
5719
|
default: b(() => [
|
|
5714
|
-
C(
|
|
5720
|
+
C(y, null, {
|
|
5715
5721
|
default: b(() => [
|
|
5716
5722
|
C(c, { elevation: "0" }, {
|
|
5717
5723
|
default: b(() => [
|
|
@@ -5720,13 +5726,13 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5720
5726
|
icon: "mdi-close",
|
|
5721
5727
|
onClick: p[1] || (p[1] = (g) => e.value = !1)
|
|
5722
5728
|
}),
|
|
5723
|
-
C(
|
|
5729
|
+
C(k, null, {
|
|
5724
5730
|
default: b(() => [
|
|
5725
5731
|
te(Q(A(t).getLabel("share")), 1)
|
|
5726
5732
|
]),
|
|
5727
5733
|
_: 1
|
|
5728
5734
|
}),
|
|
5729
|
-
C(
|
|
5735
|
+
C(w)
|
|
5730
5736
|
]),
|
|
5731
5737
|
_: 1
|
|
5732
5738
|
}),
|
|
@@ -5806,7 +5812,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5806
5812
|
]),
|
|
5807
5813
|
_: 1
|
|
5808
5814
|
}),
|
|
5809
|
-
C(
|
|
5815
|
+
C(w)
|
|
5810
5816
|
])
|
|
5811
5817
|
]),
|
|
5812
5818
|
_: 1
|
|
@@ -5847,7 +5853,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5847
5853
|
setup(s, { emit: t }) {
|
|
5848
5854
|
const e = t;
|
|
5849
5855
|
return (n, a) => {
|
|
5850
|
-
const o =
|
|
5856
|
+
const o = V("v-btn");
|
|
5851
5857
|
return v(), D("div", Wr, [
|
|
5852
5858
|
C(o, {
|
|
5853
5859
|
density: "comfortable",
|
|
@@ -5973,12 +5979,12 @@ const Nr = {
|
|
|
5973
5979
|
i18nConfig: p,
|
|
5974
5980
|
showCarousel: i,
|
|
5975
5981
|
showTimeOfDay: f,
|
|
5976
|
-
showCompass:
|
|
5977
|
-
showFullScreen:
|
|
5982
|
+
showCompass: k,
|
|
5983
|
+
showFullScreen: w,
|
|
5978
5984
|
showSnapshot: c,
|
|
5979
5985
|
showShare: h,
|
|
5980
|
-
showInteriorOptions:
|
|
5981
|
-
showMiniMap:
|
|
5986
|
+
showInteriorOptions: y,
|
|
5987
|
+
showMiniMap: _,
|
|
5982
5988
|
showFloorLevel: g,
|
|
5983
5989
|
defaultWaypointIndex: T,
|
|
5984
5990
|
defaultViewMode: O,
|
|
@@ -6137,7 +6143,7 @@ const Nr = {
|
|
|
6137
6143
|
const z = T.value !== null ? T.value : 0;
|
|
6138
6144
|
re.value = z, _e.value = Z.value.cameras[z].id, ie.value = Z.value.cameras[z].id;
|
|
6139
6145
|
}
|
|
6140
|
-
|
|
6146
|
+
_.value && (q.value = await Rt(
|
|
6141
6147
|
se.value,
|
|
6142
6148
|
o.value
|
|
6143
6149
|
));
|
|
@@ -6260,7 +6266,7 @@ const Nr = {
|
|
|
6260
6266
|
), Z.value = await Bt(
|
|
6261
6267
|
se.value,
|
|
6262
6268
|
o.value
|
|
6263
|
-
),
|
|
6269
|
+
), _.value && (q.value = await Rt(
|
|
6264
6270
|
se.value,
|
|
6265
6271
|
o.value
|
|
6266
6272
|
));
|
|
@@ -6353,13 +6359,13 @@ const Nr = {
|
|
|
6353
6359
|
}, 5e3);
|
|
6354
6360
|
}
|
|
6355
6361
|
return (F, z) => {
|
|
6356
|
-
const le =
|
|
6362
|
+
const le = V("v-btn");
|
|
6357
6363
|
return v(), D("div", {
|
|
6358
6364
|
class: ye(["virtual-tour-wrapper", [Vt.value]])
|
|
6359
6365
|
}, [
|
|
6360
6366
|
ce.value ? (v(), D("div", Nr, "Error loading the player!!")) : U("", !0),
|
|
6361
6367
|
u("div", Gr, [
|
|
6362
|
-
!X.value.isActive && q.value && ie.value && ge.value && se.value && De.value ? (v(),
|
|
6368
|
+
!X.value.isActive && q.value && ie.value && ge.value && se.value && De.value ? (v(), E(Nt, {
|
|
6363
6369
|
key: 0,
|
|
6364
6370
|
"cdn-file-resolver": A(a),
|
|
6365
6371
|
"apartment-json": M.value,
|
|
@@ -6392,13 +6398,13 @@ const Nr = {
|
|
|
6392
6398
|
onPlayerApiCallback: Da
|
|
6393
6399
|
}, {
|
|
6394
6400
|
"slideshow-image": b(() => [
|
|
6395
|
-
we.value ? (v(),
|
|
6401
|
+
we.value ? (v(), E(Pr, {
|
|
6396
6402
|
key: 0,
|
|
6397
6403
|
image: ne.value
|
|
6398
6404
|
}, null, 8, ["image"])) : U("", !0)
|
|
6399
6405
|
]),
|
|
6400
6406
|
"top-left": b(() => [
|
|
6401
|
-
A(I) ? (v(),
|
|
6407
|
+
A(I) ? (v(), E(le, {
|
|
6402
6408
|
key: 0,
|
|
6403
6409
|
density: "comfortable",
|
|
6404
6410
|
icon: "mdi-cog-outline",
|
|
@@ -6415,7 +6421,7 @@ const Nr = {
|
|
|
6415
6421
|
}, null, 512), [
|
|
6416
6422
|
[Se, N.value]
|
|
6417
6423
|
]),
|
|
6418
|
-
q.value && _e.value && ge.value ? Ce((v(),
|
|
6424
|
+
q.value && _e.value && ge.value ? Ce((v(), E(le, {
|
|
6419
6425
|
key: 1,
|
|
6420
6426
|
density: "comfortable",
|
|
6421
6427
|
elevation: "3",
|
|
@@ -6425,7 +6431,7 @@ const Nr = {
|
|
|
6425
6431
|
}, null, 512)), [
|
|
6426
6432
|
[Se, N.value]
|
|
6427
6433
|
]) : U("", !0),
|
|
6428
|
-
N.value && A(g) && Ve.value.length > 1 ? (v(),
|
|
6434
|
+
N.value && A(g) && Ve.value.length > 1 ? (v(), E(Vl, {
|
|
6429
6435
|
key: 2,
|
|
6430
6436
|
level: Fe.value,
|
|
6431
6437
|
"floor-levels": Ve.value,
|
|
@@ -6441,7 +6447,7 @@ const Nr = {
|
|
|
6441
6447
|
]),
|
|
6442
6448
|
"top-center": b(() => []),
|
|
6443
6449
|
"top-right": b(() => [
|
|
6444
|
-
M.value && A(
|
|
6450
|
+
M.value && A(k) ? Ce((v(), D("div", Zr, [
|
|
6445
6451
|
C(Nl, { rotation: Me.value }, null, 8, ["rotation"])
|
|
6446
6452
|
], 512)), [
|
|
6447
6453
|
[Se, N.value]
|
|
@@ -6449,7 +6455,7 @@ const Nr = {
|
|
|
6449
6455
|
u("div", {
|
|
6450
6456
|
onClick: z[4] || (z[4] = (Ie) => De.value = !De.value)
|
|
6451
6457
|
}, [
|
|
6452
|
-
N.value && M.value && Pe.value && A(f) ? (v(),
|
|
6458
|
+
N.value && M.value && Pe.value && A(f) ? (v(), E(Xl, {
|
|
6453
6459
|
key: 0,
|
|
6454
6460
|
hours: Je.value.hours,
|
|
6455
6461
|
minutes: Je.value.minutes,
|
|
@@ -6463,7 +6469,7 @@ const Nr = {
|
|
|
6463
6469
|
"center-left": b(() => [
|
|
6464
6470
|
C($e, { name: "slide-x-transition" }, {
|
|
6465
6471
|
default: b(() => [
|
|
6466
|
-
we.value ? (v(),
|
|
6472
|
+
we.value ? (v(), E(le, {
|
|
6467
6473
|
key: 0,
|
|
6468
6474
|
density: "comfortable",
|
|
6469
6475
|
elevation: "3",
|
|
@@ -6475,11 +6481,11 @@ const Nr = {
|
|
|
6475
6481
|
})
|
|
6476
6482
|
]),
|
|
6477
6483
|
"center-center": b(() => [
|
|
6478
|
-
Y.value ? (v(),
|
|
6484
|
+
Y.value ? (v(), E(Vs, {
|
|
6479
6485
|
key: 0,
|
|
6480
6486
|
onCloseTutorial: z[5] || (z[5] = (Ie) => ca(Ie))
|
|
6481
6487
|
})) : U("", !0),
|
|
6482
|
-
X.value.isActive && q.value && ie.value && ge.value && De.value ? (v(),
|
|
6488
|
+
X.value.isActive && q.value && ie.value && ge.value && De.value ? (v(), E(Nt, {
|
|
6483
6489
|
key: 1,
|
|
6484
6490
|
"cdn-file-resolver": A(a),
|
|
6485
6491
|
"apartment-json": M.value,
|
|
@@ -6493,7 +6499,7 @@ const Nr = {
|
|
|
6493
6499
|
"center-right": b(() => [
|
|
6494
6500
|
C($e, { name: "slide-x-reverse-transition" }, {
|
|
6495
6501
|
default: b(() => [
|
|
6496
|
-
we.value ? (v(),
|
|
6502
|
+
we.value ? (v(), E(le, {
|
|
6497
6503
|
key: 0,
|
|
6498
6504
|
density: "comfortable",
|
|
6499
6505
|
elevation: "3",
|
|
@@ -6505,7 +6511,7 @@ const Nr = {
|
|
|
6505
6511
|
})
|
|
6506
6512
|
]),
|
|
6507
6513
|
"bottom-left": b(() => [
|
|
6508
|
-
A(
|
|
6514
|
+
A(w) ? (v(), E(ra, {
|
|
6509
6515
|
key: 0,
|
|
6510
6516
|
"is-full-screen": X.value.isActive,
|
|
6511
6517
|
class: "btn-fullscreen",
|
|
@@ -6520,7 +6526,7 @@ const Nr = {
|
|
|
6520
6526
|
})
|
|
6521
6527
|
])) : U("", !0),
|
|
6522
6528
|
u("div", Jr, [
|
|
6523
|
-
A(m) && N.value ? (v(),
|
|
6529
|
+
A(m) && N.value ? (v(), E(ls, {
|
|
6524
6530
|
key: 0,
|
|
6525
6531
|
"show-static-image": we.value,
|
|
6526
6532
|
onToggle: Oa
|
|
@@ -6539,7 +6545,7 @@ const Nr = {
|
|
|
6539
6545
|
"mb-2": !Ae.value
|
|
6540
6546
|
}])
|
|
6541
6547
|
}, [
|
|
6542
|
-
!We.value && Ge.value(ie.value) ? (v(),
|
|
6548
|
+
!We.value && Ge.value(ie.value) ? (v(), E(Er, {
|
|
6543
6549
|
key: 0,
|
|
6544
6550
|
class: "ml-2",
|
|
6545
6551
|
displaySunsim: Le.value,
|
|
@@ -6547,7 +6553,7 @@ const Nr = {
|
|
|
6547
6553
|
onToggleSunStudy: z[7] || (z[7] = (Ie) => Le.value = !Le.value)
|
|
6548
6554
|
}, null, 8, ["displaySunsim", "showUI"])) : U("", !0)
|
|
6549
6555
|
], 2),
|
|
6550
|
-
!Ae.value && !We.value && _e.value && Le.value && Ge.value(ie.value) && Xe(ie.value)[0] && Ue.value ? (v(),
|
|
6556
|
+
!Ae.value && !We.value && _e.value && Le.value && Ge.value(ie.value) && Xe(ie.value)[0] && Ue.value ? (v(), E(Gt, {
|
|
6551
6557
|
key: 0,
|
|
6552
6558
|
class: "sunsim-slider-desktop",
|
|
6553
6559
|
"current-day": Ge.value(ie.value) ? Xe(ie.value)[0] : void 0,
|
|
@@ -6555,7 +6561,7 @@ const Nr = {
|
|
|
6555
6561
|
onOnTimeChange: Ht,
|
|
6556
6562
|
onToggleSunStudy: z[8] || (z[8] = (Ie) => Le.value = !Le.value)
|
|
6557
6563
|
}, null, 8, ["current-day", "current-time"])) : U("", !0),
|
|
6558
|
-
!Ae.value && N.value && A(i) ? (v(),
|
|
6564
|
+
!Ae.value && N.value && A(i) ? (v(), E(_t, {
|
|
6559
6565
|
key: 1,
|
|
6560
6566
|
class: ye([X.value.isActive ? "full-screen" : ""]),
|
|
6561
6567
|
thumbnails: $.value,
|
|
@@ -6566,7 +6572,7 @@ const Nr = {
|
|
|
6566
6572
|
onGoto: xt
|
|
6567
6573
|
}, {
|
|
6568
6574
|
before: b(() => [
|
|
6569
|
-
F.enableAutoplay && N.value && !Ae.value ? (v(),
|
|
6575
|
+
F.enableAutoplay && N.value && !Ae.value ? (v(), E(Qt, {
|
|
6570
6576
|
key: 0,
|
|
6571
6577
|
autoplayStatus: We.value,
|
|
6572
6578
|
onToggleAutoPlay: z[9] || (z[9] = (Ie) => Pt())
|
|
@@ -6581,7 +6587,7 @@ const Nr = {
|
|
|
6581
6587
|
]),
|
|
6582
6588
|
"bottom-right": b(() => [
|
|
6583
6589
|
u("div", Kr, [
|
|
6584
|
-
N.value && A(
|
|
6590
|
+
N.value && A(y) && me.value ? (v(), E(jl, {
|
|
6585
6591
|
key: 0,
|
|
6586
6592
|
"cdn-file-resolver": A(a),
|
|
6587
6593
|
"available-archetypes": me.value,
|
|
@@ -6594,7 +6600,7 @@ const Nr = {
|
|
|
6594
6600
|
}, 8, ["cdn-file-resolver", "style", "show-static-image", "current-camera-id", "mouse-sensitivity", "interior-id", "apartment-id"]),
|
|
6595
6601
|
C($e, null, {
|
|
6596
6602
|
default: b(() => [
|
|
6597
|
-
A(i) && Z.value && Ae.value && N.value ? (v(),
|
|
6603
|
+
A(i) && Z.value && Ae.value && N.value ? (v(), E(_t, {
|
|
6598
6604
|
key: 0,
|
|
6599
6605
|
class: "waypoint-carousel below-player",
|
|
6600
6606
|
thumbnails: $.value,
|
|
@@ -6605,7 +6611,7 @@ const Nr = {
|
|
|
6605
6611
|
onGoto: xt
|
|
6606
6612
|
}, {
|
|
6607
6613
|
before: b(() => [
|
|
6608
|
-
F.enableAutoplay && N.value ? (v(),
|
|
6614
|
+
F.enableAutoplay && N.value ? (v(), E(Qt, {
|
|
6609
6615
|
key: 0,
|
|
6610
6616
|
autoplayStatus: We.value,
|
|
6611
6617
|
onToggleAutoPlay: z[10] || (z[10] = (Ie) => Pt())
|
|
@@ -6617,7 +6623,7 @@ const Nr = {
|
|
|
6617
6623
|
_: 1
|
|
6618
6624
|
}),
|
|
6619
6625
|
Ae.value ? (v(), D("div", ei, [
|
|
6620
|
-
!We.value && _e.value && Le.value && Ge.value(ie.value) && Xe(ie.value)[0] && Ue.value ? (v(),
|
|
6626
|
+
!We.value && _e.value && Le.value && Ge.value(ie.value) && Xe(ie.value)[0] && Ue.value ? (v(), E(Gt, {
|
|
6621
6627
|
key: 0,
|
|
6622
6628
|
class: "mt-1",
|
|
6623
6629
|
"current-day": Ge.value(ie.value) ? Xe(ie.value)[0] : void 0,
|
|
@@ -6741,13 +6747,13 @@ const Nr = {
|
|
|
6741
6747
|
i < 0 && (i = a.value.length - 1), e.value = i;
|
|
6742
6748
|
}
|
|
6743
6749
|
function p(i, f = !0) {
|
|
6744
|
-
let
|
|
6745
|
-
(
|
|
6750
|
+
let k = a.value.findIndex(
|
|
6751
|
+
(w) => w.id === i
|
|
6746
6752
|
);
|
|
6747
|
-
|
|
6753
|
+
k != -1 && (e.value = k);
|
|
6748
6754
|
}
|
|
6749
6755
|
return (i, f) => {
|
|
6750
|
-
const
|
|
6756
|
+
const k = V("v-img"), w = V("v-btn");
|
|
6751
6757
|
return v(), D("div", gi, [
|
|
6752
6758
|
u("div", yi, [
|
|
6753
6759
|
u("div", null, [
|
|
@@ -6756,7 +6762,7 @@ const Nr = {
|
|
|
6756
6762
|
}, {
|
|
6757
6763
|
"slideshow-image": b(() => [
|
|
6758
6764
|
u("div", _i, [
|
|
6759
|
-
C(
|
|
6765
|
+
C(k, {
|
|
6760
6766
|
src: o.value.thumbnailUrl
|
|
6761
6767
|
}, null, 8, ["src"])
|
|
6762
6768
|
])
|
|
@@ -6767,7 +6773,7 @@ const Nr = {
|
|
|
6767
6773
|
"center-left": b(() => [
|
|
6768
6774
|
C($e, { name: "slide-x-transition" }, {
|
|
6769
6775
|
default: b(() => [
|
|
6770
|
-
a.value.length > 1 ? (v(),
|
|
6776
|
+
a.value.length > 1 ? (v(), E(w, {
|
|
6771
6777
|
key: 0,
|
|
6772
6778
|
density: "comfortable",
|
|
6773
6779
|
elevation: "3",
|
|
@@ -6782,7 +6788,7 @@ const Nr = {
|
|
|
6782
6788
|
"center-right": b(() => [
|
|
6783
6789
|
C($e, { name: "slide-x-reverse-transition" }, {
|
|
6784
6790
|
default: b(() => [
|
|
6785
|
-
a.value.length > 1 ? (v(),
|
|
6791
|
+
a.value.length > 1 ? (v(), E(w, {
|
|
6786
6792
|
key: 0,
|
|
6787
6793
|
density: "comfortable",
|
|
6788
6794
|
elevation: "3",
|
|
@@ -6794,7 +6800,7 @@ const Nr = {
|
|
|
6794
6800
|
})
|
|
6795
6801
|
]),
|
|
6796
6802
|
"bottom-left": b(() => [
|
|
6797
|
-
i.showFullScreen ? (v(),
|
|
6803
|
+
i.showFullScreen ? (v(), E(ra, {
|
|
6798
6804
|
key: 0,
|
|
6799
6805
|
"is-full-screen": n.value.isActive,
|
|
6800
6806
|
class: "btn-fullscreen",
|
|
@@ -6806,7 +6812,7 @@ const Nr = {
|
|
|
6806
6812
|
]),
|
|
6807
6813
|
"bottom-center": b(() => [
|
|
6808
6814
|
u("div", null, [
|
|
6809
|
-
n.value.isActive && a.value.length > 1 ? (v(),
|
|
6815
|
+
n.value.isActive && a.value.length > 1 ? (v(), E(_t, {
|
|
6810
6816
|
key: 0,
|
|
6811
6817
|
class: ye([n.value.isActive ? "full-screen" : ""]),
|
|
6812
6818
|
thumbnails: a.value,
|
|
@@ -6820,7 +6826,7 @@ const Nr = {
|
|
|
6820
6826
|
"bottom-right": b(() => []),
|
|
6821
6827
|
_: 1
|
|
6822
6828
|
}, 8, ["is-full-screen"]),
|
|
6823
|
-
a.value.length > 1 ? (v(),
|
|
6829
|
+
a.value.length > 1 ? (v(), E(_t, {
|
|
6824
6830
|
key: 0,
|
|
6825
6831
|
thumbnails: a.value,
|
|
6826
6832
|
active: e.value,
|
|
@@ -6846,27 +6852,27 @@ const Nr = {
|
|
|
6846
6852
|
},
|
|
6847
6853
|
emits: ["apartmentJsonLoaded", "minimapJsonLoaded", "cameraSet"],
|
|
6848
6854
|
setup(s, { emit: t }) {
|
|
6849
|
-
const n = Ee(s), a = t, o = d(), r = d(), l = d(), m = d(0), p = d(), i = d(1), f = B(() => n.currentCamera.value ? n.currentCamera.value : o.value ? o.value.cameras[0].id : null),
|
|
6855
|
+
const n = Ee(s), a = t, o = d(), r = d(), l = d(), m = d(0), p = d(), i = d(1), f = B(() => n.currentCamera.value ? n.currentCamera.value : o.value ? o.value.cameras[0].id : null), k = B(() => ({
|
|
6850
6856
|
transformOrigin: "top left",
|
|
6851
6857
|
transform: `scale(${i.value})`
|
|
6852
6858
|
}));
|
|
6853
6859
|
H(p, () => {
|
|
6854
|
-
p.value && new ResizeObserver(([
|
|
6855
|
-
const g =
|
|
6856
|
-
i.value = T.clientWidth / 512, g.style.height = `${
|
|
6860
|
+
p.value && new ResizeObserver(([_]) => {
|
|
6861
|
+
const g = _.target.parentElement, T = g.parentElement;
|
|
6862
|
+
i.value = T.clientWidth / 512, g.style.height = `${_.contentRect.height * i.value}px`;
|
|
6857
6863
|
}).observe(p.value);
|
|
6858
6864
|
}), H(f, () => {
|
|
6859
6865
|
a("cameraSet", f.value);
|
|
6860
6866
|
});
|
|
6861
|
-
const
|
|
6862
|
-
const
|
|
6867
|
+
const w = B(() => {
|
|
6868
|
+
const _ = ue(n.cdnFileResolver.value, "").replace(
|
|
6863
6869
|
`/${o.value.type}/${o.value.id}`,
|
|
6864
6870
|
""
|
|
6865
6871
|
);
|
|
6866
|
-
return (g) => `${
|
|
6872
|
+
return (g) => `${_}${g}`;
|
|
6867
6873
|
}), c = B(() => {
|
|
6868
|
-
var
|
|
6869
|
-
return (
|
|
6874
|
+
var y;
|
|
6875
|
+
return (y = r.value) == null ? void 0 : y.storeys[n.level.value || 0];
|
|
6870
6876
|
});
|
|
6871
6877
|
H(
|
|
6872
6878
|
n.cdnFileResolver,
|
|
@@ -6888,24 +6894,24 @@ const Nr = {
|
|
|
6888
6894
|
},
|
|
6889
6895
|
{ immediate: !0 }
|
|
6890
6896
|
);
|
|
6891
|
-
function h(
|
|
6892
|
-
l.value =
|
|
6897
|
+
function h(y) {
|
|
6898
|
+
l.value = y;
|
|
6893
6899
|
}
|
|
6894
|
-
return (
|
|
6895
|
-
const g =
|
|
6896
|
-
return v(),
|
|
6900
|
+
return (y, _) => {
|
|
6901
|
+
const g = V("v-skeleton-loader");
|
|
6902
|
+
return v(), E(g, {
|
|
6897
6903
|
loading: !o.value || !r.value
|
|
6898
6904
|
}, {
|
|
6899
6905
|
default: b(() => [
|
|
6900
6906
|
u("div", null, [
|
|
6901
6907
|
u("div", {
|
|
6902
|
-
style: de({ ...
|
|
6908
|
+
style: de({ ...k.value, position: "relative" }),
|
|
6903
6909
|
ref_key: "fitContainer",
|
|
6904
6910
|
ref: p
|
|
6905
6911
|
}, [
|
|
6906
|
-
|
|
6912
|
+
y.hideCompass !== !0 ? (v(), E(oa, {
|
|
6907
6913
|
key: 0,
|
|
6908
|
-
scale:
|
|
6914
|
+
scale: y.compassScale || 1,
|
|
6909
6915
|
rotation: c.value.rotation.y,
|
|
6910
6916
|
"transform-angle": m.value
|
|
6911
6917
|
}, null, 8, ["scale", "rotation", "transform-angle"])) : U("", !0),
|
|
@@ -6913,7 +6919,7 @@ const Nr = {
|
|
|
6913
6919
|
"transform-angle": m.value,
|
|
6914
6920
|
"all-cameras": o.value.cameras,
|
|
6915
6921
|
"background-image": l.value,
|
|
6916
|
-
rotation:
|
|
6922
|
+
rotation: y.rotation || 0,
|
|
6917
6923
|
"current-camera": f.value,
|
|
6918
6924
|
storey: c.value,
|
|
6919
6925
|
containerWidth: 512,
|
|
@@ -6921,7 +6927,7 @@ const Nr = {
|
|
|
6921
6927
|
fit: ""
|
|
6922
6928
|
}, {
|
|
6923
6929
|
default: b(({ id: T, camera: O, active: P, style: I }) => [
|
|
6924
|
-
oe(
|
|
6930
|
+
oe(y.$slots, "default", {
|
|
6925
6931
|
id: T,
|
|
6926
6932
|
camera: O,
|
|
6927
6933
|
active: P,
|
|
@@ -6930,12 +6936,12 @@ const Nr = {
|
|
|
6930
6936
|
]),
|
|
6931
6937
|
_: 3
|
|
6932
6938
|
}, 8, ["transform-angle", "all-cameras", "background-image", "rotation", "current-camera", "storey"]),
|
|
6933
|
-
|
|
6939
|
+
y.hideSlider !== !0 ? (v(), E(la, {
|
|
6934
6940
|
key: 1,
|
|
6935
|
-
"cdn-file-resolver":
|
|
6941
|
+
"cdn-file-resolver": w.value,
|
|
6936
6942
|
"minimap-json": r.value,
|
|
6937
6943
|
"apartment-json": o.value,
|
|
6938
|
-
level:
|
|
6944
|
+
level: y.level || 0,
|
|
6939
6945
|
onSetBackgroundImage: h
|
|
6940
6946
|
}, null, 8, ["cdn-file-resolver", "minimap-json", "apartment-json", "level"])) : U("", !0)
|
|
6941
6947
|
], 4)
|
|
@@ -6972,7 +6978,7 @@ const Nr = {
|
|
|
6972
6978
|
},
|
|
6973
6979
|
setup(s) {
|
|
6974
6980
|
const t = s, { dayData: e, cdnFileResolver: n, currentTime: a } = Ee(t);
|
|
6975
|
-
return (o, r) => (v(!0), D(ve, null, be(A(e).timeSamples, (l) => (v(),
|
|
6981
|
+
return (o, r) => (v(!0), D(ve, null, be(A(e).timeSamples, (l) => (v(), E(xi, {
|
|
6976
6982
|
key: l.filename,
|
|
6977
6983
|
"time-sample-data": l,
|
|
6978
6984
|
"cdn-file-resolver": A(n),
|
|
@@ -6993,7 +6999,7 @@ const Nr = {
|
|
|
6993
6999
|
n.value,
|
|
6994
7000
|
a.value.defaultFilename
|
|
6995
7001
|
));
|
|
6996
|
-
return (l, m) => A(e).sunsimDayOfYear ? (v(!0), D(ve, { key: 0 }, be(A(e).sunsimDayOfYear, (p) => (v(),
|
|
7002
|
+
return (l, m) => A(e).sunsimDayOfYear ? (v(!0), D(ve, { key: 0 }, be(A(e).sunsimDayOfYear, (p) => (v(), E(Di, {
|
|
6997
7003
|
key: p.dayOfYear,
|
|
6998
7004
|
"day-data": p,
|
|
6999
7005
|
"cdn-file-resolver": A(n),
|
|
@@ -7057,11 +7063,11 @@ const Ti = {
|
|
|
7057
7063
|
)
|
|
7058
7064
|
);
|
|
7059
7065
|
}), (p, i) => {
|
|
7060
|
-
const f =
|
|
7066
|
+
const f = V("v-btn"), k = V("v-field"), w = V("v-list-item-title"), c = V("v-list-item"), h = V("v-list"), y = V("v-menu");
|
|
7061
7067
|
return A(a).sunsimDayOfYear && A(a).sunsimDayOfYear.length > 0 ? (v(), D("div", Ti, [
|
|
7062
|
-
C(
|
|
7063
|
-
activator: b(({ props:
|
|
7064
|
-
C(
|
|
7068
|
+
C(y, null, {
|
|
7069
|
+
activator: b(({ props: _ }) => [
|
|
7070
|
+
C(k, {
|
|
7065
7071
|
variant: "solo-filled",
|
|
7066
7072
|
rounded: "",
|
|
7067
7073
|
flat: ""
|
|
@@ -7076,7 +7082,7 @@ const Ti = {
|
|
|
7076
7082
|
"append-icon": A(a).sunsimDayOfYear.length > 1 ? "mdi-menu-down" : void 0,
|
|
7077
7083
|
disabled: A(r),
|
|
7078
7084
|
size: A(n) ? "small" : void 0
|
|
7079
|
-
},
|
|
7085
|
+
}, _), {
|
|
7080
7086
|
default: b(() => [
|
|
7081
7087
|
te(Q(A(Zt)(m.value)), 1)
|
|
7082
7088
|
]),
|
|
@@ -7089,15 +7095,15 @@ const Ti = {
|
|
|
7089
7095
|
default: b(() => [
|
|
7090
7096
|
C(h, null, {
|
|
7091
7097
|
default: b(() => [
|
|
7092
|
-
(v(!0), D(ve, null, be(A(a).sunsimDayOfYear, (
|
|
7098
|
+
(v(!0), D(ve, null, be(A(a).sunsimDayOfYear, (_, g) => (v(), E(c, {
|
|
7093
7099
|
key: g,
|
|
7094
7100
|
value: g,
|
|
7095
|
-
onClick: (T) => m.value =
|
|
7101
|
+
onClick: (T) => m.value = _.dayOfYear
|
|
7096
7102
|
}, {
|
|
7097
7103
|
default: b(() => [
|
|
7098
|
-
C(
|
|
7104
|
+
C(w, null, {
|
|
7099
7105
|
default: b(() => [
|
|
7100
|
-
te(Q(A(Zt)(
|
|
7106
|
+
te(Q(A(Zt)(_.dayOfYear)), 1)
|
|
7101
7107
|
]),
|
|
7102
7108
|
_: 2
|
|
7103
7109
|
}, 1024)
|
|
@@ -7146,8 +7152,8 @@ const Ti = {
|
|
|
7146
7152
|
function i(f) {
|
|
7147
7153
|
l.value || (m.value = f);
|
|
7148
7154
|
}
|
|
7149
|
-
return (f,
|
|
7150
|
-
const
|
|
7155
|
+
return (f, k) => {
|
|
7156
|
+
const w = V("v-icon");
|
|
7151
7157
|
return v(), D("div", {
|
|
7152
7158
|
class: ye({
|
|
7153
7159
|
"d-flex": !0,
|
|
@@ -7165,7 +7171,7 @@ const Ti = {
|
|
|
7165
7171
|
class: ye(["still-camera-image d-flex flex-column flex-reverse align-center elevation-2", {
|
|
7166
7172
|
"active-camera": c === m.value
|
|
7167
7173
|
}]),
|
|
7168
|
-
onClick: (
|
|
7174
|
+
onClick: (y) => i(c)
|
|
7169
7175
|
}, [
|
|
7170
7176
|
c.cameraName ? (v(), D("div", Ri, Q(c.cameraName), 1)) : U("", !0),
|
|
7171
7177
|
u("div", {
|
|
@@ -7178,7 +7184,7 @@ const Ti = {
|
|
|
7178
7184
|
})
|
|
7179
7185
|
}, null, 4),
|
|
7180
7186
|
c.sunsimDayOfYear && c.sunsimDayOfYear.length > 1 ? (v(), D("div", Ui, [
|
|
7181
|
-
C(
|
|
7187
|
+
C(w, {
|
|
7182
7188
|
size: "x-small",
|
|
7183
7189
|
color: "warning",
|
|
7184
7190
|
style: { opacity: "0.6" }
|
|
@@ -7215,7 +7221,7 @@ const Ti = {
|
|
|
7215
7221
|
)
|
|
7216
7222
|
);
|
|
7217
7223
|
}), (p, i) => {
|
|
7218
|
-
const f =
|
|
7224
|
+
const f = V("v-icon"), k = V("v-slider"), w = V("v-field");
|
|
7219
7225
|
return v(), D("div", {
|
|
7220
7226
|
class: ye({ "d-inline-block": !0, mobile: A(n) }),
|
|
7221
7227
|
style: de({
|
|
@@ -7223,7 +7229,7 @@ const Ti = {
|
|
|
7223
7229
|
verticalAlign: "top"
|
|
7224
7230
|
})
|
|
7225
7231
|
}, [
|
|
7226
|
-
C(
|
|
7232
|
+
C(w, {
|
|
7227
7233
|
style: de(
|
|
7228
7234
|
A(a).timeSamples.length > 1 ? {
|
|
7229
7235
|
width: A(n) ? "100%" : "300px",
|
|
@@ -7241,7 +7247,7 @@ const Ti = {
|
|
|
7241
7247
|
flat: ""
|
|
7242
7248
|
}, {
|
|
7243
7249
|
default: b(() => [
|
|
7244
|
-
A(a).timeSamples.length > 1 ? (v(),
|
|
7250
|
+
A(a).timeSamples.length > 1 ? (v(), E(k, {
|
|
7245
7251
|
key: 0,
|
|
7246
7252
|
class: "pa-2 pr-2",
|
|
7247
7253
|
modelValue: m.value,
|
|
@@ -7303,7 +7309,7 @@ const Ti = {
|
|
|
7303
7309
|
setup(s, { emit: t }) {
|
|
7304
7310
|
const e = s, { isMobileSized: n, canZoomIn: a, canZoomOut: o, disabled: r } = Ee(e), l = t;
|
|
7305
7311
|
return (m, p) => {
|
|
7306
|
-
const i =
|
|
7312
|
+
const i = V("v-btn");
|
|
7307
7313
|
return v(), D("div", Ni, [
|
|
7308
7314
|
C(i, {
|
|
7309
7315
|
disabled: A(r) || !A(a),
|
|
@@ -7339,14 +7345,14 @@ const Ti = {
|
|
|
7339
7345
|
const e = s, { cdnFileResolver: n, colorCallback: a, currentCamera: o, selectedId: r } = Ee(e), l = t, m = d(!0), p = d(), i = d(), f = bt({});
|
|
7340
7346
|
Be(() => {
|
|
7341
7347
|
for (const c in f) {
|
|
7342
|
-
const { element: h, state:
|
|
7348
|
+
const { element: h, state: y } = f[c], { r: _, g, b: T, a: O, s: P } = a.value(c, y) || {
|
|
7343
7349
|
r: 0,
|
|
7344
7350
|
g: 0,
|
|
7345
7351
|
b: 0,
|
|
7346
7352
|
a: 0,
|
|
7347
7353
|
s: 0
|
|
7348
7354
|
};
|
|
7349
|
-
h.style.fill = `rgba(${
|
|
7355
|
+
h.style.fill = `rgba(${_}, ${g}, ${T}, ${O / 255})`, h.style.stroke = `rgb(${_}, ${g}, ${T})`, h.style.strokeWidth = P.toString(), h.style.cursor = "pointer";
|
|
7350
7356
|
}
|
|
7351
7357
|
}), H(r, () => {
|
|
7352
7358
|
for (const c in f)
|
|
@@ -7355,7 +7361,7 @@ const Ti = {
|
|
|
7355
7361
|
try {
|
|
7356
7362
|
m.value = !1, p.value = await Oe.loadText(
|
|
7357
7363
|
ue(n.value, o.value.overlayFilename)
|
|
7358
|
-
),
|
|
7364
|
+
), w();
|
|
7359
7365
|
} catch (c) {
|
|
7360
7366
|
l("onError", c);
|
|
7361
7367
|
} finally {
|
|
@@ -7364,19 +7370,19 @@ const Ti = {
|
|
|
7364
7370
|
}), H(
|
|
7365
7371
|
() => i.value,
|
|
7366
7372
|
() => {
|
|
7367
|
-
i.value && new ResizeObserver(
|
|
7373
|
+
i.value && new ResizeObserver(k).observe(i.value);
|
|
7368
7374
|
}
|
|
7369
7375
|
);
|
|
7370
|
-
function
|
|
7376
|
+
function k() {
|
|
7371
7377
|
ke(() => {
|
|
7372
7378
|
var h;
|
|
7373
7379
|
const c = (h = i.value) == null ? void 0 : h.firstChild;
|
|
7374
7380
|
if (c) {
|
|
7375
7381
|
if (!c.hasAttribute("viewBox")) {
|
|
7376
|
-
const
|
|
7382
|
+
const y = `0 0 ${c.getAttribute(
|
|
7377
7383
|
"width"
|
|
7378
7384
|
)} ${c.getAttribute("height")}`;
|
|
7379
|
-
c.setAttribute("viewBox",
|
|
7385
|
+
c.setAttribute("viewBox", y);
|
|
7380
7386
|
}
|
|
7381
7387
|
c.setAttribute(
|
|
7382
7388
|
"width",
|
|
@@ -7391,22 +7397,22 @@ const Ti = {
|
|
|
7391
7397
|
H(
|
|
7392
7398
|
() => e.activeStructureIds,
|
|
7393
7399
|
() => {
|
|
7394
|
-
|
|
7400
|
+
w();
|
|
7395
7401
|
},
|
|
7396
7402
|
{ immediate: !0, deep: !0 }
|
|
7397
7403
|
);
|
|
7398
|
-
function
|
|
7404
|
+
function w() {
|
|
7399
7405
|
ke(() => {
|
|
7400
7406
|
var h;
|
|
7401
7407
|
const c = (h = i.value) == null ? void 0 : h.firstChild;
|
|
7402
7408
|
if (c) {
|
|
7403
|
-
l("updateSvgContainer", c),
|
|
7404
|
-
let
|
|
7405
|
-
|
|
7409
|
+
l("updateSvgContainer", c), k();
|
|
7410
|
+
let y, _ = "data-structure-id";
|
|
7411
|
+
y = c.querySelectorAll(`[${_}]`), y.length === 0 && (_ = "data-apartment-id", y = c.querySelectorAll(`[${_}]`), y.length === 0 && (_ = "data-building-id", y = c.querySelectorAll(`[${_}]`))), y.forEach((g) => {
|
|
7406
7412
|
g.style.strokeWidth = "0", g.style.stroke = "rgba(255,255,255,0)", g.style.fill = "rgba(255,255,255,0)", g.querySelectorAll("path").forEach((O) => {
|
|
7407
7413
|
O.style.stroke = "inherit", O.style.fill = "inherit";
|
|
7408
7414
|
});
|
|
7409
|
-
const T = g.getAttribute(
|
|
7415
|
+
const T = g.getAttribute(_);
|
|
7410
7416
|
f[T] = {
|
|
7411
7417
|
element: g,
|
|
7412
7418
|
state: r.value === T ? "selected" : "idle"
|
|
@@ -7421,7 +7427,7 @@ const Ti = {
|
|
|
7421
7427
|
}
|
|
7422
7428
|
});
|
|
7423
7429
|
}
|
|
7424
|
-
return (c, h) => (v(),
|
|
7430
|
+
return (c, h) => (v(), E($e, null, {
|
|
7425
7431
|
default: b(() => [
|
|
7426
7432
|
Ce((v(), D("div", {
|
|
7427
7433
|
ref_key: "svgContainer",
|
|
@@ -7762,14 +7768,14 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7762
7768
|
selectedId: p,
|
|
7763
7769
|
defaultCamera: i,
|
|
7764
7770
|
defaultDay: f,
|
|
7765
|
-
defaultTime:
|
|
7766
|
-
mobileBreakpoint:
|
|
7771
|
+
defaultTime: k,
|
|
7772
|
+
mobileBreakpoint: w
|
|
7767
7773
|
} = Ee(n), c = e;
|
|
7768
7774
|
nt(
|
|
7769
7775
|
Re,
|
|
7770
7776
|
l.value ? new Ye(l.value) : new Ye()
|
|
7771
7777
|
);
|
|
7772
|
-
const h = d(),
|
|
7778
|
+
const h = d(), y = d(), _ = d(), g = d(null), T = d(4), O = d(), P = d(!1), I = d(!1), L = d(), J = B(() => L.value.isHoverEnabled), R = d({ x: 0, y: 0, width: 0, height: 0 }), ee = d(), x = d(), S = d(), Y = d(!1), G = d(), ce = d({
|
|
7773
7779
|
current: 100,
|
|
7774
7780
|
min: 100,
|
|
7775
7781
|
max: 1e3
|
|
@@ -7777,8 +7783,8 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7777
7783
|
t({
|
|
7778
7784
|
getState: () => ({
|
|
7779
7785
|
currentCamera: h.value,
|
|
7780
|
-
currentDay:
|
|
7781
|
-
currentTime:
|
|
7786
|
+
currentDay: y.value,
|
|
7787
|
+
currentTime: _.value,
|
|
7782
7788
|
currentTransition: g.value,
|
|
7783
7789
|
currentScene: T.value,
|
|
7784
7790
|
currentZoom: ce.value.current
|
|
@@ -7792,8 +7798,8 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7792
7798
|
}) => {
|
|
7793
7799
|
ke(() => {
|
|
7794
7800
|
h.value = $, ke(() => {
|
|
7795
|
-
|
|
7796
|
-
|
|
7801
|
+
y.value = ne, ke(() => {
|
|
7802
|
+
_.value = fe, ke(() => {
|
|
7797
7803
|
g.value = me, ke(() => {
|
|
7798
7804
|
T.value = ge;
|
|
7799
7805
|
});
|
|
@@ -7834,7 +7840,7 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7834
7840
|
() => x.value,
|
|
7835
7841
|
() => {
|
|
7836
7842
|
x.value && new ResizeObserver(([ne]) => {
|
|
7837
|
-
Y.value = ne.contentRect.width <
|
|
7843
|
+
Y.value = ne.contentRect.width < w.value;
|
|
7838
7844
|
}).observe(x.value);
|
|
7839
7845
|
}
|
|
7840
7846
|
);
|
|
@@ -7856,19 +7862,19 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7856
7862
|
), H(
|
|
7857
7863
|
[S, o, f],
|
|
7858
7864
|
() => {
|
|
7859
|
-
S.value && o.value && h.value && h.value.sunsimDayOfYear && h.value.sunsimDayOfYear.length > 0 && (f.value ?
|
|
7865
|
+
S.value && o.value && h.value && h.value.sunsimDayOfYear && h.value.sunsimDayOfYear.length > 0 && (f.value ? y.value = h.value.sunsimDayOfYear.find(
|
|
7860
7866
|
($) => $.dayOfYear === f.value
|
|
7861
|
-
) || h.value.sunsimDayOfYear[0] :
|
|
7867
|
+
) || h.value.sunsimDayOfYear[0] : y.value = h.value.sunsimDayOfYear[0]);
|
|
7862
7868
|
},
|
|
7863
7869
|
{ immediate: !0 }
|
|
7864
7870
|
), H(
|
|
7865
|
-
[S, o,
|
|
7871
|
+
[S, o, k],
|
|
7866
7872
|
() => {
|
|
7867
|
-
S.value && o.value &&
|
|
7868
|
-
($) => $.timeInHours ===
|
|
7869
|
-
) ||
|
|
7870
|
-
($) => $.timeInHours ===
|
|
7871
|
-
) ||
|
|
7873
|
+
S.value && o.value && y.value && y.value.timeSamples && y.value.timeSamples.length > 0 && (k.value ? _.value = y.value.timeSamples.find(
|
|
7874
|
+
($) => $.timeInHours === k.value
|
|
7875
|
+
) || y.value.timeSamples[0] : _.value = y.value.timeSamples.find(
|
|
7876
|
+
($) => $.timeInHours === y.value.defaultHour
|
|
7877
|
+
) || y.value.timeSamples[0]);
|
|
7872
7878
|
},
|
|
7873
7879
|
{ immediate: !0 }
|
|
7874
7880
|
);
|
|
@@ -7885,7 +7891,7 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7885
7891
|
}), g.value = null);
|
|
7886
7892
|
}
|
|
7887
7893
|
function ie($) {
|
|
7888
|
-
const ne =
|
|
7894
|
+
const ne = y.value;
|
|
7889
7895
|
h.value = $, T.value = S.value.cameras.findIndex(
|
|
7890
7896
|
(fe) => fe === h.value
|
|
7891
7897
|
), ke(() => {
|
|
@@ -7897,19 +7903,19 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7897
7903
|
});
|
|
7898
7904
|
}
|
|
7899
7905
|
function Me($) {
|
|
7900
|
-
const ne =
|
|
7901
|
-
|
|
7906
|
+
const ne = _.value;
|
|
7907
|
+
y.value = $, ke(() => {
|
|
7902
7908
|
Fe(
|
|
7903
|
-
|
|
7909
|
+
y.value.timeSamples.find(
|
|
7904
7910
|
(fe) => fe.timeInHours === ne.timeInHours
|
|
7905
|
-
) ||
|
|
7906
|
-
(fe) => fe.timeInHours ===
|
|
7907
|
-
) ||
|
|
7911
|
+
) || y.value.timeSamples.find(
|
|
7912
|
+
(fe) => fe.timeInHours === y.value.defaultHour
|
|
7913
|
+
) || y.value.timeSamples[0]
|
|
7908
7914
|
);
|
|
7909
7915
|
});
|
|
7910
7916
|
}
|
|
7911
7917
|
function Fe($) {
|
|
7912
|
-
|
|
7918
|
+
_.value = $;
|
|
7913
7919
|
}
|
|
7914
7920
|
function je($) {
|
|
7915
7921
|
c("onClick", $, () => {
|
|
@@ -7993,7 +7999,7 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7993
7999
|
}
|
|
7994
8000
|
const ze = ($) => $ * (180 / Math.PI);
|
|
7995
8001
|
return ($, ne) => {
|
|
7996
|
-
const fe =
|
|
8002
|
+
const fe = V("v-skeleton-loader");
|
|
7997
8003
|
return v(), D(ve, null, [
|
|
7998
8004
|
C(fe, {
|
|
7999
8005
|
type: "image",
|
|
@@ -8018,7 +8024,7 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
8018
8024
|
top: Y.value && ae.value.length > 1 ? "60px" : 0
|
|
8019
8025
|
})
|
|
8020
8026
|
}, [
|
|
8021
|
-
h.value.cameraRotation ? (v(),
|
|
8027
|
+
h.value.cameraRotation ? (v(), E(st, {
|
|
8022
8028
|
key: 0,
|
|
8023
8029
|
class: "mb-2",
|
|
8024
8030
|
style: de({
|
|
@@ -8061,15 +8067,15 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
8061
8067
|
onUpdate: Le
|
|
8062
8068
|
}, {
|
|
8063
8069
|
default: b(() => [
|
|
8064
|
-
(v(!0), D(ve, null, be(ae.value, (me, ge) => (v(),
|
|
8070
|
+
(v(!0), D(ve, null, be(ae.value, (me, ge) => (v(), E(Fi, {
|
|
8065
8071
|
key: `camera${ge}`,
|
|
8066
8072
|
"camera-data": me,
|
|
8067
8073
|
"cdn-file-resolver": A(o),
|
|
8068
8074
|
"current-camera": h.value,
|
|
8069
|
-
"current-day":
|
|
8070
|
-
"current-time":
|
|
8075
|
+
"current-day": y.value,
|
|
8076
|
+
"current-time": _.value
|
|
8071
8077
|
}, null, 8, ["camera-data", "cdn-file-resolver", "current-camera", "current-day", "current-time"]))), 128)),
|
|
8072
|
-
(v(!0), D(ve, null, be(re.value, (me, ge) => (v(),
|
|
8078
|
+
(v(!0), D(ve, null, be(re.value, (me, ge) => (v(), E(Oi, {
|
|
8073
8079
|
key: `transition${ge}`,
|
|
8074
8080
|
"transition-data": me,
|
|
8075
8081
|
"cdn-file-resolver": A(o),
|
|
@@ -8081,7 +8087,7 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
8081
8087
|
style: { "z-index": "6", "pointer-events": "none" },
|
|
8082
8088
|
innerHTML: A(m)
|
|
8083
8089
|
}, null, 8, ou)) : U("", !0),
|
|
8084
|
-
h.value.overlayFilename && !j.value ? Ce((v(),
|
|
8090
|
+
h.value.overlayFilename && !j.value ? Ce((v(), E(Ji, {
|
|
8085
8091
|
key: q.value,
|
|
8086
8092
|
"cdn-file-resolver": A(o),
|
|
8087
8093
|
"color-callback": A(r),
|
|
@@ -8100,7 +8106,7 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
8100
8106
|
]),
|
|
8101
8107
|
_: 3
|
|
8102
8108
|
}, 512),
|
|
8103
|
-
$.showUi && (
|
|
8109
|
+
$.showUi && (y.value && y.value.timeSamples && y.value.timeSamples.length > 1 || h.value.sunsimDayOfYear && h.value.sunsimDayOfYear.length > 1) ? (v(), D("div", {
|
|
8104
8110
|
key: 2,
|
|
8105
8111
|
class: ye({
|
|
8106
8112
|
"actions-bar top-left pa-2 d-flex": !0,
|
|
@@ -8112,19 +8118,19 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
8112
8118
|
class: "pr-2",
|
|
8113
8119
|
"is-mobile-sized": Y.value,
|
|
8114
8120
|
"current-camera": h.value,
|
|
8115
|
-
"current-day":
|
|
8121
|
+
"current-day": y.value,
|
|
8116
8122
|
disabled: I.value,
|
|
8117
8123
|
onOnDayChange: Me
|
|
8118
8124
|
}, null, 8, ["is-mobile-sized", "current-camera", "current-day", "disabled"]),
|
|
8119
8125
|
C(Wi, {
|
|
8120
8126
|
"is-mobile-sized": Y.value,
|
|
8121
|
-
"current-day":
|
|
8122
|
-
"current-time":
|
|
8127
|
+
"current-day": y.value,
|
|
8128
|
+
"current-time": _.value,
|
|
8123
8129
|
disabled: I.value,
|
|
8124
8130
|
onOnTimeChange: Fe
|
|
8125
8131
|
}, null, 8, ["is-mobile-sized", "current-day", "current-time", "disabled"])
|
|
8126
8132
|
], 2)) : U("", !0),
|
|
8127
|
-
$.$slots.popup && R.value && O.value ? (v(),
|
|
8133
|
+
$.$slots.popup && R.value && O.value ? (v(), E(ot, {
|
|
8128
8134
|
key: 3,
|
|
8129
8135
|
"is-hoverable": J.value,
|
|
8130
8136
|
pos: R.value
|