@qispace/vue3-player 0.4.12 → 0.4.14
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.
|
@@ -13,12 +13,12 @@ const Dn = /* @__PURE__ */ N({
|
|
|
13
13
|
},
|
|
14
14
|
emits: ["outside"],
|
|
15
15
|
setup(t, { emit: n }) {
|
|
16
|
-
const o = t, l = n,
|
|
17
|
-
let a, s,
|
|
18
|
-
return o.pos.x <= o.pos.width / 2 ? (a = "-100%",
|
|
16
|
+
const o = t, l = n, i = D(() => {
|
|
17
|
+
let a, s, r, f;
|
|
18
|
+
return o.pos.x <= o.pos.width / 2 ? (a = "-100%", r = "-8px") : (a = "0%", r = "8px"), o.pos.y <= o.pos.height / 2 ? (s = "-100%", f = "-8px") : (s = "0%", f = "8px"), `translate(${a}, ${s}) translate(${r}, ${f})`;
|
|
19
19
|
});
|
|
20
20
|
return (a, s) => {
|
|
21
|
-
const
|
|
21
|
+
const r = E("v-dialog"), f = E("v-fade-transition");
|
|
22
22
|
return u(), O(f, {
|
|
23
23
|
origin: `top left ${a.pos.x} ${a.pos.y}`
|
|
24
24
|
}, {
|
|
@@ -30,11 +30,11 @@ const Dn = /* @__PURE__ */ N({
|
|
|
30
30
|
left: `${a.pos.x}px`,
|
|
31
31
|
top: `${a.pos.y}px`,
|
|
32
32
|
pointerEvents: "none",
|
|
33
|
-
transform:
|
|
33
|
+
transform: i.value
|
|
34
34
|
})
|
|
35
35
|
}, [
|
|
36
36
|
ee(a.$slots, "default", { isHoverable: a.isHoverable }, void 0, !0)
|
|
37
|
-
], 4)) : (u(), O(
|
|
37
|
+
], 4)) : (u(), O(r, {
|
|
38
38
|
key: 1,
|
|
39
39
|
value: !0,
|
|
40
40
|
width: "auto",
|
|
@@ -52,8 +52,8 @@ const Dn = /* @__PURE__ */ N({
|
|
|
52
52
|
}
|
|
53
53
|
}), te = (t, n) => {
|
|
54
54
|
const o = t.__vccOpts || t;
|
|
55
|
-
for (const [l,
|
|
56
|
-
o[l] =
|
|
55
|
+
for (const [l, i] of n)
|
|
56
|
+
o[l] = i;
|
|
57
57
|
return o;
|
|
58
58
|
}, Bn = /* @__PURE__ */ te(Dn, [["__scopeId", "data-v-7d5e6067"]]), On = /* @__PURE__ */ N({
|
|
59
59
|
__name: "VHoverProbe",
|
|
@@ -61,7 +61,7 @@ const Dn = /* @__PURE__ */ N({
|
|
|
61
61
|
const o = _(), l = D(() => window.getComputedStyle(o.value).display === "none");
|
|
62
62
|
return n({
|
|
63
63
|
isHoverEnabled: l
|
|
64
|
-
}), (
|
|
64
|
+
}), (i, a) => (u(), L("div", {
|
|
65
65
|
ref_key: "hoverCheck",
|
|
66
66
|
ref: o,
|
|
67
67
|
class: "hover-check"
|
|
@@ -77,7 +77,7 @@ const Dn = /* @__PURE__ */ N({
|
|
|
77
77
|
transform: `rotate(${90 - (n.longitude || 0)}deg)`,
|
|
78
78
|
transition: " transform 0.5s ease-in"
|
|
79
79
|
}));
|
|
80
|
-
return (l,
|
|
80
|
+
return (l, i) => {
|
|
81
81
|
const a = E("v-img");
|
|
82
82
|
return u(), O(a, {
|
|
83
83
|
src: p($n),
|
|
@@ -97,15 +97,15 @@ const Dn = /* @__PURE__ */ N({
|
|
|
97
97
|
},
|
|
98
98
|
emits: ["update"],
|
|
99
99
|
setup(t, { expose: n, emit: o }) {
|
|
100
|
-
const l = t,
|
|
100
|
+
const l = t, i = o;
|
|
101
101
|
n({
|
|
102
102
|
adjustZoom: Ce
|
|
103
103
|
});
|
|
104
|
-
const a = _(100), s = _(0),
|
|
104
|
+
const a = _(100), s = _(0), r = _(0), f = _(!1), g = _(!1), h = _(void 0), k = _(!1), C = _(), F = D(() => `translateX(${s.value}px) translateY(${r.value}px) scale(${w.value})`), w = D(() => a.value / 100), d = D(() => l.maxScale * 100);
|
|
105
105
|
Y(
|
|
106
|
-
[w, s,
|
|
106
|
+
[w, s, r],
|
|
107
107
|
() => {
|
|
108
|
-
|
|
108
|
+
ie();
|
|
109
109
|
},
|
|
110
110
|
{ immediate: !0 }
|
|
111
111
|
), Y(
|
|
@@ -180,11 +180,11 @@ const Dn = /* @__PURE__ */ N({
|
|
|
180
180
|
}
|
|
181
181
|
function $(B) {
|
|
182
182
|
if (f.value) {
|
|
183
|
-
const { x: q, y: Q } = M(B), { x:
|
|
184
|
-
x: q -
|
|
183
|
+
const { x: q, y: Q } = M(B), { x: j, y: se } = M(h.value), K = {
|
|
184
|
+
x: q - j,
|
|
185
185
|
y: Q - se
|
|
186
186
|
};
|
|
187
|
-
|
|
187
|
+
W(K.x), me(K.y), k.value = !0, h.value = B;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
function G(B) {
|
|
@@ -198,19 +198,19 @@ const Dn = /* @__PURE__ */ N({
|
|
|
198
198
|
}
|
|
199
199
|
function ye(B) {
|
|
200
200
|
if (f.value) {
|
|
201
|
-
const { x: q, y: Q } = M(B.touches[0]), { x:
|
|
201
|
+
const { x: q, y: Q } = M(B.touches[0]), { x: j, y: se } = M(
|
|
202
202
|
h.value.touches[0]
|
|
203
203
|
), K = {
|
|
204
|
-
x: q -
|
|
204
|
+
x: q - j,
|
|
205
205
|
y: Q - se
|
|
206
206
|
};
|
|
207
|
-
|
|
207
|
+
W(K.x), me(K.y);
|
|
208
208
|
} else if (g.value && B.touches.length === 2) {
|
|
209
|
-
const { x: q, y: Q } = M(B.touches[0]), { x:
|
|
209
|
+
const { x: q, y: Q } = M(B.touches[0]), { x: j, y: se } = M(
|
|
210
210
|
h.value.touches[0]
|
|
211
|
-
), { x: K, y:
|
|
211
|
+
), { x: K, y: re } = M(B.touches[1]), { x: J, y: _e } = M(
|
|
212
212
|
h.value.touches[1]
|
|
213
|
-
), xe = Math.hypot(
|
|
213
|
+
), xe = Math.hypot(j - J, se - _e), De = Math.hypot(q - K, Q - re), fe = (K + q) / 2, he = (re + Q) / 2;
|
|
214
214
|
Ce(De - xe, fe, he);
|
|
215
215
|
}
|
|
216
216
|
h.value = B;
|
|
@@ -225,7 +225,7 @@ const Dn = /* @__PURE__ */ N({
|
|
|
225
225
|
y: B.clientY - Q
|
|
226
226
|
};
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function W(B) {
|
|
229
229
|
const q = C.value.clientWidth, Q = q * w.value;
|
|
230
230
|
s.value = Math.max(
|
|
231
231
|
Math.min(0, s.value + B),
|
|
@@ -234,27 +234,27 @@ const Dn = /* @__PURE__ */ N({
|
|
|
234
234
|
}
|
|
235
235
|
function me(B) {
|
|
236
236
|
const q = C.value.clientHeight, Q = q * w.value;
|
|
237
|
-
|
|
238
|
-
Math.min(0,
|
|
237
|
+
r.value = Math.max(
|
|
238
|
+
Math.min(0, r.value + B),
|
|
239
239
|
-(Q - q)
|
|
240
240
|
);
|
|
241
241
|
}
|
|
242
242
|
function Ce(B, q, Q) {
|
|
243
|
-
const
|
|
243
|
+
const j = q !== void 0 ? q : C.value.clientWidth / 2, se = Q !== void 0 ? Q : C.value.clientHeight / 2, K = C.value.clientWidth, re = C.value.clientHeight, J = K * w.value, _e = re * w.value;
|
|
244
244
|
a.value = Math.min(Math.max(100, a.value + B), d.value);
|
|
245
|
-
const xe = K * w.value, De =
|
|
246
|
-
s.value -=
|
|
245
|
+
const xe = K * w.value, De = re * w.value, fe = xe - J, he = De - _e;
|
|
246
|
+
s.value -= j / K * fe, r.value -= se / re * he, W(0), me(0);
|
|
247
247
|
}
|
|
248
|
-
function
|
|
249
|
-
|
|
248
|
+
function ie() {
|
|
249
|
+
i("update", {
|
|
250
250
|
scale: w.value,
|
|
251
251
|
x: s.value,
|
|
252
|
-
y:
|
|
252
|
+
y: r.value,
|
|
253
253
|
current: Math.min(Math.max(100, a.value), d.value),
|
|
254
254
|
min: 100,
|
|
255
255
|
max: d.value,
|
|
256
256
|
resolve: (B, q) => {
|
|
257
|
-
const Q = C.value.clientWidth,
|
|
257
|
+
const Q = C.value.clientWidth, j = C.value.clientHeight, se = s.value / -w.value, K = r.value / -w.value, re = se + Q / w.value, J = K + j / w.value, _e = B / Q * (re - se) + se, xe = q / j * (J - K) + K;
|
|
258
258
|
return { x: _e, y: xe };
|
|
259
259
|
}
|
|
260
260
|
});
|
|
@@ -337,21 +337,21 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
337
337
|
);
|
|
338
338
|
}
|
|
339
339
|
});
|
|
340
|
-
const
|
|
340
|
+
const i = t, {
|
|
341
341
|
cdnFileResolver: a,
|
|
342
342
|
interiorId: s,
|
|
343
|
-
apartmentId:
|
|
343
|
+
apartmentId: r,
|
|
344
344
|
currentCameraId: f,
|
|
345
345
|
showStaticImage: g,
|
|
346
346
|
mouseSensitivity: h
|
|
347
|
-
} = we(
|
|
347
|
+
} = we(i), k = o, C = _(), F = _(f.value), w = _(0), d = _(0), v = _(!1);
|
|
348
348
|
Y(f, () => {
|
|
349
349
|
F.value = f.value;
|
|
350
|
-
}), Y([s,
|
|
350
|
+
}), Y([s, r], async () => {
|
|
351
351
|
C.value && await C.value.loadInterior(
|
|
352
352
|
(A) => pe(
|
|
353
353
|
a.value,
|
|
354
|
-
`/${s.value}/${
|
|
354
|
+
`/${s.value}/${r.value}${A}`
|
|
355
355
|
),
|
|
356
356
|
F.value,
|
|
357
357
|
!1
|
|
@@ -404,7 +404,7 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
404
404
|
const de = await new l.Main(
|
|
405
405
|
(H) => pe(
|
|
406
406
|
a.value,
|
|
407
|
-
`/${s.value}/${
|
|
407
|
+
`/${s.value}/${r.value}${H}`
|
|
408
408
|
),
|
|
409
409
|
"qpc",
|
|
410
410
|
G,
|
|
@@ -460,11 +460,11 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
460
460
|
])
|
|
461
461
|
]));
|
|
462
462
|
}
|
|
463
|
-
}), so = /* @__PURE__ */ te(lo, [["__scopeId", "data-v-9d31b948"]]), Ve = Symbol(),
|
|
463
|
+
}), so = /* @__PURE__ */ te(lo, [["__scopeId", "data-v-9d31b948"]]), Ve = Symbol(), io = {
|
|
464
464
|
style: { width: "24px", height: "24px" },
|
|
465
465
|
viewBox: "0 0 18 16",
|
|
466
466
|
xmlns: "http://www.w3.org/2000/svg"
|
|
467
|
-
},
|
|
467
|
+
}, ro = ["stroke"], uo = ["stroke"], co = { class: "floor-level-label" }, vo = /* @__PURE__ */ N({
|
|
468
468
|
__name: "VFloorLevel",
|
|
469
469
|
props: {
|
|
470
470
|
level: { default: 0 },
|
|
@@ -472,10 +472,10 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
472
472
|
},
|
|
473
473
|
emits: ["level"],
|
|
474
474
|
setup(t, { emit: n }) {
|
|
475
|
-
const o = t, l = n,
|
|
475
|
+
const o = t, l = n, i = Ae(Ve), a = D(() => {
|
|
476
476
|
const h = o.floorLevels;
|
|
477
477
|
return h.sort(), h;
|
|
478
|
-
}), s = D(() => a.value.indexOf(o.level) + 1 <= a.value.length / 2 ? "lower" : "upper"),
|
|
478
|
+
}), s = D(() => a.value.indexOf(o.level) + 1 <= a.value.length / 2 ? "lower" : "upper"), r = D(() => s.value === "lower"), f = D(() => s.value === "upper");
|
|
479
479
|
function g() {
|
|
480
480
|
const h = o.level + 1;
|
|
481
481
|
h >= a.value.length ? l("level", a.value[0]) : l("level", a.value[h]);
|
|
@@ -494,18 +494,18 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
494
494
|
icon: ""
|
|
495
495
|
}, w, { onClick: g }), {
|
|
496
496
|
default: m(() => [
|
|
497
|
-
(u(), L("svg",
|
|
497
|
+
(u(), L("svg", io, [
|
|
498
498
|
e("path", {
|
|
499
499
|
d: "M8.98034 10.3472L1.54055 5.8855L8.98034 1.42384L16.4201 5.8855L8.98034 10.3472Z",
|
|
500
500
|
fill: "white",
|
|
501
501
|
stroke: f.value ? "black" : "#999999",
|
|
502
502
|
"stroke-width": "1.5",
|
|
503
503
|
"stroke-linejoin": "round"
|
|
504
|
-
}, null, 8,
|
|
504
|
+
}, null, 8, ro),
|
|
505
505
|
e("path", {
|
|
506
506
|
d: "M8.98034 14.7993L1.54055 10.3376L8.98034 5.87599L16.4201 10.3376L8.98034 14.7993Z",
|
|
507
507
|
fill: "white",
|
|
508
|
-
stroke:
|
|
508
|
+
stroke: r.value ? "black" : "#999999",
|
|
509
509
|
"stroke-width": "1.5",
|
|
510
510
|
"stroke-linejoin": "round"
|
|
511
511
|
}, null, 8, uo)
|
|
@@ -515,7 +515,7 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
515
515
|
}, 1040)
|
|
516
516
|
]),
|
|
517
517
|
default: m(() => [
|
|
518
|
-
e("span", co, U(p(
|
|
518
|
+
e("span", co, U(p(i).getLabel(s.value)) + " " + U(p(i).getLabel("floor")), 1)
|
|
519
519
|
]),
|
|
520
520
|
_: 1
|
|
521
521
|
});
|
|
@@ -530,9 +530,9 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
530
530
|
},
|
|
531
531
|
emits: ["selectInterior"],
|
|
532
532
|
setup(t, { emit: n }) {
|
|
533
|
-
const o = t, l = n,
|
|
533
|
+
const o = t, l = n, i = Ae(Ve);
|
|
534
534
|
return (a, s) => {
|
|
535
|
-
const
|
|
535
|
+
const r = E("v-icon"), f = E("v-btn"), g = E("v-img"), h = E("v-menu");
|
|
536
536
|
return u(), L("div", null, [
|
|
537
537
|
y(h, {
|
|
538
538
|
transition: "slide-x-reverse-transition",
|
|
@@ -544,13 +544,13 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
544
544
|
activator: m(({ props: k }) => [
|
|
545
545
|
y(f, Le({ rounded: "" }, k, { class: "text-capitalize" }), {
|
|
546
546
|
default: m(() => [
|
|
547
|
-
y(
|
|
547
|
+
y(r, null, {
|
|
548
548
|
default: m(() => [
|
|
549
549
|
le("mdi-palette-outline")
|
|
550
550
|
]),
|
|
551
551
|
_: 1
|
|
552
552
|
}),
|
|
553
|
-
e("span", po, U(p(
|
|
553
|
+
e("span", po, U(p(i).getLabel("interior")), 1)
|
|
554
554
|
]),
|
|
555
555
|
_: 2
|
|
556
556
|
}, 1040)
|
|
@@ -574,7 +574,7 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
574
574
|
class: "pa-0 ma-0"
|
|
575
575
|
}, null, 8, ["src"])
|
|
576
576
|
]),
|
|
577
|
-
e("div", _o, U(p(
|
|
577
|
+
e("div", _o, U(p(i).get(k.title)), 1)
|
|
578
578
|
])
|
|
579
579
|
], 10, ho))), 128))
|
|
580
580
|
])
|
|
@@ -593,19 +593,19 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
593
593
|
const n = t, o = _(Co), l = _({
|
|
594
594
|
backgroundImage: `url(${ko})`,
|
|
595
595
|
backgroundSize: "contain"
|
|
596
|
-
}),
|
|
596
|
+
}), i = D(() => ({
|
|
597
597
|
transform: `rotate(${-n.rotation + 180}deg)`
|
|
598
598
|
}));
|
|
599
599
|
return (a, s) => {
|
|
600
|
-
const
|
|
600
|
+
const r = E("v-img");
|
|
601
601
|
return u(), L("div", {
|
|
602
602
|
style: ae(l.value),
|
|
603
603
|
class: "compass-wrapper"
|
|
604
604
|
}, [
|
|
605
|
-
y(
|
|
605
|
+
y(r, {
|
|
606
606
|
class: "compass-needle",
|
|
607
607
|
src: o.value,
|
|
608
|
-
style: ae(
|
|
608
|
+
style: ae(i.value)
|
|
609
609
|
}, null, 8, ["src", "style"])
|
|
610
610
|
], 4);
|
|
611
611
|
};
|
|
@@ -618,10 +618,10 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
618
618
|
},
|
|
619
619
|
setup(t) {
|
|
620
620
|
const n = t, o = D(() => [l(n.hours), ":", l(n.minutes)].join(""));
|
|
621
|
-
function l(
|
|
622
|
-
return ("0" +
|
|
621
|
+
function l(i) {
|
|
622
|
+
return ("0" + i).slice(-2);
|
|
623
623
|
}
|
|
624
|
-
return (
|
|
624
|
+
return (i, a) => {
|
|
625
625
|
const s = E("v-img");
|
|
626
626
|
return u(), L("div", xo, [
|
|
627
627
|
e("div", Io, [
|
|
@@ -654,11 +654,11 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
654
654
|
},
|
|
655
655
|
emits: ["toggle"],
|
|
656
656
|
setup(t, { emit: n }) {
|
|
657
|
-
const o = t, l = n,
|
|
657
|
+
const o = t, l = n, i = Ae(Ve), a = D(() => {
|
|
658
658
|
let s = "virtualTour";
|
|
659
659
|
return o.showStaticImage || (s = "slideShow"), s;
|
|
660
660
|
});
|
|
661
|
-
return (s,
|
|
661
|
+
return (s, r) => {
|
|
662
662
|
const f = E("v-icon"), g = E("v-btn"), h = E("v-tooltip");
|
|
663
663
|
return u(), O(h, { location: "top" }, {
|
|
664
664
|
activator: m(({ props: k }) => [
|
|
@@ -666,7 +666,7 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
666
666
|
density: "comfortable",
|
|
667
667
|
elevation: "1",
|
|
668
668
|
icon: "",
|
|
669
|
-
onClick:
|
|
669
|
+
onClick: r[0] || (r[0] = (C) => l("toggle"))
|
|
670
670
|
}, k), {
|
|
671
671
|
default: m(() => [
|
|
672
672
|
a.value === "virtualTour" ? (u(), L("svg", Fo, Oo)) : (u(), O(f, { key: 1 }, {
|
|
@@ -680,7 +680,7 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
680
680
|
}, 1040)
|
|
681
681
|
]),
|
|
682
682
|
default: m(() => [
|
|
683
|
-
e("span", null, U(p(
|
|
683
|
+
e("span", null, U(p(i).getLabel(a.value)), 1)
|
|
684
684
|
]),
|
|
685
685
|
_: 1
|
|
686
686
|
});
|
|
@@ -1210,11 +1210,11 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
1210
1210
|
"stroke-linejoin": "round"
|
|
1211
1211
|
})
|
|
1212
1212
|
])
|
|
1213
|
-
], -1)),
|
|
1213
|
+
], -1)), ia = { class: "text text-col text-center" }, ra = { class: "text-h6 text-capitalize" }, ua = { class: "mt-2" }, ca = { class: "d-flex justify-center align-center checkbox-container" }, da = { class: "text-caption" }, va = /* @__PURE__ */ N({
|
|
1214
1214
|
__name: "VTutorial",
|
|
1215
1215
|
emits: ["closeTutorial"],
|
|
1216
1216
|
setup(t, { emit: n }) {
|
|
1217
|
-
const o = n, l = Ae(Ve),
|
|
1217
|
+
const o = n, l = Ae(Ve), i = _(!1), a = _(!1), s = D(() => [
|
|
1218
1218
|
/Android/i,
|
|
1219
1219
|
/webOS/i,
|
|
1220
1220
|
/iPhone/i,
|
|
@@ -1223,8 +1223,8 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
1223
1223
|
/BlackBerry/i,
|
|
1224
1224
|
/Windows Phone/i
|
|
1225
1225
|
].some((g) => navigator.userAgent.match(g)));
|
|
1226
|
-
function
|
|
1227
|
-
o("closeTutorial",
|
|
1226
|
+
function r() {
|
|
1227
|
+
o("closeTutorial", i.value);
|
|
1228
1228
|
}
|
|
1229
1229
|
return (f, g) => {
|
|
1230
1230
|
const h = E("v-icon"), k = E("v-card-title"), C = E("v-btn"), F = E("v-divider"), w = E("v-card-text"), d = E("v-card-actions"), v = E("v-card"), S = E("v-expand-transition"), I = E("v-checkbox");
|
|
@@ -1299,7 +1299,7 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
1299
1299
|
]),
|
|
1300
1300
|
e("div", la, [
|
|
1301
1301
|
sa,
|
|
1302
|
-
e("div",
|
|
1302
|
+
e("div", ia, U(p(l).getLabel("useTwoFingersToZoom")), 1)
|
|
1303
1303
|
])
|
|
1304
1304
|
])) : V("", !0),
|
|
1305
1305
|
y(F, { class: "my-1" })
|
|
@@ -1317,7 +1317,7 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
1317
1317
|
default: m(() => [
|
|
1318
1318
|
y(w, { class: "pb-0" }, {
|
|
1319
1319
|
default: m(() => [
|
|
1320
|
-
e("p",
|
|
1320
|
+
e("p", ra, [
|
|
1321
1321
|
y(h, null, {
|
|
1322
1322
|
default: m(() => [
|
|
1323
1323
|
le("mdi-alert-outline")
|
|
@@ -1361,8 +1361,8 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
1361
1361
|
e("div", ca, [
|
|
1362
1362
|
y(I, {
|
|
1363
1363
|
density: "compact",
|
|
1364
|
-
modelValue:
|
|
1365
|
-
"onUpdate:modelValue": g[2] || (g[2] = (A) =>
|
|
1364
|
+
modelValue: i.value,
|
|
1365
|
+
"onUpdate:modelValue": g[2] || (g[2] = (A) => i.value = A),
|
|
1366
1366
|
"hide-details": ""
|
|
1367
1367
|
}, {
|
|
1368
1368
|
label: m(() => [
|
|
@@ -1375,7 +1375,7 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
1375
1375
|
default: m(() => [
|
|
1376
1376
|
y(C, {
|
|
1377
1377
|
variant: "tonal",
|
|
1378
|
-
onClick: g[3] || (g[3] = (A) =>
|
|
1378
|
+
onClick: g[3] || (g[3] = (A) => r()),
|
|
1379
1379
|
block: ""
|
|
1380
1380
|
}, {
|
|
1381
1381
|
default: m(() => [
|
|
@@ -1411,11 +1411,11 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
1411
1411
|
},
|
|
1412
1412
|
emits: ["updateSettings", "saveSettings"],
|
|
1413
1413
|
setup(t, { emit: n }) {
|
|
1414
|
-
const o = t, l = n,
|
|
1414
|
+
const o = t, l = n, i = _(
|
|
1415
1415
|
F(o.initialSettings)
|
|
1416
1416
|
);
|
|
1417
1417
|
Y(
|
|
1418
|
-
|
|
1418
|
+
i,
|
|
1419
1419
|
() => {
|
|
1420
1420
|
s();
|
|
1421
1421
|
},
|
|
@@ -1423,14 +1423,14 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
1423
1423
|
);
|
|
1424
1424
|
const a = D(() => {
|
|
1425
1425
|
let w = {};
|
|
1426
|
-
for (const [d, v] of Object.entries(
|
|
1426
|
+
for (const [d, v] of Object.entries(i.value))
|
|
1427
1427
|
d === "whitePoint" ? w[d] = h(v.value) : w[d] = v.value;
|
|
1428
1428
|
return w;
|
|
1429
1429
|
});
|
|
1430
1430
|
function s() {
|
|
1431
1431
|
l("updateSettings", a.value);
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1433
|
+
function r() {
|
|
1434
1434
|
const w = document.createElement("a");
|
|
1435
1435
|
w.href = URL.createObjectURL(
|
|
1436
1436
|
new Blob([JSON.stringify(a.value, null, 2)])
|
|
@@ -1442,7 +1442,7 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
1442
1442
|
l("saveSettings", a.value);
|
|
1443
1443
|
}
|
|
1444
1444
|
function g() {
|
|
1445
|
-
|
|
1445
|
+
i.value = F(), l("updateSettings", a.value);
|
|
1446
1446
|
}
|
|
1447
1447
|
function h(w) {
|
|
1448
1448
|
const d = parseInt(w.substr(1, 2), 16) / 255, v = parseInt(w.substr(3, 2), 16) / 255, S = parseInt(w.substr(5, 2), 16) / 255;
|
|
@@ -1556,14 +1556,14 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
1556
1556
|
return u(), L("div", fa, [
|
|
1557
1557
|
e("form", ha, [
|
|
1558
1558
|
e("div", ga, [
|
|
1559
|
-
(u(!0), L(ke, null, Ee(
|
|
1559
|
+
(u(!0), L(ke, null, Ee(i.value, ($, G, de) => (u(), L("div", {
|
|
1560
1560
|
key: de,
|
|
1561
1561
|
"d-block": ""
|
|
1562
1562
|
}, [
|
|
1563
1563
|
$.type === "slider" ? (u(), O(S, {
|
|
1564
1564
|
key: 0,
|
|
1565
|
-
modelValue:
|
|
1566
|
-
"onUpdate:modelValue": (H) =>
|
|
1565
|
+
modelValue: i.value[G].value,
|
|
1566
|
+
"onUpdate:modelValue": (H) => i.value[G].value = H,
|
|
1567
1567
|
onChange: s,
|
|
1568
1568
|
max: $.max,
|
|
1569
1569
|
min: $.min,
|
|
@@ -1575,8 +1575,8 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
1575
1575
|
append: m(() => [
|
|
1576
1576
|
e("div", null, [
|
|
1577
1577
|
y(v, {
|
|
1578
|
-
modelValue:
|
|
1579
|
-
"onUpdate:modelValue": (H) =>
|
|
1578
|
+
modelValue: i.value[G].value,
|
|
1579
|
+
"onUpdate:modelValue": (H) => i.value[G].value = H,
|
|
1580
1580
|
"hide-details": "",
|
|
1581
1581
|
dense: "",
|
|
1582
1582
|
outlined: "",
|
|
@@ -1593,8 +1593,8 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
1593
1593
|
}, 1032, ["modelValue", "onUpdate:modelValue", "max", "min", "step"])) : V("", !0),
|
|
1594
1594
|
$.type === "boolean" ? (u(), O(I, {
|
|
1595
1595
|
key: 1,
|
|
1596
|
-
modelValue:
|
|
1597
|
-
"onUpdate:modelValue": (H) =>
|
|
1596
|
+
modelValue: i.value[G].value,
|
|
1597
|
+
"onUpdate:modelValue": (H) => i.value[G].value = H,
|
|
1598
1598
|
onChange: s
|
|
1599
1599
|
}, {
|
|
1600
1600
|
prepend: m(() => [
|
|
@@ -1615,17 +1615,17 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
1615
1615
|
e("div", wa, U($.label), 1),
|
|
1616
1616
|
e("div", ka, [
|
|
1617
1617
|
Ke(e("input", {
|
|
1618
|
-
"onUpdate:modelValue": (H) =>
|
|
1618
|
+
"onUpdate:modelValue": (H) => i.value[G].value = H,
|
|
1619
1619
|
type: "color",
|
|
1620
1620
|
onChange: s
|
|
1621
1621
|
}, null, 40, Ca), [
|
|
1622
|
-
[Sn,
|
|
1622
|
+
[Sn, i.value[G].value]
|
|
1623
1623
|
])
|
|
1624
1624
|
]),
|
|
1625
1625
|
e("div", null, [
|
|
1626
1626
|
y(v, {
|
|
1627
|
-
modelValue:
|
|
1628
|
-
"onUpdate:modelValue": (H) =>
|
|
1627
|
+
modelValue: i.value[G].value,
|
|
1628
|
+
"onUpdate:modelValue": (H) => i.value[G].value = H,
|
|
1629
1629
|
"hide-details": "",
|
|
1630
1630
|
dense: "",
|
|
1631
1631
|
outlined: "",
|
|
@@ -1643,7 +1643,7 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
1643
1643
|
y(A, {
|
|
1644
1644
|
class: "ml-2",
|
|
1645
1645
|
"x-small": "",
|
|
1646
|
-
onClick: (H) =>
|
|
1646
|
+
onClick: (H) => i.value[G].value = null
|
|
1647
1647
|
}, {
|
|
1648
1648
|
default: m(() => [
|
|
1649
1649
|
le(" Clear Lut ")
|
|
@@ -1656,8 +1656,8 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
1656
1656
|
e("div", Ia, [
|
|
1657
1657
|
e("div", null, [
|
|
1658
1658
|
y(R, {
|
|
1659
|
-
modelValue:
|
|
1660
|
-
"onUpdate:modelValue": (H) =>
|
|
1659
|
+
modelValue: i.value[G].value,
|
|
1660
|
+
"onUpdate:modelValue": (H) => i.value[G].value = H,
|
|
1661
1661
|
items: $.items,
|
|
1662
1662
|
"item-title": "title",
|
|
1663
1663
|
"item-value": "value",
|
|
@@ -1672,8 +1672,8 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
1672
1672
|
e("div", Ea, [
|
|
1673
1673
|
e("div", null, [
|
|
1674
1674
|
y(v, {
|
|
1675
|
-
modelValue:
|
|
1676
|
-
"onUpdate:modelValue": (H) =>
|
|
1675
|
+
modelValue: i.value[G].value,
|
|
1676
|
+
"onUpdate:modelValue": (H) => i.value[G].value = H,
|
|
1677
1677
|
"hide-details": "",
|
|
1678
1678
|
dense: "",
|
|
1679
1679
|
type: "url",
|
|
@@ -1697,7 +1697,7 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
1697
1697
|
}),
|
|
1698
1698
|
y(A, {
|
|
1699
1699
|
class: "ml-2",
|
|
1700
|
-
onClick: d[1] || (d[1] = ($) =>
|
|
1700
|
+
onClick: d[1] || (d[1] = ($) => r())
|
|
1701
1701
|
}, {
|
|
1702
1702
|
default: m(() => [
|
|
1703
1703
|
le(" Download Json "),
|
|
@@ -1744,17 +1744,17 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
1744
1744
|
bodyWidth: o,
|
|
1745
1745
|
bodyHeight: l
|
|
1746
1746
|
}), Re(() => {
|
|
1747
|
-
a(document.getElementById("moveableDiv")),
|
|
1747
|
+
a(document.getElementById("moveableDiv")), i(document.querySelector("#moveableDiv"));
|
|
1748
1748
|
});
|
|
1749
|
-
const
|
|
1749
|
+
const i = (s) => {
|
|
1750
1750
|
new ResizeObserver(() => {
|
|
1751
1751
|
const f = document.getElementById("moveableBody");
|
|
1752
1752
|
f && (o.value = f.clientWidth, l.value = f.clientHeight);
|
|
1753
1753
|
}).observe(s);
|
|
1754
1754
|
}, a = (s) => {
|
|
1755
|
-
const
|
|
1756
|
-
for (let d = 0; d <
|
|
1757
|
-
const v =
|
|
1755
|
+
const r = document.getElementsByClassName("anchor");
|
|
1756
|
+
for (let d = 0; d < r.length; d++) {
|
|
1757
|
+
const v = r[d];
|
|
1758
1758
|
v.addEventListener("touchstart", C, { passive: !1 }), v.addEventListener("touchend", w, { passive: !1 }), v.addEventListener("mousedown", C, { passive: !1 }), v.addEventListener("mouseup", w, { passive: !1 });
|
|
1759
1759
|
}
|
|
1760
1760
|
let f = 0, g = 0, h = 0, k = 0;
|
|
@@ -1772,7 +1772,7 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
1772
1772
|
document.removeEventListener("mouseup", w, !1), document.removeEventListener("mousemove", F, !1), document.removeEventListener("touchend", w, !1), document.removeEventListener("touchmove", F, !1);
|
|
1773
1773
|
}
|
|
1774
1774
|
};
|
|
1775
|
-
return (s,
|
|
1775
|
+
return (s, r) => (u(), L("div", {
|
|
1776
1776
|
id: "moveableDiv",
|
|
1777
1777
|
class: ce([s.size, "sizer rounded"])
|
|
1778
1778
|
}, [
|
|
@@ -1827,7 +1827,7 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
1827
1827
|
fit: { type: Boolean }
|
|
1828
1828
|
},
|
|
1829
1829
|
setup(t) {
|
|
1830
|
-
const n = t, o = _(512), l = _(384),
|
|
1830
|
+
const n = t, o = _(512), l = _(384), i = _(512), a = _(384), s = _(new Je()), r = _(new Fn()), f = _({}), g = _(1), h = _(), k = o.value / o.value, C = D(() => {
|
|
1831
1831
|
const z = n.containerWidth / n.containerHeight;
|
|
1832
1832
|
let M;
|
|
1833
1833
|
return z > k ? M = n.containerHeight / l.value : M = n.containerWidth / o.value, M;
|
|
@@ -1836,14 +1836,14 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
1836
1836
|
n.storey.position.y,
|
|
1837
1837
|
n.storey.position.z
|
|
1838
1838
|
)), S = D(() => parseFloat(w.value.floor_vertical_position)), I = D(() => F.value.map((z) => {
|
|
1839
|
-
const M = z.uposition.split(","),
|
|
1839
|
+
const M = z.uposition.split(","), W = new Je(
|
|
1840
1840
|
Number(M[0]) - v.value.x,
|
|
1841
1841
|
0,
|
|
1842
1842
|
Number(M[2]) - v.value.z
|
|
1843
1843
|
);
|
|
1844
1844
|
return {
|
|
1845
1845
|
...z,
|
|
1846
|
-
...de(s.value,
|
|
1846
|
+
...de(s.value, W)
|
|
1847
1847
|
};
|
|
1848
1848
|
})), A = D(() => ({
|
|
1849
1849
|
backgroundImage: `url(${n.backgroundImage})`,
|
|
@@ -1864,8 +1864,8 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
1864
1864
|
return Vn.degToRad(z);
|
|
1865
1865
|
}
|
|
1866
1866
|
function $() {
|
|
1867
|
-
|
|
1868
|
-
transform: `rotateZ(${
|
|
1867
|
+
r.value.rotation.x = 180, r.value.rotation.y = n.storey.rotation.y * -1, f.value = {
|
|
1868
|
+
transform: `rotateZ(${r.value.rotation.y}deg) rotateX(${r.value.rotation.x}deg)`
|
|
1869
1869
|
};
|
|
1870
1870
|
}
|
|
1871
1871
|
function G(z) {
|
|
@@ -1875,26 +1875,26 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
1875
1875
|
};
|
|
1876
1876
|
}
|
|
1877
1877
|
function de(z, M) {
|
|
1878
|
-
var
|
|
1879
|
-
const me =
|
|
1878
|
+
var W = new Je();
|
|
1879
|
+
const me = W.subVectors(z, M);
|
|
1880
1880
|
return {
|
|
1881
1881
|
relativePosition: me,
|
|
1882
|
-
left: me.x /
|
|
1882
|
+
left: me.x / i.value * 100,
|
|
1883
1883
|
top: me.z / a.value * 100
|
|
1884
1884
|
};
|
|
1885
1885
|
}
|
|
1886
1886
|
function H() {
|
|
1887
1887
|
const z = n.storey.position.y - S.value;
|
|
1888
|
-
a.value = 2 * (z * Math.tan(Z(n.storey.fovY / 2))),
|
|
1889
|
-
const M = a.value / 2,
|
|
1888
|
+
a.value = 2 * (z * Math.tan(Z(n.storey.fovY / 2))), i.value = 512 / 384 * a.value;
|
|
1889
|
+
const M = a.value / 2, W = i.value / 2, me = new Je(W * -1, 0, M * -1);
|
|
1890
1890
|
s.value = me;
|
|
1891
1891
|
}
|
|
1892
1892
|
function ye() {
|
|
1893
1893
|
const z = document.getElementById("moveableDiv");
|
|
1894
1894
|
if (!z)
|
|
1895
1895
|
return;
|
|
1896
|
-
const M = z.offsetHeight / 384 * 0.8,
|
|
1897
|
-
z.offsetHeight > z.offsetWidth ? g.value =
|
|
1896
|
+
const M = z.offsetHeight / 384 * 0.8, W = z.offsetWidth / 512 * 0.8;
|
|
1897
|
+
z.offsetHeight > z.offsetWidth ? g.value = W * 0.5 : g.value = M * 0.9;
|
|
1898
1898
|
}
|
|
1899
1899
|
return (z, M) => (u(), L("div", Na, [
|
|
1900
1900
|
e("div", Qa, [
|
|
@@ -1910,29 +1910,29 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
1910
1910
|
class: "center-pivot",
|
|
1911
1911
|
style: ae(f.value)
|
|
1912
1912
|
}, [
|
|
1913
|
-
(u(!0), L(ke, null, Ee(I.value, (
|
|
1914
|
-
key:
|
|
1913
|
+
(u(!0), L(ke, null, Ee(I.value, (W) => (u(), L("div", {
|
|
1914
|
+
key: W.id
|
|
1915
1915
|
}, [
|
|
1916
|
-
w.value.floorLevel ===
|
|
1916
|
+
w.value.floorLevel === W.floorLevel ? (u(), L("div", {
|
|
1917
1917
|
key: 0,
|
|
1918
1918
|
class: "single-camera-marker",
|
|
1919
|
-
style: ae(G(
|
|
1919
|
+
style: ae(G(W))
|
|
1920
1920
|
}, null, 4)) : V("", !0),
|
|
1921
1921
|
ee(z.$slots, "default", {
|
|
1922
|
-
id:
|
|
1923
|
-
camera:
|
|
1924
|
-
active: w.value.id ===
|
|
1922
|
+
id: W.id,
|
|
1923
|
+
camera: W,
|
|
1924
|
+
active: w.value.id === W.id,
|
|
1925
1925
|
style: ae({
|
|
1926
|
-
...G(
|
|
1926
|
+
...G(W),
|
|
1927
1927
|
position: "absolute",
|
|
1928
1928
|
zIndex: "3"
|
|
1929
1929
|
})
|
|
1930
1930
|
}, () => [
|
|
1931
|
-
w.value.id ===
|
|
1931
|
+
w.value.id === W.id && n.rotation !== null ? (u(), O(Pa, {
|
|
1932
1932
|
key: 0,
|
|
1933
1933
|
class: "rotation-marker-component-base rotation-marker-component",
|
|
1934
1934
|
rotation: d.value,
|
|
1935
|
-
style: ae({ ...G(
|
|
1935
|
+
style: ae({ ...G(W) })
|
|
1936
1936
|
}, null, 8, ["rotation", "style"])) : V("", !0)
|
|
1937
1937
|
], !0)
|
|
1938
1938
|
]))), 128))
|
|
@@ -1950,7 +1950,7 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
1950
1950
|
},
|
|
1951
1951
|
setup(t) {
|
|
1952
1952
|
const n = t, o = D(() => n.rotation + n.transformAngle - 90);
|
|
1953
|
-
return (l,
|
|
1953
|
+
return (l, i) => (u(), L("div", {
|
|
1954
1954
|
class: "minimap-compass elevation-5",
|
|
1955
1955
|
style: ae({ scale: l.scale })
|
|
1956
1956
|
}, [
|
|
@@ -1973,26 +1973,26 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
1973
1973
|
},
|
|
1974
1974
|
emits: ["setBackgroundImage"],
|
|
1975
1975
|
setup(t, { emit: n }) {
|
|
1976
|
-
const o = t, l = n,
|
|
1977
|
-
if (g.value.sunsimFilesTimeStamps[
|
|
1978
|
-
const S = g.value.sunsimFilesTimeStamps[
|
|
1976
|
+
const o = t, l = n, i = _((/* @__PURE__ */ new Date()).getHours()), a = _(!0), s = _(!0), r = _(""), f = _(/* @__PURE__ */ new Map()), g = D(() => o.minimapJson.storeys[o.level]), h = D(() => `${Math.floor(i.value).toString().padStart(2, "0")}:00`), k = D(() => {
|
|
1977
|
+
if (g.value.sunsimFilesTimeStamps[i.value]) {
|
|
1978
|
+
const S = g.value.sunsimFilesTimeStamps[i.value].split(" ");
|
|
1979
1979
|
return `${S[0]} ${S[1]}`;
|
|
1980
1980
|
}
|
|
1981
1981
|
return "";
|
|
1982
1982
|
});
|
|
1983
1983
|
Re(async () => {
|
|
1984
|
-
|
|
1985
|
-
g.value.sunsimFiles[
|
|
1986
|
-
), l("setBackgroundImage",
|
|
1984
|
+
r.value = await w(
|
|
1985
|
+
g.value.sunsimFiles[i.value]
|
|
1986
|
+
), l("setBackgroundImage", r.value), s.value = !1;
|
|
1987
1987
|
const S = await F(o.minimapJson.storeys);
|
|
1988
|
-
f.value = S, a.value = !1, l("setBackgroundImage", C(o.level,
|
|
1989
|
-
}), Y(
|
|
1990
|
-
const S = C(o.level,
|
|
1988
|
+
f.value = S, a.value = !1, l("setBackgroundImage", C(o.level, i.value));
|
|
1989
|
+
}), Y(i, () => {
|
|
1990
|
+
const S = C(o.level, i.value);
|
|
1991
1991
|
l("setBackgroundImage", S);
|
|
1992
1992
|
}), Y(
|
|
1993
1993
|
() => o.level,
|
|
1994
1994
|
() => {
|
|
1995
|
-
l("setBackgroundImage", C(o.level,
|
|
1995
|
+
l("setBackgroundImage", C(o.level, i.value));
|
|
1996
1996
|
},
|
|
1997
1997
|
{ immediate: !0 }
|
|
1998
1998
|
);
|
|
@@ -2050,8 +2050,8 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
2050
2050
|
class: "mr-2"
|
|
2051
2051
|
})) : (u(), O(Z, {
|
|
2052
2052
|
key: 1,
|
|
2053
|
-
modelValue:
|
|
2054
|
-
"onUpdate:modelValue": I[0] || (I[0] = ($) =>
|
|
2053
|
+
modelValue: i.value,
|
|
2054
|
+
"onUpdate:modelValue": I[0] || (I[0] = ($) => i.value = $),
|
|
2055
2055
|
min: 0,
|
|
2056
2056
|
max: 23,
|
|
2057
2057
|
step: 1,
|
|
@@ -2097,16 +2097,16 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
2097
2097
|
},
|
|
2098
2098
|
emits: ["close"],
|
|
2099
2099
|
setup(t, { emit: n }) {
|
|
2100
|
-
const o = _(null), l = t,
|
|
2100
|
+
const o = _(null), l = t, i = n, a = _(), s = _(0), r = D(() => l.minimapJson.storeys[l.level]), f = _(0);
|
|
2101
2101
|
Y(
|
|
2102
2102
|
() => l.apartmentJson,
|
|
2103
2103
|
() => {
|
|
2104
2104
|
f.value = f.value + 1;
|
|
2105
2105
|
}
|
|
2106
2106
|
), Y(
|
|
2107
|
-
|
|
2107
|
+
r,
|
|
2108
2108
|
() => {
|
|
2109
|
-
a.value =
|
|
2109
|
+
a.value = r.value.defaultSunsimFile ? `/${l.apartmentJson.type}/${l.apartmentJson.id}/minimap/sunsim0_13.jpg` : `/${l.apartmentJson.type}/${l.apartmentJson.id}/minimap/${r.value.defaultSunsimFile}`;
|
|
2110
2110
|
},
|
|
2111
2111
|
{ immediate: !0, once: !0 }
|
|
2112
2112
|
);
|
|
@@ -2127,7 +2127,7 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
2127
2127
|
s.value = s.value + 90;
|
|
2128
2128
|
}
|
|
2129
2129
|
const d = () => {
|
|
2130
|
-
|
|
2130
|
+
i("close");
|
|
2131
2131
|
};
|
|
2132
2132
|
return (v, S) => {
|
|
2133
2133
|
const I = E("v-btn");
|
|
@@ -2169,7 +2169,7 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
2169
2169
|
body: m(() => [
|
|
2170
2170
|
y(zt, {
|
|
2171
2171
|
scale: g.value,
|
|
2172
|
-
rotation:
|
|
2172
|
+
rotation: r.value.rotation.y,
|
|
2173
2173
|
"transform-angle": s.value
|
|
2174
2174
|
}, null, 8, ["scale", "rotation", "transform-angle"]),
|
|
2175
2175
|
e("div", null, [
|
|
@@ -2179,7 +2179,7 @@ const Qn = { id: "player-wrapper" }, Zn = { id: "player-sizer" }, qn = {
|
|
|
2179
2179
|
"background-image": a.value,
|
|
2180
2180
|
rotation: v.rotation,
|
|
2181
2181
|
"current-camera": v.currentCamera,
|
|
2182
|
-
storey:
|
|
2182
|
+
storey: r.value,
|
|
2183
2183
|
containerWidth: o.value && o.value.bodyWidth || 512,
|
|
2184
2184
|
containerHeight: o.value && o.value.bodyHeight || 384
|
|
2185
2185
|
}, null, 8, ["transform-angle", "all-cameras", "background-image", "rotation", "current-camera", "storey", "containerWidth", "containerHeight"])
|
|
@@ -2204,7 +2204,7 @@ function dt(t) {
|
|
|
2204
2204
|
const n = t * 60, o = Math.floor(n / 60), l = n % 60;
|
|
2205
2205
|
return `${o.toString().padStart(2, "0")}:${l.toString().padStart(2, "0")}`;
|
|
2206
2206
|
}
|
|
2207
|
-
const
|
|
2207
|
+
const il = { class: "d-flex align-center" }, rl = { class: "d-block mr-1" }, ul = { class: "small" }, cl = { class: "small" }, dl = /* @__PURE__ */ N({
|
|
2208
2208
|
__name: "VSunsimSlider",
|
|
2209
2209
|
props: {
|
|
2210
2210
|
currentDay: {},
|
|
@@ -2213,24 +2213,24 @@ const rl = { class: "d-flex align-center" }, il = { class: "d-block mr-1" }, ul
|
|
|
2213
2213
|
},
|
|
2214
2214
|
emits: ["onTimeChange", "toggleSunStudy"],
|
|
2215
2215
|
setup(t, { emit: n }) {
|
|
2216
|
-
const o = t, { currentDay: l, currentTime:
|
|
2217
|
-
return Y(
|
|
2218
|
-
|
|
2216
|
+
const o = t, { currentDay: l, currentTime: i, disabled: a } = we(o), s = n, r = _(i.value.timeInHours);
|
|
2217
|
+
return Y(i, () => {
|
|
2218
|
+
r.value = i.value.timeInHours;
|
|
2219
2219
|
}), Y(
|
|
2220
|
-
|
|
2220
|
+
r,
|
|
2221
2221
|
() => {
|
|
2222
2222
|
s(
|
|
2223
2223
|
"onTimeChange",
|
|
2224
2224
|
l.value.timeSamples.find(
|
|
2225
|
-
(f) => f.timeInHours ===
|
|
2225
|
+
(f) => f.timeInHours === r.value
|
|
2226
2226
|
)
|
|
2227
2227
|
);
|
|
2228
2228
|
},
|
|
2229
2229
|
{ immediate: !0 }
|
|
2230
2230
|
), (f, g) => {
|
|
2231
2231
|
const h = E("v-icon"), k = E("v-slider"), C = E("v-field"), F = E("v-btn");
|
|
2232
|
-
return u(), L("div",
|
|
2233
|
-
e("div",
|
|
2232
|
+
return u(), L("div", il, [
|
|
2233
|
+
e("div", rl, [
|
|
2234
2234
|
y(C, {
|
|
2235
2235
|
class: "ss-slider-field",
|
|
2236
2236
|
style: {},
|
|
@@ -2242,8 +2242,8 @@ const rl = { class: "d-flex align-center" }, il = { class: "d-block mr-1" }, ul
|
|
|
2242
2242
|
p(l).timeSamples.length > 1 ? (u(), O(k, {
|
|
2243
2243
|
key: 0,
|
|
2244
2244
|
class: "pa-2 pr-2",
|
|
2245
|
-
modelValue:
|
|
2246
|
-
"onUpdate:modelValue": g[0] || (g[0] = (w) =>
|
|
2245
|
+
modelValue: r.value,
|
|
2246
|
+
"onUpdate:modelValue": g[0] || (g[0] = (w) => r.value = w),
|
|
2247
2247
|
min: p(l).startTime,
|
|
2248
2248
|
max: p(l).endTime,
|
|
2249
2249
|
step: p(l).interval,
|
|
@@ -2264,7 +2264,7 @@ const rl = { class: "d-flex align-center" }, il = { class: "d-block mr-1" }, ul
|
|
|
2264
2264
|
]),
|
|
2265
2265
|
_: 1
|
|
2266
2266
|
}),
|
|
2267
|
-
e("span", ul, U(p(dt)(
|
|
2267
|
+
e("span", ul, U(p(dt)(r.value)), 1)
|
|
2268
2268
|
]),
|
|
2269
2269
|
_: 1
|
|
2270
2270
|
}, 8, ["modelValue", "min", "max", "step", "disabled"])) : (u(), L(ke, { key: 1 }, [
|
|
@@ -2278,7 +2278,7 @@ const rl = { class: "d-flex align-center" }, il = { class: "d-block mr-1" }, ul
|
|
|
2278
2278
|
]),
|
|
2279
2279
|
_: 1
|
|
2280
2280
|
}),
|
|
2281
|
-
e("span", cl, U(p(dt)(
|
|
2281
|
+
e("span", cl, U(p(dt)(r.value)), 1)
|
|
2282
2282
|
], 64))
|
|
2283
2283
|
]),
|
|
2284
2284
|
_: 1
|
|
@@ -2304,15 +2304,15 @@ const rl = { class: "d-flex align-center" }, il = { class: "d-block mr-1" }, ul
|
|
|
2304
2304
|
emits: ["toggleSunStudy"],
|
|
2305
2305
|
setup(t, { emit: n }) {
|
|
2306
2306
|
const o = n, l = Ae(Ve);
|
|
2307
|
-
return (
|
|
2307
|
+
return (i, a) => {
|
|
2308
2308
|
const s = E("v-btn");
|
|
2309
|
-
return !
|
|
2309
|
+
return !i.displaySunsim && i.showUI ? (u(), O(s, {
|
|
2310
2310
|
key: 0,
|
|
2311
2311
|
size: "small",
|
|
2312
2312
|
varient: "tonal",
|
|
2313
2313
|
prependIcon: "mdi-white-balance-sunny",
|
|
2314
2314
|
class: "sun-study-toggle text-capitalize rounded-xl",
|
|
2315
|
-
onClick: a[0] || (a[0] = (
|
|
2315
|
+
onClick: a[0] || (a[0] = (r) => o("toggleSunStudy"))
|
|
2316
2316
|
}, {
|
|
2317
2317
|
default: m(() => [
|
|
2318
2318
|
le(U(p(l).getLabel("openSunStudy")), 1)
|
|
@@ -2331,16 +2331,16 @@ const rl = { class: "d-flex align-center" }, il = { class: "d-block mr-1" }, ul
|
|
|
2331
2331
|
const o = n, l = D(() => /Android|webOS|iPhone|iPad|BlackBerry|Windows Phone|Opera Mini|IEMobile|Mobile/i.test(
|
|
2332
2332
|
window.navigator.userAgent
|
|
2333
2333
|
));
|
|
2334
|
-
return (
|
|
2335
|
-
const s = E("v-icon"),
|
|
2336
|
-
return u(), O(
|
|
2334
|
+
return (i, a) => {
|
|
2335
|
+
const s = E("v-icon"), r = E("v-btn");
|
|
2336
|
+
return u(), O(r, {
|
|
2337
2337
|
size: "x-small",
|
|
2338
2338
|
class: ce(["autoplay-btn", { mobile: l.value, "mt-1": l.value, "mx-1": l.value }]),
|
|
2339
2339
|
onClick: a[0] || (a[0] = (f) => o("toggleAutoPlay"))
|
|
2340
2340
|
}, {
|
|
2341
2341
|
default: m(() => [
|
|
2342
2342
|
y(s, {
|
|
2343
|
-
icon:
|
|
2343
|
+
icon: i.autoplayStatus ? "mdi-pause" : "mdi-play",
|
|
2344
2344
|
size: "x-large",
|
|
2345
2345
|
class: "pa-0 ma-0"
|
|
2346
2346
|
}, null, 8, ["icon"])
|
|
@@ -2361,22 +2361,22 @@ const rl = { class: "d-flex align-center" }, il = { class: "d-block mr-1" }, ul
|
|
|
2361
2361
|
},
|
|
2362
2362
|
emits: ["previous", "next", "goto"],
|
|
2363
2363
|
setup(t, { emit: n }) {
|
|
2364
|
-
const o = t, l = n,
|
|
2364
|
+
const o = t, l = n, i = _(0), a = D({
|
|
2365
2365
|
get() {
|
|
2366
2366
|
return o.active;
|
|
2367
2367
|
},
|
|
2368
2368
|
set(g) {
|
|
2369
|
-
|
|
2369
|
+
i.value = g;
|
|
2370
2370
|
}
|
|
2371
2371
|
}), s = D(() => /Android|webOS|iPhone|iPad|BlackBerry|Windows Phone|Opera Mini|IEMobile|Mobile/i.test(
|
|
2372
2372
|
window.navigator.userAgent
|
|
2373
2373
|
));
|
|
2374
2374
|
Re(() => {
|
|
2375
|
-
window.addEventListener("keydown",
|
|
2375
|
+
window.addEventListener("keydown", r);
|
|
2376
2376
|
}), et(() => {
|
|
2377
|
-
window.removeEventListener("keydown",
|
|
2377
|
+
window.removeEventListener("keydown", r);
|
|
2378
2378
|
});
|
|
2379
|
-
function
|
|
2379
|
+
function r(g) {
|
|
2380
2380
|
switch (g.keyCode) {
|
|
2381
2381
|
case g.keyCode === fl:
|
|
2382
2382
|
l("previous");
|
|
@@ -2479,7 +2479,7 @@ const rl = { class: "d-flex align-center" }, il = { class: "d-block mr-1" }, ul
|
|
|
2479
2479
|
__name: "VSocialShare",
|
|
2480
2480
|
setup(t) {
|
|
2481
2481
|
const n = Ae(Ve), o = _(!1), l = _(location.href);
|
|
2482
|
-
function
|
|
2482
|
+
function i() {
|
|
2483
2483
|
return window.open(
|
|
2484
2484
|
"https://www.facebook.com/sharer/sharer.php?u=" + encodeURIComponent(location.href),
|
|
2485
2485
|
"facebook-share-dialog",
|
|
@@ -2500,7 +2500,7 @@ const rl = { class: "d-flex align-center" }, il = { class: "d-block mr-1" }, ul
|
|
|
2500
2500
|
"width=626,height=736"
|
|
2501
2501
|
), !1;
|
|
2502
2502
|
}
|
|
2503
|
-
function
|
|
2503
|
+
function r() {
|
|
2504
2504
|
navigator.clipboard.writeText(location.href);
|
|
2505
2505
|
}
|
|
2506
2506
|
return (f, g) => {
|
|
@@ -2560,7 +2560,7 @@ const rl = { class: "d-flex align-center" }, il = { class: "d-block mr-1" }, ul
|
|
|
2560
2560
|
fab: "",
|
|
2561
2561
|
light: "",
|
|
2562
2562
|
icon: "mdi-facebook"
|
|
2563
|
-
}, I, { onClick:
|
|
2563
|
+
}, I, { onClick: i }), null, 16)
|
|
2564
2564
|
]),
|
|
2565
2565
|
default: m(() => [
|
|
2566
2566
|
e("span", null, U(p(n).getLabel("shareToFacebook")), 1)
|
|
@@ -2618,7 +2618,7 @@ const rl = { class: "d-flex align-center" }, il = { class: "d-block mr-1" }, ul
|
|
|
2618
2618
|
fab: "",
|
|
2619
2619
|
light: "",
|
|
2620
2620
|
icon: "mdi-content-copy",
|
|
2621
|
-
onClick:
|
|
2621
|
+
onClick: r
|
|
2622
2622
|
}, I), null, 16)
|
|
2623
2623
|
]),
|
|
2624
2624
|
default: m(() => [
|
|
@@ -2648,7 +2648,7 @@ const rl = { class: "d-flex align-center" }, il = { class: "d-block mr-1" }, ul
|
|
|
2648
2648
|
},
|
|
2649
2649
|
setup(t) {
|
|
2650
2650
|
const n = t, o = D(() => ({ "background-image": `url("${encodeURI(n.image)}")` }));
|
|
2651
|
-
return (l,
|
|
2651
|
+
return (l, i) => (u(), L("div", bl, [
|
|
2652
2652
|
e("div", {
|
|
2653
2653
|
class: ce(["img-div", [l.aspectRatio]]),
|
|
2654
2654
|
style: ae(o.value)
|
|
@@ -2666,14 +2666,14 @@ const rl = { class: "d-flex align-center" }, il = { class: "d-block mr-1" }, ul
|
|
|
2666
2666
|
emits: ["toggleFullscreen"],
|
|
2667
2667
|
setup(t, { emit: n }) {
|
|
2668
2668
|
const o = n;
|
|
2669
|
-
return (l,
|
|
2669
|
+
return (l, i) => {
|
|
2670
2670
|
const a = E("v-btn");
|
|
2671
2671
|
return u(), L("div", Cl, [
|
|
2672
2672
|
y(a, {
|
|
2673
2673
|
density: "comfortable",
|
|
2674
2674
|
elevation: "3",
|
|
2675
2675
|
icon: l.isFullScreen ? "mdi-fullscreen-exit" : "mdi-fullscreen",
|
|
2676
|
-
onClick:
|
|
2676
|
+
onClick: i[0] || (i[0] = (s) => o("toggleFullscreen"))
|
|
2677
2677
|
}, null, 8, ["icon"])
|
|
2678
2678
|
]);
|
|
2679
2679
|
};
|
|
@@ -2772,14 +2772,14 @@ const xl = {
|
|
|
2772
2772
|
emits: ["onSnapshot"],
|
|
2773
2773
|
setup(t, { emit: n }) {
|
|
2774
2774
|
const o = n;
|
|
2775
|
-
return (l,
|
|
2775
|
+
return (l, i) => {
|
|
2776
2776
|
const a = E("v-btn");
|
|
2777
2777
|
return u(), L("div", xl, [
|
|
2778
2778
|
y(a, {
|
|
2779
2779
|
density: "comfortable",
|
|
2780
2780
|
elevation: "3",
|
|
2781
2781
|
icon: "mdi-creation",
|
|
2782
|
-
onClick:
|
|
2782
|
+
onClick: i[0] || (i[0] = (s) => o("onSnapshot"))
|
|
2783
2783
|
})
|
|
2784
2784
|
]);
|
|
2785
2785
|
};
|
|
@@ -2850,13 +2850,13 @@ const xl = {
|
|
|
2850
2850
|
enableAutoplay: { type: Boolean, default: !1 },
|
|
2851
2851
|
showVisuadoCreateButton: { type: Boolean, default: !1 }
|
|
2852
2852
|
},
|
|
2853
|
-
emits: ["onSnapshot", "onVisuadoCreateButtonClicked", "saveSettings", "onInteriorUpdate", "onCameraUpdate", "onSunsimUpdate", "onError", "onFrontendMarkersUpdate"],
|
|
2853
|
+
emits: ["onSnapshot", "onVisuadoCreateButtonClicked", "saveSettings", "onInteriorUpdate", "onCameraUpdate", "onSunsimUpdate", "onError", "onFrontendMarkersUpdate", "onInitialized"],
|
|
2854
2854
|
setup(t, { expose: n, emit: o }) {
|
|
2855
2855
|
const l = t, {
|
|
2856
|
-
cdnFileResolver:
|
|
2856
|
+
cdnFileResolver: i,
|
|
2857
2857
|
apartmentId: a,
|
|
2858
2858
|
defaultInteriorId: s,
|
|
2859
|
-
validInteriorIds:
|
|
2859
|
+
validInteriorIds: r,
|
|
2860
2860
|
displayViewModeSwitch: f,
|
|
2861
2861
|
// websiteUrl,
|
|
2862
2862
|
i18nConfig: g,
|
|
@@ -2893,7 +2893,7 @@ const xl = {
|
|
|
2893
2893
|
setFrontendMarkers: cn,
|
|
2894
2894
|
clearCurrentMarkerLayer: vn
|
|
2895
2895
|
});
|
|
2896
|
-
const
|
|
2896
|
+
const W = _(!1), me = _(!1), Ce = _(!1), ie = _(), B = _(), q = _(), Q = _(), j = _(), se = _(0), K = _(), re = _(), J = _(), _e = _(0), xe = _(0), De = _(0), fe = _(!1), he = _(!1), Be = _(), be = _(!1), ue = _(!1), Me = _(
|
|
2897
2897
|
new Nt(document, "player-wrapper")
|
|
2898
2898
|
), ft = _(), tt = D(() => {
|
|
2899
2899
|
if (B.value) {
|
|
@@ -2922,23 +2922,23 @@ const xl = {
|
|
|
2922
2922
|
(c) => c.archetypeID === K.value
|
|
2923
2923
|
)), ge = D(() => q.value ? q.value.cameras.map((c) => ({
|
|
2924
2924
|
...c,
|
|
2925
|
-
thumbnailUrl:
|
|
2925
|
+
thumbnailUrl: it(
|
|
2926
2926
|
`/${K.value}/${a.value}/thumbs/200/${c.id}.jpg`
|
|
2927
2927
|
),
|
|
2928
|
-
imageUrl:
|
|
2928
|
+
imageUrl: it(
|
|
2929
2929
|
`/${K.value}/${a.value}/images/1600/${c.id}.jpg`
|
|
2930
2930
|
)
|
|
2931
2931
|
})) : []), Oe = D(() => !ge.value || !ge.value[se.value] ? "" : ge.value[se.value].imageUrl), ot = D(() => {
|
|
2932
2932
|
let c = [];
|
|
2933
|
-
return
|
|
2934
|
-
(x) =>
|
|
2933
|
+
return ie.value && (c = ie.value.archetypes), r.value.length ? c.filter(
|
|
2934
|
+
(x) => r.value.includes(x.archetypeID)
|
|
2935
2935
|
) : c;
|
|
2936
2936
|
}), at = D(() => q.value ? ot.value.map((c) => {
|
|
2937
2937
|
var P;
|
|
2938
2938
|
const x = (P = ge.value[se.value]) == null ? void 0 : P.id;
|
|
2939
2939
|
return {
|
|
2940
2940
|
...c,
|
|
2941
|
-
url:
|
|
2941
|
+
url: it(
|
|
2942
2942
|
`/${c.archetypeID}/${a.value}/thumbs/200/${x}.jpg`
|
|
2943
2943
|
)
|
|
2944
2944
|
};
|
|
@@ -2957,7 +2957,7 @@ const xl = {
|
|
|
2957
2957
|
window.navigator.userAgent
|
|
2958
2958
|
)), ne = D(() => oe.value ? "platform-mobile" : "platform-desktop"), Se = D(() => {
|
|
2959
2959
|
const c = pe(
|
|
2960
|
-
|
|
2960
|
+
i.value,
|
|
2961
2961
|
"/config.json"
|
|
2962
2962
|
);
|
|
2963
2963
|
return localStorage.getItem(
|
|
@@ -2967,10 +2967,10 @@ const xl = {
|
|
|
2967
2967
|
Y(s, () => {
|
|
2968
2968
|
s.value && (K.value = s.value);
|
|
2969
2969
|
}), Y(
|
|
2970
|
-
[
|
|
2970
|
+
[i, a],
|
|
2971
2971
|
async () => {
|
|
2972
2972
|
try {
|
|
2973
|
-
|
|
2973
|
+
re.value = void 0, await Qt(), qt(), await Zt(), Me.value.setup(), Jt();
|
|
2974
2974
|
} catch (c) {
|
|
2975
2975
|
Ce.value = !0, M("onError", c);
|
|
2976
2976
|
}
|
|
@@ -2990,11 +2990,11 @@ const xl = {
|
|
|
2990
2990
|
(x) => x.timeInHours === c[0].defaultHour
|
|
2991
2991
|
);
|
|
2992
2992
|
} else
|
|
2993
|
-
ue.value = !0,
|
|
2993
|
+
ue.value = !0, j.value.unloadSunSim();
|
|
2994
2994
|
}), Re(async () => {
|
|
2995
2995
|
try {
|
|
2996
|
-
Se.value ? (
|
|
2997
|
-
|
|
2996
|
+
Se.value ? (W.value = !1, ue.value = !0) : setTimeout(() => {
|
|
2997
|
+
W.value = !0;
|
|
2998
2998
|
}, 1e3);
|
|
2999
2999
|
} catch (c) {
|
|
3000
3000
|
Ce.value = !0, M("onError", c);
|
|
@@ -3003,29 +3003,29 @@ const xl = {
|
|
|
3003
3003
|
document.removeEventListener("wheel", ht);
|
|
3004
3004
|
});
|
|
3005
3005
|
function qe(c = !1) {
|
|
3006
|
-
ue.value = !0,
|
|
3006
|
+
ue.value = !0, W.value = !1, c && Ie();
|
|
3007
3007
|
}
|
|
3008
3008
|
function Ie() {
|
|
3009
3009
|
const c = pe(
|
|
3010
|
-
|
|
3010
|
+
i.value,
|
|
3011
3011
|
"/config.json"
|
|
3012
3012
|
);
|
|
3013
3013
|
localStorage.setItem(`${c}-dont-show-tutorial`, "true");
|
|
3014
3014
|
}
|
|
3015
3015
|
async function Qt() {
|
|
3016
|
-
|
|
3016
|
+
ie.value = await Gt();
|
|
3017
3017
|
}
|
|
3018
3018
|
async function Zt() {
|
|
3019
3019
|
var c;
|
|
3020
3020
|
if (B.value = await kt(
|
|
3021
3021
|
K.value,
|
|
3022
3022
|
a.value
|
|
3023
|
-
), B.value && (
|
|
3023
|
+
), B.value && (re.value = (c = B.value.cameras[0]) == null ? void 0 : c.id), q.value = await Ct(
|
|
3024
3024
|
K.value,
|
|
3025
3025
|
a.value
|
|
3026
3026
|
), q.value) {
|
|
3027
3027
|
const x = A.value !== null ? A.value : 0;
|
|
3028
|
-
se.value = x,
|
|
3028
|
+
se.value = x, re.value = q.value.cameras[x].id, J.value = q.value.cameras[x].id;
|
|
3029
3029
|
}
|
|
3030
3030
|
S.value && (Q.value = await St(
|
|
3031
3031
|
K.value,
|
|
@@ -3034,7 +3034,7 @@ const xl = {
|
|
|
3034
3034
|
}
|
|
3035
3035
|
function qt() {
|
|
3036
3036
|
let c = s.value;
|
|
3037
|
-
c || (c =
|
|
3037
|
+
c || (c = ie.value.defaultArchetypeID), r.value && r.value.length > 0 && !r.value.includes(c) ? c = r.value[0] : console.warn("illegal interior id", c, r), c || (c = ie.value.archetypes[0].archetypeID), K.value = c;
|
|
3038
3038
|
}
|
|
3039
3039
|
function Jt() {
|
|
3040
3040
|
const c = document.getElementById("main-canvas");
|
|
@@ -3063,11 +3063,11 @@ const xl = {
|
|
|
3063
3063
|
}
|
|
3064
3064
|
async function Gt() {
|
|
3065
3065
|
try {
|
|
3066
|
-
return await
|
|
3066
|
+
return await rt("/config.json");
|
|
3067
3067
|
} catch (c) {
|
|
3068
3068
|
console.error(
|
|
3069
3069
|
"Error loading config.json - ",
|
|
3070
|
-
pe(
|
|
3070
|
+
pe(i.value, "/config.json"),
|
|
3071
3071
|
c
|
|
3072
3072
|
);
|
|
3073
3073
|
return;
|
|
@@ -3075,7 +3075,7 @@ const xl = {
|
|
|
3075
3075
|
}
|
|
3076
3076
|
async function kt(c, x) {
|
|
3077
3077
|
try {
|
|
3078
|
-
return await
|
|
3078
|
+
return await rt(
|
|
3079
3079
|
`/${c}/${x}/apartment.json`
|
|
3080
3080
|
);
|
|
3081
3081
|
} catch (P) {
|
|
@@ -3089,7 +3089,7 @@ const xl = {
|
|
|
3089
3089
|
}
|
|
3090
3090
|
async function Ct(c, x) {
|
|
3091
3091
|
try {
|
|
3092
|
-
return await
|
|
3092
|
+
return await rt(
|
|
3093
3093
|
`/${c}/${x}/thumbs.json`
|
|
3094
3094
|
);
|
|
3095
3095
|
} catch {
|
|
@@ -3102,7 +3102,7 @@ const xl = {
|
|
|
3102
3102
|
}
|
|
3103
3103
|
async function St(c, x) {
|
|
3104
3104
|
try {
|
|
3105
|
-
return await
|
|
3105
|
+
return await rt(
|
|
3106
3106
|
`/${c}/${x}/minimap/minimap.json`
|
|
3107
3107
|
);
|
|
3108
3108
|
} catch {
|
|
@@ -3114,16 +3114,16 @@ const xl = {
|
|
|
3114
3114
|
}
|
|
3115
3115
|
}
|
|
3116
3116
|
function Kt() {
|
|
3117
|
-
return
|
|
3117
|
+
return j.value.getCameraRotation();
|
|
3118
3118
|
}
|
|
3119
3119
|
function Xt(c) {
|
|
3120
|
-
return
|
|
3120
|
+
return j.value.setCameraRotation(c);
|
|
3121
3121
|
}
|
|
3122
3122
|
function en() {
|
|
3123
|
-
return
|
|
3123
|
+
return j.value.getCameraFov();
|
|
3124
3124
|
}
|
|
3125
3125
|
function tn(c) {
|
|
3126
|
-
return
|
|
3126
|
+
return j.value.setCameraFov(c);
|
|
3127
3127
|
}
|
|
3128
3128
|
function lt() {
|
|
3129
3129
|
let c = se.value + 1;
|
|
@@ -3138,7 +3138,7 @@ const xl = {
|
|
|
3138
3138
|
P != -1 && (se.value = P, x && st(c));
|
|
3139
3139
|
}
|
|
3140
3140
|
function st(c) {
|
|
3141
|
-
be.value = !1,
|
|
3141
|
+
be.value = !1, re.value = c;
|
|
3142
3142
|
}
|
|
3143
3143
|
function At(c) {
|
|
3144
3144
|
K.value = c, nn(), M("onInteriorUpdate", c), M("onCameraUpdate", J.value, B.value);
|
|
@@ -3169,7 +3169,7 @@ const xl = {
|
|
|
3169
3169
|
M("onSunsimUpdate", c);
|
|
3170
3170
|
}
|
|
3171
3171
|
function xt(c) {
|
|
3172
|
-
|
|
3172
|
+
j.value.loadSunSim(c.timeInHours);
|
|
3173
3173
|
}
|
|
3174
3174
|
function ln(c) {
|
|
3175
3175
|
_e.value = c;
|
|
@@ -3186,23 +3186,23 @@ const xl = {
|
|
|
3186
3186
|
M("onFrontendMarkersUpdate", c);
|
|
3187
3187
|
}
|
|
3188
3188
|
function cn(c) {
|
|
3189
|
-
if (!
|
|
3189
|
+
if (!j.value) {
|
|
3190
3190
|
console.warn("Player API is not initialized, cannot set frontend markers.");
|
|
3191
3191
|
return;
|
|
3192
3192
|
}
|
|
3193
|
-
|
|
3193
|
+
j.value.updateFrontendMarkers(c);
|
|
3194
3194
|
}
|
|
3195
3195
|
function dn(c) {
|
|
3196
|
-
|
|
3196
|
+
j.value = c, j.value && (G.value && j.value.updateSettings(G.value), de.value ? j.value.loadMarkersJson() : H.value && j.value.loadDynamicMarkers(H.value), M("onInitialized", j.value));
|
|
3197
3197
|
}
|
|
3198
3198
|
function vn() {
|
|
3199
|
-
|
|
3199
|
+
j.value.clearCurrentMarkerLayer();
|
|
3200
3200
|
}
|
|
3201
3201
|
function mn(c) {
|
|
3202
|
-
|
|
3202
|
+
j.value.loadDynamicMarkers(c);
|
|
3203
3203
|
}
|
|
3204
3204
|
function pn(c) {
|
|
3205
|
-
return
|
|
3205
|
+
return j.value.screenToWorld(c);
|
|
3206
3206
|
}
|
|
3207
3207
|
function fn() {
|
|
3208
3208
|
Me.value.toggle(), window.scrollTo({ top: 150, behavior: "smooth" });
|
|
@@ -3211,7 +3211,7 @@ const xl = {
|
|
|
3211
3211
|
fe.value = !fe.value;
|
|
3212
3212
|
}
|
|
3213
3213
|
async function Lt() {
|
|
3214
|
-
const c = 180 / Math.PI, x = await
|
|
3214
|
+
const c = 180 / Math.PI, x = await j.value.takePhoto(), P = j.value.getRotationEuler(), ve = j.value.getCurrentCamera(), We = new Ot(x, ve), wn = [
|
|
3215
3215
|
P.x * -c,
|
|
3216
3216
|
P.y * -c,
|
|
3217
3217
|
P.z * c
|
|
@@ -3220,15 +3220,15 @@ const xl = {
|
|
|
3220
3220
|
}
|
|
3221
3221
|
async function gn() {
|
|
3222
3222
|
console.log("Here onVisuadoCreateButtonClicked");
|
|
3223
|
-
const c = await
|
|
3223
|
+
const c = await j.value.takePhoto(), x = j.value.getCurrentCamera(), P = new Ot(c, x);
|
|
3224
3224
|
M("onVisuadoCreateButtonClicked", P);
|
|
3225
3225
|
}
|
|
3226
|
-
function
|
|
3227
|
-
let x = pe(
|
|
3226
|
+
function it(c) {
|
|
3227
|
+
let x = pe(i.value, c);
|
|
3228
3228
|
return x && $.value && !x.startsWith("blob:") && (x = x + `?v=${Date.now()}`), x;
|
|
3229
3229
|
}
|
|
3230
|
-
async function
|
|
3231
|
-
const x =
|
|
3230
|
+
async function rt(c) {
|
|
3231
|
+
const x = it(c);
|
|
3232
3232
|
try {
|
|
3233
3233
|
return (await ct.get(x)).data;
|
|
3234
3234
|
} catch (P) {
|
|
@@ -3236,7 +3236,7 @@ const xl = {
|
|
|
3236
3236
|
}
|
|
3237
3237
|
}
|
|
3238
3238
|
function yn(c) {
|
|
3239
|
-
|
|
3239
|
+
j.value.updateSettings(c);
|
|
3240
3240
|
}
|
|
3241
3241
|
function _n(c) {
|
|
3242
3242
|
M("saveSettings", c);
|
|
@@ -3250,11 +3250,11 @@ const xl = {
|
|
|
3250
3250
|
const Te = _(!1), Et = _(null), _t = _(1);
|
|
3251
3251
|
function Mt() {
|
|
3252
3252
|
if (Te.value) {
|
|
3253
|
-
clearInterval(Et.value), Te.value = !1,
|
|
3253
|
+
clearInterval(Et.value), Te.value = !1, j.value.toggleAutoRotate();
|
|
3254
3254
|
return;
|
|
3255
3255
|
}
|
|
3256
|
-
Te.value = !0,
|
|
3257
|
-
_t.value = 1 * _t.value,
|
|
3256
|
+
Te.value = !0, j.value.toggleAutoRotate(), Et.value = setInterval(() => {
|
|
3257
|
+
_t.value = 1 * _t.value, j.value.setAutoRotateSpeed(_t.value), lt();
|
|
3258
3258
|
}, 5e3);
|
|
3259
3259
|
}
|
|
3260
3260
|
return (c, x) => {
|
|
@@ -3266,7 +3266,7 @@ const xl = {
|
|
|
3266
3266
|
e("div", El, [
|
|
3267
3267
|
!Me.value.isActive && Q.value && J.value && b.value && K.value && he.value ? (u(), O(Vt, {
|
|
3268
3268
|
key: 0,
|
|
3269
|
-
"cdn-file-resolver": p(
|
|
3269
|
+
"cdn-file-resolver": p(i),
|
|
3270
3270
|
"apartment-json": B.value,
|
|
3271
3271
|
level: He.value,
|
|
3272
3272
|
"minimap-json": Q.value,
|
|
@@ -3274,17 +3274,17 @@ const xl = {
|
|
|
3274
3274
|
"current-camera": J.value,
|
|
3275
3275
|
onClose: x[0] || (x[0] = (ve) => he.value = !1)
|
|
3276
3276
|
}, null, 8, ["cdn-file-resolver", "apartment-json", "level", "minimap-json", "rotation", "current-camera"])) : V("", !0),
|
|
3277
|
-
K.value &&
|
|
3277
|
+
K.value && re.value ? (u(), L("div", {
|
|
3278
3278
|
key: 1,
|
|
3279
3279
|
class: ce(["v-player", [ne.value]])
|
|
3280
3280
|
}, [
|
|
3281
3281
|
y(so, {
|
|
3282
3282
|
ref_key: "vPlayerInstance",
|
|
3283
3283
|
ref: ft,
|
|
3284
|
-
"cdn-file-resolver": p(
|
|
3284
|
+
"cdn-file-resolver": p(i),
|
|
3285
3285
|
style: ae({ zIndex: fe.value ? 1 : 2 }),
|
|
3286
3286
|
"show-static-image": fe.value,
|
|
3287
|
-
"current-camera-id":
|
|
3287
|
+
"current-camera-id": re.value,
|
|
3288
3288
|
"mouse-sensitivity": p(Z),
|
|
3289
3289
|
"interior-id": K.value,
|
|
3290
3290
|
"apartment-id": p(a),
|
|
@@ -3317,11 +3317,11 @@ const xl = {
|
|
|
3317
3317
|
icon: "mdi-alert-outline",
|
|
3318
3318
|
elevation: "3",
|
|
3319
3319
|
class: "mr-2",
|
|
3320
|
-
onClick: x[2] || (x[2] = (ve) =>
|
|
3320
|
+
onClick: x[2] || (x[2] = (ve) => W.value = !W.value)
|
|
3321
3321
|
}, null, 512), [
|
|
3322
3322
|
[ut, ue.value]
|
|
3323
3323
|
]),
|
|
3324
|
-
Q.value &&
|
|
3324
|
+
Q.value && re.value && b.value ? Ke((u(), O(P, {
|
|
3325
3325
|
key: 1,
|
|
3326
3326
|
density: "comfortable",
|
|
3327
3327
|
elevation: "3",
|
|
@@ -3381,13 +3381,13 @@ const xl = {
|
|
|
3381
3381
|
})
|
|
3382
3382
|
]),
|
|
3383
3383
|
"center-center": m(() => [
|
|
3384
|
-
|
|
3384
|
+
W.value ? (u(), O(ma, {
|
|
3385
3385
|
key: 0,
|
|
3386
3386
|
onCloseTutorial: x[5] || (x[5] = (ve) => qe(ve))
|
|
3387
3387
|
})) : V("", !0),
|
|
3388
3388
|
Me.value.isActive && Q.value && J.value && b.value && he.value ? (u(), O(Vt, {
|
|
3389
3389
|
key: 1,
|
|
3390
|
-
"cdn-file-resolver": p(
|
|
3390
|
+
"cdn-file-resolver": p(i),
|
|
3391
3391
|
"apartment-json": B.value,
|
|
3392
3392
|
"minimap-json": Q.value,
|
|
3393
3393
|
rotation: _e.value,
|
|
@@ -3456,7 +3456,7 @@ const xl = {
|
|
|
3456
3456
|
onToggleSunStudy: x[7] || (x[7] = (ve) => be.value = !be.value)
|
|
3457
3457
|
}, null, 8, ["displaySunsim", "showUI"])) : V("", !0)
|
|
3458
3458
|
], 2),
|
|
3459
|
-
!oe.value && !Te.value &&
|
|
3459
|
+
!oe.value && !Te.value && re.value && be.value && Ye.value(J.value) && je(J.value)[0] && Be.value ? (u(), O(Dt, {
|
|
3460
3460
|
key: 0,
|
|
3461
3461
|
class: "sunsim-slider-desktop",
|
|
3462
3462
|
"current-day": Ye.value(J.value) ? je(J.value)[0] : void 0,
|
|
@@ -3492,7 +3492,7 @@ const xl = {
|
|
|
3492
3492
|
e("div", Tl, [
|
|
3493
3493
|
ue.value && p(v) && at.value ? (u(), O(wo, {
|
|
3494
3494
|
key: 0,
|
|
3495
|
-
"cdn-file-resolver": p(
|
|
3495
|
+
"cdn-file-resolver": p(i),
|
|
3496
3496
|
"available-archetypes": at.value,
|
|
3497
3497
|
"selected-index": nt.value,
|
|
3498
3498
|
onSelectInterior: At
|
|
@@ -3526,7 +3526,7 @@ const xl = {
|
|
|
3526
3526
|
_: 1
|
|
3527
3527
|
}),
|
|
3528
3528
|
oe.value ? (u(), L("div", $l, [
|
|
3529
|
-
!Te.value &&
|
|
3529
|
+
!Te.value && re.value && be.value && Ye.value(J.value) && je(J.value)[0] && Be.value ? (u(), O(Dt, {
|
|
3530
3530
|
key: 0,
|
|
3531
3531
|
class: "mt-1",
|
|
3532
3532
|
"current-day": Ye.value(J.value) ? je(J.value)[0] : void 0,
|
|
@@ -3541,7 +3541,7 @@ const xl = {
|
|
|
3541
3541
|
], 2);
|
|
3542
3542
|
};
|
|
3543
3543
|
}
|
|
3544
|
-
}), Yl = /* @__PURE__ */ te(Hl, [["__scopeId", "data-v-
|
|
3544
|
+
}), Yl = /* @__PURE__ */ te(Hl, [["__scopeId", "data-v-3ddab441"]]), Ul = { id: "player-wrapper" }, zl = { id: "player-sizer" }, jl = {
|
|
3545
3545
|
class: "player-control",
|
|
3546
3546
|
id: "controls-top-left"
|
|
3547
3547
|
}, Wl = {
|
|
@@ -3629,28 +3629,28 @@ const xl = {
|
|
|
3629
3629
|
);
|
|
3630
3630
|
const o = _(0), l = _(
|
|
3631
3631
|
new Nt(document, "player-wrapper")
|
|
3632
|
-
),
|
|
3632
|
+
), i = D(() => n.images.map(
|
|
3633
3633
|
(h, k) => ({
|
|
3634
3634
|
id: `image-${k}`,
|
|
3635
3635
|
thumbnailUrl: h
|
|
3636
3636
|
})
|
|
3637
|
-
)), a = D(() =>
|
|
3637
|
+
)), a = D(() => i.value[o.value]);
|
|
3638
3638
|
Re(() => {
|
|
3639
3639
|
l.value.setup();
|
|
3640
3640
|
});
|
|
3641
3641
|
function s() {
|
|
3642
3642
|
l.value.toggle(), window.scrollTo({ top: 150, behavior: "smooth" });
|
|
3643
3643
|
}
|
|
3644
|
-
function
|
|
3644
|
+
function r() {
|
|
3645
3645
|
let h = o.value + 1;
|
|
3646
|
-
h >=
|
|
3646
|
+
h >= i.value.length && (h = 0), o.value = h;
|
|
3647
3647
|
}
|
|
3648
3648
|
function f() {
|
|
3649
3649
|
let h = o.value - 1;
|
|
3650
|
-
h < 0 && (h =
|
|
3650
|
+
h < 0 && (h = i.value.length - 1), o.value = h;
|
|
3651
3651
|
}
|
|
3652
3652
|
function g(h, k = !0) {
|
|
3653
|
-
let C =
|
|
3653
|
+
let C = i.value.findIndex(
|
|
3654
3654
|
(F) => F.id === h
|
|
3655
3655
|
);
|
|
3656
3656
|
C != -1 && (o.value = C);
|
|
@@ -3676,7 +3676,7 @@ const xl = {
|
|
|
3676
3676
|
"center-left": m(() => [
|
|
3677
3677
|
y(Fe, { name: "slide-x-transition" }, {
|
|
3678
3678
|
default: m(() => [
|
|
3679
|
-
|
|
3679
|
+
i.value.length > 1 ? (u(), O(F, {
|
|
3680
3680
|
key: 0,
|
|
3681
3681
|
density: "comfortable",
|
|
3682
3682
|
elevation: "3",
|
|
@@ -3691,12 +3691,12 @@ const xl = {
|
|
|
3691
3691
|
"center-right": m(() => [
|
|
3692
3692
|
y(Fe, { name: "slide-x-reverse-transition" }, {
|
|
3693
3693
|
default: m(() => [
|
|
3694
|
-
|
|
3694
|
+
i.value.length > 1 ? (u(), O(F, {
|
|
3695
3695
|
key: 0,
|
|
3696
3696
|
density: "comfortable",
|
|
3697
3697
|
elevation: "3",
|
|
3698
3698
|
icon: "mdi-chevron-right",
|
|
3699
|
-
onClick:
|
|
3699
|
+
onClick: r
|
|
3700
3700
|
})) : V("", !0)
|
|
3701
3701
|
]),
|
|
3702
3702
|
_: 1
|
|
@@ -3715,12 +3715,12 @@ const xl = {
|
|
|
3715
3715
|
]),
|
|
3716
3716
|
"bottom-center": m(() => [
|
|
3717
3717
|
e("div", null, [
|
|
3718
|
-
l.value.isActive &&
|
|
3718
|
+
l.value.isActive && i.value.length > 1 ? (u(), O(vt, {
|
|
3719
3719
|
key: 0,
|
|
3720
3720
|
class: ce([l.value.isActive ? "full-screen" : ""]),
|
|
3721
|
-
thumbnails:
|
|
3721
|
+
thumbnails: i.value,
|
|
3722
3722
|
active: o.value,
|
|
3723
|
-
onNext:
|
|
3723
|
+
onNext: r,
|
|
3724
3724
|
onPrevious: f,
|
|
3725
3725
|
onGoto: g
|
|
3726
3726
|
}, null, 8, ["class", "thumbnails", "active"])) : V("", !0)
|
|
@@ -3729,11 +3729,11 @@ const xl = {
|
|
|
3729
3729
|
"bottom-right": m(() => []),
|
|
3730
3730
|
_: 1
|
|
3731
3731
|
}, 8, ["is-full-screen"]),
|
|
3732
|
-
|
|
3732
|
+
i.value.length > 1 ? (u(), O(vt, {
|
|
3733
3733
|
key: 0,
|
|
3734
|
-
thumbnails:
|
|
3734
|
+
thumbnails: i.value,
|
|
3735
3735
|
active: o.value,
|
|
3736
|
-
onNext:
|
|
3736
|
+
onNext: r,
|
|
3737
3737
|
onPrevious: f,
|
|
3738
3738
|
onGoto: g
|
|
3739
3739
|
}, null, 8, ["thumbnails", "active"])) : V("", !0)
|
|
@@ -3755,7 +3755,7 @@ const xl = {
|
|
|
3755
3755
|
},
|
|
3756
3756
|
emits: ["apartmentJsonLoaded", "minimapJsonLoaded", "cameraSet"],
|
|
3757
3757
|
setup(t, { emit: n }) {
|
|
3758
|
-
const l = we(t),
|
|
3758
|
+
const l = we(t), i = n, a = _(), s = _(), r = _(), f = _(0), g = _(), h = _(1), k = D(() => l.currentCamera.value ? l.currentCamera.value : a.value ? a.value.cameras[0].id : null), C = D(() => ({
|
|
3759
3759
|
transformOrigin: "top left",
|
|
3760
3760
|
transform: `scale(${h.value})`
|
|
3761
3761
|
}));
|
|
@@ -3765,7 +3765,7 @@ const xl = {
|
|
|
3765
3765
|
h.value = A.clientWidth / 512, I.style.height = `${S.contentRect.height * h.value}px`;
|
|
3766
3766
|
}).observe(g.value);
|
|
3767
3767
|
}), Y(k, () => {
|
|
3768
|
-
|
|
3768
|
+
i("cameraSet", k.value);
|
|
3769
3769
|
});
|
|
3770
3770
|
const F = D(() => {
|
|
3771
3771
|
const S = pe(l.cdnFileResolver.value, "").replace(
|
|
@@ -3782,15 +3782,15 @@ const xl = {
|
|
|
3782
3782
|
async () => {
|
|
3783
3783
|
a.value = await (await fetch(
|
|
3784
3784
|
pe(l.cdnFileResolver.value, "/apartment.json")
|
|
3785
|
-
)).json(),
|
|
3785
|
+
)).json(), i("apartmentJsonLoaded", a.value), s.value = await (await fetch(
|
|
3786
3786
|
pe(l.cdnFileResolver.value, "/minimap/minimap.json")
|
|
3787
|
-
)).json(),
|
|
3787
|
+
)).json(), i("minimapJsonLoaded", s.value);
|
|
3788
3788
|
},
|
|
3789
3789
|
{ immediate: !0 }
|
|
3790
3790
|
), Y(
|
|
3791
3791
|
[w, l.cdnFileResolver],
|
|
3792
3792
|
() => {
|
|
3793
|
-
l.cdnFileResolver.value && w.value && (
|
|
3793
|
+
l.cdnFileResolver.value && w.value && (r.value = w.value.defaultSunsimFile ? pe(l.cdnFileResolver.value, "/minimap/sunsim0_13.jpg") : pe(
|
|
3794
3794
|
l.cdnFileResolver.value,
|
|
3795
3795
|
`/minimap/${w.value.defaultSunsimFile}`
|
|
3796
3796
|
));
|
|
@@ -3798,7 +3798,7 @@ const xl = {
|
|
|
3798
3798
|
{ immediate: !0 }
|
|
3799
3799
|
);
|
|
3800
3800
|
function d(v) {
|
|
3801
|
-
|
|
3801
|
+
r.value = v;
|
|
3802
3802
|
}
|
|
3803
3803
|
return (v, S) => {
|
|
3804
3804
|
const I = E("v-skeleton-loader");
|
|
@@ -3821,7 +3821,7 @@ const xl = {
|
|
|
3821
3821
|
y(Ut, {
|
|
3822
3822
|
"transform-angle": f.value,
|
|
3823
3823
|
"all-cameras": a.value.cameras,
|
|
3824
|
-
"background-image":
|
|
3824
|
+
"background-image": r.value,
|
|
3825
3825
|
rotation: v.rotation || 0,
|
|
3826
3826
|
"current-camera": k.value,
|
|
3827
3827
|
storey: w.value,
|
|
@@ -3854,7 +3854,7 @@ const xl = {
|
|
|
3854
3854
|
}, 8, ["loading"]);
|
|
3855
3855
|
};
|
|
3856
3856
|
}
|
|
3857
|
-
}), Xs = /* @__PURE__ */ te(ss, [["__scopeId", "data-v-8077dfb5"]]),
|
|
3857
|
+
}), Xs = /* @__PURE__ */ te(ss, [["__scopeId", "data-v-8077dfb5"]]), is = ["src"], rs = /* @__PURE__ */ N({
|
|
3858
3858
|
__name: "VStructureChooserCameraDayTimeSample",
|
|
3859
3859
|
props: {
|
|
3860
3860
|
timeSampleData: {},
|
|
@@ -3862,12 +3862,12 @@ const xl = {
|
|
|
3862
3862
|
currentTime: {}
|
|
3863
3863
|
},
|
|
3864
3864
|
setup(t) {
|
|
3865
|
-
const n = t, { timeSampleData: o, cdnFileResolver: l, currentTime:
|
|
3865
|
+
const n = t, { timeSampleData: o, cdnFileResolver: l, currentTime: i } = we(n), a = _(), s = Ae("registerImage"), r = Ae("completeImage");
|
|
3866
3866
|
Y(a, () => {
|
|
3867
3867
|
a.value && (s(a.value), a.value.onload = () => {
|
|
3868
|
-
|
|
3868
|
+
r(a.value);
|
|
3869
3869
|
}, a.value.onerror = () => {
|
|
3870
|
-
|
|
3870
|
+
r(a.value);
|
|
3871
3871
|
});
|
|
3872
3872
|
});
|
|
3873
3873
|
const f = D(() => pe(l.value, o.value.filename));
|
|
@@ -3875,12 +3875,12 @@ const xl = {
|
|
|
3875
3875
|
ref_key: "image",
|
|
3876
3876
|
ref: a,
|
|
3877
3877
|
style: ae({
|
|
3878
|
-
visibility: p(
|
|
3878
|
+
visibility: p(i) && p(o) === p(i) ? "visible" : "hidden"
|
|
3879
3879
|
}),
|
|
3880
3880
|
src: f.value
|
|
3881
|
-
}, null, 12,
|
|
3881
|
+
}, null, 12, is));
|
|
3882
3882
|
}
|
|
3883
|
-
}), us = /* @__PURE__ */ te(
|
|
3883
|
+
}), us = /* @__PURE__ */ te(rs, [["__scopeId", "data-v-c4a08195"]]), cs = /* @__PURE__ */ N({
|
|
3884
3884
|
__name: "VStructureChooserCameraDay",
|
|
3885
3885
|
props: {
|
|
3886
3886
|
dayData: {},
|
|
@@ -3889,12 +3889,12 @@ const xl = {
|
|
|
3889
3889
|
currentTime: {}
|
|
3890
3890
|
},
|
|
3891
3891
|
setup(t) {
|
|
3892
|
-
const n = t, { dayData: o, cdnFileResolver: l, currentTime:
|
|
3893
|
-
return (a, s) => (u(!0), L(ke, null, Ee(p(o).timeSamples, (
|
|
3892
|
+
const n = t, { dayData: o, cdnFileResolver: l, currentTime: i } = we(n);
|
|
3893
|
+
return (a, s) => (u(!0), L(ke, null, Ee(p(o).timeSamples, (r, f) => (u(), O(us, {
|
|
3894
3894
|
key: f,
|
|
3895
|
-
"time-sample-data":
|
|
3895
|
+
"time-sample-data": r,
|
|
3896
3896
|
"cdn-file-resolver": p(l),
|
|
3897
|
-
"current-time": p(
|
|
3897
|
+
"current-time": p(i)
|
|
3898
3898
|
}, null, 8, ["time-sample-data", "cdn-file-resolver", "current-time"]))), 128));
|
|
3899
3899
|
}
|
|
3900
3900
|
}), ds = ["src"], vs = /* @__PURE__ */ N({
|
|
@@ -3907,9 +3907,9 @@ const xl = {
|
|
|
3907
3907
|
currentTime: {}
|
|
3908
3908
|
},
|
|
3909
3909
|
setup(t) {
|
|
3910
|
-
const n = t, { cameraData: o, cdnFileResolver: l, currentCamera:
|
|
3910
|
+
const n = t, { cameraData: o, cdnFileResolver: l, currentCamera: i, currentTime: a } = we(n), s = _(), r = Ae("registerImage"), f = Ae("completeImage");
|
|
3911
3911
|
Y(s, () => {
|
|
3912
|
-
s.value && (
|
|
3912
|
+
s.value && (r(s.value), s.value.onload = () => {
|
|
3913
3913
|
f(s.value);
|
|
3914
3914
|
}, s.value.onerror = () => {
|
|
3915
3915
|
f(s.value);
|
|
@@ -3926,7 +3926,7 @@ const xl = {
|
|
|
3926
3926
|
key: 1,
|
|
3927
3927
|
ref_key: "image",
|
|
3928
3928
|
ref: s,
|
|
3929
|
-
style: ae({ visibility: p(
|
|
3929
|
+
style: ae({ visibility: p(i) === p(o) ? "visible" : "hidden" }),
|
|
3930
3930
|
src: g.value
|
|
3931
3931
|
}, null, 12, ds));
|
|
3932
3932
|
}
|
|
@@ -3938,12 +3938,12 @@ const xl = {
|
|
|
3938
3938
|
currentTransition: {}
|
|
3939
3939
|
},
|
|
3940
3940
|
setup(t) {
|
|
3941
|
-
const n = t, { transitionData: o, cdnFileResolver: l, currentTransition:
|
|
3941
|
+
const n = t, { transitionData: o, cdnFileResolver: l, currentTransition: i } = we(n), a = _(), s = Ae("registerImage"), r = Ae("completeImage");
|
|
3942
3942
|
Y(a, () => {
|
|
3943
3943
|
a.value && (s(a.value), a.value.onload = () => {
|
|
3944
|
-
|
|
3944
|
+
r(a.value);
|
|
3945
3945
|
}, a.value.onerror = () => {
|
|
3946
|
-
|
|
3946
|
+
r(a.value);
|
|
3947
3947
|
});
|
|
3948
3948
|
});
|
|
3949
3949
|
const f = D(() => pe(l.value, o.value.filename));
|
|
@@ -3951,7 +3951,7 @@ const xl = {
|
|
|
3951
3951
|
ref_key: "image",
|
|
3952
3952
|
ref: a,
|
|
3953
3953
|
style: ae({
|
|
3954
|
-
visibility: p(o) === p(
|
|
3954
|
+
visibility: p(o) === p(i) ? "visible" : "hidden"
|
|
3955
3955
|
}),
|
|
3956
3956
|
src: f.value
|
|
3957
3957
|
}, null, 12, ps));
|
|
@@ -3978,19 +3978,19 @@ const gs = {
|
|
|
3978
3978
|
},
|
|
3979
3979
|
emits: ["onDayChange"],
|
|
3980
3980
|
setup(t, { emit: n }) {
|
|
3981
|
-
const o = t, { isMobileSized: l, currentCamera:
|
|
3981
|
+
const o = t, { isMobileSized: l, currentCamera: i, currentDay: a, disabled: s } = we(o), r = n, f = _(a.value.dayOfYear);
|
|
3982
3982
|
return Y(a, () => {
|
|
3983
3983
|
f.value = a.value.dayOfYear;
|
|
3984
3984
|
}), Y(f, () => {
|
|
3985
|
-
|
|
3985
|
+
r(
|
|
3986
3986
|
"onDayChange",
|
|
3987
|
-
|
|
3987
|
+
i.value.sunsimDayOfYear.find(
|
|
3988
3988
|
(g) => g.dayOfYear === f.value
|
|
3989
3989
|
)
|
|
3990
3990
|
);
|
|
3991
3991
|
}), (g, h) => {
|
|
3992
3992
|
const k = E("v-btn"), C = E("v-field"), F = E("v-list-item-title"), w = E("v-list-item"), d = E("v-list"), v = E("v-menu");
|
|
3993
|
-
return p(
|
|
3993
|
+
return p(i).sunsimDayOfYear && p(i).sunsimDayOfYear.length > 0 ? (u(), L("div", gs, [
|
|
3994
3994
|
y(v, null, {
|
|
3995
3995
|
activator: m(({ props: S }) => [
|
|
3996
3996
|
y(C, {
|
|
@@ -4003,9 +4003,9 @@ const gs = {
|
|
|
4003
4003
|
variant: "text",
|
|
4004
4004
|
rounded: "",
|
|
4005
4005
|
flat: "",
|
|
4006
|
-
readonly: p(
|
|
4006
|
+
readonly: p(i).sunsimDayOfYear.length === 1,
|
|
4007
4007
|
"prepend-icon": "mdi-calendar-blank",
|
|
4008
|
-
"append-icon": p(
|
|
4008
|
+
"append-icon": p(i).sunsimDayOfYear.length > 1 ? "mdi-menu-down" : void 0,
|
|
4009
4009
|
disabled: p(s),
|
|
4010
4010
|
size: p(l) ? "small" : void 0
|
|
4011
4011
|
}, S), {
|
|
@@ -4021,7 +4021,7 @@ const gs = {
|
|
|
4021
4021
|
default: m(() => [
|
|
4022
4022
|
y(d, null, {
|
|
4023
4023
|
default: m(() => [
|
|
4024
|
-
(u(!0), L(ke, null, Ee(p(
|
|
4024
|
+
(u(!0), L(ke, null, Ee(p(i).sunsimDayOfYear, (S, I) => (u(), O(w, {
|
|
4025
4025
|
key: I,
|
|
4026
4026
|
value: I,
|
|
4027
4027
|
onClick: (A) => f.value = S.dayOfYear
|
|
@@ -4064,10 +4064,10 @@ const gs = {
|
|
|
4064
4064
|
setup(t, { emit: n }) {
|
|
4065
4065
|
const o = t, {
|
|
4066
4066
|
isMobileSized: l,
|
|
4067
|
-
stillCameras:
|
|
4067
|
+
stillCameras: i,
|
|
4068
4068
|
currentCamera: a,
|
|
4069
4069
|
cdnFileResolver: s,
|
|
4070
|
-
disabled:
|
|
4070
|
+
disabled: r
|
|
4071
4071
|
} = we(o), f = _(a.value), g = n;
|
|
4072
4072
|
Y(
|
|
4073
4073
|
a,
|
|
@@ -4078,11 +4078,11 @@ const gs = {
|
|
|
4078
4078
|
), Y(f, () => {
|
|
4079
4079
|
g(
|
|
4080
4080
|
"onCameraChange",
|
|
4081
|
-
|
|
4081
|
+
i.value.find((k) => k === f.value)
|
|
4082
4082
|
);
|
|
4083
4083
|
});
|
|
4084
4084
|
function h(k) {
|
|
4085
|
-
|
|
4085
|
+
r.value || (f.value = k);
|
|
4086
4086
|
}
|
|
4087
4087
|
return (k, C) => {
|
|
4088
4088
|
const F = E("v-icon");
|
|
@@ -4093,12 +4093,12 @@ const gs = {
|
|
|
4093
4093
|
"align-end": !p(l),
|
|
4094
4094
|
"justify-end": p(l),
|
|
4095
4095
|
mobile: p(l),
|
|
4096
|
-
disabled: p(
|
|
4097
|
-
enabled: !p(
|
|
4096
|
+
disabled: p(r),
|
|
4097
|
+
enabled: !p(r)
|
|
4098
4098
|
})
|
|
4099
4099
|
}, [
|
|
4100
4100
|
e("div", bs, [
|
|
4101
|
-
(u(!0), L(ke, null, Ee(p(
|
|
4101
|
+
(u(!0), L(ke, null, Ee(p(i), (w, d) => (u(), L("div", {
|
|
4102
4102
|
key: d,
|
|
4103
4103
|
class: ce(["still-camera-image d-flex flex-column flex-reverse align-center elevation-2", {
|
|
4104
4104
|
"active-camera": w === f.value
|
|
@@ -4142,13 +4142,13 @@ const gs = {
|
|
|
4142
4142
|
},
|
|
4143
4143
|
emits: ["onTimeChange"],
|
|
4144
4144
|
setup(t, { emit: n }) {
|
|
4145
|
-
const o = t, { isMobileSized: l, currentDay:
|
|
4145
|
+
const o = t, { isMobileSized: l, currentDay: i, currentTime: a, disabled: s } = we(o), r = n, f = _(a.value.timeInHours);
|
|
4146
4146
|
return Y(a, () => {
|
|
4147
4147
|
f.value = a.value.timeInHours;
|
|
4148
4148
|
}), Y(f, () => {
|
|
4149
|
-
|
|
4149
|
+
r(
|
|
4150
4150
|
"onTimeChange",
|
|
4151
|
-
|
|
4151
|
+
i.value.timeSamples.find(
|
|
4152
4152
|
(g) => g.timeInHours === f.value
|
|
4153
4153
|
)
|
|
4154
4154
|
);
|
|
@@ -4157,13 +4157,13 @@ const gs = {
|
|
|
4157
4157
|
return u(), L("div", {
|
|
4158
4158
|
class: ce({ "d-inline-block": !0, mobile: p(l) }),
|
|
4159
4159
|
style: ae({
|
|
4160
|
-
flex: p(l) && p(
|
|
4160
|
+
flex: p(l) && p(i).timeSamples.length > 1 ? 1 : void 0,
|
|
4161
4161
|
verticalAlign: "top"
|
|
4162
4162
|
})
|
|
4163
4163
|
}, [
|
|
4164
4164
|
y(F, {
|
|
4165
4165
|
style: ae(
|
|
4166
|
-
p(
|
|
4166
|
+
p(i).timeSamples.length > 1 ? {
|
|
4167
4167
|
width: p(l) ? "100%" : "300px",
|
|
4168
4168
|
height: p(l) ? "28px" : "36px"
|
|
4169
4169
|
} : {
|
|
@@ -4179,14 +4179,14 @@ const gs = {
|
|
|
4179
4179
|
flat: ""
|
|
4180
4180
|
}, {
|
|
4181
4181
|
default: m(() => [
|
|
4182
|
-
p(
|
|
4182
|
+
p(i).timeSamples.length > 1 ? (u(), O(C, {
|
|
4183
4183
|
key: 0,
|
|
4184
4184
|
class: "pa-2 pr-2",
|
|
4185
4185
|
modelValue: f.value,
|
|
4186
4186
|
"onUpdate:modelValue": h[0] || (h[0] = (w) => f.value = w),
|
|
4187
|
-
min: p(
|
|
4188
|
-
max: p(
|
|
4189
|
-
step: p(
|
|
4187
|
+
min: p(i).startTime,
|
|
4188
|
+
max: p(i).endTime,
|
|
4189
|
+
step: p(i).interval,
|
|
4190
4190
|
disabled: !!p(s),
|
|
4191
4191
|
density: "compact",
|
|
4192
4192
|
"thumb-size": "16",
|
|
@@ -4239,16 +4239,16 @@ const gs = {
|
|
|
4239
4239
|
},
|
|
4240
4240
|
emits: ["onZoomIn", "onZoomOut"],
|
|
4241
4241
|
setup(t, { emit: n }) {
|
|
4242
|
-
const o = t, { isMobileSized: l, canZoomIn:
|
|
4242
|
+
const o = t, { isMobileSized: l, canZoomIn: i, canZoomOut: a, disabled: s } = we(o), r = n;
|
|
4243
4243
|
return (f, g) => {
|
|
4244
4244
|
const h = E("v-btn");
|
|
4245
4245
|
return u(), L("div", Ms, [
|
|
4246
4246
|
y(h, {
|
|
4247
|
-
disabled: p(s) || !p(
|
|
4247
|
+
disabled: p(s) || !p(i),
|
|
4248
4248
|
size: p(l) ? "x-small" : "small",
|
|
4249
4249
|
flat: "",
|
|
4250
4250
|
icon: "mdi-plus",
|
|
4251
|
-
onClick: g[0] || (g[0] = (k) =>
|
|
4251
|
+
onClick: g[0] || (g[0] = (k) => r("onZoomIn")),
|
|
4252
4252
|
style: { "border-bottom-left-radius": "0", "border-bottom-right-radius": "0" }
|
|
4253
4253
|
}, null, 8, ["disabled", "size"]),
|
|
4254
4254
|
Fs,
|
|
@@ -4257,7 +4257,7 @@ const gs = {
|
|
|
4257
4257
|
size: p(l) ? "x-small" : "small",
|
|
4258
4258
|
flat: "",
|
|
4259
4259
|
icon: "mdi-minus",
|
|
4260
|
-
onClick: g[1] || (g[1] = (k) =>
|
|
4260
|
+
onClick: g[1] || (g[1] = (k) => r("onZoomOut")),
|
|
4261
4261
|
style: { "border-top-left-radius": "0", "border-top-right-radius": "0" }
|
|
4262
4262
|
}, null, 8, ["disabled", "size"])
|
|
4263
4263
|
]);
|
|
@@ -4291,17 +4291,17 @@ class Ne {
|
|
|
4291
4291
|
}
|
|
4292
4292
|
async loadImage(n) {
|
|
4293
4293
|
return new Promise((o, l) => {
|
|
4294
|
-
const
|
|
4295
|
-
|
|
4296
|
-
o(
|
|
4297
|
-
},
|
|
4294
|
+
const i = new Image();
|
|
4295
|
+
i.crossOrigin = "anonymous", i.onload = () => {
|
|
4296
|
+
o(i);
|
|
4297
|
+
}, i.onerror = l, i.src = n;
|
|
4298
4298
|
});
|
|
4299
4299
|
}
|
|
4300
4300
|
async loadImageData(n) {
|
|
4301
4301
|
const o = await this.loadImage(n), l = document.createElement("canvas");
|
|
4302
4302
|
try {
|
|
4303
|
-
const
|
|
4304
|
-
return l.width = o.width, l.height = o.height,
|
|
4303
|
+
const i = l.getContext("2d");
|
|
4304
|
+
return l.width = o.width, l.height = o.height, i.drawImage(o, 0, 0), l.toDataURL("image/png");
|
|
4305
4305
|
} finally {
|
|
4306
4306
|
l.remove();
|
|
4307
4307
|
}
|
|
@@ -4318,13 +4318,13 @@ const Ds = ["innerHTML"], Bs = /* @__PURE__ */ N({
|
|
|
4318
4318
|
},
|
|
4319
4319
|
emits: ["onClick", "onHoverOver", "onHoverOut", "updateSvgContainer", "onError", "onBoundingBoxesUpdate"],
|
|
4320
4320
|
setup(t, { emit: n }) {
|
|
4321
|
-
const o = t, { cdnFileResolver: l, colorCallback:
|
|
4321
|
+
const o = t, { cdnFileResolver: l, colorCallback: i, currentCamera: a, selectedId: s } = we(o), r = n, f = _(!0), g = _({}), h = _(), k = In({}), C = D(() => pe(
|
|
4322
4322
|
l.value,
|
|
4323
4323
|
a.value.overlayFilename
|
|
4324
4324
|
));
|
|
4325
4325
|
Ft(() => {
|
|
4326
4326
|
for (const d in k) {
|
|
4327
|
-
const { element: v, state: S } = k[d], { r: I, g: A, b: R, a: Z, s: $ } =
|
|
4327
|
+
const { element: v, state: S } = k[d], { r: I, g: A, b: R, a: Z, s: $ } = i.value(d, S) || {
|
|
4328
4328
|
r: 0,
|
|
4329
4329
|
g: 0,
|
|
4330
4330
|
b: 0,
|
|
@@ -4340,7 +4340,7 @@ const Ds = ["innerHTML"], Bs = /* @__PURE__ */ N({
|
|
|
4340
4340
|
try {
|
|
4341
4341
|
f.value = !1, g.value[C.value] || (g.value[C.value] = await Ne.loadText(C.value)), w();
|
|
4342
4342
|
} catch (d) {
|
|
4343
|
-
|
|
4343
|
+
r("onError", d);
|
|
4344
4344
|
} finally {
|
|
4345
4345
|
f.value = !0;
|
|
4346
4346
|
}
|
|
@@ -4383,7 +4383,7 @@ const Ds = ["innerHTML"], Bs = /* @__PURE__ */ N({
|
|
|
4383
4383
|
var v;
|
|
4384
4384
|
const d = (v = h.value) == null ? void 0 : v.firstChild;
|
|
4385
4385
|
if (d) {
|
|
4386
|
-
|
|
4386
|
+
r("updateSvgContainer", d), F();
|
|
4387
4387
|
let S, I = "data-structure-id";
|
|
4388
4388
|
S = d.querySelectorAll(`[${I}]`), S.length === 0 && (I = "data-apartment-id", S = d.querySelectorAll(`[${I}]`), S.length === 0 && (I = "data-building-id", S = d.querySelectorAll(`[${I}]`))), S.forEach((A) => {
|
|
4389
4389
|
const R = A.cloneNode(
|
|
@@ -4398,13 +4398,13 @@ const Ds = ["innerHTML"], Bs = /* @__PURE__ */ N({
|
|
|
4398
4398
|
state: s.value === Z ? "selected" : "idle",
|
|
4399
4399
|
boundingBox: R.getBoundingClientRect().toJSON()
|
|
4400
4400
|
}, o.activeStructureIds && !o.activeStructureIds.includes(Z) && (R.style.display = "none"), R.addEventListener("mouseover", () => {
|
|
4401
|
-
k[Z].state === "idle" && (k[Z].state = "hover"),
|
|
4401
|
+
k[Z].state === "idle" && (k[Z].state = "hover"), r("onHoverOver", Z);
|
|
4402
4402
|
}), R.addEventListener("mouseout", () => {
|
|
4403
|
-
k[Z].state === "hover" && (k[Z].state = "idle"),
|
|
4403
|
+
k[Z].state === "hover" && (k[Z].state = "idle"), r("onHoverOut", Z);
|
|
4404
4404
|
}), R.addEventListener("click", () => {
|
|
4405
|
-
|
|
4405
|
+
r("onClick", Z);
|
|
4406
4406
|
});
|
|
4407
|
-
}),
|
|
4407
|
+
}), r(
|
|
4408
4408
|
"onBoundingBoxesUpdate",
|
|
4409
4409
|
Object.entries(k).map(([A, R]) => ({
|
|
4410
4410
|
id: A,
|
|
@@ -4507,7 +4507,7 @@ function zs(t) {
|
|
|
4507
4507
|
return !0;
|
|
4508
4508
|
}
|
|
4509
4509
|
function js(t) {
|
|
4510
|
-
var n, o, l,
|
|
4510
|
+
var n, o, l, i;
|
|
4511
4511
|
if (Ts(t))
|
|
4512
4512
|
return t;
|
|
4513
4513
|
if (Rs(t)) {
|
|
@@ -4531,7 +4531,7 @@ function js(t) {
|
|
|
4531
4531
|
loopable: !1,
|
|
4532
4532
|
cameras: t.cameras.map(
|
|
4533
4533
|
(a) => {
|
|
4534
|
-
var
|
|
4534
|
+
var r;
|
|
4535
4535
|
if (a.sunsimDayOfYear) {
|
|
4536
4536
|
if (a.sunsimDayOfYear.length === 0)
|
|
4537
4537
|
throw new Error(
|
|
@@ -4558,9 +4558,9 @@ function js(t) {
|
|
|
4558
4558
|
}), {
|
|
4559
4559
|
...s,
|
|
4560
4560
|
defaultFilename: s.sunsimDayOfYear[0] ? Pe(
|
|
4561
|
-
((
|
|
4561
|
+
((r = s.sunsimDayOfYear[0].timeSamples.find(
|
|
4562
4562
|
(f) => f.timeInHours === s.sunsimDayOfYear[0].defaultHour
|
|
4563
|
-
)) == null ? void 0 :
|
|
4563
|
+
)) == null ? void 0 : r.filename) || s.sunsimDayOfYear[0].timeSamples[0].filename
|
|
4564
4564
|
) : void 0
|
|
4565
4565
|
};
|
|
4566
4566
|
}
|
|
@@ -4578,9 +4578,9 @@ function js(t) {
|
|
|
4578
4578
|
longitude: t.longitude,
|
|
4579
4579
|
renderVersion: t.renderVersion,
|
|
4580
4580
|
parentStructure: void 0,
|
|
4581
|
-
structures: t.buildings.map(({ id: s, name:
|
|
4581
|
+
structures: t.buildings.map(({ id: s, name: r }) => ({
|
|
4582
4582
|
id: s,
|
|
4583
|
-
name:
|
|
4583
|
+
name: r,
|
|
4584
4584
|
type: "building"
|
|
4585
4585
|
})),
|
|
4586
4586
|
stillCameraIndices: [0],
|
|
@@ -4602,8 +4602,8 @@ function js(t) {
|
|
|
4602
4602
|
endTime: 23.5,
|
|
4603
4603
|
interval: 0.5,
|
|
4604
4604
|
defaultHour: 14,
|
|
4605
|
-
timeSamples: s.timeSamples.map(({ timeInHours:
|
|
4606
|
-
timeInHours:
|
|
4605
|
+
timeSamples: s.timeSamples.map(({ timeInHours: r, filename: f }) => ({
|
|
4606
|
+
timeInHours: r,
|
|
4607
4607
|
filename: Pe(f)
|
|
4608
4608
|
}))
|
|
4609
4609
|
}))
|
|
@@ -4655,17 +4655,17 @@ function js(t) {
|
|
|
4655
4655
|
throw new Error(
|
|
4656
4656
|
"cannot convert ApartmentChooserDataV5 to StructureChooser: key 'cameras.sunsimDayOfYear' is missing"
|
|
4657
4657
|
);
|
|
4658
|
-
const
|
|
4659
|
-
return
|
|
4658
|
+
const r = { ...a };
|
|
4659
|
+
return r.sunsimDayOfYear && r.sunsimDayOfYear.forEach((f) => {
|
|
4660
4660
|
f.timeSamples && f.timeSamples.forEach((g) => {
|
|
4661
4661
|
g.filename = Pe(g.filename);
|
|
4662
4662
|
});
|
|
4663
4663
|
}), {
|
|
4664
|
-
...
|
|
4665
|
-
defaultFilename:
|
|
4666
|
-
((s =
|
|
4667
|
-
(f) => f.timeInHours ===
|
|
4668
|
-
)) == null ? void 0 : s.filename) ||
|
|
4664
|
+
...r,
|
|
4665
|
+
defaultFilename: r.sunsimDayOfYear[0] ? Pe(
|
|
4666
|
+
((s = r.sunsimDayOfYear[0].timeSamples.find(
|
|
4667
|
+
(f) => f.timeInHours === r.sunsimDayOfYear[0].defaultHour
|
|
4668
|
+
)) == null ? void 0 : s.filename) || r.sunsimDayOfYear[0].timeSamples[0].filename
|
|
4669
4669
|
) : void 0
|
|
4670
4670
|
};
|
|
4671
4671
|
} else
|
|
@@ -4682,19 +4682,19 @@ function js(t) {
|
|
|
4682
4682
|
throw new Error(
|
|
4683
4683
|
"cannot convert ApartmentChooserDataLegacy to StructureChooser: key 'scenes' is missing"
|
|
4684
4684
|
);
|
|
4685
|
-
const a = [...Array(64).keys()].map((
|
|
4686
|
-
filename: `/1280/${(
|
|
4685
|
+
const a = [...Array(64).keys()].map((r) => ({
|
|
4686
|
+
filename: `/1280/${(r + 1).toString().padStart(4, "0") + ".jpg"}`
|
|
4687
4687
|
})), s = [4, 1, 2, 3];
|
|
4688
|
-
for (let
|
|
4689
|
-
let f = t.scenes[
|
|
4688
|
+
for (let r = 0; r < t.scenes.length; r++) {
|
|
4689
|
+
let f = t.scenes[r], g, h;
|
|
4690
4690
|
g = a[f].filename, h = {
|
|
4691
|
-
cameraName: `Camera ${
|
|
4691
|
+
cameraName: `Camera ${r + 1}`,
|
|
4692
4692
|
cameraPosition: void 0,
|
|
4693
|
-
cameraRotation: t.sceneCameras && (l = t.sceneCameras.find((k) => k.scene ===
|
|
4694
|
-
(
|
|
4693
|
+
cameraRotation: t.sceneCameras && (l = t.sceneCameras.find((k) => k.scene === r)) != null && l.cameraRotation ? $t(
|
|
4694
|
+
(i = t.sceneCameras.find((k) => k.scene === r)) == null ? void 0 : i.cameraRotation
|
|
4695
4695
|
) : void 0,
|
|
4696
4696
|
cameraFov: 0,
|
|
4697
|
-
overlayFilename: `/scenedata${s[
|
|
4697
|
+
overlayFilename: `/scenedata${s[r]}V5Overlay.svg`,
|
|
4698
4698
|
defaultFilename: g,
|
|
4699
4699
|
sunsimDayOfYear: void 0
|
|
4700
4700
|
// sunsimDayOfYear: [
|
|
@@ -4720,16 +4720,16 @@ function js(t) {
|
|
|
4720
4720
|
longitude: 0,
|
|
4721
4721
|
renderVersion: t.renderVersion,
|
|
4722
4722
|
parentStructure: void 0,
|
|
4723
|
-
structures: t.sceneData.map(({ apartmentID:
|
|
4724
|
-
id:
|
|
4725
|
-
name:
|
|
4723
|
+
structures: t.sceneData.map(({ apartmentID: r }) => ({
|
|
4724
|
+
id: r,
|
|
4725
|
+
name: r,
|
|
4726
4726
|
type: "unit"
|
|
4727
4727
|
})),
|
|
4728
4728
|
stillCameraIndices: t.scenes,
|
|
4729
|
-
stillCameraData: t.sceneData.map(({ apartmentID:
|
|
4729
|
+
stillCameraData: t.sceneData.map(({ apartmentID: r, bestScene: f }) => ({
|
|
4730
4730
|
bestIndex: s.findIndex((g) => g === f) in t.scenes ? t.scenes[s.findIndex((g) => g === f)] : null,
|
|
4731
|
-
id:
|
|
4732
|
-
})).filter(({ bestIndex:
|
|
4731
|
+
id: r
|
|
4732
|
+
})).filter(({ bestIndex: r }) => r !== null),
|
|
4733
4733
|
loopable: !0,
|
|
4734
4734
|
cameras: a
|
|
4735
4735
|
};
|
|
@@ -4773,32 +4773,32 @@ const Ws = {
|
|
|
4773
4773
|
emits: ["onClick", "onHoverOver", "onHoverOut", "onMouseMove", "onBoundingBoxesUpdate", "onInitialize", "onError"],
|
|
4774
4774
|
setup(t, { expose: n, emit: o }) {
|
|
4775
4775
|
const l = t, {
|
|
4776
|
-
structureChooserData:
|
|
4776
|
+
structureChooserData: i,
|
|
4777
4777
|
cdnFileResolver: a,
|
|
4778
4778
|
colorCallback: s,
|
|
4779
|
-
i18nConfig:
|
|
4779
|
+
i18nConfig: r,
|
|
4780
4780
|
customOverlayContent: f,
|
|
4781
4781
|
selectedId: g,
|
|
4782
4782
|
defaultCamera: h,
|
|
4783
4783
|
defaultDay: k,
|
|
4784
4784
|
defaultTime: C,
|
|
4785
4785
|
mobileBreakpoint: F
|
|
4786
|
-
} = we(l), w = o, d = _(), v = _(), S = _(), I = _(null), A = _(4), R = _(), Z = _(!1), $ = _(!1), G = _(), de = D(() => G.value.isHoverEnabled), H = _({ x: 0, y: 0, width: 0, height: 0 }), ye = _(), z = _(), M = _(),
|
|
4786
|
+
} = we(l), w = o, d = _(), v = _(), S = _(), I = _(null), A = _(4), R = _(), Z = _(!1), $ = _(!1), G = _(), de = D(() => G.value.isHoverEnabled), H = _({ x: 0, y: 0, width: 0, height: 0 }), ye = _(), z = _(), M = _(), W = _(!1), me = _(1), Ce = _(0), ie = _([]), B = _(), q = _({
|
|
4787
4787
|
current: 100,
|
|
4788
4788
|
min: 100,
|
|
4789
4789
|
max: 1e3
|
|
4790
|
-
}), Q = _(!1),
|
|
4790
|
+
}), Q = _(!1), j = _();
|
|
4791
4791
|
Xe(
|
|
4792
4792
|
Ve,
|
|
4793
|
-
|
|
4793
|
+
r.value ? new Qe(r.value) : new Qe()
|
|
4794
4794
|
), Xe("registerImage", (b) => {
|
|
4795
4795
|
$e(() => {
|
|
4796
|
-
|
|
4796
|
+
ie.value.find((T) => T.image === b) || (b.decode(), ie.value = [...ie.value, { image: b, loaded: !1 }]);
|
|
4797
4797
|
});
|
|
4798
4798
|
}), Xe("completeImage", (b) => {
|
|
4799
4799
|
$e(() => {
|
|
4800
|
-
const T =
|
|
4801
|
-
T >= 0 && (
|
|
4800
|
+
const T = ie.value.findIndex((X) => X.image === b);
|
|
4801
|
+
T >= 0 && (ie.value[T].loaded = !0, ie.value = [...ie.value]);
|
|
4802
4802
|
});
|
|
4803
4803
|
}), n({
|
|
4804
4804
|
getState: () => ({
|
|
@@ -4821,25 +4821,25 @@ const Ws = {
|
|
|
4821
4821
|
}) => {
|
|
4822
4822
|
typeof b == "number" && (d.value = J.value[b]), typeof T == "number" && (v.value = d.value.sunsimDayOfYear[T]), typeof X == "number" && (S.value = v.value.timeSamples[X]), typeof oe == "number" && (I.value = _e.value[oe]), typeof ne == "number" && (A.value = ne);
|
|
4823
4823
|
},
|
|
4824
|
-
resolveCoordinates: (b, T) =>
|
|
4824
|
+
resolveCoordinates: (b, T) => j.value ? j.value(b, T) : { x: 0, y: 0 }
|
|
4825
4825
|
}), Re(() => {
|
|
4826
4826
|
Z.value = !0, Q.value = !1;
|
|
4827
4827
|
}), Y(z, () => {
|
|
4828
4828
|
z.value && new ResizeObserver(([]) => {
|
|
4829
|
-
const T =
|
|
4829
|
+
const T = ie.value.find((X) => X.loaded);
|
|
4830
4830
|
T && (Ce.value = T.image.width / me.value);
|
|
4831
4831
|
}).observe(z.value);
|
|
4832
|
-
}), Y(
|
|
4832
|
+
}), Y(ie, () => {
|
|
4833
4833
|
if (Ce.value === 0) {
|
|
4834
|
-
const b =
|
|
4834
|
+
const b = ie.value.find((T) => T.loaded);
|
|
4835
4835
|
b && (me.value = b.image.naturalWidth / b.image.naturalHeight, Ce.value = b.image.width / me.value);
|
|
4836
4836
|
}
|
|
4837
4837
|
});
|
|
4838
|
-
const se = D(() =>
|
|
4839
|
-
|
|
4838
|
+
const se = D(() => ie.value.every((b) => b.loaded)), K = D(() => Math.round(
|
|
4839
|
+
ie.value.filter((b) => b.loaded).length / ie.value.length * 100
|
|
4840
4840
|
));
|
|
4841
4841
|
Y(
|
|
4842
|
-
|
|
4842
|
+
i,
|
|
4843
4843
|
(b) => {
|
|
4844
4844
|
try {
|
|
4845
4845
|
Q.value = !1, M.value = js(b);
|
|
@@ -4853,11 +4853,11 @@ const Ws = {
|
|
|
4853
4853
|
), Y(Z, (b) => {
|
|
4854
4854
|
b && w("onInitialize");
|
|
4855
4855
|
});
|
|
4856
|
-
const
|
|
4856
|
+
const re = _();
|
|
4857
4857
|
Y(
|
|
4858
4858
|
() => l.activeStructureIds,
|
|
4859
4859
|
() => {
|
|
4860
|
-
|
|
4860
|
+
re.value = l.activeStructureIds;
|
|
4861
4861
|
},
|
|
4862
4862
|
{
|
|
4863
4863
|
immediate: !0,
|
|
@@ -4867,7 +4867,7 @@ const Ws = {
|
|
|
4867
4867
|
() => z.value,
|
|
4868
4868
|
() => {
|
|
4869
4869
|
z.value && new ResizeObserver(([T]) => {
|
|
4870
|
-
|
|
4870
|
+
W.value = T.contentRect.width < F.value;
|
|
4871
4871
|
}).observe(z.value);
|
|
4872
4872
|
}
|
|
4873
4873
|
);
|
|
@@ -4879,7 +4879,7 @@ const Ws = {
|
|
|
4879
4879
|
Y(
|
|
4880
4880
|
[M, a],
|
|
4881
4881
|
() => {
|
|
4882
|
-
M.value && a.value && (
|
|
4882
|
+
M.value && a.value && (ie.value = []);
|
|
4883
4883
|
},
|
|
4884
4884
|
{ immediate: !0 }
|
|
4885
4885
|
), Y(
|
|
@@ -5002,7 +5002,7 @@ const Ws = {
|
|
|
5002
5002
|
current: X,
|
|
5003
5003
|
resolve: oe
|
|
5004
5004
|
}) {
|
|
5005
|
-
|
|
5005
|
+
j.value = oe, q.value = { min: b, max: T, current: X };
|
|
5006
5006
|
}
|
|
5007
5007
|
function He(b) {
|
|
5008
5008
|
B.value.adjustZoom(b ? 10 : -10);
|
|
@@ -5063,7 +5063,7 @@ const Ws = {
|
|
|
5063
5063
|
e("div", {
|
|
5064
5064
|
ref_key: "container",
|
|
5065
5065
|
ref: z,
|
|
5066
|
-
class: ce({ mobile:
|
|
5066
|
+
class: ce({ mobile: W.value }),
|
|
5067
5067
|
style: { "min-height": "160px" },
|
|
5068
5068
|
onMousemove: ft
|
|
5069
5069
|
}, [
|
|
@@ -5072,7 +5072,7 @@ const Ws = {
|
|
|
5072
5072
|
class: "persistent actions-bar top-right pa-2",
|
|
5073
5073
|
style: ae({
|
|
5074
5074
|
zIndex: 7,
|
|
5075
|
-
top:
|
|
5075
|
+
top: W.value && J.value.length > 1 ? "60px" : 0
|
|
5076
5076
|
})
|
|
5077
5077
|
}, [
|
|
5078
5078
|
d.value.cameraRotation ? (u(), O(Yt, {
|
|
@@ -5080,13 +5080,13 @@ const Ws = {
|
|
|
5080
5080
|
class: "mb-2",
|
|
5081
5081
|
style: ae({
|
|
5082
5082
|
zIndex: 7,
|
|
5083
|
-
width:
|
|
5084
|
-
height:
|
|
5083
|
+
width: W.value ? 32 : 40,
|
|
5084
|
+
height: W.value ? 32 : 40
|
|
5085
5085
|
}),
|
|
5086
5086
|
longitude: at(d.value.cameraRotation.y) + 270
|
|
5087
5087
|
}, null, 8, ["style", "longitude"])) : V("", !0),
|
|
5088
5088
|
y(Vs, {
|
|
5089
|
-
"is-mobile-sized":
|
|
5089
|
+
"is-mobile-sized": W.value,
|
|
5090
5090
|
"can-zoom-out": q.value.min < q.value.current,
|
|
5091
5091
|
"can-zoom-in": q.value.max > q.value.current,
|
|
5092
5092
|
disabled: $.value,
|
|
@@ -5098,12 +5098,12 @@ const Ws = {
|
|
|
5098
5098
|
key: 1,
|
|
5099
5099
|
class: ce([{
|
|
5100
5100
|
"actions-bar bottom-center pb-2": !0,
|
|
5101
|
-
"px-0":
|
|
5101
|
+
"px-0": W.value
|
|
5102
5102
|
}, "still-cameras-wrapper"]),
|
|
5103
5103
|
style: { "z-index": "7" }
|
|
5104
5104
|
}, [
|
|
5105
5105
|
y(As, {
|
|
5106
|
-
"is-mobile-sized":
|
|
5106
|
+
"is-mobile-sized": W.value,
|
|
5107
5107
|
"still-cameras": J.value,
|
|
5108
5108
|
"current-camera": d.value,
|
|
5109
5109
|
disabled: $.value,
|
|
@@ -5148,7 +5148,7 @@ const Ws = {
|
|
|
5148
5148
|
"color-callback": p(s),
|
|
5149
5149
|
"current-camera": d.value,
|
|
5150
5150
|
"selected-id": p(g),
|
|
5151
|
-
activeStructureIds:
|
|
5151
|
+
activeStructureIds: re.value,
|
|
5152
5152
|
onOnClick: be,
|
|
5153
5153
|
onOnHoverOver: ue,
|
|
5154
5154
|
onOnHoverOut: Me,
|
|
@@ -5167,20 +5167,20 @@ const Ws = {
|
|
|
5167
5167
|
key: 2,
|
|
5168
5168
|
class: ce({
|
|
5169
5169
|
"actions-bar top-left pa-2 d-flex": !0,
|
|
5170
|
-
"px-0":
|
|
5170
|
+
"px-0": W.value
|
|
5171
5171
|
}),
|
|
5172
5172
|
style: { "z-index": "7" }
|
|
5173
5173
|
}, [
|
|
5174
5174
|
y(_s, {
|
|
5175
5175
|
class: "pr-2",
|
|
5176
|
-
"is-mobile-sized":
|
|
5176
|
+
"is-mobile-sized": W.value,
|
|
5177
5177
|
"current-camera": d.value,
|
|
5178
5178
|
"current-day": v.value,
|
|
5179
5179
|
disabled: $.value,
|
|
5180
5180
|
onOnDayChange: he
|
|
5181
5181
|
}, null, 8, ["is-mobile-sized", "current-camera", "current-day", "disabled"]),
|
|
5182
5182
|
y(Es, {
|
|
5183
|
-
"is-mobile-sized":
|
|
5183
|
+
"is-mobile-sized": W.value,
|
|
5184
5184
|
"current-day": v.value,
|
|
5185
5185
|
"current-time": S.value,
|
|
5186
5186
|
disabled: $.value,
|
|
@@ -5214,7 +5214,7 @@ const Ws = {
|
|
|
5214
5214
|
], 64);
|
|
5215
5215
|
};
|
|
5216
5216
|
}
|
|
5217
|
-
}), Rt = /* @__PURE__ */ te(Zs, [["__scopeId", "data-v-57d83a24"]]),
|
|
5217
|
+
}), Rt = /* @__PURE__ */ te(Zs, [["__scopeId", "data-v-57d83a24"]]), ei = {
|
|
5218
5218
|
install: function(n) {
|
|
5219
5219
|
n.component("VStructureChooser", Rt), n.component("VVirtualTour", Yl), n.component("VManualSlideShow", ls), n.component("VStructureChooser", Rt);
|
|
5220
5220
|
}
|
|
@@ -5230,5 +5230,5 @@ export {
|
|
|
5230
5230
|
Yl as VVirtualTour,
|
|
5231
5231
|
Hn as VZoomBox,
|
|
5232
5232
|
js as convertStructureChooserDataLegacyToV5,
|
|
5233
|
-
|
|
5233
|
+
ei as default
|
|
5234
5234
|
};
|