@qispace/vue3-player 0.3.11 → 0.3.12
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 ka = Object.defineProperty;
|
|
2
2
|
var Ia = (l, a, e) => a in l ? ka(l, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[a] = e;
|
|
3
3
|
var ce = (l, a, e) => (Ia(l, typeof a != "symbol" ? a + "" : a, e), e);
|
|
4
|
-
import { defineComponent as N, ref as c, computed as $, openBlock as v, createElementBlock as x, watch as H, onMounted as we, onBeforeUnmount as Ye, withDirectives as pe, createElementVNode as u, normalizeStyle as de, vShow as _e, createVNode as w, Fragment as ue, renderList as he, createCommentVNode as R, inject as Qe, resolveComponent as E, withCtx as _, toDisplayString as Q, unref as D, createTextVNode as te, normalizeClass as fe, createBlock as V, renderSlot as
|
|
4
|
+
import { defineComponent as N, ref as c, computed as $, openBlock as v, createElementBlock as x, watch as H, onMounted as we, onBeforeUnmount as Ye, withDirectives as pe, createElementVNode as u, normalizeStyle as de, vShow as _e, createVNode as w, Fragment as ue, renderList as he, createCommentVNode as R, inject as Qe, resolveComponent as E, withCtx as _, toDisplayString as Q, unref as D, createTextVNode as te, normalizeClass as fe, createBlock as V, renderSlot as oe, provide as Ze, reactive as mt, watchEffect as Ve, resolveDynamicComponent as zt, normalizeProps as ot, guardReactiveProps as lt, mergeProps as Ee, nextTick as xe, Transition as Re, createSlots as Sa, toRefs as Te, pushScopeId as pt, popScopeId as ft, vModelText as xa, createStaticVNode as Pt, onBeforeUpdate as Da, withModifiers as Aa } from "vue";
|
|
5
5
|
import Ct from "axios";
|
|
6
6
|
import * as Fa from "@qispace/player-core";
|
|
7
7
|
import { Vector3 as tt, Object3D as La, MathUtils as Ma } from "three";
|
|
@@ -190,7 +190,7 @@ const Ea = /* @__PURE__ */ N({
|
|
|
190
190
|
if (U.index >= 0) {
|
|
191
191
|
const ee = se(U.index);
|
|
192
192
|
if (ee) {
|
|
193
|
-
const me =
|
|
193
|
+
const me = le(U.index);
|
|
194
194
|
let Fe = "idle";
|
|
195
195
|
!C.value && e.selectedUnitId && me === e.selectedUnitId ? Fe = "selected" : C.value && f.value === U.index && (Fe = "hover");
|
|
196
196
|
const Ie = e.colorCallback(U.unitId, Fe);
|
|
@@ -204,7 +204,7 @@ const Ea = /* @__PURE__ */ N({
|
|
|
204
204
|
function se(B) {
|
|
205
205
|
return r.value ? g.value[B] : !1;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function le(B) {
|
|
208
208
|
const U = e.sceneData.find((ee) => ee.index === B);
|
|
209
209
|
return U && U.unitId;
|
|
210
210
|
}
|
|
@@ -220,7 +220,7 @@ const Ea = /* @__PURE__ */ N({
|
|
|
220
220
|
return [];
|
|
221
221
|
}
|
|
222
222
|
function ge(B) {
|
|
223
|
-
const U =
|
|
223
|
+
const U = le(B);
|
|
224
224
|
be(U);
|
|
225
225
|
}
|
|
226
226
|
function be(B) {
|
|
@@ -758,7 +758,7 @@ const ja = {
|
|
|
758
758
|
transform: t.value
|
|
759
759
|
})
|
|
760
760
|
}, [
|
|
761
|
-
|
|
761
|
+
oe(o.$slots, "default", { isHoverable: o.isHoverable }, void 0, !0)
|
|
762
762
|
], 4)) : (v(), V(s, {
|
|
763
763
|
key: 1,
|
|
764
764
|
value: !0,
|
|
@@ -766,7 +766,7 @@ const ja = {
|
|
|
766
766
|
"onClick:outside": i[0] || (i[0] = (p) => n("outside", p))
|
|
767
767
|
}, {
|
|
768
768
|
default: _(() => [
|
|
769
|
-
|
|
769
|
+
oe(o.$slots, "default", { isHoverable: o.isHoverable }, void 0, !0)
|
|
770
770
|
]),
|
|
771
771
|
_: 3
|
|
772
772
|
}))
|
|
@@ -870,9 +870,9 @@ const ja = {
|
|
|
870
870
|
}
|
|
871
871
|
function S(M) {
|
|
872
872
|
if (m.value) {
|
|
873
|
-
const { x: q, y: K } = A(M), { x: se, y:
|
|
873
|
+
const { x: q, y: K } = A(M), { x: se, y: le } = A(r.value), ie = {
|
|
874
874
|
x: q - se,
|
|
875
|
-
y: K -
|
|
875
|
+
y: K - le
|
|
876
876
|
};
|
|
877
877
|
W(ie.x), G(ie.y), f.value = !0, r.value = M;
|
|
878
878
|
}
|
|
@@ -888,19 +888,19 @@ const ja = {
|
|
|
888
888
|
}
|
|
889
889
|
function X(M) {
|
|
890
890
|
if (m.value) {
|
|
891
|
-
const { x: q, y: K } = A(M.touches[0]), { x: se, y:
|
|
891
|
+
const { x: q, y: K } = A(M.touches[0]), { x: se, y: le } = A(
|
|
892
892
|
r.value.touches[0]
|
|
893
893
|
), ie = {
|
|
894
894
|
x: q - se,
|
|
895
|
-
y: K -
|
|
895
|
+
y: K - le
|
|
896
896
|
};
|
|
897
897
|
W(ie.x), G(ie.y);
|
|
898
898
|
} else if (p.value && M.touches.length === 2) {
|
|
899
|
-
const { x: q, y: K } = A(M.touches[0]), { x: se, y:
|
|
899
|
+
const { x: q, y: K } = A(M.touches[0]), { x: se, y: le } = A(
|
|
900
900
|
r.value.touches[0]
|
|
901
901
|
), { x: ie, y: ge } = A(M.touches[1]), { x: be, y: Me } = A(
|
|
902
902
|
r.value.touches[1]
|
|
903
|
-
), De = Math.hypot(se - be,
|
|
903
|
+
), De = Math.hypot(se - be, le - Me), Ue = Math.hypot(q - ie, K - ge), ye = (ie + q) / 2, ke = (ge + K) / 2;
|
|
904
904
|
re(Ue - De, ye, ke);
|
|
905
905
|
}
|
|
906
906
|
r.value = M;
|
|
@@ -930,10 +930,10 @@ const ja = {
|
|
|
930
930
|
);
|
|
931
931
|
}
|
|
932
932
|
function re(M, q, K) {
|
|
933
|
-
const se = q !== void 0 ? q : k.value.clientWidth / 2,
|
|
933
|
+
const se = q !== void 0 ? q : k.value.clientWidth / 2, le = K !== void 0 ? K : k.value.clientHeight / 2, ie = k.value.clientWidth, ge = k.value.clientHeight, be = ie * d.value, Me = ge * d.value;
|
|
934
934
|
o.value = Math.min(Math.max(100, o.value + M), h.value);
|
|
935
935
|
const De = ie * d.value, Ue = ge * d.value, ye = De - be, ke = Ue - Me;
|
|
936
|
-
i.value -= se / ie * ye, s.value -=
|
|
936
|
+
i.value -= se / ie * ye, s.value -= le / ge * ke, W(0), G(0);
|
|
937
937
|
}
|
|
938
938
|
function j() {
|
|
939
939
|
t("update", {
|
|
@@ -944,7 +944,7 @@ const ja = {
|
|
|
944
944
|
min: 100,
|
|
945
945
|
max: h.value,
|
|
946
946
|
resolve: (M, q) => {
|
|
947
|
-
const K = k.value.clientWidth, se = k.value.clientHeight,
|
|
947
|
+
const K = k.value.clientWidth, se = k.value.clientHeight, le = i.value / -d.value, ie = s.value / -d.value, ge = le + K / d.value, be = ie + se / d.value, Me = M / K * (ge - le) + le, De = q / se * (be - ie) + ie;
|
|
948
948
|
return { x: Me, y: De };
|
|
949
949
|
}
|
|
950
950
|
});
|
|
@@ -959,7 +959,7 @@ const ja = {
|
|
|
959
959
|
style: de({ "transform-origin": "top left", transform: y.value }),
|
|
960
960
|
class: "zoom-box"
|
|
961
961
|
}, [
|
|
962
|
-
|
|
962
|
+
oe(M.$slots, "default", {}, void 0, !0)
|
|
963
963
|
], 4)
|
|
964
964
|
], 4));
|
|
965
965
|
}
|
|
@@ -1131,7 +1131,7 @@ const sn = { key: 0 }, rn = { class: "interactive-viewer" }, un = { class: "fill
|
|
|
1131
1131
|
onPos: z
|
|
1132
1132
|
}, {
|
|
1133
1133
|
default: _((T) => [
|
|
1134
|
-
|
|
1134
|
+
oe(S.$slots, "default", ot(lt(T)), void 0, !0)
|
|
1135
1135
|
]),
|
|
1136
1136
|
_: 3
|
|
1137
1137
|
}, 40, ["cdn-file-resolver", "view-model", "selected-unit-id", "scene-data", "color-callback", "can-go-to-unit-callback", "draw-observer"]))
|
|
@@ -1146,7 +1146,7 @@ const sn = { key: 0 }, rn = { class: "interactive-viewer" }, un = { class: "fill
|
|
|
1146
1146
|
onOutside: f.value
|
|
1147
1147
|
}, {
|
|
1148
1148
|
default: _(() => [
|
|
1149
|
-
|
|
1149
|
+
oe(S.$slots, "default", {
|
|
1150
1150
|
unit: k.value,
|
|
1151
1151
|
canGoToUnit: S.canGoToUnitCallback(k.value),
|
|
1152
1152
|
goToUnit: () => S.canGoToUnitCallback(k.value) && t("goToUnit", k.value),
|
|
@@ -2060,12 +2060,12 @@ const Pn = {
|
|
|
2060
2060
|
} else
|
|
2061
2061
|
K = K.parentElement;
|
|
2062
2062
|
if (se) {
|
|
2063
|
-
const
|
|
2063
|
+
const le = j.currentTarget;
|
|
2064
2064
|
h.value = {
|
|
2065
2065
|
x: M,
|
|
2066
2066
|
y: q,
|
|
2067
|
-
width:
|
|
2068
|
-
height:
|
|
2067
|
+
width: le.clientWidth,
|
|
2068
|
+
height: le.clientHeight
|
|
2069
2069
|
};
|
|
2070
2070
|
} else
|
|
2071
2071
|
h.value = void 0;
|
|
@@ -2179,7 +2179,7 @@ const Pn = {
|
|
|
2179
2179
|
}, {
|
|
2180
2180
|
default: _(() => [
|
|
2181
2181
|
u("div", qn, [
|
|
2182
|
-
|
|
2182
|
+
oe(j.$slots, "popup", ot(lt({ hoverId: p.value, hoverable: d.value })), void 0, !0)
|
|
2183
2183
|
])
|
|
2184
2184
|
]),
|
|
2185
2185
|
_: 3
|
|
@@ -2563,7 +2563,7 @@ const Pn = {
|
|
|
2563
2563
|
onOutside: A[3] || (A[3] = () => s.value = void 0)
|
|
2564
2564
|
}, {
|
|
2565
2565
|
default: _(() => [
|
|
2566
|
-
|
|
2566
|
+
oe(C.$slots, "default", {
|
|
2567
2567
|
building: s.value,
|
|
2568
2568
|
canGoToBuilding: C.canGoToBuildingCallback(s.value),
|
|
2569
2569
|
goToBuilding: () => C.canGoToBuildingCallback(s.value) && n("goToBuilding", s.value),
|
|
@@ -2809,7 +2809,7 @@ const Pn = {
|
|
|
2809
2809
|
onOutside: A[3] || (A[3] = () => f.value = void 0)
|
|
2810
2810
|
}, {
|
|
2811
2811
|
default: _(() => [
|
|
2812
|
-
|
|
2812
|
+
oe(C.$slots, "default", {
|
|
2813
2813
|
building: f.value,
|
|
2814
2814
|
canGoToBuilding: C.canGoToBuildingCallback(f.value),
|
|
2815
2815
|
goToBuilding: () => C.canGoToBuildingCallback(f.value) && n("goToBuilding", f.value),
|
|
@@ -2865,7 +2865,7 @@ const Pn = {
|
|
|
2865
2865
|
he(Object.keys(o.$slots), (s) => ({
|
|
2866
2866
|
name: s,
|
|
2867
2867
|
fn: _((m) => [
|
|
2868
|
-
|
|
2868
|
+
oe(o.$slots, s, ot(lt(m)))
|
|
2869
2869
|
])
|
|
2870
2870
|
}))
|
|
2871
2871
|
]), 1064, ["i18n-config", "show-cards", "color-callback", "cdn-file-resolver", "interactive-desktop", "interactive-mobile", "building-chooser-time-of-day", "can-go-to-building-callback", "custom-overlay-content", "building-chooser-data"]));
|
|
@@ -3448,7 +3448,7 @@ const Yo = {
|
|
|
3448
3448
|
}, {
|
|
3449
3449
|
default: _(() => [
|
|
3450
3450
|
u("div", Go, [
|
|
3451
|
-
|
|
3451
|
+
oe(F.$slots, "popup", ot(lt({ hoverId: s.value, hoverable: r.value })), void 0, !0)
|
|
3452
3452
|
])
|
|
3453
3453
|
]),
|
|
3454
3454
|
_: 3
|
|
@@ -3603,33 +3603,33 @@ const al = { id: "player-wrapper" }, nl = { id: "player-sizer" }, ol = {
|
|
|
3603
3603
|
I();
|
|
3604
3604
|
}), (b, g) => (v(), x("div", al, [
|
|
3605
3605
|
u("div", nl, [
|
|
3606
|
-
|
|
3606
|
+
oe(b.$slots, "slideshow-image", {}, void 0, !0),
|
|
3607
3607
|
u("div", ol, [
|
|
3608
|
-
|
|
3608
|
+
oe(b.$slots, "top-left", {}, void 0, !0)
|
|
3609
3609
|
]),
|
|
3610
3610
|
u("div", ll, [
|
|
3611
|
-
|
|
3611
|
+
oe(b.$slots, "top-center", {}, void 0, !0)
|
|
3612
3612
|
]),
|
|
3613
3613
|
u("div", sl, [
|
|
3614
|
-
|
|
3614
|
+
oe(b.$slots, "top-right", {}, void 0, !0)
|
|
3615
3615
|
]),
|
|
3616
3616
|
u("div", il, [
|
|
3617
|
-
|
|
3617
|
+
oe(b.$slots, "center-left", {}, void 0, !0)
|
|
3618
3618
|
]),
|
|
3619
3619
|
u("div", rl, [
|
|
3620
|
-
|
|
3620
|
+
oe(b.$slots, "center-center", {}, void 0, !0)
|
|
3621
3621
|
]),
|
|
3622
3622
|
u("div", ul, [
|
|
3623
|
-
|
|
3623
|
+
oe(b.$slots, "center-right", {}, void 0, !0)
|
|
3624
3624
|
]),
|
|
3625
3625
|
u("div", cl, [
|
|
3626
|
-
|
|
3626
|
+
oe(b.$slots, "bottom-left", {}, void 0, !0)
|
|
3627
3627
|
]),
|
|
3628
3628
|
u("div", dl, [
|
|
3629
|
-
|
|
3629
|
+
oe(b.$slots, "bottom-center", {}, void 0, !0)
|
|
3630
3630
|
]),
|
|
3631
3631
|
u("div", vl, [
|
|
3632
|
-
|
|
3632
|
+
oe(b.$slots, "bottom-right", {}, void 0, !0)
|
|
3633
3633
|
]),
|
|
3634
3634
|
u("div", ml, [
|
|
3635
3635
|
u("canvas", {
|
|
@@ -4957,19 +4957,19 @@ const al = { id: "player-wrapper" }, nl = { id: "player-sizer" }, ol = {
|
|
|
4957
4957
|
class: fe([i.size, "sizer rounded"])
|
|
4958
4958
|
}, [
|
|
4959
4959
|
u("div", Ys, [
|
|
4960
|
-
|
|
4960
|
+
oe(i.$slots, "top-left", {}, void 0, !0)
|
|
4961
4961
|
]),
|
|
4962
4962
|
u("div", zs, [
|
|
4963
|
-
|
|
4963
|
+
oe(i.$slots, "top-right", {}, void 0, !0)
|
|
4964
4964
|
]),
|
|
4965
4965
|
u("div", Ps, [
|
|
4966
|
-
|
|
4966
|
+
oe(i.$slots, "header", {}, void 0, !0)
|
|
4967
4967
|
]),
|
|
4968
4968
|
u("div", js, [
|
|
4969
|
-
|
|
4969
|
+
oe(i.$slots, "body", {}, void 0, !0)
|
|
4970
4970
|
]),
|
|
4971
4971
|
u("div", Ws, [
|
|
4972
|
-
|
|
4972
|
+
oe(i.$slots, "footer", {}, void 0, !0)
|
|
4973
4973
|
])
|
|
4974
4974
|
], 2));
|
|
4975
4975
|
}
|
|
@@ -5901,12 +5901,12 @@ const Oi = {
|
|
|
5901
5901
|
takeSnapshot: Bt,
|
|
5902
5902
|
setCurrentCamera: rt
|
|
5903
5903
|
});
|
|
5904
|
-
const W = c(!1), G = c(!1), re = c(!1), j = c(), M = c(), q = c(), K = c(), se = c(),
|
|
5904
|
+
const W = c(!1), G = c(!1), re = c(!1), j = c(), M = c(), q = c(), K = c(), se = c(), le = c(0), ie = c(), ge = c(), be = c(), Me = c(0), De = c(0), Ue = c(0), ye = c(!1), ke = c(!1), Ae = c(), Y = c(), B = c(!1), U = c(!1), ee = c(
|
|
5905
5905
|
new qt(document, "player-wrapper")
|
|
5906
5906
|
), me = c(), Fe = $(() => {
|
|
5907
5907
|
if (M.value) {
|
|
5908
5908
|
const L = M.value.cameras.map(
|
|
5909
|
-
(
|
|
5909
|
+
(ne) => ne.floorLevel
|
|
5910
5910
|
);
|
|
5911
5911
|
let Z = [...new Set(L)];
|
|
5912
5912
|
return Z = Z.sort(), Z;
|
|
@@ -5918,9 +5918,9 @@ const Oi = {
|
|
|
5918
5918
|
const Z = M.value.cameras.map(
|
|
5919
5919
|
(je) => je.floorLevel
|
|
5920
5920
|
);
|
|
5921
|
-
let
|
|
5922
|
-
|
|
5923
|
-
const Se =
|
|
5921
|
+
let ne = [...new Set(Z)];
|
|
5922
|
+
ne = ne.sort();
|
|
5923
|
+
const Se = ne.findIndex(
|
|
5924
5924
|
(je) => je === De.value
|
|
5925
5925
|
);
|
|
5926
5926
|
Se !== -1 && (L = Se);
|
|
@@ -5936,17 +5936,21 @@ const Oi = {
|
|
|
5936
5936
|
imageUrl: ut(
|
|
5937
5937
|
`/${ie.value}/${o.value}/images/1600/${L.id}.jpg`
|
|
5938
5938
|
)
|
|
5939
|
-
})) : []), Ft = $(() => !Oe.value || !Oe.value[
|
|
5939
|
+
})) : []), Ft = $(() => !Oe.value || !Oe.value[le.value] ? "" : Oe.value[le.value].imageUrl), Lt = $(() => {
|
|
5940
5940
|
let L = [];
|
|
5941
5941
|
return j.value && (L = j.value.archetypes), s.value.length ? L.filter(
|
|
5942
5942
|
(Z) => s.value.includes(Z.archetypeID)
|
|
5943
5943
|
) : L;
|
|
5944
|
-
}), Mt = $(() => q.value ? Lt.value.map((L) =>
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5944
|
+
}), Mt = $(() => q.value ? Lt.value.map((L) => {
|
|
5945
|
+
var ne;
|
|
5946
|
+
const Z = (ne = Oe.value[le.value]) == null ? void 0 : ne.id;
|
|
5947
|
+
return {
|
|
5948
|
+
...L,
|
|
5949
|
+
url: ut(
|
|
5950
|
+
`/${L.archetypeID}/${o.value}/thumbs/200/${Z}.jpg`
|
|
5951
|
+
)
|
|
5952
|
+
};
|
|
5953
|
+
}) : []), st = $(() => {
|
|
5950
5954
|
if (K.value && K.value.storeys && Ie.value in K.value.storeys)
|
|
5951
5955
|
return K.value.storeys[Ie.value];
|
|
5952
5956
|
}), Jt = $(() => M.value && M.value.timeInHours), Ot = $(() => {
|
|
@@ -6024,7 +6028,7 @@ const Oi = {
|
|
|
6024
6028
|
o.value
|
|
6025
6029
|
), q.value) {
|
|
6026
6030
|
const Z = z.value !== null ? z.value : 0;
|
|
6027
|
-
|
|
6031
|
+
le.value = Z, ge.value = q.value.cameras[Z].id, be.value = q.value.cameras[Z].id;
|
|
6028
6032
|
}
|
|
6029
6033
|
b.value && (K.value = await ra(
|
|
6030
6034
|
ie.value,
|
|
@@ -6038,8 +6042,8 @@ const Oi = {
|
|
|
6038
6042
|
function oa() {
|
|
6039
6043
|
const L = document.getElementById("main-canvas");
|
|
6040
6044
|
L.addEventListener("touchmove", Z, { passive: !1 });
|
|
6041
|
-
function Z(
|
|
6042
|
-
|
|
6045
|
+
function Z(ne) {
|
|
6046
|
+
ne.preventDefault(), window.scrollBy(0, 0);
|
|
6043
6047
|
}
|
|
6044
6048
|
L.addEventListener(
|
|
6045
6049
|
"mouseenter",
|
|
@@ -6077,11 +6081,11 @@ const Oi = {
|
|
|
6077
6081
|
return await ct(
|
|
6078
6082
|
`/${L}/${Z}/apartment.json`
|
|
6079
6083
|
);
|
|
6080
|
-
} catch (
|
|
6084
|
+
} catch (ne) {
|
|
6081
6085
|
console.error(
|
|
6082
6086
|
"Error loading apartment.json - ",
|
|
6083
6087
|
`/${L}/${Z}/apartment.json`,
|
|
6084
|
-
|
|
6088
|
+
ne
|
|
6085
6089
|
);
|
|
6086
6090
|
return;
|
|
6087
6091
|
}
|
|
@@ -6113,16 +6117,16 @@ const Oi = {
|
|
|
6113
6117
|
}
|
|
6114
6118
|
}
|
|
6115
6119
|
function it() {
|
|
6116
|
-
let L =
|
|
6117
|
-
L >= Oe.value.length && (L = 0),
|
|
6120
|
+
let L = le.value + 1;
|
|
6121
|
+
L >= Oe.value.length && (L = 0), le.value = L, rt(Oe.value[le.value].id);
|
|
6118
6122
|
}
|
|
6119
6123
|
function yt() {
|
|
6120
|
-
let L =
|
|
6121
|
-
L < 0 && (L = Oe.value.length - 1),
|
|
6124
|
+
let L = le.value - 1;
|
|
6125
|
+
L < 0 && (L = Oe.value.length - 1), le.value = L, rt(Oe.value[le.value].id);
|
|
6122
6126
|
}
|
|
6123
6127
|
function _t(L, Z = !0) {
|
|
6124
|
-
let
|
|
6125
|
-
|
|
6128
|
+
let ne = Oe.value.findIndex((Se) => Se.id === L);
|
|
6129
|
+
ne != -1 && (le.value = ne, Z && rt(L));
|
|
6126
6130
|
}
|
|
6127
6131
|
function rt(L) {
|
|
6128
6132
|
B.value = !1, ge.value = L;
|
|
@@ -6134,7 +6138,7 @@ const Oi = {
|
|
|
6134
6138
|
be.value = L, be.value && (_t(be.value, !1), A("onCameraUpdate", be.value, M.value));
|
|
6135
6139
|
}
|
|
6136
6140
|
function ca(L) {
|
|
6137
|
-
Y.value = L, A("onSunsimUpdate", L);
|
|
6141
|
+
Y.value = L, console.log("Sun sim data availability -> ", L), A("onSunsimUpdate", L);
|
|
6138
6142
|
}
|
|
6139
6143
|
function da(L) {
|
|
6140
6144
|
se.value.loadSunSim(L.timeInHours);
|
|
@@ -6160,10 +6164,10 @@ const Oi = {
|
|
|
6160
6164
|
ye.value = !ye.value;
|
|
6161
6165
|
}
|
|
6162
6166
|
async function Bt() {
|
|
6163
|
-
const L = 180 / Math.PI, Z = await se.value.takePhoto(),
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
+
const L = 180 / Math.PI, Z = await se.value.takePhoto(), ne = se.value.getRotationEuler(), Se = se.value.getCurrentCamera(), je = new Yn(Z, Se), wa = [
|
|
6168
|
+
ne.x * -L,
|
|
6169
|
+
ne.y * -L,
|
|
6170
|
+
ne.z * L
|
|
6167
6171
|
];
|
|
6168
6172
|
return A("onSnapshot", je, wa), je;
|
|
6169
6173
|
}
|
|
@@ -6175,8 +6179,8 @@ const Oi = {
|
|
|
6175
6179
|
const Z = ut(L);
|
|
6176
6180
|
try {
|
|
6177
6181
|
return (await Ct.get(Z)).data;
|
|
6178
|
-
} catch (
|
|
6179
|
-
throw new Error(
|
|
6182
|
+
} catch (ne) {
|
|
6183
|
+
throw new Error(ne);
|
|
6180
6184
|
}
|
|
6181
6185
|
}
|
|
6182
6186
|
function ya(L) {
|
|
@@ -6188,8 +6192,8 @@ const Oi = {
|
|
|
6188
6192
|
function ba(L) {
|
|
6189
6193
|
if (L === void 0)
|
|
6190
6194
|
return null;
|
|
6191
|
-
const Z = Math.floor(L),
|
|
6192
|
-
return { hours: Z, minutes:
|
|
6195
|
+
const Z = Math.floor(L), ne = Math.floor((Z - L) * 60);
|
|
6196
|
+
return { hours: Z, minutes: ne };
|
|
6193
6197
|
}
|
|
6194
6198
|
const Pe = c(!1), $t = c(null), bt = c(1), Ca = () => {
|
|
6195
6199
|
if (Pe.value) {
|
|
@@ -6201,7 +6205,7 @@ const Oi = {
|
|
|
6201
6205
|
}, 5e3);
|
|
6202
6206
|
};
|
|
6203
6207
|
return (L, Z) => {
|
|
6204
|
-
const
|
|
6208
|
+
const ne = E("v-btn");
|
|
6205
6209
|
return v(), x("div", {
|
|
6206
6210
|
class: fe(["virtual-tour-wrapper", [Et.value]])
|
|
6207
6211
|
}, [
|
|
@@ -6246,7 +6250,7 @@ const Oi = {
|
|
|
6246
6250
|
}, null, 8, ["image"])) : R("", !0)
|
|
6247
6251
|
]),
|
|
6248
6252
|
"top-left": _(() => [
|
|
6249
|
-
D(S) ? pe((v(), V(
|
|
6253
|
+
D(S) ? pe((v(), V(ne, {
|
|
6250
6254
|
key: 0,
|
|
6251
6255
|
density: "comfortable",
|
|
6252
6256
|
icon: "mdi-cog-outline",
|
|
@@ -6256,7 +6260,7 @@ const Oi = {
|
|
|
6256
6260
|
}, null, 512)), [
|
|
6257
6261
|
[_e, U.value]
|
|
6258
6262
|
]) : R("", !0),
|
|
6259
|
-
pe(w(
|
|
6263
|
+
pe(w(ne, {
|
|
6260
6264
|
density: "comfortable",
|
|
6261
6265
|
icon: "mdi-alert-outline",
|
|
6262
6266
|
elevation: "3",
|
|
@@ -6265,7 +6269,7 @@ const Oi = {
|
|
|
6265
6269
|
}, null, 512), [
|
|
6266
6270
|
[_e, U.value]
|
|
6267
6271
|
]),
|
|
6268
|
-
K.value && ge.value && st.value ? pe((v(), V(
|
|
6272
|
+
K.value && ge.value && st.value ? pe((v(), V(ne, {
|
|
6269
6273
|
key: 1,
|
|
6270
6274
|
density: "comfortable",
|
|
6271
6275
|
elevation: "3",
|
|
@@ -6281,7 +6285,7 @@ const Oi = {
|
|
|
6281
6285
|
"floor-levels": Fe.value,
|
|
6282
6286
|
onLevel: Tt
|
|
6283
6287
|
}, null, 8, ["level", "floor-levels"])) : R("", !0),
|
|
6284
|
-
ge.value && Y.value && Y.value.length > 0 && Y.value[0].timeSamples.length > 1 ? pe((v(), V(
|
|
6288
|
+
ge.value && Y.value && Y.value.length > 0 && Y.value[0].timeSamples.length > 1 ? pe((v(), V(ne, {
|
|
6285
6289
|
key: 3,
|
|
6286
6290
|
density: "comfortable",
|
|
6287
6291
|
elevation: "3",
|
|
@@ -6329,7 +6333,7 @@ const Oi = {
|
|
|
6329
6333
|
"center-left": _(() => [
|
|
6330
6334
|
w(Re, { name: "slide-x-transition" }, {
|
|
6331
6335
|
default: _(() => [
|
|
6332
|
-
ye.value ? (v(), V(
|
|
6336
|
+
ye.value ? (v(), V(ne, {
|
|
6333
6337
|
key: 0,
|
|
6334
6338
|
density: "comfortable",
|
|
6335
6339
|
elevation: "3",
|
|
@@ -6359,7 +6363,7 @@ const Oi = {
|
|
|
6359
6363
|
"center-right": _(() => [
|
|
6360
6364
|
w(Re, { name: "slide-x-reverse-transition" }, {
|
|
6361
6365
|
default: _(() => [
|
|
6362
|
-
ye.value ? (v(), V(
|
|
6366
|
+
ye.value ? (v(), V(ne, {
|
|
6363
6367
|
key: 0,
|
|
6364
6368
|
density: "comfortable",
|
|
6365
6369
|
elevation: "3",
|
|
@@ -6378,7 +6382,7 @@ const Oi = {
|
|
|
6378
6382
|
onToggleFullscreen: ha
|
|
6379
6383
|
}, null, 8, ["is-full-screen"])) : R("", !0),
|
|
6380
6384
|
U.value && D(d) ? (v(), x("div", Bi, [
|
|
6381
|
-
w(
|
|
6385
|
+
w(ne, {
|
|
6382
6386
|
density: "comfortable",
|
|
6383
6387
|
elevation: "3",
|
|
6384
6388
|
icon: "mdi-camera",
|
|
@@ -6404,7 +6408,7 @@ const Oi = {
|
|
|
6404
6408
|
"mb-2": !et.value
|
|
6405
6409
|
}])
|
|
6406
6410
|
}, [
|
|
6407
|
-
w(
|
|
6411
|
+
w(ne, {
|
|
6408
6412
|
size: "x-small",
|
|
6409
6413
|
varient: "tonal",
|
|
6410
6414
|
onClick: Z[8] || (Z[8] = (Se) => Ca()),
|
|
@@ -6412,7 +6416,7 @@ const Oi = {
|
|
|
6412
6416
|
}, {
|
|
6413
6417
|
default: _(() => [
|
|
6414
6418
|
te(Q(Pe.value ? "Pause" : "Play") + " ", 1),
|
|
6415
|
-
Pe.value && !et.value ? (v(), x("span", Hi, Q(`${
|
|
6419
|
+
Pe.value && !et.value ? (v(), x("span", Hi, Q(`${le.value + 1}/${Oe.value.length}`), 1)) : R("", !0)
|
|
6416
6420
|
]),
|
|
6417
6421
|
_: 1
|
|
6418
6422
|
}, 8, ["prependIcon"])
|
|
@@ -6421,7 +6425,7 @@ const Oi = {
|
|
|
6421
6425
|
key: 1,
|
|
6422
6426
|
class: fe([ee.value.isActive ? "full-screen" : ""]),
|
|
6423
6427
|
thumbnails: Oe.value,
|
|
6424
|
-
active:
|
|
6428
|
+
active: le.value,
|
|
6425
6429
|
onNext: it,
|
|
6426
6430
|
onPrevious: yt,
|
|
6427
6431
|
onGoto: _t
|
|
@@ -6445,7 +6449,7 @@ const Oi = {
|
|
|
6445
6449
|
key: 0,
|
|
6446
6450
|
class: "waypoint-carousel below-player",
|
|
6447
6451
|
thumbnails: Oe.value,
|
|
6448
|
-
active:
|
|
6452
|
+
active: le.value,
|
|
6449
6453
|
onNext: it,
|
|
6450
6454
|
onPrevious: yt,
|
|
6451
6455
|
onGoto: _t
|
|
@@ -6456,7 +6460,7 @@ const Oi = {
|
|
|
6456
6460
|
], 2);
|
|
6457
6461
|
};
|
|
6458
6462
|
}
|
|
6459
|
-
}), ji = /* @__PURE__ */ ae(Pi, [["__scopeId", "data-v-
|
|
6463
|
+
}), ji = /* @__PURE__ */ ae(Pi, [["__scopeId", "data-v-7cc585aa"]]), Wi = { id: "player-wrapper" }, Ni = { id: "player-sizer" }, Gi = {
|
|
6460
6464
|
class: "player-control",
|
|
6461
6465
|
id: "controls-top-left"
|
|
6462
6466
|
}, Qi = {
|
|
@@ -6492,33 +6496,33 @@ const Oi = {
|
|
|
6492
6496
|
setup(l, { emit: a }) {
|
|
6493
6497
|
return (e, n) => (v(), x("div", Wi, [
|
|
6494
6498
|
u("div", Ni, [
|
|
6495
|
-
|
|
6499
|
+
oe(e.$slots, "slideshow-image", {}, void 0, !0),
|
|
6496
6500
|
u("div", Gi, [
|
|
6497
|
-
|
|
6501
|
+
oe(e.$slots, "top-left", {}, void 0, !0)
|
|
6498
6502
|
]),
|
|
6499
6503
|
u("div", Qi, [
|
|
6500
|
-
|
|
6504
|
+
oe(e.$slots, "top-center", {}, void 0, !0)
|
|
6501
6505
|
]),
|
|
6502
6506
|
u("div", Zi, [
|
|
6503
|
-
|
|
6507
|
+
oe(e.$slots, "top-right", {}, void 0, !0)
|
|
6504
6508
|
]),
|
|
6505
6509
|
u("div", qi, [
|
|
6506
|
-
|
|
6510
|
+
oe(e.$slots, "center-left", {}, void 0, !0)
|
|
6507
6511
|
]),
|
|
6508
6512
|
u("div", Ji, [
|
|
6509
|
-
|
|
6513
|
+
oe(e.$slots, "center-center", {}, void 0, !0)
|
|
6510
6514
|
]),
|
|
6511
6515
|
u("div", Xi, [
|
|
6512
|
-
|
|
6516
|
+
oe(e.$slots, "center-right", {}, void 0, !0)
|
|
6513
6517
|
]),
|
|
6514
6518
|
u("div", Ki, [
|
|
6515
|
-
|
|
6519
|
+
oe(e.$slots, "bottom-left", {}, void 0, !0)
|
|
6516
6520
|
]),
|
|
6517
6521
|
u("div", er, [
|
|
6518
|
-
|
|
6522
|
+
oe(e.$slots, "bottom-center", {}, void 0, !0)
|
|
6519
6523
|
]),
|
|
6520
6524
|
u("div", tr, [
|
|
6521
|
-
|
|
6525
|
+
oe(e.$slots, "bottom-right", {}, void 0, !0)
|
|
6522
6526
|
])
|
|
6523
6527
|
])
|
|
6524
6528
|
]));
|
|
@@ -7555,7 +7559,7 @@ const zr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, jr = {
|
|
|
7555
7559
|
function se(Y) {
|
|
7556
7560
|
const B = I.value;
|
|
7557
7561
|
h.value = Y, xe(() => {
|
|
7558
|
-
|
|
7562
|
+
le(
|
|
7559
7563
|
h.value.timeSamples.find(
|
|
7560
7564
|
(U) => U.timeInHours === B.timeInHours
|
|
7561
7565
|
) || h.value.timeSamples.find(
|
|
@@ -7564,7 +7568,7 @@ const zr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, jr = {
|
|
|
7564
7568
|
);
|
|
7565
7569
|
});
|
|
7566
7570
|
}
|
|
7567
|
-
function
|
|
7571
|
+
function le(Y) {
|
|
7568
7572
|
I.value = Y;
|
|
7569
7573
|
}
|
|
7570
7574
|
function ie(Y) {
|
|
@@ -7769,7 +7773,7 @@ const zr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, jr = {
|
|
|
7769
7773
|
"current-day": h.value,
|
|
7770
7774
|
"current-time": I.value,
|
|
7771
7775
|
disabled: P.value,
|
|
7772
|
-
onOnTimeChange:
|
|
7776
|
+
onOnTimeChange: le
|
|
7773
7777
|
}, null, 8, ["is-mobile-sized", "current-day", "current-time", "disabled"])
|
|
7774
7778
|
], 2)) : R("", !0),
|
|
7775
7779
|
Y.$slots.popup && J.value && z.value ? (v(), V(qe, {
|
|
@@ -7779,7 +7783,7 @@ const zr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, jr = {
|
|
|
7779
7783
|
}, {
|
|
7780
7784
|
default: _(() => [
|
|
7781
7785
|
u("div", Pr, [
|
|
7782
|
-
|
|
7786
|
+
oe(Y.$slots, "popup", ot(lt({ hoverId: z.value, hoverable: F.value })), void 0, !0)
|
|
7783
7787
|
])
|
|
7784
7788
|
]),
|
|
7785
7789
|
_: 3
|