@qispace/vue3-player 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var St = Object.defineProperty;
|
|
2
2
|
var Et = (u, t, e) => t in u ? St(u, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[t] = e;
|
|
3
3
|
var ee = (u, t, e) => (Et(u, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
-
import { defineComponent as Q, ref as r, computed as V, openBlock as
|
|
4
|
+
import { defineComponent as Q, ref as r, computed as V, openBlock as p, createElementBlock as F, watch as Z, onMounted as ce, onBeforeUnmount as Oe, withDirectives as de, createElementVNode as o, normalizeStyle as re, vShow as me, createVNode as y, Fragment as Ce, renderList as _e, createCommentVNode as H, inject as pe, resolveComponent as T, withCtx as I, toDisplayString as q, unref as oe, createTextVNode as se, normalizeClass as ye, createBlock as N, renderSlot as ie, provide as De, watchEffect as ze, resolveDynamicComponent as dt, normalizeProps as vt, guardReactiveProps as mt, mergeProps as be, nextTick as Ft, createSlots as xt, Transition as qe, pushScopeId as Je, popScopeId as et, vModelText as Bt, createStaticVNode as pt, onBeforeUpdate as Vt } from "vue";
|
|
5
5
|
import ht from "axios";
|
|
6
6
|
import * as Ut from "@qispace/player-core";
|
|
7
7
|
import * as xe from "three";
|
|
@@ -33,7 +33,7 @@ const Dt = /* @__PURE__ */ Q({
|
|
|
33
33
|
const e = r(), l = V(() => window.getComputedStyle(e.value).display === "none");
|
|
34
34
|
return t({
|
|
35
35
|
isHoverEnabled: l
|
|
36
|
-
}), (a, n) => (
|
|
36
|
+
}), (a, n) => (p(), F("div", {
|
|
37
37
|
ref_key: "hoverCheck",
|
|
38
38
|
ref: e,
|
|
39
39
|
class: "hover-check"
|
|
@@ -58,18 +58,18 @@ const Dt = /* @__PURE__ */ Q({
|
|
|
58
58
|
},
|
|
59
59
|
emits: ["selectUnit", "goToUnit", "hoverOver", "hoverOut", "pos"],
|
|
60
60
|
setup(u, { emit: t }) {
|
|
61
|
-
const e = u, l = t, a = r({ x: 0, y: 0, width: 0, height: 0 }), n = r(null), s = r(0), i = r(0), k = r(null),
|
|
62
|
-
if (
|
|
61
|
+
const e = u, l = t, a = r({ x: 0, y: 0, width: 0, height: 0 }), n = r(null), s = r(0), i = r(0), k = r(null), h = r(null), v = r(null), m = r(null), M = r(-1), L = r(!1), A = r(null), _ = r(null), E = r({}), D = r("auto"), g = r(null), C = r(void 0), R = r(new $e()), c = r({}), f = r(), b = r(), B = r(), U = V(() => f.value.isHoverEnabled), $ = V(() => e.cdnFileResolver(`/scenedata${e.viewModel.currentScene}.png`)), z = V(() => $.value in E.value ? E.value[$.value] : null), J = V(() => {
|
|
62
|
+
if (M.value < 0)
|
|
63
63
|
return !1;
|
|
64
64
|
const j = e.sceneData.find(
|
|
65
|
-
(P) => P.index ===
|
|
65
|
+
(P) => P.index === M.value
|
|
66
66
|
);
|
|
67
67
|
return j ? e.unitCallback ? e.unitCallback(j.apartmentId) : j.apartmentId : !1;
|
|
68
68
|
}), w = V(() => ({
|
|
69
69
|
width: s.value + "px",
|
|
70
70
|
height: i.value + "px",
|
|
71
71
|
cursor: D.value
|
|
72
|
-
})), x = V(() => `hover-${
|
|
72
|
+
})), x = V(() => `hover-${L.value ? "over" : "out"}-${J.value ? typeof J.value == "object" && "unitId" in J.value ? J.value.unitId : J.value : ""}`);
|
|
73
73
|
Z(
|
|
74
74
|
$,
|
|
75
75
|
() => {
|
|
@@ -81,8 +81,8 @@ const Dt = /* @__PURE__ */ Q({
|
|
|
81
81
|
});
|
|
82
82
|
},
|
|
83
83
|
{ immediate: !0 }
|
|
84
|
-
), Z(
|
|
85
|
-
|
|
84
|
+
), Z(z, () => {
|
|
85
|
+
z.value && W();
|
|
86
86
|
}), Z(
|
|
87
87
|
() => e.viewModel.currentScene,
|
|
88
88
|
() => {
|
|
@@ -101,7 +101,7 @@ const Dt = /* @__PURE__ */ Q({
|
|
|
101
101
|
), Z(J, () => {
|
|
102
102
|
Ve(), J.value ? D.value = "pointer" : D.value = "auto";
|
|
103
103
|
}), Z(x, () => {
|
|
104
|
-
|
|
104
|
+
L.value ? l("hoverOver", {
|
|
105
105
|
hoverApartment: J.value,
|
|
106
106
|
closeHandler: () => Ge()
|
|
107
107
|
}) : l("hoverOut", {
|
|
@@ -111,24 +111,24 @@ const Dt = /* @__PURE__ */ Q({
|
|
|
111
111
|
}), Z(a, () => {
|
|
112
112
|
l("pos", a.value);
|
|
113
113
|
}), ce(() => {
|
|
114
|
-
|
|
114
|
+
C.value = () => {
|
|
115
115
|
clearTimeout(g.value), Me(), g.value = setTimeout(() => {
|
|
116
116
|
Me();
|
|
117
117
|
}, 50);
|
|
118
|
-
}, window.addEventListener("resize",
|
|
118
|
+
}, window.addEventListener("resize", C.value), Me();
|
|
119
119
|
}), Oe(() => {
|
|
120
|
-
window.removeEventListener("resize",
|
|
120
|
+
window.removeEventListener("resize", C.value);
|
|
121
121
|
for (const j in E.value)
|
|
122
122
|
URL.revokeObjectURL(E.value[j]);
|
|
123
123
|
});
|
|
124
124
|
function W() {
|
|
125
|
-
n.value = b, k.value = n.value.getContext("2d", { willReadFrequently: !0 }),
|
|
125
|
+
n.value = b, k.value = n.value.getContext("2d", { willReadFrequently: !0 }), h.value = new Image(), h.value.onload = () => {
|
|
126
126
|
je(), n.value.addEventListener("mousemove", Pe(S, 50));
|
|
127
|
-
},
|
|
127
|
+
}, h.value.src = z.value;
|
|
128
128
|
}
|
|
129
129
|
function S(j) {
|
|
130
130
|
const P = K(j.offsetX, j.offsetY);
|
|
131
|
-
|
|
131
|
+
L.value = P >= 0, M.value = P, a.value = {
|
|
132
132
|
x: j.offsetX,
|
|
133
133
|
y: j.offsetY,
|
|
134
134
|
width: s.value,
|
|
@@ -140,13 +140,13 @@ const Dt = /* @__PURE__ */ Q({
|
|
|
140
140
|
P < 0 || U && fe(P);
|
|
141
141
|
}
|
|
142
142
|
function X() {
|
|
143
|
-
if (
|
|
144
|
-
n.value.width =
|
|
145
|
-
|
|
143
|
+
if (h.value && h.value.width) {
|
|
144
|
+
n.value.width = h.value.width, n.value.height = h.value.height, k.value.drawImage(
|
|
145
|
+
h.value,
|
|
146
146
|
0,
|
|
147
147
|
0,
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
h.value.width,
|
|
149
|
+
h.value.height
|
|
150
150
|
), m.value = k.value.getImageData(
|
|
151
151
|
0,
|
|
152
152
|
0,
|
|
@@ -167,7 +167,7 @@ const Dt = /* @__PURE__ */ Q({
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
function K(j, P) {
|
|
170
|
-
|
|
170
|
+
A.value = j, _.value = P;
|
|
171
171
|
const le = n.value.offsetWidth / n.value.width, Se = n.value.offsetHeight / n.value.height, Ee = (j / le).toFixed(), Fe = (P / Se).toFixed(), we = Number(Fe) * (n.value.width * 4) + Number(Ee) * 4, ke = m.value.data[we];
|
|
172
172
|
return m.value.data[we + 3] > 0 ? ke : -1;
|
|
173
173
|
}
|
|
@@ -176,7 +176,7 @@ const Dt = /* @__PURE__ */ Q({
|
|
|
176
176
|
if (P.index >= 0) {
|
|
177
177
|
const le = ue(P.index), Se = ve(P.index);
|
|
178
178
|
let Ee = "idle";
|
|
179
|
-
!J.value && e.selectedUnitId && Se === e.selectedUnitId ? Ee = "selected" : J.value &&
|
|
179
|
+
!J.value && e.selectedUnitId && Se === e.selectedUnitId ? Ee = "selected" : J.value && M.value === P.index && (Ee = "hover");
|
|
180
180
|
const Fe = e.unitCallback ? e.unitCallback(Se) : Se;
|
|
181
181
|
if (Fe) {
|
|
182
182
|
const we = e.colorCallback(Fe, Ee);
|
|
@@ -232,7 +232,7 @@ const Dt = /* @__PURE__ */ Q({
|
|
|
232
232
|
Ie(), ne(), k.value && v.value && k.value.putImageData(v.value, 0, 0);
|
|
233
233
|
}
|
|
234
234
|
function Ge() {
|
|
235
|
-
|
|
235
|
+
L.value = !1;
|
|
236
236
|
}
|
|
237
237
|
const Ae = r(!1);
|
|
238
238
|
function Pe(j, P) {
|
|
@@ -240,7 +240,7 @@ const Dt = /* @__PURE__ */ Q({
|
|
|
240
240
|
Ae.value && (Ae.value = !1, j.apply(this, le), setTimeout(() => Ae.value = !0, P));
|
|
241
241
|
};
|
|
242
242
|
}
|
|
243
|
-
return (j, P) => (
|
|
243
|
+
return (j, P) => (p(), F("div", {
|
|
244
244
|
ref_key: "$el",
|
|
245
245
|
ref: B,
|
|
246
246
|
id: "canvas"
|
|
@@ -274,7 +274,7 @@ const Dt = /* @__PURE__ */ Q({
|
|
|
274
274
|
},
|
|
275
275
|
emits: ["selectUnit", "goToUnit", "hoverOver", "hoverOut", "pos"],
|
|
276
276
|
setup(u, { emit: t }) {
|
|
277
|
-
const e = u, l = t, a = r({ x: 0, y: 0, width: 0, height: 0 }), n = r(-1), s = r({}), i = r(null), k = r(new $e()),
|
|
277
|
+
const e = u, l = t, a = r({ x: 0, y: 0, width: 0, height: 0 }), n = r(-1), s = r({}), i = r(null), k = r(new $e()), h = r(), v = r(), m = V(() => v.value.isHoverEnabled);
|
|
278
278
|
Z(
|
|
279
279
|
() => e.viewModel.currentScene,
|
|
280
280
|
() => {
|
|
@@ -291,7 +291,7 @@ const Dt = /* @__PURE__ */ Q({
|
|
|
291
291
|
l("pos", a.value);
|
|
292
292
|
}), Z(n, (c, f) => {
|
|
293
293
|
if (c >= 0) {
|
|
294
|
-
const b =
|
|
294
|
+
const b = A(c);
|
|
295
295
|
l("hoverOver", {
|
|
296
296
|
hoverApartment: b,
|
|
297
297
|
closeHandler: () => {
|
|
@@ -299,7 +299,7 @@ const Dt = /* @__PURE__ */ Q({
|
|
|
299
299
|
}
|
|
300
300
|
});
|
|
301
301
|
} else {
|
|
302
|
-
const b =
|
|
302
|
+
const b = A(f);
|
|
303
303
|
l("hoverOut", {
|
|
304
304
|
hoverApartment: b,
|
|
305
305
|
closeHandler: () => {
|
|
@@ -315,52 +315,52 @@ const Dt = /* @__PURE__ */ Q({
|
|
|
315
315
|
const $ = new DOMParser().parseFromString(B, "image/svg+xml").getElementsByTagName("svg")[0];
|
|
316
316
|
b.viewBox = $.getAttribute("viewBox"), b.svgObjects = Array.from(
|
|
317
317
|
$.querySelectorAll("*[data-index]")
|
|
318
|
-
).map((
|
|
319
|
-
index: parseInt(
|
|
320
|
-
svg:
|
|
318
|
+
).map((z) => ({
|
|
319
|
+
index: parseInt(z.getAttribute("data-index")),
|
|
320
|
+
svg: z.innerHTML
|
|
321
321
|
})), s.value = { ...s.value, [c]: b };
|
|
322
322
|
});
|
|
323
323
|
}
|
|
324
|
-
|
|
324
|
+
h.value.addEventListener("mousemove", R(M, 50));
|
|
325
325
|
});
|
|
326
|
-
function
|
|
326
|
+
function M(c) {
|
|
327
327
|
a.value = {
|
|
328
328
|
x: c.offsetX,
|
|
329
329
|
y: c.offsetY,
|
|
330
|
-
width:
|
|
331
|
-
height:
|
|
330
|
+
width: h.value.offsetWidth,
|
|
331
|
+
height: h.value.offsetHeight
|
|
332
332
|
};
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function L(c) {
|
|
335
335
|
var f;
|
|
336
336
|
return (f = e.sceneData.find((b) => b.index === parseInt(c))) == null ? void 0 : f.apartmentId;
|
|
337
337
|
}
|
|
338
|
-
function
|
|
339
|
-
const f =
|
|
338
|
+
function A(c) {
|
|
339
|
+
const f = L(c);
|
|
340
340
|
return e.unitCallback ? e.unitCallback(f) : f;
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function _(c) {
|
|
343
343
|
m.value && (n.value = c);
|
|
344
344
|
}
|
|
345
345
|
function E(c) {
|
|
346
346
|
m.value && (n.value = -1);
|
|
347
347
|
}
|
|
348
348
|
function D(c) {
|
|
349
|
-
const f =
|
|
349
|
+
const f = A(c);
|
|
350
350
|
l("selectUnit", f), m.value && f && e.canGoToUnitCallback(f) ? l("goToUnit", f) : n.value = c;
|
|
351
351
|
}
|
|
352
352
|
function g(c) {
|
|
353
|
-
const f =
|
|
353
|
+
const f = L(c), b = A(c);
|
|
354
354
|
let B = "idle";
|
|
355
355
|
n.value < 0 && e.selectedUnitId && f === e.selectedUnitId ? B = "selected" : n.value >= 0 && n.value === c && (B = "hover");
|
|
356
356
|
const U = e.colorCallback(b, B);
|
|
357
357
|
if (U) {
|
|
358
|
-
const { r: $, g:
|
|
358
|
+
const { r: $, g: z, b: J, a: w, s: x } = U;
|
|
359
359
|
return {
|
|
360
360
|
strokeWidth: x !== void 0 ? x : 2,
|
|
361
|
-
stroke: `rgb(${$}, ${
|
|
361
|
+
stroke: `rgb(${$}, ${z}, ${J})`,
|
|
362
362
|
strokeOpacity: 1,
|
|
363
|
-
fill: `rgb(${$}, ${
|
|
363
|
+
fill: `rgb(${$}, ${z}, ${J})`,
|
|
364
364
|
fillOpacity: w / 255,
|
|
365
365
|
cursor: `${e.canGoToUnitCallback(b) ? "cursor" : "default"} !important`
|
|
366
366
|
};
|
|
@@ -374,16 +374,16 @@ const Dt = /* @__PURE__ */ Q({
|
|
|
374
374
|
cursor: "default !important"
|
|
375
375
|
};
|
|
376
376
|
}
|
|
377
|
-
const
|
|
377
|
+
const C = r(!1);
|
|
378
378
|
function R(c, f) {
|
|
379
|
-
return
|
|
380
|
-
|
|
379
|
+
return C.value = !0, function(...b) {
|
|
380
|
+
C.value && (C.value = !1, c.apply(this, b), setTimeout(() => C.value = !0, f));
|
|
381
381
|
};
|
|
382
382
|
}
|
|
383
|
-
return (c, f) => (
|
|
383
|
+
return (c, f) => (p(), F("div", {
|
|
384
384
|
id: "container",
|
|
385
385
|
ref_key: "container",
|
|
386
|
-
ref:
|
|
386
|
+
ref: h
|
|
387
387
|
}, [
|
|
388
388
|
de(o("div", {
|
|
389
389
|
class: "svg-container",
|
|
@@ -391,15 +391,15 @@ const Dt = /* @__PURE__ */ Q({
|
|
|
391
391
|
opacity: !i.value || !i.value.svgObjects ? 0 : 1
|
|
392
392
|
})
|
|
393
393
|
}, [
|
|
394
|
-
i.value && i.value.svgObjects ? (
|
|
394
|
+
i.value && i.value.svgObjects ? (p(), F("svg", {
|
|
395
395
|
key: 0,
|
|
396
396
|
viewBox: i.value.viewBox
|
|
397
397
|
}, [
|
|
398
|
-
(
|
|
398
|
+
(p(!0), F(Ce, null, _e(i.value.svgObjects, ({ index: b, svg: B }) => (p(), F("g", {
|
|
399
399
|
key: b,
|
|
400
400
|
innerHTML: B,
|
|
401
401
|
style: re(g(b)),
|
|
402
|
-
onMouseenter: (U) =>
|
|
402
|
+
onMouseenter: (U) => _(b),
|
|
403
403
|
onMouseleave: (U) => E(),
|
|
404
404
|
onClick: (U) => D(b)
|
|
405
405
|
}, null, 44, $t))), 128))
|
|
@@ -438,12 +438,12 @@ const Dt = /* @__PURE__ */ Q({
|
|
|
438
438
|
}
|
|
439
439
|
return (s, i) => {
|
|
440
440
|
const k = T("v-btn");
|
|
441
|
-
return
|
|
441
|
+
return p(), F("div", null, [
|
|
442
442
|
y(k, {
|
|
443
443
|
elevation: "1",
|
|
444
444
|
icon: "mdi-rotate-right",
|
|
445
445
|
class: "black darken-1",
|
|
446
|
-
onClick: i[0] || (i[0] = (
|
|
446
|
+
onClick: i[0] || (i[0] = (h) => s.viewModel.rotateClockwise())
|
|
447
447
|
}),
|
|
448
448
|
y(k, {
|
|
449
449
|
elevation: "1",
|
|
@@ -451,7 +451,7 @@ const Dt = /* @__PURE__ */ Q({
|
|
|
451
451
|
icon: "mdi-chevron-left",
|
|
452
452
|
class: "mr-sm-4 ml-sm-8 mr-3 ml-3 black darken-1",
|
|
453
453
|
disabled: !s.prevUnit,
|
|
454
|
-
onClick: i[1] || (i[1] = (
|
|
454
|
+
onClick: i[1] || (i[1] = (h) => l("prevUnit"))
|
|
455
455
|
}, null, 8, ["disabled"]),
|
|
456
456
|
y(k, {
|
|
457
457
|
color: "success darken-2",
|
|
@@ -459,11 +459,11 @@ const Dt = /* @__PURE__ */ Q({
|
|
|
459
459
|
rounded: "",
|
|
460
460
|
plain: "",
|
|
461
461
|
disabled: !s.selectedUnit || !s.canGoToUnitCallback(s.selectedUnit),
|
|
462
|
-
onClick: i[2] || (i[2] = (
|
|
462
|
+
onClick: i[2] || (i[2] = (h) => l("goToUnit", s.selectedUnit))
|
|
463
463
|
}, {
|
|
464
|
-
default:
|
|
465
|
-
s.selectedUnit && s.canGoToUnitCallback(s.selectedUnit) ? (
|
|
466
|
-
o("span", null,
|
|
464
|
+
default: I(() => [
|
|
465
|
+
s.selectedUnit && s.canGoToUnitCallback(s.selectedUnit) ? (p(), F("span", Pt, q(oe(a).getLabel("see-apartment")) + " ", 1)) : H("", !0),
|
|
466
|
+
o("span", null, q(s.selectedUnit && "title" in s.selectedUnit ? s.selectedUnit.title : "-"), 1)
|
|
467
467
|
]),
|
|
468
468
|
_: 1
|
|
469
469
|
}, 8, ["disabled"]),
|
|
@@ -473,14 +473,14 @@ const Dt = /* @__PURE__ */ Q({
|
|
|
473
473
|
icon: "mdi-chevron-right",
|
|
474
474
|
class: "mr-sm-8 ml-sm-4 mr-3 ml-3 black darken-1",
|
|
475
475
|
disabled: !s.nextUnit,
|
|
476
|
-
onClick: i[3] || (i[3] = (
|
|
476
|
+
onClick: i[3] || (i[3] = (h) => l("nextUnit"))
|
|
477
477
|
}, null, 8, ["disabled"]),
|
|
478
478
|
y(k, {
|
|
479
479
|
elevation: "1",
|
|
480
480
|
plain: "",
|
|
481
481
|
icon: "mdi-rotate-left",
|
|
482
482
|
class: "black darken-1",
|
|
483
|
-
onClick: i[4] || (i[4] = (
|
|
483
|
+
onClick: i[4] || (i[4] = (h) => s.viewModel.rotateCounterClockwise())
|
|
484
484
|
})
|
|
485
485
|
]);
|
|
486
486
|
};
|
|
@@ -576,10 +576,10 @@ const Gt = {
|
|
|
576
576
|
}, Qt = {
|
|
577
577
|
key: 1,
|
|
578
578
|
class: "frame-container"
|
|
579
|
-
},
|
|
579
|
+
}, qt = {
|
|
580
580
|
key: 0,
|
|
581
581
|
class: "frame-image"
|
|
582
|
-
},
|
|
582
|
+
}, zt = ["srcset", "type"], Zt = ["src"], Xt = {
|
|
583
583
|
key: 2,
|
|
584
584
|
id: "image-stack",
|
|
585
585
|
class: "frame-container"
|
|
@@ -593,26 +593,26 @@ const Gt = {
|
|
|
593
593
|
},
|
|
594
594
|
emits: ["loaded", "error", "progress"],
|
|
595
595
|
setup(u, { emit: t }) {
|
|
596
|
-
const e = u, l = t, a =
|
|
596
|
+
const e = u, l = t, a = L(), n = r(
|
|
597
597
|
new Ke(a.length).onLoadFinished(() => l("loaded")).onLoadProgress((D) => l("progress", D)).onLoadError(() => l("error"))
|
|
598
598
|
), s = r(
|
|
599
599
|
new Wt(e.cardinalFrames, rt)
|
|
600
|
-
), i = r(a), k = r(!1),
|
|
600
|
+
), i = r(a), k = r(!1), h = V(() => i.value.find((D) => D.show));
|
|
601
601
|
Z(
|
|
602
602
|
() => e.viewModel.currentScene,
|
|
603
603
|
(D, g) => {
|
|
604
|
-
const
|
|
605
|
-
v(g,
|
|
604
|
+
const C = E(g, D), R = _(g, D);
|
|
605
|
+
v(g, C, R);
|
|
606
606
|
}
|
|
607
607
|
), ce(() => {
|
|
608
|
-
|
|
608
|
+
M();
|
|
609
609
|
});
|
|
610
|
-
function v(D, g,
|
|
610
|
+
function v(D, g, C) {
|
|
611
611
|
e.viewModel.isRotating || (e.viewModel.isRotating = !0, m(
|
|
612
612
|
s.value.start(
|
|
613
613
|
g,
|
|
614
614
|
D % Ne,
|
|
615
|
-
|
|
615
|
+
C
|
|
616
616
|
)
|
|
617
617
|
));
|
|
618
618
|
}
|
|
@@ -620,41 +620,41 @@ const Gt = {
|
|
|
620
620
|
setTimeout(() => {
|
|
621
621
|
i.value[D.frameIndex].show = !1;
|
|
622
622
|
const g = D.nextFrame();
|
|
623
|
-
i.value[g.frameIndex].show = !0, g.atEnd ?
|
|
623
|
+
i.value[g.frameIndex].show = !0, g.atEnd ? M() : window.requestAnimationFrame(() => m(g));
|
|
624
624
|
}, 1e3 / to);
|
|
625
625
|
}
|
|
626
|
-
function
|
|
626
|
+
function M() {
|
|
627
627
|
const D = s.value.startFrameIndexForScene(
|
|
628
628
|
e.viewModel.currentScene % Ne
|
|
629
629
|
);
|
|
630
630
|
D in i.value && (i.value[D].show = !0), e.viewModel.isRotating = !1;
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function L() {
|
|
633
633
|
const D = [];
|
|
634
634
|
for (let g = 0; g < rt; g++) {
|
|
635
|
-
const { sourceSet:
|
|
635
|
+
const { sourceSet: C, defaultPath: R } = A(g);
|
|
636
636
|
D.push({
|
|
637
637
|
index: g,
|
|
638
|
-
sourceSet:
|
|
638
|
+
sourceSet: C,
|
|
639
639
|
defaultPath: R,
|
|
640
640
|
show: !1
|
|
641
641
|
});
|
|
642
642
|
}
|
|
643
643
|
return D;
|
|
644
644
|
}
|
|
645
|
-
function
|
|
646
|
-
const g = ("0000" + (D + 1)).slice(-4),
|
|
647
|
-
`${e.cdnFileResolver(`/480/${g}.jpg${
|
|
648
|
-
`${e.cdnFileResolver(`/960/${g}.jpg${
|
|
649
|
-
`${e.cdnFileResolver(`/1280/${g}.jpg${
|
|
645
|
+
function A(D) {
|
|
646
|
+
const g = ("0000" + (D + 1)).slice(-4), C = e.build ? `?v=${e.build}` : "", R = [
|
|
647
|
+
`${e.cdnFileResolver(`/480/${g}.jpg${C}`)} 480w`,
|
|
648
|
+
`${e.cdnFileResolver(`/960/${g}.jpg${C}`)} 960w`,
|
|
649
|
+
`${e.cdnFileResolver(`/1280/${g}.jpg${C}`)} 1280w`
|
|
650
650
|
].join(","), c = e.cdnFileResolver(
|
|
651
|
-
`/480/${g}.jpg${
|
|
651
|
+
`/480/${g}.jpg${C}`
|
|
652
652
|
);
|
|
653
653
|
return { sourceSet: R, defaultPath: c };
|
|
654
654
|
}
|
|
655
|
-
function
|
|
656
|
-
const
|
|
657
|
-
return R >
|
|
655
|
+
function _(D, g) {
|
|
656
|
+
const C = Ne / 2, R = Math.abs(D - g);
|
|
657
|
+
return R > C ? Ne - R : R;
|
|
658
658
|
}
|
|
659
659
|
function E(D, g) {
|
|
660
660
|
if (D === g)
|
|
@@ -663,17 +663,17 @@ const Gt = {
|
|
|
663
663
|
return R && D < g || !R && D > g ? 1 : -1;
|
|
664
664
|
}
|
|
665
665
|
return (D, g) => {
|
|
666
|
-
const
|
|
667
|
-
return
|
|
668
|
-
n.value.isError ? (
|
|
669
|
-
y(
|
|
670
|
-
default:
|
|
666
|
+
const C = T("v-icon");
|
|
667
|
+
return p(), F("div", null, [
|
|
668
|
+
n.value.isError ? (p(), F("div", Gt, [
|
|
669
|
+
y(C, { "x-large": "" }, {
|
|
670
|
+
default: I(() => [
|
|
671
671
|
se("mdi-alert-circle-outline")
|
|
672
672
|
]),
|
|
673
673
|
_: 1
|
|
674
674
|
})
|
|
675
|
-
])) : k.value ? (
|
|
676
|
-
(
|
|
675
|
+
])) : k.value ? (p(), F("div", Xt, [
|
|
676
|
+
(p(!0), F(Ce, null, _e(i.value, (R) => (p(), F("picture", {
|
|
677
677
|
key: R.index,
|
|
678
678
|
alt: R.index,
|
|
679
679
|
class: ye({ "frame-image": !0, show: R.show })
|
|
@@ -689,14 +689,14 @@ const Gt = {
|
|
|
689
689
|
onError: g[3] || (g[3] = (c) => n.value.errorDetected())
|
|
690
690
|
}, null, 40, eo)
|
|
691
691
|
], 10, Kt))), 128))
|
|
692
|
-
])) : (
|
|
693
|
-
|
|
692
|
+
])) : (p(), F("div", Qt, [
|
|
693
|
+
h.value ? (p(), F("picture", qt, [
|
|
694
694
|
o("source", {
|
|
695
|
-
srcset:
|
|
696
|
-
type:
|
|
697
|
-
}, null, 8,
|
|
695
|
+
srcset: h.value.sourceSet,
|
|
696
|
+
type: h.value.type
|
|
697
|
+
}, null, 8, zt),
|
|
698
698
|
o("img", {
|
|
699
|
-
src:
|
|
699
|
+
src: h.value.defaultPath,
|
|
700
700
|
onLoad: g[0] || (g[0] = (R) => k.value = !0),
|
|
701
701
|
onError: g[1] || (g[1] = (R) => n.value.errorDetected())
|
|
702
702
|
}, null, 40, Zt)
|
|
@@ -719,23 +719,23 @@ const Gt = {
|
|
|
719
719
|
});
|
|
720
720
|
return (n, s) => {
|
|
721
721
|
const i = T("v-dialog"), k = T("v-fade-transition");
|
|
722
|
-
return
|
|
722
|
+
return p(), N(k, {
|
|
723
723
|
origin: a.value.replace("-", " ") + " " + n.pos.x + " " + n.pos.y
|
|
724
724
|
}, {
|
|
725
|
-
default:
|
|
726
|
-
n.isHoverable ? (
|
|
725
|
+
default: I(() => [
|
|
726
|
+
n.isHoverable ? (p(), F("div", {
|
|
727
727
|
key: 0,
|
|
728
728
|
class: ye(["floating-card", a.value]),
|
|
729
729
|
style: re({ left: `${n.pos.x}px`, top: `${n.pos.y}px`, pointerEvents: "none" })
|
|
730
730
|
}, [
|
|
731
731
|
ie(n.$slots, "default", { isHoverable: n.isHoverable }, void 0, !0)
|
|
732
|
-
], 6)) : (
|
|
732
|
+
], 6)) : (p(), N(i, {
|
|
733
733
|
key: 1,
|
|
734
734
|
value: !0,
|
|
735
735
|
width: "auto",
|
|
736
|
-
"onClick:outside": s[0] || (s[0] = (
|
|
736
|
+
"onClick:outside": s[0] || (s[0] = (h) => l("outside", h))
|
|
737
737
|
}, {
|
|
738
|
-
default:
|
|
738
|
+
default: I(() => [
|
|
739
739
|
ie(n.$slots, "default", { isHoverable: n.isHoverable }, void 0, !0)
|
|
740
740
|
]),
|
|
741
741
|
_: 3
|
|
@@ -756,13 +756,13 @@ const Gt = {
|
|
|
756
756
|
},
|
|
757
757
|
emits: ["update"],
|
|
758
758
|
setup(u, { emit: t }) {
|
|
759
|
-
const e = u, l = t, a = r(100), n = r(0), s = r(0), i = r(!1), k = r(!1),
|
|
760
|
-
Z([
|
|
759
|
+
const e = u, l = t, a = r(100), n = r(0), s = r(0), i = r(!1), k = r(!1), h = r(void 0), v = r(!1), m = r(), M = V(() => `translateX(${n.value}px) translateY(${s.value}px) scale(${L.value})`), L = V(() => a.value / 100), A = V(() => e.maxScale * 100);
|
|
760
|
+
Z([L, n, s], () => {
|
|
761
761
|
W();
|
|
762
762
|
}), Z(
|
|
763
763
|
() => e.desktop,
|
|
764
764
|
() => {
|
|
765
|
-
e.desktop ?
|
|
765
|
+
e.desktop ? _() : D();
|
|
766
766
|
}
|
|
767
767
|
), Z(
|
|
768
768
|
() => e.mobile,
|
|
@@ -770,12 +770,12 @@ const Gt = {
|
|
|
770
770
|
e.mobile ? E() : g();
|
|
771
771
|
}
|
|
772
772
|
), ce(() => {
|
|
773
|
-
e.desktop &&
|
|
773
|
+
e.desktop && _(), e.mobile && E();
|
|
774
774
|
}), Oe(() => {
|
|
775
775
|
e.desktop && D(), e.mobile && g();
|
|
776
776
|
});
|
|
777
|
-
function
|
|
778
|
-
m.value.addEventListener("wheel",
|
|
777
|
+
function _() {
|
|
778
|
+
m.value.addEventListener("wheel", C, {
|
|
779
779
|
capture: !0
|
|
780
780
|
}), m.value.addEventListener("mousedown", R, {
|
|
781
781
|
capture: !0
|
|
@@ -799,7 +799,7 @@ const Gt = {
|
|
|
799
799
|
});
|
|
800
800
|
}
|
|
801
801
|
function D() {
|
|
802
|
-
m.value.removeEventListener("wheel",
|
|
802
|
+
m.value.removeEventListener("wheel", C, {
|
|
803
803
|
capture: !0
|
|
804
804
|
}), m.value.removeEventListener("mousedown", R, {
|
|
805
805
|
capture: !0
|
|
@@ -822,20 +822,20 @@ const Gt = {
|
|
|
822
822
|
capture: !0
|
|
823
823
|
});
|
|
824
824
|
}
|
|
825
|
-
function
|
|
826
|
-
const { x: Y, y: X } =
|
|
825
|
+
function C(S) {
|
|
826
|
+
const { x: Y, y: X } = z(S);
|
|
827
827
|
x(-S.deltaY / 10, Y, X), S.preventDefault();
|
|
828
828
|
}
|
|
829
829
|
function R(S) {
|
|
830
|
-
i.value = !0, v.value = !1,
|
|
830
|
+
i.value = !0, v.value = !1, h.value = S;
|
|
831
831
|
}
|
|
832
832
|
function c(S) {
|
|
833
833
|
if (i.value) {
|
|
834
|
-
const { x: Y, y: X } =
|
|
834
|
+
const { x: Y, y: X } = z(S), { x: K, y: ne } = z(h.value), ue = {
|
|
835
835
|
x: Y - K,
|
|
836
836
|
y: X - ne
|
|
837
837
|
};
|
|
838
|
-
J(ue.x), w(ue.y), v.value = !0,
|
|
838
|
+
J(ue.x), w(ue.y), v.value = !0, h.value = S;
|
|
839
839
|
}
|
|
840
840
|
}
|
|
841
841
|
function f(S) {
|
|
@@ -845,25 +845,25 @@ const Gt = {
|
|
|
845
845
|
i.value && (v.value && e.consumeMouseClickWhenMoved && (S.preventDefault(), S.stopImmediatePropagation()), i.value = !1);
|
|
846
846
|
}
|
|
847
847
|
function B(S) {
|
|
848
|
-
i.value = S.touches.length === 1, k.value = S.touches.length === 2,
|
|
848
|
+
i.value = S.touches.length === 1, k.value = S.touches.length === 2, h.value = S;
|
|
849
849
|
}
|
|
850
850
|
function U(S) {
|
|
851
851
|
if (i.value) {
|
|
852
|
-
const { x: Y, y: X } =
|
|
852
|
+
const { x: Y, y: X } = z(S.touches[0]), { x: K, y: ne } = z(h.value.touches[0]), ue = {
|
|
853
853
|
x: Y - K,
|
|
854
854
|
y: X - ne
|
|
855
855
|
};
|
|
856
856
|
J(ue.x), w(ue.y);
|
|
857
857
|
} else if (k.value && S.touches.length === 2) {
|
|
858
|
-
const { x: Y, y: X } =
|
|
858
|
+
const { x: Y, y: X } = z(S.touches[0]), { x: K, y: ne } = z(h.value.touches[0]), { x: ue, y: ve } = z(S.touches[1]), { x: he, y: fe } = z(h.value.touches[1]), ge = Math.hypot(K - he, ne - fe), Ie = Math.hypot(Y - ue, X - ve), Me = (ue + Y) / 2, je = (ve + X) / 2;
|
|
859
859
|
x(Ie - ge, Me, je);
|
|
860
860
|
}
|
|
861
|
-
|
|
861
|
+
h.value = S;
|
|
862
862
|
}
|
|
863
863
|
function $() {
|
|
864
864
|
i.value = !1, k.value = !1;
|
|
865
865
|
}
|
|
866
|
-
function
|
|
866
|
+
function z(S) {
|
|
867
867
|
const { left: Y, top: X } = m.value.getBoundingClientRect();
|
|
868
868
|
return {
|
|
869
869
|
x: S.clientX - Y,
|
|
@@ -871,43 +871,43 @@ const Gt = {
|
|
|
871
871
|
};
|
|
872
872
|
}
|
|
873
873
|
function J(S) {
|
|
874
|
-
const Y = m.value.clientWidth, X = Y *
|
|
874
|
+
const Y = m.value.clientWidth, X = Y * L.value;
|
|
875
875
|
n.value = Math.max(
|
|
876
876
|
Math.min(0, n.value + S),
|
|
877
877
|
-(X - Y)
|
|
878
878
|
);
|
|
879
879
|
}
|
|
880
880
|
function w(S) {
|
|
881
|
-
const Y = m.value.clientHeight, X = Y *
|
|
881
|
+
const Y = m.value.clientHeight, X = Y * L.value;
|
|
882
882
|
s.value = Math.max(
|
|
883
883
|
Math.min(0, s.value + S),
|
|
884
884
|
-(X - Y)
|
|
885
885
|
);
|
|
886
886
|
}
|
|
887
887
|
function x(S, Y, X) {
|
|
888
|
-
const K = m.value.clientWidth, ne = m.value.clientHeight, ue = K *
|
|
889
|
-
a.value = Math.min(Math.max(100, a.value + S),
|
|
890
|
-
const he = K *
|
|
888
|
+
const K = m.value.clientWidth, ne = m.value.clientHeight, ue = K * L.value, ve = ne * L.value;
|
|
889
|
+
a.value = Math.min(Math.max(100, a.value + S), A.value);
|
|
890
|
+
const he = K * L.value, fe = ne * L.value, ge = he - ue, Ie = fe - ve;
|
|
891
891
|
n.value -= Y / K * ge, s.value -= X / ne * Ie, J(0), w(0);
|
|
892
892
|
}
|
|
893
893
|
function W() {
|
|
894
894
|
l("update", {
|
|
895
|
-
scale:
|
|
895
|
+
scale: L.value,
|
|
896
896
|
x: n.value,
|
|
897
897
|
y: s.value,
|
|
898
898
|
resolve: (S, Y) => {
|
|
899
|
-
const X = m.value.clientWidth, K = m.value.clientHeight, ne = n.value / -
|
|
899
|
+
const X = m.value.clientWidth, K = m.value.clientHeight, ne = n.value / -L.value, ue = s.value / -L.value, ve = ne + X / L.value, he = ue + K / L.value, fe = S / X * (ve - ne) + ne, ge = Y / K * (he - ue) + ue;
|
|
900
900
|
return { x: fe, y: ge };
|
|
901
901
|
}
|
|
902
902
|
});
|
|
903
903
|
}
|
|
904
|
-
return (S, Y) => (
|
|
904
|
+
return (S, Y) => (p(), F("div", {
|
|
905
905
|
ref_key: "box",
|
|
906
906
|
ref: m,
|
|
907
907
|
class: "zoom-box-container"
|
|
908
908
|
}, [
|
|
909
909
|
o("div", {
|
|
910
|
-
style: re({ "transform-origin": "top left", transform:
|
|
910
|
+
style: re({ "transform-origin": "top left", transform: M.value }),
|
|
911
911
|
class: "zoom-box"
|
|
912
912
|
}, [
|
|
913
913
|
ie(S.$slots, "default", {}, void 0, !0)
|
|
@@ -1068,11 +1068,11 @@ const uo = { key: 0 }, co = { class: "interactive-viewer" }, vo = { class: "fill
|
|
|
1068
1068
|
"i18n",
|
|
1069
1069
|
l.i18n ? new Le(l.i18n.labels, l.i18n.language) : new Le()
|
|
1070
1070
|
);
|
|
1071
|
-
const n = r({ isReady: !1, isError: !1, progress: void 0 }), s = r(null), i = r(null), k = r(null),
|
|
1072
|
-
|
|
1073
|
-
if (l.selectedUnitId &&
|
|
1071
|
+
const n = r({ isReady: !1, isError: !1, progress: void 0 }), s = r(null), i = r(null), k = r(null), h = r(void 0), v = r(new $e()), m = r({ x: 0, y: 0, width: 0, height: 0 }), M = r(void 0), L = r(void 0), A = r(null), _ = V(() => A.value.isHoverEnabled), E = V(() => l.unitCallback ? l.unitCallback(l.selectedUnitId) : l.selectedUnitId), D = V(() => l.useSvg ? jt : Tt);
|
|
1072
|
+
ze(() => {
|
|
1073
|
+
if (l.selectedUnitId && h.value) {
|
|
1074
1074
|
const c = s.value[l.selectedUnitId];
|
|
1075
|
-
c && (
|
|
1075
|
+
c && (h.value.currentScene = c);
|
|
1076
1076
|
}
|
|
1077
1077
|
}), ce(async () => {
|
|
1078
1078
|
let c = null;
|
|
@@ -1092,9 +1092,9 @@ const uo = { key: 0 }, co = { class: "interactive-viewer" }, vo = { class: "fill
|
|
|
1092
1092
|
return { unitId: U.apartmentID, scene: $ };
|
|
1093
1093
|
}).reduce((U, $) => ({ ...U, [$.unitId]: $.scene }), {}) : l.buildingScenesByApartmentResolver ? await l.buildingScenesByApartmentResolver() : [];
|
|
1094
1094
|
const b = (U, $ = "unitId") => {
|
|
1095
|
-
let
|
|
1095
|
+
let z = f, J = [];
|
|
1096
1096
|
for (let w = 0; w < at; w++)
|
|
1097
|
-
J.push(
|
|
1097
|
+
J.push(z), z = ft(z);
|
|
1098
1098
|
return U.sort((w, x) => {
|
|
1099
1099
|
const W = J.findIndex(
|
|
1100
1100
|
(Y) => Y === s.value[w[$]]
|
|
@@ -1104,7 +1104,7 @@ const uo = { key: 0 }, co = { class: "interactive-viewer" }, vo = { class: "fill
|
|
|
1104
1104
|
return W < S ? -1 : W > S ? 1 : 0;
|
|
1105
1105
|
}), U;
|
|
1106
1106
|
}, B = (U) => {
|
|
1107
|
-
|
|
1107
|
+
h.value = new so(U);
|
|
1108
1108
|
};
|
|
1109
1109
|
a("initialized", {
|
|
1110
1110
|
scene: f,
|
|
@@ -1118,35 +1118,35 @@ const uo = { key: 0 }, co = { class: "interactive-viewer" }, vo = { class: "fill
|
|
|
1118
1118
|
function g(c) {
|
|
1119
1119
|
m.value = c;
|
|
1120
1120
|
}
|
|
1121
|
-
function
|
|
1122
|
-
|
|
1121
|
+
function C(c) {
|
|
1122
|
+
L.value = c.hoverApartment, M.value = c.closeHandler, a("hoverOverUnit", c.hoverApartment);
|
|
1123
1123
|
}
|
|
1124
1124
|
function R(c) {
|
|
1125
|
-
|
|
1125
|
+
L.value = null, M.value = c.closeHandler, a("hoverOutUnit", c.hoverApartment);
|
|
1126
1126
|
}
|
|
1127
1127
|
return (c, f) => {
|
|
1128
1128
|
const b = T("v-progress-linear");
|
|
1129
|
-
return
|
|
1129
|
+
return h.value ? (p(), F("div", uo, [
|
|
1130
1130
|
o("div", co, [
|
|
1131
1131
|
o("div", vo, [
|
|
1132
1132
|
y(nt, {
|
|
1133
1133
|
desktop: n.value.isReady && c.interactiveDesktop,
|
|
1134
1134
|
mobile: n.value.isReady && c.interactiveMobile
|
|
1135
1135
|
}, {
|
|
1136
|
-
default:
|
|
1136
|
+
default: I(() => [
|
|
1137
1137
|
y(no, {
|
|
1138
1138
|
"cdn-file-resolver": c.cdnFileResolver,
|
|
1139
|
-
"view-model":
|
|
1139
|
+
"view-model": h.value,
|
|
1140
1140
|
"cardinal-frames": k.value,
|
|
1141
1141
|
build: c.build,
|
|
1142
1142
|
onProgress: f[0] || (f[0] = (B) => n.value.progress = B),
|
|
1143
1143
|
onLoaded: f[1] || (f[1] = (B) => n.value.isReady = !0),
|
|
1144
1144
|
onError: f[2] || (f[2] = (B) => n.value.isError = !0)
|
|
1145
1145
|
}, null, 8, ["cdn-file-resolver", "view-model", "cardinal-frames", "build"]),
|
|
1146
|
-
n.value.isReady ? (
|
|
1147
|
-
(
|
|
1146
|
+
n.value.isReady ? (p(), F("div", mo, [
|
|
1147
|
+
(p(), N(dt(D.value), {
|
|
1148
1148
|
"cdn-file-resolver": c.cdnFileResolver,
|
|
1149
|
-
"view-model":
|
|
1149
|
+
"view-model": h.value,
|
|
1150
1150
|
"selected-unit-id": c.selectedUnitId,
|
|
1151
1151
|
"scene-data": i.value,
|
|
1152
1152
|
"color-callback": c.colorCallback,
|
|
@@ -1155,11 +1155,11 @@ const uo = { key: 0 }, co = { class: "interactive-viewer" }, vo = { class: "fill
|
|
|
1155
1155
|
"draw-observer": c.drawObserver,
|
|
1156
1156
|
onSelectUnit: f[3] || (f[3] = (B) => a("selectUnit", B)),
|
|
1157
1157
|
onGoToUnit: f[4] || (f[4] = (B) => a("goToUnit", B)),
|
|
1158
|
-
onHoverOver:
|
|
1158
|
+
onHoverOver: C,
|
|
1159
1159
|
onHoverOut: R,
|
|
1160
1160
|
onPos: g
|
|
1161
1161
|
}, {
|
|
1162
|
-
default:
|
|
1162
|
+
default: I((B) => [
|
|
1163
1163
|
ie(c.$slots, "default", vt(mt(B)), void 0, !0)
|
|
1164
1164
|
]),
|
|
1165
1165
|
_: 3
|
|
@@ -1168,36 +1168,36 @@ const uo = { key: 0 }, co = { class: "interactive-viewer" }, vo = { class: "fill
|
|
|
1168
1168
|
]),
|
|
1169
1169
|
_: 3
|
|
1170
1170
|
}, 8, ["desktop", "mobile"]),
|
|
1171
|
-
|
|
1171
|
+
L.value && c.showCards ? (p(), N(ot, {
|
|
1172
1172
|
key: 0,
|
|
1173
|
-
"is-hoverable":
|
|
1173
|
+
"is-hoverable": _.value,
|
|
1174
1174
|
pos: m.value,
|
|
1175
|
-
onOutside:
|
|
1175
|
+
onOutside: M.value
|
|
1176
1176
|
}, {
|
|
1177
|
-
default:
|
|
1177
|
+
default: I(() => [
|
|
1178
1178
|
ie(c.$slots, "default", {
|
|
1179
|
-
unit:
|
|
1180
|
-
canGoToUnit: c.canGoToUnitCallback(
|
|
1181
|
-
goToUnit: () => c.canGoToUnitCallback(
|
|
1179
|
+
unit: L.value,
|
|
1180
|
+
canGoToUnit: c.canGoToUnitCallback(L.value),
|
|
1181
|
+
goToUnit: () => c.canGoToUnitCallback(L.value) && a("goToUnit", L.value),
|
|
1182
1182
|
pos: m.value,
|
|
1183
|
-
isHoverable:
|
|
1184
|
-
close:
|
|
1183
|
+
isHoverable: _.value,
|
|
1184
|
+
close: M.value
|
|
1185
1185
|
}, void 0, !0)
|
|
1186
1186
|
]),
|
|
1187
1187
|
_: 3
|
|
1188
1188
|
}, 8, ["is-hoverable", "pos", "onOutside"])) : H("", !0),
|
|
1189
|
-
n.value.isReady ? (
|
|
1189
|
+
n.value.isReady ? (p(), F("div", po, [
|
|
1190
1190
|
y(Yt, {
|
|
1191
1191
|
"can-go-to-unit-callback": c.canGoToUnitCallback,
|
|
1192
1192
|
"selected-unit": E.value,
|
|
1193
1193
|
"prev-unit": c.prevUnit,
|
|
1194
1194
|
"next-unit": c.nextUnit,
|
|
1195
|
-
"view-model":
|
|
1195
|
+
"view-model": h.value,
|
|
1196
1196
|
onGoToUnit: f[5] || (f[5] = (B) => a("goToUnit", B)),
|
|
1197
1197
|
onPrevUnit: f[6] || (f[6] = (B) => a("navUnit", c.prevUnit)),
|
|
1198
1198
|
onNextUnit: f[7] || (f[7] = (B) => a("navUnit", c.nextUnit))
|
|
1199
1199
|
}, null, 8, ["can-go-to-unit-callback", "selected-unit", "prev-unit", "next-unit", "view-model"])
|
|
1200
|
-
])) : n.value.isError ? H("", !0) : (
|
|
1200
|
+
])) : n.value.isError ? H("", !0) : (p(), F("div", ho, [
|
|
1201
1201
|
y(b, {
|
|
1202
1202
|
indeterminate: !n.value.progress,
|
|
1203
1203
|
value: n.value.progress
|
|
@@ -1207,7 +1207,7 @@ const uo = { key: 0 }, co = { class: "interactive-viewer" }, vo = { class: "fill
|
|
|
1207
1207
|
]),
|
|
1208
1208
|
y(We, {
|
|
1209
1209
|
ref_key: "hoverProbe",
|
|
1210
|
-
ref:
|
|
1210
|
+
ref: A
|
|
1211
1211
|
}, null, 512)
|
|
1212
1212
|
])) : H("", !0);
|
|
1213
1213
|
};
|
|
@@ -1224,7 +1224,7 @@ const uo = { key: 0 }, co = { class: "interactive-viewer" }, vo = { class: "fill
|
|
|
1224
1224
|
}));
|
|
1225
1225
|
return (l, a) => {
|
|
1226
1226
|
const n = T("v-img");
|
|
1227
|
-
return
|
|
1227
|
+
return p(), N(n, {
|
|
1228
1228
|
src: oe(ko),
|
|
1229
1229
|
style: re(e.value)
|
|
1230
1230
|
}, null, 8, ["src", "style"]);
|
|
@@ -1252,7 +1252,7 @@ const uo = { key: 0 }, co = { class: "interactive-viewer" }, vo = { class: "fill
|
|
|
1252
1252
|
const i = V(() => {
|
|
1253
1253
|
const v = Math.floor(a.value / 2).toString().padStart(2, "0"), m = a.value % 2 === 0 ? "00" : "30";
|
|
1254
1254
|
return `${v}:${m}`;
|
|
1255
|
-
}), k = V(() => e.dateSelector.dates.map(s)),
|
|
1255
|
+
}), k = V(() => e.dateSelector.dates.map(s)), h = V({
|
|
1256
1256
|
get() {
|
|
1257
1257
|
return s(e.dateSelector.selectedDate);
|
|
1258
1258
|
},
|
|
@@ -1269,18 +1269,18 @@ const uo = { key: 0 }, co = { class: "interactive-viewer" }, vo = { class: "fill
|
|
|
1269
1269
|
(v) => {
|
|
1270
1270
|
a.value = Math.floor(v);
|
|
1271
1271
|
}
|
|
1272
|
-
),
|
|
1272
|
+
), ze(() => {
|
|
1273
1273
|
n.value = s(e.dateSelector.selectedDate);
|
|
1274
1274
|
}), (v, m) => {
|
|
1275
|
-
const
|
|
1276
|
-
return
|
|
1275
|
+
const M = T("v-icon"), L = T("v-select"), A = T("v-progress-linear"), _ = T("v-slider");
|
|
1276
|
+
return p(), F("div", bo, [
|
|
1277
1277
|
o("div", yo, [
|
|
1278
|
-
y(
|
|
1278
|
+
y(M, {
|
|
1279
1279
|
color: "black",
|
|
1280
1280
|
class: "mr-2",
|
|
1281
1281
|
icon: "mdi-calendar-blank-outline"
|
|
1282
1282
|
}),
|
|
1283
|
-
v.dateSelector.hasMultipleDates ? (
|
|
1283
|
+
v.dateSelector.hasMultipleDates ? (p(), N(L, {
|
|
1284
1284
|
key: 0,
|
|
1285
1285
|
modelValue: n.value,
|
|
1286
1286
|
"onUpdate:modelValue": m[0] || (m[0] = (E) => n.value = E),
|
|
@@ -1289,27 +1289,27 @@ const uo = { key: 0 }, co = { class: "interactive-viewer" }, vo = { class: "fill
|
|
|
1289
1289
|
variant: "underlined",
|
|
1290
1290
|
"hide-details": "",
|
|
1291
1291
|
class: "day-selector"
|
|
1292
|
-
}, null, 8, ["modelValue", "items"])) : (
|
|
1292
|
+
}, null, 8, ["modelValue", "items"])) : (p(), F("span", _o, q(h.value), 1))
|
|
1293
1293
|
]),
|
|
1294
1294
|
o("div", Co, [
|
|
1295
|
-
o("span", Ao,
|
|
1296
|
-
y(
|
|
1295
|
+
o("span", Ao, q(i.value), 1),
|
|
1296
|
+
y(M, {
|
|
1297
1297
|
medium: "",
|
|
1298
1298
|
class: "ml-2 mr-2 icon"
|
|
1299
1299
|
}, {
|
|
1300
|
-
default:
|
|
1300
|
+
default: I(() => [
|
|
1301
1301
|
se("mdi-white-balance-sunny")
|
|
1302
1302
|
]),
|
|
1303
1303
|
_: 1
|
|
1304
1304
|
}),
|
|
1305
|
-
v.isLoading ? (
|
|
1305
|
+
v.isLoading ? (p(), N(A, {
|
|
1306
1306
|
key: 0,
|
|
1307
1307
|
indeterminate: "",
|
|
1308
1308
|
rounded: "",
|
|
1309
1309
|
height: "6",
|
|
1310
1310
|
color: "grey lighten-1",
|
|
1311
1311
|
class: "mr-2"
|
|
1312
|
-
})) : (
|
|
1312
|
+
})) : (p(), N(_, {
|
|
1313
1313
|
key: 1,
|
|
1314
1314
|
modelValue: a.value,
|
|
1315
1315
|
"onUpdate:modelValue": m[1] || (m[1] = (E) => a.value = E),
|
|
@@ -1339,13 +1339,13 @@ const uo = { key: 0 }, co = { class: "interactive-viewer" }, vo = { class: "fill
|
|
|
1339
1339
|
const e = u, l = t, a = r("init"), n = r(new Ke(0)), s = r();
|
|
1340
1340
|
Z(
|
|
1341
1341
|
() => e.imageUrls,
|
|
1342
|
-
(
|
|
1343
|
-
l("reset"), k(
|
|
1342
|
+
(h) => {
|
|
1343
|
+
l("reset"), k(h);
|
|
1344
1344
|
}
|
|
1345
1345
|
), ce(() => {
|
|
1346
|
-
k(e.imageUrls), new ResizeObserver((
|
|
1346
|
+
k(e.imageUrls), new ResizeObserver((h) => {
|
|
1347
1347
|
window.requestAnimationFrame(() => {
|
|
1348
|
-
const v =
|
|
1348
|
+
const v = h[0].contentRect.width, m = h[0].contentRect.height;
|
|
1349
1349
|
l("resize", { width: v, height: m });
|
|
1350
1350
|
});
|
|
1351
1351
|
}).observe(s.value);
|
|
@@ -1353,14 +1353,14 @@ const uo = { key: 0 }, co = { class: "interactive-viewer" }, vo = { class: "fill
|
|
|
1353
1353
|
function i() {
|
|
1354
1354
|
a.value = "preloaded", l("preloaded");
|
|
1355
1355
|
}
|
|
1356
|
-
function k(
|
|
1357
|
-
a.value = "init", s.value.src =
|
|
1356
|
+
function k(h) {
|
|
1357
|
+
a.value = "init", s.value.src = h[0], n.value = new Ke(h.length).onLoadFinished(
|
|
1358
1358
|
() => {
|
|
1359
1359
|
a.value = "loaded", l("ready");
|
|
1360
1360
|
}
|
|
1361
1361
|
);
|
|
1362
1362
|
}
|
|
1363
|
-
return (
|
|
1363
|
+
return (h, v) => (p(), F("div", null, [
|
|
1364
1364
|
o("img", {
|
|
1365
1365
|
ref_key: "baseImage",
|
|
1366
1366
|
ref: s,
|
|
@@ -1368,12 +1368,12 @@ const uo = { key: 0 }, co = { class: "interactive-viewer" }, vo = { class: "fill
|
|
|
1368
1368
|
style: { opacity: 1, borderRadius: 50 },
|
|
1369
1369
|
onLoad: i
|
|
1370
1370
|
}, null, 544),
|
|
1371
|
-
a.value === "preloaded" || a.value === "loaded" ? de((
|
|
1372
|
-
(
|
|
1373
|
-
key:
|
|
1374
|
-
class: ye({ "image-instance": !0, active:
|
|
1371
|
+
a.value === "preloaded" || a.value === "loaded" ? de((p(), F("div", Io, [
|
|
1372
|
+
(p(!0), F(Ce, null, _e(h.imageUrls, (m, M) => (p(), F("img", {
|
|
1373
|
+
key: M,
|
|
1374
|
+
class: ye({ "image-instance": !0, active: M === h.activeIndex }),
|
|
1375
1375
|
src: m,
|
|
1376
|
-
onLoad: v[0] || (v[0] = (
|
|
1376
|
+
onLoad: v[0] || (v[0] = (L) => n.value.partLoaded())
|
|
1377
1377
|
}, null, 42, Mo))), 128)),
|
|
1378
1378
|
se(" Here ")
|
|
1379
1379
|
], 512)), [
|
|
@@ -1549,13 +1549,13 @@ const Bo = {
|
|
|
1549
1549
|
);
|
|
1550
1550
|
const a = r({ preloaded: !1, ready: !1 }), n = r({ width: 0, height: 0 }), s = r({ x: 0, y: 0, width: 0, height: 0 }), i = r(), k = r(
|
|
1551
1551
|
(/* @__PURE__ */ new Date()).getHours() * 2 + ((/* @__PURE__ */ new Date()).getMinutes() < 30 ? 0 : 1)
|
|
1552
|
-
),
|
|
1552
|
+
), h = r(!1), v = r(new $e()), m = r(), M = r("0 0 0 0"), L = r({}), A = r(), _ = r(Re.empty()), E = r(Te.empty()), D = r(), g = V(() => {
|
|
1553
1553
|
var w;
|
|
1554
1554
|
return (w = D.value) == null ? void 0 : w.isHoverEnabled;
|
|
1555
|
-
}),
|
|
1555
|
+
}), C = V(() => f(i.value));
|
|
1556
1556
|
Z(i, (w, x) => {
|
|
1557
1557
|
w ? l("hoverOverBuilding", f(w)) : l("hoverOutBuilding", f(x));
|
|
1558
|
-
}),
|
|
1558
|
+
}), ze(() => {
|
|
1559
1559
|
if (e.buildingChooserTimeOfDay) {
|
|
1560
1560
|
const [w, x, W] = /^(\d\d):(\d\d)$/.exec(
|
|
1561
1561
|
e.buildingChooserTimeOfDay
|
|
@@ -1567,7 +1567,7 @@ const Bo = {
|
|
|
1567
1567
|
e.cdnFileResolver
|
|
1568
1568
|
).loadBuildingChooser();
|
|
1569
1569
|
if (x) {
|
|
1570
|
-
E.value = new Te(x.mapImage),
|
|
1570
|
+
E.value = new Te(x.mapImage), _.value = new Re(x.buildingIds), L.value = new Ze(x.backgrounds), A.value = {
|
|
1571
1571
|
buildingOverlays: x.buildingOverlays,
|
|
1572
1572
|
sceneLongitude: x.viewLongitude
|
|
1573
1573
|
};
|
|
@@ -1575,14 +1575,14 @@ const Bo = {
|
|
|
1575
1575
|
for (let { id: S, url: Y } of x.buildingOverlays)
|
|
1576
1576
|
v.value.loadJson(Y.replace(".png", ".svg")).then((X) => {
|
|
1577
1577
|
const ne = new DOMParser().parseFromString(X, "image/svg+xml").getElementsByTagName("svg")[0];
|
|
1578
|
-
|
|
1578
|
+
M.value = ne.getAttribute("viewBox"), W.push({
|
|
1579
1579
|
id: S,
|
|
1580
1580
|
svg: ne.innerHTML
|
|
1581
1581
|
});
|
|
1582
1582
|
});
|
|
1583
1583
|
m.value = W;
|
|
1584
1584
|
} else
|
|
1585
|
-
|
|
1585
|
+
h.value = !0;
|
|
1586
1586
|
});
|
|
1587
1587
|
function R({ width: w, height: x }) {
|
|
1588
1588
|
n.value.width = w, n.value.height = x;
|
|
@@ -1641,7 +1641,7 @@ const Bo = {
|
|
|
1641
1641
|
height: n.value.height
|
|
1642
1642
|
}, i.value = void 0, l("hoverOutBuilding", f(x)));
|
|
1643
1643
|
}
|
|
1644
|
-
function
|
|
1644
|
+
function z(w, x) {
|
|
1645
1645
|
g.value && (s.value = {
|
|
1646
1646
|
x: w.layerX,
|
|
1647
1647
|
y: w.layerY,
|
|
@@ -1650,18 +1650,18 @@ const Bo = {
|
|
|
1650
1650
|
});
|
|
1651
1651
|
}
|
|
1652
1652
|
function J(w) {
|
|
1653
|
-
i.value = w, g.value &&
|
|
1653
|
+
i.value = w, g.value && C.value && e.canGoToBuildingCallback(C.value) && l("goToBuilding", C.value);
|
|
1654
1654
|
}
|
|
1655
1655
|
return (w, x) => {
|
|
1656
1656
|
const W = T("v-icon");
|
|
1657
|
-
return
|
|
1657
|
+
return h.value ? (p(), F("div", Bo, [
|
|
1658
1658
|
y(W, { "x-large": "" }, {
|
|
1659
|
-
default:
|
|
1659
|
+
default: I(() => [
|
|
1660
1660
|
se("mdi-alert-circle-outline")
|
|
1661
1661
|
]),
|
|
1662
1662
|
_: 1
|
|
1663
1663
|
})
|
|
1664
|
-
])) :
|
|
1664
|
+
])) : A.value ? (p(), F("div", {
|
|
1665
1665
|
key: 1,
|
|
1666
1666
|
style: re(`height: ${n.value.height}px; position: relative`),
|
|
1667
1667
|
class: "image-container"
|
|
@@ -1670,20 +1670,20 @@ const Bo = {
|
|
|
1670
1670
|
desktop: w.interactiveDesktop,
|
|
1671
1671
|
mobile: w.interactiveMobile
|
|
1672
1672
|
}, {
|
|
1673
|
-
default:
|
|
1673
|
+
default: I(() => [
|
|
1674
1674
|
o("div", Vo, [
|
|
1675
1675
|
y(wt, {
|
|
1676
|
-
"image-urls":
|
|
1676
|
+
"image-urls": L.value.imageUrls,
|
|
1677
1677
|
"active-index": k.value,
|
|
1678
1678
|
onResize: R,
|
|
1679
1679
|
onPreloaded: x[0] || (x[0] = (S) => a.value.preloaded = !0),
|
|
1680
1680
|
onReady: x[1] || (x[1] = (S) => a.value.ready = !0),
|
|
1681
1681
|
onReset: c
|
|
1682
1682
|
}, null, 8, ["image-urls", "active-index"]),
|
|
1683
|
-
m.value ? de((
|
|
1683
|
+
m.value ? de((p(), F("div", Uo, [
|
|
1684
1684
|
o("div", Do, [
|
|
1685
|
-
(
|
|
1686
|
-
(
|
|
1685
|
+
(p(), F("svg", { viewBox: M.value }, [
|
|
1686
|
+
(p(!0), F(Ce, null, _e(m.value, ({ id: S, svg: Y }, X) => (p(), F("g", {
|
|
1687
1687
|
key: X,
|
|
1688
1688
|
innerHTML: Y,
|
|
1689
1689
|
"data-building-id": S,
|
|
@@ -1691,7 +1691,7 @@ const Bo = {
|
|
|
1691
1691
|
style: re(B(S)),
|
|
1692
1692
|
onMouseover: (K) => U(K, S),
|
|
1693
1693
|
onMouseout: (K) => $(K, S),
|
|
1694
|
-
onMousemove: (K) =>
|
|
1694
|
+
onMousemove: (K) => z(K),
|
|
1695
1695
|
onClick: (K) => J(S)
|
|
1696
1696
|
}, null, 46, To))), 128))
|
|
1697
1697
|
], 8, Ro))
|
|
@@ -1710,31 +1710,31 @@ const Bo = {
|
|
|
1710
1710
|
_: 1
|
|
1711
1711
|
}, 8, ["desktop", "mobile"]),
|
|
1712
1712
|
de(o("div", null, [
|
|
1713
|
-
|
|
1713
|
+
A.value.sceneLongitude ? (p(), N(lt, {
|
|
1714
1714
|
key: 0,
|
|
1715
1715
|
class: "north-indicator",
|
|
1716
|
-
longitude:
|
|
1716
|
+
longitude: A.value.sceneLongitude
|
|
1717
1717
|
}, null, 8, ["longitude"])) : H("", !0),
|
|
1718
1718
|
y(gt, {
|
|
1719
1719
|
modelValue: k.value,
|
|
1720
1720
|
"onUpdate:modelValue": x[2] || (x[2] = (S) => k.value = S),
|
|
1721
|
-
"date-selector":
|
|
1721
|
+
"date-selector": L.value,
|
|
1722
1722
|
"is-loading": !a.value.ready
|
|
1723
1723
|
}, null, 8, ["modelValue", "date-selector", "is-loading"])
|
|
1724
1724
|
], 512), [
|
|
1725
1725
|
[me, a.value.preloaded]
|
|
1726
1726
|
]),
|
|
1727
|
-
w.showCards &&
|
|
1727
|
+
w.showCards && C.value ? (p(), N(ot, {
|
|
1728
1728
|
key: 0,
|
|
1729
1729
|
"is-hoverable": g.value,
|
|
1730
1730
|
pos: s.value,
|
|
1731
1731
|
onOutside: x[3] || (x[3] = () => i.value = void 0)
|
|
1732
1732
|
}, {
|
|
1733
|
-
default:
|
|
1733
|
+
default: I(() => [
|
|
1734
1734
|
ie(w.$slots, "default", {
|
|
1735
|
-
building:
|
|
1736
|
-
canGoToBuilding: w.canGoToBuildingCallback(
|
|
1737
|
-
goToBuilding: () => w.canGoToBuildingCallback(
|
|
1735
|
+
building: C.value,
|
|
1736
|
+
canGoToBuilding: w.canGoToBuildingCallback(C.value),
|
|
1737
|
+
goToBuilding: () => w.canGoToBuildingCallback(C.value) && l("goToBuilding", C.value),
|
|
1738
1738
|
pos: s.value,
|
|
1739
1739
|
isHoverable: g.value,
|
|
1740
1740
|
close: () => i.value = void 0
|
|
@@ -1760,22 +1760,22 @@ const Bo = {
|
|
|
1760
1760
|
const t = u, e = r(!1), l = r(void 0), a = r(new $e()), n = r(void 0), s = r(void 0), i = r([]), k = r();
|
|
1761
1761
|
Z(
|
|
1762
1762
|
() => t.color,
|
|
1763
|
-
(
|
|
1764
|
-
(
|
|
1763
|
+
(M, L) => {
|
|
1764
|
+
(M.r !== L.r || M.g !== L.g || M.b !== L.b || M.a !== L.a) && v();
|
|
1765
1765
|
}
|
|
1766
1766
|
), ce(async () => {
|
|
1767
|
-
l.value = await a.value.loadImage(t.imageUrl),
|
|
1767
|
+
l.value = await a.value.loadImage(t.imageUrl), h();
|
|
1768
1768
|
});
|
|
1769
|
-
function
|
|
1769
|
+
function h() {
|
|
1770
1770
|
if (!l.value || !k.value)
|
|
1771
1771
|
return;
|
|
1772
|
-
const { width:
|
|
1773
|
-
if (!(
|
|
1772
|
+
const { width: M, height: L } = t.dimensions;
|
|
1773
|
+
if (!(M === 0 || L === 0)) {
|
|
1774
1774
|
n.value = k.value.getContext("2d", {
|
|
1775
1775
|
willReadFrequently: !0
|
|
1776
|
-
}), n.value.drawImage(l.value, 0, 0,
|
|
1777
|
-
for (let
|
|
1778
|
-
s.value.data[
|
|
1776
|
+
}), n.value.drawImage(l.value, 0, 0, M, L), s.value = n.value.getImageData(0, 0, M, L);
|
|
1777
|
+
for (let A = 3; A < s.value.data.length; A += 4)
|
|
1778
|
+
s.value.data[A] !== 0 && i.value.push(A);
|
|
1779
1779
|
v(), e.value = !0;
|
|
1780
1780
|
}
|
|
1781
1781
|
}
|
|
@@ -1784,14 +1784,14 @@ const Bo = {
|
|
|
1784
1784
|
}
|
|
1785
1785
|
function m() {
|
|
1786
1786
|
if (t.color)
|
|
1787
|
-
for (let
|
|
1788
|
-
s.value.data[i.value[
|
|
1787
|
+
for (let M = 0; M < i.value.length; M++)
|
|
1788
|
+
s.value.data[i.value[M] - 3] = t.color.r, s.value.data[i.value[M] - 2] = t.color.g, s.value.data[i.value[M] - 1] = t.color.b, s.value.data[i.value[M]] = t.color.a;
|
|
1789
1789
|
}
|
|
1790
|
-
return (
|
|
1790
|
+
return (M, L) => (p(), F("canvas", be({
|
|
1791
1791
|
ref_key: "canvas",
|
|
1792
1792
|
ref: k,
|
|
1793
1793
|
class: "overlay"
|
|
1794
|
-
},
|
|
1794
|
+
}, M.dimensions), null, 16));
|
|
1795
1795
|
}
|
|
1796
1796
|
}), Po = /* @__PURE__ */ te(jo, [["__scopeId", "data-v-b6fc0f96"]]), No = {
|
|
1797
1797
|
key: 0,
|
|
@@ -1818,20 +1818,20 @@ const Bo = {
|
|
|
1818
1818
|
"i18n",
|
|
1819
1819
|
e.i18n ? new Le(e.i18n.labels, e.i18n.language) : new Le()
|
|
1820
1820
|
);
|
|
1821
|
-
const a = r({}), n = r({ preloaded: !1, ready: !1 }), s = r({ width: 0, height: 0 }), i = r({ x: 0, y: 0, width: 0, height: 0 }), k = r(void 0),
|
|
1821
|
+
const a = r({}), n = r({ preloaded: !1, ready: !1 }), s = r({ width: 0, height: 0 }), i = r({ x: 0, y: 0, width: 0, height: 0 }), k = r(void 0), h = r(Re.empty()), v = r(Te.empty()), m = r(void 0), M = r(
|
|
1822
1822
|
(/* @__PURE__ */ new Date()).getHours() * 2 + ((/* @__PURE__ */ new Date()).getMinutes() < 30 ? 0 : 1)
|
|
1823
|
-
),
|
|
1823
|
+
), L = r((w, x) => ({ x: w, y: x })), A = r(!1), _ = r(), E = r(), D = r(), g = V(() => {
|
|
1824
1824
|
var w;
|
|
1825
|
-
return (w =
|
|
1826
|
-
}),
|
|
1825
|
+
return (w = _.value) == null ? void 0 : w.isHoverEnabled;
|
|
1826
|
+
}), C = V(
|
|
1827
1827
|
() => f(m.value)
|
|
1828
1828
|
);
|
|
1829
|
-
|
|
1829
|
+
ze(() => {
|
|
1830
1830
|
if (e.buildingChooserTimeOfDay) {
|
|
1831
1831
|
const [w, x, W] = /^(\d\d):(\d\d)$/.exec(
|
|
1832
1832
|
e.buildingChooserTimeOfDay
|
|
1833
1833
|
), S = parseInt(W);
|
|
1834
|
-
|
|
1834
|
+
M.value = parseInt(x) * 2 + (S < 15 ? 0 : S > 45 ? 2 : 1);
|
|
1835
1835
|
}
|
|
1836
1836
|
}), Z(m, (w, x) => {
|
|
1837
1837
|
w ? l("hoverOverBuilding", f(w)) : l("hoverOutBuilding", f(x));
|
|
@@ -1839,10 +1839,10 @@ const Bo = {
|
|
|
1839
1839
|
const x = await new kt(
|
|
1840
1840
|
e.cdnFileResolver
|
|
1841
1841
|
).loadBuildingChooser();
|
|
1842
|
-
x ? (v.value = new Te(x.mapImage),
|
|
1842
|
+
x ? (v.value = new Te(x.mapImage), h.value = new Re(x.buildingIds), a.value = new Ze(x.backgrounds), k.value = {
|
|
1843
1843
|
buildingOverlays: x.buildingOverlays,
|
|
1844
1844
|
sceneLongitude: x.viewLongitude
|
|
1845
|
-
}, B()) :
|
|
1845
|
+
}, B()) : A.value = !0;
|
|
1846
1846
|
});
|
|
1847
1847
|
function R({ width: w, height: x }) {
|
|
1848
1848
|
s.value.width = w, s.value.height = x, Ft(B);
|
|
@@ -1854,8 +1854,8 @@ const Bo = {
|
|
|
1854
1854
|
return e.buildingCallback ? e.buildingCallback(w) : w;
|
|
1855
1855
|
}
|
|
1856
1856
|
function b(w) {
|
|
1857
|
-
const { x, y: W } =
|
|
1858
|
-
return
|
|
1857
|
+
const { x, y: W } = L.value(w.layerX, w.layerY);
|
|
1858
|
+
return h.value.getBuildingId(v.value, x, W);
|
|
1859
1859
|
}
|
|
1860
1860
|
function B() {
|
|
1861
1861
|
if (E.value && (v.value.update(E.value), D.value))
|
|
@@ -1871,27 +1871,27 @@ const Bo = {
|
|
|
1871
1871
|
}));
|
|
1872
1872
|
}
|
|
1873
1873
|
function $(w) {
|
|
1874
|
-
m.value = b(w), g.value &&
|
|
1874
|
+
m.value = b(w), g.value && C.value && l("goToBuilding", C.value);
|
|
1875
1875
|
}
|
|
1876
|
-
function
|
|
1876
|
+
function z(w) {
|
|
1877
1877
|
return e.colorCallback(
|
|
1878
1878
|
f(w),
|
|
1879
1879
|
w === m.value ? "hover" : "idle"
|
|
1880
1880
|
);
|
|
1881
1881
|
}
|
|
1882
1882
|
function J({ resolve: w }) {
|
|
1883
|
-
|
|
1883
|
+
L.value = w;
|
|
1884
1884
|
}
|
|
1885
1885
|
return (w, x) => {
|
|
1886
1886
|
const W = T("v-icon");
|
|
1887
|
-
return
|
|
1887
|
+
return A.value ? (p(), F("div", No, [
|
|
1888
1888
|
y(W, { "x-large": "" }, {
|
|
1889
|
-
default:
|
|
1889
|
+
default: I(() => [
|
|
1890
1890
|
se("mdi-alert-circle-outline")
|
|
1891
1891
|
]),
|
|
1892
1892
|
_: 1
|
|
1893
1893
|
})
|
|
1894
|
-
])) : k.value ? (
|
|
1894
|
+
])) : k.value ? (p(), F("div", {
|
|
1895
1895
|
key: 1,
|
|
1896
1896
|
style: re(`cursor: ${m.value ? "pointer" : "auto"};height: ${s.value.height}px; position: relative`),
|
|
1897
1897
|
class: "image-container"
|
|
@@ -1901,25 +1901,25 @@ const Bo = {
|
|
|
1901
1901
|
mobile: w.interactiveMobile,
|
|
1902
1902
|
onUpdate: J
|
|
1903
1903
|
}, {
|
|
1904
|
-
default:
|
|
1904
|
+
default: I(() => [
|
|
1905
1905
|
o("div", Yo, [
|
|
1906
1906
|
y(wt, {
|
|
1907
1907
|
"image-urls": a.value.imageUrls,
|
|
1908
|
-
"active-index":
|
|
1908
|
+
"active-index": M.value,
|
|
1909
1909
|
onResize: R,
|
|
1910
1910
|
onPreloaded: x[0] || (x[0] = (S) => n.value.preloaded = !0),
|
|
1911
1911
|
onReady: x[1] || (x[1] = (S) => n.value.ready = !0),
|
|
1912
1912
|
onReset: c
|
|
1913
1913
|
}, null, 8, ["image-urls", "active-index"]),
|
|
1914
1914
|
de(o("div", null, [
|
|
1915
|
-
(
|
|
1915
|
+
(p(!0), F(Ce, null, _e(k.value.buildingOverlays, (S) => (p(), N(Po, {
|
|
1916
1916
|
ref_for: !0,
|
|
1917
1917
|
ref_key: "overlays",
|
|
1918
1918
|
ref: D,
|
|
1919
1919
|
key: S.id,
|
|
1920
1920
|
"image-url": S.url,
|
|
1921
1921
|
dimensions: s.value,
|
|
1922
|
-
color:
|
|
1922
|
+
color: z(S.id)
|
|
1923
1923
|
}, null, 8, ["image-url", "dimensions", "color"]))), 128))
|
|
1924
1924
|
], 512), [
|
|
1925
1925
|
[me, n.value.preloaded]
|
|
@@ -1942,31 +1942,31 @@ const Bo = {
|
|
|
1942
1942
|
_: 1
|
|
1943
1943
|
}, 8, ["desktop", "mobile"]),
|
|
1944
1944
|
de(o("div", null, [
|
|
1945
|
-
k.value.sceneLongitude ? (
|
|
1945
|
+
k.value.sceneLongitude ? (p(), N(lt, {
|
|
1946
1946
|
key: 0,
|
|
1947
1947
|
class: "north-indicator",
|
|
1948
1948
|
longitude: k.value.sceneLongitude
|
|
1949
1949
|
}, null, 8, ["longitude"])) : H("", !0),
|
|
1950
1950
|
y(gt, {
|
|
1951
|
-
modelValue:
|
|
1952
|
-
"onUpdate:modelValue": x[2] || (x[2] = (S) =>
|
|
1951
|
+
modelValue: M.value,
|
|
1952
|
+
"onUpdate:modelValue": x[2] || (x[2] = (S) => M.value = S),
|
|
1953
1953
|
"date-selector": a.value,
|
|
1954
1954
|
"is-loading": !n.value.ready
|
|
1955
1955
|
}, null, 8, ["modelValue", "date-selector", "is-loading"])
|
|
1956
1956
|
], 512), [
|
|
1957
1957
|
[me, n.value.preloaded]
|
|
1958
1958
|
]),
|
|
1959
|
-
w.showCards &&
|
|
1959
|
+
w.showCards && C.value ? (p(), N(ot, {
|
|
1960
1960
|
key: 0,
|
|
1961
1961
|
"is-hoverable": g.value,
|
|
1962
1962
|
pos: i.value,
|
|
1963
1963
|
onOutside: x[3] || (x[3] = () => m.value = void 0)
|
|
1964
1964
|
}, {
|
|
1965
|
-
default:
|
|
1965
|
+
default: I(() => [
|
|
1966
1966
|
ie(w.$slots, "default", {
|
|
1967
|
-
building:
|
|
1968
|
-
canGoToBuilding: w.canGoToBuildingCallback(
|
|
1969
|
-
goToBuilding: () => w.canGoToBuildingCallback(
|
|
1967
|
+
building: C.value,
|
|
1968
|
+
canGoToBuilding: w.canGoToBuildingCallback(C.value),
|
|
1969
|
+
goToBuilding: () => w.canGoToBuildingCallback(C.value) && l("goToBuilding", C.value),
|
|
1970
1970
|
pos: i.value,
|
|
1971
1971
|
isHoverable: g.value,
|
|
1972
1972
|
close: () => m.value = void 0
|
|
@@ -1976,12 +1976,12 @@ const Bo = {
|
|
|
1976
1976
|
}, 8, ["is-hoverable", "pos"])) : H("", !0),
|
|
1977
1977
|
y(We, {
|
|
1978
1978
|
ref_key: "hoverProbe",
|
|
1979
|
-
ref:
|
|
1979
|
+
ref: _
|
|
1980
1980
|
}, null, 512)
|
|
1981
1981
|
], 4)) : H("", !0);
|
|
1982
1982
|
};
|
|
1983
1983
|
}
|
|
1984
|
-
}), Qo = /* @__PURE__ */ te(Go, [["__scopeId", "data-v-96bbdc16"]]),
|
|
1984
|
+
}), Qo = /* @__PURE__ */ te(Go, [["__scopeId", "data-v-96bbdc16"]]), qo = /* @__PURE__ */ Q({
|
|
1985
1985
|
__name: "VBuildingChooser",
|
|
1986
1986
|
props: {
|
|
1987
1987
|
showCards: { type: Boolean, default: !0 },
|
|
@@ -2001,7 +2001,7 @@ const Bo = {
|
|
|
2001
2001
|
const e = u, l = t, a = V(
|
|
2002
2002
|
() => e.useSvg ? Ho : Qo
|
|
2003
2003
|
);
|
|
2004
|
-
return (n, s) => (
|
|
2004
|
+
return (n, s) => (p(), N(dt(a.value), {
|
|
2005
2005
|
"show-cards": n.showCards,
|
|
2006
2006
|
"color-callback": n.colorCallback,
|
|
2007
2007
|
"building-callback": n.buildingCallback,
|
|
@@ -2018,7 +2018,7 @@ const Bo = {
|
|
|
2018
2018
|
}, xt({ _: 2 }, [
|
|
2019
2019
|
_e(Object.keys(n.$slots), (i) => ({
|
|
2020
2020
|
name: i,
|
|
2021
|
-
fn:
|
|
2021
|
+
fn: I((k) => [
|
|
2022
2022
|
ie(n.$slots, i, vt(mt(k)))
|
|
2023
2023
|
])
|
|
2024
2024
|
}))
|
|
@@ -2029,11 +2029,11 @@ var He = {};
|
|
|
2029
2029
|
Object.defineProperty(He, "__esModule", {
|
|
2030
2030
|
value: !0
|
|
2031
2031
|
});
|
|
2032
|
-
var
|
|
2032
|
+
var zo = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(u) {
|
|
2033
2033
|
return typeof u;
|
|
2034
2034
|
} : function(u) {
|
|
2035
2035
|
return u && typeof Symbol == "function" && u.constructor === Symbol && u !== Symbol.prototype ? "symbol" : typeof u;
|
|
2036
|
-
}, Zo = typeof window < "u" && typeof window.document < "u", Xo = typeof process < "u" && process.versions != null && process.versions.node != null, Ko = (typeof self > "u" ? "undefined" :
|
|
2036
|
+
}, Zo = typeof window < "u" && typeof window.document < "u", Xo = typeof process < "u" && process.versions != null && process.versions.node != null, Ko = (typeof self > "u" ? "undefined" : zo(self)) === "object" && self.constructor && self.constructor.name === "DedicatedWorkerGlobalScope", Jo = typeof window < "u" && window.name === "nodejs" || typeof navigator < "u" && (navigator.userAgent.includes("Node.js") || navigator.userAgent.includes("jsdom")), en = typeof Deno < "u" && typeof Deno.version < "u" && typeof Deno.version.deno < "u", tn = He.isBrowser = Zo;
|
|
2037
2037
|
He.isWebWorker = Ko;
|
|
2038
2038
|
He.isNode = Xo;
|
|
2039
2039
|
He.isJsDom = Jo;
|
|
@@ -2082,12 +2082,12 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
2082
2082
|
Z(
|
|
2083
2083
|
() => l.rootUrl,
|
|
2084
2084
|
async (v) => {
|
|
2085
|
-
n.value &&
|
|
2085
|
+
n.value && await n.value.loadInterior(v, s.value, !1);
|
|
2086
2086
|
}
|
|
2087
2087
|
), Z(
|
|
2088
2088
|
() => l.fileLoader,
|
|
2089
2089
|
async () => {
|
|
2090
|
-
n.value &&
|
|
2090
|
+
n.value && await n.value.loadInterior(l.rootUrl, void 0, !1);
|
|
2091
2091
|
},
|
|
2092
2092
|
{ deep: !0 }
|
|
2093
2093
|
), Z(
|
|
@@ -2100,49 +2100,44 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
2100
2100
|
const m = n.value.getCurrentCamera();
|
|
2101
2101
|
m && (s.value = m.id);
|
|
2102
2102
|
}), ce(async () => {
|
|
2103
|
-
window.addEventListener("resize",
|
|
2104
|
-
const
|
|
2103
|
+
window.addEventListener("resize", h);
|
|
2104
|
+
const L = {
|
|
2105
2105
|
initialized: () => {
|
|
2106
2106
|
n.value = e.Main.getPlayerAPI();
|
|
2107
|
-
const
|
|
2108
|
-
|
|
2107
|
+
const _ = n.value.getCurrentCamera();
|
|
2108
|
+
_ && (s.value = _.id), a("newCameraCallback", s.value);
|
|
2109
2109
|
},
|
|
2110
|
-
newCamera: (
|
|
2111
|
-
a("newCameraCallback",
|
|
2110
|
+
newCamera: (_) => {
|
|
2111
|
+
a("newCameraCallback", _.id), a("newFloorCallback", _.floorLevel), n.value && n.value.resetMarkerBehaviour(0), s.value = _.id;
|
|
2112
2112
|
},
|
|
2113
|
-
newFOV: (
|
|
2114
|
-
a("newFovCallback",
|
|
2113
|
+
newFOV: (_) => {
|
|
2114
|
+
a("newFovCallback", _), k.value = _;
|
|
2115
2115
|
},
|
|
2116
|
-
newRotation: (
|
|
2117
|
-
const E =
|
|
2116
|
+
newRotation: (_) => {
|
|
2117
|
+
const E = _ + 0;
|
|
2118
2118
|
a("newRotationCallback", E), i.value = E;
|
|
2119
2119
|
}
|
|
2120
2120
|
};
|
|
2121
2121
|
if (!tn)
|
|
2122
2122
|
return;
|
|
2123
|
-
const
|
|
2123
|
+
const A = await new e.Main(
|
|
2124
2124
|
l.rootUrl,
|
|
2125
2125
|
"qpc",
|
|
2126
|
-
|
|
2126
|
+
L,
|
|
2127
2127
|
void 0,
|
|
2128
2128
|
l.currentCameraId,
|
|
2129
2129
|
l.fileLoader
|
|
2130
2130
|
);
|
|
2131
|
-
|
|
2131
|
+
A && (A.handleWindowResize(), window.addEventListener(
|
|
2132
2132
|
"resize",
|
|
2133
|
-
|
|
2134
|
-
),
|
|
2133
|
+
A.handleWindowResize.bind(A)
|
|
2134
|
+
), A.animate(), n.value = e.Main.getPlayerAPI(), n.value && n.value.setLookSensitivity(l.mouseSensitivity));
|
|
2135
2135
|
}), Oe(() => {
|
|
2136
2136
|
n.value && n.value.destroy();
|
|
2137
2137
|
});
|
|
2138
|
-
function
|
|
2139
|
-
let v = 1.7777777777777777, m = document.querySelector("#player-sizer");
|
|
2140
|
-
if (!m)
|
|
2141
|
-
return;
|
|
2142
|
-
let I = m.offsetWidth, _ = I * (1 / v);
|
|
2143
|
-
(window.innerWidth <= 600 || I <= 600) && (_ = window.innerHeight * 0.75, l.isInIframe && (_ = screen.height * 0.65), I = _ * (1 / v)), m.style.height = _ + "px", m.style.width = I + "px", a("newSizeCallback", I, _);
|
|
2138
|
+
function h() {
|
|
2144
2139
|
}
|
|
2145
|
-
return (v, m) => (
|
|
2140
|
+
return (v, m) => (p(), F("div", on, [
|
|
2146
2141
|
o("div", nn, [
|
|
2147
2142
|
ie(v.$slots, "slideshow-image", {}, void 0, !0),
|
|
2148
2143
|
o("div", an, [
|
|
@@ -2181,7 +2176,7 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
2181
2176
|
])
|
|
2182
2177
|
]));
|
|
2183
2178
|
}
|
|
2184
|
-
}), fn = /* @__PURE__ */ te(hn, [["__scopeId", "data-v-
|
|
2179
|
+
}), fn = /* @__PURE__ */ te(hn, [["__scopeId", "data-v-54e6a7ef"]]), gn = { class: "waypoint-carousel" }, wn = 37, kn = 39, bn = /* @__PURE__ */ Q({
|
|
2185
2180
|
__name: "VWaypointCarousel",
|
|
2186
2181
|
props: {
|
|
2187
2182
|
thumbnails: {},
|
|
@@ -2193,8 +2188,8 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
2193
2188
|
get() {
|
|
2194
2189
|
return e.active;
|
|
2195
2190
|
},
|
|
2196
|
-
set(
|
|
2197
|
-
a.value =
|
|
2191
|
+
set(h) {
|
|
2192
|
+
a.value = h;
|
|
2198
2193
|
}
|
|
2199
2194
|
}), s = V(() => /Android|webOS|iPhone|iPad|BlackBerry|Windows Phone|Opera Mini|IEMobile|Mobile/i.test(
|
|
2200
2195
|
window.navigator.userAgent
|
|
@@ -2204,24 +2199,24 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
2204
2199
|
}), Oe(() => {
|
|
2205
2200
|
window.removeEventListener("keydown", i);
|
|
2206
2201
|
});
|
|
2207
|
-
function i(
|
|
2208
|
-
switch (
|
|
2209
|
-
case
|
|
2202
|
+
function i(h) {
|
|
2203
|
+
switch (h.keyCode) {
|
|
2204
|
+
case h.keyCode === wn:
|
|
2210
2205
|
l("previous");
|
|
2211
2206
|
break;
|
|
2212
|
-
case
|
|
2207
|
+
case h.keyCode === kn:
|
|
2213
2208
|
l("next");
|
|
2214
2209
|
break;
|
|
2215
2210
|
default:
|
|
2216
2211
|
return;
|
|
2217
2212
|
}
|
|
2218
2213
|
}
|
|
2219
|
-
function k(
|
|
2220
|
-
v(), l("goto",
|
|
2214
|
+
function k(h, v) {
|
|
2215
|
+
v(), l("goto", h);
|
|
2221
2216
|
}
|
|
2222
|
-
return (
|
|
2223
|
-
const m = T("v-icon"),
|
|
2224
|
-
return
|
|
2217
|
+
return (h, v) => {
|
|
2218
|
+
const m = T("v-icon"), M = T("v-btn"), L = T("v-hover"), A = T("v-img"), _ = T("v-card"), E = T("v-slide-group-item"), D = T("v-slide-group");
|
|
2219
|
+
return p(), F("div", gn, [
|
|
2225
2220
|
y(D, {
|
|
2226
2221
|
modelValue: n.value,
|
|
2227
2222
|
"onUpdate:modelValue": v[2] || (v[2] = (g) => n.value = g),
|
|
@@ -2231,20 +2226,20 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
2231
2226
|
"center-active": "",
|
|
2232
2227
|
mandatory: ""
|
|
2233
2228
|
}, {
|
|
2234
|
-
prev:
|
|
2235
|
-
y(
|
|
2236
|
-
default:
|
|
2237
|
-
y(
|
|
2229
|
+
prev: I(() => [
|
|
2230
|
+
y(L, null, {
|
|
2231
|
+
default: I(({ isHovering: g }) => [
|
|
2232
|
+
y(M, {
|
|
2238
2233
|
elevation: "0",
|
|
2239
2234
|
class: ye(["carousel-button", { mobile: s.value }]),
|
|
2240
|
-
onClick: v[0] || (v[0] = (
|
|
2235
|
+
onClick: v[0] || (v[0] = (C) => l("previous"))
|
|
2241
2236
|
}, {
|
|
2242
|
-
default:
|
|
2237
|
+
default: I(() => [
|
|
2243
2238
|
y(m, {
|
|
2244
2239
|
color: g ? "#999" : "#d2d2d2",
|
|
2245
2240
|
"x-large": ""
|
|
2246
2241
|
}, {
|
|
2247
|
-
default:
|
|
2242
|
+
default: I(() => [
|
|
2248
2243
|
se(" mdi-chevron-left ")
|
|
2249
2244
|
]),
|
|
2250
2245
|
_: 2
|
|
@@ -2256,20 +2251,20 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
2256
2251
|
_: 1
|
|
2257
2252
|
})
|
|
2258
2253
|
]),
|
|
2259
|
-
next:
|
|
2260
|
-
y(
|
|
2261
|
-
default:
|
|
2262
|
-
y(
|
|
2254
|
+
next: I(() => [
|
|
2255
|
+
y(L, null, {
|
|
2256
|
+
default: I(({ isHovering: g }) => [
|
|
2257
|
+
y(M, {
|
|
2263
2258
|
elevation: "0",
|
|
2264
2259
|
class: ye(["carousel-button", { mobile: s.value }]),
|
|
2265
|
-
onClick: v[1] || (v[1] = (
|
|
2260
|
+
onClick: v[1] || (v[1] = (C) => l("next"))
|
|
2266
2261
|
}, {
|
|
2267
|
-
default:
|
|
2262
|
+
default: I(() => [
|
|
2268
2263
|
y(m, {
|
|
2269
2264
|
color: g ? "#999" : "#d2d2d2",
|
|
2270
2265
|
"x-large": ""
|
|
2271
2266
|
}, {
|
|
2272
|
-
default:
|
|
2267
|
+
default: I(() => [
|
|
2273
2268
|
se(" mdi-chevron-right ")
|
|
2274
2269
|
]),
|
|
2275
2270
|
_: 2
|
|
@@ -2281,12 +2276,12 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
2281
2276
|
_: 1
|
|
2282
2277
|
})
|
|
2283
2278
|
]),
|
|
2284
|
-
default:
|
|
2285
|
-
(
|
|
2279
|
+
default: I(() => [
|
|
2280
|
+
(p(!0), F(Ce, null, _e(h.thumbnails, (g) => (p(), N(E, {
|
|
2286
2281
|
key: g.id
|
|
2287
2282
|
}, {
|
|
2288
|
-
default:
|
|
2289
|
-
y(
|
|
2283
|
+
default: I(({ toggle: C, selectedClass: R }) => [
|
|
2284
|
+
y(_, {
|
|
2290
2285
|
class: ye(["ma-2", R]),
|
|
2291
2286
|
align: "center",
|
|
2292
2287
|
justify: "center",
|
|
@@ -2294,12 +2289,13 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
2294
2289
|
width: s.value ? 80 : 160,
|
|
2295
2290
|
elevation: "0",
|
|
2296
2291
|
style: { overflow: "hidden" },
|
|
2297
|
-
onClick: (c) => k(g.id,
|
|
2292
|
+
onClick: (c) => k(g.id, C)
|
|
2298
2293
|
}, {
|
|
2299
|
-
default:
|
|
2300
|
-
y(
|
|
2294
|
+
default: I(() => [
|
|
2295
|
+
y(A, {
|
|
2301
2296
|
"max-height": "100",
|
|
2302
2297
|
"max-width": "160",
|
|
2298
|
+
cover: "",
|
|
2303
2299
|
src: g.thumbnailUrl
|
|
2304
2300
|
}, null, 8, ["src"])
|
|
2305
2301
|
]),
|
|
@@ -2314,7 +2310,7 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
2314
2310
|
]);
|
|
2315
2311
|
};
|
|
2316
2312
|
}
|
|
2317
|
-
}), ut = /* @__PURE__ */ te(bn, [["__scopeId", "data-v-
|
|
2313
|
+
}), ut = /* @__PURE__ */ te(bn, [["__scopeId", "data-v-ad2125d1"]]), yn = {
|
|
2318
2314
|
style: { width: "24px", height: "24px" },
|
|
2319
2315
|
viewBox: "0 0 18 16",
|
|
2320
2316
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -2330,25 +2326,25 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
2330
2326
|
const v = e.floorLevels;
|
|
2331
2327
|
return v.sort(), v;
|
|
2332
2328
|
}), s = V(() => n.value.indexOf(e.level) + 1 <= n.value.length / 2 ? "Lower" : "Upper"), i = V(() => s.value === "Lower"), k = V(() => s.value === "Upper");
|
|
2333
|
-
function
|
|
2329
|
+
function h() {
|
|
2334
2330
|
const v = e.level + 1;
|
|
2335
2331
|
v >= n.value.length ? l("level", n.value[0]) : l("level", n.value[v]);
|
|
2336
2332
|
}
|
|
2337
2333
|
return (v, m) => {
|
|
2338
|
-
const
|
|
2339
|
-
return
|
|
2334
|
+
const M = T("v-btn"), L = T("v-tooltip");
|
|
2335
|
+
return p(), N(L, {
|
|
2340
2336
|
right: "",
|
|
2341
2337
|
attach: ""
|
|
2342
2338
|
}, {
|
|
2343
|
-
activator:
|
|
2344
|
-
y(
|
|
2339
|
+
activator: I(({ props: A }) => [
|
|
2340
|
+
y(M, be({
|
|
2345
2341
|
style: { cursor: "pointer" },
|
|
2346
2342
|
density: "comfortable",
|
|
2347
2343
|
elevation: "1",
|
|
2348
2344
|
icon: ""
|
|
2349
|
-
},
|
|
2350
|
-
default:
|
|
2351
|
-
(
|
|
2345
|
+
}, A, { onClick: h }), {
|
|
2346
|
+
default: I(() => [
|
|
2347
|
+
(p(), F("svg", yn, [
|
|
2352
2348
|
o("path", {
|
|
2353
2349
|
d: "M8.98034 10.3472L1.54055 5.8855L8.98034 1.42384L16.4201 5.8855L8.98034 10.3472Z",
|
|
2354
2350
|
fill: "white",
|
|
@@ -2368,8 +2364,8 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
2368
2364
|
_: 2
|
|
2369
2365
|
}, 1040)
|
|
2370
2366
|
]),
|
|
2371
|
-
default:
|
|
2372
|
-
o("span", An,
|
|
2367
|
+
default: I(() => [
|
|
2368
|
+
o("span", An, q(oe(a).getLabel(s.value)) + " " + q(oe(a).getLabel("floor")), 1)
|
|
2373
2369
|
]),
|
|
2374
2370
|
_: 1
|
|
2375
2371
|
});
|
|
@@ -2406,24 +2402,24 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
2406
2402
|
function i() {
|
|
2407
2403
|
navigator.clipboard.writeText(location.href);
|
|
2408
2404
|
}
|
|
2409
|
-
return (k,
|
|
2410
|
-
const v = T("v-btn"), m = T("v-tooltip"),
|
|
2411
|
-
return
|
|
2405
|
+
return (k, h) => {
|
|
2406
|
+
const v = T("v-btn"), m = T("v-tooltip"), M = T("v-toolbar-title"), L = T("v-spacer"), A = T("v-toolbar"), _ = T("v-card-text"), E = T("v-card"), D = T("v-dialog");
|
|
2407
|
+
return p(), F("div", null, [
|
|
2412
2408
|
y(m, {
|
|
2413
2409
|
elevation: "2",
|
|
2414
2410
|
top: "",
|
|
2415
2411
|
attach: ""
|
|
2416
2412
|
}, {
|
|
2417
|
-
activator:
|
|
2413
|
+
activator: I(({ props: g }) => [
|
|
2418
2414
|
y(v, be({
|
|
2419
2415
|
density: "comfortable",
|
|
2420
2416
|
elevation: "1",
|
|
2421
2417
|
icon: "mdi-share-variant",
|
|
2422
|
-
onClick:
|
|
2418
|
+
onClick: h[0] || (h[0] = (C) => e.value = !e.value)
|
|
2423
2419
|
}, g), null, 16)
|
|
2424
2420
|
]),
|
|
2425
|
-
default:
|
|
2426
|
-
o("span", null,
|
|
2421
|
+
default: I(() => [
|
|
2422
|
+
o("span", null, q(oe(t).getLabel("share")), 1)
|
|
2427
2423
|
]),
|
|
2428
2424
|
_: 1
|
|
2429
2425
|
}),
|
|
@@ -2431,33 +2427,33 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
2431
2427
|
id: "share-box",
|
|
2432
2428
|
width: "400",
|
|
2433
2429
|
modelValue: e.value,
|
|
2434
|
-
"onUpdate:modelValue":
|
|
2430
|
+
"onUpdate:modelValue": h[2] || (h[2] = (g) => e.value = g)
|
|
2435
2431
|
}, {
|
|
2436
|
-
default:
|
|
2432
|
+
default: I(() => [
|
|
2437
2433
|
y(E, null, {
|
|
2438
|
-
default:
|
|
2439
|
-
y(
|
|
2440
|
-
default:
|
|
2434
|
+
default: I(() => [
|
|
2435
|
+
y(A, { elevation: "0" }, {
|
|
2436
|
+
default: I(() => [
|
|
2441
2437
|
y(v, {
|
|
2442
2438
|
size: "x-small",
|
|
2443
2439
|
icon: "mdi-close",
|
|
2444
|
-
onClick:
|
|
2440
|
+
onClick: h[1] || (h[1] = (g) => e.value = !1)
|
|
2445
2441
|
}),
|
|
2446
|
-
y(
|
|
2447
|
-
default:
|
|
2448
|
-
se(
|
|
2442
|
+
y(M, null, {
|
|
2443
|
+
default: I(() => [
|
|
2444
|
+
se(q(oe(t).getLabel("share")), 1)
|
|
2449
2445
|
]),
|
|
2450
2446
|
_: 1
|
|
2451
2447
|
}),
|
|
2452
|
-
y(
|
|
2448
|
+
y(L)
|
|
2453
2449
|
]),
|
|
2454
2450
|
_: 1
|
|
2455
2451
|
}),
|
|
2456
|
-
y(
|
|
2457
|
-
default:
|
|
2452
|
+
y(_, { class: "mt-5" }, {
|
|
2453
|
+
default: I(() => [
|
|
2458
2454
|
o("p", Mn, [
|
|
2459
2455
|
y(m, { location: "top" }, {
|
|
2460
|
-
activator:
|
|
2456
|
+
activator: I(({ props: g }) => [
|
|
2461
2457
|
y(v, be({
|
|
2462
2458
|
depressed: "",
|
|
2463
2459
|
fab: "",
|
|
@@ -2465,13 +2461,13 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
2465
2461
|
icon: "mdi-facebook"
|
|
2466
2462
|
}, g, { onClick: a }), null, 16)
|
|
2467
2463
|
]),
|
|
2468
|
-
default:
|
|
2469
|
-
o("span", null,
|
|
2464
|
+
default: I(() => [
|
|
2465
|
+
o("span", null, q(oe(t).getLabel("share-to-facebook")), 1)
|
|
2470
2466
|
]),
|
|
2471
2467
|
_: 1
|
|
2472
2468
|
}),
|
|
2473
2469
|
y(m, { location: "top" }, {
|
|
2474
|
-
activator:
|
|
2470
|
+
activator: I(({ props: g }) => [
|
|
2475
2471
|
y(v, be({
|
|
2476
2472
|
depressed: "",
|
|
2477
2473
|
fab: "",
|
|
@@ -2479,13 +2475,13 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
2479
2475
|
icon: "mdi-linkedin"
|
|
2480
2476
|
}, g, { onClick: s }), null, 16)
|
|
2481
2477
|
]),
|
|
2482
|
-
default:
|
|
2483
|
-
o("span", null,
|
|
2478
|
+
default: I(() => [
|
|
2479
|
+
o("span", null, q(oe(t).getLabel("share-to-linkedin")), 1)
|
|
2484
2480
|
]),
|
|
2485
2481
|
_: 1
|
|
2486
2482
|
}),
|
|
2487
2483
|
y(m, { location: "top" }, {
|
|
2488
|
-
activator:
|
|
2484
|
+
activator: I(({ props: g }) => [
|
|
2489
2485
|
y(v, be({
|
|
2490
2486
|
depressed: "",
|
|
2491
2487
|
fab: "",
|
|
@@ -2493,13 +2489,13 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
2493
2489
|
icon: "mdi-twitter"
|
|
2494
2490
|
}, g, { onClick: n }), null, 16)
|
|
2495
2491
|
]),
|
|
2496
|
-
default:
|
|
2497
|
-
o("span", null,
|
|
2492
|
+
default: I(() => [
|
|
2493
|
+
o("span", null, q(oe(t).getLabel("share-to-twitter")), 1)
|
|
2498
2494
|
]),
|
|
2499
2495
|
_: 1
|
|
2500
2496
|
}),
|
|
2501
2497
|
y(m, { location: "top" }, {
|
|
2502
|
-
activator:
|
|
2498
|
+
activator: I(({ props: g }) => [
|
|
2503
2499
|
y(v, be({
|
|
2504
2500
|
depressed: "",
|
|
2505
2501
|
fab: "",
|
|
@@ -2509,13 +2505,13 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
2509
2505
|
href: `mailto:?body=${l.value}`
|
|
2510
2506
|
}, g), null, 16, ["href"])
|
|
2511
2507
|
]),
|
|
2512
|
-
default:
|
|
2513
|
-
o("span", null,
|
|
2508
|
+
default: I(() => [
|
|
2509
|
+
o("span", null, q(oe(t).getLabel("share-via-email")), 1)
|
|
2514
2510
|
]),
|
|
2515
2511
|
_: 1
|
|
2516
2512
|
}),
|
|
2517
2513
|
y(m, { location: "top" }, {
|
|
2518
|
-
activator:
|
|
2514
|
+
activator: I(({ props: g }) => [
|
|
2519
2515
|
y(v, be({
|
|
2520
2516
|
depressed: "",
|
|
2521
2517
|
fab: "",
|
|
@@ -2524,12 +2520,12 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
2524
2520
|
onClick: i
|
|
2525
2521
|
}, g), null, 16)
|
|
2526
2522
|
]),
|
|
2527
|
-
default:
|
|
2528
|
-
o("span", null,
|
|
2523
|
+
default: I(() => [
|
|
2524
|
+
o("span", null, q(oe(t).getLabel("copy-link")), 1)
|
|
2529
2525
|
]),
|
|
2530
2526
|
_: 1
|
|
2531
2527
|
}),
|
|
2532
|
-
y(
|
|
2528
|
+
y(L)
|
|
2533
2529
|
])
|
|
2534
2530
|
]),
|
|
2535
2531
|
_: 1
|
|
@@ -2557,47 +2553,47 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
2557
2553
|
return a && (k = `${n.getURL(i)}`), k;
|
|
2558
2554
|
}
|
|
2559
2555
|
return (i, k) => {
|
|
2560
|
-
const
|
|
2561
|
-
return
|
|
2562
|
-
y(
|
|
2556
|
+
const h = T("v-btn"), v = T("v-img"), m = T("v-list-item-title"), M = T("v-list-item"), L = T("v-list"), A = T("v-menu");
|
|
2557
|
+
return p(), F("div", null, [
|
|
2558
|
+
y(A, {
|
|
2563
2559
|
transition: "slide-x-reverse-transition",
|
|
2564
2560
|
location: "top end",
|
|
2565
2561
|
origin: "end bottom",
|
|
2566
2562
|
elevation: "0"
|
|
2567
2563
|
}, {
|
|
2568
|
-
activator:
|
|
2569
|
-
y(
|
|
2564
|
+
activator: I(({ props: _ }) => [
|
|
2565
|
+
y(h, be({
|
|
2570
2566
|
"prepend-icon": "mdi-palette-outline",
|
|
2571
2567
|
rounded: ""
|
|
2572
|
-
},
|
|
2573
|
-
default:
|
|
2574
|
-
se(
|
|
2568
|
+
}, _), {
|
|
2569
|
+
default: I(() => [
|
|
2570
|
+
se(q(oe(l).getLabel("interior")), 1)
|
|
2575
2571
|
]),
|
|
2576
2572
|
_: 2
|
|
2577
2573
|
}, 1040)
|
|
2578
2574
|
]),
|
|
2579
|
-
default:
|
|
2580
|
-
y(
|
|
2581
|
-
default:
|
|
2582
|
-
(
|
|
2575
|
+
default: I(() => [
|
|
2576
|
+
y(L, { class: "interior-selector-list" }, {
|
|
2577
|
+
default: I(() => [
|
|
2578
|
+
(p(!0), F(Ce, null, _e(i.availableArchetypes, (_, E) => (p(), N(M, {
|
|
2583
2579
|
density: "compact",
|
|
2584
2580
|
key: `at-menuitem-${E}`,
|
|
2585
|
-
onClick: (D) => e("selectInterior",
|
|
2581
|
+
onClick: (D) => e("selectInterior", _.archetypeID),
|
|
2586
2582
|
active: E === i.selectedIndex,
|
|
2587
2583
|
class: "interior-selector-list-item"
|
|
2588
2584
|
}, {
|
|
2589
|
-
prepend:
|
|
2585
|
+
prepend: I(() => [
|
|
2590
2586
|
y(v, {
|
|
2591
2587
|
width: "100",
|
|
2592
2588
|
"max-width": "100",
|
|
2593
2589
|
height: "66",
|
|
2594
|
-
src: s(
|
|
2590
|
+
src: s(_.url)
|
|
2595
2591
|
}, null, 8, ["src"])
|
|
2596
2592
|
]),
|
|
2597
|
-
default:
|
|
2593
|
+
default: I(() => [
|
|
2598
2594
|
y(m, { class: "text-caption py-2 px-4" }, {
|
|
2599
|
-
default:
|
|
2600
|
-
se(
|
|
2595
|
+
default: I(() => [
|
|
2596
|
+
se(q(oe(l).get(_.title)), 1)
|
|
2601
2597
|
]),
|
|
2602
2598
|
_: 2
|
|
2603
2599
|
}, 1024)
|
|
@@ -2627,7 +2623,7 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
2627
2623
|
}));
|
|
2628
2624
|
return (n, s) => {
|
|
2629
2625
|
const i = T("v-img");
|
|
2630
|
-
return
|
|
2626
|
+
return p(), F("div", {
|
|
2631
2627
|
style: re(l.value)
|
|
2632
2628
|
}, [
|
|
2633
2629
|
y(i, {
|
|
@@ -2646,7 +2642,7 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
2646
2642
|
},
|
|
2647
2643
|
setup(u) {
|
|
2648
2644
|
const t = u, e = V(() => ({ "background-image": `url("${encodeURI(t.image)}")` }));
|
|
2649
|
-
return (l, a) => (
|
|
2645
|
+
return (l, a) => (p(), F("div", Dn, [
|
|
2650
2646
|
o("div", {
|
|
2651
2647
|
class: ye(["img-div", [l.aspectRatio]]),
|
|
2652
2648
|
style: re(e.value)
|
|
@@ -2666,14 +2662,14 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
2666
2662
|
}
|
|
2667
2663
|
return (a, n) => {
|
|
2668
2664
|
const s = T("v-img");
|
|
2669
|
-
return
|
|
2665
|
+
return p(), F("div", $n, [
|
|
2670
2666
|
o("div", Hn, [
|
|
2671
2667
|
y(s, {
|
|
2672
2668
|
src: oe(On),
|
|
2673
2669
|
"aspect-ratio": "1"
|
|
2674
2670
|
}, null, 8, ["src"])
|
|
2675
2671
|
]),
|
|
2676
|
-
o("div", jn,
|
|
2672
|
+
o("div", jn, q(e.value), 1)
|
|
2677
2673
|
]);
|
|
2678
2674
|
};
|
|
2679
2675
|
}
|
|
@@ -2690,7 +2686,7 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
2690
2686
|
const e = t;
|
|
2691
2687
|
return (l, a) => {
|
|
2692
2688
|
const n = T("v-btn");
|
|
2693
|
-
return
|
|
2689
|
+
return p(), F("div", Yn, [
|
|
2694
2690
|
y(n, {
|
|
2695
2691
|
density: "comfortable",
|
|
2696
2692
|
elevation: "3",
|
|
@@ -2713,15 +2709,15 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
2713
2709
|
});
|
|
2714
2710
|
return (s, i) => {
|
|
2715
2711
|
const k = T("v-btn");
|
|
2716
|
-
return
|
|
2712
|
+
return p(), N(k, {
|
|
2717
2713
|
color: "darken-2",
|
|
2718
2714
|
elevation: "1",
|
|
2719
2715
|
rounded: "",
|
|
2720
2716
|
plain: "",
|
|
2721
|
-
onClick: i[0] || (i[0] = (
|
|
2717
|
+
onClick: i[0] || (i[0] = (h) => l("toggle"))
|
|
2722
2718
|
}, {
|
|
2723
|
-
default:
|
|
2724
|
-
se(
|
|
2719
|
+
default: I(() => [
|
|
2720
|
+
se(q(oe(a).getLabel(n.value)), 1)
|
|
2725
2721
|
]),
|
|
2726
2722
|
_: 1
|
|
2727
2723
|
});
|
|
@@ -2730,24 +2726,24 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
2730
2726
|
}), Qn = {
|
|
2731
2727
|
key: 0,
|
|
2732
2728
|
class: "text-white disclaimer caption"
|
|
2733
|
-
},
|
|
2729
|
+
}, qn = /* @__PURE__ */ Q({
|
|
2734
2730
|
__name: "VDisclaimer",
|
|
2735
2731
|
setup(u) {
|
|
2736
2732
|
const t = pe("i18n"), e = r(!0);
|
|
2737
|
-
return (l, a) => (
|
|
2738
|
-
default:
|
|
2739
|
-
e.value ? (
|
|
2740
|
-
se(
|
|
2733
|
+
return (l, a) => (p(), N(qe, { name: "fade-transition" }, {
|
|
2734
|
+
default: I(() => [
|
|
2735
|
+
e.value ? (p(), F("div", Qn, [
|
|
2736
|
+
se(q(oe(t).getLabel("all-illustrations-are-indicative-deviations-may-occur")) + " ", 1),
|
|
2741
2737
|
o("span", {
|
|
2742
2738
|
onClick: a[0] || (a[0] = (n) => e.value = !1),
|
|
2743
2739
|
class: "link-text text-decoration-underline"
|
|
2744
|
-
},
|
|
2740
|
+
}, q(oe(t).getLabel("i-understand")), 1)
|
|
2745
2741
|
])) : H("", !0)
|
|
2746
2742
|
]),
|
|
2747
2743
|
_: 1
|
|
2748
2744
|
}));
|
|
2749
2745
|
}
|
|
2750
|
-
}),
|
|
2746
|
+
}), zn = /* @__PURE__ */ te(qn, [["__scopeId", "data-v-28008b18"]]), Be = (u) => (Je("data-v-53c0bb27"), u = u(), et(), u), Zn = {
|
|
2751
2747
|
key: 0,
|
|
2752
2748
|
class: "tutorial"
|
|
2753
2749
|
}, Xn = {
|
|
@@ -3289,72 +3285,72 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
3289
3285
|
/iPod/i,
|
|
3290
3286
|
/BlackBerry/i,
|
|
3291
3287
|
/Windows Phone/i
|
|
3292
|
-
].some((
|
|
3288
|
+
].some((M) => navigator.userAgent.match(M))), k = V(() => {
|
|
3293
3289
|
const m = localStorage.getItem(
|
|
3294
3290
|
`${e.project}-dont-show-tutorial`
|
|
3295
3291
|
);
|
|
3296
3292
|
return m && l("closeTutorial"), m;
|
|
3297
3293
|
});
|
|
3298
|
-
function
|
|
3294
|
+
function h() {
|
|
3299
3295
|
s.value && v(), n.value = !1, l("closeTutorial");
|
|
3300
3296
|
}
|
|
3301
3297
|
function v() {
|
|
3302
3298
|
localStorage.setItem(`${e.project}-dont-show-tutorial`, "true");
|
|
3303
3299
|
}
|
|
3304
|
-
return (m,
|
|
3305
|
-
const
|
|
3306
|
-
return
|
|
3307
|
-
default:
|
|
3308
|
-
n.value && !k.value ? (
|
|
3309
|
-
i.value ? H("", !0) : (
|
|
3300
|
+
return (m, M) => {
|
|
3301
|
+
const L = T("v-checkbox"), A = T("v-btn");
|
|
3302
|
+
return p(), N(qe, { name: "fade-transition" }, {
|
|
3303
|
+
default: I(() => [
|
|
3304
|
+
n.value && !k.value ? (p(), F("div", Zn, [
|
|
3305
|
+
i.value ? H("", !0) : (p(), F("div", Xn, [
|
|
3310
3306
|
o("div", Kn, [
|
|
3311
3307
|
o("div", Jn, [
|
|
3312
3308
|
ea,
|
|
3313
|
-
o("div", ta,
|
|
3309
|
+
o("div", ta, q(oe(a).getLabel("click-and-drag-to-look-around")), 1)
|
|
3314
3310
|
]),
|
|
3315
3311
|
o("div", oa, [
|
|
3316
3312
|
na,
|
|
3317
|
-
o("div", aa,
|
|
3313
|
+
o("div", aa, q(oe(a).getLabel("click-on-the-circles-to-move-around")), 1)
|
|
3318
3314
|
]),
|
|
3319
3315
|
o("div", la, [
|
|
3320
3316
|
ia,
|
|
3321
|
-
o("div", sa,
|
|
3317
|
+
o("div", sa, q(oe(a).getLabel("use-the-mouse-wheel-to-zoom")), 1)
|
|
3322
3318
|
])
|
|
3323
3319
|
]),
|
|
3324
3320
|
o("div", ra, [
|
|
3325
3321
|
o("div", ua, [
|
|
3326
3322
|
ca,
|
|
3327
|
-
o("div", da,
|
|
3323
|
+
o("div", da, q(oe(a).getLabel("you-can-also-use-the-arrow-keys-to-move-around")), 1)
|
|
3328
3324
|
])
|
|
3329
3325
|
])
|
|
3330
3326
|
])),
|
|
3331
|
-
i.value ? (
|
|
3327
|
+
i.value ? (p(), F("div", va, [
|
|
3332
3328
|
o("div", ma, [
|
|
3333
3329
|
pa,
|
|
3334
|
-
o("div", ha,
|
|
3330
|
+
o("div", ha, q(oe(a).getLabel("tap-and-drag-to-look-around")), 1)
|
|
3335
3331
|
]),
|
|
3336
3332
|
o("div", fa, [
|
|
3337
3333
|
ga,
|
|
3338
|
-
o("div", wa,
|
|
3334
|
+
o("div", wa, q(oe(a).getLabel("tap-on-the-circles-to-move-around")), 1)
|
|
3339
3335
|
]),
|
|
3340
3336
|
o("div", ka, [
|
|
3341
3337
|
ba,
|
|
3342
|
-
o("div", ya,
|
|
3338
|
+
o("div", ya, q(oe(a).getLabel("use-two-fingers-to-zoom")), 1)
|
|
3343
3339
|
])
|
|
3344
3340
|
])) : H("", !0),
|
|
3345
3341
|
o("div", _a, [
|
|
3346
|
-
y(
|
|
3342
|
+
y(L, {
|
|
3347
3343
|
modelValue: s.value,
|
|
3348
|
-
"onUpdate:modelValue":
|
|
3344
|
+
"onUpdate:modelValue": M[0] || (M[0] = (_) => s.value = _),
|
|
3349
3345
|
label: oe(a).getLabel("dont-show-again")
|
|
3350
3346
|
}, null, 8, ["modelValue", "label"]),
|
|
3351
|
-
y(
|
|
3347
|
+
y(A, {
|
|
3352
3348
|
small: "",
|
|
3353
3349
|
outlined: "",
|
|
3354
3350
|
class: "mt-5",
|
|
3355
|
-
onClick:
|
|
3351
|
+
onClick: M[1] || (M[1] = (_) => h())
|
|
3356
3352
|
}, {
|
|
3357
|
-
default:
|
|
3353
|
+
default: I(() => [
|
|
3358
3354
|
se("Ok")
|
|
3359
3355
|
]),
|
|
3360
3356
|
_: 1
|
|
@@ -3384,7 +3380,7 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
3384
3380
|
},
|
|
3385
3381
|
emits: ["updateSettings", "saveSettings"],
|
|
3386
3382
|
setup(u, { emit: t }) {
|
|
3387
|
-
const e = u, l = t, a = r(
|
|
3383
|
+
const e = u, l = t, a = r(L(e.initialSettings));
|
|
3388
3384
|
Z(
|
|
3389
3385
|
a,
|
|
3390
3386
|
() => {
|
|
@@ -3393,41 +3389,41 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
3393
3389
|
{ deep: !0 }
|
|
3394
3390
|
);
|
|
3395
3391
|
const n = V(() => {
|
|
3396
|
-
let
|
|
3397
|
-
for (const [
|
|
3398
|
-
|
|
3399
|
-
return
|
|
3392
|
+
let A = {};
|
|
3393
|
+
for (const [_, E] of Object.entries(a.value))
|
|
3394
|
+
_ === "whitePoint" ? A[_] = v(E.value) : A[_] = E.value;
|
|
3395
|
+
return A;
|
|
3400
3396
|
});
|
|
3401
3397
|
function s() {
|
|
3402
3398
|
l("updateSettings", n.value);
|
|
3403
3399
|
}
|
|
3404
3400
|
function i() {
|
|
3405
|
-
const
|
|
3406
|
-
|
|
3401
|
+
const A = document.createElement("a");
|
|
3402
|
+
A.href = URL.createObjectURL(
|
|
3407
3403
|
new Blob([JSON.stringify(n.value, null, 2)])
|
|
3408
3404
|
);
|
|
3409
|
-
const
|
|
3410
|
-
|
|
3405
|
+
const _ = `player-settings-${e.projectSlug}-${Date.now()}.json`;
|
|
3406
|
+
A.download = _, A.style.display = "none", document.body.appendChild(A), A.click(), document.body.removeChild(A);
|
|
3411
3407
|
}
|
|
3412
3408
|
function k() {
|
|
3413
3409
|
l("saveSettings", n.value);
|
|
3414
3410
|
}
|
|
3415
|
-
function
|
|
3416
|
-
a.value =
|
|
3411
|
+
function h() {
|
|
3412
|
+
a.value = L(), l("updateSettings", n.value);
|
|
3417
3413
|
}
|
|
3418
|
-
function v(
|
|
3419
|
-
const
|
|
3420
|
-
return [
|
|
3414
|
+
function v(A) {
|
|
3415
|
+
const _ = parseInt(A.substr(1, 2), 16) / 255, E = parseInt(A.substr(3, 2), 16) / 255, D = parseInt(A.substr(5, 2), 16) / 255;
|
|
3416
|
+
return [_, E, D];
|
|
3421
3417
|
}
|
|
3422
|
-
function m(
|
|
3423
|
-
var
|
|
3424
|
-
return
|
|
3418
|
+
function m(A) {
|
|
3419
|
+
var _ = A.toString(16);
|
|
3420
|
+
return _.length == 1 ? "0" + _ : _;
|
|
3425
3421
|
}
|
|
3426
|
-
function
|
|
3427
|
-
return "#" + m(parseInt((
|
|
3422
|
+
function M([A, _, E]) {
|
|
3423
|
+
return "#" + m(parseInt((A * 255).toString())) + m(parseInt((_ * 255).toString())) + m(parseInt((E * 255).toString()));
|
|
3428
3424
|
}
|
|
3429
|
-
function
|
|
3430
|
-
const
|
|
3425
|
+
function L(A = {}) {
|
|
3426
|
+
const _ = [
|
|
3431
3427
|
"Cool 5",
|
|
3432
3428
|
"Cool 10",
|
|
3433
3429
|
"Cool 15",
|
|
@@ -3450,7 +3446,7 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
3450
3446
|
TRANSITION_MOVEMENT_SCALE: 1.3,
|
|
3451
3447
|
whitePoint: [1, 1, 1],
|
|
3452
3448
|
lut: "",
|
|
3453
|
-
...
|
|
3449
|
+
...A
|
|
3454
3450
|
};
|
|
3455
3451
|
return {
|
|
3456
3452
|
exposureFovScale: {
|
|
@@ -3512,12 +3508,12 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
3512
3508
|
min: null,
|
|
3513
3509
|
max: null,
|
|
3514
3510
|
step: null,
|
|
3515
|
-
value:
|
|
3511
|
+
value: M(E.whitePoint)
|
|
3516
3512
|
},
|
|
3517
3513
|
lut: {
|
|
3518
3514
|
label: "Lut",
|
|
3519
3515
|
type: "lut",
|
|
3520
|
-
items:
|
|
3516
|
+
items: _.map((D) => ({
|
|
3521
3517
|
text: D,
|
|
3522
3518
|
value: `https://cdn.visuado.com/luts/${D}.png`
|
|
3523
3519
|
})),
|
|
@@ -3525,16 +3521,16 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
3525
3521
|
}
|
|
3526
3522
|
};
|
|
3527
3523
|
}
|
|
3528
|
-
return (
|
|
3529
|
-
const E = T("v-text-field"), D = T("v-slider"), g = T("v-checkbox"),
|
|
3530
|
-
return
|
|
3524
|
+
return (A, _) => {
|
|
3525
|
+
const E = T("v-text-field"), D = T("v-slider"), g = T("v-checkbox"), C = T("v-btn"), R = T("v-select"), c = T("v-icon");
|
|
3526
|
+
return p(), F("div", Ia, [
|
|
3531
3527
|
o("form", Ma, [
|
|
3532
3528
|
o("div", Sa, [
|
|
3533
|
-
(
|
|
3529
|
+
(p(!0), F(Ce, null, _e(a.value, (f, b, B) => (p(), F("div", {
|
|
3534
3530
|
key: B,
|
|
3535
3531
|
"d-block": ""
|
|
3536
3532
|
}, [
|
|
3537
|
-
f.type === "slider" ? (
|
|
3533
|
+
f.type === "slider" ? (p(), N(D, {
|
|
3538
3534
|
key: 0,
|
|
3539
3535
|
modelValue: a.value[b].value,
|
|
3540
3536
|
"onUpdate:modelValue": (U) => a.value[b].value = U,
|
|
@@ -3543,10 +3539,10 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
3543
3539
|
min: f.min,
|
|
3544
3540
|
step: f.step
|
|
3545
3541
|
}, {
|
|
3546
|
-
prepend:
|
|
3547
|
-
o("div", Ea,
|
|
3542
|
+
prepend: I(() => [
|
|
3543
|
+
o("div", Ea, q(f.label), 1)
|
|
3548
3544
|
]),
|
|
3549
|
-
append:
|
|
3545
|
+
append: I(() => [
|
|
3550
3546
|
o("div", null, [
|
|
3551
3547
|
y(E, {
|
|
3552
3548
|
modelValue: a.value[b].value,
|
|
@@ -3565,28 +3561,28 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
3565
3561
|
]),
|
|
3566
3562
|
_: 2
|
|
3567
3563
|
}, 1032, ["modelValue", "onUpdate:modelValue", "max", "min", "step"])) : H("", !0),
|
|
3568
|
-
f.type === "boolean" ? (
|
|
3564
|
+
f.type === "boolean" ? (p(), N(g, {
|
|
3569
3565
|
key: 1,
|
|
3570
3566
|
modelValue: a.value[b].value,
|
|
3571
3567
|
"onUpdate:modelValue": (U) => a.value[b].value = U,
|
|
3572
3568
|
onChange: s
|
|
3573
3569
|
}, {
|
|
3574
|
-
prepend:
|
|
3575
|
-
o("div", Fa,
|
|
3570
|
+
prepend: I(() => [
|
|
3571
|
+
o("div", Fa, q(f.label), 1)
|
|
3576
3572
|
]),
|
|
3577
|
-
append:
|
|
3578
|
-
o("div", null,
|
|
3573
|
+
append: I(() => [
|
|
3574
|
+
o("div", null, q(f.value), 1)
|
|
3579
3575
|
]),
|
|
3580
3576
|
_: 2
|
|
3581
3577
|
}, 1032, ["modelValue", "onUpdate:modelValue"])) : H("", !0),
|
|
3582
|
-
f.type === "color" ? (
|
|
3578
|
+
f.type === "color" ? (p(), F("div", {
|
|
3583
3579
|
key: 2,
|
|
3584
3580
|
class: "d-flex",
|
|
3585
3581
|
max: f.max,
|
|
3586
3582
|
min: f.min,
|
|
3587
3583
|
step: f.step
|
|
3588
3584
|
}, [
|
|
3589
|
-
o("div", Ba,
|
|
3585
|
+
o("div", Ba, q(f.label), 1),
|
|
3590
3586
|
o("div", Va, [
|
|
3591
3587
|
de(o("input", {
|
|
3592
3588
|
"onUpdate:modelValue": (U) => a.value[b].value = U,
|
|
@@ -3610,16 +3606,16 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
3610
3606
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
3611
3607
|
])
|
|
3612
3608
|
], 8, xa)) : H("", !0),
|
|
3613
|
-
f.type === "lut" ? (
|
|
3609
|
+
f.type === "lut" ? (p(), F("div", Da, [
|
|
3614
3610
|
o("div", Ra, [
|
|
3615
|
-
o("div", Ta,
|
|
3611
|
+
o("div", Ta, q(f.label), 1),
|
|
3616
3612
|
o("div", null, [
|
|
3617
|
-
y(
|
|
3613
|
+
y(C, {
|
|
3618
3614
|
class: "ml-2",
|
|
3619
3615
|
"x-small": "",
|
|
3620
3616
|
onClick: (U) => a.value[b].value = null
|
|
3621
3617
|
}, {
|
|
3622
|
-
default:
|
|
3618
|
+
default: I(() => [
|
|
3623
3619
|
se(" Clear Lut ")
|
|
3624
3620
|
]),
|
|
3625
3621
|
_: 2
|
|
@@ -3661,22 +3657,22 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
3661
3657
|
]))), 128))
|
|
3662
3658
|
]),
|
|
3663
3659
|
o("div", ja, [
|
|
3664
|
-
y(
|
|
3665
|
-
onClick:
|
|
3660
|
+
y(C, {
|
|
3661
|
+
onClick: _[0] || (_[0] = (f) => h())
|
|
3666
3662
|
}, {
|
|
3667
|
-
default:
|
|
3663
|
+
default: I(() => [
|
|
3668
3664
|
se("Reset")
|
|
3669
3665
|
]),
|
|
3670
3666
|
_: 1
|
|
3671
3667
|
}),
|
|
3672
|
-
y(
|
|
3668
|
+
y(C, {
|
|
3673
3669
|
class: "ml-2",
|
|
3674
|
-
onClick:
|
|
3670
|
+
onClick: _[1] || (_[1] = (f) => i())
|
|
3675
3671
|
}, {
|
|
3676
|
-
default:
|
|
3672
|
+
default: I(() => [
|
|
3677
3673
|
se(" Download Json "),
|
|
3678
3674
|
y(c, { color: "black darken-1" }, {
|
|
3679
|
-
default:
|
|
3675
|
+
default: I(() => [
|
|
3680
3676
|
se("mdi-download")
|
|
3681
3677
|
]),
|
|
3682
3678
|
_: 1
|
|
@@ -3684,14 +3680,14 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
3684
3680
|
]),
|
|
3685
3681
|
_: 1
|
|
3686
3682
|
}),
|
|
3687
|
-
y(
|
|
3683
|
+
y(C, {
|
|
3688
3684
|
class: "ml-2",
|
|
3689
|
-
onClick:
|
|
3685
|
+
onClick: _[2] || (_[2] = (f) => k())
|
|
3690
3686
|
}, {
|
|
3691
|
-
default:
|
|
3687
|
+
default: I(() => [
|
|
3692
3688
|
se(" Save Settings "),
|
|
3693
3689
|
y(c, { color: "black darken-1" }, {
|
|
3694
|
-
default:
|
|
3690
|
+
default: I(() => [
|
|
3695
3691
|
se("mdi-save")
|
|
3696
3692
|
]),
|
|
3697
3693
|
_: 1
|
|
@@ -3708,20 +3704,20 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
3708
3704
|
class: "rotation-marker-svg",
|
|
3709
3705
|
viewBox: "0 0 40 40",
|
|
3710
3706
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3711
|
-
}, Wa = /* @__PURE__ */ pt('<defs><radialGradient id="Gradient" cx="0" cy="0" r="0.9" fx="0" fy="0"><stop offset="0%" class="stop1"></stop><stop offset="60%" class="stop2"></stop><stop offset="90%" class="stop3"></stop></radialGradient><linearGradient id="LineGradient" gradientTransform="rotate(90)"><stop offset="0%" class="stop1"></stop><stop offset="75%" class="stop2"></stop><stop offset="100%" class="stop3"></stop></linearGradient></defs>', 1), Ga = ["transform"], Qa = /* @__PURE__ */ pt('<rect id="field-of-view-gradient" x="20" y="20" width="38" height="38" transform="rotate(0)" transform-origin="20 20" fill="url(#Gradient)"></rect><rect class="field-of-view-border" x="20" y="20" width="1" height="25" fill="url(#LineGradient)" transform="rotate(0)" transform-origin="20 20"></rect><rect class="field-of-view-border" x="19" y="19" width="1" height="25" fill="url(#LineGradient)" transform="rotate(-90)" transform-origin="20 20"></rect><circle cx="20" cy="20" r="5" fill="white"></circle><circle cx="20" cy="20" r="3" fill="red"></circle>', 5),
|
|
3707
|
+
}, Wa = /* @__PURE__ */ pt('<defs><radialGradient id="Gradient" cx="0" cy="0" r="0.9" fx="0" fy="0"><stop offset="0%" class="stop1"></stop><stop offset="60%" class="stop2"></stop><stop offset="90%" class="stop3"></stop></radialGradient><linearGradient id="LineGradient" gradientTransform="rotate(90)"><stop offset="0%" class="stop1"></stop><stop offset="75%" class="stop2"></stop><stop offset="100%" class="stop3"></stop></linearGradient></defs>', 1), Ga = ["transform"], Qa = /* @__PURE__ */ pt('<rect id="field-of-view-gradient" x="20" y="20" width="38" height="38" transform="rotate(0)" transform-origin="20 20" fill="url(#Gradient)"></rect><rect class="field-of-view-border" x="20" y="20" width="1" height="25" fill="url(#LineGradient)" transform="rotate(0)" transform-origin="20 20"></rect><rect class="field-of-view-border" x="19" y="19" width="1" height="25" fill="url(#LineGradient)" transform="rotate(-90)" transform-origin="20 20"></rect><circle cx="20" cy="20" r="5" fill="white"></circle><circle cx="20" cy="20" r="3" fill="red"></circle>', 5), qa = [
|
|
3712
3708
|
Qa
|
|
3713
|
-
],
|
|
3709
|
+
], za = /* @__PURE__ */ Q({
|
|
3714
3710
|
__name: "VRotationMarker",
|
|
3715
3711
|
props: {
|
|
3716
3712
|
rotation: {}
|
|
3717
3713
|
},
|
|
3718
3714
|
setup(u) {
|
|
3719
|
-
return (t, e) => (
|
|
3715
|
+
return (t, e) => (p(), F("svg", Ya, [
|
|
3720
3716
|
Wa,
|
|
3721
3717
|
o("g", {
|
|
3722
3718
|
"transform-origin": "20 20",
|
|
3723
3719
|
transform: `rotate(${45 + t.rotation})`
|
|
3724
|
-
},
|
|
3720
|
+
}, qa, 8, Ga)
|
|
3725
3721
|
]));
|
|
3726
3722
|
}
|
|
3727
3723
|
}), Za = { class: "minimap-wrapper d-flex align-stretch justify-space-between" }, Xa = { class: "minimap-container" }, Ka = /* @__PURE__ */ Q({
|
|
@@ -3735,21 +3731,21 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
3735
3731
|
transformAngle: {}
|
|
3736
3732
|
},
|
|
3737
3733
|
setup(u) {
|
|
3738
|
-
const t = u, e = r(512), l = r(384), a = r(new xe.Vector3()), n = r(new xe.Object3D()), s = r({}), i = r(1), k = r(),
|
|
3734
|
+
const t = u, e = r(512), l = r(384), a = r(new xe.Vector3()), n = r(new xe.Object3D()), s = r({}), i = r(1), k = r(), h = V(() => t.allCameras), v = V(() => t.allCameras.find((b) => b.id === t.currentCamera)), m = V(() => t.rotation), M = V(() => new xe.Vector3(
|
|
3739
3735
|
t.minimapCamera.position.x,
|
|
3740
3736
|
t.minimapCamera.position.y,
|
|
3741
3737
|
t.minimapCamera.position.z
|
|
3742
|
-
)),
|
|
3738
|
+
)), L = V(() => parseFloat(v.value.floor_vertical_position)), A = V(() => h.value.map((b) => {
|
|
3743
3739
|
const B = b.uposition.split(","), U = new xe.Vector3(
|
|
3744
|
-
B[0] -
|
|
3740
|
+
B[0] - M.value.x,
|
|
3745
3741
|
0,
|
|
3746
|
-
B[2] -
|
|
3742
|
+
B[2] - M.value.z
|
|
3747
3743
|
);
|
|
3748
3744
|
return {
|
|
3749
3745
|
...b,
|
|
3750
3746
|
...R(a.value, U)
|
|
3751
3747
|
};
|
|
3752
|
-
})),
|
|
3748
|
+
})), _ = V(() => `background-image: url(${t.backgroundImage});`), E = V(() => {
|
|
3753
3749
|
let b = i.value > 1 ? 1 : i.value;
|
|
3754
3750
|
return b < 0.8 && (b = 0.4), `scale: ${b > 1 ? 1 : b}; transform: rotate(${t.transformAngle}deg);`;
|
|
3755
3751
|
});
|
|
@@ -3770,7 +3766,7 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
3770
3766
|
transform: `rotateZ(${n.value.rotation.y}deg) rotateX(${n.value.rotation.x}deg)`
|
|
3771
3767
|
};
|
|
3772
3768
|
}
|
|
3773
|
-
function
|
|
3769
|
+
function C(b) {
|
|
3774
3770
|
return {
|
|
3775
3771
|
top: `${Math.abs(b.top)}%`,
|
|
3776
3772
|
left: `${Math.abs(b.left)}%`
|
|
@@ -3786,7 +3782,7 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
3786
3782
|
};
|
|
3787
3783
|
}
|
|
3788
3784
|
function c() {
|
|
3789
|
-
const b = t.minimapCamera.position.y -
|
|
3785
|
+
const b = t.minimapCamera.position.y - L.value;
|
|
3790
3786
|
l.value = 2 * (b * Math.tan(D(t.minimapCamera.fovY / 2))), e.value = 512 / 384 * l.value;
|
|
3791
3787
|
const B = l.value / 2, U = e.value / 2, $ = new xe.Vector3(U * -1, 0, B * -1);
|
|
3792
3788
|
a.value = $;
|
|
@@ -3798,7 +3794,7 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
3798
3794
|
const B = b.offsetHeight / 384 * 0.8, U = b.offsetWidth / 512 * 0.8;
|
|
3799
3795
|
b.offsetHeight > b.offsetWidth ? i.value = U * 0.5 : i.value = B * 0.9;
|
|
3800
3796
|
}
|
|
3801
|
-
return (b, B) => (
|
|
3797
|
+
return (b, B) => (p(), F("div", Za, [
|
|
3802
3798
|
o("div", Xa, [
|
|
3803
3799
|
o("div", {
|
|
3804
3800
|
class: "web-minimap",
|
|
@@ -3806,25 +3802,25 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
3806
3802
|
}, [
|
|
3807
3803
|
o("div", {
|
|
3808
3804
|
class: "minimap-background-image",
|
|
3809
|
-
style: re(
|
|
3805
|
+
style: re(_.value)
|
|
3810
3806
|
}, null, 4),
|
|
3811
3807
|
o("div", {
|
|
3812
3808
|
class: "center-pivot",
|
|
3813
3809
|
style: re(s.value)
|
|
3814
3810
|
}, [
|
|
3815
|
-
(
|
|
3811
|
+
(p(!0), F(Ce, null, _e(A.value, (U) => (p(), F("div", {
|
|
3816
3812
|
key: U.id
|
|
3817
3813
|
}, [
|
|
3818
|
-
v.value.floorLevel === U.floorLevel ? (
|
|
3814
|
+
v.value.floorLevel === U.floorLevel ? (p(), F("div", {
|
|
3819
3815
|
key: 0,
|
|
3820
3816
|
class: "single-camera-marker",
|
|
3821
|
-
style: re(
|
|
3817
|
+
style: re(C(U))
|
|
3822
3818
|
}, null, 4)) : H("", !0),
|
|
3823
|
-
v.value.id === U.id ? (
|
|
3819
|
+
v.value.id === U.id ? (p(), N(za, {
|
|
3824
3820
|
key: 1,
|
|
3825
3821
|
class: "rotation-marker-component",
|
|
3826
3822
|
rotation: m.value,
|
|
3827
|
-
style: re({ ...
|
|
3823
|
+
style: re({ ...C(U) })
|
|
3828
3824
|
}, null, 8, ["rotation", "style"])) : H("", !0)
|
|
3829
3825
|
]))), 128))
|
|
3830
3826
|
], 4)
|
|
@@ -3847,20 +3843,20 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
3847
3843
|
const i = document.getElementById(s.id + "Header");
|
|
3848
3844
|
if (!i)
|
|
3849
3845
|
return;
|
|
3850
|
-
let k = 0,
|
|
3851
|
-
i.addEventListener("touchstart",
|
|
3852
|
-
function
|
|
3853
|
-
|
|
3854
|
-
let E =
|
|
3855
|
-
|
|
3846
|
+
let k = 0, h = 0, v = 0, m = 0;
|
|
3847
|
+
i.addEventListener("touchstart", M, { passive: !1 }), i.addEventListener("touchend", A, { passive: !1 }), i.addEventListener("mousedown", M, { passive: !1 }), i.addEventListener("mouseup", A, { passive: !1 });
|
|
3848
|
+
function M(_) {
|
|
3849
|
+
_ = _ || window.event, _.preventDefault();
|
|
3850
|
+
let E = _;
|
|
3851
|
+
_.type === "touchstart" && (E = _.touches[0]), v = E.clientX, m = E.clientY, document.addEventListener("mouseup", A, { passive: !1 }), document.addEventListener("touchend", A, { passive: !1 }), document.addEventListener("mousemove", L, { passive: !1 }), document.addEventListener("touchmove", L, { passive: !1 });
|
|
3856
3852
|
}
|
|
3857
|
-
function _
|
|
3858
|
-
|
|
3859
|
-
let E =
|
|
3860
|
-
|
|
3853
|
+
function L(_) {
|
|
3854
|
+
_ = _ || window.event, _.preventDefault();
|
|
3855
|
+
let E = _;
|
|
3856
|
+
_.type === "touchmove" && (E = _.touches[0]), k = v - E.clientX, h = m - E.clientY, v = E.clientX, m = E.clientY, s.style.top = s.offsetTop - h + "px", s.style.left = s.offsetLeft - k + "px";
|
|
3861
3857
|
}
|
|
3862
|
-
function
|
|
3863
|
-
document.removeEventListener("mouseup",
|
|
3858
|
+
function A() {
|
|
3859
|
+
document.removeEventListener("mouseup", A, !1), document.removeEventListener("mousemove", L, !1), document.removeEventListener("touchend", A, !1), document.removeEventListener("touchmove", L, !1);
|
|
3864
3860
|
}
|
|
3865
3861
|
}
|
|
3866
3862
|
function n() {
|
|
@@ -3868,7 +3864,7 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
3868
3864
|
}
|
|
3869
3865
|
return (s, i) => {
|
|
3870
3866
|
const k = T("v-btn");
|
|
3871
|
-
return
|
|
3867
|
+
return p(), F("div", {
|
|
3872
3868
|
id: "moveableDiv",
|
|
3873
3869
|
class: ye(["big d-flex justify-space-between flex-column align-center sizer", l.value])
|
|
3874
3870
|
}, [
|
|
@@ -3876,7 +3872,7 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
3876
3872
|
class: "close-icon",
|
|
3877
3873
|
icon: "mdi-window-close",
|
|
3878
3874
|
size: "x-small",
|
|
3879
|
-
onClick: i[0] || (i[0] = (
|
|
3875
|
+
onClick: i[0] || (i[0] = (h) => e("close"))
|
|
3880
3876
|
}),
|
|
3881
3877
|
y(k, {
|
|
3882
3878
|
class: "resize-icon",
|
|
@@ -3889,7 +3885,7 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
3889
3885
|
class: "rotate-icon",
|
|
3890
3886
|
size: "x-small",
|
|
3891
3887
|
icon: "mdi mdi-rotate-right",
|
|
3892
|
-
onClick: i[1] || (i[1] = (
|
|
3888
|
+
onClick: i[1] || (i[1] = (h) => e("transform")),
|
|
3893
3889
|
title: "Rotate"
|
|
3894
3890
|
}),
|
|
3895
3891
|
tl,
|
|
@@ -3911,7 +3907,7 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
3911
3907
|
},
|
|
3912
3908
|
setup(u) {
|
|
3913
3909
|
const t = u, e = V(() => t.minimapCamera.rotation ? t.minimapCamera.rotation.y + t.transformAngle - 90 : 0);
|
|
3914
|
-
return (l, a) => (
|
|
3910
|
+
return (l, a) => (p(), F("div", {
|
|
3915
3911
|
class: "minimap-compass",
|
|
3916
3912
|
style: re({ scale: l.scale })
|
|
3917
3913
|
}, [
|
|
@@ -3933,10 +3929,10 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
3933
3929
|
},
|
|
3934
3930
|
emits: ["setBackgroundImage"],
|
|
3935
3931
|
setup(u, { emit: t }) {
|
|
3936
|
-
const e = u, l = t, a = r((/* @__PURE__ */ new Date()).getHours()), n = r(!0), s = r(!0), i = r(""), k = r(/* @__PURE__ */ new Map()),
|
|
3932
|
+
const e = u, l = t, a = r((/* @__PURE__ */ new Date()).getHours()), n = r(!0), s = r(!0), i = r(""), k = r(/* @__PURE__ */ new Map()), h = pe("localMode"), v = pe("fileLoader"), m = V(() => e.minimapJSON[e.level]), M = V(() => `${Math.floor(a.value).toString().padStart(2, "0")}:00`), L = V(() => {
|
|
3937
3933
|
if (m.value.sunsimFilesTimeStamps[a.value]) {
|
|
3938
|
-
const
|
|
3939
|
-
return `${
|
|
3934
|
+
const C = m.value.sunsimFilesTimeStamps[a.value].split(" ");
|
|
3935
|
+
return `${C[0]} ${C[1]}`;
|
|
3940
3936
|
}
|
|
3941
3937
|
return "";
|
|
3942
3938
|
});
|
|
@@ -3944,30 +3940,30 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
3944
3940
|
i.value = await E(
|
|
3945
3941
|
m.value.sunsimFiles[a.value]
|
|
3946
3942
|
), s.value = !1;
|
|
3947
|
-
const
|
|
3948
|
-
k.value =
|
|
3943
|
+
const C = await _(e.minimapJSON);
|
|
3944
|
+
k.value = C, n.value = !1, l("setBackgroundImage", A(e.level, a.value));
|
|
3949
3945
|
}), Z(a, () => {
|
|
3950
|
-
const
|
|
3951
|
-
l("setBackgroundImage",
|
|
3946
|
+
const C = A(e.level, a.value);
|
|
3947
|
+
l("setBackgroundImage", C);
|
|
3952
3948
|
}), Z(
|
|
3953
3949
|
() => e.level,
|
|
3954
3950
|
() => {
|
|
3955
|
-
l("setBackgroundImage",
|
|
3951
|
+
l("setBackgroundImage", A(e.level, a.value));
|
|
3956
3952
|
},
|
|
3957
3953
|
{ immediate: !0 }
|
|
3958
3954
|
);
|
|
3959
|
-
function
|
|
3960
|
-
return k.value.get(`sunsim${
|
|
3955
|
+
function A(C, R) {
|
|
3956
|
+
return k.value.get(`sunsim${C}_${R}`) ? k.value.get(`sunsim${C}_${R}`) : "";
|
|
3961
3957
|
}
|
|
3962
|
-
async function C
|
|
3958
|
+
async function _(C) {
|
|
3963
3959
|
let R = /* @__PURE__ */ new Map();
|
|
3964
|
-
for (let c = 0; c <
|
|
3965
|
-
const f =
|
|
3960
|
+
for (let c = 0; c < C.length; c++) {
|
|
3961
|
+
const f = C[c].sunsimFiles;
|
|
3966
3962
|
for (let b = 0; b < f.length; b++) {
|
|
3967
3963
|
const B = f[b];
|
|
3968
3964
|
try {
|
|
3969
|
-
const U = B, $ = B.split("."),
|
|
3970
|
-
R.set($[0],
|
|
3965
|
+
const U = B, $ = B.split("."), z = await E(e.root + U);
|
|
3966
|
+
R.set($[0], z);
|
|
3971
3967
|
} catch {
|
|
3972
3968
|
continue;
|
|
3973
3969
|
}
|
|
@@ -3975,37 +3971,37 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
3975
3971
|
}
|
|
3976
3972
|
return R;
|
|
3977
3973
|
}
|
|
3978
|
-
async function E(
|
|
3979
|
-
let R =
|
|
3980
|
-
|
|
3974
|
+
async function E(C) {
|
|
3975
|
+
let R = C;
|
|
3976
|
+
h && (R = `${v.getURL(C)}`);
|
|
3981
3977
|
const f = await (await fetch(R)).blob(), b = await g(f);
|
|
3982
3978
|
return D(b);
|
|
3983
3979
|
}
|
|
3984
|
-
function D(
|
|
3985
|
-
return "data:image/jpeg;base64," +
|
|
3980
|
+
function D(C) {
|
|
3981
|
+
return "data:image/jpeg;base64," + C;
|
|
3986
3982
|
}
|
|
3987
|
-
async function g(
|
|
3983
|
+
async function g(C) {
|
|
3988
3984
|
return new Promise((R, c) => {
|
|
3989
3985
|
const f = new FileReader();
|
|
3990
3986
|
f.onload = () => {
|
|
3991
3987
|
const b = f.result.split(",")[1];
|
|
3992
3988
|
R(b);
|
|
3993
|
-
}, f.onerror = c, f.readAsDataURL(
|
|
3989
|
+
}, f.onerror = c, f.readAsDataURL(C);
|
|
3994
3990
|
});
|
|
3995
3991
|
}
|
|
3996
|
-
return (
|
|
3992
|
+
return (C, R) => {
|
|
3997
3993
|
const c = T("v-progress-linear"), f = T("v-icon"), b = T("v-slider");
|
|
3998
|
-
return
|
|
3994
|
+
return p(), F("div", rl, [
|
|
3999
3995
|
o("div", ul, [
|
|
4000
3996
|
o("div", cl, [
|
|
4001
|
-
n.value ? (
|
|
3997
|
+
n.value ? (p(), N(c, {
|
|
4002
3998
|
key: 0,
|
|
4003
3999
|
indeterminate: "",
|
|
4004
4000
|
rounded: "",
|
|
4005
4001
|
height: "6",
|
|
4006
4002
|
color: "grey lighten-1",
|
|
4007
4003
|
class: "mr-2"
|
|
4008
|
-
})) : (
|
|
4004
|
+
})) : (p(), N(b, {
|
|
4009
4005
|
key: 1,
|
|
4010
4006
|
modelValue: a.value,
|
|
4011
4007
|
"onUpdate:modelValue": R[0] || (R[0] = (B) => a.value = B),
|
|
@@ -4017,9 +4013,9 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
4017
4013
|
"thumb-color": "#373737",
|
|
4018
4014
|
"hide-details": !0
|
|
4019
4015
|
}, {
|
|
4020
|
-
prepend:
|
|
4016
|
+
prepend: I(() => [
|
|
4021
4017
|
y(f, { color: "#ffab02" }, {
|
|
4022
|
-
default:
|
|
4018
|
+
default: I(() => [
|
|
4023
4019
|
se("mdi-white-balance-sunny")
|
|
4024
4020
|
]),
|
|
4025
4021
|
_: 1
|
|
@@ -4028,7 +4024,7 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
4028
4024
|
_: 1
|
|
4029
4025
|
}, 8, ["modelValue"]))
|
|
4030
4026
|
]),
|
|
4031
|
-
n.value ? H("", !0) : (
|
|
4027
|
+
n.value ? H("", !0) : (p(), F("div", dl, q(L.value) + " " + q(M.value), 1))
|
|
4032
4028
|
])
|
|
4033
4029
|
]);
|
|
4034
4030
|
};
|
|
@@ -4057,11 +4053,11 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
4057
4053
|
function s() {
|
|
4058
4054
|
l.value = l.value + 90;
|
|
4059
4055
|
}
|
|
4060
|
-
return (i, k) => (
|
|
4061
|
-
onClose: k[0] || (k[0] = (
|
|
4056
|
+
return (i, k) => (p(), N(ll, {
|
|
4057
|
+
onClose: k[0] || (k[0] = (h) => e("close")),
|
|
4062
4058
|
onTransform: s
|
|
4063
4059
|
}, {
|
|
4064
|
-
body:
|
|
4060
|
+
body: I(() => [
|
|
4065
4061
|
y(sl, {
|
|
4066
4062
|
scale: a.value,
|
|
4067
4063
|
minimapCamera: i.minimapCamera,
|
|
@@ -4078,7 +4074,7 @@ const on = { id: "player-wrapper" }, nn = { id: "player-sizer" }, an = {
|
|
|
4078
4074
|
}, null, 8, ["transformAngle", "allCameras", "backgroundImage", "rotation", "currentCamera", "minimapCamera"])
|
|
4079
4075
|
])
|
|
4080
4076
|
]),
|
|
4081
|
-
footer:
|
|
4077
|
+
footer: I(() => [
|
|
4082
4078
|
y(ml, {
|
|
4083
4079
|
minimapJSON: i.minimapJSON,
|
|
4084
4080
|
root: `${i.rootUrl}/minimap/`,
|
|
@@ -4163,7 +4159,10 @@ class wl {
|
|
|
4163
4159
|
const kl = { class: "virtual-tour-wrapper" }, bl = {
|
|
4164
4160
|
key: 0,
|
|
4165
4161
|
class: "player-error"
|
|
4166
|
-
}, yl = { class: "player-and-components-wrapper" }, _l = {
|
|
4162
|
+
}, yl = { class: "player-and-components-wrapper" }, _l = {
|
|
4163
|
+
key: 1,
|
|
4164
|
+
class: "v-player"
|
|
4165
|
+
}, Cl = {
|
|
4167
4166
|
key: 3,
|
|
4168
4167
|
class: "settings-panel"
|
|
4169
4168
|
}, Al = {
|
|
@@ -4215,10 +4214,10 @@ const kl = { class: "virtual-tour-wrapper" }, bl = {
|
|
|
4215
4214
|
},
|
|
4216
4215
|
emits: ["onSnapshot", "saveSettings", "onInteriorUpdate", "onCameraUpdate"],
|
|
4217
4216
|
setup(u, { emit: t }) {
|
|
4218
|
-
const e = u, l = t, a = r(!1), n = r(!1), s = r(), i = r(), k = r(),
|
|
4217
|
+
const e = u, l = t, a = r(!1), n = r(!1), s = r(), i = r(), k = r(), h = r(), v = r(), m = r(0), M = r(), L = r(), A = r(), _ = r(0), E = r(0), D = r(0), g = r(!1), C = r(!1), R = r(), c = r(!1), f = r(new hl(document, "player-wrapper")), b = V(() => !!e.fileLoader), B = V(() => {
|
|
4219
4218
|
let d = `${e.cdnRoot}/${e.projectSlug}`;
|
|
4220
4219
|
return e.fileLoader && (d = ""), It(d);
|
|
4221
|
-
}), U = V(() => `${B.value}/${$.value}/${e.apartmentId}`), $ = V(() =>
|
|
4220
|
+
}), U = V(() => `${B.value}/${$.value}/${e.apartmentId}`), $ = V(() => M.value), z = V(() => i.value ? i.value.cameras : []), J = V(() => {
|
|
4222
4221
|
if (i.value) {
|
|
4223
4222
|
const d = i.value.cameras.map(
|
|
4224
4223
|
(G) => G.floorLevel
|
|
@@ -4242,7 +4241,7 @@ const kl = { class: "virtual-tour-wrapper" }, bl = {
|
|
|
4242
4241
|
}
|
|
4243
4242
|
return d;
|
|
4244
4243
|
}), x = V(() => Y.value.findIndex(
|
|
4245
|
-
(d) => d.archetypeID ===
|
|
4244
|
+
(d) => d.archetypeID === M.value
|
|
4246
4245
|
)), W = V(() => k.value ? k.value.cameras.map((d) => ({
|
|
4247
4246
|
...d,
|
|
4248
4247
|
thumbnailUrl: Xe(
|
|
@@ -4260,8 +4259,8 @@ const kl = { class: "virtual-tour-wrapper" }, bl = {
|
|
|
4260
4259
|
...d,
|
|
4261
4260
|
url: `${B.value}/${d.archetypeID}/${e.apartmentId}/thumbs/200/${W.value[m.value].id}.jpg`
|
|
4262
4261
|
})) : []), K = V(() => {
|
|
4263
|
-
if (
|
|
4264
|
-
return
|
|
4262
|
+
if (h.value)
|
|
4263
|
+
return h.value.storeys[w.value];
|
|
4265
4264
|
}), ne = V(() => i.value && i.value.timeInHours), ue = V(() => {
|
|
4266
4265
|
if (i.value && i.value.timeInHours && e.showTimeOfDay)
|
|
4267
4266
|
return Lt(i.value.timeInHours);
|
|
@@ -4277,7 +4276,7 @@ const kl = { class: "virtual-tour-wrapper" }, bl = {
|
|
|
4277
4276
|
d === "virtualTour" && (g.value = !1), d === "slideShow" && (g.value = !0, c.value = !0);
|
|
4278
4277
|
},
|
|
4279
4278
|
{ immediate: !0 }
|
|
4280
|
-
), Z(
|
|
4279
|
+
), Z(h, (d) => {
|
|
4281
4280
|
if (d.storeys[w.value]) {
|
|
4282
4281
|
const O = d.storeys[w.value].defaultSunsimFile;
|
|
4283
4282
|
R.value = `${B.value}/${$.value}/${e.apartmentId}/minimap/${O}`;
|
|
@@ -4297,15 +4296,15 @@ const kl = { class: "virtual-tour-wrapper" }, bl = {
|
|
|
4297
4296
|
B.value,
|
|
4298
4297
|
$.value,
|
|
4299
4298
|
e.apartmentId
|
|
4300
|
-
), i.value && (
|
|
4299
|
+
), i.value && (L.value = i.value.cameras.find(() => !0).id), k.value = await Ve(
|
|
4301
4300
|
B.value,
|
|
4302
4301
|
$.value,
|
|
4303
4302
|
e.apartmentId
|
|
4304
4303
|
), k.value) {
|
|
4305
4304
|
let d = e.defaultWaypointIndex !== null ? e.defaultWaypointIndex : 0;
|
|
4306
|
-
m.value = d,
|
|
4305
|
+
m.value = d, L.value = k.value.cameras[d].id, A.value = k.value.cameras[d].id;
|
|
4307
4306
|
}
|
|
4308
|
-
e.showMiniMap && (
|
|
4307
|
+
e.showMiniMap && (h.value = await Ge(
|
|
4309
4308
|
B.value,
|
|
4310
4309
|
$.value,
|
|
4311
4310
|
e.apartmentId
|
|
@@ -4313,7 +4312,7 @@ const kl = { class: "virtual-tour-wrapper" }, bl = {
|
|
|
4313
4312
|
}
|
|
4314
4313
|
function ge() {
|
|
4315
4314
|
let d = e.defaultInteriorId;
|
|
4316
|
-
d || (d = s.value.defaultArchetypeID), e.validInteriorIds.length && !e.validInteriorIds.includes(d) && (d = e.validInteriorIds[0]), d || (d = s.value.archetypes[0].archetypeID),
|
|
4315
|
+
d || (d = s.value.defaultArchetypeID), e.validInteriorIds.length && !e.validInteriorIds.includes(d) && (d = e.validInteriorIds[0]), d || (d = s.value.archetypes[0].archetypeID), M.value = d;
|
|
4317
4316
|
}
|
|
4318
4317
|
function Ie() {
|
|
4319
4318
|
const d = document.getElementById("main-canvas");
|
|
@@ -4405,16 +4404,16 @@ const kl = { class: "virtual-tour-wrapper" }, bl = {
|
|
|
4405
4404
|
G != -1 && (m.value = G, O && P(d));
|
|
4406
4405
|
}
|
|
4407
4406
|
function P(d) {
|
|
4408
|
-
|
|
4407
|
+
L.value = d;
|
|
4409
4408
|
}
|
|
4410
4409
|
function le(d) {
|
|
4411
|
-
|
|
4410
|
+
M.value = d, l("onInteriorUpdate", d), l("onCameraUpdate", A.value, i.value);
|
|
4412
4411
|
}
|
|
4413
4412
|
function Se(d) {
|
|
4414
|
-
j(d, !1),
|
|
4413
|
+
j(d, !1), A.value = d, l("onCameraUpdate", d, i.value);
|
|
4415
4414
|
}
|
|
4416
4415
|
function Ee(d) {
|
|
4417
|
-
|
|
4416
|
+
_.value = d;
|
|
4418
4417
|
}
|
|
4419
4418
|
function Fe(d) {
|
|
4420
4419
|
E.value = d;
|
|
@@ -4473,23 +4472,23 @@ const kl = { class: "virtual-tour-wrapper" }, bl = {
|
|
|
4473
4472
|
}
|
|
4474
4473
|
return (d, O) => {
|
|
4475
4474
|
const G = T("v-btn");
|
|
4476
|
-
return
|
|
4477
|
-
n.value ? (
|
|
4475
|
+
return p(), F("div", kl, [
|
|
4476
|
+
n.value ? (p(), F("div", bl, "Error loading the player!!")) : H("", !0),
|
|
4478
4477
|
o("div", yl, [
|
|
4479
|
-
!f.value.isActive &&
|
|
4478
|
+
!f.value.isActive && h.value && A.value && K.value && C.value ? (p(), N(ct, {
|
|
4480
4479
|
key: 0,
|
|
4481
|
-
allCameras:
|
|
4480
|
+
allCameras: z.value,
|
|
4482
4481
|
rootUrl: U.value,
|
|
4483
4482
|
level: w.value,
|
|
4484
4483
|
backgroundImage: ve.value,
|
|
4485
|
-
minimapJSON:
|
|
4486
|
-
rotation:
|
|
4487
|
-
currentCamera:
|
|
4484
|
+
minimapJSON: h.value.storeys,
|
|
4485
|
+
rotation: _.value,
|
|
4486
|
+
currentCamera: A.value,
|
|
4488
4487
|
minimapCamera: K.value,
|
|
4489
|
-
onClose: O[0] || (O[0] = (ae) =>
|
|
4488
|
+
onClose: O[0] || (O[0] = (ae) => C.value = !1),
|
|
4490
4489
|
onSetBackgroundImage: st
|
|
4491
4490
|
}, null, 8, ["allCameras", "rootUrl", "level", "backgroundImage", "minimapJSON", "rotation", "currentCamera", "minimapCamera"])) : H("", !0),
|
|
4492
|
-
$.value &&
|
|
4491
|
+
$.value && L.value ? (p(), F("div", _l, [
|
|
4493
4492
|
y(fn, {
|
|
4494
4493
|
ref: "player",
|
|
4495
4494
|
"file-loader": d.fileLoader,
|
|
@@ -4497,7 +4496,7 @@ const kl = { class: "virtual-tour-wrapper" }, bl = {
|
|
|
4497
4496
|
showStaticImage: g.value,
|
|
4498
4497
|
isFullScreen: f.value.isActive,
|
|
4499
4498
|
rootUrl: U.value,
|
|
4500
|
-
currentCameraId:
|
|
4499
|
+
currentCameraId: L.value,
|
|
4501
4500
|
"mouse-sensitivity": d.mouseSensitivity,
|
|
4502
4501
|
"is-in-iframe": d.isInIframe,
|
|
4503
4502
|
onNewCameraCallback: Se,
|
|
@@ -4507,14 +4506,14 @@ const kl = { class: "virtual-tour-wrapper" }, bl = {
|
|
|
4507
4506
|
onNewSizeCallback: ke,
|
|
4508
4507
|
onPlayerApiCallback: it
|
|
4509
4508
|
}, {
|
|
4510
|
-
"slideshow-image":
|
|
4511
|
-
g.value ? (
|
|
4509
|
+
"slideshow-image": I(() => [
|
|
4510
|
+
g.value ? (p(), N(Tn, {
|
|
4512
4511
|
key: 0,
|
|
4513
4512
|
image: S.value
|
|
4514
4513
|
}, null, 8, ["image"])) : H("", !0)
|
|
4515
4514
|
]),
|
|
4516
|
-
"top-left":
|
|
4517
|
-
d.adminMode ? de((
|
|
4515
|
+
"top-left": I(() => [
|
|
4516
|
+
d.adminMode ? de((p(), N(G, {
|
|
4518
4517
|
key: 0,
|
|
4519
4518
|
density: "comfortable",
|
|
4520
4519
|
icon: "mdi-cog-outline",
|
|
@@ -4524,23 +4523,23 @@ const kl = { class: "virtual-tour-wrapper" }, bl = {
|
|
|
4524
4523
|
}, null, 512)), [
|
|
4525
4524
|
[me, c.value]
|
|
4526
4525
|
]) : H("", !0),
|
|
4527
|
-
|
|
4526
|
+
h.value && L.value && K.value ? de((p(), N(G, {
|
|
4528
4527
|
key: 1,
|
|
4529
4528
|
density: "comfortable",
|
|
4530
4529
|
elevation: "3",
|
|
4531
4530
|
icon: "mdi-floor-plan",
|
|
4532
4531
|
class: "mr-2",
|
|
4533
|
-
onClick: O[2] || (O[2] = (ae) =>
|
|
4532
|
+
onClick: O[2] || (O[2] = (ae) => C.value = !C.value)
|
|
4534
4533
|
}, null, 512)), [
|
|
4535
4534
|
[me, c.value]
|
|
4536
4535
|
]) : H("", !0),
|
|
4537
|
-
c.value && d.showFloorLevel && J.value.length > 1 ? (
|
|
4536
|
+
c.value && d.showFloorLevel && J.value.length > 1 ? (p(), N(In, {
|
|
4538
4537
|
key: 2,
|
|
4539
4538
|
level: E.value,
|
|
4540
4539
|
"floor-levels": J.value,
|
|
4541
4540
|
onLevel: Fe
|
|
4542
4541
|
}, null, 8, ["level", "floor-levels"])) : H("", !0),
|
|
4543
|
-
c.value && d.adminMode && a.value ? (
|
|
4542
|
+
c.value && d.adminMode && a.value ? (p(), F("div", Cl, [
|
|
4544
4543
|
y(Na, {
|
|
4545
4544
|
"project-slug": d.projectSlug,
|
|
4546
4545
|
initialSettings: d.playerSettings,
|
|
@@ -4549,28 +4548,28 @@ const kl = { class: "virtual-tour-wrapper" }, bl = {
|
|
|
4549
4548
|
}, null, 8, ["project-slug", "initialSettings"])
|
|
4550
4549
|
])) : H("", !0)
|
|
4551
4550
|
]),
|
|
4552
|
-
"top-center":
|
|
4553
|
-
c.value ? (
|
|
4551
|
+
"top-center": I(() => [
|
|
4552
|
+
c.value ? (p(), N(zn, {
|
|
4554
4553
|
key: 0,
|
|
4555
4554
|
"return-url": d.websiteUrl
|
|
4556
4555
|
}, null, 8, ["return-url"])) : H("", !0)
|
|
4557
4556
|
]),
|
|
4558
|
-
"top-right":
|
|
4559
|
-
i.value && d.showCompass ? de((
|
|
4560
|
-
y(Un, { rotation:
|
|
4557
|
+
"top-right": I(() => [
|
|
4558
|
+
i.value && d.showCompass ? de((p(), F("div", Al, [
|
|
4559
|
+
y(Un, { rotation: _.value }, null, 8, ["rotation"])
|
|
4561
4560
|
], 512)), [
|
|
4562
4561
|
[me, c.value]
|
|
4563
4562
|
]) : H("", !0),
|
|
4564
|
-
c.value && i.value && ne.value && d.showTimeOfDay ? (
|
|
4563
|
+
c.value && i.value && ne.value && d.showTimeOfDay ? (p(), N(Nn, {
|
|
4565
4564
|
key: 1,
|
|
4566
4565
|
hours: ue.value.hours,
|
|
4567
4566
|
minutes: ue.value.minutes
|
|
4568
4567
|
}, null, 8, ["hours", "minutes"])) : H("", !0)
|
|
4569
4568
|
]),
|
|
4570
|
-
"center-left":
|
|
4571
|
-
y(
|
|
4572
|
-
default:
|
|
4573
|
-
g.value ? (
|
|
4569
|
+
"center-left": I(() => [
|
|
4570
|
+
y(qe, { name: "slide-x-transition" }, {
|
|
4571
|
+
default: I(() => [
|
|
4572
|
+
g.value ? (p(), N(G, {
|
|
4574
4573
|
key: 0,
|
|
4575
4574
|
density: "comfortable",
|
|
4576
4575
|
elevation: "3",
|
|
@@ -4581,29 +4580,29 @@ const kl = { class: "virtual-tour-wrapper" }, bl = {
|
|
|
4581
4580
|
_: 1
|
|
4582
4581
|
})
|
|
4583
4582
|
]),
|
|
4584
|
-
"center-center":
|
|
4583
|
+
"center-center": I(() => [
|
|
4585
4584
|
y(Aa, {
|
|
4586
4585
|
project: B.value,
|
|
4587
4586
|
onCloseTutorial: O[3] || (O[3] = (ae) => c.value = !0)
|
|
4588
4587
|
}, null, 8, ["project"]),
|
|
4589
|
-
f.value.isActive &&
|
|
4588
|
+
f.value.isActive && h.value && A.value && K.value && C.value ? (p(), N(ct, {
|
|
4590
4589
|
key: 0,
|
|
4591
|
-
allCameras:
|
|
4590
|
+
allCameras: z.value,
|
|
4592
4591
|
rootUrl: U.value,
|
|
4593
|
-
minimapJSON:
|
|
4592
|
+
minimapJSON: h.value.storeys,
|
|
4594
4593
|
backgroundImage: ve.value,
|
|
4595
|
-
rotation:
|
|
4596
|
-
currentCamera:
|
|
4594
|
+
rotation: _.value,
|
|
4595
|
+
currentCamera: A.value,
|
|
4597
4596
|
minimapCamera: K.value,
|
|
4598
4597
|
level: w.value,
|
|
4599
|
-
onClose: O[4] || (O[4] = (ae) =>
|
|
4598
|
+
onClose: O[4] || (O[4] = (ae) => C.value = !1),
|
|
4600
4599
|
onSetBackgroundImage: st
|
|
4601
4600
|
}, null, 8, ["allCameras", "rootUrl", "minimapJSON", "backgroundImage", "rotation", "currentCamera", "minimapCamera", "level"])) : H("", !0)
|
|
4602
4601
|
]),
|
|
4603
|
-
"center-right":
|
|
4604
|
-
y(
|
|
4605
|
-
default:
|
|
4606
|
-
g.value ? (
|
|
4602
|
+
"center-right": I(() => [
|
|
4603
|
+
y(qe, { name: "slide-x-reverse-transition" }, {
|
|
4604
|
+
default: I(() => [
|
|
4605
|
+
g.value ? (p(), N(G, {
|
|
4607
4606
|
key: 0,
|
|
4608
4607
|
density: "comfortable",
|
|
4609
4608
|
elevation: "3",
|
|
@@ -4614,14 +4613,14 @@ const kl = { class: "virtual-tour-wrapper" }, bl = {
|
|
|
4614
4613
|
_: 1
|
|
4615
4614
|
})
|
|
4616
4615
|
]),
|
|
4617
|
-
"bottom-left":
|
|
4618
|
-
c.value && d.showFullScreen ? (
|
|
4616
|
+
"bottom-left": I(() => [
|
|
4617
|
+
c.value && d.showFullScreen ? (p(), N(Wn, {
|
|
4619
4618
|
key: 0,
|
|
4620
4619
|
isFullScreen: f.value.isActive,
|
|
4621
4620
|
class: "btn-fullscreen",
|
|
4622
4621
|
onToggleFullscreen: bt
|
|
4623
4622
|
}, null, 8, ["isFullScreen"])) : H("", !0),
|
|
4624
|
-
c.value && d.showSnapshot ? (
|
|
4623
|
+
c.value && d.showSnapshot ? (p(), F("div", Ll, [
|
|
4625
4624
|
y(G, {
|
|
4626
4625
|
density: "comfortable",
|
|
4627
4626
|
elevation: "3",
|
|
@@ -4629,18 +4628,18 @@ const kl = { class: "virtual-tour-wrapper" }, bl = {
|
|
|
4629
4628
|
onClick: _t
|
|
4630
4629
|
})
|
|
4631
4630
|
])) : H("", !0),
|
|
4632
|
-
c.value && d.showShare && !f.value.isActive ? (
|
|
4631
|
+
c.value && d.showShare && !f.value.isActive ? (p(), F("div", Il, [
|
|
4633
4632
|
y(En)
|
|
4634
4633
|
])) : H("", !0)
|
|
4635
4634
|
]),
|
|
4636
|
-
"bottom-center":
|
|
4637
|
-
c.value && d.showCarousel ? (
|
|
4638
|
-
d.displayViewModeSwitch ? (
|
|
4635
|
+
"bottom-center": I(() => [
|
|
4636
|
+
c.value && d.showCarousel ? (p(), F("div", Ml, [
|
|
4637
|
+
d.displayViewModeSwitch ? (p(), N(Gn, {
|
|
4639
4638
|
key: 0,
|
|
4640
4639
|
"show-static-image": g.value,
|
|
4641
4640
|
onToggle: yt
|
|
4642
4641
|
}, null, 8, ["show-static-image"])) : H("", !0),
|
|
4643
|
-
c.value && f.value.isActive ? (
|
|
4642
|
+
c.value && f.value.isActive ? (p(), N(ut, {
|
|
4644
4643
|
key: 1,
|
|
4645
4644
|
class: ye([f.value.isActive ? "full-screen" : ""]),
|
|
4646
4645
|
thumbnails: W.value,
|
|
@@ -4651,8 +4650,8 @@ const kl = { class: "virtual-tour-wrapper" }, bl = {
|
|
|
4651
4650
|
}, null, 8, ["class", "thumbnails", "active"])) : H("", !0)
|
|
4652
4651
|
])) : H("", !0)
|
|
4653
4652
|
]),
|
|
4654
|
-
"bottom-right":
|
|
4655
|
-
c.value && d.showInteriorOptions && X.value ? (
|
|
4653
|
+
"bottom-right": I(() => [
|
|
4654
|
+
c.value && d.showInteriorOptions && X.value ? (p(), N(xn, {
|
|
4656
4655
|
key: 0,
|
|
4657
4656
|
availableArchetypes: X.value,
|
|
4658
4657
|
selectedIndex: x.value,
|
|
@@ -4661,8 +4660,9 @@ const kl = { class: "virtual-tour-wrapper" }, bl = {
|
|
|
4661
4660
|
]),
|
|
4662
4661
|
_: 1
|
|
4663
4662
|
}, 8, ["file-loader", "style", "showStaticImage", "isFullScreen", "rootUrl", "currentCameraId", "mouse-sensitivity", "is-in-iframe"]),
|
|
4664
|
-
d.showCarousel && k.value ? (
|
|
4663
|
+
d.showCarousel && k.value ? (p(), N(ut, {
|
|
4665
4664
|
key: 0,
|
|
4665
|
+
class: "waypoint-carousel below-player",
|
|
4666
4666
|
thumbnails: W.value,
|
|
4667
4667
|
active: m.value,
|
|
4668
4668
|
onNext: Ae,
|
|
@@ -4674,14 +4674,14 @@ const kl = { class: "virtual-tour-wrapper" }, bl = {
|
|
|
4674
4674
|
]);
|
|
4675
4675
|
};
|
|
4676
4676
|
}
|
|
4677
|
-
}), El = /* @__PURE__ */ te(Sl, [["__scopeId", "data-v-
|
|
4677
|
+
}), El = /* @__PURE__ */ te(Sl, [["__scopeId", "data-v-64da223f"]]), Vl = {
|
|
4678
4678
|
install: function(t) {
|
|
4679
|
-
t.component("VApartmentChooser", wo), t.component("VBuildingChooser",
|
|
4679
|
+
t.component("VApartmentChooser", wo), t.component("VBuildingChooser", qo), t.component("VVirtualTour", El);
|
|
4680
4680
|
}
|
|
4681
4681
|
};
|
|
4682
4682
|
export {
|
|
4683
4683
|
wo as VApartmentChooser,
|
|
4684
|
-
|
|
4684
|
+
qo as VBuildingChooser,
|
|
4685
4685
|
El as VVirtualTour,
|
|
4686
4686
|
Vl as default
|
|
4687
4687
|
};
|