@figurosity/consumer-pose-generator 0.1.6 → 0.2.0
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.
- package/dist/consumer-pose-generator.js +734 -725
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".pg-overview-content h1{color:#fff;text-align:left;margin:0 0 15px}.pg-overview-content .text-subheading{text-align:left;color:#fff;font-size:20px;font-weight:600}@media(max-width:1023.98px){.pg-overview-content{background:url(https://static.figurosity.com/pose-generator/temp/pose-27.webp) center/contain no-repeat,radial-gradient(147.55% 89.72% at 66.15% 11.38%,#c86dd7,#3023ae);height:100%;padding:20px}.pg-overview-content h1,.pg-overview-content .text-subheading{text-align:center!important}}.pg-exit-button{overflow:hidden}.pg-overview-buttons{z-index:111;position:fixed;bottom:0;left:0;right:0;border-top:1px solid #cccccc}.pg-overview-buttons .pg-animated-count{text-align:center}@media(min-width:768px){.pg-overview-buttons .pg-animated-count{text-align:right}}.pg-card{z-index:9}.pg-card .q-card{background-color:#ffffffd9;border-color:#fff;border-width:1px;border-radius:14px}.pg-card .q-item__section--avatar{min-width:40px}.pg-card-label{font-size:18px;font-weight:900}.pg-card-caption{font-size:14px;font-weight:500;color:#676767}.pg-cards{color:#170a27;z-index:9}.pg-base-button.q-btn{color:#000c;background-color:#ffffff80!important}.pg-base-button.q-btn--outline:before{border-color:#000000b3}.pg-base-button.q-btn .q-icon{font-size:32px}.pg-controls{width:380px}.pg-controls .q-btn--outline:before{border-width:4px}.pg-play-button{position:relative}.pg-play-button.pg-base-button.q-btn .q-icon{font-size:26px;padding:7px 5px 5px;margin-bottom:3px}.pg-play-button .pg-timer-progress{position:absolute;top:0;left:0;z-index:2}.pg-timer-seconds{color:#000c;font-weight:900;font-size:30px;text-align:right;transition:all .3s ease;line-height:40px}.pg-timer-seconds.flash{color:#0087ff}.pg-expansions{background-color:#fff}.pg-expansions .q-separator{margin:0 10px}.pg-durations-tool .q-slider__selection{display:none}.pg-durations-tool-title{font-weight:900;color:#626262!important}.pg-durations-tool .q-slider__marker-labels{font-weight:900;color:#626262;transition:color .15s ease}.pg-durations-tool .pg-durations-tool__is-active{color:#0087ff!important}.c-pose-position{width:200px;height:200px;position:relative;margin:0 auto 10px;color:#0087ff;overflow:hidden}.c-pose-position.disabled{opacity:.7}.c-pose-position *{box-sizing:border-box}.c-pose-position .quickpose-angle{position:absolute;top:0;left:0;z-index:100;border-radius:100px}.c-pose-position .quickpose-angle img{width:96%;height:auto;border-radius:100px}.quarters{transform:rotate(45deg);width:96%;height:96%;position:absolute;top:1px;left:1px;z-index:90;border-radius:100px;overflow:hidden}.quarters.overlay{z-index:110}.quarters.borders .quarter{transition:background-color .3s;border:1px solid #0087ff;background-color:#fff;border-color:#0087ff}.quarters.borders .quarter>span{position:absolute;font-size:13px;left:50%;top:50%;transform:translate(-50%) translateY(-50%) rotate(-45deg)}.quarters.borders .quarter.hover{border-color:#0087ff}.quarters.borders .quarter.active{color:#fff!important;outline:0;border-color:#fff;background-color:#0087ff}.quarters .quarter{border:1px solid transparent;height:49%;width:49%;position:absolute;z-index:110;text-transform:uppercase}.quarters .quarter.active{color:#fff!important}.quarters .quarter.back{top:0;left:0;border-radius:100px 0 0}.quarters .quarter.back.active{border-radius:100px 0 0}.quarters .quarter.left{top:0;right:0;border-radius:0 100px 0 0}.quarters .quarter.left.active{border-radius:0 100px 0 0}.quarters .quarter.front{bottom:0;right:0;border-radius:0 0 100px}.quarters .quarter.front.active{border-radius:0 0 100px}.quarters .quarter.right{bottom:0;left:0;border-radius:0 0 0 100px}.quarters .quarter.right.active{border-radius:0 0 0 100px}.pg-overview{z-index:1;padding-bottom:110px}.pg-display-image{position:absolute;top:50%;left:50%;width:100%;height:auto;-webkit-transform:translateZ(0) translateX(-50%) translateY(-50%) scale3d(1,1,1);transform:translateZ(0) translate(-50%) translateY(-50%) scaleZ(1);z-index:2}.pg-display-image.flip-horizontal{-webkit-transform:translateZ(0) translateX(-50%) translateY(-50%) scale3d(1,1,1) scaleX(-1);transform:translateZ(0) translate(-50%) translateY(-50%) scaleZ(1) scaleX(-1)}.pg-display{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1}.pg-display.negative{background-color:#000!important}.pgfade-enter-from,.pgfade-enter-active,.pgfade-enter-to{z-index:2}.pgfade-leave-from,.pgfade-leave-active,.pgfade-leave-to{z-index:1}.pgfade-enter-active{transition:opacity .25s ease}.pgfade-enter-from{opacity:0}.pgfade-enter-to{opacity:1}.pgfade-leave-active{transition:none}.pg-interaction-detector{position:fixed;top:0;right:0;bottom:0;left:0;z-index:6}.pg-viewport{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2100;background-color:#fffffffc;transition:background-color .25s ease}.pg-viewport .loading-graphic{position:absolute;top:50%;left:50%;transform:translate(-50%) translateY(-50%)}.pg-viewport h1{position:fixed;line-height:100%;top:0;right:0;bottom:0;left:0;z-index:400;color:#000}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
-
import { ref as j, computed as y, watch as
|
|
2
|
+
import { ref as j, computed as y, watch as Ie, onBeforeMount as _o, defineComponent as C, h, openBlock as k, createBlock as bt, unref as M, createElementBlock as z, Fragment as Xe, renderList as Ze, createVNode as $, normalizeClass as vt, createElementVNode as Ae, toDisplayString as bo, onMounted as Ke, onBeforeUnmount as It, Transition as jt, withDirectives as yt, vShow as Et, normalizeStyle as rn, TransitionGroup as Io, withCtx as Gt, inject as xs } 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
|
|
6
|
-
import
|
|
7
|
-
import { useQuasar as
|
|
8
|
-
import { CExpansion as me, CBaseButton as Qe, CBaseButtons as
|
|
9
|
-
import { historyCircle as
|
|
5
|
+
import { getConfig as es, DEFAULT_SATURATE as je, DEFAULT_CONTRAST as Ge, DEFAULT_BRIGHTNESS as Ye, useDynamicImages as wo, DEFAULT_VERTICAL as ws, DEFAULT_HORIZONTAL as Ds, DEFAULT_SPACING as As, DEFAULT_VISIBLE as Do, DEFAULT as Me, SKINS as Yt, DURATION as Wt, FAILED as Xt, QUEUED as Ao, ABORTED as an, LOADED as ln, LOADING as Zt, UNLOADED as St, NOTHING as Mo, EFFECTS as Tt, CAMERA_ANGLE as Ms, LIGHT_DIRECTION as Ns, GENDER as Ct, GRID as Os, POSE_DIRECTION as ks, ADJUSTMENTS as Ls, slugify as No, useEventBus as cn, useFilterStyle as Oo, FlipAnimation as ko, useWakeLock as Lo } from "@figurosity/toolbox";
|
|
6
|
+
import un from "lodash-es/debounce";
|
|
7
|
+
import { useQuasar as Pt, QSlider as Vo, QSeparator as J, QCard as Uo, QItem as Ro, QItemSection as Vs, QIcon as Bo, QItemLabel as Us, QCardSection as $o, QBtn as Oe, QPageSticky as zo, QCircularProgress as Ho } from "quasar";
|
|
8
|
+
import { CExpansion as me, CBaseButton as Qe, CBaseButtons as dn, CNewGridTool as Fo, CBasicTool as ts, CAnimatedNumber as qo, CGridOverlay as jo, CFloatingModal as Go, CDraggableDrawer as hn, CDraggableDrawers as Yo } from "@figurosity/consumer-controls";
|
|
9
|
+
import { historyCircle as pn, contrast as fn, brightness as gn, shirt as Wo, cameraAngle as Xo, bulbLight as Zo, venus as Ko, cameraOrientation as Qo, grid as Jo, refresh as er, pause as tr, play as sr } from "@figurosity/icons";
|
|
10
10
|
function nr(e, t) {
|
|
11
11
|
for (var s = 0; s < t.length; s++) {
|
|
12
12
|
const n = t[s];
|
|
@@ -29,7 +29,7 @@ const or = {
|
|
|
29
29
|
slugs: {},
|
|
30
30
|
selected: [],
|
|
31
31
|
playSelected: 1
|
|
32
|
-
},
|
|
32
|
+
}, mn = {
|
|
33
33
|
random(e) {
|
|
34
34
|
var s;
|
|
35
35
|
if (!e.selected) return 1;
|
|
@@ -40,7 +40,7 @@ const or = {
|
|
|
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
|
-
},
|
|
43
|
+
}, vn = {
|
|
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)))];
|
|
@@ -106,11 +106,11 @@ const or = {
|
|
|
106
106
|
...t
|
|
107
107
|
}),
|
|
108
108
|
getters: {
|
|
109
|
-
...
|
|
109
|
+
...mn,
|
|
110
110
|
...s
|
|
111
111
|
},
|
|
112
112
|
actions: {
|
|
113
|
-
...
|
|
113
|
+
...vn,
|
|
114
114
|
...n
|
|
115
115
|
}
|
|
116
116
|
});
|
|
@@ -187,8 +187,8 @@ const rr = {}, ir = {
|
|
|
187
187
|
this.$reset();
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
}), { setSelected: lr } =
|
|
191
|
-
function
|
|
190
|
+
}), { setSelected: lr } = vn;
|
|
191
|
+
function Rs(e, t = !0) {
|
|
192
192
|
if (!e) return t ? "0s" : "0 seconds";
|
|
193
193
|
const s = e === 1 ? "second" : "seconds";
|
|
194
194
|
if (e < 60)
|
|
@@ -218,16 +218,16 @@ const Z = ie("pg-durations", {
|
|
|
218
218
|
return e.collection.findIndex((s) => String(s) === String(t));
|
|
219
219
|
},
|
|
220
220
|
title(e) {
|
|
221
|
-
return
|
|
221
|
+
return Rs(e.duration, !1);
|
|
222
222
|
},
|
|
223
223
|
values(e) {
|
|
224
224
|
const t = e.models;
|
|
225
225
|
return e.collection.map((n, r) => ({
|
|
226
226
|
value: r,
|
|
227
|
-
label:
|
|
227
|
+
label: Rs(t[n].seconds)
|
|
228
228
|
})) || [];
|
|
229
229
|
},
|
|
230
|
-
...
|
|
230
|
+
...mn
|
|
231
231
|
},
|
|
232
232
|
actions: {
|
|
233
233
|
customReset() {
|
|
@@ -256,7 +256,7 @@ const Z = ie("pg-durations", {
|
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
});
|
|
259
|
-
function
|
|
259
|
+
function Je() {
|
|
260
260
|
const { freeServer: e, paidServer: t } = es();
|
|
261
261
|
return wo({ freeServer: e, paidServer: t });
|
|
262
262
|
}
|
|
@@ -266,7 +266,7 @@ const cr = {
|
|
|
266
266
|
}, ur = {
|
|
267
267
|
src(e) {
|
|
268
268
|
return (t) => {
|
|
269
|
-
const { getThumbnail: s } =
|
|
269
|
+
const { getThumbnail: s } = Je();
|
|
270
270
|
return s({ uuid: e.uuid, image: t });
|
|
271
271
|
};
|
|
272
272
|
},
|
|
@@ -279,7 +279,7 @@ const cr = {
|
|
|
279
279
|
}
|
|
280
280
|
}, dr = {
|
|
281
281
|
getSrc(e, t) {
|
|
282
|
-
const { getThumbnail: s } =
|
|
282
|
+
const { getThumbnail: s } = Je();
|
|
283
283
|
return t = t || this.uuid, s({ uuid: t, image: e });
|
|
284
284
|
},
|
|
285
285
|
getModelsByIds(e = []) {
|
|
@@ -292,7 +292,7 @@ const cr = {
|
|
|
292
292
|
return this.propertyById(e, "slug", "normal");
|
|
293
293
|
},
|
|
294
294
|
customReset() {
|
|
295
|
-
const e = this.appAuthStore, t =
|
|
295
|
+
const e = this.appAuthStore, t = L();
|
|
296
296
|
if (e && e.authenticated) {
|
|
297
297
|
const s = this.collection.filter(
|
|
298
298
|
(n) => !t.censored.includes(n)
|
|
@@ -306,7 +306,7 @@ const cr = {
|
|
|
306
306
|
selected: [1]
|
|
307
307
|
});
|
|
308
308
|
}
|
|
309
|
-
},
|
|
309
|
+
}, U = ke({
|
|
310
310
|
storeId: "pg-skins",
|
|
311
311
|
state: cr,
|
|
312
312
|
getters: ur,
|
|
@@ -317,7 +317,7 @@ const cr = {
|
|
|
317
317
|
}, pr = {
|
|
318
318
|
src(e) {
|
|
319
319
|
return (t = "none") => {
|
|
320
|
-
const { getThumbnail: s } =
|
|
320
|
+
const { getThumbnail: s } = Je(), n = t === "negative" ? "000000" : "ffffff", r = U();
|
|
321
321
|
return s({
|
|
322
322
|
uuid: r.uuid,
|
|
323
323
|
image: "nude",
|
|
@@ -375,7 +375,7 @@ const cr = {
|
|
|
375
375
|
selected: 1
|
|
376
376
|
});
|
|
377
377
|
}
|
|
378
|
-
},
|
|
378
|
+
}, B = ke({
|
|
379
379
|
storeId: "pg-effects",
|
|
380
380
|
state: hr,
|
|
381
381
|
getters: pr,
|
|
@@ -389,12 +389,12 @@ const cr = {
|
|
|
389
389
|
state: gr,
|
|
390
390
|
getters: mr,
|
|
391
391
|
actions: vr
|
|
392
|
-
}),
|
|
392
|
+
}), Pe = ie("pg-grid", {
|
|
393
393
|
state: () => ({
|
|
394
394
|
visible: Do,
|
|
395
|
-
spacing:
|
|
396
|
-
horizontal:
|
|
397
|
-
vertical:
|
|
395
|
+
spacing: As,
|
|
396
|
+
horizontal: Ds,
|
|
397
|
+
vertical: ws
|
|
398
398
|
}),
|
|
399
399
|
getters: {
|
|
400
400
|
changed: (e) => e.visible === !0,
|
|
@@ -408,9 +408,9 @@ const cr = {
|
|
|
408
408
|
throw new Error(this.$id + " result must not be null");
|
|
409
409
|
this.$patch({
|
|
410
410
|
visible: e.visible === 1,
|
|
411
|
-
spacing: e.spacing ||
|
|
412
|
-
horizontal: e.horizontal ||
|
|
413
|
-
vertical: e.vertical ||
|
|
411
|
+
spacing: e.spacing || As,
|
|
412
|
+
horizontal: e.horizontal || Ds,
|
|
413
|
+
vertical: e.vertical || ws
|
|
414
414
|
});
|
|
415
415
|
},
|
|
416
416
|
customReset() {
|
|
@@ -475,7 +475,7 @@ function Cr(e, t) {
|
|
|
475
475
|
}
|
|
476
476
|
return s;
|
|
477
477
|
}
|
|
478
|
-
const
|
|
478
|
+
const xe = ie("pg-poses", {
|
|
479
479
|
state: () => ({
|
|
480
480
|
models: /* @__PURE__ */ Object.create(null),
|
|
481
481
|
// { [id]: poseRow }
|
|
@@ -491,7 +491,7 @@ const Pe = ie("pg-poses", {
|
|
|
491
491
|
getters: {
|
|
492
492
|
// convenience getter
|
|
493
493
|
unseenIds(e) {
|
|
494
|
-
const s =
|
|
494
|
+
const s = L().filterData;
|
|
495
495
|
return e.collection.filter((n) => !e.seen.has(n)).filter((n) => this.candidates(s).includes(n));
|
|
496
496
|
},
|
|
497
497
|
unseenCount() {
|
|
@@ -546,7 +546,7 @@ const Pe = ie("pg-poses", {
|
|
|
546
546
|
this.seed = e ?? Date.now() & 4294967295;
|
|
547
547
|
},
|
|
548
548
|
async ensureUnseen({ minUnseen: e = 50, batch: t = 200 } = {}) {
|
|
549
|
-
const s =
|
|
549
|
+
const s = L();
|
|
550
550
|
if (s.filterData, this.unseenCount >= e || this.loading) return;
|
|
551
551
|
await (async () => {
|
|
552
552
|
try {
|
|
@@ -597,7 +597,7 @@ const Pe = ie("pg-poses", {
|
|
|
597
597
|
state: _r,
|
|
598
598
|
getters: br,
|
|
599
599
|
actions: Ir
|
|
600
|
-
}),
|
|
600
|
+
}), Bs = {
|
|
601
601
|
entities: {
|
|
602
602
|
cameras: {
|
|
603
603
|
1: {
|
|
@@ -795,7 +795,7 @@ const Pe = ie("pg-poses", {
|
|
|
795
795
|
result: {
|
|
796
796
|
setUuid: "b22658f7-e757-4a7f-9071-89ccb7df966e"
|
|
797
797
|
}
|
|
798
|
-
},
|
|
798
|
+
}, L = ie("pg", {
|
|
799
799
|
/**
|
|
800
800
|
*
|
|
801
801
|
* @property {number} active The filter or drawer that is currently active.
|
|
@@ -808,8 +808,8 @@ const Pe = ie("pg-poses", {
|
|
|
808
808
|
*/
|
|
809
809
|
state: () => ({
|
|
810
810
|
animate: !1,
|
|
811
|
-
active:
|
|
812
|
-
playActive:
|
|
811
|
+
active: Wt,
|
|
812
|
+
playActive: Yt,
|
|
813
813
|
mobileActive: Me,
|
|
814
814
|
censored: [],
|
|
815
815
|
disable: !0,
|
|
@@ -822,7 +822,7 @@ const Pe = ie("pg-poses", {
|
|
|
822
822
|
}),
|
|
823
823
|
getters: {
|
|
824
824
|
filterData(e) {
|
|
825
|
-
const t = ge(), s = pe(), n = Z(), r =
|
|
825
|
+
const t = ge(), s = pe(), n = Z(), r = B(), a = re(), c = Pe(), d = ee(), u = fe(), f = U(), g = c.visible === !0 ? 1 : 0;
|
|
826
826
|
return {
|
|
827
827
|
cameras: s.selected,
|
|
828
828
|
durations: n.selected,
|
|
@@ -847,17 +847,17 @@ const Pe = ie("pg-poses", {
|
|
|
847
847
|
},
|
|
848
848
|
actions: {
|
|
849
849
|
init() {
|
|
850
|
-
const e =
|
|
850
|
+
const e = Bs.entities, t = Bs.result;
|
|
851
851
|
this.updateStatesFromEntities(e);
|
|
852
|
-
const s =
|
|
852
|
+
const s = U();
|
|
853
853
|
s.uuid = t.setUuid;
|
|
854
854
|
},
|
|
855
855
|
updateStatesFromEntities(e) {
|
|
856
|
-
const t = e, s = pe(), n = Z(), r =
|
|
856
|
+
const t = e, s = pe(), n = Z(), r = B(), a = re(), c = ee(), d = fe(), u = U();
|
|
857
857
|
s.setState(t.cameras), n.setState(t.durations), r.setState(t.effects), a.setState(t.genders), c.setState(t.lights), d.setState(t.positions), u.setState(t.skins);
|
|
858
858
|
},
|
|
859
859
|
updateSelectedFromResult(e) {
|
|
860
|
-
const t = e, s = ge(), n = pe(), r = Z(), a =
|
|
860
|
+
const t = e, s = ge(), n = pe(), r = Z(), a = B(), c = re(), d = Pe(), u = ee(), f = fe(), g = U();
|
|
861
861
|
s.setValues(t.adjustments), d.setValues(t.grid), r.setSelected(t.durations), a.setSelected(t.effects), n.setSelected(t.cameras), c.setSelected(t.genders), u.setSelected(t.lights), f.setSelected(t.positions), g.setSelected(t.skins), g.uuid = t.setUuid;
|
|
862
862
|
},
|
|
863
863
|
hasAccess(e) {
|
|
@@ -870,7 +870,7 @@ const Pe = ie("pg-poses", {
|
|
|
870
870
|
return this.disable = !0, this.loading = !0, new Promise((t, s) => {
|
|
871
871
|
this.appPoseGeneratorStore.fetch(e).then((n) => {
|
|
872
872
|
var a;
|
|
873
|
-
this.updateStatesFromEntities(n.entities), this.updateSelectedFromResult(n.result), this.totalCount = n.result.total_count,
|
|
873
|
+
this.updateStatesFromEntities(n.entities), this.updateSelectedFromResult(n.result), this.totalCount = n.result.total_count, xe().ingestNormalized((a = n == null ? void 0 : n.entities) == null ? void 0 : a.poses), this.firstLoad = !0, t(n);
|
|
874
874
|
}).catch((n) => {
|
|
875
875
|
s(n), console.log(n);
|
|
876
876
|
}).finally(() => {
|
|
@@ -884,7 +884,7 @@ const Pe = ie("pg-poses", {
|
|
|
884
884
|
}).catch((t) => {
|
|
885
885
|
});
|
|
886
886
|
},
|
|
887
|
-
setSettings:
|
|
887
|
+
setSettings: un(
|
|
888
888
|
function() {
|
|
889
889
|
console.log("setSettings"), this.internalSettings();
|
|
890
890
|
},
|
|
@@ -917,12 +917,12 @@ const Pe = ie("pg-poses", {
|
|
|
917
917
|
this.active !== e && (this.active = e);
|
|
918
918
|
},
|
|
919
919
|
customReset() {
|
|
920
|
-
const e = ge(), t = pe(), s = Z(), n =
|
|
920
|
+
const e = ge(), t = pe(), s = Z(), n = B(), r = re(), a = Pe(), c = ee(), d = fe(), u = U();
|
|
921
921
|
e.customReset(), t.customReset(), s.customReset(), n.customReset(), r.customReset(), a.customReset(), c.customReset(), d.customReset(), u.customReset();
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
924
|
});
|
|
925
|
-
function
|
|
925
|
+
function pt(e) {
|
|
926
926
|
if (!Array.isArray(e)) return [];
|
|
927
927
|
const t = /* @__PURE__ */ new Set();
|
|
928
928
|
for (let s = 0; s < e.length; s++) {
|
|
@@ -931,20 +931,20 @@ function ht(e) {
|
|
|
931
931
|
}
|
|
932
932
|
return Array.from(t).sort((s, n) => s - n);
|
|
933
933
|
}
|
|
934
|
-
function
|
|
934
|
+
function ft(e = {}) {
|
|
935
935
|
return {
|
|
936
|
-
cameras:
|
|
937
|
-
genders:
|
|
938
|
-
skins:
|
|
939
|
-
species:
|
|
936
|
+
cameras: pt(e.cameras),
|
|
937
|
+
genders: pt(e.genders),
|
|
938
|
+
skins: pt(e.skins),
|
|
939
|
+
species: pt(e.species),
|
|
940
940
|
// subjects intentionally NOT part of cache key; pass-through if you need to display it
|
|
941
941
|
subjects: e.subjects == null ? null : Number(e.subjects)
|
|
942
942
|
};
|
|
943
943
|
}
|
|
944
|
-
function
|
|
944
|
+
function gt(e) {
|
|
945
945
|
return JSON.stringify([e.cameras, e.genders, e.skins, e.species]);
|
|
946
946
|
}
|
|
947
|
-
const
|
|
947
|
+
const xt = ie("pg-count", {
|
|
948
948
|
state: () => ({
|
|
949
949
|
// --- CACHE ---
|
|
950
950
|
// entries[key] = { count:number, ts:number }
|
|
@@ -969,7 +969,7 @@ const Pt = ie("pg-count", {
|
|
|
969
969
|
getters: {
|
|
970
970
|
// Fresh cached count for given filters (or null)
|
|
971
971
|
cachedCount: (e) => (t) => {
|
|
972
|
-
const s = ft(
|
|
972
|
+
const s = gt(ft(t)), n = e.entries[s];
|
|
973
973
|
return !n || e.ttlMs && Date.now() - n.ts > e.ttlMs ? null : n.count;
|
|
974
974
|
},
|
|
975
975
|
filters() {
|
|
@@ -993,7 +993,7 @@ const Pt = ie("pg-count", {
|
|
|
993
993
|
this.entries[e] = { count: t, ts: Date.now() }, this._touchKey(e);
|
|
994
994
|
},
|
|
995
995
|
getFilters() {
|
|
996
|
-
const e = pe(), t = re(), s =
|
|
996
|
+
const e = pe(), t = re(), s = U(), n = B(), r = ee();
|
|
997
997
|
return {
|
|
998
998
|
cameras: e.selected,
|
|
999
999
|
genders: t.selected,
|
|
@@ -1007,7 +1007,7 @@ const Pt = ie("pg-count", {
|
|
|
1007
1007
|
/* ------------------- public cache-only API ---------------------- */
|
|
1008
1008
|
// Prime the cache for these filters (no UI updates). Returns the count.
|
|
1009
1009
|
async prefetch() {
|
|
1010
|
-
const e = this.getFilters(), t =
|
|
1010
|
+
const e = this.getFilters(), t = ft(e), s = gt(t), n = this.cachedCount(e);
|
|
1011
1011
|
return n ?? (this.inFlight[s] || (this.inFlight[s] = this.appPoseGeneratorStore.count(t).then((a) => {
|
|
1012
1012
|
const c = (a == null ? void 0 : a.result) ?? a;
|
|
1013
1013
|
if (typeof (c == null ? void 0 : c.count) != "number")
|
|
@@ -1021,7 +1021,7 @@ const Pt = ie("pg-count", {
|
|
|
1021
1021
|
// but uses a version gate so stale responses don't overwrite newer ones.
|
|
1022
1022
|
// Also caches every response.
|
|
1023
1023
|
async fetchForDisplay() {
|
|
1024
|
-
const e = this.getFilters(), t =
|
|
1024
|
+
const e = this.getFilters(), t = ft(e), s = gt(t);
|
|
1025
1025
|
this._lastKey = s;
|
|
1026
1026
|
const n = ++this._reqId;
|
|
1027
1027
|
this.loading = !0, this.error = null;
|
|
@@ -1044,7 +1044,7 @@ const Pt = ie("pg-count", {
|
|
|
1044
1044
|
},
|
|
1045
1045
|
// cache maintenance
|
|
1046
1046
|
invalidate(e) {
|
|
1047
|
-
const t = ft(
|
|
1047
|
+
const t = gt(ft(e));
|
|
1048
1048
|
if (this.entries[t]) {
|
|
1049
1049
|
delete this.entries[t];
|
|
1050
1050
|
const s = this.order.indexOf(t);
|
|
@@ -1068,16 +1068,16 @@ const Pt = ie("pg-count", {
|
|
|
1068
1068
|
*/
|
|
1069
1069
|
loadImage({ url: e, callback: t = null }) {
|
|
1070
1070
|
if (typeof Image > "u")
|
|
1071
|
-
throw t && typeof t == "function" && t(e,
|
|
1072
|
-
t && typeof t == "function" && t(e,
|
|
1071
|
+
throw t && typeof t == "function" && t(e, Xt), new Error("Image() constructor does not exist.");
|
|
1072
|
+
t && typeof t == "function" && t(e, Ao);
|
|
1073
1073
|
let s = new Image();
|
|
1074
1074
|
s.onabort = function(n) {
|
|
1075
|
-
t && typeof t == "function" && t(e,
|
|
1075
|
+
t && typeof t == "function" && t(e, an), this.onerror = this.onabort = this.onload = null;
|
|
1076
1076
|
}, s.onerror = function(n) {
|
|
1077
|
-
t && typeof t == "function" && t(e,
|
|
1077
|
+
t && typeof t == "function" && t(e, Xt), this.onerror = this.onabort = this.onload = null;
|
|
1078
1078
|
}, s.onload = function(n) {
|
|
1079
|
-
t && typeof t == "function" && t(e,
|
|
1080
|
-
}, s.src = e, t && typeof t == "function" && t(e,
|
|
1079
|
+
t && typeof t == "function" && t(e, ln), this.onerror = this.onabort = this.onload = null;
|
|
1080
|
+
}, s.src = e, t && typeof t == "function" && t(e, Zt);
|
|
1081
1081
|
}
|
|
1082
1082
|
};
|
|
1083
1083
|
function xr(e, t) {
|
|
@@ -1090,47 +1090,47 @@ function wr({
|
|
|
1090
1090
|
effectId: n,
|
|
1091
1091
|
lightDirection: r
|
|
1092
1092
|
}) {
|
|
1093
|
-
const a =
|
|
1093
|
+
const a = B(), d = U().getSlugById(s), u = a.getSlugById(n);
|
|
1094
1094
|
return `/figure-drawing-poses/${e}/${d}/${u}/${t}/${r === 1 ? 1 : 0}`;
|
|
1095
1095
|
}
|
|
1096
|
-
function
|
|
1096
|
+
function yn(e, t = "lg") {
|
|
1097
1097
|
if (!e) return;
|
|
1098
|
-
const { getPoseSmall: s, getPoseLarge: n } =
|
|
1099
|
-
return r.size = t,
|
|
1098
|
+
const { getPoseSmall: s, getPoseLarge: n } = Je(), r = We(e);
|
|
1099
|
+
return r.size = t, En(r);
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
1101
|
+
function En({
|
|
1102
1102
|
poseId: e,
|
|
1103
1103
|
index: t,
|
|
1104
1104
|
skinId: s,
|
|
1105
1105
|
effectId: n,
|
|
1106
1106
|
size: r = "lg"
|
|
1107
1107
|
}) {
|
|
1108
|
-
const { getPoseSmall: a, getPoseLarge: c } =
|
|
1108
|
+
const { getPoseSmall: a, getPoseLarge: c } = Je(), d = xe(), u = B(), f = U(), g = d.getModelById(e), v = f.getSlugById(s), T = u.getSlugById(n), _ = n === 3 ? "000000" : "ffffff";
|
|
1109
1109
|
return r === "lg" ? c({
|
|
1110
1110
|
uuid: g.uuid,
|
|
1111
1111
|
skin: v,
|
|
1112
|
-
effect:
|
|
1112
|
+
effect: T,
|
|
1113
1113
|
color: _,
|
|
1114
1114
|
index: t
|
|
1115
1115
|
}) : a({
|
|
1116
1116
|
uuid: g.uuid,
|
|
1117
1117
|
skin: v,
|
|
1118
|
-
effect:
|
|
1118
|
+
effect: T,
|
|
1119
1119
|
color: _,
|
|
1120
1120
|
index: t
|
|
1121
1121
|
});
|
|
1122
1122
|
}
|
|
1123
|
-
function
|
|
1123
|
+
function zt(e) {
|
|
1124
1124
|
const t = e.split(".");
|
|
1125
1125
|
return {
|
|
1126
1126
|
id: e,
|
|
1127
|
-
src:
|
|
1128
|
-
status:
|
|
1127
|
+
src: yn(e),
|
|
1128
|
+
status: St,
|
|
1129
1129
|
flipped: t[2] === 1
|
|
1130
1130
|
};
|
|
1131
1131
|
}
|
|
1132
1132
|
function Dr(e) {
|
|
1133
|
-
const t =
|
|
1133
|
+
const t = xe(), s = ee(), n = B(), r = U(), a = fe(), c = t.models[e];
|
|
1134
1134
|
return [
|
|
1135
1135
|
e,
|
|
1136
1136
|
a.getRandom(c.index),
|
|
@@ -1162,18 +1162,18 @@ const X = ie("pg-history", {
|
|
|
1162
1162
|
}),
|
|
1163
1163
|
getters: {
|
|
1164
1164
|
playSrc(e) {
|
|
1165
|
-
const t =
|
|
1165
|
+
const t = B(), s = U(), n = this.history[this.index];
|
|
1166
1166
|
if (!n) return;
|
|
1167
1167
|
const r = We(n);
|
|
1168
|
-
return r.effectId = t.playSelected, r.skinId = s.playSelected,
|
|
1168
|
+
return r.effectId = t.playSelected, r.skinId = s.playSelected, En(r);
|
|
1169
1169
|
},
|
|
1170
1170
|
previewSrc(e) {
|
|
1171
|
-
return
|
|
1171
|
+
return yn(e.queue[0], "sm");
|
|
1172
1172
|
},
|
|
1173
1173
|
view360Path(e) {
|
|
1174
1174
|
const t = e.index >= 0 && e.index < e.history.length ? e.history[e.index] : void 0;
|
|
1175
1175
|
if (!t) return;
|
|
1176
|
-
const s =
|
|
1176
|
+
const s = B(), n = U(), r = We(t);
|
|
1177
1177
|
return r.effectId = s.playSelected, r.skinId = n.playSelected, wr(r);
|
|
1178
1178
|
},
|
|
1179
1179
|
previewFlipped(e) {
|
|
@@ -1246,7 +1246,7 @@ const X = ie("pg-history", {
|
|
|
1246
1246
|
this.queue = [];
|
|
1247
1247
|
},
|
|
1248
1248
|
loadQueue() {
|
|
1249
|
-
const e =
|
|
1249
|
+
const e = xt(), t = xe(), s = e.filters, n = t.randomTake(20, s), r = [];
|
|
1250
1250
|
if (n.forEach((d) => {
|
|
1251
1251
|
try {
|
|
1252
1252
|
const u = Dr(d);
|
|
@@ -1256,9 +1256,9 @@ const X = ie("pg-history", {
|
|
|
1256
1256
|
}
|
|
1257
1257
|
}), this.queue = [...r], r.length === 0) return;
|
|
1258
1258
|
const a = r[0];
|
|
1259
|
-
this.models[a] || (this.models[a] =
|
|
1259
|
+
this.models[a] || (this.models[a] = zt(a));
|
|
1260
1260
|
const c = this.models[a];
|
|
1261
|
-
c.status ===
|
|
1261
|
+
c.status === St && this.loadImage({
|
|
1262
1262
|
url: c.src,
|
|
1263
1263
|
callback: this.updateStatus
|
|
1264
1264
|
});
|
|
@@ -1271,11 +1271,11 @@ const X = ie("pg-history", {
|
|
|
1271
1271
|
this.index++;
|
|
1272
1272
|
return;
|
|
1273
1273
|
}
|
|
1274
|
-
const e =
|
|
1274
|
+
const e = B(), t = xe(), s = U(), n = L(), r = Z(), a = this.queue.shift();
|
|
1275
1275
|
if (a == null) return;
|
|
1276
|
-
this.models[a] || (this.models[a] =
|
|
1276
|
+
this.models[a] || (this.models[a] = zt(a));
|
|
1277
1277
|
const c = this.models[a];
|
|
1278
|
-
(c.status ===
|
|
1278
|
+
(c.status === St || c.status === Zt) && this.loadImage({
|
|
1279
1279
|
url: c.src,
|
|
1280
1280
|
callback: this.updateStatus
|
|
1281
1281
|
});
|
|
@@ -1304,7 +1304,7 @@ const X = ie("pg-history", {
|
|
|
1304
1304
|
// },
|
|
1305
1305
|
previous() {
|
|
1306
1306
|
if (this.index === 0) return;
|
|
1307
|
-
const e =
|
|
1307
|
+
const e = U(), t = B(), s = this.index - 1;
|
|
1308
1308
|
this.index = s;
|
|
1309
1309
|
const n = this.history[s], { skinId: r, effectId: a } = We(n);
|
|
1310
1310
|
t.playSelected = a, e.playSelected = r;
|
|
@@ -1316,12 +1316,12 @@ const X = ie("pg-history", {
|
|
|
1316
1316
|
_preloadQueue(e = 5) {
|
|
1317
1317
|
const t = this.queue.slice(0, e);
|
|
1318
1318
|
for (const s of t) {
|
|
1319
|
-
this.models[s] || (this.models[s] =
|
|
1319
|
+
this.models[s] || (this.models[s] = zt(s));
|
|
1320
1320
|
const n = this.models[s], r = n.status;
|
|
1321
|
-
if ((r ===
|
|
1321
|
+
if ((r === St || r === Zt) && this.loadImage({
|
|
1322
1322
|
url: n.src,
|
|
1323
1323
|
callback: this.updateStatus
|
|
1324
|
-
}), r ===
|
|
1324
|
+
}), r === Xt || r === an) {
|
|
1325
1325
|
delete this.models[s];
|
|
1326
1326
|
const a = this.queue.indexOf(s);
|
|
1327
1327
|
a !== -1 && this.queue.splice(a, 1);
|
|
@@ -1330,9 +1330,9 @@ const X = ie("pg-history", {
|
|
|
1330
1330
|
this.queue.length < 5 && this.loadQueue();
|
|
1331
1331
|
}
|
|
1332
1332
|
}
|
|
1333
|
-
}),
|
|
1333
|
+
}), $s = 0, _t = 1, Ht = 2, he = ie("pg-timer", {
|
|
1334
1334
|
state: () => ({
|
|
1335
|
-
status:
|
|
1335
|
+
status: _t,
|
|
1336
1336
|
interval: 0,
|
|
1337
1337
|
intervalDelay: 25,
|
|
1338
1338
|
seconds: 0,
|
|
@@ -1345,10 +1345,10 @@ const X = ie("pg-history", {
|
|
|
1345
1345
|
return a = a >= 0 ? a : 59, r === 1 && a === 0 && s === 60 && (r = 0, a = 60), a = "0" + a, (s > 61 ? r + ":" : "") + a.substr(-2);
|
|
1346
1346
|
},
|
|
1347
1347
|
playing(e) {
|
|
1348
|
-
return e.status ===
|
|
1348
|
+
return e.status === Ht;
|
|
1349
1349
|
},
|
|
1350
1350
|
paused(e) {
|
|
1351
|
-
return e.status ===
|
|
1351
|
+
return e.status === $s;
|
|
1352
1352
|
}
|
|
1353
1353
|
},
|
|
1354
1354
|
actions: {
|
|
@@ -1359,7 +1359,7 @@ const X = ie("pg-history", {
|
|
|
1359
1359
|
pause() {
|
|
1360
1360
|
clearInterval(this.interval), this.$patch({
|
|
1361
1361
|
interval: 0,
|
|
1362
|
-
status:
|
|
1362
|
+
status: $s
|
|
1363
1363
|
});
|
|
1364
1364
|
},
|
|
1365
1365
|
restart() {
|
|
@@ -1382,7 +1382,7 @@ const X = ie("pg-history", {
|
|
|
1382
1382
|
stop() {
|
|
1383
1383
|
clearInterval(this.interval), this.resetTimer(), this.$patch({
|
|
1384
1384
|
interval: 0,
|
|
1385
|
-
status:
|
|
1385
|
+
status: _t
|
|
1386
1386
|
});
|
|
1387
1387
|
},
|
|
1388
1388
|
/**
|
|
@@ -1390,14 +1390,14 @@ const X = ie("pg-history", {
|
|
|
1390
1390
|
* @param context
|
|
1391
1391
|
*/
|
|
1392
1392
|
start() {
|
|
1393
|
-
if (this.status !==
|
|
1393
|
+
if (this.status !== Ht) {
|
|
1394
1394
|
clearInterval(this.interval), this.$patch({
|
|
1395
1395
|
interval: 0
|
|
1396
1396
|
});
|
|
1397
1397
|
const e = setInterval(this._tick, this.intervalDelay);
|
|
1398
1398
|
this.$patch({
|
|
1399
1399
|
interval: e,
|
|
1400
|
-
status:
|
|
1400
|
+
status: Ht
|
|
1401
1401
|
});
|
|
1402
1402
|
}
|
|
1403
1403
|
},
|
|
@@ -1417,12 +1417,12 @@ const X = ie("pg-history", {
|
|
|
1417
1417
|
});
|
|
1418
1418
|
}
|
|
1419
1419
|
}
|
|
1420
|
-
}),
|
|
1420
|
+
}), zs = 0, mt = 1, Ar = 2, Te = ie("pg-controls", {
|
|
1421
1421
|
state: () => ({
|
|
1422
1422
|
timer: !0,
|
|
1423
1423
|
next: !0,
|
|
1424
1424
|
show: !1,
|
|
1425
|
-
status:
|
|
1425
|
+
status: zs
|
|
1426
1426
|
}),
|
|
1427
1427
|
getters: {
|
|
1428
1428
|
/**
|
|
@@ -1449,21 +1449,21 @@ const X = ie("pg-history", {
|
|
|
1449
1449
|
* Open the pose generator tool, reset history and start playing from queue
|
|
1450
1450
|
*/
|
|
1451
1451
|
open() {
|
|
1452
|
-
const e = he(), t = X(), s =
|
|
1453
|
-
e.resetTimer(), t.next(), e.start(), this.$patch({ show: !0, status:
|
|
1452
|
+
const e = he(), t = X(), s = L();
|
|
1453
|
+
e.resetTimer(), t.next(), e.start(), this.$patch({ show: !0, status: mt }), s.$patch({ active: Me, playActive: Me });
|
|
1454
1454
|
},
|
|
1455
1455
|
/**
|
|
1456
1456
|
* Close the pose generator tool
|
|
1457
1457
|
*/
|
|
1458
1458
|
close() {
|
|
1459
|
-
const e = he(), t = X(), s =
|
|
1460
|
-
e.stop(), this.show = !1, this.status =
|
|
1459
|
+
const e = he(), t = X(), s = L();
|
|
1460
|
+
e.stop(), this.show = !1, this.status = zs, t.reset(), s.$patch({ active: Me, playActive: Me });
|
|
1461
1461
|
},
|
|
1462
1462
|
/**
|
|
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:
|
|
1466
|
+
next: un(
|
|
1467
1467
|
function() {
|
|
1468
1468
|
X().next(), this.resetOrRestartTimer();
|
|
1469
1469
|
},
|
|
@@ -1482,14 +1482,14 @@ const X = ie("pg-history", {
|
|
|
1482
1482
|
*/
|
|
1483
1483
|
pause() {
|
|
1484
1484
|
const e = he();
|
|
1485
|
-
this.status =
|
|
1485
|
+
this.status = Ar, e.pause();
|
|
1486
1486
|
},
|
|
1487
1487
|
/**
|
|
1488
1488
|
*
|
|
1489
1489
|
*/
|
|
1490
1490
|
play() {
|
|
1491
1491
|
const e = he();
|
|
1492
|
-
this.status =
|
|
1492
|
+
this.status = mt, e.start();
|
|
1493
1493
|
},
|
|
1494
1494
|
/**
|
|
1495
1495
|
* Reset or restart the time based on the current play status
|
|
@@ -1508,12 +1508,12 @@ const X = ie("pg-history", {
|
|
|
1508
1508
|
const e = he();
|
|
1509
1509
|
if (
|
|
1510
1510
|
// p !== null &&
|
|
1511
|
-
e.status ===
|
|
1511
|
+
e.status === _t && this.show === !0 && this.status === mt
|
|
1512
1512
|
) {
|
|
1513
1513
|
e.start();
|
|
1514
1514
|
return;
|
|
1515
1515
|
}
|
|
1516
|
-
e.status ===
|
|
1516
|
+
e.status === _t && this.show === !0 && this.status === mt && this.startTimerLoop();
|
|
1517
1517
|
},
|
|
1518
1518
|
startTimerLoop() {
|
|
1519
1519
|
setTimeout(() => {
|
|
@@ -1521,12 +1521,12 @@ const X = ie("pg-history", {
|
|
|
1521
1521
|
}, 250);
|
|
1522
1522
|
}
|
|
1523
1523
|
}
|
|
1524
|
-
}),
|
|
1525
|
-
const t =
|
|
1524
|
+
}), Hs = /* @__PURE__ */ Object.assign({ "../i18n/en-US/index.js": () => import("./index-BMl4y9AI.js") }), A = (e = "../i18n") => {
|
|
1525
|
+
const t = Pt(), s = j({}), n = y(() => t.lang.isoName || "en-US"), r = async () => {
|
|
1526
1526
|
const a = `${e}/${n.value}/index.js`;
|
|
1527
|
-
if (
|
|
1527
|
+
if (Hs[a])
|
|
1528
1528
|
try {
|
|
1529
|
-
const c = await
|
|
1529
|
+
const c = await Hs[a]();
|
|
1530
1530
|
c.default && Object.assign(s.value, c.default);
|
|
1531
1531
|
} catch (c) {
|
|
1532
1532
|
console.error(`Error loading i18n for ${n.value}`, c);
|
|
@@ -1534,32 +1534,32 @@ const X = ie("pg-history", {
|
|
|
1534
1534
|
else
|
|
1535
1535
|
console.error(`Module not found: ${a}`);
|
|
1536
1536
|
};
|
|
1537
|
-
return
|
|
1537
|
+
return Ie(
|
|
1538
1538
|
() => n.value,
|
|
1539
1539
|
() => {
|
|
1540
1540
|
r();
|
|
1541
1541
|
},
|
|
1542
1542
|
{ immediate: !0 }
|
|
1543
|
-
),
|
|
1543
|
+
), _o(() => {
|
|
1544
1544
|
r();
|
|
1545
1545
|
}), { lang: s };
|
|
1546
1546
|
}, ae = ({
|
|
1547
|
-
tab: e =
|
|
1547
|
+
tab: e = Mo,
|
|
1548
1548
|
store: t,
|
|
1549
1549
|
options: s = [],
|
|
1550
1550
|
playMode: n = !1
|
|
1551
1551
|
}) => {
|
|
1552
|
-
const r = xo(), a =
|
|
1552
|
+
const r = xo(), a = L(r), c = y({
|
|
1553
1553
|
get: () => a.isExpanded(s, n),
|
|
1554
1554
|
set: (f) => {
|
|
1555
1555
|
f && a.setActive(e, n);
|
|
1556
1556
|
}
|
|
1557
1557
|
}), d = y(() => t && t.changed);
|
|
1558
1558
|
return { click: () => a.setActive(e, n), expanded: c, selected: d };
|
|
1559
|
-
},
|
|
1559
|
+
}, Sn = C({
|
|
1560
1560
|
name: "PgDurationsTool",
|
|
1561
1561
|
setup(e, { slots: t, emit: s }) {
|
|
1562
|
-
const n =
|
|
1562
|
+
const n = L(), r = Z(), { loading: a } = S(n), { collectedModels: c, values: d } = S(r), u = y({
|
|
1563
1563
|
get: () => r.index,
|
|
1564
1564
|
set: (g) => r.setSelectedByIndex(g)
|
|
1565
1565
|
});
|
|
@@ -1581,7 +1581,7 @@ const X = ie("pg-history", {
|
|
|
1581
1581
|
h(Vo, g, {
|
|
1582
1582
|
// single label slot, Quasar passes { index, label }
|
|
1583
1583
|
"marker-label": ({ marker: v }) => {
|
|
1584
|
-
const
|
|
1584
|
+
const T = { ...v.style, cursor: "default" };
|
|
1585
1585
|
return h(
|
|
1586
1586
|
"div",
|
|
1587
1587
|
{
|
|
@@ -1593,7 +1593,7 @@ const X = ie("pg-history", {
|
|
|
1593
1593
|
// add class for current selection
|
|
1594
1594
|
],
|
|
1595
1595
|
onClick: () => u.value = v.value,
|
|
1596
|
-
style:
|
|
1596
|
+
style: T
|
|
1597
1597
|
},
|
|
1598
1598
|
v.label
|
|
1599
1599
|
);
|
|
@@ -1604,12 +1604,12 @@ const X = ie("pg-history", {
|
|
|
1604
1604
|
}
|
|
1605
1605
|
return () => f();
|
|
1606
1606
|
}
|
|
1607
|
-
}),
|
|
1607
|
+
}), Mr = C({
|
|
1608
1608
|
name: "PgDurationsExpansion",
|
|
1609
1609
|
setup(e, { slots: t, emit: s }) {
|
|
1610
|
-
const { lang: n } =
|
|
1611
|
-
options:
|
|
1612
|
-
tab:
|
|
1610
|
+
const { lang: n } = A(), r = Z(), { title: a } = S(r), { expanded: c } = ae({
|
|
1611
|
+
options: Wt,
|
|
1612
|
+
tab: Wt
|
|
1613
1613
|
}), d = y(() => {
|
|
1614
1614
|
var f;
|
|
1615
1615
|
return (f = n.value.pg) == null ? void 0 : f.tools.duration;
|
|
@@ -1621,13 +1621,13 @@ 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:
|
|
1624
|
+
icon: pn
|
|
1625
1625
|
};
|
|
1626
|
-
return h(me, f, () => h(
|
|
1626
|
+
return h(me, f, () => h(Sn));
|
|
1627
1627
|
}
|
|
1628
1628
|
return () => u();
|
|
1629
1629
|
}
|
|
1630
|
-
}), Nr =
|
|
1630
|
+
}), Nr = C({
|
|
1631
1631
|
name: "PgSkinsToolButton",
|
|
1632
1632
|
props: {
|
|
1633
1633
|
id: Number,
|
|
@@ -1637,17 +1637,17 @@ const X = ie("pg-history", {
|
|
|
1637
1637
|
},
|
|
1638
1638
|
emits: ["click", "update:modelValue"],
|
|
1639
1639
|
setup(e, { slots: t, emit: s }) {
|
|
1640
|
-
const n =
|
|
1640
|
+
const n = U(), r = L(), { selected: a, playSelected: c } = S(n), { loading: d } = S(r), u = y(() => n.getSrc(e.slug, e.uuid)), f = y(() => n.getAccessKey(e.slug)), g = y(() => n.propertyById(e.id, "name")), v = (x) => {
|
|
1641
1641
|
if (e.playMode) {
|
|
1642
|
-
n.playSelected =
|
|
1642
|
+
n.playSelected = x;
|
|
1643
1643
|
return;
|
|
1644
1644
|
}
|
|
1645
|
-
n.toggleSelected(
|
|
1646
|
-
},
|
|
1645
|
+
n.toggleSelected(x);
|
|
1646
|
+
}, T = y(
|
|
1647
1647
|
() => e.playMode ? c.value === e.id : a.value.includes(e.id)
|
|
1648
|
-
), _ = (
|
|
1648
|
+
), _ = (x) => r.block(x), D = y(() => r.hasAccess(f.value));
|
|
1649
1649
|
function P() {
|
|
1650
|
-
const
|
|
1650
|
+
const x = {
|
|
1651
1651
|
circle: !0,
|
|
1652
1652
|
size: e.playMode ? "sm" : "lg",
|
|
1653
1653
|
type: e.playMode ? "radio" : "checkbox",
|
|
@@ -1656,15 +1656,15 @@ const X = ie("pg-history", {
|
|
|
1656
1656
|
image: u.value,
|
|
1657
1657
|
onClick: () => v(e.id),
|
|
1658
1658
|
disable: d.value,
|
|
1659
|
-
selected:
|
|
1659
|
+
selected: T.value,
|
|
1660
1660
|
hasAccess: D.value,
|
|
1661
1661
|
onBlockAccess: _
|
|
1662
1662
|
};
|
|
1663
|
-
return h(Qe,
|
|
1663
|
+
return h(Qe, x);
|
|
1664
1664
|
}
|
|
1665
1665
|
return () => P();
|
|
1666
1666
|
}
|
|
1667
|
-
}), ss =
|
|
1667
|
+
}), ss = C({
|
|
1668
1668
|
name: "PgSkinsTool",
|
|
1669
1669
|
props: {
|
|
1670
1670
|
noWrap: Boolean,
|
|
@@ -1674,7 +1674,7 @@ const X = ie("pg-history", {
|
|
|
1674
1674
|
},
|
|
1675
1675
|
emits: ["click", "update:modelValue"],
|
|
1676
1676
|
setup(e, { slots: t, emit: s }) {
|
|
1677
|
-
const n =
|
|
1677
|
+
const n = U(), r = xe(), a = X(), { currentId: c } = S(a), d = y(() => {
|
|
1678
1678
|
if (e.playMode) {
|
|
1679
1679
|
const g = r.getModelById(c.value);
|
|
1680
1680
|
return n.getModelsByIds(g == null ? void 0 : g.skin_ids);
|
|
@@ -1693,26 +1693,26 @@ const X = ie("pg-history", {
|
|
|
1693
1693
|
"q-pa-xs": e.playMode
|
|
1694
1694
|
})).value, d.value.length;
|
|
1695
1695
|
const v = [];
|
|
1696
|
-
return d.value.forEach((
|
|
1696
|
+
return d.value.forEach((T) => {
|
|
1697
1697
|
const _ = {
|
|
1698
|
-
id:
|
|
1699
|
-
key:
|
|
1698
|
+
id: T.id,
|
|
1699
|
+
key: T.id,
|
|
1700
1700
|
playMode: e.playMode,
|
|
1701
|
-
slug:
|
|
1701
|
+
slug: T.slug,
|
|
1702
1702
|
class: "q-ma-xs"
|
|
1703
1703
|
};
|
|
1704
1704
|
u.value && (_.uuid = u.value), v.push(h(Nr, _));
|
|
1705
|
-
}), h(
|
|
1705
|
+
}), h(dn, {}, () => v);
|
|
1706
1706
|
}
|
|
1707
1707
|
return () => f();
|
|
1708
1708
|
}
|
|
1709
|
-
}), Or = "M9.49816 16.125C8.73787 16.125 8.11581 16.7437 8.11581 17.5V39.5C8.11581 40.2563 8.73787 40.875 9.49816 40.875H31.6158C32.3761 40.875 32.9982 40.2563 32.9982 39.5V17.5C32.9982 16.7437 32.3761 16.125 31.6158 16.125H9.49816ZM3.96875 17.5C3.96875 14.4664 6.44835 12 9.49816 12H31.6158C34.6656 12 37.1452 14.4664 37.1452 17.5V39.5C37.1452 42.5336 34.6656 45 31.6158 45H9.49816C6.44835 45 3.96875 42.5336 3.96875 39.5V17.5ZM47.6511 16.5375C48.014 16.2711 48.446 16.125 48.8952 16.125C50.0443 16.125 50.9688 17.0445 50.9688 18.1875V38.8125C50.9688 39.9555 50.0443 40.875 48.8952 40.875C48.446 40.875 48.014 40.7289 47.6511 40.4625L41.2923 35.7188V30.5625L46.8217 34.6875V22.3125L41.2923 26.4375V21.2812L47.6511 16.5375zM21.6892 29.2971C20.618 29.3471 19.7271 29.4371 19.0165 29.567C18.3059 29.687 17.7384 29.8469 17.3142 30.0469C16.9006 30.2468 16.6036 30.4767 16.4233 30.7366C16.2536 30.9866 16.1688 31.2615 16.1688 31.5614C16.1688 32.1612 16.3438 32.5861 16.6937 32.836C17.0544 33.0859 17.5528 33.2109 18.1892 33.2109C18.921 33.2109 19.5521 33.0909 20.0824 32.851C20.6233 32.6011 21.1589 32.2162 21.6892 31.6963V29.2971ZM12.7483 22.4442C13.7134 21.6245 14.7794 21.0147 15.946 20.6148C17.1127 20.2049 18.3748 20 19.7324 20C20.7081 20 21.5778 20.15 22.3415 20.4499C23.1157 20.7498 23.768 21.1696 24.2983 21.7095C24.8392 22.2393 25.2528 22.8741 25.5392 23.6139C25.8256 24.3536 25.9687 25.1634 25.9687 26.0431V35.7601H23.9642C23.5506 35.7601 23.2324 35.7051 23.0097 35.5951C22.7975 35.4852 22.6225 35.2552 22.4847 34.9053L22.1347 33.9157C21.721 34.2555 21.318 34.5555 20.9256 34.8154C20.5437 35.0753 20.146 35.2952 19.7324 35.4752C19.3188 35.6451 18.8733 35.7751 18.396 35.865C17.9294 35.955 17.4044 36 16.821 36C16.0998 36 15.4422 35.91 14.8483 35.7301C14.2544 35.5501 13.74 35.2852 13.3051 34.9353C12.8809 34.5754 12.5521 34.1306 12.3187 33.6007C12.0854 33.0709 11.9688 32.4611 11.9688 31.7713C11.9688 31.2015 12.1225 30.6317 12.4301 30.0619C12.7377 29.492 13.2627 28.9772 14.0051 28.5173C14.7581 28.0475 15.7551 27.6626 16.996 27.3627C18.2475 27.0528 19.8119 26.8778 21.6892 26.8379V26.0431C21.6892 25.0734 21.4718 24.3636 21.0369 23.9138C20.6021 23.4539 19.9763 23.224 19.1597 23.224C18.5551 23.224 18.0513 23.294 17.6483 23.4339C17.2453 23.5639 16.89 23.7088 16.5824 23.8688C16.2854 24.0187 16.0044 24.1637 15.7392 24.3037C15.4741 24.4336 15.1665 24.4986 14.8165 24.4986C14.5089 24.4986 14.2491 24.4286 14.0369 24.2887C13.8354 24.1387 13.6657 23.9638 13.5278 23.7638L12.7483 22.4442Z|0 0 56 56", kr = "M40.3077 8.63218C39.2846 8.63218 38.4615 7.8225 38.4615 6.81609C38.4615 5.80967 39.2846 5 40.3077 5H50.1538C51.1769 5 52 5.80967 52 6.81609V16.5019C52 17.5083 51.1769 18.318 50.1538 18.318C49.1308 18.318 48.3077 17.5083 48.3077 16.5019V11.1974L42.5462 16.8651C44.6 19.2033 45.8462 22.2453 45.8462 25.5823C45.8462 32.9375 39.7846 38.9003 32.3077 38.9003C29.5846 38.9003 27.0462 38.1058 24.9231 36.7437C23.2846 37.7955 21.4077 38.5068 19.3769 38.7717C19.3769 38.8095 19.3846 38.8549 19.3846 38.8927V42.5249H23.0769C24.1 42.5249 24.9231 43.3346 24.9231 44.341C24.9231 45.3474 24.1 46.1571 23.0769 46.1571H19.3846V49.1839C19.3846 50.1903 18.5615 51 17.5385 51C16.5154 51 15.6923 50.1903 15.6923 49.1839V46.1571H12C10.9769 46.1571 10.1538 45.3474 10.1538 44.341C10.1538 43.3346 10.9769 42.5249 12 42.5249H15.6923V38.8927C15.6923 38.8549 15.6923 38.8095 15.7 38.7717C9.09231 37.8863 4 32.317 4 25.5748C4 18.2196 10.0615 12.2568 17.5385 12.2568C20.2615 12.2568 22.8 13.0513 24.9231 14.4134C27.0462 13.0513 29.5846 12.2568 32.3077 12.2568C35.0615 12.2568 37.6308 13.0665 39.7692 14.4588L45.7 8.63218H40.3077ZM22 16.9483C20.6615 16.2749 19.1462 15.8965 17.5385 15.8965C12.1 15.8965 7.69231 20.2324 7.69231 25.5823C7.69231 30.9322 12.1 35.2681 17.5385 35.2681C19.1462 35.2681 20.6615 34.8898 22 34.2163C19.9846 31.8932 18.7692 28.874 18.7692 25.5823C18.7692 22.2907 19.9846 19.2714 22 16.9483ZM24.9231 31.9916C26.4538 30.2815 27.3846 28.0416 27.3846 25.5823C27.3846 23.123 26.4538 20.8832 24.9231 19.1731C23.3923 20.8832 22.4615 23.123 22.4615 25.5823C22.4615 28.0416 23.3923 30.2815 24.9231 31.9916ZM27.8462 34.2239C29.1846 34.8974 30.7 35.2757 32.3077 35.2757C37.7462 35.2757 42.1538 30.9398 42.1538 25.5899C42.1538 20.24 37.7462 15.8965 32.3077 15.8965C30.7 15.8965 29.1846 16.2749 27.8462 16.9483C29.8615 19.2714 31.0769 22.2907 31.0769 25.5823C31.0769 28.874 29.8615 31.8932 27.8462 34.2163V34.2239Z|0 0 56 56", Lr = "M38.35 22.875C38.35 25.65 37.2719 28.1648 35.5109 30.0365C33.98 31.6553 32.2838 33.9389 31.68 36.75H24.32C23.7162 33.9316 22.02 31.6553 20.4891 30.0365C18.7281 28.1648 17.65 25.65 17.65 22.875C17.65 17.1299 22.2859 12.4688 28 12.4688C33.7141 12.4688 38.35 17.1299 38.35 22.875ZM34.9 38.8963C34.9 36.4176 36.3159 34.2207 38.0122 32.4213C40.3625 29.9354 41.8 26.575 41.8 22.875C41.8 15.2148 35.6187 9 28 9C20.3812 9 14.2 15.2148 14.2 22.875C14.2 26.575 15.6375 29.9354 17.9878 32.4213C19.6841 34.2207 21.1 36.4176 21.1 38.8963V40.2188C21.1 43.4129 23.6731 46 26.85 46H29.15C32.3269 46 34.9 43.4129 34.9 40.2188V38.8963ZM27.425 19.4062C28.3809 19.4062 29.15 18.633 29.15 17.6719C29.15 16.7107 28.3809 15.9375 27.425 15.9375C23.9319 15.9375 21.1 18.7848 21.1 22.2969C21.1 23.258 21.8691 24.0312 22.825 24.0312C23.7809 24.0312 24.55 23.258 24.55 22.2969C24.55 20.6998 25.8366 19.4062 27.425 19.4062ZM9.21906 10.915C8.36375 10.4887 7.32875 10.8355 6.90469 11.6883C6.48062 12.541 6.82562 13.5889 7.68094 14.0225L9.98094 15.1787C10.8363 15.6051 11.8712 15.2582 12.2953 14.4055C12.7194 13.5527 12.3744 12.5049 11.5262 12.0785L9.22625 10.9223L9.21906 10.915ZM48.3191 14.0152C49.1744 13.5889 49.5194 12.5482 49.0881 11.6883C48.6569 10.8283 47.6291 10.4814 46.7738 10.915L44.4738 12.0713C43.6184 12.4977 43.2734 13.5383 43.7047 14.3982C44.1359 15.2582 45.1637 15.6051 46.0191 15.1715L48.3191 14.0152ZM6.725 21.1406C5.76906 21.1406 5 21.9139 5 22.875C5 23.8361 5.76906 24.6094 6.725 24.6094H9.025C9.98094 24.6094 10.75 23.8361 10.75 22.875C10.75 21.9139 9.98094 21.1406 9.025 21.1406H6.725ZM46.975 21.1406C46.0191 21.1406 45.25 21.9139 45.25 22.875C45.25 23.8361 46.0191 24.6094 46.975 24.6094H49.275C50.2309 24.6094 51 23.8361 51 22.875C51 21.9139 50.2309 21.1406 49.275 21.1406H46.975ZM11.5191 33.6787C12.3744 33.2523 12.7194 32.2117 12.2881 31.3518C11.8569 30.4918 10.8291 30.1449 9.97375 30.5785L7.67375 31.7348C6.81844 32.1611 6.47344 33.2018 6.90469 34.0617C7.33594 34.9217 8.36375 35.2686 9.21906 34.835L11.5191 33.6787ZM46.0191 30.5785C45.1637 30.1521 44.1287 30.499 43.7047 31.3518C43.2806 32.2045 43.6256 33.2523 44.4738 33.6787L46.7738 34.835C47.6291 35.2613 48.6641 34.9145 49.0881 34.0617C49.5122 33.209 49.1672 32.1611 48.3191 31.7348L46.0191 30.5785Z|0 0 56 56", Vr = "M9.49816 16.125C8.73787 16.125 8.11581 16.7437 8.11581 17.5V39.5C8.11581 40.2563 8.73787 40.875 9.49816 40.875H31.6158C32.3761 40.875 32.9982 40.2563 32.9982 39.5V17.5C32.9982 16.7437 32.3761 16.125 31.6158 16.125H9.49816ZM3.96875 17.5C3.96875 14.4664 6.44835 12 9.49816 12H31.6158C34.6656 12 37.1452 14.4664 37.1452 17.5V39.5C37.1452 42.5336 34.6656 45 31.6158 45H9.49816C6.44835 45 3.96875 42.5336 3.96875 39.5V17.5ZM47.6511 16.5375C48.014 16.2711 48.446 16.125 48.8952 16.125C50.0443 16.125 50.9688 17.0445 50.9688 18.1875V38.8125C50.9688 39.9555 50.0443 40.875 48.8952 40.875C48.446 40.875 48.014 40.7289 47.6511 40.4625L41.2923 35.7188V30.5625L46.8217 34.6875V22.3125L41.2923 26.4375V21.2812L47.6511 16.5375zM20.9919 20C22.1874 20 23.2747 20.1858 24.2538 20.5574C25.2328 20.9291 26.0728 21.4614 26.7736 22.1544C27.4744 22.8374 28.0155 23.6711 28.3968 24.6554C28.7781 25.6397 28.9688 26.7495 28.9688 27.9849C28.9688 29.2203 28.7781 30.3352 28.3968 31.3296C28.0155 32.3139 27.4744 33.1525 26.7736 33.8456C26.0728 34.5386 25.2328 35.0709 24.2538 35.4426C23.2747 35.8142 22.1874 36 20.9919 36C19.7861 36 18.6886 35.8142 17.6992 35.4426C16.7201 35.0709 15.8802 34.5386 15.1794 33.8456C14.4786 33.1525 13.9324 32.3139 13.5407 31.3296C13.1594 30.3352 12.9688 29.2203 12.9688 27.9849C12.9688 26.7495 13.1594 25.6397 13.5407 24.6554C13.9324 23.6711 14.4786 22.8374 15.1794 22.1544C15.8802 21.4614 16.7201 20.9291 17.6992 20.5574C18.6886 20.1858 19.7861 20 20.9919 20ZM20.9919 32.8814C22.208 32.8814 23.1098 32.4746 23.6973 31.661C24.2847 30.8374 24.5784 29.6171 24.5784 28C24.5784 26.393 24.2847 25.1827 23.6973 24.3691C23.1098 23.5455 22.208 23.1337 20.9919 23.1337C19.7449 23.1337 18.8277 23.5455 18.2402 24.3691C17.6528 25.1827 17.3591 26.393 17.3591 28C17.3591 29.6171 17.6528 30.8374 18.2402 31.661C18.8277 32.4746 19.7449 32.8814 20.9919 32.8814Z|0 0 56 56", Ur = "M17.2632 11.643C17.8471 11.1836 18.5626 10.9375 19.3028 10.9375H19.6811C20.5694 14.7027 23.9578 17.5 28.0041 17.5C32.0505 17.5 35.4389 14.7027 36.3271 10.9375H36.7054C37.4456 10.9375 38.1611 11.1836 38.745 11.643L48.4003 19.2473L44.4527 25.3832L40.1514 22.9961C39.5428 22.6598 38.7944 22.668 38.194 23.0207C37.5936 23.3734 37.2153 24.0215 37.2153 24.7188V44.4062C37.2153 44.7672 36.9192 45.0625 36.5574 45.0625H19.4509C19.089 45.0625 18.7929 44.7672 18.7929 44.4062V24.7188C18.7929 24.0215 18.4228 23.3734 17.8224 23.0207C17.2221 22.668 16.4737 22.6598 15.8651 22.9961L11.5555 25.3832L7.60788 19.2473L17.2632 11.643ZM19.3028 7C17.6744 7 16.0953 7.54961 14.8206 8.55039L3.75069 17.2703C2.95294 17.902 2.76378 19.0258 3.3148 19.8789L9.23629 29.0664C9.79554 29.9359 10.9469 30.223 11.8516 29.7227L14.8453 28.0656V44.4062C14.8453 46.941 16.9096 49 19.4509 49H36.5574C39.0987 49 41.163 46.941 41.163 44.4062V28.0656L44.1484 29.7227C45.0613 30.223 46.2045 29.9359 46.7637 29.0664L52.6852 19.8789C53.2362 19.0258 53.0471 17.8938 52.2493 17.2703L41.1876 8.55039C39.9129 7.54961 38.3338 7 36.7054 7H19.3028ZM23.8426 10.9375H32.1656C31.4254 12.4879 29.8381 13.5625 28.0041 13.5625C26.1701 13.5625 24.5828 12.4879 23.8426 10.9375Z|0 0 56 56", Rr = "M14.0004 46C12.8959 45.9999 12.0004 45.1045 12.0004 44L12.0004 12C12.0004 10.8955 12.8959 10.0001 14.0004 10C15.105 10 16.0004 10.8954 16.0004 12L16.0004 44C16.0004 45.1046 15.105 46 14.0004 46zM43.4145 44.9707C42.6334 45.7515 41.3673 45.7517 40.5863 44.9707L23.6156 28L40.5863 11.0293C41.3673 10.2486 42.6334 10.2487 43.4145 11.0293C44.1955 11.8103 44.1955 13.0774 43.4145 13.8584L29.2738 28.001L43.4145 42.1426C44.1955 42.9236 44.1955 44.1897 43.4145 44.9707Z|0 0 56 56", Br = "M41.9998 10C43.1043 10.0001 43.9998 10.8955 43.9998 12V44C43.9998 45.1045 43.1043 45.9999 41.9998 46C40.8953 46 39.9998 45.1046 39.9998 44V12C39.9998 10.8954 40.8953 10 41.9998 10zM12.5858 11.0293C13.3668 10.2485 14.6329 10.2483 15.4139 11.0293L32.3846 28L15.4139 44.9707C14.633 45.7514 13.3668 45.7513 12.5858 44.9707C11.8047 44.1897 11.8047 42.9226 12.5858 42.1416L26.7264 27.999L12.5858 13.8574C11.8047 13.0764 11.8047 11.8103 12.5858 11.0293Z|0 0 56 56", Sn = T({
|
|
1709
|
+
}), Or = "M9.49816 16.125C8.73787 16.125 8.11581 16.7437 8.11581 17.5V39.5C8.11581 40.2563 8.73787 40.875 9.49816 40.875H31.6158C32.3761 40.875 32.9982 40.2563 32.9982 39.5V17.5C32.9982 16.7437 32.3761 16.125 31.6158 16.125H9.49816ZM3.96875 17.5C3.96875 14.4664 6.44835 12 9.49816 12H31.6158C34.6656 12 37.1452 14.4664 37.1452 17.5V39.5C37.1452 42.5336 34.6656 45 31.6158 45H9.49816C6.44835 45 3.96875 42.5336 3.96875 39.5V17.5ZM47.6511 16.5375C48.014 16.2711 48.446 16.125 48.8952 16.125C50.0443 16.125 50.9688 17.0445 50.9688 18.1875V38.8125C50.9688 39.9555 50.0443 40.875 48.8952 40.875C48.446 40.875 48.014 40.7289 47.6511 40.4625L41.2923 35.7188V30.5625L46.8217 34.6875V22.3125L41.2923 26.4375V21.2812L47.6511 16.5375zM21.6892 29.2971C20.618 29.3471 19.7271 29.4371 19.0165 29.567C18.3059 29.687 17.7384 29.8469 17.3142 30.0469C16.9006 30.2468 16.6036 30.4767 16.4233 30.7366C16.2536 30.9866 16.1688 31.2615 16.1688 31.5614C16.1688 32.1612 16.3438 32.5861 16.6937 32.836C17.0544 33.0859 17.5528 33.2109 18.1892 33.2109C18.921 33.2109 19.5521 33.0909 20.0824 32.851C20.6233 32.6011 21.1589 32.2162 21.6892 31.6963V29.2971ZM12.7483 22.4442C13.7134 21.6245 14.7794 21.0147 15.946 20.6148C17.1127 20.2049 18.3748 20 19.7324 20C20.7081 20 21.5778 20.15 22.3415 20.4499C23.1157 20.7498 23.768 21.1696 24.2983 21.7095C24.8392 22.2393 25.2528 22.8741 25.5392 23.6139C25.8256 24.3536 25.9687 25.1634 25.9687 26.0431V35.7601H23.9642C23.5506 35.7601 23.2324 35.7051 23.0097 35.5951C22.7975 35.4852 22.6225 35.2552 22.4847 34.9053L22.1347 33.9157C21.721 34.2555 21.318 34.5555 20.9256 34.8154C20.5437 35.0753 20.146 35.2952 19.7324 35.4752C19.3188 35.6451 18.8733 35.7751 18.396 35.865C17.9294 35.955 17.4044 36 16.821 36C16.0998 36 15.4422 35.91 14.8483 35.7301C14.2544 35.5501 13.74 35.2852 13.3051 34.9353C12.8809 34.5754 12.5521 34.1306 12.3187 33.6007C12.0854 33.0709 11.9688 32.4611 11.9688 31.7713C11.9688 31.2015 12.1225 30.6317 12.4301 30.0619C12.7377 29.492 13.2627 28.9772 14.0051 28.5173C14.7581 28.0475 15.7551 27.6626 16.996 27.3627C18.2475 27.0528 19.8119 26.8778 21.6892 26.8379V26.0431C21.6892 25.0734 21.4718 24.3636 21.0369 23.9138C20.6021 23.4539 19.9763 23.224 19.1597 23.224C18.5551 23.224 18.0513 23.294 17.6483 23.4339C17.2453 23.5639 16.89 23.7088 16.5824 23.8688C16.2854 24.0187 16.0044 24.1637 15.7392 24.3037C15.4741 24.4336 15.1665 24.4986 14.8165 24.4986C14.5089 24.4986 14.2491 24.4286 14.0369 24.2887C13.8354 24.1387 13.6657 23.9638 13.5278 23.7638L12.7483 22.4442Z|0 0 56 56", kr = "M40.3077 8.63218C39.2846 8.63218 38.4615 7.8225 38.4615 6.81609C38.4615 5.80967 39.2846 5 40.3077 5H50.1538C51.1769 5 52 5.80967 52 6.81609V16.5019C52 17.5083 51.1769 18.318 50.1538 18.318C49.1308 18.318 48.3077 17.5083 48.3077 16.5019V11.1974L42.5462 16.8651C44.6 19.2033 45.8462 22.2453 45.8462 25.5823C45.8462 32.9375 39.7846 38.9003 32.3077 38.9003C29.5846 38.9003 27.0462 38.1058 24.9231 36.7437C23.2846 37.7955 21.4077 38.5068 19.3769 38.7717C19.3769 38.8095 19.3846 38.8549 19.3846 38.8927V42.5249H23.0769C24.1 42.5249 24.9231 43.3346 24.9231 44.341C24.9231 45.3474 24.1 46.1571 23.0769 46.1571H19.3846V49.1839C19.3846 50.1903 18.5615 51 17.5385 51C16.5154 51 15.6923 50.1903 15.6923 49.1839V46.1571H12C10.9769 46.1571 10.1538 45.3474 10.1538 44.341C10.1538 43.3346 10.9769 42.5249 12 42.5249H15.6923V38.8927C15.6923 38.8549 15.6923 38.8095 15.7 38.7717C9.09231 37.8863 4 32.317 4 25.5748C4 18.2196 10.0615 12.2568 17.5385 12.2568C20.2615 12.2568 22.8 13.0513 24.9231 14.4134C27.0462 13.0513 29.5846 12.2568 32.3077 12.2568C35.0615 12.2568 37.6308 13.0665 39.7692 14.4588L45.7 8.63218H40.3077ZM22 16.9483C20.6615 16.2749 19.1462 15.8965 17.5385 15.8965C12.1 15.8965 7.69231 20.2324 7.69231 25.5823C7.69231 30.9322 12.1 35.2681 17.5385 35.2681C19.1462 35.2681 20.6615 34.8898 22 34.2163C19.9846 31.8932 18.7692 28.874 18.7692 25.5823C18.7692 22.2907 19.9846 19.2714 22 16.9483ZM24.9231 31.9916C26.4538 30.2815 27.3846 28.0416 27.3846 25.5823C27.3846 23.123 26.4538 20.8832 24.9231 19.1731C23.3923 20.8832 22.4615 23.123 22.4615 25.5823C22.4615 28.0416 23.3923 30.2815 24.9231 31.9916ZM27.8462 34.2239C29.1846 34.8974 30.7 35.2757 32.3077 35.2757C37.7462 35.2757 42.1538 30.9398 42.1538 25.5899C42.1538 20.24 37.7462 15.8965 32.3077 15.8965C30.7 15.8965 29.1846 16.2749 27.8462 16.9483C29.8615 19.2714 31.0769 22.2907 31.0769 25.5823C31.0769 28.874 29.8615 31.8932 27.8462 34.2163V34.2239Z|0 0 56 56", Lr = "M38.35 22.875C38.35 25.65 37.2719 28.1648 35.5109 30.0365C33.98 31.6553 32.2838 33.9389 31.68 36.75H24.32C23.7162 33.9316 22.02 31.6553 20.4891 30.0365C18.7281 28.1648 17.65 25.65 17.65 22.875C17.65 17.1299 22.2859 12.4688 28 12.4688C33.7141 12.4688 38.35 17.1299 38.35 22.875ZM34.9 38.8963C34.9 36.4176 36.3159 34.2207 38.0122 32.4213C40.3625 29.9354 41.8 26.575 41.8 22.875C41.8 15.2148 35.6187 9 28 9C20.3812 9 14.2 15.2148 14.2 22.875C14.2 26.575 15.6375 29.9354 17.9878 32.4213C19.6841 34.2207 21.1 36.4176 21.1 38.8963V40.2188C21.1 43.4129 23.6731 46 26.85 46H29.15C32.3269 46 34.9 43.4129 34.9 40.2188V38.8963ZM27.425 19.4062C28.3809 19.4062 29.15 18.633 29.15 17.6719C29.15 16.7107 28.3809 15.9375 27.425 15.9375C23.9319 15.9375 21.1 18.7848 21.1 22.2969C21.1 23.258 21.8691 24.0312 22.825 24.0312C23.7809 24.0312 24.55 23.258 24.55 22.2969C24.55 20.6998 25.8366 19.4062 27.425 19.4062ZM9.21906 10.915C8.36375 10.4887 7.32875 10.8355 6.90469 11.6883C6.48062 12.541 6.82562 13.5889 7.68094 14.0225L9.98094 15.1787C10.8363 15.6051 11.8712 15.2582 12.2953 14.4055C12.7194 13.5527 12.3744 12.5049 11.5262 12.0785L9.22625 10.9223L9.21906 10.915ZM48.3191 14.0152C49.1744 13.5889 49.5194 12.5482 49.0881 11.6883C48.6569 10.8283 47.6291 10.4814 46.7738 10.915L44.4738 12.0713C43.6184 12.4977 43.2734 13.5383 43.7047 14.3982C44.1359 15.2582 45.1637 15.6051 46.0191 15.1715L48.3191 14.0152ZM6.725 21.1406C5.76906 21.1406 5 21.9139 5 22.875C5 23.8361 5.76906 24.6094 6.725 24.6094H9.025C9.98094 24.6094 10.75 23.8361 10.75 22.875C10.75 21.9139 9.98094 21.1406 9.025 21.1406H6.725ZM46.975 21.1406C46.0191 21.1406 45.25 21.9139 45.25 22.875C45.25 23.8361 46.0191 24.6094 46.975 24.6094H49.275C50.2309 24.6094 51 23.8361 51 22.875C51 21.9139 50.2309 21.1406 49.275 21.1406H46.975ZM11.5191 33.6787C12.3744 33.2523 12.7194 32.2117 12.2881 31.3518C11.8569 30.4918 10.8291 30.1449 9.97375 30.5785L7.67375 31.7348C6.81844 32.1611 6.47344 33.2018 6.90469 34.0617C7.33594 34.9217 8.36375 35.2686 9.21906 34.835L11.5191 33.6787ZM46.0191 30.5785C45.1637 30.1521 44.1287 30.499 43.7047 31.3518C43.2806 32.2045 43.6256 33.2523 44.4738 33.6787L46.7738 34.835C47.6291 35.2613 48.6641 34.9145 49.0881 34.0617C49.5122 33.209 49.1672 32.1611 48.3191 31.7348L46.0191 30.5785Z|0 0 56 56", Vr = "M9.49816 16.125C8.73787 16.125 8.11581 16.7437 8.11581 17.5V39.5C8.11581 40.2563 8.73787 40.875 9.49816 40.875H31.6158C32.3761 40.875 32.9982 40.2563 32.9982 39.5V17.5C32.9982 16.7437 32.3761 16.125 31.6158 16.125H9.49816ZM3.96875 17.5C3.96875 14.4664 6.44835 12 9.49816 12H31.6158C34.6656 12 37.1452 14.4664 37.1452 17.5V39.5C37.1452 42.5336 34.6656 45 31.6158 45H9.49816C6.44835 45 3.96875 42.5336 3.96875 39.5V17.5ZM47.6511 16.5375C48.014 16.2711 48.446 16.125 48.8952 16.125C50.0443 16.125 50.9688 17.0445 50.9688 18.1875V38.8125C50.9688 39.9555 50.0443 40.875 48.8952 40.875C48.446 40.875 48.014 40.7289 47.6511 40.4625L41.2923 35.7188V30.5625L46.8217 34.6875V22.3125L41.2923 26.4375V21.2812L47.6511 16.5375zM20.9919 20C22.1874 20 23.2747 20.1858 24.2538 20.5574C25.2328 20.9291 26.0728 21.4614 26.7736 22.1544C27.4744 22.8374 28.0155 23.6711 28.3968 24.6554C28.7781 25.6397 28.9688 26.7495 28.9688 27.9849C28.9688 29.2203 28.7781 30.3352 28.3968 31.3296C28.0155 32.3139 27.4744 33.1525 26.7736 33.8456C26.0728 34.5386 25.2328 35.0709 24.2538 35.4426C23.2747 35.8142 22.1874 36 20.9919 36C19.7861 36 18.6886 35.8142 17.6992 35.4426C16.7201 35.0709 15.8802 34.5386 15.1794 33.8456C14.4786 33.1525 13.9324 32.3139 13.5407 31.3296C13.1594 30.3352 12.9688 29.2203 12.9688 27.9849C12.9688 26.7495 13.1594 25.6397 13.5407 24.6554C13.9324 23.6711 14.4786 22.8374 15.1794 22.1544C15.8802 21.4614 16.7201 20.9291 17.6992 20.5574C18.6886 20.1858 19.7861 20 20.9919 20ZM20.9919 32.8814C22.208 32.8814 23.1098 32.4746 23.6973 31.661C24.2847 30.8374 24.5784 29.6171 24.5784 28C24.5784 26.393 24.2847 25.1827 23.6973 24.3691C23.1098 23.5455 22.208 23.1337 20.9919 23.1337C19.7449 23.1337 18.8277 23.5455 18.2402 24.3691C17.6528 25.1827 17.3591 26.393 17.3591 28C17.3591 29.6171 17.6528 30.8374 18.2402 31.661C18.8277 32.4746 19.7449 32.8814 20.9919 32.8814Z|0 0 56 56", Ur = "M17.2632 11.643C17.8471 11.1836 18.5626 10.9375 19.3028 10.9375H19.6811C20.5694 14.7027 23.9578 17.5 28.0041 17.5C32.0505 17.5 35.4389 14.7027 36.3271 10.9375H36.7054C37.4456 10.9375 38.1611 11.1836 38.745 11.643L48.4003 19.2473L44.4527 25.3832L40.1514 22.9961C39.5428 22.6598 38.7944 22.668 38.194 23.0207C37.5936 23.3734 37.2153 24.0215 37.2153 24.7188V44.4062C37.2153 44.7672 36.9192 45.0625 36.5574 45.0625H19.4509C19.089 45.0625 18.7929 44.7672 18.7929 44.4062V24.7188C18.7929 24.0215 18.4228 23.3734 17.8224 23.0207C17.2221 22.668 16.4737 22.6598 15.8651 22.9961L11.5555 25.3832L7.60788 19.2473L17.2632 11.643ZM19.3028 7C17.6744 7 16.0953 7.54961 14.8206 8.55039L3.75069 17.2703C2.95294 17.902 2.76378 19.0258 3.3148 19.8789L9.23629 29.0664C9.79554 29.9359 10.9469 30.223 11.8516 29.7227L14.8453 28.0656V44.4062C14.8453 46.941 16.9096 49 19.4509 49H36.5574C39.0987 49 41.163 46.941 41.163 44.4062V28.0656L44.1484 29.7227C45.0613 30.223 46.2045 29.9359 46.7637 29.0664L52.6852 19.8789C53.2362 19.0258 53.0471 17.8938 52.2493 17.2703L41.1876 8.55039C39.9129 7.54961 38.3338 7 36.7054 7H19.3028ZM23.8426 10.9375H32.1656C31.4254 12.4879 29.8381 13.5625 28.0041 13.5625C26.1701 13.5625 24.5828 12.4879 23.8426 10.9375Z|0 0 56 56", Rr = "M14.0004 46C12.8959 45.9999 12.0004 45.1045 12.0004 44L12.0004 12C12.0004 10.8955 12.8959 10.0001 14.0004 10C15.105 10 16.0004 10.8954 16.0004 12L16.0004 44C16.0004 45.1046 15.105 46 14.0004 46zM43.4145 44.9707C42.6334 45.7515 41.3673 45.7517 40.5863 44.9707L23.6156 28L40.5863 11.0293C41.3673 10.2486 42.6334 10.2487 43.4145 11.0293C44.1955 11.8103 44.1955 13.0774 43.4145 13.8584L29.2738 28.001L43.4145 42.1426C44.1955 42.9236 44.1955 44.1897 43.4145 44.9707Z|0 0 56 56", Br = "M41.9998 10C43.1043 10.0001 43.9998 10.8955 43.9998 12V44C43.9998 45.1045 43.1043 45.9999 41.9998 46C40.8953 46 39.9998 45.1046 39.9998 44V12C39.9998 10.8954 40.8953 10 41.9998 10zM12.5858 11.0293C13.3668 10.2485 14.6329 10.2483 15.4139 11.0293L32.3846 28L15.4139 44.9707C14.633 45.7514 13.3668 45.7513 12.5858 44.9707C11.8047 44.1897 11.8047 42.9226 12.5858 42.1416L26.7264 27.999L12.5858 13.8574C11.8047 13.0764 11.8047 11.8103 12.5858 11.0293Z|0 0 56 56", Tn = C({
|
|
1710
1710
|
name: "PgSkinsExpansion",
|
|
1711
1711
|
props: { playMode: Boolean },
|
|
1712
1712
|
setup(e, { slots: t, emit: s }) {
|
|
1713
|
-
const { lang: n } =
|
|
1714
|
-
options:
|
|
1715
|
-
tab:
|
|
1713
|
+
const { lang: n } = A(), r = U(), { expanded: a } = ae({
|
|
1714
|
+
options: Yt,
|
|
1715
|
+
tab: Yt,
|
|
1716
1716
|
playMode: e.playMode
|
|
1717
1717
|
}), c = y(() => {
|
|
1718
1718
|
var u;
|
|
@@ -1735,14 +1735,14 @@ const X = ie("pg-history", {
|
|
|
1735
1735
|
}
|
|
1736
1736
|
return () => d();
|
|
1737
1737
|
}
|
|
1738
|
-
}), $r =
|
|
1738
|
+
}), $r = C({
|
|
1739
1739
|
name: "PgEffectsToolButton",
|
|
1740
1740
|
props: {
|
|
1741
1741
|
id: { type: Number, required: !0 },
|
|
1742
1742
|
playMode: Boolean
|
|
1743
1743
|
},
|
|
1744
1744
|
setup(e, { slots: t, emit: s }) {
|
|
1745
|
-
const n =
|
|
1745
|
+
const n = B(), r = L(), { loading: a } = S(r), c = () => n.setSelected(e.id, e.playMode), d = y(() => e.playMode ? n.playSelected : n.selected);
|
|
1746
1746
|
function u() {
|
|
1747
1747
|
const f = {
|
|
1748
1748
|
class: "pg-effects-tool-button",
|
|
@@ -1758,7 +1758,7 @@ const X = ie("pg-history", {
|
|
|
1758
1758
|
}
|
|
1759
1759
|
return () => u();
|
|
1760
1760
|
}
|
|
1761
|
-
}),
|
|
1761
|
+
}), Cn = C({
|
|
1762
1762
|
name: "PgEffectsTool",
|
|
1763
1763
|
props: {
|
|
1764
1764
|
modelValue: { type: Number, default: 0 },
|
|
@@ -1768,7 +1768,7 @@ const X = ie("pg-history", {
|
|
|
1768
1768
|
},
|
|
1769
1769
|
emits: ["click", "update:modelValue"],
|
|
1770
1770
|
setup(e, { slots: t, emit: s }) {
|
|
1771
|
-
const n =
|
|
1771
|
+
const n = B(), { collection: r } = S(n);
|
|
1772
1772
|
function a() {
|
|
1773
1773
|
const d = {
|
|
1774
1774
|
class: y(() => ({
|
|
@@ -1783,17 +1783,17 @@ const X = ie("pg-history", {
|
|
|
1783
1783
|
class: "q-ma-xs"
|
|
1784
1784
|
})
|
|
1785
1785
|
);
|
|
1786
|
-
}), h(
|
|
1786
|
+
}), h(dn, d, () => u);
|
|
1787
1787
|
}
|
|
1788
1788
|
return () => a();
|
|
1789
1789
|
}
|
|
1790
|
-
}),
|
|
1790
|
+
}), _n = C({
|
|
1791
1791
|
name: "PgEffectsExpansion",
|
|
1792
1792
|
props: { playMode: Boolean },
|
|
1793
1793
|
setup(e, { slots: t, emit: s }) {
|
|
1794
|
-
const { lang: n } =
|
|
1795
|
-
options:
|
|
1796
|
-
tab:
|
|
1794
|
+
const { lang: n } = A(), r = B(), { expanded: a } = ae({
|
|
1795
|
+
options: Tt,
|
|
1796
|
+
tab: Tt,
|
|
1797
1797
|
playMode: e.playMode
|
|
1798
1798
|
}), c = y(() => {
|
|
1799
1799
|
var u;
|
|
@@ -1808,11 +1808,11 @@ 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:
|
|
1811
|
+
icon: fn
|
|
1812
1812
|
}, g = {
|
|
1813
1813
|
playMode: e.playMode
|
|
1814
1814
|
};
|
|
1815
|
-
return h(me, f, () => h(
|
|
1815
|
+
return h(me, f, () => h(Cn, g));
|
|
1816
1816
|
}
|
|
1817
1817
|
return () => d();
|
|
1818
1818
|
}
|
|
@@ -1822,7 +1822,7 @@ const X = ie("pg-history", {
|
|
|
1822
1822
|
id: Number
|
|
1823
1823
|
},
|
|
1824
1824
|
setup(e) {
|
|
1825
|
-
const t = e, s = pe(), n =
|
|
1825
|
+
const t = e, s = pe(), n = L(), { selected: r } = S(s), { loading: a } = S(n), c = y(() => r.value.includes(t.id)), d = y(() => s.propertyById(t.id, "name")), u = y(() => s.src(t.id)), f = y(() => {
|
|
1826
1826
|
switch (t.id) {
|
|
1827
1827
|
case 2:
|
|
1828
1828
|
return "cad";
|
|
@@ -1831,37 +1831,37 @@ const X = ie("pg-history", {
|
|
|
1831
1831
|
default:
|
|
1832
1832
|
return "can";
|
|
1833
1833
|
}
|
|
1834
|
-
}), g = (_) => n.block(_), v = y(() => n.hasAccess(f.value)),
|
|
1835
|
-
return (_, D) => (
|
|
1834
|
+
}), g = (_) => n.block(_), v = y(() => n.hasAccess(f.value)), T = (_) => s.toggleSelected(_);
|
|
1835
|
+
return (_, D) => (k(), bt(M(Qe), {
|
|
1836
1836
|
size: "lg",
|
|
1837
1837
|
type: "checkbox",
|
|
1838
1838
|
access: f.value,
|
|
1839
|
-
onClick: D[0] || (D[0] = (P) =>
|
|
1839
|
+
onClick: D[0] || (D[0] = (P) => T(e.id)),
|
|
1840
1840
|
image: u.value,
|
|
1841
1841
|
label: d.value,
|
|
1842
1842
|
selected: c.value,
|
|
1843
|
-
disable:
|
|
1843
|
+
disable: M(a),
|
|
1844
1844
|
"has-access": v.value,
|
|
1845
1845
|
onBlockAccess: g
|
|
1846
1846
|
}, null, 8, ["access", "image", "label", "selected", "disable", "has-access"]));
|
|
1847
1847
|
}
|
|
1848
|
-
}, Hr = { class: "pg-cameras-tool row q-col-gutter-sm flex justify-center" },
|
|
1848
|
+
}, Hr = { class: "pg-cameras-tool row q-col-gutter-sm flex justify-center" }, bn = {
|
|
1849
1849
|
__name: "PgCameraAnglesTool",
|
|
1850
1850
|
setup(e) {
|
|
1851
1851
|
const t = pe(), { collection: s } = S(t);
|
|
1852
|
-
return (n, r) => (
|
|
1853
|
-
(
|
|
1852
|
+
return (n, r) => (k(), z("div", Hr, [
|
|
1853
|
+
(k(!0), z(Xe, null, Ze(M(s), (a) => (k(), z("div", {
|
|
1854
1854
|
class: "",
|
|
1855
1855
|
key: a
|
|
1856
1856
|
}, [
|
|
1857
|
-
|
|
1857
|
+
$(zr, { id: a }, null, 8, ["id"])
|
|
1858
1858
|
]))), 128))
|
|
1859
1859
|
]));
|
|
1860
1860
|
}
|
|
1861
|
-
}, Fr =
|
|
1861
|
+
}, Fr = C({
|
|
1862
1862
|
name: "PgCamerasExpansion",
|
|
1863
1863
|
setup(e, { slots: t, emit: s }) {
|
|
1864
|
-
const { lang: n } =
|
|
1864
|
+
const { lang: n } = A(), r = pe(), { caption: a } = S(r), { expanded: c } = ae({
|
|
1865
1865
|
options: Ms,
|
|
1866
1866
|
tab: Ms
|
|
1867
1867
|
}), d = y(() => {
|
|
@@ -1877,7 +1877,7 @@ const X = ie("pg-history", {
|
|
|
1877
1877
|
caption: a.value,
|
|
1878
1878
|
icon: Or
|
|
1879
1879
|
};
|
|
1880
|
-
return h(me, f, () => h(
|
|
1880
|
+
return h(me, f, () => h(bn));
|
|
1881
1881
|
}
|
|
1882
1882
|
return () => u();
|
|
1883
1883
|
}
|
|
@@ -1885,39 +1885,39 @@ const X = ie("pg-history", {
|
|
|
1885
1885
|
__name: "PgLightsToolButton",
|
|
1886
1886
|
props: { id: Number },
|
|
1887
1887
|
setup(e) {
|
|
1888
|
-
const t = e, s = ee(), n =
|
|
1889
|
-
return (_, D) => (
|
|
1888
|
+
const t = e, s = ee(), n = L(), { selected: r } = S(s), { loading: a } = S(n), c = y(() => r.value.includes(t.id)), d = y(() => s.propertyById(t.id, "name")), u = y(() => s.src(t.id)), f = y(() => t.id === 1 ? "ldl" : "ldr"), g = y(() => n.hasAccess(f.value)), v = (_) => n.block(_), T = (_) => s.toggleSelected(_);
|
|
1889
|
+
return (_, D) => (k(), bt(M(Qe), {
|
|
1890
1890
|
size: "lg",
|
|
1891
1891
|
type: "checkbox",
|
|
1892
|
-
onClick: D[0] || (D[0] = (P) =>
|
|
1892
|
+
onClick: D[0] || (D[0] = (P) => T(e.id)),
|
|
1893
1893
|
image: u.value,
|
|
1894
1894
|
label: d.value,
|
|
1895
1895
|
selected: c.value,
|
|
1896
1896
|
access: f.value,
|
|
1897
|
-
disable:
|
|
1897
|
+
disable: M(a),
|
|
1898
1898
|
"has-access": g.value,
|
|
1899
1899
|
onBlockAccess: v
|
|
1900
1900
|
}, null, 8, ["image", "label", "selected", "access", "disable", "has-access"]));
|
|
1901
1901
|
}
|
|
1902
|
-
}, jr = { class: "pg-lights-tool row q-col-gutter-sm flex justify-center" },
|
|
1902
|
+
}, jr = { class: "pg-lights-tool row q-col-gutter-sm flex justify-center" }, In = {
|
|
1903
1903
|
__name: "PgLightsTool",
|
|
1904
1904
|
setup(e) {
|
|
1905
1905
|
const t = ee(), { collection: s } = S(t);
|
|
1906
|
-
return (n, r) => (
|
|
1907
|
-
(
|
|
1906
|
+
return (n, r) => (k(), z("div", jr, [
|
|
1907
|
+
(k(!0), z(Xe, null, Ze(M(s), (a) => (k(), z("div", {
|
|
1908
1908
|
class: "",
|
|
1909
1909
|
key: a
|
|
1910
1910
|
}, [
|
|
1911
|
-
|
|
1911
|
+
$(qr, { id: a }, null, 8, ["id"])
|
|
1912
1912
|
]))), 128))
|
|
1913
1913
|
]));
|
|
1914
1914
|
}
|
|
1915
|
-
}, Gr =
|
|
1915
|
+
}, Gr = C({
|
|
1916
1916
|
name: "PgLightsExpansion",
|
|
1917
1917
|
setup(e, { slots: t, emit: s }) {
|
|
1918
|
-
const { lang: n } =
|
|
1919
|
-
options:
|
|
1920
|
-
tab:
|
|
1918
|
+
const { lang: n } = A(), r = ee(), { caption: a } = S(r), { expanded: c } = ae({
|
|
1919
|
+
options: Ns,
|
|
1920
|
+
tab: Ns
|
|
1921
1921
|
}), d = y(() => {
|
|
1922
1922
|
var f;
|
|
1923
1923
|
return (f = n.value.pg) == null ? void 0 : f.tools.light;
|
|
@@ -1931,19 +1931,19 @@ const X = ie("pg-history", {
|
|
|
1931
1931
|
caption: a.value,
|
|
1932
1932
|
icon: Lr
|
|
1933
1933
|
};
|
|
1934
|
-
return h(me, f, () => h(
|
|
1934
|
+
return h(me, f, () => h(In));
|
|
1935
1935
|
}
|
|
1936
1936
|
return () => u();
|
|
1937
1937
|
}
|
|
1938
|
-
}), Yr =
|
|
1938
|
+
}), Yr = C({
|
|
1939
1939
|
name: "PgGendersToolButton",
|
|
1940
1940
|
props: {
|
|
1941
1941
|
id: Number,
|
|
1942
1942
|
compact: Boolean
|
|
1943
1943
|
},
|
|
1944
1944
|
setup(e, { slots: t, emit: s }) {
|
|
1945
|
-
const n = re(), r =
|
|
1946
|
-
function
|
|
1945
|
+
const n = re(), r = L(), { selected: a } = S(n), { loading: c } = S(r), d = y(() => e.id === 111 ? "lmf" : "lmm"), u = y(() => n.propertyById(e.id, "name")), f = y(() => n.propertyById(e.id, "slug")), g = y(() => a.value.includes(e.id)), v = y(() => r.hasAccess(d.value));
|
|
1946
|
+
function T() {
|
|
1947
1947
|
const _ = {
|
|
1948
1948
|
size: e.compact ? "sm" : "lg",
|
|
1949
1949
|
type: "checkbox",
|
|
@@ -1958,9 +1958,9 @@ const X = ie("pg-history", {
|
|
|
1958
1958
|
};
|
|
1959
1959
|
return h(Qe, _);
|
|
1960
1960
|
}
|
|
1961
|
-
return () =>
|
|
1961
|
+
return () => T();
|
|
1962
1962
|
}
|
|
1963
|
-
}),
|
|
1963
|
+
}), Pn = C({
|
|
1964
1964
|
name: "PgGendersTool",
|
|
1965
1965
|
props: {
|
|
1966
1966
|
compact: Boolean
|
|
@@ -1985,12 +1985,12 @@ const X = ie("pg-history", {
|
|
|
1985
1985
|
}
|
|
1986
1986
|
return () => a();
|
|
1987
1987
|
}
|
|
1988
|
-
}), Wr =
|
|
1988
|
+
}), Wr = C({
|
|
1989
1989
|
name: "PgEffectsExpansion",
|
|
1990
1990
|
setup(e, { slots: t, emit: s }) {
|
|
1991
|
-
const { lang: n } =
|
|
1992
|
-
options:
|
|
1993
|
-
tab:
|
|
1991
|
+
const { lang: n } = A(), r = re(), { caption: a } = S(r), { expanded: c } = ae({
|
|
1992
|
+
options: Ct,
|
|
1993
|
+
tab: Ct
|
|
1994
1994
|
}), d = y(() => {
|
|
1995
1995
|
var f;
|
|
1996
1996
|
return (f = n.value.pg) == null ? void 0 : f.tools.gender;
|
|
@@ -2004,14 +2004,14 @@ const X = ie("pg-history", {
|
|
|
2004
2004
|
caption: a.value,
|
|
2005
2005
|
icon: kr
|
|
2006
2006
|
};
|
|
2007
|
-
return h(me, f, () => h(
|
|
2007
|
+
return h(me, f, () => h(Pn, { desktop: !1 }));
|
|
2008
2008
|
}
|
|
2009
2009
|
return () => u();
|
|
2010
2010
|
}
|
|
2011
|
-
}),
|
|
2011
|
+
}), xn = C({
|
|
2012
2012
|
name: "PgGridTool",
|
|
2013
2013
|
setup(e, { slots: t, emit: s }) {
|
|
2014
|
-
const n =
|
|
2014
|
+
const n = Pe(), { visible: r } = S(n), a = y({
|
|
2015
2015
|
get: () => n.spacing,
|
|
2016
2016
|
set: (g) => n.setSpacing(g)
|
|
2017
2017
|
}), c = y({
|
|
@@ -2038,15 +2038,15 @@ const X = ie("pg-history", {
|
|
|
2038
2038
|
}
|
|
2039
2039
|
return () => f();
|
|
2040
2040
|
}
|
|
2041
|
-
}),
|
|
2041
|
+
}), wn = C({
|
|
2042
2042
|
name: "PgLightsExpansion",
|
|
2043
2043
|
props: {
|
|
2044
2044
|
playMode: Boolean
|
|
2045
2045
|
},
|
|
2046
2046
|
setup(e, { slots: t, emit: s }) {
|
|
2047
|
-
const { lang: n } =
|
|
2048
|
-
options:
|
|
2049
|
-
tab:
|
|
2047
|
+
const { lang: n } = A(), r = Pe(), { caption: a } = S(r), { expanded: c } = ae({
|
|
2048
|
+
options: Os,
|
|
2049
|
+
tab: Os,
|
|
2050
2050
|
playMode: e.playMode
|
|
2051
2051
|
}), d = y(() => {
|
|
2052
2052
|
var f;
|
|
@@ -2061,64 +2061,64 @@ const X = ie("pg-history", {
|
|
|
2061
2061
|
caption: a.value,
|
|
2062
2062
|
icon: "f_grid"
|
|
2063
2063
|
};
|
|
2064
|
-
return h(me, f, () => h(
|
|
2064
|
+
return h(me, f, () => h(xn));
|
|
2065
2065
|
}
|
|
2066
2066
|
return () => u();
|
|
2067
2067
|
}
|
|
2068
|
-
}), Xr = { class: "quarters overlay" }, Zr = ["onClick", "onMouseover", "onMouseleave"],
|
|
2068
|
+
}), Xr = { class: "quarters overlay" }, Zr = ["onClick", "onMouseover", "onMouseleave"], Kr = { class: "quarters borders" }, Qr = { class: "quickpose-angle" }, Jr = ["src"], Fs = "cps", Dn = {
|
|
2069
2069
|
__name: "PgPosePositionTool",
|
|
2070
2070
|
setup(e) {
|
|
2071
|
-
const t = fe(), s = re(), n =
|
|
2071
|
+
const t = fe(), s = re(), n = L(), { selected: r, collectedModels: a } = S(t), { collectedModels: c } = S(s), { loading: d } = S(n), u = j(null), f = y(() => {
|
|
2072
2072
|
const P = c.value;
|
|
2073
2073
|
return P.length === 2 ? Math.floor(Math.random() * 2) === 1 ? v("male") : v("female") : P.includes(110) ? v("male") : v("female");
|
|
2074
|
-
}), g = y(() => n.hasAccess(
|
|
2074
|
+
}), g = y(() => n.hasAccess(Fs)), v = (P) => `https://static.figurosity.com/pose-generator/position/model-${P}.webp`, T = (P) => u.value = P, _ = (P) => u.value = null, D = (P) => {
|
|
2075
2075
|
if (!d.value) {
|
|
2076
2076
|
if (g.value) {
|
|
2077
2077
|
t.toggleSelected(P);
|
|
2078
2078
|
return;
|
|
2079
2079
|
}
|
|
2080
|
-
n.block(
|
|
2080
|
+
n.block(Fs);
|
|
2081
2081
|
}
|
|
2082
2082
|
};
|
|
2083
|
-
return (P,
|
|
2084
|
-
class:
|
|
2083
|
+
return (P, x) => (k(), z("div", {
|
|
2084
|
+
class: vt(["c-pose-position", { disabled: M(d) }])
|
|
2085
2085
|
}, [
|
|
2086
|
-
|
|
2087
|
-
(
|
|
2088
|
-
class:
|
|
2089
|
-
key:
|
|
2090
|
-
onClick: (
|
|
2091
|
-
onMouseover: (
|
|
2092
|
-
onMouseleave: (
|
|
2086
|
+
Ae("div", Xr, [
|
|
2087
|
+
(k(!0), z(Xe, null, Ze(M(a), (I) => (k(), z("div", {
|
|
2088
|
+
class: vt(["quarter", I.slug]),
|
|
2089
|
+
key: I.id,
|
|
2090
|
+
onClick: (b) => D(I.id),
|
|
2091
|
+
onMouseover: (b) => T(I.slug),
|
|
2092
|
+
onMouseleave: (b) => _(I.slug)
|
|
2093
2093
|
}, null, 42, Zr))), 128))
|
|
2094
2094
|
]),
|
|
2095
|
-
|
|
2096
|
-
(
|
|
2097
|
-
class:
|
|
2095
|
+
Ae("div", Kr, [
|
|
2096
|
+
(k(!0), z(Xe, null, Ze(M(a), (I) => (k(), z("div", {
|
|
2097
|
+
class: vt([
|
|
2098
2098
|
"quarter",
|
|
2099
|
-
|
|
2099
|
+
I.slug + (M(r).includes(I.id) ? " active" : "") + (u.value === I.slug ? " hover" : "")
|
|
2100
2100
|
]),
|
|
2101
|
-
key:
|
|
2101
|
+
key: I.id,
|
|
2102
2102
|
ref_for: !0,
|
|
2103
|
-
ref:
|
|
2103
|
+
ref: I.slug
|
|
2104
2104
|
}, [
|
|
2105
|
-
|
|
2105
|
+
Ae("span", null, bo(I.name), 1)
|
|
2106
2106
|
], 2))), 128))
|
|
2107
2107
|
]),
|
|
2108
|
-
|
|
2109
|
-
|
|
2108
|
+
Ae("div", Qr, [
|
|
2109
|
+
Ae("img", {
|
|
2110
2110
|
src: f.value,
|
|
2111
2111
|
class: ""
|
|
2112
2112
|
}, null, 8, Jr)
|
|
2113
2113
|
])
|
|
2114
2114
|
], 2));
|
|
2115
2115
|
}
|
|
2116
|
-
}, ei =
|
|
2116
|
+
}, ei = C({
|
|
2117
2117
|
name: "PgEffectsExpansion",
|
|
2118
2118
|
setup(e, { slots: t, emit: s }) {
|
|
2119
|
-
const { lang: n } =
|
|
2120
|
-
options:
|
|
2121
|
-
tab:
|
|
2119
|
+
const { lang: n } = A(), r = fe(), { caption: a } = S(r), { expanded: c } = ae({
|
|
2120
|
+
options: ks,
|
|
2121
|
+
tab: ks
|
|
2122
2122
|
}), d = y(() => {
|
|
2123
2123
|
var f;
|
|
2124
2124
|
return (f = n.value.pg) == null ? void 0 : f.tools.position;
|
|
@@ -2132,11 +2132,11 @@ const X = ie("pg-history", {
|
|
|
2132
2132
|
caption: a.value,
|
|
2133
2133
|
icon: Vr
|
|
2134
2134
|
};
|
|
2135
|
-
return h(me, f, () => h(
|
|
2135
|
+
return h(me, f, () => h(Dn));
|
|
2136
2136
|
}
|
|
2137
2137
|
return () => u();
|
|
2138
2138
|
}
|
|
2139
|
-
}),
|
|
2139
|
+
}), An = C({
|
|
2140
2140
|
name: "PgBrightnessTool",
|
|
2141
2141
|
props: {
|
|
2142
2142
|
noIcons: Boolean
|
|
@@ -2159,7 +2159,7 @@ const X = ie("pg-history", {
|
|
|
2159
2159
|
}
|
|
2160
2160
|
return () => a();
|
|
2161
2161
|
}
|
|
2162
|
-
}), Mn =
|
|
2162
|
+
}), Mn = C({
|
|
2163
2163
|
name: "PgBrightnessTool",
|
|
2164
2164
|
emits: ["update:modelValue"],
|
|
2165
2165
|
setup(e, { slots: t, emit: s }) {
|
|
@@ -2178,7 +2178,7 @@ const X = ie("pg-history", {
|
|
|
2178
2178
|
}
|
|
2179
2179
|
return () => a();
|
|
2180
2180
|
}
|
|
2181
|
-
}),
|
|
2181
|
+
}), Nn = C({
|
|
2182
2182
|
name: "PgBrightnessTool",
|
|
2183
2183
|
emits: ["update:modelValue"],
|
|
2184
2184
|
setup(e, { slots: t, emit: s }) {
|
|
@@ -2197,15 +2197,15 @@ const X = ie("pg-history", {
|
|
|
2197
2197
|
}
|
|
2198
2198
|
return () => a();
|
|
2199
2199
|
}
|
|
2200
|
-
}),
|
|
2200
|
+
}), On = C({
|
|
2201
2201
|
name: "PgEffectsExpansion",
|
|
2202
2202
|
props: {
|
|
2203
2203
|
playMode: Boolean
|
|
2204
2204
|
},
|
|
2205
2205
|
setup(e, { slots: t, emit: s }) {
|
|
2206
|
-
const { lang: n } =
|
|
2207
|
-
options:
|
|
2208
|
-
tab:
|
|
2206
|
+
const { lang: n } = A(), r = ge(), { caption: a } = S(r), { expanded: c } = ae({
|
|
2207
|
+
options: Ls,
|
|
2208
|
+
tab: Ls,
|
|
2209
2209
|
playMode: e.playMode
|
|
2210
2210
|
}), d = y(() => {
|
|
2211
2211
|
var f;
|
|
@@ -2218,28 +2218,28 @@ 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:
|
|
2221
|
+
icon: gn
|
|
2222
2222
|
};
|
|
2223
2223
|
return h(me, f, () => [
|
|
2224
|
-
h(
|
|
2224
|
+
h(An),
|
|
2225
2225
|
h(Mn),
|
|
2226
|
-
h(
|
|
2226
|
+
h(Nn)
|
|
2227
2227
|
]);
|
|
2228
2228
|
}
|
|
2229
2229
|
return () => u();
|
|
2230
2230
|
}
|
|
2231
|
-
}), ti =
|
|
2231
|
+
}), ti = C({
|
|
2232
2232
|
name: "PgExpansions",
|
|
2233
2233
|
setup(e, { slots: t, emit: s }) {
|
|
2234
2234
|
function n() {
|
|
2235
2235
|
return h("div", {
|
|
2236
2236
|
class: "pg-expansions"
|
|
2237
2237
|
}, [
|
|
2238
|
-
h(
|
|
2238
|
+
h(Mr),
|
|
2239
2239
|
h(J),
|
|
2240
|
-
h(
|
|
2240
|
+
h(Tn),
|
|
2241
2241
|
h(J),
|
|
2242
|
-
h(
|
|
2242
|
+
h(_n),
|
|
2243
2243
|
h(J),
|
|
2244
2244
|
h(Fr),
|
|
2245
2245
|
h(J),
|
|
@@ -2247,16 +2247,16 @@ const X = ie("pg-history", {
|
|
|
2247
2247
|
h(J),
|
|
2248
2248
|
h(ei),
|
|
2249
2249
|
h(J),
|
|
2250
|
-
h(
|
|
2250
|
+
h(wn),
|
|
2251
2251
|
h(J),
|
|
2252
2252
|
h(Gr),
|
|
2253
2253
|
h(J),
|
|
2254
|
-
h(
|
|
2254
|
+
h(On)
|
|
2255
2255
|
]);
|
|
2256
2256
|
}
|
|
2257
2257
|
return () => n();
|
|
2258
2258
|
}
|
|
2259
|
-
}), ve =
|
|
2259
|
+
}), ve = C({
|
|
2260
2260
|
name: "PgCard",
|
|
2261
2261
|
props: {
|
|
2262
2262
|
label: String,
|
|
@@ -2284,13 +2284,13 @@ const X = ie("pg-history", {
|
|
|
2284
2284
|
{
|
|
2285
2285
|
default: () => [
|
|
2286
2286
|
h(Ro, {}, () => [
|
|
2287
|
-
h(
|
|
2287
|
+
h(Vs, { avatar: !0 }, () => [
|
|
2288
2288
|
h(Bo, { name: e.icon, size: "36px" })
|
|
2289
2289
|
]),
|
|
2290
|
-
h(
|
|
2291
|
-
h(
|
|
2290
|
+
h(Vs, {}, () => [
|
|
2291
|
+
h(Us, { class: "pg-card-label" }, () => e.label),
|
|
2292
2292
|
h(
|
|
2293
|
-
|
|
2293
|
+
Us,
|
|
2294
2294
|
{ class: "pg-card-caption", caption: !0 },
|
|
2295
2295
|
() => e.caption
|
|
2296
2296
|
)
|
|
@@ -2306,10 +2306,10 @@ const X = ie("pg-history", {
|
|
|
2306
2306
|
}
|
|
2307
2307
|
return () => n();
|
|
2308
2308
|
}
|
|
2309
|
-
}), si =
|
|
2309
|
+
}), si = C({
|
|
2310
2310
|
name: "PgDurationCard",
|
|
2311
2311
|
setup(e, { slots: t, emit: s }) {
|
|
2312
|
-
const { lang: n } =
|
|
2312
|
+
const { lang: n } = A(), r = Z(), { title: a } = S(r), c = y(() => {
|
|
2313
2313
|
var u;
|
|
2314
2314
|
return (u = n.value.pg) == null ? void 0 : u.tools.duration;
|
|
2315
2315
|
});
|
|
@@ -2318,16 +2318,16 @@ const X = ie("pg-history", {
|
|
|
2318
2318
|
class: "pg-duration-card",
|
|
2319
2319
|
label: c.value,
|
|
2320
2320
|
caption: a.value,
|
|
2321
|
-
icon:
|
|
2321
|
+
icon: pn
|
|
2322
2322
|
};
|
|
2323
|
-
return h(ve, u, () => h(
|
|
2323
|
+
return h(ve, u, () => h(Sn, {}));
|
|
2324
2324
|
}
|
|
2325
2325
|
return () => d();
|
|
2326
2326
|
}
|
|
2327
|
-
}), ni =
|
|
2327
|
+
}), ni = C({
|
|
2328
2328
|
name: "PgSkinsCard",
|
|
2329
2329
|
setup(e, { slots: t, emit: s }) {
|
|
2330
|
-
const { lang: n } =
|
|
2330
|
+
const { lang: n } = A(), r = U(), a = y(() => {
|
|
2331
2331
|
var u;
|
|
2332
2332
|
return (u = n.value.pg) == null ? void 0 : u.tools.skins;
|
|
2333
2333
|
}), c = y(() => r.caption);
|
|
@@ -2344,10 +2344,10 @@ const X = ie("pg-history", {
|
|
|
2344
2344
|
}
|
|
2345
2345
|
return () => d();
|
|
2346
2346
|
}
|
|
2347
|
-
}), oi =
|
|
2347
|
+
}), oi = C({
|
|
2348
2348
|
name: "PgEffectsCard",
|
|
2349
2349
|
setup(e, { slots: t, emit: s }) {
|
|
2350
|
-
const { lang: n } =
|
|
2350
|
+
const { lang: n } = A(), r = B(), a = y(() => {
|
|
2351
2351
|
var u;
|
|
2352
2352
|
return (u = n.value.pg) == null ? void 0 : u.tools.effects;
|
|
2353
2353
|
}), c = y(() => r.caption);
|
|
@@ -2356,17 +2356,17 @@ const X = ie("pg-history", {
|
|
|
2356
2356
|
class: "pg-skins-card",
|
|
2357
2357
|
label: a.value,
|
|
2358
2358
|
caption: c.value,
|
|
2359
|
-
icon:
|
|
2359
|
+
icon: fn
|
|
2360
2360
|
};
|
|
2361
|
-
return h(ve, u, () => [h(
|
|
2361
|
+
return h(ve, u, () => [h(Cn, { desktop: !0 })]);
|
|
2362
2362
|
}
|
|
2363
2363
|
return () => d();
|
|
2364
2364
|
}
|
|
2365
|
-
}), ri =
|
|
2365
|
+
}), ri = C({
|
|
2366
2366
|
name: "PgCameraAnglesCard",
|
|
2367
2367
|
emits: ["click", "update:modelValue"],
|
|
2368
2368
|
setup(e, { slots: t, emit: s }) {
|
|
2369
|
-
const { lang: n } =
|
|
2369
|
+
const { lang: n } = A(), r = pe(), { caption: a } = S(r), c = y(() => {
|
|
2370
2370
|
var u;
|
|
2371
2371
|
return (u = n.value.pg) == null ? void 0 : u.tools.angle;
|
|
2372
2372
|
});
|
|
@@ -2377,14 +2377,14 @@ const X = ie("pg-history", {
|
|
|
2377
2377
|
caption: a.value,
|
|
2378
2378
|
icon: Xo
|
|
2379
2379
|
};
|
|
2380
|
-
return h(ve, u, () => [h(
|
|
2380
|
+
return h(ve, u, () => [h(bn)]);
|
|
2381
2381
|
}
|
|
2382
2382
|
return () => d();
|
|
2383
2383
|
}
|
|
2384
|
-
}), ii =
|
|
2384
|
+
}), ii = C({
|
|
2385
2385
|
name: "PgLightsCard",
|
|
2386
2386
|
setup(e, { slots: t, emit: s }) {
|
|
2387
|
-
const { lang: n } =
|
|
2387
|
+
const { lang: n } = A(), r = ee(), { caption: a } = S(r), c = y(() => {
|
|
2388
2388
|
var u;
|
|
2389
2389
|
return (u = n.value.pg) == null ? void 0 : u.tools.light;
|
|
2390
2390
|
});
|
|
@@ -2396,18 +2396,18 @@ const X = ie("pg-history", {
|
|
|
2396
2396
|
icon: Zo
|
|
2397
2397
|
};
|
|
2398
2398
|
return h(ve, u, {
|
|
2399
|
-
default: () => h(
|
|
2399
|
+
default: () => h(In, { desktop: !0 })
|
|
2400
2400
|
});
|
|
2401
2401
|
}
|
|
2402
2402
|
return () => d();
|
|
2403
2403
|
}
|
|
2404
|
-
}), ai =
|
|
2404
|
+
}), ai = C({
|
|
2405
2405
|
name: "PgGendersCard",
|
|
2406
2406
|
setup(e, { slots: t, emit: s }) {
|
|
2407
|
-
const { lang: n } =
|
|
2407
|
+
const { lang: n } = A(), r = re(), { caption: a } = S(r);
|
|
2408
2408
|
ae({
|
|
2409
|
-
options:
|
|
2410
|
-
tab:
|
|
2409
|
+
options: Ct,
|
|
2410
|
+
tab: Ct
|
|
2411
2411
|
});
|
|
2412
2412
|
const c = y(() => {
|
|
2413
2413
|
var u;
|
|
@@ -2418,16 +2418,16 @@ const X = ie("pg-history", {
|
|
|
2418
2418
|
class: "pg-genders-card",
|
|
2419
2419
|
label: c.value,
|
|
2420
2420
|
caption: a.value,
|
|
2421
|
-
icon:
|
|
2421
|
+
icon: Ko
|
|
2422
2422
|
};
|
|
2423
|
-
return h(ve, u, () => [h(
|
|
2423
|
+
return h(ve, u, () => [h(Pn)]);
|
|
2424
2424
|
}
|
|
2425
2425
|
return () => d();
|
|
2426
2426
|
}
|
|
2427
|
-
}), li =
|
|
2427
|
+
}), li = C({
|
|
2428
2428
|
name: "PgPosePositionCard",
|
|
2429
2429
|
setup(e, { slots: t, emit: s }) {
|
|
2430
|
-
const { lang: n } =
|
|
2430
|
+
const { lang: n } = A(), r = fe(), { caption: a } = S(r), c = y(() => {
|
|
2431
2431
|
var u;
|
|
2432
2432
|
return (u = n.value.pg) == null ? void 0 : u.tools.position;
|
|
2433
2433
|
});
|
|
@@ -2436,15 +2436,15 @@ const X = ie("pg-history", {
|
|
|
2436
2436
|
class: "pg-pose-position-card",
|
|
2437
2437
|
label: c.value,
|
|
2438
2438
|
caption: a.value,
|
|
2439
|
-
icon:
|
|
2439
|
+
icon: Qo
|
|
2440
2440
|
};
|
|
2441
2441
|
return h(ve, u, {
|
|
2442
|
-
default: () => h(
|
|
2442
|
+
default: () => h(Dn)
|
|
2443
2443
|
});
|
|
2444
2444
|
}
|
|
2445
2445
|
return () => d();
|
|
2446
2446
|
}
|
|
2447
|
-
}), ci =
|
|
2447
|
+
}), ci = C({
|
|
2448
2448
|
name: "PgGridCard",
|
|
2449
2449
|
props: {
|
|
2450
2450
|
modelValue: { type: Number, default: 0 },
|
|
@@ -2453,7 +2453,7 @@ const X = ie("pg-history", {
|
|
|
2453
2453
|
},
|
|
2454
2454
|
emits: ["click", "update:modelValue"],
|
|
2455
2455
|
setup(e, { slots: t, emit: s }) {
|
|
2456
|
-
const { lang: n } =
|
|
2456
|
+
const { lang: n } = A(), r = Pe(), { caption: a } = S(r), c = y(() => {
|
|
2457
2457
|
var u;
|
|
2458
2458
|
return (u = n.value.pg) == null ? void 0 : u.tools.grid;
|
|
2459
2459
|
});
|
|
@@ -2464,28 +2464,28 @@ const X = ie("pg-history", {
|
|
|
2464
2464
|
caption: a.value,
|
|
2465
2465
|
icon: Jo
|
|
2466
2466
|
};
|
|
2467
|
-
return h(ve, u, { default: () => h(
|
|
2467
|
+
return h(ve, u, { default: () => h(xn) });
|
|
2468
2468
|
}
|
|
2469
2469
|
return () => d();
|
|
2470
2470
|
}
|
|
2471
|
-
}), ui =
|
|
2471
|
+
}), ui = C({
|
|
2472
2472
|
name: "PgAdjustmentsTool",
|
|
2473
2473
|
setup(e, { slots: t, emit: s }) {
|
|
2474
2474
|
function n() {
|
|
2475
2475
|
return h("div", {
|
|
2476
2476
|
class: "pg-adjustments-tool"
|
|
2477
2477
|
}, [
|
|
2478
|
-
h(
|
|
2478
|
+
h(An),
|
|
2479
2479
|
h(Mn),
|
|
2480
|
-
h(
|
|
2480
|
+
h(Nn)
|
|
2481
2481
|
]);
|
|
2482
2482
|
}
|
|
2483
2483
|
return () => n();
|
|
2484
2484
|
}
|
|
2485
|
-
}), di =
|
|
2485
|
+
}), di = C({
|
|
2486
2486
|
name: "PgAdjustmentsCard",
|
|
2487
2487
|
setup(e, { slots: t, emit: s }) {
|
|
2488
|
-
const { lang: n } =
|
|
2488
|
+
const { lang: n } = A(), r = ge(), { caption: a } = S(r), c = y(() => {
|
|
2489
2489
|
var u;
|
|
2490
2490
|
return (u = n.value.pg) == null ? void 0 : u.tools.adjustment;
|
|
2491
2491
|
});
|
|
@@ -2494,19 +2494,19 @@ const X = ie("pg-history", {
|
|
|
2494
2494
|
class: "pg-adjustments-card",
|
|
2495
2495
|
label: c.value,
|
|
2496
2496
|
caption: a.value,
|
|
2497
|
-
icon:
|
|
2497
|
+
icon: gn
|
|
2498
2498
|
};
|
|
2499
2499
|
return h(ve, u, () => [h(ui)]);
|
|
2500
2500
|
}
|
|
2501
2501
|
return () => d();
|
|
2502
2502
|
}
|
|
2503
|
-
}),
|
|
2503
|
+
}), kn = C({
|
|
2504
2504
|
name: "PgOverviewContent",
|
|
2505
2505
|
props: {
|
|
2506
2506
|
size: { default: "lg", type: String }
|
|
2507
2507
|
},
|
|
2508
2508
|
setup(e, { slots: t, emit: s }) {
|
|
2509
|
-
const { lang: n } =
|
|
2509
|
+
const { lang: n } = A(), r = y(
|
|
2510
2510
|
() => n.value && n.value.pg ? n.value.pg.overview.title : "s"
|
|
2511
2511
|
), a = y(
|
|
2512
2512
|
() => n.value && n.value.pg ? n.value.pg.overview.heading : ""
|
|
@@ -2524,7 +2524,7 @@ const X = ie("pg-history", {
|
|
|
2524
2524
|
}
|
|
2525
2525
|
return () => c();
|
|
2526
2526
|
}
|
|
2527
|
-
}), hi =
|
|
2527
|
+
}), hi = C({
|
|
2528
2528
|
name: "PgCards",
|
|
2529
2529
|
setup(e, { slots: t, emit: s }) {
|
|
2530
2530
|
function n() {
|
|
@@ -2533,7 +2533,7 @@ const X = ie("pg-history", {
|
|
|
2533
2533
|
style: "max-width: 1024px;width: 100%;margin: auto;"
|
|
2534
2534
|
}, [
|
|
2535
2535
|
h("div", { class: "row q-col-gutter-md" }, [
|
|
2536
|
-
h("div", { class: "col-7" }, h(
|
|
2536
|
+
h("div", { class: "col-7" }, h(kn)),
|
|
2537
2537
|
h("div", { class: "col-5" }, [h(si)])
|
|
2538
2538
|
]),
|
|
2539
2539
|
h("div", { class: "row q-col-gutter-md" }, [
|
|
@@ -2554,11 +2554,11 @@ const X = ie("pg-history", {
|
|
|
2554
2554
|
}
|
|
2555
2555
|
return () => n();
|
|
2556
2556
|
}
|
|
2557
|
-
}), pi =
|
|
2557
|
+
}), pi = C({
|
|
2558
2558
|
name: "PgAnimatedCount",
|
|
2559
2559
|
emits: ["click", "update:modelValue"],
|
|
2560
2560
|
setup(e, { slots: t, emit: s }) {
|
|
2561
|
-
const n =
|
|
2561
|
+
const n = xt(), r = L(), { filtering: a } = S(r), { lang: c } = A(), d = y(() => {
|
|
2562
2562
|
var g;
|
|
2563
2563
|
return (g = c.value.pg) == null ? void 0 : g.possibilities.title;
|
|
2564
2564
|
}), { adjustedCount: u } = S(n);
|
|
@@ -2578,22 +2578,22 @@ const X = ie("pg-history", {
|
|
|
2578
2578
|
}
|
|
2579
2579
|
return () => f();
|
|
2580
2580
|
}
|
|
2581
|
-
}), fi =
|
|
2581
|
+
}), fi = C({
|
|
2582
2582
|
name: "PgBottomButtons",
|
|
2583
2583
|
setup(e, { slots: t, emit: s }) {
|
|
2584
|
-
const n = Te(), r =
|
|
2584
|
+
const n = Te(), r = xt(), a = L(), c = (x) => a.customReset(), d = (x) => n.open(), {
|
|
2585
2585
|
filters: u,
|
|
2586
2586
|
adjustedCount: f,
|
|
2587
2587
|
loading: g,
|
|
2588
2588
|
error: v
|
|
2589
|
-
} = S(r), { lang:
|
|
2590
|
-
var
|
|
2591
|
-
return (
|
|
2589
|
+
} = S(r), { lang: T } = A(), _ = y(() => {
|
|
2590
|
+
var x;
|
|
2591
|
+
return (x = T.value.pg) == null ? void 0 : x.overview.startLabel;
|
|
2592
2592
|
}), D = y(() => {
|
|
2593
|
-
var
|
|
2594
|
-
return (
|
|
2593
|
+
var x;
|
|
2594
|
+
return (x = T.value.pg) == null ? void 0 : x.overview.resetLabel;
|
|
2595
2595
|
});
|
|
2596
|
-
|
|
2596
|
+
Ie(
|
|
2597
2597
|
() => u.value,
|
|
2598
2598
|
() => {
|
|
2599
2599
|
r.fetchForDisplay();
|
|
@@ -2601,43 +2601,43 @@ const X = ie("pg-history", {
|
|
|
2601
2601
|
{ immediate: !0 }
|
|
2602
2602
|
);
|
|
2603
2603
|
function P() {
|
|
2604
|
-
const
|
|
2604
|
+
const x = {
|
|
2605
2605
|
class: "pg-buttons q-col-gutter-sm q-pa-md row"
|
|
2606
|
-
},
|
|
2606
|
+
}, I = {
|
|
2607
2607
|
class: "q-px-lg",
|
|
2608
2608
|
size: "md",
|
|
2609
2609
|
color: "primary",
|
|
2610
2610
|
rounded: !0,
|
|
2611
2611
|
unelevated: !0
|
|
2612
|
-
},
|
|
2613
|
-
...
|
|
2612
|
+
}, b = {
|
|
2613
|
+
...I,
|
|
2614
2614
|
label: _.value,
|
|
2615
2615
|
onClick: d,
|
|
2616
2616
|
disabled: g.value,
|
|
2617
2617
|
"data-cy": "pg-button-start"
|
|
2618
|
-
},
|
|
2619
|
-
...
|
|
2618
|
+
}, N = {
|
|
2619
|
+
...I,
|
|
2620
2620
|
label: D.value,
|
|
2621
2621
|
outline: !0,
|
|
2622
2622
|
onClick: c,
|
|
2623
2623
|
disabled: g.value,
|
|
2624
2624
|
"data-cy": "pg-button-reset"
|
|
2625
2625
|
};
|
|
2626
|
-
return h("div",
|
|
2626
|
+
return h("div", x, [
|
|
2627
2627
|
h("div", { class: "col col-sm-auto text-center" }, [
|
|
2628
|
-
h(Oe,
|
|
2628
|
+
h(Oe, N)
|
|
2629
2629
|
]),
|
|
2630
2630
|
h("div", { class: "col col-sm-auto text-center" }, [
|
|
2631
|
-
h(Oe,
|
|
2631
|
+
h(Oe, b)
|
|
2632
2632
|
])
|
|
2633
2633
|
]);
|
|
2634
2634
|
}
|
|
2635
2635
|
return () => P();
|
|
2636
2636
|
}
|
|
2637
|
-
}),
|
|
2637
|
+
}), Ln = C({
|
|
2638
2638
|
name: "PgGridOverlay",
|
|
2639
2639
|
setup(e, { slots: t, emit: s }) {
|
|
2640
|
-
const n =
|
|
2640
|
+
const n = Pt(), r = cn(), a = Pe(), {
|
|
2641
2641
|
visible: c,
|
|
2642
2642
|
spacing: d,
|
|
2643
2643
|
horizontal: u,
|
|
@@ -2646,26 +2646,26 @@ const X = ie("pg-history", {
|
|
|
2646
2646
|
width: 0,
|
|
2647
2647
|
height: 0
|
|
2648
2648
|
}), v = y(() => {
|
|
2649
|
-
const
|
|
2650
|
-
return
|
|
2651
|
-
}),
|
|
2652
|
-
const
|
|
2653
|
-
return { width:
|
|
2649
|
+
const x = g.value;
|
|
2650
|
+
return x.width < x.height ? x.width : x.height;
|
|
2651
|
+
}), T = y(() => {
|
|
2652
|
+
const x = v.value;
|
|
2653
|
+
return { width: x, height: x };
|
|
2654
2654
|
}), _ = y(() => {
|
|
2655
|
-
const
|
|
2656
|
-
let
|
|
2657
|
-
return
|
|
2658
|
-
}), D = (
|
|
2659
|
-
g.value =
|
|
2655
|
+
const x = g.value, I = x.width, b = x.height;
|
|
2656
|
+
let N = 0, le = 0;
|
|
2657
|
+
return I > b && (le = (I - b) / 2), b > I && (N = (b - I) / 2), { top: N, left: le };
|
|
2658
|
+
}), D = (x) => {
|
|
2659
|
+
g.value = x;
|
|
2660
2660
|
};
|
|
2661
|
-
|
|
2661
|
+
Ke(() => {
|
|
2662
2662
|
console.log("Ext bus exists?", !!r, "id:", r && r.__bus_id), r.$on("resize", D), r.$emit("resize", {
|
|
2663
2663
|
width: window.innerWidth,
|
|
2664
2664
|
height: window.innerHeight
|
|
2665
2665
|
}), g.value = { width: n.screen.width, height: n.screen.height };
|
|
2666
|
-
}),
|
|
2666
|
+
}), It(() => r.$off("resize"));
|
|
2667
2667
|
function P() {
|
|
2668
|
-
const
|
|
2668
|
+
const x = {
|
|
2669
2669
|
class: "pg-grid-overlay",
|
|
2670
2670
|
style: "z-index: 8",
|
|
2671
2671
|
visible: c.value,
|
|
@@ -2673,14 +2673,14 @@ const X = ie("pg-history", {
|
|
|
2673
2673
|
offsetX: u.value / 100,
|
|
2674
2674
|
offsetY: f.value / 100,
|
|
2675
2675
|
imagePoint: _.value,
|
|
2676
|
-
imageSize:
|
|
2676
|
+
imageSize: T.value,
|
|
2677
2677
|
viewportSize: g.value
|
|
2678
2678
|
};
|
|
2679
|
-
return h(jo,
|
|
2679
|
+
return h(jo, x);
|
|
2680
2680
|
}
|
|
2681
2681
|
return () => P();
|
|
2682
2682
|
}
|
|
2683
|
-
}), gi =
|
|
2683
|
+
}), gi = C({
|
|
2684
2684
|
name: "PgOverviewButtons",
|
|
2685
2685
|
setup(e, { slots: t, emit: s }) {
|
|
2686
2686
|
function n() {
|
|
@@ -2712,21 +2712,21 @@ const X = ie("pg-history", {
|
|
|
2712
2712
|
}), mi = { class: "column pg-overview full-width q-pt-lg" }, vi = {
|
|
2713
2713
|
__name: "PgOverview",
|
|
2714
2714
|
setup(e) {
|
|
2715
|
-
return (t, s) => (
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2715
|
+
return (t, s) => (k(), z("div", mi, [
|
|
2716
|
+
$(M(Ln)),
|
|
2717
|
+
$(M(hi), { class: "col full-height gt-sm" }),
|
|
2718
|
+
$(M(kn), {
|
|
2719
2719
|
class: "lt-md",
|
|
2720
2720
|
style: { height: "200px" }
|
|
2721
2721
|
}),
|
|
2722
|
-
|
|
2722
|
+
$(M(ti), {
|
|
2723
2723
|
class: "lt-md",
|
|
2724
2724
|
style: { "z-index": "9" }
|
|
2725
2725
|
}),
|
|
2726
|
-
|
|
2726
|
+
$(M(gi))
|
|
2727
2727
|
]));
|
|
2728
2728
|
}
|
|
2729
|
-
}, yi =
|
|
2729
|
+
}, yi = C({
|
|
2730
2730
|
name: "PgExitButton",
|
|
2731
2731
|
props: {
|
|
2732
2732
|
show: {
|
|
@@ -2735,7 +2735,7 @@ const X = ie("pg-history", {
|
|
|
2735
2735
|
}
|
|
2736
2736
|
},
|
|
2737
2737
|
setup(e, { slots: t, emit: s }) {
|
|
2738
|
-
const n = Te(), { lang: r } =
|
|
2738
|
+
const n = Te(), { lang: r } = A(), a = y(() => {
|
|
2739
2739
|
var u;
|
|
2740
2740
|
return (u = r.value.pg) == null ? void 0 : u.buttons.exit.title;
|
|
2741
2741
|
}), c = (u) => u.preventDefault();
|
|
@@ -2758,17 +2758,17 @@ const X = ie("pg-history", {
|
|
|
2758
2758
|
style: "background-color: #fff!important"
|
|
2759
2759
|
};
|
|
2760
2760
|
return h(
|
|
2761
|
-
|
|
2761
|
+
jt,
|
|
2762
2762
|
{ name: "fade" },
|
|
2763
|
-
() =>
|
|
2763
|
+
() => yt(
|
|
2764
2764
|
h(zo, u, () => [h(Oe, f)]),
|
|
2765
|
-
[[
|
|
2765
|
+
[[Et, e.show]]
|
|
2766
2766
|
)
|
|
2767
2767
|
);
|
|
2768
2768
|
}
|
|
2769
2769
|
return () => d();
|
|
2770
2770
|
}
|
|
2771
|
-
}), ns =
|
|
2771
|
+
}), ns = C({
|
|
2772
2772
|
name: "PgBaseButton",
|
|
2773
2773
|
props: {
|
|
2774
2774
|
type: String,
|
|
@@ -2798,7 +2798,7 @@ const X = ie("pg-history", {
|
|
|
2798
2798
|
}
|
|
2799
2799
|
return () => n();
|
|
2800
2800
|
}
|
|
2801
|
-
}), Ei =
|
|
2801
|
+
}), Ei = C({
|
|
2802
2802
|
name: "PgNextButton",
|
|
2803
2803
|
setup(e, { slots: t, emit: s }) {
|
|
2804
2804
|
const n = Te(), { nextDisabled: r } = S(n);
|
|
@@ -2813,12 +2813,12 @@ const X = ie("pg-history", {
|
|
|
2813
2813
|
}
|
|
2814
2814
|
return () => a();
|
|
2815
2815
|
}
|
|
2816
|
-
}), Si =
|
|
2816
|
+
}), Si = C({
|
|
2817
2817
|
name: "PgNextButton",
|
|
2818
2818
|
setup(e, { slots: t, emit: s }) {
|
|
2819
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
|
-
const
|
|
2821
|
+
const T = {
|
|
2822
2822
|
type: "play",
|
|
2823
2823
|
icon: f.value,
|
|
2824
2824
|
outline: !0,
|
|
@@ -2833,11 +2833,11 @@ const X = ie("pg-history", {
|
|
|
2833
2833
|
thickness: 0.2,
|
|
2834
2834
|
instantFeedback: !0
|
|
2835
2835
|
};
|
|
2836
|
-
return h(ns,
|
|
2836
|
+
return h(ns, T, () => [h(Ho, _)]);
|
|
2837
2837
|
}
|
|
2838
2838
|
return () => v();
|
|
2839
2839
|
}
|
|
2840
|
-
}), Ti =
|
|
2840
|
+
}), Ti = C({
|
|
2841
2841
|
name: "PgPreviousButton",
|
|
2842
2842
|
setup(e, { slots: t, emit: s }) {
|
|
2843
2843
|
const n = Te(), { previousDisabled: r } = S(n);
|
|
@@ -2852,29 +2852,29 @@ const X = ie("pg-history", {
|
|
|
2852
2852
|
}
|
|
2853
2853
|
return () => a();
|
|
2854
2854
|
}
|
|
2855
|
-
}), Ci =
|
|
2855
|
+
}), Ci = C({
|
|
2856
2856
|
name: "PgTimer",
|
|
2857
2857
|
setup(e, { slots: t, emit: s }) {
|
|
2858
2858
|
const n = he(), r = Z(), { formatted: a, milliseconds: c } = S(n), { duration: d } = S(r), u = y(() => {
|
|
2859
|
-
let
|
|
2860
|
-
return c.value <
|
|
2859
|
+
let T = d.value * 1e3 - 300, _ = d.value * 1e3 - 600;
|
|
2860
|
+
return c.value < T && c.value > _;
|
|
2861
2861
|
}), f = y(() => {
|
|
2862
|
-
let
|
|
2863
|
-
return d.value > 60 && (
|
|
2862
|
+
let T = 40;
|
|
2863
|
+
return d.value > 60 && (T = 65), d.value >= 600 && (T = 85), { width: `${T}px` };
|
|
2864
2864
|
}), g = y(() => ({
|
|
2865
2865
|
"pg-timer-seconds": !0,
|
|
2866
2866
|
flash: u.value
|
|
2867
2867
|
}));
|
|
2868
2868
|
function v() {
|
|
2869
|
-
const
|
|
2869
|
+
const T = {
|
|
2870
2870
|
class: g.value,
|
|
2871
2871
|
style: f.value
|
|
2872
2872
|
};
|
|
2873
|
-
return h("div",
|
|
2873
|
+
return h("div", T, a.value);
|
|
2874
2874
|
}
|
|
2875
2875
|
return () => v();
|
|
2876
2876
|
}
|
|
2877
|
-
}),
|
|
2877
|
+
}), Vn = C({
|
|
2878
2878
|
name: "PgControls",
|
|
2879
2879
|
props: { center: Boolean },
|
|
2880
2880
|
setup(e, { slots: t, emit: s }) {
|
|
@@ -2888,10 +2888,10 @@ const X = ie("pg-history", {
|
|
|
2888
2888
|
}
|
|
2889
2889
|
return () => n();
|
|
2890
2890
|
}
|
|
2891
|
-
}),
|
|
2891
|
+
}), Un = C({
|
|
2892
2892
|
name: "PgView360",
|
|
2893
2893
|
setup(e, { slots: t, emit: s }) {
|
|
2894
|
-
const n = X(), { lang: r } =
|
|
2894
|
+
const n = X(), { lang: r } = A(), a = y(() => {
|
|
2895
2895
|
var d;
|
|
2896
2896
|
return (d = r.value.pg) == null ? void 0 : d.buttons.view360.title;
|
|
2897
2897
|
});
|
|
@@ -2909,19 +2909,19 @@ const X = ie("pg-history", {
|
|
|
2909
2909
|
}
|
|
2910
2910
|
return () => c();
|
|
2911
2911
|
}
|
|
2912
|
-
}),
|
|
2912
|
+
}), Rn = C({
|
|
2913
2913
|
name: "PgPlayExpansions",
|
|
2914
2914
|
setup(e, { slots: t, emit: s }) {
|
|
2915
|
-
const n =
|
|
2915
|
+
const n = Pt();
|
|
2916
2916
|
function r() {
|
|
2917
2917
|
const a = j(n.platform.is.desktop), c = {
|
|
2918
2918
|
class: "pg-play-expansions"
|
|
2919
2919
|
}, d = [];
|
|
2920
|
-
return a.value && (d.push(h(
|
|
2920
|
+
return a.value && (d.push(h(Tn, { playMode: !0 })), d.push(h(J))), d.push(h(_n, { playMode: !0 })), d.push(h(J)), d.push(h(wn, { playMode: !0 })), d.push(h(J)), d.push(h(On, { playMode: !0 })), a.value && d.push(h("div", { class: "q-pa-lg" }, [h(Un)])), h("div", c, d);
|
|
2921
2921
|
}
|
|
2922
2922
|
return () => r();
|
|
2923
2923
|
}
|
|
2924
|
-
}), _i =
|
|
2924
|
+
}), _i = C({
|
|
2925
2925
|
name: "PgModalControls",
|
|
2926
2926
|
props: {
|
|
2927
2927
|
modelValue: Boolean,
|
|
@@ -2941,8 +2941,8 @@ const X = ie("pg-history", {
|
|
|
2941
2941
|
"onUpdate:modelValue": (c) => n.value = c
|
|
2942
2942
|
};
|
|
2943
2943
|
return h(Go, a, {
|
|
2944
|
-
default: () => h(
|
|
2945
|
-
expanded: () => h(
|
|
2944
|
+
default: () => h(Vn),
|
|
2945
|
+
expanded: () => h(Rn)
|
|
2946
2946
|
});
|
|
2947
2947
|
}
|
|
2948
2948
|
return () => r();
|
|
@@ -2954,7 +2954,7 @@ const X = ie("pg-history", {
|
|
|
2954
2954
|
zIndex: Number
|
|
2955
2955
|
},
|
|
2956
2956
|
setup(e) {
|
|
2957
|
-
const t = X(), s =
|
|
2957
|
+
const t = X(), s = cn(), 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
|
|
@@ -2971,23 +2971,23 @@ const X = ie("pg-history", {
|
|
|
2971
2971
|
a.value = f.width > f.height;
|
|
2972
2972
|
};
|
|
2973
2973
|
function u() {
|
|
2974
|
-
const f = window, g = document, v = g.documentElement,
|
|
2974
|
+
const f = window, g = document, v = g.documentElement, T = g.getElementsByTagName("body")[0], _ = f.innerWidth || v.clientWidth || T.clientWidth, D = f.innerHeight || v.clientHeight || T.clientHeight;
|
|
2975
2975
|
d({ width: _, height: D });
|
|
2976
2976
|
}
|
|
2977
|
-
return
|
|
2977
|
+
return Ke(() => {
|
|
2978
2978
|
u(), s.$on("resize", d);
|
|
2979
|
-
}),
|
|
2979
|
+
}), It(() => s.$off("resize")), (f, g) => (k(), z("img", {
|
|
2980
2980
|
src: r.value,
|
|
2981
|
-
class:
|
|
2982
|
-
style:
|
|
2981
|
+
class: vt(["pg-display-image", { "flip-horizontal": e.flipped }]),
|
|
2982
|
+
style: rn(c.value)
|
|
2983
2983
|
}, null, 14, bi));
|
|
2984
2984
|
}
|
|
2985
2985
|
}, Pi = {
|
|
2986
2986
|
__name: "PgDisplay",
|
|
2987
2987
|
setup(e) {
|
|
2988
2988
|
const t = ge(), s = X();
|
|
2989
|
-
|
|
2990
|
-
const n =
|
|
2989
|
+
xe();
|
|
2990
|
+
const n = B(), { 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,
|
|
@@ -2995,28 +2995,28 @@ const X = ie("pg-history", {
|
|
|
2995
2995
|
}), f = y(() => ({
|
|
2996
2996
|
...u.value,
|
|
2997
2997
|
backgroundColor: r.value === 3 ? "#000000" : "#ffffff"
|
|
2998
|
-
})), { current: g } = S(s), v = j([]),
|
|
2999
|
-
return
|
|
2998
|
+
})), { current: g } = S(s), v = j([]), T = j(1);
|
|
2999
|
+
return Ie(
|
|
3000
3000
|
() => {
|
|
3001
3001
|
var _, D, P;
|
|
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
|
-
([_, D, P],
|
|
3005
|
-
if (!(P ===
|
|
3006
|
-
const
|
|
3004
|
+
([_, D, P], x, I) => {
|
|
3005
|
+
if (!(P === ln && D)) return;
|
|
3006
|
+
const b = _.split("."), N = _ ?? `${D}#${Date.now()}`;
|
|
3007
3007
|
v.value = [
|
|
3008
3008
|
...v.value,
|
|
3009
|
-
{ key:
|
|
3010
|
-
],
|
|
3009
|
+
{ key: N, src: D, zIndex: T.value, flipped: b[2] === "1" }
|
|
3010
|
+
], T.value++, v.value.length > 1 && (v.value = v.value.slice(-1));
|
|
3011
3011
|
},
|
|
3012
3012
|
{ immediate: !0 }
|
|
3013
|
-
), (_, D) => (
|
|
3013
|
+
), (_, D) => (k(), z("div", {
|
|
3014
3014
|
class: "pg-display",
|
|
3015
|
-
style:
|
|
3015
|
+
style: rn(f.value)
|
|
3016
3016
|
}, [
|
|
3017
|
-
|
|
3018
|
-
default:
|
|
3019
|
-
(
|
|
3017
|
+
$(Io, { name: "pgfade" }, {
|
|
3018
|
+
default: Gt(() => [
|
|
3019
|
+
(k(!0), z(Xe, null, Ze(v.value, (P, x) => (k(), bt(Ii, {
|
|
3020
3020
|
key: P.key,
|
|
3021
3021
|
zIndex: parseInt(P.zIndex),
|
|
3022
3022
|
flipped: P.flipped
|
|
@@ -3027,21 +3027,21 @@ const X = ie("pg-history", {
|
|
|
3027
3027
|
], 4));
|
|
3028
3028
|
}
|
|
3029
3029
|
};
|
|
3030
|
-
var
|
|
3030
|
+
var Ft = { exports: {} };
|
|
3031
3031
|
/*! Hammer.JS - v2.0.7 - 2016-04-22
|
|
3032
3032
|
* http://hammerjs.github.io/
|
|
3033
3033
|
*
|
|
3034
3034
|
* Copyright (c) 2016 Jorik Tangelder;
|
|
3035
3035
|
* Licensed under the MIT license */
|
|
3036
|
-
var
|
|
3036
|
+
var qs;
|
|
3037
3037
|
function xi() {
|
|
3038
|
-
return
|
|
3038
|
+
return qs || (qs = 1, (function(e) {
|
|
3039
3039
|
(function(t, s, n, r) {
|
|
3040
3040
|
var a = ["", "webkit", "Moz", "MS", "ms", "o"], c = s.createElement("div"), d = "function", u = Math.round, f = Math.abs, g = Date.now;
|
|
3041
3041
|
function v(o, i, l) {
|
|
3042
|
-
return setTimeout(
|
|
3042
|
+
return setTimeout(N(o, l), i);
|
|
3043
3043
|
}
|
|
3044
|
-
function
|
|
3044
|
+
function T(o, i, l) {
|
|
3045
3045
|
return Array.isArray(o) ? (_(o, l[i], l), !0) : !1;
|
|
3046
3046
|
}
|
|
3047
3047
|
function _(o, i, l) {
|
|
@@ -3077,18 +3077,18 @@ function xi() {
|
|
|
3077
3077
|
}
|
|
3078
3078
|
return l;
|
|
3079
3079
|
} : P = Object.assign;
|
|
3080
|
-
var
|
|
3080
|
+
var x = D(function(i, l, p) {
|
|
3081
3081
|
for (var m = Object.keys(l), E = 0; E < m.length; )
|
|
3082
3082
|
(!p || p && i[m[E]] === r) && (i[m[E]] = l[m[E]]), E++;
|
|
3083
3083
|
return i;
|
|
3084
|
-
}, "extend", "Use `assign`."),
|
|
3085
|
-
return
|
|
3084
|
+
}, "extend", "Use `assign`."), I = D(function(i, l) {
|
|
3085
|
+
return x(i, l, !0);
|
|
3086
3086
|
}, "merge", "Use `assign`.");
|
|
3087
|
-
function
|
|
3087
|
+
function b(o, i, l) {
|
|
3088
3088
|
var p = i.prototype, m;
|
|
3089
3089
|
m = o.prototype = Object.create(p), m.constructor = o, m._super = p, l && P(m, l);
|
|
3090
3090
|
}
|
|
3091
|
-
function
|
|
3091
|
+
function N(o, i) {
|
|
3092
3092
|
return function() {
|
|
3093
3093
|
return o.apply(i, arguments);
|
|
3094
3094
|
};
|
|
@@ -3100,12 +3100,12 @@ function xi() {
|
|
|
3100
3100
|
return o === r ? i : o;
|
|
3101
3101
|
}
|
|
3102
3102
|
function ye(o, i, l) {
|
|
3103
|
-
_(
|
|
3103
|
+
_(et(i), function(p) {
|
|
3104
3104
|
o.addEventListener(p, l, !1);
|
|
3105
3105
|
});
|
|
3106
3106
|
}
|
|
3107
|
-
function
|
|
3108
|
-
_(
|
|
3107
|
+
function K(o, i, l) {
|
|
3108
|
+
_(et(i), function(p) {
|
|
3109
3109
|
o.removeEventListener(p, l, !1);
|
|
3110
3110
|
});
|
|
3111
3111
|
}
|
|
@@ -3120,10 +3120,10 @@ function xi() {
|
|
|
3120
3120
|
function G(o, i) {
|
|
3121
3121
|
return o.indexOf(i) > -1;
|
|
3122
3122
|
}
|
|
3123
|
-
function
|
|
3123
|
+
function et(o) {
|
|
3124
3124
|
return o.trim().split(/\s+/g);
|
|
3125
3125
|
}
|
|
3126
|
-
function
|
|
3126
|
+
function we(o, i, l) {
|
|
3127
3127
|
if (o.indexOf && !l)
|
|
3128
3128
|
return o.indexOf(i);
|
|
3129
3129
|
for (var p = 0; p < o.length; ) {
|
|
@@ -3133,19 +3133,19 @@ function xi() {
|
|
|
3133
3133
|
}
|
|
3134
3134
|
return -1;
|
|
3135
3135
|
}
|
|
3136
|
-
function
|
|
3136
|
+
function tt(o) {
|
|
3137
3137
|
return Array.prototype.slice.call(o, 0);
|
|
3138
3138
|
}
|
|
3139
3139
|
function rs(o, i, l) {
|
|
3140
3140
|
for (var p = [], m = [], E = 0; E < o.length; ) {
|
|
3141
3141
|
var w = o[E][i];
|
|
3142
|
-
|
|
3142
|
+
we(m, w) < 0 && p.push(o[E]), m[E] = w, E++;
|
|
3143
3143
|
}
|
|
3144
|
-
return p = p.sort(function(
|
|
3145
|
-
return
|
|
3144
|
+
return p = p.sort(function(R, F) {
|
|
3145
|
+
return R[i] > F[i];
|
|
3146
3146
|
}), p;
|
|
3147
3147
|
}
|
|
3148
|
-
function
|
|
3148
|
+
function st(o, i) {
|
|
3149
3149
|
for (var l, p, m = i[0].toUpperCase() + i.slice(1), E = 0; E < a.length; ) {
|
|
3150
3150
|
if (l = a[E], p = l ? l + m : i, p in o)
|
|
3151
3151
|
return p;
|
|
@@ -3153,15 +3153,15 @@ function xi() {
|
|
|
3153
3153
|
}
|
|
3154
3154
|
return r;
|
|
3155
3155
|
}
|
|
3156
|
-
var
|
|
3157
|
-
function
|
|
3158
|
-
return
|
|
3156
|
+
var zn = 1;
|
|
3157
|
+
function Hn() {
|
|
3158
|
+
return zn++;
|
|
3159
3159
|
}
|
|
3160
3160
|
function is(o) {
|
|
3161
3161
|
var i = o.ownerDocument || o;
|
|
3162
3162
|
return i.defaultView || i.parentWindow || t;
|
|
3163
3163
|
}
|
|
3164
|
-
var
|
|
3164
|
+
var Fn = /mobile|tablet|ip(ad|hone|od)|android/i, as = "ontouchstart" in t, qn = st(t, "PointerEvent") !== r, jn = as && Fn.test(navigator.userAgent), Ue = "touch", Gn = "pen", At = "mouse", Yn = "kinect", Wn = 25, H = 1, Ce = 2, O = 4, q = 8, nt = 1, Re = 2, Be = 4, $e = 8, ze = 16, te = Re | Be, _e = $e | ze, ls = te | _e, cs = ["x", "y"], ot = ["clientX", "clientY"];
|
|
3165
3165
|
function Y(o, i) {
|
|
3166
3166
|
var l = this;
|
|
3167
3167
|
this.manager = o, this.callback = i, this.element = o.element, this.target = o.options.inputTarget, this.domHandler = function(p) {
|
|
@@ -3185,30 +3185,30 @@ function xi() {
|
|
|
3185
3185
|
* unbind the events
|
|
3186
3186
|
*/
|
|
3187
3187
|
destroy: function() {
|
|
3188
|
-
this.evEl &&
|
|
3188
|
+
this.evEl && K(this.element, this.evEl, this.domHandler), this.evTarget && K(this.target, this.evTarget, this.domHandler), this.evWin && K(is(this.element), this.evWin, this.domHandler);
|
|
3189
3189
|
}
|
|
3190
3190
|
};
|
|
3191
|
-
function
|
|
3191
|
+
function Xn(o) {
|
|
3192
3192
|
var i, l = o.options.inputClass;
|
|
3193
|
-
return l ? i = l :
|
|
3193
|
+
return l ? i = l : qn ? i = Nt : jn ? i = at : as ? i = Ot : i = it, new i(o, Zn);
|
|
3194
3194
|
}
|
|
3195
|
-
function
|
|
3196
|
-
var p = l.pointers.length, m = l.changedPointers.length, E = i &
|
|
3197
|
-
l.isFirst = !!E, l.isFinal = !!w, E && (o.session = {}), l.eventType = i,
|
|
3195
|
+
function Zn(o, i, l) {
|
|
3196
|
+
var p = l.pointers.length, m = l.changedPointers.length, E = i & H && p - m === 0, w = i & (O | q) && p - m === 0;
|
|
3197
|
+
l.isFirst = !!E, l.isFinal = !!w, E && (o.session = {}), l.eventType = i, Kn(o, l), o.emit("hammer.input", l), o.recognize(l), o.session.prevInput = l;
|
|
3198
3198
|
}
|
|
3199
|
-
function
|
|
3199
|
+
function Kn(o, i) {
|
|
3200
3200
|
var l = o.session, p = i.pointers, m = p.length;
|
|
3201
3201
|
l.firstInput || (l.firstInput = us(i)), m > 1 && !l.firstMultiple ? l.firstMultiple = us(i) : m === 1 && (l.firstMultiple = !1);
|
|
3202
|
-
var E = l.firstInput, w = l.firstMultiple,
|
|
3203
|
-
i.timeStamp = g(), i.deltaTime = i.timeStamp - E.timeStamp, i.angle = Mt(
|
|
3204
|
-
var
|
|
3205
|
-
i.overallVelocityX =
|
|
3202
|
+
var E = l.firstInput, w = l.firstMultiple, V = w ? w.center : E.center, R = i.center = ds(p);
|
|
3203
|
+
i.timeStamp = g(), i.deltaTime = i.timeStamp - E.timeStamp, i.angle = Mt(V, R), i.distance = rt(V, R), Qn(l, i), i.offsetDirection = ps(i.deltaX, i.deltaY);
|
|
3204
|
+
var F = hs(i.deltaTime, i.deltaX, i.deltaY);
|
|
3205
|
+
i.overallVelocityX = F.x, i.overallVelocityY = F.y, i.overallVelocity = f(F.x) > f(F.y) ? F.x : F.y, i.scale = w ? to(w.pointers, p) : 1, i.rotation = w ? eo(w.pointers, p) : 0, i.maxPointers = l.prevInput ? i.pointers.length > l.prevInput.maxPointers ? i.pointers.length : l.prevInput.maxPointers : i.pointers.length, Jn(l, i);
|
|
3206
3206
|
var ne = o.element;
|
|
3207
3207
|
ce(i.srcEvent.target, ne) && (ne = i.srcEvent.target), i.target = ne;
|
|
3208
3208
|
}
|
|
3209
3209
|
function Qn(o, i) {
|
|
3210
3210
|
var l = i.center, p = o.offsetDelta || {}, m = o.prevDelta || {}, E = o.prevInput || {};
|
|
3211
|
-
(i.eventType ===
|
|
3211
|
+
(i.eventType === H || E.eventType === O) && (m = o.prevDelta = {
|
|
3212
3212
|
x: E.deltaX || 0,
|
|
3213
3213
|
y: E.deltaY || 0
|
|
3214
3214
|
}, p = o.offsetDelta = {
|
|
@@ -3216,14 +3216,14 @@ function xi() {
|
|
|
3216
3216
|
y: l.y
|
|
3217
3217
|
}), i.deltaX = m.x + (l.x - p.x), i.deltaY = m.y + (l.y - p.y);
|
|
3218
3218
|
}
|
|
3219
|
-
function
|
|
3220
|
-
var l = o.lastInterval || i, p = i.timeStamp - l.timeStamp, m, E, w,
|
|
3221
|
-
if (i.eventType != q && (p >
|
|
3222
|
-
var
|
|
3223
|
-
E = ne.x, w = ne.y, m = f(ne.x) > f(ne.y) ? ne.x : ne.y,
|
|
3219
|
+
function Jn(o, i) {
|
|
3220
|
+
var l = o.lastInterval || i, p = i.timeStamp - l.timeStamp, m, E, w, V;
|
|
3221
|
+
if (i.eventType != q && (p > Wn || l.velocity === r)) {
|
|
3222
|
+
var R = i.deltaX - l.deltaX, F = i.deltaY - l.deltaY, ne = hs(p, R, F);
|
|
3223
|
+
E = ne.x, w = ne.y, m = f(ne.x) > f(ne.y) ? ne.x : ne.y, V = ps(R, F), o.lastInterval = i;
|
|
3224
3224
|
} else
|
|
3225
|
-
m = l.velocity, E = l.velocityX, w = l.velocityY,
|
|
3226
|
-
i.velocity = m, i.velocityX = E, i.velocityY = w, i.direction =
|
|
3225
|
+
m = l.velocity, E = l.velocityX, w = l.velocityY, V = l.direction;
|
|
3226
|
+
i.velocity = m, i.velocityX = E, i.velocityY = w, i.direction = V;
|
|
3227
3227
|
}
|
|
3228
3228
|
function us(o) {
|
|
3229
3229
|
for (var i = [], l = 0; l < o.pointers.length; )
|
|
@@ -3260,9 +3260,9 @@ function xi() {
|
|
|
3260
3260
|
};
|
|
3261
3261
|
}
|
|
3262
3262
|
function ps(o, i) {
|
|
3263
|
-
return o === i ?
|
|
3263
|
+
return o === i ? nt : f(o) >= f(i) ? o < 0 ? Re : Be : i < 0 ? $e : ze;
|
|
3264
3264
|
}
|
|
3265
|
-
function
|
|
3265
|
+
function rt(o, i, l) {
|
|
3266
3266
|
l || (l = cs);
|
|
3267
3267
|
var p = i[l[0]] - o[l[0]], m = i[l[1]] - o[l[1]];
|
|
3268
3268
|
return Math.sqrt(p * p + m * m);
|
|
@@ -3272,82 +3272,82 @@ function xi() {
|
|
|
3272
3272
|
var p = i[l[0]] - o[l[0]], m = i[l[1]] - o[l[1]];
|
|
3273
3273
|
return Math.atan2(m, p) * 180 / Math.PI;
|
|
3274
3274
|
}
|
|
3275
|
-
function Jn(o, i) {
|
|
3276
|
-
return Mt(i[1], i[0], nt) + Mt(o[1], o[0], nt);
|
|
3277
|
-
}
|
|
3278
3275
|
function eo(o, i) {
|
|
3279
|
-
return
|
|
3276
|
+
return Mt(i[1], i[0], ot) + Mt(o[1], o[0], ot);
|
|
3277
|
+
}
|
|
3278
|
+
function to(o, i) {
|
|
3279
|
+
return rt(i[0], i[1], ot) / rt(o[0], o[1], ot);
|
|
3280
3280
|
}
|
|
3281
|
-
var
|
|
3282
|
-
mousedown:
|
|
3281
|
+
var so = {
|
|
3282
|
+
mousedown: H,
|
|
3283
3283
|
mousemove: Ce,
|
|
3284
|
-
mouseup:
|
|
3285
|
-
},
|
|
3286
|
-
function
|
|
3287
|
-
this.evEl =
|
|
3284
|
+
mouseup: O
|
|
3285
|
+
}, no = "mousedown", oo = "mousemove mouseup";
|
|
3286
|
+
function it() {
|
|
3287
|
+
this.evEl = no, this.evWin = oo, this.pressed = !1, Y.apply(this, arguments);
|
|
3288
3288
|
}
|
|
3289
|
-
|
|
3289
|
+
b(it, Y, {
|
|
3290
3290
|
/**
|
|
3291
3291
|
* handle mouse events
|
|
3292
3292
|
* @param {Object} ev
|
|
3293
3293
|
*/
|
|
3294
3294
|
handler: function(i) {
|
|
3295
|
-
var l =
|
|
3296
|
-
l &
|
|
3295
|
+
var l = so[i.type];
|
|
3296
|
+
l & H && i.button === 0 && (this.pressed = !0), l & Ce && i.which !== 1 && (l = O), this.pressed && (l & O && (this.pressed = !1), this.callback(this.manager, l, {
|
|
3297
3297
|
pointers: [i],
|
|
3298
3298
|
changedPointers: [i],
|
|
3299
|
-
pointerType:
|
|
3299
|
+
pointerType: At,
|
|
3300
3300
|
srcEvent: i
|
|
3301
3301
|
}));
|
|
3302
3302
|
}
|
|
3303
3303
|
});
|
|
3304
|
-
var
|
|
3305
|
-
pointerdown:
|
|
3304
|
+
var ro = {
|
|
3305
|
+
pointerdown: H,
|
|
3306
3306
|
pointermove: Ce,
|
|
3307
|
-
pointerup:
|
|
3307
|
+
pointerup: O,
|
|
3308
3308
|
pointercancel: q,
|
|
3309
3309
|
pointerout: q
|
|
3310
|
-
},
|
|
3310
|
+
}, io = {
|
|
3311
3311
|
2: Ue,
|
|
3312
|
-
3:
|
|
3313
|
-
4:
|
|
3314
|
-
5:
|
|
3312
|
+
3: Gn,
|
|
3313
|
+
4: At,
|
|
3314
|
+
5: Yn
|
|
3315
3315
|
// see https://twitter.com/jacobrossi/status/480596438489890816
|
|
3316
3316
|
}, fs = "pointerdown", gs = "pointermove pointerup pointercancel";
|
|
3317
3317
|
t.MSPointerEvent && !t.PointerEvent && (fs = "MSPointerDown", gs = "MSPointerMove MSPointerUp MSPointerCancel");
|
|
3318
|
-
function
|
|
3318
|
+
function Nt() {
|
|
3319
3319
|
this.evEl = fs, this.evWin = gs, Y.apply(this, arguments), this.store = this.manager.session.pointerEvents = [];
|
|
3320
3320
|
}
|
|
3321
|
-
|
|
3321
|
+
b(Nt, Y, {
|
|
3322
3322
|
/**
|
|
3323
3323
|
* handle mouse events
|
|
3324
3324
|
* @param {Object} ev
|
|
3325
3325
|
*/
|
|
3326
3326
|
handler: function(i) {
|
|
3327
|
-
var l = this.store, p = !1, m = i.type.toLowerCase().replace("ms", ""), E =
|
|
3328
|
-
E &
|
|
3327
|
+
var l = this.store, p = !1, m = i.type.toLowerCase().replace("ms", ""), E = ro[m], w = io[i.pointerType] || i.pointerType, V = w == Ue, R = we(l, i.pointerId, "pointerId");
|
|
3328
|
+
E & H && (i.button === 0 || V) ? R < 0 && (l.push(i), R = l.length - 1) : E & (O | q) && (p = !0), !(R < 0) && (l[R] = i, this.callback(this.manager, E, {
|
|
3329
3329
|
pointers: l,
|
|
3330
3330
|
changedPointers: [i],
|
|
3331
3331
|
pointerType: w,
|
|
3332
3332
|
srcEvent: i
|
|
3333
|
-
}), p && l.splice(
|
|
3333
|
+
}), p && l.splice(R, 1));
|
|
3334
3334
|
}
|
|
3335
3335
|
});
|
|
3336
|
-
var
|
|
3337
|
-
touchstart:
|
|
3336
|
+
var ao = {
|
|
3337
|
+
touchstart: H,
|
|
3338
3338
|
touchmove: Ce,
|
|
3339
|
-
touchend:
|
|
3339
|
+
touchend: O,
|
|
3340
3340
|
touchcancel: q
|
|
3341
|
-
},
|
|
3341
|
+
}, lo = "touchstart", co = "touchstart touchmove touchend touchcancel";
|
|
3342
3342
|
function ms() {
|
|
3343
|
-
this.evTarget =
|
|
3343
|
+
this.evTarget = lo, this.evWin = co, this.started = !1, Y.apply(this, arguments);
|
|
3344
3344
|
}
|
|
3345
|
-
|
|
3345
|
+
b(ms, Y, {
|
|
3346
3346
|
handler: function(i) {
|
|
3347
|
-
var l =
|
|
3348
|
-
if (l ===
|
|
3349
|
-
var p =
|
|
3350
|
-
l & (
|
|
3347
|
+
var l = ao[i.type];
|
|
3348
|
+
if (l === H && (this.started = !0), !!this.started) {
|
|
3349
|
+
var p = uo.call(this, i, l);
|
|
3350
|
+
l & (O | q) && p[0].length - p[1].length === 0 && (this.started = !1), this.callback(this.manager, l, {
|
|
3351
3351
|
pointers: p[0],
|
|
3352
3352
|
changedPointers: p[1],
|
|
3353
3353
|
pointerType: Ue,
|
|
@@ -3356,22 +3356,22 @@ function xi() {
|
|
|
3356
3356
|
}
|
|
3357
3357
|
}
|
|
3358
3358
|
});
|
|
3359
|
-
function
|
|
3360
|
-
var l =
|
|
3361
|
-
return i & (
|
|
3359
|
+
function uo(o, i) {
|
|
3360
|
+
var l = tt(o.touches), p = tt(o.changedTouches);
|
|
3361
|
+
return i & (O | q) && (l = rs(l.concat(p), "identifier")), [l, p];
|
|
3362
3362
|
}
|
|
3363
|
-
var
|
|
3364
|
-
touchstart:
|
|
3363
|
+
var ho = {
|
|
3364
|
+
touchstart: H,
|
|
3365
3365
|
touchmove: Ce,
|
|
3366
|
-
touchend:
|
|
3366
|
+
touchend: O,
|
|
3367
3367
|
touchcancel: q
|
|
3368
|
-
},
|
|
3369
|
-
function
|
|
3370
|
-
this.evTarget =
|
|
3368
|
+
}, po = "touchstart touchmove touchend touchcancel";
|
|
3369
|
+
function at() {
|
|
3370
|
+
this.evTarget = po, this.targetIds = {}, Y.apply(this, arguments);
|
|
3371
3371
|
}
|
|
3372
|
-
|
|
3372
|
+
b(at, Y, {
|
|
3373
3373
|
handler: function(i) {
|
|
3374
|
-
var l =
|
|
3374
|
+
var l = ho[i.type], p = fo.call(this, i, l);
|
|
3375
3375
|
p && this.callback(this.manager, l, {
|
|
3376
3376
|
pointers: p[0],
|
|
3377
3377
|
changedPointers: p[1],
|
|
@@ -3380,32 +3380,32 @@ function xi() {
|
|
|
3380
3380
|
});
|
|
3381
3381
|
}
|
|
3382
3382
|
});
|
|
3383
|
-
function
|
|
3384
|
-
var l =
|
|
3385
|
-
if (i & (
|
|
3383
|
+
function fo(o, i) {
|
|
3384
|
+
var l = tt(o.touches), p = this.targetIds;
|
|
3385
|
+
if (i & (H | Ce) && l.length === 1)
|
|
3386
3386
|
return p[l[0].identifier] = !0, [l, l];
|
|
3387
|
-
var m, E, w =
|
|
3388
|
-
if (E = l.filter(function(
|
|
3389
|
-
return ce(
|
|
3390
|
-
}), i ===
|
|
3387
|
+
var m, E, w = tt(o.changedTouches), V = [], R = this.target;
|
|
3388
|
+
if (E = l.filter(function(F) {
|
|
3389
|
+
return ce(F.target, R);
|
|
3390
|
+
}), i === H)
|
|
3391
3391
|
for (m = 0; m < E.length; )
|
|
3392
3392
|
p[E[m].identifier] = !0, m++;
|
|
3393
3393
|
for (m = 0; m < w.length; )
|
|
3394
|
-
p[w[m].identifier] &&
|
|
3395
|
-
if (
|
|
3394
|
+
p[w[m].identifier] && V.push(w[m]), i & (O | q) && delete p[w[m].identifier], m++;
|
|
3395
|
+
if (V.length)
|
|
3396
3396
|
return [
|
|
3397
3397
|
// merge targetTouches with changedTargetTouches so it contains ALL touches, including 'end' and 'cancel'
|
|
3398
|
-
rs(E.concat(
|
|
3399
|
-
|
|
3398
|
+
rs(E.concat(V), "identifier"),
|
|
3399
|
+
V
|
|
3400
3400
|
];
|
|
3401
3401
|
}
|
|
3402
|
-
var
|
|
3403
|
-
function
|
|
3402
|
+
var go = 2500, vs = 25;
|
|
3403
|
+
function Ot() {
|
|
3404
3404
|
Y.apply(this, arguments);
|
|
3405
|
-
var o =
|
|
3406
|
-
this.touch = new
|
|
3405
|
+
var o = N(this.handler, this);
|
|
3406
|
+
this.touch = new at(this.manager, o), this.mouse = new it(this.manager, o), this.primaryTouch = null, this.lastTouches = [];
|
|
3407
3407
|
}
|
|
3408
|
-
|
|
3408
|
+
b(Ot, Y, {
|
|
3409
3409
|
/**
|
|
3410
3410
|
* handle mouse and touch events
|
|
3411
3411
|
* @param {Hammer} manager
|
|
@@ -3413,11 +3413,11 @@ function xi() {
|
|
|
3413
3413
|
* @param {Object} inputData
|
|
3414
3414
|
*/
|
|
3415
3415
|
handler: function(i, l, p) {
|
|
3416
|
-
var m = p.pointerType == Ue, E = p.pointerType ==
|
|
3416
|
+
var m = p.pointerType == Ue, E = p.pointerType == At;
|
|
3417
3417
|
if (!(E && p.sourceCapabilities && p.sourceCapabilities.firesTouchEvents)) {
|
|
3418
3418
|
if (m)
|
|
3419
|
-
|
|
3420
|
-
else if (E &&
|
|
3419
|
+
mo.call(this, l, p);
|
|
3420
|
+
else if (E && vo.call(this, p))
|
|
3421
3421
|
return;
|
|
3422
3422
|
this.callback(i, l, p);
|
|
3423
3423
|
}
|
|
@@ -3429,8 +3429,8 @@ function xi() {
|
|
|
3429
3429
|
this.touch.destroy(), this.mouse.destroy();
|
|
3430
3430
|
}
|
|
3431
3431
|
});
|
|
3432
|
-
function
|
|
3433
|
-
o &
|
|
3432
|
+
function mo(o, i) {
|
|
3433
|
+
o & H ? (this.primaryTouch = i.changedPointers[0].identifier, ys.call(this, i)) : o & (O | q) && ys.call(this, i);
|
|
3434
3434
|
}
|
|
3435
3435
|
function ys(o) {
|
|
3436
3436
|
var i = o.changedPointers[0];
|
|
@@ -3441,10 +3441,10 @@ function xi() {
|
|
|
3441
3441
|
var E = p.indexOf(l);
|
|
3442
3442
|
E > -1 && p.splice(E, 1);
|
|
3443
3443
|
};
|
|
3444
|
-
setTimeout(m,
|
|
3444
|
+
setTimeout(m, go);
|
|
3445
3445
|
}
|
|
3446
3446
|
}
|
|
3447
|
-
function
|
|
3447
|
+
function vo(o) {
|
|
3448
3448
|
for (var i = o.srcEvent.clientX, l = o.srcEvent.clientY, p = 0; p < this.lastTouches.length; p++) {
|
|
3449
3449
|
var m = this.lastTouches[p], E = Math.abs(i - m.x), w = Math.abs(l - m.y);
|
|
3450
3450
|
if (E <= vs && w <= vs)
|
|
@@ -3452,17 +3452,17 @@ function xi() {
|
|
|
3452
3452
|
}
|
|
3453
3453
|
return !1;
|
|
3454
3454
|
}
|
|
3455
|
-
var Es =
|
|
3456
|
-
function
|
|
3455
|
+
var Es = st(c.style, "touchAction"), Ss = Es !== r, Ts = "compute", Cs = "auto", kt = "manipulation", be = "none", He = "pan-x", Fe = "pan-y", lt = Eo();
|
|
3456
|
+
function Lt(o, i) {
|
|
3457
3457
|
this.manager = o, this.set(i);
|
|
3458
3458
|
}
|
|
3459
|
-
|
|
3459
|
+
Lt.prototype = {
|
|
3460
3460
|
/**
|
|
3461
3461
|
* set the touchAction value on the element or enable the polyfill
|
|
3462
3462
|
* @param {String} value
|
|
3463
3463
|
*/
|
|
3464
3464
|
set: function(o) {
|
|
3465
|
-
o == Ts && (o = this.compute()), Ss && this.manager.element.style &&
|
|
3465
|
+
o == Ts && (o = this.compute()), Ss && this.manager.element.style && lt[o] && (this.manager.element.style[Es] = o), this.actions = o.toLowerCase().trim();
|
|
3466
3466
|
},
|
|
3467
3467
|
/**
|
|
3468
3468
|
* just re-set the touchAction value
|
|
@@ -3478,7 +3478,7 @@ function xi() {
|
|
|
3478
3478
|
var o = [];
|
|
3479
3479
|
return _(this.manager.recognizers, function(i) {
|
|
3480
3480
|
le(i.options.enable, [i]) && (o = o.concat(i.getTouchAction()));
|
|
3481
|
-
}),
|
|
3481
|
+
}), yo(o.join(" "));
|
|
3482
3482
|
},
|
|
3483
3483
|
/**
|
|
3484
3484
|
* this method is called on each input cycle and provides the preventing of the browser behavior
|
|
@@ -3490,10 +3490,10 @@ function xi() {
|
|
|
3490
3490
|
i.preventDefault();
|
|
3491
3491
|
return;
|
|
3492
3492
|
}
|
|
3493
|
-
var p = this.actions, m = G(p, be) && !
|
|
3493
|
+
var p = this.actions, m = G(p, be) && !lt[be], E = G(p, Fe) && !lt[Fe], w = G(p, He) && !lt[He];
|
|
3494
3494
|
if (m) {
|
|
3495
|
-
var
|
|
3496
|
-
if (
|
|
3495
|
+
var V = o.pointers.length === 1, R = o.distance < 2, F = o.deltaTime < 250;
|
|
3496
|
+
if (V && R && F)
|
|
3497
3497
|
return;
|
|
3498
3498
|
}
|
|
3499
3499
|
if (!(w && E) && (m || E && l & te || w && l & _e))
|
|
@@ -3507,13 +3507,13 @@ function xi() {
|
|
|
3507
3507
|
this.manager.session.prevented = !0, o.preventDefault();
|
|
3508
3508
|
}
|
|
3509
3509
|
};
|
|
3510
|
-
function
|
|
3510
|
+
function yo(o) {
|
|
3511
3511
|
if (G(o, be))
|
|
3512
3512
|
return be;
|
|
3513
3513
|
var i = G(o, He), l = G(o, Fe);
|
|
3514
|
-
return i && l ? be : i || l ? i ? He : Fe : G(o,
|
|
3514
|
+
return i && l ? be : i || l ? i ? He : Fe : G(o, kt) ? kt : Cs;
|
|
3515
3515
|
}
|
|
3516
|
-
function
|
|
3516
|
+
function Eo() {
|
|
3517
3517
|
if (!Ss)
|
|
3518
3518
|
return !1;
|
|
3519
3519
|
var o = {}, i = t.CSS && t.CSS.supports;
|
|
@@ -3521,9 +3521,9 @@ function xi() {
|
|
|
3521
3521
|
o[l] = i ? t.CSS.supports("touch-action", l) : !0;
|
|
3522
3522
|
}), o;
|
|
3523
3523
|
}
|
|
3524
|
-
var
|
|
3524
|
+
var ct = 1, W = 2, De = 4, Ee = 8, ue = Ee, qe = 16, se = 32;
|
|
3525
3525
|
function de(o) {
|
|
3526
|
-
this.options = P({}, this.defaults, o || {}), this.id =
|
|
3526
|
+
this.options = P({}, this.defaults, o || {}), this.id = Hn(), this.manager = null, this.options.enable = Ve(this.options.enable, !0), this.state = ct, this.simultaneous = {}, this.requireFail = [];
|
|
3527
3527
|
}
|
|
3528
3528
|
de.prototype = {
|
|
3529
3529
|
/**
|
|
@@ -3545,10 +3545,10 @@ function xi() {
|
|
|
3545
3545
|
* @returns {Recognizer} this
|
|
3546
3546
|
*/
|
|
3547
3547
|
recognizeWith: function(o) {
|
|
3548
|
-
if (
|
|
3548
|
+
if (T(o, "recognizeWith", this))
|
|
3549
3549
|
return this;
|
|
3550
3550
|
var i = this.simultaneous;
|
|
3551
|
-
return o =
|
|
3551
|
+
return o = ut(o, this), i[o.id] || (i[o.id] = o, o.recognizeWith(this)), this;
|
|
3552
3552
|
},
|
|
3553
3553
|
/**
|
|
3554
3554
|
* drop the simultaneous link. it doesnt remove the link on the other recognizer.
|
|
@@ -3556,7 +3556,7 @@ function xi() {
|
|
|
3556
3556
|
* @returns {Recognizer} this
|
|
3557
3557
|
*/
|
|
3558
3558
|
dropRecognizeWith: function(o) {
|
|
3559
|
-
return
|
|
3559
|
+
return T(o, "dropRecognizeWith", this) ? this : (o = ut(o, this), delete this.simultaneous[o.id], this);
|
|
3560
3560
|
},
|
|
3561
3561
|
/**
|
|
3562
3562
|
* recognizer can only run when an other is failing
|
|
@@ -3564,10 +3564,10 @@ function xi() {
|
|
|
3564
3564
|
* @returns {Recognizer} this
|
|
3565
3565
|
*/
|
|
3566
3566
|
requireFailure: function(o) {
|
|
3567
|
-
if (
|
|
3567
|
+
if (T(o, "requireFailure", this))
|
|
3568
3568
|
return this;
|
|
3569
3569
|
var i = this.requireFail;
|
|
3570
|
-
return o =
|
|
3570
|
+
return o = ut(o, this), we(i, o) === -1 && (i.push(o), o.requireFailure(this)), this;
|
|
3571
3571
|
},
|
|
3572
3572
|
/**
|
|
3573
3573
|
* drop the requireFailure link. it does not remove the link on the other recognizer.
|
|
@@ -3575,10 +3575,10 @@ function xi() {
|
|
|
3575
3575
|
* @returns {Recognizer} this
|
|
3576
3576
|
*/
|
|
3577
3577
|
dropRequireFailure: function(o) {
|
|
3578
|
-
if (
|
|
3578
|
+
if (T(o, "dropRequireFailure", this))
|
|
3579
3579
|
return this;
|
|
3580
|
-
o =
|
|
3581
|
-
var i =
|
|
3580
|
+
o = ut(o, this);
|
|
3581
|
+
var i = we(this.requireFail, o);
|
|
3582
3582
|
return i > -1 && this.requireFail.splice(i, 1), this;
|
|
3583
3583
|
},
|
|
3584
3584
|
/**
|
|
@@ -3625,7 +3625,7 @@ function xi() {
|
|
|
3625
3625
|
*/
|
|
3626
3626
|
canEmit: function() {
|
|
3627
3627
|
for (var o = 0; o < this.requireFail.length; ) {
|
|
3628
|
-
if (!(this.requireFail[o].state & (se |
|
|
3628
|
+
if (!(this.requireFail[o].state & (se | ct)))
|
|
3629
3629
|
return !1;
|
|
3630
3630
|
o++;
|
|
3631
3631
|
}
|
|
@@ -3641,7 +3641,7 @@ function xi() {
|
|
|
3641
3641
|
this.reset(), this.state = se;
|
|
3642
3642
|
return;
|
|
3643
3643
|
}
|
|
3644
|
-
this.state & (ue | qe | se) && (this.state =
|
|
3644
|
+
this.state & (ue | qe | se) && (this.state = ct), this.state = this.process(i), this.state & (W | De | Ee | qe) && this.tryEmit(i);
|
|
3645
3645
|
},
|
|
3646
3646
|
/**
|
|
3647
3647
|
* return the state of the recognizer
|
|
@@ -3669,19 +3669,19 @@ function xi() {
|
|
|
3669
3669
|
}
|
|
3670
3670
|
};
|
|
3671
3671
|
function _s(o) {
|
|
3672
|
-
return o & qe ? "cancel" : o & Ee ? "end" : o &
|
|
3672
|
+
return o & qe ? "cancel" : o & Ee ? "end" : o & De ? "move" : o & W ? "start" : "";
|
|
3673
3673
|
}
|
|
3674
3674
|
function bs(o) {
|
|
3675
3675
|
return o == ze ? "down" : o == $e ? "up" : o == Re ? "left" : o == Be ? "right" : "";
|
|
3676
3676
|
}
|
|
3677
|
-
function
|
|
3677
|
+
function ut(o, i) {
|
|
3678
3678
|
var l = i.manager;
|
|
3679
3679
|
return l ? l.get(o) : o;
|
|
3680
3680
|
}
|
|
3681
|
-
function
|
|
3681
|
+
function Q() {
|
|
3682
3682
|
de.apply(this, arguments);
|
|
3683
3683
|
}
|
|
3684
|
-
|
|
3684
|
+
b(Q, de, {
|
|
3685
3685
|
/**
|
|
3686
3686
|
* @namespace
|
|
3687
3687
|
* @memberof AttrRecognizer
|
|
@@ -3710,14 +3710,14 @@ function xi() {
|
|
|
3710
3710
|
* @returns {*} State
|
|
3711
3711
|
*/
|
|
3712
3712
|
process: function(o) {
|
|
3713
|
-
var i = this.state, l = o.eventType, p = i & (W |
|
|
3714
|
-
return p && (l & q || !m) ? i | qe : p || m ? l &
|
|
3713
|
+
var i = this.state, l = o.eventType, p = i & (W | De), m = this.attrTest(o);
|
|
3714
|
+
return p && (l & q || !m) ? i | qe : p || m ? l & O ? i | Ee : i & W ? i | De : W : se;
|
|
3715
3715
|
}
|
|
3716
3716
|
});
|
|
3717
|
-
function
|
|
3718
|
-
|
|
3717
|
+
function dt() {
|
|
3718
|
+
Q.apply(this, arguments), this.pX = null, this.pY = null;
|
|
3719
3719
|
}
|
|
3720
|
-
|
|
3720
|
+
b(dt, Q, {
|
|
3721
3721
|
/**
|
|
3722
3722
|
* @namespace
|
|
3723
3723
|
* @memberof PanRecognizer
|
|
@@ -3734,10 +3734,10 @@ function xi() {
|
|
|
3734
3734
|
},
|
|
3735
3735
|
directionTest: function(o) {
|
|
3736
3736
|
var i = this.options, l = !0, p = o.distance, m = o.direction, E = o.deltaX, w = o.deltaY;
|
|
3737
|
-
return m & i.direction || (i.direction & te ? (m = E === 0 ?
|
|
3737
|
+
return m & i.direction || (i.direction & te ? (m = E === 0 ? nt : E < 0 ? Re : Be, l = E != this.pX, p = Math.abs(o.deltaX)) : (m = w === 0 ? nt : w < 0 ? $e : ze, l = w != this.pY, p = Math.abs(o.deltaY))), o.direction = m, l && p > i.threshold && m & i.direction;
|
|
3738
3738
|
},
|
|
3739
3739
|
attrTest: function(o) {
|
|
3740
|
-
return
|
|
3740
|
+
return Q.prototype.attrTest.call(this, o) && (this.state & W || !(this.state & W) && this.directionTest(o));
|
|
3741
3741
|
},
|
|
3742
3742
|
emit: function(o) {
|
|
3743
3743
|
this.pX = o.deltaX, this.pY = o.deltaY;
|
|
@@ -3745,10 +3745,10 @@ function xi() {
|
|
|
3745
3745
|
i && (o.additionalEvent = this.options.event + i), this._super.emit.call(this, o);
|
|
3746
3746
|
}
|
|
3747
3747
|
});
|
|
3748
|
-
function
|
|
3749
|
-
|
|
3748
|
+
function Vt() {
|
|
3749
|
+
Q.apply(this, arguments);
|
|
3750
3750
|
}
|
|
3751
|
-
|
|
3751
|
+
b(Vt, Q, {
|
|
3752
3752
|
/**
|
|
3753
3753
|
* @namespace
|
|
3754
3754
|
* @memberof PinchRecognizer
|
|
@@ -3772,10 +3772,10 @@ function xi() {
|
|
|
3772
3772
|
this._super.emit.call(this, o);
|
|
3773
3773
|
}
|
|
3774
3774
|
});
|
|
3775
|
-
function
|
|
3775
|
+
function Ut() {
|
|
3776
3776
|
de.apply(this, arguments), this._timer = null, this._input = null;
|
|
3777
3777
|
}
|
|
3778
|
-
|
|
3778
|
+
b(Ut, de, {
|
|
3779
3779
|
/**
|
|
3780
3780
|
* @namespace
|
|
3781
3781
|
* @memberof PressRecognizer
|
|
@@ -3793,13 +3793,13 @@ function xi() {
|
|
|
3793
3793
|
},
|
|
3794
3794
|
process: function(o) {
|
|
3795
3795
|
var i = this.options, l = o.pointers.length === i.pointers, p = o.distance < i.threshold, m = o.deltaTime > i.time;
|
|
3796
|
-
if (this._input = o, !p || !l || o.eventType & (
|
|
3796
|
+
if (this._input = o, !p || !l || o.eventType & (O | q) && !m)
|
|
3797
3797
|
this.reset();
|
|
3798
|
-
else if (o.eventType &
|
|
3798
|
+
else if (o.eventType & H)
|
|
3799
3799
|
this.reset(), this._timer = v(function() {
|
|
3800
3800
|
this.state = ue, this.tryEmit();
|
|
3801
3801
|
}, i.time, this);
|
|
3802
|
-
else if (o.eventType &
|
|
3802
|
+
else if (o.eventType & O)
|
|
3803
3803
|
return ue;
|
|
3804
3804
|
return se;
|
|
3805
3805
|
},
|
|
@@ -3807,13 +3807,13 @@ function xi() {
|
|
|
3807
3807
|
clearTimeout(this._timer);
|
|
3808
3808
|
},
|
|
3809
3809
|
emit: function(o) {
|
|
3810
|
-
this.state === ue && (o && o.eventType &
|
|
3810
|
+
this.state === ue && (o && o.eventType & O ? this.manager.emit(this.options.event + "up", o) : (this._input.timeStamp = g(), this.manager.emit(this.options.event, this._input)));
|
|
3811
3811
|
}
|
|
3812
3812
|
});
|
|
3813
|
-
function
|
|
3814
|
-
|
|
3813
|
+
function Rt() {
|
|
3814
|
+
Q.apply(this, arguments);
|
|
3815
3815
|
}
|
|
3816
|
-
|
|
3816
|
+
b(Rt, Q, {
|
|
3817
3817
|
/**
|
|
3818
3818
|
* @namespace
|
|
3819
3819
|
* @memberof RotateRecognizer
|
|
@@ -3830,10 +3830,10 @@ function xi() {
|
|
|
3830
3830
|
return this._super.attrTest.call(this, o) && (Math.abs(o.rotation) > this.options.threshold || this.state & W);
|
|
3831
3831
|
}
|
|
3832
3832
|
});
|
|
3833
|
-
function
|
|
3834
|
-
|
|
3833
|
+
function Bt() {
|
|
3834
|
+
Q.apply(this, arguments);
|
|
3835
3835
|
}
|
|
3836
|
-
|
|
3836
|
+
b(Bt, Q, {
|
|
3837
3837
|
/**
|
|
3838
3838
|
* @namespace
|
|
3839
3839
|
* @memberof SwipeRecognizer
|
|
@@ -3846,21 +3846,21 @@ function xi() {
|
|
|
3846
3846
|
pointers: 1
|
|
3847
3847
|
},
|
|
3848
3848
|
getTouchAction: function() {
|
|
3849
|
-
return
|
|
3849
|
+
return dt.prototype.getTouchAction.call(this);
|
|
3850
3850
|
},
|
|
3851
3851
|
attrTest: function(o) {
|
|
3852
3852
|
var i = this.options.direction, l;
|
|
3853
|
-
return i & (te | _e) ? l = o.overallVelocity : i & te ? l = o.overallVelocityX : i & _e && (l = o.overallVelocityY), this._super.attrTest.call(this, o) && i & o.offsetDirection && o.distance > this.options.threshold && o.maxPointers == this.options.pointers && f(l) > this.options.velocity && o.eventType &
|
|
3853
|
+
return i & (te | _e) ? l = o.overallVelocity : i & te ? l = o.overallVelocityX : i & _e && (l = o.overallVelocityY), this._super.attrTest.call(this, o) && i & o.offsetDirection && o.distance > this.options.threshold && o.maxPointers == this.options.pointers && f(l) > this.options.velocity && o.eventType & O;
|
|
3854
3854
|
},
|
|
3855
3855
|
emit: function(o) {
|
|
3856
3856
|
var i = bs(o.offsetDirection);
|
|
3857
3857
|
i && this.manager.emit(this.options.event + i, o), this.manager.emit(this.options.event, o);
|
|
3858
3858
|
}
|
|
3859
3859
|
});
|
|
3860
|
-
function
|
|
3860
|
+
function ht() {
|
|
3861
3861
|
de.apply(this, arguments), this.pTime = !1, this.pCenter = !1, this._timer = null, this._input = null, this.count = 0;
|
|
3862
3862
|
}
|
|
3863
|
-
|
|
3863
|
+
b(ht, de, {
|
|
3864
3864
|
/**
|
|
3865
3865
|
* @namespace
|
|
3866
3866
|
* @memberof PinchRecognizer
|
|
@@ -3879,19 +3879,19 @@ function xi() {
|
|
|
3879
3879
|
// a multi-tap can be a bit off the initial position
|
|
3880
3880
|
},
|
|
3881
3881
|
getTouchAction: function() {
|
|
3882
|
-
return [
|
|
3882
|
+
return [kt];
|
|
3883
3883
|
},
|
|
3884
3884
|
process: function(o) {
|
|
3885
3885
|
var i = this.options, l = o.pointers.length === i.pointers, p = o.distance < i.threshold, m = o.deltaTime < i.time;
|
|
3886
|
-
if (this.reset(), o.eventType &
|
|
3886
|
+
if (this.reset(), o.eventType & H && this.count === 0)
|
|
3887
3887
|
return this.failTimeout();
|
|
3888
3888
|
if (p && m && l) {
|
|
3889
|
-
if (o.eventType !=
|
|
3889
|
+
if (o.eventType != O)
|
|
3890
3890
|
return this.failTimeout();
|
|
3891
|
-
var E = this.pTime ? o.timeStamp - this.pTime < i.interval : !0, w = !this.pCenter ||
|
|
3891
|
+
var E = this.pTime ? o.timeStamp - this.pTime < i.interval : !0, w = !this.pCenter || rt(this.pCenter, o.center) < i.posThreshold;
|
|
3892
3892
|
this.pTime = o.timeStamp, this.pCenter = o.center, !w || !E ? this.count = 1 : this.count += 1, this._input = o;
|
|
3893
|
-
var
|
|
3894
|
-
if (
|
|
3893
|
+
var V = this.count % i.taps;
|
|
3894
|
+
if (V === 0)
|
|
3895
3895
|
return this.hasRequireFailures() ? (this._timer = v(function() {
|
|
3896
3896
|
this.state = ue, this.tryEmit();
|
|
3897
3897
|
}, i.interval, this), W) : ue;
|
|
@@ -3911,7 +3911,7 @@ function xi() {
|
|
|
3911
3911
|
}
|
|
3912
3912
|
});
|
|
3913
3913
|
function Se(o, i) {
|
|
3914
|
-
return i = i || {}, i.recognizers = Ve(i.recognizers, Se.defaults.preset), new
|
|
3914
|
+
return i = i || {}, i.recognizers = Ve(i.recognizers, Se.defaults.preset), new $t(o, i);
|
|
3915
3915
|
}
|
|
3916
3916
|
Se.VERSION = "2.0.7", Se.defaults = {
|
|
3917
3917
|
/**
|
|
@@ -3954,13 +3954,13 @@ function xi() {
|
|
|
3954
3954
|
*/
|
|
3955
3955
|
preset: [
|
|
3956
3956
|
// RecognizerClass, options, [recognizeWith, ...], [requireFailure, ...]
|
|
3957
|
-
[
|
|
3958
|
-
[
|
|
3959
|
-
[
|
|
3960
|
-
[
|
|
3961
|
-
[
|
|
3962
|
-
[
|
|
3963
|
-
[
|
|
3957
|
+
[Rt, { enable: !1 }],
|
|
3958
|
+
[Vt, { enable: !1 }, ["rotate"]],
|
|
3959
|
+
[Bt, { direction: te }],
|
|
3960
|
+
[dt, { direction: te }, ["swipe"]],
|
|
3961
|
+
[ht],
|
|
3962
|
+
[ht, { event: "doubletap", taps: 2 }, ["tap"]],
|
|
3963
|
+
[Ut]
|
|
3964
3964
|
],
|
|
3965
3965
|
/**
|
|
3966
3966
|
* Some CSS properties can be used to improve the working of Hammer.
|
|
@@ -4009,14 +4009,14 @@ function xi() {
|
|
|
4009
4009
|
tapHighlightColor: "rgba(0,0,0,0)"
|
|
4010
4010
|
}
|
|
4011
4011
|
};
|
|
4012
|
-
var
|
|
4013
|
-
function
|
|
4014
|
-
this.options = P({}, Se.defaults, i || {}), this.options.inputTarget = this.options.inputTarget || o, this.handlers = {}, this.session = {}, this.recognizers = [], this.oldCssProps = {}, this.element = o, this.input =
|
|
4012
|
+
var So = 1, Is = 2;
|
|
4013
|
+
function $t(o, i) {
|
|
4014
|
+
this.options = P({}, Se.defaults, i || {}), this.options.inputTarget = this.options.inputTarget || o, this.handlers = {}, this.session = {}, this.recognizers = [], this.oldCssProps = {}, this.element = o, this.input = Xn(this), this.touchAction = new Lt(this, this.options.touchAction), Ps(this, !0), _(this.options.recognizers, function(l) {
|
|
4015
4015
|
var p = this.add(new l[0](l[1]));
|
|
4016
4016
|
l[2] && p.recognizeWith(l[2]), l[3] && p.requireFailure(l[3]);
|
|
4017
4017
|
}, this);
|
|
4018
4018
|
}
|
|
4019
|
-
|
|
4019
|
+
$t.prototype = {
|
|
4020
4020
|
/**
|
|
4021
4021
|
* set options
|
|
4022
4022
|
* @param {Object} options
|
|
@@ -4032,7 +4032,7 @@ function xi() {
|
|
|
4032
4032
|
* @param {Boolean} [force]
|
|
4033
4033
|
*/
|
|
4034
4034
|
stop: function(o) {
|
|
4035
|
-
this.session.stopped = o ? Is :
|
|
4035
|
+
this.session.stopped = o ? Is : So;
|
|
4036
4036
|
},
|
|
4037
4037
|
/**
|
|
4038
4038
|
* run the recognizers!
|
|
@@ -4049,7 +4049,7 @@ function xi() {
|
|
|
4049
4049
|
for (var E = 0; E < p.length; )
|
|
4050
4050
|
l = p[E], i.stopped !== Is && // 1
|
|
4051
4051
|
(!m || l == m || // 2
|
|
4052
|
-
l.canRecognizeWith(m)) ? l.recognize(o) : l.reset(), !m && l.state & (W |
|
|
4052
|
+
l.canRecognizeWith(m)) ? l.recognize(o) : l.reset(), !m && l.state & (W | De | Ee) && (m = i.curRecognizer = l), E++;
|
|
4053
4053
|
}
|
|
4054
4054
|
},
|
|
4055
4055
|
/**
|
|
@@ -4072,7 +4072,7 @@ function xi() {
|
|
|
4072
4072
|
* @returns {Recognizer|Manager}
|
|
4073
4073
|
*/
|
|
4074
4074
|
add: function(o) {
|
|
4075
|
-
if (
|
|
4075
|
+
if (T(o, "add", this))
|
|
4076
4076
|
return this;
|
|
4077
4077
|
var i = this.get(o.options.event);
|
|
4078
4078
|
return i && this.remove(i), this.recognizers.push(o), o.manager = this, this.touchAction.update(), o;
|
|
@@ -4083,10 +4083,10 @@ function xi() {
|
|
|
4083
4083
|
* @returns {Manager}
|
|
4084
4084
|
*/
|
|
4085
4085
|
remove: function(o) {
|
|
4086
|
-
if (
|
|
4086
|
+
if (T(o, "remove", this))
|
|
4087
4087
|
return this;
|
|
4088
4088
|
if (o = this.get(o), o) {
|
|
4089
|
-
var i = this.recognizers, l =
|
|
4089
|
+
var i = this.recognizers, l = we(i, o);
|
|
4090
4090
|
l !== -1 && (i.splice(l, 1), this.touchAction.update());
|
|
4091
4091
|
}
|
|
4092
4092
|
return this;
|
|
@@ -4100,7 +4100,7 @@ function xi() {
|
|
|
4100
4100
|
on: function(o, i) {
|
|
4101
4101
|
if (o !== r && i !== r) {
|
|
4102
4102
|
var l = this.handlers;
|
|
4103
|
-
return _(
|
|
4103
|
+
return _(et(o), function(p) {
|
|
4104
4104
|
l[p] = l[p] || [], l[p].push(i);
|
|
4105
4105
|
}), this;
|
|
4106
4106
|
}
|
|
@@ -4114,8 +4114,8 @@ function xi() {
|
|
|
4114
4114
|
off: function(o, i) {
|
|
4115
4115
|
if (o !== r) {
|
|
4116
4116
|
var l = this.handlers;
|
|
4117
|
-
return _(
|
|
4118
|
-
i ? l[p] && l[p].splice(
|
|
4117
|
+
return _(et(o), function(p) {
|
|
4118
|
+
i ? l[p] && l[p].splice(we(l[p], i), 1) : delete l[p];
|
|
4119
4119
|
}), this;
|
|
4120
4120
|
}
|
|
4121
4121
|
},
|
|
@@ -4125,7 +4125,7 @@ function xi() {
|
|
|
4125
4125
|
* @param {Object} data
|
|
4126
4126
|
*/
|
|
4127
4127
|
emit: function(o, i) {
|
|
4128
|
-
this.options.domEvents &&
|
|
4128
|
+
this.options.domEvents && To(o, i);
|
|
4129
4129
|
var l = this.handlers[o] && this.handlers[o].slice();
|
|
4130
4130
|
if (!(!l || !l.length)) {
|
|
4131
4131
|
i.type = o, i.preventDefault = function() {
|
|
@@ -4148,27 +4148,27 @@ function xi() {
|
|
|
4148
4148
|
if (l.style) {
|
|
4149
4149
|
var p;
|
|
4150
4150
|
_(o.options.cssProps, function(m, E) {
|
|
4151
|
-
p =
|
|
4151
|
+
p = st(l.style, E), i ? (o.oldCssProps[p] = l.style[p], l.style[p] = m) : l.style[p] = o.oldCssProps[p] || "";
|
|
4152
4152
|
}), i || (o.oldCssProps = {});
|
|
4153
4153
|
}
|
|
4154
4154
|
}
|
|
4155
|
-
function
|
|
4155
|
+
function To(o, i) {
|
|
4156
4156
|
var l = s.createEvent("Event");
|
|
4157
4157
|
l.initEvent(o, !0, !0), l.gesture = i, i.target.dispatchEvent(l);
|
|
4158
4158
|
}
|
|
4159
4159
|
P(Se, {
|
|
4160
|
-
INPUT_START:
|
|
4160
|
+
INPUT_START: H,
|
|
4161
4161
|
INPUT_MOVE: Ce,
|
|
4162
|
-
INPUT_END:
|
|
4162
|
+
INPUT_END: O,
|
|
4163
4163
|
INPUT_CANCEL: q,
|
|
4164
|
-
STATE_POSSIBLE:
|
|
4164
|
+
STATE_POSSIBLE: ct,
|
|
4165
4165
|
STATE_BEGAN: W,
|
|
4166
|
-
STATE_CHANGED:
|
|
4166
|
+
STATE_CHANGED: De,
|
|
4167
4167
|
STATE_ENDED: Ee,
|
|
4168
4168
|
STATE_RECOGNIZED: ue,
|
|
4169
4169
|
STATE_CANCELLED: qe,
|
|
4170
4170
|
STATE_FAILED: se,
|
|
4171
|
-
DIRECTION_NONE:
|
|
4171
|
+
DIRECTION_NONE: nt,
|
|
4172
4172
|
DIRECTION_LEFT: Re,
|
|
4173
4173
|
DIRECTION_RIGHT: Be,
|
|
4174
4174
|
DIRECTION_UP: $e,
|
|
@@ -4176,44 +4176,44 @@ function xi() {
|
|
|
4176
4176
|
DIRECTION_HORIZONTAL: te,
|
|
4177
4177
|
DIRECTION_VERTICAL: _e,
|
|
4178
4178
|
DIRECTION_ALL: ls,
|
|
4179
|
-
Manager:
|
|
4179
|
+
Manager: $t,
|
|
4180
4180
|
Input: Y,
|
|
4181
|
-
TouchAction:
|
|
4182
|
-
TouchInput:
|
|
4183
|
-
MouseInput:
|
|
4184
|
-
PointerEventInput:
|
|
4185
|
-
TouchMouseInput:
|
|
4181
|
+
TouchAction: Lt,
|
|
4182
|
+
TouchInput: at,
|
|
4183
|
+
MouseInput: it,
|
|
4184
|
+
PointerEventInput: Nt,
|
|
4185
|
+
TouchMouseInput: Ot,
|
|
4186
4186
|
SingleTouchInput: ms,
|
|
4187
4187
|
Recognizer: de,
|
|
4188
|
-
AttrRecognizer:
|
|
4189
|
-
Tap:
|
|
4190
|
-
Pan:
|
|
4191
|
-
Swipe:
|
|
4192
|
-
Pinch:
|
|
4193
|
-
Rotate:
|
|
4194
|
-
Press:
|
|
4188
|
+
AttrRecognizer: Q,
|
|
4189
|
+
Tap: ht,
|
|
4190
|
+
Pan: dt,
|
|
4191
|
+
Swipe: Bt,
|
|
4192
|
+
Pinch: Vt,
|
|
4193
|
+
Rotate: Rt,
|
|
4194
|
+
Press: Ut,
|
|
4195
4195
|
on: ye,
|
|
4196
|
-
off:
|
|
4196
|
+
off: K,
|
|
4197
4197
|
each: _,
|
|
4198
|
-
merge:
|
|
4199
|
-
extend:
|
|
4198
|
+
merge: I,
|
|
4199
|
+
extend: x,
|
|
4200
4200
|
assign: P,
|
|
4201
|
-
inherit:
|
|
4202
|
-
bindFn:
|
|
4203
|
-
prefixed:
|
|
4201
|
+
inherit: b,
|
|
4202
|
+
bindFn: N,
|
|
4203
|
+
prefixed: st
|
|
4204
4204
|
});
|
|
4205
|
-
var
|
|
4206
|
-
|
|
4205
|
+
var Co = typeof t < "u" ? t : typeof self < "u" ? self : {};
|
|
4206
|
+
Co.Hammer = Se, e.exports ? e.exports = Se : t[n] = Se;
|
|
4207
4207
|
})(window, document, "Hammer");
|
|
4208
|
-
})(
|
|
4208
|
+
})(Ft)), Ft.exports;
|
|
4209
4209
|
}
|
|
4210
|
-
var
|
|
4210
|
+
var wt = xi();
|
|
4211
4211
|
const oe = /* @__PURE__ */ nr({
|
|
4212
4212
|
__proto__: null
|
|
4213
|
-
}, [
|
|
4214
|
-
mousedown:
|
|
4215
|
-
mousemove:
|
|
4216
|
-
mouseup:
|
|
4213
|
+
}, [wt]), Bn = 1, $n = 2, Kt = 4, wi = {
|
|
4214
|
+
mousedown: Bn,
|
|
4215
|
+
mousemove: $n,
|
|
4216
|
+
mouseup: Kt
|
|
4217
4217
|
};
|
|
4218
4218
|
function Di(e, t) {
|
|
4219
4219
|
for (let s = 0; s < e.length; s++)
|
|
@@ -4221,17 +4221,17 @@ function Di(e, t) {
|
|
|
4221
4221
|
return !0;
|
|
4222
4222
|
return !1;
|
|
4223
4223
|
}
|
|
4224
|
-
function
|
|
4224
|
+
function Ai(e) {
|
|
4225
4225
|
const t = e.prototype.handler;
|
|
4226
4226
|
e.prototype.handler = function(n) {
|
|
4227
4227
|
const r = this.store;
|
|
4228
4228
|
n.button > 0 && n.type === "pointerdown" && (Di(r, (a) => a.pointerId === n.pointerId) || r.push(n)), t.call(this, n);
|
|
4229
4229
|
};
|
|
4230
4230
|
}
|
|
4231
|
-
function
|
|
4231
|
+
function Mi(e) {
|
|
4232
4232
|
e.prototype.handler = function(s) {
|
|
4233
4233
|
let n = wi[s.type];
|
|
4234
|
-
n &
|
|
4234
|
+
n & Bn && s.button >= 0 && (this.pressed = !0), n & $n && s.buttons === 0 && (n = Kt), this.pressed && (n & Kt && (this.pressed = !1), this.callback(this.manager, n, {
|
|
4235
4235
|
pointers: [s],
|
|
4236
4236
|
changedPointers: [s],
|
|
4237
4237
|
pointerType: "mouse",
|
|
@@ -4239,10 +4239,10 @@ function Ai(e) {
|
|
|
4239
4239
|
}));
|
|
4240
4240
|
};
|
|
4241
4241
|
}
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
const Ni =
|
|
4245
|
-
class
|
|
4242
|
+
Ai(wt.PointerEventInput);
|
|
4243
|
+
Mi(wt.MouseInput);
|
|
4244
|
+
const Ni = wt.Manager;
|
|
4245
|
+
class Dt {
|
|
4246
4246
|
constructor(t, s, n) {
|
|
4247
4247
|
this.element = t, this.callback = s, this.options = { enable: !0, ...n };
|
|
4248
4248
|
}
|
|
@@ -4258,7 +4258,7 @@ const Oi = oe ? [
|
|
|
4258
4258
|
// TODO - rename to 'tap' and 'singletap' in the next major release
|
|
4259
4259
|
[oe.Tap, { event: "anytap", enable: !1 }],
|
|
4260
4260
|
[oe.Tap, { enable: !1 }]
|
|
4261
|
-
] : null,
|
|
4261
|
+
] : null, js = {
|
|
4262
4262
|
tripan: ["rotate", "pinch", "pan"],
|
|
4263
4263
|
rotate: ["pinch"],
|
|
4264
4264
|
pinch: ["pan"],
|
|
@@ -4326,7 +4326,7 @@ const Oi = oe ? [
|
|
|
4326
4326
|
swiperight: "swipe",
|
|
4327
4327
|
swipeup: "swipe",
|
|
4328
4328
|
swipedown: "swipe"
|
|
4329
|
-
},
|
|
4329
|
+
}, Gs = {
|
|
4330
4330
|
click: "tap",
|
|
4331
4331
|
anyclick: "anytap",
|
|
4332
4332
|
dblclick: "doubletap",
|
|
@@ -4336,7 +4336,7 @@ const Oi = oe ? [
|
|
|
4336
4336
|
mouseover: "pointerover",
|
|
4337
4337
|
mouseout: "pointerout",
|
|
4338
4338
|
mouseleave: "pointerleave"
|
|
4339
|
-
}, Ui = typeof navigator < "u" && navigator.userAgent ? navigator.userAgent.toLowerCase() : "",
|
|
4339
|
+
}, Ui = typeof navigator < "u" && navigator.userAgent ? navigator.userAgent.toLowerCase() : "", Ne = typeof window < "u" ? window : global;
|
|
4340
4340
|
let Qt = !1;
|
|
4341
4341
|
try {
|
|
4342
4342
|
const e = {
|
|
@@ -4346,19 +4346,19 @@ try {
|
|
|
4346
4346
|
return Qt = !0, !0;
|
|
4347
4347
|
}
|
|
4348
4348
|
};
|
|
4349
|
-
|
|
4349
|
+
Ne.addEventListener("test", null, e), Ne.removeEventListener("test", null);
|
|
4350
4350
|
} catch {
|
|
4351
4351
|
Qt = !1;
|
|
4352
4352
|
}
|
|
4353
|
-
const Ri = Ui.indexOf("firefox") !== -1, { WHEEL_EVENTS: Bi } = os,
|
|
4354
|
-
class Hi extends
|
|
4353
|
+
const Ri = Ui.indexOf("firefox") !== -1, { WHEEL_EVENTS: Bi } = os, Ys = "wheel", Ws = 4.000244140625, $i = 40, zi = 0.25;
|
|
4354
|
+
class Hi extends Dt {
|
|
4355
4355
|
constructor(t, s, n) {
|
|
4356
4356
|
super(t, s, n), this.handleEvent = (r) => {
|
|
4357
4357
|
if (!this.options.enable)
|
|
4358
4358
|
return;
|
|
4359
4359
|
let a = r.deltaY;
|
|
4360
|
-
|
|
4361
|
-
type:
|
|
4360
|
+
Ne.WheelEvent && (Ri && r.deltaMode === Ne.WheelEvent.DOM_DELTA_PIXEL && (a /= Ne.devicePixelRatio), r.deltaMode === Ne.WheelEvent.DOM_DELTA_LINE && (a *= $i)), a !== 0 && a % Ws === 0 && (a = Math.floor(a / Ws)), r.shiftKey && a && (a = a * zi), this.callback({
|
|
4361
|
+
type: Ys,
|
|
4362
4362
|
center: {
|
|
4363
4363
|
x: r.clientX,
|
|
4364
4364
|
y: r.clientY
|
|
@@ -4378,11 +4378,11 @@ class Hi extends wt {
|
|
|
4378
4378
|
* if the specified event type is among those handled by this input.
|
|
4379
4379
|
*/
|
|
4380
4380
|
enableEventType(t, s) {
|
|
4381
|
-
t ===
|
|
4381
|
+
t === Ys && (this.options.enable = s);
|
|
4382
4382
|
}
|
|
4383
4383
|
}
|
|
4384
|
-
const { MOUSE_EVENTS: Fi } = os,
|
|
4385
|
-
class qi extends
|
|
4384
|
+
const { MOUSE_EVENTS: Fi } = os, Xs = "pointermove", Zs = "pointerover", Ks = "pointerout", Qs = "pointerenter", Js = "pointerleave";
|
|
4385
|
+
class qi extends Dt {
|
|
4386
4386
|
constructor(t, s, n) {
|
|
4387
4387
|
super(t, s, n), this.handleEvent = (a) => {
|
|
4388
4388
|
this.handleOverEvent(a), this.handleOutEvent(a), this.handleEnterEvent(a), this.handleLeaveEvent(a), this.handleMoveEvent(a);
|
|
@@ -4398,19 +4398,19 @@ class qi extends wt {
|
|
|
4398
4398
|
* if the specified event type is among those handled by this input.
|
|
4399
4399
|
*/
|
|
4400
4400
|
enableEventType(t, s) {
|
|
4401
|
-
t ===
|
|
4401
|
+
t === Xs && (this.enableMoveEvent = s), t === Zs && (this.enableOverEvent = s), t === Ks && (this.enableOutEvent = s), t === Qs && (this.enableEnterEvent = s), t === Js && (this.enableLeaveEvent = s);
|
|
4402
4402
|
}
|
|
4403
4403
|
handleOverEvent(t) {
|
|
4404
|
-
this.enableOverEvent && t.type === "mouseover" && this._emit(
|
|
4404
|
+
this.enableOverEvent && t.type === "mouseover" && this._emit(Zs, t);
|
|
4405
4405
|
}
|
|
4406
4406
|
handleOutEvent(t) {
|
|
4407
|
-
this.enableOutEvent && t.type === "mouseout" && this._emit(
|
|
4407
|
+
this.enableOutEvent && t.type === "mouseout" && this._emit(Ks, t);
|
|
4408
4408
|
}
|
|
4409
4409
|
handleEnterEvent(t) {
|
|
4410
4410
|
this.enableEnterEvent && t.type === "mouseenter" && this._emit(Qs, t);
|
|
4411
4411
|
}
|
|
4412
4412
|
handleLeaveEvent(t) {
|
|
4413
|
-
this.enableLeaveEvent && t.type === "mouseleave" && this._emit(
|
|
4413
|
+
this.enableLeaveEvent && t.type === "mouseleave" && this._emit(Js, t);
|
|
4414
4414
|
}
|
|
4415
4415
|
handleMoveEvent(t) {
|
|
4416
4416
|
if (this.enableMoveEvent)
|
|
@@ -4419,7 +4419,7 @@ class qi extends wt {
|
|
|
4419
4419
|
t.button >= 0 && (this.pressed = !0);
|
|
4420
4420
|
break;
|
|
4421
4421
|
case "mousemove":
|
|
4422
|
-
t.buttons === 0 && (this.pressed = !1), this.pressed || this._emit(
|
|
4422
|
+
t.buttons === 0 && (this.pressed = !1), this.pressed || this._emit(Xs, t);
|
|
4423
4423
|
break;
|
|
4424
4424
|
case "mouseup":
|
|
4425
4425
|
this.pressed = !1;
|
|
@@ -4439,18 +4439,18 @@ class qi extends wt {
|
|
|
4439
4439
|
});
|
|
4440
4440
|
}
|
|
4441
4441
|
}
|
|
4442
|
-
const { KEY_EVENTS: ji } = os,
|
|
4443
|
-
class Gi extends
|
|
4442
|
+
const { KEY_EVENTS: ji } = os, en = "keydown", tn = "keyup";
|
|
4443
|
+
class Gi extends Dt {
|
|
4444
4444
|
constructor(t, s, n) {
|
|
4445
4445
|
super(t, s, n), this.handleEvent = (r) => {
|
|
4446
4446
|
const a = r.target || r.srcElement;
|
|
4447
4447
|
a.tagName === "INPUT" && a.type === "text" || a.tagName === "TEXTAREA" || (this.enableDownEvent && r.type === "keydown" && this.callback({
|
|
4448
|
-
type:
|
|
4448
|
+
type: en,
|
|
4449
4449
|
srcEvent: r,
|
|
4450
4450
|
key: r.key,
|
|
4451
4451
|
target: r.target
|
|
4452
4452
|
}), this.enableUpEvent && r.type === "keyup" && this.callback({
|
|
4453
|
-
type:
|
|
4453
|
+
type: tn,
|
|
4454
4454
|
srcEvent: r,
|
|
4455
4455
|
key: r.key,
|
|
4456
4456
|
target: r.target
|
|
@@ -4465,15 +4465,15 @@ class Gi extends wt {
|
|
|
4465
4465
|
* if the specified event type is among those handled by this input.
|
|
4466
4466
|
*/
|
|
4467
4467
|
enableEventType(t, s) {
|
|
4468
|
-
t ===
|
|
4468
|
+
t === en && (this.enableDownEvent = s), t === tn && (this.enableUpEvent = s);
|
|
4469
4469
|
}
|
|
4470
4470
|
}
|
|
4471
|
-
const
|
|
4472
|
-
class Yi extends
|
|
4471
|
+
const sn = "contextmenu";
|
|
4472
|
+
class Yi extends Dt {
|
|
4473
4473
|
constructor(t, s, n) {
|
|
4474
4474
|
super(t, s, n), this.handleEvent = (r) => {
|
|
4475
4475
|
this.options.enable && this.callback({
|
|
4476
|
-
type:
|
|
4476
|
+
type: sn,
|
|
4477
4477
|
center: {
|
|
4478
4478
|
x: r.clientX,
|
|
4479
4479
|
y: r.clientY
|
|
@@ -4492,24 +4492,24 @@ class Yi extends wt {
|
|
|
4492
4492
|
* if the specified event type is among those handled by this input.
|
|
4493
4493
|
*/
|
|
4494
4494
|
enableEventType(t, s) {
|
|
4495
|
-
t ===
|
|
4495
|
+
t === sn && (this.options.enable = s);
|
|
4496
4496
|
}
|
|
4497
4497
|
}
|
|
4498
|
-
const
|
|
4499
|
-
pointerdown:
|
|
4500
|
-
pointermove:
|
|
4501
|
-
pointerup:
|
|
4502
|
-
mousedown:
|
|
4503
|
-
mousemove:
|
|
4504
|
-
mouseup:
|
|
4505
|
-
}, Xi = 0, Zi = 1,
|
|
4498
|
+
const nn = 1, Jt = 2, on = 4, Wi = {
|
|
4499
|
+
pointerdown: nn,
|
|
4500
|
+
pointermove: Jt,
|
|
4501
|
+
pointerup: on,
|
|
4502
|
+
mousedown: nn,
|
|
4503
|
+
mousemove: Jt,
|
|
4504
|
+
mouseup: on
|
|
4505
|
+
}, Xi = 0, Zi = 1, Ki = 2, Qi = 1, Ji = 2, ea = 4;
|
|
4506
4506
|
function ta(e) {
|
|
4507
4507
|
const t = Wi[e.srcEvent.type];
|
|
4508
4508
|
if (!t)
|
|
4509
4509
|
return null;
|
|
4510
4510
|
const { buttons: s, button: n } = e.srcEvent;
|
|
4511
4511
|
let r = !1, a = !1, c = !1;
|
|
4512
|
-
return t ===
|
|
4512
|
+
return t === Jt ? (r = !!(s & Qi), a = !!(s & ea), c = !!(s & Ji)) : (r = n === Xi, a = n === Zi, c = n === Ki), { leftButton: r, middleButton: a, rightButton: c };
|
|
4513
4513
|
}
|
|
4514
4514
|
function sa(e, t) {
|
|
4515
4515
|
const s = e.center;
|
|
@@ -4521,7 +4521,7 @@ function sa(e, t) {
|
|
|
4521
4521
|
};
|
|
4522
4522
|
return { center: s, offsetCenter: c };
|
|
4523
4523
|
}
|
|
4524
|
-
const
|
|
4524
|
+
const qt = {
|
|
4525
4525
|
srcElement: "root",
|
|
4526
4526
|
priority: 0
|
|
4527
4527
|
};
|
|
@@ -4546,8 +4546,8 @@ class na {
|
|
|
4546
4546
|
}
|
|
4547
4547
|
add(t, s, n, r = !1, a = !1) {
|
|
4548
4548
|
const { handlers: c, handlersByElement: d } = this;
|
|
4549
|
-
let u =
|
|
4550
|
-
typeof n == "string" || n && n.addEventListener ? u = { ...
|
|
4549
|
+
let u = qt;
|
|
4550
|
+
typeof n == "string" || n && n.addEventListener ? u = { ...qt, srcElement: n } : n && (u = { ...qt, ...n });
|
|
4551
4551
|
let f = d.get(u.srcElement);
|
|
4552
4552
|
f || (f = [], d.set(u.srcElement, f));
|
|
4553
4553
|
const g = {
|
|
@@ -4656,9 +4656,9 @@ class ra {
|
|
|
4656
4656
|
this.manager = new n(t, {
|
|
4657
4657
|
touchAction: s.touchAction,
|
|
4658
4658
|
recognizers: s.recognizers || Oi
|
|
4659
|
-
}).on("hammer.input", this._onBasicInput), s.recognizers || Object.keys(
|
|
4659
|
+
}).on("hammer.input", this._onBasicInput), s.recognizers || Object.keys(js).forEach((r) => {
|
|
4660
4660
|
const a = this.manager.get(r);
|
|
4661
|
-
a &&
|
|
4661
|
+
a && js[r].forEach((c) => {
|
|
4662
4662
|
a.recognizeWith(c);
|
|
4663
4663
|
});
|
|
4664
4664
|
});
|
|
@@ -4727,7 +4727,7 @@ class ra {
|
|
|
4727
4727
|
this._addEventHandler(g, t[g], n, r, a);
|
|
4728
4728
|
return;
|
|
4729
4729
|
}
|
|
4730
|
-
const { manager: c, events: d } = this, u =
|
|
4730
|
+
const { manager: c, events: d } = this, u = Gs[t] || t;
|
|
4731
4731
|
let f = d.get(u);
|
|
4732
4732
|
f || (f = new na(this), d.set(u, f), f.recognizerName = Vi[u] || u, c && c.on(u, f.handleEvent)), f.add(t, s, n, r, a), f.isEmpty() || this._toggleRecognizer(f.recognizerName, !0);
|
|
4733
4733
|
}
|
|
@@ -4740,7 +4740,7 @@ class ra {
|
|
|
4740
4740
|
this._removeEventHandler(c, t[c]);
|
|
4741
4741
|
return;
|
|
4742
4742
|
}
|
|
4743
|
-
const { events: n } = this, r =
|
|
4743
|
+
const { events: n } = this, r = Gs[t] || t, a = n.get(r);
|
|
4744
4744
|
if (a && (a.remove(t, s), a.isEmpty())) {
|
|
4745
4745
|
const { recognizerName: c } = a;
|
|
4746
4746
|
let d = !1;
|
|
@@ -4758,35 +4758,35 @@ const ia = {
|
|
|
4758
4758
|
setup(e) {
|
|
4759
4759
|
const t = he(), s = Te(), n = j(null), r = j([]), a = j("ended"), c = j(0);
|
|
4760
4760
|
let d;
|
|
4761
|
-
const { playing: u } = S(t), f = () => s.previous(), g = () => s.next(), v = () => s.close(),
|
|
4762
|
-
const
|
|
4763
|
-
if (
|
|
4761
|
+
const { playing: u } = S(t), f = () => s.previous(), g = () => s.next(), v = () => s.close(), T = () => u.value ? s.pause() : s.play(), _ = (I) => I.reduce((b, N) => b + N, 0) / I.length, D = (I) => Math.abs(_(I)), P = (I) => {
|
|
4762
|
+
const b = I.srcEvent.keyCode;
|
|
4763
|
+
if (b === 27 || (I.ctrlKey || I.altKey) && b === 87) {
|
|
4764
4764
|
v();
|
|
4765
4765
|
return;
|
|
4766
4766
|
}
|
|
4767
|
-
if (
|
|
4768
|
-
|
|
4767
|
+
if (b === 32) {
|
|
4768
|
+
T();
|
|
4769
4769
|
return;
|
|
4770
4770
|
}
|
|
4771
|
-
if (
|
|
4771
|
+
if (b === 13 || b === 9 || b === 39) {
|
|
4772
4772
|
g();
|
|
4773
4773
|
return;
|
|
4774
4774
|
}
|
|
4775
|
-
if (
|
|
4775
|
+
if (b === 37) {
|
|
4776
4776
|
f();
|
|
4777
4777
|
return;
|
|
4778
4778
|
}
|
|
4779
|
-
},
|
|
4780
|
-
if (!(
|
|
4781
|
-
const
|
|
4782
|
-
if ((le > Ve || le < -Ve) &&
|
|
4779
|
+
}, x = (I) => {
|
|
4780
|
+
if (!(I && (I.wheelDelta || I.deltaX))) return;
|
|
4781
|
+
const N = I.deltaX, le = I.deltaY, Ve = 2;
|
|
4782
|
+
if ((le > Ve || le < -Ve) && N === 0 || I.ctrlKey)
|
|
4783
4783
|
return;
|
|
4784
|
-
|
|
4785
|
-
const ye =
|
|
4786
|
-
if (
|
|
4784
|
+
I.preventDefault();
|
|
4785
|
+
const ye = I.wheelDeltaX, K = K.value, ce = D(r.value);
|
|
4786
|
+
if (K.value = ce, r.value.push(ye), r.value.length > 6 && r.value.shift(), Math.abs(ye) < 80)
|
|
4787
4787
|
return;
|
|
4788
4788
|
const G = D(r.value);
|
|
4789
|
-
if (a.value === "ended" && ce < G &&
|
|
4789
|
+
if (a.value === "ended" && ce < G && K < G && K < ce) {
|
|
4790
4790
|
if (a.value = "started", c.value = Date.now(), ye > 0) {
|
|
4791
4791
|
ce();
|
|
4792
4792
|
return;
|
|
@@ -4794,9 +4794,9 @@ const ia = {
|
|
|
4794
4794
|
g();
|
|
4795
4795
|
return;
|
|
4796
4796
|
}
|
|
4797
|
-
a.value === "started" && G < ce && G <
|
|
4797
|
+
a.value === "started" && G < ce && G < K && ce < K && (a.value = "ended");
|
|
4798
4798
|
};
|
|
4799
|
-
return
|
|
4799
|
+
return Ke(() => {
|
|
4800
4800
|
d = new ra(n.value, {
|
|
4801
4801
|
recognizers: [
|
|
4802
4802
|
// RecognizerClass, [options], [recognizeWith, ...], [requireFailure, ...]
|
|
@@ -4812,28 +4812,28 @@ const ia = {
|
|
|
4812
4812
|
// pinchmove: onPinchMove,
|
|
4813
4813
|
// pinchin: onPinchIn,
|
|
4814
4814
|
pinchout: v,
|
|
4815
|
-
wheel:
|
|
4815
|
+
wheel: x,
|
|
4816
4816
|
// keyup: onKeyUp,
|
|
4817
4817
|
keydown: P,
|
|
4818
4818
|
doubletap: v,
|
|
4819
|
-
tap:
|
|
4819
|
+
tap: T
|
|
4820
4820
|
// pointerdown: togglePlay,
|
|
4821
4821
|
});
|
|
4822
|
-
}),
|
|
4822
|
+
}), It(() => {
|
|
4823
4823
|
d && d.destroy();
|
|
4824
|
-
}), (
|
|
4824
|
+
}), (I, b) => (k(), z("div", {
|
|
4825
4825
|
class: "pg-interaction-detector",
|
|
4826
4826
|
ref_key: "detector",
|
|
4827
4827
|
ref: n
|
|
4828
4828
|
}, null, 512));
|
|
4829
4829
|
}
|
|
4830
|
-
}, aa =
|
|
4830
|
+
}, aa = C({
|
|
4831
4831
|
name: "PgAdvancedButton",
|
|
4832
4832
|
setup(e, { slots: t, emit: s }) {
|
|
4833
|
-
const n =
|
|
4833
|
+
const n = L(), { lang: r } = A(), a = y(() => {
|
|
4834
4834
|
var u;
|
|
4835
4835
|
return (u = r.value.pg) == null ? void 0 : u.buttons.advanced.title;
|
|
4836
|
-
}), c = () => n.mobileActive =
|
|
4836
|
+
}), c = () => n.mobileActive = Tt;
|
|
4837
4837
|
function d() {
|
|
4838
4838
|
const u = {
|
|
4839
4839
|
class: "pg-button-advanced",
|
|
@@ -4848,29 +4848,29 @@ const ia = {
|
|
|
4848
4848
|
}
|
|
4849
4849
|
return () => d();
|
|
4850
4850
|
}
|
|
4851
|
-
}), la =
|
|
4851
|
+
}), la = C({
|
|
4852
4852
|
name: "PgDefaultButtonRow",
|
|
4853
4853
|
setup(e, { slots: t, emit: s }) {
|
|
4854
4854
|
function n() {
|
|
4855
4855
|
return h("div", {
|
|
4856
4856
|
class: "pg-drawer-button-row q-pt-md q-pb-sm row"
|
|
4857
4857
|
}, [
|
|
4858
|
-
h("div", { class: "col text-center" }, [h(
|
|
4858
|
+
h("div", { class: "col text-center" }, [h(Un)]),
|
|
4859
4859
|
h("div", { class: "col text-center" }, [h(aa)])
|
|
4860
4860
|
]);
|
|
4861
4861
|
}
|
|
4862
4862
|
return () => n();
|
|
4863
4863
|
}
|
|
4864
|
-
}), ca =
|
|
4864
|
+
}), ca = C({
|
|
4865
4865
|
name: "PgDefaultDrawer",
|
|
4866
4866
|
props: {},
|
|
4867
4867
|
emits: ["click"],
|
|
4868
4868
|
setup(e, { slots: t, emit: s }) {
|
|
4869
4869
|
return () => h(
|
|
4870
|
-
|
|
4870
|
+
hn,
|
|
4871
4871
|
{ name: Me },
|
|
4872
4872
|
{
|
|
4873
|
-
default: () => h(
|
|
4873
|
+
default: () => h(Vn, { center: !0 }),
|
|
4874
4874
|
secondary: () => [
|
|
4875
4875
|
h(ss, { playMode: !0 }),
|
|
4876
4876
|
h(la)
|
|
@@ -4878,27 +4878,27 @@ const ia = {
|
|
|
4878
4878
|
}
|
|
4879
4879
|
);
|
|
4880
4880
|
}
|
|
4881
|
-
}), ua =
|
|
4881
|
+
}), ua = C({
|
|
4882
4882
|
name: "PgAdvancedDrawer",
|
|
4883
4883
|
props: {},
|
|
4884
4884
|
emits: ["click"],
|
|
4885
4885
|
setup(e, { slots: t, emit: s }) {
|
|
4886
|
-
const { lang: n } =
|
|
4886
|
+
const { lang: n } = A(), r = y(() => {
|
|
4887
4887
|
var a;
|
|
4888
4888
|
return (a = n.value.pg) == null ? void 0 : a.buttons.advanced.title;
|
|
4889
4889
|
});
|
|
4890
4890
|
return () => h(
|
|
4891
|
-
|
|
4892
|
-
{ class: "pg-effects-drawer", name:
|
|
4891
|
+
hn,
|
|
4892
|
+
{ class: "pg-effects-drawer", name: Tt, label: r.value },
|
|
4893
4893
|
{
|
|
4894
|
-
default: () => h(
|
|
4894
|
+
default: () => h(Rn, { center: !0, playMode: !0 })
|
|
4895
4895
|
}
|
|
4896
4896
|
);
|
|
4897
4897
|
}
|
|
4898
|
-
}), da =
|
|
4898
|
+
}), da = C({
|
|
4899
4899
|
name: "TsDrawers",
|
|
4900
4900
|
setup(e, { slots: t, emit: s }) {
|
|
4901
|
-
const n =
|
|
4901
|
+
const n = L(), { mobileActive: r } = S(n);
|
|
4902
4902
|
function a() {
|
|
4903
4903
|
return h(
|
|
4904
4904
|
Yo,
|
|
@@ -4918,7 +4918,7 @@ const ia = {
|
|
|
4918
4918
|
},
|
|
4919
4919
|
emits: ["update:modelValue"],
|
|
4920
4920
|
setup(e, { emit: t }) {
|
|
4921
|
-
const s =
|
|
4921
|
+
const s = Pt(), n = j(s.platform.is.desktop), r = j(s.platform.is.mobile), a = L();
|
|
4922
4922
|
X();
|
|
4923
4923
|
const { loading: c } = S(a), d = e, u = t;
|
|
4924
4924
|
j(!0);
|
|
@@ -4930,74 +4930,83 @@ const ia = {
|
|
|
4930
4930
|
u("update:modelValue", g);
|
|
4931
4931
|
}
|
|
4932
4932
|
});
|
|
4933
|
-
return (g, v) => (
|
|
4934
|
-
default:
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
default:
|
|
4941
|
-
|
|
4942
|
-
[
|
|
4933
|
+
return (g, v) => (k(), bt(jt, { name: "fade" }, {
|
|
4934
|
+
default: Gt(() => [
|
|
4935
|
+
yt(Ae("div", ha, [
|
|
4936
|
+
$(ia),
|
|
4937
|
+
$(M(Ln)),
|
|
4938
|
+
$(Pi),
|
|
4939
|
+
$(jt, { name: "fade" }, {
|
|
4940
|
+
default: Gt(() => [
|
|
4941
|
+
yt($(M(ko), { class: "loading-graphic" }, null, 512), [
|
|
4942
|
+
[Et, M(c)]
|
|
4943
4943
|
])
|
|
4944
4944
|
]),
|
|
4945
4945
|
_: 1
|
|
4946
4946
|
}),
|
|
4947
|
-
|
|
4948
|
-
|
|
4947
|
+
$(M(yi)),
|
|
4948
|
+
$(M(_i), {
|
|
4949
4949
|
class: "desktop-only",
|
|
4950
4950
|
modelValue: n.value,
|
|
4951
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
4951
|
+
"onUpdate:modelValue": v[0] || (v[0] = (T) => n.value = T)
|
|
4952
4952
|
}, null, 8, ["modelValue"]),
|
|
4953
|
-
|
|
4954
|
-
[
|
|
4953
|
+
yt($(M(da), { class: "mobile-only" }, null, 512), [
|
|
4954
|
+
[Et, r.value]
|
|
4955
4955
|
])
|
|
4956
4956
|
], 512), [
|
|
4957
|
-
[
|
|
4957
|
+
[Et, f.value]
|
|
4958
4958
|
])
|
|
4959
4959
|
]),
|
|
4960
4960
|
_: 1
|
|
4961
4961
|
}));
|
|
4962
4962
|
}
|
|
4963
|
-
}, Ca =
|
|
4963
|
+
}, Ca = C({
|
|
4964
4964
|
name: "PoseGenerator",
|
|
4965
4965
|
options: { slug: "pose-generator" },
|
|
4966
4966
|
setup(e, { slots: t, emit: s }) {
|
|
4967
|
-
const n = Po(), r = Symbol.for("user-auth"), a =
|
|
4968
|
-
let
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
}),
|
|
4972
|
-
|
|
4973
|
-
}),
|
|
4967
|
+
const n = Po(), r = Symbol.for("user-auth"), a = Symbol.for("activity-tracking"), c = xs(r), d = xs(a, null), u = xt(), f = Te(), g = X(), v = L(), { show: T } = S(f), { authenticated: _ } = S(c), { filters: D } = S(u), { filterData: P } = S(v);
|
|
4968
|
+
let x = 0;
|
|
4969
|
+
Ie(_, (b, N) => {
|
|
4970
|
+
b === !1 && v.customReset(), b === !0 && N !== !0 && v.getSettings();
|
|
4971
|
+
}), Ie(P, () => {
|
|
4972
|
+
x++, g.updateQueue(), !(x < 3) && (console.log("watch filterData pgStore.setSettings()"), v.setSettings());
|
|
4973
|
+
}), Ie(
|
|
4974
4974
|
() => n.fullPath,
|
|
4975
4975
|
() => {
|
|
4976
|
-
|
|
4976
|
+
f.pause();
|
|
4977
4977
|
},
|
|
4978
4978
|
{ immediate: !0 }
|
|
4979
|
-
), Lo(),
|
|
4980
|
-
|
|
4981
|
-
|
|
4979
|
+
), Lo(), Ke(() => {
|
|
4980
|
+
v.init(), v.fetch().then(() => {
|
|
4981
|
+
g.loadQueue();
|
|
4982
4982
|
}).catch(() => {
|
|
4983
4983
|
});
|
|
4984
|
+
}), Ke(async () => {
|
|
4985
|
+
d && (await d.beginPoseGenerator(), g.currentId && d.beginSegment(String(g.currentId)));
|
|
4986
|
+
}), Ie(
|
|
4987
|
+
() => g.currentId,
|
|
4988
|
+
(b, N) => {
|
|
4989
|
+
b && b !== N && (d == null || d.beginSegment(String(b)));
|
|
4990
|
+
}
|
|
4991
|
+
), It(() => {
|
|
4992
|
+
d == null || d.end();
|
|
4984
4993
|
});
|
|
4985
|
-
function
|
|
4986
|
-
const
|
|
4987
|
-
modelValue:
|
|
4988
|
-
"onUpdate:show": (
|
|
4994
|
+
function I() {
|
|
4995
|
+
const b = {
|
|
4996
|
+
modelValue: T.value,
|
|
4997
|
+
"onUpdate:show": (N) => T.value = N
|
|
4989
4998
|
};
|
|
4990
4999
|
return [
|
|
4991
5000
|
// overlay can now be absolutely positioned within the wrapper
|
|
4992
5001
|
// h(GridOverlay, { style: 'z-index: 5;' }),
|
|
4993
5002
|
h(vi),
|
|
4994
|
-
h(pa,
|
|
5003
|
+
h(pa, b)
|
|
4995
5004
|
];
|
|
4996
5005
|
}
|
|
4997
|
-
return () =>
|
|
5006
|
+
return () => I();
|
|
4998
5007
|
}
|
|
4999
5008
|
});
|
|
5000
5009
|
export {
|
|
5001
5010
|
Ca as PoseGenerator,
|
|
5002
|
-
|
|
5011
|
+
L as usePgStore
|
|
5003
5012
|
};
|