@qispace/vue3-player 0.3.22 → 0.3.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var xa = Object.defineProperty;
|
|
2
2
|
var Da = (l, a, e) => a in l ? xa(l, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[a] = e;
|
|
3
3
|
var pe = (l, a, e) => (Da(l, typeof a != "symbol" ? a + "" : a, e), e);
|
|
4
|
-
import { defineComponent as j, ref as v, computed as B, openBlock as d, createElementBlock as x, watch as H, onMounted as Ie, onBeforeUnmount as
|
|
5
|
-
import
|
|
4
|
+
import { defineComponent as j, ref as v, computed as B, openBlock as d, createElementBlock as x, watch as H, onMounted as Ie, onBeforeUnmount as Ne, withDirectives as we, createElementVNode as u, normalizeStyle as fe, vShow as ke, createVNode as C, Fragment as me, renderList as ye, createCommentVNode as $, inject as Ge, resolveComponent as E, withCtx as _, toDisplayString as Q, unref as D, createTextVNode as te, normalizeClass as ge, createBlock as T, renderSlot as le, provide as et, reactive as yt, watchEffect as Te, resolveDynamicComponent as Gt, normalizeProps as rt, guardReactiveProps as ut, mergeProps as Me, nextTick as De, Transition as Ee, createSlots as Aa, toRefs as Ve, pushScopeId as _t, popScopeId as bt, vModelText as Fa, createStaticVNode as Qt, onBeforeUpdate as La, withModifiers as Ma } from "vue";
|
|
5
|
+
import ft from "axios";
|
|
6
6
|
import * as Oa from "@qispace/player-core";
|
|
7
|
-
import { Vector3 as
|
|
7
|
+
import { Vector3 as lt, Object3D as Ea, MathUtils as Ta } from "three";
|
|
8
8
|
class Fe {
|
|
9
9
|
static async loadText(a) {
|
|
10
10
|
return new Fe().loadText(a);
|
|
@@ -20,15 +20,15 @@ class Fe {
|
|
|
20
20
|
}
|
|
21
21
|
async loadText(a) {
|
|
22
22
|
try {
|
|
23
|
-
return (await
|
|
23
|
+
return (await ft.get(a)).data;
|
|
24
24
|
} catch (e) {
|
|
25
|
-
throw
|
|
25
|
+
throw ft.isAxiosError(e) && e.response ? new Error(
|
|
26
26
|
`Failed to load resource from ${a}: ${e.response.status} ${e.response.statusText}`
|
|
27
27
|
) : e;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
async loadJson(a) {
|
|
31
|
-
return (await
|
|
31
|
+
return (await ft.get(a)).data;
|
|
32
32
|
}
|
|
33
33
|
async loadImage(a) {
|
|
34
34
|
return new Promise((e, n) => {
|
|
@@ -65,7 +65,7 @@ const Va = /* @__PURE__ */ j({
|
|
|
65
65
|
for (const [n, t] of a)
|
|
66
66
|
e[n] = t;
|
|
67
67
|
return e;
|
|
68
|
-
},
|
|
68
|
+
}, ze = /* @__PURE__ */ ee(Va, [["__scopeId", "data-v-eb9b348d"]]);
|
|
69
69
|
function he(l, a) {
|
|
70
70
|
return typeof l == "string" ? `${l}${a}` : l(a);
|
|
71
71
|
}
|
|
@@ -82,10 +82,10 @@ const $a = /* @__PURE__ */ j({
|
|
|
82
82
|
},
|
|
83
83
|
emits: ["selectUnit", "goToUnit", "hoverOver", "hoverOut", "pos"],
|
|
84
84
|
setup(l, { emit: a }) {
|
|
85
|
-
const e = l, n = a, t = v({ x: 0, y: 0, width: 0, height: 0 }), o = v(0), i = v(0), s = v(), m = v(), p = v(), r = v(), f = v(-1), k = v(!1), g = v(), c = v(), h = v({}), S = v("auto"), b = v(new Fe()), y = v({}), Y = v(),
|
|
85
|
+
const e = l, n = a, t = v({ x: 0, y: 0, width: 0, height: 0 }), o = v(0), i = v(0), s = v(), m = v(), p = v(), r = v(), f = v(-1), k = v(!1), g = v(), c = v(), h = v({}), S = v("auto"), b = v(new Fe()), y = v({}), Y = v(), O = v(), P = v(), I = v(), L = v(), Z = B(() => P.value.isHoverEnabled), R = B(() => he(
|
|
86
86
|
e.cdnFileResolver,
|
|
87
87
|
`/scenedata${e.viewModel.currentScene}.png`
|
|
88
|
-
)),
|
|
88
|
+
)), X = B(() => R.value in h.value ? h.value[R.value] : null), w = B(() => f.value < 0 ? !1 : e.sceneData.find((K) => K.index === f.value) || !1), A = B(() => ({
|
|
89
89
|
width: o.value + "px",
|
|
90
90
|
height: i.value + "px",
|
|
91
91
|
cursor: S.value
|
|
@@ -101,8 +101,8 @@ const $a = /* @__PURE__ */ j({
|
|
|
101
101
|
});
|
|
102
102
|
},
|
|
103
103
|
{ immediate: !0 }
|
|
104
|
-
), H(
|
|
105
|
-
|
|
104
|
+
), H(X, () => {
|
|
105
|
+
X.value && N();
|
|
106
106
|
}), H(
|
|
107
107
|
() => e.viewModel.currentScene,
|
|
108
108
|
() => {
|
|
@@ -131,24 +131,24 @@ const $a = /* @__PURE__ */ j({
|
|
|
131
131
|
}), H(t, () => {
|
|
132
132
|
n("pos", t.value);
|
|
133
133
|
}), Ie(() => {
|
|
134
|
-
|
|
134
|
+
O.value = () => {
|
|
135
135
|
clearTimeout(Y.value), Ae(), Y.value = setTimeout(() => {
|
|
136
136
|
Ae();
|
|
137
137
|
}, 50);
|
|
138
|
-
}, window.addEventListener("resize",
|
|
139
|
-
}),
|
|
140
|
-
window.removeEventListener("resize",
|
|
138
|
+
}, window.addEventListener("resize", O.value), Ae();
|
|
139
|
+
}), Ne(() => {
|
|
140
|
+
window.removeEventListener("resize", O.value);
|
|
141
141
|
for (const G in h.value)
|
|
142
142
|
URL.revokeObjectURL(h.value[G]);
|
|
143
143
|
});
|
|
144
144
|
function N() {
|
|
145
145
|
s.value = I.value.getContext("2d", { willReadFrequently: !0 }), m.value = new Image(), m.value.onload = () => {
|
|
146
|
-
|
|
147
|
-
}, m.value.src =
|
|
146
|
+
He(), I.value.addEventListener("mousemove", Ce(ve, 50));
|
|
147
|
+
}, m.value.src = X.value;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
150
|
-
const
|
|
151
|
-
k.value =
|
|
149
|
+
function ve(G) {
|
|
150
|
+
const K = q(G.offsetX, G.offsetY);
|
|
151
|
+
k.value = K >= 0, f.value = K, t.value = {
|
|
152
152
|
x: G.offsetX,
|
|
153
153
|
y: G.offsetY,
|
|
154
154
|
width: o.value,
|
|
@@ -156,10 +156,10 @@ const $a = /* @__PURE__ */ j({
|
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
158
|
function z(G) {
|
|
159
|
-
const
|
|
160
|
-
|
|
159
|
+
const K = q(G.offsetX, G.offsetY);
|
|
160
|
+
K < 0 || Z && _e(K);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function M() {
|
|
163
163
|
if (m.value && m.value.width) {
|
|
164
164
|
I.value.width = m.value.width, I.value.height = m.value.height, s.value.drawImage(
|
|
165
165
|
m.value,
|
|
@@ -180,88 +180,88 @@ const $a = /* @__PURE__ */ j({
|
|
|
180
180
|
);
|
|
181
181
|
const G = r.value.data;
|
|
182
182
|
y.value = {};
|
|
183
|
-
for (let
|
|
184
|
-
y.value[G[
|
|
185
|
-
for (let
|
|
186
|
-
G[
|
|
183
|
+
for (let K = 0; K < G.length; K += 4)
|
|
184
|
+
y.value[G[K]] = [];
|
|
185
|
+
for (let K = 3; K < G.length; K += 4)
|
|
186
|
+
G[K] === 255 && G[K - 3] in y.value && y.value[G[K - 3]].push(K - 3);
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
g.value = G, c.value =
|
|
191
|
-
const
|
|
192
|
-
return r.value.data[
|
|
193
|
-
}
|
|
194
|
-
function
|
|
195
|
-
|
|
196
|
-
if (
|
|
197
|
-
const
|
|
198
|
-
if (
|
|
199
|
-
const
|
|
200
|
-
let
|
|
201
|
-
!w.value && e.selectedUnitId &&
|
|
202
|
-
const
|
|
203
|
-
if (
|
|
204
|
-
for (let
|
|
205
|
-
p.value.data[
|
|
189
|
+
function q(G, K) {
|
|
190
|
+
g.value = G, c.value = K;
|
|
191
|
+
const V = I.value.offsetWidth / I.value.width, ae = I.value.offsetHeight / I.value.height, ce = (G / V).toFixed(), de = (K / ae).toFixed(), ne = Number(de) * (I.value.width * 4) + Number(ce) * 4, Ue = r.value.data[ne];
|
|
192
|
+
return r.value.data[ne + 3] > 0 ? Ue : -1;
|
|
193
|
+
}
|
|
194
|
+
function J() {
|
|
195
|
+
ie().forEach((K) => {
|
|
196
|
+
if (K.index >= 0) {
|
|
197
|
+
const V = re(K.index);
|
|
198
|
+
if (V) {
|
|
199
|
+
const ae = se(K.index);
|
|
200
|
+
let ce = "idle";
|
|
201
|
+
!w.value && e.selectedUnitId && ae === e.selectedUnitId ? ce = "selected" : w.value && f.value === K.index && (ce = "hover");
|
|
202
|
+
const de = e.colorCallback(K.unitId, ce);
|
|
203
|
+
if (de)
|
|
204
|
+
for (let ne = 0; ne < V.length; ne++)
|
|
205
|
+
p.value.data[V[ne]] = de.r, p.value.data[V[ne] + 1] = de.g, p.value.data[V[ne] + 2] = de.b, p.value.data[V[ne] + 3] = de.a;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function re(G) {
|
|
211
211
|
return r.value ? y.value[G] : !1;
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
const
|
|
215
|
-
return
|
|
213
|
+
function se(G) {
|
|
214
|
+
const K = e.sceneData.find((V) => V.index === G);
|
|
215
|
+
return K && K.unitId;
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function ie() {
|
|
218
218
|
if (r.value) {
|
|
219
219
|
const G = Object.keys(y.value).map(
|
|
220
|
-
(
|
|
220
|
+
(V) => parseInt(V)
|
|
221
221
|
);
|
|
222
222
|
return e.sceneData.filter(
|
|
223
|
-
(
|
|
223
|
+
(V) => G.includes(V.index)
|
|
224
224
|
);
|
|
225
225
|
} else
|
|
226
226
|
return [];
|
|
227
227
|
}
|
|
228
228
|
function _e(G) {
|
|
229
|
-
const
|
|
230
|
-
|
|
229
|
+
const K = se(G);
|
|
230
|
+
ue(K);
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function ue(G) {
|
|
233
233
|
n("selectUnit", G), G && e.canGoToUnitCallback(G) && n("goToUnit", G);
|
|
234
234
|
}
|
|
235
235
|
function Le(G = 0) {
|
|
236
236
|
if (!p.value)
|
|
237
237
|
return;
|
|
238
|
-
const
|
|
239
|
-
for (let
|
|
240
|
-
|
|
238
|
+
const K = p.value.data;
|
|
239
|
+
for (let V = 3; V < K.length; V += 4)
|
|
240
|
+
K[V] = G;
|
|
241
241
|
}
|
|
242
242
|
function Ae() {
|
|
243
|
-
if (!
|
|
243
|
+
if (!L.value)
|
|
244
244
|
return !1;
|
|
245
|
-
o.value =
|
|
245
|
+
o.value = L.value.offsetWidth, i.value = L.value.offsetHeight;
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
|
|
247
|
+
function He() {
|
|
248
|
+
M(), be();
|
|
249
249
|
}
|
|
250
250
|
function be() {
|
|
251
|
-
Le(),
|
|
251
|
+
Le(), J(), s.value && p.value && s.value.putImageData(p.value, 0, 0);
|
|
252
252
|
}
|
|
253
253
|
function xe() {
|
|
254
254
|
k.value = !1;
|
|
255
255
|
}
|
|
256
256
|
const Oe = v(!1);
|
|
257
|
-
function Ce(G,
|
|
258
|
-
return Oe.value = !0, function(...
|
|
259
|
-
Oe.value && (Oe.value = !1, G.apply(this,
|
|
257
|
+
function Ce(G, K) {
|
|
258
|
+
return Oe.value = !0, function(...V) {
|
|
259
|
+
Oe.value && (Oe.value = !1, G.apply(this, V), setTimeout(() => Oe.value = !0, K));
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
|
-
return (G,
|
|
262
|
+
return (G, K) => (d(), x("div", {
|
|
263
263
|
ref_key: "container",
|
|
264
|
-
ref:
|
|
264
|
+
ref: L,
|
|
265
265
|
id: "canvas"
|
|
266
266
|
}, [
|
|
267
267
|
we(u("canvas", {
|
|
@@ -273,7 +273,7 @@ const $a = /* @__PURE__ */ j({
|
|
|
273
273
|
}, null, 4), [
|
|
274
274
|
[ke, !G.viewModel.isRotating]
|
|
275
275
|
]),
|
|
276
|
-
C(
|
|
276
|
+
C(ze, {
|
|
277
277
|
ref_key: "hoverProbe",
|
|
278
278
|
ref: P
|
|
279
279
|
}, null, 512)
|
|
@@ -307,9 +307,9 @@ const $a = /* @__PURE__ */ j({
|
|
|
307
307
|
{ immediate: !0 }
|
|
308
308
|
), H(t, () => {
|
|
309
309
|
n("pos", t.value);
|
|
310
|
-
}), H(o, (
|
|
311
|
-
if (
|
|
312
|
-
const I = g(
|
|
310
|
+
}), H(o, (O, P) => {
|
|
311
|
+
if (O >= 0) {
|
|
312
|
+
const I = g(O);
|
|
313
313
|
n("hoverOver", {
|
|
314
314
|
hoverUnit: I,
|
|
315
315
|
closeHandler: () => {
|
|
@@ -326,61 +326,61 @@ const $a = /* @__PURE__ */ j({
|
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
328
|
}), Ie(() => {
|
|
329
|
-
for (let
|
|
330
|
-
const P = he(e.cdnFileResolver, `/scenedata${
|
|
329
|
+
for (let O = 1; O <= 4; O++) {
|
|
330
|
+
const P = he(e.cdnFileResolver, `/scenedata${O}.svg`), I = {
|
|
331
331
|
markup: "",
|
|
332
332
|
viewBox: "",
|
|
333
333
|
svgObjects: []
|
|
334
334
|
};
|
|
335
|
-
m.value.loadJson(P).then((
|
|
336
|
-
I.markup =
|
|
337
|
-
const R = new DOMParser().parseFromString(
|
|
335
|
+
m.value.loadJson(P).then((L) => {
|
|
336
|
+
I.markup = L;
|
|
337
|
+
const R = new DOMParser().parseFromString(L, "image/svg+xml").getElementsByTagName("svg")[0];
|
|
338
338
|
I.viewBox = R.getAttribute("viewBox"), I.svgObjects = Array.from(
|
|
339
339
|
R.querySelectorAll("*[data-index]")
|
|
340
|
-
).map((
|
|
341
|
-
index: parseInt(
|
|
342
|
-
svg:
|
|
343
|
-
})), i.value = { ...i.value, [
|
|
340
|
+
).map((X) => ({
|
|
341
|
+
index: parseInt(X.getAttribute("data-index")),
|
|
342
|
+
svg: X.innerHTML
|
|
343
|
+
})), i.value = { ...i.value, [O]: I };
|
|
344
344
|
});
|
|
345
345
|
}
|
|
346
346
|
p.value.addEventListener("mousemove", Y(k, 50));
|
|
347
347
|
});
|
|
348
|
-
function k(
|
|
348
|
+
function k(O) {
|
|
349
349
|
t.value = {
|
|
350
|
-
x:
|
|
351
|
-
y:
|
|
350
|
+
x: O.offsetX,
|
|
351
|
+
y: O.offsetY,
|
|
352
352
|
width: p.value.offsetWidth,
|
|
353
353
|
height: p.value.offsetHeight
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
|
-
function g(
|
|
356
|
+
function g(O) {
|
|
357
357
|
var P;
|
|
358
358
|
return (P = e.sceneData.find(
|
|
359
|
-
(I) => I.index === (typeof
|
|
359
|
+
(I) => I.index === (typeof O == "string" ? parseInt(O) : O)
|
|
360
360
|
)) == null ? void 0 : P.unitId;
|
|
361
361
|
}
|
|
362
|
-
function c(
|
|
363
|
-
f.value && (o.value =
|
|
362
|
+
function c(O) {
|
|
363
|
+
f.value && (o.value = O);
|
|
364
364
|
}
|
|
365
|
-
function h(
|
|
365
|
+
function h(O) {
|
|
366
366
|
f.value && (o.value = -1);
|
|
367
367
|
}
|
|
368
|
-
function S(
|
|
369
|
-
const P = g(
|
|
370
|
-
n("selectUnit", P), f.value && P && e.canGoToUnitCallback(P) ? n("goToUnit", P) : o.value =
|
|
368
|
+
function S(O) {
|
|
369
|
+
const P = g(O);
|
|
370
|
+
n("selectUnit", P), f.value && P && e.canGoToUnitCallback(P) ? n("goToUnit", P) : o.value = O;
|
|
371
371
|
}
|
|
372
|
-
function b(
|
|
373
|
-
const P = g(
|
|
372
|
+
function b(O) {
|
|
373
|
+
const P = g(O);
|
|
374
374
|
let I = "idle";
|
|
375
|
-
o.value < 0 && e.selectedUnitId && P === e.selectedUnitId ? I = "selected" : o.value >= 0 && o.value ===
|
|
376
|
-
const
|
|
377
|
-
if (
|
|
378
|
-
const { r:
|
|
375
|
+
o.value < 0 && e.selectedUnitId && P === e.selectedUnitId ? I = "selected" : o.value >= 0 && o.value === O && (I = "hover");
|
|
376
|
+
const L = e.colorCallback(P, I);
|
|
377
|
+
if (L) {
|
|
378
|
+
const { r: Z, g: R, b: X, a: w, s: A } = L;
|
|
379
379
|
return {
|
|
380
380
|
strokeWidth: A !== void 0 ? A : 2,
|
|
381
|
-
stroke: `rgb(${
|
|
381
|
+
stroke: `rgb(${Z}, ${R}, ${X})`,
|
|
382
382
|
strokeOpacity: 1,
|
|
383
|
-
fill: `rgb(${
|
|
383
|
+
fill: `rgb(${Z}, ${R}, ${X})`,
|
|
384
384
|
fillOpacity: w / 255,
|
|
385
385
|
cursor: `${e.canGoToUnitCallback(P) ? "cursor" : "default"} !important`
|
|
386
386
|
};
|
|
@@ -395,12 +395,12 @@ const $a = /* @__PURE__ */ j({
|
|
|
395
395
|
};
|
|
396
396
|
}
|
|
397
397
|
const y = v(!1);
|
|
398
|
-
function Y(
|
|
398
|
+
function Y(O, P) {
|
|
399
399
|
return y.value = !0, function(...I) {
|
|
400
|
-
y.value && (y.value = !1,
|
|
400
|
+
y.value && (y.value = !1, O.apply(this, I), setTimeout(() => y.value = !0, P));
|
|
401
401
|
};
|
|
402
402
|
}
|
|
403
|
-
return (
|
|
403
|
+
return (O, P) => (d(), x("div", {
|
|
404
404
|
id: "container",
|
|
405
405
|
ref_key: "container",
|
|
406
406
|
ref: p
|
|
@@ -415,25 +415,25 @@ const $a = /* @__PURE__ */ j({
|
|
|
415
415
|
key: 0,
|
|
416
416
|
viewBox: s.value.viewBox
|
|
417
417
|
}, [
|
|
418
|
-
(d(!0), x(
|
|
418
|
+
(d(!0), x(me, null, ye(s.value.svgObjects, ({ index: I, svg: L }) => (d(), x("g", {
|
|
419
419
|
key: I,
|
|
420
|
-
innerHTML:
|
|
420
|
+
innerHTML: L,
|
|
421
421
|
style: fe(b(I)),
|
|
422
|
-
onMouseenter: (
|
|
423
|
-
onMouseleave: (
|
|
424
|
-
onClick: (
|
|
422
|
+
onMouseenter: (Z) => c(I),
|
|
423
|
+
onMouseleave: (Z) => h(),
|
|
424
|
+
onClick: (Z) => S(I)
|
|
425
425
|
}, null, 44, Ua))), 128))
|
|
426
426
|
], 8, Ra)) : $("", !0)
|
|
427
427
|
], 4), [
|
|
428
|
-
[ke, !
|
|
428
|
+
[ke, !O.viewModel.isRotating]
|
|
429
429
|
]),
|
|
430
|
-
C(
|
|
430
|
+
C(ze, {
|
|
431
431
|
ref_key: "hoverProbe",
|
|
432
432
|
ref: r
|
|
433
433
|
}, null, 512)
|
|
434
434
|
], 512));
|
|
435
435
|
}
|
|
436
|
-
}), Ya = /* @__PURE__ */ ee(Ha, [["__scopeId", "data-v-e6c054c7"]]),
|
|
436
|
+
}), Ya = /* @__PURE__ */ ee(Ha, [["__scopeId", "data-v-e6c054c7"]]), $e = Symbol(), za = {
|
|
437
437
|
key: 0,
|
|
438
438
|
class: "text-success d-none d-md-flex"
|
|
439
439
|
}, Pa = { class: "text-success" }, ja = /* @__PURE__ */ j({
|
|
@@ -448,17 +448,17 @@ const $a = /* @__PURE__ */ j({
|
|
|
448
448
|
},
|
|
449
449
|
emits: ["prevUnit", "nextUnit", "goToUnit"],
|
|
450
450
|
setup(l, { emit: a }) {
|
|
451
|
-
const e = l, n = B(() => e.selectedUnitId), t = B(() => e.nextUnitId), o = B(() => e.prevUnitId), i = a, s =
|
|
451
|
+
const e = l, n = B(() => e.selectedUnitId), t = B(() => e.nextUnitId), o = B(() => e.prevUnitId), i = a, s = Ge($e);
|
|
452
452
|
Ie(() => {
|
|
453
453
|
window.addEventListener("keydown", m);
|
|
454
|
-
}),
|
|
454
|
+
}), Ne(() => {
|
|
455
455
|
window.removeEventListener("keydown", m);
|
|
456
456
|
});
|
|
457
457
|
function m(p) {
|
|
458
458
|
p.keyCode === 37 ? e.prevUnitId && i("prevUnit") : p.keyCode === 39 && e.nextUnitId && i("nextUnit");
|
|
459
459
|
}
|
|
460
460
|
return (p, r) => {
|
|
461
|
-
const f =
|
|
461
|
+
const f = E("v-btn");
|
|
462
462
|
return d(), x("div", null, [
|
|
463
463
|
C(f, {
|
|
464
464
|
elevation: "1",
|
|
@@ -507,7 +507,7 @@ const $a = /* @__PURE__ */ j({
|
|
|
507
507
|
};
|
|
508
508
|
}
|
|
509
509
|
}), Wa = /* @__PURE__ */ ee(ja, [["__scopeId", "data-v-44ed308e"]]);
|
|
510
|
-
class
|
|
510
|
+
class xt {
|
|
511
511
|
constructor(a) {
|
|
512
512
|
pe(this, "_numParts");
|
|
513
513
|
pe(this, "_loadedCount");
|
|
@@ -545,7 +545,7 @@ class It {
|
|
|
545
545
|
return Math.round(this._loadedCount * 100 / this._numParts);
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
-
class
|
|
548
|
+
class Ft {
|
|
549
549
|
constructor(a, e, n, t) {
|
|
550
550
|
pe(this, "_rotator");
|
|
551
551
|
pe(this, "_direction");
|
|
@@ -563,7 +563,7 @@ class At {
|
|
|
563
563
|
const a = this._rotator.clampFrameIndex(
|
|
564
564
|
this._frameIndex + this._direction
|
|
565
565
|
), e = this._rotator.isCardinalFrame(a) ? this._sceneCount - 1 : this._sceneCount;
|
|
566
|
-
return new
|
|
566
|
+
return new Ft(
|
|
567
567
|
this._rotator,
|
|
568
568
|
this._direction,
|
|
569
569
|
a,
|
|
@@ -579,7 +579,7 @@ class Na {
|
|
|
579
579
|
}
|
|
580
580
|
start(a, e, n) {
|
|
581
581
|
const t = this.startFrameIndexForScene(e);
|
|
582
|
-
return new
|
|
582
|
+
return new Ft(this, a, t, n);
|
|
583
583
|
}
|
|
584
584
|
isCardinalFrame(a) {
|
|
585
585
|
return this._cardinalFrames.includes(a);
|
|
@@ -604,7 +604,7 @@ const Ga = {
|
|
|
604
604
|
key: 2,
|
|
605
605
|
id: "image-stack",
|
|
606
606
|
class: "frame-container"
|
|
607
|
-
}, Ka = ["alt"], en = ["srcset"], tn = ["src"], Yt = 64,
|
|
607
|
+
}, Ka = ["alt"], en = ["srcset"], tn = ["src"], Yt = 64, st = 4, an = 120, nn = /* @__PURE__ */ j({
|
|
608
608
|
__name: "VApartmentChooserRotator",
|
|
609
609
|
props: {
|
|
610
610
|
viewModel: {},
|
|
@@ -615,15 +615,15 @@ const Ga = {
|
|
|
615
615
|
emits: ["loaded", "error", "progress"],
|
|
616
616
|
setup(l, { emit: a }) {
|
|
617
617
|
const e = l, n = a, t = g(), o = v(
|
|
618
|
-
new
|
|
618
|
+
new xt(t.length).onLoadFinished(() => n("loaded")).onLoadProgress((b) => n("progress", b)).onLoadError(() => n("error"))
|
|
619
619
|
), i = v(
|
|
620
620
|
new Na(e.cardinalFrames, Yt)
|
|
621
621
|
), s = v(t), m = v(!1), p = B(() => s.value.find((b) => b.show));
|
|
622
622
|
H(
|
|
623
623
|
() => e.viewModel.currentScene,
|
|
624
624
|
(b, y) => {
|
|
625
|
-
const Y = S(y, b),
|
|
626
|
-
r(y, Y,
|
|
625
|
+
const Y = S(y, b), O = h(y, b);
|
|
626
|
+
r(y, Y, O);
|
|
627
627
|
}
|
|
628
628
|
), Ie(() => {
|
|
629
629
|
k();
|
|
@@ -632,7 +632,7 @@ const Ga = {
|
|
|
632
632
|
e.viewModel.isRotating || (e.viewModel.isRotating = !0, f(
|
|
633
633
|
i.value.start(
|
|
634
634
|
y,
|
|
635
|
-
b %
|
|
635
|
+
b % st,
|
|
636
636
|
Y
|
|
637
637
|
)
|
|
638
638
|
));
|
|
@@ -646,25 +646,25 @@ const Ga = {
|
|
|
646
646
|
}
|
|
647
647
|
function k() {
|
|
648
648
|
const b = i.value.startFrameIndexForScene(
|
|
649
|
-
e.viewModel.currentScene %
|
|
649
|
+
e.viewModel.currentScene % st
|
|
650
650
|
);
|
|
651
651
|
b in s.value && (s.value[b].show = !0), e.viewModel.isRotating = !1;
|
|
652
652
|
}
|
|
653
653
|
function g() {
|
|
654
654
|
const b = [];
|
|
655
655
|
for (let y = 0; y < Yt; y++) {
|
|
656
|
-
const { sourceSet: Y, defaultPath:
|
|
656
|
+
const { sourceSet: Y, defaultPath: O } = c(y);
|
|
657
657
|
b.push({
|
|
658
658
|
index: y,
|
|
659
659
|
sourceSet: Y,
|
|
660
|
-
defaultPath:
|
|
660
|
+
defaultPath: O,
|
|
661
661
|
show: !1
|
|
662
662
|
});
|
|
663
663
|
}
|
|
664
664
|
return b;
|
|
665
665
|
}
|
|
666
666
|
function c(b) {
|
|
667
|
-
const y = ("0000" + (b + 1)).slice(-4), Y = e.build ? `?v=${e.build}` : "",
|
|
667
|
+
const y = ("0000" + (b + 1)).slice(-4), Y = e.build ? `?v=${e.build}` : "", O = [
|
|
668
668
|
`${he(
|
|
669
669
|
e.cdnFileResolver,
|
|
670
670
|
`/480/${y}.jpg${Y}`
|
|
@@ -681,20 +681,20 @@ const Ga = {
|
|
|
681
681
|
e.cdnFileResolver,
|
|
682
682
|
`/480/${y}.jpg${Y}`
|
|
683
683
|
);
|
|
684
|
-
return { sourceSet:
|
|
684
|
+
return { sourceSet: O, defaultPath: P };
|
|
685
685
|
}
|
|
686
686
|
function h(b, y) {
|
|
687
|
-
const Y =
|
|
688
|
-
return
|
|
687
|
+
const Y = st / 2, O = Math.abs(b - y);
|
|
688
|
+
return O > Y ? st - O : O;
|
|
689
689
|
}
|
|
690
690
|
function S(b, y) {
|
|
691
691
|
if (b === y)
|
|
692
692
|
return 0;
|
|
693
|
-
const
|
|
694
|
-
return
|
|
693
|
+
const O = Math.abs(b - y) < st / 2;
|
|
694
|
+
return O && b < y || !O && b > y ? 1 : -1;
|
|
695
695
|
}
|
|
696
696
|
return (b, y) => {
|
|
697
|
-
const Y =
|
|
697
|
+
const Y = E("v-icon");
|
|
698
698
|
return d(), x("div", null, [
|
|
699
699
|
o.value.isError ? (d(), x("div", Ga, [
|
|
700
700
|
C(Y, { "x-large": "" }, {
|
|
@@ -704,17 +704,17 @@ const Ga = {
|
|
|
704
704
|
_: 1
|
|
705
705
|
})
|
|
706
706
|
])) : m.value ? (d(), x("div", Xa, [
|
|
707
|
-
(d(!0), x(
|
|
708
|
-
key:
|
|
709
|
-
alt:
|
|
710
|
-
class: ge({ "frame-image": !0, show:
|
|
707
|
+
(d(!0), x(me, null, ye(s.value, (O) => (d(), x("picture", {
|
|
708
|
+
key: O.index,
|
|
709
|
+
alt: O.index,
|
|
710
|
+
class: ge({ "frame-image": !0, show: O.show })
|
|
711
711
|
}, [
|
|
712
712
|
u("source", {
|
|
713
|
-
srcset:
|
|
713
|
+
srcset: O.sourceSet,
|
|
714
714
|
type: "image/jpeg"
|
|
715
715
|
}, null, 8, en),
|
|
716
716
|
u("img", {
|
|
717
|
-
src:
|
|
717
|
+
src: O.defaultPath,
|
|
718
718
|
alt: "Building image",
|
|
719
719
|
onLoad: y[2] || (y[2] = (P) => o.value.partLoaded()),
|
|
720
720
|
onError: y[3] || (y[3] = (P) => o.value.errorDetected())
|
|
@@ -728,8 +728,8 @@ const Ga = {
|
|
|
728
728
|
}, null, 8, qa),
|
|
729
729
|
u("img", {
|
|
730
730
|
src: p.value.defaultPath,
|
|
731
|
-
onLoad: y[0] || (y[0] = (
|
|
732
|
-
onError: y[1] || (y[1] = (
|
|
731
|
+
onLoad: y[0] || (y[0] = (O) => m.value = !0),
|
|
732
|
+
onError: y[1] || (y[1] = (O) => o.value.errorDetected())
|
|
733
733
|
}, null, 40, Ja)
|
|
734
734
|
])) : $("", !0)
|
|
735
735
|
]))
|
|
@@ -749,8 +749,8 @@ const Ga = {
|
|
|
749
749
|
return e.pos.x <= e.pos.width / 2 ? (o = "-100%", s = "-8px") : (o = "0%", s = "8px"), e.pos.y <= e.pos.height / 2 ? (i = "-100%", m = "-8px") : (i = "0%", m = "8px"), `translate(${o}, ${i}) translate(${s}, ${m})`;
|
|
750
750
|
});
|
|
751
751
|
return (o, i) => {
|
|
752
|
-
const s =
|
|
753
|
-
return d(),
|
|
752
|
+
const s = E("v-dialog"), m = E("v-fade-transition");
|
|
753
|
+
return d(), T(m, {
|
|
754
754
|
origin: `top left ${o.pos.x} ${o.pos.y}`
|
|
755
755
|
}, {
|
|
756
756
|
default: _(() => [
|
|
@@ -764,15 +764,15 @@ const Ga = {
|
|
|
764
764
|
transform: t.value
|
|
765
765
|
})
|
|
766
766
|
}, [
|
|
767
|
-
|
|
768
|
-
], 4)) : (d(),
|
|
767
|
+
le(o.$slots, "default", { isHoverable: o.isHoverable }, void 0, !0)
|
|
768
|
+
], 4)) : (d(), T(s, {
|
|
769
769
|
key: 1,
|
|
770
770
|
value: !0,
|
|
771
771
|
width: "auto",
|
|
772
772
|
"onClick:outside": i[0] || (i[0] = (p) => n("outside", p))
|
|
773
773
|
}, {
|
|
774
774
|
default: _(() => [
|
|
775
|
-
|
|
775
|
+
le(o.$slots, "default", { isHoverable: o.isHoverable }, void 0, !0)
|
|
776
776
|
]),
|
|
777
777
|
_: 3
|
|
778
778
|
}))
|
|
@@ -781,7 +781,7 @@ const Ga = {
|
|
|
781
781
|
}, 8, ["origin"]);
|
|
782
782
|
};
|
|
783
783
|
}
|
|
784
|
-
}),
|
|
784
|
+
}), tt = /* @__PURE__ */ ee(ln, [["__scopeId", "data-v-7d5e6067"]]), sn = /* @__PURE__ */ j({
|
|
785
785
|
__name: "VZoomBox",
|
|
786
786
|
props: {
|
|
787
787
|
desktop: { type: Boolean, default: !0 },
|
|
@@ -795,7 +795,7 @@ const Ga = {
|
|
|
795
795
|
setup(l, { expose: a, emit: e }) {
|
|
796
796
|
const n = l, t = e;
|
|
797
797
|
a({
|
|
798
|
-
adjustZoom:
|
|
798
|
+
adjustZoom: ve
|
|
799
799
|
});
|
|
800
800
|
const o = v(100), i = v(0), s = v(0), m = v(!1), p = v(!1), r = v(void 0), f = v(!1), k = v(), g = B(() => `translateX(${i.value}px) translateY(${s.value}px) scale(${c.value})`), c = B(() => o.value / 100), h = B(() => n.maxScale * 100);
|
|
801
801
|
H(
|
|
@@ -816,26 +816,26 @@ const Ga = {
|
|
|
816
816
|
}
|
|
817
817
|
), Ie(() => {
|
|
818
818
|
n.desktop && S(), n.mobile && b();
|
|
819
|
-
}),
|
|
819
|
+
}), Ne(() => {
|
|
820
820
|
n.desktop && y(), n.mobile && Y();
|
|
821
821
|
});
|
|
822
822
|
function S() {
|
|
823
|
-
k.value.addEventListener("wheel",
|
|
823
|
+
k.value.addEventListener("wheel", O, {
|
|
824
824
|
capture: !0
|
|
825
825
|
}), k.value.addEventListener("mousedown", P, {
|
|
826
826
|
capture: !0
|
|
827
827
|
}), k.value.addEventListener("mousemove", I, {
|
|
828
828
|
capture: !0
|
|
829
|
-
}), window.addEventListener("mouseup",
|
|
829
|
+
}), window.addEventListener("mouseup", L, {
|
|
830
830
|
capture: !0
|
|
831
|
-
}), window.addEventListener("click",
|
|
831
|
+
}), window.addEventListener("click", Z, {
|
|
832
832
|
capture: !0
|
|
833
833
|
});
|
|
834
834
|
}
|
|
835
835
|
function b() {
|
|
836
836
|
k.value.addEventListener("touchstart", R, {
|
|
837
837
|
capture: !0
|
|
838
|
-
}), k.value.addEventListener("touchmove",
|
|
838
|
+
}), k.value.addEventListener("touchmove", X, {
|
|
839
839
|
capture: !0
|
|
840
840
|
}), window.addEventListener("touchend", w, {
|
|
841
841
|
capture: !0
|
|
@@ -844,22 +844,22 @@ const Ga = {
|
|
|
844
844
|
});
|
|
845
845
|
}
|
|
846
846
|
function y() {
|
|
847
|
-
k.value.removeEventListener("wheel",
|
|
847
|
+
k.value.removeEventListener("wheel", O, {
|
|
848
848
|
capture: !0
|
|
849
849
|
}), k.value.removeEventListener("mousedown", P, {
|
|
850
850
|
capture: !0
|
|
851
851
|
}), k.value.removeEventListener("mousemove", I, {
|
|
852
852
|
capture: !0
|
|
853
|
-
}), window.removeEventListener("mouseup",
|
|
853
|
+
}), window.removeEventListener("mouseup", L, {
|
|
854
854
|
capture: !0
|
|
855
|
-
}), window.removeEventListener("click",
|
|
855
|
+
}), window.removeEventListener("click", Z, {
|
|
856
856
|
capture: !0
|
|
857
857
|
});
|
|
858
858
|
}
|
|
859
859
|
function Y() {
|
|
860
860
|
k.value.removeEventListener("touchstart", R, {
|
|
861
861
|
capture: !0
|
|
862
|
-
}), k.value.removeEventListener("touchmove",
|
|
862
|
+
}), k.value.removeEventListener("touchmove", X, {
|
|
863
863
|
capture: !0
|
|
864
864
|
}), window.removeEventListener("touchend", w, {
|
|
865
865
|
capture: !0
|
|
@@ -867,79 +867,79 @@ const Ga = {
|
|
|
867
867
|
capture: !0
|
|
868
868
|
});
|
|
869
869
|
}
|
|
870
|
-
function
|
|
871
|
-
const { x:
|
|
872
|
-
|
|
870
|
+
function O(M) {
|
|
871
|
+
const { x: q, y: J } = A(M);
|
|
872
|
+
ve(-M.deltaY / 10, q, J), M.preventDefault();
|
|
873
873
|
}
|
|
874
|
-
function P(
|
|
875
|
-
m.value = !0, f.value = !1, r.value =
|
|
874
|
+
function P(M) {
|
|
875
|
+
m.value = !0, f.value = !1, r.value = M;
|
|
876
876
|
}
|
|
877
|
-
function I(
|
|
877
|
+
function I(M) {
|
|
878
878
|
if (m.value) {
|
|
879
|
-
const { x:
|
|
880
|
-
x:
|
|
881
|
-
y:
|
|
879
|
+
const { x: q, y: J } = A(M), { x: re, y: se } = A(r.value), ie = {
|
|
880
|
+
x: q - re,
|
|
881
|
+
y: J - se
|
|
882
882
|
};
|
|
883
|
-
W(
|
|
883
|
+
W(ie.x), N(ie.y), f.value = !0, r.value = M;
|
|
884
884
|
}
|
|
885
885
|
}
|
|
886
|
-
function M
|
|
887
|
-
m.value && f.value && n.consumeMouseUpWhenMoved && (
|
|
886
|
+
function L(M) {
|
|
887
|
+
m.value && f.value && n.consumeMouseUpWhenMoved && (M.preventDefault(), M.stopImmediatePropagation());
|
|
888
888
|
}
|
|
889
|
-
function
|
|
890
|
-
m.value && (f.value && n.consumeMouseClickWhenMoved && (
|
|
889
|
+
function Z(M) {
|
|
890
|
+
m.value && (f.value && n.consumeMouseClickWhenMoved && (M.preventDefault(), M.stopImmediatePropagation()), m.value = !1);
|
|
891
891
|
}
|
|
892
|
-
function R(
|
|
893
|
-
m.value =
|
|
892
|
+
function R(M) {
|
|
893
|
+
m.value = M.touches.length === 1, p.value = M.touches.length === 2, r.value = M;
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function X(M) {
|
|
896
896
|
if (m.value) {
|
|
897
|
-
const { x:
|
|
897
|
+
const { x: q, y: J } = A(M.touches[0]), { x: re, y: se } = A(
|
|
898
898
|
r.value.touches[0]
|
|
899
|
-
),
|
|
900
|
-
x:
|
|
901
|
-
y:
|
|
899
|
+
), ie = {
|
|
900
|
+
x: q - re,
|
|
901
|
+
y: J - se
|
|
902
902
|
};
|
|
903
|
-
W(
|
|
904
|
-
} else if (p.value &&
|
|
905
|
-
const { x:
|
|
903
|
+
W(ie.x), N(ie.y);
|
|
904
|
+
} else if (p.value && M.touches.length === 2) {
|
|
905
|
+
const { x: q, y: J } = A(M.touches[0]), { x: re, y: se } = A(
|
|
906
906
|
r.value.touches[0]
|
|
907
|
-
), { x:
|
|
907
|
+
), { x: ie, y: _e } = A(M.touches[1]), { x: ue, y: Le } = A(
|
|
908
908
|
r.value.touches[1]
|
|
909
|
-
), Ae = Math.hypot(
|
|
910
|
-
|
|
909
|
+
), Ae = Math.hypot(re - ue, se - Le), He = Math.hypot(q - ie, J - _e), be = (ie + q) / 2, xe = (_e + J) / 2;
|
|
910
|
+
ve(He - Ae, be, xe);
|
|
911
911
|
}
|
|
912
|
-
r.value =
|
|
912
|
+
r.value = M;
|
|
913
913
|
}
|
|
914
914
|
function w() {
|
|
915
915
|
m.value = !1, p.value = !1;
|
|
916
916
|
}
|
|
917
|
-
function A(
|
|
918
|
-
const { left:
|
|
917
|
+
function A(M) {
|
|
918
|
+
const { left: q, top: J } = k.value.getBoundingClientRect();
|
|
919
919
|
return {
|
|
920
|
-
x:
|
|
921
|
-
y:
|
|
920
|
+
x: M.clientX - q,
|
|
921
|
+
y: M.clientY - J
|
|
922
922
|
};
|
|
923
923
|
}
|
|
924
|
-
function W(
|
|
925
|
-
const
|
|
924
|
+
function W(M) {
|
|
925
|
+
const q = k.value.clientWidth, J = q * c.value;
|
|
926
926
|
i.value = Math.max(
|
|
927
|
-
Math.min(0, i.value +
|
|
928
|
-
-(
|
|
927
|
+
Math.min(0, i.value + M),
|
|
928
|
+
-(J - q)
|
|
929
929
|
);
|
|
930
930
|
}
|
|
931
|
-
function N(
|
|
932
|
-
const
|
|
931
|
+
function N(M) {
|
|
932
|
+
const q = k.value.clientHeight, J = q * c.value;
|
|
933
933
|
s.value = Math.max(
|
|
934
|
-
Math.min(0, s.value +
|
|
935
|
-
-(
|
|
934
|
+
Math.min(0, s.value + M),
|
|
935
|
+
-(J - q)
|
|
936
936
|
);
|
|
937
937
|
}
|
|
938
|
-
function
|
|
939
|
-
const
|
|
940
|
-
o.value = Math.min(Math.max(100, o.value +
|
|
941
|
-
const Ae =
|
|
942
|
-
i.value -=
|
|
938
|
+
function ve(M, q, J) {
|
|
939
|
+
const re = q !== void 0 ? q : k.value.clientWidth / 2, se = J !== void 0 ? J : k.value.clientHeight / 2, ie = k.value.clientWidth, _e = k.value.clientHeight, ue = ie * c.value, Le = _e * c.value;
|
|
940
|
+
o.value = Math.min(Math.max(100, o.value + M), h.value);
|
|
941
|
+
const Ae = ie * c.value, He = _e * c.value, be = Ae - ue, xe = He - Le;
|
|
942
|
+
i.value -= re / ie * be, s.value -= se / _e * xe, W(0), N(0);
|
|
943
943
|
}
|
|
944
944
|
function z() {
|
|
945
945
|
t("update", {
|
|
@@ -949,13 +949,13 @@ const Ga = {
|
|
|
949
949
|
current: Math.min(Math.max(100, o.value), h.value),
|
|
950
950
|
min: 100,
|
|
951
951
|
max: h.value,
|
|
952
|
-
resolve: (
|
|
953
|
-
const
|
|
952
|
+
resolve: (M, q) => {
|
|
953
|
+
const J = k.value.clientWidth, re = k.value.clientHeight, se = i.value / -c.value, ie = s.value / -c.value, _e = se + J / c.value, ue = ie + re / c.value, Le = M / J * (_e - se) + se, Ae = q / re * (ue - ie) + ie;
|
|
954
954
|
return { x: Le, y: Ae };
|
|
955
955
|
}
|
|
956
956
|
});
|
|
957
957
|
}
|
|
958
|
-
return (
|
|
958
|
+
return (M, q) => (d(), x("div", {
|
|
959
959
|
ref_key: "box",
|
|
960
960
|
ref: k,
|
|
961
961
|
class: "zoom-box-container",
|
|
@@ -965,16 +965,16 @@ const Ga = {
|
|
|
965
965
|
style: fe({ "transform-origin": "top left", transform: g.value }),
|
|
966
966
|
class: "zoom-box"
|
|
967
967
|
}, [
|
|
968
|
-
|
|
968
|
+
le(M.$slots, "default", {}, void 0, !0)
|
|
969
969
|
], 4)
|
|
970
970
|
], 4));
|
|
971
971
|
}
|
|
972
|
-
}),
|
|
972
|
+
}), at = /* @__PURE__ */ ee(sn, [["__scopeId", "data-v-3e334a46"]]), Lt = 4;
|
|
973
973
|
function Zt(l) {
|
|
974
|
-
return l <
|
|
974
|
+
return l < Lt ? l + 1 : 1;
|
|
975
975
|
}
|
|
976
976
|
function rn(l) {
|
|
977
|
-
return l > 1 ? l - 1 :
|
|
977
|
+
return l > 1 ? l - 1 : Lt;
|
|
978
978
|
}
|
|
979
979
|
class un {
|
|
980
980
|
constructor(a) {
|
|
@@ -1050,12 +1050,12 @@ const cn = { key: 0 }, dn = { class: "interactive-viewer" }, vn = { class: "fill
|
|
|
1050
1050
|
emits: ["selectUnit", "goToUnit", "navUnit", "hoverOverUnit", "hoverOutUnit", "initialized"],
|
|
1051
1051
|
setup(l, { emit: a }) {
|
|
1052
1052
|
const e = [0, 16, 32, 48], n = l, t = a;
|
|
1053
|
-
|
|
1054
|
-
|
|
1053
|
+
et(
|
|
1054
|
+
$e,
|
|
1055
1055
|
n.i18nConfig ? new Re(n.i18nConfig) : new Re()
|
|
1056
1056
|
);
|
|
1057
|
-
const o =
|
|
1058
|
-
|
|
1057
|
+
const o = yt({ isReady: !1, isError: !1 }), i = v(), s = v(), m = v(), p = v(), r = v({ x: 0, y: 0, width: 0, height: 0 }), f = v(), k = v(), g = v(), c = B(() => g.value.isHoverEnabled), h = B(() => n.useSvg ? Ya : Ba), S = B(() => n.selectedUnitId), b = B(() => n.nextUnitId), y = B(() => n.prevUnitId);
|
|
1058
|
+
Te(() => {
|
|
1059
1059
|
if (S.value && p.value) {
|
|
1060
1060
|
const I = i.value[S.value];
|
|
1061
1061
|
I && (p.value.currentScene = I);
|
|
@@ -1066,22 +1066,22 @@ const cn = { key: 0 }, dn = { class: "interactive-viewer" }, vn = { class: "fill
|
|
|
1066
1066
|
unitId: R.apartmentID,
|
|
1067
1067
|
index: R.index
|
|
1068
1068
|
})) : [], i.value = n.apartmentChooserData && n.apartmentChooserData.sceneData !== void 0 ? n.apartmentChooserData.sceneData.map((R) => {
|
|
1069
|
-
const
|
|
1070
|
-
return { unitId: R.apartmentID, scene:
|
|
1071
|
-
}).reduce((R,
|
|
1072
|
-
const
|
|
1069
|
+
const X = R.bestScene === 0 ? 4 : R.bestScene;
|
|
1070
|
+
return { unitId: R.apartmentID, scene: X };
|
|
1071
|
+
}).reduce((R, X) => ({ ...R, [X.unitId]: X.scene }), {}) : {};
|
|
1072
|
+
const L = (R, X = "unitId") => {
|
|
1073
1073
|
let w = I, A = [];
|
|
1074
|
-
for (let W = 0; W <
|
|
1074
|
+
for (let W = 0; W < Lt; W++)
|
|
1075
1075
|
A.push(w), w = Zt(w);
|
|
1076
1076
|
return R.sort((W, N) => {
|
|
1077
|
-
const
|
|
1078
|
-
(
|
|
1077
|
+
const ve = A.findIndex(
|
|
1078
|
+
(M) => M === i.value[W[X]]
|
|
1079
1079
|
), z = A.findIndex(
|
|
1080
|
-
(
|
|
1080
|
+
(M) => M === i.value[N[X]]
|
|
1081
1081
|
);
|
|
1082
|
-
return
|
|
1082
|
+
return ve < z ? -1 : ve > z ? 1 : 0;
|
|
1083
1083
|
}), R;
|
|
1084
|
-
},
|
|
1084
|
+
}, Z = (R) => {
|
|
1085
1085
|
p.value = new un(R);
|
|
1086
1086
|
};
|
|
1087
1087
|
t("initialized", {
|
|
@@ -1089,25 +1089,25 @@ const cn = { key: 0 }, dn = { class: "interactive-viewer" }, vn = { class: "fill
|
|
|
1089
1089
|
scenes: m.value,
|
|
1090
1090
|
sceneData: s.value,
|
|
1091
1091
|
scenesByApartment: i.value,
|
|
1092
|
-
unitsSceneSort:
|
|
1093
|
-
initialize:
|
|
1092
|
+
unitsSceneSort: L,
|
|
1093
|
+
initialize: Z
|
|
1094
1094
|
});
|
|
1095
1095
|
});
|
|
1096
1096
|
function Y(I) {
|
|
1097
1097
|
r.value = I;
|
|
1098
1098
|
}
|
|
1099
|
-
function
|
|
1099
|
+
function O(I) {
|
|
1100
1100
|
k.value = I.hoverUnit, f.value = I.closeHandler, t("hoverOverUnit", I.hoverUnit);
|
|
1101
1101
|
}
|
|
1102
1102
|
function P(I) {
|
|
1103
1103
|
k.value = null, f.value = I.closeHandler, t("hoverOutUnit", I.hoverUnit);
|
|
1104
1104
|
}
|
|
1105
|
-
return (I,
|
|
1106
|
-
const
|
|
1105
|
+
return (I, L) => {
|
|
1106
|
+
const Z = E("v-progress-linear");
|
|
1107
1107
|
return p.value ? (d(), x("div", cn, [
|
|
1108
1108
|
u("div", dn, [
|
|
1109
1109
|
u("div", vn, [
|
|
1110
|
-
C(
|
|
1110
|
+
C(at, {
|
|
1111
1111
|
desktop: o.isReady && I.interactiveDesktop,
|
|
1112
1112
|
mobile: o.isReady && I.interactiveMobile
|
|
1113
1113
|
}, {
|
|
@@ -1117,12 +1117,12 @@ const cn = { key: 0 }, dn = { class: "interactive-viewer" }, vn = { class: "fill
|
|
|
1117
1117
|
"view-model": p.value,
|
|
1118
1118
|
"cardinal-frames": m.value,
|
|
1119
1119
|
build: I.build,
|
|
1120
|
-
onProgress:
|
|
1121
|
-
onLoaded:
|
|
1122
|
-
onError:
|
|
1120
|
+
onProgress: L[0] || (L[0] = (R) => o.progress = R),
|
|
1121
|
+
onLoaded: L[1] || (L[1] = (R) => o.isReady = !0),
|
|
1122
|
+
onError: L[2] || (L[2] = (R) => o.isError = !0)
|
|
1123
1123
|
}, null, 8, ["cdn-file-resolver", "view-model", "cardinal-frames", "build"]),
|
|
1124
1124
|
o.isReady ? (d(), x("div", mn, [
|
|
1125
|
-
(d(),
|
|
1125
|
+
(d(), T(Gt(h.value), {
|
|
1126
1126
|
"cdn-file-resolver": n.cdnFileResolver,
|
|
1127
1127
|
"view-model": p.value,
|
|
1128
1128
|
"selected-unit-id": S.value,
|
|
@@ -1130,14 +1130,14 @@ const cn = { key: 0 }, dn = { class: "interactive-viewer" }, vn = { class: "fill
|
|
|
1130
1130
|
"color-callback": n.colorCallback,
|
|
1131
1131
|
"can-go-to-unit-callback": n.canGoToUnitCallback,
|
|
1132
1132
|
"draw-observer": n.drawObserver,
|
|
1133
|
-
onSelectUnit:
|
|
1134
|
-
onGoToUnit:
|
|
1135
|
-
onHoverOver:
|
|
1133
|
+
onSelectUnit: L[3] || (L[3] = (R) => t("selectUnit", R)),
|
|
1134
|
+
onGoToUnit: L[4] || (L[4] = (R) => t("goToUnit", R)),
|
|
1135
|
+
onHoverOver: O,
|
|
1136
1136
|
onHoverOut: P,
|
|
1137
1137
|
onPos: Y
|
|
1138
1138
|
}, {
|
|
1139
1139
|
default: _((R) => [
|
|
1140
|
-
|
|
1140
|
+
le(I.$slots, "default", rt(ut(R)), void 0, !0)
|
|
1141
1141
|
]),
|
|
1142
1142
|
_: 3
|
|
1143
1143
|
}, 40, ["cdn-file-resolver", "view-model", "selected-unit-id", "scene-data", "color-callback", "can-go-to-unit-callback", "draw-observer"]))
|
|
@@ -1145,14 +1145,14 @@ const cn = { key: 0 }, dn = { class: "interactive-viewer" }, vn = { class: "fill
|
|
|
1145
1145
|
]),
|
|
1146
1146
|
_: 3
|
|
1147
1147
|
}, 8, ["desktop", "mobile"]),
|
|
1148
|
-
k.value && I.showCards ? (d(),
|
|
1148
|
+
k.value && I.showCards ? (d(), T(tt, {
|
|
1149
1149
|
key: 0,
|
|
1150
1150
|
"is-hoverable": c.value,
|
|
1151
1151
|
pos: r.value,
|
|
1152
1152
|
onOutside: f.value
|
|
1153
1153
|
}, {
|
|
1154
1154
|
default: _(() => [
|
|
1155
|
-
|
|
1155
|
+
le(I.$slots, "default", {
|
|
1156
1156
|
unit: k.value,
|
|
1157
1157
|
canGoToUnit: I.canGoToUnitCallback(k.value),
|
|
1158
1158
|
goToUnit: () => I.canGoToUnitCallback(k.value) && t("goToUnit", k.value),
|
|
@@ -1171,20 +1171,20 @@ const cn = { key: 0 }, dn = { class: "interactive-viewer" }, vn = { class: "fill
|
|
|
1171
1171
|
"prev-unit-id": y.value,
|
|
1172
1172
|
"next-unit-id": b.value,
|
|
1173
1173
|
"view-model": p.value,
|
|
1174
|
-
onGoToUnit:
|
|
1175
|
-
onPrevUnit:
|
|
1176
|
-
onNextUnit:
|
|
1174
|
+
onGoToUnit: L[5] || (L[5] = (R) => t("goToUnit", R)),
|
|
1175
|
+
onPrevUnit: L[6] || (L[6] = (R) => t("navUnit", y.value)),
|
|
1176
|
+
onNextUnit: L[7] || (L[7] = (R) => t("navUnit", b.value))
|
|
1177
1177
|
}, null, 8, ["can-go-to-unit-callback", "unit-renderer", "selected-unit-id", "prev-unit-id", "next-unit-id", "view-model"])
|
|
1178
1178
|
])) : o.isError ? $("", !0) : (d(), x("div", fn, [
|
|
1179
|
-
C(
|
|
1179
|
+
C(Z, {
|
|
1180
1180
|
indeterminate: !o.progress,
|
|
1181
1181
|
modelValue: o.progress,
|
|
1182
|
-
"onUpdate:modelValue":
|
|
1182
|
+
"onUpdate:modelValue": L[8] || (L[8] = (R) => o.progress = R)
|
|
1183
1183
|
}, null, 8, ["indeterminate", "modelValue"])
|
|
1184
1184
|
]))
|
|
1185
1185
|
])
|
|
1186
1186
|
]),
|
|
1187
|
-
C(
|
|
1187
|
+
C(ze, {
|
|
1188
1188
|
ref_key: "hoverProbe",
|
|
1189
1189
|
ref: g
|
|
1190
1190
|
}, null, 512)
|
|
@@ -1217,7 +1217,7 @@ const cn = { key: 0 }, dn = { class: "interactive-viewer" }, vn = { class: "fill
|
|
|
1217
1217
|
},
|
|
1218
1218
|
setup(l) {
|
|
1219
1219
|
const a = l;
|
|
1220
|
-
return (e, n) => (d(!0), x(
|
|
1220
|
+
return (e, n) => (d(!0), x(me, null, ye(a.dayData.timeSamples, (t) => (d(), T(Cn, {
|
|
1221
1221
|
"time-sample-data": t,
|
|
1222
1222
|
"cdn-file-resolver": a.cdnFileResolver,
|
|
1223
1223
|
"current-time": e.currentTime
|
|
@@ -1232,7 +1232,7 @@ const cn = { key: 0 }, dn = { class: "interactive-viewer" }, vn = { class: "fill
|
|
|
1232
1232
|
},
|
|
1233
1233
|
setup(l) {
|
|
1234
1234
|
const a = l;
|
|
1235
|
-
return (e, n) => (d(!0), x(
|
|
1235
|
+
return (e, n) => (d(!0), x(me, null, ye(a.cameraData.sunsimDayOfYear, (t) => (d(), T(wn, {
|
|
1236
1236
|
"day-data": t,
|
|
1237
1237
|
"cdn-file-resolver": a.cdnFileResolver,
|
|
1238
1238
|
"current-time": a.currentTime
|
|
@@ -1275,10 +1275,10 @@ function Dn(l) {
|
|
|
1275
1275
|
return !1;
|
|
1276
1276
|
return !0;
|
|
1277
1277
|
}
|
|
1278
|
-
function
|
|
1278
|
+
function Mt(l) {
|
|
1279
1279
|
return !("filename" in l);
|
|
1280
1280
|
}
|
|
1281
|
-
function
|
|
1281
|
+
function Dt(l) {
|
|
1282
1282
|
return "filename" in l;
|
|
1283
1283
|
}
|
|
1284
1284
|
const An = /* @__PURE__ */ j({
|
|
@@ -1300,7 +1300,7 @@ const An = /* @__PURE__ */ j({
|
|
|
1300
1300
|
}
|
|
1301
1301
|
);
|
|
1302
1302
|
const o = B(
|
|
1303
|
-
() => e.apartmentChooserData ? e.apartmentChooserData.cameras.filter(
|
|
1303
|
+
() => e.apartmentChooserData ? e.apartmentChooserData.cameras.filter(Mt) : []
|
|
1304
1304
|
);
|
|
1305
1305
|
return H(t, () => {
|
|
1306
1306
|
n(
|
|
@@ -1310,8 +1310,8 @@ const An = /* @__PURE__ */ j({
|
|
|
1310
1310
|
)
|
|
1311
1311
|
);
|
|
1312
1312
|
}), (i, s) => {
|
|
1313
|
-
const m =
|
|
1314
|
-
return d(),
|
|
1313
|
+
const m = E("v-select");
|
|
1314
|
+
return d(), T(m, {
|
|
1315
1315
|
modelValue: t.value,
|
|
1316
1316
|
"onUpdate:modelValue": s[0] || (s[0] = (p) => t.value = p),
|
|
1317
1317
|
items: o.value,
|
|
@@ -1355,8 +1355,8 @@ const An = /* @__PURE__ */ j({
|
|
|
1355
1355
|
});
|
|
1356
1356
|
}
|
|
1357
1357
|
return (i, s) => {
|
|
1358
|
-
const m =
|
|
1359
|
-
return d(),
|
|
1358
|
+
const m = E("v-list-item"), p = E("v-select");
|
|
1359
|
+
return d(), T(p, {
|
|
1360
1360
|
modelValue: t.value,
|
|
1361
1361
|
"onUpdate:modelValue": s[0] || (s[0] = (r) => t.value = r),
|
|
1362
1362
|
items: e.cameraData.sunsimDayOfYear,
|
|
@@ -1420,8 +1420,8 @@ const An = /* @__PURE__ */ j({
|
|
|
1420
1420
|
}, 200));
|
|
1421
1421
|
}
|
|
1422
1422
|
return (m, p) => {
|
|
1423
|
-
const r =
|
|
1424
|
-
return d(),
|
|
1423
|
+
const r = E("v-icon"), f = E("v-btn"), k = E("v-slider"), g = E("v-field");
|
|
1424
|
+
return d(), T(g, { variant: "solo" }, {
|
|
1425
1425
|
default: _(() => [
|
|
1426
1426
|
m.dayData.startTime === m.dayData.endTime ? (d(), x("div", Ln, [
|
|
1427
1427
|
C(r, {
|
|
@@ -1434,7 +1434,7 @@ const An = /* @__PURE__ */ j({
|
|
|
1434
1434
|
_: 1
|
|
1435
1435
|
}),
|
|
1436
1436
|
te(" " + Q(i(t.value)), 1)
|
|
1437
|
-
])) : (d(),
|
|
1437
|
+
])) : (d(), T(k, {
|
|
1438
1438
|
key: 1,
|
|
1439
1439
|
class: "pa-1",
|
|
1440
1440
|
modelValue: t.value,
|
|
@@ -1491,11 +1491,11 @@ const An = /* @__PURE__ */ j({
|
|
|
1491
1491
|
rotateShortestRoute: k
|
|
1492
1492
|
});
|
|
1493
1493
|
const o = v(!1), i = v(n.currentScene), s = v(n.selectedId);
|
|
1494
|
-
|
|
1494
|
+
Te(() => {
|
|
1495
1495
|
i.value = n.currentScene;
|
|
1496
|
-
}),
|
|
1496
|
+
}), Te(() => {
|
|
1497
1497
|
s.value = n.selectedId;
|
|
1498
|
-
}),
|
|
1498
|
+
}), Te(() => {
|
|
1499
1499
|
t("onSceneChange", i.value);
|
|
1500
1500
|
});
|
|
1501
1501
|
const m = B(() => o.value ? !1 : n.apartmentChooserData.loopable ? !0 : i.value !== n.apartmentChooserData.scenes[0]), p = B(() => o.value ? !1 : n.apartmentChooserData.loopable ? !0 : i.value !== n.apartmentChooserData.scenes[n.apartmentChooserData.scenes.length - 1]);
|
|
@@ -1540,8 +1540,8 @@ const An = /* @__PURE__ */ j({
|
|
|
1540
1540
|
});
|
|
1541
1541
|
}
|
|
1542
1542
|
return (c, h) => {
|
|
1543
|
-
const S =
|
|
1544
|
-
return d(), x(
|
|
1543
|
+
const S = E("v-btn"), b = E("v-chip");
|
|
1544
|
+
return d(), x(me, null, [
|
|
1545
1545
|
C(S, {
|
|
1546
1546
|
class: "mx-2",
|
|
1547
1547
|
icon: "mdi-restore",
|
|
@@ -1549,7 +1549,7 @@ const An = /* @__PURE__ */ j({
|
|
|
1549
1549
|
disabled: !m.value,
|
|
1550
1550
|
onClick: f
|
|
1551
1551
|
}, null, 8, ["disabled"]),
|
|
1552
|
-
c.renderDisplay && s.value ? (d(),
|
|
1552
|
+
c.renderDisplay && s.value ? (d(), T(b, {
|
|
1553
1553
|
key: 0,
|
|
1554
1554
|
variant: "flat",
|
|
1555
1555
|
color: "white",
|
|
@@ -1581,13 +1581,13 @@ const An = /* @__PURE__ */ j({
|
|
|
1581
1581
|
},
|
|
1582
1582
|
emits: ["onClick", "onHoverOver", "onHoverOut", "updateSvgContainer"],
|
|
1583
1583
|
setup(l, { emit: a }) {
|
|
1584
|
-
const e = l, n = a, t = v(), o = v(), i = v(e.selectedId), s =
|
|
1584
|
+
const e = l, n = a, t = v(), o = v(), i = v(e.selectedId), s = yt({});
|
|
1585
1585
|
H(
|
|
1586
1586
|
() => e.selectedId,
|
|
1587
1587
|
() => {
|
|
1588
1588
|
i.value = e.selectedId;
|
|
1589
1589
|
}
|
|
1590
|
-
),
|
|
1590
|
+
), Te(() => {
|
|
1591
1591
|
for (const r in s) {
|
|
1592
1592
|
const { element: f, state: k } = s[r], { r: g, g: c, b: h, a: S, s: b } = e.colorCallback(r, k) || {
|
|
1593
1593
|
r: 0,
|
|
@@ -1601,7 +1601,7 @@ const An = /* @__PURE__ */ j({
|
|
|
1601
1601
|
}), H(i, () => {
|
|
1602
1602
|
for (const r in s)
|
|
1603
1603
|
s[r].state === "selected" && r !== i.value ? s[r].state = "idle" : s[r].state !== "selected" && r === i.value && (s[r].state = "selected");
|
|
1604
|
-
}),
|
|
1604
|
+
}), Te(async () => {
|
|
1605
1605
|
t.value = await Fe.loadText(
|
|
1606
1606
|
he(e.cdnFileResolver, e.currentCamera.overlayFilename)
|
|
1607
1607
|
), p();
|
|
@@ -1656,7 +1656,7 @@ const An = /* @__PURE__ */ j({
|
|
|
1656
1656
|
}));
|
|
1657
1657
|
});
|
|
1658
1658
|
}
|
|
1659
|
-
return (r, f) => (d(),
|
|
1659
|
+
return (r, f) => (d(), T(Ee, null, {
|
|
1660
1660
|
default: _(() => [
|
|
1661
1661
|
(d(), x("div", {
|
|
1662
1662
|
ref_key: "svgContainer",
|
|
@@ -1670,7 +1670,7 @@ const An = /* @__PURE__ */ j({
|
|
|
1670
1670
|
_: 1
|
|
1671
1671
|
}));
|
|
1672
1672
|
}
|
|
1673
|
-
}), Rn = /* @__PURE__ */ ee(Bn, [["__scopeId", "data-v-09ccd2d0"]]), Un = "data:image/png;base64,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",
|
|
1673
|
+
}), Rn = /* @__PURE__ */ ee(Bn, [["__scopeId", "data-v-09ccd2d0"]]), Un = "data:image/png;base64,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", nt = /* @__PURE__ */ j({
|
|
1674
1674
|
__name: "VNorthDirection",
|
|
1675
1675
|
props: {
|
|
1676
1676
|
longitude: {}
|
|
@@ -1681,21 +1681,21 @@ const An = /* @__PURE__ */ j({
|
|
|
1681
1681
|
transition: " transform 0.5s ease-in"
|
|
1682
1682
|
}));
|
|
1683
1683
|
return (n, t) => {
|
|
1684
|
-
const o =
|
|
1685
|
-
return d(),
|
|
1684
|
+
const o = E("v-img");
|
|
1685
|
+
return d(), T(o, {
|
|
1686
1686
|
src: D(Un),
|
|
1687
1687
|
style: fe(e.value)
|
|
1688
1688
|
}, null, 8, ["src", "style"]);
|
|
1689
1689
|
};
|
|
1690
1690
|
}
|
|
1691
1691
|
});
|
|
1692
|
-
class
|
|
1692
|
+
class Xe {
|
|
1693
1693
|
constructor(a) {
|
|
1694
1694
|
pe(this, "_buildingIds");
|
|
1695
1695
|
this._buildingIds = a;
|
|
1696
1696
|
}
|
|
1697
1697
|
static empty() {
|
|
1698
|
-
return new
|
|
1698
|
+
return new Xe([]);
|
|
1699
1699
|
}
|
|
1700
1700
|
getBuildingId(a, e, n) {
|
|
1701
1701
|
const t = this._getBuildingIndex(a, e, n);
|
|
@@ -1776,14 +1776,14 @@ class qt {
|
|
|
1776
1776
|
}
|
|
1777
1777
|
}
|
|
1778
1778
|
}
|
|
1779
|
-
class
|
|
1779
|
+
class Ke {
|
|
1780
1780
|
constructor(a) {
|
|
1781
1781
|
pe(this, "_mapImage");
|
|
1782
1782
|
pe(this, "_context");
|
|
1783
1783
|
this._mapImage = a, this._context = null;
|
|
1784
1784
|
}
|
|
1785
1785
|
static empty() {
|
|
1786
|
-
return new
|
|
1786
|
+
return new Ke(null);
|
|
1787
1787
|
}
|
|
1788
1788
|
update(a) {
|
|
1789
1789
|
this._mapImage && (this._context = a.getContext("2d", { willReadFrequently: !0 }), this._context.drawImage(this._mapImage, 0, 0, a.width, a.height));
|
|
@@ -1797,14 +1797,14 @@ class Xe {
|
|
|
1797
1797
|
}
|
|
1798
1798
|
}
|
|
1799
1799
|
const Yn = /* @__PURE__ */ new Date(0);
|
|
1800
|
-
class
|
|
1800
|
+
class Ct {
|
|
1801
1801
|
constructor(a) {
|
|
1802
1802
|
pe(this, "_imagesByDay");
|
|
1803
1803
|
pe(this, "_state");
|
|
1804
1804
|
this._imagesByDay = a, this._state = { selectedIndex: 0 };
|
|
1805
1805
|
}
|
|
1806
1806
|
static empty() {
|
|
1807
|
-
return new
|
|
1807
|
+
return new Ct([{ referenceDate: Yn, urls: [] }]);
|
|
1808
1808
|
}
|
|
1809
1809
|
selectIndex(a) {
|
|
1810
1810
|
a < this._imagesByDay.length && (this._state.selectedIndex = a);
|
|
@@ -1825,19 +1825,19 @@ class bt {
|
|
|
1825
1825
|
return this._imagesByDay[this.selectedIndex].urls;
|
|
1826
1826
|
}
|
|
1827
1827
|
}
|
|
1828
|
-
function
|
|
1828
|
+
function it(l) {
|
|
1829
1829
|
return ("0" + l).slice(-2);
|
|
1830
1830
|
}
|
|
1831
1831
|
function zn() {
|
|
1832
1832
|
const l = /* @__PURE__ */ new Date();
|
|
1833
1833
|
return [
|
|
1834
1834
|
l.getFullYear().toString(),
|
|
1835
|
-
|
|
1836
|
-
|
|
1835
|
+
it(l.getMonth() + 1),
|
|
1836
|
+
it(l.getDate()),
|
|
1837
1837
|
" ",
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1838
|
+
it(l.getHours()),
|
|
1839
|
+
it(l.getMinutes()),
|
|
1840
|
+
it(l.getSeconds())
|
|
1841
1841
|
].join("");
|
|
1842
1842
|
}
|
|
1843
1843
|
function Pn() {
|
|
@@ -1896,7 +1896,7 @@ function Wn(l) {
|
|
|
1896
1896
|
]
|
|
1897
1897
|
}
|
|
1898
1898
|
]
|
|
1899
|
-
},
|
|
1899
|
+
}, Dt(o[m]) && (o[m] = r);
|
|
1900
1900
|
}
|
|
1901
1901
|
return {
|
|
1902
1902
|
version: "5.0",
|
|
@@ -1951,21 +1951,21 @@ const Nn = {
|
|
|
1951
1951
|
}), H(
|
|
1952
1952
|
() => b.value,
|
|
1953
1953
|
() => {
|
|
1954
|
-
b.value && new ResizeObserver(([
|
|
1955
|
-
Y.value =
|
|
1954
|
+
b.value && new ResizeObserver(([M]) => {
|
|
1955
|
+
Y.value = M.contentRect.width < e.mobileBreakpoint;
|
|
1956
1956
|
}).observe(b.value);
|
|
1957
1957
|
}
|
|
1958
1958
|
);
|
|
1959
|
-
const
|
|
1960
|
-
() => y.value ? y.value.cameras.filter(
|
|
1959
|
+
const O = B(
|
|
1960
|
+
() => y.value ? y.value.cameras.filter(Mt) : []
|
|
1961
1961
|
), P = B(
|
|
1962
|
-
() => y.value ? y.value.cameras.filter(
|
|
1962
|
+
() => y.value ? y.value.cameras.filter(Dt) : []
|
|
1963
1963
|
), I = async () => {
|
|
1964
1964
|
try {
|
|
1965
|
-
let z,
|
|
1966
|
-
return
|
|
1965
|
+
let z, M;
|
|
1966
|
+
return M = await Fe.loadJson(
|
|
1967
1967
|
he(e.cdnFileResolver, "/apartmentChooser.json")
|
|
1968
|
-
), parseInt(
|
|
1968
|
+
), parseInt(M.version) === 5 ? M : (z = Wn(M), z);
|
|
1969
1969
|
} catch (z) {
|
|
1970
1970
|
r.value = !1, n("onError", z);
|
|
1971
1971
|
}
|
|
@@ -1977,9 +1977,9 @@ const Nn = {
|
|
|
1977
1977
|
() => e.defaultCamera
|
|
1978
1978
|
],
|
|
1979
1979
|
async () => {
|
|
1980
|
-
e.cdnFileResolver && (y.value || (y.value = await I()), e.defaultCamera ? t.value =
|
|
1980
|
+
e.cdnFileResolver && (y.value || (y.value = await I()), e.defaultCamera ? t.value = O.value.find(
|
|
1981
1981
|
(z) => z.cameraName === e.defaultCamera
|
|
1982
|
-
) ||
|
|
1982
|
+
) || O.value[0] : t.value = O.value[0], m.value = y.value.cameras.findIndex(
|
|
1983
1983
|
(z) => z === t.value
|
|
1984
1984
|
), m.value = Math.max(0, m.value));
|
|
1985
1985
|
},
|
|
@@ -2003,38 +2003,38 @@ const Nn = {
|
|
|
2003
2003
|
},
|
|
2004
2004
|
{ immediate: !0 }
|
|
2005
2005
|
);
|
|
2006
|
-
function
|
|
2006
|
+
function L(z) {
|
|
2007
2007
|
t.value !== z && k.value.rotateShortestRoute(
|
|
2008
|
-
y.value.cameras.findIndex((
|
|
2008
|
+
y.value.cameras.findIndex((M) => M === z)
|
|
2009
2009
|
);
|
|
2010
2010
|
}
|
|
2011
|
-
function
|
|
2012
|
-
m.value = z,
|
|
2011
|
+
function Z(z) {
|
|
2012
|
+
m.value = z, Dt(y.value.cameras[m.value]) ? s.value = y.value.cameras[m.value] : (De(() => {
|
|
2013
2013
|
R(
|
|
2014
2014
|
y.value.cameras[m.value]
|
|
2015
2015
|
);
|
|
2016
2016
|
}), s.value = null);
|
|
2017
2017
|
}
|
|
2018
2018
|
function R(z) {
|
|
2019
|
-
const
|
|
2019
|
+
const M = o.value;
|
|
2020
2020
|
t.value = z, m.value = y.value.cameras.findIndex(
|
|
2021
|
-
(
|
|
2021
|
+
(q) => q === t.value
|
|
2022
2022
|
), De(() => {
|
|
2023
|
-
|
|
2023
|
+
X(
|
|
2024
2024
|
t.value.sunsimDayOfYear.find(
|
|
2025
|
-
(
|
|
2025
|
+
(q) => q.dayOfYear === M.dayOfYear
|
|
2026
2026
|
) || t.value.sunsimDayOfYear[0]
|
|
2027
2027
|
);
|
|
2028
2028
|
});
|
|
2029
2029
|
}
|
|
2030
|
-
function
|
|
2031
|
-
const
|
|
2030
|
+
function X(z) {
|
|
2031
|
+
const M = i.value;
|
|
2032
2032
|
o.value = z, De(() => {
|
|
2033
2033
|
w(
|
|
2034
2034
|
o.value.timeSamples.find(
|
|
2035
|
-
(
|
|
2035
|
+
(q) => q.timeInHours === M.timeInHours
|
|
2036
2036
|
) || o.value.timeSamples.find(
|
|
2037
|
-
(
|
|
2037
|
+
(q) => q.timeInHours === o.value.defaultHour
|
|
2038
2038
|
) || o.value.timeSamples[0]
|
|
2039
2039
|
);
|
|
2040
2040
|
});
|
|
@@ -2044,10 +2044,10 @@ const Nn = {
|
|
|
2044
2044
|
}
|
|
2045
2045
|
function A(z) {
|
|
2046
2046
|
n("onClick", z, () => {
|
|
2047
|
-
const
|
|
2048
|
-
(
|
|
2047
|
+
const M = y.value.unitData.find(
|
|
2048
|
+
(q) => q.unitId === z
|
|
2049
2049
|
);
|
|
2050
|
-
|
|
2050
|
+
M && k.value.rotateShortestRoute(M.bestScene);
|
|
2051
2051
|
});
|
|
2052
2052
|
}
|
|
2053
2053
|
function W(z) {
|
|
@@ -2056,65 +2056,65 @@ const Nn = {
|
|
|
2056
2056
|
function N(z) {
|
|
2057
2057
|
n("onHoverOut", z), p.value = void 0;
|
|
2058
2058
|
}
|
|
2059
|
-
function
|
|
2060
|
-
const { layerX:
|
|
2061
|
-
let
|
|
2062
|
-
for (;
|
|
2063
|
-
if (
|
|
2064
|
-
|
|
2059
|
+
function ve(z) {
|
|
2060
|
+
const { layerX: M, layerY: q } = z;
|
|
2061
|
+
let J = z.target, re = !1;
|
|
2062
|
+
for (; J; )
|
|
2063
|
+
if (J === S.value) {
|
|
2064
|
+
re = !0;
|
|
2065
2065
|
break;
|
|
2066
2066
|
} else
|
|
2067
|
-
|
|
2068
|
-
if (
|
|
2069
|
-
const
|
|
2067
|
+
J = J.parentElement;
|
|
2068
|
+
if (re) {
|
|
2069
|
+
const se = z.currentTarget;
|
|
2070
2070
|
h.value = {
|
|
2071
|
-
x:
|
|
2072
|
-
y:
|
|
2073
|
-
width:
|
|
2074
|
-
height:
|
|
2071
|
+
x: M,
|
|
2072
|
+
y: q,
|
|
2073
|
+
width: se.clientWidth,
|
|
2074
|
+
height: se.clientHeight
|
|
2075
2075
|
};
|
|
2076
2076
|
} else
|
|
2077
2077
|
h.value = void 0;
|
|
2078
2078
|
n("onMouseMove", z, h.value);
|
|
2079
2079
|
}
|
|
2080
|
-
return (z,
|
|
2081
|
-
const
|
|
2082
|
-
return d(), x(
|
|
2083
|
-
C(
|
|
2080
|
+
return (z, M) => {
|
|
2081
|
+
const q = E("v-skeleton-loader");
|
|
2082
|
+
return d(), x(me, null, [
|
|
2083
|
+
C(q, {
|
|
2084
2084
|
type: "image",
|
|
2085
2085
|
class: "w-100 h-100 position-relative",
|
|
2086
2086
|
loading: !r.value || !y.value
|
|
2087
2087
|
}, {
|
|
2088
2088
|
default: _(() => [
|
|
2089
|
-
C(
|
|
2089
|
+
C(Ee, { class: "w-100 h-100" }, {
|
|
2090
2090
|
default: _(() => [
|
|
2091
2091
|
u("div", {
|
|
2092
2092
|
ref_key: "container",
|
|
2093
2093
|
ref: b,
|
|
2094
2094
|
class: ge({ mobile: Y.value }),
|
|
2095
|
-
onMousemove:
|
|
2095
|
+
onMousemove: ve
|
|
2096
2096
|
}, [
|
|
2097
2097
|
u("div", Nn, [
|
|
2098
2098
|
u("div", Gn, [
|
|
2099
|
-
y.value.cameras.length > 1 ? (d(),
|
|
2099
|
+
y.value.cameras.length > 1 ? (d(), T(An, {
|
|
2100
2100
|
key: 0,
|
|
2101
2101
|
"apartment-chooser-data": y.value,
|
|
2102
2102
|
"current-camera": t.value,
|
|
2103
2103
|
disabled: f.value,
|
|
2104
|
-
onOnCameraChange:
|
|
2104
|
+
onOnCameraChange: L
|
|
2105
2105
|
}, null, 8, ["apartment-chooser-data", "current-camera", "disabled"])) : $("", !0)
|
|
2106
2106
|
]),
|
|
2107
2107
|
u("div", Qn, [
|
|
2108
|
-
t.value.sunsimDayOfYear.length > 1 ? (d(),
|
|
2108
|
+
t.value.sunsimDayOfYear.length > 1 ? (d(), T(Fn, {
|
|
2109
2109
|
key: 0,
|
|
2110
2110
|
"camera-data": t.value,
|
|
2111
2111
|
"current-day": o.value,
|
|
2112
2112
|
disabled: f.value,
|
|
2113
|
-
onOnDayChange:
|
|
2113
|
+
onOnDayChange: X
|
|
2114
2114
|
}, null, 8, ["camera-data", "current-day", "disabled"])) : $("", !0)
|
|
2115
2115
|
]),
|
|
2116
2116
|
u("div", Zn, [
|
|
2117
|
-
o.value.timeSamples.length > 1 ? (d(),
|
|
2117
|
+
o.value.timeSamples.length > 1 ? (d(), T(Tn, {
|
|
2118
2118
|
key: 0,
|
|
2119
2119
|
"day-data": o.value,
|
|
2120
2120
|
"current-time": i.value,
|
|
@@ -2124,7 +2124,7 @@ const Nn = {
|
|
|
2124
2124
|
])
|
|
2125
2125
|
]),
|
|
2126
2126
|
u("div", qn, [
|
|
2127
|
-
y.value.cameras.length > 1 ? (d(),
|
|
2127
|
+
y.value.cameras.length > 1 ? (d(), T(Vn, {
|
|
2128
2128
|
key: 0,
|
|
2129
2129
|
ref_key: "rotator",
|
|
2130
2130
|
ref: k,
|
|
@@ -2133,27 +2133,27 @@ const Nn = {
|
|
|
2133
2133
|
"selected-id": z.selectedId,
|
|
2134
2134
|
"render-display": e.renderDisplay,
|
|
2135
2135
|
onOnDisplayClick: A,
|
|
2136
|
-
onOnSceneChange:
|
|
2137
|
-
onOnRotateStart:
|
|
2138
|
-
onOnRotateFinish:
|
|
2136
|
+
onOnSceneChange: Z,
|
|
2137
|
+
onOnRotateStart: M[0] || (M[0] = (J) => f.value = !0),
|
|
2138
|
+
onOnRotateFinish: M[1] || (M[1] = (J) => f.value = !1)
|
|
2139
2139
|
}, null, 8, ["apartment-chooser-data", "current-scene", "selected-id", "render-display"])) : $("", !0)
|
|
2140
2140
|
]),
|
|
2141
2141
|
u("div", Jn, [
|
|
2142
|
-
t.value.cameraRotation ? (d(),
|
|
2142
|
+
t.value.cameraRotation ? (d(), T(nt, {
|
|
2143
2143
|
key: 0,
|
|
2144
2144
|
longitude: t.value.cameraRotation.y + 270
|
|
2145
2145
|
}, null, 8, ["longitude"])) : $("", !0)
|
|
2146
2146
|
]),
|
|
2147
|
-
C(
|
|
2147
|
+
C(at, { position: "relative" }, {
|
|
2148
2148
|
default: _(() => [
|
|
2149
|
-
(d(!0), x(
|
|
2150
|
-
key:
|
|
2151
|
-
"camera-data":
|
|
2149
|
+
(d(!0), x(me, null, ye(O.value, (J) => (d(), T(kn, {
|
|
2150
|
+
key: J.overlayFilename,
|
|
2151
|
+
"camera-data": J,
|
|
2152
2152
|
"cdn-file-resolver": e.cdnFileResolver,
|
|
2153
2153
|
"current-time": i.value
|
|
2154
2154
|
}, null, 8, ["camera-data", "cdn-file-resolver", "current-time"]))), 128)),
|
|
2155
|
-
(d(!0), x(
|
|
2156
|
-
"transition-data":
|
|
2155
|
+
(d(!0), x(me, null, ye(P.value, (J) => (d(), T(xn, {
|
|
2156
|
+
"transition-data": J,
|
|
2157
2157
|
"cdn-file-resolver": e.cdnFileResolver,
|
|
2158
2158
|
"current-transition": s.value
|
|
2159
2159
|
}, null, 8, ["transition-data", "cdn-file-resolver", "current-transition"]))), 256)),
|
|
@@ -2171,21 +2171,21 @@ const Nn = {
|
|
|
2171
2171
|
onOnClick: A,
|
|
2172
2172
|
onOnHoverOver: W,
|
|
2173
2173
|
onOnHoverOut: N,
|
|
2174
|
-
onUpdateSvgContainer:
|
|
2174
|
+
onUpdateSvgContainer: M[2] || (M[2] = (J) => S.value = J)
|
|
2175
2175
|
}, null, 8, ["cdn-file-resolver", "color-callback", "current-camera", "selected-id"]), [
|
|
2176
2176
|
[ke, s.value === null]
|
|
2177
2177
|
])
|
|
2178
2178
|
]),
|
|
2179
2179
|
_: 1
|
|
2180
2180
|
}),
|
|
2181
|
-
z.$slots.popup && h.value && p.value ? (d(),
|
|
2181
|
+
z.$slots.popup && h.value && p.value ? (d(), T(tt, {
|
|
2182
2182
|
key: 0,
|
|
2183
2183
|
"is-hoverable": c.value,
|
|
2184
2184
|
pos: h.value
|
|
2185
2185
|
}, {
|
|
2186
2186
|
default: _(() => [
|
|
2187
2187
|
u("div", Kn, [
|
|
2188
|
-
|
|
2188
|
+
le(z.$slots, "popup", rt(ut({ hoverId: p.value, hoverable: c.value })), void 0, !0)
|
|
2189
2189
|
])
|
|
2190
2190
|
]),
|
|
2191
2191
|
_: 3
|
|
@@ -2197,7 +2197,7 @@ const Nn = {
|
|
|
2197
2197
|
]),
|
|
2198
2198
|
_: 3
|
|
2199
2199
|
}, 8, ["loading"]),
|
|
2200
|
-
C(
|
|
2200
|
+
C(ze, {
|
|
2201
2201
|
ref_key: "hoverProbe",
|
|
2202
2202
|
ref: g
|
|
2203
2203
|
}, null, 512)
|
|
@@ -2243,10 +2243,10 @@ const Nn = {
|
|
|
2243
2243
|
(r) => {
|
|
2244
2244
|
t.value = Math.floor(r);
|
|
2245
2245
|
}
|
|
2246
|
-
),
|
|
2246
|
+
), Te(() => {
|
|
2247
2247
|
o.value = i(e.dateSelector.selectedDate);
|
|
2248
2248
|
}), (r, f) => {
|
|
2249
|
-
const k =
|
|
2249
|
+
const k = E("v-icon"), g = E("v-select"), c = E("v-progress-linear"), h = E("v-slider");
|
|
2250
2250
|
return d(), x("div", to, [
|
|
2251
2251
|
u("div", ao, [
|
|
2252
2252
|
C(k, {
|
|
@@ -2254,7 +2254,7 @@ const Nn = {
|
|
|
2254
2254
|
class: "mr-2",
|
|
2255
2255
|
icon: "mdi-calendar-blank-outline"
|
|
2256
2256
|
}),
|
|
2257
|
-
r.dateSelector.hasMultipleDates ? (d(),
|
|
2257
|
+
r.dateSelector.hasMultipleDates ? (d(), T(g, {
|
|
2258
2258
|
key: 0,
|
|
2259
2259
|
modelValue: o.value,
|
|
2260
2260
|
"onUpdate:modelValue": f[0] || (f[0] = (S) => o.value = S),
|
|
@@ -2276,7 +2276,7 @@ const Nn = {
|
|
|
2276
2276
|
]),
|
|
2277
2277
|
_: 1
|
|
2278
2278
|
}),
|
|
2279
|
-
r.isLoading ? (d(),
|
|
2279
|
+
r.isLoading ? (d(), T(c, {
|
|
2280
2280
|
key: 0,
|
|
2281
2281
|
style: { left: 0, transform: "none" },
|
|
2282
2282
|
indeterminate: "",
|
|
@@ -2284,7 +2284,7 @@ const Nn = {
|
|
|
2284
2284
|
height: "6",
|
|
2285
2285
|
color: "grey lighten-1",
|
|
2286
2286
|
class: "mr-2"
|
|
2287
|
-
})) : (d(),
|
|
2287
|
+
})) : (d(), T(h, {
|
|
2288
2288
|
key: 1,
|
|
2289
2289
|
modelValue: t.value,
|
|
2290
2290
|
"onUpdate:modelValue": f[1] || (f[1] = (S) => t.value = S),
|
|
@@ -2311,7 +2311,7 @@ const Nn = {
|
|
|
2311
2311
|
},
|
|
2312
2312
|
emits: ["resize", "ready", "preloaded", "reset"],
|
|
2313
2313
|
setup(l, { emit: a }) {
|
|
2314
|
-
const e = l, n = a, t = v("init"), o = v(new
|
|
2314
|
+
const e = l, n = a, t = v("init"), o = v(new xt(0)), i = v();
|
|
2315
2315
|
H(
|
|
2316
2316
|
() => e.imageUrls,
|
|
2317
2317
|
(p) => {
|
|
@@ -2329,7 +2329,7 @@ const Nn = {
|
|
|
2329
2329
|
t.value = "preloaded", n("preloaded");
|
|
2330
2330
|
}
|
|
2331
2331
|
function m(p) {
|
|
2332
|
-
t.value = "init", i.value.src = p[0], o.value = new
|
|
2332
|
+
t.value = "init", i.value.src = p[0], o.value = new xt(p.length).onLoadFinished(
|
|
2333
2333
|
() => {
|
|
2334
2334
|
t.value = "loaded", n("ready");
|
|
2335
2335
|
}
|
|
@@ -2344,7 +2344,7 @@ const Nn = {
|
|
|
2344
2344
|
onLoad: s
|
|
2345
2345
|
}, null, 544),
|
|
2346
2346
|
t.value === "preloaded" || t.value === "loaded" ? we((d(), x("div", io, [
|
|
2347
|
-
(d(!0), x(
|
|
2347
|
+
(d(!0), x(me, null, ye(p.imageUrls, (f, k) => (d(), x("img", {
|
|
2348
2348
|
key: k,
|
|
2349
2349
|
class: ge({ "image-instance": !0, active: k === p.activeIndex }),
|
|
2350
2350
|
src: f,
|
|
@@ -2376,8 +2376,8 @@ const Nn = {
|
|
|
2376
2376
|
emits: ["goToBuilding", "hoverOverBuilding", "hoverOutBuilding"],
|
|
2377
2377
|
setup(l, { emit: a }) {
|
|
2378
2378
|
const e = l, n = a;
|
|
2379
|
-
|
|
2380
|
-
|
|
2379
|
+
et(
|
|
2380
|
+
$e,
|
|
2381
2381
|
e.i18nConfig ? new Re(e.i18nConfig) : new Re()
|
|
2382
2382
|
);
|
|
2383
2383
|
const t = v({
|
|
@@ -2388,10 +2388,10 @@ const Nn = {
|
|
|
2388
2388
|
height: 0
|
|
2389
2389
|
}), i = v({ x: 0, y: 0, width: 0, height: 0 }), s = v(), m = v(
|
|
2390
2390
|
(/* @__PURE__ */ new Date()).getHours() * 2 + ((/* @__PURE__ */ new Date()).getMinutes() < 30 ? 0 : 1)
|
|
2391
|
-
), p = v(!1), r = v(new Fe()), f = v(), k = v("0 0 0 0"), g = v(), c = v(), h = v(
|
|
2391
|
+
), p = v(!1), r = v(new Fe()), f = v(), k = v("0 0 0 0"), g = v(), c = v(), h = v(Xe.empty()), S = v(Ke.empty()), b = v(), y = B(() => b.value.isHoverEnabled);
|
|
2392
2392
|
H(s, (w, A) => {
|
|
2393
2393
|
w ? n("hoverOverBuilding", w) : n("hoverOutBuilding", A);
|
|
2394
|
-
}),
|
|
2394
|
+
}), Te(() => {
|
|
2395
2395
|
if (e.buildingChooserTimeOfDay) {
|
|
2396
2396
|
const [w, A, W] = /^(\d\d):(\d\d)$/.exec(
|
|
2397
2397
|
e.buildingChooserTimeOfDay
|
|
@@ -2405,17 +2405,17 @@ const Nn = {
|
|
|
2405
2405
|
e.buildingChooserData
|
|
2406
2406
|
);
|
|
2407
2407
|
if (A) {
|
|
2408
|
-
S.value = new
|
|
2408
|
+
S.value = new Ke(A.mapImage), h.value = new Xe(A.buildingIds), g.value = new Ct(A.backgrounds), c.value = {
|
|
2409
2409
|
buildingOverlays: A.buildingOverlays,
|
|
2410
2410
|
viewLongitude: A.viewLongitude
|
|
2411
2411
|
};
|
|
2412
2412
|
const W = [];
|
|
2413
|
-
for (let { id: N, url:
|
|
2414
|
-
r.value.loadJson(
|
|
2415
|
-
const
|
|
2416
|
-
k.value =
|
|
2413
|
+
for (let { id: N, url: ve } of A.buildingOverlays)
|
|
2414
|
+
r.value.loadJson(ve.replace(".png", ".svg")).then((z) => {
|
|
2415
|
+
const q = new DOMParser().parseFromString(z, "image/svg+xml").getElementsByTagName("svg")[0];
|
|
2416
|
+
k.value = q.getAttribute("viewBox"), W.push({
|
|
2417
2417
|
id: N,
|
|
2418
|
-
svg:
|
|
2418
|
+
svg: q.innerHTML
|
|
2419
2419
|
});
|
|
2420
2420
|
});
|
|
2421
2421
|
f.value = W;
|
|
@@ -2425,7 +2425,7 @@ const Nn = {
|
|
|
2425
2425
|
function Y({ width: w, height: A }) {
|
|
2426
2426
|
o.value.width = w, o.value.height = A;
|
|
2427
2427
|
}
|
|
2428
|
-
function
|
|
2428
|
+
function O() {
|
|
2429
2429
|
t.value = { preloaded: !1, ready: !1 };
|
|
2430
2430
|
}
|
|
2431
2431
|
function P(w) {
|
|
@@ -2441,12 +2441,12 @@ const Nn = {
|
|
|
2441
2441
|
w === s.value ? "hover" : "idle"
|
|
2442
2442
|
);
|
|
2443
2443
|
if (A) {
|
|
2444
|
-
const { r: W, g: N, b:
|
|
2444
|
+
const { r: W, g: N, b: ve, a: z, s: M } = A;
|
|
2445
2445
|
return {
|
|
2446
|
-
strokeWidth:
|
|
2447
|
-
stroke: `rgb(${W}, ${N}, ${
|
|
2446
|
+
strokeWidth: M !== void 0 ? M : 2,
|
|
2447
|
+
stroke: `rgb(${W}, ${N}, ${ve})`,
|
|
2448
2448
|
strokeOpacity: 1,
|
|
2449
|
-
fill: `rgb(${W}, ${N}, ${
|
|
2449
|
+
fill: `rgb(${W}, ${N}, ${ve})`,
|
|
2450
2450
|
fillOpacity: z / 255,
|
|
2451
2451
|
cursor: `${e.canGoToBuildingCallback(w) ? "cursor" : "default"} !important`
|
|
2452
2452
|
};
|
|
@@ -2460,7 +2460,7 @@ const Nn = {
|
|
|
2460
2460
|
cursor: "default !important"
|
|
2461
2461
|
};
|
|
2462
2462
|
}
|
|
2463
|
-
function
|
|
2463
|
+
function L(w, A) {
|
|
2464
2464
|
const { layerX: W, layerY: N } = w;
|
|
2465
2465
|
y.value && (i.value = {
|
|
2466
2466
|
x: W,
|
|
@@ -2469,7 +2469,7 @@ const Nn = {
|
|
|
2469
2469
|
height: o.value.height
|
|
2470
2470
|
}, s.value = A, n("hoverOverBuilding", A));
|
|
2471
2471
|
}
|
|
2472
|
-
function
|
|
2472
|
+
function Z(w, A) {
|
|
2473
2473
|
const { layerX: W, layerY: N } = w;
|
|
2474
2474
|
y.value && (i.value = {
|
|
2475
2475
|
x: W,
|
|
@@ -2487,11 +2487,11 @@ const Nn = {
|
|
|
2487
2487
|
height: o.value.height
|
|
2488
2488
|
});
|
|
2489
2489
|
}
|
|
2490
|
-
function
|
|
2490
|
+
function X(w) {
|
|
2491
2491
|
s.value = w, y.value && s.value && e.canGoToBuildingCallback(s.value) && n("goToBuilding", s.value);
|
|
2492
2492
|
}
|
|
2493
2493
|
return (w, A) => {
|
|
2494
|
-
const W =
|
|
2494
|
+
const W = E("v-icon");
|
|
2495
2495
|
return p.value ? (d(), x("div", co, [
|
|
2496
2496
|
C(W, { "x-large": "" }, {
|
|
2497
2497
|
default: _(() => [
|
|
@@ -2504,7 +2504,7 @@ const Nn = {
|
|
|
2504
2504
|
style: fe(`height: ${o.value.height}px; position: relative`),
|
|
2505
2505
|
class: "image-container"
|
|
2506
2506
|
}, [
|
|
2507
|
-
C(
|
|
2507
|
+
C(at, {
|
|
2508
2508
|
desktop: w.interactiveDesktop,
|
|
2509
2509
|
mobile: w.interactiveMobile
|
|
2510
2510
|
}, {
|
|
@@ -2516,21 +2516,21 @@ const Nn = {
|
|
|
2516
2516
|
onResize: Y,
|
|
2517
2517
|
onPreloaded: A[0] || (A[0] = (N) => t.value.preloaded = !0),
|
|
2518
2518
|
onReady: A[1] || (A[1] = (N) => t.value.ready = !0),
|
|
2519
|
-
onReset:
|
|
2519
|
+
onReset: O
|
|
2520
2520
|
}, null, 8, ["image-urls", "active-index"]),
|
|
2521
2521
|
f.value ? we((d(), x("div", mo, [
|
|
2522
2522
|
u("div", po, [
|
|
2523
2523
|
(d(), x("svg", { viewBox: k.value }, [
|
|
2524
|
-
(d(!0), x(
|
|
2524
|
+
(d(!0), x(me, null, ye(f.value, ({ id: N, svg: ve }, z) => (d(), x("g", {
|
|
2525
2525
|
key: z,
|
|
2526
|
-
innerHTML:
|
|
2526
|
+
innerHTML: ve,
|
|
2527
2527
|
"data-building-id": N,
|
|
2528
2528
|
class: ge(P(N)),
|
|
2529
2529
|
style: fe(I(N)),
|
|
2530
|
-
onMouseover: (
|
|
2531
|
-
onMouseout: (
|
|
2532
|
-
onMousemove: (
|
|
2533
|
-
onClick: (
|
|
2530
|
+
onMouseover: (M) => L(M, N),
|
|
2531
|
+
onMouseout: (M) => Z(M, N),
|
|
2532
|
+
onMousemove: (M) => R(M),
|
|
2533
|
+
onClick: (M) => X(N)
|
|
2534
2534
|
}, null, 46, ho))), 128))
|
|
2535
2535
|
], 8, fo))
|
|
2536
2536
|
])
|
|
@@ -2548,7 +2548,7 @@ const Nn = {
|
|
|
2548
2548
|
_: 1
|
|
2549
2549
|
}, 8, ["desktop", "mobile"]),
|
|
2550
2550
|
we(u("div", null, [
|
|
2551
|
-
c.value.viewLongitude ? (d(),
|
|
2551
|
+
c.value.viewLongitude ? (d(), T(nt, {
|
|
2552
2552
|
key: 0,
|
|
2553
2553
|
class: "north-indicator",
|
|
2554
2554
|
longitude: c.value.viewLongitude
|
|
@@ -2562,14 +2562,14 @@ const Nn = {
|
|
|
2562
2562
|
], 512), [
|
|
2563
2563
|
[ke, t.value.preloaded]
|
|
2564
2564
|
]),
|
|
2565
|
-
w.showCards && s.value ? (d(),
|
|
2565
|
+
w.showCards && s.value ? (d(), T(tt, {
|
|
2566
2566
|
key: 0,
|
|
2567
2567
|
"is-hoverable": y.value,
|
|
2568
2568
|
pos: i.value,
|
|
2569
2569
|
onOutside: A[3] || (A[3] = () => s.value = void 0)
|
|
2570
2570
|
}, {
|
|
2571
2571
|
default: _(() => [
|
|
2572
|
-
|
|
2572
|
+
le(w.$slots, "default", {
|
|
2573
2573
|
building: s.value,
|
|
2574
2574
|
canGoToBuilding: w.canGoToBuildingCallback(s.value),
|
|
2575
2575
|
goToBuilding: () => w.canGoToBuildingCallback(s.value) && n("goToBuilding", s.value),
|
|
@@ -2580,7 +2580,7 @@ const Nn = {
|
|
|
2580
2580
|
]),
|
|
2581
2581
|
_: 3
|
|
2582
2582
|
}, 8, ["is-hoverable", "pos"])) : $("", !0),
|
|
2583
|
-
C(
|
|
2583
|
+
C(ze, {
|
|
2584
2584
|
ref_key: "hoverProbe",
|
|
2585
2585
|
ref: b
|
|
2586
2586
|
}, null, 512)
|
|
@@ -2656,8 +2656,8 @@ const Nn = {
|
|
|
2656
2656
|
emits: ["goToBuilding", "hoverOverBuilding", "hoverOutBuilding"],
|
|
2657
2657
|
setup(l, { emit: a }) {
|
|
2658
2658
|
const e = l, n = a;
|
|
2659
|
-
|
|
2660
|
-
|
|
2659
|
+
et(
|
|
2660
|
+
$e,
|
|
2661
2661
|
e.i18nConfig ? new Re(e.i18nConfig) : new Re()
|
|
2662
2662
|
);
|
|
2663
2663
|
const t = v(), o = v({
|
|
@@ -2666,7 +2666,7 @@ const Nn = {
|
|
|
2666
2666
|
}), i = v({
|
|
2667
2667
|
width: 0,
|
|
2668
2668
|
height: 0
|
|
2669
|
-
}), s = v({ x: 0, y: 0, width: 0, height: 0 }), m = v(), p = v(
|
|
2669
|
+
}), s = v({ x: 0, y: 0, width: 0, height: 0 }), m = v(), p = v(Xe.empty()), r = v(Ke.empty()), f = v(), k = v(
|
|
2670
2670
|
(/* @__PURE__ */ new Date()).getHours() * 2 + ((/* @__PURE__ */ new Date()).getMinutes() < 30 ? 0 : 1)
|
|
2671
2671
|
), g = v(
|
|
2672
2672
|
(w, A) => ({ x: w, y: A })
|
|
@@ -2674,7 +2674,7 @@ const Nn = {
|
|
|
2674
2674
|
var w;
|
|
2675
2675
|
return (w = h.value) == null ? void 0 : w.isHoverEnabled;
|
|
2676
2676
|
});
|
|
2677
|
-
|
|
2677
|
+
Te(() => {
|
|
2678
2678
|
if (e.buildingChooserTimeOfDay) {
|
|
2679
2679
|
const [w, A, W] = /^(\d\d):(\d\d)$/.exec(
|
|
2680
2680
|
e.buildingChooserTimeOfDay
|
|
@@ -2689,7 +2689,7 @@ const Nn = {
|
|
|
2689
2689
|
).loadBuildingChooser(
|
|
2690
2690
|
e.buildingChooserData
|
|
2691
2691
|
);
|
|
2692
|
-
A ? (r.value = new
|
|
2692
|
+
A ? (r.value = new Ke(A.mapImage), p.value = new Xe(A.buildingIds), t.value = new Ct(A.backgrounds), m.value = {
|
|
2693
2693
|
buildingOverlays: A.buildingOverlays,
|
|
2694
2694
|
viewLongitude: A.viewLongitude
|
|
2695
2695
|
}, I()) : c.value = !0;
|
|
@@ -2697,15 +2697,15 @@ const Nn = {
|
|
|
2697
2697
|
function Y({ width: w, height: A }) {
|
|
2698
2698
|
i.value.width = w, i.value.height = A, De(I);
|
|
2699
2699
|
}
|
|
2700
|
-
function
|
|
2700
|
+
function O() {
|
|
2701
2701
|
o.value = { preloaded: !1, ready: !1 };
|
|
2702
2702
|
}
|
|
2703
2703
|
function P(w) {
|
|
2704
|
-
const { layerX: A, layerY: W } = w, { x: N, y:
|
|
2704
|
+
const { layerX: A, layerY: W } = w, { x: N, y: ve } = g.value(A, W);
|
|
2705
2705
|
return p.value.getBuildingId(
|
|
2706
2706
|
r.value,
|
|
2707
2707
|
N,
|
|
2708
|
-
|
|
2708
|
+
ve
|
|
2709
2709
|
);
|
|
2710
2710
|
}
|
|
2711
2711
|
function I() {
|
|
@@ -2713,7 +2713,7 @@ const Nn = {
|
|
|
2713
2713
|
for (const w of b.value)
|
|
2714
2714
|
w.setupDraw();
|
|
2715
2715
|
}
|
|
2716
|
-
function
|
|
2716
|
+
function L(w) {
|
|
2717
2717
|
const { layerX: A, layerY: W } = w;
|
|
2718
2718
|
y.value && (f.value = P(w), f.value !== void 0 && (s.value = {
|
|
2719
2719
|
x: A,
|
|
@@ -2722,7 +2722,7 @@ const Nn = {
|
|
|
2722
2722
|
height: i.value.height
|
|
2723
2723
|
}));
|
|
2724
2724
|
}
|
|
2725
|
-
function
|
|
2725
|
+
function Z(w) {
|
|
2726
2726
|
f.value = P(w), y.value && f.value && n("goToBuilding", f.value);
|
|
2727
2727
|
}
|
|
2728
2728
|
function R(w) {
|
|
@@ -2731,11 +2731,11 @@ const Nn = {
|
|
|
2731
2731
|
w === f.value ? "hover" : "idle"
|
|
2732
2732
|
);
|
|
2733
2733
|
}
|
|
2734
|
-
function
|
|
2734
|
+
function X({ resolve: w }) {
|
|
2735
2735
|
g.value = w;
|
|
2736
2736
|
}
|
|
2737
2737
|
return (w, A) => {
|
|
2738
|
-
const W =
|
|
2738
|
+
const W = E("v-icon");
|
|
2739
2739
|
return c.value ? (d(), x("div", wo, [
|
|
2740
2740
|
C(W, { "x-large": "" }, {
|
|
2741
2741
|
default: _(() => [
|
|
@@ -2748,10 +2748,10 @@ const Nn = {
|
|
|
2748
2748
|
style: fe(`cursor: ${f.value ? "pointer" : "auto"};height: ${i.value.height}px; position: relative`),
|
|
2749
2749
|
class: "image-container"
|
|
2750
2750
|
}, [
|
|
2751
|
-
C(
|
|
2751
|
+
C(at, {
|
|
2752
2752
|
desktop: w.interactiveDesktop,
|
|
2753
2753
|
mobile: w.interactiveMobile,
|
|
2754
|
-
onUpdate:
|
|
2754
|
+
onUpdate: X
|
|
2755
2755
|
}, {
|
|
2756
2756
|
default: _(() => [
|
|
2757
2757
|
u("div", ko, [
|
|
@@ -2761,10 +2761,10 @@ const Nn = {
|
|
|
2761
2761
|
onResize: Y,
|
|
2762
2762
|
onPreloaded: A[0] || (A[0] = (N) => o.value.preloaded = !0),
|
|
2763
2763
|
onReady: A[1] || (A[1] = (N) => o.value.ready = !0),
|
|
2764
|
-
onReset:
|
|
2764
|
+
onReset: O
|
|
2765
2765
|
}, null, 8, ["image-urls", "active-index"]),
|
|
2766
2766
|
we(u("div", null, [
|
|
2767
|
-
(d(!0), x(
|
|
2767
|
+
(d(!0), x(me, null, ye(m.value.buildingOverlays, (N) => (d(), T(Co, {
|
|
2768
2768
|
ref_for: !0,
|
|
2769
2769
|
ref_key: "overlays",
|
|
2770
2770
|
ref: b,
|
|
@@ -2781,8 +2781,8 @@ const Nn = {
|
|
|
2781
2781
|
ref_key: "canvas",
|
|
2782
2782
|
ref: S,
|
|
2783
2783
|
class: { hover: !!f.value },
|
|
2784
|
-
onClick:
|
|
2785
|
-
onMousemove:
|
|
2784
|
+
onClick: Z,
|
|
2785
|
+
onMousemove: L
|
|
2786
2786
|
}), null, 16),
|
|
2787
2787
|
we(u("div", {
|
|
2788
2788
|
class: "custom-overlay-layer",
|
|
@@ -2794,7 +2794,7 @@ const Nn = {
|
|
|
2794
2794
|
_: 1
|
|
2795
2795
|
}, 8, ["desktop", "mobile"]),
|
|
2796
2796
|
we(u("div", null, [
|
|
2797
|
-
m.value.viewLongitude ? (d(),
|
|
2797
|
+
m.value.viewLongitude ? (d(), T(nt, {
|
|
2798
2798
|
key: 0,
|
|
2799
2799
|
class: "north-indicator",
|
|
2800
2800
|
longitude: m.value.viewLongitude
|
|
@@ -2808,14 +2808,14 @@ const Nn = {
|
|
|
2808
2808
|
], 512), [
|
|
2809
2809
|
[ke, o.value.preloaded]
|
|
2810
2810
|
]),
|
|
2811
|
-
w.showCards && f.value ? (d(),
|
|
2811
|
+
w.showCards && f.value ? (d(), T(tt, {
|
|
2812
2812
|
key: 0,
|
|
2813
2813
|
"is-hoverable": y.value,
|
|
2814
2814
|
pos: s.value,
|
|
2815
2815
|
onOutside: A[3] || (A[3] = () => f.value = void 0)
|
|
2816
2816
|
}, {
|
|
2817
2817
|
default: _(() => [
|
|
2818
|
-
|
|
2818
|
+
le(w.$slots, "default", {
|
|
2819
2819
|
building: f.value,
|
|
2820
2820
|
canGoToBuilding: w.canGoToBuildingCallback(f.value),
|
|
2821
2821
|
goToBuilding: () => w.canGoToBuildingCallback(f.value) && n("goToBuilding", f.value),
|
|
@@ -2826,7 +2826,7 @@ const Nn = {
|
|
|
2826
2826
|
]),
|
|
2827
2827
|
_: 3
|
|
2828
2828
|
}, 8, ["is-hoverable", "pos"])) : $("", !0),
|
|
2829
|
-
C(
|
|
2829
|
+
C(ze, {
|
|
2830
2830
|
ref_key: "hoverProbe",
|
|
2831
2831
|
ref: h
|
|
2832
2832
|
}, null, 512)
|
|
@@ -2853,7 +2853,7 @@ const Nn = {
|
|
|
2853
2853
|
const e = l, n = a, t = B(
|
|
2854
2854
|
() => e.useSvg ? _o : xo
|
|
2855
2855
|
);
|
|
2856
|
-
return (o, i) => (d(),
|
|
2856
|
+
return (o, i) => (d(), T(Gt(t.value), {
|
|
2857
2857
|
"i18n-config": e.i18nConfig,
|
|
2858
2858
|
"show-cards": e.showCards,
|
|
2859
2859
|
"color-callback": e.colorCallback,
|
|
@@ -2871,7 +2871,7 @@ const Nn = {
|
|
|
2871
2871
|
ye(Object.keys(o.$slots), (s) => ({
|
|
2872
2872
|
name: s,
|
|
2873
2873
|
fn: _((m) => [
|
|
2874
|
-
|
|
2874
|
+
le(o.$slots, s, rt(ut(m)))
|
|
2875
2875
|
])
|
|
2876
2876
|
}))
|
|
2877
2877
|
]), 1064, ["i18n-config", "show-cards", "color-callback", "cdn-file-resolver", "interactive-desktop", "interactive-mobile", "building-chooser-time-of-day", "can-go-to-building-callback", "custom-overlay-content", "building-chooser-data"]));
|
|
@@ -2902,7 +2902,7 @@ const Nn = {
|
|
|
2902
2902
|
},
|
|
2903
2903
|
setup(l) {
|
|
2904
2904
|
const a = l;
|
|
2905
|
-
return (e, n) => (d(!0), x(
|
|
2905
|
+
return (e, n) => (d(!0), x(me, null, ye(a.dayData.timeSamples, (t) => (d(), T(Lo, {
|
|
2906
2906
|
"time-sample-data": t,
|
|
2907
2907
|
"cdn-file-resolver": a.cdnFileResolver,
|
|
2908
2908
|
"current-time": e.currentTime
|
|
@@ -2917,7 +2917,7 @@ const Nn = {
|
|
|
2917
2917
|
},
|
|
2918
2918
|
setup(l) {
|
|
2919
2919
|
const a = l;
|
|
2920
|
-
return (e, n) => (d(!0), x(
|
|
2920
|
+
return (e, n) => (d(!0), x(me, null, ye(a.cameraData.sunsimDayOfYear, (t) => (d(), T(Mo, {
|
|
2921
2921
|
"day-data": t,
|
|
2922
2922
|
"cdn-file-resolver": a.cdnFileResolver,
|
|
2923
2923
|
"current-time": a.currentTime
|
|
@@ -2942,8 +2942,8 @@ const Nn = {
|
|
|
2942
2942
|
)
|
|
2943
2943
|
);
|
|
2944
2944
|
}), (o, i) => {
|
|
2945
|
-
const s =
|
|
2946
|
-
return d(),
|
|
2945
|
+
const s = E("v-select");
|
|
2946
|
+
return d(), T(s, {
|
|
2947
2947
|
modelValue: t.value,
|
|
2948
2948
|
"onUpdate:modelValue": i[0] || (i[0] = (m) => t.value = m),
|
|
2949
2949
|
items: e.buildingChooserData.cameras,
|
|
@@ -2985,8 +2985,8 @@ const Nn = {
|
|
|
2985
2985
|
});
|
|
2986
2986
|
}
|
|
2987
2987
|
return (i, s) => {
|
|
2988
|
-
const m =
|
|
2989
|
-
return d(),
|
|
2988
|
+
const m = E("v-list-item"), p = E("v-select");
|
|
2989
|
+
return d(), T(p, {
|
|
2990
2990
|
modelValue: t.value,
|
|
2991
2991
|
"onUpdate:modelValue": s[0] || (s[0] = (r) => t.value = r),
|
|
2992
2992
|
items: e.cameraData.sunsimDayOfYear,
|
|
@@ -3048,8 +3048,8 @@ const Nn = {
|
|
|
3048
3048
|
}, 200));
|
|
3049
3049
|
}
|
|
3050
3050
|
return (m, p) => {
|
|
3051
|
-
const r =
|
|
3052
|
-
return d(),
|
|
3051
|
+
const r = E("v-icon"), f = E("v-btn"), k = E("v-slider"), g = E("v-field");
|
|
3052
|
+
return d(), T(g, { variant: "solo" }, {
|
|
3053
3053
|
default: _(() => [
|
|
3054
3054
|
m.dayData.startTime === m.dayData.endTime ? (d(), x("div", Vo, [
|
|
3055
3055
|
C(r, {
|
|
@@ -3062,7 +3062,7 @@ const Nn = {
|
|
|
3062
3062
|
_: 1
|
|
3063
3063
|
}),
|
|
3064
3064
|
te(" " + Q(i(t.value)), 1)
|
|
3065
|
-
])) : (d(),
|
|
3065
|
+
])) : (d(), T(k, {
|
|
3066
3066
|
key: 1,
|
|
3067
3067
|
class: "pa-1",
|
|
3068
3068
|
modelValue: t.value,
|
|
@@ -3113,8 +3113,8 @@ const Nn = {
|
|
|
3113
3113
|
},
|
|
3114
3114
|
emits: ["onClick", "onHoverOver", "onHoverOut", "updateSvgContainer"],
|
|
3115
3115
|
setup(l, { emit: a }) {
|
|
3116
|
-
const e = l, n = a, t = v(), o = v(), i = v(e.selectedId), s =
|
|
3117
|
-
|
|
3116
|
+
const e = l, n = a, t = v(), o = v(), i = v(e.selectedId), s = yt({});
|
|
3117
|
+
Te(() => {
|
|
3118
3118
|
for (const r in s) {
|
|
3119
3119
|
const { element: f, state: k } = s[r], { r: g, g: c, b: h, a: S, s: b } = e.colorCallback(r, k) || {
|
|
3120
3120
|
r: 0,
|
|
@@ -3133,7 +3133,7 @@ const Nn = {
|
|
|
3133
3133
|
), H(i, () => {
|
|
3134
3134
|
for (const r in s)
|
|
3135
3135
|
s[r].state === "selected" && r !== i.value ? s[r].state = "idle" : s[r].state !== "selected" && r === i.value && (s[r].state = "selected");
|
|
3136
|
-
}),
|
|
3136
|
+
}), Te(async () => {
|
|
3137
3137
|
t.value = await Fe.loadText(
|
|
3138
3138
|
he(e.cdnFileResolver, e.currentCamera.overlayFilename)
|
|
3139
3139
|
), p();
|
|
@@ -3181,7 +3181,7 @@ const Nn = {
|
|
|
3181
3181
|
}));
|
|
3182
3182
|
});
|
|
3183
3183
|
}
|
|
3184
|
-
return (r, f) => (d(),
|
|
3184
|
+
return (r, f) => (d(), T(Ee, null, {
|
|
3185
3185
|
default: _(() => [
|
|
3186
3186
|
(d(), x("div", {
|
|
3187
3187
|
ref_key: "svgContainer",
|
|
@@ -3270,34 +3270,34 @@ const jo = {
|
|
|
3270
3270
|
const e = l, n = a, t = v(), o = v(), i = v(), s = v(), m = v(!1), p = v(), r = B(() => p.value.isHoverEnabled), f = v({ x: 0, y: 0, width: 0, height: 0 }), k = v(), g = v(), c = v(
|
|
3271
3271
|
e.buildingChooserData
|
|
3272
3272
|
), h = v(!1);
|
|
3273
|
-
Ie(() => m.value = !0), H(m, (
|
|
3274
|
-
|
|
3273
|
+
Ie(() => m.value = !0), H(m, (L) => {
|
|
3274
|
+
L && n("onInitialize");
|
|
3275
3275
|
}), H(
|
|
3276
3276
|
() => g.value,
|
|
3277
3277
|
() => {
|
|
3278
|
-
g.value && new ResizeObserver(([
|
|
3279
|
-
h.value =
|
|
3278
|
+
g.value && new ResizeObserver(([Z]) => {
|
|
3279
|
+
h.value = Z.contentRect.width < e.mobileBreakpoint;
|
|
3280
3280
|
}).observe(g.value);
|
|
3281
3281
|
}
|
|
3282
3282
|
);
|
|
3283
3283
|
const S = async () => {
|
|
3284
3284
|
try {
|
|
3285
|
-
let
|
|
3285
|
+
let L;
|
|
3286
3286
|
if (!e.cdnFileResolver)
|
|
3287
|
-
return
|
|
3288
|
-
let
|
|
3289
|
-
return
|
|
3287
|
+
return L;
|
|
3288
|
+
let Z;
|
|
3289
|
+
return Z = await Fe.loadJson(
|
|
3290
3290
|
he(e.cdnFileResolver, "/buildingChooser.json")
|
|
3291
|
-
), parseInt(
|
|
3292
|
-
} catch (
|
|
3293
|
-
m.value = !1, n("onError",
|
|
3291
|
+
), parseInt(Z.version) === 5 ? Z : (L = Po(Z), L);
|
|
3292
|
+
} catch (L) {
|
|
3293
|
+
m.value = !1, n("onError", L);
|
|
3294
3294
|
}
|
|
3295
3295
|
};
|
|
3296
3296
|
H(
|
|
3297
3297
|
[c, () => e.cdnFileResolver, () => e.defaultCamera],
|
|
3298
3298
|
async () => {
|
|
3299
3299
|
e.cdnFileResolver && (c.value || (c.value = await S()), e.defaultCamera ? t.value = c.value.cameras.find(
|
|
3300
|
-
(
|
|
3300
|
+
(L) => L.cameraName === e.defaultCamera
|
|
3301
3301
|
) || c.value.cameras[0] : t.value = c.value.cameras[0]);
|
|
3302
3302
|
},
|
|
3303
3303
|
{ immediate: !0 }
|
|
@@ -3305,7 +3305,7 @@ const jo = {
|
|
|
3305
3305
|
[c, () => e.cdnFileResolver, () => e.defaultDay],
|
|
3306
3306
|
() => {
|
|
3307
3307
|
c.value && e.cdnFileResolver && (e.defaultDay ? o.value = t.value.sunsimDayOfYear.find(
|
|
3308
|
-
(
|
|
3308
|
+
(L) => L.dayOfYear === e.defaultDay
|
|
3309
3309
|
) || t.value.sunsimDayOfYear[0] : o.value = t.value.sunsimDayOfYear[0]);
|
|
3310
3310
|
},
|
|
3311
3311
|
{ immediate: !0 }
|
|
@@ -3313,75 +3313,75 @@ const jo = {
|
|
|
3313
3313
|
[c, () => e.cdnFileResolver, () => e.defaultTime],
|
|
3314
3314
|
() => {
|
|
3315
3315
|
c.value && e.cdnFileResolver && (e.defaultTime ? i.value = o.value.timeSamples.find(
|
|
3316
|
-
(
|
|
3316
|
+
(L) => L.timeInHours === e.defaultTime
|
|
3317
3317
|
) || o.value.timeSamples[0] : i.value = o.value.timeSamples.find(
|
|
3318
|
-
(
|
|
3318
|
+
(L) => L.timeInHours === o.value.defaultHour
|
|
3319
3319
|
) || o.value.timeSamples[0]);
|
|
3320
3320
|
},
|
|
3321
3321
|
{ immediate: !0 }
|
|
3322
3322
|
);
|
|
3323
|
-
function b(
|
|
3324
|
-
const
|
|
3325
|
-
t.value =
|
|
3323
|
+
function b(L) {
|
|
3324
|
+
const Z = o.value;
|
|
3325
|
+
t.value = L, De(() => {
|
|
3326
3326
|
y(
|
|
3327
3327
|
t.value.sunsimDayOfYear.find(
|
|
3328
|
-
(R) => R.dayOfYear ===
|
|
3328
|
+
(R) => R.dayOfYear === Z.dayOfYear
|
|
3329
3329
|
) || t.value.sunsimDayOfYear[0]
|
|
3330
3330
|
);
|
|
3331
3331
|
});
|
|
3332
3332
|
}
|
|
3333
|
-
function y(
|
|
3334
|
-
const
|
|
3335
|
-
o.value =
|
|
3333
|
+
function y(L) {
|
|
3334
|
+
const Z = i.value;
|
|
3335
|
+
o.value = L, De(() => {
|
|
3336
3336
|
Y(
|
|
3337
3337
|
o.value.timeSamples.find(
|
|
3338
|
-
(R) => R.timeInHours ===
|
|
3338
|
+
(R) => R.timeInHours === Z.timeInHours
|
|
3339
3339
|
) || o.value.timeSamples.find(
|
|
3340
3340
|
(R) => R.timeInHours === o.value.defaultHour
|
|
3341
3341
|
) || o.value.timeSamples[0]
|
|
3342
3342
|
);
|
|
3343
3343
|
});
|
|
3344
3344
|
}
|
|
3345
|
-
function Y(
|
|
3346
|
-
i.value =
|
|
3345
|
+
function Y(L) {
|
|
3346
|
+
i.value = L;
|
|
3347
3347
|
}
|
|
3348
|
-
function
|
|
3349
|
-
n("onHoverOver",
|
|
3348
|
+
function O(L) {
|
|
3349
|
+
n("onHoverOver", L), s.value = L;
|
|
3350
3350
|
}
|
|
3351
|
-
function P(
|
|
3352
|
-
n("onHoverOut",
|
|
3351
|
+
function P(L) {
|
|
3352
|
+
n("onHoverOut", L), s.value = void 0;
|
|
3353
3353
|
}
|
|
3354
|
-
function I(
|
|
3355
|
-
const { layerX:
|
|
3356
|
-
let
|
|
3357
|
-
for (;
|
|
3358
|
-
if (
|
|
3354
|
+
function I(L) {
|
|
3355
|
+
const { layerX: Z, layerY: R } = L;
|
|
3356
|
+
let X = L.target, w = !1;
|
|
3357
|
+
for (; X; )
|
|
3358
|
+
if (X === k.value) {
|
|
3359
3359
|
w = !0;
|
|
3360
3360
|
break;
|
|
3361
3361
|
} else
|
|
3362
|
-
|
|
3362
|
+
X = X.parentElement;
|
|
3363
3363
|
if (w) {
|
|
3364
|
-
const A =
|
|
3364
|
+
const A = L.currentTarget;
|
|
3365
3365
|
f.value = {
|
|
3366
|
-
x:
|
|
3366
|
+
x: Z,
|
|
3367
3367
|
y: R,
|
|
3368
3368
|
width: A.clientWidth,
|
|
3369
3369
|
height: A.clientHeight
|
|
3370
3370
|
};
|
|
3371
3371
|
} else
|
|
3372
3372
|
f.value = void 0;
|
|
3373
|
-
n("onMouseMove",
|
|
3373
|
+
n("onMouseMove", L, f.value);
|
|
3374
3374
|
}
|
|
3375
|
-
return (
|
|
3376
|
-
const R =
|
|
3377
|
-
return d(), x(
|
|
3375
|
+
return (L, Z) => {
|
|
3376
|
+
const R = E("v-skeleton-loader");
|
|
3377
|
+
return d(), x(me, null, [
|
|
3378
3378
|
C(R, {
|
|
3379
3379
|
type: "image",
|
|
3380
3380
|
class: "w-100 h-100 position-relative",
|
|
3381
3381
|
loading: !m.value || !c.value
|
|
3382
3382
|
}, {
|
|
3383
3383
|
default: _(() => [
|
|
3384
|
-
C(
|
|
3384
|
+
C(Ee, { class: "w-100 h-100" }, {
|
|
3385
3385
|
default: _(() => [
|
|
3386
3386
|
u("div", {
|
|
3387
3387
|
ref_key: "container",
|
|
@@ -3398,7 +3398,7 @@ const jo = {
|
|
|
3398
3398
|
}, null, 8, ["building-chooser-data", "current-camera"])
|
|
3399
3399
|
])) : $("", !0),
|
|
3400
3400
|
u("div", No, [
|
|
3401
|
-
t.value.sunsimDayOfYear.length > 1 ? (d(),
|
|
3401
|
+
t.value.sunsimDayOfYear.length > 1 ? (d(), T(To, {
|
|
3402
3402
|
key: 0,
|
|
3403
3403
|
"camera-data": t.value,
|
|
3404
3404
|
"current-day": o.value,
|
|
@@ -3406,7 +3406,7 @@ const jo = {
|
|
|
3406
3406
|
}, null, 8, ["camera-data", "current-day"])) : $("", !0)
|
|
3407
3407
|
]),
|
|
3408
3408
|
u("div", Go, [
|
|
3409
|
-
o.value.timeSamples.length > 1 ? (d(),
|
|
3409
|
+
o.value.timeSamples.length > 1 ? (d(), T(Uo, {
|
|
3410
3410
|
key: 0,
|
|
3411
3411
|
"day-data": o.value,
|
|
3412
3412
|
"current-time": i.value,
|
|
@@ -3415,16 +3415,16 @@ const jo = {
|
|
|
3415
3415
|
])
|
|
3416
3416
|
]),
|
|
3417
3417
|
u("div", Qo, [
|
|
3418
|
-
t.value.cameraRotation ? (d(),
|
|
3418
|
+
t.value.cameraRotation ? (d(), T(nt, {
|
|
3419
3419
|
key: 0,
|
|
3420
3420
|
longitude: t.value.cameraRotation.y + 270
|
|
3421
3421
|
}, null, 8, ["longitude"])) : $("", !0)
|
|
3422
3422
|
]),
|
|
3423
|
-
C(
|
|
3423
|
+
C(at, { position: "relative" }, {
|
|
3424
3424
|
default: _(() => [
|
|
3425
|
-
(d(!0), x(
|
|
3426
|
-
key:
|
|
3427
|
-
"camera-data":
|
|
3425
|
+
(d(!0), x(me, null, ye(c.value.cameras, (X) => (d(), T(Oo, {
|
|
3426
|
+
key: X.overlayFilename,
|
|
3427
|
+
"camera-data": X,
|
|
3428
3428
|
"cdn-file-resolver": e.cdnFileResolver,
|
|
3429
3429
|
"current-time": i.value
|
|
3430
3430
|
}, null, 8, ["camera-data", "cdn-file-resolver", "current-time"]))), 128)),
|
|
@@ -3435,26 +3435,26 @@ const jo = {
|
|
|
3435
3435
|
innerHTML: e.customOverlayContent
|
|
3436
3436
|
}, null, 8, Zo)) : $("", !0),
|
|
3437
3437
|
C(zo, {
|
|
3438
|
-
"cdn-file-resolver":
|
|
3438
|
+
"cdn-file-resolver": L.cdnFileResolver,
|
|
3439
3439
|
"color-callback": e.colorCallback,
|
|
3440
3440
|
"current-camera": t.value,
|
|
3441
3441
|
"selected-id": e.selectedId,
|
|
3442
|
-
onOnClick:
|
|
3443
|
-
onOnHoverOver:
|
|
3442
|
+
onOnClick: Z[0] || (Z[0] = (X) => n("onClick", X)),
|
|
3443
|
+
onOnHoverOver: O,
|
|
3444
3444
|
onOnHoverOut: P,
|
|
3445
|
-
onUpdateSvgContainer:
|
|
3445
|
+
onUpdateSvgContainer: Z[1] || (Z[1] = (X) => k.value = X)
|
|
3446
3446
|
}, null, 8, ["cdn-file-resolver", "color-callback", "current-camera", "selected-id"])
|
|
3447
3447
|
]),
|
|
3448
3448
|
_: 1
|
|
3449
3449
|
}),
|
|
3450
|
-
|
|
3450
|
+
L.$slots.popup && f.value && s.value ? (d(), T(tt, {
|
|
3451
3451
|
key: 0,
|
|
3452
3452
|
"is-hoverable": r.value,
|
|
3453
3453
|
pos: f.value
|
|
3454
3454
|
}, {
|
|
3455
3455
|
default: _(() => [
|
|
3456
3456
|
u("div", qo, [
|
|
3457
|
-
|
|
3457
|
+
le(L.$slots, "popup", rt(ut({ hoverId: s.value, hoverable: r.value })), void 0, !0)
|
|
3458
3458
|
])
|
|
3459
3459
|
]),
|
|
3460
3460
|
_: 3
|
|
@@ -3466,7 +3466,7 @@ const jo = {
|
|
|
3466
3466
|
]),
|
|
3467
3467
|
_: 3
|
|
3468
3468
|
}, 8, ["loading"]),
|
|
3469
|
-
C(
|
|
3469
|
+
C(ze, {
|
|
3470
3470
|
ref_key: "hoverProbe",
|
|
3471
3471
|
ref: p
|
|
3472
3472
|
}, null, 512)
|
|
@@ -3474,19 +3474,19 @@ const jo = {
|
|
|
3474
3474
|
};
|
|
3475
3475
|
}
|
|
3476
3476
|
}), lu = /* @__PURE__ */ ee(Jo, [["__scopeId", "data-v-47df87bc"]]);
|
|
3477
|
-
var
|
|
3478
|
-
Object.defineProperty(
|
|
3477
|
+
var ot = {};
|
|
3478
|
+
Object.defineProperty(ot, "__esModule", {
|
|
3479
3479
|
value: !0
|
|
3480
3480
|
});
|
|
3481
3481
|
var Xo = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(l) {
|
|
3482
3482
|
return typeof l;
|
|
3483
3483
|
} : function(l) {
|
|
3484
3484
|
return l && typeof Symbol == "function" && l.constructor === Symbol && l !== Symbol.prototype ? "symbol" : typeof l;
|
|
3485
|
-
}, Ko = typeof window < "u" && typeof window.document < "u", el = typeof process < "u" && process.versions != null && process.versions.node != null, tl = (typeof self > "u" ? "undefined" : Xo(self)) === "object" && self.constructor && self.constructor.name === "DedicatedWorkerGlobalScope", al = typeof window < "u" && window.name === "nodejs" || typeof navigator < "u" && (navigator.userAgent.includes("Node.js") || navigator.userAgent.includes("jsdom")), nl = typeof Deno < "u" && typeof Deno.version < "u" && typeof Deno.version.deno < "u", ol =
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3485
|
+
}, Ko = typeof window < "u" && typeof window.document < "u", el = typeof process < "u" && process.versions != null && process.versions.node != null, tl = (typeof self > "u" ? "undefined" : Xo(self)) === "object" && self.constructor && self.constructor.name === "DedicatedWorkerGlobalScope", al = typeof window < "u" && window.name === "nodejs" || typeof navigator < "u" && (navigator.userAgent.includes("Node.js") || navigator.userAgent.includes("jsdom")), nl = typeof Deno < "u" && typeof Deno.version < "u" && typeof Deno.version.deno < "u", ol = ot.isBrowser = Ko;
|
|
3486
|
+
ot.isWebWorker = tl;
|
|
3487
|
+
ot.isNode = el;
|
|
3488
|
+
ot.isJsDom = al;
|
|
3489
|
+
ot.isDeno = nl;
|
|
3490
3490
|
const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
3491
3491
|
class: "player-control",
|
|
3492
3492
|
id: "controls-top-left"
|
|
@@ -3533,7 +3533,7 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
3533
3533
|
currentCameraId: s,
|
|
3534
3534
|
showStaticImage: m,
|
|
3535
3535
|
mouseSensitivity: p
|
|
3536
|
-
} =
|
|
3536
|
+
} = Ve(n), r = a, f = v(), k = v(s.value), g = v(0), c = v(0);
|
|
3537
3537
|
H(s, () => {
|
|
3538
3538
|
k.value = s.value;
|
|
3539
3539
|
}), H([o, i], async () => {
|
|
@@ -3568,7 +3568,7 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
3568
3568
|
});
|
|
3569
3569
|
async function h() {
|
|
3570
3570
|
S();
|
|
3571
|
-
const
|
|
3571
|
+
const O = {
|
|
3572
3572
|
initialized: () => {
|
|
3573
3573
|
f.value = e.Main.getPlayerAPI();
|
|
3574
3574
|
const I = f.value.getCurrentCamera();
|
|
@@ -3581,8 +3581,8 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
3581
3581
|
r("newFovCallback", I), c.value = I;
|
|
3582
3582
|
},
|
|
3583
3583
|
newRotation: (I) => {
|
|
3584
|
-
const
|
|
3585
|
-
r("newRotationCallback",
|
|
3584
|
+
const L = I + 0;
|
|
3585
|
+
r("newRotationCallback", L), g.value = L;
|
|
3586
3586
|
}
|
|
3587
3587
|
};
|
|
3588
3588
|
if (!ol)
|
|
@@ -3593,7 +3593,7 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
3593
3593
|
`/${o.value}/${i.value}${I}`
|
|
3594
3594
|
),
|
|
3595
3595
|
"qpc",
|
|
3596
|
-
|
|
3596
|
+
O,
|
|
3597
3597
|
void 0,
|
|
3598
3598
|
k.value
|
|
3599
3599
|
);
|
|
@@ -3605,37 +3605,37 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
3605
3605
|
async function S() {
|
|
3606
3606
|
f.value && (await f.value.destroy(), f.value = void 0);
|
|
3607
3607
|
}
|
|
3608
|
-
return
|
|
3608
|
+
return Ne(() => {
|
|
3609
3609
|
S();
|
|
3610
3610
|
}), (b, y) => (d(), x("div", ll, [
|
|
3611
3611
|
u("div", sl, [
|
|
3612
|
-
|
|
3612
|
+
le(b.$slots, "slideshow-image", {}, void 0, !0),
|
|
3613
3613
|
u("div", il, [
|
|
3614
|
-
|
|
3614
|
+
le(b.$slots, "top-left", {}, void 0, !0)
|
|
3615
3615
|
]),
|
|
3616
3616
|
u("div", rl, [
|
|
3617
|
-
|
|
3617
|
+
le(b.$slots, "top-center", {}, void 0, !0)
|
|
3618
3618
|
]),
|
|
3619
3619
|
u("div", ul, [
|
|
3620
|
-
|
|
3620
|
+
le(b.$slots, "top-right", {}, void 0, !0)
|
|
3621
3621
|
]),
|
|
3622
3622
|
u("div", cl, [
|
|
3623
|
-
|
|
3623
|
+
le(b.$slots, "center-left", {}, void 0, !0)
|
|
3624
3624
|
]),
|
|
3625
3625
|
u("div", dl, [
|
|
3626
|
-
|
|
3626
|
+
le(b.$slots, "center-center", {}, void 0, !0)
|
|
3627
3627
|
]),
|
|
3628
3628
|
u("div", vl, [
|
|
3629
|
-
|
|
3629
|
+
le(b.$slots, "center-right", {}, void 0, !0)
|
|
3630
3630
|
]),
|
|
3631
3631
|
u("div", ml, [
|
|
3632
|
-
|
|
3632
|
+
le(b.$slots, "bottom-left", {}, void 0, !0)
|
|
3633
3633
|
]),
|
|
3634
3634
|
u("div", pl, [
|
|
3635
|
-
|
|
3635
|
+
le(b.$slots, "bottom-center", {}, void 0, !0)
|
|
3636
3636
|
]),
|
|
3637
3637
|
u("div", fl, [
|
|
3638
|
-
|
|
3638
|
+
le(b.$slots, "bottom-right", {}, void 0, !0)
|
|
3639
3639
|
]),
|
|
3640
3640
|
u("div", hl, [
|
|
3641
3641
|
u("canvas", {
|
|
@@ -3658,7 +3658,7 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
3658
3658
|
},
|
|
3659
3659
|
emits: ["level"],
|
|
3660
3660
|
setup(l, { emit: a }) {
|
|
3661
|
-
const e = l, n = a, t =
|
|
3661
|
+
const e = l, n = a, t = Ge($e), o = B(() => {
|
|
3662
3662
|
const r = e.floorLevels;
|
|
3663
3663
|
return r.sort(), r;
|
|
3664
3664
|
}), i = B(() => o.value.indexOf(e.level) + 1 <= o.value.length / 2 ? "lower" : "upper"), s = B(() => i.value === "lower"), m = B(() => i.value === "upper");
|
|
@@ -3667,8 +3667,8 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
3667
3667
|
r >= o.value.length ? n("level", o.value[0]) : n("level", o.value[r]);
|
|
3668
3668
|
}
|
|
3669
3669
|
return (r, f) => {
|
|
3670
|
-
const k =
|
|
3671
|
-
return d(),
|
|
3670
|
+
const k = E("v-btn"), g = E("v-tooltip");
|
|
3671
|
+
return d(), T(g, {
|
|
3672
3672
|
right: "",
|
|
3673
3673
|
attach: ""
|
|
3674
3674
|
}, {
|
|
@@ -3716,9 +3716,9 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
3716
3716
|
},
|
|
3717
3717
|
emits: ["selectInterior"],
|
|
3718
3718
|
setup(l, { emit: a }) {
|
|
3719
|
-
const e = l, n = a, t =
|
|
3719
|
+
const e = l, n = a, t = Ge($e);
|
|
3720
3720
|
return (o, i) => {
|
|
3721
|
-
const s =
|
|
3721
|
+
const s = E("v-icon"), m = E("v-btn"), p = E("v-img"), r = E("v-menu");
|
|
3722
3722
|
return d(), x("div", null, [
|
|
3723
3723
|
C(r, {
|
|
3724
3724
|
transition: "slide-x-reverse-transition",
|
|
@@ -3743,7 +3743,7 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
3743
3743
|
]),
|
|
3744
3744
|
default: _(() => [
|
|
3745
3745
|
u("div", xl, [
|
|
3746
|
-
(d(!0), x(
|
|
3746
|
+
(d(!0), x(me, null, ye(e.availableArchetypes, (f, k) => (d(), x("div", {
|
|
3747
3747
|
key: `at-menuitem-${k}`,
|
|
3748
3748
|
onClick: (g) => n("selectInterior", f.archetypeID),
|
|
3749
3749
|
class: ge(["interior-selector-list-item", {
|
|
@@ -3783,7 +3783,7 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
3783
3783
|
transform: `rotate(${-a.rotation + 180}deg)`
|
|
3784
3784
|
}));
|
|
3785
3785
|
return (o, i) => {
|
|
3786
|
-
const s =
|
|
3786
|
+
const s = E("v-img");
|
|
3787
3787
|
return d(), x("div", {
|
|
3788
3788
|
style: fe(n.value),
|
|
3789
3789
|
class: "compass-wrapper"
|
|
@@ -3808,7 +3808,7 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
3808
3808
|
return ("0" + t).slice(-2);
|
|
3809
3809
|
}
|
|
3810
3810
|
return (t, o) => {
|
|
3811
|
-
const i =
|
|
3811
|
+
const i = E("v-img");
|
|
3812
3812
|
return d(), x("div", Bl, [
|
|
3813
3813
|
u("div", Rl, [
|
|
3814
3814
|
C(i, {
|
|
@@ -3820,16 +3820,16 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
3820
3820
|
]);
|
|
3821
3821
|
};
|
|
3822
3822
|
}
|
|
3823
|
-
}), Yl = /* @__PURE__ */ ee(Hl, [["__scopeId", "data-v-cd73fd81"]]),
|
|
3823
|
+
}), Yl = /* @__PURE__ */ ee(Hl, [["__scopeId", "data-v-cd73fd81"]]), Ot = (l) => (_t("data-v-f59c4942"), l = l(), bt(), l), zl = {
|
|
3824
3824
|
key: 0,
|
|
3825
3825
|
width: "24",
|
|
3826
3826
|
height: "24",
|
|
3827
3827
|
viewBox: "0 0 24 24",
|
|
3828
3828
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3829
|
-
}, Pl = /* @__PURE__ */
|
|
3829
|
+
}, Pl = /* @__PURE__ */ Ot(() => /* @__PURE__ */ u("path", {
|
|
3830
3830
|
d: "M5.38544 13C3.30939 13.9424 2 15.3211 2 16.8571C2 19.6975 6.47715 22 12 22C17.5228 22 22 19.6975 22 16.8571C22 15.3211 20.6906 13.9424 18.6146 13",
|
|
3831
3831
|
class: "fill-grey"
|
|
3832
|
-
}, null, -1)), jl = /* @__PURE__ */
|
|
3832
|
+
}, null, -1)), jl = /* @__PURE__ */ Ot(() => /* @__PURE__ */ u("path", { d: "M8 9C8 7.89543 8.89543 7 10 7H14C15.1046 7 16 7.89543 16 9V12.875C16 13.4273 15.5523 13.875 15 13.875H14V17C14 17.5523 13.5523 18 13 18H11C10.4477 18 10 17.5523 10 17V13.875H9C8.44772 13.875 8 13.4273 8 12.875V9Z" }, null, -1)), Wl = /* @__PURE__ */ Ot(() => /* @__PURE__ */ u("path", { d: "M15 4C15 5.65685 13.6569 7 12 7C10.3431 7 9 5.65685 9 4C9 2.34315 10.3431 1 12 1C13.6569 1 15 2.34315 15 4Z" }, null, -1)), Nl = [
|
|
3833
3833
|
Pl,
|
|
3834
3834
|
jl,
|
|
3835
3835
|
Wl
|
|
@@ -3840,13 +3840,13 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
3840
3840
|
},
|
|
3841
3841
|
emits: ["toggle"],
|
|
3842
3842
|
setup(l, { emit: a }) {
|
|
3843
|
-
const e = l, n = a, t =
|
|
3843
|
+
const e = l, n = a, t = Ge($e), o = B(() => {
|
|
3844
3844
|
let i = "virtualTour";
|
|
3845
3845
|
return e.showStaticImage || (i = "slideShow"), i;
|
|
3846
3846
|
});
|
|
3847
3847
|
return (i, s) => {
|
|
3848
|
-
const m =
|
|
3849
|
-
return d(),
|
|
3848
|
+
const m = E("v-icon"), p = E("v-btn"), r = E("v-tooltip");
|
|
3849
|
+
return d(), T(r, { location: "top" }, {
|
|
3850
3850
|
activator: _(({ props: f }) => [
|
|
3851
3851
|
C(p, Me({
|
|
3852
3852
|
density: "comfortable",
|
|
@@ -3855,7 +3855,7 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
3855
3855
|
onClick: s[0] || (s[0] = (k) => n("toggle"))
|
|
3856
3856
|
}, f), {
|
|
3857
3857
|
default: _(() => [
|
|
3858
|
-
o.value === "virtualTour" ? (d(), x("svg", zl, Nl)) : (d(),
|
|
3858
|
+
o.value === "virtualTour" ? (d(), x("svg", zl, Nl)) : (d(), T(m, { key: 1 }, {
|
|
3859
3859
|
default: _(() => [
|
|
3860
3860
|
te("mdi-image-multiple")
|
|
3861
3861
|
]),
|
|
@@ -3872,10 +3872,10 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
3872
3872
|
});
|
|
3873
3873
|
};
|
|
3874
3874
|
}
|
|
3875
|
-
}), Ql = /* @__PURE__ */ ee(Gl, [["__scopeId", "data-v-f59c4942"]]),
|
|
3875
|
+
}), Ql = /* @__PURE__ */ ee(Gl, [["__scopeId", "data-v-f59c4942"]]), Qe = (l) => (_t("data-v-a5e7f474"), l = l(), bt(), l), Zl = {
|
|
3876
3876
|
key: 0,
|
|
3877
3877
|
class: "desktop-content"
|
|
3878
|
-
}, ql = { class: "d-flex align-center justify-center" }, Jl = { class: "box col d-flex flex-column align-bottom justify-center" }, Xl = /* @__PURE__ */
|
|
3878
|
+
}, ql = { class: "d-flex align-center justify-center" }, Jl = { class: "box col d-flex flex-column align-bottom justify-center" }, Xl = /* @__PURE__ */ Qe(() => /* @__PURE__ */ u("div", { class: "tutorial-icon justify-center" }, [
|
|
3879
3879
|
/* @__PURE__ */ u("svg", {
|
|
3880
3880
|
width: "50",
|
|
3881
3881
|
height: "32.5",
|
|
@@ -3922,7 +3922,7 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
3922
3922
|
"stroke-width": "1.5"
|
|
3923
3923
|
})
|
|
3924
3924
|
])
|
|
3925
|
-
], -1)), Kl = { class: "text-div text-center text mt-2" }, es = { class: "box col d-flex flex-column align-bottom justify-center" }, ts = /* @__PURE__ */
|
|
3925
|
+
], -1)), Kl = { class: "text-div text-center text mt-2" }, es = { class: "box col d-flex flex-column align-bottom justify-center" }, ts = /* @__PURE__ */ Qe(() => /* @__PURE__ */ u("div", { class: "tutorial-icon justify-center" }, [
|
|
3926
3926
|
/* @__PURE__ */ u("svg", {
|
|
3927
3927
|
width: "50",
|
|
3928
3928
|
height: "32.5",
|
|
@@ -4052,7 +4052,7 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
4052
4052
|
"stroke-linecap": "round"
|
|
4053
4053
|
})
|
|
4054
4054
|
])
|
|
4055
|
-
], -1)), as = { class: "text-div text-center text mt-2" }, ns = { class: "box col d-flex flex-column align-bottom justify-center" }, os = /* @__PURE__ */
|
|
4055
|
+
], -1)), as = { class: "text-div text-center text mt-2" }, ns = { class: "box col d-flex flex-column align-bottom justify-center" }, os = /* @__PURE__ */ Qe(() => /* @__PURE__ */ u("div", { class: "tutorial-icon justify-center" }, [
|
|
4056
4056
|
/* @__PURE__ */ u("svg", {
|
|
4057
4057
|
width: "50",
|
|
4058
4058
|
height: "32.5",
|
|
@@ -4123,7 +4123,7 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
4123
4123
|
"stroke-linejoin": "round"
|
|
4124
4124
|
})
|
|
4125
4125
|
])
|
|
4126
|
-
], -1)), ls = { class: "text-div text-center text mt-2" }, ss = { class: "box col d-flex flex-column align-bottom justify-center" }, is = /* @__PURE__ */
|
|
4126
|
+
], -1)), ls = { class: "text-div text-center text mt-2" }, ss = { class: "box col d-flex flex-column align-bottom justify-center" }, is = /* @__PURE__ */ Qe(() => /* @__PURE__ */ u("div", { class: "tutorial-icon justify-center" }, [
|
|
4127
4127
|
/* @__PURE__ */ u("svg", {
|
|
4128
4128
|
width: "50",
|
|
4129
4129
|
height: "32.5",
|
|
@@ -4194,7 +4194,7 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
4194
4194
|
], -1)), rs = { class: "text-div text-center text mt-2" }, us = {
|
|
4195
4195
|
key: 1,
|
|
4196
4196
|
class: "d-flex tablet-mobile-content"
|
|
4197
|
-
}, cs = { class: "box col my-1" }, ds = /* @__PURE__ */
|
|
4197
|
+
}, cs = { class: "box col my-1" }, ds = /* @__PURE__ */ Qe(() => /* @__PURE__ */ u("div", { class: "tutorial-icon justify-center" }, [
|
|
4198
4198
|
/* @__PURE__ */ u("svg", {
|
|
4199
4199
|
width: "50.5",
|
|
4200
4200
|
height: "32.5",
|
|
@@ -4228,7 +4228,7 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
4228
4228
|
"stroke-linejoin": "round"
|
|
4229
4229
|
})
|
|
4230
4230
|
])
|
|
4231
|
-
], -1)), vs = { class: "text text-col text-center" }, ms = { class: "box col my-1" }, ps = /* @__PURE__ */
|
|
4231
|
+
], -1)), vs = { class: "text text-col text-center" }, ms = { class: "box col my-1" }, ps = /* @__PURE__ */ Qe(() => /* @__PURE__ */ u("div", { class: "tutorial-icon justify-center" }, [
|
|
4232
4232
|
/* @__PURE__ */ u("svg", {
|
|
4233
4233
|
width: "49.5",
|
|
4234
4234
|
height: "32.5",
|
|
@@ -4362,7 +4362,7 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
4362
4362
|
"stroke-linejoin": "round"
|
|
4363
4363
|
})
|
|
4364
4364
|
])
|
|
4365
|
-
], -1)), fs = { class: "text text-col text-center" }, hs = { class: "box col my-1" }, gs = /* @__PURE__ */
|
|
4365
|
+
], -1)), fs = { class: "text text-col text-center" }, hs = { class: "box col my-1" }, gs = /* @__PURE__ */ Qe(() => /* @__PURE__ */ u("div", { class: "tutorial-icon justify-center" }, [
|
|
4366
4366
|
/* @__PURE__ */ u("svg", {
|
|
4367
4367
|
width: "49.5",
|
|
4368
4368
|
height: "32.5",
|
|
@@ -4400,7 +4400,7 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
4400
4400
|
__name: "VTutorial",
|
|
4401
4401
|
emits: ["closeTutorial"],
|
|
4402
4402
|
setup(l, { emit: a }) {
|
|
4403
|
-
const e = a, n =
|
|
4403
|
+
const e = a, n = Ge($e), t = v(!1), o = v(!1), i = B(() => [
|
|
4404
4404
|
/Android/i,
|
|
4405
4405
|
/webOS/i,
|
|
4406
4406
|
/iPhone/i,
|
|
@@ -4413,8 +4413,8 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
4413
4413
|
e("closeTutorial", t.value);
|
|
4414
4414
|
}
|
|
4415
4415
|
return (m, p) => {
|
|
4416
|
-
const r =
|
|
4417
|
-
return d(),
|
|
4416
|
+
const r = E("v-icon"), f = E("v-card-title"), k = E("v-btn"), g = E("v-divider"), c = E("v-card-text"), h = E("v-card-actions"), S = E("v-card"), b = E("v-expand-transition"), y = E("v-checkbox");
|
|
4417
|
+
return d(), T(Ee, { name: "fade-transition" }, {
|
|
4418
4418
|
default: _(() => [
|
|
4419
4419
|
C(S, {
|
|
4420
4420
|
class: "mx-auto",
|
|
@@ -4494,7 +4494,7 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
4494
4494
|
}),
|
|
4495
4495
|
C(b, null, {
|
|
4496
4496
|
default: _(() => [
|
|
4497
|
-
o.value ? (d(),
|
|
4497
|
+
o.value ? (d(), T(S, {
|
|
4498
4498
|
key: 0,
|
|
4499
4499
|
class: "position-absolute w-100 bg-white",
|
|
4500
4500
|
height: "100%",
|
|
@@ -4580,7 +4580,7 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
4580
4580
|
});
|
|
4581
4581
|
};
|
|
4582
4582
|
}
|
|
4583
|
-
}), Ss = /* @__PURE__ */ ee(ks, [["__scopeId", "data-v-a5e7f474"]]), Is = (l) => (
|
|
4583
|
+
}), Ss = /* @__PURE__ */ ee(ks, [["__scopeId", "data-v-a5e7f474"]]), Is = (l) => (_t("data-v-bd4f66c3"), l = l(), bt(), l), xs = { class: "player-settings-ui" }, Ds = { id: "settings-ui-form" }, As = { class: "form-inputs" }, Fs = { class: "setting-label" }, Ls = { class: "setting-label" }, Ms = ["max", "min", "step"], Os = { class: "setting-label" }, Es = { class: "flex-grow-1 flex-shrink-0" }, Ts = ["onUpdate:modelValue"], Vs = {
|
|
4584
4584
|
key: 3,
|
|
4585
4585
|
"d-block": "",
|
|
4586
4586
|
class: "mt-3"
|
|
@@ -4738,18 +4738,18 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
4738
4738
|
};
|
|
4739
4739
|
}
|
|
4740
4740
|
return (c, h) => {
|
|
4741
|
-
const S =
|
|
4741
|
+
const S = E("v-text-field"), b = E("v-slider"), y = E("v-checkbox"), Y = E("v-btn"), O = E("v-select"), P = E("v-icon");
|
|
4742
4742
|
return d(), x("div", xs, [
|
|
4743
4743
|
u("form", Ds, [
|
|
4744
4744
|
u("div", As, [
|
|
4745
|
-
(d(!0), x(
|
|
4746
|
-
key:
|
|
4745
|
+
(d(!0), x(me, null, ye(t.value, (I, L, Z) => (d(), x("div", {
|
|
4746
|
+
key: Z,
|
|
4747
4747
|
"d-block": ""
|
|
4748
4748
|
}, [
|
|
4749
|
-
I.type === "slider" ? (d(),
|
|
4749
|
+
I.type === "slider" ? (d(), T(b, {
|
|
4750
4750
|
key: 0,
|
|
4751
|
-
modelValue: t.value[
|
|
4752
|
-
"onUpdate:modelValue": (R) => t.value[
|
|
4751
|
+
modelValue: t.value[L].value,
|
|
4752
|
+
"onUpdate:modelValue": (R) => t.value[L].value = R,
|
|
4753
4753
|
onChange: i,
|
|
4754
4754
|
max: I.max,
|
|
4755
4755
|
min: I.min,
|
|
@@ -4761,8 +4761,8 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
4761
4761
|
append: _(() => [
|
|
4762
4762
|
u("div", null, [
|
|
4763
4763
|
C(S, {
|
|
4764
|
-
modelValue: t.value[
|
|
4765
|
-
"onUpdate:modelValue": (R) => t.value[
|
|
4764
|
+
modelValue: t.value[L].value,
|
|
4765
|
+
"onUpdate:modelValue": (R) => t.value[L].value = R,
|
|
4766
4766
|
"hide-details": "",
|
|
4767
4767
|
dense: "",
|
|
4768
4768
|
outlined: "",
|
|
@@ -4777,10 +4777,10 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
4777
4777
|
]),
|
|
4778
4778
|
_: 2
|
|
4779
4779
|
}, 1032, ["modelValue", "onUpdate:modelValue", "max", "min", "step"])) : $("", !0),
|
|
4780
|
-
I.type === "boolean" ? (d(),
|
|
4780
|
+
I.type === "boolean" ? (d(), T(y, {
|
|
4781
4781
|
key: 1,
|
|
4782
|
-
modelValue: t.value[
|
|
4783
|
-
"onUpdate:modelValue": (R) => t.value[
|
|
4782
|
+
modelValue: t.value[L].value,
|
|
4783
|
+
"onUpdate:modelValue": (R) => t.value[L].value = R,
|
|
4784
4784
|
onChange: i
|
|
4785
4785
|
}, {
|
|
4786
4786
|
prepend: _(() => [
|
|
@@ -4801,17 +4801,17 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
4801
4801
|
u("div", Os, Q(I.label), 1),
|
|
4802
4802
|
u("div", Es, [
|
|
4803
4803
|
we(u("input", {
|
|
4804
|
-
"onUpdate:modelValue": (R) => t.value[
|
|
4804
|
+
"onUpdate:modelValue": (R) => t.value[L].value = R,
|
|
4805
4805
|
type: "color",
|
|
4806
4806
|
onChange: i
|
|
4807
4807
|
}, null, 40, Ts), [
|
|
4808
|
-
[Fa, t.value[
|
|
4808
|
+
[Fa, t.value[L].value]
|
|
4809
4809
|
])
|
|
4810
4810
|
]),
|
|
4811
4811
|
u("div", null, [
|
|
4812
4812
|
C(S, {
|
|
4813
|
-
modelValue: t.value[
|
|
4814
|
-
"onUpdate:modelValue": (R) => t.value[
|
|
4813
|
+
modelValue: t.value[L].value,
|
|
4814
|
+
"onUpdate:modelValue": (R) => t.value[L].value = R,
|
|
4815
4815
|
"hide-details": "",
|
|
4816
4816
|
dense: "",
|
|
4817
4817
|
outlined: "",
|
|
@@ -4829,7 +4829,7 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
4829
4829
|
C(Y, {
|
|
4830
4830
|
class: "ml-2",
|
|
4831
4831
|
"x-small": "",
|
|
4832
|
-
onClick: (R) => t.value[
|
|
4832
|
+
onClick: (R) => t.value[L].value = null
|
|
4833
4833
|
}, {
|
|
4834
4834
|
default: _(() => [
|
|
4835
4835
|
te(" Clear Lut ")
|
|
@@ -4841,9 +4841,9 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
4841
4841
|
u("div", null, [
|
|
4842
4842
|
u("div", Rs, [
|
|
4843
4843
|
u("div", null, [
|
|
4844
|
-
C(
|
|
4845
|
-
modelValue: t.value[
|
|
4846
|
-
"onUpdate:modelValue": (R) => t.value[
|
|
4844
|
+
C(O, {
|
|
4845
|
+
modelValue: t.value[L].value,
|
|
4846
|
+
"onUpdate:modelValue": (R) => t.value[L].value = R,
|
|
4847
4847
|
items: I.items,
|
|
4848
4848
|
"item-title": "title",
|
|
4849
4849
|
"item-value": "value",
|
|
@@ -4858,8 +4858,8 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
4858
4858
|
u("div", Hs, [
|
|
4859
4859
|
u("div", null, [
|
|
4860
4860
|
C(S, {
|
|
4861
|
-
modelValue: t.value[
|
|
4862
|
-
"onUpdate:modelValue": (R) => t.value[
|
|
4861
|
+
modelValue: t.value[L].value,
|
|
4862
|
+
"onUpdate:modelValue": (R) => t.value[L].value = R,
|
|
4863
4863
|
"hide-details": "",
|
|
4864
4864
|
dense: "",
|
|
4865
4865
|
type: "url",
|
|
@@ -4963,19 +4963,19 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
4963
4963
|
class: ge([i.size, "sizer rounded"])
|
|
4964
4964
|
}, [
|
|
4965
4965
|
u("div", js, [
|
|
4966
|
-
|
|
4966
|
+
le(i.$slots, "top-left", {}, void 0, !0)
|
|
4967
4967
|
]),
|
|
4968
4968
|
u("div", Ws, [
|
|
4969
|
-
|
|
4969
|
+
le(i.$slots, "top-right", {}, void 0, !0)
|
|
4970
4970
|
]),
|
|
4971
4971
|
u("div", Ns, [
|
|
4972
|
-
|
|
4972
|
+
le(i.$slots, "header", {}, void 0, !0)
|
|
4973
4973
|
]),
|
|
4974
4974
|
u("div", Gs, [
|
|
4975
|
-
|
|
4975
|
+
le(i.$slots, "body", {}, void 0, !0)
|
|
4976
4976
|
]),
|
|
4977
4977
|
u("div", Qs, [
|
|
4978
|
-
|
|
4978
|
+
le(i.$slots, "footer", {}, void 0, !0)
|
|
4979
4979
|
])
|
|
4980
4980
|
], 2));
|
|
4981
4981
|
}
|
|
@@ -5012,36 +5012,36 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
5012
5012
|
containerHeight: {}
|
|
5013
5013
|
},
|
|
5014
5014
|
setup(l) {
|
|
5015
|
-
const a = l, e = v(512), n = v(384), t = v(512), o = v(384), i = v(new
|
|
5015
|
+
const a = l, e = v(512), n = v(384), t = v(512), o = v(384), i = v(new lt()), s = v(new Ea()), m = v({}), p = v(1), r = v(), f = e.value / e.value, k = B(() => {
|
|
5016
5016
|
const w = a.containerWidth / a.containerHeight;
|
|
5017
5017
|
let A;
|
|
5018
5018
|
return w > f ? A = a.containerHeight / n.value : A = a.containerWidth / e.value, A;
|
|
5019
|
-
}), g = B(() => a.allCameras), c = B(() => a.allCameras.find((w) => w.id === a.currentCamera)), h = B(() => a.rotation), S = B(() => new
|
|
5019
|
+
}), g = B(() => a.allCameras), c = B(() => a.allCameras.find((w) => w.id === a.currentCamera)), h = B(() => a.rotation), S = B(() => new lt(
|
|
5020
5020
|
a.storey.position.x,
|
|
5021
5021
|
a.storey.position.y,
|
|
5022
5022
|
a.storey.position.z
|
|
5023
5023
|
)), b = B(() => parseFloat(c.value.floor_vertical_position)), y = B(() => g.value.map((w) => {
|
|
5024
|
-
const A = w.uposition.split(","), W = new
|
|
5024
|
+
const A = w.uposition.split(","), W = new lt(
|
|
5025
5025
|
Number(A[0]) - S.value.x,
|
|
5026
5026
|
0,
|
|
5027
5027
|
Number(A[2]) - S.value.z
|
|
5028
5028
|
);
|
|
5029
5029
|
return {
|
|
5030
5030
|
...w,
|
|
5031
|
-
...
|
|
5031
|
+
...Z(i.value, W)
|
|
5032
5032
|
};
|
|
5033
5033
|
})), Y = B(() => ({
|
|
5034
5034
|
backgroundImage: `url(${a.backgroundImage})`
|
|
5035
|
-
})),
|
|
5035
|
+
})), O = B(() => ({
|
|
5036
5036
|
transform: `scale(${k.value * 0.9}) rotate(${a.transformAngle}deg)`
|
|
5037
5037
|
}));
|
|
5038
5038
|
Ie(() => {
|
|
5039
|
-
R(), I(),
|
|
5039
|
+
R(), I(), X();
|
|
5040
5040
|
const w = document.getElementById("moveableDiv");
|
|
5041
|
-
w && (r.value = new ResizeObserver(
|
|
5041
|
+
w && (r.value = new ResizeObserver(X).observe(w));
|
|
5042
5042
|
}), La(() => {
|
|
5043
5043
|
R(), I();
|
|
5044
|
-
}),
|
|
5044
|
+
}), Ne(() => {
|
|
5045
5045
|
r.value && r.value.unobserve(document.getElementById("moveableDiv"));
|
|
5046
5046
|
});
|
|
5047
5047
|
function P(w) {
|
|
@@ -5052,14 +5052,14 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
5052
5052
|
transform: `rotateZ(${s.value.rotation.y}deg) rotateX(${s.value.rotation.x}deg)`
|
|
5053
5053
|
};
|
|
5054
5054
|
}
|
|
5055
|
-
function
|
|
5055
|
+
function L(w) {
|
|
5056
5056
|
return {
|
|
5057
5057
|
top: `${Math.abs(w.top)}%`,
|
|
5058
5058
|
left: `${Math.abs(w.left)}%`
|
|
5059
5059
|
};
|
|
5060
5060
|
}
|
|
5061
|
-
function
|
|
5062
|
-
var W = new
|
|
5061
|
+
function Z(w, A) {
|
|
5062
|
+
var W = new lt();
|
|
5063
5063
|
const N = W.subVectors(w, A);
|
|
5064
5064
|
return {
|
|
5065
5065
|
relativePosition: N,
|
|
@@ -5070,10 +5070,10 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
5070
5070
|
function R() {
|
|
5071
5071
|
const w = a.storey.position.y - b.value;
|
|
5072
5072
|
o.value = 2 * (w * Math.tan(P(a.storey.fovY / 2))), t.value = 512 / 384 * o.value;
|
|
5073
|
-
const A = o.value / 2, W = t.value / 2, N = new
|
|
5073
|
+
const A = o.value / 2, W = t.value / 2, N = new lt(W * -1, 0, A * -1);
|
|
5074
5074
|
i.value = N;
|
|
5075
5075
|
}
|
|
5076
|
-
function
|
|
5076
|
+
function X() {
|
|
5077
5077
|
const w = document.getElementById("moveableDiv");
|
|
5078
5078
|
if (!w)
|
|
5079
5079
|
return;
|
|
@@ -5084,7 +5084,7 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
5084
5084
|
u("div", oi, [
|
|
5085
5085
|
u("div", {
|
|
5086
5086
|
class: "web-minimap",
|
|
5087
|
-
style: fe(
|
|
5087
|
+
style: fe(O.value)
|
|
5088
5088
|
}, [
|
|
5089
5089
|
u("div", {
|
|
5090
5090
|
class: "minimap-background-image",
|
|
@@ -5094,19 +5094,19 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
5094
5094
|
class: "center-pivot",
|
|
5095
5095
|
style: fe(m.value)
|
|
5096
5096
|
}, [
|
|
5097
|
-
(d(!0), x(
|
|
5097
|
+
(d(!0), x(me, null, ye(y.value, (W) => (d(), x("div", {
|
|
5098
5098
|
key: W.id
|
|
5099
5099
|
}, [
|
|
5100
5100
|
c.value.floorLevel === W.floorLevel ? (d(), x("div", {
|
|
5101
5101
|
key: 0,
|
|
5102
5102
|
class: "single-camera-marker",
|
|
5103
|
-
style: fe(
|
|
5103
|
+
style: fe(L(W))
|
|
5104
5104
|
}, null, 4)) : $("", !0),
|
|
5105
|
-
c.value.id === W.id && a.rotation !== null ? (d(),
|
|
5105
|
+
c.value.id === W.id && a.rotation !== null ? (d(), T(ai, {
|
|
5106
5106
|
key: 1,
|
|
5107
5107
|
class: "rotation-marker-component",
|
|
5108
5108
|
rotation: h.value,
|
|
5109
|
-
style: fe({ ...
|
|
5109
|
+
style: fe({ ...L(W) })
|
|
5110
5110
|
}, null, 8, ["rotation", "style"])) : $("", !0)
|
|
5111
5111
|
]))), 128))
|
|
5112
5112
|
], 4)
|
|
@@ -5127,7 +5127,7 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
5127
5127
|
class: "minimap-compass elevation-5",
|
|
5128
5128
|
style: fe({ scale: n.scale })
|
|
5129
5129
|
}, [
|
|
5130
|
-
C(
|
|
5130
|
+
C(nt, {
|
|
5131
5131
|
class: "north-indicator",
|
|
5132
5132
|
longitude: e.value
|
|
5133
5133
|
}, null, 8, ["longitude"])
|
|
@@ -5175,12 +5175,12 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
5175
5175
|
async function g(b) {
|
|
5176
5176
|
let y = /* @__PURE__ */ new Map();
|
|
5177
5177
|
for (let Y = 0; Y < b.length; Y++) {
|
|
5178
|
-
const
|
|
5179
|
-
for (let P = 0; P <
|
|
5180
|
-
const I =
|
|
5178
|
+
const O = b[Y].sunsimFiles;
|
|
5179
|
+
for (let P = 0; P < O.length; P++) {
|
|
5180
|
+
const I = O[P];
|
|
5181
5181
|
try {
|
|
5182
|
-
const
|
|
5183
|
-
y.set(
|
|
5182
|
+
const L = I, Z = I.split("."), R = await c(L);
|
|
5183
|
+
y.set(Z[0], R);
|
|
5184
5184
|
} catch {
|
|
5185
5185
|
continue;
|
|
5186
5186
|
}
|
|
@@ -5194,34 +5194,34 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
5194
5194
|
e.cdnFileResolver,
|
|
5195
5195
|
`/${e.apartmentJson.type}/${e.apartmentJson.id}/minimap/${b}`
|
|
5196
5196
|
)
|
|
5197
|
-
)).blob(),
|
|
5198
|
-
return h(
|
|
5197
|
+
)).blob(), O = await S(Y);
|
|
5198
|
+
return h(O);
|
|
5199
5199
|
}
|
|
5200
5200
|
function h(b) {
|
|
5201
5201
|
return "data:image/jpeg;base64," + b;
|
|
5202
5202
|
}
|
|
5203
5203
|
async function S(b) {
|
|
5204
5204
|
return new Promise((y, Y) => {
|
|
5205
|
-
const
|
|
5206
|
-
|
|
5207
|
-
const P =
|
|
5205
|
+
const O = new FileReader();
|
|
5206
|
+
O.onload = () => {
|
|
5207
|
+
const P = O.result.split(",")[1];
|
|
5208
5208
|
y(P);
|
|
5209
|
-
},
|
|
5209
|
+
}, O.onerror = Y, O.readAsDataURL(b);
|
|
5210
5210
|
});
|
|
5211
5211
|
}
|
|
5212
5212
|
return (b, y) => {
|
|
5213
|
-
const Y =
|
|
5213
|
+
const Y = E("v-progress-linear"), O = E("v-icon"), P = E("v-slider");
|
|
5214
5214
|
return d(), x("div", ui, [
|
|
5215
5215
|
u("div", ci, [
|
|
5216
5216
|
u("div", di, [
|
|
5217
|
-
o.value ? (d(),
|
|
5217
|
+
o.value ? (d(), T(Y, {
|
|
5218
5218
|
key: 0,
|
|
5219
5219
|
indeterminate: "",
|
|
5220
5220
|
rounded: "",
|
|
5221
5221
|
height: "6",
|
|
5222
5222
|
color: "grey lighten-1",
|
|
5223
5223
|
class: "mr-2"
|
|
5224
|
-
})) : (d(),
|
|
5224
|
+
})) : (d(), T(P, {
|
|
5225
5225
|
key: 1,
|
|
5226
5226
|
modelValue: t.value,
|
|
5227
5227
|
"onUpdate:modelValue": y[0] || (y[0] = (I) => t.value = I),
|
|
@@ -5236,7 +5236,7 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
5236
5236
|
}, {
|
|
5237
5237
|
prepend: _(() => [
|
|
5238
5238
|
u("div", vi, [
|
|
5239
|
-
C(
|
|
5239
|
+
C(O, { color: "#ffab02" }, {
|
|
5240
5240
|
default: _(() => [
|
|
5241
5241
|
te("mdi-white-balance-sunny")
|
|
5242
5242
|
]),
|
|
@@ -5256,7 +5256,7 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
5256
5256
|
]);
|
|
5257
5257
|
};
|
|
5258
5258
|
}
|
|
5259
|
-
}), fi = /* @__PURE__ */ ee(pi, [["__scopeId", "data-v-52f122f2"]]), hi = (l) => (
|
|
5259
|
+
}), fi = /* @__PURE__ */ ee(pi, [["__scopeId", "data-v-52f122f2"]]), hi = (l) => (_t("data-v-79a93ab0"), l = l(), bt(), l), gi = { class: "left" }, yi = { class: "right" }, _i = /* @__PURE__ */ hi(() => /* @__PURE__ */ u("div", { class: "d-flex justify-space-between pa-1" }, [
|
|
5260
5260
|
/* @__PURE__ */ u("div", { class: "center" }, " ")
|
|
5261
5261
|
], -1)), bi = /* @__PURE__ */ j({
|
|
5262
5262
|
__name: "VMiniMap",
|
|
@@ -5298,8 +5298,8 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
5298
5298
|
t("close");
|
|
5299
5299
|
};
|
|
5300
5300
|
return (h, S) => {
|
|
5301
|
-
const b =
|
|
5302
|
-
return d(),
|
|
5301
|
+
const b = E("v-btn");
|
|
5302
|
+
return d(), T(qs, {
|
|
5303
5303
|
ref_key: "minimapMoveable",
|
|
5304
5304
|
ref: e,
|
|
5305
5305
|
size: k.value
|
|
@@ -5367,7 +5367,7 @@ const ll = { id: "player-wrapper" }, sl = { id: "player-sizer" }, il = {
|
|
|
5367
5367
|
};
|
|
5368
5368
|
}
|
|
5369
5369
|
}), zt = /* @__PURE__ */ ee(bi, [["__scopeId", "data-v-79a93ab0"]]);
|
|
5370
|
-
function
|
|
5370
|
+
function ht(l) {
|
|
5371
5371
|
const a = l * 60, e = Math.floor(a / 60), n = a % 60;
|
|
5372
5372
|
return `${e.toString().padStart(2, "0")}:${n.toString().padStart(2, "0")}`;
|
|
5373
5373
|
}
|
|
@@ -5380,7 +5380,7 @@ const Ci = { class: "d-flex align-center" }, wi = { class: "d-block mr-1" }, ki
|
|
|
5380
5380
|
},
|
|
5381
5381
|
emits: ["onTimeChange", "toggleSunStudy"],
|
|
5382
5382
|
setup(l, { emit: a }) {
|
|
5383
|
-
const e = l, { currentDay: n, currentTime: t, disabled: o } =
|
|
5383
|
+
const e = l, { currentDay: n, currentTime: t, disabled: o } = Ve(e), i = a, s = v(t.value.timeInHours);
|
|
5384
5384
|
return H(t, () => {
|
|
5385
5385
|
s.value = t.value.timeInHours;
|
|
5386
5386
|
}), H(
|
|
@@ -5395,7 +5395,7 @@ const Ci = { class: "d-flex align-center" }, wi = { class: "d-block mr-1" }, ki
|
|
|
5395
5395
|
},
|
|
5396
5396
|
{ immediate: !0 }
|
|
5397
5397
|
), (m, p) => {
|
|
5398
|
-
const r =
|
|
5398
|
+
const r = E("v-icon"), f = E("v-slider"), k = E("v-field"), g = E("v-btn");
|
|
5399
5399
|
return d(), x("div", Ci, [
|
|
5400
5400
|
u("div", wi, [
|
|
5401
5401
|
C(k, {
|
|
@@ -5406,7 +5406,7 @@ const Ci = { class: "d-flex align-center" }, wi = { class: "d-block mr-1" }, ki
|
|
|
5406
5406
|
flat: ""
|
|
5407
5407
|
}, {
|
|
5408
5408
|
default: _(() => [
|
|
5409
|
-
D(n).timeSamples.length > 1 ? (d(),
|
|
5409
|
+
D(n).timeSamples.length > 1 ? (d(), T(f, {
|
|
5410
5410
|
key: 0,
|
|
5411
5411
|
class: "pa-2 pr-2",
|
|
5412
5412
|
modelValue: s.value,
|
|
@@ -5431,10 +5431,10 @@ const Ci = { class: "d-flex align-center" }, wi = { class: "d-block mr-1" }, ki
|
|
|
5431
5431
|
]),
|
|
5432
5432
|
_: 1
|
|
5433
5433
|
}),
|
|
5434
|
-
u("span", ki, Q(D(
|
|
5434
|
+
u("span", ki, Q(D(ht)(s.value)), 1)
|
|
5435
5435
|
]),
|
|
5436
5436
|
_: 1
|
|
5437
|
-
}, 8, ["modelValue", "min", "max", "step", "disabled"])) : (d(), x(
|
|
5437
|
+
}, 8, ["modelValue", "min", "max", "step", "disabled"])) : (d(), x(me, { key: 1 }, [
|
|
5438
5438
|
C(r, {
|
|
5439
5439
|
style: { "vertical-align": "baseline", "font-size": "20px", "margin-top": "-1px", opacity: "0.6" },
|
|
5440
5440
|
class: "mr-2 icon",
|
|
@@ -5445,7 +5445,7 @@ const Ci = { class: "d-flex align-center" }, wi = { class: "d-block mr-1" }, ki
|
|
|
5445
5445
|
]),
|
|
5446
5446
|
_: 1
|
|
5447
5447
|
}),
|
|
5448
|
-
u("span", Si, Q(D(
|
|
5448
|
+
u("span", Si, Q(D(ht)(s.value)), 1)
|
|
5449
5449
|
], 64))
|
|
5450
5450
|
]),
|
|
5451
5451
|
_: 1
|
|
@@ -5470,10 +5470,10 @@ const Ci = { class: "d-flex align-center" }, wi = { class: "d-block mr-1" }, ki
|
|
|
5470
5470
|
},
|
|
5471
5471
|
emits: ["toggleSunStudy"],
|
|
5472
5472
|
setup(l, { emit: a }) {
|
|
5473
|
-
const e = a, n =
|
|
5473
|
+
const e = a, n = Ge($e);
|
|
5474
5474
|
return (t, o) => {
|
|
5475
|
-
const i =
|
|
5476
|
-
return !t.displaySunsim && t.showUI ? (d(),
|
|
5475
|
+
const i = E("v-btn");
|
|
5476
|
+
return !t.displaySunsim && t.showUI ? (d(), T(i, {
|
|
5477
5477
|
key: 0,
|
|
5478
5478
|
size: "small",
|
|
5479
5479
|
varient: "tonal",
|
|
@@ -5499,8 +5499,8 @@ const Ci = { class: "d-flex align-center" }, wi = { class: "d-block mr-1" }, ki
|
|
|
5499
5499
|
window.navigator.userAgent
|
|
5500
5500
|
));
|
|
5501
5501
|
return (t, o) => {
|
|
5502
|
-
const i =
|
|
5503
|
-
return d(),
|
|
5502
|
+
const i = E("v-icon"), s = E("v-btn");
|
|
5503
|
+
return d(), T(s, {
|
|
5504
5504
|
size: "x-small",
|
|
5505
5505
|
class: ge(["autoplay-btn", { mobile: n.value, "mt-1": n.value, "mx-1": n.value }]),
|
|
5506
5506
|
onClick: o[0] || (o[0] = (m) => e("toggleAutoPlay"))
|
|
@@ -5540,7 +5540,7 @@ const Ci = { class: "d-flex align-center" }, wi = { class: "d-block mr-1" }, ki
|
|
|
5540
5540
|
));
|
|
5541
5541
|
Ie(() => {
|
|
5542
5542
|
window.addEventListener("keydown", s);
|
|
5543
|
-
}),
|
|
5543
|
+
}), Ne(() => {
|
|
5544
5544
|
window.removeEventListener("keydown", s);
|
|
5545
5545
|
});
|
|
5546
5546
|
function s(p) {
|
|
@@ -5559,7 +5559,7 @@ const Ci = { class: "d-flex align-center" }, wi = { class: "d-block mr-1" }, ki
|
|
|
5559
5559
|
r(), n("goto", p);
|
|
5560
5560
|
}
|
|
5561
5561
|
return (p, r) => {
|
|
5562
|
-
const f =
|
|
5562
|
+
const f = E("v-btn"), k = E("v-img"), g = E("v-icon"), c = E("v-card"), h = E("v-slide-group-item"), S = E("v-slide-group");
|
|
5563
5563
|
return d(), x("div", {
|
|
5564
5564
|
class: ge(["d-flex align-center justify-center", {
|
|
5565
5565
|
mobileWaypointWrapper: i.value,
|
|
@@ -5567,7 +5567,7 @@ const Ci = { class: "d-flex align-center" }, wi = { class: "d-block mr-1" }, ki
|
|
|
5567
5567
|
" waypoint-carousel": !0
|
|
5568
5568
|
}])
|
|
5569
5569
|
}, [
|
|
5570
|
-
|
|
5570
|
+
le(p.$slots, "before", {}, void 0, !0),
|
|
5571
5571
|
C(S, {
|
|
5572
5572
|
modelValue: o.value,
|
|
5573
5573
|
"onUpdate:modelValue": r[2] || (r[2] = (b) => o.value = b),
|
|
@@ -5579,7 +5579,7 @@ const Ci = { class: "d-flex align-center" }, wi = { class: "d-block mr-1" }, ki
|
|
|
5579
5579
|
mandatory: ""
|
|
5580
5580
|
}, {
|
|
5581
5581
|
prev: _(() => [
|
|
5582
|
-
i.value ? $("", !0) : (d(),
|
|
5582
|
+
i.value ? $("", !0) : (d(), T(f, {
|
|
5583
5583
|
key: 0,
|
|
5584
5584
|
class: ge(["carousel-button", { mobile: i.value }]),
|
|
5585
5585
|
icon: "mdi-chevron-left",
|
|
@@ -5589,7 +5589,7 @@ const Ci = { class: "d-flex align-center" }, wi = { class: "d-block mr-1" }, ki
|
|
|
5589
5589
|
}, null, 8, ["class"]))
|
|
5590
5590
|
]),
|
|
5591
5591
|
next: _(() => [
|
|
5592
|
-
i.value ? $("", !0) : (d(),
|
|
5592
|
+
i.value ? $("", !0) : (d(), T(f, {
|
|
5593
5593
|
key: 0,
|
|
5594
5594
|
class: ge(["carousel-button", { mobile: i.value }]),
|
|
5595
5595
|
icon: "mdi-chevron-right",
|
|
@@ -5599,7 +5599,7 @@ const Ci = { class: "d-flex align-center" }, wi = { class: "d-block mr-1" }, ki
|
|
|
5599
5599
|
}, null, 8, ["class"]))
|
|
5600
5600
|
]),
|
|
5601
5601
|
default: _(() => [
|
|
5602
|
-
(d(!0), x(
|
|
5602
|
+
(d(!0), x(me, null, ye(p.thumbnails, (b) => (d(), T(h, {
|
|
5603
5603
|
key: b.id
|
|
5604
5604
|
}, {
|
|
5605
5605
|
default: _(({ toggle: y, selectedClass: Y }) => [
|
|
@@ -5612,7 +5612,7 @@ const Ci = { class: "d-flex align-center" }, wi = { class: "d-block mr-1" }, ki
|
|
|
5612
5612
|
align: "center",
|
|
5613
5613
|
justify: "center",
|
|
5614
5614
|
style: { overflow: "hidden" },
|
|
5615
|
-
onClick: (
|
|
5615
|
+
onClick: (O) => m(b.id, y)
|
|
5616
5616
|
}, {
|
|
5617
5617
|
default: _(() => [
|
|
5618
5618
|
C(k, {
|
|
@@ -5635,17 +5635,17 @@ const Ci = { class: "d-flex align-center" }, wi = { class: "d-block mr-1" }, ki
|
|
|
5635
5635
|
]),
|
|
5636
5636
|
_: 1
|
|
5637
5637
|
}, 8, ["modelValue", "class", "show-arrows"]),
|
|
5638
|
-
|
|
5638
|
+
le(p.$slots, "after", {}, void 0, !0)
|
|
5639
5639
|
], 2);
|
|
5640
5640
|
};
|
|
5641
5641
|
}
|
|
5642
|
-
}),
|
|
5642
|
+
}), gt = /* @__PURE__ */ ee(Mi, [["__scopeId", "data-v-9cc758dc"]]), Oi = {
|
|
5643
5643
|
id: "share-btns-wrapper",
|
|
5644
5644
|
class: "text-center"
|
|
5645
5645
|
}, Ei = /* @__PURE__ */ j({
|
|
5646
5646
|
__name: "VSocialShare",
|
|
5647
5647
|
setup(l) {
|
|
5648
|
-
const a =
|
|
5648
|
+
const a = Ge($e), e = v(!1), n = v(location.href);
|
|
5649
5649
|
function t() {
|
|
5650
5650
|
return window.open(
|
|
5651
5651
|
"https://www.facebook.com/sharer/sharer.php?u=" + encodeURIComponent(location.href),
|
|
@@ -5671,7 +5671,7 @@ const Ci = { class: "d-flex align-center" }, wi = { class: "d-block mr-1" }, ki
|
|
|
5671
5671
|
navigator.clipboard.writeText(location.href);
|
|
5672
5672
|
}
|
|
5673
5673
|
return (m, p) => {
|
|
5674
|
-
const r =
|
|
5674
|
+
const r = E("v-btn"), f = E("v-tooltip"), k = E("v-toolbar-title"), g = E("v-spacer"), c = E("v-toolbar"), h = E("v-card-text"), S = E("v-card"), b = E("v-dialog");
|
|
5675
5675
|
return d(), x("div", null, [
|
|
5676
5676
|
C(f, {
|
|
5677
5677
|
elevation: "2",
|
|
@@ -5834,7 +5834,7 @@ const Ci = { class: "d-flex align-center" }, wi = { class: "d-block mr-1" }, ki
|
|
|
5834
5834
|
setup(l, { emit: a }) {
|
|
5835
5835
|
const e = a;
|
|
5836
5836
|
return (n, t) => {
|
|
5837
|
-
const o =
|
|
5837
|
+
const o = E("v-btn");
|
|
5838
5838
|
return d(), x("div", Bi, [
|
|
5839
5839
|
C(o, {
|
|
5840
5840
|
density: "comfortable",
|
|
@@ -5968,84 +5968,84 @@ const Ri = {
|
|
|
5968
5968
|
showMiniMap: b,
|
|
5969
5969
|
showFloorLevel: y,
|
|
5970
5970
|
defaultWaypointIndex: Y,
|
|
5971
|
-
defaultViewMode:
|
|
5971
|
+
defaultViewMode: O,
|
|
5972
5972
|
mouseSensitivity: P,
|
|
5973
5973
|
// isInIframe,
|
|
5974
5974
|
adminMode: I,
|
|
5975
|
-
playerSettings:
|
|
5976
|
-
hasMarkersJson:
|
|
5975
|
+
playerSettings: L,
|
|
5976
|
+
hasMarkersJson: Z,
|
|
5977
5977
|
dynamicMarkers: R,
|
|
5978
|
-
version:
|
|
5978
|
+
version: X,
|
|
5979
5979
|
showVersion: w
|
|
5980
|
-
} =
|
|
5980
|
+
} = Ve(n), A = e;
|
|
5981
5981
|
a({
|
|
5982
5982
|
updateSelectedInterior: Vt,
|
|
5983
5983
|
takeSnapshot: Rt,
|
|
5984
|
-
setCurrentCamera:
|
|
5984
|
+
setCurrentCamera: vt
|
|
5985
5985
|
});
|
|
5986
|
-
const W = v(!1), N = v(!1),
|
|
5986
|
+
const W = v(!1), N = v(!1), ve = v(!1), z = v(), M = v(), q = v(), J = v(), re = v(), se = v(0), ie = v(), _e = v(), ue = v(), Le = v(0), Ae = v(0), He = v(0), be = v(!1), xe = v(!1), Oe = v(), Ce = v(!1), G = v(!1), K = v(
|
|
5987
5987
|
new ta(document, "player-wrapper")
|
|
5988
|
-
),
|
|
5989
|
-
if (
|
|
5990
|
-
const F =
|
|
5991
|
-
(
|
|
5988
|
+
), V = v(), ae = B(() => {
|
|
5989
|
+
if (M.value) {
|
|
5990
|
+
const F = M.value.cameras.map(
|
|
5991
|
+
(oe) => oe.floorLevel
|
|
5992
5992
|
);
|
|
5993
5993
|
let U = [...new Set(F)];
|
|
5994
5994
|
return U = U.sort(), U;
|
|
5995
5995
|
} else
|
|
5996
5996
|
return [];
|
|
5997
|
-
}),
|
|
5997
|
+
}), ce = B(() => {
|
|
5998
5998
|
let F = 0;
|
|
5999
|
-
if (
|
|
6000
|
-
const U =
|
|
6001
|
-
(
|
|
5999
|
+
if (M.value) {
|
|
6000
|
+
const U = M.value.cameras.map(
|
|
6001
|
+
(qe) => qe.floorLevel
|
|
6002
6002
|
);
|
|
6003
|
-
let
|
|
6004
|
-
|
|
6005
|
-
const Se =
|
|
6006
|
-
(
|
|
6003
|
+
let oe = [...new Set(U)];
|
|
6004
|
+
oe = oe.sort();
|
|
6005
|
+
const Se = oe.findIndex(
|
|
6006
|
+
(qe) => qe === Ae.value
|
|
6007
6007
|
);
|
|
6008
6008
|
Se !== -1 && (F = Se);
|
|
6009
6009
|
}
|
|
6010
6010
|
return F;
|
|
6011
|
-
}),
|
|
6012
|
-
(F) => F.archetypeID ===
|
|
6013
|
-
)),
|
|
6011
|
+
}), de = B(() => Pe.value.findIndex(
|
|
6012
|
+
(F) => F.archetypeID === ie.value
|
|
6013
|
+
)), ne = B(() => q.value ? q.value.cameras.map((F) => ({
|
|
6014
6014
|
...F,
|
|
6015
|
-
thumbnailUrl:
|
|
6016
|
-
`/${
|
|
6015
|
+
thumbnailUrl: mt(
|
|
6016
|
+
`/${ie.value}/${o.value}/thumbs/200/${F.id}.jpg`
|
|
6017
6017
|
),
|
|
6018
|
-
imageUrl:
|
|
6019
|
-
`/${
|
|
6018
|
+
imageUrl: mt(
|
|
6019
|
+
`/${ie.value}/${o.value}/images/1600/${F.id}.jpg`
|
|
6020
6020
|
)
|
|
6021
|
-
})) : []),
|
|
6021
|
+
})) : []), Ue = B(() => !ne.value || !ne.value[se.value] ? "" : ne.value[se.value].imageUrl), Pe = B(() => {
|
|
6022
6022
|
let F = [];
|
|
6023
6023
|
return z.value && (F = z.value.archetypes), s.value.length ? F.filter(
|
|
6024
6024
|
(U) => s.value.includes(U.archetypeID)
|
|
6025
6025
|
) : F;
|
|
6026
|
-
}),
|
|
6027
|
-
var
|
|
6028
|
-
const U = (
|
|
6026
|
+
}), Be = B(() => q.value ? Pe.value.map((F) => {
|
|
6027
|
+
var oe;
|
|
6028
|
+
const U = (oe = ne.value[se.value]) == null ? void 0 : oe.id;
|
|
6029
6029
|
return {
|
|
6030
6030
|
...F,
|
|
6031
|
-
url:
|
|
6031
|
+
url: mt(
|
|
6032
6032
|
`/${F.archetypeID}/${o.value}/thumbs/200/${U}.jpg`
|
|
6033
6033
|
)
|
|
6034
6034
|
};
|
|
6035
|
-
}) : []),
|
|
6036
|
-
if (
|
|
6037
|
-
return
|
|
6038
|
-
}), aa = B(() =>
|
|
6039
|
-
if (
|
|
6040
|
-
return Sa(
|
|
6035
|
+
}) : []), ct = B(() => {
|
|
6036
|
+
if (J.value && J.value.storeys && ce.value in J.value.storeys)
|
|
6037
|
+
return J.value.storeys[ce.value];
|
|
6038
|
+
}), aa = B(() => M.value && M.value.timeInHours), Et = B(() => {
|
|
6039
|
+
if (M.value && M.value.timeInHours && f.value)
|
|
6040
|
+
return Sa(M.value.timeInHours);
|
|
6041
6041
|
});
|
|
6042
|
-
|
|
6043
|
-
|
|
6042
|
+
et(
|
|
6043
|
+
$e,
|
|
6044
6044
|
p.value ? new Re(p.value) : new Re()
|
|
6045
6045
|
);
|
|
6046
|
-
const
|
|
6046
|
+
const je = B(() => /Android|webOS|iPhone|iPad|BlackBerry|Windows Phone|Opera Mini|IEMobile|Mobile/i.test(
|
|
6047
6047
|
window.navigator.userAgent
|
|
6048
|
-
)), Tt = B(() =>
|
|
6048
|
+
)), Tt = B(() => je.value ? "platform-mobile" : "platform-desktop"), na = B(() => {
|
|
6049
6049
|
const F = he(
|
|
6050
6050
|
t.value,
|
|
6051
6051
|
"/config.json"
|
|
@@ -6055,42 +6055,42 @@ const Ri = {
|
|
|
6055
6055
|
);
|
|
6056
6056
|
});
|
|
6057
6057
|
H(i, () => {
|
|
6058
|
-
i.value && (
|
|
6058
|
+
i.value && (ie.value = i.value);
|
|
6059
6059
|
}), H(
|
|
6060
6060
|
[t, o],
|
|
6061
6061
|
async () => {
|
|
6062
6062
|
try {
|
|
6063
|
-
_e.value = void 0, await sa(), ra(), await ia(),
|
|
6063
|
+
_e.value = void 0, await sa(), ra(), await ia(), K.value.setup(), ua();
|
|
6064
6064
|
} catch (F) {
|
|
6065
|
-
|
|
6065
|
+
ve.value = !0, A("onError", F);
|
|
6066
6066
|
}
|
|
6067
6067
|
},
|
|
6068
6068
|
{ immediate: !0 }
|
|
6069
6069
|
), H(
|
|
6070
|
-
|
|
6070
|
+
O,
|
|
6071
6071
|
() => {
|
|
6072
|
-
|
|
6072
|
+
O.value === "virtualTour" && (be.value = !1), O.value === "slideShow" && (be.value = !0, G.value = !0);
|
|
6073
6073
|
},
|
|
6074
6074
|
{ immediate: !0 }
|
|
6075
6075
|
), H(Ce, () => {
|
|
6076
6076
|
if (Ce.value) {
|
|
6077
6077
|
G.value = !1;
|
|
6078
|
-
const F =
|
|
6078
|
+
const F = Ze(ue.value);
|
|
6079
6079
|
Oe.value = F[0].timeSamples.find(
|
|
6080
6080
|
(U) => U.timeInHours === F[0].defaultHour
|
|
6081
6081
|
);
|
|
6082
6082
|
} else
|
|
6083
|
-
G.value = !0,
|
|
6083
|
+
G.value = !0, re.value.unloadSunSim();
|
|
6084
6084
|
}), Ie(async () => {
|
|
6085
6085
|
try {
|
|
6086
6086
|
na.value ? (W.value = !1, G.value = !0) : setTimeout(() => {
|
|
6087
6087
|
W.value = !0;
|
|
6088
6088
|
}, 1e3);
|
|
6089
6089
|
} catch (F) {
|
|
6090
|
-
|
|
6090
|
+
ve.value = !0, A("onError", F);
|
|
6091
6091
|
}
|
|
6092
|
-
}),
|
|
6093
|
-
document.removeEventListener("wheel",
|
|
6092
|
+
}), Ne(() => {
|
|
6093
|
+
document.removeEventListener("wheel", wt);
|
|
6094
6094
|
});
|
|
6095
6095
|
function oa(F = !1) {
|
|
6096
6096
|
G.value = !0, W.value = !1, F && la();
|
|
@@ -6107,35 +6107,35 @@ const Ri = {
|
|
|
6107
6107
|
}
|
|
6108
6108
|
async function ia() {
|
|
6109
6109
|
var F;
|
|
6110
|
-
if (
|
|
6111
|
-
|
|
6110
|
+
if (M.value = await da(
|
|
6111
|
+
ie.value,
|
|
6112
6112
|
o.value
|
|
6113
|
-
),
|
|
6114
|
-
|
|
6113
|
+
), M.value && (_e.value = (F = M.value.cameras[0]) == null ? void 0 : F.id), q.value = await va(
|
|
6114
|
+
ie.value,
|
|
6115
6115
|
o.value
|
|
6116
|
-
),
|
|
6116
|
+
), q.value) {
|
|
6117
6117
|
const U = Y.value !== null ? Y.value : 0;
|
|
6118
|
-
|
|
6118
|
+
se.value = U, _e.value = q.value.cameras[U].id, ue.value = q.value.cameras[U].id;
|
|
6119
6119
|
}
|
|
6120
|
-
b.value && (
|
|
6121
|
-
|
|
6120
|
+
b.value && (J.value = await ma(
|
|
6121
|
+
ie.value,
|
|
6122
6122
|
o.value
|
|
6123
6123
|
));
|
|
6124
6124
|
}
|
|
6125
6125
|
function ra() {
|
|
6126
6126
|
let F = i.value;
|
|
6127
|
-
F || (F = z.value.defaultArchetypeID), s.value.length || !s.value.includes(F) ? F = s.value[0] : console.warn("illegal interior id", F, s), F || (F = z.value.archetypes[0].archetypeID),
|
|
6127
|
+
F || (F = z.value.defaultArchetypeID), s.value.length || !s.value.includes(F) ? F = s.value[0] : console.warn("illegal interior id", F, s), F || (F = z.value.archetypes[0].archetypeID), ie.value = F;
|
|
6128
6128
|
}
|
|
6129
6129
|
function ua() {
|
|
6130
6130
|
const F = document.getElementById("main-canvas");
|
|
6131
6131
|
F.addEventListener("touchmove", U, { passive: !1 });
|
|
6132
|
-
function U(
|
|
6133
|
-
|
|
6132
|
+
function U(oe) {
|
|
6133
|
+
oe.preventDefault(), window.scrollBy(0, 0);
|
|
6134
6134
|
}
|
|
6135
6135
|
F.addEventListener(
|
|
6136
6136
|
"mouseenter",
|
|
6137
6137
|
() => {
|
|
6138
|
-
document.addEventListener("wheel",
|
|
6138
|
+
document.addEventListener("wheel", wt, {
|
|
6139
6139
|
passive: !1
|
|
6140
6140
|
});
|
|
6141
6141
|
},
|
|
@@ -6143,17 +6143,17 @@ const Ri = {
|
|
|
6143
6143
|
), F.addEventListener(
|
|
6144
6144
|
"mouseleave",
|
|
6145
6145
|
() => {
|
|
6146
|
-
document.removeEventListener("wheel",
|
|
6146
|
+
document.removeEventListener("wheel", wt);
|
|
6147
6147
|
},
|
|
6148
6148
|
{ passive: !1 }
|
|
6149
6149
|
);
|
|
6150
6150
|
}
|
|
6151
|
-
function
|
|
6151
|
+
function wt(F) {
|
|
6152
6152
|
F.preventDefault(), window.scrollBy(0, 0);
|
|
6153
6153
|
}
|
|
6154
6154
|
async function ca() {
|
|
6155
6155
|
try {
|
|
6156
|
-
return await
|
|
6156
|
+
return await pt("/config.json");
|
|
6157
6157
|
} catch (F) {
|
|
6158
6158
|
console.error(
|
|
6159
6159
|
"Error loading config.json - ",
|
|
@@ -6165,21 +6165,21 @@ const Ri = {
|
|
|
6165
6165
|
}
|
|
6166
6166
|
async function da(F, U) {
|
|
6167
6167
|
try {
|
|
6168
|
-
return await
|
|
6168
|
+
return await pt(
|
|
6169
6169
|
`/${F}/${U}/apartment.json`
|
|
6170
6170
|
);
|
|
6171
|
-
} catch (
|
|
6171
|
+
} catch (oe) {
|
|
6172
6172
|
console.error(
|
|
6173
6173
|
"Error loading apartment.json - ",
|
|
6174
6174
|
`/${F}/${U}/apartment.json`,
|
|
6175
|
-
|
|
6175
|
+
oe
|
|
6176
6176
|
);
|
|
6177
6177
|
return;
|
|
6178
6178
|
}
|
|
6179
6179
|
}
|
|
6180
6180
|
async function va(F, U) {
|
|
6181
6181
|
try {
|
|
6182
|
-
return await
|
|
6182
|
+
return await pt(
|
|
6183
6183
|
`/${F}/${U}/thumbs.json`
|
|
6184
6184
|
);
|
|
6185
6185
|
} catch {
|
|
@@ -6192,7 +6192,7 @@ const Ri = {
|
|
|
6192
6192
|
}
|
|
6193
6193
|
async function ma(F, U) {
|
|
6194
6194
|
try {
|
|
6195
|
-
return await
|
|
6195
|
+
return await pt(
|
|
6196
6196
|
`/${F}/${U}/minimap/minimap.json`
|
|
6197
6197
|
);
|
|
6198
6198
|
} catch {
|
|
@@ -6203,39 +6203,39 @@ const Ri = {
|
|
|
6203
6203
|
return;
|
|
6204
6204
|
}
|
|
6205
6205
|
}
|
|
6206
|
-
function
|
|
6207
|
-
let F =
|
|
6208
|
-
F >=
|
|
6206
|
+
function dt() {
|
|
6207
|
+
let F = se.value + 1;
|
|
6208
|
+
F >= ne.value.length && (F = 0), se.value = F, vt(ne.value[se.value].id);
|
|
6209
6209
|
}
|
|
6210
|
-
function
|
|
6211
|
-
let F =
|
|
6212
|
-
F < 0 && (F =
|
|
6210
|
+
function kt() {
|
|
6211
|
+
let F = se.value - 1;
|
|
6212
|
+
F < 0 && (F = ne.value.length - 1), se.value = F, vt(ne.value[se.value].id);
|
|
6213
6213
|
}
|
|
6214
|
-
function
|
|
6215
|
-
let
|
|
6216
|
-
|
|
6214
|
+
function St(F, U = !0) {
|
|
6215
|
+
let oe = ne.value.findIndex((Se) => Se.id === F);
|
|
6216
|
+
oe != -1 && (se.value = oe, U && vt(F));
|
|
6217
6217
|
}
|
|
6218
|
-
function
|
|
6218
|
+
function vt(F) {
|
|
6219
6219
|
Ce.value = !1, _e.value = F;
|
|
6220
6220
|
}
|
|
6221
6221
|
function Vt(F) {
|
|
6222
|
-
|
|
6222
|
+
ie.value = F, A("onInteriorUpdate", F), A("onCameraUpdate", ue.value, M.value);
|
|
6223
6223
|
}
|
|
6224
6224
|
function pa(F) {
|
|
6225
|
-
|
|
6225
|
+
ue.value = F, ue.value && (St(ue.value, !1), A("onCameraUpdate", ue.value, M.value));
|
|
6226
6226
|
}
|
|
6227
|
-
const
|
|
6228
|
-
const U =
|
|
6227
|
+
const We = B(() => (F) => {
|
|
6228
|
+
const U = Ze(F);
|
|
6229
6229
|
return !U || !U[0] || !U[0].timeSamples ? !1 : U[0].timeSamples.length > 1;
|
|
6230
|
-
}),
|
|
6231
|
-
const U =
|
|
6230
|
+
}), Ze = (F) => {
|
|
6231
|
+
const U = M.value.cameras.find((oe) => oe.id === F);
|
|
6232
6232
|
return U == null ? void 0 : U.sunsimDayOfYear;
|
|
6233
6233
|
};
|
|
6234
6234
|
function fa(F) {
|
|
6235
6235
|
A("onSunsimUpdate", F);
|
|
6236
6236
|
}
|
|
6237
6237
|
function $t(F) {
|
|
6238
|
-
|
|
6238
|
+
re.value.loadSunSim(F.timeInHours);
|
|
6239
6239
|
}
|
|
6240
6240
|
function ha(F) {
|
|
6241
6241
|
Le.value = F;
|
|
@@ -6244,41 +6244,41 @@ const Ri = {
|
|
|
6244
6244
|
Ae.value = F;
|
|
6245
6245
|
}
|
|
6246
6246
|
function ga(F) {
|
|
6247
|
-
|
|
6247
|
+
He.value = F;
|
|
6248
6248
|
}
|
|
6249
6249
|
function ya(F, U) {
|
|
6250
6250
|
}
|
|
6251
6251
|
function _a(F) {
|
|
6252
|
-
|
|
6252
|
+
re.value = F, re.value && (L.value && re.value.updateSettings(L.value), Z.value ? re.value.loadMarkersJson() : R.value && re.value.loadDynamicMarkers(R.value));
|
|
6253
6253
|
}
|
|
6254
6254
|
function ba() {
|
|
6255
|
-
|
|
6255
|
+
K.value.toggle(), window.scrollTo({ top: 150, behavior: "smooth" });
|
|
6256
6256
|
}
|
|
6257
6257
|
function Ca() {
|
|
6258
6258
|
be.value = !be.value;
|
|
6259
6259
|
}
|
|
6260
6260
|
async function Rt() {
|
|
6261
|
-
const F = 180 / Math.PI, U = await
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
|
|
6261
|
+
const F = 180 / Math.PI, U = await re.value.takePhoto(), oe = re.value.getRotationEuler(), Se = re.value.getCurrentCamera(), qe = new jn(U, Se), Ia = [
|
|
6262
|
+
oe.x * -F,
|
|
6263
|
+
oe.y * -F,
|
|
6264
|
+
oe.z * F
|
|
6265
6265
|
];
|
|
6266
|
-
return A("onSnapshot",
|
|
6266
|
+
return A("onSnapshot", qe, Ia), qe;
|
|
6267
6267
|
}
|
|
6268
|
-
function
|
|
6268
|
+
function mt(F) {
|
|
6269
6269
|
let U = he(t.value, F);
|
|
6270
6270
|
return U && I.value && !U.startsWith("blob:") && (U = U + `?v=${Date.now()}`), U;
|
|
6271
6271
|
}
|
|
6272
|
-
async function
|
|
6273
|
-
const U =
|
|
6272
|
+
async function pt(F) {
|
|
6273
|
+
const U = mt(F);
|
|
6274
6274
|
try {
|
|
6275
|
-
return (await
|
|
6276
|
-
} catch (
|
|
6277
|
-
throw new Error(
|
|
6275
|
+
return (await ft.get(U)).data;
|
|
6276
|
+
} catch (oe) {
|
|
6277
|
+
throw new Error(oe);
|
|
6278
6278
|
}
|
|
6279
6279
|
}
|
|
6280
6280
|
function wa(F) {
|
|
6281
|
-
|
|
6281
|
+
re.value.updateSettings(F);
|
|
6282
6282
|
}
|
|
6283
6283
|
function ka(F) {
|
|
6284
6284
|
A("saveSettings", F);
|
|
@@ -6286,48 +6286,48 @@ const Ri = {
|
|
|
6286
6286
|
function Sa(F) {
|
|
6287
6287
|
if (F === void 0)
|
|
6288
6288
|
return null;
|
|
6289
|
-
const U = Math.floor(F),
|
|
6290
|
-
return { hours: U, minutes:
|
|
6289
|
+
const U = Math.floor(F), oe = Math.floor((U - F) * 60);
|
|
6290
|
+
return { hours: U, minutes: oe };
|
|
6291
6291
|
}
|
|
6292
|
-
const
|
|
6293
|
-
if (
|
|
6294
|
-
clearInterval(Ut.value),
|
|
6292
|
+
const Ye = v(!1), Ut = v(null), It = v(1), Ht = () => {
|
|
6293
|
+
if (Ye.value) {
|
|
6294
|
+
clearInterval(Ut.value), Ye.value = !1, re.value.toggleAutoRotate();
|
|
6295
6295
|
return;
|
|
6296
6296
|
}
|
|
6297
|
-
|
|
6298
|
-
|
|
6297
|
+
Ye.value = !0, re.value.toggleAutoRotate(), Ut.value = setInterval(() => {
|
|
6298
|
+
It.value = 1 * It.value, re.value.setAutoRotateSpeed(It.value), dt();
|
|
6299
6299
|
}, 5e3);
|
|
6300
6300
|
};
|
|
6301
6301
|
return (F, U) => {
|
|
6302
|
-
const
|
|
6302
|
+
const oe = E("v-btn");
|
|
6303
6303
|
return d(), x("div", {
|
|
6304
6304
|
class: ge(["virtual-tour-wrapper", [Tt.value]])
|
|
6305
6305
|
}, [
|
|
6306
|
-
|
|
6306
|
+
ve.value ? (d(), x("div", Ri, "Error loading the player!!")) : $("", !0),
|
|
6307
6307
|
u("div", Ui, [
|
|
6308
|
-
!
|
|
6308
|
+
!K.value.isActive && J.value && ue.value && ct.value && ie.value && xe.value ? (d(), T(zt, {
|
|
6309
6309
|
key: 0,
|
|
6310
6310
|
"cdn-file-resolver": D(t),
|
|
6311
|
-
"apartment-json":
|
|
6312
|
-
level:
|
|
6313
|
-
"minimap-json":
|
|
6311
|
+
"apartment-json": M.value,
|
|
6312
|
+
level: ce.value,
|
|
6313
|
+
"minimap-json": J.value,
|
|
6314
6314
|
rotation: Le.value,
|
|
6315
|
-
"current-camera":
|
|
6315
|
+
"current-camera": ue.value,
|
|
6316
6316
|
onClose: U[0] || (U[0] = (Se) => xe.value = !1)
|
|
6317
6317
|
}, null, 8, ["cdn-file-resolver", "apartment-json", "level", "minimap-json", "rotation", "current-camera"])) : $("", !0),
|
|
6318
|
-
|
|
6318
|
+
ie.value && _e.value ? (d(), x("div", {
|
|
6319
6319
|
key: 1,
|
|
6320
6320
|
class: ge(["v-player", [Tt.value]])
|
|
6321
6321
|
}, [
|
|
6322
6322
|
C(yl, {
|
|
6323
6323
|
ref_key: "vPlayerInstance",
|
|
6324
|
-
ref:
|
|
6324
|
+
ref: V,
|
|
6325
6325
|
"cdn-file-resolver": D(t),
|
|
6326
6326
|
style: fe({ zIndex: be.value ? 1 : 2 }),
|
|
6327
6327
|
"show-static-image": be.value,
|
|
6328
6328
|
"current-camera-id": _e.value,
|
|
6329
6329
|
"mouse-sensitivity": D(P),
|
|
6330
|
-
"interior-id":
|
|
6330
|
+
"interior-id": ie.value,
|
|
6331
6331
|
"apartment-id": D(o),
|
|
6332
6332
|
onNewCameraCallback: pa,
|
|
6333
6333
|
onNewRotationCallback: ha,
|
|
@@ -6338,13 +6338,13 @@ const Ri = {
|
|
|
6338
6338
|
onPlayerApiCallback: _a
|
|
6339
6339
|
}, {
|
|
6340
6340
|
"slideshow-image": _(() => [
|
|
6341
|
-
be.value ? (d(),
|
|
6341
|
+
be.value ? (d(), T($i, {
|
|
6342
6342
|
key: 0,
|
|
6343
|
-
image:
|
|
6343
|
+
image: Ue.value
|
|
6344
6344
|
}, null, 8, ["image"])) : $("", !0)
|
|
6345
6345
|
]),
|
|
6346
6346
|
"top-left": _(() => [
|
|
6347
|
-
D(I) ? (d(),
|
|
6347
|
+
D(I) ? (d(), T(oe, {
|
|
6348
6348
|
key: 0,
|
|
6349
6349
|
density: "comfortable",
|
|
6350
6350
|
icon: "mdi-cog-outline",
|
|
@@ -6352,7 +6352,7 @@ const Ri = {
|
|
|
6352
6352
|
class: "mr-2",
|
|
6353
6353
|
onClick: U[1] || (U[1] = (Se) => N.value = !N.value)
|
|
6354
6354
|
})) : $("", !0),
|
|
6355
|
-
we(C(
|
|
6355
|
+
we(C(oe, {
|
|
6356
6356
|
density: "comfortable",
|
|
6357
6357
|
icon: "mdi-alert-outline",
|
|
6358
6358
|
elevation: "3",
|
|
@@ -6361,7 +6361,7 @@ const Ri = {
|
|
|
6361
6361
|
}, null, 512), [
|
|
6362
6362
|
[ke, G.value]
|
|
6363
6363
|
]),
|
|
6364
|
-
|
|
6364
|
+
J.value && _e.value && ct.value ? we((d(), T(oe, {
|
|
6365
6365
|
key: 1,
|
|
6366
6366
|
density: "comfortable",
|
|
6367
6367
|
elevation: "3",
|
|
@@ -6371,15 +6371,15 @@ const Ri = {
|
|
|
6371
6371
|
}, null, 512)), [
|
|
6372
6372
|
[ke, G.value]
|
|
6373
6373
|
]) : $("", !0),
|
|
6374
|
-
G.value && D(y) &&
|
|
6374
|
+
G.value && D(y) && ae.value.length > 1 ? (d(), T(Sl, {
|
|
6375
6375
|
key: 2,
|
|
6376
6376
|
level: Ae.value,
|
|
6377
|
-
"floor-levels":
|
|
6377
|
+
"floor-levels": ae.value,
|
|
6378
6378
|
onLevel: Bt
|
|
6379
6379
|
}, null, 8, ["level", "floor-levels"])) : $("", !0),
|
|
6380
6380
|
D(I) && N.value ? (d(), x("div", Hi, [
|
|
6381
6381
|
C(Ps, {
|
|
6382
|
-
"initial-settings": D(
|
|
6382
|
+
"initial-settings": D(L),
|
|
6383
6383
|
onUpdateSettings: wa,
|
|
6384
6384
|
onSaveSettings: ka
|
|
6385
6385
|
}, null, 8, ["initial-settings"])
|
|
@@ -6387,7 +6387,7 @@ const Ri = {
|
|
|
6387
6387
|
]),
|
|
6388
6388
|
"top-center": _(() => []),
|
|
6389
6389
|
"top-right": _(() => [
|
|
6390
|
-
|
|
6390
|
+
M.value && D(k) ? we((d(), x("div", Yi, [
|
|
6391
6391
|
C(Vl, { rotation: Le.value }, null, 8, ["rotation"])
|
|
6392
6392
|
], 512)), [
|
|
6393
6393
|
[ke, G.value]
|
|
@@ -6395,70 +6395,70 @@ const Ri = {
|
|
|
6395
6395
|
u("div", {
|
|
6396
6396
|
onClick: U[4] || (U[4] = (Se) => xe.value = !xe.value)
|
|
6397
6397
|
}, [
|
|
6398
|
-
G.value &&
|
|
6398
|
+
G.value && M.value && aa.value && D(f) ? (d(), T(Yl, {
|
|
6399
6399
|
key: 0,
|
|
6400
6400
|
hours: Et.value.hours,
|
|
6401
6401
|
minutes: Et.value.minutes,
|
|
6402
6402
|
class: "time-of-day",
|
|
6403
6403
|
style: fe({
|
|
6404
|
-
cursor:
|
|
6404
|
+
cursor: J.value && ue.value && ct.value ? "pointer" : "default"
|
|
6405
6405
|
})
|
|
6406
6406
|
}, null, 8, ["hours", "minutes", "style"])) : $("", !0)
|
|
6407
6407
|
])
|
|
6408
6408
|
]),
|
|
6409
6409
|
"center-left": _(() => [
|
|
6410
|
-
C(
|
|
6410
|
+
C(Ee, { name: "slide-x-transition" }, {
|
|
6411
6411
|
default: _(() => [
|
|
6412
|
-
be.value ? (d(),
|
|
6412
|
+
be.value ? (d(), T(oe, {
|
|
6413
6413
|
key: 0,
|
|
6414
6414
|
density: "comfortable",
|
|
6415
6415
|
elevation: "3",
|
|
6416
6416
|
icon: "mdi-chevron-left",
|
|
6417
|
-
onClick:
|
|
6417
|
+
onClick: kt
|
|
6418
6418
|
})) : $("", !0)
|
|
6419
6419
|
]),
|
|
6420
6420
|
_: 1
|
|
6421
6421
|
})
|
|
6422
6422
|
]),
|
|
6423
6423
|
"center-center": _(() => [
|
|
6424
|
-
W.value ? (d(),
|
|
6424
|
+
W.value ? (d(), T(Ss, {
|
|
6425
6425
|
key: 0,
|
|
6426
6426
|
onCloseTutorial: U[5] || (U[5] = (Se) => oa(Se))
|
|
6427
6427
|
})) : $("", !0),
|
|
6428
|
-
|
|
6428
|
+
K.value.isActive && J.value && ue.value && ct.value && xe.value ? (d(), T(zt, {
|
|
6429
6429
|
key: 1,
|
|
6430
6430
|
"cdn-file-resolver": D(t),
|
|
6431
|
-
"apartment-json":
|
|
6432
|
-
"minimap-json":
|
|
6431
|
+
"apartment-json": M.value,
|
|
6432
|
+
"minimap-json": J.value,
|
|
6433
6433
|
rotation: Le.value,
|
|
6434
|
-
"current-camera":
|
|
6435
|
-
level:
|
|
6434
|
+
"current-camera": ue.value,
|
|
6435
|
+
level: ce.value,
|
|
6436
6436
|
onClose: U[6] || (U[6] = (Se) => xe.value = !1)
|
|
6437
6437
|
}, null, 8, ["cdn-file-resolver", "apartment-json", "minimap-json", "rotation", "current-camera", "level"])) : $("", !0)
|
|
6438
6438
|
]),
|
|
6439
6439
|
"center-right": _(() => [
|
|
6440
|
-
C(
|
|
6440
|
+
C(Ee, { name: "slide-x-reverse-transition" }, {
|
|
6441
6441
|
default: _(() => [
|
|
6442
|
-
be.value ? (d(),
|
|
6442
|
+
be.value ? (d(), T(oe, {
|
|
6443
6443
|
key: 0,
|
|
6444
6444
|
density: "comfortable",
|
|
6445
6445
|
elevation: "3",
|
|
6446
6446
|
icon: "mdi-chevron-right",
|
|
6447
|
-
onClick:
|
|
6447
|
+
onClick: dt
|
|
6448
6448
|
})) : $("", !0)
|
|
6449
6449
|
]),
|
|
6450
6450
|
_: 1
|
|
6451
6451
|
})
|
|
6452
6452
|
]),
|
|
6453
6453
|
"bottom-left": _(() => [
|
|
6454
|
-
D(g) ? (d(),
|
|
6454
|
+
D(g) ? (d(), T(ea, {
|
|
6455
6455
|
key: 0,
|
|
6456
|
-
"is-full-screen":
|
|
6456
|
+
"is-full-screen": K.value.isActive,
|
|
6457
6457
|
class: "btn-fullscreen",
|
|
6458
6458
|
onToggleFullscreen: ba
|
|
6459
6459
|
}, null, 8, ["is-full-screen"])) : $("", !0),
|
|
6460
6460
|
D(c) ? (d(), x("div", zi, [
|
|
6461
|
-
C(
|
|
6461
|
+
C(oe, {
|
|
6462
6462
|
density: "comfortable",
|
|
6463
6463
|
elevation: "3",
|
|
6464
6464
|
icon: "mdi-camera",
|
|
@@ -6466,26 +6466,26 @@ const Ri = {
|
|
|
6466
6466
|
})
|
|
6467
6467
|
])) : $("", !0),
|
|
6468
6468
|
u("div", Pi, [
|
|
6469
|
-
D(m) && G.value ? (d(),
|
|
6469
|
+
D(m) && G.value ? (d(), T(Ql, {
|
|
6470
6470
|
key: 0,
|
|
6471
6471
|
"show-static-image": be.value,
|
|
6472
6472
|
onToggle: Ca
|
|
6473
6473
|
}, null, 8, ["show-static-image"])) : $("", !0)
|
|
6474
6474
|
]),
|
|
6475
|
-
G.value && D(h) && !
|
|
6475
|
+
G.value && D(h) && !K.value.isActive ? (d(), x("div", ji, [
|
|
6476
6476
|
C(Kt)
|
|
6477
6477
|
])) : $("", !0)
|
|
6478
6478
|
]),
|
|
6479
6479
|
"bottom-center": _(() => [
|
|
6480
|
-
C(
|
|
6480
|
+
C(Ee, null, {
|
|
6481
6481
|
default: _(() => [
|
|
6482
6482
|
u("div", null, [
|
|
6483
6483
|
u("div", {
|
|
6484
6484
|
class: ge(["d-flex justify-center", {
|
|
6485
|
-
"mb-2": !
|
|
6485
|
+
"mb-2": !je.value
|
|
6486
6486
|
}])
|
|
6487
6487
|
}, [
|
|
6488
|
-
!
|
|
6488
|
+
!Ye.value && We.value(ue.value) ? (d(), T(xi, {
|
|
6489
6489
|
key: 0,
|
|
6490
6490
|
class: "ml-2",
|
|
6491
6491
|
displaySunsim: Ce.value,
|
|
@@ -6493,28 +6493,28 @@ const Ri = {
|
|
|
6493
6493
|
onToggleSunStudy: U[7] || (U[7] = (Se) => Ce.value = !Ce.value)
|
|
6494
6494
|
}, null, 8, ["displaySunsim", "showUI"])) : $("", !0)
|
|
6495
6495
|
], 2),
|
|
6496
|
-
!
|
|
6496
|
+
!je.value && !Ye.value && _e.value && Ce.value && We.value(ue.value) && Ze(ue.value)[0] && Oe.value ? (d(), T(Pt, {
|
|
6497
6497
|
key: 0,
|
|
6498
6498
|
class: "sunsim-slider-desktop",
|
|
6499
|
-
"current-day":
|
|
6499
|
+
"current-day": We.value(ue.value) ? Ze(ue.value)[0] : void 0,
|
|
6500
6500
|
"current-time": Oe.value,
|
|
6501
6501
|
onOnTimeChange: $t,
|
|
6502
6502
|
onToggleSunStudy: U[8] || (U[8] = (Se) => Ce.value = !Ce.value)
|
|
6503
6503
|
}, null, 8, ["current-day", "current-time"])) : $("", !0),
|
|
6504
|
-
!
|
|
6504
|
+
!je.value && G.value && D(r) ? (d(), T(gt, {
|
|
6505
6505
|
key: 1,
|
|
6506
|
-
class: ge([
|
|
6507
|
-
thumbnails:
|
|
6508
|
-
active:
|
|
6509
|
-
cameraHasSunStudy:
|
|
6510
|
-
onNext:
|
|
6511
|
-
onPrevious:
|
|
6512
|
-
onGoto:
|
|
6506
|
+
class: ge([K.value.isActive ? "full-screen" : ""]),
|
|
6507
|
+
thumbnails: ne.value,
|
|
6508
|
+
active: se.value,
|
|
6509
|
+
cameraHasSunStudy: We.value,
|
|
6510
|
+
onNext: dt,
|
|
6511
|
+
onPrevious: kt,
|
|
6512
|
+
onGoto: St
|
|
6513
6513
|
}, {
|
|
6514
6514
|
before: _(() => [
|
|
6515
|
-
F.enableAutoplay && G.value && !
|
|
6515
|
+
F.enableAutoplay && G.value && !je.value ? (d(), T(jt, {
|
|
6516
6516
|
key: 0,
|
|
6517
|
-
autoplayStatus:
|
|
6517
|
+
autoplayStatus: Ye.value,
|
|
6518
6518
|
onToggleAutoPlay: U[9] || (U[9] = (Se) => Ht())
|
|
6519
6519
|
}, null, 8, ["autoplayStatus"])) : $("", !0)
|
|
6520
6520
|
]),
|
|
@@ -6527,33 +6527,33 @@ const Ri = {
|
|
|
6527
6527
|
]),
|
|
6528
6528
|
"bottom-right": _(() => [
|
|
6529
6529
|
u("div", Wi, [
|
|
6530
|
-
G.value && D(S) &&
|
|
6530
|
+
G.value && D(S) && Be.value ? (d(), T(Ol, {
|
|
6531
6531
|
key: 0,
|
|
6532
6532
|
"cdn-file-resolver": D(t),
|
|
6533
|
-
"available-archetypes":
|
|
6534
|
-
"selected-index":
|
|
6533
|
+
"available-archetypes": Be.value,
|
|
6534
|
+
"selected-index": de.value,
|
|
6535
6535
|
onSelectInterior: Vt
|
|
6536
6536
|
}, null, 8, ["cdn-file-resolver", "available-archetypes", "selected-index"])) : $("", !0)
|
|
6537
6537
|
])
|
|
6538
6538
|
]),
|
|
6539
6539
|
_: 1
|
|
6540
6540
|
}, 8, ["cdn-file-resolver", "style", "show-static-image", "current-camera-id", "mouse-sensitivity", "interior-id", "apartment-id"]),
|
|
6541
|
-
C(
|
|
6541
|
+
C(Ee, null, {
|
|
6542
6542
|
default: _(() => [
|
|
6543
|
-
D(r) &&
|
|
6543
|
+
D(r) && q.value && je.value && G.value ? (d(), T(gt, {
|
|
6544
6544
|
key: 0,
|
|
6545
6545
|
class: "waypoint-carousel below-player",
|
|
6546
|
-
thumbnails:
|
|
6547
|
-
active:
|
|
6548
|
-
cameraHasSunStudy:
|
|
6549
|
-
onNext:
|
|
6550
|
-
onPrevious:
|
|
6551
|
-
onGoto:
|
|
6546
|
+
thumbnails: ne.value,
|
|
6547
|
+
active: se.value,
|
|
6548
|
+
cameraHasSunStudy: We.value,
|
|
6549
|
+
onNext: dt,
|
|
6550
|
+
onPrevious: kt,
|
|
6551
|
+
onGoto: St
|
|
6552
6552
|
}, {
|
|
6553
6553
|
before: _(() => [
|
|
6554
|
-
F.enableAutoplay && G.value ? (d(),
|
|
6554
|
+
F.enableAutoplay && G.value ? (d(), T(jt, {
|
|
6555
6555
|
key: 0,
|
|
6556
|
-
autoplayStatus:
|
|
6556
|
+
autoplayStatus: Ye.value,
|
|
6557
6557
|
onToggleAutoPlay: U[10] || (U[10] = (Se) => Ht())
|
|
6558
6558
|
}, null, 8, ["autoplayStatus"])) : $("", !0)
|
|
6559
6559
|
]),
|
|
@@ -6562,18 +6562,18 @@ const Ri = {
|
|
|
6562
6562
|
]),
|
|
6563
6563
|
_: 1
|
|
6564
6564
|
}),
|
|
6565
|
-
|
|
6566
|
-
!
|
|
6565
|
+
je.value ? (d(), x("div", Ni, [
|
|
6566
|
+
!Ye.value && _e.value && Ce.value && We.value(ue.value) && Ze(ue.value)[0] && Oe.value ? (d(), T(Pt, {
|
|
6567
6567
|
key: 0,
|
|
6568
6568
|
class: "mt-1",
|
|
6569
|
-
"current-day":
|
|
6569
|
+
"current-day": We.value(ue.value) ? Ze(ue.value)[0] : void 0,
|
|
6570
6570
|
"current-time": Oe.value,
|
|
6571
6571
|
onOnTimeChange: $t,
|
|
6572
6572
|
onToggleSunStudy: U[11] || (U[11] = (Se) => Ce.value = !Ce.value)
|
|
6573
6573
|
}, null, 8, ["current-day", "current-time"])) : $("", !0)
|
|
6574
6574
|
])) : $("", !0)
|
|
6575
6575
|
], 2)) : $("", !0),
|
|
6576
|
-
D(
|
|
6576
|
+
D(X) && D(w) ? (d(), x("div", Gi, " version: " + Q(D(X)), 1)) : $("", !0)
|
|
6577
6577
|
])
|
|
6578
6578
|
], 2);
|
|
6579
6579
|
};
|
|
@@ -6614,33 +6614,33 @@ const Ri = {
|
|
|
6614
6614
|
setup(l, { emit: a }) {
|
|
6615
6615
|
return (e, n) => (d(), x("div", qi, [
|
|
6616
6616
|
u("div", Ji, [
|
|
6617
|
-
|
|
6617
|
+
le(e.$slots, "slideshow-image", {}, void 0, !0),
|
|
6618
6618
|
u("div", Xi, [
|
|
6619
|
-
|
|
6619
|
+
le(e.$slots, "top-left", {}, void 0, !0)
|
|
6620
6620
|
]),
|
|
6621
6621
|
u("div", Ki, [
|
|
6622
|
-
|
|
6622
|
+
le(e.$slots, "top-center", {}, void 0, !0)
|
|
6623
6623
|
]),
|
|
6624
6624
|
u("div", er, [
|
|
6625
|
-
|
|
6625
|
+
le(e.$slots, "top-right", {}, void 0, !0)
|
|
6626
6626
|
]),
|
|
6627
6627
|
u("div", tr, [
|
|
6628
|
-
|
|
6628
|
+
le(e.$slots, "center-left", {}, void 0, !0)
|
|
6629
6629
|
]),
|
|
6630
6630
|
u("div", ar, [
|
|
6631
|
-
|
|
6631
|
+
le(e.$slots, "center-center", {}, void 0, !0)
|
|
6632
6632
|
]),
|
|
6633
6633
|
u("div", nr, [
|
|
6634
|
-
|
|
6634
|
+
le(e.$slots, "center-right", {}, void 0, !0)
|
|
6635
6635
|
]),
|
|
6636
6636
|
u("div", or, [
|
|
6637
|
-
|
|
6637
|
+
le(e.$slots, "bottom-left", {}, void 0, !0)
|
|
6638
6638
|
]),
|
|
6639
6639
|
u("div", lr, [
|
|
6640
|
-
|
|
6640
|
+
le(e.$slots, "bottom-center", {}, void 0, !0)
|
|
6641
6641
|
]),
|
|
6642
6642
|
u("div", sr, [
|
|
6643
|
-
|
|
6643
|
+
le(e.$slots, "bottom-right", {}, void 0, !0)
|
|
6644
6644
|
])
|
|
6645
6645
|
])
|
|
6646
6646
|
]));
|
|
@@ -6660,8 +6660,8 @@ const Ri = {
|
|
|
6660
6660
|
},
|
|
6661
6661
|
setup(l) {
|
|
6662
6662
|
const a = l;
|
|
6663
|
-
|
|
6664
|
-
|
|
6663
|
+
et(
|
|
6664
|
+
$e,
|
|
6665
6665
|
a.i18nConfig ? new Re(a.i18nConfig) : new Re()
|
|
6666
6666
|
);
|
|
6667
6667
|
const e = v(0), n = v(
|
|
@@ -6693,7 +6693,7 @@ const Ri = {
|
|
|
6693
6693
|
k != -1 && (e.value = k);
|
|
6694
6694
|
}
|
|
6695
6695
|
return (r, f) => {
|
|
6696
|
-
const k =
|
|
6696
|
+
const k = E("v-img"), g = E("v-btn");
|
|
6697
6697
|
return d(), x("div", ur, [
|
|
6698
6698
|
u("div", cr, [
|
|
6699
6699
|
u("div", null, [
|
|
@@ -6711,9 +6711,9 @@ const Ri = {
|
|
|
6711
6711
|
"top-center": _(() => []),
|
|
6712
6712
|
"top-right": _(() => []),
|
|
6713
6713
|
"center-left": _(() => [
|
|
6714
|
-
C(
|
|
6714
|
+
C(Ee, { name: "slide-x-transition" }, {
|
|
6715
6715
|
default: _(() => [
|
|
6716
|
-
t.value.length > 1 ? (d(),
|
|
6716
|
+
t.value.length > 1 ? (d(), T(g, {
|
|
6717
6717
|
key: 0,
|
|
6718
6718
|
density: "comfortable",
|
|
6719
6719
|
elevation: "3",
|
|
@@ -6726,9 +6726,9 @@ const Ri = {
|
|
|
6726
6726
|
]),
|
|
6727
6727
|
"center-center": _(() => []),
|
|
6728
6728
|
"center-right": _(() => [
|
|
6729
|
-
C(
|
|
6729
|
+
C(Ee, { name: "slide-x-reverse-transition" }, {
|
|
6730
6730
|
default: _(() => [
|
|
6731
|
-
t.value.length > 1 ? (d(),
|
|
6731
|
+
t.value.length > 1 ? (d(), T(g, {
|
|
6732
6732
|
key: 0,
|
|
6733
6733
|
density: "comfortable",
|
|
6734
6734
|
elevation: "3",
|
|
@@ -6740,7 +6740,7 @@ const Ri = {
|
|
|
6740
6740
|
})
|
|
6741
6741
|
]),
|
|
6742
6742
|
"bottom-left": _(() => [
|
|
6743
|
-
r.showFullScreen ? (d(),
|
|
6743
|
+
r.showFullScreen ? (d(), T(ea, {
|
|
6744
6744
|
key: 0,
|
|
6745
6745
|
"is-full-screen": n.value.isActive,
|
|
6746
6746
|
class: "btn-fullscreen",
|
|
@@ -6752,7 +6752,7 @@ const Ri = {
|
|
|
6752
6752
|
]),
|
|
6753
6753
|
"bottom-center": _(() => [
|
|
6754
6754
|
u("div", null, [
|
|
6755
|
-
n.value.isActive && t.value.length > 1 ? (d(),
|
|
6755
|
+
n.value.isActive && t.value.length > 1 ? (d(), T(gt, {
|
|
6756
6756
|
key: 0,
|
|
6757
6757
|
class: ge([n.value.isActive ? "full-screen" : ""]),
|
|
6758
6758
|
thumbnails: t.value,
|
|
@@ -6766,7 +6766,7 @@ const Ri = {
|
|
|
6766
6766
|
"bottom-right": _(() => []),
|
|
6767
6767
|
_: 1
|
|
6768
6768
|
}, 8, ["is-full-screen"]),
|
|
6769
|
-
t.value.length > 1 ? (d(),
|
|
6769
|
+
t.value.length > 1 ? (d(), T(gt, {
|
|
6770
6770
|
key: 0,
|
|
6771
6771
|
thumbnails: t.value,
|
|
6772
6772
|
active: e.value,
|
|
@@ -6787,7 +6787,7 @@ const Ri = {
|
|
|
6787
6787
|
currentTime: {}
|
|
6788
6788
|
},
|
|
6789
6789
|
setup(l) {
|
|
6790
|
-
const a = l, { timeSampleData: e, cdnFileResolver: n, currentTime: t } =
|
|
6790
|
+
const a = l, { timeSampleData: e, cdnFileResolver: n, currentTime: t } = Ve(a), o = B(() => he(n.value, e.value.filename));
|
|
6791
6791
|
return (i, s) => we((d(), x("img", {
|
|
6792
6792
|
key: o.value,
|
|
6793
6793
|
src: o.value,
|
|
@@ -6805,8 +6805,8 @@ const Ri = {
|
|
|
6805
6805
|
currentTime: {}
|
|
6806
6806
|
},
|
|
6807
6807
|
setup(l) {
|
|
6808
|
-
const a = l, { dayData: e, cdnFileResolver: n, currentTime: t } =
|
|
6809
|
-
return (o, i) => (d(!0), x(
|
|
6808
|
+
const a = l, { dayData: e, cdnFileResolver: n, currentTime: t } = Ve(a);
|
|
6809
|
+
return (o, i) => (d(!0), x(me, null, ye(D(e).timeSamples, (s) => (d(), T(gr, {
|
|
6810
6810
|
key: s.filename,
|
|
6811
6811
|
"time-sample-data": s,
|
|
6812
6812
|
"cdn-file-resolver": D(n),
|
|
@@ -6823,11 +6823,11 @@ const Ri = {
|
|
|
6823
6823
|
currentTime: {}
|
|
6824
6824
|
},
|
|
6825
6825
|
setup(l) {
|
|
6826
|
-
const a = l, { cameraData: e, cdnFileResolver: n, currentCamera: t, currentTime: o } =
|
|
6826
|
+
const a = l, { cameraData: e, cdnFileResolver: n, currentCamera: t, currentTime: o } = Ve(a), i = B(() => he(
|
|
6827
6827
|
n.value,
|
|
6828
6828
|
t.value.defaultFilename
|
|
6829
6829
|
));
|
|
6830
|
-
return (s, m) => D(e).sunsimDayOfYear ? (d(!0), x(
|
|
6830
|
+
return (s, m) => D(e).sunsimDayOfYear ? (d(!0), x(me, { key: 0 }, ye(D(e).sunsimDayOfYear, (p) => (d(), T(yr, {
|
|
6831
6831
|
key: p.dayOfYear,
|
|
6832
6832
|
"day-data": p,
|
|
6833
6833
|
"cdn-file-resolver": D(n),
|
|
@@ -6849,7 +6849,7 @@ const Ri = {
|
|
|
6849
6849
|
currentTransition: {}
|
|
6850
6850
|
},
|
|
6851
6851
|
setup(l) {
|
|
6852
|
-
const a = l, { transitionData: e, cdnFileResolver: n, currentTransition: t } =
|
|
6852
|
+
const a = l, { transitionData: e, cdnFileResolver: n, currentTransition: t } = Ve(a), o = B(() => he(n.value, e.value.filename));
|
|
6853
6853
|
return (i, s) => we((d(), x("img", {
|
|
6854
6854
|
key: o.value,
|
|
6855
6855
|
src: o.value,
|
|
@@ -6880,7 +6880,7 @@ const Sr = {
|
|
|
6880
6880
|
},
|
|
6881
6881
|
emits: ["onDayChange"],
|
|
6882
6882
|
setup(l, { emit: a }) {
|
|
6883
|
-
const e = l, { isMobileSized: n, currentCamera: t, currentDay: o, disabled: i } =
|
|
6883
|
+
const e = l, { isMobileSized: n, currentCamera: t, currentDay: o, disabled: i } = Ve(e), s = a, m = v(o.value.dayOfYear);
|
|
6884
6884
|
return H(o, () => {
|
|
6885
6885
|
m.value = o.value.dayOfYear;
|
|
6886
6886
|
}), H(m, () => {
|
|
@@ -6891,7 +6891,7 @@ const Sr = {
|
|
|
6891
6891
|
)
|
|
6892
6892
|
);
|
|
6893
6893
|
}), (p, r) => {
|
|
6894
|
-
const f =
|
|
6894
|
+
const f = E("v-btn"), k = E("v-field"), g = E("v-list-item-title"), c = E("v-list-item"), h = E("v-list"), S = E("v-menu");
|
|
6895
6895
|
return D(t).sunsimDayOfYear && D(t).sunsimDayOfYear.length > 0 ? (d(), x("div", Sr, [
|
|
6896
6896
|
C(S, null, {
|
|
6897
6897
|
activator: _(({ props: b }) => [
|
|
@@ -6923,7 +6923,7 @@ const Sr = {
|
|
|
6923
6923
|
default: _(() => [
|
|
6924
6924
|
C(h, null, {
|
|
6925
6925
|
default: _(() => [
|
|
6926
|
-
(d(!0), x(
|
|
6926
|
+
(d(!0), x(me, null, ye(D(t).sunsimDayOfYear, (b, y) => (d(), T(c, {
|
|
6927
6927
|
key: y,
|
|
6928
6928
|
value: y,
|
|
6929
6929
|
onClick: (Y) => m.value = b.dayOfYear
|
|
@@ -6970,7 +6970,7 @@ const Sr = {
|
|
|
6970
6970
|
currentCamera: o,
|
|
6971
6971
|
cdnFileResolver: i,
|
|
6972
6972
|
disabled: s
|
|
6973
|
-
} =
|
|
6973
|
+
} = Ve(e), m = v(o.value), p = a;
|
|
6974
6974
|
H(m, () => {
|
|
6975
6975
|
p(
|
|
6976
6976
|
"onCameraChange",
|
|
@@ -6981,7 +6981,7 @@ const Sr = {
|
|
|
6981
6981
|
s.value || (m.value = f);
|
|
6982
6982
|
}
|
|
6983
6983
|
return (f, k) => {
|
|
6984
|
-
const g =
|
|
6984
|
+
const g = E("v-icon");
|
|
6985
6985
|
return d(), x("div", {
|
|
6986
6986
|
class: ge({
|
|
6987
6987
|
"d-flex": !0,
|
|
@@ -6994,7 +6994,7 @@ const Sr = {
|
|
|
6994
6994
|
})
|
|
6995
6995
|
}, [
|
|
6996
6996
|
u("div", Dr, [
|
|
6997
|
-
(d(!0), x(
|
|
6997
|
+
(d(!0), x(me, null, ye(D(t), (c, h) => (d(), x("div", {
|
|
6998
6998
|
key: h,
|
|
6999
6999
|
class: ge(["still-camera-image d-flex flex-column flex-reverse align-center elevation-2", {
|
|
7000
7000
|
"active-camera": c === m.value
|
|
@@ -7038,7 +7038,7 @@ const Sr = {
|
|
|
7038
7038
|
},
|
|
7039
7039
|
emits: ["onTimeChange"],
|
|
7040
7040
|
setup(l, { emit: a }) {
|
|
7041
|
-
const e = l, { isMobileSized: n, currentDay: t, currentTime: o, disabled: i } =
|
|
7041
|
+
const e = l, { isMobileSized: n, currentDay: t, currentTime: o, disabled: i } = Ve(e), s = a, m = v(o.value.timeInHours);
|
|
7042
7042
|
return H(o, () => {
|
|
7043
7043
|
m.value = o.value.timeInHours;
|
|
7044
7044
|
}), H(m, () => {
|
|
@@ -7049,7 +7049,7 @@ const Sr = {
|
|
|
7049
7049
|
)
|
|
7050
7050
|
);
|
|
7051
7051
|
}), (p, r) => {
|
|
7052
|
-
const f =
|
|
7052
|
+
const f = E("v-icon"), k = E("v-slider"), g = E("v-field");
|
|
7053
7053
|
return d(), x("div", {
|
|
7054
7054
|
class: ge({ "d-inline-block": !0, mobile: D(n) }),
|
|
7055
7055
|
style: fe({
|
|
@@ -7075,7 +7075,7 @@ const Sr = {
|
|
|
7075
7075
|
flat: ""
|
|
7076
7076
|
}, {
|
|
7077
7077
|
default: _(() => [
|
|
7078
|
-
D(t).timeSamples.length > 1 ? (d(),
|
|
7078
|
+
D(t).timeSamples.length > 1 ? (d(), T(k, {
|
|
7079
7079
|
key: 0,
|
|
7080
7080
|
class: "pa-2 pr-2",
|
|
7081
7081
|
modelValue: m.value,
|
|
@@ -7100,10 +7100,10 @@ const Sr = {
|
|
|
7100
7100
|
]),
|
|
7101
7101
|
_: 1
|
|
7102
7102
|
}),
|
|
7103
|
-
u("span", Er, Q(D(
|
|
7103
|
+
u("span", Er, Q(D(ht)(m.value)), 1)
|
|
7104
7104
|
]),
|
|
7105
7105
|
_: 1
|
|
7106
|
-
}, 8, ["modelValue", "min", "max", "step", "disabled"])) : (d(), x(
|
|
7106
|
+
}, 8, ["modelValue", "min", "max", "step", "disabled"])) : (d(), x(me, { key: 1 }, [
|
|
7107
7107
|
C(f, {
|
|
7108
7108
|
style: { "vertical-align": "baseline", "font-size": "20px", "margin-top": "-1px", opacity: "0.6" },
|
|
7109
7109
|
class: "mr-2 icon",
|
|
@@ -7114,7 +7114,7 @@ const Sr = {
|
|
|
7114
7114
|
]),
|
|
7115
7115
|
_: 1
|
|
7116
7116
|
}),
|
|
7117
|
-
u("span", Tr, Q(D(
|
|
7117
|
+
u("span", Tr, Q(D(ht)(m.value)), 1)
|
|
7118
7118
|
], 64))
|
|
7119
7119
|
]),
|
|
7120
7120
|
_: 1
|
|
@@ -7135,9 +7135,9 @@ const Sr = {
|
|
|
7135
7135
|
},
|
|
7136
7136
|
emits: ["onZoomIn", "onZoomOut"],
|
|
7137
7137
|
setup(l, { emit: a }) {
|
|
7138
|
-
const e = l, { isMobileSized: n, canZoomIn: t, canZoomOut: o, disabled: i } =
|
|
7138
|
+
const e = l, { isMobileSized: n, canZoomIn: t, canZoomOut: o, disabled: i } = Ve(e), s = a;
|
|
7139
7139
|
return (m, p) => {
|
|
7140
|
-
const r =
|
|
7140
|
+
const r = E("v-btn");
|
|
7141
7141
|
return d(), x("div", Br, [
|
|
7142
7142
|
C(r, {
|
|
7143
7143
|
disabled: D(i) || !D(t),
|
|
@@ -7169,22 +7169,22 @@ const Sr = {
|
|
|
7169
7169
|
},
|
|
7170
7170
|
emits: ["onClick", "onHoverOver", "onHoverOut", "updateSvgContainer", "onError"],
|
|
7171
7171
|
setup(l, { emit: a }) {
|
|
7172
|
-
const e = l, { cdnFileResolver: n, colorCallback: t, currentCamera: o, selectedId: i } =
|
|
7173
|
-
|
|
7172
|
+
const e = l, { cdnFileResolver: n, colorCallback: t, currentCamera: o, selectedId: i } = Ve(e), s = a, m = v(), p = v(), r = yt({});
|
|
7173
|
+
Te(() => {
|
|
7174
7174
|
for (const g in r) {
|
|
7175
|
-
const { element: c, state: h } = r[g], { r: S, g: b, b: y, a: Y, s:
|
|
7175
|
+
const { element: c, state: h } = r[g], { r: S, g: b, b: y, a: Y, s: O } = t.value(g, h) || {
|
|
7176
7176
|
r: 0,
|
|
7177
7177
|
g: 0,
|
|
7178
7178
|
b: 0,
|
|
7179
7179
|
a: 0,
|
|
7180
7180
|
s: 0
|
|
7181
7181
|
};
|
|
7182
|
-
c.style.fill = `rgba(${S}, ${b}, ${y}, ${Y / 255})`, c.style.stroke = `rgb(${S}, ${b}, ${y})`, c.style.strokeWidth =
|
|
7182
|
+
c.style.fill = `rgba(${S}, ${b}, ${y}, ${Y / 255})`, c.style.stroke = `rgb(${S}, ${b}, ${y})`, c.style.strokeWidth = O.toString();
|
|
7183
7183
|
}
|
|
7184
7184
|
}), H(i, () => {
|
|
7185
7185
|
for (const g in r)
|
|
7186
7186
|
r[g].state === "selected" && g !== i.value ? r[g].state = "idle" : r[g].state !== "selected" && g === i.value && (r[g].state = "selected");
|
|
7187
|
-
}),
|
|
7187
|
+
}), Te(async () => {
|
|
7188
7188
|
try {
|
|
7189
7189
|
m.value = await Fe.loadText(
|
|
7190
7190
|
he(n.value, o.value.overlayFilename)
|
|
@@ -7245,7 +7245,7 @@ const Sr = {
|
|
|
7245
7245
|
}
|
|
7246
7246
|
});
|
|
7247
7247
|
}
|
|
7248
|
-
return (g, c) => (d(),
|
|
7248
|
+
return (g, c) => (d(), T(Ee, null, {
|
|
7249
7249
|
default: _(() => [
|
|
7250
7250
|
(d(), x("div", {
|
|
7251
7251
|
ref_key: "svgContainer",
|
|
@@ -7281,7 +7281,7 @@ function Pr(l) {
|
|
|
7281
7281
|
function jr(l) {
|
|
7282
7282
|
return !("filename" in l) && "defaultFilename" in l;
|
|
7283
7283
|
}
|
|
7284
|
-
function
|
|
7284
|
+
function At(l) {
|
|
7285
7285
|
return "filename" in l;
|
|
7286
7286
|
}
|
|
7287
7287
|
function Wr(l) {
|
|
@@ -7312,7 +7312,7 @@ function Gr(l) {
|
|
|
7312
7312
|
return !1;
|
|
7313
7313
|
return !0;
|
|
7314
7314
|
}
|
|
7315
|
-
function
|
|
7315
|
+
function Je(l) {
|
|
7316
7316
|
return l.startsWith("/") ? l : `/${l}`;
|
|
7317
7317
|
}
|
|
7318
7318
|
function Qr(l) {
|
|
@@ -7361,11 +7361,11 @@ function Qr(l) {
|
|
|
7361
7361
|
const i = { ...o };
|
|
7362
7362
|
return i.sunsimDayOfYear && i.sunsimDayOfYear.forEach((m) => {
|
|
7363
7363
|
m.timeSamples && m.timeSamples.forEach((p) => {
|
|
7364
|
-
p.filename =
|
|
7364
|
+
p.filename = Je(p.filename);
|
|
7365
7365
|
});
|
|
7366
7366
|
}), {
|
|
7367
7367
|
...i,
|
|
7368
|
-
defaultFilename: i.sunsimDayOfYear[0] ?
|
|
7368
|
+
defaultFilename: i.sunsimDayOfYear[0] ? Je(
|
|
7369
7369
|
((s = i.sunsimDayOfYear[0].timeSamples.find(
|
|
7370
7370
|
(m) => m.timeInHours === i.sunsimDayOfYear[0].defaultHour
|
|
7371
7371
|
)) == null ? void 0 : s.filename) || i.sunsimDayOfYear[0].timeSamples[0].filename
|
|
@@ -7404,7 +7404,7 @@ function Qr(l) {
|
|
|
7404
7404
|
),
|
|
7405
7405
|
cameraFov: l.cameraFov,
|
|
7406
7406
|
overlayFilename: "/BuildingChooserV5.svg",
|
|
7407
|
-
defaultFilename:
|
|
7407
|
+
defaultFilename: Je((e = (a = o[0]) == null ? void 0 : a.timeSamples[0]) == null ? void 0 : e.filename),
|
|
7408
7408
|
sunsimDayOfYear: o.map((i) => ({
|
|
7409
7409
|
dayOfYear: i.dayOfYear,
|
|
7410
7410
|
startTime: 0,
|
|
@@ -7413,7 +7413,7 @@ function Qr(l) {
|
|
|
7413
7413
|
defaultHour: 14,
|
|
7414
7414
|
timeSamples: i.timeSamples.map(({ timeInHours: s, filename: m }) => ({
|
|
7415
7415
|
timeInHours: s,
|
|
7416
|
-
filename:
|
|
7416
|
+
filename: Je(m)
|
|
7417
7417
|
}))
|
|
7418
7418
|
}))
|
|
7419
7419
|
}
|
|
@@ -7444,7 +7444,7 @@ function Qr(l) {
|
|
|
7444
7444
|
loopable: l.loopable,
|
|
7445
7445
|
cameras: l.cameras.map((o) => {
|
|
7446
7446
|
var i;
|
|
7447
|
-
if (
|
|
7447
|
+
if (Mt(o)) {
|
|
7448
7448
|
if (o.sunsimDayOfYear) {
|
|
7449
7449
|
if (o.sunsimDayOfYear.length === 0)
|
|
7450
7450
|
throw new Error(
|
|
@@ -7466,11 +7466,11 @@ function Qr(l) {
|
|
|
7466
7466
|
const s = { ...o };
|
|
7467
7467
|
return s.sunsimDayOfYear && s.sunsimDayOfYear.forEach((m) => {
|
|
7468
7468
|
m.timeSamples && m.timeSamples.forEach((p) => {
|
|
7469
|
-
p.filename =
|
|
7469
|
+
p.filename = Je(p.filename);
|
|
7470
7470
|
});
|
|
7471
7471
|
}), {
|
|
7472
7472
|
...s,
|
|
7473
|
-
defaultFilename: s.sunsimDayOfYear[0] ?
|
|
7473
|
+
defaultFilename: s.sunsimDayOfYear[0] ? Je(
|
|
7474
7474
|
((i = s.sunsimDayOfYear[0].timeSamples.find(
|
|
7475
7475
|
(m) => m.timeInHours === s.sunsimDayOfYear[0].defaultHour
|
|
7476
7476
|
)) == null ? void 0 : i.filename) || s.sunsimDayOfYear[0].timeSamples[0].filename
|
|
@@ -7519,7 +7519,7 @@ function Qr(l) {
|
|
|
7519
7519
|
// ],
|
|
7520
7520
|
// },
|
|
7521
7521
|
// ],
|
|
7522
|
-
},
|
|
7522
|
+
}, At(o[m]) && (o[m] = r);
|
|
7523
7523
|
}
|
|
7524
7524
|
return {
|
|
7525
7525
|
version: "5.0",
|
|
@@ -7585,52 +7585,52 @@ const Zr = ["innerHTML"], qr = { style: { "z-index": "7" } }, Jr = {
|
|
|
7585
7585
|
defaultDay: r,
|
|
7586
7586
|
defaultTime: f,
|
|
7587
7587
|
mobileBreakpoint: k
|
|
7588
|
-
} =
|
|
7589
|
-
|
|
7590
|
-
|
|
7588
|
+
} = Ve(e), g = a;
|
|
7589
|
+
et(
|
|
7590
|
+
$e,
|
|
7591
7591
|
i.value ? new Re(i.value) : new Re()
|
|
7592
7592
|
);
|
|
7593
|
-
const c = v(), h = v(), S = v(), b = v(null), y = v(4), Y = v(),
|
|
7593
|
+
const c = v(), h = v(), S = v(), b = v(null), y = v(4), Y = v(), O = v(!1), P = v(!1), I = v(), L = B(() => I.value.isHoverEnabled), Z = v({ x: 0, y: 0, width: 0, height: 0 }), R = v(), X = v(), w = v(), A = v(!1), W = v(), N = v({
|
|
7594
7594
|
current: 100,
|
|
7595
7595
|
min: 100,
|
|
7596
7596
|
max: 1e3
|
|
7597
|
-
}),
|
|
7597
|
+
}), ve = v(!1);
|
|
7598
7598
|
Ie(() => {
|
|
7599
|
-
|
|
7599
|
+
O.value = !0, ve.value = !1;
|
|
7600
7600
|
}), H(
|
|
7601
7601
|
n,
|
|
7602
|
-
(
|
|
7602
|
+
(V) => {
|
|
7603
7603
|
try {
|
|
7604
|
-
|
|
7605
|
-
} catch (
|
|
7606
|
-
|
|
7604
|
+
ve.value = !1, w.value = Qr(V);
|
|
7605
|
+
} catch (ae) {
|
|
7606
|
+
ve.value = !0, g("onError", ae);
|
|
7607
7607
|
}
|
|
7608
7608
|
},
|
|
7609
7609
|
{
|
|
7610
7610
|
immediate: !0
|
|
7611
7611
|
}
|
|
7612
|
-
), H(
|
|
7613
|
-
|
|
7612
|
+
), H(O, (V) => {
|
|
7613
|
+
V && g("onInitialize");
|
|
7614
7614
|
}), H(
|
|
7615
|
-
() =>
|
|
7615
|
+
() => X.value,
|
|
7616
7616
|
() => {
|
|
7617
|
-
|
|
7618
|
-
A.value =
|
|
7619
|
-
}).observe(
|
|
7617
|
+
X.value && new ResizeObserver(([ae]) => {
|
|
7618
|
+
A.value = ae.contentRect.width < k.value;
|
|
7619
|
+
}).observe(X.value);
|
|
7620
7620
|
}
|
|
7621
7621
|
);
|
|
7622
7622
|
const z = B(
|
|
7623
7623
|
() => w.value ? w.value.cameras.filter(jr) : []
|
|
7624
|
-
),
|
|
7625
|
-
() => w.value ? w.value.cameras.filter(
|
|
7624
|
+
), M = B(
|
|
7625
|
+
() => w.value ? w.value.cameras.filter(At) : []
|
|
7626
7626
|
);
|
|
7627
7627
|
H(
|
|
7628
7628
|
[w, t, p],
|
|
7629
7629
|
async () => {
|
|
7630
7630
|
t.value && z.value.length > 0 && (p.value ? c.value = z.value.find(
|
|
7631
|
-
(
|
|
7631
|
+
(V) => V.cameraName === p.value
|
|
7632
7632
|
) || z.value[0] : c.value = z.value[0], y.value = w.value.cameras.findIndex(
|
|
7633
|
-
(
|
|
7633
|
+
(V) => V === c.value
|
|
7634
7634
|
), y.value = Math.max(0, y.value));
|
|
7635
7635
|
},
|
|
7636
7636
|
{ immediate: !0 }
|
|
@@ -7638,7 +7638,7 @@ const Zr = ["innerHTML"], qr = { style: { "z-index": "7" } }, Jr = {
|
|
|
7638
7638
|
[w, t, r],
|
|
7639
7639
|
() => {
|
|
7640
7640
|
w.value && t.value && c.value && c.value.sunsimDayOfYear && c.value.sunsimDayOfYear.length > 0 && (r.value ? h.value = c.value.sunsimDayOfYear.find(
|
|
7641
|
-
(
|
|
7641
|
+
(V) => V.dayOfYear === r.value
|
|
7642
7642
|
) || c.value.sunsimDayOfYear[0] : h.value = c.value.sunsimDayOfYear[0]);
|
|
7643
7643
|
},
|
|
7644
7644
|
{ immediate: !0 }
|
|
@@ -7646,150 +7646,151 @@ const Zr = ["innerHTML"], qr = { style: { "z-index": "7" } }, Jr = {
|
|
|
7646
7646
|
[w, t, f],
|
|
7647
7647
|
() => {
|
|
7648
7648
|
w.value && t.value && h.value && h.value.timeSamples && h.value.timeSamples.length > 0 && (f.value ? S.value = h.value.timeSamples.find(
|
|
7649
|
-
(
|
|
7649
|
+
(V) => V.timeInHours === f.value
|
|
7650
7650
|
) || h.value.timeSamples[0] : S.value = h.value.timeSamples.find(
|
|
7651
|
-
(
|
|
7651
|
+
(V) => V.timeInHours === h.value.defaultHour
|
|
7652
7652
|
) || h.value.timeSamples[0]);
|
|
7653
7653
|
},
|
|
7654
7654
|
{ immediate: !0 }
|
|
7655
7655
|
);
|
|
7656
|
-
function
|
|
7657
|
-
c.value !==
|
|
7658
|
-
w.value.cameras.findIndex((
|
|
7656
|
+
function q(V) {
|
|
7657
|
+
c.value !== V && Oe(
|
|
7658
|
+
w.value.cameras.findIndex((ae) => ae === V)
|
|
7659
7659
|
);
|
|
7660
7660
|
}
|
|
7661
|
-
function
|
|
7662
|
-
y.value =
|
|
7663
|
-
|
|
7661
|
+
function J(V) {
|
|
7662
|
+
y.value = V, At(w.value.cameras[y.value]) ? b.value = w.value.cameras[y.value] : (De(() => {
|
|
7663
|
+
re(
|
|
7664
7664
|
w.value.cameras[y.value]
|
|
7665
7665
|
);
|
|
7666
7666
|
}), b.value = null);
|
|
7667
7667
|
}
|
|
7668
|
-
function
|
|
7669
|
-
const
|
|
7670
|
-
c.value =
|
|
7671
|
-
(
|
|
7668
|
+
function re(V) {
|
|
7669
|
+
const ae = h.value;
|
|
7670
|
+
c.value = V, y.value = w.value.cameras.findIndex(
|
|
7671
|
+
(ce) => ce === c.value
|
|
7672
7672
|
), De(() => {
|
|
7673
|
-
c.value.sunsimDayOfYear && c.value.sunsimDayOfYear.length > 0 &&
|
|
7673
|
+
c.value.sunsimDayOfYear && c.value.sunsimDayOfYear.length > 0 && se(
|
|
7674
7674
|
c.value.sunsimDayOfYear.find(
|
|
7675
|
-
(
|
|
7675
|
+
(ce) => ce.dayOfYear === ae.dayOfYear
|
|
7676
7676
|
) || c.value.sunsimDayOfYear[0]
|
|
7677
7677
|
);
|
|
7678
7678
|
});
|
|
7679
7679
|
}
|
|
7680
|
-
function
|
|
7681
|
-
const
|
|
7682
|
-
h.value =
|
|
7683
|
-
|
|
7680
|
+
function se(V) {
|
|
7681
|
+
const ae = S.value;
|
|
7682
|
+
h.value = V, De(() => {
|
|
7683
|
+
ie(
|
|
7684
7684
|
h.value.timeSamples.find(
|
|
7685
|
-
(
|
|
7685
|
+
(ce) => ce.timeInHours === ae.timeInHours
|
|
7686
7686
|
) || h.value.timeSamples.find(
|
|
7687
|
-
(
|
|
7687
|
+
(ce) => ce.timeInHours === h.value.defaultHour
|
|
7688
7688
|
) || h.value.timeSamples[0]
|
|
7689
7689
|
);
|
|
7690
7690
|
});
|
|
7691
7691
|
}
|
|
7692
|
-
function
|
|
7693
|
-
S.value =
|
|
7692
|
+
function ie(V) {
|
|
7693
|
+
S.value = V;
|
|
7694
7694
|
}
|
|
7695
|
-
function _e(
|
|
7696
|
-
g("onClick",
|
|
7697
|
-
const
|
|
7698
|
-
(
|
|
7695
|
+
function _e(V) {
|
|
7696
|
+
g("onClick", V, () => {
|
|
7697
|
+
const ae = w.value.stillCameraData.find(
|
|
7698
|
+
(ce) => ce.id === V
|
|
7699
7699
|
);
|
|
7700
|
-
|
|
7700
|
+
ae && Oe(ae.bestIndex);
|
|
7701
7701
|
});
|
|
7702
7702
|
}
|
|
7703
|
-
function
|
|
7704
|
-
g("onHoverOver",
|
|
7703
|
+
function ue(V) {
|
|
7704
|
+
g("onHoverOver", V), Y.value = V;
|
|
7705
7705
|
}
|
|
7706
|
-
function Le(
|
|
7707
|
-
g("onHoverOut",
|
|
7706
|
+
function Le(V) {
|
|
7707
|
+
g("onHoverOut", V), Y.value = void 0;
|
|
7708
7708
|
}
|
|
7709
|
-
function Ae(
|
|
7710
|
-
const { layerX:
|
|
7711
|
-
let
|
|
7712
|
-
for (;
|
|
7713
|
-
if (
|
|
7714
|
-
|
|
7709
|
+
function Ae(V) {
|
|
7710
|
+
const { layerX: ae, layerY: ce } = V;
|
|
7711
|
+
let de = V.target, ne = !1;
|
|
7712
|
+
for (; de; )
|
|
7713
|
+
if (de === R.value) {
|
|
7714
|
+
ne = !0;
|
|
7715
7715
|
break;
|
|
7716
7716
|
} else
|
|
7717
|
-
|
|
7718
|
-
if (
|
|
7719
|
-
const
|
|
7720
|
-
|
|
7721
|
-
x:
|
|
7722
|
-
y:
|
|
7723
|
-
width:
|
|
7724
|
-
height:
|
|
7717
|
+
de = de.parentElement;
|
|
7718
|
+
if (ne) {
|
|
7719
|
+
const Ue = V.currentTarget;
|
|
7720
|
+
Z.value = {
|
|
7721
|
+
x: ae,
|
|
7722
|
+
y: ce,
|
|
7723
|
+
width: Ue.clientWidth,
|
|
7724
|
+
height: Ue.clientHeight
|
|
7725
7725
|
};
|
|
7726
7726
|
} else
|
|
7727
|
-
|
|
7728
|
-
g("onMouseMove",
|
|
7727
|
+
Z.value = void 0;
|
|
7728
|
+
g("onMouseMove", V, Z.value);
|
|
7729
7729
|
}
|
|
7730
|
-
function
|
|
7731
|
-
min:
|
|
7732
|
-
max:
|
|
7733
|
-
current:
|
|
7730
|
+
function He({
|
|
7731
|
+
min: V,
|
|
7732
|
+
max: ae,
|
|
7733
|
+
current: ce
|
|
7734
7734
|
}) {
|
|
7735
|
-
N.value = { min:
|
|
7735
|
+
N.value = { min: V, max: ae, current: ce };
|
|
7736
7736
|
}
|
|
7737
|
-
function be(
|
|
7738
|
-
W.value.adjustZoom(
|
|
7737
|
+
function be(V) {
|
|
7738
|
+
W.value.adjustZoom(V ? 10 : -10);
|
|
7739
7739
|
}
|
|
7740
|
-
function xe(
|
|
7740
|
+
function xe(V) {
|
|
7741
7741
|
return w.value.stillCameraIndices.findIndex(
|
|
7742
|
-
(
|
|
7742
|
+
(ae) => ae === V
|
|
7743
7743
|
);
|
|
7744
7744
|
}
|
|
7745
|
-
async function Oe(
|
|
7746
|
-
const
|
|
7745
|
+
async function Oe(V) {
|
|
7746
|
+
const ae = y.value;
|
|
7747
7747
|
if (w.value.loopable) {
|
|
7748
|
-
const
|
|
7749
|
-
let
|
|
7750
|
-
for (;
|
|
7751
|
-
|
|
7752
|
-
for (
|
|
7753
|
-
|
|
7754
|
-
|
|
7748
|
+
const ce = w.value.stillCameraIndices.length, de = xe(ae), ne = xe(V);
|
|
7749
|
+
let Ue = 0, Pe = 0, Be = de;
|
|
7750
|
+
for (; Be++, Be >= ce && (Be = 0), Be !== ne; )
|
|
7751
|
+
Ue++;
|
|
7752
|
+
for (Be = de; Be--, Be < 0 && (Be += ce), Be !== ne; )
|
|
7753
|
+
Pe++;
|
|
7754
|
+
Ue === Pe ? Ce(ae, V) : Ue < Pe ? de < ne ? Ce(ae, V) : Ce(ae, V + w.value.cameras.length) : de >= ne ? Ce(ae, V) : Ce(ae + w.value.cameras.length, V);
|
|
7755
7755
|
} else
|
|
7756
|
-
Ce(
|
|
7756
|
+
Ce(ae, V);
|
|
7757
7757
|
}
|
|
7758
|
-
function Ce(
|
|
7759
|
-
return new Promise((
|
|
7758
|
+
function Ce(V, ae) {
|
|
7759
|
+
return new Promise((ce) => {
|
|
7760
7760
|
P.value = !0;
|
|
7761
|
-
let
|
|
7762
|
-
|
|
7763
|
-
|
|
7764
|
-
|
|
7765
|
-
),
|
|
7766
|
-
|
|
7767
|
-
),
|
|
7761
|
+
let de, ne = V;
|
|
7762
|
+
de = setInterval(() => {
|
|
7763
|
+
ne < ae ? (ne++, y.value = Math.abs(
|
|
7764
|
+
ne % w.value.cameras.length
|
|
7765
|
+
), J(y.value)) : ne > ae ? (ne--, y.value = Math.abs(
|
|
7766
|
+
ne % w.value.cameras.length
|
|
7767
|
+
), J(y.value)) : (clearInterval(de), P.value = !1, ce());
|
|
7768
7768
|
}, 12);
|
|
7769
7769
|
});
|
|
7770
7770
|
}
|
|
7771
|
-
function G(
|
|
7772
|
-
|
|
7771
|
+
function G(V) {
|
|
7772
|
+
ve.value = !0, g("onError", V);
|
|
7773
7773
|
}
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7774
|
+
const K = (V) => V * (180 / Math.PI);
|
|
7775
|
+
return (V, ae) => {
|
|
7776
|
+
const ce = E("v-skeleton-loader");
|
|
7777
|
+
return d(), x(me, null, [
|
|
7778
|
+
C(ce, {
|
|
7778
7779
|
type: "image",
|
|
7779
7780
|
class: "w-100 h-100 position-relative",
|
|
7780
|
-
loading: !
|
|
7781
|
+
loading: !O.value || !w.value
|
|
7781
7782
|
}, {
|
|
7782
7783
|
default: _(() => [
|
|
7783
|
-
C(
|
|
7784
|
+
C(Ee, { class: "w-100 h-100" }, {
|
|
7784
7785
|
default: _(() => [
|
|
7785
7786
|
u("div", {
|
|
7786
7787
|
ref_key: "container",
|
|
7787
|
-
ref:
|
|
7788
|
+
ref: X,
|
|
7788
7789
|
class: ge({ mobile: A.value }),
|
|
7789
7790
|
style: { "min-height": "104px" },
|
|
7790
7791
|
onMousemove: Ae
|
|
7791
7792
|
}, [
|
|
7792
|
-
|
|
7793
|
+
V.showUi ? (d(), x("div", {
|
|
7793
7794
|
key: 0,
|
|
7794
7795
|
class: "persistent actions-bar top-right pa-2",
|
|
7795
7796
|
style: fe({
|
|
@@ -7797,7 +7798,7 @@ const Zr = ["innerHTML"], qr = { style: { "z-index": "7" } }, Jr = {
|
|
|
7797
7798
|
top: A.value && z.value.length > 1 ? "60px" : 0
|
|
7798
7799
|
})
|
|
7799
7800
|
}, [
|
|
7800
|
-
c.value.cameraRotation ? (d(),
|
|
7801
|
+
c.value.cameraRotation ? (d(), T(nt, {
|
|
7801
7802
|
key: 0,
|
|
7802
7803
|
class: "mb-2",
|
|
7803
7804
|
style: fe({
|
|
@@ -7805,18 +7806,18 @@ const Zr = ["innerHTML"], qr = { style: { "z-index": "7" } }, Jr = {
|
|
|
7805
7806
|
width: A.value ? 32 : 40,
|
|
7806
7807
|
height: A.value ? 32 : 40
|
|
7807
7808
|
}),
|
|
7808
|
-
longitude: c.value.cameraRotation.y + 270
|
|
7809
|
+
longitude: K(c.value.cameraRotation.y) + 270
|
|
7809
7810
|
}, null, 8, ["style", "longitude"])) : $("", !0),
|
|
7810
7811
|
C(Ur, {
|
|
7811
7812
|
"is-mobile-sized": A.value,
|
|
7812
7813
|
"can-zoom-out": N.value.min < N.value.current,
|
|
7813
7814
|
"can-zoom-in": N.value.max > N.value.current,
|
|
7814
7815
|
disabled: P.value,
|
|
7815
|
-
onOnZoomIn:
|
|
7816
|
-
onOnZoomOut:
|
|
7816
|
+
onOnZoomIn: ae[0] || (ae[0] = (de) => be(!0)),
|
|
7817
|
+
onOnZoomOut: ae[1] || (ae[1] = (de) => be(!1))
|
|
7817
7818
|
}, null, 8, ["is-mobile-sized", "can-zoom-out", "can-zoom-in", "disabled"])
|
|
7818
7819
|
], 4)) : $("", !0),
|
|
7819
|
-
|
|
7820
|
+
V.showUi && z.value.length > 1 ? (d(), x("div", {
|
|
7820
7821
|
key: 1,
|
|
7821
7822
|
class: ge([{
|
|
7822
7823
|
"actions-bar bottom-center pb-2": !0,
|
|
@@ -7830,27 +7831,27 @@ const Zr = ["innerHTML"], qr = { style: { "z-index": "7" } }, Jr = {
|
|
|
7830
7831
|
"current-camera": c.value,
|
|
7831
7832
|
disabled: P.value,
|
|
7832
7833
|
"cdn-file-resolver": D(t),
|
|
7833
|
-
onOnCameraChange:
|
|
7834
|
+
onOnCameraChange: q
|
|
7834
7835
|
}, null, 8, ["is-mobile-sized", "still-cameras", "current-camera", "disabled", "cdn-file-resolver"])
|
|
7835
7836
|
], 2)) : $("", !0),
|
|
7836
|
-
C(
|
|
7837
|
+
C(at, {
|
|
7837
7838
|
ref_key: "zoomBox",
|
|
7838
7839
|
ref: W,
|
|
7839
7840
|
position: "relative",
|
|
7840
|
-
onUpdate:
|
|
7841
|
+
onUpdate: He
|
|
7841
7842
|
}, {
|
|
7842
7843
|
default: _(() => [
|
|
7843
|
-
(d(!0), x(
|
|
7844
|
-
key: `camera${
|
|
7845
|
-
"camera-data":
|
|
7844
|
+
(d(!0), x(me, null, ye(z.value, (de, ne) => (d(), T(br, {
|
|
7845
|
+
key: `camera${ne}`,
|
|
7846
|
+
"camera-data": de,
|
|
7846
7847
|
"cdn-file-resolver": D(t),
|
|
7847
7848
|
"current-camera": c.value,
|
|
7848
7849
|
"current-day": h.value,
|
|
7849
7850
|
"current-time": S.value
|
|
7850
7851
|
}, null, 8, ["camera-data", "cdn-file-resolver", "current-camera", "current-day", "current-time"]))), 128)),
|
|
7851
|
-
(d(!0), x(
|
|
7852
|
-
key: `transition${
|
|
7853
|
-
"transition-data":
|
|
7852
|
+
(d(!0), x(me, null, ye(M.value, (de, ne) => (d(), T(kr, {
|
|
7853
|
+
key: `transition${ne}`,
|
|
7854
|
+
"transition-data": de,
|
|
7854
7855
|
"cdn-file-resolver": D(t),
|
|
7855
7856
|
"current-transition": b.value
|
|
7856
7857
|
}, null, 8, ["transition-data", "cdn-file-resolver", "current-transition"]))), 128)),
|
|
@@ -7860,16 +7861,16 @@ const Zr = ["innerHTML"], qr = { style: { "z-index": "7" } }, Jr = {
|
|
|
7860
7861
|
style: { "z-index": "6", "pointer-events": "none" },
|
|
7861
7862
|
innerHTML: D(s)
|
|
7862
7863
|
}, null, 8, Zr)) : $("", !0),
|
|
7863
|
-
c.value.overlayFilename && !
|
|
7864
|
+
c.value.overlayFilename && !ve.value ? we((d(), T(zr, {
|
|
7864
7865
|
key: 1,
|
|
7865
7866
|
"cdn-file-resolver": D(t),
|
|
7866
7867
|
"color-callback": D(o),
|
|
7867
7868
|
"current-camera": c.value,
|
|
7868
7869
|
"selected-id": D(m),
|
|
7869
7870
|
onOnClick: _e,
|
|
7870
|
-
onOnHoverOver:
|
|
7871
|
+
onOnHoverOver: ue,
|
|
7871
7872
|
onOnHoverOut: Le,
|
|
7872
|
-
onUpdateSvgContainer:
|
|
7873
|
+
onUpdateSvgContainer: ae[2] || (ae[2] = (de) => R.value = de),
|
|
7873
7874
|
onOnError: G
|
|
7874
7875
|
}, null, 8, ["cdn-file-resolver", "color-callback", "current-camera", "selected-id"])), [
|
|
7875
7876
|
[ke, b.value === null]
|
|
@@ -7877,7 +7878,7 @@ const Zr = ["innerHTML"], qr = { style: { "z-index": "7" } }, Jr = {
|
|
|
7877
7878
|
]),
|
|
7878
7879
|
_: 1
|
|
7879
7880
|
}, 512),
|
|
7880
|
-
|
|
7881
|
+
V.showUi && (h.value && h.value.timeSamples && h.value.timeSamples.length > 1 || c.value.sunsimDayOfYear && c.value.sunsimDayOfYear.length > 1) ? (d(), x("div", {
|
|
7881
7882
|
key: 2,
|
|
7882
7883
|
class: ge({
|
|
7883
7884
|
"actions-bar top-left pa-2 d-flex": !0,
|
|
@@ -7891,29 +7892,29 @@ const Zr = ["innerHTML"], qr = { style: { "z-index": "7" } }, Jr = {
|
|
|
7891
7892
|
"current-camera": c.value,
|
|
7892
7893
|
"current-day": h.value,
|
|
7893
7894
|
disabled: P.value,
|
|
7894
|
-
onOnDayChange:
|
|
7895
|
+
onOnDayChange: se
|
|
7895
7896
|
}, null, 8, ["is-mobile-sized", "current-camera", "current-day", "disabled"]),
|
|
7896
7897
|
C($r, {
|
|
7897
7898
|
"is-mobile-sized": A.value,
|
|
7898
7899
|
"current-day": h.value,
|
|
7899
7900
|
"current-time": S.value,
|
|
7900
7901
|
disabled: P.value,
|
|
7901
|
-
onOnTimeChange:
|
|
7902
|
+
onOnTimeChange: ie
|
|
7902
7903
|
}, null, 8, ["is-mobile-sized", "current-day", "current-time", "disabled"])
|
|
7903
7904
|
], 2)) : $("", !0),
|
|
7904
|
-
|
|
7905
|
+
V.$slots.popup && Z.value && Y.value ? (d(), T(tt, {
|
|
7905
7906
|
key: 3,
|
|
7906
|
-
"is-hoverable":
|
|
7907
|
-
pos:
|
|
7907
|
+
"is-hoverable": L.value,
|
|
7908
|
+
pos: Z.value
|
|
7908
7909
|
}, {
|
|
7909
7910
|
default: _(() => [
|
|
7910
7911
|
u("div", qr, [
|
|
7911
|
-
|
|
7912
|
+
le(V.$slots, "popup", rt(ut({ hoverId: Y.value, hoverable: L.value })), void 0, !0)
|
|
7912
7913
|
])
|
|
7913
7914
|
]),
|
|
7914
7915
|
_: 3
|
|
7915
7916
|
}, 8, ["is-hoverable", "pos"])) : $("", !0),
|
|
7916
|
-
|
|
7917
|
+
V.version && V.showVersion ? (d(), x("div", Jr, " version: " + Q(V.version), 1)) : $("", !0)
|
|
7917
7918
|
], 34)
|
|
7918
7919
|
]),
|
|
7919
7920
|
_: 3
|
|
@@ -7921,14 +7922,14 @@ const Zr = ["innerHTML"], qr = { style: { "z-index": "7" } }, Jr = {
|
|
|
7921
7922
|
]),
|
|
7922
7923
|
_: 3
|
|
7923
7924
|
}, 8, ["loading"]),
|
|
7924
|
-
C(
|
|
7925
|
+
C(ze, {
|
|
7925
7926
|
ref_key: "hoverProbe",
|
|
7926
7927
|
ref: I
|
|
7927
7928
|
}, null, 512)
|
|
7928
7929
|
], 64);
|
|
7929
7930
|
};
|
|
7930
7931
|
}
|
|
7931
|
-
}), Kr = /* @__PURE__ */ ee(Xr, [["__scopeId", "data-v-
|
|
7932
|
+
}), Kr = /* @__PURE__ */ ee(Xr, [["__scopeId", "data-v-b6ee829a"]]), su = {
|
|
7932
7933
|
install: function(a) {
|
|
7933
7934
|
a.component("VApartmentChooser", yn), a.component("VBuildingChooser", Do), a.component("VVirtualTour", Zi), a.component("VManualSlideShow", pr), a.component("VStructureChooser", Kr);
|
|
7934
7935
|
}
|
|
@@ -7939,13 +7940,13 @@ export {
|
|
|
7939
7940
|
ou as VApartmentChooserV5,
|
|
7940
7941
|
Do as VBuildingChooser,
|
|
7941
7942
|
lu as VBuildingChooserV5,
|
|
7942
|
-
|
|
7943
|
-
|
|
7943
|
+
tt as VFloatingCard,
|
|
7944
|
+
ze as VHoverProbe,
|
|
7944
7945
|
pr as VManualSlideShow,
|
|
7945
|
-
|
|
7946
|
+
nt as VNorthDirection,
|
|
7946
7947
|
Kr as VStructureChooser,
|
|
7947
7948
|
Zi as VVirtualTour,
|
|
7948
|
-
|
|
7949
|
+
at as VZoomBox,
|
|
7949
7950
|
Wn as convertApartmentChooserDataLegacyToV5,
|
|
7950
7951
|
Po as convertBuildingChooserDataLegacyToV5,
|
|
7951
7952
|
Qr as convertStructureChooserDataLegacyToV5,
|