@qispace/vue3-player 0.3.39 → 0.3.40
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 Ba = Object.defineProperty;
|
|
2
2
|
var Ra = (s, t, e) => t in s ? Ba(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
|
|
3
3
|
var pe = (s, t, e) => (Ra(s, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
-
import { defineComponent as W, ref as d, computed as $, openBlock as v, createElementBlock as D, watch as U, onMounted as Ie, onBeforeUnmount as Qe, withDirectives as Ce, createElementVNode as u, normalizeStyle as
|
|
4
|
+
import { defineComponent as W, ref as d, computed as $, openBlock as v, createElementBlock as D, watch as U, onMounted as Ie, onBeforeUnmount as Qe, withDirectives as Ce, createElementVNode as u, normalizeStyle as de, vShow as ke, createVNode as C, Fragment as me, renderList as _e, createCommentVNode as R, inject as Ze, resolveComponent as E, withCtx as b, toDisplayString as Z, unref as A, createTextVNode as ae, normalizeClass as ge, createBlock as V, renderSlot as ne, provide as at, reactive as bt, watchEffect as $e, resolveDynamicComponent as Jt, normalizeProps as dt, guardReactiveProps as vt, mergeProps as Oe, nextTick as Ae, Transition as Ve, createSlots as Ua, toRefs as Te, pushScopeId as Ct, popScopeId as wt, vModelText as Ha, createStaticVNode as Xt, onBeforeUpdate as Ya, withModifiers as za } from "vue";
|
|
5
5
|
import gt from "axios";
|
|
6
6
|
import * as ja from "@qispace/player-core";
|
|
7
7
|
import { Vector3 as it, Object3D as Pa, MathUtils as Wa } from "three";
|
|
@@ -66,7 +66,7 @@ const Na = /* @__PURE__ */ W({
|
|
|
66
66
|
e[n] = a;
|
|
67
67
|
return e;
|
|
68
68
|
}, We = /* @__PURE__ */ ee(Na, [["__scopeId", "data-v-eb9b348d"]]);
|
|
69
|
-
function
|
|
69
|
+
function ce(s, t) {
|
|
70
70
|
return typeof s == "string" ? `${s}${t}` : s(t);
|
|
71
71
|
}
|
|
72
72
|
const Ga = /* @__PURE__ */ W({
|
|
@@ -82,7 +82,7 @@ const Ga = /* @__PURE__ */ W({
|
|
|
82
82
|
},
|
|
83
83
|
emits: ["selectUnit", "goToUnit", "hoverOver", "hoverOut", "pos"],
|
|
84
84
|
setup(s, { emit: t }) {
|
|
85
|
-
const e = s, n = t, a = d({ x: 0, y: 0, width: 0, height: 0 }), o = d(0), r = d(0), l = d(), m = d(), p = d(), i = d(), f = d(-1), w = d(!1), k = d(), c = d(), h = d({}), _ = d("auto"), y = d(new Me()), g = d({}), T = d(), M = d(), P = d(), I = d(), L = d(), X = $(() => P.value.isHoverEnabled), B = $(() =>
|
|
85
|
+
const e = s, n = t, a = d({ x: 0, y: 0, width: 0, height: 0 }), o = d(0), r = d(0), l = d(), m = d(), p = d(), i = d(), f = d(-1), w = d(!1), k = d(), c = d(), h = d({}), _ = d("auto"), y = d(new Me()), g = d({}), T = d(), M = d(), P = d(), I = d(), L = d(), X = $(() => P.value.isHoverEnabled), B = $(() => ce(
|
|
86
86
|
e.cdnFileResolver,
|
|
87
87
|
`/scenedata${e.viewModel.currentScene}.png`
|
|
88
88
|
)), te = $(() => B.value in h.value ? h.value[B.value] : null), x = $(() => f.value < 0 ? !1 : e.sceneData.find((K) => K.index === f.value) || !1), S = $(() => ({
|
|
@@ -143,10 +143,10 @@ const Ga = /* @__PURE__ */ W({
|
|
|
143
143
|
});
|
|
144
144
|
function G() {
|
|
145
145
|
l.value = I.value.getContext("2d", { willReadFrequently: !0 }), m.value = new Image(), m.value.onload = () => {
|
|
146
|
-
ze(), I.value.addEventListener("mousemove", De(
|
|
146
|
+
ze(), I.value.addEventListener("mousemove", De(ue, 50));
|
|
147
147
|
}, m.value.src = te.value;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function ue(N) {
|
|
150
150
|
const K = J(N.offsetX, N.offsetY);
|
|
151
151
|
w.value = K >= 0, f.value = K, a.value = {
|
|
152
152
|
x: N.offsetX,
|
|
@@ -188,7 +188,7 @@ const Ga = /* @__PURE__ */ W({
|
|
|
188
188
|
}
|
|
189
189
|
function J(N, K) {
|
|
190
190
|
k.value = N, c.value = K;
|
|
191
|
-
const ve = I.value.offsetWidth / I.value.width, je = I.value.offsetHeight / I.value.height,
|
|
191
|
+
const ve = I.value.offsetWidth / I.value.width, je = I.value.offsetHeight / I.value.height, Ue = (N / ve).toFixed(), H = (K / je).toFixed(), Q = Number(H) * (I.value.width * 4) + Number(Ue) * 4, fe = i.value.data[Q];
|
|
192
192
|
return i.value.data[Q + 3] > 0 ? fe : -1;
|
|
193
193
|
}
|
|
194
194
|
function q() {
|
|
@@ -197,9 +197,9 @@ const Ga = /* @__PURE__ */ W({
|
|
|
197
197
|
const ve = oe(K.index);
|
|
198
198
|
if (ve) {
|
|
199
199
|
const je = re(K.index);
|
|
200
|
-
let
|
|
201
|
-
!x.value && e.selectedUnitId && je === e.selectedUnitId ?
|
|
202
|
-
const H = e.colorCallback(K.unitId,
|
|
200
|
+
let Ue = "idle";
|
|
201
|
+
!x.value && e.selectedUnitId && je === e.selectedUnitId ? Ue = "selected" : x.value && f.value === K.index && (Ue = "hover");
|
|
202
|
+
const H = e.colorCallback(K.unitId, Ue);
|
|
203
203
|
if (H)
|
|
204
204
|
for (let Q = 0; Q < ve.length; Q++)
|
|
205
205
|
p.value.data[ve[Q]] = H.r, p.value.data[ve[Q] + 1] = H.g, p.value.data[ve[Q] + 2] = H.b, p.value.data[ve[Q] + 3] = H.a;
|
|
@@ -253,10 +253,10 @@ const Ga = /* @__PURE__ */ W({
|
|
|
253
253
|
function xe() {
|
|
254
254
|
w.value = !1;
|
|
255
255
|
}
|
|
256
|
-
const
|
|
256
|
+
const Re = d(!1);
|
|
257
257
|
function De(N, K) {
|
|
258
|
-
return
|
|
259
|
-
|
|
258
|
+
return Re.value = !0, function(...ve) {
|
|
259
|
+
Re.value && (Re.value = !1, N.apply(this, ve), setTimeout(() => Re.value = !0, K));
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
262
|
return (N, K) => (v(), D("div", {
|
|
@@ -268,7 +268,7 @@ const Ga = /* @__PURE__ */ W({
|
|
|
268
268
|
id: "canvas-mask",
|
|
269
269
|
ref_key: "canvas",
|
|
270
270
|
ref: I,
|
|
271
|
-
style:
|
|
271
|
+
style: de(S.value),
|
|
272
272
|
onClick: j
|
|
273
273
|
}, null, 4), [
|
|
274
274
|
[ke, !N.viewModel.isRotating]
|
|
@@ -327,7 +327,7 @@ const Ga = /* @__PURE__ */ W({
|
|
|
327
327
|
}
|
|
328
328
|
}), Ie(() => {
|
|
329
329
|
for (let M = 1; M <= 4; M++) {
|
|
330
|
-
const P =
|
|
330
|
+
const P = ce(e.cdnFileResolver, `/scenedata${M}.svg`), I = {
|
|
331
331
|
markup: "",
|
|
332
332
|
viewBox: "",
|
|
333
333
|
svgObjects: []
|
|
@@ -407,7 +407,7 @@ const Ga = /* @__PURE__ */ W({
|
|
|
407
407
|
}, [
|
|
408
408
|
Ce(u("div", {
|
|
409
409
|
class: "svg-container",
|
|
410
|
-
style:
|
|
410
|
+
style: de({
|
|
411
411
|
opacity: !l.value || !l.value.svgObjects ? 0 : 1
|
|
412
412
|
})
|
|
413
413
|
}, [
|
|
@@ -418,7 +418,7 @@ const Ga = /* @__PURE__ */ W({
|
|
|
418
418
|
(v(!0), D(me, null, _e(l.value.svgObjects, ({ index: I, svg: L }) => (v(), D("g", {
|
|
419
419
|
key: I,
|
|
420
420
|
innerHTML: L,
|
|
421
|
-
style:
|
|
421
|
+
style: de(y(I)),
|
|
422
422
|
onMouseenter: (X) => c(I),
|
|
423
423
|
onMouseleave: (X) => h(),
|
|
424
424
|
onClick: (X) => _(I)
|
|
@@ -433,7 +433,7 @@ const Ga = /* @__PURE__ */ W({
|
|
|
433
433
|
}, null, 512)
|
|
434
434
|
], 512));
|
|
435
435
|
}
|
|
436
|
-
}), Xa = /* @__PURE__ */ ee(Ja, [["__scopeId", "data-v-e6c054c7"]]),
|
|
436
|
+
}), Xa = /* @__PURE__ */ ee(Ja, [["__scopeId", "data-v-e6c054c7"]]), Be = Symbol(), Ka = {
|
|
437
437
|
key: 0,
|
|
438
438
|
class: "text-success d-none d-md-flex"
|
|
439
439
|
}, en = { class: "text-success" }, tn = /* @__PURE__ */ W({
|
|
@@ -448,7 +448,7 @@ const Ga = /* @__PURE__ */ W({
|
|
|
448
448
|
},
|
|
449
449
|
emits: ["prevUnit", "nextUnit", "goToUnit"],
|
|
450
450
|
setup(s, { emit: t }) {
|
|
451
|
-
const e = s, n = $(() => e.selectedUnitId), a = $(() => e.nextUnitId), o = $(() => e.prevUnitId), r = t, l = Ze(
|
|
451
|
+
const e = s, n = $(() => e.selectedUnitId), a = $(() => e.nextUnitId), o = $(() => e.prevUnitId), r = t, l = Ze(Be);
|
|
452
452
|
Ie(() => {
|
|
453
453
|
window.addEventListener("keydown", m);
|
|
454
454
|
}), Qe(() => {
|
|
@@ -665,19 +665,19 @@ const on = {
|
|
|
665
665
|
}
|
|
666
666
|
function c(y) {
|
|
667
667
|
const g = ("0000" + (y + 1)).slice(-4), T = e.build ? `?v=${e.build}` : "", M = [
|
|
668
|
-
`${
|
|
668
|
+
`${ce(
|
|
669
669
|
e.cdnFileResolver,
|
|
670
670
|
`/480/${g}.jpg${T}`
|
|
671
671
|
)} 480w`,
|
|
672
|
-
`${
|
|
672
|
+
`${ce(
|
|
673
673
|
e.cdnFileResolver,
|
|
674
674
|
`/960/${g}.jpg${T}`
|
|
675
675
|
)} 960w`,
|
|
676
|
-
`${
|
|
676
|
+
`${ce(
|
|
677
677
|
e.cdnFileResolver,
|
|
678
678
|
`/1280/${g}.jpg${T}`
|
|
679
679
|
)} 1280w`
|
|
680
|
-
].join(","), P =
|
|
680
|
+
].join(","), P = ce(
|
|
681
681
|
e.cdnFileResolver,
|
|
682
682
|
`/480/${g}.jpg${T}`
|
|
683
683
|
);
|
|
@@ -757,7 +757,7 @@ const on = {
|
|
|
757
757
|
o.isHoverable ? (v(), D("div", {
|
|
758
758
|
key: 0,
|
|
759
759
|
class: "floating-card",
|
|
760
|
-
style:
|
|
760
|
+
style: de({
|
|
761
761
|
left: `${o.pos.x}px`,
|
|
762
762
|
top: `${o.pos.y}px`,
|
|
763
763
|
pointerEvents: "none",
|
|
@@ -795,7 +795,7 @@ const on = {
|
|
|
795
795
|
setup(s, { expose: t, emit: e }) {
|
|
796
796
|
const n = s, a = e;
|
|
797
797
|
t({
|
|
798
|
-
adjustZoom:
|
|
798
|
+
adjustZoom: ue
|
|
799
799
|
});
|
|
800
800
|
const o = d(100), r = d(0), l = d(0), m = d(!1), p = d(!1), i = d(void 0), f = d(!1), w = d(), k = $(() => `translateX(${r.value}px) translateY(${l.value}px) scale(${c.value})`), c = $(() => o.value / 100), h = $(() => n.maxScale * 100);
|
|
801
801
|
U(
|
|
@@ -869,7 +869,7 @@ const on = {
|
|
|
869
869
|
}
|
|
870
870
|
function M(O) {
|
|
871
871
|
const { x: J, y: q } = S(O);
|
|
872
|
-
|
|
872
|
+
ue(-O.deltaY / 10, J, q), O.preventDefault();
|
|
873
873
|
}
|
|
874
874
|
function P(O) {
|
|
875
875
|
m.value = !0, f.value = !1, i.value = O;
|
|
@@ -907,7 +907,7 @@ const on = {
|
|
|
907
907
|
), { x: se, y: be } = S(O.touches[1]), { x: ie, y: Fe } = S(
|
|
908
908
|
i.value.touches[1]
|
|
909
909
|
), Le = Math.hypot(oe - ie, re - Fe), ze = Math.hypot(J - se, q - be), we = (se + J) / 2, xe = (be + q) / 2;
|
|
910
|
-
|
|
910
|
+
ue(ze - Le, we, xe);
|
|
911
911
|
}
|
|
912
912
|
i.value = O;
|
|
913
913
|
}
|
|
@@ -935,7 +935,7 @@ const on = {
|
|
|
935
935
|
-(q - J)
|
|
936
936
|
);
|
|
937
937
|
}
|
|
938
|
-
function
|
|
938
|
+
function ue(O, J, q) {
|
|
939
939
|
const oe = J !== void 0 ? J : w.value.clientWidth / 2, re = q !== void 0 ? q : w.value.clientHeight / 2, se = w.value.clientWidth, be = w.value.clientHeight, ie = se * c.value, Fe = be * c.value;
|
|
940
940
|
o.value = Math.min(Math.max(100, o.value + O), h.value);
|
|
941
941
|
const Le = se * c.value, ze = be * c.value, we = Le - ie, xe = ze - Fe;
|
|
@@ -959,10 +959,10 @@ const on = {
|
|
|
959
959
|
ref_key: "box",
|
|
960
960
|
ref: w,
|
|
961
961
|
class: "zoom-box-container",
|
|
962
|
-
style:
|
|
962
|
+
style: de({ position: n.position })
|
|
963
963
|
}, [
|
|
964
964
|
u("div", {
|
|
965
|
-
style:
|
|
965
|
+
style: de({ "transform-origin": "top left", transform: k.value }),
|
|
966
966
|
class: "zoom-box"
|
|
967
967
|
}, [
|
|
968
968
|
ne(O.$slots, "default", {}, void 0, !0)
|
|
@@ -1010,7 +1010,7 @@ class bn {
|
|
|
1010
1010
|
});
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
|
-
class
|
|
1013
|
+
class Ye {
|
|
1014
1014
|
constructor({ labels: t, language: e } = { labels: null, language: null }) {
|
|
1015
1015
|
pe(this, "_labels");
|
|
1016
1016
|
pe(this, "_language");
|
|
@@ -1051,11 +1051,11 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
|
|
|
1051
1051
|
setup(s, { emit: t }) {
|
|
1052
1052
|
const e = [0, 16, 32, 48], n = s, a = t;
|
|
1053
1053
|
at(
|
|
1054
|
-
|
|
1055
|
-
n.i18nConfig ? new
|
|
1054
|
+
Be,
|
|
1055
|
+
n.i18nConfig ? new Ye(n.i18nConfig) : new Ye()
|
|
1056
1056
|
);
|
|
1057
1057
|
const o = bt({ isReady: !1, isError: !1 }), r = d(), l = d(), m = d(), p = d(), i = d({ x: 0, y: 0, width: 0, height: 0 }), f = d(), w = d(), k = d(), c = $(() => k.value.isHoverEnabled), h = $(() => n.useSvg ? Xa : Qa), _ = $(() => n.selectedUnitId), y = $(() => n.nextUnitId), g = $(() => n.prevUnitId);
|
|
1058
|
-
|
|
1058
|
+
$e(() => {
|
|
1059
1059
|
if (_.value && p.value) {
|
|
1060
1060
|
const I = r.value[_.value];
|
|
1061
1061
|
I && (p.value.currentScene = I);
|
|
@@ -1074,12 +1074,12 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
|
|
|
1074
1074
|
for (let Y = 0; Y < Ot; Y++)
|
|
1075
1075
|
S.push(x), x = Kt(x);
|
|
1076
1076
|
return B.sort((Y, G) => {
|
|
1077
|
-
const
|
|
1077
|
+
const ue = S.findIndex(
|
|
1078
1078
|
(O) => O === r.value[Y[te]]
|
|
1079
1079
|
), j = S.findIndex(
|
|
1080
1080
|
(O) => O === r.value[G[te]]
|
|
1081
1081
|
);
|
|
1082
|
-
return
|
|
1082
|
+
return ue < j ? -1 : ue > j ? 1 : 0;
|
|
1083
1083
|
}), B;
|
|
1084
1084
|
}, X = (B) => {
|
|
1085
1085
|
p.value = new bn(B);
|
|
@@ -1199,7 +1199,7 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
|
|
|
1199
1199
|
currentTime: {}
|
|
1200
1200
|
},
|
|
1201
1201
|
setup(s) {
|
|
1202
|
-
const t = s, e = $(() =>
|
|
1202
|
+
const t = s, e = $(() => ce(t.cdnFileResolver, t.timeSampleData.filename));
|
|
1203
1203
|
return (n, a) => Ce((v(), D("img", {
|
|
1204
1204
|
key: e.value,
|
|
1205
1205
|
src: e.value,
|
|
@@ -1247,7 +1247,7 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
|
|
|
1247
1247
|
},
|
|
1248
1248
|
emits: ["goToBuilding", "hoverOverBuilding", "hoverOutBuilding"],
|
|
1249
1249
|
setup(s, { emit: t }) {
|
|
1250
|
-
const e = s, n = $(() =>
|
|
1250
|
+
const e = s, n = $(() => ce(e.cdnFileResolver, e.transitionData.filename));
|
|
1251
1251
|
return (a, o) => Ce((v(), D("img", {
|
|
1252
1252
|
key: n.value,
|
|
1253
1253
|
src: n.value,
|
|
@@ -1491,11 +1491,11 @@ const Un = /* @__PURE__ */ W({
|
|
|
1491
1491
|
rotateShortestRoute: w
|
|
1492
1492
|
});
|
|
1493
1493
|
const o = d(!1), r = d(n.currentScene), l = d(n.selectedId);
|
|
1494
|
-
|
|
1494
|
+
$e(() => {
|
|
1495
1495
|
r.value = n.currentScene;
|
|
1496
|
-
}),
|
|
1496
|
+
}), $e(() => {
|
|
1497
1497
|
l.value = n.selectedId;
|
|
1498
|
-
}),
|
|
1498
|
+
}), $e(() => {
|
|
1499
1499
|
a("onSceneChange", r.value);
|
|
1500
1500
|
});
|
|
1501
1501
|
const m = $(() => o.value ? !1 : n.apartmentChooserData.loopable ? !0 : r.value !== n.apartmentChooserData.scenes[0]), p = $(() => o.value ? !1 : n.apartmentChooserData.loopable ? !0 : r.value !== n.apartmentChooserData.scenes[n.apartmentChooserData.scenes.length - 1]);
|
|
@@ -1587,7 +1587,7 @@ const Un = /* @__PURE__ */ W({
|
|
|
1587
1587
|
() => {
|
|
1588
1588
|
r.value = e.selectedId;
|
|
1589
1589
|
}
|
|
1590
|
-
),
|
|
1590
|
+
), $e(() => {
|
|
1591
1591
|
for (const i in l) {
|
|
1592
1592
|
const { element: f, state: w } = l[i], { r: k, g: c, b: h, a: _, s: y } = e.colorCallback(i, w) || {
|
|
1593
1593
|
r: 0,
|
|
@@ -1601,9 +1601,9 @@ const Un = /* @__PURE__ */ W({
|
|
|
1601
1601
|
}), U(r, () => {
|
|
1602
1602
|
for (const i in l)
|
|
1603
1603
|
l[i].state === "selected" && i !== r.value ? l[i].state = "idle" : l[i].state !== "selected" && i === r.value && (l[i].state = "selected");
|
|
1604
|
-
}),
|
|
1604
|
+
}), $e(async () => {
|
|
1605
1605
|
a.value = await Me.loadText(
|
|
1606
|
-
|
|
1606
|
+
ce(e.cdnFileResolver, e.currentCamera.overlayFilename)
|
|
1607
1607
|
), p();
|
|
1608
1608
|
}), U(
|
|
1609
1609
|
() => o.value,
|
|
@@ -1656,7 +1656,7 @@ const Un = /* @__PURE__ */ W({
|
|
|
1656
1656
|
}));
|
|
1657
1657
|
});
|
|
1658
1658
|
}
|
|
1659
|
-
return (i, f) => (v(), V(
|
|
1659
|
+
return (i, f) => (v(), V(Ve, null, {
|
|
1660
1660
|
default: b(() => [
|
|
1661
1661
|
(v(), D("div", {
|
|
1662
1662
|
ref_key: "svgContainer",
|
|
@@ -1684,7 +1684,7 @@ const Un = /* @__PURE__ */ W({
|
|
|
1684
1684
|
const o = E("v-img");
|
|
1685
1685
|
return v(), V(o, {
|
|
1686
1686
|
src: A(qn),
|
|
1687
|
-
style:
|
|
1687
|
+
style: de(e.value)
|
|
1688
1688
|
}, null, 8, ["src", "style"]);
|
|
1689
1689
|
};
|
|
1690
1690
|
}
|
|
@@ -1716,7 +1716,7 @@ class ea {
|
|
|
1716
1716
|
this._cdnFileResolver = t, this._resourceLoader = new Me();
|
|
1717
1717
|
}
|
|
1718
1718
|
constructFileUrl(t) {
|
|
1719
|
-
return this._cdnFileResolver ?
|
|
1719
|
+
return this._cdnFileResolver ? ce(this._cdnFileResolver, `/${t}`) : null;
|
|
1720
1720
|
}
|
|
1721
1721
|
loadBuildingMapImage(t) {
|
|
1722
1722
|
const e = this.constructFileUrl(t.lookupFilename);
|
|
@@ -1964,7 +1964,7 @@ const no = {
|
|
|
1964
1964
|
try {
|
|
1965
1965
|
let j, O;
|
|
1966
1966
|
return O = await Me.loadJson(
|
|
1967
|
-
|
|
1967
|
+
ce(e.cdnFileResolver, "/apartmentChooser.json")
|
|
1968
1968
|
), parseInt(O.version) === 5 ? O : (j = ao(O), j);
|
|
1969
1969
|
} catch (j) {
|
|
1970
1970
|
i.value = !1, n("onError", j);
|
|
@@ -2056,7 +2056,7 @@ const no = {
|
|
|
2056
2056
|
function G(j) {
|
|
2057
2057
|
n("onHoverOut", j), p.value = void 0;
|
|
2058
2058
|
}
|
|
2059
|
-
function
|
|
2059
|
+
function ue(j) {
|
|
2060
2060
|
const { layerX: O, layerY: J } = j;
|
|
2061
2061
|
let q = j.target, oe = !1;
|
|
2062
2062
|
for (; q; )
|
|
@@ -2086,13 +2086,13 @@ const no = {
|
|
|
2086
2086
|
loading: !i.value || !g.value
|
|
2087
2087
|
}, {
|
|
2088
2088
|
default: b(() => [
|
|
2089
|
-
C(
|
|
2089
|
+
C(Ve, { class: "w-100 h-100" }, {
|
|
2090
2090
|
default: b(() => [
|
|
2091
2091
|
u("div", {
|
|
2092
2092
|
ref_key: "container",
|
|
2093
2093
|
ref: y,
|
|
2094
2094
|
class: ge({ mobile: T.value }),
|
|
2095
|
-
onMousemove:
|
|
2095
|
+
onMousemove: ue
|
|
2096
2096
|
}, [
|
|
2097
2097
|
u("div", no, [
|
|
2098
2098
|
u("div", oo, [
|
|
@@ -2243,7 +2243,7 @@ const no = {
|
|
|
2243
2243
|
(i) => {
|
|
2244
2244
|
a.value = Math.floor(i);
|
|
2245
2245
|
}
|
|
2246
|
-
),
|
|
2246
|
+
), $e(() => {
|
|
2247
2247
|
o.value = r(e.dateSelector.selectedDate);
|
|
2248
2248
|
}), (i, f) => {
|
|
2249
2249
|
const w = E("v-icon"), k = E("v-select"), c = E("v-progress-linear"), h = E("v-slider");
|
|
@@ -2377,8 +2377,8 @@ const no = {
|
|
|
2377
2377
|
setup(s, { emit: t }) {
|
|
2378
2378
|
const e = s, n = t;
|
|
2379
2379
|
at(
|
|
2380
|
-
|
|
2381
|
-
e.i18nConfig ? new
|
|
2380
|
+
Be,
|
|
2381
|
+
e.i18nConfig ? new Ye(e.i18nConfig) : new Ye()
|
|
2382
2382
|
);
|
|
2383
2383
|
const a = d({
|
|
2384
2384
|
preloaded: !1,
|
|
@@ -2391,7 +2391,7 @@ const no = {
|
|
|
2391
2391
|
), p = d(!1), i = d(new Me()), f = d(), w = d("0 0 0 0"), k = d(), c = d(), h = d(et.empty()), _ = d(tt.empty()), y = d(), g = $(() => y.value.isHoverEnabled);
|
|
2392
2392
|
U(l, (x, S) => {
|
|
2393
2393
|
x ? n("hoverOverBuilding", x) : n("hoverOutBuilding", S);
|
|
2394
|
-
}),
|
|
2394
|
+
}), $e(() => {
|
|
2395
2395
|
if (e.buildingChooserTimeOfDay) {
|
|
2396
2396
|
const [x, S, Y] = /^(\d\d):(\d\d)$/.exec(
|
|
2397
2397
|
e.buildingChooserTimeOfDay
|
|
@@ -2410,8 +2410,8 @@ const no = {
|
|
|
2410
2410
|
viewLongitude: S.viewLongitude
|
|
2411
2411
|
};
|
|
2412
2412
|
const Y = [];
|
|
2413
|
-
for (let { id: G, url:
|
|
2414
|
-
i.value.loadJson(
|
|
2413
|
+
for (let { id: G, url: ue } of S.buildingOverlays)
|
|
2414
|
+
i.value.loadJson(ue.replace(".png", ".svg")).then((j) => {
|
|
2415
2415
|
const J = new DOMParser().parseFromString(j, "image/svg+xml").getElementsByTagName("svg")[0];
|
|
2416
2416
|
w.value = J.getAttribute("viewBox"), Y.push({
|
|
2417
2417
|
id: G,
|
|
@@ -2441,12 +2441,12 @@ const no = {
|
|
|
2441
2441
|
x === l.value ? "hover" : "idle"
|
|
2442
2442
|
);
|
|
2443
2443
|
if (S) {
|
|
2444
|
-
const { r: Y, g: G, b:
|
|
2444
|
+
const { r: Y, g: G, b: ue, a: j, s: O } = S;
|
|
2445
2445
|
return {
|
|
2446
2446
|
strokeWidth: O !== void 0 ? O : 2,
|
|
2447
|
-
stroke: `rgb(${Y}, ${G}, ${
|
|
2447
|
+
stroke: `rgb(${Y}, ${G}, ${ue})`,
|
|
2448
2448
|
strokeOpacity: 1,
|
|
2449
|
-
fill: `rgb(${Y}, ${G}, ${
|
|
2449
|
+
fill: `rgb(${Y}, ${G}, ${ue})`,
|
|
2450
2450
|
fillOpacity: j / 255,
|
|
2451
2451
|
cursor: `${e.canGoToBuildingCallback(x) ? "cursor" : "default"} !important`
|
|
2452
2452
|
};
|
|
@@ -2501,7 +2501,7 @@ const no = {
|
|
|
2501
2501
|
})
|
|
2502
2502
|
])) : c.value ? (v(), D("div", {
|
|
2503
2503
|
key: 1,
|
|
2504
|
-
style:
|
|
2504
|
+
style: de(`height: ${o.value.height}px; position: relative`),
|
|
2505
2505
|
class: "image-container"
|
|
2506
2506
|
}, [
|
|
2507
2507
|
C(ot, {
|
|
@@ -2521,12 +2521,12 @@ const no = {
|
|
|
2521
2521
|
f.value ? Ce((v(), D("div", So, [
|
|
2522
2522
|
u("div", Io, [
|
|
2523
2523
|
(v(), D("svg", { viewBox: w.value }, [
|
|
2524
|
-
(v(!0), D(me, null, _e(f.value, ({ id: G, svg:
|
|
2524
|
+
(v(!0), D(me, null, _e(f.value, ({ id: G, svg: ue }, j) => (v(), D("g", {
|
|
2525
2525
|
key: j,
|
|
2526
|
-
innerHTML:
|
|
2526
|
+
innerHTML: ue,
|
|
2527
2527
|
"data-building-id": G,
|
|
2528
2528
|
class: ge(P(G)),
|
|
2529
|
-
style:
|
|
2529
|
+
style: de(I(G)),
|
|
2530
2530
|
onMouseover: (O) => L(O, G),
|
|
2531
2531
|
onMouseout: (O) => X(O, G),
|
|
2532
2532
|
onMousemove: (O) => B(O),
|
|
@@ -2657,8 +2657,8 @@ const no = {
|
|
|
2657
2657
|
setup(s, { emit: t }) {
|
|
2658
2658
|
const e = s, n = t;
|
|
2659
2659
|
at(
|
|
2660
|
-
|
|
2661
|
-
e.i18nConfig ? new
|
|
2660
|
+
Be,
|
|
2661
|
+
e.i18nConfig ? new Ye(e.i18nConfig) : new Ye()
|
|
2662
2662
|
);
|
|
2663
2663
|
const a = d(), o = d({
|
|
2664
2664
|
preloaded: !1,
|
|
@@ -2674,7 +2674,7 @@ const no = {
|
|
|
2674
2674
|
var x;
|
|
2675
2675
|
return (x = h.value) == null ? void 0 : x.isHoverEnabled;
|
|
2676
2676
|
});
|
|
2677
|
-
|
|
2677
|
+
$e(() => {
|
|
2678
2678
|
if (e.buildingChooserTimeOfDay) {
|
|
2679
2679
|
const [x, S, Y] = /^(\d\d):(\d\d)$/.exec(
|
|
2680
2680
|
e.buildingChooserTimeOfDay
|
|
@@ -2701,11 +2701,11 @@ const no = {
|
|
|
2701
2701
|
o.value = { preloaded: !1, ready: !1 };
|
|
2702
2702
|
}
|
|
2703
2703
|
function P(x) {
|
|
2704
|
-
const { layerX: S, layerY: Y } = x, { x: G, y:
|
|
2704
|
+
const { layerX: S, layerY: Y } = x, { x: G, y: ue } = k.value(S, Y);
|
|
2705
2705
|
return p.value.getBuildingId(
|
|
2706
2706
|
i.value,
|
|
2707
2707
|
G,
|
|
2708
|
-
|
|
2708
|
+
ue
|
|
2709
2709
|
);
|
|
2710
2710
|
}
|
|
2711
2711
|
function I() {
|
|
@@ -2745,7 +2745,7 @@ const no = {
|
|
|
2745
2745
|
})
|
|
2746
2746
|
])) : m.value ? (v(), D("div", {
|
|
2747
2747
|
key: 1,
|
|
2748
|
-
style:
|
|
2748
|
+
style: de(`cursor: ${f.value ? "pointer" : "auto"};height: ${r.value.height}px; position: relative`),
|
|
2749
2749
|
class: "image-container"
|
|
2750
2750
|
}, [
|
|
2751
2751
|
C(ot, {
|
|
@@ -2884,7 +2884,7 @@ const no = {
|
|
|
2884
2884
|
currentTime: {}
|
|
2885
2885
|
},
|
|
2886
2886
|
setup(s) {
|
|
2887
|
-
const t = s, e = $(() =>
|
|
2887
|
+
const t = s, e = $(() => ce(t.cdnFileResolver, t.timeSampleData.filename));
|
|
2888
2888
|
return (n, a) => Ce((v(), D("img", {
|
|
2889
2889
|
key: e.value,
|
|
2890
2890
|
src: e.value,
|
|
@@ -3114,7 +3114,7 @@ const no = {
|
|
|
3114
3114
|
emits: ["onClick", "onHoverOver", "onHoverOut", "updateSvgContainer"],
|
|
3115
3115
|
setup(s, { emit: t }) {
|
|
3116
3116
|
const e = s, n = t, a = d(), o = d(), r = d(e.selectedId), l = bt({});
|
|
3117
|
-
|
|
3117
|
+
$e(() => {
|
|
3118
3118
|
for (const i in l) {
|
|
3119
3119
|
const { element: f, state: w } = l[i], { r: k, g: c, b: h, a: _, s: y } = e.colorCallback(i, w) || {
|
|
3120
3120
|
r: 0,
|
|
@@ -3133,9 +3133,9 @@ const no = {
|
|
|
3133
3133
|
), U(r, () => {
|
|
3134
3134
|
for (const i in l)
|
|
3135
3135
|
l[i].state === "selected" && i !== r.value ? l[i].state = "idle" : l[i].state !== "selected" && i === r.value && (l[i].state = "selected");
|
|
3136
|
-
}),
|
|
3136
|
+
}), $e(async () => {
|
|
3137
3137
|
a.value = await Me.loadText(
|
|
3138
|
-
|
|
3138
|
+
ce(e.cdnFileResolver, e.currentCamera.overlayFilename)
|
|
3139
3139
|
), p();
|
|
3140
3140
|
}), U(
|
|
3141
3141
|
() => o.value,
|
|
@@ -3181,7 +3181,7 @@ const no = {
|
|
|
3181
3181
|
}));
|
|
3182
3182
|
});
|
|
3183
3183
|
}
|
|
3184
|
-
return (i, f) => (v(), V(
|
|
3184
|
+
return (i, f) => (v(), V(Ve, null, {
|
|
3185
3185
|
default: b(() => [
|
|
3186
3186
|
(v(), D("div", {
|
|
3187
3187
|
ref_key: "svgContainer",
|
|
@@ -3287,7 +3287,7 @@ const tl = {
|
|
|
3287
3287
|
return L;
|
|
3288
3288
|
let X;
|
|
3289
3289
|
return X = await Me.loadJson(
|
|
3290
|
-
|
|
3290
|
+
ce(e.cdnFileResolver, "/buildingChooser.json")
|
|
3291
3291
|
), parseInt(X.version) === 5 ? X : (L = el(X), L);
|
|
3292
3292
|
} catch (L) {
|
|
3293
3293
|
m.value = !1, n("onError", L);
|
|
@@ -3381,7 +3381,7 @@ const tl = {
|
|
|
3381
3381
|
loading: !m.value || !c.value
|
|
3382
3382
|
}, {
|
|
3383
3383
|
default: b(() => [
|
|
3384
|
-
C(
|
|
3384
|
+
C(Ve, { class: "w-100 h-100" }, {
|
|
3385
3385
|
default: b(() => [
|
|
3386
3386
|
u("div", {
|
|
3387
3387
|
ref_key: "container",
|
|
@@ -3538,7 +3538,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
3538
3538
|
w.value = l.value;
|
|
3539
3539
|
}), U([o, r], async () => {
|
|
3540
3540
|
f.value && await f.value.loadInterior(
|
|
3541
|
-
(y) =>
|
|
3541
|
+
(y) => ce(
|
|
3542
3542
|
a.value,
|
|
3543
3543
|
`/${o.value}/${r.value}${y}`
|
|
3544
3544
|
),
|
|
@@ -3588,7 +3588,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
3588
3588
|
if (!fl)
|
|
3589
3589
|
return;
|
|
3590
3590
|
const P = await new e.Main(
|
|
3591
|
-
(I) =>
|
|
3591
|
+
(I) => ce(
|
|
3592
3592
|
a.value,
|
|
3593
3593
|
`/${o.value}/${r.value}${I}`
|
|
3594
3594
|
),
|
|
@@ -3640,7 +3640,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
3640
3640
|
u("div", Dl, [
|
|
3641
3641
|
u("canvas", {
|
|
3642
3642
|
id: "qpc",
|
|
3643
|
-
style:
|
|
3643
|
+
style: de(A(m) ? "visibility:hidden" : "visibility:visible")
|
|
3644
3644
|
}, null, 4)
|
|
3645
3645
|
])
|
|
3646
3646
|
])
|
|
@@ -3658,7 +3658,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
3658
3658
|
},
|
|
3659
3659
|
emits: ["level"],
|
|
3660
3660
|
setup(s, { emit: t }) {
|
|
3661
|
-
const e = s, n = t, a = Ze(
|
|
3661
|
+
const e = s, n = t, a = Ze(Be), o = $(() => {
|
|
3662
3662
|
const i = e.floorLevels;
|
|
3663
3663
|
return i.sort(), i;
|
|
3664
3664
|
}), r = $(() => o.value.indexOf(e.level) + 1 <= o.value.length / 2 ? "lower" : "upper"), l = $(() => r.value === "lower"), m = $(() => r.value === "upper");
|
|
@@ -3716,7 +3716,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
3716
3716
|
},
|
|
3717
3717
|
emits: ["selectInterior"],
|
|
3718
3718
|
setup(s, { emit: t }) {
|
|
3719
|
-
const e = s, n = t, a = Ze(
|
|
3719
|
+
const e = s, n = t, a = Ze(Be);
|
|
3720
3720
|
return (o, r) => {
|
|
3721
3721
|
const l = E("v-icon"), m = E("v-btn"), p = E("v-img"), i = E("v-menu");
|
|
3722
3722
|
return v(), D("div", null, [
|
|
@@ -3785,13 +3785,13 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
3785
3785
|
return (o, r) => {
|
|
3786
3786
|
const l = E("v-img");
|
|
3787
3787
|
return v(), D("div", {
|
|
3788
|
-
style:
|
|
3788
|
+
style: de(n.value),
|
|
3789
3789
|
class: "compass-wrapper"
|
|
3790
3790
|
}, [
|
|
3791
3791
|
C(l, {
|
|
3792
3792
|
class: "compass-needle",
|
|
3793
3793
|
src: e.value,
|
|
3794
|
-
style:
|
|
3794
|
+
style: de(a.value)
|
|
3795
3795
|
}, null, 8, ["src", "style"])
|
|
3796
3796
|
], 4);
|
|
3797
3797
|
};
|
|
@@ -3840,7 +3840,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
3840
3840
|
},
|
|
3841
3841
|
emits: ["toggle"],
|
|
3842
3842
|
setup(s, { emit: t }) {
|
|
3843
|
-
const e = s, n = t, a = Ze(
|
|
3843
|
+
const e = s, n = t, a = Ze(Be), o = $(() => {
|
|
3844
3844
|
let r = "virtualTour";
|
|
3845
3845
|
return e.showStaticImage || (r = "slideShow"), r;
|
|
3846
3846
|
});
|
|
@@ -4400,7 +4400,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4400
4400
|
__name: "VTutorial",
|
|
4401
4401
|
emits: ["closeTutorial"],
|
|
4402
4402
|
setup(s, { emit: t }) {
|
|
4403
|
-
const e = t, n = Ze(
|
|
4403
|
+
const e = t, n = Ze(Be), a = d(!1), o = d(!1), r = $(() => [
|
|
4404
4404
|
/Android/i,
|
|
4405
4405
|
/webOS/i,
|
|
4406
4406
|
/iPhone/i,
|
|
@@ -4414,7 +4414,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4414
4414
|
}
|
|
4415
4415
|
return (m, p) => {
|
|
4416
4416
|
const i = E("v-icon"), f = E("v-card-title"), w = E("v-btn"), k = E("v-divider"), c = E("v-card-text"), h = E("v-card-actions"), _ = E("v-card"), y = E("v-expand-transition"), g = E("v-checkbox");
|
|
4417
|
-
return v(), V(
|
|
4417
|
+
return v(), V(Ve, { name: "fade-transition" }, {
|
|
4418
4418
|
default: b(() => [
|
|
4419
4419
|
C(_, {
|
|
4420
4420
|
class: "mx-auto",
|
|
@@ -5086,15 +5086,15 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
5086
5086
|
u("div", fr, [
|
|
5087
5087
|
u("div", {
|
|
5088
5088
|
class: "web-minimap",
|
|
5089
|
-
style:
|
|
5089
|
+
style: de(M.value)
|
|
5090
5090
|
}, [
|
|
5091
5091
|
u("div", {
|
|
5092
5092
|
class: "minimap-background-image",
|
|
5093
|
-
style:
|
|
5093
|
+
style: de(T.value)
|
|
5094
5094
|
}, null, 4),
|
|
5095
5095
|
u("div", {
|
|
5096
5096
|
class: "center-pivot",
|
|
5097
|
-
style:
|
|
5097
|
+
style: de(m.value)
|
|
5098
5098
|
}, [
|
|
5099
5099
|
(v(!0), D(me, null, _e(g.value, (Y) => (v(), D("div", {
|
|
5100
5100
|
key: Y.id
|
|
@@ -5102,13 +5102,13 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
5102
5102
|
c.value.floorLevel === Y.floorLevel ? (v(), D("div", {
|
|
5103
5103
|
key: 0,
|
|
5104
5104
|
class: "single-camera-marker",
|
|
5105
|
-
style:
|
|
5105
|
+
style: de(L(Y))
|
|
5106
5106
|
}, null, 4)) : R("", !0),
|
|
5107
5107
|
ne(x.$slots, "default", {
|
|
5108
5108
|
id: Y.id,
|
|
5109
5109
|
camera: Y,
|
|
5110
5110
|
active: c.value.id === Y.id,
|
|
5111
|
-
style:
|
|
5111
|
+
style: de({
|
|
5112
5112
|
...L(Y),
|
|
5113
5113
|
position: "absolute",
|
|
5114
5114
|
zIndex: "3"
|
|
@@ -5118,7 +5118,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
5118
5118
|
key: 0,
|
|
5119
5119
|
class: "rotation-marker-component-base rotation-marker-component",
|
|
5120
5120
|
rotation: h.value,
|
|
5121
|
-
style:
|
|
5121
|
+
style: de({ ...L(Y) })
|
|
5122
5122
|
}, null, 8, ["rotation", "style"])) : R("", !0)
|
|
5123
5123
|
], !0)
|
|
5124
5124
|
]))), 128))
|
|
@@ -5138,7 +5138,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
5138
5138
|
const t = s, e = $(() => t.rotation + t.transformAngle - 90);
|
|
5139
5139
|
return (n, a) => (v(), D("div", {
|
|
5140
5140
|
class: "minimap-compass elevation-5",
|
|
5141
|
-
style:
|
|
5141
|
+
style: de({ scale: n.scale })
|
|
5142
5142
|
}, [
|
|
5143
5143
|
C(lt, {
|
|
5144
5144
|
class: "north-indicator",
|
|
@@ -5203,7 +5203,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
5203
5203
|
}
|
|
5204
5204
|
async function c(y) {
|
|
5205
5205
|
const T = await (await fetch(
|
|
5206
|
-
|
|
5206
|
+
ce(
|
|
5207
5207
|
e.cdnFileResolver,
|
|
5208
5208
|
`/${e.apartmentJson.type}/${e.apartmentJson.id}/minimap/${y}`
|
|
5209
5209
|
)
|
|
@@ -5483,7 +5483,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5483
5483
|
},
|
|
5484
5484
|
emits: ["toggleSunStudy"],
|
|
5485
5485
|
setup(s, { emit: t }) {
|
|
5486
|
-
const e = t, n = Ze(
|
|
5486
|
+
const e = t, n = Ze(Be);
|
|
5487
5487
|
return (a, o) => {
|
|
5488
5488
|
const r = E("v-btn");
|
|
5489
5489
|
return !a.displaySunsim && a.showUI ? (v(), V(r, {
|
|
@@ -5658,7 +5658,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5658
5658
|
}, Yr = /* @__PURE__ */ W({
|
|
5659
5659
|
__name: "VSocialShare",
|
|
5660
5660
|
setup(s) {
|
|
5661
|
-
const t = Ze(
|
|
5661
|
+
const t = Ze(Be), e = d(!1), n = d(location.href);
|
|
5662
5662
|
function a() {
|
|
5663
5663
|
return window.open(
|
|
5664
5664
|
"https://www.facebook.com/sharer/sharer.php?u=" + encodeURIComponent(location.href),
|
|
@@ -5831,7 +5831,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5831
5831
|
return (n, a) => (v(), D("div", zr, [
|
|
5832
5832
|
u("div", {
|
|
5833
5833
|
class: ge(["img-div", [n.aspectRatio]]),
|
|
5834
|
-
style:
|
|
5834
|
+
style: de(e.value)
|
|
5835
5835
|
}, null, 6)
|
|
5836
5836
|
]));
|
|
5837
5837
|
}
|
|
@@ -6003,7 +6003,7 @@ const Nr = {
|
|
|
6003
6003
|
screenToWorld: La,
|
|
6004
6004
|
clearCurrentMarkerLayer: Aa
|
|
6005
6005
|
});
|
|
6006
|
-
const Y = d(!1), G = d(!1),
|
|
6006
|
+
const Y = d(!1), G = d(!1), ue = d(!1), j = d(), O = d(), J = d(), q = d(), oe = d(), re = d(0), se = d(), be = d(), ie = d(), Fe = d(0), Le = d(0), ze = d(0), we = d(!1), xe = d(!1), Re = d(), De = d(!1), N = d(!1), K = d(
|
|
6007
6007
|
new ia(document, "player-wrapper")
|
|
6008
6008
|
), ve = d(), je = $(() => {
|
|
6009
6009
|
if (O.value) {
|
|
@@ -6014,7 +6014,7 @@ const Nr = {
|
|
|
6014
6014
|
return z = z.sort(), z;
|
|
6015
6015
|
} else
|
|
6016
6016
|
return [];
|
|
6017
|
-
}),
|
|
6017
|
+
}), Ue = $(() => {
|
|
6018
6018
|
let F = 0;
|
|
6019
6019
|
if (O.value) {
|
|
6020
6020
|
const z = O.value.cameras.map(
|
|
@@ -6052,21 +6052,21 @@ const Nr = {
|
|
|
6052
6052
|
`/${F.archetypeID}/${o.value}/thumbs/200/${z}.jpg`
|
|
6053
6053
|
)
|
|
6054
6054
|
};
|
|
6055
|
-
}) : []),
|
|
6056
|
-
if (q.value && q.value.storeys &&
|
|
6057
|
-
return q.value.storeys[
|
|
6058
|
-
}), rt = $(() => O.value && O.value.timeInHours),
|
|
6055
|
+
}) : []), Ee = $(() => {
|
|
6056
|
+
if (q.value && q.value.storeys && Ue.value in q.value.storeys)
|
|
6057
|
+
return q.value.storeys[Ue.value];
|
|
6058
|
+
}), rt = $(() => O.value && O.value.timeInHours), He = $(() => {
|
|
6059
6059
|
if (O.value && O.value.timeInHours && f.value)
|
|
6060
6060
|
return Va(O.value.timeInHours);
|
|
6061
6061
|
});
|
|
6062
6062
|
at(
|
|
6063
|
-
|
|
6064
|
-
p.value ? new
|
|
6063
|
+
Be,
|
|
6064
|
+
p.value ? new Ye(p.value) : new Ye()
|
|
6065
6065
|
);
|
|
6066
6066
|
const Ne = $(() => /Android|webOS|iPhone|iPad|BlackBerry|Windows Phone|Opera Mini|IEMobile|Mobile/i.test(
|
|
6067
6067
|
window.navigator.userAgent
|
|
6068
6068
|
)), Vt = $(() => Ne.value ? "platform-mobile" : "platform-desktop"), ua = $(() => {
|
|
6069
|
-
const F =
|
|
6069
|
+
const F = ce(
|
|
6070
6070
|
a.value,
|
|
6071
6071
|
"/config.json"
|
|
6072
6072
|
);
|
|
@@ -6082,7 +6082,7 @@ const Nr = {
|
|
|
6082
6082
|
try {
|
|
6083
6083
|
be.value = void 0, await va(), pa(), await ma(), K.value.setup(), fa();
|
|
6084
6084
|
} catch (F) {
|
|
6085
|
-
|
|
6085
|
+
ue.value = !0, S("onError", F);
|
|
6086
6086
|
}
|
|
6087
6087
|
},
|
|
6088
6088
|
{ immediate: !0 }
|
|
@@ -6096,7 +6096,7 @@ const Nr = {
|
|
|
6096
6096
|
if (De.value) {
|
|
6097
6097
|
N.value = !1;
|
|
6098
6098
|
const F = Je(ie.value);
|
|
6099
|
-
|
|
6099
|
+
Re.value = F[0].timeSamples.find(
|
|
6100
6100
|
(z) => z.timeInHours === F[0].defaultHour
|
|
6101
6101
|
);
|
|
6102
6102
|
} else
|
|
@@ -6107,7 +6107,7 @@ const Nr = {
|
|
|
6107
6107
|
Y.value = !0;
|
|
6108
6108
|
}, 1e3);
|
|
6109
6109
|
} catch (F) {
|
|
6110
|
-
|
|
6110
|
+
ue.value = !0, S("onError", F);
|
|
6111
6111
|
}
|
|
6112
6112
|
}), Qe(() => {
|
|
6113
6113
|
document.removeEventListener("wheel", St);
|
|
@@ -6116,7 +6116,7 @@ const Nr = {
|
|
|
6116
6116
|
N.value = !0, Y.value = !1, F && da();
|
|
6117
6117
|
}
|
|
6118
6118
|
function da() {
|
|
6119
|
-
const F =
|
|
6119
|
+
const F = ce(
|
|
6120
6120
|
a.value,
|
|
6121
6121
|
"/config.json"
|
|
6122
6122
|
);
|
|
@@ -6177,7 +6177,7 @@ const Nr = {
|
|
|
6177
6177
|
} catch (F) {
|
|
6178
6178
|
console.error(
|
|
6179
6179
|
"Error loading config.json - ",
|
|
6180
|
-
|
|
6180
|
+
ce(a.value, "/config.json"),
|
|
6181
6181
|
F
|
|
6182
6182
|
);
|
|
6183
6183
|
return;
|
|
@@ -6319,7 +6319,7 @@ const Nr = {
|
|
|
6319
6319
|
return S("onSnapshot", Xe, $a), Xe;
|
|
6320
6320
|
}
|
|
6321
6321
|
function ft(F) {
|
|
6322
|
-
let z =
|
|
6322
|
+
let z = ce(a.value, F);
|
|
6323
6323
|
return z && I.value && !z.startsWith("blob:") && (z = z + `?v=${Date.now()}`), z;
|
|
6324
6324
|
}
|
|
6325
6325
|
async function ht(F) {
|
|
@@ -6357,13 +6357,13 @@ const Nr = {
|
|
|
6357
6357
|
return v(), D("div", {
|
|
6358
6358
|
class: ge(["virtual-tour-wrapper", [Vt.value]])
|
|
6359
6359
|
}, [
|
|
6360
|
-
|
|
6360
|
+
ue.value ? (v(), D("div", Nr, "Error loading the player!!")) : R("", !0),
|
|
6361
6361
|
u("div", Gr, [
|
|
6362
|
-
!K.value.isActive && q.value && ie.value &&
|
|
6362
|
+
!K.value.isActive && q.value && ie.value && Ee.value && se.value && xe.value ? (v(), V(Nt, {
|
|
6363
6363
|
key: 0,
|
|
6364
6364
|
"cdn-file-resolver": A(a),
|
|
6365
6365
|
"apartment-json": O.value,
|
|
6366
|
-
level:
|
|
6366
|
+
level: Ue.value,
|
|
6367
6367
|
"minimap-json": q.value,
|
|
6368
6368
|
rotation: Fe.value,
|
|
6369
6369
|
"current-camera": ie.value,
|
|
@@ -6377,7 +6377,7 @@ const Nr = {
|
|
|
6377
6377
|
ref_key: "vPlayerInstance",
|
|
6378
6378
|
ref: ve,
|
|
6379
6379
|
"cdn-file-resolver": A(a),
|
|
6380
|
-
style:
|
|
6380
|
+
style: de({ zIndex: we.value ? 1 : 2 }),
|
|
6381
6381
|
"show-static-image": we.value,
|
|
6382
6382
|
"current-camera-id": be.value,
|
|
6383
6383
|
"mouse-sensitivity": A(P),
|
|
@@ -6415,7 +6415,7 @@ const Nr = {
|
|
|
6415
6415
|
}, null, 512), [
|
|
6416
6416
|
[ke, N.value]
|
|
6417
6417
|
]),
|
|
6418
|
-
q.value && be.value &&
|
|
6418
|
+
q.value && be.value && Ee.value ? Ce((v(), V(le, {
|
|
6419
6419
|
key: 1,
|
|
6420
6420
|
density: "comfortable",
|
|
6421
6421
|
elevation: "3",
|
|
@@ -6451,17 +6451,17 @@ const Nr = {
|
|
|
6451
6451
|
}, [
|
|
6452
6452
|
N.value && O.value && rt.value && A(f) ? (v(), V(Xl, {
|
|
6453
6453
|
key: 0,
|
|
6454
|
-
hours:
|
|
6455
|
-
minutes:
|
|
6454
|
+
hours: He.value.hours,
|
|
6455
|
+
minutes: He.value.minutes,
|
|
6456
6456
|
class: "time-of-day",
|
|
6457
|
-
style:
|
|
6458
|
-
cursor: q.value && ie.value &&
|
|
6457
|
+
style: de({
|
|
6458
|
+
cursor: q.value && ie.value && Ee.value ? "pointer" : "default"
|
|
6459
6459
|
})
|
|
6460
6460
|
}, null, 8, ["hours", "minutes", "style"])) : R("", !0)
|
|
6461
6461
|
])
|
|
6462
6462
|
]),
|
|
6463
6463
|
"center-left": b(() => [
|
|
6464
|
-
C(
|
|
6464
|
+
C(Ve, { name: "slide-x-transition" }, {
|
|
6465
6465
|
default: b(() => [
|
|
6466
6466
|
we.value ? (v(), V(le, {
|
|
6467
6467
|
key: 0,
|
|
@@ -6479,19 +6479,19 @@ const Nr = {
|
|
|
6479
6479
|
key: 0,
|
|
6480
6480
|
onCloseTutorial: z[5] || (z[5] = (Se) => ca(Se))
|
|
6481
6481
|
})) : R("", !0),
|
|
6482
|
-
K.value.isActive && q.value && ie.value &&
|
|
6482
|
+
K.value.isActive && q.value && ie.value && Ee.value && xe.value ? (v(), V(Nt, {
|
|
6483
6483
|
key: 1,
|
|
6484
6484
|
"cdn-file-resolver": A(a),
|
|
6485
6485
|
"apartment-json": O.value,
|
|
6486
6486
|
"minimap-json": q.value,
|
|
6487
6487
|
rotation: Fe.value,
|
|
6488
6488
|
"current-camera": ie.value,
|
|
6489
|
-
level:
|
|
6489
|
+
level: Ue.value,
|
|
6490
6490
|
onClose: z[6] || (z[6] = (Se) => xe.value = !1)
|
|
6491
6491
|
}, null, 8, ["cdn-file-resolver", "apartment-json", "minimap-json", "rotation", "current-camera", "level"])) : R("", !0)
|
|
6492
6492
|
]),
|
|
6493
6493
|
"center-right": b(() => [
|
|
6494
|
-
C(
|
|
6494
|
+
C(Ve, { name: "slide-x-reverse-transition" }, {
|
|
6495
6495
|
default: b(() => [
|
|
6496
6496
|
we.value ? (v(), V(le, {
|
|
6497
6497
|
key: 0,
|
|
@@ -6531,7 +6531,7 @@ const Nr = {
|
|
|
6531
6531
|
])) : R("", !0)
|
|
6532
6532
|
]),
|
|
6533
6533
|
"bottom-center": b(() => [
|
|
6534
|
-
C(
|
|
6534
|
+
C(Ve, null, {
|
|
6535
6535
|
default: b(() => [
|
|
6536
6536
|
u("div", null, [
|
|
6537
6537
|
u("div", {
|
|
@@ -6547,11 +6547,11 @@ const Nr = {
|
|
|
6547
6547
|
onToggleSunStudy: z[7] || (z[7] = (Se) => De.value = !De.value)
|
|
6548
6548
|
}, null, 8, ["displaySunsim", "showUI"])) : R("", !0)
|
|
6549
6549
|
], 2),
|
|
6550
|
-
!Ne.value && !Pe.value && be.value && De.value && Ge.value(ie.value) && Je(ie.value)[0] &&
|
|
6550
|
+
!Ne.value && !Pe.value && be.value && De.value && Ge.value(ie.value) && Je(ie.value)[0] && Re.value ? (v(), V(Gt, {
|
|
6551
6551
|
key: 0,
|
|
6552
6552
|
class: "sunsim-slider-desktop",
|
|
6553
6553
|
"current-day": Ge.value(ie.value) ? Je(ie.value)[0] : void 0,
|
|
6554
|
-
"current-time":
|
|
6554
|
+
"current-time": Re.value,
|
|
6555
6555
|
onOnTimeChange: Ht,
|
|
6556
6556
|
onToggleSunStudy: z[8] || (z[8] = (Se) => De.value = !De.value)
|
|
6557
6557
|
}, null, 8, ["current-day", "current-time"])) : R("", !0),
|
|
@@ -6592,7 +6592,7 @@ const Nr = {
|
|
|
6592
6592
|
]),
|
|
6593
6593
|
_: 1
|
|
6594
6594
|
}, 8, ["cdn-file-resolver", "style", "show-static-image", "current-camera-id", "mouse-sensitivity", "interior-id", "apartment-id"]),
|
|
6595
|
-
C(
|
|
6595
|
+
C(Ve, null, {
|
|
6596
6596
|
default: b(() => [
|
|
6597
6597
|
A(i) && J.value && Ne.value && N.value ? (v(), V(_t, {
|
|
6598
6598
|
key: 0,
|
|
@@ -6617,11 +6617,11 @@ const Nr = {
|
|
|
6617
6617
|
_: 1
|
|
6618
6618
|
}),
|
|
6619
6619
|
Ne.value ? (v(), D("div", ei, [
|
|
6620
|
-
!Pe.value && be.value && De.value && Ge.value(ie.value) && Je(ie.value)[0] &&
|
|
6620
|
+
!Pe.value && be.value && De.value && Ge.value(ie.value) && Je(ie.value)[0] && Re.value ? (v(), V(Gt, {
|
|
6621
6621
|
key: 0,
|
|
6622
6622
|
class: "mt-1",
|
|
6623
6623
|
"current-day": Ge.value(ie.value) ? Je(ie.value)[0] : void 0,
|
|
6624
|
-
"current-time":
|
|
6624
|
+
"current-time": Re.value,
|
|
6625
6625
|
onOnTimeChange: Ht,
|
|
6626
6626
|
onToggleSunStudy: z[11] || (z[11] = (Se) => De.value = !De.value)
|
|
6627
6627
|
}, null, 8, ["current-day", "current-time"])) : R("", !0)
|
|
@@ -6715,8 +6715,8 @@ const Nr = {
|
|
|
6715
6715
|
setup(s) {
|
|
6716
6716
|
const t = s;
|
|
6717
6717
|
at(
|
|
6718
|
-
|
|
6719
|
-
t.i18nConfig ? new
|
|
6718
|
+
Be,
|
|
6719
|
+
t.i18nConfig ? new Ye(t.i18nConfig) : new Ye()
|
|
6720
6720
|
);
|
|
6721
6721
|
const e = d(0), n = d(
|
|
6722
6722
|
new ia(document, "player-wrapper")
|
|
@@ -6765,7 +6765,7 @@ const Nr = {
|
|
|
6765
6765
|
"top-center": b(() => []),
|
|
6766
6766
|
"top-right": b(() => []),
|
|
6767
6767
|
"center-left": b(() => [
|
|
6768
|
-
C(
|
|
6768
|
+
C(Ve, { name: "slide-x-transition" }, {
|
|
6769
6769
|
default: b(() => [
|
|
6770
6770
|
a.value.length > 1 ? (v(), V(k, {
|
|
6771
6771
|
key: 0,
|
|
@@ -6780,7 +6780,7 @@ const Nr = {
|
|
|
6780
6780
|
]),
|
|
6781
6781
|
"center-center": b(() => []),
|
|
6782
6782
|
"center-right": b(() => [
|
|
6783
|
-
C(
|
|
6783
|
+
C(Ve, { name: "slide-x-reverse-transition" }, {
|
|
6784
6784
|
default: b(() => [
|
|
6785
6785
|
a.value.length > 1 ? (v(), V(k, {
|
|
6786
6786
|
key: 0,
|
|
@@ -6859,7 +6859,7 @@ const Nr = {
|
|
|
6859
6859
|
a("cameraSet", f.value);
|
|
6860
6860
|
});
|
|
6861
6861
|
const k = $(() => {
|
|
6862
|
-
const y =
|
|
6862
|
+
const y = ce(n.cdnFileResolver.value, "").replace(
|
|
6863
6863
|
`/${o.value.type}/${o.value.id}`,
|
|
6864
6864
|
""
|
|
6865
6865
|
);
|
|
@@ -6872,16 +6872,16 @@ const Nr = {
|
|
|
6872
6872
|
n.cdnFileResolver,
|
|
6873
6873
|
async () => {
|
|
6874
6874
|
o.value = await (await fetch(
|
|
6875
|
-
|
|
6875
|
+
ce(n.cdnFileResolver.value, "/apartment.json")
|
|
6876
6876
|
)).json(), a("apartmentJsonLoaded", o.value), r.value = await (await fetch(
|
|
6877
|
-
|
|
6877
|
+
ce(n.cdnFileResolver.value, "/minimap/minimap.json")
|
|
6878
6878
|
)).json(), a("minimapJsonLoaded", r.value);
|
|
6879
6879
|
},
|
|
6880
6880
|
{ immediate: !0 }
|
|
6881
6881
|
), U(
|
|
6882
6882
|
[c, n.cdnFileResolver],
|
|
6883
6883
|
() => {
|
|
6884
|
-
n.cdnFileResolver.value && c.value && (l.value = c.value.defaultSunsimFile ?
|
|
6884
|
+
n.cdnFileResolver.value && c.value && (l.value = c.value.defaultSunsimFile ? ce(n.cdnFileResolver.value, "/minimap/sunsim0_13.jpg") : ce(
|
|
6885
6885
|
n.cdnFileResolver.value,
|
|
6886
6886
|
`/minimap/${c.value.defaultSunsimFile}`
|
|
6887
6887
|
));
|
|
@@ -6899,7 +6899,7 @@ const Nr = {
|
|
|
6899
6899
|
default: b(() => [
|
|
6900
6900
|
u("div", null, [
|
|
6901
6901
|
u("div", {
|
|
6902
|
-
style:
|
|
6902
|
+
style: de({ ...w.value, position: "relative" }),
|
|
6903
6903
|
ref_key: "fitContainer",
|
|
6904
6904
|
ref: p
|
|
6905
6905
|
}, [
|
|
@@ -6925,7 +6925,7 @@ const Nr = {
|
|
|
6925
6925
|
id: T,
|
|
6926
6926
|
camera: M,
|
|
6927
6927
|
active: P,
|
|
6928
|
-
style:
|
|
6928
|
+
style: de(I)
|
|
6929
6929
|
}, void 0, !0)
|
|
6930
6930
|
]),
|
|
6931
6931
|
_: 3
|
|
@@ -6953,7 +6953,7 @@ const Nr = {
|
|
|
6953
6953
|
currentTime: {}
|
|
6954
6954
|
},
|
|
6955
6955
|
setup(s) {
|
|
6956
|
-
const t = s, { timeSampleData: e, cdnFileResolver: n, currentTime: a } = Te(t), o = $(() =>
|
|
6956
|
+
const t = s, { timeSampleData: e, cdnFileResolver: n, currentTime: a } = Te(t), o = $(() => ce(n.value, e.value.filename));
|
|
6957
6957
|
return (r, l) => Ce((v(), D("img", {
|
|
6958
6958
|
key: o.value,
|
|
6959
6959
|
src: o.value,
|
|
@@ -6989,7 +6989,7 @@ const Nr = {
|
|
|
6989
6989
|
currentTime: {}
|
|
6990
6990
|
},
|
|
6991
6991
|
setup(s) {
|
|
6992
|
-
const t = s, { cameraData: e, cdnFileResolver: n, currentCamera: a, currentTime: o } = Te(t), r = $(() =>
|
|
6992
|
+
const t = s, { cameraData: e, cdnFileResolver: n, currentCamera: a, currentTime: o } = Te(t), r = $(() => ce(
|
|
6993
6993
|
n.value,
|
|
6994
6994
|
a.value.defaultFilename
|
|
6995
6995
|
));
|
|
@@ -7015,7 +7015,7 @@ const Nr = {
|
|
|
7015
7015
|
currentTransition: {}
|
|
7016
7016
|
},
|
|
7017
7017
|
setup(s) {
|
|
7018
|
-
const t = s, { transitionData: e, cdnFileResolver: n, currentTransition: a } = Te(t), o = $(() =>
|
|
7018
|
+
const t = s, { transitionData: e, cdnFileResolver: n, currentTransition: a } = Te(t), o = $(() => ce(n.value, e.value.filename));
|
|
7019
7019
|
return (r, l) => Ce((v(), D("img", {
|
|
7020
7020
|
key: o.value,
|
|
7021
7021
|
src: o.value,
|
|
@@ -7170,8 +7170,8 @@ const Ti = {
|
|
|
7170
7170
|
c.cameraName ? (v(), D("div", Ri, Z(c.cameraName), 1)) : R("", !0),
|
|
7171
7171
|
u("div", {
|
|
7172
7172
|
class: "camera-thumbnail-image",
|
|
7173
|
-
style:
|
|
7174
|
-
backgroundImage: `url(${A(
|
|
7173
|
+
style: de({
|
|
7174
|
+
backgroundImage: `url(${A(ce)(
|
|
7175
7175
|
A(r),
|
|
7176
7176
|
c.defaultFilename
|
|
7177
7177
|
)})`
|
|
@@ -7218,13 +7218,13 @@ const Ti = {
|
|
|
7218
7218
|
const f = E("v-icon"), w = E("v-slider"), k = E("v-field");
|
|
7219
7219
|
return v(), D("div", {
|
|
7220
7220
|
class: ge({ "d-inline-block": !0, mobile: A(n) }),
|
|
7221
|
-
style:
|
|
7221
|
+
style: de({
|
|
7222
7222
|
flex: A(n) && A(a).timeSamples.length > 1 ? 1 : void 0,
|
|
7223
7223
|
verticalAlign: "top"
|
|
7224
7224
|
})
|
|
7225
7225
|
}, [
|
|
7226
7226
|
C(k, {
|
|
7227
|
-
style:
|
|
7227
|
+
style: de(
|
|
7228
7228
|
A(a).timeSamples.length > 1 ? {
|
|
7229
7229
|
width: A(n) ? "100%" : "300px",
|
|
7230
7230
|
height: A(n) ? "28px" : "36px"
|
|
@@ -7337,7 +7337,7 @@ const Ti = {
|
|
|
7337
7337
|
emits: ["onClick", "onHoverOver", "onHoverOut", "updateSvgContainer", "onError"],
|
|
7338
7338
|
setup(s, { emit: t }) {
|
|
7339
7339
|
const e = s, { cdnFileResolver: n, colorCallback: a, currentCamera: o, selectedId: r } = Te(e), l = t, m = d(!0), p = d(), i = d(), f = bt({});
|
|
7340
|
-
|
|
7340
|
+
$e(() => {
|
|
7341
7341
|
for (const c in f) {
|
|
7342
7342
|
const { element: h, state: _ } = f[c], { r: y, g, b: T, a: M, s: P } = a.value(c, _) || {
|
|
7343
7343
|
r: 0,
|
|
@@ -7351,10 +7351,10 @@ const Ti = {
|
|
|
7351
7351
|
}), U(r, () => {
|
|
7352
7352
|
for (const c in f)
|
|
7353
7353
|
f[c].state === "selected" && c !== r.value ? f[c].state = "idle" : f[c].state !== "selected" && c === r.value && (f[c].state = "selected");
|
|
7354
|
-
}),
|
|
7354
|
+
}), $e(async () => {
|
|
7355
7355
|
try {
|
|
7356
7356
|
m.value = !1, p.value = await Me.loadText(
|
|
7357
|
-
|
|
7357
|
+
ce(n.value, o.value.overlayFilename)
|
|
7358
7358
|
), k();
|
|
7359
7359
|
} catch (c) {
|
|
7360
7360
|
l("onError", c);
|
|
@@ -7421,7 +7421,7 @@ const Ti = {
|
|
|
7421
7421
|
}
|
|
7422
7422
|
});
|
|
7423
7423
|
}
|
|
7424
|
-
return (c, h) => (v(), V(
|
|
7424
|
+
return (c, h) => (v(), V(Ve, null, {
|
|
7425
7425
|
default: b(() => [
|
|
7426
7426
|
Ce((v(), D("div", {
|
|
7427
7427
|
ref_key: "svgContainer",
|
|
@@ -7766,10 +7766,10 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7766
7766
|
mobileBreakpoint: k
|
|
7767
7767
|
} = Te(n), c = e;
|
|
7768
7768
|
at(
|
|
7769
|
-
|
|
7770
|
-
l.value ? new
|
|
7769
|
+
Be,
|
|
7770
|
+
l.value ? new Ye(l.value) : new Ye()
|
|
7771
7771
|
);
|
|
7772
|
-
const h = d(), _ = d(), y = d(), g = d(null), T = d(4), M = d(), P = d(!1), I = d(!1), L = d(), X = $(() => L.value.isHoverEnabled), B = d({ x: 0, y: 0, width: 0, height: 0 }), te = d(), x = d(), S = d(), Y = d(!1), G = d(),
|
|
7772
|
+
const h = d(), _ = d(), y = d(), g = d(null), T = d(4), M = d(), P = d(!1), I = d(!1), L = d(), X = $(() => L.value.isHoverEnabled), B = d({ x: 0, y: 0, width: 0, height: 0 }), te = d(), x = d(), S = d(), Y = d(!1), G = d(), ue = d({
|
|
7773
7773
|
current: 100,
|
|
7774
7774
|
min: 100,
|
|
7775
7775
|
max: 1e3
|
|
@@ -7780,16 +7780,18 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7780
7780
|
currentDay: _.value,
|
|
7781
7781
|
currentTime: y.value,
|
|
7782
7782
|
currentTransition: g.value,
|
|
7783
|
-
currentScene: T.value
|
|
7783
|
+
currentScene: T.value,
|
|
7784
|
+
currentZoom: ue.value.current
|
|
7784
7785
|
}),
|
|
7785
7786
|
setState: ({
|
|
7786
7787
|
currentCamera: H,
|
|
7787
7788
|
currentDay: Q,
|
|
7788
7789
|
currentTime: fe,
|
|
7789
7790
|
currentTransition: he,
|
|
7790
|
-
currentScene: ye
|
|
7791
|
+
currentScene: ye,
|
|
7792
|
+
currentZoom: Ee
|
|
7791
7793
|
}) => {
|
|
7792
|
-
h.value = H, _.value = Q, y.value = fe, g.value = he, T.value = ye;
|
|
7794
|
+
h.value = H, _.value = Q, y.value = fe, g.value = he, T.value = ye, ue.value.current = Ee;
|
|
7793
7795
|
}
|
|
7794
7796
|
}), Ie(() => {
|
|
7795
7797
|
P.value = !0, j.value = !1;
|
|
@@ -7923,23 +7925,23 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7923
7925
|
} else
|
|
7924
7926
|
he = he.parentElement;
|
|
7925
7927
|
if (ye) {
|
|
7926
|
-
const
|
|
7928
|
+
const Ee = H.currentTarget;
|
|
7927
7929
|
B.value = {
|
|
7928
7930
|
x: Q,
|
|
7929
7931
|
y: fe,
|
|
7930
|
-
width:
|
|
7931
|
-
height:
|
|
7932
|
+
width: Ee.clientWidth,
|
|
7933
|
+
height: Ee.clientHeight
|
|
7932
7934
|
};
|
|
7933
7935
|
} else
|
|
7934
7936
|
B.value = void 0;
|
|
7935
7937
|
c("onMouseMove", H, B.value);
|
|
7936
7938
|
}
|
|
7937
|
-
function
|
|
7939
|
+
function Re({
|
|
7938
7940
|
min: H,
|
|
7939
7941
|
max: Q,
|
|
7940
7942
|
current: fe
|
|
7941
7943
|
}) {
|
|
7942
|
-
|
|
7944
|
+
ue.value = { min: H, max: Q, current: fe };
|
|
7943
7945
|
}
|
|
7944
7946
|
function De(H) {
|
|
7945
7947
|
G.value.adjustZoom(H ? 10 : -10);
|
|
@@ -7953,12 +7955,12 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7953
7955
|
const Q = T.value;
|
|
7954
7956
|
if (S.value.loopable) {
|
|
7955
7957
|
const fe = S.value.stillCameraIndices.length, he = N(Q), ye = N(H);
|
|
7956
|
-
let
|
|
7957
|
-
for (;
|
|
7958
|
-
|
|
7959
|
-
for (
|
|
7958
|
+
let Ee = 0, rt = 0, He = he;
|
|
7959
|
+
for (; He++, He >= fe && (He = 0), He !== ye; )
|
|
7960
|
+
Ee++;
|
|
7961
|
+
for (He = he; He--, He < 0 && (He += fe), He !== ye; )
|
|
7960
7962
|
rt++;
|
|
7961
|
-
|
|
7963
|
+
Ee === rt ? ve(Q, H) : Ee < rt ? he < ye ? ve(Q, H) : ve(Q, H + S.value.cameras.length) : he >= ye ? ve(Q, H) : ve(Q + S.value.cameras.length, H);
|
|
7962
7964
|
} else
|
|
7963
7965
|
ve(Q, H);
|
|
7964
7966
|
}
|
|
@@ -7978,7 +7980,7 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7978
7980
|
function je(H) {
|
|
7979
7981
|
j.value = !0, c("onError", H);
|
|
7980
7982
|
}
|
|
7981
|
-
const
|
|
7983
|
+
const Ue = (H) => H * (180 / Math.PI);
|
|
7982
7984
|
return (H, Q) => {
|
|
7983
7985
|
const fe = E("v-skeleton-loader");
|
|
7984
7986
|
return v(), D(me, null, [
|
|
@@ -7988,7 +7990,7 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7988
7990
|
loading: !P.value || !S.value
|
|
7989
7991
|
}, {
|
|
7990
7992
|
default: b(() => [
|
|
7991
|
-
C(
|
|
7993
|
+
C(Ve, { class: "w-100 h-100" }, {
|
|
7992
7994
|
default: b(() => [
|
|
7993
7995
|
u("div", {
|
|
7994
7996
|
ref_key: "container",
|
|
@@ -8000,7 +8002,7 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
8000
8002
|
H.showUi ? (v(), D("div", {
|
|
8001
8003
|
key: 0,
|
|
8002
8004
|
class: "persistent actions-bar top-right pa-2",
|
|
8003
|
-
style:
|
|
8005
|
+
style: de({
|
|
8004
8006
|
zIndex: 7,
|
|
8005
8007
|
top: Y.value && q.value.length > 1 ? "60px" : 0
|
|
8006
8008
|
})
|
|
@@ -8008,17 +8010,17 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
8008
8010
|
h.value.cameraRotation ? (v(), V(lt, {
|
|
8009
8011
|
key: 0,
|
|
8010
8012
|
class: "mb-2",
|
|
8011
|
-
style:
|
|
8013
|
+
style: de({
|
|
8012
8014
|
zIndex: 7,
|
|
8013
8015
|
width: Y.value ? 32 : 40,
|
|
8014
8016
|
height: Y.value ? 32 : 40
|
|
8015
8017
|
}),
|
|
8016
|
-
longitude:
|
|
8018
|
+
longitude: Ue(h.value.cameraRotation.y) + 270
|
|
8017
8019
|
}, null, 8, ["style", "longitude"])) : R("", !0),
|
|
8018
8020
|
C(Qi, {
|
|
8019
8021
|
"is-mobile-sized": Y.value,
|
|
8020
|
-
"can-zoom-out":
|
|
8021
|
-
"can-zoom-in":
|
|
8022
|
+
"can-zoom-out": ue.value.min < ue.value.current,
|
|
8023
|
+
"can-zoom-in": ue.value.max > ue.value.current,
|
|
8022
8024
|
disabled: I.value,
|
|
8023
8025
|
onOnZoomIn: Q[0] || (Q[0] = (he) => De(!0)),
|
|
8024
8026
|
onOnZoomOut: Q[1] || (Q[1] = (he) => De(!1))
|
|
@@ -8045,7 +8047,7 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
8045
8047
|
ref_key: "zoomBox",
|
|
8046
8048
|
ref: G,
|
|
8047
8049
|
position: "relative",
|
|
8048
|
-
onUpdate:
|
|
8050
|
+
onUpdate: Re
|
|
8049
8051
|
}, {
|
|
8050
8052
|
default: b(() => [
|
|
8051
8053
|
(v(!0), D(me, null, _e(q.value, (he, ye) => (v(), V(Fi, {
|
|
@@ -8138,7 +8140,7 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
8138
8140
|
], 64);
|
|
8139
8141
|
};
|
|
8140
8142
|
}
|
|
8141
|
-
}), iu = /* @__PURE__ */ ee(ru, [["__scopeId", "data-v-
|
|
8143
|
+
}), iu = /* @__PURE__ */ ee(ru, [["__scopeId", "data-v-7d1794db"]]), hu = {
|
|
8142
8144
|
install: function(t) {
|
|
8143
8145
|
t.component("VApartmentChooser", Fn), t.component("VBuildingChooser", Ro), t.component("VVirtualTour", ni), t.component("VManualSlideShow", wi), t.component("VStructureChooser", iu);
|
|
8144
8146
|
}
|