@qispace/vue3-player 0.3.40 → 0.3.41
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
|
|
4
|
+
import { defineComponent as W, ref as d, computed as $, openBlock as v, createElementBlock as D, watch as U, onMounted as xe, onBeforeUnmount as Qe, withDirectives as Ce, createElementVNode as u, normalizeStyle as de, vShow as Se, 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 Ve, resolveDynamicComponent as Jt, normalizeProps as dt, guardReactiveProps as vt, mergeProps as Oe, nextTick as ke, Transition as Ee, 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 ue(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 = $(() => ue(
|
|
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 = $(() => ({
|
|
@@ -123,14 +123,14 @@ const Ga = /* @__PURE__ */ W({
|
|
|
123
123
|
}), U(Y, () => {
|
|
124
124
|
w.value ? n("hoverOver", {
|
|
125
125
|
hoverUnit: x.value ? x.value.unitId : !1,
|
|
126
|
-
closeHandler: () =>
|
|
126
|
+
closeHandler: () => De()
|
|
127
127
|
}) : n("hoverOut", {
|
|
128
128
|
hoverUnit: x.value ? x.value.unitId : !1,
|
|
129
|
-
closeHandler: () =>
|
|
129
|
+
closeHandler: () => De()
|
|
130
130
|
});
|
|
131
131
|
}), U(a, () => {
|
|
132
132
|
n("pos", a.value);
|
|
133
|
-
}),
|
|
133
|
+
}), xe(() => {
|
|
134
134
|
M.value = () => {
|
|
135
135
|
clearTimeout(T.value), Le(), T.value = setTimeout(() => {
|
|
136
136
|
Le();
|
|
@@ -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",
|
|
146
|
+
ze(), I.value.addEventListener("mousemove", Ae(ce, 50));
|
|
147
147
|
}, m.value.src = te.value;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function ce(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, Re = (N / ve).toFixed(), H = (K / je).toFixed(), Q = Number(H) * (I.value.width * 4) + Number(Re) * 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 Re = "idle";
|
|
201
|
+
!x.value && e.selectedUnitId && je === e.selectedUnitId ? Re = "selected" : x.value && f.value === K.index && (Re = "hover");
|
|
202
|
+
const H = e.colorCallback(K.unitId, Re);
|
|
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;
|
|
@@ -250,13 +250,13 @@ const Ga = /* @__PURE__ */ W({
|
|
|
250
250
|
function we() {
|
|
251
251
|
Fe(), q(), l.value && p.value && l.value.putImageData(p.value, 0, 0);
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function De() {
|
|
254
254
|
w.value = !1;
|
|
255
255
|
}
|
|
256
|
-
const
|
|
257
|
-
function
|
|
258
|
-
return
|
|
259
|
-
|
|
256
|
+
const Be = d(!1);
|
|
257
|
+
function Ae(N, K) {
|
|
258
|
+
return Be.value = !0, function(...ve) {
|
|
259
|
+
Be.value && (Be.value = !1, N.apply(this, ve), setTimeout(() => Be.value = !0, K));
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
262
|
return (N, K) => (v(), D("div", {
|
|
@@ -271,7 +271,7 @@ const Ga = /* @__PURE__ */ W({
|
|
|
271
271
|
style: de(S.value),
|
|
272
272
|
onClick: j
|
|
273
273
|
}, null, 4), [
|
|
274
|
-
[
|
|
274
|
+
[Se, !N.viewModel.isRotating]
|
|
275
275
|
]),
|
|
276
276
|
C(We, {
|
|
277
277
|
ref_key: "hoverProbe",
|
|
@@ -325,9 +325,9 @@ const Ga = /* @__PURE__ */ W({
|
|
|
325
325
|
}
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
|
-
}),
|
|
328
|
+
}), xe(() => {
|
|
329
329
|
for (let M = 1; M <= 4; M++) {
|
|
330
|
-
const P =
|
|
330
|
+
const P = ue(e.cdnFileResolver, `/scenedata${M}.svg`), I = {
|
|
331
331
|
markup: "",
|
|
332
332
|
viewBox: "",
|
|
333
333
|
svgObjects: []
|
|
@@ -425,7 +425,7 @@ const Ga = /* @__PURE__ */ W({
|
|
|
425
425
|
}, null, 44, qa))), 128))
|
|
426
426
|
], 8, Za)) : R("", !0)
|
|
427
427
|
], 4), [
|
|
428
|
-
[
|
|
428
|
+
[Se, !M.viewModel.isRotating]
|
|
429
429
|
]),
|
|
430
430
|
C(We, {
|
|
431
431
|
ref_key: "hoverProbe",
|
|
@@ -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"]]), $e = 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,8 +448,8 @@ 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(
|
|
452
|
-
|
|
451
|
+
const e = s, n = $(() => e.selectedUnitId), a = $(() => e.nextUnitId), o = $(() => e.prevUnitId), r = t, l = Ze($e);
|
|
452
|
+
xe(() => {
|
|
453
453
|
window.addEventListener("keydown", m);
|
|
454
454
|
}), Qe(() => {
|
|
455
455
|
window.removeEventListener("keydown", m);
|
|
@@ -625,7 +625,7 @@ const on = {
|
|
|
625
625
|
const T = _(g, y), M = h(g, y);
|
|
626
626
|
i(g, T, M);
|
|
627
627
|
}
|
|
628
|
-
),
|
|
628
|
+
), xe(() => {
|
|
629
629
|
w();
|
|
630
630
|
});
|
|
631
631
|
function i(y, g, T) {
|
|
@@ -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
|
+
`${ue(
|
|
669
669
|
e.cdnFileResolver,
|
|
670
670
|
`/480/${g}.jpg${T}`
|
|
671
671
|
)} 480w`,
|
|
672
|
-
`${
|
|
672
|
+
`${ue(
|
|
673
673
|
e.cdnFileResolver,
|
|
674
674
|
`/960/${g}.jpg${T}`
|
|
675
675
|
)} 960w`,
|
|
676
|
-
`${
|
|
676
|
+
`${ue(
|
|
677
677
|
e.cdnFileResolver,
|
|
678
678
|
`/1280/${g}.jpg${T}`
|
|
679
679
|
)} 1280w`
|
|
680
|
-
].join(","), P =
|
|
680
|
+
].join(","), P = ue(
|
|
681
681
|
e.cdnFileResolver,
|
|
682
682
|
`/480/${g}.jpg${T}`
|
|
683
683
|
);
|
|
@@ -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: ce
|
|
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(
|
|
@@ -814,7 +814,7 @@ const on = {
|
|
|
814
814
|
() => {
|
|
815
815
|
n.mobile ? y() : T();
|
|
816
816
|
}
|
|
817
|
-
),
|
|
817
|
+
), xe(() => {
|
|
818
818
|
n.desktop && _(), n.mobile && y();
|
|
819
819
|
}), Qe(() => {
|
|
820
820
|
n.desktop && g(), n.mobile && T();
|
|
@@ -869,7 +869,7 @@ const on = {
|
|
|
869
869
|
}
|
|
870
870
|
function M(O) {
|
|
871
871
|
const { x: J, y: q } = S(O);
|
|
872
|
-
|
|
872
|
+
ce(-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;
|
|
@@ -906,8 +906,8 @@ const on = {
|
|
|
906
906
|
i.value.touches[0]
|
|
907
907
|
), { x: se, y: be } = S(O.touches[1]), { x: ie, y: Fe } = S(
|
|
908
908
|
i.value.touches[1]
|
|
909
|
-
), Le = Math.hypot(oe - ie, re - Fe), ze = Math.hypot(J - se, q - be), we = (se + J) / 2,
|
|
910
|
-
|
|
909
|
+
), Le = Math.hypot(oe - ie, re - Fe), ze = Math.hypot(J - se, q - be), we = (se + J) / 2, De = (be + q) / 2;
|
|
910
|
+
ce(ze - Le, we, De);
|
|
911
911
|
}
|
|
912
912
|
i.value = O;
|
|
913
913
|
}
|
|
@@ -935,11 +935,11 @@ const on = {
|
|
|
935
935
|
-(q - J)
|
|
936
936
|
);
|
|
937
937
|
}
|
|
938
|
-
function
|
|
938
|
+
function ce(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
|
-
const Le = se * c.value, ze = be * c.value, we = Le - ie,
|
|
942
|
-
r.value -= oe / se * we, l.value -= re / be *
|
|
941
|
+
const Le = se * c.value, ze = be * c.value, we = Le - ie, De = ze - Fe;
|
|
942
|
+
r.value -= oe / se * we, l.value -= re / be * De, Y(0), G(0);
|
|
943
943
|
}
|
|
944
944
|
function j() {
|
|
945
945
|
a("update", {
|
|
@@ -1010,7 +1010,7 @@ class bn {
|
|
|
1010
1010
|
});
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
|
-
class
|
|
1013
|
+
class He {
|
|
1014
1014
|
constructor({ labels: t, language: e } = { labels: null, language: null }) {
|
|
1015
1015
|
pe(this, "_labels");
|
|
1016
1016
|
pe(this, "_language");
|
|
@@ -1051,16 +1051,16 @@ 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
|
+
$e,
|
|
1055
|
+
n.i18nConfig ? new He(n.i18nConfig) : new He()
|
|
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
|
+
Ve(() => {
|
|
1059
1059
|
if (_.value && p.value) {
|
|
1060
1060
|
const I = r.value[_.value];
|
|
1061
1061
|
I && (p.value.currentScene = I);
|
|
1062
1062
|
}
|
|
1063
|
-
}),
|
|
1063
|
+
}), xe(async () => {
|
|
1064
1064
|
const I = n.apartmentChooserData && n.apartmentChooserData.startScene !== void 0 ? n.apartmentChooserData.startScene : Dn;
|
|
1065
1065
|
m.value = n.apartmentChooserData && n.apartmentChooserData.scenes !== void 0 ? n.apartmentChooserData.scenes : e, l.value = n.apartmentChooserData && n.apartmentChooserData.sceneData !== void 0 ? n.apartmentChooserData.sceneData.map((B) => ({
|
|
1066
1066
|
unitId: B.apartmentID,
|
|
@@ -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 ce = 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 ce < j ? -1 : ce > j ? 1 : 0;
|
|
1083
1083
|
}), B;
|
|
1084
1084
|
}, X = (B) => {
|
|
1085
1085
|
p.value = new bn(B);
|
|
@@ -1199,13 +1199,13 @@ 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 = $(() => ue(t.cdnFileResolver, t.timeSampleData.filename));
|
|
1203
1203
|
return (n, a) => Ce((v(), D("img", {
|
|
1204
1204
|
key: e.value,
|
|
1205
1205
|
src: e.value,
|
|
1206
1206
|
width: "100%"
|
|
1207
1207
|
}, null, 8, Ln)), [
|
|
1208
|
-
[
|
|
1208
|
+
[Se, n.timeSampleData === n.currentTime]
|
|
1209
1209
|
]);
|
|
1210
1210
|
}
|
|
1211
1211
|
}), On = /* @__PURE__ */ ee(Mn, [["__scopeId", "data-v-dbbdc1e0"]]), Tn = /* @__PURE__ */ W({
|
|
@@ -1247,13 +1247,13 @@ 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 = $(() => ue(e.cdnFileResolver, e.transitionData.filename));
|
|
1251
1251
|
return (a, o) => Ce((v(), D("img", {
|
|
1252
1252
|
key: n.value,
|
|
1253
1253
|
src: n.value,
|
|
1254
1254
|
class: "position-absolute top-left w-100 h-100"
|
|
1255
1255
|
}, null, 8, Vn)), [
|
|
1256
|
-
[
|
|
1256
|
+
[Se, a.transitionData === a.currentTransition]
|
|
1257
1257
|
]);
|
|
1258
1258
|
}
|
|
1259
1259
|
}), Bn = /* @__PURE__ */ ee($n, [["__scopeId", "data-v-ecb88391"]]);
|
|
@@ -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
|
+
Ve(() => {
|
|
1495
1495
|
r.value = n.currentScene;
|
|
1496
|
-
}),
|
|
1496
|
+
}), Ve(() => {
|
|
1497
1497
|
l.value = n.selectedId;
|
|
1498
|
-
}),
|
|
1498
|
+
}), Ve(() => {
|
|
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
|
+
), Ve(() => {
|
|
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
|
+
}), Ve(async () => {
|
|
1605
1605
|
a.value = await Me.loadText(
|
|
1606
|
-
|
|
1606
|
+
ue(e.cdnFileResolver, e.currentCamera.overlayFilename)
|
|
1607
1607
|
), p();
|
|
1608
1608
|
}), U(
|
|
1609
1609
|
() => o.value,
|
|
@@ -1612,7 +1612,7 @@ const Un = /* @__PURE__ */ W({
|
|
|
1612
1612
|
}
|
|
1613
1613
|
);
|
|
1614
1614
|
function m() {
|
|
1615
|
-
|
|
1615
|
+
ke(() => {
|
|
1616
1616
|
var f;
|
|
1617
1617
|
const i = (f = o.value) == null ? void 0 : f.firstChild;
|
|
1618
1618
|
if (i) {
|
|
@@ -1633,7 +1633,7 @@ const Un = /* @__PURE__ */ W({
|
|
|
1633
1633
|
});
|
|
1634
1634
|
}
|
|
1635
1635
|
function p() {
|
|
1636
|
-
|
|
1636
|
+
ke(() => {
|
|
1637
1637
|
var f;
|
|
1638
1638
|
const i = (f = o.value) == null ? void 0 : f.firstChild;
|
|
1639
1639
|
i && (n("updateSvgContainer", i), m(), i.querySelectorAll(
|
|
@@ -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(Ee, null, {
|
|
1660
1660
|
default: b(() => [
|
|
1661
1661
|
(v(), D("div", {
|
|
1662
1662
|
ref_key: "svgContainer",
|
|
@@ -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 ? ue(this._cdnFileResolver, `/${t}`) : null;
|
|
1720
1720
|
}
|
|
1721
1721
|
loadBuildingMapImage(t) {
|
|
1722
1722
|
const e = this.constructFileUrl(t.lookupFilename);
|
|
@@ -1944,7 +1944,7 @@ const no = {
|
|
|
1944
1944
|
), m = d(4), p = d(), i = d(!1), f = d(!1), w = d(), k = d(), c = $(() => k.value.isHoverEnabled), h = d({ x: 0, y: 0, width: 0, height: 0 }), _ = d(), y = d(), g = d(
|
|
1945
1945
|
e.apartmentChooserData
|
|
1946
1946
|
), T = d(!1);
|
|
1947
|
-
|
|
1947
|
+
xe(() => {
|
|
1948
1948
|
i.value = !0;
|
|
1949
1949
|
}), U(i, (j) => {
|
|
1950
1950
|
j && n("onInitialize");
|
|
@@ -1964,7 +1964,7 @@ const no = {
|
|
|
1964
1964
|
try {
|
|
1965
1965
|
let j, O;
|
|
1966
1966
|
return O = await Me.loadJson(
|
|
1967
|
-
|
|
1967
|
+
ue(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);
|
|
@@ -2009,7 +2009,7 @@ const no = {
|
|
|
2009
2009
|
);
|
|
2010
2010
|
}
|
|
2011
2011
|
function X(j) {
|
|
2012
|
-
m.value = j, Ft(g.value.cameras[m.value]) ? l.value = g.value.cameras[m.value] : (
|
|
2012
|
+
m.value = j, Ft(g.value.cameras[m.value]) ? l.value = g.value.cameras[m.value] : (ke(() => {
|
|
2013
2013
|
B(
|
|
2014
2014
|
g.value.cameras[m.value]
|
|
2015
2015
|
);
|
|
@@ -2019,7 +2019,7 @@ const no = {
|
|
|
2019
2019
|
const O = o.value;
|
|
2020
2020
|
a.value = j, m.value = g.value.cameras.findIndex(
|
|
2021
2021
|
(J) => J === a.value
|
|
2022
|
-
),
|
|
2022
|
+
), ke(() => {
|
|
2023
2023
|
te(
|
|
2024
2024
|
a.value.sunsimDayOfYear.find(
|
|
2025
2025
|
(J) => J.dayOfYear === O.dayOfYear
|
|
@@ -2029,7 +2029,7 @@ const no = {
|
|
|
2029
2029
|
}
|
|
2030
2030
|
function te(j) {
|
|
2031
2031
|
const O = r.value;
|
|
2032
|
-
o.value = j,
|
|
2032
|
+
o.value = j, ke(() => {
|
|
2033
2033
|
x(
|
|
2034
2034
|
o.value.timeSamples.find(
|
|
2035
2035
|
(J) => J.timeInHours === O.timeInHours
|
|
@@ -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 ce(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(Ee, { 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: ce
|
|
2096
2096
|
}, [
|
|
2097
2097
|
u("div", no, [
|
|
2098
2098
|
u("div", oo, [
|
|
@@ -2173,7 +2173,7 @@ const no = {
|
|
|
2173
2173
|
onOnHoverOut: G,
|
|
2174
2174
|
onUpdateSvgContainer: O[2] || (O[2] = (q) => _.value = q)
|
|
2175
2175
|
}, null, 8, ["cdn-file-resolver", "color-callback", "current-camera", "selected-id"]), [
|
|
2176
|
-
[
|
|
2176
|
+
[Se, l.value === null]
|
|
2177
2177
|
])
|
|
2178
2178
|
]),
|
|
2179
2179
|
_: 1
|
|
@@ -2243,7 +2243,7 @@ const no = {
|
|
|
2243
2243
|
(i) => {
|
|
2244
2244
|
a.value = Math.floor(i);
|
|
2245
2245
|
}
|
|
2246
|
-
),
|
|
2246
|
+
), Ve(() => {
|
|
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");
|
|
@@ -2317,7 +2317,7 @@ const no = {
|
|
|
2317
2317
|
(p) => {
|
|
2318
2318
|
n("reset"), m(p);
|
|
2319
2319
|
}
|
|
2320
|
-
),
|
|
2320
|
+
), xe(() => {
|
|
2321
2321
|
m(e.imageUrls), new ResizeObserver((p) => {
|
|
2322
2322
|
window.requestAnimationFrame(() => {
|
|
2323
2323
|
const i = p[0].contentRect.width, f = p[0].contentRect.height;
|
|
@@ -2351,7 +2351,7 @@ const no = {
|
|
|
2351
2351
|
onLoad: i[0] || (i[0] = (k) => o.value.partLoaded())
|
|
2352
2352
|
}, null, 42, bo))), 128))
|
|
2353
2353
|
], 512)), [
|
|
2354
|
-
[
|
|
2354
|
+
[Se, a.value === "loaded"]
|
|
2355
2355
|
]) : R("", !0)
|
|
2356
2356
|
]));
|
|
2357
2357
|
}
|
|
@@ -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
|
+
$e,
|
|
2381
|
+
e.i18nConfig ? new He(e.i18nConfig) : new He()
|
|
2382
2382
|
);
|
|
2383
2383
|
const a = d({
|
|
2384
2384
|
preloaded: !1,
|
|
@@ -2391,14 +2391,14 @@ 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
|
+
}), Ve(() => {
|
|
2395
2395
|
if (e.buildingChooserTimeOfDay) {
|
|
2396
2396
|
const [x, S, Y] = /^(\d\d):(\d\d)$/.exec(
|
|
2397
2397
|
e.buildingChooserTimeOfDay
|
|
2398
2398
|
), G = parseInt(Y);
|
|
2399
2399
|
m.value = parseInt(S) * 2 + (G < 15 ? 0 : G > 45 ? 2 : 1);
|
|
2400
2400
|
}
|
|
2401
|
-
}),
|
|
2401
|
+
}), xe(async () => {
|
|
2402
2402
|
const S = await new ea(
|
|
2403
2403
|
e.cdnFileResolver
|
|
2404
2404
|
).loadBuildingChooser(
|
|
@@ -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: ce } of S.buildingOverlays)
|
|
2414
|
+
i.value.loadJson(ce.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: ce, 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}, ${ce})`,
|
|
2448
2448
|
strokeOpacity: 1,
|
|
2449
|
-
fill: `rgb(${Y}, ${G}, ${
|
|
2449
|
+
fill: `rgb(${Y}, ${G}, ${ce})`,
|
|
2450
2450
|
fillOpacity: j / 255,
|
|
2451
2451
|
cursor: `${e.canGoToBuildingCallback(x) ? "cursor" : "default"} !important`
|
|
2452
2452
|
};
|
|
@@ -2521,9 +2521,9 @@ 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: ce }, j) => (v(), D("g", {
|
|
2525
2525
|
key: j,
|
|
2526
|
-
innerHTML:
|
|
2526
|
+
innerHTML: ce,
|
|
2527
2527
|
"data-building-id": G,
|
|
2528
2528
|
class: ge(P(G)),
|
|
2529
2529
|
style: de(I(G)),
|
|
@@ -2535,13 +2535,13 @@ const no = {
|
|
|
2535
2535
|
], 8, xo))
|
|
2536
2536
|
])
|
|
2537
2537
|
], 512)), [
|
|
2538
|
-
[
|
|
2538
|
+
[Se, a.value.preloaded]
|
|
2539
2539
|
]) : R("", !0),
|
|
2540
2540
|
Ce(u("div", {
|
|
2541
2541
|
class: "custom-overlay-layer",
|
|
2542
2542
|
innerHTML: x.customOverlayContent
|
|
2543
2543
|
}, null, 8, Ao), [
|
|
2544
|
-
[
|
|
2544
|
+
[Se, a.value.preloaded]
|
|
2545
2545
|
])
|
|
2546
2546
|
])
|
|
2547
2547
|
]),
|
|
@@ -2560,7 +2560,7 @@ const no = {
|
|
|
2560
2560
|
"is-loading": !a.value.ready
|
|
2561
2561
|
}, null, 8, ["modelValue", "date-selector", "is-loading"])
|
|
2562
2562
|
], 512), [
|
|
2563
|
-
[
|
|
2563
|
+
[Se, a.value.preloaded]
|
|
2564
2564
|
]),
|
|
2565
2565
|
x.showCards && l.value ? (v(), V(nt, {
|
|
2566
2566
|
key: 0,
|
|
@@ -2605,7 +2605,7 @@ const no = {
|
|
|
2605
2605
|
(k, c) => {
|
|
2606
2606
|
(k.r !== c.r || k.g !== c.g || k.b !== c.b || k.a !== c.a) && f();
|
|
2607
2607
|
}
|
|
2608
|
-
),
|
|
2608
|
+
), xe(async () => {
|
|
2609
2609
|
a.value = await o.value.loadImage(e.imageUrl), i();
|
|
2610
2610
|
});
|
|
2611
2611
|
function i() {
|
|
@@ -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
|
+
$e,
|
|
2661
|
+
e.i18nConfig ? new He(e.i18nConfig) : new He()
|
|
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
|
+
Ve(() => {
|
|
2678
2678
|
if (e.buildingChooserTimeOfDay) {
|
|
2679
2679
|
const [x, S, Y] = /^(\d\d):(\d\d)$/.exec(
|
|
2680
2680
|
e.buildingChooserTimeOfDay
|
|
@@ -2683,7 +2683,7 @@ const no = {
|
|
|
2683
2683
|
}
|
|
2684
2684
|
}), U(f, (x, S) => {
|
|
2685
2685
|
x ? n("hoverOverBuilding", x) : n("hoverOutBuilding", S);
|
|
2686
|
-
}),
|
|
2686
|
+
}), xe(async () => {
|
|
2687
2687
|
const S = await new ea(
|
|
2688
2688
|
e.cdnFileResolver
|
|
2689
2689
|
).loadBuildingChooser(
|
|
@@ -2695,17 +2695,17 @@ const no = {
|
|
|
2695
2695
|
}, I()) : c.value = !0;
|
|
2696
2696
|
});
|
|
2697
2697
|
function T({ width: x, height: S }) {
|
|
2698
|
-
r.value.width = x, r.value.height = S,
|
|
2698
|
+
r.value.width = x, r.value.height = S, ke(I);
|
|
2699
2699
|
}
|
|
2700
2700
|
function M() {
|
|
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: ce } = k.value(S, Y);
|
|
2705
2705
|
return p.value.getBuildingId(
|
|
2706
2706
|
i.value,
|
|
2707
2707
|
G,
|
|
2708
|
-
|
|
2708
|
+
ce
|
|
2709
2709
|
);
|
|
2710
2710
|
}
|
|
2711
2711
|
function I() {
|
|
@@ -2774,7 +2774,7 @@ const no = {
|
|
|
2774
2774
|
color: B(G.id)
|
|
2775
2775
|
}, null, 8, ["image-url", "dimensions", "color"]))), 128))
|
|
2776
2776
|
], 512), [
|
|
2777
|
-
[
|
|
2777
|
+
[Se, o.value.preloaded]
|
|
2778
2778
|
])
|
|
2779
2779
|
]),
|
|
2780
2780
|
u("canvas", Oe(r.value, {
|
|
@@ -2788,7 +2788,7 @@ const no = {
|
|
|
2788
2788
|
class: "custom-overlay-layer",
|
|
2789
2789
|
innerHTML: x.customOverlayContent
|
|
2790
2790
|
}, null, 8, Vo), [
|
|
2791
|
-
[
|
|
2791
|
+
[Se, o.value.preloaded]
|
|
2792
2792
|
])
|
|
2793
2793
|
]),
|
|
2794
2794
|
_: 1
|
|
@@ -2806,7 +2806,7 @@ const no = {
|
|
|
2806
2806
|
"is-loading": !o.value.ready
|
|
2807
2807
|
}, null, 8, ["modelValue", "date-selector", "is-loading"])
|
|
2808
2808
|
], 512), [
|
|
2809
|
-
[
|
|
2809
|
+
[Se, o.value.preloaded]
|
|
2810
2810
|
]),
|
|
2811
2811
|
x.showCards && f.value ? (v(), V(nt, {
|
|
2812
2812
|
key: 0,
|
|
@@ -2884,13 +2884,13 @@ const no = {
|
|
|
2884
2884
|
currentTime: {}
|
|
2885
2885
|
},
|
|
2886
2886
|
setup(s) {
|
|
2887
|
-
const t = s, e = $(() =>
|
|
2887
|
+
const t = s, e = $(() => ue(t.cdnFileResolver, t.timeSampleData.filename));
|
|
2888
2888
|
return (n, a) => Ce((v(), D("img", {
|
|
2889
2889
|
key: e.value,
|
|
2890
2890
|
src: e.value,
|
|
2891
2891
|
width: "100%"
|
|
2892
2892
|
}, null, 8, Uo)), [
|
|
2893
|
-
[
|
|
2893
|
+
[Se, n.timeSampleData === n.currentTime]
|
|
2894
2894
|
]);
|
|
2895
2895
|
}
|
|
2896
2896
|
}), Yo = /* @__PURE__ */ ee(Ho, [["__scopeId", "data-v-9866b8c2"]]), zo = /* @__PURE__ */ W({
|
|
@@ -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
|
+
Ve(() => {
|
|
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
|
+
}), Ve(async () => {
|
|
3137
3137
|
a.value = await Me.loadText(
|
|
3138
|
-
|
|
3138
|
+
ue(e.cdnFileResolver, e.currentCamera.overlayFilename)
|
|
3139
3139
|
), p();
|
|
3140
3140
|
}), U(
|
|
3141
3141
|
() => o.value,
|
|
@@ -3144,7 +3144,7 @@ const no = {
|
|
|
3144
3144
|
}
|
|
3145
3145
|
);
|
|
3146
3146
|
function m() {
|
|
3147
|
-
|
|
3147
|
+
ke(() => {
|
|
3148
3148
|
var f;
|
|
3149
3149
|
const i = (f = o.value) == null ? void 0 : f.firstChild;
|
|
3150
3150
|
if (!i.hasAttribute("viewBox")) {
|
|
@@ -3160,7 +3160,7 @@ const no = {
|
|
|
3160
3160
|
});
|
|
3161
3161
|
}
|
|
3162
3162
|
function p() {
|
|
3163
|
-
|
|
3163
|
+
ke(() => {
|
|
3164
3164
|
var f;
|
|
3165
3165
|
const i = (f = o.value) == null ? void 0 : f.firstChild;
|
|
3166
3166
|
i && (n("updateSvgContainer", i), m(), i.querySelectorAll("[data-building-id]").forEach((k) => {
|
|
@@ -3181,7 +3181,7 @@ const no = {
|
|
|
3181
3181
|
}));
|
|
3182
3182
|
});
|
|
3183
3183
|
}
|
|
3184
|
-
return (i, f) => (v(), V(
|
|
3184
|
+
return (i, f) => (v(), V(Ee, null, {
|
|
3185
3185
|
default: b(() => [
|
|
3186
3186
|
(v(), D("div", {
|
|
3187
3187
|
ref_key: "svgContainer",
|
|
@@ -3270,7 +3270,7 @@ const tl = {
|
|
|
3270
3270
|
const e = s, n = t, a = d(), o = d(), r = d(), l = d(), m = d(!1), p = d(), i = $(() => p.value.isHoverEnabled), f = d({ x: 0, y: 0, width: 0, height: 0 }), w = d(), k = d(), c = d(
|
|
3271
3271
|
e.buildingChooserData
|
|
3272
3272
|
), h = d(!1);
|
|
3273
|
-
|
|
3273
|
+
xe(() => m.value = !0), U(m, (L) => {
|
|
3274
3274
|
L && n("onInitialize");
|
|
3275
3275
|
}), U(
|
|
3276
3276
|
() => k.value,
|
|
@@ -3287,7 +3287,7 @@ const tl = {
|
|
|
3287
3287
|
return L;
|
|
3288
3288
|
let X;
|
|
3289
3289
|
return X = await Me.loadJson(
|
|
3290
|
-
|
|
3290
|
+
ue(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);
|
|
@@ -3322,7 +3322,7 @@ const tl = {
|
|
|
3322
3322
|
);
|
|
3323
3323
|
function y(L) {
|
|
3324
3324
|
const X = o.value;
|
|
3325
|
-
a.value = L,
|
|
3325
|
+
a.value = L, ke(() => {
|
|
3326
3326
|
g(
|
|
3327
3327
|
a.value.sunsimDayOfYear.find(
|
|
3328
3328
|
(B) => B.dayOfYear === X.dayOfYear
|
|
@@ -3332,7 +3332,7 @@ const tl = {
|
|
|
3332
3332
|
}
|
|
3333
3333
|
function g(L) {
|
|
3334
3334
|
const X = r.value;
|
|
3335
|
-
o.value = L,
|
|
3335
|
+
o.value = L, ke(() => {
|
|
3336
3336
|
T(
|
|
3337
3337
|
o.value.timeSamples.find(
|
|
3338
3338
|
(B) => B.timeInHours === X.timeInHours
|
|
@@ -3381,7 +3381,7 @@ const tl = {
|
|
|
3381
3381
|
loading: !m.value || !c.value
|
|
3382
3382
|
}, {
|
|
3383
3383
|
default: b(() => [
|
|
3384
|
-
C(
|
|
3384
|
+
C(Ee, { 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) => ue(
|
|
3542
3542
|
a.value,
|
|
3543
3543
|
`/${o.value}/${r.value}${y}`
|
|
3544
3544
|
),
|
|
@@ -3554,7 +3554,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
3554
3554
|
), U(
|
|
3555
3555
|
[a],
|
|
3556
3556
|
async () => {
|
|
3557
|
-
await _(),
|
|
3557
|
+
await _(), ke(async () => {
|
|
3558
3558
|
await h();
|
|
3559
3559
|
});
|
|
3560
3560
|
},
|
|
@@ -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) => ue(
|
|
3592
3592
|
a.value,
|
|
3593
3593
|
`/${o.value}/${r.value}${I}`
|
|
3594
3594
|
),
|
|
@@ -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($e), 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($e);
|
|
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, [
|
|
@@ -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($e), 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($e), 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(Ee, { name: "fade-transition" }, {
|
|
4418
4418
|
default: b(() => [
|
|
4419
4419
|
C(_, {
|
|
4420
4420
|
class: "mx-auto",
|
|
@@ -4929,7 +4929,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4929
4929
|
t({
|
|
4930
4930
|
bodyWidth: e,
|
|
4931
4931
|
bodyHeight: n
|
|
4932
|
-
}),
|
|
4932
|
+
}), xe(() => {
|
|
4933
4933
|
o(document.getElementById("moveableDiv")), a(document.querySelector("#moveableDiv"));
|
|
4934
4934
|
});
|
|
4935
4935
|
const a = (r) => {
|
|
@@ -5037,7 +5037,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
5037
5037
|
})), M = $(() => ({
|
|
5038
5038
|
transform: `scale(${t.fit ? 1 : w.value * 0.75}) rotate(${t.transformAngle}deg)`
|
|
5039
5039
|
}));
|
|
5040
|
-
|
|
5040
|
+
xe(() => {
|
|
5041
5041
|
B(), I(), te();
|
|
5042
5042
|
const x = document.getElementById("moveableDiv");
|
|
5043
5043
|
x && (i.value = new ResizeObserver(te).observe(x));
|
|
@@ -5166,7 +5166,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
5166
5166
|
}
|
|
5167
5167
|
return "";
|
|
5168
5168
|
});
|
|
5169
|
-
|
|
5169
|
+
xe(async () => {
|
|
5170
5170
|
l.value = await c(
|
|
5171
5171
|
p.value.sunsimFiles[a.value]
|
|
5172
5172
|
), n("setBackgroundImage", l.value), r.value = !1;
|
|
@@ -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
|
+
ue(
|
|
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($e);
|
|
5487
5487
|
return (a, o) => {
|
|
5488
5488
|
const r = E("v-btn");
|
|
5489
5489
|
return !a.displaySunsim && a.showUI ? (v(), V(r, {
|
|
@@ -5551,7 +5551,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5551
5551
|
}), r = $(() => /Android|webOS|iPhone|iPad|BlackBerry|Windows Phone|Opera Mini|IEMobile|Mobile/i.test(
|
|
5552
5552
|
window.navigator.userAgent
|
|
5553
5553
|
));
|
|
5554
|
-
|
|
5554
|
+
xe(() => {
|
|
5555
5555
|
window.addEventListener("keydown", l);
|
|
5556
5556
|
}), Qe(() => {
|
|
5557
5557
|
window.removeEventListener("keydown", l);
|
|
@@ -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($e), 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),
|
|
@@ -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), ce = 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), De = d(!1), Be = d(), Ae = 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
|
+
}), Re = $(() => {
|
|
6018
6018
|
let F = 0;
|
|
6019
6019
|
if (O.value) {
|
|
6020
6020
|
const z = O.value.cameras.map(
|
|
@@ -6022,10 +6022,10 @@ const Nr = {
|
|
|
6022
6022
|
);
|
|
6023
6023
|
let le = [...new Set(z)];
|
|
6024
6024
|
le = le.sort();
|
|
6025
|
-
const
|
|
6025
|
+
const Ie = le.findIndex(
|
|
6026
6026
|
(Xe) => Xe === Le.value
|
|
6027
6027
|
);
|
|
6028
|
-
|
|
6028
|
+
Ie !== -1 && (F = Ie);
|
|
6029
6029
|
}
|
|
6030
6030
|
return F;
|
|
6031
6031
|
}), H = $(() => he.value.findIndex(
|
|
@@ -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
|
+
}) : []), Ye = $(() => {
|
|
6056
|
+
if (q.value && q.value.storeys && Re.value in q.value.storeys)
|
|
6057
|
+
return q.value.storeys[Re.value];
|
|
6058
|
+
}), rt = $(() => O.value && O.value.timeInHours), Ue = $(() => {
|
|
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
|
+
$e,
|
|
6064
|
+
p.value ? new He(p.value) : new He()
|
|
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 = ue(
|
|
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
|
+
ce.value = !0, S("onError", F);
|
|
6086
6086
|
}
|
|
6087
6087
|
},
|
|
6088
6088
|
{ immediate: !0 }
|
|
@@ -6092,22 +6092,22 @@ const Nr = {
|
|
|
6092
6092
|
M.value === "virtualTour" && (we.value = !1), M.value === "slideShow" && (we.value = !0, N.value = !0);
|
|
6093
6093
|
},
|
|
6094
6094
|
{ immediate: !0 }
|
|
6095
|
-
), U(
|
|
6096
|
-
if (
|
|
6095
|
+
), U(Ae, () => {
|
|
6096
|
+
if (Ae.value) {
|
|
6097
6097
|
N.value = !1;
|
|
6098
6098
|
const F = Je(ie.value);
|
|
6099
|
-
|
|
6099
|
+
Be.value = F[0].timeSamples.find(
|
|
6100
6100
|
(z) => z.timeInHours === F[0].defaultHour
|
|
6101
6101
|
);
|
|
6102
6102
|
} else
|
|
6103
6103
|
N.value = !0, oe.value.unloadSunSim();
|
|
6104
|
-
}),
|
|
6104
|
+
}), xe(async () => {
|
|
6105
6105
|
try {
|
|
6106
6106
|
ua.value ? (Y.value = !1, N.value = !0) : setTimeout(() => {
|
|
6107
6107
|
Y.value = !0;
|
|
6108
6108
|
}, 1e3);
|
|
6109
6109
|
} catch (F) {
|
|
6110
|
-
|
|
6110
|
+
ce.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 = ue(
|
|
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
|
+
ue(a.value, "/config.json"),
|
|
6181
6181
|
F
|
|
6182
6182
|
);
|
|
6183
6183
|
return;
|
|
@@ -6244,11 +6244,11 @@ const Nr = {
|
|
|
6244
6244
|
F < 0 && (F = Q.value.length - 1), re.value = F, pt(Q.value[re.value].id);
|
|
6245
6245
|
}
|
|
6246
6246
|
function xt(F, z = !0) {
|
|
6247
|
-
let le = Q.value.findIndex((
|
|
6247
|
+
let le = Q.value.findIndex((Ie) => Ie.id === F);
|
|
6248
6248
|
le != -1 && (re.value = le, z && pt(F));
|
|
6249
6249
|
}
|
|
6250
6250
|
function pt(F) {
|
|
6251
|
-
|
|
6251
|
+
Ae.value = !1, be.value = F;
|
|
6252
6252
|
}
|
|
6253
6253
|
function Ut(F) {
|
|
6254
6254
|
se.value = F, Ca(), S("onInteriorUpdate", F), S("onCameraUpdate", ie.value, O.value);
|
|
@@ -6311,7 +6311,7 @@ const Nr = {
|
|
|
6311
6311
|
we.value = !we.value;
|
|
6312
6312
|
}
|
|
6313
6313
|
async function zt() {
|
|
6314
|
-
const F = 180 / Math.PI, z = await oe.value.takePhoto(), le = oe.value.getRotationEuler(),
|
|
6314
|
+
const F = 180 / Math.PI, z = await oe.value.takePhoto(), le = oe.value.getRotationEuler(), Ie = oe.value.getCurrentCamera(), Xe = new to(z, Ie), $a = [
|
|
6315
6315
|
le.x * -F,
|
|
6316
6316
|
le.y * -F,
|
|
6317
6317
|
le.z * F
|
|
@@ -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 = ue(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,17 +6357,17 @@ const Nr = {
|
|
|
6357
6357
|
return v(), D("div", {
|
|
6358
6358
|
class: ge(["virtual-tour-wrapper", [Vt.value]])
|
|
6359
6359
|
}, [
|
|
6360
|
-
|
|
6360
|
+
ce.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 && Ye.value && se.value && De.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: Re.value,
|
|
6367
6367
|
"minimap-json": q.value,
|
|
6368
6368
|
rotation: Fe.value,
|
|
6369
6369
|
"current-camera": ie.value,
|
|
6370
|
-
onClose: z[0] || (z[0] = (
|
|
6370
|
+
onClose: z[0] || (z[0] = (Ie) => De.value = !1)
|
|
6371
6371
|
}, null, 8, ["cdn-file-resolver", "apartment-json", "level", "minimap-json", "rotation", "current-camera"])) : R("", !0),
|
|
6372
6372
|
se.value && be.value ? (v(), D("div", {
|
|
6373
6373
|
key: 1,
|
|
@@ -6404,26 +6404,26 @@ const Nr = {
|
|
|
6404
6404
|
icon: "mdi-cog-outline",
|
|
6405
6405
|
elevation: "3",
|
|
6406
6406
|
class: "mr-2",
|
|
6407
|
-
onClick: z[1] || (z[1] = (
|
|
6407
|
+
onClick: z[1] || (z[1] = (Ie) => G.value = !G.value)
|
|
6408
6408
|
})) : R("", !0),
|
|
6409
6409
|
Ce(C(le, {
|
|
6410
6410
|
density: "comfortable",
|
|
6411
6411
|
icon: "mdi-alert-outline",
|
|
6412
6412
|
elevation: "3",
|
|
6413
6413
|
class: "mr-2",
|
|
6414
|
-
onClick: z[2] || (z[2] = (
|
|
6414
|
+
onClick: z[2] || (z[2] = (Ie) => Y.value = !Y.value)
|
|
6415
6415
|
}, null, 512), [
|
|
6416
|
-
[
|
|
6416
|
+
[Se, N.value]
|
|
6417
6417
|
]),
|
|
6418
|
-
q.value && be.value &&
|
|
6418
|
+
q.value && be.value && Ye.value ? Ce((v(), V(le, {
|
|
6419
6419
|
key: 1,
|
|
6420
6420
|
density: "comfortable",
|
|
6421
6421
|
elevation: "3",
|
|
6422
6422
|
icon: "mdi-floor-plan",
|
|
6423
6423
|
class: "mr-2",
|
|
6424
|
-
onClick: z[3] || (z[3] = (
|
|
6424
|
+
onClick: z[3] || (z[3] = (Ie) => De.value = !De.value)
|
|
6425
6425
|
}, null, 512)), [
|
|
6426
|
-
[
|
|
6426
|
+
[Se, N.value]
|
|
6427
6427
|
]) : R("", !0),
|
|
6428
6428
|
N.value && A(g) && je.value.length > 1 ? (v(), V(Vl, {
|
|
6429
6429
|
key: 2,
|
|
@@ -6444,24 +6444,24 @@ const Nr = {
|
|
|
6444
6444
|
O.value && A(w) ? Ce((v(), D("div", Zr, [
|
|
6445
6445
|
C(Nl, { rotation: Fe.value }, null, 8, ["rotation"])
|
|
6446
6446
|
], 512)), [
|
|
6447
|
-
[
|
|
6447
|
+
[Se, N.value]
|
|
6448
6448
|
]) : R("", !0),
|
|
6449
6449
|
u("div", {
|
|
6450
|
-
onClick: z[4] || (z[4] = (
|
|
6450
|
+
onClick: z[4] || (z[4] = (Ie) => De.value = !De.value)
|
|
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: Ue.value.hours,
|
|
6455
|
+
minutes: Ue.value.minutes,
|
|
6456
6456
|
class: "time-of-day",
|
|
6457
6457
|
style: de({
|
|
6458
|
-
cursor: q.value && ie.value &&
|
|
6458
|
+
cursor: q.value && ie.value && Ye.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(Ee, { name: "slide-x-transition" }, {
|
|
6465
6465
|
default: b(() => [
|
|
6466
6466
|
we.value ? (v(), V(le, {
|
|
6467
6467
|
key: 0,
|
|
@@ -6477,21 +6477,21 @@ const Nr = {
|
|
|
6477
6477
|
"center-center": b(() => [
|
|
6478
6478
|
Y.value ? (v(), V(Vs, {
|
|
6479
6479
|
key: 0,
|
|
6480
|
-
onCloseTutorial: z[5] || (z[5] = (
|
|
6480
|
+
onCloseTutorial: z[5] || (z[5] = (Ie) => ca(Ie))
|
|
6481
6481
|
})) : R("", !0),
|
|
6482
|
-
K.value.isActive && q.value && ie.value &&
|
|
6482
|
+
K.value.isActive && q.value && ie.value && Ye.value && De.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:
|
|
6490
|
-
onClose: z[6] || (z[6] = (
|
|
6489
|
+
level: Re.value,
|
|
6490
|
+
onClose: z[6] || (z[6] = (Ie) => De.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(Ee, { 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(Ee, null, {
|
|
6535
6535
|
default: b(() => [
|
|
6536
6536
|
u("div", null, [
|
|
6537
6537
|
u("div", {
|
|
@@ -6542,18 +6542,18 @@ const Nr = {
|
|
|
6542
6542
|
!Pe.value && Ge.value(ie.value) ? (v(), V(Er, {
|
|
6543
6543
|
key: 0,
|
|
6544
6544
|
class: "ml-2",
|
|
6545
|
-
displaySunsim:
|
|
6545
|
+
displaySunsim: Ae.value,
|
|
6546
6546
|
showUI: N.value,
|
|
6547
|
-
onToggleSunStudy: z[7] || (z[7] = (
|
|
6547
|
+
onToggleSunStudy: z[7] || (z[7] = (Ie) => Ae.value = !Ae.value)
|
|
6548
6548
|
}, null, 8, ["displaySunsim", "showUI"])) : R("", !0)
|
|
6549
6549
|
], 2),
|
|
6550
|
-
!Ne.value && !Pe.value && be.value &&
|
|
6550
|
+
!Ne.value && !Pe.value && be.value && Ae.value && Ge.value(ie.value) && Je(ie.value)[0] && Be.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": Be.value,
|
|
6555
6555
|
onOnTimeChange: Ht,
|
|
6556
|
-
onToggleSunStudy: z[8] || (z[8] = (
|
|
6556
|
+
onToggleSunStudy: z[8] || (z[8] = (Ie) => Ae.value = !Ae.value)
|
|
6557
6557
|
}, null, 8, ["current-day", "current-time"])) : R("", !0),
|
|
6558
6558
|
!Ne.value && N.value && A(i) ? (v(), V(_t, {
|
|
6559
6559
|
key: 1,
|
|
@@ -6569,7 +6569,7 @@ const Nr = {
|
|
|
6569
6569
|
F.enableAutoplay && N.value && !Ne.value ? (v(), V(Qt, {
|
|
6570
6570
|
key: 0,
|
|
6571
6571
|
autoplayStatus: Pe.value,
|
|
6572
|
-
onToggleAutoPlay: z[9] || (z[9] = (
|
|
6572
|
+
onToggleAutoPlay: z[9] || (z[9] = (Ie) => Pt())
|
|
6573
6573
|
}, null, 8, ["autoplayStatus"])) : R("", !0)
|
|
6574
6574
|
]),
|
|
6575
6575
|
_: 1
|
|
@@ -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(Ee, null, {
|
|
6596
6596
|
default: b(() => [
|
|
6597
6597
|
A(i) && J.value && Ne.value && N.value ? (v(), V(_t, {
|
|
6598
6598
|
key: 0,
|
|
@@ -6608,7 +6608,7 @@ const Nr = {
|
|
|
6608
6608
|
F.enableAutoplay && N.value ? (v(), V(Qt, {
|
|
6609
6609
|
key: 0,
|
|
6610
6610
|
autoplayStatus: Pe.value,
|
|
6611
|
-
onToggleAutoPlay: z[10] || (z[10] = (
|
|
6611
|
+
onToggleAutoPlay: z[10] || (z[10] = (Ie) => Pt())
|
|
6612
6612
|
}, null, 8, ["autoplayStatus"])) : R("", !0)
|
|
6613
6613
|
]),
|
|
6614
6614
|
_: 1
|
|
@@ -6617,13 +6617,13 @@ const Nr = {
|
|
|
6617
6617
|
_: 1
|
|
6618
6618
|
}),
|
|
6619
6619
|
Ne.value ? (v(), D("div", ei, [
|
|
6620
|
-
!Pe.value && be.value &&
|
|
6620
|
+
!Pe.value && be.value && Ae.value && Ge.value(ie.value) && Je(ie.value)[0] && Be.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": Be.value,
|
|
6625
6625
|
onOnTimeChange: Ht,
|
|
6626
|
-
onToggleSunStudy: z[11] || (z[11] = (
|
|
6626
|
+
onToggleSunStudy: z[11] || (z[11] = (Ie) => Ae.value = !Ae.value)
|
|
6627
6627
|
}, null, 8, ["current-day", "current-time"])) : R("", !0)
|
|
6628
6628
|
])) : R("", !0)
|
|
6629
6629
|
], 2)) : 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
|
+
$e,
|
|
6719
|
+
t.i18nConfig ? new He(t.i18nConfig) : new He()
|
|
6720
6720
|
);
|
|
6721
6721
|
const e = d(0), n = d(
|
|
6722
6722
|
new ia(document, "player-wrapper")
|
|
@@ -6726,7 +6726,7 @@ const Nr = {
|
|
|
6726
6726
|
thumbnailUrl: i
|
|
6727
6727
|
})
|
|
6728
6728
|
)), o = $(() => a.value[e.value]);
|
|
6729
|
-
|
|
6729
|
+
xe(() => {
|
|
6730
6730
|
n.value.setup();
|
|
6731
6731
|
});
|
|
6732
6732
|
function r() {
|
|
@@ -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(Ee, { 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(Ee, { 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 = ue(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
|
+
ue(n.cdnFileResolver.value, "/apartment.json")
|
|
6876
6876
|
)).json(), a("apartmentJsonLoaded", o.value), r.value = await (await fetch(
|
|
6877
|
-
|
|
6877
|
+
ue(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 ? ue(n.cdnFileResolver.value, "/minimap/sunsim0_13.jpg") : ue(
|
|
6885
6885
|
n.cdnFileResolver.value,
|
|
6886
6886
|
`/minimap/${c.value.defaultSunsimFile}`
|
|
6887
6887
|
));
|
|
@@ -6953,13 +6953,13 @@ 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 = $(() => ue(n.value, e.value.filename));
|
|
6957
6957
|
return (r, l) => Ce((v(), D("img", {
|
|
6958
6958
|
key: o.value,
|
|
6959
6959
|
src: o.value,
|
|
6960
6960
|
width: "100%"
|
|
6961
6961
|
}, null, 8, Si)), [
|
|
6962
|
-
[
|
|
6962
|
+
[Se, A(a) && A(e) === A(a)]
|
|
6963
6963
|
]);
|
|
6964
6964
|
}
|
|
6965
6965
|
}), xi = /* @__PURE__ */ ee(Ii, [["__scopeId", "data-v-a12a9cdb"]]), Di = /* @__PURE__ */ W({
|
|
@@ -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 = $(() => ue(
|
|
6993
6993
|
n.value,
|
|
6994
6994
|
a.value.defaultFilename
|
|
6995
6995
|
));
|
|
@@ -7004,7 +7004,7 @@ const Nr = {
|
|
|
7004
7004
|
src: r.value,
|
|
7005
7005
|
width: "100%"
|
|
7006
7006
|
}, null, 8, Ai)), [
|
|
7007
|
-
[
|
|
7007
|
+
[Se, A(a) === A(e)]
|
|
7008
7008
|
]);
|
|
7009
7009
|
}
|
|
7010
7010
|
}), Li = ["src"], Mi = /* @__PURE__ */ W({
|
|
@@ -7015,13 +7015,13 @@ 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 = $(() => ue(n.value, e.value.filename));
|
|
7019
7019
|
return (r, l) => Ce((v(), D("img", {
|
|
7020
7020
|
key: o.value,
|
|
7021
7021
|
src: o.value,
|
|
7022
7022
|
class: "position-absolute top-left w-100 h-100"
|
|
7023
7023
|
}, null, 8, Li)), [
|
|
7024
|
-
[
|
|
7024
|
+
[Se, A(e) === A(a)]
|
|
7025
7025
|
]);
|
|
7026
7026
|
}
|
|
7027
7027
|
}), Oi = /* @__PURE__ */ ee(Mi, [["__scopeId", "data-v-ea8553ab"]]);
|
|
@@ -7171,7 +7171,7 @@ const Ti = {
|
|
|
7171
7171
|
u("div", {
|
|
7172
7172
|
class: "camera-thumbnail-image",
|
|
7173
7173
|
style: de({
|
|
7174
|
-
backgroundImage: `url(${A(
|
|
7174
|
+
backgroundImage: `url(${A(ue)(
|
|
7175
7175
|
A(r),
|
|
7176
7176
|
c.defaultFilename
|
|
7177
7177
|
)})`
|
|
@@ -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
|
+
Ve(() => {
|
|
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
|
+
}), Ve(async () => {
|
|
7355
7355
|
try {
|
|
7356
7356
|
m.value = !1, p.value = await Me.loadText(
|
|
7357
|
-
|
|
7357
|
+
ue(n.value, o.value.overlayFilename)
|
|
7358
7358
|
), k();
|
|
7359
7359
|
} catch (c) {
|
|
7360
7360
|
l("onError", c);
|
|
@@ -7368,7 +7368,7 @@ const Ti = {
|
|
|
7368
7368
|
}
|
|
7369
7369
|
);
|
|
7370
7370
|
function w() {
|
|
7371
|
-
|
|
7371
|
+
ke(() => {
|
|
7372
7372
|
var h;
|
|
7373
7373
|
const c = (h = i.value) == null ? void 0 : h.firstChild;
|
|
7374
7374
|
if (c) {
|
|
@@ -7396,7 +7396,7 @@ const Ti = {
|
|
|
7396
7396
|
{ immediate: !0, deep: !0 }
|
|
7397
7397
|
);
|
|
7398
7398
|
function k() {
|
|
7399
|
-
|
|
7399
|
+
ke(() => {
|
|
7400
7400
|
var h;
|
|
7401
7401
|
const c = (h = i.value) == null ? void 0 : h.firstChild;
|
|
7402
7402
|
if (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(Ee, null, {
|
|
7425
7425
|
default: b(() => [
|
|
7426
7426
|
Ce((v(), D("div", {
|
|
7427
7427
|
ref_key: "svgContainer",
|
|
@@ -7431,7 +7431,7 @@ const Ti = {
|
|
|
7431
7431
|
style: { "z-index": "5" },
|
|
7432
7432
|
innerHTML: p.value
|
|
7433
7433
|
}, null, 8, Zi)), [
|
|
7434
|
-
[
|
|
7434
|
+
[Se, m.value]
|
|
7435
7435
|
])
|
|
7436
7436
|
]),
|
|
7437
7437
|
_: 1
|
|
@@ -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
|
+
$e,
|
|
7770
|
+
l.value ? new He(l.value) : new He()
|
|
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(), ce = d({
|
|
7773
7773
|
current: 100,
|
|
7774
7774
|
min: 100,
|
|
7775
7775
|
max: 1e3
|
|
@@ -7781,19 +7781,28 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7781
7781
|
currentTime: y.value,
|
|
7782
7782
|
currentTransition: g.value,
|
|
7783
7783
|
currentScene: T.value,
|
|
7784
|
-
currentZoom:
|
|
7784
|
+
currentZoom: ce.value.current
|
|
7785
7785
|
}),
|
|
7786
7786
|
setState: ({
|
|
7787
7787
|
currentCamera: H,
|
|
7788
7788
|
currentDay: Q,
|
|
7789
7789
|
currentTime: fe,
|
|
7790
7790
|
currentTransition: he,
|
|
7791
|
-
currentScene: ye
|
|
7792
|
-
currentZoom: Ee
|
|
7791
|
+
currentScene: ye
|
|
7793
7792
|
}) => {
|
|
7794
|
-
|
|
7793
|
+
ke(() => {
|
|
7794
|
+
h.value = H, ke(() => {
|
|
7795
|
+
_.value = Q, ke(() => {
|
|
7796
|
+
y.value = fe, ke(() => {
|
|
7797
|
+
g.value = he, ke(() => {
|
|
7798
|
+
T.value = ye;
|
|
7799
|
+
});
|
|
7800
|
+
});
|
|
7801
|
+
});
|
|
7802
|
+
});
|
|
7803
|
+
});
|
|
7795
7804
|
}
|
|
7796
|
-
}),
|
|
7805
|
+
}), xe(() => {
|
|
7797
7806
|
P.value = !0, j.value = !1;
|
|
7798
7807
|
}), U(
|
|
7799
7808
|
a,
|
|
@@ -7868,7 +7877,7 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7868
7877
|
);
|
|
7869
7878
|
}
|
|
7870
7879
|
function se(H) {
|
|
7871
|
-
T.value = H, Lt(S.value.cameras[T.value]) ? g.value = S.value.cameras[T.value] : (
|
|
7880
|
+
T.value = H, Lt(S.value.cameras[T.value]) ? g.value = S.value.cameras[T.value] : (ke(() => {
|
|
7872
7881
|
be(
|
|
7873
7882
|
S.value.cameras[T.value]
|
|
7874
7883
|
);
|
|
@@ -7878,7 +7887,7 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7878
7887
|
const Q = _.value;
|
|
7879
7888
|
h.value = H, T.value = S.value.cameras.findIndex(
|
|
7880
7889
|
(fe) => fe === h.value
|
|
7881
|
-
),
|
|
7890
|
+
), ke(() => {
|
|
7882
7891
|
h.value.sunsimDayOfYear && h.value.sunsimDayOfYear.length > 0 && ie(
|
|
7883
7892
|
h.value.sunsimDayOfYear.find(
|
|
7884
7893
|
(fe) => fe.dayOfYear === Q.dayOfYear
|
|
@@ -7888,7 +7897,7 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7888
7897
|
}
|
|
7889
7898
|
function ie(H) {
|
|
7890
7899
|
const Q = y.value;
|
|
7891
|
-
_.value = H,
|
|
7900
|
+
_.value = H, ke(() => {
|
|
7892
7901
|
Fe(
|
|
7893
7902
|
_.value.timeSamples.find(
|
|
7894
7903
|
(fe) => fe.timeInHours === Q.timeInHours
|
|
@@ -7915,7 +7924,7 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7915
7924
|
function we(H) {
|
|
7916
7925
|
c("onHoverOut", H), M.value = void 0;
|
|
7917
7926
|
}
|
|
7918
|
-
function
|
|
7927
|
+
function De(H) {
|
|
7919
7928
|
const { layerX: Q, layerY: fe } = H;
|
|
7920
7929
|
let he = H.target, ye = !1;
|
|
7921
7930
|
for (; he; )
|
|
@@ -7925,25 +7934,25 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7925
7934
|
} else
|
|
7926
7935
|
he = he.parentElement;
|
|
7927
7936
|
if (ye) {
|
|
7928
|
-
const
|
|
7937
|
+
const Ye = H.currentTarget;
|
|
7929
7938
|
B.value = {
|
|
7930
7939
|
x: Q,
|
|
7931
7940
|
y: fe,
|
|
7932
|
-
width:
|
|
7933
|
-
height:
|
|
7941
|
+
width: Ye.clientWidth,
|
|
7942
|
+
height: Ye.clientHeight
|
|
7934
7943
|
};
|
|
7935
7944
|
} else
|
|
7936
7945
|
B.value = void 0;
|
|
7937
7946
|
c("onMouseMove", H, B.value);
|
|
7938
7947
|
}
|
|
7939
|
-
function
|
|
7948
|
+
function Be({
|
|
7940
7949
|
min: H,
|
|
7941
7950
|
max: Q,
|
|
7942
7951
|
current: fe
|
|
7943
7952
|
}) {
|
|
7944
|
-
|
|
7953
|
+
ce.value = { min: H, max: Q, current: fe };
|
|
7945
7954
|
}
|
|
7946
|
-
function
|
|
7955
|
+
function Ae(H) {
|
|
7947
7956
|
G.value.adjustZoom(H ? 10 : -10);
|
|
7948
7957
|
}
|
|
7949
7958
|
function N(H) {
|
|
@@ -7955,12 +7964,12 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7955
7964
|
const Q = T.value;
|
|
7956
7965
|
if (S.value.loopable) {
|
|
7957
7966
|
const fe = S.value.stillCameraIndices.length, he = N(Q), ye = N(H);
|
|
7958
|
-
let
|
|
7959
|
-
for (;
|
|
7960
|
-
|
|
7961
|
-
for (
|
|
7967
|
+
let Ye = 0, rt = 0, Ue = he;
|
|
7968
|
+
for (; Ue++, Ue >= fe && (Ue = 0), Ue !== ye; )
|
|
7969
|
+
Ye++;
|
|
7970
|
+
for (Ue = he; Ue--, Ue < 0 && (Ue += fe), Ue !== ye; )
|
|
7962
7971
|
rt++;
|
|
7963
|
-
|
|
7972
|
+
Ye === rt ? ve(Q, H) : Ye < 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);
|
|
7964
7973
|
} else
|
|
7965
7974
|
ve(Q, H);
|
|
7966
7975
|
}
|
|
@@ -7980,7 +7989,7 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7980
7989
|
function je(H) {
|
|
7981
7990
|
j.value = !0, c("onError", H);
|
|
7982
7991
|
}
|
|
7983
|
-
const
|
|
7992
|
+
const Re = (H) => H * (180 / Math.PI);
|
|
7984
7993
|
return (H, Q) => {
|
|
7985
7994
|
const fe = E("v-skeleton-loader");
|
|
7986
7995
|
return v(), D(me, null, [
|
|
@@ -7990,14 +7999,14 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
7990
7999
|
loading: !P.value || !S.value
|
|
7991
8000
|
}, {
|
|
7992
8001
|
default: b(() => [
|
|
7993
|
-
C(
|
|
8002
|
+
C(Ee, { class: "w-100 h-100" }, {
|
|
7994
8003
|
default: b(() => [
|
|
7995
8004
|
u("div", {
|
|
7996
8005
|
ref_key: "container",
|
|
7997
8006
|
ref: x,
|
|
7998
8007
|
class: ge({ mobile: Y.value }),
|
|
7999
8008
|
style: { "min-height": "104px" },
|
|
8000
|
-
onMousemove:
|
|
8009
|
+
onMousemove: De
|
|
8001
8010
|
}, [
|
|
8002
8011
|
H.showUi ? (v(), D("div", {
|
|
8003
8012
|
key: 0,
|
|
@@ -8015,15 +8024,15 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
8015
8024
|
width: Y.value ? 32 : 40,
|
|
8016
8025
|
height: Y.value ? 32 : 40
|
|
8017
8026
|
}),
|
|
8018
|
-
longitude:
|
|
8027
|
+
longitude: Re(h.value.cameraRotation.y) + 270
|
|
8019
8028
|
}, null, 8, ["style", "longitude"])) : R("", !0),
|
|
8020
8029
|
C(Qi, {
|
|
8021
8030
|
"is-mobile-sized": Y.value,
|
|
8022
|
-
"can-zoom-out":
|
|
8023
|
-
"can-zoom-in":
|
|
8031
|
+
"can-zoom-out": ce.value.min < ce.value.current,
|
|
8032
|
+
"can-zoom-in": ce.value.max > ce.value.current,
|
|
8024
8033
|
disabled: I.value,
|
|
8025
|
-
onOnZoomIn: Q[0] || (Q[0] = (he) =>
|
|
8026
|
-
onOnZoomOut: Q[1] || (Q[1] = (he) =>
|
|
8034
|
+
onOnZoomIn: Q[0] || (Q[0] = (he) => Ae(!0)),
|
|
8035
|
+
onOnZoomOut: Q[1] || (Q[1] = (he) => Ae(!1))
|
|
8027
8036
|
}, null, 8, ["is-mobile-sized", "can-zoom-out", "can-zoom-in", "disabled"])
|
|
8028
8037
|
], 4)) : R("", !0),
|
|
8029
8038
|
H.showUi && q.value.length > 1 ? (v(), D("div", {
|
|
@@ -8047,7 +8056,7 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
8047
8056
|
ref_key: "zoomBox",
|
|
8048
8057
|
ref: G,
|
|
8049
8058
|
position: "relative",
|
|
8050
|
-
onUpdate:
|
|
8059
|
+
onUpdate: Be
|
|
8051
8060
|
}, {
|
|
8052
8061
|
default: b(() => [
|
|
8053
8062
|
(v(!0), D(me, null, _e(q.value, (he, ye) => (v(), V(Fi, {
|
|
@@ -8083,7 +8092,7 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
8083
8092
|
onUpdateSvgContainer: Q[2] || (Q[2] = (he) => te.value = he),
|
|
8084
8093
|
onOnError: je
|
|
8085
8094
|
}, null, 8, ["cdn-file-resolver", "color-callback", "current-camera", "selected-id", "activeStructureIds"])), [
|
|
8086
|
-
[
|
|
8095
|
+
[Se, g.value === null]
|
|
8087
8096
|
]) : R("", !0),
|
|
8088
8097
|
ne(H.$slots, "default", {}, void 0, !0)
|
|
8089
8098
|
]),
|
|
@@ -8140,7 +8149,7 @@ const ou = ["innerHTML"], lu = { style: { "z-index": "7" } }, su = {
|
|
|
8140
8149
|
], 64);
|
|
8141
8150
|
};
|
|
8142
8151
|
}
|
|
8143
|
-
}), iu = /* @__PURE__ */ ee(ru, [["__scopeId", "data-v-
|
|
8152
|
+
}), iu = /* @__PURE__ */ ee(ru, [["__scopeId", "data-v-f8812888"]]), hu = {
|
|
8144
8153
|
install: function(t) {
|
|
8145
8154
|
t.component("VApartmentChooser", Fn), t.component("VBuildingChooser", Ro), t.component("VVirtualTour", ni), t.component("VManualSlideShow", wi), t.component("VStructureChooser", iu);
|
|
8146
8155
|
}
|