@qispace/vue3-player 0.2.6 → 0.2.7
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,8 +1,8 @@
|
|
|
1
1
|
var jt = Object.defineProperty;
|
|
2
2
|
var Pt = (l, a, e) => a in l ? jt(l, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[a] = e;
|
|
3
3
|
var re = (l, a, e) => (Pt(l, typeof a != "symbol" ? a + "" : a, e), e);
|
|
4
|
-
import { defineComponent as j, ref as p, computed as O, openBlock as m, createElementBlock as A, watch as H, onMounted as ye, onBeforeUnmount as Ye, withDirectives as pe, createElementVNode as d, normalizeStyle as ue, vShow as ge, createVNode as b, Fragment as ie, renderList as ve, createCommentVNode as $, inject as Ge, resolveComponent as
|
|
5
|
-
import
|
|
4
|
+
import { defineComponent as j, ref as p, computed as O, openBlock as m, createElementBlock as A, watch as H, onMounted as ye, onBeforeUnmount as Ye, withDirectives as pe, createElementVNode as d, normalizeStyle as ue, vShow as ge, createVNode as b, Fragment as ie, renderList as ve, createCommentVNode as $, inject as Ge, resolveComponent as T, withCtx as _, toDisplayString as G, unref as V, createTextVNode as ee, normalizeClass as he, createBlock as E, renderSlot as se, provide as Qe, reactive as st, watchEffect as xe, resolveDynamicComponent as xt, normalizeProps as tt, guardReactiveProps as nt, mergeProps as Se, nextTick as ke, Transition as Ee, createSlots as Wt, pushScopeId as rt, popScopeId as it, vModelText as Nt, createStaticVNode as At, onBeforeUpdate as Gt, toRefs as Oe } from "vue";
|
|
5
|
+
import mt from "axios";
|
|
6
6
|
import * as Qt from "@qispace/player-core";
|
|
7
7
|
import * as He from "three";
|
|
8
8
|
class Ce {
|
|
@@ -19,10 +19,10 @@ class Ce {
|
|
|
19
19
|
return new Ce().loadImageData(a);
|
|
20
20
|
}
|
|
21
21
|
async loadText(a) {
|
|
22
|
-
return (await
|
|
22
|
+
return (await mt.get(a)).data;
|
|
23
23
|
}
|
|
24
24
|
async loadJson(a) {
|
|
25
|
-
return (await
|
|
25
|
+
return (await mt.get(a)).data;
|
|
26
26
|
}
|
|
27
27
|
async loadImage(a) {
|
|
28
28
|
return new Promise((e, t) => {
|
|
@@ -76,18 +76,18 @@ const qt = /* @__PURE__ */ j({
|
|
|
76
76
|
},
|
|
77
77
|
emits: ["selectUnit", "goToUnit", "hoverOver", "hoverOut", "pos"],
|
|
78
78
|
setup(l, { emit: a }) {
|
|
79
|
-
const e = l, t = a, n = p({ x: 0, y: 0, width: 0, height: 0 }), o = p(0), i = p(0), s = p(), v = p(), u = p(), r = p(), h = p(-1), k = p(!1), f = p(), c = p(), g = p({}),
|
|
79
|
+
const e = l, t = a, n = p({ x: 0, y: 0, width: 0, height: 0 }), o = p(0), i = p(0), s = p(), v = p(), u = p(), r = p(), h = p(-1), k = p(!1), f = p(), c = p(), g = p({}), S = p("auto"), I = p(new Ce()), y = p({}), R = p(), F = p(), Y = p(), D = p(), C = p(), W = O(() => Y.value.isHoverEnabled), L = O(() => ce(
|
|
80
80
|
e.cdnFileResolver,
|
|
81
81
|
`/scenedata${e.viewModel.currentScene}.png`
|
|
82
82
|
)), Z = O(() => L.value in g.value ? g.value[L.value] : null), w = O(() => h.value < 0 ? !1 : e.sceneData.find((N) => N.index === h.value) || !1), M = O(() => ({
|
|
83
83
|
width: o.value + "px",
|
|
84
84
|
height: i.value + "px",
|
|
85
|
-
cursor:
|
|
85
|
+
cursor: S.value
|
|
86
86
|
})), q = O(() => `hover-${k.value ? "over" : "out"}-${w.value ? typeof w.value == "object" && "unitId" in w.value ? w.value.unitId : w.value : ""}`);
|
|
87
87
|
H(
|
|
88
88
|
L,
|
|
89
89
|
() => {
|
|
90
|
-
g.value[L.value] ||
|
|
90
|
+
g.value[L.value] || I.value.loadImageData(L.value).then((z) => {
|
|
91
91
|
g.value = {
|
|
92
92
|
...g.value,
|
|
93
93
|
[L.value]: z
|
|
@@ -113,7 +113,7 @@ const qt = /* @__PURE__ */ j({
|
|
|
113
113
|
be();
|
|
114
114
|
}
|
|
115
115
|
), H(w, () => {
|
|
116
|
-
be(), w.value ?
|
|
116
|
+
be(), w.value ? S.value = "pointer" : S.value = "auto";
|
|
117
117
|
}), H(q, () => {
|
|
118
118
|
k.value ? t("hoverOver", {
|
|
119
119
|
hoverUnit: w.value ? w.value.unitId : !1,
|
|
@@ -359,11 +359,11 @@ const qt = /* @__PURE__ */ j({
|
|
|
359
359
|
function g(F) {
|
|
360
360
|
h.value && (o.value = -1);
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function S(F) {
|
|
363
363
|
const Y = f(F);
|
|
364
364
|
t("selectUnit", Y), h.value && Y && e.canGoToUnitCallback(Y) ? t("goToUnit", Y) : o.value = F;
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function I(F) {
|
|
367
367
|
const Y = f(F);
|
|
368
368
|
let D = "idle";
|
|
369
369
|
o.value < 0 && e.selectedUnitId && Y === e.selectedUnitId ? D = "selected" : o.value >= 0 && o.value === F && (D = "hover");
|
|
@@ -412,10 +412,10 @@ const qt = /* @__PURE__ */ j({
|
|
|
412
412
|
(m(!0), A(ie, null, ve(s.value.svgObjects, ({ index: D, svg: C }) => (m(), A("g", {
|
|
413
413
|
key: D,
|
|
414
414
|
innerHTML: C,
|
|
415
|
-
style: ue(
|
|
415
|
+
style: ue(I(D)),
|
|
416
416
|
onMouseenter: (W) => c(D),
|
|
417
417
|
onMouseleave: (W) => g(),
|
|
418
|
-
onClick: (W) =>
|
|
418
|
+
onClick: (W) => S(D)
|
|
419
419
|
}, null, 44, Kt))), 128))
|
|
420
420
|
], 8, Xt)) : $("", !0)
|
|
421
421
|
], 4), [
|
|
@@ -452,7 +452,7 @@ const qt = /* @__PURE__ */ j({
|
|
|
452
452
|
u.keyCode === 37 ? e.prevUnitId && i("prevUnit") : u.keyCode === 39 && e.nextUnitId && i("nextUnit");
|
|
453
453
|
}
|
|
454
454
|
return (u, r) => {
|
|
455
|
-
const h =
|
|
455
|
+
const h = T("v-btn");
|
|
456
456
|
return m(), A("div", null, [
|
|
457
457
|
b(h, {
|
|
458
458
|
elevation: "1",
|
|
@@ -477,7 +477,7 @@ const qt = /* @__PURE__ */ j({
|
|
|
477
477
|
onClick: r[2] || (r[2] = (k) => i("goToUnit", t.value))
|
|
478
478
|
}, {
|
|
479
479
|
default: _(() => [
|
|
480
|
-
t.value && u.canGoToUnitCallback(t.value) ? (m(), A("span", nn, G(
|
|
480
|
+
t.value && u.canGoToUnitCallback(t.value) ? (m(), A("span", nn, G(V(s).getLabel("seeApartment")) + " ", 1)) : $("", !0),
|
|
481
481
|
d("span", an, G(t.value ? e.unitRenderer(t.value) : "-"), 1)
|
|
482
482
|
]),
|
|
483
483
|
_: 1
|
|
@@ -501,7 +501,7 @@ const qt = /* @__PURE__ */ j({
|
|
|
501
501
|
};
|
|
502
502
|
}
|
|
503
503
|
}), ln = /* @__PURE__ */ K(on, [["__scopeId", "data-v-44ed308e"]]);
|
|
504
|
-
class
|
|
504
|
+
class pt {
|
|
505
505
|
constructor(a) {
|
|
506
506
|
re(this, "_numParts");
|
|
507
507
|
re(this, "_loadedCount");
|
|
@@ -539,7 +539,7 @@ class ft {
|
|
|
539
539
|
return Math.round(this._loadedCount * 100 / this._numParts);
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
class
|
|
542
|
+
class gt {
|
|
543
543
|
constructor(a, e, t, n) {
|
|
544
544
|
re(this, "_rotator");
|
|
545
545
|
re(this, "_direction");
|
|
@@ -557,7 +557,7 @@ class yt {
|
|
|
557
557
|
const a = this._rotator.clampFrameIndex(
|
|
558
558
|
this._frameIndex + this._direction
|
|
559
559
|
), e = this._rotator.isCardinalFrame(a) ? this._sceneCount - 1 : this._sceneCount;
|
|
560
|
-
return new
|
|
560
|
+
return new gt(
|
|
561
561
|
this._rotator,
|
|
562
562
|
this._direction,
|
|
563
563
|
a,
|
|
@@ -573,7 +573,7 @@ class sn {
|
|
|
573
573
|
}
|
|
574
574
|
start(a, e, t) {
|
|
575
575
|
const n = this.startFrameIndexForScene(e);
|
|
576
|
-
return new
|
|
576
|
+
return new gt(this, a, n, t);
|
|
577
577
|
}
|
|
578
578
|
isCardinalFrame(a) {
|
|
579
579
|
return this._cardinalFrames.includes(a);
|
|
@@ -598,7 +598,7 @@ const rn = {
|
|
|
598
598
|
key: 2,
|
|
599
599
|
id: "image-stack",
|
|
600
600
|
class: "frame-container"
|
|
601
|
-
}, pn = ["alt"], fn = ["srcset"], hn = ["src"],
|
|
601
|
+
}, pn = ["alt"], fn = ["srcset"], hn = ["src"], kt = 64, Ke = 4, gn = 120, yn = /* @__PURE__ */ j({
|
|
602
602
|
__name: "VApartmentChooserRotator",
|
|
603
603
|
props: {
|
|
604
604
|
viewModel: {},
|
|
@@ -609,56 +609,56 @@ const rn = {
|
|
|
609
609
|
emits: ["loaded", "error", "progress"],
|
|
610
610
|
setup(l, { emit: a }) {
|
|
611
611
|
const e = l, t = a, n = f(), o = p(
|
|
612
|
-
new
|
|
612
|
+
new pt(n.length).onLoadFinished(() => t("loaded")).onLoadProgress((I) => t("progress", I)).onLoadError(() => t("error"))
|
|
613
613
|
), i = p(
|
|
614
|
-
new sn(e.cardinalFrames,
|
|
615
|
-
), s = p(n), v = p(!1), u = O(() => s.value.find((
|
|
614
|
+
new sn(e.cardinalFrames, kt)
|
|
615
|
+
), s = p(n), v = p(!1), u = O(() => s.value.find((I) => I.show));
|
|
616
616
|
H(
|
|
617
617
|
() => e.viewModel.currentScene,
|
|
618
|
-
(
|
|
619
|
-
const R =
|
|
618
|
+
(I, y) => {
|
|
619
|
+
const R = S(y, I), F = g(y, I);
|
|
620
620
|
r(y, R, F);
|
|
621
621
|
}
|
|
622
622
|
), ye(() => {
|
|
623
623
|
k();
|
|
624
624
|
});
|
|
625
|
-
function r(
|
|
625
|
+
function r(I, y, R) {
|
|
626
626
|
e.viewModel.isRotating || (e.viewModel.isRotating = !0, h(
|
|
627
627
|
i.value.start(
|
|
628
628
|
y,
|
|
629
|
-
|
|
629
|
+
I % Ke,
|
|
630
630
|
R
|
|
631
631
|
)
|
|
632
632
|
));
|
|
633
633
|
}
|
|
634
|
-
function h(
|
|
634
|
+
function h(I) {
|
|
635
635
|
setTimeout(() => {
|
|
636
|
-
s.value[
|
|
637
|
-
const y =
|
|
636
|
+
s.value[I.frameIndex].show = !1;
|
|
637
|
+
const y = I.nextFrame();
|
|
638
638
|
s.value[y.frameIndex].show = !0, y.atEnd ? k() : window.requestAnimationFrame(() => h(y));
|
|
639
639
|
}, 1e3 / gn);
|
|
640
640
|
}
|
|
641
641
|
function k() {
|
|
642
|
-
const
|
|
642
|
+
const I = i.value.startFrameIndexForScene(
|
|
643
643
|
e.viewModel.currentScene % Ke
|
|
644
644
|
);
|
|
645
|
-
|
|
645
|
+
I in s.value && (s.value[I].show = !0), e.viewModel.isRotating = !1;
|
|
646
646
|
}
|
|
647
647
|
function f() {
|
|
648
|
-
const
|
|
649
|
-
for (let y = 0; y <
|
|
648
|
+
const I = [];
|
|
649
|
+
for (let y = 0; y < kt; y++) {
|
|
650
650
|
const { sourceSet: R, defaultPath: F } = c(y);
|
|
651
|
-
|
|
651
|
+
I.push({
|
|
652
652
|
index: y,
|
|
653
653
|
sourceSet: R,
|
|
654
654
|
defaultPath: F,
|
|
655
655
|
show: !1
|
|
656
656
|
});
|
|
657
657
|
}
|
|
658
|
-
return
|
|
658
|
+
return I;
|
|
659
659
|
}
|
|
660
|
-
function c(
|
|
661
|
-
const y = ("0000" + (
|
|
660
|
+
function c(I) {
|
|
661
|
+
const y = ("0000" + (I + 1)).slice(-4), R = e.build ? `?v=${e.build}` : "", F = [
|
|
662
662
|
`${ce(
|
|
663
663
|
e.cdnFileResolver,
|
|
664
664
|
`/480/${y}.jpg${R}`
|
|
@@ -677,18 +677,18 @@ const rn = {
|
|
|
677
677
|
);
|
|
678
678
|
return { sourceSet: F, defaultPath: Y };
|
|
679
679
|
}
|
|
680
|
-
function g(
|
|
681
|
-
const R = Ke / 2, F = Math.abs(
|
|
680
|
+
function g(I, y) {
|
|
681
|
+
const R = Ke / 2, F = Math.abs(I - y);
|
|
682
682
|
return F > R ? Ke - F : F;
|
|
683
683
|
}
|
|
684
|
-
function I
|
|
685
|
-
if (
|
|
684
|
+
function S(I, y) {
|
|
685
|
+
if (I === y)
|
|
686
686
|
return 0;
|
|
687
|
-
const F = Math.abs(
|
|
688
|
-
return F &&
|
|
687
|
+
const F = Math.abs(I - y) < Ke / 2;
|
|
688
|
+
return F && I < y || !F && I > y ? 1 : -1;
|
|
689
689
|
}
|
|
690
|
-
return (
|
|
691
|
-
const R =
|
|
690
|
+
return (I, y) => {
|
|
691
|
+
const R = T("v-icon");
|
|
692
692
|
return m(), A("div", null, [
|
|
693
693
|
o.value.isError ? (m(), A("div", rn, [
|
|
694
694
|
b(R, { "x-large": "" }, {
|
|
@@ -743,7 +743,7 @@ const rn = {
|
|
|
743
743
|
return e.pos.x <= e.pos.width / 2 ? (o = "-100%", s = "-8px") : (o = "0%", s = "8px"), e.pos.y <= e.pos.height / 2 ? (i = "-100%", v = "-8px") : (i = "0%", v = "8px"), `translate(${o}, ${i}) translate(${s}, ${v})`;
|
|
744
744
|
});
|
|
745
745
|
return (o, i) => {
|
|
746
|
-
const s =
|
|
746
|
+
const s = T("v-dialog"), v = T("v-fade-transition");
|
|
747
747
|
return m(), E(v, {
|
|
748
748
|
origin: `top left ${o.pos.x} ${o.pos.y}`
|
|
749
749
|
}, {
|
|
@@ -801,19 +801,19 @@ const rn = {
|
|
|
801
801
|
), H(
|
|
802
802
|
() => t.desktop,
|
|
803
803
|
() => {
|
|
804
|
-
t.desktop ?
|
|
804
|
+
t.desktop ? S() : y();
|
|
805
805
|
}
|
|
806
806
|
), H(
|
|
807
807
|
() => t.mobile,
|
|
808
808
|
() => {
|
|
809
|
-
t.mobile ?
|
|
809
|
+
t.mobile ? I() : R();
|
|
810
810
|
}
|
|
811
811
|
), ye(() => {
|
|
812
|
-
t.desktop &&
|
|
812
|
+
t.desktop && S(), t.mobile && I();
|
|
813
813
|
}), Ye(() => {
|
|
814
814
|
t.desktop && y(), t.mobile && R();
|
|
815
815
|
});
|
|
816
|
-
function
|
|
816
|
+
function S() {
|
|
817
817
|
k.value.addEventListener("wheel", F, {
|
|
818
818
|
capture: !0
|
|
819
819
|
}), k.value.addEventListener("mousedown", Y, {
|
|
@@ -826,7 +826,7 @@ const rn = {
|
|
|
826
826
|
capture: !0
|
|
827
827
|
});
|
|
828
828
|
}
|
|
829
|
-
function
|
|
829
|
+
function I() {
|
|
830
830
|
k.value.addEventListener("touchstart", L, {
|
|
831
831
|
capture: !0
|
|
832
832
|
}), k.value.addEventListener("touchmove", Z, {
|
|
@@ -963,12 +963,12 @@ const rn = {
|
|
|
963
963
|
], 4)
|
|
964
964
|
], 4));
|
|
965
965
|
}
|
|
966
|
-
}), qe = /* @__PURE__ */ K(Cn, [["__scopeId", "data-v-3e334a46"]]),
|
|
966
|
+
}), qe = /* @__PURE__ */ K(Cn, [["__scopeId", "data-v-3e334a46"]]), yt = 4;
|
|
967
967
|
function Ft(l) {
|
|
968
|
-
return l <
|
|
968
|
+
return l < yt ? l + 1 : 1;
|
|
969
969
|
}
|
|
970
970
|
function kn(l) {
|
|
971
|
-
return l > 1 ? l - 1 :
|
|
971
|
+
return l > 1 ? l - 1 : yt;
|
|
972
972
|
}
|
|
973
973
|
class wn {
|
|
974
974
|
constructor(a) {
|
|
@@ -1198,10 +1198,10 @@ const Sn = { key: 0 }, Dn = { class: "interactive-viewer" }, xn = { class: "fill
|
|
|
1198
1198
|
Le,
|
|
1199
1199
|
t.i18nConfig ? new Fe(t.i18nConfig) : new Fe()
|
|
1200
1200
|
);
|
|
1201
|
-
const o = st({ isReady: !1, isError: !1 }), i = p(), s = p(), v = p(), u = p(), r = p({ x: 0, y: 0, width: 0, height: 0 }), h = p(), k = p(), f = p(), c = O(() => f.value.isHoverEnabled), g = O(() => t.useSvg ? tn : Jt),
|
|
1201
|
+
const o = st({ isReady: !1, isError: !1 }), i = p(), s = p(), v = p(), u = p(), r = p({ x: 0, y: 0, width: 0, height: 0 }), h = p(), k = p(), f = p(), c = O(() => f.value.isHoverEnabled), g = O(() => t.useSvg ? tn : Jt), S = O(() => t.selectedUnitId), I = O(() => t.nextUnitId), y = O(() => t.prevUnitId);
|
|
1202
1202
|
xe(() => {
|
|
1203
|
-
if (
|
|
1204
|
-
const D = i.value[
|
|
1203
|
+
if (S.value && u.value) {
|
|
1204
|
+
const D = i.value[S.value];
|
|
1205
1205
|
D && (u.value.currentScene = D);
|
|
1206
1206
|
}
|
|
1207
1207
|
}), ye(async () => {
|
|
@@ -1215,7 +1215,7 @@ const Sn = { key: 0 }, Dn = { class: "interactive-viewer" }, xn = { class: "fill
|
|
|
1215
1215
|
}).reduce((L, Z) => ({ ...L, [Z.unitId]: Z.scene }), {}) : {};
|
|
1216
1216
|
const C = (L, Z = "unitId") => {
|
|
1217
1217
|
let w = D, M = [];
|
|
1218
|
-
for (let q = 0; q <
|
|
1218
|
+
for (let q = 0; q < yt; q++)
|
|
1219
1219
|
M.push(w), w = Ft(w);
|
|
1220
1220
|
return L.sort((q, Q) => {
|
|
1221
1221
|
const oe = M.findIndex(
|
|
@@ -1247,7 +1247,7 @@ const Sn = { key: 0 }, Dn = { class: "interactive-viewer" }, xn = { class: "fill
|
|
|
1247
1247
|
k.value = null, h.value = D.closeHandler, n("hoverOutUnit", D.hoverUnit);
|
|
1248
1248
|
}
|
|
1249
1249
|
return (D, C) => {
|
|
1250
|
-
const W =
|
|
1250
|
+
const W = T("v-progress-linear");
|
|
1251
1251
|
return u.value ? (m(), A("div", Sn, [
|
|
1252
1252
|
d("div", Dn, [
|
|
1253
1253
|
d("div", xn, [
|
|
@@ -1269,7 +1269,7 @@ const Sn = { key: 0 }, Dn = { class: "interactive-viewer" }, xn = { class: "fill
|
|
|
1269
1269
|
(m(), E(xt(g.value), {
|
|
1270
1270
|
"cdn-file-resolver": t.cdnFileResolver,
|
|
1271
1271
|
"view-model": u.value,
|
|
1272
|
-
"selected-unit-id":
|
|
1272
|
+
"selected-unit-id": S.value,
|
|
1273
1273
|
"scene-data": s.value,
|
|
1274
1274
|
"color-callback": t.colorCallback,
|
|
1275
1275
|
"can-go-to-unit-callback": t.canGoToUnitCallback,
|
|
@@ -1311,13 +1311,13 @@ const Sn = { key: 0 }, Dn = { class: "interactive-viewer" }, xn = { class: "fill
|
|
|
1311
1311
|
b(ln, {
|
|
1312
1312
|
"can-go-to-unit-callback": t.canGoToUnitCallback,
|
|
1313
1313
|
"unit-renderer": t.unitRenderer,
|
|
1314
|
-
"selected-unit-id":
|
|
1314
|
+
"selected-unit-id": S.value,
|
|
1315
1315
|
"prev-unit-id": y.value,
|
|
1316
|
-
"next-unit-id":
|
|
1316
|
+
"next-unit-id": I.value,
|
|
1317
1317
|
"view-model": u.value,
|
|
1318
1318
|
onGoToUnit: C[5] || (C[5] = (L) => n("goToUnit", L)),
|
|
1319
1319
|
onPrevUnit: C[6] || (C[6] = (L) => n("navUnit", y.value)),
|
|
1320
|
-
onNextUnit: C[7] || (C[7] = (L) => n("navUnit",
|
|
1320
|
+
onNextUnit: C[7] || (C[7] = (L) => n("navUnit", I.value))
|
|
1321
1321
|
}, null, 8, ["can-go-to-unit-callback", "unit-renderer", "selected-unit-id", "prev-unit-id", "next-unit-id", "view-model"])
|
|
1322
1322
|
])) : o.isError ? $("", !0) : (m(), A("div", Ln, [
|
|
1323
1323
|
b(W, {
|
|
@@ -1419,10 +1419,10 @@ function zn(l) {
|
|
|
1419
1419
|
return !1;
|
|
1420
1420
|
return !0;
|
|
1421
1421
|
}
|
|
1422
|
-
function
|
|
1422
|
+
function _t(l) {
|
|
1423
1423
|
return !("filename" in l);
|
|
1424
1424
|
}
|
|
1425
|
-
function
|
|
1425
|
+
function ft(l) {
|
|
1426
1426
|
return "filename" in l;
|
|
1427
1427
|
}
|
|
1428
1428
|
const jn = /* @__PURE__ */ j({
|
|
@@ -1444,7 +1444,7 @@ const jn = /* @__PURE__ */ j({
|
|
|
1444
1444
|
}
|
|
1445
1445
|
);
|
|
1446
1446
|
const o = O(
|
|
1447
|
-
() => e.apartmentChooserData ? e.apartmentChooserData.cameras.filter(
|
|
1447
|
+
() => e.apartmentChooserData ? e.apartmentChooserData.cameras.filter(_t) : []
|
|
1448
1448
|
);
|
|
1449
1449
|
return H(n, () => {
|
|
1450
1450
|
t(
|
|
@@ -1454,7 +1454,7 @@ const jn = /* @__PURE__ */ j({
|
|
|
1454
1454
|
)
|
|
1455
1455
|
);
|
|
1456
1456
|
}), (i, s) => {
|
|
1457
|
-
const v =
|
|
1457
|
+
const v = T("v-select");
|
|
1458
1458
|
return m(), E(v, {
|
|
1459
1459
|
modelValue: n.value,
|
|
1460
1460
|
"onUpdate:modelValue": s[0] || (s[0] = (u) => n.value = u),
|
|
@@ -1499,7 +1499,7 @@ const jn = /* @__PURE__ */ j({
|
|
|
1499
1499
|
});
|
|
1500
1500
|
}
|
|
1501
1501
|
return (i, s) => {
|
|
1502
|
-
const v =
|
|
1502
|
+
const v = T("v-list-item"), u = T("v-select");
|
|
1503
1503
|
return m(), E(u, {
|
|
1504
1504
|
modelValue: n.value,
|
|
1505
1505
|
"onUpdate:modelValue": s[0] || (s[0] = (r) => n.value = r),
|
|
@@ -1564,7 +1564,7 @@ const jn = /* @__PURE__ */ j({
|
|
|
1564
1564
|
}, 200));
|
|
1565
1565
|
}
|
|
1566
1566
|
return (v, u) => {
|
|
1567
|
-
const r =
|
|
1567
|
+
const r = T("v-icon"), h = T("v-btn"), k = T("v-slider"), f = T("v-field");
|
|
1568
1568
|
return m(), E(f, { variant: "solo" }, {
|
|
1569
1569
|
default: _(() => [
|
|
1570
1570
|
v.dayData.startTime === v.dayData.endTime ? (m(), A("div", Wn, [
|
|
@@ -1645,55 +1645,55 @@ const jn = /* @__PURE__ */ j({
|
|
|
1645
1645
|
const v = O(() => o.value ? !1 : t.apartmentChooserData.loopable ? !0 : i.value !== t.apartmentChooserData.scenes[0]), u = O(() => o.value ? !1 : t.apartmentChooserData.loopable ? !0 : i.value !== t.apartmentChooserData.scenes[t.apartmentChooserData.scenes.length - 1]);
|
|
1646
1646
|
function r() {
|
|
1647
1647
|
const c = i.value;
|
|
1648
|
-
let g = t.apartmentChooserData.scenes.findIndex((
|
|
1648
|
+
let g = t.apartmentChooserData.scenes.findIndex((I) => I === c) + 1;
|
|
1649
1649
|
g >= t.apartmentChooserData.scenes.length && (g = 0);
|
|
1650
|
-
const
|
|
1651
|
-
t.apartmentChooserData.loopable && c >
|
|
1650
|
+
const S = t.apartmentChooserData.scenes[g];
|
|
1651
|
+
t.apartmentChooserData.loopable && c > S, f(c, S);
|
|
1652
1652
|
}
|
|
1653
1653
|
async function h() {
|
|
1654
1654
|
const c = i.value;
|
|
1655
|
-
let g = t.apartmentChooserData.scenes.findIndex((
|
|
1655
|
+
let g = t.apartmentChooserData.scenes.findIndex((I) => I === c) - 1;
|
|
1656
1656
|
g < 0 && (g = t.apartmentChooserData.scenes.length - 1);
|
|
1657
|
-
const
|
|
1658
|
-
t.apartmentChooserData.loopable && c <
|
|
1657
|
+
const S = t.apartmentChooserData.scenes[g];
|
|
1658
|
+
t.apartmentChooserData.loopable && c < S, f(c, S);
|
|
1659
1659
|
}
|
|
1660
1660
|
function k(c) {
|
|
1661
1661
|
const g = i.value;
|
|
1662
1662
|
if (t.apartmentChooserData.loopable)
|
|
1663
1663
|
if (c < g) {
|
|
1664
|
-
let
|
|
1665
|
-
return Math.abs(
|
|
1664
|
+
let S = g - c, I = g - (t.apartmentChooserData.cameras.length + c);
|
|
1665
|
+
return Math.abs(S) > Math.abs(I) ? f(g, c) : f(g, t.apartmentChooserData.cameras.length + c);
|
|
1666
1666
|
} else {
|
|
1667
|
-
let
|
|
1668
|
-
return Math.abs(
|
|
1667
|
+
let S = g - c, I = t.apartmentChooserData.cameras.length + g - c;
|
|
1668
|
+
return Math.abs(S) > Math.abs(I) ? f(g, c) : f(t.apartmentChooserData.cameras.length + g, c);
|
|
1669
1669
|
}
|
|
1670
1670
|
else
|
|
1671
1671
|
return f(g, c);
|
|
1672
1672
|
}
|
|
1673
1673
|
function f(c, g) {
|
|
1674
|
-
return new Promise((
|
|
1674
|
+
return new Promise((S) => {
|
|
1675
1675
|
o.value = !0, n("onRotateStart", { from: c, to: g });
|
|
1676
|
-
let
|
|
1677
|
-
|
|
1676
|
+
let I, y = c;
|
|
1677
|
+
I = setInterval(() => {
|
|
1678
1678
|
y < g ? (y++, i.value = Math.abs(
|
|
1679
1679
|
y % t.apartmentChooserData.cameras.length
|
|
1680
1680
|
)) : y > g ? (y--, i.value = Math.abs(
|
|
1681
1681
|
y % t.apartmentChooserData.cameras.length
|
|
1682
|
-
)) : (clearInterval(
|
|
1682
|
+
)) : (clearInterval(I), n("onRotateFinish", { from: c, to: g }), o.value = !1, S());
|
|
1683
1683
|
}, 50);
|
|
1684
1684
|
});
|
|
1685
1685
|
}
|
|
1686
1686
|
return (c, g) => {
|
|
1687
|
-
const
|
|
1687
|
+
const S = T("v-btn"), I = T("v-chip");
|
|
1688
1688
|
return m(), A(ie, null, [
|
|
1689
|
-
b(
|
|
1689
|
+
b(S, {
|
|
1690
1690
|
class: "mx-2",
|
|
1691
1691
|
icon: "mdi-restore",
|
|
1692
1692
|
size: "small",
|
|
1693
1693
|
disabled: !v.value,
|
|
1694
1694
|
onClick: h
|
|
1695
1695
|
}, null, 8, ["disabled"]),
|
|
1696
|
-
c.renderDisplay && s.value ? (m(), E(
|
|
1696
|
+
c.renderDisplay && s.value ? (m(), E(I, {
|
|
1697
1697
|
key: 0,
|
|
1698
1698
|
variant: "flat",
|
|
1699
1699
|
color: "white",
|
|
@@ -1705,7 +1705,7 @@ const jn = /* @__PURE__ */ j({
|
|
|
1705
1705
|
]),
|
|
1706
1706
|
_: 1
|
|
1707
1707
|
})) : $("", !0),
|
|
1708
|
-
b(
|
|
1708
|
+
b(S, {
|
|
1709
1709
|
class: "mx-2",
|
|
1710
1710
|
icon: "mdi-reload",
|
|
1711
1711
|
size: "small",
|
|
@@ -1733,14 +1733,14 @@ const jn = /* @__PURE__ */ j({
|
|
|
1733
1733
|
}
|
|
1734
1734
|
), xe(() => {
|
|
1735
1735
|
for (const r in s) {
|
|
1736
|
-
const { element: h, state: k } = s[r], { r: f, g: c, b: g, a:
|
|
1736
|
+
const { element: h, state: k } = s[r], { r: f, g: c, b: g, a: S, s: I } = e.colorCallback(r, k) || {
|
|
1737
1737
|
r: 0,
|
|
1738
1738
|
g: 0,
|
|
1739
1739
|
b: 0,
|
|
1740
1740
|
a: 0,
|
|
1741
1741
|
s: 0
|
|
1742
1742
|
};
|
|
1743
|
-
h.style.fill = `rgba(${f}, ${c}, ${g}, ${
|
|
1743
|
+
h.style.fill = `rgba(${f}, ${c}, ${g}, ${S / 255})`, h.style.stroke = `rgb(${f}, ${c}, ${g})`, h.style.strokeWidth = I.toString();
|
|
1744
1744
|
}
|
|
1745
1745
|
}), H(i, () => {
|
|
1746
1746
|
for (const r in s)
|
|
@@ -1825,9 +1825,9 @@ const jn = /* @__PURE__ */ j({
|
|
|
1825
1825
|
transition: " transform 0.5s ease-in"
|
|
1826
1826
|
}));
|
|
1827
1827
|
return (t, n) => {
|
|
1828
|
-
const o =
|
|
1828
|
+
const o = T("v-img");
|
|
1829
1829
|
return m(), E(o, {
|
|
1830
|
-
src:
|
|
1830
|
+
src: V(ea),
|
|
1831
1831
|
style: ue(e.value)
|
|
1832
1832
|
}, null, 8, ["src", "style"]);
|
|
1833
1833
|
};
|
|
@@ -2040,7 +2040,7 @@ function sa(l) {
|
|
|
2040
2040
|
]
|
|
2041
2041
|
}
|
|
2042
2042
|
]
|
|
2043
|
-
},
|
|
2043
|
+
}, ft(o[v]) && (o[v] = r);
|
|
2044
2044
|
}
|
|
2045
2045
|
return {
|
|
2046
2046
|
version: "5.0",
|
|
@@ -2085,7 +2085,7 @@ const ra = {
|
|
|
2085
2085
|
setup(l, { emit: a }) {
|
|
2086
2086
|
const e = l, t = a, n = p(), o = p(), i = p(), s = p(
|
|
2087
2087
|
null
|
|
2088
|
-
), v = p(4), u = p(), r = p(!1), h = p(!1), k = p(), f = p(), c = O(() => f.value.isHoverEnabled), g = p({ x: 0, y: 0, width: 0, height: 0 }),
|
|
2088
|
+
), v = p(4), u = p(), r = p(!1), h = p(!1), k = p(), f = p(), c = O(() => f.value.isHoverEnabled), g = p({ x: 0, y: 0, width: 0, height: 0 }), S = p(), I = p(), y = p(
|
|
2089
2089
|
e.apartmentChooserData
|
|
2090
2090
|
), R = p(!1);
|
|
2091
2091
|
ye(() => {
|
|
@@ -2093,17 +2093,17 @@ const ra = {
|
|
|
2093
2093
|
}), H(r, (P) => {
|
|
2094
2094
|
P && t("onInitialize");
|
|
2095
2095
|
}), H(
|
|
2096
|
-
() =>
|
|
2096
|
+
() => I.value,
|
|
2097
2097
|
() => {
|
|
2098
|
-
|
|
2098
|
+
I.value && new ResizeObserver(([B]) => {
|
|
2099
2099
|
R.value = B.contentRect.width < e.mobileBreakpoint;
|
|
2100
|
-
}).observe(
|
|
2100
|
+
}).observe(I.value);
|
|
2101
2101
|
}
|
|
2102
2102
|
);
|
|
2103
2103
|
const F = O(
|
|
2104
|
-
() => y.value ? y.value.cameras.filter(
|
|
2104
|
+
() => y.value ? y.value.cameras.filter(_t) : []
|
|
2105
2105
|
), Y = O(
|
|
2106
|
-
() => y.value ? y.value.cameras.filter(
|
|
2106
|
+
() => y.value ? y.value.cameras.filter(ft) : []
|
|
2107
2107
|
), D = async () => {
|
|
2108
2108
|
try {
|
|
2109
2109
|
let P, B;
|
|
@@ -2153,7 +2153,7 @@ const ra = {
|
|
|
2153
2153
|
);
|
|
2154
2154
|
}
|
|
2155
2155
|
function W(P) {
|
|
2156
|
-
v.value = P,
|
|
2156
|
+
v.value = P, ft(y.value.cameras[v.value]) ? s.value = y.value.cameras[v.value] : (ke(() => {
|
|
2157
2157
|
L(
|
|
2158
2158
|
y.value.cameras[v.value]
|
|
2159
2159
|
);
|
|
@@ -2204,7 +2204,7 @@ const ra = {
|
|
|
2204
2204
|
const { layerX: B, layerY: J } = P;
|
|
2205
2205
|
let ne = P.target, fe = !1;
|
|
2206
2206
|
for (; ne; )
|
|
2207
|
-
if (ne ===
|
|
2207
|
+
if (ne === S.value) {
|
|
2208
2208
|
fe = !0;
|
|
2209
2209
|
break;
|
|
2210
2210
|
} else
|
|
@@ -2222,7 +2222,7 @@ const ra = {
|
|
|
2222
2222
|
t("onMouseMove", P, g.value);
|
|
2223
2223
|
}
|
|
2224
2224
|
return (P, B) => {
|
|
2225
|
-
const J =
|
|
2225
|
+
const J = T("v-skeleton-loader");
|
|
2226
2226
|
return m(), A(ie, null, [
|
|
2227
2227
|
b(J, {
|
|
2228
2228
|
type: "image",
|
|
@@ -2234,7 +2234,7 @@ const ra = {
|
|
|
2234
2234
|
default: _(() => [
|
|
2235
2235
|
d("div", {
|
|
2236
2236
|
ref_key: "container",
|
|
2237
|
-
ref:
|
|
2237
|
+
ref: I,
|
|
2238
2238
|
class: he({ mobile: R.value }),
|
|
2239
2239
|
onMousemove: oe
|
|
2240
2240
|
}, [
|
|
@@ -2315,7 +2315,7 @@ const ra = {
|
|
|
2315
2315
|
onOnClick: M,
|
|
2316
2316
|
onOnHoverOver: q,
|
|
2317
2317
|
onOnHoverOut: Q,
|
|
2318
|
-
onUpdateSvgContainer: B[2] || (B[2] = (ne) =>
|
|
2318
|
+
onUpdateSvgContainer: B[2] || (B[2] = (ne) => S.value = ne)
|
|
2319
2319
|
}, null, 8, ["cdn-file-resolver", "color-callback", "current-camera", "selected-id"]), [
|
|
2320
2320
|
[ge, s.value === null]
|
|
2321
2321
|
])
|
|
@@ -2390,7 +2390,7 @@ const ra = {
|
|
|
2390
2390
|
), xe(() => {
|
|
2391
2391
|
o.value = i(e.dateSelector.selectedDate);
|
|
2392
2392
|
}), (r, h) => {
|
|
2393
|
-
const k =
|
|
2393
|
+
const k = T("v-icon"), f = T("v-select"), c = T("v-progress-linear"), g = T("v-slider");
|
|
2394
2394
|
return m(), A("div", ha, [
|
|
2395
2395
|
d("div", ga, [
|
|
2396
2396
|
b(k, {
|
|
@@ -2401,7 +2401,7 @@ const ra = {
|
|
|
2401
2401
|
r.dateSelector.hasMultipleDates ? (m(), E(f, {
|
|
2402
2402
|
key: 0,
|
|
2403
2403
|
modelValue: o.value,
|
|
2404
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
2404
|
+
"onUpdate:modelValue": h[0] || (h[0] = (S) => o.value = S),
|
|
2405
2405
|
items: v.value,
|
|
2406
2406
|
density: "compact",
|
|
2407
2407
|
variant: "underlined",
|
|
@@ -2431,7 +2431,7 @@ const ra = {
|
|
|
2431
2431
|
})) : (m(), E(g, {
|
|
2432
2432
|
key: 1,
|
|
2433
2433
|
modelValue: n.value,
|
|
2434
|
-
"onUpdate:modelValue": h[1] || (h[1] = (
|
|
2434
|
+
"onUpdate:modelValue": h[1] || (h[1] = (S) => n.value = S),
|
|
2435
2435
|
min: 0,
|
|
2436
2436
|
max: 47,
|
|
2437
2437
|
step: 1,
|
|
@@ -2455,7 +2455,7 @@ const ra = {
|
|
|
2455
2455
|
},
|
|
2456
2456
|
emits: ["resize", "ready", "preloaded", "reset"],
|
|
2457
2457
|
setup(l, { emit: a }) {
|
|
2458
|
-
const e = l, t = a, n = p("init"), o = p(new
|
|
2458
|
+
const e = l, t = a, n = p("init"), o = p(new pt(0)), i = p();
|
|
2459
2459
|
H(
|
|
2460
2460
|
() => e.imageUrls,
|
|
2461
2461
|
(u) => {
|
|
@@ -2473,7 +2473,7 @@ const ra = {
|
|
|
2473
2473
|
n.value = "preloaded", t("preloaded");
|
|
2474
2474
|
}
|
|
2475
2475
|
function v(u) {
|
|
2476
|
-
n.value = "init", i.value.src = u[0], o.value = new
|
|
2476
|
+
n.value = "init", i.value.src = u[0], o.value = new pt(u.length).onLoadFinished(
|
|
2477
2477
|
() => {
|
|
2478
2478
|
n.value = "loaded", t("ready");
|
|
2479
2479
|
}
|
|
@@ -2532,7 +2532,7 @@ const ra = {
|
|
|
2532
2532
|
height: 0
|
|
2533
2533
|
}), i = p({ x: 0, y: 0, width: 0, height: 0 }), s = p(), v = p(
|
|
2534
2534
|
(/* @__PURE__ */ new Date()).getHours() * 2 + ((/* @__PURE__ */ new Date()).getMinutes() < 30 ? 0 : 1)
|
|
2535
|
-
), u = p(!1), r = p(new Ce()), h = p(), k = p("0 0 0 0"), f = p(), c = p(), g = p(We.empty()),
|
|
2535
|
+
), u = p(!1), r = p(new Ce()), h = p(), k = p("0 0 0 0"), f = p(), c = p(), g = p(We.empty()), S = p(Ne.empty()), I = p(), y = O(() => I.value.isHoverEnabled);
|
|
2536
2536
|
H(s, (w, M) => {
|
|
2537
2537
|
w ? t("hoverOverBuilding", w) : t("hoverOutBuilding", M);
|
|
2538
2538
|
}), xe(() => {
|
|
@@ -2549,7 +2549,7 @@ const ra = {
|
|
|
2549
2549
|
e.buildingChooserData
|
|
2550
2550
|
);
|
|
2551
2551
|
if (M) {
|
|
2552
|
-
|
|
2552
|
+
S.value = new Ne(M.mapImage), g.value = new We(M.buildingIds), f.value = new ut(M.backgrounds), c.value = {
|
|
2553
2553
|
buildingOverlays: M.buildingOverlays,
|
|
2554
2554
|
viewLongitude: M.viewLongitude
|
|
2555
2555
|
};
|
|
@@ -2635,7 +2635,7 @@ const ra = {
|
|
|
2635
2635
|
s.value = w, y.value && s.value && e.canGoToBuildingCallback(s.value) && t("goToBuilding", s.value);
|
|
2636
2636
|
}
|
|
2637
2637
|
return (w, M) => {
|
|
2638
|
-
const q =
|
|
2638
|
+
const q = T("v-icon");
|
|
2639
2639
|
return u.value ? (m(), A("div", Sa, [
|
|
2640
2640
|
b(q, { "x-large": "" }, {
|
|
2641
2641
|
default: _(() => [
|
|
@@ -2726,7 +2726,7 @@ const ra = {
|
|
|
2726
2726
|
}, 8, ["is-hoverable", "pos"])) : $("", !0),
|
|
2727
2727
|
b(Re, {
|
|
2728
2728
|
ref_key: "hoverProbe",
|
|
2729
|
-
ref:
|
|
2729
|
+
ref: I
|
|
2730
2730
|
}, null, 512)
|
|
2731
2731
|
], 4)) : $("", !0);
|
|
2732
2732
|
};
|
|
@@ -2814,7 +2814,7 @@ const ra = {
|
|
|
2814
2814
|
(/* @__PURE__ */ new Date()).getHours() * 2 + ((/* @__PURE__ */ new Date()).getMinutes() < 30 ? 0 : 1)
|
|
2815
2815
|
), f = p(
|
|
2816
2816
|
(w, M) => ({ x: w, y: M })
|
|
2817
|
-
), c = p(!1), g = p(),
|
|
2817
|
+
), c = p(!1), g = p(), S = p(), I = p(), y = O(() => {
|
|
2818
2818
|
var w;
|
|
2819
2819
|
return (w = g.value) == null ? void 0 : w.isHoverEnabled;
|
|
2820
2820
|
});
|
|
@@ -2853,8 +2853,8 @@ const ra = {
|
|
|
2853
2853
|
);
|
|
2854
2854
|
}
|
|
2855
2855
|
function D() {
|
|
2856
|
-
if (
|
|
2857
|
-
for (const w of
|
|
2856
|
+
if (S.value && (r.value.update(S.value), I.value))
|
|
2857
|
+
for (const w of I.value)
|
|
2858
2858
|
w.setupDraw();
|
|
2859
2859
|
}
|
|
2860
2860
|
function C(w) {
|
|
@@ -2879,7 +2879,7 @@ const ra = {
|
|
|
2879
2879
|
f.value = w;
|
|
2880
2880
|
}
|
|
2881
2881
|
return (w, M) => {
|
|
2882
|
-
const q =
|
|
2882
|
+
const q = T("v-icon");
|
|
2883
2883
|
return c.value ? (m(), A("div", Ba, [
|
|
2884
2884
|
b(q, { "x-large": "" }, {
|
|
2885
2885
|
default: _(() => [
|
|
@@ -2911,7 +2911,7 @@ const ra = {
|
|
|
2911
2911
|
(m(!0), A(ie, null, ve(v.value.buildingOverlays, (Q) => (m(), E(Oa, {
|
|
2912
2912
|
ref_for: !0,
|
|
2913
2913
|
ref_key: "overlays",
|
|
2914
|
-
ref:
|
|
2914
|
+
ref: I,
|
|
2915
2915
|
key: Q.id,
|
|
2916
2916
|
"image-url": Q.url,
|
|
2917
2917
|
dimensions: i.value,
|
|
@@ -2923,7 +2923,7 @@ const ra = {
|
|
|
2923
2923
|
]),
|
|
2924
2924
|
d("canvas", Se(i.value, {
|
|
2925
2925
|
ref_key: "canvas",
|
|
2926
|
-
ref:
|
|
2926
|
+
ref: S,
|
|
2927
2927
|
class: { hover: !!h.value },
|
|
2928
2928
|
onClick: W,
|
|
2929
2929
|
onMousemove: C
|
|
@@ -3086,7 +3086,7 @@ const ra = {
|
|
|
3086
3086
|
)
|
|
3087
3087
|
);
|
|
3088
3088
|
}), (o, i) => {
|
|
3089
|
-
const s =
|
|
3089
|
+
const s = T("v-select");
|
|
3090
3090
|
return m(), E(s, {
|
|
3091
3091
|
modelValue: n.value,
|
|
3092
3092
|
"onUpdate:modelValue": i[0] || (i[0] = (v) => n.value = v),
|
|
@@ -3129,7 +3129,7 @@ const ra = {
|
|
|
3129
3129
|
});
|
|
3130
3130
|
}
|
|
3131
3131
|
return (i, s) => {
|
|
3132
|
-
const v =
|
|
3132
|
+
const v = T("v-list-item"), u = T("v-select");
|
|
3133
3133
|
return m(), E(u, {
|
|
3134
3134
|
modelValue: n.value,
|
|
3135
3135
|
"onUpdate:modelValue": s[0] || (s[0] = (r) => n.value = r),
|
|
@@ -3192,7 +3192,7 @@ const ra = {
|
|
|
3192
3192
|
}, 200));
|
|
3193
3193
|
}
|
|
3194
3194
|
return (v, u) => {
|
|
3195
|
-
const r =
|
|
3195
|
+
const r = T("v-icon"), h = T("v-btn"), k = T("v-slider"), f = T("v-field");
|
|
3196
3196
|
return m(), E(f, { variant: "solo" }, {
|
|
3197
3197
|
default: _(() => [
|
|
3198
3198
|
v.dayData.startTime === v.dayData.endTime ? (m(), A("div", Za, [
|
|
@@ -3260,14 +3260,14 @@ const ra = {
|
|
|
3260
3260
|
const e = l, t = a, n = p(), o = p(), i = p(e.selectedId), s = st({});
|
|
3261
3261
|
xe(() => {
|
|
3262
3262
|
for (const r in s) {
|
|
3263
|
-
const { element: h, state: k } = s[r], { r: f, g: c, b: g, a:
|
|
3263
|
+
const { element: h, state: k } = s[r], { r: f, g: c, b: g, a: S, s: I } = e.colorCallback(r, k) || {
|
|
3264
3264
|
r: 0,
|
|
3265
3265
|
g: 0,
|
|
3266
3266
|
b: 0,
|
|
3267
3267
|
a: 0,
|
|
3268
3268
|
s: 0
|
|
3269
3269
|
};
|
|
3270
|
-
h.style.fill = `rgba(${f}, ${c}, ${g}, ${
|
|
3270
|
+
h.style.fill = `rgba(${f}, ${c}, ${g}, ${S / 255})`, h.style.stroke = `rgb(${f}, ${c}, ${g})`, h.style.strokeWidth = I.toString();
|
|
3271
3271
|
}
|
|
3272
3272
|
}), H(
|
|
3273
3273
|
() => e.selectedId,
|
|
@@ -3424,7 +3424,7 @@ const oo = {
|
|
|
3424
3424
|
}).observe(f.value);
|
|
3425
3425
|
}
|
|
3426
3426
|
);
|
|
3427
|
-
const
|
|
3427
|
+
const S = async () => {
|
|
3428
3428
|
try {
|
|
3429
3429
|
let C;
|
|
3430
3430
|
if (!e.cdnFileResolver)
|
|
@@ -3440,7 +3440,7 @@ const oo = {
|
|
|
3440
3440
|
H(
|
|
3441
3441
|
[c, () => e.cdnFileResolver, () => e.defaultCamera],
|
|
3442
3442
|
async () => {
|
|
3443
|
-
e.cdnFileResolver && (c.value || (c.value = await
|
|
3443
|
+
e.cdnFileResolver && (c.value || (c.value = await S()), e.defaultCamera ? n.value = c.value.cameras.find(
|
|
3444
3444
|
(C) => C.cameraName === e.defaultCamera
|
|
3445
3445
|
) || c.value.cameras[0] : n.value = c.value.cameras[0]);
|
|
3446
3446
|
},
|
|
@@ -3464,7 +3464,7 @@ const oo = {
|
|
|
3464
3464
|
},
|
|
3465
3465
|
{ immediate: !0 }
|
|
3466
3466
|
);
|
|
3467
|
-
function
|
|
3467
|
+
function I(C) {
|
|
3468
3468
|
const W = o.value;
|
|
3469
3469
|
n.value = C, ke(() => {
|
|
3470
3470
|
y(
|
|
@@ -3517,7 +3517,7 @@ const oo = {
|
|
|
3517
3517
|
t("onMouseMove", C, h.value);
|
|
3518
3518
|
}
|
|
3519
3519
|
return (C, W) => {
|
|
3520
|
-
const L =
|
|
3520
|
+
const L = T("v-skeleton-loader");
|
|
3521
3521
|
return m(), A(ie, null, [
|
|
3522
3522
|
b(L, {
|
|
3523
3523
|
type: "image",
|
|
@@ -3538,7 +3538,7 @@ const oo = {
|
|
|
3538
3538
|
b(Ga, {
|
|
3539
3539
|
"building-chooser-data": c.value,
|
|
3540
3540
|
"current-camera": n.value,
|
|
3541
|
-
onOnCameraChange:
|
|
3541
|
+
onOnCameraChange: I
|
|
3542
3542
|
}, null, 8, ["building-chooser-data", "current-camera"])
|
|
3543
3543
|
])) : $("", !0),
|
|
3544
3544
|
d("div", so, [
|
|
@@ -3795,7 +3795,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
3795
3795
|
r >= o.value.length ? t("level", o.value[0]) : t("level", o.value[r]);
|
|
3796
3796
|
}
|
|
3797
3797
|
return (r, h) => {
|
|
3798
|
-
const k =
|
|
3798
|
+
const k = T("v-btn"), f = T("v-tooltip");
|
|
3799
3799
|
return m(), E(f, {
|
|
3800
3800
|
right: "",
|
|
3801
3801
|
attach: ""
|
|
@@ -3829,7 +3829,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
3829
3829
|
}, 1040)
|
|
3830
3830
|
]),
|
|
3831
3831
|
default: _(() => [
|
|
3832
|
-
d("span", $o, G(
|
|
3832
|
+
d("span", $o, G(V(n).getLabel(i.value)) + " " + G(V(n).getLabel("floor")), 1)
|
|
3833
3833
|
]),
|
|
3834
3834
|
_: 1
|
|
3835
3835
|
});
|
|
@@ -3846,7 +3846,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
3846
3846
|
setup(l, { emit: a }) {
|
|
3847
3847
|
const e = l, t = a, n = Ge(Le);
|
|
3848
3848
|
return (o, i) => {
|
|
3849
|
-
const s =
|
|
3849
|
+
const s = T("v-icon"), v = T("v-btn"), u = T("v-img"), r = T("v-list-item-title"), h = T("v-list-item"), k = T("v-list"), f = T("v-menu");
|
|
3850
3850
|
return m(), A("div", null, [
|
|
3851
3851
|
b(f, {
|
|
3852
3852
|
transition: "slide-x-reverse-transition",
|
|
@@ -3864,7 +3864,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
3864
3864
|
]),
|
|
3865
3865
|
_: 1
|
|
3866
3866
|
}),
|
|
3867
|
-
d("span", Ho, G(
|
|
3867
|
+
d("span", Ho, G(V(n).getLabel("interior")), 1)
|
|
3868
3868
|
]),
|
|
3869
3869
|
_: 2
|
|
3870
3870
|
}, 1040)
|
|
@@ -3875,7 +3875,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
3875
3875
|
(m(!0), A(ie, null, ve(e.availableArchetypes, (c, g) => (m(), E(h, {
|
|
3876
3876
|
density: "compact",
|
|
3877
3877
|
key: `at-menuitem-${g}`,
|
|
3878
|
-
onClick: (
|
|
3878
|
+
onClick: (S) => t("selectInterior", c.archetypeID),
|
|
3879
3879
|
active: g === o.selectedIndex,
|
|
3880
3880
|
class: "interior-selector-list-item"
|
|
3881
3881
|
}, {
|
|
@@ -3890,7 +3890,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
3890
3890
|
default: _(() => [
|
|
3891
3891
|
b(r, { class: "text-caption py-2 px-4" }, {
|
|
3892
3892
|
default: _(() => [
|
|
3893
|
-
ee(G(
|
|
3893
|
+
ee(G(V(n).get(c.title)), 1)
|
|
3894
3894
|
]),
|
|
3895
3895
|
_: 2
|
|
3896
3896
|
}, 1024)
|
|
@@ -3919,7 +3919,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
3919
3919
|
transform: `rotate(${-a.rotation + 180}deg)`
|
|
3920
3920
|
}));
|
|
3921
3921
|
return (o, i) => {
|
|
3922
|
-
const s =
|
|
3922
|
+
const s = T("v-img");
|
|
3923
3923
|
return m(), A("div", {
|
|
3924
3924
|
style: ue(t.value),
|
|
3925
3925
|
class: "compass-wrapper"
|
|
@@ -3944,11 +3944,11 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
3944
3944
|
return ("0" + n).slice(-2);
|
|
3945
3945
|
}
|
|
3946
3946
|
return (n, o) => {
|
|
3947
|
-
const i =
|
|
3947
|
+
const i = T("v-img");
|
|
3948
3948
|
return m(), A("div", Go, [
|
|
3949
3949
|
d("div", Qo, [
|
|
3950
3950
|
b(i, {
|
|
3951
|
-
src:
|
|
3951
|
+
src: V(No),
|
|
3952
3952
|
"aspect-ratio": "1"
|
|
3953
3953
|
}, null, 8, ["src"])
|
|
3954
3954
|
]),
|
|
@@ -3956,16 +3956,16 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
3956
3956
|
]);
|
|
3957
3957
|
};
|
|
3958
3958
|
}
|
|
3959
|
-
}), Jo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-cd73fd81"]]),
|
|
3959
|
+
}), Jo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-cd73fd81"]]), bt = (l) => (rt("data-v-f59c4942"), l = l(), it(), l), Xo = {
|
|
3960
3960
|
key: 0,
|
|
3961
3961
|
width: "24",
|
|
3962
3962
|
height: "24",
|
|
3963
3963
|
viewBox: "0 0 24 24",
|
|
3964
3964
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3965
|
-
}, Ko = /* @__PURE__ */
|
|
3965
|
+
}, Ko = /* @__PURE__ */ bt(() => /* @__PURE__ */ d("path", {
|
|
3966
3966
|
d: "M5.38544 13C3.30939 13.9424 2 15.3211 2 16.8571C2 19.6975 6.47715 22 12 22C17.5228 22 22 19.6975 22 16.8571C22 15.3211 20.6906 13.9424 18.6146 13",
|
|
3967
3967
|
class: "fill-grey"
|
|
3968
|
-
}, null, -1)), el = /* @__PURE__ */
|
|
3968
|
+
}, null, -1)), el = /* @__PURE__ */ bt(() => /* @__PURE__ */ d("path", { d: "M8 9C8 7.89543 8.89543 7 10 7H14C15.1046 7 16 7.89543 16 9V12.875C16 13.4273 15.5523 13.875 15 13.875H14V17C14 17.5523 13.5523 18 13 18H11C10.4477 18 10 17.5523 10 17V13.875H9C8.44772 13.875 8 13.4273 8 12.875V9Z" }, null, -1)), tl = /* @__PURE__ */ bt(() => /* @__PURE__ */ d("path", { d: "M15 4C15 5.65685 13.6569 7 12 7C10.3431 7 9 5.65685 9 4C9 2.34315 10.3431 1 12 1C13.6569 1 15 2.34315 15 4Z" }, null, -1)), nl = [
|
|
3969
3969
|
Ko,
|
|
3970
3970
|
el,
|
|
3971
3971
|
tl
|
|
@@ -3981,7 +3981,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
3981
3981
|
return e.showStaticImage || (i = "slideShow"), i;
|
|
3982
3982
|
});
|
|
3983
3983
|
return (i, s) => {
|
|
3984
|
-
const v =
|
|
3984
|
+
const v = T("v-icon"), u = T("v-btn"), r = T("v-tooltip");
|
|
3985
3985
|
return m(), E(r, { location: "top" }, {
|
|
3986
3986
|
activator: _(({ props: h }) => [
|
|
3987
3987
|
b(u, Se({
|
|
@@ -4002,7 +4002,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
4002
4002
|
}, 1040)
|
|
4003
4003
|
]),
|
|
4004
4004
|
default: _(() => [
|
|
4005
|
-
d("span", null, G(
|
|
4005
|
+
d("span", null, G(V(n).getLabel(o.value)), 1)
|
|
4006
4006
|
]),
|
|
4007
4007
|
_: 1
|
|
4008
4008
|
});
|
|
@@ -4549,10 +4549,10 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
4549
4549
|
e("closeTutorial", n.value);
|
|
4550
4550
|
}
|
|
4551
4551
|
return (v, u) => {
|
|
4552
|
-
const r =
|
|
4552
|
+
const r = T("v-icon"), h = T("v-card-title"), k = T("v-btn"), f = T("v-divider"), c = T("v-card-text"), g = T("v-card-actions"), S = T("v-card"), I = T("v-expand-transition"), y = T("v-checkbox");
|
|
4553
4553
|
return m(), E(Ee, { name: "fade-transition" }, {
|
|
4554
4554
|
default: _(() => [
|
|
4555
|
-
b(
|
|
4555
|
+
b(S, {
|
|
4556
4556
|
class: "mx-auto",
|
|
4557
4557
|
elevation: "16"
|
|
4558
4558
|
}, {
|
|
@@ -4565,13 +4565,13 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
4565
4565
|
]),
|
|
4566
4566
|
_: 1
|
|
4567
4567
|
}),
|
|
4568
|
-
ee(" " + G(
|
|
4568
|
+
ee(" " + G(V(t).getLabel("disclaimer")), 1)
|
|
4569
4569
|
]),
|
|
4570
4570
|
_: 1
|
|
4571
4571
|
}),
|
|
4572
4572
|
b(c, { class: "pb-0" }, {
|
|
4573
4573
|
default: _(() => [
|
|
4574
|
-
d("p", null, G(
|
|
4574
|
+
d("p", null, G(V(t).getLabel("disclaimerTextShort")), 1),
|
|
4575
4575
|
b(k, {
|
|
4576
4576
|
variant: "tonal",
|
|
4577
4577
|
size: "small",
|
|
@@ -4579,7 +4579,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
4579
4579
|
class: "text-capitalize mt-2"
|
|
4580
4580
|
}, {
|
|
4581
4581
|
default: _(() => [
|
|
4582
|
-
ee(G(
|
|
4582
|
+
ee(G(V(t).getLabel("learnMore")) + " ", 1),
|
|
4583
4583
|
b(r, null, {
|
|
4584
4584
|
default: _(() => [
|
|
4585
4585
|
ee("mdi-chevron-right")
|
|
@@ -4594,43 +4594,43 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
4594
4594
|
d("div", sl, [
|
|
4595
4595
|
d("div", rl, [
|
|
4596
4596
|
il,
|
|
4597
|
-
d("div", ul, G(
|
|
4597
|
+
d("div", ul, G(V(t).getLabel("clickAndDragToLookAround")), 1)
|
|
4598
4598
|
]),
|
|
4599
4599
|
d("div", cl, [
|
|
4600
4600
|
dl,
|
|
4601
|
-
d("div", vl, G(
|
|
4601
|
+
d("div", vl, G(V(t).getLabel("clickOnTheCirclesToMoveAround")), 1)
|
|
4602
4602
|
]),
|
|
4603
4603
|
d("div", ml, [
|
|
4604
4604
|
pl,
|
|
4605
|
-
d("div", fl, G(
|
|
4605
|
+
d("div", fl, G(V(t).getLabel("useTheMouseWheelToZoom")), 1)
|
|
4606
4606
|
]),
|
|
4607
4607
|
d("div", hl, [
|
|
4608
4608
|
gl,
|
|
4609
|
-
d("div", yl, G(
|
|
4609
|
+
d("div", yl, G(V(t).getLabel("youCanAlsoUseTheArrowKeysToMoveAround")), 1)
|
|
4610
4610
|
])
|
|
4611
4611
|
])
|
|
4612
4612
|
])),
|
|
4613
4613
|
i.value ? (m(), A("div", _l, [
|
|
4614
4614
|
d("div", bl, [
|
|
4615
4615
|
Cl,
|
|
4616
|
-
d("div", kl, G(
|
|
4616
|
+
d("div", kl, G(V(t).getLabel("tapAndDragToLookAround")), 1)
|
|
4617
4617
|
]),
|
|
4618
4618
|
d("div", wl, [
|
|
4619
4619
|
Il,
|
|
4620
|
-
d("div", Sl, G(
|
|
4620
|
+
d("div", Sl, G(V(t).getLabel("tapOnTheCirclesToMoveAround")), 1)
|
|
4621
4621
|
]),
|
|
4622
4622
|
d("div", Dl, [
|
|
4623
4623
|
xl,
|
|
4624
|
-
d("div", Al, G(
|
|
4624
|
+
d("div", Al, G(V(t).getLabel("useTwoFingersToZoom")), 1)
|
|
4625
4625
|
])
|
|
4626
4626
|
])) : $("", !0),
|
|
4627
4627
|
b(f, { class: "my-1" })
|
|
4628
4628
|
]),
|
|
4629
4629
|
_: 1
|
|
4630
4630
|
}),
|
|
4631
|
-
b(
|
|
4631
|
+
b(I, null, {
|
|
4632
4632
|
default: _(() => [
|
|
4633
|
-
o.value ? (m(), E(
|
|
4633
|
+
o.value ? (m(), E(S, {
|
|
4634
4634
|
key: 0,
|
|
4635
4635
|
class: "position-absolute w-100 bg-white",
|
|
4636
4636
|
height: "100%",
|
|
@@ -4646,9 +4646,9 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
4646
4646
|
]),
|
|
4647
4647
|
_: 1
|
|
4648
4648
|
}),
|
|
4649
|
-
ee(" " + G(
|
|
4649
|
+
ee(" " + G(V(t).getLabel("disclaimer")), 1)
|
|
4650
4650
|
]),
|
|
4651
|
-
d("p", Ll, G(
|
|
4651
|
+
d("p", Ll, G(V(t).getLabel("disclaimerText")), 1)
|
|
4652
4652
|
]),
|
|
4653
4653
|
_: 1
|
|
4654
4654
|
}),
|
|
@@ -4667,7 +4667,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
4667
4667
|
]),
|
|
4668
4668
|
_: 1
|
|
4669
4669
|
}),
|
|
4670
|
-
ee(" " + G(
|
|
4670
|
+
ee(" " + G(V(t).getLabel("back")), 1)
|
|
4671
4671
|
]),
|
|
4672
4672
|
_: 1
|
|
4673
4673
|
})
|
|
@@ -4688,7 +4688,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
4688
4688
|
"hide-details": ""
|
|
4689
4689
|
}, {
|
|
4690
4690
|
label: _(() => [
|
|
4691
|
-
d("span", Tl, G(
|
|
4691
|
+
d("span", Tl, G(V(t).getLabel("dontShowAgain")), 1)
|
|
4692
4692
|
]),
|
|
4693
4693
|
_: 1
|
|
4694
4694
|
}, 8, ["modelValue"])
|
|
@@ -4701,7 +4701,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
4701
4701
|
block: ""
|
|
4702
4702
|
}, {
|
|
4703
4703
|
default: _(() => [
|
|
4704
|
-
ee(G(
|
|
4704
|
+
ee(G(V(t).getLabel("iUnderstand")), 1)
|
|
4705
4705
|
]),
|
|
4706
4706
|
_: 1
|
|
4707
4707
|
})
|
|
@@ -4745,8 +4745,8 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
4745
4745
|
);
|
|
4746
4746
|
const o = O(() => {
|
|
4747
4747
|
let c = {};
|
|
4748
|
-
for (const [g,
|
|
4749
|
-
g === "whitePoint" ? c[g] = r(
|
|
4748
|
+
for (const [g, S] of Object.entries(n.value))
|
|
4749
|
+
g === "whitePoint" ? c[g] = r(S.value) : c[g] = S.value;
|
|
4750
4750
|
return c;
|
|
4751
4751
|
});
|
|
4752
4752
|
function i() {
|
|
@@ -4767,15 +4767,15 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
4767
4767
|
n.value = f(), t("updateSettings", o.value);
|
|
4768
4768
|
}
|
|
4769
4769
|
function r(c) {
|
|
4770
|
-
const g = parseInt(c.substr(1, 2), 16) / 255,
|
|
4771
|
-
return [g,
|
|
4770
|
+
const g = parseInt(c.substr(1, 2), 16) / 255, S = parseInt(c.substr(3, 2), 16) / 255, I = parseInt(c.substr(5, 2), 16) / 255;
|
|
4771
|
+
return [g, S, I];
|
|
4772
4772
|
}
|
|
4773
4773
|
function h(c) {
|
|
4774
4774
|
var g = c.toString(16);
|
|
4775
4775
|
return g.length == 1 ? "0" + g : g;
|
|
4776
4776
|
}
|
|
4777
|
-
function k([c, g,
|
|
4778
|
-
return "#" + h(parseInt((c * 255).toString())) + h(parseInt((g * 255).toString())) + h(parseInt((
|
|
4777
|
+
function k([c, g, S]) {
|
|
4778
|
+
return "#" + h(parseInt((c * 255).toString())) + h(parseInt((g * 255).toString())) + h(parseInt((S * 255).toString()));
|
|
4779
4779
|
}
|
|
4780
4780
|
function f(c = {}) {
|
|
4781
4781
|
const g = [
|
|
@@ -4791,7 +4791,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
4791
4791
|
"Warm 5",
|
|
4792
4792
|
"bw"
|
|
4793
4793
|
];
|
|
4794
|
-
let
|
|
4794
|
+
let S = {
|
|
4795
4795
|
temperature: 6500,
|
|
4796
4796
|
targetLuminance: 1,
|
|
4797
4797
|
exposureFovScale: 0.6,
|
|
@@ -4810,7 +4810,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
4810
4810
|
min: 0,
|
|
4811
4811
|
max: 1,
|
|
4812
4812
|
step: 0.01,
|
|
4813
|
-
value:
|
|
4813
|
+
value: S.exposureFovScale
|
|
4814
4814
|
},
|
|
4815
4815
|
targetLuminance: {
|
|
4816
4816
|
label: "Target Luminance",
|
|
@@ -4818,7 +4818,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
4818
4818
|
min: 0,
|
|
4819
4819
|
max: 15,
|
|
4820
4820
|
step: 0.1,
|
|
4821
|
-
value:
|
|
4821
|
+
value: S.targetLuminance
|
|
4822
4822
|
},
|
|
4823
4823
|
sharpenFilter_amount: {
|
|
4824
4824
|
label: "Sharpen Filter Amount",
|
|
@@ -4826,12 +4826,12 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
4826
4826
|
min: 0,
|
|
4827
4827
|
max: 100,
|
|
4828
4828
|
step: 0.1,
|
|
4829
|
-
value:
|
|
4829
|
+
value: S.sharpenFilter_amount
|
|
4830
4830
|
},
|
|
4831
4831
|
UNREAL_BLOOM_ENABLED: {
|
|
4832
4832
|
label: "Enable Bloom?",
|
|
4833
4833
|
type: "boolean",
|
|
4834
|
-
value:
|
|
4834
|
+
value: S.UNREAL_BLOOM_ENABLED
|
|
4835
4835
|
},
|
|
4836
4836
|
UNREAL_BLOOM_STRENGTH: {
|
|
4837
4837
|
label: "Bloom Strength",
|
|
@@ -4839,7 +4839,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
4839
4839
|
min: 0,
|
|
4840
4840
|
max: 1,
|
|
4841
4841
|
step: 0.01,
|
|
4842
|
-
value:
|
|
4842
|
+
value: S.UNREAL_BLOOM_STRENGTH
|
|
4843
4843
|
},
|
|
4844
4844
|
TRANSITION_MOVEMENT_SCALE: {
|
|
4845
4845
|
label: "Transition Movement Speed",
|
|
@@ -4847,7 +4847,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
4847
4847
|
min: 0.2,
|
|
4848
4848
|
max: 25,
|
|
4849
4849
|
step: 0.1,
|
|
4850
|
-
value:
|
|
4850
|
+
value: S.TRANSITION_MOVEMENT_SCALE
|
|
4851
4851
|
},
|
|
4852
4852
|
temperature: {
|
|
4853
4853
|
label: "Temperature / White Balance",
|
|
@@ -4855,26 +4855,26 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
4855
4855
|
min: 1e3,
|
|
4856
4856
|
max: 12e3,
|
|
4857
4857
|
step: 1,
|
|
4858
|
-
value:
|
|
4858
|
+
value: S.temperature
|
|
4859
4859
|
},
|
|
4860
4860
|
whitePoint: {
|
|
4861
4861
|
label: "White Point",
|
|
4862
4862
|
type: "color",
|
|
4863
|
-
value: k(
|
|
4863
|
+
value: k(S.whitePoint)
|
|
4864
4864
|
},
|
|
4865
4865
|
lut: {
|
|
4866
4866
|
label: "Lut",
|
|
4867
4867
|
type: "lut",
|
|
4868
|
-
items: g.map((
|
|
4869
|
-
text:
|
|
4870
|
-
value: `https://cdn.visuado.com/luts/${
|
|
4868
|
+
items: g.map((I) => ({
|
|
4869
|
+
text: I,
|
|
4870
|
+
value: `https://cdn.visuado.com/luts/${I}.png`
|
|
4871
4871
|
})),
|
|
4872
|
-
value:
|
|
4872
|
+
value: S.lut
|
|
4873
4873
|
}
|
|
4874
4874
|
};
|
|
4875
4875
|
}
|
|
4876
4876
|
return (c, g) => {
|
|
4877
|
-
const
|
|
4877
|
+
const S = T("v-text-field"), I = T("v-slider"), y = T("v-checkbox"), R = T("v-btn"), F = T("v-select"), Y = T("v-icon");
|
|
4878
4878
|
return m(), A("div", Bl, [
|
|
4879
4879
|
d("form", $l, [
|
|
4880
4880
|
d("div", Rl, [
|
|
@@ -4882,7 +4882,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
4882
4882
|
key: W,
|
|
4883
4883
|
"d-block": ""
|
|
4884
4884
|
}, [
|
|
4885
|
-
D.type === "slider" ? (m(), E(
|
|
4885
|
+
D.type === "slider" ? (m(), E(I, {
|
|
4886
4886
|
key: 0,
|
|
4887
4887
|
modelValue: n.value[C].value,
|
|
4888
4888
|
"onUpdate:modelValue": (L) => n.value[C].value = L,
|
|
@@ -4896,7 +4896,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
4896
4896
|
]),
|
|
4897
4897
|
append: _(() => [
|
|
4898
4898
|
d("div", null, [
|
|
4899
|
-
b(
|
|
4899
|
+
b(S, {
|
|
4900
4900
|
modelValue: n.value[C].value,
|
|
4901
4901
|
"onUpdate:modelValue": (L) => n.value[C].value = L,
|
|
4902
4902
|
"hide-details": "",
|
|
@@ -4945,7 +4945,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
4945
4945
|
])
|
|
4946
4946
|
]),
|
|
4947
4947
|
d("div", null, [
|
|
4948
|
-
b(
|
|
4948
|
+
b(S, {
|
|
4949
4949
|
modelValue: n.value[C].value,
|
|
4950
4950
|
"onUpdate:modelValue": (L) => n.value[C].value = L,
|
|
4951
4951
|
"hide-details": "",
|
|
@@ -4993,7 +4993,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
4993
4993
|
Zl,
|
|
4994
4994
|
d("div", ql, [
|
|
4995
4995
|
d("div", null, [
|
|
4996
|
-
b(
|
|
4996
|
+
b(S, {
|
|
4997
4997
|
modelValue: n.value[C].value,
|
|
4998
4998
|
"onUpdate:modelValue": (L) => n.value[C].value = L,
|
|
4999
4999
|
"hide-details": "",
|
|
@@ -5071,13 +5071,13 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
5071
5071
|
s.addEventListener("touchstart", k, { passive: !1 }), s.addEventListener("touchend", c, { passive: !1 }), s.addEventListener("mousedown", k, { passive: !1 }), s.addEventListener("mouseup", c, { passive: !1 });
|
|
5072
5072
|
function k(g) {
|
|
5073
5073
|
g = g || window.event, g.preventDefault();
|
|
5074
|
-
let
|
|
5075
|
-
g.type === "touchstart" && (
|
|
5074
|
+
let S = g;
|
|
5075
|
+
g.type === "touchstart" && (S = g.touches[0]), r = S.clientX, h = S.clientY, document.addEventListener("mouseup", c, { passive: !1 }), document.addEventListener("touchend", c, { passive: !1 }), document.addEventListener("mousemove", f, { passive: !1 }), document.addEventListener("touchmove", f, { passive: !1 });
|
|
5076
5076
|
}
|
|
5077
5077
|
function f(g) {
|
|
5078
5078
|
g = g || window.event, g.preventDefault();
|
|
5079
|
-
let
|
|
5080
|
-
g.type === "touchmove" && (
|
|
5079
|
+
let S = g;
|
|
5080
|
+
g.type === "touchmove" && (S = g.touches[0]), v = r - S.clientX, u = h - S.clientY, r = S.clientX, h = S.clientY, i.style.top = i.offsetTop - u + "px", i.style.left = i.offsetLeft - v + "px";
|
|
5081
5081
|
}
|
|
5082
5082
|
function c() {
|
|
5083
5083
|
document.removeEventListener("mouseup", c, !1), document.removeEventListener("mousemove", f, !1), document.removeEventListener("touchend", c, !1), document.removeEventListener("touchmove", f, !1);
|
|
@@ -5087,7 +5087,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
5087
5087
|
t.value === "big" ? t.value = "small" : t.value = "big";
|
|
5088
5088
|
}
|
|
5089
5089
|
return (i, s) => {
|
|
5090
|
-
const v =
|
|
5090
|
+
const v = T("v-btn");
|
|
5091
5091
|
return m(), A("div", {
|
|
5092
5092
|
id: "moveableDiv",
|
|
5093
5093
|
class: he(["big d-flex justify-space-between flex-column align-center sizer", t.value])
|
|
@@ -5167,7 +5167,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
5167
5167
|
...C,
|
|
5168
5168
|
...F(n.value, L)
|
|
5169
5169
|
};
|
|
5170
|
-
})), g = O(() => `background-image: url(${a.backgroundImage});`),
|
|
5170
|
+
})), g = O(() => `background-image: url(${a.backgroundImage});`), S = O(() => {
|
|
5171
5171
|
let C = s.value > 1 ? 1 : s.value;
|
|
5172
5172
|
return C < 0.8 && (C = 0.4), `scale: ${C > 1 ? 1 : C}; transform: rotate(${a.transformAngle}deg);`;
|
|
5173
5173
|
});
|
|
@@ -5180,7 +5180,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
5180
5180
|
}), Ye(() => {
|
|
5181
5181
|
v.value && v.value.unobserve(document.getElementById("moveableDiv"));
|
|
5182
5182
|
});
|
|
5183
|
-
function
|
|
5183
|
+
function I(C) {
|
|
5184
5184
|
return He.MathUtils.degToRad(C);
|
|
5185
5185
|
}
|
|
5186
5186
|
function y() {
|
|
@@ -5205,7 +5205,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
5205
5205
|
}
|
|
5206
5206
|
function Y() {
|
|
5207
5207
|
const C = a.storey.position.y - f.value;
|
|
5208
|
-
t.value = 2 * (C * Math.tan(
|
|
5208
|
+
t.value = 2 * (C * Math.tan(I(a.storey.fovY / 2))), e.value = 512 / 384 * t.value;
|
|
5209
5209
|
const W = t.value / 2, L = e.value / 2, Z = new He.Vector3(L * -1, 0, W * -1);
|
|
5210
5210
|
n.value = Z;
|
|
5211
5211
|
}
|
|
@@ -5220,7 +5220,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
5220
5220
|
d("div", ms, [
|
|
5221
5221
|
d("div", {
|
|
5222
5222
|
class: "web-minimap",
|
|
5223
|
-
style: ue(
|
|
5223
|
+
style: ue(S.value)
|
|
5224
5224
|
}, [
|
|
5225
5225
|
d("div", {
|
|
5226
5226
|
class: "minimap-background-image",
|
|
@@ -5284,8 +5284,8 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
5284
5284
|
setup(l, { emit: a }) {
|
|
5285
5285
|
const e = l, t = a, n = p((/* @__PURE__ */ new Date()).getHours()), o = p(!0), i = p(!0), s = p(""), v = p(/* @__PURE__ */ new Map()), u = O(() => e.minimapJson.storeys[e.level]), r = O(() => `${Math.floor(n.value).toString().padStart(2, "0")}:00`), h = O(() => {
|
|
5286
5286
|
if (u.value.sunsimFilesTimeStamps[n.value]) {
|
|
5287
|
-
const
|
|
5288
|
-
return `${
|
|
5287
|
+
const I = u.value.sunsimFilesTimeStamps[n.value].split(" ");
|
|
5288
|
+
return `${I[0]} ${I[1]}`;
|
|
5289
5289
|
}
|
|
5290
5290
|
return "";
|
|
5291
5291
|
});
|
|
@@ -5293,11 +5293,11 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
5293
5293
|
s.value = await c(
|
|
5294
5294
|
u.value.sunsimFiles[n.value]
|
|
5295
5295
|
), i.value = !1;
|
|
5296
|
-
const
|
|
5297
|
-
v.value =
|
|
5296
|
+
const I = await f(e.minimapJson.storeys);
|
|
5297
|
+
v.value = I, o.value = !1, t("setBackgroundImage", k(e.level, n.value));
|
|
5298
5298
|
}), H(n, () => {
|
|
5299
|
-
const
|
|
5300
|
-
t("setBackgroundImage",
|
|
5299
|
+
const I = k(e.level, n.value);
|
|
5300
|
+
t("setBackgroundImage", I);
|
|
5301
5301
|
}), H(
|
|
5302
5302
|
() => e.level,
|
|
5303
5303
|
() => {
|
|
@@ -5305,13 +5305,13 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
5305
5305
|
},
|
|
5306
5306
|
{ immediate: !0 }
|
|
5307
5307
|
);
|
|
5308
|
-
function k(
|
|
5309
|
-
return v.value.get(`sunsim${
|
|
5308
|
+
function k(I, y) {
|
|
5309
|
+
return v.value.get(`sunsim${I}_${y}`) ? v.value.get(`sunsim${I}_${y}`) : "";
|
|
5310
5310
|
}
|
|
5311
|
-
async function f(
|
|
5311
|
+
async function f(I) {
|
|
5312
5312
|
let y = /* @__PURE__ */ new Map();
|
|
5313
|
-
for (let R = 0; R <
|
|
5314
|
-
const F =
|
|
5313
|
+
for (let R = 0; R < I.length; R++) {
|
|
5314
|
+
const F = I[R].sunsimFiles;
|
|
5315
5315
|
for (let Y = 0; Y < F.length; Y++) {
|
|
5316
5316
|
const D = F[Y];
|
|
5317
5317
|
try {
|
|
@@ -5324,29 +5324,29 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
5324
5324
|
}
|
|
5325
5325
|
return y;
|
|
5326
5326
|
}
|
|
5327
|
-
async function c(
|
|
5327
|
+
async function c(I) {
|
|
5328
5328
|
const R = await (await fetch(
|
|
5329
5329
|
ce(
|
|
5330
5330
|
e.cdnFileResolver,
|
|
5331
|
-
`/${e.apartmentJson.type}/${e.apartmentJson.id}/minimap/${
|
|
5331
|
+
`/${e.apartmentJson.type}/${e.apartmentJson.id}/minimap/${I}`
|
|
5332
5332
|
)
|
|
5333
|
-
)).blob(), F = await
|
|
5333
|
+
)).blob(), F = await S(R);
|
|
5334
5334
|
return g(F);
|
|
5335
5335
|
}
|
|
5336
|
-
function g(
|
|
5337
|
-
return "data:image/jpeg;base64," +
|
|
5336
|
+
function g(I) {
|
|
5337
|
+
return "data:image/jpeg;base64," + I;
|
|
5338
5338
|
}
|
|
5339
|
-
async function I
|
|
5339
|
+
async function S(I) {
|
|
5340
5340
|
return new Promise((y, R) => {
|
|
5341
5341
|
const F = new FileReader();
|
|
5342
5342
|
F.onload = () => {
|
|
5343
5343
|
const Y = F.result.split(",")[1];
|
|
5344
5344
|
y(Y);
|
|
5345
|
-
}, F.onerror = R, F.readAsDataURL(
|
|
5345
|
+
}, F.onerror = R, F.readAsDataURL(I);
|
|
5346
5346
|
});
|
|
5347
5347
|
}
|
|
5348
|
-
return (
|
|
5349
|
-
const R =
|
|
5348
|
+
return (I, y) => {
|
|
5349
|
+
const R = T("v-progress-linear"), F = T("v-icon"), Y = T("v-slider");
|
|
5350
5350
|
return m(), A("div", ys, [
|
|
5351
5351
|
d("div", _s, [
|
|
5352
5352
|
d("div", bs, [
|
|
@@ -5448,7 +5448,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
5448
5448
|
_: 1
|
|
5449
5449
|
}));
|
|
5450
5450
|
}
|
|
5451
|
-
}),
|
|
5451
|
+
}), wt = /* @__PURE__ */ K(Is, [["__scopeId", "data-v-898e645b"]]), Ss = 37, Ds = 39, xs = /* @__PURE__ */ j({
|
|
5452
5452
|
__name: "VWaypointCarousel",
|
|
5453
5453
|
props: {
|
|
5454
5454
|
thumbnails: {},
|
|
@@ -5487,7 +5487,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
5487
5487
|
r(), t("goto", u);
|
|
5488
5488
|
}
|
|
5489
5489
|
return (u, r) => {
|
|
5490
|
-
const h =
|
|
5490
|
+
const h = T("v-btn"), k = T("v-img"), f = T("v-card"), c = T("v-slide-group-item"), g = T("v-slide-group");
|
|
5491
5491
|
return m(), A("div", {
|
|
5492
5492
|
class: he({
|
|
5493
5493
|
mobileWaypointWrapper: i.value,
|
|
@@ -5497,7 +5497,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
5497
5497
|
}, [
|
|
5498
5498
|
b(g, {
|
|
5499
5499
|
modelValue: o.value,
|
|
5500
|
-
"onUpdate:modelValue": r[2] || (r[2] = (
|
|
5500
|
+
"onUpdate:modelValue": r[2] || (r[2] = (S) => o.value = S),
|
|
5501
5501
|
class: he({ mobileWaypoint: i.value }),
|
|
5502
5502
|
"active-class": "active-apt",
|
|
5503
5503
|
"selected-class": "active-apt",
|
|
@@ -5511,7 +5511,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
5511
5511
|
icon: "mdi-chevron-left",
|
|
5512
5512
|
varient: "tonal",
|
|
5513
5513
|
size: "small",
|
|
5514
|
-
onClick: r[0] || (r[0] = (
|
|
5514
|
+
onClick: r[0] || (r[0] = (S) => t("previous"))
|
|
5515
5515
|
}, null, 8, ["class"])
|
|
5516
5516
|
]),
|
|
5517
5517
|
next: _(() => [
|
|
@@ -5520,14 +5520,14 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
5520
5520
|
icon: "mdi-chevron-right",
|
|
5521
5521
|
varient: "tonal",
|
|
5522
5522
|
size: "small",
|
|
5523
|
-
onClick: r[1] || (r[1] = (
|
|
5523
|
+
onClick: r[1] || (r[1] = (S) => t("next"))
|
|
5524
5524
|
}, null, 8, ["class"])
|
|
5525
5525
|
]),
|
|
5526
5526
|
default: _(() => [
|
|
5527
|
-
(m(!0), A(ie, null, ve(u.thumbnails, (
|
|
5528
|
-
key:
|
|
5527
|
+
(m(!0), A(ie, null, ve(u.thumbnails, (S) => (m(), E(c, {
|
|
5528
|
+
key: S.id
|
|
5529
5529
|
}, {
|
|
5530
|
-
default: _(({ toggle:
|
|
5530
|
+
default: _(({ toggle: I, selectedClass: y }) => [
|
|
5531
5531
|
b(f, {
|
|
5532
5532
|
class: he([
|
|
5533
5533
|
i.value ? "ma-0" : "ma-1",
|
|
@@ -5537,13 +5537,13 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
5537
5537
|
align: "center",
|
|
5538
5538
|
justify: "center",
|
|
5539
5539
|
style: { overflow: "hidden" },
|
|
5540
|
-
onClick: (R) => v(
|
|
5540
|
+
onClick: (R) => v(S.id, I)
|
|
5541
5541
|
}, {
|
|
5542
5542
|
default: _(() => [
|
|
5543
5543
|
b(k, {
|
|
5544
5544
|
cover: "",
|
|
5545
5545
|
"aspect-ratio": 1,
|
|
5546
|
-
src:
|
|
5546
|
+
src: S.thumbnailUrl
|
|
5547
5547
|
}, null, 8, ["src"])
|
|
5548
5548
|
]),
|
|
5549
5549
|
_: 2
|
|
@@ -5589,7 +5589,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
5589
5589
|
navigator.clipboard.writeText(location.href);
|
|
5590
5590
|
}
|
|
5591
5591
|
return (v, u) => {
|
|
5592
|
-
const r =
|
|
5592
|
+
const r = T("v-btn"), h = T("v-tooltip"), k = T("v-toolbar-title"), f = T("v-spacer"), c = T("v-toolbar"), g = T("v-card-text"), S = T("v-card"), I = T("v-dialog");
|
|
5593
5593
|
return m(), A("div", null, [
|
|
5594
5594
|
b(h, {
|
|
5595
5595
|
elevation: "2",
|
|
@@ -5605,18 +5605,18 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
5605
5605
|
}, y), null, 16)
|
|
5606
5606
|
]),
|
|
5607
5607
|
default: _(() => [
|
|
5608
|
-
d("span", null, G(
|
|
5608
|
+
d("span", null, G(V(a).getLabel("share")), 1)
|
|
5609
5609
|
]),
|
|
5610
5610
|
_: 1
|
|
5611
5611
|
}),
|
|
5612
|
-
b(
|
|
5612
|
+
b(I, {
|
|
5613
5613
|
id: "share-box",
|
|
5614
5614
|
width: "400",
|
|
5615
5615
|
modelValue: e.value,
|
|
5616
5616
|
"onUpdate:modelValue": u[2] || (u[2] = (y) => e.value = y)
|
|
5617
5617
|
}, {
|
|
5618
5618
|
default: _(() => [
|
|
5619
|
-
b(
|
|
5619
|
+
b(S, null, {
|
|
5620
5620
|
default: _(() => [
|
|
5621
5621
|
b(c, { elevation: "0" }, {
|
|
5622
5622
|
default: _(() => [
|
|
@@ -5627,7 +5627,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
5627
5627
|
}),
|
|
5628
5628
|
b(k, null, {
|
|
5629
5629
|
default: _(() => [
|
|
5630
|
-
ee(G(
|
|
5630
|
+
ee(G(V(a).getLabel("share")), 1)
|
|
5631
5631
|
]),
|
|
5632
5632
|
_: 1
|
|
5633
5633
|
}),
|
|
@@ -5648,7 +5648,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
5648
5648
|
}, y, { onClick: n }), null, 16)
|
|
5649
5649
|
]),
|
|
5650
5650
|
default: _(() => [
|
|
5651
|
-
d("span", null, G(
|
|
5651
|
+
d("span", null, G(V(a).getLabel("shareToFacebook")), 1)
|
|
5652
5652
|
]),
|
|
5653
5653
|
_: 1
|
|
5654
5654
|
}),
|
|
@@ -5662,7 +5662,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
5662
5662
|
}, y, { onClick: i }), null, 16)
|
|
5663
5663
|
]),
|
|
5664
5664
|
default: _(() => [
|
|
5665
|
-
d("span", null, G(
|
|
5665
|
+
d("span", null, G(V(a).getLabel("shareToLinkedin")), 1)
|
|
5666
5666
|
]),
|
|
5667
5667
|
_: 1
|
|
5668
5668
|
}),
|
|
@@ -5676,7 +5676,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
5676
5676
|
}, y, { onClick: o }), null, 16)
|
|
5677
5677
|
]),
|
|
5678
5678
|
default: _(() => [
|
|
5679
|
-
d("span", null, G(
|
|
5679
|
+
d("span", null, G(V(a).getLabel("shareToTwitter")), 1)
|
|
5680
5680
|
]),
|
|
5681
5681
|
_: 1
|
|
5682
5682
|
}),
|
|
@@ -5692,7 +5692,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
5692
5692
|
}, y), null, 16, ["href"])
|
|
5693
5693
|
]),
|
|
5694
5694
|
default: _(() => [
|
|
5695
|
-
d("span", null, G(
|
|
5695
|
+
d("span", null, G(V(a).getLabel("shareViaEmail")), 1)
|
|
5696
5696
|
]),
|
|
5697
5697
|
_: 1
|
|
5698
5698
|
}),
|
|
@@ -5707,7 +5707,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
5707
5707
|
}, y), null, 16)
|
|
5708
5708
|
]),
|
|
5709
5709
|
default: _(() => [
|
|
5710
|
-
d("span", null, G(
|
|
5710
|
+
d("span", null, G(V(a).getLabel("copyLink")), 1)
|
|
5711
5711
|
]),
|
|
5712
5712
|
_: 1
|
|
5713
5713
|
}),
|
|
@@ -5752,7 +5752,7 @@ const bo = { id: "player-wrapper" }, Co = { id: "player-sizer" }, ko = {
|
|
|
5752
5752
|
setup(l, { emit: a }) {
|
|
5753
5753
|
const e = a;
|
|
5754
5754
|
return (t, n) => {
|
|
5755
|
-
const o =
|
|
5755
|
+
const o = T("v-btn");
|
|
5756
5756
|
return m(), A("div", Vs, [
|
|
5757
5757
|
b(o, {
|
|
5758
5758
|
density: "comfortable",
|
|
@@ -5870,7 +5870,7 @@ const Es = {
|
|
|
5870
5870
|
takeSnapshot: dt,
|
|
5871
5871
|
setCurrentCamera: U
|
|
5872
5872
|
});
|
|
5873
|
-
const o = p(!1), i = p(!1), s = p(!1), v = p(), u = p(), r = p(), h = p(), k = p(), f = p(0), c = p(), g = p(),
|
|
5873
|
+
const o = p(!1), i = p(!1), s = p(!1), v = p(), u = p(), r = p(), h = p(), k = p(), f = p(0), c = p(), g = p(), S = p(), I = p(0), y = p(0), R = p(0), F = p(!1), Y = p(!1), D = p(!1), C = p(
|
|
5874
5874
|
new Ot(document, "player-wrapper")
|
|
5875
5875
|
), W = O(() => {
|
|
5876
5876
|
if (u.value) {
|
|
@@ -5954,7 +5954,7 @@ const Es = {
|
|
|
5954
5954
|
t.apartmentId
|
|
5955
5955
|
), r.value) {
|
|
5956
5956
|
let x = t.defaultWaypointIndex !== null ? t.defaultWaypointIndex : 0;
|
|
5957
|
-
f.value = x, g.value = r.value.cameras[x].id,
|
|
5957
|
+
f.value = x, g.value = r.value.cameras[x].id, S.value = r.value.cameras[x].id;
|
|
5958
5958
|
}
|
|
5959
5959
|
t.showMiniMap && (h.value = await De(
|
|
5960
5960
|
c.value,
|
|
@@ -6058,13 +6058,13 @@ const Es = {
|
|
|
6058
6058
|
g.value = x;
|
|
6059
6059
|
}
|
|
6060
6060
|
function te(x) {
|
|
6061
|
-
c.value = x, n("onInteriorUpdate", x), n("onCameraUpdate",
|
|
6061
|
+
c.value = x, n("onInteriorUpdate", x), n("onCameraUpdate", S.value, u.value);
|
|
6062
6062
|
}
|
|
6063
6063
|
function z(x) {
|
|
6064
|
-
_e(x, !1),
|
|
6064
|
+
_e(x, !1), S.value = x, n("onCameraUpdate", x, u.value);
|
|
6065
6065
|
}
|
|
6066
6066
|
function N(x) {
|
|
6067
|
-
|
|
6067
|
+
I.value = x;
|
|
6068
6068
|
}
|
|
6069
6069
|
function ae(x) {
|
|
6070
6070
|
y.value = x;
|
|
@@ -6098,7 +6098,7 @@ const Es = {
|
|
|
6098
6098
|
async function ot(x) {
|
|
6099
6099
|
const X = at(x);
|
|
6100
6100
|
try {
|
|
6101
|
-
return (await
|
|
6101
|
+
return (await mt.get(X)).data;
|
|
6102
6102
|
} catch (le) {
|
|
6103
6103
|
throw new Error(le);
|
|
6104
6104
|
}
|
|
@@ -6117,7 +6117,7 @@ const Es = {
|
|
|
6117
6117
|
}
|
|
6118
6118
|
const vt = O(() => /Android|webOS|iPhone|iPad|BlackBerry|Windows Phone|Opera Mini|IEMobile|Mobile/i.test(
|
|
6119
6119
|
window.navigator.userAgent
|
|
6120
|
-
)),
|
|
6120
|
+
)), Ct = O(() => vt.value ? "platform-mobile" : "platform-desktop"), Ut = (x = !1) => {
|
|
6121
6121
|
D.value = !0, o.value = !1, x && Ht();
|
|
6122
6122
|
}, Ht = () => {
|
|
6123
6123
|
const x = ce(
|
|
@@ -6135,25 +6135,25 @@ const Es = {
|
|
|
6135
6135
|
);
|
|
6136
6136
|
});
|
|
6137
6137
|
return (x, X) => {
|
|
6138
|
-
const le =
|
|
6138
|
+
const le = T("v-btn");
|
|
6139
6139
|
return m(), A("div", {
|
|
6140
|
-
class: he(["virtual-tour-wrapper", [
|
|
6140
|
+
class: he(["virtual-tour-wrapper", [Ct.value]])
|
|
6141
6141
|
}, [
|
|
6142
6142
|
s.value ? (m(), A("div", Es, "Error loading the player!!")) : $("", !0),
|
|
6143
6143
|
d("div", Os, [
|
|
6144
|
-
!C.value.isActive && h.value &&
|
|
6144
|
+
!C.value.isActive && h.value && S.value && oe.value && c.value && Y.value ? (m(), E(wt, {
|
|
6145
6145
|
key: 0,
|
|
6146
6146
|
"cdn-file-resolver": x.cdnFileResolver,
|
|
6147
6147
|
"apartment-json": u.value,
|
|
6148
6148
|
level: L.value,
|
|
6149
6149
|
"minimap-json": h.value,
|
|
6150
|
-
rotation:
|
|
6151
|
-
"current-camera":
|
|
6150
|
+
rotation: I.value,
|
|
6151
|
+
"current-camera": S.value,
|
|
6152
6152
|
onClose: X[0] || (X[0] = (Ie) => Y.value = !1)
|
|
6153
6153
|
}, null, 8, ["cdn-file-resolver", "apartment-json", "level", "minimap-json", "rotation", "current-camera"])) : $("", !0),
|
|
6154
6154
|
c.value && g.value ? (m(), A("div", {
|
|
6155
6155
|
key: 1,
|
|
6156
|
-
class: he(["v-player", [
|
|
6156
|
+
class: he(["v-player", [Ct.value]])
|
|
6157
6157
|
}, [
|
|
6158
6158
|
b(Vo, {
|
|
6159
6159
|
"cdn-file-resolver": x.cdnFileResolver,
|
|
@@ -6224,7 +6224,7 @@ const Es = {
|
|
|
6224
6224
|
"top-center": _(() => []),
|
|
6225
6225
|
"top-right": _(() => [
|
|
6226
6226
|
u.value && x.showCompass ? pe((m(), A("div", $s, [
|
|
6227
|
-
b(Wo, { rotation:
|
|
6227
|
+
b(Wo, { rotation: I.value }, null, 8, ["rotation"])
|
|
6228
6228
|
], 512)), [
|
|
6229
6229
|
[ge, D.value]
|
|
6230
6230
|
]) : $("", !0),
|
|
@@ -6237,7 +6237,7 @@ const Es = {
|
|
|
6237
6237
|
minutes: B.value.minutes,
|
|
6238
6238
|
class: "time-of-day",
|
|
6239
6239
|
style: ue({
|
|
6240
|
-
cursor: h.value &&
|
|
6240
|
+
cursor: h.value && S.value && oe.value ? "pointer" : "default"
|
|
6241
6241
|
})
|
|
6242
6242
|
}, null, 8, ["hours", "minutes", "style"])) : $("", !0)
|
|
6243
6243
|
])
|
|
@@ -6261,13 +6261,13 @@ const Es = {
|
|
|
6261
6261
|
key: 0,
|
|
6262
6262
|
onCloseTutorial: X[5] || (X[5] = (Ie) => Ut(Ie))
|
|
6263
6263
|
})) : $("", !0),
|
|
6264
|
-
C.value.isActive && h.value &&
|
|
6264
|
+
C.value.isActive && h.value && S.value && oe.value && Y.value ? (m(), E(wt, {
|
|
6265
6265
|
key: 1,
|
|
6266
6266
|
"cdn-file-resolver": x.cdnFileResolver,
|
|
6267
6267
|
"apartment-json": u.value,
|
|
6268
6268
|
"minimap-json": h.value,
|
|
6269
|
-
rotation:
|
|
6270
|
-
"current-camera":
|
|
6269
|
+
rotation: I.value,
|
|
6270
|
+
"current-camera": S.value,
|
|
6271
6271
|
level: L.value,
|
|
6272
6272
|
onClose: X[6] || (X[6] = (Ie) => Y.value = !1)
|
|
6273
6273
|
}, null, 8, ["cdn-file-resolver", "apartment-json", "minimap-json", "rotation", "current-camera", "level"])) : $("", !0)
|
|
@@ -6468,7 +6468,7 @@ const Es = {
|
|
|
6468
6468
|
k != -1 && (e.value = k);
|
|
6469
6469
|
}
|
|
6470
6470
|
return (r, h) => {
|
|
6471
|
-
const k =
|
|
6471
|
+
const k = T("v-img"), f = T("v-btn");
|
|
6472
6472
|
return m(), A("div", lr, [
|
|
6473
6473
|
d("div", sr, [
|
|
6474
6474
|
d("div", null, [
|
|
@@ -6568,7 +6568,7 @@ const Es = {
|
|
|
6568
6568
|
src: o.value,
|
|
6569
6569
|
width: "100%"
|
|
6570
6570
|
}, null, 8, dr)), [
|
|
6571
|
-
[ge,
|
|
6571
|
+
[ge, V(n) && V(e) === V(n)]
|
|
6572
6572
|
]);
|
|
6573
6573
|
}
|
|
6574
6574
|
}), mr = /* @__PURE__ */ K(vr, [["__scopeId", "data-v-9630cdc0"]]), pr = /* @__PURE__ */ j({
|
|
@@ -6581,11 +6581,11 @@ const Es = {
|
|
|
6581
6581
|
},
|
|
6582
6582
|
setup(l) {
|
|
6583
6583
|
const a = l, { dayData: e, cdnFileResolver: t, currentTime: n } = Oe(a);
|
|
6584
|
-
return (o, i) => (m(!0), A(ie, null, ve(
|
|
6584
|
+
return (o, i) => (m(!0), A(ie, null, ve(V(e).timeSamples, (s) => (m(), E(mr, {
|
|
6585
6585
|
key: s.filename,
|
|
6586
6586
|
"time-sample-data": s,
|
|
6587
|
-
"cdn-file-resolver":
|
|
6588
|
-
"current-time":
|
|
6587
|
+
"cdn-file-resolver": V(t),
|
|
6588
|
+
"current-time": V(n)
|
|
6589
6589
|
}, null, 8, ["time-sample-data", "cdn-file-resolver", "current-time"]))), 128));
|
|
6590
6590
|
}
|
|
6591
6591
|
}), fr = ["src"], hr = /* @__PURE__ */ j({
|
|
@@ -6602,18 +6602,18 @@ const Es = {
|
|
|
6602
6602
|
t.value,
|
|
6603
6603
|
n.value.defaultFilename
|
|
6604
6604
|
));
|
|
6605
|
-
return (s, v) =>
|
|
6605
|
+
return (s, v) => V(e).sunsimDayOfYear ? (m(!0), A(ie, { key: 0 }, ve(V(e).sunsimDayOfYear, (u) => (m(), E(pr, {
|
|
6606
6606
|
key: u.dayOfYear,
|
|
6607
6607
|
"day-data": u,
|
|
6608
|
-
"cdn-file-resolver":
|
|
6608
|
+
"cdn-file-resolver": V(t),
|
|
6609
6609
|
"current-day": s.currentDay,
|
|
6610
|
-
"current-time":
|
|
6610
|
+
"current-time": V(o)
|
|
6611
6611
|
}, null, 8, ["day-data", "cdn-file-resolver", "current-day", "current-time"]))), 128)) : pe((m(), A("img", {
|
|
6612
6612
|
key: i.value,
|
|
6613
6613
|
src: i.value,
|
|
6614
6614
|
width: "100%"
|
|
6615
6615
|
}, null, 8, fr)), [
|
|
6616
|
-
[ge,
|
|
6616
|
+
[ge, V(n) === V(e)]
|
|
6617
6617
|
]);
|
|
6618
6618
|
}
|
|
6619
6619
|
}), gr = ["src"], yr = /* @__PURE__ */ j({
|
|
@@ -6630,11 +6630,11 @@ const Es = {
|
|
|
6630
6630
|
src: o.value,
|
|
6631
6631
|
class: "position-absolute top-left w-100 h-100"
|
|
6632
6632
|
}, null, 8, gr)), [
|
|
6633
|
-
[ge,
|
|
6633
|
+
[ge, V(e) === V(n)]
|
|
6634
6634
|
]);
|
|
6635
6635
|
}
|
|
6636
6636
|
}), _r = /* @__PURE__ */ K(yr, [["__scopeId", "data-v-a7a18237"]]);
|
|
6637
|
-
function
|
|
6637
|
+
function It(l) {
|
|
6638
6638
|
const a = /* @__PURE__ */ new Date(0);
|
|
6639
6639
|
return a.setUTCDate(l), a.toLocaleString("en-no", {
|
|
6640
6640
|
month: "short",
|
|
@@ -6642,6 +6642,7 @@ function mt(l) {
|
|
|
6642
6642
|
});
|
|
6643
6643
|
}
|
|
6644
6644
|
const br = {
|
|
6645
|
+
key: 0,
|
|
6645
6646
|
class: "d-inline-block",
|
|
6646
6647
|
style: { "vertical-align": "top" }
|
|
6647
6648
|
}, Cr = /* @__PURE__ */ j({
|
|
@@ -6665,32 +6666,31 @@ const br = {
|
|
|
6665
6666
|
)
|
|
6666
6667
|
);
|
|
6667
6668
|
}), (u, r) => {
|
|
6668
|
-
const h =
|
|
6669
|
-
return m(), A("div", br, [
|
|
6670
|
-
|
|
6671
|
-
activator: _(({ props:
|
|
6669
|
+
const h = T("v-btn"), k = T("v-field"), f = T("v-list-item-title"), c = T("v-list-item"), g = T("v-list"), S = T("v-menu");
|
|
6670
|
+
return V(n).sunsimDayOfYear.length > 0 ? (m(), A("div", br, [
|
|
6671
|
+
b(S, null, {
|
|
6672
|
+
activator: _(({ props: I }) => [
|
|
6672
6673
|
b(k, {
|
|
6673
6674
|
variant: "solo-filled",
|
|
6674
6675
|
rounded: "",
|
|
6675
6676
|
flat: ""
|
|
6676
6677
|
}, {
|
|
6677
6678
|
default: _(() => [
|
|
6678
|
-
|
|
6679
|
-
key: 0,
|
|
6679
|
+
b(h, Se({
|
|
6680
6680
|
variant: "text",
|
|
6681
6681
|
rounded: "",
|
|
6682
6682
|
flat: "",
|
|
6683
|
-
readonly:
|
|
6683
|
+
readonly: V(n).sunsimDayOfYear.length === 1,
|
|
6684
6684
|
"prepend-icon": "mdi-calendar-blank",
|
|
6685
|
-
"append-icon":
|
|
6686
|
-
disabled:
|
|
6687
|
-
size:
|
|
6688
|
-
},
|
|
6685
|
+
"append-icon": V(n).sunsimDayOfYear.length > 1 ? "mdi-menu-down" : void 0,
|
|
6686
|
+
disabled: V(i),
|
|
6687
|
+
size: V(t) ? "small" : void 0
|
|
6688
|
+
}, I), {
|
|
6689
6689
|
default: _(() => [
|
|
6690
|
-
ee(G(
|
|
6690
|
+
ee(G(V(It)(v.value)), 1)
|
|
6691
6691
|
]),
|
|
6692
6692
|
_: 2
|
|
6693
|
-
}, 1040, ["readonly", "append-icon", "disabled", "size"])
|
|
6693
|
+
}, 1040, ["readonly", "append-icon", "disabled", "size"])
|
|
6694
6694
|
]),
|
|
6695
6695
|
_: 2
|
|
6696
6696
|
}, 1024)
|
|
@@ -6698,15 +6698,15 @@ const br = {
|
|
|
6698
6698
|
default: _(() => [
|
|
6699
6699
|
b(g, null, {
|
|
6700
6700
|
default: _(() => [
|
|
6701
|
-
(m(!0), A(ie, null, ve(
|
|
6702
|
-
key:
|
|
6703
|
-
value:
|
|
6704
|
-
onClick: (
|
|
6701
|
+
(m(!0), A(ie, null, ve(V(n).sunsimDayOfYear, (I, y) => (m(), E(c, {
|
|
6702
|
+
key: y,
|
|
6703
|
+
value: y,
|
|
6704
|
+
onClick: (R) => v.value = I.dayOfYear
|
|
6705
6705
|
}, {
|
|
6706
6706
|
default: _(() => [
|
|
6707
6707
|
b(f, null, {
|
|
6708
6708
|
default: _(() => [
|
|
6709
|
-
ee(G(
|
|
6709
|
+
ee(G(V(It)(I.dayOfYear)), 1)
|
|
6710
6710
|
]),
|
|
6711
6711
|
_: 2
|
|
6712
6712
|
}, 1024)
|
|
@@ -6718,21 +6718,11 @@ const br = {
|
|
|
6718
6718
|
})
|
|
6719
6719
|
]),
|
|
6720
6720
|
_: 1
|
|
6721
|
-
})
|
|
6722
|
-
|
|
6723
|
-
readonly: "",
|
|
6724
|
-
value: T(mt)(T(n).sunsimDayOfYear[0].dayOfYear),
|
|
6725
|
-
variant: "solo-filled",
|
|
6726
|
-
flat: "",
|
|
6727
|
-
rounded: "",
|
|
6728
|
-
density: "compact",
|
|
6729
|
-
"hide-details": "",
|
|
6730
|
-
"prepend-inner-icon": "mdi-calendar"
|
|
6731
|
-
}, null, 8, ["value"])) : $("", !0)
|
|
6732
|
-
]);
|
|
6721
|
+
})
|
|
6722
|
+
])) : $("", !0);
|
|
6733
6723
|
};
|
|
6734
6724
|
}
|
|
6735
|
-
}), kr = /* @__PURE__ */ K(Cr, [["__scopeId", "data-v-
|
|
6725
|
+
}), kr = /* @__PURE__ */ K(Cr, [["__scopeId", "data-v-4002f1e1"]]), wr = ["onClick"], Ir = {
|
|
6736
6726
|
key: 1,
|
|
6737
6727
|
class: "icon-wrapper"
|
|
6738
6728
|
}, Sr = /* @__PURE__ */ j({
|
|
@@ -6763,30 +6753,30 @@ const br = {
|
|
|
6763
6753
|
s.value || (v.value = h);
|
|
6764
6754
|
}
|
|
6765
6755
|
return (h, k) => {
|
|
6766
|
-
const f =
|
|
6756
|
+
const f = T("v-chip"), c = T("v-icon");
|
|
6767
6757
|
return m(), A("div", {
|
|
6768
6758
|
class: he({
|
|
6769
6759
|
"d-flex": !0,
|
|
6770
|
-
"justify-center": !
|
|
6771
|
-
"align-end": !
|
|
6772
|
-
"justify-end":
|
|
6773
|
-
mobile:
|
|
6774
|
-
disabled:
|
|
6775
|
-
enabled: !
|
|
6760
|
+
"justify-center": !V(t),
|
|
6761
|
+
"align-end": !V(t),
|
|
6762
|
+
"justify-end": V(t),
|
|
6763
|
+
mobile: V(t),
|
|
6764
|
+
disabled: V(s),
|
|
6765
|
+
enabled: !V(s)
|
|
6776
6766
|
})
|
|
6777
6767
|
}, [
|
|
6778
|
-
(m(!0), A(ie, null, ve(
|
|
6779
|
-
key:
|
|
6768
|
+
(m(!0), A(ie, null, ve(V(n), (g, S) => (m(), A("div", {
|
|
6769
|
+
key: S,
|
|
6780
6770
|
class: "still-camera",
|
|
6781
6771
|
style: ue({
|
|
6782
|
-
backgroundImage: `url(${
|
|
6783
|
-
|
|
6772
|
+
backgroundImage: `url(${V(ce)(
|
|
6773
|
+
V(i),
|
|
6784
6774
|
g.defaultFilename
|
|
6785
6775
|
)})`
|
|
6786
6776
|
}),
|
|
6787
|
-
onClick: (
|
|
6777
|
+
onClick: (I) => r(g)
|
|
6788
6778
|
}, [
|
|
6789
|
-
!
|
|
6779
|
+
!V(t) && g.cameraName ? (m(), E(f, {
|
|
6790
6780
|
key: 0,
|
|
6791
6781
|
variant: "flat",
|
|
6792
6782
|
size: "small",
|
|
@@ -6840,22 +6830,22 @@ const xr = { class: "small" }, Ar = { class: "small" }, Fr = /* @__PURE__ */ j({
|
|
|
6840
6830
|
)
|
|
6841
6831
|
);
|
|
6842
6832
|
}), (u, r) => {
|
|
6843
|
-
const h =
|
|
6833
|
+
const h = T("v-icon"), k = T("v-slider"), f = T("v-field");
|
|
6844
6834
|
return m(), A("div", {
|
|
6845
|
-
class: he({ "d-inline-block": !0, mobile:
|
|
6835
|
+
class: he({ "d-inline-block": !0, mobile: V(t) }),
|
|
6846
6836
|
style: { flex: "1", "vertical-align": "top" }
|
|
6847
6837
|
}, [
|
|
6848
6838
|
b(f, {
|
|
6849
6839
|
style: ue(
|
|
6850
|
-
|
|
6851
|
-
width:
|
|
6852
|
-
height:
|
|
6840
|
+
V(n).timeSamples.length > 1 ? {
|
|
6841
|
+
width: V(t) ? "100%" : "300px",
|
|
6842
|
+
height: V(t) ? "28px" : "36px"
|
|
6853
6843
|
} : {
|
|
6854
|
-
height:
|
|
6844
|
+
height: V(t) ? "28px" : "36px",
|
|
6855
6845
|
paddingLeft: "12px",
|
|
6856
6846
|
paddingRight: "12px",
|
|
6857
|
-
paddingTop:
|
|
6858
|
-
paddingBottom:
|
|
6847
|
+
paddingTop: V(t) ? "5px" : "9px",
|
|
6848
|
+
paddingBottom: V(t) ? "5px" : "9px"
|
|
6859
6849
|
}
|
|
6860
6850
|
),
|
|
6861
6851
|
variant: "solo-filled",
|
|
@@ -6863,15 +6853,15 @@ const xr = { class: "small" }, Ar = { class: "small" }, Fr = /* @__PURE__ */ j({
|
|
|
6863
6853
|
flat: ""
|
|
6864
6854
|
}, {
|
|
6865
6855
|
default: _(() => [
|
|
6866
|
-
|
|
6856
|
+
V(n).timeSamples.length > 1 ? (m(), E(k, {
|
|
6867
6857
|
key: 0,
|
|
6868
6858
|
class: "pa-1 pr-2",
|
|
6869
6859
|
modelValue: v.value,
|
|
6870
6860
|
"onUpdate:modelValue": r[0] || (r[0] = (c) => v.value = c),
|
|
6871
|
-
min:
|
|
6872
|
-
max:
|
|
6873
|
-
step:
|
|
6874
|
-
disabled: !!
|
|
6861
|
+
min: V(n).startTime,
|
|
6862
|
+
max: V(n).endTime,
|
|
6863
|
+
step: V(n).interval,
|
|
6864
|
+
disabled: !!V(i),
|
|
6875
6865
|
density: "compact",
|
|
6876
6866
|
"thumb-size": "16",
|
|
6877
6867
|
"thumb-color": "white",
|
|
@@ -6888,7 +6878,7 @@ const xr = { class: "small" }, Ar = { class: "small" }, Fr = /* @__PURE__ */ j({
|
|
|
6888
6878
|
]),
|
|
6889
6879
|
_: 1
|
|
6890
6880
|
}),
|
|
6891
|
-
d("span", xr, G(
|
|
6881
|
+
d("span", xr, G(V(St)(v.value)), 1)
|
|
6892
6882
|
]),
|
|
6893
6883
|
_: 1
|
|
6894
6884
|
}, 8, ["modelValue", "min", "max", "step", "disabled"])) : (m(), A(ie, { key: 1 }, [
|
|
@@ -6902,7 +6892,7 @@ const xr = { class: "small" }, Ar = { class: "small" }, Fr = /* @__PURE__ */ j({
|
|
|
6902
6892
|
]),
|
|
6903
6893
|
_: 1
|
|
6904
6894
|
}),
|
|
6905
|
-
d("span", Ar, G(
|
|
6895
|
+
d("span", Ar, G(V(St)(v.value)), 1)
|
|
6906
6896
|
], 64))
|
|
6907
6897
|
]),
|
|
6908
6898
|
_: 1
|
|
@@ -6925,11 +6915,11 @@ const xr = { class: "small" }, Ar = { class: "small" }, Fr = /* @__PURE__ */ j({
|
|
|
6925
6915
|
setup(l, { emit: a }) {
|
|
6926
6916
|
const e = l, { isMobileSized: t, canZoomIn: n, canZoomOut: o, disabled: i } = Oe(e), s = a;
|
|
6927
6917
|
return (v, u) => {
|
|
6928
|
-
const r =
|
|
6918
|
+
const r = T("v-btn");
|
|
6929
6919
|
return m(), A("div", Mr, [
|
|
6930
6920
|
b(r, {
|
|
6931
|
-
disabled:
|
|
6932
|
-
size:
|
|
6921
|
+
disabled: V(i) || !V(n),
|
|
6922
|
+
size: V(t) ? "x-small" : "small",
|
|
6933
6923
|
flat: "",
|
|
6934
6924
|
icon: "mdi-plus",
|
|
6935
6925
|
onClick: u[0] || (u[0] = (h) => s("onZoomIn")),
|
|
@@ -6937,8 +6927,8 @@ const xr = { class: "small" }, Ar = { class: "small" }, Fr = /* @__PURE__ */ j({
|
|
|
6937
6927
|
}, null, 8, ["disabled", "size"]),
|
|
6938
6928
|
Tr,
|
|
6939
6929
|
b(r, {
|
|
6940
|
-
disabled:
|
|
6941
|
-
size:
|
|
6930
|
+
disabled: V(i) || !V(o),
|
|
6931
|
+
size: V(t) ? "x-small" : "small",
|
|
6942
6932
|
flat: "",
|
|
6943
6933
|
icon: "mdi-minus",
|
|
6944
6934
|
onClick: u[1] || (u[1] = (h) => s("onZoomOut")),
|
|
@@ -6960,14 +6950,14 @@ const xr = { class: "small" }, Ar = { class: "small" }, Fr = /* @__PURE__ */ j({
|
|
|
6960
6950
|
const e = l, { cdnFileResolver: t, colorCallback: n, currentCamera: o, selectedId: i } = Oe(e), s = a, v = p(), u = p(), r = st({});
|
|
6961
6951
|
xe(() => {
|
|
6962
6952
|
for (const f in r) {
|
|
6963
|
-
const { element: c, state: g } = r[f], { r:
|
|
6953
|
+
const { element: c, state: g } = r[f], { r: S, g: I, b: y, a: R, s: F } = n.value(f, g) || {
|
|
6964
6954
|
r: 0,
|
|
6965
6955
|
g: 0,
|
|
6966
6956
|
b: 0,
|
|
6967
6957
|
a: 0,
|
|
6968
6958
|
s: 0
|
|
6969
6959
|
};
|
|
6970
|
-
c.style.fill = `rgba(${
|
|
6960
|
+
c.style.fill = `rgba(${S}, ${I}, ${y}, ${R / 255})`, c.style.stroke = `rgb(${S}, ${I}, ${y})`, c.style.strokeWidth = F.toString();
|
|
6971
6961
|
}
|
|
6972
6962
|
}), H(i, () => {
|
|
6973
6963
|
for (const f in r)
|
|
@@ -7009,20 +6999,20 @@ const xr = { class: "small" }, Ar = { class: "small" }, Fr = /* @__PURE__ */ j({
|
|
|
7009
6999
|
const f = (c = u.value) == null ? void 0 : c.firstChild;
|
|
7010
7000
|
if (f) {
|
|
7011
7001
|
s("updateSvgContainer", f), h();
|
|
7012
|
-
let g,
|
|
7013
|
-
g = f.querySelectorAll(`[${
|
|
7014
|
-
|
|
7002
|
+
let g, S = "data-structure-id";
|
|
7003
|
+
g = f.querySelectorAll(`[${S}]`), g.length === 0 && (S = "data-apartment-id", g = f.querySelectorAll(`[${S}]`), g.length === 0 && (S = "data-building-id", g = f.querySelectorAll(`[${S}]`))), g.forEach((I) => {
|
|
7004
|
+
I.style.strokeWidth = "0", I.style.stroke = "rgba(255,255,255,0)", I.style.fill = "rgba(255,255,255,0)", I.querySelectorAll("path").forEach((R) => {
|
|
7015
7005
|
R.style.stroke = "inherit", R.style.fill = "inherit";
|
|
7016
7006
|
});
|
|
7017
|
-
const y =
|
|
7007
|
+
const y = I.getAttribute(S);
|
|
7018
7008
|
r[y] = {
|
|
7019
|
-
element:
|
|
7009
|
+
element: I,
|
|
7020
7010
|
state: i.value === y ? "selected" : "idle"
|
|
7021
|
-
},
|
|
7011
|
+
}, I.addEventListener("mouseover", () => {
|
|
7022
7012
|
r[y].state === "idle" && (r[y].state = "hover"), s("onHoverOver", y);
|
|
7023
|
-
}),
|
|
7013
|
+
}), I.addEventListener("mouseout", () => {
|
|
7024
7014
|
r[y].state === "hover" && (r[y].state = "idle"), s("onHoverOut", y);
|
|
7025
|
-
}),
|
|
7015
|
+
}), I.addEventListener("click", () => {
|
|
7026
7016
|
s("onClick", y);
|
|
7027
7017
|
});
|
|
7028
7018
|
});
|
|
@@ -7034,7 +7024,7 @@ const xr = { class: "small" }, Ar = { class: "small" }, Fr = /* @__PURE__ */ j({
|
|
|
7034
7024
|
(m(), A("div", {
|
|
7035
7025
|
ref_key: "svgContainer",
|
|
7036
7026
|
ref: u,
|
|
7037
|
-
key:
|
|
7027
|
+
key: V(o).overlayFilename,
|
|
7038
7028
|
class: "w-100 h-100 position-absolute top-left",
|
|
7039
7029
|
style: { "z-index": "5" },
|
|
7040
7030
|
innerHTML: v.value
|
|
@@ -7065,7 +7055,7 @@ function $r(l) {
|
|
|
7065
7055
|
function Rr(l) {
|
|
7066
7056
|
return !("filename" in l) && "defaultFilename" in l;
|
|
7067
7057
|
}
|
|
7068
|
-
function
|
|
7058
|
+
function ht(l) {
|
|
7069
7059
|
return "filename" in l;
|
|
7070
7060
|
}
|
|
7071
7061
|
function Ur(l) {
|
|
@@ -7228,7 +7218,7 @@ function zr(l) {
|
|
|
7228
7218
|
loopable: l.loopable,
|
|
7229
7219
|
cameras: l.cameras.map((o) => {
|
|
7230
7220
|
var i;
|
|
7231
|
-
if (
|
|
7221
|
+
if (_t(o)) {
|
|
7232
7222
|
if (o.sunsimDayOfYear) {
|
|
7233
7223
|
if (o.sunsimDayOfYear.length === 0)
|
|
7234
7224
|
throw new Error(
|
|
@@ -7303,7 +7293,7 @@ function zr(l) {
|
|
|
7303
7293
|
// ],
|
|
7304
7294
|
// },
|
|
7305
7295
|
// ],
|
|
7306
|
-
},
|
|
7296
|
+
}, ht(o[v]) && (o[v] = r);
|
|
7307
7297
|
}
|
|
7308
7298
|
return {
|
|
7309
7299
|
version: "5.0",
|
|
@@ -7373,7 +7363,7 @@ const jr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, Wr = {
|
|
|
7373
7363
|
Le,
|
|
7374
7364
|
i.value ? new Fe(i.value) : new Fe()
|
|
7375
7365
|
);
|
|
7376
|
-
const c = p(), g = p(),
|
|
7366
|
+
const c = p(), g = p(), S = p(), I = p(null), y = p(4), R = p(), F = p(!1), Y = p(!1), D = p(), C = O(() => D.value.isHoverEnabled), W = p({ x: 0, y: 0, width: 0, height: 0 }), L = p(), Z = p(), w = p(), M = p(!1), q = p(), Q = p({
|
|
7377
7367
|
current: 100,
|
|
7378
7368
|
min: 100,
|
|
7379
7369
|
max: 1e3
|
|
@@ -7405,7 +7395,7 @@ const jr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, Wr = {
|
|
|
7405
7395
|
const oe = O(
|
|
7406
7396
|
() => w.value ? w.value.cameras.filter(Rr) : []
|
|
7407
7397
|
), P = O(
|
|
7408
|
-
() => w.value ? w.value.cameras.filter(
|
|
7398
|
+
() => w.value ? w.value.cameras.filter(ht) : []
|
|
7409
7399
|
);
|
|
7410
7400
|
H(
|
|
7411
7401
|
[w, n, u],
|
|
@@ -7428,9 +7418,9 @@ const jr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, Wr = {
|
|
|
7428
7418
|
), H(
|
|
7429
7419
|
[w, n, h],
|
|
7430
7420
|
() => {
|
|
7431
|
-
w.value && n.value && g.value && g.value.timeSamples && g.value.timeSamples.length > 0 && (h.value ?
|
|
7421
|
+
w.value && n.value && g.value && g.value.timeSamples && g.value.timeSamples.length > 0 && (h.value ? S.value = g.value.timeSamples.find(
|
|
7432
7422
|
(U) => U.timeInHours === h.value
|
|
7433
|
-
) || g.value.timeSamples[0] :
|
|
7423
|
+
) || g.value.timeSamples[0] : S.value = g.value.timeSamples.find(
|
|
7434
7424
|
(U) => U.timeInHours === g.value.defaultHour
|
|
7435
7425
|
) || g.value.timeSamples[0]);
|
|
7436
7426
|
},
|
|
@@ -7442,11 +7432,11 @@ const jr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, Wr = {
|
|
|
7442
7432
|
);
|
|
7443
7433
|
}
|
|
7444
7434
|
function J(U) {
|
|
7445
|
-
y.value = U,
|
|
7435
|
+
y.value = U, ht(w.value.cameras[y.value]) ? I.value = w.value.cameras[y.value] : (ke(() => {
|
|
7446
7436
|
ne(
|
|
7447
7437
|
w.value.cameras[y.value]
|
|
7448
7438
|
);
|
|
7449
|
-
}),
|
|
7439
|
+
}), I.value = null);
|
|
7450
7440
|
}
|
|
7451
7441
|
function ne(U) {
|
|
7452
7442
|
const te = g.value;
|
|
@@ -7461,7 +7451,7 @@ const jr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, Wr = {
|
|
|
7461
7451
|
});
|
|
7462
7452
|
}
|
|
7463
7453
|
function fe(U) {
|
|
7464
|
-
const te =
|
|
7454
|
+
const te = S.value;
|
|
7465
7455
|
g.value = U, ke(() => {
|
|
7466
7456
|
me(
|
|
7467
7457
|
g.value.timeSamples.find(
|
|
@@ -7473,7 +7463,7 @@ const jr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, Wr = {
|
|
|
7473
7463
|
});
|
|
7474
7464
|
}
|
|
7475
7465
|
function me(U) {
|
|
7476
|
-
|
|
7466
|
+
S.value = U;
|
|
7477
7467
|
}
|
|
7478
7468
|
function de(U) {
|
|
7479
7469
|
f("onClick", U, () => {
|
|
@@ -7547,7 +7537,7 @@ const jr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, Wr = {
|
|
|
7547
7537
|
});
|
|
7548
7538
|
}
|
|
7549
7539
|
return (U, te) => {
|
|
7550
|
-
const z =
|
|
7540
|
+
const z = T("v-skeleton-loader");
|
|
7551
7541
|
return m(), A(ie, null, [
|
|
7552
7542
|
b(z, {
|
|
7553
7543
|
type: "image",
|
|
@@ -7603,7 +7593,7 @@ const jr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, Wr = {
|
|
|
7603
7593
|
"still-cameras": oe.value,
|
|
7604
7594
|
"current-camera": c.value,
|
|
7605
7595
|
disabled: Y.value,
|
|
7606
|
-
"cdn-file-resolver":
|
|
7596
|
+
"cdn-file-resolver": V(n),
|
|
7607
7597
|
onOnCameraChange: B
|
|
7608
7598
|
}, null, 8, ["is-mobile-sized", "still-cameras", "current-camera", "disabled", "cdn-file-resolver"])
|
|
7609
7599
|
], 2)) : $("", !0),
|
|
@@ -7617,35 +7607,35 @@ const jr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, Wr = {
|
|
|
7617
7607
|
(m(!0), A(ie, null, ve(oe.value, (N, ae) => (m(), E(hr, {
|
|
7618
7608
|
key: `camera${ae}`,
|
|
7619
7609
|
"camera-data": N,
|
|
7620
|
-
"cdn-file-resolver":
|
|
7610
|
+
"cdn-file-resolver": V(n),
|
|
7621
7611
|
"current-camera": c.value,
|
|
7622
7612
|
"current-day": g.value,
|
|
7623
|
-
"current-time":
|
|
7613
|
+
"current-time": S.value
|
|
7624
7614
|
}, null, 8, ["camera-data", "cdn-file-resolver", "current-camera", "current-day", "current-time"]))), 128)),
|
|
7625
7615
|
(m(!0), A(ie, null, ve(P.value, (N, ae) => (m(), E(_r, {
|
|
7626
7616
|
key: `transition${ae}`,
|
|
7627
7617
|
"transition-data": N,
|
|
7628
|
-
"cdn-file-resolver":
|
|
7629
|
-
"current-transition":
|
|
7618
|
+
"cdn-file-resolver": V(n),
|
|
7619
|
+
"current-transition": I.value
|
|
7630
7620
|
}, null, 8, ["transition-data", "cdn-file-resolver", "current-transition"]))), 128)),
|
|
7631
|
-
|
|
7621
|
+
V(s) ? (m(), A("div", {
|
|
7632
7622
|
key: 0,
|
|
7633
7623
|
class: "w-100 h-100 position-absolute top-left",
|
|
7634
7624
|
style: { "z-index": "6", "pointer-events": "none" },
|
|
7635
|
-
innerHTML:
|
|
7625
|
+
innerHTML: V(s)
|
|
7636
7626
|
}, null, 8, jr)) : $("", !0),
|
|
7637
7627
|
c.value.overlayFilename ? pe((m(), E(Br, {
|
|
7638
7628
|
key: 1,
|
|
7639
|
-
"cdn-file-resolver":
|
|
7640
|
-
"color-callback":
|
|
7629
|
+
"cdn-file-resolver": V(n),
|
|
7630
|
+
"color-callback": V(o),
|
|
7641
7631
|
"current-camera": c.value,
|
|
7642
|
-
"selected-id":
|
|
7632
|
+
"selected-id": V(v),
|
|
7643
7633
|
onOnClick: de,
|
|
7644
7634
|
onOnHoverOver: we,
|
|
7645
7635
|
onOnHoverOut: Me,
|
|
7646
7636
|
onUpdateSvgContainer: te[2] || (te[2] = (N) => L.value = N)
|
|
7647
7637
|
}, null, 8, ["cdn-file-resolver", "color-callback", "current-camera", "selected-id"])), [
|
|
7648
|
-
[ge,
|
|
7638
|
+
[ge, I.value === null]
|
|
7649
7639
|
]) : $("", !0)
|
|
7650
7640
|
]),
|
|
7651
7641
|
_: 1
|
|
@@ -7668,7 +7658,7 @@ const jr = ["innerHTML"], Pr = { style: { "z-index": "7" } }, Wr = {
|
|
|
7668
7658
|
b(Lr, {
|
|
7669
7659
|
"is-mobile-sized": M.value,
|
|
7670
7660
|
"current-day": g.value,
|
|
7671
|
-
"current-time":
|
|
7661
|
+
"current-time": S.value,
|
|
7672
7662
|
disabled: Y.value,
|
|
7673
7663
|
onOnTimeChange: me
|
|
7674
7664
|
}, null, 8, ["is-mobile-sized", "current-day", "current-time", "disabled"])
|