@qispace/vue3-player 0.1.61 → 0.1.63
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.
- package/dist/vue-components/src/components/apartmentChooser/v5/VApartmentChooserV5.vue.d.ts +4 -0
- package/dist/vue-components/src/components/buildingChooser/v5/VBuildingChooserV5.vue.d.ts +4 -0
- package/dist/vue-components/src/components/virtualTour/VVirtualTour.vue.d.ts +1 -1
- package/dist/vue-components/style.css +1 -1
- package/dist/vue-components/vue3-player.js +772 -758
- package/dist/vue-components/vue3-player.umd.cjs +1 -1
- package/package.json +1 -1
|
@@ -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, a, e) => a in u ? Et(u, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[a] = e;
|
|
3
|
+
var ne = (u, a, e) => (Tt(u, typeof a != "symbol" ? a + "" : a, e), e);
|
|
4
|
+
import { defineComponent as j, ref as d, computed as T, openBlock as p, createElementBlock as F, watch as Y, onMounted as de, onBeforeUnmount as je, withDirectives as ve, createElementVNode as s, normalizeStyle as se, vShow as he, createVNode as w, Fragment as ce, renderList as me, createCommentVNode as U, 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(a) {
|
|
10
|
+
return new ge().loadText(a);
|
|
11
11
|
}
|
|
12
|
-
static async loadJson(
|
|
13
|
-
return new ge().loadJson(
|
|
12
|
+
static async loadJson(a) {
|
|
13
|
+
return new ge().loadJson(a);
|
|
14
14
|
}
|
|
15
|
-
static async loadImage(
|
|
16
|
-
return new ge().loadImage(
|
|
15
|
+
static async loadImage(a) {
|
|
16
|
+
return new ge().loadImage(a);
|
|
17
17
|
}
|
|
18
|
-
static async loadImageData(
|
|
19
|
-
return new ge().loadImageData(
|
|
18
|
+
static async loadImageData(a) {
|
|
19
|
+
return new ge().loadImageData(a);
|
|
20
20
|
}
|
|
21
|
-
async loadText(
|
|
22
|
-
return (await rt.get(
|
|
21
|
+
async loadText(a) {
|
|
22
|
+
return (await rt.get(a)).data;
|
|
23
23
|
}
|
|
24
|
-
async loadJson(
|
|
25
|
-
return (await rt.get(
|
|
24
|
+
async loadJson(a) {
|
|
25
|
+
return (await rt.get(a)).data;
|
|
26
26
|
}
|
|
27
|
-
async loadImage(
|
|
28
|
-
return new Promise((e,
|
|
27
|
+
async loadImage(a) {
|
|
28
|
+
return new Promise((e, n) => {
|
|
29
29
|
const t = new Image();
|
|
30
30
|
t.crossOrigin = "anonymous", t.onload = () => {
|
|
31
31
|
e(t);
|
|
32
|
-
}, t.onerror =
|
|
32
|
+
}, t.onerror = n, t.src = a;
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
-
async loadImageData(
|
|
36
|
-
const e = await this.loadImage(
|
|
35
|
+
async loadImageData(a) {
|
|
36
|
+
const e = await this.loadImage(a), n = document.createElement("canvas");
|
|
37
37
|
try {
|
|
38
|
-
const t =
|
|
39
|
-
return
|
|
38
|
+
const t = n.getContext("2d");
|
|
39
|
+
return n.width = e.width, n.height = e.height, t.drawImage(e, 0, 0), n.toDataURL("image/png");
|
|
40
40
|
} finally {
|
|
41
|
-
|
|
41
|
+
n.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: a }) {
|
|
48
|
+
const e = d(), n = T(() => window.getComputedStyle(e.value).display === "none");
|
|
49
|
+
return a({
|
|
50
|
+
isHoverEnabled: n
|
|
51
|
+
}), (t, o) => (p(), F("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, a) => {
|
|
58
58
|
const e = u.__vccOpts || u;
|
|
59
|
-
for (const [
|
|
60
|
-
e[
|
|
59
|
+
for (const [n, t] of a)
|
|
60
|
+
e[n] = 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, a) {
|
|
64
|
+
return typeof u == "string" ? `${u}${a}` : u(a);
|
|
65
65
|
}
|
|
66
66
|
const Ut = /* @__PURE__ */ j({
|
|
67
67
|
__name: "VApartmentChooserRaster",
|
|
@@ -75,35 +75,35 @@ 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: a }) {
|
|
79
|
+
const e = u, n = a, 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({}), O = 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
|
-
)), H = T(() =>
|
|
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(() => ({
|
|
83
83
|
width: o.value + "px",
|
|
84
84
|
height: r.value + "px",
|
|
85
85
|
cursor: S.value
|
|
86
86
|
})), z = T(() => `hover-${C.value ? "over" : "out"}-${L.value ? typeof L.value == "object" && "unitId" in L.value ? L.value.unitId : L.value : ""}`);
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
Y(
|
|
88
|
+
D,
|
|
89
89
|
() => {
|
|
90
|
-
g.value[
|
|
90
|
+
g.value[D.value] || A.value.loadImageData(D.value).then((N) => {
|
|
91
91
|
g.value = {
|
|
92
92
|
...g.value,
|
|
93
|
-
[
|
|
93
|
+
[D.value]: N
|
|
94
94
|
};
|
|
95
95
|
});
|
|
96
96
|
},
|
|
97
97
|
{ immediate: !0 }
|
|
98
|
-
),
|
|
98
|
+
), Y(H, () => {
|
|
99
99
|
H.value && W();
|
|
100
|
-
}),
|
|
100
|
+
}), Y(
|
|
101
101
|
() => e.viewModel.currentScene,
|
|
102
102
|
() => {
|
|
103
103
|
Ce();
|
|
104
104
|
},
|
|
105
105
|
{ immediate: !0 }
|
|
106
|
-
),
|
|
106
|
+
), Y(
|
|
107
107
|
[
|
|
108
108
|
() => e.viewModel.isRotating,
|
|
109
109
|
() => e.drawObserver,
|
|
@@ -112,18 +112,18 @@ const Ut = /* @__PURE__ */ j({
|
|
|
112
112
|
() => {
|
|
113
113
|
Ce();
|
|
114
114
|
}
|
|
115
|
-
),
|
|
115
|
+
), Y(L, () => {
|
|
116
116
|
Ce(), L.value ? S.value = "pointer" : S.value = "auto";
|
|
117
|
-
}),
|
|
118
|
-
C.value ?
|
|
117
|
+
}), Y(z, () => {
|
|
118
|
+
C.value ? n("hoverOver", {
|
|
119
119
|
hoverUnit: L.value ? L.value.unitId : !1,
|
|
120
120
|
closeHandler: () => ze()
|
|
121
|
-
}) :
|
|
121
|
+
}) : n("hoverOut", {
|
|
122
122
|
hoverUnit: L.value ? L.value.unitId : !1,
|
|
123
123
|
closeHandler: () => ze()
|
|
124
124
|
});
|
|
125
|
-
}),
|
|
126
|
-
|
|
125
|
+
}), Y(t, () => {
|
|
126
|
+
n("pos", t.value);
|
|
127
127
|
}), de(() => {
|
|
128
128
|
M.value = () => {
|
|
129
129
|
clearTimeout(O.value), ke(), O.value = setTimeout(() => {
|
|
@@ -149,9 +149,9 @@ const Ut = /* @__PURE__ */ j({
|
|
|
149
149
|
height: r.value
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function x(N) {
|
|
153
153
|
const Z = q(N.offsetX, N.offsetY);
|
|
154
|
-
Z < 0 ||
|
|
154
|
+
Z < 0 || P && Fe(Z);
|
|
155
155
|
}
|
|
156
156
|
function $() {
|
|
157
157
|
if (v.value && v.value.width) {
|
|
@@ -224,7 +224,7 @@ const Ut = /* @__PURE__ */ j({
|
|
|
224
224
|
De(Z);
|
|
225
225
|
}
|
|
226
226
|
function De(N) {
|
|
227
|
-
|
|
227
|
+
n("selectUnit", N), N && e.canGoToUnitCallback(N) && n("goToUnit", N);
|
|
228
228
|
}
|
|
229
229
|
function we(N = 0) {
|
|
230
230
|
if (!c.value)
|
|
@@ -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(), F("div", {
|
|
257
257
|
ref_key: "container",
|
|
258
258
|
ref: _,
|
|
259
259
|
id: "canvas"
|
|
@@ -263,7 +263,7 @@ const Ut = /* @__PURE__ */ j({
|
|
|
263
263
|
ref_key: "canvas",
|
|
264
264
|
ref: I,
|
|
265
265
|
style: se(E.value),
|
|
266
|
-
onClick:
|
|
266
|
+
onClick: x
|
|
267
267
|
}, null, 4), [
|
|
268
268
|
[he, !N.viewModel.isRotating]
|
|
269
269
|
]),
|
|
@@ -285,26 +285,26 @@ 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,
|
|
290
|
-
|
|
288
|
+
setup(u, { emit: a }) {
|
|
289
|
+
const e = u, n = a, 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
|
+
Y(
|
|
291
291
|
() => e.viewModel.currentScene,
|
|
292
292
|
() => {
|
|
293
293
|
e.viewModel.currentScene in r.value && (i.value = r.value[e.viewModel.currentScene]);
|
|
294
294
|
},
|
|
295
295
|
{ immediate: !0 }
|
|
296
|
-
),
|
|
296
|
+
), Y(
|
|
297
297
|
r,
|
|
298
298
|
() => {
|
|
299
299
|
e.viewModel.currentScene in r.value && (i.value = r.value[e.viewModel.currentScene]);
|
|
300
300
|
},
|
|
301
301
|
{ immediate: !0 }
|
|
302
|
-
),
|
|
303
|
-
|
|
304
|
-
}),
|
|
302
|
+
), Y(t, () => {
|
|
303
|
+
n("pos", t.value);
|
|
304
|
+
}), Y(o, (M, R) => {
|
|
305
305
|
if (M >= 0) {
|
|
306
306
|
const I = h(M);
|
|
307
|
-
|
|
307
|
+
n("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
|
+
n("hoverOut", {
|
|
316
316
|
hoverUnit: I,
|
|
317
317
|
closeHandler: () => {
|
|
318
318
|
o.value = -1;
|
|
@@ -328,9 +328,9 @@ const Ut = /* @__PURE__ */ j({
|
|
|
328
328
|
};
|
|
329
329
|
v.value.loadJson(R).then((_) => {
|
|
330
330
|
I.markup = _;
|
|
331
|
-
const
|
|
332
|
-
I.viewBox =
|
|
333
|
-
|
|
331
|
+
const D = new DOMParser().parseFromString(_, "image/svg+xml").getElementsByTagName("svg")[0];
|
|
332
|
+
I.viewBox = D.getAttribute("viewBox"), I.svgObjects = Array.from(
|
|
333
|
+
D.querySelectorAll("*[data-index]")
|
|
334
334
|
).map((H) => ({
|
|
335
335
|
index: parseInt(H.getAttribute("data-index")),
|
|
336
336
|
svg: H.innerHTML
|
|
@@ -361,7 +361,7 @@ const Ut = /* @__PURE__ */ j({
|
|
|
361
361
|
}
|
|
362
362
|
function S(M) {
|
|
363
363
|
const R = h(M);
|
|
364
|
-
|
|
364
|
+
n("selectUnit", R), f.value && R && e.canGoToUnitCallback(R) ? n("goToUnit", R) : o.value = M;
|
|
365
365
|
}
|
|
366
366
|
function A(M) {
|
|
367
367
|
const R = h(M);
|
|
@@ -369,12 +369,12 @@ const Ut = /* @__PURE__ */ j({
|
|
|
369
369
|
o.value < 0 && e.selectedUnitId && R === e.selectedUnitId ? I = "selected" : o.value >= 0 && o.value === M && (I = "hover");
|
|
370
370
|
const _ = e.colorCallback(R, I);
|
|
371
371
|
if (_) {
|
|
372
|
-
const { r:
|
|
372
|
+
const { r: P, g: D, b: H, a: L, s: E } = _;
|
|
373
373
|
return {
|
|
374
374
|
strokeWidth: E !== void 0 ? E : 2,
|
|
375
|
-
stroke: `rgb(${
|
|
375
|
+
stroke: `rgb(${P}, ${D}, ${H})`,
|
|
376
376
|
strokeOpacity: 1,
|
|
377
|
-
fill: `rgb(${
|
|
377
|
+
fill: `rgb(${P}, ${D}, ${H})`,
|
|
378
378
|
fillOpacity: L / 255,
|
|
379
379
|
cursor: `${e.canGoToUnitCallback(R) ? "cursor" : "default"} !important`
|
|
380
380
|
};
|
|
@@ -394,7 +394,7 @@ const Ut = /* @__PURE__ */ j({
|
|
|
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(), F("div", {
|
|
398
398
|
id: "container",
|
|
399
399
|
ref_key: "container",
|
|
400
400
|
ref: c
|
|
@@ -405,17 +405,17 @@ 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(), F("svg", {
|
|
409
409
|
key: 0,
|
|
410
410
|
viewBox: i.value.viewBox
|
|
411
411
|
}, [
|
|
412
|
-
(p(!0),
|
|
412
|
+
(p(!0), F(ce, null, me(i.value.svgObjects, ({ index: I, svg: _ }) => (p(), F("g", {
|
|
413
413
|
key: I,
|
|
414
414
|
innerHTML: _,
|
|
415
415
|
style: se(A(I)),
|
|
416
|
-
onMouseenter: (
|
|
417
|
-
onMouseleave: (
|
|
418
|
-
onClick: (
|
|
416
|
+
onMouseenter: (P) => m(I),
|
|
417
|
+
onMouseleave: (P) => g(),
|
|
418
|
+
onClick: (P) => S(I)
|
|
419
419
|
}, null, 44, Pt))), 128))
|
|
420
420
|
], 8, Yt)) : U("", !0)
|
|
421
421
|
], 4), [
|
|
@@ -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: a }) {
|
|
445
|
+
const e = u, n = T(() => e.selectedUnitId), t = T(() => e.nextUnitId), o = T(() => e.prevUnitId), r = a, i = Be(be);
|
|
446
446
|
de(() => {
|
|
447
447
|
window.addEventListener("keydown", v);
|
|
448
448
|
}), je(() => {
|
|
@@ -453,7 +453,7 @@ const Ut = /* @__PURE__ */ j({
|
|
|
453
453
|
}
|
|
454
454
|
return (c, l) => {
|
|
455
455
|
const f = B("v-btn");
|
|
456
|
-
return p(),
|
|
456
|
+
return p(), F("div", null, [
|
|
457
457
|
w(f, {
|
|
458
458
|
elevation: "1",
|
|
459
459
|
icon: "mdi-rotate-right",
|
|
@@ -473,12 +473,12 @@ const Ut = /* @__PURE__ */ j({
|
|
|
473
473
|
elevation: "1",
|
|
474
474
|
rounded: "",
|
|
475
475
|
plain: "",
|
|
476
|
-
disabled: !
|
|
477
|
-
onClick: l[2] || (l[2] = (C) => r("goToUnit",
|
|
476
|
+
disabled: !n.value || !c.canGoToUnitCallback(n.value),
|
|
477
|
+
onClick: l[2] || (l[2] = (C) => r("goToUnit", n.value))
|
|
478
478
|
}, {
|
|
479
479
|
default: b(() => [
|
|
480
|
-
|
|
481
|
-
s("span", Nt, Q(
|
|
480
|
+
n.value && c.canGoToUnitCallback(n.value) ? (p(), F("span", zt, Q(ae(i).getLabel("seeApartment")) + " ", 1)) : U("", !0),
|
|
481
|
+
s("span", Nt, Q(n.value ? e.unitRenderer(n.value) : "-"), 1)
|
|
482
482
|
]),
|
|
483
483
|
_: 1
|
|
484
484
|
}, 8, ["disabled"]),
|
|
@@ -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(a) {
|
|
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 = a, 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(a) {
|
|
518
|
+
return this._finishedAction = a, this;
|
|
519
519
|
}
|
|
520
|
-
onLoadError(
|
|
521
|
-
return this._errorAction =
|
|
520
|
+
onLoadError(a) {
|
|
521
|
+
return this._errorAction = a, this;
|
|
522
522
|
}
|
|
523
|
-
onLoadProgress(
|
|
524
|
-
return this._loadProgressAction =
|
|
523
|
+
onLoadProgress(a) {
|
|
524
|
+
return this._loadProgressAction = a, 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(a, e, n, 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 = a, this._direction = e, this._frameIndex = n, 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 a = this._rotator.clampFrameIndex(
|
|
558
558
|
this._frameIndex + this._direction
|
|
559
|
-
), e = this._rotator.isCardinalFrame(
|
|
559
|
+
), e = this._rotator.isCardinalFrame(a) ? this._sceneCount - 1 : this._sceneCount;
|
|
560
560
|
return new vt(
|
|
561
561
|
this._rotator,
|
|
562
562
|
this._direction,
|
|
563
|
-
|
|
563
|
+
a,
|
|
564
564
|
e
|
|
565
565
|
);
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
class qt {
|
|
569
|
-
constructor(
|
|
569
|
+
constructor(a, e) {
|
|
570
570
|
ne(this, "_cardinalFrames");
|
|
571
571
|
ne(this, "_totalFrameCount");
|
|
572
|
-
this._cardinalFrames =
|
|
572
|
+
this._cardinalFrames = a, this._totalFrameCount = e;
|
|
573
573
|
}
|
|
574
|
-
start(
|
|
574
|
+
start(a, e, n) {
|
|
575
575
|
const t = this.startFrameIndexForScene(e);
|
|
576
|
-
return new vt(this,
|
|
576
|
+
return new vt(this, a, t, n);
|
|
577
577
|
}
|
|
578
|
-
isCardinalFrame(
|
|
579
|
-
return this._cardinalFrames.includes(
|
|
578
|
+
isCardinalFrame(a) {
|
|
579
|
+
return this._cardinalFrames.includes(a);
|
|
580
580
|
}
|
|
581
|
-
clampFrameIndex(
|
|
582
|
-
return (this._totalFrameCount +
|
|
581
|
+
clampFrameIndex(a) {
|
|
582
|
+
return (this._totalFrameCount + a) % this._totalFrameCount;
|
|
583
583
|
}
|
|
584
|
-
startFrameIndexForScene(
|
|
585
|
-
return this._cardinalFrames[
|
|
584
|
+
startFrameIndexForScene(a) {
|
|
585
|
+
return this._cardinalFrames[a];
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
588
|
const Zt = {
|
|
@@ -607,13 +607,13 @@ 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: a }) {
|
|
611
|
+
const e = u, n = a, t = h(), o = d(
|
|
612
|
+
new ut(t.length).onLoadFinished(() => n("loaded")).onLoadProgress((A) => n("progress", A)).onLoadError(() => n("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
619
|
const O = S(y, A), M = g(y, A);
|
|
@@ -689,16 +689,16 @@ const Zt = {
|
|
|
689
689
|
}
|
|
690
690
|
return (A, y) => {
|
|
691
691
|
const O = B("v-icon");
|
|
692
|
-
return p(),
|
|
693
|
-
o.value.isError ? (p(),
|
|
692
|
+
return p(), F("div", null, [
|
|
693
|
+
o.value.isError ? (p(), F("div", Zt, [
|
|
694
694
|
w(O, { "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(), F("div", tn, [
|
|
701
|
+
(p(!0), F(ce, null, me(i.value, (M) => (p(), F("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(), F("div", Jt, [
|
|
718
|
+
c.value ? (p(), F("picture", Xt, [
|
|
719
719
|
s("source", {
|
|
720
720
|
srcset: c.value.sourceSet,
|
|
721
721
|
type: "image/jpeg"
|
|
@@ -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: a }) {
|
|
741
|
+
const e = u, n = a, 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(), F("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) => n("outside", c))
|
|
767
767
|
}, {
|
|
768
768
|
default: b(() => [
|
|
769
769
|
K(o.$slots, "default", { isHoverable: o.isHoverable }, void 0, !0)
|
|
@@ -786,16 +786,16 @@ const Zt = {
|
|
|
786
786
|
position: { default: "absolute" }
|
|
787
787
|
},
|
|
788
788
|
emits: ["update"],
|
|
789
|
-
setup(u, { emit:
|
|
790
|
-
const e = u,
|
|
791
|
-
|
|
789
|
+
setup(u, { emit: a }) {
|
|
790
|
+
const e = u, n = a, 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
|
+
Y([h, o, r], () => {
|
|
792
792
|
ue();
|
|
793
|
-
}),
|
|
793
|
+
}), Y(
|
|
794
794
|
() => e.desktop,
|
|
795
795
|
() => {
|
|
796
796
|
e.desktop ? g() : A();
|
|
797
797
|
}
|
|
798
|
-
),
|
|
798
|
+
), Y(
|
|
799
799
|
() => e.mobile,
|
|
800
800
|
() => {
|
|
801
801
|
e.mobile ? S() : y();
|
|
@@ -819,9 +819,9 @@ const Zt = {
|
|
|
819
819
|
});
|
|
820
820
|
}
|
|
821
821
|
function S() {
|
|
822
|
-
f.value.addEventListener("touchstart",
|
|
822
|
+
f.value.addEventListener("touchstart", P, {
|
|
823
823
|
capture: !0
|
|
824
|
-
}), f.value.addEventListener("touchmove",
|
|
824
|
+
}), f.value.addEventListener("touchmove", D, {
|
|
825
825
|
capture: !0
|
|
826
826
|
}), window.addEventListener("touchend", H, {
|
|
827
827
|
capture: !0
|
|
@@ -843,9 +843,9 @@ const Zt = {
|
|
|
843
843
|
});
|
|
844
844
|
}
|
|
845
845
|
function y() {
|
|
846
|
-
f.value.removeEventListener("touchstart",
|
|
846
|
+
f.value.removeEventListener("touchstart", P, {
|
|
847
847
|
capture: !0
|
|
848
|
-
}), f.value.removeEventListener("touchmove",
|
|
848
|
+
}), f.value.removeEventListener("touchmove", D, {
|
|
849
849
|
capture: !0
|
|
850
850
|
}), window.removeEventListener("touchend", H, {
|
|
851
851
|
capture: !0
|
|
@@ -853,86 +853,86 @@ const Zt = {
|
|
|
853
853
|
capture: !0
|
|
854
854
|
});
|
|
855
855
|
}
|
|
856
|
-
function O(
|
|
857
|
-
const { x: $, y: q } = L(
|
|
858
|
-
W(-
|
|
856
|
+
function O(x) {
|
|
857
|
+
const { x: $, y: q } = L(x);
|
|
858
|
+
W(-x.deltaY / 10, $, q), x.preventDefault();
|
|
859
859
|
}
|
|
860
|
-
function M(
|
|
861
|
-
i.value = !0, l.value = !1, c.value =
|
|
860
|
+
function M(x) {
|
|
861
|
+
i.value = !0, l.value = !1, c.value = x;
|
|
862
862
|
}
|
|
863
|
-
function R(
|
|
863
|
+
function R(x) {
|
|
864
864
|
if (i.value) {
|
|
865
|
-
const { x: $, y: q } = L(
|
|
865
|
+
const { x: $, y: q } = L(x), { x: te, y: re } = L(c.value), oe = {
|
|
866
866
|
x: $ - 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 = x;
|
|
870
870
|
}
|
|
871
871
|
}
|
|
872
|
-
function I(
|
|
873
|
-
i.value && l.value && e.consumeMouseUpWhenMoved && (
|
|
872
|
+
function I(x) {
|
|
873
|
+
i.value && l.value && e.consumeMouseUpWhenMoved && (x.preventDefault(), x.stopImmediatePropagation());
|
|
874
874
|
}
|
|
875
|
-
function _(
|
|
876
|
-
i.value && (l.value && e.consumeMouseClickWhenMoved && (
|
|
875
|
+
function _(x) {
|
|
876
|
+
i.value && (l.value && e.consumeMouseClickWhenMoved && (x.preventDefault(), x.stopImmediatePropagation()), i.value = !1);
|
|
877
877
|
}
|
|
878
|
-
function
|
|
879
|
-
i.value =
|
|
878
|
+
function P(x) {
|
|
879
|
+
i.value = x.touches.length === 1, v.value = x.touches.length === 2, c.value = x;
|
|
880
880
|
}
|
|
881
|
-
function
|
|
881
|
+
function D(x) {
|
|
882
882
|
if (i.value) {
|
|
883
|
-
const { x: $, y: q } = L(
|
|
883
|
+
const { x: $, y: q } = L(x.touches[0]), { x: te, y: re } = L(c.value.touches[0]), oe = {
|
|
884
884
|
x: $ - te,
|
|
885
885
|
y: q - re
|
|
886
886
|
};
|
|
887
887
|
E(oe.x), z(oe.y);
|
|
888
|
-
} else if (v.value &&
|
|
889
|
-
const { x: $, y: q } = L(
|
|
888
|
+
} else if (v.value && x.touches.length === 2) {
|
|
889
|
+
const { x: $, y: q } = L(x.touches[0]), { x: te, y: re } = L(c.value.touches[0]), { x: oe, y: Ae } = L(x.touches[1]), { x: Fe, y: De } = L(c.value.touches[1]), we = Math.hypot(te - Fe, re - De), ke = Math.hypot($ - oe, q - Ae), Ee = (oe + $) / 2, Ce = (Ae + q) / 2;
|
|
890
890
|
W(ke - we, Ee, Ce);
|
|
891
891
|
}
|
|
892
|
-
c.value =
|
|
892
|
+
c.value = x;
|
|
893
893
|
}
|
|
894
894
|
function H() {
|
|
895
895
|
i.value = !1, v.value = !1;
|
|
896
896
|
}
|
|
897
|
-
function L(
|
|
897
|
+
function L(x) {
|
|
898
898
|
const { left: $, top: q } = f.value.getBoundingClientRect();
|
|
899
899
|
return {
|
|
900
|
-
x:
|
|
901
|
-
y:
|
|
900
|
+
x: x.clientX - $,
|
|
901
|
+
y: x.clientY - q
|
|
902
902
|
};
|
|
903
903
|
}
|
|
904
|
-
function E(
|
|
904
|
+
function E(x) {
|
|
905
905
|
const $ = f.value.clientWidth, q = $ * h.value;
|
|
906
906
|
o.value = Math.max(
|
|
907
|
-
Math.min(0, o.value +
|
|
907
|
+
Math.min(0, o.value + x),
|
|
908
908
|
-(q - $)
|
|
909
909
|
);
|
|
910
910
|
}
|
|
911
|
-
function z(
|
|
911
|
+
function z(x) {
|
|
912
912
|
const $ = f.value.clientHeight, q = $ * h.value;
|
|
913
913
|
r.value = Math.max(
|
|
914
|
-
Math.min(0, r.value +
|
|
914
|
+
Math.min(0, r.value + x),
|
|
915
915
|
-(q - $)
|
|
916
916
|
);
|
|
917
917
|
}
|
|
918
|
-
function W(
|
|
918
|
+
function W(x, $, 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 +
|
|
920
|
+
t.value = Math.min(Math.max(100, t.value + x), m.value);
|
|
921
921
|
const Fe = te * h.value, De = re * h.value, we = Fe - oe, ke = De - Ae;
|
|
922
922
|
o.value -= $ / te * we, r.value -= q / re * ke, E(0), z(0);
|
|
923
923
|
}
|
|
924
924
|
function ue() {
|
|
925
|
-
|
|
925
|
+
n("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, Fe = oe + te / h.value, De =
|
|
929
|
+
resolve: (x, $) => {
|
|
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, Fe = oe + te / h.value, De = x / q * (Ae - re) + re, we = $ / te * (Fe - oe) + oe;
|
|
931
931
|
return { x: De, y: we };
|
|
932
932
|
}
|
|
933
933
|
});
|
|
934
934
|
}
|
|
935
|
-
return (
|
|
935
|
+
return (x, $) => (p(), F("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(x.$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(a) {
|
|
958
958
|
ne(this, "_state");
|
|
959
959
|
this._state = {
|
|
960
960
|
isRotating: !1,
|
|
961
|
-
currentScene:
|
|
961
|
+
currentScene: a
|
|
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(a) {
|
|
968
|
+
this._state.isRotating = a;
|
|
969
969
|
}
|
|
970
|
-
unlessRotatingDo(
|
|
971
|
-
this.isRotating ||
|
|
970
|
+
unlessRotatingDo(a) {
|
|
971
|
+
this.isRotating || a();
|
|
972
972
|
}
|
|
973
973
|
get currentScene() {
|
|
974
974
|
return this._state.currentScene;
|
|
975
975
|
}
|
|
976
|
-
set currentScene(
|
|
977
|
-
this._state.currentScene =
|
|
976
|
+
set currentScene(a) {
|
|
977
|
+
this._state.currentScene = a;
|
|
978
978
|
}
|
|
979
979
|
rotateCounterClockwise() {
|
|
980
980
|
this.unlessRotatingDo(() => {
|
|
@@ -1043,22 +1043,22 @@ const mn = {
|
|
|
1043
1043
|
dontShowAgain: { en: "Don't Show Again", nb: "Ikke vis igjen" }
|
|
1044
1044
|
};
|
|
1045
1045
|
class xe {
|
|
1046
|
-
constructor({ labels:
|
|
1046
|
+
constructor({ labels: a, 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, ...a || {} }, this._language = e || "en";
|
|
1050
|
+
}
|
|
1051
|
+
getLabel(a) {
|
|
1052
|
+
return a in this._labels ? this.get(this._labels[a]) : a;
|
|
1053
|
+
}
|
|
1054
|
+
get(a) {
|
|
1055
|
+
if (typeof a == "string")
|
|
1056
|
+
return a;
|
|
1057
|
+
if (this._language in a && a[this._language])
|
|
1058
|
+
return a[this._language];
|
|
1059
|
+
for (const e in a)
|
|
1060
|
+
if (a[e])
|
|
1061
|
+
return a[e];
|
|
1062
1062
|
return "";
|
|
1063
1063
|
}
|
|
1064
1064
|
}
|
|
@@ -1085,41 +1085,41 @@ 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: a }) {
|
|
1089
|
+
const e = [0, 16, 32, 48], n = u, t = a;
|
|
1090
1090
|
Ze(
|
|
1091
1091
|
be,
|
|
1092
|
-
|
|
1092
|
+
n.i18nConfig ? new xe(n.i18nConfig) : new xe()
|
|
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(() => n.useSvg ? Wt : Ht), S = T(() => n.selectedUnitId), A = T(() => n.nextUnitId), y = T(() => n.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 =
|
|
1103
|
-
unitId:
|
|
1104
|
-
index:
|
|
1105
|
-
})) : [], r.value =
|
|
1106
|
-
const H =
|
|
1107
|
-
return { unitId:
|
|
1108
|
-
}).reduce((
|
|
1109
|
-
const _ = (
|
|
1101
|
+
const I = n.apartmentChooserData && n.apartmentChooserData.startScene !== void 0 ? n.apartmentChooserData.startScene : bn;
|
|
1102
|
+
v.value = n.apartmentChooserData && n.apartmentChooserData.scenes !== void 0 ? n.apartmentChooserData.scenes : e, i.value = n.apartmentChooserData && n.apartmentChooserData.sceneData !== void 0 ? n.apartmentChooserData.sceneData.map((D) => ({
|
|
1103
|
+
unitId: D.apartmentID,
|
|
1104
|
+
index: D.index
|
|
1105
|
+
})) : [], r.value = n.apartmentChooserData && n.apartmentChooserData.sceneData !== void 0 ? n.apartmentChooserData.sceneData.map((D) => {
|
|
1106
|
+
const H = D.bestScene === 0 ? 4 : D.bestScene;
|
|
1107
|
+
return { unitId: D.apartmentID, scene: H };
|
|
1108
|
+
}).reduce((D, H) => ({ ...D, [H.unitId]: H.scene }), {}) : {};
|
|
1109
|
+
const _ = (D, H = "unitId") => {
|
|
1110
1110
|
let L = I, E = [];
|
|
1111
1111
|
for (let z = 0; z < mt; z++)
|
|
1112
1112
|
E.push(L), L = bt(L);
|
|
1113
|
-
return
|
|
1113
|
+
return D.sort((z, W) => {
|
|
1114
1114
|
const ue = E.findIndex(
|
|
1115
1115
|
($) => $ === r.value[z[H]]
|
|
1116
|
-
),
|
|
1116
|
+
), x = E.findIndex(
|
|
1117
1117
|
($) => $ === r.value[W[H]]
|
|
1118
1118
|
);
|
|
1119
|
-
return ue <
|
|
1120
|
-
}),
|
|
1121
|
-
},
|
|
1122
|
-
c.value = new vn(
|
|
1119
|
+
return ue < x ? -1 : ue > x ? 1 : 0;
|
|
1120
|
+
}), D;
|
|
1121
|
+
}, P = (D) => {
|
|
1122
|
+
c.value = new vn(D);
|
|
1123
1123
|
};
|
|
1124
1124
|
t("initialized", {
|
|
1125
1125
|
scene: I,
|
|
@@ -1127,7 +1127,7 @@ const pn = { key: 0 }, fn = { class: "interactive-viewer" }, hn = { class: "fill
|
|
|
1127
1127
|
sceneData: i.value,
|
|
1128
1128
|
scenesByApartment: r.value,
|
|
1129
1129
|
unitsSceneSort: _,
|
|
1130
|
-
initialize:
|
|
1130
|
+
initialize: P
|
|
1131
1131
|
});
|
|
1132
1132
|
});
|
|
1133
1133
|
function O(I) {
|
|
@@ -1140,8 +1140,8 @@ const pn = { key: 0 }, fn = { class: "interactive-viewer" }, hn = { class: "fill
|
|
|
1140
1140
|
C.value = null, f.value = I.closeHandler, t("hoverOutUnit", I.hoverUnit);
|
|
1141
1141
|
}
|
|
1142
1142
|
return (I, _) => {
|
|
1143
|
-
const
|
|
1144
|
-
return c.value ? (p(),
|
|
1143
|
+
const P = B("v-progress-linear");
|
|
1144
|
+
return c.value ? (p(), F("div", pn, [
|
|
1145
1145
|
s("div", fn, [
|
|
1146
1146
|
s("div", hn, [
|
|
1147
1147
|
w(Xe, {
|
|
@@ -1154,27 +1154,27 @@ const pn = { key: 0 }, fn = { class: "interactive-viewer" }, hn = { class: "fill
|
|
|
1154
1154
|
"view-model": c.value,
|
|
1155
1155
|
"cardinal-frames": v.value,
|
|
1156
1156
|
build: I.build,
|
|
1157
|
-
onProgress: _[0] || (_[0] = (
|
|
1158
|
-
onLoaded: _[1] || (_[1] = (
|
|
1159
|
-
onError: _[2] || (_[2] = (
|
|
1157
|
+
onProgress: _[0] || (_[0] = (D) => o.progress = D),
|
|
1158
|
+
onLoaded: _[1] || (_[1] = (D) => o.isReady = !0),
|
|
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(), F("div", gn, [
|
|
1162
1162
|
(p(), V(yt(g.value), {
|
|
1163
|
-
"cdn-file-resolver":
|
|
1163
|
+
"cdn-file-resolver": n.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":
|
|
1170
|
-
onSelectUnit: _[3] || (_[3] = (
|
|
1171
|
-
onGoToUnit: _[4] || (_[4] = (
|
|
1167
|
+
"color-callback": n.colorCallback,
|
|
1168
|
+
"can-go-to-unit-callback": n.canGoToUnitCallback,
|
|
1169
|
+
"draw-observer": n.drawObserver,
|
|
1170
|
+
onSelectUnit: _[3] || (_[3] = (D) => t("selectUnit", D)),
|
|
1171
|
+
onGoToUnit: _[4] || (_[4] = (D) => t("goToUnit", D)),
|
|
1172
1172
|
onHoverOver: M,
|
|
1173
1173
|
onHoverOut: R,
|
|
1174
1174
|
onPos: O
|
|
1175
1175
|
}, {
|
|
1176
|
-
default: b((
|
|
1177
|
-
K(I.$slots, "default", tt(nt(
|
|
1176
|
+
default: b((D) => [
|
|
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"]))
|
|
@@ -1200,23 +1200,23 @@ const pn = { key: 0 }, fn = { class: "interactive-viewer" }, hn = { class: "fill
|
|
|
1200
1200
|
]),
|
|
1201
1201
|
_: 3
|
|
1202
1202
|
}, 8, ["is-hoverable", "pos", "onOutside"])) : U("", !0),
|
|
1203
|
-
o.isReady ? (p(),
|
|
1203
|
+
o.isReady ? (p(), F("div", yn, [
|
|
1204
1204
|
w(Qt, {
|
|
1205
|
-
"can-go-to-unit-callback":
|
|
1206
|
-
"unit-renderer":
|
|
1205
|
+
"can-go-to-unit-callback": n.canGoToUnitCallback,
|
|
1206
|
+
"unit-renderer": n.unitRenderer,
|
|
1207
1207
|
"selected-unit-id": S.value,
|
|
1208
1208
|
"prev-unit-id": y.value,
|
|
1209
1209
|
"next-unit-id": A.value,
|
|
1210
1210
|
"view-model": c.value,
|
|
1211
|
-
onGoToUnit: _[5] || (_[5] = (
|
|
1212
|
-
onPrevUnit: _[6] || (_[6] = (
|
|
1213
|
-
onNextUnit: _[7] || (_[7] = (
|
|
1211
|
+
onGoToUnit: _[5] || (_[5] = (D) => t("goToUnit", D)),
|
|
1212
|
+
onPrevUnit: _[6] || (_[6] = (D) => t("navUnit", y.value)),
|
|
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 ? U("", !0) : (p(),
|
|
1216
|
-
w(
|
|
1215
|
+
])) : o.isError ? U("", !0) : (p(), F("div", _n, [
|
|
1216
|
+
w(P, {
|
|
1217
1217
|
indeterminate: !o.progress,
|
|
1218
1218
|
modelValue: o.progress,
|
|
1219
|
-
"onUpdate:modelValue": _[8] || (_[8] = (
|
|
1219
|
+
"onUpdate:modelValue": _[8] || (_[8] = (D) => o.progress = D)
|
|
1220
1220
|
}, null, 8, ["indeterminate", "modelValue"])
|
|
1221
1221
|
]))
|
|
1222
1222
|
])
|
|
@@ -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 a = u, e = T(() => ie(a.cdnFileResolver, a.timeSampleData.filename));
|
|
1240
|
+
return (n, t) => ve((p(), F("img", {
|
|
1241
1241
|
key: e.value,
|
|
1242
1242
|
src: e.value,
|
|
1243
1243
|
width: "100%"
|
|
1244
1244
|
}, null, 8, Cn)), [
|
|
1245
|
-
[he,
|
|
1245
|
+
[he, n.timeSampleData === n.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 a = u;
|
|
1257
|
+
return (e, n) => (p(!0), F(ce, null, me(a.dayData.timeSamples, (t) => (p(), V(An, {
|
|
1258
1258
|
"time-sample-data": t,
|
|
1259
|
-
"cdn-file-resolver":
|
|
1259
|
+
"cdn-file-resolver": a.cdnFileResolver,
|
|
1260
1260
|
"current-time": e.currentTime
|
|
1261
1261
|
}, null, 8, ["time-sample-data", "cdn-file-resolver", "current-time"]))), 256));
|
|
1262
1262
|
}
|
|
@@ -1268,11 +1268,11 @@ 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 a = u;
|
|
1272
|
+
return (e, n) => (p(!0), F(ce, null, me(a.cameraData.sunsimDayOfYear, (t) => (p(), V(Sn, {
|
|
1273
1273
|
"day-data": t,
|
|
1274
|
-
"cdn-file-resolver":
|
|
1275
|
-
"current-time":
|
|
1274
|
+
"cdn-file-resolver": a.cdnFileResolver,
|
|
1275
|
+
"current-time": a.currentTime
|
|
1276
1276
|
}, null, 8, ["day-data", "cdn-file-resolver", "current-time"]))), 256));
|
|
1277
1277
|
}
|
|
1278
1278
|
}), xn = ["src"], Fn = /* @__PURE__ */ j({
|
|
@@ -1283,11 +1283,11 @@ 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: a }) {
|
|
1287
|
+
const e = u, n = T(() => ie(e.cdnFileResolver, e.transitionData.filename));
|
|
1288
|
+
return (t, o) => ve((p(), F("img", {
|
|
1289
|
+
key: n.value,
|
|
1290
|
+
src: n.value,
|
|
1291
1291
|
class: "position-absolute top-left w-100 h-100"
|
|
1292
1292
|
}, null, 8, xn)), [
|
|
1293
1293
|
[he, t.transitionData === t.currentTransition]
|
|
@@ -1308,11 +1308,11 @@ 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: a }) {
|
|
1312
|
+
const e = u, n = a, t = d(
|
|
1313
1313
|
e.currentCamera.overlayFilename
|
|
1314
1314
|
);
|
|
1315
|
-
|
|
1315
|
+
Y(
|
|
1316
1316
|
() => e.currentCamera.overlayFilename,
|
|
1317
1317
|
() => {
|
|
1318
1318
|
t.value = e.currentCamera.overlayFilename;
|
|
@@ -1321,8 +1321,8 @@ const Mn = /* @__PURE__ */ j({
|
|
|
1321
1321
|
const o = T(
|
|
1322
1322
|
() => e.apartmentChooserData ? e.apartmentChooserData.cameras.filter(wt) : []
|
|
1323
1323
|
);
|
|
1324
|
-
return
|
|
1325
|
-
|
|
1324
|
+
return Y(t, () => {
|
|
1325
|
+
n(
|
|
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,
|
|
1356
|
-
|
|
1354
|
+
setup(u, { emit: a }) {
|
|
1355
|
+
const e = u, n = a, t = d(e.currentDay.dayOfYear);
|
|
1356
|
+
Y(
|
|
1357
1357
|
() => e.currentDay.dayOfYear,
|
|
1358
1358
|
() => {
|
|
1359
1359
|
t.value = e.currentDay.dayOfYear;
|
|
1360
1360
|
}
|
|
1361
|
-
),
|
|
1362
|
-
|
|
1361
|
+
), Y(t, () => {
|
|
1362
|
+
n(
|
|
1363
1363
|
"onDayChange",
|
|
1364
1364
|
e.cameraData.sunsimDayOfYear.find(
|
|
1365
1365
|
(r) => r.dayOfYear === t.value
|
|
@@ -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,
|
|
1414
|
-
|
|
1412
|
+
setup(u, { emit: a }) {
|
|
1413
|
+
const e = u, n = a, t = d(e.currentTime.timeInHours), o = d();
|
|
1414
|
+
Y(
|
|
1415
1415
|
() => e.currentTime.timeInHours,
|
|
1416
1416
|
() => {
|
|
1417
1417
|
t.value = e.currentTime.timeInHours;
|
|
1418
1418
|
}
|
|
1419
|
-
),
|
|
1420
|
-
|
|
1419
|
+
), Y(t, () => {
|
|
1420
|
+
n(
|
|
1421
1421
|
"onTimeChange",
|
|
1422
1422
|
e.dayData.timeSamples.find(
|
|
1423
1423
|
(v) => v.timeInHours === t.value
|
|
@@ -1442,7 +1442,7 @@ 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(),
|
|
1445
|
+
v.dayData.startTime === v.dayData.endTime ? (p(), F("div", Tn, [
|
|
1446
1446
|
w(l, {
|
|
1447
1447
|
style: { color: "#ffab02", "vertical-align": "baseline", "font-size": "20px" },
|
|
1448
1448
|
class: "py-2 ml-2 mr-2 icon"
|
|
@@ -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: a, emit: e }) {
|
|
1508
|
+
const n = u, t = e;
|
|
1509
|
+
a({
|
|
1510
1510
|
rotateShortestRoute: C
|
|
1511
1511
|
});
|
|
1512
|
-
const o = d(!1), r = d(
|
|
1512
|
+
const o = d(!1), r = d(n.currentScene), i = d(n.selectedId);
|
|
1513
1513
|
Ie(() => {
|
|
1514
|
-
r.value =
|
|
1514
|
+
r.value = n.currentScene;
|
|
1515
1515
|
}), Ie(() => {
|
|
1516
|
-
i.value =
|
|
1516
|
+
i.value = n.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 : n.apartmentChooserData.loopable ? !0 : r.value !== n.apartmentChooserData.scenes[0]), c = T(() => o.value ? !1 : n.apartmentChooserData.loopable ? !0 : r.value !== n.apartmentChooserData.scenes[n.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 = n.apartmentChooserData.scenes.findIndex((A) => A === m) + 1;
|
|
1524
|
+
g >= n.apartmentChooserData.scenes.length && (g = 0);
|
|
1525
|
+
const S = n.apartmentChooserData.scenes[g];
|
|
1526
|
+
n.apartmentChooserData.loopable && m > S ? h(m, S + n.apartmentChooserData.scenes.length) : 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 = n.apartmentChooserData.scenes.findIndex((A) => A === m) - 1;
|
|
1531
|
+
g < 0 && (g = n.apartmentChooserData.scenes[n.apartmentChooserData.scenes.length - 1]);
|
|
1532
|
+
const S = n.apartmentChooserData.scenes[g];
|
|
1533
|
+
n.apartmentChooserData.loopable && m < S ? h(m + n.apartmentChooserData.scenes.length, S) : h(m, S);
|
|
1534
1534
|
}
|
|
1535
1535
|
function C(m) {
|
|
1536
1536
|
const g = r.value;
|
|
1537
|
-
if (
|
|
1537
|
+
if (n.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 - (n.apartmentChooserData.cameras.length + m);
|
|
1540
|
+
return Math.abs(S) > Math.abs(A) ? h(g, m) : h(g, n.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 = n.apartmentChooserData.cameras.length + g - m;
|
|
1543
|
+
return Math.abs(S) > Math.abs(A) ? h(g, m) : h(n.apartmentChooserData.cameras.length + g, m);
|
|
1544
1544
|
}
|
|
1545
1545
|
else
|
|
1546
1546
|
return h(g, m);
|
|
@@ -1551,16 +1551,16 @@ 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 % n.apartmentChooserData.cameras.length
|
|
1555
1555
|
)) : y > g ? (y--, r.value = Math.abs(
|
|
1556
|
-
y %
|
|
1556
|
+
y % n.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(),
|
|
1563
|
+
return p(), F(ce, null, [
|
|
1564
1564
|
w(S, {
|
|
1565
1565
|
class: "mx-2",
|
|
1566
1566
|
icon: "mdi-restore",
|
|
@@ -1599,9 +1599,9 @@ const Mn = /* @__PURE__ */ j({
|
|
|
1599
1599
|
selectedId: {}
|
|
1600
1600
|
},
|
|
1601
1601
|
emits: ["onClick", "onHoverOver", "onHoverOut", "updateSvgContainer"],
|
|
1602
|
-
setup(u, { emit:
|
|
1603
|
-
const e = u,
|
|
1604
|
-
|
|
1602
|
+
setup(u, { emit: a }) {
|
|
1603
|
+
const e = u, n = a, t = d(), o = d(), r = d(e.selectedId), i = dt({});
|
|
1604
|
+
Y(
|
|
1605
1605
|
() => e.selectedId,
|
|
1606
1606
|
() => {
|
|
1607
1607
|
r.value = e.selectedId;
|
|
@@ -1617,14 +1617,14 @@ const Mn = /* @__PURE__ */ j({
|
|
|
1617
1617
|
};
|
|
1618
1618
|
f.style.fill = `rgba(${h}, ${m}, ${g}, ${S / 255})`, f.style.stroke = `rgb(${h}, ${m}, ${g})`, f.style.strokeWidth = A.toString();
|
|
1619
1619
|
}
|
|
1620
|
-
}),
|
|
1620
|
+
}), Y(r, () => {
|
|
1621
1621
|
for (const l in i)
|
|
1622
1622
|
i[l].state === "selected" && l !== r.value ? i[l].state = "idle" : i[l].state !== "selected" && l === r.value && (i[l].state = "selected");
|
|
1623
1623
|
}), Ie(async () => {
|
|
1624
1624
|
t.value = await ge.loadText(
|
|
1625
1625
|
ie(e.cdnFileResolver, e.currentCamera.overlayFilename)
|
|
1626
1626
|
), c();
|
|
1627
|
-
}),
|
|
1627
|
+
}), Y(
|
|
1628
1628
|
() => o.value,
|
|
1629
1629
|
() => {
|
|
1630
1630
|
o.value && new ResizeObserver(v).observe(o.value);
|
|
@@ -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 && (n("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"), n("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"), n("onHoverOut", m);
|
|
1672
1672
|
}), h.addEventListener("click", () => {
|
|
1673
|
-
|
|
1673
|
+
n("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(), F("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 a = u, e = T(() => ({
|
|
1699
|
+
transform: `rotate(${90 - (a.longitude || 0)}deg)`,
|
|
1700
1700
|
transition: " transform 0.5s ease-in"
|
|
1701
1701
|
}));
|
|
1702
|
-
return (
|
|
1702
|
+
return (n, 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(a) {
|
|
1713
1713
|
ne(this, "_buildingIds");
|
|
1714
|
-
this._buildingIds =
|
|
1714
|
+
this._buildingIds = a;
|
|
1715
1715
|
}
|
|
1716
1716
|
static empty() {
|
|
1717
1717
|
return new Ye([]);
|
|
1718
1718
|
}
|
|
1719
|
-
getBuildingId(
|
|
1720
|
-
const t = this._getBuildingIndex(
|
|
1719
|
+
getBuildingId(a, e, n) {
|
|
1720
|
+
const t = this._getBuildingIndex(a, e, n);
|
|
1721
1721
|
if (t !== void 0)
|
|
1722
1722
|
return this._buildingIds[t];
|
|
1723
1723
|
}
|
|
1724
|
-
_getBuildingIndex(
|
|
1725
|
-
const [t, o, r, i] =
|
|
1724
|
+
_getBuildingIndex(a, e, n) {
|
|
1725
|
+
const [t, o, r, i] = a.getPixel(e, n);
|
|
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(a) {
|
|
1733
1733
|
ne(this, "_cdnFileResolver");
|
|
1734
1734
|
ne(this, "_resourceLoader");
|
|
1735
|
-
this._cdnFileResolver =
|
|
1735
|
+
this._cdnFileResolver = a, this._resourceLoader = new ge();
|
|
1736
1736
|
}
|
|
1737
|
-
constructFileUrl(
|
|
1738
|
-
return this._cdnFileResolver ? ie(this._cdnFileResolver, `/${
|
|
1737
|
+
constructFileUrl(a) {
|
|
1738
|
+
return this._cdnFileResolver ? ie(this._cdnFileResolver, `/${a}`) : null;
|
|
1739
1739
|
}
|
|
1740
|
-
loadBuildingMapImage(
|
|
1741
|
-
const e = this.constructFileUrl(
|
|
1740
|
+
loadBuildingMapImage(a) {
|
|
1741
|
+
const e = this.constructFileUrl(a.lookupFilename);
|
|
1742
1742
|
return e ? this._resourceLoader.loadImage(e) : null;
|
|
1743
1743
|
}
|
|
1744
|
-
getViewLongitude(
|
|
1745
|
-
return
|
|
1744
|
+
getViewLongitude(a) {
|
|
1745
|
+
return a.cameraRotation && a.cameraRotation.y + 270;
|
|
1746
1746
|
}
|
|
1747
|
-
getBuildingData(
|
|
1748
|
-
const e =
|
|
1747
|
+
getBuildingData(a) {
|
|
1748
|
+
const e = a ? a.buildings : [], n = 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: n, buildingOverlays: t };
|
|
1753
1753
|
}
|
|
1754
|
-
getBackgroundImageData(
|
|
1755
|
-
return "days" in
|
|
1754
|
+
getBackgroundImageData(a) {
|
|
1755
|
+
return "days" in a ? this.processMultipleDays(a.days) : [this.processTimeSamples(
|
|
1756
1756
|
jn,
|
|
1757
|
-
|
|
1757
|
+
a.timeSamples
|
|
1758
1758
|
)];
|
|
1759
1759
|
}
|
|
1760
|
-
processMultipleDays(
|
|
1761
|
-
return
|
|
1760
|
+
processMultipleDays(a) {
|
|
1761
|
+
return a.map(
|
|
1762
1762
|
(e) => this.processTimeSamples(e.dayOfYear, e.timeSamples)
|
|
1763
1763
|
);
|
|
1764
1764
|
}
|
|
1765
|
-
processTimeSamples(
|
|
1765
|
+
processTimeSamples(a, 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(a)
|
|
1771
1771
|
};
|
|
1772
1772
|
}
|
|
1773
|
-
makeReferenceDate(
|
|
1773
|
+
makeReferenceDate(a) {
|
|
1774
1774
|
const e = /* @__PURE__ */ new Date(0);
|
|
1775
|
-
return e.setUTCDate(
|
|
1775
|
+
return e.setUTCDate(a), e;
|
|
1776
1776
|
}
|
|
1777
|
-
async loadBuildingChooser(
|
|
1777
|
+
async loadBuildingChooser(a) {
|
|
1778
1778
|
try {
|
|
1779
|
-
if (
|
|
1780
|
-
const e = await this.loadBuildingMapImage(
|
|
1779
|
+
if (a) {
|
|
1780
|
+
const e = await this.loadBuildingMapImage(a);
|
|
1781
1781
|
if (e) {
|
|
1782
|
-
const
|
|
1782
|
+
const n = this.getViewLongitude(a), { buildingIds: t, buildingOverlays: o } = this.getBuildingData(a), r = this.getBackgroundImageData(a);
|
|
1783
1783
|
return {
|
|
1784
1784
|
mapImage: e,
|
|
1785
|
-
viewLongitude:
|
|
1785
|
+
viewLongitude: n,
|
|
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(a) {
|
|
1800
1800
|
ne(this, "_mapImage");
|
|
1801
1801
|
ne(this, "_context");
|
|
1802
|
-
this._mapImage =
|
|
1802
|
+
this._mapImage = a, 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(a) {
|
|
1808
|
+
this._mapImage && (this._context = a.getContext("2d", { willReadFrequently: !0 }), this._context.drawImage(this._mapImage, 0, 0, a.width, a.height));
|
|
1809
1809
|
}
|
|
1810
|
-
getPixel(
|
|
1810
|
+
getPixel(a, e) {
|
|
1811
1811
|
try {
|
|
1812
|
-
return this._context ? this._context.getImageData(
|
|
1812
|
+
return this._context ? this._context.getImageData(a, 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(a) {
|
|
1821
1821
|
ne(this, "_imagesByDay");
|
|
1822
1822
|
ne(this, "_state");
|
|
1823
|
-
this._imagesByDay =
|
|
1823
|
+
this._imagesByDay = a, 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(a) {
|
|
1829
|
+
a < this._imagesByDay.length && (this._state.selectedIndex = a);
|
|
1830
1830
|
}
|
|
1831
1831
|
get dates() {
|
|
1832
|
-
return this._imagesByDay.map((
|
|
1832
|
+
return this._imagesByDay.map((a) => a.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(a, e) {
|
|
1868
1868
|
ne(this, "data");
|
|
1869
|
-
this.data =
|
|
1869
|
+
this.data = a;
|
|
1870
1870
|
}
|
|
1871
|
-
download(
|
|
1872
|
-
|
|
1871
|
+
download(a = null) {
|
|
1872
|
+
a = a || 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 = a, 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 a = u.sceneData.map(
|
|
1879
1879
|
(i) => ({
|
|
1880
1880
|
unitId: i.apartmentID,
|
|
1881
1881
|
bestScene: i.bestScene
|
|
1882
1882
|
})
|
|
1883
|
-
), e = "1280",
|
|
1883
|
+
), e = "1280", n = [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,7 +1891,7 @@ 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,
|
|
@@ -1904,7 +1904,7 @@ const Qn = (u) => {
|
|
|
1904
1904
|
w: 0
|
|
1905
1905
|
},
|
|
1906
1906
|
cameraFov: 0,
|
|
1907
|
-
overlayFilename: `/scenedata${
|
|
1907
|
+
overlayFilename: `/scenedata${n[i]}V5Overlay.svg`,
|
|
1908
1908
|
sunsimDayOfYear: [
|
|
1909
1909
|
{
|
|
1910
1910
|
dayOfYear: 179,
|
|
@@ -1933,7 +1933,7 @@ const Qn = (u) => {
|
|
|
1933
1933
|
scenes: u.scenes,
|
|
1934
1934
|
loopable: !0,
|
|
1935
1935
|
renderVersion: u.renderVersion ? u.renderVersion : "Auto Converted",
|
|
1936
|
-
unitData:
|
|
1936
|
+
unitData: a,
|
|
1937
1937
|
cameras: o
|
|
1938
1938
|
};
|
|
1939
1939
|
}, qn = {
|
|
@@ -1960,14 +1960,18 @@ const Qn = (u) => {
|
|
|
1960
1960
|
renderDisplay: {},
|
|
1961
1961
|
mobileBreakpoint: { default: 600 }
|
|
1962
1962
|
},
|
|
1963
|
-
emits: ["onClick", "onHoverOver", "onHoverOut", "onMouseMove"],
|
|
1964
|
-
setup(u, { emit:
|
|
1965
|
-
const e = u,
|
|
1963
|
+
emits: ["onClick", "onHoverOver", "onHoverOut", "onMouseMove", "onInitialize", "onError"],
|
|
1964
|
+
setup(u, { emit: a }) {
|
|
1965
|
+
const e = u, n = a, t = d(), o = d(), r = d(), i = d(
|
|
1966
1966
|
null
|
|
1967
1967
|
), 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
1968
|
e.apartmentChooserData
|
|
1969
1969
|
), O = d(!1);
|
|
1970
|
-
de(() =>
|
|
1970
|
+
de(() => {
|
|
1971
|
+
l.value = !0;
|
|
1972
|
+
}), Y(l, (x) => {
|
|
1973
|
+
x && n("onInitialize");
|
|
1974
|
+
}), Y(
|
|
1971
1975
|
() => A.value,
|
|
1972
1976
|
() => {
|
|
1973
1977
|
A.value && new ResizeObserver(([$]) => {
|
|
@@ -1980,12 +1984,16 @@ const Qn = (u) => {
|
|
|
1980
1984
|
), R = T(
|
|
1981
1985
|
() => y.value ? y.value.cameras.filter(ct) : []
|
|
1982
1986
|
), I = async () => {
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
+
try {
|
|
1988
|
+
let x, $;
|
|
1989
|
+
return $ = await ge.loadJson(
|
|
1990
|
+
ie(e.cdnFileResolver, "/apartmentChooser.json")
|
|
1991
|
+
), parseInt($.version) === 5 ? $ : (x = Qn($), x);
|
|
1992
|
+
} catch (x) {
|
|
1993
|
+
l.value = !1, n("onError", x);
|
|
1994
|
+
}
|
|
1987
1995
|
};
|
|
1988
|
-
|
|
1996
|
+
Y(
|
|
1989
1997
|
[
|
|
1990
1998
|
y,
|
|
1991
1999
|
() => e.cdnFileResolver,
|
|
@@ -1993,46 +2001,46 @@ const Qn = (u) => {
|
|
|
1993
2001
|
],
|
|
1994
2002
|
async () => {
|
|
1995
2003
|
e.cdnFileResolver && (y.value || (y.value = await I()), e.defaultCamera ? t.value = M.value.find(
|
|
1996
|
-
(
|
|
2004
|
+
(x) => x.cameraName === e.defaultCamera
|
|
1997
2005
|
) || M.value[0] : t.value = M.value[0], v.value = y.value.cameras.findIndex(
|
|
1998
|
-
(
|
|
2006
|
+
(x) => x === t.value
|
|
1999
2007
|
), v.value = Math.max(0, v.value));
|
|
2000
2008
|
},
|
|
2001
2009
|
{ immediate: !0 }
|
|
2002
|
-
),
|
|
2010
|
+
), Y(
|
|
2003
2011
|
[y, () => e.cdnFileResolver, () => e.defaultDay],
|
|
2004
2012
|
() => {
|
|
2005
2013
|
y.value && e.cdnFileResolver && (e.defaultDay ? o.value = t.value.sunsimDayOfYear.find(
|
|
2006
|
-
(
|
|
2014
|
+
(x) => x.dayOfYear === e.defaultDay
|
|
2007
2015
|
) || t.value.sunsimDayOfYear[0] : o.value = t.value.sunsimDayOfYear[0]);
|
|
2008
2016
|
},
|
|
2009
2017
|
{ immediate: !0 }
|
|
2010
|
-
),
|
|
2018
|
+
), Y(
|
|
2011
2019
|
[y, () => e.cdnFileResolver, () => e.defaultTime],
|
|
2012
2020
|
() => {
|
|
2013
2021
|
y.value && e.cdnFileResolver && (e.defaultTime ? r.value = o.value.timeSamples.find(
|
|
2014
|
-
(
|
|
2022
|
+
(x) => x.timeInHours === e.defaultTime
|
|
2015
2023
|
) || o.value.timeSamples[0] : r.value = o.value.timeSamples.find(
|
|
2016
|
-
(
|
|
2024
|
+
(x) => x.timeInHours === o.value.defaultHour
|
|
2017
2025
|
) || o.value.timeSamples[0]);
|
|
2018
2026
|
},
|
|
2019
2027
|
{ immediate: !0 }
|
|
2020
2028
|
);
|
|
2021
|
-
function _(
|
|
2022
|
-
t.value !==
|
|
2023
|
-
y.value.cameras.findIndex(($) => $ ===
|
|
2029
|
+
function _(x) {
|
|
2030
|
+
t.value !== x && C.value.rotateShortestRoute(
|
|
2031
|
+
y.value.cameras.findIndex(($) => $ === x)
|
|
2024
2032
|
);
|
|
2025
2033
|
}
|
|
2026
|
-
function
|
|
2027
|
-
v.value =
|
|
2028
|
-
|
|
2034
|
+
function P(x) {
|
|
2035
|
+
v.value = x, ct(y.value.cameras[v.value]) ? i.value = y.value.cameras[v.value] : (Se(() => {
|
|
2036
|
+
D(
|
|
2029
2037
|
y.value.cameras[v.value]
|
|
2030
2038
|
);
|
|
2031
2039
|
}), i.value = null);
|
|
2032
2040
|
}
|
|
2033
|
-
function
|
|
2041
|
+
function D(x) {
|
|
2034
2042
|
const $ = o.value;
|
|
2035
|
-
t.value =
|
|
2043
|
+
t.value = x, v.value = y.value.cameras.findIndex(
|
|
2036
2044
|
(q) => q === t.value
|
|
2037
2045
|
), Se(() => {
|
|
2038
2046
|
H(
|
|
@@ -2042,9 +2050,9 @@ const Qn = (u) => {
|
|
|
2042
2050
|
);
|
|
2043
2051
|
});
|
|
2044
2052
|
}
|
|
2045
|
-
function H(
|
|
2053
|
+
function H(x) {
|
|
2046
2054
|
const $ = r.value;
|
|
2047
|
-
o.value =
|
|
2055
|
+
o.value = x, Se(() => {
|
|
2048
2056
|
L(
|
|
2049
2057
|
o.value.timeSamples.find(
|
|
2050
2058
|
(q) => q.timeInHours === $.timeInHours
|
|
@@ -2054,26 +2062,26 @@ const Qn = (u) => {
|
|
|
2054
2062
|
);
|
|
2055
2063
|
});
|
|
2056
2064
|
}
|
|
2057
|
-
function L(
|
|
2058
|
-
r.value =
|
|
2065
|
+
function L(x) {
|
|
2066
|
+
r.value = x;
|
|
2059
2067
|
}
|
|
2060
|
-
function E(
|
|
2061
|
-
|
|
2068
|
+
function E(x) {
|
|
2069
|
+
n("onClick", x, () => {
|
|
2062
2070
|
const $ = y.value.unitData.find(
|
|
2063
|
-
(q) => q.unitId ===
|
|
2071
|
+
(q) => q.unitId === x
|
|
2064
2072
|
);
|
|
2065
2073
|
$ && C.value.rotateShortestRoute($.bestScene);
|
|
2066
2074
|
});
|
|
2067
2075
|
}
|
|
2068
|
-
function z(
|
|
2069
|
-
|
|
2076
|
+
function z(x) {
|
|
2077
|
+
n("onHoverOver", x), c.value = x;
|
|
2070
2078
|
}
|
|
2071
|
-
function W(
|
|
2072
|
-
|
|
2079
|
+
function W(x) {
|
|
2080
|
+
n("onHoverOut", x), c.value = void 0;
|
|
2073
2081
|
}
|
|
2074
|
-
function ue(
|
|
2075
|
-
const { layerX: $, layerY: q } =
|
|
2076
|
-
let te =
|
|
2082
|
+
function ue(x) {
|
|
2083
|
+
const { layerX: $, layerY: q } = x;
|
|
2084
|
+
let te = x.target, re = !1;
|
|
2077
2085
|
for (; te; )
|
|
2078
2086
|
if (te === S.value) {
|
|
2079
2087
|
re = !0;
|
|
@@ -2081,7 +2089,7 @@ const Qn = (u) => {
|
|
|
2081
2089
|
} else
|
|
2082
2090
|
te = te.parentElement;
|
|
2083
2091
|
if (re) {
|
|
2084
|
-
const oe =
|
|
2092
|
+
const oe = x.currentTarget;
|
|
2085
2093
|
g.value = {
|
|
2086
2094
|
x: $,
|
|
2087
2095
|
y: q,
|
|
@@ -2090,11 +2098,11 @@ const Qn = (u) => {
|
|
|
2090
2098
|
};
|
|
2091
2099
|
} else
|
|
2092
2100
|
g.value = void 0;
|
|
2093
|
-
|
|
2101
|
+
n("onMouseMove", x, g.value);
|
|
2094
2102
|
}
|
|
2095
|
-
return (
|
|
2103
|
+
return (x, $) => {
|
|
2096
2104
|
const q = B("v-skeleton-loader");
|
|
2097
|
-
return p(),
|
|
2105
|
+
return p(), F(ce, null, [
|
|
2098
2106
|
w(q, {
|
|
2099
2107
|
type: "image",
|
|
2100
2108
|
class: "w-100 h-100 position-relative",
|
|
@@ -2145,10 +2153,10 @@ const Qn = (u) => {
|
|
|
2145
2153
|
ref: C,
|
|
2146
2154
|
"apartment-chooser-data": y.value,
|
|
2147
2155
|
"current-scene": v.value,
|
|
2148
|
-
"selected-id":
|
|
2156
|
+
"selected-id": x.selectedId,
|
|
2149
2157
|
"render-display": e.renderDisplay,
|
|
2150
2158
|
onOnDisplayClick: E,
|
|
2151
|
-
onOnSceneChange:
|
|
2159
|
+
onOnSceneChange: P,
|
|
2152
2160
|
onOnRotateStart: $[0] || ($[0] = (te) => f.value = !0),
|
|
2153
2161
|
onOnRotateFinish: $[1] || ($[1] = (te) => f.value = !1)
|
|
2154
2162
|
}, null, 8, ["apartment-chooser-data", "current-scene", "selected-id", "render-display"])) : U("", !0)
|
|
@@ -2160,25 +2168,25 @@ const Qn = (u) => {
|
|
|
2160
2168
|
]),
|
|
2161
2169
|
w(Xe, { position: "relative" }, {
|
|
2162
2170
|
default: b(() => [
|
|
2163
|
-
(p(!0),
|
|
2171
|
+
(p(!0), F(ce, null, me(M.value, (te) => (p(), V(Ln, {
|
|
2164
2172
|
key: te.overlayFilename,
|
|
2165
2173
|
"camera-data": te,
|
|
2166
2174
|
"cdn-file-resolver": e.cdnFileResolver,
|
|
2167
2175
|
"current-time": r.value
|
|
2168
2176
|
}, null, 8, ["camera-data", "cdn-file-resolver", "current-time"]))), 128)),
|
|
2169
|
-
(p(!0),
|
|
2177
|
+
(p(!0), F(ce, null, me(R.value, (te) => (p(), V(Dn, {
|
|
2170
2178
|
"transition-data": te,
|
|
2171
2179
|
"cdn-file-resolver": e.cdnFileResolver,
|
|
2172
2180
|
"current-transition": i.value
|
|
2173
2181
|
}, null, 8, ["transition-data", "cdn-file-resolver", "current-transition"]))), 256)),
|
|
2174
|
-
e.customOverlayContent ? (p(),
|
|
2182
|
+
e.customOverlayContent ? (p(), F("div", {
|
|
2175
2183
|
key: 0,
|
|
2176
2184
|
class: "w-100 h-100 position-absolute top-left",
|
|
2177
2185
|
style: { "z-index": "6", "pointer-events": "none" },
|
|
2178
2186
|
innerHTML: e.customOverlayContent
|
|
2179
2187
|
}, null, 8, ta)) : U("", !0),
|
|
2180
2188
|
ve(w(Yn, {
|
|
2181
|
-
"cdn-file-resolver":
|
|
2189
|
+
"cdn-file-resolver": x.cdnFileResolver,
|
|
2182
2190
|
"color-callback": e.colorCallback,
|
|
2183
2191
|
"current-camera": t.value,
|
|
2184
2192
|
"selected-id": e.selectedId,
|
|
@@ -2192,14 +2200,14 @@ const Qn = (u) => {
|
|
|
2192
2200
|
]),
|
|
2193
2201
|
_: 1
|
|
2194
2202
|
}),
|
|
2195
|
-
|
|
2203
|
+
x.$slots.popup && g.value && c.value ? (p(), V(Je, {
|
|
2196
2204
|
key: 0,
|
|
2197
2205
|
"is-hoverable": m.value,
|
|
2198
2206
|
pos: g.value
|
|
2199
2207
|
}, {
|
|
2200
2208
|
default: b(() => [
|
|
2201
2209
|
s("div", na, [
|
|
2202
|
-
K(
|
|
2210
|
+
K(x.$slots, "popup", tt(nt({ hoverId: c.value, hoverable: m.value })), void 0, !0)
|
|
2203
2211
|
])
|
|
2204
2212
|
]),
|
|
2205
2213
|
_: 3
|
|
@@ -2218,7 +2226,7 @@ const Qn = (u) => {
|
|
|
2218
2226
|
], 64);
|
|
2219
2227
|
};
|
|
2220
2228
|
}
|
|
2221
|
-
}), ai = /* @__PURE__ */ J(aa, [["__scopeId", "data-v-
|
|
2229
|
+
}), ai = /* @__PURE__ */ J(aa, [["__scopeId", "data-v-fb5ed138"]]), oa = { class: "sunsim-bar-wrapper" }, la = { class: "sunsim-date d-flex align-center pl-5 pr-5" }, sa = {
|
|
2222
2230
|
key: 1,
|
|
2223
2231
|
class: "text-center text-body-1"
|
|
2224
2232
|
}, 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({
|
|
@@ -2229,8 +2237,8 @@ const Qn = (u) => {
|
|
|
2229
2237
|
isLoading: { type: Boolean, default: !1 }
|
|
2230
2238
|
},
|
|
2231
2239
|
emits: ["update:modelValue"],
|
|
2232
|
-
setup(u, { emit:
|
|
2233
|
-
const e = u,
|
|
2240
|
+
setup(u, { emit: a }) {
|
|
2241
|
+
const e = u, n = a, t = d(e.modelValue), o = d();
|
|
2234
2242
|
function r(l) {
|
|
2235
2243
|
return l.toLocaleString("en-no", {
|
|
2236
2244
|
month: "short",
|
|
@@ -2248,11 +2256,11 @@ const Qn = (u) => {
|
|
|
2248
2256
|
e.dateSelector.selectIndex(v.value.indexOf(l));
|
|
2249
2257
|
}
|
|
2250
2258
|
});
|
|
2251
|
-
return
|
|
2252
|
-
|
|
2253
|
-
}),
|
|
2259
|
+
return Y(t, (l) => {
|
|
2260
|
+
n("update:modelValue", l);
|
|
2261
|
+
}), Y(o, (l) => {
|
|
2254
2262
|
e.dateSelector.selectIndex(v.value.indexOf(l));
|
|
2255
|
-
}),
|
|
2263
|
+
}), Y(
|
|
2256
2264
|
() => e.modelValue,
|
|
2257
2265
|
(l) => {
|
|
2258
2266
|
t.value = Math.floor(l);
|
|
@@ -2261,7 +2269,7 @@ const Qn = (u) => {
|
|
|
2261
2269
|
o.value = r(e.dateSelector.selectedDate);
|
|
2262
2270
|
}), (l, f) => {
|
|
2263
2271
|
const C = B("v-icon"), h = B("v-select"), m = B("v-progress-linear"), g = B("v-slider");
|
|
2264
|
-
return p(),
|
|
2272
|
+
return p(), F("div", oa, [
|
|
2265
2273
|
s("div", la, [
|
|
2266
2274
|
w(C, {
|
|
2267
2275
|
color: "black",
|
|
@@ -2277,7 +2285,7 @@ const Qn = (u) => {
|
|
|
2277
2285
|
variant: "underlined",
|
|
2278
2286
|
"hide-details": "",
|
|
2279
2287
|
class: "day-selector"
|
|
2280
|
-
}, null, 8, ["modelValue", "items"])) : (p(),
|
|
2288
|
+
}, null, 8, ["modelValue", "items"])) : (p(), F("span", sa, Q(c.value), 1))
|
|
2281
2289
|
]),
|
|
2282
2290
|
s("div", ia, [
|
|
2283
2291
|
s("span", ra, Q(i.value), 1),
|
|
@@ -2324,32 +2332,32 @@ const Qn = (u) => {
|
|
|
2324
2332
|
activeIndex: {}
|
|
2325
2333
|
},
|
|
2326
2334
|
emits: ["resize", "ready", "preloaded", "reset"],
|
|
2327
|
-
setup(u, { emit:
|
|
2328
|
-
const e = u,
|
|
2329
|
-
|
|
2335
|
+
setup(u, { emit: a }) {
|
|
2336
|
+
const e = u, n = a, t = d("init"), o = d(new ut(0)), r = d();
|
|
2337
|
+
Y(
|
|
2330
2338
|
() => e.imageUrls,
|
|
2331
2339
|
(c) => {
|
|
2332
|
-
|
|
2340
|
+
n("reset"), v(c);
|
|
2333
2341
|
}
|
|
2334
2342
|
), de(() => {
|
|
2335
2343
|
v(e.imageUrls), new ResizeObserver((c) => {
|
|
2336
2344
|
window.requestAnimationFrame(() => {
|
|
2337
2345
|
const l = c[0].contentRect.width, f = c[0].contentRect.height;
|
|
2338
|
-
|
|
2346
|
+
n("resize", { width: l, height: f });
|
|
2339
2347
|
});
|
|
2340
2348
|
}).observe(r.value);
|
|
2341
2349
|
});
|
|
2342
2350
|
function i() {
|
|
2343
|
-
t.value = "preloaded",
|
|
2351
|
+
t.value = "preloaded", n("preloaded");
|
|
2344
2352
|
}
|
|
2345
2353
|
function v(c) {
|
|
2346
2354
|
t.value = "init", r.value.src = c[0], o.value = new ut(c.length).onLoadFinished(
|
|
2347
2355
|
() => {
|
|
2348
|
-
t.value = "loaded",
|
|
2356
|
+
t.value = "loaded", n("ready");
|
|
2349
2357
|
}
|
|
2350
2358
|
);
|
|
2351
2359
|
}
|
|
2352
|
-
return (c, l) => (p(),
|
|
2360
|
+
return (c, l) => (p(), F("div", null, [
|
|
2353
2361
|
s("img", {
|
|
2354
2362
|
ref_key: "baseImage",
|
|
2355
2363
|
ref: r,
|
|
@@ -2357,8 +2365,8 @@ const Qn = (u) => {
|
|
|
2357
2365
|
style: { opacity: 1, borderRadius: 50 },
|
|
2358
2366
|
onLoad: i
|
|
2359
2367
|
}, null, 544),
|
|
2360
|
-
t.value === "preloaded" || t.value === "loaded" ? ve((p(),
|
|
2361
|
-
(p(!0),
|
|
2368
|
+
t.value === "preloaded" || t.value === "loaded" ? ve((p(), F("div", ca, [
|
|
2369
|
+
(p(!0), F(ce, null, me(c.imageUrls, (f, C) => (p(), F("img", {
|
|
2362
2370
|
key: C,
|
|
2363
2371
|
class: fe({ "image-instance": !0, active: C === c.activeIndex }),
|
|
2364
2372
|
src: f,
|
|
@@ -2388,8 +2396,8 @@ const Qn = (u) => {
|
|
|
2388
2396
|
buildingChooserData: {}
|
|
2389
2397
|
},
|
|
2390
2398
|
emits: ["goToBuilding", "hoverOverBuilding", "hoverOutBuilding"],
|
|
2391
|
-
setup(u, { emit:
|
|
2392
|
-
const e = u,
|
|
2399
|
+
setup(u, { emit: a }) {
|
|
2400
|
+
const e = u, n = a;
|
|
2393
2401
|
Ze(
|
|
2394
2402
|
be,
|
|
2395
2403
|
e.i18nConfig ? new xe(e.i18nConfig) : new xe()
|
|
@@ -2403,8 +2411,8 @@ const Qn = (u) => {
|
|
|
2403
2411
|
}), r = d({ x: 0, y: 0, width: 0, height: 0 }), i = d(), v = d(
|
|
2404
2412
|
(/* @__PURE__ */ new Date()).getHours() * 2 + ((/* @__PURE__ */ new Date()).getMinutes() < 30 ? 0 : 1)
|
|
2405
2413
|
), 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);
|
|
2406
|
-
|
|
2407
|
-
L ?
|
|
2414
|
+
Y(i, (L, E) => {
|
|
2415
|
+
L ? n("hoverOverBuilding", L) : n("hoverOutBuilding", E);
|
|
2408
2416
|
}), Ie(() => {
|
|
2409
2417
|
if (e.buildingChooserTimeOfDay) {
|
|
2410
2418
|
const [L, E, z] = /^(\d\d):(\d\d)$/.exec(
|
|
@@ -2425,8 +2433,8 @@ const Qn = (u) => {
|
|
|
2425
2433
|
};
|
|
2426
2434
|
const z = [];
|
|
2427
2435
|
for (let { id: W, url: ue } of E.buildingOverlays)
|
|
2428
|
-
l.value.loadJson(ue.replace(".png", ".svg")).then((
|
|
2429
|
-
const q = new DOMParser().parseFromString(
|
|
2436
|
+
l.value.loadJson(ue.replace(".png", ".svg")).then((x) => {
|
|
2437
|
+
const q = new DOMParser().parseFromString(x, "image/svg+xml").getElementsByTagName("svg")[0];
|
|
2430
2438
|
C.value = q.getAttribute("viewBox"), z.push({
|
|
2431
2439
|
id: W,
|
|
2432
2440
|
svg: q.innerHTML
|
|
@@ -2455,13 +2463,13 @@ const Qn = (u) => {
|
|
|
2455
2463
|
L === i.value ? "hover" : "idle"
|
|
2456
2464
|
);
|
|
2457
2465
|
if (E) {
|
|
2458
|
-
const { r: z, g: W, b: ue, a:
|
|
2466
|
+
const { r: z, g: W, b: ue, a: x, s: $ } = E;
|
|
2459
2467
|
return {
|
|
2460
2468
|
strokeWidth: $ !== void 0 ? $ : 2,
|
|
2461
2469
|
stroke: `rgb(${z}, ${W}, ${ue})`,
|
|
2462
2470
|
strokeOpacity: 1,
|
|
2463
2471
|
fill: `rgb(${z}, ${W}, ${ue})`,
|
|
2464
|
-
fillOpacity:
|
|
2472
|
+
fillOpacity: x / 255,
|
|
2465
2473
|
cursor: `${e.canGoToBuildingCallback(L) ? "cursor" : "default"} !important`
|
|
2466
2474
|
};
|
|
2467
2475
|
} else
|
|
@@ -2481,18 +2489,18 @@ const Qn = (u) => {
|
|
|
2481
2489
|
y: W,
|
|
2482
2490
|
width: o.value.width,
|
|
2483
2491
|
height: o.value.height
|
|
2484
|
-
}, i.value = E,
|
|
2492
|
+
}, i.value = E, n("hoverOverBuilding", E));
|
|
2485
2493
|
}
|
|
2486
|
-
function
|
|
2494
|
+
function P(L, E) {
|
|
2487
2495
|
const { layerX: z, layerY: W } = L;
|
|
2488
2496
|
y.value && (r.value = {
|
|
2489
2497
|
x: z,
|
|
2490
2498
|
y: W,
|
|
2491
2499
|
width: o.value.width,
|
|
2492
2500
|
height: o.value.height
|
|
2493
|
-
}, i.value = void 0,
|
|
2501
|
+
}, i.value = void 0, n("hoverOutBuilding", E));
|
|
2494
2502
|
}
|
|
2495
|
-
function
|
|
2503
|
+
function D(L, E) {
|
|
2496
2504
|
const { layerX: z, layerY: W } = L;
|
|
2497
2505
|
y.value && (r.value = {
|
|
2498
2506
|
x: z,
|
|
@@ -2502,18 +2510,18 @@ const Qn = (u) => {
|
|
|
2502
2510
|
});
|
|
2503
2511
|
}
|
|
2504
2512
|
function H(L) {
|
|
2505
|
-
i.value = L, y.value && i.value && e.canGoToBuildingCallback(i.value) &&
|
|
2513
|
+
i.value = L, y.value && i.value && e.canGoToBuildingCallback(i.value) && n("goToBuilding", i.value);
|
|
2506
2514
|
}
|
|
2507
2515
|
return (L, E) => {
|
|
2508
2516
|
const z = B("v-icon");
|
|
2509
|
-
return c.value ? (p(),
|
|
2517
|
+
return c.value ? (p(), F("div", ma, [
|
|
2510
2518
|
w(z, { "x-large": "" }, {
|
|
2511
2519
|
default: b(() => [
|
|
2512
2520
|
ee("mdi-alert-circle-outline")
|
|
2513
2521
|
]),
|
|
2514
2522
|
_: 1
|
|
2515
2523
|
})
|
|
2516
|
-
])) : m.value ? (p(),
|
|
2524
|
+
])) : m.value ? (p(), F("div", {
|
|
2517
2525
|
key: 1,
|
|
2518
2526
|
style: se(`height: ${o.value.height}px; position: relative`),
|
|
2519
2527
|
class: "image-container"
|
|
@@ -2532,18 +2540,18 @@ const Qn = (u) => {
|
|
|
2532
2540
|
onReady: E[1] || (E[1] = (W) => t.value.ready = !0),
|
|
2533
2541
|
onReset: M
|
|
2534
2542
|
}, null, 8, ["image-urls", "active-index"]),
|
|
2535
|
-
f.value ? ve((p(),
|
|
2543
|
+
f.value ? ve((p(), F("div", fa, [
|
|
2536
2544
|
s("div", ha, [
|
|
2537
|
-
(p(),
|
|
2538
|
-
(p(!0),
|
|
2539
|
-
key:
|
|
2545
|
+
(p(), F("svg", { viewBox: C.value }, [
|
|
2546
|
+
(p(!0), F(ce, null, me(f.value, ({ id: W, svg: ue }, x) => (p(), F("g", {
|
|
2547
|
+
key: x,
|
|
2540
2548
|
innerHTML: ue,
|
|
2541
2549
|
"data-building-id": W,
|
|
2542
2550
|
class: fe(R(W)),
|
|
2543
2551
|
style: se(I(W)),
|
|
2544
2552
|
onMouseover: ($) => _($, W),
|
|
2545
|
-
onMouseout: ($) =>
|
|
2546
|
-
onMousemove: ($) =>
|
|
2553
|
+
onMouseout: ($) => P($, W),
|
|
2554
|
+
onMousemove: ($) => D($),
|
|
2547
2555
|
onClick: ($) => H(W)
|
|
2548
2556
|
}, null, 46, ya))), 128))
|
|
2549
2557
|
], 8, ga))
|
|
@@ -2586,7 +2594,7 @@ const Qn = (u) => {
|
|
|
2586
2594
|
K(L.$slots, "default", {
|
|
2587
2595
|
building: i.value,
|
|
2588
2596
|
canGoToBuilding: L.canGoToBuildingCallback(i.value),
|
|
2589
|
-
goToBuilding: () => L.canGoToBuildingCallback(i.value) &&
|
|
2597
|
+
goToBuilding: () => L.canGoToBuildingCallback(i.value) && n("goToBuilding", i.value),
|
|
2590
2598
|
pos: r.value,
|
|
2591
2599
|
isHoverable: y.value,
|
|
2592
2600
|
close: () => i.value = void 0
|
|
@@ -2608,13 +2616,13 @@ const Qn = (u) => {
|
|
|
2608
2616
|
dimensions: {},
|
|
2609
2617
|
color: { default: () => ({ r: 108, g: 0, b: 108, a: 144, s: 2 }) }
|
|
2610
2618
|
},
|
|
2611
|
-
setup(u, { expose:
|
|
2619
|
+
setup(u, { expose: a }) {
|
|
2612
2620
|
const e = u;
|
|
2613
|
-
|
|
2621
|
+
a({
|
|
2614
2622
|
setupDraw: l
|
|
2615
2623
|
});
|
|
2616
|
-
const
|
|
2617
|
-
|
|
2624
|
+
const n = d(!1), t = d(), o = d(new ge()), r = d(), i = d(), v = d([]), c = d();
|
|
2625
|
+
Y(
|
|
2618
2626
|
() => e.color,
|
|
2619
2627
|
(h, m) => {
|
|
2620
2628
|
(h.r !== m.r || h.g !== m.g || h.b !== m.b || h.a !== m.a) && f();
|
|
@@ -2632,7 +2640,7 @@ const Qn = (u) => {
|
|
|
2632
2640
|
}), r.value.drawImage(t.value, 0, 0, h, m), i.value = r.value.getImageData(0, 0, h, m);
|
|
2633
2641
|
for (let g = 3; g < i.value.data.length; g += 4)
|
|
2634
2642
|
i.value.data[g] !== 0 && v.value.push(g);
|
|
2635
|
-
f(),
|
|
2643
|
+
f(), n.value = !0;
|
|
2636
2644
|
}
|
|
2637
2645
|
}
|
|
2638
2646
|
function f() {
|
|
@@ -2643,7 +2651,7 @@ const Qn = (u) => {
|
|
|
2643
2651
|
for (let h = 0; h < v.value.length; h++)
|
|
2644
2652
|
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;
|
|
2645
2653
|
}
|
|
2646
|
-
return (h, m) => (p(),
|
|
2654
|
+
return (h, m) => (p(), F("canvas", ye({
|
|
2647
2655
|
ref_key: "canvas",
|
|
2648
2656
|
ref: c,
|
|
2649
2657
|
class: "overlay"
|
|
@@ -2668,8 +2676,8 @@ const Qn = (u) => {
|
|
|
2668
2676
|
buildingChooserData: {}
|
|
2669
2677
|
},
|
|
2670
2678
|
emits: ["goToBuilding", "hoverOverBuilding", "hoverOutBuilding"],
|
|
2671
|
-
setup(u, { emit:
|
|
2672
|
-
const e = u,
|
|
2679
|
+
setup(u, { emit: a }) {
|
|
2680
|
+
const e = u, n = a;
|
|
2673
2681
|
Ze(
|
|
2674
2682
|
be,
|
|
2675
2683
|
e.i18nConfig ? new xe(e.i18nConfig) : new xe()
|
|
@@ -2695,8 +2703,8 @@ const Qn = (u) => {
|
|
|
2695
2703
|
), W = parseInt(z);
|
|
2696
2704
|
C.value = parseInt(E) * 2 + (W < 15 ? 0 : W > 45 ? 2 : 1);
|
|
2697
2705
|
}
|
|
2698
|
-
}),
|
|
2699
|
-
L ?
|
|
2706
|
+
}), Y(f, (L, E) => {
|
|
2707
|
+
L ? n("hoverOverBuilding", L) : n("hoverOutBuilding", E);
|
|
2700
2708
|
}), de(async () => {
|
|
2701
2709
|
const E = await new kt(
|
|
2702
2710
|
e.cdnFileResolver
|
|
@@ -2736,10 +2744,10 @@ const Qn = (u) => {
|
|
|
2736
2744
|
height: r.value.height
|
|
2737
2745
|
}));
|
|
2738
2746
|
}
|
|
2739
|
-
function
|
|
2740
|
-
f.value = R(L), y.value && f.value &&
|
|
2747
|
+
function P(L) {
|
|
2748
|
+
f.value = R(L), y.value && f.value && n("goToBuilding", f.value);
|
|
2741
2749
|
}
|
|
2742
|
-
function
|
|
2750
|
+
function D(L) {
|
|
2743
2751
|
return e.colorCallback(
|
|
2744
2752
|
L,
|
|
2745
2753
|
L === f.value ? "hover" : "idle"
|
|
@@ -2750,14 +2758,14 @@ const Qn = (u) => {
|
|
|
2750
2758
|
}
|
|
2751
2759
|
return (L, E) => {
|
|
2752
2760
|
const z = B("v-icon");
|
|
2753
|
-
return m.value ? (p(),
|
|
2761
|
+
return m.value ? (p(), F("div", Ia, [
|
|
2754
2762
|
w(z, { "x-large": "" }, {
|
|
2755
2763
|
default: b(() => [
|
|
2756
2764
|
ee("mdi-alert-circle-outline")
|
|
2757
2765
|
]),
|
|
2758
2766
|
_: 1
|
|
2759
2767
|
})
|
|
2760
|
-
])) : v.value ? (p(),
|
|
2768
|
+
])) : v.value ? (p(), F("div", {
|
|
2761
2769
|
key: 1,
|
|
2762
2770
|
style: se(`cursor: ${f.value ? "pointer" : "auto"};height: ${r.value.height}px; position: relative`),
|
|
2763
2771
|
class: "image-container"
|
|
@@ -2778,14 +2786,14 @@ const Qn = (u) => {
|
|
|
2778
2786
|
onReset: M
|
|
2779
2787
|
}, null, 8, ["image-urls", "active-index"]),
|
|
2780
2788
|
ve(s("div", null, [
|
|
2781
|
-
(p(!0),
|
|
2789
|
+
(p(!0), F(ce, null, me(v.value.buildingOverlays, (W) => (p(), V(Ca, {
|
|
2782
2790
|
ref_for: !0,
|
|
2783
2791
|
ref_key: "overlays",
|
|
2784
2792
|
ref: A,
|
|
2785
2793
|
key: W.id,
|
|
2786
2794
|
"image-url": W.url,
|
|
2787
2795
|
dimensions: r.value,
|
|
2788
|
-
color:
|
|
2796
|
+
color: D(W.id)
|
|
2789
2797
|
}, null, 8, ["image-url", "dimensions", "color"]))), 128))
|
|
2790
2798
|
], 512), [
|
|
2791
2799
|
[he, o.value.preloaded]
|
|
@@ -2795,7 +2803,7 @@ const Qn = (u) => {
|
|
|
2795
2803
|
ref_key: "canvas",
|
|
2796
2804
|
ref: S,
|
|
2797
2805
|
class: { hover: !!f.value },
|
|
2798
|
-
onClick:
|
|
2806
|
+
onClick: P,
|
|
2799
2807
|
onMousemove: _
|
|
2800
2808
|
}), null, 16),
|
|
2801
2809
|
ve(s("div", {
|
|
@@ -2832,7 +2840,7 @@ const Qn = (u) => {
|
|
|
2832
2840
|
K(L.$slots, "default", {
|
|
2833
2841
|
building: f.value,
|
|
2834
2842
|
canGoToBuilding: L.canGoToBuildingCallback(f.value),
|
|
2835
|
-
goToBuilding: () => L.canGoToBuildingCallback(f.value) &&
|
|
2843
|
+
goToBuilding: () => L.canGoToBuildingCallback(f.value) && n("goToBuilding", f.value),
|
|
2836
2844
|
pos: i.value,
|
|
2837
2845
|
isHoverable: y.value,
|
|
2838
2846
|
close: () => f.value = void 0
|
|
@@ -2863,8 +2871,8 @@ const Qn = (u) => {
|
|
|
2863
2871
|
buildingChooserData: {}
|
|
2864
2872
|
},
|
|
2865
2873
|
emits: ["goToBuilding", "hoverOverBuilding", "hoverOutBuilding"],
|
|
2866
|
-
setup(u, { emit:
|
|
2867
|
-
const e = u,
|
|
2874
|
+
setup(u, { emit: a }) {
|
|
2875
|
+
const e = u, n = a, t = T(
|
|
2868
2876
|
() => e.useSvg ? wa : xa
|
|
2869
2877
|
);
|
|
2870
2878
|
return (o, r) => (p(), V(yt(t.value), {
|
|
@@ -2878,9 +2886,9 @@ const Qn = (u) => {
|
|
|
2878
2886
|
"can-go-to-building-callback": e.canGoToBuildingCallback,
|
|
2879
2887
|
"custom-overlay-content": e.customOverlayContent,
|
|
2880
2888
|
"building-chooser-data": e.buildingChooserData,
|
|
2881
|
-
onGoToBuilding: r[0] || (r[0] = (i) =>
|
|
2882
|
-
onHoverOverBuilding: r[1] || (r[1] = (i) =>
|
|
2883
|
-
onHoverOutBuilding: r[2] || (r[2] = (i) =>
|
|
2889
|
+
onGoToBuilding: r[0] || (r[0] = (i) => n("goToBuilding", i)),
|
|
2890
|
+
onHoverOverBuilding: r[1] || (r[1] = (i) => n("hoverOverBuilding", i)),
|
|
2891
|
+
onHoverOutBuilding: r[2] || (r[2] = (i) => n("hoverOutBuilding", i))
|
|
2884
2892
|
}, Vt({ _: 2 }, [
|
|
2885
2893
|
me(Object.keys(o.$slots), (i) => ({
|
|
2886
2894
|
name: i,
|
|
@@ -2898,13 +2906,13 @@ const Qn = (u) => {
|
|
|
2898
2906
|
currentTime: {}
|
|
2899
2907
|
},
|
|
2900
2908
|
setup(u) {
|
|
2901
|
-
const
|
|
2902
|
-
return (
|
|
2909
|
+
const a = u, e = T(() => ie(a.cdnFileResolver, a.timeSampleData.filename));
|
|
2910
|
+
return (n, t) => ve((p(), F("img", {
|
|
2903
2911
|
key: e.value,
|
|
2904
2912
|
src: e.value,
|
|
2905
2913
|
width: "100%"
|
|
2906
2914
|
}, null, 8, Da)), [
|
|
2907
|
-
[he,
|
|
2915
|
+
[he, n.timeSampleData === n.currentTime]
|
|
2908
2916
|
]);
|
|
2909
2917
|
}
|
|
2910
2918
|
}), Ea = /* @__PURE__ */ J(Ma, [["__scopeId", "data-v-98118455"]]), Ta = /* @__PURE__ */ j({
|
|
@@ -2915,10 +2923,10 @@ const Qn = (u) => {
|
|
|
2915
2923
|
currentTime: {}
|
|
2916
2924
|
},
|
|
2917
2925
|
setup(u) {
|
|
2918
|
-
const
|
|
2919
|
-
return (e,
|
|
2926
|
+
const a = u;
|
|
2927
|
+
return (e, n) => (p(!0), F(ce, null, me(a.dayData.timeSamples, (t) => (p(), V(Ea, {
|
|
2920
2928
|
"time-sample-data": t,
|
|
2921
|
-
"cdn-file-resolver":
|
|
2929
|
+
"cdn-file-resolver": a.cdnFileResolver,
|
|
2922
2930
|
"current-time": e.currentTime
|
|
2923
2931
|
}, null, 8, ["time-sample-data", "cdn-file-resolver", "current-time"]))), 256));
|
|
2924
2932
|
}
|
|
@@ -2930,11 +2938,11 @@ const Qn = (u) => {
|
|
|
2930
2938
|
currentTime: {}
|
|
2931
2939
|
},
|
|
2932
2940
|
setup(u) {
|
|
2933
|
-
const
|
|
2934
|
-
return (e,
|
|
2941
|
+
const a = u;
|
|
2942
|
+
return (e, n) => (p(!0), F(ce, null, me(a.cameraData.sunsimDayOfYear, (t) => (p(), V(Ta, {
|
|
2935
2943
|
"day-data": t,
|
|
2936
|
-
"cdn-file-resolver":
|
|
2937
|
-
"current-time":
|
|
2944
|
+
"cdn-file-resolver": a.cdnFileResolver,
|
|
2945
|
+
"current-time": a.currentTime
|
|
2938
2946
|
}, null, 8, ["day-data", "cdn-file-resolver", "current-time"]))), 256));
|
|
2939
2947
|
}
|
|
2940
2948
|
}), Ba = /* @__PURE__ */ j({
|
|
@@ -2944,12 +2952,12 @@ const Qn = (u) => {
|
|
|
2944
2952
|
currentCamera: {}
|
|
2945
2953
|
},
|
|
2946
2954
|
emits: ["onCameraChange"],
|
|
2947
|
-
setup(u, { emit:
|
|
2948
|
-
const e = u,
|
|
2955
|
+
setup(u, { emit: a }) {
|
|
2956
|
+
const e = u, n = a, t = d(
|
|
2949
2957
|
e.currentCamera.overlayFilename
|
|
2950
2958
|
);
|
|
2951
|
-
return
|
|
2952
|
-
|
|
2959
|
+
return Y(t, () => {
|
|
2960
|
+
n(
|
|
2953
2961
|
"onCameraChange",
|
|
2954
2962
|
e.buildingChooserData.cameras.find(
|
|
2955
2963
|
(o) => o.overlayFilename === t.value
|
|
@@ -2976,15 +2984,15 @@ const Qn = (u) => {
|
|
|
2976
2984
|
currentDay: {}
|
|
2977
2985
|
},
|
|
2978
2986
|
emits: ["onDayChange"],
|
|
2979
|
-
setup(u, { emit:
|
|
2980
|
-
const e = u,
|
|
2981
|
-
|
|
2987
|
+
setup(u, { emit: a }) {
|
|
2988
|
+
const e = u, n = a, t = d(e.currentDay.dayOfYear);
|
|
2989
|
+
Y(
|
|
2982
2990
|
() => e.currentDay.dayOfYear,
|
|
2983
2991
|
() => {
|
|
2984
2992
|
t.value = e.currentDay.dayOfYear;
|
|
2985
2993
|
}
|
|
2986
|
-
),
|
|
2987
|
-
|
|
2994
|
+
), Y(t, () => {
|
|
2995
|
+
n(
|
|
2988
2996
|
"onDayChange",
|
|
2989
2997
|
e.cameraData.sunsimDayOfYear.find(
|
|
2990
2998
|
(r) => r.dayOfYear === t.value
|
|
@@ -3032,15 +3040,15 @@ const Qn = (u) => {
|
|
|
3032
3040
|
currentTime: {}
|
|
3033
3041
|
},
|
|
3034
3042
|
emits: ["onTimeChange"],
|
|
3035
|
-
setup(u, { emit:
|
|
3036
|
-
const e = u,
|
|
3037
|
-
|
|
3043
|
+
setup(u, { emit: a }) {
|
|
3044
|
+
const e = u, n = a, t = d(e.currentTime.timeInHours), o = d();
|
|
3045
|
+
Y(
|
|
3038
3046
|
() => e.currentTime.timeInHours,
|
|
3039
3047
|
() => {
|
|
3040
3048
|
t.value = e.currentTime.timeInHours;
|
|
3041
3049
|
}
|
|
3042
|
-
),
|
|
3043
|
-
|
|
3050
|
+
), Y(t, () => {
|
|
3051
|
+
n(
|
|
3044
3052
|
"onTimeChange",
|
|
3045
3053
|
e.dayData.timeSamples.find(
|
|
3046
3054
|
(v) => v.timeInHours === t.value
|
|
@@ -3065,7 +3073,7 @@ const Qn = (u) => {
|
|
|
3065
3073
|
const l = B("v-icon"), f = B("v-btn"), C = B("v-slider"), h = B("v-field");
|
|
3066
3074
|
return p(), V(h, { variant: "solo" }, {
|
|
3067
3075
|
default: b(() => [
|
|
3068
|
-
v.dayData.startTime === v.dayData.endTime ? (p(),
|
|
3076
|
+
v.dayData.startTime === v.dayData.endTime ? (p(), F("div", Oa, [
|
|
3069
3077
|
w(l, {
|
|
3070
3078
|
style: { color: "#ffab02", "vertical-align": "baseline", "font-size": "20px" },
|
|
3071
3079
|
class: "py-2 ml-2 mr-2 icon"
|
|
@@ -3126,8 +3134,8 @@ const Qn = (u) => {
|
|
|
3126
3134
|
selectedId: {}
|
|
3127
3135
|
},
|
|
3128
3136
|
emits: ["onClick", "onHoverOver", "onHoverOut", "updateSvgContainer"],
|
|
3129
|
-
setup(u, { emit:
|
|
3130
|
-
const e = u,
|
|
3137
|
+
setup(u, { emit: a }) {
|
|
3138
|
+
const e = u, n = a, t = d(), o = d(), r = d(e.selectedId), i = dt({});
|
|
3131
3139
|
Ie(() => {
|
|
3132
3140
|
for (const l in i) {
|
|
3133
3141
|
const { element: f, state: C } = i[l], { r: h, g: m, b: g, a: S, s: A } = e.colorCallback(l, C) || {
|
|
@@ -3139,19 +3147,19 @@ const Qn = (u) => {
|
|
|
3139
3147
|
};
|
|
3140
3148
|
f.style.fill = `rgba(${h}, ${m}, ${g}, ${S / 255})`, f.style.stroke = `rgb(${h}, ${m}, ${g})`, f.style.strokeWidth = A.toString();
|
|
3141
3149
|
}
|
|
3142
|
-
}),
|
|
3150
|
+
}), Y(
|
|
3143
3151
|
() => e.selectedId,
|
|
3144
3152
|
() => {
|
|
3145
3153
|
r.value = e.selectedId;
|
|
3146
3154
|
}
|
|
3147
|
-
),
|
|
3155
|
+
), Y(r, () => {
|
|
3148
3156
|
for (const l in i)
|
|
3149
3157
|
i[l].state === "selected" && l !== r.value ? i[l].state = "idle" : i[l].state !== "selected" && l === r.value && (i[l].state = "selected");
|
|
3150
3158
|
}), Ie(async () => {
|
|
3151
3159
|
t.value = await ge.loadText(
|
|
3152
3160
|
ie(e.cdnFileResolver, e.currentCamera.overlayFilename)
|
|
3153
3161
|
), c();
|
|
3154
|
-
}),
|
|
3162
|
+
}), Y(
|
|
3155
3163
|
() => o.value,
|
|
3156
3164
|
() => {
|
|
3157
3165
|
o.value && new ResizeObserver(v).observe(o.value);
|
|
@@ -3177,7 +3185,7 @@ const Qn = (u) => {
|
|
|
3177
3185
|
Se(() => {
|
|
3178
3186
|
var f;
|
|
3179
3187
|
const l = (f = o.value) == null ? void 0 : f.firstChild;
|
|
3180
|
-
l && (
|
|
3188
|
+
l && (n("updateSvgContainer", l), v(), l.querySelectorAll("[data-building-id]").forEach((h) => {
|
|
3181
3189
|
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) => {
|
|
3182
3190
|
g.style.stroke = "inherit", g.style.fill = "inherit";
|
|
3183
3191
|
});
|
|
@@ -3186,18 +3194,18 @@ const Qn = (u) => {
|
|
|
3186
3194
|
element: h,
|
|
3187
3195
|
state: r.value === m ? "selected" : "idle"
|
|
3188
3196
|
}, h.addEventListener("mouseover", () => {
|
|
3189
|
-
i[m].state === "idle" && (i[m].state = "hover"),
|
|
3197
|
+
i[m].state === "idle" && (i[m].state = "hover"), n("onHoverOver", m);
|
|
3190
3198
|
}), h.addEventListener("mouseout", () => {
|
|
3191
|
-
i[m].state === "hover" && (i[m].state = "idle"),
|
|
3199
|
+
i[m].state === "hover" && (i[m].state = "idle"), n("onHoverOut", m);
|
|
3192
3200
|
}), h.addEventListener("click", () => {
|
|
3193
|
-
|
|
3201
|
+
n("onClick", m);
|
|
3194
3202
|
});
|
|
3195
3203
|
}));
|
|
3196
3204
|
});
|
|
3197
3205
|
}
|
|
3198
3206
|
return (l, f) => (p(), V(Le, null, {
|
|
3199
3207
|
default: b(() => [
|
|
3200
|
-
(p(),
|
|
3208
|
+
(p(), F("div", {
|
|
3201
3209
|
ref_key: "svgContainer",
|
|
3202
3210
|
ref: o,
|
|
3203
3211
|
key: l.currentCamera.overlayFilename,
|
|
@@ -3210,7 +3218,7 @@ const Qn = (u) => {
|
|
|
3210
3218
|
}));
|
|
3211
3219
|
}
|
|
3212
3220
|
}), Wa = /* @__PURE__ */ J(ja, [["__scopeId", "data-v-37109c67"]]), za = (u) => {
|
|
3213
|
-
const
|
|
3221
|
+
const a = {
|
|
3214
3222
|
version: "5.0",
|
|
3215
3223
|
latitude: u.latitude,
|
|
3216
3224
|
longitude: u.longitude,
|
|
@@ -3245,7 +3253,7 @@ const Qn = (u) => {
|
|
|
3245
3253
|
}))
|
|
3246
3254
|
}
|
|
3247
3255
|
];
|
|
3248
|
-
const
|
|
3256
|
+
const n = {
|
|
3249
3257
|
cameraName: "Default",
|
|
3250
3258
|
cameraPosition: u.cameraPosition,
|
|
3251
3259
|
cameraRotation: u.cameraRotation,
|
|
@@ -3253,7 +3261,7 @@ const Qn = (u) => {
|
|
|
3253
3261
|
overlayFilename: "/BuildingChooserV5.svg",
|
|
3254
3262
|
sunsimDayOfYear: e
|
|
3255
3263
|
};
|
|
3256
|
-
return
|
|
3264
|
+
return a.cameras.push(n), a;
|
|
3257
3265
|
}, Na = {
|
|
3258
3266
|
class: "actions-bar compact top-left d-flex w-100 justify-space-around align-center",
|
|
3259
3267
|
style: { "z-index": "6" }
|
|
@@ -3277,29 +3285,35 @@ const Qn = (u) => {
|
|
|
3277
3285
|
defaultTime: {},
|
|
3278
3286
|
mobileBreakpoint: { default: 600 }
|
|
3279
3287
|
},
|
|
3280
|
-
emits: ["onClick", "onHoverOver", "onHoverOut", "onMouseMove"],
|
|
3281
|
-
setup(u, { emit:
|
|
3282
|
-
const e = u,
|
|
3288
|
+
emits: ["onClick", "onHoverOver", "onHoverOut", "onMouseMove", "onInitialize", "onError"],
|
|
3289
|
+
setup(u, { emit: a }) {
|
|
3290
|
+
const e = u, n = a, 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(
|
|
3283
3291
|
e.buildingChooserData
|
|
3284
3292
|
), g = d(!1);
|
|
3285
|
-
de(() => v.value = !0),
|
|
3293
|
+
de(() => v.value = !0), Y(v, (_) => {
|
|
3294
|
+
_ && n("onInitialize");
|
|
3295
|
+
}), Y(
|
|
3286
3296
|
() => h.value,
|
|
3287
3297
|
() => {
|
|
3288
|
-
h.value && new ResizeObserver(([
|
|
3289
|
-
g.value =
|
|
3298
|
+
h.value && new ResizeObserver(([P]) => {
|
|
3299
|
+
g.value = P.contentRect.width < e.mobileBreakpoint;
|
|
3290
3300
|
}).observe(h.value);
|
|
3291
3301
|
}
|
|
3292
3302
|
);
|
|
3293
3303
|
const S = async () => {
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3304
|
+
try {
|
|
3305
|
+
let _;
|
|
3306
|
+
if (!e.cdnFileResolver)
|
|
3307
|
+
return _;
|
|
3308
|
+
let P;
|
|
3309
|
+
return P = await ge.loadJson(
|
|
3310
|
+
ie(e.cdnFileResolver, "/buildingChooser.json")
|
|
3311
|
+
), parseInt(P.version) === 5 ? P : (_ = za(P), _);
|
|
3312
|
+
} catch (_) {
|
|
3313
|
+
v.value = !1, n("onError", _);
|
|
3314
|
+
}
|
|
3301
3315
|
};
|
|
3302
|
-
|
|
3316
|
+
Y(
|
|
3303
3317
|
[m, () => e.cdnFileResolver, () => e.defaultCamera],
|
|
3304
3318
|
async () => {
|
|
3305
3319
|
e.cdnFileResolver && (m.value || (m.value = await S()), e.defaultCamera ? t.value = m.value.cameras.find(
|
|
@@ -3307,7 +3321,7 @@ const Qn = (u) => {
|
|
|
3307
3321
|
) || m.value.cameras[0] : t.value = m.value.cameras[0]);
|
|
3308
3322
|
},
|
|
3309
3323
|
{ immediate: !0 }
|
|
3310
|
-
),
|
|
3324
|
+
), Y(
|
|
3311
3325
|
[m, () => e.cdnFileResolver, () => e.defaultDay],
|
|
3312
3326
|
() => {
|
|
3313
3327
|
m.value && e.cdnFileResolver && (e.defaultDay ? o.value = t.value.sunsimDayOfYear.find(
|
|
@@ -3315,7 +3329,7 @@ const Qn = (u) => {
|
|
|
3315
3329
|
) || t.value.sunsimDayOfYear[0] : o.value = t.value.sunsimDayOfYear[0]);
|
|
3316
3330
|
},
|
|
3317
3331
|
{ immediate: !0 }
|
|
3318
|
-
),
|
|
3332
|
+
), Y(
|
|
3319
3333
|
[m, () => e.cdnFileResolver, () => e.defaultTime],
|
|
3320
3334
|
() => {
|
|
3321
3335
|
m.value && e.cdnFileResolver && (e.defaultTime ? r.value = o.value.timeSamples.find(
|
|
@@ -3327,23 +3341,23 @@ const Qn = (u) => {
|
|
|
3327
3341
|
{ immediate: !0 }
|
|
3328
3342
|
);
|
|
3329
3343
|
function A(_) {
|
|
3330
|
-
const
|
|
3344
|
+
const P = o.value;
|
|
3331
3345
|
t.value = _, Se(() => {
|
|
3332
3346
|
y(
|
|
3333
3347
|
t.value.sunsimDayOfYear.find(
|
|
3334
|
-
(
|
|
3348
|
+
(D) => D.dayOfYear === P.dayOfYear
|
|
3335
3349
|
) || t.value.sunsimDayOfYear[0]
|
|
3336
3350
|
);
|
|
3337
3351
|
});
|
|
3338
3352
|
}
|
|
3339
3353
|
function y(_) {
|
|
3340
|
-
const
|
|
3354
|
+
const P = r.value;
|
|
3341
3355
|
o.value = _, Se(() => {
|
|
3342
3356
|
O(
|
|
3343
3357
|
o.value.timeSamples.find(
|
|
3344
|
-
(
|
|
3358
|
+
(D) => D.timeInHours === P.timeInHours
|
|
3345
3359
|
) || o.value.timeSamples.find(
|
|
3346
|
-
(
|
|
3360
|
+
(D) => D.timeInHours === o.value.defaultHour
|
|
3347
3361
|
) || o.value.timeSamples[0]
|
|
3348
3362
|
);
|
|
3349
3363
|
});
|
|
@@ -3352,13 +3366,13 @@ const Qn = (u) => {
|
|
|
3352
3366
|
r.value = _;
|
|
3353
3367
|
}
|
|
3354
3368
|
function M(_) {
|
|
3355
|
-
|
|
3369
|
+
n("onHoverOver", _), i.value = _;
|
|
3356
3370
|
}
|
|
3357
3371
|
function R(_) {
|
|
3358
|
-
|
|
3372
|
+
n("onHoverOut", _), i.value = void 0;
|
|
3359
3373
|
}
|
|
3360
3374
|
function I(_) {
|
|
3361
|
-
const { layerX:
|
|
3375
|
+
const { layerX: P, layerY: D } = _;
|
|
3362
3376
|
let H = _.target, L = !1;
|
|
3363
3377
|
for (; H; )
|
|
3364
3378
|
if (H === C.value) {
|
|
@@ -3369,19 +3383,19 @@ const Qn = (u) => {
|
|
|
3369
3383
|
if (L) {
|
|
3370
3384
|
const E = _.currentTarget;
|
|
3371
3385
|
f.value = {
|
|
3372
|
-
x:
|
|
3373
|
-
y:
|
|
3386
|
+
x: P,
|
|
3387
|
+
y: D,
|
|
3374
3388
|
width: E.clientWidth,
|
|
3375
3389
|
height: E.clientHeight
|
|
3376
3390
|
};
|
|
3377
3391
|
} else
|
|
3378
3392
|
f.value = void 0;
|
|
3379
|
-
|
|
3393
|
+
n("onMouseMove", _, f.value);
|
|
3380
3394
|
}
|
|
3381
|
-
return (_,
|
|
3382
|
-
const
|
|
3383
|
-
return p(),
|
|
3384
|
-
w(
|
|
3395
|
+
return (_, P) => {
|
|
3396
|
+
const D = B("v-skeleton-loader");
|
|
3397
|
+
return p(), F(ce, null, [
|
|
3398
|
+
w(D, {
|
|
3385
3399
|
type: "image",
|
|
3386
3400
|
class: "w-100 h-100 position-relative",
|
|
3387
3401
|
loading: !v.value || !m.value
|
|
@@ -3396,7 +3410,7 @@ const Qn = (u) => {
|
|
|
3396
3410
|
onMousemove: I
|
|
3397
3411
|
}, [
|
|
3398
3412
|
s("div", Na, [
|
|
3399
|
-
m.value.cameras.length > 1 ? (p(),
|
|
3413
|
+
m.value.cameras.length > 1 ? (p(), F("div", Ga, [
|
|
3400
3414
|
w(Ba, {
|
|
3401
3415
|
"building-chooser-data": m.value,
|
|
3402
3416
|
"current-camera": t.value,
|
|
@@ -3427,13 +3441,13 @@ const Qn = (u) => {
|
|
|
3427
3441
|
]),
|
|
3428
3442
|
w(Xe, { position: "relative" }, {
|
|
3429
3443
|
default: b(() => [
|
|
3430
|
-
(p(!0),
|
|
3444
|
+
(p(!0), F(ce, null, me(m.value.cameras, (H) => (p(), V(Va, {
|
|
3431
3445
|
key: H.overlayFilename,
|
|
3432
3446
|
"camera-data": H,
|
|
3433
3447
|
"cdn-file-resolver": e.cdnFileResolver,
|
|
3434
3448
|
"current-time": r.value
|
|
3435
3449
|
}, null, 8, ["camera-data", "cdn-file-resolver", "current-time"]))), 128)),
|
|
3436
|
-
e.customOverlayContent ? (p(),
|
|
3450
|
+
e.customOverlayContent ? (p(), F("div", {
|
|
3437
3451
|
key: 0,
|
|
3438
3452
|
class: "w-100 h-100 position-absolute top-left",
|
|
3439
3453
|
style: { "z-index": "5", "pointer-events": "none" },
|
|
@@ -3444,10 +3458,10 @@ const Qn = (u) => {
|
|
|
3444
3458
|
"color-callback": e.colorCallback,
|
|
3445
3459
|
"current-camera": t.value,
|
|
3446
3460
|
"selected-id": e.selectedId,
|
|
3447
|
-
onOnClick:
|
|
3461
|
+
onOnClick: P[0] || (P[0] = (H) => n("onClick", H)),
|
|
3448
3462
|
onOnHoverOver: M,
|
|
3449
3463
|
onOnHoverOut: R,
|
|
3450
|
-
onUpdateSvgContainer:
|
|
3464
|
+
onUpdateSvgContainer: P[1] || (P[1] = (H) => C.value = H)
|
|
3451
3465
|
}, null, 8, ["cdn-file-resolver", "color-callback", "current-camera", "selected-id"])
|
|
3452
3466
|
]),
|
|
3453
3467
|
_: 1
|
|
@@ -3478,7 +3492,7 @@ const Qn = (u) => {
|
|
|
3478
3492
|
], 64);
|
|
3479
3493
|
};
|
|
3480
3494
|
}
|
|
3481
|
-
}), oi = /* @__PURE__ */ J(Ka, [["__scopeId", "data-v-
|
|
3495
|
+
}), oi = /* @__PURE__ */ J(Ka, [["__scopeId", "data-v-417e7d3a"]]);
|
|
3482
3496
|
var We = {};
|
|
3483
3497
|
Object.defineProperty(We, "__esModule", {
|
|
3484
3498
|
value: !0
|
|
@@ -3531,47 +3545,47 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
3531
3545
|
mouseSensitivity: { default: 1 }
|
|
3532
3546
|
},
|
|
3533
3547
|
emits: ["newCameraCallback", "newRotationCallback", "newFloorCallback", "newFovCallback", "playerApiCallback", "newSizeCallback"],
|
|
3534
|
-
setup(u, { emit:
|
|
3535
|
-
const e = Ot.PlayerV2,
|
|
3536
|
-
return
|
|
3548
|
+
setup(u, { emit: a }) {
|
|
3549
|
+
const e = Ot.PlayerV2, n = u, t = a, o = d(), r = d(), i = d(0), v = d(0);
|
|
3550
|
+
return Y(
|
|
3537
3551
|
[
|
|
3538
|
-
() =>
|
|
3539
|
-
() =>
|
|
3540
|
-
() =>
|
|
3552
|
+
() => n.cdnFileResolver,
|
|
3553
|
+
() => n.interiorId,
|
|
3554
|
+
() => n.apartmentId
|
|
3541
3555
|
],
|
|
3542
3556
|
async () => {
|
|
3543
3557
|
o.value && await o.value.loadInterior(
|
|
3544
3558
|
ie(
|
|
3545
|
-
|
|
3546
|
-
`/${
|
|
3559
|
+
n.cdnFileResolver,
|
|
3560
|
+
`/${n.interiorId}/${n.apartmentId}`
|
|
3547
3561
|
),
|
|
3548
3562
|
r.value,
|
|
3549
3563
|
!1
|
|
3550
3564
|
);
|
|
3551
3565
|
}
|
|
3552
|
-
),
|
|
3566
|
+
), Y(
|
|
3553
3567
|
[
|
|
3554
|
-
() =>
|
|
3555
|
-
() =>
|
|
3556
|
-
() =>
|
|
3568
|
+
() => n.cdnFileResolver,
|
|
3569
|
+
() => n.interiorId,
|
|
3570
|
+
() => n.apartmentId
|
|
3557
3571
|
],
|
|
3558
3572
|
async () => {
|
|
3559
3573
|
o.value && await o.value.loadInterior(
|
|
3560
3574
|
ie(
|
|
3561
|
-
|
|
3562
|
-
`/${
|
|
3575
|
+
n.cdnFileResolver,
|
|
3576
|
+
`/${n.interiorId}/${n.apartmentId}`
|
|
3563
3577
|
),
|
|
3564
3578
|
void 0,
|
|
3565
3579
|
!1
|
|
3566
3580
|
);
|
|
3567
3581
|
},
|
|
3568
3582
|
{ deep: !0 }
|
|
3569
|
-
),
|
|
3570
|
-
() =>
|
|
3583
|
+
), Y(
|
|
3584
|
+
() => n.currentCameraId,
|
|
3571
3585
|
(c) => {
|
|
3572
3586
|
o.value && (r.value = c, o.value.goToCamera(c, !0));
|
|
3573
3587
|
}
|
|
3574
|
-
),
|
|
3588
|
+
), Y(o, (c) => {
|
|
3575
3589
|
t("playerApiCallback", c);
|
|
3576
3590
|
const l = o.value.getCurrentCamera();
|
|
3577
3591
|
l && (r.value = l.id);
|
|
@@ -3597,21 +3611,21 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
3597
3611
|
return;
|
|
3598
3612
|
const h = await new e.Main(
|
|
3599
3613
|
ie(
|
|
3600
|
-
|
|
3601
|
-
`/${
|
|
3614
|
+
n.cdnFileResolver,
|
|
3615
|
+
`/${n.interiorId}/${n.apartmentId}`
|
|
3602
3616
|
),
|
|
3603
3617
|
"qpc",
|
|
3604
3618
|
C,
|
|
3605
3619
|
void 0,
|
|
3606
|
-
|
|
3620
|
+
n.currentCameraId
|
|
3607
3621
|
);
|
|
3608
3622
|
h && (h.handleWindowResize(), window.addEventListener(
|
|
3609
3623
|
"resize",
|
|
3610
3624
|
h.handleWindowResize.bind(h)
|
|
3611
|
-
), h.animate(), o.value = e.Main.getPlayerAPI(), o.value && o.value.setLookSensitivity(
|
|
3625
|
+
), h.animate(), o.value = e.Main.getPlayerAPI(), o.value && o.value.setLookSensitivity(n.mouseSensitivity));
|
|
3612
3626
|
}), je(() => {
|
|
3613
3627
|
o.value && o.value.destroy();
|
|
3614
|
-
}), (c, l) => (p(),
|
|
3628
|
+
}), (c, l) => (p(), F("div", io, [
|
|
3615
3629
|
s("div", ro, [
|
|
3616
3630
|
K(c.$slots, "slideshow-image", {}, void 0, !0),
|
|
3617
3631
|
s("div", uo, [
|
|
@@ -3661,14 +3675,14 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
3661
3675
|
floorLevels: { default: () => [] }
|
|
3662
3676
|
},
|
|
3663
3677
|
emits: ["level"],
|
|
3664
|
-
setup(u, { emit:
|
|
3665
|
-
const e = u,
|
|
3678
|
+
setup(u, { emit: a }) {
|
|
3679
|
+
const e = u, n = a, t = Be(be), o = T(() => {
|
|
3666
3680
|
const l = e.floorLevels;
|
|
3667
3681
|
return l.sort(), l;
|
|
3668
3682
|
}), r = T(() => o.value.indexOf(e.level) + 1 <= o.value.length / 2 ? "lower" : "upper"), i = T(() => r.value === "lower"), v = T(() => r.value === "upper");
|
|
3669
3683
|
function c() {
|
|
3670
3684
|
const l = e.level + 1;
|
|
3671
|
-
l >= o.value.length ?
|
|
3685
|
+
l >= o.value.length ? n("level", o.value[0]) : n("level", o.value[l]);
|
|
3672
3686
|
}
|
|
3673
3687
|
return (l, f) => {
|
|
3674
3688
|
const C = B("v-btn"), h = B("v-tooltip");
|
|
@@ -3684,7 +3698,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
3684
3698
|
icon: ""
|
|
3685
3699
|
}, m, { onClick: c }), {
|
|
3686
3700
|
default: b(() => [
|
|
3687
|
-
(p(),
|
|
3701
|
+
(p(), F("svg", ko, [
|
|
3688
3702
|
s("path", {
|
|
3689
3703
|
d: "M8.98034 10.3472L1.54055 5.8855L8.98034 1.42384L16.4201 5.8855L8.98034 10.3472Z",
|
|
3690
3704
|
fill: "white",
|
|
@@ -3719,11 +3733,11 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
3719
3733
|
selectedIndex: {}
|
|
3720
3734
|
},
|
|
3721
3735
|
emits: ["selectInterior"],
|
|
3722
|
-
setup(u, { emit:
|
|
3723
|
-
const e = u,
|
|
3736
|
+
setup(u, { emit: a }) {
|
|
3737
|
+
const e = u, n = a, t = Be(be);
|
|
3724
3738
|
return (o, r) => {
|
|
3725
3739
|
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");
|
|
3726
|
-
return p(),
|
|
3740
|
+
return p(), F("div", null, [
|
|
3727
3741
|
w(h, {
|
|
3728
3742
|
transition: "slide-x-reverse-transition",
|
|
3729
3743
|
location: "top end",
|
|
@@ -3747,10 +3761,10 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
3747
3761
|
default: b(() => [
|
|
3748
3762
|
w(C, { class: "interior-selector-list" }, {
|
|
3749
3763
|
default: b(() => [
|
|
3750
|
-
(p(!0),
|
|
3764
|
+
(p(!0), F(ce, null, me(e.availableArchetypes, (m, g) => (p(), V(f, {
|
|
3751
3765
|
density: "compact",
|
|
3752
3766
|
key: `at-menuitem-${g}`,
|
|
3753
|
-
onClick: (S) =>
|
|
3767
|
+
onClick: (S) => n("selectInterior", m.archetypeID),
|
|
3754
3768
|
active: g === o.selectedIndex,
|
|
3755
3769
|
class: "interior-selector-list-item"
|
|
3756
3770
|
}, {
|
|
@@ -3787,16 +3801,16 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
3787
3801
|
rotation: {}
|
|
3788
3802
|
},
|
|
3789
3803
|
setup(u) {
|
|
3790
|
-
const
|
|
3804
|
+
const a = u, e = d(Eo), n = d({
|
|
3791
3805
|
backgroundImage: `url(${Mo})`,
|
|
3792
3806
|
backgroundSize: "contain"
|
|
3793
3807
|
}), t = T(() => ({
|
|
3794
|
-
transform: `rotate(${-
|
|
3808
|
+
transform: `rotate(${-a.rotation + 180}deg)`
|
|
3795
3809
|
}));
|
|
3796
3810
|
return (o, r) => {
|
|
3797
3811
|
const i = B("v-img");
|
|
3798
|
-
return p(),
|
|
3799
|
-
style: se(
|
|
3812
|
+
return p(), F("div", {
|
|
3813
|
+
style: se(n.value),
|
|
3800
3814
|
class: "compass-wrapper"
|
|
3801
3815
|
}, [
|
|
3802
3816
|
w(i, {
|
|
@@ -3814,13 +3828,13 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
3814
3828
|
minutes: { default: 0 }
|
|
3815
3829
|
},
|
|
3816
3830
|
setup(u) {
|
|
3817
|
-
const
|
|
3818
|
-
function
|
|
3831
|
+
const a = u, e = T(() => [n(a.hours), ":", n(a.minutes)].join(""));
|
|
3832
|
+
function n(t) {
|
|
3819
3833
|
return ("0" + t).slice(-2);
|
|
3820
3834
|
}
|
|
3821
3835
|
return (t, o) => {
|
|
3822
3836
|
const r = B("v-img");
|
|
3823
|
-
return p(),
|
|
3837
|
+
return p(), F("div", Bo, [
|
|
3824
3838
|
s("div", Ro, [
|
|
3825
3839
|
w(r, {
|
|
3826
3840
|
src: ae(Vo),
|
|
@@ -3850,8 +3864,8 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
3850
3864
|
showStaticImage: { type: Boolean }
|
|
3851
3865
|
},
|
|
3852
3866
|
emits: ["toggle"],
|
|
3853
|
-
setup(u, { emit:
|
|
3854
|
-
const e = u,
|
|
3867
|
+
setup(u, { emit: a }) {
|
|
3868
|
+
const e = u, n = a, t = Be(be), o = T(() => {
|
|
3855
3869
|
let r = "virtualTour";
|
|
3856
3870
|
return e.showStaticImage || (r = "slideShow"), r;
|
|
3857
3871
|
});
|
|
@@ -3863,10 +3877,10 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
3863
3877
|
density: "comfortable",
|
|
3864
3878
|
elevation: "1",
|
|
3865
3879
|
icon: "",
|
|
3866
|
-
onClick: i[0] || (i[0] = (C) =>
|
|
3880
|
+
onClick: i[0] || (i[0] = (C) => n("toggle"))
|
|
3867
3881
|
}, f), {
|
|
3868
3882
|
default: b(() => [
|
|
3869
|
-
o.value === "virtualTour" ? (p(),
|
|
3883
|
+
o.value === "virtualTour" ? (p(), F("svg", Ho, Wo)) : (p(), V(v, { key: 1 }, {
|
|
3870
3884
|
default: b(() => [
|
|
3871
3885
|
ee("mdi-image-multiple")
|
|
3872
3886
|
]),
|
|
@@ -4416,8 +4430,8 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4416
4430
|
project: {}
|
|
4417
4431
|
},
|
|
4418
4432
|
emits: ["closeTutorial"],
|
|
4419
|
-
setup(u, { emit:
|
|
4420
|
-
const e = u,
|
|
4433
|
+
setup(u, { emit: a }) {
|
|
4434
|
+
const e = u, n = a, t = Be(be), o = d(!0), r = d(!1), i = T(() => [
|
|
4421
4435
|
/Android/i,
|
|
4422
4436
|
/webOS/i,
|
|
4423
4437
|
/iPhone/i,
|
|
@@ -4429,10 +4443,10 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4429
4443
|
const f = localStorage.getItem(
|
|
4430
4444
|
`${e.project}-dont-show-tutorial`
|
|
4431
4445
|
);
|
|
4432
|
-
return f &&
|
|
4446
|
+
return f && n("closeTutorial"), f;
|
|
4433
4447
|
});
|
|
4434
4448
|
function c() {
|
|
4435
|
-
r.value && l(), o.value = !1,
|
|
4449
|
+
r.value && l(), o.value = !1, n("closeTutorial");
|
|
4436
4450
|
}
|
|
4437
4451
|
function l() {
|
|
4438
4452
|
localStorage.setItem(`${e.project}-dont-show-tutorial`, "true");
|
|
@@ -4441,8 +4455,8 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4441
4455
|
const h = B("v-checkbox"), m = B("v-btn");
|
|
4442
4456
|
return p(), V(Le, { name: "fade-transition" }, {
|
|
4443
4457
|
default: b(() => [
|
|
4444
|
-
o.value && !v.value ? (p(),
|
|
4445
|
-
i.value ? U("", !0) : (p(),
|
|
4458
|
+
o.value && !v.value ? (p(), F("div", Go, [
|
|
4459
|
+
i.value ? U("", !0) : (p(), F("div", Qo, [
|
|
4446
4460
|
s("div", qo, [
|
|
4447
4461
|
s("div", Zo, [
|
|
4448
4462
|
Jo,
|
|
@@ -4464,7 +4478,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4464
4478
|
])
|
|
4465
4479
|
])
|
|
4466
4480
|
])),
|
|
4467
|
-
i.value ? (p(),
|
|
4481
|
+
i.value ? (p(), F("div", ul, [
|
|
4468
4482
|
s("div", cl, [
|
|
4469
4483
|
dl,
|
|
4470
4484
|
s("div", vl, Q(ae(t).getLabel("tapAndDragToLookAround")), 1)
|
|
@@ -4518,11 +4532,11 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4518
4532
|
initialSettings: {}
|
|
4519
4533
|
},
|
|
4520
4534
|
emits: ["updateSettings", "saveSettings"],
|
|
4521
|
-
setup(u, { emit:
|
|
4522
|
-
const e = u,
|
|
4535
|
+
setup(u, { emit: a }) {
|
|
4536
|
+
const e = u, n = a, t = d(
|
|
4523
4537
|
h(e.initialSettings)
|
|
4524
4538
|
);
|
|
4525
|
-
|
|
4539
|
+
Y(
|
|
4526
4540
|
t,
|
|
4527
4541
|
() => {
|
|
4528
4542
|
r();
|
|
@@ -4536,7 +4550,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4536
4550
|
return m;
|
|
4537
4551
|
});
|
|
4538
4552
|
function r() {
|
|
4539
|
-
|
|
4553
|
+
n("updateSettings", o.value);
|
|
4540
4554
|
}
|
|
4541
4555
|
function i() {
|
|
4542
4556
|
const m = document.createElement("a");
|
|
@@ -4547,10 +4561,10 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4547
4561
|
m.download = g, m.style.display = "none", document.body.appendChild(m), m.click(), document.body.removeChild(m);
|
|
4548
4562
|
}
|
|
4549
4563
|
function v() {
|
|
4550
|
-
|
|
4564
|
+
n("saveSettings", o.value);
|
|
4551
4565
|
}
|
|
4552
4566
|
function c() {
|
|
4553
|
-
t.value = h(),
|
|
4567
|
+
t.value = h(), n("updateSettings", o.value);
|
|
4554
4568
|
}
|
|
4555
4569
|
function l(m) {
|
|
4556
4570
|
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;
|
|
@@ -4661,17 +4675,17 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4661
4675
|
}
|
|
4662
4676
|
return (m, g) => {
|
|
4663
4677
|
const S = B("v-text-field"), A = B("v-slider"), y = B("v-checkbox"), O = B("v-btn"), M = B("v-select"), R = B("v-icon");
|
|
4664
|
-
return p(),
|
|
4678
|
+
return p(), F("div", Cl, [
|
|
4665
4679
|
s("form", Il, [
|
|
4666
4680
|
s("div", Al, [
|
|
4667
|
-
(p(!0),
|
|
4668
|
-
key:
|
|
4681
|
+
(p(!0), F(ce, null, me(t.value, (I, _, P) => (p(), F("div", {
|
|
4682
|
+
key: P,
|
|
4669
4683
|
"d-block": ""
|
|
4670
4684
|
}, [
|
|
4671
4685
|
I.type === "slider" ? (p(), V(A, {
|
|
4672
4686
|
key: 0,
|
|
4673
4687
|
modelValue: t.value[_].value,
|
|
4674
|
-
"onUpdate:modelValue": (
|
|
4688
|
+
"onUpdate:modelValue": (D) => t.value[_].value = D,
|
|
4675
4689
|
onChange: r,
|
|
4676
4690
|
max: I.max,
|
|
4677
4691
|
min: I.min,
|
|
@@ -4684,7 +4698,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4684
4698
|
s("div", null, [
|
|
4685
4699
|
w(S, {
|
|
4686
4700
|
modelValue: t.value[_].value,
|
|
4687
|
-
"onUpdate:modelValue": (
|
|
4701
|
+
"onUpdate:modelValue": (D) => t.value[_].value = D,
|
|
4688
4702
|
"hide-details": "",
|
|
4689
4703
|
dense: "",
|
|
4690
4704
|
outlined: "",
|
|
@@ -4702,7 +4716,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4702
4716
|
I.type === "boolean" ? (p(), V(y, {
|
|
4703
4717
|
key: 1,
|
|
4704
4718
|
modelValue: t.value[_].value,
|
|
4705
|
-
"onUpdate:modelValue": (
|
|
4719
|
+
"onUpdate:modelValue": (D) => t.value[_].value = D,
|
|
4706
4720
|
onChange: r
|
|
4707
4721
|
}, {
|
|
4708
4722
|
prepend: b(() => [
|
|
@@ -4713,7 +4727,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4713
4727
|
]),
|
|
4714
4728
|
_: 2
|
|
4715
4729
|
}, 1032, ["modelValue", "onUpdate:modelValue"])) : U("", !0),
|
|
4716
|
-
I.type === "color" ? (p(),
|
|
4730
|
+
I.type === "color" ? (p(), F("div", {
|
|
4717
4731
|
key: 2,
|
|
4718
4732
|
class: "d-flex",
|
|
4719
4733
|
max: I.max,
|
|
@@ -4723,7 +4737,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4723
4737
|
s("div", Fl, Q(I.label), 1),
|
|
4724
4738
|
s("div", Dl, [
|
|
4725
4739
|
ve(s("input", {
|
|
4726
|
-
"onUpdate:modelValue": (
|
|
4740
|
+
"onUpdate:modelValue": (D) => t.value[_].value = D,
|
|
4727
4741
|
type: "color",
|
|
4728
4742
|
onChange: r
|
|
4729
4743
|
}, null, 40, Ml), [
|
|
@@ -4733,7 +4747,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4733
4747
|
s("div", null, [
|
|
4734
4748
|
w(S, {
|
|
4735
4749
|
modelValue: t.value[_].value,
|
|
4736
|
-
"onUpdate:modelValue": (
|
|
4750
|
+
"onUpdate:modelValue": (D) => t.value[_].value = D,
|
|
4737
4751
|
"hide-details": "",
|
|
4738
4752
|
dense: "",
|
|
4739
4753
|
outlined: "",
|
|
@@ -4744,14 +4758,14 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4744
4758
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
4745
4759
|
])
|
|
4746
4760
|
], 8, xl)) : U("", !0),
|
|
4747
|
-
I.type === "lut" ? (p(),
|
|
4761
|
+
I.type === "lut" ? (p(), F("div", El, [
|
|
4748
4762
|
s("div", Tl, [
|
|
4749
4763
|
s("div", Vl, Q(I.label), 1),
|
|
4750
4764
|
s("div", null, [
|
|
4751
4765
|
w(O, {
|
|
4752
4766
|
class: "ml-2",
|
|
4753
4767
|
"x-small": "",
|
|
4754
|
-
onClick: (
|
|
4768
|
+
onClick: (D) => t.value[_].value = null
|
|
4755
4769
|
}, {
|
|
4756
4770
|
default: b(() => [
|
|
4757
4771
|
ee(" Clear Lut ")
|
|
@@ -4765,7 +4779,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4765
4779
|
s("div", null, [
|
|
4766
4780
|
w(M, {
|
|
4767
4781
|
modelValue: t.value[_].value,
|
|
4768
|
-
"onUpdate:modelValue": (
|
|
4782
|
+
"onUpdate:modelValue": (D) => t.value[_].value = D,
|
|
4769
4783
|
items: I.items,
|
|
4770
4784
|
"item-title": "title",
|
|
4771
4785
|
"item-value": "value",
|
|
@@ -4781,7 +4795,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4781
4795
|
s("div", null, [
|
|
4782
4796
|
w(S, {
|
|
4783
4797
|
modelValue: t.value[_].value,
|
|
4784
|
-
"onUpdate:modelValue": (
|
|
4798
|
+
"onUpdate:modelValue": (D) => t.value[_].value = D,
|
|
4785
4799
|
"hide-details": "",
|
|
4786
4800
|
dense: "",
|
|
4787
4801
|
type: "url",
|
|
@@ -4844,8 +4858,8 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4844
4858
|
}, Wl = { class: "moveable-footer" }, zl = /* @__PURE__ */ j({
|
|
4845
4859
|
__name: "VMoveable",
|
|
4846
4860
|
emits: ["close", "transform"],
|
|
4847
|
-
setup(u, { emit:
|
|
4848
|
-
const e =
|
|
4861
|
+
setup(u, { emit: a }) {
|
|
4862
|
+
const e = a, n = d("big");
|
|
4849
4863
|
de(() => {
|
|
4850
4864
|
t(document.getElementById("moveableDiv"));
|
|
4851
4865
|
});
|
|
@@ -4870,13 +4884,13 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4870
4884
|
}
|
|
4871
4885
|
}
|
|
4872
4886
|
function o() {
|
|
4873
|
-
|
|
4887
|
+
n.value === "big" ? n.value = "small" : n.value = "big";
|
|
4874
4888
|
}
|
|
4875
4889
|
return (r, i) => {
|
|
4876
4890
|
const v = B("v-btn");
|
|
4877
|
-
return p(),
|
|
4891
|
+
return p(), F("div", {
|
|
4878
4892
|
id: "moveableDiv",
|
|
4879
|
-
class: fe(["big d-flex justify-space-between flex-column align-center sizer",
|
|
4893
|
+
class: fe(["big d-flex justify-space-between flex-column align-center sizer", n.value])
|
|
4880
4894
|
}, [
|
|
4881
4895
|
w(v, {
|
|
4882
4896
|
class: "close-icon",
|
|
@@ -4920,11 +4934,11 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4920
4934
|
rotation: {}
|
|
4921
4935
|
},
|
|
4922
4936
|
setup(u) {
|
|
4923
|
-
return (
|
|
4937
|
+
return (a, e) => (p(), F("svg", Gl, [
|
|
4924
4938
|
Ql,
|
|
4925
4939
|
s("g", {
|
|
4926
4940
|
"transform-origin": "20 20",
|
|
4927
|
-
transform: `rotate(${45 +
|
|
4941
|
+
transform: `rotate(${45 + a.rotation})`
|
|
4928
4942
|
}, Jl, 8, ql)
|
|
4929
4943
|
]));
|
|
4930
4944
|
}
|
|
@@ -4939,23 +4953,23 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4939
4953
|
transformAngle: {}
|
|
4940
4954
|
},
|
|
4941
4955
|
setup(u) {
|
|
4942
|
-
const
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4956
|
+
const a = u, e = d(512), n = d(384), t = d(new Ve.Vector3()), o = d(new Ve.Object3D()), r = d({}), i = d(1), v = d(), c = T(() => a.allCameras), l = T(() => a.allCameras.find((_) => _.id === a.currentCamera)), f = T(() => a.rotation), C = T(() => new Ve.Vector3(
|
|
4957
|
+
a.storey.position.x,
|
|
4958
|
+
a.storey.position.y,
|
|
4959
|
+
a.storey.position.z
|
|
4946
4960
|
)), h = T(() => parseFloat(l.value.floor_vertical_position)), m = T(() => c.value.map((_) => {
|
|
4947
|
-
const
|
|
4948
|
-
Number(
|
|
4961
|
+
const P = _.uposition.split(","), D = new Ve.Vector3(
|
|
4962
|
+
Number(P[0]) - C.value.x,
|
|
4949
4963
|
0,
|
|
4950
|
-
Number(
|
|
4964
|
+
Number(P[2]) - C.value.z
|
|
4951
4965
|
);
|
|
4952
4966
|
return {
|
|
4953
4967
|
..._,
|
|
4954
|
-
...M(t.value,
|
|
4968
|
+
...M(t.value, D)
|
|
4955
4969
|
};
|
|
4956
|
-
})), g = T(() => `background-image: url(${
|
|
4970
|
+
})), g = T(() => `background-image: url(${a.backgroundImage});`), S = T(() => {
|
|
4957
4971
|
let _ = i.value > 1 ? 1 : i.value;
|
|
4958
|
-
return _ < 0.8 && (_ = 0.4), `scale: ${_ > 1 ? 1 : _}; transform: rotate(${
|
|
4972
|
+
return _ < 0.8 && (_ = 0.4), `scale: ${_ > 1 ? 1 : _}; transform: rotate(${a.transformAngle}deg);`;
|
|
4959
4973
|
});
|
|
4960
4974
|
de(() => {
|
|
4961
4975
|
R(), y(), I();
|
|
@@ -4970,7 +4984,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4970
4984
|
return Ve.MathUtils.degToRad(_);
|
|
4971
4985
|
}
|
|
4972
4986
|
function y() {
|
|
4973
|
-
o.value.rotation.x = 180, o.value.rotation.y =
|
|
4987
|
+
o.value.rotation.x = 180, o.value.rotation.y = a.storey.rotation.y * -1, r.value = {
|
|
4974
4988
|
transform: `rotateZ(${o.value.rotation.y}deg) rotateX(${o.value.rotation.x}deg)`
|
|
4975
4989
|
};
|
|
4976
4990
|
}
|
|
@@ -4980,29 +4994,29 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
4980
4994
|
left: `${Math.abs(_.left)}%`
|
|
4981
4995
|
};
|
|
4982
4996
|
}
|
|
4983
|
-
function M(_,
|
|
4984
|
-
var
|
|
4985
|
-
const H =
|
|
4997
|
+
function M(_, P) {
|
|
4998
|
+
var D = new Ve.Vector3();
|
|
4999
|
+
const H = D.subVectors(_, P);
|
|
4986
5000
|
return {
|
|
4987
5001
|
relativePosition: H,
|
|
4988
5002
|
left: H.x / e.value * 100,
|
|
4989
|
-
top: H.z /
|
|
5003
|
+
top: H.z / n.value * 100
|
|
4990
5004
|
};
|
|
4991
5005
|
}
|
|
4992
5006
|
function R() {
|
|
4993
|
-
const _ =
|
|
4994
|
-
|
|
4995
|
-
const
|
|
5007
|
+
const _ = a.storey.position.y - h.value;
|
|
5008
|
+
n.value = 2 * (_ * Math.tan(A(a.storey.fovY / 2))), e.value = 512 / 384 * n.value;
|
|
5009
|
+
const P = n.value / 2, D = e.value / 2, H = new Ve.Vector3(D * -1, 0, P * -1);
|
|
4996
5010
|
t.value = H;
|
|
4997
5011
|
}
|
|
4998
5012
|
function I() {
|
|
4999
5013
|
const _ = document.getElementById("moveableDiv");
|
|
5000
5014
|
if (!_)
|
|
5001
5015
|
return;
|
|
5002
|
-
const
|
|
5003
|
-
_.offsetHeight > _.offsetWidth ? i.value =
|
|
5016
|
+
const P = _.offsetHeight / 384 * 0.8, D = _.offsetWidth / 512 * 0.8;
|
|
5017
|
+
_.offsetHeight > _.offsetWidth ? i.value = D * 0.5 : i.value = P * 0.9;
|
|
5004
5018
|
}
|
|
5005
|
-
return (_,
|
|
5019
|
+
return (_, P) => (p(), F("div", Kl, [
|
|
5006
5020
|
s("div", es, [
|
|
5007
5021
|
s("div", {
|
|
5008
5022
|
class: "web-minimap",
|
|
@@ -5016,19 +5030,19 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5016
5030
|
class: "center-pivot",
|
|
5017
5031
|
style: se(r.value)
|
|
5018
5032
|
}, [
|
|
5019
|
-
(p(!0),
|
|
5020
|
-
key:
|
|
5033
|
+
(p(!0), F(ce, null, me(m.value, (D) => (p(), F("div", {
|
|
5034
|
+
key: D.id
|
|
5021
5035
|
}, [
|
|
5022
|
-
l.value.floorLevel ===
|
|
5036
|
+
l.value.floorLevel === D.floorLevel ? (p(), F("div", {
|
|
5023
5037
|
key: 0,
|
|
5024
5038
|
class: "single-camera-marker",
|
|
5025
|
-
style: se(O(
|
|
5039
|
+
style: se(O(D))
|
|
5026
5040
|
}, null, 4)) : U("", !0),
|
|
5027
|
-
l.value.id ===
|
|
5041
|
+
l.value.id === D.id && a.rotation !== null ? (p(), V(Xl, {
|
|
5028
5042
|
key: 1,
|
|
5029
5043
|
class: "rotation-marker-component",
|
|
5030
5044
|
rotation: f.value,
|
|
5031
|
-
style: se({ ...O(
|
|
5045
|
+
style: se({ ...O(D) })
|
|
5032
5046
|
}, null, 8, ["rotation", "style"])) : U("", !0)
|
|
5033
5047
|
]))), 128))
|
|
5034
5048
|
], 4)
|
|
@@ -5044,10 +5058,10 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5044
5058
|
transformAngle: {}
|
|
5045
5059
|
},
|
|
5046
5060
|
setup(u) {
|
|
5047
|
-
const
|
|
5048
|
-
return (
|
|
5061
|
+
const a = u, e = T(() => a.rotation + a.transformAngle - 90);
|
|
5062
|
+
return (n, t) => (p(), F("div", {
|
|
5049
5063
|
class: "minimap-compass",
|
|
5050
|
-
style: se({ scale:
|
|
5064
|
+
style: se({ scale: n.scale })
|
|
5051
5065
|
}, [
|
|
5052
5066
|
w(Ke, {
|
|
5053
5067
|
class: "north-indicator",
|
|
@@ -5067,8 +5081,8 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5067
5081
|
level: {}
|
|
5068
5082
|
},
|
|
5069
5083
|
emits: ["setBackgroundImage"],
|
|
5070
|
-
setup(u, { emit:
|
|
5071
|
-
const e = u,
|
|
5084
|
+
setup(u, { emit: a }) {
|
|
5085
|
+
const e = u, n = a, 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(() => {
|
|
5072
5086
|
if (c.value.sunsimFilesTimeStamps[t.value]) {
|
|
5073
5087
|
const A = c.value.sunsimFilesTimeStamps[t.value].split(" ");
|
|
5074
5088
|
return `${A[0]} ${A[1]}`;
|
|
@@ -5080,14 +5094,14 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5080
5094
|
c.value.sunsimFiles[t.value]
|
|
5081
5095
|
), r.value = !1;
|
|
5082
5096
|
const A = await h(e.minimapJson.storeys);
|
|
5083
|
-
v.value = A, o.value = !1,
|
|
5084
|
-
}),
|
|
5097
|
+
v.value = A, o.value = !1, n("setBackgroundImage", C(e.level, t.value));
|
|
5098
|
+
}), Y(t, () => {
|
|
5085
5099
|
const A = C(e.level, t.value);
|
|
5086
|
-
|
|
5087
|
-
}),
|
|
5100
|
+
n("setBackgroundImage", A);
|
|
5101
|
+
}), Y(
|
|
5088
5102
|
() => e.level,
|
|
5089
5103
|
() => {
|
|
5090
|
-
|
|
5104
|
+
n("setBackgroundImage", C(e.level, t.value));
|
|
5091
5105
|
},
|
|
5092
5106
|
{ immediate: !0 }
|
|
5093
5107
|
);
|
|
@@ -5101,8 +5115,8 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5101
5115
|
for (let R = 0; R < M.length; R++) {
|
|
5102
5116
|
const I = M[R];
|
|
5103
5117
|
try {
|
|
5104
|
-
const _ = I,
|
|
5105
|
-
y.set(
|
|
5118
|
+
const _ = I, P = I.split("."), D = await m(_);
|
|
5119
|
+
y.set(P[0], D);
|
|
5106
5120
|
} catch {
|
|
5107
5121
|
continue;
|
|
5108
5122
|
}
|
|
@@ -5133,7 +5147,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5133
5147
|
}
|
|
5134
5148
|
return (A, y) => {
|
|
5135
5149
|
const O = B("v-progress-linear"), M = B("v-icon"), R = B("v-slider");
|
|
5136
|
-
return p(),
|
|
5150
|
+
return p(), F("div", ls, [
|
|
5137
5151
|
s("div", ss, [
|
|
5138
5152
|
s("div", is, [
|
|
5139
5153
|
o.value ? (p(), V(O, {
|
|
@@ -5166,7 +5180,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5166
5180
|
_: 1
|
|
5167
5181
|
}, 8, ["modelValue"]))
|
|
5168
5182
|
]),
|
|
5169
|
-
o.value ? U("", !0) : (p(),
|
|
5183
|
+
o.value ? U("", !0) : (p(), F("div", rs, Q(f.value) + " " + Q(l.value), 1))
|
|
5170
5184
|
])
|
|
5171
5185
|
]);
|
|
5172
5186
|
};
|
|
@@ -5182,9 +5196,9 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5182
5196
|
rotation: {}
|
|
5183
5197
|
},
|
|
5184
5198
|
emits: ["close"],
|
|
5185
|
-
setup(u, { emit:
|
|
5186
|
-
const e = u,
|
|
5187
|
-
|
|
5199
|
+
setup(u, { emit: a }) {
|
|
5200
|
+
const e = u, n = a, t = d(), o = d(0), r = T(() => e.minimapJson.storeys[e.level]);
|
|
5201
|
+
Y(
|
|
5188
5202
|
r,
|
|
5189
5203
|
() => {
|
|
5190
5204
|
t.value = r.value.defaultSunsimFile ? `/${e.apartmentJson.type}/${e.apartmentJson.id}/minimap/sunsim0_13.jpg` : `/${e.apartmentJson.type}/${e.apartmentJson.id}/minimap/${r.value.defaultSunsimFile}`;
|
|
@@ -5202,7 +5216,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5202
5216
|
o.value = o.value + 90;
|
|
5203
5217
|
}
|
|
5204
5218
|
return (l, f) => (p(), V(Nl, {
|
|
5205
|
-
onClose: f[0] || (f[0] = (C) =>
|
|
5219
|
+
onClose: f[0] || (f[0] = (C) => n("close")),
|
|
5206
5220
|
onTransform: c
|
|
5207
5221
|
}, {
|
|
5208
5222
|
body: b(() => [
|
|
@@ -5240,15 +5254,15 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5240
5254
|
}, ms = /* @__PURE__ */ j({
|
|
5241
5255
|
__name: "VDisclaimer",
|
|
5242
5256
|
setup(u) {
|
|
5243
|
-
const
|
|
5244
|
-
return (
|
|
5257
|
+
const a = Be(be), e = d(!0);
|
|
5258
|
+
return (n, t) => (p(), V(Le, { name: "fade-transition" }, {
|
|
5245
5259
|
default: b(() => [
|
|
5246
|
-
e.value ? (p(),
|
|
5247
|
-
ee(Q(ae(
|
|
5260
|
+
e.value ? (p(), F("div", vs, [
|
|
5261
|
+
ee(Q(ae(a).getLabel("allIllustrationsAreIndicativeDeviationsMayOccur")) + " ", 1),
|
|
5248
5262
|
s("span", {
|
|
5249
5263
|
onClick: t[0] || (t[0] = (o) => e.value = !1),
|
|
5250
5264
|
class: "link-text text-decoration-underline"
|
|
5251
|
-
}, Q(ae(
|
|
5265
|
+
}, Q(ae(a).getLabel("iUnderstand")), 1)
|
|
5252
5266
|
])) : U("", !0)
|
|
5253
5267
|
]),
|
|
5254
5268
|
_: 1
|
|
@@ -5261,8 +5275,8 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5261
5275
|
active: {}
|
|
5262
5276
|
},
|
|
5263
5277
|
emits: ["previous", "next", "goto"],
|
|
5264
|
-
setup(u, { emit:
|
|
5265
|
-
const e = u,
|
|
5278
|
+
setup(u, { emit: a }) {
|
|
5279
|
+
const e = u, n = a, t = d(0), o = T({
|
|
5266
5280
|
get() {
|
|
5267
5281
|
return e.active;
|
|
5268
5282
|
},
|
|
@@ -5280,21 +5294,21 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5280
5294
|
function i(c) {
|
|
5281
5295
|
switch (c.keyCode) {
|
|
5282
5296
|
case c.keyCode === fs:
|
|
5283
|
-
|
|
5297
|
+
n("previous");
|
|
5284
5298
|
break;
|
|
5285
5299
|
case c.keyCode === hs:
|
|
5286
|
-
|
|
5300
|
+
n("next");
|
|
5287
5301
|
break;
|
|
5288
5302
|
default:
|
|
5289
5303
|
return;
|
|
5290
5304
|
}
|
|
5291
5305
|
}
|
|
5292
5306
|
function v(c, l) {
|
|
5293
|
-
l(),
|
|
5307
|
+
l(), n("goto", c);
|
|
5294
5308
|
}
|
|
5295
5309
|
return (c, l) => {
|
|
5296
5310
|
const f = B("v-btn"), C = B("v-img"), h = B("v-card"), m = B("v-slide-group-item"), g = B("v-slide-group");
|
|
5297
|
-
return p(),
|
|
5311
|
+
return p(), F("div", {
|
|
5298
5312
|
class: fe({
|
|
5299
5313
|
mobileWaypointWrapper: r.value,
|
|
5300
5314
|
desktopWaypointWrapper: !r.value,
|
|
@@ -5317,7 +5331,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5317
5331
|
icon: "mdi-chevron-left",
|
|
5318
5332
|
varient: "tonal",
|
|
5319
5333
|
size: "small",
|
|
5320
|
-
onClick: l[0] || (l[0] = (S) =>
|
|
5334
|
+
onClick: l[0] || (l[0] = (S) => n("previous"))
|
|
5321
5335
|
}, null, 8, ["class"])
|
|
5322
5336
|
]),
|
|
5323
5337
|
next: b(() => [
|
|
@@ -5326,11 +5340,11 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5326
5340
|
icon: "mdi-chevron-right",
|
|
5327
5341
|
varient: "tonal",
|
|
5328
5342
|
size: "small",
|
|
5329
|
-
onClick: l[1] || (l[1] = (S) =>
|
|
5343
|
+
onClick: l[1] || (l[1] = (S) => n("next"))
|
|
5330
5344
|
}, null, 8, ["class"])
|
|
5331
5345
|
]),
|
|
5332
5346
|
default: b(() => [
|
|
5333
|
-
(p(!0),
|
|
5347
|
+
(p(!0), F(ce, null, me(c.thumbnails, (S) => (p(), V(m, {
|
|
5334
5348
|
key: S.id
|
|
5335
5349
|
}, {
|
|
5336
5350
|
default: b(({ toggle: A, selectedClass: y }) => [
|
|
@@ -5369,7 +5383,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5369
5383
|
}, _s = /* @__PURE__ */ j({
|
|
5370
5384
|
__name: "VSocialShare",
|
|
5371
5385
|
setup(u) {
|
|
5372
|
-
const
|
|
5386
|
+
const a = Be(be), e = d(!1), n = d(location.href);
|
|
5373
5387
|
function t() {
|
|
5374
5388
|
return window.open(
|
|
5375
5389
|
"https://www.facebook.com/sharer/sharer.php?u=" + encodeURIComponent(location.href),
|
|
@@ -5396,7 +5410,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5396
5410
|
}
|
|
5397
5411
|
return (v, c) => {
|
|
5398
5412
|
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");
|
|
5399
|
-
return p(),
|
|
5413
|
+
return p(), F("div", null, [
|
|
5400
5414
|
w(f, {
|
|
5401
5415
|
elevation: "2",
|
|
5402
5416
|
top: "",
|
|
@@ -5411,7 +5425,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5411
5425
|
}, y), null, 16)
|
|
5412
5426
|
]),
|
|
5413
5427
|
default: b(() => [
|
|
5414
|
-
s("span", null, Q(ae(
|
|
5428
|
+
s("span", null, Q(ae(a).getLabel("share")), 1)
|
|
5415
5429
|
]),
|
|
5416
5430
|
_: 1
|
|
5417
5431
|
}),
|
|
@@ -5433,7 +5447,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5433
5447
|
}),
|
|
5434
5448
|
w(C, null, {
|
|
5435
5449
|
default: b(() => [
|
|
5436
|
-
ee(Q(ae(
|
|
5450
|
+
ee(Q(ae(a).getLabel("share")), 1)
|
|
5437
5451
|
]),
|
|
5438
5452
|
_: 1
|
|
5439
5453
|
}),
|
|
@@ -5454,7 +5468,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5454
5468
|
}, y, { onClick: t }), null, 16)
|
|
5455
5469
|
]),
|
|
5456
5470
|
default: b(() => [
|
|
5457
|
-
s("span", null, Q(ae(
|
|
5471
|
+
s("span", null, Q(ae(a).getLabel("shareToFacebook")), 1)
|
|
5458
5472
|
]),
|
|
5459
5473
|
_: 1
|
|
5460
5474
|
}),
|
|
@@ -5468,7 +5482,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5468
5482
|
}, y, { onClick: r }), null, 16)
|
|
5469
5483
|
]),
|
|
5470
5484
|
default: b(() => [
|
|
5471
|
-
s("span", null, Q(ae(
|
|
5485
|
+
s("span", null, Q(ae(a).getLabel("shareToLinkedin")), 1)
|
|
5472
5486
|
]),
|
|
5473
5487
|
_: 1
|
|
5474
5488
|
}),
|
|
@@ -5482,7 +5496,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5482
5496
|
}, y, { onClick: o }), null, 16)
|
|
5483
5497
|
]),
|
|
5484
5498
|
default: b(() => [
|
|
5485
|
-
s("span", null, Q(ae(
|
|
5499
|
+
s("span", null, Q(ae(a).getLabel("shareToTwitter")), 1)
|
|
5486
5500
|
]),
|
|
5487
5501
|
_: 1
|
|
5488
5502
|
}),
|
|
@@ -5494,11 +5508,11 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5494
5508
|
light: "",
|
|
5495
5509
|
icon: "mdi-email",
|
|
5496
5510
|
link: "",
|
|
5497
|
-
href: `mailto:?body=${
|
|
5511
|
+
href: `mailto:?body=${n.value}`
|
|
5498
5512
|
}, y), null, 16, ["href"])
|
|
5499
5513
|
]),
|
|
5500
5514
|
default: b(() => [
|
|
5501
|
-
s("span", null, Q(ae(
|
|
5515
|
+
s("span", null, Q(ae(a).getLabel("shareViaEmail")), 1)
|
|
5502
5516
|
]),
|
|
5503
5517
|
_: 1
|
|
5504
5518
|
}),
|
|
@@ -5513,7 +5527,7 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5513
5527
|
}, y), null, 16)
|
|
5514
5528
|
]),
|
|
5515
5529
|
default: b(() => [
|
|
5516
|
-
s("span", null, Q(ae(
|
|
5530
|
+
s("span", null, Q(ae(a).getLabel("copyLink")), 1)
|
|
5517
5531
|
]),
|
|
5518
5532
|
_: 1
|
|
5519
5533
|
}),
|
|
@@ -5538,10 +5552,10 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5538
5552
|
aspectRatio: { default: "wide" }
|
|
5539
5553
|
},
|
|
5540
5554
|
setup(u) {
|
|
5541
|
-
const
|
|
5542
|
-
return (
|
|
5555
|
+
const a = u, e = T(() => ({ "background-image": `url("${encodeURI(a.image)}")` }));
|
|
5556
|
+
return (n, t) => (p(), F("div", bs, [
|
|
5543
5557
|
s("div", {
|
|
5544
|
-
class: fe(["img-div", [
|
|
5558
|
+
class: fe(["img-div", [n.aspectRatio]]),
|
|
5545
5559
|
style: se(e.value)
|
|
5546
5560
|
}, null, 6)
|
|
5547
5561
|
]));
|
|
@@ -5555,15 +5569,15 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5555
5569
|
isFullScreen: { type: Boolean }
|
|
5556
5570
|
},
|
|
5557
5571
|
emits: ["toggleFullscreen"],
|
|
5558
|
-
setup(u, { emit:
|
|
5559
|
-
const e =
|
|
5560
|
-
return (
|
|
5572
|
+
setup(u, { emit: a }) {
|
|
5573
|
+
const e = a;
|
|
5574
|
+
return (n, t) => {
|
|
5561
5575
|
const o = B("v-btn");
|
|
5562
|
-
return p(),
|
|
5576
|
+
return p(), F("div", Cs, [
|
|
5563
5577
|
w(o, {
|
|
5564
5578
|
density: "comfortable",
|
|
5565
5579
|
elevation: "3",
|
|
5566
|
-
icon:
|
|
5580
|
+
icon: n.isFullScreen ? "mdi-fullscreen-exit" : "mdi-fullscreen",
|
|
5567
5581
|
onClick: t[0] || (t[0] = (r) => e("toggleFullscreen"))
|
|
5568
5582
|
}, null, 8, ["icon"])
|
|
5569
5583
|
]);
|
|
@@ -5571,43 +5585,43 @@ const io = { id: "player-wrapper" }, ro = { id: "player-sizer" }, uo = {
|
|
|
5571
5585
|
}
|
|
5572
5586
|
});
|
|
5573
5587
|
class Lt {
|
|
5574
|
-
constructor(
|
|
5588
|
+
constructor(a, e) {
|
|
5575
5589
|
ne(this, "_doc");
|
|
5576
5590
|
ne(this, "_elemId");
|
|
5577
5591
|
ne(this, "_state");
|
|
5578
|
-
this._doc =
|
|
5592
|
+
this._doc = a, this._elemId = e, this._state = { isActive: !1 };
|
|
5579
5593
|
}
|
|
5580
5594
|
get isActive() {
|
|
5581
5595
|
return this._state.isActive;
|
|
5582
5596
|
}
|
|
5583
5597
|
setup() {
|
|
5584
|
-
const
|
|
5598
|
+
const a = [
|
|
5585
5599
|
"fullscreenchange",
|
|
5586
5600
|
"webkitfullscreenchange",
|
|
5587
5601
|
"mozfullscreenchange",
|
|
5588
5602
|
"msfullscreenchange"
|
|
5589
5603
|
], e = this._getElement();
|
|
5590
|
-
|
|
5591
|
-
e.addEventListener(
|
|
5604
|
+
a.forEach((n) => {
|
|
5605
|
+
e.addEventListener(n, this._toggle.bind(this), !1);
|
|
5592
5606
|
});
|
|
5593
5607
|
}
|
|
5594
5608
|
toggle() {
|
|
5595
5609
|
this.isActive ? this._exit() : this._enter();
|
|
5596
5610
|
}
|
|
5597
5611
|
_enter() {
|
|
5598
|
-
const
|
|
5599
|
-
e && e.apply(
|
|
5612
|
+
const a = this._getElement(), e = a.requestFullscreen || a.webkitRequestFullscreen || a.mozRequestFullscreen || a.msRequestFullscreen;
|
|
5613
|
+
e && e.apply(a);
|
|
5600
5614
|
}
|
|
5601
5615
|
_exit() {
|
|
5602
|
-
const
|
|
5603
|
-
|
|
5616
|
+
const a = this._doc.exitFullscreen || this._doc.webkitExitFullscreen || this._doc.mozExitFullscreen || this._doc.document.msExitFullscreen;
|
|
5617
|
+
a && a.apply(document);
|
|
5604
5618
|
}
|
|
5605
5619
|
_getElement() {
|
|
5606
5620
|
return this._doc.getElementById(this._elemId);
|
|
5607
5621
|
}
|
|
5608
5622
|
_toggle() {
|
|
5609
|
-
const
|
|
5610
|
-
this._state.isActive =
|
|
5623
|
+
const a = !!(this._doc.fullscreenElement || this._doc.webkitFullscreenElement || this._doc.mozFullscreenElement || this._doc.msFullscreenElement);
|
|
5624
|
+
this._state.isActive = a;
|
|
5611
5625
|
}
|
|
5612
5626
|
}
|
|
5613
5627
|
const Is = {
|
|
@@ -5664,9 +5678,9 @@ const Is = {
|
|
|
5664
5678
|
dynamicMarkers: { default: null }
|
|
5665
5679
|
},
|
|
5666
5680
|
emits: ["onSnapshot", "saveSettings", "onInteriorUpdate", "onCameraUpdate", "onError"],
|
|
5667
|
-
setup(u, { expose:
|
|
5668
|
-
const
|
|
5669
|
-
|
|
5681
|
+
setup(u, { expose: a, emit: e }) {
|
|
5682
|
+
const n = u, t = e;
|
|
5683
|
+
a({
|
|
5670
5684
|
updateSelectedInterior: ze,
|
|
5671
5685
|
takeSnapshot: _e,
|
|
5672
5686
|
setCurrentCamera: Ce
|
|
@@ -5682,7 +5696,7 @@ const Is = {
|
|
|
5682
5696
|
return G = G.sort(), G;
|
|
5683
5697
|
} else
|
|
5684
5698
|
return [];
|
|
5685
|
-
}),
|
|
5699
|
+
}), P = T(() => {
|
|
5686
5700
|
let k = 0;
|
|
5687
5701
|
if (v.value) {
|
|
5688
5702
|
const G = v.value.cameras.map(
|
|
@@ -5696,40 +5710,40 @@ const Is = {
|
|
|
5696
5710
|
pe !== -1 && (k = pe);
|
|
5697
5711
|
}
|
|
5698
5712
|
return k;
|
|
5699
|
-
}),
|
|
5713
|
+
}), D = T(() => E.value.findIndex(
|
|
5700
5714
|
(k) => k.archetypeID === h.value
|
|
5701
5715
|
)), H = T(() => c.value ? c.value.cameras.map((k) => ({
|
|
5702
5716
|
...k,
|
|
5703
5717
|
thumbnailUrl: Ue(
|
|
5704
|
-
`/${h.value}/${
|
|
5718
|
+
`/${h.value}/${n.apartmentId}/thumbs/200/${k.id}.jpg`
|
|
5705
5719
|
),
|
|
5706
5720
|
imageUrl: Ue(
|
|
5707
|
-
`/${h.value}/${
|
|
5721
|
+
`/${h.value}/${n.apartmentId}/images/1600/${k.id}.jpg`
|
|
5708
5722
|
)
|
|
5709
5723
|
})) : []), L = T(() => !H.value || !H.value[C.value] ? "" : H.value[C.value].imageUrl), E = T(() => {
|
|
5710
5724
|
let k = [];
|
|
5711
|
-
return i.value && (k = i.value.archetypes),
|
|
5712
|
-
(G) =>
|
|
5725
|
+
return i.value && (k = i.value.archetypes), n.validInteriorIds.length ? k.filter(
|
|
5726
|
+
(G) => n.validInteriorIds.includes(G.archetypeID)
|
|
5713
5727
|
) : k;
|
|
5714
5728
|
}), z = T(() => c.value ? E.value.map((k) => ({
|
|
5715
5729
|
...k,
|
|
5716
5730
|
url: Ue(
|
|
5717
|
-
`/${k.archetypeID}/${
|
|
5731
|
+
`/${k.archetypeID}/${n.apartmentId}/thumbs/200/${H.value[C.value].id}.jpg`
|
|
5718
5732
|
)
|
|
5719
5733
|
})) : []), W = T(() => {
|
|
5720
5734
|
if (l.value)
|
|
5721
|
-
return l.value.storeys[
|
|
5722
|
-
}), ue = T(() => v.value && v.value.timeInHours),
|
|
5723
|
-
if (v.value && v.value.timeInHours &&
|
|
5735
|
+
return l.value.storeys[P.value];
|
|
5736
|
+
}), ue = T(() => v.value && v.value.timeInHours), x = T(() => {
|
|
5737
|
+
if (v.value && v.value.timeInHours && n.showTimeOfDay)
|
|
5724
5738
|
return Dt(v.value.timeInHours);
|
|
5725
5739
|
});
|
|
5726
5740
|
Ze(
|
|
5727
5741
|
be,
|
|
5728
|
-
|
|
5729
|
-
),
|
|
5742
|
+
n.i18nConfig ? new xe(n.i18nConfig) : new xe()
|
|
5743
|
+
), Y([() => n.cdnFileResolver], async () => {
|
|
5730
5744
|
await $(), te(), await q();
|
|
5731
|
-
}),
|
|
5732
|
-
() =>
|
|
5745
|
+
}), Y(
|
|
5746
|
+
() => n.defaultViewMode,
|
|
5733
5747
|
(k) => {
|
|
5734
5748
|
k === "virtualTour" && (O.value = !1), k === "slideShow" && (O.value = !0, R.value = !0);
|
|
5735
5749
|
},
|
|
@@ -5747,22 +5761,22 @@ const Is = {
|
|
|
5747
5761
|
async function q() {
|
|
5748
5762
|
if (v.value = await Ae(
|
|
5749
5763
|
h.value,
|
|
5750
|
-
|
|
5764
|
+
n.apartmentId
|
|
5751
5765
|
), v.value && (m.value = v.value.cameras.find(() => !0).id), c.value = await Fe(
|
|
5752
5766
|
h.value,
|
|
5753
|
-
|
|
5767
|
+
n.apartmentId
|
|
5754
5768
|
), c.value) {
|
|
5755
|
-
let k =
|
|
5769
|
+
let k = n.defaultWaypointIndex !== null ? n.defaultWaypointIndex : 0;
|
|
5756
5770
|
C.value = k, m.value = c.value.cameras[k].id, g.value = c.value.cameras[k].id;
|
|
5757
5771
|
}
|
|
5758
|
-
|
|
5772
|
+
n.showMiniMap && (l.value = await De(
|
|
5759
5773
|
h.value,
|
|
5760
|
-
|
|
5774
|
+
n.apartmentId
|
|
5761
5775
|
));
|
|
5762
5776
|
}
|
|
5763
5777
|
function te() {
|
|
5764
|
-
let k =
|
|
5765
|
-
k || (k = i.value.defaultArchetypeID),
|
|
5778
|
+
let k = n.defaultInteriorId;
|
|
5779
|
+
k || (k = i.value.defaultArchetypeID), n.validInteriorIds.length && !n.validInteriorIds.includes(k) && (k = n.validInteriorIds[0]), k || (k = i.value.archetypes[0].archetypeID), h.value = k;
|
|
5766
5780
|
}
|
|
5767
5781
|
function re() {
|
|
5768
5782
|
const k = document.getElementById("main-canvas");
|
|
@@ -5795,7 +5809,7 @@ const Is = {
|
|
|
5795
5809
|
} catch (k) {
|
|
5796
5810
|
console.error(
|
|
5797
5811
|
"Error loading config.json - ",
|
|
5798
|
-
ie(
|
|
5812
|
+
ie(n.cdnFileResolver, "/config.json"),
|
|
5799
5813
|
k
|
|
5800
5814
|
);
|
|
5801
5815
|
return;
|
|
@@ -5874,7 +5888,7 @@ const Is = {
|
|
|
5874
5888
|
function le(k, G) {
|
|
5875
5889
|
}
|
|
5876
5890
|
function Ne(k) {
|
|
5877
|
-
f.value = k, f.value && (
|
|
5891
|
+
f.value = k, f.value && (n.playerSettings && f.value.updateSettings(n.playerSettings), n.hasMarkersJson ? f.value.loadMarkersJson() : n.dynamicMarkers && f.value.loadDynamicMarkers(n.dynamicMarkers));
|
|
5878
5892
|
}
|
|
5879
5893
|
function Te() {
|
|
5880
5894
|
I.value.toggle(), window.scrollTo({ top: 150, behavior: "smooth" });
|
|
@@ -5891,8 +5905,8 @@ const Is = {
|
|
|
5891
5905
|
return t("onSnapshot", He, Mt), He;
|
|
5892
5906
|
}
|
|
5893
5907
|
function Ue(k) {
|
|
5894
|
-
let G = ie(
|
|
5895
|
-
return
|
|
5908
|
+
let G = ie(n.cdnFileResolver, k);
|
|
5909
|
+
return n.adminMode && (G = G + `?v=${Date.now()}`), G;
|
|
5896
5910
|
}
|
|
5897
5911
|
async function Ge(k) {
|
|
5898
5912
|
const G = Ue(k);
|
|
@@ -5919,22 +5933,22 @@ const Is = {
|
|
|
5919
5933
|
)), ft = T(() => it.value ? "platform-mobile" : "platform-desktop");
|
|
5920
5934
|
return (k, G) => {
|
|
5921
5935
|
const X = B("v-btn");
|
|
5922
|
-
return p(),
|
|
5936
|
+
return p(), F("div", {
|
|
5923
5937
|
class: fe(["virtual-tour-wrapper", [ft.value]])
|
|
5924
5938
|
}, [
|
|
5925
|
-
r.value ? (p(),
|
|
5939
|
+
r.value ? (p(), F("div", Is, "Error loading the player!!")) : U("", !0),
|
|
5926
5940
|
s("div", As, [
|
|
5927
5941
|
!I.value.isActive && l.value && g.value && W.value && h.value && M.value ? (p(), V(gt, {
|
|
5928
5942
|
key: 0,
|
|
5929
5943
|
"cdn-file-resolver": k.cdnFileResolver,
|
|
5930
5944
|
"apartment-json": v.value,
|
|
5931
|
-
level:
|
|
5945
|
+
level: P.value,
|
|
5932
5946
|
"minimap-json": l.value,
|
|
5933
5947
|
rotation: S.value,
|
|
5934
5948
|
"current-camera": g.value,
|
|
5935
5949
|
onClose: G[0] || (G[0] = (pe) => M.value = !1)
|
|
5936
5950
|
}, null, 8, ["cdn-file-resolver", "apartment-json", "level", "minimap-json", "rotation", "current-camera"])) : U("", !0),
|
|
5937
|
-
h.value && m.value ? (p(),
|
|
5951
|
+
h.value && m.value ? (p(), F("div", {
|
|
5938
5952
|
key: 1,
|
|
5939
5953
|
class: fe(["v-player", [ft.value]])
|
|
5940
5954
|
}, [
|
|
@@ -5946,7 +5960,7 @@ const Is = {
|
|
|
5946
5960
|
"current-camera-id": m.value,
|
|
5947
5961
|
"mouse-sensitivity": k.mouseSensitivity,
|
|
5948
5962
|
"interior-id": h.value,
|
|
5949
|
-
"apartment-id":
|
|
5963
|
+
"apartment-id": n.apartmentId,
|
|
5950
5964
|
onNewCameraCallback: $e,
|
|
5951
5965
|
onNewRotationCallback: st,
|
|
5952
5966
|
onNewFloorCallback: N,
|
|
@@ -5987,7 +6001,7 @@ const Is = {
|
|
|
5987
6001
|
"floor-levels": _.value,
|
|
5988
6002
|
onLevel: N
|
|
5989
6003
|
}, null, 8, ["level", "floor-levels"])) : U("", !0),
|
|
5990
|
-
R.value && k.adminMode && o.value ? (p(),
|
|
6004
|
+
R.value && k.adminMode && o.value ? (p(), F("div", Ss, [
|
|
5991
6005
|
w(Hl, {
|
|
5992
6006
|
"initial-settings": k.playerSettings,
|
|
5993
6007
|
onUpdateSettings: xt,
|
|
@@ -6002,7 +6016,7 @@ const Is = {
|
|
|
6002
6016
|
}, null, 8, ["return-url"])) : U("", !0)
|
|
6003
6017
|
]),
|
|
6004
6018
|
"top-right": b(() => [
|
|
6005
|
-
v.value && k.showCompass ? ve((p(),
|
|
6019
|
+
v.value && k.showCompass ? ve((p(), F("div", Ls, [
|
|
6006
6020
|
w(To, { rotation: S.value }, null, 8, ["rotation"])
|
|
6007
6021
|
], 512)), [
|
|
6008
6022
|
[he, R.value]
|
|
@@ -6012,8 +6026,8 @@ const Is = {
|
|
|
6012
6026
|
}, [
|
|
6013
6027
|
R.value && v.value && ue.value && k.showTimeOfDay ? (p(), V(Uo, {
|
|
6014
6028
|
key: 0,
|
|
6015
|
-
hours:
|
|
6016
|
-
minutes:
|
|
6029
|
+
hours: x.value.hours,
|
|
6030
|
+
minutes: x.value.minutes,
|
|
6017
6031
|
class: "time-of-day",
|
|
6018
6032
|
style: se({
|
|
6019
6033
|
cursor: l.value && g.value && W.value ? "pointer" : "default"
|
|
@@ -6037,7 +6051,7 @@ const Is = {
|
|
|
6037
6051
|
]),
|
|
6038
6052
|
"center-center": b(() => [
|
|
6039
6053
|
w(wl, {
|
|
6040
|
-
project: ae(ie)(
|
|
6054
|
+
project: ae(ie)(n.cdnFileResolver, ""),
|
|
6041
6055
|
onCloseTutorial: G[4] || (G[4] = (pe) => R.value = !0)
|
|
6042
6056
|
}, null, 8, ["project"]),
|
|
6043
6057
|
I.value.isActive && l.value && g.value && W.value && M.value ? (p(), V(gt, {
|
|
@@ -6047,7 +6061,7 @@ const Is = {
|
|
|
6047
6061
|
"minimap-json": l.value,
|
|
6048
6062
|
rotation: S.value,
|
|
6049
6063
|
"current-camera": g.value,
|
|
6050
|
-
level:
|
|
6064
|
+
level: P.value,
|
|
6051
6065
|
onClose: G[5] || (G[5] = (pe) => M.value = !1)
|
|
6052
6066
|
}, null, 8, ["cdn-file-resolver", "apartment-json", "minimap-json", "rotation", "current-camera", "level"])) : U("", !0)
|
|
6053
6067
|
]),
|
|
@@ -6072,7 +6086,7 @@ const Is = {
|
|
|
6072
6086
|
class: "btn-fullscreen",
|
|
6073
6087
|
onToggleFullscreen: Te
|
|
6074
6088
|
}, null, 8, ["is-full-screen"])) : U("", !0),
|
|
6075
|
-
R.value && k.showSnapshot ? (p(),
|
|
6089
|
+
R.value && k.showSnapshot ? (p(), F("div", xs, [
|
|
6076
6090
|
w(X, {
|
|
6077
6091
|
density: "comfortable",
|
|
6078
6092
|
elevation: "3",
|
|
@@ -6087,12 +6101,12 @@ const Is = {
|
|
|
6087
6101
|
onToggle: Me
|
|
6088
6102
|
}, null, 8, ["show-static-image"])) : U("", !0)
|
|
6089
6103
|
]),
|
|
6090
|
-
R.value && k.showShare && !I.value.isActive ? (p(),
|
|
6104
|
+
R.value && k.showShare && !I.value.isActive ? (p(), F("div", Ds, [
|
|
6091
6105
|
w(At)
|
|
6092
6106
|
])) : U("", !0)
|
|
6093
6107
|
]),
|
|
6094
6108
|
"bottom-center": b(() => [
|
|
6095
|
-
R.value && k.showCarousel && !it.value ? (p(),
|
|
6109
|
+
R.value && k.showCarousel && !it.value ? (p(), F("div", Ms, [
|
|
6096
6110
|
R.value ? (p(), V(et, {
|
|
6097
6111
|
key: 0,
|
|
6098
6112
|
class: fe([I.value.isActive ? "full-screen" : ""]),
|
|
@@ -6110,7 +6124,7 @@ const Is = {
|
|
|
6110
6124
|
key: 0,
|
|
6111
6125
|
"cdn-file-resolver": k.cdnFileResolver,
|
|
6112
6126
|
"available-archetypes": z.value,
|
|
6113
|
-
"selected-index":
|
|
6127
|
+
"selected-index": D.value,
|
|
6114
6128
|
onSelectInterior: ze
|
|
6115
6129
|
}, null, 8, ["cdn-file-resolver", "available-archetypes", "selected-index"])) : U("", !0)
|
|
6116
6130
|
])
|
|
@@ -6164,8 +6178,8 @@ const Is = {
|
|
|
6164
6178
|
isFullScreen: { type: Boolean }
|
|
6165
6179
|
},
|
|
6166
6180
|
emits: ["newSizeCallback"],
|
|
6167
|
-
setup(u, { emit:
|
|
6168
|
-
return (e,
|
|
6181
|
+
setup(u, { emit: a }) {
|
|
6182
|
+
return (e, n) => (p(), F("div", Bs, [
|
|
6169
6183
|
s("div", Rs, [
|
|
6170
6184
|
K(e.$slots, "slideshow-image", {}, void 0, !0),
|
|
6171
6185
|
s("div", Os, [
|
|
@@ -6212,24 +6226,24 @@ const Is = {
|
|
|
6212
6226
|
defaultWaypointIndex: { default: 0 }
|
|
6213
6227
|
},
|
|
6214
6228
|
setup(u) {
|
|
6215
|
-
const
|
|
6229
|
+
const a = u;
|
|
6216
6230
|
Ze(
|
|
6217
6231
|
be,
|
|
6218
|
-
|
|
6232
|
+
a.i18nConfig ? new xe(a.i18nConfig) : new xe()
|
|
6219
6233
|
);
|
|
6220
|
-
const e = d(0),
|
|
6234
|
+
const e = d(0), n = d(
|
|
6221
6235
|
new Lt(document, "player-wrapper")
|
|
6222
|
-
), t = T(() =>
|
|
6236
|
+
), t = T(() => a.images.map(
|
|
6223
6237
|
(l, f) => ({
|
|
6224
6238
|
id: `image-${f}`,
|
|
6225
6239
|
thumbnailUrl: l
|
|
6226
6240
|
})
|
|
6227
6241
|
)), o = T(() => t.value[e.value]);
|
|
6228
6242
|
de(() => {
|
|
6229
|
-
|
|
6243
|
+
n.value.setup();
|
|
6230
6244
|
});
|
|
6231
6245
|
function r() {
|
|
6232
|
-
|
|
6246
|
+
n.value.toggle(), window.scrollTo({ top: 150, behavior: "smooth" });
|
|
6233
6247
|
}
|
|
6234
6248
|
function i() {
|
|
6235
6249
|
let l = e.value + 1;
|
|
@@ -6247,11 +6261,11 @@ const Is = {
|
|
|
6247
6261
|
}
|
|
6248
6262
|
return (l, f) => {
|
|
6249
6263
|
const C = B("v-img"), h = B("v-btn");
|
|
6250
|
-
return p(),
|
|
6264
|
+
return p(), F("div", Qs, [
|
|
6251
6265
|
s("div", qs, [
|
|
6252
6266
|
s("div", null, [
|
|
6253
6267
|
w(Gs, {
|
|
6254
|
-
"is-full-screen":
|
|
6268
|
+
"is-full-screen": n.value.isActive
|
|
6255
6269
|
}, {
|
|
6256
6270
|
"slideshow-image": b(() => [
|
|
6257
6271
|
s("div", Zs, [
|
|
@@ -6295,19 +6309,19 @@ const Is = {
|
|
|
6295
6309
|
"bottom-left": b(() => [
|
|
6296
6310
|
l.showFullScreen ? (p(), V(St, {
|
|
6297
6311
|
key: 0,
|
|
6298
|
-
"is-full-screen":
|
|
6312
|
+
"is-full-screen": n.value.isActive,
|
|
6299
6313
|
class: "btn-fullscreen",
|
|
6300
6314
|
onToggleFullscreen: r
|
|
6301
6315
|
}, null, 8, ["is-full-screen"])) : U("", !0),
|
|
6302
|
-
l.showShare ? (p(),
|
|
6316
|
+
l.showShare ? (p(), F("div", Js, [
|
|
6303
6317
|
w(At)
|
|
6304
6318
|
])) : U("", !0)
|
|
6305
6319
|
]),
|
|
6306
6320
|
"bottom-center": b(() => [
|
|
6307
6321
|
s("div", null, [
|
|
6308
|
-
|
|
6322
|
+
n.value.isActive && t.value.length > 1 ? (p(), V(et, {
|
|
6309
6323
|
key: 0,
|
|
6310
|
-
class: fe([
|
|
6324
|
+
class: fe([n.value.isActive ? "full-screen" : ""]),
|
|
6311
6325
|
thumbnails: t.value,
|
|
6312
6326
|
active: e.value,
|
|
6313
6327
|
onNext: i,
|
|
@@ -6333,8 +6347,8 @@ const Is = {
|
|
|
6333
6347
|
};
|
|
6334
6348
|
}
|
|
6335
6349
|
}), Ks = /* @__PURE__ */ J(Xs, [["__scopeId", "data-v-040ac08f"]]), li = {
|
|
6336
|
-
install: function(
|
|
6337
|
-
|
|
6350
|
+
install: function(a) {
|
|
6351
|
+
a.component("VApartmentChooser", kn), a.component("VBuildingChooser", Fa), a.component("VVirtualTour", Vs), a.component("VManualSlideShow", Ks);
|
|
6338
6352
|
}
|
|
6339
6353
|
};
|
|
6340
6354
|
export {
|