@figurosity/consumer-pose-generator 0.2.0 → 0.2.1
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 +861 -812
- package/package.json +3 -1
|
@@ -1,11 +1,11 @@
|
|
|
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
|
|
2
|
+
import { ref as Z, computed as y, watch as ce, onBeforeMount as _o, defineComponent as _, h, openBlock as L, createBlock as It, unref as N, createElementBlock as F, Fragment as Ze, renderList as Ke, createVNode as H, normalizeClass as yt, createElementVNode as Ae, toDisplayString as bo, onMounted as Qe, onBeforeUnmount as Pt, Transition as jt, withDirectives as Et, vShow as St, normalizeStyle as rn, TransitionGroup as Io, withCtx as Gt, inject as xs } from "vue";
|
|
3
3
|
import { useRoute as Po } from "vue-router";
|
|
4
|
-
import { defineStore as
|
|
5
|
-
import { getConfig as es, DEFAULT_SATURATE as je, DEFAULT_CONTRAST as Ge, DEFAULT_BRIGHTNESS as Ye, useDynamicImages as
|
|
4
|
+
import { defineStore as he, 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 Do, DEFAULT_VERTICAL as Ds, DEFAULT_HORIZONTAL as ws, DEFAULT_SPACING as Ms, DEFAULT_VISIBLE as wo, DEFAULT as Ne, SKINS as Yt, DURATION as Wt, FAILED as Xt, QUEUED as Mo, ABORTED as an, LOADED as ln, LOADING as Zt, UNLOADED as Tt, NOTHING as Ao, EFFECTS as Ct, CAMERA_ANGLE as As, LIGHT_DIRECTION as Ns, GENDER as _t, 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
6
|
import un from "lodash-es/debounce";
|
|
7
|
-
import { useQuasar as
|
|
8
|
-
import { CExpansion as
|
|
7
|
+
import { useQuasar as xt, QSlider as Vo, QSeparator as ne, QCard as Uo, QItem as Ro, QItemSection as Vs, QIcon as Bo, QItemLabel as Us, QCardSection as $o, QBtn as ke, QPageSticky as zo, QCircularProgress as Ho } from "quasar";
|
|
8
|
+
import { CExpansion as Ee, CBaseButton as Je, 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
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++) {
|
|
@@ -95,12 +95,12 @@ const or = {
|
|
|
95
95
|
selected: e
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
|
-
},
|
|
98
|
+
}, Le = ({
|
|
99
99
|
storeId: e,
|
|
100
100
|
state: t = {},
|
|
101
101
|
getters: s = {},
|
|
102
102
|
actions: n = {}
|
|
103
|
-
}) =>
|
|
103
|
+
}) => he(e, {
|
|
104
104
|
state: () => ({
|
|
105
105
|
...or,
|
|
106
106
|
...t
|
|
@@ -114,7 +114,7 @@ const or = {
|
|
|
114
114
|
...n
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
|
-
function
|
|
117
|
+
function Ve(e) {
|
|
118
118
|
return e.length ? typeof Intl < "u" && Intl.ListFormat ? new Intl.ListFormat("en-GB", {
|
|
119
119
|
style: "long",
|
|
120
120
|
type: "conjunction"
|
|
@@ -130,14 +130,14 @@ const rr = {}, ir = {
|
|
|
130
130
|
};
|
|
131
131
|
},
|
|
132
132
|
caption(e) {
|
|
133
|
-
return
|
|
133
|
+
return Ve(e.selected.map((t) => e.models[t].name));
|
|
134
134
|
}
|
|
135
|
-
}, ar = {},
|
|
135
|
+
}, ar = {}, me = Le({
|
|
136
136
|
storeId: "pg-cameras",
|
|
137
137
|
state: rr,
|
|
138
138
|
getters: ir,
|
|
139
139
|
actions: ar
|
|
140
|
-
}),
|
|
140
|
+
}), ye = he("pg-adjustments", {
|
|
141
141
|
state: () => ({
|
|
142
142
|
brightness: Ye,
|
|
143
143
|
contrast: Ge,
|
|
@@ -152,7 +152,7 @@ const rr = {}, ir = {
|
|
|
152
152
|
},
|
|
153
153
|
caption(e) {
|
|
154
154
|
const t = [];
|
|
155
|
-
return e.brightness !== Ye && t.push("Brightness"), e.contrast !== Ge && t.push("Contrast"), e.saturate !== je && t.push("Saturation"), t.length === 0 && t.push("None"),
|
|
155
|
+
return e.brightness !== Ye && t.push("Brightness"), e.contrast !== Ge && t.push("Contrast"), e.saturate !== je && t.push("Saturation"), t.length === 0 && t.push("None"), Ve(t);
|
|
156
156
|
}
|
|
157
157
|
},
|
|
158
158
|
actions: {
|
|
@@ -196,7 +196,7 @@ function Rs(e, t = !0) {
|
|
|
196
196
|
const n = e / 60;
|
|
197
197
|
return t ? `${n}m` : `${n} ${n === 1 ? "minute" : "minutes"}`;
|
|
198
198
|
}
|
|
199
|
-
const
|
|
199
|
+
const Q = he("pg-durations", {
|
|
200
200
|
state: () => ({
|
|
201
201
|
models: {},
|
|
202
202
|
collection: [],
|
|
@@ -256,9 +256,9 @@ const Z = ie("pg-durations", {
|
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
});
|
|
259
|
-
function
|
|
259
|
+
function et() {
|
|
260
260
|
const { freeServer: e, paidServer: t } = es();
|
|
261
|
-
return
|
|
261
|
+
return Do({ freeServer: e, paidServer: t });
|
|
262
262
|
}
|
|
263
263
|
const cr = {
|
|
264
264
|
uuid: void 0,
|
|
@@ -266,12 +266,12 @@ const cr = {
|
|
|
266
266
|
}, ur = {
|
|
267
267
|
src(e) {
|
|
268
268
|
return (t) => {
|
|
269
|
-
const { getThumbnail: s } =
|
|
269
|
+
const { getThumbnail: s } = et();
|
|
270
270
|
return s({ uuid: e.uuid, image: t });
|
|
271
271
|
};
|
|
272
272
|
},
|
|
273
273
|
caption(e) {
|
|
274
|
-
return
|
|
274
|
+
return Ve(e.selected.map((t) => e.models[t].name));
|
|
275
275
|
},
|
|
276
276
|
playCaption(e) {
|
|
277
277
|
var t, s;
|
|
@@ -279,7 +279,7 @@ const cr = {
|
|
|
279
279
|
}
|
|
280
280
|
}, dr = {
|
|
281
281
|
getSrc(e, t) {
|
|
282
|
-
const { getThumbnail: s } =
|
|
282
|
+
const { getThumbnail: s } = et();
|
|
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 = V();
|
|
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
|
+
}, R = Le({
|
|
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 } = et(), n = t === "negative" ? "000000" : "ffffff", r = R();
|
|
321
321
|
return s({
|
|
322
322
|
uuid: r.uuid,
|
|
323
323
|
image: "nude",
|
|
@@ -375,26 +375,26 @@ const cr = {
|
|
|
375
375
|
selected: 1
|
|
376
376
|
});
|
|
377
377
|
}
|
|
378
|
-
},
|
|
378
|
+
}, z = Le({
|
|
379
379
|
storeId: "pg-effects",
|
|
380
380
|
state: hr,
|
|
381
381
|
getters: pr,
|
|
382
382
|
actions: fr
|
|
383
383
|
}), gr = {}, mr = {
|
|
384
384
|
caption(e) {
|
|
385
|
-
return
|
|
385
|
+
return Ve(e.selected.map((t) => e.models[t].name));
|
|
386
386
|
}
|
|
387
|
-
}, vr = {},
|
|
387
|
+
}, vr = {}, de = Le({
|
|
388
388
|
storeId: "pg-genders",
|
|
389
389
|
state: gr,
|
|
390
390
|
getters: mr,
|
|
391
391
|
actions: vr
|
|
392
|
-
}),
|
|
392
|
+
}), xe = he("pg-grid", {
|
|
393
393
|
state: () => ({
|
|
394
|
-
visible:
|
|
395
|
-
spacing:
|
|
396
|
-
horizontal:
|
|
397
|
-
vertical:
|
|
394
|
+
visible: wo,
|
|
395
|
+
spacing: Ms,
|
|
396
|
+
horizontal: ws,
|
|
397
|
+
vertical: Ds
|
|
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 || Ms,
|
|
412
|
+
horizontal: e.horizontal || ws,
|
|
413
|
+
vertical: e.vertical || Ds
|
|
414
414
|
});
|
|
415
415
|
},
|
|
416
416
|
customReset() {
|
|
@@ -452,9 +452,9 @@ const cr = {
|
|
|
452
452
|
};
|
|
453
453
|
},
|
|
454
454
|
caption(e) {
|
|
455
|
-
return
|
|
455
|
+
return Ve(e.selected.map((t) => e.models[t].name));
|
|
456
456
|
}
|
|
457
|
-
}, Sr = {},
|
|
457
|
+
}, Sr = {}, oe = Le({
|
|
458
458
|
storeId: "pg-lights",
|
|
459
459
|
state: yr,
|
|
460
460
|
getters: Er,
|
|
@@ -475,7 +475,7 @@ function Cr(e, t) {
|
|
|
475
475
|
}
|
|
476
476
|
return s;
|
|
477
477
|
}
|
|
478
|
-
const
|
|
478
|
+
const De = he("pg-poses", {
|
|
479
479
|
state: () => ({
|
|
480
480
|
models: /* @__PURE__ */ Object.create(null),
|
|
481
481
|
// { [id]: poseRow }
|
|
@@ -491,7 +491,7 @@ const xe = ie("pg-poses", {
|
|
|
491
491
|
getters: {
|
|
492
492
|
// convenience getter
|
|
493
493
|
unseenIds(e) {
|
|
494
|
-
const s =
|
|
494
|
+
const s = V().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 xe = 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 = V();
|
|
550
550
|
if (s.filterData, this.unseenCount >= e || this.loading) return;
|
|
551
551
|
await (async () => {
|
|
552
552
|
try {
|
|
@@ -566,7 +566,7 @@ const xe = ie("pg-poses", {
|
|
|
566
566
|
}
|
|
567
567
|
}), _r = {}, br = {
|
|
568
568
|
caption(e) {
|
|
569
|
-
return
|
|
569
|
+
return Ve(e.selected.map((t) => e.models[t].name));
|
|
570
570
|
}
|
|
571
571
|
}, Ir = {
|
|
572
572
|
getRandom(e) {
|
|
@@ -592,7 +592,7 @@ const xe = ie("pg-poses", {
|
|
|
592
592
|
const a = Math.floor(Math.random() * r.length);
|
|
593
593
|
return r[a];
|
|
594
594
|
}
|
|
595
|
-
},
|
|
595
|
+
}, ve = Le({
|
|
596
596
|
storeId: "pg-positions",
|
|
597
597
|
state: _r,
|
|
598
598
|
getters: br,
|
|
@@ -795,7 +795,7 @@ const xe = ie("pg-poses", {
|
|
|
795
795
|
result: {
|
|
796
796
|
setUuid: "b22658f7-e757-4a7f-9071-89ccb7df966e"
|
|
797
797
|
}
|
|
798
|
-
},
|
|
798
|
+
}, V = he("pg", {
|
|
799
799
|
/**
|
|
800
800
|
*
|
|
801
801
|
* @property {number} active The filter or drawer that is currently active.
|
|
@@ -810,7 +810,7 @@ const xe = ie("pg-poses", {
|
|
|
810
810
|
animate: !1,
|
|
811
811
|
active: Wt,
|
|
812
812
|
playActive: Yt,
|
|
813
|
-
mobileActive:
|
|
813
|
+
mobileActive: Ne,
|
|
814
814
|
censored: [],
|
|
815
815
|
disable: !0,
|
|
816
816
|
filtering: !1,
|
|
@@ -822,7 +822,7 @@ const xe = ie("pg-poses", {
|
|
|
822
822
|
}),
|
|
823
823
|
getters: {
|
|
824
824
|
filterData(e) {
|
|
825
|
-
const t =
|
|
825
|
+
const t = ye(), s = me(), n = Q(), r = z(), a = de(), c = xe(), d = oe(), u = ve(), f = R(), g = c.visible === !0 ? 1 : 0;
|
|
826
826
|
return {
|
|
827
827
|
cameras: s.selected,
|
|
828
828
|
durations: n.selected,
|
|
@@ -849,15 +849,15 @@ const xe = ie("pg-poses", {
|
|
|
849
849
|
init() {
|
|
850
850
|
const e = Bs.entities, t = Bs.result;
|
|
851
851
|
this.updateStatesFromEntities(e);
|
|
852
|
-
const s =
|
|
852
|
+
const s = R();
|
|
853
853
|
s.uuid = t.setUuid;
|
|
854
854
|
},
|
|
855
855
|
updateStatesFromEntities(e) {
|
|
856
|
-
const t = e, s =
|
|
856
|
+
const t = e, s = me(), n = Q(), r = z(), a = de(), c = oe(), d = ve(), u = R();
|
|
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 =
|
|
860
|
+
const t = e, s = ye(), n = me(), r = Q(), a = z(), c = de(), d = xe(), u = oe(), f = ve(), g = R();
|
|
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 xe = 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, De().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(() => {
|
|
@@ -917,12 +917,12 @@ const xe = ie("pg-poses", {
|
|
|
917
917
|
this.active !== e && (this.active = e);
|
|
918
918
|
},
|
|
919
919
|
customReset() {
|
|
920
|
-
const e =
|
|
920
|
+
const e = ye(), t = me(), s = Q(), n = z(), r = de(), a = xe(), c = oe(), d = ve(), u = R();
|
|
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 ft(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 pt(e) {
|
|
|
931
931
|
}
|
|
932
932
|
return Array.from(t).sort((s, n) => s - n);
|
|
933
933
|
}
|
|
934
|
-
function
|
|
934
|
+
function gt(e = {}) {
|
|
935
935
|
return {
|
|
936
|
-
cameras:
|
|
937
|
-
genders:
|
|
938
|
-
skins:
|
|
939
|
-
species:
|
|
936
|
+
cameras: ft(e.cameras),
|
|
937
|
+
genders: ft(e.genders),
|
|
938
|
+
skins: ft(e.skins),
|
|
939
|
+
species: ft(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 mt(e) {
|
|
945
945
|
return JSON.stringify([e.cameras, e.genders, e.skins, e.species]);
|
|
946
946
|
}
|
|
947
|
-
const
|
|
947
|
+
const Dt = he("pg-count", {
|
|
948
948
|
state: () => ({
|
|
949
949
|
// --- CACHE ---
|
|
950
950
|
// entries[key] = { count:number, ts:number }
|
|
@@ -969,14 +969,14 @@ const xt = ie("pg-count", {
|
|
|
969
969
|
getters: {
|
|
970
970
|
// Fresh cached count for given filters (or null)
|
|
971
971
|
cachedCount: (e) => (t) => {
|
|
972
|
-
const s = gt(
|
|
972
|
+
const s = mt(gt(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() {
|
|
976
976
|
return this.getFilters();
|
|
977
977
|
},
|
|
978
978
|
adjustedCount(e) {
|
|
979
|
-
const t =
|
|
979
|
+
const t = oe(), s = ve(), n = t.selected.length, a = s.selected.length / 4;
|
|
980
980
|
return this.count * n * 36 * a;
|
|
981
981
|
}
|
|
982
982
|
},
|
|
@@ -993,7 +993,7 @@ const xt = ie("pg-count", {
|
|
|
993
993
|
this.entries[e] = { count: t, ts: Date.now() }, this._touchKey(e);
|
|
994
994
|
},
|
|
995
995
|
getFilters() {
|
|
996
|
-
const e =
|
|
996
|
+
const e = me(), t = de(), s = R(), n = z(), r = oe();
|
|
997
997
|
return {
|
|
998
998
|
cameras: e.selected,
|
|
999
999
|
genders: t.selected,
|
|
@@ -1007,7 +1007,7 @@ const xt = 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 = gt(e), s = mt(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 xt = 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 = gt(e), s = mt(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 xt = ie("pg-count", {
|
|
|
1044
1044
|
},
|
|
1045
1045
|
// cache maintenance
|
|
1046
1046
|
invalidate(e) {
|
|
1047
|
-
const t = gt(
|
|
1047
|
+
const t = mt(gt(e));
|
|
1048
1048
|
if (this.entries[t]) {
|
|
1049
1049
|
delete this.entries[t];
|
|
1050
1050
|
const s = this.order.indexOf(t);
|
|
@@ -1069,7 +1069,7 @@ const xt = ie("pg-count", {
|
|
|
1069
1069
|
loadImage({ url: e, callback: t = null }) {
|
|
1070
1070
|
if (typeof Image > "u")
|
|
1071
1071
|
throw t && typeof t == "function" && t(e, Xt), new Error("Image() constructor does not exist.");
|
|
1072
|
-
t && typeof t == "function" && t(e,
|
|
1072
|
+
t && typeof t == "function" && t(e, Mo);
|
|
1073
1073
|
let s = new Image();
|
|
1074
1074
|
s.onabort = function(n) {
|
|
1075
1075
|
t && typeof t == "function" && t(e, an), this.onerror = this.onabort = this.onload = null;
|
|
@@ -1083,19 +1083,19 @@ const xt = ie("pg-count", {
|
|
|
1083
1083
|
function xr(e, t) {
|
|
1084
1084
|
return Object.values(e).find((s) => s.src === t);
|
|
1085
1085
|
}
|
|
1086
|
-
function
|
|
1086
|
+
function Dr({
|
|
1087
1087
|
poseId: e,
|
|
1088
1088
|
index: t,
|
|
1089
1089
|
skinId: s,
|
|
1090
1090
|
effectId: n,
|
|
1091
1091
|
lightDirection: r
|
|
1092
1092
|
}) {
|
|
1093
|
-
const a =
|
|
1093
|
+
const a = z(), d = R().getSlugById(s), u = a.getSlugById(n);
|
|
1094
1094
|
return `/figure-drawing-poses/${e}/${d}/${u}/${t}/${r === 1 ? 1 : 0}`;
|
|
1095
1095
|
}
|
|
1096
1096
|
function yn(e, t = "lg") {
|
|
1097
1097
|
if (!e) return;
|
|
1098
|
-
const { getPoseSmall: s, getPoseLarge: n } =
|
|
1098
|
+
const { getPoseSmall: s, getPoseLarge: n } = et(), r = We(e);
|
|
1099
1099
|
return r.size = t, En(r);
|
|
1100
1100
|
}
|
|
1101
1101
|
function En({
|
|
@@ -1105,32 +1105,32 @@ function En({
|
|
|
1105
1105
|
effectId: n,
|
|
1106
1106
|
size: r = "lg"
|
|
1107
1107
|
}) {
|
|
1108
|
-
const { getPoseSmall: a, getPoseLarge: c } =
|
|
1108
|
+
const { getPoseSmall: a, getPoseLarge: c } = et(), d = De(), u = z(), f = R(), g = d.getModelById(e), v = f.getSlugById(s), T = u.getSlugById(n), C = n === 3 ? "000000" : "ffffff";
|
|
1109
1109
|
return r === "lg" ? c({
|
|
1110
1110
|
uuid: g.uuid,
|
|
1111
1111
|
skin: v,
|
|
1112
1112
|
effect: T,
|
|
1113
|
-
color:
|
|
1113
|
+
color: C,
|
|
1114
1114
|
index: t
|
|
1115
1115
|
}) : a({
|
|
1116
1116
|
uuid: g.uuid,
|
|
1117
1117
|
skin: v,
|
|
1118
1118
|
effect: T,
|
|
1119
|
-
color:
|
|
1119
|
+
color: C,
|
|
1120
1120
|
index: t
|
|
1121
1121
|
});
|
|
1122
1122
|
}
|
|
1123
|
-
function
|
|
1123
|
+
function Ht(e) {
|
|
1124
1124
|
const t = e.split(".");
|
|
1125
1125
|
return {
|
|
1126
1126
|
id: e,
|
|
1127
1127
|
src: yn(e),
|
|
1128
|
-
status:
|
|
1128
|
+
status: Tt,
|
|
1129
1129
|
flipped: t[2] === 1
|
|
1130
1130
|
};
|
|
1131
1131
|
}
|
|
1132
|
-
function
|
|
1133
|
-
const t =
|
|
1132
|
+
function wr(e) {
|
|
1133
|
+
const t = De(), s = oe(), n = z(), r = R(), a = ve(), c = t.models[e];
|
|
1134
1134
|
return [
|
|
1135
1135
|
e,
|
|
1136
1136
|
a.getRandom(c.index),
|
|
@@ -1150,7 +1150,7 @@ function We(e) {
|
|
|
1150
1150
|
effectId: t[4]
|
|
1151
1151
|
};
|
|
1152
1152
|
}
|
|
1153
|
-
const
|
|
1153
|
+
const K = he("pg-history", {
|
|
1154
1154
|
state: () => ({
|
|
1155
1155
|
failed: 0,
|
|
1156
1156
|
history: [],
|
|
@@ -1162,7 +1162,7 @@ const X = ie("pg-history", {
|
|
|
1162
1162
|
}),
|
|
1163
1163
|
getters: {
|
|
1164
1164
|
playSrc(e) {
|
|
1165
|
-
const t =
|
|
1165
|
+
const t = z(), s = R(), n = this.history[this.index];
|
|
1166
1166
|
if (!n) return;
|
|
1167
1167
|
const r = We(n);
|
|
1168
1168
|
return r.effectId = t.playSelected, r.skinId = s.playSelected, En(r);
|
|
@@ -1173,8 +1173,8 @@ const X = ie("pg-history", {
|
|
|
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 =
|
|
1177
|
-
return r.effectId = s.playSelected, r.skinId = n.playSelected,
|
|
1176
|
+
const s = z(), n = R(), r = We(t);
|
|
1177
|
+
return r.effectId = s.playSelected, r.skinId = n.playSelected, Dr(r);
|
|
1178
1178
|
},
|
|
1179
1179
|
previewFlipped(e) {
|
|
1180
1180
|
const t = e.queue[0];
|
|
@@ -1246,19 +1246,19 @@ const X = ie("pg-history", {
|
|
|
1246
1246
|
this.queue = [];
|
|
1247
1247
|
},
|
|
1248
1248
|
loadQueue() {
|
|
1249
|
-
const e =
|
|
1249
|
+
const e = Dt(), t = De(), s = e.filters, n = t.randomTake(20, s), r = [];
|
|
1250
1250
|
if (n.forEach((d) => {
|
|
1251
1251
|
try {
|
|
1252
|
-
const u =
|
|
1252
|
+
const u = wr(d);
|
|
1253
1253
|
r.push(u);
|
|
1254
1254
|
} catch (u) {
|
|
1255
1255
|
console.error("error", u);
|
|
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] = Ht(a));
|
|
1260
1260
|
const c = this.models[a];
|
|
1261
|
-
c.status ===
|
|
1261
|
+
c.status === Tt && 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 = z(), t = De(), s = R(), n = V(), r = Q(), a = this.queue.shift();
|
|
1275
1275
|
if (a == null) return;
|
|
1276
|
-
this.models[a] || (this.models[a] =
|
|
1276
|
+
this.models[a] || (this.models[a] = Ht(a));
|
|
1277
1277
|
const c = this.models[a];
|
|
1278
|
-
(c.status ===
|
|
1278
|
+
(c.status === Tt || 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 = R(), t = z(), 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,9 +1316,9 @@ 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] = Ht(s));
|
|
1320
1320
|
const n = this.models[s], r = n.status;
|
|
1321
|
-
if ((r ===
|
|
1321
|
+
if ((r === Tt || r === Zt) && this.loadImage({
|
|
1322
1322
|
url: n.src,
|
|
1323
1323
|
callback: this.updateStatus
|
|
1324
1324
|
}), r === Xt || r === an) {
|
|
@@ -1330,22 +1330,30 @@ const X = ie("pg-history", {
|
|
|
1330
1330
|
this.queue.length < 5 && this.loadQueue();
|
|
1331
1331
|
}
|
|
1332
1332
|
}
|
|
1333
|
-
}), $s = 0,
|
|
1333
|
+
}), $s = 0, bt = 1, Xe = 2, ue = he("pg-timer", {
|
|
1334
1334
|
state: () => ({
|
|
1335
|
-
status:
|
|
1335
|
+
status: bt,
|
|
1336
1336
|
interval: 0,
|
|
1337
1337
|
intervalDelay: 25,
|
|
1338
1338
|
seconds: 0,
|
|
1339
|
-
milliseconds: 0
|
|
1339
|
+
milliseconds: 0,
|
|
1340
|
+
// Increments each time `_tick` detects the per-pose duration has elapsed
|
|
1341
|
+
// and the timer auto-advances. Watched by PoseGenerator.js to fire
|
|
1342
|
+
// `timer:completed` activity events. `lastLapPoseId` captures the pose
|
|
1343
|
+
// that just completed *before* `controlsStore.next()` advances history,
|
|
1344
|
+
// because by the time the Vue watcher flushes `historyStore.currentId`
|
|
1345
|
+
// already points at the next pose. Not used for any timer logic itself.
|
|
1346
|
+
completedLaps: 0,
|
|
1347
|
+
lastLapPoseId: null
|
|
1340
1348
|
}),
|
|
1341
1349
|
getters: {
|
|
1342
1350
|
formatted(e) {
|
|
1343
|
-
const s =
|
|
1351
|
+
const s = Q().duration, n = s - e.seconds;
|
|
1344
1352
|
let r = Math.floor(n / 60), a = n - r * 60;
|
|
1345
1353
|
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
1354
|
},
|
|
1347
1355
|
playing(e) {
|
|
1348
|
-
return e.status ===
|
|
1356
|
+
return e.status === Xe;
|
|
1349
1357
|
},
|
|
1350
1358
|
paused(e) {
|
|
1351
1359
|
return e.status === $s;
|
|
@@ -1382,7 +1390,7 @@ const X = ie("pg-history", {
|
|
|
1382
1390
|
stop() {
|
|
1383
1391
|
clearInterval(this.interval), this.resetTimer(), this.$patch({
|
|
1384
1392
|
interval: 0,
|
|
1385
|
-
status:
|
|
1393
|
+
status: bt
|
|
1386
1394
|
});
|
|
1387
1395
|
},
|
|
1388
1396
|
/**
|
|
@@ -1390,14 +1398,14 @@ const X = ie("pg-history", {
|
|
|
1390
1398
|
* @param context
|
|
1391
1399
|
*/
|
|
1392
1400
|
start() {
|
|
1393
|
-
if (this.status !==
|
|
1401
|
+
if (this.status !== Xe) {
|
|
1394
1402
|
clearInterval(this.interval), this.$patch({
|
|
1395
1403
|
interval: 0
|
|
1396
1404
|
});
|
|
1397
1405
|
const e = setInterval(this._tick, this.intervalDelay);
|
|
1398
1406
|
this.$patch({
|
|
1399
1407
|
interval: e,
|
|
1400
|
-
status:
|
|
1408
|
+
status: Xe
|
|
1401
1409
|
});
|
|
1402
1410
|
}
|
|
1403
1411
|
},
|
|
@@ -1406,9 +1414,10 @@ const X = ie("pg-history", {
|
|
|
1406
1414
|
* @param context
|
|
1407
1415
|
*/
|
|
1408
1416
|
_tick() {
|
|
1409
|
-
const e =
|
|
1417
|
+
const e = Q(), t = _e(), s = e.duration, n = this.milliseconds + this.intervalDelay, r = Math.round(n / 1e3);
|
|
1410
1418
|
if (n === s * 1e3) {
|
|
1411
|
-
|
|
1419
|
+
const a = K();
|
|
1420
|
+
this.lastLapPoseId = a.currentId || null, this.completedLaps++, this.resetTimer(), t.next();
|
|
1412
1421
|
return;
|
|
1413
1422
|
}
|
|
1414
1423
|
this.$patch({
|
|
@@ -1417,7 +1426,7 @@ const X = ie("pg-history", {
|
|
|
1417
1426
|
});
|
|
1418
1427
|
}
|
|
1419
1428
|
}
|
|
1420
|
-
}), zs = 0,
|
|
1429
|
+
}), zs = 0, vt = 1, Mr = 2, _e = he("pg-controls", {
|
|
1421
1430
|
state: () => ({
|
|
1422
1431
|
timer: !0,
|
|
1423
1432
|
next: !0,
|
|
@@ -1432,7 +1441,7 @@ const X = ie("pg-history", {
|
|
|
1432
1441
|
* @param getters
|
|
1433
1442
|
*/
|
|
1434
1443
|
nextDisabled(e) {
|
|
1435
|
-
return
|
|
1444
|
+
return K().nextDisabled;
|
|
1436
1445
|
},
|
|
1437
1446
|
/**
|
|
1438
1447
|
* Is the the previous button disabled.
|
|
@@ -1441,7 +1450,7 @@ const X = ie("pg-history", {
|
|
|
1441
1450
|
* @returns {boolean}
|
|
1442
1451
|
*/
|
|
1443
1452
|
previousDisabled(e) {
|
|
1444
|
-
return
|
|
1453
|
+
return K().previousDisabled;
|
|
1445
1454
|
}
|
|
1446
1455
|
},
|
|
1447
1456
|
actions: {
|
|
@@ -1449,15 +1458,15 @@ const X = ie("pg-history", {
|
|
|
1449
1458
|
* Open the pose generator tool, reset history and start playing from queue
|
|
1450
1459
|
*/
|
|
1451
1460
|
open() {
|
|
1452
|
-
const e =
|
|
1453
|
-
e.resetTimer(), t.next(), e.start(), this.$patch({ show: !0, status:
|
|
1461
|
+
const e = ue(), t = K(), s = V();
|
|
1462
|
+
e.resetTimer(), t.next(), e.start(), this.$patch({ show: !0, status: vt }), s.$patch({ active: Ne, playActive: Ne });
|
|
1454
1463
|
},
|
|
1455
1464
|
/**
|
|
1456
1465
|
* Close the pose generator tool
|
|
1457
1466
|
*/
|
|
1458
1467
|
close() {
|
|
1459
|
-
const e =
|
|
1460
|
-
e.stop(), this.show = !1, this.status = zs, t.reset(), s.$patch({ active:
|
|
1468
|
+
const e = ue(), t = K(), s = V();
|
|
1469
|
+
e.stop(), this.show = !1, this.status = zs, t.reset(), s.$patch({ active: Ne, playActive: Ne });
|
|
1461
1470
|
},
|
|
1462
1471
|
/**
|
|
1463
1472
|
* Check if currently inside of history, if so increment history index
|
|
@@ -1465,7 +1474,7 @@ const X = ie("pg-history", {
|
|
|
1465
1474
|
*/
|
|
1466
1475
|
next: un(
|
|
1467
1476
|
function() {
|
|
1468
|
-
|
|
1477
|
+
K().next(), this.resetOrRestartTimer();
|
|
1469
1478
|
},
|
|
1470
1479
|
250,
|
|
1471
1480
|
{ leading: !0, maxWait: 500 }
|
|
@@ -1474,22 +1483,22 @@ const X = ie("pg-history", {
|
|
|
1474
1483
|
* Move to the previous pose in history if it exists
|
|
1475
1484
|
*/
|
|
1476
1485
|
previous() {
|
|
1477
|
-
const e =
|
|
1486
|
+
const e = K();
|
|
1478
1487
|
e.index > 0 && (e.previous(), this.resetOrRestartTimer());
|
|
1479
1488
|
},
|
|
1480
1489
|
/**
|
|
1481
1490
|
*
|
|
1482
1491
|
*/
|
|
1483
1492
|
pause() {
|
|
1484
|
-
const e =
|
|
1485
|
-
this.status =
|
|
1493
|
+
const e = ue();
|
|
1494
|
+
this.status = Mr, e.pause();
|
|
1486
1495
|
},
|
|
1487
1496
|
/**
|
|
1488
1497
|
*
|
|
1489
1498
|
*/
|
|
1490
1499
|
play() {
|
|
1491
|
-
const e =
|
|
1492
|
-
this.status =
|
|
1500
|
+
const e = ue();
|
|
1501
|
+
this.status = vt, e.start();
|
|
1493
1502
|
},
|
|
1494
1503
|
/**
|
|
1495
1504
|
* Reset or restart the time based on the current play status
|
|
@@ -1497,7 +1506,7 @@ const X = ie("pg-history", {
|
|
|
1497
1506
|
* @param dispatch
|
|
1498
1507
|
*/
|
|
1499
1508
|
resetOrRestartTimer() {
|
|
1500
|
-
const e =
|
|
1509
|
+
const e = ue();
|
|
1501
1510
|
if (e.playing === !0) {
|
|
1502
1511
|
e.restart();
|
|
1503
1512
|
return;
|
|
@@ -1505,15 +1514,15 @@ const X = ie("pg-history", {
|
|
|
1505
1514
|
e.resetTimer();
|
|
1506
1515
|
},
|
|
1507
1516
|
startTimer() {
|
|
1508
|
-
const e =
|
|
1517
|
+
const e = ue();
|
|
1509
1518
|
if (
|
|
1510
1519
|
// p !== null &&
|
|
1511
|
-
e.status ===
|
|
1520
|
+
e.status === bt && this.show === !0 && this.status === vt
|
|
1512
1521
|
) {
|
|
1513
1522
|
e.start();
|
|
1514
1523
|
return;
|
|
1515
1524
|
}
|
|
1516
|
-
e.status ===
|
|
1525
|
+
e.status === bt && this.show === !0 && this.status === vt && this.startTimerLoop();
|
|
1517
1526
|
},
|
|
1518
1527
|
startTimerLoop() {
|
|
1519
1528
|
setTimeout(() => {
|
|
@@ -1521,8 +1530,8 @@ const X = ie("pg-history", {
|
|
|
1521
1530
|
}, 250);
|
|
1522
1531
|
}
|
|
1523
1532
|
}
|
|
1524
|
-
}), Hs = /* @__PURE__ */ Object.assign({ "../i18n/en-US/index.js": () => import("./index-BMl4y9AI.js") }), A = (e = "../i18n") => {
|
|
1525
|
-
const t =
|
|
1533
|
+
}), Ar = "pose:viewed", Nr = "timer:started", Or = "timer:completed", kr = "pose:generated", Hs = /* @__PURE__ */ Object.assign({ "../i18n/en-US/index.js": () => import("./index-BMl4y9AI.js") }), A = (e = "../i18n") => {
|
|
1534
|
+
const t = xt(), s = Z({}), n = y(() => t.lang.isoName || "en-US"), r = async () => {
|
|
1526
1535
|
const a = `${e}/${n.value}/index.js`;
|
|
1527
1536
|
if (Hs[a])
|
|
1528
1537
|
try {
|
|
@@ -1534,7 +1543,7 @@ const X = ie("pg-history", {
|
|
|
1534
1543
|
else
|
|
1535
1544
|
console.error(`Module not found: ${a}`);
|
|
1536
1545
|
};
|
|
1537
|
-
return
|
|
1546
|
+
return ce(
|
|
1538
1547
|
() => n.value,
|
|
1539
1548
|
() => {
|
|
1540
1549
|
r();
|
|
@@ -1543,23 +1552,23 @@ const X = ie("pg-history", {
|
|
|
1543
1552
|
), _o(() => {
|
|
1544
1553
|
r();
|
|
1545
1554
|
}), { lang: s };
|
|
1546
|
-
},
|
|
1547
|
-
tab: e =
|
|
1555
|
+
}, pe = ({
|
|
1556
|
+
tab: e = Ao,
|
|
1548
1557
|
store: t,
|
|
1549
1558
|
options: s = [],
|
|
1550
1559
|
playMode: n = !1
|
|
1551
1560
|
}) => {
|
|
1552
|
-
const r = xo(), a =
|
|
1561
|
+
const r = xo(), a = V(r), c = y({
|
|
1553
1562
|
get: () => a.isExpanded(s, n),
|
|
1554
1563
|
set: (f) => {
|
|
1555
1564
|
f && a.setActive(e, n);
|
|
1556
1565
|
}
|
|
1557
1566
|
}), d = y(() => t && t.changed);
|
|
1558
1567
|
return { click: () => a.setActive(e, n), expanded: c, selected: d };
|
|
1559
|
-
}, Sn =
|
|
1568
|
+
}, Sn = _({
|
|
1560
1569
|
name: "PgDurationsTool",
|
|
1561
1570
|
setup(e, { slots: t, emit: s }) {
|
|
1562
|
-
const n =
|
|
1571
|
+
const n = V(), r = Q(), { loading: a } = S(n), { collectedModels: c, values: d } = S(r), u = y({
|
|
1563
1572
|
get: () => r.index,
|
|
1564
1573
|
set: (g) => r.setSelectedByIndex(g)
|
|
1565
1574
|
});
|
|
@@ -1604,10 +1613,10 @@ const X = ie("pg-history", {
|
|
|
1604
1613
|
}
|
|
1605
1614
|
return () => f();
|
|
1606
1615
|
}
|
|
1607
|
-
}),
|
|
1616
|
+
}), Lr = _({
|
|
1608
1617
|
name: "PgDurationsExpansion",
|
|
1609
1618
|
setup(e, { slots: t, emit: s }) {
|
|
1610
|
-
const { lang: n } = A(), r =
|
|
1619
|
+
const { lang: n } = A(), r = Q(), { title: a } = S(r), { expanded: c } = pe({
|
|
1611
1620
|
options: Wt,
|
|
1612
1621
|
tab: Wt
|
|
1613
1622
|
}), d = y(() => {
|
|
@@ -1623,11 +1632,11 @@ const X = ie("pg-history", {
|
|
|
1623
1632
|
caption: a.value,
|
|
1624
1633
|
icon: pn
|
|
1625
1634
|
};
|
|
1626
|
-
return h(
|
|
1635
|
+
return h(Ee, f, () => h(Sn));
|
|
1627
1636
|
}
|
|
1628
1637
|
return () => u();
|
|
1629
1638
|
}
|
|
1630
|
-
}),
|
|
1639
|
+
}), Vr = _({
|
|
1631
1640
|
name: "PgSkinsToolButton",
|
|
1632
1641
|
props: {
|
|
1633
1642
|
id: Number,
|
|
@@ -1637,17 +1646,17 @@ const X = ie("pg-history", {
|
|
|
1637
1646
|
},
|
|
1638
1647
|
emits: ["click", "update:modelValue"],
|
|
1639
1648
|
setup(e, { slots: t, emit: s }) {
|
|
1640
|
-
const n =
|
|
1649
|
+
const n = R(), r = V(), { 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 = (P) => {
|
|
1641
1650
|
if (e.playMode) {
|
|
1642
|
-
n.playSelected =
|
|
1651
|
+
n.playSelected = P;
|
|
1643
1652
|
return;
|
|
1644
1653
|
}
|
|
1645
|
-
n.toggleSelected(
|
|
1654
|
+
n.toggleSelected(P);
|
|
1646
1655
|
}, T = y(
|
|
1647
1656
|
() => e.playMode ? c.value === e.id : a.value.includes(e.id)
|
|
1648
|
-
),
|
|
1649
|
-
function
|
|
1650
|
-
const
|
|
1657
|
+
), C = (P) => r.block(P), w = y(() => r.hasAccess(f.value));
|
|
1658
|
+
function I() {
|
|
1659
|
+
const P = {
|
|
1651
1660
|
circle: !0,
|
|
1652
1661
|
size: e.playMode ? "sm" : "lg",
|
|
1653
1662
|
type: e.playMode ? "radio" : "checkbox",
|
|
@@ -1657,14 +1666,14 @@ const X = ie("pg-history", {
|
|
|
1657
1666
|
onClick: () => v(e.id),
|
|
1658
1667
|
disable: d.value,
|
|
1659
1668
|
selected: T.value,
|
|
1660
|
-
hasAccess:
|
|
1661
|
-
onBlockAccess:
|
|
1669
|
+
hasAccess: w.value,
|
|
1670
|
+
onBlockAccess: C
|
|
1662
1671
|
};
|
|
1663
|
-
return h(
|
|
1672
|
+
return h(Je, P);
|
|
1664
1673
|
}
|
|
1665
|
-
return () =>
|
|
1674
|
+
return () => I();
|
|
1666
1675
|
}
|
|
1667
|
-
}), ss =
|
|
1676
|
+
}), ss = _({
|
|
1668
1677
|
name: "PgSkinsTool",
|
|
1669
1678
|
props: {
|
|
1670
1679
|
noWrap: Boolean,
|
|
@@ -1674,7 +1683,7 @@ const X = ie("pg-history", {
|
|
|
1674
1683
|
},
|
|
1675
1684
|
emits: ["click", "update:modelValue"],
|
|
1676
1685
|
setup(e, { slots: t, emit: s }) {
|
|
1677
|
-
const n =
|
|
1686
|
+
const n = R(), r = De(), a = K(), { currentId: c } = S(a), d = y(() => {
|
|
1678
1687
|
if (e.playMode) {
|
|
1679
1688
|
const g = r.getModelById(c.value);
|
|
1680
1689
|
return n.getModelsByIds(g == null ? void 0 : g.skin_ids);
|
|
@@ -1694,23 +1703,23 @@ const X = ie("pg-history", {
|
|
|
1694
1703
|
})).value, d.value.length;
|
|
1695
1704
|
const v = [];
|
|
1696
1705
|
return d.value.forEach((T) => {
|
|
1697
|
-
const
|
|
1706
|
+
const C = {
|
|
1698
1707
|
id: T.id,
|
|
1699
1708
|
key: T.id,
|
|
1700
1709
|
playMode: e.playMode,
|
|
1701
1710
|
slug: T.slug,
|
|
1702
1711
|
class: "q-ma-xs"
|
|
1703
1712
|
};
|
|
1704
|
-
u.value && (
|
|
1713
|
+
u.value && (C.uuid = u.value), v.push(h(Vr, C));
|
|
1705
1714
|
}), h(dn, {}, () => v);
|
|
1706
1715
|
}
|
|
1707
1716
|
return () => f();
|
|
1708
1717
|
}
|
|
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({
|
|
1718
|
+
}), Ur = "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", Rr = "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", Br = "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", $r = "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", zr = "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", Hr = "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", Fr = "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 = _({
|
|
1710
1719
|
name: "PgSkinsExpansion",
|
|
1711
1720
|
props: { playMode: Boolean },
|
|
1712
1721
|
setup(e, { slots: t, emit: s }) {
|
|
1713
|
-
const { lang: n } = A(), r =
|
|
1722
|
+
const { lang: n } = A(), r = R(), { expanded: a } = pe({
|
|
1714
1723
|
options: Yt,
|
|
1715
1724
|
tab: Yt,
|
|
1716
1725
|
playMode: e.playMode
|
|
@@ -1727,22 +1736,22 @@ const X = ie("pg-history", {
|
|
|
1727
1736
|
"onUpdate:modelValue": (v) => a.value = v,
|
|
1728
1737
|
label: c.value,
|
|
1729
1738
|
caption: u.value,
|
|
1730
|
-
icon:
|
|
1739
|
+
icon: zr
|
|
1731
1740
|
}, g = {
|
|
1732
1741
|
playMode: e.playMode
|
|
1733
1742
|
};
|
|
1734
|
-
return h(
|
|
1743
|
+
return h(Ee, f, () => h(ss, g));
|
|
1735
1744
|
}
|
|
1736
1745
|
return () => d();
|
|
1737
1746
|
}
|
|
1738
|
-
}),
|
|
1747
|
+
}), qr = _({
|
|
1739
1748
|
name: "PgEffectsToolButton",
|
|
1740
1749
|
props: {
|
|
1741
1750
|
id: { type: Number, required: !0 },
|
|
1742
1751
|
playMode: Boolean
|
|
1743
1752
|
},
|
|
1744
1753
|
setup(e, { slots: t, emit: s }) {
|
|
1745
|
-
const n =
|
|
1754
|
+
const n = z(), r = V(), { loading: a } = S(r), c = () => n.setSelected(e.id, e.playMode), d = y(() => e.playMode ? n.playSelected : n.selected);
|
|
1746
1755
|
function u() {
|
|
1747
1756
|
const f = {
|
|
1748
1757
|
class: "pg-effects-tool-button",
|
|
@@ -1754,11 +1763,11 @@ const X = ie("pg-history", {
|
|
|
1754
1763
|
type: "radio",
|
|
1755
1764
|
onClick: c
|
|
1756
1765
|
};
|
|
1757
|
-
return h(
|
|
1766
|
+
return h(Je, f);
|
|
1758
1767
|
}
|
|
1759
1768
|
return () => u();
|
|
1760
1769
|
}
|
|
1761
|
-
}), Cn =
|
|
1770
|
+
}), Cn = _({
|
|
1762
1771
|
name: "PgEffectsTool",
|
|
1763
1772
|
props: {
|
|
1764
1773
|
modelValue: { type: Number, default: 0 },
|
|
@@ -1768,7 +1777,7 @@ const X = ie("pg-history", {
|
|
|
1768
1777
|
},
|
|
1769
1778
|
emits: ["click", "update:modelValue"],
|
|
1770
1779
|
setup(e, { slots: t, emit: s }) {
|
|
1771
|
-
const n =
|
|
1780
|
+
const n = z(), { collection: r } = S(n);
|
|
1772
1781
|
function a() {
|
|
1773
1782
|
const d = {
|
|
1774
1783
|
class: y(() => ({
|
|
@@ -1777,7 +1786,7 @@ const X = ie("pg-history", {
|
|
|
1777
1786
|
}, u = [];
|
|
1778
1787
|
return r.value.forEach((f) => {
|
|
1779
1788
|
u.push(
|
|
1780
|
-
h(
|
|
1789
|
+
h(qr, {
|
|
1781
1790
|
id: f,
|
|
1782
1791
|
playMode: e.playMode,
|
|
1783
1792
|
class: "q-ma-xs"
|
|
@@ -1787,13 +1796,13 @@ const X = ie("pg-history", {
|
|
|
1787
1796
|
}
|
|
1788
1797
|
return () => a();
|
|
1789
1798
|
}
|
|
1790
|
-
}), _n =
|
|
1799
|
+
}), _n = _({
|
|
1791
1800
|
name: "PgEffectsExpansion",
|
|
1792
1801
|
props: { playMode: Boolean },
|
|
1793
1802
|
setup(e, { slots: t, emit: s }) {
|
|
1794
|
-
const { lang: n } = A(), r =
|
|
1795
|
-
options:
|
|
1796
|
-
tab:
|
|
1803
|
+
const { lang: n } = A(), r = z(), { expanded: a } = pe({
|
|
1804
|
+
options: Ct,
|
|
1805
|
+
tab: Ct,
|
|
1797
1806
|
playMode: e.playMode
|
|
1798
1807
|
}), c = y(() => {
|
|
1799
1808
|
var u;
|
|
@@ -1812,17 +1821,17 @@ const X = ie("pg-history", {
|
|
|
1812
1821
|
}, g = {
|
|
1813
1822
|
playMode: e.playMode
|
|
1814
1823
|
};
|
|
1815
|
-
return h(
|
|
1824
|
+
return h(Ee, f, () => h(Cn, g));
|
|
1816
1825
|
}
|
|
1817
1826
|
return () => d();
|
|
1818
1827
|
}
|
|
1819
|
-
}),
|
|
1828
|
+
}), jr = {
|
|
1820
1829
|
__name: "PgCameraAnglesToolButton",
|
|
1821
1830
|
props: {
|
|
1822
1831
|
id: Number
|
|
1823
1832
|
},
|
|
1824
1833
|
setup(e) {
|
|
1825
|
-
const t = e, s =
|
|
1834
|
+
const t = e, s = me(), n = V(), { 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
1835
|
switch (t.id) {
|
|
1827
1836
|
case 2:
|
|
1828
1837
|
return "cad";
|
|
@@ -1831,39 +1840,39 @@ const X = ie("pg-history", {
|
|
|
1831
1840
|
default:
|
|
1832
1841
|
return "can";
|
|
1833
1842
|
}
|
|
1834
|
-
}), g = (
|
|
1835
|
-
return (
|
|
1843
|
+
}), g = (C) => n.block(C), v = y(() => n.hasAccess(f.value)), T = (C) => s.toggleSelected(C);
|
|
1844
|
+
return (C, w) => (L(), It(N(Je), {
|
|
1836
1845
|
size: "lg",
|
|
1837
1846
|
type: "checkbox",
|
|
1838
1847
|
access: f.value,
|
|
1839
|
-
onClick:
|
|
1848
|
+
onClick: w[0] || (w[0] = (I) => T(e.id)),
|
|
1840
1849
|
image: u.value,
|
|
1841
1850
|
label: d.value,
|
|
1842
1851
|
selected: c.value,
|
|
1843
|
-
disable:
|
|
1852
|
+
disable: N(a),
|
|
1844
1853
|
"has-access": v.value,
|
|
1845
1854
|
onBlockAccess: g
|
|
1846
1855
|
}, null, 8, ["access", "image", "label", "selected", "disable", "has-access"]));
|
|
1847
1856
|
}
|
|
1848
|
-
},
|
|
1857
|
+
}, Gr = { class: "pg-cameras-tool row q-col-gutter-sm flex justify-center" }, bn = {
|
|
1849
1858
|
__name: "PgCameraAnglesTool",
|
|
1850
1859
|
setup(e) {
|
|
1851
|
-
const t =
|
|
1852
|
-
return (n, r) => (
|
|
1853
|
-
(
|
|
1860
|
+
const t = me(), { collection: s } = S(t);
|
|
1861
|
+
return (n, r) => (L(), F("div", Gr, [
|
|
1862
|
+
(L(!0), F(Ze, null, Ke(N(s), (a) => (L(), F("div", {
|
|
1854
1863
|
class: "",
|
|
1855
1864
|
key: a
|
|
1856
1865
|
}, [
|
|
1857
|
-
|
|
1866
|
+
H(jr, { id: a }, null, 8, ["id"])
|
|
1858
1867
|
]))), 128))
|
|
1859
1868
|
]));
|
|
1860
1869
|
}
|
|
1861
|
-
},
|
|
1870
|
+
}, Yr = _({
|
|
1862
1871
|
name: "PgCamerasExpansion",
|
|
1863
1872
|
setup(e, { slots: t, emit: s }) {
|
|
1864
|
-
const { lang: n } = A(), r =
|
|
1865
|
-
options:
|
|
1866
|
-
tab:
|
|
1873
|
+
const { lang: n } = A(), r = me(), { caption: a } = S(r), { expanded: c } = pe({
|
|
1874
|
+
options: As,
|
|
1875
|
+
tab: As
|
|
1867
1876
|
}), d = y(() => {
|
|
1868
1877
|
var f;
|
|
1869
1878
|
return (f = n.value.pg) == null ? void 0 : f.tools.angle;
|
|
@@ -1875,47 +1884,47 @@ const X = ie("pg-history", {
|
|
|
1875
1884
|
"onUpdate:modelValue": (g) => c.value = g,
|
|
1876
1885
|
label: d.value,
|
|
1877
1886
|
caption: a.value,
|
|
1878
|
-
icon:
|
|
1887
|
+
icon: Ur
|
|
1879
1888
|
};
|
|
1880
|
-
return h(
|
|
1889
|
+
return h(Ee, f, () => h(bn));
|
|
1881
1890
|
}
|
|
1882
1891
|
return () => u();
|
|
1883
1892
|
}
|
|
1884
|
-
}),
|
|
1893
|
+
}), Wr = {
|
|
1885
1894
|
__name: "PgLightsToolButton",
|
|
1886
1895
|
props: { id: Number },
|
|
1887
1896
|
setup(e) {
|
|
1888
|
-
const t = e, s =
|
|
1889
|
-
return (
|
|
1897
|
+
const t = e, s = oe(), n = V(), { 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 = (C) => n.block(C), T = (C) => s.toggleSelected(C);
|
|
1898
|
+
return (C, w) => (L(), It(N(Je), {
|
|
1890
1899
|
size: "lg",
|
|
1891
1900
|
type: "checkbox",
|
|
1892
|
-
onClick:
|
|
1901
|
+
onClick: w[0] || (w[0] = (I) => T(e.id)),
|
|
1893
1902
|
image: u.value,
|
|
1894
1903
|
label: d.value,
|
|
1895
1904
|
selected: c.value,
|
|
1896
1905
|
access: f.value,
|
|
1897
|
-
disable:
|
|
1906
|
+
disable: N(a),
|
|
1898
1907
|
"has-access": g.value,
|
|
1899
1908
|
onBlockAccess: v
|
|
1900
1909
|
}, null, 8, ["image", "label", "selected", "access", "disable", "has-access"]));
|
|
1901
1910
|
}
|
|
1902
|
-
},
|
|
1911
|
+
}, Xr = { class: "pg-lights-tool row q-col-gutter-sm flex justify-center" }, In = {
|
|
1903
1912
|
__name: "PgLightsTool",
|
|
1904
1913
|
setup(e) {
|
|
1905
|
-
const t =
|
|
1906
|
-
return (n, r) => (
|
|
1907
|
-
(
|
|
1914
|
+
const t = oe(), { collection: s } = S(t);
|
|
1915
|
+
return (n, r) => (L(), F("div", Xr, [
|
|
1916
|
+
(L(!0), F(Ze, null, Ke(N(s), (a) => (L(), F("div", {
|
|
1908
1917
|
class: "",
|
|
1909
1918
|
key: a
|
|
1910
1919
|
}, [
|
|
1911
|
-
|
|
1920
|
+
H(Wr, { id: a }, null, 8, ["id"])
|
|
1912
1921
|
]))), 128))
|
|
1913
1922
|
]));
|
|
1914
1923
|
}
|
|
1915
|
-
},
|
|
1924
|
+
}, Zr = _({
|
|
1916
1925
|
name: "PgLightsExpansion",
|
|
1917
1926
|
setup(e, { slots: t, emit: s }) {
|
|
1918
|
-
const { lang: n } = A(), r =
|
|
1927
|
+
const { lang: n } = A(), r = oe(), { caption: a } = S(r), { expanded: c } = pe({
|
|
1919
1928
|
options: Ns,
|
|
1920
1929
|
tab: Ns
|
|
1921
1930
|
}), d = y(() => {
|
|
@@ -1929,22 +1938,22 @@ const X = ie("pg-history", {
|
|
|
1929
1938
|
"onUpdate:modelValue": (g) => c.value = g,
|
|
1930
1939
|
label: d.value,
|
|
1931
1940
|
caption: a.value,
|
|
1932
|
-
icon:
|
|
1941
|
+
icon: Br
|
|
1933
1942
|
};
|
|
1934
|
-
return h(
|
|
1943
|
+
return h(Ee, f, () => h(In));
|
|
1935
1944
|
}
|
|
1936
1945
|
return () => u();
|
|
1937
1946
|
}
|
|
1938
|
-
}),
|
|
1947
|
+
}), Kr = _({
|
|
1939
1948
|
name: "PgGendersToolButton",
|
|
1940
1949
|
props: {
|
|
1941
1950
|
id: Number,
|
|
1942
1951
|
compact: Boolean
|
|
1943
1952
|
},
|
|
1944
1953
|
setup(e, { slots: t, emit: s }) {
|
|
1945
|
-
const n =
|
|
1954
|
+
const n = de(), r = V(), { 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
1955
|
function T() {
|
|
1947
|
-
const
|
|
1956
|
+
const C = {
|
|
1948
1957
|
size: e.compact ? "sm" : "lg",
|
|
1949
1958
|
type: "checkbox",
|
|
1950
1959
|
access: d.value,
|
|
@@ -1954,20 +1963,20 @@ const X = ie("pg-history", {
|
|
|
1954
1963
|
selected: g.value,
|
|
1955
1964
|
disable: c.value,
|
|
1956
1965
|
hasAccess: v.value,
|
|
1957
|
-
onBlockAccess: (
|
|
1966
|
+
onBlockAccess: (w) => r.block(w)
|
|
1958
1967
|
};
|
|
1959
|
-
return h(
|
|
1968
|
+
return h(Je, C);
|
|
1960
1969
|
}
|
|
1961
1970
|
return () => T();
|
|
1962
1971
|
}
|
|
1963
|
-
}), Pn =
|
|
1972
|
+
}), Pn = _({
|
|
1964
1973
|
name: "PgGendersTool",
|
|
1965
1974
|
props: {
|
|
1966
1975
|
compact: Boolean
|
|
1967
1976
|
},
|
|
1968
1977
|
emits: ["click", "update:modelValue"],
|
|
1969
1978
|
setup(e, { slots: t, emit: s }) {
|
|
1970
|
-
const n =
|
|
1979
|
+
const n = de(), { collection: r } = S(n);
|
|
1971
1980
|
function a() {
|
|
1972
1981
|
const c = {
|
|
1973
1982
|
class: "pg-genders-tool row q-col-gutter-sm flex justify-center"
|
|
@@ -1979,18 +1988,18 @@ const X = ie("pg-history", {
|
|
|
1979
1988
|
compact: e.compact
|
|
1980
1989
|
};
|
|
1981
1990
|
d.push(
|
|
1982
|
-
h("div", { class: "" }, [h(
|
|
1991
|
+
h("div", { class: "" }, [h(Kr, f)])
|
|
1983
1992
|
);
|
|
1984
1993
|
}), h("div", c, d);
|
|
1985
1994
|
}
|
|
1986
1995
|
return () => a();
|
|
1987
1996
|
}
|
|
1988
|
-
}),
|
|
1997
|
+
}), Qr = _({
|
|
1989
1998
|
name: "PgEffectsExpansion",
|
|
1990
1999
|
setup(e, { slots: t, emit: s }) {
|
|
1991
|
-
const { lang: n } = A(), r =
|
|
1992
|
-
options:
|
|
1993
|
-
tab:
|
|
2000
|
+
const { lang: n } = A(), r = de(), { caption: a } = S(r), { expanded: c } = pe({
|
|
2001
|
+
options: _t,
|
|
2002
|
+
tab: _t
|
|
1994
2003
|
}), d = y(() => {
|
|
1995
2004
|
var f;
|
|
1996
2005
|
return (f = n.value.pg) == null ? void 0 : f.tools.gender;
|
|
@@ -2002,16 +2011,16 @@ const X = ie("pg-history", {
|
|
|
2002
2011
|
"onUpdate:modelValue": (g) => c.value = g,
|
|
2003
2012
|
label: d.value,
|
|
2004
2013
|
caption: a.value,
|
|
2005
|
-
icon:
|
|
2014
|
+
icon: Rr
|
|
2006
2015
|
};
|
|
2007
|
-
return h(
|
|
2016
|
+
return h(Ee, f, () => h(Pn, { desktop: !1 }));
|
|
2008
2017
|
}
|
|
2009
2018
|
return () => u();
|
|
2010
2019
|
}
|
|
2011
|
-
}), xn =
|
|
2020
|
+
}), xn = _({
|
|
2012
2021
|
name: "PgGridTool",
|
|
2013
2022
|
setup(e, { slots: t, emit: s }) {
|
|
2014
|
-
const n =
|
|
2023
|
+
const n = xe(), { visible: r } = S(n), a = y({
|
|
2015
2024
|
get: () => n.spacing,
|
|
2016
2025
|
set: (g) => n.setSpacing(g)
|
|
2017
2026
|
}), c = y({
|
|
@@ -2038,13 +2047,13 @@ const X = ie("pg-history", {
|
|
|
2038
2047
|
}
|
|
2039
2048
|
return () => f();
|
|
2040
2049
|
}
|
|
2041
|
-
}),
|
|
2050
|
+
}), Dn = _({
|
|
2042
2051
|
name: "PgLightsExpansion",
|
|
2043
2052
|
props: {
|
|
2044
2053
|
playMode: Boolean
|
|
2045
2054
|
},
|
|
2046
2055
|
setup(e, { slots: t, emit: s }) {
|
|
2047
|
-
const { lang: n } = A(), r =
|
|
2056
|
+
const { lang: n } = A(), r = xe(), { caption: a } = S(r), { expanded: c } = pe({
|
|
2048
2057
|
options: Os,
|
|
2049
2058
|
tab: Os,
|
|
2050
2059
|
playMode: e.playMode
|
|
@@ -2061,62 +2070,62 @@ const X = ie("pg-history", {
|
|
|
2061
2070
|
caption: a.value,
|
|
2062
2071
|
icon: "f_grid"
|
|
2063
2072
|
};
|
|
2064
|
-
return h(
|
|
2073
|
+
return h(Ee, f, () => h(xn));
|
|
2065
2074
|
}
|
|
2066
2075
|
return () => u();
|
|
2067
2076
|
}
|
|
2068
|
-
}),
|
|
2077
|
+
}), Jr = { class: "quarters overlay" }, ei = ["onClick", "onMouseover", "onMouseleave"], ti = { class: "quarters borders" }, si = { class: "quickpose-angle" }, ni = ["src"], Fs = "cps", wn = {
|
|
2069
2078
|
__name: "PgPosePositionTool",
|
|
2070
2079
|
setup(e) {
|
|
2071
|
-
const t =
|
|
2072
|
-
const
|
|
2073
|
-
return
|
|
2074
|
-
}), g = y(() => n.hasAccess(Fs)), v = (
|
|
2080
|
+
const t = ve(), s = de(), n = V(), { selected: r, collectedModels: a } = S(t), { collectedModels: c } = S(s), { loading: d } = S(n), u = Z(null), f = y(() => {
|
|
2081
|
+
const I = c.value;
|
|
2082
|
+
return I.length === 2 ? Math.floor(Math.random() * 2) === 1 ? v("male") : v("female") : I.includes(110) ? v("male") : v("female");
|
|
2083
|
+
}), g = y(() => n.hasAccess(Fs)), v = (I) => `https://static.figurosity.com/pose-generator/position/model-${I}.webp`, T = (I) => u.value = I, C = (I) => u.value = null, w = (I) => {
|
|
2075
2084
|
if (!d.value) {
|
|
2076
2085
|
if (g.value) {
|
|
2077
|
-
t.toggleSelected(
|
|
2086
|
+
t.toggleSelected(I);
|
|
2078
2087
|
return;
|
|
2079
2088
|
}
|
|
2080
2089
|
n.block(Fs);
|
|
2081
2090
|
}
|
|
2082
2091
|
};
|
|
2083
|
-
return (
|
|
2084
|
-
class:
|
|
2092
|
+
return (I, P) => (L(), F("div", {
|
|
2093
|
+
class: yt(["c-pose-position", { disabled: N(d) }])
|
|
2085
2094
|
}, [
|
|
2086
|
-
Ae("div",
|
|
2087
|
-
(
|
|
2088
|
-
class:
|
|
2089
|
-
key:
|
|
2090
|
-
onClick: (
|
|
2091
|
-
onMouseover: (
|
|
2092
|
-
onMouseleave: (
|
|
2093
|
-
}, null, 42,
|
|
2095
|
+
Ae("div", Jr, [
|
|
2096
|
+
(L(!0), F(Ze, null, Ke(N(a), (b) => (L(), F("div", {
|
|
2097
|
+
class: yt(["quarter", b.slug]),
|
|
2098
|
+
key: b.id,
|
|
2099
|
+
onClick: (x) => w(b.id),
|
|
2100
|
+
onMouseover: (x) => T(b.slug),
|
|
2101
|
+
onMouseleave: (x) => C(b.slug)
|
|
2102
|
+
}, null, 42, ei))), 128))
|
|
2094
2103
|
]),
|
|
2095
|
-
Ae("div",
|
|
2096
|
-
(
|
|
2097
|
-
class:
|
|
2104
|
+
Ae("div", ti, [
|
|
2105
|
+
(L(!0), F(Ze, null, Ke(N(a), (b) => (L(), F("div", {
|
|
2106
|
+
class: yt([
|
|
2098
2107
|
"quarter",
|
|
2099
|
-
|
|
2108
|
+
b.slug + (N(r).includes(b.id) ? " active" : "") + (u.value === b.slug ? " hover" : "")
|
|
2100
2109
|
]),
|
|
2101
|
-
key:
|
|
2110
|
+
key: b.id,
|
|
2102
2111
|
ref_for: !0,
|
|
2103
|
-
ref:
|
|
2112
|
+
ref: b.slug
|
|
2104
2113
|
}, [
|
|
2105
|
-
Ae("span", null, bo(
|
|
2114
|
+
Ae("span", null, bo(b.name), 1)
|
|
2106
2115
|
], 2))), 128))
|
|
2107
2116
|
]),
|
|
2108
|
-
Ae("div",
|
|
2117
|
+
Ae("div", si, [
|
|
2109
2118
|
Ae("img", {
|
|
2110
2119
|
src: f.value,
|
|
2111
2120
|
class: ""
|
|
2112
|
-
}, null, 8,
|
|
2121
|
+
}, null, 8, ni)
|
|
2113
2122
|
])
|
|
2114
2123
|
], 2));
|
|
2115
2124
|
}
|
|
2116
|
-
},
|
|
2125
|
+
}, oi = _({
|
|
2117
2126
|
name: "PgEffectsExpansion",
|
|
2118
2127
|
setup(e, { slots: t, emit: s }) {
|
|
2119
|
-
const { lang: n } = A(), r =
|
|
2128
|
+
const { lang: n } = A(), r = ve(), { caption: a } = S(r), { expanded: c } = pe({
|
|
2120
2129
|
options: ks,
|
|
2121
2130
|
tab: ks
|
|
2122
2131
|
}), d = y(() => {
|
|
@@ -2130,20 +2139,20 @@ const X = ie("pg-history", {
|
|
|
2130
2139
|
"onUpdate:modelValue": (g) => c.value = g,
|
|
2131
2140
|
label: d.value,
|
|
2132
2141
|
caption: a.value,
|
|
2133
|
-
icon:
|
|
2142
|
+
icon: $r
|
|
2134
2143
|
};
|
|
2135
|
-
return h(
|
|
2144
|
+
return h(Ee, f, () => h(wn));
|
|
2136
2145
|
}
|
|
2137
2146
|
return () => u();
|
|
2138
2147
|
}
|
|
2139
|
-
}),
|
|
2148
|
+
}), Mn = _({
|
|
2140
2149
|
name: "PgBrightnessTool",
|
|
2141
2150
|
props: {
|
|
2142
2151
|
noIcons: Boolean
|
|
2143
2152
|
},
|
|
2144
2153
|
emits: ["update:modelValue"],
|
|
2145
2154
|
setup(e, { slots: t, emit: s }) {
|
|
2146
|
-
const n =
|
|
2155
|
+
const n = ye(), r = y({
|
|
2147
2156
|
get: () => n.brightness,
|
|
2148
2157
|
set: (c) => n.setBrightness(c)
|
|
2149
2158
|
});
|
|
@@ -2159,11 +2168,11 @@ const X = ie("pg-history", {
|
|
|
2159
2168
|
}
|
|
2160
2169
|
return () => a();
|
|
2161
2170
|
}
|
|
2162
|
-
}),
|
|
2171
|
+
}), An = _({
|
|
2163
2172
|
name: "PgBrightnessTool",
|
|
2164
2173
|
emits: ["update:modelValue"],
|
|
2165
2174
|
setup(e, { slots: t, emit: s }) {
|
|
2166
|
-
const n =
|
|
2175
|
+
const n = ye(), r = y({
|
|
2167
2176
|
get: () => n.contrast,
|
|
2168
2177
|
set: (c) => n.setContrast(c)
|
|
2169
2178
|
});
|
|
@@ -2178,11 +2187,11 @@ const X = ie("pg-history", {
|
|
|
2178
2187
|
}
|
|
2179
2188
|
return () => a();
|
|
2180
2189
|
}
|
|
2181
|
-
}), Nn =
|
|
2190
|
+
}), Nn = _({
|
|
2182
2191
|
name: "PgBrightnessTool",
|
|
2183
2192
|
emits: ["update:modelValue"],
|
|
2184
2193
|
setup(e, { slots: t, emit: s }) {
|
|
2185
|
-
const n =
|
|
2194
|
+
const n = ye(), r = y({
|
|
2186
2195
|
get: () => n.saturate,
|
|
2187
2196
|
set: (c) => n.setSaturate(c)
|
|
2188
2197
|
});
|
|
@@ -2197,13 +2206,13 @@ const X = ie("pg-history", {
|
|
|
2197
2206
|
}
|
|
2198
2207
|
return () => a();
|
|
2199
2208
|
}
|
|
2200
|
-
}), On =
|
|
2209
|
+
}), On = _({
|
|
2201
2210
|
name: "PgEffectsExpansion",
|
|
2202
2211
|
props: {
|
|
2203
2212
|
playMode: Boolean
|
|
2204
2213
|
},
|
|
2205
2214
|
setup(e, { slots: t, emit: s }) {
|
|
2206
|
-
const { lang: n } = A(), r =
|
|
2215
|
+
const { lang: n } = A(), r = ye(), { caption: a } = S(r), { expanded: c } = pe({
|
|
2207
2216
|
options: Ls,
|
|
2208
2217
|
tab: Ls,
|
|
2209
2218
|
playMode: e.playMode
|
|
@@ -2220,43 +2229,43 @@ const X = ie("pg-history", {
|
|
|
2220
2229
|
caption: a.value,
|
|
2221
2230
|
icon: gn
|
|
2222
2231
|
};
|
|
2223
|
-
return h(
|
|
2224
|
-
h(An),
|
|
2232
|
+
return h(Ee, f, () => [
|
|
2225
2233
|
h(Mn),
|
|
2234
|
+
h(An),
|
|
2226
2235
|
h(Nn)
|
|
2227
2236
|
]);
|
|
2228
2237
|
}
|
|
2229
2238
|
return () => u();
|
|
2230
2239
|
}
|
|
2231
|
-
}),
|
|
2240
|
+
}), ri = _({
|
|
2232
2241
|
name: "PgExpansions",
|
|
2233
2242
|
setup(e, { slots: t, emit: s }) {
|
|
2234
2243
|
function n() {
|
|
2235
2244
|
return h("div", {
|
|
2236
2245
|
class: "pg-expansions"
|
|
2237
2246
|
}, [
|
|
2238
|
-
h(
|
|
2239
|
-
h(
|
|
2247
|
+
h(Lr),
|
|
2248
|
+
h(ne),
|
|
2240
2249
|
h(Tn),
|
|
2241
|
-
h(
|
|
2250
|
+
h(ne),
|
|
2242
2251
|
h(_n),
|
|
2243
|
-
h(
|
|
2244
|
-
h(
|
|
2245
|
-
h(
|
|
2246
|
-
h(
|
|
2247
|
-
h(
|
|
2248
|
-
h(
|
|
2249
|
-
h(
|
|
2250
|
-
h(
|
|
2251
|
-
h(
|
|
2252
|
-
h(
|
|
2253
|
-
h(
|
|
2252
|
+
h(ne),
|
|
2253
|
+
h(Yr),
|
|
2254
|
+
h(ne),
|
|
2255
|
+
h(Qr),
|
|
2256
|
+
h(ne),
|
|
2257
|
+
h(oi),
|
|
2258
|
+
h(ne),
|
|
2259
|
+
h(Dn),
|
|
2260
|
+
h(ne),
|
|
2261
|
+
h(Zr),
|
|
2262
|
+
h(ne),
|
|
2254
2263
|
h(On)
|
|
2255
2264
|
]);
|
|
2256
2265
|
}
|
|
2257
2266
|
return () => n();
|
|
2258
2267
|
}
|
|
2259
|
-
}),
|
|
2268
|
+
}), Se = _({
|
|
2260
2269
|
name: "PgCard",
|
|
2261
2270
|
props: {
|
|
2262
2271
|
label: String,
|
|
@@ -2306,10 +2315,10 @@ const X = ie("pg-history", {
|
|
|
2306
2315
|
}
|
|
2307
2316
|
return () => n();
|
|
2308
2317
|
}
|
|
2309
|
-
}),
|
|
2318
|
+
}), ii = _({
|
|
2310
2319
|
name: "PgDurationCard",
|
|
2311
2320
|
setup(e, { slots: t, emit: s }) {
|
|
2312
|
-
const { lang: n } = A(), r =
|
|
2321
|
+
const { lang: n } = A(), r = Q(), { title: a } = S(r), c = y(() => {
|
|
2313
2322
|
var u;
|
|
2314
2323
|
return (u = n.value.pg) == null ? void 0 : u.tools.duration;
|
|
2315
2324
|
});
|
|
@@ -2320,14 +2329,14 @@ const X = ie("pg-history", {
|
|
|
2320
2329
|
caption: a.value,
|
|
2321
2330
|
icon: pn
|
|
2322
2331
|
};
|
|
2323
|
-
return h(
|
|
2332
|
+
return h(Se, u, () => h(Sn, {}));
|
|
2324
2333
|
}
|
|
2325
2334
|
return () => d();
|
|
2326
2335
|
}
|
|
2327
|
-
}),
|
|
2336
|
+
}), ai = _({
|
|
2328
2337
|
name: "PgSkinsCard",
|
|
2329
2338
|
setup(e, { slots: t, emit: s }) {
|
|
2330
|
-
const { lang: n } = A(), r =
|
|
2339
|
+
const { lang: n } = A(), r = R(), a = y(() => {
|
|
2331
2340
|
var u;
|
|
2332
2341
|
return (u = n.value.pg) == null ? void 0 : u.tools.skins;
|
|
2333
2342
|
}), c = y(() => r.caption);
|
|
@@ -2338,16 +2347,16 @@ const X = ie("pg-history", {
|
|
|
2338
2347
|
caption: c.value,
|
|
2339
2348
|
icon: Wo
|
|
2340
2349
|
};
|
|
2341
|
-
return h(
|
|
2350
|
+
return h(Se, u, {
|
|
2342
2351
|
default: () => h(ss, { desktop: !0 })
|
|
2343
2352
|
});
|
|
2344
2353
|
}
|
|
2345
2354
|
return () => d();
|
|
2346
2355
|
}
|
|
2347
|
-
}),
|
|
2356
|
+
}), li = _({
|
|
2348
2357
|
name: "PgEffectsCard",
|
|
2349
2358
|
setup(e, { slots: t, emit: s }) {
|
|
2350
|
-
const { lang: n } = A(), r =
|
|
2359
|
+
const { lang: n } = A(), r = z(), a = y(() => {
|
|
2351
2360
|
var u;
|
|
2352
2361
|
return (u = n.value.pg) == null ? void 0 : u.tools.effects;
|
|
2353
2362
|
}), c = y(() => r.caption);
|
|
@@ -2358,15 +2367,15 @@ const X = ie("pg-history", {
|
|
|
2358
2367
|
caption: c.value,
|
|
2359
2368
|
icon: fn
|
|
2360
2369
|
};
|
|
2361
|
-
return h(
|
|
2370
|
+
return h(Se, u, () => [h(Cn, { desktop: !0 })]);
|
|
2362
2371
|
}
|
|
2363
2372
|
return () => d();
|
|
2364
2373
|
}
|
|
2365
|
-
}),
|
|
2374
|
+
}), ci = _({
|
|
2366
2375
|
name: "PgCameraAnglesCard",
|
|
2367
2376
|
emits: ["click", "update:modelValue"],
|
|
2368
2377
|
setup(e, { slots: t, emit: s }) {
|
|
2369
|
-
const { lang: n } = A(), r =
|
|
2378
|
+
const { lang: n } = A(), r = me(), { caption: a } = S(r), c = y(() => {
|
|
2370
2379
|
var u;
|
|
2371
2380
|
return (u = n.value.pg) == null ? void 0 : u.tools.angle;
|
|
2372
2381
|
});
|
|
@@ -2377,14 +2386,14 @@ const X = ie("pg-history", {
|
|
|
2377
2386
|
caption: a.value,
|
|
2378
2387
|
icon: Xo
|
|
2379
2388
|
};
|
|
2380
|
-
return h(
|
|
2389
|
+
return h(Se, u, () => [h(bn)]);
|
|
2381
2390
|
}
|
|
2382
2391
|
return () => d();
|
|
2383
2392
|
}
|
|
2384
|
-
}),
|
|
2393
|
+
}), ui = _({
|
|
2385
2394
|
name: "PgLightsCard",
|
|
2386
2395
|
setup(e, { slots: t, emit: s }) {
|
|
2387
|
-
const { lang: n } = A(), r =
|
|
2396
|
+
const { lang: n } = A(), r = oe(), { caption: a } = S(r), c = y(() => {
|
|
2388
2397
|
var u;
|
|
2389
2398
|
return (u = n.value.pg) == null ? void 0 : u.tools.light;
|
|
2390
2399
|
});
|
|
@@ -2395,19 +2404,19 @@ const X = ie("pg-history", {
|
|
|
2395
2404
|
caption: a.value,
|
|
2396
2405
|
icon: Zo
|
|
2397
2406
|
};
|
|
2398
|
-
return h(
|
|
2407
|
+
return h(Se, u, {
|
|
2399
2408
|
default: () => h(In, { desktop: !0 })
|
|
2400
2409
|
});
|
|
2401
2410
|
}
|
|
2402
2411
|
return () => d();
|
|
2403
2412
|
}
|
|
2404
|
-
}),
|
|
2413
|
+
}), di = _({
|
|
2405
2414
|
name: "PgGendersCard",
|
|
2406
2415
|
setup(e, { slots: t, emit: s }) {
|
|
2407
|
-
const { lang: n } = A(), r =
|
|
2408
|
-
|
|
2409
|
-
options:
|
|
2410
|
-
tab:
|
|
2416
|
+
const { lang: n } = A(), r = de(), { caption: a } = S(r);
|
|
2417
|
+
pe({
|
|
2418
|
+
options: _t,
|
|
2419
|
+
tab: _t
|
|
2411
2420
|
});
|
|
2412
2421
|
const c = y(() => {
|
|
2413
2422
|
var u;
|
|
@@ -2420,14 +2429,14 @@ const X = ie("pg-history", {
|
|
|
2420
2429
|
caption: a.value,
|
|
2421
2430
|
icon: Ko
|
|
2422
2431
|
};
|
|
2423
|
-
return h(
|
|
2432
|
+
return h(Se, u, () => [h(Pn)]);
|
|
2424
2433
|
}
|
|
2425
2434
|
return () => d();
|
|
2426
2435
|
}
|
|
2427
|
-
}),
|
|
2436
|
+
}), hi = _({
|
|
2428
2437
|
name: "PgPosePositionCard",
|
|
2429
2438
|
setup(e, { slots: t, emit: s }) {
|
|
2430
|
-
const { lang: n } = A(), r =
|
|
2439
|
+
const { lang: n } = A(), r = ve(), { caption: a } = S(r), c = y(() => {
|
|
2431
2440
|
var u;
|
|
2432
2441
|
return (u = n.value.pg) == null ? void 0 : u.tools.position;
|
|
2433
2442
|
});
|
|
@@ -2438,13 +2447,13 @@ const X = ie("pg-history", {
|
|
|
2438
2447
|
caption: a.value,
|
|
2439
2448
|
icon: Qo
|
|
2440
2449
|
};
|
|
2441
|
-
return h(
|
|
2442
|
-
default: () => h(
|
|
2450
|
+
return h(Se, u, {
|
|
2451
|
+
default: () => h(wn)
|
|
2443
2452
|
});
|
|
2444
2453
|
}
|
|
2445
2454
|
return () => d();
|
|
2446
2455
|
}
|
|
2447
|
-
}),
|
|
2456
|
+
}), pi = _({
|
|
2448
2457
|
name: "PgGridCard",
|
|
2449
2458
|
props: {
|
|
2450
2459
|
modelValue: { type: Number, default: 0 },
|
|
@@ -2453,7 +2462,7 @@ const X = ie("pg-history", {
|
|
|
2453
2462
|
},
|
|
2454
2463
|
emits: ["click", "update:modelValue"],
|
|
2455
2464
|
setup(e, { slots: t, emit: s }) {
|
|
2456
|
-
const { lang: n } = A(), r =
|
|
2465
|
+
const { lang: n } = A(), r = xe(), { caption: a } = S(r), c = y(() => {
|
|
2457
2466
|
var u;
|
|
2458
2467
|
return (u = n.value.pg) == null ? void 0 : u.tools.grid;
|
|
2459
2468
|
});
|
|
@@ -2464,28 +2473,28 @@ const X = ie("pg-history", {
|
|
|
2464
2473
|
caption: a.value,
|
|
2465
2474
|
icon: Jo
|
|
2466
2475
|
};
|
|
2467
|
-
return h(
|
|
2476
|
+
return h(Se, u, { default: () => h(xn) });
|
|
2468
2477
|
}
|
|
2469
2478
|
return () => d();
|
|
2470
2479
|
}
|
|
2471
|
-
}),
|
|
2480
|
+
}), fi = _({
|
|
2472
2481
|
name: "PgAdjustmentsTool",
|
|
2473
2482
|
setup(e, { slots: t, emit: s }) {
|
|
2474
2483
|
function n() {
|
|
2475
2484
|
return h("div", {
|
|
2476
2485
|
class: "pg-adjustments-tool"
|
|
2477
2486
|
}, [
|
|
2478
|
-
h(An),
|
|
2479
2487
|
h(Mn),
|
|
2488
|
+
h(An),
|
|
2480
2489
|
h(Nn)
|
|
2481
2490
|
]);
|
|
2482
2491
|
}
|
|
2483
2492
|
return () => n();
|
|
2484
2493
|
}
|
|
2485
|
-
}),
|
|
2494
|
+
}), gi = _({
|
|
2486
2495
|
name: "PgAdjustmentsCard",
|
|
2487
2496
|
setup(e, { slots: t, emit: s }) {
|
|
2488
|
-
const { lang: n } = A(), r =
|
|
2497
|
+
const { lang: n } = A(), r = ye(), { caption: a } = S(r), c = y(() => {
|
|
2489
2498
|
var u;
|
|
2490
2499
|
return (u = n.value.pg) == null ? void 0 : u.tools.adjustment;
|
|
2491
2500
|
});
|
|
@@ -2496,11 +2505,11 @@ const X = ie("pg-history", {
|
|
|
2496
2505
|
caption: a.value,
|
|
2497
2506
|
icon: gn
|
|
2498
2507
|
};
|
|
2499
|
-
return h(
|
|
2508
|
+
return h(Se, u, () => [h(fi)]);
|
|
2500
2509
|
}
|
|
2501
2510
|
return () => d();
|
|
2502
2511
|
}
|
|
2503
|
-
}), kn =
|
|
2512
|
+
}), kn = _({
|
|
2504
2513
|
name: "PgOverviewContent",
|
|
2505
2514
|
props: {
|
|
2506
2515
|
size: { default: "lg", type: String }
|
|
@@ -2524,7 +2533,7 @@ const X = ie("pg-history", {
|
|
|
2524
2533
|
}
|
|
2525
2534
|
return () => c();
|
|
2526
2535
|
}
|
|
2527
|
-
}),
|
|
2536
|
+
}), mi = _({
|
|
2528
2537
|
name: "PgCards",
|
|
2529
2538
|
setup(e, { slots: t, emit: s }) {
|
|
2530
2539
|
function n() {
|
|
@@ -2534,31 +2543,31 @@ const X = ie("pg-history", {
|
|
|
2534
2543
|
}, [
|
|
2535
2544
|
h("div", { class: "row q-col-gutter-md" }, [
|
|
2536
2545
|
h("div", { class: "col-7" }, h(kn)),
|
|
2537
|
-
h("div", { class: "col-5" }, [h(
|
|
2546
|
+
h("div", { class: "col-5" }, [h(ii)])
|
|
2538
2547
|
]),
|
|
2539
2548
|
h("div", { class: "row q-col-gutter-md" }, [
|
|
2540
|
-
h(
|
|
2541
|
-
h(
|
|
2549
|
+
h(ai, { class: "col-7" }),
|
|
2550
|
+
h(li, { class: "col-5" })
|
|
2542
2551
|
]),
|
|
2543
2552
|
h("div", { class: "row q-col-gutter-md" }, [
|
|
2544
|
-
h(
|
|
2545
|
-
h(
|
|
2546
|
-
h(
|
|
2553
|
+
h(ci, { class: "col-6" }),
|
|
2554
|
+
h(ui, { class: "col-3" }),
|
|
2555
|
+
h(di, { class: "col-3" })
|
|
2547
2556
|
]),
|
|
2548
2557
|
h("div", { class: "row q-col-gutter-md" }, [
|
|
2549
|
-
h(
|
|
2550
|
-
h(
|
|
2551
|
-
h(
|
|
2558
|
+
h(hi, { class: "col-4" }),
|
|
2559
|
+
h(pi, { class: "col-4" }),
|
|
2560
|
+
h(gi, { class: "col-4" })
|
|
2552
2561
|
])
|
|
2553
2562
|
]);
|
|
2554
2563
|
}
|
|
2555
2564
|
return () => n();
|
|
2556
2565
|
}
|
|
2557
|
-
}),
|
|
2566
|
+
}), vi = _({
|
|
2558
2567
|
name: "PgAnimatedCount",
|
|
2559
2568
|
emits: ["click", "update:modelValue"],
|
|
2560
2569
|
setup(e, { slots: t, emit: s }) {
|
|
2561
|
-
const n =
|
|
2570
|
+
const n = Dt(), r = V(), { filtering: a } = S(r), { lang: c } = A(), d = y(() => {
|
|
2562
2571
|
var g;
|
|
2563
2572
|
return (g = c.value.pg) == null ? void 0 : g.possibilities.title;
|
|
2564
2573
|
}), { adjustedCount: u } = S(n);
|
|
@@ -2578,109 +2587,109 @@ const X = ie("pg-history", {
|
|
|
2578
2587
|
}
|
|
2579
2588
|
return () => f();
|
|
2580
2589
|
}
|
|
2581
|
-
}),
|
|
2590
|
+
}), yi = _({
|
|
2582
2591
|
name: "PgBottomButtons",
|
|
2583
2592
|
setup(e, { slots: t, emit: s }) {
|
|
2584
|
-
const n =
|
|
2593
|
+
const n = _e(), r = Dt(), a = V(), c = (P) => a.customReset(), d = (P) => n.open(), {
|
|
2585
2594
|
filters: u,
|
|
2586
2595
|
adjustedCount: f,
|
|
2587
2596
|
loading: g,
|
|
2588
2597
|
error: v
|
|
2589
|
-
} = S(r), { lang: T } = A(),
|
|
2590
|
-
var
|
|
2591
|
-
return (
|
|
2592
|
-
}),
|
|
2593
|
-
var
|
|
2594
|
-
return (
|
|
2598
|
+
} = S(r), { lang: T } = A(), C = y(() => {
|
|
2599
|
+
var P;
|
|
2600
|
+
return (P = T.value.pg) == null ? void 0 : P.overview.startLabel;
|
|
2601
|
+
}), w = y(() => {
|
|
2602
|
+
var P;
|
|
2603
|
+
return (P = T.value.pg) == null ? void 0 : P.overview.resetLabel;
|
|
2595
2604
|
});
|
|
2596
|
-
|
|
2605
|
+
ce(
|
|
2597
2606
|
() => u.value,
|
|
2598
2607
|
() => {
|
|
2599
2608
|
r.fetchForDisplay();
|
|
2600
2609
|
},
|
|
2601
2610
|
{ immediate: !0 }
|
|
2602
2611
|
);
|
|
2603
|
-
function
|
|
2604
|
-
const
|
|
2612
|
+
function I() {
|
|
2613
|
+
const P = {
|
|
2605
2614
|
class: "pg-buttons q-col-gutter-sm q-pa-md row"
|
|
2606
|
-
},
|
|
2615
|
+
}, b = {
|
|
2607
2616
|
class: "q-px-lg",
|
|
2608
2617
|
size: "md",
|
|
2609
2618
|
color: "primary",
|
|
2610
2619
|
rounded: !0,
|
|
2611
2620
|
unelevated: !0
|
|
2612
|
-
},
|
|
2613
|
-
...
|
|
2614
|
-
label:
|
|
2621
|
+
}, x = {
|
|
2622
|
+
...b,
|
|
2623
|
+
label: C.value,
|
|
2615
2624
|
onClick: d,
|
|
2616
2625
|
disabled: g.value,
|
|
2617
2626
|
"data-cy": "pg-button-start"
|
|
2618
|
-
},
|
|
2619
|
-
...
|
|
2620
|
-
label:
|
|
2627
|
+
}, B = {
|
|
2628
|
+
...b,
|
|
2629
|
+
label: w.value,
|
|
2621
2630
|
outline: !0,
|
|
2622
2631
|
onClick: c,
|
|
2623
2632
|
disabled: g.value,
|
|
2624
2633
|
"data-cy": "pg-button-reset"
|
|
2625
2634
|
};
|
|
2626
|
-
return h("div",
|
|
2635
|
+
return h("div", P, [
|
|
2627
2636
|
h("div", { class: "col col-sm-auto text-center" }, [
|
|
2628
|
-
h(
|
|
2637
|
+
h(ke, B)
|
|
2629
2638
|
]),
|
|
2630
2639
|
h("div", { class: "col col-sm-auto text-center" }, [
|
|
2631
|
-
h(
|
|
2640
|
+
h(ke, x)
|
|
2632
2641
|
])
|
|
2633
2642
|
]);
|
|
2634
2643
|
}
|
|
2635
|
-
return () =>
|
|
2644
|
+
return () => I();
|
|
2636
2645
|
}
|
|
2637
|
-
}), Ln =
|
|
2646
|
+
}), Ln = _({
|
|
2638
2647
|
name: "PgGridOverlay",
|
|
2639
2648
|
setup(e, { slots: t, emit: s }) {
|
|
2640
|
-
const n =
|
|
2649
|
+
const n = xt(), r = cn(), a = xe(), {
|
|
2641
2650
|
visible: c,
|
|
2642
2651
|
spacing: d,
|
|
2643
2652
|
horizontal: u,
|
|
2644
2653
|
vertical: f
|
|
2645
|
-
} = S(a), g =
|
|
2654
|
+
} = S(a), g = Z({
|
|
2646
2655
|
width: 0,
|
|
2647
2656
|
height: 0
|
|
2648
2657
|
}), v = y(() => {
|
|
2649
|
-
const
|
|
2650
|
-
return
|
|
2658
|
+
const P = g.value;
|
|
2659
|
+
return P.width < P.height ? P.width : P.height;
|
|
2651
2660
|
}), T = y(() => {
|
|
2652
|
-
const
|
|
2653
|
-
return { width:
|
|
2654
|
-
}),
|
|
2655
|
-
const
|
|
2656
|
-
let
|
|
2657
|
-
return
|
|
2658
|
-
}),
|
|
2659
|
-
g.value =
|
|
2661
|
+
const P = v.value;
|
|
2662
|
+
return { width: P, height: P };
|
|
2663
|
+
}), C = y(() => {
|
|
2664
|
+
const P = g.value, b = P.width, x = P.height;
|
|
2665
|
+
let B = 0, te = 0;
|
|
2666
|
+
return b > x && (te = (b - x) / 2), x > b && (B = (x - b) / 2), { top: B, left: te };
|
|
2667
|
+
}), w = (P) => {
|
|
2668
|
+
g.value = P;
|
|
2660
2669
|
};
|
|
2661
|
-
|
|
2662
|
-
console.log("Ext bus exists?", !!r, "id:", r && r.__bus_id), r.$on("resize",
|
|
2670
|
+
Qe(() => {
|
|
2671
|
+
console.log("Ext bus exists?", !!r, "id:", r && r.__bus_id), r.$on("resize", w), r.$emit("resize", {
|
|
2663
2672
|
width: window.innerWidth,
|
|
2664
2673
|
height: window.innerHeight
|
|
2665
2674
|
}), g.value = { width: n.screen.width, height: n.screen.height };
|
|
2666
|
-
}),
|
|
2667
|
-
function
|
|
2668
|
-
const
|
|
2675
|
+
}), Pt(() => r.$off("resize"));
|
|
2676
|
+
function I() {
|
|
2677
|
+
const P = {
|
|
2669
2678
|
class: "pg-grid-overlay",
|
|
2670
2679
|
style: "z-index: 8",
|
|
2671
2680
|
visible: c.value,
|
|
2672
2681
|
lines: d.value,
|
|
2673
2682
|
offsetX: u.value / 100,
|
|
2674
2683
|
offsetY: f.value / 100,
|
|
2675
|
-
imagePoint:
|
|
2684
|
+
imagePoint: C.value,
|
|
2676
2685
|
imageSize: T.value,
|
|
2677
2686
|
viewportSize: g.value
|
|
2678
2687
|
};
|
|
2679
|
-
return h(jo,
|
|
2688
|
+
return h(jo, P);
|
|
2680
2689
|
}
|
|
2681
|
-
return () =>
|
|
2690
|
+
return () => I();
|
|
2682
2691
|
}
|
|
2683
|
-
}),
|
|
2692
|
+
}), Ei = _({
|
|
2684
2693
|
name: "PgOverviewButtons",
|
|
2685
2694
|
setup(e, { slots: t, emit: s }) {
|
|
2686
2695
|
function n() {
|
|
@@ -2701,32 +2710,32 @@ const X = ie("pg-history", {
|
|
|
2701
2710
|
style: "max-width: 1024px; margin: auto;"
|
|
2702
2711
|
},
|
|
2703
2712
|
[
|
|
2704
|
-
h("div", a, h(
|
|
2705
|
-
h("div", c, h(
|
|
2713
|
+
h("div", a, h(vi)),
|
|
2714
|
+
h("div", c, h(yi))
|
|
2706
2715
|
]
|
|
2707
2716
|
)
|
|
2708
2717
|
);
|
|
2709
2718
|
}
|
|
2710
2719
|
return () => n();
|
|
2711
2720
|
}
|
|
2712
|
-
}),
|
|
2721
|
+
}), Si = { class: "column pg-overview full-width q-pt-lg" }, Ti = {
|
|
2713
2722
|
__name: "PgOverview",
|
|
2714
2723
|
setup(e) {
|
|
2715
|
-
return (t, s) => (
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2724
|
+
return (t, s) => (L(), F("div", Si, [
|
|
2725
|
+
H(N(Ln)),
|
|
2726
|
+
H(N(mi), { class: "col full-height gt-sm" }),
|
|
2727
|
+
H(N(kn), {
|
|
2719
2728
|
class: "lt-md",
|
|
2720
2729
|
style: { height: "200px" }
|
|
2721
2730
|
}),
|
|
2722
|
-
|
|
2731
|
+
H(N(ri), {
|
|
2723
2732
|
class: "lt-md",
|
|
2724
2733
|
style: { "z-index": "9" }
|
|
2725
2734
|
}),
|
|
2726
|
-
|
|
2735
|
+
H(N(Ei))
|
|
2727
2736
|
]));
|
|
2728
2737
|
}
|
|
2729
|
-
},
|
|
2738
|
+
}, Ci = _({
|
|
2730
2739
|
name: "PgExitButton",
|
|
2731
2740
|
props: {
|
|
2732
2741
|
show: {
|
|
@@ -2735,7 +2744,7 @@ const X = ie("pg-history", {
|
|
|
2735
2744
|
}
|
|
2736
2745
|
},
|
|
2737
2746
|
setup(e, { slots: t, emit: s }) {
|
|
2738
|
-
const n =
|
|
2747
|
+
const n = _e(), { lang: r } = A(), a = y(() => {
|
|
2739
2748
|
var u;
|
|
2740
2749
|
return (u = r.value.pg) == null ? void 0 : u.buttons.exit.title;
|
|
2741
2750
|
}), c = (u) => u.preventDefault();
|
|
@@ -2760,15 +2769,15 @@ const X = ie("pg-history", {
|
|
|
2760
2769
|
return h(
|
|
2761
2770
|
jt,
|
|
2762
2771
|
{ name: "fade" },
|
|
2763
|
-
() =>
|
|
2764
|
-
h(zo, u, () => [h(
|
|
2765
|
-
[[
|
|
2772
|
+
() => Et(
|
|
2773
|
+
h(zo, u, () => [h(ke, f)]),
|
|
2774
|
+
[[St, e.show]]
|
|
2766
2775
|
)
|
|
2767
2776
|
);
|
|
2768
2777
|
}
|
|
2769
2778
|
return () => d();
|
|
2770
2779
|
}
|
|
2771
|
-
}), ns =
|
|
2780
|
+
}), ns = _({
|
|
2772
2781
|
name: "PgBaseButton",
|
|
2773
2782
|
props: {
|
|
2774
2783
|
type: String,
|
|
@@ -2790,7 +2799,7 @@ const X = ie("pg-history", {
|
|
|
2790
2799
|
round: !0
|
|
2791
2800
|
};
|
|
2792
2801
|
return h("div", {}, [
|
|
2793
|
-
h(
|
|
2802
|
+
h(ke, r, { default: () => {
|
|
2794
2803
|
var a;
|
|
2795
2804
|
return (a = t.default) == null ? void 0 : a.call(t);
|
|
2796
2805
|
} })
|
|
@@ -2798,14 +2807,14 @@ const X = ie("pg-history", {
|
|
|
2798
2807
|
}
|
|
2799
2808
|
return () => n();
|
|
2800
2809
|
}
|
|
2801
|
-
}),
|
|
2810
|
+
}), _i = _({
|
|
2802
2811
|
name: "PgNextButton",
|
|
2803
2812
|
setup(e, { slots: t, emit: s }) {
|
|
2804
|
-
const n =
|
|
2813
|
+
const n = _e(), { nextDisabled: r } = S(n);
|
|
2805
2814
|
function a() {
|
|
2806
2815
|
const c = {
|
|
2807
2816
|
type: "next",
|
|
2808
|
-
icon:
|
|
2817
|
+
icon: Fr,
|
|
2809
2818
|
onClick: n.next,
|
|
2810
2819
|
disable: r.value
|
|
2811
2820
|
};
|
|
@@ -2813,17 +2822,17 @@ const X = ie("pg-history", {
|
|
|
2813
2822
|
}
|
|
2814
2823
|
return () => a();
|
|
2815
2824
|
}
|
|
2816
|
-
}),
|
|
2825
|
+
}), bi = _({
|
|
2817
2826
|
name: "PgNextButton",
|
|
2818
2827
|
setup(e, { slots: t, emit: s }) {
|
|
2819
|
-
const n =
|
|
2828
|
+
const n = ue(), r = Q(), { milliseconds: a } = S(n), { duration: c } = S(r), d = _e(), { playing: u } = S(n), f = y(() => u.value ? tr : sr), g = () => u.value ? d.pause() : d.play();
|
|
2820
2829
|
function v() {
|
|
2821
2830
|
const T = {
|
|
2822
2831
|
type: "play",
|
|
2823
2832
|
icon: f.value,
|
|
2824
2833
|
outline: !0,
|
|
2825
2834
|
onClick: g
|
|
2826
|
-
},
|
|
2835
|
+
}, C = {
|
|
2827
2836
|
class: "pg-timer-progress",
|
|
2828
2837
|
min: 0,
|
|
2829
2838
|
max: (c.value - 1) * 1e3,
|
|
@@ -2833,18 +2842,18 @@ const X = ie("pg-history", {
|
|
|
2833
2842
|
thickness: 0.2,
|
|
2834
2843
|
instantFeedback: !0
|
|
2835
2844
|
};
|
|
2836
|
-
return h(ns, T, () => [h(Ho,
|
|
2845
|
+
return h(ns, T, () => [h(Ho, C)]);
|
|
2837
2846
|
}
|
|
2838
2847
|
return () => v();
|
|
2839
2848
|
}
|
|
2840
|
-
}),
|
|
2849
|
+
}), Ii = _({
|
|
2841
2850
|
name: "PgPreviousButton",
|
|
2842
2851
|
setup(e, { slots: t, emit: s }) {
|
|
2843
|
-
const n =
|
|
2852
|
+
const n = _e(), { previousDisabled: r } = S(n);
|
|
2844
2853
|
function a() {
|
|
2845
2854
|
const c = {
|
|
2846
2855
|
type: "previous",
|
|
2847
|
-
icon:
|
|
2856
|
+
icon: Hr,
|
|
2848
2857
|
onClick: n.previous,
|
|
2849
2858
|
disable: r.value
|
|
2850
2859
|
};
|
|
@@ -2852,12 +2861,12 @@ const X = ie("pg-history", {
|
|
|
2852
2861
|
}
|
|
2853
2862
|
return () => a();
|
|
2854
2863
|
}
|
|
2855
|
-
}),
|
|
2864
|
+
}), Pi = _({
|
|
2856
2865
|
name: "PgTimer",
|
|
2857
2866
|
setup(e, { slots: t, emit: s }) {
|
|
2858
|
-
const n =
|
|
2859
|
-
let T = d.value * 1e3 - 300,
|
|
2860
|
-
return c.value < T && c.value >
|
|
2867
|
+
const n = ue(), r = Q(), { formatted: a, milliseconds: c } = S(n), { duration: d } = S(r), u = y(() => {
|
|
2868
|
+
let T = d.value * 1e3 - 300, C = d.value * 1e3 - 600;
|
|
2869
|
+
return c.value < T && c.value > C;
|
|
2861
2870
|
}), f = y(() => {
|
|
2862
2871
|
let T = 40;
|
|
2863
2872
|
return d.value > 60 && (T = 65), d.value >= 600 && (T = 85), { width: `${T}px` };
|
|
@@ -2874,7 +2883,7 @@ const X = ie("pg-history", {
|
|
|
2874
2883
|
}
|
|
2875
2884
|
return () => v();
|
|
2876
2885
|
}
|
|
2877
|
-
}), Vn =
|
|
2886
|
+
}), Vn = _({
|
|
2878
2887
|
name: "PgControls",
|
|
2879
2888
|
props: { center: Boolean },
|
|
2880
2889
|
setup(e, { slots: t, emit: s }) {
|
|
@@ -2884,14 +2893,14 @@ const X = ie("pg-history", {
|
|
|
2884
2893
|
};
|
|
2885
2894
|
e.center && (r.class = r.class + " justify-center");
|
|
2886
2895
|
const a = [];
|
|
2887
|
-
return a.push(h(
|
|
2896
|
+
return a.push(h(Ii)), a.push(h(bi)), a.push(h(_i)), a.push(h(Pi)), h("div", r, a);
|
|
2888
2897
|
}
|
|
2889
2898
|
return () => n();
|
|
2890
2899
|
}
|
|
2891
|
-
}), Un =
|
|
2900
|
+
}), Un = _({
|
|
2892
2901
|
name: "PgView360",
|
|
2893
2902
|
setup(e, { slots: t, emit: s }) {
|
|
2894
|
-
const n =
|
|
2903
|
+
const n = K(), { lang: r } = A(), a = y(() => {
|
|
2895
2904
|
var d;
|
|
2896
2905
|
return (d = r.value.pg) == null ? void 0 : d.buttons.view360.title;
|
|
2897
2906
|
});
|
|
@@ -2905,23 +2914,23 @@ const X = ie("pg-history", {
|
|
|
2905
2914
|
outline: !0,
|
|
2906
2915
|
color: "primary"
|
|
2907
2916
|
};
|
|
2908
|
-
return h(
|
|
2917
|
+
return h(ke, u);
|
|
2909
2918
|
}
|
|
2910
2919
|
return () => c();
|
|
2911
2920
|
}
|
|
2912
|
-
}), Rn =
|
|
2921
|
+
}), Rn = _({
|
|
2913
2922
|
name: "PgPlayExpansions",
|
|
2914
2923
|
setup(e, { slots: t, emit: s }) {
|
|
2915
|
-
const n =
|
|
2924
|
+
const n = xt();
|
|
2916
2925
|
function r() {
|
|
2917
|
-
const a =
|
|
2926
|
+
const a = Z(n.platform.is.desktop), c = {
|
|
2918
2927
|
class: "pg-play-expansions"
|
|
2919
2928
|
}, d = [];
|
|
2920
|
-
return a.value && (d.push(h(Tn, { playMode: !0 })), d.push(h(
|
|
2929
|
+
return a.value && (d.push(h(Tn, { playMode: !0 })), d.push(h(ne))), d.push(h(_n, { playMode: !0 })), d.push(h(ne)), d.push(h(Dn, { playMode: !0 })), d.push(h(ne)), d.push(h(On, { playMode: !0 })), a.value && d.push(h("div", { class: "q-pa-lg" }, [h(Un)])), h("div", c, d);
|
|
2921
2930
|
}
|
|
2922
2931
|
return () => r();
|
|
2923
2932
|
}
|
|
2924
|
-
}),
|
|
2933
|
+
}), xi = _({
|
|
2925
2934
|
name: "PgModalControls",
|
|
2926
2935
|
props: {
|
|
2927
2936
|
modelValue: Boolean,
|
|
@@ -2947,14 +2956,14 @@ const X = ie("pg-history", {
|
|
|
2947
2956
|
}
|
|
2948
2957
|
return () => r();
|
|
2949
2958
|
}
|
|
2950
|
-
}),
|
|
2959
|
+
}), Di = ["src"], wi = {
|
|
2951
2960
|
__name: "PgDisplayImage",
|
|
2952
2961
|
props: {
|
|
2953
2962
|
flipped: Boolean,
|
|
2954
2963
|
zIndex: Number
|
|
2955
2964
|
},
|
|
2956
2965
|
setup(e) {
|
|
2957
|
-
const t =
|
|
2966
|
+
const t = K(), s = cn(), n = e, r = y(() => t.playSrc), a = Z(null), c = y(() => {
|
|
2958
2967
|
const f = {
|
|
2959
2968
|
// ...filterStyle.value,
|
|
2960
2969
|
zIndex: n.zIndex + 2
|
|
@@ -2971,23 +2980,23 @@ const X = ie("pg-history", {
|
|
|
2971
2980
|
a.value = f.width > f.height;
|
|
2972
2981
|
};
|
|
2973
2982
|
function u() {
|
|
2974
|
-
const f = window, g = document, v = g.documentElement, T = g.getElementsByTagName("body")[0],
|
|
2975
|
-
d({ width:
|
|
2983
|
+
const f = window, g = document, v = g.documentElement, T = g.getElementsByTagName("body")[0], C = f.innerWidth || v.clientWidth || T.clientWidth, w = f.innerHeight || v.clientHeight || T.clientHeight;
|
|
2984
|
+
d({ width: C, height: w });
|
|
2976
2985
|
}
|
|
2977
|
-
return
|
|
2986
|
+
return Qe(() => {
|
|
2978
2987
|
u(), s.$on("resize", d);
|
|
2979
|
-
}),
|
|
2988
|
+
}), Pt(() => s.$off("resize")), (f, g) => (L(), F("img", {
|
|
2980
2989
|
src: r.value,
|
|
2981
|
-
class:
|
|
2990
|
+
class: yt(["pg-display-image", { "flip-horizontal": e.flipped }]),
|
|
2982
2991
|
style: rn(c.value)
|
|
2983
|
-
}, null, 14,
|
|
2992
|
+
}, null, 14, Di));
|
|
2984
2993
|
}
|
|
2985
|
-
},
|
|
2994
|
+
}, Mi = {
|
|
2986
2995
|
__name: "PgDisplay",
|
|
2987
2996
|
setup(e) {
|
|
2988
|
-
const t =
|
|
2989
|
-
|
|
2990
|
-
const n =
|
|
2997
|
+
const t = ye(), s = K();
|
|
2998
|
+
De();
|
|
2999
|
+
const n = z(), { playSelected: r } = S(n), { brightness: a, contrast: c, saturate: d } = S(t), { filterStyle: u } = Oo({
|
|
2991
3000
|
brightness: a,
|
|
2992
3001
|
contrast: c,
|
|
2993
3002
|
saturate: d,
|
|
@@ -2995,31 +3004,31 @@ const X = ie("pg-history", {
|
|
|
2995
3004
|
}), f = y(() => ({
|
|
2996
3005
|
...u.value,
|
|
2997
3006
|
backgroundColor: r.value === 3 ? "#000000" : "#ffffff"
|
|
2998
|
-
})), { current: g } = S(s), v =
|
|
2999
|
-
return
|
|
3007
|
+
})), { current: g } = S(s), v = Z([]), T = Z(1);
|
|
3008
|
+
return ce(
|
|
3000
3009
|
() => {
|
|
3001
|
-
var
|
|
3002
|
-
return [(
|
|
3010
|
+
var C, w, I;
|
|
3011
|
+
return [(C = g.value) == null ? void 0 : C.id, (w = g.value) == null ? void 0 : w.src, (I = g.value) == null ? void 0 : I.status];
|
|
3003
3012
|
},
|
|
3004
|
-
([
|
|
3005
|
-
if (!(
|
|
3006
|
-
const
|
|
3013
|
+
([C, w, I], P, b) => {
|
|
3014
|
+
if (!(I === ln && w)) return;
|
|
3015
|
+
const x = C.split("."), B = C ?? `${w}#${Date.now()}`;
|
|
3007
3016
|
v.value = [
|
|
3008
3017
|
...v.value,
|
|
3009
|
-
{ key:
|
|
3018
|
+
{ key: B, src: w, zIndex: T.value, flipped: x[2] === "1" }
|
|
3010
3019
|
], T.value++, v.value.length > 1 && (v.value = v.value.slice(-1));
|
|
3011
3020
|
},
|
|
3012
3021
|
{ immediate: !0 }
|
|
3013
|
-
), (
|
|
3022
|
+
), (C, w) => (L(), F("div", {
|
|
3014
3023
|
class: "pg-display",
|
|
3015
3024
|
style: rn(f.value)
|
|
3016
3025
|
}, [
|
|
3017
|
-
|
|
3026
|
+
H(Io, { name: "pgfade" }, {
|
|
3018
3027
|
default: Gt(() => [
|
|
3019
|
-
(
|
|
3020
|
-
key:
|
|
3021
|
-
zIndex: parseInt(
|
|
3022
|
-
flipped:
|
|
3028
|
+
(L(!0), F(Ze, null, Ke(v.value, (I, P) => (L(), It(wi, {
|
|
3029
|
+
key: I.key,
|
|
3030
|
+
zIndex: parseInt(I.zIndex),
|
|
3031
|
+
flipped: I.flipped
|
|
3023
3032
|
}, null, 8, ["zIndex", "flipped"]))), 128))
|
|
3024
3033
|
]),
|
|
3025
3034
|
_: 1
|
|
@@ -3034,17 +3043,17 @@ var Ft = { exports: {} };
|
|
|
3034
3043
|
* Copyright (c) 2016 Jorik Tangelder;
|
|
3035
3044
|
* Licensed under the MIT license */
|
|
3036
3045
|
var qs;
|
|
3037
|
-
function
|
|
3046
|
+
function Ai() {
|
|
3038
3047
|
return qs || (qs = 1, (function(e) {
|
|
3039
3048
|
(function(t, s, n, r) {
|
|
3040
3049
|
var a = ["", "webkit", "Moz", "MS", "ms", "o"], c = s.createElement("div"), d = "function", u = Math.round, f = Math.abs, g = Date.now;
|
|
3041
3050
|
function v(o, i, l) {
|
|
3042
|
-
return setTimeout(
|
|
3051
|
+
return setTimeout(B(o, l), i);
|
|
3043
3052
|
}
|
|
3044
3053
|
function T(o, i, l) {
|
|
3045
|
-
return Array.isArray(o) ? (
|
|
3054
|
+
return Array.isArray(o) ? (C(o, l[i], l), !0) : !1;
|
|
3046
3055
|
}
|
|
3047
|
-
function
|
|
3056
|
+
function C(o, i, l) {
|
|
3048
3057
|
var p;
|
|
3049
3058
|
if (o)
|
|
3050
3059
|
if (o.forEach)
|
|
@@ -3056,17 +3065,17 @@ function xi() {
|
|
|
3056
3065
|
for (p in o)
|
|
3057
3066
|
o.hasOwnProperty(p) && i.call(l, o[p], p, o);
|
|
3058
3067
|
}
|
|
3059
|
-
function
|
|
3068
|
+
function w(o, i, l) {
|
|
3060
3069
|
var p = "DEPRECATED METHOD: " + i + `
|
|
3061
3070
|
` + l + ` AT
|
|
3062
3071
|
`;
|
|
3063
3072
|
return function() {
|
|
3064
|
-
var m = new Error("get-stack-trace"), E = m && m.stack ? m.stack.replace(/^[^\(]+?[\n$]/gm, "").replace(/^\s+at\s+/gm, "").replace(/^Object.<anonymous>\s*\(/gm, "{anonymous}()@") : "Unknown Stack Trace",
|
|
3065
|
-
return
|
|
3073
|
+
var m = new Error("get-stack-trace"), E = m && m.stack ? m.stack.replace(/^[^\(]+?[\n$]/gm, "").replace(/^\s+at\s+/gm, "").replace(/^Object.<anonymous>\s*\(/gm, "{anonymous}()@") : "Unknown Stack Trace", D = t.console && (t.console.warn || t.console.log);
|
|
3074
|
+
return D && D.call(t.console, p, E), o.apply(this, arguments);
|
|
3066
3075
|
};
|
|
3067
3076
|
}
|
|
3068
|
-
var
|
|
3069
|
-
typeof Object.assign != "function" ?
|
|
3077
|
+
var I;
|
|
3078
|
+
typeof Object.assign != "function" ? I = function(i) {
|
|
3070
3079
|
if (i === r || i === null)
|
|
3071
3080
|
throw new TypeError("Cannot convert undefined or null to object");
|
|
3072
3081
|
for (var l = Object(i), p = 1; p < arguments.length; p++) {
|
|
@@ -3076,40 +3085,40 @@ function xi() {
|
|
|
3076
3085
|
m.hasOwnProperty(E) && (l[E] = m[E]);
|
|
3077
3086
|
}
|
|
3078
3087
|
return l;
|
|
3079
|
-
} :
|
|
3080
|
-
var
|
|
3088
|
+
} : I = Object.assign;
|
|
3089
|
+
var P = w(function(i, l, p) {
|
|
3081
3090
|
for (var m = Object.keys(l), E = 0; E < m.length; )
|
|
3082
3091
|
(!p || p && i[m[E]] === r) && (i[m[E]] = l[m[E]]), E++;
|
|
3083
3092
|
return i;
|
|
3084
|
-
}, "extend", "Use `assign`."),
|
|
3085
|
-
return
|
|
3093
|
+
}, "extend", "Use `assign`."), b = w(function(i, l) {
|
|
3094
|
+
return P(i, l, !0);
|
|
3086
3095
|
}, "merge", "Use `assign`.");
|
|
3087
|
-
function
|
|
3096
|
+
function x(o, i, l) {
|
|
3088
3097
|
var p = i.prototype, m;
|
|
3089
|
-
m = o.prototype = Object.create(p), m.constructor = o, m._super = p, l &&
|
|
3098
|
+
m = o.prototype = Object.create(p), m.constructor = o, m._super = p, l && I(m, l);
|
|
3090
3099
|
}
|
|
3091
|
-
function
|
|
3100
|
+
function B(o, i) {
|
|
3092
3101
|
return function() {
|
|
3093
3102
|
return o.apply(i, arguments);
|
|
3094
3103
|
};
|
|
3095
3104
|
}
|
|
3096
|
-
function
|
|
3105
|
+
function te(o, i) {
|
|
3097
3106
|
return typeof o == d ? o.apply(i && i[0] || r, i) : o;
|
|
3098
3107
|
}
|
|
3099
|
-
function
|
|
3108
|
+
function M(o, i) {
|
|
3100
3109
|
return o === r ? i : o;
|
|
3101
3110
|
}
|
|
3102
|
-
function
|
|
3103
|
-
|
|
3111
|
+
function O(o, i, l) {
|
|
3112
|
+
C(tt(i), function(p) {
|
|
3104
3113
|
o.addEventListener(p, l, !1);
|
|
3105
3114
|
});
|
|
3106
3115
|
}
|
|
3107
|
-
function
|
|
3108
|
-
|
|
3116
|
+
function Y(o, i, l) {
|
|
3117
|
+
C(tt(i), function(p) {
|
|
3109
3118
|
o.removeEventListener(p, l, !1);
|
|
3110
3119
|
});
|
|
3111
3120
|
}
|
|
3112
|
-
function
|
|
3121
|
+
function q(o, i) {
|
|
3113
3122
|
for (; o; ) {
|
|
3114
3123
|
if (o == i)
|
|
3115
3124
|
return !0;
|
|
@@ -3117,10 +3126,10 @@ function xi() {
|
|
|
3117
3126
|
}
|
|
3118
3127
|
return !1;
|
|
3119
3128
|
}
|
|
3120
|
-
function
|
|
3129
|
+
function W(o, i) {
|
|
3121
3130
|
return o.indexOf(i) > -1;
|
|
3122
3131
|
}
|
|
3123
|
-
function
|
|
3132
|
+
function tt(o) {
|
|
3124
3133
|
return o.trim().split(/\s+/g);
|
|
3125
3134
|
}
|
|
3126
3135
|
function we(o, i, l) {
|
|
@@ -3133,19 +3142,19 @@ function xi() {
|
|
|
3133
3142
|
}
|
|
3134
3143
|
return -1;
|
|
3135
3144
|
}
|
|
3136
|
-
function
|
|
3145
|
+
function st(o) {
|
|
3137
3146
|
return Array.prototype.slice.call(o, 0);
|
|
3138
3147
|
}
|
|
3139
3148
|
function rs(o, i, l) {
|
|
3140
3149
|
for (var p = [], m = [], E = 0; E < o.length; ) {
|
|
3141
|
-
var
|
|
3142
|
-
we(m,
|
|
3150
|
+
var D = o[E][i];
|
|
3151
|
+
we(m, D) < 0 && p.push(o[E]), m[E] = D, E++;
|
|
3143
3152
|
}
|
|
3144
|
-
return p = p.sort(function(
|
|
3145
|
-
return
|
|
3153
|
+
return p = p.sort(function($, G) {
|
|
3154
|
+
return $[i] > G[i];
|
|
3146
3155
|
}), p;
|
|
3147
3156
|
}
|
|
3148
|
-
function
|
|
3157
|
+
function nt(o, i) {
|
|
3149
3158
|
for (var l, p, m = i[0].toUpperCase() + i.slice(1), E = 0; E < a.length; ) {
|
|
3150
3159
|
if (l = a[E], p = l ? l + m : i, p in o)
|
|
3151
3160
|
return p;
|
|
@@ -3161,14 +3170,14 @@ function xi() {
|
|
|
3161
3170
|
var i = o.ownerDocument || o;
|
|
3162
3171
|
return i.defaultView || i.parentWindow || t;
|
|
3163
3172
|
}
|
|
3164
|
-
var Fn = /mobile|tablet|ip(ad|hone|od)|android/i, as = "ontouchstart" in t, qn =
|
|
3165
|
-
function
|
|
3173
|
+
var Fn = /mobile|tablet|ip(ad|hone|od)|android/i, as = "ontouchstart" in t, qn = nt(t, "PointerEvent") !== r, jn = as && Fn.test(navigator.userAgent), Ue = "touch", Gn = "pen", At = "mouse", Yn = "kinect", Wn = 25, j = 1, be = 2, k = 4, X = 8, ot = 1, Re = 2, Be = 4, $e = 8, ze = 16, re = Re | Be, Ie = $e | ze, ls = re | Ie, cs = ["x", "y"], rt = ["clientX", "clientY"];
|
|
3174
|
+
function J(o, i) {
|
|
3166
3175
|
var l = this;
|
|
3167
3176
|
this.manager = o, this.callback = i, this.element = o.element, this.target = o.options.inputTarget, this.domHandler = function(p) {
|
|
3168
|
-
|
|
3177
|
+
te(o.options.enable, [o]) && l.handler(p);
|
|
3169
3178
|
}, this.init();
|
|
3170
3179
|
}
|
|
3171
|
-
|
|
3180
|
+
J.prototype = {
|
|
3172
3181
|
/**
|
|
3173
3182
|
* should handle the inputEvent data and trigger the callback
|
|
3174
3183
|
* @virtual
|
|
@@ -3179,36 +3188,36 @@ function xi() {
|
|
|
3179
3188
|
* bind the events
|
|
3180
3189
|
*/
|
|
3181
3190
|
init: function() {
|
|
3182
|
-
this.evEl &&
|
|
3191
|
+
this.evEl && O(this.element, this.evEl, this.domHandler), this.evTarget && O(this.target, this.evTarget, this.domHandler), this.evWin && O(is(this.element), this.evWin, this.domHandler);
|
|
3183
3192
|
},
|
|
3184
3193
|
/**
|
|
3185
3194
|
* unbind the events
|
|
3186
3195
|
*/
|
|
3187
3196
|
destroy: function() {
|
|
3188
|
-
this.evEl &&
|
|
3197
|
+
this.evEl && Y(this.element, this.evEl, this.domHandler), this.evTarget && Y(this.target, this.evTarget, this.domHandler), this.evWin && Y(is(this.element), this.evWin, this.domHandler);
|
|
3189
3198
|
}
|
|
3190
3199
|
};
|
|
3191
3200
|
function Xn(o) {
|
|
3192
3201
|
var i, l = o.options.inputClass;
|
|
3193
|
-
return l ? i = l : qn ? i =
|
|
3202
|
+
return l ? i = l : qn ? i = Ot : jn ? i = lt : as ? i = kt : i = at, new i(o, Zn);
|
|
3194
3203
|
}
|
|
3195
3204
|
function Zn(o, i, l) {
|
|
3196
|
-
var p = l.pointers.length, m = l.changedPointers.length, E = i &
|
|
3197
|
-
l.isFirst = !!E, l.isFinal = !!
|
|
3205
|
+
var p = l.pointers.length, m = l.changedPointers.length, E = i & j && p - m === 0, D = i & (k | X) && p - m === 0;
|
|
3206
|
+
l.isFirst = !!E, l.isFinal = !!D, E && (o.session = {}), l.eventType = i, Kn(o, l), o.emit("hammer.input", l), o.recognize(l), o.session.prevInput = l;
|
|
3198
3207
|
}
|
|
3199
3208
|
function Kn(o, i) {
|
|
3200
3209
|
var l = o.session, p = i.pointers, m = p.length;
|
|
3201
3210
|
l.firstInput || (l.firstInput = us(i)), m > 1 && !l.firstMultiple ? l.firstMultiple = us(i) : m === 1 && (l.firstMultiple = !1);
|
|
3202
|
-
var E = l.firstInput,
|
|
3203
|
-
i.timeStamp = g(), i.deltaTime = i.timeStamp - E.timeStamp, i.angle =
|
|
3204
|
-
var
|
|
3205
|
-
i.overallVelocityX =
|
|
3206
|
-
var
|
|
3207
|
-
|
|
3211
|
+
var E = l.firstInput, D = l.firstMultiple, U = D ? D.center : E.center, $ = i.center = ds(p);
|
|
3212
|
+
i.timeStamp = g(), i.deltaTime = i.timeStamp - E.timeStamp, i.angle = Nt(U, $), i.distance = it(U, $), Qn(l, i), i.offsetDirection = ps(i.deltaX, i.deltaY);
|
|
3213
|
+
var G = hs(i.deltaTime, i.deltaX, i.deltaY);
|
|
3214
|
+
i.overallVelocityX = G.x, i.overallVelocityY = G.y, i.overallVelocity = f(G.x) > f(G.y) ? G.x : G.y, i.scale = D ? to(D.pointers, p) : 1, i.rotation = D ? eo(D.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);
|
|
3215
|
+
var ae = o.element;
|
|
3216
|
+
q(i.srcEvent.target, ae) && (ae = i.srcEvent.target), i.target = ae;
|
|
3208
3217
|
}
|
|
3209
3218
|
function Qn(o, i) {
|
|
3210
3219
|
var l = i.center, p = o.offsetDelta || {}, m = o.prevDelta || {}, E = o.prevInput || {};
|
|
3211
|
-
(i.eventType ===
|
|
3220
|
+
(i.eventType === j || E.eventType === k) && (m = o.prevDelta = {
|
|
3212
3221
|
x: E.deltaX || 0,
|
|
3213
3222
|
y: E.deltaY || 0
|
|
3214
3223
|
}, p = o.offsetDelta = {
|
|
@@ -3217,13 +3226,13 @@ function xi() {
|
|
|
3217
3226
|
}), i.deltaX = m.x + (l.x - p.x), i.deltaY = m.y + (l.y - p.y);
|
|
3218
3227
|
}
|
|
3219
3228
|
function Jn(o, i) {
|
|
3220
|
-
var l = o.lastInterval || i, p = i.timeStamp - l.timeStamp, m, E,
|
|
3221
|
-
if (i.eventType !=
|
|
3222
|
-
var
|
|
3223
|
-
E =
|
|
3229
|
+
var l = o.lastInterval || i, p = i.timeStamp - l.timeStamp, m, E, D, U;
|
|
3230
|
+
if (i.eventType != X && (p > Wn || l.velocity === r)) {
|
|
3231
|
+
var $ = i.deltaX - l.deltaX, G = i.deltaY - l.deltaY, ae = hs(p, $, G);
|
|
3232
|
+
E = ae.x, D = ae.y, m = f(ae.x) > f(ae.y) ? ae.x : ae.y, U = ps($, G), o.lastInterval = i;
|
|
3224
3233
|
} else
|
|
3225
|
-
m = l.velocity, E = l.velocityX,
|
|
3226
|
-
i.velocity = m, i.velocityX = E, i.velocityY =
|
|
3234
|
+
m = l.velocity, E = l.velocityX, D = l.velocityY, U = l.direction;
|
|
3235
|
+
i.velocity = m, i.velocityX = E, i.velocityY = D, i.direction = U;
|
|
3227
3236
|
}
|
|
3228
3237
|
function us(o) {
|
|
3229
3238
|
for (var i = [], l = 0; l < o.pointers.length; )
|
|
@@ -3260,40 +3269,40 @@ function xi() {
|
|
|
3260
3269
|
};
|
|
3261
3270
|
}
|
|
3262
3271
|
function ps(o, i) {
|
|
3263
|
-
return o === i ?
|
|
3272
|
+
return o === i ? ot : f(o) >= f(i) ? o < 0 ? Re : Be : i < 0 ? $e : ze;
|
|
3264
3273
|
}
|
|
3265
|
-
function
|
|
3274
|
+
function it(o, i, l) {
|
|
3266
3275
|
l || (l = cs);
|
|
3267
3276
|
var p = i[l[0]] - o[l[0]], m = i[l[1]] - o[l[1]];
|
|
3268
3277
|
return Math.sqrt(p * p + m * m);
|
|
3269
3278
|
}
|
|
3270
|
-
function
|
|
3279
|
+
function Nt(o, i, l) {
|
|
3271
3280
|
l || (l = cs);
|
|
3272
3281
|
var p = i[l[0]] - o[l[0]], m = i[l[1]] - o[l[1]];
|
|
3273
3282
|
return Math.atan2(m, p) * 180 / Math.PI;
|
|
3274
3283
|
}
|
|
3275
3284
|
function eo(o, i) {
|
|
3276
|
-
return
|
|
3285
|
+
return Nt(i[1], i[0], rt) + Nt(o[1], o[0], rt);
|
|
3277
3286
|
}
|
|
3278
3287
|
function to(o, i) {
|
|
3279
|
-
return
|
|
3288
|
+
return it(i[0], i[1], rt) / it(o[0], o[1], rt);
|
|
3280
3289
|
}
|
|
3281
3290
|
var so = {
|
|
3282
|
-
mousedown:
|
|
3283
|
-
mousemove:
|
|
3284
|
-
mouseup:
|
|
3291
|
+
mousedown: j,
|
|
3292
|
+
mousemove: be,
|
|
3293
|
+
mouseup: k
|
|
3285
3294
|
}, no = "mousedown", oo = "mousemove mouseup";
|
|
3286
|
-
function
|
|
3287
|
-
this.evEl = no, this.evWin = oo, this.pressed = !1,
|
|
3295
|
+
function at() {
|
|
3296
|
+
this.evEl = no, this.evWin = oo, this.pressed = !1, J.apply(this, arguments);
|
|
3288
3297
|
}
|
|
3289
|
-
|
|
3298
|
+
x(at, J, {
|
|
3290
3299
|
/**
|
|
3291
3300
|
* handle mouse events
|
|
3292
3301
|
* @param {Object} ev
|
|
3293
3302
|
*/
|
|
3294
3303
|
handler: function(i) {
|
|
3295
3304
|
var l = so[i.type];
|
|
3296
|
-
l &
|
|
3305
|
+
l & j && i.button === 0 && (this.pressed = !0), l & be && i.which !== 1 && (l = k), this.pressed && (l & k && (this.pressed = !1), this.callback(this.manager, l, {
|
|
3297
3306
|
pointers: [i],
|
|
3298
3307
|
changedPointers: [i],
|
|
3299
3308
|
pointerType: At,
|
|
@@ -3302,11 +3311,11 @@ function xi() {
|
|
|
3302
3311
|
}
|
|
3303
3312
|
});
|
|
3304
3313
|
var ro = {
|
|
3305
|
-
pointerdown:
|
|
3306
|
-
pointermove:
|
|
3307
|
-
pointerup:
|
|
3308
|
-
pointercancel:
|
|
3309
|
-
pointerout:
|
|
3314
|
+
pointerdown: j,
|
|
3315
|
+
pointermove: be,
|
|
3316
|
+
pointerup: k,
|
|
3317
|
+
pointercancel: X,
|
|
3318
|
+
pointerout: X
|
|
3310
3319
|
}, io = {
|
|
3311
3320
|
2: Ue,
|
|
3312
3321
|
3: Gn,
|
|
@@ -3315,39 +3324,39 @@ function xi() {
|
|
|
3315
3324
|
// see https://twitter.com/jacobrossi/status/480596438489890816
|
|
3316
3325
|
}, fs = "pointerdown", gs = "pointermove pointerup pointercancel";
|
|
3317
3326
|
t.MSPointerEvent && !t.PointerEvent && (fs = "MSPointerDown", gs = "MSPointerMove MSPointerUp MSPointerCancel");
|
|
3318
|
-
function
|
|
3319
|
-
this.evEl = fs, this.evWin = gs,
|
|
3327
|
+
function Ot() {
|
|
3328
|
+
this.evEl = fs, this.evWin = gs, J.apply(this, arguments), this.store = this.manager.session.pointerEvents = [];
|
|
3320
3329
|
}
|
|
3321
|
-
|
|
3330
|
+
x(Ot, J, {
|
|
3322
3331
|
/**
|
|
3323
3332
|
* handle mouse events
|
|
3324
3333
|
* @param {Object} ev
|
|
3325
3334
|
*/
|
|
3326
3335
|
handler: function(i) {
|
|
3327
|
-
var l = this.store, p = !1, m = i.type.toLowerCase().replace("ms", ""), E = ro[m],
|
|
3328
|
-
E &
|
|
3336
|
+
var l = this.store, p = !1, m = i.type.toLowerCase().replace("ms", ""), E = ro[m], D = io[i.pointerType] || i.pointerType, U = D == Ue, $ = we(l, i.pointerId, "pointerId");
|
|
3337
|
+
E & j && (i.button === 0 || U) ? $ < 0 && (l.push(i), $ = l.length - 1) : E & (k | X) && (p = !0), !($ < 0) && (l[$] = i, this.callback(this.manager, E, {
|
|
3329
3338
|
pointers: l,
|
|
3330
3339
|
changedPointers: [i],
|
|
3331
|
-
pointerType:
|
|
3340
|
+
pointerType: D,
|
|
3332
3341
|
srcEvent: i
|
|
3333
|
-
}), p && l.splice(
|
|
3342
|
+
}), p && l.splice($, 1));
|
|
3334
3343
|
}
|
|
3335
3344
|
});
|
|
3336
3345
|
var ao = {
|
|
3337
|
-
touchstart:
|
|
3338
|
-
touchmove:
|
|
3339
|
-
touchend:
|
|
3340
|
-
touchcancel:
|
|
3346
|
+
touchstart: j,
|
|
3347
|
+
touchmove: be,
|
|
3348
|
+
touchend: k,
|
|
3349
|
+
touchcancel: X
|
|
3341
3350
|
}, lo = "touchstart", co = "touchstart touchmove touchend touchcancel";
|
|
3342
3351
|
function ms() {
|
|
3343
|
-
this.evTarget = lo, this.evWin = co, this.started = !1,
|
|
3352
|
+
this.evTarget = lo, this.evWin = co, this.started = !1, J.apply(this, arguments);
|
|
3344
3353
|
}
|
|
3345
|
-
|
|
3354
|
+
x(ms, J, {
|
|
3346
3355
|
handler: function(i) {
|
|
3347
3356
|
var l = ao[i.type];
|
|
3348
|
-
if (l ===
|
|
3357
|
+
if (l === j && (this.started = !0), !!this.started) {
|
|
3349
3358
|
var p = uo.call(this, i, l);
|
|
3350
|
-
l & (
|
|
3359
|
+
l & (k | X) && p[0].length - p[1].length === 0 && (this.started = !1), this.callback(this.manager, l, {
|
|
3351
3360
|
pointers: p[0],
|
|
3352
3361
|
changedPointers: p[1],
|
|
3353
3362
|
pointerType: Ue,
|
|
@@ -3357,19 +3366,19 @@ function xi() {
|
|
|
3357
3366
|
}
|
|
3358
3367
|
});
|
|
3359
3368
|
function uo(o, i) {
|
|
3360
|
-
var l =
|
|
3361
|
-
return i & (
|
|
3369
|
+
var l = st(o.touches), p = st(o.changedTouches);
|
|
3370
|
+
return i & (k | X) && (l = rs(l.concat(p), "identifier")), [l, p];
|
|
3362
3371
|
}
|
|
3363
3372
|
var ho = {
|
|
3364
|
-
touchstart:
|
|
3365
|
-
touchmove:
|
|
3366
|
-
touchend:
|
|
3367
|
-
touchcancel:
|
|
3373
|
+
touchstart: j,
|
|
3374
|
+
touchmove: be,
|
|
3375
|
+
touchend: k,
|
|
3376
|
+
touchcancel: X
|
|
3368
3377
|
}, po = "touchstart touchmove touchend touchcancel";
|
|
3369
|
-
function
|
|
3370
|
-
this.evTarget = po, this.targetIds = {},
|
|
3378
|
+
function lt() {
|
|
3379
|
+
this.evTarget = po, this.targetIds = {}, J.apply(this, arguments);
|
|
3371
3380
|
}
|
|
3372
|
-
|
|
3381
|
+
x(lt, J, {
|
|
3373
3382
|
handler: function(i) {
|
|
3374
3383
|
var l = ho[i.type], p = fo.call(this, i, l);
|
|
3375
3384
|
p && this.callback(this.manager, l, {
|
|
@@ -3381,31 +3390,31 @@ function xi() {
|
|
|
3381
3390
|
}
|
|
3382
3391
|
});
|
|
3383
3392
|
function fo(o, i) {
|
|
3384
|
-
var l =
|
|
3385
|
-
if (i & (
|
|
3393
|
+
var l = st(o.touches), p = this.targetIds;
|
|
3394
|
+
if (i & (j | be) && l.length === 1)
|
|
3386
3395
|
return p[l[0].identifier] = !0, [l, l];
|
|
3387
|
-
var m, E,
|
|
3388
|
-
if (E = l.filter(function(
|
|
3389
|
-
return
|
|
3390
|
-
}), i ===
|
|
3396
|
+
var m, E, D = st(o.changedTouches), U = [], $ = this.target;
|
|
3397
|
+
if (E = l.filter(function(G) {
|
|
3398
|
+
return q(G.target, $);
|
|
3399
|
+
}), i === j)
|
|
3391
3400
|
for (m = 0; m < E.length; )
|
|
3392
3401
|
p[E[m].identifier] = !0, m++;
|
|
3393
|
-
for (m = 0; m <
|
|
3394
|
-
p[
|
|
3395
|
-
if (
|
|
3402
|
+
for (m = 0; m < D.length; )
|
|
3403
|
+
p[D[m].identifier] && U.push(D[m]), i & (k | X) && delete p[D[m].identifier], m++;
|
|
3404
|
+
if (U.length)
|
|
3396
3405
|
return [
|
|
3397
3406
|
// merge targetTouches with changedTargetTouches so it contains ALL touches, including 'end' and 'cancel'
|
|
3398
|
-
rs(E.concat(
|
|
3399
|
-
|
|
3407
|
+
rs(E.concat(U), "identifier"),
|
|
3408
|
+
U
|
|
3400
3409
|
];
|
|
3401
3410
|
}
|
|
3402
3411
|
var go = 2500, vs = 25;
|
|
3403
|
-
function
|
|
3404
|
-
|
|
3405
|
-
var o =
|
|
3406
|
-
this.touch = new
|
|
3412
|
+
function kt() {
|
|
3413
|
+
J.apply(this, arguments);
|
|
3414
|
+
var o = B(this.handler, this);
|
|
3415
|
+
this.touch = new lt(this.manager, o), this.mouse = new at(this.manager, o), this.primaryTouch = null, this.lastTouches = [];
|
|
3407
3416
|
}
|
|
3408
|
-
|
|
3417
|
+
x(kt, J, {
|
|
3409
3418
|
/**
|
|
3410
3419
|
* handle mouse and touch events
|
|
3411
3420
|
* @param {Hammer} manager
|
|
@@ -3430,7 +3439,7 @@ function xi() {
|
|
|
3430
3439
|
}
|
|
3431
3440
|
});
|
|
3432
3441
|
function mo(o, i) {
|
|
3433
|
-
o &
|
|
3442
|
+
o & j ? (this.primaryTouch = i.changedPointers[0].identifier, ys.call(this, i)) : o & (k | X) && ys.call(this, i);
|
|
3434
3443
|
}
|
|
3435
3444
|
function ys(o) {
|
|
3436
3445
|
var i = o.changedPointers[0];
|
|
@@ -3446,23 +3455,23 @@ function xi() {
|
|
|
3446
3455
|
}
|
|
3447
3456
|
function vo(o) {
|
|
3448
3457
|
for (var i = o.srcEvent.clientX, l = o.srcEvent.clientY, p = 0; p < this.lastTouches.length; p++) {
|
|
3449
|
-
var m = this.lastTouches[p], E = Math.abs(i - m.x),
|
|
3450
|
-
if (E <= vs &&
|
|
3458
|
+
var m = this.lastTouches[p], E = Math.abs(i - m.x), D = Math.abs(l - m.y);
|
|
3459
|
+
if (E <= vs && D <= vs)
|
|
3451
3460
|
return !0;
|
|
3452
3461
|
}
|
|
3453
3462
|
return !1;
|
|
3454
3463
|
}
|
|
3455
|
-
var Es =
|
|
3456
|
-
function
|
|
3464
|
+
var Es = nt(c.style, "touchAction"), Ss = Es !== r, Ts = "compute", Cs = "auto", Lt = "manipulation", Pe = "none", He = "pan-x", Fe = "pan-y", ct = Eo();
|
|
3465
|
+
function Vt(o, i) {
|
|
3457
3466
|
this.manager = o, this.set(i);
|
|
3458
3467
|
}
|
|
3459
|
-
|
|
3468
|
+
Vt.prototype = {
|
|
3460
3469
|
/**
|
|
3461
3470
|
* set the touchAction value on the element or enable the polyfill
|
|
3462
3471
|
* @param {String} value
|
|
3463
3472
|
*/
|
|
3464
3473
|
set: function(o) {
|
|
3465
|
-
o == Ts && (o = this.compute()), Ss && this.manager.element.style &&
|
|
3474
|
+
o == Ts && (o = this.compute()), Ss && this.manager.element.style && ct[o] && (this.manager.element.style[Es] = o), this.actions = o.toLowerCase().trim();
|
|
3466
3475
|
},
|
|
3467
3476
|
/**
|
|
3468
3477
|
* just re-set the touchAction value
|
|
@@ -3476,8 +3485,8 @@ function xi() {
|
|
|
3476
3485
|
*/
|
|
3477
3486
|
compute: function() {
|
|
3478
3487
|
var o = [];
|
|
3479
|
-
return
|
|
3480
|
-
|
|
3488
|
+
return C(this.manager.recognizers, function(i) {
|
|
3489
|
+
te(i.options.enable, [i]) && (o = o.concat(i.getTouchAction()));
|
|
3481
3490
|
}), yo(o.join(" "));
|
|
3482
3491
|
},
|
|
3483
3492
|
/**
|
|
@@ -3490,13 +3499,13 @@ function xi() {
|
|
|
3490
3499
|
i.preventDefault();
|
|
3491
3500
|
return;
|
|
3492
3501
|
}
|
|
3493
|
-
var p = this.actions, m =
|
|
3502
|
+
var p = this.actions, m = W(p, Pe) && !ct[Pe], E = W(p, Fe) && !ct[Fe], D = W(p, He) && !ct[He];
|
|
3494
3503
|
if (m) {
|
|
3495
|
-
var
|
|
3496
|
-
if (
|
|
3504
|
+
var U = o.pointers.length === 1, $ = o.distance < 2, G = o.deltaTime < 250;
|
|
3505
|
+
if (U && $ && G)
|
|
3497
3506
|
return;
|
|
3498
3507
|
}
|
|
3499
|
-
if (!(
|
|
3508
|
+
if (!(D && E) && (m || E && l & re || D && l & Ie))
|
|
3500
3509
|
return this.preventSrc(i);
|
|
3501
3510
|
},
|
|
3502
3511
|
/**
|
|
@@ -3508,10 +3517,10 @@ function xi() {
|
|
|
3508
3517
|
}
|
|
3509
3518
|
};
|
|
3510
3519
|
function yo(o) {
|
|
3511
|
-
if (
|
|
3512
|
-
return
|
|
3513
|
-
var i =
|
|
3514
|
-
return i && l ?
|
|
3520
|
+
if (W(o, Pe))
|
|
3521
|
+
return Pe;
|
|
3522
|
+
var i = W(o, He), l = W(o, Fe);
|
|
3523
|
+
return i && l ? Pe : i || l ? i ? He : Fe : W(o, Lt) ? Lt : Cs;
|
|
3515
3524
|
}
|
|
3516
3525
|
function Eo() {
|
|
3517
3526
|
if (!Ss)
|
|
@@ -3521,11 +3530,11 @@ function xi() {
|
|
|
3521
3530
|
o[l] = i ? t.CSS.supports("touch-action", l) : !0;
|
|
3522
3531
|
}), o;
|
|
3523
3532
|
}
|
|
3524
|
-
var
|
|
3525
|
-
function
|
|
3526
|
-
this.options =
|
|
3533
|
+
var ut = 1, ee = 2, Me = 4, Te = 8, fe = Te, qe = 16, ie = 32;
|
|
3534
|
+
function ge(o) {
|
|
3535
|
+
this.options = I({}, this.defaults, o || {}), this.id = Hn(), this.manager = null, this.options.enable = M(this.options.enable, !0), this.state = ut, this.simultaneous = {}, this.requireFail = [];
|
|
3527
3536
|
}
|
|
3528
|
-
|
|
3537
|
+
ge.prototype = {
|
|
3529
3538
|
/**
|
|
3530
3539
|
* @virtual
|
|
3531
3540
|
* @type {Object}
|
|
@@ -3537,7 +3546,7 @@ function xi() {
|
|
|
3537
3546
|
* @return {Recognizer}
|
|
3538
3547
|
*/
|
|
3539
3548
|
set: function(o) {
|
|
3540
|
-
return
|
|
3549
|
+
return I(this.options, o), this.manager && this.manager.touchAction.update(), this;
|
|
3541
3550
|
},
|
|
3542
3551
|
/**
|
|
3543
3552
|
* recognize simultaneous with an other recognizer.
|
|
@@ -3548,7 +3557,7 @@ function xi() {
|
|
|
3548
3557
|
if (T(o, "recognizeWith", this))
|
|
3549
3558
|
return this;
|
|
3550
3559
|
var i = this.simultaneous;
|
|
3551
|
-
return o =
|
|
3560
|
+
return o = dt(o, this), i[o.id] || (i[o.id] = o, o.recognizeWith(this)), this;
|
|
3552
3561
|
},
|
|
3553
3562
|
/**
|
|
3554
3563
|
* drop the simultaneous link. it doesnt remove the link on the other recognizer.
|
|
@@ -3556,7 +3565,7 @@ function xi() {
|
|
|
3556
3565
|
* @returns {Recognizer} this
|
|
3557
3566
|
*/
|
|
3558
3567
|
dropRecognizeWith: function(o) {
|
|
3559
|
-
return T(o, "dropRecognizeWith", this) ? this : (o =
|
|
3568
|
+
return T(o, "dropRecognizeWith", this) ? this : (o = dt(o, this), delete this.simultaneous[o.id], this);
|
|
3560
3569
|
},
|
|
3561
3570
|
/**
|
|
3562
3571
|
* recognizer can only run when an other is failing
|
|
@@ -3567,7 +3576,7 @@ function xi() {
|
|
|
3567
3576
|
if (T(o, "requireFailure", this))
|
|
3568
3577
|
return this;
|
|
3569
3578
|
var i = this.requireFail;
|
|
3570
|
-
return o =
|
|
3579
|
+
return o = dt(o, this), we(i, o) === -1 && (i.push(o), o.requireFailure(this)), this;
|
|
3571
3580
|
},
|
|
3572
3581
|
/**
|
|
3573
3582
|
* drop the requireFailure link. it does not remove the link on the other recognizer.
|
|
@@ -3577,7 +3586,7 @@ function xi() {
|
|
|
3577
3586
|
dropRequireFailure: function(o) {
|
|
3578
3587
|
if (T(o, "dropRequireFailure", this))
|
|
3579
3588
|
return this;
|
|
3580
|
-
o =
|
|
3589
|
+
o = dt(o, this);
|
|
3581
3590
|
var i = we(this.requireFail, o);
|
|
3582
3591
|
return i > -1 && this.requireFail.splice(i, 1), this;
|
|
3583
3592
|
},
|
|
@@ -3606,7 +3615,7 @@ function xi() {
|
|
|
3606
3615
|
function p(m) {
|
|
3607
3616
|
i.manager.emit(m, o);
|
|
3608
3617
|
}
|
|
3609
|
-
l <
|
|
3618
|
+
l < Te && p(i.options.event + _s(l)), p(i.options.event), o.additionalEvent && p(o.additionalEvent), l >= Te && p(i.options.event + _s(l));
|
|
3610
3619
|
},
|
|
3611
3620
|
/**
|
|
3612
3621
|
* Check that all the require failure recognizers has failed,
|
|
@@ -3617,7 +3626,7 @@ function xi() {
|
|
|
3617
3626
|
tryEmit: function(o) {
|
|
3618
3627
|
if (this.canEmit())
|
|
3619
3628
|
return this.emit(o);
|
|
3620
|
-
this.state =
|
|
3629
|
+
this.state = ie;
|
|
3621
3630
|
},
|
|
3622
3631
|
/**
|
|
3623
3632
|
* can we emit?
|
|
@@ -3625,7 +3634,7 @@ function xi() {
|
|
|
3625
3634
|
*/
|
|
3626
3635
|
canEmit: function() {
|
|
3627
3636
|
for (var o = 0; o < this.requireFail.length; ) {
|
|
3628
|
-
if (!(this.requireFail[o].state & (
|
|
3637
|
+
if (!(this.requireFail[o].state & (ie | ut)))
|
|
3629
3638
|
return !1;
|
|
3630
3639
|
o++;
|
|
3631
3640
|
}
|
|
@@ -3636,12 +3645,12 @@ function xi() {
|
|
|
3636
3645
|
* @param {Object} inputData
|
|
3637
3646
|
*/
|
|
3638
3647
|
recognize: function(o) {
|
|
3639
|
-
var i =
|
|
3640
|
-
if (!
|
|
3641
|
-
this.reset(), this.state =
|
|
3648
|
+
var i = I({}, o);
|
|
3649
|
+
if (!te(this.options.enable, [this, i])) {
|
|
3650
|
+
this.reset(), this.state = ie;
|
|
3642
3651
|
return;
|
|
3643
3652
|
}
|
|
3644
|
-
this.state & (
|
|
3653
|
+
this.state & (fe | qe | ie) && (this.state = ut), this.state = this.process(i), this.state & (ee | Me | Te | qe) && this.tryEmit(i);
|
|
3645
3654
|
},
|
|
3646
3655
|
/**
|
|
3647
3656
|
* return the state of the recognizer
|
|
@@ -3669,19 +3678,19 @@ function xi() {
|
|
|
3669
3678
|
}
|
|
3670
3679
|
};
|
|
3671
3680
|
function _s(o) {
|
|
3672
|
-
return o & qe ? "cancel" : o &
|
|
3681
|
+
return o & qe ? "cancel" : o & Te ? "end" : o & Me ? "move" : o & ee ? "start" : "";
|
|
3673
3682
|
}
|
|
3674
3683
|
function bs(o) {
|
|
3675
3684
|
return o == ze ? "down" : o == $e ? "up" : o == Re ? "left" : o == Be ? "right" : "";
|
|
3676
3685
|
}
|
|
3677
|
-
function
|
|
3686
|
+
function dt(o, i) {
|
|
3678
3687
|
var l = i.manager;
|
|
3679
3688
|
return l ? l.get(o) : o;
|
|
3680
3689
|
}
|
|
3681
|
-
function
|
|
3682
|
-
|
|
3690
|
+
function se() {
|
|
3691
|
+
ge.apply(this, arguments);
|
|
3683
3692
|
}
|
|
3684
|
-
|
|
3693
|
+
x(se, ge, {
|
|
3685
3694
|
/**
|
|
3686
3695
|
* @namespace
|
|
3687
3696
|
* @memberof AttrRecognizer
|
|
@@ -3710,14 +3719,14 @@ function xi() {
|
|
|
3710
3719
|
* @returns {*} State
|
|
3711
3720
|
*/
|
|
3712
3721
|
process: function(o) {
|
|
3713
|
-
var i = this.state, l = o.eventType, p = i & (
|
|
3714
|
-
return p && (l &
|
|
3722
|
+
var i = this.state, l = o.eventType, p = i & (ee | Me), m = this.attrTest(o);
|
|
3723
|
+
return p && (l & X || !m) ? i | qe : p || m ? l & k ? i | Te : i & ee ? i | Me : ee : ie;
|
|
3715
3724
|
}
|
|
3716
3725
|
});
|
|
3717
|
-
function
|
|
3718
|
-
|
|
3726
|
+
function ht() {
|
|
3727
|
+
se.apply(this, arguments), this.pX = null, this.pY = null;
|
|
3719
3728
|
}
|
|
3720
|
-
|
|
3729
|
+
x(ht, se, {
|
|
3721
3730
|
/**
|
|
3722
3731
|
* @namespace
|
|
3723
3732
|
* @memberof PanRecognizer
|
|
@@ -3730,14 +3739,14 @@ function xi() {
|
|
|
3730
3739
|
},
|
|
3731
3740
|
getTouchAction: function() {
|
|
3732
3741
|
var o = this.options.direction, i = [];
|
|
3733
|
-
return o &
|
|
3742
|
+
return o & re && i.push(Fe), o & Ie && i.push(He), i;
|
|
3734
3743
|
},
|
|
3735
3744
|
directionTest: function(o) {
|
|
3736
|
-
var i = this.options, l = !0, p = o.distance, m = o.direction, E = o.deltaX,
|
|
3737
|
-
return m & i.direction || (i.direction &
|
|
3745
|
+
var i = this.options, l = !0, p = o.distance, m = o.direction, E = o.deltaX, D = o.deltaY;
|
|
3746
|
+
return m & i.direction || (i.direction & re ? (m = E === 0 ? ot : E < 0 ? Re : Be, l = E != this.pX, p = Math.abs(o.deltaX)) : (m = D === 0 ? ot : D < 0 ? $e : ze, l = D != this.pY, p = Math.abs(o.deltaY))), o.direction = m, l && p > i.threshold && m & i.direction;
|
|
3738
3747
|
},
|
|
3739
3748
|
attrTest: function(o) {
|
|
3740
|
-
return
|
|
3749
|
+
return se.prototype.attrTest.call(this, o) && (this.state & ee || !(this.state & ee) && this.directionTest(o));
|
|
3741
3750
|
},
|
|
3742
3751
|
emit: function(o) {
|
|
3743
3752
|
this.pX = o.deltaX, this.pY = o.deltaY;
|
|
@@ -3745,10 +3754,10 @@ function xi() {
|
|
|
3745
3754
|
i && (o.additionalEvent = this.options.event + i), this._super.emit.call(this, o);
|
|
3746
3755
|
}
|
|
3747
3756
|
});
|
|
3748
|
-
function
|
|
3749
|
-
|
|
3757
|
+
function Ut() {
|
|
3758
|
+
se.apply(this, arguments);
|
|
3750
3759
|
}
|
|
3751
|
-
|
|
3760
|
+
x(Ut, se, {
|
|
3752
3761
|
/**
|
|
3753
3762
|
* @namespace
|
|
3754
3763
|
* @memberof PinchRecognizer
|
|
@@ -3759,10 +3768,10 @@ function xi() {
|
|
|
3759
3768
|
pointers: 2
|
|
3760
3769
|
},
|
|
3761
3770
|
getTouchAction: function() {
|
|
3762
|
-
return [
|
|
3771
|
+
return [Pe];
|
|
3763
3772
|
},
|
|
3764
3773
|
attrTest: function(o) {
|
|
3765
|
-
return this._super.attrTest.call(this, o) && (Math.abs(o.scale - 1) > this.options.threshold || this.state &
|
|
3774
|
+
return this._super.attrTest.call(this, o) && (Math.abs(o.scale - 1) > this.options.threshold || this.state & ee);
|
|
3766
3775
|
},
|
|
3767
3776
|
emit: function(o) {
|
|
3768
3777
|
if (o.scale !== 1) {
|
|
@@ -3772,10 +3781,10 @@ function xi() {
|
|
|
3772
3781
|
this._super.emit.call(this, o);
|
|
3773
3782
|
}
|
|
3774
3783
|
});
|
|
3775
|
-
function
|
|
3776
|
-
|
|
3784
|
+
function Rt() {
|
|
3785
|
+
ge.apply(this, arguments), this._timer = null, this._input = null;
|
|
3777
3786
|
}
|
|
3778
|
-
|
|
3787
|
+
x(Rt, ge, {
|
|
3779
3788
|
/**
|
|
3780
3789
|
* @namespace
|
|
3781
3790
|
* @memberof PressRecognizer
|
|
@@ -3793,27 +3802,27 @@ function xi() {
|
|
|
3793
3802
|
},
|
|
3794
3803
|
process: function(o) {
|
|
3795
3804
|
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 & (
|
|
3805
|
+
if (this._input = o, !p || !l || o.eventType & (k | X) && !m)
|
|
3797
3806
|
this.reset();
|
|
3798
|
-
else if (o.eventType &
|
|
3807
|
+
else if (o.eventType & j)
|
|
3799
3808
|
this.reset(), this._timer = v(function() {
|
|
3800
|
-
this.state =
|
|
3809
|
+
this.state = fe, this.tryEmit();
|
|
3801
3810
|
}, i.time, this);
|
|
3802
|
-
else if (o.eventType &
|
|
3803
|
-
return
|
|
3804
|
-
return
|
|
3811
|
+
else if (o.eventType & k)
|
|
3812
|
+
return fe;
|
|
3813
|
+
return ie;
|
|
3805
3814
|
},
|
|
3806
3815
|
reset: function() {
|
|
3807
3816
|
clearTimeout(this._timer);
|
|
3808
3817
|
},
|
|
3809
3818
|
emit: function(o) {
|
|
3810
|
-
this.state ===
|
|
3819
|
+
this.state === fe && (o && o.eventType & k ? this.manager.emit(this.options.event + "up", o) : (this._input.timeStamp = g(), this.manager.emit(this.options.event, this._input)));
|
|
3811
3820
|
}
|
|
3812
3821
|
});
|
|
3813
|
-
function
|
|
3814
|
-
|
|
3822
|
+
function Bt() {
|
|
3823
|
+
se.apply(this, arguments);
|
|
3815
3824
|
}
|
|
3816
|
-
|
|
3825
|
+
x(Bt, se, {
|
|
3817
3826
|
/**
|
|
3818
3827
|
* @namespace
|
|
3819
3828
|
* @memberof RotateRecognizer
|
|
@@ -3824,16 +3833,16 @@ function xi() {
|
|
|
3824
3833
|
pointers: 2
|
|
3825
3834
|
},
|
|
3826
3835
|
getTouchAction: function() {
|
|
3827
|
-
return [
|
|
3836
|
+
return [Pe];
|
|
3828
3837
|
},
|
|
3829
3838
|
attrTest: function(o) {
|
|
3830
|
-
return this._super.attrTest.call(this, o) && (Math.abs(o.rotation) > this.options.threshold || this.state &
|
|
3839
|
+
return this._super.attrTest.call(this, o) && (Math.abs(o.rotation) > this.options.threshold || this.state & ee);
|
|
3831
3840
|
}
|
|
3832
3841
|
});
|
|
3833
|
-
function
|
|
3834
|
-
|
|
3842
|
+
function $t() {
|
|
3843
|
+
se.apply(this, arguments);
|
|
3835
3844
|
}
|
|
3836
|
-
|
|
3845
|
+
x($t, se, {
|
|
3837
3846
|
/**
|
|
3838
3847
|
* @namespace
|
|
3839
3848
|
* @memberof SwipeRecognizer
|
|
@@ -3842,25 +3851,25 @@ function xi() {
|
|
|
3842
3851
|
event: "swipe",
|
|
3843
3852
|
threshold: 10,
|
|
3844
3853
|
velocity: 0.3,
|
|
3845
|
-
direction:
|
|
3854
|
+
direction: re | Ie,
|
|
3846
3855
|
pointers: 1
|
|
3847
3856
|
},
|
|
3848
3857
|
getTouchAction: function() {
|
|
3849
|
-
return
|
|
3858
|
+
return ht.prototype.getTouchAction.call(this);
|
|
3850
3859
|
},
|
|
3851
3860
|
attrTest: function(o) {
|
|
3852
3861
|
var i = this.options.direction, l;
|
|
3853
|
-
return i & (
|
|
3862
|
+
return i & (re | Ie) ? l = o.overallVelocity : i & re ? l = o.overallVelocityX : i & Ie && (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 & k;
|
|
3854
3863
|
},
|
|
3855
3864
|
emit: function(o) {
|
|
3856
3865
|
var i = bs(o.offsetDirection);
|
|
3857
3866
|
i && this.manager.emit(this.options.event + i, o), this.manager.emit(this.options.event, o);
|
|
3858
3867
|
}
|
|
3859
3868
|
});
|
|
3860
|
-
function
|
|
3861
|
-
|
|
3869
|
+
function pt() {
|
|
3870
|
+
ge.apply(this, arguments), this.pTime = !1, this.pCenter = !1, this._timer = null, this._input = null, this.count = 0;
|
|
3862
3871
|
}
|
|
3863
|
-
|
|
3872
|
+
x(pt, ge, {
|
|
3864
3873
|
/**
|
|
3865
3874
|
* @namespace
|
|
3866
3875
|
* @memberof PinchRecognizer
|
|
@@ -3879,41 +3888,41 @@ function xi() {
|
|
|
3879
3888
|
// a multi-tap can be a bit off the initial position
|
|
3880
3889
|
},
|
|
3881
3890
|
getTouchAction: function() {
|
|
3882
|
-
return [
|
|
3891
|
+
return [Lt];
|
|
3883
3892
|
},
|
|
3884
3893
|
process: function(o) {
|
|
3885
3894
|
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 &
|
|
3895
|
+
if (this.reset(), o.eventType & j && this.count === 0)
|
|
3887
3896
|
return this.failTimeout();
|
|
3888
3897
|
if (p && m && l) {
|
|
3889
|
-
if (o.eventType !=
|
|
3898
|
+
if (o.eventType != k)
|
|
3890
3899
|
return this.failTimeout();
|
|
3891
|
-
var E = this.pTime ? o.timeStamp - this.pTime < i.interval : !0,
|
|
3892
|
-
this.pTime = o.timeStamp, this.pCenter = o.center, !
|
|
3893
|
-
var
|
|
3894
|
-
if (
|
|
3900
|
+
var E = this.pTime ? o.timeStamp - this.pTime < i.interval : !0, D = !this.pCenter || it(this.pCenter, o.center) < i.posThreshold;
|
|
3901
|
+
this.pTime = o.timeStamp, this.pCenter = o.center, !D || !E ? this.count = 1 : this.count += 1, this._input = o;
|
|
3902
|
+
var U = this.count % i.taps;
|
|
3903
|
+
if (U === 0)
|
|
3895
3904
|
return this.hasRequireFailures() ? (this._timer = v(function() {
|
|
3896
|
-
this.state =
|
|
3897
|
-
}, i.interval, this),
|
|
3905
|
+
this.state = fe, this.tryEmit();
|
|
3906
|
+
}, i.interval, this), ee) : fe;
|
|
3898
3907
|
}
|
|
3899
|
-
return
|
|
3908
|
+
return ie;
|
|
3900
3909
|
},
|
|
3901
3910
|
failTimeout: function() {
|
|
3902
3911
|
return this._timer = v(function() {
|
|
3903
|
-
this.state =
|
|
3904
|
-
}, this.options.interval, this),
|
|
3912
|
+
this.state = ie;
|
|
3913
|
+
}, this.options.interval, this), ie;
|
|
3905
3914
|
},
|
|
3906
3915
|
reset: function() {
|
|
3907
3916
|
clearTimeout(this._timer);
|
|
3908
3917
|
},
|
|
3909
3918
|
emit: function() {
|
|
3910
|
-
this.state ==
|
|
3919
|
+
this.state == fe && (this._input.tapCount = this.count, this.manager.emit(this.options.event, this._input));
|
|
3911
3920
|
}
|
|
3912
3921
|
});
|
|
3913
|
-
function
|
|
3914
|
-
return i = i || {}, i.recognizers =
|
|
3922
|
+
function Ce(o, i) {
|
|
3923
|
+
return i = i || {}, i.recognizers = M(i.recognizers, Ce.defaults.preset), new zt(o, i);
|
|
3915
3924
|
}
|
|
3916
|
-
|
|
3925
|
+
Ce.VERSION = "2.0.7", Ce.defaults = {
|
|
3917
3926
|
/**
|
|
3918
3927
|
* set if DOM events are being triggered.
|
|
3919
3928
|
* But this is slower and unused by simple implementations, so disabled by default.
|
|
@@ -3954,13 +3963,13 @@ function xi() {
|
|
|
3954
3963
|
*/
|
|
3955
3964
|
preset: [
|
|
3956
3965
|
// RecognizerClass, options, [recognizeWith, ...], [requireFailure, ...]
|
|
3957
|
-
[
|
|
3958
|
-
[
|
|
3959
|
-
[
|
|
3960
|
-
[
|
|
3961
|
-
[
|
|
3962
|
-
[
|
|
3963
|
-
[
|
|
3966
|
+
[Bt, { enable: !1 }],
|
|
3967
|
+
[Ut, { enable: !1 }, ["rotate"]],
|
|
3968
|
+
[$t, { direction: re }],
|
|
3969
|
+
[ht, { direction: re }, ["swipe"]],
|
|
3970
|
+
[pt],
|
|
3971
|
+
[pt, { event: "doubletap", taps: 2 }, ["tap"]],
|
|
3972
|
+
[Rt]
|
|
3964
3973
|
],
|
|
3965
3974
|
/**
|
|
3966
3975
|
* Some CSS properties can be used to improve the working of Hammer.
|
|
@@ -4010,20 +4019,20 @@ function xi() {
|
|
|
4010
4019
|
}
|
|
4011
4020
|
};
|
|
4012
4021
|
var So = 1, Is = 2;
|
|
4013
|
-
function
|
|
4014
|
-
this.options =
|
|
4022
|
+
function zt(o, i) {
|
|
4023
|
+
this.options = I({}, Ce.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 Vt(this, this.options.touchAction), Ps(this, !0), C(this.options.recognizers, function(l) {
|
|
4015
4024
|
var p = this.add(new l[0](l[1]));
|
|
4016
4025
|
l[2] && p.recognizeWith(l[2]), l[3] && p.requireFailure(l[3]);
|
|
4017
4026
|
}, this);
|
|
4018
4027
|
}
|
|
4019
|
-
|
|
4028
|
+
zt.prototype = {
|
|
4020
4029
|
/**
|
|
4021
4030
|
* set options
|
|
4022
4031
|
* @param {Object} options
|
|
4023
4032
|
* @returns {Manager}
|
|
4024
4033
|
*/
|
|
4025
4034
|
set: function(o) {
|
|
4026
|
-
return
|
|
4035
|
+
return I(this.options, o), o.touchAction && this.touchAction.update(), o.inputTarget && (this.input.destroy(), this.input.target = o.inputTarget, this.input.init()), this;
|
|
4027
4036
|
},
|
|
4028
4037
|
/**
|
|
4029
4038
|
* stop recognizing for this session.
|
|
@@ -4045,11 +4054,11 @@ function xi() {
|
|
|
4045
4054
|
if (!i.stopped) {
|
|
4046
4055
|
this.touchAction.preventDefaults(o);
|
|
4047
4056
|
var l, p = this.recognizers, m = i.curRecognizer;
|
|
4048
|
-
(!m || m && m.state &
|
|
4057
|
+
(!m || m && m.state & fe) && (m = i.curRecognizer = null);
|
|
4049
4058
|
for (var E = 0; E < p.length; )
|
|
4050
4059
|
l = p[E], i.stopped !== Is && // 1
|
|
4051
4060
|
(!m || l == m || // 2
|
|
4052
|
-
l.canRecognizeWith(m)) ? l.recognize(o) : l.reset(), !m && l.state & (
|
|
4061
|
+
l.canRecognizeWith(m)) ? l.recognize(o) : l.reset(), !m && l.state & (ee | Me | Te) && (m = i.curRecognizer = l), E++;
|
|
4053
4062
|
}
|
|
4054
4063
|
},
|
|
4055
4064
|
/**
|
|
@@ -4058,7 +4067,7 @@ function xi() {
|
|
|
4058
4067
|
* @returns {Recognizer|Null}
|
|
4059
4068
|
*/
|
|
4060
4069
|
get: function(o) {
|
|
4061
|
-
if (o instanceof
|
|
4070
|
+
if (o instanceof ge)
|
|
4062
4071
|
return o;
|
|
4063
4072
|
for (var i = this.recognizers, l = 0; l < i.length; l++)
|
|
4064
4073
|
if (i[l].options.event == o)
|
|
@@ -4100,7 +4109,7 @@ function xi() {
|
|
|
4100
4109
|
on: function(o, i) {
|
|
4101
4110
|
if (o !== r && i !== r) {
|
|
4102
4111
|
var l = this.handlers;
|
|
4103
|
-
return
|
|
4112
|
+
return C(tt(o), function(p) {
|
|
4104
4113
|
l[p] = l[p] || [], l[p].push(i);
|
|
4105
4114
|
}), this;
|
|
4106
4115
|
}
|
|
@@ -4114,7 +4123,7 @@ function xi() {
|
|
|
4114
4123
|
off: function(o, i) {
|
|
4115
4124
|
if (o !== r) {
|
|
4116
4125
|
var l = this.handlers;
|
|
4117
|
-
return
|
|
4126
|
+
return C(tt(o), function(p) {
|
|
4118
4127
|
i ? l[p] && l[p].splice(we(l[p], i), 1) : delete l[p];
|
|
4119
4128
|
}), this;
|
|
4120
4129
|
}
|
|
@@ -4147,8 +4156,8 @@ function xi() {
|
|
|
4147
4156
|
var l = o.element;
|
|
4148
4157
|
if (l.style) {
|
|
4149
4158
|
var p;
|
|
4150
|
-
|
|
4151
|
-
p =
|
|
4159
|
+
C(o.options.cssProps, function(m, E) {
|
|
4160
|
+
p = nt(l.style, E), i ? (o.oldCssProps[p] = l.style[p], l.style[p] = m) : l.style[p] = o.oldCssProps[p] || "";
|
|
4152
4161
|
}), i || (o.oldCssProps = {});
|
|
4153
4162
|
}
|
|
4154
4163
|
}
|
|
@@ -4156,81 +4165,81 @@ function xi() {
|
|
|
4156
4165
|
var l = s.createEvent("Event");
|
|
4157
4166
|
l.initEvent(o, !0, !0), l.gesture = i, i.target.dispatchEvent(l);
|
|
4158
4167
|
}
|
|
4159
|
-
|
|
4160
|
-
INPUT_START:
|
|
4161
|
-
INPUT_MOVE:
|
|
4162
|
-
INPUT_END:
|
|
4163
|
-
INPUT_CANCEL:
|
|
4164
|
-
STATE_POSSIBLE:
|
|
4165
|
-
STATE_BEGAN:
|
|
4166
|
-
STATE_CHANGED:
|
|
4167
|
-
STATE_ENDED:
|
|
4168
|
-
STATE_RECOGNIZED:
|
|
4168
|
+
I(Ce, {
|
|
4169
|
+
INPUT_START: j,
|
|
4170
|
+
INPUT_MOVE: be,
|
|
4171
|
+
INPUT_END: k,
|
|
4172
|
+
INPUT_CANCEL: X,
|
|
4173
|
+
STATE_POSSIBLE: ut,
|
|
4174
|
+
STATE_BEGAN: ee,
|
|
4175
|
+
STATE_CHANGED: Me,
|
|
4176
|
+
STATE_ENDED: Te,
|
|
4177
|
+
STATE_RECOGNIZED: fe,
|
|
4169
4178
|
STATE_CANCELLED: qe,
|
|
4170
|
-
STATE_FAILED:
|
|
4171
|
-
DIRECTION_NONE:
|
|
4179
|
+
STATE_FAILED: ie,
|
|
4180
|
+
DIRECTION_NONE: ot,
|
|
4172
4181
|
DIRECTION_LEFT: Re,
|
|
4173
4182
|
DIRECTION_RIGHT: Be,
|
|
4174
4183
|
DIRECTION_UP: $e,
|
|
4175
4184
|
DIRECTION_DOWN: ze,
|
|
4176
|
-
DIRECTION_HORIZONTAL:
|
|
4177
|
-
DIRECTION_VERTICAL:
|
|
4185
|
+
DIRECTION_HORIZONTAL: re,
|
|
4186
|
+
DIRECTION_VERTICAL: Ie,
|
|
4178
4187
|
DIRECTION_ALL: ls,
|
|
4179
|
-
Manager:
|
|
4180
|
-
Input:
|
|
4181
|
-
TouchAction:
|
|
4182
|
-
TouchInput:
|
|
4183
|
-
MouseInput:
|
|
4184
|
-
PointerEventInput:
|
|
4185
|
-
TouchMouseInput:
|
|
4188
|
+
Manager: zt,
|
|
4189
|
+
Input: J,
|
|
4190
|
+
TouchAction: Vt,
|
|
4191
|
+
TouchInput: lt,
|
|
4192
|
+
MouseInput: at,
|
|
4193
|
+
PointerEventInput: Ot,
|
|
4194
|
+
TouchMouseInput: kt,
|
|
4186
4195
|
SingleTouchInput: ms,
|
|
4187
|
-
Recognizer:
|
|
4188
|
-
AttrRecognizer:
|
|
4189
|
-
Tap:
|
|
4190
|
-
Pan:
|
|
4191
|
-
Swipe:
|
|
4192
|
-
Pinch:
|
|
4193
|
-
Rotate:
|
|
4194
|
-
Press:
|
|
4195
|
-
on:
|
|
4196
|
-
off:
|
|
4197
|
-
each:
|
|
4198
|
-
merge:
|
|
4199
|
-
extend:
|
|
4200
|
-
assign:
|
|
4201
|
-
inherit:
|
|
4202
|
-
bindFn:
|
|
4203
|
-
prefixed:
|
|
4196
|
+
Recognizer: ge,
|
|
4197
|
+
AttrRecognizer: se,
|
|
4198
|
+
Tap: pt,
|
|
4199
|
+
Pan: ht,
|
|
4200
|
+
Swipe: $t,
|
|
4201
|
+
Pinch: Ut,
|
|
4202
|
+
Rotate: Bt,
|
|
4203
|
+
Press: Rt,
|
|
4204
|
+
on: O,
|
|
4205
|
+
off: Y,
|
|
4206
|
+
each: C,
|
|
4207
|
+
merge: b,
|
|
4208
|
+
extend: P,
|
|
4209
|
+
assign: I,
|
|
4210
|
+
inherit: x,
|
|
4211
|
+
bindFn: B,
|
|
4212
|
+
prefixed: nt
|
|
4204
4213
|
});
|
|
4205
4214
|
var Co = typeof t < "u" ? t : typeof self < "u" ? self : {};
|
|
4206
|
-
Co.Hammer =
|
|
4215
|
+
Co.Hammer = Ce, e.exports ? e.exports = Ce : t[n] = Ce;
|
|
4207
4216
|
})(window, document, "Hammer");
|
|
4208
4217
|
})(Ft)), Ft.exports;
|
|
4209
4218
|
}
|
|
4210
|
-
var wt =
|
|
4211
|
-
const
|
|
4219
|
+
var wt = Ai();
|
|
4220
|
+
const le = /* @__PURE__ */ nr({
|
|
4212
4221
|
__proto__: null
|
|
4213
|
-
}, [wt]), Bn = 1, $n = 2, Kt = 4,
|
|
4222
|
+
}, [wt]), Bn = 1, $n = 2, Kt = 4, Ni = {
|
|
4214
4223
|
mousedown: Bn,
|
|
4215
4224
|
mousemove: $n,
|
|
4216
4225
|
mouseup: Kt
|
|
4217
4226
|
};
|
|
4218
|
-
function
|
|
4227
|
+
function Oi(e, t) {
|
|
4219
4228
|
for (let s = 0; s < e.length; s++)
|
|
4220
4229
|
if (t(e[s]))
|
|
4221
4230
|
return !0;
|
|
4222
4231
|
return !1;
|
|
4223
4232
|
}
|
|
4224
|
-
function
|
|
4233
|
+
function ki(e) {
|
|
4225
4234
|
const t = e.prototype.handler;
|
|
4226
4235
|
e.prototype.handler = function(n) {
|
|
4227
4236
|
const r = this.store;
|
|
4228
|
-
n.button > 0 && n.type === "pointerdown" && (
|
|
4237
|
+
n.button > 0 && n.type === "pointerdown" && (Oi(r, (a) => a.pointerId === n.pointerId) || r.push(n)), t.call(this, n);
|
|
4229
4238
|
};
|
|
4230
4239
|
}
|
|
4231
|
-
function
|
|
4240
|
+
function Li(e) {
|
|
4232
4241
|
e.prototype.handler = function(s) {
|
|
4233
|
-
let n =
|
|
4242
|
+
let n = Ni[s.type];
|
|
4234
4243
|
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
4244
|
pointers: [s],
|
|
4236
4245
|
changedPointers: [s],
|
|
@@ -4239,25 +4248,25 @@ function Mi(e) {
|
|
|
4239
4248
|
}));
|
|
4240
4249
|
};
|
|
4241
4250
|
}
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
const
|
|
4245
|
-
class
|
|
4251
|
+
ki(wt.PointerEventInput);
|
|
4252
|
+
Li(wt.MouseInput);
|
|
4253
|
+
const Vi = wt.Manager;
|
|
4254
|
+
class Mt {
|
|
4246
4255
|
constructor(t, s, n) {
|
|
4247
4256
|
this.element = t, this.callback = s, this.options = { enable: !0, ...n };
|
|
4248
4257
|
}
|
|
4249
4258
|
}
|
|
4250
|
-
const
|
|
4251
|
-
[
|
|
4252
|
-
[
|
|
4253
|
-
[
|
|
4254
|
-
[
|
|
4255
|
-
[
|
|
4256
|
-
[
|
|
4257
|
-
[
|
|
4259
|
+
const Ui = le ? [
|
|
4260
|
+
[le.Pan, { event: "tripan", pointers: 3, threshold: 0, enable: !1 }],
|
|
4261
|
+
[le.Rotate, { enable: !1 }],
|
|
4262
|
+
[le.Pinch, { enable: !1 }],
|
|
4263
|
+
[le.Swipe, { enable: !1 }],
|
|
4264
|
+
[le.Pan, { threshold: 0, enable: !1 }],
|
|
4265
|
+
[le.Press, { enable: !1 }],
|
|
4266
|
+
[le.Tap, { event: "doubletap", taps: 2, enable: !1 }],
|
|
4258
4267
|
// TODO - rename to 'tap' and 'singletap' in the next major release
|
|
4259
|
-
[
|
|
4260
|
-
[
|
|
4268
|
+
[le.Tap, { event: "anytap", enable: !1 }],
|
|
4269
|
+
[le.Tap, { enable: !1 }]
|
|
4261
4270
|
] : null, js = {
|
|
4262
4271
|
tripan: ["rotate", "pinch", "pan"],
|
|
4263
4272
|
rotate: ["pinch"],
|
|
@@ -4265,9 +4274,9 @@ const Oi = oe ? [
|
|
|
4265
4274
|
pan: ["press", "doubletap", "anytap", "tap"],
|
|
4266
4275
|
doubletap: ["anytap"],
|
|
4267
4276
|
anytap: ["tap"]
|
|
4268
|
-
},
|
|
4277
|
+
}, Ri = {
|
|
4269
4278
|
doubletap: ["tap"]
|
|
4270
|
-
},
|
|
4279
|
+
}, Bi = {
|
|
4271
4280
|
pointerdown: "pointerdown",
|
|
4272
4281
|
pointermove: "pointermove",
|
|
4273
4282
|
pointerup: "pointerup",
|
|
@@ -4286,7 +4295,7 @@ const Oi = oe ? [
|
|
|
4286
4295
|
// IE
|
|
4287
4296
|
"mousewheel"
|
|
4288
4297
|
]
|
|
4289
|
-
},
|
|
4298
|
+
}, $i = {
|
|
4290
4299
|
tap: "tap",
|
|
4291
4300
|
anytap: "anytap",
|
|
4292
4301
|
doubletap: "doubletap",
|
|
@@ -4336,7 +4345,7 @@ const Oi = oe ? [
|
|
|
4336
4345
|
mouseover: "pointerover",
|
|
4337
4346
|
mouseout: "pointerout",
|
|
4338
4347
|
mouseleave: "pointerleave"
|
|
4339
|
-
},
|
|
4348
|
+
}, zi = typeof navigator < "u" && navigator.userAgent ? navigator.userAgent.toLowerCase() : "", Oe = typeof window < "u" ? window : global;
|
|
4340
4349
|
let Qt = !1;
|
|
4341
4350
|
try {
|
|
4342
4351
|
const e = {
|
|
@@ -4346,18 +4355,18 @@ try {
|
|
|
4346
4355
|
return Qt = !0, !0;
|
|
4347
4356
|
}
|
|
4348
4357
|
};
|
|
4349
|
-
|
|
4358
|
+
Oe.addEventListener("test", null, e), Oe.removeEventListener("test", null);
|
|
4350
4359
|
} catch {
|
|
4351
4360
|
Qt = !1;
|
|
4352
4361
|
}
|
|
4353
|
-
const
|
|
4354
|
-
class
|
|
4362
|
+
const Hi = zi.indexOf("firefox") !== -1, { WHEEL_EVENTS: Fi } = os, Ys = "wheel", Ws = 4.000244140625, qi = 40, ji = 0.25;
|
|
4363
|
+
class Gi extends Mt {
|
|
4355
4364
|
constructor(t, s, n) {
|
|
4356
4365
|
super(t, s, n), this.handleEvent = (r) => {
|
|
4357
4366
|
if (!this.options.enable)
|
|
4358
4367
|
return;
|
|
4359
4368
|
let a = r.deltaY;
|
|
4360
|
-
|
|
4369
|
+
Oe.WheelEvent && (Hi && r.deltaMode === Oe.WheelEvent.DOM_DELTA_PIXEL && (a /= Oe.devicePixelRatio), r.deltaMode === Oe.WheelEvent.DOM_DELTA_LINE && (a *= qi)), a !== 0 && a % Ws === 0 && (a = Math.floor(a / Ws)), r.shiftKey && a && (a = a * ji), this.callback({
|
|
4361
4370
|
type: Ys,
|
|
4362
4371
|
center: {
|
|
4363
4372
|
x: r.clientX,
|
|
@@ -4368,7 +4377,7 @@ class Hi extends Dt {
|
|
|
4368
4377
|
pointerType: "mouse",
|
|
4369
4378
|
target: r.target
|
|
4370
4379
|
});
|
|
4371
|
-
}, this.events = (this.options.events || []).concat(
|
|
4380
|
+
}, this.events = (this.options.events || []).concat(Fi), this.events.forEach((r) => t.addEventListener(r, this.handleEvent, Qt ? { passive: !1 } : !1));
|
|
4372
4381
|
}
|
|
4373
4382
|
destroy() {
|
|
4374
4383
|
this.events.forEach((t) => this.element.removeEventListener(t, this.handleEvent));
|
|
@@ -4381,14 +4390,14 @@ class Hi extends Dt {
|
|
|
4381
4390
|
t === Ys && (this.options.enable = s);
|
|
4382
4391
|
}
|
|
4383
4392
|
}
|
|
4384
|
-
const { MOUSE_EVENTS:
|
|
4385
|
-
class
|
|
4393
|
+
const { MOUSE_EVENTS: Yi } = os, Xs = "pointermove", Zs = "pointerover", Ks = "pointerout", Qs = "pointerenter", Js = "pointerleave";
|
|
4394
|
+
class Wi extends Mt {
|
|
4386
4395
|
constructor(t, s, n) {
|
|
4387
4396
|
super(t, s, n), this.handleEvent = (a) => {
|
|
4388
4397
|
this.handleOverEvent(a), this.handleOutEvent(a), this.handleEnterEvent(a), this.handleLeaveEvent(a), this.handleMoveEvent(a);
|
|
4389
4398
|
}, this.pressed = !1;
|
|
4390
4399
|
const { enable: r } = this.options;
|
|
4391
|
-
this.enableMoveEvent = r, this.enableLeaveEvent = r, this.enableEnterEvent = r, this.enableOutEvent = r, this.enableOverEvent = r, this.events = (this.options.events || []).concat(
|
|
4400
|
+
this.enableMoveEvent = r, this.enableLeaveEvent = r, this.enableEnterEvent = r, this.enableOutEvent = r, this.enableOverEvent = r, this.events = (this.options.events || []).concat(Yi), this.events.forEach((a) => t.addEventListener(a, this.handleEvent));
|
|
4392
4401
|
}
|
|
4393
4402
|
destroy() {
|
|
4394
4403
|
this.events.forEach((t) => this.element.removeEventListener(t, this.handleEvent));
|
|
@@ -4439,8 +4448,8 @@ class qi extends Dt {
|
|
|
4439
4448
|
});
|
|
4440
4449
|
}
|
|
4441
4450
|
}
|
|
4442
|
-
const { KEY_EVENTS:
|
|
4443
|
-
class
|
|
4451
|
+
const { KEY_EVENTS: Xi } = os, en = "keydown", tn = "keyup";
|
|
4452
|
+
class Zi extends Mt {
|
|
4444
4453
|
constructor(t, s, n) {
|
|
4445
4454
|
super(t, s, n), this.handleEvent = (r) => {
|
|
4446
4455
|
const a = r.target || r.srcElement;
|
|
@@ -4455,7 +4464,7 @@ class Gi extends Dt {
|
|
|
4455
4464
|
key: r.key,
|
|
4456
4465
|
target: r.target
|
|
4457
4466
|
}));
|
|
4458
|
-
}, this.enableDownEvent = this.options.enable, this.enableUpEvent = this.options.enable, this.events = (this.options.events || []).concat(
|
|
4467
|
+
}, this.enableDownEvent = this.options.enable, this.enableUpEvent = this.options.enable, this.events = (this.options.events || []).concat(Xi), t.tabIndex = this.options.tabIndex || 0, t.style.outline = "none", this.events.forEach((r) => t.addEventListener(r, this.handleEvent));
|
|
4459
4468
|
}
|
|
4460
4469
|
destroy() {
|
|
4461
4470
|
this.events.forEach((t) => this.element.removeEventListener(t, this.handleEvent));
|
|
@@ -4469,7 +4478,7 @@ class Gi extends Dt {
|
|
|
4469
4478
|
}
|
|
4470
4479
|
}
|
|
4471
4480
|
const sn = "contextmenu";
|
|
4472
|
-
class
|
|
4481
|
+
class Ki extends Mt {
|
|
4473
4482
|
constructor(t, s, n) {
|
|
4474
4483
|
super(t, s, n), this.handleEvent = (r) => {
|
|
4475
4484
|
this.options.enable && this.callback({
|
|
@@ -4495,23 +4504,23 @@ class Yi extends Dt {
|
|
|
4495
4504
|
t === sn && (this.options.enable = s);
|
|
4496
4505
|
}
|
|
4497
4506
|
}
|
|
4498
|
-
const nn = 1, Jt = 2, on = 4,
|
|
4507
|
+
const nn = 1, Jt = 2, on = 4, Qi = {
|
|
4499
4508
|
pointerdown: nn,
|
|
4500
4509
|
pointermove: Jt,
|
|
4501
4510
|
pointerup: on,
|
|
4502
4511
|
mousedown: nn,
|
|
4503
4512
|
mousemove: Jt,
|
|
4504
4513
|
mouseup: on
|
|
4505
|
-
},
|
|
4506
|
-
function
|
|
4507
|
-
const t =
|
|
4514
|
+
}, Ji = 0, ea = 1, ta = 2, sa = 1, na = 2, oa = 4;
|
|
4515
|
+
function ra(e) {
|
|
4516
|
+
const t = Qi[e.srcEvent.type];
|
|
4508
4517
|
if (!t)
|
|
4509
4518
|
return null;
|
|
4510
4519
|
const { buttons: s, button: n } = e.srcEvent;
|
|
4511
4520
|
let r = !1, a = !1, c = !1;
|
|
4512
|
-
return t === Jt ? (r = !!(s &
|
|
4521
|
+
return t === Jt ? (r = !!(s & sa), a = !!(s & oa), c = !!(s & na)) : (r = n === Ji, a = n === ea, c = n === ta), { leftButton: r, middleButton: a, rightButton: c };
|
|
4513
4522
|
}
|
|
4514
|
-
function
|
|
4523
|
+
function ia(e, t) {
|
|
4515
4524
|
const s = e.center;
|
|
4516
4525
|
if (!s)
|
|
4517
4526
|
return null;
|
|
@@ -4525,7 +4534,7 @@ const qt = {
|
|
|
4525
4534
|
srcElement: "root",
|
|
4526
4535
|
priority: 0
|
|
4527
4536
|
};
|
|
4528
|
-
class
|
|
4537
|
+
class aa {
|
|
4529
4538
|
constructor(t) {
|
|
4530
4539
|
this.handleEvent = (s) => {
|
|
4531
4540
|
if (this.isEmpty())
|
|
@@ -4610,8 +4619,8 @@ class na {
|
|
|
4610
4619
|
const s = this.eventManager.getElement();
|
|
4611
4620
|
return {
|
|
4612
4621
|
...t,
|
|
4613
|
-
...
|
|
4614
|
-
...
|
|
4622
|
+
...ra(t),
|
|
4623
|
+
...ia(t, s),
|
|
4615
4624
|
preventDefault: () => {
|
|
4616
4625
|
t.srcEvent.preventDefault();
|
|
4617
4626
|
},
|
|
@@ -4622,27 +4631,27 @@ class na {
|
|
|
4622
4631
|
};
|
|
4623
4632
|
}
|
|
4624
4633
|
}
|
|
4625
|
-
const
|
|
4634
|
+
const la = {
|
|
4626
4635
|
// event handlers
|
|
4627
4636
|
events: null,
|
|
4628
4637
|
// custom recognizers
|
|
4629
4638
|
recognizers: null,
|
|
4630
4639
|
recognizerOptions: {},
|
|
4631
4640
|
// Manager class
|
|
4632
|
-
Manager:
|
|
4641
|
+
Manager: Vi,
|
|
4633
4642
|
// allow browser default touch action
|
|
4634
4643
|
// https://github.com/uber/react-map-gl/issues/506
|
|
4635
4644
|
touchAction: "none",
|
|
4636
4645
|
tabIndex: 0
|
|
4637
4646
|
};
|
|
4638
|
-
class
|
|
4647
|
+
class ca {
|
|
4639
4648
|
constructor(t = null, s) {
|
|
4640
4649
|
this._onBasicInput = (r) => {
|
|
4641
|
-
const { srcEvent: a } = r, c =
|
|
4650
|
+
const { srcEvent: a } = r, c = Bi[a.type];
|
|
4642
4651
|
c && this.manager.emit(c, r);
|
|
4643
4652
|
}, this._onOtherEvent = (r) => {
|
|
4644
4653
|
this.manager.emit(r.type, r);
|
|
4645
|
-
}, this.options = { ...
|
|
4654
|
+
}, this.options = { ...la, ...s }, this.events = /* @__PURE__ */ new Map(), this.setElement(t);
|
|
4646
4655
|
const { events: n } = this.options;
|
|
4647
4656
|
n && this.on(n);
|
|
4648
4657
|
}
|
|
@@ -4655,7 +4664,7 @@ class ra {
|
|
|
4655
4664
|
const { options: s } = this, n = s.Manager;
|
|
4656
4665
|
this.manager = new n(t, {
|
|
4657
4666
|
touchAction: s.touchAction,
|
|
4658
|
-
recognizers: s.recognizers ||
|
|
4667
|
+
recognizers: s.recognizers || Ui
|
|
4659
4668
|
}).on("hammer.input", this._onBasicInput), s.recognizers || Object.keys(js).forEach((r) => {
|
|
4660
4669
|
const a = this.manager.get(r);
|
|
4661
4670
|
a && js[r].forEach((c) => {
|
|
@@ -4669,14 +4678,14 @@ class ra {
|
|
|
4669
4678
|
delete c.enable, a.set(c);
|
|
4670
4679
|
}
|
|
4671
4680
|
}
|
|
4672
|
-
this.wheelInput = new
|
|
4681
|
+
this.wheelInput = new Gi(t, this._onOtherEvent, {
|
|
4673
4682
|
enable: !1
|
|
4674
|
-
}), this.moveInput = new
|
|
4683
|
+
}), this.moveInput = new Wi(t, this._onOtherEvent, {
|
|
4675
4684
|
enable: !1
|
|
4676
|
-
}), this.keyInput = new
|
|
4685
|
+
}), this.keyInput = new Zi(t, this._onOtherEvent, {
|
|
4677
4686
|
enable: !1,
|
|
4678
4687
|
tabIndex: s.tabIndex
|
|
4679
|
-
}), this.contextmenuInput = new
|
|
4688
|
+
}), this.contextmenuInput = new Ki(t, this._onOtherEvent, {
|
|
4680
4689
|
enable: !1
|
|
4681
4690
|
});
|
|
4682
4691
|
for (const [r, a] of this.events)
|
|
@@ -4709,7 +4718,7 @@ class ra {
|
|
|
4709
4718
|
const r = n.get(t);
|
|
4710
4719
|
if (r && r.options.enable !== s) {
|
|
4711
4720
|
r.set({ enable: s });
|
|
4712
|
-
const a =
|
|
4721
|
+
const a = Ri[t];
|
|
4713
4722
|
a && !this.options.recognizers && a.forEach((c) => {
|
|
4714
4723
|
const d = n.get(c);
|
|
4715
4724
|
s ? (d.requireFailure(t), r.dropRequireFailure(c)) : d.dropRequireFailure(t);
|
|
@@ -4729,7 +4738,7 @@ class ra {
|
|
|
4729
4738
|
}
|
|
4730
4739
|
const { manager: c, events: d } = this, u = Gs[t] || t;
|
|
4731
4740
|
let f = d.get(u);
|
|
4732
|
-
f || (f = new
|
|
4741
|
+
f || (f = new aa(this), d.set(u, f), f.recognizerName = $i[u] || u, c && c.on(u, f.handleEvent)), f.add(t, s, n, r, a), f.isEmpty() || this._toggleRecognizer(f.recognizerName, !0);
|
|
4733
4742
|
}
|
|
4734
4743
|
/**
|
|
4735
4744
|
* Process the event deregistration for a single event + handler.
|
|
@@ -4753,51 +4762,51 @@ class ra {
|
|
|
4753
4762
|
}
|
|
4754
4763
|
}
|
|
4755
4764
|
}
|
|
4756
|
-
const
|
|
4765
|
+
const ua = {
|
|
4757
4766
|
__name: "PgInteractionDetector",
|
|
4758
4767
|
setup(e) {
|
|
4759
|
-
const t =
|
|
4768
|
+
const t = ue(), s = _e(), n = Z(null), r = Z([]), a = Z("ended"), c = Z(0);
|
|
4760
4769
|
let d;
|
|
4761
|
-
const { playing: u } = S(t), f = () => s.previous(), g = () => s.next(), v = () => s.close(), T = () => u.value ? s.pause() : s.play(),
|
|
4762
|
-
const
|
|
4763
|
-
if (
|
|
4770
|
+
const { playing: u } = S(t), f = () => s.previous(), g = () => s.next(), v = () => s.close(), T = () => u.value ? s.pause() : s.play(), C = (b) => b.reduce((x, B) => x + B, 0) / b.length, w = (b) => Math.abs(C(b)), I = (b) => {
|
|
4771
|
+
const x = b.srcEvent.keyCode;
|
|
4772
|
+
if (x === 27 || (b.ctrlKey || b.altKey) && x === 87) {
|
|
4764
4773
|
v();
|
|
4765
4774
|
return;
|
|
4766
4775
|
}
|
|
4767
|
-
if (
|
|
4776
|
+
if (x === 32) {
|
|
4768
4777
|
T();
|
|
4769
4778
|
return;
|
|
4770
4779
|
}
|
|
4771
|
-
if (
|
|
4780
|
+
if (x === 13 || x === 9 || x === 39) {
|
|
4772
4781
|
g();
|
|
4773
4782
|
return;
|
|
4774
4783
|
}
|
|
4775
|
-
if (
|
|
4784
|
+
if (x === 37) {
|
|
4776
4785
|
f();
|
|
4777
4786
|
return;
|
|
4778
4787
|
}
|
|
4779
|
-
},
|
|
4780
|
-
if (!(
|
|
4781
|
-
const
|
|
4782
|
-
if ((
|
|
4788
|
+
}, P = (b) => {
|
|
4789
|
+
if (!(b && (b.wheelDelta || b.deltaX))) return;
|
|
4790
|
+
const B = b.deltaX, te = b.deltaY, M = 2;
|
|
4791
|
+
if ((te > M || te < -M) && B === 0 || b.ctrlKey)
|
|
4783
4792
|
return;
|
|
4784
|
-
|
|
4785
|
-
const
|
|
4786
|
-
if (
|
|
4793
|
+
b.preventDefault();
|
|
4794
|
+
const O = b.wheelDeltaX, Y = Y.value, q = w(r.value);
|
|
4795
|
+
if (Y.value = q, r.value.push(O), r.value.length > 6 && r.value.shift(), Math.abs(O) < 80)
|
|
4787
4796
|
return;
|
|
4788
|
-
const
|
|
4789
|
-
if (a.value === "ended" &&
|
|
4790
|
-
if (a.value = "started", c.value = Date.now(),
|
|
4791
|
-
|
|
4797
|
+
const W = w(r.value);
|
|
4798
|
+
if (a.value === "ended" && q < W && Y < W && Y < q) {
|
|
4799
|
+
if (a.value = "started", c.value = Date.now(), O > 0) {
|
|
4800
|
+
q();
|
|
4792
4801
|
return;
|
|
4793
4802
|
}
|
|
4794
4803
|
g();
|
|
4795
4804
|
return;
|
|
4796
4805
|
}
|
|
4797
|
-
a.value === "started" &&
|
|
4806
|
+
a.value === "started" && W < q && W < Y && q < Y && (a.value = "ended");
|
|
4798
4807
|
};
|
|
4799
|
-
return
|
|
4800
|
-
d = new
|
|
4808
|
+
return Qe(() => {
|
|
4809
|
+
d = new ca(n.value, {
|
|
4801
4810
|
recognizers: [
|
|
4802
4811
|
// RecognizerClass, [options], [recognizeWith, ...], [requireFailure, ...]
|
|
4803
4812
|
[Hammer.Pinch],
|
|
@@ -4812,28 +4821,28 @@ const ia = {
|
|
|
4812
4821
|
// pinchmove: onPinchMove,
|
|
4813
4822
|
// pinchin: onPinchIn,
|
|
4814
4823
|
pinchout: v,
|
|
4815
|
-
wheel:
|
|
4824
|
+
wheel: P,
|
|
4816
4825
|
// keyup: onKeyUp,
|
|
4817
|
-
keydown:
|
|
4826
|
+
keydown: I,
|
|
4818
4827
|
doubletap: v,
|
|
4819
4828
|
tap: T
|
|
4820
4829
|
// pointerdown: togglePlay,
|
|
4821
4830
|
});
|
|
4822
|
-
}),
|
|
4831
|
+
}), Pt(() => {
|
|
4823
4832
|
d && d.destroy();
|
|
4824
|
-
}), (
|
|
4833
|
+
}), (b, x) => (L(), F("div", {
|
|
4825
4834
|
class: "pg-interaction-detector",
|
|
4826
4835
|
ref_key: "detector",
|
|
4827
4836
|
ref: n
|
|
4828
4837
|
}, null, 512));
|
|
4829
4838
|
}
|
|
4830
|
-
},
|
|
4839
|
+
}, da = _({
|
|
4831
4840
|
name: "PgAdvancedButton",
|
|
4832
4841
|
setup(e, { slots: t, emit: s }) {
|
|
4833
|
-
const n =
|
|
4842
|
+
const n = V(), { lang: r } = A(), a = y(() => {
|
|
4834
4843
|
var u;
|
|
4835
4844
|
return (u = r.value.pg) == null ? void 0 : u.buttons.advanced.title;
|
|
4836
|
-
}), c = () => n.mobileActive =
|
|
4845
|
+
}), c = () => n.mobileActive = Ct;
|
|
4837
4846
|
function d() {
|
|
4838
4847
|
const u = {
|
|
4839
4848
|
class: "pg-button-advanced",
|
|
@@ -4844,11 +4853,11 @@ const ia = {
|
|
|
4844
4853
|
outline: !0,
|
|
4845
4854
|
color: "primary"
|
|
4846
4855
|
};
|
|
4847
|
-
return h(
|
|
4856
|
+
return h(ke, u);
|
|
4848
4857
|
}
|
|
4849
4858
|
return () => d();
|
|
4850
4859
|
}
|
|
4851
|
-
}),
|
|
4860
|
+
}), ha = _({
|
|
4852
4861
|
name: "PgDefaultButtonRow",
|
|
4853
4862
|
setup(e, { slots: t, emit: s }) {
|
|
4854
4863
|
function n() {
|
|
@@ -4856,29 +4865,29 @@ const ia = {
|
|
|
4856
4865
|
class: "pg-drawer-button-row q-pt-md q-pb-sm row"
|
|
4857
4866
|
}, [
|
|
4858
4867
|
h("div", { class: "col text-center" }, [h(Un)]),
|
|
4859
|
-
h("div", { class: "col text-center" }, [h(
|
|
4868
|
+
h("div", { class: "col text-center" }, [h(da)])
|
|
4860
4869
|
]);
|
|
4861
4870
|
}
|
|
4862
4871
|
return () => n();
|
|
4863
4872
|
}
|
|
4864
|
-
}),
|
|
4873
|
+
}), pa = _({
|
|
4865
4874
|
name: "PgDefaultDrawer",
|
|
4866
4875
|
props: {},
|
|
4867
4876
|
emits: ["click"],
|
|
4868
4877
|
setup(e, { slots: t, emit: s }) {
|
|
4869
4878
|
return () => h(
|
|
4870
4879
|
hn,
|
|
4871
|
-
{ name:
|
|
4880
|
+
{ name: Ne },
|
|
4872
4881
|
{
|
|
4873
4882
|
default: () => h(Vn, { center: !0 }),
|
|
4874
4883
|
secondary: () => [
|
|
4875
4884
|
h(ss, { playMode: !0 }),
|
|
4876
|
-
h(
|
|
4885
|
+
h(ha)
|
|
4877
4886
|
]
|
|
4878
4887
|
}
|
|
4879
4888
|
);
|
|
4880
4889
|
}
|
|
4881
|
-
}),
|
|
4890
|
+
}), fa = _({
|
|
4882
4891
|
name: "PgAdvancedDrawer",
|
|
4883
4892
|
props: {},
|
|
4884
4893
|
emits: ["click"],
|
|
@@ -4889,16 +4898,16 @@ const ia = {
|
|
|
4889
4898
|
});
|
|
4890
4899
|
return () => h(
|
|
4891
4900
|
hn,
|
|
4892
|
-
{ class: "pg-effects-drawer", name:
|
|
4901
|
+
{ class: "pg-effects-drawer", name: Ct, label: r.value },
|
|
4893
4902
|
{
|
|
4894
4903
|
default: () => h(Rn, { center: !0, playMode: !0 })
|
|
4895
4904
|
}
|
|
4896
4905
|
);
|
|
4897
4906
|
}
|
|
4898
|
-
}),
|
|
4907
|
+
}), ga = _({
|
|
4899
4908
|
name: "TsDrawers",
|
|
4900
4909
|
setup(e, { slots: t, emit: s }) {
|
|
4901
|
-
const n =
|
|
4910
|
+
const n = V(), { mobileActive: r } = S(n);
|
|
4902
4911
|
function a() {
|
|
4903
4912
|
return h(
|
|
4904
4913
|
Yo,
|
|
@@ -4906,22 +4915,22 @@ const ia = {
|
|
|
4906
4915
|
modelValue: r.value,
|
|
4907
4916
|
"onUpdate:modelValue": (c) => r.value = c
|
|
4908
4917
|
},
|
|
4909
|
-
() => [h(
|
|
4918
|
+
() => [h(pa), h(fa)]
|
|
4910
4919
|
);
|
|
4911
4920
|
}
|
|
4912
4921
|
return () => a();
|
|
4913
4922
|
}
|
|
4914
|
-
}),
|
|
4923
|
+
}), ma = { class: "pg-viewport full-height" }, va = {
|
|
4915
4924
|
__name: "PgViewport",
|
|
4916
4925
|
props: {
|
|
4917
4926
|
modelValue: Boolean
|
|
4918
4927
|
},
|
|
4919
4928
|
emits: ["update:modelValue"],
|
|
4920
4929
|
setup(e, { emit: t }) {
|
|
4921
|
-
const s =
|
|
4922
|
-
|
|
4930
|
+
const s = xt(), n = Z(s.platform.is.desktop), r = Z(s.platform.is.mobile), a = V();
|
|
4931
|
+
K();
|
|
4923
4932
|
const { loading: c } = S(a), d = e, u = t;
|
|
4924
|
-
|
|
4933
|
+
Z(!0);
|
|
4925
4934
|
const f = y({
|
|
4926
4935
|
get() {
|
|
4927
4936
|
return d.modelValue;
|
|
@@ -4930,83 +4939,123 @@ const ia = {
|
|
|
4930
4939
|
u("update:modelValue", g);
|
|
4931
4940
|
}
|
|
4932
4941
|
});
|
|
4933
|
-
return (g, v) => (
|
|
4942
|
+
return (g, v) => (L(), It(jt, { name: "fade" }, {
|
|
4934
4943
|
default: Gt(() => [
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4944
|
+
Et(Ae("div", ma, [
|
|
4945
|
+
H(ua),
|
|
4946
|
+
H(N(Ln)),
|
|
4947
|
+
H(Mi),
|
|
4948
|
+
H(jt, { name: "fade" }, {
|
|
4940
4949
|
default: Gt(() => [
|
|
4941
|
-
|
|
4942
|
-
[
|
|
4950
|
+
Et(H(N(ko), { class: "loading-graphic" }, null, 512), [
|
|
4951
|
+
[St, N(c)]
|
|
4943
4952
|
])
|
|
4944
4953
|
]),
|
|
4945
4954
|
_: 1
|
|
4946
4955
|
}),
|
|
4947
|
-
|
|
4948
|
-
|
|
4956
|
+
H(N(Ci)),
|
|
4957
|
+
H(N(xi), {
|
|
4949
4958
|
class: "desktop-only",
|
|
4950
4959
|
modelValue: n.value,
|
|
4951
4960
|
"onUpdate:modelValue": v[0] || (v[0] = (T) => n.value = T)
|
|
4952
4961
|
}, null, 8, ["modelValue"]),
|
|
4953
|
-
|
|
4954
|
-
[
|
|
4962
|
+
Et(H(N(ga), { class: "mobile-only" }, null, 512), [
|
|
4963
|
+
[St, r.value]
|
|
4955
4964
|
])
|
|
4956
4965
|
], 512), [
|
|
4957
|
-
[
|
|
4966
|
+
[St, f.value]
|
|
4958
4967
|
])
|
|
4959
4968
|
]),
|
|
4960
4969
|
_: 1
|
|
4961
4970
|
}));
|
|
4962
4971
|
}
|
|
4963
|
-
},
|
|
4972
|
+
}, Pa = _({
|
|
4964
4973
|
name: "PoseGenerator",
|
|
4965
4974
|
options: { slug: "pose-generator" },
|
|
4966
4975
|
setup(e, { slots: t, emit: s }) {
|
|
4967
|
-
const n = Po(), r = Symbol.for("user-auth"), a = Symbol.for("activity-tracking"), c = xs(r), d = xs(a, null), u =
|
|
4976
|
+
const n = Po(), r = Symbol.for("user-auth"), a = Symbol.for("activity-tracking"), c = xs(r), d = xs(a, null), u = Dt(), f = _e(), g = K(), v = V(), T = ue(), C = Q(), { show: w } = S(f), { authenticated: I } = S(c), { filters: P } = S(u), { filterData: b } = S(v);
|
|
4968
4977
|
let x = 0;
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
}),
|
|
4978
|
+
ce(I, (M, O) => {
|
|
4979
|
+
M === !1 && v.customReset(), M === !0 && O !== !0 && v.getSettings();
|
|
4980
|
+
}), ce(b, () => {
|
|
4972
4981
|
x++, g.updateQueue(), !(x < 3) && (console.log("watch filterData pgStore.setSettings()"), v.setSettings());
|
|
4973
|
-
}),
|
|
4982
|
+
}), ce(
|
|
4974
4983
|
() => n.fullPath,
|
|
4975
4984
|
() => {
|
|
4976
4985
|
f.pause();
|
|
4977
4986
|
},
|
|
4978
4987
|
{ immediate: !0 }
|
|
4979
|
-
), Lo(),
|
|
4988
|
+
), Lo(), Qe(() => {
|
|
4980
4989
|
v.init(), v.fetch().then(() => {
|
|
4981
4990
|
g.loadQueue();
|
|
4982
4991
|
}).catch(() => {
|
|
4983
4992
|
});
|
|
4984
|
-
})
|
|
4985
|
-
|
|
4986
|
-
|
|
4993
|
+
});
|
|
4994
|
+
const B = (M) => {
|
|
4995
|
+
M && (d == null || d.trackEvent(Ar, {
|
|
4996
|
+
pose_id: M,
|
|
4997
|
+
base_pose_id: M
|
|
4998
|
+
}));
|
|
4999
|
+
};
|
|
5000
|
+
Qe(async () => {
|
|
5001
|
+
d && (await d.beginPoseGenerator(), g.currentId && (d.beginSegment(String(g.currentId)), B(g.currentId)));
|
|
5002
|
+
}), ce(
|
|
4987
5003
|
() => g.currentId,
|
|
4988
|
-
(
|
|
4989
|
-
|
|
5004
|
+
(M, O) => {
|
|
5005
|
+
!M || M === O || (d == null || d.beginSegment(String(M)), B(M));
|
|
5006
|
+
}
|
|
5007
|
+
), ce(
|
|
5008
|
+
() => g.history.length,
|
|
5009
|
+
(M, O) => {
|
|
5010
|
+
if (!d || M <= O) return;
|
|
5011
|
+
const Y = g.history[M - 1];
|
|
5012
|
+
if (!Y) return;
|
|
5013
|
+
const q = Y.split(".").map((W) => parseInt(W));
|
|
5014
|
+
d.trackEvent(kr, {
|
|
5015
|
+
config: {
|
|
5016
|
+
pose_id: q[0],
|
|
5017
|
+
position_index: q[1],
|
|
5018
|
+
light_direction: q[2],
|
|
5019
|
+
skin_id: q[3],
|
|
5020
|
+
effect_id: q[4],
|
|
5021
|
+
duration_seconds: C.duration
|
|
5022
|
+
}
|
|
5023
|
+
});
|
|
4990
5024
|
}
|
|
4991
|
-
),
|
|
5025
|
+
), ce(
|
|
5026
|
+
() => T.status,
|
|
5027
|
+
(M, O) => {
|
|
5028
|
+
!d || M !== Xe || O === Xe || d.trackEvent(Nr, {
|
|
5029
|
+
duration_seconds: C.duration
|
|
5030
|
+
});
|
|
5031
|
+
}
|
|
5032
|
+
), ce(
|
|
5033
|
+
() => T.completedLaps,
|
|
5034
|
+
(M, O) => {
|
|
5035
|
+
!d || M <= O || d.trackEvent(Or, {
|
|
5036
|
+
pose_id: T.lastLapPoseId,
|
|
5037
|
+
duration_seconds: C.duration
|
|
5038
|
+
});
|
|
5039
|
+
}
|
|
5040
|
+
), Pt(() => {
|
|
4992
5041
|
d == null || d.end();
|
|
4993
5042
|
});
|
|
4994
|
-
function
|
|
4995
|
-
const
|
|
4996
|
-
modelValue:
|
|
4997
|
-
"onUpdate:show": (
|
|
5043
|
+
function te() {
|
|
5044
|
+
const M = {
|
|
5045
|
+
modelValue: w.value,
|
|
5046
|
+
"onUpdate:show": (O) => w.value = O
|
|
4998
5047
|
};
|
|
4999
5048
|
return [
|
|
5000
5049
|
// overlay can now be absolutely positioned within the wrapper
|
|
5001
5050
|
// h(GridOverlay, { style: 'z-index: 5;' }),
|
|
5002
|
-
h(
|
|
5003
|
-
h(
|
|
5051
|
+
h(Ti),
|
|
5052
|
+
h(va, M)
|
|
5004
5053
|
];
|
|
5005
5054
|
}
|
|
5006
|
-
return () =>
|
|
5055
|
+
return () => te();
|
|
5007
5056
|
}
|
|
5008
5057
|
});
|
|
5009
5058
|
export {
|
|
5010
|
-
|
|
5011
|
-
|
|
5059
|
+
Pa as PoseGenerator,
|
|
5060
|
+
V as usePgStore
|
|
5012
5061
|
};
|