@qispace/vue3-player 0.3.47 → 0.3.49
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, a, e) => a in s ? Ba(s, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[a] = e;
|
|
3
3
|
var he = (s, a, e) => (Ra(s, typeof a != "symbol" ? a + "" : a, e), e);
|
|
4
|
-
import { defineComponent as W, ref as c, computed as B, openBlock as v, createElementBlock as D, watch as U, onMounted as Se, onBeforeUnmount as Xe, withDirectives as De, createElementVNode as u, normalizeStyle as ie, vShow as Ae, createVNode as C, Fragment as
|
|
4
|
+
import { defineComponent as W, ref as c, computed as B, openBlock as v, createElementBlock as D, watch as U, onMounted as Se, onBeforeUnmount as Xe, withDirectives as De, createElementVNode as u, normalizeStyle as ie, vShow as Ae, createVNode as C, Fragment as ve, renderList as Ce, createCommentVNode as R, inject as Ue, resolveComponent as V, withCtx as b, toDisplayString as Q, unref as A, createTextVNode as ae, normalizeClass as ge, createBlock as $, renderSlot as oe, provide as Ze, reactive as St, watchEffect as Re, resolveDynamicComponent as ea, normalizeProps as pt, guardReactiveProps as ft, mergeProps as Ee, nextTick as xe, Transition as Be, createSlots as Ua, toRefs as Te, pushScopeId as It, popScopeId as xt, vModelText as Ha, createStaticVNode as ta, onBeforeUpdate as Ya, withModifiers as za } from "vue";
|
|
5
5
|
import Ct from "axios";
|
|
6
6
|
import * as ja from "@qispace/player-core";
|
|
7
7
|
import { Vector3 as dt, Object3D as Pa, MathUtils as Wa } from "three";
|
|
@@ -82,7 +82,7 @@ const Ga = /* @__PURE__ */ W({
|
|
|
82
82
|
},
|
|
83
83
|
emits: ["selectUnit", "goToUnit", "hoverOver", "hoverOut", "pos"],
|
|
84
84
|
setup(s, { emit: a }) {
|
|
85
|
-
const e = s, o = a, n = c({ x: 0, y: 0, width: 0, height: 0 }), t = c(0), r = c(0), l = c(), d = c(), m = c(), i = c(), p = c(-1), w = c(!1), k = c(), f = c(), h = c({}), g = c("auto"), _ = c(new Oe()), y = c({}),
|
|
85
|
+
const e = s, o = a, n = c({ x: 0, y: 0, width: 0, height: 0 }), t = c(0), r = c(0), l = c(), d = c(), m = c(), i = c(), p = c(-1), w = c(!1), k = c(), f = c(), h = c({}), g = c("auto"), _ = c(new Oe()), y = c({}), T = c(), L = c(), P = c(), x = c(), M = c(), K = B(() => P.value.isHoverEnabled), H = B(() => ce(
|
|
86
86
|
e.cdnFileResolver,
|
|
87
87
|
`/scenedata${e.viewModel.currentScene}.png`
|
|
88
88
|
)), te = B(() => H.value in h.value ? h.value[H.value] : null), I = B(() => p.value < 0 ? !1 : e.sceneData.find((ee) => ee.index === p.value) || !1), S = B(() => ({
|
|
@@ -132,7 +132,7 @@ const Ga = /* @__PURE__ */ W({
|
|
|
132
132
|
o("pos", n.value);
|
|
133
133
|
}), Se(() => {
|
|
134
134
|
L.value = () => {
|
|
135
|
-
clearTimeout(
|
|
135
|
+
clearTimeout(T.value), Me(), T.value = setTimeout(() => {
|
|
136
136
|
Me();
|
|
137
137
|
}, 50);
|
|
138
138
|
}, window.addEventListener("resize", L.value), Me();
|
|
@@ -143,10 +143,10 @@ const Ga = /* @__PURE__ */ W({
|
|
|
143
143
|
});
|
|
144
144
|
function G() {
|
|
145
145
|
l.value = x.value.getContext("2d", { willReadFrequently: !0 }), d.value = new Image(), d.value.onload = () => {
|
|
146
|
-
We(), x.value.addEventListener("mousemove", Le(
|
|
146
|
+
We(), x.value.addEventListener("mousemove", Le(me, 50));
|
|
147
147
|
}, d.value.src = te.value;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function me(N) {
|
|
150
150
|
const ee = Z(N.offsetX, N.offsetY);
|
|
151
151
|
w.value = ee >= 0, p.value = ee, n.value = {
|
|
152
152
|
x: N.offsetX,
|
|
@@ -343,7 +343,7 @@ const Ga = /* @__PURE__ */ W({
|
|
|
343
343
|
})), r.value = { ...r.value, [L]: x };
|
|
344
344
|
});
|
|
345
345
|
}
|
|
346
|
-
m.value.addEventListener("mousemove",
|
|
346
|
+
m.value.addEventListener("mousemove", T(w, 50));
|
|
347
347
|
});
|
|
348
348
|
function w(L) {
|
|
349
349
|
n.value = {
|
|
@@ -395,7 +395,7 @@ const Ga = /* @__PURE__ */ W({
|
|
|
395
395
|
};
|
|
396
396
|
}
|
|
397
397
|
const y = c(!1);
|
|
398
|
-
function
|
|
398
|
+
function T(L, P) {
|
|
399
399
|
return y.value = !0, function(...x) {
|
|
400
400
|
y.value && (y.value = !1, L.apply(this, x), setTimeout(() => y.value = !0, P));
|
|
401
401
|
};
|
|
@@ -415,7 +415,7 @@ const Ga = /* @__PURE__ */ W({
|
|
|
415
415
|
key: 0,
|
|
416
416
|
viewBox: l.value.viewBox
|
|
417
417
|
}, [
|
|
418
|
-
(v(!0), D(
|
|
418
|
+
(v(!0), D(ve, null, Ce(l.value.svgObjects, ({ index: x, svg: M }) => (v(), D("g", {
|
|
419
419
|
key: x,
|
|
420
420
|
innerHTML: M,
|
|
421
421
|
style: ie(_(x)),
|
|
@@ -622,18 +622,18 @@ const on = {
|
|
|
622
622
|
U(
|
|
623
623
|
() => e.viewModel.currentScene,
|
|
624
624
|
(_, y) => {
|
|
625
|
-
const
|
|
626
|
-
i(y,
|
|
625
|
+
const T = g(y, _), L = h(y, _);
|
|
626
|
+
i(y, T, L);
|
|
627
627
|
}
|
|
628
628
|
), Se(() => {
|
|
629
629
|
w();
|
|
630
630
|
});
|
|
631
|
-
function i(_, y,
|
|
631
|
+
function i(_, y, T) {
|
|
632
632
|
e.viewModel.isRotating || (e.viewModel.isRotating = !0, p(
|
|
633
633
|
r.value.start(
|
|
634
634
|
y,
|
|
635
635
|
_ % vt,
|
|
636
|
-
|
|
636
|
+
T
|
|
637
637
|
)
|
|
638
638
|
));
|
|
639
639
|
}
|
|
@@ -653,10 +653,10 @@ const on = {
|
|
|
653
653
|
function k() {
|
|
654
654
|
const _ = [];
|
|
655
655
|
for (let y = 0; y < Qt; y++) {
|
|
656
|
-
const { sourceSet:
|
|
656
|
+
const { sourceSet: T, defaultPath: L } = f(y);
|
|
657
657
|
_.push({
|
|
658
658
|
index: y,
|
|
659
|
-
sourceSet:
|
|
659
|
+
sourceSet: T,
|
|
660
660
|
defaultPath: L,
|
|
661
661
|
show: !1
|
|
662
662
|
});
|
|
@@ -664,28 +664,28 @@ const on = {
|
|
|
664
664
|
return _;
|
|
665
665
|
}
|
|
666
666
|
function f(_) {
|
|
667
|
-
const y = ("0000" + (_ + 1)).slice(-4),
|
|
667
|
+
const y = ("0000" + (_ + 1)).slice(-4), T = e.build ? `?v=${e.build}` : "", L = [
|
|
668
668
|
`${ce(
|
|
669
669
|
e.cdnFileResolver,
|
|
670
|
-
`/480/${y}.jpg${
|
|
670
|
+
`/480/${y}.jpg${T}`
|
|
671
671
|
)} 480w`,
|
|
672
672
|
`${ce(
|
|
673
673
|
e.cdnFileResolver,
|
|
674
|
-
`/960/${y}.jpg${
|
|
674
|
+
`/960/${y}.jpg${T}`
|
|
675
675
|
)} 960w`,
|
|
676
676
|
`${ce(
|
|
677
677
|
e.cdnFileResolver,
|
|
678
|
-
`/1280/${y}.jpg${
|
|
678
|
+
`/1280/${y}.jpg${T}`
|
|
679
679
|
)} 1280w`
|
|
680
680
|
].join(","), P = ce(
|
|
681
681
|
e.cdnFileResolver,
|
|
682
|
-
`/480/${y}.jpg${
|
|
682
|
+
`/480/${y}.jpg${T}`
|
|
683
683
|
);
|
|
684
684
|
return { sourceSet: L, defaultPath: P };
|
|
685
685
|
}
|
|
686
686
|
function h(_, y) {
|
|
687
|
-
const
|
|
688
|
-
return L >
|
|
687
|
+
const T = vt / 2, L = Math.abs(_ - y);
|
|
688
|
+
return L > T ? vt - L : L;
|
|
689
689
|
}
|
|
690
690
|
function g(_, y) {
|
|
691
691
|
if (_ === y)
|
|
@@ -694,17 +694,17 @@ const on = {
|
|
|
694
694
|
return L && _ < y || !L && _ > y ? 1 : -1;
|
|
695
695
|
}
|
|
696
696
|
return (_, y) => {
|
|
697
|
-
const
|
|
697
|
+
const T = V("v-icon");
|
|
698
698
|
return v(), D("div", null, [
|
|
699
699
|
t.value.isError ? (v(), D("div", on, [
|
|
700
|
-
C(
|
|
700
|
+
C(T, { "x-large": "" }, {
|
|
701
701
|
default: b(() => [
|
|
702
702
|
ae("mdi-alert-circle-outline")
|
|
703
703
|
]),
|
|
704
704
|
_: 1
|
|
705
705
|
})
|
|
706
706
|
])) : d.value ? (v(), D("div", cn, [
|
|
707
|
-
(v(!0), D(
|
|
707
|
+
(v(!0), D(ve, null, Ce(l.value, (L) => (v(), D("picture", {
|
|
708
708
|
key: L.index,
|
|
709
709
|
alt: L.index,
|
|
710
710
|
class: ge({ "frame-image": !0, show: L.show })
|
|
@@ -795,7 +795,7 @@ const on = {
|
|
|
795
795
|
setup(s, { expose: a, emit: e }) {
|
|
796
796
|
const o = s, n = e;
|
|
797
797
|
a({
|
|
798
|
-
adjustZoom:
|
|
798
|
+
adjustZoom: me
|
|
799
799
|
});
|
|
800
800
|
const t = c(100), r = c(0), l = c(0), d = c(!1), m = c(!1), i = c(void 0), p = c(!1), w = c(), k = B(() => `translateX(${r.value}px) translateY(${l.value}px) scale(${f.value})`), f = B(() => t.value / 100), h = B(() => o.maxScale * 100);
|
|
801
801
|
U(
|
|
@@ -812,12 +812,12 @@ const on = {
|
|
|
812
812
|
), U(
|
|
813
813
|
() => o.mobile,
|
|
814
814
|
() => {
|
|
815
|
-
o.mobile ? _() :
|
|
815
|
+
o.mobile ? _() : T();
|
|
816
816
|
}
|
|
817
817
|
), Se(() => {
|
|
818
818
|
o.desktop && g(), o.mobile && _();
|
|
819
819
|
}), Xe(() => {
|
|
820
|
-
o.desktop && y(), o.mobile &&
|
|
820
|
+
o.desktop && y(), o.mobile && T();
|
|
821
821
|
});
|
|
822
822
|
function g() {
|
|
823
823
|
w.value.addEventListener("wheel", L, {
|
|
@@ -856,7 +856,7 @@ const on = {
|
|
|
856
856
|
capture: !0
|
|
857
857
|
});
|
|
858
858
|
}
|
|
859
|
-
function
|
|
859
|
+
function T() {
|
|
860
860
|
w.value.removeEventListener("touchstart", H, {
|
|
861
861
|
capture: !0
|
|
862
862
|
}), w.value.removeEventListener("touchmove", te, {
|
|
@@ -869,7 +869,7 @@ const on = {
|
|
|
869
869
|
}
|
|
870
870
|
function L(O) {
|
|
871
871
|
const { x: Z, y: q } = S(O);
|
|
872
|
-
|
|
872
|
+
me(-O.deltaY / 10, Z, q), O.preventDefault();
|
|
873
873
|
}
|
|
874
874
|
function P(O) {
|
|
875
875
|
d.value = !0, p.value = !1, i.value = O;
|
|
@@ -907,7 +907,7 @@ const on = {
|
|
|
907
907
|
), { x: re, y: be } = S(O.touches[1]), { x: le, y: Fe } = S(
|
|
908
908
|
i.value.touches[1]
|
|
909
909
|
), Me = Math.hypot(ne - le, ue - Fe), We = Math.hypot(Z - re, q - be), we = (re + Z) / 2, Ie = (be + q) / 2;
|
|
910
|
-
|
|
910
|
+
me(We - Me, we, Ie);
|
|
911
911
|
}
|
|
912
912
|
i.value = O;
|
|
913
913
|
}
|
|
@@ -935,7 +935,7 @@ const on = {
|
|
|
935
935
|
-(q - Z)
|
|
936
936
|
);
|
|
937
937
|
}
|
|
938
|
-
function
|
|
938
|
+
function me(O, Z, q) {
|
|
939
939
|
const ne = Z !== void 0 ? Z : w.value.clientWidth / 2, ue = q !== void 0 ? q : w.value.clientHeight / 2, re = w.value.clientWidth, be = w.value.clientHeight, le = re * f.value, Fe = be * f.value;
|
|
940
940
|
t.value = Math.min(Math.max(100, t.value + O), h.value);
|
|
941
941
|
const Me = re * f.value, We = be * f.value, we = Me - le, Ie = We - Fe;
|
|
@@ -1074,12 +1074,12 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
|
|
|
1074
1074
|
for (let z = 0; z < $t; z++)
|
|
1075
1075
|
S.push(I), I = aa(I);
|
|
1076
1076
|
return H.sort((z, G) => {
|
|
1077
|
-
const
|
|
1077
|
+
const me = S.findIndex(
|
|
1078
1078
|
(O) => O === r.value[z[te]]
|
|
1079
1079
|
), Y = S.findIndex(
|
|
1080
1080
|
(O) => O === r.value[G[te]]
|
|
1081
1081
|
);
|
|
1082
|
-
return
|
|
1082
|
+
return me < Y ? -1 : me > Y ? 1 : 0;
|
|
1083
1083
|
}), H;
|
|
1084
1084
|
}, K = (H) => {
|
|
1085
1085
|
m.value = new bn(H);
|
|
@@ -1093,7 +1093,7 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
|
|
|
1093
1093
|
initialize: K
|
|
1094
1094
|
});
|
|
1095
1095
|
});
|
|
1096
|
-
function
|
|
1096
|
+
function T(x) {
|
|
1097
1097
|
i.value = x;
|
|
1098
1098
|
}
|
|
1099
1099
|
function L(x) {
|
|
@@ -1134,7 +1134,7 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
|
|
|
1134
1134
|
onGoToUnit: M[4] || (M[4] = (H) => n("goToUnit", H)),
|
|
1135
1135
|
onHoverOver: L,
|
|
1136
1136
|
onHoverOut: P,
|
|
1137
|
-
onPos:
|
|
1137
|
+
onPos: T
|
|
1138
1138
|
}, {
|
|
1139
1139
|
default: b((H) => [
|
|
1140
1140
|
oe(x.$slots, "default", pt(ft(H)), void 0, !0)
|
|
@@ -1208,7 +1208,7 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
|
|
|
1208
1208
|
[Ae, o.timeSampleData === o.currentTime]
|
|
1209
1209
|
]);
|
|
1210
1210
|
}
|
|
1211
|
-
}), On = /* @__PURE__ */ X(Mn, [["__scopeId", "data-v-dbbdc1e0"]]),
|
|
1211
|
+
}), On = /* @__PURE__ */ X(Mn, [["__scopeId", "data-v-dbbdc1e0"]]), En = /* @__PURE__ */ W({
|
|
1212
1212
|
__name: "VApartmentChooserV5CameraDay",
|
|
1213
1213
|
props: {
|
|
1214
1214
|
dayData: {},
|
|
@@ -1217,13 +1217,13 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
|
|
|
1217
1217
|
},
|
|
1218
1218
|
setup(s) {
|
|
1219
1219
|
const a = s;
|
|
1220
|
-
return (e, o) => (v(!0), D(
|
|
1220
|
+
return (e, o) => (v(!0), D(ve, null, Ce(a.dayData.timeSamples, (n) => (v(), $(On, {
|
|
1221
1221
|
"time-sample-data": n,
|
|
1222
1222
|
"cdn-file-resolver": a.cdnFileResolver,
|
|
1223
1223
|
"current-time": e.currentTime
|
|
1224
1224
|
}, null, 8, ["time-sample-data", "cdn-file-resolver", "current-time"]))), 256));
|
|
1225
1225
|
}
|
|
1226
|
-
}),
|
|
1226
|
+
}), Tn = /* @__PURE__ */ W({
|
|
1227
1227
|
__name: "VApartmentChooserV5Camera",
|
|
1228
1228
|
props: {
|
|
1229
1229
|
cameraData: {},
|
|
@@ -1232,7 +1232,7 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
|
|
|
1232
1232
|
},
|
|
1233
1233
|
setup(s) {
|
|
1234
1234
|
const a = s;
|
|
1235
|
-
return (e, o) => (v(!0), D(
|
|
1235
|
+
return (e, o) => (v(!0), D(ve, null, Ce(a.cameraData.sunsimDayOfYear, (n) => (v(), $(En, {
|
|
1236
1236
|
"day-data": n,
|
|
1237
1237
|
"cdn-file-resolver": a.cdnFileResolver,
|
|
1238
1238
|
"current-time": a.currentTime
|
|
@@ -1278,7 +1278,7 @@ function Rn(s) {
|
|
|
1278
1278
|
function Bt(s) {
|
|
1279
1279
|
return !("filename" in s);
|
|
1280
1280
|
}
|
|
1281
|
-
function
|
|
1281
|
+
function Et(s) {
|
|
1282
1282
|
return "filename" in s;
|
|
1283
1283
|
}
|
|
1284
1284
|
const Un = /* @__PURE__ */ W({
|
|
@@ -1368,7 +1368,7 @@ const Un = /* @__PURE__ */ W({
|
|
|
1368
1368
|
"hide-details": ""
|
|
1369
1369
|
}, {
|
|
1370
1370
|
item: b(({ props: i }) => [
|
|
1371
|
-
C(d,
|
|
1371
|
+
C(d, Ee(i, {
|
|
1372
1372
|
title: t(i.title)
|
|
1373
1373
|
}), null, 16, ["title"])
|
|
1374
1374
|
]),
|
|
@@ -1541,7 +1541,7 @@ const Un = /* @__PURE__ */ W({
|
|
|
1541
1541
|
}
|
|
1542
1542
|
return (f, h) => {
|
|
1543
1543
|
const g = V("v-btn"), _ = V("v-chip");
|
|
1544
|
-
return v(), D(
|
|
1544
|
+
return v(), D(ve, null, [
|
|
1545
1545
|
C(g, {
|
|
1546
1546
|
class: "mx-2",
|
|
1547
1547
|
icon: "mdi-restore",
|
|
@@ -1896,7 +1896,7 @@ function ao(s) {
|
|
|
1896
1896
|
]
|
|
1897
1897
|
}
|
|
1898
1898
|
]
|
|
1899
|
-
},
|
|
1899
|
+
}, Et(t[d]) && (t[d] = i);
|
|
1900
1900
|
}
|
|
1901
1901
|
return {
|
|
1902
1902
|
version: "5.0",
|
|
@@ -1943,7 +1943,7 @@ const no = {
|
|
|
1943
1943
|
null
|
|
1944
1944
|
), d = c(4), m = c(), i = c(!1), p = c(!1), w = c(), k = c(), f = B(() => k.value.isHoverEnabled), h = c({ x: 0, y: 0, width: 0, height: 0 }), g = c(), _ = c(), y = c(
|
|
1945
1945
|
e.apartmentChooserData
|
|
1946
|
-
),
|
|
1946
|
+
), T = c(!1);
|
|
1947
1947
|
Se(() => {
|
|
1948
1948
|
i.value = !0;
|
|
1949
1949
|
}), U(i, (Y) => {
|
|
@@ -1952,14 +1952,14 @@ const no = {
|
|
|
1952
1952
|
() => _.value,
|
|
1953
1953
|
() => {
|
|
1954
1954
|
_.value && new ResizeObserver(([O]) => {
|
|
1955
|
-
|
|
1955
|
+
T.value = O.contentRect.width < e.mobileBreakpoint;
|
|
1956
1956
|
}).observe(_.value);
|
|
1957
1957
|
}
|
|
1958
1958
|
);
|
|
1959
1959
|
const L = B(
|
|
1960
1960
|
() => y.value ? y.value.cameras.filter(Bt) : []
|
|
1961
1961
|
), P = B(
|
|
1962
|
-
() => y.value ? y.value.cameras.filter(
|
|
1962
|
+
() => y.value ? y.value.cameras.filter(Et) : []
|
|
1963
1963
|
), x = async () => {
|
|
1964
1964
|
try {
|
|
1965
1965
|
let Y, O;
|
|
@@ -2009,7 +2009,7 @@ const no = {
|
|
|
2009
2009
|
);
|
|
2010
2010
|
}
|
|
2011
2011
|
function K(Y) {
|
|
2012
|
-
d.value = Y,
|
|
2012
|
+
d.value = Y, Et(y.value.cameras[d.value]) ? l.value = y.value.cameras[d.value] : (xe(() => {
|
|
2013
2013
|
H(
|
|
2014
2014
|
y.value.cameras[d.value]
|
|
2015
2015
|
);
|
|
@@ -2056,7 +2056,7 @@ const no = {
|
|
|
2056
2056
|
function G(Y) {
|
|
2057
2057
|
o("onHoverOut", Y), m.value = void 0;
|
|
2058
2058
|
}
|
|
2059
|
-
function
|
|
2059
|
+
function me(Y) {
|
|
2060
2060
|
const { layerX: O, layerY: Z } = Y;
|
|
2061
2061
|
let q = Y.target, ne = !1;
|
|
2062
2062
|
for (; q; )
|
|
@@ -2079,7 +2079,7 @@ const no = {
|
|
|
2079
2079
|
}
|
|
2080
2080
|
return (Y, O) => {
|
|
2081
2081
|
const Z = V("v-skeleton-loader");
|
|
2082
|
-
return v(), D(
|
|
2082
|
+
return v(), D(ve, null, [
|
|
2083
2083
|
C(Z, {
|
|
2084
2084
|
type: "image",
|
|
2085
2085
|
class: "w-100 h-100 position-relative",
|
|
@@ -2091,8 +2091,8 @@ const no = {
|
|
|
2091
2091
|
u("div", {
|
|
2092
2092
|
ref_key: "container",
|
|
2093
2093
|
ref: _,
|
|
2094
|
-
class: ge({ mobile:
|
|
2095
|
-
onMousemove:
|
|
2094
|
+
class: ge({ mobile: T.value }),
|
|
2095
|
+
onMousemove: me
|
|
2096
2096
|
}, [
|
|
2097
2097
|
u("div", no, [
|
|
2098
2098
|
u("div", oo, [
|
|
@@ -2146,13 +2146,13 @@ const no = {
|
|
|
2146
2146
|
]),
|
|
2147
2147
|
C(st, { position: "relative" }, {
|
|
2148
2148
|
default: b(() => [
|
|
2149
|
-
(v(!0), D(
|
|
2149
|
+
(v(!0), D(ve, null, Ce(L.value, (q) => (v(), $(Tn, {
|
|
2150
2150
|
key: q.overlayFilename,
|
|
2151
2151
|
"camera-data": q,
|
|
2152
2152
|
"cdn-file-resolver": e.cdnFileResolver,
|
|
2153
2153
|
"current-time": r.value
|
|
2154
2154
|
}, null, 8, ["camera-data", "cdn-file-resolver", "current-time"]))), 128)),
|
|
2155
|
-
(v(!0), D(
|
|
2155
|
+
(v(!0), D(ve, null, Ce(P.value, (q) => (v(), $(Bn, {
|
|
2156
2156
|
"transition-data": q,
|
|
2157
2157
|
"cdn-file-resolver": e.cdnFileResolver,
|
|
2158
2158
|
"current-transition": l.value
|
|
@@ -2344,7 +2344,7 @@ const no = {
|
|
|
2344
2344
|
onLoad: l
|
|
2345
2345
|
}, null, 544),
|
|
2346
2346
|
n.value === "preloaded" || n.value === "loaded" ? De((v(), D("div", _o, [
|
|
2347
|
-
(v(!0), D(
|
|
2347
|
+
(v(!0), D(ve, null, Ce(m.imageUrls, (p, w) => (v(), D("img", {
|
|
2348
2348
|
key: w,
|
|
2349
2349
|
class: ge({ "image-instance": !0, active: w === m.activeIndex }),
|
|
2350
2350
|
src: p,
|
|
@@ -2410,8 +2410,8 @@ const no = {
|
|
|
2410
2410
|
viewLongitude: S.viewLongitude
|
|
2411
2411
|
};
|
|
2412
2412
|
const z = [];
|
|
2413
|
-
for (let { id: G, url:
|
|
2414
|
-
i.value.loadJson(
|
|
2413
|
+
for (let { id: G, url: me } of S.buildingOverlays)
|
|
2414
|
+
i.value.loadJson(me.replace(".png", ".svg")).then((Y) => {
|
|
2415
2415
|
const Z = new DOMParser().parseFromString(Y, "image/svg+xml").getElementsByTagName("svg")[0];
|
|
2416
2416
|
w.value = Z.getAttribute("viewBox"), z.push({
|
|
2417
2417
|
id: G,
|
|
@@ -2422,7 +2422,7 @@ const no = {
|
|
|
2422
2422
|
} else
|
|
2423
2423
|
m.value = !0;
|
|
2424
2424
|
});
|
|
2425
|
-
function
|
|
2425
|
+
function T({ width: I, height: S }) {
|
|
2426
2426
|
t.value.width = I, t.value.height = S;
|
|
2427
2427
|
}
|
|
2428
2428
|
function L() {
|
|
@@ -2441,12 +2441,12 @@ const no = {
|
|
|
2441
2441
|
I === l.value ? "hover" : "idle"
|
|
2442
2442
|
);
|
|
2443
2443
|
if (S) {
|
|
2444
|
-
const { r: z, g: G, b:
|
|
2444
|
+
const { r: z, g: G, b: me, a: Y, s: O } = S;
|
|
2445
2445
|
return {
|
|
2446
2446
|
strokeWidth: O !== void 0 ? O : 2,
|
|
2447
|
-
stroke: `rgb(${z}, ${G}, ${
|
|
2447
|
+
stroke: `rgb(${z}, ${G}, ${me})`,
|
|
2448
2448
|
strokeOpacity: 1,
|
|
2449
|
-
fill: `rgb(${z}, ${G}, ${
|
|
2449
|
+
fill: `rgb(${z}, ${G}, ${me})`,
|
|
2450
2450
|
fillOpacity: Y / 255,
|
|
2451
2451
|
cursor: `${e.canGoToBuildingCallback(I) ? "cursor" : "default"} !important`
|
|
2452
2452
|
};
|
|
@@ -2513,7 +2513,7 @@ const no = {
|
|
|
2513
2513
|
C(la, {
|
|
2514
2514
|
"image-urls": k.value.imageUrls,
|
|
2515
2515
|
"active-index": d.value,
|
|
2516
|
-
onResize:
|
|
2516
|
+
onResize: T,
|
|
2517
2517
|
onPreloaded: S[0] || (S[0] = (G) => n.value.preloaded = !0),
|
|
2518
2518
|
onReady: S[1] || (S[1] = (G) => n.value.ready = !0),
|
|
2519
2519
|
onReset: L
|
|
@@ -2521,9 +2521,9 @@ const no = {
|
|
|
2521
2521
|
p.value ? De((v(), D("div", So, [
|
|
2522
2522
|
u("div", Io, [
|
|
2523
2523
|
(v(), D("svg", { viewBox: w.value }, [
|
|
2524
|
-
(v(!0), D(
|
|
2524
|
+
(v(!0), D(ve, null, Ce(p.value, ({ id: G, svg: me }, Y) => (v(), D("g", {
|
|
2525
2525
|
key: Y,
|
|
2526
|
-
innerHTML:
|
|
2526
|
+
innerHTML: me,
|
|
2527
2527
|
"data-building-id": G,
|
|
2528
2528
|
class: ge(P(G)),
|
|
2529
2529
|
style: ie(x(G)),
|
|
@@ -2629,17 +2629,17 @@ const no = {
|
|
|
2629
2629
|
for (let k = 0; k < d.value.length; k++)
|
|
2630
2630
|
l.value.data[d.value[k] - 3] = e.color.r, l.value.data[d.value[k] - 2] = e.color.g, l.value.data[d.value[k] - 1] = e.color.b, l.value.data[d.value[k]] = e.color.a;
|
|
2631
2631
|
}
|
|
2632
|
-
return (k, f) => (v(), D("canvas",
|
|
2632
|
+
return (k, f) => (v(), D("canvas", Ee({
|
|
2633
2633
|
ref_key: "canvas",
|
|
2634
2634
|
ref: m,
|
|
2635
2635
|
class: "overlay"
|
|
2636
2636
|
}, k.dimensions), null, 16));
|
|
2637
2637
|
}
|
|
2638
|
-
}), Oo = /* @__PURE__ */ X(Mo, [["__scopeId", "data-v-9e4cdd0e"]]),
|
|
2638
|
+
}), Oo = /* @__PURE__ */ X(Mo, [["__scopeId", "data-v-9e4cdd0e"]]), Eo = {
|
|
2639
2639
|
key: 0,
|
|
2640
2640
|
style: { height: "50vh" },
|
|
2641
2641
|
class: "d-flex justify-center align-center blue-grey lighten-5"
|
|
2642
|
-
},
|
|
2642
|
+
}, To = { class: "image-instances" }, Vo = ["innerHTML"], $o = /* @__PURE__ */ W({
|
|
2643
2643
|
__name: "VBuildingChooserRaster",
|
|
2644
2644
|
props: {
|
|
2645
2645
|
showCards: { type: Boolean, default: !0 },
|
|
@@ -2694,18 +2694,18 @@ const no = {
|
|
|
2694
2694
|
viewLongitude: S.viewLongitude
|
|
2695
2695
|
}, x()) : f.value = !0;
|
|
2696
2696
|
});
|
|
2697
|
-
function
|
|
2697
|
+
function T({ width: I, height: S }) {
|
|
2698
2698
|
r.value.width = I, r.value.height = S, xe(x);
|
|
2699
2699
|
}
|
|
2700
2700
|
function L() {
|
|
2701
2701
|
t.value = { preloaded: !1, ready: !1 };
|
|
2702
2702
|
}
|
|
2703
2703
|
function P(I) {
|
|
2704
|
-
const { layerX: S, layerY: z } = I, { x: G, y:
|
|
2704
|
+
const { layerX: S, layerY: z } = I, { x: G, y: me } = k.value(S, z);
|
|
2705
2705
|
return m.value.getBuildingId(
|
|
2706
2706
|
i.value,
|
|
2707
2707
|
G,
|
|
2708
|
-
|
|
2708
|
+
me
|
|
2709
2709
|
);
|
|
2710
2710
|
}
|
|
2711
2711
|
function x() {
|
|
@@ -2736,7 +2736,7 @@ const no = {
|
|
|
2736
2736
|
}
|
|
2737
2737
|
return (I, S) => {
|
|
2738
2738
|
const z = V("v-icon");
|
|
2739
|
-
return f.value ? (v(), D("div",
|
|
2739
|
+
return f.value ? (v(), D("div", Eo, [
|
|
2740
2740
|
C(z, { "x-large": "" }, {
|
|
2741
2741
|
default: b(() => [
|
|
2742
2742
|
ae("mdi-alert-circle-outline")
|
|
@@ -2754,17 +2754,17 @@ const no = {
|
|
|
2754
2754
|
onUpdate: te
|
|
2755
2755
|
}, {
|
|
2756
2756
|
default: b(() => [
|
|
2757
|
-
u("div",
|
|
2757
|
+
u("div", To, [
|
|
2758
2758
|
C(la, {
|
|
2759
2759
|
"image-urls": n.value.imageUrls,
|
|
2760
2760
|
"active-index": w.value,
|
|
2761
|
-
onResize:
|
|
2761
|
+
onResize: T,
|
|
2762
2762
|
onPreloaded: S[0] || (S[0] = (G) => t.value.preloaded = !0),
|
|
2763
2763
|
onReady: S[1] || (S[1] = (G) => t.value.ready = !0),
|
|
2764
2764
|
onReset: L
|
|
2765
2765
|
}, null, 8, ["image-urls", "active-index"]),
|
|
2766
2766
|
De(u("div", null, [
|
|
2767
|
-
(v(!0), D(
|
|
2767
|
+
(v(!0), D(ve, null, Ce(d.value.buildingOverlays, (G) => (v(), $(Oo, {
|
|
2768
2768
|
ref_for: !0,
|
|
2769
2769
|
ref_key: "overlays",
|
|
2770
2770
|
ref: _,
|
|
@@ -2777,7 +2777,7 @@ const no = {
|
|
|
2777
2777
|
[Ae, t.value.preloaded]
|
|
2778
2778
|
])
|
|
2779
2779
|
]),
|
|
2780
|
-
u("canvas",
|
|
2780
|
+
u("canvas", Ee(r.value, {
|
|
2781
2781
|
ref_key: "canvas",
|
|
2782
2782
|
ref: g,
|
|
2783
2783
|
class: { hover: !!p.value },
|
|
@@ -2902,7 +2902,7 @@ const no = {
|
|
|
2902
2902
|
},
|
|
2903
2903
|
setup(s) {
|
|
2904
2904
|
const a = s;
|
|
2905
|
-
return (e, o) => (v(!0), D(
|
|
2905
|
+
return (e, o) => (v(!0), D(ve, null, Ce(a.dayData.timeSamples, (n) => (v(), $(Yo, {
|
|
2906
2906
|
"time-sample-data": n,
|
|
2907
2907
|
"cdn-file-resolver": a.cdnFileResolver,
|
|
2908
2908
|
"current-time": e.currentTime
|
|
@@ -2917,7 +2917,7 @@ const no = {
|
|
|
2917
2917
|
},
|
|
2918
2918
|
setup(s) {
|
|
2919
2919
|
const a = s;
|
|
2920
|
-
return (e, o) => (v(!0), D(
|
|
2920
|
+
return (e, o) => (v(!0), D(ve, null, Ce(a.cameraData.sunsimDayOfYear, (n) => (v(), $(zo, {
|
|
2921
2921
|
"day-data": n,
|
|
2922
2922
|
"cdn-file-resolver": a.cdnFileResolver,
|
|
2923
2923
|
"current-time": a.currentTime
|
|
@@ -2997,7 +2997,7 @@ const no = {
|
|
|
2997
2997
|
"hide-details": ""
|
|
2998
2998
|
}, {
|
|
2999
2999
|
item: b(({ props: i }) => [
|
|
3000
|
-
C(d,
|
|
3000
|
+
C(d, Ee(i, {
|
|
3001
3001
|
title: t(i.title)
|
|
3002
3002
|
}), null, 16, ["title"])
|
|
3003
3003
|
]),
|
|
@@ -3333,7 +3333,7 @@ const tl = {
|
|
|
3333
3333
|
function y(M) {
|
|
3334
3334
|
const K = r.value;
|
|
3335
3335
|
t.value = M, xe(() => {
|
|
3336
|
-
|
|
3336
|
+
T(
|
|
3337
3337
|
t.value.timeSamples.find(
|
|
3338
3338
|
(H) => H.timeInHours === K.timeInHours
|
|
3339
3339
|
) || t.value.timeSamples.find(
|
|
@@ -3342,7 +3342,7 @@ const tl = {
|
|
|
3342
3342
|
);
|
|
3343
3343
|
});
|
|
3344
3344
|
}
|
|
3345
|
-
function
|
|
3345
|
+
function T(M) {
|
|
3346
3346
|
r.value = M;
|
|
3347
3347
|
}
|
|
3348
3348
|
function L(M) {
|
|
@@ -3374,7 +3374,7 @@ const tl = {
|
|
|
3374
3374
|
}
|
|
3375
3375
|
return (M, K) => {
|
|
3376
3376
|
const H = V("v-skeleton-loader");
|
|
3377
|
-
return v(), D(
|
|
3377
|
+
return v(), D(ve, null, [
|
|
3378
3378
|
C(H, {
|
|
3379
3379
|
type: "image",
|
|
3380
3380
|
class: "w-100 h-100 position-relative",
|
|
@@ -3410,7 +3410,7 @@ const tl = {
|
|
|
3410
3410
|
key: 0,
|
|
3411
3411
|
"day-data": t.value,
|
|
3412
3412
|
"current-time": r.value,
|
|
3413
|
-
onOnTimeChange:
|
|
3413
|
+
onOnTimeChange: T
|
|
3414
3414
|
}, null, 8, ["day-data", "current-time"])) : R("", !0)
|
|
3415
3415
|
])
|
|
3416
3416
|
]),
|
|
@@ -3422,7 +3422,7 @@ const tl = {
|
|
|
3422
3422
|
]),
|
|
3423
3423
|
C(st, { position: "relative" }, {
|
|
3424
3424
|
default: b(() => [
|
|
3425
|
-
(v(!0), D(
|
|
3425
|
+
(v(!0), D(ve, null, Ce(f.value.cameras, (te) => (v(), $(jo, {
|
|
3426
3426
|
key: te.overlayFilename,
|
|
3427
3427
|
"camera-data": te,
|
|
3428
3428
|
"cdn-file-resolver": e.cdnFileResolver,
|
|
@@ -3533,7 +3533,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
3533
3533
|
currentCameraId: l,
|
|
3534
3534
|
showStaticImage: d,
|
|
3535
3535
|
mouseSensitivity: m
|
|
3536
|
-
} =
|
|
3536
|
+
} = Te(o), i = a, p = c(), w = c(l.value), k = c(0), f = c(0);
|
|
3537
3537
|
U(l, () => {
|
|
3538
3538
|
w.value = l.value;
|
|
3539
3539
|
}), U([t, r], async () => {
|
|
@@ -3650,7 +3650,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
3650
3650
|
style: { width: "24px", height: "24px" },
|
|
3651
3651
|
viewBox: "0 0 18 16",
|
|
3652
3652
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3653
|
-
}, Ml = ["stroke"], Ol = ["stroke"],
|
|
3653
|
+
}, Ml = ["stroke"], Ol = ["stroke"], El = { class: "floor-level-label" }, Tl = /* @__PURE__ */ W({
|
|
3654
3654
|
__name: "VFloorLevel",
|
|
3655
3655
|
props: {
|
|
3656
3656
|
level: { default: 0 },
|
|
@@ -3673,7 +3673,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
3673
3673
|
attach: ""
|
|
3674
3674
|
}, {
|
|
3675
3675
|
activator: b(({ props: f }) => [
|
|
3676
|
-
C(w,
|
|
3676
|
+
C(w, Ee({
|
|
3677
3677
|
style: { cursor: "pointer" },
|
|
3678
3678
|
density: "comfortable",
|
|
3679
3679
|
elevation: "1",
|
|
@@ -3701,13 +3701,13 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
3701
3701
|
}, 1040)
|
|
3702
3702
|
]),
|
|
3703
3703
|
default: b(() => [
|
|
3704
|
-
u("span",
|
|
3704
|
+
u("span", El, Q(A(n).getLabel(r.value)) + " " + Q(A(n).getLabel("floor")), 1)
|
|
3705
3705
|
]),
|
|
3706
3706
|
_: 1
|
|
3707
3707
|
});
|
|
3708
3708
|
};
|
|
3709
3709
|
}
|
|
3710
|
-
}), Vl = /* @__PURE__ */ X(
|
|
3710
|
+
}), Vl = /* @__PURE__ */ X(Tl, [["__scopeId", "data-v-5ce91d8e"]]), $l = { class: "d-none d-md-inline" }, Bl = { class: "interior-selector-list" }, Rl = ["onClick"], Ul = { class: "d-flex align-center justify-left pa-0 ma-0" }, Hl = { class: "pa-0 ma-0" }, Yl = { class: "text-caption ma-2 no-wrap" }, zl = /* @__PURE__ */ W({
|
|
3711
3711
|
__name: "VInteriorSelector",
|
|
3712
3712
|
props: {
|
|
3713
3713
|
cdnFileResolver: { type: [String, Function] },
|
|
@@ -3728,7 +3728,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
3728
3728
|
attach: ""
|
|
3729
3729
|
}, {
|
|
3730
3730
|
activator: b(({ props: p }) => [
|
|
3731
|
-
C(d,
|
|
3731
|
+
C(d, Ee({ rounded: "" }, p, { class: "text-capitalize" }), {
|
|
3732
3732
|
default: b(() => [
|
|
3733
3733
|
C(l, null, {
|
|
3734
3734
|
default: b(() => [
|
|
@@ -3743,7 +3743,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
3743
3743
|
]),
|
|
3744
3744
|
default: b(() => [
|
|
3745
3745
|
u("div", Bl, [
|
|
3746
|
-
(v(!0), D(
|
|
3746
|
+
(v(!0), D(ve, null, Ce(e.availableArchetypes, (p, w) => (v(), D("div", {
|
|
3747
3747
|
key: `at-menuitem-${w}`,
|
|
3748
3748
|
onClick: (k) => o("selectInterior", p.archetypeID),
|
|
3749
3749
|
class: ge(["interior-selector-list-item", {
|
|
@@ -3848,7 +3848,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
3848
3848
|
const d = V("v-icon"), m = V("v-btn"), i = V("v-tooltip");
|
|
3849
3849
|
return v(), $(i, { location: "top" }, {
|
|
3850
3850
|
activator: b(({ props: p }) => [
|
|
3851
|
-
C(m,
|
|
3851
|
+
C(m, Ee({
|
|
3852
3852
|
density: "comfortable",
|
|
3853
3853
|
elevation: "1",
|
|
3854
3854
|
icon: "",
|
|
@@ -4396,7 +4396,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4396
4396
|
"stroke-linejoin": "round"
|
|
4397
4397
|
})
|
|
4398
4398
|
])
|
|
4399
|
-
], -1)), Fs = { class: "text text-col text-center" }, Ls = { class: "text-h6 text-capitalize" }, Ms = { class: "mt-2" }, Os = { class: "d-flex justify-center align-center checkbox-container" },
|
|
4399
|
+
], -1)), Fs = { class: "text text-col text-center" }, Ls = { class: "text-h6 text-capitalize" }, Ms = { class: "mt-2" }, Os = { class: "d-flex justify-center align-center checkbox-container" }, Es = { class: "text-caption" }, Ts = /* @__PURE__ */ W({
|
|
4400
4400
|
__name: "VTutorial",
|
|
4401
4401
|
emits: ["closeTutorial"],
|
|
4402
4402
|
setup(s, { emit: a }) {
|
|
@@ -4439,7 +4439,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4439
4439
|
C(w, {
|
|
4440
4440
|
variant: "tonal",
|
|
4441
4441
|
size: "small",
|
|
4442
|
-
onClick: m[0] || (m[0] = (
|
|
4442
|
+
onClick: m[0] || (m[0] = (T) => t.value = !0),
|
|
4443
4443
|
class: "text-capitalize mt-2"
|
|
4444
4444
|
}, {
|
|
4445
4445
|
default: b(() => [
|
|
@@ -4521,7 +4521,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4521
4521
|
C(w, {
|
|
4522
4522
|
variant: "tonal",
|
|
4523
4523
|
size: "small",
|
|
4524
|
-
onClick: m[1] || (m[1] = (
|
|
4524
|
+
onClick: m[1] || (m[1] = (T) => t.value = !1),
|
|
4525
4525
|
class: "text-capitalize"
|
|
4526
4526
|
}, {
|
|
4527
4527
|
default: b(() => [
|
|
@@ -4548,11 +4548,11 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4548
4548
|
C(y, {
|
|
4549
4549
|
density: "compact",
|
|
4550
4550
|
modelValue: n.value,
|
|
4551
|
-
"onUpdate:modelValue": m[2] || (m[2] = (
|
|
4551
|
+
"onUpdate:modelValue": m[2] || (m[2] = (T) => n.value = T),
|
|
4552
4552
|
"hide-details": ""
|
|
4553
4553
|
}, {
|
|
4554
4554
|
label: b(() => [
|
|
4555
|
-
u("span",
|
|
4555
|
+
u("span", Es, Q(A(o).getLabel("dontShowAgain")), 1)
|
|
4556
4556
|
]),
|
|
4557
4557
|
_: 1
|
|
4558
4558
|
}, 8, ["modelValue"])
|
|
@@ -4561,7 +4561,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4561
4561
|
default: b(() => [
|
|
4562
4562
|
C(w, {
|
|
4563
4563
|
variant: "tonal",
|
|
4564
|
-
onClick: m[3] || (m[3] = (
|
|
4564
|
+
onClick: m[3] || (m[3] = (T) => l()),
|
|
4565
4565
|
block: ""
|
|
4566
4566
|
}, {
|
|
4567
4567
|
default: b(() => [
|
|
@@ -4580,7 +4580,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4580
4580
|
});
|
|
4581
4581
|
};
|
|
4582
4582
|
}
|
|
4583
|
-
}), Vs = /* @__PURE__ */ X(
|
|
4583
|
+
}), Vs = /* @__PURE__ */ X(Ts, [["__scopeId", "data-v-a5e7f474"]]), $s = (s) => (It("data-v-bd4f66c3"), s = s(), xt(), s), Bs = { class: "player-settings-ui" }, Rs = { id: "settings-ui-form" }, Us = { class: "form-inputs" }, Hs = { class: "setting-label" }, Ys = { class: "setting-label" }, zs = ["max", "min", "step"], js = { class: "setting-label" }, Ps = { class: "flex-grow-1 flex-shrink-0" }, Ws = ["onUpdate:modelValue"], Ns = {
|
|
4584
4584
|
key: 3,
|
|
4585
4585
|
"d-block": "",
|
|
4586
4586
|
class: "mt-3"
|
|
@@ -4738,11 +4738,11 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4738
4738
|
};
|
|
4739
4739
|
}
|
|
4740
4740
|
return (f, h) => {
|
|
4741
|
-
const g = V("v-text-field"), _ = V("v-slider"), y = V("v-checkbox"),
|
|
4741
|
+
const g = V("v-text-field"), _ = V("v-slider"), y = V("v-checkbox"), T = V("v-btn"), L = V("v-select"), P = V("v-icon");
|
|
4742
4742
|
return v(), D("div", Bs, [
|
|
4743
4743
|
u("form", Rs, [
|
|
4744
4744
|
u("div", Us, [
|
|
4745
|
-
(v(!0), D(
|
|
4745
|
+
(v(!0), D(ve, null, Ce(n.value, (x, M, K) => (v(), D("div", {
|
|
4746
4746
|
key: K,
|
|
4747
4747
|
"d-block": ""
|
|
4748
4748
|
}, [
|
|
@@ -4826,7 +4826,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4826
4826
|
u("div", Gs, [
|
|
4827
4827
|
u("div", Qs, Q(x.label), 1),
|
|
4828
4828
|
u("div", null, [
|
|
4829
|
-
C(
|
|
4829
|
+
C(T, {
|
|
4830
4830
|
class: "ml-2",
|
|
4831
4831
|
"x-small": "",
|
|
4832
4832
|
onClick: (H) => n.value[M].value = null
|
|
@@ -4873,7 +4873,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4873
4873
|
]))), 128))
|
|
4874
4874
|
]),
|
|
4875
4875
|
u("div", Xs, [
|
|
4876
|
-
C(
|
|
4876
|
+
C(T, {
|
|
4877
4877
|
onClick: h[0] || (h[0] = (x) => m())
|
|
4878
4878
|
}, {
|
|
4879
4879
|
default: b(() => [
|
|
@@ -4881,7 +4881,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4881
4881
|
]),
|
|
4882
4882
|
_: 1
|
|
4883
4883
|
}),
|
|
4884
|
-
C(
|
|
4884
|
+
C(T, {
|
|
4885
4885
|
class: "ml-2",
|
|
4886
4886
|
onClick: h[1] || (h[1] = (x) => l())
|
|
4887
4887
|
}, {
|
|
@@ -4896,7 +4896,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
4896
4896
|
]),
|
|
4897
4897
|
_: 1
|
|
4898
4898
|
}),
|
|
4899
|
-
C(
|
|
4899
|
+
C(T, {
|
|
4900
4900
|
class: "ml-2",
|
|
4901
4901
|
onClick: h[2] || (h[2] = (x) => d())
|
|
4902
4902
|
}, {
|
|
@@ -5031,7 +5031,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
5031
5031
|
...I,
|
|
5032
5032
|
...K(r.value, z)
|
|
5033
5033
|
};
|
|
5034
|
-
})),
|
|
5034
|
+
})), T = B(() => ({
|
|
5035
5035
|
backgroundImage: `url(${a.backgroundImage})`,
|
|
5036
5036
|
backgroundSize: "contain"
|
|
5037
5037
|
})), L = B(() => ({
|
|
@@ -5090,13 +5090,13 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
5090
5090
|
}, [
|
|
5091
5091
|
u("div", {
|
|
5092
5092
|
class: "minimap-background-image",
|
|
5093
|
-
style: ie(
|
|
5093
|
+
style: ie(T.value)
|
|
5094
5094
|
}, null, 4),
|
|
5095
5095
|
u("div", {
|
|
5096
5096
|
class: "center-pivot",
|
|
5097
5097
|
style: ie(d.value)
|
|
5098
5098
|
}, [
|
|
5099
|
-
(v(!0), D(
|
|
5099
|
+
(v(!0), D(ve, null, Ce(y.value, (z) => (v(), D("div", {
|
|
5100
5100
|
key: z.id
|
|
5101
5101
|
}, [
|
|
5102
5102
|
f.value.floorLevel === z.floorLevel ? (v(), D("div", {
|
|
@@ -5187,8 +5187,8 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
5187
5187
|
}
|
|
5188
5188
|
async function k(_) {
|
|
5189
5189
|
let y = /* @__PURE__ */ new Map();
|
|
5190
|
-
for (let
|
|
5191
|
-
const L = _[
|
|
5190
|
+
for (let T = 0; T < _.length; T++) {
|
|
5191
|
+
const L = _[T].sunsimFiles;
|
|
5192
5192
|
for (let P = 0; P < L.length; P++) {
|
|
5193
5193
|
const x = L[P];
|
|
5194
5194
|
try {
|
|
@@ -5202,32 +5202,32 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
|
|
|
5202
5202
|
return y;
|
|
5203
5203
|
}
|
|
5204
5204
|
async function f(_) {
|
|
5205
|
-
const
|
|
5205
|
+
const T = await (await fetch(
|
|
5206
5206
|
ce(
|
|
5207
5207
|
e.cdnFileResolver,
|
|
5208
5208
|
`/${e.apartmentJson.type}/${e.apartmentJson.id}/minimap/${_}`
|
|
5209
5209
|
)
|
|
5210
|
-
)).blob(), L = await g(
|
|
5210
|
+
)).blob(), L = await g(T);
|
|
5211
5211
|
return h(L);
|
|
5212
5212
|
}
|
|
5213
5213
|
function h(_) {
|
|
5214
5214
|
return "data:image/jpeg;base64," + _;
|
|
5215
5215
|
}
|
|
5216
5216
|
async function g(_) {
|
|
5217
|
-
return new Promise((y,
|
|
5217
|
+
return new Promise((y, T) => {
|
|
5218
5218
|
const L = new FileReader();
|
|
5219
5219
|
L.onload = () => {
|
|
5220
5220
|
const P = L.result.split(",")[1];
|
|
5221
5221
|
y(P);
|
|
5222
|
-
}, L.onerror =
|
|
5222
|
+
}, L.onerror = T, L.readAsDataURL(_);
|
|
5223
5223
|
});
|
|
5224
5224
|
}
|
|
5225
5225
|
return (_, y) => {
|
|
5226
|
-
const
|
|
5226
|
+
const T = V("v-progress-linear"), L = V("v-icon"), P = V("v-slider");
|
|
5227
5227
|
return v(), D("div", yr, [
|
|
5228
5228
|
u("div", _r, [
|
|
5229
5229
|
u("div", br, [
|
|
5230
|
-
t.value ? (v(), $(
|
|
5230
|
+
t.value ? (v(), $(T, {
|
|
5231
5231
|
key: 0,
|
|
5232
5232
|
indeterminate: "",
|
|
5233
5233
|
rounded: "",
|
|
@@ -5390,7 +5390,7 @@ function wt(s) {
|
|
|
5390
5390
|
const a = s * 60, e = Math.floor(a / 60), o = a % 60;
|
|
5391
5391
|
return `${e.toString().padStart(2, "0")}:${o.toString().padStart(2, "0")}`;
|
|
5392
5392
|
}
|
|
5393
|
-
const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr = { class: "small" }, Or = { class: "small" },
|
|
5393
|
+
const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr = { class: "small" }, Or = { class: "small" }, Er = /* @__PURE__ */ W({
|
|
5394
5394
|
__name: "VSunsimSlider",
|
|
5395
5395
|
props: {
|
|
5396
5396
|
currentDay: {},
|
|
@@ -5399,7 +5399,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5399
5399
|
},
|
|
5400
5400
|
emits: ["onTimeChange", "toggleSunStudy"],
|
|
5401
5401
|
setup(s, { emit: a }) {
|
|
5402
|
-
const e = s, { currentDay: o, currentTime: n, disabled: t } =
|
|
5402
|
+
const e = s, { currentDay: o, currentTime: n, disabled: t } = Te(e), r = a, l = c(n.value.timeInHours);
|
|
5403
5403
|
return U(n, () => {
|
|
5404
5404
|
l.value = n.value.timeInHours;
|
|
5405
5405
|
}), U(
|
|
@@ -5453,7 +5453,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5453
5453
|
u("span", Mr, Q(A(wt)(l.value)), 1)
|
|
5454
5454
|
]),
|
|
5455
5455
|
_: 1
|
|
5456
|
-
}, 8, ["modelValue", "min", "max", "step", "disabled"])) : (v(), D(
|
|
5456
|
+
}, 8, ["modelValue", "min", "max", "step", "disabled"])) : (v(), D(ve, { key: 1 }, [
|
|
5457
5457
|
C(i, {
|
|
5458
5458
|
style: { "vertical-align": "baseline", "font-size": "20px", "margin-top": "-1px", opacity: "0.6" },
|
|
5459
5459
|
class: "mr-2 icon",
|
|
@@ -5481,7 +5481,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5481
5481
|
]);
|
|
5482
5482
|
};
|
|
5483
5483
|
}
|
|
5484
|
-
}), qt = /* @__PURE__ */ X(
|
|
5484
|
+
}), qt = /* @__PURE__ */ X(Er, [["__scopeId", "data-v-c06c753d"]]), Tr = /* @__PURE__ */ W({
|
|
5485
5485
|
__name: "VSunStudyToggle",
|
|
5486
5486
|
props: {
|
|
5487
5487
|
displaySunsim: { type: Boolean },
|
|
@@ -5618,14 +5618,14 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5618
5618
|
}, null, 8, ["class"]))
|
|
5619
5619
|
]),
|
|
5620
5620
|
default: b(() => [
|
|
5621
|
-
(v(!0), D(
|
|
5621
|
+
(v(!0), D(ve, null, Ce(m.thumbnails, (_) => (v(), $(h, {
|
|
5622
5622
|
key: _.id
|
|
5623
5623
|
}, {
|
|
5624
|
-
default: b(({ toggle: y, selectedClass:
|
|
5624
|
+
default: b(({ toggle: y, selectedClass: T }) => [
|
|
5625
5625
|
C(f, {
|
|
5626
5626
|
class: ge(["position-relative", [
|
|
5627
5627
|
r.value ? "ma-0" : "ma-1",
|
|
5628
|
-
|
|
5628
|
+
T,
|
|
5629
5629
|
"single-waypoint"
|
|
5630
5630
|
]]),
|
|
5631
5631
|
align: "center",
|
|
@@ -5698,11 +5698,11 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5698
5698
|
attach: ""
|
|
5699
5699
|
}, {
|
|
5700
5700
|
activator: b(({ props: y }) => [
|
|
5701
|
-
C(i,
|
|
5701
|
+
C(i, Ee({
|
|
5702
5702
|
density: "comfortable",
|
|
5703
5703
|
elevation: "1",
|
|
5704
5704
|
icon: "mdi-share-variant",
|
|
5705
|
-
onClick: m[0] || (m[0] = (
|
|
5705
|
+
onClick: m[0] || (m[0] = (T) => e.value = !e.value)
|
|
5706
5706
|
}, y), null, 16)
|
|
5707
5707
|
]),
|
|
5708
5708
|
default: b(() => [
|
|
@@ -5741,7 +5741,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5741
5741
|
u("p", Hr, [
|
|
5742
5742
|
C(p, { location: "top" }, {
|
|
5743
5743
|
activator: b(({ props: y }) => [
|
|
5744
|
-
C(i,
|
|
5744
|
+
C(i, Ee({
|
|
5745
5745
|
depressed: "",
|
|
5746
5746
|
fab: "",
|
|
5747
5747
|
light: "",
|
|
@@ -5755,7 +5755,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5755
5755
|
}),
|
|
5756
5756
|
C(p, { location: "top" }, {
|
|
5757
5757
|
activator: b(({ props: y }) => [
|
|
5758
|
-
C(i,
|
|
5758
|
+
C(i, Ee({
|
|
5759
5759
|
depressed: "",
|
|
5760
5760
|
fab: "",
|
|
5761
5761
|
light: "",
|
|
@@ -5769,7 +5769,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5769
5769
|
}),
|
|
5770
5770
|
C(p, { location: "top" }, {
|
|
5771
5771
|
activator: b(({ props: y }) => [
|
|
5772
|
-
C(i,
|
|
5772
|
+
C(i, Ee({
|
|
5773
5773
|
depressed: "",
|
|
5774
5774
|
fab: "",
|
|
5775
5775
|
light: "",
|
|
@@ -5783,7 +5783,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5783
5783
|
}),
|
|
5784
5784
|
C(p, { location: "top" }, {
|
|
5785
5785
|
activator: b(({ props: y }) => [
|
|
5786
|
-
C(i,
|
|
5786
|
+
C(i, Ee({
|
|
5787
5787
|
depressed: "",
|
|
5788
5788
|
fab: "",
|
|
5789
5789
|
light: "",
|
|
@@ -5799,7 +5799,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
|
|
|
5799
5799
|
}),
|
|
5800
5800
|
C(p, { location: "top" }, {
|
|
5801
5801
|
activator: b(({ props: y }) => [
|
|
5802
|
-
C(i,
|
|
5802
|
+
C(i, Ee({
|
|
5803
5803
|
depressed: "",
|
|
5804
5804
|
fab: "",
|
|
5805
5805
|
light: "",
|
|
@@ -5986,7 +5986,7 @@ const Nr = {
|
|
|
5986
5986
|
showInteriorOptions: g,
|
|
5987
5987
|
showMiniMap: _,
|
|
5988
5988
|
showFloorLevel: y,
|
|
5989
|
-
defaultWaypointIndex:
|
|
5989
|
+
defaultWaypointIndex: T,
|
|
5990
5990
|
defaultViewMode: L,
|
|
5991
5991
|
mouseSensitivity: P,
|
|
5992
5992
|
// isInIframe,
|
|
@@ -5996,7 +5996,7 @@ const Nr = {
|
|
|
5996
5996
|
dynamicMarkers: H,
|
|
5997
5997
|
version: te,
|
|
5998
5998
|
showVersion: I
|
|
5999
|
-
} =
|
|
5999
|
+
} = Te(o), S = e;
|
|
6000
6000
|
a({
|
|
6001
6001
|
updateSelectedInterior: zt,
|
|
6002
6002
|
takeSnapshot: Wt,
|
|
@@ -6009,7 +6009,7 @@ const Nr = {
|
|
|
6009
6009
|
screenToWorld: La,
|
|
6010
6010
|
clearCurrentMarkerLayer: Aa
|
|
6011
6011
|
});
|
|
6012
|
-
const z = c(!1), G = c(!1),
|
|
6012
|
+
const z = c(!1), G = c(!1), me = c(!1), Y = c(), O = c(), Z = c(), q = c(), ne = c(), ue = c(0), re = c(), be = c(), le = c(), Fe = c(0), Me = c(0), We = c(0), we = c(!1), Ie = c(!1), Ve = c(), Le = c(!1), N = c(!1), ee = c(
|
|
6013
6013
|
new da(document, "player-wrapper")
|
|
6014
6014
|
), ye = c(), Ge = B(() => {
|
|
6015
6015
|
if (O.value) {
|
|
@@ -6058,7 +6058,7 @@ const Nr = {
|
|
|
6058
6058
|
`/${F.archetypeID}/${t.value}/thumbs/200/${j}.jpg`
|
|
6059
6059
|
)
|
|
6060
6060
|
};
|
|
6061
|
-
}) : []),
|
|
6061
|
+
}) : []), E = B(() => {
|
|
6062
6062
|
if (q.value && q.value.storeys && $e.value in q.value.storeys)
|
|
6063
6063
|
return q.value.storeys[$e.value];
|
|
6064
6064
|
}), J = B(() => O.value && O.value.timeInHours), de = B(() => {
|
|
@@ -6071,7 +6071,7 @@ const Nr = {
|
|
|
6071
6071
|
);
|
|
6072
6072
|
const fe = B(() => /Android|webOS|iPhone|iPad|BlackBerry|Windows Phone|Opera Mini|IEMobile|Mobile/i.test(
|
|
6073
6073
|
window.navigator.userAgent
|
|
6074
|
-
)),
|
|
6074
|
+
)), pe = B(() => fe.value ? "platform-mobile" : "platform-desktop"), ze = B(() => {
|
|
6075
6075
|
const F = ce(
|
|
6076
6076
|
n.value,
|
|
6077
6077
|
"/config.json"
|
|
@@ -6088,7 +6088,7 @@ const Nr = {
|
|
|
6088
6088
|
try {
|
|
6089
6089
|
be.value = void 0, await va(), pa(), await ma(), ee.value.setup(), fa();
|
|
6090
6090
|
} catch (F) {
|
|
6091
|
-
|
|
6091
|
+
me.value = !0, S("onError", F);
|
|
6092
6092
|
}
|
|
6093
6093
|
},
|
|
6094
6094
|
{ immediate: !0 }
|
|
@@ -6113,7 +6113,7 @@ const Nr = {
|
|
|
6113
6113
|
z.value = !0;
|
|
6114
6114
|
}, 1e3);
|
|
6115
6115
|
} catch (F) {
|
|
6116
|
-
|
|
6116
|
+
me.value = !0, S("onError", F);
|
|
6117
6117
|
}
|
|
6118
6118
|
}), Xe(() => {
|
|
6119
6119
|
document.removeEventListener("wheel", At);
|
|
@@ -6140,7 +6140,7 @@ const Nr = {
|
|
|
6140
6140
|
re.value,
|
|
6141
6141
|
t.value
|
|
6142
6142
|
), Z.value) {
|
|
6143
|
-
const j =
|
|
6143
|
+
const j = T.value !== null ? T.value : 0;
|
|
6144
6144
|
ue.value = j, be.value = Z.value.cameras[j].id, le.value = Z.value.cameras[j].id;
|
|
6145
6145
|
}
|
|
6146
6146
|
_.value && (q.value = await Yt(
|
|
@@ -6336,10 +6336,10 @@ const Nr = {
|
|
|
6336
6336
|
throw new Error(se);
|
|
6337
6337
|
}
|
|
6338
6338
|
}
|
|
6339
|
-
function
|
|
6339
|
+
function Ea(F) {
|
|
6340
6340
|
ne.value.updateSettings(F);
|
|
6341
6341
|
}
|
|
6342
|
-
function
|
|
6342
|
+
function Ta(F) {
|
|
6343
6343
|
S("saveSettings", F);
|
|
6344
6344
|
}
|
|
6345
6345
|
function Va(F) {
|
|
@@ -6361,11 +6361,11 @@ const Nr = {
|
|
|
6361
6361
|
return (F, j) => {
|
|
6362
6362
|
const se = V("v-btn");
|
|
6363
6363
|
return v(), D("div", {
|
|
6364
|
-
class: ge(["virtual-tour-wrapper", [
|
|
6364
|
+
class: ge(["virtual-tour-wrapper", [pe.value]])
|
|
6365
6365
|
}, [
|
|
6366
|
-
|
|
6366
|
+
me.value ? (v(), D("div", Nr, "Error loading the player!!")) : R("", !0),
|
|
6367
6367
|
u("div", Gr, [
|
|
6368
|
-
!ee.value.isActive && q.value && le.value &&
|
|
6368
|
+
!ee.value.isActive && q.value && le.value && E.value && re.value && Ie.value ? (v(), $(Zt, {
|
|
6369
6369
|
key: 0,
|
|
6370
6370
|
"cdn-file-resolver": A(n),
|
|
6371
6371
|
"apartment-json": O.value,
|
|
@@ -6377,7 +6377,7 @@ const Nr = {
|
|
|
6377
6377
|
}, null, 8, ["cdn-file-resolver", "apartment-json", "level", "minimap-json", "rotation", "current-camera"])) : R("", !0),
|
|
6378
6378
|
re.value && be.value ? (v(), D("div", {
|
|
6379
6379
|
key: 1,
|
|
6380
|
-
class: ge(["v-player", [
|
|
6380
|
+
class: ge(["v-player", [pe.value]])
|
|
6381
6381
|
}, [
|
|
6382
6382
|
C(Fl, {
|
|
6383
6383
|
ref_key: "vPlayerInstance",
|
|
@@ -6421,7 +6421,7 @@ const Nr = {
|
|
|
6421
6421
|
}, null, 512), [
|
|
6422
6422
|
[Ae, N.value]
|
|
6423
6423
|
]),
|
|
6424
|
-
q.value && be.value &&
|
|
6424
|
+
q.value && be.value && E.value ? De((v(), $(se, {
|
|
6425
6425
|
key: 1,
|
|
6426
6426
|
density: "comfortable",
|
|
6427
6427
|
elevation: "3",
|
|
@@ -6440,8 +6440,8 @@ const Nr = {
|
|
|
6440
6440
|
A(x) && G.value ? (v(), D("div", Qr, [
|
|
6441
6441
|
C(er, {
|
|
6442
6442
|
"initial-settings": A(M),
|
|
6443
|
-
onUpdateSettings:
|
|
6444
|
-
onSaveSettings:
|
|
6443
|
+
onUpdateSettings: Ea,
|
|
6444
|
+
onSaveSettings: Ta
|
|
6445
6445
|
}, null, 8, ["initial-settings"])
|
|
6446
6446
|
])) : R("", !0)
|
|
6447
6447
|
]),
|
|
@@ -6461,7 +6461,7 @@ const Nr = {
|
|
|
6461
6461
|
minutes: de.value.minutes,
|
|
6462
6462
|
class: "time-of-day",
|
|
6463
6463
|
style: ie({
|
|
6464
|
-
cursor: q.value && le.value &&
|
|
6464
|
+
cursor: q.value && le.value && E.value ? "pointer" : "default"
|
|
6465
6465
|
})
|
|
6466
6466
|
}, null, 8, ["hours", "minutes", "style"])) : R("", !0)
|
|
6467
6467
|
])
|
|
@@ -6485,7 +6485,7 @@ const Nr = {
|
|
|
6485
6485
|
key: 0,
|
|
6486
6486
|
onCloseTutorial: j[5] || (j[5] = (ke) => ct(ke))
|
|
6487
6487
|
})) : R("", !0),
|
|
6488
|
-
ee.value.isActive && q.value && le.value &&
|
|
6488
|
+
ee.value.isActive && q.value && le.value && E.value && Ie.value ? (v(), $(Zt, {
|
|
6489
6489
|
key: 1,
|
|
6490
6490
|
"cdn-file-resolver": A(n),
|
|
6491
6491
|
"apartment-json": O.value,
|
|
@@ -6545,7 +6545,7 @@ const Nr = {
|
|
|
6545
6545
|
"mb-2": !fe.value
|
|
6546
6546
|
}])
|
|
6547
6547
|
}, [
|
|
6548
|
-
!Qe.value && Je.value(le.value) ? (v(), $(
|
|
6548
|
+
!Qe.value && Je.value(le.value) ? (v(), $(Tr, {
|
|
6549
6549
|
key: 0,
|
|
6550
6550
|
class: "ml-2",
|
|
6551
6551
|
displaySunsim: Le.value,
|
|
@@ -6852,14 +6852,14 @@ const Nr = {
|
|
|
6852
6852
|
},
|
|
6853
6853
|
emits: ["apartmentJsonLoaded", "minimapJsonLoaded", "cameraSet"],
|
|
6854
6854
|
setup(s, { emit: a }) {
|
|
6855
|
-
const o =
|
|
6855
|
+
const o = Te(s), n = a, t = c(), r = c(), l = c(), d = c(0), m = c(), i = c(1), p = B(() => o.currentCamera.value ? o.currentCamera.value : t.value ? t.value.cameras[0].id : null), w = B(() => ({
|
|
6856
6856
|
transformOrigin: "top left",
|
|
6857
6857
|
transform: `scale(${i.value})`
|
|
6858
6858
|
}));
|
|
6859
6859
|
U(m, () => {
|
|
6860
6860
|
m.value && new ResizeObserver(([_]) => {
|
|
6861
|
-
const y = _.target.parentElement,
|
|
6862
|
-
i.value =
|
|
6861
|
+
const y = _.target.parentElement, T = y.parentElement;
|
|
6862
|
+
i.value = T.clientWidth / 512, y.style.height = `${_.contentRect.height * i.value}px`;
|
|
6863
6863
|
}).observe(m.value);
|
|
6864
6864
|
}), U(p, () => {
|
|
6865
6865
|
n("cameraSet", p.value);
|
|
@@ -6926,9 +6926,9 @@ const Nr = {
|
|
|
6926
6926
|
containerHeight: 384,
|
|
6927
6927
|
fit: ""
|
|
6928
6928
|
}, {
|
|
6929
|
-
default: b(({ id:
|
|
6929
|
+
default: b(({ id: T, camera: L, active: P, style: x }) => [
|
|
6930
6930
|
oe(g.$slots, "default", {
|
|
6931
|
-
id:
|
|
6931
|
+
id: T,
|
|
6932
6932
|
camera: L,
|
|
6933
6933
|
active: P,
|
|
6934
6934
|
style: ie(x)
|
|
@@ -6959,7 +6959,7 @@ const Nr = {
|
|
|
6959
6959
|
currentTime: {}
|
|
6960
6960
|
},
|
|
6961
6961
|
setup(s) {
|
|
6962
|
-
const a = s, { timeSampleData: e, cdnFileResolver: o, currentTime: n } =
|
|
6962
|
+
const a = s, { timeSampleData: e, cdnFileResolver: o, currentTime: n } = Te(a), t = c(), r = Ue("registerImage"), l = Ue("completeImage");
|
|
6963
6963
|
U(t, () => {
|
|
6964
6964
|
t.value && (r(t.value), t.value.onload = () => {
|
|
6965
6965
|
l(t.value);
|
|
@@ -6986,8 +6986,8 @@ const Nr = {
|
|
|
6986
6986
|
currentTime: {}
|
|
6987
6987
|
},
|
|
6988
6988
|
setup(s) {
|
|
6989
|
-
const a = s, { dayData: e, cdnFileResolver: o, currentTime: n } =
|
|
6990
|
-
return (t, r) => (v(!0), D(
|
|
6989
|
+
const a = s, { dayData: e, cdnFileResolver: o, currentTime: n } = Te(a);
|
|
6990
|
+
return (t, r) => (v(!0), D(ve, null, Ce(A(e).timeSamples, (l, d) => (v(), $(xi, {
|
|
6991
6991
|
key: d,
|
|
6992
6992
|
"time-sample-data": l,
|
|
6993
6993
|
"cdn-file-resolver": A(o),
|
|
@@ -7004,7 +7004,7 @@ const Nr = {
|
|
|
7004
7004
|
currentTime: {}
|
|
7005
7005
|
},
|
|
7006
7006
|
setup(s) {
|
|
7007
|
-
const a = s, { cameraData: e, cdnFileResolver: o, currentCamera: n, currentTime: t } =
|
|
7007
|
+
const a = s, { cameraData: e, cdnFileResolver: o, currentCamera: n, currentTime: t } = Te(a), r = c(), l = Ue("registerImage"), d = Ue("completeImage");
|
|
7008
7008
|
U(r, () => {
|
|
7009
7009
|
r.value && (l(r.value), r.value.onload = () => {
|
|
7010
7010
|
d(r.value);
|
|
@@ -7012,25 +7012,24 @@ const Nr = {
|
|
|
7012
7012
|
d(r.value);
|
|
7013
7013
|
});
|
|
7014
7014
|
});
|
|
7015
|
-
const m = B(() => ce(
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
"current-day":
|
|
7024
|
-
"
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
}, null, 12, Ai));
|
|
7015
|
+
const m = B(() => ce(o.value, e.value.defaultFilename));
|
|
7016
|
+
return (i, p) => (v(), D(ve, null, [
|
|
7017
|
+
A(e).sunsimDayOfYear ? (v(!0), D(ve, { key: 0 }, Ce(A(e).sunsimDayOfYear, (w, k) => (v(), $(Di, {
|
|
7018
|
+
key: k,
|
|
7019
|
+
"day-data": w,
|
|
7020
|
+
"cdn-file-resolver": A(o),
|
|
7021
|
+
"current-day": i.currentDay,
|
|
7022
|
+
"current-time": A(t)
|
|
7023
|
+
}, null, 8, ["day-data", "cdn-file-resolver", "current-day", "current-time"]))), 128)) : R("", !0),
|
|
7024
|
+
u("img", {
|
|
7025
|
+
ref_key: "image",
|
|
7026
|
+
ref: r,
|
|
7027
|
+
style: ie({ visibility: A(n) === A(e) ? "visible" : "hidden" }),
|
|
7028
|
+
src: m.value
|
|
7029
|
+
}, null, 12, Ai)
|
|
7030
|
+
], 64));
|
|
7032
7031
|
}
|
|
7033
|
-
}), Li = /* @__PURE__ */ X(Fi, [["__scopeId", "data-v-
|
|
7032
|
+
}), Li = /* @__PURE__ */ X(Fi, [["__scopeId", "data-v-164572be"]]), Mi = ["src"], Oi = /* @__PURE__ */ W({
|
|
7034
7033
|
__name: "VStructureChooserTransition",
|
|
7035
7034
|
props: {
|
|
7036
7035
|
transitionData: {},
|
|
@@ -7038,7 +7037,7 @@ const Nr = {
|
|
|
7038
7037
|
currentTransition: {}
|
|
7039
7038
|
},
|
|
7040
7039
|
setup(s) {
|
|
7041
|
-
const a = s, { transitionData: e, cdnFileResolver: o, currentTransition: n } =
|
|
7040
|
+
const a = s, { transitionData: e, cdnFileResolver: o, currentTransition: n } = Te(a), t = c(), r = Ue("registerImage"), l = Ue("completeImage");
|
|
7042
7041
|
U(t, () => {
|
|
7043
7042
|
t.value && (r(t.value), t.value.onload = () => {
|
|
7044
7043
|
l(t.value);
|
|
@@ -7056,7 +7055,7 @@ const Nr = {
|
|
|
7056
7055
|
src: d.value
|
|
7057
7056
|
}, null, 12, Mi));
|
|
7058
7057
|
}
|
|
7059
|
-
}),
|
|
7058
|
+
}), Ei = /* @__PURE__ */ X(Oi, [["__scopeId", "data-v-d592c198"]]);
|
|
7060
7059
|
function Xt(s) {
|
|
7061
7060
|
const a = /* @__PURE__ */ new Date(0);
|
|
7062
7061
|
return a.setUTCDate(s), a.toLocaleString("en-no", {
|
|
@@ -7064,7 +7063,7 @@ function Xt(s) {
|
|
|
7064
7063
|
day: "numeric"
|
|
7065
7064
|
});
|
|
7066
7065
|
}
|
|
7067
|
-
const
|
|
7066
|
+
const Ti = {
|
|
7068
7067
|
key: 0,
|
|
7069
7068
|
class: "d-inline-block",
|
|
7070
7069
|
style: { "vertical-align": "top" }
|
|
@@ -7078,7 +7077,7 @@ const Ei = {
|
|
|
7078
7077
|
},
|
|
7079
7078
|
emits: ["onDayChange"],
|
|
7080
7079
|
setup(s, { emit: a }) {
|
|
7081
|
-
const e = s, { isMobileSized: o, currentCamera: n, currentDay: t, disabled: r } =
|
|
7080
|
+
const e = s, { isMobileSized: o, currentCamera: n, currentDay: t, disabled: r } = Te(e), l = a, d = c(t.value.dayOfYear);
|
|
7082
7081
|
return U(t, () => {
|
|
7083
7082
|
d.value = t.value.dayOfYear;
|
|
7084
7083
|
}), U(d, () => {
|
|
@@ -7090,7 +7089,7 @@ const Ei = {
|
|
|
7090
7089
|
);
|
|
7091
7090
|
}), (m, i) => {
|
|
7092
7091
|
const p = V("v-btn"), w = V("v-field"), k = V("v-list-item-title"), f = V("v-list-item"), h = V("v-list"), g = V("v-menu");
|
|
7093
|
-
return A(n).sunsimDayOfYear && A(n).sunsimDayOfYear.length > 0 ? (v(), D("div",
|
|
7092
|
+
return A(n).sunsimDayOfYear && A(n).sunsimDayOfYear.length > 0 ? (v(), D("div", Ti, [
|
|
7094
7093
|
C(g, null, {
|
|
7095
7094
|
activator: b(({ props: _ }) => [
|
|
7096
7095
|
C(w, {
|
|
@@ -7099,7 +7098,7 @@ const Ei = {
|
|
|
7099
7098
|
flat: ""
|
|
7100
7099
|
}, {
|
|
7101
7100
|
default: b(() => [
|
|
7102
|
-
C(p,
|
|
7101
|
+
C(p, Ee({
|
|
7103
7102
|
variant: "text",
|
|
7104
7103
|
rounded: "",
|
|
7105
7104
|
flat: "",
|
|
@@ -7121,10 +7120,10 @@ const Ei = {
|
|
|
7121
7120
|
default: b(() => [
|
|
7122
7121
|
C(h, null, {
|
|
7123
7122
|
default: b(() => [
|
|
7124
|
-
(v(!0), D(
|
|
7123
|
+
(v(!0), D(ve, null, Ce(A(n).sunsimDayOfYear, (_, y) => (v(), $(f, {
|
|
7125
7124
|
key: y,
|
|
7126
7125
|
value: y,
|
|
7127
|
-
onClick: (
|
|
7126
|
+
onClick: (T) => d.value = _.dayOfYear
|
|
7128
7127
|
}, {
|
|
7129
7128
|
default: b(() => [
|
|
7130
7129
|
C(k, null, {
|
|
@@ -7168,7 +7167,7 @@ const Ei = {
|
|
|
7168
7167
|
currentCamera: t,
|
|
7169
7168
|
cdnFileResolver: r,
|
|
7170
7169
|
disabled: l
|
|
7171
|
-
} =
|
|
7170
|
+
} = Te(e), d = c(t.value), m = a;
|
|
7172
7171
|
U(
|
|
7173
7172
|
t,
|
|
7174
7173
|
() => {
|
|
@@ -7198,7 +7197,7 @@ const Ei = {
|
|
|
7198
7197
|
})
|
|
7199
7198
|
}, [
|
|
7200
7199
|
u("div", Bi, [
|
|
7201
|
-
(v(!0), D(
|
|
7200
|
+
(v(!0), D(ve, null, Ce(A(n), (f, h) => (v(), D("div", {
|
|
7202
7201
|
key: h,
|
|
7203
7202
|
class: ge(["still-camera-image d-flex flex-column flex-reverse align-center elevation-2", {
|
|
7204
7203
|
"active-camera": f === d.value
|
|
@@ -7242,7 +7241,7 @@ const Ei = {
|
|
|
7242
7241
|
},
|
|
7243
7242
|
emits: ["onTimeChange"],
|
|
7244
7243
|
setup(s, { emit: a }) {
|
|
7245
|
-
const e = s, { isMobileSized: o, currentDay: n, currentTime: t, disabled: r } =
|
|
7244
|
+
const e = s, { isMobileSized: o, currentDay: n, currentTime: t, disabled: r } = Te(e), l = a, d = c(t.value.timeInHours);
|
|
7246
7245
|
return U(t, () => {
|
|
7247
7246
|
d.value = t.value.timeInHours;
|
|
7248
7247
|
}), U(d, () => {
|
|
@@ -7307,7 +7306,7 @@ const Ei = {
|
|
|
7307
7306
|
u("span", ji, Q(A(wt)(d.value)), 1)
|
|
7308
7307
|
]),
|
|
7309
7308
|
_: 1
|
|
7310
|
-
}, 8, ["modelValue", "min", "max", "step", "disabled"])) : (v(), D(
|
|
7309
|
+
}, 8, ["modelValue", "min", "max", "step", "disabled"])) : (v(), D(ve, { key: 1 }, [
|
|
7311
7310
|
C(p, {
|
|
7312
7311
|
style: { "vertical-align": "baseline", "font-size": "20px", "margin-top": "-1px", opacity: "0.6" },
|
|
7313
7312
|
class: "mr-2 icon",
|
|
@@ -7339,7 +7338,7 @@ const Ei = {
|
|
|
7339
7338
|
},
|
|
7340
7339
|
emits: ["onZoomIn", "onZoomOut"],
|
|
7341
7340
|
setup(s, { emit: a }) {
|
|
7342
|
-
const e = s, { isMobileSized: o, canZoomIn: n, canZoomOut: t, disabled: r } =
|
|
7341
|
+
const e = s, { isMobileSized: o, canZoomIn: n, canZoomOut: t, disabled: r } = Te(e), l = a;
|
|
7343
7342
|
return (d, m) => {
|
|
7344
7343
|
const i = V("v-btn");
|
|
7345
7344
|
return v(), D("div", Gi, [
|
|
@@ -7374,20 +7373,20 @@ const Ei = {
|
|
|
7374
7373
|
},
|
|
7375
7374
|
emits: ["onClick", "onHoverOver", "onHoverOut", "updateSvgContainer", "onError"],
|
|
7376
7375
|
setup(s, { emit: a }) {
|
|
7377
|
-
const e = s, { cdnFileResolver: o, colorCallback: n, currentCamera: t, selectedId: r } =
|
|
7376
|
+
const e = s, { cdnFileResolver: o, colorCallback: n, currentCamera: t, selectedId: r } = Te(e), l = a, d = c(!0), m = c({}), i = c(), p = St({}), w = B(() => ce(
|
|
7378
7377
|
o.value,
|
|
7379
7378
|
t.value.overlayFilename
|
|
7380
7379
|
));
|
|
7381
7380
|
Re(() => {
|
|
7382
7381
|
for (const h in p) {
|
|
7383
|
-
const { element: g, state: _ } = p[h], { r: y, g:
|
|
7382
|
+
const { element: g, state: _ } = p[h], { r: y, g: T, b: L, a: P, s: x } = n.value(h, _) || {
|
|
7384
7383
|
r: 0,
|
|
7385
7384
|
g: 0,
|
|
7386
7385
|
b: 0,
|
|
7387
7386
|
a: 0,
|
|
7388
7387
|
s: 0
|
|
7389
7388
|
};
|
|
7390
|
-
g.style.fill = `rgba(${y}, ${
|
|
7389
|
+
g.style.fill = `rgba(${y}, ${T}, ${L}, ${P / 255})`, g.style.stroke = `rgb(${y}, ${T}, ${L})`, g.style.strokeWidth = x.toString(), g.style.cursor = "pointer";
|
|
7391
7390
|
}
|
|
7392
7391
|
}), U(r, () => {
|
|
7393
7392
|
for (const h in p)
|
|
@@ -7441,19 +7440,19 @@ const Ei = {
|
|
|
7441
7440
|
if (h) {
|
|
7442
7441
|
l("updateSvgContainer", h), k();
|
|
7443
7442
|
let _, y = "data-structure-id";
|
|
7444
|
-
_ = h.querySelectorAll(`[${y}]`), _.length === 0 && (y = "data-apartment-id", _ = h.querySelectorAll(`[${y}]`), _.length === 0 && (y = "data-building-id", _ = h.querySelectorAll(`[${y}]`))), _.forEach((
|
|
7445
|
-
|
|
7443
|
+
_ = h.querySelectorAll(`[${y}]`), _.length === 0 && (y = "data-apartment-id", _ = h.querySelectorAll(`[${y}]`), _.length === 0 && (y = "data-building-id", _ = h.querySelectorAll(`[${y}]`))), _.forEach((T) => {
|
|
7444
|
+
T.style.strokeWidth = "0", T.style.stroke = "rgba(255,255,255,0)", T.style.fill = "rgba(255,255,255,0)", T.querySelectorAll("path").forEach((P) => {
|
|
7446
7445
|
P.style.stroke = "inherit", P.style.fill = "inherit";
|
|
7447
7446
|
});
|
|
7448
|
-
const L =
|
|
7447
|
+
const L = T.getAttribute(y);
|
|
7449
7448
|
p[L] = {
|
|
7450
|
-
element:
|
|
7449
|
+
element: T,
|
|
7451
7450
|
state: r.value === L ? "selected" : "idle"
|
|
7452
|
-
}, e.activeStructureIds && !e.activeStructureIds.includes(L) && (
|
|
7451
|
+
}, e.activeStructureIds && !e.activeStructureIds.includes(L) && (T.style.display = "none"), T.addEventListener("mouseover", () => {
|
|
7453
7452
|
p[L].state === "idle" && (p[L].state = "hover"), l("onHoverOver", L);
|
|
7454
|
-
}),
|
|
7453
|
+
}), T.addEventListener("mouseout", () => {
|
|
7455
7454
|
p[L].state === "hover" && (p[L].state = "idle"), l("onHoverOut", L);
|
|
7456
|
-
}),
|
|
7455
|
+
}), T.addEventListener("click", () => {
|
|
7457
7456
|
l("onClick", L);
|
|
7458
7457
|
});
|
|
7459
7458
|
});
|
|
@@ -7497,7 +7496,7 @@ function Ki(s) {
|
|
|
7497
7496
|
function eu(s) {
|
|
7498
7497
|
return !("filename" in s) && "defaultFilename" in s;
|
|
7499
7498
|
}
|
|
7500
|
-
function
|
|
7499
|
+
function Tt(s) {
|
|
7501
7500
|
return "filename" in s;
|
|
7502
7501
|
}
|
|
7503
7502
|
function tu(s) {
|
|
@@ -7735,7 +7734,7 @@ function ou(s) {
|
|
|
7735
7734
|
// ],
|
|
7736
7735
|
// },
|
|
7737
7736
|
// ],
|
|
7738
|
-
},
|
|
7737
|
+
}, Tt(t[d]) && (t[d] = i);
|
|
7739
7738
|
}
|
|
7740
7739
|
return {
|
|
7741
7740
|
version: "5.0",
|
|
@@ -7806,7 +7805,7 @@ const lu = {
|
|
|
7806
7805
|
defaultDay: p,
|
|
7807
7806
|
defaultTime: w,
|
|
7808
7807
|
mobileBreakpoint: k
|
|
7809
|
-
} =
|
|
7808
|
+
} = Te(o), f = e, h = c(), g = c(), _ = c(), y = c(null), T = c(4), L = c(), P = c(!1), x = c(!1), M = c(), K = B(() => M.value.isHoverEnabled), H = c({ x: 0, y: 0, width: 0, height: 0 }), te = c(), I = c(), S = c(), z = c(!1), G = c(1), me = c(0), Y = c([]), O = c(), Z = c({
|
|
7810
7809
|
current: 100,
|
|
7811
7810
|
min: 100,
|
|
7812
7811
|
max: 1e3
|
|
@@ -7814,68 +7813,58 @@ const lu = {
|
|
|
7814
7813
|
Ze(
|
|
7815
7814
|
He,
|
|
7816
7815
|
l.value ? new je(l.value) : new je()
|
|
7817
|
-
), Ze("registerImage", (
|
|
7816
|
+
), Ze("registerImage", (E) => {
|
|
7818
7817
|
xe(() => {
|
|
7819
|
-
Y.value.find((J) => J.image ===
|
|
7818
|
+
Y.value.find((J) => J.image === E) || (Y.value = [...Y.value, { image: E, loaded: !1 }]);
|
|
7820
7819
|
});
|
|
7821
|
-
}), Ze("completeImage", (
|
|
7820
|
+
}), Ze("completeImage", (E) => {
|
|
7822
7821
|
xe(() => {
|
|
7823
|
-
const J = Y.value.findIndex((de) => de.image ===
|
|
7822
|
+
const J = Y.value.findIndex((de) => de.image === E);
|
|
7824
7823
|
J >= 0 && (Y.value[J].loaded = !0, Y.value = [...Y.value]);
|
|
7825
7824
|
});
|
|
7826
7825
|
}), a({
|
|
7827
7826
|
getState: () => ({
|
|
7828
|
-
currentCameraIndex: h.value ? le.value.findIndex((
|
|
7827
|
+
currentCameraIndex: h.value ? le.value.findIndex((E) => E === h.value) : null,
|
|
7829
7828
|
currentDayIndex: g.value ? h.value.sunsimDayOfYear.findIndex(
|
|
7830
|
-
(
|
|
7829
|
+
(E) => E === g.value
|
|
7831
7830
|
) : null,
|
|
7832
|
-
currentTimeIndex: _.value ? g.value.timeSamples.findIndex((
|
|
7831
|
+
currentTimeIndex: _.value ? g.value.timeSamples.findIndex((E) => E === _.value) : null,
|
|
7833
7832
|
currentTransitionIndex: y.value ? Fe.value.findIndex(
|
|
7834
|
-
(
|
|
7833
|
+
(E) => E === y.value
|
|
7835
7834
|
) : null,
|
|
7836
|
-
currentScene:
|
|
7835
|
+
currentScene: T.value
|
|
7837
7836
|
}),
|
|
7838
7837
|
setState: ({
|
|
7839
|
-
currentCameraIndex:
|
|
7838
|
+
currentCameraIndex: E,
|
|
7840
7839
|
currentDayIndex: J,
|
|
7841
7840
|
currentTimeIndex: de,
|
|
7842
7841
|
currentTransitionIndex: fe,
|
|
7843
|
-
currentScene:
|
|
7842
|
+
currentScene: pe
|
|
7844
7843
|
}) => {
|
|
7845
|
-
|
|
7846
|
-
typeof T == "number" && (h.value = le.value[T]), setTimeout(() => {
|
|
7847
|
-
typeof J == "number" && (g.value = h.value.sunsimDayOfYear[J]), setTimeout(() => {
|
|
7848
|
-
typeof de == "number" && (_.value = g.value.timeSamples[de]), setTimeout(() => {
|
|
7849
|
-
typeof fe == "number" && (y.value = Fe.value[fe]), setTimeout(() => {
|
|
7850
|
-
typeof me == "number" && (E.value = me);
|
|
7851
|
-
}, 100);
|
|
7852
|
-
}, 100);
|
|
7853
|
-
}, 100);
|
|
7854
|
-
}, 100);
|
|
7855
|
-
}, 100);
|
|
7844
|
+
typeof E == "number" && (h.value = le.value[E]), typeof J == "number" && (g.value = h.value.sunsimDayOfYear[J]), typeof de == "number" && (_.value = g.value.timeSamples[de]), typeof fe == "number" && (y.value = Fe.value[fe]), typeof pe == "number" && (T.value = pe);
|
|
7856
7845
|
},
|
|
7857
|
-
resolveCoordinates: (
|
|
7846
|
+
resolveCoordinates: (E, J) => ne.value ? ne.value(E, J) : { x: 0, y: 0 }
|
|
7858
7847
|
}), Se(() => {
|
|
7859
7848
|
P.value = !0, q.value = !1;
|
|
7860
7849
|
}), U(I, () => {
|
|
7861
7850
|
I.value && new ResizeObserver(([]) => {
|
|
7862
7851
|
const J = Y.value.find((de) => de.loaded);
|
|
7863
|
-
J && (
|
|
7852
|
+
J && (me.value = J.image.width / G.value);
|
|
7864
7853
|
}).observe(I.value);
|
|
7865
7854
|
}), U(Y, () => {
|
|
7866
|
-
if (
|
|
7867
|
-
const
|
|
7868
|
-
|
|
7855
|
+
if (me.value === 0) {
|
|
7856
|
+
const E = Y.value.find((J) => J.loaded);
|
|
7857
|
+
E && (G.value = E.image.naturalWidth / E.image.naturalHeight, me.value = E.image.width / G.value);
|
|
7869
7858
|
}
|
|
7870
7859
|
});
|
|
7871
|
-
const ue = B(() => Y.value.every((
|
|
7872
|
-
Y.value.filter((
|
|
7860
|
+
const ue = B(() => Y.value.every((E) => E.loaded)), re = B(() => Math.round(
|
|
7861
|
+
Y.value.filter((E) => E.loaded).length / Y.value.length * 100
|
|
7873
7862
|
));
|
|
7874
7863
|
U(
|
|
7875
7864
|
n,
|
|
7876
|
-
(
|
|
7865
|
+
(E) => {
|
|
7877
7866
|
try {
|
|
7878
|
-
q.value = !1, S.value = ou(
|
|
7867
|
+
q.value = !1, S.value = ou(E);
|
|
7879
7868
|
} catch (J) {
|
|
7880
7869
|
q.value = !0, f("onError", J);
|
|
7881
7870
|
}
|
|
@@ -7883,8 +7872,8 @@ const lu = {
|
|
|
7883
7872
|
{
|
|
7884
7873
|
immediate: !0
|
|
7885
7874
|
}
|
|
7886
|
-
), U(P, (
|
|
7887
|
-
|
|
7875
|
+
), U(P, (E) => {
|
|
7876
|
+
E && f("onInitialize");
|
|
7888
7877
|
});
|
|
7889
7878
|
const be = c();
|
|
7890
7879
|
U(
|
|
@@ -7907,7 +7896,7 @@ const lu = {
|
|
|
7907
7896
|
const le = B(
|
|
7908
7897
|
() => S.value ? S.value.cameras.filter(eu) : []
|
|
7909
7898
|
), Fe = B(
|
|
7910
|
-
() => S.value ? S.value.cameras.filter(
|
|
7899
|
+
() => S.value ? S.value.cameras.filter(Tt) : []
|
|
7911
7900
|
);
|
|
7912
7901
|
U(
|
|
7913
7902
|
[S, t],
|
|
@@ -7919,17 +7908,17 @@ const lu = {
|
|
|
7919
7908
|
[S, t, i],
|
|
7920
7909
|
async () => {
|
|
7921
7910
|
t.value && le.value.length > 0 && (i.value ? h.value = le.value.find(
|
|
7922
|
-
(
|
|
7923
|
-
) || le.value[0] : h.value = le.value[0],
|
|
7924
|
-
(
|
|
7925
|
-
),
|
|
7911
|
+
(E) => E.cameraName === i.value
|
|
7912
|
+
) || le.value[0] : h.value = le.value[0], T.value = S.value.cameras.findIndex(
|
|
7913
|
+
(E) => E === h.value
|
|
7914
|
+
), T.value = Math.max(0, T.value));
|
|
7926
7915
|
},
|
|
7927
7916
|
{ immediate: !0 }
|
|
7928
7917
|
), U(
|
|
7929
7918
|
[S, t, p],
|
|
7930
7919
|
() => {
|
|
7931
7920
|
S.value && t.value && h.value && h.value.sunsimDayOfYear && h.value.sunsimDayOfYear.length > 0 && (p.value ? g.value = h.value.sunsimDayOfYear.find(
|
|
7932
|
-
(
|
|
7921
|
+
(E) => E.dayOfYear === p.value
|
|
7933
7922
|
) || h.value.sunsimDayOfYear[0] : g.value = h.value.sunsimDayOfYear[0]);
|
|
7934
7923
|
},
|
|
7935
7924
|
{ immediate: !0 }
|
|
@@ -7937,28 +7926,28 @@ const lu = {
|
|
|
7937
7926
|
[S, t, w],
|
|
7938
7927
|
() => {
|
|
7939
7928
|
S.value && t.value && g.value && g.value.timeSamples && g.value.timeSamples.length > 0 && (w.value ? _.value = g.value.timeSamples.find(
|
|
7940
|
-
(
|
|
7929
|
+
(E) => E.timeInHours === w.value
|
|
7941
7930
|
) || g.value.timeSamples[0] : _.value = g.value.timeSamples.find(
|
|
7942
|
-
(
|
|
7931
|
+
(E) => E.timeInHours === g.value.defaultHour
|
|
7943
7932
|
) || g.value.timeSamples[0]);
|
|
7944
7933
|
},
|
|
7945
7934
|
{ immediate: !0 }
|
|
7946
7935
|
);
|
|
7947
|
-
function Me(
|
|
7948
|
-
h.value !==
|
|
7949
|
-
S.value.cameras.findIndex((J) => J ===
|
|
7936
|
+
function Me(E) {
|
|
7937
|
+
h.value !== E && _e(
|
|
7938
|
+
S.value.cameras.findIndex((J) => J === E)
|
|
7950
7939
|
);
|
|
7951
7940
|
}
|
|
7952
|
-
function We(
|
|
7953
|
-
|
|
7941
|
+
function We(E) {
|
|
7942
|
+
T.value = E, Tt(S.value.cameras[T.value]) ? y.value = S.value.cameras[T.value] : (xe(() => {
|
|
7954
7943
|
we(
|
|
7955
|
-
S.value.cameras[
|
|
7944
|
+
S.value.cameras[T.value]
|
|
7956
7945
|
);
|
|
7957
7946
|
}), y.value = null);
|
|
7958
7947
|
}
|
|
7959
|
-
function we(
|
|
7948
|
+
function we(E) {
|
|
7960
7949
|
const J = g.value;
|
|
7961
|
-
h.value =
|
|
7950
|
+
h.value = E, T.value = S.value.cameras.findIndex(
|
|
7962
7951
|
(de) => de === h.value
|
|
7963
7952
|
), xe(() => {
|
|
7964
7953
|
h.value.sunsimDayOfYear && h.value.sunsimDayOfYear.length > 0 && Ie(
|
|
@@ -7968,9 +7957,9 @@ const lu = {
|
|
|
7968
7957
|
);
|
|
7969
7958
|
});
|
|
7970
7959
|
}
|
|
7971
|
-
function Ie(
|
|
7960
|
+
function Ie(E) {
|
|
7972
7961
|
const J = _.value;
|
|
7973
|
-
g.value =
|
|
7962
|
+
g.value = E, xe(() => {
|
|
7974
7963
|
Ve(
|
|
7975
7964
|
g.value.timeSamples.find(
|
|
7976
7965
|
(de) => de.timeInHours === J.timeInHours
|
|
@@ -7980,34 +7969,34 @@ const lu = {
|
|
|
7980
7969
|
);
|
|
7981
7970
|
});
|
|
7982
7971
|
}
|
|
7983
|
-
function Ve(
|
|
7984
|
-
_.value =
|
|
7972
|
+
function Ve(E) {
|
|
7973
|
+
_.value = E;
|
|
7985
7974
|
}
|
|
7986
|
-
function Le(
|
|
7987
|
-
f("onClick",
|
|
7975
|
+
function Le(E) {
|
|
7976
|
+
f("onClick", E, () => {
|
|
7988
7977
|
const J = S.value.stillCameraData.find(
|
|
7989
|
-
(de) => de.id ===
|
|
7978
|
+
(de) => de.id === E
|
|
7990
7979
|
);
|
|
7991
7980
|
J && _e(J.bestIndex);
|
|
7992
7981
|
});
|
|
7993
7982
|
}
|
|
7994
|
-
function N(
|
|
7995
|
-
f("onHoverOver",
|
|
7983
|
+
function N(E) {
|
|
7984
|
+
f("onHoverOver", E), L.value = E;
|
|
7996
7985
|
}
|
|
7997
|
-
function ee(
|
|
7998
|
-
f("onHoverOut",
|
|
7986
|
+
function ee(E) {
|
|
7987
|
+
f("onHoverOut", E), L.value = void 0;
|
|
7999
7988
|
}
|
|
8000
|
-
function ye(
|
|
8001
|
-
const { layerX: J, layerY: de } =
|
|
8002
|
-
let fe =
|
|
7989
|
+
function ye(E) {
|
|
7990
|
+
const { layerX: J, layerY: de } = E;
|
|
7991
|
+
let fe = E.target, pe = !1;
|
|
8003
7992
|
for (; fe; )
|
|
8004
7993
|
if (fe === te.value) {
|
|
8005
|
-
|
|
7994
|
+
pe = !0;
|
|
8006
7995
|
break;
|
|
8007
7996
|
} else
|
|
8008
7997
|
fe = fe.parentElement;
|
|
8009
|
-
if (
|
|
8010
|
-
const ze =
|
|
7998
|
+
if (pe) {
|
|
7999
|
+
const ze = E.currentTarget;
|
|
8011
8000
|
H.value = {
|
|
8012
8001
|
x: J,
|
|
8013
8002
|
y: de,
|
|
@@ -8016,57 +8005,57 @@ const lu = {
|
|
|
8016
8005
|
};
|
|
8017
8006
|
} else
|
|
8018
8007
|
H.value = void 0;
|
|
8019
|
-
f("onMouseMove",
|
|
8008
|
+
f("onMouseMove", E, H.value);
|
|
8020
8009
|
}
|
|
8021
8010
|
function Ge({
|
|
8022
|
-
min:
|
|
8011
|
+
min: E,
|
|
8023
8012
|
max: J,
|
|
8024
8013
|
current: de,
|
|
8025
8014
|
resolve: fe
|
|
8026
8015
|
}) {
|
|
8027
|
-
ne.value = fe, Z.value = { min:
|
|
8016
|
+
ne.value = fe, Z.value = { min: E, max: J, current: de };
|
|
8028
8017
|
}
|
|
8029
|
-
function $e(
|
|
8030
|
-
O.value.adjustZoom(
|
|
8018
|
+
function $e(E) {
|
|
8019
|
+
O.value.adjustZoom(E ? 10 : -10);
|
|
8031
8020
|
}
|
|
8032
|
-
function Ye(
|
|
8021
|
+
function Ye(E) {
|
|
8033
8022
|
return S.value.stillCameraIndices.findIndex(
|
|
8034
|
-
(J) => J ===
|
|
8023
|
+
(J) => J === E
|
|
8035
8024
|
);
|
|
8036
8025
|
}
|
|
8037
|
-
async function _e(
|
|
8038
|
-
const J =
|
|
8026
|
+
async function _e(E) {
|
|
8027
|
+
const J = T.value;
|
|
8039
8028
|
if (S.value.loopable) {
|
|
8040
|
-
const de = S.value.stillCameraIndices.length, fe = Ye(J),
|
|
8029
|
+
const de = S.value.stillCameraIndices.length, fe = Ye(J), pe = Ye(E);
|
|
8041
8030
|
let ze = 0, ct = 0, Pe = fe;
|
|
8042
|
-
for (; Pe++, Pe >= de && (Pe = 0), Pe !==
|
|
8031
|
+
for (; Pe++, Pe >= de && (Pe = 0), Pe !== pe; )
|
|
8043
8032
|
ze++;
|
|
8044
|
-
for (Pe = fe; Pe--, Pe < 0 && (Pe += de), Pe !==
|
|
8033
|
+
for (Pe = fe; Pe--, Pe < 0 && (Pe += de), Pe !== pe; )
|
|
8045
8034
|
ct++;
|
|
8046
|
-
ze === ct ? Ne(J,
|
|
8035
|
+
ze === ct ? Ne(J, E) : ze < ct ? fe < pe ? Ne(J, E) : Ne(J, E + S.value.cameras.length) : fe >= pe ? Ne(J, E) : Ne(J + S.value.cameras.length, E);
|
|
8047
8036
|
} else
|
|
8048
|
-
Ne(J,
|
|
8037
|
+
Ne(J, E);
|
|
8049
8038
|
}
|
|
8050
|
-
function Ne(
|
|
8039
|
+
function Ne(E, J) {
|
|
8051
8040
|
return new Promise((de) => {
|
|
8052
8041
|
x.value = !0;
|
|
8053
|
-
let fe,
|
|
8042
|
+
let fe, pe = E;
|
|
8054
8043
|
fe = setInterval(() => {
|
|
8055
|
-
|
|
8056
|
-
|
|
8057
|
-
), We(
|
|
8058
|
-
|
|
8059
|
-
), We(
|
|
8044
|
+
pe < J ? (pe++, T.value = Math.abs(
|
|
8045
|
+
pe % S.value.cameras.length
|
|
8046
|
+
), We(T.value)) : pe > J ? (pe--, T.value = Math.abs(
|
|
8047
|
+
pe % S.value.cameras.length
|
|
8048
|
+
), We(T.value)) : (clearInterval(fe), x.value = !1, de());
|
|
8060
8049
|
}, 12);
|
|
8061
8050
|
});
|
|
8062
8051
|
}
|
|
8063
|
-
function ut(
|
|
8064
|
-
q.value = !0, f("onError",
|
|
8052
|
+
function ut(E) {
|
|
8053
|
+
q.value = !0, f("onError", E);
|
|
8065
8054
|
}
|
|
8066
|
-
const ht = (
|
|
8067
|
-
return (
|
|
8055
|
+
const ht = (E) => E * (180 / Math.PI);
|
|
8056
|
+
return (E, J) => {
|
|
8068
8057
|
const de = V("v-progress-circular"), fe = V("v-skeleton-loader");
|
|
8069
|
-
return v(), D(
|
|
8058
|
+
return v(), D(ve, null, [
|
|
8070
8059
|
C(fe, {
|
|
8071
8060
|
type: "image",
|
|
8072
8061
|
class: "w-100 h-100 position-relative",
|
|
@@ -8089,7 +8078,7 @@ const lu = {
|
|
|
8089
8078
|
style: { "min-height": "160px" },
|
|
8090
8079
|
onMousemove: ye
|
|
8091
8080
|
}, [
|
|
8092
|
-
|
|
8081
|
+
E.showUi ? (v(), D("div", {
|
|
8093
8082
|
key: 0,
|
|
8094
8083
|
class: "persistent actions-bar top-right pa-2",
|
|
8095
8084
|
style: ie({
|
|
@@ -8112,11 +8101,11 @@ const lu = {
|
|
|
8112
8101
|
"can-zoom-out": Z.value.min < Z.value.current,
|
|
8113
8102
|
"can-zoom-in": Z.value.max > Z.value.current,
|
|
8114
8103
|
disabled: x.value,
|
|
8115
|
-
onOnZoomIn: J[0] || (J[0] = (
|
|
8116
|
-
onOnZoomOut: J[1] || (J[1] = (
|
|
8104
|
+
onOnZoomIn: J[0] || (J[0] = (pe) => $e(!0)),
|
|
8105
|
+
onOnZoomOut: J[1] || (J[1] = (pe) => $e(!1))
|
|
8117
8106
|
}, null, 8, ["is-mobile-sized", "can-zoom-out", "can-zoom-in", "disabled"])
|
|
8118
8107
|
], 4)) : R("", !0),
|
|
8119
|
-
|
|
8108
|
+
E.showUi && le.value.length > 1 ? (v(), D("div", {
|
|
8120
8109
|
key: 1,
|
|
8121
8110
|
class: ge([{
|
|
8122
8111
|
"actions-bar bottom-center pb-2": !0,
|
|
@@ -8142,19 +8131,19 @@ const lu = {
|
|
|
8142
8131
|
default: b(() => [
|
|
8143
8132
|
u("div", {
|
|
8144
8133
|
class: "w-100 position-relative",
|
|
8145
|
-
style: ie({ height: `${
|
|
8134
|
+
style: ie({ height: `${me.value}px` })
|
|
8146
8135
|
}, [
|
|
8147
|
-
(v(!0), D(
|
|
8136
|
+
(v(!0), D(ve, null, Ce(le.value, (pe, ze) => (v(), $(Li, {
|
|
8148
8137
|
key: `camera${ze}`,
|
|
8149
|
-
"camera-data":
|
|
8138
|
+
"camera-data": pe,
|
|
8150
8139
|
"cdn-file-resolver": A(t),
|
|
8151
8140
|
"current-camera": h.value,
|
|
8152
8141
|
"current-day": g.value,
|
|
8153
8142
|
"current-time": _.value
|
|
8154
8143
|
}, null, 8, ["camera-data", "cdn-file-resolver", "current-camera", "current-day", "current-time"]))), 128)),
|
|
8155
|
-
(v(!0), D(
|
|
8144
|
+
(v(!0), D(ve, null, Ce(Fe.value, (pe, ze) => (v(), $(Ei, {
|
|
8156
8145
|
key: `transition${ze}`,
|
|
8157
|
-
"transition-data":
|
|
8146
|
+
"transition-data": pe,
|
|
8158
8147
|
"cdn-file-resolver": A(t),
|
|
8159
8148
|
"current-transition": y.value
|
|
8160
8149
|
}, null, 8, ["transition-data", "cdn-file-resolver", "current-transition"]))), 128)),
|
|
@@ -8174,17 +8163,17 @@ const lu = {
|
|
|
8174
8163
|
onOnClick: Le,
|
|
8175
8164
|
onOnHoverOver: N,
|
|
8176
8165
|
onOnHoverOut: ee,
|
|
8177
|
-
onUpdateSvgContainer: J[2] || (J[2] = (
|
|
8166
|
+
onUpdateSvgContainer: J[2] || (J[2] = (pe) => te.value = pe),
|
|
8178
8167
|
onOnError: ut
|
|
8179
8168
|
}, null, 8, ["cdn-file-resolver", "color-callback", "current-camera", "selected-id", "activeStructureIds"])), [
|
|
8180
8169
|
[Ae, y.value === null]
|
|
8181
8170
|
]) : R("", !0),
|
|
8182
|
-
oe(
|
|
8171
|
+
oe(E.$slots, "default", {}, void 0, !0)
|
|
8183
8172
|
], 4)
|
|
8184
8173
|
]),
|
|
8185
8174
|
_: 3
|
|
8186
8175
|
}, 512),
|
|
8187
|
-
|
|
8176
|
+
E.showUi && (g.value && g.value.timeSamples && g.value.timeSamples.length > 1 || h.value.sunsimDayOfYear && h.value.sunsimDayOfYear.length > 1) ? (v(), D("div", {
|
|
8188
8177
|
key: 2,
|
|
8189
8178
|
class: ge({
|
|
8190
8179
|
"actions-bar top-left pa-2 d-flex": !0,
|
|
@@ -8208,19 +8197,19 @@ const lu = {
|
|
|
8208
8197
|
onOnTimeChange: Ve
|
|
8209
8198
|
}, null, 8, ["is-mobile-sized", "current-day", "current-time", "disabled"])
|
|
8210
8199
|
], 2)) : R("", !0),
|
|
8211
|
-
|
|
8200
|
+
E.$slots.popup && H.value && L.value ? (v(), $(lt, {
|
|
8212
8201
|
key: 3,
|
|
8213
8202
|
"is-hoverable": K.value,
|
|
8214
8203
|
pos: H.value
|
|
8215
8204
|
}, {
|
|
8216
8205
|
default: b(() => [
|
|
8217
8206
|
u("div", ru, [
|
|
8218
|
-
oe(
|
|
8207
|
+
oe(E.$slots, "popup", pt(ft({ hoverId: L.value, hoverable: K.value })), void 0, !0)
|
|
8219
8208
|
])
|
|
8220
8209
|
]),
|
|
8221
8210
|
_: 3
|
|
8222
8211
|
}, 8, ["is-hoverable", "pos"])) : R("", !0),
|
|
8223
|
-
|
|
8212
|
+
E.version && E.showVersion ? (v(), D("div", iu, " version: " + Q(E.version), 1)) : R("", !0)
|
|
8224
8213
|
], 34)
|
|
8225
8214
|
]),
|
|
8226
8215
|
_: 3
|
|
@@ -8235,7 +8224,7 @@ const lu = {
|
|
|
8235
8224
|
], 64);
|
|
8236
8225
|
};
|
|
8237
8226
|
}
|
|
8238
|
-
}), cu = /* @__PURE__ */ X(uu, [["__scopeId", "data-v-
|
|
8227
|
+
}), cu = /* @__PURE__ */ X(uu, [["__scopeId", "data-v-df80f47c"]]), yu = {
|
|
8239
8228
|
install: function(a) {
|
|
8240
8229
|
a.component("VApartmentChooser", Fn), a.component("VBuildingChooser", Ro), a.component("VVirtualTour", ni), a.component("VManualSlideShow", wi), a.component("VStructureChooser", cu);
|
|
8241
8230
|
}
|