@qispace/vue3-player 0.3.48 → 0.3.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  var Ba = Object.defineProperty;
2
2
  var Ra = (s, a, e) => a in s ? Ba(s, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[a] = e;
3
3
  var he = (s, a, e) => (Ra(s, typeof a != "symbol" ? a + "" : a, e), e);
4
- import { defineComponent as W, ref as c, computed as B, openBlock as v, createElementBlock as D, watch as U, onMounted as Se, onBeforeUnmount as Xe, withDirectives as De, createElementVNode as u, normalizeStyle as ie, vShow as Ae, createVNode as C, Fragment as pe, renderList as Ce, createCommentVNode as R, inject as Ue, resolveComponent as V, withCtx as b, toDisplayString as Q, unref as A, createTextVNode as ae, normalizeClass as ge, createBlock as $, renderSlot as oe, provide as Ze, reactive as St, watchEffect as Re, resolveDynamicComponent as ea, normalizeProps as pt, guardReactiveProps as ft, mergeProps as Ee, nextTick as xe, Transition as Be, createSlots as Ua, toRefs as Te, pushScopeId as It, popScopeId as xt, vModelText as Ha, createStaticVNode as ta, onBeforeUpdate as Ya, withModifiers as za } from "vue";
4
+ import { defineComponent as W, ref as c, computed as B, openBlock as v, createElementBlock as D, watch as U, onMounted as Se, onBeforeUnmount as Xe, withDirectives as De, createElementVNode as u, normalizeStyle as ie, vShow as Ae, createVNode as C, Fragment as ve, renderList as Ce, createCommentVNode as R, inject as Ue, resolveComponent as V, withCtx as b, toDisplayString as Q, unref as A, createTextVNode as ae, normalizeClass as ge, createBlock as $, renderSlot as oe, provide as Ze, reactive as St, watchEffect as Re, resolveDynamicComponent as ea, normalizeProps as pt, guardReactiveProps as ft, mergeProps as Ee, nextTick as xe, Transition as Be, createSlots as Ua, toRefs as Te, pushScopeId as It, popScopeId as xt, vModelText as Ha, createStaticVNode as ta, onBeforeUpdate as Ya, withModifiers as za } from "vue";
5
5
  import Ct from "axios";
6
6
  import * as ja from "@qispace/player-core";
7
7
  import { Vector3 as dt, Object3D as Pa, MathUtils as Wa } from "three";
@@ -143,10 +143,10 @@ const Ga = /* @__PURE__ */ W({
143
143
  });
144
144
  function G() {
145
145
  l.value = x.value.getContext("2d", { willReadFrequently: !0 }), d.value = new Image(), d.value.onload = () => {
146
- We(), x.value.addEventListener("mousemove", Le(ve, 50));
146
+ We(), x.value.addEventListener("mousemove", Le(me, 50));
147
147
  }, d.value.src = te.value;
148
148
  }
149
- function ve(N) {
149
+ function me(N) {
150
150
  const ee = Z(N.offsetX, N.offsetY);
151
151
  w.value = ee >= 0, p.value = ee, n.value = {
152
152
  x: N.offsetX,
@@ -415,7 +415,7 @@ const Ga = /* @__PURE__ */ W({
415
415
  key: 0,
416
416
  viewBox: l.value.viewBox
417
417
  }, [
418
- (v(!0), D(pe, null, Ce(l.value.svgObjects, ({ index: x, svg: M }) => (v(), D("g", {
418
+ (v(!0), D(ve, null, Ce(l.value.svgObjects, ({ index: x, svg: M }) => (v(), D("g", {
419
419
  key: x,
420
420
  innerHTML: M,
421
421
  style: ie(_(x)),
@@ -704,7 +704,7 @@ const on = {
704
704
  _: 1
705
705
  })
706
706
  ])) : d.value ? (v(), D("div", cn, [
707
- (v(!0), D(pe, null, Ce(l.value, (L) => (v(), D("picture", {
707
+ (v(!0), D(ve, null, Ce(l.value, (L) => (v(), D("picture", {
708
708
  key: L.index,
709
709
  alt: L.index,
710
710
  class: ge({ "frame-image": !0, show: L.show })
@@ -795,7 +795,7 @@ const on = {
795
795
  setup(s, { expose: a, emit: e }) {
796
796
  const o = s, n = e;
797
797
  a({
798
- adjustZoom: ve
798
+ adjustZoom: me
799
799
  });
800
800
  const t = c(100), r = c(0), l = c(0), d = c(!1), m = c(!1), i = c(void 0), p = c(!1), w = c(), k = B(() => `translateX(${r.value}px) translateY(${l.value}px) scale(${f.value})`), f = B(() => t.value / 100), h = B(() => o.maxScale * 100);
801
801
  U(
@@ -869,7 +869,7 @@ const on = {
869
869
  }
870
870
  function L(O) {
871
871
  const { x: Z, y: q } = S(O);
872
- ve(-O.deltaY / 10, Z, q), O.preventDefault();
872
+ me(-O.deltaY / 10, Z, q), O.preventDefault();
873
873
  }
874
874
  function P(O) {
875
875
  d.value = !0, p.value = !1, i.value = O;
@@ -907,7 +907,7 @@ const on = {
907
907
  ), { x: re, y: be } = S(O.touches[1]), { x: le, y: Fe } = S(
908
908
  i.value.touches[1]
909
909
  ), Me = Math.hypot(ne - le, ue - Fe), We = Math.hypot(Z - re, q - be), we = (re + Z) / 2, Ie = (be + q) / 2;
910
- ve(We - Me, we, Ie);
910
+ me(We - Me, we, Ie);
911
911
  }
912
912
  i.value = O;
913
913
  }
@@ -935,7 +935,7 @@ const on = {
935
935
  -(q - Z)
936
936
  );
937
937
  }
938
- function ve(O, Z, q) {
938
+ function me(O, Z, q) {
939
939
  const ne = Z !== void 0 ? Z : w.value.clientWidth / 2, ue = q !== void 0 ? q : w.value.clientHeight / 2, re = w.value.clientWidth, be = w.value.clientHeight, le = re * f.value, Fe = be * f.value;
940
940
  t.value = Math.min(Math.max(100, t.value + O), h.value);
941
941
  const Me = re * f.value, We = be * f.value, we = Me - le, Ie = We - Fe;
@@ -1074,12 +1074,12 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
1074
1074
  for (let z = 0; z < $t; z++)
1075
1075
  S.push(I), I = aa(I);
1076
1076
  return H.sort((z, G) => {
1077
- const ve = S.findIndex(
1077
+ const me = S.findIndex(
1078
1078
  (O) => O === r.value[z[te]]
1079
1079
  ), Y = S.findIndex(
1080
1080
  (O) => O === r.value[G[te]]
1081
1081
  );
1082
- return ve < Y ? -1 : ve > Y ? 1 : 0;
1082
+ return me < Y ? -1 : me > Y ? 1 : 0;
1083
1083
  }), H;
1084
1084
  }, K = (H) => {
1085
1085
  m.value = new bn(H);
@@ -1217,7 +1217,7 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
1217
1217
  },
1218
1218
  setup(s) {
1219
1219
  const a = s;
1220
- return (e, o) => (v(!0), D(pe, null, Ce(a.dayData.timeSamples, (n) => (v(), $(On, {
1220
+ return (e, o) => (v(!0), D(ve, null, Ce(a.dayData.timeSamples, (n) => (v(), $(On, {
1221
1221
  "time-sample-data": n,
1222
1222
  "cdn-file-resolver": a.cdnFileResolver,
1223
1223
  "current-time": e.currentTime
@@ -1232,7 +1232,7 @@ const Cn = { key: 0 }, wn = { class: "interactive-viewer" }, kn = { class: "fill
1232
1232
  },
1233
1233
  setup(s) {
1234
1234
  const a = s;
1235
- return (e, o) => (v(!0), D(pe, null, Ce(a.cameraData.sunsimDayOfYear, (n) => (v(), $(En, {
1235
+ return (e, o) => (v(!0), D(ve, null, Ce(a.cameraData.sunsimDayOfYear, (n) => (v(), $(En, {
1236
1236
  "day-data": n,
1237
1237
  "cdn-file-resolver": a.cdnFileResolver,
1238
1238
  "current-time": a.currentTime
@@ -1541,7 +1541,7 @@ const Un = /* @__PURE__ */ W({
1541
1541
  }
1542
1542
  return (f, h) => {
1543
1543
  const g = V("v-btn"), _ = V("v-chip");
1544
- return v(), D(pe, null, [
1544
+ return v(), D(ve, null, [
1545
1545
  C(g, {
1546
1546
  class: "mx-2",
1547
1547
  icon: "mdi-restore",
@@ -2056,7 +2056,7 @@ const no = {
2056
2056
  function G(Y) {
2057
2057
  o("onHoverOut", Y), m.value = void 0;
2058
2058
  }
2059
- function ve(Y) {
2059
+ function me(Y) {
2060
2060
  const { layerX: O, layerY: Z } = Y;
2061
2061
  let q = Y.target, ne = !1;
2062
2062
  for (; q; )
@@ -2079,7 +2079,7 @@ const no = {
2079
2079
  }
2080
2080
  return (Y, O) => {
2081
2081
  const Z = V("v-skeleton-loader");
2082
- return v(), D(pe, null, [
2082
+ return v(), D(ve, null, [
2083
2083
  C(Z, {
2084
2084
  type: "image",
2085
2085
  class: "w-100 h-100 position-relative",
@@ -2092,7 +2092,7 @@ const no = {
2092
2092
  ref_key: "container",
2093
2093
  ref: _,
2094
2094
  class: ge({ mobile: T.value }),
2095
- onMousemove: ve
2095
+ onMousemove: me
2096
2096
  }, [
2097
2097
  u("div", no, [
2098
2098
  u("div", oo, [
@@ -2146,13 +2146,13 @@ const no = {
2146
2146
  ]),
2147
2147
  C(st, { position: "relative" }, {
2148
2148
  default: b(() => [
2149
- (v(!0), D(pe, null, Ce(L.value, (q) => (v(), $(Tn, {
2149
+ (v(!0), D(ve, null, Ce(L.value, (q) => (v(), $(Tn, {
2150
2150
  key: q.overlayFilename,
2151
2151
  "camera-data": q,
2152
2152
  "cdn-file-resolver": e.cdnFileResolver,
2153
2153
  "current-time": r.value
2154
2154
  }, null, 8, ["camera-data", "cdn-file-resolver", "current-time"]))), 128)),
2155
- (v(!0), D(pe, null, Ce(P.value, (q) => (v(), $(Bn, {
2155
+ (v(!0), D(ve, null, Ce(P.value, (q) => (v(), $(Bn, {
2156
2156
  "transition-data": q,
2157
2157
  "cdn-file-resolver": e.cdnFileResolver,
2158
2158
  "current-transition": l.value
@@ -2344,7 +2344,7 @@ const no = {
2344
2344
  onLoad: l
2345
2345
  }, null, 544),
2346
2346
  n.value === "preloaded" || n.value === "loaded" ? De((v(), D("div", _o, [
2347
- (v(!0), D(pe, null, Ce(m.imageUrls, (p, w) => (v(), D("img", {
2347
+ (v(!0), D(ve, null, Ce(m.imageUrls, (p, w) => (v(), D("img", {
2348
2348
  key: w,
2349
2349
  class: ge({ "image-instance": !0, active: w === m.activeIndex }),
2350
2350
  src: p,
@@ -2410,8 +2410,8 @@ const no = {
2410
2410
  viewLongitude: S.viewLongitude
2411
2411
  };
2412
2412
  const z = [];
2413
- for (let { id: G, url: ve } of S.buildingOverlays)
2414
- i.value.loadJson(ve.replace(".png", ".svg")).then((Y) => {
2413
+ for (let { id: G, url: me } of S.buildingOverlays)
2414
+ i.value.loadJson(me.replace(".png", ".svg")).then((Y) => {
2415
2415
  const Z = new DOMParser().parseFromString(Y, "image/svg+xml").getElementsByTagName("svg")[0];
2416
2416
  w.value = Z.getAttribute("viewBox"), z.push({
2417
2417
  id: G,
@@ -2441,12 +2441,12 @@ const no = {
2441
2441
  I === l.value ? "hover" : "idle"
2442
2442
  );
2443
2443
  if (S) {
2444
- const { r: z, g: G, b: ve, a: Y, s: O } = S;
2444
+ const { r: z, g: G, b: me, a: Y, s: O } = S;
2445
2445
  return {
2446
2446
  strokeWidth: O !== void 0 ? O : 2,
2447
- stroke: `rgb(${z}, ${G}, ${ve})`,
2447
+ stroke: `rgb(${z}, ${G}, ${me})`,
2448
2448
  strokeOpacity: 1,
2449
- fill: `rgb(${z}, ${G}, ${ve})`,
2449
+ fill: `rgb(${z}, ${G}, ${me})`,
2450
2450
  fillOpacity: Y / 255,
2451
2451
  cursor: `${e.canGoToBuildingCallback(I) ? "cursor" : "default"} !important`
2452
2452
  };
@@ -2521,9 +2521,9 @@ const no = {
2521
2521
  p.value ? De((v(), D("div", So, [
2522
2522
  u("div", Io, [
2523
2523
  (v(), D("svg", { viewBox: w.value }, [
2524
- (v(!0), D(pe, null, Ce(p.value, ({ id: G, svg: ve }, Y) => (v(), D("g", {
2524
+ (v(!0), D(ve, null, Ce(p.value, ({ id: G, svg: me }, Y) => (v(), D("g", {
2525
2525
  key: Y,
2526
- innerHTML: ve,
2526
+ innerHTML: me,
2527
2527
  "data-building-id": G,
2528
2528
  class: ge(P(G)),
2529
2529
  style: ie(x(G)),
@@ -2701,11 +2701,11 @@ const no = {
2701
2701
  t.value = { preloaded: !1, ready: !1 };
2702
2702
  }
2703
2703
  function P(I) {
2704
- const { layerX: S, layerY: z } = I, { x: G, y: ve } = k.value(S, z);
2704
+ const { layerX: S, layerY: z } = I, { x: G, y: me } = k.value(S, z);
2705
2705
  return m.value.getBuildingId(
2706
2706
  i.value,
2707
2707
  G,
2708
- ve
2708
+ me
2709
2709
  );
2710
2710
  }
2711
2711
  function x() {
@@ -2764,7 +2764,7 @@ const no = {
2764
2764
  onReset: L
2765
2765
  }, null, 8, ["image-urls", "active-index"]),
2766
2766
  De(u("div", null, [
2767
- (v(!0), D(pe, null, Ce(d.value.buildingOverlays, (G) => (v(), $(Oo, {
2767
+ (v(!0), D(ve, null, Ce(d.value.buildingOverlays, (G) => (v(), $(Oo, {
2768
2768
  ref_for: !0,
2769
2769
  ref_key: "overlays",
2770
2770
  ref: _,
@@ -2902,7 +2902,7 @@ const no = {
2902
2902
  },
2903
2903
  setup(s) {
2904
2904
  const a = s;
2905
- return (e, o) => (v(!0), D(pe, null, Ce(a.dayData.timeSamples, (n) => (v(), $(Yo, {
2905
+ return (e, o) => (v(!0), D(ve, null, Ce(a.dayData.timeSamples, (n) => (v(), $(Yo, {
2906
2906
  "time-sample-data": n,
2907
2907
  "cdn-file-resolver": a.cdnFileResolver,
2908
2908
  "current-time": e.currentTime
@@ -2917,7 +2917,7 @@ const no = {
2917
2917
  },
2918
2918
  setup(s) {
2919
2919
  const a = s;
2920
- return (e, o) => (v(!0), D(pe, null, Ce(a.cameraData.sunsimDayOfYear, (n) => (v(), $(zo, {
2920
+ return (e, o) => (v(!0), D(ve, null, Ce(a.cameraData.sunsimDayOfYear, (n) => (v(), $(zo, {
2921
2921
  "day-data": n,
2922
2922
  "cdn-file-resolver": a.cdnFileResolver,
2923
2923
  "current-time": a.currentTime
@@ -3374,7 +3374,7 @@ const tl = {
3374
3374
  }
3375
3375
  return (M, K) => {
3376
3376
  const H = V("v-skeleton-loader");
3377
- return v(), D(pe, null, [
3377
+ return v(), D(ve, null, [
3378
3378
  C(H, {
3379
3379
  type: "image",
3380
3380
  class: "w-100 h-100 position-relative",
@@ -3422,7 +3422,7 @@ const tl = {
3422
3422
  ]),
3423
3423
  C(st, { position: "relative" }, {
3424
3424
  default: b(() => [
3425
- (v(!0), D(pe, null, Ce(f.value.cameras, (te) => (v(), $(jo, {
3425
+ (v(!0), D(ve, null, Ce(f.value.cameras, (te) => (v(), $(jo, {
3426
3426
  key: te.overlayFilename,
3427
3427
  "camera-data": te,
3428
3428
  "cdn-file-resolver": e.cdnFileResolver,
@@ -3743,7 +3743,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
3743
3743
  ]),
3744
3744
  default: b(() => [
3745
3745
  u("div", Bl, [
3746
- (v(!0), D(pe, null, Ce(e.availableArchetypes, (p, w) => (v(), D("div", {
3746
+ (v(!0), D(ve, null, Ce(e.availableArchetypes, (p, w) => (v(), D("div", {
3747
3747
  key: `at-menuitem-${w}`,
3748
3748
  onClick: (k) => o("selectInterior", p.archetypeID),
3749
3749
  class: ge(["interior-selector-list-item", {
@@ -4742,7 +4742,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
4742
4742
  return v(), D("div", Bs, [
4743
4743
  u("form", Rs, [
4744
4744
  u("div", Us, [
4745
- (v(!0), D(pe, null, Ce(n.value, (x, M, K) => (v(), D("div", {
4745
+ (v(!0), D(ve, null, Ce(n.value, (x, M, K) => (v(), D("div", {
4746
4746
  key: K,
4747
4747
  "d-block": ""
4748
4748
  }, [
@@ -5096,7 +5096,7 @@ const hl = { id: "player-wrapper" }, gl = { id: "player-sizer" }, yl = {
5096
5096
  class: "center-pivot",
5097
5097
  style: ie(d.value)
5098
5098
  }, [
5099
- (v(!0), D(pe, null, Ce(y.value, (z) => (v(), D("div", {
5099
+ (v(!0), D(ve, null, Ce(y.value, (z) => (v(), D("div", {
5100
5100
  key: z.id
5101
5101
  }, [
5102
5102
  f.value.floorLevel === z.floorLevel ? (v(), D("div", {
@@ -5453,7 +5453,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
5453
5453
  u("span", Mr, Q(A(wt)(l.value)), 1)
5454
5454
  ]),
5455
5455
  _: 1
5456
- }, 8, ["modelValue", "min", "max", "step", "disabled"])) : (v(), D(pe, { key: 1 }, [
5456
+ }, 8, ["modelValue", "min", "max", "step", "disabled"])) : (v(), D(ve, { key: 1 }, [
5457
5457
  C(i, {
5458
5458
  style: { "vertical-align": "baseline", "font-size": "20px", "margin-top": "-1px", opacity: "0.6" },
5459
5459
  class: "mr-2 icon",
@@ -5618,7 +5618,7 @@ const Fr = { class: "d-flex align-center" }, Lr = { class: "d-block mr-1" }, Mr
5618
5618
  }, null, 8, ["class"]))
5619
5619
  ]),
5620
5620
  default: b(() => [
5621
- (v(!0), D(pe, null, Ce(m.thumbnails, (_) => (v(), $(h, {
5621
+ (v(!0), D(ve, null, Ce(m.thumbnails, (_) => (v(), $(h, {
5622
5622
  key: _.id
5623
5623
  }, {
5624
5624
  default: b(({ toggle: y, selectedClass: T }) => [
@@ -6009,7 +6009,7 @@ const Nr = {
6009
6009
  screenToWorld: La,
6010
6010
  clearCurrentMarkerLayer: Aa
6011
6011
  });
6012
- const z = c(!1), G = c(!1), ve = c(!1), Y = c(), O = c(), Z = c(), q = c(), ne = c(), ue = c(0), re = c(), be = c(), le = c(), Fe = c(0), Me = c(0), We = c(0), we = c(!1), Ie = c(!1), Ve = c(), Le = c(!1), N = c(!1), ee = c(
6012
+ const z = c(!1), G = c(!1), me = c(!1), Y = c(), O = c(), Z = c(), q = c(), ne = c(), ue = c(0), re = c(), be = c(), le = c(), Fe = c(0), Me = c(0), We = c(0), we = c(!1), Ie = c(!1), Ve = c(), Le = c(!1), N = c(!1), ee = c(
6013
6013
  new da(document, "player-wrapper")
6014
6014
  ), ye = c(), Ge = B(() => {
6015
6015
  if (O.value) {
@@ -6071,7 +6071,7 @@ const Nr = {
6071
6071
  );
6072
6072
  const fe = B(() => /Android|webOS|iPhone|iPad|BlackBerry|Windows Phone|Opera Mini|IEMobile|Mobile/i.test(
6073
6073
  window.navigator.userAgent
6074
- )), me = B(() => fe.value ? "platform-mobile" : "platform-desktop"), ze = B(() => {
6074
+ )), pe = B(() => fe.value ? "platform-mobile" : "platform-desktop"), ze = B(() => {
6075
6075
  const F = ce(
6076
6076
  n.value,
6077
6077
  "/config.json"
@@ -6088,7 +6088,7 @@ const Nr = {
6088
6088
  try {
6089
6089
  be.value = void 0, await va(), pa(), await ma(), ee.value.setup(), fa();
6090
6090
  } catch (F) {
6091
- ve.value = !0, S("onError", F);
6091
+ me.value = !0, S("onError", F);
6092
6092
  }
6093
6093
  },
6094
6094
  { immediate: !0 }
@@ -6113,7 +6113,7 @@ const Nr = {
6113
6113
  z.value = !0;
6114
6114
  }, 1e3);
6115
6115
  } catch (F) {
6116
- ve.value = !0, S("onError", F);
6116
+ me.value = !0, S("onError", F);
6117
6117
  }
6118
6118
  }), Xe(() => {
6119
6119
  document.removeEventListener("wheel", At);
@@ -6361,9 +6361,9 @@ const Nr = {
6361
6361
  return (F, j) => {
6362
6362
  const se = V("v-btn");
6363
6363
  return v(), D("div", {
6364
- class: ge(["virtual-tour-wrapper", [me.value]])
6364
+ class: ge(["virtual-tour-wrapper", [pe.value]])
6365
6365
  }, [
6366
- ve.value ? (v(), D("div", Nr, "Error loading the player!!")) : R("", !0),
6366
+ me.value ? (v(), D("div", Nr, "Error loading the player!!")) : R("", !0),
6367
6367
  u("div", Gr, [
6368
6368
  !ee.value.isActive && q.value && le.value && E.value && re.value && Ie.value ? (v(), $(Zt, {
6369
6369
  key: 0,
@@ -6377,7 +6377,7 @@ const Nr = {
6377
6377
  }, null, 8, ["cdn-file-resolver", "apartment-json", "level", "minimap-json", "rotation", "current-camera"])) : R("", !0),
6378
6378
  re.value && be.value ? (v(), D("div", {
6379
6379
  key: 1,
6380
- class: ge(["v-player", [me.value]])
6380
+ class: ge(["v-player", [pe.value]])
6381
6381
  }, [
6382
6382
  C(Fl, {
6383
6383
  ref_key: "vPlayerInstance",
@@ -6987,7 +6987,7 @@ const Nr = {
6987
6987
  },
6988
6988
  setup(s) {
6989
6989
  const a = s, { dayData: e, cdnFileResolver: o, currentTime: n } = Te(a);
6990
- return (t, r) => (v(!0), D(pe, null, Ce(A(e).timeSamples, (l, d) => (v(), $(xi, {
6990
+ return (t, r) => (v(!0), D(ve, null, Ce(A(e).timeSamples, (l, d) => (v(), $(xi, {
6991
6991
  key: d,
6992
6992
  "time-sample-data": l,
6993
6993
  "cdn-file-resolver": A(o),
@@ -7012,25 +7012,24 @@ const Nr = {
7012
7012
  d(r.value);
7013
7013
  });
7014
7014
  });
7015
- const m = B(() => ce(
7016
- o.value,
7017
- n.value.defaultFilename
7018
- ));
7019
- return (i, p) => A(e).sunsimDayOfYear ? (v(!0), D(pe, { key: 0 }, Ce(A(e).sunsimDayOfYear, (w, k) => (v(), $(Di, {
7020
- key: k,
7021
- "day-data": w,
7022
- "cdn-file-resolver": A(o),
7023
- "current-day": i.currentDay,
7024
- "current-time": A(t)
7025
- }, null, 8, ["day-data", "cdn-file-resolver", "current-day", "current-time"]))), 128)) : (v(), D("img", {
7026
- key: 1,
7027
- ref_key: "image",
7028
- ref: r,
7029
- style: ie({ visibility: A(n) === A(e) ? "visible" : "hidden" }),
7030
- src: m.value
7031
- }, null, 12, Ai));
7015
+ const m = B(() => ce(o.value, e.value.defaultFilename));
7016
+ return (i, p) => (v(), D(ve, null, [
7017
+ A(e).sunsimDayOfYear ? (v(!0), D(ve, { key: 0 }, Ce(A(e).sunsimDayOfYear, (w, k) => (v(), $(Di, {
7018
+ key: k,
7019
+ "day-data": w,
7020
+ "cdn-file-resolver": A(o),
7021
+ "current-day": i.currentDay,
7022
+ "current-time": A(t)
7023
+ }, null, 8, ["day-data", "cdn-file-resolver", "current-day", "current-time"]))), 128)) : R("", !0),
7024
+ u("img", {
7025
+ ref_key: "image",
7026
+ ref: r,
7027
+ style: ie({ visibility: A(n) === A(e) ? "visible" : "hidden" }),
7028
+ src: m.value
7029
+ }, null, 12, Ai)
7030
+ ], 64));
7032
7031
  }
7033
- }), Li = /* @__PURE__ */ X(Fi, [["__scopeId", "data-v-77a0bf78"]]), Mi = ["src"], Oi = /* @__PURE__ */ W({
7032
+ }), Li = /* @__PURE__ */ X(Fi, [["__scopeId", "data-v-164572be"]]), Mi = ["src"], Oi = /* @__PURE__ */ W({
7034
7033
  __name: "VStructureChooserTransition",
7035
7034
  props: {
7036
7035
  transitionData: {},
@@ -7121,7 +7120,7 @@ const Ti = {
7121
7120
  default: b(() => [
7122
7121
  C(h, null, {
7123
7122
  default: b(() => [
7124
- (v(!0), D(pe, null, Ce(A(n).sunsimDayOfYear, (_, y) => (v(), $(f, {
7123
+ (v(!0), D(ve, null, Ce(A(n).sunsimDayOfYear, (_, y) => (v(), $(f, {
7125
7124
  key: y,
7126
7125
  value: y,
7127
7126
  onClick: (T) => d.value = _.dayOfYear
@@ -7198,7 +7197,7 @@ const Ti = {
7198
7197
  })
7199
7198
  }, [
7200
7199
  u("div", Bi, [
7201
- (v(!0), D(pe, null, Ce(A(n), (f, h) => (v(), D("div", {
7200
+ (v(!0), D(ve, null, Ce(A(n), (f, h) => (v(), D("div", {
7202
7201
  key: h,
7203
7202
  class: ge(["still-camera-image d-flex flex-column flex-reverse align-center elevation-2", {
7204
7203
  "active-camera": f === d.value
@@ -7307,7 +7306,7 @@ const Ti = {
7307
7306
  u("span", ji, Q(A(wt)(d.value)), 1)
7308
7307
  ]),
7309
7308
  _: 1
7310
- }, 8, ["modelValue", "min", "max", "step", "disabled"])) : (v(), D(pe, { key: 1 }, [
7309
+ }, 8, ["modelValue", "min", "max", "step", "disabled"])) : (v(), D(ve, { key: 1 }, [
7311
7310
  C(p, {
7312
7311
  style: { "vertical-align": "baseline", "font-size": "20px", "margin-top": "-1px", opacity: "0.6" },
7313
7312
  class: "mr-2 icon",
@@ -7806,7 +7805,7 @@ const lu = {
7806
7805
  defaultDay: p,
7807
7806
  defaultTime: w,
7808
7807
  mobileBreakpoint: k
7809
- } = Te(o), f = e, h = c(), g = c(), _ = c(), y = c(null), T = c(4), L = c(), P = c(!1), x = c(!1), M = c(), K = B(() => M.value.isHoverEnabled), H = c({ x: 0, y: 0, width: 0, height: 0 }), te = c(), I = c(), S = c(), z = c(!1), G = c(1), ve = c(0), Y = c([]), O = c(), Z = c({
7808
+ } = Te(o), f = e, h = c(), g = c(), _ = c(), y = c(null), T = c(4), L = c(), P = c(!1), x = c(!1), M = c(), K = B(() => M.value.isHoverEnabled), H = c({ x: 0, y: 0, width: 0, height: 0 }), te = c(), I = c(), S = c(), z = c(!1), G = c(1), me = c(0), Y = c([]), O = c(), Z = c({
7810
7809
  current: 100,
7811
7810
  min: 100,
7812
7811
  max: 1e3
@@ -7840,9 +7839,9 @@ const lu = {
7840
7839
  currentDayIndex: J,
7841
7840
  currentTimeIndex: de,
7842
7841
  currentTransitionIndex: fe,
7843
- currentScene: me
7842
+ currentScene: pe
7844
7843
  }) => {
7845
- typeof E == "number" && (h.value = le.value[E]), typeof J == "number" && (g.value = h.value.sunsimDayOfYear[J]), typeof de == "number" && (_.value = g.value.timeSamples[de]), typeof fe == "number" && (y.value = Fe.value[fe]), typeof me == "number" && (T.value = me);
7844
+ typeof E == "number" && (h.value = le.value[E]), typeof J == "number" && (g.value = h.value.sunsimDayOfYear[J]), typeof de == "number" && (_.value = g.value.timeSamples[de]), typeof fe == "number" && (y.value = Fe.value[fe]), typeof pe == "number" && (T.value = pe);
7846
7845
  },
7847
7846
  resolveCoordinates: (E, J) => ne.value ? ne.value(E, J) : { x: 0, y: 0 }
7848
7847
  }), Se(() => {
@@ -7850,12 +7849,12 @@ const lu = {
7850
7849
  }), U(I, () => {
7851
7850
  I.value && new ResizeObserver(([]) => {
7852
7851
  const J = Y.value.find((de) => de.loaded);
7853
- J && (ve.value = J.image.width / G.value);
7852
+ J && (me.value = J.image.width / G.value);
7854
7853
  }).observe(I.value);
7855
7854
  }), U(Y, () => {
7856
- if (ve.value === 0) {
7855
+ if (me.value === 0) {
7857
7856
  const E = Y.value.find((J) => J.loaded);
7858
- E && (G.value = E.image.naturalWidth / E.image.naturalHeight, ve.value = E.image.width / G.value);
7857
+ E && (G.value = E.image.naturalWidth / E.image.naturalHeight, me.value = E.image.width / G.value);
7859
7858
  }
7860
7859
  });
7861
7860
  const ue = B(() => Y.value.every((E) => E.loaded)), re = B(() => Math.round(
@@ -7989,14 +7988,14 @@ const lu = {
7989
7988
  }
7990
7989
  function ye(E) {
7991
7990
  const { layerX: J, layerY: de } = E;
7992
- let fe = E.target, me = !1;
7991
+ let fe = E.target, pe = !1;
7993
7992
  for (; fe; )
7994
7993
  if (fe === te.value) {
7995
- me = !0;
7994
+ pe = !0;
7996
7995
  break;
7997
7996
  } else
7998
7997
  fe = fe.parentElement;
7999
- if (me) {
7998
+ if (pe) {
8000
7999
  const ze = E.currentTarget;
8001
8000
  H.value = {
8002
8001
  x: J,
@@ -8027,25 +8026,25 @@ const lu = {
8027
8026
  async function _e(E) {
8028
8027
  const J = T.value;
8029
8028
  if (S.value.loopable) {
8030
- const de = S.value.stillCameraIndices.length, fe = Ye(J), me = Ye(E);
8029
+ const de = S.value.stillCameraIndices.length, fe = Ye(J), pe = Ye(E);
8031
8030
  let ze = 0, ct = 0, Pe = fe;
8032
- for (; Pe++, Pe >= de && (Pe = 0), Pe !== me; )
8031
+ for (; Pe++, Pe >= de && (Pe = 0), Pe !== pe; )
8033
8032
  ze++;
8034
- for (Pe = fe; Pe--, Pe < 0 && (Pe += de), Pe !== me; )
8033
+ for (Pe = fe; Pe--, Pe < 0 && (Pe += de), Pe !== pe; )
8035
8034
  ct++;
8036
- ze === ct ? Ne(J, E) : ze < ct ? fe < me ? Ne(J, E) : Ne(J, E + S.value.cameras.length) : fe >= me ? Ne(J, E) : Ne(J + S.value.cameras.length, E);
8035
+ ze === ct ? Ne(J, E) : ze < ct ? fe < pe ? Ne(J, E) : Ne(J, E + S.value.cameras.length) : fe >= pe ? Ne(J, E) : Ne(J + S.value.cameras.length, E);
8037
8036
  } else
8038
8037
  Ne(J, E);
8039
8038
  }
8040
8039
  function Ne(E, J) {
8041
8040
  return new Promise((de) => {
8042
8041
  x.value = !0;
8043
- let fe, me = E;
8042
+ let fe, pe = E;
8044
8043
  fe = setInterval(() => {
8045
- me < J ? (me++, T.value = Math.abs(
8046
- me % S.value.cameras.length
8047
- ), We(T.value)) : me > J ? (me--, T.value = Math.abs(
8048
- me % S.value.cameras.length
8044
+ pe < J ? (pe++, T.value = Math.abs(
8045
+ pe % S.value.cameras.length
8046
+ ), We(T.value)) : pe > J ? (pe--, T.value = Math.abs(
8047
+ pe % S.value.cameras.length
8049
8048
  ), We(T.value)) : (clearInterval(fe), x.value = !1, de());
8050
8049
  }, 12);
8051
8050
  });
@@ -8056,7 +8055,7 @@ const lu = {
8056
8055
  const ht = (E) => E * (180 / Math.PI);
8057
8056
  return (E, J) => {
8058
8057
  const de = V("v-progress-circular"), fe = V("v-skeleton-loader");
8059
- return v(), D(pe, null, [
8058
+ return v(), D(ve, null, [
8060
8059
  C(fe, {
8061
8060
  type: "image",
8062
8061
  class: "w-100 h-100 position-relative",
@@ -8102,8 +8101,8 @@ const lu = {
8102
8101
  "can-zoom-out": Z.value.min < Z.value.current,
8103
8102
  "can-zoom-in": Z.value.max > Z.value.current,
8104
8103
  disabled: x.value,
8105
- onOnZoomIn: J[0] || (J[0] = (me) => $e(!0)),
8106
- onOnZoomOut: J[1] || (J[1] = (me) => $e(!1))
8104
+ onOnZoomIn: J[0] || (J[0] = (pe) => $e(!0)),
8105
+ onOnZoomOut: J[1] || (J[1] = (pe) => $e(!1))
8107
8106
  }, null, 8, ["is-mobile-sized", "can-zoom-out", "can-zoom-in", "disabled"])
8108
8107
  ], 4)) : R("", !0),
8109
8108
  E.showUi && le.value.length > 1 ? (v(), D("div", {
@@ -8132,19 +8131,19 @@ const lu = {
8132
8131
  default: b(() => [
8133
8132
  u("div", {
8134
8133
  class: "w-100 position-relative",
8135
- style: ie({ height: `${ve.value}px` })
8134
+ style: ie({ height: `${me.value}px` })
8136
8135
  }, [
8137
- (v(!0), D(pe, null, Ce(le.value, (me, ze) => (v(), $(Li, {
8136
+ (v(!0), D(ve, null, Ce(le.value, (pe, ze) => (v(), $(Li, {
8138
8137
  key: `camera${ze}`,
8139
- "camera-data": me,
8138
+ "camera-data": pe,
8140
8139
  "cdn-file-resolver": A(t),
8141
8140
  "current-camera": h.value,
8142
8141
  "current-day": g.value,
8143
8142
  "current-time": _.value
8144
8143
  }, null, 8, ["camera-data", "cdn-file-resolver", "current-camera", "current-day", "current-time"]))), 128)),
8145
- (v(!0), D(pe, null, Ce(Fe.value, (me, ze) => (v(), $(Ei, {
8144
+ (v(!0), D(ve, null, Ce(Fe.value, (pe, ze) => (v(), $(Ei, {
8146
8145
  key: `transition${ze}`,
8147
- "transition-data": me,
8146
+ "transition-data": pe,
8148
8147
  "cdn-file-resolver": A(t),
8149
8148
  "current-transition": y.value
8150
8149
  }, null, 8, ["transition-data", "cdn-file-resolver", "current-transition"]))), 128)),
@@ -8164,7 +8163,7 @@ const lu = {
8164
8163
  onOnClick: Le,
8165
8164
  onOnHoverOver: N,
8166
8165
  onOnHoverOut: ee,
8167
- onUpdateSvgContainer: J[2] || (J[2] = (me) => te.value = me),
8166
+ onUpdateSvgContainer: J[2] || (J[2] = (pe) => te.value = pe),
8168
8167
  onOnError: ut
8169
8168
  }, null, 8, ["cdn-file-resolver", "color-callback", "current-camera", "selected-id", "activeStructureIds"])), [
8170
8169
  [Ae, y.value === null]