@qispace/vue3-player 0.1.21 → 0.1.23
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.
- package/dist/vue-components/src/components/apartmentChooser/v5/VApartmentChooserV5Camera.vue.d.ts +4 -32
- package/dist/vue-components/src/components/apartmentChooser/v5/VApartmentChooserV5CameraDay.vue.d.ts +4 -32
- package/dist/vue-components/src/components/apartmentChooser/v5/VApartmentChooserV5CameraDayTimeSample.vue.d.ts +4 -32
- package/dist/vue-components/src/components/buildingChooser/v5/VBuildingChooserV5Camera.vue.d.ts +4 -32
- package/dist/vue-components/src/components/buildingChooser/v5/VBuildingChooserV5CameraDay.vue.d.ts +4 -32
- package/dist/vue-components/src/components/buildingChooser/v5/VBuildingChooserV5CameraDayTimeSample.vue.d.ts +4 -32
- package/dist/vue-components/style.css +1 -1
- package/dist/vue-components/vue3-player.js +211 -219
- package/dist/vue-components/vue3-player.umd.cjs +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var At = Object.defineProperty;
|
|
2
2
|
var Lt = (v, t, e) => t in v ? At(v, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : v[t] = e;
|
|
3
3
|
var te = (v, t, e) => (Lt(v, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
-
import { defineComponent as j, ref as u, computed as T, openBlock as m, createElementBlock as S, watch as H, onMounted as ue, onBeforeUnmount as Pe, withDirectives as de, createElementVNode as i, normalizeStyle as le, vShow as pe, createVNode as w, Fragment as ie, renderList as ve, createCommentVNode as Y, inject as Be, resolveComponent as B, withCtx as A, toDisplayString as N, unref as ne, createTextVNode as X, normalizeClass as xe, createBlock as $, renderSlot as oe, provide as Ke, reactive as lt, watchEffect as ke, resolveDynamicComponent as ft, normalizeProps as et, guardReactiveProps as tt, mergeProps as ye, nextTick as
|
|
4
|
+
import { defineComponent as j, ref as u, computed as T, openBlock as m, createElementBlock as S, watch as H, onMounted as ue, onBeforeUnmount as Pe, withDirectives as de, createElementVNode as i, normalizeStyle as le, vShow as pe, createVNode as w, Fragment as ie, renderList as ve, createCommentVNode as Y, inject as Be, resolveComponent as B, withCtx as A, toDisplayString as N, unref as ne, createTextVNode as X, normalizeClass as xe, createBlock as $, renderSlot as oe, provide as Ke, reactive as lt, watchEffect as ke, resolveDynamicComponent as ft, normalizeProps as et, guardReactiveProps as tt, mergeProps as ye, nextTick as De, Transition as Se, createSlots as xt, pushScopeId as st, popScopeId as rt, vModelText as Ft, createStaticVNode as ht, onBeforeUpdate as Dt } from "vue";
|
|
5
5
|
import at from "axios";
|
|
6
6
|
import * as St from "@qispace/player-core";
|
|
7
7
|
import * as Ve from "three";
|
|
@@ -76,21 +76,21 @@ const Et = /* @__PURE__ */ j({
|
|
|
76
76
|
},
|
|
77
77
|
emits: ["selectUnit", "goToUnit", "hoverOver", "hoverOut", "pos"],
|
|
78
78
|
setup(v, { emit: t }) {
|
|
79
|
-
const e = v, a = t, n = u({ x: 0, y: 0, width: 0, height: 0 }), o = u(0), r = u(0), s = u(), p = u(), l = u(), d = u(), c = u(-1), b = u(!1), h = u(), f = u(), _ = u({}),
|
|
79
|
+
const e = v, a = t, n = u({ x: 0, y: 0, width: 0, height: 0 }), o = u(0), r = u(0), s = u(), p = u(), l = u(), d = u(), c = u(-1), b = u(!1), h = u(), f = u(), _ = u({}), F = u("auto"), k = u(new ge()), g = u({}), U = u(), y = u(), V = u(), C = u(), L = u(), G = T(() => V.value.isHoverEnabled), D = T(() => se(
|
|
80
80
|
e.cdnFileResolver,
|
|
81
81
|
`/scenedata${e.viewModel.currentScene}.png`
|
|
82
|
-
)), Z = T(() =>
|
|
82
|
+
)), Z = T(() => D.value in _.value ? _.value[D.value] : null), x = T(() => c.value < 0 ? !1 : e.sceneData.find((Q) => Q.index === c.value) || !1), E = T(() => ({
|
|
83
83
|
width: o.value + "px",
|
|
84
84
|
height: r.value + "px",
|
|
85
|
-
cursor:
|
|
85
|
+
cursor: F.value
|
|
86
86
|
})), M = T(() => `hover-${b.value ? "over" : "out"}-${x.value ? typeof x.value == "object" && "unitId" in x.value ? x.value.unitId : x.value : ""}`);
|
|
87
87
|
H(
|
|
88
|
-
|
|
88
|
+
D,
|
|
89
89
|
() => {
|
|
90
|
-
_.value[
|
|
90
|
+
_.value[D.value] || k.value.loadImageData(D.value).then((W) => {
|
|
91
91
|
_.value = {
|
|
92
92
|
..._.value,
|
|
93
|
-
[
|
|
93
|
+
[D.value]: W
|
|
94
94
|
};
|
|
95
95
|
});
|
|
96
96
|
},
|
|
@@ -100,7 +100,7 @@ const Et = /* @__PURE__ */ j({
|
|
|
100
100
|
}), H(
|
|
101
101
|
() => e.viewModel.currentScene,
|
|
102
102
|
() => {
|
|
103
|
-
|
|
103
|
+
Fe();
|
|
104
104
|
},
|
|
105
105
|
{ immediate: !0 }
|
|
106
106
|
), H(
|
|
@@ -110,10 +110,10 @@ const Et = /* @__PURE__ */ j({
|
|
|
110
110
|
() => e.selectedUnitId
|
|
111
111
|
],
|
|
112
112
|
() => {
|
|
113
|
-
|
|
113
|
+
Fe();
|
|
114
114
|
}
|
|
115
115
|
), H(x, () => {
|
|
116
|
-
|
|
116
|
+
Fe(), x.value ? F.value = "pointer" : F.value = "auto";
|
|
117
117
|
}), H(M, () => {
|
|
118
118
|
b.value ? a("hoverOver", {
|
|
119
119
|
hoverUnit: x.value ? x.value.unitId : !1,
|
|
@@ -239,9 +239,9 @@ const Et = /* @__PURE__ */ j({
|
|
|
239
239
|
o.value = L.value.offsetWidth, r.value = L.value.offsetHeight;
|
|
240
240
|
}
|
|
241
241
|
function Ee() {
|
|
242
|
-
P(),
|
|
242
|
+
P(), Fe();
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function Fe() {
|
|
245
245
|
be(), me(), s.value && l.value && s.value.putImageData(l.value, 0, 0);
|
|
246
246
|
}
|
|
247
247
|
function Xe() {
|
|
@@ -328,9 +328,9 @@ const Et = /* @__PURE__ */ j({
|
|
|
328
328
|
};
|
|
329
329
|
p.value.loadJson(V).then((L) => {
|
|
330
330
|
C.markup = L;
|
|
331
|
-
const
|
|
332
|
-
C.viewBox =
|
|
333
|
-
|
|
331
|
+
const D = new DOMParser().parseFromString(L, "image/svg+xml").getElementsByTagName("svg")[0];
|
|
332
|
+
C.viewBox = D.getAttribute("viewBox"), C.svgObjects = Array.from(
|
|
333
|
+
D.querySelectorAll("*[data-index]")
|
|
334
334
|
).map((Z) => ({
|
|
335
335
|
index: parseInt(Z.getAttribute("data-index")),
|
|
336
336
|
svg: Z.innerHTML
|
|
@@ -359,7 +359,7 @@ const Et = /* @__PURE__ */ j({
|
|
|
359
359
|
function _(y) {
|
|
360
360
|
c.value && (o.value = -1);
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function F(y) {
|
|
363
363
|
const V = h(y);
|
|
364
364
|
a("selectUnit", V), c.value && V && e.canGoToUnitCallback(V) ? a("goToUnit", V) : o.value = y;
|
|
365
365
|
}
|
|
@@ -369,12 +369,12 @@ const Et = /* @__PURE__ */ j({
|
|
|
369
369
|
o.value < 0 && e.selectedUnitId && V === e.selectedUnitId ? C = "selected" : o.value >= 0 && o.value === y && (C = "hover");
|
|
370
370
|
const L = e.colorCallback(V, C);
|
|
371
371
|
if (L) {
|
|
372
|
-
const { r: G, g:
|
|
372
|
+
const { r: G, g: D, b: Z, a: x, s: E } = L;
|
|
373
373
|
return {
|
|
374
374
|
strokeWidth: E !== void 0 ? E : 2,
|
|
375
|
-
stroke: `rgb(${G}, ${
|
|
375
|
+
stroke: `rgb(${G}, ${D}, ${Z})`,
|
|
376
376
|
strokeOpacity: 1,
|
|
377
|
-
fill: `rgb(${G}, ${
|
|
377
|
+
fill: `rgb(${G}, ${D}, ${Z})`,
|
|
378
378
|
fillOpacity: x / 255,
|
|
379
379
|
cursor: `${e.canGoToUnitCallback(V) ? "cursor" : "default"} !important`
|
|
380
380
|
};
|
|
@@ -415,7 +415,7 @@ const Et = /* @__PURE__ */ j({
|
|
|
415
415
|
style: le(k(C)),
|
|
416
416
|
onMouseenter: (G) => f(C),
|
|
417
417
|
onMouseleave: (G) => _(),
|
|
418
|
-
onClick: (G) =>
|
|
418
|
+
onClick: (G) => F(C)
|
|
419
419
|
}, null, 44, Bt))), 128))
|
|
420
420
|
], 8, Vt)) : Y("", !0)
|
|
421
421
|
], 4), [
|
|
@@ -616,7 +616,7 @@ const Pt = {
|
|
|
616
616
|
H(
|
|
617
617
|
() => e.viewModel.currentScene,
|
|
618
618
|
(k, g) => {
|
|
619
|
-
const U =
|
|
619
|
+
const U = F(g, k), y = _(g, k);
|
|
620
620
|
d(g, U, y);
|
|
621
621
|
}
|
|
622
622
|
), ue(() => {
|
|
@@ -681,7 +681,7 @@ const Pt = {
|
|
|
681
681
|
const U = ze / 2, y = Math.abs(k - g);
|
|
682
682
|
return y > U ? ze - y : y;
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function F(k, g) {
|
|
685
685
|
if (k === g)
|
|
686
686
|
return 0;
|
|
687
687
|
const y = Math.abs(k - g) < ze / 2;
|
|
@@ -798,10 +798,10 @@ const Pt = {
|
|
|
798
798
|
), H(
|
|
799
799
|
() => e.mobile,
|
|
800
800
|
() => {
|
|
801
|
-
e.mobile ?
|
|
801
|
+
e.mobile ? F() : g();
|
|
802
802
|
}
|
|
803
803
|
), ue(() => {
|
|
804
|
-
e.desktop && _(), e.mobile &&
|
|
804
|
+
e.desktop && _(), e.mobile && F();
|
|
805
805
|
}), Pe(() => {
|
|
806
806
|
e.desktop && k(), e.mobile && g();
|
|
807
807
|
});
|
|
@@ -818,10 +818,10 @@ const Pt = {
|
|
|
818
818
|
capture: !0
|
|
819
819
|
});
|
|
820
820
|
}
|
|
821
|
-
function
|
|
821
|
+
function F() {
|
|
822
822
|
c.value.addEventListener("touchstart", G, {
|
|
823
823
|
capture: !0
|
|
824
|
-
}), c.value.addEventListener("touchmove",
|
|
824
|
+
}), c.value.addEventListener("touchmove", D, {
|
|
825
825
|
capture: !0
|
|
826
826
|
}), window.addEventListener("touchend", Z, {
|
|
827
827
|
capture: !0
|
|
@@ -845,7 +845,7 @@ const Pt = {
|
|
|
845
845
|
function g() {
|
|
846
846
|
c.value.removeEventListener("touchstart", G, {
|
|
847
847
|
capture: !0
|
|
848
|
-
}), c.value.removeEventListener("touchmove",
|
|
848
|
+
}), c.value.removeEventListener("touchmove", D, {
|
|
849
849
|
capture: !0
|
|
850
850
|
}), window.removeEventListener("touchend", Z, {
|
|
851
851
|
capture: !0
|
|
@@ -878,7 +878,7 @@ const Pt = {
|
|
|
878
878
|
function G(R) {
|
|
879
879
|
s.value = R.touches.length === 1, p.value = R.touches.length === 2, l.value = R;
|
|
880
880
|
}
|
|
881
|
-
function
|
|
881
|
+
function D(R) {
|
|
882
882
|
if (s.value) {
|
|
883
883
|
const { x: P, y: ee } = x(R.touches[0]), { x: me, y: ce } = x(l.value.touches[0]), re = {
|
|
884
884
|
x: P - me,
|
|
@@ -886,8 +886,8 @@ const Pt = {
|
|
|
886
886
|
};
|
|
887
887
|
E(re.x), M(re.y);
|
|
888
888
|
} else if (p.value && R.touches.length === 2) {
|
|
889
|
-
const { x: P, y: ee } = x(R.touches[0]), { x: me, y: ce } = x(l.value.touches[0]), { x: re, y: Ie } = x(R.touches[1]), { x: Ae, y: _e } = x(l.value.touches[1]), be = Math.hypot(me - Ae, ce - _e), we = Math.hypot(P - re, ee - Ie), Ee = (re + P) / 2,
|
|
890
|
-
O(we - be, Ee,
|
|
889
|
+
const { x: P, y: ee } = x(R.touches[0]), { x: me, y: ce } = x(l.value.touches[0]), { x: re, y: Ie } = x(R.touches[1]), { x: Ae, y: _e } = x(l.value.touches[1]), be = Math.hypot(me - Ae, ce - _e), we = Math.hypot(P - re, ee - Ie), Ee = (re + P) / 2, Fe = (Ie + ee) / 2;
|
|
890
|
+
O(we - be, Ee, Fe);
|
|
891
891
|
}
|
|
892
892
|
l.value = R;
|
|
893
893
|
}
|
|
@@ -1091,35 +1091,35 @@ const sn = { key: 0 }, rn = { class: "interactive-viewer" }, un = { class: "fill
|
|
|
1091
1091
|
Ce,
|
|
1092
1092
|
a.i18nConfig ? new Me(a.i18nConfig) : new Me()
|
|
1093
1093
|
);
|
|
1094
|
-
const o = lt({ isReady: !1, isError: !1 }), r = u(), s = u(), p = u(), l = u(), d = u({ x: 0, y: 0, width: 0, height: 0 }), c = u(), b = u(), h = u(), f = T(() => h.value.isHoverEnabled), _ = T(() => a.useSvg ? Ot : Tt),
|
|
1094
|
+
const o = lt({ isReady: !1, isError: !1 }), r = u(), s = u(), p = u(), l = u(), d = u({ x: 0, y: 0, width: 0, height: 0 }), c = u(), b = u(), h = u(), f = T(() => h.value.isHoverEnabled), _ = T(() => a.useSvg ? Ot : Tt), F = T(() => a.selectedUnitId), k = T(() => a.nextUnitId), g = T(() => a.prevUnitId);
|
|
1095
1095
|
ke(() => {
|
|
1096
|
-
if (
|
|
1097
|
-
const C = r.value[
|
|
1096
|
+
if (F.value && l.value) {
|
|
1097
|
+
const C = r.value[F.value];
|
|
1098
1098
|
C && (l.value.currentScene = C);
|
|
1099
1099
|
}
|
|
1100
1100
|
}), ue(async () => {
|
|
1101
1101
|
const C = a.apartmentChooserData && a.apartmentChooserData.startScene !== void 0 ? a.apartmentChooserData.startScene : mn;
|
|
1102
|
-
p.value = a.apartmentChooserData && a.apartmentChooserData.scenes !== void 0 ? a.apartmentChooserData.scenes : e, s.value = a.apartmentChooserData && a.apartmentChooserData.sceneData !== void 0 ? a.apartmentChooserData.sceneData.map((
|
|
1103
|
-
unitId:
|
|
1104
|
-
index:
|
|
1105
|
-
})) : [], r.value = a.apartmentChooserData && a.apartmentChooserData.sceneData !== void 0 ? a.apartmentChooserData.sceneData.map((
|
|
1106
|
-
const Z =
|
|
1107
|
-
return { unitId:
|
|
1108
|
-
}).reduce((
|
|
1109
|
-
const L = (
|
|
1102
|
+
p.value = a.apartmentChooserData && a.apartmentChooserData.scenes !== void 0 ? a.apartmentChooserData.scenes : e, s.value = a.apartmentChooserData && a.apartmentChooserData.sceneData !== void 0 ? a.apartmentChooserData.sceneData.map((D) => ({
|
|
1103
|
+
unitId: D.apartmentID,
|
|
1104
|
+
index: D.index
|
|
1105
|
+
})) : [], r.value = a.apartmentChooserData && a.apartmentChooserData.sceneData !== void 0 ? a.apartmentChooserData.sceneData.map((D) => {
|
|
1106
|
+
const Z = D.bestScene === 0 ? 4 : D.bestScene;
|
|
1107
|
+
return { unitId: D.apartmentID, scene: Z };
|
|
1108
|
+
}).reduce((D, Z) => ({ ...D, [Z.unitId]: Z.scene }), {}) : {};
|
|
1109
|
+
const L = (D, Z = "unitId") => {
|
|
1110
1110
|
let x = C, E = [];
|
|
1111
1111
|
for (let M = 0; M < ut; M++)
|
|
1112
1112
|
E.push(x), x = gt(x);
|
|
1113
|
-
return
|
|
1113
|
+
return D.sort((M, O) => {
|
|
1114
1114
|
const K = E.findIndex(
|
|
1115
1115
|
(P) => P === r.value[M[Z]]
|
|
1116
1116
|
), R = E.findIndex(
|
|
1117
1117
|
(P) => P === r.value[O[Z]]
|
|
1118
1118
|
);
|
|
1119
1119
|
return K < R ? -1 : K > R ? 1 : 0;
|
|
1120
|
-
}),
|
|
1121
|
-
}, G = (
|
|
1122
|
-
l.value = new on(
|
|
1120
|
+
}), D;
|
|
1121
|
+
}, G = (D) => {
|
|
1122
|
+
l.value = new on(D);
|
|
1123
1123
|
};
|
|
1124
1124
|
n("initialized", {
|
|
1125
1125
|
scene: C,
|
|
@@ -1154,27 +1154,27 @@ const sn = { key: 0 }, rn = { class: "interactive-viewer" }, un = { class: "fill
|
|
|
1154
1154
|
"view-model": l.value,
|
|
1155
1155
|
"cardinal-frames": p.value,
|
|
1156
1156
|
build: C.build,
|
|
1157
|
-
onProgress: L[0] || (L[0] = (
|
|
1158
|
-
onLoaded: L[1] || (L[1] = (
|
|
1159
|
-
onError: L[2] || (L[2] = (
|
|
1157
|
+
onProgress: L[0] || (L[0] = (D) => o.progress = D),
|
|
1158
|
+
onLoaded: L[1] || (L[1] = (D) => o.isReady = !0),
|
|
1159
|
+
onError: L[2] || (L[2] = (D) => o.isError = !0)
|
|
1160
1160
|
}, null, 8, ["cdn-file-resolver", "view-model", "cardinal-frames", "build"]),
|
|
1161
1161
|
o.isReady ? (m(), S("div", cn, [
|
|
1162
1162
|
(m(), $(ft(_.value), {
|
|
1163
1163
|
"cdn-file-resolver": a.cdnFileResolver,
|
|
1164
1164
|
"view-model": l.value,
|
|
1165
|
-
"selected-unit-id":
|
|
1165
|
+
"selected-unit-id": F.value,
|
|
1166
1166
|
"scene-data": s.value,
|
|
1167
1167
|
"color-callback": a.colorCallback,
|
|
1168
1168
|
"can-go-to-unit-callback": a.canGoToUnitCallback,
|
|
1169
1169
|
"draw-observer": a.drawObserver,
|
|
1170
|
-
onSelectUnit: L[3] || (L[3] = (
|
|
1171
|
-
onGoToUnit: L[4] || (L[4] = (
|
|
1170
|
+
onSelectUnit: L[3] || (L[3] = (D) => n("selectUnit", D)),
|
|
1171
|
+
onGoToUnit: L[4] || (L[4] = (D) => n("goToUnit", D)),
|
|
1172
1172
|
onHoverOver: y,
|
|
1173
1173
|
onHoverOut: V,
|
|
1174
1174
|
onPos: U
|
|
1175
1175
|
}, {
|
|
1176
|
-
default: A((
|
|
1177
|
-
oe(C.$slots, "default", et(tt(
|
|
1176
|
+
default: A((D) => [
|
|
1177
|
+
oe(C.$slots, "default", et(tt(D)), void 0, !0)
|
|
1178
1178
|
]),
|
|
1179
1179
|
_: 3
|
|
1180
1180
|
}, 40, ["cdn-file-resolver", "view-model", "selected-unit-id", "scene-data", "color-callback", "can-go-to-unit-callback", "draw-observer"]))
|
|
@@ -1204,19 +1204,19 @@ const sn = { key: 0 }, rn = { class: "interactive-viewer" }, un = { class: "fill
|
|
|
1204
1204
|
w(Yt, {
|
|
1205
1205
|
"can-go-to-unit-callback": a.canGoToUnitCallback,
|
|
1206
1206
|
"unit-renderer": a.unitRenderer,
|
|
1207
|
-
"selected-unit-id":
|
|
1207
|
+
"selected-unit-id": F.value,
|
|
1208
1208
|
"prev-unit-id": g.value,
|
|
1209
1209
|
"next-unit-id": k.value,
|
|
1210
1210
|
"view-model": l.value,
|
|
1211
|
-
onGoToUnit: L[5] || (L[5] = (
|
|
1212
|
-
onPrevUnit: L[6] || (L[6] = (
|
|
1213
|
-
onNextUnit: L[7] || (L[7] = (
|
|
1211
|
+
onGoToUnit: L[5] || (L[5] = (D) => n("goToUnit", D)),
|
|
1212
|
+
onPrevUnit: L[6] || (L[6] = (D) => n("navUnit", g.value)),
|
|
1213
|
+
onNextUnit: L[7] || (L[7] = (D) => n("navUnit", k.value))
|
|
1214
1214
|
}, null, 8, ["can-go-to-unit-callback", "unit-renderer", "selected-unit-id", "prev-unit-id", "next-unit-id", "view-model"])
|
|
1215
1215
|
])) : o.isError ? Y("", !0) : (m(), S("div", vn, [
|
|
1216
1216
|
w(G, {
|
|
1217
1217
|
indeterminate: !o.progress,
|
|
1218
1218
|
modelValue: o.progress,
|
|
1219
|
-
"onUpdate:modelValue": L[8] || (L[8] = (
|
|
1219
|
+
"onUpdate:modelValue": L[8] || (L[8] = (D) => o.progress = D)
|
|
1220
1220
|
}, null, 8, ["indeterminate", "modelValue"])
|
|
1221
1221
|
]))
|
|
1222
1222
|
])
|
|
@@ -1232,8 +1232,7 @@ const sn = { key: 0 }, rn = { class: "interactive-viewer" }, un = { class: "fill
|
|
|
1232
1232
|
__name: "VApartmentChooserV5CameraDayTimeSample",
|
|
1233
1233
|
props: {
|
|
1234
1234
|
timeSampleData: {},
|
|
1235
|
-
cdnFileResolver: {},
|
|
1236
|
-
colorCallback: { type: Function, default: () => ({ r: 108, g: 0, b: 108, a: 144, s: 2 }) },
|
|
1235
|
+
cdnFileResolver: { type: [String, Function] },
|
|
1237
1236
|
currentTime: {}
|
|
1238
1237
|
},
|
|
1239
1238
|
setup(v) {
|
|
@@ -1246,39 +1245,35 @@ const sn = { key: 0 }, rn = { class: "interactive-viewer" }, un = { class: "fill
|
|
|
1246
1245
|
[pe, a.timeSampleData === a.currentTime]
|
|
1247
1246
|
]);
|
|
1248
1247
|
}
|
|
1249
|
-
}), yn = /* @__PURE__ */ q(gn, [["__scopeId", "data-v-
|
|
1248
|
+
}), yn = /* @__PURE__ */ q(gn, [["__scopeId", "data-v-189d0505"]]), _n = /* @__PURE__ */ j({
|
|
1250
1249
|
__name: "VApartmentChooserV5CameraDay",
|
|
1251
1250
|
props: {
|
|
1252
1251
|
dayData: {},
|
|
1253
|
-
cdnFileResolver: {},
|
|
1254
|
-
colorCallback: { type: Function, default: () => ({ r: 108, g: 0, b: 108, a: 144, s: 2 }) },
|
|
1252
|
+
cdnFileResolver: { type: [String, Function] },
|
|
1255
1253
|
currentTime: {}
|
|
1256
1254
|
},
|
|
1257
1255
|
setup(v) {
|
|
1258
1256
|
const t = v;
|
|
1259
1257
|
return (e, a) => (m(!0), S(ie, null, ve(t.dayData.timeSamples, (n) => (m(), $(yn, {
|
|
1260
1258
|
"time-sample-data": n,
|
|
1261
|
-
"color-callback": t.colorCallback,
|
|
1262
1259
|
"cdn-file-resolver": t.cdnFileResolver,
|
|
1263
1260
|
"current-time": e.currentTime
|
|
1264
|
-
}, null, 8, ["time-sample-data", "
|
|
1261
|
+
}, null, 8, ["time-sample-data", "cdn-file-resolver", "current-time"]))), 256));
|
|
1265
1262
|
}
|
|
1266
1263
|
}), bn = /* @__PURE__ */ j({
|
|
1267
1264
|
__name: "VApartmentChooserV5Camera",
|
|
1268
1265
|
props: {
|
|
1269
1266
|
cameraData: {},
|
|
1270
|
-
cdnFileResolver: {},
|
|
1271
|
-
colorCallback: { type: Function, default: () => ({ r: 108, g: 0, b: 108, a: 144, s: 2 }) },
|
|
1267
|
+
cdnFileResolver: { type: [String, Function] },
|
|
1272
1268
|
currentTime: {}
|
|
1273
1269
|
},
|
|
1274
1270
|
setup(v) {
|
|
1275
1271
|
const t = v;
|
|
1276
1272
|
return (e, a) => (m(!0), S(ie, null, ve(t.cameraData.sunsimDayOfYear, (n) => (m(), $(_n, {
|
|
1277
1273
|
"day-data": n,
|
|
1278
|
-
"color-callback": t.colorCallback,
|
|
1279
1274
|
"cdn-file-resolver": t.cdnFileResolver,
|
|
1280
1275
|
"current-time": t.currentTime
|
|
1281
|
-
}, null, 8, ["day-data", "
|
|
1276
|
+
}, null, 8, ["day-data", "cdn-file-resolver", "current-time"]))), 256));
|
|
1282
1277
|
}
|
|
1283
1278
|
}), wn = ["src"], kn = /* @__PURE__ */ j({
|
|
1284
1279
|
__name: "VApartmentChooserV5Transition",
|
|
@@ -1406,7 +1401,7 @@ const In = /* @__PURE__ */ j({
|
|
|
1406
1401
|
}), Ln = {
|
|
1407
1402
|
key: 0,
|
|
1408
1403
|
class: "py-2"
|
|
1409
|
-
}, xn = { class: "small" },
|
|
1404
|
+
}, xn = { class: "small" }, Fn = { class: "small" }, Dn = /* @__PURE__ */ j({
|
|
1410
1405
|
__name: "VApartmentChooserV5UiTimeSample",
|
|
1411
1406
|
props: {
|
|
1412
1407
|
dayData: {},
|
|
@@ -1480,7 +1475,7 @@ const In = /* @__PURE__ */ j({
|
|
|
1480
1475
|
i("span", xn, N(r(p.dayData.startTime)), 1)
|
|
1481
1476
|
]),
|
|
1482
1477
|
append: A(() => [
|
|
1483
|
-
i("span",
|
|
1478
|
+
i("span", Fn, N(r(p.dayData.endTime)), 1),
|
|
1484
1479
|
X(" "),
|
|
1485
1480
|
w(d, {
|
|
1486
1481
|
style: { color: "#ffab02", "vertical-align": "baseline", "font-size": "20px" },
|
|
@@ -1500,7 +1495,7 @@ const In = /* @__PURE__ */ j({
|
|
|
1500
1495
|
});
|
|
1501
1496
|
};
|
|
1502
1497
|
}
|
|
1503
|
-
}), Sn = /* @__PURE__ */ q(
|
|
1498
|
+
}), Sn = /* @__PURE__ */ q(Dn, [["__scopeId", "data-v-cb62dcc2"]]), Mn = /* @__PURE__ */ j({
|
|
1504
1499
|
__name: "VApartmentChooserV5UiRotator",
|
|
1505
1500
|
props: {
|
|
1506
1501
|
apartmentChooserData: {},
|
|
@@ -1527,31 +1522,31 @@ const In = /* @__PURE__ */ j({
|
|
|
1527
1522
|
const f = r.value;
|
|
1528
1523
|
let _ = a.apartmentChooserData.scenes.findIndex((k) => k === f) + 1;
|
|
1529
1524
|
_ >= a.apartmentChooserData.scenes.length && (_ = 0);
|
|
1530
|
-
const
|
|
1531
|
-
a.apartmentChooserData.loopable && f >
|
|
1525
|
+
const F = a.apartmentChooserData.scenes[_];
|
|
1526
|
+
a.apartmentChooserData.loopable && f > F ? h(f, F + a.apartmentChooserData.scenes.length) : h(f, F);
|
|
1532
1527
|
}
|
|
1533
1528
|
async function c() {
|
|
1534
1529
|
const f = r.value;
|
|
1535
1530
|
let _ = a.apartmentChooserData.scenes.findIndex((k) => k === f) - 1;
|
|
1536
1531
|
_ < 0 && (_ = a.apartmentChooserData.scenes[a.apartmentChooserData.scenes.length - 1]);
|
|
1537
|
-
const
|
|
1538
|
-
a.apartmentChooserData.loopable && f <
|
|
1532
|
+
const F = a.apartmentChooserData.scenes[_];
|
|
1533
|
+
a.apartmentChooserData.loopable && f < F ? h(f + a.apartmentChooserData.scenes.length, F) : h(f, F);
|
|
1539
1534
|
}
|
|
1540
1535
|
function b(f) {
|
|
1541
1536
|
const _ = r.value;
|
|
1542
1537
|
if (a.apartmentChooserData.loopable)
|
|
1543
1538
|
if (f < _) {
|
|
1544
|
-
let
|
|
1545
|
-
return Math.abs(
|
|
1539
|
+
let F = _ - f, k = _ - (a.apartmentChooserData.cameras.length + f);
|
|
1540
|
+
return Math.abs(F) > Math.abs(k) ? h(_, f) : h(_, a.apartmentChooserData.cameras.length + f);
|
|
1546
1541
|
} else {
|
|
1547
|
-
let
|
|
1548
|
-
return Math.abs(
|
|
1542
|
+
let F = _ - f, k = a.apartmentChooserData.cameras.length + _ - f;
|
|
1543
|
+
return Math.abs(F) > Math.abs(k) ? h(_, f) : h(a.apartmentChooserData.cameras.length + _, f);
|
|
1549
1544
|
}
|
|
1550
1545
|
else
|
|
1551
1546
|
return h(_, f);
|
|
1552
1547
|
}
|
|
1553
1548
|
function h(f, _) {
|
|
1554
|
-
return new Promise((
|
|
1549
|
+
return new Promise((F) => {
|
|
1555
1550
|
o.value = !0, n("onRotateStart", { from: f, to: _ });
|
|
1556
1551
|
let k, g = f;
|
|
1557
1552
|
k = setInterval(() => {
|
|
@@ -1559,14 +1554,14 @@ const In = /* @__PURE__ */ j({
|
|
|
1559
1554
|
g % a.apartmentChooserData.cameras.length
|
|
1560
1555
|
)) : g > _ ? (g--, r.value = Math.abs(
|
|
1561
1556
|
g % a.apartmentChooserData.cameras.length
|
|
1562
|
-
)) : (clearInterval(k), n("onRotateFinish", { from: f, to: _ }), o.value = !1,
|
|
1557
|
+
)) : (clearInterval(k), n("onRotateFinish", { from: f, to: _ }), o.value = !1, F());
|
|
1563
1558
|
}, 50);
|
|
1564
1559
|
});
|
|
1565
1560
|
}
|
|
1566
1561
|
return (f, _) => {
|
|
1567
|
-
const
|
|
1562
|
+
const F = B("v-btn"), k = B("v-chip");
|
|
1568
1563
|
return m(), S(ie, null, [
|
|
1569
|
-
w(
|
|
1564
|
+
w(F, {
|
|
1570
1565
|
class: "mx-2",
|
|
1571
1566
|
icon: "mdi-restore",
|
|
1572
1567
|
disabled: !p.value,
|
|
@@ -1584,7 +1579,7 @@ const In = /* @__PURE__ */ j({
|
|
|
1584
1579
|
]),
|
|
1585
1580
|
_: 1
|
|
1586
1581
|
})) : Y("", !0),
|
|
1587
|
-
w(
|
|
1582
|
+
w(F, {
|
|
1588
1583
|
class: "mx-2",
|
|
1589
1584
|
icon: "mdi-reload",
|
|
1590
1585
|
disabled: !l.value,
|
|
@@ -1611,14 +1606,14 @@ const In = /* @__PURE__ */ j({
|
|
|
1611
1606
|
}
|
|
1612
1607
|
), ke(() => {
|
|
1613
1608
|
for (const l in s) {
|
|
1614
|
-
const { element: d, state: c } = s[l], { r: b, g: h, b: f, a: _, s:
|
|
1609
|
+
const { element: d, state: c } = s[l], { r: b, g: h, b: f, a: _, s: F } = e.colorCallback(l, c) || {
|
|
1615
1610
|
r: 0,
|
|
1616
1611
|
g: 0,
|
|
1617
1612
|
b: 0,
|
|
1618
1613
|
a: 0,
|
|
1619
1614
|
s: 0
|
|
1620
1615
|
};
|
|
1621
|
-
d.style.fill = `rgba(${b}, ${h}, ${f}, ${_ / 255})`, d.style.stroke = `rgb(${b}, ${h}, ${f})`, d.style.strokeWidth =
|
|
1616
|
+
d.style.fill = `rgba(${b}, ${h}, ${f}, ${_ / 255})`, d.style.stroke = `rgb(${b}, ${h}, ${f})`, d.style.strokeWidth = F.toString();
|
|
1622
1617
|
}
|
|
1623
1618
|
}), H(r, () => {
|
|
1624
1619
|
for (const l in s)
|
|
@@ -1634,7 +1629,7 @@ const In = /* @__PURE__ */ j({
|
|
|
1634
1629
|
}
|
|
1635
1630
|
);
|
|
1636
1631
|
function p() {
|
|
1637
|
-
|
|
1632
|
+
De(() => {
|
|
1638
1633
|
const l = o.value.firstChild;
|
|
1639
1634
|
if (l) {
|
|
1640
1635
|
if (a("updateSvgContainer", l), !l.hasAttribute("viewBox")) {
|
|
@@ -1892,7 +1887,7 @@ const Yn = {
|
|
|
1892
1887
|
props: {
|
|
1893
1888
|
apartmentChooserData: {},
|
|
1894
1889
|
cdnFileResolver: {},
|
|
1895
|
-
colorCallback: { type: Function, default: () => ({ r:
|
|
1890
|
+
colorCallback: { type: Function, default: () => ({ r: 0, g: 0, b: 0, a: 0, s: 0 }) },
|
|
1896
1891
|
i18nConfig: {},
|
|
1897
1892
|
customOverlayContent: {},
|
|
1898
1893
|
selectedId: {},
|
|
@@ -1905,7 +1900,7 @@ const Yn = {
|
|
|
1905
1900
|
setup(v, { emit: t }) {
|
|
1906
1901
|
const e = v, a = t, n = u(), o = u(), r = u(), s = u(
|
|
1907
1902
|
null
|
|
1908
|
-
), p = u(), l = u(), d = u(!1), c = u(!1), b = u(), h = u(), f = T(() => h.value.isHoverEnabled), _ = u({ x: 0, y: 0, width: 0, height: 0 }),
|
|
1903
|
+
), p = u(), l = u(), d = u(!1), c = u(!1), b = u(), h = u(), f = T(() => h.value.isHoverEnabled), _ = u({ x: 0, y: 0, width: 0, height: 0 }), F = u(), k = u(
|
|
1909
1904
|
e.apartmentChooserData
|
|
1910
1905
|
);
|
|
1911
1906
|
ue(() => d.value = !0);
|
|
@@ -1955,7 +1950,7 @@ const Yn = {
|
|
|
1955
1950
|
);
|
|
1956
1951
|
}
|
|
1957
1952
|
function V(M) {
|
|
1958
|
-
p.value = M, vt(k.value.cameras[p.value]) ? s.value = k.value.cameras[p.value] : (
|
|
1953
|
+
p.value = M, vt(k.value.cameras[p.value]) ? s.value = k.value.cameras[p.value] : (De(() => {
|
|
1959
1954
|
C(
|
|
1960
1955
|
k.value.cameras[p.value]
|
|
1961
1956
|
);
|
|
@@ -1965,7 +1960,7 @@ const Yn = {
|
|
|
1965
1960
|
const O = o.value;
|
|
1966
1961
|
n.value = M, p.value = k.value.cameras.findIndex(
|
|
1967
1962
|
(K) => K === n.value
|
|
1968
|
-
),
|
|
1963
|
+
), De(() => {
|
|
1969
1964
|
L(
|
|
1970
1965
|
n.value.sunsimDayOfYear.find(
|
|
1971
1966
|
(K) => K.dayOfYear === O.dayOfYear
|
|
@@ -1975,7 +1970,7 @@ const Yn = {
|
|
|
1975
1970
|
}
|
|
1976
1971
|
function L(M) {
|
|
1977
1972
|
const O = r.value;
|
|
1978
|
-
o.value = M,
|
|
1973
|
+
o.value = M, De(() => {
|
|
1979
1974
|
G(
|
|
1980
1975
|
o.value.timeSamples.find(
|
|
1981
1976
|
(K) => K.timeInHours === O.timeInHours
|
|
@@ -1988,7 +1983,7 @@ const Yn = {
|
|
|
1988
1983
|
function G(M) {
|
|
1989
1984
|
r.value = M;
|
|
1990
1985
|
}
|
|
1991
|
-
function
|
|
1986
|
+
function D(M) {
|
|
1992
1987
|
a("onClick", M, () => {
|
|
1993
1988
|
const O = k.value.unitData.find(
|
|
1994
1989
|
(K) => K.unitId === M
|
|
@@ -2006,7 +2001,7 @@ const Yn = {
|
|
|
2006
2001
|
const { layerX: O, layerY: K } = M;
|
|
2007
2002
|
let R = M.target, P = !1;
|
|
2008
2003
|
for (; R; )
|
|
2009
|
-
if (R ===
|
|
2004
|
+
if (R === F.value) {
|
|
2010
2005
|
P = !0;
|
|
2011
2006
|
break;
|
|
2012
2007
|
} else
|
|
@@ -2064,7 +2059,7 @@ const Yn = {
|
|
|
2064
2059
|
"current-scene": p.value,
|
|
2065
2060
|
"selected-id": M.selectedId,
|
|
2066
2061
|
"render-display": e.renderDisplay,
|
|
2067
|
-
onOnDisplayClick:
|
|
2062
|
+
onOnDisplayClick: D,
|
|
2068
2063
|
onOnSceneChange: V,
|
|
2069
2064
|
onOnRotateStart: O[0] || (O[0] = (R) => c.value = !0),
|
|
2070
2065
|
onOnRotateFinish: O[1] || (O[1] = (R) => c.value = !1)
|
|
@@ -2100,10 +2095,10 @@ const Yn = {
|
|
|
2100
2095
|
"color-callback": e.colorCallback,
|
|
2101
2096
|
"current-camera": n.value,
|
|
2102
2097
|
"selected-id": e.selectedId,
|
|
2103
|
-
onOnClick:
|
|
2098
|
+
onOnClick: D,
|
|
2104
2099
|
onOnHoverOver: Z,
|
|
2105
2100
|
onOnHoverOut: x,
|
|
2106
|
-
onUpdateSvgContainer: O[2] || (O[2] = (R) =>
|
|
2101
|
+
onUpdateSvgContainer: O[2] || (O[2] = (R) => F.value = R)
|
|
2107
2102
|
}, null, 8, ["cdn-file-resolver", "color-callback", "current-camera", "selected-id"]), [
|
|
2108
2103
|
[pe, s.value === null]
|
|
2109
2104
|
])
|
|
@@ -2136,7 +2131,7 @@ const Yn = {
|
|
|
2136
2131
|
], 64);
|
|
2137
2132
|
};
|
|
2138
2133
|
}
|
|
2139
|
-
}), Ls = /* @__PURE__ */ q(qn, [["__scopeId", "data-v-
|
|
2134
|
+
}), Ls = /* @__PURE__ */ q(qn, [["__scopeId", "data-v-dd9e7d5f"]]), Zn = { class: "sunsim-bar-wrapper" }, Xn = { class: "sunsim-date d-flex align-center pl-5 pr-5" }, Jn = {
|
|
2140
2135
|
key: 1,
|
|
2141
2136
|
class: "text-center text-body-1"
|
|
2142
2137
|
}, Kn = { class: "sunsim-wrapper d-flex align-center px-3" }, ea = { class: "sunsim-time-label text-body-1 font-weight-normal ml-2" }, ta = /* @__PURE__ */ j({
|
|
@@ -2189,7 +2184,7 @@ const Yn = {
|
|
|
2189
2184
|
d.dateSelector.hasMultipleDates ? (m(), $(h, {
|
|
2190
2185
|
key: 0,
|
|
2191
2186
|
modelValue: o.value,
|
|
2192
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
2187
|
+
"onUpdate:modelValue": c[0] || (c[0] = (F) => o.value = F),
|
|
2193
2188
|
items: p.value,
|
|
2194
2189
|
density: "compact",
|
|
2195
2190
|
variant: "underlined",
|
|
@@ -2219,7 +2214,7 @@ const Yn = {
|
|
|
2219
2214
|
})) : (m(), $(_, {
|
|
2220
2215
|
key: 1,
|
|
2221
2216
|
modelValue: n.value,
|
|
2222
|
-
"onUpdate:modelValue": c[1] || (c[1] = (
|
|
2217
|
+
"onUpdate:modelValue": c[1] || (c[1] = (F) => n.value = F),
|
|
2223
2218
|
min: 0,
|
|
2224
2219
|
max: 47,
|
|
2225
2220
|
step: 1,
|
|
@@ -2320,7 +2315,7 @@ const Yn = {
|
|
|
2320
2315
|
height: 0
|
|
2321
2316
|
}), r = u({ x: 0, y: 0, width: 0, height: 0 }), s = u(), p = u(
|
|
2322
2317
|
(/* @__PURE__ */ new Date()).getHours() * 2 + ((/* @__PURE__ */ new Date()).getMinutes() < 30 ? 0 : 1)
|
|
2323
|
-
), l = u(!1), d = u(new ge()), c = u(), b = u("0 0 0 0"), h = u(), f = u(), _ = u(Ye.empty()),
|
|
2318
|
+
), l = u(!1), d = u(new ge()), c = u(), b = u("0 0 0 0"), h = u(), f = u(), _ = u(Ye.empty()), F = u(je.empty()), k = u(), g = T(() => k.value.isHoverEnabled);
|
|
2324
2319
|
H(s, (x, E) => {
|
|
2325
2320
|
x ? a("hoverOverBuilding", x) : a("hoverOutBuilding", E);
|
|
2326
2321
|
}), ke(() => {
|
|
@@ -2337,7 +2332,7 @@ const Yn = {
|
|
|
2337
2332
|
e.buildingChooserData
|
|
2338
2333
|
);
|
|
2339
2334
|
if (E) {
|
|
2340
|
-
|
|
2335
|
+
F.value = new je(E.mapImage), _.value = new Ye(E.buildingIds), h.value = new nt(E.backgrounds), f.value = {
|
|
2341
2336
|
buildingOverlays: E.buildingOverlays,
|
|
2342
2337
|
viewLongitude: E.viewLongitude
|
|
2343
2338
|
};
|
|
@@ -2410,7 +2405,7 @@ const Yn = {
|
|
|
2410
2405
|
height: o.value.height
|
|
2411
2406
|
}, s.value = void 0, a("hoverOutBuilding", E));
|
|
2412
2407
|
}
|
|
2413
|
-
function
|
|
2408
|
+
function D(x, E) {
|
|
2414
2409
|
const { layerX: M, layerY: O } = x;
|
|
2415
2410
|
g.value && (r.value = {
|
|
2416
2411
|
x: M,
|
|
@@ -2461,7 +2456,7 @@ const Yn = {
|
|
|
2461
2456
|
style: le(C(O)),
|
|
2462
2457
|
onMouseover: (P) => L(P, O),
|
|
2463
2458
|
onMouseout: (P) => G(P, O),
|
|
2464
|
-
onMousemove: (P) =>
|
|
2459
|
+
onMousemove: (P) => D(P),
|
|
2465
2460
|
onClick: (P) => Z(O)
|
|
2466
2461
|
}, null, 46, ca))), 128))
|
|
2467
2462
|
], 8, ua))
|
|
@@ -2602,7 +2597,7 @@ const Yn = {
|
|
|
2602
2597
|
(/* @__PURE__ */ new Date()).getHours() * 2 + ((/* @__PURE__ */ new Date()).getMinutes() < 30 ? 0 : 1)
|
|
2603
2598
|
), h = u(
|
|
2604
2599
|
(x, E) => ({ x, y: E })
|
|
2605
|
-
), f = u(!1), _ = u(),
|
|
2600
|
+
), f = u(!1), _ = u(), F = u(), k = u(), g = T(() => {
|
|
2606
2601
|
var x;
|
|
2607
2602
|
return (x = _.value) == null ? void 0 : x.isHoverEnabled;
|
|
2608
2603
|
});
|
|
@@ -2627,7 +2622,7 @@ const Yn = {
|
|
|
2627
2622
|
}, C()) : f.value = !0;
|
|
2628
2623
|
});
|
|
2629
2624
|
function U({ width: x, height: E }) {
|
|
2630
|
-
r.value.width = x, r.value.height = E,
|
|
2625
|
+
r.value.width = x, r.value.height = E, De(C);
|
|
2631
2626
|
}
|
|
2632
2627
|
function y() {
|
|
2633
2628
|
o.value = { preloaded: !1, ready: !1 };
|
|
@@ -2641,7 +2636,7 @@ const Yn = {
|
|
|
2641
2636
|
);
|
|
2642
2637
|
}
|
|
2643
2638
|
function C() {
|
|
2644
|
-
if (
|
|
2639
|
+
if (F.value && (d.value.update(F.value), k.value))
|
|
2645
2640
|
for (const x of k.value)
|
|
2646
2641
|
x.setupDraw();
|
|
2647
2642
|
}
|
|
@@ -2657,7 +2652,7 @@ const Yn = {
|
|
|
2657
2652
|
function G(x) {
|
|
2658
2653
|
c.value = V(x), g.value && c.value && a("goToBuilding", c.value);
|
|
2659
2654
|
}
|
|
2660
|
-
function
|
|
2655
|
+
function D(x) {
|
|
2661
2656
|
return e.colorCallback(
|
|
2662
2657
|
x,
|
|
2663
2658
|
x === c.value ? "hover" : "idle"
|
|
@@ -2703,7 +2698,7 @@ const Yn = {
|
|
|
2703
2698
|
key: O.id,
|
|
2704
2699
|
"image-url": O.url,
|
|
2705
2700
|
dimensions: r.value,
|
|
2706
|
-
color:
|
|
2701
|
+
color: D(O.id)
|
|
2707
2702
|
}, null, 8, ["image-url", "dimensions", "color"]))), 128))
|
|
2708
2703
|
], 512), [
|
|
2709
2704
|
[pe, o.value.preloaded]
|
|
@@ -2711,7 +2706,7 @@ const Yn = {
|
|
|
2711
2706
|
]),
|
|
2712
2707
|
i("canvas", ye(r.value, {
|
|
2713
2708
|
ref_key: "canvas",
|
|
2714
|
-
ref:
|
|
2709
|
+
ref: F,
|
|
2715
2710
|
class: { hover: !!c.value },
|
|
2716
2711
|
onClick: G,
|
|
2717
2712
|
onMousemove: L
|
|
@@ -2812,8 +2807,7 @@ const Yn = {
|
|
|
2812
2807
|
__name: "VBuildingChooserV5CameraDayTimeSample",
|
|
2813
2808
|
props: {
|
|
2814
2809
|
timeSampleData: {},
|
|
2815
|
-
cdnFileResolver: {},
|
|
2816
|
-
colorCallback: { type: Function, default: () => ({ r: 108, g: 0, b: 108, a: 144, s: 2 }) },
|
|
2810
|
+
cdnFileResolver: { type: [String, Function] },
|
|
2817
2811
|
currentTime: {}
|
|
2818
2812
|
},
|
|
2819
2813
|
setup(v) {
|
|
@@ -2826,39 +2820,35 @@ const Yn = {
|
|
|
2826
2820
|
[pe, a.timeSampleData === a.currentTime]
|
|
2827
2821
|
]);
|
|
2828
2822
|
}
|
|
2829
|
-
}), Ia = /* @__PURE__ */ q(Ca, [["__scopeId", "data-v-
|
|
2823
|
+
}), Ia = /* @__PURE__ */ q(Ca, [["__scopeId", "data-v-98118455"]]), Aa = /* @__PURE__ */ j({
|
|
2830
2824
|
__name: "VBuildingChooserV5CameraDay",
|
|
2831
2825
|
props: {
|
|
2832
2826
|
dayData: {},
|
|
2833
|
-
cdnFileResolver: {},
|
|
2834
|
-
colorCallback: { type: Function, default: () => ({ r: 108, g: 0, b: 108, a: 144, s: 2 }) },
|
|
2827
|
+
cdnFileResolver: { type: [String, Function] },
|
|
2835
2828
|
currentTime: {}
|
|
2836
2829
|
},
|
|
2837
2830
|
setup(v) {
|
|
2838
2831
|
const t = v;
|
|
2839
2832
|
return (e, a) => (m(!0), S(ie, null, ve(t.dayData.timeSamples, (n) => (m(), $(Ia, {
|
|
2840
2833
|
"time-sample-data": n,
|
|
2841
|
-
"color-callback": t.colorCallback,
|
|
2842
2834
|
"cdn-file-resolver": t.cdnFileResolver,
|
|
2843
2835
|
"current-time": e.currentTime
|
|
2844
|
-
}, null, 8, ["time-sample-data", "
|
|
2836
|
+
}, null, 8, ["time-sample-data", "cdn-file-resolver", "current-time"]))), 256));
|
|
2845
2837
|
}
|
|
2846
2838
|
}), La = /* @__PURE__ */ j({
|
|
2847
2839
|
__name: "VBuildingChooserV5Camera",
|
|
2848
2840
|
props: {
|
|
2849
2841
|
cameraData: {},
|
|
2850
|
-
cdnFileResolver: {},
|
|
2851
|
-
colorCallback: { type: Function, default: () => ({ r: 108, g: 0, b: 108, a: 144, s: 2 }) },
|
|
2842
|
+
cdnFileResolver: { type: [String, Function] },
|
|
2852
2843
|
currentTime: {}
|
|
2853
2844
|
},
|
|
2854
2845
|
setup(v) {
|
|
2855
2846
|
const t = v;
|
|
2856
2847
|
return (e, a) => (m(!0), S(ie, null, ve(t.cameraData.sunsimDayOfYear, (n) => (m(), $(Aa, {
|
|
2857
2848
|
"day-data": n,
|
|
2858
|
-
"color-callback": t.colorCallback,
|
|
2859
2849
|
"cdn-file-resolver": t.cdnFileResolver,
|
|
2860
2850
|
"current-time": t.currentTime
|
|
2861
|
-
}, null, 8, ["day-data", "
|
|
2851
|
+
}, null, 8, ["day-data", "cdn-file-resolver", "current-time"]))), 256));
|
|
2862
2852
|
}
|
|
2863
2853
|
}), xa = /* @__PURE__ */ j({
|
|
2864
2854
|
__name: "VBuildingChooserV5UiCamera",
|
|
@@ -2892,7 +2882,7 @@ const Yn = {
|
|
|
2892
2882
|
}, null, 8, ["modelValue", "items"]);
|
|
2893
2883
|
};
|
|
2894
2884
|
}
|
|
2895
|
-
}),
|
|
2885
|
+
}), Fa = /* @__PURE__ */ j({
|
|
2896
2886
|
__name: "VBuildingChooserV5UiDay",
|
|
2897
2887
|
props: {
|
|
2898
2888
|
cameraData: {},
|
|
@@ -2945,7 +2935,7 @@ const Yn = {
|
|
|
2945
2935
|
}, 8, ["modelValue", "items"]);
|
|
2946
2936
|
};
|
|
2947
2937
|
}
|
|
2948
|
-
}),
|
|
2938
|
+
}), Da = {
|
|
2949
2939
|
key: 0,
|
|
2950
2940
|
class: "py-2"
|
|
2951
2941
|
}, Sa = { class: "small" }, Ma = { class: "small" }, Ea = /* @__PURE__ */ j({
|
|
@@ -2988,7 +2978,7 @@ const Yn = {
|
|
|
2988
2978
|
const d = B("v-icon"), c = B("v-btn"), b = B("v-slider"), h = B("v-field");
|
|
2989
2979
|
return m(), $(h, { variant: "solo" }, {
|
|
2990
2980
|
default: A(() => [
|
|
2991
|
-
p.dayData.startTime === p.dayData.endTime ? (m(), S("div",
|
|
2981
|
+
p.dayData.startTime === p.dayData.endTime ? (m(), S("div", Da, [
|
|
2992
2982
|
w(d, {
|
|
2993
2983
|
style: { color: "#ffab02", "vertical-align": "baseline", "font-size": "20px" },
|
|
2994
2984
|
class: "py-2 ml-2 mr-2 icon"
|
|
@@ -3053,14 +3043,14 @@ const Yn = {
|
|
|
3053
3043
|
const e = v, a = t, n = u(), o = u(), r = u(e.selectedId), s = lt({});
|
|
3054
3044
|
ke(() => {
|
|
3055
3045
|
for (const l in s) {
|
|
3056
|
-
const { element: d, state: c } = s[l], { r: b, g: h, b: f, a: _, s:
|
|
3046
|
+
const { element: d, state: c } = s[l], { r: b, g: h, b: f, a: _, s: F } = e.colorCallback(l, c) || {
|
|
3057
3047
|
r: 0,
|
|
3058
3048
|
g: 0,
|
|
3059
3049
|
b: 0,
|
|
3060
3050
|
a: 0,
|
|
3061
3051
|
s: 0
|
|
3062
3052
|
};
|
|
3063
|
-
d.style.fill = `rgba(${b}, ${h}, ${f}, ${_ / 255})`, d.style.stroke = `rgb(${b}, ${h}, ${f})`, d.style.strokeWidth =
|
|
3053
|
+
d.style.fill = `rgba(${b}, ${h}, ${f}, ${_ / 255})`, d.style.stroke = `rgb(${b}, ${h}, ${f})`, d.style.strokeWidth = F.toString();
|
|
3064
3054
|
}
|
|
3065
3055
|
}), H(
|
|
3066
3056
|
() => e.selectedId,
|
|
@@ -3081,7 +3071,7 @@ const Yn = {
|
|
|
3081
3071
|
}
|
|
3082
3072
|
);
|
|
3083
3073
|
function p() {
|
|
3084
|
-
|
|
3074
|
+
De(() => {
|
|
3085
3075
|
const l = o.value.firstChild;
|
|
3086
3076
|
if (l) {
|
|
3087
3077
|
if (a("updateSvgContainer", l), !l.hasAttribute("viewBox")) {
|
|
@@ -3149,7 +3139,7 @@ const Yn = {
|
|
|
3149
3139
|
props: {
|
|
3150
3140
|
buildingChooserData: {},
|
|
3151
3141
|
cdnFileResolver: {},
|
|
3152
|
-
colorCallback: { type: Function, default: () => ({ r:
|
|
3142
|
+
colorCallback: { type: Function, default: () => ({ r: 0, g: 0, b: 0, a: 0, s: 0 }) },
|
|
3153
3143
|
i18nConfig: {},
|
|
3154
3144
|
customOverlayContent: {},
|
|
3155
3145
|
selectedId: {},
|
|
@@ -3164,8 +3154,10 @@ const Yn = {
|
|
|
3164
3154
|
);
|
|
3165
3155
|
ue(() => p.value = !0), H(
|
|
3166
3156
|
[h, () => e.cdnFileResolver, () => e.defaultCamera],
|
|
3167
|
-
() => {
|
|
3168
|
-
e.cdnFileResolver && (
|
|
3157
|
+
async () => {
|
|
3158
|
+
e.cdnFileResolver && (h.value || (h.value = await ge.loadJson(
|
|
3159
|
+
se(e.cdnFileResolver, "/buildingChooser.json")
|
|
3160
|
+
)), e.defaultCamera ? n.value = h.value.cameras.find(
|
|
3169
3161
|
(y) => y.cameraName === e.defaultCamera
|
|
3170
3162
|
) || h.value.cameras[0] : n.value = h.value.cameras[0]);
|
|
3171
3163
|
},
|
|
@@ -3173,7 +3165,7 @@ const Yn = {
|
|
|
3173
3165
|
), H(
|
|
3174
3166
|
[h, () => e.cdnFileResolver, () => e.defaultDay],
|
|
3175
3167
|
() => {
|
|
3176
|
-
e.cdnFileResolver && (e.defaultDay ? o.value = n.value.sunsimDayOfYear.find(
|
|
3168
|
+
h.value && e.cdnFileResolver && (e.defaultDay ? o.value = n.value.sunsimDayOfYear.find(
|
|
3177
3169
|
(y) => y.dayOfYear === e.defaultDay
|
|
3178
3170
|
) || n.value.sunsimDayOfYear[0] : o.value = n.value.sunsimDayOfYear[0]);
|
|
3179
3171
|
},
|
|
@@ -3181,7 +3173,7 @@ const Yn = {
|
|
|
3181
3173
|
), H(
|
|
3182
3174
|
[h, () => e.cdnFileResolver, () => e.defaultTime],
|
|
3183
3175
|
() => {
|
|
3184
|
-
e.cdnFileResolver && (e.defaultTime ? r.value = o.value.timeSamples.find(
|
|
3176
|
+
h.value && e.cdnFileResolver && (e.defaultTime ? r.value = o.value.timeSamples.find(
|
|
3185
3177
|
(y) => y.timeInHours === e.defaultTime
|
|
3186
3178
|
) || o.value.timeSamples[0] : r.value = o.value.timeSamples.find(
|
|
3187
3179
|
(y) => y.timeInHours === o.value.defaultHour
|
|
@@ -3191,7 +3183,7 @@ const Yn = {
|
|
|
3191
3183
|
);
|
|
3192
3184
|
function f(y) {
|
|
3193
3185
|
const V = o.value;
|
|
3194
|
-
n.value = y,
|
|
3186
|
+
n.value = y, De(() => {
|
|
3195
3187
|
_(
|
|
3196
3188
|
n.value.sunsimDayOfYear.find(
|
|
3197
3189
|
(C) => C.dayOfYear === V.dayOfYear
|
|
@@ -3201,8 +3193,8 @@ const Yn = {
|
|
|
3201
3193
|
}
|
|
3202
3194
|
function _(y) {
|
|
3203
3195
|
const V = r.value;
|
|
3204
|
-
o.value = y,
|
|
3205
|
-
|
|
3196
|
+
o.value = y, De(() => {
|
|
3197
|
+
F(
|
|
3206
3198
|
o.value.timeSamples.find(
|
|
3207
3199
|
(C) => C.timeInHours === V.timeInHours
|
|
3208
3200
|
) || o.value.timeSamples.find(
|
|
@@ -3211,7 +3203,7 @@ const Yn = {
|
|
|
3211
3203
|
);
|
|
3212
3204
|
});
|
|
3213
3205
|
}
|
|
3214
|
-
function
|
|
3206
|
+
function F(y) {
|
|
3215
3207
|
r.value = y;
|
|
3216
3208
|
}
|
|
3217
3209
|
function k(y) {
|
|
@@ -3260,7 +3252,7 @@ const Yn = {
|
|
|
3260
3252
|
}, null, 8, ["building-chooser-data", "current-camera"])
|
|
3261
3253
|
]),
|
|
3262
3254
|
i("div", $a, [
|
|
3263
|
-
w(
|
|
3255
|
+
w(Fa, {
|
|
3264
3256
|
"camera-data": n.value,
|
|
3265
3257
|
"current-day": o.value,
|
|
3266
3258
|
onOnDayChange: _
|
|
@@ -3270,7 +3262,7 @@ const Yn = {
|
|
|
3270
3262
|
w(Ta, {
|
|
3271
3263
|
"day-data": o.value,
|
|
3272
3264
|
"current-time": r.value,
|
|
3273
|
-
onOnTimeChange:
|
|
3265
|
+
onOnTimeChange: F
|
|
3274
3266
|
}, null, 8, ["day-data", "current-time"])
|
|
3275
3267
|
])
|
|
3276
3268
|
]),
|
|
@@ -3333,7 +3325,7 @@ const Yn = {
|
|
|
3333
3325
|
], 64);
|
|
3334
3326
|
};
|
|
3335
3327
|
}
|
|
3336
|
-
}), xs = /* @__PURE__ */ q(Wa, [["__scopeId", "data-v-
|
|
3328
|
+
}), xs = /* @__PURE__ */ q(Wa, [["__scopeId", "data-v-6966d7a7"]]);
|
|
3337
3329
|
var We = {};
|
|
3338
3330
|
Object.defineProperty(We, "__esModule", {
|
|
3339
3331
|
value: !0
|
|
@@ -3658,7 +3650,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
3658
3650
|
], 4);
|
|
3659
3651
|
};
|
|
3660
3652
|
}
|
|
3661
|
-
}), Io = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAMAAADyHTlpAAAAllBMVEUAAAD/rwD/rwD/qgP/qwL/qAL/qwP/qwH/rAL/rAL/qwL/qQD/qwL/qwD/qQD/qwL/pQD/qgH/nwD/pwD/qQL/rAL/qwD/qwT/rAP/qwL/rAL/rAD/rAL/qgD/qwL/qQP/rAP/rAH/qgH/qwL/qwD/qgL/rwD/qgD/qwH/qgD/qgL/rAD/qgD/qgD/qwH/rAP/qgX/qwA+O5E+AAAAMnRSTlMAECBg/3C/v5Dff4+PT1/PMN8QII9vf0CfgO9vnzDvUF+vr3BA3zA/z2+fX59g71AwcDsf6p0AAAFGSURBVHicvdRtT8MgEABgaM9hu1aHXV/cpm6zWt829f//OYEK9qC3NDF6HxYCTw5GuWPsd8GjqTIGOJtIZwDi/ymnKPflOSTub6cAcwdnkHk5AQY2v3Dzl2phga1EFkl5hScLbZc+LbUs/FltK5OpLpsmrS0NpbLLSu3Er1dgIsn0cdabEdlHlICL5IZSRq5gELcn7DCnsfQL24AX5PeNfAlAHSEOaYrFXaNiqwa7kO7V9L1dt9u25kX58cBY7dbZYz/MKdr2o06nrZ6klNX4AYRdf8aHzkL6QtxAG9KculjhS0nJMO0rSVmF5ZyWnn2jFC+36vcgLTzq+3lPRx6XrjjTqQ7iqJxY6+KLydp0ZWhrVHWE0JoqHq1NSHBxF0h+1Mh6LUMM5LC/Kht8h+5nG9zeTtbt37Ti3XT6+d29pkTXTZVEfAEKARRF2iiwhQAAAB10RVh0U29mdHdhcmUAQGx1bmFwYWludC9wbmctY29kZWP1QxkeAAAAAElFTkSuQmCC", Ao = { class: "d-flex flex-column align-center justify-center clock-face" }, Lo = { class: "clock-icon" }, xo = { class: "clock-value grey--text text--darken-3" },
|
|
3653
|
+
}), Io = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAMAAADyHTlpAAAAllBMVEUAAAD/rwD/rwD/qgP/qwL/qAL/qwP/qwH/rAL/rAL/qwL/qQD/qwL/qwD/qQD/qwL/pQD/qgH/nwD/pwD/qQL/rAL/qwD/qwT/rAP/qwL/rAL/rAD/rAL/qgD/qwL/qQP/rAP/rAH/qgH/qwL/qwD/qgL/rwD/qgD/qwH/qgD/qgL/rAD/qgD/qgD/qwH/rAP/qgX/qwA+O5E+AAAAMnRSTlMAECBg/3C/v5Dff4+PT1/PMN8QII9vf0CfgO9vnzDvUF+vr3BA3zA/z2+fX59g71AwcDsf6p0AAAFGSURBVHicvdRtT8MgEABgaM9hu1aHXV/cpm6zWt829f//OYEK9qC3NDF6HxYCTw5GuWPsd8GjqTIGOJtIZwDi/ymnKPflOSTub6cAcwdnkHk5AQY2v3Dzl2phga1EFkl5hScLbZc+LbUs/FltK5OpLpsmrS0NpbLLSu3Er1dgIsn0cdabEdlHlICL5IZSRq5gELcn7DCnsfQL24AX5PeNfAlAHSEOaYrFXaNiqwa7kO7V9L1dt9u25kX58cBY7dbZYz/MKdr2o06nrZ6klNX4AYRdf8aHzkL6QtxAG9KculjhS0nJMO0rSVmF5ZyWnn2jFC+36vcgLTzq+3lPRx6XrjjTqQ7iqJxY6+KLydp0ZWhrVHWE0JoqHq1NSHBxF0h+1Mh6LUMM5LC/Kht8h+5nG9zeTtbt37Ti3XT6+d29pkTXTZVEfAEKARRF2iiwhQAAAB10RVh0U29mdHdhcmUAQGx1bmFwYWludC9wbmctY29kZWP1QxkeAAAAAElFTkSuQmCC", Ao = { class: "d-flex flex-column align-center justify-center clock-face" }, Lo = { class: "clock-icon" }, xo = { class: "clock-value grey--text text--darken-3" }, Fo = /* @__PURE__ */ j({
|
|
3662
3654
|
__name: "VTimeOfDay",
|
|
3663
3655
|
props: {
|
|
3664
3656
|
hours: { default: 0 },
|
|
@@ -3682,7 +3674,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
3682
3674
|
]);
|
|
3683
3675
|
};
|
|
3684
3676
|
}
|
|
3685
|
-
}),
|
|
3677
|
+
}), Do = /* @__PURE__ */ q(Fo, [["__scopeId", "data-v-9a5f102b"]]), So = /* @__PURE__ */ j({
|
|
3686
3678
|
__name: "VViewModeToggle",
|
|
3687
3679
|
props: {
|
|
3688
3680
|
showStaticImage: { type: Boolean }
|
|
@@ -4357,8 +4349,8 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
4357
4349
|
);
|
|
4358
4350
|
const o = T(() => {
|
|
4359
4351
|
let f = {};
|
|
4360
|
-
for (const [_,
|
|
4361
|
-
_ === "whitePoint" ? f[_] = d(
|
|
4352
|
+
for (const [_, F] of Object.entries(n.value))
|
|
4353
|
+
_ === "whitePoint" ? f[_] = d(F.value) : f[_] = F.value;
|
|
4362
4354
|
return f;
|
|
4363
4355
|
});
|
|
4364
4356
|
function r() {
|
|
@@ -4379,15 +4371,15 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
4379
4371
|
n.value = h(), a("updateSettings", o.value);
|
|
4380
4372
|
}
|
|
4381
4373
|
function d(f) {
|
|
4382
|
-
const _ = parseInt(f.substr(1, 2), 16) / 255,
|
|
4383
|
-
return [_,
|
|
4374
|
+
const _ = parseInt(f.substr(1, 2), 16) / 255, F = parseInt(f.substr(3, 2), 16) / 255, k = parseInt(f.substr(5, 2), 16) / 255;
|
|
4375
|
+
return [_, F, k];
|
|
4384
4376
|
}
|
|
4385
4377
|
function c(f) {
|
|
4386
4378
|
var _ = f.toString(16);
|
|
4387
4379
|
return _.length == 1 ? "0" + _ : _;
|
|
4388
4380
|
}
|
|
4389
|
-
function b([f, _,
|
|
4390
|
-
return "#" + c(parseInt((f * 255).toString())) + c(parseInt((_ * 255).toString())) + c(parseInt((
|
|
4381
|
+
function b([f, _, F]) {
|
|
4382
|
+
return "#" + c(parseInt((f * 255).toString())) + c(parseInt((_ * 255).toString())) + c(parseInt((F * 255).toString()));
|
|
4391
4383
|
}
|
|
4392
4384
|
function h(f = {}) {
|
|
4393
4385
|
const _ = [
|
|
@@ -4403,7 +4395,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
4403
4395
|
"Warm 5",
|
|
4404
4396
|
"bw"
|
|
4405
4397
|
];
|
|
4406
|
-
let
|
|
4398
|
+
let F = {
|
|
4407
4399
|
temperature: 6500,
|
|
4408
4400
|
targetLuminance: 1,
|
|
4409
4401
|
exposureFovScale: 0.6,
|
|
@@ -4422,7 +4414,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
4422
4414
|
min: 0,
|
|
4423
4415
|
max: 1,
|
|
4424
4416
|
step: 0.01,
|
|
4425
|
-
value:
|
|
4417
|
+
value: F.exposureFovScale
|
|
4426
4418
|
},
|
|
4427
4419
|
targetLuminance: {
|
|
4428
4420
|
label: "Target Luminance",
|
|
@@ -4430,7 +4422,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
4430
4422
|
min: 0,
|
|
4431
4423
|
max: 15,
|
|
4432
4424
|
step: 0.1,
|
|
4433
|
-
value:
|
|
4425
|
+
value: F.targetLuminance
|
|
4434
4426
|
},
|
|
4435
4427
|
sharpenFilter_amount: {
|
|
4436
4428
|
label: "Sharpen Filter Amount",
|
|
@@ -4438,12 +4430,12 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
4438
4430
|
min: 0,
|
|
4439
4431
|
max: 100,
|
|
4440
4432
|
step: 0.1,
|
|
4441
|
-
value:
|
|
4433
|
+
value: F.sharpenFilter_amount
|
|
4442
4434
|
},
|
|
4443
4435
|
UNREAL_BLOOM_ENABLED: {
|
|
4444
4436
|
label: "Enable Bloom?",
|
|
4445
4437
|
type: "boolean",
|
|
4446
|
-
value:
|
|
4438
|
+
value: F.UNREAL_BLOOM_ENABLED
|
|
4447
4439
|
},
|
|
4448
4440
|
UNREAL_BLOOM_STRENGTH: {
|
|
4449
4441
|
label: "Bloom Strength",
|
|
@@ -4451,7 +4443,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
4451
4443
|
min: 0,
|
|
4452
4444
|
max: 1,
|
|
4453
4445
|
step: 0.01,
|
|
4454
|
-
value:
|
|
4446
|
+
value: F.UNREAL_BLOOM_STRENGTH
|
|
4455
4447
|
},
|
|
4456
4448
|
TRANSITION_MOVEMENT_SCALE: {
|
|
4457
4449
|
label: "Transition Movement Speed",
|
|
@@ -4459,7 +4451,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
4459
4451
|
min: 0.2,
|
|
4460
4452
|
max: 25,
|
|
4461
4453
|
step: 0.1,
|
|
4462
|
-
value:
|
|
4454
|
+
value: F.TRANSITION_MOVEMENT_SCALE
|
|
4463
4455
|
},
|
|
4464
4456
|
temperature: {
|
|
4465
4457
|
label: "Temperature / White Balance",
|
|
@@ -4467,12 +4459,12 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
4467
4459
|
min: 1e3,
|
|
4468
4460
|
max: 12e3,
|
|
4469
4461
|
step: 1,
|
|
4470
|
-
value:
|
|
4462
|
+
value: F.temperature
|
|
4471
4463
|
},
|
|
4472
4464
|
whitePoint: {
|
|
4473
4465
|
label: "White Point",
|
|
4474
4466
|
type: "color",
|
|
4475
|
-
value: b(
|
|
4467
|
+
value: b(F.whitePoint)
|
|
4476
4468
|
},
|
|
4477
4469
|
lut: {
|
|
4478
4470
|
label: "Lut",
|
|
@@ -4481,12 +4473,12 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
4481
4473
|
text: k,
|
|
4482
4474
|
value: `https://cdn.visuado.com/luts/${k}.png`
|
|
4483
4475
|
})),
|
|
4484
|
-
value:
|
|
4476
|
+
value: F.lut
|
|
4485
4477
|
}
|
|
4486
4478
|
};
|
|
4487
4479
|
}
|
|
4488
4480
|
return (f, _) => {
|
|
4489
|
-
const
|
|
4481
|
+
const F = B("v-text-field"), k = B("v-slider"), g = B("v-checkbox"), U = B("v-btn"), y = B("v-select"), V = B("v-icon");
|
|
4490
4482
|
return m(), S("div", rl, [
|
|
4491
4483
|
i("form", il, [
|
|
4492
4484
|
i("div", ul, [
|
|
@@ -4497,7 +4489,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
4497
4489
|
C.type === "slider" ? (m(), $(k, {
|
|
4498
4490
|
key: 0,
|
|
4499
4491
|
modelValue: n.value[L].value,
|
|
4500
|
-
"onUpdate:modelValue": (
|
|
4492
|
+
"onUpdate:modelValue": (D) => n.value[L].value = D,
|
|
4501
4493
|
onChange: r,
|
|
4502
4494
|
max: C.max,
|
|
4503
4495
|
min: C.min,
|
|
@@ -4508,9 +4500,9 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
4508
4500
|
]),
|
|
4509
4501
|
append: A(() => [
|
|
4510
4502
|
i("div", null, [
|
|
4511
|
-
w(
|
|
4503
|
+
w(F, {
|
|
4512
4504
|
modelValue: n.value[L].value,
|
|
4513
|
-
"onUpdate:modelValue": (
|
|
4505
|
+
"onUpdate:modelValue": (D) => n.value[L].value = D,
|
|
4514
4506
|
"hide-details": "",
|
|
4515
4507
|
dense: "",
|
|
4516
4508
|
outlined: "",
|
|
@@ -4528,7 +4520,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
4528
4520
|
C.type === "boolean" ? (m(), $(g, {
|
|
4529
4521
|
key: 1,
|
|
4530
4522
|
modelValue: n.value[L].value,
|
|
4531
|
-
"onUpdate:modelValue": (
|
|
4523
|
+
"onUpdate:modelValue": (D) => n.value[L].value = D,
|
|
4532
4524
|
onChange: r
|
|
4533
4525
|
}, {
|
|
4534
4526
|
prepend: A(() => [
|
|
@@ -4549,17 +4541,17 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
4549
4541
|
i("div", ml, N(C.label), 1),
|
|
4550
4542
|
i("div", pl, [
|
|
4551
4543
|
de(i("input", {
|
|
4552
|
-
"onUpdate:modelValue": (
|
|
4544
|
+
"onUpdate:modelValue": (D) => n.value[L].value = D,
|
|
4553
4545
|
type: "color",
|
|
4554
4546
|
onChange: r
|
|
4555
4547
|
}, null, 40, fl), [
|
|
4556
|
-
[
|
|
4548
|
+
[Ft, n.value[L].value]
|
|
4557
4549
|
])
|
|
4558
4550
|
]),
|
|
4559
4551
|
i("div", null, [
|
|
4560
|
-
w(
|
|
4552
|
+
w(F, {
|
|
4561
4553
|
modelValue: n.value[L].value,
|
|
4562
|
-
"onUpdate:modelValue": (
|
|
4554
|
+
"onUpdate:modelValue": (D) => n.value[L].value = D,
|
|
4563
4555
|
"hide-details": "",
|
|
4564
4556
|
dense: "",
|
|
4565
4557
|
outlined: "",
|
|
@@ -4577,7 +4569,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
4577
4569
|
w(U, {
|
|
4578
4570
|
class: "ml-2",
|
|
4579
4571
|
"x-small": "",
|
|
4580
|
-
onClick: (
|
|
4572
|
+
onClick: (D) => n.value[L].value = null
|
|
4581
4573
|
}, {
|
|
4582
4574
|
default: A(() => [
|
|
4583
4575
|
X(" Clear Lut ")
|
|
@@ -4591,7 +4583,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
4591
4583
|
i("div", null, [
|
|
4592
4584
|
w(y, {
|
|
4593
4585
|
modelValue: n.value[L].value,
|
|
4594
|
-
"onUpdate:modelValue": (
|
|
4586
|
+
"onUpdate:modelValue": (D) => n.value[L].value = D,
|
|
4595
4587
|
items: C.items,
|
|
4596
4588
|
"item-title": "title",
|
|
4597
4589
|
"item-value": "value",
|
|
@@ -4605,9 +4597,9 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
4605
4597
|
bl,
|
|
4606
4598
|
i("div", wl, [
|
|
4607
4599
|
i("div", null, [
|
|
4608
|
-
w(
|
|
4600
|
+
w(F, {
|
|
4609
4601
|
modelValue: n.value[L].value,
|
|
4610
|
-
"onUpdate:modelValue": (
|
|
4602
|
+
"onUpdate:modelValue": (D) => n.value[L].value = D,
|
|
4611
4603
|
"hide-details": "",
|
|
4612
4604
|
dense: "",
|
|
4613
4605
|
type: "url",
|
|
@@ -4667,7 +4659,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
4667
4659
|
}), Il = /* @__PURE__ */ q(Cl, [["__scopeId", "data-v-bd4f66c3"]]), Al = (v) => (st("data-v-30593022"), v = v(), rt(), v), Ll = /* @__PURE__ */ Al(() => /* @__PURE__ */ i("div", { id: "filler-div" }, null, -1)), xl = {
|
|
4668
4660
|
class: "moveable-body",
|
|
4669
4661
|
id: "moveableDivHeader"
|
|
4670
|
-
},
|
|
4662
|
+
}, Fl = { class: "moveable-footer" }, Dl = /* @__PURE__ */ j({
|
|
4671
4663
|
__name: "VMoveable",
|
|
4672
4664
|
emits: ["close", "transform"],
|
|
4673
4665
|
setup(v, { emit: t }) {
|
|
@@ -4683,13 +4675,13 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
4683
4675
|
s.addEventListener("touchstart", b, { passive: !1 }), s.addEventListener("touchend", f, { passive: !1 }), s.addEventListener("mousedown", b, { passive: !1 }), s.addEventListener("mouseup", f, { passive: !1 });
|
|
4684
4676
|
function b(_) {
|
|
4685
4677
|
_ = _ || window.event, _.preventDefault();
|
|
4686
|
-
let
|
|
4687
|
-
_.type === "touchstart" && (
|
|
4678
|
+
let F = _;
|
|
4679
|
+
_.type === "touchstart" && (F = _.touches[0]), d = F.clientX, c = F.clientY, document.addEventListener("mouseup", f, { passive: !1 }), document.addEventListener("touchend", f, { passive: !1 }), document.addEventListener("mousemove", h, { passive: !1 }), document.addEventListener("touchmove", h, { passive: !1 });
|
|
4688
4680
|
}
|
|
4689
4681
|
function h(_) {
|
|
4690
4682
|
_ = _ || window.event, _.preventDefault();
|
|
4691
|
-
let
|
|
4692
|
-
_.type === "touchmove" && (
|
|
4683
|
+
let F = _;
|
|
4684
|
+
_.type === "touchmove" && (F = _.touches[0]), p = d - F.clientX, l = c - F.clientY, d = F.clientX, c = F.clientY, r.style.top = r.offsetTop - l + "px", r.style.left = r.offsetLeft - p + "px";
|
|
4693
4685
|
}
|
|
4694
4686
|
function f() {
|
|
4695
4687
|
document.removeEventListener("mouseup", f, !1), document.removeEventListener("mousemove", h, !1), document.removeEventListener("touchend", f, !1), document.removeEventListener("touchmove", h, !1);
|
|
@@ -4728,13 +4720,13 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
4728
4720
|
i("div", xl, [
|
|
4729
4721
|
oe(r.$slots, "body", { class: "slot" }, void 0, !0)
|
|
4730
4722
|
]),
|
|
4731
|
-
i("div",
|
|
4723
|
+
i("div", Fl, [
|
|
4732
4724
|
oe(r.$slots, "footer", {}, void 0, !0)
|
|
4733
4725
|
])
|
|
4734
4726
|
], 2);
|
|
4735
4727
|
};
|
|
4736
4728
|
}
|
|
4737
|
-
}), Sl = /* @__PURE__ */ q(
|
|
4729
|
+
}), Sl = /* @__PURE__ */ q(Dl, [["__scopeId", "data-v-30593022"]]), Ml = {
|
|
4738
4730
|
class: "rotation-marker-svg",
|
|
4739
4731
|
viewBox: "0 0 40 40",
|
|
4740
4732
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -4770,16 +4762,16 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
4770
4762
|
t.storey.position.y,
|
|
4771
4763
|
t.storey.position.z
|
|
4772
4764
|
)), h = T(() => parseFloat(d.value.floor_vertical_position)), f = T(() => l.value.map((L) => {
|
|
4773
|
-
const G = L.uposition.split(","),
|
|
4765
|
+
const G = L.uposition.split(","), D = new Ve.Vector3(
|
|
4774
4766
|
Number(G[0]) - b.value.x,
|
|
4775
4767
|
0,
|
|
4776
4768
|
Number(G[2]) - b.value.z
|
|
4777
4769
|
);
|
|
4778
4770
|
return {
|
|
4779
4771
|
...L,
|
|
4780
|
-
...y(n.value,
|
|
4772
|
+
...y(n.value, D)
|
|
4781
4773
|
};
|
|
4782
|
-
})), _ = T(() => `background-image: url(${t.backgroundImage});`),
|
|
4774
|
+
})), _ = T(() => `background-image: url(${t.backgroundImage});`), F = T(() => {
|
|
4783
4775
|
let L = s.value > 1 ? 1 : s.value;
|
|
4784
4776
|
return L < 0.8 && (L = 0.4), `scale: ${L > 1 ? 1 : L}; transform: rotate(${t.transformAngle}deg);`;
|
|
4785
4777
|
});
|
|
@@ -4787,7 +4779,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
4787
4779
|
V(), g(), C();
|
|
4788
4780
|
const L = document.getElementById("moveableDiv");
|
|
4789
4781
|
L && (p.value = new ResizeObserver(C).observe(L));
|
|
4790
|
-
}),
|
|
4782
|
+
}), Dt(() => {
|
|
4791
4783
|
V(), g();
|
|
4792
4784
|
}), Pe(() => {
|
|
4793
4785
|
p.value && p.value.unobserve(document.getElementById("moveableDiv"));
|
|
@@ -4807,8 +4799,8 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
4807
4799
|
};
|
|
4808
4800
|
}
|
|
4809
4801
|
function y(L, G) {
|
|
4810
|
-
var
|
|
4811
|
-
const Z =
|
|
4802
|
+
var D = new Ve.Vector3();
|
|
4803
|
+
const Z = D.subVectors(L, G);
|
|
4812
4804
|
return {
|
|
4813
4805
|
relativePosition: Z,
|
|
4814
4806
|
left: Z.x / e.value * 100,
|
|
@@ -4818,21 +4810,21 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
4818
4810
|
function V() {
|
|
4819
4811
|
const L = t.storey.position.y - h.value;
|
|
4820
4812
|
a.value = 2 * (L * Math.tan(k(t.storey.fovY / 2))), e.value = 512 / 384 * a.value;
|
|
4821
|
-
const G = a.value / 2,
|
|
4813
|
+
const G = a.value / 2, D = e.value / 2, Z = new Ve.Vector3(D * -1, 0, G * -1);
|
|
4822
4814
|
n.value = Z;
|
|
4823
4815
|
}
|
|
4824
4816
|
function C() {
|
|
4825
4817
|
const L = document.getElementById("moveableDiv");
|
|
4826
4818
|
if (!L)
|
|
4827
4819
|
return;
|
|
4828
|
-
const G = L.offsetHeight / 384 * 0.8,
|
|
4829
|
-
L.offsetHeight > L.offsetWidth ? s.value =
|
|
4820
|
+
const G = L.offsetHeight / 384 * 0.8, D = L.offsetWidth / 512 * 0.8;
|
|
4821
|
+
L.offsetHeight > L.offsetWidth ? s.value = D * 0.5 : s.value = G * 0.9;
|
|
4830
4822
|
}
|
|
4831
4823
|
return (L, G) => (m(), S("div", Ol, [
|
|
4832
4824
|
i("div", Ul, [
|
|
4833
4825
|
i("div", {
|
|
4834
4826
|
class: "web-minimap",
|
|
4835
|
-
style: le(
|
|
4827
|
+
style: le(F.value)
|
|
4836
4828
|
}, [
|
|
4837
4829
|
i("div", {
|
|
4838
4830
|
class: "minimap-background-image",
|
|
@@ -4842,19 +4834,19 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
4842
4834
|
class: "center-pivot",
|
|
4843
4835
|
style: le(r.value)
|
|
4844
4836
|
}, [
|
|
4845
|
-
(m(!0), S(ie, null, ve(f.value, (
|
|
4846
|
-
key:
|
|
4837
|
+
(m(!0), S(ie, null, ve(f.value, (D) => (m(), S("div", {
|
|
4838
|
+
key: D.id
|
|
4847
4839
|
}, [
|
|
4848
|
-
d.value.floorLevel ===
|
|
4840
|
+
d.value.floorLevel === D.floorLevel ? (m(), S("div", {
|
|
4849
4841
|
key: 0,
|
|
4850
4842
|
class: "single-camera-marker",
|
|
4851
|
-
style: le(U(
|
|
4843
|
+
style: le(U(D))
|
|
4852
4844
|
}, null, 4)) : Y("", !0),
|
|
4853
|
-
d.value.id ===
|
|
4845
|
+
d.value.id === D.id && t.rotation !== null ? (m(), $(Rl, {
|
|
4854
4846
|
key: 1,
|
|
4855
4847
|
class: "rotation-marker-component",
|
|
4856
4848
|
rotation: c.value,
|
|
4857
|
-
style: le({ ...U(
|
|
4849
|
+
style: le({ ...U(D) })
|
|
4858
4850
|
}, null, 8, ["rotation", "style"])) : Y("", !0)
|
|
4859
4851
|
]))), 128))
|
|
4860
4852
|
], 4)
|
|
@@ -4927,8 +4919,8 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
4927
4919
|
for (let V = 0; V < y.length; V++) {
|
|
4928
4920
|
const C = y[V];
|
|
4929
4921
|
try {
|
|
4930
|
-
const L = C, G = C.split("."),
|
|
4931
|
-
g.set(G[0],
|
|
4922
|
+
const L = C, G = C.split("."), D = await f(L);
|
|
4923
|
+
g.set(G[0], D);
|
|
4932
4924
|
} catch {
|
|
4933
4925
|
continue;
|
|
4934
4926
|
}
|
|
@@ -4942,13 +4934,13 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
4942
4934
|
e.cdnFileResolver,
|
|
4943
4935
|
`/${e.apartmentJson.type}/${e.apartmentJson.id}/minimap/${k}`
|
|
4944
4936
|
)
|
|
4945
|
-
)).blob(), y = await
|
|
4937
|
+
)).blob(), y = await F(U);
|
|
4946
4938
|
return _(y);
|
|
4947
4939
|
}
|
|
4948
4940
|
function _(k) {
|
|
4949
4941
|
return "data:image/jpeg;base64," + k;
|
|
4950
4942
|
}
|
|
4951
|
-
async function
|
|
4943
|
+
async function F(k) {
|
|
4952
4944
|
return new Promise((g, U) => {
|
|
4953
4945
|
const y = new FileReader();
|
|
4954
4946
|
y.onload = () => {
|
|
@@ -5119,7 +5111,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
5119
5111
|
d(), a("goto", l);
|
|
5120
5112
|
}
|
|
5121
5113
|
return (l, d) => {
|
|
5122
|
-
const c = B("v-icon"), b = B("v-btn"), h = B("v-hover"), f = B("v-img"), _ = B("v-card"),
|
|
5114
|
+
const c = B("v-icon"), b = B("v-btn"), h = B("v-hover"), f = B("v-img"), _ = B("v-card"), F = B("v-slide-group-item"), k = B("v-slide-group");
|
|
5123
5115
|
return m(), S("div", Kl, [
|
|
5124
5116
|
w(k, {
|
|
5125
5117
|
modelValue: o.value,
|
|
@@ -5181,7 +5173,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
5181
5173
|
})
|
|
5182
5174
|
]),
|
|
5183
5175
|
default: A(() => [
|
|
5184
|
-
(m(!0), S(ie, null, ve(l.thumbnails, (g) => (m(), $(
|
|
5176
|
+
(m(!0), S(ie, null, ve(l.thumbnails, (g) => (m(), $(F, {
|
|
5185
5177
|
key: g.id
|
|
5186
5178
|
}, {
|
|
5187
5179
|
default: A(({ toggle: U, selectedClass: y }) => [
|
|
@@ -5246,7 +5238,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
5246
5238
|
navigator.clipboard.writeText(location.href);
|
|
5247
5239
|
}
|
|
5248
5240
|
return (p, l) => {
|
|
5249
|
-
const d = B("v-btn"), c = B("v-tooltip"), b = B("v-toolbar-title"), h = B("v-spacer"), f = B("v-toolbar"), _ = B("v-card-text"),
|
|
5241
|
+
const d = B("v-btn"), c = B("v-tooltip"), b = B("v-toolbar-title"), h = B("v-spacer"), f = B("v-toolbar"), _ = B("v-card-text"), F = B("v-card"), k = B("v-dialog");
|
|
5250
5242
|
return m(), S("div", null, [
|
|
5251
5243
|
w(c, {
|
|
5252
5244
|
elevation: "2",
|
|
@@ -5273,7 +5265,7 @@ const Ja = { id: "player-wrapper" }, Ka = { id: "player-sizer" }, eo = {
|
|
|
5273
5265
|
"onUpdate:modelValue": l[2] || (l[2] = (g) => e.value = g)
|
|
5274
5266
|
}, {
|
|
5275
5267
|
default: A(() => [
|
|
5276
|
-
w(
|
|
5268
|
+
w(F, null, {
|
|
5277
5269
|
default: A(() => [
|
|
5278
5270
|
w(f, { elevation: "0" }, {
|
|
5279
5271
|
default: A(() => [
|
|
@@ -5517,7 +5509,7 @@ const vs = { class: "virtual-tour-wrapper" }, ms = {
|
|
|
5517
5509
|
},
|
|
5518
5510
|
emits: ["onSnapshot", "saveSettings", "onInteriorUpdate", "onCameraUpdate"],
|
|
5519
5511
|
setup(v, { emit: t }) {
|
|
5520
|
-
const e = v, a = t, n = u(!1), o = u(!1), r = u(), s = u(), p = u(), l = u(), d = u(), c = u(0), b = u(), h = u(), f = u(), _ = u(0),
|
|
5512
|
+
const e = v, a = t, n = u(!1), o = u(!1), r = u(), s = u(), p = u(), l = u(), d = u(), c = u(0), b = u(), h = u(), f = u(), _ = u(0), F = u(0), k = u(0), g = u(!1), U = u(!1), y = u(!1), V = u(
|
|
5521
5513
|
new ds(document, "player-wrapper")
|
|
5522
5514
|
), C = T(() => {
|
|
5523
5515
|
if (s.value) {
|
|
@@ -5537,14 +5529,14 @@ const vs = { class: "virtual-tour-wrapper" }, ms = {
|
|
|
5537
5529
|
let J = [...new Set(z)];
|
|
5538
5530
|
J = J.sort();
|
|
5539
5531
|
const fe = J.findIndex(
|
|
5540
|
-
(He) => He ===
|
|
5532
|
+
(He) => He === F.value
|
|
5541
5533
|
);
|
|
5542
5534
|
fe !== -1 && (I = fe);
|
|
5543
5535
|
}
|
|
5544
5536
|
return I;
|
|
5545
5537
|
}), G = T(() => x.value.findIndex(
|
|
5546
5538
|
(I) => I.archetypeID === b.value
|
|
5547
|
-
)),
|
|
5539
|
+
)), D = T(() => p.value ? p.value.cameras.map((I) => ({
|
|
5548
5540
|
...I,
|
|
5549
5541
|
thumbnailUrl: he(
|
|
5550
5542
|
`/${b.value}/${e.apartmentId}/thumbs/200/${I.id}.jpg`
|
|
@@ -5552,7 +5544,7 @@ const vs = { class: "virtual-tour-wrapper" }, ms = {
|
|
|
5552
5544
|
imageUrl: he(
|
|
5553
5545
|
`/${b.value}/${e.apartmentId}/images/1600/${I.id}.jpg`
|
|
5554
5546
|
)
|
|
5555
|
-
})) : []), Z = T(() => !
|
|
5547
|
+
})) : []), Z = T(() => !D.value || !D.value[c.value] ? "" : D.value[c.value].imageUrl), x = T(() => {
|
|
5556
5548
|
let I = [];
|
|
5557
5549
|
return r.value && (I = r.value.archetypes), e.validInteriorIds.length ? I.filter(
|
|
5558
5550
|
(z) => e.validInteriorIds.includes(z.archetypeID)
|
|
@@ -5560,7 +5552,7 @@ const vs = { class: "virtual-tour-wrapper" }, ms = {
|
|
|
5560
5552
|
}), E = T(() => p.value ? x.value.map((I) => ({
|
|
5561
5553
|
...I,
|
|
5562
5554
|
url: he(
|
|
5563
|
-
`/${I.archetypeID}/${e.apartmentId}/thumbs/200/${
|
|
5555
|
+
`/${I.archetypeID}/${e.apartmentId}/thumbs/200/${D.value[c.value].id}.jpg`
|
|
5564
5556
|
)
|
|
5565
5557
|
})) : []), M = T(() => {
|
|
5566
5558
|
if (l.value)
|
|
@@ -5689,20 +5681,20 @@ const vs = { class: "virtual-tour-wrapper" }, ms = {
|
|
|
5689
5681
|
}
|
|
5690
5682
|
function _e() {
|
|
5691
5683
|
let I = c.value + 1;
|
|
5692
|
-
I >=
|
|
5684
|
+
I >= D.value.length && (I = 0), c.value = I, Ee(D.value[c.value].id);
|
|
5693
5685
|
}
|
|
5694
5686
|
function be() {
|
|
5695
5687
|
let I = c.value - 1;
|
|
5696
|
-
I < 0 && (I =
|
|
5688
|
+
I < 0 && (I = D.value.length - 1), c.value = I, Ee(D.value[c.value].id);
|
|
5697
5689
|
}
|
|
5698
5690
|
function we(I, z = !0) {
|
|
5699
|
-
let J =
|
|
5691
|
+
let J = D.value.findIndex((fe) => fe.id === I);
|
|
5700
5692
|
J != -1 && (c.value = J, z && Ee(I));
|
|
5701
5693
|
}
|
|
5702
5694
|
function Ee(I) {
|
|
5703
5695
|
h.value = I;
|
|
5704
5696
|
}
|
|
5705
|
-
function
|
|
5697
|
+
function Fe(I) {
|
|
5706
5698
|
b.value = I, a("onInteriorUpdate", I), a("onCameraUpdate", f.value, s.value);
|
|
5707
5699
|
}
|
|
5708
5700
|
function Xe(I) {
|
|
@@ -5712,7 +5704,7 @@ const vs = { class: "virtual-tour-wrapper" }, ms = {
|
|
|
5712
5704
|
_.value = I;
|
|
5713
5705
|
}
|
|
5714
5706
|
function Je(I) {
|
|
5715
|
-
|
|
5707
|
+
F.value = I;
|
|
5716
5708
|
}
|
|
5717
5709
|
function W(I) {
|
|
5718
5710
|
k.value = I;
|
|
@@ -5821,7 +5813,7 @@ const vs = { class: "virtual-tour-wrapper" }, ms = {
|
|
|
5821
5813
|
]) : Y("", !0),
|
|
5822
5814
|
y.value && I.showFloorLevel && C.value.length > 1 ? (m(), $(yo, {
|
|
5823
5815
|
key: 2,
|
|
5824
|
-
level:
|
|
5816
|
+
level: F.value,
|
|
5825
5817
|
"floor-levels": C.value,
|
|
5826
5818
|
onLevel: Je
|
|
5827
5819
|
}, null, 8, ["level", "floor-levels"])) : Y("", !0),
|
|
@@ -5845,7 +5837,7 @@ const vs = { class: "virtual-tour-wrapper" }, ms = {
|
|
|
5845
5837
|
], 512)), [
|
|
5846
5838
|
[pe, y.value]
|
|
5847
5839
|
]) : Y("", !0),
|
|
5848
|
-
y.value && s.value && O.value && I.showTimeOfDay ? (m(), $(
|
|
5840
|
+
y.value && s.value && O.value && I.showTimeOfDay ? (m(), $(Do, {
|
|
5849
5841
|
key: 1,
|
|
5850
5842
|
hours: K.value.hours,
|
|
5851
5843
|
minutes: K.value.minutes
|
|
@@ -5924,7 +5916,7 @@ const vs = { class: "virtual-tour-wrapper" }, ms = {
|
|
|
5924
5916
|
y.value && V.value.isActive ? (m(), $(pt, {
|
|
5925
5917
|
key: 1,
|
|
5926
5918
|
class: xe([V.value.isActive ? "full-screen" : ""]),
|
|
5927
|
-
thumbnails:
|
|
5919
|
+
thumbnails: D.value,
|
|
5928
5920
|
active: c.value,
|
|
5929
5921
|
onNext: _e,
|
|
5930
5922
|
onPrevious: be,
|
|
@@ -5938,7 +5930,7 @@ const vs = { class: "virtual-tour-wrapper" }, ms = {
|
|
|
5938
5930
|
"cdn-file-resolver": I.cdnFileResolver,
|
|
5939
5931
|
"available-archetypes": E.value,
|
|
5940
5932
|
"selected-index": G.value,
|
|
5941
|
-
onSelectInterior:
|
|
5933
|
+
onSelectInterior: Fe
|
|
5942
5934
|
}, null, 8, ["cdn-file-resolver", "available-archetypes", "selected-index"])) : Y("", !0)
|
|
5943
5935
|
]),
|
|
5944
5936
|
_: 1
|
|
@@ -5946,7 +5938,7 @@ const vs = { class: "virtual-tour-wrapper" }, ms = {
|
|
|
5946
5938
|
I.showCarousel && p.value ? (m(), $(pt, {
|
|
5947
5939
|
key: 0,
|
|
5948
5940
|
class: "waypoint-carousel below-player",
|
|
5949
|
-
thumbnails:
|
|
5941
|
+
thumbnails: D.value,
|
|
5950
5942
|
active: c.value,
|
|
5951
5943
|
onNext: _e,
|
|
5952
5944
|
onPrevious: be,
|
|
@@ -5957,7 +5949,7 @@ const vs = { class: "virtual-tour-wrapper" }, ms = {
|
|
|
5957
5949
|
]);
|
|
5958
5950
|
};
|
|
5959
5951
|
}
|
|
5960
|
-
}), ks = /* @__PURE__ */ q(ws, [["__scopeId", "data-v-26ecf6ea"]]),
|
|
5952
|
+
}), ks = /* @__PURE__ */ q(ws, [["__scopeId", "data-v-26ecf6ea"]]), Fs = {
|
|
5961
5953
|
install: function(t) {
|
|
5962
5954
|
t.component("VApartmentChooser", fn), t.component("VBuildingChooser", wa), t.component("VVirtualTour", ks);
|
|
5963
5955
|
}
|
|
@@ -5973,5 +5965,5 @@ export {
|
|
|
5973
5965
|
Ze as VNorthDirection,
|
|
5974
5966
|
ks as VVirtualTour,
|
|
5975
5967
|
qe as VZoomBox,
|
|
5976
|
-
|
|
5968
|
+
Fs as default
|
|
5977
5969
|
};
|