sprof 1.7.0 → 1.7.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/sprof.js +115 -115
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/sprof.js
CHANGED
|
@@ -2,7 +2,7 @@ var Yd = Object.defineProperty;
|
|
|
2
2
|
var Xd = (t, e, n) => e in t ? Yd(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var u = (t, e, n) => Xd(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
4
|
import { Notify as No, Dialog as _o, QBadge as el, QBtn as rn, QItemLabel as tl, QTooltip as fr, QInput as Yi, QDialog as Qd, QCard as Qt, QCardSection as It, QIcon as le, QCardActions as Yn, ClosePopup as ii, QSpace as jn, QSlideTransition as Zd, QSeparator as jo, QCheckbox as Jd, QPopupProxy as qi, QDate as da, QRadio as Kd, QToggle as nl, QSelect as ec, QTime as il, QTabs as ca, QTab as fa, QTd as hn, QScrollArea as tc, QList as ha, QItem as ma, QItemSection as sl, QTable as nc, QTr as hr, QTh as mr, QTabPanels as ol, QTabPanel as al, QSplitter as ic, QChip as sc, date as Ai, QForm as oc, QMenu as ac, QSpinner as rc, Ripple as lc, QUploader as uc, QUploaderAddTrigger as dc, QImg as cc, Quasar as fc } from "quasar";
|
|
5
|
-
import { reactive as gt, ref as q, openBlock as m, createElementBlock as w, createElementVNode as y, onBeforeMount as mn, defineComponent as W, useAttrs as Zt, computed as z, createBlock as L, unref as f, mergeProps as vt, withCtx as C, renderSlot as _, createTextVNode as me, toDisplayString as H, normalizeClass as pe, createVNode as g, normalizeStyle as J, useModel as yt, createSlots as Us, mergeModels as Ee, watch as Be, isRef as Fe, withDirectives as ot, createCommentVNode as G, TransitionGroup as rl, Fragment as Z, renderList as ye, withModifiers as Ke, vShow as Bs, nextTick as Hi, normalizeProps as bs, guardReactiveProps as ws,
|
|
5
|
+
import { reactive as gt, ref as q, openBlock as m, createElementBlock as w, createElementVNode as y, onBeforeMount as mn, defineComponent as W, useAttrs as Zt, computed as z, createBlock as L, unref as f, mergeProps as vt, withCtx as C, renderSlot as _, createTextVNode as me, toDisplayString as H, normalizeClass as pe, createVNode as g, normalizeStyle as J, useModel as yt, createSlots as Us, mergeModels as Ee, watch as Be, isRef as Fe, withDirectives as ot, createCommentVNode as G, TransitionGroup as rl, Fragment as Z, renderList as ye, withModifiers as Ke, vShow as Bs, nextTick as Hi, normalizeProps as bs, guardReactiveProps as ws, onBeforeUnmount as qs, resolveComponent as xe, withKeys as Ps, resolveDynamicComponent as Ln, resolveDirective as hc, mergeDefaults as mc, inject as pc, getCurrentInstance as gc, provide as vc, markRaw as yc, vModelText as bc, useCssVars as ll, createStaticVNode as ul, onUpdated as wc, onMounted as Si, useTemplateRef as Sc, onUnmounted as Cc, getCurrentScope as dl, onScopeDispose as cl } from "vue";
|
|
6
6
|
import Zn from "vuedraggable";
|
|
7
7
|
import { onBeforeRouteLeave as kc } from "vue-router";
|
|
8
8
|
var Pt = /* @__PURE__ */ ((t) => (t.Login = "login", t.Register = "register", t.Restore = "restore", t.Refresh = "refresh", t))(Pt || {}), Oe = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Success = "success", t.Warning = "warning", t.Error = "error", t.Info = "info", t))(Oe || {});
|
|
@@ -296,7 +296,7 @@ class Oc {
|
|
|
296
296
|
e && (this.closable = !0), this.visible = !0;
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
-
class
|
|
299
|
+
class hi {
|
|
300
300
|
constructor() {
|
|
301
301
|
u(this, "type", Oe.Success);
|
|
302
302
|
u(this, "text", "");
|
|
@@ -334,7 +334,7 @@ class mi {
|
|
|
334
334
|
return this.type;
|
|
335
335
|
}
|
|
336
336
|
GetQuasarColor() {
|
|
337
|
-
return
|
|
337
|
+
return hi.ToQuasarColor(this.type);
|
|
338
338
|
}
|
|
339
339
|
Info(e) {
|
|
340
340
|
this.showMessage(e, Oe.Info);
|
|
@@ -443,7 +443,7 @@ class $e {
|
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
const Fc = "top";
|
|
446
|
-
class Dc extends
|
|
446
|
+
class Dc extends hi {
|
|
447
447
|
constructor() {
|
|
448
448
|
super(...arguments);
|
|
449
449
|
u(this, "duration", $e.S(3));
|
|
@@ -461,7 +461,7 @@ class Dc extends mi {
|
|
|
461
461
|
caption: this.title || void 0,
|
|
462
462
|
color: this.GetQuasarColor(),
|
|
463
463
|
timeout: s.duration ?? this.duration,
|
|
464
|
-
html:
|
|
464
|
+
html: hi.ContainsHtml(this.text),
|
|
465
465
|
position: Fc
|
|
466
466
|
});
|
|
467
467
|
}
|
|
@@ -602,14 +602,14 @@ class Vc {
|
|
|
602
602
|
this.Logout();
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
|
-
const
|
|
605
|
+
const fi = class fi {
|
|
606
606
|
constructor() {
|
|
607
607
|
u(this, "form", gt(new Ec()));
|
|
608
608
|
u(this, "status", gt(new Vc()));
|
|
609
609
|
u(this, "modal", gt(new Oc()));
|
|
610
|
-
if (
|
|
611
|
-
return
|
|
612
|
-
|
|
610
|
+
if (fi.instance)
|
|
611
|
+
return fi.instance;
|
|
612
|
+
fi.instance = this, Object.freeze(this);
|
|
613
613
|
}
|
|
614
614
|
get Form() {
|
|
615
615
|
return this.form;
|
|
@@ -621,8 +621,8 @@ const hi = class hi {
|
|
|
621
621
|
return this.modal;
|
|
622
622
|
}
|
|
623
623
|
};
|
|
624
|
-
u(
|
|
625
|
-
let Wo =
|
|
624
|
+
u(fi, "instance");
|
|
625
|
+
let Wo = fi;
|
|
626
626
|
const ft = new Wo();
|
|
627
627
|
var vr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
628
628
|
/*! *****************************************************************************
|
|
@@ -684,7 +684,7 @@ var yr;
|
|
|
684
684
|
} : function(O, D) {
|
|
685
685
|
return O[D];
|
|
686
686
|
}
|
|
687
|
-
}, h = Object.getPrototypeOf(Function), v = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : po(), x = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : go(), $ = typeof WeakMap == "function" ? WeakMap : as(), A = s ? Symbol.for("@reflect-metadata:registry") : void 0, E = Ri(), T =
|
|
687
|
+
}, h = Object.getPrototypeOf(Function), v = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : po(), x = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : go(), $ = typeof WeakMap == "function" ? WeakMap : as(), A = s ? Symbol.for("@reflect-metadata:registry") : void 0, E = Ri(), T = si(E);
|
|
688
688
|
function I(O, D, N, K) {
|
|
689
689
|
if (ne(N)) {
|
|
690
690
|
if (!Yt(O))
|
|
@@ -1090,7 +1090,7 @@ var yr;
|
|
|
1090
1090
|
value: O
|
|
1091
1091
|
}), O;
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1093
|
+
function si(O) {
|
|
1094
1094
|
var D = new $(), N = {
|
|
1095
1095
|
isProviderFor: function(ie, se) {
|
|
1096
1096
|
var ae = D.get(ie);
|
|
@@ -2255,7 +2255,7 @@ function wl(t, e) {
|
|
|
2255
2255
|
return t.apply(e, arguments);
|
|
2256
2256
|
};
|
|
2257
2257
|
}
|
|
2258
|
-
const { toString: Qc } = Object.prototype, { getPrototypeOf:
|
|
2258
|
+
const { toString: Qc } = Object.prototype, { getPrototypeOf: mi } = Object, { iterator: Zi, toStringTag: Sl } = Symbol, As = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), ji = (t, e) => {
|
|
2259
2259
|
let n = t;
|
|
2260
2260
|
const i = [];
|
|
2261
2261
|
for (; n != null && n !== Object.prototype; ) {
|
|
@@ -2263,15 +2263,15 @@ const { toString: Qc } = Object.prototype, { getPrototypeOf: pi } = Object, { it
|
|
|
2263
2263
|
return !1;
|
|
2264
2264
|
if (i.push(n), As(n, e))
|
|
2265
2265
|
return !0;
|
|
2266
|
-
n =
|
|
2266
|
+
n = mi(n);
|
|
2267
2267
|
}
|
|
2268
2268
|
return !1;
|
|
2269
2269
|
}, Zc = (t, e) => t != null && ji(t, e) ? t[e] : void 0, ya = /* @__PURE__ */ ((t) => (e) => {
|
|
2270
2270
|
const n = Qc.call(e);
|
|
2271
2271
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
2272
|
-
})(/* @__PURE__ */ Object.create(null)), Jt = (t) => (t = t.toLowerCase(), (e) => ya(e) === t), Ys = (t) => (e) => typeof e === t, { isArray: Kn } = Array,
|
|
2272
|
+
})(/* @__PURE__ */ Object.create(null)), Jt = (t) => (t = t.toLowerCase(), (e) => ya(e) === t), Ys = (t) => (e) => typeof e === t, { isArray: Kn } = Array, pi = Ys("undefined");
|
|
2273
2273
|
function Ci(t) {
|
|
2274
|
-
return t !== null && !
|
|
2274
|
+
return t !== null && !pi(t) && t.constructor !== null && !pi(t.constructor) && Dt(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
2275
2275
|
}
|
|
2276
2276
|
const Cl = Jt("ArrayBuffer");
|
|
2277
2277
|
function Jc(t) {
|
|
@@ -2281,8 +2281,8 @@ function Jc(t) {
|
|
|
2281
2281
|
const Kc = Ys("string"), Dt = Ys("function"), kl = Ys("number"), ki = (t) => t !== null && typeof t == "object", ef = (t) => t === !0 || t === !1, Ss = (t) => {
|
|
2282
2282
|
if (!ki(t))
|
|
2283
2283
|
return !1;
|
|
2284
|
-
const e =
|
|
2285
|
-
return (e === null || e === Object.prototype ||
|
|
2284
|
+
const e = mi(t);
|
|
2285
|
+
return (e === null || e === Object.prototype || mi(e) === null) && // Treat any genuine (non-Object.prototype-polluted) Symbol.toStringTag or
|
|
2286
2286
|
// Symbol.iterator as evidence the value is a tagged/iterable type rather
|
|
2287
2287
|
// than a plain object, while ignoring keys injected onto Object.prototype.
|
|
2288
2288
|
!ji(t, Sl) && !ji(t, Zi);
|
|
@@ -2301,7 +2301,7 @@ function df() {
|
|
|
2301
2301
|
const br = df(), wr = typeof br.FormData < "u" ? br.FormData : void 0, cf = (t) => {
|
|
2302
2302
|
if (!t) return !1;
|
|
2303
2303
|
if (wr && t instanceof wr) return !0;
|
|
2304
|
-
const e =
|
|
2304
|
+
const e = mi(t);
|
|
2305
2305
|
if (!e || e === Object.prototype || !Dt(t.append)) return !1;
|
|
2306
2306
|
const n = ya(t);
|
|
2307
2307
|
return n === "formdata" || // detect form-data instance
|
|
@@ -2339,13 +2339,13 @@ function xl(t, e) {
|
|
|
2339
2339
|
return s;
|
|
2340
2340
|
return null;
|
|
2341
2341
|
}
|
|
2342
|
-
const Wn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, $l = (t) => !
|
|
2342
|
+
const Wn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, $l = (t) => !pi(t) && t !== Wn;
|
|
2343
2343
|
function Yo(...t) {
|
|
2344
2344
|
const { caseless: e, skipUndefined: n } = $l(this) && this || {}, i = {}, s = (o, a) => {
|
|
2345
2345
|
if (a === "__proto__" || a === "constructor" || a === "prototype")
|
|
2346
2346
|
return;
|
|
2347
2347
|
const l = e && typeof a == "string" && xl(i, a) || a, r = As(i, l) ? i[l] : void 0;
|
|
2348
|
-
Ss(r) && Ss(o) ? i[l] = Yo(r, o) : Ss(o) ? i[l] = Yo({}, o) : Kn(o) ? i[l] = o.slice() : (!n || !
|
|
2348
|
+
Ss(r) && Ss(o) ? i[l] = Yo(r, o) : Ss(o) ? i[l] = Yo({}, o) : Kn(o) ? i[l] = o.slice() : (!n || !pi(o)) && (i[l] = o);
|
|
2349
2349
|
};
|
|
2350
2350
|
for (let o = 0, a = t.length; o < a; o++) {
|
|
2351
2351
|
const l = t[o];
|
|
@@ -2397,7 +2397,7 @@ const yf = (t, e, n, { allOwnKeys: i } = {}) => (Ji(
|
|
|
2397
2397
|
do {
|
|
2398
2398
|
for (s = Object.getOwnPropertyNames(t), o = s.length; o-- > 0; )
|
|
2399
2399
|
a = s[o], (!i || i(a, t, e)) && !l[a] && (e[a] = t[a], l[a] = !0);
|
|
2400
|
-
t = n !== !1 &&
|
|
2400
|
+
t = n !== !1 && mi(t);
|
|
2401
2401
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
2402
2402
|
return e;
|
|
2403
2403
|
}, Cf = (t, e, n) => {
|
|
@@ -2413,7 +2413,7 @@ const yf = (t, e, n, { allOwnKeys: i } = {}) => (Ji(
|
|
|
2413
2413
|
for (; e-- > 0; )
|
|
2414
2414
|
n[e] = t[e];
|
|
2415
2415
|
return n;
|
|
2416
|
-
}, xf = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" &&
|
|
2416
|
+
}, xf = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && mi(Uint8Array)), $f = (t, e) => {
|
|
2417
2417
|
const i = (t && t[Zi]).call(t);
|
|
2418
2418
|
let s;
|
|
2419
2419
|
for (; (s = i.next()) && !s.done; ) {
|
|
@@ -2473,7 +2473,7 @@ const zf = (t) => {
|
|
|
2473
2473
|
const s = Kn(i) ? [] : {};
|
|
2474
2474
|
return Ji(i, (o, a) => {
|
|
2475
2475
|
const l = n(o);
|
|
2476
|
-
!
|
|
2476
|
+
!pi(l) && (s[a] = l);
|
|
2477
2477
|
}), e.delete(i), s;
|
|
2478
2478
|
}
|
|
2479
2479
|
}
|
|
@@ -2504,7 +2504,7 @@ const zf = (t) => {
|
|
|
2504
2504
|
isRequest: mf,
|
|
2505
2505
|
isResponse: pf,
|
|
2506
2506
|
isHeaders: gf,
|
|
2507
|
-
isUndefined:
|
|
2507
|
+
isUndefined: pi,
|
|
2508
2508
|
isDate: nf,
|
|
2509
2509
|
isFile: sf,
|
|
2510
2510
|
isReactNativeBlob: of,
|
|
@@ -3176,7 +3176,7 @@ function zl(t) {
|
|
|
3176
3176
|
}
|
|
3177
3177
|
return null;
|
|
3178
3178
|
}
|
|
3179
|
-
const
|
|
3179
|
+
const ai = (t, e) => t != null && M.hasOwnProp(t, e) ? t[e] : void 0;
|
|
3180
3180
|
function gh(t, e, n) {
|
|
3181
3181
|
if (M.isString(t))
|
|
3182
3182
|
try {
|
|
@@ -3203,11 +3203,11 @@ const Ki = {
|
|
|
3203
3203
|
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
3204
3204
|
let l;
|
|
3205
3205
|
if (o) {
|
|
3206
|
-
const r =
|
|
3206
|
+
const r = ai(this, "formSerializer");
|
|
3207
3207
|
if (i.indexOf("application/x-www-form-urlencoded") > -1)
|
|
3208
3208
|
return hh(e, r).toString();
|
|
3209
3209
|
if ((l = M.isFileList(e)) || i.indexOf("multipart/form-data") > -1) {
|
|
3210
|
-
const d =
|
|
3210
|
+
const d = ai(this, "env"), c = d && d.FormData;
|
|
3211
3211
|
return Xs(
|
|
3212
3212
|
l ? { "files[]": e } : e,
|
|
3213
3213
|
c && new c(),
|
|
@@ -3220,16 +3220,16 @@ const Ki = {
|
|
|
3220
3220
|
],
|
|
3221
3221
|
transformResponse: [
|
|
3222
3222
|
function(e) {
|
|
3223
|
-
const n =
|
|
3223
|
+
const n = ai(this, "transitional") || Ki.transitional, i = n && n.forcedJSONParsing, s = ai(this, "responseType"), o = s === "json";
|
|
3224
3224
|
if (M.isResponse(e) || M.isReadableStream(e))
|
|
3225
3225
|
return e;
|
|
3226
3226
|
if (e && M.isString(e) && (i && !s || o)) {
|
|
3227
3227
|
const l = !(n && n.silentJSONParsing) && o;
|
|
3228
3228
|
try {
|
|
3229
|
-
return JSON.parse(e,
|
|
3229
|
+
return JSON.parse(e, ai(this, "parseReviver"));
|
|
3230
3230
|
} catch (r) {
|
|
3231
3231
|
if (l)
|
|
3232
|
-
throw r.name === "SyntaxError" ? te.from(r, te.ERR_BAD_RESPONSE, this, null,
|
|
3232
|
+
throw r.name === "SyntaxError" ? te.from(r, te.ERR_BAD_RESPONSE, this, null, ai(this, "response")) : r;
|
|
3233
3233
|
}
|
|
3234
3234
|
}
|
|
3235
3235
|
return e;
|
|
@@ -4632,14 +4632,14 @@ class $a {
|
|
|
4632
4632
|
}
|
|
4633
4633
|
}
|
|
4634
4634
|
}
|
|
4635
|
-
const
|
|
4636
|
-
|
|
4635
|
+
const di = Ye.create();
|
|
4636
|
+
di.interceptors.response.use(
|
|
4637
4637
|
(t) => t,
|
|
4638
|
-
async (t) => await $a.Handle(t,
|
|
4638
|
+
async (t) => await $a.Handle(t, di)
|
|
4639
4639
|
);
|
|
4640
4640
|
class zi {
|
|
4641
4641
|
static async Get(e, n, i) {
|
|
4642
|
-
return await
|
|
4642
|
+
return await di({
|
|
4643
4643
|
method: Di.GET,
|
|
4644
4644
|
url: e,
|
|
4645
4645
|
headers: n,
|
|
@@ -4647,7 +4647,7 @@ class zi {
|
|
|
4647
4647
|
});
|
|
4648
4648
|
}
|
|
4649
4649
|
static async Post(e, n, i, s) {
|
|
4650
|
-
return n["Content-Type"] = "multipart/form-data", await
|
|
4650
|
+
return n["Content-Type"] = "multipart/form-data", await di({
|
|
4651
4651
|
method: Di.POST,
|
|
4652
4652
|
url: e,
|
|
4653
4653
|
headers: n,
|
|
@@ -4656,7 +4656,7 @@ class zi {
|
|
|
4656
4656
|
});
|
|
4657
4657
|
}
|
|
4658
4658
|
static async Put(e, n, i) {
|
|
4659
|
-
return n["Content-Type"] = "multipart/form-data", await
|
|
4659
|
+
return n["Content-Type"] = "multipart/form-data", await di({
|
|
4660
4660
|
method: Di.PUT,
|
|
4661
4661
|
url: e,
|
|
4662
4662
|
headers: n,
|
|
@@ -4664,7 +4664,7 @@ class zi {
|
|
|
4664
4664
|
});
|
|
4665
4665
|
}
|
|
4666
4666
|
static async Delete(e, n) {
|
|
4667
|
-
return await
|
|
4667
|
+
return await di({
|
|
4668
4668
|
method: Di.DELETE,
|
|
4669
4669
|
url: e,
|
|
4670
4670
|
headers: n
|
|
@@ -5640,7 +5640,7 @@ class Fs {
|
|
|
5640
5640
|
return Fs.Wait($e.M(e), n);
|
|
5641
5641
|
}
|
|
5642
5642
|
}
|
|
5643
|
-
class
|
|
5643
|
+
class gi {
|
|
5644
5644
|
/** Текст ошибки из ответа сервера: строка, `{ error }` или `{ message }`. */
|
|
5645
5645
|
static Message(e) {
|
|
5646
5646
|
var i;
|
|
@@ -5664,7 +5664,7 @@ class vi {
|
|
|
5664
5664
|
const o = await e();
|
|
5665
5665
|
return !n.silent && n.success && zn.Success(n.success), (i = n.onSuccess) == null || i.call(n, o), { ok: !0, data: o };
|
|
5666
5666
|
} catch (o) {
|
|
5667
|
-
return n.silent || zn.Error(n.message ||
|
|
5667
|
+
return n.silent || zn.Error(n.message || gi.Message(o) || "Произошла ошибка"), (s = n.onError) == null || s.call(n, o), { ok: !1, error: o };
|
|
5668
5668
|
}
|
|
5669
5669
|
}
|
|
5670
5670
|
/**
|
|
@@ -5672,7 +5672,7 @@ class vi {
|
|
|
5672
5672
|
* Удобно, когда вызывающий сам решает, что показывать.
|
|
5673
5673
|
*/
|
|
5674
5674
|
static async Silent(e) {
|
|
5675
|
-
return
|
|
5675
|
+
return gi.Run(e, { silent: !0 });
|
|
5676
5676
|
}
|
|
5677
5677
|
}
|
|
5678
5678
|
const xi = (t) => t === "" || t === null || t === void 0 || Array.isArray(t) && t.length === 0, $m = (t = "Обязательное поле") => (e) => xi(e) ? t : !0, Tm = (t = "Некорректный email") => (e) => xi(e) || /^\S+@\S+\.\S+$/.test(String(e)) ? !0 : t, Pm = (t, e = `Минимум ${t} символов`) => (n) => xi(n) || String(n).length >= t ? !0 : e, Rm = (t, e = `Максимум ${t} символов`) => (n) => xi(n) || String(n).length <= t ? !0 : e, Mm = (t, e = "Некорректное значение") => (n) => xi(n) || t.test(String(n)) ? !0 : e, Xl = (t = "Некорректная дата", e = !1) => (n) => xi(n) ? e ? t : !0 : Tt.ParseRu(String(n)) ? !0 : t, Im = (...t) => (e) => {
|
|
@@ -5766,7 +5766,7 @@ let Dm = (ke = class {
|
|
|
5766
5766
|
u(ke, "Cache", Dn), u(ke, "Classes", be), u(ke, "CarouselSwipe", em), u(ke, "Color", nm), u(ke, "CreateSortModels", Wl), u(ke, "Cursor", im), u(ke, "DateMask", um), u(ke, "Dates", Tt), u(ke, "Dragger", fm), u(ke, "Extension", Yl), u(ke, "Favourite", hm), // static FTSP = FTSP;
|
|
5767
5767
|
u(ke, "Hooks", vm), u(ke, "HttpClient", Ue), u(ke, "Id", Ft), u(ke, "MakeCarousel", ym), u(ke, "Period", Go), u(ke, "PhoneService", ea), u(ke, "Rating", bm), u(ke, "Router", cn), u(ke, "RouterGuard", wm), u(ke, "Scheduler", Sm), u(ke, "Scroll", km), // static Sizes = Sizes;
|
|
5768
5768
|
u(ke, "Sorter", xm), u(ke, "Static", ga), // static Statuses = Statuses;
|
|
5769
|
-
u(ke, "Strings", _e), u(ke, "Time", $e), u(ke, "Timer", Fs), u(ke, "Token", Gi), u(ke, "Try",
|
|
5769
|
+
u(ke, "Strings", _e), u(ke, "Time", $e), u(ke, "Timer", Fs), u(ke, "Token", Gi), u(ke, "Try", gi), u(ke, "Menus", Ta), // static useConfirmLeavePage = useConfirmLeavePage();
|
|
5770
5770
|
u(ke, "Validate", Am), u(ke, "WaitElement", Em), u(ke, "WebSocketClient", Fm), ke);
|
|
5771
5771
|
class zm {
|
|
5772
5772
|
constructor() {
|
|
@@ -5995,7 +5995,7 @@ var np = Object.defineProperty, su = (t, e, n, i) => {
|
|
|
5995
5995
|
(a = t[o]) && (s = a(e, n, s) || s);
|
|
5996
5996
|
return s && np(e, n, s), s;
|
|
5997
5997
|
};
|
|
5998
|
-
class
|
|
5998
|
+
class ci {
|
|
5999
5999
|
constructor(e) {
|
|
6000
6000
|
u(this, "id");
|
|
6001
6001
|
u(this, "key", "");
|
|
@@ -6015,10 +6015,10 @@ class fi {
|
|
|
6015
6015
|
}
|
|
6016
6016
|
su([
|
|
6017
6017
|
be.GetClassConstructor(iu)
|
|
6018
|
-
],
|
|
6018
|
+
], ci.prototype, "options");
|
|
6019
6019
|
su([
|
|
6020
6020
|
be.GetClassConstructor(tp)
|
|
6021
|
-
],
|
|
6021
|
+
], ci.prototype, "searchGroupMetaColumns");
|
|
6022
6022
|
class Oo {
|
|
6023
6023
|
constructor(e) {
|
|
6024
6024
|
u(this, "query", "");
|
|
@@ -6029,18 +6029,18 @@ class Oo {
|
|
|
6029
6029
|
u(this, "options", []);
|
|
6030
6030
|
u(this, "searchGroupId", "");
|
|
6031
6031
|
u(this, "searchGroups", []);
|
|
6032
|
-
u(this, "searchGroup", new
|
|
6032
|
+
u(this, "searchGroup", new ci());
|
|
6033
6033
|
u(this, "searchObjects", []);
|
|
6034
6034
|
u(this, "pagination", new Is());
|
|
6035
6035
|
u(this, "count", 0);
|
|
6036
|
-
e && (this.query = e.query, e.searchGroups && (this.searchGroups = e.searchGroups.map((n) => new
|
|
6036
|
+
e && (this.query = e.query, e.searchGroups && (this.searchGroups = e.searchGroups.map((n) => new ci(n))), e.searchGroup && (this.searchGroup = new ci(e.searchGroup)), e.options && (this.options = e.options.map((n) => new iu(n))), this.count = e.count);
|
|
6037
6037
|
}
|
|
6038
6038
|
toUrl() {
|
|
6039
6039
|
return JSON.stringify(this);
|
|
6040
6040
|
}
|
|
6041
6041
|
async setSearchGroup(e) {
|
|
6042
6042
|
const n = this.searchGroups.find((i) => i.id === e);
|
|
6043
|
-
n ? this.searchGroup = n : this.searchGroup = new
|
|
6043
|
+
n ? this.searchGroup = n : this.searchGroup = new ci();
|
|
6044
6044
|
}
|
|
6045
6045
|
async reproduceFromRoute() {
|
|
6046
6046
|
this.setQuery(), await this.setSearchGroup(cn.Route().query.groupId);
|
|
@@ -6221,7 +6221,7 @@ class hp {
|
|
|
6221
6221
|
}
|
|
6222
6222
|
}
|
|
6223
6223
|
const mp = new hp(), zr = "Да", Lr = "Нет";
|
|
6224
|
-
class pp extends
|
|
6224
|
+
class pp extends hi {
|
|
6225
6225
|
constructor() {
|
|
6226
6226
|
super(...arguments);
|
|
6227
6227
|
u(this, "confirmButtonText", zr);
|
|
@@ -6246,7 +6246,7 @@ class pp extends mi {
|
|
|
6246
6246
|
const a = _o.create({
|
|
6247
6247
|
title: this.title || void 0,
|
|
6248
6248
|
message: this.text,
|
|
6249
|
-
html:
|
|
6249
|
+
html: hi.ContainsHtml(this.text),
|
|
6250
6250
|
persistent: this.persistent,
|
|
6251
6251
|
ok: { label: this.confirmButtonText, flat: !0, color: "primary" },
|
|
6252
6252
|
cancel: { label: this.cancelButtonText, flat: !0, color: "warning" }
|
|
@@ -8744,7 +8744,7 @@ const Tg = { class: "p-form-renderer" }, Pg = {
|
|
|
8744
8744
|
$ && clearTimeout($), $ = setTimeout(v, 500);
|
|
8745
8745
|
},
|
|
8746
8746
|
{ deep: !0 }
|
|
8747
|
-
),
|
|
8747
|
+
), x();
|
|
8748
8748
|
const A = () => {
|
|
8749
8749
|
const T = Object.entries(s).filter(([I, S]) => {
|
|
8750
8750
|
const V = E().find((k) => k.id === I);
|
|
@@ -8801,7 +8801,7 @@ const Tg = { class: "p-form-renderer" }, Pg = {
|
|
|
8801
8801
|
], !0)
|
|
8802
8802
|
]));
|
|
8803
8803
|
}
|
|
8804
|
-
}), io = /* @__PURE__ */ Q(Eg, [["__scopeId", "data-v-
|
|
8804
|
+
}), io = /* @__PURE__ */ Q(Eg, [["__scopeId", "data-v-385eb68b"]]), Og = ["src"], Fg = {
|
|
8805
8805
|
key: 0,
|
|
8806
8806
|
class: "header-row"
|
|
8807
8807
|
}, Dg = { class: "title-wrapper" }, zg = {
|
|
@@ -9487,7 +9487,7 @@ class ns {
|
|
|
9487
9487
|
return "fieldRule";
|
|
9488
9488
|
}
|
|
9489
9489
|
}
|
|
9490
|
-
class
|
|
9490
|
+
class vi {
|
|
9491
9491
|
constructor(e) {
|
|
9492
9492
|
u(this, "id");
|
|
9493
9493
|
u(this, "name", "");
|
|
@@ -9495,7 +9495,7 @@ class yi {
|
|
|
9495
9495
|
Y.H.Classes.BuildClass(this, e);
|
|
9496
9496
|
}
|
|
9497
9497
|
static Create(e) {
|
|
9498
|
-
const n = new
|
|
9498
|
+
const n = new vi();
|
|
9499
9499
|
return n.id = Y.H.Id.UUID(), n.fieldId = e, n;
|
|
9500
9500
|
}
|
|
9501
9501
|
}
|
|
@@ -9568,7 +9568,7 @@ const Bn = class xs {
|
|
|
9568
9568
|
this.fieldMeasures.push(new Fa(e));
|
|
9569
9569
|
}
|
|
9570
9570
|
addRegisterPropertyVariant() {
|
|
9571
|
-
this.fieldVariants.push(new
|
|
9571
|
+
this.fieldVariants.push(new vi());
|
|
9572
9572
|
}
|
|
9573
9573
|
getIdWithoutDashes() {
|
|
9574
9574
|
return this.id ? this.id.replaceAll(/[^a-zA-Z]+/g, "") : "";
|
|
@@ -9598,7 +9598,7 @@ const Bn = class xs {
|
|
|
9598
9598
|
return e.parentId = this.id, e.name = "Вопрос", e.order = this.children.length, this.children.push(e), e;
|
|
9599
9599
|
}
|
|
9600
9600
|
addFieldVariant() {
|
|
9601
|
-
const e =
|
|
9601
|
+
const e = vi.Create(this.id);
|
|
9602
9602
|
return this.fieldVariants.push(e), e;
|
|
9603
9603
|
}
|
|
9604
9604
|
copy() {
|
|
@@ -9621,7 +9621,7 @@ Pi([
|
|
|
9621
9621
|
Y.H.Classes.GetClassConstructor(vu)
|
|
9622
9622
|
], Bn.prototype, "fieldExamples");
|
|
9623
9623
|
Pi([
|
|
9624
|
-
Y.H.Classes.GetClassConstructor(
|
|
9624
|
+
Y.H.Classes.GetClassConstructor(vi)
|
|
9625
9625
|
], Bn.prototype, "fieldVariants");
|
|
9626
9626
|
Pi([
|
|
9627
9627
|
Y.H.Classes.GetClassConstructor(Fa)
|
|
@@ -9843,7 +9843,7 @@ const Ev = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9843
9843
|
FieldFilter: $v,
|
|
9844
9844
|
FieldMeasure: Fa,
|
|
9845
9845
|
FieldRule: ns,
|
|
9846
|
-
FieldVariant:
|
|
9846
|
+
FieldVariant: vi,
|
|
9847
9847
|
Form: Cu,
|
|
9848
9848
|
FormFill: $u,
|
|
9849
9849
|
FormSection: ro,
|
|
@@ -10156,7 +10156,7 @@ const d1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10156
10156
|
return "";
|
|
10157
10157
|
const e = Y.H.Time.HmsToHm(t);
|
|
10158
10158
|
return /^\d{1,2}:\d{2}$/.test(e) ? e : "";
|
|
10159
|
-
},
|
|
10159
|
+
}, ui = (t, e) => Y.H.Time.DiffM(t ?? "", e ?? ""), Xt = (t, e) => Y.H.Time.AddMtoHM(t, e), ia = (t, e) => {
|
|
10160
10160
|
const n = Ie(t.startTime), i = Ie(e.startTime);
|
|
10161
10161
|
return isFinite(n) ? isFinite(i) ? n - i : -1 : 1;
|
|
10162
10162
|
}, Li = (t, e) => {
|
|
@@ -10466,7 +10466,7 @@ const d1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10466
10466
|
}, 8, ["model-value", "label"])
|
|
10467
10467
|
]));
|
|
10468
10468
|
}
|
|
10469
|
-
}),
|
|
10469
|
+
}), ri = /* @__PURE__ */ Q(p1, [["__scopeId", "data-v-5c1e0137"]]), g1 = { class: "schedule-admin" }, v1 = {
|
|
10470
10470
|
key: 0,
|
|
10471
10471
|
class: "no-days text-center text-grey q-py-xl"
|
|
10472
10472
|
}, y1 = { class: "schedule-toolbar row items-center q-gutter-sm q-mb-md" }, b1 = {
|
|
@@ -10701,12 +10701,12 @@ const d1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10701
10701
|
return b.list;
|
|
10702
10702
|
const B = new Set((p.sessions || []).map((de) => de.id)), X = P.filter((de) => !de.sessionId || !B.has(de.sessionId));
|
|
10703
10703
|
return en.set(p, { src: P, list: X }), X;
|
|
10704
|
-
},
|
|
10704
|
+
}, si = (p) => [
|
|
10705
10705
|
...n.value ? (p.sessions || []).map((b) => ({ kind: "session", item: b })) : [],
|
|
10706
10706
|
...Ri(p).map((b) => ({ kind: "slot", item: b }))
|
|
10707
10707
|
], mo = (p) => n.value ? (p.sessions || []).map((b) => ({ kind: "session", item: b })) : [], Ne = z(() => {
|
|
10708
10708
|
var b, P;
|
|
10709
|
-
const p = (((b = ne.value) == null ? void 0 : b.schedules) || []).flatMap((B) =>
|
|
10709
|
+
const p = (((b = ne.value) == null ? void 0 : b.schedules) || []).flatMap((B) => si(B));
|
|
10710
10710
|
for (const B of ((P = ne.value) == null ? void 0 : P.schedules) || [])
|
|
10711
10711
|
for (const X of B.sessions || [])
|
|
10712
10712
|
p.push(...Et(X).map((de) => ({ kind: "slot", item: de })));
|
|
@@ -10735,18 +10735,18 @@ const d1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10735
10735
|
var X, de, Re, We, tt;
|
|
10736
10736
|
if (!R.value || !k.value || !k.value.id)
|
|
10737
10737
|
return 0;
|
|
10738
|
-
const p =
|
|
10738
|
+
const p = oi(R.value.scheduleId);
|
|
10739
10739
|
if (!p)
|
|
10740
10740
|
return 0;
|
|
10741
10741
|
const b = { startTime: R.value.time, endTime: O.value }, P = (X = R.value.session) == null ? void 0 : X.id;
|
|
10742
10742
|
let B = 0;
|
|
10743
|
-
for (const j of
|
|
10743
|
+
for (const j of si(p))
|
|
10744
10744
|
j.item.id !== ((de = k.value) == null ? void 0 : de.id) && (((Re = k.value) == null ? void 0 : Re.kind) === "slot" && j.kind === "session" && j.item.id === P || Li(b, j.item) && B++);
|
|
10745
10745
|
if (((We = k.value) == null ? void 0 : We.kind) === "slot" && R.value.session)
|
|
10746
10746
|
for (const j of Et(R.value.session))
|
|
10747
10747
|
j.id !== ((tt = k.value) == null ? void 0 : tt.id) && Li(b, j) && B++;
|
|
10748
10748
|
return B;
|
|
10749
|
-
}), K = z(() => N.value > 0), fe = (p, b) => zu(
|
|
10749
|
+
}), K = z(() => N.value > 0), fe = (p, b) => zu(si(p), b, Li), Je = (p, b) => Lu(Et(p), b, Li), Ge = (p, b) => Du(p, b), Se = (p) => {
|
|
10750
10750
|
const b = Ne.value, P = Ie(p.item.startTime), B = Ie(p.item.endTime);
|
|
10751
10751
|
return !isFinite(P) || !isFinite(B) ? 48 : (B - P) / b.total * Tn.value;
|
|
10752
10752
|
}, ee = (p) => Uu(Se(p)), ie = (p) => {
|
|
@@ -10801,7 +10801,7 @@ const d1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10801
10801
|
if (Math.hypot(p.clientX - b.startX, p.clientY - b.startY) < qr)
|
|
10802
10802
|
return;
|
|
10803
10803
|
b.moved = !0;
|
|
10804
|
-
const P =
|
|
10804
|
+
const P = ui(b.gi.item.startTime, b.gi.item.endTime);
|
|
10805
10805
|
k.value = {
|
|
10806
10806
|
kind: b.gi.kind,
|
|
10807
10807
|
id: b.gi.item.id,
|
|
@@ -10818,7 +10818,7 @@ const d1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10818
10818
|
F.value = void 0, R.value = null;
|
|
10819
10819
|
return;
|
|
10820
10820
|
}
|
|
10821
|
-
const de =
|
|
10821
|
+
const de = oi(X);
|
|
10822
10822
|
if (!de)
|
|
10823
10823
|
return;
|
|
10824
10824
|
F.value = de.id;
|
|
@@ -10851,7 +10851,7 @@ const d1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10851
10851
|
if (yo(), Le.value = null, !b || !b.moved)
|
|
10852
10852
|
return;
|
|
10853
10853
|
Te.value = Date.now();
|
|
10854
|
-
const P = document.elementFromPoint(p.clientX, p.clientY), B = P == null ? void 0 : P.closest(".hall-col"), X = B == null ? void 0 : B.getAttribute("data-schedule-id"), de = X ?
|
|
10854
|
+
const P = document.elementFromPoint(p.clientX, p.clientY), B = P == null ? void 0 : P.closest(".hall-col"), X = B == null ? void 0 : B.getAttribute("data-schedule-id"), de = X ? oi(X) : void 0;
|
|
10855
10855
|
if (B && de) {
|
|
10856
10856
|
const Re = dt(B, p.clientY);
|
|
10857
10857
|
await Za(de, Re);
|
|
@@ -10906,7 +10906,7 @@ const d1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10906
10906
|
}, tn = q(null), Ad = (p, b, P) => {
|
|
10907
10907
|
if (P.target.closest(".nested-edit, .nested-resize") || P.button !== 0 || oe.value)
|
|
10908
10908
|
return;
|
|
10909
|
-
const B = P.target.closest(".session-perfoms"), X = Ie(p.startTime), de = Ie(p.endTime), Re =
|
|
10909
|
+
const B = P.target.closest(".session-perfoms"), X = Ie(p.startTime), de = Ie(p.endTime), Re = ui(b.startTime, b.endTime);
|
|
10910
10910
|
!B || !isFinite(X) || !isFinite(de) || de <= X || (tn.value = {
|
|
10911
10911
|
perfom: b,
|
|
10912
10912
|
session: p,
|
|
@@ -10941,7 +10941,7 @@ const d1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10941
10941
|
if (So(), tn.value = null, U.value = null, document.body.style.userSelect = "", document.body.style.cursor = "", !b || !b.moved)
|
|
10942
10942
|
return;
|
|
10943
10943
|
Te.value = Date.now();
|
|
10944
|
-
const P = document.elementFromPoint(p.clientX, p.clientY), B = P == null ? void 0 : P.closest(".hall-col"), X = B == null ? void 0 : B.getAttribute("data-schedule-id"), de = X ?
|
|
10944
|
+
const P = document.elementFromPoint(p.clientX, p.clientY), B = P == null ? void 0 : P.closest(".hall-col"), X = B == null ? void 0 : B.getAttribute("data-schedule-id"), de = X ? oi(X) : void 0;
|
|
10945
10945
|
if (B && de) {
|
|
10946
10946
|
k.value = {
|
|
10947
10947
|
kind: "slot",
|
|
@@ -10949,7 +10949,7 @@ const d1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10949
10949
|
name: b.perfom.name || o.value.slot,
|
|
10950
10950
|
duration: b.durMin
|
|
10951
10951
|
};
|
|
10952
|
-
const We = dt(B, p.clientY), tt = kt(We), j =
|
|
10952
|
+
const We = dt(B, p.clientY), tt = kt(We), j = ui(b.perfom.startTime, b.perfom.endTime), re = Xt(tt, j > 0 ? j : 30), ge = ((Re = er(b.perfom)) == null ? void 0 : Re.id) === de.id && b.perfom.startTime === tt && b.perfom.endTime === re;
|
|
10953
10953
|
await Za(de, We), ge && (await e.persist.updateSlot(b.perfom), await e.persist.refresh()), k.value = null;
|
|
10954
10954
|
return;
|
|
10955
10955
|
}
|
|
@@ -10986,7 +10986,7 @@ const d1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10986
10986
|
const P = Md();
|
|
10987
10987
|
if (!P)
|
|
10988
10988
|
return;
|
|
10989
|
-
const B = kt(b), X =
|
|
10989
|
+
const B = kt(b), X = ui(P.item.startTime, P.item.endTime), de = Xt(B, X > 0 ? X : 30);
|
|
10990
10990
|
if (((re = P.schedule) == null ? void 0 : re.id) === p.id && P.item.startTime === B && P.item.endTime === de)
|
|
10991
10991
|
return;
|
|
10992
10992
|
const Re = P.item.startTime;
|
|
@@ -11026,7 +11026,7 @@ const d1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11026
11026
|
B.scheduleId = b.id, await e.persist.updateSlot(B);
|
|
11027
11027
|
await e.persist.refresh();
|
|
11028
11028
|
}
|
|
11029
|
-
},
|
|
11029
|
+
}, oi = (p) => {
|
|
11030
11030
|
for (const b of e.days || []) {
|
|
11031
11031
|
const P = (b.schedules || []).find((B) => B.id === p);
|
|
11032
11032
|
if (P)
|
|
@@ -11043,7 +11043,7 @@ const d1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11043
11043
|
}, tr = z(() => {
|
|
11044
11044
|
const p = V.value;
|
|
11045
11045
|
if (p)
|
|
11046
|
-
return p.kind === "session" ?
|
|
11046
|
+
return p.kind === "session" ? oi(p.item.scheduleId) || nr(p.item, "session") : er(p.item);
|
|
11047
11047
|
}), Dd = z(() => {
|
|
11048
11048
|
const p = V.value;
|
|
11049
11049
|
return !p || p.kind !== "slot" ? [] : Ka(tr.value);
|
|
@@ -11148,10 +11148,10 @@ const d1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11148
11148
|
const P = a.value.createSession(p);
|
|
11149
11149
|
P.startTime = kt(b), P.endTime = Xt(P.startTime, 30), await e.persist.createSession(P), await e.persist.refresh();
|
|
11150
11150
|
}, ur = async (p) => {
|
|
11151
|
-
const b =
|
|
11151
|
+
const b = oi(p.item.scheduleId) || nr(p.item, p.kind);
|
|
11152
11152
|
if (!b)
|
|
11153
11153
|
return;
|
|
11154
|
-
const P =
|
|
11154
|
+
const P = ui(p.item.startTime, p.item.endTime) || 30, B = _n(p.item.endTime) || "9:00";
|
|
11155
11155
|
if (p.kind === "slot") {
|
|
11156
11156
|
const X = a.value.createSlot(b);
|
|
11157
11157
|
X.name = p.item.name ? `${p.item.name} (копия)` : p.item.name, X.startTime = B, X.endTime = Xt(B, P), X.sessionId = p.item.sessionId, p.item.description && (X.description = p.item.description), p.item.payload && (X.payload = { ...p.item.payload }), await e.persist.createSlot(X);
|
|
@@ -11450,7 +11450,7 @@ const d1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11450
11450
|
onDblclick: (re) => Fd(j, re),
|
|
11451
11451
|
onContextmenu: Ke((re) => Hd(j, re), ["prevent", "stop"])
|
|
11452
11452
|
}, [
|
|
11453
|
-
(m(!0), w(Z, null, ye(
|
|
11453
|
+
(m(!0), w(Z, null, ye(si(j), (re) => {
|
|
11454
11454
|
var ge;
|
|
11455
11455
|
return m(), w("div", {
|
|
11456
11456
|
key: re.item.id,
|
|
@@ -11717,13 +11717,13 @@ const d1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11717
11717
|
"onUpdate:modelValue": (ce) => ge.name = ce,
|
|
11718
11718
|
onBlur: (ce) => Mn(ge, "session")
|
|
11719
11719
|
}, null, 8, ["model-value", "label", "onUpdate:modelValue", "onBlur"]),
|
|
11720
|
-
g(
|
|
11720
|
+
g(ri, {
|
|
11721
11721
|
"model-value": ge.startTime,
|
|
11722
11722
|
label: o.value.startTime,
|
|
11723
11723
|
class: "time-input",
|
|
11724
11724
|
"onUpdate:modelValue": (ce) => fs(ge, "startTime", ce, "session")
|
|
11725
11725
|
}, null, 8, ["model-value", "label", "onUpdate:modelValue"]),
|
|
11726
|
-
g(
|
|
11726
|
+
g(ri, {
|
|
11727
11727
|
"model-value": ge.endTime,
|
|
11728
11728
|
label: o.value.endTime,
|
|
11729
11729
|
class: "time-input",
|
|
@@ -11800,13 +11800,13 @@ const d1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11800
11800
|
"onUpdate:modelValue": (ce) => ge.name = ce,
|
|
11801
11801
|
onBlur: (ce) => Mn(ge, "slot")
|
|
11802
11802
|
}, null, 8, ["model-value", "label", "onUpdate:modelValue", "onBlur"]),
|
|
11803
|
-
g(
|
|
11803
|
+
g(ri, {
|
|
11804
11804
|
"model-value": ge.startTime,
|
|
11805
11805
|
label: o.value.startTime,
|
|
11806
11806
|
class: "time-input",
|
|
11807
11807
|
"onUpdate:modelValue": (ce) => fs(ge, "startTime", ce, "slot")
|
|
11808
11808
|
}, null, 8, ["model-value", "label", "onUpdate:modelValue"]),
|
|
11809
|
-
g(
|
|
11809
|
+
g(ri, {
|
|
11810
11810
|
"model-value": ge.endTime,
|
|
11811
11811
|
label: o.value.endTime,
|
|
11812
11812
|
class: "time-input",
|
|
@@ -12018,7 +12018,7 @@ const d1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12018
12018
|
}, null, 8, ["modelValue", "label"]),
|
|
12019
12019
|
y("div", p0, [
|
|
12020
12020
|
y("div", g0, [
|
|
12021
|
-
g(
|
|
12021
|
+
g(ri, {
|
|
12022
12022
|
modelValue: V.value.item.startTime,
|
|
12023
12023
|
"onUpdate:modelValue": b[11] || (b[11] = (j) => V.value.item.startTime = j),
|
|
12024
12024
|
label: o.value.startTime,
|
|
@@ -12027,7 +12027,7 @@ const d1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12027
12027
|
}, null, 8, ["modelValue", "label"])
|
|
12028
12028
|
]),
|
|
12029
12029
|
y("div", v0, [
|
|
12030
|
-
g(
|
|
12030
|
+
g(ri, {
|
|
12031
12031
|
modelValue: V.value.item.endTime,
|
|
12032
12032
|
"onUpdate:modelValue": b[12] || (b[12] = (j) => V.value.item.endTime = j),
|
|
12033
12033
|
label: o.value.endTime,
|
|
@@ -12336,7 +12336,7 @@ const d1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12336
12336
|
blockSizeClass: Uu,
|
|
12337
12337
|
blockStyle: Fu,
|
|
12338
12338
|
byStart: ia,
|
|
12339
|
-
diffM:
|
|
12339
|
+
diffM: ui,
|
|
12340
12340
|
findEnclosingSession: Vu,
|
|
12341
12341
|
fromMin: kt,
|
|
12342
12342
|
gridBounds: Ou,
|
|
@@ -16369,7 +16369,7 @@ const f2 = /* @__PURE__ */ Q(l2, [["render", c2], ["__scopeId", "data-v-6fb8269e
|
|
|
16369
16369
|
const n = t, i = e, s = (a) => {
|
|
16370
16370
|
a.key === "Escape" && o();
|
|
16371
16371
|
};
|
|
16372
|
-
|
|
16372
|
+
Si(() => {
|
|
16373
16373
|
document.body.addEventListener("keydown", s);
|
|
16374
16374
|
}), qs(() => {
|
|
16375
16375
|
document.body.removeEventListener("keydown", s);
|
|
@@ -16456,7 +16456,7 @@ const Y2 = { class: "btn-group" }, X2 = /* @__PURE__ */ W({
|
|
|
16456
16456
|
const r = l.$refs.input;
|
|
16457
16457
|
(d = r == null ? void 0 : r.focus) == null || d.call(r);
|
|
16458
16458
|
};
|
|
16459
|
-
return
|
|
16459
|
+
return Si(async () => {
|
|
16460
16460
|
await a();
|
|
16461
16461
|
}), qs(() => {
|
|
16462
16462
|
ft.Form.Reset();
|
|
@@ -16582,7 +16582,7 @@ const Y2 = { class: "btn-group" }, X2 = /* @__PURE__ */ W({
|
|
|
16582
16582
|
const n = t, i = e, s = q(window.innerWidth), o = q(), a = q(Number(n.tabHeight.replace(/[^+\d]/g, ""))), l = () => {
|
|
16583
16583
|
s.value = window.innerWidth, a.value = o.value ? o.value.clientHeight : Number(n.tabHeight.replace(/[^+\d]/g, ""));
|
|
16584
16584
|
};
|
|
16585
|
-
|
|
16585
|
+
Si(() => window.addEventListener("resize", l)), Cc(() => window.removeEventListener("resize", l));
|
|
16586
16586
|
const r = z(() => `calc(100% - ${a.value}px + 1px)`);
|
|
16587
16587
|
mn(() => {
|
|
16588
16588
|
n.menus.Select();
|
|
@@ -16672,7 +16672,7 @@ const Y2 = { class: "btn-group" }, X2 = /* @__PURE__ */ W({
|
|
|
16672
16672
|
}, l = () => {
|
|
16673
16673
|
i("remove");
|
|
16674
16674
|
};
|
|
16675
|
-
|
|
16675
|
+
Si(() => {
|
|
16676
16676
|
const d = document.getElementById(o);
|
|
16677
16677
|
d && (d.onclick = () => {
|
|
16678
16678
|
var c;
|
|
@@ -16926,7 +16926,7 @@ function _r(t) {
|
|
|
16926
16926
|
return /^data:/.test(e);
|
|
16927
16927
|
}(t);
|
|
16928
16928
|
}
|
|
16929
|
-
function
|
|
16929
|
+
function li(t) {
|
|
16930
16930
|
return !!(t && t.constructor && t.call && t.apply);
|
|
16931
16931
|
}
|
|
16932
16932
|
function st(t) {
|
|
@@ -17077,7 +17077,7 @@ function Wr(t, e, n) {
|
|
|
17077
17077
|
function fn(t) {
|
|
17078
17078
|
return { left: t.left, top: t.top, right: t.left + t.width, bottom: t.top + t.height };
|
|
17079
17079
|
}
|
|
17080
|
-
function
|
|
17080
|
+
function yi(t, e) {
|
|
17081
17081
|
return { left: t.left - e.left, top: t.top - e.top };
|
|
17082
17082
|
}
|
|
17083
17083
|
function mt(t) {
|
|
@@ -17112,10 +17112,10 @@ function Wt(t, e, n, i) {
|
|
|
17112
17112
|
function Ae(t) {
|
|
17113
17113
|
return t.width / t.height;
|
|
17114
17114
|
}
|
|
17115
|
-
function
|
|
17115
|
+
function bi(t, e) {
|
|
17116
17116
|
return Math.min(e.right !== void 0 && e.left !== void 0 ? (e.right - e.left) / t.width : 1 / 0, e.bottom !== void 0 && e.top !== void 0 ? (e.bottom - e.top) / t.height : 1 / 0);
|
|
17117
17117
|
}
|
|
17118
|
-
function
|
|
17118
|
+
function wi(t, e) {
|
|
17119
17119
|
var n = { left: 0, top: 0 }, i = Wi(t, e);
|
|
17120
17120
|
return i.left && i.left > 0 ? n.left = i.left : i.right && i.right > 0 && (n.left = -i.right), i.top && i.top > 0 ? n.top = i.top : i.bottom && i.bottom > 0 && (n.top = -i.bottom), n;
|
|
17121
17121
|
}
|
|
@@ -17137,11 +17137,11 @@ function Fn(t, e) {
|
|
|
17137
17137
|
}
|
|
17138
17138
|
function fo(t, e) {
|
|
17139
17139
|
var n = Wi(pt(t, e), e);
|
|
17140
|
-
return n.left + n.right + n.top + n.bottom ? n.left + n.right > n.top + n.bottom ? Math.min((t.width + n.left + n.right) / t.width,
|
|
17140
|
+
return n.left + n.right + n.top + n.bottom ? n.left + n.right > n.top + n.bottom ? Math.min((t.width + n.left + n.right) / t.width, bi(t, e)) : Math.min((t.height + n.top + n.bottom) / t.height, bi(t, e)) : 1;
|
|
17141
17141
|
}
|
|
17142
17142
|
function pt(t, e, n) {
|
|
17143
17143
|
n === void 0 && (n = !1);
|
|
17144
|
-
var i =
|
|
17144
|
+
var i = wi(t, e);
|
|
17145
17145
|
return Lt(t, n ? co(i) : i);
|
|
17146
17146
|
}
|
|
17147
17147
|
function ra(t) {
|
|
@@ -17184,7 +17184,7 @@ function Cn(t) {
|
|
|
17184
17184
|
}
|
|
17185
17185
|
function la(t) {
|
|
17186
17186
|
var e = t.event, n = t.coordinates, i = t.positionRestrictions, s = i === void 0 ? {} : i, o = Lt(n, e.directions);
|
|
17187
|
-
return Lt(o,
|
|
17187
|
+
return Lt(o, wi(o, s));
|
|
17188
17188
|
}
|
|
17189
17189
|
function yS(t) {
|
|
17190
17190
|
var e = t.coordinates, n = t.transform, i = t.imageSize, s = t.sizeRestrictions, o = t.positionRestrictions, a = t.aspectRatio, l = t.visibleArea, r = function(c, h) {
|
|
@@ -17207,7 +17207,7 @@ function bS(t) {
|
|
|
17207
17207
|
var r, d, c, h = he({}, i), v = he({}, s), x = he({}, o);
|
|
17208
17208
|
r = Ae(x), d = Ae(h), c === void 0 && (c = 1e-3), (r === 0 || d === 0 ? Math.abs(d - r) < c : Math.abs(d / r) < 1 + c && Math.abs(d / r) > 1 - c) || (h = he(he({}, h), Cn({ sizeRestrictions: a, width: h.width, height: h.height, aspectRatio: { minimum: Ae(x), maximum: Ae(x) } })));
|
|
17209
17209
|
var $ = fo(v = Wt(v, h.width * n.width / (v.width * x.width)), e({ visibleArea: v, type: "resize" }));
|
|
17210
|
-
return $ !== 1 && (v = Wt(v, $), h = Wt(h, $)), v = pt(v = Lt(v,
|
|
17210
|
+
return $ !== 1 && (v = Wt(v, $), h = Wt(h, $)), v = pt(v = Lt(v, yi(mt(h), mt(v))), e({ visibleArea: v, type: "move" })), { coordinates: h = pt(h, ho(fn(v), l)), visibleArea: v };
|
|
17211
17211
|
}
|
|
17212
17212
|
function wS(t) {
|
|
17213
17213
|
var e = t.event, n = t.getAreaRestrictions, i = t.boundaries, s = t.coordinates, o = t.visibleArea;
|
|
@@ -17219,7 +17219,7 @@ function wS(t) {
|
|
|
17219
17219
|
var d = { width: 0, height: 0 };
|
|
17220
17220
|
r.width, i.width, Ae(i) > Ae(l) ? (d.height = 0.8 * i.height, d.width = d.height * Ae(l)) : (d.width = 0.8 * i.width, d.height = d.width * Ae(l));
|
|
17221
17221
|
var c = fo(r = Wt(r, l.width * i.width / (r.width * d.width)), n({ visibleArea: r, type: "resize" }));
|
|
17222
|
-
r = Wt(r, c), c !== 1 && (d.height /= c, d.width /= c), r = pt(r = Lt(r,
|
|
17222
|
+
r = Wt(r, c), c !== 1 && (d.height /= c, d.width /= c), r = pt(r = Lt(r, yi(mt(l), mt(r))), n({ visibleArea: r, type: "move" })), l = pt(l, ho(fn(r), a));
|
|
17223
17223
|
}
|
|
17224
17224
|
return { coordinates: l, visibleArea: r };
|
|
17225
17225
|
}
|
|
@@ -17227,7 +17227,7 @@ function SS(t) {
|
|
|
17227
17227
|
var e = t.event, n = t.coordinates, i = t.visibleArea, s = t.getAreaRestrictions, o = he({}, i), a = he({}, n);
|
|
17228
17228
|
if (e.type === "setCoordinates") {
|
|
17229
17229
|
var l = Math.max(0, a.width - o.width), r = Math.max(0, a.height - o.height);
|
|
17230
|
-
l > r ? o = Wt(o, Math.min(a.width / o.width,
|
|
17230
|
+
l > r ? o = Wt(o, Math.min(a.width / o.width, bi(o, s({ visibleArea: o, type: "resize" })))) : r > l && (o = Wt(o, Math.min(a.height / o.height, bi(o, s({ visibleArea: o, type: "resize" }))))), o = pt(o = Lt(o, co(wi(a, fn(o)))), s({ visibleArea: o, type: "move" }));
|
|
17231
17231
|
}
|
|
17232
17232
|
return { visibleArea: o, coordinates: a };
|
|
17233
17233
|
}
|
|
@@ -17258,20 +17258,20 @@ function gs(t, e) {
|
|
|
17258
17258
|
function TS(t) {
|
|
17259
17259
|
var e = t.event, n = t.coordinates, i = t.visibleArea, s = t.sizeRestrictions, o = t.getAreaRestrictions, a = t.positionRestrictions, l = t.adjustStencil, r = e.scale, d = e.move, c = he({}, i), h = he({}, n), v = 1, x = 1, $ = r.factor && Math.abs(r.factor - 1) > 1e-3;
|
|
17260
17260
|
c = Lt(c, { left: d.left || 0, top: d.top || 0 });
|
|
17261
|
-
var A = { stencil: { minimum: Math.max(s.minWidth ? s.minWidth / h.width : 0, s.minHeight ? s.minHeight / h.height : 0), maximum: Math.min(s.maxWidth ? s.maxWidth / h.width : 1 / 0, s.maxHeight ? s.maxHeight / h.height : 1 / 0,
|
|
17261
|
+
var A = { stencil: { minimum: Math.max(s.minWidth ? s.minWidth / h.width : 0, s.minHeight ? s.minHeight / h.height : 0), maximum: Math.min(s.maxWidth ? s.maxWidth / h.width : 1 / 0, s.maxHeight ? s.maxHeight / h.height : 1 / 0, bi(h, a)) }, area: { maximum: bi(c, o({ visibleArea: c, type: "resize" })) } };
|
|
17262
17262
|
r.factor && $ && (r.factor < 1 ? (x = Math.max(r.factor, A.stencil.minimum)) > 1 && (x = 1) : r.factor > 1 && (x = Math.min(r.factor, Math.min(A.area.maximum, A.stencil.maximum))) < 1 && (x = 1)), x && (c = Wt(c, x, r.center));
|
|
17263
17263
|
var E = n.left - i.left, T = i.width + i.left - (n.width + n.left), I = n.top - i.top, S = i.height + i.top - (n.height + n.top);
|
|
17264
|
-
return c = pt(c = Lt(c,
|
|
17264
|
+
return c = pt(c = Lt(c, wi(c, { left: a.left !== void 0 ? a.left - E * x : void 0, top: a.top !== void 0 ? a.top - I * x : void 0, bottom: a.bottom !== void 0 ? a.bottom + S * x : void 0, right: a.right !== void 0 ? a.right + T * x : void 0 })), o({ visibleArea: c, type: "move" })), h.width = h.width * x, h.height = h.height * x, h.left = c.left + E * x, h.top = c.top + I * x, h = pt(h, ho(fn(c), a)), r.factor && $ && l && (r.factor > 1 ? v = Math.min(A.area.maximum, r.factor) / x : r.factor < 1 && (v = Math.max(h.height / c.height, h.width / c.width, r.factor / x)), v !== 1 && (c = Lt(c = pt(c = Wt(c, v, r.factor > 1 ? r.center : mt(h)), o({ visibleArea: c, type: "move" })), co(wi(h, fn(c)))))), { coordinates: h, visibleArea: c };
|
|
17265
17265
|
}
|
|
17266
17266
|
function PS(t) {
|
|
17267
17267
|
var e = t.aspectRatio, n = t.getAreaRestrictions, i = t.coordinates, s = t.visibleArea, o = t.sizeRestrictions, a = t.positionRestrictions, l = t.imageSize, r = t.previousImageSize, d = t.angle, c = he({}, i), h = he({}, s), v = Fn(mt(he({ left: 0, top: 0 }, r)), d);
|
|
17268
|
-
return (c = he(he({}, Cn({ sizeRestrictions: o, aspectRatio: e, width: c.width, height: c.height })), Fn(mt(c), d))).left -= v.left - l.width / 2 + c.width / 2, c.top -= v.top - l.height / 2 + c.height / 2, h = Wt(h, fo(h, n({ visibleArea: h, type: "resize" }))), { coordinates: c = pt(c, a), visibleArea: h = pt(h = Lt(h,
|
|
17268
|
+
return (c = he(he({}, Cn({ sizeRestrictions: o, aspectRatio: e, width: c.width, height: c.height })), Fn(mt(c), d))).left -= v.left - l.width / 2 + c.width / 2, c.top -= v.top - l.height / 2 + c.height / 2, h = Wt(h, fo(h, n({ visibleArea: h, type: "resize" }))), { coordinates: c = pt(c, a), visibleArea: h = pt(h = Lt(h, yi(mt(c), mt(i))), n({ visibleArea: h, type: "move" })) };
|
|
17269
17269
|
}
|
|
17270
17270
|
function RS(t) {
|
|
17271
17271
|
var e = t.flip, n = t.previousFlip, i = t.rotate, s = t.getAreaRestrictions, o = t.coordinates, a = t.visibleArea, l = t.imageSize, r = he({}, o), d = he({}, a), c = n.horizontal !== e.horizontal, h = n.vertical !== e.vertical;
|
|
17272
17272
|
if (c || h) {
|
|
17273
17273
|
var v = Fn({ left: l.width / 2, top: l.height / 2 }, -i), x = Fn(mt(r), -i), $ = Fn({ left: c ? v.left - (x.left - v.left) : x.left, top: h ? v.top - (x.top - v.top) : x.top }, i);
|
|
17274
|
-
r = Lt(r,
|
|
17274
|
+
r = Lt(r, yi($, mt(r))), x = Fn(mt(d), -i), d = pt(d = Lt(d, yi($ = Fn({ left: c ? v.left - (x.left - v.left) : x.left, top: h ? v.top - (x.top - v.top) : x.top }, i), mt(d))), s({ visibleArea: d, type: "move" }));
|
|
17275
17275
|
}
|
|
17276
17276
|
return { coordinates: r, visibleArea: d };
|
|
17277
17277
|
}
|
|
@@ -17756,11 +17756,11 @@ var VS = ["transitions"], yn = Kt("vue-advanced-cropper"), Td = { name: "Cropper
|
|
|
17756
17756
|
e.style.width = n.width + "px", e.style.height = e.clientWidth / i + "px", e.style.width = e.clientWidth + "px";
|
|
17757
17757
|
} }, fitCoordinates: { type: Function, default: function(t) {
|
|
17758
17758
|
var e = t.visibleArea, n = t.coordinates, i = t.aspectRatio, s = t.sizeRestrictions, o = t.positionRestrictions, a = he(he({}, n), Cn({ width: n.width, height: n.height, aspectRatio: i, sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minHeight: Math.min(e.height, s.minHeight), minWidth: Math.min(e.width, s.minWidth) } }));
|
|
17759
|
-
return a = pt(a = Lt(a,
|
|
17759
|
+
return a = pt(a = Lt(a, yi(mt(n), mt(a))), ho(fn(e), o));
|
|
17760
17760
|
} }, fitVisibleArea: { type: Function, default: function(t) {
|
|
17761
17761
|
var e = t.visibleArea, n = t.boundaries, i = t.getAreaRestrictions, s = t.coordinates, o = he({}, e);
|
|
17762
17762
|
o.height = o.width / Ae(n), o.top += (e.height - o.height) / 2, (s.height - o.height > 0 || s.width - o.width > 0) && (o = Wt(o, Math.max(s.height / o.height, s.width / o.width)));
|
|
17763
|
-
var a = co(
|
|
17763
|
+
var a = co(wi(s, fn(o = Wt(o, fo(o, i({ visibleArea: o, type: "resize" }))))));
|
|
17764
17764
|
return o.width < s.width && (a.left = 0), o.height < s.height && (a.top = 0), o = pt(o = Lt(o, a), i({ visibleArea: o, type: "move" }));
|
|
17765
17765
|
} }, areaRestrictionsAlgorithm: { type: Function, default: function(t) {
|
|
17766
17766
|
var e = t.visibleArea, n = t.boundaries, i = t.imageSize, s = t.imageRestriction, o = t.type, a = {};
|
|
@@ -17956,9 +17956,9 @@ var VS = ["transitions"], yn = Kt("vue-advanced-cropper"), Td = { name: "Cropper
|
|
|
17956
17956
|
e || (e = this.stencilSize ? xS : kS);
|
|
17957
17957
|
var n = this.sizeRestrictions;
|
|
17958
17958
|
n.minWidth, n.minHeight, n.maxWidth, n.maxHeight;
|
|
17959
|
-
var i =
|
|
17959
|
+
var i = li(e) ? e({ boundaries: this.boundaries, imageSize: this.imageSize, aspectRatio: this.getAspectRatio(), sizeRestrictions: this.sizeRestrictions, stencilSize: this.getStencilSize(), visibleArea: this.visibleArea }) : e, s = this.defaultPosition || CS, o = [i, function(a) {
|
|
17960
17960
|
var l = a.coordinates;
|
|
17961
|
-
return Me({},
|
|
17961
|
+
return Me({}, li(s) ? s({ coordinates: l, imageSize: t.imageSize, visibleArea: t.visibleArea }) : t.defaultPosition);
|
|
17962
17962
|
}];
|
|
17963
17963
|
this.delayedTransforms && o.push.apply(o, ni(Array.isArray(this.delayedTransforms) ? this.delayedTransforms : [this.delayedTransforms])), this.coordinates = this.applyTransform(o, !0), this.delayedTransforms = null;
|
|
17964
17964
|
}
|
|
@@ -17976,7 +17976,7 @@ var VS = ["transitions"], yn = Kt("vue-advanced-cropper"), Td = { name: "Cropper
|
|
|
17976
17976
|
var t = this, e = this.$refs.stretcher, n = this.$refs.cropper;
|
|
17977
17977
|
return this.initStretcher({ cropper: n, stretcher: e, imageSize: this.imageSize }), this.$nextTick().then(function() {
|
|
17978
17978
|
var i = { cropper: n, imageSize: t.imageSize };
|
|
17979
|
-
if (
|
|
17979
|
+
if (li(t.defaultBoundaries) ? t.boundaries = t.defaultBoundaries(i) : t.defaultBoundaries === "fit" ? t.boundaries = function(s) {
|
|
17980
17980
|
var o = s.cropper, a = s.imageSize, l = o.clientHeight, r = o.clientWidth, d = l, c = a.width * l / a.height;
|
|
17981
17981
|
return c > r && (c = r, d = a.height * r / a.width), { width: c, height: d };
|
|
17982
17982
|
}(i) : t.boundaries = function(s) {
|
|
@@ -17989,7 +17989,7 @@ var VS = ["transitions"], yn = Kt("vue-advanced-cropper"), Td = { name: "Cropper
|
|
|
17989
17989
|
return this.appliedImageTransforms = Me(Me({}, this.defaultImageTransforms), {}, { flip: Me({}, this.defaultImageTransforms.flip) }), this.updateBoundaries().then(function() {
|
|
17990
17990
|
t.priority !== "visible-area" && (t.visibleArea = null, t.resetCoordinates());
|
|
17991
17991
|
var e, n, i, s, o, a, l = t.defaultVisibleArea || $S;
|
|
17992
|
-
t.visibleArea =
|
|
17992
|
+
t.visibleArea = li(l) ? l({ imageSize: t.imageSize, boundaries: t.boundaries, coordinates: t.priority !== "visible-area" ? t.coordinates : null, getAreaRestrictions: t.getAreaRestrictions, stencilSize: t.getStencilSize() }) : t.defaultVisibleArea, t.visibleArea = (e = { visibleArea: t.visibleArea, boundaries: t.boundaries, getAreaRestrictions: t.getAreaRestrictions }, n = e.visibleArea, i = e.boundaries, s = e.getAreaRestrictions, o = he({}, n), a = Ae(i), o.width / o.height !== a && (o.height = o.width / a), pt(o, s({ visibleArea: o, type: "move" }))), t.priority === "visible-area" ? t.resetCoordinates() : t.coordinates = t.fitCoordinates({ visibleArea: t.visibleArea, coordinates: t.coordinates, aspectRatio: t.getAspectRatio(), positionRestrictions: t.positionRestrictions, sizeRestrictions: t.sizeRestrictions }), t.runAutoZoom("resetVisibleArea");
|
|
17993
17993
|
}).catch(function() {
|
|
17994
17994
|
t.visibleArea = null;
|
|
17995
17995
|
});
|
|
@@ -18047,7 +18047,7 @@ var VS = ["transitions"], yn = Kt("vue-advanced-cropper"), Td = { name: "Cropper
|
|
|
18047
18047
|
a.push(String.fromCharCode.apply(null, Array.from ? Array.from(r) : r.slice())), l = l.subarray(8192);
|
|
18048
18048
|
}
|
|
18049
18049
|
return "data:image/jpeg;base64," + btoa(a.join(""));
|
|
18050
|
-
}(i) : this.imageAttributes.src = n,
|
|
18050
|
+
}(i) : this.imageAttributes.src = n, li(this.defaultTransforms) ? this.appliedImageTransforms = Vo(this.defaultTransforms()) : $s(this.defaultTransforms) ? this.appliedImageTransforms = Vo(this.defaultTransforms) : this.appliedImageTransforms = function(o) {
|
|
18051
18051
|
var a = Vo({});
|
|
18052
18052
|
if (o) switch (o) {
|
|
18053
18053
|
case 2:
|
|
@@ -18118,7 +18118,7 @@ var VS = ["transitions"], yn = Kt("vue-advanced-cropper"), Td = { name: "Cropper
|
|
|
18118
18118
|
}
|
|
18119
18119
|
return { minimum: e, maximum: n };
|
|
18120
18120
|
}, getStencilSize: function() {
|
|
18121
|
-
if (this.stencilSize) return t = { currentStencilSize: { width: this.stencilCoordinates.width, height: this.stencilCoordinates.height }, stencilSize: this.stencilSize, boundaries: this.boundaries, coefficient: this.coefficient, coordinates: this.coordinates, aspectRatio: this.getAspectRatio(!0) }, e = t.boundaries, n = t.stencilSize, i = t.aspectRatio, zo(Ae(s =
|
|
18121
|
+
if (this.stencilSize) return t = { currentStencilSize: { width: this.stencilCoordinates.width, height: this.stencilCoordinates.height }, stencilSize: this.stencilSize, boundaries: this.boundaries, coefficient: this.coefficient, coordinates: this.coordinates, aspectRatio: this.getAspectRatio(!0) }, e = t.boundaries, n = t.stencilSize, i = t.aspectRatio, zo(Ae(s = li(n) ? n({ boundaries: e, aspectRatio: i }) : n), i) && (s = Cn({ sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minWidth: 0, minHeight: 0 }, width: s.width, height: s.height, aspectRatio: { minimum: i.minimum, maximum: i.maximum } })), (s.width > e.width || s.height > e.height) && (s = Cn({ sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minWidth: 0, minHeight: 0 }, width: s.width, height: s.height, aspectRatio: { minimum: Ae(s), maximum: Ae(s) } })), s;
|
|
18122
18122
|
var t, e, n, i, s;
|
|
18123
18123
|
}, getPublicProperties: function() {
|
|
18124
18124
|
return { coefficient: this.coefficient, visibleArea: this.visibleArea, coordinates: this.coordinates, boundaries: this.boundaries, sizeRestrictions: this.sizeRestrictions, positionRestrictions: this.positionRestrictions, aspectRatio: this.getAspectRatio(), imageRestriction: this.imageRestriction };
|
|
@@ -18289,7 +18289,7 @@ const HS = { class: "cropper-wrapper" }, NS = { class: "row justify-end q-mt-md"
|
|
|
18289
18289
|
emits: ["crop", "removeFile", "update:ratio"],
|
|
18290
18290
|
setup(t, { emit: e }) {
|
|
18291
18291
|
const n = ii, i = t, s = e, o = q(), a = q(), l = q(`file-uploader-${Math.random().toString(36).substring(2, 9)}`), r = q(!1), d = q();
|
|
18292
|
-
|
|
18292
|
+
Si(() => {
|
|
18293
18293
|
Hi(() => {
|
|
18294
18294
|
var S;
|
|
18295
18295
|
const I = (S = a.value) == null ? void 0 : S.querySelector(".q-uploader__input");
|
|
@@ -18525,7 +18525,7 @@ function f4(t, e = {}) {
|
|
|
18525
18525
|
a = !0, n.value = !0, i.value = "";
|
|
18526
18526
|
try {
|
|
18527
18527
|
for (let $ = 1; $ <= r; $++) {
|
|
18528
|
-
const A = await
|
|
18528
|
+
const A = await gi.Run(() => Promise.resolve(t(x)), { silent: !e.notify });
|
|
18529
18529
|
if (A.ok) {
|
|
18530
18530
|
if (l)
|
|
18531
18531
|
return;
|
|
@@ -18535,7 +18535,7 @@ function f4(t, e = {}) {
|
|
|
18535
18535
|
if ($ === r) {
|
|
18536
18536
|
if (l)
|
|
18537
18537
|
return;
|
|
18538
|
-
i.value =
|
|
18538
|
+
i.value = gi.Message(A.error) || e.message || "Не удалось загрузить данные";
|
|
18539
18539
|
return;
|
|
18540
18540
|
}
|
|
18541
18541
|
await c(d * $);
|
|
@@ -18575,7 +18575,7 @@ function h4(t, e = {}) {
|
|
|
18575
18575
|
c && clearTimeout(c), c = setTimeout(() => {
|
|
18576
18576
|
x($);
|
|
18577
18577
|
}, a);
|
|
18578
|
-
}) : s &&
|
|
18578
|
+
}) : s && Si(() => {
|
|
18579
18579
|
h();
|
|
18580
18580
|
}), {
|
|
18581
18581
|
options: z(() => t.Options),
|