@figurosity/consumer-pose-generator 0.1.5 → 0.1.6

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.
@@ -2,12 +2,12 @@
2
2
  import { ref as j, computed as y, watch as Ne, onBeforeMount as Co, defineComponent as T, h, openBlock as O, createBlock as _t, unref as A, createElementBlock as $, Fragment as Xe, renderList as Ze, createVNode as B, normalizeClass as mt, createElementVNode as De, toDisplayString as _o, onMounted as bt, onBeforeUnmount as Jt, Transition as qt, withDirectives as vt, vShow as yt, normalizeStyle as on, TransitionGroup as bo, withCtx as jt, inject as Io } from "vue";
3
3
  import { useRoute as Po } from "vue-router";
4
4
  import { defineStore as ie, getActivePinia as xo, storeToRefs as S } from "pinia";
5
- import { getConfig as es, DEFAULT_SATURATE as je, DEFAULT_CONTRAST as Ge, DEFAULT_BRIGHTNESS as Ye, useDynamicImages as wo, DEFAULT_VERTICAL as xs, DEFAULT_HORIZONTAL as ws, DEFAULT_SPACING as Ds, DEFAULT_VISIBLE as Do, DEFAULT as Me, SKINS as Gt, DURATION as Yt, NOTHING as Mo, EFFECTS as St, CAMERA_ANGLE as Ms, LIGHT_DIRECTION as As, GENDER as Tt, GRID as Ns, POSE_DIRECTION as Os, ADJUSTMENTS as ks, slugify as Ao, useEventBus as rn, useFilterStyle as No, FlipAnimation as Oo, useWakeLock as ko } from "@figurosity/toolbox";
6
- import an from "lodash-es/debounce";
7
- import { useQuasar as It, QSlider as Lo, QSeparator as J, QCard as Vo, QItem as Uo, QItemSection as Ls, QIcon as Ro, QItemLabel as Vs, QCardSection as Bo, QBtn as Oe, QPageSticky as $o, QCircularProgress as zo } from "quasar";
8
- import { CExpansion as me, CBaseButton as Qe, CBaseButtons as ln, CNewGridTool as Ho, CBasicTool as ts, CAnimatedNumber as Fo, CGridOverlay as qo, CFloatingModal as jo, CDraggableDrawer as cn, CDraggableDrawers as Go } from "@figurosity/consumer-controls";
9
- import { historyCircle as un, contrast as dn, brightness as hn, shirt as Yo, cameraAngle as Wo, bulbLight as Xo, venus as Zo, cameraOrientation as Qo, grid as Ko, refresh as Jo, pause as er, play as tr } from "@figurosity/icons";
10
- function sr(e, t) {
5
+ import { getConfig as es, DEFAULT_SATURATE as je, DEFAULT_CONTRAST as Ge, DEFAULT_BRIGHTNESS as Ye, useDynamicImages as wo, DEFAULT_VERTICAL as xs, DEFAULT_HORIZONTAL as ws, DEFAULT_SPACING as Ds, DEFAULT_VISIBLE as Do, DEFAULT as Me, SKINS as Gt, DURATION as Yt, FAILED as Wt, QUEUED as Mo, ABORTED as rn, LOADED as an, LOADING as Xt, UNLOADED as Et, NOTHING as Ao, EFFECTS as St, CAMERA_ANGLE as Ms, LIGHT_DIRECTION as As, GENDER as Tt, GRID as Ns, POSE_DIRECTION as Os, ADJUSTMENTS as ks, slugify as No, useEventBus as ln, useFilterStyle as Oo, FlipAnimation as ko, useWakeLock as Lo } from "@figurosity/toolbox";
6
+ import cn from "lodash-es/debounce";
7
+ import { useQuasar as It, QSlider as Vo, QSeparator as J, QCard as Uo, QItem as Ro, QItemSection as Ls, QIcon as Bo, QItemLabel as Vs, QCardSection as $o, QBtn as Oe, QPageSticky as zo, QCircularProgress as Ho } from "quasar";
8
+ import { CExpansion as me, CBaseButton as Qe, CBaseButtons as un, CNewGridTool as Fo, CBasicTool as ts, CAnimatedNumber as qo, CGridOverlay as jo, CFloatingModal as Go, CDraggableDrawer as dn, CDraggableDrawers as Yo } from "@figurosity/consumer-controls";
9
+ import { historyCircle as hn, contrast as pn, brightness as fn, shirt as Wo, cameraAngle as Xo, bulbLight as Zo, venus as Qo, cameraOrientation as Ko, grid as Jo, refresh as er, pause as tr, play as sr } from "@figurosity/icons";
10
+ function nr(e, t) {
11
11
  for (var s = 0; s < t.length; s++) {
12
12
  const n = t[s];
13
13
  if (typeof n != "string" && !Array.isArray(n)) {
@@ -23,13 +23,13 @@ function sr(e, t) {
23
23
  }
24
24
  return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
25
25
  }
26
- const nr = {
26
+ const or = {
27
27
  models: {},
28
28
  collection: [],
29
29
  slugs: {},
30
30
  selected: [],
31
31
  playSelected: 1
32
- }, pn = {
32
+ }, gn = {
33
33
  random(e) {
34
34
  var s;
35
35
  if (!e.selected) return 1;
@@ -40,7 +40,7 @@ const nr = {
40
40
  return e.collection.length > 0 ? e.collection.map((t) => e.models[t]) : [];
41
41
  },
42
42
  propertyById: (e) => (t, s, n = null) => e.models[t] && s in e.models[t] ? e.models[t][s] : n
43
- }, fn = {
43
+ }, mn = {
44
44
  getRandom(e) {
45
45
  if (!this.selected) return;
46
46
  const t = new Set(e), s = [...new Set(this.selected.filter((n) => t.has(n)))];
@@ -102,15 +102,15 @@ const nr = {
102
102
  actions: n = {}
103
103
  }) => ie(e, {
104
104
  state: () => ({
105
- ...nr,
105
+ ...or,
106
106
  ...t
107
107
  }),
108
108
  getters: {
109
- ...pn,
109
+ ...gn,
110
110
  ...s
111
111
  },
112
112
  actions: {
113
- ...fn,
113
+ ...mn,
114
114
  ...n
115
115
  }
116
116
  });
@@ -120,7 +120,7 @@ function Le(e) {
120
120
  type: "conjunction"
121
121
  }).format(e) : e.length === 1 ? e[0] : e.length === 2 ? `${e[0]} and ${e[1]}` : `${e.slice(0, -1).join(", ")} and ${e[e.length - 1]}` : "";
122
122
  }
123
- const or = {}, rr = {
123
+ const rr = {}, ir = {
124
124
  src(e) {
125
125
  return (t) => {
126
126
  const s = this.propertyById(t, "slug");
@@ -132,11 +132,11 @@ const or = {}, rr = {
132
132
  caption(e) {
133
133
  return Le(e.selected.map((t) => e.models[t].name));
134
134
  }
135
- }, ir = {}, pe = ke({
135
+ }, ar = {}, pe = ke({
136
136
  storeId: "pg-cameras",
137
- state: or,
138
- getters: rr,
139
- actions: ir
137
+ state: rr,
138
+ getters: ir,
139
+ actions: ar
140
140
  }), ge = ie("pg-adjustments", {
141
141
  state: () => ({
142
142
  brightness: Ye,
@@ -187,7 +187,7 @@ const or = {}, rr = {
187
187
  this.$reset();
188
188
  }
189
189
  }
190
- }), { setSelected: ar } = fn;
190
+ }), { setSelected: lr } = mn;
191
191
  function Us(e, t = !0) {
192
192
  if (!e) return t ? "0s" : "0 seconds";
193
193
  const s = e === 1 ? "second" : "seconds";
@@ -227,7 +227,7 @@ const Z = ie("pg-durations", {
227
227
  label: Us(t[n].seconds)
228
228
  })) || [];
229
229
  },
230
- ...pn
230
+ ...gn
231
231
  },
232
232
  actions: {
233
233
  customReset() {
@@ -241,7 +241,7 @@ const Z = ie("pg-durations", {
241
241
  s.selected = t.id;
242
242
  });
243
243
  },
244
- setSelected: ar,
244
+ setSelected: lr,
245
245
  setState(e) {
246
246
  if (!e)
247
247
  throw new Error(this.$id + " entities must not be null");
@@ -260,10 +260,10 @@ function Ke() {
260
260
  const { freeServer: e, paidServer: t } = es();
261
261
  return wo({ freeServer: e, paidServer: t });
262
262
  }
263
- const lr = {
263
+ const cr = {
264
264
  uuid: void 0,
265
265
  playSelected: 1
266
- }, cr = {
266
+ }, ur = {
267
267
  src(e) {
268
268
  return (t) => {
269
269
  const { getThumbnail: s } = Ke();
@@ -277,7 +277,7 @@ const lr = {
277
277
  var t, s;
278
278
  return ((s = (t = e.models) == null ? void 0 : t[e.playSelected]) == null ? void 0 : s.name) || "Normal";
279
279
  }
280
- }, ur = {
280
+ }, dr = {
281
281
  getSrc(e, t) {
282
282
  const { getThumbnail: s } = Ke();
283
283
  return t = t || this.uuid, s({ uuid: t, image: e });
@@ -308,13 +308,13 @@ const lr = {
308
308
  }
309
309
  }, V = ke({
310
310
  storeId: "pg-skins",
311
- state: lr,
312
- getters: cr,
313
- actions: ur
314
- }), dr = {
311
+ state: cr,
312
+ getters: ur,
313
+ actions: dr
314
+ }), hr = {
315
315
  selected: 1,
316
316
  playSelected: 1
317
- }, hr = {
317
+ }, pr = {
318
318
  src(e) {
319
319
  return (t = "none") => {
320
320
  const { getThumbnail: s } = Ke(), n = t === "negative" ? "000000" : "ffffff", r = V();
@@ -355,7 +355,7 @@ const lr = {
355
355
  return s.name;
356
356
  };
357
357
  }
358
- }, pr = {
358
+ }, fr = {
359
359
  setSelected(e, t = !1) {
360
360
  if (t) {
361
361
  this.$patch((s) => {
@@ -377,18 +377,18 @@ const lr = {
377
377
  }
378
378
  }, R = ke({
379
379
  storeId: "pg-effects",
380
- state: dr,
381
- getters: hr,
382
- actions: pr
383
- }), fr = {}, gr = {
380
+ state: hr,
381
+ getters: pr,
382
+ actions: fr
383
+ }), gr = {}, mr = {
384
384
  caption(e) {
385
385
  return Le(e.selected.map((t) => e.models[t].name));
386
386
  }
387
- }, mr = {}, re = ke({
387
+ }, vr = {}, re = ke({
388
388
  storeId: "pg-genders",
389
- state: fr,
390
- getters: gr,
391
- actions: mr
389
+ state: gr,
390
+ getters: mr,
391
+ actions: vr
392
392
  }), Ie = ie("pg-grid", {
393
393
  state: () => ({
394
394
  visible: Do,
@@ -442,7 +442,7 @@ const lr = {
442
442
  });
443
443
  }
444
444
  }
445
- }), vr = {}, yr = {
445
+ }), yr = {}, Er = {
446
446
  src(e) {
447
447
  return (t) => {
448
448
  const s = this.propertyById(t, "slug");
@@ -454,21 +454,21 @@ const lr = {
454
454
  caption(e) {
455
455
  return Le(e.selected.map((t) => e.models[t].name));
456
456
  }
457
- }, Er = {}, ee = ke({
457
+ }, Sr = {}, ee = ke({
458
458
  storeId: "pg-lights",
459
- state: vr,
460
- getters: yr,
461
- actions: Er
459
+ state: yr,
460
+ getters: Er,
461
+ actions: Sr
462
462
  });
463
- function Sr(e) {
463
+ function Tr(e) {
464
464
  return function() {
465
465
  e = e + 1831565813 >>> 0;
466
466
  let t = Math.imul(e ^ e >>> 15, e | 1);
467
467
  return t ^= t + Math.imul(t ^ t >>> 7, t | 61), ((t ^ t >>> 14) >>> 0) / 4294967296;
468
468
  };
469
469
  }
470
- function Tr(e, t) {
471
- const s = e.slice(), n = Sr(t ?? Date.now() & 4294967295);
470
+ function Cr(e, t) {
471
+ const s = e.slice(), n = Tr(t ?? Date.now() & 4294967295);
472
472
  for (let r = s.length - 1; r > 0; r--) {
473
473
  const a = Math.floor(n() * (r + 1));
474
474
  [s[r], s[a]] = [s[a], s[r]];
@@ -531,7 +531,7 @@ const Pe = ie("pg-poses", {
531
531
  randomTake(e, t = {}) {
532
532
  var a;
533
533
  const n = ((a = this.candidates) == null ? void 0 : a.call(this, t)).filter((c) => !this.seen.has(c));
534
- return n.length ? Tr(n, this.seed).slice(0, e) : [];
534
+ return n.length ? Cr(n, this.seed).slice(0, e) : [];
535
535
  },
536
536
  async addToSeen(e) {
537
537
  this.seen.add(parseInt(e)), await this.ensureUnseen({ minUnseen: 25 });
@@ -564,11 +564,11 @@ const Pe = ie("pg-poses", {
564
564
  })();
565
565
  }
566
566
  }
567
- }), Cr = {}, _r = {
567
+ }), _r = {}, br = {
568
568
  caption(e) {
569
569
  return Le(e.selected.map((t) => e.models[t].name));
570
570
  }
571
- }, br = {
571
+ }, Ir = {
572
572
  getRandom(e) {
573
573
  const s = (c) => (c % 36 + 36) % 36, n = {
574
574
  1: [[-4, 4]],
@@ -594,9 +594,9 @@ const Pe = ie("pg-poses", {
594
594
  }
595
595
  }, fe = ke({
596
596
  storeId: "pg-positions",
597
- state: Cr,
598
- getters: _r,
599
- actions: br
597
+ state: _r,
598
+ getters: br,
599
+ actions: Ir
600
600
  }), Rs = {
601
601
  entities: {
602
602
  cameras: {
@@ -884,7 +884,7 @@ const Pe = ie("pg-poses", {
884
884
  }).catch((t) => {
885
885
  });
886
886
  },
887
- setSettings: an(
887
+ setSettings: cn(
888
888
  function() {
889
889
  console.log("setSettings"), this.internalSettings();
890
890
  },
@@ -1058,7 +1058,7 @@ const Pt = ie("pg-count", {
1058
1058
  typeof e == "number" && (this.ttlMs = e), typeof t == "number" && (this.maxEntries = t);
1059
1059
  }
1060
1060
  }
1061
- }), Et = 0, Wt = 1, Ir = 2, gn = 3, Xt = 4, mn = 5, Pr = {
1061
+ }), Pr = {
1062
1062
  /**
1063
1063
  * Load the image and update the status of the
1064
1064
  * @param context
@@ -1069,14 +1069,14 @@ const Pt = ie("pg-count", {
1069
1069
  loadImage({ url: e, callback: t = null }) {
1070
1070
  if (typeof Image > "u")
1071
1071
  throw t && typeof t == "function" && t(e, Wt), new Error("Image() constructor does not exist.");
1072
- t && typeof t == "function" && t(e, Ir);
1072
+ t && typeof t == "function" && t(e, Mo);
1073
1073
  let s = new Image();
1074
1074
  s.onabort = function(n) {
1075
- t && typeof t == "function" && t(e, gn), this.onerror = this.onabort = this.onload = null;
1075
+ t && typeof t == "function" && t(e, rn), this.onerror = this.onabort = this.onload = null;
1076
1076
  }, s.onerror = function(n) {
1077
1077
  t && typeof t == "function" && t(e, Wt), this.onerror = this.onabort = this.onload = null;
1078
1078
  }, s.onload = function(n) {
1079
- t && typeof t == "function" && t(e, mn), this.onerror = this.onabort = this.onload = null;
1079
+ t && typeof t == "function" && t(e, an), this.onerror = this.onabort = this.onload = null;
1080
1080
  }, s.src = e, t && typeof t == "function" && t(e, Xt);
1081
1081
  }
1082
1082
  };
@@ -1321,7 +1321,7 @@ const X = ie("pg-history", {
1321
1321
  if ((r === Et || r === Xt) && this.loadImage({
1322
1322
  url: n.src,
1323
1323
  callback: this.updateStatus
1324
- }), r === Wt || r === gn) {
1324
+ }), r === Wt || r === rn) {
1325
1325
  delete this.models[s];
1326
1326
  const a = this.queue.indexOf(s);
1327
1327
  a !== -1 && this.queue.splice(a, 1);
@@ -1463,7 +1463,7 @@ const X = ie("pg-history", {
1463
1463
  * Check if currently inside of history, if so increment history index
1464
1464
  * if not load from the queue
1465
1465
  */
1466
- next: an(
1466
+ next: cn(
1467
1467
  function() {
1468
1468
  X().next(), this.resetOrRestartTimer();
1469
1469
  },
@@ -1544,7 +1544,7 @@ const X = ie("pg-history", {
1544
1544
  r();
1545
1545
  }), { lang: s };
1546
1546
  }, ae = ({
1547
- tab: e = Mo,
1547
+ tab: e = Ao,
1548
1548
  store: t,
1549
1549
  options: s = [],
1550
1550
  playMode: n = !1
@@ -1578,7 +1578,7 @@ const X = ie("pg-history", {
1578
1578
  };
1579
1579
  return [
1580
1580
  h("div", { class: "q-mx-lg q-mt-sm q-mb-lg" }, [
1581
- h(Lo, g, {
1581
+ h(Vo, g, {
1582
1582
  // single label slot, Quasar passes { index, label }
1583
1583
  "marker-label": ({ marker: v }) => {
1584
1584
  const C = { ...v.style, cursor: "default" };
@@ -1621,7 +1621,7 @@ const X = ie("pg-history", {
1621
1621
  "onUpdate:modelValue": (g) => c.value = g,
1622
1622
  label: d.value,
1623
1623
  caption: a.value,
1624
- icon: un
1624
+ icon: hn
1625
1625
  };
1626
1626
  return h(me, f, () => h(En));
1627
1627
  }
@@ -1702,7 +1702,7 @@ const X = ie("pg-history", {
1702
1702
  class: "q-ma-xs"
1703
1703
  };
1704
1704
  u.value && (_.uuid = u.value), v.push(h(Nr, _));
1705
- }), h(ln, {}, () => v);
1705
+ }), h(un, {}, () => v);
1706
1706
  }
1707
1707
  return () => f();
1708
1708
  }
@@ -1783,7 +1783,7 @@ const X = ie("pg-history", {
1783
1783
  class: "q-ma-xs"
1784
1784
  })
1785
1785
  );
1786
- }), h(ln, d, () => u);
1786
+ }), h(un, d, () => u);
1787
1787
  }
1788
1788
  return () => a();
1789
1789
  }
@@ -1808,7 +1808,7 @@ const X = ie("pg-history", {
1808
1808
  "onUpdate:modelValue": (v) => a.value = v,
1809
1809
  label: c.value,
1810
1810
  caption: u.value,
1811
- icon: dn
1811
+ icon: pn
1812
1812
  }, g = {
1813
1813
  playMode: e.playMode
1814
1814
  };
@@ -2034,7 +2034,7 @@ const X = ie("pg-history", {
2034
2034
  "onUpdate:vertical": (v) => d.value = v,
2035
2035
  onToggle: u
2036
2036
  };
2037
- return h(Ho, g);
2037
+ return h(Fo, g);
2038
2038
  }
2039
2039
  return () => f();
2040
2040
  }
@@ -2218,7 +2218,7 @@ const X = ie("pg-history", {
2218
2218
  "onUpdate:modelValue": (g) => c.value = g,
2219
2219
  label: d.value,
2220
2220
  caption: a.value,
2221
- icon: hn
2221
+ icon: fn
2222
2222
  };
2223
2223
  return h(me, f, () => [
2224
2224
  h(Dn),
@@ -2274,18 +2274,18 @@ const X = ie("pg-history", {
2274
2274
  function n() {
2275
2275
  const r = {
2276
2276
  class: "pg-card",
2277
- "data-cy": "pg-card-" + Ao(e.label)
2277
+ "data-cy": "pg-card-" + No(e.label)
2278
2278
  // style: style.value,
2279
2279
  };
2280
2280
  return h("div", r, [
2281
2281
  h(
2282
- Vo,
2282
+ Uo,
2283
2283
  { flat: !0, bordered: !0 },
2284
2284
  {
2285
2285
  default: () => [
2286
- h(Uo, {}, () => [
2286
+ h(Ro, {}, () => [
2287
2287
  h(Ls, { avatar: !0 }, () => [
2288
- h(Ro, { name: e.icon, size: "36px" })
2288
+ h(Bo, { name: e.icon, size: "36px" })
2289
2289
  ]),
2290
2290
  h(Ls, {}, () => [
2291
2291
  h(Vs, { class: "pg-card-label" }, () => e.label),
@@ -2296,7 +2296,7 @@ const X = ie("pg-history", {
2296
2296
  )
2297
2297
  ])
2298
2298
  ]),
2299
- h(Bo, null, {
2299
+ h($o, null, {
2300
2300
  default: () => t.default ? t.default() : []
2301
2301
  })
2302
2302
  ]
@@ -2318,7 +2318,7 @@ const X = ie("pg-history", {
2318
2318
  class: "pg-duration-card",
2319
2319
  label: c.value,
2320
2320
  caption: a.value,
2321
- icon: un
2321
+ icon: hn
2322
2322
  };
2323
2323
  return h(ve, u, () => h(En, {}));
2324
2324
  }
@@ -2336,7 +2336,7 @@ const X = ie("pg-history", {
2336
2336
  class: "pg-skins-card",
2337
2337
  label: a.value,
2338
2338
  caption: c.value,
2339
- icon: Yo
2339
+ icon: Wo
2340
2340
  };
2341
2341
  return h(ve, u, {
2342
2342
  default: () => h(ss, { desktop: !0 })
@@ -2356,7 +2356,7 @@ const X = ie("pg-history", {
2356
2356
  class: "pg-skins-card",
2357
2357
  label: a.value,
2358
2358
  caption: c.value,
2359
- icon: dn
2359
+ icon: pn
2360
2360
  };
2361
2361
  return h(ve, u, () => [h(Tn, { desktop: !0 })]);
2362
2362
  }
@@ -2375,7 +2375,7 @@ const X = ie("pg-history", {
2375
2375
  class: "pg-cameras-card",
2376
2376
  label: c.value,
2377
2377
  caption: a.value,
2378
- icon: Wo
2378
+ icon: Xo
2379
2379
  };
2380
2380
  return h(ve, u, () => [h(_n)]);
2381
2381
  }
@@ -2393,7 +2393,7 @@ const X = ie("pg-history", {
2393
2393
  class: "pg-lights-card",
2394
2394
  label: c.value,
2395
2395
  caption: a.value,
2396
- icon: Xo
2396
+ icon: Zo
2397
2397
  };
2398
2398
  return h(ve, u, {
2399
2399
  default: () => h(bn, { desktop: !0 })
@@ -2418,7 +2418,7 @@ const X = ie("pg-history", {
2418
2418
  class: "pg-genders-card",
2419
2419
  label: c.value,
2420
2420
  caption: a.value,
2421
- icon: Zo
2421
+ icon: Qo
2422
2422
  };
2423
2423
  return h(ve, u, () => [h(In)]);
2424
2424
  }
@@ -2436,7 +2436,7 @@ const X = ie("pg-history", {
2436
2436
  class: "pg-pose-position-card",
2437
2437
  label: c.value,
2438
2438
  caption: a.value,
2439
- icon: Qo
2439
+ icon: Ko
2440
2440
  };
2441
2441
  return h(ve, u, {
2442
2442
  default: () => h(wn)
@@ -2462,7 +2462,7 @@ const X = ie("pg-history", {
2462
2462
  class: "pg-grid-card",
2463
2463
  label: c.value,
2464
2464
  caption: a.value,
2465
- icon: Ko
2465
+ icon: Jo
2466
2466
  };
2467
2467
  return h(ve, u, { default: () => h(Pn) });
2468
2468
  }
@@ -2494,7 +2494,7 @@ const X = ie("pg-history", {
2494
2494
  class: "pg-adjustments-card",
2495
2495
  label: c.value,
2496
2496
  caption: a.value,
2497
- icon: hn
2497
+ icon: fn
2498
2498
  };
2499
2499
  return h(ve, u, () => [h(ui)]);
2500
2500
  }
@@ -2572,7 +2572,7 @@ const X = ie("pg-history", {
2572
2572
  class: ""
2573
2573
  };
2574
2574
  return h("div", g, [
2575
- h(Fo, v),
2575
+ h(qo, v),
2576
2576
  h("span", {}, " " + d.value)
2577
2577
  ]);
2578
2578
  }
@@ -2637,7 +2637,7 @@ const X = ie("pg-history", {
2637
2637
  }), kn = T({
2638
2638
  name: "PgGridOverlay",
2639
2639
  setup(e, { slots: t, emit: s }) {
2640
- const n = It(), r = rn(), a = Ie(), {
2640
+ const n = It(), r = ln(), a = Ie(), {
2641
2641
  visible: c,
2642
2642
  spacing: d,
2643
2643
  horizontal: u,
@@ -2676,7 +2676,7 @@ const X = ie("pg-history", {
2676
2676
  imageSize: C.value,
2677
2677
  viewportSize: g.value
2678
2678
  };
2679
- return h(qo, I);
2679
+ return h(jo, I);
2680
2680
  }
2681
2681
  return () => P();
2682
2682
  }
@@ -2748,7 +2748,7 @@ const X = ie("pg-history", {
2748
2748
  class: "pg-button-exit",
2749
2749
  "data-cy": "pg-button-exit",
2750
2750
  label: a.value,
2751
- icon: Jo,
2751
+ icon: er,
2752
2752
  onClick: n.close,
2753
2753
  color: "primary",
2754
2754
  onKeyup: c,
@@ -2761,7 +2761,7 @@ const X = ie("pg-history", {
2761
2761
  qt,
2762
2762
  { name: "fade" },
2763
2763
  () => vt(
2764
- h($o, u, () => [h(Oe, f)]),
2764
+ h(zo, u, () => [h(Oe, f)]),
2765
2765
  [[yt, e.show]]
2766
2766
  )
2767
2767
  );
@@ -2816,7 +2816,7 @@ const X = ie("pg-history", {
2816
2816
  }), Si = T({
2817
2817
  name: "PgNextButton",
2818
2818
  setup(e, { slots: t, emit: s }) {
2819
- const n = he(), r = Z(), { milliseconds: a } = S(n), { duration: c } = S(r), d = Te(), { playing: u } = S(n), f = y(() => u.value ? er : tr), g = () => u.value ? d.pause() : d.play();
2819
+ const n = he(), r = Z(), { milliseconds: a } = S(n), { duration: c } = S(r), d = Te(), { playing: u } = S(n), f = y(() => u.value ? tr : sr), g = () => u.value ? d.pause() : d.play();
2820
2820
  function v() {
2821
2821
  const C = {
2822
2822
  type: "play",
@@ -2833,7 +2833,7 @@ const X = ie("pg-history", {
2833
2833
  thickness: 0.2,
2834
2834
  instantFeedback: !0
2835
2835
  };
2836
- return h(ns, C, () => [h(zo, _)]);
2836
+ return h(ns, C, () => [h(Ho, _)]);
2837
2837
  }
2838
2838
  return () => v();
2839
2839
  }
@@ -2940,7 +2940,7 @@ const X = ie("pg-history", {
2940
2940
  topOffset: 80,
2941
2941
  "onUpdate:modelValue": (c) => n.value = c
2942
2942
  };
2943
- return h(jo, a, {
2943
+ return h(Go, a, {
2944
2944
  default: () => h(Ln),
2945
2945
  expanded: () => h(Un)
2946
2946
  });
@@ -2954,7 +2954,7 @@ const X = ie("pg-history", {
2954
2954
  zIndex: Number
2955
2955
  },
2956
2956
  setup(e) {
2957
- const t = X(), s = rn(), n = e, r = y(() => t.playSrc), a = j(null), c = y(() => {
2957
+ const t = X(), s = ln(), n = e, r = y(() => t.playSrc), a = j(null), c = y(() => {
2958
2958
  const f = {
2959
2959
  // ...filterStyle.value,
2960
2960
  zIndex: n.zIndex + 2
@@ -2987,7 +2987,7 @@ const X = ie("pg-history", {
2987
2987
  setup(e) {
2988
2988
  const t = ge(), s = X();
2989
2989
  Pe();
2990
- const n = R(), { playSelected: r } = S(n), { brightness: a, contrast: c, saturate: d } = S(t), { filterStyle: u } = No({
2990
+ const n = R(), { playSelected: r } = S(n), { brightness: a, contrast: c, saturate: d } = S(t), { filterStyle: u } = Oo({
2991
2991
  brightness: a,
2992
2992
  contrast: c,
2993
2993
  saturate: d,
@@ -3002,7 +3002,7 @@ const X = ie("pg-history", {
3002
3002
  return [(_ = g.value) == null ? void 0 : _.id, (D = g.value) == null ? void 0 : D.src, (P = g.value) == null ? void 0 : P.status];
3003
3003
  },
3004
3004
  ([_, D, P], I, b) => {
3005
- if (!(P === mn && D)) return;
3005
+ if (!(P === an && D)) return;
3006
3006
  const x = _.split("."), F = _ ?? `${D}#${Date.now()}`;
3007
3007
  v.value = [
3008
3008
  ...v.value,
@@ -4208,7 +4208,7 @@ function xi() {
4208
4208
  })(Ht)), Ht.exports;
4209
4209
  }
4210
4210
  var xt = xi();
4211
- const oe = /* @__PURE__ */ sr({
4211
+ const oe = /* @__PURE__ */ nr({
4212
4212
  __proto__: null
4213
4213
  }, [xt]), Rn = 1, Bn = 2, Zt = 4, wi = {
4214
4214
  mousedown: Rn,
@@ -4867,7 +4867,7 @@ const ia = {
4867
4867
  emits: ["click"],
4868
4868
  setup(e, { slots: t, emit: s }) {
4869
4869
  return () => h(
4870
- cn,
4870
+ dn,
4871
4871
  { name: Me },
4872
4872
  {
4873
4873
  default: () => h(Ln, { center: !0 }),
@@ -4888,7 +4888,7 @@ const ia = {
4888
4888
  return (a = n.value.pg) == null ? void 0 : a.buttons.advanced.title;
4889
4889
  });
4890
4890
  return () => h(
4891
- cn,
4891
+ dn,
4892
4892
  { class: "pg-effects-drawer", name: St, label: r.value },
4893
4893
  {
4894
4894
  default: () => h(Un, { center: !0, playMode: !0 })
@@ -4901,7 +4901,7 @@ const ia = {
4901
4901
  const n = k(), { mobileActive: r } = S(n);
4902
4902
  function a() {
4903
4903
  return h(
4904
- Go,
4904
+ Yo,
4905
4905
  {
4906
4906
  modelValue: r.value,
4907
4907
  "onUpdate:modelValue": (c) => r.value = c
@@ -4938,7 +4938,7 @@ const ia = {
4938
4938
  B(Pi),
4939
4939
  B(qt, { name: "fade" }, {
4940
4940
  default: jt(() => [
4941
- vt(B(A(Oo), { class: "loading-graphic" }, null, 512), [
4941
+ vt(B(A(ko), { class: "loading-graphic" }, null, 512), [
4942
4942
  [yt, A(c)]
4943
4943
  ])
4944
4944
  ]),
@@ -4976,7 +4976,7 @@ const ia = {
4976
4976
  d.pause();
4977
4977
  },
4978
4978
  { immediate: !0 }
4979
- ), ko(), bt(() => {
4979
+ ), Lo(), bt(() => {
4980
4980
  f.init(), f.fetch().then(() => {
4981
4981
  u.loadQueue();
4982
4982
  }).catch(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@figurosity/consumer-pose-generator",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Timed figure-drawing pose generator for the Figurosity consumer frontend",
5
5
  "type": "module",
6
6
  "main": "./dist/consumer-pose-generator.js",