@figurosity/consumer-three-sixty-tool 0.3.7 → 0.3.8

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,12 +1,12 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("html,body{-webkit-text-size-adjust:none;touch-action:manipulation}.detector{cursor:default;position:fixed;top:0;left:0;right:0;bottom:0;z-index:8}.detector.moving{cursor:move}.three-sixty-viewer .row .col,.three-sixty-viewer .row div{text-align:center}.loading-bar{position:absolute;bottom:0;z-index:100}.three-sixty-viewer{z-index:2!important}.image-background{position:fixed;bottom:0;top:0;left:0;right:0;z-index:1;overflow:hidden;background-color:#fff;-webkit-transition:background-color .1s linear;-ms-transition:background-color .1s linear;transition:background-color .1s linear}.image-background.negative{background-color:#000}.image-holder{position:absolute;background-color:#fff;filter:none;z-index:3}.image-holder-overlay{position:absolute;z-index:4;top:0;left:0;right:0;bottom:0;background:#fff0;background:linear-gradient(82deg,#fff,#fff 1%,#fff0 8%,#fff0),linear-gradient(287deg,#fff,#fff 1%,#fff0 8%,#fff0)}.image-holder-overlay.negative{position:absolute;z-index:4;top:0;left:0;right:0;bottom:0;background:#0000;background:linear-gradient(82deg,#000,#000 1%,#0000 8%,#0000),linear-gradient(287deg,#000,#000 1%,#0000 8%,#0000)}.pose-image{display:block;width:100%;height:auto}.grid-overlay{position:absolute;top:0;left:0;z-index:5;width:100%;height:100%}.grid-overlay .vertical-center{position:absolute;z-index:20;left:50%;top:0;width:1px;background-color:#9c0000;height:100%}.grid-overlay .horizontal-center{position:absolute;z-index:20;top:50%;left:0;height:1px;background-color:#9c0000;width:100%}.grid-overlay-cell{position:absolute;background-color:#0087ff80}.ts-position-move-holder{overflow:hidden;width:100%;padding-top:150px;height:0;opacity:1;position:relative}.slide-fade-enter-active,.slide-fade-leave-active{transition:all .3s ease}.slide-fade-enter,.slide-fade-leave-to{padding-top:0!important;opacity:0}.frozen-overlay{position:absolute;z-index:2;top:0;left:0;bottom:0;right:0}")),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- import { ref as A, computed as d, watch as Z, onBeforeMount as $t, defineComponent as g, h as u, withDirectives as ut, vShow as dt, inject as te, openBlock as Ge, createElementBlock as Ot, normalizeStyle as Rt, createVNode as Ce, unref as re, onMounted as ze, nextTick as Kt, onBeforeUnmount as Xe, useModel as Nt, createBlock as ot, withCtx as Le, createCommentVNode as Lt, mergeModels as Zt } from "vue";
3
- import { useQuasar as mt, QBtn as Gt, QSeparator as ne, QLinearProgress as qt } from "quasar";
4
- import { defineStore as he, getActivePinia as Wt, storeToRefs as y } from "pinia";
5
- import { DEFAULT_SATURATE as Ht, DEFAULT_CONTRAST as Xt, DEFAULT_BRIGHTNESS as Yt, getConfig as Qt, useDynamicImages as Jt, LOADED as Ee, LOADING as ye, FAILED as ae, UNLOADED as rt, QUEUED as es, DEFAULT_VISIBLE as ts, DEFAULT_VERTICAL as ss, DEFAULT_SPACING as ns, DEFAULT_HORIZONTAL as os, Point as G, Size as fe, Rect as qe, DEFAULT as pt, NOTHING as ft, BRIGHTNESS as We, CONTRAST as ht, SATURATE as gt, CAMERA_ANGLE as Y, EFFECTS as Q, GRID as J, RELATED as ee, VIEWS as xe, TOOLBAR as at, MOVE as rs, ZOOM as as, SPIN as is, ADJUSTMENTS as be, SKINS as ke, POSITION as cs, useFilterStyle as Ye, useEventBus as ls, useWakeLock as us } from "@figurosity/toolbox";
2
+ import { ref as A, computed as d, watch as G, onBeforeMount as Ot, defineComponent as g, h as u, withDirectives as ut, vShow as dt, inject as te, openBlock as Ge, createElementBlock as Rt, normalizeStyle as Kt, createVNode as Ce, unref as re, onMounted as ze, nextTick as Nt, onBeforeUnmount as Xe, useModel as Lt, createBlock as ot, withCtx as Le, createCommentVNode as Zt, mergeModels as Gt } from "vue";
3
+ import { useQuasar as mt, QBtn as qt, QSeparator as ne, QLinearProgress as Wt } from "quasar";
4
+ import { defineStore as he, getActivePinia as Ht, storeToRefs as y } from "pinia";
5
+ import { DEFAULT_SATURATE as Xt, DEFAULT_CONTRAST as Yt, DEFAULT_BRIGHTNESS as Qt, getConfig as Jt, useDynamicImages as es, LOADED as Ee, LOADING as ye, FAILED as ae, UNLOADED as rt, QUEUED as ts, DEFAULT_VISIBLE as ss, DEFAULT_VERTICAL as ns, DEFAULT_SPACING as os, DEFAULT_HORIZONTAL as rs, Point as q, Size as fe, Rect as qe, DEFAULT as pt, NOTHING as ft, BRIGHTNESS as We, CONTRAST as ht, SATURATE as gt, CAMERA_ANGLE as Y, EFFECTS as Q, GRID as J, RELATED as ee, VIEWS as xe, TOOLBAR as at, MOVE as as, ZOOM as is, SPIN as cs, ADJUSTMENTS as be, SKINS as ke, POSITION as ls, useFilterStyle as Ye, useEventBus as us, useWakeLock as ds } from "@figurosity/toolbox";
6
6
  import Ie from "@tweenjs/tween.js";
7
- import { CBasicTool as we, CExpansion as de, CBaseButton as q, CBaseButtons as Qe, CNewGridTool as ds, CDraggableDrawer as W, CDraggableDrawers as ms, CGridOverlay as ps, CToolPage as fs } from "@figurosity/consumer-controls";
7
+ import { CBasicTool as we, CExpansion as de, CBaseButton as W, CBaseButtons as Qe, CNewGridTool as ms, CDraggableDrawer as H, CDraggableDrawers as ps, CGridOverlay as fs, CToolPage as hs } from "@figurosity/consumer-controls";
8
8
  import { EventManager as it } from "mjolnir.js";
9
- import { supportsPassiveEvents as hs } from "detect-it";
9
+ import { supportsPassiveEvents as gs } from "detect-it";
10
10
  const ie = 26, De = {
11
11
  model(e) {
12
12
  const t = f();
@@ -137,10 +137,10 @@ const ie = 26, De = {
137
137
  ...o
138
138
  }
139
139
  }), vt = {
140
- brightness: Yt,
141
- contrast: Xt,
142
- saturate: Ht
143
- }, gs = {
140
+ brightness: Qt,
141
+ contrast: Yt,
142
+ saturate: Xt
143
+ }, vs = {
144
144
  changed(e) {
145
145
  return this.propertyChanged("brightness") || this.propertyChanged("contrast") || this.propertyChanged("saturate");
146
146
  },
@@ -156,18 +156,18 @@ const ie = 26, De = {
156
156
  }, U = Fe({
157
157
  storeId: "360-adjustments",
158
158
  defaultValues: Object.assign({}, vt),
159
- getters: gs,
159
+ getters: vs,
160
160
  keyBy: "basePoseId"
161
161
  });
162
- function vs(e, t) {
163
- let s = Ss(t, e);
162
+ function Ss(e, t) {
163
+ let s = ys(t, e);
164
164
  return s < 0 && (s = e + s), isNaN(Math.floor(s)) ? 0 : Math.floor(s);
165
165
  }
166
- function Ss(e, t) {
166
+ function ys(e, t) {
167
167
  return Math[e > 0 ? "floor" : "ceil"](e % t);
168
168
  }
169
- let oe = null, L = null;
170
- const ys = {
169
+ let oe = null, Z = null;
170
+ const bs = {
171
171
  animating: !1,
172
172
  condisabledtrast: !1,
173
173
  disabledTimeout: null,
@@ -176,7 +176,7 @@ const ys = {
176
176
  renderCount: 36,
177
177
  index: 1,
178
178
  frame: 1
179
- }, bs = {}, ks = {
179
+ }, ks = {}, Is = {
180
180
  changed() {
181
181
  const e = this.model;
182
182
  return e && e.frame !== e.index;
@@ -188,7 +188,7 @@ const ys = {
188
188
  const e = this.model;
189
189
  return e ? e.frame : 0;
190
190
  }
191
- }, Is = {
191
+ }, Ts = {
192
192
  initModel({ id: e, index: t = 0, renderCount: s = 36 }) {
193
193
  typeof this.models[e] < "u" || (this.models[e] = {
194
194
  index: t,
@@ -217,13 +217,13 @@ const ys = {
217
217
  * Stop the spin
218
218
  */
219
219
  stopSpin() {
220
- L && L.stop();
220
+ Z && Z.stop();
221
221
  },
222
222
  setFrame(e, t) {
223
223
  const s = f();
224
224
  t = t || s.id;
225
225
  const o = { ...t ? this.models[t] : this.model };
226
- oe && window.cancelAnimationFrame(oe), L && (L.stop(), L = null);
226
+ oe && window.cancelAnimationFrame(oe), Z && (Z.stop(), Z = null);
227
227
  const r = o.max;
228
228
  e > r && (e = 0), e < 0 && (e = r), o.animating = !1, o.frame = e, s.pulseKinetic(), this.$patch({
229
229
  models: {
@@ -242,13 +242,13 @@ const ys = {
242
242
  const a = this;
243
243
  if (e === r)
244
244
  return;
245
- this.setProperty("start", r), oe && window.cancelAnimationFrame(oe), L && (L.stop(), L = null);
245
+ this.setProperty("start", r), oe && window.cancelAnimationFrame(oe), Z && (Z.stop(), Z = null);
246
246
  function i(c) {
247
247
  oe = window.requestAnimationFrame(i), Ie.update(c);
248
248
  }
249
- this.setPropertyById(n, "animating", !0), L = new Ie.Tween({ value: r }).easing(Ie.Easing.Quartic.Out).to({ value: e }, t).onUpdate(function(c) {
249
+ this.setPropertyById(n, "animating", !0), Z = new Ie.Tween({ value: r }).easing(Ie.Easing.Quartic.Out).to({ value: e }, t).onUpdate(function(c) {
250
250
  let l = parseInt(c.value.toFixed(0));
251
- const m = vs(o, l);
251
+ const m = Ss(o, l);
252
252
  m !== r && (a.setPropertyById(n, "frame", m), f().pulseKinetic());
253
253
  }).onComplete(function() {
254
254
  window.cancelAnimationFrame(oe), oe = null, a.setPropertyById(n, "animationFrame", null), a.setPropertyById(n, "animating", !1);
@@ -256,14 +256,14 @@ const ys = {
256
256
  }
257
257
  }, ge = Fe({
258
258
  storeId: "360-spin",
259
- defaultValues: Object.assign({}, ys),
260
- state: bs,
261
- getters: ks,
262
- actions: Is
259
+ defaultValues: Object.assign({}, bs),
260
+ state: ks,
261
+ getters: Is,
262
+ actions: Ts
263
263
  });
264
- function Pe() {
265
- const { freeServer: e, paidServer: t } = Qt();
266
- return Jt({ freeServer: e, paidServer: t });
264
+ function Be() {
265
+ const { freeServer: e, paidServer: t } = Jt();
266
+ return es({ freeServer: e, paidServer: t });
267
267
  }
268
268
  function St(e, t) {
269
269
  for (const s in t)
@@ -371,7 +371,7 @@ const M = he("360-skins", {
371
371
  actions: {
372
372
  ...Ae,
373
373
  initModel({ id: e, skinId: t, accessKeys: s, censoredSkinIds: n = [], renderCount: o, skins: r, skinIds: a, uuid: i }) {
374
- const c = le(), { getPoseLarge: l, getPoseSmall: m } = Pe();
374
+ const c = le(), { getPoseLarge: l, getPoseSmall: m } = Be();
375
375
  this.censoredSkinIds = n, this.accessKeys = s;
376
376
  const h = this.appColorsStore;
377
377
  j();
@@ -394,31 +394,31 @@ const M = he("360-skins", {
394
394
  order: b.order,
395
395
  effects: {}
396
396
  };
397
- Object.keys(Te).forEach((E) => {
398
- E = parseInt(E);
399
- const $ = Te[E], x = [], H = [], R = E === 3 ? I : k;
400
- for (let z = 0; z < o; z++) {
401
- const B = {
397
+ Object.keys(Te).forEach((z) => {
398
+ z = parseInt(z);
399
+ const $ = Te[z], E = [], X = [], K = z === 3 ? I : k;
400
+ for (let x = 0; x < o; x++) {
401
+ const P = {
402
402
  uuid: i,
403
403
  skin: b.slug,
404
404
  effect: $.slug,
405
- color: R,
406
- index: z
407
- }, X = m(B), V = l(B);
408
- x.push(X), H.push(V);
409
- const K = {
405
+ color: K,
406
+ index: x
407
+ }, O = m(P), V = l(P);
408
+ E.push(O), X.push(V);
409
+ const N = {
410
410
  skinId: v,
411
411
  failCount: 0,
412
412
  effectId: parseInt($.id),
413
- backgroundColor: R,
413
+ backgroundColor: K,
414
414
  poseId: e,
415
415
  skin: b.slug,
416
416
  status: rt
417
417
  };
418
- w[X] = { ...K, url: X }, w[V] = { ...K, url: V };
418
+ w[O] = { ...N, url: O }, w[V] = { ...N, url: V };
419
419
  }
420
- F.effects[E] = {
421
- [R]: {
420
+ F.effects[z] = {
421
+ [K]: {
422
422
  status: rt,
423
423
  active: !1,
424
424
  percent: 0,
@@ -427,8 +427,8 @@ const M = he("360-skins", {
427
427
  started: !1,
428
428
  complete: !1,
429
429
  images: {
430
- large: H,
431
- small: x
430
+ large: X,
431
+ small: E
432
432
  },
433
433
  previewLoaded: !1
434
434
  }
@@ -574,7 +574,7 @@ const M = he("360-skins", {
574
574
  loadImage(e, t = void 0) {
575
575
  if (this.models[e].status === ye) return;
576
576
  if (typeof Image > "u") return this.setStatus(e, ae);
577
- this.setStatus(e, es);
577
+ this.setStatus(e, ts);
578
578
  const o = new Image(), r = this;
579
579
  o.onabort = function(a) {
580
580
  r.setStatus(this.src, ae), this.onerror = this.onabort = this.onload = null;
@@ -768,11 +768,11 @@ const M = he("360-skins", {
768
768
  }
769
769
  }
770
770
  }), yt = {
771
- horizontal: os,
772
- spacing: ns,
773
- vertical: ss,
774
- visible: ts
775
- }, Ts = {
771
+ horizontal: rs,
772
+ spacing: os,
773
+ vertical: ns,
774
+ visible: ss
775
+ }, ws = {
776
776
  changed() {
777
777
  return this.propertyChanged("visible") || !1;
778
778
  },
@@ -791,7 +791,7 @@ const M = he("360-skins", {
791
791
  }, ue = Fe({
792
792
  storeId: "360-grid",
793
793
  defaultValues: yt,
794
- getters: Ts,
794
+ getters: ws,
795
795
  keyBy: "basePoseId"
796
796
  }), se = he("360-pose", {
797
797
  state: () => ({
@@ -850,11 +850,11 @@ const M = he("360-skins", {
850
850
  }) => {
851
851
  const i = {}, c = s / r.shortDimension(), l = (c - 1) * (a / 100) + 1;
852
852
  if (l < 1 || l > c) return {};
853
- const m = ws({
853
+ const m = Ds({
854
854
  factor: l,
855
855
  size: r,
856
856
  maxDimension: s
857
- }), h = zs({
857
+ }), h = Es({
858
858
  scaleByRatio: o,
859
859
  imageSize: e,
860
860
  newSize: m,
@@ -862,24 +862,24 @@ const M = he("360-skins", {
862
862
  size: r,
863
863
  origin: n
864
864
  });
865
- return i.imagePoint = h, i.imageSize = m, i.size = r, i.zoom = a, Object.assign(i, Cs({ maxDimension: s, newSize: m, size: r }));
866
- }, ws = ({ factor: e, size: t, maxDimension: s }) => {
865
+ return i.imagePoint = h, i.imageSize = m, i.size = r, i.zoom = a, Object.assign(i, zs({ maxDimension: s, newSize: m, size: r }));
866
+ }, Ds = ({ factor: e, size: t, maxDimension: s }) => {
867
867
  let n = t.shortDimension() * e;
868
868
  return n = n > s ? s : n, new fe(n, n);
869
- }, Ds = ({ imagePoint: e, imageSize: t, newSize: s, size: n, origin: o }) => {
869
+ }, Bs = ({ imagePoint: e, imageSize: t, newSize: s, size: n, origin: o }) => {
870
870
  const r = (s.width - t.width) / t.width;
871
- let a = new G(
871
+ let a = new q(
872
872
  -(r * o.left) - Math.abs(e.left),
873
873
  -(r * o.top) - Math.abs(e.top)
874
874
  );
875
875
  return s.width < n.width && (a.left = -(r * o.left) + Math.abs(e.left)), s.height < n.height && (a.top = -(r * o.top) + Math.abs(e.top)), a;
876
- }, Ps = ({ event: e, element: t }) => (e = e.srcEvent ? e.srcEvent : e, G.getPointFromInteractionEvent(e, t)), Bs = ({ origin: e, imageSize: t }) => !(e.left > 0 && e.top > 0 && e.left < t.width && e.top < t.height), Cs = ({ maxDimension: e, newSize: t, size: s }) => {
876
+ }, Ps = ({ event: e, element: t }) => (e = e.srcEvent ? e.srcEvent : e, q.getPointFromInteractionEvent(e, t)), Cs = ({ origin: e, imageSize: t }) => !(e.left > 0 && e.top > 0 && e.left < t.width && e.top < t.height), zs = ({ maxDimension: e, newSize: t, size: s }) => {
877
877
  const n = t.width <= s.width, o = t.height <= s.height, r = {};
878
878
  return r.immobileHeight = o, r.immobileWidth = n, r.maximized = Math.round(t.width) >= e, r.minimized = n && o, r.movable = !n || !o, r;
879
879
  }, He = ({ point: e, size: t, newSize: s }) => {
880
- let n = new G(t.width - s.width, t.height - s.height);
880
+ let n = new q(t.width - s.width, t.height - s.height);
881
881
  return s.width >= t.width && (e.left >= 0 && (e.left = 0), e.left < n.left && (e.left = n.left)), s.height >= t.height && (e.top >= 0 && (e.top = 0), e.top < n.top && (e.top = n.top)), s.width < t.width && (e.left = n.left / 2), s.height < t.height && (e.top = n.top / 2), e;
882
- }, zs = ({
882
+ }, Es = ({
883
883
  scaleByRatio: e = !0,
884
884
  imagePoint: t,
885
885
  imageSize: s,
@@ -888,10 +888,10 @@ const M = he("360-skins", {
888
888
  size: r
889
889
  }) => {
890
890
  if (e) {
891
- const i = Es({ imageSize: s, newSize: n, imagePoint: t });
891
+ const i = xs({ imageSize: s, newSize: n, imagePoint: t });
892
892
  return He({ point: i, newSize: n, size: r });
893
893
  }
894
- const a = Ds({
894
+ const a = Bs({
895
895
  imagePoint: t,
896
896
  imageSize: s,
897
897
  newSize: n,
@@ -899,17 +899,17 @@ const M = he("360-skins", {
899
899
  origin: o
900
900
  });
901
901
  return He({ point: a, newSize: n, size: r });
902
- }, Es = ({ imageSize: e, newSize: t, imagePoint: s }) => {
903
- let n = new G(
902
+ }, xs = ({ imageSize: e, newSize: t, imagePoint: s }) => {
903
+ let n = new q(
904
904
  (e.width - t.width) / 2,
905
905
  (e.height - t.height) / 2
906
906
  );
907
- return new G(s.left + n.left, s.top + n.top);
907
+ return new q(s.left + n.left, s.top + n.top);
908
908
  }, ce = {
909
909
  maxDimension: 2048,
910
910
  zoom: 0,
911
- imagePoint: new G(0, 0),
912
- viewportPoint: new G(0, 0),
911
+ imagePoint: new q(0, 0),
912
+ viewportPoint: new q(0, 0),
913
913
  size: new fe(0, 0),
914
914
  imageSize: new fe(0, 0),
915
915
  immobileWidth: !1,
@@ -917,7 +917,7 @@ const M = he("360-skins", {
917
917
  maximized: !1,
918
918
  minimized: !1,
919
919
  animating: !1
920
- }, xs = {}, As = {
920
+ }, As = {}, Fs = {
921
921
  changed() {
922
922
  return this.propertyChanged("zoom");
923
923
  },
@@ -954,8 +954,8 @@ const M = he("360-skins", {
954
954
  return s ? s.size : ce.size;
955
955
  }
956
956
  };
957
- let Be = null, Se = null;
958
- const Fs = {
957
+ let Pe = null, Se = null;
958
+ const Ms = {
959
959
  reset() {
960
960
  this.setZoom(0);
961
961
  },
@@ -970,8 +970,8 @@ const Fs = {
970
970
  const s = this.model;
971
971
  let n = { zoom: s.zoom }, o = { zoom: e };
972
972
  const r = this, a = (i) => {
973
- if (Be = window.requestAnimationFrame(a), !s.animating) {
974
- window.cancelAnimationFrame(Be);
973
+ if (Pe = window.requestAnimationFrame(a), !s.animating) {
974
+ window.cancelAnimationFrame(Pe);
975
975
  return;
976
976
  }
977
977
  Ie.update(i);
@@ -981,7 +981,7 @@ const Fs = {
981
981
  c !== s.zoom && r.setZoom(c);
982
982
  }).onComplete(function(i) {
983
983
  let c = parseInt(i.zoom);
984
- window.cancelAnimationFrame(Be), Be = null, r.setZoom(c), r.setProperty("animating", !1);
984
+ window.cancelAnimationFrame(Pe), Pe = null, r.setZoom(c), r.setProperty("animating", !1);
985
985
  }).start(), a();
986
986
  },
987
987
  /**
@@ -994,7 +994,7 @@ const Fs = {
994
994
  n[c] = ce[c];
995
995
  });
996
996
  const o = qe.newRectFromElement(e), r = new fe(o.width, o.height), a = (r.width - r.shortDimension()) / 2, i = (r.height - r.shortDimension()) / 2;
997
- n.id = s, n.imagePoint = new G(a, i), n.imageSize = new fe(r.shortDimension(), r.shortDimension()), n.size = r, n.zoom = 0, this.$patch((c) => {
997
+ n.id = s, n.imagePoint = new q(a, i), n.imageSize = new fe(r.shortDimension(), r.shortDimension()), n.size = r, n.zoom = 0, this.$patch((c) => {
998
998
  c.models[s] = { ...n };
999
999
  });
1000
1000
  },
@@ -1041,7 +1041,7 @@ const Fs = {
1041
1041
  if (!n) return;
1042
1042
  const o = n.zoom + s;
1043
1043
  if (o < 0 || o > 100) return;
1044
- const r = n.imageSize, a = Ps({ event: e, element: t }), i = Bs({
1044
+ const r = n.imageSize, a = Ps({ event: e, element: t }), i = Cs({
1045
1045
  origin: a,
1046
1046
  imageSize: r
1047
1047
  }), c = Ze({
@@ -1081,10 +1081,10 @@ const Fs = {
1081
1081
  }, me = Fe({
1082
1082
  storeId: "360-zoom",
1083
1083
  defaultValues: ce,
1084
- state: xs,
1085
- getters: As,
1086
- actions: Fs
1087
- }), Ms = {
1084
+ state: As,
1085
+ getters: Fs,
1086
+ actions: Ms
1087
+ }), _s = {
1088
1088
  ...vt,
1089
1089
  ...yt,
1090
1090
  ...ce
@@ -1119,7 +1119,7 @@ const Fs = {
1119
1119
  return ((t = this.appFreezeStore) == null ? void 0 : t.isFrozen(e.basePoseId)) || !1;
1120
1120
  },
1121
1121
  propertyChangedById() {
1122
- return (e, t) => this.propertyById(e, t) !== Ms[t];
1122
+ return (e, t) => this.propertyById(e, t) !== _s[t];
1123
1123
  },
1124
1124
  propertyById(e) {
1125
1125
  return (t, s, n = null) => {
@@ -1218,7 +1218,7 @@ const Fs = {
1218
1218
  this._clearKineticTimer(), this.isKinetic = !1;
1219
1219
  }
1220
1220
  }
1221
- }), _s = "tool:switched", Vs = "pose:viewed", js = "skin:changed", lt = /* @__PURE__ */ Object.assign({ "../i18n/en-US/index.js": () => import("./index-C3l3cs_R.js"), "../i18n/es/index.js": () => import("./index-M-P_KhqK.js") }), P = (e = "../i18n") => {
1221
+ }), Vs = "tool:switched", js = "pose:viewed", Us = "skin:changed", lt = /* @__PURE__ */ Object.assign({ "../i18n/en-US/index.js": () => import("./index-C3l3cs_R.js"), "../i18n/es/index.js": () => import("./index-M-P_KhqK.js") }), B = (e = "../i18n") => {
1222
1222
  const t = mt(), s = A({}), n = d(() => t.lang.isoName || "en-US"), o = async () => {
1223
1223
  const r = `${e}/${n.value}/index.js`;
1224
1224
  if (lt[r])
@@ -1231,24 +1231,24 @@ const Fs = {
1231
1231
  else
1232
1232
  console.error(`Module not found: ${r}`);
1233
1233
  };
1234
- return Z(
1234
+ return G(
1235
1235
  () => n.value,
1236
1236
  () => {
1237
1237
  o();
1238
1238
  },
1239
1239
  { immediate: !0 }
1240
- ), $t(() => {
1240
+ ), Ot(() => {
1241
1241
  o();
1242
1242
  }), { lang: s };
1243
1243
  }, _ = ({ tab: e = ft, store: t, options: s = [] }) => {
1244
- const n = Wt(), o = f(n), r = d({
1244
+ const n = Ht(), o = f(n), r = d({
1245
1245
  get: () => o.isExpanded(s),
1246
1246
  set: (c) => {
1247
1247
  c && o.setActive(e);
1248
1248
  }
1249
1249
  }), a = d(() => t && t.changed);
1250
1250
  return { click: () => o.setActive(e), expanded: r, selected: a };
1251
- }, Us = g({
1251
+ }, $s = g({
1252
1252
  name: "TsBrightnessTool",
1253
1253
  props: {
1254
1254
  noIcons: Boolean
@@ -1271,7 +1271,7 @@ const Fs = {
1271
1271
  }
1272
1272
  return () => c();
1273
1273
  }
1274
- }), $s = g({
1274
+ }), Os = g({
1275
1275
  name: "TsContrastTool",
1276
1276
  props: {
1277
1277
  noIcons: Boolean
@@ -1295,7 +1295,7 @@ const Fs = {
1295
1295
  }
1296
1296
  return () => c();
1297
1297
  }
1298
- }), Os = g({
1298
+ }), Rs = g({
1299
1299
  name: "TsSaturateTool",
1300
1300
  props: {
1301
1301
  noIcons: Boolean
@@ -1323,18 +1323,18 @@ const Fs = {
1323
1323
  name: "TsAdjustmentSection",
1324
1324
  setup(e, { slots: t, emit: s }) {
1325
1325
  function n() {
1326
- return [u(Us), u($s), u(Os)];
1326
+ return [u($s), u(Os), u(Rs)];
1327
1327
  }
1328
1328
  return () => n();
1329
1329
  }
1330
- }), Rs = g({
1330
+ }), Ks = g({
1331
1331
  name: "TsAdjustmentExpansion",
1332
1332
  setup(e, { slots: t, emit: s }) {
1333
1333
  const n = U(), { expanded: o, selected: r } = _({
1334
1334
  store: n,
1335
1335
  tab: We,
1336
1336
  options: [We, ht, gt]
1337
- }), { lang: a } = P(), i = d(() => {
1337
+ }), { lang: a } = B(), i = d(() => {
1338
1338
  var l;
1339
1339
  return (l = a.value.ts) == null ? void 0 : l.controls.adjustments.title;
1340
1340
  });
@@ -1375,10 +1375,10 @@ const Fs = {
1375
1375
  }
1376
1376
  return () => n();
1377
1377
  }
1378
- }), Ks = g({
1378
+ }), Ns = g({
1379
1379
  name: "TsRelatedExpansion",
1380
1380
  setup(e, { slots: t, emit: s }) {
1381
- const { lang: n } = P(), { expanded: o } = _({
1381
+ const { lang: n } = B(), { expanded: o } = _({
1382
1382
  options: Y,
1383
1383
  tab: Y
1384
1384
  }), r = d(() => {
@@ -1397,7 +1397,7 @@ const Fs = {
1397
1397
  }
1398
1398
  return () => a();
1399
1399
  }
1400
- }), Ns = g({
1400
+ }), Ls = g({
1401
1401
  name: "TsEffectsButton",
1402
1402
  props: {
1403
1403
  id: Number,
@@ -1407,7 +1407,7 @@ const Fs = {
1407
1407
  },
1408
1408
  emits: ["click", "update:modelValue"],
1409
1409
  setup(e, { slots: t, emit: s }) {
1410
- const n = f(), o = se(), r = M(), a = le(), i = j(), { getThumbnail: c } = Pe(), { id: l } = y(i), { color: m } = y(n), { skinId: h, slug: k } = y(r), I = d(() => o.property("setUuid"));
1410
+ const n = f(), o = se(), r = M(), a = le(), i = j(), { getThumbnail: c } = Be(), { id: l } = y(i), { color: m } = y(n), { skinId: h, slug: k } = y(r), I = d(() => o.property("setUuid"));
1411
1411
  d(() => r.getPropertyByImageSet(
1412
1412
  {
1413
1413
  id: n.id,
@@ -1445,7 +1445,7 @@ const Fs = {
1445
1445
  type: "radio",
1446
1446
  style: D.value
1447
1447
  };
1448
- return u(q, b);
1448
+ return u(W, b);
1449
1449
  }
1450
1450
  return () => v();
1451
1451
  }
@@ -1463,7 +1463,7 @@ const Fs = {
1463
1463
  const o = [];
1464
1464
  return o.push(u(Je)), s.value.forEach((a) => {
1465
1465
  o.push(
1466
- u(Ns, {
1466
+ u(Ls, {
1467
1467
  id: a.id,
1468
1468
  label: a.name,
1469
1469
  slug: a.slug,
@@ -1476,10 +1476,10 @@ const Fs = {
1476
1476
  }
1477
1477
  return () => n();
1478
1478
  }
1479
- }), Ls = g({
1479
+ }), Zs = g({
1480
1480
  name: "TsEffectsExpansion",
1481
1481
  setup(e, { slots: t, emit: s }) {
1482
- const { lang: n } = P(), o = j(), { selected: r } = y(o), { expanded: a } = _({
1482
+ const { lang: n } = B(), o = j(), { selected: r } = y(o), { expanded: a } = _({
1483
1483
  store: o,
1484
1484
  options: Q,
1485
1485
  tab: Q
@@ -1539,14 +1539,14 @@ const Fs = {
1539
1539
  hasAccess: n.value,
1540
1540
  onBlockAccess: o
1541
1541
  };
1542
- return u(ds, m, () => []);
1542
+ return u(ms, m, () => []);
1543
1543
  }
1544
1544
  return () => l();
1545
1545
  }
1546
- }), Zs = g({
1546
+ }), Gs = g({
1547
1547
  name: "TsGridExpansion",
1548
1548
  setup(e, { slots: t, emit: s }) {
1549
- const { lang: n } = P(), o = ue(), { expanded: r, selected: a } = _({
1549
+ const { lang: n } = B(), o = ue(), { expanded: r, selected: a } = _({
1550
1550
  store: o,
1551
1551
  options: J,
1552
1552
  tab: J
@@ -1579,10 +1579,10 @@ const Fs = {
1579
1579
  }
1580
1580
  return () => s();
1581
1581
  }
1582
- }), Gs = g({
1582
+ }), qs = g({
1583
1583
  name: "TsRelatedExpansion",
1584
1584
  setup(e, { slots: t, emit: s }) {
1585
- const { lang: n } = P(), { expanded: o } = _({
1585
+ const { lang: n } = B(), { expanded: o } = _({
1586
1586
  options: ee,
1587
1587
  tab: ee
1588
1588
  }), r = d(() => {
@@ -1612,10 +1612,10 @@ const Fs = {
1612
1612
  }
1613
1613
  return () => s();
1614
1614
  }
1615
- }), qs = g({
1615
+ }), Ws = g({
1616
1616
  name: "TsSavedExpansion",
1617
1617
  setup() {
1618
- const { lang: e } = P(), { expanded: t } = _({
1618
+ const { lang: e } = B(), { expanded: t } = _({
1619
1619
  options: ie,
1620
1620
  tab: ie
1621
1621
  }), s = d(() => {
@@ -1634,7 +1634,7 @@ const Fs = {
1634
1634
  }
1635
1635
  return () => n();
1636
1636
  }
1637
- }), Ws = Symbol.for("activity-tracking"), Hs = g({
1637
+ }), Hs = Symbol.for("activity-tracking"), Xs = g({
1638
1638
  name: "TsSkinLoadingButton",
1639
1639
  props: {
1640
1640
  dark: { type: Boolean, default: !0 },
@@ -1645,10 +1645,10 @@ const Fs = {
1645
1645
  },
1646
1646
  emits: [],
1647
1647
  setup(e, { slots: t, emit: s }) {
1648
- const n = f(), o = se(), r = M(), a = le(), i = j(), c = te(Ws, null), { getThumbnail: l } = Pe(), { slug: m, id: h } = y(i), { color: k } = y(n), { skinId: I } = y(r), D = d(() => o.property("setUuid")), w = (x) => n.block(x), v = (x) => n.hasAccess(r.accessKeys[x]), b = (x) => {
1649
- r.setProperty("skinId", x), a.loadSkin(), c == null || c.trackEvent(js, { value: e.slug });
1650
- }, F = (x) => {
1651
- switch (x) {
1648
+ const n = f(), o = se(), r = M(), a = le(), i = j(), c = te(Hs, null), { getThumbnail: l } = Be(), { slug: m, id: h } = y(i), { color: k } = y(n), { skinId: I } = y(r), D = d(() => o.property("setUuid")), w = (E) => n.block(E), v = (E) => n.hasAccess(r.accessKeys[E]), b = (E) => {
1649
+ r.setProperty("skinId", E), a.loadSkin(), c == null || c.trackEvent(Us, { value: e.slug });
1650
+ }, F = (E) => {
1651
+ switch (E) {
1652
1652
  case "nude":
1653
1653
  return "snd";
1654
1654
  case "muscle":
@@ -1665,7 +1665,7 @@ const Fs = {
1665
1665
  margin: "3px",
1666
1666
  marginBottom: e.size === "sm" ? "40px" : "30px"
1667
1667
  }));
1668
- const E = d(() => ({
1668
+ const z = d(() => ({
1669
1669
  margin: "3px",
1670
1670
  marginBottom: e.size === "sm" ? "40px" : "30px"
1671
1671
  }));
@@ -1679,12 +1679,12 @@ const Fs = {
1679
1679
  "percent"
1680
1680
  ));
1681
1681
  function $() {
1682
- const x = {
1682
+ const E = {
1683
1683
  class: `ts-${e.slug}-button ts-skin-button`,
1684
1684
  label: e.name,
1685
1685
  key: e.id,
1686
1686
  access: F(e.slug),
1687
- style: E.value,
1687
+ style: z.value,
1688
1688
  size: e.size,
1689
1689
  image: l({
1690
1690
  uuid: D.value,
@@ -1699,11 +1699,11 @@ const Fs = {
1699
1699
  onBlockAccess: w,
1700
1700
  type: "radio"
1701
1701
  };
1702
- return u(q, x);
1702
+ return u(W, E);
1703
1703
  }
1704
1704
  return () => $();
1705
1705
  }
1706
- }), Pt = g({
1706
+ }), Bt = g({
1707
1707
  name: "TsSkinSection",
1708
1708
  props: { noWrap: Boolean, size: { type: String, default: "sm" } },
1709
1709
  setup(e, {}) {
@@ -1718,15 +1718,15 @@ const Fs = {
1718
1718
  type: "radio",
1719
1719
  label: r.name
1720
1720
  };
1721
- o.push(u(Hs, a));
1721
+ o.push(u(Xs, a));
1722
1722
  }), u(Qe, {}, () => o);
1723
1723
  }
1724
1724
  return () => n();
1725
1725
  }
1726
- }), Xs = g({
1726
+ }), Ys = g({
1727
1727
  name: "TsSkinsExpansion",
1728
1728
  setup(e, { slots: t, emit: s }) {
1729
- const { lang: n } = P(), o = M(), { selected: r } = y(o), { expanded: a } = _({
1729
+ const { lang: n } = B(), o = M(), { selected: r } = y(o), { expanded: a } = _({
1730
1730
  store: o,
1731
1731
  options: xe,
1732
1732
  tab: xe
@@ -1746,12 +1746,12 @@ const Fs = {
1746
1746
  return u(
1747
1747
  de,
1748
1748
  l,
1749
- () => u(Pt, { noWrap: !1, size: "lg", class: "q-py-sm" })
1749
+ () => u(Bt, { noWrap: !1, size: "lg", class: "q-py-sm" })
1750
1750
  );
1751
1751
  }
1752
1752
  return () => c();
1753
1753
  }
1754
- }), Bt = g({
1754
+ }), Pt = g({
1755
1755
  name: "TsPoseButtonsSection",
1756
1756
  setup() {
1757
1757
  const e = Symbol.for("PoseButtonsSection"), t = te(e), s = f();
@@ -1761,35 +1761,39 @@ const Fs = {
1761
1761
  }
1762
1762
  return () => n();
1763
1763
  }
1764
- }), Ys = g({
1764
+ }), Ct = g({
1765
1765
  name: "TsButtons",
1766
1766
  props: {
1767
1767
  bottom: {
1768
1768
  type: Boolean,
1769
1769
  default: !1
1770
+ },
1771
+ fixed: {
1772
+ type: Boolean,
1773
+ default: !0
1770
1774
  }
1771
1775
  },
1772
1776
  emits: ["click", "update:modelValue"],
1773
1777
  setup(e, { slots: t, emit: s }) {
1774
- const { lang: n } = P(), o = f(), r = U(), a = j(), i = ue(), c = M(), l = ge(), m = me(), { active: h } = y(o), { changed: k } = y(r), { changed: I } = y(i), { changed: D } = y(c), { changed: w } = y(l), { changed: v } = y(m), { changed: b } = y(a);
1778
+ const { lang: n } = B(), o = f(), r = U(), a = j(), i = ue(), c = M(), l = ge(), m = me(), { active: h } = y(o), { changed: k } = y(r), { changed: I } = y(i), { changed: D } = y(c), { changed: w } = y(l), { changed: v } = y(m), { changed: b } = y(a);
1775
1779
  d(() => {
1776
- var z;
1777
- return (z = n.value.ts) == null ? void 0 : z.buttons.done;
1780
+ var x;
1781
+ return (x = n.value.ts) == null ? void 0 : x.buttons.done;
1778
1782
  });
1779
1783
  const F = d(
1780
1784
  () => {
1781
- var z, B;
1782
- return !e.bottom || h.value === at ? (z = n.value.ts) == null ? void 0 : z.buttons.resetAll : (B = n.value.ts) == null ? void 0 : B.buttons.reset;
1785
+ var x, P;
1786
+ return !e.bottom || h.value === at ? (x = n.value.ts) == null ? void 0 : x.buttons.resetAll : (P = n.value.ts) == null ? void 0 : P.buttons.reset;
1783
1787
  }
1784
1788
  );
1785
1789
  d(
1786
- () => h.value === rs || h.value === ee || !E.value
1790
+ () => h.value === as || h.value === ee || !z.value
1787
1791
  );
1788
- const E = d(
1792
+ const z = d(
1789
1793
  () => k.value || I.value || D.value || b.value || w.value || v.value
1790
1794
  ), $ = () => {
1791
1795
  if (!e.bottom || h.value === at)
1792
- return x();
1796
+ return E();
1793
1797
  switch (h.value) {
1794
1798
  case We:
1795
1799
  r.resetProperty("brightness");
@@ -1803,7 +1807,7 @@ const Fs = {
1803
1807
  case gt:
1804
1808
  r.resetProperty("saturate");
1805
1809
  break;
1806
- case is:
1810
+ case cs:
1807
1811
  l.reset();
1808
1812
  break;
1809
1813
  case xe:
@@ -1812,29 +1816,29 @@ const Fs = {
1812
1816
  case Q:
1813
1817
  a.reset();
1814
1818
  break;
1815
- case as:
1819
+ case is:
1816
1820
  m.reset();
1817
1821
  break;
1818
1822
  }
1819
- }, x = () => {
1823
+ }, E = () => {
1820
1824
  r.reset(), i.reset(), c.reset(), l.reset(), m.reset(), a.reset();
1821
- }, H = (z) => z.preventDefault();
1822
- function R() {
1823
- const z = {
1824
- style: "position: fixed;bottom: 0; left: 0; right: 0;border-top: 1px solid var(--grey-300)",
1825
- class: "row justify-center items-center q-pa-md glass-background"
1826
- }, B = {
1825
+ }, X = (x) => x.preventDefault();
1826
+ function K() {
1827
+ const P = {
1828
+ style: e.fixed ? "position: fixed;bottom: 0; left: 0; right: 0;border-top: 1px solid var(--grey-300)" : "",
1829
+ class: e.fixed ? "row justify-center items-center q-pa-md glass-background" : "row justify-center items-center q-pa-md"
1830
+ }, O = {
1827
1831
  class: "ts-reset-button",
1828
1832
  label: F.value,
1829
1833
  onClick: $,
1830
- onKeyup: H,
1834
+ onKeyup: X,
1831
1835
  rounded: !0,
1832
1836
  unelevated: !0,
1833
1837
  outline: !0
1834
1838
  };
1835
- return u("div", z, [u(Gt, B)]);
1839
+ return u("div", P, [u(qt, O)]);
1836
1840
  }
1837
- return () => R();
1841
+ return () => K();
1838
1842
  }
1839
1843
  }), Qs = g({
1840
1844
  name: "TsExpansions",
@@ -1845,22 +1849,22 @@ const Fs = {
1845
1849
  onClick: (r) => r.stopPropagation(),
1846
1850
  style: "padding-bottom: 60px; position: relative "
1847
1851
  }, [
1848
- u(Bt),
1849
- u(ne),
1850
- u(Xs),
1852
+ u(Pt),
1851
1853
  u(ne),
1852
- u(Ls),
1853
- u(ne),
1854
- u(Ks),
1854
+ u(Ys),
1855
1855
  u(ne),
1856
1856
  u(Zs),
1857
1857
  u(ne),
1858
- u(Rs),
1858
+ u(Ns),
1859
1859
  u(ne),
1860
1860
  u(Gs),
1861
1861
  u(ne),
1862
+ u(Ks),
1863
+ u(ne),
1862
1864
  u(qs),
1863
- u(Ys)
1865
+ u(ne),
1866
+ u(Ws),
1867
+ u(Ct)
1864
1868
  ]);
1865
1869
  }
1866
1870
  return () => n();
@@ -1868,7 +1872,7 @@ const Fs = {
1868
1872
  }), Js = g({
1869
1873
  name: "TsAdjustmentDrawer",
1870
1874
  setup(e, { slots: t, emit: s }) {
1871
- const { lang: n } = P(), o = d(() => {
1875
+ const { lang: n } = B(), o = d(() => {
1872
1876
  var a;
1873
1877
  return (a = n.value.ts) == null ? void 0 : a.controls.adjustments.title;
1874
1878
  });
@@ -1878,14 +1882,14 @@ const Fs = {
1878
1882
  name: be,
1879
1883
  label: o.value
1880
1884
  };
1881
- return u(W, a, () => u(bt));
1885
+ return u(H, a, () => u(bt));
1882
1886
  }
1883
1887
  return () => r();
1884
1888
  }
1885
1889
  }), en = g({
1886
1890
  name: "TsCameraDrawer",
1887
1891
  setup(e, { slots: t, emit: s }) {
1888
- const { lang: n } = P(), o = d(() => {
1892
+ const { lang: n } = B(), o = d(() => {
1889
1893
  var a;
1890
1894
  return (a = n.value.ts) == null ? void 0 : a.controls.camera.title;
1891
1895
  });
@@ -1895,7 +1899,7 @@ const Fs = {
1895
1899
  name: Y,
1896
1900
  label: o.value
1897
1901
  };
1898
- return u(W, a, () => u(kt));
1902
+ return u(H, a, () => u(kt));
1899
1903
  }
1900
1904
  return () => r();
1901
1905
  }
@@ -1903,7 +1907,7 @@ const Fs = {
1903
1907
  name: "TsSkinButton",
1904
1908
  emits: ["click"],
1905
1909
  setup() {
1906
- const e = M(), t = se(), { lang: s } = P(), { getPoseThumbnail: n } = Pe(), { click: o, selected: r } = _({
1910
+ const e = M(), t = se(), { lang: s } = B(), { getPoseThumbnail: n } = Be(), { click: o, selected: r } = _({
1907
1911
  store: e,
1908
1912
  options: ke,
1909
1913
  tab: ke
@@ -1925,7 +1929,7 @@ const Fs = {
1925
1929
  onClick: o,
1926
1930
  type: "none"
1927
1931
  };
1928
- return u(q, h, () => []);
1932
+ return u(W, h, () => []);
1929
1933
  }
1930
1934
  return () => m();
1931
1935
  }
@@ -1933,7 +1937,7 @@ const Fs = {
1933
1937
  name: "TsGridButton",
1934
1938
  props: { size: String },
1935
1939
  setup(e, {}) {
1936
- const t = ue(), s = f(), n = d(() => (s == null ? void 0 : s.hasAccess("grd")) || !1), { lang: o } = P(), r = d(() => {
1940
+ const t = ue(), s = f(), n = d(() => (s == null ? void 0 : s.hasAccess("grd")) || !1), { lang: o } = B(), r = d(() => {
1937
1941
  var m;
1938
1942
  return (m = o.value.ts) == null ? void 0 : m.controls.grid.iconTitle;
1939
1943
  }), { click: a, selected: i } = _({
@@ -1957,7 +1961,7 @@ const Fs = {
1957
1961
  icon: "f_grid",
1958
1962
  label: r.value
1959
1963
  };
1960
- return u(q, m, () => []);
1964
+ return u(W, m, () => []);
1961
1965
  }
1962
1966
  return () => l();
1963
1967
  }
@@ -1965,7 +1969,7 @@ const Fs = {
1965
1969
  name: "TsAdjustmentsButton",
1966
1970
  props: { size: String },
1967
1971
  setup(e, {}) {
1968
- const t = U(), s = f(), { lang: n } = P(), o = d(() => {
1972
+ const t = U(), s = f(), { lang: n } = B(), o = d(() => {
1969
1973
  var m;
1970
1974
  return (m = n.value.ts) == null ? void 0 : m.controls.adjustments.iconTitle;
1971
1975
  }), r = d(() => (s == null ? void 0 : s.hasAccess("bct")) || !1), { click: a, selected: i } = _({
@@ -1989,7 +1993,7 @@ const Fs = {
1989
1993
  label: o.value,
1990
1994
  type: "none"
1991
1995
  };
1992
- return u(q, m, () => []);
1996
+ return u(W, m, () => []);
1993
1997
  }
1994
1998
  return () => l();
1995
1999
  }
@@ -1999,7 +2003,7 @@ const Fs = {
1999
2003
  setup(e, {}) {
2000
2004
  const t = f();
2001
2005
  d(() => (t == null ? void 0 : t.hasAccess("cau")) || !1);
2002
- const { lang: s } = P(), n = d(() => {
2006
+ const { lang: s } = B(), n = d(() => {
2003
2007
  var i;
2004
2008
  return (i = s.value.ts) == null ? void 0 : i.controls.camera.iconTitle;
2005
2009
  }), { click: o, selected: r } = _({
@@ -2019,7 +2023,7 @@ const Fs = {
2019
2023
  type: "none",
2020
2024
  label: n.value
2021
2025
  };
2022
- return u(q, i, () => []);
2026
+ return u(W, i, () => []);
2023
2027
  }
2024
2028
  return () => a();
2025
2029
  }
@@ -2027,7 +2031,7 @@ const Fs = {
2027
2031
  name: "TsRelatedButton",
2028
2032
  props: { size: String },
2029
2033
  setup(e) {
2030
- const t = f(), { lang: s } = P(), n = d(
2034
+ const t = f(), { lang: s } = B(), n = d(
2031
2035
  () => {
2032
2036
  var c, l;
2033
2037
  return ((l = (c = s.value.ts) == null ? void 0 : c.controls.related) == null ? void 0 : l.iconTitle) || "Related";
@@ -2052,7 +2056,7 @@ const Fs = {
2052
2056
  type: "none",
2053
2057
  label: n.value
2054
2058
  };
2055
- return u(q, c, () => []);
2059
+ return u(W, c, () => []);
2056
2060
  }
2057
2061
  return () => i();
2058
2062
  }
@@ -2060,7 +2064,7 @@ const Fs = {
2060
2064
  name: "TsSavedButton",
2061
2065
  props: { size: String },
2062
2066
  setup(e) {
2063
- const t = f(), { lang: s } = P(), n = d(
2067
+ const t = f(), { lang: s } = B(), n = d(
2064
2068
  () => {
2065
2069
  var c, l;
2066
2070
  return ((l = (c = s.value.ts) == null ? void 0 : c.controls.saved) == null ? void 0 : l.iconTitle) || "Saved";
@@ -2085,7 +2089,7 @@ const Fs = {
2085
2089
  type: "none",
2086
2090
  label: n.value
2087
2091
  };
2088
- return u(q, c, () => []);
2092
+ return u(W, c, () => []);
2089
2093
  }
2090
2094
  return () => i();
2091
2095
  }
@@ -2182,17 +2186,17 @@ const Fs = {
2182
2186
  g({
2183
2187
  name: "TsPositionDrawer",
2184
2188
  setup(e, { slots: t, emit: s }) {
2185
- const { lang: n } = P(), o = d(() => {
2189
+ const { lang: n } = B(), o = d(() => {
2186
2190
  var a;
2187
2191
  return (a = n.value.ts) == null ? void 0 : a.controls.positionPose.title;
2188
2192
  });
2189
2193
  function r() {
2190
2194
  const a = {
2191
2195
  class: "ts-position-drawer",
2192
- name: cs,
2196
+ name: ls,
2193
2197
  label: o.value
2194
2198
  };
2195
- return u(W, a, () => u(un));
2199
+ return u(H, a, () => u(un));
2196
2200
  }
2197
2201
  return () => r();
2198
2202
  }
@@ -2201,7 +2205,7 @@ const dn = g({
2201
2205
  name: "TsSkinButton",
2202
2206
  emits: ["click"],
2203
2207
  setup(e, { slots: t, emit: s }) {
2204
- const n = f(), o = M(), r = j(), a = se(), { lang: i } = P(), { getPoseThumbnail: c } = Pe(), { click: l, selected: m } = _({
2208
+ const n = f(), o = M(), r = j(), a = se(), { lang: i } = B(), { getPoseThumbnail: c } = Be(), { click: l, selected: m } = _({
2205
2209
  store: r,
2206
2210
  options: Q,
2207
2211
  tab: Q
@@ -2230,7 +2234,7 @@ const dn = g({
2230
2234
  "data-id": Q,
2231
2235
  onClick: l
2232
2236
  };
2233
- return u(q, v, () => []);
2237
+ return u(W, v, () => []);
2234
2238
  }
2235
2239
  return () => w();
2236
2240
  }
@@ -2243,12 +2247,12 @@ const dn = g({
2243
2247
  function s(n) {
2244
2248
  return {
2245
2249
  class: t,
2246
- size: "sm",
2250
+ size: "xs",
2247
2251
  onClick: () => e.setActive(n)
2248
2252
  };
2249
2253
  }
2250
2254
  return () => u(
2251
- W,
2255
+ H,
2252
2256
  { name: pt },
2253
2257
  {
2254
2258
  default: () => u(Qe, {}, () => [
@@ -2262,14 +2266,14 @@ const dn = g({
2262
2266
  u(an, s(ie))
2263
2267
  // h(TsSettingsButton, getButtonData(SETTINGS)),
2264
2268
  ]),
2265
- secondary: () => u(Bt, {})
2269
+ secondary: () => [u(Pt, {}), u(Ct, { fixed: !1 })]
2266
2270
  }
2267
2271
  );
2268
2272
  }
2269
2273
  }), pn = g({
2270
2274
  name: "TsGridDrawer",
2271
2275
  setup(e, { slots: t, emit: s }) {
2272
- const { lang: n } = P(), o = d(() => {
2276
+ const { lang: n } = B(), o = d(() => {
2273
2277
  var a;
2274
2278
  return (a = n.value.ts) == null ? void 0 : a.controls.grid.title;
2275
2279
  });
@@ -2279,14 +2283,14 @@ const dn = g({
2279
2283
  name: J,
2280
2284
  label: o.value
2281
2285
  };
2282
- return u(W, a, () => u(Tt));
2286
+ return u(H, a, () => u(Tt));
2283
2287
  }
2284
2288
  return () => r();
2285
2289
  }
2286
2290
  }), fn = g({
2287
2291
  name: "TsRelatedDrawer",
2288
2292
  setup(e, { slots: t, emit: s }) {
2289
- const { lang: n } = P(), o = d(() => {
2293
+ const { lang: n } = B(), o = d(() => {
2290
2294
  var a;
2291
2295
  return (a = n.value.ts) == null ? void 0 : a.controls.related.title;
2292
2296
  });
@@ -2296,14 +2300,14 @@ const dn = g({
2296
2300
  name: ee,
2297
2301
  label: o.value
2298
2302
  };
2299
- return u(W, a, () => u(wt));
2303
+ return u(H, a, () => u(wt));
2300
2304
  }
2301
2305
  return () => r();
2302
2306
  }
2303
2307
  }), hn = g({
2304
2308
  name: "TsSavedDrawer",
2305
2309
  setup() {
2306
- const { lang: e } = P(), t = d(() => {
2310
+ const { lang: e } = B(), t = d(() => {
2307
2311
  var n, o;
2308
2312
  return ((o = (n = e.value.ts) == null ? void 0 : n.controls.saved) == null ? void 0 : o.title) || "Saved";
2309
2313
  });
@@ -2313,14 +2317,14 @@ const dn = g({
2313
2317
  name: ie,
2314
2318
  label: t.value
2315
2319
  };
2316
- return u(W, n, () => u(Dt));
2320
+ return u(H, n, () => u(Dt));
2317
2321
  }
2318
2322
  return () => s();
2319
2323
  }
2320
2324
  }), gn = g({
2321
2325
  name: "TsSkinDrawer",
2322
2326
  setup(e, { slots: t, emit: s }) {
2323
- const { lang: n } = P(), o = d(() => {
2327
+ const { lang: n } = B(), o = d(() => {
2324
2328
  var a;
2325
2329
  return (a = n.value.ts) == null ? void 0 : a.controls.skins.title;
2326
2330
  });
@@ -2330,14 +2334,14 @@ const dn = g({
2330
2334
  name: ke,
2331
2335
  label: o.value
2332
2336
  };
2333
- return u(W, a, () => u(Pt));
2337
+ return u(H, a, () => u(Bt));
2334
2338
  }
2335
2339
  return () => r();
2336
2340
  }
2337
2341
  }), vn = g({
2338
2342
  name: "TsEffectsDrawer",
2339
2343
  setup(e, { slots: t, emit: s }) {
2340
- const { lang: n } = P(), o = d(() => {
2344
+ const { lang: n } = B(), o = d(() => {
2341
2345
  var a;
2342
2346
  return (a = n.value.ts) == null ? void 0 : a.controls.effects.title;
2343
2347
  });
@@ -2347,7 +2351,7 @@ const dn = g({
2347
2351
  name: Q,
2348
2352
  label: o.value
2349
2353
  };
2350
- return u(W, a, () => u(It, { size: "sm" }));
2354
+ return u(H, a, () => u(It, { size: "sm" }));
2351
2355
  }
2352
2356
  return () => r();
2353
2357
  }
@@ -2360,7 +2364,7 @@ const dn = g({
2360
2364
  modelValue: t.value,
2361
2365
  "onUpdate:modelValue": (o) => t.value = o
2362
2366
  };
2363
- return u(ms, n, () => [
2367
+ return u(ps, n, () => [
2364
2368
  u(mn),
2365
2369
  u(gn),
2366
2370
  u(vn),
@@ -2377,10 +2381,10 @@ const dn = g({
2377
2381
  name: "PoseImage",
2378
2382
  setup() {
2379
2383
  const e = U(), t = le(), s = se(), n = me(), { brightness: o, contrast: r, saturate: a } = y(e), { filterStyle: i } = Ye({ brightness: o, contrast: r, saturate: a }), c = d(() => t.image), l = d(() => t.largeImage), m = d(() => s.flipped), h = d(() => n.property("imageSize")), k = A(null), I = d(() => {
2380
- const v = c.value, b = l.value, F = f(), { isKinetic: E } = y(F);
2381
- return !v || !v.url ? process.env.CLEAR_IMAGE : h.value.width <= 900 || E.value ? v.url : b.status === Ee ? b.url : (b.status !== ye && b.failCount < 4 && t.loadImage(b.url), v.url);
2384
+ const v = c.value, b = l.value, F = f(), { isKinetic: z } = y(F);
2385
+ return !v || !v.url ? process.env.CLEAR_IMAGE : h.value.width <= 900 || z.value ? v.url : b.status === Ee ? b.url : (b.status !== ye && b.failCount < 4 && t.loadImage(b.url), v.url);
2382
2386
  });
2383
- Z(
2387
+ G(
2384
2388
  () => i.value,
2385
2389
  (v) => {
2386
2390
  k.value && (k.value.style = v);
@@ -2412,15 +2416,15 @@ const dn = g({
2412
2416
  }));
2413
2417
  A(null);
2414
2418
  const D = A(null);
2415
- Z([() => m.value, () => h.value, () => k.value], () => {
2419
+ G([() => m.value, () => h.value, () => k.value], () => {
2416
2420
  w();
2417
2421
  });
2418
2422
  const w = () => {
2419
2423
  l.value && s.setProperty("animate", !1);
2420
2424
  };
2421
- return (v, b) => (Ge(), Ot("div", {
2425
+ return (v, b) => (Ge(), Rt("div", {
2422
2426
  class: "image-holder unselectable",
2423
- style: Rt(I.value),
2427
+ style: Kt(I.value),
2424
2428
  id: "image-holder",
2425
2429
  ref_key: "imageholder",
2426
2430
  ref: D
@@ -2431,40 +2435,40 @@ const dn = g({
2431
2435
  }, kn = g({
2432
2436
  name: "TsViewer",
2433
2437
  setup() {
2434
- const e = U(), t = f(), s = j(), n = ue(), o = le(), r = se(), a = M(), i = me(), c = ls(), { brightness: l, contrast: m, saturate: h } = y(e), { id: k } = y(t), { ready: I } = y(r), { accessibleSkins: D, percentage: w } = y(a), { slug: v } = y(s), { filterStyle: b } = Ye({ brightness: l, contrast: m, saturate: h }), F = te("authenticated"), { imagePoint: E, imageSize: $, viewportSize: x } = y(i), { spacing: H, horizontal: R, vertical: z, visible: B } = y(n), X = A(null), V = A(null), K = (O) => {
2435
- i.setZoomFromResize(O), console.log("resizeViewport", O);
2438
+ const e = U(), t = f(), s = j(), n = ue(), o = le(), r = se(), a = M(), i = me(), c = us(), { brightness: l, contrast: m, saturate: h } = y(e), { id: k } = y(t), { ready: I } = y(r), { accessibleSkins: D, percentage: w } = y(a), { slug: v } = y(s), { filterStyle: b } = Ye({ brightness: l, contrast: m, saturate: h }), F = te("authenticated"), { imagePoint: z, imageSize: $, viewportSize: E } = y(i), { spacing: X, horizontal: K, vertical: x, visible: P } = y(n), O = A(null), V = A(null), N = (R) => {
2439
+ i.setZoomFromResize(R), console.log("resizeViewport", R);
2436
2440
  }, pe = () => {
2437
- I.value && k.value !== 0 && i.initZoomFromElement(X.value);
2441
+ I.value && k.value !== 0 && i.initZoomFromElement(O.value);
2438
2442
  };
2439
- Z(
2443
+ G(
2440
2444
  () => F.value,
2441
- (O) => {
2442
- if (O) {
2445
+ (R) => {
2446
+ if (R) {
2443
2447
  o.loadSkin();
2444
2448
  return;
2445
2449
  }
2446
2450
  a.setProperty("id", 1);
2447
2451
  }
2448
- ), Z(
2452
+ ), G(
2449
2453
  () => D.value,
2450
- (O, Oe) => {
2451
- O.length > Oe.length && o.loadSkin();
2454
+ (R, Oe) => {
2455
+ R.length > Oe.length && o.loadSkin();
2452
2456
  }
2453
- ), Z(
2457
+ ), G(
2454
2458
  () => [k.value, I.value],
2455
2459
  () => {
2456
2460
  pe();
2457
2461
  }
2458
- ), us(), ze(() => {
2459
- Kt(() => c.$on("resize", K)), pe(), o.loadSkin();
2462
+ ), ds(), ze(() => {
2463
+ Nt(() => c.$on("resize", N)), pe(), o.loadSkin();
2460
2464
  }), Xe(() => {
2461
- c.$off("resize", K);
2465
+ c.$off("resize", N);
2462
2466
  });
2463
2467
  const Me = d(
2464
2468
  () => "three-sixty-viewer flex-center unselectable image-background " + v.value
2465
2469
  ), _e = d(() => "image-background " + v.value), Ve = {
2466
2470
  class: Me.value,
2467
- ref: X
2471
+ ref: O
2468
2472
  }, je = d(() => ({
2469
2473
  value: w / 100,
2470
2474
  color: "primary",
@@ -2475,19 +2479,19 @@ const dn = g({
2475
2479
  class: _e.value
2476
2480
  }));
2477
2481
  function $e() {
2478
- const O = {
2479
- imagePoint: E.value,
2482
+ const R = {
2483
+ imagePoint: z.value,
2480
2484
  imageSize: $.value,
2481
- viewportSize: x.value,
2482
- lines: H.value,
2483
- offsetX: R.value / 100,
2484
- offsetY: z.value / 100,
2485
- visible: B.value,
2485
+ viewportSize: E.value,
2486
+ lines: X.value,
2487
+ offsetX: K.value / 100,
2488
+ offsetY: x.value / 100,
2489
+ visible: P.value,
2486
2490
  style: "z-index: 4"
2487
2491
  };
2488
2492
  return u("div", Ve, [
2489
- ut(u(qt, je.value), [[dt, w.value !== 100]]),
2490
- u(ps, O),
2493
+ ut(u(Wt, je.value), [[dt, w.value !== 100]]),
2494
+ u(fs, R),
2491
2495
  u(bn),
2492
2496
  u("div", Ue.value)
2493
2497
  ]);
@@ -2497,23 +2501,23 @@ const dn = g({
2497
2501
  }), In = g({
2498
2502
  name: "TsInteractionDetector",
2499
2503
  setup() {
2500
- const e = Symbol.for("user-auth"), t = te(e), s = f(), n = se(), o = ge(), r = me(), { authenticating: a } = y(t), { isFrozen: i } = y(s), c = d(() => a.value || i.value), l = A(!1), m = A(null), h = A(void 0), k = A(0), I = A(0), D = A(0), w = A(0), v = A(void 0), b = A(void 0), F = A(1), E = d(() => r.property("imagePoint")), $ = d(() => r.property("immobileHeight")), x = d(() => r.property("immobileWidth")), H = d(() => r.property("minimized")), { flipped: R } = y(n), z = d(() => R.value ? -1 : 1);
2501
- function B() {
2504
+ const e = Symbol.for("user-auth"), t = te(e), s = f(), n = se(), o = ge(), r = me(), { authenticating: a } = y(t), { isFrozen: i } = y(s), c = d(() => a.value || i.value), l = A(!1), m = A(null), h = A(void 0), k = A(0), I = A(0), D = A(0), w = A(0), v = A(void 0), b = A(void 0), F = A(1), z = d(() => r.property("imagePoint")), $ = d(() => r.property("immobileHeight")), E = d(() => r.property("immobileWidth")), X = d(() => r.property("minimized")), { flipped: K } = y(n), x = d(() => K.value ? -1 : 1);
2505
+ function P() {
2502
2506
  i.value && s.pokeFreeze();
2503
2507
  }
2504
- Z(i, (p) => {
2508
+ G(i, (p) => {
2505
2509
  p && o.stopSpin();
2506
- }), Z(
2507
- () => z.value,
2510
+ }), G(
2511
+ () => x.value,
2508
2512
  (p) => console.log("reverseSpin", p)
2509
2513
  );
2510
- const X = d(() => r.property("size")), V = d({
2514
+ const O = d(() => r.property("size")), V = d({
2511
2515
  get: () => o.property("frame"),
2512
2516
  set: (p) => {
2513
2517
  c.value || o.setFrame(p);
2514
2518
  }
2515
- }), K = d(() => Math.ceil(X.value.width / (pe.value / 1.7))), pe = d(() => o.property("renderCount")), Me = d(() => r.property("zoom")), _e = () => {
2516
- if (B(), !c.value) {
2519
+ }), N = d(() => Math.ceil(O.value.width / (pe.value / 1.7))), pe = d(() => o.property("renderCount")), Me = d(() => r.property("zoom")), _e = () => {
2520
+ if (P(), !c.value) {
2517
2521
  if (Me.value > 1) {
2518
2522
  r.animateToZoom(0);
2519
2523
  return;
@@ -2522,14 +2526,14 @@ const dn = g({
2522
2526
  }
2523
2527
  }, Ve = (p) => {
2524
2528
  const S = p.srcEvent.keyCode;
2525
- if (B(), c.value || (S === 16 && (l.value = !0), S !== 37 && // left
2529
+ if (P(), c.value || (S === 16 && (l.value = !0), S !== 37 && // left
2526
2530
  S !== 38 && // up
2527
2531
  S !== 39 && // right
2528
2532
  S !== 40))
2529
2533
  return;
2530
2534
  let T = 0, C = 0;
2531
- const N = p.srcEvent.shiftKey ? 10 : 1;
2532
- T += S === 37 ? -3 : 0, T += S === 39 ? 3 : 0, C += S === 38 ? -3 : 0, C += S === 40 ? 3 : 0, T = T * N, C = C * N, tt({ x: T, y: C });
2535
+ const L = p.srcEvent.shiftKey ? 10 : 1;
2536
+ T += S === 37 ? -3 : 0, T += S === 39 ? 3 : 0, C += S === 38 ? -3 : 0, C += S === 40 ? 3 : 0, T = T * L, C = C * L, tt({ x: T, y: C });
2533
2537
  }, je = (p) => {
2534
2538
  if (p.key === "Shift") {
2535
2539
  l.value = !1;
@@ -2538,66 +2542,66 @@ const dn = g({
2538
2542
  }, Ue = () => {
2539
2543
  h.value = void 0, v.value = void 0, k.value = 0, I.value = 0;
2540
2544
  }, $e = (p) => {
2541
- if (B(), c.value) return;
2545
+ if (P(), c.value) return;
2542
2546
  const S = p.pointers.length;
2543
- (S === 2 || S === 1 && l.value) && st(p), S === 1 && Mt(p);
2544
- }, O = (p) => {
2547
+ (S === 2 || S === 1 && l.value) && st(p), S === 1 && _t(p);
2548
+ }, R = (p) => {
2545
2549
  b.value = Date.now(), h.value = p.center, v.value = V.value;
2546
2550
  }, Oe = (p) => {
2547
- if (B(), c.value || (st(p), Math.abs(p.scale - F.value) < 0.02)) return;
2551
+ if (P(), c.value || (st(p), Math.abs(p.scale - F.value) < 0.02)) return;
2548
2552
  const S = p.scale < w.value ? -1 : 1;
2549
2553
  w.value = p.scale, r.setZoomFromPointer({
2550
2554
  event: p,
2551
2555
  element: Re,
2552
2556
  increment: S
2553
2557
  }), F.value = p.scale;
2554
- }, Ct = (p) => {
2555
- h.value = p.center;
2556
2558
  }, zt = (p) => {
2557
- if (Date.now() - b.value > 1e3 || (B(), c.value) || Math.abs(p.velocityX) <= 0.02) return;
2559
+ h.value = p.center;
2560
+ }, Et = (p) => {
2561
+ if (Date.now() - b.value > 1e3 || (P(), c.value) || Math.abs(p.velocityX) <= 0.02) return;
2558
2562
  const T = p.velocityX, C = p.deltaX;
2559
2563
  o.spinToFrame({
2560
- value: Ft({ distance: C, velocity: T }),
2561
- duration: At({ distance: C, velocity: T })
2564
+ value: Mt({ distance: C, velocity: T }),
2565
+ duration: Ft({ distance: C, velocity: T })
2562
2566
  });
2563
- }, Et = () => {
2564
- B(), !c.value && o.stopSpin();
2565
- }, xt = (p) => {
2566
- if (B(), c.value) return;
2567
+ }, xt = () => {
2568
+ P(), !c.value && o.stopSpin();
2569
+ }, At = (p) => {
2570
+ if (P(), c.value) return;
2567
2571
  p = p.srcEvent || p, p.preventDefault(), p.stopPropagation();
2568
- const S = p.deltaX, T = p.deltaY, C = 2, N = Math.abs(T) > Math.abs(S) ? 1 : -1;
2569
- (N === 1 && (T > C || T < -C) || p.ctrlKey) && Vt(p), N === -1 && (S > C || S < -C) && _t(p);
2570
- }, At = ({ velocity: p, distance: S }) => {
2572
+ const S = p.deltaX, T = p.deltaY, C = 2, L = Math.abs(T) > Math.abs(S) ? 1 : -1;
2573
+ (L === 1 && (T > C || T < -C) || p.ctrlKey) && jt(p), L === -1 && (S > C || S < -C) && Vt(p);
2574
+ }, Ft = ({ velocity: p, distance: S }) => {
2571
2575
  const T = qe.newRectFromElement(m.value), C = 1 + Math.abs(S) / T.width;
2572
2576
  return Math.floor(Math.abs(p) * C * 500);
2573
- }, Ft = ({ velocity: p, distance: S }) => {
2574
- const T = qe.newRectFromElement(m.value), C = pe.value, N = Math.abs(S) / p / 1e3, Ut = Math.abs(S) / T.width * N, ve = Math.floor(Ut * C), nt = (S < 0 ? -1 : 1) * z.value;
2577
+ }, Mt = ({ velocity: p, distance: S }) => {
2578
+ const T = qe.newRectFromElement(m.value), C = pe.value, L = Math.abs(S) / p / 1e3, $t = Math.abs(S) / T.width * L, ve = Math.floor($t * C), nt = (S < 0 ? -1 : 1) * x.value;
2575
2579
  return nt > 0 && ve < V.value ? ve + C : nt < 0 && ve > V.value ? ve - C : ve;
2576
2580
  }, et = (p, S) => {
2577
- const T = Math.floor(p / K.value) * S * z.value;
2581
+ const T = Math.floor(p / N.value) * S * x.value;
2578
2582
  return (v.value + T) % pe.value;
2579
2583
  }, tt = ({ x: p, y: S }) => {
2580
- if (B(), c.value) return;
2581
- const T = x.value || p === 0 ? E.value.left : E.value.left + p, C = $.value || S === 0 ? E.value.top : E.value.top + S, N = new G(T, C);
2582
- r.setImagePoint(N);
2584
+ if (P(), c.value) return;
2585
+ const T = E.value || p === 0 ? z.value.left : z.value.left + p, C = $.value || S === 0 ? z.value.top : z.value.top + S, L = new q(T, C);
2586
+ r.setImagePoint(L);
2583
2587
  }, st = (p) => {
2584
- if (B(), c.value || H.value)
2588
+ if (P(), c.value || X.value)
2585
2589
  return;
2586
2590
  const S = p.deltaX - k.value;
2587
2591
  k.value = p.deltaX;
2588
2592
  const T = p.deltaY - I.value;
2589
2593
  I.value = p.deltaY, tt({ x: S, y: T });
2590
- }, Mt = (p) => {
2594
+ }, _t = (p) => {
2591
2595
  const S = p.center.x - h.value.x;
2592
- if (Math.abs(S) < K.value || l.value) return;
2596
+ if (Math.abs(S) < N.value || l.value) return;
2593
2597
  const T = p.center.x < h.value.x ? -1 : 1;
2594
2598
  h.value = p.center, V.value = et(Math.abs(S), T), v.value = V.value;
2595
- }, _t = (p) => {
2596
- if (B(), c.value) return;
2597
- const S = p.deltaX - D.value, T = p.deltaX < 0 ? -1 : 1;
2598
- Math.abs(S) < K.value || (D.value = p.deltaX, V.value = et(Math.abs(S), T), v.value = V.value);
2599
2599
  }, Vt = (p) => {
2600
- if (B(), c.value) return;
2600
+ if (P(), c.value) return;
2601
+ const S = p.deltaX - D.value, T = p.deltaX < 0 ? -1 : 1;
2602
+ Math.abs(S) < N.value || (D.value = p.deltaX, V.value = et(Math.abs(S), T), v.value = V.value);
2603
+ }, jt = (p) => {
2604
+ if (P(), c.value) return;
2601
2605
  const S = p.deltaY < 0 ? 2 : -2;
2602
2606
  r.setZoomFromPointer({
2603
2607
  event: p,
@@ -2608,17 +2612,17 @@ const dn = g({
2608
2612
  let Re;
2609
2613
  const Ke = new it(), Ne = new it();
2610
2614
  Ke.on({
2611
- swipe: zt,
2612
- wheel: xt,
2615
+ swipe: Et,
2616
+ wheel: At,
2613
2617
  keyup: je,
2614
2618
  keydown: Ve,
2615
- pointerdown: Et
2619
+ pointerdown: xt
2616
2620
  }), Ne.on({
2617
- panstart: O,
2621
+ panstart: R,
2618
2622
  panend: Ue,
2619
2623
  panmove: $e,
2620
2624
  pinch: Oe,
2621
- pinchstart: Ct,
2625
+ pinchstart: zt,
2622
2626
  doubletap: _e
2623
2627
  }), ze(() => {
2624
2628
  Re = document.getElementById("image-holder"), Ke.setElement(m.value), Ne.setElement(m.value), document.addEventListener(
@@ -2626,19 +2630,19 @@ const dn = g({
2626
2630
  function(p) {
2627
2631
  p.scale;
2628
2632
  },
2629
- hs ? { passive: !1 } : !1
2633
+ gs ? { passive: !1 } : !1
2630
2634
  );
2631
2635
  }), Xe(() => {
2632
2636
  Ke.destroy(), Ne.destroy();
2633
2637
  });
2634
- function jt() {
2638
+ function Ut() {
2635
2639
  return u("div", {
2636
2640
  class: "detector",
2637
2641
  id: "detector",
2638
2642
  ref: m
2639
2643
  }, []);
2640
2644
  }
2641
- return () => jt();
2645
+ return () => Ut();
2642
2646
  }
2643
2647
  }), An = /* @__PURE__ */ Object.assign({
2644
2648
  name: "TsPage",
@@ -2646,7 +2650,7 @@ const dn = g({
2646
2650
  inheritAttrs: !1
2647
2651
  }, {
2648
2652
  __name: "TsPage",
2649
- props: /* @__PURE__ */ Zt({
2653
+ props: /* @__PURE__ */ Gt({
2650
2654
  drawerPadding: {
2651
2655
  type: Boolean,
2652
2656
  default: !0
@@ -2657,26 +2661,26 @@ const dn = g({
2657
2661
  }),
2658
2662
  emits: ["update:miniState"],
2659
2663
  setup(e) {
2660
- const t = mt(), s = Nt(e, "miniState"), n = Symbol.for("activity-tracking"), o = f(), r = te(n, null);
2664
+ const t = mt(), s = Lt(e, "miniState"), n = Symbol.for("activity-tracking"), o = f(), r = te(n, null);
2661
2665
  ze(() => {
2662
2666
  o.active !== Y && (o.active = t.platform.is.mobile ? ft : xe);
2663
2667
  });
2664
2668
  const a = (i) => {
2665
- i && (r == null || r.trackEvent(Vs, {
2669
+ i && (r == null || r.trackEvent(js, {
2666
2670
  pose_id: o.id || null,
2667
2671
  base_pose_id: i
2668
2672
  }));
2669
2673
  };
2670
2674
  return ze(async () => {
2671
- r && (await r.beginExplore(), r.trackEvent(_s, { from: null, to: "360" }), o.basePoseId && (r.beginSegment(String(o.basePoseId)), a(o.basePoseId)));
2672
- }), Z(
2675
+ r && (await r.beginExplore(), r.trackEvent(Vs, { from: null, to: "360" }), o.basePoseId && (r.beginSegment(String(o.basePoseId)), a(o.basePoseId)));
2676
+ }), G(
2673
2677
  () => o.basePoseId,
2674
2678
  (i, c) => {
2675
2679
  !i || i === c || (r == null || r.beginSegment(String(i)), a(i));
2676
2680
  }
2677
2681
  ), Xe(() => {
2678
2682
  r == null || r.end();
2679
- }), (i, c) => (Ge(), ot(re(fs), {
2683
+ }), (i, c) => (Ge(), ot(re(hs), {
2680
2684
  miniState: s.value,
2681
2685
  "onUpdate:miniState": c[0] || (c[0] = (l) => s.value = l),
2682
2686
  "drawer-padding": e.drawerPadding,
@@ -2686,7 +2690,7 @@ const dn = g({
2686
2690
  Ce(re(Qs))
2687
2691
  ]),
2688
2692
  bottomDrawer: Le(() => [
2689
- re(t).platform.is.mobile ? (Ge(), ot(re(Sn), { key: 0 })) : Lt("", !0)
2693
+ re(t).platform.is.mobile ? (Ge(), ot(re(Sn), { key: 0 })) : Zt("", !0)
2690
2694
  ]),
2691
2695
  default: Le(() => [
2692
2696
  Ce(re(In)),