@qispace/vue3-player 0.1.62 → 0.1.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
var Et = Object.defineProperty;
|
|
2
|
-
var Tt = (u,
|
|
3
|
-
var ne = (u,
|
|
4
|
-
import { defineComponent as j, ref as d, computed as T, openBlock as p, createElementBlock as
|
|
2
|
+
var Tt = (u, n, e) => n in u ? Et(u, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[n] = e;
|
|
3
|
+
var ne = (u, n, e) => (Tt(u, typeof n != "symbol" ? n + "" : n, e), e);
|
|
4
|
+
import { defineComponent as j, ref as d, computed as T, openBlock as p, createElementBlock as x, watch as Y, onMounted as de, onBeforeUnmount as je, withDirectives as ve, createElementVNode as s, normalizeStyle as se, vShow as he, createVNode as k, Fragment as ce, renderList as me, createCommentVNode as O, inject as Be, resolveComponent as B, withCtx as b, toDisplayString as Q, unref as ae, createTextVNode as ee, normalizeClass as fe, createBlock as V, renderSlot as K, provide as Ze, reactive as dt, watchEffect as Ie, resolveDynamicComponent as yt, normalizeProps as tt, guardReactiveProps as nt, mergeProps as ye, nextTick as Se, Transition as Le, createSlots as Vt, pushScopeId as at, popScopeId as ot, vModelText as Bt, createStaticVNode as _t, onBeforeUpdate as Rt } from "vue";
|
|
5
5
|
import rt from "axios";
|
|
6
6
|
import * as Ot from "@qispace/player-core";
|
|
7
7
|
import * as Ve from "three";
|
|
8
8
|
class ge {
|
|
9
|
-
static async loadText(
|
|
10
|
-
return new ge().loadText(
|
|
9
|
+
static async loadText(n) {
|
|
10
|
+
return new ge().loadText(n);
|
|
11
11
|
}
|
|
12
|
-
static async loadJson(
|
|
13
|
-
return new ge().loadJson(
|
|
12
|
+
static async loadJson(n) {
|
|
13
|
+
return new ge().loadJson(n);
|
|
14
14
|
}
|
|
15
|
-
static async loadImage(
|
|
16
|
-
return new ge().loadImage(
|
|
15
|
+
static async loadImage(n) {
|
|
16
|
+
return new ge().loadImage(n);
|
|
17
17
|
}
|
|
18
|
-
static async loadImageData(
|
|
19
|
-
return new ge().loadImageData(
|
|
18
|
+
static async loadImageData(n) {
|
|
19
|
+
return new ge().loadImageData(n);
|
|
20
20
|
}
|
|
21
|
-
async loadText(
|
|
22
|
-
return (await rt.get(
|
|
21
|
+
async loadText(n) {
|
|
22
|
+
return (await rt.get(n)).data;
|
|
23
23
|
}
|
|
24
|
-
async loadJson(
|
|
25
|
-
return (await rt.get(
|
|
24
|
+
async loadJson(n) {
|
|
25
|
+
return (await rt.get(n)).data;
|
|
26
26
|
}
|
|
27
|
-
async loadImage(
|
|
28
|
-
return new Promise((e,
|
|
27
|
+
async loadImage(n) {
|
|
28
|
+
return new Promise((e, a) => {
|
|
29
29
|
const t = new Image();
|
|
30
30
|
t.crossOrigin = "anonymous", t.onload = () => {
|
|
31
31
|
e(t);
|
|
32
|
-
}, t.onerror =
|
|
32
|
+
}, t.onerror = a, t.src = n;
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
-
async loadImageData(
|
|
36
|
-
const e = await this.loadImage(
|
|
35
|
+
async loadImageData(n) {
|
|
36
|
+
const e = await this.loadImage(n), a = document.createElement("canvas");
|
|
37
37
|
try {
|
|
38
|
-
const t =
|
|
39
|
-
return
|
|
38
|
+
const t = a.getContext("2d");
|
|
39
|
+
return a.width = e.width, a.height = e.height, t.drawImage(e, 0, 0), a.toDataURL("image/png");
|
|
40
40
|
} finally {
|
|
41
|
-
|
|
41
|
+
a.remove();
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
const $t = /* @__PURE__ */ j({
|
|
46
46
|
__name: "VHoverProbe",
|
|
47
|
-
setup(u, { expose:
|
|
48
|
-
const e = d(),
|
|
49
|
-
return
|
|
50
|
-
isHoverEnabled:
|
|
51
|
-
}), (t, o) => (p(),
|
|
47
|
+
setup(u, { expose: n }) {
|
|
48
|
+
const e = d(), a = T(() => window.getComputedStyle(e.value).display === "none");
|
|
49
|
+
return n({
|
|
50
|
+
isHoverEnabled: a
|
|
51
|
+
}), (t, o) => (p(), x("div", {
|
|
52
52
|
ref_key: "hoverCheck",
|
|
53
53
|
ref: e,
|
|
54
54
|
class: "hover-check"
|
|
55
55
|
}, null, 512));
|
|
56
56
|
}
|
|
57
|
-
}), J = (u,
|
|
57
|
+
}), J = (u, n) => {
|
|
58
58
|
const e = u.__vccOpts || u;
|
|
59
|
-
for (const [
|
|
60
|
-
e[
|
|
59
|
+
for (const [a, t] of n)
|
|
60
|
+
e[a] = t;
|
|
61
61
|
return e;
|
|
62
62
|
}, Re = /* @__PURE__ */ J($t, [["__scopeId", "data-v-eb9b348d"]]);
|
|
63
|
-
function ie(u,
|
|
64
|
-
return typeof u == "string" ? `${u}${
|
|
63
|
+
function ie(u, n) {
|
|
64
|
+
return typeof u == "string" ? `${u}${n}` : u(n);
|
|
65
65
|
}
|
|
66
66
|
const Ut = /* @__PURE__ */ j({
|
|
67
67
|
__name: "VApartmentChooserRaster",
|
|
@@ -75,8 +75,8 @@ const Ut = /* @__PURE__ */ j({
|
|
|
75
75
|
drawObserver: {}
|
|
76
76
|
},
|
|
77
77
|
emits: ["selectUnit", "goToUnit", "hoverOver", "hoverOut", "pos"],
|
|
78
|
-
setup(u, { emit:
|
|
79
|
-
const e = u,
|
|
78
|
+
setup(u, { emit: n }) {
|
|
79
|
+
const e = u, a = n, t = d({ x: 0, y: 0, width: 0, height: 0 }), o = d(0), r = d(0), i = d(), v = d(), c = d(), l = d(), f = d(-1), C = d(!1), h = d(), m = d(), g = d({}), S = d("auto"), A = d(new ge()), y = d({}), $ = d(), M = d(), R = d(), I = d(), _ = d(), P = T(() => R.value.isHoverEnabled), D = T(() => ie(
|
|
80
80
|
e.cdnFileResolver,
|
|
81
81
|
`/scenedata${e.viewModel.currentScene}.png`
|
|
82
82
|
)), H = T(() => D.value in g.value ? g.value[D.value] : null), L = T(() => f.value < 0 ? !1 : e.sceneData.find((Z) => Z.index === f.value) || !1), E = T(() => ({
|
|
@@ -115,18 +115,18 @@ const Ut = /* @__PURE__ */ j({
|
|
|
115
115
|
), Y(L, () => {
|
|
116
116
|
Ce(), L.value ? S.value = "pointer" : S.value = "auto";
|
|
117
117
|
}), Y(z, () => {
|
|
118
|
-
C.value ?
|
|
118
|
+
C.value ? a("hoverOver", {
|
|
119
119
|
hoverUnit: L.value ? L.value.unitId : !1,
|
|
120
120
|
closeHandler: () => ze()
|
|
121
|
-
}) :
|
|
121
|
+
}) : a("hoverOut", {
|
|
122
122
|
hoverUnit: L.value ? L.value.unitId : !1,
|
|
123
123
|
closeHandler: () => ze()
|
|
124
124
|
});
|
|
125
125
|
}), Y(t, () => {
|
|
126
|
-
|
|
126
|
+
a("pos", t.value);
|
|
127
127
|
}), de(() => {
|
|
128
128
|
M.value = () => {
|
|
129
|
-
clearTimeout(
|
|
129
|
+
clearTimeout($.value), ke(), $.value = setTimeout(() => {
|
|
130
130
|
ke();
|
|
131
131
|
}, 50);
|
|
132
132
|
}, window.addEventListener("resize", M.value), ke();
|
|
@@ -149,11 +149,11 @@ const Ut = /* @__PURE__ */ j({
|
|
|
149
149
|
height: r.value
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function F(N) {
|
|
153
153
|
const Z = q(N.offsetX, N.offsetY);
|
|
154
|
-
Z < 0 || P &&
|
|
154
|
+
Z < 0 || P && xe(Z);
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function U() {
|
|
157
157
|
if (v.value && v.value.width) {
|
|
158
158
|
I.value.width = v.value.width, I.value.height = v.value.height, i.value.drawImage(
|
|
159
159
|
v.value,
|
|
@@ -219,12 +219,12 @@ const Ut = /* @__PURE__ */ j({
|
|
|
219
219
|
} else
|
|
220
220
|
return [];
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function xe(N) {
|
|
223
223
|
const Z = oe(N);
|
|
224
224
|
De(Z);
|
|
225
225
|
}
|
|
226
226
|
function De(N) {
|
|
227
|
-
|
|
227
|
+
a("selectUnit", N), N && e.canGoToUnitCallback(N) && a("goToUnit", N);
|
|
228
228
|
}
|
|
229
229
|
function we(N = 0) {
|
|
230
230
|
if (!c.value)
|
|
@@ -239,7 +239,7 @@ const Ut = /* @__PURE__ */ j({
|
|
|
239
239
|
o.value = _.value.offsetWidth, r.value = _.value.offsetHeight;
|
|
240
240
|
}
|
|
241
241
|
function Ee() {
|
|
242
|
-
|
|
242
|
+
U(), Ce();
|
|
243
243
|
}
|
|
244
244
|
function Ce() {
|
|
245
245
|
we(), te(), i.value && c.value && i.value.putImageData(c.value, 0, 0);
|
|
@@ -253,7 +253,7 @@ const Ut = /* @__PURE__ */ j({
|
|
|
253
253
|
$e.value && ($e.value = !1, N.apply(this, le), setTimeout(() => $e.value = !0, Z));
|
|
254
254
|
};
|
|
255
255
|
}
|
|
256
|
-
return (N, Z) => (p(),
|
|
256
|
+
return (N, Z) => (p(), x("div", {
|
|
257
257
|
ref_key: "container",
|
|
258
258
|
ref: _,
|
|
259
259
|
id: "canvas"
|
|
@@ -263,11 +263,11 @@ const Ut = /* @__PURE__ */ j({
|
|
|
263
263
|
ref_key: "canvas",
|
|
264
264
|
ref: I,
|
|
265
265
|
style: se(E.value),
|
|
266
|
-
onClick:
|
|
266
|
+
onClick: F
|
|
267
267
|
}, null, 4), [
|
|
268
268
|
[he, !N.viewModel.isRotating]
|
|
269
269
|
]),
|
|
270
|
-
|
|
270
|
+
k(Re, {
|
|
271
271
|
ref_key: "hoverProbe",
|
|
272
272
|
ref: R
|
|
273
273
|
}, null, 512)
|
|
@@ -285,8 +285,8 @@ const Ut = /* @__PURE__ */ j({
|
|
|
285
285
|
drawObserver: {}
|
|
286
286
|
},
|
|
287
287
|
emits: ["selectUnit", "goToUnit", "hoverOver", "hoverOut", "pos"],
|
|
288
|
-
setup(u, { emit:
|
|
289
|
-
const e = u,
|
|
288
|
+
setup(u, { emit: n }) {
|
|
289
|
+
const e = u, a = n, t = d({ x: 0, y: 0, width: 0, height: 0 }), o = d(-1), r = d({}), i = d(null), v = d(new ge()), c = d(), l = d(), f = T(() => l.value.isHoverEnabled);
|
|
290
290
|
Y(
|
|
291
291
|
() => e.viewModel.currentScene,
|
|
292
292
|
() => {
|
|
@@ -300,11 +300,11 @@ const Ut = /* @__PURE__ */ j({
|
|
|
300
300
|
},
|
|
301
301
|
{ immediate: !0 }
|
|
302
302
|
), Y(t, () => {
|
|
303
|
-
|
|
303
|
+
a("pos", t.value);
|
|
304
304
|
}), Y(o, (M, R) => {
|
|
305
305
|
if (M >= 0) {
|
|
306
306
|
const I = h(M);
|
|
307
|
-
|
|
307
|
+
a("hoverOver", {
|
|
308
308
|
hoverUnit: I,
|
|
309
309
|
closeHandler: () => {
|
|
310
310
|
o.value = -1;
|
|
@@ -312,7 +312,7 @@ const Ut = /* @__PURE__ */ j({
|
|
|
312
312
|
});
|
|
313
313
|
} else {
|
|
314
314
|
const I = h(R);
|
|
315
|
-
|
|
315
|
+
a("hoverOut", {
|
|
316
316
|
hoverUnit: I,
|
|
317
317
|
closeHandler: () => {
|
|
318
318
|
o.value = -1;
|
|
@@ -337,7 +337,7 @@ const Ut = /* @__PURE__ */ j({
|
|
|
337
337
|
})), r.value = { ...r.value, [M]: I };
|
|
338
338
|
});
|
|
339
339
|
}
|
|
340
|
-
c.value.addEventListener("mousemove",
|
|
340
|
+
c.value.addEventListener("mousemove", $(C, 50));
|
|
341
341
|
});
|
|
342
342
|
function C(M) {
|
|
343
343
|
t.value = {
|
|
@@ -361,7 +361,7 @@ const Ut = /* @__PURE__ */ j({
|
|
|
361
361
|
}
|
|
362
362
|
function S(M) {
|
|
363
363
|
const R = h(M);
|
|
364
|
-
|
|
364
|
+
a("selectUnit", R), f.value && R && e.canGoToUnitCallback(R) ? a("goToUnit", R) : o.value = M;
|
|
365
365
|
}
|
|
366
366
|
function A(M) {
|
|
367
367
|
const R = h(M);
|
|
@@ -389,12 +389,12 @@ const Ut = /* @__PURE__ */ j({
|
|
|
389
389
|
};
|
|
390
390
|
}
|
|
391
391
|
const y = d(!1);
|
|
392
|
-
function
|
|
392
|
+
function $(M, R) {
|
|
393
393
|
return y.value = !0, function(...I) {
|
|
394
394
|
y.value && (y.value = !1, M.apply(this, I), setTimeout(() => y.value = !0, R));
|
|
395
395
|
};
|
|
396
396
|
}
|
|
397
|
-
return (M, R) => (p(),
|
|
397
|
+
return (M, R) => (p(), x("div", {
|
|
398
398
|
id: "container",
|
|
399
399
|
ref_key: "container",
|
|
400
400
|
ref: c
|
|
@@ -405,11 +405,11 @@ const Ut = /* @__PURE__ */ j({
|
|
|
405
405
|
opacity: !i.value || !i.value.svgObjects ? 0 : 1
|
|
406
406
|
})
|
|
407
407
|
}, [
|
|
408
|
-
i.value && i.value.svgObjects ? (p(),
|
|
408
|
+
i.value && i.value.svgObjects ? (p(), x("svg", {
|
|
409
409
|
key: 0,
|
|
410
410
|
viewBox: i.value.viewBox
|
|
411
411
|
}, [
|
|
412
|
-
(p(!0),
|
|
412
|
+
(p(!0), x(ce, null, me(i.value.svgObjects, ({ index: I, svg: _ }) => (p(), x("g", {
|
|
413
413
|
key: I,
|
|
414
414
|
innerHTML: _,
|
|
415
415
|
style: se(A(I)),
|
|
@@ -417,11 +417,11 @@ const Ut = /* @__PURE__ */ j({
|
|
|
417
417
|
onMouseleave: (P) => g(),
|
|
418
418
|
onClick: (P) => S(I)
|
|
419
419
|
}, null, 44, Pt))), 128))
|
|
420
|
-
], 8, Yt)) :
|
|
420
|
+
], 8, Yt)) : O("", !0)
|
|
421
421
|
], 4), [
|
|
422
422
|
[he, !M.viewModel.isRotating]
|
|
423
423
|
]),
|
|
424
|
-
|
|
424
|
+
k(Re, {
|
|
425
425
|
ref_key: "hoverProbe",
|
|
426
426
|
ref: l
|
|
427
427
|
}, null, 512)
|
|
@@ -441,8 +441,8 @@ const Ut = /* @__PURE__ */ j({
|
|
|
441
441
|
viewModel: {}
|
|
442
442
|
},
|
|
443
443
|
emits: ["prevUnit", "nextUnit", "goToUnit"],
|
|
444
|
-
setup(u, { emit:
|
|
445
|
-
const e = u,
|
|
444
|
+
setup(u, { emit: n }) {
|
|
445
|
+
const e = u, a = T(() => e.selectedUnitId), t = T(() => e.nextUnitId), o = T(() => e.prevUnitId), r = n, i = Be(be);
|
|
446
446
|
de(() => {
|
|
447
447
|
window.addEventListener("keydown", v);
|
|
448
448
|
}), je(() => {
|
|
@@ -453,14 +453,14 @@ const Ut = /* @__PURE__ */ j({
|
|
|
453
453
|
}
|
|
454
454
|
return (c, l) => {
|
|
455
455
|
const f = B("v-btn");
|
|
456
|
-
return p(),
|
|
457
|
-
|
|
456
|
+
return p(), x("div", null, [
|
|
457
|
+
k(f, {
|
|
458
458
|
elevation: "1",
|
|
459
459
|
icon: "mdi-rotate-right",
|
|
460
460
|
class: "black darken-1",
|
|
461
461
|
onClick: l[0] || (l[0] = (C) => c.viewModel.rotateClockwise())
|
|
462
462
|
}),
|
|
463
|
-
|
|
463
|
+
k(f, {
|
|
464
464
|
elevation: "1",
|
|
465
465
|
plain: "",
|
|
466
466
|
icon: "mdi-chevron-left",
|
|
@@ -468,21 +468,21 @@ const Ut = /* @__PURE__ */ j({
|
|
|
468
468
|
disabled: !o.value,
|
|
469
469
|
onClick: l[1] || (l[1] = (C) => r("prevUnit"))
|
|
470
470
|
}, null, 8, ["disabled"]),
|
|
471
|
-
|
|
471
|
+
k(f, {
|
|
472
472
|
color: "darken-2",
|
|
473
473
|
elevation: "1",
|
|
474
474
|
rounded: "",
|
|
475
475
|
plain: "",
|
|
476
|
-
disabled: !
|
|
477
|
-
onClick: l[2] || (l[2] = (C) => r("goToUnit",
|
|
476
|
+
disabled: !a.value || !c.canGoToUnitCallback(a.value),
|
|
477
|
+
onClick: l[2] || (l[2] = (C) => r("goToUnit", a.value))
|
|
478
478
|
}, {
|
|
479
479
|
default: b(() => [
|
|
480
|
-
|
|
481
|
-
s("span", Nt, Q(
|
|
480
|
+
a.value && c.canGoToUnitCallback(a.value) ? (p(), x("span", zt, Q(ae(i).getLabel("seeApartment")) + " ", 1)) : O("", !0),
|
|
481
|
+
s("span", Nt, Q(a.value ? e.unitRenderer(a.value) : "-"), 1)
|
|
482
482
|
]),
|
|
483
483
|
_: 1
|
|
484
484
|
}, 8, ["disabled"]),
|
|
485
|
-
|
|
485
|
+
k(f, {
|
|
486
486
|
elevation: "1",
|
|
487
487
|
plain: "",
|
|
488
488
|
icon: "mdi-chevron-right",
|
|
@@ -490,7 +490,7 @@ const Ut = /* @__PURE__ */ j({
|
|
|
490
490
|
disabled: !t.value,
|
|
491
491
|
onClick: l[3] || (l[3] = (C) => r("nextUnit"))
|
|
492
492
|
}, null, 8, ["disabled"]),
|
|
493
|
-
|
|
493
|
+
k(f, {
|
|
494
494
|
elevation: "1",
|
|
495
495
|
plain: "",
|
|
496
496
|
icon: "mdi-rotate-left",
|
|
@@ -502,26 +502,26 @@ const Ut = /* @__PURE__ */ j({
|
|
|
502
502
|
}
|
|
503
503
|
}), Qt = /* @__PURE__ */ J(Gt, [["__scopeId", "data-v-44ed308e"]]);
|
|
504
504
|
class ut {
|
|
505
|
-
constructor(
|
|
505
|
+
constructor(n) {
|
|
506
506
|
ne(this, "_numParts");
|
|
507
507
|
ne(this, "_loadedCount");
|
|
508
508
|
ne(this, "_isError");
|
|
509
509
|
ne(this, "_finishedAction");
|
|
510
510
|
ne(this, "_errorAction");
|
|
511
511
|
ne(this, "_loadProgressAction");
|
|
512
|
-
this._numParts =
|
|
512
|
+
this._numParts = n, this._loadedCount = 0, this._isError = !1, this._finishedAction = () => {
|
|
513
513
|
}, this._errorAction = () => {
|
|
514
514
|
}, this._loadProgressAction = () => {
|
|
515
515
|
};
|
|
516
516
|
}
|
|
517
|
-
onLoadFinished(
|
|
518
|
-
return this._finishedAction =
|
|
517
|
+
onLoadFinished(n) {
|
|
518
|
+
return this._finishedAction = n, this;
|
|
519
519
|
}
|
|
520
|
-
onLoadError(
|
|
521
|
-
return this._errorAction =
|
|
520
|
+
onLoadError(n) {
|
|
521
|
+
return this._errorAction = n, this;
|
|
522
522
|
}
|
|
523
|
-
onLoadProgress(
|
|
524
|
-
return this._loadProgressAction =
|
|
523
|
+
onLoadProgress(n) {
|
|
524
|
+
return this._loadProgressAction = n, this;
|
|
525
525
|
}
|
|
526
526
|
partLoaded() {
|
|
527
527
|
this.isFinished || (this._loadedCount++, this._loadProgressAction(this.percentLoaded), this.isFinished && this._finishedAction());
|
|
@@ -540,12 +540,12 @@ class ut {
|
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
class vt {
|
|
543
|
-
constructor(
|
|
543
|
+
constructor(n, e, a, t) {
|
|
544
544
|
ne(this, "_rotator");
|
|
545
545
|
ne(this, "_direction");
|
|
546
546
|
ne(this, "_frameIndex");
|
|
547
547
|
ne(this, "_sceneCount");
|
|
548
|
-
this._rotator =
|
|
548
|
+
this._rotator = n, this._direction = e, this._frameIndex = a, this._sceneCount = t;
|
|
549
549
|
}
|
|
550
550
|
get atEnd() {
|
|
551
551
|
return this._sceneCount === 0;
|
|
@@ -554,35 +554,35 @@ class vt {
|
|
|
554
554
|
return this._frameIndex;
|
|
555
555
|
}
|
|
556
556
|
nextFrame() {
|
|
557
|
-
const
|
|
557
|
+
const n = this._rotator.clampFrameIndex(
|
|
558
558
|
this._frameIndex + this._direction
|
|
559
|
-
), e = this._rotator.isCardinalFrame(
|
|
559
|
+
), e = this._rotator.isCardinalFrame(n) ? this._sceneCount - 1 : this._sceneCount;
|
|
560
560
|
return new vt(
|
|
561
561
|
this._rotator,
|
|
562
562
|
this._direction,
|
|
563
|
-
|
|
563
|
+
n,
|
|
564
564
|
e
|
|
565
565
|
);
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
class qt {
|
|
569
|
-
constructor(
|
|
569
|
+
constructor(n, e) {
|
|
570
570
|
ne(this, "_cardinalFrames");
|
|
571
571
|
ne(this, "_totalFrameCount");
|
|
572
|
-
this._cardinalFrames =
|
|
572
|
+
this._cardinalFrames = n, this._totalFrameCount = e;
|
|
573
573
|
}
|
|
574
|
-
start(
|
|
574
|
+
start(n, e, a) {
|
|
575
575
|
const t = this.startFrameIndexForScene(e);
|
|
576
|
-
return new vt(this,
|
|
576
|
+
return new vt(this, n, t, a);
|
|
577
577
|
}
|
|
578
|
-
isCardinalFrame(
|
|
579
|
-
return this._cardinalFrames.includes(
|
|
578
|
+
isCardinalFrame(n) {
|
|
579
|
+
return this._cardinalFrames.includes(n);
|
|
580
580
|
}
|
|
581
|
-
clampFrameIndex(
|
|
582
|
-
return (this._totalFrameCount +
|
|
581
|
+
clampFrameIndex(n) {
|
|
582
|
+
return (this._totalFrameCount + n) % this._totalFrameCount;
|
|
583
583
|
}
|
|
584
|
-
startFrameIndexForScene(
|
|
585
|
-
return this._cardinalFrames[
|
|
584
|
+
startFrameIndexForScene(n) {
|
|
585
|
+
return this._cardinalFrames[n];
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
588
|
const Zt = {
|
|
@@ -607,27 +607,27 @@ const Zt = {
|
|
|
607
607
|
cardinalFrames: {}
|
|
608
608
|
},
|
|
609
609
|
emits: ["loaded", "error", "progress"],
|
|
610
|
-
setup(u, { emit:
|
|
611
|
-
const e = u,
|
|
612
|
-
new ut(t.length).onLoadFinished(() =>
|
|
610
|
+
setup(u, { emit: n }) {
|
|
611
|
+
const e = u, a = n, t = h(), o = d(
|
|
612
|
+
new ut(t.length).onLoadFinished(() => a("loaded")).onLoadProgress((A) => a("progress", A)).onLoadError(() => a("error"))
|
|
613
613
|
), r = d(
|
|
614
614
|
new qt(e.cardinalFrames, ht)
|
|
615
615
|
), i = d(t), v = d(!1), c = T(() => i.value.find((A) => A.show));
|
|
616
616
|
Y(
|
|
617
617
|
() => e.viewModel.currentScene,
|
|
618
618
|
(A, y) => {
|
|
619
|
-
const
|
|
620
|
-
l(y,
|
|
619
|
+
const $ = S(y, A), M = g(y, A);
|
|
620
|
+
l(y, $, M);
|
|
621
621
|
}
|
|
622
622
|
), de(() => {
|
|
623
623
|
C();
|
|
624
624
|
});
|
|
625
|
-
function l(A, y,
|
|
625
|
+
function l(A, y, $) {
|
|
626
626
|
e.viewModel.isRotating || (e.viewModel.isRotating = !0, f(
|
|
627
627
|
r.value.start(
|
|
628
628
|
y,
|
|
629
629
|
A % Qe,
|
|
630
|
-
|
|
630
|
+
$
|
|
631
631
|
)
|
|
632
632
|
));
|
|
633
633
|
}
|
|
@@ -647,10 +647,10 @@ const Zt = {
|
|
|
647
647
|
function h() {
|
|
648
648
|
const A = [];
|
|
649
649
|
for (let y = 0; y < ht; y++) {
|
|
650
|
-
const { sourceSet:
|
|
650
|
+
const { sourceSet: $, defaultPath: M } = m(y);
|
|
651
651
|
A.push({
|
|
652
652
|
index: y,
|
|
653
|
-
sourceSet:
|
|
653
|
+
sourceSet: $,
|
|
654
654
|
defaultPath: M,
|
|
655
655
|
show: !1
|
|
656
656
|
});
|
|
@@ -658,28 +658,28 @@ const Zt = {
|
|
|
658
658
|
return A;
|
|
659
659
|
}
|
|
660
660
|
function m(A) {
|
|
661
|
-
const y = ("0000" + (A + 1)).slice(-4),
|
|
661
|
+
const y = ("0000" + (A + 1)).slice(-4), $ = e.build ? `?v=${e.build}` : "", M = [
|
|
662
662
|
`${ie(
|
|
663
663
|
e.cdnFileResolver,
|
|
664
|
-
`/480/${y}.jpg${
|
|
664
|
+
`/480/${y}.jpg${$}`
|
|
665
665
|
)} 480w`,
|
|
666
666
|
`${ie(
|
|
667
667
|
e.cdnFileResolver,
|
|
668
|
-
`/960/${y}.jpg${
|
|
668
|
+
`/960/${y}.jpg${$}`
|
|
669
669
|
)} 960w`,
|
|
670
670
|
`${ie(
|
|
671
671
|
e.cdnFileResolver,
|
|
672
|
-
`/1280/${y}.jpg${
|
|
672
|
+
`/1280/${y}.jpg${$}`
|
|
673
673
|
)} 1280w`
|
|
674
674
|
].join(","), R = ie(
|
|
675
675
|
e.cdnFileResolver,
|
|
676
|
-
`/480/${y}.jpg${
|
|
676
|
+
`/480/${y}.jpg${$}`
|
|
677
677
|
);
|
|
678
678
|
return { sourceSet: M, defaultPath: R };
|
|
679
679
|
}
|
|
680
680
|
function g(A, y) {
|
|
681
|
-
const
|
|
682
|
-
return M >
|
|
681
|
+
const $ = Qe / 2, M = Math.abs(A - y);
|
|
682
|
+
return M > $ ? Qe - M : M;
|
|
683
683
|
}
|
|
684
684
|
function S(A, y) {
|
|
685
685
|
if (A === y)
|
|
@@ -688,17 +688,17 @@ const Zt = {
|
|
|
688
688
|
return M && A < y || !M && A > y ? 1 : -1;
|
|
689
689
|
}
|
|
690
690
|
return (A, y) => {
|
|
691
|
-
const
|
|
692
|
-
return p(),
|
|
693
|
-
o.value.isError ? (p(),
|
|
694
|
-
|
|
691
|
+
const $ = B("v-icon");
|
|
692
|
+
return p(), x("div", null, [
|
|
693
|
+
o.value.isError ? (p(), x("div", Zt, [
|
|
694
|
+
k($, { "x-large": "" }, {
|
|
695
695
|
default: b(() => [
|
|
696
696
|
ee("mdi-alert-circle-outline")
|
|
697
697
|
]),
|
|
698
698
|
_: 1
|
|
699
699
|
})
|
|
700
|
-
])) : v.value ? (p(),
|
|
701
|
-
(p(!0),
|
|
700
|
+
])) : v.value ? (p(), x("div", tn, [
|
|
701
|
+
(p(!0), x(ce, null, me(i.value, (M) => (p(), x("picture", {
|
|
702
702
|
key: M.index,
|
|
703
703
|
alt: M.index,
|
|
704
704
|
class: fe({ "frame-image": !0, show: M.show })
|
|
@@ -714,8 +714,8 @@ const Zt = {
|
|
|
714
714
|
onError: y[3] || (y[3] = (R) => o.value.errorDetected())
|
|
715
715
|
}, null, 40, on)
|
|
716
716
|
], 10, nn))), 128))
|
|
717
|
-
])) : (p(),
|
|
718
|
-
c.value ? (p(),
|
|
717
|
+
])) : (p(), x("div", Jt, [
|
|
718
|
+
c.value ? (p(), x("picture", Xt, [
|
|
719
719
|
s("source", {
|
|
720
720
|
srcset: c.value.sourceSet,
|
|
721
721
|
type: "image/jpeg"
|
|
@@ -725,7 +725,7 @@ const Zt = {
|
|
|
725
725
|
onLoad: y[0] || (y[0] = (M) => v.value = !0),
|
|
726
726
|
onError: y[1] || (y[1] = (M) => o.value.errorDetected())
|
|
727
727
|
}, null, 40, en)
|
|
728
|
-
])) :
|
|
728
|
+
])) : O("", !0)
|
|
729
729
|
]))
|
|
730
730
|
]);
|
|
731
731
|
};
|
|
@@ -737,8 +737,8 @@ const Zt = {
|
|
|
737
737
|
isHoverable: { type: Boolean }
|
|
738
738
|
},
|
|
739
739
|
emits: ["outside"],
|
|
740
|
-
setup(u, { emit:
|
|
741
|
-
const e = u,
|
|
740
|
+
setup(u, { emit: n }) {
|
|
741
|
+
const e = u, a = n, t = T(() => {
|
|
742
742
|
let o, r, i, v;
|
|
743
743
|
return e.pos.x <= e.pos.width / 2 ? (o = "-100%", i = "-8px") : (o = "0%", i = "8px"), e.pos.y <= e.pos.height / 2 ? (r = "-100%", v = "-8px") : (r = "0%", v = "8px"), `translate(${o}, ${r}) translate(${i}, ${v})`;
|
|
744
744
|
});
|
|
@@ -748,7 +748,7 @@ const Zt = {
|
|
|
748
748
|
origin: `top left ${o.pos.x} ${o.pos.y}`
|
|
749
749
|
}, {
|
|
750
750
|
default: b(() => [
|
|
751
|
-
o.isHoverable ? (p(),
|
|
751
|
+
o.isHoverable ? (p(), x("div", {
|
|
752
752
|
key: 0,
|
|
753
753
|
class: "floating-card",
|
|
754
754
|
style: se({
|
|
@@ -763,7 +763,7 @@ const Zt = {
|
|
|
763
763
|
key: 1,
|
|
764
764
|
value: !0,
|
|
765
765
|
width: "auto",
|
|
766
|
-
"onClick:outside": r[0] || (r[0] = (c) =>
|
|
766
|
+
"onClick:outside": r[0] || (r[0] = (c) => a("outside", c))
|
|
767
767
|
}, {
|
|
768
768
|
default: b(() => [
|
|
769
769
|
K(o.$slots, "default", { isHoverable: o.isHoverable }, void 0, !0)
|
|
@@ -786,8 +786,8 @@ const Zt = {
|
|
|
786
786
|
position: { default: "absolute" }
|
|
787
787
|
},
|
|
788
788
|
emits: ["update"],
|
|
789
|
-
setup(u, { emit:
|
|
790
|
-
const e = u,
|
|
789
|
+
setup(u, { emit: n }) {
|
|
790
|
+
const e = u, a = n, t = d(100), o = d(0), r = d(0), i = d(!1), v = d(!1), c = d(void 0), l = d(!1), f = d(), C = T(() => `translateX(${o.value}px) translateY(${r.value}px) scale(${h.value})`), h = T(() => t.value / 100), m = T(() => e.maxScale * 100);
|
|
791
791
|
Y([h, o, r], () => {
|
|
792
792
|
ue();
|
|
793
793
|
}), Y(
|
|
@@ -806,7 +806,7 @@ const Zt = {
|
|
|
806
806
|
e.desktop && A(), e.mobile && y();
|
|
807
807
|
});
|
|
808
808
|
function g() {
|
|
809
|
-
f.value.addEventListener("wheel",
|
|
809
|
+
f.value.addEventListener("wheel", $, {
|
|
810
810
|
capture: !0
|
|
811
811
|
}), f.value.addEventListener("mousedown", M, {
|
|
812
812
|
capture: !0
|
|
@@ -830,7 +830,7 @@ const Zt = {
|
|
|
830
830
|
});
|
|
831
831
|
}
|
|
832
832
|
function A() {
|
|
833
|
-
f.value.removeEventListener("wheel",
|
|
833
|
+
f.value.removeEventListener("wheel", $, {
|
|
834
834
|
capture: !0
|
|
835
835
|
}), f.value.removeEventListener("mousedown", M, {
|
|
836
836
|
capture: !0
|
|
@@ -853,86 +853,86 @@ const Zt = {
|
|
|
853
853
|
capture: !0
|
|
854
854
|
});
|
|
855
855
|
}
|
|
856
|
-
function
|
|
857
|
-
const { x:
|
|
858
|
-
W(-
|
|
856
|
+
function $(F) {
|
|
857
|
+
const { x: U, y: q } = L(F);
|
|
858
|
+
W(-F.deltaY / 10, U, q), F.preventDefault();
|
|
859
859
|
}
|
|
860
|
-
function M(
|
|
861
|
-
i.value = !0, l.value = !1, c.value =
|
|
860
|
+
function M(F) {
|
|
861
|
+
i.value = !0, l.value = !1, c.value = F;
|
|
862
862
|
}
|
|
863
|
-
function R(
|
|
863
|
+
function R(F) {
|
|
864
864
|
if (i.value) {
|
|
865
|
-
const { x:
|
|
866
|
-
x:
|
|
865
|
+
const { x: U, y: q } = L(F), { x: te, y: re } = L(c.value), oe = {
|
|
866
|
+
x: U - te,
|
|
867
867
|
y: q - re
|
|
868
868
|
};
|
|
869
|
-
E(oe.x), z(oe.y), l.value = !0, c.value =
|
|
869
|
+
E(oe.x), z(oe.y), l.value = !0, c.value = F;
|
|
870
870
|
}
|
|
871
871
|
}
|
|
872
|
-
function I(
|
|
873
|
-
i.value && l.value && e.consumeMouseUpWhenMoved && (
|
|
872
|
+
function I(F) {
|
|
873
|
+
i.value && l.value && e.consumeMouseUpWhenMoved && (F.preventDefault(), F.stopImmediatePropagation());
|
|
874
874
|
}
|
|
875
|
-
function _(
|
|
876
|
-
i.value && (l.value && e.consumeMouseClickWhenMoved && (
|
|
875
|
+
function _(F) {
|
|
876
|
+
i.value && (l.value && e.consumeMouseClickWhenMoved && (F.preventDefault(), F.stopImmediatePropagation()), i.value = !1);
|
|
877
877
|
}
|
|
878
|
-
function P(
|
|
879
|
-
i.value =
|
|
878
|
+
function P(F) {
|
|
879
|
+
i.value = F.touches.length === 1, v.value = F.touches.length === 2, c.value = F;
|
|
880
880
|
}
|
|
881
|
-
function D(
|
|
881
|
+
function D(F) {
|
|
882
882
|
if (i.value) {
|
|
883
|
-
const { x:
|
|
884
|
-
x:
|
|
883
|
+
const { x: U, y: q } = L(F.touches[0]), { x: te, y: re } = L(c.value.touches[0]), oe = {
|
|
884
|
+
x: U - te,
|
|
885
885
|
y: q - re
|
|
886
886
|
};
|
|
887
887
|
E(oe.x), z(oe.y);
|
|
888
|
-
} else if (v.value &&
|
|
889
|
-
const { x:
|
|
888
|
+
} else if (v.value && F.touches.length === 2) {
|
|
889
|
+
const { x: U, y: q } = L(F.touches[0]), { x: te, y: re } = L(c.value.touches[0]), { x: oe, y: Ae } = L(F.touches[1]), { x: xe, y: De } = L(c.value.touches[1]), we = Math.hypot(te - xe, re - De), ke = Math.hypot(U - oe, q - Ae), Ee = (oe + U) / 2, Ce = (Ae + q) / 2;
|
|
890
890
|
W(ke - we, Ee, Ce);
|
|
891
891
|
}
|
|
892
|
-
c.value =
|
|
892
|
+
c.value = F;
|
|
893
893
|
}
|
|
894
894
|
function H() {
|
|
895
895
|
i.value = !1, v.value = !1;
|
|
896
896
|
}
|
|
897
|
-
function L(
|
|
898
|
-
const { left:
|
|
897
|
+
function L(F) {
|
|
898
|
+
const { left: U, top: q } = f.value.getBoundingClientRect();
|
|
899
899
|
return {
|
|
900
|
-
x:
|
|
901
|
-
y:
|
|
900
|
+
x: F.clientX - U,
|
|
901
|
+
y: F.clientY - q
|
|
902
902
|
};
|
|
903
903
|
}
|
|
904
|
-
function E(
|
|
905
|
-
const
|
|
904
|
+
function E(F) {
|
|
905
|
+
const U = f.value.clientWidth, q = U * h.value;
|
|
906
906
|
o.value = Math.max(
|
|
907
|
-
Math.min(0, o.value +
|
|
908
|
-
-(q -
|
|
907
|
+
Math.min(0, o.value + F),
|
|
908
|
+
-(q - U)
|
|
909
909
|
);
|
|
910
910
|
}
|
|
911
|
-
function z(
|
|
912
|
-
const
|
|
911
|
+
function z(F) {
|
|
912
|
+
const U = f.value.clientHeight, q = U * h.value;
|
|
913
913
|
r.value = Math.max(
|
|
914
|
-
Math.min(0, r.value +
|
|
915
|
-
-(q -
|
|
914
|
+
Math.min(0, r.value + F),
|
|
915
|
+
-(q - U)
|
|
916
916
|
);
|
|
917
917
|
}
|
|
918
|
-
function W(
|
|
918
|
+
function W(F, U, q) {
|
|
919
919
|
const te = f.value.clientWidth, re = f.value.clientHeight, oe = te * h.value, Ae = re * h.value;
|
|
920
|
-
t.value = Math.min(Math.max(100, t.value +
|
|
921
|
-
const
|
|
922
|
-
o.value -=
|
|
920
|
+
t.value = Math.min(Math.max(100, t.value + F), m.value);
|
|
921
|
+
const xe = te * h.value, De = re * h.value, we = xe - oe, ke = De - Ae;
|
|
922
|
+
o.value -= U / te * we, r.value -= q / re * ke, E(0), z(0);
|
|
923
923
|
}
|
|
924
924
|
function ue() {
|
|
925
|
-
|
|
925
|
+
a("update", {
|
|
926
926
|
scale: h.value,
|
|
927
927
|
x: o.value,
|
|
928
928
|
y: r.value,
|
|
929
|
-
resolve: (
|
|
930
|
-
const q = f.value.clientWidth, te = f.value.clientHeight, re = o.value / -h.value, oe = r.value / -h.value, Ae = re + q / h.value,
|
|
929
|
+
resolve: (F, U) => {
|
|
930
|
+
const q = f.value.clientWidth, te = f.value.clientHeight, re = o.value / -h.value, oe = r.value / -h.value, Ae = re + q / h.value, xe = oe + te / h.value, De = F / q * (Ae - re) + re, we = U / te * (xe - oe) + oe;
|
|
931
931
|
return { x: De, y: we };
|
|
932
932
|
}
|
|
933
933
|
});
|
|
934
934
|
}
|
|
935
|
-
return (
|
|
935
|
+
return (F, U) => (p(), x("div", {
|
|
936
936
|
ref_key: "box",
|
|
937
937
|
ref: f,
|
|
938
938
|
class: "zoom-box-container",
|
|
@@ -942,7 +942,7 @@ const Zt = {
|
|
|
942
942
|
style: se({ "transform-origin": "top left", transform: C.value }),
|
|
943
943
|
class: "zoom-box"
|
|
944
944
|
}, [
|
|
945
|
-
K(
|
|
945
|
+
K(F.$slots, "default", {}, void 0, !0)
|
|
946
946
|
], 4)
|
|
947
947
|
], 4));
|
|
948
948
|
}
|
|
@@ -954,27 +954,27 @@ function dn(u) {
|
|
|
954
954
|
return u > 1 ? u - 1 : mt;
|
|
955
955
|
}
|
|
956
956
|
class vn {
|
|
957
|
-
constructor(
|
|
957
|
+
constructor(n) {
|
|
958
958
|
ne(this, "_state");
|
|
959
959
|
this._state = {
|
|
960
960
|
isRotating: !1,
|
|
961
|
-
currentScene:
|
|
961
|
+
currentScene: n
|
|
962
962
|
};
|
|
963
963
|
}
|
|
964
964
|
get isRotating() {
|
|
965
965
|
return this._state.isRotating;
|
|
966
966
|
}
|
|
967
|
-
set isRotating(
|
|
968
|
-
this._state.isRotating =
|
|
967
|
+
set isRotating(n) {
|
|
968
|
+
this._state.isRotating = n;
|
|
969
969
|
}
|
|
970
|
-
unlessRotatingDo(
|
|
971
|
-
this.isRotating ||
|
|
970
|
+
unlessRotatingDo(n) {
|
|
971
|
+
this.isRotating || n();
|
|
972
972
|
}
|
|
973
973
|
get currentScene() {
|
|
974
974
|
return this._state.currentScene;
|
|
975
975
|
}
|
|
976
|
-
set currentScene(
|
|
977
|
-
this._state.currentScene =
|
|
976
|
+
set currentScene(n) {
|
|
977
|
+
this._state.currentScene = n;
|
|
978
978
|
}
|
|
979
979
|
rotateCounterClockwise() {
|
|
980
980
|
this.unlessRotatingDo(() => {
|
|
@@ -1042,23 +1042,23 @@ const mn = {
|
|
|
1042
1042
|
},
|
|
1043
1043
|
dontShowAgain: { en: "Don't Show Again", nb: "Ikke vis igjen" }
|
|
1044
1044
|
};
|
|
1045
|
-
class
|
|
1046
|
-
constructor({ labels:
|
|
1045
|
+
class Fe {
|
|
1046
|
+
constructor({ labels: n, language: e } = { labels: null, language: null }) {
|
|
1047
1047
|
ne(this, "_labels");
|
|
1048
1048
|
ne(this, "_language");
|
|
1049
|
-
this._labels = { ...mn, ...
|
|
1050
|
-
}
|
|
1051
|
-
getLabel(
|
|
1052
|
-
return
|
|
1053
|
-
}
|
|
1054
|
-
get(
|
|
1055
|
-
if (typeof
|
|
1056
|
-
return
|
|
1057
|
-
if (this._language in
|
|
1058
|
-
return
|
|
1059
|
-
for (const e in
|
|
1060
|
-
if (
|
|
1061
|
-
return
|
|
1049
|
+
this._labels = { ...mn, ...n || {} }, this._language = e || "en";
|
|
1050
|
+
}
|
|
1051
|
+
getLabel(n) {
|
|
1052
|
+
return n in this._labels ? this.get(this._labels[n]) : n;
|
|
1053
|
+
}
|
|
1054
|
+
get(n) {
|
|
1055
|
+
if (typeof n == "string")
|
|
1056
|
+
return n;
|
|
1057
|
+
if (this._language in n && n[this._language])
|
|
1058
|
+
return n[this._language];
|
|
1059
|
+
for (const e in n)
|
|
1060
|
+
if (n[e])
|
|
1061
|
+
return n[e];
|
|
1062
1062
|
return "";
|
|
1063
1063
|
}
|
|
1064
1064
|
}
|
|
@@ -1085,24 +1085,24 @@ const pn = { key: 0 }, fn = { class: "interactive-viewer" }, hn = { class: "fill
|
|
|
1085
1085
|
useSvg: { type: Boolean, default: !1 }
|
|
1086
1086
|
},
|
|
1087
1087
|
emits: ["selectUnit", "goToUnit", "navUnit", "hoverOverUnit", "hoverOutUnit", "initialized"],
|
|
1088
|
-
setup(u, { emit:
|
|
1089
|
-
const e = [0, 16, 32, 48],
|
|
1088
|
+
setup(u, { emit: n }) {
|
|
1089
|
+
const e = [0, 16, 32, 48], a = u, t = n;
|
|
1090
1090
|
Ze(
|
|
1091
1091
|
be,
|
|
1092
|
-
|
|
1092
|
+
a.i18nConfig ? new Fe(a.i18nConfig) : new Fe()
|
|
1093
1093
|
);
|
|
1094
|
-
const o = dt({ isReady: !1, isError: !1 }), r = d(), i = d(), v = d(), c = d(), l = d({ x: 0, y: 0, width: 0, height: 0 }), f = d(), C = d(), h = d(), m = T(() => h.value.isHoverEnabled), g = T(() =>
|
|
1094
|
+
const o = dt({ isReady: !1, isError: !1 }), r = d(), i = d(), v = d(), c = d(), l = d({ x: 0, y: 0, width: 0, height: 0 }), f = d(), C = d(), h = d(), m = T(() => h.value.isHoverEnabled), g = T(() => a.useSvg ? Wt : Ht), S = T(() => a.selectedUnitId), A = T(() => a.nextUnitId), y = T(() => a.prevUnitId);
|
|
1095
1095
|
Ie(() => {
|
|
1096
1096
|
if (S.value && c.value) {
|
|
1097
1097
|
const I = r.value[S.value];
|
|
1098
1098
|
I && (c.value.currentScene = I);
|
|
1099
1099
|
}
|
|
1100
1100
|
}), de(async () => {
|
|
1101
|
-
const I =
|
|
1102
|
-
v.value =
|
|
1101
|
+
const I = a.apartmentChooserData && a.apartmentChooserData.startScene !== void 0 ? a.apartmentChooserData.startScene : bn;
|
|
1102
|
+
v.value = a.apartmentChooserData && a.apartmentChooserData.scenes !== void 0 ? a.apartmentChooserData.scenes : e, i.value = a.apartmentChooserData && a.apartmentChooserData.sceneData !== void 0 ? a.apartmentChooserData.sceneData.map((D) => ({
|
|
1103
1103
|
unitId: D.apartmentID,
|
|
1104
1104
|
index: D.index
|
|
1105
|
-
})) : [], r.value =
|
|
1105
|
+
})) : [], r.value = a.apartmentChooserData && a.apartmentChooserData.sceneData !== void 0 ? a.apartmentChooserData.sceneData.map((D) => {
|
|
1106
1106
|
const H = D.bestScene === 0 ? 4 : D.bestScene;
|
|
1107
1107
|
return { unitId: D.apartmentID, scene: H };
|
|
1108
1108
|
}).reduce((D, H) => ({ ...D, [H.unitId]: H.scene }), {}) : {};
|
|
@@ -1112,11 +1112,11 @@ const pn = { key: 0 }, fn = { class: "interactive-viewer" }, hn = { class: "fill
|
|
|
1112
1112
|
E.push(L), L = bt(L);
|
|
1113
1113
|
return D.sort((z, W) => {
|
|
1114
1114
|
const ue = E.findIndex(
|
|
1115
|
-
(
|
|
1116
|
-
),
|
|
1117
|
-
(
|
|
1115
|
+
(U) => U === r.value[z[H]]
|
|
1116
|
+
), F = E.findIndex(
|
|
1117
|
+
(U) => U === r.value[W[H]]
|
|
1118
1118
|
);
|
|
1119
|
-
return ue <
|
|
1119
|
+
return ue < F ? -1 : ue > F ? 1 : 0;
|
|
1120
1120
|
}), D;
|
|
1121
1121
|
}, P = (D) => {
|
|
1122
1122
|
c.value = new vn(D);
|
|
@@ -1130,7 +1130,7 @@ const pn = { key: 0 }, fn = { class: "interactive-viewer" }, hn = { class: "fill
|
|
|
1130
1130
|
initialize: P
|
|
1131
1131
|
});
|
|
1132
1132
|
});
|
|
1133
|
-
function
|
|
1133
|
+
function $(I) {
|
|
1134
1134
|
l.value = I;
|
|
1135
1135
|
}
|
|
1136
1136
|
function M(I) {
|
|
@@ -1141,15 +1141,15 @@ const pn = { key: 0 }, fn = { class: "interactive-viewer" }, hn = { class: "fill
|
|
|
1141
1141
|
}
|
|
1142
1142
|
return (I, _) => {
|
|
1143
1143
|
const P = B("v-progress-linear");
|
|
1144
|
-
return c.value ? (p(),
|
|
1144
|
+
return c.value ? (p(), x("div", pn, [
|
|
1145
1145
|
s("div", fn, [
|
|
1146
1146
|
s("div", hn, [
|
|
1147
|
-
|
|
1147
|
+
k(Xe, {
|
|
1148
1148
|
desktop: o.isReady && I.interactiveDesktop,
|
|
1149
1149
|
mobile: o.isReady && I.interactiveMobile
|
|
1150
1150
|
}, {
|
|
1151
1151
|
default: b(() => [
|
|
1152
|
-
|
|
1152
|
+
k(rn, {
|
|
1153
1153
|
"cdn-file-resolver": I.cdnFileResolver,
|
|
1154
1154
|
"view-model": c.value,
|
|
1155
1155
|
"cardinal-frames": v.value,
|
|
@@ -1158,27 +1158,27 @@ const pn = { key: 0 }, fn = { class: "interactive-viewer" }, hn = { class: "fill
|
|
|
1158
1158
|
onLoaded: _[1] || (_[1] = (D) => o.isReady = !0),
|
|
1159
1159
|
onError: _[2] || (_[2] = (D) => o.isError = !0)
|
|
1160
1160
|
}, null, 8, ["cdn-file-resolver", "view-model", "cardinal-frames", "build"]),
|
|
1161
|
-
o.isReady ? (p(),
|
|
1161
|
+
o.isReady ? (p(), x("div", gn, [
|
|
1162
1162
|
(p(), V(yt(g.value), {
|
|
1163
|
-
"cdn-file-resolver":
|
|
1163
|
+
"cdn-file-resolver": a.cdnFileResolver,
|
|
1164
1164
|
"view-model": c.value,
|
|
1165
1165
|
"selected-unit-id": S.value,
|
|
1166
1166
|
"scene-data": i.value,
|
|
1167
|
-
"color-callback":
|
|
1168
|
-
"can-go-to-unit-callback":
|
|
1169
|
-
"draw-observer":
|
|
1167
|
+
"color-callback": a.colorCallback,
|
|
1168
|
+
"can-go-to-unit-callback": a.canGoToUnitCallback,
|
|
1169
|
+
"draw-observer": a.drawObserver,
|
|
1170
1170
|
onSelectUnit: _[3] || (_[3] = (D) => t("selectUnit", D)),
|
|
1171
1171
|
onGoToUnit: _[4] || (_[4] = (D) => t("goToUnit", D)),
|
|
1172
1172
|
onHoverOver: M,
|
|
1173
1173
|
onHoverOut: R,
|
|
1174
|
-
onPos:
|
|
1174
|
+
onPos: $
|
|
1175
1175
|
}, {
|
|
1176
1176
|
default: b((D) => [
|
|
1177
1177
|
K(I.$slots, "default", tt(nt(D)), void 0, !0)
|
|
1178
1178
|
]),
|
|
1179
1179
|
_: 3
|
|
1180
1180
|
}, 40, ["cdn-file-resolver", "view-model", "selected-unit-id", "scene-data", "color-callback", "can-go-to-unit-callback", "draw-observer"]))
|
|
1181
|
-
])) :
|
|
1181
|
+
])) : O("", !0)
|
|
1182
1182
|
]),
|
|
1183
1183
|
_: 3
|
|
1184
1184
|
}, 8, ["desktop", "mobile"]),
|
|
@@ -1199,11 +1199,11 @@ const pn = { key: 0 }, fn = { class: "interactive-viewer" }, hn = { class: "fill
|
|
|
1199
1199
|
}, void 0, !0)
|
|
1200
1200
|
]),
|
|
1201
1201
|
_: 3
|
|
1202
|
-
}, 8, ["is-hoverable", "pos", "onOutside"])) :
|
|
1203
|
-
o.isReady ? (p(),
|
|
1204
|
-
|
|
1205
|
-
"can-go-to-unit-callback":
|
|
1206
|
-
"unit-renderer":
|
|
1202
|
+
}, 8, ["is-hoverable", "pos", "onOutside"])) : O("", !0),
|
|
1203
|
+
o.isReady ? (p(), x("div", yn, [
|
|
1204
|
+
k(Qt, {
|
|
1205
|
+
"can-go-to-unit-callback": a.canGoToUnitCallback,
|
|
1206
|
+
"unit-renderer": a.unitRenderer,
|
|
1207
1207
|
"selected-unit-id": S.value,
|
|
1208
1208
|
"prev-unit-id": y.value,
|
|
1209
1209
|
"next-unit-id": A.value,
|
|
@@ -1212,8 +1212,8 @@ const pn = { key: 0 }, fn = { class: "interactive-viewer" }, hn = { class: "fill
|
|
|
1212
1212
|
onPrevUnit: _[6] || (_[6] = (D) => t("navUnit", y.value)),
|
|
1213
1213
|
onNextUnit: _[7] || (_[7] = (D) => t("navUnit", A.value))
|
|
1214
1214
|
}, null, 8, ["can-go-to-unit-callback", "unit-renderer", "selected-unit-id", "prev-unit-id", "next-unit-id", "view-model"])
|
|
1215
|
-
])) : o.isError ?
|
|
1216
|
-
|
|
1215
|
+
])) : o.isError ? O("", !0) : (p(), x("div", _n, [
|
|
1216
|
+
k(P, {
|
|
1217
1217
|
indeterminate: !o.progress,
|
|
1218
1218
|
modelValue: o.progress,
|
|
1219
1219
|
"onUpdate:modelValue": _[8] || (_[8] = (D) => o.progress = D)
|
|
@@ -1221,11 +1221,11 @@ const pn = { key: 0 }, fn = { class: "interactive-viewer" }, hn = { class: "fill
|
|
|
1221
1221
|
]))
|
|
1222
1222
|
])
|
|
1223
1223
|
]),
|
|
1224
|
-
|
|
1224
|
+
k(Re, {
|
|
1225
1225
|
ref_key: "hoverProbe",
|
|
1226
1226
|
ref: h
|
|
1227
1227
|
}, null, 512)
|
|
1228
|
-
])) :
|
|
1228
|
+
])) : O("", !0);
|
|
1229
1229
|
};
|
|
1230
1230
|
}
|
|
1231
1231
|
}), kn = /* @__PURE__ */ J(wn, [["__scopeId", "data-v-528c8f5b"]]), Cn = ["src"], In = /* @__PURE__ */ j({
|
|
@@ -1236,13 +1236,13 @@ const pn = { key: 0 }, fn = { class: "interactive-viewer" }, hn = { class: "fill
|
|
|
1236
1236
|
currentTime: {}
|
|
1237
1237
|
},
|
|
1238
1238
|
setup(u) {
|
|
1239
|
-
const
|
|
1240
|
-
return (
|
|
1239
|
+
const n = u, e = T(() => ie(n.cdnFileResolver, n.timeSampleData.filename));
|
|
1240
|
+
return (a, t) => ve((p(), x("img", {
|
|
1241
1241
|
key: e.value,
|
|
1242
1242
|
src: e.value,
|
|
1243
1243
|
width: "100%"
|
|
1244
1244
|
}, null, 8, Cn)), [
|
|
1245
|
-
[he,
|
|
1245
|
+
[he, a.timeSampleData === a.currentTime]
|
|
1246
1246
|
]);
|
|
1247
1247
|
}
|
|
1248
1248
|
}), An = /* @__PURE__ */ J(In, [["__scopeId", "data-v-189d0505"]]), Sn = /* @__PURE__ */ j({
|
|
@@ -1253,10 +1253,10 @@ const pn = { key: 0 }, fn = { class: "interactive-viewer" }, hn = { class: "fill
|
|
|
1253
1253
|
currentTime: {}
|
|
1254
1254
|
},
|
|
1255
1255
|
setup(u) {
|
|
1256
|
-
const
|
|
1257
|
-
return (e,
|
|
1256
|
+
const n = u;
|
|
1257
|
+
return (e, a) => (p(!0), x(ce, null, me(n.dayData.timeSamples, (t) => (p(), V(An, {
|
|
1258
1258
|
"time-sample-data": t,
|
|
1259
|
-
"cdn-file-resolver":
|
|
1259
|
+
"cdn-file-resolver": n.cdnFileResolver,
|
|
1260
1260
|
"current-time": e.currentTime
|
|
1261
1261
|
}, null, 8, ["time-sample-data", "cdn-file-resolver", "current-time"]))), 256));
|
|
1262
1262
|
}
|
|
@@ -1268,14 +1268,14 @@ const pn = { key: 0 }, fn = { class: "interactive-viewer" }, hn = { class: "fill
|
|
|
1268
1268
|
currentTime: {}
|
|
1269
1269
|
},
|
|
1270
1270
|
setup(u) {
|
|
1271
|
-
const
|
|
1272
|
-
return (e,
|
|
1271
|
+
const n = u;
|
|
1272
|
+
return (e, a) => (p(!0), x(ce, null, me(n.cameraData.sunsimDayOfYear, (t) => (p(), V(Sn, {
|
|
1273
1273
|
"day-data": t,
|
|
1274
|
-
"cdn-file-resolver":
|
|
1275
|
-
"current-time":
|
|
1274
|
+
"cdn-file-resolver": n.cdnFileResolver,
|
|
1275
|
+
"current-time": n.currentTime
|
|
1276
1276
|
}, null, 8, ["day-data", "cdn-file-resolver", "current-time"]))), 256));
|
|
1277
1277
|
}
|
|
1278
|
-
}),
|
|
1278
|
+
}), Fn = ["src"], xn = /* @__PURE__ */ j({
|
|
1279
1279
|
__name: "VApartmentChooserV5Transition",
|
|
1280
1280
|
props: {
|
|
1281
1281
|
transitionData: {},
|
|
@@ -1283,17 +1283,17 @@ const pn = { key: 0 }, fn = { class: "interactive-viewer" }, hn = { class: "fill
|
|
|
1283
1283
|
currentTransition: {}
|
|
1284
1284
|
},
|
|
1285
1285
|
emits: ["goToBuilding", "hoverOverBuilding", "hoverOutBuilding"],
|
|
1286
|
-
setup(u, { emit:
|
|
1287
|
-
const e = u,
|
|
1288
|
-
return (t, o) => ve((p(),
|
|
1289
|
-
key:
|
|
1290
|
-
src:
|
|
1286
|
+
setup(u, { emit: n }) {
|
|
1287
|
+
const e = u, a = T(() => ie(e.cdnFileResolver, e.transitionData.filename));
|
|
1288
|
+
return (t, o) => ve((p(), x("img", {
|
|
1289
|
+
key: a.value,
|
|
1290
|
+
src: a.value,
|
|
1291
1291
|
class: "position-absolute top-left w-100 h-100"
|
|
1292
|
-
}, null, 8,
|
|
1292
|
+
}, null, 8, Fn)), [
|
|
1293
1293
|
[he, t.transitionData === t.currentTransition]
|
|
1294
1294
|
]);
|
|
1295
1295
|
}
|
|
1296
|
-
}), Dn = /* @__PURE__ */ J(
|
|
1296
|
+
}), Dn = /* @__PURE__ */ J(xn, [["__scopeId", "data-v-10ab7bee"]]);
|
|
1297
1297
|
function wt(u) {
|
|
1298
1298
|
return !("filename" in u);
|
|
1299
1299
|
}
|
|
@@ -1308,8 +1308,8 @@ const Mn = /* @__PURE__ */ j({
|
|
|
1308
1308
|
disabled: { type: Boolean }
|
|
1309
1309
|
},
|
|
1310
1310
|
emits: ["onCameraChange"],
|
|
1311
|
-
setup(u, { emit:
|
|
1312
|
-
const e = u,
|
|
1311
|
+
setup(u, { emit: n }) {
|
|
1312
|
+
const e = u, a = n, t = d(
|
|
1313
1313
|
e.currentCamera.overlayFilename
|
|
1314
1314
|
);
|
|
1315
1315
|
Y(
|
|
@@ -1322,7 +1322,7 @@ const Mn = /* @__PURE__ */ j({
|
|
|
1322
1322
|
() => e.apartmentChooserData ? e.apartmentChooserData.cameras.filter(wt) : []
|
|
1323
1323
|
);
|
|
1324
1324
|
return Y(t, () => {
|
|
1325
|
-
|
|
1325
|
+
a(
|
|
1326
1326
|
"onCameraChange",
|
|
1327
1327
|
o.value.find(
|
|
1328
1328
|
(r) => r.overlayFilename === t.value
|
|
@@ -1351,15 +1351,15 @@ const Mn = /* @__PURE__ */ j({
|
|
|
1351
1351
|
disabled: { type: Boolean }
|
|
1352
1352
|
},
|
|
1353
1353
|
emits: ["onDayChange"],
|
|
1354
|
-
setup(u, { emit:
|
|
1355
|
-
const e = u,
|
|
1354
|
+
setup(u, { emit: n }) {
|
|
1355
|
+
const e = u, a = n, t = d(e.currentDay.dayOfYear);
|
|
1356
1356
|
Y(
|
|
1357
1357
|
() => e.currentDay.dayOfYear,
|
|
1358
1358
|
() => {
|
|
1359
1359
|
t.value = e.currentDay.dayOfYear;
|
|
1360
1360
|
}
|
|
1361
1361
|
), Y(t, () => {
|
|
1362
|
-
|
|
1362
|
+
a(
|
|
1363
1363
|
"onDayChange",
|
|
1364
1364
|
e.cameraData.sunsimDayOfYear.find(
|
|
1365
1365
|
(r) => r.dayOfYear === t.value
|
|
@@ -1387,7 +1387,7 @@ const Mn = /* @__PURE__ */ j({
|
|
|
1387
1387
|
"hide-details": ""
|
|
1388
1388
|
}, {
|
|
1389
1389
|
item: b(({ props: l }) => [
|
|
1390
|
-
|
|
1390
|
+
k(v, ye(l, {
|
|
1391
1391
|
title: o(l.title)
|
|
1392
1392
|
}), null, 16, ["title"])
|
|
1393
1393
|
]),
|
|
@@ -1409,15 +1409,15 @@ const Mn = /* @__PURE__ */ j({
|
|
|
1409
1409
|
disabled: { type: Boolean }
|
|
1410
1410
|
},
|
|
1411
1411
|
emits: ["onTimeChange"],
|
|
1412
|
-
setup(u, { emit:
|
|
1413
|
-
const e = u,
|
|
1412
|
+
setup(u, { emit: n }) {
|
|
1413
|
+
const e = u, a = n, t = d(e.currentTime.timeInHours), o = d();
|
|
1414
1414
|
Y(
|
|
1415
1415
|
() => e.currentTime.timeInHours,
|
|
1416
1416
|
() => {
|
|
1417
1417
|
t.value = e.currentTime.timeInHours;
|
|
1418
1418
|
}
|
|
1419
1419
|
), Y(t, () => {
|
|
1420
|
-
|
|
1420
|
+
a(
|
|
1421
1421
|
"onTimeChange",
|
|
1422
1422
|
e.dayData.timeSamples.find(
|
|
1423
1423
|
(v) => v.timeInHours === t.value
|
|
@@ -1442,8 +1442,8 @@ const Mn = /* @__PURE__ */ j({
|
|
|
1442
1442
|
const l = B("v-icon"), f = B("v-btn"), C = B("v-slider"), h = B("v-field");
|
|
1443
1443
|
return p(), V(h, { variant: "solo" }, {
|
|
1444
1444
|
default: b(() => [
|
|
1445
|
-
v.dayData.startTime === v.dayData.endTime ? (p(),
|
|
1446
|
-
|
|
1445
|
+
v.dayData.startTime === v.dayData.endTime ? (p(), x("div", Tn, [
|
|
1446
|
+
k(l, {
|
|
1447
1447
|
style: { color: "#ffab02", "vertical-align": "baseline", "font-size": "20px" },
|
|
1448
1448
|
class: "py-2 ml-2 mr-2 icon"
|
|
1449
1449
|
}, {
|
|
@@ -1465,7 +1465,7 @@ const Mn = /* @__PURE__ */ j({
|
|
|
1465
1465
|
"hide-details": ""
|
|
1466
1466
|
}, {
|
|
1467
1467
|
prepend: b(() => [
|
|
1468
|
-
|
|
1468
|
+
k(f, {
|
|
1469
1469
|
icon: o.value ? "mdi-stop" : "mdi-play",
|
|
1470
1470
|
size: "x-small",
|
|
1471
1471
|
variant: "flat",
|
|
@@ -1477,7 +1477,7 @@ const Mn = /* @__PURE__ */ j({
|
|
|
1477
1477
|
append: b(() => [
|
|
1478
1478
|
s("span", Bn, Q(r(v.dayData.endTime)), 1),
|
|
1479
1479
|
ee(" "),
|
|
1480
|
-
|
|
1480
|
+
k(l, {
|
|
1481
1481
|
style: { color: "#ffab02", "vertical-align": "baseline", "font-size": "20px" },
|
|
1482
1482
|
class: "ml-2 mr-2 icon"
|
|
1483
1483
|
}, {
|
|
@@ -1504,43 +1504,43 @@ const Mn = /* @__PURE__ */ j({
|
|
|
1504
1504
|
renderDisplay: { type: Function }
|
|
1505
1505
|
},
|
|
1506
1506
|
emits: ["onRotateStart", "onRotateFinish", "onSceneChange", "onDisplayClick"],
|
|
1507
|
-
setup(u, { expose:
|
|
1508
|
-
const
|
|
1509
|
-
|
|
1507
|
+
setup(u, { expose: n, emit: e }) {
|
|
1508
|
+
const a = u, t = e;
|
|
1509
|
+
n({
|
|
1510
1510
|
rotateShortestRoute: C
|
|
1511
1511
|
});
|
|
1512
|
-
const o = d(!1), r = d(
|
|
1512
|
+
const o = d(!1), r = d(a.currentScene), i = d(a.selectedId);
|
|
1513
1513
|
Ie(() => {
|
|
1514
|
-
r.value =
|
|
1514
|
+
r.value = a.currentScene;
|
|
1515
1515
|
}), Ie(() => {
|
|
1516
|
-
i.value =
|
|
1516
|
+
i.value = a.selectedId;
|
|
1517
1517
|
}), Ie(() => {
|
|
1518
1518
|
t("onSceneChange", r.value);
|
|
1519
1519
|
});
|
|
1520
|
-
const v = T(() => o.value ? !1 :
|
|
1520
|
+
const v = T(() => o.value ? !1 : a.apartmentChooserData.loopable ? !0 : r.value !== a.apartmentChooserData.scenes[0]), c = T(() => o.value ? !1 : a.apartmentChooserData.loopable ? !0 : r.value !== a.apartmentChooserData.scenes[a.apartmentChooserData.scenes.length - 1]);
|
|
1521
1521
|
function l() {
|
|
1522
1522
|
const m = r.value;
|
|
1523
|
-
let g =
|
|
1524
|
-
g >=
|
|
1525
|
-
const S =
|
|
1526
|
-
|
|
1523
|
+
let g = a.apartmentChooserData.scenes.findIndex((A) => A === m) + 1;
|
|
1524
|
+
g >= a.apartmentChooserData.scenes.length && (g = 0);
|
|
1525
|
+
const S = a.apartmentChooserData.scenes[g];
|
|
1526
|
+
a.apartmentChooserData.loopable && m > S, h(m, S);
|
|
1527
1527
|
}
|
|
1528
1528
|
async function f() {
|
|
1529
1529
|
const m = r.value;
|
|
1530
|
-
let g =
|
|
1531
|
-
g < 0 && (g =
|
|
1532
|
-
const S =
|
|
1533
|
-
|
|
1530
|
+
let g = a.apartmentChooserData.scenes.findIndex((A) => A === m) - 1;
|
|
1531
|
+
g < 0 && (g = a.apartmentChooserData.scenes.length - 1);
|
|
1532
|
+
const S = a.apartmentChooserData.scenes[g];
|
|
1533
|
+
a.apartmentChooserData.loopable && m < S, h(m, S);
|
|
1534
1534
|
}
|
|
1535
1535
|
function C(m) {
|
|
1536
1536
|
const g = r.value;
|
|
1537
|
-
if (
|
|
1537
|
+
if (a.apartmentChooserData.loopable)
|
|
1538
1538
|
if (m < g) {
|
|
1539
|
-
let S = g - m, A = g - (
|
|
1540
|
-
return Math.abs(S) > Math.abs(A) ? h(g, m) : h(g,
|
|
1539
|
+
let S = g - m, A = g - (a.apartmentChooserData.cameras.length + m);
|
|
1540
|
+
return Math.abs(S) > Math.abs(A) ? h(g, m) : h(g, a.apartmentChooserData.cameras.length + m);
|
|
1541
1541
|
} else {
|
|
1542
|
-
let S = g - m, A =
|
|
1543
|
-
return Math.abs(S) > Math.abs(A) ? h(g, m) : h(
|
|
1542
|
+
let S = g - m, A = a.apartmentChooserData.cameras.length + g - m;
|
|
1543
|
+
return Math.abs(S) > Math.abs(A) ? h(g, m) : h(a.apartmentChooserData.cameras.length + g, m);
|
|
1544
1544
|
}
|
|
1545
1545
|
else
|
|
1546
1546
|
return h(g, m);
|
|
@@ -1551,17 +1551,17 @@ const Mn = /* @__PURE__ */ j({
|
|
|
1551
1551
|
let A, y = m;
|
|
1552
1552
|
A = setInterval(() => {
|
|
1553
1553
|
y < g ? (y++, r.value = Math.abs(
|
|
1554
|
-
y %
|
|
1554
|
+
y % a.apartmentChooserData.cameras.length
|
|
1555
1555
|
)) : y > g ? (y--, r.value = Math.abs(
|
|
1556
|
-
y %
|
|
1556
|
+
y % a.apartmentChooserData.cameras.length
|
|
1557
1557
|
)) : (clearInterval(A), t("onRotateFinish", { from: m, to: g }), o.value = !1, S());
|
|
1558
1558
|
}, 50);
|
|
1559
1559
|
});
|
|
1560
1560
|
}
|
|
1561
1561
|
return (m, g) => {
|
|
1562
1562
|
const S = B("v-btn"), A = B("v-chip");
|
|
1563
|
-
return p(),
|
|
1564
|
-
|
|
1563
|
+
return p(), x(ce, null, [
|
|
1564
|
+
k(S, {
|
|
1565
1565
|
class: "mx-2",
|
|
1566
1566
|
icon: "mdi-restore",
|
|
1567
1567
|
size: "small",
|
|
@@ -1579,8 +1579,8 @@ const Mn = /* @__PURE__ */ j({
|
|
|
1579
1579
|
ee(Q(m.renderDisplay(i.value)), 1)
|
|
1580
1580
|
]),
|
|
1581
1581
|
_: 1
|
|
1582
|
-
})) :
|
|
1583
|
-
|
|
1582
|
+
})) : O("", !0),
|
|
1583
|
+
k(S, {
|
|
1584
1584
|
class: "mx-2",
|
|
1585
1585
|
icon: "mdi-reload",
|
|
1586
1586
|
size: "small",
|
|
@@ -1599,8 +1599,8 @@ const Mn = /* @__PURE__ */ j({
|
|
|
1599
1599
|
selectedId: {}
|
|
1600
1600
|
},
|
|
1601
1601
|
emits: ["onClick", "onHoverOver", "onHoverOut", "updateSvgContainer"],
|
|
1602
|
-
setup(u, { emit:
|
|
1603
|
-
const e = u,
|
|
1602
|
+
setup(u, { emit: n }) {
|
|
1603
|
+
const e = u, a = n, t = d(), o = d(), r = d(e.selectedId), i = dt({});
|
|
1604
1604
|
Y(
|
|
1605
1605
|
() => e.selectedId,
|
|
1606
1606
|
() => {
|
|
@@ -1655,7 +1655,7 @@ const Mn = /* @__PURE__ */ j({
|
|
|
1655
1655
|
Se(() => {
|
|
1656
1656
|
var f;
|
|
1657
1657
|
const l = (f = o.value) == null ? void 0 : f.firstChild;
|
|
1658
|
-
l && (
|
|
1658
|
+
l && (a("updateSvgContainer", l), v(), l.querySelectorAll(
|
|
1659
1659
|
"[data-apartment-id]"
|
|
1660
1660
|
).forEach((h) => {
|
|
1661
1661
|
h.style.strokeWidth = "0", h.style.stroke = "rgba(255,255,255,0)", h.style.fill = "rgba(255,255,255,0)", h.querySelectorAll("path").forEach((g) => {
|
|
@@ -1666,18 +1666,18 @@ const Mn = /* @__PURE__ */ j({
|
|
|
1666
1666
|
element: h,
|
|
1667
1667
|
state: r.value === m ? "selected" : "idle"
|
|
1668
1668
|
}, h.addEventListener("mouseover", () => {
|
|
1669
|
-
i[m].state === "idle" && (i[m].state = "hover"),
|
|
1669
|
+
i[m].state === "idle" && (i[m].state = "hover"), a("onHoverOver", m);
|
|
1670
1670
|
}), h.addEventListener("mouseout", () => {
|
|
1671
|
-
i[m].state === "hover" && (i[m].state = "idle"),
|
|
1671
|
+
i[m].state === "hover" && (i[m].state = "idle"), a("onHoverOut", m);
|
|
1672
1672
|
}), h.addEventListener("click", () => {
|
|
1673
|
-
|
|
1673
|
+
a("onClick", m);
|
|
1674
1674
|
});
|
|
1675
1675
|
}));
|
|
1676
1676
|
});
|
|
1677
1677
|
}
|
|
1678
1678
|
return (l, f) => (p(), V(Le, null, {
|
|
1679
1679
|
default: b(() => [
|
|
1680
|
-
(p(),
|
|
1680
|
+
(p(), x("div", {
|
|
1681
1681
|
ref_key: "svgContainer",
|
|
1682
1682
|
ref: o,
|
|
1683
1683
|
key: l.currentCamera.overlayFilename,
|
|
@@ -1695,11 +1695,11 @@ const Mn = /* @__PURE__ */ j({
|
|
|
1695
1695
|
longitude: {}
|
|
1696
1696
|
},
|
|
1697
1697
|
setup(u) {
|
|
1698
|
-
const
|
|
1699
|
-
transform: `rotate(${90 - (
|
|
1698
|
+
const n = u, e = T(() => ({
|
|
1699
|
+
transform: `rotate(${90 - (n.longitude || 0)}deg)`,
|
|
1700
1700
|
transition: " transform 0.5s ease-in"
|
|
1701
1701
|
}));
|
|
1702
|
-
return (
|
|
1702
|
+
return (a, t) => {
|
|
1703
1703
|
const o = B("v-img");
|
|
1704
1704
|
return p(), V(o, {
|
|
1705
1705
|
src: ae(Pn),
|
|
@@ -1709,80 +1709,80 @@ const Mn = /* @__PURE__ */ j({
|
|
|
1709
1709
|
}
|
|
1710
1710
|
});
|
|
1711
1711
|
class Ye {
|
|
1712
|
-
constructor(
|
|
1712
|
+
constructor(n) {
|
|
1713
1713
|
ne(this, "_buildingIds");
|
|
1714
|
-
this._buildingIds =
|
|
1714
|
+
this._buildingIds = n;
|
|
1715
1715
|
}
|
|
1716
1716
|
static empty() {
|
|
1717
1717
|
return new Ye([]);
|
|
1718
1718
|
}
|
|
1719
|
-
getBuildingId(
|
|
1720
|
-
const t = this._getBuildingIndex(
|
|
1719
|
+
getBuildingId(n, e, a) {
|
|
1720
|
+
const t = this._getBuildingIndex(n, e, a);
|
|
1721
1721
|
if (t !== void 0)
|
|
1722
1722
|
return this._buildingIds[t];
|
|
1723
1723
|
}
|
|
1724
|
-
_getBuildingIndex(
|
|
1725
|
-
const [t, o, r, i] =
|
|
1724
|
+
_getBuildingIndex(n, e, a) {
|
|
1725
|
+
const [t, o, r, i] = n.getPixel(e, a);
|
|
1726
1726
|
if (i === 255 && t === o && o === r)
|
|
1727
1727
|
return t;
|
|
1728
1728
|
}
|
|
1729
1729
|
}
|
|
1730
1730
|
const jn = 180;
|
|
1731
1731
|
class kt {
|
|
1732
|
-
constructor(
|
|
1732
|
+
constructor(n) {
|
|
1733
1733
|
ne(this, "_cdnFileResolver");
|
|
1734
1734
|
ne(this, "_resourceLoader");
|
|
1735
|
-
this._cdnFileResolver =
|
|
1735
|
+
this._cdnFileResolver = n, this._resourceLoader = new ge();
|
|
1736
1736
|
}
|
|
1737
|
-
constructFileUrl(
|
|
1738
|
-
return this._cdnFileResolver ? ie(this._cdnFileResolver, `/${
|
|
1737
|
+
constructFileUrl(n) {
|
|
1738
|
+
return this._cdnFileResolver ? ie(this._cdnFileResolver, `/${n}`) : null;
|
|
1739
1739
|
}
|
|
1740
|
-
loadBuildingMapImage(
|
|
1741
|
-
const e = this.constructFileUrl(
|
|
1740
|
+
loadBuildingMapImage(n) {
|
|
1741
|
+
const e = this.constructFileUrl(n.lookupFilename);
|
|
1742
1742
|
return e ? this._resourceLoader.loadImage(e) : null;
|
|
1743
1743
|
}
|
|
1744
|
-
getViewLongitude(
|
|
1745
|
-
return
|
|
1744
|
+
getViewLongitude(n) {
|
|
1745
|
+
return n.cameraRotation && n.cameraRotation.y + 270;
|
|
1746
1746
|
}
|
|
1747
|
-
getBuildingData(
|
|
1748
|
-
const e =
|
|
1747
|
+
getBuildingData(n) {
|
|
1748
|
+
const e = n ? n.buildings : [], a = e.map((o) => o.id), t = e.map((o) => ({
|
|
1749
1749
|
id: o.id,
|
|
1750
1750
|
url: this.constructFileUrl(o.overlayFilename)
|
|
1751
1751
|
}));
|
|
1752
|
-
return { buildingIds:
|
|
1752
|
+
return { buildingIds: a, buildingOverlays: t };
|
|
1753
1753
|
}
|
|
1754
|
-
getBackgroundImageData(
|
|
1755
|
-
return "days" in
|
|
1754
|
+
getBackgroundImageData(n) {
|
|
1755
|
+
return "days" in n ? this.processMultipleDays(n.days) : [this.processTimeSamples(
|
|
1756
1756
|
jn,
|
|
1757
|
-
|
|
1757
|
+
n.timeSamples
|
|
1758
1758
|
)];
|
|
1759
1759
|
}
|
|
1760
|
-
processMultipleDays(
|
|
1761
|
-
return
|
|
1760
|
+
processMultipleDays(n) {
|
|
1761
|
+
return n.map(
|
|
1762
1762
|
(e) => this.processTimeSamples(e.dayOfYear, e.timeSamples)
|
|
1763
1763
|
);
|
|
1764
1764
|
}
|
|
1765
|
-
processTimeSamples(
|
|
1765
|
+
processTimeSamples(n, e) {
|
|
1766
1766
|
return {
|
|
1767
1767
|
urls: e.map(
|
|
1768
1768
|
(t) => this.constructFileUrl(t.filename)
|
|
1769
1769
|
),
|
|
1770
|
-
referenceDate: this.makeReferenceDate(
|
|
1770
|
+
referenceDate: this.makeReferenceDate(n)
|
|
1771
1771
|
};
|
|
1772
1772
|
}
|
|
1773
|
-
makeReferenceDate(
|
|
1773
|
+
makeReferenceDate(n) {
|
|
1774
1774
|
const e = /* @__PURE__ */ new Date(0);
|
|
1775
|
-
return e.setUTCDate(
|
|
1775
|
+
return e.setUTCDate(n), e;
|
|
1776
1776
|
}
|
|
1777
|
-
async loadBuildingChooser(
|
|
1777
|
+
async loadBuildingChooser(n) {
|
|
1778
1778
|
try {
|
|
1779
|
-
if (
|
|
1780
|
-
const e = await this.loadBuildingMapImage(
|
|
1779
|
+
if (n) {
|
|
1780
|
+
const e = await this.loadBuildingMapImage(n);
|
|
1781
1781
|
if (e) {
|
|
1782
|
-
const
|
|
1782
|
+
const a = this.getViewLongitude(n), { buildingIds: t, buildingOverlays: o } = this.getBuildingData(n), r = this.getBackgroundImageData(n);
|
|
1783
1783
|
return {
|
|
1784
1784
|
mapImage: e,
|
|
1785
|
-
viewLongitude:
|
|
1785
|
+
viewLongitude: a,
|
|
1786
1786
|
buildingIds: t,
|
|
1787
1787
|
buildingOverlays: o,
|
|
1788
1788
|
backgrounds: r
|
|
@@ -1796,20 +1796,20 @@ class kt {
|
|
|
1796
1796
|
}
|
|
1797
1797
|
}
|
|
1798
1798
|
class Pe {
|
|
1799
|
-
constructor(
|
|
1799
|
+
constructor(n) {
|
|
1800
1800
|
ne(this, "_mapImage");
|
|
1801
1801
|
ne(this, "_context");
|
|
1802
|
-
this._mapImage =
|
|
1802
|
+
this._mapImage = n, this._context = null;
|
|
1803
1803
|
}
|
|
1804
1804
|
static empty() {
|
|
1805
1805
|
return new Pe(null);
|
|
1806
1806
|
}
|
|
1807
|
-
update(
|
|
1808
|
-
this._mapImage && (this._context =
|
|
1807
|
+
update(n) {
|
|
1808
|
+
this._mapImage && (this._context = n.getContext("2d", { willReadFrequently: !0 }), this._context.drawImage(this._mapImage, 0, 0, n.width, n.height));
|
|
1809
1809
|
}
|
|
1810
|
-
getPixel(
|
|
1810
|
+
getPixel(n, e) {
|
|
1811
1811
|
try {
|
|
1812
|
-
return this._context ? this._context.getImageData(
|
|
1812
|
+
return this._context ? this._context.getImageData(n, e, 1, 1).data : [0, 0, 0, 0];
|
|
1813
1813
|
} catch {
|
|
1814
1814
|
return [0, 0, 0, 0];
|
|
1815
1815
|
}
|
|
@@ -1817,19 +1817,19 @@ class Pe {
|
|
|
1817
1817
|
}
|
|
1818
1818
|
const Wn = /* @__PURE__ */ new Date(0);
|
|
1819
1819
|
class lt {
|
|
1820
|
-
constructor(
|
|
1820
|
+
constructor(n) {
|
|
1821
1821
|
ne(this, "_imagesByDay");
|
|
1822
1822
|
ne(this, "_state");
|
|
1823
|
-
this._imagesByDay =
|
|
1823
|
+
this._imagesByDay = n, this._state = { selectedIndex: 0 };
|
|
1824
1824
|
}
|
|
1825
1825
|
static empty() {
|
|
1826
1826
|
return new lt([{ referenceDate: Wn, urls: [] }]);
|
|
1827
1827
|
}
|
|
1828
|
-
selectIndex(
|
|
1829
|
-
|
|
1828
|
+
selectIndex(n) {
|
|
1829
|
+
n < this._imagesByDay.length && (this._state.selectedIndex = n);
|
|
1830
1830
|
}
|
|
1831
1831
|
get dates() {
|
|
1832
|
-
return this._imagesByDay.map((
|
|
1832
|
+
return this._imagesByDay.map((n) => n.referenceDate);
|
|
1833
1833
|
}
|
|
1834
1834
|
get hasMultipleDates() {
|
|
1835
1835
|
return this._imagesByDay.length > 1;
|
|
@@ -1864,23 +1864,23 @@ function Nn() {
|
|
|
1864
1864
|
}
|
|
1865
1865
|
class Gn {
|
|
1866
1866
|
// private cameraParams: any
|
|
1867
|
-
constructor(
|
|
1867
|
+
constructor(n, e) {
|
|
1868
1868
|
ne(this, "data");
|
|
1869
|
-
this.data =
|
|
1869
|
+
this.data = n;
|
|
1870
1870
|
}
|
|
1871
|
-
download(
|
|
1872
|
-
|
|
1871
|
+
download(n = null) {
|
|
1872
|
+
n = n || Nn();
|
|
1873
1873
|
const e = document.createElement("a");
|
|
1874
|
-
typeof e.download == "string" ? (document.body.appendChild(e), e.download =
|
|
1874
|
+
typeof e.download == "string" ? (document.body.appendChild(e), e.download = n, e.href = this.data, e.click(), document.body.removeChild(e)) : location.replace(this.data);
|
|
1875
1875
|
}
|
|
1876
1876
|
}
|
|
1877
1877
|
const Qn = (u) => {
|
|
1878
|
-
const
|
|
1878
|
+
const n = u.sceneData.map(
|
|
1879
1879
|
(i) => ({
|
|
1880
1880
|
unitId: i.apartmentID,
|
|
1881
1881
|
bestScene: i.bestScene
|
|
1882
1882
|
})
|
|
1883
|
-
), e = "1280",
|
|
1883
|
+
), e = "1280", a = [4, 1, 2, 3], t = [];
|
|
1884
1884
|
for (let i = 1; i <= 64; i++) {
|
|
1885
1885
|
const v = i.toString().padStart(4, "0") + ".jpg";
|
|
1886
1886
|
t.push(v);
|
|
@@ -1891,20 +1891,15 @@ const Qn = (u) => {
|
|
|
1891
1891
|
for (let i = 0; i < u.scenes.length; i++) {
|
|
1892
1892
|
let v = u.scenes[i], c, l;
|
|
1893
1893
|
c = o[v], l = {
|
|
1894
|
-
cameraName: `
|
|
1894
|
+
cameraName: `Kamera ${i + 1}`,
|
|
1895
1895
|
cameraPosition: {
|
|
1896
1896
|
x: 0,
|
|
1897
1897
|
y: 0,
|
|
1898
1898
|
z: 0
|
|
1899
1899
|
},
|
|
1900
|
-
cameraRotation:
|
|
1901
|
-
x: 0,
|
|
1902
|
-
y: 0,
|
|
1903
|
-
z: 0,
|
|
1904
|
-
w: 0
|
|
1905
|
-
},
|
|
1900
|
+
cameraRotation: null,
|
|
1906
1901
|
cameraFov: 0,
|
|
1907
|
-
overlayFilename: `/scenedata${
|
|
1902
|
+
overlayFilename: `/scenedata${a[i]}V5Overlay.svg`,
|
|
1908
1903
|
sunsimDayOfYear: [
|
|
1909
1904
|
{
|
|
1910
1905
|
dayOfYear: 179,
|
|
@@ -1933,7 +1928,7 @@ const Qn = (u) => {
|
|
|
1933
1928
|
scenes: u.scenes,
|
|
1934
1929
|
loopable: !0,
|
|
1935
1930
|
renderVersion: u.renderVersion ? u.renderVersion : "Auto Converted",
|
|
1936
|
-
unitData:
|
|
1931
|
+
unitData: n,
|
|
1937
1932
|
cameras: o
|
|
1938
1933
|
};
|
|
1939
1934
|
}, qn = {
|
|
@@ -1961,21 +1956,21 @@ const Qn = (u) => {
|
|
|
1961
1956
|
mobileBreakpoint: { default: 600 }
|
|
1962
1957
|
},
|
|
1963
1958
|
emits: ["onClick", "onHoverOver", "onHoverOut", "onMouseMove", "onInitialize", "onError"],
|
|
1964
|
-
setup(u, { emit:
|
|
1965
|
-
const e = u,
|
|
1959
|
+
setup(u, { emit: n }) {
|
|
1960
|
+
const e = u, a = n, t = d(), o = d(), r = d(), i = d(
|
|
1966
1961
|
null
|
|
1967
1962
|
), v = d(4), c = d(), l = d(!1), f = d(!1), C = d(), h = d(), m = T(() => h.value.isHoverEnabled), g = d({ x: 0, y: 0, width: 0, height: 0 }), S = d(), A = d(), y = d(
|
|
1968
1963
|
e.apartmentChooserData
|
|
1969
|
-
),
|
|
1964
|
+
), $ = d(!1);
|
|
1970
1965
|
de(() => {
|
|
1971
1966
|
l.value = !0;
|
|
1972
|
-
}), Y(l, (
|
|
1973
|
-
|
|
1967
|
+
}), Y(l, (F) => {
|
|
1968
|
+
F && a("onInitialize");
|
|
1974
1969
|
}), Y(
|
|
1975
1970
|
() => A.value,
|
|
1976
1971
|
() => {
|
|
1977
|
-
A.value && new ResizeObserver(([
|
|
1978
|
-
|
|
1972
|
+
A.value && new ResizeObserver(([U]) => {
|
|
1973
|
+
$.value = U.contentRect.width < e.mobileBreakpoint;
|
|
1979
1974
|
}).observe(A.value);
|
|
1980
1975
|
}
|
|
1981
1976
|
);
|
|
@@ -1985,12 +1980,12 @@ const Qn = (u) => {
|
|
|
1985
1980
|
() => y.value ? y.value.cameras.filter(ct) : []
|
|
1986
1981
|
), I = async () => {
|
|
1987
1982
|
try {
|
|
1988
|
-
let
|
|
1989
|
-
return
|
|
1983
|
+
let F, U;
|
|
1984
|
+
return U = await ge.loadJson(
|
|
1990
1985
|
ie(e.cdnFileResolver, "/apartmentChooser.json")
|
|
1991
|
-
), parseInt(
|
|
1992
|
-
} catch (
|
|
1993
|
-
l.value = !1,
|
|
1986
|
+
), parseInt(U.version) === 5 ? U : (F = Qn(U), F);
|
|
1987
|
+
} catch (F) {
|
|
1988
|
+
l.value = !1, a("onError", F);
|
|
1994
1989
|
}
|
|
1995
1990
|
};
|
|
1996
1991
|
Y(
|
|
@@ -2001,9 +1996,9 @@ const Qn = (u) => {
|
|
|
2001
1996
|
],
|
|
2002
1997
|
async () => {
|
|
2003
1998
|
e.cdnFileResolver && (y.value || (y.value = await I()), e.defaultCamera ? t.value = M.value.find(
|
|
2004
|
-
(
|
|
1999
|
+
(F) => F.cameraName === e.defaultCamera
|
|
2005
2000
|
) || M.value[0] : t.value = M.value[0], v.value = y.value.cameras.findIndex(
|
|
2006
|
-
(
|
|
2001
|
+
(F) => F === t.value
|
|
2007
2002
|
), v.value = Math.max(0, v.value));
|
|
2008
2003
|
},
|
|
2009
2004
|
{ immediate: !0 }
|
|
@@ -2011,7 +2006,7 @@ const Qn = (u) => {
|
|
|
2011
2006
|
[y, () => e.cdnFileResolver, () => e.defaultDay],
|
|
2012
2007
|
() => {
|
|
2013
2008
|
y.value && e.cdnFileResolver && (e.defaultDay ? o.value = t.value.sunsimDayOfYear.find(
|
|
2014
|
-
(
|
|
2009
|
+
(F) => F.dayOfYear === e.defaultDay
|
|
2015
2010
|
) || t.value.sunsimDayOfYear[0] : o.value = t.value.sunsimDayOfYear[0]);
|
|
2016
2011
|
},
|
|
2017
2012
|
{ immediate: !0 }
|
|
@@ -2019,69 +2014,69 @@ const Qn = (u) => {
|
|
|
2019
2014
|
[y, () => e.cdnFileResolver, () => e.defaultTime],
|
|
2020
2015
|
() => {
|
|
2021
2016
|
y.value && e.cdnFileResolver && (e.defaultTime ? r.value = o.value.timeSamples.find(
|
|
2022
|
-
(
|
|
2017
|
+
(F) => F.timeInHours === e.defaultTime
|
|
2023
2018
|
) || o.value.timeSamples[0] : r.value = o.value.timeSamples.find(
|
|
2024
|
-
(
|
|
2019
|
+
(F) => F.timeInHours === o.value.defaultHour
|
|
2025
2020
|
) || o.value.timeSamples[0]);
|
|
2026
2021
|
},
|
|
2027
2022
|
{ immediate: !0 }
|
|
2028
2023
|
);
|
|
2029
|
-
function _(
|
|
2030
|
-
t.value !==
|
|
2031
|
-
y.value.cameras.findIndex((
|
|
2024
|
+
function _(F) {
|
|
2025
|
+
t.value !== F && C.value.rotateShortestRoute(
|
|
2026
|
+
y.value.cameras.findIndex((U) => U === F)
|
|
2032
2027
|
);
|
|
2033
2028
|
}
|
|
2034
|
-
function P(
|
|
2035
|
-
v.value =
|
|
2029
|
+
function P(F) {
|
|
2030
|
+
v.value = F, ct(y.value.cameras[v.value]) ? i.value = y.value.cameras[v.value] : (Se(() => {
|
|
2036
2031
|
D(
|
|
2037
2032
|
y.value.cameras[v.value]
|
|
2038
2033
|
);
|
|
2039
2034
|
}), i.value = null);
|
|
2040
2035
|
}
|
|
2041
|
-
function D(
|
|
2042
|
-
const
|
|
2043
|
-
t.value =
|
|
2036
|
+
function D(F) {
|
|
2037
|
+
const U = o.value;
|
|
2038
|
+
t.value = F, v.value = y.value.cameras.findIndex(
|
|
2044
2039
|
(q) => q === t.value
|
|
2045
2040
|
), Se(() => {
|
|
2046
2041
|
H(
|
|
2047
2042
|
t.value.sunsimDayOfYear.find(
|
|
2048
|
-
(q) => q.dayOfYear ===
|
|
2043
|
+
(q) => q.dayOfYear === U.dayOfYear
|
|
2049
2044
|
) || t.value.sunsimDayOfYear[0]
|
|
2050
2045
|
);
|
|
2051
2046
|
});
|
|
2052
2047
|
}
|
|
2053
|
-
function H(
|
|
2054
|
-
const
|
|
2055
|
-
o.value =
|
|
2048
|
+
function H(F) {
|
|
2049
|
+
const U = r.value;
|
|
2050
|
+
o.value = F, Se(() => {
|
|
2056
2051
|
L(
|
|
2057
2052
|
o.value.timeSamples.find(
|
|
2058
|
-
(q) => q.timeInHours ===
|
|
2053
|
+
(q) => q.timeInHours === U.timeInHours
|
|
2059
2054
|
) || o.value.timeSamples.find(
|
|
2060
2055
|
(q) => q.timeInHours === o.value.defaultHour
|
|
2061
2056
|
) || o.value.timeSamples[0]
|
|
2062
2057
|
);
|
|
2063
2058
|
});
|
|
2064
2059
|
}
|
|
2065
|
-
function L(
|
|
2066
|
-
r.value =
|
|
2060
|
+
function L(F) {
|
|
2061
|
+
r.value = F;
|
|
2067
2062
|
}
|
|
2068
|
-
function E(
|
|
2069
|
-
|
|
2070
|
-
const
|
|
2071
|
-
(q) => q.unitId ===
|
|
2063
|
+
function E(F) {
|
|
2064
|
+
a("onClick", F, () => {
|
|
2065
|
+
const U = y.value.unitData.find(
|
|
2066
|
+
(q) => q.unitId === F
|
|
2072
2067
|
);
|
|
2073
|
-
|
|
2068
|
+
U && C.value.rotateShortestRoute(U.bestScene);
|
|
2074
2069
|
});
|
|
2075
2070
|
}
|
|
2076
|
-
function z(
|
|
2077
|
-
|
|
2071
|
+
function z(F) {
|
|
2072
|
+
a("onHoverOver", F), c.value = F;
|
|
2078
2073
|
}
|
|
2079
|
-
function W(
|
|
2080
|
-
|
|
2074
|
+
function W(F) {
|
|
2075
|
+
a("onHoverOut", F), c.value = void 0;
|
|
2081
2076
|
}
|
|
2082
|
-
function ue(
|
|
2083
|
-
const { layerX:
|
|
2084
|
-
let te =
|
|
2077
|
+
function ue(F) {
|
|
2078
|
+
const { layerX: U, layerY: q } = F;
|
|
2079
|
+
let te = F.target, re = !1;
|
|
2085
2080
|
for (; te; )
|
|
2086
2081
|
if (te === S.value) {
|
|
2087
2082
|
re = !0;
|
|
@@ -2089,32 +2084,32 @@ const Qn = (u) => {
|
|
|
2089
2084
|
} else
|
|
2090
2085
|
te = te.parentElement;
|
|
2091
2086
|
if (re) {
|
|
2092
|
-
const oe =
|
|
2087
|
+
const oe = F.currentTarget;
|
|
2093
2088
|
g.value = {
|
|
2094
|
-
x:
|
|
2089
|
+
x: U,
|
|
2095
2090
|
y: q,
|
|
2096
2091
|
width: oe.clientWidth,
|
|
2097
2092
|
height: oe.clientHeight
|
|
2098
2093
|
};
|
|
2099
2094
|
} else
|
|
2100
2095
|
g.value = void 0;
|
|
2101
|
-
|
|
2096
|
+
a("onMouseMove", F, g.value);
|
|
2102
2097
|
}
|
|
2103
|
-
return (
|
|
2098
|
+
return (F, U) => {
|
|
2104
2099
|
const q = B("v-skeleton-loader");
|
|
2105
|
-
return p(),
|
|
2106
|
-
|
|
2100
|
+
return p(), x(ce, null, [
|
|
2101
|
+
k(q, {
|
|
2107
2102
|
type: "image",
|
|
2108
2103
|
class: "w-100 h-100 position-relative",
|
|
2109
2104
|
loading: !l.value || !y.value
|
|
2110
2105
|
}, {
|
|
2111
2106
|
default: b(() => [
|
|
2112
|
-
|
|
2107
|
+
k(Le, { class: "w-100 h-100" }, {
|
|
2113
2108
|
default: b(() => [
|
|
2114
2109
|
s("div", {
|
|
2115
2110
|
ref_key: "container",
|
|
2116
2111
|
ref: A,
|
|
2117
|
-
class: fe({ mobile:
|
|
2112
|
+
class: fe({ mobile: $.value }),
|
|
2118
2113
|
onMousemove: ue
|
|
2119
2114
|
}, [
|
|
2120
2115
|
s("div", qn, [
|
|
@@ -2125,7 +2120,7 @@ const Qn = (u) => {
|
|
|
2125
2120
|
"current-camera": t.value,
|
|
2126
2121
|
disabled: f.value,
|
|
2127
2122
|
onOnCameraChange: _
|
|
2128
|
-
}, null, 8, ["apartment-chooser-data", "current-camera", "disabled"])) :
|
|
2123
|
+
}, null, 8, ["apartment-chooser-data", "current-camera", "disabled"])) : O("", !0)
|
|
2129
2124
|
]),
|
|
2130
2125
|
s("div", Jn, [
|
|
2131
2126
|
t.value.sunsimDayOfYear.length > 1 ? (p(), V(En, {
|
|
@@ -2134,7 +2129,7 @@ const Qn = (u) => {
|
|
|
2134
2129
|
"current-day": o.value,
|
|
2135
2130
|
disabled: f.value,
|
|
2136
2131
|
onOnDayChange: H
|
|
2137
|
-
}, null, 8, ["camera-data", "current-day", "disabled"])) :
|
|
2132
|
+
}, null, 8, ["camera-data", "current-day", "disabled"])) : O("", !0)
|
|
2138
2133
|
]),
|
|
2139
2134
|
s("div", Xn, [
|
|
2140
2135
|
o.value.timeSamples.length > 1 ? (p(), V(On, {
|
|
@@ -2143,7 +2138,7 @@ const Qn = (u) => {
|
|
|
2143
2138
|
"current-time": r.value,
|
|
2144
2139
|
disabled: f.value,
|
|
2145
2140
|
onOnTimeChange: L
|
|
2146
|
-
}, null, 8, ["day-data", "current-time", "disabled"])) :
|
|
2141
|
+
}, null, 8, ["day-data", "current-time", "disabled"])) : O("", !0)
|
|
2147
2142
|
])
|
|
2148
2143
|
]),
|
|
2149
2144
|
s("div", Kn, [
|
|
@@ -2153,65 +2148,66 @@ const Qn = (u) => {
|
|
|
2153
2148
|
ref: C,
|
|
2154
2149
|
"apartment-chooser-data": y.value,
|
|
2155
2150
|
"current-scene": v.value,
|
|
2156
|
-
"selected-id":
|
|
2151
|
+
"selected-id": F.selectedId,
|
|
2157
2152
|
"render-display": e.renderDisplay,
|
|
2158
2153
|
onOnDisplayClick: E,
|
|
2159
2154
|
onOnSceneChange: P,
|
|
2160
|
-
onOnRotateStart:
|
|
2161
|
-
onOnRotateFinish:
|
|
2162
|
-
}, null, 8, ["apartment-chooser-data", "current-scene", "selected-id", "render-display"])) :
|
|
2155
|
+
onOnRotateStart: U[0] || (U[0] = (te) => f.value = !0),
|
|
2156
|
+
onOnRotateFinish: U[1] || (U[1] = (te) => f.value = !1)
|
|
2157
|
+
}, null, 8, ["apartment-chooser-data", "current-scene", "selected-id", "render-display"])) : O("", !0)
|
|
2163
2158
|
]),
|
|
2164
2159
|
s("div", ea, [
|
|
2165
|
-
|
|
2160
|
+
t.value.cameraRotation ? (p(), V(Ke, {
|
|
2161
|
+
key: 0,
|
|
2166
2162
|
longitude: t.value.cameraRotation.y + 270
|
|
2167
|
-
}, null, 8, ["longitude"])
|
|
2163
|
+
}, null, 8, ["longitude"])) : O("", !0)
|
|
2168
2164
|
]),
|
|
2169
|
-
|
|
2165
|
+
k(Xe, { position: "relative" }, {
|
|
2170
2166
|
default: b(() => [
|
|
2171
|
-
(p(!0),
|
|
2167
|
+
(p(!0), x(ce, null, me(M.value, (te) => (p(), V(Ln, {
|
|
2172
2168
|
key: te.overlayFilename,
|
|
2173
2169
|
"camera-data": te,
|
|
2174
2170
|
"cdn-file-resolver": e.cdnFileResolver,
|
|
2175
2171
|
"current-time": r.value
|
|
2176
2172
|
}, null, 8, ["camera-data", "cdn-file-resolver", "current-time"]))), 128)),
|
|
2177
|
-
(p(!0),
|
|
2173
|
+
(p(!0), x(ce, null, me(R.value, (te) => (p(), V(Dn, {
|
|
2178
2174
|
"transition-data": te,
|
|
2179
2175
|
"cdn-file-resolver": e.cdnFileResolver,
|
|
2180
2176
|
"current-transition": i.value
|
|
2181
2177
|
}, null, 8, ["transition-data", "cdn-file-resolver", "current-transition"]))), 256)),
|
|
2182
|
-
e.customOverlayContent ? (p(),
|
|
2178
|
+
e.customOverlayContent ? (p(), x("div", {
|
|
2183
2179
|
key: 0,
|
|
2184
2180
|
class: "w-100 h-100 position-absolute top-left",
|
|
2185
2181
|
style: { "z-index": "6", "pointer-events": "none" },
|
|
2186
2182
|
innerHTML: e.customOverlayContent
|
|
2187
|
-
}, null, 8, ta)) :
|
|
2188
|
-
ve(
|
|
2189
|
-
"cdn-file-resolver":
|
|
2183
|
+
}, null, 8, ta)) : O("", !0),
|
|
2184
|
+
ve(k(Yn, {
|
|
2185
|
+
"cdn-file-resolver": F.cdnFileResolver,
|
|
2190
2186
|
"color-callback": e.colorCallback,
|
|
2191
2187
|
"current-camera": t.value,
|
|
2192
2188
|
"selected-id": e.selectedId,
|
|
2193
2189
|
onOnClick: E,
|
|
2194
2190
|
onOnHoverOver: z,
|
|
2195
2191
|
onOnHoverOut: W,
|
|
2196
|
-
onUpdateSvgContainer:
|
|
2192
|
+
onUpdateSvgContainer: U[2] || (U[2] = (te) => S.value = te)
|
|
2197
2193
|
}, null, 8, ["cdn-file-resolver", "color-callback", "current-camera", "selected-id"]), [
|
|
2198
2194
|
[he, i.value === null]
|
|
2199
2195
|
])
|
|
2200
2196
|
]),
|
|
2201
2197
|
_: 1
|
|
2202
2198
|
}),
|
|
2203
|
-
|
|
2199
|
+
F.$slots.popup && g.value && c.value ? (p(), V(Je, {
|
|
2204
2200
|
key: 0,
|
|
2205
2201
|
"is-hoverable": m.value,
|
|
2206
2202
|
pos: g.value
|
|
2207
2203
|
}, {
|
|
2208
2204
|
default: b(() => [
|
|
2209
2205
|
s("div", na, [
|
|
2210
|
-
K(
|
|
2206
|
+
K(F.$slots, "popup", tt(nt({ hoverId: c.value, hoverable: m.value })), void 0, !0)
|
|
2211
2207
|
])
|
|
2212
2208
|
]),
|
|
2213
2209
|
_: 3
|
|
2214
|
-
}, 8, ["is-hoverable", "pos"])) :
|
|
2210
|
+
}, 8, ["is-hoverable", "pos"])) : O("", !0)
|
|
2215
2211
|
], 34)
|
|
2216
2212
|
]),
|
|
2217
2213
|
_: 3
|
|
@@ -2219,14 +2215,14 @@ const Qn = (u) => {
|
|
|
2219
2215
|
]),
|
|
2220
2216
|
_: 3
|
|
2221
2217
|
}, 8, ["loading"]),
|
|
2222
|
-
|
|
2218
|
+
k(Re, {
|
|
2223
2219
|
ref_key: "hoverProbe",
|
|
2224
2220
|
ref: h
|
|
2225
2221
|
}, null, 512)
|
|
2226
2222
|
], 64);
|
|
2227
2223
|
};
|
|
2228
2224
|
}
|
|
2229
|
-
}), ai = /* @__PURE__ */ J(aa, [["__scopeId", "data-v-
|
|
2225
|
+
}), ai = /* @__PURE__ */ J(aa, [["__scopeId", "data-v-a6de6506"]]), oa = { class: "sunsim-bar-wrapper" }, la = { class: "sunsim-date d-flex align-center pl-5 pr-5" }, sa = {
|
|
2230
2226
|
key: 1,
|
|
2231
2227
|
class: "text-center text-body-1"
|
|
2232
2228
|
}, ia = { class: "sunsim-wrapper d-flex align-center px-3" }, ra = { class: "sunsim-time-label text-body-1 font-weight-normal ml-2" }, ua = /* @__PURE__ */ j({
|
|
@@ -2237,8 +2233,8 @@ const Qn = (u) => {
|
|
|
2237
2233
|
isLoading: { type: Boolean, default: !1 }
|
|
2238
2234
|
},
|
|
2239
2235
|
emits: ["update:modelValue"],
|
|
2240
|
-
setup(u, { emit:
|
|
2241
|
-
const e = u,
|
|
2236
|
+
setup(u, { emit: n }) {
|
|
2237
|
+
const e = u, a = n, t = d(e.modelValue), o = d();
|
|
2242
2238
|
function r(l) {
|
|
2243
2239
|
return l.toLocaleString("en-no", {
|
|
2244
2240
|
month: "short",
|
|
@@ -2257,7 +2253,7 @@ const Qn = (u) => {
|
|
|
2257
2253
|
}
|
|
2258
2254
|
});
|
|
2259
2255
|
return Y(t, (l) => {
|
|
2260
|
-
|
|
2256
|
+
a("update:modelValue", l);
|
|
2261
2257
|
}), Y(o, (l) => {
|
|
2262
2258
|
e.dateSelector.selectIndex(v.value.indexOf(l));
|
|
2263
2259
|
}), Y(
|
|
@@ -2269,9 +2265,9 @@ const Qn = (u) => {
|
|
|
2269
2265
|
o.value = r(e.dateSelector.selectedDate);
|
|
2270
2266
|
}), (l, f) => {
|
|
2271
2267
|
const C = B("v-icon"), h = B("v-select"), m = B("v-progress-linear"), g = B("v-slider");
|
|
2272
|
-
return p(),
|
|
2268
|
+
return p(), x("div", oa, [
|
|
2273
2269
|
s("div", la, [
|
|
2274
|
-
|
|
2270
|
+
k(C, {
|
|
2275
2271
|
color: "black",
|
|
2276
2272
|
class: "mr-2",
|
|
2277
2273
|
icon: "mdi-calendar-blank-outline"
|
|
@@ -2285,11 +2281,11 @@ const Qn = (u) => {
|
|
|
2285
2281
|
variant: "underlined",
|
|
2286
2282
|
"hide-details": "",
|
|
2287
2283
|
class: "day-selector"
|
|
2288
|
-
}, null, 8, ["modelValue", "items"])) : (p(),
|
|
2284
|
+
}, null, 8, ["modelValue", "items"])) : (p(), x("span", sa, Q(c.value), 1))
|
|
2289
2285
|
]),
|
|
2290
2286
|
s("div", ia, [
|
|
2291
2287
|
s("span", ra, Q(i.value), 1),
|
|
2292
|
-
|
|
2288
|
+
k(C, {
|
|
2293
2289
|
medium: "",
|
|
2294
2290
|
class: "ml-2 mr-2 icon"
|
|
2295
2291
|
}, {
|
|
@@ -2332,32 +2328,32 @@ const Qn = (u) => {
|
|
|
2332
2328
|
activeIndex: {}
|
|
2333
2329
|
},
|
|
2334
2330
|
emits: ["resize", "ready", "preloaded", "reset"],
|
|
2335
|
-
setup(u, { emit:
|
|
2336
|
-
const e = u,
|
|
2331
|
+
setup(u, { emit: n }) {
|
|
2332
|
+
const e = u, a = n, t = d("init"), o = d(new ut(0)), r = d();
|
|
2337
2333
|
Y(
|
|
2338
2334
|
() => e.imageUrls,
|
|
2339
2335
|
(c) => {
|
|
2340
|
-
|
|
2336
|
+
a("reset"), v(c);
|
|
2341
2337
|
}
|
|
2342
2338
|
), de(() => {
|
|
2343
2339
|
v(e.imageUrls), new ResizeObserver((c) => {
|
|
2344
2340
|
window.requestAnimationFrame(() => {
|
|
2345
2341
|
const l = c[0].contentRect.width, f = c[0].contentRect.height;
|
|
2346
|
-
|
|
2342
|
+
a("resize", { width: l, height: f });
|
|
2347
2343
|
});
|
|
2348
2344
|
}).observe(r.value);
|
|
2349
2345
|
});
|
|
2350
2346
|
function i() {
|
|
2351
|
-
t.value = "preloaded",
|
|
2347
|
+
t.value = "preloaded", a("preloaded");
|
|
2352
2348
|
}
|
|
2353
2349
|
function v(c) {
|
|
2354
2350
|
t.value = "init", r.value.src = c[0], o.value = new ut(c.length).onLoadFinished(
|
|
2355
2351
|
() => {
|
|
2356
|
-
t.value = "loaded",
|
|
2352
|
+
t.value = "loaded", a("ready");
|
|
2357
2353
|
}
|
|
2358
2354
|
);
|
|
2359
2355
|
}
|
|
2360
|
-
return (c, l) => (p(),
|
|
2356
|
+
return (c, l) => (p(), x("div", null, [
|
|
2361
2357
|
s("img", {
|
|
2362
2358
|
ref_key: "baseImage",
|
|
2363
2359
|
ref: r,
|
|
@@ -2365,8 +2361,8 @@ const Qn = (u) => {
|
|
|
2365
2361
|
style: { opacity: 1, borderRadius: 50 },
|
|
2366
2362
|
onLoad: i
|
|
2367
2363
|
}, null, 544),
|
|
2368
|
-
t.value === "preloaded" || t.value === "loaded" ? ve((p(),
|
|
2369
|
-
(p(!0),
|
|
2364
|
+
t.value === "preloaded" || t.value === "loaded" ? ve((p(), x("div", ca, [
|
|
2365
|
+
(p(!0), x(ce, null, me(c.imageUrls, (f, C) => (p(), x("img", {
|
|
2370
2366
|
key: C,
|
|
2371
2367
|
class: fe({ "image-instance": !0, active: C === c.activeIndex }),
|
|
2372
2368
|
src: f,
|
|
@@ -2374,7 +2370,7 @@ const Qn = (u) => {
|
|
|
2374
2370
|
}, null, 42, da))), 128))
|
|
2375
2371
|
], 512)), [
|
|
2376
2372
|
[he, t.value === "loaded"]
|
|
2377
|
-
]) :
|
|
2373
|
+
]) : O("", !0)
|
|
2378
2374
|
]));
|
|
2379
2375
|
}
|
|
2380
2376
|
}), It = /* @__PURE__ */ J(va, [["__scopeId", "data-v-8d357c5f"]]), ma = {
|
|
@@ -2396,11 +2392,11 @@ const Qn = (u) => {
|
|
|
2396
2392
|
buildingChooserData: {}
|
|
2397
2393
|
},
|
|
2398
2394
|
emits: ["goToBuilding", "hoverOverBuilding", "hoverOutBuilding"],
|
|
2399
|
-
setup(u, { emit:
|
|
2400
|
-
const e = u,
|
|
2395
|
+
setup(u, { emit: n }) {
|
|
2396
|
+
const e = u, a = n;
|
|
2401
2397
|
Ze(
|
|
2402
2398
|
be,
|
|
2403
|
-
e.i18nConfig ? new
|
|
2399
|
+
e.i18nConfig ? new Fe(e.i18nConfig) : new Fe()
|
|
2404
2400
|
);
|
|
2405
2401
|
const t = d({
|
|
2406
2402
|
preloaded: !1,
|
|
@@ -2412,7 +2408,7 @@ const Qn = (u) => {
|
|
|
2412
2408
|
(/* @__PURE__ */ new Date()).getHours() * 2 + ((/* @__PURE__ */ new Date()).getMinutes() < 30 ? 0 : 1)
|
|
2413
2409
|
), c = d(!1), l = d(new ge()), f = d(), C = d("0 0 0 0"), h = d(), m = d(), g = d(Ye.empty()), S = d(Pe.empty()), A = d(), y = T(() => A.value.isHoverEnabled);
|
|
2414
2410
|
Y(i, (L, E) => {
|
|
2415
|
-
L ?
|
|
2411
|
+
L ? a("hoverOverBuilding", L) : a("hoverOutBuilding", E);
|
|
2416
2412
|
}), Ie(() => {
|
|
2417
2413
|
if (e.buildingChooserTimeOfDay) {
|
|
2418
2414
|
const [L, E, z] = /^(\d\d):(\d\d)$/.exec(
|
|
@@ -2433,8 +2429,8 @@ const Qn = (u) => {
|
|
|
2433
2429
|
};
|
|
2434
2430
|
const z = [];
|
|
2435
2431
|
for (let { id: W, url: ue } of E.buildingOverlays)
|
|
2436
|
-
l.value.loadJson(ue.replace(".png", ".svg")).then((
|
|
2437
|
-
const q = new DOMParser().parseFromString(
|
|
2432
|
+
l.value.loadJson(ue.replace(".png", ".svg")).then((F) => {
|
|
2433
|
+
const q = new DOMParser().parseFromString(F, "image/svg+xml").getElementsByTagName("svg")[0];
|
|
2438
2434
|
C.value = q.getAttribute("viewBox"), z.push({
|
|
2439
2435
|
id: W,
|
|
2440
2436
|
svg: q.innerHTML
|
|
@@ -2444,7 +2440,7 @@ const Qn = (u) => {
|
|
|
2444
2440
|
} else
|
|
2445
2441
|
c.value = !0;
|
|
2446
2442
|
});
|
|
2447
|
-
function
|
|
2443
|
+
function $({ width: L, height: E }) {
|
|
2448
2444
|
o.value.width = L, o.value.height = E;
|
|
2449
2445
|
}
|
|
2450
2446
|
function M() {
|
|
@@ -2463,13 +2459,13 @@ const Qn = (u) => {
|
|
|
2463
2459
|
L === i.value ? "hover" : "idle"
|
|
2464
2460
|
);
|
|
2465
2461
|
if (E) {
|
|
2466
|
-
const { r: z, g: W, b: ue, a:
|
|
2462
|
+
const { r: z, g: W, b: ue, a: F, s: U } = E;
|
|
2467
2463
|
return {
|
|
2468
|
-
strokeWidth:
|
|
2464
|
+
strokeWidth: U !== void 0 ? U : 2,
|
|
2469
2465
|
stroke: `rgb(${z}, ${W}, ${ue})`,
|
|
2470
2466
|
strokeOpacity: 1,
|
|
2471
2467
|
fill: `rgb(${z}, ${W}, ${ue})`,
|
|
2472
|
-
fillOpacity:
|
|
2468
|
+
fillOpacity: F / 255,
|
|
2473
2469
|
cursor: `${e.canGoToBuildingCallback(L) ? "cursor" : "default"} !important`
|
|
2474
2470
|
};
|
|
2475
2471
|
} else
|
|
@@ -2489,7 +2485,7 @@ const Qn = (u) => {
|
|
|
2489
2485
|
y: W,
|
|
2490
2486
|
width: o.value.width,
|
|
2491
2487
|
height: o.value.height
|
|
2492
|
-
}, i.value = E,
|
|
2488
|
+
}, i.value = E, a("hoverOverBuilding", E));
|
|
2493
2489
|
}
|
|
2494
2490
|
function P(L, E) {
|
|
2495
2491
|
const { layerX: z, layerY: W } = L;
|
|
@@ -2498,7 +2494,7 @@ const Qn = (u) => {
|
|
|
2498
2494
|
y: W,
|
|
2499
2495
|
width: o.value.width,
|
|
2500
2496
|
height: o.value.height
|
|
2501
|
-
}, i.value = void 0,
|
|
2497
|
+
}, i.value = void 0, a("hoverOutBuilding", E));
|
|
2502
2498
|
}
|
|
2503
2499
|
function D(L, E) {
|
|
2504
2500
|
const { layerX: z, layerY: W } = L;
|
|
@@ -2510,55 +2506,55 @@ const Qn = (u) => {
|
|
|
2510
2506
|
});
|
|
2511
2507
|
}
|
|
2512
2508
|
function H(L) {
|
|
2513
|
-
i.value = L, y.value && i.value && e.canGoToBuildingCallback(i.value) &&
|
|
2509
|
+
i.value = L, y.value && i.value && e.canGoToBuildingCallback(i.value) && a("goToBuilding", i.value);
|
|
2514
2510
|
}
|
|
2515
2511
|
return (L, E) => {
|
|
2516
2512
|
const z = B("v-icon");
|
|
2517
|
-
return c.value ? (p(),
|
|
2518
|
-
|
|
2513
|
+
return c.value ? (p(), x("div", ma, [
|
|
2514
|
+
k(z, { "x-large": "" }, {
|
|
2519
2515
|
default: b(() => [
|
|
2520
2516
|
ee("mdi-alert-circle-outline")
|
|
2521
2517
|
]),
|
|
2522
2518
|
_: 1
|
|
2523
2519
|
})
|
|
2524
|
-
])) : m.value ? (p(),
|
|
2520
|
+
])) : m.value ? (p(), x("div", {
|
|
2525
2521
|
key: 1,
|
|
2526
2522
|
style: se(`height: ${o.value.height}px; position: relative`),
|
|
2527
2523
|
class: "image-container"
|
|
2528
2524
|
}, [
|
|
2529
|
-
|
|
2525
|
+
k(Xe, {
|
|
2530
2526
|
desktop: L.interactiveDesktop,
|
|
2531
2527
|
mobile: L.interactiveMobile
|
|
2532
2528
|
}, {
|
|
2533
2529
|
default: b(() => [
|
|
2534
2530
|
s("div", pa, [
|
|
2535
|
-
|
|
2531
|
+
k(It, {
|
|
2536
2532
|
"image-urls": h.value.imageUrls,
|
|
2537
2533
|
"active-index": v.value,
|
|
2538
|
-
onResize:
|
|
2534
|
+
onResize: $,
|
|
2539
2535
|
onPreloaded: E[0] || (E[0] = (W) => t.value.preloaded = !0),
|
|
2540
2536
|
onReady: E[1] || (E[1] = (W) => t.value.ready = !0),
|
|
2541
2537
|
onReset: M
|
|
2542
2538
|
}, null, 8, ["image-urls", "active-index"]),
|
|
2543
|
-
f.value ? ve((p(),
|
|
2539
|
+
f.value ? ve((p(), x("div", fa, [
|
|
2544
2540
|
s("div", ha, [
|
|
2545
|
-
(p(),
|
|
2546
|
-
(p(!0),
|
|
2547
|
-
key:
|
|
2541
|
+
(p(), x("svg", { viewBox: C.value }, [
|
|
2542
|
+
(p(!0), x(ce, null, me(f.value, ({ id: W, svg: ue }, F) => (p(), x("g", {
|
|
2543
|
+
key: F,
|
|
2548
2544
|
innerHTML: ue,
|
|
2549
2545
|
"data-building-id": W,
|
|
2550
2546
|
class: fe(R(W)),
|
|
2551
2547
|
style: se(I(W)),
|
|
2552
|
-
onMouseover: (
|
|
2553
|
-
onMouseout: (
|
|
2554
|
-
onMousemove: (
|
|
2555
|
-
onClick: (
|
|
2548
|
+
onMouseover: (U) => _(U, W),
|
|
2549
|
+
onMouseout: (U) => P(U, W),
|
|
2550
|
+
onMousemove: (U) => D(U),
|
|
2551
|
+
onClick: (U) => H(W)
|
|
2556
2552
|
}, null, 46, ya))), 128))
|
|
2557
2553
|
], 8, ga))
|
|
2558
2554
|
])
|
|
2559
2555
|
], 512)), [
|
|
2560
2556
|
[he, t.value.preloaded]
|
|
2561
|
-
]) :
|
|
2557
|
+
]) : O("", !0),
|
|
2562
2558
|
ve(s("div", {
|
|
2563
2559
|
class: "custom-overlay-layer",
|
|
2564
2560
|
innerHTML: L.customOverlayContent
|
|
@@ -2574,8 +2570,8 @@ const Qn = (u) => {
|
|
|
2574
2570
|
key: 0,
|
|
2575
2571
|
class: "north-indicator",
|
|
2576
2572
|
longitude: m.value.viewLongitude
|
|
2577
|
-
}, null, 8, ["longitude"])) :
|
|
2578
|
-
|
|
2573
|
+
}, null, 8, ["longitude"])) : O("", !0),
|
|
2574
|
+
k(Ct, {
|
|
2579
2575
|
modelValue: v.value,
|
|
2580
2576
|
"onUpdate:modelValue": E[2] || (E[2] = (W) => v.value = W),
|
|
2581
2577
|
"date-selector": h.value,
|
|
@@ -2594,19 +2590,19 @@ const Qn = (u) => {
|
|
|
2594
2590
|
K(L.$slots, "default", {
|
|
2595
2591
|
building: i.value,
|
|
2596
2592
|
canGoToBuilding: L.canGoToBuildingCallback(i.value),
|
|
2597
|
-
goToBuilding: () => L.canGoToBuildingCallback(i.value) &&
|
|
2593
|
+
goToBuilding: () => L.canGoToBuildingCallback(i.value) && a("goToBuilding", i.value),
|
|
2598
2594
|
pos: r.value,
|
|
2599
2595
|
isHoverable: y.value,
|
|
2600
2596
|
close: () => i.value = void 0
|
|
2601
2597
|
}, void 0, !0)
|
|
2602
2598
|
]),
|
|
2603
2599
|
_: 3
|
|
2604
|
-
}, 8, ["is-hoverable", "pos"])) :
|
|
2605
|
-
|
|
2600
|
+
}, 8, ["is-hoverable", "pos"])) : O("", !0),
|
|
2601
|
+
k(Re, {
|
|
2606
2602
|
ref_key: "hoverProbe",
|
|
2607
2603
|
ref: A
|
|
2608
2604
|
}, null, 512)
|
|
2609
|
-
], 4)) :
|
|
2605
|
+
], 4)) : O("", !0);
|
|
2610
2606
|
};
|
|
2611
2607
|
}
|
|
2612
2608
|
}), wa = /* @__PURE__ */ J(ba, [["__scopeId", "data-v-5e1006a9"]]), ka = /* @__PURE__ */ j({
|
|
@@ -2616,12 +2612,12 @@ const Qn = (u) => {
|
|
|
2616
2612
|
dimensions: {},
|
|
2617
2613
|
color: { default: () => ({ r: 108, g: 0, b: 108, a: 144, s: 2 }) }
|
|
2618
2614
|
},
|
|
2619
|
-
setup(u, { expose:
|
|
2615
|
+
setup(u, { expose: n }) {
|
|
2620
2616
|
const e = u;
|
|
2621
|
-
|
|
2617
|
+
n({
|
|
2622
2618
|
setupDraw: l
|
|
2623
2619
|
});
|
|
2624
|
-
const
|
|
2620
|
+
const a = d(!1), t = d(), o = d(new ge()), r = d(), i = d(), v = d([]), c = d();
|
|
2625
2621
|
Y(
|
|
2626
2622
|
() => e.color,
|
|
2627
2623
|
(h, m) => {
|
|
@@ -2640,7 +2636,7 @@ const Qn = (u) => {
|
|
|
2640
2636
|
}), r.value.drawImage(t.value, 0, 0, h, m), i.value = r.value.getImageData(0, 0, h, m);
|
|
2641
2637
|
for (let g = 3; g < i.value.data.length; g += 4)
|
|
2642
2638
|
i.value.data[g] !== 0 && v.value.push(g);
|
|
2643
|
-
f(),
|
|
2639
|
+
f(), a.value = !0;
|
|
2644
2640
|
}
|
|
2645
2641
|
}
|
|
2646
2642
|
function f() {
|
|
@@ -2651,7 +2647,7 @@ const Qn = (u) => {
|
|
|
2651
2647
|
for (let h = 0; h < v.value.length; h++)
|
|
2652
2648
|
i.value.data[v.value[h] - 3] = e.color.r, i.value.data[v.value[h] - 2] = e.color.g, i.value.data[v.value[h] - 1] = e.color.b, i.value.data[v.value[h]] = e.color.a;
|
|
2653
2649
|
}
|
|
2654
|
-
return (h, m) => (p(),
|
|
2650
|
+
return (h, m) => (p(), x("canvas", ye({
|
|
2655
2651
|
ref_key: "canvas",
|
|
2656
2652
|
ref: c,
|
|
2657
2653
|
class: "overlay"
|
|
@@ -2676,11 +2672,11 @@ const Qn = (u) => {
|
|
|
2676
2672
|
buildingChooserData: {}
|
|
2677
2673
|
},
|
|
2678
2674
|
emits: ["goToBuilding", "hoverOverBuilding", "hoverOutBuilding"],
|
|
2679
|
-
setup(u, { emit:
|
|
2680
|
-
const e = u,
|
|
2675
|
+
setup(u, { emit: n }) {
|
|
2676
|
+
const e = u, a = n;
|
|
2681
2677
|
Ze(
|
|
2682
2678
|
be,
|
|
2683
|
-
e.i18nConfig ? new
|
|
2679
|
+
e.i18nConfig ? new Fe(e.i18nConfig) : new Fe()
|
|
2684
2680
|
);
|
|
2685
2681
|
const t = d(), o = d({
|
|
2686
2682
|
preloaded: !1,
|
|
@@ -2704,7 +2700,7 @@ const Qn = (u) => {
|
|
|
2704
2700
|
C.value = parseInt(E) * 2 + (W < 15 ? 0 : W > 45 ? 2 : 1);
|
|
2705
2701
|
}
|
|
2706
2702
|
}), Y(f, (L, E) => {
|
|
2707
|
-
L ?
|
|
2703
|
+
L ? a("hoverOverBuilding", L) : a("hoverOutBuilding", E);
|
|
2708
2704
|
}), de(async () => {
|
|
2709
2705
|
const E = await new kt(
|
|
2710
2706
|
e.cdnFileResolver
|
|
@@ -2716,7 +2712,7 @@ const Qn = (u) => {
|
|
|
2716
2712
|
viewLongitude: E.viewLongitude
|
|
2717
2713
|
}, I()) : m.value = !0;
|
|
2718
2714
|
});
|
|
2719
|
-
function
|
|
2715
|
+
function $({ width: L, height: E }) {
|
|
2720
2716
|
r.value.width = L, r.value.height = E, Se(I);
|
|
2721
2717
|
}
|
|
2722
2718
|
function M() {
|
|
@@ -2745,7 +2741,7 @@ const Qn = (u) => {
|
|
|
2745
2741
|
}));
|
|
2746
2742
|
}
|
|
2747
2743
|
function P(L) {
|
|
2748
|
-
f.value = R(L), y.value && f.value &&
|
|
2744
|
+
f.value = R(L), y.value && f.value && a("goToBuilding", f.value);
|
|
2749
2745
|
}
|
|
2750
2746
|
function D(L) {
|
|
2751
2747
|
return e.colorCallback(
|
|
@@ -2758,35 +2754,35 @@ const Qn = (u) => {
|
|
|
2758
2754
|
}
|
|
2759
2755
|
return (L, E) => {
|
|
2760
2756
|
const z = B("v-icon");
|
|
2761
|
-
return m.value ? (p(),
|
|
2762
|
-
|
|
2757
|
+
return m.value ? (p(), x("div", Ia, [
|
|
2758
|
+
k(z, { "x-large": "" }, {
|
|
2763
2759
|
default: b(() => [
|
|
2764
2760
|
ee("mdi-alert-circle-outline")
|
|
2765
2761
|
]),
|
|
2766
2762
|
_: 1
|
|
2767
2763
|
})
|
|
2768
|
-
])) : v.value ? (p(),
|
|
2764
|
+
])) : v.value ? (p(), x("div", {
|
|
2769
2765
|
key: 1,
|
|
2770
2766
|
style: se(`cursor: ${f.value ? "pointer" : "auto"};height: ${r.value.height}px; position: relative`),
|
|
2771
2767
|
class: "image-container"
|
|
2772
2768
|
}, [
|
|
2773
|
-
|
|
2769
|
+
k(Xe, {
|
|
2774
2770
|
desktop: L.interactiveDesktop,
|
|
2775
2771
|
mobile: L.interactiveMobile,
|
|
2776
2772
|
onUpdate: H
|
|
2777
2773
|
}, {
|
|
2778
2774
|
default: b(() => [
|
|
2779
2775
|
s("div", Aa, [
|
|
2780
|
-
|
|
2776
|
+
k(It, {
|
|
2781
2777
|
"image-urls": t.value.imageUrls,
|
|
2782
2778
|
"active-index": C.value,
|
|
2783
|
-
onResize:
|
|
2779
|
+
onResize: $,
|
|
2784
2780
|
onPreloaded: E[0] || (E[0] = (W) => o.value.preloaded = !0),
|
|
2785
2781
|
onReady: E[1] || (E[1] = (W) => o.value.ready = !0),
|
|
2786
2782
|
onReset: M
|
|
2787
2783
|
}, null, 8, ["image-urls", "active-index"]),
|
|
2788
2784
|
ve(s("div", null, [
|
|
2789
|
-
(p(!0),
|
|
2785
|
+
(p(!0), x(ce, null, me(v.value.buildingOverlays, (W) => (p(), V(Ca, {
|
|
2790
2786
|
ref_for: !0,
|
|
2791
2787
|
ref_key: "overlays",
|
|
2792
2788
|
ref: A,
|
|
@@ -2820,8 +2816,8 @@ const Qn = (u) => {
|
|
|
2820
2816
|
key: 0,
|
|
2821
2817
|
class: "north-indicator",
|
|
2822
2818
|
longitude: v.value.viewLongitude
|
|
2823
|
-
}, null, 8, ["longitude"])) :
|
|
2824
|
-
|
|
2819
|
+
}, null, 8, ["longitude"])) : O("", !0),
|
|
2820
|
+
k(Ct, {
|
|
2825
2821
|
modelValue: C.value,
|
|
2826
2822
|
"onUpdate:modelValue": E[2] || (E[2] = (W) => C.value = W),
|
|
2827
2823
|
"date-selector": t.value,
|
|
@@ -2840,22 +2836,22 @@ const Qn = (u) => {
|
|
|
2840
2836
|
K(L.$slots, "default", {
|
|
2841
2837
|
building: f.value,
|
|
2842
2838
|
canGoToBuilding: L.canGoToBuildingCallback(f.value),
|
|
2843
|
-
goToBuilding: () => L.canGoToBuildingCallback(f.value) &&
|
|
2839
|
+
goToBuilding: () => L.canGoToBuildingCallback(f.value) && a("goToBuilding", f.value),
|
|
2844
2840
|
pos: i.value,
|
|
2845
2841
|
isHoverable: y.value,
|
|
2846
2842
|
close: () => f.value = void 0
|
|
2847
2843
|
}, void 0, !0)
|
|
2848
2844
|
]),
|
|
2849
2845
|
_: 3
|
|
2850
|
-
}, 8, ["is-hoverable", "pos"])) :
|
|
2851
|
-
|
|
2846
|
+
}, 8, ["is-hoverable", "pos"])) : O("", !0),
|
|
2847
|
+
k(Re, {
|
|
2852
2848
|
ref_key: "hoverProbe",
|
|
2853
2849
|
ref: g
|
|
2854
2850
|
}, null, 512)
|
|
2855
|
-
], 4)) :
|
|
2851
|
+
], 4)) : O("", !0);
|
|
2856
2852
|
};
|
|
2857
2853
|
}
|
|
2858
|
-
}),
|
|
2854
|
+
}), Fa = /* @__PURE__ */ J(La, [["__scopeId", "data-v-088f521e"]]), xa = /* @__PURE__ */ j({
|
|
2859
2855
|
__name: "VBuildingChooser",
|
|
2860
2856
|
props: {
|
|
2861
2857
|
showCards: { type: Boolean, default: !0 },
|
|
@@ -2871,9 +2867,9 @@ const Qn = (u) => {
|
|
|
2871
2867
|
buildingChooserData: {}
|
|
2872
2868
|
},
|
|
2873
2869
|
emits: ["goToBuilding", "hoverOverBuilding", "hoverOutBuilding"],
|
|
2874
|
-
setup(u, { emit:
|
|
2875
|
-
const e = u,
|
|
2876
|
-
() => e.useSvg ? wa :
|
|
2870
|
+
setup(u, { emit: n }) {
|
|
2871
|
+
const e = u, a = n, t = T(
|
|
2872
|
+
() => e.useSvg ? wa : Fa
|
|
2877
2873
|
);
|
|
2878
2874
|
return (o, r) => (p(), V(yt(t.value), {
|
|
2879
2875
|
"i18n-config": e.i18nConfig,
|
|
@@ -2886,9 +2882,9 @@ const Qn = (u) => {
|
|
|
2886
2882
|
"can-go-to-building-callback": e.canGoToBuildingCallback,
|
|
2887
2883
|
"custom-overlay-content": e.customOverlayContent,
|
|
2888
2884
|
"building-chooser-data": e.buildingChooserData,
|
|
2889
|
-
onGoToBuilding: r[0] || (r[0] = (i) =>
|
|
2890
|
-
onHoverOverBuilding: r[1] || (r[1] = (i) =>
|
|
2891
|
-
onHoverOutBuilding: r[2] || (r[2] = (i) =>
|
|
2885
|
+
onGoToBuilding: r[0] || (r[0] = (i) => a("goToBuilding", i)),
|
|
2886
|
+
onHoverOverBuilding: r[1] || (r[1] = (i) => a("hoverOverBuilding", i)),
|
|
2887
|
+
onHoverOutBuilding: r[2] || (r[2] = (i) => a("hoverOutBuilding", i))
|
|
2892
2888
|
}, Vt({ _: 2 }, [
|
|
2893
2889
|
me(Object.keys(o.$slots), (i) => ({
|
|
2894
2890
|
name: i,
|
|
@@ -2906,13 +2902,13 @@ const Qn = (u) => {
|
|
|
2906
2902
|
currentTime: {}
|
|
2907
2903
|
},
|
|
2908
2904
|
setup(u) {
|
|
2909
|
-
const
|
|
2910
|
-
return (
|
|
2905
|
+
const n = u, e = T(() => ie(n.cdnFileResolver, n.timeSampleData.filename));
|
|
2906
|
+
return (a, t) => ve((p(), x("img", {
|
|
2911
2907
|
key: e.value,
|
|
2912
2908
|
src: e.value,
|
|
2913
2909
|
width: "100%"
|
|
2914
2910
|
}, null, 8, Da)), [
|
|
2915
|
-
[he,
|
|
2911
|
+
[he, a.timeSampleData === a.currentTime]
|
|
2916
2912
|
]);
|
|
2917
2913
|
}
|
|
2918
2914
|
}), Ea = /* @__PURE__ */ J(Ma, [["__scopeId", "data-v-98118455"]]), Ta = /* @__PURE__ */ j({
|
|
@@ -2923,10 +2919,10 @@ const Qn = (u) => {
|
|
|
2923
2919
|
currentTime: {}
|
|
2924
2920
|
},
|
|
2925
2921
|
setup(u) {
|
|
2926
|
-
const
|
|
2927
|
-
return (e,
|
|
2922
|
+
const n = u;
|
|
2923
|
+
return (e, a) => (p(!0), x(ce, null, me(n.dayData.timeSamples, (t) => (p(), V(Ea, {
|
|
2928
2924
|
"time-sample-data": t,
|
|
2929
|
-
"cdn-file-resolver":
|
|
2925
|
+
"cdn-file-resolver": n.cdnFileResolver,
|
|
2930
2926
|
"current-time": e.currentTime
|
|
2931
2927
|
}, null, 8, ["time-sample-data", "cdn-file-resolver", "current-time"]))), 256));
|
|
2932
2928
|
}
|
|
@@ -2938,11 +2934,11 @@ const Qn = (u) => {
|
|
|
2938
2934
|
currentTime: {}
|
|
2939
2935
|
},
|
|
2940
2936
|
setup(u) {
|
|
2941
|
-
const
|
|
2942
|
-
return (e,
|
|
2937
|
+
const n = u;
|
|
2938
|
+
return (e, a) => (p(!0), x(ce, null, me(n.cameraData.sunsimDayOfYear, (t) => (p(), V(Ta, {
|
|
2943
2939
|
"day-data": t,
|
|
2944
|
-
"cdn-file-resolver":
|
|
2945
|
-
"current-time":
|
|
2940
|
+
"cdn-file-resolver": n.cdnFileResolver,
|
|
2941
|
+
"current-time": n.currentTime
|
|
2946
2942
|
}, null, 8, ["day-data", "cdn-file-resolver", "current-time"]))), 256));
|
|
2947
2943
|
}
|
|
2948
2944
|
}), Ba = /* @__PURE__ */ j({
|
|
@@ -2952,12 +2948,12 @@ const Qn = (u) => {
|
|
|
2952
2948
|
currentCamera: {}
|
|
2953
2949
|
},
|
|
2954
2950
|
emits: ["onCameraChange"],
|
|
2955
|
-
setup(u, { emit:
|
|
2956
|
-
const e = u,
|
|
2951
|
+
setup(u, { emit: n }) {
|
|
2952
|
+
const e = u, a = n, t = d(
|
|
2957
2953
|
e.currentCamera.overlayFilename
|
|
2958
2954
|
);
|
|
2959
2955
|
return Y(t, () => {
|
|
2960
|
-
|
|
2956
|
+
a(
|
|
2961
2957
|
"onCameraChange",
|
|
2962
2958
|
e.buildingChooserData.cameras.find(
|
|
2963
2959
|
(o) => o.overlayFilename === t.value
|
|
@@ -2984,15 +2980,15 @@ const Qn = (u) => {
|
|
|
2984
2980
|
currentDay: {}
|
|
2985
2981
|
},
|
|
2986
2982
|
emits: ["onDayChange"],
|
|
2987
|
-
setup(u, { emit:
|
|
2988
|
-
const e = u,
|
|
2983
|
+
setup(u, { emit: n }) {
|
|
2984
|
+
const e = u, a = n, t = d(e.currentDay.dayOfYear);
|
|
2989
2985
|
Y(
|
|
2990
2986
|
() => e.currentDay.dayOfYear,
|
|
2991
2987
|
() => {
|
|
2992
2988
|
t.value = e.currentDay.dayOfYear;
|
|
2993
2989
|
}
|
|
2994
2990
|
), Y(t, () => {
|
|
2995
|
-
|
|
2991
|
+
a(
|
|
2996
2992
|
"onDayChange",
|
|
2997
2993
|
e.cameraData.sunsimDayOfYear.find(
|
|
2998
2994
|
(r) => r.dayOfYear === t.value
|
|
@@ -3019,7 +3015,7 @@ const Qn = (u) => {
|
|
|
3019
3015
|
"hide-details": ""
|
|
3020
3016
|
}, {
|
|
3021
3017
|
item: b(({ props: l }) => [
|
|
3022
|
-
|
|
3018
|
+
k(v, ye(l, {
|
|
3023
3019
|
title: o(l.title)
|
|
3024
3020
|
}), null, 16, ["title"])
|
|
3025
3021
|
]),
|
|
@@ -3040,15 +3036,15 @@ const Qn = (u) => {
|
|
|
3040
3036
|
currentTime: {}
|
|
3041
3037
|
},
|
|
3042
3038
|
emits: ["onTimeChange"],
|
|
3043
|
-
setup(u, { emit:
|
|
3044
|
-
const e = u,
|
|
3039
|
+
setup(u, { emit: n }) {
|
|
3040
|
+
const e = u, a = n, t = d(e.currentTime.timeInHours), o = d();
|
|
3045
3041
|
Y(
|
|
3046
3042
|
() => e.currentTime.timeInHours,
|
|
3047
3043
|
() => {
|
|
3048
3044
|
t.value = e.currentTime.timeInHours;
|
|
3049
3045
|
}
|
|
3050
3046
|
), Y(t, () => {
|
|
3051
|
-
|
|
3047
|
+
a(
|
|
3052
3048
|
"onTimeChange",
|
|
3053
3049
|
e.dayData.timeSamples.find(
|
|
3054
3050
|
(v) => v.timeInHours === t.value
|
|
@@ -3073,8 +3069,8 @@ const Qn = (u) => {
|
|
|
3073
3069
|
const l = B("v-icon"), f = B("v-btn"), C = B("v-slider"), h = B("v-field");
|
|
3074
3070
|
return p(), V(h, { variant: "solo" }, {
|
|
3075
3071
|
default: b(() => [
|
|
3076
|
-
v.dayData.startTime === v.dayData.endTime ? (p(),
|
|
3077
|
-
|
|
3072
|
+
v.dayData.startTime === v.dayData.endTime ? (p(), x("div", Oa, [
|
|
3073
|
+
k(l, {
|
|
3078
3074
|
style: { color: "#ffab02", "vertical-align": "baseline", "font-size": "20px" },
|
|
3079
3075
|
class: "py-2 ml-2 mr-2 icon"
|
|
3080
3076
|
}, {
|
|
@@ -3095,7 +3091,7 @@ const Qn = (u) => {
|
|
|
3095
3091
|
"hide-details": ""
|
|
3096
3092
|
}, {
|
|
3097
3093
|
prepend: b(() => [
|
|
3098
|
-
|
|
3094
|
+
k(f, {
|
|
3099
3095
|
icon: o.value ? "mdi-stop" : "mdi-play",
|
|
3100
3096
|
size: "x-small",
|
|
3101
3097
|
variant: "flat",
|
|
@@ -3107,7 +3103,7 @@ const Qn = (u) => {
|
|
|
3107
3103
|
append: b(() => [
|
|
3108
3104
|
s("span", Ua, Q(r(v.dayData.endTime)), 1),
|
|
3109
3105
|
ee(" "),
|
|
3110
|
-
|
|
3106
|
+
k(l, {
|
|
3111
3107
|
style: { color: "#ffab02", "vertical-align": "baseline", "font-size": "20px" },
|
|
3112
3108
|
class: "ml-2 mr-2 icon"
|
|
3113
3109
|
}, {
|
|
@@ -3134,8 +3130,8 @@ const Qn = (u) => {
|
|
|
3134
3130
|
selectedId: {}
|
|
3135
3131
|
},
|
|
3136
3132
|
emits: ["onClick", "onHoverOver", "onHoverOut", "updateSvgContainer"],
|
|
3137
|
-
setup(u, { emit:
|
|
3138
|
-
const e = u,
|
|
3133
|
+
setup(u, { emit: n }) {
|
|
3134
|
+
const e = u, a = n, t = d(), o = d(), r = d(e.selectedId), i = dt({});
|
|
3139
3135
|
Ie(() => {
|
|
3140
3136
|
for (const l in i) {
|
|
3141
3137
|
const { element: f, state: C } = i[l], { r: h, g: m, b: g, a: S, s: A } = e.colorCallback(l, C) || {
|
|
@@ -3185,7 +3181,7 @@ const Qn = (u) => {
|
|
|
3185
3181
|
Se(() => {
|
|
3186
3182
|
var f;
|
|
3187
3183
|
const l = (f = o.value) == null ? void 0 : f.firstChild;
|
|
3188
|
-
l && (
|
|
3184
|
+
l && (a("updateSvgContainer", l), v(), l.querySelectorAll("[data-building-id]").forEach((h) => {
|
|
3189
3185
|
h.style.strokeWidth = "0", h.style.stroke = "rgba(255,255,255,0)", h.style.fill = "rgba(255,255,255,0)", h.querySelectorAll("path").forEach((g) => {
|
|
3190
3186
|
g.style.stroke = "inherit", g.style.fill = "inherit";
|
|
3191
3187
|
});
|
|
@@ -3194,18 +3190,18 @@ const Qn = (u) => {
|
|
|
3194
3190
|
element: h,
|
|
3195
3191
|
state: r.value === m ? "selected" : "idle"
|
|
3196
3192
|
}, h.addEventListener("mouseover", () => {
|
|
3197
|
-
i[m].state === "idle" && (i[m].state = "hover"),
|
|
3193
|
+
i[m].state === "idle" && (i[m].state = "hover"), a("onHoverOver", m);
|
|
3198
3194
|
}), h.addEventListener("mouseout", () => {
|
|
3199
|
-
i[m].state === "hover" && (i[m].state = "idle"),
|
|
3195
|
+
i[m].state === "hover" && (i[m].state = "idle"), a("onHoverOut", m);
|
|
3200
3196
|
}), h.addEventListener("click", () => {
|
|
3201
|
-
|
|
3197
|
+
a("onClick", m);
|
|
3202
3198
|
});
|
|
3203
3199
|
}));
|
|
3204
3200
|
});
|
|
3205
3201
|
}
|
|
3206
3202
|
return (l, f) => (p(), V(Le, null, {
|
|
3207
3203
|
default: b(() => [
|
|
3208
|
-
(p(),
|
|
3204
|
+
(p(), x("div", {
|
|
3209
3205
|
ref_key: "svgContainer",
|
|
3210
3206
|
ref: o,
|
|
3211
3207
|
key: l.currentCamera.overlayFilename,
|
|
@@ -3218,7 +3214,7 @@ const Qn = (u) => {
|
|
|
3218
3214
|
}));
|
|
3219
3215
|
}
|
|
3220
3216
|
}), Wa = /* @__PURE__ */ J(ja, [["__scopeId", "data-v-37109c67"]]), za = (u) => {
|
|
3221
|
-
const
|
|
3217
|
+
const n = {
|
|
3222
3218
|
version: "5.0",
|
|
3223
3219
|
latitude: u.latitude,
|
|
3224
3220
|
longitude: u.longitude,
|
|
@@ -3253,7 +3249,7 @@ const Qn = (u) => {
|
|
|
3253
3249
|
}))
|
|
3254
3250
|
}
|
|
3255
3251
|
];
|
|
3256
|
-
const
|
|
3252
|
+
const a = {
|
|
3257
3253
|
cameraName: "Default",
|
|
3258
3254
|
cameraPosition: u.cameraPosition,
|
|
3259
3255
|
cameraRotation: u.cameraRotation,
|
|
@@ -3261,7 +3257,7 @@ const Qn = (u) => {
|
|
|
3261
3257
|
overlayFilename: "/BuildingChooserV5.svg",
|
|
3262
3258
|
sunsimDayOfYear: e
|
|
3263
3259
|
};
|
|
3264
|
-
return
|
|
3260
|
+
return n.cameras.push(a), n;
|
|
3265
3261
|
}, Na = {
|
|
3266
3262
|
class: "actions-bar compact top-left d-flex w-100 justify-space-around align-center",
|
|
3267
3263
|
style: { "z-index": "6" }
|
|
@@ -3286,12 +3282,12 @@ const Qn = (u) => {
|
|
|
3286
3282
|
mobileBreakpoint: { default: 600 }
|
|
3287
3283
|
},
|
|
3288
3284
|
emits: ["onClick", "onHoverOver", "onHoverOut", "onMouseMove", "onInitialize", "onError"],
|
|
3289
|
-
setup(u, { emit:
|
|
3290
|
-
const e = u,
|
|
3285
|
+
setup(u, { emit: n }) {
|
|
3286
|
+
const e = u, a = n, t = d(), o = d(), r = d(), i = d(), v = d(!1), c = d(), l = T(() => c.value.isHoverEnabled), f = d({ x: 0, y: 0, width: 0, height: 0 }), C = d(), h = d(), m = d(
|
|
3291
3287
|
e.buildingChooserData
|
|
3292
3288
|
), g = d(!1);
|
|
3293
3289
|
de(() => v.value = !0), Y(v, (_) => {
|
|
3294
|
-
_ &&
|
|
3290
|
+
_ && a("onInitialize");
|
|
3295
3291
|
}), Y(
|
|
3296
3292
|
() => h.value,
|
|
3297
3293
|
() => {
|
|
@@ -3310,7 +3306,7 @@ const Qn = (u) => {
|
|
|
3310
3306
|
ie(e.cdnFileResolver, "/buildingChooser.json")
|
|
3311
3307
|
), parseInt(P.version) === 5 ? P : (_ = za(P), _);
|
|
3312
3308
|
} catch (_) {
|
|
3313
|
-
v.value = !1,
|
|
3309
|
+
v.value = !1, a("onError", _);
|
|
3314
3310
|
}
|
|
3315
3311
|
};
|
|
3316
3312
|
Y(
|
|
@@ -3353,7 +3349,7 @@ const Qn = (u) => {
|
|
|
3353
3349
|
function y(_) {
|
|
3354
3350
|
const P = r.value;
|
|
3355
3351
|
o.value = _, Se(() => {
|
|
3356
|
-
|
|
3352
|
+
$(
|
|
3357
3353
|
o.value.timeSamples.find(
|
|
3358
3354
|
(D) => D.timeInHours === P.timeInHours
|
|
3359
3355
|
) || o.value.timeSamples.find(
|
|
@@ -3362,14 +3358,14 @@ const Qn = (u) => {
|
|
|
3362
3358
|
);
|
|
3363
3359
|
});
|
|
3364
3360
|
}
|
|
3365
|
-
function
|
|
3361
|
+
function $(_) {
|
|
3366
3362
|
r.value = _;
|
|
3367
3363
|
}
|
|
3368
3364
|
function M(_) {
|
|
3369
|
-
|
|
3365
|
+
a("onHoverOver", _), i.value = _;
|
|
3370
3366
|
}
|
|
3371
3367
|
function R(_) {
|
|
3372
|
-
|
|
3368
|
+
a("onHoverOut", _), i.value = void 0;
|
|
3373
3369
|
}
|
|
3374
3370
|
function I(_) {
|
|
3375
3371
|
const { layerX: P, layerY: D } = _;
|
|
@@ -3390,18 +3386,18 @@ const Qn = (u) => {
|
|
|
3390
3386
|
};
|
|
3391
3387
|
} else
|
|
3392
3388
|
f.value = void 0;
|
|
3393
|
-
|
|
3389
|
+
a("onMouseMove", _, f.value);
|
|
3394
3390
|
}
|
|
3395
3391
|
return (_, P) => {
|
|
3396
3392
|
const D = B("v-skeleton-loader");
|
|
3397
|
-
return p(),
|
|
3398
|
-
|
|
3393
|
+
return p(), x(ce, null, [
|
|
3394
|
+
k(D, {
|
|
3399
3395
|
type: "image",
|
|
3400
3396
|
class: "w-100 h-100 position-relative",
|
|
3401
3397
|
loading: !v.value || !m.value
|
|
3402
3398
|
}, {
|
|
3403
3399
|
default: b(() => [
|
|
3404
|
-
|
|
3400
|
+
k(Le, { class: "w-100 h-100" }, {
|
|
3405
3401
|
default: b(() => [
|
|
3406
3402
|
s("div", {
|
|
3407
3403
|
ref_key: "container",
|
|
@@ -3410,55 +3406,56 @@ const Qn = (u) => {
|
|
|
3410
3406
|
onMousemove: I
|
|
3411
3407
|
}, [
|
|
3412
3408
|
s("div", Na, [
|
|
3413
|
-
m.value.cameras.length > 1 ? (p(),
|
|
3414
|
-
|
|
3409
|
+
m.value.cameras.length > 1 ? (p(), x("div", Ga, [
|
|
3410
|
+
k(Ba, {
|
|
3415
3411
|
"building-chooser-data": m.value,
|
|
3416
3412
|
"current-camera": t.value,
|
|
3417
3413
|
onOnCameraChange: A
|
|
3418
3414
|
}, null, 8, ["building-chooser-data", "current-camera"])
|
|
3419
|
-
])) :
|
|
3415
|
+
])) : O("", !0),
|
|
3420
3416
|
s("div", Qa, [
|
|
3421
3417
|
t.value.sunsimDayOfYear.length > 1 ? (p(), V(Ra, {
|
|
3422
3418
|
key: 0,
|
|
3423
3419
|
"camera-data": t.value,
|
|
3424
3420
|
"current-day": o.value,
|
|
3425
3421
|
onOnDayChange: y
|
|
3426
|
-
}, null, 8, ["camera-data", "current-day"])) :
|
|
3422
|
+
}, null, 8, ["camera-data", "current-day"])) : O("", !0)
|
|
3427
3423
|
]),
|
|
3428
3424
|
s("div", qa, [
|
|
3429
3425
|
o.value.timeSamples.length > 1 ? (p(), V(Ya, {
|
|
3430
3426
|
key: 0,
|
|
3431
3427
|
"day-data": o.value,
|
|
3432
3428
|
"current-time": r.value,
|
|
3433
|
-
onOnTimeChange:
|
|
3434
|
-
}, null, 8, ["day-data", "current-time"])) :
|
|
3429
|
+
onOnTimeChange: $
|
|
3430
|
+
}, null, 8, ["day-data", "current-time"])) : O("", !0)
|
|
3435
3431
|
])
|
|
3436
3432
|
]),
|
|
3437
3433
|
s("div", Za, [
|
|
3438
|
-
|
|
3434
|
+
t.value.cameraRotation ? (p(), V(Ke, {
|
|
3435
|
+
key: 0,
|
|
3439
3436
|
longitude: t.value.cameraRotation.y + 270
|
|
3440
|
-
}, null, 8, ["longitude"])
|
|
3437
|
+
}, null, 8, ["longitude"])) : O("", !0)
|
|
3441
3438
|
]),
|
|
3442
|
-
|
|
3439
|
+
k(Xe, { position: "relative" }, {
|
|
3443
3440
|
default: b(() => [
|
|
3444
|
-
(p(!0),
|
|
3441
|
+
(p(!0), x(ce, null, me(m.value.cameras, (H) => (p(), V(Va, {
|
|
3445
3442
|
key: H.overlayFilename,
|
|
3446
3443
|
"camera-data": H,
|
|
3447
3444
|
"cdn-file-resolver": e.cdnFileResolver,
|
|
3448
3445
|
"current-time": r.value
|
|
3449
3446
|
}, null, 8, ["camera-data", "cdn-file-resolver", "current-time"]))), 128)),
|
|
3450
|
-
e.customOverlayContent ? (p(),
|
|
3447
|
+
e.customOverlayContent ? (p(), x("div", {
|
|
3451
3448
|
key: 0,
|
|
3452
3449
|
class: "w-100 h-100 position-absolute top-left",
|
|
3453
3450
|
style: { "z-index": "5", "pointer-events": "none" },
|
|
3454
3451
|
innerHTML: e.customOverlayContent
|
|
3455
|
-
}, null, 8, Ja)) :
|
|
3456
|
-
|
|
3452
|
+
}, null, 8, Ja)) : O("", !0),
|
|
3453
|
+
k(Wa, {
|
|
3457
3454
|
"cdn-file-resolver": _.cdnFileResolver,
|
|
3458
3455
|
"color-callback": e.colorCallback,
|
|
3459
3456
|
"current-camera": t.value,
|
|
3460
3457
|
"selected-id": e.selectedId,
|
|
3461
|
-
onOnClick: P[0] || (P[0] = (H) =>
|
|
3458
|
+
onOnClick: P[0] || (P[0] = (H) => a("onClick", H)),
|
|
3462
3459
|
onOnHoverOver: M,
|
|
3463
3460
|
onOnHoverOut: R,
|
|
3464
3461
|
onUpdateSvgContainer: P[1] || (P[1] = (H) => C.value = H)
|
|
@@ -3477,7 +3474,7 @@ const Qn = (u) => {
|
|
|
3477
3474
|
])
|
|
3478
3475
|
]),
|
|
3479
3476
|
_: 3
|
|
3480
|
-
}, 8, ["is-hoverable", "pos"])) :
|
|
3477
|
+
}, 8, ["is-hoverable", "pos"])) : O("", !0)
|
|
3481
3478
|
], 34)
|
|
3482
3479
|
]),
|
|
3483
3480
|
_: 3
|
|
@@ -3485,14 +3482,14 @@ const Qn = (u) => {
|
|
|
3485
3482
|
]),
|
|
3486
3483
|
_: 3
|
|
3487
3484
|
}, 8, ["loading"]),
|
|
3488
|
-
|
|
3485
|
+
k(Re, {
|
|
3489
3486
|
ref_key: "hoverProbe",
|
|
3490
3487
|
ref: c
|
|
3491
3488
|
}, null, 512)
|
|
3492
3489
|
], 64);
|
|
3493
3490
|
};
|
|
3494
3491
|
}
|
|
3495
|
-
}), oi = /* @__PURE__ */ J(Ka, [["__scopeId", "data-v-
|
|
3492
|
+
}), oi = /* @__PURE__ */ J(Ka, [["__scopeId", "data-v-65cfcd3f"]]);
|
|
3496
3493
|
var We = {};
|
|
3497
3494
|
Object.defineProperty(We, "__esModule", {
|
|
3498
3495
|
value: !0
|
|
@@ -3545,19 +3542,19 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
3545
3542
|
mouseSensitivity: { default: 1 }
|
|
3546
3543
|
},
|
|
3547
3544
|
emits: ["newCameraCallback", "newRotationCallback", "newFloorCallback", "newFovCallback", "playerApiCallback", "newSizeCallback"],
|
|
3548
|
-
setup(u, { emit:
|
|
3549
|
-
const e = Ot.PlayerV2,
|
|
3545
|
+
setup(u, { emit: n }) {
|
|
3546
|
+
const e = Ot.PlayerV2, a = u, t = n, o = d(), r = d(), i = d(0), v = d(0);
|
|
3550
3547
|
return Y(
|
|
3551
3548
|
[
|
|
3552
|
-
() =>
|
|
3553
|
-
() =>
|
|
3554
|
-
() =>
|
|
3549
|
+
() => a.cdnFileResolver,
|
|
3550
|
+
() => a.interiorId,
|
|
3551
|
+
() => a.apartmentId
|
|
3555
3552
|
],
|
|
3556
3553
|
async () => {
|
|
3557
3554
|
o.value && await o.value.loadInterior(
|
|
3558
3555
|
ie(
|
|
3559
|
-
|
|
3560
|
-
`/${
|
|
3556
|
+
a.cdnFileResolver,
|
|
3557
|
+
`/${a.interiorId}/${a.apartmentId}`
|
|
3561
3558
|
),
|
|
3562
3559
|
r.value,
|
|
3563
3560
|
!1
|
|
@@ -3565,15 +3562,15 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
3565
3562
|
}
|
|
3566
3563
|
), Y(
|
|
3567
3564
|
[
|
|
3568
|
-
() =>
|
|
3569
|
-
() =>
|
|
3570
|
-
() =>
|
|
3565
|
+
() => a.cdnFileResolver,
|
|
3566
|
+
() => a.interiorId,
|
|
3567
|
+
() => a.apartmentId
|
|
3571
3568
|
],
|
|
3572
3569
|
async () => {
|
|
3573
3570
|
o.value && await o.value.loadInterior(
|
|
3574
3571
|
ie(
|
|
3575
|
-
|
|
3576
|
-
`/${
|
|
3572
|
+
a.cdnFileResolver,
|
|
3573
|
+
`/${a.interiorId}/${a.apartmentId}`
|
|
3577
3574
|
),
|
|
3578
3575
|
void 0,
|
|
3579
3576
|
!1
|
|
@@ -3581,7 +3578,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
3581
3578
|
},
|
|
3582
3579
|
{ deep: !0 }
|
|
3583
3580
|
), Y(
|
|
3584
|
-
() =>
|
|
3581
|
+
() => a.currentCameraId,
|
|
3585
3582
|
(c) => {
|
|
3586
3583
|
o.value && (r.value = c, o.value.goToCamera(c, !0));
|
|
3587
3584
|
}
|
|
@@ -3611,21 +3608,21 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
3611
3608
|
return;
|
|
3612
3609
|
const h = await new e.Main(
|
|
3613
3610
|
ie(
|
|
3614
|
-
|
|
3615
|
-
`/${
|
|
3611
|
+
a.cdnFileResolver,
|
|
3612
|
+
`/${a.interiorId}/${a.apartmentId}`
|
|
3616
3613
|
),
|
|
3617
3614
|
"qpc",
|
|
3618
3615
|
C,
|
|
3619
3616
|
void 0,
|
|
3620
|
-
|
|
3617
|
+
a.currentCameraId
|
|
3621
3618
|
);
|
|
3622
3619
|
h && (h.handleWindowResize(), window.addEventListener(
|
|
3623
3620
|
"resize",
|
|
3624
3621
|
h.handleWindowResize.bind(h)
|
|
3625
|
-
), h.animate(), o.value = e.Main.getPlayerAPI(), o.value && o.value.setLookSensitivity(
|
|
3622
|
+
), h.animate(), o.value = e.Main.getPlayerAPI(), o.value && o.value.setLookSensitivity(a.mouseSensitivity));
|
|
3626
3623
|
}), je(() => {
|
|
3627
3624
|
o.value && o.value.destroy();
|
|
3628
|
-
}), (c, l) => (p(),
|
|
3625
|
+
}), (c, l) => (p(), x("div", io, [
|
|
3629
3626
|
s("div", ro, [
|
|
3630
3627
|
K(c.$slots, "slideshow-image", {}, void 0, !0),
|
|
3631
3628
|
s("div", uo, [
|
|
@@ -3675,14 +3672,14 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
3675
3672
|
floorLevels: { default: () => [] }
|
|
3676
3673
|
},
|
|
3677
3674
|
emits: ["level"],
|
|
3678
|
-
setup(u, { emit:
|
|
3679
|
-
const e = u,
|
|
3675
|
+
setup(u, { emit: n }) {
|
|
3676
|
+
const e = u, a = n, t = Be(be), o = T(() => {
|
|
3680
3677
|
const l = e.floorLevels;
|
|
3681
3678
|
return l.sort(), l;
|
|
3682
3679
|
}), r = T(() => o.value.indexOf(e.level) + 1 <= o.value.length / 2 ? "lower" : "upper"), i = T(() => r.value === "lower"), v = T(() => r.value === "upper");
|
|
3683
3680
|
function c() {
|
|
3684
3681
|
const l = e.level + 1;
|
|
3685
|
-
l >= o.value.length ?
|
|
3682
|
+
l >= o.value.length ? a("level", o.value[0]) : a("level", o.value[l]);
|
|
3686
3683
|
}
|
|
3687
3684
|
return (l, f) => {
|
|
3688
3685
|
const C = B("v-btn"), h = B("v-tooltip");
|
|
@@ -3691,14 +3688,14 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
3691
3688
|
attach: ""
|
|
3692
3689
|
}, {
|
|
3693
3690
|
activator: b(({ props: m }) => [
|
|
3694
|
-
|
|
3691
|
+
k(C, ye({
|
|
3695
3692
|
style: { cursor: "pointer" },
|
|
3696
3693
|
density: "comfortable",
|
|
3697
3694
|
elevation: "1",
|
|
3698
3695
|
icon: ""
|
|
3699
3696
|
}, m, { onClick: c }), {
|
|
3700
3697
|
default: b(() => [
|
|
3701
|
-
(p(),
|
|
3698
|
+
(p(), x("svg", ko, [
|
|
3702
3699
|
s("path", {
|
|
3703
3700
|
d: "M8.98034 10.3472L1.54055 5.8855L8.98034 1.42384L16.4201 5.8855L8.98034 10.3472Z",
|
|
3704
3701
|
fill: "white",
|
|
@@ -3725,7 +3722,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
3725
3722
|
});
|
|
3726
3723
|
};
|
|
3727
3724
|
}
|
|
3728
|
-
}), Lo = /* @__PURE__ */ J(So, [["__scopeId", "data-v-5ce91d8e"]]),
|
|
3725
|
+
}), Lo = /* @__PURE__ */ J(So, [["__scopeId", "data-v-5ce91d8e"]]), Fo = { class: "d-none d-md-inline" }, xo = /* @__PURE__ */ j({
|
|
3729
3726
|
__name: "VInteriorSelector",
|
|
3730
3727
|
props: {
|
|
3731
3728
|
cdnFileResolver: { type: [String, Function] },
|
|
@@ -3733,43 +3730,43 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
3733
3730
|
selectedIndex: {}
|
|
3734
3731
|
},
|
|
3735
3732
|
emits: ["selectInterior"],
|
|
3736
|
-
setup(u, { emit:
|
|
3737
|
-
const e = u,
|
|
3733
|
+
setup(u, { emit: n }) {
|
|
3734
|
+
const e = u, a = n, t = Be(be);
|
|
3738
3735
|
return (o, r) => {
|
|
3739
3736
|
const i = B("v-icon"), v = B("v-btn"), c = B("v-img"), l = B("v-list-item-title"), f = B("v-list-item"), C = B("v-list"), h = B("v-menu");
|
|
3740
|
-
return p(),
|
|
3741
|
-
|
|
3737
|
+
return p(), x("div", null, [
|
|
3738
|
+
k(h, {
|
|
3742
3739
|
transition: "slide-x-reverse-transition",
|
|
3743
3740
|
location: "top end",
|
|
3744
3741
|
origin: "end bottom",
|
|
3745
3742
|
elevation: "0"
|
|
3746
3743
|
}, {
|
|
3747
3744
|
activator: b(({ props: m }) => [
|
|
3748
|
-
|
|
3745
|
+
k(v, ye({ rounded: "" }, m, { class: "text-capitalize" }), {
|
|
3749
3746
|
default: b(() => [
|
|
3750
|
-
|
|
3747
|
+
k(i, null, {
|
|
3751
3748
|
default: b(() => [
|
|
3752
3749
|
ee("mdi-palette-outline")
|
|
3753
3750
|
]),
|
|
3754
3751
|
_: 1
|
|
3755
3752
|
}),
|
|
3756
|
-
s("span",
|
|
3753
|
+
s("span", Fo, Q(ae(t).getLabel("interior")), 1)
|
|
3757
3754
|
]),
|
|
3758
3755
|
_: 2
|
|
3759
3756
|
}, 1040)
|
|
3760
3757
|
]),
|
|
3761
3758
|
default: b(() => [
|
|
3762
|
-
|
|
3759
|
+
k(C, { class: "interior-selector-list" }, {
|
|
3763
3760
|
default: b(() => [
|
|
3764
|
-
(p(!0),
|
|
3761
|
+
(p(!0), x(ce, null, me(e.availableArchetypes, (m, g) => (p(), V(f, {
|
|
3765
3762
|
density: "compact",
|
|
3766
3763
|
key: `at-menuitem-${g}`,
|
|
3767
|
-
onClick: (S) =>
|
|
3764
|
+
onClick: (S) => a("selectInterior", m.archetypeID),
|
|
3768
3765
|
active: g === o.selectedIndex,
|
|
3769
3766
|
class: "interior-selector-list-item"
|
|
3770
3767
|
}, {
|
|
3771
3768
|
prepend: b(() => [
|
|
3772
|
-
|
|
3769
|
+
k(c, {
|
|
3773
3770
|
width: "100",
|
|
3774
3771
|
"max-width": "100",
|
|
3775
3772
|
height: "66",
|
|
@@ -3777,7 +3774,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
3777
3774
|
}, null, 8, ["src"])
|
|
3778
3775
|
]),
|
|
3779
3776
|
default: b(() => [
|
|
3780
|
-
|
|
3777
|
+
k(l, { class: "text-caption py-2 px-4" }, {
|
|
3781
3778
|
default: b(() => [
|
|
3782
3779
|
ee(Q(ae(t).get(m.title)), 1)
|
|
3783
3780
|
]),
|
|
@@ -3795,25 +3792,25 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
3795
3792
|
]);
|
|
3796
3793
|
};
|
|
3797
3794
|
}
|
|
3798
|
-
}), Do = /* @__PURE__ */ J(
|
|
3795
|
+
}), Do = /* @__PURE__ */ J(xo, [["__scopeId", "data-v-3cf3c177"]]), Mo = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAxQSURBVHgB7Z1JbBTHGsc/x5Z58B6EJzZBWDogYUAowSg3kDKOxDVOjiiH55hTTvAOmFPkiXIyHALikAsQc4g4Yl9BigcJbhF2hMQmAcMiEKsdYUFwIJP6d1dNatrdPbV09/TM9E+qTHs8xNP972+p6qqviHKaig5qYiqVisNeRHuftaUhH51h7XfWyjju6OiYoialKQRjwkCIHax9zFqBHztkB0Qr89cLeGVCzlDGyaxgTKQCeeJ8yl/ToESegONMvBJlkEwJxkXqZ22Awt1bWpTJE/BYM7vQ2IG7Y20/axOV7DLJ2v8oAzTMwipeXDrA2n5qvDWpUmbtNGujzOrK1A5UPIsqsjZdiYHXY2OVZx995LbZkZF5v58ZHKz+/g/22Zi4U/HOIfUb7T1KEXaCsKg7rA1TAlb1x88/05+//kop4JB3Dqm7ylQEYye1g7UJdvgDJez+Zr/9liovX1JKOKyNcotzKAUSFwyug71MUkqp+V8PH9KrH3+klHFYu8PPNVESEwx3HLeqYUoZuMa5iQlqAMNJW1sigrEv/AWlaFWCrp4e6li82D1O2TXKOKxN8GsQO7ELxt3CWWpAqg6xFn3zjfc9mFgQrUE4rJ1NwkXGKhj7gkepAS5Q5l9ffUVdn3ziHsMtvrtxgxoIXOQPFCOxCFbx+lYIGvspBl4y63j37h2Zsvj776uu0cQtvnnzhp49e0YxcYBdm7Nx9dmsBeNfBGIVyIK3b9/SQ5bhTU1N0c2bN+nx48dkyntr1tC/h4bIFNwwd+/epStXrsQlHOLZRByiWQkmibWDLMBFuXbtGj169KhqWS9evCAbFnz+OXX39ZEJ4m/Pzc3FKRyukbVothb2E1mI9erVK7rBYgwuCi4OWMxc2aZNm2j79u1ky3+Ya+xk1qbL5s2byXEcWrBggfuzEO7q1auuu7QA1+osWWA8+MsTDOOYBZf34MGD6s+4OGvXrqWlS/VuwLdM8LlffnGPOz/4wLWssN93f/aZm/rr8Pz5c9fyZaFWr15NawxuBImjbPD4/2SAkWA8XTXKBnHi5XKZZmdn3Z+7urpo5cqVbuvs7KSsAtEQYwWLFi2ijRs3Vq3QgO+YaEXSRFsw3iE0MmsE81u3blXjFNwfXE93dzc1A3CNSIiEteF7w31DPEO+ZKKN6fwDLcH4kAuSDIc08bvAVatWuS6wGfFbG84D52MA5pD06jxb0xUMj0Yc0gQnh5MEcIEbNmzQjlVZY2ZmxnXtwltYxLUSE0w5nVXOEnncckgTWSz4+61btza9WADnsG3btmoM81udBgV2bZXzASUL467wDmniFwvpcrPEK1X8cc3C0npVJvuoWpj2swrErFYXC+CccG6ypRmO0iiNOdYVjFnXAGm6QnSIRYLRymIJ/KLh3F/qj2EW+BSKSCJdIh9GwXMthxSBa4CLgKtAgoGY1cpiyeCcMRqCRAR9Spy7Zj8NWeOHUTOQ61kYFHdIA/SzxDATssF2EQvgXNGvBBANw1mawEAiR49CBeOJhtaMICQZr1+/do8ReFshG9QF54xRGwC3aBDPDkQNEEdZ2ABpukI5yUC21K6sW7fOHcUBiGeI6RpEWlmUYFrWBVcoQABud+AaxdioPMKjSKiVBQqmmxniWZHsCtspboWBayC7Rs3naRAr0GDCLEzrsUnuCoPB+KLcP9Oc9hA462qeYJilSxoPJXHniKwwF6sWuEQxwI1rpJmAoF9W8L8ZZGHG1rVs2TLKqQVZo0hAnjx5Qpr0+98IEqxAiuTWpYaIZXCJmiMgA/43agTjJuiQIkuWLHGzIdxBuXWFAyuDB0JCpvmwc6nfLXb5PtBPGiATglC5WPWxmFSENd4l8YPfJVpNV8tJhIL8Q3Xwl3fUpikni/xXDAjLFpZbV3apaiML9inlZJWPxUFuYc1BQRzIWaIT9unr16+7M2B7enpo+fLllJM6VWPqCnrTDzrIp06dco/x6GDLli3U29vrvuakgiMOXMH4+KES9+/fd9v58+fdTiCsbufOnbn1JQzTaAPLFO928B8KFDEzChY2OTnpukasNgl7IJdbX6IUmGAXhGAD5C0dUuLevXtug3givvk5cuRIW4+A4LroAO9Ux0MNMMFOixj2Pmmwfv16t+3evdu1vkuXLrkuUvNReMuCa3L48GGtf7Nv3756grlPoLvkH1SAKJcvX3bjGF791oW4hpi2cOFCyomVGsEiwR0DC4KZQyg/sDY5+cj5h71791ZH6M+cOePe8P39/VVrGhsbCwwpYSgJBqEgmIxILiBSPlofjnx9IA4Ew7UTN/bFixe1BDNe4wyrQ+Lx9OlTykkPJQvDHTE4OOim9hAJdwQEEwlH3h9LDyXBIAAyQjQgp/SiXwYx0QD6Y4cOHbJZSpoTghBsRucfibR+z549rliIb+Pj49XfIzHBPMVcsFpwzVasWGF6XVyNtDvOEEhYVljWCNq94ywSiXrXANcTNze6QXWErOk4l6M+iVgFCwob1QCi/4UYhuyx3a1L9WbFdVK8VmX8R0kwCIXkwo9IT+U0NScxsBWJJxjKDjC3WPdf5FbUOMT6Z3kSTmhJB7hE8QAzpyFgX5heHMhpPRR0gj6tMJKckyxlcSCPdJQoJ6tUy0HIgv1GOVmlJA7yiaTNwfyJpPyNEuVkjZJcBsI/Wl+inKxRU87IL9gF0kAUVkZN3JxoMJSH7pFBCdqaeoo1gvFtBJUHgjEGhhWYWNSHcnQ5wUAoVGBFoRVRiVWRMmZKyW8EPcAcJUWwkE+UNjBYDto2WCwrLvnfCBJsnDSQSxvkVjYfy2XFx/xvzBOMu8USKSKXNsCjFpsdHVoRC+uaCqqfGDanQ7lwMFyiuHMMShu0NEjILKzraNCbYYJhY05l/4Y7Ry5tYFmMvyWQa2/hqYamdSHZOB30i0DBeEctUOEwRAERw7JzLQdqRgpQKl2T0bBfRE1zQ8BTtjLcRZh8A5CAhE0daAdkV2hQe6tMnocLJFQwEytDxii7xnbMGqenp2tcoUHsitwjut5EUi0rA3LZOdR1b6d4hnMV4QBZoYErLFNAKi8TKRi3su9IA7G9BUA8k0uEtzKi1rHo1uAaGJQhLEbV+wWqdeu1N3SDSxRxzF91utWQC1MDxHIxoKABMsMP631IdW699tZJ+MKi4L6/GH8r4RcL52wgFlDazkNJMN7jLpIm8i4JrShakFiGVe2Kqhvm6G6WY7TXpbwvCRISJCbNXnEb2SASDBGzLMRScoUCk+2osOJB+2rLMQ3EsMtdw8B5yE8nDGMWKLPWl9h2VMBmwzfMI799+3bNhmnNlIwE7S6IXfpE39OAZDd8E/Dtk4pkAPw9SqbLC9izbm14sg6LQotxd0HELa0uE7DZtBS78RwgQ/z7beHEIZzphFXcAOfOnXPXqImbQaxr27VrF5mCWIW68yKxABYuUJDupqUC0yREEGRtJsLhIeHIyEjoyhr8v4rFotZaAAyr4VGR/EgfVgWxLCskjDGxviRDbAWLZePtoK13cXFUd5g4efJkdXUNrElU4ZFX3WDxIVb0q4BJRbJFiXr8Max3Q/eor95oRhRKS2bDwB9moqHDZyWaqBssC6dzcUTVGQiFAiUCiAfrw4wluEpVwfC38T1i3rLYWixgJRiQRMMKzi/IAlk4k8wLa68hkOxOIZLYZkQVTHvA37fI/vyUyMsIrR9fWLlEP7aJiClYHSqvsRb1QxBvsK64weBxydcUE7EKBmxSfhtQZcZf/AXA2oaGhhq1XMoodY8idsEA71zD2hxKkbAygcgOIVqK1gbX97Vup1iFRAQDNruqx4XsKnWyREtK5IlVpgQwLl1UD3xhPqhZpIQ5ceIEHTx4kI4fP17zPmKZQDfxMAQusC8psUBiggm4D4dwZUoIFCtBZgl3iD4ZXCJKA+JYkPD67BJ5G2fHGq+CSMwlBsELuCApcShGEKuGh4dDRzrQH5P7ZzGCWAWrOkYpkapggI+OYI+yAYpROIiGUQ00JB9INJAZQiybscQQxIyyY3H0rXRIXTCBtO3wADUwMdGkYUJlCrhK1iYr2WWCtf2ViP2V06JhFhZExaufD3dZoMZbHSxolLzRda2VqUmSKcFkmHjYvAcdcIhYoHQoiZYlkWQyK5gMd0XY4adAnoAO2W/uUyZvBL3EX39rhrjUFIKFwV0oau475E0MCosxM7yVyZullC+vyUmHvwGblCVYM8UGOgAAAABJRU5ErkJggg==", Eo = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMdSURBVHgB7dxBTttQEMbxsU32idouujM7FhjlBqQnaG5AbkBvUPUEpTegN8gR6AlAgQU70lWlQkUUscR+fVZrRKlL7CTQN6P/T0IJwYkUDfNhvzdEBAAAAAAAAAAAAAAAAAAAAAD+i+t+v3+5vT0Qg2IxqHBuP47jXTHIZMHEuYETeScGmSvYZb9fFiv1d7sWY9FcwWLn9u7ux/FbMcZeJPo4vLsrMhJjTBXsXhxWzMWiqYLdj8NKlCR7YoipgjnnhjUPDv11WVeMMFOwqywb+Zu6wnQlz81ck5kp2GNnhLmha7JIDCgjLy+K60cOmSVxvNk7OZmJciY6LM/z4YJDukVRmDj5sBGJcbywGLUnJAqpj0Qfh6mPw4smx/pY7GmPRfUd5uNw0PRYC7GoPxIbxGHFQiyqjsQ2cVjRHouqO8xHXOvVeP+cfVFMeySOpCV3bzVfI7WRuEwcVlxRvHl1dnYkCqntsFWiTfO8h+ZIXPqMT/PGpsqC1WxUtpVq3dhUWbC6jcrWr6F03kNnJK7hTE9rLKor2BrisKJy3kNdwdYRh3evpTAW9UXiGi98y1jUNu+hqmBXWTZcUxxWure3t31RRFXBoieIMG1jcGqWphrMbSxL1byHmg5rMLexrPIXQc3Jh5qCPekZnXMjUUJFJK6yMt+Ulo1NFR3WZm5jWVrmPXREYou5jWVpmfcIPhKfIw4rGmIx+A57jjisaIjF4AsWRVG7nWXnjhK/fJWUEefcuN1Tw4/FoCOxaRz6N3Hi22M8v7n5tDmd/hFp37a20qTTGcRR9F4aLGslSZL2jo+/SqA2JGALxthmviMO/RsY905Pv/zroNfn51N/c1h+XWfZbl7ug0VR2Um1i75Fno/8zQcJVNAd9mNn5+KvxV4feT4mx/P5/PPDbmrje5aN/N+DPV+8wYMfTV9OJpsSqGALVn78kI/D49/fzqKiOKiLvFWVkbnR6exHv7ouLR8LeQwu2IL57vroIy9NRA4ei7x1qiLTF2/6YjIJNhbxwEWamvkndgAAAAAAAAAAAAAAAAAAAAAAAAAAAABYxU+ILzGcMmFd0QAAAABJRU5ErkJggg==", To = /* @__PURE__ */ j({
|
|
3799
3796
|
__name: "VCompass",
|
|
3800
3797
|
props: {
|
|
3801
3798
|
rotation: {}
|
|
3802
3799
|
},
|
|
3803
3800
|
setup(u) {
|
|
3804
|
-
const
|
|
3801
|
+
const n = u, e = d(Eo), a = d({
|
|
3805
3802
|
backgroundImage: `url(${Mo})`,
|
|
3806
3803
|
backgroundSize: "contain"
|
|
3807
3804
|
}), t = T(() => ({
|
|
3808
|
-
transform: `rotate(${-
|
|
3805
|
+
transform: `rotate(${-n.rotation + 180}deg)`
|
|
3809
3806
|
}));
|
|
3810
3807
|
return (o, r) => {
|
|
3811
3808
|
const i = B("v-img");
|
|
3812
|
-
return p(),
|
|
3813
|
-
style: se(
|
|
3809
|
+
return p(), x("div", {
|
|
3810
|
+
style: se(a.value),
|
|
3814
3811
|
class: "compass-wrapper"
|
|
3815
3812
|
}, [
|
|
3816
|
-
|
|
3813
|
+
k(i, {
|
|
3817
3814
|
class: "compass-needle",
|
|
3818
3815
|
src: e.value,
|
|
3819
3816
|
style: se(t.value)
|
|
@@ -3828,15 +3825,15 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
3828
3825
|
minutes: { default: 0 }
|
|
3829
3826
|
},
|
|
3830
3827
|
setup(u) {
|
|
3831
|
-
const
|
|
3832
|
-
function
|
|
3828
|
+
const n = u, e = T(() => [a(n.hours), ":", a(n.minutes)].join(""));
|
|
3829
|
+
function a(t) {
|
|
3833
3830
|
return ("0" + t).slice(-2);
|
|
3834
3831
|
}
|
|
3835
3832
|
return (t, o) => {
|
|
3836
3833
|
const r = B("v-img");
|
|
3837
|
-
return p(),
|
|
3834
|
+
return p(), x("div", Bo, [
|
|
3838
3835
|
s("div", Ro, [
|
|
3839
|
-
|
|
3836
|
+
k(r, {
|
|
3840
3837
|
src: ae(Vo),
|
|
3841
3838
|
"aspect-ratio": "1"
|
|
3842
3839
|
}, null, 8, ["src"])
|
|
@@ -3864,8 +3861,8 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
3864
3861
|
showStaticImage: { type: Boolean }
|
|
3865
3862
|
},
|
|
3866
3863
|
emits: ["toggle"],
|
|
3867
|
-
setup(u, { emit:
|
|
3868
|
-
const e = u,
|
|
3864
|
+
setup(u, { emit: n }) {
|
|
3865
|
+
const e = u, a = n, t = Be(be), o = T(() => {
|
|
3869
3866
|
let r = "virtualTour";
|
|
3870
3867
|
return e.showStaticImage || (r = "slideShow"), r;
|
|
3871
3868
|
});
|
|
@@ -3873,14 +3870,14 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
3873
3870
|
const v = B("v-icon"), c = B("v-btn"), l = B("v-tooltip");
|
|
3874
3871
|
return p(), V(l, { location: "top" }, {
|
|
3875
3872
|
activator: b(({ props: f }) => [
|
|
3876
|
-
|
|
3873
|
+
k(c, ye({
|
|
3877
3874
|
density: "comfortable",
|
|
3878
3875
|
elevation: "1",
|
|
3879
3876
|
icon: "",
|
|
3880
|
-
onClick: i[0] || (i[0] = (C) =>
|
|
3877
|
+
onClick: i[0] || (i[0] = (C) => a("toggle"))
|
|
3881
3878
|
}, f), {
|
|
3882
3879
|
default: b(() => [
|
|
3883
|
-
o.value === "virtualTour" ? (p(),
|
|
3880
|
+
o.value === "virtualTour" ? (p(), x("svg", Ho, Wo)) : (p(), V(v, { key: 1 }, {
|
|
3884
3881
|
default: b(() => [
|
|
3885
3882
|
ee("mdi-image-multiple")
|
|
3886
3883
|
]),
|
|
@@ -4430,8 +4427,8 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4430
4427
|
project: {}
|
|
4431
4428
|
},
|
|
4432
4429
|
emits: ["closeTutorial"],
|
|
4433
|
-
setup(u, { emit:
|
|
4434
|
-
const e = u,
|
|
4430
|
+
setup(u, { emit: n }) {
|
|
4431
|
+
const e = u, a = n, t = Be(be), o = d(!0), r = d(!1), i = T(() => [
|
|
4435
4432
|
/Android/i,
|
|
4436
4433
|
/webOS/i,
|
|
4437
4434
|
/iPhone/i,
|
|
@@ -4443,10 +4440,10 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4443
4440
|
const f = localStorage.getItem(
|
|
4444
4441
|
`${e.project}-dont-show-tutorial`
|
|
4445
4442
|
);
|
|
4446
|
-
return f &&
|
|
4443
|
+
return f && a("closeTutorial"), f;
|
|
4447
4444
|
});
|
|
4448
4445
|
function c() {
|
|
4449
|
-
r.value && l(), o.value = !1,
|
|
4446
|
+
r.value && l(), o.value = !1, a("closeTutorial");
|
|
4450
4447
|
}
|
|
4451
4448
|
function l() {
|
|
4452
4449
|
localStorage.setItem(`${e.project}-dont-show-tutorial`, "true");
|
|
@@ -4455,8 +4452,8 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4455
4452
|
const h = B("v-checkbox"), m = B("v-btn");
|
|
4456
4453
|
return p(), V(Le, { name: "fade-transition" }, {
|
|
4457
4454
|
default: b(() => [
|
|
4458
|
-
o.value && !v.value ? (p(),
|
|
4459
|
-
i.value ?
|
|
4455
|
+
o.value && !v.value ? (p(), x("div", Go, [
|
|
4456
|
+
i.value ? O("", !0) : (p(), x("div", Qo, [
|
|
4460
4457
|
s("div", qo, [
|
|
4461
4458
|
s("div", Zo, [
|
|
4462
4459
|
Jo,
|
|
@@ -4478,7 +4475,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4478
4475
|
])
|
|
4479
4476
|
])
|
|
4480
4477
|
])),
|
|
4481
|
-
i.value ? (p(),
|
|
4478
|
+
i.value ? (p(), x("div", ul, [
|
|
4482
4479
|
s("div", cl, [
|
|
4483
4480
|
dl,
|
|
4484
4481
|
s("div", vl, Q(ae(t).getLabel("tapAndDragToLookAround")), 1)
|
|
@@ -4491,14 +4488,14 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4491
4488
|
gl,
|
|
4492
4489
|
s("div", yl, Q(ae(t).getLabel("useTwoFingersToZoom")), 1)
|
|
4493
4490
|
])
|
|
4494
|
-
])) :
|
|
4491
|
+
])) : O("", !0),
|
|
4495
4492
|
s("div", _l, [
|
|
4496
|
-
|
|
4493
|
+
k(h, {
|
|
4497
4494
|
modelValue: r.value,
|
|
4498
4495
|
"onUpdate:modelValue": C[0] || (C[0] = (g) => r.value = g),
|
|
4499
4496
|
label: ae(t).getLabel("dontShowAgain")
|
|
4500
4497
|
}, null, 8, ["modelValue", "label"]),
|
|
4501
|
-
|
|
4498
|
+
k(m, {
|
|
4502
4499
|
small: "",
|
|
4503
4500
|
outlined: "",
|
|
4504
4501
|
class: "mt-5",
|
|
@@ -4510,13 +4507,13 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4510
4507
|
_: 1
|
|
4511
4508
|
})
|
|
4512
4509
|
])
|
|
4513
|
-
])) :
|
|
4510
|
+
])) : O("", !0)
|
|
4514
4511
|
]),
|
|
4515
4512
|
_: 1
|
|
4516
4513
|
});
|
|
4517
4514
|
};
|
|
4518
4515
|
}
|
|
4519
|
-
}), wl = /* @__PURE__ */ J(bl, [["__scopeId", "data-v-ccf327cb"]]), kl = (u) => (at("data-v-bd4f66c3"), u = u(), ot(), u), Cl = { class: "player-settings-ui" }, Il = { id: "settings-ui-form" }, Al = { class: "form-inputs" }, Sl = { class: "setting-label" }, Ll = { class: "setting-label" },
|
|
4516
|
+
}), wl = /* @__PURE__ */ J(bl, [["__scopeId", "data-v-ccf327cb"]]), kl = (u) => (at("data-v-bd4f66c3"), u = u(), ot(), u), Cl = { class: "player-settings-ui" }, Il = { id: "settings-ui-form" }, Al = { class: "form-inputs" }, Sl = { class: "setting-label" }, Ll = { class: "setting-label" }, Fl = ["max", "min", "step"], xl = { class: "setting-label" }, Dl = { class: "flex-grow-1 flex-shrink-0" }, Ml = ["onUpdate:modelValue"], El = {
|
|
4520
4517
|
key: 3,
|
|
4521
4518
|
"d-block": "",
|
|
4522
4519
|
class: "mt-3"
|
|
@@ -4532,8 +4529,8 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4532
4529
|
initialSettings: {}
|
|
4533
4530
|
},
|
|
4534
4531
|
emits: ["updateSettings", "saveSettings"],
|
|
4535
|
-
setup(u, { emit:
|
|
4536
|
-
const e = u,
|
|
4532
|
+
setup(u, { emit: n }) {
|
|
4533
|
+
const e = u, a = n, t = d(
|
|
4537
4534
|
h(e.initialSettings)
|
|
4538
4535
|
);
|
|
4539
4536
|
Y(
|
|
@@ -4550,7 +4547,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4550
4547
|
return m;
|
|
4551
4548
|
});
|
|
4552
4549
|
function r() {
|
|
4553
|
-
|
|
4550
|
+
a("updateSettings", o.value);
|
|
4554
4551
|
}
|
|
4555
4552
|
function i() {
|
|
4556
4553
|
const m = document.createElement("a");
|
|
@@ -4561,10 +4558,10 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4561
4558
|
m.download = g, m.style.display = "none", document.body.appendChild(m), m.click(), document.body.removeChild(m);
|
|
4562
4559
|
}
|
|
4563
4560
|
function v() {
|
|
4564
|
-
|
|
4561
|
+
a("saveSettings", o.value);
|
|
4565
4562
|
}
|
|
4566
4563
|
function c() {
|
|
4567
|
-
t.value = h(),
|
|
4564
|
+
t.value = h(), a("updateSettings", o.value);
|
|
4568
4565
|
}
|
|
4569
4566
|
function l(m) {
|
|
4570
4567
|
const g = parseInt(m.substr(1, 2), 16) / 255, S = parseInt(m.substr(3, 2), 16) / 255, A = parseInt(m.substr(5, 2), 16) / 255;
|
|
@@ -4674,11 +4671,11 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4674
4671
|
};
|
|
4675
4672
|
}
|
|
4676
4673
|
return (m, g) => {
|
|
4677
|
-
const S = B("v-text-field"), A = B("v-slider"), y = B("v-checkbox"),
|
|
4678
|
-
return p(),
|
|
4674
|
+
const S = B("v-text-field"), A = B("v-slider"), y = B("v-checkbox"), $ = B("v-btn"), M = B("v-select"), R = B("v-icon");
|
|
4675
|
+
return p(), x("div", Cl, [
|
|
4679
4676
|
s("form", Il, [
|
|
4680
4677
|
s("div", Al, [
|
|
4681
|
-
(p(!0),
|
|
4678
|
+
(p(!0), x(ce, null, me(t.value, (I, _, P) => (p(), x("div", {
|
|
4682
4679
|
key: P,
|
|
4683
4680
|
"d-block": ""
|
|
4684
4681
|
}, [
|
|
@@ -4696,7 +4693,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4696
4693
|
]),
|
|
4697
4694
|
append: b(() => [
|
|
4698
4695
|
s("div", null, [
|
|
4699
|
-
|
|
4696
|
+
k(S, {
|
|
4700
4697
|
modelValue: t.value[_].value,
|
|
4701
4698
|
"onUpdate:modelValue": (D) => t.value[_].value = D,
|
|
4702
4699
|
"hide-details": "",
|
|
@@ -4712,7 +4709,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4712
4709
|
])
|
|
4713
4710
|
]),
|
|
4714
4711
|
_: 2
|
|
4715
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "max", "min", "step"])) :
|
|
4712
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "max", "min", "step"])) : O("", !0),
|
|
4716
4713
|
I.type === "boolean" ? (p(), V(y, {
|
|
4717
4714
|
key: 1,
|
|
4718
4715
|
modelValue: t.value[_].value,
|
|
@@ -4726,15 +4723,15 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4726
4723
|
s("div", null, Q(I.value), 1)
|
|
4727
4724
|
]),
|
|
4728
4725
|
_: 2
|
|
4729
|
-
}, 1032, ["modelValue", "onUpdate:modelValue"])) :
|
|
4730
|
-
I.type === "color" ? (p(),
|
|
4726
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])) : O("", !0),
|
|
4727
|
+
I.type === "color" ? (p(), x("div", {
|
|
4731
4728
|
key: 2,
|
|
4732
4729
|
class: "d-flex",
|
|
4733
4730
|
max: I.max,
|
|
4734
4731
|
min: I.min,
|
|
4735
4732
|
step: I.step
|
|
4736
4733
|
}, [
|
|
4737
|
-
s("div",
|
|
4734
|
+
s("div", xl, Q(I.label), 1),
|
|
4738
4735
|
s("div", Dl, [
|
|
4739
4736
|
ve(s("input", {
|
|
4740
4737
|
"onUpdate:modelValue": (D) => t.value[_].value = D,
|
|
@@ -4745,7 +4742,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4745
4742
|
])
|
|
4746
4743
|
]),
|
|
4747
4744
|
s("div", null, [
|
|
4748
|
-
|
|
4745
|
+
k(S, {
|
|
4749
4746
|
modelValue: t.value[_].value,
|
|
4750
4747
|
"onUpdate:modelValue": (D) => t.value[_].value = D,
|
|
4751
4748
|
"hide-details": "",
|
|
@@ -4757,12 +4754,12 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4757
4754
|
onChange: r
|
|
4758
4755
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
4759
4756
|
])
|
|
4760
|
-
], 8,
|
|
4761
|
-
I.type === "lut" ? (p(),
|
|
4757
|
+
], 8, Fl)) : O("", !0),
|
|
4758
|
+
I.type === "lut" ? (p(), x("div", El, [
|
|
4762
4759
|
s("div", Tl, [
|
|
4763
4760
|
s("div", Vl, Q(I.label), 1),
|
|
4764
4761
|
s("div", null, [
|
|
4765
|
-
|
|
4762
|
+
k($, {
|
|
4766
4763
|
class: "ml-2",
|
|
4767
4764
|
"x-small": "",
|
|
4768
4765
|
onClick: (D) => t.value[_].value = null
|
|
@@ -4777,7 +4774,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4777
4774
|
s("div", null, [
|
|
4778
4775
|
s("div", Bl, [
|
|
4779
4776
|
s("div", null, [
|
|
4780
|
-
|
|
4777
|
+
k(M, {
|
|
4781
4778
|
modelValue: t.value[_].value,
|
|
4782
4779
|
"onUpdate:modelValue": (D) => t.value[_].value = D,
|
|
4783
4780
|
items: I.items,
|
|
@@ -4793,7 +4790,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4793
4790
|
Rl,
|
|
4794
4791
|
s("div", Ol, [
|
|
4795
4792
|
s("div", null, [
|
|
4796
|
-
|
|
4793
|
+
k(S, {
|
|
4797
4794
|
modelValue: t.value[_].value,
|
|
4798
4795
|
"onUpdate:modelValue": (D) => t.value[_].value = D,
|
|
4799
4796
|
"hide-details": "",
|
|
@@ -4805,11 +4802,11 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4805
4802
|
])
|
|
4806
4803
|
])
|
|
4807
4804
|
])
|
|
4808
|
-
])) :
|
|
4805
|
+
])) : O("", !0)
|
|
4809
4806
|
]))), 128))
|
|
4810
4807
|
]),
|
|
4811
4808
|
s("div", $l, [
|
|
4812
|
-
|
|
4809
|
+
k($, {
|
|
4813
4810
|
onClick: g[0] || (g[0] = (I) => c())
|
|
4814
4811
|
}, {
|
|
4815
4812
|
default: b(() => [
|
|
@@ -4817,13 +4814,13 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4817
4814
|
]),
|
|
4818
4815
|
_: 1
|
|
4819
4816
|
}),
|
|
4820
|
-
|
|
4817
|
+
k($, {
|
|
4821
4818
|
class: "ml-2",
|
|
4822
4819
|
onClick: g[1] || (g[1] = (I) => i())
|
|
4823
4820
|
}, {
|
|
4824
4821
|
default: b(() => [
|
|
4825
4822
|
ee(" Download Json "),
|
|
4826
|
-
|
|
4823
|
+
k(R, { color: "black darken-1" }, {
|
|
4827
4824
|
default: b(() => [
|
|
4828
4825
|
ee("mdi-download")
|
|
4829
4826
|
]),
|
|
@@ -4832,13 +4829,13 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4832
4829
|
]),
|
|
4833
4830
|
_: 1
|
|
4834
4831
|
}),
|
|
4835
|
-
|
|
4832
|
+
k($, {
|
|
4836
4833
|
class: "ml-2",
|
|
4837
4834
|
onClick: g[2] || (g[2] = (I) => v())
|
|
4838
4835
|
}, {
|
|
4839
4836
|
default: b(() => [
|
|
4840
4837
|
ee(" Save Settings "),
|
|
4841
|
-
|
|
4838
|
+
k(R, { color: "black darken-1" }, {
|
|
4842
4839
|
default: b(() => [
|
|
4843
4840
|
ee("mdi-save")
|
|
4844
4841
|
]),
|
|
@@ -4858,8 +4855,8 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4858
4855
|
}, Wl = { class: "moveable-footer" }, zl = /* @__PURE__ */ j({
|
|
4859
4856
|
__name: "VMoveable",
|
|
4860
4857
|
emits: ["close", "transform"],
|
|
4861
|
-
setup(u, { emit:
|
|
4862
|
-
const e =
|
|
4858
|
+
setup(u, { emit: n }) {
|
|
4859
|
+
const e = n, a = d("big");
|
|
4863
4860
|
de(() => {
|
|
4864
4861
|
t(document.getElementById("moveableDiv"));
|
|
4865
4862
|
});
|
|
@@ -4884,28 +4881,28 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4884
4881
|
}
|
|
4885
4882
|
}
|
|
4886
4883
|
function o() {
|
|
4887
|
-
|
|
4884
|
+
a.value === "big" ? a.value = "small" : a.value = "big";
|
|
4888
4885
|
}
|
|
4889
4886
|
return (r, i) => {
|
|
4890
4887
|
const v = B("v-btn");
|
|
4891
|
-
return p(),
|
|
4888
|
+
return p(), x("div", {
|
|
4892
4889
|
id: "moveableDiv",
|
|
4893
|
-
class: fe(["big d-flex justify-space-between flex-column align-center sizer",
|
|
4890
|
+
class: fe(["big d-flex justify-space-between flex-column align-center sizer", a.value])
|
|
4894
4891
|
}, [
|
|
4895
|
-
|
|
4892
|
+
k(v, {
|
|
4896
4893
|
class: "close-icon",
|
|
4897
4894
|
icon: "mdi-window-close",
|
|
4898
4895
|
size: "x-small",
|
|
4899
4896
|
onClick: i[0] || (i[0] = (c) => e("close"))
|
|
4900
4897
|
}),
|
|
4901
|
-
|
|
4898
|
+
k(v, {
|
|
4902
4899
|
class: "resize-icon",
|
|
4903
4900
|
icon: "mdi-image-size-select-small",
|
|
4904
4901
|
size: "x-small",
|
|
4905
4902
|
onClick: o,
|
|
4906
4903
|
title: "Resize"
|
|
4907
4904
|
}),
|
|
4908
|
-
|
|
4905
|
+
k(v, {
|
|
4909
4906
|
class: "rotate-icon",
|
|
4910
4907
|
size: "x-small",
|
|
4911
4908
|
icon: "mdi mdi-rotate-right",
|
|
@@ -4934,11 +4931,11 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4934
4931
|
rotation: {}
|
|
4935
4932
|
},
|
|
4936
4933
|
setup(u) {
|
|
4937
|
-
return (
|
|
4934
|
+
return (n, e) => (p(), x("svg", Gl, [
|
|
4938
4935
|
Ql,
|
|
4939
4936
|
s("g", {
|
|
4940
4937
|
"transform-origin": "20 20",
|
|
4941
|
-
transform: `rotate(${45 +
|
|
4938
|
+
transform: `rotate(${45 + n.rotation})`
|
|
4942
4939
|
}, Jl, 8, ql)
|
|
4943
4940
|
]));
|
|
4944
4941
|
}
|
|
@@ -4953,10 +4950,10 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4953
4950
|
transformAngle: {}
|
|
4954
4951
|
},
|
|
4955
4952
|
setup(u) {
|
|
4956
|
-
const
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4953
|
+
const n = u, e = d(512), a = d(384), t = d(new Ve.Vector3()), o = d(new Ve.Object3D()), r = d({}), i = d(1), v = d(), c = T(() => n.allCameras), l = T(() => n.allCameras.find((_) => _.id === n.currentCamera)), f = T(() => n.rotation), C = T(() => new Ve.Vector3(
|
|
4954
|
+
n.storey.position.x,
|
|
4955
|
+
n.storey.position.y,
|
|
4956
|
+
n.storey.position.z
|
|
4960
4957
|
)), h = T(() => parseFloat(l.value.floor_vertical_position)), m = T(() => c.value.map((_) => {
|
|
4961
4958
|
const P = _.uposition.split(","), D = new Ve.Vector3(
|
|
4962
4959
|
Number(P[0]) - C.value.x,
|
|
@@ -4967,9 +4964,9 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4967
4964
|
..._,
|
|
4968
4965
|
...M(t.value, D)
|
|
4969
4966
|
};
|
|
4970
|
-
})), g = T(() => `background-image: url(${
|
|
4967
|
+
})), g = T(() => `background-image: url(${n.backgroundImage});`), S = T(() => {
|
|
4971
4968
|
let _ = i.value > 1 ? 1 : i.value;
|
|
4972
|
-
return _ < 0.8 && (_ = 0.4), `scale: ${_ > 1 ? 1 : _}; transform: rotate(${
|
|
4969
|
+
return _ < 0.8 && (_ = 0.4), `scale: ${_ > 1 ? 1 : _}; transform: rotate(${n.transformAngle}deg);`;
|
|
4973
4970
|
});
|
|
4974
4971
|
de(() => {
|
|
4975
4972
|
R(), y(), I();
|
|
@@ -4984,11 +4981,11 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4984
4981
|
return Ve.MathUtils.degToRad(_);
|
|
4985
4982
|
}
|
|
4986
4983
|
function y() {
|
|
4987
|
-
o.value.rotation.x = 180, o.value.rotation.y =
|
|
4984
|
+
o.value.rotation.x = 180, o.value.rotation.y = n.storey.rotation.y * -1, r.value = {
|
|
4988
4985
|
transform: `rotateZ(${o.value.rotation.y}deg) rotateX(${o.value.rotation.x}deg)`
|
|
4989
4986
|
};
|
|
4990
4987
|
}
|
|
4991
|
-
function
|
|
4988
|
+
function $(_) {
|
|
4992
4989
|
return {
|
|
4993
4990
|
top: `${Math.abs(_.top)}%`,
|
|
4994
4991
|
left: `${Math.abs(_.left)}%`
|
|
@@ -5000,13 +4997,13 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5000
4997
|
return {
|
|
5001
4998
|
relativePosition: H,
|
|
5002
4999
|
left: H.x / e.value * 100,
|
|
5003
|
-
top: H.z /
|
|
5000
|
+
top: H.z / a.value * 100
|
|
5004
5001
|
};
|
|
5005
5002
|
}
|
|
5006
5003
|
function R() {
|
|
5007
|
-
const _ =
|
|
5008
|
-
|
|
5009
|
-
const P =
|
|
5004
|
+
const _ = n.storey.position.y - h.value;
|
|
5005
|
+
a.value = 2 * (_ * Math.tan(A(n.storey.fovY / 2))), e.value = 512 / 384 * a.value;
|
|
5006
|
+
const P = a.value / 2, D = e.value / 2, H = new Ve.Vector3(D * -1, 0, P * -1);
|
|
5010
5007
|
t.value = H;
|
|
5011
5008
|
}
|
|
5012
5009
|
function I() {
|
|
@@ -5016,7 +5013,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5016
5013
|
const P = _.offsetHeight / 384 * 0.8, D = _.offsetWidth / 512 * 0.8;
|
|
5017
5014
|
_.offsetHeight > _.offsetWidth ? i.value = D * 0.5 : i.value = P * 0.9;
|
|
5018
5015
|
}
|
|
5019
|
-
return (_, P) => (p(),
|
|
5016
|
+
return (_, P) => (p(), x("div", Kl, [
|
|
5020
5017
|
s("div", es, [
|
|
5021
5018
|
s("div", {
|
|
5022
5019
|
class: "web-minimap",
|
|
@@ -5030,20 +5027,20 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5030
5027
|
class: "center-pivot",
|
|
5031
5028
|
style: se(r.value)
|
|
5032
5029
|
}, [
|
|
5033
|
-
(p(!0),
|
|
5030
|
+
(p(!0), x(ce, null, me(m.value, (D) => (p(), x("div", {
|
|
5034
5031
|
key: D.id
|
|
5035
5032
|
}, [
|
|
5036
|
-
l.value.floorLevel === D.floorLevel ? (p(),
|
|
5033
|
+
l.value.floorLevel === D.floorLevel ? (p(), x("div", {
|
|
5037
5034
|
key: 0,
|
|
5038
5035
|
class: "single-camera-marker",
|
|
5039
|
-
style: se(
|
|
5040
|
-
}, null, 4)) :
|
|
5041
|
-
l.value.id === D.id &&
|
|
5036
|
+
style: se($(D))
|
|
5037
|
+
}, null, 4)) : O("", !0),
|
|
5038
|
+
l.value.id === D.id && n.rotation !== null ? (p(), V(Xl, {
|
|
5042
5039
|
key: 1,
|
|
5043
5040
|
class: "rotation-marker-component",
|
|
5044
5041
|
rotation: f.value,
|
|
5045
|
-
style: se({
|
|
5046
|
-
}, null, 8, ["rotation", "style"])) :
|
|
5042
|
+
style: se({ ...$(D) })
|
|
5043
|
+
}, null, 8, ["rotation", "style"])) : O("", !0)
|
|
5047
5044
|
]))), 128))
|
|
5048
5045
|
], 4)
|
|
5049
5046
|
], 4)
|
|
@@ -5058,12 +5055,12 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5058
5055
|
transformAngle: {}
|
|
5059
5056
|
},
|
|
5060
5057
|
setup(u) {
|
|
5061
|
-
const
|
|
5062
|
-
return (
|
|
5058
|
+
const n = u, e = T(() => n.rotation + n.transformAngle - 90);
|
|
5059
|
+
return (a, t) => (p(), x("div", {
|
|
5063
5060
|
class: "minimap-compass",
|
|
5064
|
-
style: se({ scale:
|
|
5061
|
+
style: se({ scale: a.scale })
|
|
5065
5062
|
}, [
|
|
5066
|
-
|
|
5063
|
+
k(Ke, {
|
|
5067
5064
|
class: "north-indicator",
|
|
5068
5065
|
longitude: e.value
|
|
5069
5066
|
}, null, 8, ["longitude"])
|
|
@@ -5081,8 +5078,8 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5081
5078
|
level: {}
|
|
5082
5079
|
},
|
|
5083
5080
|
emits: ["setBackgroundImage"],
|
|
5084
|
-
setup(u, { emit:
|
|
5085
|
-
const e = u,
|
|
5081
|
+
setup(u, { emit: n }) {
|
|
5082
|
+
const e = u, a = n, t = d((/* @__PURE__ */ new Date()).getHours()), o = d(!0), r = d(!0), i = d(""), v = d(/* @__PURE__ */ new Map()), c = T(() => e.minimapJson.storeys[e.level]), l = T(() => `${Math.floor(t.value).toString().padStart(2, "0")}:00`), f = T(() => {
|
|
5086
5083
|
if (c.value.sunsimFilesTimeStamps[t.value]) {
|
|
5087
5084
|
const A = c.value.sunsimFilesTimeStamps[t.value].split(" ");
|
|
5088
5085
|
return `${A[0]} ${A[1]}`;
|
|
@@ -5094,14 +5091,14 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5094
5091
|
c.value.sunsimFiles[t.value]
|
|
5095
5092
|
), r.value = !1;
|
|
5096
5093
|
const A = await h(e.minimapJson.storeys);
|
|
5097
|
-
v.value = A, o.value = !1,
|
|
5094
|
+
v.value = A, o.value = !1, a("setBackgroundImage", C(e.level, t.value));
|
|
5098
5095
|
}), Y(t, () => {
|
|
5099
5096
|
const A = C(e.level, t.value);
|
|
5100
|
-
|
|
5097
|
+
a("setBackgroundImage", A);
|
|
5101
5098
|
}), Y(
|
|
5102
5099
|
() => e.level,
|
|
5103
5100
|
() => {
|
|
5104
|
-
|
|
5101
|
+
a("setBackgroundImage", C(e.level, t.value));
|
|
5105
5102
|
},
|
|
5106
5103
|
{ immediate: !0 }
|
|
5107
5104
|
);
|
|
@@ -5110,8 +5107,8 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5110
5107
|
}
|
|
5111
5108
|
async function h(A) {
|
|
5112
5109
|
let y = /* @__PURE__ */ new Map();
|
|
5113
|
-
for (let
|
|
5114
|
-
const M = A[
|
|
5110
|
+
for (let $ = 0; $ < A.length; $++) {
|
|
5111
|
+
const M = A[$].sunsimFiles;
|
|
5115
5112
|
for (let R = 0; R < M.length; R++) {
|
|
5116
5113
|
const I = M[R];
|
|
5117
5114
|
try {
|
|
@@ -5125,32 +5122,32 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5125
5122
|
return y;
|
|
5126
5123
|
}
|
|
5127
5124
|
async function m(A) {
|
|
5128
|
-
const
|
|
5125
|
+
const $ = await (await fetch(
|
|
5129
5126
|
ie(
|
|
5130
5127
|
e.cdnFileResolver,
|
|
5131
5128
|
`/${e.apartmentJson.type}/${e.apartmentJson.id}/minimap/${A}`
|
|
5132
5129
|
)
|
|
5133
|
-
)).blob(), M = await S(
|
|
5130
|
+
)).blob(), M = await S($);
|
|
5134
5131
|
return g(M);
|
|
5135
5132
|
}
|
|
5136
5133
|
function g(A) {
|
|
5137
5134
|
return "data:image/jpeg;base64," + A;
|
|
5138
5135
|
}
|
|
5139
5136
|
async function S(A) {
|
|
5140
|
-
return new Promise((y,
|
|
5137
|
+
return new Promise((y, $) => {
|
|
5141
5138
|
const M = new FileReader();
|
|
5142
5139
|
M.onload = () => {
|
|
5143
5140
|
const R = M.result.split(",")[1];
|
|
5144
5141
|
y(R);
|
|
5145
|
-
}, M.onerror =
|
|
5142
|
+
}, M.onerror = $, M.readAsDataURL(A);
|
|
5146
5143
|
});
|
|
5147
5144
|
}
|
|
5148
5145
|
return (A, y) => {
|
|
5149
|
-
const
|
|
5150
|
-
return p(),
|
|
5146
|
+
const $ = B("v-progress-linear"), M = B("v-icon"), R = B("v-slider");
|
|
5147
|
+
return p(), x("div", ls, [
|
|
5151
5148
|
s("div", ss, [
|
|
5152
5149
|
s("div", is, [
|
|
5153
|
-
o.value ? (p(), V(
|
|
5150
|
+
o.value ? (p(), V($, {
|
|
5154
5151
|
key: 0,
|
|
5155
5152
|
indeterminate: "",
|
|
5156
5153
|
rounded: "",
|
|
@@ -5170,7 +5167,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5170
5167
|
"hide-details": !0
|
|
5171
5168
|
}, {
|
|
5172
5169
|
prepend: b(() => [
|
|
5173
|
-
|
|
5170
|
+
k(M, { color: "#ffab02" }, {
|
|
5174
5171
|
default: b(() => [
|
|
5175
5172
|
ee("mdi-white-balance-sunny")
|
|
5176
5173
|
]),
|
|
@@ -5180,7 +5177,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5180
5177
|
_: 1
|
|
5181
5178
|
}, 8, ["modelValue"]))
|
|
5182
5179
|
]),
|
|
5183
|
-
o.value ?
|
|
5180
|
+
o.value ? O("", !0) : (p(), x("div", rs, Q(f.value) + " " + Q(l.value), 1))
|
|
5184
5181
|
])
|
|
5185
5182
|
]);
|
|
5186
5183
|
};
|
|
@@ -5196,8 +5193,8 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5196
5193
|
rotation: {}
|
|
5197
5194
|
},
|
|
5198
5195
|
emits: ["close"],
|
|
5199
|
-
setup(u, { emit:
|
|
5200
|
-
const e = u,
|
|
5196
|
+
setup(u, { emit: n }) {
|
|
5197
|
+
const e = u, a = n, t = d(), o = d(0), r = T(() => e.minimapJson.storeys[e.level]);
|
|
5201
5198
|
Y(
|
|
5202
5199
|
r,
|
|
5203
5200
|
() => {
|
|
@@ -5216,17 +5213,17 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5216
5213
|
o.value = o.value + 90;
|
|
5217
5214
|
}
|
|
5218
5215
|
return (l, f) => (p(), V(Nl, {
|
|
5219
|
-
onClose: f[0] || (f[0] = (C) =>
|
|
5216
|
+
onClose: f[0] || (f[0] = (C) => a("close")),
|
|
5220
5217
|
onTransform: c
|
|
5221
5218
|
}, {
|
|
5222
5219
|
body: b(() => [
|
|
5223
|
-
|
|
5220
|
+
k(os, {
|
|
5224
5221
|
scale: i.value,
|
|
5225
5222
|
rotation: r.value.rotation.y,
|
|
5226
5223
|
"transform-angle": o.value
|
|
5227
5224
|
}, null, 8, ["scale", "rotation", "transform-angle"]),
|
|
5228
5225
|
s("div", null, [
|
|
5229
|
-
|
|
5226
|
+
k(ns, {
|
|
5230
5227
|
"transform-angle": o.value,
|
|
5231
5228
|
"all-cameras": l.apartmentJson.cameras,
|
|
5232
5229
|
"background-image": t.value,
|
|
@@ -5237,7 +5234,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5237
5234
|
])
|
|
5238
5235
|
]),
|
|
5239
5236
|
footer: b(() => [
|
|
5240
|
-
|
|
5237
|
+
k(cs, {
|
|
5241
5238
|
"cdn-file-resolver": e.cdnFileResolver,
|
|
5242
5239
|
"minimap-json": e.minimapJson,
|
|
5243
5240
|
"apartment-json": e.apartmentJson,
|
|
@@ -5254,16 +5251,16 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5254
5251
|
}, ms = /* @__PURE__ */ j({
|
|
5255
5252
|
__name: "VDisclaimer",
|
|
5256
5253
|
setup(u) {
|
|
5257
|
-
const
|
|
5258
|
-
return (
|
|
5254
|
+
const n = Be(be), e = d(!0);
|
|
5255
|
+
return (a, t) => (p(), V(Le, { name: "fade-transition" }, {
|
|
5259
5256
|
default: b(() => [
|
|
5260
|
-
e.value ? (p(),
|
|
5261
|
-
ee(Q(ae(
|
|
5257
|
+
e.value ? (p(), x("div", vs, [
|
|
5258
|
+
ee(Q(ae(n).getLabel("allIllustrationsAreIndicativeDeviationsMayOccur")) + " ", 1),
|
|
5262
5259
|
s("span", {
|
|
5263
5260
|
onClick: t[0] || (t[0] = (o) => e.value = !1),
|
|
5264
5261
|
class: "link-text text-decoration-underline"
|
|
5265
|
-
}, Q(ae(
|
|
5266
|
-
])) :
|
|
5262
|
+
}, Q(ae(n).getLabel("iUnderstand")), 1)
|
|
5263
|
+
])) : O("", !0)
|
|
5267
5264
|
]),
|
|
5268
5265
|
_: 1
|
|
5269
5266
|
}));
|
|
@@ -5275,8 +5272,8 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5275
5272
|
active: {}
|
|
5276
5273
|
},
|
|
5277
5274
|
emits: ["previous", "next", "goto"],
|
|
5278
|
-
setup(u, { emit:
|
|
5279
|
-
const e = u,
|
|
5275
|
+
setup(u, { emit: n }) {
|
|
5276
|
+
const e = u, a = n, t = d(0), o = T({
|
|
5280
5277
|
get() {
|
|
5281
5278
|
return e.active;
|
|
5282
5279
|
},
|
|
@@ -5294,28 +5291,28 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5294
5291
|
function i(c) {
|
|
5295
5292
|
switch (c.keyCode) {
|
|
5296
5293
|
case c.keyCode === fs:
|
|
5297
|
-
|
|
5294
|
+
a("previous");
|
|
5298
5295
|
break;
|
|
5299
5296
|
case c.keyCode === hs:
|
|
5300
|
-
|
|
5297
|
+
a("next");
|
|
5301
5298
|
break;
|
|
5302
5299
|
default:
|
|
5303
5300
|
return;
|
|
5304
5301
|
}
|
|
5305
5302
|
}
|
|
5306
5303
|
function v(c, l) {
|
|
5307
|
-
l(),
|
|
5304
|
+
l(), a("goto", c);
|
|
5308
5305
|
}
|
|
5309
5306
|
return (c, l) => {
|
|
5310
5307
|
const f = B("v-btn"), C = B("v-img"), h = B("v-card"), m = B("v-slide-group-item"), g = B("v-slide-group");
|
|
5311
|
-
return p(),
|
|
5308
|
+
return p(), x("div", {
|
|
5312
5309
|
class: fe({
|
|
5313
5310
|
mobileWaypointWrapper: r.value,
|
|
5314
5311
|
desktopWaypointWrapper: !r.value,
|
|
5315
5312
|
" waypoint-carousel": !0
|
|
5316
5313
|
})
|
|
5317
5314
|
}, [
|
|
5318
|
-
|
|
5315
|
+
k(g, {
|
|
5319
5316
|
modelValue: o.value,
|
|
5320
5317
|
"onUpdate:modelValue": l[2] || (l[2] = (S) => o.value = S),
|
|
5321
5318
|
class: fe({ mobileWaypoint: r.value }),
|
|
@@ -5326,29 +5323,29 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5326
5323
|
mandatory: ""
|
|
5327
5324
|
}, {
|
|
5328
5325
|
prev: b(() => [
|
|
5329
|
-
|
|
5326
|
+
k(f, {
|
|
5330
5327
|
class: fe(["carousel-button", { mobile: r.value }]),
|
|
5331
5328
|
icon: "mdi-chevron-left",
|
|
5332
5329
|
varient: "tonal",
|
|
5333
5330
|
size: "small",
|
|
5334
|
-
onClick: l[0] || (l[0] = (S) =>
|
|
5331
|
+
onClick: l[0] || (l[0] = (S) => a("previous"))
|
|
5335
5332
|
}, null, 8, ["class"])
|
|
5336
5333
|
]),
|
|
5337
5334
|
next: b(() => [
|
|
5338
|
-
|
|
5335
|
+
k(f, {
|
|
5339
5336
|
class: fe(["carousel-button", { mobile: r.value }]),
|
|
5340
5337
|
icon: "mdi-chevron-right",
|
|
5341
5338
|
varient: "tonal",
|
|
5342
5339
|
size: "small",
|
|
5343
|
-
onClick: l[1] || (l[1] = (S) =>
|
|
5340
|
+
onClick: l[1] || (l[1] = (S) => a("next"))
|
|
5344
5341
|
}, null, 8, ["class"])
|
|
5345
5342
|
]),
|
|
5346
5343
|
default: b(() => [
|
|
5347
|
-
(p(!0),
|
|
5344
|
+
(p(!0), x(ce, null, me(c.thumbnails, (S) => (p(), V(m, {
|
|
5348
5345
|
key: S.id
|
|
5349
5346
|
}, {
|
|
5350
5347
|
default: b(({ toggle: A, selectedClass: y }) => [
|
|
5351
|
-
|
|
5348
|
+
k(h, {
|
|
5352
5349
|
class: fe([
|
|
5353
5350
|
r.value ? "ma-0" : "ma-1",
|
|
5354
5351
|
y,
|
|
@@ -5357,10 +5354,10 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5357
5354
|
align: "center",
|
|
5358
5355
|
justify: "center",
|
|
5359
5356
|
style: { overflow: "hidden" },
|
|
5360
|
-
onClick: (
|
|
5357
|
+
onClick: ($) => v(S.id, A)
|
|
5361
5358
|
}, {
|
|
5362
5359
|
default: b(() => [
|
|
5363
|
-
|
|
5360
|
+
k(C, {
|
|
5364
5361
|
cover: "",
|
|
5365
5362
|
"aspect-ratio": 1,
|
|
5366
5363
|
src: S.thumbnailUrl
|
|
@@ -5383,7 +5380,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5383
5380
|
}, _s = /* @__PURE__ */ j({
|
|
5384
5381
|
__name: "VSocialShare",
|
|
5385
5382
|
setup(u) {
|
|
5386
|
-
const
|
|
5383
|
+
const n = Be(be), e = d(!1), a = d(location.href);
|
|
5387
5384
|
function t() {
|
|
5388
5385
|
return window.open(
|
|
5389
5386
|
"https://www.facebook.com/sharer/sharer.php?u=" + encodeURIComponent(location.href),
|
|
@@ -5410,57 +5407,57 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5410
5407
|
}
|
|
5411
5408
|
return (v, c) => {
|
|
5412
5409
|
const l = B("v-btn"), f = B("v-tooltip"), C = B("v-toolbar-title"), h = B("v-spacer"), m = B("v-toolbar"), g = B("v-card-text"), S = B("v-card"), A = B("v-dialog");
|
|
5413
|
-
return p(),
|
|
5414
|
-
|
|
5410
|
+
return p(), x("div", null, [
|
|
5411
|
+
k(f, {
|
|
5415
5412
|
elevation: "2",
|
|
5416
5413
|
top: "",
|
|
5417
5414
|
attach: ""
|
|
5418
5415
|
}, {
|
|
5419
5416
|
activator: b(({ props: y }) => [
|
|
5420
|
-
|
|
5417
|
+
k(l, ye({
|
|
5421
5418
|
density: "comfortable",
|
|
5422
5419
|
elevation: "1",
|
|
5423
5420
|
icon: "mdi-share-variant",
|
|
5424
|
-
onClick: c[0] || (c[0] = (
|
|
5421
|
+
onClick: c[0] || (c[0] = ($) => e.value = !e.value)
|
|
5425
5422
|
}, y), null, 16)
|
|
5426
5423
|
]),
|
|
5427
5424
|
default: b(() => [
|
|
5428
|
-
s("span", null, Q(ae(
|
|
5425
|
+
s("span", null, Q(ae(n).getLabel("share")), 1)
|
|
5429
5426
|
]),
|
|
5430
5427
|
_: 1
|
|
5431
5428
|
}),
|
|
5432
|
-
|
|
5429
|
+
k(A, {
|
|
5433
5430
|
id: "share-box",
|
|
5434
5431
|
width: "400",
|
|
5435
5432
|
modelValue: e.value,
|
|
5436
5433
|
"onUpdate:modelValue": c[2] || (c[2] = (y) => e.value = y)
|
|
5437
5434
|
}, {
|
|
5438
5435
|
default: b(() => [
|
|
5439
|
-
|
|
5436
|
+
k(S, null, {
|
|
5440
5437
|
default: b(() => [
|
|
5441
|
-
|
|
5438
|
+
k(m, { elevation: "0" }, {
|
|
5442
5439
|
default: b(() => [
|
|
5443
|
-
|
|
5440
|
+
k(l, {
|
|
5444
5441
|
size: "x-small",
|
|
5445
5442
|
icon: "mdi-close",
|
|
5446
5443
|
onClick: c[1] || (c[1] = (y) => e.value = !1)
|
|
5447
5444
|
}),
|
|
5448
|
-
|
|
5445
|
+
k(C, null, {
|
|
5449
5446
|
default: b(() => [
|
|
5450
|
-
ee(Q(ae(
|
|
5447
|
+
ee(Q(ae(n).getLabel("share")), 1)
|
|
5451
5448
|
]),
|
|
5452
5449
|
_: 1
|
|
5453
5450
|
}),
|
|
5454
|
-
|
|
5451
|
+
k(h)
|
|
5455
5452
|
]),
|
|
5456
5453
|
_: 1
|
|
5457
5454
|
}),
|
|
5458
|
-
|
|
5455
|
+
k(g, { class: "mt-5" }, {
|
|
5459
5456
|
default: b(() => [
|
|
5460
5457
|
s("p", ys, [
|
|
5461
|
-
|
|
5458
|
+
k(f, { location: "top" }, {
|
|
5462
5459
|
activator: b(({ props: y }) => [
|
|
5463
|
-
|
|
5460
|
+
k(l, ye({
|
|
5464
5461
|
depressed: "",
|
|
5465
5462
|
fab: "",
|
|
5466
5463
|
light: "",
|
|
@@ -5468,13 +5465,13 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5468
5465
|
}, y, { onClick: t }), null, 16)
|
|
5469
5466
|
]),
|
|
5470
5467
|
default: b(() => [
|
|
5471
|
-
s("span", null, Q(ae(
|
|
5468
|
+
s("span", null, Q(ae(n).getLabel("shareToFacebook")), 1)
|
|
5472
5469
|
]),
|
|
5473
5470
|
_: 1
|
|
5474
5471
|
}),
|
|
5475
|
-
|
|
5472
|
+
k(f, { location: "top" }, {
|
|
5476
5473
|
activator: b(({ props: y }) => [
|
|
5477
|
-
|
|
5474
|
+
k(l, ye({
|
|
5478
5475
|
depressed: "",
|
|
5479
5476
|
fab: "",
|
|
5480
5477
|
light: "",
|
|
@@ -5482,13 +5479,13 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5482
5479
|
}, y, { onClick: r }), null, 16)
|
|
5483
5480
|
]),
|
|
5484
5481
|
default: b(() => [
|
|
5485
|
-
s("span", null, Q(ae(
|
|
5482
|
+
s("span", null, Q(ae(n).getLabel("shareToLinkedin")), 1)
|
|
5486
5483
|
]),
|
|
5487
5484
|
_: 1
|
|
5488
5485
|
}),
|
|
5489
|
-
|
|
5486
|
+
k(f, { location: "top" }, {
|
|
5490
5487
|
activator: b(({ props: y }) => [
|
|
5491
|
-
|
|
5488
|
+
k(l, ye({
|
|
5492
5489
|
depressed: "",
|
|
5493
5490
|
fab: "",
|
|
5494
5491
|
light: "",
|
|
@@ -5496,29 +5493,29 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5496
5493
|
}, y, { onClick: o }), null, 16)
|
|
5497
5494
|
]),
|
|
5498
5495
|
default: b(() => [
|
|
5499
|
-
s("span", null, Q(ae(
|
|
5496
|
+
s("span", null, Q(ae(n).getLabel("shareToTwitter")), 1)
|
|
5500
5497
|
]),
|
|
5501
5498
|
_: 1
|
|
5502
5499
|
}),
|
|
5503
|
-
|
|
5500
|
+
k(f, { location: "top" }, {
|
|
5504
5501
|
activator: b(({ props: y }) => [
|
|
5505
|
-
|
|
5502
|
+
k(l, ye({
|
|
5506
5503
|
depressed: "",
|
|
5507
5504
|
fab: "",
|
|
5508
5505
|
light: "",
|
|
5509
5506
|
icon: "mdi-email",
|
|
5510
5507
|
link: "",
|
|
5511
|
-
href: `mailto:?body=${
|
|
5508
|
+
href: `mailto:?body=${a.value}`
|
|
5512
5509
|
}, y), null, 16, ["href"])
|
|
5513
5510
|
]),
|
|
5514
5511
|
default: b(() => [
|
|
5515
|
-
s("span", null, Q(ae(
|
|
5512
|
+
s("span", null, Q(ae(n).getLabel("shareViaEmail")), 1)
|
|
5516
5513
|
]),
|
|
5517
5514
|
_: 1
|
|
5518
5515
|
}),
|
|
5519
|
-
|
|
5516
|
+
k(f, { location: "top" }, {
|
|
5520
5517
|
activator: b(({ props: y }) => [
|
|
5521
|
-
|
|
5518
|
+
k(l, ye({
|
|
5522
5519
|
depressed: "",
|
|
5523
5520
|
fab: "",
|
|
5524
5521
|
light: "",
|
|
@@ -5527,11 +5524,11 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5527
5524
|
}, y), null, 16)
|
|
5528
5525
|
]),
|
|
5529
5526
|
default: b(() => [
|
|
5530
|
-
s("span", null, Q(ae(
|
|
5527
|
+
s("span", null, Q(ae(n).getLabel("copyLink")), 1)
|
|
5531
5528
|
]),
|
|
5532
5529
|
_: 1
|
|
5533
5530
|
}),
|
|
5534
|
-
|
|
5531
|
+
k(h)
|
|
5535
5532
|
])
|
|
5536
5533
|
]),
|
|
5537
5534
|
_: 1
|
|
@@ -5552,10 +5549,10 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5552
5549
|
aspectRatio: { default: "wide" }
|
|
5553
5550
|
},
|
|
5554
5551
|
setup(u) {
|
|
5555
|
-
const
|
|
5556
|
-
return (
|
|
5552
|
+
const n = u, e = T(() => ({ "background-image": `url("${encodeURI(n.image)}")` }));
|
|
5553
|
+
return (a, t) => (p(), x("div", bs, [
|
|
5557
5554
|
s("div", {
|
|
5558
|
-
class: fe(["img-div", [
|
|
5555
|
+
class: fe(["img-div", [a.aspectRatio]]),
|
|
5559
5556
|
style: se(e.value)
|
|
5560
5557
|
}, null, 6)
|
|
5561
5558
|
]));
|
|
@@ -5569,15 +5566,15 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5569
5566
|
isFullScreen: { type: Boolean }
|
|
5570
5567
|
},
|
|
5571
5568
|
emits: ["toggleFullscreen"],
|
|
5572
|
-
setup(u, { emit:
|
|
5573
|
-
const e =
|
|
5574
|
-
return (
|
|
5569
|
+
setup(u, { emit: n }) {
|
|
5570
|
+
const e = n;
|
|
5571
|
+
return (a, t) => {
|
|
5575
5572
|
const o = B("v-btn");
|
|
5576
|
-
return p(),
|
|
5577
|
-
|
|
5573
|
+
return p(), x("div", Cs, [
|
|
5574
|
+
k(o, {
|
|
5578
5575
|
density: "comfortable",
|
|
5579
5576
|
elevation: "3",
|
|
5580
|
-
icon:
|
|
5577
|
+
icon: a.isFullScreen ? "mdi-fullscreen-exit" : "mdi-fullscreen",
|
|
5581
5578
|
onClick: t[0] || (t[0] = (r) => e("toggleFullscreen"))
|
|
5582
5579
|
}, null, 8, ["icon"])
|
|
5583
5580
|
]);
|
|
@@ -5585,43 +5582,43 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5585
5582
|
}
|
|
5586
5583
|
});
|
|
5587
5584
|
class Lt {
|
|
5588
|
-
constructor(
|
|
5585
|
+
constructor(n, e) {
|
|
5589
5586
|
ne(this, "_doc");
|
|
5590
5587
|
ne(this, "_elemId");
|
|
5591
5588
|
ne(this, "_state");
|
|
5592
|
-
this._doc =
|
|
5589
|
+
this._doc = n, this._elemId = e, this._state = { isActive: !1 };
|
|
5593
5590
|
}
|
|
5594
5591
|
get isActive() {
|
|
5595
5592
|
return this._state.isActive;
|
|
5596
5593
|
}
|
|
5597
5594
|
setup() {
|
|
5598
|
-
const
|
|
5595
|
+
const n = [
|
|
5599
5596
|
"fullscreenchange",
|
|
5600
5597
|
"webkitfullscreenchange",
|
|
5601
5598
|
"mozfullscreenchange",
|
|
5602
5599
|
"msfullscreenchange"
|
|
5603
5600
|
], e = this._getElement();
|
|
5604
|
-
|
|
5605
|
-
e.addEventListener(
|
|
5601
|
+
n.forEach((a) => {
|
|
5602
|
+
e.addEventListener(a, this._toggle.bind(this), !1);
|
|
5606
5603
|
});
|
|
5607
5604
|
}
|
|
5608
5605
|
toggle() {
|
|
5609
5606
|
this.isActive ? this._exit() : this._enter();
|
|
5610
5607
|
}
|
|
5611
5608
|
_enter() {
|
|
5612
|
-
const
|
|
5613
|
-
e && e.apply(
|
|
5609
|
+
const n = this._getElement(), e = n.requestFullscreen || n.webkitRequestFullscreen || n.mozRequestFullscreen || n.msRequestFullscreen;
|
|
5610
|
+
e && e.apply(n);
|
|
5614
5611
|
}
|
|
5615
5612
|
_exit() {
|
|
5616
|
-
const
|
|
5617
|
-
|
|
5613
|
+
const n = this._doc.exitFullscreen || this._doc.webkitExitFullscreen || this._doc.mozExitFullscreen || this._doc.document.msExitFullscreen;
|
|
5614
|
+
n && n.apply(document);
|
|
5618
5615
|
}
|
|
5619
5616
|
_getElement() {
|
|
5620
5617
|
return this._doc.getElementById(this._elemId);
|
|
5621
5618
|
}
|
|
5622
5619
|
_toggle() {
|
|
5623
|
-
const
|
|
5624
|
-
this._state.isActive =
|
|
5620
|
+
const n = !!(this._doc.fullscreenElement || this._doc.webkitFullscreenElement || this._doc.mozFullscreenElement || this._doc.msFullscreenElement);
|
|
5621
|
+
this._state.isActive = n;
|
|
5625
5622
|
}
|
|
5626
5623
|
}
|
|
5627
5624
|
const Is = {
|
|
@@ -5633,10 +5630,10 @@ const Is = {
|
|
|
5633
5630
|
}, Ls = {
|
|
5634
5631
|
key: 0,
|
|
5635
5632
|
class: "compass-wrapper"
|
|
5636
|
-
},
|
|
5633
|
+
}, Fs = {
|
|
5637
5634
|
key: 1,
|
|
5638
5635
|
class: "btn-placeholder mr-2"
|
|
5639
|
-
},
|
|
5636
|
+
}, xs = { class: "btn-placeholder mr-2" }, Ds = {
|
|
5640
5637
|
key: 2,
|
|
5641
5638
|
class: "btn-placeholder mr-2"
|
|
5642
5639
|
}, Ms = { key: 0 }, Es = { class: "d-flex flex-column align-end" }, Ts = /* @__PURE__ */ j({
|
|
@@ -5678,26 +5675,26 @@ const Is = {
|
|
|
5678
5675
|
dynamicMarkers: { default: null }
|
|
5679
5676
|
},
|
|
5680
5677
|
emits: ["onSnapshot", "saveSettings", "onInteriorUpdate", "onCameraUpdate", "onError"],
|
|
5681
|
-
setup(u, { expose:
|
|
5682
|
-
const
|
|
5683
|
-
|
|
5678
|
+
setup(u, { expose: n, emit: e }) {
|
|
5679
|
+
const a = u, t = e;
|
|
5680
|
+
n({
|
|
5684
5681
|
updateSelectedInterior: ze,
|
|
5685
5682
|
takeSnapshot: _e,
|
|
5686
5683
|
setCurrentCamera: Ce
|
|
5687
5684
|
});
|
|
5688
|
-
const o = d(!1), r = d(!1), i = d(), v = d(), c = d(), l = d(), f = d(), C = d(0), h = d(), m = d(), g = d(), S = d(0), A = d(0), y = d(0),
|
|
5685
|
+
const o = d(!1), r = d(!1), i = d(), v = d(), c = d(), l = d(), f = d(), C = d(0), h = d(), m = d(), g = d(), S = d(0), A = d(0), y = d(0), $ = d(!1), M = d(!1), R = d(!1), I = d(
|
|
5689
5686
|
new Lt(document, "player-wrapper")
|
|
5690
5687
|
), _ = T(() => {
|
|
5691
5688
|
if (v.value) {
|
|
5692
|
-
const
|
|
5689
|
+
const w = v.value.cameras.map(
|
|
5693
5690
|
(X) => X.floorLevel
|
|
5694
5691
|
);
|
|
5695
|
-
let G = [...new Set(
|
|
5692
|
+
let G = [...new Set(w)];
|
|
5696
5693
|
return G = G.sort(), G;
|
|
5697
5694
|
} else
|
|
5698
5695
|
return [];
|
|
5699
5696
|
}), P = T(() => {
|
|
5700
|
-
let
|
|
5697
|
+
let w = 0;
|
|
5701
5698
|
if (v.value) {
|
|
5702
5699
|
const G = v.value.cameras.map(
|
|
5703
5700
|
(He) => He.floorLevel
|
|
@@ -5707,84 +5704,84 @@ const Is = {
|
|
|
5707
5704
|
const pe = X.findIndex(
|
|
5708
5705
|
(He) => He === A.value
|
|
5709
5706
|
);
|
|
5710
|
-
pe !== -1 && (
|
|
5707
|
+
pe !== -1 && (w = pe);
|
|
5711
5708
|
}
|
|
5712
|
-
return
|
|
5709
|
+
return w;
|
|
5713
5710
|
}), D = T(() => E.value.findIndex(
|
|
5714
|
-
(
|
|
5715
|
-
)), H = T(() => c.value ? c.value.cameras.map((
|
|
5716
|
-
...
|
|
5711
|
+
(w) => w.archetypeID === h.value
|
|
5712
|
+
)), H = T(() => c.value ? c.value.cameras.map((w) => ({
|
|
5713
|
+
...w,
|
|
5717
5714
|
thumbnailUrl: Ue(
|
|
5718
|
-
`/${h.value}/${
|
|
5715
|
+
`/${h.value}/${a.apartmentId}/thumbs/200/${w.id}.jpg`
|
|
5719
5716
|
),
|
|
5720
5717
|
imageUrl: Ue(
|
|
5721
|
-
`/${h.value}/${
|
|
5718
|
+
`/${h.value}/${a.apartmentId}/images/1600/${w.id}.jpg`
|
|
5722
5719
|
)
|
|
5723
5720
|
})) : []), L = T(() => !H.value || !H.value[C.value] ? "" : H.value[C.value].imageUrl), E = T(() => {
|
|
5724
|
-
let
|
|
5725
|
-
return i.value && (
|
|
5726
|
-
(G) =>
|
|
5727
|
-
) :
|
|
5728
|
-
}), z = T(() => c.value ? E.value.map((
|
|
5729
|
-
...
|
|
5721
|
+
let w = [];
|
|
5722
|
+
return i.value && (w = i.value.archetypes), a.validInteriorIds.length ? w.filter(
|
|
5723
|
+
(G) => a.validInteriorIds.includes(G.archetypeID)
|
|
5724
|
+
) : w;
|
|
5725
|
+
}), z = T(() => c.value ? E.value.map((w) => ({
|
|
5726
|
+
...w,
|
|
5730
5727
|
url: Ue(
|
|
5731
|
-
`/${
|
|
5728
|
+
`/${w.archetypeID}/${a.apartmentId}/thumbs/200/${H.value[C.value].id}.jpg`
|
|
5732
5729
|
)
|
|
5733
5730
|
})) : []), W = T(() => {
|
|
5734
5731
|
if (l.value)
|
|
5735
5732
|
return l.value.storeys[P.value];
|
|
5736
|
-
}), ue = T(() => v.value && v.value.timeInHours),
|
|
5737
|
-
if (v.value && v.value.timeInHours &&
|
|
5733
|
+
}), ue = T(() => v.value && v.value.timeInHours), F = T(() => {
|
|
5734
|
+
if (v.value && v.value.timeInHours && a.showTimeOfDay)
|
|
5738
5735
|
return Dt(v.value.timeInHours);
|
|
5739
5736
|
});
|
|
5740
5737
|
Ze(
|
|
5741
5738
|
be,
|
|
5742
|
-
|
|
5743
|
-
), Y([() =>
|
|
5744
|
-
await
|
|
5739
|
+
a.i18nConfig ? new Fe(a.i18nConfig) : new Fe()
|
|
5740
|
+
), Y([() => a.cdnFileResolver], async () => {
|
|
5741
|
+
await U(), te(), await q();
|
|
5745
5742
|
}), Y(
|
|
5746
|
-
() =>
|
|
5747
|
-
(
|
|
5748
|
-
|
|
5743
|
+
() => a.defaultViewMode,
|
|
5744
|
+
(w) => {
|
|
5745
|
+
w === "virtualTour" && ($.value = !1), w === "slideShow" && ($.value = !0, R.value = !0);
|
|
5749
5746
|
},
|
|
5750
5747
|
{ immediate: !0 }
|
|
5751
5748
|
), de(async () => {
|
|
5752
5749
|
try {
|
|
5753
|
-
await
|
|
5754
|
-
} catch (
|
|
5755
|
-
r.value = !0, t("onError",
|
|
5750
|
+
await U(), te(), await q(), I.value.setup(), re();
|
|
5751
|
+
} catch (w) {
|
|
5752
|
+
r.value = !0, t("onError", w);
|
|
5756
5753
|
}
|
|
5757
5754
|
});
|
|
5758
|
-
async function
|
|
5755
|
+
async function U() {
|
|
5759
5756
|
i.value = await oe();
|
|
5760
5757
|
}
|
|
5761
5758
|
async function q() {
|
|
5762
5759
|
if (v.value = await Ae(
|
|
5763
5760
|
h.value,
|
|
5764
|
-
|
|
5765
|
-
), v.value && (m.value = v.value.cameras.find(() => !0).id), c.value = await
|
|
5761
|
+
a.apartmentId
|
|
5762
|
+
), v.value && (m.value = v.value.cameras.find(() => !0).id), c.value = await xe(
|
|
5766
5763
|
h.value,
|
|
5767
|
-
|
|
5764
|
+
a.apartmentId
|
|
5768
5765
|
), c.value) {
|
|
5769
|
-
let
|
|
5770
|
-
C.value =
|
|
5766
|
+
let w = a.defaultWaypointIndex !== null ? a.defaultWaypointIndex : 0;
|
|
5767
|
+
C.value = w, m.value = c.value.cameras[w].id, g.value = c.value.cameras[w].id;
|
|
5771
5768
|
}
|
|
5772
|
-
|
|
5769
|
+
a.showMiniMap && (l.value = await De(
|
|
5773
5770
|
h.value,
|
|
5774
|
-
|
|
5771
|
+
a.apartmentId
|
|
5775
5772
|
));
|
|
5776
5773
|
}
|
|
5777
5774
|
function te() {
|
|
5778
|
-
let
|
|
5779
|
-
|
|
5775
|
+
let w = a.defaultInteriorId;
|
|
5776
|
+
w || (w = i.value.defaultArchetypeID), a.validInteriorIds.length && !a.validInteriorIds.includes(w) && (w = a.validInteriorIds[0]), w || (w = i.value.archetypes[0].archetypeID), h.value = w;
|
|
5780
5777
|
}
|
|
5781
5778
|
function re() {
|
|
5782
|
-
const
|
|
5783
|
-
|
|
5779
|
+
const w = document.getElementById("main-canvas");
|
|
5780
|
+
w.addEventListener("touchmove", G, { passive: !1 });
|
|
5784
5781
|
function G(pe) {
|
|
5785
5782
|
pe.preventDefault(), window.scrollBy(0, 0);
|
|
5786
5783
|
}
|
|
5787
|
-
|
|
5784
|
+
w.addEventListener(
|
|
5788
5785
|
"mouseenter",
|
|
5789
5786
|
() => {
|
|
5790
5787
|
document.addEventListener("wheel", X, {
|
|
@@ -5792,7 +5789,7 @@ const Is = {
|
|
|
5792
5789
|
});
|
|
5793
5790
|
},
|
|
5794
5791
|
{ passive: !1 }
|
|
5795
|
-
),
|
|
5792
|
+
), w.addEventListener(
|
|
5796
5793
|
"mouseleave",
|
|
5797
5794
|
() => {
|
|
5798
5795
|
document.removeEventListener("wheel", X);
|
|
@@ -5806,161 +5803,161 @@ const Is = {
|
|
|
5806
5803
|
async function oe() {
|
|
5807
5804
|
try {
|
|
5808
5805
|
return await Ge("/config.json");
|
|
5809
|
-
} catch (
|
|
5806
|
+
} catch (w) {
|
|
5810
5807
|
console.error(
|
|
5811
5808
|
"Error loading config.json - ",
|
|
5812
|
-
ie(
|
|
5813
|
-
|
|
5809
|
+
ie(a.cdnFileResolver, "/config.json"),
|
|
5810
|
+
w
|
|
5814
5811
|
);
|
|
5815
5812
|
return;
|
|
5816
5813
|
}
|
|
5817
5814
|
}
|
|
5818
|
-
async function Ae(
|
|
5815
|
+
async function Ae(w, G) {
|
|
5819
5816
|
try {
|
|
5820
5817
|
return await Ge(
|
|
5821
|
-
`/${
|
|
5818
|
+
`/${w}/${G}/apartment.json`
|
|
5822
5819
|
);
|
|
5823
5820
|
} catch (X) {
|
|
5824
5821
|
console.error(
|
|
5825
5822
|
"Error loading apartment.json - ",
|
|
5826
|
-
`/${
|
|
5823
|
+
`/${w}/${G}/apartment.json`,
|
|
5827
5824
|
X
|
|
5828
5825
|
);
|
|
5829
5826
|
return;
|
|
5830
5827
|
}
|
|
5831
5828
|
}
|
|
5832
|
-
async function
|
|
5829
|
+
async function xe(w, G) {
|
|
5833
5830
|
try {
|
|
5834
5831
|
return await Ge(
|
|
5835
|
-
`/${
|
|
5832
|
+
`/${w}/${G}/thumbs.json`
|
|
5836
5833
|
);
|
|
5837
5834
|
} catch {
|
|
5838
5835
|
console.error(
|
|
5839
5836
|
"Error loading thumbs.json - ",
|
|
5840
|
-
`/${
|
|
5837
|
+
`/${w}/${G}/thumbs.json`
|
|
5841
5838
|
);
|
|
5842
5839
|
return;
|
|
5843
5840
|
}
|
|
5844
5841
|
}
|
|
5845
|
-
async function De(
|
|
5842
|
+
async function De(w, G) {
|
|
5846
5843
|
try {
|
|
5847
5844
|
return await Ge(
|
|
5848
|
-
`/${
|
|
5845
|
+
`/${w}/${G}/minimap/minimap.json`
|
|
5849
5846
|
);
|
|
5850
5847
|
} catch {
|
|
5851
5848
|
console.error(
|
|
5852
5849
|
"Error loading minimap.json - ",
|
|
5853
|
-
`/${
|
|
5850
|
+
`/${w}/${G}/minimap/minimap.json`
|
|
5854
5851
|
);
|
|
5855
5852
|
return;
|
|
5856
5853
|
}
|
|
5857
5854
|
}
|
|
5858
5855
|
function we() {
|
|
5859
|
-
let
|
|
5860
|
-
|
|
5856
|
+
let w = C.value + 1;
|
|
5857
|
+
w >= H.value.length && (w = 0), C.value = w, Ce(H.value[C.value].id);
|
|
5861
5858
|
}
|
|
5862
5859
|
function ke() {
|
|
5863
|
-
let
|
|
5864
|
-
|
|
5860
|
+
let w = C.value - 1;
|
|
5861
|
+
w < 0 && (w = H.value.length - 1), C.value = w, Ce(H.value[C.value].id);
|
|
5865
5862
|
}
|
|
5866
|
-
function Ee(
|
|
5867
|
-
let X = H.value.findIndex((pe) => pe.id ===
|
|
5868
|
-
X != -1 && (C.value = X, G && Ce(
|
|
5863
|
+
function Ee(w, G = !0) {
|
|
5864
|
+
let X = H.value.findIndex((pe) => pe.id === w);
|
|
5865
|
+
X != -1 && (C.value = X, G && Ce(w));
|
|
5869
5866
|
}
|
|
5870
|
-
function Ce(
|
|
5871
|
-
m.value =
|
|
5867
|
+
function Ce(w) {
|
|
5868
|
+
m.value = w;
|
|
5872
5869
|
}
|
|
5873
|
-
function ze(
|
|
5874
|
-
h.value =
|
|
5870
|
+
function ze(w) {
|
|
5871
|
+
h.value = w, t("onInteriorUpdate", w), t("onCameraUpdate", g.value, v.value);
|
|
5875
5872
|
}
|
|
5876
|
-
function $e(
|
|
5877
|
-
Ee(
|
|
5873
|
+
function $e(w) {
|
|
5874
|
+
Ee(w, !1), g.value = w, t("onCameraUpdate", w, v.value);
|
|
5878
5875
|
}
|
|
5879
|
-
function st(
|
|
5880
|
-
S.value =
|
|
5876
|
+
function st(w) {
|
|
5877
|
+
S.value = w;
|
|
5881
5878
|
}
|
|
5882
|
-
function N(
|
|
5883
|
-
A.value =
|
|
5879
|
+
function N(w) {
|
|
5880
|
+
A.value = w;
|
|
5884
5881
|
}
|
|
5885
|
-
function Z(
|
|
5886
|
-
y.value =
|
|
5882
|
+
function Z(w) {
|
|
5883
|
+
y.value = w;
|
|
5887
5884
|
}
|
|
5888
|
-
function le(
|
|
5885
|
+
function le(w, G) {
|
|
5889
5886
|
}
|
|
5890
|
-
function Ne(
|
|
5891
|
-
f.value =
|
|
5887
|
+
function Ne(w) {
|
|
5888
|
+
f.value = w, f.value && (a.playerSettings && f.value.updateSettings(a.playerSettings), a.hasMarkersJson ? f.value.loadMarkersJson() : a.dynamicMarkers && f.value.loadDynamicMarkers(a.dynamicMarkers));
|
|
5892
5889
|
}
|
|
5893
5890
|
function Te() {
|
|
5894
5891
|
I.value.toggle(), window.scrollTo({ top: 150, behavior: "smooth" });
|
|
5895
5892
|
}
|
|
5896
5893
|
function Me() {
|
|
5897
|
-
|
|
5894
|
+
$.value = !$.value;
|
|
5898
5895
|
}
|
|
5899
5896
|
async function _e() {
|
|
5900
|
-
const
|
|
5901
|
-
X.x * -
|
|
5902
|
-
X.y * -
|
|
5903
|
-
X.z *
|
|
5897
|
+
const w = 180 / Math.PI, G = await f.value.takePhoto(), X = f.value.getRotationEuler(), pe = f.value.getCurrentCamera(), He = new Gn(G, pe), Mt = [
|
|
5898
|
+
X.x * -w,
|
|
5899
|
+
X.y * -w,
|
|
5900
|
+
X.z * w
|
|
5904
5901
|
];
|
|
5905
5902
|
return t("onSnapshot", He, Mt), He;
|
|
5906
5903
|
}
|
|
5907
|
-
function Ue(
|
|
5908
|
-
let G = ie(
|
|
5909
|
-
return
|
|
5904
|
+
function Ue(w) {
|
|
5905
|
+
let G = ie(a.cdnFileResolver, w);
|
|
5906
|
+
return a.adminMode && (G = G + `?v=${Date.now()}`), G;
|
|
5910
5907
|
}
|
|
5911
|
-
async function Ge(
|
|
5912
|
-
const G = Ue(
|
|
5908
|
+
async function Ge(w) {
|
|
5909
|
+
const G = Ue(w);
|
|
5913
5910
|
try {
|
|
5914
5911
|
return (await rt.get(G)).data;
|
|
5915
5912
|
} catch (X) {
|
|
5916
5913
|
throw new Error(X);
|
|
5917
5914
|
}
|
|
5918
5915
|
}
|
|
5919
|
-
function
|
|
5920
|
-
f.value.updateSettings(
|
|
5916
|
+
function Ft(w) {
|
|
5917
|
+
f.value.updateSettings(w);
|
|
5921
5918
|
}
|
|
5922
|
-
function
|
|
5923
|
-
t("saveSettings",
|
|
5919
|
+
function xt(w) {
|
|
5920
|
+
t("saveSettings", w);
|
|
5924
5921
|
}
|
|
5925
|
-
function Dt(
|
|
5926
|
-
if (
|
|
5922
|
+
function Dt(w) {
|
|
5923
|
+
if (w === void 0)
|
|
5927
5924
|
return null;
|
|
5928
|
-
const G = Math.floor(
|
|
5925
|
+
const G = Math.floor(w), X = Math.floor((G - w) * 60);
|
|
5929
5926
|
return { hours: G, minutes: X };
|
|
5930
5927
|
}
|
|
5931
5928
|
const it = T(() => /Android|webOS|iPhone|iPad|BlackBerry|Windows Phone|Opera Mini|IEMobile|Mobile/i.test(
|
|
5932
5929
|
window.navigator.userAgent
|
|
5933
5930
|
)), ft = T(() => it.value ? "platform-mobile" : "platform-desktop");
|
|
5934
|
-
return (
|
|
5931
|
+
return (w, G) => {
|
|
5935
5932
|
const X = B("v-btn");
|
|
5936
|
-
return p(),
|
|
5933
|
+
return p(), x("div", {
|
|
5937
5934
|
class: fe(["virtual-tour-wrapper", [ft.value]])
|
|
5938
5935
|
}, [
|
|
5939
|
-
r.value ? (p(),
|
|
5936
|
+
r.value ? (p(), x("div", Is, "Error loading the player!!")) : O("", !0),
|
|
5940
5937
|
s("div", As, [
|
|
5941
5938
|
!I.value.isActive && l.value && g.value && W.value && h.value && M.value ? (p(), V(gt, {
|
|
5942
5939
|
key: 0,
|
|
5943
|
-
"cdn-file-resolver":
|
|
5940
|
+
"cdn-file-resolver": w.cdnFileResolver,
|
|
5944
5941
|
"apartment-json": v.value,
|
|
5945
5942
|
level: P.value,
|
|
5946
5943
|
"minimap-json": l.value,
|
|
5947
5944
|
rotation: S.value,
|
|
5948
5945
|
"current-camera": g.value,
|
|
5949
5946
|
onClose: G[0] || (G[0] = (pe) => M.value = !1)
|
|
5950
|
-
}, null, 8, ["cdn-file-resolver", "apartment-json", "level", "minimap-json", "rotation", "current-camera"])) :
|
|
5951
|
-
h.value && m.value ? (p(),
|
|
5947
|
+
}, null, 8, ["cdn-file-resolver", "apartment-json", "level", "minimap-json", "rotation", "current-camera"])) : O("", !0),
|
|
5948
|
+
h.value && m.value ? (p(), x("div", {
|
|
5952
5949
|
key: 1,
|
|
5953
5950
|
class: fe(["v-player", [ft.value]])
|
|
5954
5951
|
}, [
|
|
5955
|
-
|
|
5956
|
-
"cdn-file-resolver":
|
|
5957
|
-
style: se({ zIndex:
|
|
5958
|
-
"show-static-image":
|
|
5952
|
+
k(wo, {
|
|
5953
|
+
"cdn-file-resolver": w.cdnFileResolver,
|
|
5954
|
+
style: se({ zIndex: $.value ? 1 : 2 }),
|
|
5955
|
+
"show-static-image": $.value,
|
|
5959
5956
|
"is-full-screen": I.value.isActive,
|
|
5960
5957
|
"current-camera-id": m.value,
|
|
5961
|
-
"mouse-sensitivity":
|
|
5958
|
+
"mouse-sensitivity": w.mouseSensitivity,
|
|
5962
5959
|
"interior-id": h.value,
|
|
5963
|
-
"apartment-id":
|
|
5960
|
+
"apartment-id": a.apartmentId,
|
|
5964
5961
|
onNewCameraCallback: $e,
|
|
5965
5962
|
onNewRotationCallback: st,
|
|
5966
5963
|
onNewFloorCallback: N,
|
|
@@ -5969,13 +5966,13 @@ const Is = {
|
|
|
5969
5966
|
onPlayerApiCallback: Ne
|
|
5970
5967
|
}, {
|
|
5971
5968
|
"slideshow-image": b(() => [
|
|
5972
|
-
|
|
5969
|
+
$.value ? (p(), V(ks, {
|
|
5973
5970
|
key: 0,
|
|
5974
5971
|
image: L.value
|
|
5975
|
-
}, null, 8, ["image"])) :
|
|
5972
|
+
}, null, 8, ["image"])) : O("", !0)
|
|
5976
5973
|
]),
|
|
5977
5974
|
"top-left": b(() => [
|
|
5978
|
-
|
|
5975
|
+
w.adminMode ? ve((p(), V(X, {
|
|
5979
5976
|
key: 0,
|
|
5980
5977
|
density: "comfortable",
|
|
5981
5978
|
icon: "mdi-cog-outline",
|
|
@@ -5984,7 +5981,7 @@ const Is = {
|
|
|
5984
5981
|
onClick: G[1] || (G[1] = (pe) => o.value = !o.value)
|
|
5985
5982
|
}, null, 512)), [
|
|
5986
5983
|
[he, R.value]
|
|
5987
|
-
]) :
|
|
5984
|
+
]) : O("", !0),
|
|
5988
5985
|
l.value && m.value && W.value ? ve((p(), V(X, {
|
|
5989
5986
|
key: 1,
|
|
5990
5987
|
density: "comfortable",
|
|
@@ -5994,119 +5991,119 @@ const Is = {
|
|
|
5994
5991
|
onClick: G[2] || (G[2] = (pe) => M.value = !M.value)
|
|
5995
5992
|
}, null, 512)), [
|
|
5996
5993
|
[he, R.value]
|
|
5997
|
-
]) :
|
|
5998
|
-
R.value &&
|
|
5994
|
+
]) : O("", !0),
|
|
5995
|
+
R.value && w.showFloorLevel && _.value.length > 1 ? (p(), V(Lo, {
|
|
5999
5996
|
key: 2,
|
|
6000
5997
|
level: A.value,
|
|
6001
5998
|
"floor-levels": _.value,
|
|
6002
5999
|
onLevel: N
|
|
6003
|
-
}, null, 8, ["level", "floor-levels"])) :
|
|
6004
|
-
R.value &&
|
|
6005
|
-
|
|
6006
|
-
"initial-settings":
|
|
6007
|
-
onUpdateSettings:
|
|
6008
|
-
onSaveSettings:
|
|
6000
|
+
}, null, 8, ["level", "floor-levels"])) : O("", !0),
|
|
6001
|
+
R.value && w.adminMode && o.value ? (p(), x("div", Ss, [
|
|
6002
|
+
k(Hl, {
|
|
6003
|
+
"initial-settings": w.playerSettings,
|
|
6004
|
+
onUpdateSettings: Ft,
|
|
6005
|
+
onSaveSettings: xt
|
|
6009
6006
|
}, null, 8, ["initial-settings"])
|
|
6010
|
-
])) :
|
|
6007
|
+
])) : O("", !0)
|
|
6011
6008
|
]),
|
|
6012
6009
|
"top-center": b(() => [
|
|
6013
6010
|
R.value ? (p(), V(ps, {
|
|
6014
6011
|
key: 0,
|
|
6015
|
-
"return-url":
|
|
6016
|
-
}, null, 8, ["return-url"])) :
|
|
6012
|
+
"return-url": w.websiteUrl
|
|
6013
|
+
}, null, 8, ["return-url"])) : O("", !0)
|
|
6017
6014
|
]),
|
|
6018
6015
|
"top-right": b(() => [
|
|
6019
|
-
v.value &&
|
|
6020
|
-
|
|
6016
|
+
v.value && w.showCompass ? ve((p(), x("div", Ls, [
|
|
6017
|
+
k(To, { rotation: S.value }, null, 8, ["rotation"])
|
|
6021
6018
|
], 512)), [
|
|
6022
6019
|
[he, R.value]
|
|
6023
|
-
]) :
|
|
6020
|
+
]) : O("", !0),
|
|
6024
6021
|
s("div", {
|
|
6025
6022
|
onClick: G[3] || (G[3] = (pe) => M.value = !M.value)
|
|
6026
6023
|
}, [
|
|
6027
|
-
R.value && v.value && ue.value &&
|
|
6024
|
+
R.value && v.value && ue.value && w.showTimeOfDay ? (p(), V(Uo, {
|
|
6028
6025
|
key: 0,
|
|
6029
|
-
hours:
|
|
6030
|
-
minutes:
|
|
6026
|
+
hours: F.value.hours,
|
|
6027
|
+
minutes: F.value.minutes,
|
|
6031
6028
|
class: "time-of-day",
|
|
6032
6029
|
style: se({
|
|
6033
6030
|
cursor: l.value && g.value && W.value ? "pointer" : "default"
|
|
6034
6031
|
})
|
|
6035
|
-
}, null, 8, ["hours", "minutes", "style"])) :
|
|
6032
|
+
}, null, 8, ["hours", "minutes", "style"])) : O("", !0)
|
|
6036
6033
|
])
|
|
6037
6034
|
]),
|
|
6038
6035
|
"center-left": b(() => [
|
|
6039
|
-
|
|
6036
|
+
k(Le, { name: "slide-x-transition" }, {
|
|
6040
6037
|
default: b(() => [
|
|
6041
|
-
|
|
6038
|
+
$.value ? (p(), V(X, {
|
|
6042
6039
|
key: 0,
|
|
6043
6040
|
density: "comfortable",
|
|
6044
6041
|
elevation: "3",
|
|
6045
6042
|
icon: "mdi-chevron-left",
|
|
6046
6043
|
onClick: ke
|
|
6047
|
-
})) :
|
|
6044
|
+
})) : O("", !0)
|
|
6048
6045
|
]),
|
|
6049
6046
|
_: 1
|
|
6050
6047
|
})
|
|
6051
6048
|
]),
|
|
6052
6049
|
"center-center": b(() => [
|
|
6053
|
-
|
|
6054
|
-
project: ae(ie)(
|
|
6050
|
+
k(wl, {
|
|
6051
|
+
project: ae(ie)(a.cdnFileResolver, ""),
|
|
6055
6052
|
onCloseTutorial: G[4] || (G[4] = (pe) => R.value = !0)
|
|
6056
6053
|
}, null, 8, ["project"]),
|
|
6057
6054
|
I.value.isActive && l.value && g.value && W.value && M.value ? (p(), V(gt, {
|
|
6058
6055
|
key: 0,
|
|
6059
|
-
"cdn-file-resolver":
|
|
6056
|
+
"cdn-file-resolver": w.cdnFileResolver,
|
|
6060
6057
|
"apartment-json": v.value,
|
|
6061
6058
|
"minimap-json": l.value,
|
|
6062
6059
|
rotation: S.value,
|
|
6063
6060
|
"current-camera": g.value,
|
|
6064
6061
|
level: P.value,
|
|
6065
6062
|
onClose: G[5] || (G[5] = (pe) => M.value = !1)
|
|
6066
|
-
}, null, 8, ["cdn-file-resolver", "apartment-json", "minimap-json", "rotation", "current-camera", "level"])) :
|
|
6063
|
+
}, null, 8, ["cdn-file-resolver", "apartment-json", "minimap-json", "rotation", "current-camera", "level"])) : O("", !0)
|
|
6067
6064
|
]),
|
|
6068
6065
|
"center-right": b(() => [
|
|
6069
|
-
|
|
6066
|
+
k(Le, { name: "slide-x-reverse-transition" }, {
|
|
6070
6067
|
default: b(() => [
|
|
6071
|
-
|
|
6068
|
+
$.value ? (p(), V(X, {
|
|
6072
6069
|
key: 0,
|
|
6073
6070
|
density: "comfortable",
|
|
6074
6071
|
elevation: "3",
|
|
6075
6072
|
icon: "mdi-chevron-right",
|
|
6076
6073
|
onClick: we
|
|
6077
|
-
})) :
|
|
6074
|
+
})) : O("", !0)
|
|
6078
6075
|
]),
|
|
6079
6076
|
_: 1
|
|
6080
6077
|
})
|
|
6081
6078
|
]),
|
|
6082
6079
|
"bottom-left": b(() => [
|
|
6083
|
-
R.value &&
|
|
6080
|
+
R.value && w.showFullScreen ? (p(), V(St, {
|
|
6084
6081
|
key: 0,
|
|
6085
6082
|
"is-full-screen": I.value.isActive,
|
|
6086
6083
|
class: "btn-fullscreen",
|
|
6087
6084
|
onToggleFullscreen: Te
|
|
6088
|
-
}, null, 8, ["is-full-screen"])) :
|
|
6089
|
-
R.value &&
|
|
6090
|
-
|
|
6085
|
+
}, null, 8, ["is-full-screen"])) : O("", !0),
|
|
6086
|
+
R.value && w.showSnapshot ? (p(), x("div", Fs, [
|
|
6087
|
+
k(X, {
|
|
6091
6088
|
density: "comfortable",
|
|
6092
6089
|
elevation: "3",
|
|
6093
6090
|
icon: "mdi-camera",
|
|
6094
6091
|
onClick: _e
|
|
6095
6092
|
})
|
|
6096
|
-
])) :
|
|
6097
|
-
s("div",
|
|
6098
|
-
|
|
6093
|
+
])) : O("", !0),
|
|
6094
|
+
s("div", xs, [
|
|
6095
|
+
w.displayViewModeSwitch && R.value ? (p(), V(No, {
|
|
6099
6096
|
key: 0,
|
|
6100
|
-
"show-static-image":
|
|
6097
|
+
"show-static-image": $.value,
|
|
6101
6098
|
onToggle: Me
|
|
6102
|
-
}, null, 8, ["show-static-image"])) :
|
|
6099
|
+
}, null, 8, ["show-static-image"])) : O("", !0)
|
|
6103
6100
|
]),
|
|
6104
|
-
R.value &&
|
|
6105
|
-
|
|
6106
|
-
])) :
|
|
6101
|
+
R.value && w.showShare && !I.value.isActive ? (p(), x("div", Ds, [
|
|
6102
|
+
k(At)
|
|
6103
|
+
])) : O("", !0)
|
|
6107
6104
|
]),
|
|
6108
6105
|
"bottom-center": b(() => [
|
|
6109
|
-
R.value &&
|
|
6106
|
+
R.value && w.showCarousel && !it.value ? (p(), x("div", Ms, [
|
|
6110
6107
|
R.value ? (p(), V(et, {
|
|
6111
6108
|
key: 0,
|
|
6112
6109
|
class: fe([I.value.isActive ? "full-screen" : ""]),
|
|
@@ -6115,23 +6112,23 @@ const Is = {
|
|
|
6115
6112
|
onNext: we,
|
|
6116
6113
|
onPrevious: ke,
|
|
6117
6114
|
onGoto: Ee
|
|
6118
|
-
}, null, 8, ["class", "thumbnails", "active"])) :
|
|
6119
|
-
])) :
|
|
6115
|
+
}, null, 8, ["class", "thumbnails", "active"])) : O("", !0)
|
|
6116
|
+
])) : O("", !0)
|
|
6120
6117
|
]),
|
|
6121
6118
|
"bottom-right": b(() => [
|
|
6122
6119
|
s("div", Es, [
|
|
6123
|
-
R.value &&
|
|
6120
|
+
R.value && w.showInteriorOptions && z.value ? (p(), V(Do, {
|
|
6124
6121
|
key: 0,
|
|
6125
|
-
"cdn-file-resolver":
|
|
6122
|
+
"cdn-file-resolver": w.cdnFileResolver,
|
|
6126
6123
|
"available-archetypes": z.value,
|
|
6127
6124
|
"selected-index": D.value,
|
|
6128
6125
|
onSelectInterior: ze
|
|
6129
|
-
}, null, 8, ["cdn-file-resolver", "available-archetypes", "selected-index"])) :
|
|
6126
|
+
}, null, 8, ["cdn-file-resolver", "available-archetypes", "selected-index"])) : O("", !0)
|
|
6130
6127
|
])
|
|
6131
6128
|
]),
|
|
6132
6129
|
_: 1
|
|
6133
6130
|
}, 8, ["cdn-file-resolver", "style", "show-static-image", "is-full-screen", "current-camera-id", "mouse-sensitivity", "interior-id", "apartment-id"]),
|
|
6134
|
-
|
|
6131
|
+
w.showCarousel && c.value && it.value ? (p(), V(et, {
|
|
6135
6132
|
key: 0,
|
|
6136
6133
|
class: "waypoint-carousel below-player",
|
|
6137
6134
|
thumbnails: H.value,
|
|
@@ -6139,8 +6136,8 @@ const Is = {
|
|
|
6139
6136
|
onNext: we,
|
|
6140
6137
|
onPrevious: ke,
|
|
6141
6138
|
onGoto: Ee
|
|
6142
|
-
}, null, 8, ["thumbnails", "active"])) :
|
|
6143
|
-
], 2)) :
|
|
6139
|
+
}, null, 8, ["thumbnails", "active"])) : O("", !0)
|
|
6140
|
+
], 2)) : O("", !0)
|
|
6144
6141
|
])
|
|
6145
6142
|
], 2);
|
|
6146
6143
|
};
|
|
@@ -6178,8 +6175,8 @@ const Is = {
|
|
|
6178
6175
|
isFullScreen: { type: Boolean }
|
|
6179
6176
|
},
|
|
6180
6177
|
emits: ["newSizeCallback"],
|
|
6181
|
-
setup(u, { emit:
|
|
6182
|
-
return (e,
|
|
6178
|
+
setup(u, { emit: n }) {
|
|
6179
|
+
return (e, a) => (p(), x("div", Bs, [
|
|
6183
6180
|
s("div", Rs, [
|
|
6184
6181
|
K(e.$slots, "slideshow-image", {}, void 0, !0),
|
|
6185
6182
|
s("div", Os, [
|
|
@@ -6226,24 +6223,24 @@ const Is = {
|
|
|
6226
6223
|
defaultWaypointIndex: { default: 0 }
|
|
6227
6224
|
},
|
|
6228
6225
|
setup(u) {
|
|
6229
|
-
const
|
|
6226
|
+
const n = u;
|
|
6230
6227
|
Ze(
|
|
6231
6228
|
be,
|
|
6232
|
-
|
|
6229
|
+
n.i18nConfig ? new Fe(n.i18nConfig) : new Fe()
|
|
6233
6230
|
);
|
|
6234
|
-
const e = d(0),
|
|
6231
|
+
const e = d(0), a = d(
|
|
6235
6232
|
new Lt(document, "player-wrapper")
|
|
6236
|
-
), t = T(() =>
|
|
6233
|
+
), t = T(() => n.images.map(
|
|
6237
6234
|
(l, f) => ({
|
|
6238
6235
|
id: `image-${f}`,
|
|
6239
6236
|
thumbnailUrl: l
|
|
6240
6237
|
})
|
|
6241
6238
|
)), o = T(() => t.value[e.value]);
|
|
6242
6239
|
de(() => {
|
|
6243
|
-
|
|
6240
|
+
a.value.setup();
|
|
6244
6241
|
});
|
|
6245
6242
|
function r() {
|
|
6246
|
-
|
|
6243
|
+
a.value.toggle(), window.scrollTo({ top: 150, behavior: "smooth" });
|
|
6247
6244
|
}
|
|
6248
6245
|
function i() {
|
|
6249
6246
|
let l = e.value + 1;
|
|
@@ -6261,15 +6258,15 @@ const Is = {
|
|
|
6261
6258
|
}
|
|
6262
6259
|
return (l, f) => {
|
|
6263
6260
|
const C = B("v-img"), h = B("v-btn");
|
|
6264
|
-
return p(),
|
|
6261
|
+
return p(), x("div", Qs, [
|
|
6265
6262
|
s("div", qs, [
|
|
6266
6263
|
s("div", null, [
|
|
6267
|
-
|
|
6268
|
-
"is-full-screen":
|
|
6264
|
+
k(Gs, {
|
|
6265
|
+
"is-full-screen": a.value.isActive
|
|
6269
6266
|
}, {
|
|
6270
6267
|
"slideshow-image": b(() => [
|
|
6271
6268
|
s("div", Zs, [
|
|
6272
|
-
|
|
6269
|
+
k(C, {
|
|
6273
6270
|
src: o.value.thumbnailUrl
|
|
6274
6271
|
}, null, 8, ["src"])
|
|
6275
6272
|
])
|
|
@@ -6278,7 +6275,7 @@ const Is = {
|
|
|
6278
6275
|
"top-center": b(() => []),
|
|
6279
6276
|
"top-right": b(() => []),
|
|
6280
6277
|
"center-left": b(() => [
|
|
6281
|
-
|
|
6278
|
+
k(Le, { name: "slide-x-transition" }, {
|
|
6282
6279
|
default: b(() => [
|
|
6283
6280
|
t.value.length > 1 ? (p(), V(h, {
|
|
6284
6281
|
key: 0,
|
|
@@ -6286,14 +6283,14 @@ const Is = {
|
|
|
6286
6283
|
elevation: "3",
|
|
6287
6284
|
icon: "mdi-chevron-left",
|
|
6288
6285
|
onClick: v
|
|
6289
|
-
})) :
|
|
6286
|
+
})) : O("", !0)
|
|
6290
6287
|
]),
|
|
6291
6288
|
_: 1
|
|
6292
6289
|
})
|
|
6293
6290
|
]),
|
|
6294
6291
|
"center-center": b(() => []),
|
|
6295
6292
|
"center-right": b(() => [
|
|
6296
|
-
|
|
6293
|
+
k(Le, { name: "slide-x-reverse-transition" }, {
|
|
6297
6294
|
default: b(() => [
|
|
6298
6295
|
t.value.length > 1 ? (p(), V(h, {
|
|
6299
6296
|
key: 0,
|
|
@@ -6301,7 +6298,7 @@ const Is = {
|
|
|
6301
6298
|
elevation: "3",
|
|
6302
6299
|
icon: "mdi-chevron-right",
|
|
6303
6300
|
onClick: i
|
|
6304
|
-
})) :
|
|
6301
|
+
})) : O("", !0)
|
|
6305
6302
|
]),
|
|
6306
6303
|
_: 1
|
|
6307
6304
|
})
|
|
@@ -6309,25 +6306,25 @@ const Is = {
|
|
|
6309
6306
|
"bottom-left": b(() => [
|
|
6310
6307
|
l.showFullScreen ? (p(), V(St, {
|
|
6311
6308
|
key: 0,
|
|
6312
|
-
"is-full-screen":
|
|
6309
|
+
"is-full-screen": a.value.isActive,
|
|
6313
6310
|
class: "btn-fullscreen",
|
|
6314
6311
|
onToggleFullscreen: r
|
|
6315
|
-
}, null, 8, ["is-full-screen"])) :
|
|
6316
|
-
l.showShare ? (p(),
|
|
6317
|
-
|
|
6318
|
-
])) :
|
|
6312
|
+
}, null, 8, ["is-full-screen"])) : O("", !0),
|
|
6313
|
+
l.showShare ? (p(), x("div", Js, [
|
|
6314
|
+
k(At)
|
|
6315
|
+
])) : O("", !0)
|
|
6319
6316
|
]),
|
|
6320
6317
|
"bottom-center": b(() => [
|
|
6321
6318
|
s("div", null, [
|
|
6322
|
-
|
|
6319
|
+
a.value.isActive && t.value.length > 1 ? (p(), V(et, {
|
|
6323
6320
|
key: 0,
|
|
6324
|
-
class: fe([
|
|
6321
|
+
class: fe([a.value.isActive ? "full-screen" : ""]),
|
|
6325
6322
|
thumbnails: t.value,
|
|
6326
6323
|
active: e.value,
|
|
6327
6324
|
onNext: i,
|
|
6328
6325
|
onPrevious: v,
|
|
6329
6326
|
onGoto: c
|
|
6330
|
-
}, null, 8, ["class", "thumbnails", "active"])) :
|
|
6327
|
+
}, null, 8, ["class", "thumbnails", "active"])) : O("", !0)
|
|
6331
6328
|
])
|
|
6332
6329
|
]),
|
|
6333
6330
|
"bottom-right": b(() => []),
|
|
@@ -6340,15 +6337,15 @@ const Is = {
|
|
|
6340
6337
|
onNext: i,
|
|
6341
6338
|
onPrevious: v,
|
|
6342
6339
|
onGoto: c
|
|
6343
|
-
}, null, 8, ["thumbnails", "active"])) :
|
|
6340
|
+
}, null, 8, ["thumbnails", "active"])) : O("", !0)
|
|
6344
6341
|
])
|
|
6345
6342
|
])
|
|
6346
6343
|
]);
|
|
6347
6344
|
};
|
|
6348
6345
|
}
|
|
6349
6346
|
}), Ks = /* @__PURE__ */ J(Xs, [["__scopeId", "data-v-040ac08f"]]), li = {
|
|
6350
|
-
install: function(
|
|
6351
|
-
|
|
6347
|
+
install: function(n) {
|
|
6348
|
+
n.component("VApartmentChooser", kn), n.component("VBuildingChooser", xa), n.component("VVirtualTour", Vs), n.component("VManualSlideShow", Ks);
|
|
6352
6349
|
}
|
|
6353
6350
|
};
|
|
6354
6351
|
export {
|
|
@@ -6357,7 +6354,7 @@ export {
|
|
|
6357
6354
|
ge as ResourceLoader,
|
|
6358
6355
|
kn as VApartmentChooser,
|
|
6359
6356
|
ai as VApartmentChooserV5,
|
|
6360
|
-
|
|
6357
|
+
xa as VBuildingChooser,
|
|
6361
6358
|
oi as VBuildingChooserV5,
|
|
6362
6359
|
Je as VFloatingCard,
|
|
6363
6360
|
Re as VHoverProbe,
|